From 4d212bbb8ae9bd522dd762f22f0f9636cda6ed92 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 13:02:08 -0800 Subject: [PATCH 01/38] docs: [vmwareengine] resource proto messages moved to new file (#3908) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: resource proto messages moved to new file PiperOrigin-RevId: 505141907 Source-Link: https://github.com/googleapis/googleapis/commit/c2f56836bd5c29e1c75a683eee472498548e0ccf Source-Link: https://github.com/googleapis/googleapis-gen/commit/ff0de61609f37a02af321dbdfc1a27c2ad47f87a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZtd2FyZWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiZmYwZGU2MTYwOWYzN2EwMmFmMzIxZGJkZmMxYTI3YzJhZDQ3Zjg3YSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../cloud/vmwareengine/v1/vmwareengine.proto | 660 +- .../v1/vmwareengine_resources.proto | 690 + .../protos/protos.d.ts | 6212 +++--- .../protos/protos.js | 17140 ++++++++-------- .../protos/protos.json | 1502 +- .../src/v1/vmware_engine_proto_list.json | 3 +- 6 files changed, 13120 insertions(+), 13087 deletions(-) create mode 100644 packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto diff --git a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto index 947194c0e3cc..6589dc815264 100644 --- a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto +++ b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/vmwareengine/v1/vmwareengine_resources.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -460,163 +461,6 @@ service VmwareEngine { } } -// Network configuration in the consumer project -// with which the peering has to be done. -message NetworkConfig { - // Required. Management CIDR used by VMware management appliances. - string management_cidr = 4 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The relative resource name of the VMware Engine network attached - // to the private cloud. Specify the name in the following form: - // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` - // where `{project}` can either be a project number or a project ID. - string vmware_engine_network = 5 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/VmwareEngineNetwork" - } - ]; - - // Output only. The canonical name of the VMware Engine network in the form: - // `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` - string vmware_engine_network_canonical = 6 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/VmwareEngineNetwork" - } - ]; - - // Output only. The IP address layout version of the management IP address - // range. Possible versions include: - // * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address - // layout used by some existing private clouds. This is no longer supported - // for new private clouds as it does not support all features. - // * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address - // layout used by all newly created private clouds. This version supports all - // current features. - int32 management_ip_address_layout_version = 8 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Information about the type and number of nodes associated with the cluster. -message NodeTypeConfig { - // Required. The number of nodes of this type in the cluster - int32 node_count = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Customized number of cores available to each node of the type. - // This number must always be one of `nodeType.availableCustomCoreCounts`. - // If zero is provided max value from `nodeType.availableCustomCoreCounts` - // will be used. - int32 custom_core_count = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Represents a private cloud resource. Private clouds are zonal resources. -message PrivateCloud { - option (google.api.resource) = { - type: "vmwareengine.googleapis.com/PrivateCloud" - pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}" - }; - - // Enum State defines possible states of private clouds. - enum State { - // The default value. This value should never be used. - STATE_UNSPECIFIED = 0; - - // The private cloud is ready. - ACTIVE = 1; - - // The private cloud is being created. - CREATING = 2; - - // The private cloud is being updated. - UPDATING = 3; - - // The private cloud is in failed state. - FAILED = 5; - - // The private cloud is scheduled for deletion. The deletion process can be - // cancelled by using the corresponding undelete method. - DELETED = 6; - - // The private cloud is irreversibly deleted and is being removed from the - // system. - PURGING = 7; - } - - // Management cluster configuration. - message ManagementCluster { - // Required. The user-provided identifier of the new `Cluster`. - // The identifier must meet the following requirements: - // - // * Only contains 1-63 alphanumeric characters and hyphens - // * Begins with an alphabetical character - // * Ends with a non-hyphen character - // * Not formatted as a UUID - // * Complies with [RFC - // 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) - string cluster_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The map of cluster node types in this cluster, where the key is - // canonical identifier of the node type (corresponds to the `NodeType`). - map node_type_configs = 7 - [(google.api.field_behavior) = REQUIRED]; - } - - // Output only. The resource name of this private cloud. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Creation time of this resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last update time of this resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when the resource was scheduled for deletion. - google.protobuf.Timestamp delete_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when the resource will be irreversibly deleted. - google.protobuf.Timestamp expire_time = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. State of the resource. New values may be added to this enum - // when appropriate. - State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Network configuration of the private cloud. - NetworkConfig network_config = 9 [(google.api.field_behavior) = REQUIRED]; - - // Input only. The management cluster for this private cloud. - // This field is required during creation of the private cloud to provide - // details for the default cluster. - // - // The following fields can't be changed after private cloud creation: - // `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`. - ManagementCluster management_cluster = 10 - [(google.api.field_behavior) = INPUT_ONLY]; - - // User-provided description for this private cloud. - string description = 11; - - // Output only. HCX appliance. - Hcx hcx = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. NSX appliance. - Nsx nsx = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Vcenter appliance. - Vcenter vcenter = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. System-generated unique identifier for the resource. - string uid = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - // Request message for // [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds] message ListPrivateCloudsRequest { @@ -828,68 +672,6 @@ message UndeletePrivateCloudRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// A cluster in a private cloud. -message Cluster { - option (google.api.resource) = { - type: "vmwareengine.googleapis.com/Cluster" - pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}" - }; - - // Enum State defines possible states of private cloud clusters. - enum State { - // The default value. This value should never be used. - STATE_UNSPECIFIED = 0; - - // The Cluster is operational and can be used by the user. - ACTIVE = 1; - - // The Cluster is being deployed. - CREATING = 2; - - // Adding or removing of a node to the cluster, any other cluster specific - // updates. - UPDATING = 3; - - // The Cluster is being deleted. - DELETING = 4; - - // The Cluster is undergoing maintenance, for example: a failed node is - // getting replaced. - REPAIRING = 5; - } - - // Output only. The resource name of this cluster. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Creation time of this resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last update time of this resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. State of the resource. - State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. True if the cluster is a management cluster; false otherwise. - // There can only be one management cluster in a private cloud - // and it has to be the first one. - bool management = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. System-generated unique identifier for the resource. - string uid = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. The map of cluster node types in this cluster, where the key is - // canonical identifier of the node type (corresponds to the `NodeType`). - map node_type_configs = 16 - [(google.api.field_behavior) = REQUIRED]; -} - // Request message for // [VmwareEngine.ListClusters][google.cloud.vmwareengine.v1.VmwareEngine.ListClusters] message ListClustersRequest { @@ -1056,54 +838,6 @@ message DeleteClusterRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Subnet in a private cloud. Either `management` subnets (such as vMotion) that -// are read-only, or `userDefined`, which can also be updated. -message Subnet { - option (google.api.resource) = { - type: "vmwareengine.googleapis.com/Subnet" - pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}" - }; - - // Defines possible states of subnets. - enum State { - // The default value. This value should never be used. - STATE_UNSPECIFIED = 0; - - // The subnet is ready. - ACTIVE = 1; - - // The subnet is being created. - CREATING = 2; - - // The subnet is being updated. - UPDATING = 3; - - // The subnet is being deleted. - DELETING = 4; - } - - // Output only. The resource name of this subnet. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The IP address range of the subnet in CIDR format '10.0.0.0/24'. - string ip_cidr_range = 7; - - // The IP address of the gateway of this subnet. - // Must fall within the IP prefix defined above. - string gateway_ip = 8; - - // Output only. The type of the subnet. For example "management" or - // "userDefined". - string type = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The state of the resource. - State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - // Request message for // [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] message ListSubnetsRequest { @@ -1176,45 +910,6 @@ message OperationMetadata { string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Describes node type. -message NodeType { - option (google.api.resource) = { - type: "vmwareengine.googleapis.com/NodeType" - pattern: "projects/{project}/locations/{location}/nodeTypes/{node_type}" - }; - - // Output only. The resource name of this node type. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The canonical identifier of the node type - // (corresponds to the `NodeType`). For example: standard-72. - string node_type_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The friendly name for this node type. - // For example: ve1-standard-72 - string display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total number of virtual CPUs in a single node. - int32 virtual_cpu_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total number of CPU cores in a single node. - int32 total_core_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The amount of physical memory available, defined in GB. - int32 memory_gb = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The amount of storage available, defined in GB. - int32 disk_size_gb = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. List of possible values of custom core count. - repeated int32 available_custom_core_counts = 11 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - // Request message for // [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] message ListNodeTypesRequest { @@ -1302,15 +997,6 @@ message GetNodeTypeRequest { ]; } -// Credentials for a private cloud. -message Credentials { - // Initial username. - string username = 1; - - // Initial password. - string password = 2; -} - // Request message for // [VmwareEngine.ShowNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials] message ShowNsxCredentialsRequest { @@ -1426,56 +1112,6 @@ message ListHcxActivationKeysResponse { repeated string unreachable = 3; } -// HCX activation key. A default key is created during -// private cloud provisioning, but this behavior is subject to change -// and you should always verify active keys. -// Use -// [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] -// to retrieve existing keys and -// [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey] -// to create new ones. -message HcxActivationKey { - option (google.api.resource) = { - type: "vmwareengine.googleapis.com/HcxActivationKey" - pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}" - }; - - // State of HCX activation key - enum State { - // Unspecified state. - STATE_UNSPECIFIED = 0; - - // State of a newly generated activation key. - AVAILABLE = 1; - - // State of key when it has been used to activate HCX appliance. - CONSUMED = 2; - - // State of key when it is being created. - CREATING = 3; - } - - // Output only. The resource name of this HcxActivationKey. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Creation time of HCX activation key. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. State of HCX activation key. - State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. HCX activation key. - string activation_key = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. System-generated unique identifier for the resource. - string uid = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - // Request message for // [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] message ListHcxActivationKeysRequest { @@ -1572,185 +1208,6 @@ message CreateHcxActivationKeyRequest { string request_id = 4; } -// Details about a HCX Cloud Manager appliance. -message Hcx { - // State of the appliance - enum State { - // Unspecified appliance state. This is the default value. - STATE_UNSPECIFIED = 0; - - // The appliance is operational and can be used. - ACTIVE = 1; - - // The appliance is being deployed. - CREATING = 2; - } - - // Internal IP address of the appliance. - string internal_ip = 2; - - // Version of the appliance. - string version = 4; - - // Output only. The state of the appliance. - State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Fully qualified domain name of the appliance. - string fqdn = 6; -} - -// Details about a NSX Manager appliance. -message Nsx { - // State of the appliance - enum State { - // Unspecified appliance state. This is the default value. - STATE_UNSPECIFIED = 0; - - // The appliance is operational and can be used. - ACTIVE = 1; - - // The appliance is being deployed. - CREATING = 2; - } - - // Internal IP address of the appliance. - string internal_ip = 2; - - // Version of the appliance. - string version = 4; - - // Output only. The state of the appliance. - State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Fully qualified domain name of the appliance. - string fqdn = 6; -} - -// Details about a vCenter Server management appliance. -message Vcenter { - // State of the appliance - enum State { - // Unspecified appliance state. This is the default value. - STATE_UNSPECIFIED = 0; - - // The appliance is operational and can be used. - ACTIVE = 1; - - // The appliance is being deployed. - CREATING = 2; - } - - // Internal IP address of the appliance. - string internal_ip = 2; - - // Version of the appliance. - string version = 4; - - // Output only. The state of the appliance. - State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Fully qualified domain name of the appliance. - string fqdn = 6; -} - -// Represents a network policy resource. Network policies are regional -// resources. You can use a network policy to enable or disable internet access -// and external IP access. Network policies are associated with a VMware Engine -// network, which might span across regions. For a given region, a network -// policy applies to all private clouds in the VMware Engine network associated -// with the policy. -message NetworkPolicy { - option (google.api.resource) = { - type: "vmwareengine.googleapis.com/NetworkPolicy" - pattern: "projects/{project}/locations/{location}/networkPolicies/{network_policy}" - }; - - // Represents a network service that is managed by a `NetworkPolicy` resource. - // A network service provides a way to control an aspect of external access to - // VMware workloads. For example, whether the VMware workloads in the - // private clouds governed by a network policy can access or be accessed from - // the internet. - message NetworkService { - // Enum State defines possible states of a network policy controlled - // service. - enum State { - // Unspecified service state. This is the default value. - STATE_UNSPECIFIED = 0; - - // Service is not provisioned. - UNPROVISIONED = 1; - - // Service is in the process of being provisioned/deprovisioned. - RECONCILING = 2; - - // Service is active. - ACTIVE = 3; - } - - // True if the service is enabled; false otherwise. - bool enabled = 1; - - // Output only. State of the service. New values may be added to this enum - // when appropriate. - State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. The resource name of this network policy. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Creation time of this resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last update time of this resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Network service that allows VMware workloads to access the internet. - NetworkService internet_access = 6; - - // Network service that allows External IP addresses to be assigned to VMware - // workloads. This service can only be enabled when `internet_access` is also - // enabled. - NetworkService external_ip = 7; - - // Required. IP address range in CIDR notation used to create internet access - // and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is - // required. The range cannot overlap with any prefixes either in the consumer - // VPC network or in use by the private clouds attached to that VPC network. - string edge_services_cidr = 9 [(google.api.field_behavior) = REQUIRED]; - - // Output only. System-generated unique identifier for the resource. - string uid = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The relative resource name of the VMware Engine network. - // Specify the name in the following form: - // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` - // where `{project}` can either be a project number or a project ID. - string vmware_engine_network = 12 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/VmwareEngineNetwork" - } - ]; - - // Optional. User-provided description for this network policy. - string description = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The canonical name of the VMware Engine network in the form: - // `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` - string vmware_engine_network_canonical = 14 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "vmwareengine.googleapis.com/VmwareEngineNetwork" - } - ]; -} - // Request message for // [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies] message ListNetworkPoliciesRequest { @@ -1958,121 +1415,6 @@ message DeleteNetworkPolicyRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// VMware Engine network resource that provides connectivity for VMware Engine -// private clouds. -message VmwareEngineNetwork { - option (google.api.resource) = { - type: "vmwareengine.googleapis.com/VmwareEngineNetwork" - pattern: "projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network}" - }; - - // Represents a VMware Engine VPC network that is managed by a - // VMware Engine network resource. - message VpcNetwork { - // Enum Type defines possible types of a VMware Engine network controlled - // service. - enum Type { - // The default value. This value should never be used. - TYPE_UNSPECIFIED = 0; - - // VPC network that will be peered with a consumer VPC network or the - // intranet VPC of another VMware Engine network. Access a private cloud - // through Compute Engine VMs on a peered VPC network or an on-premises - // resource connected to a peered consumer VPC network. - INTRANET = 1; - - // VPC network used for internet access to and from a private cloud. - INTERNET = 2; - - // VPC network used for access to Google Cloud services like - // Cloud Storage. - GOOGLE_CLOUD = 3; - } - - // Output only. Type of VPC network (INTRANET, INTERNET, or - // GOOGLE_CLOUD) - Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The relative resource name of the service VPC network this - // VMware Engine network is attached to. For example: - // `projects/123123/global/networks/my-network` - string network = 2 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "compute.googleapis.com/Network" - } - ]; - } - - // Enum State defines possible states of VMware Engine network. - enum State { - // The default value. This value is used if the state is omitted. - STATE_UNSPECIFIED = 0; - - // The VMware Engine network is being created. - CREATING = 1; - - // The VMware Engine network is ready. - ACTIVE = 2; - - // The VMware Engine network is being updated. - UPDATING = 3; - - // The VMware Engine network is being deleted. - DELETING = 4; - } - - // Enum Type defines possible types of VMware Engine network. - enum Type { - // The default value. This value should never be used. - TYPE_UNSPECIFIED = 0; - - // Network type used by private clouds created in projects without a network - // of type `STANDARD`. This network type is no longer used for new VMware - // Engine private cloud deployments. - LEGACY = 1; - } - - // Output only. The resource name of the VMware Engine network. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // For example: - // `projects/my-project/locations/global/vmwareEngineNetworks/my-network` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Creation time of this resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last update time of this resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // User-provided description for this VMware Engine network. - string description = 5; - - // Output only. VMware Engine service VPC networks that provide connectivity - // from a private cloud to customer projects, the internet, and other Google - // Cloud services. - repeated VpcNetwork vpc_networks = 6 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. State of the VMware Engine network. - State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. VMware Engine network type. - Type type = 8 [(google.api.field_behavior) = REQUIRED]; - - // Output only. System-generated unique identifier for the resource. - string uid = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Checksum that may be sent on update and delete requests to ensure that the - // user-provided value is up to date before the server processes a request. - // The server computes checksums based on the value of other fields in the - // request. - string etag = 10; -} - // Request message for // [VmwareEngine.CreateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork] message CreateVmwareEngineNetworkRequest { diff --git a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto new file mode 100644 index 000000000000..c81c664241d4 --- /dev/null +++ b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto @@ -0,0 +1,690 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.vmwareengine.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.VmwareEngine.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/vmwareengine/v1;vmwareengine"; +option java_multiple_files = true; +option java_outer_classname = "VmwareengineResourcesProto"; +option java_package = "com.google.cloud.vmwareengine.v1"; +option php_namespace = "Google\\Cloud\\VmwareEngine\\V1"; +option ruby_package = "Google::Cloud::VmwareEngine::V1"; + +// Network configuration in the consumer project +// with which the peering has to be done. +message NetworkConfig { + // Required. Management CIDR used by VMware management appliances. + string management_cidr = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The relative resource name of the VMware Engine network attached + // to the private cloud. Specify the name in the following form: + // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + // where `{project}` can either be a project number or a project ID. + string vmware_engine_network = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Output only. The canonical name of the VMware Engine network in the form: + // `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + string vmware_engine_network_canonical = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Output only. The IP address layout version of the management IP address + // range. Possible versions include: + // * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address + // layout used by some existing private clouds. This is no longer supported + // for new private clouds as it does not support all features. + // * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address + // layout used by all newly created private clouds. This version supports all + // current features. + int32 management_ip_address_layout_version = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Information about the type and number of nodes associated with the cluster. +message NodeTypeConfig { + // Required. The number of nodes of this type in the cluster + int32 node_count = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Customized number of cores available to each node of the type. + // This number must always be one of `nodeType.availableCustomCoreCounts`. + // If zero is provided max value from `nodeType.availableCustomCoreCounts` + // will be used. + int32 custom_core_count = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a private cloud resource. Private clouds are zonal resources. +message PrivateCloud { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}" + }; + + // Enum State defines possible states of private clouds. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The private cloud is ready. + ACTIVE = 1; + + // The private cloud is being created. + CREATING = 2; + + // The private cloud is being updated. + UPDATING = 3; + + // The private cloud is in failed state. + FAILED = 5; + + // The private cloud is scheduled for deletion. The deletion process can be + // cancelled by using the corresponding undelete method. + DELETED = 6; + + // The private cloud is irreversibly deleted and is being removed from the + // system. + PURGING = 7; + } + + // Management cluster configuration. + message ManagementCluster { + // Required. The user-provided identifier of the new `Cluster`. + // The identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC + // 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + string cluster_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The map of cluster node types in this cluster, where the key is + // canonical identifier of the node type (corresponds to the `NodeType`). + map node_type_configs = 7 + [(google.api.field_behavior) = REQUIRED]; + } + + // Output only. The resource name of this private cloud. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the resource was scheduled for deletion. + google.protobuf.Timestamp delete_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the resource will be irreversibly deleted. + google.protobuf.Timestamp expire_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the resource. New values may be added to this enum + // when appropriate. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Network configuration of the private cloud. + NetworkConfig network_config = 9 [(google.api.field_behavior) = REQUIRED]; + + // Required. Input only. The management cluster for this private cloud. + // This field is required during creation of the private cloud to provide + // details for the default cluster. + // + // The following fields can't be changed after private cloud creation: + // `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`. + ManagementCluster management_cluster = 10 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = REQUIRED + ]; + + // User-provided description for this private cloud. + string description = 11; + + // Output only. HCX appliance. + Hcx hcx = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. NSX appliance. + Nsx nsx = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Vcenter appliance. + Vcenter vcenter = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A cluster in a private cloud. +message Cluster { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/Cluster" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}" + }; + + // Enum State defines possible states of private cloud clusters. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The Cluster is operational and can be used by the user. + ACTIVE = 1; + + // The Cluster is being deployed. + CREATING = 2; + + // Adding or removing of a node to the cluster, any other cluster specific + // updates. + UPDATING = 3; + + // The Cluster is being deleted. + DELETING = 4; + + // The Cluster is undergoing maintenance, for example: a failed node is + // getting replaced. + REPAIRING = 5; + } + + // Output only. The resource name of this cluster. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the resource. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if the cluster is a management cluster; false otherwise. + // There can only be one management cluster in a private cloud + // and it has to be the first one. + bool management = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The map of cluster node types in this cluster, where the key is + // canonical identifier of the node type (corresponds to the `NodeType`). + map node_type_configs = 16 + [(google.api.field_behavior) = REQUIRED]; +} + +// Subnet in a private cloud. Either `management` subnets (such as vMotion) that +// are read-only, or `userDefined`, which can also be updated. +message Subnet { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/Subnet" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}" + }; + + // Defines possible states of subnets. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The subnet is ready. + ACTIVE = 1; + + // The subnet is being created. + CREATING = 2; + + // The subnet is being updated. + UPDATING = 3; + + // The subnet is being deleted. + DELETING = 4; + } + + // Output only. The resource name of this subnet. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The IP address range of the subnet in CIDR format '10.0.0.0/24'. + string ip_cidr_range = 7; + + // The IP address of the gateway of this subnet. + // Must fall within the IP prefix defined above. + string gateway_ip = 8; + + // Output only. The type of the subnet. For example "management" or + // "userDefined". + string type = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the resource. + State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Describes node type. +message NodeType { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/NodeType" + pattern: "projects/{project}/locations/{location}/nodeTypes/{node_type}" + }; + + // Output only. The resource name of this node type. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The canonical identifier of the node type + // (corresponds to the `NodeType`). For example: standard-72. + string node_type_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The friendly name for this node type. + // For example: ve1-standard-72 + string display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total number of virtual CPUs in a single node. + int32 virtual_cpu_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total number of CPU cores in a single node. + int32 total_core_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The amount of physical memory available, defined in GB. + int32 memory_gb = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The amount of storage available, defined in GB. + int32 disk_size_gb = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of possible values of custom core count. + repeated int32 available_custom_core_counts = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Credentials for a private cloud. +message Credentials { + // Initial username. + string username = 1; + + // Initial password. + string password = 2; +} + +// HCX activation key. A default key is created during +// private cloud provisioning, but this behavior is subject to change +// and you should always verify active keys. +// Use +// [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] +// to retrieve existing keys and +// [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey] +// to create new ones. +message HcxActivationKey { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/HcxActivationKey" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}" + }; + + // State of HCX activation key + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // State of a newly generated activation key. + AVAILABLE = 1; + + // State of key when it has been used to activate HCX appliance. + CONSUMED = 2; + + // State of key when it is being created. + CREATING = 3; + } + + // Output only. The resource name of this HcxActivationKey. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of HCX activation key. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of HCX activation key. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. HCX activation key. + string activation_key = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details about a HCX Cloud Manager appliance. +message Hcx { + // State of the appliance + enum State { + // Unspecified appliance state. This is the default value. + STATE_UNSPECIFIED = 0; + + // The appliance is operational and can be used. + ACTIVE = 1; + + // The appliance is being deployed. + CREATING = 2; + } + + // Internal IP address of the appliance. + string internal_ip = 2; + + // Version of the appliance. + string version = 4; + + // Output only. The state of the appliance. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Fully qualified domain name of the appliance. + string fqdn = 6; +} + +// Details about a NSX Manager appliance. +message Nsx { + // State of the appliance + enum State { + // Unspecified appliance state. This is the default value. + STATE_UNSPECIFIED = 0; + + // The appliance is operational and can be used. + ACTIVE = 1; + + // The appliance is being deployed. + CREATING = 2; + } + + // Internal IP address of the appliance. + string internal_ip = 2; + + // Version of the appliance. + string version = 4; + + // Output only. The state of the appliance. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Fully qualified domain name of the appliance. + string fqdn = 6; +} + +// Details about a vCenter Server management appliance. +message Vcenter { + // State of the appliance + enum State { + // Unspecified appliance state. This is the default value. + STATE_UNSPECIFIED = 0; + + // The appliance is operational and can be used. + ACTIVE = 1; + + // The appliance is being deployed. + CREATING = 2; + } + + // Internal IP address of the appliance. + string internal_ip = 2; + + // Version of the appliance. + string version = 4; + + // Output only. The state of the appliance. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Fully qualified domain name of the appliance. + string fqdn = 6; +} + +// Represents a network policy resource. Network policies are regional +// resources. You can use a network policy to enable or disable internet access +// and external IP access. Network policies are associated with a VMware Engine +// network, which might span across regions. For a given region, a network +// policy applies to all private clouds in the VMware Engine network associated +// with the policy. +message NetworkPolicy { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/NetworkPolicy" + pattern: "projects/{project}/locations/{location}/networkPolicies/{network_policy}" + }; + + // Represents a network service that is managed by a `NetworkPolicy` resource. + // A network service provides a way to control an aspect of external access to + // VMware workloads. For example, whether the VMware workloads in the + // private clouds governed by a network policy can access or be accessed from + // the internet. + message NetworkService { + // Enum State defines possible states of a network policy controlled + // service. + enum State { + // Unspecified service state. This is the default value. + STATE_UNSPECIFIED = 0; + + // Service is not provisioned. + UNPROVISIONED = 1; + + // Service is in the process of being provisioned/deprovisioned. + RECONCILING = 2; + + // Service is active. + ACTIVE = 3; + } + + // True if the service is enabled; false otherwise. + bool enabled = 1; + + // Output only. State of the service. New values may be added to this enum + // when appropriate. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The resource name of this network policy. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Network service that allows VMware workloads to access the internet. + NetworkService internet_access = 6; + + // Network service that allows External IP addresses to be assigned to VMware + // workloads. This service can only be enabled when `internet_access` is also + // enabled. + NetworkService external_ip = 7; + + // Required. IP address range in CIDR notation used to create internet access + // and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is + // required. The range cannot overlap with any prefixes either in the consumer + // VPC network or in use by the private clouds attached to that VPC network. + string edge_services_cidr = 9 [(google.api.field_behavior) = REQUIRED]; + + // Output only. System-generated unique identifier for the resource. + string uid = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The relative resource name of the VMware Engine network. + // Specify the name in the following form: + // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + // where `{project}` can either be a project number or a project ID. + string vmware_engine_network = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Optional. User-provided description for this network policy. + string description = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The canonical name of the VMware Engine network in the form: + // `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + string vmware_engine_network_canonical = 14 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; +} + +// VMware Engine network resource that provides connectivity for VMware Engine +// private clouds. +message VmwareEngineNetwork { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + pattern: "projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network}" + }; + + // Represents a VMware Engine VPC network that is managed by a + // VMware Engine network resource. + message VpcNetwork { + // Enum Type defines possible types of a VMware Engine network controlled + // service. + enum Type { + // The default value. This value should never be used. + TYPE_UNSPECIFIED = 0; + + // VPC network that will be peered with a consumer VPC network or the + // intranet VPC of another VMware Engine network. Access a private cloud + // through Compute Engine VMs on a peered VPC network or an on-premises + // resource connected to a peered consumer VPC network. + INTRANET = 1; + + // VPC network used for internet access to and from a private cloud. + INTERNET = 2; + + // VPC network used for access to Google Cloud services like + // Cloud Storage. + GOOGLE_CLOUD = 3; + } + + // Output only. Type of VPC network (INTRANET, INTERNET, or + // GOOGLE_CLOUD) + Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The relative resource name of the service VPC network this + // VMware Engine network is attached to. For example: + // `projects/123123/global/networks/my-network` + string network = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; + } + + // Enum State defines possible states of VMware Engine network. + enum State { + // The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0; + + // The VMware Engine network is being created. + CREATING = 1; + + // The VMware Engine network is ready. + ACTIVE = 2; + + // The VMware Engine network is being updated. + UPDATING = 3; + + // The VMware Engine network is being deleted. + DELETING = 4; + } + + // Enum Type defines possible types of VMware Engine network. + enum Type { + // The default value. This value should never be used. + TYPE_UNSPECIFIED = 0; + + // Network type used by private clouds created in projects without a network + // of type `STANDARD`. This network type is no longer used for new VMware + // Engine private cloud deployments. + LEGACY = 1; + } + + // Output only. The resource name of the VMware Engine network. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User-provided description for this VMware Engine network. + string description = 5; + + // Output only. VMware Engine service VPC networks that provide connectivity + // from a private cloud to customer projects, the internet, and other Google + // Cloud services. + repeated VpcNetwork vpc_networks = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the VMware Engine network. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. VMware Engine network type. + Type type = 8 [(google.api.field_behavior) = REQUIRED]; + + // Output only. System-generated unique identifier for the resource. + string uid = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Checksum that may be sent on update and delete requests to ensure that the + // user-provided value is up to date before the server processes a request. + // The server computes checksums based on the value of other fields in the + // request. + string etag = 10; +} diff --git a/packages/google-cloud-vmwareengine/protos/protos.d.ts b/packages/google-cloud-vmwareengine/protos/protos.d.ts index d4918aac8b03..4cc5063e6d06 100644 --- a/packages/google-cloud-vmwareengine/protos/protos.d.ts +++ b/packages/google-cloud-vmwareengine/protos/protos.d.ts @@ -701,6335 +701,6335 @@ export namespace google { type ListVmwareEngineNetworksCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) => void; } - /** Properties of a NetworkConfig. */ - interface INetworkConfig { + /** Properties of a ListPrivateCloudsRequest. */ + interface IListPrivateCloudsRequest { - /** NetworkConfig managementCidr */ - managementCidr?: (string|null); + /** ListPrivateCloudsRequest parent */ + parent?: (string|null); - /** NetworkConfig vmwareEngineNetwork */ - vmwareEngineNetwork?: (string|null); + /** ListPrivateCloudsRequest pageSize */ + pageSize?: (number|null); - /** NetworkConfig vmwareEngineNetworkCanonical */ - vmwareEngineNetworkCanonical?: (string|null); + /** ListPrivateCloudsRequest pageToken */ + pageToken?: (string|null); - /** NetworkConfig managementIpAddressLayoutVersion */ - managementIpAddressLayoutVersion?: (number|null); + /** ListPrivateCloudsRequest filter */ + filter?: (string|null); + + /** ListPrivateCloudsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a NetworkConfig. */ - class NetworkConfig implements INetworkConfig { + /** Represents a ListPrivateCloudsRequest. */ + class ListPrivateCloudsRequest implements IListPrivateCloudsRequest { /** - * Constructs a new NetworkConfig. + * Constructs a new ListPrivateCloudsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.INetworkConfig); + constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest); - /** NetworkConfig managementCidr. */ - public managementCidr: string; + /** ListPrivateCloudsRequest parent. */ + public parent: string; - /** NetworkConfig vmwareEngineNetwork. */ - public vmwareEngineNetwork: string; + /** ListPrivateCloudsRequest pageSize. */ + public pageSize: number; - /** NetworkConfig vmwareEngineNetworkCanonical. */ - public vmwareEngineNetworkCanonical: string; + /** ListPrivateCloudsRequest pageToken. */ + public pageToken: string; - /** NetworkConfig managementIpAddressLayoutVersion. */ - public managementIpAddressLayoutVersion: number; + /** ListPrivateCloudsRequest filter. */ + public filter: string; + + /** ListPrivateCloudsRequest orderBy. */ + public orderBy: string; /** - * Creates a new NetworkConfig instance using the specified properties. + * Creates a new ListPrivateCloudsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NetworkConfig instance + * @returns ListPrivateCloudsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INetworkConfig): google.cloud.vmwareengine.v1.NetworkConfig; + public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest): google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; /** - * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. - * @param message NetworkConfig message or plain object to encode + * Encodes the specified ListPrivateCloudsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. + * @param message ListPrivateCloudsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. - * @param message NetworkConfig message or plain object to encode + * Encodes the specified ListPrivateCloudsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. + * @param message ListPrivateCloudsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetworkConfig message from the specified reader or buffer. + * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetworkConfig + * @returns ListPrivateCloudsRequest * @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.vmwareengine.v1.NetworkConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; /** - * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetworkConfig + * @returns ListPrivateCloudsRequest * @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.vmwareengine.v1.NetworkConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; /** - * Verifies a NetworkConfig message. + * Verifies a ListPrivateCloudsRequest 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 NetworkConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListPrivateCloudsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetworkConfig + * @returns ListPrivateCloudsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; /** - * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. - * @param message NetworkConfig + * Creates a plain object from a ListPrivateCloudsRequest message. Also converts values to other types if specified. + * @param message ListPrivateCloudsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateCloudsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetworkConfig to JSON. + * Converts this ListPrivateCloudsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetworkConfig + * Gets the default type url for ListPrivateCloudsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NodeTypeConfig. */ - interface INodeTypeConfig { + /** Properties of a ListPrivateCloudsResponse. */ + interface IListPrivateCloudsResponse { - /** NodeTypeConfig nodeCount */ - nodeCount?: (number|null); + /** ListPrivateCloudsResponse privateClouds */ + privateClouds?: (google.cloud.vmwareengine.v1.IPrivateCloud[]|null); - /** NodeTypeConfig customCoreCount */ - customCoreCount?: (number|null); + /** ListPrivateCloudsResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListPrivateCloudsResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a NodeTypeConfig. */ - class NodeTypeConfig implements INodeTypeConfig { + /** Represents a ListPrivateCloudsResponse. */ + class ListPrivateCloudsResponse implements IListPrivateCloudsResponse { /** - * Constructs a new NodeTypeConfig. + * Constructs a new ListPrivateCloudsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig); + constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse); - /** NodeTypeConfig nodeCount. */ - public nodeCount: number; + /** ListPrivateCloudsResponse privateClouds. */ + public privateClouds: google.cloud.vmwareengine.v1.IPrivateCloud[]; - /** NodeTypeConfig customCoreCount. */ - public customCoreCount: number; + /** ListPrivateCloudsResponse nextPageToken. */ + public nextPageToken: string; + + /** ListPrivateCloudsResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new NodeTypeConfig instance using the specified properties. + * Creates a new ListPrivateCloudsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NodeTypeConfig instance + * @returns ListPrivateCloudsResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig): google.cloud.vmwareengine.v1.NodeTypeConfig; + public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse): google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; /** - * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. - * @param message NodeTypeConfig message or plain object to encode + * Encodes the specified ListPrivateCloudsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. + * @param message ListPrivateCloudsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. - * @param message NodeTypeConfig message or plain object to encode + * Encodes the specified ListPrivateCloudsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. + * @param message ListPrivateCloudsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodeTypeConfig message from the specified reader or buffer. + * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodeTypeConfig + * @returns ListPrivateCloudsResponse * @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.vmwareengine.v1.NodeTypeConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; /** - * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited. + * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NodeTypeConfig + * @returns ListPrivateCloudsResponse * @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.vmwareengine.v1.NodeTypeConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; /** - * Verifies a NodeTypeConfig message. + * Verifies a ListPrivateCloudsResponse 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 NodeTypeConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListPrivateCloudsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NodeTypeConfig + * @returns ListPrivateCloudsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeTypeConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; /** - * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified. - * @param message NodeTypeConfig + * Creates a plain object from a ListPrivateCloudsResponse message. Also converts values to other types if specified. + * @param message ListPrivateCloudsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.NodeTypeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateCloudsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NodeTypeConfig to JSON. + * Converts this ListPrivateCloudsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NodeTypeConfig + * Gets the default type url for ListPrivateCloudsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrivateCloud. */ - interface IPrivateCloud { + /** Properties of a GetPrivateCloudRequest. */ + interface IGetPrivateCloudRequest { - /** PrivateCloud name */ + /** GetPrivateCloudRequest name */ name?: (string|null); - - /** PrivateCloud createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** PrivateCloud updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** PrivateCloud deleteTime */ - deleteTime?: (google.protobuf.ITimestamp|null); - - /** PrivateCloud expireTime */ - expireTime?: (google.protobuf.ITimestamp|null); - - /** PrivateCloud state */ - state?: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State|null); - - /** PrivateCloud networkConfig */ - networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null); - - /** PrivateCloud managementCluster */ - managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null); - - /** PrivateCloud description */ - description?: (string|null); - - /** PrivateCloud hcx */ - hcx?: (google.cloud.vmwareengine.v1.IHcx|null); - - /** PrivateCloud nsx */ - nsx?: (google.cloud.vmwareengine.v1.INsx|null); - - /** PrivateCloud vcenter */ - vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null); - - /** PrivateCloud uid */ - uid?: (string|null); } - /** Represents a PrivateCloud. */ - class PrivateCloud implements IPrivateCloud { + /** Represents a GetPrivateCloudRequest. */ + class GetPrivateCloudRequest implements IGetPrivateCloudRequest { /** - * Constructs a new PrivateCloud. + * Constructs a new GetPrivateCloudRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IPrivateCloud); + constructor(properties?: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest); - /** PrivateCloud name. */ + /** GetPrivateCloudRequest name. */ public name: string; - /** PrivateCloud createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** PrivateCloud updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** PrivateCloud deleteTime. */ - public deleteTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new GetPrivateCloudRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPrivateCloudRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest): google.cloud.vmwareengine.v1.GetPrivateCloudRequest; - /** PrivateCloud expireTime. */ - public expireTime?: (google.protobuf.ITimestamp|null); - - /** PrivateCloud state. */ - public state: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State); - - /** PrivateCloud networkConfig. */ - public networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null); - - /** PrivateCloud managementCluster. */ - public managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null); - - /** PrivateCloud description. */ - public description: string; - - /** PrivateCloud hcx. */ - public hcx?: (google.cloud.vmwareengine.v1.IHcx|null); - - /** PrivateCloud nsx. */ - public nsx?: (google.cloud.vmwareengine.v1.INsx|null); - - /** PrivateCloud vcenter. */ - public vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null); - - /** PrivateCloud uid. */ - public uid: string; - - /** - * Creates a new PrivateCloud instance using the specified properties. - * @param [properties] Properties to set - * @returns PrivateCloud instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.IPrivateCloud): google.cloud.vmwareengine.v1.PrivateCloud; - - /** - * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. - * @param message PrivateCloud message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GetPrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. + * @param message GetPrivateCloudRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. - * @param message PrivateCloud message or plain object to encode + * Encodes the specified GetPrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. + * @param message GetPrivateCloudRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateCloud message from the specified reader or buffer. + * Decodes a GetPrivateCloudRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrivateCloud + * @returns GetPrivateCloudRequest * @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.vmwareengine.v1.PrivateCloud; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetPrivateCloudRequest; /** - * Decodes a PrivateCloud message from the specified reader or buffer, length delimited. + * Decodes a GetPrivateCloudRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrivateCloud + * @returns GetPrivateCloudRequest * @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.vmwareengine.v1.PrivateCloud; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetPrivateCloudRequest; /** - * Verifies a PrivateCloud message. + * Verifies a GetPrivateCloudRequest 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 PrivateCloud message from a plain object. Also converts values to their respective internal types. + * Creates a GetPrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrivateCloud + * @returns GetPrivateCloudRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetPrivateCloudRequest; /** - * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified. - * @param message PrivateCloud + * Creates a plain object from a GetPrivateCloudRequest message. Also converts values to other types if specified. + * @param message GetPrivateCloudRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetPrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateCloud to JSON. + * Converts this GetPrivateCloudRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrivateCloud + * Gets the default type url for GetPrivateCloudRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PrivateCloud { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2, - UPDATING = 3, - FAILED = 5, - DELETED = 6, - PURGING = 7 - } - - /** Properties of a ManagementCluster. */ - interface IManagementCluster { - - /** ManagementCluster clusterId */ - clusterId?: (string|null); - - /** ManagementCluster nodeTypeConfigs */ - nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null); - } - - /** Represents a ManagementCluster. */ - class ManagementCluster implements IManagementCluster { - - /** - * Constructs a new ManagementCluster. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster); - - /** ManagementCluster clusterId. */ - public clusterId: string; - - /** ManagementCluster nodeTypeConfigs. */ - public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }; - - /** - * Creates a new ManagementCluster instance using the specified properties. - * @param [properties] Properties to set - * @returns ManagementCluster instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; - - /** - * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. - * @param message ManagementCluster message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. - * @param message ManagementCluster message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ManagementCluster message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ManagementCluster - * @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.vmwareengine.v1.PrivateCloud.ManagementCluster; - - /** - * Decodes a ManagementCluster message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ManagementCluster - * @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.vmwareengine.v1.PrivateCloud.ManagementCluster; - - /** - * Verifies a ManagementCluster 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 ManagementCluster message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ManagementCluster - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; - - /** - * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified. - * @param message ManagementCluster - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ManagementCluster to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ManagementCluster - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ListPrivateCloudsRequest. */ - interface IListPrivateCloudsRequest { + /** Properties of a CreatePrivateCloudRequest. */ + interface ICreatePrivateCloudRequest { - /** ListPrivateCloudsRequest parent */ + /** CreatePrivateCloudRequest parent */ parent?: (string|null); - /** ListPrivateCloudsRequest pageSize */ - pageSize?: (number|null); + /** CreatePrivateCloudRequest privateCloudId */ + privateCloudId?: (string|null); - /** ListPrivateCloudsRequest pageToken */ - pageToken?: (string|null); + /** CreatePrivateCloudRequest privateCloud */ + privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null); - /** ListPrivateCloudsRequest filter */ - filter?: (string|null); + /** CreatePrivateCloudRequest requestId */ + requestId?: (string|null); - /** ListPrivateCloudsRequest orderBy */ - orderBy?: (string|null); + /** CreatePrivateCloudRequest validateOnly */ + validateOnly?: (boolean|null); } - /** Represents a ListPrivateCloudsRequest. */ - class ListPrivateCloudsRequest implements IListPrivateCloudsRequest { + /** Represents a CreatePrivateCloudRequest. */ + class CreatePrivateCloudRequest implements ICreatePrivateCloudRequest { /** - * Constructs a new ListPrivateCloudsRequest. + * Constructs a new CreatePrivateCloudRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest); + constructor(properties?: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest); - /** ListPrivateCloudsRequest parent. */ + /** CreatePrivateCloudRequest parent. */ public parent: string; - /** ListPrivateCloudsRequest pageSize. */ - public pageSize: number; + /** CreatePrivateCloudRequest privateCloudId. */ + public privateCloudId: string; - /** ListPrivateCloudsRequest pageToken. */ - public pageToken: string; + /** CreatePrivateCloudRequest privateCloud. */ + public privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null); - /** ListPrivateCloudsRequest filter. */ - public filter: string; + /** CreatePrivateCloudRequest requestId. */ + public requestId: string; - /** ListPrivateCloudsRequest orderBy. */ - public orderBy: string; + /** CreatePrivateCloudRequest validateOnly. */ + public validateOnly: boolean; /** - * Creates a new ListPrivateCloudsRequest instance using the specified properties. + * Creates a new CreatePrivateCloudRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPrivateCloudsRequest instance + * @returns CreatePrivateCloudRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest): google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest): google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; /** - * Encodes the specified ListPrivateCloudsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. - * @param message ListPrivateCloudsRequest message or plain object to encode + * Encodes the specified CreatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. + * @param message CreatePrivateCloudRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPrivateCloudsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. - * @param message ListPrivateCloudsRequest message or plain object to encode + * Encodes the specified CreatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. + * @param message CreatePrivateCloudRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer. + * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPrivateCloudsRequest + * @returns CreatePrivateCloudRequest * @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.vmwareengine.v1.ListPrivateCloudsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; /** - * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPrivateCloudsRequest + * @returns CreatePrivateCloudRequest * @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.vmwareengine.v1.ListPrivateCloudsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; /** - * Verifies a ListPrivateCloudsRequest message. + * Verifies a CreatePrivateCloudRequest 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 ListPrivateCloudsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPrivateCloudsRequest + * @returns CreatePrivateCloudRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; /** - * Creates a plain object from a ListPrivateCloudsRequest message. Also converts values to other types if specified. - * @param message ListPrivateCloudsRequest + * Creates a plain object from a CreatePrivateCloudRequest message. Also converts values to other types if specified. + * @param message CreatePrivateCloudRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateCloudsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.CreatePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPrivateCloudsRequest to JSON. + * Converts this CreatePrivateCloudRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPrivateCloudsRequest + * Gets the default type url for CreatePrivateCloudRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPrivateCloudsResponse. */ - interface IListPrivateCloudsResponse { + /** Properties of an UpdatePrivateCloudRequest. */ + interface IUpdatePrivateCloudRequest { - /** ListPrivateCloudsResponse privateClouds */ - privateClouds?: (google.cloud.vmwareengine.v1.IPrivateCloud[]|null); + /** UpdatePrivateCloudRequest privateCloud */ + privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null); - /** ListPrivateCloudsResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdatePrivateCloudRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** ListPrivateCloudsResponse unreachable */ - unreachable?: (string[]|null); + /** UpdatePrivateCloudRequest requestId */ + requestId?: (string|null); } - /** Represents a ListPrivateCloudsResponse. */ - class ListPrivateCloudsResponse implements IListPrivateCloudsResponse { + /** Represents an UpdatePrivateCloudRequest. */ + class UpdatePrivateCloudRequest implements IUpdatePrivateCloudRequest { /** - * Constructs a new ListPrivateCloudsResponse. + * Constructs a new UpdatePrivateCloudRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse); + constructor(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest); - /** ListPrivateCloudsResponse privateClouds. */ - public privateClouds: google.cloud.vmwareengine.v1.IPrivateCloud[]; + /** UpdatePrivateCloudRequest privateCloud. */ + public privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null); - /** ListPrivateCloudsResponse nextPageToken. */ - public nextPageToken: string; + /** UpdatePrivateCloudRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** ListPrivateCloudsResponse unreachable. */ - public unreachable: string[]; + /** UpdatePrivateCloudRequest requestId. */ + public requestId: string; /** - * Creates a new ListPrivateCloudsResponse instance using the specified properties. + * Creates a new UpdatePrivateCloudRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPrivateCloudsResponse instance + * @returns UpdatePrivateCloudRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse): google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest): google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; /** - * Encodes the specified ListPrivateCloudsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. - * @param message ListPrivateCloudsResponse message or plain object to encode + * Encodes the specified UpdatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. + * @param message UpdatePrivateCloudRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPrivateCloudsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. - * @param message ListPrivateCloudsResponse message or plain object to encode + * Encodes the specified UpdatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. + * @param message UpdatePrivateCloudRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer. + * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPrivateCloudsResponse + * @returns UpdatePrivateCloudRequest * @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.vmwareengine.v1.ListPrivateCloudsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; /** - * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPrivateCloudsResponse + * @returns UpdatePrivateCloudRequest * @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.vmwareengine.v1.ListPrivateCloudsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; /** - * Verifies a ListPrivateCloudsResponse message. + * Verifies an UpdatePrivateCloudRequest 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 ListPrivateCloudsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPrivateCloudsResponse + * @returns UpdatePrivateCloudRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; /** - * Creates a plain object from a ListPrivateCloudsResponse message. Also converts values to other types if specified. - * @param message ListPrivateCloudsResponse + * Creates a plain object from an UpdatePrivateCloudRequest message. Also converts values to other types if specified. + * @param message UpdatePrivateCloudRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateCloudsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPrivateCloudsResponse to JSON. + * Converts this UpdatePrivateCloudRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPrivateCloudsResponse + * Gets the default type url for UpdatePrivateCloudRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPrivateCloudRequest. */ - interface IGetPrivateCloudRequest { + /** Properties of a DeletePrivateCloudRequest. */ + interface IDeletePrivateCloudRequest { - /** GetPrivateCloudRequest name */ + /** DeletePrivateCloudRequest name */ name?: (string|null); + + /** DeletePrivateCloudRequest requestId */ + requestId?: (string|null); + + /** DeletePrivateCloudRequest force */ + force?: (boolean|null); + + /** DeletePrivateCloudRequest delayHours */ + delayHours?: (number|null); } - /** Represents a GetPrivateCloudRequest. */ - class GetPrivateCloudRequest implements IGetPrivateCloudRequest { + /** Represents a DeletePrivateCloudRequest. */ + class DeletePrivateCloudRequest implements IDeletePrivateCloudRequest { /** - * Constructs a new GetPrivateCloudRequest. + * Constructs a new DeletePrivateCloudRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest); - /** GetPrivateCloudRequest name. */ + /** DeletePrivateCloudRequest name. */ public name: string; + /** DeletePrivateCloudRequest requestId. */ + public requestId: string; + + /** DeletePrivateCloudRequest force. */ + public force: boolean; + + /** DeletePrivateCloudRequest delayHours. */ + public delayHours?: (number|null); + + /** DeletePrivateCloudRequest _delayHours. */ + public _delayHours?: "delayHours"; + /** - * Creates a new GetPrivateCloudRequest instance using the specified properties. + * Creates a new DeletePrivateCloudRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetPrivateCloudRequest instance + * @returns DeletePrivateCloudRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest): google.cloud.vmwareengine.v1.GetPrivateCloudRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest): google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; /** - * Encodes the specified GetPrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. - * @param message GetPrivateCloudRequest message or plain object to encode + * Encodes the specified DeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. + * @param message DeletePrivateCloudRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. - * @param message GetPrivateCloudRequest message or plain object to encode + * Encodes the specified DeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. + * @param message DeletePrivateCloudRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPrivateCloudRequest message from the specified reader or buffer. + * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPrivateCloudRequest + * @returns DeletePrivateCloudRequest * @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.vmwareengine.v1.GetPrivateCloudRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; /** - * Decodes a GetPrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPrivateCloudRequest + * @returns DeletePrivateCloudRequest * @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.vmwareengine.v1.GetPrivateCloudRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; /** - * Verifies a GetPrivateCloudRequest message. + * Verifies a DeletePrivateCloudRequest 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 GetPrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPrivateCloudRequest + * @returns DeletePrivateCloudRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetPrivateCloudRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; /** - * Creates a plain object from a GetPrivateCloudRequest message. Also converts values to other types if specified. - * @param message GetPrivateCloudRequest + * Creates a plain object from a DeletePrivateCloudRequest message. Also converts values to other types if specified. + * @param message DeletePrivateCloudRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetPrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.DeletePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPrivateCloudRequest to JSON. + * Converts this DeletePrivateCloudRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPrivateCloudRequest + * Gets the default type url for DeletePrivateCloudRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreatePrivateCloudRequest. */ - interface ICreatePrivateCloudRequest { - - /** CreatePrivateCloudRequest parent */ - parent?: (string|null); - - /** CreatePrivateCloudRequest privateCloudId */ - privateCloudId?: (string|null); + /** Properties of an UndeletePrivateCloudRequest. */ + interface IUndeletePrivateCloudRequest { - /** CreatePrivateCloudRequest privateCloud */ - privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null); + /** UndeletePrivateCloudRequest name */ + name?: (string|null); - /** CreatePrivateCloudRequest requestId */ + /** UndeletePrivateCloudRequest requestId */ requestId?: (string|null); - - /** CreatePrivateCloudRequest validateOnly */ - validateOnly?: (boolean|null); } - /** Represents a CreatePrivateCloudRequest. */ - class CreatePrivateCloudRequest implements ICreatePrivateCloudRequest { + /** Represents an UndeletePrivateCloudRequest. */ + class UndeletePrivateCloudRequest implements IUndeletePrivateCloudRequest { /** - * Constructs a new CreatePrivateCloudRequest. + * Constructs a new UndeletePrivateCloudRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest); - - /** CreatePrivateCloudRequest parent. */ - public parent: string; - - /** CreatePrivateCloudRequest privateCloudId. */ - public privateCloudId: string; + constructor(properties?: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest); - /** CreatePrivateCloudRequest privateCloud. */ - public privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null); + /** UndeletePrivateCloudRequest name. */ + public name: string; - /** CreatePrivateCloudRequest requestId. */ + /** UndeletePrivateCloudRequest requestId. */ public requestId: string; - /** CreatePrivateCloudRequest validateOnly. */ - public validateOnly: boolean; - /** - * Creates a new CreatePrivateCloudRequest instance using the specified properties. + * Creates a new UndeletePrivateCloudRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePrivateCloudRequest instance + * @returns UndeletePrivateCloudRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest): google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest): google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; /** - * Encodes the specified CreatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. - * @param message CreatePrivateCloudRequest message or plain object to encode + * Encodes the specified UndeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. + * @param message UndeletePrivateCloudRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. - * @param message CreatePrivateCloudRequest message or plain object to encode + * Encodes the specified UndeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. + * @param message UndeletePrivateCloudRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer. + * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePrivateCloudRequest + * @returns UndeletePrivateCloudRequest * @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.vmwareengine.v1.CreatePrivateCloudRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; /** - * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePrivateCloudRequest + * @returns UndeletePrivateCloudRequest * @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.vmwareengine.v1.CreatePrivateCloudRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; /** - * Verifies a CreatePrivateCloudRequest message. + * Verifies an UndeletePrivateCloudRequest 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 CreatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePrivateCloudRequest + * @returns UndeletePrivateCloudRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; /** - * Creates a plain object from a CreatePrivateCloudRequest message. Also converts values to other types if specified. - * @param message CreatePrivateCloudRequest + * Creates a plain object from an UndeletePrivateCloudRequest message. Also converts values to other types if specified. + * @param message UndeletePrivateCloudRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.CreatePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreatePrivateCloudRequest to JSON. + * Converts this UndeletePrivateCloudRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreatePrivateCloudRequest + * Gets the default type url for UndeletePrivateCloudRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdatePrivateCloudRequest. */ - interface IUpdatePrivateCloudRequest { + /** Properties of a ListClustersRequest. */ + interface IListClustersRequest { - /** UpdatePrivateCloudRequest privateCloud */ - privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null); + /** ListClustersRequest parent */ + parent?: (string|null); - /** UpdatePrivateCloudRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListClustersRequest pageSize */ + pageSize?: (number|null); - /** UpdatePrivateCloudRequest requestId */ - requestId?: (string|null); + /** ListClustersRequest pageToken */ + pageToken?: (string|null); + + /** ListClustersRequest filter */ + filter?: (string|null); + + /** ListClustersRequest orderBy */ + orderBy?: (string|null); } - /** Represents an UpdatePrivateCloudRequest. */ - class UpdatePrivateCloudRequest implements IUpdatePrivateCloudRequest { + /** Represents a ListClustersRequest. */ + class ListClustersRequest implements IListClustersRequest { /** - * Constructs a new UpdatePrivateCloudRequest. + * Constructs a new ListClustersRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListClustersRequest); - /** UpdatePrivateCloudRequest privateCloud. */ - public privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null); + /** ListClustersRequest parent. */ + public parent: string; - /** UpdatePrivateCloudRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListClustersRequest pageSize. */ + public pageSize: number; - /** UpdatePrivateCloudRequest requestId. */ - public requestId: string; + /** ListClustersRequest pageToken. */ + public pageToken: string; + + /** ListClustersRequest filter. */ + public filter: string; + + /** ListClustersRequest orderBy. */ + public orderBy: string; /** - * Creates a new UpdatePrivateCloudRequest instance using the specified properties. + * Creates a new ListClustersRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdatePrivateCloudRequest instance + * @returns ListClustersRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest): google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListClustersRequest): google.cloud.vmwareengine.v1.ListClustersRequest; /** - * Encodes the specified UpdatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. - * @param message UpdatePrivateCloudRequest message or plain object to encode + * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. + * @param message ListClustersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. - * @param message UpdatePrivateCloudRequest message or plain object to encode + * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. + * @param message ListClustersRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer. + * Decodes a ListClustersRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdatePrivateCloudRequest + * @returns ListClustersRequest * @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.vmwareengine.v1.UpdatePrivateCloudRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListClustersRequest; /** - * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdatePrivateCloudRequest + * @returns ListClustersRequest * @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.vmwareengine.v1.UpdatePrivateCloudRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListClustersRequest; /** - * Verifies an UpdatePrivateCloudRequest message. + * Verifies a ListClustersRequest 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 an UpdatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdatePrivateCloudRequest + * @returns ListClustersRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListClustersRequest; /** - * Creates a plain object from an UpdatePrivateCloudRequest message. Also converts values to other types if specified. - * @param message UpdatePrivateCloudRequest + * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. + * @param message ListClustersRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListClustersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdatePrivateCloudRequest to JSON. + * Converts this ListClustersRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdatePrivateCloudRequest + * Gets the default type url for ListClustersRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeletePrivateCloudRequest. */ - interface IDeletePrivateCloudRequest { - - /** DeletePrivateCloudRequest name */ - name?: (string|null); + /** Properties of a ListClustersResponse. */ + interface IListClustersResponse { - /** DeletePrivateCloudRequest requestId */ - requestId?: (string|null); + /** ListClustersResponse clusters */ + clusters?: (google.cloud.vmwareengine.v1.ICluster[]|null); - /** DeletePrivateCloudRequest force */ - force?: (boolean|null); + /** ListClustersResponse nextPageToken */ + nextPageToken?: (string|null); - /** DeletePrivateCloudRequest delayHours */ - delayHours?: (number|null); + /** ListClustersResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a DeletePrivateCloudRequest. */ - class DeletePrivateCloudRequest implements IDeletePrivateCloudRequest { + /** Represents a ListClustersResponse. */ + class ListClustersResponse implements IListClustersResponse { /** - * Constructs a new DeletePrivateCloudRequest. + * Constructs a new ListClustersResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest); - - /** DeletePrivateCloudRequest name. */ - public name: string; - - /** DeletePrivateCloudRequest requestId. */ - public requestId: string; + constructor(properties?: google.cloud.vmwareengine.v1.IListClustersResponse); - /** DeletePrivateCloudRequest force. */ - public force: boolean; + /** ListClustersResponse clusters. */ + public clusters: google.cloud.vmwareengine.v1.ICluster[]; - /** DeletePrivateCloudRequest delayHours. */ - public delayHours?: (number|null); + /** ListClustersResponse nextPageToken. */ + public nextPageToken: string; - /** DeletePrivateCloudRequest _delayHours. */ - public _delayHours?: "delayHours"; + /** ListClustersResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new DeletePrivateCloudRequest instance using the specified properties. + * Creates a new ListClustersResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeletePrivateCloudRequest instance + * @returns ListClustersResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest): google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListClustersResponse): google.cloud.vmwareengine.v1.ListClustersResponse; /** - * Encodes the specified DeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. - * @param message DeletePrivateCloudRequest message or plain object to encode + * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. + * @param message ListClustersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. - * @param message DeletePrivateCloudRequest message or plain object to encode + * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. + * @param message ListClustersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer. + * Decodes a ListClustersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeletePrivateCloudRequest + * @returns ListClustersResponse * @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.vmwareengine.v1.DeletePrivateCloudRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListClustersResponse; /** - * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeletePrivateCloudRequest + * @returns ListClustersResponse * @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.vmwareengine.v1.DeletePrivateCloudRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListClustersResponse; /** - * Verifies a DeletePrivateCloudRequest message. + * Verifies a ListClustersResponse 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 DeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeletePrivateCloudRequest + * @returns ListClustersResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListClustersResponse; /** - * Creates a plain object from a DeletePrivateCloudRequest message. Also converts values to other types if specified. - * @param message DeletePrivateCloudRequest + * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. + * @param message ListClustersResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.DeletePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListClustersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeletePrivateCloudRequest to JSON. + * Converts this ListClustersResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeletePrivateCloudRequest + * Gets the default type url for ListClustersResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeletePrivateCloudRequest. */ - interface IUndeletePrivateCloudRequest { + /** Properties of a GetClusterRequest. */ + interface IGetClusterRequest { - /** UndeletePrivateCloudRequest name */ + /** GetClusterRequest name */ name?: (string|null); - - /** UndeletePrivateCloudRequest requestId */ - requestId?: (string|null); } - /** Represents an UndeletePrivateCloudRequest. */ - class UndeletePrivateCloudRequest implements IUndeletePrivateCloudRequest { + /** Represents a GetClusterRequest. */ + class GetClusterRequest implements IGetClusterRequest { /** - * Constructs a new UndeletePrivateCloudRequest. + * Constructs a new GetClusterRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IGetClusterRequest); - /** UndeletePrivateCloudRequest name. */ + /** GetClusterRequest name. */ public name: string; - /** UndeletePrivateCloudRequest requestId. */ - public requestId: string; - /** - * Creates a new UndeletePrivateCloudRequest instance using the specified properties. + * Creates a new GetClusterRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UndeletePrivateCloudRequest instance + * @returns GetClusterRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest): google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IGetClusterRequest): google.cloud.vmwareengine.v1.GetClusterRequest; /** - * Encodes the specified UndeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. - * @param message UndeletePrivateCloudRequest message or plain object to encode + * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. + * @param message GetClusterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. - * @param message UndeletePrivateCloudRequest message or plain object to encode + * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. + * @param message GetClusterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer. + * Decodes a GetClusterRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeletePrivateCloudRequest + * @returns GetClusterRequest * @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.vmwareengine.v1.UndeletePrivateCloudRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetClusterRequest; /** - * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeletePrivateCloudRequest + * @returns GetClusterRequest * @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.vmwareengine.v1.UndeletePrivateCloudRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetClusterRequest; /** - * Verifies an UndeletePrivateCloudRequest message. + * Verifies a GetClusterRequest 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 an UndeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeletePrivateCloudRequest + * @returns GetClusterRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetClusterRequest; /** - * Creates a plain object from an UndeletePrivateCloudRequest message. Also converts values to other types if specified. - * @param message UndeletePrivateCloudRequest + * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified. + * @param message GetClusterRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeletePrivateCloudRequest to JSON. + * Converts this GetClusterRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeletePrivateCloudRequest + * Gets the default type url for GetClusterRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Cluster. */ - interface ICluster { - - /** Cluster name */ - name?: (string|null); - - /** Cluster createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a CreateClusterRequest. */ + interface ICreateClusterRequest { - /** Cluster updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** CreateClusterRequest parent */ + parent?: (string|null); - /** Cluster state */ - state?: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State|null); + /** CreateClusterRequest clusterId */ + clusterId?: (string|null); - /** Cluster management */ - management?: (boolean|null); + /** CreateClusterRequest cluster */ + cluster?: (google.cloud.vmwareengine.v1.ICluster|null); - /** Cluster uid */ - uid?: (string|null); + /** CreateClusterRequest requestId */ + requestId?: (string|null); - /** Cluster nodeTypeConfigs */ - nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null); + /** CreateClusterRequest validateOnly */ + validateOnly?: (boolean|null); } - /** Represents a Cluster. */ - class Cluster implements ICluster { + /** Represents a CreateClusterRequest. */ + class CreateClusterRequest implements ICreateClusterRequest { /** - * Constructs a new Cluster. + * Constructs a new CreateClusterRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICluster); - - /** Cluster name. */ - public name: string; - - /** Cluster createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.vmwareengine.v1.ICreateClusterRequest); - /** Cluster updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** CreateClusterRequest parent. */ + public parent: string; - /** Cluster state. */ - public state: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State); + /** CreateClusterRequest clusterId. */ + public clusterId: string; - /** Cluster management. */ - public management: boolean; + /** CreateClusterRequest cluster. */ + public cluster?: (google.cloud.vmwareengine.v1.ICluster|null); - /** Cluster uid. */ - public uid: string; + /** CreateClusterRequest requestId. */ + public requestId: string; - /** Cluster nodeTypeConfigs. */ - public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }; + /** CreateClusterRequest validateOnly. */ + public validateOnly: boolean; /** - * Creates a new Cluster instance using the specified properties. + * Creates a new CreateClusterRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Cluster instance + * @returns CreateClusterRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICluster): google.cloud.vmwareengine.v1.Cluster; + public static create(properties?: google.cloud.vmwareengine.v1.ICreateClusterRequest): google.cloud.vmwareengine.v1.CreateClusterRequest; /** - * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. - * @param message Cluster message or plain object to encode + * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. + * @param message CreateClusterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. - * @param message Cluster message or plain object to encode + * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. + * @param message CreateClusterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Cluster message from the specified reader or buffer. + * Decodes a CreateClusterRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Cluster + * @returns CreateClusterRequest * @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.vmwareengine.v1.Cluster; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateClusterRequest; /** - * Decodes a Cluster message from the specified reader or buffer, length delimited. + * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Cluster + * @returns CreateClusterRequest * @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.vmwareengine.v1.Cluster; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateClusterRequest; /** - * Verifies a Cluster message. + * Verifies a CreateClusterRequest 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 Cluster message from a plain object. Also converts values to their respective internal types. + * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Cluster + * @returns CreateClusterRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Cluster; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateClusterRequest; /** - * Creates a plain object from a Cluster message. Also converts values to other types if specified. - * @param message Cluster + * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified. + * @param message CreateClusterRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Cluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.CreateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Cluster to JSON. + * Converts this CreateClusterRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Cluster + * Gets the default type url for CreateClusterRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Cluster { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2, - UPDATING = 3, - DELETING = 4, - REPAIRING = 5 - } - } - - /** Properties of a ListClustersRequest. */ - interface IListClustersRequest { - - /** ListClustersRequest parent */ - parent?: (string|null); + /** Properties of an UpdateClusterRequest. */ + interface IUpdateClusterRequest { - /** ListClustersRequest pageSize */ - pageSize?: (number|null); + /** UpdateClusterRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** ListClustersRequest pageToken */ - pageToken?: (string|null); + /** UpdateClusterRequest cluster */ + cluster?: (google.cloud.vmwareengine.v1.ICluster|null); - /** ListClustersRequest filter */ - filter?: (string|null); + /** UpdateClusterRequest requestId */ + requestId?: (string|null); - /** ListClustersRequest orderBy */ - orderBy?: (string|null); + /** UpdateClusterRequest validateOnly */ + validateOnly?: (boolean|null); } - /** Represents a ListClustersRequest. */ - class ListClustersRequest implements IListClustersRequest { + /** Represents an UpdateClusterRequest. */ + class UpdateClusterRequest implements IUpdateClusterRequest { /** - * Constructs a new ListClustersRequest. + * Constructs a new UpdateClusterRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListClustersRequest); - - /** ListClustersRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateClusterRequest); - /** ListClustersRequest pageSize. */ - public pageSize: number; + /** UpdateClusterRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** ListClustersRequest pageToken. */ - public pageToken: string; + /** UpdateClusterRequest cluster. */ + public cluster?: (google.cloud.vmwareengine.v1.ICluster|null); - /** ListClustersRequest filter. */ - public filter: string; + /** UpdateClusterRequest requestId. */ + public requestId: string; - /** ListClustersRequest orderBy. */ - public orderBy: string; + /** UpdateClusterRequest validateOnly. */ + public validateOnly: boolean; /** - * Creates a new ListClustersRequest instance using the specified properties. + * Creates a new UpdateClusterRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListClustersRequest instance + * @returns UpdateClusterRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListClustersRequest): google.cloud.vmwareengine.v1.ListClustersRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateClusterRequest): google.cloud.vmwareengine.v1.UpdateClusterRequest; /** - * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. - * @param message ListClustersRequest message or plain object to encode + * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. + * @param message UpdateClusterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. - * @param message ListClustersRequest message or plain object to encode + * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. + * @param message UpdateClusterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListClustersRequest message from the specified reader or buffer. + * Decodes an UpdateClusterRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListClustersRequest + * @returns UpdateClusterRequest * @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.vmwareengine.v1.ListClustersRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateClusterRequest; /** - * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListClustersRequest + * @returns UpdateClusterRequest * @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.vmwareengine.v1.ListClustersRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateClusterRequest; /** - * Verifies a ListClustersRequest message. + * Verifies an UpdateClusterRequest 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 ListClustersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListClustersRequest + * @returns UpdateClusterRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListClustersRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateClusterRequest; /** - * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. - * @param message ListClustersRequest + * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified. + * @param message UpdateClusterRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListClustersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListClustersRequest to JSON. + * Converts this UpdateClusterRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListClustersRequest + * Gets the default type url for UpdateClusterRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListClustersResponse. */ - interface IListClustersResponse { - - /** ListClustersResponse clusters */ - clusters?: (google.cloud.vmwareengine.v1.ICluster[]|null); + /** Properties of a DeleteClusterRequest. */ + interface IDeleteClusterRequest { - /** ListClustersResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteClusterRequest name */ + name?: (string|null); - /** ListClustersResponse unreachable */ - unreachable?: (string[]|null); + /** DeleteClusterRequest requestId */ + requestId?: (string|null); } - /** Represents a ListClustersResponse. */ - class ListClustersResponse implements IListClustersResponse { + /** Represents a DeleteClusterRequest. */ + class DeleteClusterRequest implements IDeleteClusterRequest { /** - * Constructs a new ListClustersResponse. + * Constructs a new DeleteClusterRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListClustersResponse); - - /** ListClustersResponse clusters. */ - public clusters: google.cloud.vmwareengine.v1.ICluster[]; + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteClusterRequest); - /** ListClustersResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteClusterRequest name. */ + public name: string; - /** ListClustersResponse unreachable. */ - public unreachable: string[]; + /** DeleteClusterRequest requestId. */ + public requestId: string; /** - * Creates a new ListClustersResponse instance using the specified properties. + * Creates a new DeleteClusterRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListClustersResponse instance + * @returns DeleteClusterRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListClustersResponse): google.cloud.vmwareengine.v1.ListClustersResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteClusterRequest): google.cloud.vmwareengine.v1.DeleteClusterRequest; /** - * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. - * @param message ListClustersResponse message or plain object to encode + * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. + * @param message DeleteClusterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. - * @param message ListClustersResponse message or plain object to encode + * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. + * @param message DeleteClusterRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListClustersResponse message from the specified reader or buffer. + * Decodes a DeleteClusterRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListClustersResponse + * @returns DeleteClusterRequest * @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.vmwareengine.v1.ListClustersResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteClusterRequest; /** - * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListClustersResponse + * @returns DeleteClusterRequest * @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.vmwareengine.v1.ListClustersResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteClusterRequest; /** - * Verifies a ListClustersResponse message. + * Verifies a DeleteClusterRequest 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 ListClustersResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListClustersResponse + * @returns DeleteClusterRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListClustersResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteClusterRequest; /** - * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. - * @param message ListClustersResponse + * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. + * @param message DeleteClusterRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListClustersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.DeleteClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListClustersResponse to JSON. + * Converts this DeleteClusterRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListClustersResponse + * Gets the default type url for DeleteClusterRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetClusterRequest. */ - interface IGetClusterRequest { + /** Properties of a ListSubnetsRequest. */ + interface IListSubnetsRequest { - /** GetClusterRequest name */ - name?: (string|null); + /** ListSubnetsRequest parent */ + parent?: (string|null); + + /** ListSubnetsRequest pageSize */ + pageSize?: (number|null); + + /** ListSubnetsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a GetClusterRequest. */ - class GetClusterRequest implements IGetClusterRequest { + /** Represents a ListSubnetsRequest. */ + class ListSubnetsRequest implements IListSubnetsRequest { /** - * Constructs a new GetClusterRequest. + * Constructs a new ListSubnetsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetClusterRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest); - /** GetClusterRequest name. */ - public name: string; + /** ListSubnetsRequest parent. */ + public parent: string; + + /** ListSubnetsRequest pageSize. */ + public pageSize: number; + + /** ListSubnetsRequest pageToken. */ + public pageToken: string; /** - * Creates a new GetClusterRequest instance using the specified properties. + * Creates a new ListSubnetsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetClusterRequest instance + * @returns ListSubnetsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetClusterRequest): google.cloud.vmwareengine.v1.GetClusterRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest): google.cloud.vmwareengine.v1.ListSubnetsRequest; /** - * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. - * @param message GetClusterRequest message or plain object to encode + * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. + * @param message ListSubnetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. - * @param message GetClusterRequest message or plain object to encode + * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. + * @param message ListSubnetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetClusterRequest message from the specified reader or buffer. + * Decodes a ListSubnetsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetClusterRequest + * @returns ListSubnetsRequest * @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.vmwareengine.v1.GetClusterRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListSubnetsRequest; /** - * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetClusterRequest + * @returns ListSubnetsRequest * @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.vmwareengine.v1.GetClusterRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListSubnetsRequest; /** - * Verifies a GetClusterRequest message. + * Verifies a ListSubnetsRequest 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 GetClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSubnetsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetClusterRequest + * @returns ListSubnetsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetClusterRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsRequest; /** - * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified. - * @param message GetClusterRequest + * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified. + * @param message ListSubnetsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetClusterRequest to JSON. + * Converts this ListSubnetsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetClusterRequest + * Gets the default type url for ListSubnetsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateClusterRequest. */ - interface ICreateClusterRequest { - - /** CreateClusterRequest parent */ - parent?: (string|null); - - /** CreateClusterRequest clusterId */ - clusterId?: (string|null); - - /** CreateClusterRequest cluster */ - cluster?: (google.cloud.vmwareengine.v1.ICluster|null); + /** Properties of a ListSubnetsResponse. */ + interface IListSubnetsResponse { - /** CreateClusterRequest requestId */ - requestId?: (string|null); + /** ListSubnetsResponse subnets */ + subnets?: (google.cloud.vmwareengine.v1.ISubnet[]|null); - /** CreateClusterRequest validateOnly */ - validateOnly?: (boolean|null); + /** ListSubnetsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateClusterRequest. */ - class CreateClusterRequest implements ICreateClusterRequest { + /** Represents a ListSubnetsResponse. */ + class ListSubnetsResponse implements IListSubnetsResponse { /** - * Constructs a new CreateClusterRequest. + * Constructs a new ListSubnetsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICreateClusterRequest); - - /** CreateClusterRequest parent. */ - public parent: string; - - /** CreateClusterRequest clusterId. */ - public clusterId: string; - - /** CreateClusterRequest cluster. */ - public cluster?: (google.cloud.vmwareengine.v1.ICluster|null); + constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse); - /** CreateClusterRequest requestId. */ - public requestId: string; + /** ListSubnetsResponse subnets. */ + public subnets: google.cloud.vmwareengine.v1.ISubnet[]; - /** CreateClusterRequest validateOnly. */ - public validateOnly: boolean; + /** ListSubnetsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateClusterRequest instance using the specified properties. + * Creates a new ListSubnetsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateClusterRequest instance + * @returns ListSubnetsResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICreateClusterRequest): google.cloud.vmwareengine.v1.CreateClusterRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse): google.cloud.vmwareengine.v1.ListSubnetsResponse; /** - * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. - * @param message CreateClusterRequest message or plain object to encode + * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. + * @param message ListSubnetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. - * @param message CreateClusterRequest message or plain object to encode + * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. + * @param message ListSubnetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateClusterRequest message from the specified reader or buffer. + * Decodes a ListSubnetsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateClusterRequest + * @returns ListSubnetsResponse * @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.vmwareengine.v1.CreateClusterRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListSubnetsResponse; /** - * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateClusterRequest + * @returns ListSubnetsResponse * @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.vmwareengine.v1.CreateClusterRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListSubnetsResponse; /** - * Verifies a CreateClusterRequest message. + * Verifies a ListSubnetsResponse 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 CreateClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSubnetsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateClusterRequest + * @returns ListSubnetsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateClusterRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsResponse; /** - * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified. - * @param message CreateClusterRequest + * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified. + * @param message ListSubnetsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.CreateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateClusterRequest to JSON. + * Converts this ListSubnetsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateClusterRequest + * Gets the default type url for ListSubnetsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateClusterRequest. */ - interface IUpdateClusterRequest { + /** Properties of an OperationMetadata. */ + interface IOperationMetadata { - /** UpdateClusterRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** OperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** UpdateClusterRequest cluster */ - cluster?: (google.cloud.vmwareengine.v1.ICluster|null); + /** OperationMetadata endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** UpdateClusterRequest requestId */ - requestId?: (string|null); + /** OperationMetadata target */ + target?: (string|null); - /** UpdateClusterRequest validateOnly */ - validateOnly?: (boolean|null); + /** OperationMetadata verb */ + verb?: (string|null); + + /** OperationMetadata statusMessage */ + statusMessage?: (string|null); + + /** OperationMetadata requestedCancellation */ + requestedCancellation?: (boolean|null); + + /** OperationMetadata apiVersion */ + apiVersion?: (string|null); } - /** Represents an UpdateClusterRequest. */ - class UpdateClusterRequest implements IUpdateClusterRequest { + /** Represents an OperationMetadata. */ + class OperationMetadata implements IOperationMetadata { /** - * Constructs a new UpdateClusterRequest. + * Constructs a new OperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IUpdateClusterRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IOperationMetadata); - /** UpdateClusterRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** OperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** UpdateClusterRequest cluster. */ - public cluster?: (google.cloud.vmwareengine.v1.ICluster|null); + /** OperationMetadata endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** UpdateClusterRequest requestId. */ - public requestId: string; + /** OperationMetadata target. */ + public target: string; - /** UpdateClusterRequest validateOnly. */ - public validateOnly: boolean; + /** OperationMetadata verb. */ + public verb: string; + + /** OperationMetadata statusMessage. */ + public statusMessage: string; + + /** OperationMetadata requestedCancellation. */ + public requestedCancellation: boolean; + + /** OperationMetadata apiVersion. */ + public apiVersion: string; /** - * Creates a new UpdateClusterRequest instance using the specified properties. + * Creates a new OperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateClusterRequest instance + * @returns OperationMetadata instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IUpdateClusterRequest): google.cloud.vmwareengine.v1.UpdateClusterRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IOperationMetadata): google.cloud.vmwareengine.v1.OperationMetadata; /** - * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. - * @param message UpdateClusterRequest message or plain object to encode + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. - * @param message UpdateClusterRequest message or plain object to encode + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateClusterRequest message from the specified reader or buffer. + * Decodes an OperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateClusterRequest + * @returns OperationMetadata * @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.vmwareengine.v1.UpdateClusterRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.OperationMetadata; /** - * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited. + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateClusterRequest + * @returns OperationMetadata * @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.vmwareengine.v1.UpdateClusterRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.OperationMetadata; /** - * Verifies an UpdateClusterRequest message. + * Verifies an OperationMetadata 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 an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateClusterRequest + * @returns OperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateClusterRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.OperationMetadata; /** - * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified. - * @param message UpdateClusterRequest + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @param message OperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.UpdateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateClusterRequest to JSON. + * Converts this OperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateClusterRequest + * Gets the default type url for OperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteClusterRequest. */ - interface IDeleteClusterRequest { + /** Properties of a ListNodeTypesRequest. */ + interface IListNodeTypesRequest { - /** DeleteClusterRequest name */ - name?: (string|null); + /** ListNodeTypesRequest parent */ + parent?: (string|null); - /** DeleteClusterRequest requestId */ - requestId?: (string|null); + /** ListNodeTypesRequest pageSize */ + pageSize?: (number|null); + + /** ListNodeTypesRequest pageToken */ + pageToken?: (string|null); + + /** ListNodeTypesRequest filter */ + filter?: (string|null); } - /** Represents a DeleteClusterRequest. */ - class DeleteClusterRequest implements IDeleteClusterRequest { + /** Represents a ListNodeTypesRequest. */ + class ListNodeTypesRequest implements IListNodeTypesRequest { /** - * Constructs a new DeleteClusterRequest. + * Constructs a new ListNodeTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IDeleteClusterRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest); - /** DeleteClusterRequest name. */ - public name: string; + /** ListNodeTypesRequest parent. */ + public parent: string; - /** DeleteClusterRequest requestId. */ - public requestId: string; + /** ListNodeTypesRequest pageSize. */ + public pageSize: number; + + /** ListNodeTypesRequest pageToken. */ + public pageToken: string; + + /** ListNodeTypesRequest filter. */ + public filter: string; /** - * Creates a new DeleteClusterRequest instance using the specified properties. + * Creates a new ListNodeTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteClusterRequest instance + * @returns ListNodeTypesRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IDeleteClusterRequest): google.cloud.vmwareengine.v1.DeleteClusterRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest): google.cloud.vmwareengine.v1.ListNodeTypesRequest; /** - * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. - * @param message DeleteClusterRequest message or plain object to encode + * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. + * @param message ListNodeTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. - * @param message DeleteClusterRequest message or plain object to encode + * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. + * @param message ListNodeTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer. + * Decodes a ListNodeTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteClusterRequest + * @returns ListNodeTypesRequest * @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.vmwareengine.v1.DeleteClusterRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNodeTypesRequest; /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteClusterRequest + * @returns ListNodeTypesRequest * @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.vmwareengine.v1.DeleteClusterRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNodeTypesRequest; /** - * Verifies a DeleteClusterRequest message. + * Verifies a ListNodeTypesRequest 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 DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteClusterRequest + * @returns ListNodeTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteClusterRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesRequest; /** - * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. - * @param message DeleteClusterRequest + * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified. + * @param message ListNodeTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.DeleteClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteClusterRequest to JSON. + * Converts this ListNodeTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteClusterRequest + * Gets the default type url for ListNodeTypesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Subnet. */ - interface ISubnet { - - /** Subnet name */ - name?: (string|null); - - /** Subnet ipCidrRange */ - ipCidrRange?: (string|null); + /** Properties of a ListNodeTypesResponse. */ + interface IListNodeTypesResponse { - /** Subnet gatewayIp */ - gatewayIp?: (string|null); + /** ListNodeTypesResponse nodeTypes */ + nodeTypes?: (google.cloud.vmwareengine.v1.INodeType[]|null); - /** Subnet type */ - type?: (string|null); + /** ListNodeTypesResponse nextPageToken */ + nextPageToken?: (string|null); - /** Subnet state */ - state?: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State|null); + /** ListNodeTypesResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a Subnet. */ - class Subnet implements ISubnet { + /** Represents a ListNodeTypesResponse. */ + class ListNodeTypesResponse implements IListNodeTypesResponse { /** - * Constructs a new Subnet. + * Constructs a new ListNodeTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ISubnet); - - /** Subnet name. */ - public name: string; - - /** Subnet ipCidrRange. */ - public ipCidrRange: string; + constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse); - /** Subnet gatewayIp. */ - public gatewayIp: string; + /** ListNodeTypesResponse nodeTypes. */ + public nodeTypes: google.cloud.vmwareengine.v1.INodeType[]; - /** Subnet type. */ - public type: string; + /** ListNodeTypesResponse nextPageToken. */ + public nextPageToken: string; - /** Subnet state. */ - public state: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State); + /** ListNodeTypesResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new Subnet instance using the specified properties. + * Creates a new ListNodeTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Subnet instance + * @returns ListNodeTypesResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ISubnet): google.cloud.vmwareengine.v1.Subnet; + public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse): google.cloud.vmwareengine.v1.ListNodeTypesResponse; /** - * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. - * @param message Subnet message or plain object to encode + * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. + * @param message ListNodeTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. - * @param message Subnet message or plain object to encode + * Encodes the specified ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. + * @param message ListNodeTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Subnet message from the specified reader or buffer. + * Decodes a ListNodeTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Subnet + * @returns ListNodeTypesResponse * @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.vmwareengine.v1.Subnet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNodeTypesResponse; /** - * Decodes a Subnet message from the specified reader or buffer, length delimited. + * Decodes a ListNodeTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Subnet + * @returns ListNodeTypesResponse * @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.vmwareengine.v1.Subnet; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNodeTypesResponse; /** - * Verifies a Subnet message. + * Verifies a ListNodeTypesResponse 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 Subnet message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Subnet + * @returns ListNodeTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Subnet; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesResponse; /** - * Creates a plain object from a Subnet message. Also converts values to other types if specified. - * @param message Subnet + * Creates a plain object from a ListNodeTypesResponse message. Also converts values to other types if specified. + * @param message ListNodeTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Subnet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Subnet to JSON. + * Converts this ListNodeTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Subnet + * Gets the default type url for ListNodeTypesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Subnet { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2, - UPDATING = 3, - DELETING = 4 - } - } - - /** Properties of a ListSubnetsRequest. */ - interface IListSubnetsRequest { - - /** ListSubnetsRequest parent */ - parent?: (string|null); - - /** ListSubnetsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a GetNodeTypeRequest. */ + interface IGetNodeTypeRequest { - /** ListSubnetsRequest pageToken */ - pageToken?: (string|null); + /** GetNodeTypeRequest name */ + name?: (string|null); } - /** Represents a ListSubnetsRequest. */ - class ListSubnetsRequest implements IListSubnetsRequest { + /** Represents a GetNodeTypeRequest. */ + class GetNodeTypeRequest implements IGetNodeTypeRequest { /** - * Constructs a new ListSubnetsRequest. + * Constructs a new GetNodeTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest); - - /** ListSubnetsRequest parent. */ - public parent: string; - - /** ListSubnetsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest); - /** ListSubnetsRequest pageToken. */ - public pageToken: string; + /** GetNodeTypeRequest name. */ + public name: string; /** - * Creates a new ListSubnetsRequest instance using the specified properties. + * Creates a new GetNodeTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSubnetsRequest instance + * @returns GetNodeTypeRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest): google.cloud.vmwareengine.v1.ListSubnetsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest): google.cloud.vmwareengine.v1.GetNodeTypeRequest; /** - * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. - * @param message ListSubnetsRequest message or plain object to encode + * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. + * @param message GetNodeTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. - * @param message ListSubnetsRequest message or plain object to encode + * Encodes the specified GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. + * @param message GetNodeTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSubnetsRequest message from the specified reader or buffer. + * Decodes a GetNodeTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSubnetsRequest + * @returns GetNodeTypeRequest * @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.vmwareengine.v1.ListSubnetsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetNodeTypeRequest; /** - * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNodeTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSubnetsRequest + * @returns GetNodeTypeRequest * @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.vmwareengine.v1.ListSubnetsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetNodeTypeRequest; /** - * Verifies a ListSubnetsRequest message. + * Verifies a GetNodeTypeRequest 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 ListSubnetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSubnetsRequest + * @returns GetNodeTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNodeTypeRequest; /** - * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified. - * @param message ListSubnetsRequest + * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified. + * @param message GetNodeTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetNodeTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSubnetsRequest to JSON. + * Converts this GetNodeTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSubnetsRequest + * Gets the default type url for GetNodeTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSubnetsResponse. */ - interface IListSubnetsResponse { - - /** ListSubnetsResponse subnets */ - subnets?: (google.cloud.vmwareengine.v1.ISubnet[]|null); + /** Properties of a ShowNsxCredentialsRequest. */ + interface IShowNsxCredentialsRequest { - /** ListSubnetsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ShowNsxCredentialsRequest privateCloud */ + privateCloud?: (string|null); } - /** Represents a ListSubnetsResponse. */ - class ListSubnetsResponse implements IListSubnetsResponse { + /** Represents a ShowNsxCredentialsRequest. */ + class ShowNsxCredentialsRequest implements IShowNsxCredentialsRequest { /** - * Constructs a new ListSubnetsResponse. + * Constructs a new ShowNsxCredentialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse); - - /** ListSubnetsResponse subnets. */ - public subnets: google.cloud.vmwareengine.v1.ISubnet[]; + constructor(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest); - /** ListSubnetsResponse nextPageToken. */ - public nextPageToken: string; + /** ShowNsxCredentialsRequest privateCloud. */ + public privateCloud: string; /** - * Creates a new ListSubnetsResponse instance using the specified properties. + * Creates a new ShowNsxCredentialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSubnetsResponse instance + * @returns ShowNsxCredentialsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse): google.cloud.vmwareengine.v1.ListSubnetsResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; /** - * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. - * @param message ListSubnetsResponse message or plain object to encode + * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. + * @param message ShowNsxCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. - * @param message ListSubnetsResponse message or plain object to encode + * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. + * @param message ShowNsxCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSubnetsResponse message from the specified reader or buffer. + * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSubnetsResponse + * @returns ShowNsxCredentialsRequest * @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.vmwareengine.v1.ListSubnetsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; /** - * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited. + * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSubnetsResponse + * @returns ShowNsxCredentialsRequest * @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.vmwareengine.v1.ListSubnetsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; /** - * Verifies a ListSubnetsResponse message. + * Verifies a ShowNsxCredentialsRequest 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 ListSubnetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSubnetsResponse + * @returns ShowNsxCredentialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; /** - * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified. - * @param message ListSubnetsResponse + * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified. + * @param message ShowNsxCredentialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSubnetsResponse to JSON. + * Converts this ShowNsxCredentialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSubnetsResponse + * Gets the default type url for ShowNsxCredentialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an OperationMetadata. */ - interface IOperationMetadata { - - /** OperationMetadata createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata target */ - target?: (string|null); - - /** OperationMetadata verb */ - verb?: (string|null); - - /** OperationMetadata statusMessage */ - statusMessage?: (string|null); - - /** OperationMetadata requestedCancellation */ - requestedCancellation?: (boolean|null); + /** Properties of a ShowVcenterCredentialsRequest. */ + interface IShowVcenterCredentialsRequest { - /** OperationMetadata apiVersion */ - apiVersion?: (string|null); + /** ShowVcenterCredentialsRequest privateCloud */ + privateCloud?: (string|null); } - /** Represents an OperationMetadata. */ - class OperationMetadata implements IOperationMetadata { + /** Represents a ShowVcenterCredentialsRequest. */ + class ShowVcenterCredentialsRequest implements IShowVcenterCredentialsRequest { /** - * Constructs a new OperationMetadata. + * Constructs a new ShowVcenterCredentialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IOperationMetadata); + constructor(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest); - /** OperationMetadata createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ShowVcenterCredentialsRequest privateCloud. */ + public privateCloud: string; - /** OperationMetadata endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata target. */ - public target: string; - - /** OperationMetadata verb. */ - public verb: string; - - /** OperationMetadata statusMessage. */ - public statusMessage: string; - - /** OperationMetadata requestedCancellation. */ - public requestedCancellation: boolean; - - /** OperationMetadata apiVersion. */ - public apiVersion: string; - - /** - * Creates a new OperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns OperationMetadata instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.IOperationMetadata): google.cloud.vmwareengine.v1.OperationMetadata; + /** + * Creates a new ShowVcenterCredentialsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ShowVcenterCredentialsRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. + * @param message ShowVcenterCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. + * @param message ShowVcenterCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OperationMetadata + * @returns ShowVcenterCredentialsRequest * @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.vmwareengine.v1.OperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OperationMetadata + * @returns ShowVcenterCredentialsRequest * @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.vmwareengine.v1.OperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; /** - * Verifies an OperationMetadata message. + * Verifies a ShowVcenterCredentialsRequest 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 an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OperationMetadata + * @returns ShowVcenterCredentialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.OperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. - * @param message OperationMetadata + * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified. + * @param message ShowVcenterCredentialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OperationMetadata to JSON. + * Converts this ShowVcenterCredentialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for ShowVcenterCredentialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NodeType. */ - interface INodeType { - - /** NodeType name */ - name?: (string|null); - - /** NodeType nodeTypeId */ - nodeTypeId?: (string|null); - - /** NodeType displayName */ - displayName?: (string|null); - - /** NodeType virtualCpuCount */ - virtualCpuCount?: (number|null); - - /** NodeType totalCoreCount */ - totalCoreCount?: (number|null); - - /** NodeType memoryGb */ - memoryGb?: (number|null); + /** Properties of a ResetNsxCredentialsRequest. */ + interface IResetNsxCredentialsRequest { - /** NodeType diskSizeGb */ - diskSizeGb?: (number|null); + /** ResetNsxCredentialsRequest privateCloud */ + privateCloud?: (string|null); - /** NodeType availableCustomCoreCounts */ - availableCustomCoreCounts?: (number[]|null); + /** ResetNsxCredentialsRequest requestId */ + requestId?: (string|null); } - /** Represents a NodeType. */ - class NodeType implements INodeType { + /** Represents a ResetNsxCredentialsRequest. */ + class ResetNsxCredentialsRequest implements IResetNsxCredentialsRequest { /** - * Constructs a new NodeType. + * Constructs a new ResetNsxCredentialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.INodeType); - - /** NodeType name. */ - public name: string; - - /** NodeType nodeTypeId. */ - public nodeTypeId: string; - - /** NodeType displayName. */ - public displayName: string; - - /** NodeType virtualCpuCount. */ - public virtualCpuCount: number; - - /** NodeType totalCoreCount. */ - public totalCoreCount: number; - - /** NodeType memoryGb. */ - public memoryGb: number; + constructor(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest); - /** NodeType diskSizeGb. */ - public diskSizeGb: number; + /** ResetNsxCredentialsRequest privateCloud. */ + public privateCloud: string; - /** NodeType availableCustomCoreCounts. */ - public availableCustomCoreCounts: number[]; + /** ResetNsxCredentialsRequest requestId. */ + public requestId: string; /** - * Creates a new NodeType instance using the specified properties. + * Creates a new ResetNsxCredentialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NodeType instance + * @returns ResetNsxCredentialsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INodeType): google.cloud.vmwareengine.v1.NodeType; + public static create(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; /** - * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. - * @param message NodeType message or plain object to encode + * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * @param message ResetNsxCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. - * @param message NodeType message or plain object to encode + * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * @param message ResetNsxCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodeType message from the specified reader or buffer. + * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodeType + * @returns ResetNsxCredentialsRequest * @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.vmwareengine.v1.NodeType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; /** - * Decodes a NodeType message from the specified reader or buffer, length delimited. + * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NodeType + * @returns ResetNsxCredentialsRequest * @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.vmwareengine.v1.NodeType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; /** - * Verifies a NodeType message. + * Verifies a ResetNsxCredentialsRequest 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 NodeType message from a plain object. Also converts values to their respective internal types. + * Creates a ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NodeType + * @returns ResetNsxCredentialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeType; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; /** - * Creates a plain object from a NodeType message. Also converts values to other types if specified. - * @param message NodeType + * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified. + * @param message ResetNsxCredentialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.NodeType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NodeType to JSON. + * Converts this ResetNsxCredentialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NodeType + * Gets the default type url for ResetNsxCredentialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListNodeTypesRequest. */ - interface IListNodeTypesRequest { - - /** ListNodeTypesRequest parent */ - parent?: (string|null); - - /** ListNodeTypesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ResetVcenterCredentialsRequest. */ + interface IResetVcenterCredentialsRequest { - /** ListNodeTypesRequest pageToken */ - pageToken?: (string|null); + /** ResetVcenterCredentialsRequest privateCloud */ + privateCloud?: (string|null); - /** ListNodeTypesRequest filter */ - filter?: (string|null); + /** ResetVcenterCredentialsRequest requestId */ + requestId?: (string|null); } - /** Represents a ListNodeTypesRequest. */ - class ListNodeTypesRequest implements IListNodeTypesRequest { + /** Represents a ResetVcenterCredentialsRequest. */ + class ResetVcenterCredentialsRequest implements IResetVcenterCredentialsRequest { /** - * Constructs a new ListNodeTypesRequest. + * Constructs a new ResetVcenterCredentialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest); - - /** ListNodeTypesRequest parent. */ - public parent: string; - - /** ListNodeTypesRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest); - /** ListNodeTypesRequest pageToken. */ - public pageToken: string; + /** ResetVcenterCredentialsRequest privateCloud. */ + public privateCloud: string; - /** ListNodeTypesRequest filter. */ - public filter: string; + /** ResetVcenterCredentialsRequest requestId. */ + public requestId: string; /** - * Creates a new ListNodeTypesRequest instance using the specified properties. + * Creates a new ResetVcenterCredentialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListNodeTypesRequest instance + * @returns ResetVcenterCredentialsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest): google.cloud.vmwareengine.v1.ListNodeTypesRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; /** - * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. - * @param message ListNodeTypesRequest message or plain object to encode + * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. + * @param message ResetVcenterCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. - * @param message ListNodeTypesRequest message or plain object to encode + * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. + * @param message ResetVcenterCredentialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNodeTypesRequest message from the specified reader or buffer. + * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNodeTypesRequest + * @returns ResetVcenterCredentialsRequest * @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.vmwareengine.v1.ListNodeTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; /** - * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNodeTypesRequest + * @returns ResetVcenterCredentialsRequest * @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.vmwareengine.v1.ListNodeTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; /** - * Verifies a ListNodeTypesRequest message. + * Verifies a ResetVcenterCredentialsRequest 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 ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNodeTypesRequest + * @returns ResetVcenterCredentialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; /** - * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified. - * @param message ListNodeTypesRequest + * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified. + * @param message ResetVcenterCredentialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNodeTypesRequest to JSON. + * Converts this ResetVcenterCredentialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListNodeTypesRequest + * Gets the default type url for ResetVcenterCredentialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListNodeTypesResponse. */ - interface IListNodeTypesResponse { + /** Properties of a ListHcxActivationKeysResponse. */ + interface IListHcxActivationKeysResponse { - /** ListNodeTypesResponse nodeTypes */ - nodeTypes?: (google.cloud.vmwareengine.v1.INodeType[]|null); + /** ListHcxActivationKeysResponse hcxActivationKeys */ + hcxActivationKeys?: (google.cloud.vmwareengine.v1.IHcxActivationKey[]|null); - /** ListNodeTypesResponse nextPageToken */ + /** ListHcxActivationKeysResponse nextPageToken */ nextPageToken?: (string|null); - /** ListNodeTypesResponse unreachable */ + /** ListHcxActivationKeysResponse unreachable */ unreachable?: (string[]|null); } - /** Represents a ListNodeTypesResponse. */ - class ListNodeTypesResponse implements IListNodeTypesResponse { + /** Represents a ListHcxActivationKeysResponse. */ + class ListHcxActivationKeysResponse implements IListHcxActivationKeysResponse { /** - * Constructs a new ListNodeTypesResponse. + * Constructs a new ListHcxActivationKeysResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse); + constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse); - /** ListNodeTypesResponse nodeTypes. */ - public nodeTypes: google.cloud.vmwareengine.v1.INodeType[]; + /** ListHcxActivationKeysResponse hcxActivationKeys. */ + public hcxActivationKeys: google.cloud.vmwareengine.v1.IHcxActivationKey[]; - /** ListNodeTypesResponse nextPageToken. */ + /** ListHcxActivationKeysResponse nextPageToken. */ public nextPageToken: string; - /** ListNodeTypesResponse unreachable. */ + /** ListHcxActivationKeysResponse unreachable. */ public unreachable: string[]; /** - * Creates a new ListNodeTypesResponse instance using the specified properties. + * Creates a new ListHcxActivationKeysResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListNodeTypesResponse instance + * @returns ListHcxActivationKeysResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse): google.cloud.vmwareengine.v1.ListNodeTypesResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; /** - * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. - * @param message ListNodeTypesResponse message or plain object to encode + * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * @param message ListHcxActivationKeysResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. - * @param message ListNodeTypesResponse message or plain object to encode + * Encodes the specified ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * @param message ListHcxActivationKeysResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNodeTypesResponse message from the specified reader or buffer. + * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNodeTypesResponse + * @returns ListHcxActivationKeysResponse * @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.vmwareengine.v1.ListNodeTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; /** - * Decodes a ListNodeTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNodeTypesResponse + * @returns ListHcxActivationKeysResponse * @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.vmwareengine.v1.ListNodeTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; /** - * Verifies a ListNodeTypesResponse message. + * Verifies a ListHcxActivationKeysResponse 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 ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNodeTypesResponse + * @returns ListHcxActivationKeysResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; /** - * Creates a plain object from a ListNodeTypesResponse message. Also converts values to other types if specified. - * @param message ListNodeTypesResponse + * Creates a plain object from a ListHcxActivationKeysResponse message. Also converts values to other types if specified. + * @param message ListHcxActivationKeysResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNodeTypesResponse to JSON. + * Converts this ListHcxActivationKeysResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListNodeTypesResponse + * Gets the default type url for ListHcxActivationKeysResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetNodeTypeRequest. */ - interface IGetNodeTypeRequest { + /** Properties of a ListHcxActivationKeysRequest. */ + interface IListHcxActivationKeysRequest { - /** GetNodeTypeRequest name */ - name?: (string|null); + /** ListHcxActivationKeysRequest parent */ + parent?: (string|null); + + /** ListHcxActivationKeysRequest pageSize */ + pageSize?: (number|null); + + /** ListHcxActivationKeysRequest pageToken */ + pageToken?: (string|null); } - /** Represents a GetNodeTypeRequest. */ - class GetNodeTypeRequest implements IGetNodeTypeRequest { + /** Represents a ListHcxActivationKeysRequest. */ + class ListHcxActivationKeysRequest implements IListHcxActivationKeysRequest { /** - * Constructs a new GetNodeTypeRequest. + * Constructs a new ListHcxActivationKeysRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest); - /** GetNodeTypeRequest name. */ - public name: string; + /** ListHcxActivationKeysRequest parent. */ + public parent: string; + + /** ListHcxActivationKeysRequest pageSize. */ + public pageSize: number; + + /** ListHcxActivationKeysRequest pageToken. */ + public pageToken: string; /** - * Creates a new GetNodeTypeRequest instance using the specified properties. + * Creates a new ListHcxActivationKeysRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetNodeTypeRequest instance + * @returns ListHcxActivationKeysRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest): google.cloud.vmwareengine.v1.GetNodeTypeRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; /** - * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. - * @param message GetNodeTypeRequest message or plain object to encode + * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. + * @param message ListHcxActivationKeysRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. - * @param message GetNodeTypeRequest message or plain object to encode + * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. + * @param message ListHcxActivationKeysRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetNodeTypeRequest message from the specified reader or buffer. + * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetNodeTypeRequest + * @returns ListHcxActivationKeysRequest * @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.vmwareengine.v1.GetNodeTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; /** - * Decodes a GetNodeTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetNodeTypeRequest + * @returns ListHcxActivationKeysRequest * @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.vmwareengine.v1.GetNodeTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; /** - * Verifies a GetNodeTypeRequest message. + * Verifies a ListHcxActivationKeysRequest 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 GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetNodeTypeRequest + * @returns ListHcxActivationKeysRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNodeTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; /** - * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified. - * @param message GetNodeTypeRequest + * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified. + * @param message ListHcxActivationKeysRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetNodeTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetNodeTypeRequest to JSON. + * Converts this ListHcxActivationKeysRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetNodeTypeRequest + * Gets the default type url for ListHcxActivationKeysRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Credentials. */ - interface ICredentials { - - /** Credentials username */ - username?: (string|null); + /** Properties of a GetHcxActivationKeyRequest. */ + interface IGetHcxActivationKeyRequest { - /** Credentials password */ - password?: (string|null); + /** GetHcxActivationKeyRequest name */ + name?: (string|null); } - /** Represents a Credentials. */ - class Credentials implements ICredentials { + /** Represents a GetHcxActivationKeyRequest. */ + class GetHcxActivationKeyRequest implements IGetHcxActivationKeyRequest { /** - * Constructs a new Credentials. + * Constructs a new GetHcxActivationKeyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICredentials); - - /** Credentials username. */ - public username: string; + constructor(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest); - /** Credentials password. */ - public password: string; + /** GetHcxActivationKeyRequest name. */ + public name: string; /** - * Creates a new Credentials instance using the specified properties. + * Creates a new GetHcxActivationKeyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Credentials instance + * @returns GetHcxActivationKeyRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICredentials): google.cloud.vmwareengine.v1.Credentials; + public static create(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; /** - * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. - * @param message Credentials message or plain object to encode + * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. + * @param message GetHcxActivationKeyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. - * @param message Credentials message or plain object to encode + * Encodes the specified GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. + * @param message GetHcxActivationKeyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Credentials message from the specified reader or buffer. + * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Credentials + * @returns GetHcxActivationKeyRequest * @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.vmwareengine.v1.Credentials; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; /** - * Decodes a Credentials message from the specified reader or buffer, length delimited. + * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Credentials + * @returns GetHcxActivationKeyRequest * @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.vmwareengine.v1.Credentials; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; /** - * Verifies a Credentials message. + * Verifies a GetHcxActivationKeyRequest 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 Credentials message from a plain object. Also converts values to their respective internal types. + * Creates a GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Credentials + * @returns GetHcxActivationKeyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Credentials; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; /** - * Creates a plain object from a Credentials message. Also converts values to other types if specified. - * @param message Credentials + * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified. + * @param message GetHcxActivationKeyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Credentials, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Credentials to JSON. + * Converts this GetHcxActivationKeyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Credentials + * Gets the default type url for GetHcxActivationKeyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShowNsxCredentialsRequest. */ - interface IShowNsxCredentialsRequest { + /** Properties of a CreateHcxActivationKeyRequest. */ + interface ICreateHcxActivationKeyRequest { - /** ShowNsxCredentialsRequest privateCloud */ - privateCloud?: (string|null); - } + /** CreateHcxActivationKeyRequest parent */ + parent?: (string|null); - /** Represents a ShowNsxCredentialsRequest. */ - class ShowNsxCredentialsRequest implements IShowNsxCredentialsRequest { + /** CreateHcxActivationKeyRequest hcxActivationKey */ + hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null); - /** - * Constructs a new ShowNsxCredentialsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest); + /** CreateHcxActivationKeyRequest hcxActivationKeyId */ + hcxActivationKeyId?: (string|null); - /** ShowNsxCredentialsRequest privateCloud. */ - public privateCloud: string; + /** CreateHcxActivationKeyRequest requestId */ + requestId?: (string|null); + } + + /** Represents a CreateHcxActivationKeyRequest. */ + class CreateHcxActivationKeyRequest implements ICreateHcxActivationKeyRequest { /** - * Creates a new ShowNsxCredentialsRequest instance using the specified properties. + * Constructs a new CreateHcxActivationKeyRequest. * @param [properties] Properties to set - * @returns ShowNsxCredentialsRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; + constructor(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest); + + /** CreateHcxActivationKeyRequest parent. */ + public parent: string; + + /** CreateHcxActivationKeyRequest hcxActivationKey. */ + public hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null); + + /** CreateHcxActivationKeyRequest hcxActivationKeyId. */ + public hcxActivationKeyId: string; + + /** CreateHcxActivationKeyRequest requestId. */ + public requestId: string; /** - * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. - * @param message ShowNsxCredentialsRequest message or plain object to encode + * Creates a new CreateHcxActivationKeyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateHcxActivationKeyRequest instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + + /** + * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. + * @param message CreateHcxActivationKeyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. - * @param message ShowNsxCredentialsRequest message or plain object to encode + * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. + * @param message CreateHcxActivationKeyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer. + * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShowNsxCredentialsRequest + * @returns CreateHcxActivationKeyRequest * @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.vmwareengine.v1.ShowNsxCredentialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; /** - * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShowNsxCredentialsRequest + * @returns CreateHcxActivationKeyRequest * @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.vmwareengine.v1.ShowNsxCredentialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; /** - * Verifies a ShowNsxCredentialsRequest message. + * Verifies a CreateHcxActivationKeyRequest 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 ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShowNsxCredentialsRequest + * @returns CreateHcxActivationKeyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; /** - * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified. - * @param message ShowNsxCredentialsRequest + * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified. + * @param message CreateHcxActivationKeyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShowNsxCredentialsRequest to JSON. + * Converts this CreateHcxActivationKeyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShowNsxCredentialsRequest + * Gets the default type url for CreateHcxActivationKeyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ShowVcenterCredentialsRequest. */ - interface IShowVcenterCredentialsRequest { + /** Properties of a ListNetworkPoliciesRequest. */ + interface IListNetworkPoliciesRequest { - /** ShowVcenterCredentialsRequest privateCloud */ - privateCloud?: (string|null); + /** ListNetworkPoliciesRequest parent */ + parent?: (string|null); + + /** ListNetworkPoliciesRequest pageSize */ + pageSize?: (number|null); + + /** ListNetworkPoliciesRequest pageToken */ + pageToken?: (string|null); + + /** ListNetworkPoliciesRequest filter */ + filter?: (string|null); + + /** ListNetworkPoliciesRequest orderBy */ + orderBy?: (string|null); } - /** Represents a ShowVcenterCredentialsRequest. */ - class ShowVcenterCredentialsRequest implements IShowVcenterCredentialsRequest { + /** Represents a ListNetworkPoliciesRequest. */ + class ListNetworkPoliciesRequest implements IListNetworkPoliciesRequest { /** - * Constructs a new ShowVcenterCredentialsRequest. + * Constructs a new ListNetworkPoliciesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest); - /** ShowVcenterCredentialsRequest privateCloud. */ - public privateCloud: string; + /** ListNetworkPoliciesRequest parent. */ + public parent: string; + + /** ListNetworkPoliciesRequest pageSize. */ + public pageSize: number; + + /** ListNetworkPoliciesRequest pageToken. */ + public pageToken: string; + + /** ListNetworkPoliciesRequest filter. */ + public filter: string; + + /** ListNetworkPoliciesRequest orderBy. */ + public orderBy: string; /** - * Creates a new ShowVcenterCredentialsRequest instance using the specified properties. + * Creates a new ListNetworkPoliciesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShowVcenterCredentialsRequest instance + * @returns ListNetworkPoliciesRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; /** - * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. - * @param message ShowVcenterCredentialsRequest message or plain object to encode + * Encodes the specified ListNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. + * @param message ListNetworkPoliciesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. - * @param message ShowVcenterCredentialsRequest message or plain object to encode + * Encodes the specified ListNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. + * @param message ListNetworkPoliciesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer. + * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShowVcenterCredentialsRequest + * @returns ListNetworkPoliciesRequest * @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.vmwareengine.v1.ShowVcenterCredentialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; /** - * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShowVcenterCredentialsRequest + * @returns ListNetworkPoliciesRequest * @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.vmwareengine.v1.ShowVcenterCredentialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; /** - * Verifies a ShowVcenterCredentialsRequest message. + * Verifies a ListNetworkPoliciesRequest 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 ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShowVcenterCredentialsRequest + * @returns ListNetworkPoliciesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; /** - * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified. - * @param message ShowVcenterCredentialsRequest + * Creates a plain object from a ListNetworkPoliciesRequest message. Also converts values to other types if specified. + * @param message ListNetworkPoliciesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShowVcenterCredentialsRequest to JSON. + * Converts this ListNetworkPoliciesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShowVcenterCredentialsRequest + * Gets the default type url for ListNetworkPoliciesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetNsxCredentialsRequest. */ - interface IResetNsxCredentialsRequest { + /** Properties of a ListNetworkPoliciesResponse. */ + interface IListNetworkPoliciesResponse { - /** ResetNsxCredentialsRequest privateCloud */ - privateCloud?: (string|null); + /** ListNetworkPoliciesResponse networkPolicies */ + networkPolicies?: (google.cloud.vmwareengine.v1.INetworkPolicy[]|null); - /** ResetNsxCredentialsRequest requestId */ - requestId?: (string|null); + /** ListNetworkPoliciesResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListNetworkPoliciesResponse unreachable */ + unreachable?: (string[]|null); } - /** Represents a ResetNsxCredentialsRequest. */ - class ResetNsxCredentialsRequest implements IResetNsxCredentialsRequest { + /** Represents a ListNetworkPoliciesResponse. */ + class ListNetworkPoliciesResponse implements IListNetworkPoliciesResponse { /** - * Constructs a new ResetNsxCredentialsRequest. + * Constructs a new ListNetworkPoliciesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse); - /** ResetNsxCredentialsRequest privateCloud. */ - public privateCloud: string; + /** ListNetworkPoliciesResponse networkPolicies. */ + public networkPolicies: google.cloud.vmwareengine.v1.INetworkPolicy[]; - /** ResetNsxCredentialsRequest requestId. */ - public requestId: string; + /** ListNetworkPoliciesResponse nextPageToken. */ + public nextPageToken: string; + + /** ListNetworkPoliciesResponse unreachable. */ + public unreachable: string[]; /** - * Creates a new ResetNsxCredentialsRequest instance using the specified properties. + * Creates a new ListNetworkPoliciesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ResetNsxCredentialsRequest instance + * @returns ListNetworkPoliciesResponse instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; /** - * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. - * @param message ResetNsxCredentialsRequest message or plain object to encode + * Encodes the specified ListNetworkPoliciesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * @param message ListNetworkPoliciesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. - * @param message ResetNsxCredentialsRequest message or plain object to encode + * Encodes the specified ListNetworkPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * @param message ListNetworkPoliciesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer. + * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetNsxCredentialsRequest + * @returns ListNetworkPoliciesResponse * @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.vmwareengine.v1.ResetNsxCredentialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; /** - * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetNsxCredentialsRequest + * @returns ListNetworkPoliciesResponse * @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.vmwareengine.v1.ResetNsxCredentialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; /** - * Verifies a ResetNsxCredentialsRequest message. + * Verifies a ListNetworkPoliciesResponse 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 ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPoliciesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetNsxCredentialsRequest + * @returns ListNetworkPoliciesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; /** - * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified. - * @param message ResetNsxCredentialsRequest + * Creates a plain object from a ListNetworkPoliciesResponse message. Also converts values to other types if specified. + * @param message ListNetworkPoliciesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetNsxCredentialsRequest to JSON. + * Converts this ListNetworkPoliciesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetNsxCredentialsRequest + * Gets the default type url for ListNetworkPoliciesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResetVcenterCredentialsRequest. */ - interface IResetVcenterCredentialsRequest { - - /** ResetVcenterCredentialsRequest privateCloud */ - privateCloud?: (string|null); + /** Properties of a GetNetworkPolicyRequest. */ + interface IGetNetworkPolicyRequest { - /** ResetVcenterCredentialsRequest requestId */ - requestId?: (string|null); + /** GetNetworkPolicyRequest name */ + name?: (string|null); } - /** Represents a ResetVcenterCredentialsRequest. */ - class ResetVcenterCredentialsRequest implements IResetVcenterCredentialsRequest { + /** Represents a GetNetworkPolicyRequest. */ + class GetNetworkPolicyRequest implements IGetNetworkPolicyRequest { /** - * Constructs a new ResetVcenterCredentialsRequest. + * Constructs a new GetNetworkPolicyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest); - - /** ResetVcenterCredentialsRequest privateCloud. */ - public privateCloud: string; + constructor(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest); - /** ResetVcenterCredentialsRequest requestId. */ - public requestId: string; + /** GetNetworkPolicyRequest name. */ + public name: string; /** - * Creates a new ResetVcenterCredentialsRequest instance using the specified properties. + * Creates a new GetNetworkPolicyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResetVcenterCredentialsRequest instance + * @returns GetNetworkPolicyRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; /** - * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. - * @param message ResetVcenterCredentialsRequest message or plain object to encode + * Encodes the specified GetNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * @param message GetNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. - * @param message ResetVcenterCredentialsRequest message or plain object to encode + * Encodes the specified GetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * @param message GetNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer. + * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResetVcenterCredentialsRequest + * @returns GetNetworkPolicyRequest * @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.vmwareengine.v1.ResetVcenterCredentialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; /** - * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResetVcenterCredentialsRequest + * @returns GetNetworkPolicyRequest * @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.vmwareengine.v1.ResetVcenterCredentialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; /** - * Verifies a ResetVcenterCredentialsRequest message. + * Verifies a GetNetworkPolicyRequest 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 ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResetVcenterCredentialsRequest + * @returns GetNetworkPolicyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; /** - * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified. - * @param message ResetVcenterCredentialsRequest + * Creates a plain object from a GetNetworkPolicyRequest message. Also converts values to other types if specified. + * @param message GetNetworkPolicyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResetVcenterCredentialsRequest to JSON. + * Converts this GetNetworkPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResetVcenterCredentialsRequest + * Gets the default type url for GetNetworkPolicyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListHcxActivationKeysResponse. */ - interface IListHcxActivationKeysResponse { + /** Properties of an UpdateNetworkPolicyRequest. */ + interface IUpdateNetworkPolicyRequest { - /** ListHcxActivationKeysResponse hcxActivationKeys */ - hcxActivationKeys?: (google.cloud.vmwareengine.v1.IHcxActivationKey[]|null); + /** UpdateNetworkPolicyRequest networkPolicy */ + networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); - /** ListHcxActivationKeysResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateNetworkPolicyRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** ListHcxActivationKeysResponse unreachable */ - unreachable?: (string[]|null); + /** UpdateNetworkPolicyRequest requestId */ + requestId?: (string|null); } - /** Represents a ListHcxActivationKeysResponse. */ - class ListHcxActivationKeysResponse implements IListHcxActivationKeysResponse { + /** Represents an UpdateNetworkPolicyRequest. */ + class UpdateNetworkPolicyRequest implements IUpdateNetworkPolicyRequest { /** - * Constructs a new ListHcxActivationKeysResponse. + * Constructs a new UpdateNetworkPolicyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse); + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest); - /** ListHcxActivationKeysResponse hcxActivationKeys. */ - public hcxActivationKeys: google.cloud.vmwareengine.v1.IHcxActivationKey[]; + /** UpdateNetworkPolicyRequest networkPolicy. */ + public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); - /** ListHcxActivationKeysResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateNetworkPolicyRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** ListHcxActivationKeysResponse unreachable. */ - public unreachable: string[]; + /** UpdateNetworkPolicyRequest requestId. */ + public requestId: string; /** - * Creates a new ListHcxActivationKeysResponse instance using the specified properties. + * Creates a new UpdateNetworkPolicyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHcxActivationKeysResponse instance + * @returns UpdateNetworkPolicyRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; /** - * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. - * @param message ListHcxActivationKeysResponse message or plain object to encode + * Encodes the specified UpdateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * @param message UpdateNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. - * @param message ListHcxActivationKeysResponse message or plain object to encode + * Encodes the specified UpdateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * @param message UpdateNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer. + * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHcxActivationKeysResponse + * @returns UpdateNetworkPolicyRequest * @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.vmwareengine.v1.ListHcxActivationKeysResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; /** - * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHcxActivationKeysResponse + * @returns UpdateNetworkPolicyRequest * @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.vmwareengine.v1.ListHcxActivationKeysResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; /** - * Verifies a ListHcxActivationKeysResponse message. + * Verifies an UpdateNetworkPolicyRequest 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 ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHcxActivationKeysResponse + * @returns UpdateNetworkPolicyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; /** - * Creates a plain object from a ListHcxActivationKeysResponse message. Also converts values to other types if specified. - * @param message ListHcxActivationKeysResponse + * Creates a plain object from an UpdateNetworkPolicyRequest message. Also converts values to other types if specified. + * @param message UpdateNetworkPolicyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHcxActivationKeysResponse to JSON. + * Converts this UpdateNetworkPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHcxActivationKeysResponse + * Gets the default type url for UpdateNetworkPolicyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a HcxActivationKey. */ - interface IHcxActivationKey { - - /** HcxActivationKey name */ - name?: (string|null); + /** Properties of a CreateNetworkPolicyRequest. */ + interface ICreateNetworkPolicyRequest { - /** HcxActivationKey createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** CreateNetworkPolicyRequest parent */ + parent?: (string|null); - /** HcxActivationKey state */ - state?: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State|null); + /** CreateNetworkPolicyRequest networkPolicyId */ + networkPolicyId?: (string|null); - /** HcxActivationKey activationKey */ - activationKey?: (string|null); + /** CreateNetworkPolicyRequest networkPolicy */ + networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); - /** HcxActivationKey uid */ - uid?: (string|null); + /** CreateNetworkPolicyRequest requestId */ + requestId?: (string|null); } - /** Represents a HcxActivationKey. */ - class HcxActivationKey implements IHcxActivationKey { + /** Represents a CreateNetworkPolicyRequest. */ + class CreateNetworkPolicyRequest implements ICreateNetworkPolicyRequest { /** - * Constructs a new HcxActivationKey. + * Constructs a new CreateNetworkPolicyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey); - - /** HcxActivationKey name. */ - public name: string; + constructor(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest); - /** HcxActivationKey createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** CreateNetworkPolicyRequest parent. */ + public parent: string; - /** HcxActivationKey state. */ - public state: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State); + /** CreateNetworkPolicyRequest networkPolicyId. */ + public networkPolicyId: string; - /** HcxActivationKey activationKey. */ - public activationKey: string; + /** CreateNetworkPolicyRequest networkPolicy. */ + public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); - /** HcxActivationKey uid. */ - public uid: string; + /** CreateNetworkPolicyRequest requestId. */ + public requestId: string; /** - * Creates a new HcxActivationKey instance using the specified properties. + * Creates a new CreateNetworkPolicyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns HcxActivationKey instance + * @returns CreateNetworkPolicyRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey): google.cloud.vmwareengine.v1.HcxActivationKey; + public static create(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; /** - * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. - * @param message HcxActivationKey message or plain object to encode + * Encodes the specified CreateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * @param message CreateNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. - * @param message HcxActivationKey message or plain object to encode + * Encodes the specified CreateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * @param message CreateNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HcxActivationKey message from the specified reader or buffer. + * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HcxActivationKey + * @returns CreateNetworkPolicyRequest * @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.vmwareengine.v1.HcxActivationKey; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; /** - * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited. + * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HcxActivationKey + * @returns CreateNetworkPolicyRequest * @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.vmwareengine.v1.HcxActivationKey; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; /** - * Verifies a HcxActivationKey message. + * Verifies a CreateNetworkPolicyRequest 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 HcxActivationKey message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HcxActivationKey + * @returns CreateNetworkPolicyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.HcxActivationKey; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; /** - * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified. - * @param message HcxActivationKey + * Creates a plain object from a CreateNetworkPolicyRequest message. Also converts values to other types if specified. + * @param message CreateNetworkPolicyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.HcxActivationKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HcxActivationKey to JSON. + * Converts this CreateNetworkPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HcxActivationKey + * Gets the default type url for CreateNetworkPolicyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace HcxActivationKey { + /** Properties of a DeleteNetworkPolicyRequest. */ + interface IDeleteNetworkPolicyRequest { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - AVAILABLE = 1, - CONSUMED = 2, - CREATING = 3 - } - } - - /** Properties of a ListHcxActivationKeysRequest. */ - interface IListHcxActivationKeysRequest { - - /** ListHcxActivationKeysRequest parent */ - parent?: (string|null); - - /** ListHcxActivationKeysRequest pageSize */ - pageSize?: (number|null); + /** DeleteNetworkPolicyRequest name */ + name?: (string|null); - /** ListHcxActivationKeysRequest pageToken */ - pageToken?: (string|null); + /** DeleteNetworkPolicyRequest requestId */ + requestId?: (string|null); } - /** Represents a ListHcxActivationKeysRequest. */ - class ListHcxActivationKeysRequest implements IListHcxActivationKeysRequest { + /** Represents a DeleteNetworkPolicyRequest. */ + class DeleteNetworkPolicyRequest implements IDeleteNetworkPolicyRequest { /** - * Constructs a new ListHcxActivationKeysRequest. + * Constructs a new DeleteNetworkPolicyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest); - - /** ListHcxActivationKeysRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest); - /** ListHcxActivationKeysRequest pageSize. */ - public pageSize: number; + /** DeleteNetworkPolicyRequest name. */ + public name: string; - /** ListHcxActivationKeysRequest pageToken. */ - public pageToken: string; + /** DeleteNetworkPolicyRequest requestId. */ + public requestId: string; /** - * Creates a new ListHcxActivationKeysRequest instance using the specified properties. + * Creates a new DeleteNetworkPolicyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHcxActivationKeysRequest instance + * @returns DeleteNetworkPolicyRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; /** - * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. - * @param message ListHcxActivationKeysRequest message or plain object to encode + * Encodes the specified DeleteNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * @param message DeleteNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. - * @param message ListHcxActivationKeysRequest message or plain object to encode + * Encodes the specified DeleteNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * @param message DeleteNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer. + * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHcxActivationKeysRequest + * @returns DeleteNetworkPolicyRequest * @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.vmwareengine.v1.ListHcxActivationKeysRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; /** - * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHcxActivationKeysRequest + * @returns DeleteNetworkPolicyRequest * @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.vmwareengine.v1.ListHcxActivationKeysRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; /** - * Verifies a ListHcxActivationKeysRequest message. + * Verifies a DeleteNetworkPolicyRequest 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 ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHcxActivationKeysRequest + * @returns DeleteNetworkPolicyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; /** - * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified. - * @param message ListHcxActivationKeysRequest + * Creates a plain object from a DeleteNetworkPolicyRequest message. Also converts values to other types if specified. + * @param message DeleteNetworkPolicyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHcxActivationKeysRequest to JSON. + * Converts this DeleteNetworkPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHcxActivationKeysRequest + * Gets the default type url for DeleteNetworkPolicyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetHcxActivationKeyRequest. */ - interface IGetHcxActivationKeyRequest { + /** Properties of a CreateVmwareEngineNetworkRequest. */ + interface ICreateVmwareEngineNetworkRequest { - /** GetHcxActivationKeyRequest name */ - name?: (string|null); + /** CreateVmwareEngineNetworkRequest parent */ + parent?: (string|null); + + /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId */ + vmwareEngineNetworkId?: (string|null); + + /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork */ + vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); + + /** CreateVmwareEngineNetworkRequest requestId */ + requestId?: (string|null); } - /** Represents a GetHcxActivationKeyRequest. */ - class GetHcxActivationKeyRequest implements IGetHcxActivationKeyRequest { + /** Represents a CreateVmwareEngineNetworkRequest. */ + class CreateVmwareEngineNetworkRequest implements ICreateVmwareEngineNetworkRequest { /** - * Constructs a new GetHcxActivationKeyRequest. + * Constructs a new CreateVmwareEngineNetworkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest); + constructor(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest); - /** GetHcxActivationKeyRequest name. */ - public name: string; + /** CreateVmwareEngineNetworkRequest parent. */ + public parent: string; + + /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId. */ + public vmwareEngineNetworkId: string; + + /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork. */ + public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); + + /** CreateVmwareEngineNetworkRequest requestId. */ + public requestId: string; /** - * Creates a new GetHcxActivationKeyRequest instance using the specified properties. + * Creates a new CreateVmwareEngineNetworkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetHcxActivationKeyRequest instance + * @returns CreateVmwareEngineNetworkRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; /** - * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. - * @param message GetHcxActivationKeyRequest message or plain object to encode + * Encodes the specified CreateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * @param message CreateVmwareEngineNetworkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. - * @param message GetHcxActivationKeyRequest message or plain object to encode + * Encodes the specified CreateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * @param message CreateVmwareEngineNetworkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer. + * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetHcxActivationKeyRequest + * @returns CreateVmwareEngineNetworkRequest * @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.vmwareengine.v1.GetHcxActivationKeyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; /** - * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetHcxActivationKeyRequest + * @returns CreateVmwareEngineNetworkRequest * @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.vmwareengine.v1.GetHcxActivationKeyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; /** - * Verifies a GetHcxActivationKeyRequest message. + * Verifies a CreateVmwareEngineNetworkRequest 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 GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetHcxActivationKeyRequest + * @returns CreateVmwareEngineNetworkRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; /** - * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified. - * @param message GetHcxActivationKeyRequest + * Creates a plain object from a CreateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @param message CreateVmwareEngineNetworkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetHcxActivationKeyRequest to JSON. + * Converts this CreateVmwareEngineNetworkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetHcxActivationKeyRequest + * Gets the default type url for CreateVmwareEngineNetworkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateHcxActivationKeyRequest. */ - interface ICreateHcxActivationKeyRequest { - - /** CreateHcxActivationKeyRequest parent */ - parent?: (string|null); + /** Properties of an UpdateVmwareEngineNetworkRequest. */ + interface IUpdateVmwareEngineNetworkRequest { - /** CreateHcxActivationKeyRequest hcxActivationKey */ - hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null); + /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork */ + vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); - /** CreateHcxActivationKeyRequest hcxActivationKeyId */ - hcxActivationKeyId?: (string|null); + /** UpdateVmwareEngineNetworkRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** CreateHcxActivationKeyRequest requestId */ + /** UpdateVmwareEngineNetworkRequest requestId */ requestId?: (string|null); } - /** Represents a CreateHcxActivationKeyRequest. */ - class CreateHcxActivationKeyRequest implements ICreateHcxActivationKeyRequest { + /** Represents an UpdateVmwareEngineNetworkRequest. */ + class UpdateVmwareEngineNetworkRequest implements IUpdateVmwareEngineNetworkRequest { /** - * Constructs a new CreateHcxActivationKeyRequest. + * Constructs a new UpdateVmwareEngineNetworkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest); - - /** CreateHcxActivationKeyRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest); - /** CreateHcxActivationKeyRequest hcxActivationKey. */ - public hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null); + /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork. */ + public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); - /** CreateHcxActivationKeyRequest hcxActivationKeyId. */ - public hcxActivationKeyId: string; + /** UpdateVmwareEngineNetworkRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** CreateHcxActivationKeyRequest requestId. */ + /** UpdateVmwareEngineNetworkRequest requestId. */ public requestId: string; /** - * Creates a new CreateHcxActivationKeyRequest instance using the specified properties. + * Creates a new UpdateVmwareEngineNetworkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateHcxActivationKeyRequest instance + * @returns UpdateVmwareEngineNetworkRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; /** - * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. - * @param message CreateHcxActivationKeyRequest message or plain object to encode + * Encodes the specified UpdateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. - * @param message CreateHcxActivationKeyRequest message or plain object to encode + * Encodes the specified UpdateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer. + * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateHcxActivationKeyRequest + * @returns UpdateVmwareEngineNetworkRequest * @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.vmwareengine.v1.CreateHcxActivationKeyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; /** - * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateHcxActivationKeyRequest + * @returns UpdateVmwareEngineNetworkRequest * @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.vmwareengine.v1.CreateHcxActivationKeyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; /** - * Verifies a CreateHcxActivationKeyRequest message. + * Verifies an UpdateVmwareEngineNetworkRequest 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 CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateHcxActivationKeyRequest + * @returns UpdateVmwareEngineNetworkRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; /** - * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified. - * @param message CreateHcxActivationKeyRequest + * Creates a plain object from an UpdateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @param message UpdateVmwareEngineNetworkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateHcxActivationKeyRequest to JSON. + * Converts this UpdateVmwareEngineNetworkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateHcxActivationKeyRequest + * Gets the default type url for UpdateVmwareEngineNetworkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Hcx. */ - interface IHcx { - - /** Hcx internalIp */ - internalIp?: (string|null); + /** Properties of a DeleteVmwareEngineNetworkRequest. */ + interface IDeleteVmwareEngineNetworkRequest { - /** Hcx version */ - version?: (string|null); + /** DeleteVmwareEngineNetworkRequest name */ + name?: (string|null); - /** Hcx state */ - state?: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State|null); + /** DeleteVmwareEngineNetworkRequest requestId */ + requestId?: (string|null); - /** Hcx fqdn */ - fqdn?: (string|null); + /** DeleteVmwareEngineNetworkRequest etag */ + etag?: (string|null); } - /** Represents a Hcx. */ - class Hcx implements IHcx { + /** Represents a DeleteVmwareEngineNetworkRequest. */ + class DeleteVmwareEngineNetworkRequest implements IDeleteVmwareEngineNetworkRequest { /** - * Constructs a new Hcx. + * Constructs a new DeleteVmwareEngineNetworkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IHcx); - - /** Hcx internalIp. */ - public internalIp: string; + constructor(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest); - /** Hcx version. */ - public version: string; + /** DeleteVmwareEngineNetworkRequest name. */ + public name: string; - /** Hcx state. */ - public state: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State); + /** DeleteVmwareEngineNetworkRequest requestId. */ + public requestId: string; - /** Hcx fqdn. */ - public fqdn: string; + /** DeleteVmwareEngineNetworkRequest etag. */ + public etag: string; /** - * Creates a new Hcx instance using the specified properties. + * Creates a new DeleteVmwareEngineNetworkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Hcx instance + * @returns DeleteVmwareEngineNetworkRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IHcx): google.cloud.vmwareengine.v1.Hcx; + public static create(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; /** - * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. - * @param message Hcx message or plain object to encode + * Encodes the specified DeleteVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. + * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. - * @param message Hcx message or plain object to encode + * Encodes the specified DeleteVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. + * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Hcx message from the specified reader or buffer. + * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Hcx + * @returns DeleteVmwareEngineNetworkRequest * @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.vmwareengine.v1.Hcx; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; /** - * Decodes a Hcx message from the specified reader or buffer, length delimited. + * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Hcx + * @returns DeleteVmwareEngineNetworkRequest * @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.vmwareengine.v1.Hcx; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; /** - * Verifies a Hcx message. + * Verifies a DeleteVmwareEngineNetworkRequest 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 Hcx message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Hcx + * @returns DeleteVmwareEngineNetworkRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Hcx; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; /** - * Creates a plain object from a Hcx message. Also converts values to other types if specified. - * @param message Hcx + * Creates a plain object from a DeleteVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @param message DeleteVmwareEngineNetworkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Hcx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Hcx to JSON. + * Converts this DeleteVmwareEngineNetworkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Hcx + * Gets the default type url for DeleteVmwareEngineNetworkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Hcx { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2 - } - } - - /** Properties of a Nsx. */ - interface INsx { - - /** Nsx internalIp */ - internalIp?: (string|null); - - /** Nsx version */ - version?: (string|null); - - /** Nsx state */ - state?: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State|null); + /** Properties of a GetVmwareEngineNetworkRequest. */ + interface IGetVmwareEngineNetworkRequest { - /** Nsx fqdn */ - fqdn?: (string|null); + /** GetVmwareEngineNetworkRequest name */ + name?: (string|null); } - /** Represents a Nsx. */ - class Nsx implements INsx { + /** Represents a GetVmwareEngineNetworkRequest. */ + class GetVmwareEngineNetworkRequest implements IGetVmwareEngineNetworkRequest { /** - * Constructs a new Nsx. + * Constructs a new GetVmwareEngineNetworkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.INsx); - - /** Nsx internalIp. */ - public internalIp: string; - - /** Nsx version. */ - public version: string; - - /** Nsx state. */ - public state: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State); + constructor(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest); - /** Nsx fqdn. */ - public fqdn: string; + /** GetVmwareEngineNetworkRequest name. */ + public name: string; /** - * Creates a new Nsx instance using the specified properties. + * Creates a new GetVmwareEngineNetworkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Nsx instance + * @returns GetVmwareEngineNetworkRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INsx): google.cloud.vmwareengine.v1.Nsx; + public static create(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; /** - * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. - * @param message Nsx message or plain object to encode + * Encodes the specified GetVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. + * @param message GetVmwareEngineNetworkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. - * @param message Nsx message or plain object to encode + * Encodes the specified GetVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. + * @param message GetVmwareEngineNetworkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Nsx message from the specified reader or buffer. + * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Nsx + * @returns GetVmwareEngineNetworkRequest * @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.vmwareengine.v1.Nsx; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; /** - * Decodes a Nsx message from the specified reader or buffer, length delimited. + * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Nsx + * @returns GetVmwareEngineNetworkRequest * @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.vmwareengine.v1.Nsx; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; /** - * Verifies a Nsx message. + * Verifies a GetVmwareEngineNetworkRequest 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 Nsx message from a plain object. Also converts values to their respective internal types. + * Creates a GetVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Nsx + * @returns GetVmwareEngineNetworkRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Nsx; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; /** - * Creates a plain object from a Nsx message. Also converts values to other types if specified. - * @param message Nsx + * Creates a plain object from a GetVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * @param message GetVmwareEngineNetworkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Nsx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Nsx to JSON. + * Converts this GetVmwareEngineNetworkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Nsx + * Gets the default type url for GetVmwareEngineNetworkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Nsx { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2 - } - } + /** Properties of a ListVmwareEngineNetworksRequest. */ + interface IListVmwareEngineNetworksRequest { - /** Properties of a Vcenter. */ - interface IVcenter { + /** ListVmwareEngineNetworksRequest parent */ + parent?: (string|null); - /** Vcenter internalIp */ - internalIp?: (string|null); + /** ListVmwareEngineNetworksRequest pageSize */ + pageSize?: (number|null); - /** Vcenter version */ - version?: (string|null); + /** ListVmwareEngineNetworksRequest pageToken */ + pageToken?: (string|null); - /** Vcenter state */ - state?: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State|null); + /** ListVmwareEngineNetworksRequest filter */ + filter?: (string|null); - /** Vcenter fqdn */ - fqdn?: (string|null); + /** ListVmwareEngineNetworksRequest orderBy */ + orderBy?: (string|null); } - /** Represents a Vcenter. */ - class Vcenter implements IVcenter { + /** Represents a ListVmwareEngineNetworksRequest. */ + class ListVmwareEngineNetworksRequest implements IListVmwareEngineNetworksRequest { /** - * Constructs a new Vcenter. + * Constructs a new ListVmwareEngineNetworksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IVcenter); + constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest); - /** Vcenter internalIp. */ - public internalIp: string; + /** ListVmwareEngineNetworksRequest parent. */ + public parent: string; - /** Vcenter version. */ - public version: string; + /** ListVmwareEngineNetworksRequest pageSize. */ + public pageSize: number; - /** Vcenter state. */ - public state: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State); + /** ListVmwareEngineNetworksRequest pageToken. */ + public pageToken: string; - /** Vcenter fqdn. */ - public fqdn: string; + /** ListVmwareEngineNetworksRequest filter. */ + public filter: string; + + /** ListVmwareEngineNetworksRequest orderBy. */ + public orderBy: string; /** - * Creates a new Vcenter instance using the specified properties. + * Creates a new ListVmwareEngineNetworksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Vcenter instance + * @returns ListVmwareEngineNetworksRequest instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IVcenter): google.cloud.vmwareengine.v1.Vcenter; + public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; /** - * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. - * @param message Vcenter message or plain object to encode + * Encodes the specified ListVmwareEngineNetworksRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * @param message ListVmwareEngineNetworksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. - * @param message Vcenter message or plain object to encode + * Encodes the specified ListVmwareEngineNetworksRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * @param message ListVmwareEngineNetworksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Vcenter message from the specified reader or buffer. + * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Vcenter + * @returns ListVmwareEngineNetworksRequest * @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.vmwareengine.v1.Vcenter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; /** - * Decodes a Vcenter message from the specified reader or buffer, length delimited. + * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Vcenter + * @returns ListVmwareEngineNetworksRequest * @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.vmwareengine.v1.Vcenter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; /** - * Verifies a Vcenter message. + * Verifies a ListVmwareEngineNetworksRequest 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 Vcenter message from a plain object. Also converts values to their respective internal types. + * Creates a ListVmwareEngineNetworksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Vcenter + * @returns ListVmwareEngineNetworksRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Vcenter; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; /** - * Creates a plain object from a Vcenter message. Also converts values to other types if specified. - * @param message Vcenter + * Creates a plain object from a ListVmwareEngineNetworksRequest message. Also converts values to other types if specified. + * @param message ListVmwareEngineNetworksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.Vcenter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Vcenter to JSON. + * Converts this ListVmwareEngineNetworksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Vcenter + * Gets the default type url for ListVmwareEngineNetworksRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Vcenter { + /** Properties of a ListVmwareEngineNetworksResponse. */ + interface IListVmwareEngineNetworksResponse { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - CREATING = 2 - } + /** ListVmwareEngineNetworksResponse vmwareEngineNetworks */ + vmwareEngineNetworks?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork[]|null); + + /** ListVmwareEngineNetworksResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ListVmwareEngineNetworksResponse unreachable */ + unreachable?: (string[]|null); } - /** Properties of a NetworkPolicy. */ - interface INetworkPolicy { + /** Represents a ListVmwareEngineNetworksResponse. */ + class ListVmwareEngineNetworksResponse implements IListVmwareEngineNetworksResponse { - /** NetworkPolicy name */ - name?: (string|null); + /** + * Constructs a new ListVmwareEngineNetworksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse); - /** NetworkPolicy createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListVmwareEngineNetworksResponse vmwareEngineNetworks. */ + public vmwareEngineNetworks: google.cloud.vmwareengine.v1.IVmwareEngineNetwork[]; - /** NetworkPolicy updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListVmwareEngineNetworksResponse nextPageToken. */ + public nextPageToken: string; - /** NetworkPolicy internetAccess */ - internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + /** ListVmwareEngineNetworksResponse unreachable. */ + public unreachable: string[]; - /** NetworkPolicy externalIp */ - externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + /** + * Creates a new ListVmwareEngineNetworksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVmwareEngineNetworksResponse instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; - /** NetworkPolicy edgeServicesCidr */ - edgeServicesCidr?: (string|null); + /** + * Encodes the specified ListVmwareEngineNetworksResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. + * @param message ListVmwareEngineNetworksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** NetworkPolicy uid */ - uid?: (string|null); + /** + * Encodes the specified ListVmwareEngineNetworksResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. + * @param message ListVmwareEngineNetworksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** NetworkPolicy vmwareEngineNetwork */ - vmwareEngineNetwork?: (string|null); + /** + * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListVmwareEngineNetworksResponse + * @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.vmwareengine.v1.ListVmwareEngineNetworksResponse; - /** NetworkPolicy description */ - description?: (string|null); + /** + * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListVmwareEngineNetworksResponse + * @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.vmwareengine.v1.ListVmwareEngineNetworksResponse; - /** NetworkPolicy vmwareEngineNetworkCanonical */ - vmwareEngineNetworkCanonical?: (string|null); - } + /** + * Verifies a ListVmwareEngineNetworksResponse 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); - /** Represents a NetworkPolicy. */ - class NetworkPolicy implements INetworkPolicy { + /** + * Creates a ListVmwareEngineNetworksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListVmwareEngineNetworksResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; /** - * Constructs a new NetworkPolicy. - * @param [properties] Properties to set + * Creates a plain object from a ListVmwareEngineNetworksResponse message. Also converts values to other types if specified. + * @param message ListVmwareEngineNetworksResponse + * @param [options] Conversion options + * @returns Plain object */ - constructor(properties?: google.cloud.vmwareengine.v1.INetworkPolicy); + public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** NetworkPolicy name. */ - public name: string; + /** + * Converts this ListVmwareEngineNetworksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** NetworkPolicy createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for ListVmwareEngineNetworksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NetworkPolicy updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a NetworkConfig. */ + interface INetworkConfig { - /** NetworkPolicy internetAccess. */ - public internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + /** NetworkConfig managementCidr */ + managementCidr?: (string|null); - /** NetworkPolicy externalIp. */ - public externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + /** NetworkConfig vmwareEngineNetwork */ + vmwareEngineNetwork?: (string|null); - /** NetworkPolicy edgeServicesCidr. */ - public edgeServicesCidr: string; + /** NetworkConfig vmwareEngineNetworkCanonical */ + vmwareEngineNetworkCanonical?: (string|null); - /** NetworkPolicy uid. */ - public uid: string; + /** NetworkConfig managementIpAddressLayoutVersion */ + managementIpAddressLayoutVersion?: (number|null); + } - /** NetworkPolicy vmwareEngineNetwork. */ - public vmwareEngineNetwork: string; + /** Represents a NetworkConfig. */ + class NetworkConfig implements INetworkConfig { - /** NetworkPolicy description. */ - public description: string; + /** + * Constructs a new NetworkConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.INetworkConfig); - /** NetworkPolicy vmwareEngineNetworkCanonical. */ + /** NetworkConfig managementCidr. */ + public managementCidr: string; + + /** NetworkConfig vmwareEngineNetwork. */ + public vmwareEngineNetwork: string; + + /** NetworkConfig vmwareEngineNetworkCanonical. */ public vmwareEngineNetworkCanonical: string; + /** NetworkConfig managementIpAddressLayoutVersion. */ + public managementIpAddressLayoutVersion: number; + /** - * Creates a new NetworkPolicy instance using the specified properties. + * Creates a new NetworkConfig instance using the specified properties. * @param [properties] Properties to set - * @returns NetworkPolicy instance + * @returns NetworkConfig instance */ - public static create(properties?: google.cloud.vmwareengine.v1.INetworkPolicy): google.cloud.vmwareengine.v1.NetworkPolicy; + public static create(properties?: google.cloud.vmwareengine.v1.INetworkConfig): google.cloud.vmwareengine.v1.NetworkConfig; /** - * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. - * @param message NetworkPolicy message or plain object to encode + * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * @param message NetworkConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. - * @param message NetworkPolicy message or plain object to encode + * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * @param message NetworkConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetworkPolicy message from the specified reader or buffer. + * Decodes a NetworkConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetworkPolicy + * @returns NetworkConfig * @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.vmwareengine.v1.NetworkPolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NetworkConfig; /** - * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetworkPolicy + * @returns NetworkConfig * @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.vmwareengine.v1.NetworkPolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NetworkConfig; /** - * Verifies a NetworkPolicy message. + * Verifies a NetworkConfig 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 NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetworkPolicy + * @returns NetworkConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkConfig; /** - * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. - * @param message NetworkPolicy + * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * @param message NetworkConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetworkPolicy to JSON. + * Converts this NetworkConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetworkPolicy + * Gets the default type url for NetworkConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NetworkPolicy { - - /** Properties of a NetworkService. */ - interface INetworkService { - - /** NetworkService enabled */ - enabled?: (boolean|null); - - /** NetworkService state */ - state?: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null); - } - - /** Represents a NetworkService. */ - class NetworkService implements INetworkService { - - /** - * Constructs a new NetworkService. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService); - - /** NetworkService enabled. */ - public enabled: boolean; - - /** NetworkService state. */ - public state: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State); - - /** - * Creates a new NetworkService instance using the specified properties. - * @param [properties] Properties to set - * @returns NetworkService instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; - - /** - * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. - * @param message NetworkService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. - * @param message NetworkService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NetworkService message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NetworkService - * @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.vmwareengine.v1.NetworkPolicy.NetworkService; - - /** - * Decodes a NetworkService message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetworkService - * @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.vmwareengine.v1.NetworkPolicy.NetworkService; - - /** - * Verifies a NetworkService 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 NetworkService message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NetworkService - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; - - /** - * Creates a plain object from a NetworkService message. Also converts values to other types if specified. - * @param message NetworkService - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NetworkService to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for NetworkService - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace NetworkService { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - UNPROVISIONED = 1, - RECONCILING = 2, - ACTIVE = 3 - } - } - } - - /** Properties of a ListNetworkPoliciesRequest. */ - interface IListNetworkPoliciesRequest { - - /** ListNetworkPoliciesRequest parent */ - parent?: (string|null); - - /** ListNetworkPoliciesRequest pageSize */ - pageSize?: (number|null); - - /** ListNetworkPoliciesRequest pageToken */ - pageToken?: (string|null); + /** Properties of a NodeTypeConfig. */ + interface INodeTypeConfig { - /** ListNetworkPoliciesRequest filter */ - filter?: (string|null); + /** NodeTypeConfig nodeCount */ + nodeCount?: (number|null); - /** ListNetworkPoliciesRequest orderBy */ - orderBy?: (string|null); + /** NodeTypeConfig customCoreCount */ + customCoreCount?: (number|null); } - /** Represents a ListNetworkPoliciesRequest. */ - class ListNetworkPoliciesRequest implements IListNetworkPoliciesRequest { + /** Represents a NodeTypeConfig. */ + class NodeTypeConfig implements INodeTypeConfig { /** - * Constructs a new ListNetworkPoliciesRequest. + * Constructs a new NodeTypeConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest); - - /** ListNetworkPoliciesRequest parent. */ - public parent: string; - - /** ListNetworkPoliciesRequest pageSize. */ - public pageSize: number; - - /** ListNetworkPoliciesRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig); - /** ListNetworkPoliciesRequest filter. */ - public filter: string; + /** NodeTypeConfig nodeCount. */ + public nodeCount: number; - /** ListNetworkPoliciesRequest orderBy. */ - public orderBy: string; + /** NodeTypeConfig customCoreCount. */ + public customCoreCount: number; /** - * Creates a new ListNetworkPoliciesRequest instance using the specified properties. + * Creates a new NodeTypeConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListNetworkPoliciesRequest instance + * @returns NodeTypeConfig instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; + public static create(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig): google.cloud.vmwareengine.v1.NodeTypeConfig; /** - * Encodes the specified ListNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. - * @param message ListNetworkPoliciesRequest message or plain object to encode + * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * @param message NodeTypeConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. - * @param message ListNetworkPoliciesRequest message or plain object to encode + * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * @param message NodeTypeConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer. + * Decodes a NodeTypeConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNetworkPoliciesRequest + * @returns NodeTypeConfig * @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.vmwareengine.v1.ListNetworkPoliciesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NodeTypeConfig; /** - * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNetworkPoliciesRequest + * @returns NodeTypeConfig * @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.vmwareengine.v1.ListNetworkPoliciesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NodeTypeConfig; /** - * Verifies a ListNetworkPoliciesRequest message. + * Verifies a NodeTypeConfig 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 ListNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NodeTypeConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNetworkPoliciesRequest + * @returns NodeTypeConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeTypeConfig; /** - * Creates a plain object from a ListNetworkPoliciesRequest message. Also converts values to other types if specified. - * @param message ListNetworkPoliciesRequest + * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified. + * @param message NodeTypeConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.NodeTypeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNetworkPoliciesRequest to JSON. + * Converts this NodeTypeConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListNetworkPoliciesRequest + * Gets the default type url for NodeTypeConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListNetworkPoliciesResponse. */ - interface IListNetworkPoliciesResponse { + /** Properties of a PrivateCloud. */ + interface IPrivateCloud { - /** ListNetworkPoliciesResponse networkPolicies */ - networkPolicies?: (google.cloud.vmwareengine.v1.INetworkPolicy[]|null); + /** PrivateCloud name */ + name?: (string|null); - /** ListNetworkPoliciesResponse nextPageToken */ - nextPageToken?: (string|null); + /** PrivateCloud createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ListNetworkPoliciesResponse unreachable */ - unreachable?: (string[]|null); - } + /** PrivateCloud updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** Represents a ListNetworkPoliciesResponse. */ - class ListNetworkPoliciesResponse implements IListNetworkPoliciesResponse { + /** PrivateCloud deleteTime */ + deleteTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ListNetworkPoliciesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse); + /** PrivateCloud expireTime */ + expireTime?: (google.protobuf.ITimestamp|null); - /** ListNetworkPoliciesResponse networkPolicies. */ - public networkPolicies: google.cloud.vmwareengine.v1.INetworkPolicy[]; + /** PrivateCloud state */ + state?: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State|null); - /** ListNetworkPoliciesResponse nextPageToken. */ - public nextPageToken: string; + /** PrivateCloud networkConfig */ + networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null); - /** ListNetworkPoliciesResponse unreachable. */ - public unreachable: string[]; + /** PrivateCloud managementCluster */ + managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null); - /** - * Creates a new ListNetworkPoliciesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListNetworkPoliciesResponse instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; + /** PrivateCloud description */ + description?: (string|null); - /** - * Encodes the specified ListNetworkPoliciesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. - * @param message ListNetworkPoliciesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** PrivateCloud hcx */ + hcx?: (google.cloud.vmwareengine.v1.IHcx|null); - /** - * Encodes the specified ListNetworkPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. - * @param message ListNetworkPoliciesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** PrivateCloud nsx */ + nsx?: (google.cloud.vmwareengine.v1.INsx|null); - /** - * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListNetworkPoliciesResponse - * @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.vmwareengine.v1.ListNetworkPoliciesResponse; + /** PrivateCloud vcenter */ + vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null); - /** - * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListNetworkPoliciesResponse - * @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.vmwareengine.v1.ListNetworkPoliciesResponse; + /** PrivateCloud uid */ + uid?: (string|null); + } - /** - * Verifies a ListNetworkPoliciesResponse 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); + /** Represents a PrivateCloud. */ + class PrivateCloud implements IPrivateCloud { /** - * Creates a ListNetworkPoliciesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListNetworkPoliciesResponse + * Constructs a new PrivateCloud. + * @param [properties] Properties to set */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; + constructor(properties?: google.cloud.vmwareengine.v1.IPrivateCloud); - /** - * Creates a plain object from a ListNetworkPoliciesResponse message. Also converts values to other types if specified. - * @param message ListNetworkPoliciesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PrivateCloud name. */ + public name: string; - /** - * Converts this ListNetworkPoliciesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PrivateCloud createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Gets the default type url for ListNetworkPoliciesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PrivateCloud updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Properties of a GetNetworkPolicyRequest. */ - interface IGetNetworkPolicyRequest { + /** PrivateCloud deleteTime. */ + public deleteTime?: (google.protobuf.ITimestamp|null); - /** GetNetworkPolicyRequest name */ - name?: (string|null); - } + /** PrivateCloud expireTime. */ + public expireTime?: (google.protobuf.ITimestamp|null); - /** Represents a GetNetworkPolicyRequest. */ - class GetNetworkPolicyRequest implements IGetNetworkPolicyRequest { + /** PrivateCloud state. */ + public state: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State); - /** - * Constructs a new GetNetworkPolicyRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest); + /** PrivateCloud networkConfig. */ + public networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null); - /** GetNetworkPolicyRequest name. */ - public name: string; + /** PrivateCloud managementCluster. */ + public managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null); + + /** PrivateCloud description. */ + public description: string; + + /** PrivateCloud hcx. */ + public hcx?: (google.cloud.vmwareengine.v1.IHcx|null); + + /** PrivateCloud nsx. */ + public nsx?: (google.cloud.vmwareengine.v1.INsx|null); + + /** PrivateCloud vcenter. */ + public vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null); + + /** PrivateCloud uid. */ + public uid: string; /** - * Creates a new GetNetworkPolicyRequest instance using the specified properties. + * Creates a new PrivateCloud instance using the specified properties. * @param [properties] Properties to set - * @returns GetNetworkPolicyRequest instance + * @returns PrivateCloud instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IPrivateCloud): google.cloud.vmwareengine.v1.PrivateCloud; /** - * Encodes the specified GetNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. - * @param message GetNetworkPolicyRequest message or plain object to encode + * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * @param message PrivateCloud message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. - * @param message GetNetworkPolicyRequest message or plain object to encode + * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * @param message PrivateCloud message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a PrivateCloud message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetNetworkPolicyRequest + * @returns PrivateCloud * @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.vmwareengine.v1.GetNetworkPolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.PrivateCloud; /** - * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a PrivateCloud message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetNetworkPolicyRequest + * @returns PrivateCloud * @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.vmwareengine.v1.GetNetworkPolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.PrivateCloud; /** - * Verifies a GetNetworkPolicyRequest message. + * Verifies a PrivateCloud 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 GetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PrivateCloud message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetNetworkPolicyRequest + * @returns PrivateCloud */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud; /** - * Creates a plain object from a GetNetworkPolicyRequest message. Also converts values to other types if specified. - * @param message GetNetworkPolicyRequest + * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified. + * @param message PrivateCloud * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetNetworkPolicyRequest to JSON. + * Converts this PrivateCloud to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetNetworkPolicyRequest + * Gets the default type url for PrivateCloud * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateNetworkPolicyRequest. */ - interface IUpdateNetworkPolicyRequest { - - /** UpdateNetworkPolicyRequest networkPolicy */ - networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); + namespace PrivateCloud { - /** UpdateNetworkPolicyRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + UPDATING = 3, + FAILED = 5, + DELETED = 6, + PURGING = 7 + } - /** UpdateNetworkPolicyRequest requestId */ - requestId?: (string|null); - } + /** Properties of a ManagementCluster. */ + interface IManagementCluster { - /** Represents an UpdateNetworkPolicyRequest. */ - class UpdateNetworkPolicyRequest implements IUpdateNetworkPolicyRequest { + /** ManagementCluster clusterId */ + clusterId?: (string|null); - /** - * Constructs a new UpdateNetworkPolicyRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest); + /** ManagementCluster nodeTypeConfigs */ + nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null); + } - /** UpdateNetworkPolicyRequest networkPolicy. */ - public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); + /** Represents a ManagementCluster. */ + class ManagementCluster implements IManagementCluster { - /** UpdateNetworkPolicyRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * Constructs a new ManagementCluster. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster); - /** UpdateNetworkPolicyRequest requestId. */ - public requestId: string; + /** ManagementCluster clusterId. */ + public clusterId: string; - /** - * Creates a new UpdateNetworkPolicyRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateNetworkPolicyRequest instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; + /** ManagementCluster nodeTypeConfigs. */ + public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }; - /** - * Encodes the specified UpdateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. - * @param message UpdateNetworkPolicyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ManagementCluster instance using the specified properties. + * @param [properties] Properties to set + * @returns ManagementCluster instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; - /** - * Encodes the specified UpdateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. - * @param message UpdateNetworkPolicyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. + * @param message ManagementCluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateNetworkPolicyRequest - * @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.vmwareengine.v1.UpdateNetworkPolicyRequest; + /** + * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. + * @param message ManagementCluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateNetworkPolicyRequest - * @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.vmwareengine.v1.UpdateNetworkPolicyRequest; + /** + * Decodes a ManagementCluster message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ManagementCluster + * @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.vmwareengine.v1.PrivateCloud.ManagementCluster; - /** - * Verifies an UpdateNetworkPolicyRequest 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); + /** + * Decodes a ManagementCluster message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ManagementCluster + * @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.vmwareengine.v1.PrivateCloud.ManagementCluster; - /** - * Creates an UpdateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateNetworkPolicyRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; + /** + * Verifies a ManagementCluster 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 plain object from an UpdateNetworkPolicyRequest message. Also converts values to other types if specified. - * @param message UpdateNetworkPolicyRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a ManagementCluster message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ManagementCluster + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster; - /** - * Converts this UpdateNetworkPolicyRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified. + * @param message ManagementCluster + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for UpdateNetworkPolicyRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this ManagementCluster to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ManagementCluster + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a CreateNetworkPolicyRequest. */ - interface ICreateNetworkPolicyRequest { + /** Properties of a Cluster. */ + interface ICluster { - /** CreateNetworkPolicyRequest parent */ - parent?: (string|null); + /** Cluster name */ + name?: (string|null); - /** CreateNetworkPolicyRequest networkPolicyId */ - networkPolicyId?: (string|null); + /** Cluster createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** CreateNetworkPolicyRequest networkPolicy */ - networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); + /** Cluster updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** CreateNetworkPolicyRequest requestId */ - requestId?: (string|null); + /** Cluster state */ + state?: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State|null); + + /** Cluster management */ + management?: (boolean|null); + + /** Cluster uid */ + uid?: (string|null); + + /** Cluster nodeTypeConfigs */ + nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null); } - /** Represents a CreateNetworkPolicyRequest. */ - class CreateNetworkPolicyRequest implements ICreateNetworkPolicyRequest { + /** Represents a Cluster. */ + class Cluster implements ICluster { /** - * Constructs a new CreateNetworkPolicyRequest. + * Constructs a new Cluster. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest); + constructor(properties?: google.cloud.vmwareengine.v1.ICluster); - /** CreateNetworkPolicyRequest parent. */ - public parent: string; + /** Cluster name. */ + public name: string; - /** CreateNetworkPolicyRequest networkPolicyId. */ - public networkPolicyId: string; + /** Cluster createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** CreateNetworkPolicyRequest networkPolicy. */ - public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null); + /** Cluster updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** CreateNetworkPolicyRequest requestId. */ - public requestId: string; + /** Cluster state. */ + public state: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State); + + /** Cluster management. */ + public management: boolean; + + /** Cluster uid. */ + public uid: string; + + /** Cluster nodeTypeConfigs. */ + public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }; /** - * Creates a new CreateNetworkPolicyRequest instance using the specified properties. + * Creates a new Cluster instance using the specified properties. * @param [properties] Properties to set - * @returns CreateNetworkPolicyRequest instance + * @returns Cluster instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.ICluster): google.cloud.vmwareengine.v1.Cluster; /** - * Encodes the specified CreateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. - * @param message CreateNetworkPolicyRequest message or plain object to encode + * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * @param message Cluster message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. - * @param message CreateNetworkPolicyRequest message or plain object to encode + * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * @param message Cluster message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a Cluster message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateNetworkPolicyRequest + * @returns Cluster * @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.vmwareengine.v1.CreateNetworkPolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Cluster; /** - * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a Cluster message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateNetworkPolicyRequest + * @returns Cluster * @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.vmwareengine.v1.CreateNetworkPolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Cluster; /** - * Verifies a CreateNetworkPolicyRequest message. + * Verifies a Cluster 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 CreateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Cluster message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateNetworkPolicyRequest + * @returns Cluster */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Cluster; /** - * Creates a plain object from a CreateNetworkPolicyRequest message. Also converts values to other types if specified. - * @param message CreateNetworkPolicyRequest + * Creates a plain object from a Cluster message. Also converts values to other types if specified. + * @param message Cluster * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.Cluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateNetworkPolicyRequest to JSON. + * Converts this Cluster to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateNetworkPolicyRequest + * Gets the default type url for Cluster * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteNetworkPolicyRequest. */ - interface IDeleteNetworkPolicyRequest { + namespace Cluster { - /** DeleteNetworkPolicyRequest name */ + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + UPDATING = 3, + DELETING = 4, + REPAIRING = 5 + } + } + + /** Properties of a Subnet. */ + interface ISubnet { + + /** Subnet name */ name?: (string|null); - /** DeleteNetworkPolicyRequest requestId */ - requestId?: (string|null); + /** Subnet ipCidrRange */ + ipCidrRange?: (string|null); + + /** Subnet gatewayIp */ + gatewayIp?: (string|null); + + /** Subnet type */ + type?: (string|null); + + /** Subnet state */ + state?: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State|null); } - /** Represents a DeleteNetworkPolicyRequest. */ - class DeleteNetworkPolicyRequest implements IDeleteNetworkPolicyRequest { + /** Represents a Subnet. */ + class Subnet implements ISubnet { /** - * Constructs a new DeleteNetworkPolicyRequest. + * Constructs a new Subnet. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest); + constructor(properties?: google.cloud.vmwareengine.v1.ISubnet); - /** DeleteNetworkPolicyRequest name. */ + /** Subnet name. */ public name: string; - /** DeleteNetworkPolicyRequest requestId. */ - public requestId: string; + /** Subnet ipCidrRange. */ + public ipCidrRange: string; + + /** Subnet gatewayIp. */ + public gatewayIp: string; + + /** Subnet type. */ + public type: string; + + /** Subnet state. */ + public state: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State); /** - * Creates a new DeleteNetworkPolicyRequest instance using the specified properties. + * Creates a new Subnet instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteNetworkPolicyRequest instance + * @returns Subnet instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; + public static create(properties?: google.cloud.vmwareengine.v1.ISubnet): google.cloud.vmwareengine.v1.Subnet; /** - * Encodes the specified DeleteNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. - * @param message DeleteNetworkPolicyRequest message or plain object to encode + * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * @param message Subnet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. - * @param message DeleteNetworkPolicyRequest message or plain object to encode + * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * @param message Subnet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a Subnet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteNetworkPolicyRequest + * @returns Subnet * @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.vmwareengine.v1.DeleteNetworkPolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Subnet; /** - * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a Subnet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteNetworkPolicyRequest + * @returns Subnet * @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.vmwareengine.v1.DeleteNetworkPolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Subnet; /** - * Verifies a DeleteNetworkPolicyRequest message. + * Verifies a Subnet 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 DeleteNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Subnet message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteNetworkPolicyRequest + * @returns Subnet */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Subnet; /** - * Creates a plain object from a DeleteNetworkPolicyRequest message. Also converts values to other types if specified. - * @param message DeleteNetworkPolicyRequest + * Creates a plain object from a Subnet message. Also converts values to other types if specified. + * @param message Subnet * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.Subnet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteNetworkPolicyRequest to JSON. + * Converts this Subnet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteNetworkPolicyRequest + * Gets the default type url for Subnet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VmwareEngineNetwork. */ - interface IVmwareEngineNetwork { + namespace Subnet { - /** VmwareEngineNetwork name */ - name?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2, + UPDATING = 3, + DELETING = 4 + } + } - /** VmwareEngineNetwork createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a NodeType. */ + interface INodeType { - /** VmwareEngineNetwork updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** NodeType name */ + name?: (string|null); - /** VmwareEngineNetwork description */ - description?: (string|null); + /** NodeType nodeTypeId */ + nodeTypeId?: (string|null); - /** VmwareEngineNetwork vpcNetworks */ - vpcNetworks?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[]|null); + /** NodeType displayName */ + displayName?: (string|null); - /** VmwareEngineNetwork state */ - state?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|null); + /** NodeType virtualCpuCount */ + virtualCpuCount?: (number|null); - /** VmwareEngineNetwork type */ - type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|null); + /** NodeType totalCoreCount */ + totalCoreCount?: (number|null); - /** VmwareEngineNetwork uid */ - uid?: (string|null); + /** NodeType memoryGb */ + memoryGb?: (number|null); - /** VmwareEngineNetwork etag */ - etag?: (string|null); + /** NodeType diskSizeGb */ + diskSizeGb?: (number|null); + + /** NodeType availableCustomCoreCounts */ + availableCustomCoreCounts?: (number[]|null); } - /** Represents a VmwareEngineNetwork. */ - class VmwareEngineNetwork implements IVmwareEngineNetwork { + /** Represents a NodeType. */ + class NodeType implements INodeType { /** - * Constructs a new VmwareEngineNetwork. + * Constructs a new NodeType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork); + constructor(properties?: google.cloud.vmwareengine.v1.INodeType); - /** VmwareEngineNetwork name. */ + /** NodeType name. */ public name: string; - /** VmwareEngineNetwork createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** VmwareEngineNetwork updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** NodeType nodeTypeId. */ + public nodeTypeId: string; - /** VmwareEngineNetwork description. */ - public description: string; + /** NodeType displayName. */ + public displayName: string; - /** VmwareEngineNetwork vpcNetworks. */ - public vpcNetworks: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[]; + /** NodeType virtualCpuCount. */ + public virtualCpuCount: number; - /** VmwareEngineNetwork state. */ - public state: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State); + /** NodeType totalCoreCount. */ + public totalCoreCount: number; - /** VmwareEngineNetwork type. */ - public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type); + /** NodeType memoryGb. */ + public memoryGb: number; - /** VmwareEngineNetwork uid. */ - public uid: string; + /** NodeType diskSizeGb. */ + public diskSizeGb: number; - /** VmwareEngineNetwork etag. */ - public etag: string; + /** NodeType availableCustomCoreCounts. */ + public availableCustomCoreCounts: number[]; /** - * Creates a new VmwareEngineNetwork instance using the specified properties. + * Creates a new NodeType instance using the specified properties. * @param [properties] Properties to set - * @returns VmwareEngineNetwork instance + * @returns NodeType instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + public static create(properties?: google.cloud.vmwareengine.v1.INodeType): google.cloud.vmwareengine.v1.NodeType; /** - * Encodes the specified VmwareEngineNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. - * @param message VmwareEngineNetwork message or plain object to encode + * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * @param message NodeType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VmwareEngineNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. - * @param message VmwareEngineNetwork message or plain object to encode + * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * @param message NodeType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VmwareEngineNetwork message from the specified reader or buffer. + * Decodes a NodeType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VmwareEngineNetwork + * @returns NodeType * @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.vmwareengine.v1.VmwareEngineNetwork; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NodeType; /** - * Decodes a VmwareEngineNetwork message from the specified reader or buffer, length delimited. + * Decodes a NodeType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VmwareEngineNetwork + * @returns NodeType * @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.vmwareengine.v1.VmwareEngineNetwork; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NodeType; /** - * Verifies a VmwareEngineNetwork message. + * Verifies a NodeType 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 VmwareEngineNetwork message from a plain object. Also converts values to their respective internal types. + * Creates a NodeType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VmwareEngineNetwork + * @returns NodeType */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeType; /** - * Creates a plain object from a VmwareEngineNetwork message. Also converts values to other types if specified. - * @param message VmwareEngineNetwork + * Creates a plain object from a NodeType message. Also converts values to other types if specified. + * @param message NodeType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.NodeType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VmwareEngineNetwork to JSON. + * Converts this NodeType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VmwareEngineNetwork + * Gets the default type url for NodeType * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace VmwareEngineNetwork { + /** Properties of a Credentials. */ + interface ICredentials { - /** Properties of a VpcNetwork. */ - interface IVpcNetwork { + /** Credentials username */ + username?: (string|null); - /** VpcNetwork type */ - type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|null); + /** Credentials password */ + password?: (string|null); + } - /** VpcNetwork network */ - network?: (string|null); - } + /** Represents a Credentials. */ + class Credentials implements ICredentials { - /** Represents a VpcNetwork. */ - class VpcNetwork implements IVpcNetwork { + /** + * Constructs a new Credentials. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.ICredentials); - /** - * Constructs a new VpcNetwork. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork); + /** Credentials username. */ + public username: string; - /** VpcNetwork type. */ - public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type); + /** Credentials password. */ + public password: string; - /** VpcNetwork network. */ - public network: string; + /** + * Creates a new Credentials instance using the specified properties. + * @param [properties] Properties to set + * @returns Credentials instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.ICredentials): google.cloud.vmwareengine.v1.Credentials; - /** - * Creates a new VpcNetwork instance using the specified properties. - * @param [properties] Properties to set - * @returns VpcNetwork instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; + /** + * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * @param message Credentials message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VpcNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. - * @param message VpcNetwork message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VpcNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. - * @param message VpcNetwork message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VpcNetwork message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VpcNetwork - * @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.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; - - /** - * Decodes a VpcNetwork message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VpcNetwork - * @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.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; - - /** - * Verifies a VpcNetwork 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 VpcNetwork message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VpcNetwork - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; + /** + * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * @param message Credentials message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a VpcNetwork message. Also converts values to other types if specified. - * @param message VpcNetwork - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Credentials message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Credentials + * @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.vmwareengine.v1.Credentials; - /** - * Converts this VpcNetwork to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a Credentials message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Credentials + * @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.vmwareengine.v1.Credentials; - /** - * Gets the default type url for VpcNetwork - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a Credentials 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); - namespace VpcNetwork { + /** + * Creates a Credentials message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Credentials + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Credentials; - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - INTRANET = 1, - INTERNET = 2, - GOOGLE_CLOUD = 3 - } - } + /** + * Creates a plain object from a Credentials message. Also converts values to other types if specified. + * @param message Credentials + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.Credentials, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - ACTIVE = 2, - UPDATING = 3, - DELETING = 4 - } + /** + * Converts this Credentials to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - LEGACY = 1 - } + /** + * Gets the default type url for Credentials + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateVmwareEngineNetworkRequest. */ - interface ICreateVmwareEngineNetworkRequest { + /** Properties of a HcxActivationKey. */ + interface IHcxActivationKey { - /** CreateVmwareEngineNetworkRequest parent */ - parent?: (string|null); + /** HcxActivationKey name */ + name?: (string|null); - /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId */ - vmwareEngineNetworkId?: (string|null); + /** HcxActivationKey createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork */ - vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); + /** HcxActivationKey state */ + state?: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State|null); - /** CreateVmwareEngineNetworkRequest requestId */ - requestId?: (string|null); + /** HcxActivationKey activationKey */ + activationKey?: (string|null); + + /** HcxActivationKey uid */ + uid?: (string|null); } - /** Represents a CreateVmwareEngineNetworkRequest. */ - class CreateVmwareEngineNetworkRequest implements ICreateVmwareEngineNetworkRequest { + /** Represents a HcxActivationKey. */ + class HcxActivationKey implements IHcxActivationKey { /** - * Constructs a new CreateVmwareEngineNetworkRequest. + * Constructs a new HcxActivationKey. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey); - /** CreateVmwareEngineNetworkRequest parent. */ - public parent: string; + /** HcxActivationKey name. */ + public name: string; - /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId. */ - public vmwareEngineNetworkId: string; + /** HcxActivationKey createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork. */ - public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); + /** HcxActivationKey state. */ + public state: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State); - /** CreateVmwareEngineNetworkRequest requestId. */ - public requestId: string; + /** HcxActivationKey activationKey. */ + public activationKey: string; + + /** HcxActivationKey uid. */ + public uid: string; /** - * Creates a new CreateVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new HcxActivationKey instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVmwareEngineNetworkRequest instance + * @returns HcxActivationKey instance */ - public static create(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey): google.cloud.vmwareengine.v1.HcxActivationKey; /** - * Encodes the specified CreateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. - * @param message CreateVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * @param message HcxActivationKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. - * @param message CreateVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * @param message HcxActivationKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a HcxActivationKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVmwareEngineNetworkRequest + * @returns HcxActivationKey * @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.vmwareengine.v1.CreateVmwareEngineNetworkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.HcxActivationKey; /** - * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVmwareEngineNetworkRequest + * @returns HcxActivationKey * @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.vmwareengine.v1.CreateVmwareEngineNetworkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.HcxActivationKey; /** - * Verifies a CreateVmwareEngineNetworkRequest message. + * Verifies a HcxActivationKey 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 CreateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HcxActivationKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVmwareEngineNetworkRequest + * @returns HcxActivationKey */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.HcxActivationKey; /** - * Creates a plain object from a CreateVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @param message CreateVmwareEngineNetworkRequest + * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified. + * @param message HcxActivationKey * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.HcxActivationKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVmwareEngineNetworkRequest to JSON. + * Converts this HcxActivationKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateVmwareEngineNetworkRequest + * Gets the default type url for HcxActivationKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateVmwareEngineNetworkRequest. */ - interface IUpdateVmwareEngineNetworkRequest { - - /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork */ - vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); - - /** UpdateVmwareEngineNetworkRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + namespace HcxActivationKey { - /** UpdateVmwareEngineNetworkRequest requestId */ - requestId?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + AVAILABLE = 1, + CONSUMED = 2, + CREATING = 3 + } } - /** Represents an UpdateVmwareEngineNetworkRequest. */ - class UpdateVmwareEngineNetworkRequest implements IUpdateVmwareEngineNetworkRequest { + /** Properties of a Hcx. */ + interface IHcx { + + /** Hcx internalIp */ + internalIp?: (string|null); + + /** Hcx version */ + version?: (string|null); + + /** Hcx state */ + state?: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State|null); + + /** Hcx fqdn */ + fqdn?: (string|null); + } + + /** Represents a Hcx. */ + class Hcx implements IHcx { /** - * Constructs a new UpdateVmwareEngineNetworkRequest. + * Constructs a new Hcx. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IHcx); - /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork. */ - public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null); + /** Hcx internalIp. */ + public internalIp: string; - /** UpdateVmwareEngineNetworkRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** Hcx version. */ + public version: string; - /** UpdateVmwareEngineNetworkRequest requestId. */ - public requestId: string; + /** Hcx state. */ + public state: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State); + + /** Hcx fqdn. */ + public fqdn: string; /** - * Creates a new UpdateVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new Hcx instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateVmwareEngineNetworkRequest instance + * @returns Hcx instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IHcx): google.cloud.vmwareengine.v1.Hcx; /** - * Encodes the specified UpdateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. - * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * @param message Hcx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. - * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * @param message Hcx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a Hcx message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateVmwareEngineNetworkRequest + * @returns Hcx * @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.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Hcx; /** - * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a Hcx message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateVmwareEngineNetworkRequest + * @returns Hcx * @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.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Hcx; /** - * Verifies an UpdateVmwareEngineNetworkRequest message. + * Verifies a Hcx 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 an UpdateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Hcx message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateVmwareEngineNetworkRequest + * @returns Hcx */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Hcx; /** - * Creates a plain object from an UpdateVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @param message UpdateVmwareEngineNetworkRequest + * Creates a plain object from a Hcx message. Also converts values to other types if specified. + * @param message Hcx * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.Hcx, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateVmwareEngineNetworkRequest to JSON. + * Converts this Hcx to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateVmwareEngineNetworkRequest + * Gets the default type url for Hcx * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteVmwareEngineNetworkRequest. */ - interface IDeleteVmwareEngineNetworkRequest { + namespace Hcx { - /** DeleteVmwareEngineNetworkRequest name */ - name?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2 + } + } - /** DeleteVmwareEngineNetworkRequest requestId */ - requestId?: (string|null); + /** Properties of a Nsx. */ + interface INsx { - /** DeleteVmwareEngineNetworkRequest etag */ - etag?: (string|null); + /** Nsx internalIp */ + internalIp?: (string|null); + + /** Nsx version */ + version?: (string|null); + + /** Nsx state */ + state?: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State|null); + + /** Nsx fqdn */ + fqdn?: (string|null); } - /** Represents a DeleteVmwareEngineNetworkRequest. */ - class DeleteVmwareEngineNetworkRequest implements IDeleteVmwareEngineNetworkRequest { + /** Represents a Nsx. */ + class Nsx implements INsx { /** - * Constructs a new DeleteVmwareEngineNetworkRequest. + * Constructs a new Nsx. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest); + constructor(properties?: google.cloud.vmwareengine.v1.INsx); - /** DeleteVmwareEngineNetworkRequest name. */ - public name: string; + /** Nsx internalIp. */ + public internalIp: string; - /** DeleteVmwareEngineNetworkRequest requestId. */ - public requestId: string; + /** Nsx version. */ + public version: string; - /** DeleteVmwareEngineNetworkRequest etag. */ - public etag: string; + /** Nsx state. */ + public state: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State); + + /** Nsx fqdn. */ + public fqdn: string; /** - * Creates a new DeleteVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new Nsx instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteVmwareEngineNetworkRequest instance + * @returns Nsx instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + public static create(properties?: google.cloud.vmwareengine.v1.INsx): google.cloud.vmwareengine.v1.Nsx; /** - * Encodes the specified DeleteVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. - * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * @param message Nsx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. - * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * @param message Nsx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a Nsx message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteVmwareEngineNetworkRequest + * @returns Nsx * @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.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Nsx; /** - * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a Nsx message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteVmwareEngineNetworkRequest + * @returns Nsx * @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.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Nsx; /** - * Verifies a DeleteVmwareEngineNetworkRequest message. + * Verifies a Nsx 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 DeleteVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Nsx message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteVmwareEngineNetworkRequest + * @returns Nsx */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Nsx; /** - * Creates a plain object from a DeleteVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @param message DeleteVmwareEngineNetworkRequest + * Creates a plain object from a Nsx message. Also converts values to other types if specified. + * @param message Nsx * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.Nsx, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteVmwareEngineNetworkRequest to JSON. + * Converts this Nsx to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteVmwareEngineNetworkRequest + * Gets the default type url for Nsx * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetVmwareEngineNetworkRequest. */ - interface IGetVmwareEngineNetworkRequest { + namespace Nsx { - /** GetVmwareEngineNetworkRequest name */ - name?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2 + } } - /** Represents a GetVmwareEngineNetworkRequest. */ - class GetVmwareEngineNetworkRequest implements IGetVmwareEngineNetworkRequest { + /** Properties of a Vcenter. */ + interface IVcenter { + + /** Vcenter internalIp */ + internalIp?: (string|null); + + /** Vcenter version */ + version?: (string|null); + + /** Vcenter state */ + state?: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State|null); + + /** Vcenter fqdn */ + fqdn?: (string|null); + } + + /** Represents a Vcenter. */ + class Vcenter implements IVcenter { /** - * Constructs a new GetVmwareEngineNetworkRequest. + * Constructs a new Vcenter. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IVcenter); - /** GetVmwareEngineNetworkRequest name. */ - public name: string; + /** Vcenter internalIp. */ + public internalIp: string; + + /** Vcenter version. */ + public version: string; + + /** Vcenter state. */ + public state: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State); + + /** Vcenter fqdn. */ + public fqdn: string; /** - * Creates a new GetVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new Vcenter instance using the specified properties. * @param [properties] Properties to set - * @returns GetVmwareEngineNetworkRequest instance + * @returns Vcenter instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IVcenter): google.cloud.vmwareengine.v1.Vcenter; /** - * Encodes the specified GetVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. - * @param message GetVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * @param message Vcenter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. - * @param message GetVmwareEngineNetworkRequest message or plain object to encode + * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * @param message Vcenter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a Vcenter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetVmwareEngineNetworkRequest + * @returns Vcenter * @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.vmwareengine.v1.GetVmwareEngineNetworkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.Vcenter; /** - * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a Vcenter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVmwareEngineNetworkRequest + * @returns Vcenter * @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.vmwareengine.v1.GetVmwareEngineNetworkRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.Vcenter; /** - * Verifies a GetVmwareEngineNetworkRequest message. + * Verifies a Vcenter 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 GetVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Vcenter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVmwareEngineNetworkRequest + * @returns Vcenter */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Vcenter; /** - * Creates a plain object from a GetVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @param message GetVmwareEngineNetworkRequest + * Creates a plain object from a Vcenter message. Also converts values to other types if specified. + * @param message Vcenter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.Vcenter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVmwareEngineNetworkRequest to JSON. + * Converts this Vcenter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetVmwareEngineNetworkRequest + * Gets the default type url for Vcenter * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListVmwareEngineNetworksRequest. */ - interface IListVmwareEngineNetworksRequest { + namespace Vcenter { - /** ListVmwareEngineNetworksRequest parent */ - parent?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CREATING = 2 + } + } + + /** Properties of a NetworkPolicy. */ + interface INetworkPolicy { + + /** NetworkPolicy name */ + name?: (string|null); + + /** NetworkPolicy createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPolicy updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPolicy internetAccess */ + internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + + /** NetworkPolicy externalIp */ + externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + + /** NetworkPolicy edgeServicesCidr */ + edgeServicesCidr?: (string|null); + + /** NetworkPolicy uid */ + uid?: (string|null); + + /** NetworkPolicy vmwareEngineNetwork */ + vmwareEngineNetwork?: (string|null); + + /** NetworkPolicy description */ + description?: (string|null); + + /** NetworkPolicy vmwareEngineNetworkCanonical */ + vmwareEngineNetworkCanonical?: (string|null); + } + + /** Represents a NetworkPolicy. */ + class NetworkPolicy implements INetworkPolicy { + + /** + * Constructs a new NetworkPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.INetworkPolicy); + + /** NetworkPolicy name. */ + public name: string; + + /** NetworkPolicy createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPolicy updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** NetworkPolicy internetAccess. */ + public internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + + /** NetworkPolicy externalIp. */ + public externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null); + + /** NetworkPolicy edgeServicesCidr. */ + public edgeServicesCidr: string; + + /** NetworkPolicy uid. */ + public uid: string; + + /** NetworkPolicy vmwareEngineNetwork. */ + public vmwareEngineNetwork: string; + + /** NetworkPolicy description. */ + public description: string; + + /** NetworkPolicy vmwareEngineNetworkCanonical. */ + public vmwareEngineNetworkCanonical: string; + + /** + * Creates a new NetworkPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkPolicy instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.INetworkPolicy): google.cloud.vmwareengine.v1.NetworkPolicy; + + /** + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkPolicy + * @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.vmwareengine.v1.NetworkPolicy; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkPolicy + * @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.vmwareengine.v1.NetworkPolicy; + + /** + * Verifies a NetworkPolicy 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 NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy; + + /** + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * @param message NetworkPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NetworkPolicy { + + /** Properties of a NetworkService. */ + interface INetworkService { + + /** NetworkService enabled */ + enabled?: (boolean|null); + + /** NetworkService state */ + state?: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null); + } + + /** Represents a NetworkService. */ + class NetworkService implements INetworkService { + + /** + * Constructs a new NetworkService. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService); + + /** NetworkService enabled. */ + public enabled: boolean; + + /** NetworkService state. */ + public state: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State); + + /** + * Creates a new NetworkService instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkService instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; + + /** + * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * @param message NetworkService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * @param message NetworkService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkService message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkService + * @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.vmwareengine.v1.NetworkPolicy.NetworkService; + + /** + * Decodes a NetworkService message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkService + * @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.vmwareengine.v1.NetworkPolicy.NetworkService; + + /** + * Verifies a NetworkService 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 NetworkService message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkService + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService; + + /** + * Creates a plain object from a NetworkService message. Also converts values to other types if specified. + * @param message NetworkService + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkService to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkService + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NetworkService { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + UNPROVISIONED = 1, + RECONCILING = 2, + ACTIVE = 3 + } + } + } + + /** Properties of a VmwareEngineNetwork. */ + interface IVmwareEngineNetwork { + + /** VmwareEngineNetwork name */ + name?: (string|null); + + /** VmwareEngineNetwork createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** VmwareEngineNetwork updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** VmwareEngineNetwork description */ + description?: (string|null); + + /** VmwareEngineNetwork vpcNetworks */ + vpcNetworks?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[]|null); - /** ListVmwareEngineNetworksRequest pageSize */ - pageSize?: (number|null); + /** VmwareEngineNetwork state */ + state?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|null); - /** ListVmwareEngineNetworksRequest pageToken */ - pageToken?: (string|null); + /** VmwareEngineNetwork type */ + type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|null); - /** ListVmwareEngineNetworksRequest filter */ - filter?: (string|null); + /** VmwareEngineNetwork uid */ + uid?: (string|null); - /** ListVmwareEngineNetworksRequest orderBy */ - orderBy?: (string|null); + /** VmwareEngineNetwork etag */ + etag?: (string|null); } - /** Represents a ListVmwareEngineNetworksRequest. */ - class ListVmwareEngineNetworksRequest implements IListVmwareEngineNetworksRequest { + /** Represents a VmwareEngineNetwork. */ + class VmwareEngineNetwork implements IVmwareEngineNetwork { /** - * Constructs a new ListVmwareEngineNetworksRequest. + * Constructs a new VmwareEngineNetwork. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest); + constructor(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork); - /** ListVmwareEngineNetworksRequest parent. */ - public parent: string; + /** VmwareEngineNetwork name. */ + public name: string; - /** ListVmwareEngineNetworksRequest pageSize. */ - public pageSize: number; + /** VmwareEngineNetwork createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListVmwareEngineNetworksRequest pageToken. */ - public pageToken: string; + /** VmwareEngineNetwork updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** ListVmwareEngineNetworksRequest filter. */ - public filter: string; + /** VmwareEngineNetwork description. */ + public description: string; - /** ListVmwareEngineNetworksRequest orderBy. */ - public orderBy: string; + /** VmwareEngineNetwork vpcNetworks. */ + public vpcNetworks: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[]; + + /** VmwareEngineNetwork state. */ + public state: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State); + + /** VmwareEngineNetwork type. */ + public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type); + + /** VmwareEngineNetwork uid. */ + public uid: string; + + /** VmwareEngineNetwork etag. */ + public etag: string; /** - * Creates a new ListVmwareEngineNetworksRequest instance using the specified properties. + * Creates a new VmwareEngineNetwork instance using the specified properties. * @param [properties] Properties to set - * @returns ListVmwareEngineNetworksRequest instance + * @returns VmwareEngineNetwork instance */ - public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + public static create(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork; /** - * Encodes the specified ListVmwareEngineNetworksRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. - * @param message ListVmwareEngineNetworksRequest message or plain object to encode + * Encodes the specified VmwareEngineNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * @param message VmwareEngineNetwork message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVmwareEngineNetworksRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. - * @param message ListVmwareEngineNetworksRequest message or plain object to encode + * Encodes the specified VmwareEngineNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * @param message VmwareEngineNetwork message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer. + * Decodes a VmwareEngineNetwork message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVmwareEngineNetworksRequest + * @returns VmwareEngineNetwork * @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.vmwareengine.v1.ListVmwareEngineNetworksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.VmwareEngineNetwork; /** - * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer, length delimited. + * Decodes a VmwareEngineNetwork message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVmwareEngineNetworksRequest + * @returns VmwareEngineNetwork * @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.vmwareengine.v1.ListVmwareEngineNetworksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.VmwareEngineNetwork; /** - * Verifies a ListVmwareEngineNetworksRequest message. + * Verifies a VmwareEngineNetwork 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 ListVmwareEngineNetworksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VmwareEngineNetwork message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVmwareEngineNetworksRequest + * @returns VmwareEngineNetwork */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork; /** - * Creates a plain object from a ListVmwareEngineNetworksRequest message. Also converts values to other types if specified. - * @param message ListVmwareEngineNetworksRequest + * Creates a plain object from a VmwareEngineNetwork message. Also converts values to other types if specified. + * @param message VmwareEngineNetwork * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVmwareEngineNetworksRequest to JSON. + * Converts this VmwareEngineNetwork to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListVmwareEngineNetworksRequest + * Gets the default type url for VmwareEngineNetwork * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListVmwareEngineNetworksResponse. */ - interface IListVmwareEngineNetworksResponse { + namespace VmwareEngineNetwork { - /** ListVmwareEngineNetworksResponse vmwareEngineNetworks */ - vmwareEngineNetworks?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork[]|null); + /** Properties of a VpcNetwork. */ + interface IVpcNetwork { - /** ListVmwareEngineNetworksResponse nextPageToken */ - nextPageToken?: (string|null); + /** VpcNetwork type */ + type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|null); - /** ListVmwareEngineNetworksResponse unreachable */ - unreachable?: (string[]|null); - } + /** VpcNetwork network */ + network?: (string|null); + } - /** Represents a ListVmwareEngineNetworksResponse. */ - class ListVmwareEngineNetworksResponse implements IListVmwareEngineNetworksResponse { + /** Represents a VpcNetwork. */ + class VpcNetwork implements IVpcNetwork { - /** - * Constructs a new ListVmwareEngineNetworksResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse); + /** + * Constructs a new VpcNetwork. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork); - /** ListVmwareEngineNetworksResponse vmwareEngineNetworks. */ - public vmwareEngineNetworks: google.cloud.vmwareengine.v1.IVmwareEngineNetwork[]; + /** VpcNetwork type. */ + public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type); - /** ListVmwareEngineNetworksResponse nextPageToken. */ - public nextPageToken: string; + /** VpcNetwork network. */ + public network: string; - /** ListVmwareEngineNetworksResponse unreachable. */ - public unreachable: string[]; + /** + * Creates a new VpcNetwork instance using the specified properties. + * @param [properties] Properties to set + * @returns VpcNetwork instance + */ + public static create(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; - /** - * Creates a new ListVmwareEngineNetworksResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListVmwareEngineNetworksResponse instance - */ - public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + /** + * Encodes the specified VpcNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. + * @param message VpcNetwork message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListVmwareEngineNetworksResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. - * @param message ListVmwareEngineNetworksResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified VpcNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. + * @param message VpcNetwork message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListVmwareEngineNetworksResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. - * @param message ListVmwareEngineNetworksResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a VpcNetwork message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VpcNetwork + * @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.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; - /** - * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListVmwareEngineNetworksResponse - * @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.vmwareengine.v1.ListVmwareEngineNetworksResponse; + /** + * Decodes a VpcNetwork message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VpcNetwork + * @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.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; - /** - * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListVmwareEngineNetworksResponse - * @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.vmwareengine.v1.ListVmwareEngineNetworksResponse; + /** + * Verifies a VpcNetwork 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); - /** - * Verifies a ListVmwareEngineNetworksResponse 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 VpcNetwork message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VpcNetwork + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork; + + /** + * Creates a plain object from a VpcNetwork message. Also converts values to other types if specified. + * @param message VpcNetwork + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VpcNetwork to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VpcNetwork + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a ListVmwareEngineNetworksResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListVmwareEngineNetworksResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; + namespace VpcNetwork { - /** - * Creates a plain object from a ListVmwareEngineNetworksResponse message. Also converts values to other types if specified. - * @param message ListVmwareEngineNetworksResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + INTRANET = 1, + INTERNET = 2, + GOOGLE_CLOUD = 3 + } + } - /** - * Converts this ListVmwareEngineNetworksResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + CREATING = 1, + ACTIVE = 2, + UPDATING = 3, + DELETING = 4 + } - /** - * Gets the default type url for ListVmwareEngineNetworksResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + LEGACY = 1 + } } } } @@ -11012,6 +11012,109 @@ export namespace google { } } + /** Properties of a Timestamp. */ + interface ITimestamp { + + /** Timestamp seconds */ + seconds?: (number|Long|string|null); + + /** Timestamp nanos */ + nanos?: (number|null); + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: (number|Long|string); + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @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.protobuf.Timestamp; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Timestamp + * @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.protobuf.Timestamp; + + /** + * Verifies a Timestamp 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 Timestamp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Timestamp + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Timestamp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Timestamp + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an Any. */ interface IAny { @@ -11405,109 +11508,6 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - /** Properties of a Timestamp. */ - interface ITimestamp { - - /** Timestamp seconds */ - seconds?: (number|Long|string|null); - - /** Timestamp nanos */ - nanos?: (number|null); - } - - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { - - /** - * Constructs a new Timestamp. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ITimestamp); - - /** Timestamp seconds. */ - public seconds: (number|Long|string); - - /** Timestamp nanos. */ - public nanos: number; - - /** - * Creates a new Timestamp instance using the specified properties. - * @param [properties] Properties to set - * @returns Timestamp instance - */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Timestamp - * @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.protobuf.Timestamp; - - /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Timestamp - * @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.protobuf.Timestamp; - - /** - * Verifies a Timestamp 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 Timestamp message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Timestamp - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; - - /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @param message Timestamp - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Timestamp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Timestamp - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } } /** Namespace longrunning. */ diff --git a/packages/google-cloud-vmwareengine/protos/protos.js b/packages/google-cloud-vmwareengine/protos/protos.js index 889dd94472a1..516fcc77e6ba 100644 --- a/packages/google-cloud-vmwareengine/protos/protos.js +++ b/packages/google-cloud-vmwareengine/protos/protos.js @@ -1124,27 +1124,28 @@ return VmwareEngine; })(); - v1.NetworkConfig = (function() { + v1.ListPrivateCloudsRequest = (function() { /** - * Properties of a NetworkConfig. + * Properties of a ListPrivateCloudsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface INetworkConfig - * @property {string|null} [managementCidr] NetworkConfig managementCidr - * @property {string|null} [vmwareEngineNetwork] NetworkConfig vmwareEngineNetwork - * @property {string|null} [vmwareEngineNetworkCanonical] NetworkConfig vmwareEngineNetworkCanonical - * @property {number|null} [managementIpAddressLayoutVersion] NetworkConfig managementIpAddressLayoutVersion + * @interface IListPrivateCloudsRequest + * @property {string|null} [parent] ListPrivateCloudsRequest parent + * @property {number|null} [pageSize] ListPrivateCloudsRequest pageSize + * @property {string|null} [pageToken] ListPrivateCloudsRequest pageToken + * @property {string|null} [filter] ListPrivateCloudsRequest filter + * @property {string|null} [orderBy] ListPrivateCloudsRequest orderBy */ /** - * Constructs a new NetworkConfig. + * Constructs a new ListPrivateCloudsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a NetworkConfig. - * @implements INetworkConfig + * @classdesc Represents a ListPrivateCloudsRequest. + * @implements IListPrivateCloudsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set */ - function NetworkConfig(properties) { + function ListPrivateCloudsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1152,117 +1153,131 @@ } /** - * NetworkConfig managementCidr. - * @member {string} managementCidr - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * ListPrivateCloudsRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance */ - NetworkConfig.prototype.managementCidr = ""; + ListPrivateCloudsRequest.prototype.parent = ""; /** - * NetworkConfig vmwareEngineNetwork. - * @member {string} vmwareEngineNetwork - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * ListPrivateCloudsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance */ - NetworkConfig.prototype.vmwareEngineNetwork = ""; + ListPrivateCloudsRequest.prototype.pageSize = 0; /** - * NetworkConfig vmwareEngineNetworkCanonical. - * @member {string} vmwareEngineNetworkCanonical - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * ListPrivateCloudsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance */ - NetworkConfig.prototype.vmwareEngineNetworkCanonical = ""; + ListPrivateCloudsRequest.prototype.pageToken = ""; /** - * NetworkConfig managementIpAddressLayoutVersion. - * @member {number} managementIpAddressLayoutVersion - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * ListPrivateCloudsRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance */ - NetworkConfig.prototype.managementIpAddressLayoutVersion = 0; + ListPrivateCloudsRequest.prototype.filter = ""; /** - * Creates a new NetworkConfig instance using the specified properties. + * ListPrivateCloudsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @instance + */ + ListPrivateCloudsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListPrivateCloudsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static - * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig instance + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest instance */ - NetworkConfig.create = function create(properties) { - return new NetworkConfig(properties); + ListPrivateCloudsRequest.create = function create(properties) { + return new ListPrivateCloudsRequest(properties); }; /** - * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified ListPrivateCloudsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static - * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encode = function encode(message, writer) { + ListPrivateCloudsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.managementCidr != null && Object.hasOwnProperty.call(message, "managementCidr")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.managementCidr); - if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.vmwareEngineNetwork); - if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.vmwareEngineNetworkCanonical); - if (message.managementIpAddressLayoutVersion != null && Object.hasOwnProperty.call(message, "managementIpAddressLayoutVersion")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.managementIpAddressLayoutVersion); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified ListPrivateCloudsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static - * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListPrivateCloudsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkConfig message from the specified reader or buffer. + * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decode = function decode(reader, length) { + ListPrivateCloudsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: { - message.managementCidr = reader.string(); + case 1: { + message.parent = reader.string(); break; } - case 5: { - message.vmwareEngineNetwork = reader.string(); + case 2: { + message.pageSize = reader.int32(); break; } - case 6: { - message.vmwareEngineNetworkCanonical = reader.string(); + case 3: { + message.pageToken = reader.string(); break; } - case 8: { - message.managementIpAddressLayoutVersion = reader.int32(); + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -1274,148 +1289,159 @@ }; /** - * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decodeDelimited = function decodeDelimited(reader) { + ListPrivateCloudsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NetworkConfig message. + * Verifies a ListPrivateCloudsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetworkConfig.verify = function verify(message) { + ListPrivateCloudsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.managementCidr != null && message.hasOwnProperty("managementCidr")) - if (!$util.isString(message.managementCidr)) - return "managementCidr: string expected"; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - if (!$util.isString(message.vmwareEngineNetwork)) - return "vmwareEngineNetwork: string expected"; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - if (!$util.isString(message.vmwareEngineNetworkCanonical)) - return "vmwareEngineNetworkCanonical: string expected"; - if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion")) - if (!$util.isInteger(message.managementIpAddressLayoutVersion)) - return "managementIpAddressLayoutVersion: integer expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListPrivateCloudsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest */ - NetworkConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkConfig) + ListPrivateCloudsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.NetworkConfig(); - if (object.managementCidr != null) - message.managementCidr = String(object.managementCidr); - if (object.vmwareEngineNetwork != null) - message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); - if (object.vmwareEngineNetworkCanonical != null) - message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); - if (object.managementIpAddressLayoutVersion != null) - message.managementIpAddressLayoutVersion = object.managementIpAddressLayoutVersion | 0; + var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListPrivateCloudsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static - * @param {google.cloud.vmwareengine.v1.NetworkConfig} message NetworkConfig + * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} message ListPrivateCloudsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkConfig.toObject = function toObject(message, options) { + ListPrivateCloudsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.managementCidr = ""; - object.vmwareEngineNetwork = ""; - object.vmwareEngineNetworkCanonical = ""; - object.managementIpAddressLayoutVersion = 0; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } - if (message.managementCidr != null && message.hasOwnProperty("managementCidr")) - object.managementCidr = message.managementCidr; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - object.vmwareEngineNetwork = message.vmwareEngineNetwork; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; - if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion")) - object.managementIpAddressLayoutVersion = message.managementIpAddressLayoutVersion; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this NetworkConfig to JSON. + * Converts this ListPrivateCloudsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @instance * @returns {Object.} JSON object */ - NetworkConfig.prototype.toJSON = function toJSON() { + ListPrivateCloudsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NetworkConfig + * Gets the default type url for ListPrivateCloudsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NetworkConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPrivateCloudsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkConfig"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsRequest"; }; - return NetworkConfig; + return ListPrivateCloudsRequest; })(); - v1.NodeTypeConfig = (function() { + v1.ListPrivateCloudsResponse = (function() { /** - * Properties of a NodeTypeConfig. + * Properties of a ListPrivateCloudsResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface INodeTypeConfig - * @property {number|null} [nodeCount] NodeTypeConfig nodeCount - * @property {number|null} [customCoreCount] NodeTypeConfig customCoreCount + * @interface IListPrivateCloudsResponse + * @property {Array.|null} [privateClouds] ListPrivateCloudsResponse privateClouds + * @property {string|null} [nextPageToken] ListPrivateCloudsResponse nextPageToken + * @property {Array.|null} [unreachable] ListPrivateCloudsResponse unreachable */ /** - * Constructs a new NodeTypeConfig. + * Constructs a new ListPrivateCloudsResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a NodeTypeConfig. - * @implements INodeTypeConfig + * @classdesc Represents a ListPrivateCloudsResponse. + * @implements IListPrivateCloudsResponse * @constructor - * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set */ - function NodeTypeConfig(properties) { + function ListPrivateCloudsResponse(properties) { + this.privateClouds = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1423,89 +1449,109 @@ } /** - * NodeTypeConfig nodeCount. - * @member {number} nodeCount - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * ListPrivateCloudsResponse privateClouds. + * @member {Array.} privateClouds + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @instance */ - NodeTypeConfig.prototype.nodeCount = 0; + ListPrivateCloudsResponse.prototype.privateClouds = $util.emptyArray; /** - * NodeTypeConfig customCoreCount. - * @member {number} customCoreCount - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * ListPrivateCloudsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @instance */ - NodeTypeConfig.prototype.customCoreCount = 0; + ListPrivateCloudsResponse.prototype.nextPageToken = ""; /** - * Creates a new NodeTypeConfig instance using the specified properties. + * ListPrivateCloudsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @instance + */ + ListPrivateCloudsResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListPrivateCloudsResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static - * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig instance + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse instance */ - NodeTypeConfig.create = function create(properties) { - return new NodeTypeConfig(properties); + ListPrivateCloudsResponse.create = function create(properties) { + return new ListPrivateCloudsResponse(properties); }; /** - * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * Encodes the specified ListPrivateCloudsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static - * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeTypeConfig.encode = function encode(message, writer) { + ListPrivateCloudsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nodeCount); - if (message.customCoreCount != null && Object.hasOwnProperty.call(message, "customCoreCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.customCoreCount); + if (message.privateClouds != null && message.privateClouds.length) + for (var i = 0; i < message.privateClouds.length; ++i) + $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateClouds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. + * Encodes the specified ListPrivateCloudsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static - * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeTypeConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListPrivateCloudsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeTypeConfig message from the specified reader or buffer. + * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeTypeConfig.decode = function decode(reader, length) { + ListPrivateCloudsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NodeTypeConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.nodeCount = reader.int32(); + if (!(message.privateClouds && message.privateClouds.length)) + message.privateClouds = []; + message.privateClouds.push($root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32())); break; } case 2: { - message.customCoreCount = reader.int32(); + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -1517,143 +1563,169 @@ }; /** - * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited. + * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeTypeConfig.decodeDelimited = function decodeDelimited(reader) { + ListPrivateCloudsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeTypeConfig message. + * Verifies a ListPrivateCloudsResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeTypeConfig.verify = function verify(message) { + ListPrivateCloudsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) - if (!$util.isInteger(message.nodeCount)) - return "nodeCount: integer expected"; - if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) - if (!$util.isInteger(message.customCoreCount)) - return "customCoreCount: integer expected"; + if (message.privateClouds != null && message.hasOwnProperty("privateClouds")) { + if (!Array.isArray(message.privateClouds)) + return "privateClouds: array expected"; + for (var i = 0; i < message.privateClouds.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateClouds[i]); + if (error) + return "privateClouds." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a NodeTypeConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListPrivateCloudsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig + * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse */ - NodeTypeConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NodeTypeConfig) + ListPrivateCloudsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.NodeTypeConfig(); - if (object.nodeCount != null) - message.nodeCount = object.nodeCount | 0; - if (object.customCoreCount != null) - message.customCoreCount = object.customCoreCount | 0; + var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(); + if (object.privateClouds) { + if (!Array.isArray(object.privateClouds)) + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: array expected"); + message.privateClouds = []; + for (var i = 0; i < object.privateClouds.length; ++i) { + if (typeof object.privateClouds[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: object expected"); + message.privateClouds[i] = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateClouds[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListPrivateCloudsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static - * @param {google.cloud.vmwareengine.v1.NodeTypeConfig} message NodeTypeConfig + * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} message ListPrivateCloudsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeTypeConfig.toObject = function toObject(message, options) { + ListPrivateCloudsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.nodeCount = 0; - object.customCoreCount = 0; + if (options.arrays || options.defaults) { + object.privateClouds = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.privateClouds && message.privateClouds.length) { + object.privateClouds = []; + for (var j = 0; j < message.privateClouds.length; ++j) + object.privateClouds[j] = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateClouds[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) - object.nodeCount = message.nodeCount; - if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) - object.customCoreCount = message.customCoreCount; return object; }; /** - * Converts this NodeTypeConfig to JSON. + * Converts this ListPrivateCloudsResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @instance * @returns {Object.} JSON object */ - NodeTypeConfig.prototype.toJSON = function toJSON() { + ListPrivateCloudsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NodeTypeConfig + * Gets the default type url for ListPrivateCloudsResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig + * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NodeTypeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPrivateCloudsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeTypeConfig"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsResponse"; }; - return NodeTypeConfig; + return ListPrivateCloudsResponse; })(); - v1.PrivateCloud = (function() { + v1.GetPrivateCloudRequest = (function() { /** - * Properties of a PrivateCloud. + * Properties of a GetPrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IPrivateCloud - * @property {string|null} [name] PrivateCloud name - * @property {google.protobuf.ITimestamp|null} [createTime] PrivateCloud createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] PrivateCloud updateTime - * @property {google.protobuf.ITimestamp|null} [deleteTime] PrivateCloud deleteTime - * @property {google.protobuf.ITimestamp|null} [expireTime] PrivateCloud expireTime - * @property {google.cloud.vmwareengine.v1.PrivateCloud.State|null} [state] PrivateCloud state - * @property {google.cloud.vmwareengine.v1.INetworkConfig|null} [networkConfig] PrivateCloud networkConfig - * @property {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null} [managementCluster] PrivateCloud managementCluster - * @property {string|null} [description] PrivateCloud description - * @property {google.cloud.vmwareengine.v1.IHcx|null} [hcx] PrivateCloud hcx - * @property {google.cloud.vmwareengine.v1.INsx|null} [nsx] PrivateCloud nsx - * @property {google.cloud.vmwareengine.v1.IVcenter|null} [vcenter] PrivateCloud vcenter - * @property {string|null} [uid] PrivateCloud uid + * @interface IGetPrivateCloudRequest + * @property {string|null} [name] GetPrivateCloudRequest name */ /** - * Constructs a new PrivateCloud. + * Constructs a new GetPrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a PrivateCloud. - * @implements IPrivateCloud + * @classdesc Represents a GetPrivateCloudRequest. + * @implements IGetPrivateCloudRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set */ - function PrivateCloud(properties) { + function GetPrivateCloudRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1661,190 +1733,70 @@ } /** - * PrivateCloud name. + * GetPrivateCloudRequest name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.name = ""; - - /** - * PrivateCloud createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.createTime = null; - - /** - * PrivateCloud updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.updateTime = null; - - /** - * PrivateCloud deleteTime. - * @member {google.protobuf.ITimestamp|null|undefined} deleteTime - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.deleteTime = null; - - /** - * PrivateCloud expireTime. - * @member {google.protobuf.ITimestamp|null|undefined} expireTime - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.expireTime = null; - - /** - * PrivateCloud state. - * @member {google.cloud.vmwareengine.v1.PrivateCloud.State} state - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.state = 0; - - /** - * PrivateCloud networkConfig. - * @member {google.cloud.vmwareengine.v1.INetworkConfig|null|undefined} networkConfig - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.networkConfig = null; - - /** - * PrivateCloud managementCluster. - * @member {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null|undefined} managementCluster - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.managementCluster = null; - - /** - * PrivateCloud description. - * @member {string} description - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.description = ""; - - /** - * PrivateCloud hcx. - * @member {google.cloud.vmwareengine.v1.IHcx|null|undefined} hcx - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.hcx = null; - - /** - * PrivateCloud nsx. - * @member {google.cloud.vmwareengine.v1.INsx|null|undefined} nsx - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.nsx = null; - - /** - * PrivateCloud vcenter. - * @member {google.cloud.vmwareengine.v1.IVcenter|null|undefined} vcenter - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @instance - */ - PrivateCloud.prototype.vcenter = null; - - /** - * PrivateCloud uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @instance */ - PrivateCloud.prototype.uid = ""; + GetPrivateCloudRequest.prototype.name = ""; /** - * Creates a new PrivateCloud instance using the specified properties. + * Creates a new GetPrivateCloudRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud instance + * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest instance */ - PrivateCloud.create = function create(properties) { - return new PrivateCloud(properties); + GetPrivateCloudRequest.create = function create(properties) { + return new GetPrivateCloudRequest(properties); }; /** - * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * Encodes the specified GetPrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateCloud.encode = function encode(message, writer) { + GetPrivateCloudRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) - $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); - if (message.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig")) - $root.google.cloud.vmwareengine.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.managementCluster != null && Object.hasOwnProperty.call(message, "managementCluster")) - $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.encode(message.managementCluster, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.description); - if (message.hcx != null && Object.hasOwnProperty.call(message, "hcx")) - $root.google.cloud.vmwareengine.v1.Hcx.encode(message.hcx, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.nsx != null && Object.hasOwnProperty.call(message, "nsx")) - $root.google.cloud.vmwareengine.v1.Nsx.encode(message.nsx, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.vcenter != null && Object.hasOwnProperty.call(message, "vcenter")) - $root.google.cloud.vmwareengine.v1.Vcenter.encode(message.vcenter, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 20, wireType 2 =*/162).string(message.uid); return writer; }; /** - * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. + * Encodes the specified GetPrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateCloud.encodeDelimited = function encodeDelimited(message, writer) { + GetPrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrivateCloud message from the specified reader or buffer. + * Decodes a GetPrivateCloudRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud + * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateCloud.decode = function decode(reader, length) { + GetPrivateCloudRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateCloud(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -1852,54 +1804,6 @@ message.name = reader.string(); break; } - case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.state = reader.int32(); - break; - } - case 9: { - message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.decode(reader, reader.uint32()); - break; - } - case 11: { - message.description = reader.string(); - break; - } - case 17: { - message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.decode(reader, reader.uint32()); - break; - } - case 18: { - message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.decode(reader, reader.uint32()); - break; - } - case 19: { - message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.decode(reader, reader.uint32()); - break; - } - case 20: { - message.uid = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -1909,605 +1813,976 @@ }; /** - * Decodes a PrivateCloud message from the specified reader or buffer, length delimited. + * Decodes a GetPrivateCloudRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud + * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateCloud.decodeDelimited = function decodeDelimited(reader) { + GetPrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrivateCloud message. + * Verifies a GetPrivateCloudRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivateCloud.verify = function verify(message) { + GetPrivateCloudRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); - if (error) - return "deleteTime." + error; - } - if (message.expireTime != null && message.hasOwnProperty("expireTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.expireTime); - if (error) - return "expireTime." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 5: - case 6: - case 7: - break; - } - if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkConfig.verify(message.networkConfig); - if (error) - return "networkConfig." + error; - } - if (message.managementCluster != null && message.hasOwnProperty("managementCluster")) { - var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify(message.managementCluster); - if (error) - return "managementCluster." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.hcx != null && message.hasOwnProperty("hcx")) { - var error = $root.google.cloud.vmwareengine.v1.Hcx.verify(message.hcx); - if (error) - return "hcx." + error; - } - if (message.nsx != null && message.hasOwnProperty("nsx")) { - var error = $root.google.cloud.vmwareengine.v1.Nsx.verify(message.nsx); - if (error) - return "nsx." + error; - } - if (message.vcenter != null && message.hasOwnProperty("vcenter")) { - var error = $root.google.cloud.vmwareengine.v1.Vcenter.verify(message.vcenter); - if (error) - return "vcenter." + error; - } - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; return null; }; /** - * Creates a PrivateCloud message from a plain object. Also converts values to their respective internal types. + * Creates a GetPrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud + * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest */ - PrivateCloud.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud) + GetPrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud(); + var message = new $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(); if (object.name != null) message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.deleteTime != null) { - if (typeof object.deleteTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.deleteTime: object expected"); - message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); - } - if (object.expireTime != null) { - if (typeof object.expireTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.expireTime: object expected"); - message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "FAILED": - case 5: - message.state = 5; - break; - case "DELETED": - case 6: - message.state = 6; - break; - case "PURGING": - case 7: - message.state = 7; - break; - } - if (object.networkConfig != null) { - if (typeof object.networkConfig !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.networkConfig: object expected"); - message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.fromObject(object.networkConfig); - } - if (object.managementCluster != null) { - if (typeof object.managementCluster !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.managementCluster: object expected"); - message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.fromObject(object.managementCluster); - } - if (object.description != null) - message.description = String(object.description); - if (object.hcx != null) { - if (typeof object.hcx !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.hcx: object expected"); - message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.fromObject(object.hcx); - } - if (object.nsx != null) { - if (typeof object.nsx !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.nsx: object expected"); - message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.fromObject(object.nsx); - } - if (object.vcenter != null) { - if (typeof object.vcenter !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.vcenter: object expected"); - message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.fromObject(object.vcenter); - } - if (object.uid != null) - message.uid = String(object.uid); return message; }; /** - * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified. + * Creates a plain object from a GetPrivateCloudRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud} message PrivateCloud + * @param {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} message GetPrivateCloudRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrivateCloud.toObject = function toObject(message, options) { + GetPrivateCloudRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.createTime = null; - object.updateTime = null; - object.deleteTime = null; - object.expireTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.networkConfig = null; - object.managementCluster = null; - object.description = ""; - object.hcx = null; - object.nsx = null; - object.vcenter = null; - object.uid = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) - object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] : message.state; - if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) - object.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.toObject(message.networkConfig, options); - if (message.managementCluster != null && message.hasOwnProperty("managementCluster")) - object.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.toObject(message.managementCluster, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.hcx != null && message.hasOwnProperty("hcx")) - object.hcx = $root.google.cloud.vmwareengine.v1.Hcx.toObject(message.hcx, options); - if (message.nsx != null && message.hasOwnProperty("nsx")) - object.nsx = $root.google.cloud.vmwareengine.v1.Nsx.toObject(message.nsx, options); - if (message.vcenter != null && message.hasOwnProperty("vcenter")) - object.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.toObject(message.vcenter, options); - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; return object; }; /** - * Converts this PrivateCloud to JSON. + * Converts this GetPrivateCloudRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @instance * @returns {Object.} JSON object */ - PrivateCloud.prototype.toJSON = function toJSON() { + GetPrivateCloudRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrivateCloud + * Gets the default type url for GetPrivateCloudRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrivateCloud.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetPrivateCloudRequest"; }; + return GetPrivateCloudRequest; + })(); + + v1.CreatePrivateCloudRequest = (function() { + /** - * State enum. - * @name google.cloud.vmwareengine.v1.PrivateCloud.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - * @property {number} UPDATING=3 UPDATING value - * @property {number} FAILED=5 FAILED value - * @property {number} DELETED=6 DELETED value - * @property {number} PURGING=7 PURGING value + * Properties of a CreatePrivateCloudRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface ICreatePrivateCloudRequest + * @property {string|null} [parent] CreatePrivateCloudRequest parent + * @property {string|null} [privateCloudId] CreatePrivateCloudRequest privateCloudId + * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] CreatePrivateCloudRequest privateCloud + * @property {string|null} [requestId] CreatePrivateCloudRequest requestId + * @property {boolean|null} [validateOnly] CreatePrivateCloudRequest validateOnly */ - PrivateCloud.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "DELETED"] = 6; - values[valuesById[7] = "PURGING"] = 7; - return values; - })(); - PrivateCloud.ManagementCluster = (function() { + /** + * Constructs a new CreatePrivateCloudRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a CreatePrivateCloudRequest. + * @implements ICreatePrivateCloudRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set + */ + function CreatePrivateCloudRequest(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]]; + } - /** - * Properties of a ManagementCluster. - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @interface IManagementCluster - * @property {string|null} [clusterId] ManagementCluster clusterId - * @property {Object.|null} [nodeTypeConfigs] ManagementCluster nodeTypeConfigs - */ + /** + * CreatePrivateCloudRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @instance + */ + CreatePrivateCloudRequest.prototype.parent = ""; - /** - * Constructs a new ManagementCluster. - * @memberof google.cloud.vmwareengine.v1.PrivateCloud - * @classdesc Represents a ManagementCluster. - * @implements IManagementCluster - * @constructor - * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set - */ - function ManagementCluster(properties) { - this.nodeTypeConfigs = {}; - 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]]; - } + /** + * CreatePrivateCloudRequest privateCloudId. + * @member {string} privateCloudId + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @instance + */ + CreatePrivateCloudRequest.prototype.privateCloudId = ""; - /** - * ManagementCluster clusterId. - * @member {string} clusterId - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @instance - */ - ManagementCluster.prototype.clusterId = ""; + /** + * CreatePrivateCloudRequest privateCloud. + * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @instance + */ + CreatePrivateCloudRequest.prototype.privateCloud = null; - /** - * ManagementCluster nodeTypeConfigs. - * @member {Object.} nodeTypeConfigs - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @instance - */ - ManagementCluster.prototype.nodeTypeConfigs = $util.emptyObject; + /** + * CreatePrivateCloudRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @instance + */ + CreatePrivateCloudRequest.prototype.requestId = ""; - /** - * Creates a new ManagementCluster instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster instance - */ - ManagementCluster.create = function create(properties) { - return new ManagementCluster(properties); - }; + /** + * CreatePrivateCloudRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @instance + */ + CreatePrivateCloudRequest.prototype.validateOnly = false; - /** - * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ManagementCluster.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clusterId); - if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs")) - for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; + /** + * Creates a new CreatePrivateCloudRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest instance + */ + CreatePrivateCloudRequest.create = function create(properties) { + return new CreatePrivateCloudRequest(properties); + }; - /** - * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ManagementCluster.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified CreatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePrivateCloudRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.privateCloudId != null && Object.hasOwnProperty.call(message, "privateCloudId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.privateCloudId); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly); + return writer; + }; - /** - * Decodes a ManagementCluster message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ManagementCluster.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.clusterId = reader.string(); - break; - } - case 7: { - if (message.nodeTypeConfigs === $util.emptyObject) - message.nodeTypeConfigs = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.nodeTypeConfigs[key] = value; - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified CreatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePrivateCloudRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.privateCloudId = reader.string(); + break; + } + case 3: { + message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); + break; + } + case 5: { + message.validateOnly = reader.bool(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a ManagementCluster message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ManagementCluster.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreatePrivateCloudRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreatePrivateCloudRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.privateCloudId != null && message.hasOwnProperty("privateCloudId")) + if (!$util.isString(message.privateCloudId)) + return "privateCloudId: string expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) { + var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud); + if (error) + return "privateCloud." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; + return null; + }; + + /** + * Creates a CreatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest + */ + CreatePrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.privateCloudId != null) + message.privateCloudId = String(object.privateCloudId); + if (object.privateCloud != null) { + if (typeof object.privateCloud !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.privateCloud: object expected"); + message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); + return message; + }; + + /** + * Creates a plain object from a CreatePrivateCloudRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} message CreatePrivateCloudRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreatePrivateCloudRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.privateCloudId = ""; + object.privateCloud = null; + object.requestId = ""; + object.validateOnly = false; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.privateCloudId != null && message.hasOwnProperty("privateCloudId")) + object.privateCloudId = message.privateCloudId; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; + return object; + }; + + /** + * Converts this CreatePrivateCloudRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @instance + * @returns {Object.} JSON object + */ + CreatePrivateCloudRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreatePrivateCloudRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreatePrivateCloudRequest"; + }; + + return CreatePrivateCloudRequest; + })(); + + v1.UpdatePrivateCloudRequest = (function() { + + /** + * Properties of an UpdatePrivateCloudRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IUpdatePrivateCloudRequest + * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] UpdatePrivateCloudRequest privateCloud + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePrivateCloudRequest updateMask + * @property {string|null} [requestId] UpdatePrivateCloudRequest requestId + */ + + /** + * Constructs a new UpdatePrivateCloudRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents an UpdatePrivateCloudRequest. + * @implements IUpdatePrivateCloudRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set + */ + function UpdatePrivateCloudRequest(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]]; + } + + /** + * UpdatePrivateCloudRequest privateCloud. + * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @instance + */ + UpdatePrivateCloudRequest.prototype.privateCloud = null; + + /** + * UpdatePrivateCloudRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @instance + */ + UpdatePrivateCloudRequest.prototype.updateMask = null; + + /** + * UpdatePrivateCloudRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @instance + */ + UpdatePrivateCloudRequest.prototype.requestId = ""; + + /** + * Creates a new UpdatePrivateCloudRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest instance + */ + UpdatePrivateCloudRequest.create = function create(properties) { + return new UpdatePrivateCloudRequest(properties); + }; + + /** + * Encodes the specified UpdatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePrivateCloudRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified UpdatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePrivateCloudRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdatePrivateCloudRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdatePrivateCloudRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) { + var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud); + if (error) + return "privateCloud." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates an UpdatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest + */ + UpdatePrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(); + if (object.privateCloud != null) { + if (typeof object.privateCloud !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.privateCloud: object expected"); + message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an UpdatePrivateCloudRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} message UpdatePrivateCloudRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdatePrivateCloudRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.privateCloud = null; + object.updateMask = null; + object.requestId = ""; + } + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this UpdatePrivateCloudRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @instance + * @returns {Object.} JSON object + */ + UpdatePrivateCloudRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdatePrivateCloudRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest"; + }; + + return UpdatePrivateCloudRequest; + })(); + + v1.DeletePrivateCloudRequest = (function() { + + /** + * Properties of a DeletePrivateCloudRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IDeletePrivateCloudRequest + * @property {string|null} [name] DeletePrivateCloudRequest name + * @property {string|null} [requestId] DeletePrivateCloudRequest requestId + * @property {boolean|null} [force] DeletePrivateCloudRequest force + * @property {number|null} [delayHours] DeletePrivateCloudRequest delayHours + */ + + /** + * Constructs a new DeletePrivateCloudRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a DeletePrivateCloudRequest. + * @implements IDeletePrivateCloudRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set + */ + function DeletePrivateCloudRequest(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]]; + } + + /** + * DeletePrivateCloudRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @instance + */ + DeletePrivateCloudRequest.prototype.name = ""; + + /** + * DeletePrivateCloudRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @instance + */ + DeletePrivateCloudRequest.prototype.requestId = ""; + + /** + * DeletePrivateCloudRequest force. + * @member {boolean} force + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @instance + */ + DeletePrivateCloudRequest.prototype.force = false; + + /** + * DeletePrivateCloudRequest delayHours. + * @member {number|null|undefined} delayHours + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @instance + */ + DeletePrivateCloudRequest.prototype.delayHours = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeletePrivateCloudRequest _delayHours. + * @member {"delayHours"|undefined} _delayHours + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @instance + */ + Object.defineProperty(DeletePrivateCloudRequest.prototype, "_delayHours", { + get: $util.oneOfGetter($oneOfFields = ["delayHours"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeletePrivateCloudRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest instance + */ + DeletePrivateCloudRequest.create = function create(properties) { + return new DeletePrivateCloudRequest(properties); + }; + + /** + * Encodes the specified DeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePrivateCloudRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.delayHours != null && Object.hasOwnProperty.call(message, "delayHours")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.delayHours); + return writer; + }; - /** - * Verifies a ManagementCluster message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ManagementCluster.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) { - if (!$util.isObject(message.nodeTypeConfigs)) - return "nodeTypeConfigs: object expected"; - var key = Object.keys(message.nodeTypeConfigs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]); - if (error) - return "nodeTypeConfigs." + error; - } - } - return null; - }; + /** + * Encodes the specified DeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a ManagementCluster message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster - */ - ManagementCluster.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) - return object; - var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.nodeTypeConfigs) { - if (typeof object.nodeTypeConfigs !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected"); - message.nodeTypeConfigs = {}; - for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) { - if (typeof object.nodeTypeConfigs[keys[i]] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected"); - message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]); + /** + * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePrivateCloudRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.requestId = reader.string(); + break; + } + case 3: { + message.force = reader.bool(); + break; + } + case 4: { + message.delayHours = reader.int32(); + break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} message ManagementCluster - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ManagementCluster.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.nodeTypeConfigs = {}; - if (options.defaults) - object.clusterId = ""; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - var keys2; - if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) { - object.nodeTypeConfigs = {}; - for (var j = 0; j < keys2.length; ++j) - object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options); - } - return object; - }; + /** + * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this ManagementCluster to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @instance - * @returns {Object.} JSON object - */ - ManagementCluster.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a DeletePrivateCloudRequest message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeletePrivateCloudRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.delayHours != null && message.hasOwnProperty("delayHours")) { + properties._delayHours = 1; + if (!$util.isInteger(message.delayHours)) + return "delayHours: integer expected"; + } + return null; + }; - /** - * Gets the default type url for ManagementCluster - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ManagementCluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster"; - }; + /** + * Creates a DeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest + */ + DeletePrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) + return object; + var message = new $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.force != null) + message.force = Boolean(object.force); + if (object.delayHours != null) + message.delayHours = object.delayHours | 0; + return message; + }; + + /** + * Creates a plain object from a DeletePrivateCloudRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @static + * @param {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} message DeletePrivateCloudRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeletePrivateCloudRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.requestId = ""; + object.force = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.delayHours != null && message.hasOwnProperty("delayHours")) { + object.delayHours = message.delayHours; + if (options.oneofs) + object._delayHours = "delayHours"; + } + return object; + }; - return ManagementCluster; - })(); + /** + * Converts this DeletePrivateCloudRequest to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @instance + * @returns {Object.} JSON object + */ + DeletePrivateCloudRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PrivateCloud; + /** + * Gets the default type url for DeletePrivateCloudRequest + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeletePrivateCloudRequest"; + }; + + return DeletePrivateCloudRequest; })(); - v1.ListPrivateCloudsRequest = (function() { + v1.UndeletePrivateCloudRequest = (function() { /** - * Properties of a ListPrivateCloudsRequest. + * Properties of an UndeletePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListPrivateCloudsRequest - * @property {string|null} [parent] ListPrivateCloudsRequest parent - * @property {number|null} [pageSize] ListPrivateCloudsRequest pageSize - * @property {string|null} [pageToken] ListPrivateCloudsRequest pageToken - * @property {string|null} [filter] ListPrivateCloudsRequest filter - * @property {string|null} [orderBy] ListPrivateCloudsRequest orderBy + * @interface IUndeletePrivateCloudRequest + * @property {string|null} [name] UndeletePrivateCloudRequest name + * @property {string|null} [requestId] UndeletePrivateCloudRequest requestId */ /** - * Constructs a new ListPrivateCloudsRequest. + * Constructs a new UndeletePrivateCloudRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListPrivateCloudsRequest. - * @implements IListPrivateCloudsRequest + * @classdesc Represents an UndeletePrivateCloudRequest. + * @implements IUndeletePrivateCloudRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set */ - function ListPrivateCloudsRequest(properties) { + function UndeletePrivateCloudRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2515,131 +2790,89 @@ } /** - * ListPrivateCloudsRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @instance - */ - ListPrivateCloudsRequest.prototype.parent = ""; - - /** - * ListPrivateCloudsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @instance - */ - ListPrivateCloudsRequest.prototype.pageSize = 0; - - /** - * ListPrivateCloudsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest - * @instance - */ - ListPrivateCloudsRequest.prototype.pageToken = ""; - - /** - * ListPrivateCloudsRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * UndeletePrivateCloudRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @instance */ - ListPrivateCloudsRequest.prototype.filter = ""; + UndeletePrivateCloudRequest.prototype.name = ""; /** - * ListPrivateCloudsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * UndeletePrivateCloudRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @instance */ - ListPrivateCloudsRequest.prototype.orderBy = ""; + UndeletePrivateCloudRequest.prototype.requestId = ""; /** - * Creates a new ListPrivateCloudsRequest instance using the specified properties. + * Creates a new UndeletePrivateCloudRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest instance + * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest instance */ - ListPrivateCloudsRequest.create = function create(properties) { - return new ListPrivateCloudsRequest(properties); + UndeletePrivateCloudRequest.create = function create(properties) { + return new UndeletePrivateCloudRequest(properties); }; /** - * Encodes the specified ListPrivateCloudsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. + * Encodes the specified UndeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateCloudsRequest.encode = function encode(message, writer) { + UndeletePrivateCloudRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified ListPrivateCloudsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages. + * Encodes the specified UndeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateCloudsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UndeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer. + * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest + * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateCloudsRequest.decode = function decode(reader, length) { + UndeletePrivateCloudRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.requestId = reader.string(); break; } default: @@ -2651,159 +2884,135 @@ }; /** - * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer, length delimited. + * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest + * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateCloudsRequest.decodeDelimited = function decodeDelimited(reader) { + UndeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPrivateCloudsRequest message. + * Verifies an UndeletePrivateCloudRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPrivateCloudsRequest.verify = function verify(message) { + UndeletePrivateCloudRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ListPrivateCloudsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest + * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest */ - ListPrivateCloudsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) + UndeletePrivateCloudRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ListPrivateCloudsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UndeletePrivateCloudRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static - * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} message ListPrivateCloudsRequest + * @param {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} message UndeletePrivateCloudRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object - */ - ListPrivateCloudsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + */ + UndeletePrivateCloudRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ListPrivateCloudsRequest to JSON. + * Converts this UndeletePrivateCloudRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @instance * @returns {Object.} JSON object */ - ListPrivateCloudsRequest.prototype.toJSON = function toJSON() { + UndeletePrivateCloudRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPrivateCloudsRequest + * Gets the default type url for UndeletePrivateCloudRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPrivateCloudsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest"; }; - return ListPrivateCloudsRequest; + return UndeletePrivateCloudRequest; })(); - v1.ListPrivateCloudsResponse = (function() { + v1.ListClustersRequest = (function() { /** - * Properties of a ListPrivateCloudsResponse. + * Properties of a ListClustersRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListPrivateCloudsResponse - * @property {Array.|null} [privateClouds] ListPrivateCloudsResponse privateClouds - * @property {string|null} [nextPageToken] ListPrivateCloudsResponse nextPageToken - * @property {Array.|null} [unreachable] ListPrivateCloudsResponse unreachable + * @interface IListClustersRequest + * @property {string|null} [parent] ListClustersRequest parent + * @property {number|null} [pageSize] ListClustersRequest pageSize + * @property {string|null} [pageToken] ListClustersRequest pageToken + * @property {string|null} [filter] ListClustersRequest filter + * @property {string|null} [orderBy] ListClustersRequest orderBy */ /** - * Constructs a new ListPrivateCloudsResponse. + * Constructs a new ListClustersRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListPrivateCloudsResponse. - * @implements IListPrivateCloudsResponse + * @classdesc Represents a ListClustersRequest. + * @implements IListClustersRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set */ - function ListPrivateCloudsResponse(properties) { - this.privateClouds = []; - this.unreachable = []; + function ListClustersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2811,109 +3020,131 @@ } /** - * ListPrivateCloudsResponse privateClouds. - * @member {Array.} privateClouds - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * ListClustersRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @instance */ - ListPrivateCloudsResponse.prototype.privateClouds = $util.emptyArray; + ListClustersRequest.prototype.parent = ""; /** - * ListPrivateCloudsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * ListClustersRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @instance */ - ListPrivateCloudsResponse.prototype.nextPageToken = ""; + ListClustersRequest.prototype.pageSize = 0; /** - * ListPrivateCloudsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * ListClustersRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @instance */ - ListPrivateCloudsResponse.prototype.unreachable = $util.emptyArray; + ListClustersRequest.prototype.pageToken = ""; /** - * Creates a new ListPrivateCloudsResponse instance using the specified properties. + * ListClustersRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.filter = ""; + + /** + * ListClustersRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.orderBy = ""; + + /** + * Creates a new ListClustersRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse instance + * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest instance */ - ListPrivateCloudsResponse.create = function create(properties) { - return new ListPrivateCloudsResponse(properties); + ListClustersRequest.create = function create(properties) { + return new ListClustersRequest(properties); }; /** - * Encodes the specified ListPrivateCloudsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. + * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateCloudsResponse.encode = function encode(message, writer) { + ListClustersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateClouds != null && message.privateClouds.length) - for (var i = 0; i < message.privateClouds.length; ++i) - $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateClouds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified ListPrivateCloudsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages. + * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static - * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPrivateCloudsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer. + * Decodes a ListClustersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse + * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateCloudsResponse.decode = function decode(reader, length) { + ListClustersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListClustersRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.privateClouds && message.privateClouds.length)) - message.privateClouds = []; - message.privateClouds.push($root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -2925,169 +3156,159 @@ }; /** - * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse + * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPrivateCloudsResponse.decodeDelimited = function decodeDelimited(reader) { + ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPrivateCloudsResponse message. + * Verifies a ListClustersRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPrivateCloudsResponse.verify = function verify(message) { + ListClustersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateClouds != null && message.hasOwnProperty("privateClouds")) { - if (!Array.isArray(message.privateClouds)) - return "privateClouds: array expected"; - for (var i = 0; i < message.privateClouds.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateClouds[i]); - if (error) - return "privateClouds." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a ListPrivateCloudsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse + * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest */ - ListPrivateCloudsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) + ListClustersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(); - if (object.privateClouds) { - if (!Array.isArray(object.privateClouds)) - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: array expected"); - message.privateClouds = []; - for (var i = 0; i < object.privateClouds.length; ++i) { - if (typeof object.privateClouds[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: object expected"); - message.privateClouds[i] = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateClouds[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } + var message = new $root.google.cloud.vmwareengine.v1.ListClustersRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListPrivateCloudsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static - * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} message ListPrivateCloudsResponse + * @param {google.cloud.vmwareengine.v1.ListClustersRequest} message ListClustersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPrivateCloudsResponse.toObject = function toObject(message, options) { + ListClustersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.privateClouds = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.privateClouds && message.privateClouds.length) { - object.privateClouds = []; - for (var j = 0; j < message.privateClouds.length; ++j) - object.privateClouds[j] = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateClouds[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this ListPrivateCloudsResponse to JSON. + * Converts this ListClustersRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @instance * @returns {Object.} JSON object */ - ListPrivateCloudsResponse.prototype.toJSON = function toJSON() { + ListClustersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPrivateCloudsResponse + * Gets the default type url for ListClustersRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + * @memberof google.cloud.vmwareengine.v1.ListClustersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPrivateCloudsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListClustersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersRequest"; }; - return ListPrivateCloudsResponse; + return ListClustersRequest; })(); - v1.GetPrivateCloudRequest = (function() { + v1.ListClustersResponse = (function() { /** - * Properties of a GetPrivateCloudRequest. + * Properties of a ListClustersResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetPrivateCloudRequest - * @property {string|null} [name] GetPrivateCloudRequest name + * @interface IListClustersResponse + * @property {Array.|null} [clusters] ListClustersResponse clusters + * @property {string|null} [nextPageToken] ListClustersResponse nextPageToken + * @property {Array.|null} [unreachable] ListClustersResponse unreachable */ /** - * Constructs a new GetPrivateCloudRequest. + * Constructs a new ListClustersResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetPrivateCloudRequest. - * @implements IGetPrivateCloudRequest + * @classdesc Represents a ListClustersResponse. + * @implements IListClustersResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set */ - function GetPrivateCloudRequest(properties) { + function ListClustersResponse(properties) { + this.clusters = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3095,75 +3316,109 @@ } /** - * GetPrivateCloudRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * ListClustersResponse clusters. + * @member {Array.} clusters + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @instance */ - GetPrivateCloudRequest.prototype.name = ""; + ListClustersResponse.prototype.clusters = $util.emptyArray; /** - * Creates a new GetPrivateCloudRequest instance using the specified properties. + * ListClustersResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @instance + */ + ListClustersResponse.prototype.nextPageToken = ""; + + /** + * ListClustersResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @instance + */ + ListClustersResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListClustersResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static - * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest instance + * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse instance */ - GetPrivateCloudRequest.create = function create(properties) { - return new GetPrivateCloudRequest(properties); + ListClustersResponse.create = function create(properties) { + return new ListClustersResponse(properties); }; /** - * Encodes the specified GetPrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. + * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static - * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPrivateCloudRequest.encode = function encode(message, writer) { + ListClustersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.clusters != null && message.clusters.length) + for (var i = 0; i < message.clusters.length; ++i) + $root.google.cloud.vmwareengine.v1.Cluster.encode(message.clusters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified GetPrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages. + * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static - * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPrivateCloudRequest message from the specified reader or buffer. + * Decodes a ListClustersResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPrivateCloudRequest.decode = function decode(reader, length) { + ListClustersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListClustersResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.clusters && message.clusters.length)) + message.clusters = []; + message.clusters.push($root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -3175,126 +3430,169 @@ }; /** - * Decodes a GetPrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + ListClustersResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPrivateCloudRequest message. + * Verifies a ListClustersResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPrivateCloudRequest.verify = function verify(message) { + ListClustersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.clusters != null && message.hasOwnProperty("clusters")) { + if (!Array.isArray(message.clusters)) + return "clusters: array expected"; + for (var i = 0; i < message.clusters.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.clusters[i]); + if (error) + return "clusters." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a GetPrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse */ - GetPrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest) + ListClustersResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.vmwareengine.v1.ListClustersResponse(); + if (object.clusters) { + if (!Array.isArray(object.clusters)) + throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: array expected"); + message.clusters = []; + for (var i = 0; i < object.clusters.length; ++i) { + if (typeof object.clusters[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: object expected"); + message.clusters[i] = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.clusters[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a GetPrivateCloudRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static - * @param {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} message GetPrivateCloudRequest + * @param {google.cloud.vmwareengine.v1.ListClustersResponse} message ListClustersResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPrivateCloudRequest.toObject = function toObject(message, options) { + ListClustersResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.clusters = []; + object.unreachable = []; + } if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.clusters && message.clusters.length) { + object.clusters = []; + for (var j = 0; j < message.clusters.length; ++j) + object.clusters[j] = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.clusters[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } return object; }; /** - * Converts this GetPrivateCloudRequest to JSON. + * Converts this ListClustersResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @instance * @returns {Object.} JSON object */ - GetPrivateCloudRequest.prototype.toJSON = function toJSON() { + ListClustersResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPrivateCloudRequest + * Gets the default type url for ListClustersResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.ListClustersResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListClustersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetPrivateCloudRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersResponse"; }; - return GetPrivateCloudRequest; + return ListClustersResponse; })(); - v1.CreatePrivateCloudRequest = (function() { + v1.GetClusterRequest = (function() { /** - * Properties of a CreatePrivateCloudRequest. + * Properties of a GetClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICreatePrivateCloudRequest - * @property {string|null} [parent] CreatePrivateCloudRequest parent - * @property {string|null} [privateCloudId] CreatePrivateCloudRequest privateCloudId - * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] CreatePrivateCloudRequest privateCloud - * @property {string|null} [requestId] CreatePrivateCloudRequest requestId - * @property {boolean|null} [validateOnly] CreatePrivateCloudRequest validateOnly + * @interface IGetClusterRequest + * @property {string|null} [name] GetClusterRequest name */ /** - * Constructs a new CreatePrivateCloudRequest. + * Constructs a new GetClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreatePrivateCloudRequest. - * @implements ICreatePrivateCloudRequest + * @classdesc Represents a GetClusterRequest. + * @implements IGetClusterRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set */ - function CreatePrivateCloudRequest(properties) { + function GetClusterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3302,131 +3600,75 @@ } /** - * CreatePrivateCloudRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @instance - */ - CreatePrivateCloudRequest.prototype.parent = ""; - - /** - * CreatePrivateCloudRequest privateCloudId. - * @member {string} privateCloudId - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @instance - */ - CreatePrivateCloudRequest.prototype.privateCloudId = ""; - - /** - * CreatePrivateCloudRequest privateCloud. - * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @instance - */ - CreatePrivateCloudRequest.prototype.privateCloud = null; - - /** - * CreatePrivateCloudRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest - * @instance - */ - CreatePrivateCloudRequest.prototype.requestId = ""; - - /** - * CreatePrivateCloudRequest validateOnly. - * @member {boolean} validateOnly - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * GetClusterRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @instance */ - CreatePrivateCloudRequest.prototype.validateOnly = false; + GetClusterRequest.prototype.name = ""; /** - * Creates a new CreatePrivateCloudRequest instance using the specified properties. + * Creates a new GetClusterRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest instance + * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest instance */ - CreatePrivateCloudRequest.create = function create(properties) { - return new CreatePrivateCloudRequest(properties); + GetClusterRequest.create = function create(properties) { + return new GetClusterRequest(properties); }; /** - * Encodes the specified CreatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. + * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePrivateCloudRequest.encode = function encode(message, writer) { + GetClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.privateCloudId != null && Object.hasOwnProperty.call(message, "privateCloudId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.privateCloudId); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); - if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages. + * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer. + * Decodes a GetClusterRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePrivateCloudRequest.decode = function decode(reader, length) { + GetClusterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetClusterRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.privateCloudId = reader.string(); - break; - } - case 3: { - message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32()); - break; - } - case 4: { - message.requestId = reader.string(); - break; - } - case 5: { - message.validateOnly = reader.bool(); + message.name = reader.string(); break; } default: @@ -3438,162 +3680,126 @@ }; /** - * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + GetClusterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePrivateCloudRequest message. + * Verifies a GetClusterRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePrivateCloudRequest.verify = function verify(message) { + GetClusterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.privateCloudId != null && message.hasOwnProperty("privateCloudId")) - if (!$util.isString(message.privateCloudId)) - return "privateCloudId: string expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) { - var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud); - if (error) - return "privateCloud." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - if (typeof message.validateOnly !== "boolean") - return "validateOnly: boolean expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest */ - CreatePrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) + GetClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetClusterRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.privateCloudId != null) - message.privateCloudId = String(object.privateCloudId); - if (object.privateCloud != null) { - if (typeof object.privateCloud !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.privateCloud: object expected"); - message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud); - } - if (object.requestId != null) - message.requestId = String(object.requestId); - if (object.validateOnly != null) - message.validateOnly = Boolean(object.validateOnly); + var message = new $root.google.cloud.vmwareengine.v1.GetClusterRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreatePrivateCloudRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} message CreatePrivateCloudRequest + * @param {google.cloud.vmwareengine.v1.GetClusterRequest} message GetClusterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePrivateCloudRequest.toObject = function toObject(message, options) { + GetClusterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.privateCloudId = ""; - object.privateCloud = null; - object.requestId = ""; - object.validateOnly = false; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.privateCloudId != null && message.hasOwnProperty("privateCloudId")) - object.privateCloudId = message.privateCloudId; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - object.validateOnly = message.validateOnly; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreatePrivateCloudRequest to JSON. + * Converts this GetClusterRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @instance * @returns {Object.} JSON object */ - CreatePrivateCloudRequest.prototype.toJSON = function toJSON() { + GetClusterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePrivateCloudRequest + * Gets the default type url for GetClusterRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.GetClusterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreatePrivateCloudRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetClusterRequest"; }; - return CreatePrivateCloudRequest; + return GetClusterRequest; })(); - v1.UpdatePrivateCloudRequest = (function() { + v1.CreateClusterRequest = (function() { /** - * Properties of an UpdatePrivateCloudRequest. + * Properties of a CreateClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdatePrivateCloudRequest - * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] UpdatePrivateCloudRequest privateCloud - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePrivateCloudRequest updateMask - * @property {string|null} [requestId] UpdatePrivateCloudRequest requestId + * @interface ICreateClusterRequest + * @property {string|null} [parent] CreateClusterRequest parent + * @property {string|null} [clusterId] CreateClusterRequest clusterId + * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] CreateClusterRequest cluster + * @property {string|null} [requestId] CreateClusterRequest requestId + * @property {boolean|null} [validateOnly] CreateClusterRequest validateOnly */ /** - * Constructs a new UpdatePrivateCloudRequest. + * Constructs a new CreateClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdatePrivateCloudRequest. - * @implements IUpdatePrivateCloudRequest + * @classdesc Represents a CreateClusterRequest. + * @implements ICreateClusterRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set */ - function UpdatePrivateCloudRequest(properties) { + function CreateClusterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3601,105 +3807,133 @@ } /** - * UpdatePrivateCloudRequest privateCloud. - * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * CreateClusterRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @instance */ - UpdatePrivateCloudRequest.prototype.privateCloud = null; + CreateClusterRequest.prototype.parent = ""; /** - * UpdatePrivateCloudRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * CreateClusterRequest clusterId. + * @member {string} clusterId + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @instance */ - UpdatePrivateCloudRequest.prototype.updateMask = null; + CreateClusterRequest.prototype.clusterId = ""; /** - * UpdatePrivateCloudRequest requestId. + * CreateClusterRequest cluster. + * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @instance + */ + CreateClusterRequest.prototype.cluster = null; + + /** + * CreateClusterRequest requestId. * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @instance */ - UpdatePrivateCloudRequest.prototype.requestId = ""; + CreateClusterRequest.prototype.requestId = ""; /** - * Creates a new UpdatePrivateCloudRequest instance using the specified properties. + * CreateClusterRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @instance + */ + CreateClusterRequest.prototype.validateOnly = false; + + /** + * Creates a new CreateClusterRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest instance + * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest instance */ - UpdatePrivateCloudRequest.create = function create(properties) { - return new UpdatePrivateCloudRequest(properties); + CreateClusterRequest.create = function create(properties) { + return new CreateClusterRequest(properties); }; /** - * Encodes the specified UpdatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. + * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePrivateCloudRequest.encode = function encode(message, writer) { + CreateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterId); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly); return writer; }; /** - * Encodes the specified UpdatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages. + * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer. + * Decodes a CreateClusterRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePrivateCloudRequest.decode = function decode(reader, length) { + CreateClusterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateClusterRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.clusterId = reader.string(); break; } case 3: { + message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32()); + break; + } + case 4: { message.requestId = reader.string(); break; } + case 5: { + message.validateOnly = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -3709,152 +3943,163 @@ }; /** - * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdatePrivateCloudRequest message. + * Verifies a CreateClusterRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdatePrivateCloudRequest.verify = function verify(message) { + CreateClusterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) { - var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud); - if (error) - return "privateCloud." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster); if (error) - return "updateMask." + error; + return "cluster." + error; } if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; return null; }; /** - * Creates an UpdatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest */ - UpdatePrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) + CreateClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateClusterRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(); - if (object.privateCloud != null) { - if (typeof object.privateCloud !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.privateCloud: object expected"); - message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.vmwareengine.v1.CreateClusterRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateClusterRequest.cluster: object expected"); + message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster); } if (object.requestId != null) message.requestId = String(object.requestId); + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); return message; }; /** - * Creates a plain object from an UpdatePrivateCloudRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} message UpdatePrivateCloudRequest + * @param {google.cloud.vmwareengine.v1.CreateClusterRequest} message CreateClusterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdatePrivateCloudRequest.toObject = function toObject(message, options) { + CreateClusterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.privateCloud = null; - object.updateMask = null; + object.parent = ""; + object.clusterId = ""; + object.cluster = null; object.requestId = ""; + object.validateOnly = false; } - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options); if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; return object; }; /** - * Converts this UpdatePrivateCloudRequest to JSON. + * Converts this CreateClusterRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @instance * @returns {Object.} JSON object */ - UpdatePrivateCloudRequest.prototype.toJSON = function toJSON() { + CreateClusterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdatePrivateCloudRequest + * Gets the default type url for CreateClusterRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateClusterRequest"; }; - return UpdatePrivateCloudRequest; + return CreateClusterRequest; })(); - v1.DeletePrivateCloudRequest = (function() { + v1.UpdateClusterRequest = (function() { /** - * Properties of a DeletePrivateCloudRequest. + * Properties of an UpdateClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IDeletePrivateCloudRequest - * @property {string|null} [name] DeletePrivateCloudRequest name - * @property {string|null} [requestId] DeletePrivateCloudRequest requestId - * @property {boolean|null} [force] DeletePrivateCloudRequest force - * @property {number|null} [delayHours] DeletePrivateCloudRequest delayHours + * @interface IUpdateClusterRequest + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateClusterRequest updateMask + * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] UpdateClusterRequest cluster + * @property {string|null} [requestId] UpdateClusterRequest requestId + * @property {boolean|null} [validateOnly] UpdateClusterRequest validateOnly */ /** - * Constructs a new DeletePrivateCloudRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a DeletePrivateCloudRequest. - * @implements IDeletePrivateCloudRequest + * Constructs a new UpdateClusterRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents an UpdateClusterRequest. + * @implements IUpdateClusterRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set */ - function DeletePrivateCloudRequest(properties) { + function UpdateClusterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3862,131 +4107,117 @@ } /** - * DeletePrivateCloudRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest - * @instance - */ - DeletePrivateCloudRequest.prototype.name = ""; - - /** - * DeletePrivateCloudRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * UpdateClusterRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance */ - DeletePrivateCloudRequest.prototype.requestId = ""; + UpdateClusterRequest.prototype.updateMask = null; /** - * DeletePrivateCloudRequest force. - * @member {boolean} force - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * UpdateClusterRequest cluster. + * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance */ - DeletePrivateCloudRequest.prototype.force = false; + UpdateClusterRequest.prototype.cluster = null; /** - * DeletePrivateCloudRequest delayHours. - * @member {number|null|undefined} delayHours - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * UpdateClusterRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance */ - DeletePrivateCloudRequest.prototype.delayHours = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UpdateClusterRequest.prototype.requestId = ""; /** - * DeletePrivateCloudRequest _delayHours. - * @member {"delayHours"|undefined} _delayHours - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * UpdateClusterRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance */ - Object.defineProperty(DeletePrivateCloudRequest.prototype, "_delayHours", { - get: $util.oneOfGetter($oneOfFields = ["delayHours"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateClusterRequest.prototype.validateOnly = false; /** - * Creates a new DeletePrivateCloudRequest instance using the specified properties. + * Creates a new UpdateClusterRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest instance + * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest instance */ - DeletePrivateCloudRequest.create = function create(properties) { - return new DeletePrivateCloudRequest(properties); + UpdateClusterRequest.create = function create(properties) { + return new UpdateClusterRequest(properties); }; /** - * Encodes the specified DeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. + * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePrivateCloudRequest.encode = function encode(message, writer) { + UpdateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); - if (message.delayHours != null && Object.hasOwnProperty.call(message, "delayHours")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.delayHours); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.validateOnly); return writer; }; /** - * Encodes the specified DeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages. + * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer. + * Decodes an UpdateClusterRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePrivateCloudRequest.decode = function decode(reader, length) { + UpdateClusterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateClusterRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 2: { - message.requestId = reader.string(); + message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32()); break; } case 3: { - message.force = reader.bool(); + message.requestId = reader.string(); break; } case 4: { - message.delayHours = reader.int32(); + message.validateOnly = reader.bool(); break; } default: @@ -3998,153 +4229,158 @@ }; /** - * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePrivateCloudRequest message. + * Verifies an UpdateClusterRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePrivateCloudRequest.verify = function verify(message) { + UpdateClusterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; + } if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.delayHours != null && message.hasOwnProperty("delayHours")) { - properties._delayHours = 1; - if (!$util.isInteger(message.delayHours)) - return "delayHours: integer expected"; - } + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; return null; }; /** - * Creates a DeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest */ - DeletePrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) + UpdateClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateClusterRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.vmwareengine.v1.UpdateClusterRequest(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.cluster: object expected"); + message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster); + } if (object.requestId != null) message.requestId = String(object.requestId); - if (object.force != null) - message.force = Boolean(object.force); - if (object.delayHours != null) - message.delayHours = object.delayHours | 0; + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); return message; }; /** - * Creates a plain object from a DeletePrivateCloudRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} message DeletePrivateCloudRequest + * @param {google.cloud.vmwareengine.v1.UpdateClusterRequest} message UpdateClusterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePrivateCloudRequest.toObject = function toObject(message, options) { + UpdateClusterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; + object.updateMask = null; + object.cluster = null; object.requestId = ""; - object.force = false; + object.validateOnly = false; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options); if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.delayHours != null && message.hasOwnProperty("delayHours")) { - object.delayHours = message.delayHours; - if (options.oneofs) - object._delayHours = "delayHours"; - } + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; return object; }; /** - * Converts this DeletePrivateCloudRequest to JSON. + * Converts this UpdateClusterRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @instance * @returns {Object.} JSON object */ - DeletePrivateCloudRequest.prototype.toJSON = function toJSON() { + UpdateClusterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePrivateCloudRequest + * Gets the default type url for UpdateClusterRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeletePrivateCloudRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateClusterRequest"; }; - return DeletePrivateCloudRequest; + return UpdateClusterRequest; })(); - v1.UndeletePrivateCloudRequest = (function() { + v1.DeleteClusterRequest = (function() { /** - * Properties of an UndeletePrivateCloudRequest. + * Properties of a DeleteClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IUndeletePrivateCloudRequest - * @property {string|null} [name] UndeletePrivateCloudRequest name - * @property {string|null} [requestId] UndeletePrivateCloudRequest requestId + * @interface IDeleteClusterRequest + * @property {string|null} [name] DeleteClusterRequest name + * @property {string|null} [requestId] DeleteClusterRequest requestId */ /** - * Constructs a new UndeletePrivateCloudRequest. + * Constructs a new DeleteClusterRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UndeletePrivateCloudRequest. - * @implements IUndeletePrivateCloudRequest + * @classdesc Represents a DeleteClusterRequest. + * @implements IDeleteClusterRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set */ - function UndeletePrivateCloudRequest(properties) { + function DeleteClusterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4152,43 +4388,43 @@ } /** - * UndeletePrivateCloudRequest name. + * DeleteClusterRequest name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @instance */ - UndeletePrivateCloudRequest.prototype.name = ""; + DeleteClusterRequest.prototype.name = ""; /** - * UndeletePrivateCloudRequest requestId. + * DeleteClusterRequest requestId. * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @instance */ - UndeletePrivateCloudRequest.prototype.requestId = ""; + DeleteClusterRequest.prototype.requestId = ""; /** - * Creates a new UndeletePrivateCloudRequest instance using the specified properties. + * Creates a new DeleteClusterRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest instance + * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest instance */ - UndeletePrivateCloudRequest.create = function create(properties) { - return new UndeletePrivateCloudRequest(properties); + DeleteClusterRequest.create = function create(properties) { + return new DeleteClusterRequest(properties); }; /** - * Encodes the specified UndeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. + * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeletePrivateCloudRequest.encode = function encode(message, writer) { + DeleteClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -4199,33 +4435,33 @@ }; /** - * Encodes the specified UndeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages. + * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer. + * Decodes a DeleteClusterRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeletePrivateCloudRequest.decode = function decode(reader, length) { + DeleteClusterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteClusterRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -4246,30 +4482,30 @@ }; /** - * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeletePrivateCloudRequest message. + * Verifies a DeleteClusterRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeletePrivateCloudRequest.verify = function verify(message) { + DeleteClusterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -4282,17 +4518,17 @@ }; /** - * Creates an UndeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest + * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest */ - UndeletePrivateCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) + DeleteClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteClusterRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(); + var message = new $root.google.cloud.vmwareengine.v1.DeleteClusterRequest(); if (object.name != null) message.name = String(object.name); if (object.requestId != null) @@ -4301,15 +4537,15 @@ }; /** - * Creates a plain object from an UndeletePrivateCloudRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @static - * @param {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} message UndeletePrivateCloudRequest + * @param {google.cloud.vmwareengine.v1.DeleteClusterRequest} message DeleteClusterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeletePrivateCloudRequest.toObject = function toObject(message, options) { + DeleteClusterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -4325,59 +4561,54 @@ }; /** - * Converts this UndeletePrivateCloudRequest to JSON. + * Converts this DeleteClusterRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @instance * @returns {Object.} JSON object */ - UndeletePrivateCloudRequest.prototype.toJSON = function toJSON() { + DeleteClusterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UndeletePrivateCloudRequest + * Gets the default type url for DeleteClusterRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UndeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteClusterRequest"; }; - return UndeletePrivateCloudRequest; + return DeleteClusterRequest; })(); - v1.Cluster = (function() { + v1.ListSubnetsRequest = (function() { /** - * Properties of a Cluster. + * Properties of a ListSubnetsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICluster - * @property {string|null} [name] Cluster name - * @property {google.protobuf.ITimestamp|null} [createTime] Cluster createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Cluster updateTime - * @property {google.cloud.vmwareengine.v1.Cluster.State|null} [state] Cluster state - * @property {boolean|null} [management] Cluster management - * @property {string|null} [uid] Cluster uid - * @property {Object.|null} [nodeTypeConfigs] Cluster nodeTypeConfigs + * @interface IListSubnetsRequest + * @property {string|null} [parent] ListSubnetsRequest parent + * @property {number|null} [pageSize] ListSubnetsRequest pageSize + * @property {string|null} [pageToken] ListSubnetsRequest pageToken */ /** - * Constructs a new Cluster. + * Constructs a new ListSubnetsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Cluster. - * @implements ICluster + * @classdesc Represents a ListSubnetsRequest. + * @implements IListSubnetsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set */ - function Cluster(properties) { - this.nodeTypeConfigs = {}; + function ListSubnetsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4385,181 +4616,103 @@ } /** - * Cluster name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.Cluster - * @instance - */ - Cluster.prototype.name = ""; - - /** - * Cluster createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.Cluster - * @instance - */ - Cluster.prototype.createTime = null; - - /** - * Cluster updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vmwareengine.v1.Cluster - * @instance - */ - Cluster.prototype.updateTime = null; - - /** - * Cluster state. - * @member {google.cloud.vmwareengine.v1.Cluster.State} state - * @memberof google.cloud.vmwareengine.v1.Cluster - * @instance - */ - Cluster.prototype.state = 0; - - /** - * Cluster management. - * @member {boolean} management - * @memberof google.cloud.vmwareengine.v1.Cluster + * ListSubnetsRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @instance */ - Cluster.prototype.management = false; + ListSubnetsRequest.prototype.parent = ""; /** - * Cluster uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.Cluster + * ListSubnetsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @instance */ - Cluster.prototype.uid = ""; + ListSubnetsRequest.prototype.pageSize = 0; /** - * Cluster nodeTypeConfigs. - * @member {Object.} nodeTypeConfigs - * @memberof google.cloud.vmwareengine.v1.Cluster + * ListSubnetsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @instance */ - Cluster.prototype.nodeTypeConfigs = $util.emptyObject; + ListSubnetsRequest.prototype.pageToken = ""; /** - * Creates a new Cluster instance using the specified properties. + * Creates a new ListSubnetsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static - * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster instance + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest instance */ - Cluster.create = function create(properties) { - return new Cluster(properties); + ListSubnetsRequest.create = function create(properties) { + return new ListSubnetsRequest(properties); }; /** - * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static - * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cluster.encode = function encode(message, writer) { + ListSubnetsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.management != null && Object.hasOwnProperty.call(message, "management")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.management); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.uid); - if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs")) - for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. + * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static - * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cluster.encodeDelimited = function encodeDelimited(message, writer) { + ListSubnetsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Cluster message from the specified reader or buffer. + * Decodes a ListSubnetsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster + * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Cluster(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.state = reader.int32(); - break; - } - case 7: { - message.management = reader.bool(); + ListSubnetsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListSubnetsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); break; } - case 14: { - message.uid = reader.string(); + case 2: { + message.pageSize = reader.int32(); break; } - case 16: { - if (message.nodeTypeConfigs === $util.emptyObject) - message.nodeTypeConfigs = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.nodeTypeConfigs[key] = value; + case 3: { + message.pageToken = reader.string(); break; } default: @@ -4571,266 +4724,141 @@ }; /** - * Decodes a Cluster message from the specified reader or buffer, length delimited. + * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster + * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.decodeDelimited = function decodeDelimited(reader) { + ListSubnetsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Cluster message. + * Verifies a ListSubnetsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Cluster.verify = function verify(message) { + ListSubnetsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.management != null && message.hasOwnProperty("management")) - if (typeof message.management !== "boolean") - return "management: boolean expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) { - if (!$util.isObject(message.nodeTypeConfigs)) - return "nodeTypeConfigs: object expected"; - var key = Object.keys(message.nodeTypeConfigs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]); - if (error) - return "nodeTypeConfigs." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a Cluster message from a plain object. Also converts values to their respective internal types. + * Creates a ListSubnetsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster + * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest */ - Cluster.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Cluster) + ListSubnetsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.Cluster(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.Cluster.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.Cluster.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "DELETING": - case 4: - message.state = 4; - break; - case "REPAIRING": - case 5: - message.state = 5; - break; - } - if (object.management != null) - message.management = Boolean(object.management); - if (object.uid != null) - message.uid = String(object.uid); - if (object.nodeTypeConfigs) { - if (typeof object.nodeTypeConfigs !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected"); - message.nodeTypeConfigs = {}; - for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) { - if (typeof object.nodeTypeConfigs[keys[i]] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected"); - message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]); - } - } + var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a Cluster message. Also converts values to other types if specified. + * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static - * @param {google.cloud.vmwareengine.v1.Cluster} message Cluster + * @param {google.cloud.vmwareengine.v1.ListSubnetsRequest} message ListSubnetsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Cluster.toObject = function toObject(message, options) { + ListSubnetsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.nodeTypeConfigs = {}; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.management = false; - object.uid = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] : message.state; - if (message.management != null && message.hasOwnProperty("management")) - object.management = message.management; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - var keys2; - if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) { - object.nodeTypeConfigs = {}; - for (var j = 0; j < keys2.length; ++j) - object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options); + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this Cluster to JSON. + * Converts this ListSubnetsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @instance * @returns {Object.} JSON object */ - Cluster.prototype.toJSON = function toJSON() { + ListSubnetsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Cluster + * Gets the default type url for ListSubnetsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Cluster + * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Cluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Cluster"; - }; - - /** - * State enum. - * @name google.cloud.vmwareengine.v1.Cluster.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - * @property {number} UPDATING=3 UPDATING value - * @property {number} DELETING=4 DELETING value - * @property {number} REPAIRING=5 REPAIRING value - */ - Cluster.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[4] = "DELETING"] = 4; - values[valuesById[5] = "REPAIRING"] = 5; - return values; - })(); + ListSubnetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsRequest"; + }; - return Cluster; + return ListSubnetsRequest; })(); - v1.ListClustersRequest = (function() { + v1.ListSubnetsResponse = (function() { /** - * Properties of a ListClustersRequest. + * Properties of a ListSubnetsResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IListClustersRequest - * @property {string|null} [parent] ListClustersRequest parent - * @property {number|null} [pageSize] ListClustersRequest pageSize - * @property {string|null} [pageToken] ListClustersRequest pageToken - * @property {string|null} [filter] ListClustersRequest filter - * @property {string|null} [orderBy] ListClustersRequest orderBy + * @interface IListSubnetsResponse + * @property {Array.|null} [subnets] ListSubnetsResponse subnets + * @property {string|null} [nextPageToken] ListSubnetsResponse nextPageToken */ /** - * Constructs a new ListClustersRequest. + * Constructs a new ListSubnetsResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListClustersRequest. - * @implements IListClustersRequest + * @classdesc Represents a ListSubnetsResponse. + * @implements IListSubnetsResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set */ - function ListClustersRequest(properties) { + function ListSubnetsResponse(properties) { + this.subnets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4838,131 +4866,92 @@ } /** - * ListClustersRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest - * @instance - */ - ListClustersRequest.prototype.parent = ""; - - /** - * ListClustersRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest - * @instance - */ - ListClustersRequest.prototype.pageSize = 0; - - /** - * ListClustersRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest - * @instance - */ - ListClustersRequest.prototype.pageToken = ""; - - /** - * ListClustersRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * ListSubnetsResponse subnets. + * @member {Array.} subnets + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @instance */ - ListClustersRequest.prototype.filter = ""; + ListSubnetsResponse.prototype.subnets = $util.emptyArray; /** - * ListClustersRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * ListSubnetsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @instance */ - ListClustersRequest.prototype.orderBy = ""; + ListSubnetsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListClustersRequest instance using the specified properties. + * Creates a new ListSubnetsResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static - * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest instance + * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse instance */ - ListClustersRequest.create = function create(properties) { - return new ListClustersRequest(properties); + ListSubnetsResponse.create = function create(properties) { + return new ListSubnetsResponse(properties); }; /** - * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static - * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encode = function encode(message, writer) { + ListSubnetsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.subnets != null && message.subnets.length) + for (var i = 0; i < message.subnets.length; ++i) + $root.google.cloud.vmwareengine.v1.Subnet.encode(message.subnets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static - * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSubnetsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer. + * Decodes a ListSubnetsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest + * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decode = function decode(reader, length) { + ListSubnetsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListClustersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListSubnetsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.subnets && message.subnets.length)) + message.subnets = []; + message.subnets.push($root.google.cloud.vmwareengine.v1.Subnet.decode(reader, reader.uint32())); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -4974,159 +4963,154 @@ }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest + * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { + ListSubnetsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersRequest message. + * Verifies a ListSubnetsResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersRequest.verify = function verify(message) { + ListSubnetsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.subnets != null && message.hasOwnProperty("subnets")) { + if (!Array.isArray(message.subnets)) + return "subnets: array expected"; + for (var i = 0; i < message.subnets.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.Subnet.verify(message.subnets[i]); + if (error) + return "subnets." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSubnetsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest + * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse */ - ListClustersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersRequest) + ListSubnetsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListClustersRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsResponse(); + if (object.subnets) { + if (!Array.isArray(object.subnets)) + throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: array expected"); + message.subnets = []; + for (var i = 0; i < object.subnets.length; ++i) { + if (typeof object.subnets[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: object expected"); + message.subnets[i] = $root.google.cloud.vmwareengine.v1.Subnet.fromObject(object.subnets[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static - * @param {google.cloud.vmwareengine.v1.ListClustersRequest} message ListClustersRequest + * @param {google.cloud.vmwareengine.v1.ListSubnetsResponse} message ListSubnetsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersRequest.toObject = function toObject(message, options) { + ListSubnetsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + if (options.arrays || options.defaults) + object.subnets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.subnets && message.subnets.length) { + object.subnets = []; + for (var j = 0; j < message.subnets.length; ++j) + object.subnets[j] = $root.google.cloud.vmwareengine.v1.Subnet.toObject(message.subnets[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListClustersRequest to JSON. + * Converts this ListSubnetsResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @instance * @returns {Object.} JSON object */ - ListClustersRequest.prototype.toJSON = function toJSON() { + ListSubnetsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListClustersRequest + * Gets the default type url for ListSubnetsResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListClustersRequest + * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListClustersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSubnetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsResponse"; }; - return ListClustersRequest; + return ListSubnetsResponse; })(); - v1.ListClustersResponse = (function() { + v1.OperationMetadata = (function() { /** - * Properties of a ListClustersResponse. + * Properties of an OperationMetadata. * @memberof google.cloud.vmwareengine.v1 - * @interface IListClustersResponse - * @property {Array.|null} [clusters] ListClustersResponse clusters - * @property {string|null} [nextPageToken] ListClustersResponse nextPageToken - * @property {Array.|null} [unreachable] ListClustersResponse unreachable + * @interface IOperationMetadata + * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime + * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime + * @property {string|null} [target] OperationMetadata target + * @property {string|null} [verb] OperationMetadata verb + * @property {string|null} [statusMessage] OperationMetadata statusMessage + * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation + * @property {string|null} [apiVersion] OperationMetadata apiVersion */ /** - * Constructs a new ListClustersResponse. + * Constructs a new OperationMetadata. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListClustersResponse. - * @implements IListClustersResponse + * @classdesc Represents an OperationMetadata. + * @implements IOperationMetadata * @constructor - * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IOperationMetadata=} [properties] Properties to set */ - function ListClustersResponse(properties) { - this.clusters = []; - this.unreachable = []; + function OperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5134,109 +5118,159 @@ } /** - * ListClustersResponse clusters. - * @member {Array.} clusters - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * OperationMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @instance */ - ListClustersResponse.prototype.clusters = $util.emptyArray; + OperationMetadata.prototype.createTime = null; /** - * ListClustersResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * OperationMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @instance */ - ListClustersResponse.prototype.nextPageToken = ""; + OperationMetadata.prototype.endTime = null; /** - * ListClustersResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * OperationMetadata target. + * @member {string} target + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @instance */ - ListClustersResponse.prototype.unreachable = $util.emptyArray; + OperationMetadata.prototype.target = ""; /** - * Creates a new ListClustersResponse instance using the specified properties. + * OperationMetadata verb. + * @member {string} verb + * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.verb = ""; + + /** + * OperationMetadata statusMessage. + * @member {string} statusMessage + * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.statusMessage = ""; + + /** + * OperationMetadata requestedCancellation. + * @member {boolean} requestedCancellation + * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.requestedCancellation = false; + + /** + * OperationMetadata apiVersion. + * @member {string} apiVersion + * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.apiVersion = ""; + + /** + * Creates a new OperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static - * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse instance + * @param {google.cloud.vmwareengine.v1.IOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata instance */ - ListClustersResponse.create = function create(properties) { - return new ListClustersResponse(properties); + OperationMetadata.create = function create(properties) { + return new OperationMetadata(properties); }; /** - * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static - * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IOperationMetadata} message OperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encode = function encode(message, writer) { + OperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.clusters != null && message.clusters.length) - for (var i = 0; i < message.clusters.length; ++i) - $root.google.cloud.vmwareengine.v1.Cluster.encode(message.clusters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); + if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); + if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); return writer; }; /** - * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static - * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IOperationMetadata} message OperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { + OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer. + * Decodes an OperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse + * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decode = function decode(reader, length) { + OperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListClustersResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.OperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.clusters && message.clusters.length)) - message.clusters = []; - message.clusters.push($root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32())); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.target = reader.string(); + break; + } + case 4: { + message.verb = reader.string(); + break; + } + case 5: { + message.statusMessage = reader.string(); + break; + } + case 6: { + message.requestedCancellation = reader.bool(); + break; + } + case 7: { + message.apiVersion = reader.string(); break; } default: @@ -5248,169 +5282,184 @@ }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse + * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decodeDelimited = function decodeDelimited(reader) { + OperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersResponse message. + * Verifies an OperationMetadata message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersResponse.verify = function verify(message) { + OperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.clusters != null && message.hasOwnProperty("clusters")) { - if (!Array.isArray(message.clusters)) - return "clusters: array expected"; - for (var i = 0; i < message.clusters.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.clusters[i]); - if (error) - return "clusters." + error; - } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } + if (message.target != null && message.hasOwnProperty("target")) + if (!$util.isString(message.target)) + return "target: string expected"; + if (message.verb != null && message.hasOwnProperty("verb")) + if (!$util.isString(message.verb)) + return "verb: string expected"; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + if (typeof message.requestedCancellation !== "boolean") + return "requestedCancellation: boolean expected"; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + if (!$util.isString(message.apiVersion)) + return "apiVersion: string expected"; return null; }; /** - * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse - */ - ListClustersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersResponse) - return object; - var message = new $root.google.cloud.vmwareengine.v1.ListClustersResponse(); - if (object.clusters) { - if (!Array.isArray(object.clusters)) - throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: array expected"); - message.clusters = []; - for (var i = 0; i < object.clusters.length; ++i) { - if (typeof object.clusters[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: object expected"); - message.clusters[i] = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.clusters[i]); - } + * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata + */ + OperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.OperationMetadata) + return object; + var message = new $root.google.cloud.vmwareengine.v1.OperationMetadata(); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.OperationMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.OperationMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } + if (object.target != null) + message.target = String(object.target); + if (object.verb != null) + message.verb = String(object.verb); + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.requestedCancellation != null) + message.requestedCancellation = Boolean(object.requestedCancellation); + if (object.apiVersion != null) + message.apiVersion = String(object.apiVersion); return message; }; /** - * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static - * @param {google.cloud.vmwareengine.v1.ListClustersResponse} message ListClustersResponse + * @param {google.cloud.vmwareengine.v1.OperationMetadata} message OperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersResponse.toObject = function toObject(message, options) { + OperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.clusters = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.clusters && message.clusters.length) { - object.clusters = []; - for (var j = 0; j < message.clusters.length; ++j) - object.clusters[j] = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.clusters[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (options.defaults) { + object.createTime = null; + object.endTime = null; + object.target = ""; + object.verb = ""; + object.statusMessage = ""; + object.requestedCancellation = false; + object.apiVersion = ""; } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = message.target; + if (message.verb != null && message.hasOwnProperty("verb")) + object.verb = message.verb; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + object.requestedCancellation = message.requestedCancellation; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + object.apiVersion = message.apiVersion; return object; }; /** - * Converts this ListClustersResponse to JSON. + * Converts this OperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @instance * @returns {Object.} JSON object */ - ListClustersResponse.prototype.toJSON = function toJSON() { + OperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListClustersResponse + * Gets the default type url for OperationMetadata * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListClustersResponse + * @memberof google.cloud.vmwareengine.v1.OperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListClustersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.OperationMetadata"; }; - return ListClustersResponse; + return OperationMetadata; })(); - v1.GetClusterRequest = (function() { + v1.ListNodeTypesRequest = (function() { /** - * Properties of a GetClusterRequest. + * Properties of a ListNodeTypesRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetClusterRequest - * @property {string|null} [name] GetClusterRequest name + * @interface IListNodeTypesRequest + * @property {string|null} [parent] ListNodeTypesRequest parent + * @property {number|null} [pageSize] ListNodeTypesRequest pageSize + * @property {string|null} [pageToken] ListNodeTypesRequest pageToken + * @property {string|null} [filter] ListNodeTypesRequest filter */ /** - * Constructs a new GetClusterRequest. + * Constructs a new ListNodeTypesRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetClusterRequest. - * @implements IGetClusterRequest + * @classdesc Represents a ListNodeTypesRequest. + * @implements IListNodeTypesRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set */ - function GetClusterRequest(properties) { + function ListNodeTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5418,75 +5467,117 @@ } /** - * GetClusterRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * ListNodeTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @instance */ - GetClusterRequest.prototype.name = ""; + ListNodeTypesRequest.prototype.parent = ""; /** - * Creates a new GetClusterRequest instance using the specified properties. + * ListNodeTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @instance + */ + ListNodeTypesRequest.prototype.pageSize = 0; + + /** + * ListNodeTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @instance + */ + ListNodeTypesRequest.prototype.pageToken = ""; + + /** + * ListNodeTypesRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @instance + */ + ListNodeTypesRequest.prototype.filter = ""; + + /** + * Creates a new ListNodeTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest instance + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest instance */ - GetClusterRequest.create = function create(properties) { - return new GetClusterRequest(properties); + ListNodeTypesRequest.create = function create(properties) { + return new ListNodeTypesRequest(properties); }; /** - * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. + * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetClusterRequest.encode = function encode(message, writer) { + ListNodeTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages. + * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetClusterRequest message from the specified reader or buffer. + * Decodes a ListNodeTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetClusterRequest.decode = function decode(reader, length) { + ListNodeTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); break; } default: @@ -5498,126 +5589,151 @@ }; /** - * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetClusterRequest.decodeDelimited = function decodeDelimited(reader) { + ListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetClusterRequest message. + * Verifies a ListNodeTypesRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetClusterRequest.verify = function verify(message) { + ListNodeTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest */ - GetClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetClusterRequest) + ListNodeTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetClusterRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static - * @param {google.cloud.vmwareengine.v1.GetClusterRequest} message GetClusterRequest + * @param {google.cloud.vmwareengine.v1.ListNodeTypesRequest} message ListNodeTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetClusterRequest.toObject = function toObject(message, options) { + ListNodeTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this GetClusterRequest to JSON. + * Converts this ListNodeTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @instance * @returns {Object.} JSON object */ - GetClusterRequest.prototype.toJSON = function toJSON() { + ListNodeTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetClusterRequest + * Gets the default type url for ListNodeTypesRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetClusterRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesRequest"; }; - return GetClusterRequest; + return ListNodeTypesRequest; })(); - v1.CreateClusterRequest = (function() { + v1.ListNodeTypesResponse = (function() { /** - * Properties of a CreateClusterRequest. + * Properties of a ListNodeTypesResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface ICreateClusterRequest - * @property {string|null} [parent] CreateClusterRequest parent - * @property {string|null} [clusterId] CreateClusterRequest clusterId - * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] CreateClusterRequest cluster - * @property {string|null} [requestId] CreateClusterRequest requestId - * @property {boolean|null} [validateOnly] CreateClusterRequest validateOnly + * @interface IListNodeTypesResponse + * @property {Array.|null} [nodeTypes] ListNodeTypesResponse nodeTypes + * @property {string|null} [nextPageToken] ListNodeTypesResponse nextPageToken + * @property {Array.|null} [unreachable] ListNodeTypesResponse unreachable */ /** - * Constructs a new CreateClusterRequest. + * Constructs a new ListNodeTypesResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreateClusterRequest. - * @implements ICreateClusterRequest + * @classdesc Represents a ListNodeTypesResponse. + * @implements IListNodeTypesResponse * @constructor - * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set */ - function CreateClusterRequest(properties) { + function ListNodeTypesResponse(properties) { + this.nodeTypes = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5625,131 +5741,109 @@ } /** - * CreateClusterRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest - * @instance - */ - CreateClusterRequest.prototype.parent = ""; - - /** - * CreateClusterRequest clusterId. - * @member {string} clusterId - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest - * @instance - */ - CreateClusterRequest.prototype.clusterId = ""; - - /** - * CreateClusterRequest cluster. - * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * ListNodeTypesResponse nodeTypes. + * @member {Array.} nodeTypes + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @instance */ - CreateClusterRequest.prototype.cluster = null; + ListNodeTypesResponse.prototype.nodeTypes = $util.emptyArray; /** - * CreateClusterRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * ListNodeTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @instance */ - CreateClusterRequest.prototype.requestId = ""; + ListNodeTypesResponse.prototype.nextPageToken = ""; /** - * CreateClusterRequest validateOnly. - * @member {boolean} validateOnly - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * ListNodeTypesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @instance */ - CreateClusterRequest.prototype.validateOnly = false; + ListNodeTypesResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new CreateClusterRequest instance using the specified properties. + * Creates a new ListNodeTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static - * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest instance + * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse instance */ - CreateClusterRequest.create = function create(properties) { - return new CreateClusterRequest(properties); + ListNodeTypesResponse.create = function create(properties) { + return new ListNodeTypesResponse(properties); }; /** - * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. + * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static - * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateClusterRequest.encode = function encode(message, writer) { + ListNodeTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterId); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); - if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly); + if (message.nodeTypes != null && message.nodeTypes.length) + for (var i = 0; i < message.nodeTypes.length; ++i) + $root.google.cloud.vmwareengine.v1.NodeType.encode(message.nodeTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages. + * Encodes the specified ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static - * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNodeTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateClusterRequest message from the specified reader or buffer. + * Decodes a ListNodeTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateClusterRequest.decode = function decode(reader, length) { + ListNodeTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.nodeTypes && message.nodeTypes.length)) + message.nodeTypes = []; + message.nodeTypes.push($root.google.cloud.vmwareengine.v1.NodeType.decode(reader, reader.uint32())); break; } case 2: { - message.clusterId = reader.string(); + message.nextPageToken = reader.string(); break; } case 3: { - message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32()); - break; - } - case 4: { - message.requestId = reader.string(); - break; - } - case 5: { - message.validateOnly = reader.bool(); + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -5761,163 +5855,169 @@ }; /** - * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodeTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) { + ListNodeTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateClusterRequest message. + * Verifies a ListNodeTypesResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateClusterRequest.verify = function verify(message) { + ListNodeTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster); - if (error) - return "cluster." + error; + if (message.nodeTypes != null && message.hasOwnProperty("nodeTypes")) { + if (!Array.isArray(message.nodeTypes)) + return "nodeTypes: array expected"; + for (var i = 0; i < message.nodeTypes.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.NodeType.verify(message.nodeTypes[i]); + if (error) + return "nodeTypes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - if (typeof message.validateOnly !== "boolean") - return "validateOnly: boolean expected"; return null; }; /** - * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse */ - CreateClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreateClusterRequest) - return object; - var message = new $root.google.cloud.vmwareengine.v1.CreateClusterRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreateClusterRequest.cluster: object expected"); - message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster); + ListNodeTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse) + return object; + var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse(); + if (object.nodeTypes) { + if (!Array.isArray(object.nodeTypes)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: array expected"); + message.nodeTypes = []; + for (var i = 0; i < object.nodeTypes.length; ++i) { + if (typeof object.nodeTypes[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: object expected"); + message.nodeTypes[i] = $root.google.cloud.vmwareengine.v1.NodeType.fromObject(object.nodeTypes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); } - if (object.requestId != null) - message.requestId = String(object.requestId); - if (object.validateOnly != null) - message.validateOnly = Boolean(object.validateOnly); return message; }; /** - * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNodeTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static - * @param {google.cloud.vmwareengine.v1.CreateClusterRequest} message CreateClusterRequest + * @param {google.cloud.vmwareengine.v1.ListNodeTypesResponse} message ListNodeTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateClusterRequest.toObject = function toObject(message, options) { + ListNodeTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.clusterId = ""; - object.cluster = null; - object.requestId = ""; - object.validateOnly = false; + if (options.arrays || options.defaults) { + object.nodeTypes = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.nodeTypes && message.nodeTypes.length) { + object.nodeTypes = []; + for (var j = 0; j < message.nodeTypes.length; ++j) + object.nodeTypes[j] = $root.google.cloud.vmwareengine.v1.NodeType.toObject(message.nodeTypes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - object.validateOnly = message.validateOnly; return object; }; /** - * Converts this CreateClusterRequest to JSON. + * Converts this ListNodeTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @instance * @returns {Object.} JSON object */ - CreateClusterRequest.prototype.toJSON = function toJSON() { + ListNodeTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateClusterRequest + * Gets the default type url for ListNodeTypesResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest + * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNodeTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateClusterRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesResponse"; }; - return CreateClusterRequest; + return ListNodeTypesResponse; })(); - v1.UpdateClusterRequest = (function() { + v1.GetNodeTypeRequest = (function() { /** - * Properties of an UpdateClusterRequest. + * Properties of a GetNodeTypeRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdateClusterRequest - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateClusterRequest updateMask - * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] UpdateClusterRequest cluster - * @property {string|null} [requestId] UpdateClusterRequest requestId - * @property {boolean|null} [validateOnly] UpdateClusterRequest validateOnly + * @interface IGetNodeTypeRequest + * @property {string|null} [name] GetNodeTypeRequest name */ /** - * Constructs a new UpdateClusterRequest. + * Constructs a new GetNodeTypeRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdateClusterRequest. - * @implements IUpdateClusterRequest + * @classdesc Represents a GetNodeTypeRequest. + * @implements IGetNodeTypeRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set */ - function UpdateClusterRequest(properties) { + function GetNodeTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5925,117 +6025,75 @@ } /** - * UpdateClusterRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest - * @instance - */ - UpdateClusterRequest.prototype.updateMask = null; - - /** - * UpdateClusterRequest cluster. - * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest - * @instance - */ - UpdateClusterRequest.prototype.cluster = null; - - /** - * UpdateClusterRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest - * @instance - */ - UpdateClusterRequest.prototype.requestId = ""; - - /** - * UpdateClusterRequest validateOnly. - * @member {boolean} validateOnly - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * GetNodeTypeRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @instance */ - UpdateClusterRequest.prototype.validateOnly = false; + GetNodeTypeRequest.prototype.name = ""; /** - * Creates a new UpdateClusterRequest instance using the specified properties. + * Creates a new GetNodeTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest instance + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest instance */ - UpdateClusterRequest.create = function create(properties) { - return new UpdateClusterRequest(properties); + GetNodeTypeRequest.create = function create(properties) { + return new GetNodeTypeRequest(properties); }; /** - * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. + * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateClusterRequest.encode = function encode(message, writer) { + GetNodeTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); - if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.validateOnly); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages. + * Encodes the specified GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static - * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNodeTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateClusterRequest message from the specified reader or buffer. + * Decodes a GetNodeTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateClusterRequest.decode = function decode(reader, length) { + GetNodeTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 2: { - message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32()); - break; - } - case 3: { - message.requestId = reader.string(); - break; - } - case 4: { - message.validateOnly = reader.bool(); + message.name = reader.string(); break; } default: @@ -6047,158 +6105,122 @@ }; /** - * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNodeTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) { + GetNodeTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateClusterRequest message. + * Verifies a GetNodeTypeRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateClusterRequest.verify = function verify(message) { + GetNodeTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster); - if (error) - return "cluster." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - if (typeof message.validateOnly !== "boolean") - return "validateOnly: boolean expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest */ - UpdateClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateClusterRequest) + GetNodeTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdateClusterRequest(); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.cluster: object expected"); - message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster); - } - if (object.requestId != null) - message.requestId = String(object.requestId); - if (object.validateOnly != null) - message.validateOnly = Boolean(object.validateOnly); + var message = new $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static - * @param {google.cloud.vmwareengine.v1.UpdateClusterRequest} message UpdateClusterRequest + * @param {google.cloud.vmwareengine.v1.GetNodeTypeRequest} message GetNodeTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateClusterRequest.toObject = function toObject(message, options) { + GetNodeTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.updateMask = null; - object.cluster = null; - object.requestId = ""; - object.validateOnly = false; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; - if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) - object.validateOnly = message.validateOnly; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateClusterRequest to JSON. + * Converts this GetNodeTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @instance * @returns {Object.} JSON object */ - UpdateClusterRequest.prototype.toJSON = function toJSON() { + GetNodeTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateClusterRequest + * Gets the default type url for GetNodeTypeRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest + * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNodeTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateClusterRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNodeTypeRequest"; }; - return UpdateClusterRequest; + return GetNodeTypeRequest; })(); - v1.DeleteClusterRequest = (function() { + v1.ShowNsxCredentialsRequest = (function() { /** - * Properties of a DeleteClusterRequest. + * Properties of a ShowNsxCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IDeleteClusterRequest - * @property {string|null} [name] DeleteClusterRequest name - * @property {string|null} [requestId] DeleteClusterRequest requestId + * @interface IShowNsxCredentialsRequest + * @property {string|null} [privateCloud] ShowNsxCredentialsRequest privateCloud */ /** - * Constructs a new DeleteClusterRequest. + * Constructs a new ShowNsxCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a DeleteClusterRequest. - * @implements IDeleteClusterRequest + * @classdesc Represents a ShowNsxCredentialsRequest. + * @implements IShowNsxCredentialsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set */ - function DeleteClusterRequest(properties) { + function ShowNsxCredentialsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6206,89 +6228,75 @@ } /** - * DeleteClusterRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest - * @instance - */ - DeleteClusterRequest.prototype.name = ""; - - /** - * DeleteClusterRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * ShowNsxCredentialsRequest privateCloud. + * @member {string} privateCloud + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @instance */ - DeleteClusterRequest.prototype.requestId = ""; + ShowNsxCredentialsRequest.prototype.privateCloud = ""; /** - * Creates a new DeleteClusterRequest instance using the specified properties. + * Creates a new ShowNsxCredentialsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest instance + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest instance */ - DeleteClusterRequest.create = function create(properties) { - return new DeleteClusterRequest(properties); + ShowNsxCredentialsRequest.create = function create(properties) { + return new ShowNsxCredentialsRequest(properties); }; /** - * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. + * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteClusterRequest.encode = function encode(message, writer) { + ShowNsxCredentialsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); return writer; }; /** - * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages. + * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShowNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer. + * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest + * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteClusterRequest.decode = function decode(reader, length) { + ShowNsxCredentialsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.requestId = reader.string(); + message.privateCloud = reader.string(); break; } default: @@ -6300,267 +6308,198 @@ }; /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest + * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) { + ShowNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteClusterRequest message. + * Verifies a ShowNsxCredentialsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteClusterRequest.verify = function verify(message) { + ShowNsxCredentialsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + if (!$util.isString(message.privateCloud)) + return "privateCloud: string expected"; return null; }; /** - * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest + * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest */ - DeleteClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteClusterRequest) + ShowNsxCredentialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.DeleteClusterRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(); + if (object.privateCloud != null) + message.privateCloud = String(object.privateCloud); return message; }; /** - * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.DeleteClusterRequest} message DeleteClusterRequest + * @param {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} message ShowNsxCredentialsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteClusterRequest.toObject = function toObject(message, options) { + ShowNsxCredentialsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.requestId = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (options.defaults) + object.privateCloud = ""; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = message.privateCloud; return object; }; /** - * Converts this DeleteClusterRequest to JSON. + * Converts this ShowNsxCredentialsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @instance * @returns {Object.} JSON object */ - DeleteClusterRequest.prototype.toJSON = function toJSON() { + ShowNsxCredentialsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteClusterRequest + * Gets the default type url for ShowNsxCredentialsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest + * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShowNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteClusterRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest"; }; - return DeleteClusterRequest; + return ShowNsxCredentialsRequest; })(); - v1.Subnet = (function() { - - /** - * Properties of a Subnet. - * @memberof google.cloud.vmwareengine.v1 - * @interface ISubnet - * @property {string|null} [name] Subnet name - * @property {string|null} [ipCidrRange] Subnet ipCidrRange - * @property {string|null} [gatewayIp] Subnet gatewayIp - * @property {string|null} [type] Subnet type - * @property {google.cloud.vmwareengine.v1.Subnet.State|null} [state] Subnet state - */ - - /** - * Constructs a new Subnet. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Subnet. - * @implements ISubnet - * @constructor - * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set - */ - function Subnet(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]]; - } - - /** - * Subnet name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.Subnet - * @instance - */ - Subnet.prototype.name = ""; - - /** - * Subnet ipCidrRange. - * @member {string} ipCidrRange - * @memberof google.cloud.vmwareengine.v1.Subnet - * @instance - */ - Subnet.prototype.ipCidrRange = ""; - - /** - * Subnet gatewayIp. - * @member {string} gatewayIp - * @memberof google.cloud.vmwareengine.v1.Subnet - * @instance + v1.ShowVcenterCredentialsRequest = (function() { + + /** + * Properties of a ShowVcenterCredentialsRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IShowVcenterCredentialsRequest + * @property {string|null} [privateCloud] ShowVcenterCredentialsRequest privateCloud */ - Subnet.prototype.gatewayIp = ""; /** - * Subnet type. - * @member {string} type - * @memberof google.cloud.vmwareengine.v1.Subnet - * @instance + * Constructs a new ShowVcenterCredentialsRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ShowVcenterCredentialsRequest. + * @implements IShowVcenterCredentialsRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set */ - Subnet.prototype.type = ""; + function ShowVcenterCredentialsRequest(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]]; + } /** - * Subnet state. - * @member {google.cloud.vmwareengine.v1.Subnet.State} state - * @memberof google.cloud.vmwareengine.v1.Subnet + * ShowVcenterCredentialsRequest privateCloud. + * @member {string} privateCloud + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @instance */ - Subnet.prototype.state = 0; + ShowVcenterCredentialsRequest.prototype.privateCloud = ""; /** - * Creates a new Subnet instance using the specified properties. + * Creates a new ShowVcenterCredentialsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet instance + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest instance */ - Subnet.create = function create(properties) { - return new Subnet(properties); + ShowVcenterCredentialsRequest.create = function create(properties) { + return new ShowVcenterCredentialsRequest(properties); }; /** - * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Subnet.encode = function encode(message, writer) { + ShowVcenterCredentialsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.ipCidrRange); - if (message.gatewayIp != null && Object.hasOwnProperty.call(message, "gatewayIp")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.gatewayIp); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.type); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.state); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); return writer; }; /** - * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. + * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Subnet.encodeDelimited = function encodeDelimited(message, writer) { + ShowVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Subnet message from the specified reader or buffer. + * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet + * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Subnet.decode = function decode(reader, length) { + ShowVcenterCredentialsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Subnet(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 7: { - message.ipCidrRange = reader.string(); - break; - } - case 8: { - message.gatewayIp = reader.string(); - break; - } - case 11: { - message.type = reader.string(); - break; - } - case 13: { - message.state = reader.int32(); + message.privateCloud = reader.string(); break; } default: @@ -6572,211 +6511,123 @@ }; /** - * Decodes a Subnet message from the specified reader or buffer, length delimited. + * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet + * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Subnet.decodeDelimited = function decodeDelimited(reader) { + ShowVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Subnet message. + * Verifies a ShowVcenterCredentialsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Subnet.verify = function verify(message) { + ShowVcenterCredentialsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) - if (!$util.isString(message.ipCidrRange)) - return "ipCidrRange: string expected"; - if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp")) - if (!$util.isString(message.gatewayIp)) - return "gatewayIp: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + if (!$util.isString(message.privateCloud)) + return "privateCloud: string expected"; return null; }; /** - * Creates a Subnet message from a plain object. Also converts values to their respective internal types. + * Creates a ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet + * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest */ - Subnet.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Subnet) + ShowVcenterCredentialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.Subnet(); - if (object.name != null) - message.name = String(object.name); - if (object.ipCidrRange != null) - message.ipCidrRange = String(object.ipCidrRange); - if (object.gatewayIp != null) - message.gatewayIp = String(object.gatewayIp); - if (object.type != null) - message.type = String(object.type); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "DELETING": - case 4: - message.state = 4; - break; - } + var message = new $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(); + if (object.privateCloud != null) + message.privateCloud = String(object.privateCloud); return message; }; /** - * Creates a plain object from a Subnet message. Also converts values to other types if specified. + * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.Subnet} message Subnet + * @param {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Subnet.toObject = function toObject(message, options) { + ShowVcenterCredentialsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.ipCidrRange = ""; - object.gatewayIp = ""; - object.type = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) - object.ipCidrRange = message.ipCidrRange; - if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp")) - object.gatewayIp = message.gatewayIp; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] : message.state; + if (options.defaults) + object.privateCloud = ""; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = message.privateCloud; return object; }; /** - * Converts this Subnet to JSON. + * Converts this ShowVcenterCredentialsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @instance * @returns {Object.} JSON object */ - Subnet.prototype.toJSON = function toJSON() { + ShowVcenterCredentialsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Subnet + * Gets the default type url for ShowVcenterCredentialsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Subnet + * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Subnet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ShowVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Subnet"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.Subnet.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - * @property {number} UPDATING=3 UPDATING value - * @property {number} DELETING=4 DELETING value - */ - Subnet.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[4] = "DELETING"] = 4; - return values; - })(); - - return Subnet; + return ShowVcenterCredentialsRequest; })(); - v1.ListSubnetsRequest = (function() { + v1.ResetNsxCredentialsRequest = (function() { /** - * Properties of a ListSubnetsRequest. + * Properties of a ResetNsxCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListSubnetsRequest - * @property {string|null} [parent] ListSubnetsRequest parent - * @property {number|null} [pageSize] ListSubnetsRequest pageSize - * @property {string|null} [pageToken] ListSubnetsRequest pageToken + * @interface IResetNsxCredentialsRequest + * @property {string|null} [privateCloud] ResetNsxCredentialsRequest privateCloud + * @property {string|null} [requestId] ResetNsxCredentialsRequest requestId */ /** - * Constructs a new ListSubnetsRequest. + * Constructs a new ResetNsxCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListSubnetsRequest. - * @implements IListSubnetsRequest + * @classdesc Represents a ResetNsxCredentialsRequest. + * @implements IResetNsxCredentialsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set */ - function ListSubnetsRequest(properties) { + function ResetNsxCredentialsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6784,103 +6635,89 @@ } /** - * ListSubnetsRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest - * @instance - */ - ListSubnetsRequest.prototype.parent = ""; - - /** - * ListSubnetsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * ResetNsxCredentialsRequest privateCloud. + * @member {string} privateCloud + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @instance */ - ListSubnetsRequest.prototype.pageSize = 0; + ResetNsxCredentialsRequest.prototype.privateCloud = ""; /** - * ListSubnetsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * ResetNsxCredentialsRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @instance */ - ListSubnetsRequest.prototype.pageToken = ""; + ResetNsxCredentialsRequest.prototype.requestId = ""; /** - * Creates a new ListSubnetsRequest instance using the specified properties. + * Creates a new ResetNsxCredentialsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest instance + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest instance */ - ListSubnetsRequest.create = function create(properties) { - return new ListSubnetsRequest(properties); + ResetNsxCredentialsRequest.create = function create(properties) { + return new ResetNsxCredentialsRequest(properties); }; /** - * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. + * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSubnetsRequest.encode = function encode(message, writer) { + ResetNsxCredentialsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages. + * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSubnetsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResetNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSubnetsRequest message from the specified reader or buffer. + * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest + * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSubnetsRequest.decode = function decode(reader, length) { + ResetNsxCredentialsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListSubnetsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.privateCloud = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.requestId = reader.string(); break; } default: @@ -6892,141 +6729,132 @@ }; /** - * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited. + * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest + * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSubnetsRequest.decodeDelimited = function decodeDelimited(reader) { + ResetNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSubnetsRequest message. + * Verifies a ResetNsxCredentialsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSubnetsRequest.verify = function verify(message) { + ResetNsxCredentialsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + if (!$util.isString(message.privateCloud)) + return "privateCloud: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ListSubnetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest + * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest */ - ListSubnetsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsRequest) + ResetNsxCredentialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(); + if (object.privateCloud != null) + message.privateCloud = String(object.privateCloud); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.ListSubnetsRequest} message ListSubnetsRequest + * @param {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} message ResetNsxCredentialsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSubnetsRequest.toObject = function toObject(message, options) { + ResetNsxCredentialsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.privateCloud = ""; + object.requestId = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = message.privateCloud; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ListSubnetsRequest to JSON. + * Converts this ResetNsxCredentialsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @instance * @returns {Object.} JSON object */ - ListSubnetsRequest.prototype.toJSON = function toJSON() { + ResetNsxCredentialsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSubnetsRequest + * Gets the default type url for ResetNsxCredentialsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest + * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSubnetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResetNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest"; }; - return ListSubnetsRequest; + return ResetNsxCredentialsRequest; })(); - v1.ListSubnetsResponse = (function() { + v1.ResetVcenterCredentialsRequest = (function() { /** - * Properties of a ListSubnetsResponse. + * Properties of a ResetVcenterCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListSubnetsResponse - * @property {Array.|null} [subnets] ListSubnetsResponse subnets - * @property {string|null} [nextPageToken] ListSubnetsResponse nextPageToken + * @interface IResetVcenterCredentialsRequest + * @property {string|null} [privateCloud] ResetVcenterCredentialsRequest privateCloud + * @property {string|null} [requestId] ResetVcenterCredentialsRequest requestId */ /** - * Constructs a new ListSubnetsResponse. + * Constructs a new ResetVcenterCredentialsRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListSubnetsResponse. - * @implements IListSubnetsResponse + * @classdesc Represents a ResetVcenterCredentialsRequest. + * @implements IResetVcenterCredentialsRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set */ - function ListSubnetsResponse(properties) { - this.subnets = []; + function ResetVcenterCredentialsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7034,92 +6862,89 @@ } /** - * ListSubnetsResponse subnets. - * @member {Array.} subnets - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * ResetVcenterCredentialsRequest privateCloud. + * @member {string} privateCloud + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @instance */ - ListSubnetsResponse.prototype.subnets = $util.emptyArray; + ResetVcenterCredentialsRequest.prototype.privateCloud = ""; /** - * ListSubnetsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * ResetVcenterCredentialsRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @instance */ - ListSubnetsResponse.prototype.nextPageToken = ""; + ResetVcenterCredentialsRequest.prototype.requestId = ""; /** - * Creates a new ListSubnetsResponse instance using the specified properties. + * Creates a new ResetVcenterCredentialsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse instance + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest instance */ - ListSubnetsResponse.create = function create(properties) { - return new ListSubnetsResponse(properties); + ResetVcenterCredentialsRequest.create = function create(properties) { + return new ResetVcenterCredentialsRequest(properties); }; /** - * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. + * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSubnetsResponse.encode = function encode(message, writer) { + ResetVcenterCredentialsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.subnets != null && message.subnets.length) - for (var i = 0; i < message.subnets.length; ++i) - $root.google.cloud.vmwareengine.v1.Subnet.encode(message.subnets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages. + * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSubnetsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ResetVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSubnetsResponse message from the specified reader or buffer. + * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse + * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSubnetsResponse.decode = function decode(reader, length) { + ResetVcenterCredentialsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListSubnetsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.subnets && message.subnets.length)) - message.subnets = []; - message.subnets.push($root.google.cloud.vmwareengine.v1.Subnet.decode(reader, reader.uint32())); + message.privateCloud = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.requestId = reader.string(); break; } default: @@ -7131,154 +6956,135 @@ }; /** - * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited. + * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse + * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSubnetsResponse.decodeDelimited = function decodeDelimited(reader) { + ResetVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSubnetsResponse message. + * Verifies a ResetVcenterCredentialsRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSubnetsResponse.verify = function verify(message) { + ResetVcenterCredentialsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.subnets != null && message.hasOwnProperty("subnets")) { - if (!Array.isArray(message.subnets)) - return "subnets: array expected"; - for (var i = 0; i < message.subnets.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.Subnet.verify(message.subnets[i]); - if (error) - return "subnets." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + if (!$util.isString(message.privateCloud)) + return "privateCloud: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ListSubnetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse + * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest */ - ListSubnetsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsResponse) + ResetVcenterCredentialsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsResponse(); - if (object.subnets) { - if (!Array.isArray(object.subnets)) - throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: array expected"); - message.subnets = []; - for (var i = 0; i < object.subnets.length; ++i) { - if (typeof object.subnets[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: object expected"); - message.subnets[i] = $root.google.cloud.vmwareengine.v1.Subnet.fromObject(object.subnets[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(); + if (object.privateCloud != null) + message.privateCloud = String(object.privateCloud); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static - * @param {google.cloud.vmwareengine.v1.ListSubnetsResponse} message ListSubnetsResponse + * @param {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSubnetsResponse.toObject = function toObject(message, options) { + ResetVcenterCredentialsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.subnets = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.subnets && message.subnets.length) { - object.subnets = []; - for (var j = 0; j < message.subnets.length; ++j) - object.subnets[j] = $root.google.cloud.vmwareengine.v1.Subnet.toObject(message.subnets[j], options); + if (options.defaults) { + object.privateCloud = ""; + object.requestId = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) + object.privateCloud = message.privateCloud; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ListSubnetsResponse to JSON. + * Converts this ResetVcenterCredentialsRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @instance * @returns {Object.} JSON object */ - ListSubnetsResponse.prototype.toJSON = function toJSON() { + ResetVcenterCredentialsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSubnetsResponse + * Gets the default type url for ResetVcenterCredentialsRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse + * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSubnetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResetVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest"; }; - return ListSubnetsResponse; + return ResetVcenterCredentialsRequest; })(); - v1.OperationMetadata = (function() { + v1.ListHcxActivationKeysResponse = (function() { /** - * Properties of an OperationMetadata. + * Properties of a ListHcxActivationKeysResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IOperationMetadata - * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime - * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime - * @property {string|null} [target] OperationMetadata target - * @property {string|null} [verb] OperationMetadata verb - * @property {string|null} [statusMessage] OperationMetadata statusMessage - * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation - * @property {string|null} [apiVersion] OperationMetadata apiVersion + * @interface IListHcxActivationKeysResponse + * @property {Array.|null} [hcxActivationKeys] ListHcxActivationKeysResponse hcxActivationKeys + * @property {string|null} [nextPageToken] ListHcxActivationKeysResponse nextPageToken + * @property {Array.|null} [unreachable] ListHcxActivationKeysResponse unreachable */ /** - * Constructs a new OperationMetadata. + * Constructs a new ListHcxActivationKeysResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an OperationMetadata. - * @implements IOperationMetadata + * @classdesc Represents a ListHcxActivationKeysResponse. + * @implements IListHcxActivationKeysResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IOperationMetadata=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set */ - function OperationMetadata(properties) { + function ListHcxActivationKeysResponse(properties) { + this.hcxActivationKeys = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7286,159 +7092,109 @@ } /** - * OperationMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.createTime = null; - - /** - * OperationMetadata endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.vmwareengine.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.endTime = null; - - /** - * OperationMetadata target. - * @member {string} target - * @memberof google.cloud.vmwareengine.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.target = ""; - - /** - * OperationMetadata verb. - * @member {string} verb - * @memberof google.cloud.vmwareengine.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.verb = ""; - - /** - * OperationMetadata statusMessage. - * @member {string} statusMessage - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * ListHcxActivationKeysResponse hcxActivationKeys. + * @member {Array.} hcxActivationKeys + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @instance */ - OperationMetadata.prototype.statusMessage = ""; + ListHcxActivationKeysResponse.prototype.hcxActivationKeys = $util.emptyArray; /** - * OperationMetadata requestedCancellation. - * @member {boolean} requestedCancellation - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * ListHcxActivationKeysResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @instance */ - OperationMetadata.prototype.requestedCancellation = false; + ListHcxActivationKeysResponse.prototype.nextPageToken = ""; /** - * OperationMetadata apiVersion. - * @member {string} apiVersion - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * ListHcxActivationKeysResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @instance */ - OperationMetadata.prototype.apiVersion = ""; + ListHcxActivationKeysResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new ListHcxActivationKeysResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @static - * @param {google.cloud.vmwareengine.v1.IOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata instance + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse instance */ - OperationMetadata.create = function create(properties) { - return new OperationMetadata(properties); + ListHcxActivationKeysResponse.create = function create(properties) { + return new ListHcxActivationKeysResponse(properties); }; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @static - * @param {google.cloud.vmwareengine.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encode = function encode(message, writer) { + ListHcxActivationKeysResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); - if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); - if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); + if (message.hcxActivationKeys != null && message.hcxActivationKeys.length) + for (var i = 0; i < message.hcxActivationKeys.length; ++i) + $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @static - * @param {google.cloud.vmwareengine.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListHcxActivationKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decode = function decode(reader, length) { + ListHcxActivationKeysResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.OperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.hcxActivationKeys && message.hcxActivationKeys.length)) + message.hcxActivationKeys = []; + message.hcxActivationKeys.push($root.google.cloud.vmwareengine.v1.HcxActivationKey.decode(reader, reader.uint32())); break; } case 2: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } case 3: { - message.target = reader.string(); - break; - } - case 4: { - message.verb = reader.string(); - break; - } - case 5: { - message.statusMessage = reader.string(); - break; - } - case 6: { - message.requestedCancellation = reader.bool(); - break; - } - case 7: { - message.apiVersion = reader.string(); + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -7450,374 +7206,275 @@ }; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListHcxActivationKeysResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OperationMetadata message. + * Verifies a ListHcxActivationKeysResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OperationMetadata.verify = function verify(message) { + ListHcxActivationKeysResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + if (message.hcxActivationKeys != null && message.hasOwnProperty("hcxActivationKeys")) { + if (!Array.isArray(message.hcxActivationKeys)) + return "hcxActivationKeys: array expected"; + for (var i = 0; i < message.hcxActivationKeys.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKeys[i]); + if (error) + return "hcxActivationKeys." + error; + } } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; } - if (message.target != null && message.hasOwnProperty("target")) - if (!$util.isString(message.target)) - return "target: string expected"; - if (message.verb != null && message.hasOwnProperty("verb")) - if (!$util.isString(message.verb)) - return "verb: string expected"; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - if (typeof message.requestedCancellation !== "boolean") - return "requestedCancellation: boolean expected"; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - if (!$util.isString(message.apiVersion)) - return "apiVersion: string expected"; return null; }; /** - * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse */ - OperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.OperationMetadata) + ListHcxActivationKeysResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.OperationMetadata(); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.OperationMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(); + if (object.hcxActivationKeys) { + if (!Array.isArray(object.hcxActivationKeys)) + throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: array expected"); + message.hcxActivationKeys = []; + for (var i = 0; i < object.hcxActivationKeys.length; ++i) { + if (typeof object.hcxActivationKeys[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: object expected"); + message.hcxActivationKeys[i] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKeys[i]); + } } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.OperationMetadata.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); } - if (object.target != null) - message.target = String(object.target); - if (object.verb != null) - message.verb = String(object.verb); - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.requestedCancellation != null) - message.requestedCancellation = Boolean(object.requestedCancellation); - if (object.apiVersion != null) - message.apiVersion = String(object.apiVersion); return message; }; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListHcxActivationKeysResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @static - * @param {google.cloud.vmwareengine.v1.OperationMetadata} message OperationMetadata + * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} message ListHcxActivationKeysResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OperationMetadata.toObject = function toObject(message, options) { + ListHcxActivationKeysResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.createTime = null; - object.endTime = null; - object.target = ""; - object.verb = ""; - object.statusMessage = ""; - object.requestedCancellation = false; - object.apiVersion = ""; + if (options.arrays || options.defaults) { + object.hcxActivationKeys = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.hcxActivationKeys && message.hcxActivationKeys.length) { + object.hcxActivationKeys = []; + for (var j = 0; j < message.hcxActivationKeys.length; ++j) + object.hcxActivationKeys[j] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKeys[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = message.target; - if (message.verb != null && message.hasOwnProperty("verb")) - object.verb = message.verb; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - object.requestedCancellation = message.requestedCancellation; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - object.apiVersion = message.apiVersion; return object; }; /** - * Converts this OperationMetadata to JSON. + * Converts this ListHcxActivationKeysResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @instance * @returns {Object.} JSON object */ - OperationMetadata.prototype.toJSON = function toJSON() { + ListHcxActivationKeysResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for ListHcxActivationKeysResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.OperationMetadata + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.OperationMetadata"; - }; - - return OperationMetadata; - })(); - - v1.NodeType = (function() { - - /** - * Properties of a NodeType. - * @memberof google.cloud.vmwareengine.v1 - * @interface INodeType - * @property {string|null} [name] NodeType name - * @property {string|null} [nodeTypeId] NodeType nodeTypeId - * @property {string|null} [displayName] NodeType displayName - * @property {number|null} [virtualCpuCount] NodeType virtualCpuCount - * @property {number|null} [totalCoreCount] NodeType totalCoreCount - * @property {number|null} [memoryGb] NodeType memoryGb - * @property {number|null} [diskSizeGb] NodeType diskSizeGb - * @property {Array.|null} [availableCustomCoreCounts] NodeType availableCustomCoreCounts - */ - - /** - * Constructs a new NodeType. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a NodeType. - * @implements INodeType - * @constructor - * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set - */ - function NodeType(properties) { - this.availableCustomCoreCounts = []; - 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]]; - } - - /** - * NodeType name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.NodeType - * @instance - */ - NodeType.prototype.name = ""; - - /** - * NodeType nodeTypeId. - * @member {string} nodeTypeId - * @memberof google.cloud.vmwareengine.v1.NodeType - * @instance + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - NodeType.prototype.nodeTypeId = ""; + ListHcxActivationKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse"; + }; - /** - * NodeType displayName. - * @member {string} displayName - * @memberof google.cloud.vmwareengine.v1.NodeType - * @instance - */ - NodeType.prototype.displayName = ""; + return ListHcxActivationKeysResponse; + })(); + + v1.ListHcxActivationKeysRequest = (function() { /** - * NodeType virtualCpuCount. - * @member {number} virtualCpuCount - * @memberof google.cloud.vmwareengine.v1.NodeType - * @instance + * Properties of a ListHcxActivationKeysRequest. + * @memberof google.cloud.vmwareengine.v1 + * @interface IListHcxActivationKeysRequest + * @property {string|null} [parent] ListHcxActivationKeysRequest parent + * @property {number|null} [pageSize] ListHcxActivationKeysRequest pageSize + * @property {string|null} [pageToken] ListHcxActivationKeysRequest pageToken */ - NodeType.prototype.virtualCpuCount = 0; /** - * NodeType totalCoreCount. - * @member {number} totalCoreCount - * @memberof google.cloud.vmwareengine.v1.NodeType - * @instance + * Constructs a new ListHcxActivationKeysRequest. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a ListHcxActivationKeysRequest. + * @implements IListHcxActivationKeysRequest + * @constructor + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set */ - NodeType.prototype.totalCoreCount = 0; + function ListHcxActivationKeysRequest(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]]; + } /** - * NodeType memoryGb. - * @member {number} memoryGb - * @memberof google.cloud.vmwareengine.v1.NodeType + * ListHcxActivationKeysRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @instance */ - NodeType.prototype.memoryGb = 0; + ListHcxActivationKeysRequest.prototype.parent = ""; /** - * NodeType diskSizeGb. - * @member {number} diskSizeGb - * @memberof google.cloud.vmwareengine.v1.NodeType + * ListHcxActivationKeysRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @instance */ - NodeType.prototype.diskSizeGb = 0; + ListHcxActivationKeysRequest.prototype.pageSize = 0; /** - * NodeType availableCustomCoreCounts. - * @member {Array.} availableCustomCoreCounts - * @memberof google.cloud.vmwareengine.v1.NodeType + * ListHcxActivationKeysRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @instance */ - NodeType.prototype.availableCustomCoreCounts = $util.emptyArray; + ListHcxActivationKeysRequest.prototype.pageToken = ""; /** - * Creates a new NodeType instance using the specified properties. + * Creates a new ListHcxActivationKeysRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static - * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType instance + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest instance */ - NodeType.create = function create(properties) { - return new NodeType(properties); + ListHcxActivationKeysRequest.create = function create(properties) { + return new ListHcxActivationKeysRequest(properties); }; /** - * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static - * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeType.encode = function encode(message, writer) { + ListHcxActivationKeysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.nodeTypeId != null && Object.hasOwnProperty.call(message, "nodeTypeId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nodeTypeId); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.virtualCpuCount != null && Object.hasOwnProperty.call(message, "virtualCpuCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.virtualCpuCount); - if (message.totalCoreCount != null && Object.hasOwnProperty.call(message, "totalCoreCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.totalCoreCount); - if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.memoryGb); - if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.diskSizeGb); - if (message.availableCustomCoreCounts != null && message.availableCustomCoreCounts.length) { - writer.uint32(/* id 11, wireType 2 =*/90).fork(); - for (var i = 0; i < message.availableCustomCoreCounts.length; ++i) - writer.int32(message.availableCustomCoreCounts[i]); - writer.ldelim(); - } + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. + * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static - * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeType.encodeDelimited = function encodeDelimited(message, writer) { + ListHcxActivationKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeType message from the specified reader or buffer. + * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeType.decode = function decode(reader, length) { + ListHcxActivationKeysRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NodeType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.nodeTypeId = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.displayName = reader.string(); - break; - } - case 4: { - message.virtualCpuCount = reader.int32(); - break; - } - case 5: { - message.totalCoreCount = reader.int32(); - break; - } - case 7: { - message.memoryGb = reader.int32(); - break; - } - case 8: { - message.diskSizeGb = reader.int32(); - break; - } - case 11: { - if (!(message.availableCustomCoreCounts && message.availableCustomCoreCounts.length)) - message.availableCustomCoreCounts = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.availableCustomCoreCounts.push(reader.int32()); - } else - message.availableCustomCoreCounts.push(reader.int32()); + message.pageToken = reader.string(); break; } default: @@ -7829,195 +7486,139 @@ }; /** - * Decodes a NodeType message from the specified reader or buffer, length delimited. + * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeType.decodeDelimited = function decodeDelimited(reader) { + ListHcxActivationKeysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeType message. + * Verifies a ListHcxActivationKeysRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeType.verify = function verify(message) { + ListHcxActivationKeysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) - if (!$util.isString(message.nodeTypeId)) - return "nodeTypeId: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount")) - if (!$util.isInteger(message.virtualCpuCount)) - return "virtualCpuCount: integer expected"; - if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount")) - if (!$util.isInteger(message.totalCoreCount)) - return "totalCoreCount: integer expected"; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - if (!$util.isInteger(message.memoryGb)) - return "memoryGb: integer expected"; - if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) - if (!$util.isInteger(message.diskSizeGb)) - return "diskSizeGb: integer expected"; - if (message.availableCustomCoreCounts != null && message.hasOwnProperty("availableCustomCoreCounts")) { - if (!Array.isArray(message.availableCustomCoreCounts)) - return "availableCustomCoreCounts: array expected"; - for (var i = 0; i < message.availableCustomCoreCounts.length; ++i) - if (!$util.isInteger(message.availableCustomCoreCounts[i])) - return "availableCustomCoreCounts: integer[] expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a NodeType message from a plain object. Also converts values to their respective internal types. + * Creates a ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType + * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest */ - NodeType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NodeType) + ListHcxActivationKeysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.NodeType(); - if (object.name != null) - message.name = String(object.name); - if (object.nodeTypeId != null) - message.nodeTypeId = String(object.nodeTypeId); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.virtualCpuCount != null) - message.virtualCpuCount = object.virtualCpuCount | 0; - if (object.totalCoreCount != null) - message.totalCoreCount = object.totalCoreCount | 0; - if (object.memoryGb != null) - message.memoryGb = object.memoryGb | 0; - if (object.diskSizeGb != null) - message.diskSizeGb = object.diskSizeGb | 0; - if (object.availableCustomCoreCounts) { - if (!Array.isArray(object.availableCustomCoreCounts)) - throw TypeError(".google.cloud.vmwareengine.v1.NodeType.availableCustomCoreCounts: array expected"); - message.availableCustomCoreCounts = []; - for (var i = 0; i < object.availableCustomCoreCounts.length; ++i) - message.availableCustomCoreCounts[i] = object.availableCustomCoreCounts[i] | 0; - } + var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a NodeType message. Also converts values to other types if specified. + * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static - * @param {google.cloud.vmwareengine.v1.NodeType} message NodeType + * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} message ListHcxActivationKeysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeType.toObject = function toObject(message, options) { + ListHcxActivationKeysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.availableCustomCoreCounts = []; if (options.defaults) { - object.name = ""; - object.nodeTypeId = ""; - object.displayName = ""; - object.virtualCpuCount = 0; - object.totalCoreCount = 0; - object.memoryGb = 0; - object.diskSizeGb = 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) - object.nodeTypeId = message.nodeTypeId; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount")) - object.virtualCpuCount = message.virtualCpuCount; - if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount")) - object.totalCoreCount = message.totalCoreCount; - if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) - object.memoryGb = message.memoryGb; - if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) - object.diskSizeGb = message.diskSizeGb; - if (message.availableCustomCoreCounts && message.availableCustomCoreCounts.length) { - object.availableCustomCoreCounts = []; - for (var j = 0; j < message.availableCustomCoreCounts.length; ++j) - object.availableCustomCoreCounts[j] = message.availableCustomCoreCounts[j]; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this NodeType to JSON. + * Converts this ListHcxActivationKeysRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @instance * @returns {Object.} JSON object */ - NodeType.prototype.toJSON = function toJSON() { + ListHcxActivationKeysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NodeType + * Gets the default type url for ListHcxActivationKeysRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NodeType + * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NodeType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListHcxActivationKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeType"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest"; }; - return NodeType; + return ListHcxActivationKeysRequest; })(); - v1.ListNodeTypesRequest = (function() { + v1.GetHcxActivationKeyRequest = (function() { /** - * Properties of a ListNodeTypesRequest. + * Properties of a GetHcxActivationKeyRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListNodeTypesRequest - * @property {string|null} [parent] ListNodeTypesRequest parent - * @property {number|null} [pageSize] ListNodeTypesRequest pageSize - * @property {string|null} [pageToken] ListNodeTypesRequest pageToken - * @property {string|null} [filter] ListNodeTypesRequest filter + * @interface IGetHcxActivationKeyRequest + * @property {string|null} [name] GetHcxActivationKeyRequest name */ /** - * Constructs a new ListNodeTypesRequest. + * Constructs a new GetHcxActivationKeyRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListNodeTypesRequest. - * @implements IListNodeTypesRequest + * @classdesc Represents a GetHcxActivationKeyRequest. + * @implements IGetHcxActivationKeyRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set */ - function ListNodeTypesRequest(properties) { + function GetHcxActivationKeyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8025,117 +7626,75 @@ } /** - * ListNodeTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest - * @instance - */ - ListNodeTypesRequest.prototype.parent = ""; - - /** - * ListNodeTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest - * @instance - */ - ListNodeTypesRequest.prototype.pageSize = 0; - - /** - * ListNodeTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest - * @instance - */ - ListNodeTypesRequest.prototype.pageToken = ""; - - /** - * ListNodeTypesRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * GetHcxActivationKeyRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @instance */ - ListNodeTypesRequest.prototype.filter = ""; + GetHcxActivationKeyRequest.prototype.name = ""; /** - * Creates a new ListNodeTypesRequest instance using the specified properties. + * Creates a new GetHcxActivationKeyRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest instance + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest instance */ - ListNodeTypesRequest.create = function create(properties) { - return new ListNodeTypesRequest(properties); + GetHcxActivationKeyRequest.create = function create(properties) { + return new GetHcxActivationKeyRequest(properties); }; /** - * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. + * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodeTypesRequest.encode = function encode(message, writer) { + GetHcxActivationKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages. + * Encodes the specified GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodeTypesRequest message from the specified reader or buffer. + * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest + * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodeTypesRequest.decode = function decode(reader, length) { + GetHcxActivationKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + message.name = reader.string(); break; } default: @@ -8147,151 +7706,125 @@ }; /** - * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest + * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { + GetHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodeTypesRequest message. + * Verifies a GetHcxActivationKeyRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodeTypesRequest.verify = function verify(message) { + GetHcxActivationKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest + * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest */ - ListNodeTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest) + GetHcxActivationKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.ListNodeTypesRequest} message ListNodeTypesRequest + * @param {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} message GetHcxActivationKeyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNodeTypesRequest.toObject = function toObject(message, options) { + GetHcxActivationKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListNodeTypesRequest to JSON. + * Converts this GetHcxActivationKeyRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @instance * @returns {Object.} JSON object */ - ListNodeTypesRequest.prototype.toJSON = function toJSON() { + GetHcxActivationKeyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNodeTypesRequest + * Gets the default type url for GetHcxActivationKeyRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest + * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest"; }; - return ListNodeTypesRequest; + return GetHcxActivationKeyRequest; })(); - v1.ListNodeTypesResponse = (function() { + v1.CreateHcxActivationKeyRequest = (function() { /** - * Properties of a ListNodeTypesResponse. + * Properties of a CreateHcxActivationKeyRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListNodeTypesResponse - * @property {Array.|null} [nodeTypes] ListNodeTypesResponse nodeTypes - * @property {string|null} [nextPageToken] ListNodeTypesResponse nextPageToken - * @property {Array.|null} [unreachable] ListNodeTypesResponse unreachable + * @interface ICreateHcxActivationKeyRequest + * @property {string|null} [parent] CreateHcxActivationKeyRequest parent + * @property {google.cloud.vmwareengine.v1.IHcxActivationKey|null} [hcxActivationKey] CreateHcxActivationKeyRequest hcxActivationKey + * @property {string|null} [hcxActivationKeyId] CreateHcxActivationKeyRequest hcxActivationKeyId + * @property {string|null} [requestId] CreateHcxActivationKeyRequest requestId */ /** - * Constructs a new ListNodeTypesResponse. + * Constructs a new CreateHcxActivationKeyRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListNodeTypesResponse. - * @implements IListNodeTypesResponse + * @classdesc Represents a CreateHcxActivationKeyRequest. + * @implements ICreateHcxActivationKeyRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set */ - function ListNodeTypesResponse(properties) { - this.nodeTypes = []; - this.unreachable = []; + function CreateHcxActivationKeyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8299,109 +7832,117 @@ } /** - * ListNodeTypesResponse nodeTypes. - * @member {Array.} nodeTypes - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * CreateHcxActivationKeyRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @instance */ - ListNodeTypesResponse.prototype.nodeTypes = $util.emptyArray; + CreateHcxActivationKeyRequest.prototype.parent = ""; /** - * ListNodeTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * CreateHcxActivationKeyRequest hcxActivationKey. + * @member {google.cloud.vmwareengine.v1.IHcxActivationKey|null|undefined} hcxActivationKey + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @instance */ - ListNodeTypesResponse.prototype.nextPageToken = ""; + CreateHcxActivationKeyRequest.prototype.hcxActivationKey = null; /** - * ListNodeTypesResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * CreateHcxActivationKeyRequest hcxActivationKeyId. + * @member {string} hcxActivationKeyId + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @instance */ - ListNodeTypesResponse.prototype.unreachable = $util.emptyArray; + CreateHcxActivationKeyRequest.prototype.hcxActivationKeyId = ""; /** - * Creates a new ListNodeTypesResponse instance using the specified properties. + * CreateHcxActivationKeyRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @instance + */ + CreateHcxActivationKeyRequest.prototype.requestId = ""; + + /** + * Creates a new CreateHcxActivationKeyRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse instance + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest instance */ - ListNodeTypesResponse.create = function create(properties) { - return new ListNodeTypesResponse(properties); + CreateHcxActivationKeyRequest.create = function create(properties) { + return new CreateHcxActivationKeyRequest(properties); }; /** - * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. + * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodeTypesResponse.encode = function encode(message, writer) { + CreateHcxActivationKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nodeTypes != null && message.nodeTypes.length) - for (var i = 0; i < message.nodeTypes.length; ++i) - $root.google.cloud.vmwareengine.v1.NodeType.encode(message.nodeTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.hcxActivationKey != null && Object.hasOwnProperty.call(message, "hcxActivationKey")) + $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.hcxActivationKeyId != null && Object.hasOwnProperty.call(message, "hcxActivationKeyId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.hcxActivationKeyId); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages. + * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static - * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodeTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodeTypesResponse message from the specified reader or buffer. + * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse + * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodeTypesResponse.decode = function decode(reader, length) { + CreateHcxActivationKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.nodeTypes && message.nodeTypes.length)) - message.nodeTypes = []; - message.nodeTypes.push($root.google.cloud.vmwareengine.v1.NodeType.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.hcxActivationKeyId = reader.string(); + break; + } + case 4: { + message.requestId = reader.string(); break; } default: @@ -8413,169 +7954,156 @@ }; /** - * Decodes a ListNodeTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse + * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodeTypesResponse.decodeDelimited = function decodeDelimited(reader) { + CreateHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodeTypesResponse message. + * Verifies a CreateHcxActivationKeyRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodeTypesResponse.verify = function verify(message) { + CreateHcxActivationKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nodeTypes != null && message.hasOwnProperty("nodeTypes")) { - if (!Array.isArray(message.nodeTypes)) - return "nodeTypes: array expected"; - for (var i = 0; i < message.nodeTypes.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.NodeType.verify(message.nodeTypes[i]); - if (error) - return "nodeTypes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey")) { + var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKey); + if (error) + return "hcxActivationKey." + error; } + if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId")) + if (!$util.isString(message.hcxActivationKeyId)) + return "hcxActivationKeyId: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse + * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest */ - ListNodeTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse) + CreateHcxActivationKeyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse(); - if (object.nodeTypes) { - if (!Array.isArray(object.nodeTypes)) - throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: array expected"); - message.nodeTypes = []; - for (var i = 0; i < object.nodeTypes.length; ++i) { - if (typeof object.nodeTypes[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: object expected"); - message.nodeTypes[i] = $root.google.cloud.vmwareengine.v1.NodeType.fromObject(object.nodeTypes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + var message = new $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.hcxActivationKey != null) { + if (typeof object.hcxActivationKey !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.hcxActivationKey: object expected"); + message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKey); } + if (object.hcxActivationKeyId != null) + message.hcxActivationKeyId = String(object.hcxActivationKeyId); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ListNodeTypesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse - * @static - * @param {google.cloud.vmwareengine.v1.ListNodeTypesResponse} message ListNodeTypesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListNodeTypesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.nodeTypes = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.nodeTypes && message.nodeTypes.length) { - object.nodeTypes = []; - for (var j = 0; j < message.nodeTypes.length; ++j) - object.nodeTypes[j] = $root.google.cloud.vmwareengine.v1.NodeType.toObject(message.nodeTypes[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @static + * @param {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateHcxActivationKeyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.hcxActivationKey = null; + object.hcxActivationKeyId = ""; + object.requestId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey")) + object.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKey, options); + if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId")) + object.hcxActivationKeyId = message.hcxActivationKeyId; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ListNodeTypesResponse to JSON. + * Converts this CreateHcxActivationKeyRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @instance * @returns {Object.} JSON object */ - ListNodeTypesResponse.prototype.toJSON = function toJSON() { + CreateHcxActivationKeyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNodeTypesResponse + * Gets the default type url for CreateHcxActivationKeyRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse + * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNodeTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest"; }; - return ListNodeTypesResponse; + return CreateHcxActivationKeyRequest; })(); - v1.GetNodeTypeRequest = (function() { + v1.ListNetworkPoliciesRequest = (function() { /** - * Properties of a GetNodeTypeRequest. + * Properties of a ListNetworkPoliciesRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetNodeTypeRequest - * @property {string|null} [name] GetNodeTypeRequest name + * @interface IListNetworkPoliciesRequest + * @property {string|null} [parent] ListNetworkPoliciesRequest parent + * @property {number|null} [pageSize] ListNetworkPoliciesRequest pageSize + * @property {string|null} [pageToken] ListNetworkPoliciesRequest pageToken + * @property {string|null} [filter] ListNetworkPoliciesRequest filter + * @property {string|null} [orderBy] ListNetworkPoliciesRequest orderBy */ /** - * Constructs a new GetNodeTypeRequest. + * Constructs a new ListNetworkPoliciesRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetNodeTypeRequest. - * @implements IGetNodeTypeRequest + * @classdesc Represents a ListNetworkPoliciesRequest. + * @implements IListNetworkPoliciesRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest=} [properties] Properties to set */ - function GetNodeTypeRequest(properties) { + function ListNetworkPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8583,75 +8111,131 @@ } /** - * GetNodeTypeRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * ListNetworkPoliciesRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @instance */ - GetNodeTypeRequest.prototype.name = ""; + ListNetworkPoliciesRequest.prototype.parent = ""; /** - * Creates a new GetNodeTypeRequest instance using the specified properties. + * ListNetworkPoliciesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @instance + */ + ListNetworkPoliciesRequest.prototype.pageSize = 0; + + /** + * ListNetworkPoliciesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @instance + */ + ListNetworkPoliciesRequest.prototype.pageToken = ""; + + /** + * ListNetworkPoliciesRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @instance + */ + ListNetworkPoliciesRequest.prototype.filter = ""; + + /** + * ListNetworkPoliciesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + * @instance + */ + ListNetworkPoliciesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListNetworkPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest instance + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest instance */ - GetNodeTypeRequest.create = function create(properties) { - return new GetNodeTypeRequest(properties); + ListNetworkPoliciesRequest.create = function create(properties) { + return new ListNetworkPoliciesRequest(properties); }; /** - * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. + * Encodes the specified ListNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} message ListNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNodeTypeRequest.encode = function encode(message, writer) { + ListNetworkPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages. + * Encodes the specified ListNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} message ListNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNodeTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNodeTypeRequest message from the specified reader or buffer. + * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodeTypeRequest.decode = function decode(reader, length) { + ListNetworkPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -8663,123 +8247,159 @@ }; /** - * Decodes a GetNodeTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodeTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ListNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNodeTypeRequest message. + * Verifies a ListNetworkPoliciesRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNodeTypeRequest.verify = function verify(message) { + ListNetworkPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest */ - GetNodeTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest) + ListNetworkPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNetworkPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static - * @param {google.cloud.vmwareengine.v1.GetNodeTypeRequest} message GetNodeTypeRequest + * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} message ListNetworkPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNodeTypeRequest.toObject = function toObject(message, options) { + ListNetworkPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this GetNodeTypeRequest to JSON. + * Converts this ListNetworkPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @instance * @returns {Object.} JSON object */ - GetNodeTypeRequest.prototype.toJSON = function toJSON() { + ListNetworkPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetNodeTypeRequest + * Gets the default type url for ListNetworkPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetNodeTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNodeTypeRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest"; }; - return GetNodeTypeRequest; + return ListNetworkPoliciesRequest; })(); - v1.Credentials = (function() { + v1.ListNetworkPoliciesResponse = (function() { /** - * Properties of a Credentials. + * Properties of a ListNetworkPoliciesResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface ICredentials - * @property {string|null} [username] Credentials username - * @property {string|null} [password] Credentials password + * @interface IListNetworkPoliciesResponse + * @property {Array.|null} [networkPolicies] ListNetworkPoliciesResponse networkPolicies + * @property {string|null} [nextPageToken] ListNetworkPoliciesResponse nextPageToken + * @property {Array.|null} [unreachable] ListNetworkPoliciesResponse unreachable */ /** - * Constructs a new Credentials. + * Constructs a new ListNetworkPoliciesResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Credentials. - * @implements ICredentials + * @classdesc Represents a ListNetworkPoliciesResponse. + * @implements IListNetworkPoliciesResponse * @constructor - * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse=} [properties] Properties to set */ - function Credentials(properties) { + function ListNetworkPoliciesResponse(properties) { + this.networkPolicies = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8787,89 +8407,109 @@ } /** - * Credentials username. - * @member {string} username - * @memberof google.cloud.vmwareengine.v1.Credentials + * ListNetworkPoliciesResponse networkPolicies. + * @member {Array.} networkPolicies + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @instance */ - Credentials.prototype.username = ""; + ListNetworkPoliciesResponse.prototype.networkPolicies = $util.emptyArray; /** - * Credentials password. - * @member {string} password - * @memberof google.cloud.vmwareengine.v1.Credentials + * ListNetworkPoliciesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @instance */ - Credentials.prototype.password = ""; + ListNetworkPoliciesResponse.prototype.nextPageToken = ""; /** - * Creates a new Credentials instance using the specified properties. + * ListNetworkPoliciesResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @instance + */ + ListNetworkPoliciesResponse.prototype.unreachable = $util.emptyArray; + + /** + * Creates a new ListNetworkPoliciesResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static - * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials instance + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse instance */ - Credentials.create = function create(properties) { - return new Credentials(properties); + ListNetworkPoliciesResponse.create = function create(properties) { + return new ListNetworkPoliciesResponse(properties); }; /** - * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * Encodes the specified ListNetworkPoliciesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static - * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse} message ListNetworkPoliciesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Credentials.encode = function encode(message, writer) { + ListNetworkPoliciesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); + if (message.networkPolicies != null && message.networkPolicies.length) + for (var i = 0; i < message.networkPolicies.length; ++i) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicies[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. + * Encodes the specified ListNetworkPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static - * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse} message ListNetworkPoliciesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Credentials.encodeDelimited = function encodeDelimited(message, writer) { + ListNetworkPoliciesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Credentials message from the specified reader or buffer. + * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Credentials.decode = function decode(reader, length) { + ListNetworkPoliciesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Credentials(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.username = reader.string(); + if (!(message.networkPolicies && message.networkPolicies.length)) + message.networkPolicies = []; + message.networkPolicies.push($root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32())); break; } case 2: { - message.password = reader.string(); + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -8881,131 +8521,169 @@ }; /** - * Decodes a Credentials message from the specified reader or buffer, length delimited. + * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Credentials.decodeDelimited = function decodeDelimited(reader) { + ListNetworkPoliciesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Credentials message. + * Verifies a ListNetworkPoliciesResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Credentials.verify = function verify(message) { + ListNetworkPoliciesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; + if (message.networkPolicies != null && message.hasOwnProperty("networkPolicies")) { + if (!Array.isArray(message.networkPolicies)) + return "networkPolicies: array expected"; + for (var i = 0; i < message.networkPolicies.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicies[i]); + if (error) + return "networkPolicies." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a Credentials message from a plain object. Also converts values to their respective internal types. + * Creates a ListNetworkPoliciesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials + * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse */ - Credentials.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Credentials) + ListNetworkPoliciesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.Credentials(); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); + var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(); + if (object.networkPolicies) { + if (!Array.isArray(object.networkPolicies)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.networkPolicies: array expected"); + message.networkPolicies = []; + for (var i = 0; i < object.networkPolicies.length; ++i) { + if (typeof object.networkPolicies[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.networkPolicies: object expected"); + message.networkPolicies[i] = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicies[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a Credentials message. Also converts values to other types if specified. + * Creates a plain object from a ListNetworkPoliciesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static - * @param {google.cloud.vmwareengine.v1.Credentials} message Credentials + * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} message ListNetworkPoliciesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Credentials.toObject = function toObject(message, options) { + ListNetworkPoliciesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.username = ""; - object.password = ""; + if (options.arrays || options.defaults) { + object.networkPolicies = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.networkPolicies && message.networkPolicies.length) { + object.networkPolicies = []; + for (var j = 0; j < message.networkPolicies.length; ++j) + object.networkPolicies[j] = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicies[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; return object; }; /** - * Converts this Credentials to JSON. + * Converts this ListNetworkPoliciesResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @instance * @returns {Object.} JSON object */ - Credentials.prototype.toJSON = function toJSON() { + ListNetworkPoliciesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Credentials + * Gets the default type url for ListNetworkPoliciesResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Credentials + * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Credentials.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNetworkPoliciesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Credentials"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse"; }; - return Credentials; + return ListNetworkPoliciesResponse; })(); - v1.ShowNsxCredentialsRequest = (function() { + v1.GetNetworkPolicyRequest = (function() { /** - * Properties of a ShowNsxCredentialsRequest. + * Properties of a GetNetworkPolicyRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IShowNsxCredentialsRequest - * @property {string|null} [privateCloud] ShowNsxCredentialsRequest privateCloud + * @interface IGetNetworkPolicyRequest + * @property {string|null} [name] GetNetworkPolicyRequest name */ /** - * Constructs a new ShowNsxCredentialsRequest. + * Constructs a new GetNetworkPolicyRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ShowNsxCredentialsRequest. - * @implements IShowNsxCredentialsRequest + * @classdesc Represents a GetNetworkPolicyRequest. + * @implements IGetNetworkPolicyRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest=} [properties] Properties to set */ - function ShowNsxCredentialsRequest(properties) { + function GetNetworkPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9013,75 +8691,75 @@ } /** - * ShowNsxCredentialsRequest privateCloud. - * @member {string} privateCloud - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * GetNetworkPolicyRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @instance */ - ShowNsxCredentialsRequest.prototype.privateCloud = ""; + GetNetworkPolicyRequest.prototype.name = ""; /** - * Creates a new ShowNsxCredentialsRequest instance using the specified properties. + * Creates a new GetNetworkPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest instance + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest instance */ - ShowNsxCredentialsRequest.create = function create(properties) { - return new ShowNsxCredentialsRequest(properties); + GetNetworkPolicyRequest.create = function create(properties) { + return new GetNetworkPolicyRequest(properties); }; /** - * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. + * Encodes the specified GetNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} message GetNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShowNsxCredentialsRequest.encode = function encode(message, writer) { + GetNetworkPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages. + * Encodes the specified GetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} message GetNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShowNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer. + * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShowNsxCredentialsRequest.decode = function decode(reader, length) { + GetNetworkPolicyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateCloud = reader.string(); + message.name = reader.string(); break; } default: @@ -9093,122 +8771,124 @@ }; /** - * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShowNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { + GetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShowNsxCredentialsRequest message. + * Verifies a GetNetworkPolicyRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShowNsxCredentialsRequest.verify = function verify(message) { + GetNetworkPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - if (!$util.isString(message.privateCloud)) - return "privateCloud: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest */ - ShowNsxCredentialsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) + GetNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(); - if (object.privateCloud != null) - message.privateCloud = String(object.privateCloud); + var message = new $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNetworkPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} message ShowNsxCredentialsRequest + * @param {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} message GetNetworkPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShowNsxCredentialsRequest.toObject = function toObject(message, options) { + GetNetworkPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.privateCloud = ""; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = message.privateCloud; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ShowNsxCredentialsRequest to JSON. + * Converts this GetNetworkPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @instance * @returns {Object.} JSON object */ - ShowNsxCredentialsRequest.prototype.toJSON = function toJSON() { + GetNetworkPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShowNsxCredentialsRequest + * Gets the default type url for GetNetworkPolicyRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShowNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNetworkPolicyRequest"; }; - return ShowNsxCredentialsRequest; + return GetNetworkPolicyRequest; })(); - v1.ShowVcenterCredentialsRequest = (function() { + v1.UpdateNetworkPolicyRequest = (function() { /** - * Properties of a ShowVcenterCredentialsRequest. + * Properties of an UpdateNetworkPolicyRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IShowVcenterCredentialsRequest - * @property {string|null} [privateCloud] ShowVcenterCredentialsRequest privateCloud + * @interface IUpdateNetworkPolicyRequest + * @property {google.cloud.vmwareengine.v1.INetworkPolicy|null} [networkPolicy] UpdateNetworkPolicyRequest networkPolicy + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateNetworkPolicyRequest updateMask + * @property {string|null} [requestId] UpdateNetworkPolicyRequest requestId */ /** - * Constructs a new ShowVcenterCredentialsRequest. + * Constructs a new UpdateNetworkPolicyRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ShowVcenterCredentialsRequest. - * @implements IShowVcenterCredentialsRequest + * @classdesc Represents an UpdateNetworkPolicyRequest. + * @implements IUpdateNetworkPolicyRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest=} [properties] Properties to set */ - function ShowVcenterCredentialsRequest(properties) { + function UpdateNetworkPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9216,75 +8896,103 @@ } /** - * ShowVcenterCredentialsRequest privateCloud. - * @member {string} privateCloud - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * UpdateNetworkPolicyRequest networkPolicy. + * @member {google.cloud.vmwareengine.v1.INetworkPolicy|null|undefined} networkPolicy + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @instance */ - ShowVcenterCredentialsRequest.prototype.privateCloud = ""; + UpdateNetworkPolicyRequest.prototype.networkPolicy = null; /** - * Creates a new ShowVcenterCredentialsRequest instance using the specified properties. + * UpdateNetworkPolicyRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @instance + */ + UpdateNetworkPolicyRequest.prototype.updateMask = null; + + /** + * UpdateNetworkPolicyRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @instance + */ + UpdateNetworkPolicyRequest.prototype.requestId = ""; + + /** + * Creates a new UpdateNetworkPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest instance + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest instance */ - ShowVcenterCredentialsRequest.create = function create(properties) { - return new ShowVcenterCredentialsRequest(properties); + UpdateNetworkPolicyRequest.create = function create(properties) { + return new UpdateNetworkPolicyRequest(properties); }; /** - * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. + * Encodes the specified UpdateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShowVcenterCredentialsRequest.encode = function encode(message, writer) { + UpdateNetworkPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages. + * Encodes the specified UpdateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShowVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer. + * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShowVcenterCredentialsRequest.decode = function decode(reader, length) { + UpdateNetworkPolicyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateCloud = reader.string(); + message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); break; } default: @@ -9296,123 +9004,152 @@ }; /** - * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShowVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShowVcenterCredentialsRequest message. + * Verifies an UpdateNetworkPolicyRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShowVcenterCredentialsRequest.verify = function verify(message) { + UpdateNetworkPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - if (!$util.isString(message.privateCloud)) - return "privateCloud: string expected"; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicy); + if (error) + return "networkPolicy." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest */ - ShowVcenterCredentialsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) + UpdateNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(); - if (object.privateCloud != null) - message.privateCloud = String(object.privateCloud); + var message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(); + if (object.networkPolicy != null) { + if (typeof object.networkPolicy !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.networkPolicy: object expected"); + message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicy); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateNetworkPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest + * @param {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShowVcenterCredentialsRequest.toObject = function toObject(message, options) { + UpdateNetworkPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.privateCloud = ""; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = message.privateCloud; + if (options.defaults) { + object.networkPolicy = null; + object.updateMask = null; + object.requestId = ""; + } + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicy, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ShowVcenterCredentialsRequest to JSON. + * Converts this UpdateNetworkPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @instance * @returns {Object.} JSON object */ - ShowVcenterCredentialsRequest.prototype.toJSON = function toJSON() { + UpdateNetworkPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ShowVcenterCredentialsRequest + * Gets the default type url for UpdateNetworkPolicyRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ShowVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest"; }; - return ShowVcenterCredentialsRequest; + return UpdateNetworkPolicyRequest; })(); - v1.ResetNsxCredentialsRequest = (function() { + v1.CreateNetworkPolicyRequest = (function() { /** - * Properties of a ResetNsxCredentialsRequest. + * Properties of a CreateNetworkPolicyRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IResetNsxCredentialsRequest - * @property {string|null} [privateCloud] ResetNsxCredentialsRequest privateCloud - * @property {string|null} [requestId] ResetNsxCredentialsRequest requestId + * @interface ICreateNetworkPolicyRequest + * @property {string|null} [parent] CreateNetworkPolicyRequest parent + * @property {string|null} [networkPolicyId] CreateNetworkPolicyRequest networkPolicyId + * @property {google.cloud.vmwareengine.v1.INetworkPolicy|null} [networkPolicy] CreateNetworkPolicyRequest networkPolicy + * @property {string|null} [requestId] CreateNetworkPolicyRequest requestId */ /** - * Constructs a new ResetNsxCredentialsRequest. + * Constructs a new CreateNetworkPolicyRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ResetNsxCredentialsRequest. - * @implements IResetNsxCredentialsRequest + * @classdesc Represents a CreateNetworkPolicyRequest. + * @implements ICreateNetworkPolicyRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest=} [properties] Properties to set */ - function ResetNsxCredentialsRequest(properties) { + function CreateNetworkPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9420,88 +9157,116 @@ } /** - * ResetNsxCredentialsRequest privateCloud. - * @member {string} privateCloud - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * CreateNetworkPolicyRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @instance */ - ResetNsxCredentialsRequest.prototype.privateCloud = ""; + CreateNetworkPolicyRequest.prototype.parent = ""; /** - * ResetNsxCredentialsRequest requestId. + * CreateNetworkPolicyRequest networkPolicyId. + * @member {string} networkPolicyId + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @instance + */ + CreateNetworkPolicyRequest.prototype.networkPolicyId = ""; + + /** + * CreateNetworkPolicyRequest networkPolicy. + * @member {google.cloud.vmwareengine.v1.INetworkPolicy|null|undefined} networkPolicy + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @instance + */ + CreateNetworkPolicyRequest.prototype.networkPolicy = null; + + /** + * CreateNetworkPolicyRequest requestId. * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @instance */ - ResetNsxCredentialsRequest.prototype.requestId = ""; + CreateNetworkPolicyRequest.prototype.requestId = ""; /** - * Creates a new ResetNsxCredentialsRequest instance using the specified properties. + * Creates a new CreateNetworkPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest instance + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest instance */ - ResetNsxCredentialsRequest.create = function create(properties) { - return new ResetNsxCredentialsRequest(properties); + CreateNetworkPolicyRequest.create = function create(properties) { + return new CreateNetworkPolicyRequest(properties); }; /** - * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * Encodes the specified CreateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} message CreateNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetNsxCredentialsRequest.encode = function encode(message, writer) { + CreateNetworkPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.networkPolicyId != null && Object.hasOwnProperty.call(message, "networkPolicyId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.networkPolicyId); + if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages. + * Encodes the specified CreateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} message CreateNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer. + * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetNsxCredentialsRequest.decode = function decode(reader, length) { + CreateNetworkPolicyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateCloud = reader.string(); + message.parent = reader.string(); break; } case 2: { + message.networkPolicyId = reader.string(); + break; + } + case 3: { + message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32()); + break; + } + case 4: { message.requestId = reader.string(); break; } @@ -9514,35 +9279,43 @@ }; /** - * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetNsxCredentialsRequest message. + * Verifies a CreateNetworkPolicyRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetNsxCredentialsRequest.verify = function verify(message) { + CreateNetworkPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - if (!$util.isString(message.privateCloud)) - return "privateCloud: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.networkPolicyId != null && message.hasOwnProperty("networkPolicyId")) + if (!$util.isString(message.networkPolicyId)) + return "networkPolicyId: string expected"; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicy); + if (error) + return "networkPolicy." + error; + } if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; @@ -9550,96 +9323,109 @@ }; /** - * Creates a ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest */ - ResetNsxCredentialsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) + CreateNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(); - if (object.privateCloud != null) - message.privateCloud = String(object.privateCloud); + var message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.networkPolicyId != null) + message.networkPolicyId = String(object.networkPolicyId); + if (object.networkPolicy != null) { + if (typeof object.networkPolicy !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.networkPolicy: object expected"); + message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicy); + } if (object.requestId != null) message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateNetworkPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} message ResetNsxCredentialsRequest + * @param {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} message CreateNetworkPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetNsxCredentialsRequest.toObject = function toObject(message, options) { + CreateNetworkPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.privateCloud = ""; + object.parent = ""; + object.networkPolicyId = ""; + object.networkPolicy = null; object.requestId = ""; } - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = message.privateCloud; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.networkPolicyId != null && message.hasOwnProperty("networkPolicyId")) + object.networkPolicyId = message.networkPolicyId; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicy, options); if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; return object; }; /** - * Converts this ResetNsxCredentialsRequest to JSON. + * Converts this CreateNetworkPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @instance * @returns {Object.} JSON object */ - ResetNsxCredentialsRequest.prototype.toJSON = function toJSON() { + CreateNetworkPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetNsxCredentialsRequest + * Gets the default type url for CreateNetworkPolicyRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest"; }; - return ResetNsxCredentialsRequest; + return CreateNetworkPolicyRequest; })(); - v1.ResetVcenterCredentialsRequest = (function() { + v1.DeleteNetworkPolicyRequest = (function() { /** - * Properties of a ResetVcenterCredentialsRequest. + * Properties of a DeleteNetworkPolicyRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IResetVcenterCredentialsRequest - * @property {string|null} [privateCloud] ResetVcenterCredentialsRequest privateCloud - * @property {string|null} [requestId] ResetVcenterCredentialsRequest requestId + * @interface IDeleteNetworkPolicyRequest + * @property {string|null} [name] DeleteNetworkPolicyRequest name + * @property {string|null} [requestId] DeleteNetworkPolicyRequest requestId */ /** - * Constructs a new ResetVcenterCredentialsRequest. + * Constructs a new DeleteNetworkPolicyRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ResetVcenterCredentialsRequest. - * @implements IResetVcenterCredentialsRequest + * @classdesc Represents a DeleteNetworkPolicyRequest. + * @implements IDeleteNetworkPolicyRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest=} [properties] Properties to set */ - function ResetVcenterCredentialsRequest(properties) { + function DeleteNetworkPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9647,85 +9433,85 @@ } /** - * ResetVcenterCredentialsRequest privateCloud. - * @member {string} privateCloud - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * DeleteNetworkPolicyRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @instance */ - ResetVcenterCredentialsRequest.prototype.privateCloud = ""; + DeleteNetworkPolicyRequest.prototype.name = ""; /** - * ResetVcenterCredentialsRequest requestId. + * DeleteNetworkPolicyRequest requestId. * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @instance */ - ResetVcenterCredentialsRequest.prototype.requestId = ""; + DeleteNetworkPolicyRequest.prototype.requestId = ""; /** - * Creates a new ResetVcenterCredentialsRequest instance using the specified properties. + * Creates a new DeleteNetworkPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest instance + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest instance */ - ResetVcenterCredentialsRequest.create = function create(properties) { - return new ResetVcenterCredentialsRequest(properties); + DeleteNetworkPolicyRequest.create = function create(properties) { + return new DeleteNetworkPolicyRequest(properties); }; /** - * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. + * Encodes the specified DeleteNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetVcenterCredentialsRequest.encode = function encode(message, writer) { + DeleteNetworkPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); return writer; }; /** - * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages. + * Encodes the specified DeleteNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResetVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer. + * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetVcenterCredentialsRequest.decode = function decode(reader, length) { + DeleteNetworkPolicyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.privateCloud = reader.string(); + message.name = reader.string(); break; } case 2: { @@ -9741,35 +9527,35 @@ }; /** - * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResetVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResetVcenterCredentialsRequest message. + * Verifies a DeleteNetworkPolicyRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResetVcenterCredentialsRequest.verify = function verify(message) { + DeleteNetworkPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - if (!$util.isString(message.privateCloud)) - return "privateCloud: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; if (message.requestId != null && message.hasOwnProperty("requestId")) if (!$util.isString(message.requestId)) return "requestId: string expected"; @@ -9777,99 +9563,98 @@ }; /** - * Creates a ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest + * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest */ - ResetVcenterCredentialsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) + DeleteNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(); - if (object.privateCloud != null) - message.privateCloud = String(object.privateCloud); + var message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(); + if (object.name != null) + message.name = String(object.name); if (object.requestId != null) message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNetworkPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @static - * @param {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest + * @param {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResetVcenterCredentialsRequest.toObject = function toObject(message, options) { + DeleteNetworkPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.privateCloud = ""; + object.name = ""; object.requestId = ""; } - if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) - object.privateCloud = message.privateCloud; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.requestId != null && message.hasOwnProperty("requestId")) object.requestId = message.requestId; return object; }; /** - * Converts this ResetVcenterCredentialsRequest to JSON. + * Converts this DeleteNetworkPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @instance * @returns {Object.} JSON object */ - ResetVcenterCredentialsRequest.prototype.toJSON = function toJSON() { + DeleteNetworkPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResetVcenterCredentialsRequest + * Gets the default type url for DeleteNetworkPolicyRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResetVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest"; }; - return ResetVcenterCredentialsRequest; + return DeleteNetworkPolicyRequest; })(); - v1.ListHcxActivationKeysResponse = (function() { + v1.CreateVmwareEngineNetworkRequest = (function() { /** - * Properties of a ListHcxActivationKeysResponse. + * Properties of a CreateVmwareEngineNetworkRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListHcxActivationKeysResponse - * @property {Array.|null} [hcxActivationKeys] ListHcxActivationKeysResponse hcxActivationKeys - * @property {string|null} [nextPageToken] ListHcxActivationKeysResponse nextPageToken - * @property {Array.|null} [unreachable] ListHcxActivationKeysResponse unreachable + * @interface ICreateVmwareEngineNetworkRequest + * @property {string|null} [parent] CreateVmwareEngineNetworkRequest parent + * @property {string|null} [vmwareEngineNetworkId] CreateVmwareEngineNetworkRequest vmwareEngineNetworkId + * @property {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null} [vmwareEngineNetwork] CreateVmwareEngineNetworkRequest vmwareEngineNetwork + * @property {string|null} [requestId] CreateVmwareEngineNetworkRequest requestId */ /** - * Constructs a new ListHcxActivationKeysResponse. + * Constructs a new CreateVmwareEngineNetworkRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListHcxActivationKeysResponse. - * @implements IListHcxActivationKeysResponse + * @classdesc Represents a CreateVmwareEngineNetworkRequest. + * @implements ICreateVmwareEngineNetworkRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest=} [properties] Properties to set */ - function ListHcxActivationKeysResponse(properties) { - this.hcxActivationKeys = []; - this.unreachable = []; + function CreateVmwareEngineNetworkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9877,109 +9662,117 @@ } /** - * ListHcxActivationKeysResponse hcxActivationKeys. - * @member {Array.} hcxActivationKeys - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * CreateVmwareEngineNetworkRequest parent. + * @member {string} parent + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @instance */ - ListHcxActivationKeysResponse.prototype.hcxActivationKeys = $util.emptyArray; + CreateVmwareEngineNetworkRequest.prototype.parent = ""; /** - * ListHcxActivationKeysResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * CreateVmwareEngineNetworkRequest vmwareEngineNetworkId. + * @member {string} vmwareEngineNetworkId + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @instance */ - ListHcxActivationKeysResponse.prototype.nextPageToken = ""; + CreateVmwareEngineNetworkRequest.prototype.vmwareEngineNetworkId = ""; /** - * ListHcxActivationKeysResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * CreateVmwareEngineNetworkRequest vmwareEngineNetwork. + * @member {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null|undefined} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @instance */ - ListHcxActivationKeysResponse.prototype.unreachable = $util.emptyArray; + CreateVmwareEngineNetworkRequest.prototype.vmwareEngineNetwork = null; /** - * Creates a new ListHcxActivationKeysResponse instance using the specified properties. + * CreateVmwareEngineNetworkRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @instance + */ + CreateVmwareEngineNetworkRequest.prototype.requestId = ""; + + /** + * Creates a new CreateVmwareEngineNetworkRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse instance + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest instance */ - ListHcxActivationKeysResponse.create = function create(properties) { - return new ListHcxActivationKeysResponse(properties); + CreateVmwareEngineNetworkRequest.create = function create(properties) { + return new CreateVmwareEngineNetworkRequest(properties); }; /** - * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * Encodes the specified CreateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHcxActivationKeysResponse.encode = function encode(message, writer) { + CreateVmwareEngineNetworkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hcxActivationKeys != null && message.hcxActivationKeys.length) - for (var i = 0; i < message.hcxActivationKeys.length; ++i) - $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.vmwareEngineNetworkId != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.vmwareEngineNetworkId); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetwork, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages. + * Encodes the specified CreateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHcxActivationKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer. + * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse + * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHcxActivationKeysResponse.decode = function decode(reader, length) { + CreateVmwareEngineNetworkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.hcxActivationKeys && message.hcxActivationKeys.length)) - message.hcxActivationKeys = []; - message.hcxActivationKeys.push($root.google.cloud.vmwareengine.v1.HcxActivationKey.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.vmwareEngineNetworkId = reader.string(); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); break; } default: @@ -9991,173 +9784,154 @@ }; /** - * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse + * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHcxActivationKeysResponse.decodeDelimited = function decodeDelimited(reader) { + CreateVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHcxActivationKeysResponse message. + * Verifies a CreateVmwareEngineNetworkRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHcxActivationKeysResponse.verify = function verify(message) { + CreateVmwareEngineNetworkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hcxActivationKeys != null && message.hasOwnProperty("hcxActivationKeys")) { - if (!Array.isArray(message.hcxActivationKeys)) - return "hcxActivationKeys: array expected"; - for (var i = 0; i < message.hcxActivationKeys.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKeys[i]); - if (error) - return "hcxActivationKeys." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.vmwareEngineNetworkId != null && message.hasOwnProperty("vmwareEngineNetworkId")) + if (!$util.isString(message.vmwareEngineNetworkId)) + return "vmwareEngineNetworkId: string expected"; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { + var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetwork); + if (error) + return "vmwareEngineNetwork." + error; } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse + * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest */ - ListHcxActivationKeysResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) + CreateVmwareEngineNetworkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(); - if (object.hcxActivationKeys) { - if (!Array.isArray(object.hcxActivationKeys)) - throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: array expected"); - message.hcxActivationKeys = []; - for (var i = 0; i < object.hcxActivationKeys.length; ++i) { - if (typeof object.hcxActivationKeys[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: object expected"); - message.hcxActivationKeys[i] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKeys[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + var message = new $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.vmwareEngineNetworkId != null) + message.vmwareEngineNetworkId = String(object.vmwareEngineNetworkId); + if (object.vmwareEngineNetwork != null) { + if (typeof object.vmwareEngineNetwork !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.vmwareEngineNetwork: object expected"); + message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetwork); } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a ListHcxActivationKeysResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateVmwareEngineNetworkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} message ListHcxActivationKeysResponse + * @param {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHcxActivationKeysResponse.toObject = function toObject(message, options) { + CreateVmwareEngineNetworkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.hcxActivationKeys = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.hcxActivationKeys && message.hcxActivationKeys.length) { - object.hcxActivationKeys = []; - for (var j = 0; j < message.hcxActivationKeys.length; ++j) - object.hcxActivationKeys[j] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKeys[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (options.defaults) { + object.parent = ""; + object.vmwareEngineNetworkId = ""; + object.vmwareEngineNetwork = null; + object.requestId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.vmwareEngineNetworkId != null && message.hasOwnProperty("vmwareEngineNetworkId")) + object.vmwareEngineNetworkId = message.vmwareEngineNetworkId; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + object.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetwork, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this ListHcxActivationKeysResponse to JSON. + * Converts this CreateVmwareEngineNetworkRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @instance * @returns {Object.} JSON object */ - ListHcxActivationKeysResponse.prototype.toJSON = function toJSON() { + CreateVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHcxActivationKeysResponse + * Gets the default type url for CreateVmwareEngineNetworkRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHcxActivationKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest"; }; - return ListHcxActivationKeysResponse; + return CreateVmwareEngineNetworkRequest; })(); - v1.HcxActivationKey = (function() { + v1.UpdateVmwareEngineNetworkRequest = (function() { /** - * Properties of a HcxActivationKey. + * Properties of an UpdateVmwareEngineNetworkRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IHcxActivationKey - * @property {string|null} [name] HcxActivationKey name - * @property {google.protobuf.ITimestamp|null} [createTime] HcxActivationKey createTime - * @property {google.cloud.vmwareengine.v1.HcxActivationKey.State|null} [state] HcxActivationKey state - * @property {string|null} [activationKey] HcxActivationKey activationKey - * @property {string|null} [uid] HcxActivationKey uid + * @interface IUpdateVmwareEngineNetworkRequest + * @property {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null} [vmwareEngineNetwork] UpdateVmwareEngineNetworkRequest vmwareEngineNetwork + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVmwareEngineNetworkRequest updateMask + * @property {string|null} [requestId] UpdateVmwareEngineNetworkRequest requestId */ /** - * Constructs a new HcxActivationKey. + * Constructs a new UpdateVmwareEngineNetworkRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a HcxActivationKey. - * @implements IHcxActivationKey + * @classdesc Represents an UpdateVmwareEngineNetworkRequest. + * @implements IUpdateVmwareEngineNetworkRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest=} [properties] Properties to set */ - function HcxActivationKey(properties) { + function UpdateVmwareEngineNetworkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10165,131 +9939,103 @@ } /** - * HcxActivationKey name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey - * @instance - */ - HcxActivationKey.prototype.name = ""; - - /** - * HcxActivationKey createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey - * @instance - */ - HcxActivationKey.prototype.createTime = null; - - /** - * HcxActivationKey state. - * @member {google.cloud.vmwareengine.v1.HcxActivationKey.State} state - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * UpdateVmwareEngineNetworkRequest vmwareEngineNetwork. + * @member {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null|undefined} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @instance */ - HcxActivationKey.prototype.state = 0; + UpdateVmwareEngineNetworkRequest.prototype.vmwareEngineNetwork = null; /** - * HcxActivationKey activationKey. - * @member {string} activationKey - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * UpdateVmwareEngineNetworkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @instance */ - HcxActivationKey.prototype.activationKey = ""; + UpdateVmwareEngineNetworkRequest.prototype.updateMask = null; /** - * HcxActivationKey uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * UpdateVmwareEngineNetworkRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @instance */ - HcxActivationKey.prototype.uid = ""; + UpdateVmwareEngineNetworkRequest.prototype.requestId = ""; /** - * Creates a new HcxActivationKey instance using the specified properties. + * Creates a new UpdateVmwareEngineNetworkRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey instance + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest instance */ - HcxActivationKey.create = function create(properties) { - return new HcxActivationKey(properties); + UpdateVmwareEngineNetworkRequest.create = function create(properties) { + return new UpdateVmwareEngineNetworkRequest(properties); }; /** - * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * Encodes the specified UpdateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HcxActivationKey.encode = function encode(message, writer) { + UpdateVmwareEngineNetworkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.activationKey != null && Object.hasOwnProperty.call(message, "activationKey")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.activationKey); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.uid); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetwork, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. + * Encodes the specified UpdateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HcxActivationKey.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HcxActivationKey message from the specified reader or buffer. + * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey + * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HcxActivationKey.decode = function decode(reader, length) { + UpdateVmwareEngineNetworkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.HcxActivationKey(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32()); break; } case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 3: { - message.state = reader.int32(); - break; - } - case 4: { - message.activationKey = reader.string(); - break; - } - case 5: { - message.uid = reader.string(); + message.requestId = reader.string(); break; } default: @@ -10301,209 +10047,151 @@ }; /** - * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited. + * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey + * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HcxActivationKey.decodeDelimited = function decodeDelimited(reader) { + UpdateVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HcxActivationKey message. + * Verifies an UpdateVmwareEngineNetworkRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HcxActivationKey.verify = function verify(message) { + UpdateVmwareEngineNetworkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { + var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetwork); if (error) - return "createTime." + error; + return "vmwareEngineNetwork." + error; } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.activationKey != null && message.hasOwnProperty("activationKey")) - if (!$util.isString(message.activationKey)) - return "activationKey: string expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a HcxActivationKey message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey + * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest */ - HcxActivationKey.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.HcxActivationKey) + UpdateVmwareEngineNetworkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.HcxActivationKey(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.HcxActivationKey.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(); + if (object.vmwareEngineNetwork != null) { + if (typeof object.vmwareEngineNetwork !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.vmwareEngineNetwork: object expected"); + message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetwork); } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "AVAILABLE": - case 1: - message.state = 1; - break; - case "CONSUMED": - case 2: - message.state = 2; - break; - case "CREATING": - case 3: - message.state = 3; - break; + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.activationKey != null) - message.activationKey = String(object.activationKey); - if (object.uid != null) - message.uid = String(object.uid); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVmwareEngineNetworkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.HcxActivationKey} message HcxActivationKey + * @param {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HcxActivationKey.toObject = function toObject(message, options) { + UpdateVmwareEngineNetworkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.activationKey = ""; - object.uid = ""; + object.vmwareEngineNetwork = null; + object.updateMask = null; + object.requestId = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.HcxActivationKey.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.HcxActivationKey.State[message.state] : message.state; - if (message.activationKey != null && message.hasOwnProperty("activationKey")) - object.activationKey = message.activationKey; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + object.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetwork, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this HcxActivationKey to JSON. + * Converts this UpdateVmwareEngineNetworkRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @instance * @returns {Object.} JSON object */ - HcxActivationKey.prototype.toJSON = function toJSON() { + UpdateVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HcxActivationKey + * Gets the default type url for UpdateVmwareEngineNetworkRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HcxActivationKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.HcxActivationKey"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.HcxActivationKey.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} AVAILABLE=1 AVAILABLE value - * @property {number} CONSUMED=2 CONSUMED value - * @property {number} CREATING=3 CREATING value - */ - HcxActivationKey.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AVAILABLE"] = 1; - values[valuesById[2] = "CONSUMED"] = 2; - values[valuesById[3] = "CREATING"] = 3; - return values; - })(); - - return HcxActivationKey; + return UpdateVmwareEngineNetworkRequest; })(); - v1.ListHcxActivationKeysRequest = (function() { + v1.DeleteVmwareEngineNetworkRequest = (function() { /** - * Properties of a ListHcxActivationKeysRequest. + * Properties of a DeleteVmwareEngineNetworkRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IListHcxActivationKeysRequest - * @property {string|null} [parent] ListHcxActivationKeysRequest parent - * @property {number|null} [pageSize] ListHcxActivationKeysRequest pageSize - * @property {string|null} [pageToken] ListHcxActivationKeysRequest pageToken + * @interface IDeleteVmwareEngineNetworkRequest + * @property {string|null} [name] DeleteVmwareEngineNetworkRequest name + * @property {string|null} [requestId] DeleteVmwareEngineNetworkRequest requestId + * @property {string|null} [etag] DeleteVmwareEngineNetworkRequest etag */ /** - * Constructs a new ListHcxActivationKeysRequest. + * Constructs a new DeleteVmwareEngineNetworkRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListHcxActivationKeysRequest. - * @implements IListHcxActivationKeysRequest + * @classdesc Represents a DeleteVmwareEngineNetworkRequest. + * @implements IDeleteVmwareEngineNetworkRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest=} [properties] Properties to set */ - function ListHcxActivationKeysRequest(properties) { + function DeleteVmwareEngineNetworkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10511,103 +10199,103 @@ } /** - * ListHcxActivationKeysRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * DeleteVmwareEngineNetworkRequest name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @instance */ - ListHcxActivationKeysRequest.prototype.parent = ""; + DeleteVmwareEngineNetworkRequest.prototype.name = ""; /** - * ListHcxActivationKeysRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * DeleteVmwareEngineNetworkRequest requestId. + * @member {string} requestId + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @instance */ - ListHcxActivationKeysRequest.prototype.pageSize = 0; + DeleteVmwareEngineNetworkRequest.prototype.requestId = ""; /** - * ListHcxActivationKeysRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * DeleteVmwareEngineNetworkRequest etag. + * @member {string} etag + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @instance */ - ListHcxActivationKeysRequest.prototype.pageToken = ""; + DeleteVmwareEngineNetworkRequest.prototype.etag = ""; /** - * Creates a new ListHcxActivationKeysRequest instance using the specified properties. + * Creates a new DeleteVmwareEngineNetworkRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest instance + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest instance */ - ListHcxActivationKeysRequest.create = function create(properties) { - return new ListHcxActivationKeysRequest(properties); + DeleteVmwareEngineNetworkRequest.create = function create(properties) { + return new DeleteVmwareEngineNetworkRequest(properties); }; /** - * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. + * Encodes the specified DeleteVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHcxActivationKeysRequest.encode = function encode(message, writer) { + DeleteVmwareEngineNetworkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); return writer; }; /** - * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages. + * Encodes the specified DeleteVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHcxActivationKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer. + * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest + * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHcxActivationKeysRequest.decode = function decode(reader, length) { + DeleteVmwareEngineNetworkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.requestId = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + message.etag = reader.string(); break; } default: @@ -10619,139 +10307,139 @@ }; /** - * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest + * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHcxActivationKeysRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHcxActivationKeysRequest message. + * Verifies a DeleteVmwareEngineNetworkRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHcxActivationKeysRequest.verify = function verify(message) { + DeleteVmwareEngineNetworkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest + * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest */ - ListHcxActivationKeysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) + DeleteVmwareEngineNetworkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteVmwareEngineNetworkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} message ListHcxActivationKeysRequest + * @param {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHcxActivationKeysRequest.toObject = function toObject(message, options) { + DeleteVmwareEngineNetworkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.requestId = ""; + object.etag = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this ListHcxActivationKeysRequest to JSON. + * Converts this DeleteVmwareEngineNetworkRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @instance * @returns {Object.} JSON object */ - ListHcxActivationKeysRequest.prototype.toJSON = function toJSON() { + DeleteVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHcxActivationKeysRequest + * Gets the default type url for DeleteVmwareEngineNetworkRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHcxActivationKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest"; }; - return ListHcxActivationKeysRequest; + return DeleteVmwareEngineNetworkRequest; })(); - v1.GetHcxActivationKeyRequest = (function() { + v1.GetVmwareEngineNetworkRequest = (function() { /** - * Properties of a GetHcxActivationKeyRequest. + * Properties of a GetVmwareEngineNetworkRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetHcxActivationKeyRequest - * @property {string|null} [name] GetHcxActivationKeyRequest name + * @interface IGetVmwareEngineNetworkRequest + * @property {string|null} [name] GetVmwareEngineNetworkRequest name */ /** - * Constructs a new GetHcxActivationKeyRequest. + * Constructs a new GetVmwareEngineNetworkRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetHcxActivationKeyRequest. - * @implements IGetHcxActivationKeyRequest + * @classdesc Represents a GetVmwareEngineNetworkRequest. + * @implements IGetVmwareEngineNetworkRequest * @constructor - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest=} [properties] Properties to set */ - function GetHcxActivationKeyRequest(properties) { + function GetVmwareEngineNetworkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10759,35 +10447,35 @@ } /** - * GetHcxActivationKeyRequest name. + * GetVmwareEngineNetworkRequest name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @instance */ - GetHcxActivationKeyRequest.prototype.name = ""; + GetVmwareEngineNetworkRequest.prototype.name = ""; /** - * Creates a new GetHcxActivationKeyRequest instance using the specified properties. + * Creates a new GetVmwareEngineNetworkRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest instance + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest instance */ - GetHcxActivationKeyRequest.create = function create(properties) { - return new GetHcxActivationKeyRequest(properties); + GetVmwareEngineNetworkRequest.create = function create(properties) { + return new GetVmwareEngineNetworkRequest(properties); }; /** - * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. + * Encodes the specified GetVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHcxActivationKeyRequest.encode = function encode(message, writer) { + GetVmwareEngineNetworkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -10796,33 +10484,33 @@ }; /** - * Encodes the specified GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages. + * Encodes the specified GetVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer. + * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHcxActivationKeyRequest.decode = function decode(reader, length) { + GetVmwareEngineNetworkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10839,30 +10527,30 @@ }; /** - * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) { + GetVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetHcxActivationKeyRequest message. + * Verifies a GetVmwareEngineNetworkRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetHcxActivationKeyRequest.verify = function verify(message) { + GetVmwareEngineNetworkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -10872,32 +10560,32 @@ }; /** - * Creates a GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest */ - GetHcxActivationKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) + GetVmwareEngineNetworkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(); + var message = new $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVmwareEngineNetworkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @static - * @param {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} message GetHcxActivationKeyRequest + * @param {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetHcxActivationKeyRequest.toObject = function toObject(message, options) { + GetVmwareEngineNetworkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -10909,55 +10597,56 @@ }; /** - * Converts this GetHcxActivationKeyRequest to JSON. + * Converts this GetVmwareEngineNetworkRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @instance * @returns {Object.} JSON object */ - GetHcxActivationKeyRequest.prototype.toJSON = function toJSON() { + GetVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetHcxActivationKeyRequest + * Gets the default type url for GetVmwareEngineNetworkRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest"; }; - return GetHcxActivationKeyRequest; + return GetVmwareEngineNetworkRequest; })(); - v1.CreateHcxActivationKeyRequest = (function() { + v1.ListVmwareEngineNetworksRequest = (function() { /** - * Properties of a CreateHcxActivationKeyRequest. + * Properties of a ListVmwareEngineNetworksRequest. * @memberof google.cloud.vmwareengine.v1 - * @interface ICreateHcxActivationKeyRequest - * @property {string|null} [parent] CreateHcxActivationKeyRequest parent - * @property {google.cloud.vmwareengine.v1.IHcxActivationKey|null} [hcxActivationKey] CreateHcxActivationKeyRequest hcxActivationKey - * @property {string|null} [hcxActivationKeyId] CreateHcxActivationKeyRequest hcxActivationKeyId - * @property {string|null} [requestId] CreateHcxActivationKeyRequest requestId + * @interface IListVmwareEngineNetworksRequest + * @property {string|null} [parent] ListVmwareEngineNetworksRequest parent + * @property {number|null} [pageSize] ListVmwareEngineNetworksRequest pageSize + * @property {string|null} [pageToken] ListVmwareEngineNetworksRequest pageToken + * @property {string|null} [filter] ListVmwareEngineNetworksRequest filter + * @property {string|null} [orderBy] ListVmwareEngineNetworksRequest orderBy */ /** - * Constructs a new CreateHcxActivationKeyRequest. + * Constructs a new ListVmwareEngineNetworksRequest. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreateHcxActivationKeyRequest. - * @implements ICreateHcxActivationKeyRequest + * @classdesc Represents a ListVmwareEngineNetworksRequest. + * @implements IListVmwareEngineNetworksRequest * @constructor - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest=} [properties] Properties to set */ - function CreateHcxActivationKeyRequest(properties) { + function ListVmwareEngineNetworksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10965,100 +10654,110 @@ } /** - * CreateHcxActivationKeyRequest parent. + * ListVmwareEngineNetworksRequest parent. * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @instance */ - CreateHcxActivationKeyRequest.prototype.parent = ""; + ListVmwareEngineNetworksRequest.prototype.parent = ""; /** - * CreateHcxActivationKeyRequest hcxActivationKey. - * @member {google.cloud.vmwareengine.v1.IHcxActivationKey|null|undefined} hcxActivationKey - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * ListVmwareEngineNetworksRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @instance */ - CreateHcxActivationKeyRequest.prototype.hcxActivationKey = null; + ListVmwareEngineNetworksRequest.prototype.pageSize = 0; /** - * CreateHcxActivationKeyRequest hcxActivationKeyId. - * @member {string} hcxActivationKeyId - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * ListVmwareEngineNetworksRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @instance */ - CreateHcxActivationKeyRequest.prototype.hcxActivationKeyId = ""; + ListVmwareEngineNetworksRequest.prototype.pageToken = ""; /** - * CreateHcxActivationKeyRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * ListVmwareEngineNetworksRequest filter. + * @member {string} filter + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @instance */ - CreateHcxActivationKeyRequest.prototype.requestId = ""; + ListVmwareEngineNetworksRequest.prototype.filter = ""; /** - * Creates a new CreateHcxActivationKeyRequest instance using the specified properties. + * ListVmwareEngineNetworksRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @instance + */ + ListVmwareEngineNetworksRequest.prototype.orderBy = ""; + + /** + * Creates a new ListVmwareEngineNetworksRequest instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest instance + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest instance */ - CreateHcxActivationKeyRequest.create = function create(properties) { - return new CreateHcxActivationKeyRequest(properties); + ListVmwareEngineNetworksRequest.create = function create(properties) { + return new ListVmwareEngineNetworksRequest(properties); }; /** - * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. + * Encodes the specified ListVmwareEngineNetworksRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHcxActivationKeyRequest.encode = function encode(message, writer) { + ListVmwareEngineNetworksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.hcxActivationKey != null && Object.hasOwnProperty.call(message, "hcxActivationKey")) - $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.hcxActivationKeyId != null && Object.hasOwnProperty.call(message, "hcxActivationKeyId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.hcxActivationKeyId); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages. + * Encodes the specified ListVmwareEngineNetworksRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @static - * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVmwareEngineNetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer. + * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHcxActivationKeyRequest.decode = function decode(reader, length) { + ListVmwareEngineNetworksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11067,15 +10766,19 @@ break; } case 2: { - message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } case 3: { - message.hcxActivationKeyId = reader.string(); + message.pageToken = reader.string(); break; } case 4: { - message.requestId = reader.string(); + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -11087,155 +10790,159 @@ }; /** - * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) { + ListVmwareEngineNetworksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateHcxActivationKeyRequest message. + * Verifies a ListVmwareEngineNetworksRequest message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateHcxActivationKeyRequest.verify = function verify(message) { + ListVmwareEngineNetworksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey")) { - var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKey); - if (error) - return "hcxActivationKey." + error; - } - if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId")) - if (!$util.isString(message.hcxActivationKeyId)) - return "hcxActivationKeyId: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVmwareEngineNetworksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest */ - CreateHcxActivationKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) + ListVmwareEngineNetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) return object; - var message = new $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(); + var message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.hcxActivationKey != null) { - if (typeof object.hcxActivationKey !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.hcxActivationKey: object expected"); - message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKey); - } - if (object.hcxActivationKeyId != null) - message.hcxActivationKeyId = String(object.hcxActivationKeyId); - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVmwareEngineNetworksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @static - * @param {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest + * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateHcxActivationKeyRequest.toObject = function toObject(message, options) { + ListVmwareEngineNetworksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.hcxActivationKey = null; - object.hcxActivationKeyId = ""; - object.requestId = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey")) - object.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKey, options); - if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId")) - object.hcxActivationKeyId = message.hcxActivationKeyId; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this CreateHcxActivationKeyRequest to JSON. + * Converts this ListVmwareEngineNetworksRequest to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @instance * @returns {Object.} JSON object */ - CreateHcxActivationKeyRequest.prototype.toJSON = function toJSON() { + ListVmwareEngineNetworksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateHcxActivationKeyRequest + * Gets the default type url for ListVmwareEngineNetworksRequest * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVmwareEngineNetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest"; }; - return CreateHcxActivationKeyRequest; + return ListVmwareEngineNetworksRequest; })(); - v1.Hcx = (function() { + v1.ListVmwareEngineNetworksResponse = (function() { /** - * Properties of a Hcx. + * Properties of a ListVmwareEngineNetworksResponse. * @memberof google.cloud.vmwareengine.v1 - * @interface IHcx - * @property {string|null} [internalIp] Hcx internalIp - * @property {string|null} [version] Hcx version - * @property {google.cloud.vmwareengine.v1.Hcx.State|null} [state] Hcx state - * @property {string|null} [fqdn] Hcx fqdn + * @interface IListVmwareEngineNetworksResponse + * @property {Array.|null} [vmwareEngineNetworks] ListVmwareEngineNetworksResponse vmwareEngineNetworks + * @property {string|null} [nextPageToken] ListVmwareEngineNetworksResponse nextPageToken + * @property {Array.|null} [unreachable] ListVmwareEngineNetworksResponse unreachable */ /** - * Constructs a new Hcx. + * Constructs a new ListVmwareEngineNetworksResponse. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Hcx. - * @implements IHcx + * @classdesc Represents a ListVmwareEngineNetworksResponse. + * @implements IListVmwareEngineNetworksResponse * @constructor - * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse=} [properties] Properties to set */ - function Hcx(properties) { + function ListVmwareEngineNetworksResponse(properties) { + this.vmwareEngineNetworks = []; + this.unreachable = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11243,117 +10950,109 @@ } /** - * Hcx internalIp. - * @member {string} internalIp - * @memberof google.cloud.vmwareengine.v1.Hcx - * @instance - */ - Hcx.prototype.internalIp = ""; - - /** - * Hcx version. - * @member {string} version - * @memberof google.cloud.vmwareengine.v1.Hcx + * ListVmwareEngineNetworksResponse vmwareEngineNetworks. + * @member {Array.} vmwareEngineNetworks + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @instance */ - Hcx.prototype.version = ""; + ListVmwareEngineNetworksResponse.prototype.vmwareEngineNetworks = $util.emptyArray; /** - * Hcx state. - * @member {google.cloud.vmwareengine.v1.Hcx.State} state - * @memberof google.cloud.vmwareengine.v1.Hcx + * ListVmwareEngineNetworksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @instance */ - Hcx.prototype.state = 0; + ListVmwareEngineNetworksResponse.prototype.nextPageToken = ""; /** - * Hcx fqdn. - * @member {string} fqdn - * @memberof google.cloud.vmwareengine.v1.Hcx + * ListVmwareEngineNetworksResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @instance */ - Hcx.prototype.fqdn = ""; + ListVmwareEngineNetworksResponse.prototype.unreachable = $util.emptyArray; /** - * Creates a new Hcx instance using the specified properties. + * Creates a new ListVmwareEngineNetworksResponse instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @static - * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx instance + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse instance */ - Hcx.create = function create(properties) { - return new Hcx(properties); + ListVmwareEngineNetworksResponse.create = function create(properties) { + return new ListVmwareEngineNetworksResponse(properties); }; /** - * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * Encodes the specified ListVmwareEngineNetworksResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @static - * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Hcx.encode = function encode(message, writer) { + ListVmwareEngineNetworksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); - if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + if (message.vmwareEngineNetworks != null && message.vmwareEngineNetworks.length) + for (var i = 0; i < message.vmwareEngineNetworks.length; ++i) + $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetworks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); return writer; }; /** - * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. + * Encodes the specified ListVmwareEngineNetworksResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @static - * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Hcx.encodeDelimited = function encodeDelimited(message, writer) { + ListVmwareEngineNetworksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Hcx message from the specified reader or buffer. + * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Hcx.decode = function decode(reader, length) { + ListVmwareEngineNetworksResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Hcx(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.internalIp = reader.string(); - break; - } - case 4: { - message.version = reader.string(); + case 1: { + if (!(message.vmwareEngineNetworks && message.vmwareEngineNetworks.length)) + message.vmwareEngineNetworks = []; + message.vmwareEngineNetworks.push($root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32())); break; } - case 5: { - message.state = reader.int32(); + case 2: { + message.nextPageToken = reader.string(); break; } - case 6: { - message.fqdn = reader.string(); + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } default: @@ -11365,190 +11064,172 @@ }; /** - * Decodes a Hcx message from the specified reader or buffer, length delimited. + * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Hcx.decodeDelimited = function decodeDelimited(reader) { + ListVmwareEngineNetworksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Hcx message. + * Verifies a ListVmwareEngineNetworksResponse message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Hcx.verify = function verify(message) { + ListVmwareEngineNetworksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - if (!$util.isString(message.internalIp)) - return "internalIp: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.vmwareEngineNetworks != null && message.hasOwnProperty("vmwareEngineNetworks")) { + if (!Array.isArray(message.vmwareEngineNetworks)) + return "vmwareEngineNetworks: array expected"; + for (var i = 0; i < message.vmwareEngineNetworks.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetworks[i]); + if (error) + return "vmwareEngineNetworks." + error; } - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - if (!$util.isString(message.fqdn)) - return "fqdn: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } return null; }; /** - * Creates a Hcx message from a plain object. Also converts values to their respective internal types. + * Creates a ListVmwareEngineNetworksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx + * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse */ - Hcx.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Hcx) + ListVmwareEngineNetworksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) return object; - var message = new $root.google.cloud.vmwareengine.v1.Hcx(); - if (object.internalIp != null) - message.internalIp = String(object.internalIp); - if (object.version != null) - message.version = String(object.version); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; + var message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(); + if (object.vmwareEngineNetworks) { + if (!Array.isArray(object.vmwareEngineNetworks)) + throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.vmwareEngineNetworks: array expected"); + message.vmwareEngineNetworks = []; + for (var i = 0; i < object.vmwareEngineNetworks.length; ++i) { + if (typeof object.vmwareEngineNetworks[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.vmwareEngineNetworks: object expected"); + message.vmwareEngineNetworks[i] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetworks[i]); } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; } - if (object.fqdn != null) - message.fqdn = String(object.fqdn); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } return message; }; /** - * Creates a plain object from a Hcx message. Also converts values to other types if specified. + * Creates a plain object from a ListVmwareEngineNetworksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @static - * @param {google.cloud.vmwareengine.v1.Hcx} message Hcx + * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Hcx.toObject = function toObject(message, options) { + ListVmwareEngineNetworksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.internalIp = ""; - object.version = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.fqdn = ""; + if (options.arrays || options.defaults) { + object.vmwareEngineNetworks = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.vmwareEngineNetworks && message.vmwareEngineNetworks.length) { + object.vmwareEngineNetworks = []; + for (var j = 0; j < message.vmwareEngineNetworks.length; ++j) + object.vmwareEngineNetworks[j] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetworks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - object.internalIp = message.internalIp; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] : message.state; - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - object.fqdn = message.fqdn; return object; }; /** - * Converts this Hcx to JSON. + * Converts this ListVmwareEngineNetworksResponse to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @instance * @returns {Object.} JSON object */ - Hcx.prototype.toJSON = function toJSON() { + ListVmwareEngineNetworksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Hcx + * Gets the default type url for ListVmwareEngineNetworksResponse * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Hcx + * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Hcx.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVmwareEngineNetworksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Hcx"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.Hcx.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - */ - Hcx.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - return values; - })(); - - return Hcx; + return ListVmwareEngineNetworksResponse; })(); - v1.Nsx = (function() { + v1.NetworkConfig = (function() { /** - * Properties of a Nsx. + * Properties of a NetworkConfig. * @memberof google.cloud.vmwareengine.v1 - * @interface INsx - * @property {string|null} [internalIp] Nsx internalIp - * @property {string|null} [version] Nsx version - * @property {google.cloud.vmwareengine.v1.Nsx.State|null} [state] Nsx state - * @property {string|null} [fqdn] Nsx fqdn + * @interface INetworkConfig + * @property {string|null} [managementCidr] NetworkConfig managementCidr + * @property {string|null} [vmwareEngineNetwork] NetworkConfig vmwareEngineNetwork + * @property {string|null} [vmwareEngineNetworkCanonical] NetworkConfig vmwareEngineNetworkCanonical + * @property {number|null} [managementIpAddressLayoutVersion] NetworkConfig managementIpAddressLayoutVersion */ /** - * Constructs a new Nsx. + * Constructs a new NetworkConfig. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Nsx. - * @implements INsx + * @classdesc Represents a NetworkConfig. + * @implements INetworkConfig * @constructor - * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set */ - function Nsx(properties) { + function NetworkConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11556,117 +11237,117 @@ } /** - * Nsx internalIp. - * @member {string} internalIp - * @memberof google.cloud.vmwareengine.v1.Nsx + * NetworkConfig managementCidr. + * @member {string} managementCidr + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @instance */ - Nsx.prototype.internalIp = ""; + NetworkConfig.prototype.managementCidr = ""; /** - * Nsx version. - * @member {string} version - * @memberof google.cloud.vmwareengine.v1.Nsx + * NetworkConfig vmwareEngineNetwork. + * @member {string} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @instance */ - Nsx.prototype.version = ""; + NetworkConfig.prototype.vmwareEngineNetwork = ""; /** - * Nsx state. - * @member {google.cloud.vmwareengine.v1.Nsx.State} state - * @memberof google.cloud.vmwareengine.v1.Nsx + * NetworkConfig vmwareEngineNetworkCanonical. + * @member {string} vmwareEngineNetworkCanonical + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @instance */ - Nsx.prototype.state = 0; + NetworkConfig.prototype.vmwareEngineNetworkCanonical = ""; /** - * Nsx fqdn. - * @member {string} fqdn - * @memberof google.cloud.vmwareengine.v1.Nsx + * NetworkConfig managementIpAddressLayoutVersion. + * @member {number} managementIpAddressLayoutVersion + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @instance */ - Nsx.prototype.fqdn = ""; + NetworkConfig.prototype.managementIpAddressLayoutVersion = 0; /** - * Creates a new Nsx instance using the specified properties. + * Creates a new NetworkConfig instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @static - * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx instance + * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig instance */ - Nsx.create = function create(properties) { - return new Nsx(properties); + NetworkConfig.create = function create(properties) { + return new NetworkConfig(properties); }; /** - * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @static - * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode + * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Nsx.encode = function encode(message, writer) { + NetworkConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); - if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + if (message.managementCidr != null && Object.hasOwnProperty.call(message, "managementCidr")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.managementCidr); + if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.vmwareEngineNetwork); + if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.vmwareEngineNetworkCanonical); + if (message.managementIpAddressLayoutVersion != null && Object.hasOwnProperty.call(message, "managementIpAddressLayoutVersion")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.managementIpAddressLayoutVersion); return writer; }; /** - * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @static - * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode + * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Nsx.encodeDelimited = function encodeDelimited(message, writer) { + NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Nsx message from the specified reader or buffer. + * Decodes a NetworkConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Nsx.decode = function decode(reader, length) { + NetworkConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Nsx(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.internalIp = reader.string(); - break; - } case 4: { - message.version = reader.string(); + message.managementCidr = reader.string(); break; } case 5: { - message.state = reader.int32(); + message.vmwareEngineNetwork = reader.string(); break; } case 6: { - message.fqdn = reader.string(); + message.vmwareEngineNetworkCanonical = reader.string(); + break; + } + case 8: { + message.managementIpAddressLayoutVersion = reader.int32(); break; } default: @@ -11678,190 +11359,148 @@ }; /** - * Decodes a Nsx message from the specified reader or buffer, length delimited. + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Nsx.decodeDelimited = function decodeDelimited(reader) { + NetworkConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Nsx message. + * Verifies a NetworkConfig message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Nsx.verify = function verify(message) { + NetworkConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - if (!$util.isString(message.internalIp)) - return "internalIp: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - if (!$util.isString(message.fqdn)) - return "fqdn: string expected"; + if (message.managementCidr != null && message.hasOwnProperty("managementCidr")) + if (!$util.isString(message.managementCidr)) + return "managementCidr: string expected"; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + if (!$util.isString(message.vmwareEngineNetwork)) + return "vmwareEngineNetwork: string expected"; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + if (!$util.isString(message.vmwareEngineNetworkCanonical)) + return "vmwareEngineNetworkCanonical: string expected"; + if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion")) + if (!$util.isInteger(message.managementIpAddressLayoutVersion)) + return "managementIpAddressLayoutVersion: integer expected"; return null; }; /** - * Creates a Nsx message from a plain object. Also converts values to their respective internal types. + * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig */ - Nsx.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Nsx) + NetworkConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkConfig) return object; - var message = new $root.google.cloud.vmwareengine.v1.Nsx(); - if (object.internalIp != null) - message.internalIp = String(object.internalIp); - if (object.version != null) - message.version = String(object.version); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - } - if (object.fqdn != null) - message.fqdn = String(object.fqdn); + var message = new $root.google.cloud.vmwareengine.v1.NetworkConfig(); + if (object.managementCidr != null) + message.managementCidr = String(object.managementCidr); + if (object.vmwareEngineNetwork != null) + message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); + if (object.vmwareEngineNetworkCanonical != null) + message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); + if (object.managementIpAddressLayoutVersion != null) + message.managementIpAddressLayoutVersion = object.managementIpAddressLayoutVersion | 0; return message; }; /** - * Creates a plain object from a Nsx message. Also converts values to other types if specified. + * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @static - * @param {google.cloud.vmwareengine.v1.Nsx} message Nsx + * @param {google.cloud.vmwareengine.v1.NetworkConfig} message NetworkConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Nsx.toObject = function toObject(message, options) { + NetworkConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.internalIp = ""; - object.version = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.fqdn = ""; + object.managementCidr = ""; + object.vmwareEngineNetwork = ""; + object.vmwareEngineNetworkCanonical = ""; + object.managementIpAddressLayoutVersion = 0; } - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - object.internalIp = message.internalIp; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] : message.state; - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - object.fqdn = message.fqdn; + if (message.managementCidr != null && message.hasOwnProperty("managementCidr")) + object.managementCidr = message.managementCidr; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + object.vmwareEngineNetwork = message.vmwareEngineNetwork; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; + if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion")) + object.managementIpAddressLayoutVersion = message.managementIpAddressLayoutVersion; return object; }; /** - * Converts this Nsx to JSON. + * Converts this NetworkConfig to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @instance * @returns {Object.} JSON object */ - Nsx.prototype.toJSON = function toJSON() { + NetworkConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Nsx + * Gets the default type url for NetworkConfig * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Nsx + * @memberof google.cloud.vmwareengine.v1.NetworkConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Nsx.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Nsx"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkConfig"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.Nsx.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - */ - Nsx.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - return values; - })(); - - return Nsx; + return NetworkConfig; })(); - v1.Vcenter = (function() { + v1.NodeTypeConfig = (function() { /** - * Properties of a Vcenter. + * Properties of a NodeTypeConfig. * @memberof google.cloud.vmwareengine.v1 - * @interface IVcenter - * @property {string|null} [internalIp] Vcenter internalIp - * @property {string|null} [version] Vcenter version - * @property {google.cloud.vmwareengine.v1.Vcenter.State|null} [state] Vcenter state - * @property {string|null} [fqdn] Vcenter fqdn + * @interface INodeTypeConfig + * @property {number|null} [nodeCount] NodeTypeConfig nodeCount + * @property {number|null} [customCoreCount] NodeTypeConfig customCoreCount */ /** - * Constructs a new Vcenter. + * Constructs a new NodeTypeConfig. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a Vcenter. - * @implements IVcenter + * @classdesc Represents a NodeTypeConfig. + * @implements INodeTypeConfig * @constructor - * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set */ - function Vcenter(properties) { + function NodeTypeConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11869,117 +11508,89 @@ } /** - * Vcenter internalIp. - * @member {string} internalIp - * @memberof google.cloud.vmwareengine.v1.Vcenter - * @instance - */ - Vcenter.prototype.internalIp = ""; - - /** - * Vcenter version. - * @member {string} version - * @memberof google.cloud.vmwareengine.v1.Vcenter - * @instance - */ - Vcenter.prototype.version = ""; - - /** - * Vcenter state. - * @member {google.cloud.vmwareengine.v1.Vcenter.State} state - * @memberof google.cloud.vmwareengine.v1.Vcenter + * NodeTypeConfig nodeCount. + * @member {number} nodeCount + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @instance */ - Vcenter.prototype.state = 0; + NodeTypeConfig.prototype.nodeCount = 0; /** - * Vcenter fqdn. - * @member {string} fqdn - * @memberof google.cloud.vmwareengine.v1.Vcenter + * NodeTypeConfig customCoreCount. + * @member {number} customCoreCount + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @instance */ - Vcenter.prototype.fqdn = ""; + NodeTypeConfig.prototype.customCoreCount = 0; /** - * Creates a new Vcenter instance using the specified properties. + * Creates a new NodeTypeConfig instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @static - * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter instance + * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig instance */ - Vcenter.create = function create(properties) { - return new Vcenter(properties); + NodeTypeConfig.create = function create(properties) { + return new NodeTypeConfig(properties); }; /** - * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @static - * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode + * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vcenter.encode = function encode(message, writer) { + NodeTypeConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); - if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nodeCount); + if (message.customCoreCount != null && Object.hasOwnProperty.call(message, "customCoreCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.customCoreCount); return writer; }; /** - * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. + * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @static - * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode + * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vcenter.encodeDelimited = function encodeDelimited(message, writer) { + NodeTypeConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Vcenter message from the specified reader or buffer. + * Decodes a NodeTypeConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter + * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vcenter.decode = function decode(reader, length) { + NodeTypeConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Vcenter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NodeTypeConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.internalIp = reader.string(); - break; - } - case 4: { - message.version = reader.string(); - break; - } - case 5: { - message.state = reader.int32(); + case 1: { + message.nodeCount = reader.int32(); break; } - case 6: { - message.fqdn = reader.string(); + case 2: { + message.customCoreCount = reader.int32(); break; } default: @@ -11991,196 +11602,143 @@ }; /** - * Decodes a Vcenter message from the specified reader or buffer, length delimited. + * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter + * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vcenter.decodeDelimited = function decodeDelimited(reader) { + NodeTypeConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Vcenter message. + * Verifies a NodeTypeConfig message. * @function verify - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Vcenter.verify = function verify(message) { + NodeTypeConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - if (!$util.isString(message.internalIp)) - return "internalIp: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - if (!$util.isString(message.fqdn)) - return "fqdn: string expected"; + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + if (!$util.isInteger(message.nodeCount)) + return "nodeCount: integer expected"; + if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) + if (!$util.isInteger(message.customCoreCount)) + return "customCoreCount: integer expected"; return null; }; /** - * Creates a Vcenter message from a plain object. Also converts values to their respective internal types. + * Creates a NodeTypeConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter + * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig */ - Vcenter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.Vcenter) + NodeTypeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NodeTypeConfig) return object; - var message = new $root.google.cloud.vmwareengine.v1.Vcenter(); - if (object.internalIp != null) - message.internalIp = String(object.internalIp); - if (object.version != null) - message.version = String(object.version); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - } - if (object.fqdn != null) - message.fqdn = String(object.fqdn); + var message = new $root.google.cloud.vmwareengine.v1.NodeTypeConfig(); + if (object.nodeCount != null) + message.nodeCount = object.nodeCount | 0; + if (object.customCoreCount != null) + message.customCoreCount = object.customCoreCount | 0; return message; }; /** - * Creates a plain object from a Vcenter message. Also converts values to other types if specified. + * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @static - * @param {google.cloud.vmwareengine.v1.Vcenter} message Vcenter + * @param {google.cloud.vmwareengine.v1.NodeTypeConfig} message NodeTypeConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Vcenter.toObject = function toObject(message, options) { + NodeTypeConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.internalIp = ""; - object.version = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.fqdn = ""; + object.nodeCount = 0; + object.customCoreCount = 0; } - if (message.internalIp != null && message.hasOwnProperty("internalIp")) - object.internalIp = message.internalIp; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] : message.state; - if (message.fqdn != null && message.hasOwnProperty("fqdn")) - object.fqdn = message.fqdn; + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + object.nodeCount = message.nodeCount; + if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount")) + object.customCoreCount = message.customCoreCount; return object; }; /** - * Converts this Vcenter to JSON. + * Converts this NodeTypeConfig to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @instance * @returns {Object.} JSON object */ - Vcenter.prototype.toJSON = function toJSON() { + NodeTypeConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Vcenter + * Gets the default type url for NodeTypeConfig * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.Vcenter + * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Vcenter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NodeTypeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Vcenter"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeTypeConfig"; }; - /** - * State enum. - * @name google.cloud.vmwareengine.v1.Vcenter.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CREATING=2 CREATING value - */ - Vcenter.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "CREATING"] = 2; - return values; - })(); - - return Vcenter; + return NodeTypeConfig; })(); - v1.NetworkPolicy = (function() { + v1.PrivateCloud = (function() { /** - * Properties of a NetworkPolicy. + * Properties of a PrivateCloud. * @memberof google.cloud.vmwareengine.v1 - * @interface INetworkPolicy - * @property {string|null} [name] NetworkPolicy name - * @property {google.protobuf.ITimestamp|null} [createTime] NetworkPolicy createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] NetworkPolicy updateTime - * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [internetAccess] NetworkPolicy internetAccess - * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [externalIp] NetworkPolicy externalIp - * @property {string|null} [edgeServicesCidr] NetworkPolicy edgeServicesCidr - * @property {string|null} [uid] NetworkPolicy uid - * @property {string|null} [vmwareEngineNetwork] NetworkPolicy vmwareEngineNetwork - * @property {string|null} [description] NetworkPolicy description - * @property {string|null} [vmwareEngineNetworkCanonical] NetworkPolicy vmwareEngineNetworkCanonical + * @interface IPrivateCloud + * @property {string|null} [name] PrivateCloud name + * @property {google.protobuf.ITimestamp|null} [createTime] PrivateCloud createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PrivateCloud updateTime + * @property {google.protobuf.ITimestamp|null} [deleteTime] PrivateCloud deleteTime + * @property {google.protobuf.ITimestamp|null} [expireTime] PrivateCloud expireTime + * @property {google.cloud.vmwareengine.v1.PrivateCloud.State|null} [state] PrivateCloud state + * @property {google.cloud.vmwareengine.v1.INetworkConfig|null} [networkConfig] PrivateCloud networkConfig + * @property {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null} [managementCluster] PrivateCloud managementCluster + * @property {string|null} [description] PrivateCloud description + * @property {google.cloud.vmwareengine.v1.IHcx|null} [hcx] PrivateCloud hcx + * @property {google.cloud.vmwareengine.v1.INsx|null} [nsx] PrivateCloud nsx + * @property {google.cloud.vmwareengine.v1.IVcenter|null} [vcenter] PrivateCloud vcenter + * @property {string|null} [uid] PrivateCloud uid */ /** - * Constructs a new NetworkPolicy. + * Constructs a new PrivateCloud. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a NetworkPolicy. - * @implements INetworkPolicy + * @classdesc Represents a PrivateCloud. + * @implements IPrivateCloud * @constructor - * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set */ - function NetworkPolicy(properties) { + function PrivateCloud(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12188,107 +11746,131 @@ } /** - * NetworkPolicy name. + * PrivateCloud name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.name = ""; + PrivateCloud.prototype.name = ""; /** - * NetworkPolicy createTime. + * PrivateCloud createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.createTime = null; + PrivateCloud.prototype.createTime = null; /** - * NetworkPolicy updateTime. + * PrivateCloud updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.updateTime = null; + PrivateCloud.prototype.updateTime = null; /** - * NetworkPolicy internetAccess. - * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} internetAccess - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * PrivateCloud deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.internetAccess = null; + PrivateCloud.prototype.deleteTime = null; /** - * NetworkPolicy externalIp. - * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} externalIp - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * PrivateCloud expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.externalIp = null; + PrivateCloud.prototype.expireTime = null; /** - * NetworkPolicy edgeServicesCidr. - * @member {string} edgeServicesCidr - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * PrivateCloud state. + * @member {google.cloud.vmwareengine.v1.PrivateCloud.State} state + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.edgeServicesCidr = ""; + PrivateCloud.prototype.state = 0; /** - * NetworkPolicy uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * PrivateCloud networkConfig. + * @member {google.cloud.vmwareengine.v1.INetworkConfig|null|undefined} networkConfig + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.uid = ""; + PrivateCloud.prototype.networkConfig = null; /** - * NetworkPolicy vmwareEngineNetwork. - * @member {string} vmwareEngineNetwork - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * PrivateCloud managementCluster. + * @member {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null|undefined} managementCluster + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.vmwareEngineNetwork = ""; + PrivateCloud.prototype.managementCluster = null; /** - * NetworkPolicy description. + * PrivateCloud description. * @member {string} description - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.description = ""; + PrivateCloud.prototype.description = ""; /** - * NetworkPolicy vmwareEngineNetworkCanonical. - * @member {string} vmwareEngineNetworkCanonical - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * PrivateCloud hcx. + * @member {google.cloud.vmwareengine.v1.IHcx|null|undefined} hcx + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance */ - NetworkPolicy.prototype.vmwareEngineNetworkCanonical = ""; + PrivateCloud.prototype.hcx = null; /** - * Creates a new NetworkPolicy instance using the specified properties. + * PrivateCloud nsx. + * @member {google.cloud.vmwareengine.v1.INsx|null|undefined} nsx + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.nsx = null; + + /** + * PrivateCloud vcenter. + * @member {google.cloud.vmwareengine.v1.IVcenter|null|undefined} vcenter + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.vcenter = null; + + /** + * PrivateCloud uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @instance + */ + PrivateCloud.prototype.uid = ""; + + /** + * Creates a new PrivateCloud instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @static - * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy instance + * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud instance */ - NetworkPolicy.create = function create(properties) { - return new NetworkPolicy(properties); + PrivateCloud.create = function create(properties) { + return new PrivateCloud(properties); }; /** - * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @static - * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkPolicy.encode = function encode(message, writer) { + PrivateCloud.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -12297,51 +11879,57 @@ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.internetAccess != null && Object.hasOwnProperty.call(message, "internetAccess")) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.internetAccess, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.externalIp != null && Object.hasOwnProperty.call(message, "externalIp")) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.externalIp, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.edgeServicesCidr != null && Object.hasOwnProperty.call(message, "edgeServicesCidr")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.edgeServicesCidr); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.uid); - if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.vmwareEngineNetwork); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig")) + $root.google.cloud.vmwareengine.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.managementCluster != null && Object.hasOwnProperty.call(message, "managementCluster")) + $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.encode(message.managementCluster, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.description); - if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.vmwareEngineNetworkCanonical); + writer.uint32(/* id 11, wireType 2 =*/90).string(message.description); + if (message.hcx != null && Object.hasOwnProperty.call(message, "hcx")) + $root.google.cloud.vmwareengine.v1.Hcx.encode(message.hcx, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.nsx != null && Object.hasOwnProperty.call(message, "nsx")) + $root.google.cloud.vmwareengine.v1.Nsx.encode(message.nsx, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.vcenter != null && Object.hasOwnProperty.call(message, "vcenter")) + $root.google.cloud.vmwareengine.v1.Vcenter.encode(message.vcenter, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 20, wireType 2 =*/162).string(message.uid); return writer; }; /** - * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. + * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @static - * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { + PrivateCloud.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkPolicy message from the specified reader or buffer. + * Decodes a PrivateCloud message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy + * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkPolicy.decode = function decode(reader, length) { + PrivateCloud.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateCloud(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12357,32 +11945,44 @@ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 6: { - message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32()); + case 4: { + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 7: { - message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32()); + case 5: { + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.state = reader.int32(); break; } case 9: { - message.edgeServicesCidr = reader.string(); + message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.decode(reader, reader.uint32()); break; } case 10: { - message.uid = reader.string(); + message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.decode(reader, reader.uint32()); break; } - case 12: { - message.vmwareEngineNetwork = reader.string(); + case 11: { + message.description = reader.string(); break; } - case 13: { - message.description = reader.string(); + case 17: { + message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.decode(reader, reader.uint32()); break; } - case 14: { - message.vmwareEngineNetworkCanonical = reader.string(); + case 18: { + message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.decode(reader, reader.uint32()); + break; + } + case 19: { + message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.decode(reader, reader.uint32()); + break; + } + case 20: { + message.uid = reader.string(); break; } default: @@ -12394,30 +11994,30 @@ }; /** - * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * Decodes a PrivateCloud message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy + * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { + PrivateCloud.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NetworkPolicy message. + * Verifies a PrivateCloud message. * @function verify - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetworkPolicy.verify = function verify(message) { + PrivateCloud.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -12433,91 +12033,175 @@ if (error) return "updateTime." + error; } - if (message.internetAccess != null && message.hasOwnProperty("internetAccess")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.internetAccess); + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); if (error) - return "internetAccess." + error; + return "deleteTime." + error; } - if (message.externalIp != null && message.hasOwnProperty("externalIp")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.externalIp); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); if (error) - return "externalIp." + error; + return "expireTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 5: + case 6: + case 7: + break; + } + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkConfig.verify(message.networkConfig); + if (error) + return "networkConfig." + error; + } + if (message.managementCluster != null && message.hasOwnProperty("managementCluster")) { + var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify(message.managementCluster); + if (error) + return "managementCluster." + error; } - if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr")) - if (!$util.isString(message.edgeServicesCidr)) - return "edgeServicesCidr: string expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - if (!$util.isString(message.vmwareEngineNetwork)) - return "vmwareEngineNetwork: string expected"; if (message.description != null && message.hasOwnProperty("description")) if (!$util.isString(message.description)) return "description: string expected"; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - if (!$util.isString(message.vmwareEngineNetworkCanonical)) - return "vmwareEngineNetworkCanonical: string expected"; + if (message.hcx != null && message.hasOwnProperty("hcx")) { + var error = $root.google.cloud.vmwareengine.v1.Hcx.verify(message.hcx); + if (error) + return "hcx." + error; + } + if (message.nsx != null && message.hasOwnProperty("nsx")) { + var error = $root.google.cloud.vmwareengine.v1.Nsx.verify(message.nsx); + if (error) + return "nsx." + error; + } + if (message.vcenter != null && message.hasOwnProperty("vcenter")) { + var error = $root.google.cloud.vmwareengine.v1.Vcenter.verify(message.vcenter); + if (error) + return "vcenter." + error; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; return null; }; /** - * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a PrivateCloud message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy + * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud */ - NetworkPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPolicy) + PrivateCloud.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud) return object; - var message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy(); + var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud(); if (object.name != null) message.name = String(object.name); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.createTime: object expected"); + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.updateTime: object expected"); + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.internetAccess != null) { - if (typeof object.internetAccess !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.internetAccess: object expected"); - message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.internetAccess); + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); } - if (object.externalIp != null) { - if (typeof object.externalIp !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.externalIp: object expected"); - message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.externalIp); + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "FAILED": + case 5: + message.state = 5; + break; + case "DELETED": + case 6: + message.state = 6; + break; + case "PURGING": + case 7: + message.state = 7; + break; + } + if (object.networkConfig != null) { + if (typeof object.networkConfig !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.networkConfig: object expected"); + message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.fromObject(object.networkConfig); + } + if (object.managementCluster != null) { + if (typeof object.managementCluster !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.managementCluster: object expected"); + message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.fromObject(object.managementCluster); } - if (object.edgeServicesCidr != null) - message.edgeServicesCidr = String(object.edgeServicesCidr); - if (object.uid != null) - message.uid = String(object.uid); - if (object.vmwareEngineNetwork != null) - message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); if (object.description != null) message.description = String(object.description); - if (object.vmwareEngineNetworkCanonical != null) - message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); + if (object.hcx != null) { + if (typeof object.hcx !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.hcx: object expected"); + message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.fromObject(object.hcx); + } + if (object.nsx != null) { + if (typeof object.nsx !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.nsx: object expected"); + message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.fromObject(object.nsx); + } + if (object.vcenter != null) { + if (typeof object.vcenter !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.vcenter: object expected"); + message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.fromObject(object.vcenter); + } + if (object.uid != null) + message.uid = String(object.uid); return message; }; /** - * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy} message NetworkPolicy + * @param {google.cloud.vmwareengine.v1.PrivateCloud} message PrivateCloud * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkPolicy.toObject = function toObject(message, options) { + PrivateCloud.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -12525,13 +12209,16 @@ object.name = ""; object.createTime = null; object.updateTime = null; - object.internetAccess = null; - object.externalIp = null; - object.edgeServicesCidr = ""; - object.uid = ""; - object.vmwareEngineNetwork = ""; + object.deleteTime = null; + object.expireTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.networkConfig = null; + object.managementCluster = null; object.description = ""; - object.vmwareEngineNetworkCanonical = ""; + object.hcx = null; + object.nsx = null; + object.vcenter = null; + object.uid = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -12539,68 +12226,99 @@ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.internetAccess != null && message.hasOwnProperty("internetAccess")) - object.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.internetAccess, options); - if (message.externalIp != null && message.hasOwnProperty("externalIp")) - object.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.externalIp, options); - if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr")) - object.edgeServicesCidr = message.edgeServicesCidr; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - object.vmwareEngineNetwork = message.vmwareEngineNetwork; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] : message.state; + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) + object.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.toObject(message.networkConfig, options); + if (message.managementCluster != null && message.hasOwnProperty("managementCluster")) + object.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.toObject(message.managementCluster, options); if (message.description != null && message.hasOwnProperty("description")) object.description = message.description; - if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) - object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; + if (message.hcx != null && message.hasOwnProperty("hcx")) + object.hcx = $root.google.cloud.vmwareengine.v1.Hcx.toObject(message.hcx, options); + if (message.nsx != null && message.hasOwnProperty("nsx")) + object.nsx = $root.google.cloud.vmwareengine.v1.Nsx.toObject(message.nsx, options); + if (message.vcenter != null && message.hasOwnProperty("vcenter")) + object.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.toObject(message.vcenter, options); + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; return object; }; /** - * Converts this NetworkPolicy to JSON. + * Converts this PrivateCloud to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @instance * @returns {Object.} JSON object */ - NetworkPolicy.prototype.toJSON = function toJSON() { + PrivateCloud.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NetworkPolicy + * Gets the default type url for PrivateCloud * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @memberof google.cloud.vmwareengine.v1.PrivateCloud * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrivateCloud.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPolicy"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud"; }; - NetworkPolicy.NetworkService = (function() { + /** + * State enum. + * @name google.cloud.vmwareengine.v1.PrivateCloud.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} FAILED=5 FAILED value + * @property {number} DELETED=6 DELETED value + * @property {number} PURGING=7 PURGING value + */ + PrivateCloud.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "DELETED"] = 6; + values[valuesById[7] = "PURGING"] = 7; + return values; + })(); + + PrivateCloud.ManagementCluster = (function() { /** - * Properties of a NetworkService. - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy - * @interface INetworkService - * @property {boolean|null} [enabled] NetworkService enabled - * @property {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null} [state] NetworkService state + * Properties of a ManagementCluster. + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @interface IManagementCluster + * @property {string|null} [clusterId] ManagementCluster clusterId + * @property {Object.|null} [nodeTypeConfigs] ManagementCluster nodeTypeConfigs */ /** - * Constructs a new NetworkService. - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy - * @classdesc Represents a NetworkService. - * @implements INetworkService + * Constructs a new ManagementCluster. + * @memberof google.cloud.vmwareengine.v1.PrivateCloud + * @classdesc Represents a ManagementCluster. + * @implements IManagementCluster * @constructor - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set */ - function NetworkService(properties) { + function ManagementCluster(properties) { + this.nodeTypeConfigs = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12608,575 +12326,276 @@ } /** - * NetworkService enabled. - * @member {boolean} enabled - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * ManagementCluster clusterId. + * @member {string} clusterId + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster * @instance */ - NetworkService.prototype.enabled = false; + ManagementCluster.prototype.clusterId = ""; /** - * NetworkService state. - * @member {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State} state - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * ManagementCluster nodeTypeConfigs. + * @member {Object.} nodeTypeConfigs + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster * @instance */ - NetworkService.prototype.state = 0; + ManagementCluster.prototype.nodeTypeConfigs = $util.emptyObject; /** - * Creates a new NetworkService instance using the specified properties. + * Creates a new ManagementCluster instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService instance + * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster instance */ - NetworkService.create = function create(properties) { - return new NetworkService(properties); + ManagementCluster.create = function create(properties) { + return new ManagementCluster(properties); }; /** - * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode + * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkService.encode = function encode(message, writer) { + ManagementCluster.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); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.clusterId); + if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs")) + for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode + * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkService.encodeDelimited = function encodeDelimited(message, writer) { + ManagementCluster.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkService message from the specified reader or buffer. + * Decodes a ManagementCluster message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService + * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkService.decode = function decode(reader, length) { + ManagementCluster.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enabled = reader.bool(); + message.clusterId = reader.string(); break; } - case 2: { - message.state = reader.int32(); + case 7: { + if (message.nodeTypeConfigs === $util.emptyObject) + message.nodeTypeConfigs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.nodeTypeConfigs[key] = value; break; } default: reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NetworkService message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkService.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NetworkService message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NetworkService.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"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - - /** - * Creates a NetworkService message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService - */ - NetworkService.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) - return object; - var message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "UNPROVISIONED": - case 1: - message.state = 1; - break; - case "RECONCILING": - case 2: - message.state = 2; - break; - case "ACTIVE": - case 3: - message.state = 3; - break; + break; + } } return message; }; /** - * Creates a plain object from a NetworkService message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * Decodes a ManagementCluster message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster * @static - * @param {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} message NetworkService - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetworkService.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.enabled = false; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State[message.state] : message.state; - return object; - }; - - /** - * Converts this NetworkService to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService - * @instance - * @returns {Object.} JSON object + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkService.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + ManagementCluster.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); }; /** - * Gets the default type url for NetworkService - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * Verifies a ManagementCluster message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetworkService.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + ManagementCluster.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) { + if (!$util.isObject(message.nodeTypeConfigs)) + return "nodeTypeConfigs: object expected"; + var key = Object.keys(message.nodeTypeConfigs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]); + if (error) + return "nodeTypeConfigs." + error; + } } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService"; + return null; }; /** - * State enum. - * @name google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} UNPROVISIONED=1 UNPROVISIONED value - * @property {number} RECONCILING=2 RECONCILING value - * @property {number} ACTIVE=3 ACTIVE value - */ - NetworkService.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "UNPROVISIONED"] = 1; - values[valuesById[2] = "RECONCILING"] = 2; - values[valuesById[3] = "ACTIVE"] = 3; - return values; - })(); - - return NetworkService; - })(); - - return NetworkPolicy; - })(); - - v1.ListNetworkPoliciesRequest = (function() { - - /** - * Properties of a ListNetworkPoliciesRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface IListNetworkPoliciesRequest - * @property {string|null} [parent] ListNetworkPoliciesRequest parent - * @property {number|null} [pageSize] ListNetworkPoliciesRequest pageSize - * @property {string|null} [pageToken] ListNetworkPoliciesRequest pageToken - * @property {string|null} [filter] ListNetworkPoliciesRequest filter - * @property {string|null} [orderBy] ListNetworkPoliciesRequest orderBy - */ - - /** - * Constructs a new ListNetworkPoliciesRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListNetworkPoliciesRequest. - * @implements IListNetworkPoliciesRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest=} [properties] Properties to set - */ - function ListNetworkPoliciesRequest(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]]; - } - - /** - * ListNetworkPoliciesRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @instance - */ - ListNetworkPoliciesRequest.prototype.parent = ""; - - /** - * ListNetworkPoliciesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @instance - */ - ListNetworkPoliciesRequest.prototype.pageSize = 0; - - /** - * ListNetworkPoliciesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @instance - */ - ListNetworkPoliciesRequest.prototype.pageToken = ""; - - /** - * ListNetworkPoliciesRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @instance - */ - ListNetworkPoliciesRequest.prototype.filter = ""; - - /** - * ListNetworkPoliciesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @instance - */ - ListNetworkPoliciesRequest.prototype.orderBy = ""; - - /** - * Creates a new ListNetworkPoliciesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest instance - */ - ListNetworkPoliciesRequest.create = function create(properties) { - return new ListNetworkPoliciesRequest(properties); - }; - - /** - * Encodes the specified ListNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} message ListNetworkPoliciesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListNetworkPoliciesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); - return writer; - }; - - /** - * Encodes the specified ListNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} message ListNetworkPoliciesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListNetworkPoliciesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); - break; + * Creates a ManagementCluster message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster + */ + ManagementCluster.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) + return object; + var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodeTypeConfigs) { + if (typeof object.nodeTypeConfigs !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected"); + message.nodeTypeConfigs = {}; + for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) { + if (typeof object.nodeTypeConfigs[keys[i]] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected"); + message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]); } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListNetworkPoliciesRequest message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListNetworkPoliciesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - return null; - }; + return message; + }; - /** - * Creates a ListNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} ListNetworkPoliciesRequest - */ - ListNetworkPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) + /** + * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} message ManagementCluster + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ManagementCluster.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.nodeTypeConfigs = {}; + if (options.defaults) + object.clusterId = ""; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + var keys2; + if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) { + object.nodeTypeConfigs = {}; + for (var j = 0; j < keys2.length; ++j) + object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options); + } return object; - var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - return message; - }; + }; - /** - * Creates a plain object from a ListNetworkPoliciesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @static - * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} message ListNetworkPoliciesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListNetworkPoliciesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - return object; - }; + /** + * Converts this ManagementCluster to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @instance + * @returns {Object.} JSON object + */ + ManagementCluster.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListNetworkPoliciesRequest to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @instance - * @returns {Object.} JSON object - */ - ListNetworkPoliciesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ManagementCluster + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ManagementCluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster"; + }; - /** - * Gets the default type url for ListNetworkPoliciesRequest - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest"; - }; + return ManagementCluster; + })(); - return ListNetworkPoliciesRequest; + return PrivateCloud; })(); - v1.ListNetworkPoliciesResponse = (function() { + v1.Cluster = (function() { /** - * Properties of a ListNetworkPoliciesResponse. + * Properties of a Cluster. * @memberof google.cloud.vmwareengine.v1 - * @interface IListNetworkPoliciesResponse - * @property {Array.|null} [networkPolicies] ListNetworkPoliciesResponse networkPolicies - * @property {string|null} [nextPageToken] ListNetworkPoliciesResponse nextPageToken - * @property {Array.|null} [unreachable] ListNetworkPoliciesResponse unreachable + * @interface ICluster + * @property {string|null} [name] Cluster name + * @property {google.protobuf.ITimestamp|null} [createTime] Cluster createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Cluster updateTime + * @property {google.cloud.vmwareengine.v1.Cluster.State|null} [state] Cluster state + * @property {boolean|null} [management] Cluster management + * @property {string|null} [uid] Cluster uid + * @property {Object.|null} [nodeTypeConfigs] Cluster nodeTypeConfigs */ /** - * Constructs a new ListNetworkPoliciesResponse. + * Constructs a new Cluster. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListNetworkPoliciesResponse. - * @implements IListNetworkPoliciesResponse + * @classdesc Represents a Cluster. + * @implements ICluster * @constructor - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set */ - function ListNetworkPoliciesResponse(properties) { - this.networkPolicies = []; - this.unreachable = []; + function Cluster(properties) { + this.nodeTypeConfigs = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13184,109 +12603,181 @@ } /** - * ListNetworkPoliciesResponse networkPolicies. - * @member {Array.} networkPolicies - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * Cluster name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.name = ""; + + /** + * Cluster createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.createTime = null; + + /** + * Cluster updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.updateTime = null; + + /** + * Cluster state. + * @member {google.cloud.vmwareengine.v1.Cluster.State} state + * @memberof google.cloud.vmwareengine.v1.Cluster + * @instance + */ + Cluster.prototype.state = 0; + + /** + * Cluster management. + * @member {boolean} management + * @memberof google.cloud.vmwareengine.v1.Cluster * @instance */ - ListNetworkPoliciesResponse.prototype.networkPolicies = $util.emptyArray; + Cluster.prototype.management = false; /** - * ListNetworkPoliciesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * Cluster uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.Cluster * @instance */ - ListNetworkPoliciesResponse.prototype.nextPageToken = ""; + Cluster.prototype.uid = ""; /** - * ListNetworkPoliciesResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * Cluster nodeTypeConfigs. + * @member {Object.} nodeTypeConfigs + * @memberof google.cloud.vmwareengine.v1.Cluster * @instance */ - ListNetworkPoliciesResponse.prototype.unreachable = $util.emptyArray; + Cluster.prototype.nodeTypeConfigs = $util.emptyObject; /** - * Creates a new ListNetworkPoliciesResponse instance using the specified properties. + * Creates a new Cluster instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse instance + * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster instance */ - ListNetworkPoliciesResponse.create = function create(properties) { - return new ListNetworkPoliciesResponse(properties); + Cluster.create = function create(properties) { + return new Cluster(properties); }; /** - * Encodes the specified ListNetworkPoliciesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse} message ListNetworkPoliciesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkPoliciesResponse.encode = function encode(message, writer) { + Cluster.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.networkPolicies != null && message.networkPolicies.length) - for (var i = 0; i < message.networkPolicies.length; ++i) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicies[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.management != null && Object.hasOwnProperty.call(message, "management")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.management); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.uid); + if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs")) + for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ListNetworkPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages. + * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @static - * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse} message ListNetworkPoliciesResponse message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNetworkPoliciesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Cluster.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer. + * Decodes a Cluster message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse + * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkPoliciesResponse.decode = function decode(reader, length) { + Cluster.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Cluster(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.networkPolicies && message.networkPolicies.length)) - message.networkPolicies = []; - message.networkPolicies.push($root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 7: { + message.management = reader.bool(); + break; + } + case 14: { + message.uid = reader.string(); + break; + } + case 16: { + if (message.nodeTypeConfigs === $util.emptyObject) + message.nodeTypeConfigs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.nodeTypeConfigs[key] = value; break; } default: @@ -13298,169 +12789,266 @@ }; /** - * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer, length delimited. + * Decodes a Cluster message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse + * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNetworkPoliciesResponse.decodeDelimited = function decodeDelimited(reader) { + Cluster.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNetworkPoliciesResponse message. + * Verifies a Cluster message. * @function verify - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNetworkPoliciesResponse.verify = function verify(message) { + Cluster.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.networkPolicies != null && message.hasOwnProperty("networkPolicies")) { - if (!Array.isArray(message.networkPolicies)) - return "networkPolicies: array expected"; - for (var i = 0; i < message.networkPolicies.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicies[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.management != null && message.hasOwnProperty("management")) + if (typeof message.management !== "boolean") + return "management: boolean expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) { + if (!$util.isObject(message.nodeTypeConfigs)) + return "nodeTypeConfigs: object expected"; + var key = Object.keys(message.nodeTypeConfigs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]); if (error) - return "networkPolicies." + error; + return "nodeTypeConfigs." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } return null; }; /** - * Creates a ListNetworkPoliciesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Cluster message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} ListNetworkPoliciesResponse + * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster */ - ListNetworkPoliciesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) + Cluster.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Cluster) return object; - var message = new $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(); - if (object.networkPolicies) { - if (!Array.isArray(object.networkPolicies)) - throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.networkPolicies: array expected"); - message.networkPolicies = []; - for (var i = 0; i < object.networkPolicies.length; ++i) { - if (typeof object.networkPolicies[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.networkPolicies: object expected"); - message.networkPolicies[i] = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicies[i]); + var message = new $root.google.cloud.vmwareengine.v1.Cluster(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.Cluster.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.Cluster.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + case "REPAIRING": + case 5: + message.state = 5; + break; } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + if (object.management != null) + message.management = Boolean(object.management); + if (object.uid != null) + message.uid = String(object.uid); + if (object.nodeTypeConfigs) { + if (typeof object.nodeTypeConfigs !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected"); + message.nodeTypeConfigs = {}; + for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) { + if (typeof object.nodeTypeConfigs[keys[i]] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected"); + message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]); + } } return message; }; /** - * Creates a plain object from a ListNetworkPoliciesResponse message. Also converts values to other types if specified. + * Creates a plain object from a Cluster message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @static - * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} message ListNetworkPoliciesResponse + * @param {google.cloud.vmwareengine.v1.Cluster} message Cluster * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNetworkPoliciesResponse.toObject = function toObject(message, options) { + Cluster.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.networkPolicies = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.networkPolicies && message.networkPolicies.length) { - object.networkPolicies = []; - for (var j = 0; j < message.networkPolicies.length; ++j) - object.networkPolicies[j] = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicies[j], options); + if (options.objects || options.defaults) + object.nodeTypeConfigs = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.management = false; + object.uid = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] : message.state; + if (message.management != null && message.hasOwnProperty("management")) + object.management = message.management; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + var keys2; + if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) { + object.nodeTypeConfigs = {}; + for (var j = 0; j < keys2.length; ++j) + object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options); } return object; }; /** - * Converts this ListNetworkPoliciesResponse to JSON. + * Converts this Cluster to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @instance * @returns {Object.} JSON object */ - ListNetworkPoliciesResponse.prototype.toJSON = function toJSON() { + Cluster.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNetworkPoliciesResponse + * Gets the default type url for Cluster * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + * @memberof google.cloud.vmwareengine.v1.Cluster * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNetworkPoliciesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Cluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Cluster"; }; - return ListNetworkPoliciesResponse; + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Cluster.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + * @property {number} REPAIRING=5 REPAIRING value + */ + Cluster.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + values[valuesById[5] = "REPAIRING"] = 5; + return values; + })(); + + return Cluster; })(); - v1.GetNetworkPolicyRequest = (function() { + v1.Subnet = (function() { /** - * Properties of a GetNetworkPolicyRequest. + * Properties of a Subnet. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetNetworkPolicyRequest - * @property {string|null} [name] GetNetworkPolicyRequest name + * @interface ISubnet + * @property {string|null} [name] Subnet name + * @property {string|null} [ipCidrRange] Subnet ipCidrRange + * @property {string|null} [gatewayIp] Subnet gatewayIp + * @property {string|null} [type] Subnet type + * @property {google.cloud.vmwareengine.v1.Subnet.State|null} [state] Subnet state */ /** - * Constructs a new GetNetworkPolicyRequest. + * Constructs a new Subnet. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetNetworkPolicyRequest. - * @implements IGetNetworkPolicyRequest + * @classdesc Represents a Subnet. + * @implements ISubnet * @constructor - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set */ - function GetNetworkPolicyRequest(properties) { + function Subnet(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13468,70 +13056,110 @@ } /** - * GetNetworkPolicyRequest name. + * Subnet name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @instance */ - GetNetworkPolicyRequest.prototype.name = ""; + Subnet.prototype.name = ""; /** - * Creates a new GetNetworkPolicyRequest instance using the specified properties. + * Subnet ipCidrRange. + * @member {string} ipCidrRange + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.ipCidrRange = ""; + + /** + * Subnet gatewayIp. + * @member {string} gatewayIp + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.gatewayIp = ""; + + /** + * Subnet type. + * @member {string} type + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.type = ""; + + /** + * Subnet state. + * @member {google.cloud.vmwareengine.v1.Subnet.State} state + * @memberof google.cloud.vmwareengine.v1.Subnet + * @instance + */ + Subnet.prototype.state = 0; + + /** + * Creates a new Subnet instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @static - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest instance + * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet instance */ - GetNetworkPolicyRequest.create = function create(properties) { - return new GetNetworkPolicyRequest(properties); + Subnet.create = function create(properties) { + return new Subnet(properties); }; /** - * Encodes the specified GetNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @static - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} message GetNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNetworkPolicyRequest.encode = function encode(message, writer) { + Subnet.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.ipCidrRange); + if (message.gatewayIp != null && Object.hasOwnProperty.call(message, "gatewayIp")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.gatewayIp); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.type); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.state); return writer; }; /** - * Encodes the specified GetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @static - * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} message GetNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + Subnet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a Subnet message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNetworkPolicyRequest.decode = function decode(reader, length) { + Subnet.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Subnet(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13539,6 +13167,22 @@ message.name = reader.string(); break; } + case 7: { + message.ipCidrRange = reader.string(); + break; + } + case 8: { + message.gatewayIp = reader.string(); + break; + } + case 11: { + message.type = reader.string(); + break; + } + case 13: { + message.state = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -13548,124 +13192,217 @@ }; /** - * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a Subnet message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + Subnet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNetworkPolicyRequest message. + * Verifies a Subnet message. * @function verify - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNetworkPolicyRequest.verify = function verify(message) { + Subnet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + if (!$util.isString(message.ipCidrRange)) + return "ipCidrRange: string expected"; + if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp")) + if (!$util.isString(message.gatewayIp)) + return "gatewayIp: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } return null; }; /** - * Creates a GetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Subnet message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} GetNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet */ - GetNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) + Subnet.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Subnet) return object; - var message = new $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(); + var message = new $root.google.cloud.vmwareengine.v1.Subnet(); if (object.name != null) message.name = String(object.name); + if (object.ipCidrRange != null) + message.ipCidrRange = String(object.ipCidrRange); + if (object.gatewayIp != null) + message.gatewayIp = String(object.gatewayIp); + if (object.type != null) + message.type = String(object.type); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + } return message; }; /** - * Creates a plain object from a GetNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a Subnet message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @static - * @param {google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} message GetNetworkPolicyRequest + * @param {google.cloud.vmwareengine.v1.Subnet} message Subnet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNetworkPolicyRequest.toObject = function toObject(message, options) { + Subnet.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.ipCidrRange = ""; + object.gatewayIp = ""; + object.type = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + object.ipCidrRange = message.ipCidrRange; + if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp")) + object.gatewayIp = message.gatewayIp; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] : message.state; return object; }; /** - * Converts this GetNetworkPolicyRequest to JSON. + * Converts this Subnet to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @instance * @returns {Object.} JSON object */ - GetNetworkPolicyRequest.prototype.toJSON = function toJSON() { + Subnet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetNetworkPolicyRequest + * Gets the default type url for Subnet * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Subnet * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Subnet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNetworkPolicyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Subnet"; }; - return GetNetworkPolicyRequest; + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Subnet.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value + */ + Subnet.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + return values; + })(); + + return Subnet; })(); - v1.UpdateNetworkPolicyRequest = (function() { + v1.NodeType = (function() { /** - * Properties of an UpdateNetworkPolicyRequest. + * Properties of a NodeType. * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdateNetworkPolicyRequest - * @property {google.cloud.vmwareengine.v1.INetworkPolicy|null} [networkPolicy] UpdateNetworkPolicyRequest networkPolicy - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateNetworkPolicyRequest updateMask - * @property {string|null} [requestId] UpdateNetworkPolicyRequest requestId + * @interface INodeType + * @property {string|null} [name] NodeType name + * @property {string|null} [nodeTypeId] NodeType nodeTypeId + * @property {string|null} [displayName] NodeType displayName + * @property {number|null} [virtualCpuCount] NodeType virtualCpuCount + * @property {number|null} [totalCoreCount] NodeType totalCoreCount + * @property {number|null} [memoryGb] NodeType memoryGb + * @property {number|null} [diskSizeGb] NodeType diskSizeGb + * @property {Array.|null} [availableCustomCoreCounts] NodeType availableCustomCoreCounts */ /** - * Constructs a new UpdateNetworkPolicyRequest. + * Constructs a new NodeType. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdateNetworkPolicyRequest. - * @implements IUpdateNetworkPolicyRequest + * @classdesc Represents a NodeType. + * @implements INodeType * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set */ - function UpdateNetworkPolicyRequest(properties) { + function NodeType(properties) { + this.availableCustomCoreCounts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13673,103 +13410,184 @@ } /** - * UpdateNetworkPolicyRequest networkPolicy. - * @member {google.cloud.vmwareengine.v1.INetworkPolicy|null|undefined} networkPolicy - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * NodeType name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.NodeType * @instance */ - UpdateNetworkPolicyRequest.prototype.networkPolicy = null; + NodeType.prototype.name = ""; /** - * UpdateNetworkPolicyRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * NodeType nodeTypeId. + * @member {string} nodeTypeId + * @memberof google.cloud.vmwareengine.v1.NodeType * @instance */ - UpdateNetworkPolicyRequest.prototype.updateMask = null; + NodeType.prototype.nodeTypeId = ""; /** - * UpdateNetworkPolicyRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * NodeType displayName. + * @member {string} displayName + * @memberof google.cloud.vmwareengine.v1.NodeType * @instance */ - UpdateNetworkPolicyRequest.prototype.requestId = ""; + NodeType.prototype.displayName = ""; /** - * Creates a new UpdateNetworkPolicyRequest instance using the specified properties. + * NodeType virtualCpuCount. + * @member {number} virtualCpuCount + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.virtualCpuCount = 0; + + /** + * NodeType totalCoreCount. + * @member {number} totalCoreCount + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.totalCoreCount = 0; + + /** + * NodeType memoryGb. + * @member {number} memoryGb + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.memoryGb = 0; + + /** + * NodeType diskSizeGb. + * @member {number} diskSizeGb + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.diskSizeGb = 0; + + /** + * NodeType availableCustomCoreCounts. + * @member {Array.} availableCustomCoreCounts + * @memberof google.cloud.vmwareengine.v1.NodeType + * @instance + */ + NodeType.prototype.availableCustomCoreCounts = $util.emptyArray; + + /** + * Creates a new NodeType instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @static - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest instance + * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType instance */ - UpdateNetworkPolicyRequest.create = function create(properties) { - return new UpdateNetworkPolicyRequest(properties); + NodeType.create = function create(properties) { + return new NodeType(properties); }; /** - * Encodes the specified UpdateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @static - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateNetworkPolicyRequest.encode = function encode(message, writer) { + NodeType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.nodeTypeId != null && Object.hasOwnProperty.call(message, "nodeTypeId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nodeTypeId); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.virtualCpuCount != null && Object.hasOwnProperty.call(message, "virtualCpuCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.virtualCpuCount); + if (message.totalCoreCount != null && Object.hasOwnProperty.call(message, "totalCoreCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.totalCoreCount); + if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.memoryGb); + if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.diskSizeGb); + if (message.availableCustomCoreCounts != null && message.availableCustomCoreCounts.length) { + writer.uint32(/* id 11, wireType 2 =*/90).fork(); + for (var i = 0; i < message.availableCustomCoreCounts.length; ++i) + writer.int32(message.availableCustomCoreCounts[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified UpdateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @static - * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + NodeType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a NodeType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateNetworkPolicyRequest.decode = function decode(reader, length) { + NodeType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NodeType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nodeTypeId = reader.string(); break; } case 3: { - message.requestId = reader.string(); + message.displayName = reader.string(); + break; + } + case 4: { + message.virtualCpuCount = reader.int32(); + break; + } + case 5: { + message.totalCoreCount = reader.int32(); + break; + } + case 7: { + message.memoryGb = reader.int32(); + break; + } + case 8: { + message.diskSizeGb = reader.int32(); + break; + } + case 11: { + if (!(message.availableCustomCoreCounts && message.availableCustomCoreCounts.length)) + message.availableCustomCoreCounts = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.availableCustomCoreCounts.push(reader.int32()); + } else + message.availableCustomCoreCounts.push(reader.int32()); break; } default: @@ -13781,270 +13599,283 @@ }; /** - * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a NodeType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + NodeType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateNetworkPolicyRequest message. + * Verifies a NodeType message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateNetworkPolicyRequest.verify = function verify(message) { + NodeType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicy); - if (error) - return "networkPolicy." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) + if (!$util.isString(message.nodeTypeId)) + return "nodeTypeId: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount")) + if (!$util.isInteger(message.virtualCpuCount)) + return "virtualCpuCount: integer expected"; + if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount")) + if (!$util.isInteger(message.totalCoreCount)) + return "totalCoreCount: integer expected"; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + if (!$util.isInteger(message.memoryGb)) + return "memoryGb: integer expected"; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + if (!$util.isInteger(message.diskSizeGb)) + return "diskSizeGb: integer expected"; + if (message.availableCustomCoreCounts != null && message.hasOwnProperty("availableCustomCoreCounts")) { + if (!Array.isArray(message.availableCustomCoreCounts)) + return "availableCustomCoreCounts: array expected"; + for (var i = 0; i < message.availableCustomCoreCounts.length; ++i) + if (!$util.isInteger(message.availableCustomCoreCounts[i])) + return "availableCustomCoreCounts: integer[] expected"; } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; return null; }; /** - * Creates an UpdateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NodeType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} UpdateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType */ - UpdateNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) + NodeType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NodeType) return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(); - if (object.networkPolicy != null) { - if (typeof object.networkPolicy !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.networkPolicy: object expected"); - message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicy); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.vmwareengine.v1.NodeType(); + if (object.name != null) + message.name = String(object.name); + if (object.nodeTypeId != null) + message.nodeTypeId = String(object.nodeTypeId); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.virtualCpuCount != null) + message.virtualCpuCount = object.virtualCpuCount | 0; + if (object.totalCoreCount != null) + message.totalCoreCount = object.totalCoreCount | 0; + if (object.memoryGb != null) + message.memoryGb = object.memoryGb | 0; + if (object.diskSizeGb != null) + message.diskSizeGb = object.diskSizeGb | 0; + if (object.availableCustomCoreCounts) { + if (!Array.isArray(object.availableCustomCoreCounts)) + throw TypeError(".google.cloud.vmwareengine.v1.NodeType.availableCustomCoreCounts: array expected"); + message.availableCustomCoreCounts = []; + for (var i = 0; i < object.availableCustomCoreCounts.length; ++i) + message.availableCustomCoreCounts[i] = object.availableCustomCoreCounts[i] | 0; } - if (object.requestId != null) - message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from an UpdateNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a NodeType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @static - * @param {google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} message UpdateNetworkPolicyRequest + * @param {google.cloud.vmwareengine.v1.NodeType} message NodeType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateNetworkPolicyRequest.toObject = function toObject(message, options) { + NodeType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.availableCustomCoreCounts = []; if (options.defaults) { - object.networkPolicy = null; - object.updateMask = null; - object.requestId = ""; + object.name = ""; + object.nodeTypeId = ""; + object.displayName = ""; + object.virtualCpuCount = 0; + object.totalCoreCount = 0; + object.memoryGb = 0; + object.diskSizeGb = 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId")) + object.nodeTypeId = message.nodeTypeId; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount")) + object.virtualCpuCount = message.virtualCpuCount; + if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount")) + object.totalCoreCount = message.totalCoreCount; + if (message.memoryGb != null && message.hasOwnProperty("memoryGb")) + object.memoryGb = message.memoryGb; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + object.diskSizeGb = message.diskSizeGb; + if (message.availableCustomCoreCounts && message.availableCustomCoreCounts.length) { + object.availableCustomCoreCounts = []; + for (var j = 0; j < message.availableCustomCoreCounts.length; ++j) + object.availableCustomCoreCounts[j] = message.availableCustomCoreCounts[j]; } - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - object.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicy, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; return object; }; /** - * Converts this UpdateNetworkPolicyRequest to JSON. + * Converts this NodeType to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @instance * @returns {Object.} JSON object */ - UpdateNetworkPolicyRequest.prototype.toJSON = function toJSON() { + NodeType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateNetworkPolicyRequest + * Gets the default type url for NodeType * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.NodeType * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NodeType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeType"; }; - return UpdateNetworkPolicyRequest; + return NodeType; })(); - v1.CreateNetworkPolicyRequest = (function() { - - /** - * Properties of a CreateNetworkPolicyRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface ICreateNetworkPolicyRequest - * @property {string|null} [parent] CreateNetworkPolicyRequest parent - * @property {string|null} [networkPolicyId] CreateNetworkPolicyRequest networkPolicyId - * @property {google.cloud.vmwareengine.v1.INetworkPolicy|null} [networkPolicy] CreateNetworkPolicyRequest networkPolicy - * @property {string|null} [requestId] CreateNetworkPolicyRequest requestId - */ + v1.Credentials = (function() { /** - * Constructs a new CreateNetworkPolicyRequest. + * Properties of a Credentials. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreateNetworkPolicyRequest. - * @implements ICreateNetworkPolicyRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest=} [properties] Properties to set - */ - function CreateNetworkPolicyRequest(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]]; - } - - /** - * CreateNetworkPolicyRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest - * @instance + * @interface ICredentials + * @property {string|null} [username] Credentials username + * @property {string|null} [password] Credentials password */ - CreateNetworkPolicyRequest.prototype.parent = ""; /** - * CreateNetworkPolicyRequest networkPolicyId. - * @member {string} networkPolicyId - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest - * @instance + * Constructs a new Credentials. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Credentials. + * @implements ICredentials + * @constructor + * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set */ - CreateNetworkPolicyRequest.prototype.networkPolicyId = ""; + function Credentials(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]]; + } /** - * CreateNetworkPolicyRequest networkPolicy. - * @member {google.cloud.vmwareengine.v1.INetworkPolicy|null|undefined} networkPolicy - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * Credentials username. + * @member {string} username + * @memberof google.cloud.vmwareengine.v1.Credentials * @instance */ - CreateNetworkPolicyRequest.prototype.networkPolicy = null; + Credentials.prototype.username = ""; /** - * CreateNetworkPolicyRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * Credentials password. + * @member {string} password + * @memberof google.cloud.vmwareengine.v1.Credentials * @instance */ - CreateNetworkPolicyRequest.prototype.requestId = ""; + Credentials.prototype.password = ""; /** - * Creates a new CreateNetworkPolicyRequest instance using the specified properties. + * Creates a new Credentials instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @static - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest instance + * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials instance */ - CreateNetworkPolicyRequest.create = function create(properties) { - return new CreateNetworkPolicyRequest(properties); + Credentials.create = function create(properties) { + return new Credentials(properties); }; /** - * Encodes the specified CreateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @static - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} message CreateNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNetworkPolicyRequest.encode = function encode(message, writer) { + Credentials.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.networkPolicyId != null && Object.hasOwnProperty.call(message, "networkPolicyId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.networkPolicyId); - if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) - $root.google.cloud.vmwareengine.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); return writer; }; /** - * Encodes the specified CreateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @static - * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} message CreateNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + Credentials.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a Credentials message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNetworkPolicyRequest.decode = function decode(reader, length) { + Credentials.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Credentials(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.username = reader.string(); break; } case 2: { - message.networkPolicyId = reader.string(); - break; - } - case 3: { - message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.decode(reader, reader.uint32()); - break; - } - case 4: { - message.requestId = reader.string(); + message.password = reader.string(); break; } default: @@ -14056,153 +13887,135 @@ }; /** - * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a Credentials message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + Credentials.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateNetworkPolicyRequest message. + * Verifies a Credentials message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateNetworkPolicyRequest.verify = function verify(message) { + Credentials.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.networkPolicyId != null && message.hasOwnProperty("networkPolicyId")) - if (!$util.isString(message.networkPolicyId)) - return "networkPolicyId: string expected"; - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { - var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.verify(message.networkPolicy); - if (error) - return "networkPolicy." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; return null; }; /** - * Creates a CreateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Credentials message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} CreateNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials */ - CreateNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) + Credentials.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Credentials) return object; - var message = new $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.networkPolicyId != null) - message.networkPolicyId = String(object.networkPolicyId); - if (object.networkPolicy != null) { - if (typeof object.networkPolicy !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.networkPolicy: object expected"); - message.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.fromObject(object.networkPolicy); - } - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.vmwareengine.v1.Credentials(); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); return message; }; /** - * Creates a plain object from a CreateNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a Credentials message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @static - * @param {google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} message CreateNetworkPolicyRequest + * @param {google.cloud.vmwareengine.v1.Credentials} message Credentials * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateNetworkPolicyRequest.toObject = function toObject(message, options) { + Credentials.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.networkPolicyId = ""; - object.networkPolicy = null; - object.requestId = ""; + object.username = ""; + object.password = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.networkPolicyId != null && message.hasOwnProperty("networkPolicyId")) - object.networkPolicyId = message.networkPolicyId; - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - object.networkPolicy = $root.google.cloud.vmwareengine.v1.NetworkPolicy.toObject(message.networkPolicy, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; return object; }; /** - * Converts this CreateNetworkPolicyRequest to JSON. + * Converts this Credentials to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @instance * @returns {Object.} JSON object */ - CreateNetworkPolicyRequest.prototype.toJSON = function toJSON() { + Credentials.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateNetworkPolicyRequest + * Gets the default type url for Credentials * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.Credentials * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Credentials.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Credentials"; }; - return CreateNetworkPolicyRequest; + return Credentials; })(); - v1.DeleteNetworkPolicyRequest = (function() { + v1.HcxActivationKey = (function() { /** - * Properties of a DeleteNetworkPolicyRequest. + * Properties of a HcxActivationKey. * @memberof google.cloud.vmwareengine.v1 - * @interface IDeleteNetworkPolicyRequest - * @property {string|null} [name] DeleteNetworkPolicyRequest name - * @property {string|null} [requestId] DeleteNetworkPolicyRequest requestId + * @interface IHcxActivationKey + * @property {string|null} [name] HcxActivationKey name + * @property {google.protobuf.ITimestamp|null} [createTime] HcxActivationKey createTime + * @property {google.cloud.vmwareengine.v1.HcxActivationKey.State|null} [state] HcxActivationKey state + * @property {string|null} [activationKey] HcxActivationKey activationKey + * @property {string|null} [uid] HcxActivationKey uid */ /** - * Constructs a new DeleteNetworkPolicyRequest. + * Constructs a new HcxActivationKey. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a DeleteNetworkPolicyRequest. - * @implements IDeleteNetworkPolicyRequest + * @classdesc Represents a HcxActivationKey. + * @implements IHcxActivationKey * @constructor - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set */ - function DeleteNetworkPolicyRequest(properties) { + function HcxActivationKey(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14210,80 +14023,110 @@ } /** - * DeleteNetworkPolicyRequest name. + * HcxActivationKey name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @instance */ - DeleteNetworkPolicyRequest.prototype.name = ""; + HcxActivationKey.prototype.name = ""; /** - * DeleteNetworkPolicyRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * HcxActivationKey createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @instance */ - DeleteNetworkPolicyRequest.prototype.requestId = ""; + HcxActivationKey.prototype.createTime = null; /** - * Creates a new DeleteNetworkPolicyRequest instance using the specified properties. + * HcxActivationKey state. + * @member {google.cloud.vmwareengine.v1.HcxActivationKey.State} state + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @instance + */ + HcxActivationKey.prototype.state = 0; + + /** + * HcxActivationKey activationKey. + * @member {string} activationKey + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @instance + */ + HcxActivationKey.prototype.activationKey = ""; + + /** + * HcxActivationKey uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey + * @instance + */ + HcxActivationKey.prototype.uid = ""; + + /** + * Creates a new HcxActivationKey instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @static - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest instance + * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey instance */ - DeleteNetworkPolicyRequest.create = function create(properties) { - return new DeleteNetworkPolicyRequest(properties); + HcxActivationKey.create = function create(properties) { + return new HcxActivationKey(properties); }; /** - * Encodes the specified DeleteNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @static - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNetworkPolicyRequest.encode = function encode(message, writer) { + HcxActivationKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.activationKey != null && Object.hasOwnProperty.call(message, "activationKey")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.activationKey); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.uid); return writer; }; /** - * Encodes the specified DeleteNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @static - * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + HcxActivationKey.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a HcxActivationKey message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNetworkPolicyRequest.decode = function decode(reader, length) { + HcxActivationKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.HcxActivationKey(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -14292,7 +14135,19 @@ break; } case 2: { - message.requestId = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.state = reader.int32(); + break; + } + case 4: { + message.activationKey = reader.string(); + break; + } + case 5: { + message.uid = reader.string(); break; } default: @@ -14304,331 +14159,328 @@ }; /** - * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + HcxActivationKey.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteNetworkPolicyRequest message. + * Verifies a HcxActivationKey message. * @function verify - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteNetworkPolicyRequest.verify = function verify(message) { + HcxActivationKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.activationKey != null && message.hasOwnProperty("activationKey")) + if (!$util.isString(message.activationKey)) + return "activationKey: string expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; return null; }; /** - * Creates a DeleteNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HcxActivationKey message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} DeleteNetworkPolicyRequest + * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey */ - DeleteNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) + HcxActivationKey.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.HcxActivationKey) return object; - var message = new $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(); + var message = new $root.google.cloud.vmwareengine.v1.HcxActivationKey(); if (object.name != null) message.name = String(object.name); - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.HcxActivationKey.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "AVAILABLE": + case 1: + message.state = 1; + break; + case "CONSUMED": + case 2: + message.state = 2; + break; + case "CREATING": + case 3: + message.state = 3; + break; + } + if (object.activationKey != null) + message.activationKey = String(object.activationKey); + if (object.uid != null) + message.uid = String(object.uid); return message; }; /** - * Creates a plain object from a DeleteNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @static - * @param {google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} message DeleteNetworkPolicyRequest + * @param {google.cloud.vmwareengine.v1.HcxActivationKey} message HcxActivationKey * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteNetworkPolicyRequest.toObject = function toObject(message, options) { + HcxActivationKey.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.requestId = ""; + object.createTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.activationKey = ""; + object.uid = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.HcxActivationKey.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.HcxActivationKey.State[message.state] : message.state; + if (message.activationKey != null && message.hasOwnProperty("activationKey")) + object.activationKey = message.activationKey; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; return object; }; /** - * Converts this DeleteNetworkPolicyRequest to JSON. + * Converts this HcxActivationKey to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @instance * @returns {Object.} JSON object */ - DeleteNetworkPolicyRequest.prototype.toJSON = function toJSON() { + HcxActivationKey.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteNetworkPolicyRequest + * Gets the default type url for HcxActivationKey * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + * @memberof google.cloud.vmwareengine.v1.HcxActivationKey * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HcxActivationKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.HcxActivationKey"; }; - return DeleteNetworkPolicyRequest; - })(); - - v1.VmwareEngineNetwork = (function() { - - /** - * Properties of a VmwareEngineNetwork. - * @memberof google.cloud.vmwareengine.v1 - * @interface IVmwareEngineNetwork - * @property {string|null} [name] VmwareEngineNetwork name - * @property {google.protobuf.ITimestamp|null} [createTime] VmwareEngineNetwork createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] VmwareEngineNetwork updateTime - * @property {string|null} [description] VmwareEngineNetwork description - * @property {Array.|null} [vpcNetworks] VmwareEngineNetwork vpcNetworks - * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|null} [state] VmwareEngineNetwork state - * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|null} [type] VmwareEngineNetwork type - * @property {string|null} [uid] VmwareEngineNetwork uid - * @property {string|null} [etag] VmwareEngineNetwork etag - */ - - /** - * Constructs a new VmwareEngineNetwork. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a VmwareEngineNetwork. - * @implements IVmwareEngineNetwork - * @constructor - * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork=} [properties] Properties to set - */ - function VmwareEngineNetwork(properties) { - this.vpcNetworks = []; - 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]]; - } - - /** - * VmwareEngineNetwork name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance - */ - VmwareEngineNetwork.prototype.name = ""; - /** - * VmwareEngineNetwork createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance + * State enum. + * @name google.cloud.vmwareengine.v1.HcxActivationKey.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} AVAILABLE=1 AVAILABLE value + * @property {number} CONSUMED=2 CONSUMED value + * @property {number} CREATING=3 CREATING value */ - VmwareEngineNetwork.prototype.createTime = null; + HcxActivationKey.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AVAILABLE"] = 1; + values[valuesById[2] = "CONSUMED"] = 2; + values[valuesById[3] = "CREATING"] = 3; + return values; + })(); - /** - * VmwareEngineNetwork updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance - */ - VmwareEngineNetwork.prototype.updateTime = null; + return HcxActivationKey; + })(); + + v1.Hcx = (function() { /** - * VmwareEngineNetwork description. - * @member {string} description - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance + * Properties of a Hcx. + * @memberof google.cloud.vmwareengine.v1 + * @interface IHcx + * @property {string|null} [internalIp] Hcx internalIp + * @property {string|null} [version] Hcx version + * @property {google.cloud.vmwareengine.v1.Hcx.State|null} [state] Hcx state + * @property {string|null} [fqdn] Hcx fqdn */ - VmwareEngineNetwork.prototype.description = ""; /** - * VmwareEngineNetwork vpcNetworks. - * @member {Array.} vpcNetworks - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @instance + * Constructs a new Hcx. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Hcx. + * @implements IHcx + * @constructor + * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set */ - VmwareEngineNetwork.prototype.vpcNetworks = $util.emptyArray; + function Hcx(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]]; + } /** - * VmwareEngineNetwork state. - * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.State} state - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * Hcx internalIp. + * @member {string} internalIp + * @memberof google.cloud.vmwareengine.v1.Hcx * @instance */ - VmwareEngineNetwork.prototype.state = 0; + Hcx.prototype.internalIp = ""; /** - * VmwareEngineNetwork type. - * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type} type - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * Hcx version. + * @member {string} version + * @memberof google.cloud.vmwareengine.v1.Hcx * @instance */ - VmwareEngineNetwork.prototype.type = 0; + Hcx.prototype.version = ""; /** - * VmwareEngineNetwork uid. - * @member {string} uid - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * Hcx state. + * @member {google.cloud.vmwareengine.v1.Hcx.State} state + * @memberof google.cloud.vmwareengine.v1.Hcx * @instance */ - VmwareEngineNetwork.prototype.uid = ""; + Hcx.prototype.state = 0; /** - * VmwareEngineNetwork etag. - * @member {string} etag - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * Hcx fqdn. + * @member {string} fqdn + * @memberof google.cloud.vmwareengine.v1.Hcx * @instance */ - VmwareEngineNetwork.prototype.etag = ""; + Hcx.prototype.fqdn = ""; /** - * Creates a new VmwareEngineNetwork instance using the specified properties. + * Creates a new Hcx instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @static - * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork instance + * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx instance */ - VmwareEngineNetwork.create = function create(properties) { - return new VmwareEngineNetwork(properties); + Hcx.create = function create(properties) { + return new Hcx(properties); }; /** - * Encodes the specified VmwareEngineNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @static - * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork} message VmwareEngineNetwork message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VmwareEngineNetwork.encode = function encode(message, writer) { + Hcx.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.description); - if (message.vpcNetworks != null && message.vpcNetworks.length) - for (var i = 0; i < message.vpcNetworks.length; ++i) - $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.encode(message.vpcNetworks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.type); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.uid); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.etag); + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); return writer; }; /** - * Encodes the specified VmwareEngineNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. + * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @static - * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork} message VmwareEngineNetwork message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VmwareEngineNetwork.encodeDelimited = function encodeDelimited(message, writer) { + Hcx.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VmwareEngineNetwork message from the specified reader or buffer. + * Decodes a Hcx message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VmwareEngineNetwork.decode = function decode(reader, length) { + Hcx.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Hcx(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.internalIp = reader.string(); break; } - case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 4: { + message.version = reader.string(); break; } case 5: { - message.description = reader.string(); - break; - } - case 6: { - if (!(message.vpcNetworks && message.vpcNetworks.length)) - message.vpcNetworks = []; - message.vpcNetworks.push($root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.decode(reader, reader.uint32())); - break; - } - case 7: { message.state = reader.int32(); break; } - case 8: { - message.type = reader.int32(); - break; - } - case 9: { - message.uid = reader.string(); - break; - } - case 10: { - message.etag = reader.string(); + case 6: { + message.fqdn = reader.string(); break; } default: @@ -14640,57 +14492,38 @@ }; /** - * Decodes a VmwareEngineNetwork message from the specified reader or buffer, length delimited. + * Decodes a Hcx message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VmwareEngineNetwork.decodeDelimited = function decodeDelimited(reader) { + Hcx.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VmwareEngineNetwork message. + * Verifies a Hcx message. * @function verify - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VmwareEngineNetwork.verify = function verify(message) { + Hcx.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.vpcNetworks != null && message.hasOwnProperty("vpcNetworks")) { - if (!Array.isArray(message.vpcNetworks)) - return "vpcNetworks: array expected"; - for (var i = 0; i < message.vpcNetworks.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify(message.vpcNetworks[i]); - if (error) - return "vpcNetworks." + error; - } - } + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + if (!$util.isString(message.internalIp)) + return "internalIp: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; if (message.state != null && message.hasOwnProperty("state")) switch (message.state) { default: @@ -14698,63 +14531,30 @@ case 0: case 1: case 2: - case 3: - case 4: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: break; } - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + if (!$util.isString(message.fqdn)) + return "fqdn: string expected"; return null; }; /** - * Creates a VmwareEngineNetwork message from a plain object. Also converts values to their respective internal types. + * Creates a Hcx message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx */ - VmwareEngineNetwork.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork) - return object; - var message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.description != null) - message.description = String(object.description); - if (object.vpcNetworks) { - if (!Array.isArray(object.vpcNetworks)) - throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.vpcNetworks: array expected"); - message.vpcNetworks = []; - for (var i = 0; i < object.vpcNetworks.length; ++i) { - if (typeof object.vpcNetworks[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.vpcNetworks: object expected"); - message.vpcNetworks[i] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.fromObject(object.vpcNetworks[i]); - } - } + Hcx.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Hcx) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Hcx(); + if (object.internalIp != null) + message.internalIp = String(object.internalIp); + if (object.version != null) + message.version = String(object.version); switch (object.state) { default: if (typeof object.state === "number") { @@ -14766,453 +14566,429 @@ case 0: message.state = 0; break; - case "CREATING": + case "ACTIVE": case 1: message.state = 1; break; - case "ACTIVE": + case "CREATING": case 2: message.state = 2; break; - case "UPDATING": - case 3: - message.state = 3; - break; - case "DELETING": - case 4: - message.state = 4; - break; - } - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "LEGACY": - case 1: - message.type = 1; - break; } - if (object.uid != null) - message.uid = String(object.uid); - if (object.etag != null) - message.etag = String(object.etag); + if (object.fqdn != null) + message.fqdn = String(object.fqdn); return message; }; /** - * Creates a plain object from a VmwareEngineNetwork message. Also converts values to other types if specified. + * Creates a plain object from a Hcx message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} message VmwareEngineNetwork + * @param {google.cloud.vmwareengine.v1.Hcx} message Hcx * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VmwareEngineNetwork.toObject = function toObject(message, options) { + Hcx.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.vpcNetworks = []; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.description = ""; + object.internalIp = ""; + object.version = ""; object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.uid = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.vpcNetworks && message.vpcNetworks.length) { - object.vpcNetworks = []; - for (var j = 0; j < message.vpcNetworks.length; ++j) - object.vpcNetworks[j] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.toObject(message.vpcNetworks[j], options); + object.fqdn = ""; } + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + object.internalIp = message.internalIp; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State[message.state] : message.state; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type[message.type] : message.type; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] : message.state; + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + object.fqdn = message.fqdn; return object; }; /** - * Converts this VmwareEngineNetwork to JSON. + * Converts this Hcx to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @instance * @returns {Object.} JSON object */ - VmwareEngineNetwork.prototype.toJSON = function toJSON() { + Hcx.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VmwareEngineNetwork + * Gets the default type url for Hcx * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.Hcx * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VmwareEngineNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Hcx.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.VmwareEngineNetwork"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Hcx"; }; - VmwareEngineNetwork.VpcNetwork = (function() { + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Hcx.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + */ + Hcx.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + return values; + })(); - /** - * Properties of a VpcNetwork. - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @interface IVpcNetwork - * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|null} [type] VpcNetwork type - * @property {string|null} [network] VpcNetwork network - */ + return Hcx; + })(); - /** - * Constructs a new VpcNetwork. - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork - * @classdesc Represents a VpcNetwork. - * @implements IVpcNetwork - * @constructor - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork=} [properties] Properties to set - */ - function VpcNetwork(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]]; - } + v1.Nsx = (function() { - /** - * VpcNetwork type. - * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type} type - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @instance - */ - VpcNetwork.prototype.type = 0; + /** + * Properties of a Nsx. + * @memberof google.cloud.vmwareengine.v1 + * @interface INsx + * @property {string|null} [internalIp] Nsx internalIp + * @property {string|null} [version] Nsx version + * @property {google.cloud.vmwareengine.v1.Nsx.State|null} [state] Nsx state + * @property {string|null} [fqdn] Nsx fqdn + */ - /** - * VpcNetwork network. - * @member {string} network - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @instance - */ - VpcNetwork.prototype.network = ""; + /** + * Constructs a new Nsx. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a Nsx. + * @implements INsx + * @constructor + * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set + */ + function Nsx(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]]; + } - /** - * Creates a new VpcNetwork instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork instance - */ - VpcNetwork.create = function create(properties) { - return new VpcNetwork(properties); - }; + /** + * Nsx internalIp. + * @member {string} internalIp + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + */ + Nsx.prototype.internalIp = ""; - /** - * Encodes the specified VpcNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork} message VpcNetwork message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VpcNetwork.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); - return writer; - }; + /** + * Nsx version. + * @member {string} version + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + */ + Nsx.prototype.version = ""; + + /** + * Nsx state. + * @member {google.cloud.vmwareengine.v1.Nsx.State} state + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + */ + Nsx.prototype.state = 0; + + /** + * Nsx fqdn. + * @member {string} fqdn + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + */ + Nsx.prototype.fqdn = ""; + + /** + * Creates a new Nsx instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx instance + */ + Nsx.create = function create(properties) { + return new Nsx(properties); + }; + + /** + * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Nsx.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); + return writer; + }; - /** - * Encodes the specified VpcNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork} message VpcNetwork message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VpcNetwork.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Nsx.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a VpcNetwork message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VpcNetwork.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 2: { - message.network = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a Nsx message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Nsx.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Nsx(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.internalIp = reader.string(); break; } - } - return message; - }; - - /** - * Decodes a VpcNetwork message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VpcNetwork.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VpcNetwork message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VpcNetwork.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: + case 4: { + message.version = reader.string(); break; } - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - return null; - }; - - /** - * Creates a VpcNetwork message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork - */ - VpcNetwork.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) - return object; - var message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; + case 5: { + message.state = reader.int32(); break; } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INTRANET": - case 1: - message.type = 1; - break; - case "INTERNET": - case 2: - message.type = 2; - break; - case "GOOGLE_CLOUD": - case 3: - message.type = 3; + case 6: { + message.fqdn = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - if (object.network != null) - message.network = String(object.network); - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a VpcNetwork message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} message VpcNetwork - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VpcNetwork.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.network = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type[message.type] : message.type; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - return object; - }; + /** + * Decodes a Nsx message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Nsx.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this VpcNetwork to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @instance - * @returns {Object.} JSON object - */ - VpcNetwork.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a Nsx message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Nsx.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + if (!$util.isString(message.internalIp)) + return "internalIp: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + if (!$util.isString(message.fqdn)) + return "fqdn: string expected"; + return null; + }; - /** - * Gets the default type url for VpcNetwork - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - VpcNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Creates a Nsx message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx + */ + Nsx.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Nsx) + return object; + var message = new $root.google.cloud.vmwareengine.v1.Nsx(); + if (object.internalIp != null) + message.internalIp = String(object.internalIp); + if (object.version != null) + message.version = String(object.version); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork"; - }; + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + } + if (object.fqdn != null) + message.fqdn = String(object.fqdn); + return message; + }; - /** - * Type enum. - * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} INTRANET=1 INTRANET value - * @property {number} INTERNET=2 INTERNET value - * @property {number} GOOGLE_CLOUD=3 GOOGLE_CLOUD value - */ - VpcNetwork.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTRANET"] = 1; - values[valuesById[2] = "INTERNET"] = 2; - values[valuesById[3] = "GOOGLE_CLOUD"] = 3; - return values; - })(); + /** + * Creates a plain object from a Nsx message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {google.cloud.vmwareengine.v1.Nsx} message Nsx + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Nsx.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.internalIp = ""; + object.version = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.fqdn = ""; + } + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + object.internalIp = message.internalIp; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] : message.state; + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + object.fqdn = message.fqdn; + return object; + }; - return VpcNetwork; - })(); + /** + * Converts this Nsx to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.Nsx + * @instance + * @returns {Object.} JSON object + */ + Nsx.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * State enum. - * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} CREATING=1 CREATING value - * @property {number} ACTIVE=2 ACTIVE value - * @property {number} UPDATING=3 UPDATING value - * @property {number} DELETING=4 DELETING value + * Gets the default type url for Nsx + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.Nsx + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - VmwareEngineNetwork.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATING"] = 1; - values[valuesById[2] = "ACTIVE"] = 2; - values[valuesById[3] = "UPDATING"] = 3; - values[valuesById[4] = "DELETING"] = 4; - return values; - })(); + Nsx.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Nsx"; + }; /** - * Type enum. - * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type + * State enum. + * @name google.cloud.vmwareengine.v1.Nsx.State * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} LEGACY=1 LEGACY value + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value */ - VmwareEngineNetwork.Type = (function() { + Nsx.State = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LEGACY"] = 1; + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; return values; })(); - return VmwareEngineNetwork; + return Nsx; })(); - v1.CreateVmwareEngineNetworkRequest = (function() { + v1.Vcenter = (function() { /** - * Properties of a CreateVmwareEngineNetworkRequest. + * Properties of a Vcenter. * @memberof google.cloud.vmwareengine.v1 - * @interface ICreateVmwareEngineNetworkRequest - * @property {string|null} [parent] CreateVmwareEngineNetworkRequest parent - * @property {string|null} [vmwareEngineNetworkId] CreateVmwareEngineNetworkRequest vmwareEngineNetworkId - * @property {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null} [vmwareEngineNetwork] CreateVmwareEngineNetworkRequest vmwareEngineNetwork - * @property {string|null} [requestId] CreateVmwareEngineNetworkRequest requestId + * @interface IVcenter + * @property {string|null} [internalIp] Vcenter internalIp + * @property {string|null} [version] Vcenter version + * @property {google.cloud.vmwareengine.v1.Vcenter.State|null} [state] Vcenter state + * @property {string|null} [fqdn] Vcenter fqdn */ /** - * Constructs a new CreateVmwareEngineNetworkRequest. + * Constructs a new Vcenter. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a CreateVmwareEngineNetworkRequest. - * @implements ICreateVmwareEngineNetworkRequest + * @classdesc Represents a Vcenter. + * @implements IVcenter * @constructor - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set */ - function CreateVmwareEngineNetworkRequest(properties) { + function Vcenter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15220,117 +14996,117 @@ } /** - * CreateVmwareEngineNetworkRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * Vcenter internalIp. + * @member {string} internalIp + * @memberof google.cloud.vmwareengine.v1.Vcenter * @instance */ - CreateVmwareEngineNetworkRequest.prototype.parent = ""; + Vcenter.prototype.internalIp = ""; /** - * CreateVmwareEngineNetworkRequest vmwareEngineNetworkId. - * @member {string} vmwareEngineNetworkId - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * Vcenter version. + * @member {string} version + * @memberof google.cloud.vmwareengine.v1.Vcenter * @instance */ - CreateVmwareEngineNetworkRequest.prototype.vmwareEngineNetworkId = ""; + Vcenter.prototype.version = ""; /** - * CreateVmwareEngineNetworkRequest vmwareEngineNetwork. - * @member {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null|undefined} vmwareEngineNetwork - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * Vcenter state. + * @member {google.cloud.vmwareengine.v1.Vcenter.State} state + * @memberof google.cloud.vmwareengine.v1.Vcenter * @instance */ - CreateVmwareEngineNetworkRequest.prototype.vmwareEngineNetwork = null; + Vcenter.prototype.state = 0; /** - * CreateVmwareEngineNetworkRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * Vcenter fqdn. + * @member {string} fqdn + * @memberof google.cloud.vmwareengine.v1.Vcenter * @instance */ - CreateVmwareEngineNetworkRequest.prototype.requestId = ""; + Vcenter.prototype.fqdn = ""; /** - * Creates a new CreateVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new Vcenter instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @static - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest instance + * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter instance */ - CreateVmwareEngineNetworkRequest.create = function create(properties) { - return new CreateVmwareEngineNetworkRequest(properties); + Vcenter.create = function create(properties) { + return new Vcenter(properties); }; /** - * Encodes the specified CreateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @static - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVmwareEngineNetworkRequest.encode = function encode(message, writer) { + Vcenter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.vmwareEngineNetworkId != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.vmwareEngineNetworkId); - if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) - $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetwork, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn); return writer; }; /** - * Encodes the specified CreateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @static - * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + Vcenter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a Vcenter message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVmwareEngineNetworkRequest.decode = function decode(reader, length) { + Vcenter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.Vcenter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); + case 2: { + message.internalIp = reader.string(); break; } - case 2: { - message.vmwareEngineNetworkId = reader.string(); + case 4: { + message.version = reader.string(); break; } - case 3: { - message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32()); + case 5: { + message.state = reader.int32(); break; } - case 4: { - message.requestId = reader.string(); + case 6: { + message.fqdn = reader.string(); break; } default: @@ -15342,258 +15118,398 @@ }; /** - * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a Vcenter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + Vcenter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateVmwareEngineNetworkRequest message. + * Verifies a Vcenter message. * @function verify - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateVmwareEngineNetworkRequest.verify = function verify(message) { + Vcenter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.vmwareEngineNetworkId != null && message.hasOwnProperty("vmwareEngineNetworkId")) - if (!$util.isString(message.vmwareEngineNetworkId)) - return "vmwareEngineNetworkId: string expected"; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { - var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetwork); - if (error) - return "vmwareEngineNetwork." + error; - } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + if (!$util.isString(message.internalIp)) + return "internalIp: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + if (!$util.isString(message.fqdn)) + return "fqdn: string expected"; return null; }; /** - * Creates a CreateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Vcenter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} CreateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter */ - CreateVmwareEngineNetworkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) + Vcenter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.Vcenter) return object; - var message = new $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.vmwareEngineNetworkId != null) - message.vmwareEngineNetworkId = String(object.vmwareEngineNetworkId); - if (object.vmwareEngineNetwork != null) { - if (typeof object.vmwareEngineNetwork !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.vmwareEngineNetwork: object expected"); - message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetwork); + var message = new $root.google.cloud.vmwareengine.v1.Vcenter(); + if (object.internalIp != null) + message.internalIp = String(object.internalIp); + if (object.version != null) + message.version = String(object.version); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; } - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.fqdn != null) + message.fqdn = String(object.fqdn); return message; }; /** - * Creates a plain object from a CreateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * Creates a plain object from a Vcenter message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @static - * @param {google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} message CreateVmwareEngineNetworkRequest + * @param {google.cloud.vmwareengine.v1.Vcenter} message Vcenter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + Vcenter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.vmwareEngineNetworkId = ""; - object.vmwareEngineNetwork = null; - object.requestId = ""; + object.internalIp = ""; + object.version = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.fqdn = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.vmwareEngineNetworkId != null && message.hasOwnProperty("vmwareEngineNetworkId")) - object.vmwareEngineNetworkId = message.vmwareEngineNetworkId; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - object.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetwork, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.internalIp != null && message.hasOwnProperty("internalIp")) + object.internalIp = message.internalIp; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] : message.state; + if (message.fqdn != null && message.hasOwnProperty("fqdn")) + object.fqdn = message.fqdn; return object; }; /** - * Converts this CreateVmwareEngineNetworkRequest to JSON. + * Converts this Vcenter to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @instance * @returns {Object.} JSON object */ - CreateVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + Vcenter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateVmwareEngineNetworkRequest + * Gets the default type url for Vcenter * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.Vcenter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Vcenter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Vcenter"; }; - return CreateVmwareEngineNetworkRequest; + /** + * State enum. + * @name google.cloud.vmwareengine.v1.Vcenter.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CREATING=2 CREATING value + */ + Vcenter.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "CREATING"] = 2; + return values; + })(); + + return Vcenter; })(); - v1.UpdateVmwareEngineNetworkRequest = (function() { + v1.NetworkPolicy = (function() { + + /** + * Properties of a NetworkPolicy. + * @memberof google.cloud.vmwareengine.v1 + * @interface INetworkPolicy + * @property {string|null} [name] NetworkPolicy name + * @property {google.protobuf.ITimestamp|null} [createTime] NetworkPolicy createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] NetworkPolicy updateTime + * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [internetAccess] NetworkPolicy internetAccess + * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [externalIp] NetworkPolicy externalIp + * @property {string|null} [edgeServicesCidr] NetworkPolicy edgeServicesCidr + * @property {string|null} [uid] NetworkPolicy uid + * @property {string|null} [vmwareEngineNetwork] NetworkPolicy vmwareEngineNetwork + * @property {string|null} [description] NetworkPolicy description + * @property {string|null} [vmwareEngineNetworkCanonical] NetworkPolicy vmwareEngineNetworkCanonical + */ + + /** + * Constructs a new NetworkPolicy. + * @memberof google.cloud.vmwareengine.v1 + * @classdesc Represents a NetworkPolicy. + * @implements INetworkPolicy + * @constructor + * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set + */ + function NetworkPolicy(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]]; + } + + /** + * NetworkPolicy name. + * @member {string} name + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.name = ""; + + /** + * NetworkPolicy createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.createTime = null; + + /** + * NetworkPolicy updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.updateTime = null; + + /** + * NetworkPolicy internetAccess. + * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} internetAccess + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.internetAccess = null; + + /** + * NetworkPolicy externalIp. + * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} externalIp + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.externalIp = null; /** - * Properties of an UpdateVmwareEngineNetworkRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface IUpdateVmwareEngineNetworkRequest - * @property {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null} [vmwareEngineNetwork] UpdateVmwareEngineNetworkRequest vmwareEngineNetwork - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVmwareEngineNetworkRequest updateMask - * @property {string|null} [requestId] UpdateVmwareEngineNetworkRequest requestId + * NetworkPolicy edgeServicesCidr. + * @member {string} edgeServicesCidr + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance */ + NetworkPolicy.prototype.edgeServicesCidr = ""; /** - * Constructs a new UpdateVmwareEngineNetworkRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents an UpdateVmwareEngineNetworkRequest. - * @implements IUpdateVmwareEngineNetworkRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest=} [properties] Properties to set + * NetworkPolicy uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @instance */ - function UpdateVmwareEngineNetworkRequest(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]]; - } + NetworkPolicy.prototype.uid = ""; /** - * UpdateVmwareEngineNetworkRequest vmwareEngineNetwork. - * @member {google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null|undefined} vmwareEngineNetwork - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * NetworkPolicy vmwareEngineNetwork. + * @member {string} vmwareEngineNetwork + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @instance */ - UpdateVmwareEngineNetworkRequest.prototype.vmwareEngineNetwork = null; + NetworkPolicy.prototype.vmwareEngineNetwork = ""; /** - * UpdateVmwareEngineNetworkRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * NetworkPolicy description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @instance */ - UpdateVmwareEngineNetworkRequest.prototype.updateMask = null; + NetworkPolicy.prototype.description = ""; /** - * UpdateVmwareEngineNetworkRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * NetworkPolicy vmwareEngineNetworkCanonical. + * @member {string} vmwareEngineNetworkCanonical + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @instance */ - UpdateVmwareEngineNetworkRequest.prototype.requestId = ""; + NetworkPolicy.prototype.vmwareEngineNetworkCanonical = ""; /** - * Creates a new UpdateVmwareEngineNetworkRequest instance using the specified properties. + * Creates a new NetworkPolicy instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @static - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest instance + * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy instance */ - UpdateVmwareEngineNetworkRequest.create = function create(properties) { - return new UpdateVmwareEngineNetworkRequest(properties); + NetworkPolicy.create = function create(properties) { + return new NetworkPolicy(properties); }; /** - * Encodes the specified UpdateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @static - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVmwareEngineNetworkRequest.encode = function encode(message, writer) { + NetworkPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.internetAccess != null && Object.hasOwnProperty.call(message, "internetAccess")) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.internetAccess, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.externalIp != null && Object.hasOwnProperty.call(message, "externalIp")) + $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.externalIp, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.edgeServicesCidr != null && Object.hasOwnProperty.call(message, "edgeServicesCidr")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.edgeServicesCidr); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.uid); if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork")) - $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetwork, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + writer.uint32(/* id 12, wireType 2 =*/98).string(message.vmwareEngineNetwork); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.description); + if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.vmwareEngineNetworkCanonical); return writer; }; /** - * Encodes the specified UpdateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages. + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @static - * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { + NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer. + * Decodes a NetworkPolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVmwareEngineNetworkRequest.decode = function decode(reader, length) { + NetworkPolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 3: { - message.requestId = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32()); + break; + } + case 7: { + message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32()); + break; + } + case 9: { + message.edgeServicesCidr = reader.string(); + break; + } + case 10: { + message.uid = reader.string(); + break; + } + case 12: { + message.vmwareEngineNetwork = reader.string(); + break; + } + case 13: { + message.description = reader.string(); + break; + } + case 14: { + message.vmwareEngineNetworkCanonical = reader.string(); break; } default: @@ -15605,399 +15521,498 @@ }; /** - * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { + NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateVmwareEngineNetworkRequest message. + * Verifies a NetworkPolicy message. * @function verify - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateVmwareEngineNetworkRequest.verify = function verify(message) { + NetworkPolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) { - var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetwork); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "vmwareEngineNetwork." + error; + return "createTime." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); if (error) - return "updateMask." + error; + return "updateTime." + error; } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.internetAccess != null && message.hasOwnProperty("internetAccess")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.internetAccess); + if (error) + return "internetAccess." + error; + } + if (message.externalIp != null && message.hasOwnProperty("externalIp")) { + var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.externalIp); + if (error) + return "externalIp." + error; + } + if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr")) + if (!$util.isString(message.edgeServicesCidr)) + return "edgeServicesCidr: string expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) + if (!$util.isString(message.vmwareEngineNetwork)) + return "vmwareEngineNetwork: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + if (!$util.isString(message.vmwareEngineNetworkCanonical)) + return "vmwareEngineNetworkCanonical: string expected"; return null; }; /** - * Creates an UpdateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} UpdateVmwareEngineNetworkRequest + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy */ - UpdateVmwareEngineNetworkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) + NetworkPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPolicy) return object; - var message = new $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(); - if (object.vmwareEngineNetwork != null) { - if (typeof object.vmwareEngineNetwork !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.vmwareEngineNetwork: object expected"); - message.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetwork); + var message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.internetAccess != null) { + if (typeof object.internetAccess !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.internetAccess: object expected"); + message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.internetAccess); + } + if (object.externalIp != null) { + if (typeof object.externalIp !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.externalIp: object expected"); + message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.externalIp); + } + if (object.edgeServicesCidr != null) + message.edgeServicesCidr = String(object.edgeServicesCidr); + if (object.uid != null) + message.uid = String(object.uid); + if (object.vmwareEngineNetwork != null) + message.vmwareEngineNetwork = String(object.vmwareEngineNetwork); + if (object.description != null) + message.description = String(object.description); + if (object.vmwareEngineNetworkCanonical != null) + message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical); return message; }; /** - * Creates a plain object from an UpdateVmwareEngineNetworkRequest message. Also converts values to other types if specified. + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @static - * @param {google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} message UpdateVmwareEngineNetworkRequest + * @param {google.cloud.vmwareengine.v1.NetworkPolicy} message NetworkPolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateVmwareEngineNetworkRequest.toObject = function toObject(message, options) { + NetworkPolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.vmwareEngineNetwork = null; - object.updateMask = null; - object.requestId = ""; + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.internetAccess = null; + object.externalIp = null; + object.edgeServicesCidr = ""; + object.uid = ""; + object.vmwareEngineNetwork = ""; + object.description = ""; + object.vmwareEngineNetworkCanonical = ""; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.internetAccess != null && message.hasOwnProperty("internetAccess")) + object.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.internetAccess, options); + if (message.externalIp != null && message.hasOwnProperty("externalIp")) + object.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.externalIp, options); + if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr")) + object.edgeServicesCidr = message.edgeServicesCidr; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork")) - object.vmwareEngineNetwork = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetwork, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + object.vmwareEngineNetwork = message.vmwareEngineNetwork; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical")) + object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical; return object; }; /** - * Converts this UpdateVmwareEngineNetworkRequest to JSON. + * Converts this NetworkPolicy to JSON. * @function toJSON - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @instance * @returns {Object.} JSON object */ - UpdateVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { + NetworkPolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateVmwareEngineNetworkRequest + * Gets the default type url for NetworkPolicy * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest"; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPolicy"; }; - return UpdateVmwareEngineNetworkRequest; - })(); - - v1.DeleteVmwareEngineNetworkRequest = (function() { - - /** - * Properties of a DeleteVmwareEngineNetworkRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface IDeleteVmwareEngineNetworkRequest - * @property {string|null} [name] DeleteVmwareEngineNetworkRequest name - * @property {string|null} [requestId] DeleteVmwareEngineNetworkRequest requestId - * @property {string|null} [etag] DeleteVmwareEngineNetworkRequest etag - */ - - /** - * Constructs a new DeleteVmwareEngineNetworkRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a DeleteVmwareEngineNetworkRequest. - * @implements IDeleteVmwareEngineNetworkRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest=} [properties] Properties to set - */ - function DeleteVmwareEngineNetworkRequest(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]]; - } + NetworkPolicy.NetworkService = (function() { - /** - * DeleteVmwareEngineNetworkRequest name. - * @member {string} name - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @instance - */ - DeleteVmwareEngineNetworkRequest.prototype.name = ""; + /** + * Properties of a NetworkService. + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @interface INetworkService + * @property {boolean|null} [enabled] NetworkService enabled + * @property {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null} [state] NetworkService state + */ - /** - * DeleteVmwareEngineNetworkRequest requestId. - * @member {string} requestId - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @instance - */ - DeleteVmwareEngineNetworkRequest.prototype.requestId = ""; + /** + * Constructs a new NetworkService. + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy + * @classdesc Represents a NetworkService. + * @implements INetworkService + * @constructor + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set + */ + function NetworkService(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]]; + } - /** - * DeleteVmwareEngineNetworkRequest etag. - * @member {string} etag - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @instance - */ - DeleteVmwareEngineNetworkRequest.prototype.etag = ""; + /** + * NetworkService enabled. + * @member {boolean} enabled + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @instance + */ + NetworkService.prototype.enabled = false; - /** - * Creates a new DeleteVmwareEngineNetworkRequest instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @static - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest instance - */ - DeleteVmwareEngineNetworkRequest.create = function create(properties) { - return new DeleteVmwareEngineNetworkRequest(properties); - }; + /** + * NetworkService state. + * @member {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State} state + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @instance + */ + NetworkService.prototype.state = 0; - /** - * Encodes the specified DeleteVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @static - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteVmwareEngineNetworkRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); - return writer; - }; + /** + * Creates a new NetworkService instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService instance + */ + NetworkService.create = function create(properties) { + return new NetworkService(properties); + }; - /** - * Encodes the specified DeleteVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @static - * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkService.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); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; - /** - * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteVmwareEngineNetworkRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkService.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkService message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkService.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.requestId = reader.string(); + } + return message; + }; + + /** + * Decodes a NetworkService message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkService.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkService message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkService.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"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: break; } - case 3: { - message.etag = reader.string(); + return null; + }; + + /** + * Creates a NetworkService message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService + */ + NetworkService.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) + return object; + var message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; break; } - default: - reader.skipType(tag & 7); + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "UNPROVISIONED": + case 1: + message.state = 1; + break; + case "RECONCILING": + case 2: + message.state = 2; + break; + case "ACTIVE": + case 3: + message.state = 3; break; } - } - return message; - }; - - /** - * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteVmwareEngineNetworkRequest message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteVmwareEngineNetworkRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - return null; - }; + return message; + }; - /** - * Creates a DeleteVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} DeleteVmwareEngineNetworkRequest - */ - DeleteVmwareEngineNetworkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) + /** + * Creates a plain object from a NetworkService message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} message NetworkService + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkService.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enabled = false; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State[message.state] : message.state; return object; - var message = new $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.requestId != null) - message.requestId = String(object.requestId); - if (object.etag != null) - message.etag = String(object.etag); - return message; - }; + }; - /** - * Creates a plain object from a DeleteVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @static - * @param {google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} message DeleteVmwareEngineNetworkRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteVmwareEngineNetworkRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.requestId = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - return object; - }; + /** + * Converts this NetworkService to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @instance + * @returns {Object.} JSON object + */ + NetworkService.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DeleteVmwareEngineNetworkRequest to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for NetworkService + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkService.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService"; + }; - /** - * Gets the default type url for DeleteVmwareEngineNetworkRequest - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest"; - }; + /** + * State enum. + * @name google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} UNPROVISIONED=1 UNPROVISIONED value + * @property {number} RECONCILING=2 RECONCILING value + * @property {number} ACTIVE=3 ACTIVE value + */ + NetworkService.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "UNPROVISIONED"] = 1; + values[valuesById[2] = "RECONCILING"] = 2; + values[valuesById[3] = "ACTIVE"] = 3; + return values; + })(); - return DeleteVmwareEngineNetworkRequest; + return NetworkService; + })(); + + return NetworkPolicy; })(); - v1.GetVmwareEngineNetworkRequest = (function() { + v1.VmwareEngineNetwork = (function() { /** - * Properties of a GetVmwareEngineNetworkRequest. + * Properties of a VmwareEngineNetwork. * @memberof google.cloud.vmwareengine.v1 - * @interface IGetVmwareEngineNetworkRequest - * @property {string|null} [name] GetVmwareEngineNetworkRequest name + * @interface IVmwareEngineNetwork + * @property {string|null} [name] VmwareEngineNetwork name + * @property {google.protobuf.ITimestamp|null} [createTime] VmwareEngineNetwork createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] VmwareEngineNetwork updateTime + * @property {string|null} [description] VmwareEngineNetwork description + * @property {Array.|null} [vpcNetworks] VmwareEngineNetwork vpcNetworks + * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|null} [state] VmwareEngineNetwork state + * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|null} [type] VmwareEngineNetwork type + * @property {string|null} [uid] VmwareEngineNetwork uid + * @property {string|null} [etag] VmwareEngineNetwork etag */ /** - * Constructs a new GetVmwareEngineNetworkRequest. + * Constructs a new VmwareEngineNetwork. * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a GetVmwareEngineNetworkRequest. - * @implements IGetVmwareEngineNetworkRequest + * @classdesc Represents a VmwareEngineNetwork. + * @implements IVmwareEngineNetwork * @constructor - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest=} [properties] Properties to set + * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork=} [properties] Properties to set */ - function GetVmwareEngineNetworkRequest(properties) { + function VmwareEngineNetwork(properties) { + this.vpcNetworks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16005,766 +16020,751 @@ } /** - * GetVmwareEngineNetworkRequest name. + * VmwareEngineNetwork name. * @member {string} name - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @instance - */ - GetVmwareEngineNetworkRequest.prototype.name = ""; - - /** - * Creates a new GetVmwareEngineNetworkRequest instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @static - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest instance - */ - GetVmwareEngineNetworkRequest.create = function create(properties) { - return new GetVmwareEngineNetworkRequest(properties); - }; - - /** - * Encodes the specified GetVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @static - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVmwareEngineNetworkRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified GetVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @static - * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVmwareEngineNetworkRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVmwareEngineNetworkRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVmwareEngineNetworkRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetVmwareEngineNetworkRequest message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetVmwareEngineNetworkRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a GetVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} GetVmwareEngineNetworkRequest - */ - GetVmwareEngineNetworkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) - return object; - var message = new $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetVmwareEngineNetworkRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @static - * @param {google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} message GetVmwareEngineNetworkRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetVmwareEngineNetworkRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this GetVmwareEngineNetworkRequest to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @instance - * @returns {Object.} JSON object - */ - GetVmwareEngineNetworkRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GetVmwareEngineNetworkRequest - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url */ - GetVmwareEngineNetworkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest"; - }; - - return GetVmwareEngineNetworkRequest; - })(); - - v1.ListVmwareEngineNetworksRequest = (function() { + VmwareEngineNetwork.prototype.name = ""; /** - * Properties of a ListVmwareEngineNetworksRequest. - * @memberof google.cloud.vmwareengine.v1 - * @interface IListVmwareEngineNetworksRequest - * @property {string|null} [parent] ListVmwareEngineNetworksRequest parent - * @property {number|null} [pageSize] ListVmwareEngineNetworksRequest pageSize - * @property {string|null} [pageToken] ListVmwareEngineNetworksRequest pageToken - * @property {string|null} [filter] ListVmwareEngineNetworksRequest filter - * @property {string|null} [orderBy] ListVmwareEngineNetworksRequest orderBy + * VmwareEngineNetwork createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance */ + VmwareEngineNetwork.prototype.createTime = null; /** - * Constructs a new ListVmwareEngineNetworksRequest. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListVmwareEngineNetworksRequest. - * @implements IListVmwareEngineNetworksRequest - * @constructor - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest=} [properties] Properties to set + * VmwareEngineNetwork updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance */ - function ListVmwareEngineNetworksRequest(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]]; - } + VmwareEngineNetwork.prototype.updateTime = null; /** - * ListVmwareEngineNetworksRequest parent. - * @member {string} parent - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * VmwareEngineNetwork description. + * @member {string} description + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @instance */ - ListVmwareEngineNetworksRequest.prototype.parent = ""; + VmwareEngineNetwork.prototype.description = ""; /** - * ListVmwareEngineNetworksRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * VmwareEngineNetwork vpcNetworks. + * @member {Array.} vpcNetworks + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @instance */ - ListVmwareEngineNetworksRequest.prototype.pageSize = 0; + VmwareEngineNetwork.prototype.vpcNetworks = $util.emptyArray; /** - * ListVmwareEngineNetworksRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * VmwareEngineNetwork state. + * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.State} state + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @instance */ - ListVmwareEngineNetworksRequest.prototype.pageToken = ""; + VmwareEngineNetwork.prototype.state = 0; /** - * ListVmwareEngineNetworksRequest filter. - * @member {string} filter - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * VmwareEngineNetwork type. + * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type} type + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @instance */ - ListVmwareEngineNetworksRequest.prototype.filter = ""; + VmwareEngineNetwork.prototype.type = 0; /** - * ListVmwareEngineNetworksRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * VmwareEngineNetwork uid. + * @member {string} uid + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @instance */ - ListVmwareEngineNetworksRequest.prototype.orderBy = ""; + VmwareEngineNetwork.prototype.uid = ""; /** - * Creates a new ListVmwareEngineNetworksRequest instance using the specified properties. + * VmwareEngineNetwork etag. + * @member {string} etag + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + */ + VmwareEngineNetwork.prototype.etag = ""; + + /** + * Creates a new VmwareEngineNetwork instance using the specified properties. * @function create - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest instance + * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork instance */ - ListVmwareEngineNetworksRequest.create = function create(properties) { - return new ListVmwareEngineNetworksRequest(properties); + VmwareEngineNetwork.create = function create(properties) { + return new VmwareEngineNetwork(properties); }; /** - * Encodes the specified ListVmwareEngineNetworksRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * Encodes the specified VmwareEngineNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. * @function encode - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork} message VmwareEngineNetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVmwareEngineNetworksRequest.encode = function encode(message, writer) { + VmwareEngineNetwork.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.description); + if (message.vpcNetworks != null && message.vpcNetworks.length) + for (var i = 0; i < message.vpcNetworks.length; ++i) + $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.encode(message.vpcNetworks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.type); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.uid); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.etag); return writer; }; /** - * Encodes the specified ListVmwareEngineNetworksRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages. + * Encodes the specified VmwareEngineNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest message or plain object to encode + * @param {google.cloud.vmwareengine.v1.IVmwareEngineNetwork} message VmwareEngineNetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVmwareEngineNetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + VmwareEngineNetwork.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer. + * Decodes a VmwareEngineNetwork message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVmwareEngineNetworksRequest.decode = function decode(reader, length) { + VmwareEngineNetwork.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 4: { - message.filter = reader.string(); + case 5: { + message.description = reader.string(); break; } - case 5: { - message.orderBy = reader.string(); + case 6: { + if (!(message.vpcNetworks && message.vpcNetworks.length)) + message.vpcNetworks = []; + message.vpcNetworks.push($root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListVmwareEngineNetworksRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListVmwareEngineNetworksRequest message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListVmwareEngineNetworksRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - return null; - }; - - /** - * Creates a ListVmwareEngineNetworksRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} ListVmwareEngineNetworksRequest - */ - ListVmwareEngineNetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) - return object; - var message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - return message; - }; - - /** - * Creates a plain object from a ListVmwareEngineNetworksRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest - * @static - * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} message ListVmwareEngineNetworksRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListVmwareEngineNetworksRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + case 7: { + message.state = reader.int32(); + break; + } + case 8: { + message.type = reader.int32(); + break; + } + case 9: { + message.uid = reader.string(); + break; + } + case 10: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - return object; + return message; }; /** - * Converts this ListVmwareEngineNetworksRequest to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest - * @instance - * @returns {Object.} JSON object + * Decodes a VmwareEngineNetwork message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVmwareEngineNetworksRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + VmwareEngineNetwork.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); }; /** - * Gets the default type url for ListVmwareEngineNetworksRequest - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + * Verifies a VmwareEngineNetwork message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVmwareEngineNetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + VmwareEngineNetwork.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.vpcNetworks != null && message.hasOwnProperty("vpcNetworks")) { + if (!Array.isArray(message.vpcNetworks)) + return "vpcNetworks: array expected"; + for (var i = 0; i < message.vpcNetworks.length; ++i) { + var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify(message.vpcNetworks[i]); + if (error) + return "vpcNetworks." + error; + } + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; }; - return ListVmwareEngineNetworksRequest; - })(); - - v1.ListVmwareEngineNetworksResponse = (function() { - - /** - * Properties of a ListVmwareEngineNetworksResponse. - * @memberof google.cloud.vmwareengine.v1 - * @interface IListVmwareEngineNetworksResponse - * @property {Array.|null} [vmwareEngineNetworks] ListVmwareEngineNetworksResponse vmwareEngineNetworks - * @property {string|null} [nextPageToken] ListVmwareEngineNetworksResponse nextPageToken - * @property {Array.|null} [unreachable] ListVmwareEngineNetworksResponse unreachable - */ - - /** - * Constructs a new ListVmwareEngineNetworksResponse. - * @memberof google.cloud.vmwareengine.v1 - * @classdesc Represents a ListVmwareEngineNetworksResponse. - * @implements IListVmwareEngineNetworksResponse - * @constructor - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse=} [properties] Properties to set - */ - function ListVmwareEngineNetworksResponse(properties) { - this.vmwareEngineNetworks = []; - this.unreachable = []; - 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]]; - } - - /** - * ListVmwareEngineNetworksResponse vmwareEngineNetworks. - * @member {Array.} vmwareEngineNetworks - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @instance - */ - ListVmwareEngineNetworksResponse.prototype.vmwareEngineNetworks = $util.emptyArray; - - /** - * ListVmwareEngineNetworksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @instance - */ - ListVmwareEngineNetworksResponse.prototype.nextPageToken = ""; - /** - * ListVmwareEngineNetworksResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @instance + * Creates a VmwareEngineNetwork message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork} VmwareEngineNetwork */ - ListVmwareEngineNetworksResponse.prototype.unreachable = $util.emptyArray; + VmwareEngineNetwork.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork) + return object; + var message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.description != null) + message.description = String(object.description); + if (object.vpcNetworks) { + if (!Array.isArray(object.vpcNetworks)) + throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.vpcNetworks: array expected"); + message.vpcNetworks = []; + for (var i = 0; i < object.vpcNetworks.length; ++i) { + if (typeof object.vpcNetworks[i] !== "object") + throw TypeError(".google.cloud.vmwareengine.v1.VmwareEngineNetwork.vpcNetworks: object expected"); + message.vpcNetworks[i] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.fromObject(object.vpcNetworks[i]); + } + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "CREATING": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "UPDATING": + case 3: + message.state = 3; + break; + case "DELETING": + case 4: + message.state = 4; + break; + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "LEGACY": + case 1: + message.type = 1; + break; + } + if (object.uid != null) + message.uid = String(object.uid); + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; /** - * Creates a new ListVmwareEngineNetworksResponse instance using the specified properties. - * @function create - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * Creates a plain object from a VmwareEngineNetwork message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse=} [properties] Properties to set - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse instance + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} message VmwareEngineNetwork + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ListVmwareEngineNetworksResponse.create = function create(properties) { - return new ListVmwareEngineNetworksResponse(properties); + VmwareEngineNetwork.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.vpcNetworks = []; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.description = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.uid = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.vpcNetworks && message.vpcNetworks.length) { + object.vpcNetworks = []; + for (var j = 0; j < message.vpcNetworks.length; ++j) + object.vpcNetworks[j] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.toObject(message.vpcNetworks[j], options); + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State[message.state] : message.state; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type[message.type] : message.type; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; }; /** - * Encodes the specified ListVmwareEngineNetworksResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Converts this VmwareEngineNetwork to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @instance + * @returns {Object.} JSON object */ - ListVmwareEngineNetworksResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.vmwareEngineNetworks != null && message.vmwareEngineNetworks.length) - for (var i = 0; i < message.vmwareEngineNetworks.length; ++i) - $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.encode(message.vmwareEngineNetworks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); - return writer; + VmwareEngineNetwork.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Encodes the specified ListVmwareEngineNetworksResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + * Gets the default type url for VmwareEngineNetwork + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork * @static - * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - ListVmwareEngineNetworksResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); + VmwareEngineNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.VmwareEngineNetwork"; }; - /** - * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListVmwareEngineNetworksResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.vmwareEngineNetworks && message.vmwareEngineNetworks.length)) - message.vmwareEngineNetworks = []; - message.vmwareEngineNetworks.push($root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.decode(reader, reader.uint32())); + VmwareEngineNetwork.VpcNetwork = (function() { + + /** + * Properties of a VpcNetwork. + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @interface IVpcNetwork + * @property {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|null} [type] VpcNetwork type + * @property {string|null} [network] VpcNetwork network + */ + + /** + * Constructs a new VpcNetwork. + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork + * @classdesc Represents a VpcNetwork. + * @implements IVpcNetwork + * @constructor + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork=} [properties] Properties to set + */ + function VpcNetwork(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]]; + } + + /** + * VpcNetwork type. + * @member {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type} type + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @instance + */ + VpcNetwork.prototype.type = 0; + + /** + * VpcNetwork network. + * @member {string} network + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @instance + */ + VpcNetwork.prototype.network = ""; + + /** + * Creates a new VpcNetwork instance using the specified properties. + * @function create + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork=} [properties] Properties to set + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork instance + */ + VpcNetwork.create = function create(properties) { + return new VpcNetwork(properties); + }; + + /** + * Encodes the specified VpcNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. + * @function encode + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork} message VpcNetwork message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpcNetwork.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); + return writer; + }; + + /** + * Encodes the specified VpcNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork} message VpcNetwork message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpcNetwork.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VpcNetwork message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpcNetwork.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.network = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.nextPageToken = reader.string(); + } + return message; + }; + + /** + * Decodes a VpcNetwork message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpcNetwork.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VpcNetwork message. + * @function verify + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VpcNetwork.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: break; } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + return null; + }; + + /** + * Creates a VpcNetwork message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} VpcNetwork + */ + VpcNetwork.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) + return object; + var message = new $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; break; } - default: - reader.skipType(tag & 7); + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INTRANET": + case 1: + message.type = 1; + break; + case "INTERNET": + case 2: + message.type = 2; + break; + case "GOOGLE_CLOUD": + case 3: + message.type = 3; break; } - } - return message; - }; - - /** - * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListVmwareEngineNetworksResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (object.network != null) + message.network = String(object.network); + return message; + }; - /** - * Verifies a ListVmwareEngineNetworksResponse message. - * @function verify - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListVmwareEngineNetworksResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.vmwareEngineNetworks != null && message.hasOwnProperty("vmwareEngineNetworks")) { - if (!Array.isArray(message.vmwareEngineNetworks)) - return "vmwareEngineNetworks: array expected"; - for (var i = 0; i < message.vmwareEngineNetworks.length; ++i) { - var error = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify(message.vmwareEngineNetworks[i]); - if (error) - return "vmwareEngineNetworks." + error; + /** + * Creates a plain object from a VpcNetwork message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} message VpcNetwork + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VpcNetwork.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.network = ""; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } - return null; - }; - - /** - * Creates a ListVmwareEngineNetworksResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} ListVmwareEngineNetworksResponse - */ - ListVmwareEngineNetworksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type[message.type] === undefined ? message.type : $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type[message.type] : message.type; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; return object; - var message = new $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(); - if (object.vmwareEngineNetworks) { - if (!Array.isArray(object.vmwareEngineNetworks)) - throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.vmwareEngineNetworks: array expected"); - message.vmwareEngineNetworks = []; - for (var i = 0; i < object.vmwareEngineNetworks.length; ++i) { - if (typeof object.vmwareEngineNetworks[i] !== "object") - throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.vmwareEngineNetworks: object expected"); - message.vmwareEngineNetworks[i] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.fromObject(object.vmwareEngineNetworks[i]); + }; + + /** + * Converts this VpcNetwork to JSON. + * @function toJSON + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @instance + * @returns {Object.} JSON object + */ + VpcNetwork.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VpcNetwork + * @function getTypeUrl + * @memberof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VpcNetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } - return message; - }; + return typeUrlPrefix + "/google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork"; + }; - /** - * Creates a plain object from a ListVmwareEngineNetworksResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @static - * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} message ListVmwareEngineNetworksResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListVmwareEngineNetworksResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.vmwareEngineNetworks = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.vmwareEngineNetworks && message.vmwareEngineNetworks.length) { - object.vmwareEngineNetworks = []; - for (var j = 0; j < message.vmwareEngineNetworks.length; ++j) - object.vmwareEngineNetworks[j] = $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork.toObject(message.vmwareEngineNetworks[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } - return object; - }; + /** + * Type enum. + * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} INTRANET=1 INTRANET value + * @property {number} INTERNET=2 INTERNET value + * @property {number} GOOGLE_CLOUD=3 GOOGLE_CLOUD value + */ + VpcNetwork.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTRANET"] = 1; + values[valuesById[2] = "INTERNET"] = 2; + values[valuesById[3] = "GOOGLE_CLOUD"] = 3; + return values; + })(); + + return VpcNetwork; + })(); /** - * Converts this ListVmwareEngineNetworksResponse to JSON. - * @function toJSON - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @instance - * @returns {Object.} JSON object + * State enum. + * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} CREATING=1 CREATING value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} UPDATING=3 UPDATING value + * @property {number} DELETING=4 DELETING value */ - ListVmwareEngineNetworksResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + VmwareEngineNetwork.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATING"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "UPDATING"] = 3; + values[valuesById[4] = "DELETING"] = 4; + return values; + })(); /** - * Gets the default type url for ListVmwareEngineNetworksResponse - * @function getTypeUrl - * @memberof google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Type enum. + * @name google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} LEGACY=1 LEGACY value */ - ListVmwareEngineNetworksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse"; - }; + VmwareEngineNetwork.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LEGACY"] = 1; + return values; + })(); - return ListVmwareEngineNetworksResponse; + return VmwareEngineNetwork; })(); return v1; @@ -27867,7 +27867,248 @@ return Annotation; })(); - return GeneratedCodeInfo; + return GeneratedCodeInfo; + })(); + + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(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]]; + } + + /** + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Timestamp + * @function getTypeUrl + * @memberof google.protobuf.Timestamp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Timestamp"; + }; + + return Timestamp; })(); protobuf.Any = (function() { @@ -28741,247 +28982,6 @@ return FieldMask; })(); - protobuf.Timestamp = (function() { - - /** - * Properties of a Timestamp. - * @memberof google.protobuf - * @interface ITimestamp - * @property {number|Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos - */ - - /** - * Constructs a new Timestamp. - * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp - * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - */ - function Timestamp(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]]; - } - - /** - * Timestamp seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.nanos = 0; - - /** - * Creates a new Timestamp instance using the specified properties. - * @function create - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - * @returns {google.protobuf.Timestamp} Timestamp instance - */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); - }; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.seconds = reader.int64(); - break; - } - case 2: { - message.nanos = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Timestamp message. - * @function verify - * @memberof google.protobuf.Timestamp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Timestamp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Timestamp - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Timestamp} Timestamp - */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Timestamp) - return object; - var message = new $root.google.protobuf.Timestamp(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; - return message; - }; - - /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.Timestamp} message Timestamp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Timestamp.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; - } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; - return object; - }; - - /** - * Converts this Timestamp to JSON. - * @function toJSON - * @memberof google.protobuf.Timestamp - * @instance - * @returns {Object.} JSON object - */ - Timestamp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Timestamp - * @function getTypeUrl - * @memberof google.protobuf.Timestamp - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.Timestamp"; - }; - - return Timestamp; - })(); - return protobuf; })(); diff --git a/packages/google-cloud-vmwareengine/protos/protos.json b/packages/google-cloud-vmwareengine/protos/protos.json index b07e0bb1d86f..95998c481303 100644 --- a/packages/google-cloud-vmwareengine/protos/protos.json +++ b/packages/google-cloud-vmwareengine/protos/protos.json @@ -11,7 +11,7 @@ "csharp_namespace": "Google.Cloud.VmwareEngine.V1", "go_package": "google.golang.org/genproto/googleapis/cloud/vmwareengine/v1;vmwareengine", "java_multiple_files": true, - "java_outer_classname": "VmwareengineProto", + "java_outer_classname": "VmwareengineResourcesProto", "java_package": "com.google.cloud.vmwareengine.v1", "php_namespace": "Google\\Cloud\\VmwareEngine\\V1", "ruby_package": "Google::Cloud::VmwareEngine::V1", @@ -737,186 +737,6 @@ } } }, - "NetworkConfig": { - "fields": { - "managementCidr": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "vmwareEngineNetwork": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" - } - }, - "vmwareEngineNetworkCanonical": { - "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" - } - }, - "managementIpAddressLayoutVersion": { - "type": "int32", - "id": 8, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } - }, - "NodeTypeConfig": { - "fields": { - "nodeCount": { - "type": "int32", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "customCoreCount": { - "type": "int32", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "PrivateCloud": { - "options": { - "(google.api.resource).type": "vmwareengine.googleapis.com/PrivateCloud", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "deleteTime": { - "type": "google.protobuf.Timestamp", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "expireTime": { - "type": "google.protobuf.Timestamp", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "state": { - "type": "State", - "id": 8, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "networkConfig": { - "type": "NetworkConfig", - "id": 9, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "managementCluster": { - "type": "ManagementCluster", - "id": 10, - "options": { - "(google.api.field_behavior)": "INPUT_ONLY" - } - }, - "description": { - "type": "string", - "id": 11 - }, - "hcx": { - "type": "Hcx", - "id": 17, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "nsx": { - "type": "Nsx", - "id": 18, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "vcenter": { - "type": "Vcenter", - "id": 19, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "uid": { - "type": "string", - "id": 20, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "ACTIVE": 1, - "CREATING": 2, - "UPDATING": 3, - "FAILED": 5, - "DELETED": 6, - "PURGING": 7 - } - }, - "ManagementCluster": { - "fields": { - "clusterId": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "nodeTypeConfigs": { - "keyType": "string", - "type": "NodeTypeConfig", - "id": 7, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - } - } - }, "ListPrivateCloudsRequest": { "fields": { "parent": { @@ -1100,76 +920,6 @@ } } }, - "Cluster": { - "options": { - "(google.api.resource).type": "vmwareengine.googleapis.com/Cluster", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "state": { - "type": "State", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "management": { - "type": "bool", - "id": 7, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "uid": { - "type": "string", - "id": 14, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "nodeTypeConfigs": { - "keyType": "string", - "type": "NodeTypeConfig", - "id": 16, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "ACTIVE": 1, - "CREATING": 2, - "UPDATING": 3, - "DELETING": 4, - "REPAIRING": 5 - } - } - } - }, "ListClustersRequest": { "fields": { "parent": { @@ -1319,55 +1069,7 @@ } } }, - "Subnet": { - "options": { - "(google.api.resource).type": "vmwareengine.googleapis.com/Subnet", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "ipCidrRange": { - "type": "string", - "id": 7 - }, - "gatewayIp": { - "type": "string", - "id": 8 - }, - "type": { - "type": "string", - "id": 11, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "state": { - "type": "State", - "id": 13, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "ACTIVE": 1, - "CREATING": 2, - "UPDATING": 3, - "DELETING": 4 - } - } - } - }, - "ListSubnetsRequest": { + "ListSubnetsRequest": { "fields": { "parent": { "type": "string", @@ -1453,71 +1155,6 @@ } } }, - "NodeType": { - "options": { - "(google.api.resource).type": "vmwareengine.googleapis.com/NodeType", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/nodeTypes/{node_type}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "nodeTypeId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "displayName": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "virtualCpuCount": { - "type": "int32", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "totalCoreCount": { - "type": "int32", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "memoryGb": { - "type": "int32", - "id": 7, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "diskSizeGb": { - "type": "int32", - "id": 8, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "availableCustomCoreCounts": { - "rule": "repeated", - "type": "int32", - "id": 11, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } - }, "ListNodeTypesRequest": { "fields": { "parent": { @@ -1572,18 +1209,6 @@ } } }, - "Credentials": { - "fields": { - "username": { - "type": "string", - "id": 1 - }, - "password": { - "type": "string", - "id": 2 - } - } - }, "ShowNsxCredentialsRequest": { "fields": { "privateCloud": { @@ -1664,59 +1289,6 @@ } } }, - "HcxActivationKey": { - "options": { - "(google.api.resource).type": "vmwareengine.googleapis.com/HcxActivationKey", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}" - }, - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "state": { - "type": "State", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "activationKey": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "uid": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "AVAILABLE": 1, - "CONSUMED": 2, - "CREATING": 3 - } - } - } - }, "ListHcxActivationKeysRequest": { "fields": { "parent": { @@ -1779,211 +1351,245 @@ } } }, - "Hcx": { + "ListNetworkPoliciesRequest": { "fields": { - "internalIp": { + "parent": { "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/NetworkPolicy" + } + }, + "pageSize": { + "type": "int32", "id": 2 }, - "version": { + "pageToken": { "type": "string", - "id": 4 + "id": 3 }, - "state": { - "type": "State", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "filter": { + "type": "string", + "id": 4 }, - "fqdn": { + "orderBy": { "type": "string", - "id": 6 - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "ACTIVE": 1, - "CREATING": 2 - } + "id": 5 } } }, - "Nsx": { + "ListNetworkPoliciesResponse": { "fields": { - "internalIp": { - "type": "string", - "id": 2 + "networkPolicies": { + "rule": "repeated", + "type": "NetworkPolicy", + "id": 1 }, - "version": { + "nextPageToken": { "type": "string", - "id": 4 - }, - "state": { - "type": "State", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "id": 2 }, - "fqdn": { + "unreachable": { + "rule": "repeated", "type": "string", - "id": 6 + "id": 3 } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "ACTIVE": 1, - "CREATING": 2 + } + }, + "GetNetworkPolicyRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" } } } }, - "Vcenter": { + "UpdateNetworkPolicyRequest": { "fields": { - "internalIp": { + "networkPolicy": { + "type": "NetworkPolicy", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { "type": "string", - "id": 2 + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "CreateNetworkPolicyRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/NetworkPolicy" + } }, - "version": { + "networkPolicyId": { "type": "string", - "id": 4 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "state": { - "type": "State", - "id": 5, + "networkPolicy": { + "type": "NetworkPolicy", + "id": 3, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "fqdn": { + "requestId": { "type": "string", - "id": 6 - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "ACTIVE": 1, - "CREATING": 2 + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } } } }, - "NetworkPolicy": { - "options": { - "(google.api.resource).type": "vmwareengine.googleapis.com/NetworkPolicy", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/networkPolicies/{network_policy}" - }, + "DeleteNetworkPolicyRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" } }, - "createTime": { - "type": "google.protobuf.Timestamp", + "requestId": { + "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 3, + } + } + }, + "CreateVmwareEngineNetworkRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/VmwareEngineNetwork" } }, - "internetAccess": { - "type": "NetworkService", - "id": 6 + "vmwareEngineNetworkId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "externalIp": { - "type": "NetworkService", - "id": 7 + "vmwareEngineNetwork": { + "type": "VmwareEngineNetwork", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "edgeServicesCidr": { + "requestId": { "type": "string", - "id": 9, + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "UpdateVmwareEngineNetworkRequest": { + "fields": { + "vmwareEngineNetwork": { + "type": "VmwareEngineNetwork", + "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "uid": { - "type": "string", - "id": 10, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "vmwareEngineNetwork": { + "requestId": { "type": "string", - "id": 12, + "id": 3, "options": { - "(google.api.field_behavior)": "OPTIONAL", + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteVmwareEngineNetworkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" } }, - "description": { + "requestId": { "type": "string", - "id": 13, + "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, - "vmwareEngineNetworkCanonical": { + "etag": { "type": "string", - "id": 14, + "id": 3, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + "(google.api.field_behavior)": "OPTIONAL" } } - }, - "nested": { - "NetworkService": { - "fields": { - "enabled": { - "type": "bool", - "id": 1 - }, - "state": { - "type": "State", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "UNPROVISIONED": 1, - "RECONCILING": 2, - "ACTIVE": 3 - } - } + } + }, + "GetVmwareEngineNetworkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" } } } }, - "ListNetworkPoliciesRequest": { + "ListVmwareEngineNetworksRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/NetworkPolicy" + "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "pageSize": { @@ -2004,11 +1610,11 @@ } } }, - "ListNetworkPoliciesResponse": { + "ListVmwareEngineNetworksResponse": { "fields": { - "networkPolicies": { + "vmwareEngineNetworks": { "rule": "repeated", - "type": "NetworkPolicy", + "type": "VmwareEngineNetwork", "id": 1 }, "nextPageToken": { @@ -2022,92 +1628,628 @@ } } }, - "GetNetworkPolicyRequest": { + "NetworkConfig": { "fields": { - "name": { + "managementCidr": { "type": "string", - "id": 1, + "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" + "(google.api.field_behavior)": "REQUIRED" + } + }, + "vmwareEngineNetwork": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + }, + "vmwareEngineNetworkCanonical": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + }, + "managementIpAddressLayoutVersion": { + "type": "int32", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, - "UpdateNetworkPolicyRequest": { + "NodeTypeConfig": { "fields": { - "networkPolicy": { - "type": "NetworkPolicy", + "nodeCount": { + "type": "int32", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "customCoreCount": { + "type": "int32", "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "requestId": { - "type": "string", - "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, - "CreateNetworkPolicyRequest": { + "PrivateCloud": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/PrivateCloud", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "deleteTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "expireTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "networkConfig": { + "type": "NetworkConfig", + "id": 9, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "managementCluster": { + "type": "ManagementCluster", + "id": 10, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "description": { + "type": "string", + "id": 11 + }, + "hcx": { + "type": "Hcx", + "id": 17, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "nsx": { + "type": "Nsx", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "vcenter": { + "type": "Vcenter", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "uid": { + "type": "string", + "id": 20, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2, + "UPDATING": 3, + "FAILED": 5, + "DELETED": 6, + "PURGING": 7 + } + }, + "ManagementCluster": { + "fields": { + "clusterId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "nodeTypeConfigs": { + "keyType": "string", + "type": "NodeTypeConfig", + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + } + } + }, + "Cluster": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/Cluster", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "management": { + "type": "bool", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "uid": { + "type": "string", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "nodeTypeConfigs": { + "keyType": "string", + "type": "NodeTypeConfig", + "id": 16, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2, + "UPDATING": 3, + "DELETING": 4, + "REPAIRING": 5 + } + } + } + }, + "Subnet": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/Subnet", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "ipCidrRange": { + "type": "string", + "id": 7 + }, + "gatewayIp": { + "type": "string", + "id": 8 + }, + "type": { + "type": "string", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 13, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2, + "UPDATING": 3, + "DELETING": 4 + } + } + } + }, + "NodeType": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/NodeType", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/nodeTypes/{node_type}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "nodeTypeId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "virtualCpuCount": { + "type": "int32", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "totalCoreCount": { + "type": "int32", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "memoryGb": { + "type": "int32", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "diskSizeGb": { + "type": "int32", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "availableCustomCoreCounts": { + "rule": "repeated", + "type": "int32", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "Credentials": { + "fields": { + "username": { + "type": "string", + "id": 1 + }, + "password": { + "type": "string", + "id": 2 + } + } + }, + "HcxActivationKey": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/HcxActivationKey", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "activationKey": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "uid": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "AVAILABLE": 1, + "CONSUMED": 2, + "CREATING": 3 + } + } + } + }, + "Hcx": { + "fields": { + "internalIp": { + "type": "string", + "id": 2 + }, + "version": { + "type": "string", + "id": 4 + }, + "state": { + "type": "State", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "fqdn": { + "type": "string", + "id": 6 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2 + } + } + } + }, + "Nsx": { + "fields": { + "internalIp": { + "type": "string", + "id": 2 + }, + "version": { + "type": "string", + "id": 4 + }, + "state": { + "type": "State", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "fqdn": { + "type": "string", + "id": 6 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2 + } + } + } + }, + "Vcenter": { + "fields": { + "internalIp": { + "type": "string", + "id": 2 + }, + "version": { + "type": "string", + "id": 4 + }, + "state": { + "type": "State", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "fqdn": { + "type": "string", + "id": 6 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CREATING": 2 + } + } + } + }, + "NetworkPolicy": { + "options": { + "(google.api.resource).type": "vmwareengine.googleapis.com/NetworkPolicy", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/networkPolicies/{network_policy}" + }, "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/NetworkPolicy" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "networkPolicyId": { - "type": "string", + "createTime": { + "type": "google.protobuf.Timestamp", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "networkPolicy": { - "type": "NetworkPolicy", + "updateTime": { + "type": "google.protobuf.Timestamp", "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "internetAccess": { + "type": "NetworkService", + "id": 6 + }, + "externalIp": { + "type": "NetworkService", + "id": 7 + }, + "edgeServicesCidr": { + "type": "string", + "id": 9, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "requestId": { + "uid": { "type": "string", - "id": 4, + "id": 10, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "DeleteNetworkPolicyRequest": { - "fields": { - "name": { + }, + "vmwareEngineNetwork": { "type": "string", - "id": 1, + "id": 12, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/NetworkPolicy" + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" } }, - "requestId": { + "description": { "type": "string", - "id": 2, + "id": 13, "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "vmwareEngineNetworkCanonical": { + "type": "string", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + } + }, + "nested": { + "NetworkService": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + }, + "state": { + "type": "State", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "UNPROVISIONED": 1, + "RECONCILING": 2, + "ACTIVE": 3 + } + } + } } } }, @@ -2222,148 +2364,6 @@ } } } - }, - "CreateVmwareEngineNetworkRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "vmwareengine.googleapis.com/VmwareEngineNetwork" - } - }, - "vmwareEngineNetworkId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "vmwareEngineNetwork": { - "type": "VmwareEngineNetwork", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "requestId": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "UpdateVmwareEngineNetworkRequest": { - "fields": { - "vmwareEngineNetwork": { - "type": "VmwareEngineNetwork", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "requestId": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "DeleteVmwareEngineNetworkRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" - } - }, - "requestId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "etag": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "GetVmwareEngineNetworkRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "vmwareengine.googleapis.com/VmwareEngineNetwork" - } - } - } - }, - "ListVmwareEngineNetworksRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } - }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - }, - "filter": { - "type": "string", - "id": 4 - }, - "orderBy": { - "type": "string", - "id": 5 - } - } - }, - "ListVmwareEngineNetworksResponse": { - "fields": { - "vmwareEngineNetworks": { - "rule": "repeated", - "type": "VmwareEngineNetwork", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - }, - "unreachable": { - "rule": "repeated", - "type": "string", - "id": 3 - } - } } } } @@ -3512,6 +3512,18 @@ } } }, + "Timestamp": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + }, "Any": { "fields": { "type_url": { @@ -3547,18 +3559,6 @@ "id": 1 } } - }, - "Timestamp": { - "fields": { - "seconds": { - "type": "int64", - "id": 1 - }, - "nanos": { - "type": "int32", - "id": 2 - } - } } } }, diff --git a/packages/google-cloud-vmwareengine/src/v1/vmware_engine_proto_list.json b/packages/google-cloud-vmwareengine/src/v1/vmware_engine_proto_list.json index af09633aca98..72fd1db8924c 100644 --- a/packages/google-cloud-vmwareengine/src/v1/vmware_engine_proto_list.json +++ b/packages/google-cloud-vmwareengine/src/v1/vmware_engine_proto_list.json @@ -1,3 +1,4 @@ [ - "../../protos/google/cloud/vmwareengine/v1/vmwareengine.proto" + "../../protos/google/cloud/vmwareengine/v1/vmwareengine.proto", + "../../protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto" ] From a34f857353e14b653bd696a5c2faa57e6649a0d8 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Mon, 30 Jan 2023 13:39:05 -0800 Subject: [PATCH 02/38] build: get publication token from keystore (#3917) --- .kokoro/release/publish.cfg | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.kokoro/release/publish.cfg b/.kokoro/release/publish.cfg index ecaeecd5336c..9ad746d9de80 100644 --- a/.kokoro/release/publish.cfg +++ b/.kokoro/release/publish.cfg @@ -1,3 +1,12 @@ +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "google-cloud-node-npm-token-1" + } + } +} + env_vars: { key: "SECRET_MANAGER_KEYS" value: "repo_automation_bots_npm_publish_token,releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" @@ -15,4 +24,4 @@ env_vars: { env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/google-cloud-node/.kokoro/release/publish.sh" -} \ No newline at end of file +} From 6542d1e8ffaeb35cc0526de8df2ee11fb3c3e75d Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Mon, 30 Jan 2023 14:53:10 -0800 Subject: [PATCH 03/38] feat: [recaptcha-enterprise] add account_verification field to Assessment for MFA (#3910) * feat: [recaptcha-enterprise] add account_verification field to Assessment for MFA See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../.jsdoc.js | 4 +- .../v1/recaptchaenterprise.proto | 253 ++++-- .../protos/protos.d.ts | 274 ++++++ .../protos/protos.js | 787 +++++++++++++++++- .../protos/protos.json | 96 +++ ..._enterprise_service.annotate_assessment.js | 11 +- ...ha_enterprise_service.create_assessment.js | 2 +- ...recaptcha_enterprise_service.create_key.js | 2 +- ...recaptcha_enterprise_service.delete_key.js | 2 +- .../recaptcha_enterprise_service.get_key.js | 2 +- ...ecaptcha_enterprise_service.get_metrics.js | 2 +- .../recaptcha_enterprise_service.list_keys.js | 2 +- ....list_related_account_group_memberships.js | 13 +- ...ise_service.list_related_account_groups.js | 17 +- ...ecaptcha_enterprise_service.migrate_key.js | 13 +- ...rise_service.retrieve_legacy_secret_key.js | 6 +- ...earch_related_account_group_memberships.js | 20 +- ...recaptcha_enterprise_service.update_key.js | 6 +- ...a.google.cloud.recaptchaenterprise.v1.json | 12 +- ...se_service_v1_beta1.annotate_assessment.js | 2 +- ...rise_service_v1_beta1.create_assessment.js | 2 +- .../src/v1/index.ts | 2 +- .../v1/recaptcha_enterprise_service_client.ts | 160 ++-- .../src/v1beta1/index.ts | 2 +- ...tcha_enterprise_service_v1_beta1_client.ts | 2 +- .../system-test/fixtures/sample/src/index.js | 2 +- .../system-test/fixtures/sample/src/index.ts | 2 +- .../system-test/install.ts | 2 +- .../gapic_recaptcha_enterprise_service_v1.ts | 2 +- ...cha_enterprise_service_v1_beta1_v1beta1.ts | 2 +- 30 files changed, 1496 insertions(+), 208 deletions(-) diff --git a/packages/google-cloud-recaptchaenterprise/.jsdoc.js b/packages/google-cloud-recaptchaenterprise/.jsdoc.js index fd8d38512d4b..495384476fc3 100644 --- a/packages/google-cloud-recaptchaenterprise/.jsdoc.js +++ b/packages/google-cloud-recaptchaenterprise/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2022 Google LLC', + copyright: 'Copyright 2023 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/recaptcha-enterprise', diff --git a/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto index 9376f342ce5e..12e5852d50c7 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto +++ b/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto @@ -36,7 +36,8 @@ option ruby_package = "Google::Cloud::RecaptchaEnterprise::V1"; // Service to determine the likelihood an event is legitimate. service RecaptchaEnterpriseService { option (google.api.default_host) = "recaptchaenterprise.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates an Assessment of the likelihood an event is legitimate. rpc CreateAssessment(CreateAssessmentRequest) returns (Assessment) { @@ -49,7 +50,8 @@ service RecaptchaEnterpriseService { // Annotates a previously created Assessment to provide additional information // on whether the event turned out to be authentic or fraudulent. - rpc AnnotateAssessment(AnnotateAssessmentRequest) returns (AnnotateAssessmentResponse) { + rpc AnnotateAssessment(AnnotateAssessmentRequest) + returns (AnnotateAssessmentResponse) { option (google.api.http) = { post: "/v1/{name=projects/*/assessments/*}:annotate" body: "*" @@ -75,7 +77,8 @@ service RecaptchaEnterpriseService { // Returns the secret key related to the specified public key. // You must use the legacy secret key only in a 3rd party integration with // legacy reCAPTCHA. - rpc RetrieveLegacySecretKey(RetrieveLegacySecretKeyRequest) returns (RetrieveLegacySecretKeyResponse) { + rpc RetrieveLegacySecretKey(RetrieveLegacySecretKeyRequest) + returns (RetrieveLegacySecretKeyResponse) { option (google.api.http) = { get: "/v1/{key=projects/*/keys/*}:retrieveLegacySecretKey" }; @@ -127,7 +130,8 @@ service RecaptchaEnterpriseService { } // List groups of related accounts. - rpc ListRelatedAccountGroups(ListRelatedAccountGroupsRequest) returns (ListRelatedAccountGroupsResponse) { + rpc ListRelatedAccountGroups(ListRelatedAccountGroupsRequest) + returns (ListRelatedAccountGroupsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*}/relatedaccountgroups" }; @@ -135,7 +139,9 @@ service RecaptchaEnterpriseService { } // Get memberships in a group of related accounts. - rpc ListRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest) returns (ListRelatedAccountGroupMembershipsResponse) { + rpc ListRelatedAccountGroupMemberships( + ListRelatedAccountGroupMembershipsRequest) + returns (ListRelatedAccountGroupMembershipsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/relatedaccountgroups/*}/memberships" }; @@ -143,7 +149,9 @@ service RecaptchaEnterpriseService { } // Search group memberships related to a given account. - rpc SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest) returns (SearchRelatedAccountGroupMembershipsResponse) { + rpc SearchRelatedAccountGroupMemberships( + SearchRelatedAccountGroupMembershipsRequest) + returns (SearchRelatedAccountGroupMembershipsResponse) { option (google.api.http) = { post: "/v1/{project=projects/*}/relatedaccountgroupmemberships:search" body: "*" @@ -265,12 +273,13 @@ message AnnotateAssessmentRequest { } ]; - // Optional. The annotation that will be assigned to the Event. This field can be left - // empty to provide reasons that apply to an event without concluding whether - // the event is legitimate or fraudulent. + // Optional. The annotation that will be assigned to the Event. This field can + // be left empty to provide reasons that apply to an event without concluding + // whether the event is legitimate or fraudulent. Annotation annotation = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Optional reasons for the annotation that will be assigned to the Event. + // Optional. Optional reasons for the annotation that will be assigned to the + // Event. repeated Reason reasons = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Unique stable hashed user identifier to apply to the assessment. @@ -282,30 +291,114 @@ message AnnotateAssessmentRequest { } // Empty response for AnnotateAssessment. -message AnnotateAssessmentResponse { +message AnnotateAssessmentResponse {} +// Information about a verification endpoint that can be used for 2FA. +message EndpointVerificationInfo { + oneof endpoint { + // Email address for which to trigger a verification request. + string email_address = 1; + + // Phone number for which to trigger a verification request. Should be given + // in E.164 format. + string phone_number = 2; + } + + // Output only. Token to provide to the client to trigger endpoint + // verification. It must be used within 15 minutes. + string request_token = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp of the last successful verification for the + // endpoint, if any. + google.protobuf.Timestamp last_verification_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Information about account verification, used for identity verification. +message AccountVerificationInfo { + // Result of the account verification as contained in the verdict token issued + // at the end of the verification flow. + enum Result { + // No information about the latest account verification. + RESULT_UNSPECIFIED = 0; + + // The user was successfully verified. This means the account verification + // challenge was successfully completed. + SUCCESS_USER_VERIFIED = 1; + + // The user failed the verification challenge. + ERROR_USER_NOT_VERIFIED = 2; + + // The site is not properly onboarded to use the account verification + // feature. + ERROR_SITE_ONBOARDING_INCOMPLETE = 3; + + // The recipient is not allowed for account verification. This can occur + // during integration but should not occur in production. + ERROR_RECIPIENT_NOT_ALLOWED = 4; + + // The recipient has already been sent too many verification codes in a + // short amount of time. + ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED = 5; + + // The verification flow could not be completed due to a critical internal + // error. + ERROR_CRITICAL_INTERNAL = 6; + + // The client has exceeded their two factor request quota for this period of + // time. + ERROR_CUSTOMER_QUOTA_EXHAUSTED = 7; + + // The request cannot be processed at the time because of an incident. This + // bypass can be restricted to a problematic destination email domain, a + // customer, or could affect the entire service. + ERROR_VERIFICATION_BYPASSED = 8; + + // The request parameters do not match with the token provided and cannot be + // processed. + ERROR_VERDICT_MISMATCH = 9; + } + + // Endpoints that can be used for identity verification. + repeated EndpointVerificationInfo endpoints = 1; + + // Language code preference for the verification message, set as a IETF BCP 47 + // language code. + string language_code = 3; + + // Output only. Result of the latest account verification challenge. + Result latest_verification_result = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Username of the account that is being verified. Deprecated. Customers + // should now provide the hashed account ID field in Event. + string username = 2 [deprecated = true]; } // Private password leak verification info. message PrivatePasswordLeakVerification { - // Optional. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It - // is used to look up password leaks associated with that hash prefix. + // Optional. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized + // username. It is used to look up password leaks associated with that hash + // prefix. bytes lookup_hash_prefix = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Encrypted Scrypt hash of the canonicalized username+password. It is - // re-encrypted by the server and returned through + // Optional. Encrypted Scrypt hash of the canonicalized username+password. It + // is re-encrypted by the server and returned through // `reencrypted_user_credentials_hash`. - bytes encrypted_user_credentials_hash = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. List of prefixes of the encrypted potential password leaks that matched the - // given parameters. They must be compared with the client-side decryption - // prefix of `reencrypted_user_credentials_hash` - repeated bytes encrypted_leak_match_prefixes = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Corresponds to the re-encryption of the `encrypted_user_credentials_hash` - // field. It is used to match potential password leaks within - // `encrypted_leak_match_prefixes`. - bytes reencrypted_user_credentials_hash = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + bytes encrypted_user_credentials_hash = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. List of prefixes of the encrypted potential password leaks + // that matched the given parameters. They must be compared with the + // client-side decryption prefix of `reencrypted_user_credentials_hash` + repeated bytes encrypted_leak_match_prefixes = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Corresponds to the re-encryption of the + // `encrypted_user_credentials_hash` field. It is used to match potential + // password leaks within `encrypted_leak_match_prefixes`. + bytes reencrypted_user_credentials_hash = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A recaptcha assessment resource. @@ -326,7 +419,12 @@ message Assessment { RiskAnalysis risk_analysis = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Properties of the provided event token. - TokenProperties token_properties = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + TokenProperties token_properties = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Account verification information for identity verification. The assessment + // event must include a token and site key to use this feature. + AccountVerificationInfo account_verification = 5; // Assessment returned by account defender when a hashed_account_id is // provided. @@ -338,28 +436,29 @@ message Assessment { } message Event { - // Optional. The user response token provided by the reCAPTCHA client-side integration - // on your site. + // Optional. The user response token provided by the reCAPTCHA client-side + // integration on your site. string token = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The site key that was used to invoke reCAPTCHA on your site and generate - // the token. + // Optional. The site key that was used to invoke reCAPTCHA on your site and + // generate the token. string site_key = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The user agent present in the request from the user's device related to - // this event. + // Optional. The user agent present in the request from the user's device + // related to this event. string user_agent = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The IP address in the request from the user's device related to this event. + // Optional. The IP address in the request from the user's device related to + // this event. string user_ip_address = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The expected action for this type of event. This should be the same action - // provided at token generation time on client-side platforms already - // integrated with recaptcha enterprise. + // Optional. The expected action for this type of event. This should be the + // same action provided at token generation time on client-side platforms + // already integrated with recaptcha enterprise. string expected_action = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Unique stable hashed user identifier for the request. The identifier must - // be hashed using hmac-sha256 with stable secret. + // Optional. Unique stable hashed user identifier for the request. The + // identifier must be hashed using hmac-sha256 with stable secret. bytes hashed_account_id = 6 [(google.api.field_behavior) = OPTIONAL]; } @@ -439,6 +538,14 @@ message TokenProperties { // The hostname of the page on which the token was generated (Web keys only). string hostname = 4; + // The name of the Android package with which the token was generated (Android + // keys only). + string android_package_name = 8; + + // The ID of the iOS bundle with which the token was generated (iOS keys + // only). + string ios_bundle_id = 9; + // Action name provided at token generation. string action = 5; } @@ -518,8 +625,8 @@ message ListKeysResponse { // The retrieve legacy secret key request message. message RetrieveLegacySecretKeyRequest { - // Required. The public key name linked to the requested secret key in the format - // "projects/{project}/keys/{key}". + // Required. The public key name linked to the requested secret key in the + // format "projects/{project}/keys/{key}". string key = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -545,9 +652,10 @@ message UpdateKeyRequest { // Required. The key to update. Key key = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. The mask to control which fields of the key get updated. If the mask is not - // present, all fields will be updated. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The mask to control which fields of the key get updated. If the + // mask is not present, all fields will be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; } // The delete key request message. @@ -572,6 +680,16 @@ message MigrateKeyRequest { type: "recaptchaenterprise.googleapis.com/Key" } ]; + + // Optional. If true, skips the billing check. + // A reCAPTCHA Enterprise key or migrated key behaves differently than a + // reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see + // https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid + // any disruption of your usage, we check that a billing account is present. + // If your usage of reCAPTCHA is under the free quota, you can safely skip the + // billing check and proceed with the migration. See + // https://cloud.google.com/recaptcha-enterprise/docs/billing-information. + bool skip_billing_check = 2 [(google.api.field_behavior) = OPTIONAL]; } // The get metrics request message. @@ -785,7 +903,6 @@ message ScoreMetrics { // Action-based metrics. The map key is the action name which specified by the // site owners at time of the "execute" client-side call. - // Populated only for SCORE keys. map action_metrics = 2; } @@ -819,14 +936,13 @@ message ListRelatedAccountGroupMembershipsRequest { } ]; - // Optional. The maximum number of accounts to return. The service might return fewer - // than this value. - // If unspecified, at most 50 accounts are returned. - // The maximum value is 1000; values above 1000 are coerced to 1000. + // Optional. The maximum number of accounts to return. The service might + // return fewer than this value. If unspecified, at most 50 accounts are + // returned. The maximum value is 1000; values above 1000 are coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships` - // call. + // Optional. A page token, received from a previous + // `ListRelatedAccountGroupMemberships` call. // // When paginating, all other parameters provided to // `ListRelatedAccountGroupMemberships` must match the call that provided the @@ -846,8 +962,8 @@ message ListRelatedAccountGroupMembershipsResponse { // The request message to list related account groups. message ListRelatedAccountGroupsRequest { - // Required. The name of the project to list related account groups from, in the format - // "projects/{project}". + // Required. The name of the project to list related account groups from, in + // the format "projects/{project}". string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -855,14 +971,13 @@ message ListRelatedAccountGroupsRequest { } ]; - // Optional. The maximum number of groups to return. The service might return fewer than - // this value. - // If unspecified, at most 50 groups are returned. - // The maximum value is 1000; values above 1000 are coerced to 1000. + // Optional. The maximum number of groups to return. The service might return + // fewer than this value. If unspecified, at most 50 groups are returned. The + // maximum value is 1000; values above 1000 are coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A page token, received from a previous `ListRelatedAccountGroups` call. - // Provide this to retrieve the subsequent page. + // Optional. A page token, received from a previous `ListRelatedAccountGroups` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // `ListRelatedAccountGroups` must match the call that provided the page @@ -882,8 +997,9 @@ message ListRelatedAccountGroupsResponse { // The request message to search related account group memberships. message SearchRelatedAccountGroupMembershipsRequest { - // Required. The name of the project to search related account group memberships from. - // Specify the project name in the following format: "projects/{project}". + // Required. The name of the project to search related account group + // memberships from. Specify the project name in the following format: + // "projects/{project}". string project = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -891,15 +1007,14 @@ message SearchRelatedAccountGroupMembershipsRequest { } ]; - // Optional. The unique stable hashed user identifier we should search connections to. - // The identifier should correspond to a `hashed_account_id` provided in a - // previous `CreateAssessment` or `AnnotateAssessment` call. + // Optional. The unique stable hashed user identifier we should search + // connections to. The identifier should correspond to a `hashed_account_id` + // provided in a previous `CreateAssessment` or `AnnotateAssessment` call. bytes hashed_account_id = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The maximum number of groups to return. The service might return fewer than - // this value. - // If unspecified, at most 50 groups are returned. - // The maximum value is 1000; values above 1000 are coerced to 1000. + // Optional. The maximum number of groups to return. The service might return + // fewer than this value. If unspecified, at most 50 groups are returned. The + // maximum value is 1000; values above 1000 are coerced to 1000. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous @@ -995,4 +1110,4 @@ message WafSettings { // Required. The WAF feature for which this key is enabled. WafFeature waf_feature = 2 [(google.api.field_behavior) = REQUIRED]; -} +} \ No newline at end of file diff --git a/packages/google-cloud-recaptchaenterprise/protos/protos.d.ts b/packages/google-cloud-recaptchaenterprise/protos/protos.d.ts index 32462aaaf85d..b487d988a9e0 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/protos.d.ts +++ b/packages/google-cloud-recaptchaenterprise/protos/protos.d.ts @@ -663,6 +663,256 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an EndpointVerificationInfo. */ + interface IEndpointVerificationInfo { + + /** EndpointVerificationInfo emailAddress */ + emailAddress?: (string|null); + + /** EndpointVerificationInfo phoneNumber */ + phoneNumber?: (string|null); + + /** EndpointVerificationInfo requestToken */ + requestToken?: (string|null); + + /** EndpointVerificationInfo lastVerificationTime */ + lastVerificationTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents an EndpointVerificationInfo. */ + class EndpointVerificationInfo implements IEndpointVerificationInfo { + + /** + * Constructs a new EndpointVerificationInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo); + + /** EndpointVerificationInfo emailAddress. */ + public emailAddress?: (string|null); + + /** EndpointVerificationInfo phoneNumber. */ + public phoneNumber?: (string|null); + + /** EndpointVerificationInfo requestToken. */ + public requestToken: string; + + /** EndpointVerificationInfo lastVerificationTime. */ + public lastVerificationTime?: (google.protobuf.ITimestamp|null); + + /** EndpointVerificationInfo endpoint. */ + public endpoint?: ("emailAddress"|"phoneNumber"); + + /** + * Creates a new EndpointVerificationInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns EndpointVerificationInfo instance + */ + public static create(properties?: google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo): google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo; + + /** + * Encodes the specified EndpointVerificationInfo message. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.verify|verify} messages. + * @param message EndpointVerificationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EndpointVerificationInfo message, length delimited. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.verify|verify} messages. + * @param message EndpointVerificationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EndpointVerificationInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EndpointVerificationInfo + * @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.recaptchaenterprise.v1.EndpointVerificationInfo; + + /** + * Decodes an EndpointVerificationInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EndpointVerificationInfo + * @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.recaptchaenterprise.v1.EndpointVerificationInfo; + + /** + * Verifies an EndpointVerificationInfo 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 an EndpointVerificationInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EndpointVerificationInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo; + + /** + * Creates a plain object from an EndpointVerificationInfo message. Also converts values to other types if specified. + * @param message EndpointVerificationInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EndpointVerificationInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EndpointVerificationInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AccountVerificationInfo. */ + interface IAccountVerificationInfo { + + /** AccountVerificationInfo endpoints */ + endpoints?: (google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo[]|null); + + /** AccountVerificationInfo languageCode */ + languageCode?: (string|null); + + /** AccountVerificationInfo latestVerificationResult */ + latestVerificationResult?: (google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result|keyof typeof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result|null); + + /** AccountVerificationInfo username */ + username?: (string|null); + } + + /** Represents an AccountVerificationInfo. */ + class AccountVerificationInfo implements IAccountVerificationInfo { + + /** + * Constructs a new AccountVerificationInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo); + + /** AccountVerificationInfo endpoints. */ + public endpoints: google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo[]; + + /** AccountVerificationInfo languageCode. */ + public languageCode: string; + + /** AccountVerificationInfo latestVerificationResult. */ + public latestVerificationResult: (google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result|keyof typeof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result); + + /** AccountVerificationInfo username. */ + public username: string; + + /** + * Creates a new AccountVerificationInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AccountVerificationInfo instance + */ + public static create(properties?: google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo): google.cloud.recaptchaenterprise.v1.AccountVerificationInfo; + + /** + * Encodes the specified AccountVerificationInfo message. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.verify|verify} messages. + * @param message AccountVerificationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccountVerificationInfo message, length delimited. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.verify|verify} messages. + * @param message AccountVerificationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccountVerificationInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccountVerificationInfo + * @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.recaptchaenterprise.v1.AccountVerificationInfo; + + /** + * Decodes an AccountVerificationInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccountVerificationInfo + * @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.recaptchaenterprise.v1.AccountVerificationInfo; + + /** + * Verifies an AccountVerificationInfo 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 an AccountVerificationInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccountVerificationInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recaptchaenterprise.v1.AccountVerificationInfo; + + /** + * Creates a plain object from an AccountVerificationInfo message. Also converts values to other types if specified. + * @param message AccountVerificationInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recaptchaenterprise.v1.AccountVerificationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccountVerificationInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccountVerificationInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AccountVerificationInfo { + + /** Result enum. */ + enum Result { + RESULT_UNSPECIFIED = 0, + SUCCESS_USER_VERIFIED = 1, + ERROR_USER_NOT_VERIFIED = 2, + ERROR_SITE_ONBOARDING_INCOMPLETE = 3, + ERROR_RECIPIENT_NOT_ALLOWED = 4, + ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED = 5, + ERROR_CRITICAL_INTERNAL = 6, + ERROR_CUSTOMER_QUOTA_EXHAUSTED = 7, + ERROR_VERIFICATION_BYPASSED = 8, + ERROR_VERDICT_MISMATCH = 9 + } + } + /** Properties of a PrivatePasswordLeakVerification. */ interface IPrivatePasswordLeakVerification { @@ -793,6 +1043,9 @@ export namespace google { /** Assessment tokenProperties */ tokenProperties?: (google.cloud.recaptchaenterprise.v1.ITokenProperties|null); + /** Assessment accountVerification */ + accountVerification?: (google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo|null); + /** Assessment accountDefenderAssessment */ accountDefenderAssessment?: (google.cloud.recaptchaenterprise.v1.IAccountDefenderAssessment|null); @@ -821,6 +1074,9 @@ export namespace google { /** Assessment tokenProperties. */ public tokenProperties?: (google.cloud.recaptchaenterprise.v1.ITokenProperties|null); + /** Assessment accountVerification. */ + public accountVerification?: (google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo|null); + /** Assessment accountDefenderAssessment. */ public accountDefenderAssessment?: (google.cloud.recaptchaenterprise.v1.IAccountDefenderAssessment|null); @@ -1163,6 +1419,12 @@ export namespace google { /** TokenProperties hostname */ hostname?: (string|null); + /** TokenProperties androidPackageName */ + androidPackageName?: (string|null); + + /** TokenProperties iosBundleId */ + iosBundleId?: (string|null); + /** TokenProperties action */ action?: (string|null); } @@ -1188,6 +1450,12 @@ export namespace google { /** TokenProperties hostname. */ public hostname: string; + /** TokenProperties androidPackageName. */ + public androidPackageName: string; + + /** TokenProperties iosBundleId. */ + public iosBundleId: string; + /** TokenProperties action. */ public action: string; @@ -2106,6 +2374,9 @@ export namespace google { /** MigrateKeyRequest name */ name?: (string|null); + + /** MigrateKeyRequest skipBillingCheck */ + skipBillingCheck?: (boolean|null); } /** Represents a MigrateKeyRequest. */ @@ -2120,6 +2391,9 @@ export namespace google { /** MigrateKeyRequest name. */ public name: string; + /** MigrateKeyRequest skipBillingCheck. */ + public skipBillingCheck: boolean; + /** * Creates a new MigrateKeyRequest instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-recaptchaenterprise/protos/protos.js b/packages/google-cloud-recaptchaenterprise/protos/protos.js index 310629700b15..29647a583746 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/protos.js +++ b/packages/google-cloud-recaptchaenterprise/protos/protos.js @@ -1422,6 +1422,693 @@ return AnnotateAssessmentResponse; })(); + v1.EndpointVerificationInfo = (function() { + + /** + * Properties of an EndpointVerificationInfo. + * @memberof google.cloud.recaptchaenterprise.v1 + * @interface IEndpointVerificationInfo + * @property {string|null} [emailAddress] EndpointVerificationInfo emailAddress + * @property {string|null} [phoneNumber] EndpointVerificationInfo phoneNumber + * @property {string|null} [requestToken] EndpointVerificationInfo requestToken + * @property {google.protobuf.ITimestamp|null} [lastVerificationTime] EndpointVerificationInfo lastVerificationTime + */ + + /** + * Constructs a new EndpointVerificationInfo. + * @memberof google.cloud.recaptchaenterprise.v1 + * @classdesc Represents an EndpointVerificationInfo. + * @implements IEndpointVerificationInfo + * @constructor + * @param {google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo=} [properties] Properties to set + */ + function EndpointVerificationInfo(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]]; + } + + /** + * EndpointVerificationInfo emailAddress. + * @member {string|null|undefined} emailAddress + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @instance + */ + EndpointVerificationInfo.prototype.emailAddress = null; + + /** + * EndpointVerificationInfo phoneNumber. + * @member {string|null|undefined} phoneNumber + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @instance + */ + EndpointVerificationInfo.prototype.phoneNumber = null; + + /** + * EndpointVerificationInfo requestToken. + * @member {string} requestToken + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @instance + */ + EndpointVerificationInfo.prototype.requestToken = ""; + + /** + * EndpointVerificationInfo lastVerificationTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastVerificationTime + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @instance + */ + EndpointVerificationInfo.prototype.lastVerificationTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EndpointVerificationInfo endpoint. + * @member {"emailAddress"|"phoneNumber"|undefined} endpoint + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @instance + */ + Object.defineProperty(EndpointVerificationInfo.prototype, "endpoint", { + get: $util.oneOfGetter($oneOfFields = ["emailAddress", "phoneNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EndpointVerificationInfo instance using the specified properties. + * @function create + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @static + * @param {google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo=} [properties] Properties to set + * @returns {google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo} EndpointVerificationInfo instance + */ + EndpointVerificationInfo.create = function create(properties) { + return new EndpointVerificationInfo(properties); + }; + + /** + * Encodes the specified EndpointVerificationInfo message. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @static + * @param {google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo} message EndpointVerificationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EndpointVerificationInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.emailAddress); + if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.phoneNumber); + if (message.requestToken != null && Object.hasOwnProperty.call(message, "requestToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestToken); + if (message.lastVerificationTime != null && Object.hasOwnProperty.call(message, "lastVerificationTime")) + $root.google.protobuf.Timestamp.encode(message.lastVerificationTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EndpointVerificationInfo message, length delimited. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @static + * @param {google.cloud.recaptchaenterprise.v1.IEndpointVerificationInfo} message EndpointVerificationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EndpointVerificationInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EndpointVerificationInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo} EndpointVerificationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EndpointVerificationInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.emailAddress = reader.string(); + break; + } + case 2: { + message.phoneNumber = reader.string(); + break; + } + case 3: { + message.requestToken = reader.string(); + break; + } + case 4: { + message.lastVerificationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EndpointVerificationInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo} EndpointVerificationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EndpointVerificationInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EndpointVerificationInfo message. + * @function verify + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EndpointVerificationInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) { + properties.endpoint = 1; + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + } + if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { + if (properties.endpoint === 1) + return "endpoint: multiple values"; + properties.endpoint = 1; + if (!$util.isString(message.phoneNumber)) + return "phoneNumber: string expected"; + } + if (message.requestToken != null && message.hasOwnProperty("requestToken")) + if (!$util.isString(message.requestToken)) + return "requestToken: string expected"; + if (message.lastVerificationTime != null && message.hasOwnProperty("lastVerificationTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastVerificationTime); + if (error) + return "lastVerificationTime." + error; + } + return null; + }; + + /** + * Creates an EndpointVerificationInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo} EndpointVerificationInfo + */ + EndpointVerificationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo) + return object; + var message = new $root.google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo(); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.phoneNumber != null) + message.phoneNumber = String(object.phoneNumber); + if (object.requestToken != null) + message.requestToken = String(object.requestToken); + if (object.lastVerificationTime != null) { + if (typeof object.lastVerificationTime !== "object") + throw TypeError(".google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.lastVerificationTime: object expected"); + message.lastVerificationTime = $root.google.protobuf.Timestamp.fromObject(object.lastVerificationTime); + } + return message; + }; + + /** + * Creates a plain object from an EndpointVerificationInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @static + * @param {google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo} message EndpointVerificationInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EndpointVerificationInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.requestToken = ""; + object.lastVerificationTime = null; + } + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) { + object.emailAddress = message.emailAddress; + if (options.oneofs) + object.endpoint = "emailAddress"; + } + if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { + object.phoneNumber = message.phoneNumber; + if (options.oneofs) + object.endpoint = "phoneNumber"; + } + if (message.requestToken != null && message.hasOwnProperty("requestToken")) + object.requestToken = message.requestToken; + if (message.lastVerificationTime != null && message.hasOwnProperty("lastVerificationTime")) + object.lastVerificationTime = $root.google.protobuf.Timestamp.toObject(message.lastVerificationTime, options); + return object; + }; + + /** + * Converts this EndpointVerificationInfo to JSON. + * @function toJSON + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @instance + * @returns {Object.} JSON object + */ + EndpointVerificationInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EndpointVerificationInfo + * @function getTypeUrl + * @memberof google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EndpointVerificationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo"; + }; + + return EndpointVerificationInfo; + })(); + + v1.AccountVerificationInfo = (function() { + + /** + * Properties of an AccountVerificationInfo. + * @memberof google.cloud.recaptchaenterprise.v1 + * @interface IAccountVerificationInfo + * @property {Array.|null} [endpoints] AccountVerificationInfo endpoints + * @property {string|null} [languageCode] AccountVerificationInfo languageCode + * @property {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result|null} [latestVerificationResult] AccountVerificationInfo latestVerificationResult + * @property {string|null} [username] AccountVerificationInfo username + */ + + /** + * Constructs a new AccountVerificationInfo. + * @memberof google.cloud.recaptchaenterprise.v1 + * @classdesc Represents an AccountVerificationInfo. + * @implements IAccountVerificationInfo + * @constructor + * @param {google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo=} [properties] Properties to set + */ + function AccountVerificationInfo(properties) { + this.endpoints = []; + 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]]; + } + + /** + * AccountVerificationInfo endpoints. + * @member {Array.} endpoints + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @instance + */ + AccountVerificationInfo.prototype.endpoints = $util.emptyArray; + + /** + * AccountVerificationInfo languageCode. + * @member {string} languageCode + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @instance + */ + AccountVerificationInfo.prototype.languageCode = ""; + + /** + * AccountVerificationInfo latestVerificationResult. + * @member {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result} latestVerificationResult + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @instance + */ + AccountVerificationInfo.prototype.latestVerificationResult = 0; + + /** + * AccountVerificationInfo username. + * @member {string} username + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @instance + */ + AccountVerificationInfo.prototype.username = ""; + + /** + * Creates a new AccountVerificationInfo instance using the specified properties. + * @function create + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @static + * @param {google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo=} [properties] Properties to set + * @returns {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo} AccountVerificationInfo instance + */ + AccountVerificationInfo.create = function create(properties) { + return new AccountVerificationInfo(properties); + }; + + /** + * Encodes the specified AccountVerificationInfo message. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @static + * @param {google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo} message AccountVerificationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountVerificationInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoints != null && message.endpoints.length) + for (var i = 0; i < message.endpoints.length; ++i) + $root.google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.encode(message.endpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.latestVerificationResult != null && Object.hasOwnProperty.call(message, "latestVerificationResult")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.latestVerificationResult); + return writer; + }; + + /** + * Encodes the specified AccountVerificationInfo message, length delimited. Does not implicitly {@link google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @static + * @param {google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo} message AccountVerificationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountVerificationInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AccountVerificationInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo} AccountVerificationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountVerificationInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.endpoints && message.endpoints.length)) + message.endpoints = []; + message.endpoints.push($root.google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.decode(reader, reader.uint32())); + break; + } + case 3: { + message.languageCode = reader.string(); + break; + } + case 7: { + message.latestVerificationResult = reader.int32(); + break; + } + case 2: { + message.username = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AccountVerificationInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo} AccountVerificationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountVerificationInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AccountVerificationInfo message. + * @function verify + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AccountVerificationInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoints != null && message.hasOwnProperty("endpoints")) { + if (!Array.isArray(message.endpoints)) + return "endpoints: array expected"; + for (var i = 0; i < message.endpoints.length; ++i) { + var error = $root.google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.verify(message.endpoints[i]); + if (error) + return "endpoints." + error; + } + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.latestVerificationResult != null && message.hasOwnProperty("latestVerificationResult")) + switch (message.latestVerificationResult) { + default: + return "latestVerificationResult: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + return null; + }; + + /** + * Creates an AccountVerificationInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo} AccountVerificationInfo + */ + AccountVerificationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo) + return object; + var message = new $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo(); + if (object.endpoints) { + if (!Array.isArray(object.endpoints)) + throw TypeError(".google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.endpoints: array expected"); + message.endpoints = []; + for (var i = 0; i < object.endpoints.length; ++i) { + if (typeof object.endpoints[i] !== "object") + throw TypeError(".google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.endpoints: object expected"); + message.endpoints[i] = $root.google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.fromObject(object.endpoints[i]); + } + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + switch (object.latestVerificationResult) { + default: + if (typeof object.latestVerificationResult === "number") { + message.latestVerificationResult = object.latestVerificationResult; + break; + } + break; + case "RESULT_UNSPECIFIED": + case 0: + message.latestVerificationResult = 0; + break; + case "SUCCESS_USER_VERIFIED": + case 1: + message.latestVerificationResult = 1; + break; + case "ERROR_USER_NOT_VERIFIED": + case 2: + message.latestVerificationResult = 2; + break; + case "ERROR_SITE_ONBOARDING_INCOMPLETE": + case 3: + message.latestVerificationResult = 3; + break; + case "ERROR_RECIPIENT_NOT_ALLOWED": + case 4: + message.latestVerificationResult = 4; + break; + case "ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED": + case 5: + message.latestVerificationResult = 5; + break; + case "ERROR_CRITICAL_INTERNAL": + case 6: + message.latestVerificationResult = 6; + break; + case "ERROR_CUSTOMER_QUOTA_EXHAUSTED": + case 7: + message.latestVerificationResult = 7; + break; + case "ERROR_VERIFICATION_BYPASSED": + case 8: + message.latestVerificationResult = 8; + break; + case "ERROR_VERDICT_MISMATCH": + case 9: + message.latestVerificationResult = 9; + break; + } + if (object.username != null) + message.username = String(object.username); + return message; + }; + + /** + * Creates a plain object from an AccountVerificationInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @static + * @param {google.cloud.recaptchaenterprise.v1.AccountVerificationInfo} message AccountVerificationInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AccountVerificationInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.endpoints = []; + if (options.defaults) { + object.username = ""; + object.languageCode = ""; + object.latestVerificationResult = options.enums === String ? "RESULT_UNSPECIFIED" : 0; + } + if (message.endpoints && message.endpoints.length) { + object.endpoints = []; + for (var j = 0; j < message.endpoints.length; ++j) + object.endpoints[j] = $root.google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo.toObject(message.endpoints[j], options); + } + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.latestVerificationResult != null && message.hasOwnProperty("latestVerificationResult")) + object.latestVerificationResult = options.enums === String ? $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result[message.latestVerificationResult] === undefined ? message.latestVerificationResult : $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result[message.latestVerificationResult] : message.latestVerificationResult; + return object; + }; + + /** + * Converts this AccountVerificationInfo to JSON. + * @function toJSON + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @instance + * @returns {Object.} JSON object + */ + AccountVerificationInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AccountVerificationInfo + * @function getTypeUrl + * @memberof google.cloud.recaptchaenterprise.v1.AccountVerificationInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccountVerificationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recaptchaenterprise.v1.AccountVerificationInfo"; + }; + + /** + * Result enum. + * @name google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result + * @enum {number} + * @property {number} RESULT_UNSPECIFIED=0 RESULT_UNSPECIFIED value + * @property {number} SUCCESS_USER_VERIFIED=1 SUCCESS_USER_VERIFIED value + * @property {number} ERROR_USER_NOT_VERIFIED=2 ERROR_USER_NOT_VERIFIED value + * @property {number} ERROR_SITE_ONBOARDING_INCOMPLETE=3 ERROR_SITE_ONBOARDING_INCOMPLETE value + * @property {number} ERROR_RECIPIENT_NOT_ALLOWED=4 ERROR_RECIPIENT_NOT_ALLOWED value + * @property {number} ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED=5 ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED value + * @property {number} ERROR_CRITICAL_INTERNAL=6 ERROR_CRITICAL_INTERNAL value + * @property {number} ERROR_CUSTOMER_QUOTA_EXHAUSTED=7 ERROR_CUSTOMER_QUOTA_EXHAUSTED value + * @property {number} ERROR_VERIFICATION_BYPASSED=8 ERROR_VERIFICATION_BYPASSED value + * @property {number} ERROR_VERDICT_MISMATCH=9 ERROR_VERDICT_MISMATCH value + */ + AccountVerificationInfo.Result = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESULT_UNSPECIFIED"] = 0; + values[valuesById[1] = "SUCCESS_USER_VERIFIED"] = 1; + values[valuesById[2] = "ERROR_USER_NOT_VERIFIED"] = 2; + values[valuesById[3] = "ERROR_SITE_ONBOARDING_INCOMPLETE"] = 3; + values[valuesById[4] = "ERROR_RECIPIENT_NOT_ALLOWED"] = 4; + values[valuesById[5] = "ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED"] = 5; + values[valuesById[6] = "ERROR_CRITICAL_INTERNAL"] = 6; + values[valuesById[7] = "ERROR_CUSTOMER_QUOTA_EXHAUSTED"] = 7; + values[valuesById[8] = "ERROR_VERIFICATION_BYPASSED"] = 8; + values[valuesById[9] = "ERROR_VERDICT_MISMATCH"] = 9; + return values; + })(); + + return AccountVerificationInfo; + })(); + v1.PrivatePasswordLeakVerification = (function() { /** @@ -1752,6 +2439,7 @@ * @property {google.cloud.recaptchaenterprise.v1.IEvent|null} [event] Assessment event * @property {google.cloud.recaptchaenterprise.v1.IRiskAnalysis|null} [riskAnalysis] Assessment riskAnalysis * @property {google.cloud.recaptchaenterprise.v1.ITokenProperties|null} [tokenProperties] Assessment tokenProperties + * @property {google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo|null} [accountVerification] Assessment accountVerification * @property {google.cloud.recaptchaenterprise.v1.IAccountDefenderAssessment|null} [accountDefenderAssessment] Assessment accountDefenderAssessment * @property {google.cloud.recaptchaenterprise.v1.IPrivatePasswordLeakVerification|null} [privatePasswordLeakVerification] Assessment privatePasswordLeakVerification */ @@ -1803,6 +2491,14 @@ */ Assessment.prototype.tokenProperties = null; + /** + * Assessment accountVerification. + * @member {google.cloud.recaptchaenterprise.v1.IAccountVerificationInfo|null|undefined} accountVerification + * @memberof google.cloud.recaptchaenterprise.v1.Assessment + * @instance + */ + Assessment.prototype.accountVerification = null; + /** * Assessment accountDefenderAssessment. * @member {google.cloud.recaptchaenterprise.v1.IAccountDefenderAssessment|null|undefined} accountDefenderAssessment @@ -1851,6 +2547,8 @@ $root.google.cloud.recaptchaenterprise.v1.RiskAnalysis.encode(message.riskAnalysis, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.tokenProperties != null && Object.hasOwnProperty.call(message, "tokenProperties")) $root.google.cloud.recaptchaenterprise.v1.TokenProperties.encode(message.tokenProperties, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.accountVerification != null && Object.hasOwnProperty.call(message, "accountVerification")) + $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.encode(message.accountVerification, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.accountDefenderAssessment != null && Object.hasOwnProperty.call(message, "accountDefenderAssessment")) $root.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.encode(message.accountDefenderAssessment, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.privatePasswordLeakVerification != null && Object.hasOwnProperty.call(message, "privatePasswordLeakVerification")) @@ -1905,6 +2603,10 @@ message.tokenProperties = $root.google.cloud.recaptchaenterprise.v1.TokenProperties.decode(reader, reader.uint32()); break; } + case 5: { + message.accountVerification = $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.decode(reader, reader.uint32()); + break; + } case 6: { message.accountDefenderAssessment = $root.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.decode(reader, reader.uint32()); break; @@ -1966,6 +2668,11 @@ if (error) return "tokenProperties." + error; } + if (message.accountVerification != null && message.hasOwnProperty("accountVerification")) { + var error = $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.verify(message.accountVerification); + if (error) + return "accountVerification." + error; + } if (message.accountDefenderAssessment != null && message.hasOwnProperty("accountDefenderAssessment")) { var error = $root.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.verify(message.accountDefenderAssessment); if (error) @@ -2008,6 +2715,11 @@ throw TypeError(".google.cloud.recaptchaenterprise.v1.Assessment.tokenProperties: object expected"); message.tokenProperties = $root.google.cloud.recaptchaenterprise.v1.TokenProperties.fromObject(object.tokenProperties); } + if (object.accountVerification != null) { + if (typeof object.accountVerification !== "object") + throw TypeError(".google.cloud.recaptchaenterprise.v1.Assessment.accountVerification: object expected"); + message.accountVerification = $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.fromObject(object.accountVerification); + } if (object.accountDefenderAssessment != null) { if (typeof object.accountDefenderAssessment !== "object") throw TypeError(".google.cloud.recaptchaenterprise.v1.Assessment.accountDefenderAssessment: object expected"); @@ -2039,6 +2751,7 @@ object.event = null; object.riskAnalysis = null; object.tokenProperties = null; + object.accountVerification = null; object.accountDefenderAssessment = null; object.privatePasswordLeakVerification = null; } @@ -2050,6 +2763,8 @@ object.riskAnalysis = $root.google.cloud.recaptchaenterprise.v1.RiskAnalysis.toObject(message.riskAnalysis, options); if (message.tokenProperties != null && message.hasOwnProperty("tokenProperties")) object.tokenProperties = $root.google.cloud.recaptchaenterprise.v1.TokenProperties.toObject(message.tokenProperties, options); + if (message.accountVerification != null && message.hasOwnProperty("accountVerification")) + object.accountVerification = $root.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.toObject(message.accountVerification, options); if (message.accountDefenderAssessment != null && message.hasOwnProperty("accountDefenderAssessment")) object.accountDefenderAssessment = $root.google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.toObject(message.accountDefenderAssessment, options); if (message.privatePasswordLeakVerification != null && message.hasOwnProperty("privatePasswordLeakVerification")) @@ -2736,6 +3451,8 @@ * @property {google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason|null} [invalidReason] TokenProperties invalidReason * @property {google.protobuf.ITimestamp|null} [createTime] TokenProperties createTime * @property {string|null} [hostname] TokenProperties hostname + * @property {string|null} [androidPackageName] TokenProperties androidPackageName + * @property {string|null} [iosBundleId] TokenProperties iosBundleId * @property {string|null} [action] TokenProperties action */ @@ -2786,6 +3503,22 @@ */ TokenProperties.prototype.hostname = ""; + /** + * TokenProperties androidPackageName. + * @member {string} androidPackageName + * @memberof google.cloud.recaptchaenterprise.v1.TokenProperties + * @instance + */ + TokenProperties.prototype.androidPackageName = ""; + + /** + * TokenProperties iosBundleId. + * @member {string} iosBundleId + * @memberof google.cloud.recaptchaenterprise.v1.TokenProperties + * @instance + */ + TokenProperties.prototype.iosBundleId = ""; + /** * TokenProperties action. * @member {string} action @@ -2828,6 +3561,10 @@ writer.uint32(/* id 4, wireType 2 =*/34).string(message.hostname); if (message.action != null && Object.hasOwnProperty.call(message, "action")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.action); + if (message.androidPackageName != null && Object.hasOwnProperty.call(message, "androidPackageName")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.androidPackageName); + if (message.iosBundleId != null && Object.hasOwnProperty.call(message, "iosBundleId")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.iosBundleId); return writer; }; @@ -2878,6 +3615,14 @@ message.hostname = reader.string(); break; } + case 8: { + message.androidPackageName = reader.string(); + break; + } + case 9: { + message.iosBundleId = reader.string(); + break; + } case 5: { message.action = reader.string(); break; @@ -2941,6 +3686,12 @@ if (message.hostname != null && message.hasOwnProperty("hostname")) if (!$util.isString(message.hostname)) return "hostname: string expected"; + if (message.androidPackageName != null && message.hasOwnProperty("androidPackageName")) + if (!$util.isString(message.androidPackageName)) + return "androidPackageName: string expected"; + if (message.iosBundleId != null && message.hasOwnProperty("iosBundleId")) + if (!$util.isString(message.iosBundleId)) + return "iosBundleId: string expected"; if (message.action != null && message.hasOwnProperty("action")) if (!$util.isString(message.action)) return "action: string expected"; @@ -3004,6 +3755,10 @@ } if (object.hostname != null) message.hostname = String(object.hostname); + if (object.androidPackageName != null) + message.androidPackageName = String(object.androidPackageName); + if (object.iosBundleId != null) + message.iosBundleId = String(object.iosBundleId); if (object.action != null) message.action = String(object.action); return message; @@ -3028,6 +3783,8 @@ object.createTime = null; object.hostname = ""; object.action = ""; + object.androidPackageName = ""; + object.iosBundleId = ""; } if (message.valid != null && message.hasOwnProperty("valid")) object.valid = message.valid; @@ -3039,6 +3796,10 @@ object.hostname = message.hostname; if (message.action != null && message.hasOwnProperty("action")) object.action = message.action; + if (message.androidPackageName != null && message.hasOwnProperty("androidPackageName")) + object.androidPackageName = message.androidPackageName; + if (message.iosBundleId != null && message.hasOwnProperty("iosBundleId")) + object.iosBundleId = message.iosBundleId; return object; }; @@ -4959,6 +5720,7 @@ * @memberof google.cloud.recaptchaenterprise.v1 * @interface IMigrateKeyRequest * @property {string|null} [name] MigrateKeyRequest name + * @property {boolean|null} [skipBillingCheck] MigrateKeyRequest skipBillingCheck */ /** @@ -4984,6 +5746,14 @@ */ MigrateKeyRequest.prototype.name = ""; + /** + * MigrateKeyRequest skipBillingCheck. + * @member {boolean} skipBillingCheck + * @memberof google.cloud.recaptchaenterprise.v1.MigrateKeyRequest + * @instance + */ + MigrateKeyRequest.prototype.skipBillingCheck = false; + /** * Creates a new MigrateKeyRequest instance using the specified properties. * @function create @@ -5010,6 +5780,8 @@ writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.skipBillingCheck != null && Object.hasOwnProperty.call(message, "skipBillingCheck")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skipBillingCheck); return writer; }; @@ -5048,6 +5820,10 @@ message.name = reader.string(); break; } + case 2: { + message.skipBillingCheck = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -5086,6 +5862,9 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.skipBillingCheck != null && message.hasOwnProperty("skipBillingCheck")) + if (typeof message.skipBillingCheck !== "boolean") + return "skipBillingCheck: boolean expected"; return null; }; @@ -5103,6 +5882,8 @@ var message = new $root.google.cloud.recaptchaenterprise.v1.MigrateKeyRequest(); if (object.name != null) message.name = String(object.name); + if (object.skipBillingCheck != null) + message.skipBillingCheck = Boolean(object.skipBillingCheck); return message; }; @@ -5119,10 +5900,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.skipBillingCheck = false; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.skipBillingCheck != null && message.hasOwnProperty("skipBillingCheck")) + object.skipBillingCheck = message.skipBillingCheck; return object; }; diff --git a/packages/google-cloud-recaptchaenterprise/protos/protos.json b/packages/google-cloud-recaptchaenterprise/protos/protos.json index 305751757a89..30e689d5a789 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/protos.json +++ b/packages/google-cloud-recaptchaenterprise/protos/protos.json @@ -342,6 +342,83 @@ "AnnotateAssessmentResponse": { "fields": {} }, + "EndpointVerificationInfo": { + "oneofs": { + "endpoint": { + "oneof": [ + "emailAddress", + "phoneNumber" + ] + } + }, + "fields": { + "emailAddress": { + "type": "string", + "id": 1 + }, + "phoneNumber": { + "type": "string", + "id": 2 + }, + "requestToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "lastVerificationTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "AccountVerificationInfo": { + "fields": { + "endpoints": { + "rule": "repeated", + "type": "EndpointVerificationInfo", + "id": 1 + }, + "languageCode": { + "type": "string", + "id": 3 + }, + "latestVerificationResult": { + "type": "Result", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "username": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + } + }, + "nested": { + "Result": { + "values": { + "RESULT_UNSPECIFIED": 0, + "SUCCESS_USER_VERIFIED": 1, + "ERROR_USER_NOT_VERIFIED": 2, + "ERROR_SITE_ONBOARDING_INCOMPLETE": 3, + "ERROR_RECIPIENT_NOT_ALLOWED": 4, + "ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED": 5, + "ERROR_CRITICAL_INTERNAL": 6, + "ERROR_CUSTOMER_QUOTA_EXHAUSTED": 7, + "ERROR_VERIFICATION_BYPASSED": 8, + "ERROR_VERDICT_MISMATCH": 9 + } + } + } + }, "PrivatePasswordLeakVerification": { "fields": { "lookupHashPrefix": { @@ -406,6 +483,10 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "accountVerification": { + "type": "AccountVerificationInfo", + "id": 5 + }, "accountDefenderAssessment": { "type": "AccountDefenderAssessment", "id": 6 @@ -505,6 +586,14 @@ "type": "string", "id": 4 }, + "androidPackageName": { + "type": "string", + "id": 8 + }, + "iosBundleId": { + "type": "string", + "id": 9 + }, "action": { "type": "string", "id": 5 @@ -665,6 +754,13 @@ "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "recaptchaenterprise.googleapis.com/Key" } + }, + "skipBillingCheck": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.annotate_assessment.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.annotate_assessment.js index 24146c3cd7d1..e450640214f4 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.annotate_assessment.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.annotate_assessment.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,13 +34,14 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. The annotation that will be assigned to the Event. This field can be left - * empty to provide reasons that apply to an event without concluding whether - * the event is legitimate or fraudulent. + * Optional. The annotation that will be assigned to the Event. This field can + * be left empty to provide reasons that apply to an event without concluding + * whether the event is legitimate or fraudulent. */ // const annotation = {} /** - * Optional. Optional reasons for the annotation that will be assigned to the Event. + * Optional. Optional reasons for the annotation that will be assigned to the + * Event. */ // const reasons = 1234 /** diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.create_assessment.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.create_assessment.js index f8d5e56966a9..29aa4bca8ba8 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.create_assessment.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.create_assessment.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.create_key.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.create_key.js index 62f1bfc42227..7fe47aeda817 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.create_key.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.create_key.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.delete_key.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.delete_key.js index c43d4a44ee84..83e23ec68f41 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.delete_key.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.delete_key.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.get_key.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.get_key.js index f0ffac910ba5..6c56f81e9b6e 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.get_key.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.get_key.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.get_metrics.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.get_metrics.js index 42c35e64d113..4f39fdf1b688 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.get_metrics.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.get_metrics.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_keys.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_keys.js index a90e3bfaad32..0e1be786060c 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_keys.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_keys.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_group_memberships.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_group_memberships.js index 097f294ce3ce..a5465546337b 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_group_memberships.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_group_memberships.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,15 +34,14 @@ function main(parent) { */ // const parent = 'abc123' /** - * Optional. The maximum number of accounts to return. The service might return fewer - * than this value. - * If unspecified, at most 50 accounts are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of accounts to return. The service might + * return fewer than this value. If unspecified, at most 50 accounts are + * returned. The maximum value is 1000; values above 1000 are coerced to 1000. */ // const pageSize = 1234 /** - * Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships` - * call. + * Optional. A page token, received from a previous + * `ListRelatedAccountGroupMemberships` call. * When paginating, all other parameters provided to * `ListRelatedAccountGroupMemberships` must match the call that provided the * page token. diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_groups.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_groups.js index 9be614706a02..933d0de8409d 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_groups.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_groups.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,20 +29,19 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The name of the project to list related account groups from, in the format - * "projects/{project}". + * Required. The name of the project to list related account groups from, in + * the format "projects/{project}". */ // const parent = 'abc123' /** - * Optional. The maximum number of groups to return. The service might return fewer than - * this value. - * If unspecified, at most 50 groups are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of groups to return. The service might return + * fewer than this value. If unspecified, at most 50 groups are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. */ // const pageSize = 1234 /** - * Optional. A page token, received from a previous `ListRelatedAccountGroups` call. - * Provide this to retrieve the subsequent page. + * Optional. A page token, received from a previous `ListRelatedAccountGroups` + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to * `ListRelatedAccountGroups` must match the call that provided the page * token. diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.migrate_key.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.migrate_key.js index 7437784d6dbc..1939aa98f805 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.migrate_key.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.migrate_key.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,17 @@ function main(name) { * "projects/{project}/keys/{key}". */ // const name = 'abc123' + /** + * Optional. If true, skips the billing check. + * A reCAPTCHA Enterprise key or migrated key behaves differently than a + * reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see + * https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid + * any disruption of your usage, we check that a billing account is present. + * If your usage of reCAPTCHA is under the free quota, you can safely skip the + * billing check and proceed with the migration. See + * https://cloud.google.com/recaptcha-enterprise/docs/billing-information. + */ + // const skipBillingCheck = true // Imports the Recaptchaenterprise library const {RecaptchaEnterpriseServiceClient} = require('@google-cloud/recaptcha-enterprise').v1; diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.retrieve_legacy_secret_key.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.retrieve_legacy_secret_key.js index 95cb5eb22e96..38b39612b9c7 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.retrieve_legacy_secret_key.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.retrieve_legacy_secret_key.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,8 +29,8 @@ function main(key) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The public key name linked to the requested secret key in the format - * "projects/{project}/keys/{key}". + * Required. The public key name linked to the requested secret key in the + * format "projects/{project}/keys/{key}". */ // const key = 'abc123' diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.search_related_account_group_memberships.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.search_related_account_group_memberships.js index 1e85d154cb6a..c8ab2b00e6b5 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.search_related_account_group_memberships.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.search_related_account_group_memberships.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,21 +29,21 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The name of the project to search related account group memberships from. - * Specify the project name in the following format: "projects/{project}". + * Required. The name of the project to search related account group + * memberships from. Specify the project name in the following format: + * "projects/{project}". */ // const project = 'my-project' /** - * Optional. The unique stable hashed user identifier we should search connections to. - * The identifier should correspond to a `hashed_account_id` provided in a - * previous `CreateAssessment` or `AnnotateAssessment` call. + * Optional. The unique stable hashed user identifier we should search + * connections to. The identifier should correspond to a `hashed_account_id` + * provided in a previous `CreateAssessment` or `AnnotateAssessment` call. */ // const hashedAccountId = 'Buffer.from('string')' /** - * Optional. The maximum number of groups to return. The service might return fewer than - * this value. - * If unspecified, at most 50 groups are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of groups to return. The service might return + * fewer than this value. If unspecified, at most 50 groups are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. */ // const pageSize = 1234 /** diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.update_key.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.update_key.js index b7fc0fc86cd5..7bc0ae4bc290 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.update_key.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.update_key.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,8 +33,8 @@ function main(key) { */ // const key = {} /** - * Optional. The mask to control which fields of the key get updated. If the mask is not - * present, all fields will be updated. + * Optional. The mask to control which fields of the key get updated. If the + * mask is not present, all fields will be updated. */ // const updateMask = {} diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json index 3099d7907e72..3a978a98d02c 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json @@ -66,7 +66,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 73, "type": "FULL" } ], @@ -374,7 +374,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 65, "type": "FULL" } ], @@ -386,6 +386,10 @@ { "name": "name", "type": "TYPE_STRING" + }, + { + "name": "skip_billing_check", + "type": "TYPE_BOOL" } ], "resultType": ".google.cloud.recaptchaenterprise.v1.Key", @@ -454,7 +458,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 70, "type": "FULL" } ], @@ -502,7 +506,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 70, "type": "FULL" } ], diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/recaptcha_enterprise_service_v1_beta1.annotate_assessment.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/recaptcha_enterprise_service_v1_beta1.annotate_assessment.js index 6a17e309ad8c..52664d53e3c2 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/recaptcha_enterprise_service_v1_beta1.annotate_assessment.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/recaptcha_enterprise_service_v1_beta1.annotate_assessment.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/recaptcha_enterprise_service_v1_beta1.create_assessment.js b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/recaptcha_enterprise_service_v1_beta1.create_assessment.js index dd1c7421e2f9..f0192b59427c 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/recaptcha_enterprise_service_v1_beta1.create_assessment.js +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/recaptcha_enterprise_service_v1_beta1.create_assessment.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/src/v1/index.ts b/packages/google-cloud-recaptchaenterprise/src/v1/index.ts index 0d9bc262643a..c976fda69706 100644 --- a/packages/google-cloud-recaptchaenterprise/src/v1/index.ts +++ b/packages/google-cloud-recaptchaenterprise/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client.ts b/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client.ts index b59bd1a8b352..71bd38bc1487 100644 --- a/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client.ts +++ b/packages/google-cloud-recaptchaenterprise/src/v1/recaptcha_enterprise_service_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -483,11 +483,12 @@ export class RecaptchaEnterpriseServiceClient { * Required. The resource name of the Assessment, in the format * "projects/{project}/assessments/{assessment}". * @param {google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation} [request.annotation] - * Optional. The annotation that will be assigned to the Event. This field can be left - * empty to provide reasons that apply to an event without concluding whether - * the event is legitimate or fraudulent. + * Optional. The annotation that will be assigned to the Event. This field can + * be left empty to provide reasons that apply to an event without concluding + * whether the event is legitimate or fraudulent. * @param {number[]} [request.reasons] - * Optional. Optional reasons for the annotation that will be assigned to the Event. + * Optional. Optional reasons for the annotation that will be assigned to the + * Event. * @param {Buffer} [request.hashedAccountId] * Optional. Unique stable hashed user identifier to apply to the assessment. * This is an alternative to setting the hashed_account_id in @@ -686,8 +687,8 @@ export class RecaptchaEnterpriseServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.key - * Required. The public key name linked to the requested secret key in the format - * "projects/{project}/keys/{key}". + * Required. The public key name linked to the requested secret key in the + * format "projects/{project}/keys/{key}". * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -882,8 +883,8 @@ export class RecaptchaEnterpriseServiceClient { * @param {google.cloud.recaptchaenterprise.v1.Key} request.key * Required. The key to update. * @param {google.protobuf.FieldMask} [request.updateMask] - * Optional. The mask to control which fields of the key get updated. If the mask is not - * present, all fields will be updated. + * Optional. The mask to control which fields of the key get updated. If the + * mask is not present, all fields will be updated. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1073,6 +1074,15 @@ export class RecaptchaEnterpriseServiceClient { * @param {string} request.name * Required. The name of the key to be migrated, in the format * "projects/{project}/keys/{key}". + * @param {boolean} [request.skipBillingCheck] + * Optional. If true, skips the billing check. + * A reCAPTCHA Enterprise key or migrated key behaves differently than a + * reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see + * https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid + * any disruption of your usage, we check that a billing account is present. + * If your usage of reCAPTCHA is under the free quota, you can safely skip the + * billing check and proceed with the migration. See + * https://cloud.google.com/recaptcha-enterprise/docs/billing-information. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1455,16 +1465,15 @@ export class RecaptchaEnterpriseServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the project to list related account groups from, in the format - * "projects/{project}". + * Required. The name of the project to list related account groups from, in + * the format "projects/{project}". * @param {number} [request.pageSize] - * Optional. The maximum number of groups to return. The service might return fewer than - * this value. - * If unspecified, at most 50 groups are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of groups to return. The service might return + * fewer than this value. If unspecified, at most 50 groups are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `ListRelatedAccountGroups` call. - * Provide this to retrieve the subsequent page. + * Optional. A page token, received from a previous `ListRelatedAccountGroups` + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to * `ListRelatedAccountGroups` must match the call that provided the page @@ -1566,16 +1575,15 @@ export class RecaptchaEnterpriseServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the project to list related account groups from, in the format - * "projects/{project}". + * Required. The name of the project to list related account groups from, in + * the format "projects/{project}". * @param {number} [request.pageSize] - * Optional. The maximum number of groups to return. The service might return fewer than - * this value. - * If unspecified, at most 50 groups are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of groups to return. The service might return + * fewer than this value. If unspecified, at most 50 groups are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `ListRelatedAccountGroups` call. - * Provide this to retrieve the subsequent page. + * Optional. A page token, received from a previous `ListRelatedAccountGroups` + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to * `ListRelatedAccountGroups` must match the call that provided the page @@ -1621,16 +1629,15 @@ export class RecaptchaEnterpriseServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the project to list related account groups from, in the format - * "projects/{project}". + * Required. The name of the project to list related account groups from, in + * the format "projects/{project}". * @param {number} [request.pageSize] - * Optional. The maximum number of groups to return. The service might return fewer than - * this value. - * If unspecified, at most 50 groups are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of groups to return. The service might return + * fewer than this value. If unspecified, at most 50 groups are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `ListRelatedAccountGroups` call. - * Provide this to retrieve the subsequent page. + * Optional. A page token, received from a previous `ListRelatedAccountGroups` + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to * `ListRelatedAccountGroups` must match the call that provided the page @@ -1678,13 +1685,12 @@ export class RecaptchaEnterpriseServiceClient { * Required. The resource name for the related account group in the format * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. * @param {number} [request.pageSize] - * Optional. The maximum number of accounts to return. The service might return fewer - * than this value. - * If unspecified, at most 50 accounts are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of accounts to return. The service might + * return fewer than this value. If unspecified, at most 50 accounts are + * returned. The maximum value is 1000; values above 1000 are coerced to 1000. * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships` - * call. + * Optional. A page token, received from a previous + * `ListRelatedAccountGroupMemberships` call. * * When paginating, all other parameters provided to * `ListRelatedAccountGroupMemberships` must match the call that provided the @@ -1789,13 +1795,12 @@ export class RecaptchaEnterpriseServiceClient { * Required. The resource name for the related account group in the format * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. * @param {number} [request.pageSize] - * Optional. The maximum number of accounts to return. The service might return fewer - * than this value. - * If unspecified, at most 50 accounts are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of accounts to return. The service might + * return fewer than this value. If unspecified, at most 50 accounts are + * returned. The maximum value is 1000; values above 1000 are coerced to 1000. * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships` - * call. + * Optional. A page token, received from a previous + * `ListRelatedAccountGroupMemberships` call. * * When paginating, all other parameters provided to * `ListRelatedAccountGroupMemberships` must match the call that provided the @@ -1845,13 +1850,12 @@ export class RecaptchaEnterpriseServiceClient { * Required. The resource name for the related account group in the format * `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. * @param {number} [request.pageSize] - * Optional. The maximum number of accounts to return. The service might return fewer - * than this value. - * If unspecified, at most 50 accounts are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of accounts to return. The service might + * return fewer than this value. If unspecified, at most 50 accounts are + * returned. The maximum value is 1000; values above 1000 are coerced to 1000. * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships` - * call. + * Optional. A page token, received from a previous + * `ListRelatedAccountGroupMemberships` call. * * When paginating, all other parameters provided to * `ListRelatedAccountGroupMemberships` must match the call that provided the @@ -1897,17 +1901,17 @@ export class RecaptchaEnterpriseServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.project - * Required. The name of the project to search related account group memberships from. - * Specify the project name in the following format: "projects/{project}". + * Required. The name of the project to search related account group + * memberships from. Specify the project name in the following format: + * "projects/{project}". * @param {Buffer} [request.hashedAccountId] - * Optional. The unique stable hashed user identifier we should search connections to. - * The identifier should correspond to a `hashed_account_id` provided in a - * previous `CreateAssessment` or `AnnotateAssessment` call. + * Optional. The unique stable hashed user identifier we should search + * connections to. The identifier should correspond to a `hashed_account_id` + * provided in a previous `CreateAssessment` or `AnnotateAssessment` call. * @param {number} [request.pageSize] - * Optional. The maximum number of groups to return. The service might return fewer than - * this value. - * If unspecified, at most 50 groups are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of groups to return. The service might return + * fewer than this value. If unspecified, at most 50 groups are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. * @param {string} [request.pageToken] * Optional. A page token, received from a previous * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the @@ -2013,17 +2017,17 @@ export class RecaptchaEnterpriseServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.project - * Required. The name of the project to search related account group memberships from. - * Specify the project name in the following format: "projects/{project}". + * Required. The name of the project to search related account group + * memberships from. Specify the project name in the following format: + * "projects/{project}". * @param {Buffer} [request.hashedAccountId] - * Optional. The unique stable hashed user identifier we should search connections to. - * The identifier should correspond to a `hashed_account_id` provided in a - * previous `CreateAssessment` or `AnnotateAssessment` call. + * Optional. The unique stable hashed user identifier we should search + * connections to. The identifier should correspond to a `hashed_account_id` + * provided in a previous `CreateAssessment` or `AnnotateAssessment` call. * @param {number} [request.pageSize] - * Optional. The maximum number of groups to return. The service might return fewer than - * this value. - * If unspecified, at most 50 groups are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of groups to return. The service might return + * fewer than this value. If unspecified, at most 50 groups are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. * @param {string} [request.pageToken] * Optional. A page token, received from a previous * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the @@ -2074,17 +2078,17 @@ export class RecaptchaEnterpriseServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.project - * Required. The name of the project to search related account group memberships from. - * Specify the project name in the following format: "projects/{project}". + * Required. The name of the project to search related account group + * memberships from. Specify the project name in the following format: + * "projects/{project}". * @param {Buffer} [request.hashedAccountId] - * Optional. The unique stable hashed user identifier we should search connections to. - * The identifier should correspond to a `hashed_account_id` provided in a - * previous `CreateAssessment` or `AnnotateAssessment` call. + * Optional. The unique stable hashed user identifier we should search + * connections to. The identifier should correspond to a `hashed_account_id` + * provided in a previous `CreateAssessment` or `AnnotateAssessment` call. * @param {number} [request.pageSize] - * Optional. The maximum number of groups to return. The service might return fewer than - * this value. - * If unspecified, at most 50 groups are returned. - * The maximum value is 1000; values above 1000 are coerced to 1000. + * Optional. The maximum number of groups to return. The service might return + * fewer than this value. If unspecified, at most 50 groups are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. * @param {string} [request.pageToken] * Optional. A page token, received from a previous * `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the diff --git a/packages/google-cloud-recaptchaenterprise/src/v1beta1/index.ts b/packages/google-cloud-recaptchaenterprise/src/v1beta1/index.ts index 7cf779e456fd..33e314fd5a21 100644 --- a/packages/google-cloud-recaptchaenterprise/src/v1beta1/index.ts +++ b/packages/google-cloud-recaptchaenterprise/src/v1beta1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts b/packages/google-cloud-recaptchaenterprise/src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts index 744ed5f3d351..6d5f9f3632a9 100644 --- a/packages/google-cloud-recaptchaenterprise/src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts +++ b/packages/google-cloud-recaptchaenterprise/src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/system-test/fixtures/sample/src/index.js b/packages/google-cloud-recaptchaenterprise/system-test/fixtures/sample/src/index.js index 88f738cf9093..e04cda711f9d 100644 --- a/packages/google-cloud-recaptchaenterprise/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-recaptchaenterprise/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-recaptchaenterprise/system-test/fixtures/sample/src/index.ts index 0cfe4da061f4..c5a538703923 100644 --- a/packages/google-cloud-recaptchaenterprise/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-recaptchaenterprise/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/system-test/install.ts b/packages/google-cloud-recaptchaenterprise/system-test/install.ts index 6dd1eaadafaa..f61fe236476b 100644 --- a/packages/google-cloud-recaptchaenterprise/system-test/install.ts +++ b/packages/google-cloud-recaptchaenterprise/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1.ts b/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1.ts index ab5f746919a4..fcd953cd2ccd 100644 --- a/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1.ts +++ b/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1_beta1_v1beta1.ts b/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1_beta1_v1beta1.ts index fa441a00e8b8..f0cd9f79da13 100644 --- a/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1_beta1_v1beta1.ts +++ b/packages/google-cloud-recaptchaenterprise/test/gapic_recaptcha_enterprise_service_v1_beta1_v1beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 8a12090deced98aedb2af80d9c95299ae48a59de Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 30 Jan 2023 23:52:20 +0000 Subject: [PATCH 04/38] build: fix path in .OwlBot.yaml (#3916) Fixes: #3889 Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-recommender/.OwlBot.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-cloud-recommender/.OwlBot.yaml b/packages/google-cloud-recommender/.OwlBot.yaml index 7a3785253379..5517682d051b 100644 --- a/packages/google-cloud-recommender/.OwlBot.yaml +++ b/packages/google-cloud-recommender/.OwlBot.yaml @@ -15,7 +15,7 @@ deep-remove-regex: - /owl-bot-staging deep-copy-regex: - - source: google/cloud/recommender/(.*)/.*-nodejs + - source: /google/cloud/recommender/(.*)/.*-nodejs dest: /owl-bot-staging/google-cloud-recommender/$1 begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b api-name: recommender From 8a7f0a48a16f1d8bfb55d05dd84bafcf6a1a244c Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 31 Jan 2023 11:16:30 -0800 Subject: [PATCH 05/38] docs: update the list of available APIs (#3919) --- README.md | 3 --- libraries.json | 55 -------------------------------------------------- 2 files changed, 58 deletions(-) diff --git a/README.md b/README.md index 90ca7f6be767..c9421272083e 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,6 @@ applications that interact with individual Google Cloud services: | [Key Management Service](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-kms) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/kms)](https://npm.im/@google-cloud/kms) | | [Kubernetes Engine Cluster Manager API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-container) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/container)](https://npm.im/@google-cloud/container) | | [Live Stream API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-video-livestream) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/livestream)](https://npm.im/@google-cloud/livestream) | -| [Live Stream API](https://github.com/googleapis/nodejs-video-live-stream) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/livestream)](https://npm.im/@google-cloud/livestream) | | [Logging](https://github.com/googleapis/nodejs-logging) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/logging)](https://npm.im/@google-cloud/logging) | | [Logging for Bunyan](https://github.com/googleapis/nodejs-logging-bunyan) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/logging-bunyan)](https://npm.im/@google-cloud/logging-bunyan) | | [Logging for Winston](https://github.com/googleapis/nodejs-logging-winston) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/logging-winston)](https://npm.im/@google-cloud/logging-winston) | @@ -117,7 +116,6 @@ applications that interact with individual Google Cloud services: | [Text-to-Speech](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-texttospeech) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/text-to-speech)](https://npm.im/@google-cloud/text-to-speech) | | [TPU](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-tpu) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/tpu)](https://npm.im/@google-cloud/tpu) | | [Transcoder API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-video-transcoder) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/video-transcoder)](https://npm.im/@google-cloud/video-transcoder) | -| [Transcoder API](https://github.com/googleapis/nodejs-video-transcoder) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/video-transcoder)](https://npm.im/@google-cloud/video-transcoder) | | [Translation](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-translate) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/translate)](https://npm.im/@google-cloud/translate) | | [Vertex AI](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-aiplatform) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/aiplatform)](https://npm.im/@google-cloud/aiplatform) | | [Video Intelligence](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-videointelligence) | [![Stable][stable-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/video-intelligence)](https://npm.im/@google-cloud/video-intelligence) | @@ -162,7 +160,6 @@ applications that interact with individual Google Cloud services: | [Run](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-run) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/run)](https://npm.im/@google-cloud/run) | | [Trace](https://github.com/googleapis/cloud-trace-nodejs) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/trace-agent)](https://npm.im/@google-cloud/trace-agent) | | [Video Stitcher API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-video-stitcher) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/video-stitcher)](https://npm.im/@google-cloud/video-stitcher) | -| [Video Stitcher API](https://github.com/googleapis/nodejs-video-stitcher) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/video-stitcher)](https://npm.im/@google-cloud/video-stitcher) | | [VMware Engine API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-vmwareengine) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/vmwareengine)](https://npm.im/@google-cloud/vmwareengine) | diff --git a/libraries.json b/libraries.json index d2f5294922bb..c4800535cabd 100644 --- a/libraries.json +++ b/libraries.json @@ -1169,25 +1169,6 @@ "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-video-livestream", "support_documentation": "https://cloud.google.com/livestream/docs/getting-support" }, - { - "name": "livestream", - "api_shortname": "livestream", - "name_pretty": "Live Stream API", - "product_documentation": "https://cloud.google.com/livestream/", - "client_documentation": "https://cloud.google.com/nodejs/docs/reference/livestream/latest", - "issue_tracker": "https://github.com/googleapis/nodejs-video-live-stream/issues", - "release_level": "stable", - "language": "nodejs", - "repo": "googleapis/nodejs-video-live-stream", - "codeowner_team": "@googleapis/cloud-media-team", - "distribution_name": "@google-cloud/livestream", - "api_id": "livestream.googleapis.com", - "default_version": "v1", - "requires_billing": true, - "library_type": "GAPIC_AUTO", - "linkToRepoHomepage": "https://github.com/googleapis/nodejs-video-live-stream", - "support_documentation": "https://cloud.google.com/livestream/docs/getting-support" - }, { "client_documentation": "https://cloud.google.com/nodejs/docs/reference/logging/latest", "product_documentation": "https://cloud.google.com/logging/docs", @@ -1967,25 +1948,6 @@ "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-video-transcoder", "support_documentation": "https://googleapis.dev/nodejs/transcoder/latest/docs/getting-support" }, - { - "client_documentation": "https://cloud.google.com/nodejs/docs/reference/video-transcoder/latest", - "product_documentation": "https://googleapis.dev/nodejs/transcoder/latest", - "name": "transcoder", - "requires_billing": true, - "release_level": "stable", - "language": "nodejs", - "api_id": "transcoder.googleapis.com", - "distribution_name": "@google-cloud/video-transcoder", - "repo": "googleapis/nodejs-video-transcoder", - "codeowner_team": "@googleapis/cloud-media-team", - "issue_tracker": "https://github.com/googleapis/nodejs-video-transcoder/issues", - "name_pretty": "Transcoder API", - "default_version": "v1", - "api_shortname": "transcoder", - "library_type": "GAPIC_AUTO", - "linkToRepoHomepage": "https://github.com/googleapis/nodejs-video-transcoder", - "support_documentation": "https://googleapis.dev/nodejs/transcoder/latest/docs/getting-support" - }, { "distribution_name": "@google-cloud/translate", "release_level": "stable", @@ -2757,23 +2719,6 @@ "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-video-stitcher", "support_documentation": "https://cloud.google.com/video-stitcher/docs/getting-support" }, - { - "name": "videostitcher", - "name_pretty": "Video Stitcher API", - "product_documentation": "https://cloud.google.com/video-stitcher/", - "client_documentation": "https://googleapis.dev/nodejs/videostitcher/latest/", - "issue_tracker": "https://github.com/googleapis/nodejs-video-stitcher/issues", - "release_level": "beta", - "language": "nodejs", - "repo": "googleapis/nodejs-video-stitcher", - "codeowner_team": "@googleapis/cloud-media-team", - "distribution_name": "@google-cloud/video-stitcher", - "api_id": "stitcher.googleapis.com", - "default_version": "v1", - "requires_billing": true, - "linkToRepoHomepage": "https://github.com/googleapis/nodejs-video-stitcher", - "support_documentation": "https://cloud.google.com/video-stitcher/docs/getting-support" - }, { "name": "vmwareengine", "name_pretty": "VMware Engine API", From 685ef7fd29e875c4d35b1a5cd7f41cecb0eb5722 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 13:28:27 -0500 Subject: [PATCH 06/38] fix: [networkconnectivity] remove HTTP bindings for serviceConnectionMaps, serviceConnectionPolicies, serviceClasses (#3907) PiperOrigin-RevId: 505139690 Source-Link: https://github.com/googleapis/googleapis/commit/183d61a81691cb57a68d1d0f871414c1cc12d526 Source-Link: https://github.com/googleapis/googleapis-gen/commit/58af86ac496b5d1a0c0f5ba4019149f9d66b5663 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmtjb25uZWN0aXZpdHkvLk93bEJvdC55YW1sIiwiaCI6IjU4YWY4NmFjNDk2YjVkMWEwYzBmNWJhNDAxOTE0OWY5ZDY2YjU2NjMifQ== See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md PiperOrigin-RevId: 505149260 Source-Link: https://github.com/googleapis/googleapis/commit/2159ddc37e64eff2a4c1c8d8313bc9219f17562b Source-Link: https://github.com/googleapis/googleapis-gen/commit/3a17a0bd2b92fb0a1c69bbdfc5aae1e612337d7d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmtjb25uZWN0aXZpdHkvLk93bEJvdC55YW1sIiwiaCI6IjNhMTdhMGJkMmI5MmZiMGExYzY5YmJkZmM1YWFlMWU2MTIzMzdkN2QifQ== See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> Co-authored-by: Benjamin E. Coe --- ...a.google.cloud.networkconnectivity.v1.json | 192 -- .../src/index.ts | 11 +- .../src/v1/gapic_metadata.json | 58 - .../src/v1/hub_service_client.ts | 95 - .../src/v1/hub_service_proto_list.json | 3 +- .../src/v1/index.ts | 1 - .../system-test/fixtures/sample/src/index.js | 2 - .../system-test/fixtures/sample/src/index.ts | 13 +- .../test/gapic_hub_service_v1.ts | 68 - .../gapic_policy_based_routing_service_v1.ts | 2322 ----------------- 10 files changed, 4 insertions(+), 2761 deletions(-) delete mode 100644 packages/google-cloud-networkconnectivity/test/gapic_policy_based_routing_service_v1.ts diff --git a/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata.google.cloud.networkconnectivity.v1.json b/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata.google.cloud.networkconnectivity.v1.json index 17cb53bf8eda..078dd2aed423 100644 --- a/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata.google.cloud.networkconnectivity.v1.json +++ b/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata.google.cloud.networkconnectivity.v1.json @@ -490,198 +490,6 @@ } } } - }, - { - "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async", - "title": "HubService listPolicyBasedRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists PolicyBasedRoutes in a given project and location.", - "canonical": true, - "file": "policy_based_routing_service.list_policy_based_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicyBasedRoutes", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "ListPolicyBasedRoutes", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutes", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_async", - "title": "HubService getPolicyBasedRoute Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single PolicyBasedRoute.", - "canonical": true, - "file": "policy_based_routing_service.get_policy_based_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.PolicyBasedRoute", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "GetPolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRoute", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_async", - "title": "HubService createPolicyBasedRoute Sample", - "origin": "API_DEFINITION", - "description": " Creates a new PolicyBasedRoute in a given project and location.", - "canonical": true, - "file": "policy_based_routing_service.create_policy_based_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy_based_route_id", - "type": "TYPE_STRING" - }, - { - "name": "policy_based_route", - "type": ".google.cloud.networkconnectivity.v1.PolicyBasedRoute" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "CreatePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRoute", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_async", - "title": "HubService deletePolicyBasedRoute Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single PolicyBasedRoute.", - "canonical": true, - "file": "policy_based_routing_service.delete_policy_based_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "DeletePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRoute", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" - } - } - } } ] } \ No newline at end of file diff --git a/packages/google-cloud-networkconnectivity/src/index.ts b/packages/google-cloud-networkconnectivity/src/index.ts index d27aa0cb93de..993391871ee9 100644 --- a/packages/google-cloud-networkconnectivity/src/index.ts +++ b/packages/google-cloud-networkconnectivity/src/index.ts @@ -21,15 +21,8 @@ import * as v1alpha1 from './v1alpha1'; const HubServiceClient = v1.HubServiceClient; type HubServiceClient = v1.HubServiceClient; -const PolicyBasedRoutingServiceClient = v1.PolicyBasedRoutingServiceClient; -type PolicyBasedRoutingServiceClient = v1.PolicyBasedRoutingServiceClient; -export {v1, v1alpha1, HubServiceClient, PolicyBasedRoutingServiceClient}; -export default { - v1, - v1alpha1, - HubServiceClient, - PolicyBasedRoutingServiceClient, -}; +export {v1, v1alpha1, HubServiceClient}; +export default {v1, v1alpha1, HubServiceClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-cloud-networkconnectivity/src/v1/gapic_metadata.json b/packages/google-cloud-networkconnectivity/src/v1/gapic_metadata.json index f327f4e8b54a..3e4f0fedf408 100644 --- a/packages/google-cloud-networkconnectivity/src/v1/gapic_metadata.json +++ b/packages/google-cloud-networkconnectivity/src/v1/gapic_metadata.json @@ -126,64 +126,6 @@ } } } - }, - "PolicyBasedRoutingService": { - "clients": { - "grpc": { - "libraryClient": "PolicyBasedRoutingServiceClient", - "rpcs": { - "GetPolicyBasedRoute": { - "methods": [ - "getPolicyBasedRoute" - ] - }, - "CreatePolicyBasedRoute": { - "methods": [ - "createPolicyBasedRoute" - ] - }, - "DeletePolicyBasedRoute": { - "methods": [ - "deletePolicyBasedRoute" - ] - }, - "ListPolicyBasedRoutes": { - "methods": [ - "listPolicyBasedRoutes", - "listPolicyBasedRoutesStream", - "listPolicyBasedRoutesAsync" - ] - } - } - }, - "grpc-fallback": { - "libraryClient": "PolicyBasedRoutingServiceClient", - "rpcs": { - "GetPolicyBasedRoute": { - "methods": [ - "getPolicyBasedRoute" - ] - }, - "CreatePolicyBasedRoute": { - "methods": [ - "createPolicyBasedRoute" - ] - }, - "DeletePolicyBasedRoute": { - "methods": [ - "deletePolicyBasedRoute" - ] - }, - "ListPolicyBasedRoutes": { - "methods": [ - "listPolicyBasedRoutes", - "listPolicyBasedRoutesStream", - "listPolicyBasedRoutesAsync" - ] - } - } - } - } } } } diff --git a/packages/google-cloud-networkconnectivity/src/v1/hub_service_client.ts b/packages/google-cloud-networkconnectivity/src/v1/hub_service_client.ts index f4a9bcea44b4..56bbf62aba38 100644 --- a/packages/google-cloud-networkconnectivity/src/v1/hub_service_client.ts +++ b/packages/google-cloud-networkconnectivity/src/v1/hub_service_client.ts @@ -210,9 +210,6 @@ export class HubServiceClient { networkPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/global/networks/{resource_id}' ), - policyBasedRoutePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}' - ), spokePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/spokes/{spoke}' ), @@ -266,15 +263,6 @@ export class HubServiceClient { { get: '/v1/{resource=projects/*/locations/global/policyBasedRoutes/*}:getIamPolicy', }, - { - get: '/v1/{resource=projects/*/locations/*/serviceConnectionMaps/*}:getIamPolicy', - }, - { - get: '/v1/{resource=projects/*/locations/*/serviceConnectionPolicies/*}:getIamPolicy', - }, - { - get: '/v1/{resource=projects/*/locations/*/serviceClasses/*}:getIamPolicy', - }, ], }, { @@ -290,18 +278,6 @@ export class HubServiceClient { post: '/v1/{resource=projects/*/locations/global/policyBasedRoutes/*}:setIamPolicy', body: '*', }, - { - post: '/v1/{resource=projects/*/locations/*/serviceConnectionMaps/*}:setIamPolicy', - body: '*', - }, - { - post: '/v1/{resource=projects/*/locations/*/serviceConnectionPolicies/*}:setIamPolicy', - body: '*', - }, - { - post: '/v1/{resource=projects/*/locations/*/serviceClasses/*}:setIamPolicy', - body: '*', - }, ], }, { @@ -317,18 +293,6 @@ export class HubServiceClient { post: '/v1/{resource=projects/*/locations/global/policyBasedRoutes/*}:testIamPermissions', body: '*', }, - { - post: '/v1/{resource=projects/*/locations/*/serviceConnectionMaps/*}:testIamPermissions', - body: '*', - }, - { - post: '/v1/{resource=projects/*/locations/*/serviceConnectionPolicies/*}:testIamPermissions', - body: '*', - }, - { - post: '/v1/{resource=projects/*/locations/*/serviceClasses/*}:testIamPermissions', - body: '*', - }, ], }, { @@ -2718,65 +2682,6 @@ export class HubServiceClient { .resource_id; } - /** - * Return a fully-qualified policyBasedRoute resource name string. - * - * @param {string} project - * @param {string} location - * @param {string} policy_based_route - * @returns {string} Resource name string. - */ - policyBasedRoutePath( - project: string, - location: string, - policyBasedRoute: string - ) { - return this.pathTemplates.policyBasedRoutePathTemplate.render({ - project: project, - location: location, - policy_based_route: policyBasedRoute, - }); - } - - /** - * Parse the project from PolicyBasedRoute resource. - * - * @param {string} policyBasedRouteName - * A fully-qualified path representing PolicyBasedRoute resource. - * @returns {string} A string representing the project. - */ - matchProjectFromPolicyBasedRouteName(policyBasedRouteName: string) { - return this.pathTemplates.policyBasedRoutePathTemplate.match( - policyBasedRouteName - ).project; - } - - /** - * Parse the location from PolicyBasedRoute resource. - * - * @param {string} policyBasedRouteName - * A fully-qualified path representing PolicyBasedRoute resource. - * @returns {string} A string representing the location. - */ - matchLocationFromPolicyBasedRouteName(policyBasedRouteName: string) { - return this.pathTemplates.policyBasedRoutePathTemplate.match( - policyBasedRouteName - ).location; - } - - /** - * Parse the policy_based_route from PolicyBasedRoute resource. - * - * @param {string} policyBasedRouteName - * A fully-qualified path representing PolicyBasedRoute resource. - * @returns {string} A string representing the policy_based_route. - */ - matchPolicyBasedRouteFromPolicyBasedRouteName(policyBasedRouteName: string) { - return this.pathTemplates.policyBasedRoutePathTemplate.match( - policyBasedRouteName - ).policy_based_route; - } - /** * Return a fully-qualified spoke resource name string. * diff --git a/packages/google-cloud-networkconnectivity/src/v1/hub_service_proto_list.json b/packages/google-cloud-networkconnectivity/src/v1/hub_service_proto_list.json index d076e60ee41c..ebe50faf7cb1 100644 --- a/packages/google-cloud-networkconnectivity/src/v1/hub_service_proto_list.json +++ b/packages/google-cloud-networkconnectivity/src/v1/hub_service_proto_list.json @@ -1,5 +1,4 @@ [ "../../protos/google/cloud/networkconnectivity/v1/common.proto", - "../../protos/google/cloud/networkconnectivity/v1/hub.proto", - "../../protos/google/cloud/networkconnectivity/v1/policy_based_routing.proto" + "../../protos/google/cloud/networkconnectivity/v1/hub.proto" ] diff --git a/packages/google-cloud-networkconnectivity/src/v1/index.ts b/packages/google-cloud-networkconnectivity/src/v1/index.ts index 54add94f8e77..937a411a4857 100644 --- a/packages/google-cloud-networkconnectivity/src/v1/index.ts +++ b/packages/google-cloud-networkconnectivity/src/v1/index.ts @@ -17,4 +17,3 @@ // ** All changes to this file may be overwritten. ** export {HubServiceClient} from './hub_service_client'; -export {PolicyBasedRoutingServiceClient} from './policy_based_routing_service_client'; diff --git a/packages/google-cloud-networkconnectivity/system-test/fixtures/sample/src/index.js b/packages/google-cloud-networkconnectivity/system-test/fixtures/sample/src/index.js index 27c8430d34de..7f6ba4c79f70 100644 --- a/packages/google-cloud-networkconnectivity/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-networkconnectivity/system-test/fixtures/sample/src/index.js @@ -21,8 +21,6 @@ const networkconnectivity = require('@google-cloud/network-connectivity'); function main() { const hubServiceClient = new networkconnectivity.HubServiceClient(); - const policyBasedRoutingServiceClient = - new networkconnectivity.PolicyBasedRoutingServiceClient(); } main(); diff --git a/packages/google-cloud-networkconnectivity/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-networkconnectivity/system-test/fixtures/sample/src/index.ts index f2dc2964b5fd..ae4d979ece8d 100644 --- a/packages/google-cloud-networkconnectivity/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-networkconnectivity/system-test/fixtures/sample/src/index.ts @@ -16,28 +16,17 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** -import { - HubServiceClient, - PolicyBasedRoutingServiceClient, -} from '@google-cloud/network-connectivity'; +import {HubServiceClient} from '@google-cloud/network-connectivity'; // check that the client class type name can be used function doStuffWithHubServiceClient(client: HubServiceClient) { client.close(); } -function doStuffWithPolicyBasedRoutingServiceClient( - client: PolicyBasedRoutingServiceClient -) { - client.close(); -} function main() { // check that the client instance can be created const hubServiceClient = new HubServiceClient(); doStuffWithHubServiceClient(hubServiceClient); - // check that the client instance can be created - const policyBasedRoutingServiceClient = new PolicyBasedRoutingServiceClient(); - doStuffWithPolicyBasedRoutingServiceClient(policyBasedRoutingServiceClient); } main(); diff --git a/packages/google-cloud-networkconnectivity/test/gapic_hub_service_v1.ts b/packages/google-cloud-networkconnectivity/test/gapic_hub_service_v1.ts index f192f930b61e..18ff187f5270 100644 --- a/packages/google-cloud-networkconnectivity/test/gapic_hub_service_v1.ts +++ b/packages/google-cloud-networkconnectivity/test/gapic_hub_service_v1.ts @@ -3439,74 +3439,6 @@ describe('v1.HubServiceClient', () => { }); }); - describe('policyBasedRoute', () => { - const fakePath = '/rendered/path/policyBasedRoute'; - const expectedParameters = { - project: 'projectValue', - location: 'locationValue', - policy_based_route: 'policyBasedRouteValue', - }; - const client = new hubserviceModule.v1.HubServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.policyBasedRoutePathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.policyBasedRoutePathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('policyBasedRoutePath', () => { - const result = client.policyBasedRoutePath( - 'projectValue', - 'locationValue', - 'policyBasedRouteValue' - ); - assert.strictEqual(result, fakePath); - assert( - ( - client.pathTemplates.policyBasedRoutePathTemplate - .render as SinonStub - ) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromPolicyBasedRouteName', () => { - const result = client.matchProjectFromPolicyBasedRouteName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.policyBasedRoutePathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchLocationFromPolicyBasedRouteName', () => { - const result = client.matchLocationFromPolicyBasedRouteName(fakePath); - assert.strictEqual(result, 'locationValue'); - assert( - (client.pathTemplates.policyBasedRoutePathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchPolicyBasedRouteFromPolicyBasedRouteName', () => { - const result = - client.matchPolicyBasedRouteFromPolicyBasedRouteName(fakePath); - assert.strictEqual(result, 'policyBasedRouteValue'); - assert( - (client.pathTemplates.policyBasedRoutePathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - describe('spoke', () => { const fakePath = '/rendered/path/spoke'; const expectedParameters = { diff --git a/packages/google-cloud-networkconnectivity/test/gapic_policy_based_routing_service_v1.ts b/packages/google-cloud-networkconnectivity/test/gapic_policy_based_routing_service_v1.ts deleted file mode 100644 index 01ca79a0d024..000000000000 --- a/packages/google-cloud-networkconnectivity/test/gapic_policy_based_routing_service_v1.ts +++ /dev/null @@ -1,2322 +0,0 @@ -// Copyright 2023 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** -// ** All changes to this file may be overwritten. ** - -import * as protos from '../protos/protos'; -import * as assert from 'assert'; -import * as sinon from 'sinon'; -import {SinonStub} from 'sinon'; -import {describe, it} from 'mocha'; -import * as policybasedroutingserviceModule from '../src'; - -import {PassThrough} from 'stream'; - -import { - protobuf, - LROperation, - operationsProtos, - IamProtos, - LocationProtos, -} from 'google-gax'; - -// Dynamically loaded proto JSON is needed to get the type information -// to fill in default values for request objects -const root = protobuf.Root.fromJSON( - require('../protos/protos.json') -).resolveAll(); - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function getTypeDefaultValue(typeName: string, fields: string[]) { - let type = root.lookupType(typeName) as protobuf.Type; - for (const field of fields.slice(0, -1)) { - type = type.fields[field]?.resolvedType as protobuf.Type; - } - return type.fields[fields[fields.length - 1]]?.defaultValue; -} - -function generateSampleMessage(instance: T) { - const filledObject = ( - instance.constructor as typeof protobuf.Message - ).toObject(instance as protobuf.Message, {defaults: true}); - return (instance.constructor as typeof protobuf.Message).fromObject( - filledObject - ) as T; -} - -function stubSimpleCall(response?: ResponseType, error?: Error) { - return error - ? sinon.stub().rejects(error) - : sinon.stub().resolves([response]); -} - -function stubSimpleCallWithCallback( - response?: ResponseType, - error?: Error -) { - return error - ? sinon.stub().callsArgWith(2, error) - : sinon.stub().callsArgWith(2, null, response); -} - -function stubLongRunningCall( - response?: ResponseType, - callError?: Error, - lroError?: Error -) { - const innerStub = lroError - ? sinon.stub().rejects(lroError) - : sinon.stub().resolves([response]); - const mockOperation = { - promise: innerStub, - }; - return callError - ? sinon.stub().rejects(callError) - : sinon.stub().resolves([mockOperation]); -} - -function stubLongRunningCallWithCallback( - response?: ResponseType, - callError?: Error, - lroError?: Error -) { - const innerStub = lroError - ? sinon.stub().rejects(lroError) - : sinon.stub().resolves([response]); - const mockOperation = { - promise: innerStub, - }; - return callError - ? sinon.stub().callsArgWith(2, callError) - : sinon.stub().callsArgWith(2, null, mockOperation); -} - -function stubPageStreamingCall( - responses?: ResponseType[], - error?: Error -) { - const pagingStub = sinon.stub(); - if (responses) { - for (let i = 0; i < responses.length; ++i) { - pagingStub.onCall(i).callsArgWith(2, null, responses[i]); - } - } - const transformStub = error - ? sinon.stub().callsArgWith(2, error) - : pagingStub; - const mockStream = new PassThrough({ - objectMode: true, - transform: transformStub, - }); - // trigger as many responses as needed - if (responses) { - for (let i = 0; i < responses.length; ++i) { - setImmediate(() => { - mockStream.write({}); - }); - } - setImmediate(() => { - mockStream.end(); - }); - } else { - setImmediate(() => { - mockStream.write({}); - }); - setImmediate(() => { - mockStream.end(); - }); - } - return sinon.stub().returns(mockStream); -} - -function stubAsyncIterationCall( - responses?: ResponseType[], - error?: Error -) { - let counter = 0; - const asyncIterable = { - [Symbol.asyncIterator]() { - return { - async next() { - if (error) { - return Promise.reject(error); - } - if (counter >= responses!.length) { - return Promise.resolve({done: true, value: undefined}); - } - return Promise.resolve({done: false, value: responses![counter++]}); - }, - }; - }, - }; - return sinon.stub().returns(asyncIterable); -} - -describe('v1.PolicyBasedRoutingServiceClient', () => { - describe('Common methods', () => { - it('has servicePath', () => { - const servicePath = - policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient - .servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient - .apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = - policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient(); - assert(client); - }); - - it('should create a client with gRPC fallback', () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - fallback: true, - }); - assert(client); - }); - - it('has initialize method and supports deferred initialization', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.policyBasedRoutingServiceStub, undefined); - await client.initialize(); - assert(client.policyBasedRoutingServiceStub); - }); - - it('has close method for the initialized client', done => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - assert(client.policyBasedRoutingServiceStub); - client.close().then(() => { - done(); - }); - }); - - it('has close method for the non-initialized client', done => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.policyBasedRoutingServiceStub, undefined); - client.close().then(() => { - done(); - }); - }); - - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } - }); - }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); - }); - }); - - describe('getPolicyBasedRoute', () => { - it('invokes getPolicyBasedRoute without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest', - ['name'] - ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedResponse = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ); - client.innerApiCalls.getPolicyBasedRoute = - stubSimpleCall(expectedResponse); - const [response] = await client.getPolicyBasedRoute(request); - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.getPolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.getPolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes getPolicyBasedRoute without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest', - ['name'] - ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedResponse = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ); - client.innerApiCalls.getPolicyBasedRoute = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.getPolicyBasedRoute( - request, - ( - err?: Error | null, - result?: protos.google.cloud.networkconnectivity.v1.IPolicyBasedRoute | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.getPolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.getPolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes getPolicyBasedRoute with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest', - ['name'] - ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.getPolicyBasedRoute = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.getPolicyBasedRoute(request), expectedError); - const actualRequest = ( - client.innerApiCalls.getPolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.getPolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes getPolicyBasedRoute with closed client', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest', - ['name'] - ); - request.name = defaultValue1; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.getPolicyBasedRoute(request), expectedError); - }); - }); - - describe('createPolicyBasedRoute', () => { - it('invokes createPolicyBasedRoute without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() - ); - client.innerApiCalls.createPolicyBasedRoute = - stubLongRunningCall(expectedResponse); - const [operation] = await client.createPolicyBasedRoute(request); - const [response] = await operation.promise(); - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.createPolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.createPolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes createPolicyBasedRoute without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() - ); - client.innerApiCalls.createPolicyBasedRoute = - stubLongRunningCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.createPolicyBasedRoute( - request, - ( - err?: Error | null, - result?: LROperation< - protos.google.cloud.networkconnectivity.v1.IPolicyBasedRoute, - protos.google.cloud.networkconnectivity.v1.IOperationMetadata - > | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const operation = (await promise) as LROperation< - protos.google.cloud.networkconnectivity.v1.IPolicyBasedRoute, - protos.google.cloud.networkconnectivity.v1.IOperationMetadata - >; - const [response] = await operation.promise(); - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.createPolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.createPolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes createPolicyBasedRoute with call error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.createPolicyBasedRoute = stubLongRunningCall( - undefined, - expectedError - ); - await assert.rejects( - client.createPolicyBasedRoute(request), - expectedError - ); - const actualRequest = ( - client.innerApiCalls.createPolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.createPolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes createPolicyBasedRoute with LRO error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.createPolicyBasedRoute = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.createPolicyBasedRoute(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.createPolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.createPolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkCreatePolicyBasedRouteProgress without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCreatePolicyBasedRouteProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkCreatePolicyBasedRouteProgress with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.checkCreatePolicyBasedRouteProgress(''), - expectedError - ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - }); - - describe('deletePolicyBasedRoute', () => { - it('invokes deletePolicyBasedRoute without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest', - ['name'] - ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() - ); - client.innerApiCalls.deletePolicyBasedRoute = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deletePolicyBasedRoute(request); - const [response] = await operation.promise(); - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.deletePolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deletePolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes deletePolicyBasedRoute without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest', - ['name'] - ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() - ); - client.innerApiCalls.deletePolicyBasedRoute = - stubLongRunningCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.deletePolicyBasedRoute( - request, - ( - err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.networkconnectivity.v1.IOperationMetadata - > | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.networkconnectivity.v1.IOperationMetadata - >; - const [response] = await operation.promise(); - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.deletePolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deletePolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes deletePolicyBasedRoute with call error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest', - ['name'] - ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deletePolicyBasedRoute = stubLongRunningCall( - undefined, - expectedError - ); - await assert.rejects( - client.deletePolicyBasedRoute(request), - expectedError - ); - const actualRequest = ( - client.innerApiCalls.deletePolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deletePolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes deletePolicyBasedRoute with LRO error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest', - ['name'] - ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deletePolicyBasedRoute = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deletePolicyBasedRoute(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deletePolicyBasedRoute as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deletePolicyBasedRoute as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeletePolicyBasedRouteProgress without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeletePolicyBasedRouteProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeletePolicyBasedRouteProgress with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.checkDeletePolicyBasedRouteProgress(''), - expectedError - ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - }); - - describe('listPolicyBasedRoutes', () => { - it('invokes listPolicyBasedRoutes without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - ]; - client.innerApiCalls.listPolicyBasedRoutes = - stubSimpleCall(expectedResponse); - const [response] = await client.listPolicyBasedRoutes(request); - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.listPolicyBasedRoutes as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.listPolicyBasedRoutes as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes listPolicyBasedRoutes without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - ]; - client.innerApiCalls.listPolicyBasedRoutes = - stubSimpleCallWithCallback(expectedResponse); - const promise = new Promise((resolve, reject) => { - client.listPolicyBasedRoutes( - request, - ( - err?: Error | null, - result?: - | protos.google.cloud.networkconnectivity.v1.IPolicyBasedRoute[] - | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.listPolicyBasedRoutes as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.listPolicyBasedRoutes as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes listPolicyBasedRoutes with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.listPolicyBasedRoutes = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.listPolicyBasedRoutes(request), - expectedError - ); - const actualRequest = ( - client.innerApiCalls.listPolicyBasedRoutes as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.listPolicyBasedRoutes as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes listPolicyBasedRoutesStream without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - ]; - client.descriptors.page.listPolicyBasedRoutes.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listPolicyBasedRoutesStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute[] = - []; - stream.on( - 'data', - ( - response: protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute - ) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); - assert( - ( - client.descriptors.page.listPolicyBasedRoutes - .createStream as SinonStub - ) - .getCall(0) - .calledWith(client.innerApiCalls.listPolicyBasedRoutes, request) - ); - assert( - ( - client.descriptors.page.listPolicyBasedRoutes - .createStream as SinonStub - ) - .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) - ); - }); - - it('invokes listPolicyBasedRoutesStream with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.descriptors.page.listPolicyBasedRoutes.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listPolicyBasedRoutesStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute[] = - []; - stream.on( - 'data', - ( - response: protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute - ) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - await assert.rejects(promise, expectedError); - assert( - ( - client.descriptors.page.listPolicyBasedRoutes - .createStream as SinonStub - ) - .getCall(0) - .calledWith(client.innerApiCalls.listPolicyBasedRoutes, request) - ); - assert( - ( - client.descriptors.page.listPolicyBasedRoutes - .createStream as SinonStub - ) - .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) - ); - }); - - it('uses async iteration with listPolicyBasedRoutes without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.PolicyBasedRoute() - ), - ]; - client.descriptors.page.listPolicyBasedRoutes.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.networkconnectivity.v1.IPolicyBasedRoute[] = - []; - const iterable = client.listPolicyBasedRoutesAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.descriptors.page.listPolicyBasedRoutes - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - assert( - ( - client.descriptors.page.listPolicyBasedRoutes - .asyncIterate as SinonStub - ) - .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) - ); - }); - - it('uses async iteration with listPolicyBasedRoutes with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.descriptors.page.listPolicyBasedRoutes.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listPolicyBasedRoutesAsync(request); - await assert.rejects(async () => { - const responses: protos.google.cloud.networkconnectivity.v1.IPolicyBasedRoute[] = - []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.descriptors.page.listPolicyBasedRoutes - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - assert( - ( - client.descriptors.page.listPolicyBasedRoutes - .asyncIterate as SinonStub - ) - .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) - ); - }); - }); - describe('getIamPolicy', () => { - it('invokes getIamPolicy without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new IamProtos.google.iam.v1.GetIamPolicyRequest() - ); - request.resource = ''; - const expectedHeaderRequestParams = 'resource='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new IamProtos.google.iam.v1.Policy() - ); - client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); - const response = await client.getIamPolicy(request, expectedOptions); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.iamClient.getIamPolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - it('invokes getIamPolicy without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new IamProtos.google.iam.v1.GetIamPolicyRequest() - ); - request.resource = ''; - const expectedHeaderRequestParams = 'resource='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new IamProtos.google.iam.v1.Policy() - ); - client.iamClient.getIamPolicy = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.getIamPolicy( - request, - expectedOptions, - ( - err?: Error | null, - result?: IamProtos.google.iam.v1.Policy | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); - }); - it('invokes getIamPolicy with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new IamProtos.google.iam.v1.GetIamPolicyRequest() - ); - request.resource = ''; - const expectedHeaderRequestParams = 'resource='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); - await assert.rejects( - client.getIamPolicy(request, expectedOptions), - expectedError - ); - assert( - (client.iamClient.getIamPolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - describe('setIamPolicy', () => { - it('invokes setIamPolicy without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new IamProtos.google.iam.v1.SetIamPolicyRequest() - ); - request.resource = ''; - const expectedHeaderRequestParams = 'resource='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new IamProtos.google.iam.v1.Policy() - ); - client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); - const response = await client.setIamPolicy(request, expectedOptions); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.iamClient.setIamPolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - it('invokes setIamPolicy without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new IamProtos.google.iam.v1.SetIamPolicyRequest() - ); - request.resource = ''; - const expectedHeaderRequestParams = 'resource='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new IamProtos.google.iam.v1.Policy() - ); - client.iamClient.setIamPolicy = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.setIamPolicy( - request, - expectedOptions, - ( - err?: Error | null, - result?: IamProtos.google.iam.v1.Policy | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); - }); - it('invokes setIamPolicy with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new IamProtos.google.iam.v1.SetIamPolicyRequest() - ); - request.resource = ''; - const expectedHeaderRequestParams = 'resource='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); - await assert.rejects( - client.setIamPolicy(request, expectedOptions), - expectedError - ); - assert( - (client.iamClient.setIamPolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - describe('testIamPermissions', () => { - it('invokes testIamPermissions without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new IamProtos.google.iam.v1.TestIamPermissionsRequest() - ); - request.resource = ''; - const expectedHeaderRequestParams = 'resource='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new IamProtos.google.iam.v1.TestIamPermissionsResponse() - ); - client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); - const response = await client.testIamPermissions( - request, - expectedOptions - ); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.iamClient.testIamPermissions as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - it('invokes testIamPermissions without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new IamProtos.google.iam.v1.TestIamPermissionsRequest() - ); - request.resource = ''; - const expectedHeaderRequestParams = 'resource='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new IamProtos.google.iam.v1.TestIamPermissionsResponse() - ); - client.iamClient.testIamPermissions = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.testIamPermissions( - request, - expectedOptions, - ( - err?: Error | null, - result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); - }); - it('invokes testIamPermissions with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new IamProtos.google.iam.v1.TestIamPermissionsRequest() - ); - request.resource = ''; - const expectedHeaderRequestParams = 'resource='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.iamClient.testIamPermissions = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.testIamPermissions(request, expectedOptions), - expectedError - ); - assert( - (client.iamClient.testIamPermissions as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - describe('getLocation', () => { - it('invokes getLocation without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new LocationProtos.google.cloud.location.GetLocationRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new LocationProtos.google.cloud.location.Location() - ); - client.locationsClient.getLocation = stubSimpleCall(expectedResponse); - const response = await client.getLocation(request, expectedOptions); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.locationsClient.getLocation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - it('invokes getLocation without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new LocationProtos.google.cloud.location.GetLocationRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = generateSampleMessage( - new LocationProtos.google.cloud.location.Location() - ); - client.locationsClient.getLocation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.getLocation( - request, - expectedOptions, - ( - err?: Error | null, - result?: LocationProtos.google.cloud.location.ILocation | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.locationsClient.getLocation as SinonStub).getCall(0)); - }); - it('invokes getLocation with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new LocationProtos.google.cloud.location.GetLocationRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedError = new Error('expected'); - client.locationsClient.getLocation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.getLocation(request, expectedOptions), - expectedError - ); - assert( - (client.locationsClient.getLocation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - }); - describe('listLocationsAsync', () => { - it('uses async iteration with listLocations without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new LocationProtos.google.cloud.location.ListLocationsRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedResponse = [ - generateSampleMessage( - new LocationProtos.google.cloud.location.Location() - ), - generateSampleMessage( - new LocationProtos.google.cloud.location.Location() - ), - generateSampleMessage( - new LocationProtos.google.cloud.location.Location() - ), - ]; - client.locationsClient.descriptors.page.listLocations.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: LocationProtos.google.cloud.location.ILocation[] = []; - const iterable = client.listLocationsAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.locationsClient.descriptors.page.listLocations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - assert( - ( - client.locationsClient.descriptors.page.listLocations - .asyncIterate as SinonStub - ) - .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) - ); - }); - it('uses async iteration with listLocations with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new LocationProtos.google.cloud.location.ListLocationsRequest() - ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedError = new Error('expected'); - client.locationsClient.descriptors.page.listLocations.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listLocationsAsync(request); - await assert.rejects(async () => { - const responses: LocationProtos.google.cloud.location.ILocation[] = []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.locationsClient.descriptors.page.listLocations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - assert( - ( - client.locationsClient.descriptors.page.listLocations - .asyncIterate as SinonStub - ) - .getCall(0) - .args[2].otherArgs.headers['x-goog-request-params'].includes( - expectedHeaderRequestParams - ) - ); - }); - }); - describe('getOperation', () => { - it('invokes getOperation without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const response = await client.getOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes getOperation without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - client.operationsClient.getOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.getOperation( - request, - undefined, - ( - err?: Error | null, - result?: operationsProtos.google.longrunning.Operation | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - it('invokes getOperation with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.GetOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.getOperation(request); - }, expectedError); - assert( - (client.operationsClient.getOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('cancelOperation', () => { - it('invokes cancelOperation without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = - stubSimpleCall(expectedResponse); - const response = await client.cancelOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes cancelOperation without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.cancelOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.cancelOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); - }); - it('invokes cancelOperation with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.CancelOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.cancelOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.cancelOperation(request); - }, expectedError); - assert( - (client.operationsClient.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('deleteOperation', () => { - it('invokes deleteOperation without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = - stubSimpleCall(expectedResponse); - const response = await client.deleteOperation(request); - assert.deepStrictEqual(response, [expectedResponse]); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - it('invokes deleteOperation without error using callback', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() - ); - client.operationsClient.deleteOperation = sinon - .stub() - .callsArgWith(2, null, expectedResponse); - const promise = new Promise((resolve, reject) => { - client.operationsClient.deleteOperation( - request, - undefined, - ( - err?: Error | null, - result?: protos.google.protobuf.Empty | null - ) => { - if (err) { - reject(err); - } else { - resolve(result); - } - } - ); - }); - const response = await promise; - assert.deepStrictEqual(response, expectedResponse); - assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); - }); - it('invokes deleteOperation with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.DeleteOperationRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.deleteOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(async () => { - await client.deleteOperation(request); - }, expectedError); - assert( - (client.operationsClient.deleteOperation as SinonStub) - .getCall(0) - .calledWith(request) - ); - }); - }); - describe('listOperationsAsync', () => { - it('uses async iteration with listOperations without error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedResponse = [ - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsResponse() - ), - ]; - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(expectedResponse); - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - const iterable = client.operationsClient.listOperationsAsync(request); - for await (const resource of iterable) { - responses.push(resource!); - } - assert.deepStrictEqual(responses, expectedResponse); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - it('uses async iteration with listOperations with error', async () => { - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new operationsProtos.google.longrunning.ListOperationsRequest() - ); - const expectedError = new Error('expected'); - client.operationsClient.descriptor.listOperations.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.operationsClient.listOperationsAsync(request); - await assert.rejects(async () => { - const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = - []; - for await (const resource of iterable) { - responses.push(resource!); - } - }); - assert.deepStrictEqual( - ( - client.operationsClient.descriptor.listOperations - .asyncIterate as SinonStub - ).getCall(0).args[1], - request - ); - }); - }); - - describe('Path templates', () => { - describe('hub', () => { - const fakePath = '/rendered/path/hub'; - const expectedParameters = { - project: 'projectValue', - hub: 'hubValue', - }; - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.hubPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.hubPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('hubPath', () => { - const result = client.hubPath('projectValue', 'hubValue'); - assert.strictEqual(result, fakePath); - assert( - (client.pathTemplates.hubPathTemplate.render as SinonStub) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromHubName', () => { - const result = client.matchProjectFromHubName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.hubPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchHubFromHubName', () => { - const result = client.matchHubFromHubName(fakePath); - assert.strictEqual(result, 'hubValue'); - assert( - (client.pathTemplates.hubPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - - describe('location', () => { - const fakePath = '/rendered/path/location'; - const expectedParameters = { - project: 'projectValue', - location: 'locationValue', - }; - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.locationPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.locationPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('locationPath', () => { - const result = client.locationPath('projectValue', 'locationValue'); - assert.strictEqual(result, fakePath); - assert( - (client.pathTemplates.locationPathTemplate.render as SinonStub) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromLocationName', () => { - const result = client.matchProjectFromLocationName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.locationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchLocationFromLocationName', () => { - const result = client.matchLocationFromLocationName(fakePath); - assert.strictEqual(result, 'locationValue'); - assert( - (client.pathTemplates.locationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - - describe('network', () => { - const fakePath = '/rendered/path/network'; - const expectedParameters = { - project: 'projectValue', - resource_id: 'resourceIdValue', - }; - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.networkPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.networkPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('networkPath', () => { - const result = client.networkPath('projectValue', 'resourceIdValue'); - assert.strictEqual(result, fakePath); - assert( - (client.pathTemplates.networkPathTemplate.render as SinonStub) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromNetworkName', () => { - const result = client.matchProjectFromNetworkName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.networkPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchResourceIdFromNetworkName', () => { - const result = client.matchResourceIdFromNetworkName(fakePath); - assert.strictEqual(result, 'resourceIdValue'); - assert( - (client.pathTemplates.networkPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - - describe('policyBasedRoute', () => { - const fakePath = '/rendered/path/policyBasedRoute'; - const expectedParameters = { - project: 'projectValue', - location: 'locationValue', - policy_based_route: 'policyBasedRouteValue', - }; - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.policyBasedRoutePathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.policyBasedRoutePathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('policyBasedRoutePath', () => { - const result = client.policyBasedRoutePath( - 'projectValue', - 'locationValue', - 'policyBasedRouteValue' - ); - assert.strictEqual(result, fakePath); - assert( - ( - client.pathTemplates.policyBasedRoutePathTemplate - .render as SinonStub - ) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromPolicyBasedRouteName', () => { - const result = client.matchProjectFromPolicyBasedRouteName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.policyBasedRoutePathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchLocationFromPolicyBasedRouteName', () => { - const result = client.matchLocationFromPolicyBasedRouteName(fakePath); - assert.strictEqual(result, 'locationValue'); - assert( - (client.pathTemplates.policyBasedRoutePathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchPolicyBasedRouteFromPolicyBasedRouteName', () => { - const result = - client.matchPolicyBasedRouteFromPolicyBasedRouteName(fakePath); - assert.strictEqual(result, 'policyBasedRouteValue'); - assert( - (client.pathTemplates.policyBasedRoutePathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - - describe('spoke', () => { - const fakePath = '/rendered/path/spoke'; - const expectedParameters = { - project: 'projectValue', - location: 'locationValue', - spoke: 'spokeValue', - }; - const client = - new policybasedroutingserviceModule.v1.PolicyBasedRoutingServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.spokePathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.spokePathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('spokePath', () => { - const result = client.spokePath( - 'projectValue', - 'locationValue', - 'spokeValue' - ); - assert.strictEqual(result, fakePath); - assert( - (client.pathTemplates.spokePathTemplate.render as SinonStub) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromSpokeName', () => { - const result = client.matchProjectFromSpokeName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.spokePathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchLocationFromSpokeName', () => { - const result = client.matchLocationFromSpokeName(fakePath); - assert.strictEqual(result, 'locationValue'); - assert( - (client.pathTemplates.spokePathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchSpokeFromSpokeName', () => { - const result = client.matchSpokeFromSpokeName(fakePath); - assert.strictEqual(result, 'spokeValue'); - assert( - (client.pathTemplates.spokePathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - }); -}); From 0b6dba401db98106ecde0f2d6f3d313db6f80d25 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 14:28:55 -0800 Subject: [PATCH 07/38] docs: [dataplex] Improvements to DataScan API documentation (#3921) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Improvements to DataScan API documentation PiperOrigin-RevId: 506348044 Source-Link: https://github.com/googleapis/googleapis/commit/4eb6d9e12b72bae548432230e85ee460641d7e5f Source-Link: https://github.com/googleapis/googleapis-gen/commit/830a4ab8c9836b377d43ff95b68d8372890e93c3 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwbGV4Ly5Pd2xCb3QueWFtbCIsImgiOiI4MzBhNGFiOGM5ODM2YjM3N2Q0M2ZmOTViNjhkODM3Mjg5MGU5M2MzIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/cloud/dataplex/v1/datascans.proto | 117 ++++++++++-------- .../v1/data_scan_service.create_data_scan.js | 4 +- .../v1/data_scan_service.delete_data_scan.js | 4 +- .../v1/data_scan_service.get_data_scan.js | 7 +- .../v1/data_scan_service.get_data_scan_job.js | 7 +- .../data_scan_service.list_data_scan_jobs.js | 4 +- .../v1/data_scan_service.list_data_scans.js | 7 +- .../v1/data_scan_service.run_data_scan.js | 6 +- .../v1/data_scan_service.update_data_scan.js | 2 +- ...pet_metadata.google.cloud.dataplex.v1.json | 22 ++-- .../src/v1/data_scan_service_client.ts | 85 +++++++------ 11 files changed, 142 insertions(+), 123 deletions(-) diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/datascans.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/datascans.proto index 646199d941cc..cda87e94ba51 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/datascans.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/datascans.proto @@ -33,12 +33,15 @@ option java_multiple_files = true; option java_outer_classname = "DataScansProto"; option java_package = "com.google.cloud.dataplex.v1"; +// DataScanService manages DataScan resources which can be configured to run +// various types of data scanning workload and generate enriched metadata (e.g. +// Data Profile, Data Quality) for the data source. service DataScanService { option (google.api.default_host) = "dataplex.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Creates a dataScan resource. + // Creates a DataScan resource. rpc CreateDataScan(CreateDataScanRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -52,7 +55,7 @@ service DataScanService { }; } - // Update the dataScan resource. + // Updates a DataScan resource. rpc UpdateDataScan(UpdateDataScanRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -66,7 +69,7 @@ service DataScanService { }; } - // Delete the dataScan resource. + // Deletes a DataScan resource. rpc DeleteDataScan(DeleteDataScanRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -79,7 +82,7 @@ service DataScanService { }; } - // Get dataScan resource. + // Gets a DataScan resource. rpc GetDataScan(GetDataScanRequest) returns (DataScan) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/dataScans/*}" @@ -87,7 +90,7 @@ service DataScanService { option (google.api.method_signature) = "name"; } - // Lists dataScans. + // Lists DataScans. rpc ListDataScans(ListDataScansRequest) returns (ListDataScansResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/dataScans" @@ -95,7 +98,7 @@ service DataScanService { option (google.api.method_signature) = "parent"; } - // Run an on demand execution of a DataScan. + // Runs an on-demand execution of a DataScan rpc RunDataScan(RunDataScanRequest) returns (RunDataScanResponse) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/dataScans/*}:run" @@ -104,7 +107,7 @@ service DataScanService { option (google.api.method_signature) = "name"; } - // Get DataScanJob resource. + // Gets a DataScanJob resource. rpc GetDataScanJob(GetDataScanJobRequest) returns (DataScanJob) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}" @@ -112,7 +115,7 @@ service DataScanService { option (google.api.method_signature) = "name"; } - // Lists DataScanJobs under the given dataScan. + // Lists DataScanJobs under the given DataScan. rpc ListDataScanJobs(ListDataScanJobsRequest) returns (ListDataScanJobsResponse) { option (google.api.http) = { @@ -125,8 +128,8 @@ service DataScanService { // Create dataScan request. message CreateDataScanRequest { // Required. The resource name of the parent location: - // projects/{project}/locations/{location_id} - // where `{project}` refers to a project_id or project_number and + // `projects/{project}/locations/{location_id}` + // where `project` refers to a *project_id* or *project_number* and // `location_id` refers to a GCP region. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -139,6 +142,7 @@ message CreateDataScanRequest { DataScan data_scan = 2 [(google.api.field_behavior) = REQUIRED]; // Required. DataScan identifier. + // // * Must contain only lowercase letters, numbers and hyphens. // * Must start with a letter. // * Must end with a number or a letter. @@ -149,7 +153,8 @@ message CreateDataScanRequest { // Update dataScan request. message UpdateDataScanRequest { - // Required. Update description. + // Required. DataScan resource to be updated. + // // Only fields specified in `update_mask` are updated. DataScan data_scan = 1 [(google.api.field_behavior) = REQUIRED]; @@ -161,8 +166,8 @@ message UpdateDataScanRequest { // Delete dataScan request. message DeleteDataScanRequest { // Required. The resource name of the dataScan: - // projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - // where `{project}` refers to a project_id or project_number and + // `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + // where `project` refers to a *project_id* or *project_number* and // `location_id` refers to a GCP region. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -174,12 +179,12 @@ message DeleteDataScanRequest { // Get dataScan request. message GetDataScanRequest { - // DataScan views for getting a partial dataScan. + // DataScan view options. enum DataScanView { // The API will default to the `BASIC` view. DATA_SCAN_VIEW_UNSPECIFIED = 0; - // Basic view that does not include spec and result. + // Basic view that does not include *spec* and *result*. BASIC = 1; // Include everything. @@ -187,8 +192,8 @@ message GetDataScanRequest { } // Required. The resource name of the dataScan: - // projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - // where `{project}` refers to a project_id or project_number and + // `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + // where `project` refers to a *project_id* or *project_number* and // `location_id` refers to a GCP region. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -197,15 +202,15 @@ message GetDataScanRequest { } ]; - // Optional. Used to select the subset of DataScan information to return. - // Defaults to `BASIC`. + // Optional. Select the DataScan view to return. Defaults to `BASIC`. DataScanView view = 2 [(google.api.field_behavior) = OPTIONAL]; } // List dataScans request. message ListDataScansRequest { - // Required. projects/{project}/locations/{location_id} - // where `{project}` refers to a project_id or project_number and + // Required. The resource name of the parent location: + // `projects/{project}/locations/{location_id}` + // where `project` refers to a *project_id* or *project_number* and // `location_id` refers to a GCP region. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -228,14 +233,14 @@ message ListDataScansRequest { // Optional. Filter request. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Order by fields (name or create_time) for the result. + // Optional. Order by fields (`name` or `create_time`) for the result. // If not specified, the ordering is undefined. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // List dataScans response. message ListDataScansResponse { - // DataScans (metadata only) under the given parent location. + // DataScans (`BASIC` view only) under the given parent location. repeated DataScan data_scans = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -249,10 +254,11 @@ message ListDataScansResponse { // Run DataScan Request message RunDataScanRequest { // Required. The resource name of the DataScan: - // projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. - // where `{project}` refers to a project_id or project_number and + // `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. + // where `project` refers to a *project_id* or *project_number* and // `location_id` refers to a GCP region. - // Only on-demand DataScans are allowed. + // + // Only **OnDemand** data scans are allowed. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -263,18 +269,18 @@ message RunDataScanRequest { // Run DataScan Response. message RunDataScanResponse { - // DataScanJob created by RunDataScan API. + // DataScanJob created by RunDataScan request. DataScanJob job = 1; } // Get DataScanJob request. message GetDataScanJobRequest { - // DataScanJob views for getting a partial dataScanJob. + // DataScanJob view options. enum DataScanJobView { // The API will default to the `BASIC` view. DATA_SCAN_JOB_VIEW_UNSPECIFIED = 0; - // Basic view that does not include spec and result. + // Basic view that does not include *spec* and *result*. BASIC = 1; // Include everything. @@ -282,8 +288,8 @@ message GetDataScanJobRequest { } // Required. The resource name of the DataScanJob: - // projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id} - // where `{project}` refers to a project_id or project_number and + // `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}` + // where `project` refers to a *project_id* or *project_number* and // `location_id` refers to a GCP region. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -292,16 +298,15 @@ message GetDataScanJobRequest { } ]; - // Optional. Used to select the subset of DataScan information to return. - // Defaults to `BASIC`. + // Optional. Select the DataScanJob view to return. Defaults to `BASIC`. DataScanJobView view = 2 [(google.api.field_behavior) = OPTIONAL]; } // List DataScanJobs request. message ListDataScanJobsRequest { // Required. The resource name of the parent environment: - // projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - // where `{project}` refers to a project_id or project_number and + // `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + // where `project` refers to a *project_id* or *project_number* and // `location_id` refers to a GCP region. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -325,7 +330,7 @@ message ListDataScanJobsRequest { // List DataScanJobs response. message ListDataScanJobsResponse { - // DataScanJobs (metadata only) under a given dataScan. + // DataScanJobs (`BASIC` view only) under a given dataScan. repeated DataScanJob data_scan_jobs = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -352,16 +357,21 @@ message DataScan { // DataScan execution settings. message ExecutionSpec { // Optional. Spec related to how often and when a scan should be triggered. - // If not specified, the default is OnDemand, which means the scan will not - // run until the user calls RunDataScan API. + // + // If not specified, the default is `OnDemand`, which means the scan will + // not run until the user calls `RunDataScan` API. Trigger trigger = 1 [(google.api.field_behavior) = OPTIONAL]; - // If not specified, run a data scan on all data in the table. - // The incremental is immutable, which means once the field is set, - // it cannot be unset, and vice versa. + // Spec related to incremental scan of the data + // + // When an option is selected for incremental scan, it cannot be unset or + // changed. If not specified, a data scan will run for all data in the + // table. oneof incremental { - // Immutable. The unnested field (Date or Timestamp) that contains values - // that monotonically increase over time. + // Immutable. The unnested field (of type *Date* or *Timestamp*) that + // contains values which monotonically increase over time. + // + // If not specified, a data scan will run for all data in the table. string field = 100 [(google.api.field_behavior) = IMMUTABLE]; } } @@ -376,8 +386,8 @@ message DataScan { } // Output only. The relative resource name of the scan, of the form: - // projects/{project}/locations/{location_id}/dataScans/{datascan_id}. - // where `{project}` refers to a project_id or project_number and + // `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`, + // where `project` refers to a *project_id* or *project_number* and // `location_id` refers to a GCP region. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -386,10 +396,12 @@ message DataScan { string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Description of the scan. + // // * Must be between 1-1024 characters. string description = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. User friendly display name. + // // * Must be between 1-256 characters. string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -411,7 +423,8 @@ message DataScan { DataSource data = 9 [(google.api.field_behavior) = REQUIRED]; // Optional. DataScan execution settings. - // If not specified, the fields under it will use their default values. + // + // If not specified, the fields in it will use their default values. ExecutionSpec execution_spec = 10 [(google.api.field_behavior) = OPTIONAL]; // Output only. Status of the data scan execution. @@ -444,7 +457,7 @@ message DataScan { } } -// A DataScanJob represents an instance of a data scan. +// A DataScanJob represents an instance of DataScan execution. message DataScanJob { option (google.api.resource) = { type: "dataplex.googleapis.com/DataScanJob" @@ -476,8 +489,8 @@ message DataScanJob { } // Output only. The relative resource name of the DataScanJob, of the form: - // projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}. - // where `{project}` refers to a project_id or project_number and + // `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, + // where `project` refers to a *project_id* or *project_number* and // `location_id` refers to a GCP region. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -526,12 +539,12 @@ message DataScanJob { // The type of DataScan. enum DataScanType { - // The DataScan Type is unspecified. + // The DataScan type is unspecified. DATA_SCAN_TYPE_UNSPECIFIED = 0; - // Data Quality Scan. + // Data Quality scan. DATA_QUALITY = 1; - // Data Profile Scan. + // Data Profile scan. DATA_PROFILE = 2; } diff --git a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.create_data_scan.js b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.create_data_scan.js index c0b23e204105..206953eec977 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.create_data_scan.js +++ b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.create_data_scan.js @@ -30,8 +30,8 @@ function main(parent, dataScan, dataScanId) { */ /** * Required. The resource name of the parent location: - * projects/{project}/locations/{location_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. */ // const parent = 'abc123' diff --git a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.delete_data_scan.js b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.delete_data_scan.js index 1af10b778132..145bb5dcb653 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.delete_data_scan.js +++ b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.delete_data_scan.js @@ -30,8 +30,8 @@ function main(name) { */ /** * Required. The resource name of the dataScan: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. */ // const name = 'abc123' diff --git a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.get_data_scan.js b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.get_data_scan.js index 19c3d68ae98c..92017d0fd34e 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.get_data_scan.js +++ b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.get_data_scan.js @@ -30,14 +30,13 @@ function main(name) { */ /** * Required. The resource name of the dataScan: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. */ // const name = 'abc123' /** - * Optional. Used to select the subset of DataScan information to return. - * Defaults to `BASIC`. + * Optional. Select the DataScan view to return. Defaults to `BASIC`. */ // const view = {} diff --git a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.get_data_scan_job.js b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.get_data_scan_job.js index be0366a563b8..52026dc382df 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.get_data_scan_job.js +++ b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.get_data_scan_job.js @@ -30,14 +30,13 @@ function main(name) { */ /** * Required. The resource name of the DataScanJob: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. */ // const name = 'abc123' /** - * Optional. Used to select the subset of DataScan information to return. - * Defaults to `BASIC`. + * Optional. Select the DataScanJob view to return. Defaults to `BASIC`. */ // const view = {} diff --git a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.list_data_scan_jobs.js b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.list_data_scan_jobs.js index 5b4a422bd646..1535de095a26 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.list_data_scan_jobs.js +++ b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.list_data_scan_jobs.js @@ -30,8 +30,8 @@ function main(parent) { */ /** * Required. The resource name of the parent environment: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. */ // const parent = 'abc123' diff --git a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.list_data_scans.js b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.list_data_scans.js index 1853090a7a7b..fdff3c582450 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.list_data_scans.js +++ b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.list_data_scans.js @@ -29,8 +29,9 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. projects/{project}/locations/{location_id} - * where `{project}` refers to a project_id or project_number and + * Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. */ // const parent = 'abc123' @@ -52,7 +53,7 @@ function main(parent) { */ // const filter = 'abc123' /** - * Optional. Order by fields (name or create_time) for the result. + * Optional. Order by fields (`name` or `create_time`) for the result. * If not specified, the ordering is undefined. */ // const orderBy = 'abc123' diff --git a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.run_data_scan.js b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.run_data_scan.js index ed2556b966da..52afb48d4328 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.run_data_scan.js +++ b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.run_data_scan.js @@ -30,10 +30,10 @@ function main(name) { */ /** * Required. The resource name of the DataScan: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. - * Only on-demand DataScans are allowed. + * Only **OnDemand** data scans are allowed. */ // const name = 'abc123' diff --git a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.update_data_scan.js b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.update_data_scan.js index ebf393bc3f36..b0ca6b3412f9 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.update_data_scan.js +++ b/packages/google-cloud-dataplex/samples/generated/v1/data_scan_service.update_data_scan.js @@ -29,7 +29,7 @@ function main(dataScan, updateMask) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. Update description. + * Required. DataScan resource to be updated. * Only fields specified in `update_mask` are updated. */ // const dataScan = {} diff --git a/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata.google.cloud.dataplex.v1.json b/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata.google.cloud.dataplex.v1.json index b2ab93fc0d50..5745e8e3d53c 100644 --- a/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata.google.cloud.dataplex.v1.json +++ b/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata.google.cloud.dataplex.v1.json @@ -1887,7 +1887,7 @@ "regionTag": "dataplex_v1_generated_DataScanService_CreateDataScan_async", "title": "ContentService createDataScan Sample", "origin": "API_DEFINITION", - "description": " Creates a dataScan resource.", + "description": " Creates a DataScan resource.", "canonical": true, "file": "data_scan_service.create_data_scan.js", "language": "JAVASCRIPT", @@ -1935,7 +1935,7 @@ "regionTag": "dataplex_v1_generated_DataScanService_UpdateDataScan_async", "title": "ContentService updateDataScan Sample", "origin": "API_DEFINITION", - "description": " Update the dataScan resource.", + "description": " Updates a DataScan resource.", "canonical": true, "file": "data_scan_service.update_data_scan.js", "language": "JAVASCRIPT", @@ -1979,7 +1979,7 @@ "regionTag": "dataplex_v1_generated_DataScanService_DeleteDataScan_async", "title": "ContentService deleteDataScan Sample", "origin": "API_DEFINITION", - "description": " Delete the dataScan resource.", + "description": " Deletes a DataScan resource.", "canonical": true, "file": "data_scan_service.delete_data_scan.js", "language": "JAVASCRIPT", @@ -2019,14 +2019,14 @@ "regionTag": "dataplex_v1_generated_DataScanService_GetDataScan_async", "title": "ContentService getDataScan Sample", "origin": "API_DEFINITION", - "description": " Get dataScan resource.", + "description": " Gets a DataScan resource.", "canonical": true, "file": "data_scan_service.get_data_scan.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 61, + "end": 60, "type": "FULL" } ], @@ -2063,14 +2063,14 @@ "regionTag": "dataplex_v1_generated_DataScanService_ListDataScans_async", "title": "ContentService listDataScans Sample", "origin": "API_DEFINITION", - "description": " Lists dataScans.", + "description": " Lists DataScans.", "canonical": true, "file": "data_scan_service.list_data_scans.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 79, + "end": 80, "type": "FULL" } ], @@ -2119,7 +2119,7 @@ "regionTag": "dataplex_v1_generated_DataScanService_RunDataScan_async", "title": "ContentService runDataScan Sample", "origin": "API_DEFINITION", - "description": " Run an on demand execution of a DataScan.", + "description": " Runs an on-demand execution of a DataScan", "canonical": true, "file": "data_scan_service.run_data_scan.js", "language": "JAVASCRIPT", @@ -2159,14 +2159,14 @@ "regionTag": "dataplex_v1_generated_DataScanService_GetDataScanJob_async", "title": "ContentService getDataScanJob Sample", "origin": "API_DEFINITION", - "description": " Get DataScanJob resource.", + "description": " Gets a DataScanJob resource.", "canonical": true, "file": "data_scan_service.get_data_scan_job.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 61, + "end": 60, "type": "FULL" } ], @@ -2203,7 +2203,7 @@ "regionTag": "dataplex_v1_generated_DataScanService_ListDataScanJobs_async", "title": "ContentService listDataScanJobs Sample", "origin": "API_DEFINITION", - "description": " Lists DataScanJobs under the given dataScan.", + "description": " Lists DataScanJobs under the given DataScan.", "canonical": true, "file": "data_scan_service.list_data_scan_jobs.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-dataplex/src/v1/data_scan_service_client.ts b/packages/google-cloud-dataplex/src/v1/data_scan_service_client.ts index 1994b48ca929..b8777c4b049e 100644 --- a/packages/google-cloud-dataplex/src/v1/data_scan_service_client.ts +++ b/packages/google-cloud-dataplex/src/v1/data_scan_service_client.ts @@ -42,6 +42,9 @@ import * as gapicConfig from './data_scan_service_client_config.json'; const version = require('../../../package.json').version; /** + * DataScanService manages DataScan resources which can be configured to run + * various types of data scanning workload and generate enriched metadata (e.g. + * Data Profile, Data Quality) for the data source. * @class * @memberof v1 */ @@ -586,18 +589,17 @@ export class DataScanServiceClient { // -- Service calls -- // ------------------- /** - * Get dataScan resource. + * Gets a DataScan resource. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. The resource name of the dataScan: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {google.cloud.dataplex.v1.GetDataScanRequest.DataScanView} [request.view] - * Optional. Used to select the subset of DataScan information to return. - * Defaults to `BASIC`. + * Optional. Select the DataScan view to return. Defaults to `BASIC`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -677,16 +679,17 @@ export class DataScanServiceClient { return this.innerApiCalls.getDataScan(request, options, callback); } /** - * Run an on demand execution of a DataScan. + * Runs an on-demand execution of a DataScan * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. The resource name of the DataScan: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. - * Only on-demand DataScans are allowed. + * + * Only **OnDemand** data scans are allowed. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -766,18 +769,17 @@ export class DataScanServiceClient { return this.innerApiCalls.runDataScan(request, options, callback); } /** - * Get DataScanJob resource. + * Gets a DataScanJob resource. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. The resource name of the DataScanJob: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView} [request.view] - * Optional. Used to select the subset of DataScan information to return. - * Defaults to `BASIC`. + * Optional. Select the DataScanJob view to return. Defaults to `BASIC`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -858,19 +860,20 @@ export class DataScanServiceClient { } /** - * Creates a dataScan resource. + * Creates a DataScan resource. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the parent location: - * projects/{project}/locations/{location_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {google.cloud.dataplex.v1.DataScan} request.dataScan * Required. DataScan resource. * @param {string} request.dataScanId * Required. DataScan identifier. + * * * Must contain only lowercase letters, numbers and hyphens. * * Must start with a letter. * * Must end with a number or a letter. @@ -1008,12 +1011,13 @@ export class DataScanServiceClient { >; } /** - * Update the dataScan resource. + * Updates a DataScan resource. * * @param {Object} request * The request object that will be sent. * @param {google.cloud.dataplex.v1.DataScan} request.dataScan - * Required. Update description. + * Required. DataScan resource to be updated. + * * Only fields specified in `update_mask` are updated. * @param {google.protobuf.FieldMask} request.updateMask * Required. Mask of fields to update. @@ -1149,14 +1153,14 @@ export class DataScanServiceClient { >; } /** - * Delete the dataScan resource. + * Deletes a DataScan resource. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. The resource name of the dataScan: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -1290,13 +1294,14 @@ export class DataScanServiceClient { >; } /** - * Lists dataScans. + * Lists DataScans. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. projects/{project}/locations/{location_id} - * where `{project}` refers to a project_id or project_number and + * Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {number} [request.pageSize] * Optional. Maximum number of dataScans to return. The service may return @@ -1310,7 +1315,7 @@ export class DataScanServiceClient { * @param {string} [request.filter] * Optional. Filter request. * @param {string} [request.orderBy] - * Optional. Order by fields (name or create_time) for the result. + * Optional. Order by fields (`name` or `create_time`) for the result. * If not specified, the ordering is undefined. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -1399,8 +1404,9 @@ export class DataScanServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. projects/{project}/locations/{location_id} - * where `{project}` refers to a project_id or project_number and + * Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {number} [request.pageSize] * Optional. Maximum number of dataScans to return. The service may return @@ -1414,7 +1420,7 @@ export class DataScanServiceClient { * @param {string} [request.filter] * Optional. Filter request. * @param {string} [request.orderBy] - * Optional. Order by fields (name or create_time) for the result. + * Optional. Order by fields (`name` or `create_time`) for the result. * If not specified, the ordering is undefined. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -1457,8 +1463,9 @@ export class DataScanServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. projects/{project}/locations/{location_id} - * where `{project}` refers to a project_id or project_number and + * Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {number} [request.pageSize] * Optional. Maximum number of dataScans to return. The service may return @@ -1472,7 +1479,7 @@ export class DataScanServiceClient { * @param {string} [request.filter] * Optional. Filter request. * @param {string} [request.orderBy] - * Optional. Order by fields (name or create_time) for the result. + * Optional. Order by fields (`name` or `create_time`) for the result. * If not specified, the ordering is undefined. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -1509,14 +1516,14 @@ export class DataScanServiceClient { ) as AsyncIterable; } /** - * Lists DataScanJobs under the given dataScan. + * Lists DataScanJobs under the given DataScan. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the parent environment: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {number} [request.pageSize] * Optional. Maximum number of DataScanJobs to return. The service may return @@ -1622,8 +1629,8 @@ export class DataScanServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the parent environment: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {number} [request.pageSize] * Optional. Maximum number of DataScanJobs to return. The service may return @@ -1677,8 +1684,8 @@ export class DataScanServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the parent environment: - * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} - * where `{project}` refers to a project_id or project_number and + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a GCP region. * @param {number} [request.pageSize] * Optional. Maximum number of DataScanJobs to return. The service may return From 772f591c2ada4aec8d17a50c97f7a6be8240bb07 Mon Sep 17 00:00:00 2001 From: "owlbot-bootstrapper[bot]" <104649659+owlbot-bootstrapper[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 17:15:33 -0800 Subject: [PATCH 08/38] feat: add initial files for google.cloud.datacatalog.lineage.v1 (#3831) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: initial commit * feat: initial generation of library Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFjYXRhbG9nLWxpbmVhZ2UvLk93bEJvdC55YW1sIiwiaCI6ImNkYjY2NDU1MzgzOTNlOGIzNDdjMWY2YWRkMmMxYmI4MGNmYzU4ZTYifQ== * Owl Bot copied code from https://github.com/googleapis/googleapis-gen/commit/cdb6645538393e8b347c1f6add2c1bb80cfc58e6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Owl Bot copied code from https://github.com/googleapis/googleapis-gen/commit/cdb6645538393e8b347c1f6add2c1bb80cfc58e6 * Owl Bot copied code from https://github.com/googleapis/googleapis-gen/commit/cdb6645538393e8b347c1f6add2c1bb80cfc58e6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: add quickstart test --------- Co-authored-by: Owlbot Bootstrapper Co-authored-by: Owl Bot Co-authored-by: Benjamin E. Coe Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> Co-authored-by: Sofia Leon --- .../.OwlBot.yaml | 17 + .../.eslintignore | 7 + .../.eslintrc.json | 3 + .../.gitattributes | 4 + .../.gitignore | 14 + .../.jsdoc.js | 55 + .../.mocharc.js | 29 + .../google-cloud-datacatalog-lineage/.nycrc | 24 + .../.prettierignore | 6 + .../.prettierrc.js | 17 + .../.repo-metadata.json | 16 + .../CODE_OF_CONDUCT.md | 94 + .../CONTRIBUTING.md | 76 + .../google-cloud-datacatalog-lineage/LICENSE | 202 + .../README.md | 204 + .../linkinator.config.json | 16 + .../package.json | 71 + .../datacatalog/lineage/v1/lineage.proto | 879 + .../protos/protos.d.ts | 9667 ++++++ .../protos/protos.js | 24347 ++++++++++++++++ .../protos/protos.json | 2549 ++ .../samples/README.md | 356 + .../v1/lineage.batch_search_link_processes.js | 85 + .../v1/lineage.create_lineage_event.js | 72 + .../generated/v1/lineage.create_process.js | 73 + .../generated/v1/lineage.create_run.js | 72 + .../v1/lineage.delete_lineage_event.js | 66 + .../generated/v1/lineage.delete_process.js | 67 + .../generated/v1/lineage.delete_run.js | 67 + .../generated/v1/lineage.get_lineage_event.js | 61 + .../generated/v1/lineage.get_process.js | 61 + .../samples/generated/v1/lineage.get_run.js | 61 + .../v1/lineage.list_lineage_events.js | 78 + .../generated/v1/lineage.list_processes.js | 78 + .../samples/generated/v1/lineage.list_runs.js | 77 + .../generated/v1/lineage.search_links.js | 88 + .../generated/v1/lineage.update_process.js | 71 + .../generated/v1/lineage.update_run.js | 69 + ...a.google.cloud.datacatalog.lineage.v1.json | 755 + .../samples/package.json | 24 + .../samples/quickstart.js | 76 + .../samples/test/quickstart.js | 42 + .../src/index.ts | 27 + .../src/v1/gapic_metadata.json | 203 + .../src/v1/index.ts | 19 + .../src/v1/lineage_client.ts | 3200 ++ .../src/v1/lineage_client_config.json | 109 + .../src/v1/lineage_proto_list.json | 3 + .../system-test/fixtures/sample/src/index.js | 26 + .../system-test/fixtures/sample/src/index.ts | 32 + .../system-test/install.ts | 51 + .../test/gapic_lineage_v1.ts | 4115 +++ .../tsconfig.json | 19 + .../webpack.config.js | 64 + release-please-config.json | 3 +- 55 files changed, 48566 insertions(+), 1 deletion(-) create mode 100644 packages/google-cloud-datacatalog-lineage/.OwlBot.yaml create mode 100644 packages/google-cloud-datacatalog-lineage/.eslintignore create mode 100644 packages/google-cloud-datacatalog-lineage/.eslintrc.json create mode 100644 packages/google-cloud-datacatalog-lineage/.gitattributes create mode 100644 packages/google-cloud-datacatalog-lineage/.gitignore create mode 100644 packages/google-cloud-datacatalog-lineage/.jsdoc.js create mode 100644 packages/google-cloud-datacatalog-lineage/.mocharc.js create mode 100644 packages/google-cloud-datacatalog-lineage/.nycrc create mode 100644 packages/google-cloud-datacatalog-lineage/.prettierignore create mode 100644 packages/google-cloud-datacatalog-lineage/.prettierrc.js create mode 100644 packages/google-cloud-datacatalog-lineage/.repo-metadata.json create mode 100644 packages/google-cloud-datacatalog-lineage/CODE_OF_CONDUCT.md create mode 100644 packages/google-cloud-datacatalog-lineage/CONTRIBUTING.md create mode 100644 packages/google-cloud-datacatalog-lineage/LICENSE create mode 100644 packages/google-cloud-datacatalog-lineage/README.md create mode 100644 packages/google-cloud-datacatalog-lineage/linkinator.config.json create mode 100644 packages/google-cloud-datacatalog-lineage/package.json create mode 100644 packages/google-cloud-datacatalog-lineage/protos/google/cloud/datacatalog/lineage/v1/lineage.proto create mode 100644 packages/google-cloud-datacatalog-lineage/protos/protos.d.ts create mode 100644 packages/google-cloud-datacatalog-lineage/protos/protos.js create mode 100644 packages/google-cloud-datacatalog-lineage/protos/protos.json create mode 100644 packages/google-cloud-datacatalog-lineage/samples/README.md create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.batch_search_link_processes.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_lineage_event.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_process.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_run.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_lineage_event.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_process.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_run.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_lineage_event.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_process.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_run.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_lineage_events.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_processes.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_runs.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.search_links.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_process.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_run.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata.google.cloud.datacatalog.lineage.v1.json create mode 100644 packages/google-cloud-datacatalog-lineage/samples/package.json create mode 100644 packages/google-cloud-datacatalog-lineage/samples/quickstart.js create mode 100644 packages/google-cloud-datacatalog-lineage/samples/test/quickstart.js create mode 100644 packages/google-cloud-datacatalog-lineage/src/index.ts create mode 100644 packages/google-cloud-datacatalog-lineage/src/v1/gapic_metadata.json create mode 100644 packages/google-cloud-datacatalog-lineage/src/v1/index.ts create mode 100644 packages/google-cloud-datacatalog-lineage/src/v1/lineage_client.ts create mode 100644 packages/google-cloud-datacatalog-lineage/src/v1/lineage_client_config.json create mode 100644 packages/google-cloud-datacatalog-lineage/src/v1/lineage_proto_list.json create mode 100644 packages/google-cloud-datacatalog-lineage/system-test/fixtures/sample/src/index.js create mode 100644 packages/google-cloud-datacatalog-lineage/system-test/fixtures/sample/src/index.ts create mode 100644 packages/google-cloud-datacatalog-lineage/system-test/install.ts create mode 100644 packages/google-cloud-datacatalog-lineage/test/gapic_lineage_v1.ts create mode 100644 packages/google-cloud-datacatalog-lineage/tsconfig.json create mode 100644 packages/google-cloud-datacatalog-lineage/webpack.config.js diff --git a/packages/google-cloud-datacatalog-lineage/.OwlBot.yaml b/packages/google-cloud-datacatalog-lineage/.OwlBot.yaml new file mode 100644 index 000000000000..81847d1b2ee2 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.OwlBot.yaml @@ -0,0 +1,17 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +deep-copy-regex: + - source: /google/cloud/datacatalog/lineage/(.*)/.*-nodejs + dest: /owl-bot-staging/google-cloud-datacatalog-lineage/$1 \ No newline at end of file diff --git a/packages/google-cloud-datacatalog-lineage/.eslintignore b/packages/google-cloud-datacatalog-lineage/.eslintignore new file mode 100644 index 000000000000..ea5b04aebe68 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.eslintignore @@ -0,0 +1,7 @@ +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ +samples/generated/ diff --git a/packages/google-cloud-datacatalog-lineage/.eslintrc.json b/packages/google-cloud-datacatalog-lineage/.eslintrc.json new file mode 100644 index 000000000000..782153495464 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/packages/google-cloud-datacatalog-lineage/.gitattributes b/packages/google-cloud-datacatalog-lineage/.gitattributes new file mode 100644 index 000000000000..33739cb74e44 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.gitattributes @@ -0,0 +1,4 @@ +*.ts text eol=lf +*.js text eol=lf +protos/* linguist-generated +**/api-extractor.json linguist-language=JSON-with-Comments diff --git a/packages/google-cloud-datacatalog-lineage/.gitignore b/packages/google-cloud-datacatalog-lineage/.gitignore new file mode 100644 index 000000000000..5d32b23782f3 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.gitignore @@ -0,0 +1,14 @@ +**/*.log +**/node_modules +.coverage +coverage +.nyc_output +docs/ +out/ +build/ +system-test/secrets.js +system-test/*key.json +*.lock +.DS_Store +package-lock.json +__pycache__ diff --git a/packages/google-cloud-datacatalog-lineage/.jsdoc.js b/packages/google-cloud-datacatalog-lineage/.jsdoc.js new file mode 100644 index 000000000000..e70d7e9f5739 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.jsdoc.js @@ -0,0 +1,55 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +'use strict'; + +module.exports = { + opts: { + readme: './README.md', + package: './package.json', + template: './node_modules/jsdoc-fresh', + recurse: true, + verbose: true, + destination: './docs/' + }, + plugins: [ + 'plugins/markdown', + 'jsdoc-region-tag' + ], + source: { + excludePattern: '(^|\\/|\\\\)[._]', + include: [ + 'build/src', + 'protos' + ], + includePattern: '\\.js$' + }, + templates: { + copyright: 'Copyright 2023 Google LLC', + includeDate: false, + sourceFiles: false, + systemName: '@google-cloud/lineage', + theme: 'lumen', + default: { + outputSourceFiles: false + } + }, + markdown: { + idInHeadings: true + } +}; diff --git a/packages/google-cloud-datacatalog-lineage/.mocharc.js b/packages/google-cloud-datacatalog-lineage/.mocharc.js new file mode 100644 index 000000000000..49e7e228701d --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.mocharc.js @@ -0,0 +1,29 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +const config = { + "enable-source-maps": true, + "throw-deprecation": true, + "timeout": 10000, + "recursive": true +} +if (process.env.MOCHA_THROW_DEPRECATION === 'false') { + delete config['throw-deprecation']; +} +if (process.env.MOCHA_REPORTER) { + config.reporter = process.env.MOCHA_REPORTER; +} +if (process.env.MOCHA_REPORTER_OUTPUT) { + config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`; +} +module.exports = config diff --git a/packages/google-cloud-datacatalog-lineage/.nycrc b/packages/google-cloud-datacatalog-lineage/.nycrc new file mode 100644 index 000000000000..b18d5472b62b --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.nycrc @@ -0,0 +1,24 @@ +{ + "report-dir": "./.coverage", + "reporter": ["text", "lcov"], + "exclude": [ + "**/*-test", + "**/.coverage", + "**/apis", + "**/benchmark", + "**/conformance", + "**/docs", + "**/samples", + "**/scripts", + "**/protos", + "**/test", + "**/*.d.ts", + ".jsdoc.js", + "**/.jsdoc.js", + "karma.conf.js", + "webpack-tests.config.js", + "webpack.config.js" + ], + "exclude-after-remap": false, + "all": true +} diff --git a/packages/google-cloud-datacatalog-lineage/.prettierignore b/packages/google-cloud-datacatalog-lineage/.prettierignore new file mode 100644 index 000000000000..9340ad9b86d3 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.prettierignore @@ -0,0 +1,6 @@ +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ diff --git a/packages/google-cloud-datacatalog-lineage/.prettierrc.js b/packages/google-cloud-datacatalog-lineage/.prettierrc.js new file mode 100644 index 000000000000..1e6cec783e40 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.prettierrc.js @@ -0,0 +1,17 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} diff --git a/packages/google-cloud-datacatalog-lineage/.repo-metadata.json b/packages/google-cloud-datacatalog-lineage/.repo-metadata.json new file mode 100644 index 000000000000..38033573d3e1 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "name": "lineage", + "name_pretty": "Data Lineage API", + "product_documentation": "", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/lineage/latest", + "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues", + "release_level": "beta", + "language": "nodejs", + "repo": "googleapis/google-cloud-node", + "distribution_name": "@google-cloud/lineage", + "api_id": "datalineage.googleapis.com", + "default_version": "v1", + "requires_billing": true, + "library_type": "GAPIC_AUTO" +} + diff --git a/packages/google-cloud-datacatalog-lineage/CODE_OF_CONDUCT.md b/packages/google-cloud-datacatalog-lineage/CODE_OF_CONDUCT.md new file mode 100644 index 000000000000..2add2547a812 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/CODE_OF_CONDUCT.md @@ -0,0 +1,94 @@ + +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal appearance, +race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, or to ban temporarily or permanently any +contributor for other behaviors that they deem inappropriate, threatening, +offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when the Project +Steward has a reasonable belief that an individual's behavior may have a +negative impact on the project or its community. + +## Conflict Resolution + +We do not believe that all conflict is bad; healthy debate and disagreement +often yield positive results. However, it is never okay to be disrespectful or +to engage in behavior that violates the project’s code of conduct. + +If you see someone violating the code of conduct, you are encouraged to address +the behavior directly with those involved. Many issues can be resolved quickly +and easily, and this gives people more control over the outcome of their +dispute. If you are unable to resolve the matter for any reason, or if the +behavior is threatening or harassing, report it. We are dedicated to providing +an environment where participants feel welcome and safe. + +Reports should be directed to *googleapis-stewards@google.com*, the +Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to +receive and address reported violations of the code of conduct. They will then +work with a committee consisting of representatives from the Open Source +Programs Office and the Google Open Source Strategy team. If for any reason you +are uncomfortable reaching out to the Project Steward, please email +opensource@google.com. + +We will investigate every complaint, but you may not receive a direct response. +We will use our discretion in determining when and how to follow up on reported +incidents, which may range from not taking action to permanent expulsion from +the project and project-sponsored spaces. We will notify the accused of the +report and provide them an opportunity to discuss it before any action is taken. +The identity of the reporter will be omitted from the details of the report +supplied to the accused. In potentially harmful situations, such as ongoing +harassment or threats to anyone's safety, we may take action without notice. + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/packages/google-cloud-datacatalog-lineage/CONTRIBUTING.md b/packages/google-cloud-datacatalog-lineage/CONTRIBUTING.md new file mode 100644 index 000000000000..8ea89e46ffd4 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/CONTRIBUTING.md @@ -0,0 +1,76 @@ +# How to become a contributor and submit your own code + +**Table of contents** + +* [Contributor License Agreements](#contributor-license-agreements) +* [Contributing a patch](#contributing-a-patch) +* [Running the tests](#running-the-tests) +* [Releasing the library](#releasing-the-library) + +## Contributor License Agreements + +We'd love to accept your sample apps and patches! Before we can take them, we +have to jump a couple of legal hurdles. + +Please fill out either the individual or corporate Contributor License Agreement +(CLA). + + * If you are an individual writing original source code and you're sure you + own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual). + * If you work for a company that wants to allow you to contribute your work, + then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate). + +Follow either of the two links above to access the appropriate CLA and +instructions for how to sign and return it. Once we receive it, we'll be able to +accept your pull requests. + +## Contributing A Patch + +1. Submit an issue describing your proposed change to the repo in question. +1. The repo owner will respond to your issue promptly. +1. If your proposed change is accepted, and you haven't already done so, sign a + Contributor License Agreement (see details above). +1. Fork the desired repo, develop and test your code changes. +1. Ensure that your code adheres to the existing style in the code to which + you are contributing. +1. Ensure that your code has an appropriate set of tests which all pass. +1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling. +1. Submit a pull request. + +### Before you begin + +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Data Lineage API API][enable_api]. +1. [Set up authentication with a service account][auth] so you can access the + API from your local workstation. + + +## Running the tests + +1. [Prepare your environment for Node.js setup][setup]. + +1. Install dependencies: + + npm install + +1. Run the tests: + + # Run unit tests. + npm test + + # Run sample integration tests. + npm run samples-test + + # Run all system tests. + npm run system-test + +1. Lint (and maybe fix) any changes: + + npm run fix + +[setup]: https://cloud.google.com/nodejs/docs/setup +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=datalineage.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file diff --git a/packages/google-cloud-datacatalog-lineage/LICENSE b/packages/google-cloud-datacatalog-lineage/LICENSE new file mode 100644 index 000000000000..d64569567334 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/google-cloud-datacatalog-lineage/README.md b/packages/google-cloud-datacatalog-lineage/README.md new file mode 100644 index 000000000000..176d5cb0f962 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/README.md @@ -0,0 +1,204 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Data Lineage API: Node.js Client](https://github.com/googleapis/google-cloud-node) + +[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![npm version](https://img.shields.io/npm/v/@google-cloud/lineage.svg)](https://www.npmjs.org/package/@google-cloud/lineage) + + + + +Data Lineage API client for Node.js + + +A comprehensive list of changes in each version may be found in +[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datacatalog-lineage/CHANGELOG.md). + +* [Data Lineage API Node.js Client API Reference][client-docs] + +* [github.com/googleapis/google-cloud-node/packages/google-cloud-datacatalog-lineage](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datacatalog-lineage) + +Read more about the client libraries for Cloud APIs, including the older +Google APIs Client Libraries, in [Client Libraries Explained][explained]. + +[explained]: https://cloud.google.com/apis/docs/client-libraries-explained + +**Table of contents:** + + +* [Quickstart](#quickstart) + * [Before you begin](#before-you-begin) + * [Installing the client library](#installing-the-client-library) + * [Using the client library](#using-the-client-library) +* [Samples](#samples) +* [Versioning](#versioning) +* [Contributing](#contributing) +* [License](#license) + +## Quickstart + +### Before you begin + +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Data Lineage API API][enable_api]. +1. [Set up authentication with a service account][auth] so you can access the + API from your local workstation. + +### Installing the client library + +```bash +npm install @google-cloud/lineage +``` + + +### Using the client library + +```javascript +/** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ +/** + * Required. The name of the project and its location that owns this + * collection of processes. + */ +// const parent = 'abc123' +/** + * The maximum number of processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + */ +// const pageSize = 1234 +/** + * The page token received from a previous `ListProcesses` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + */ +// const pageToken = 'abc123' + +// Imports the Lineage library +const {LineageClient} = require('@google-cloud/lineage').v1; + +// Instantiates a client +const lineageClient = new LineageClient(); + +async function callListProcesses() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await lineageClient.listProcessesAsync(request); + for await (const response of iterable) { + console.log(response); + } +} + +callListProcesses(); + +``` + + + +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| Lineage.batch_search_link_processes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.batch_search_link_processes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.batch_search_link_processes.js,samples/README.md) | +| Lineage.create_lineage_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_lineage_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_lineage_event.js,samples/README.md) | +| Lineage.create_process | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_process.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_process.js,samples/README.md) | +| Lineage.create_run | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_run.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_run.js,samples/README.md) | +| Lineage.delete_lineage_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_lineage_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_lineage_event.js,samples/README.md) | +| Lineage.delete_process | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_process.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_process.js,samples/README.md) | +| Lineage.delete_run | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_run.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_run.js,samples/README.md) | +| Lineage.get_lineage_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_lineage_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_lineage_event.js,samples/README.md) | +| Lineage.get_process | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_process.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_process.js,samples/README.md) | +| Lineage.get_run | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_run.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_run.js,samples/README.md) | +| Lineage.list_lineage_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_lineage_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_lineage_events.js,samples/README.md) | +| Lineage.list_processes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_processes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_processes.js,samples/README.md) | +| Lineage.list_runs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_runs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_runs.js,samples/README.md) | +| Lineage.search_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.search_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.search_links.js,samples/README.md) | +| Lineage.update_process | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_process.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_process.js,samples/README.md) | +| Lineage.update_run | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_run.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_run.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/quickstart.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/test/quickstart.js,samples/README.md) | + + + +The [Data Lineage API Node.js Client API Reference][client-docs] documentation +also contains samples. + +## Supported Node.js Versions + +Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). +Libraries are compatible with all current _active_ and _maintenance_ versions of +Node.js. +If you are using an end-of-life version of Node.js, we recommend that you update +as soon as possible to an actively supported LTS version. + +Google's client libraries support legacy versions of Node.js runtimes on a +best-efforts basis with the following warnings: + +* Legacy versions are not tested in continuous integration. +* Some security patches and features cannot be backported. +* Dependencies cannot be kept up-to-date. + +Client libraries targeting some end-of-life versions of Node.js are available, and +can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). +The dist-tags follow the naming convention `legacy-(version)`. +For example, `npm install @google-cloud/lineage@legacy-8` installs client libraries +for versions compatible with Node.js 8. + +## Versioning + +This library follows [Semantic Versioning](http://semver.org/). + + + + +This library is considered to be in **beta**. This means it is expected to be +mostly stable while we work toward a general availability release; however, +complete stability is not guaranteed. We will address issues and requests +against beta libraries with a high priority. + + + + + +More Information: [Google Cloud Platform Launch Stages][launch_stages] + +[launch_stages]: https://cloud.google.com/terms/launch-stages + +## Contributing + +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md). + +Please note that this `README.md`, the `samples/README.md`, +and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) +are generated from a central template. To edit one of these files, make an edit +to its templates in +[directory](https://github.com/googleapis/synthtool). + +## License + +Apache Version 2.0 + +See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) + +[client-docs]: https://cloud.google.com/nodejs/docs/reference/lineage/latest + +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=datalineage.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started diff --git a/packages/google-cloud-datacatalog-lineage/linkinator.config.json b/packages/google-cloud-datacatalog-lineage/linkinator.config.json new file mode 100644 index 000000000000..befd23c86335 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/linkinator.config.json @@ -0,0 +1,16 @@ +{ + "recurse": true, + "skip": [ + "https://codecov.io/gh/googleapis/", + "www.googleapis.com", + "img.shields.io", + "https://console.cloud.google.com/cloudshell", + "https://support.google.com" + ], + "silent": true, + "concurrency": 5, + "retry": true, + "retryErrors": true, + "retryErrorsCount": 5, + "retryErrorsJitter": 3000 +} diff --git a/packages/google-cloud-datacatalog-lineage/package.json b/packages/google-cloud-datacatalog-lineage/package.json new file mode 100644 index 000000000000..fd56f0d00c8a --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/package.json @@ -0,0 +1,71 @@ +{ + "name": "@google-cloud/lineage", + "version": "0.0.0", + "description": "Data Lineage API client for Node.js", + "repository": { + "type": "git", + "url": "https://github.com/googleapis/google-cloud-node.git", + "directory": "packages/google-cloud-datacatalog-lineage" + }, + "license": "Apache-2.0", + "author": "Google LLC", + "main": "build/src/index.js", + "files": [ + "build/src", + "build/protos" + ], + "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datacatalog-lineage", + "keywords": [ + "google apis client", + "google api client", + "google apis", + "google api", + "google", + "google cloud platform", + "google cloud", + "cloud", + "google lineage", + "lineage", + "Data Lineage API" + ], + "scripts": { + "clean": "gts clean", + "compile": "tsc -p . && cp -r protos build/", + "compile-protos": "compileProtos src", + "docs": "jsdoc -c .jsdoc.js", + "predocs-test": "npm run docs", + "docs-test": "linkinator docs", + "fix": "gts fix", + "lint": "gts check", + "prepare": "npm run compile-protos && npm run compile", + "system-test": "npm run compile && c8 mocha build/system-test", + "test": "c8 mocha build/test", + "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", + "prelint": "cd samples; npm link ../; npm i" + }, + "dependencies": { + "google-gax": "^3.5.2" + }, + "devDependencies": { + "@types/mocha": "^9.0.0", + "@types/node": "^18.0.0", + "@types/sinon": "^10.0.0", + "c8": "^7.3.5", + "gts": "^3.1.0", + "jsdoc": "^4.0.0", + "jsdoc-fresh": "^2.0.0", + "jsdoc-region-tag": "^2.0.0", + "linkinator": "^4.0.0", + "mocha": "^9.2.2", + "null-loader": "^4.0.1", + "pack-n-play": "^1.0.0-2", + "sinon": "^14.0.0", + "ts-loader": "^9.0.0", + "typescript": "^4.6.4", + "webpack": "^5.9.0", + "webpack-cli": "^4.2.0" + }, + "engines": { + "node": ">=12.0.0" + } +} diff --git a/packages/google-cloud-datacatalog-lineage/protos/google/cloud/datacatalog/lineage/v1/lineage.proto b/packages/google-cloud-datacatalog-lineage/protos/google/cloud/datacatalog/lineage/v1/lineage.proto new file mode 100644 index 000000000000..5569ff68865f --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/protos/google/cloud/datacatalog/lineage/v1/lineage.proto @@ -0,0 +1,879 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.datacatalog.lineage.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DataCatalog.Lineage.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/lineage/v1;lineage"; +option java_multiple_files = true; +option java_outer_classname = "LineageProto"; +option java_package = "com.google.cloud.datacatalog.lineage.v1"; +option php_namespace = "Google\\Cloud\\DataCatalog\\Lineage\\V1"; +option ruby_package = "Google::Cloud::DataCatalog::Lineage::V1"; + +// Lineage is used to track data flows between assets over time. You can +// create [LineageEvents][google.cloud.datacatalog.lineage.v1.LineageEvent] +// to record lineage between multiple sources and a single target, for +// example, when table data is based on data from multiple tables. +service Lineage { + option (google.api.default_host) = "datalineage.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a new process. + rpc CreateProcess(CreateProcessRequest) returns (Process) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/processes" + body: "process" + }; + option (google.api.method_signature) = "parent,process"; + } + + // Updates a process. + rpc UpdateProcess(UpdateProcessRequest) returns (Process) { + option (google.api.http) = { + patch: "/v1/{process.name=projects/*/locations/*/processes/*}" + body: "process" + }; + option (google.api.method_signature) = "process,update_mask"; + } + + // Gets the details of the specified process. + rpc GetProcess(GetProcessRequest) returns (Process) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/processes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List processes in the given project and location. List order is descending + // by insertion time. + rpc ListProcesses(ListProcessesRequest) returns (ListProcessesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/processes" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes the process with the specified name. + rpc DeleteProcess(DeleteProcessRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/processes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.datacatalog.lineage.v1.OperationMetadata" + }; + } + + // Creates a new run. + rpc CreateRun(CreateRunRequest) returns (Run) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/processes/*}/runs" + body: "run" + }; + option (google.api.method_signature) = "parent,run"; + } + + // Updates a run. + rpc UpdateRun(UpdateRunRequest) returns (Run) { + option (google.api.http) = { + patch: "/v1/{run.name=projects/*/locations/*/processes/*/runs/*}" + body: "run" + }; + option (google.api.method_signature) = "run,update_mask"; + } + + // Gets the details of the specified run. + rpc GetRun(GetRunRequest) returns (Run) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/processes/*/runs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists runs in the given project and location. List order is descending by + // `start_time`. + rpc ListRuns(ListRunsRequest) returns (ListRunsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/processes/*}/runs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes the run with the specified name. + rpc DeleteRun(DeleteRunRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/processes/*/runs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.datacatalog.lineage.v1.OperationMetadata" + }; + } + + // Creates a new lineage event. + rpc CreateLineageEvent(CreateLineageEventRequest) returns (LineageEvent) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/processes/*/runs/*}/lineageEvents" + body: "lineage_event" + }; + option (google.api.method_signature) = "parent,lineage_event"; + } + + // Gets details of a specified lineage event. + rpc GetLineageEvent(GetLineageEventRequest) returns (LineageEvent) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/processes/*/runs/*/lineageEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists lineage events in the given project and location. The list order is + // not defined. + rpc ListLineageEvents(ListLineageEventsRequest) + returns (ListLineageEventsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/processes/*/runs/*}/lineageEvents" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes the lineage event with the specified name. + rpc DeleteLineageEvent(DeleteLineageEventRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/processes/*/runs/*/lineageEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Retrieve a list of links connected to a specific asset. + // Links represent the data flow between **source** (upstream) + // and **target** (downstream) assets in transformation pipelines. + // Links are stored in the same project as the Lineage Events that create + // them. + // + // You can retrieve links in every project where you have the + // `datalineage.events.get` permission. The project provided in the URL + // is used for Billing and Quota. + rpc SearchLinks(SearchLinksRequest) returns (SearchLinksResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}:searchLinks" + body: "*" + }; + } + + // Retrieve information about LineageProcesses associated with specific + // links. LineageProcesses are transformation pipelines that result in data + // flowing from **source** to **target** assets. Links between assets + // represent this operation. + // + // If you have specific link names, you can use this method to + // verify which LineageProcesses contribute to creating those links. + // See the + // [SearchLinks][google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks] + // method for more information on how to retrieve link name. + // + // You can retrieve the LineageProcess information in every project where you + // have the `datalineage.events.get` permission. The project provided in the + // URL is used for Billing and Quota. + rpc BatchSearchLinkProcesses(BatchSearchLinkProcessesRequest) + returns (BatchSearchLinkProcessesResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}:batchSearchLinkProcesses" + body: "*" + }; + } +} + +// A process is the definition of a data transformation operation. +message Process { + option (google.api.resource) = { + type: "datalineage.googleapis.com/Process" + pattern: "projects/{project}/locations/{location}/processes/{process}" + }; + + // Immutable. The resource name of the lineage process. Format: + // `projects/{project}/locations/{location}/processes/{process}`. + // Can be specified or auto-assigned. + // {process} must be not longer than 200 characters and only + // contain characters in a set: `a-zA-Z0-9_-:.` + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. A human-readable name you can set to display in a user interface. + // Must be not longer than 200 characters and only contain UTF-8 letters + // or numbers, spaces or characters like `_-:&.` + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The attributes of the process. Can be anything, for example, + // "author". Up to 100 attributes are allowed. + map attributes = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The origin of this process and its runs and lineage events. + Origin origin = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// A lineage run represents an execution of a process that creates +// lineage events. +message Run { + option (google.api.resource) = { + type: "datalineage.googleapis.com/Run" + pattern: "projects/{project}/locations/{location}/processes/{process}/runs/{run}" + }; + + // The current state of the run. + enum State { + // The state is unknown. The true state may be any of the below or a + // different state that is not supported here explicitly. + UNKNOWN = 0; + + // The run is still executing. + STARTED = 1; + + // The run completed. + COMPLETED = 2; + + // The run failed. + FAILED = 3; + + // The run aborted. + ABORTED = 4; + } + + // Immutable. The resource name of the run. Format: + // `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + // Can be specified or auto-assigned. + // {run} must be not longer than 200 characters and only + // contain characters in a set: `a-zA-Z0-9_-:.` + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. A human-readable name you can set to display in a user interface. + // Must be not longer than 1024 characters and only contain UTF-8 letters + // or numbers, spaces or characters like `_-:&.` + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The attributes of the run. Can be anything, for example, a string + // with an SQL request. Up to 100 attributes are allowed. + map attributes = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The timestamp of the start of the run. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The timestamp of the end of the run. + google.protobuf.Timestamp end_time = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The state of the run. + State state = 6 [(google.api.field_behavior) = REQUIRED]; +} + +// A lineage event represents an operation on assets. Within the operation, the +// data flows from the source to the target defined in the links field. +message LineageEvent { + option (google.api.resource) = { + type: "datalineage.googleapis.com/LineageEvent" + pattern: "projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}" + }; + + // Immutable. The resource name of the lineage event. + // Format: + // `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. + // Can be specified or auto-assigned. + // {lineage_event} must be not longer than 200 characters and only + // contain characters in a set: `a-zA-Z0-9_-:.` + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. List of source-target pairs. Can't contain more than 100 tuples. + repeated EventLink links = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The beginning of the transformation which resulted in this + // lineage event. For streaming scenarios, it should be the beginning of the + // period from which the lineage is being reported. + google.protobuf.Timestamp start_time = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The end of the transformation which resulted in this lineage + // event. For streaming scenarios, it should be the end of the period from + // which the lineage is being reported. + google.protobuf.Timestamp end_time = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A lineage between source and target entities. +message EventLink { + // Required. Reference to the source entity + EntityReference source = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Reference to the target entity + EntityReference target = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The soft reference to everything you can attach a lineage event to. +message EntityReference { + // Required. Fully Qualified Name of the entity. Useful for referencing + // entities that aren't represented as GCP resources, for example, tables in + // Dataproc Metastore API. + // + // Examples: + // + // * `bigquery:dataset.project_id.dataset_id` + // * `bigquery:table.project_id.dataset_id.table_id` + // * `pubsub:project_id.topic_id` + // * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId` + string fully_qualified_name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Metadata describing the operation. +message OperationMetadata { + // An enum with the state of the operation. + enum State { + // Unused. + STATE_UNSPECIFIED = 0; + + // The operation has been created but is not yet started. + PENDING = 1; + + // The operation is underway. + RUNNING = 2; + + // The operation completed successfully. + SUCCEEDED = 3; + + // The operation is no longer running and did not succeed. + FAILED = 4; + } + + // Type of the long running operation. + enum Type { + // Unused. + TYPE_UNSPECIFIED = 0; + + // The resource deletion operation. + DELETE = 1; + } + + // Output only. The current operation state. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the operation being performed. + Type operation_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The [relative name] + // (https://cloud.google.com//apis/design/resource_names#relative_resource_name) + // of the resource being operated on. + string resource = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The UUID of the resource being operated on. + string resource_uuid = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of the operation submission to the server. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of the operation termination, regardless of its + // success. This field is unset if the operation is still ongoing. + google.protobuf.Timestamp end_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for +// [CreateProcess][google.cloud.datacatalog.lineage.v1.CreateProcess]. +message CreateProcessRequest { + // Required. The name of the project and its location that should own the + // process. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datalineage.googleapis.com/Process" + } + ]; + + // Required. The process to create. + Process process = 2 [(google.api.field_behavior) = REQUIRED]; + + // A unique identifier for this request. Restricted to 36 ASCII characters. + // A random UUID is recommended. This request is idempotent only if a + // `request_id` is provided. + string request_id = 3; +} + +// Request message for +// [UpdateProcess][google.cloud.datacatalog.lineage.v1.UpdateProcess]. +message UpdateProcessRequest { + // Required. The lineage process to update. + // + // The process's `name` field is used to identify the process to update. + Process process = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. Currently not used. The whole message is + // updated. + google.protobuf.FieldMask update_mask = 2; + + // If set to true and the process is not found, the request inserts it. + bool allow_missing = 3; +} + +// Request message for +// [GetProcess][google.cloud.datacatalog.lineage.v1.GetProcess]. +message GetProcessRequest { + // Required. The name of the process to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalineage.googleapis.com/Process" + } + ]; +} + +// Request message for +// [ListProcesses][google.cloud.datacatalog.lineage.v1.ListProcesses]. +message ListProcessesRequest { + // Required. The name of the project and its location that owns this + // collection of processes. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datalineage.googleapis.com/Process" + } + ]; + + // The maximum number of processes to return. The service may return + // fewer than this value. If unspecified, at most 50 processes are + // returned. The maximum value is 100; values greater than 100 are cut to + // 100. + int32 page_size = 2; + + // The page token received from a previous `ListProcesses` call. Specify + // it to get the next page. + // + // When paginating, all other parameters specified in this call must + // match the parameters of the call that provided the page token. + string page_token = 3; +} + +// Response message for +// [ListProcesses][google.cloud.datacatalog.lineage.v1.ListProcesses]. +message ListProcessesResponse { + // The processes from the specified project and location. + repeated Process processes = 1; + + // The token to specify as `page_token` in the next call to get the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [DeleteProcess][google.cloud.datacatalog.lineage.v1.DeleteProcess]. +message DeleteProcessRequest { + // Required. The name of the process to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalineage.googleapis.com/Process" + } + ]; + + // If set to true and the process is not found, the request + // succeeds but the server doesn't perform any actions. + bool allow_missing = 2; +} + +// Request message for +// [CreateRun][google.cloud.datacatalog.lineage.v1.CreateRun]. +message CreateRunRequest { + // Required. The name of the process that should own the run. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datalineage.googleapis.com/Run" + } + ]; + + // Required. The run to create. + Run run = 2 [(google.api.field_behavior) = REQUIRED]; + + // A unique identifier for this request. Restricted to 36 ASCII characters. + // A random UUID is recommended. This request is idempotent only if a + // `request_id` is provided. + string request_id = 3; +} + +// Request message for +// [UpdateRun][google.cloud.datacatalog.lineage.v1.UpdateRun]. +message UpdateRunRequest { + // Required. The lineage run to update. + // + // The run's `name` field is used to identify the run to update. + // + // Format: + // `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + Run run = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. Currently not used. The whole message is + // updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for +// [GetRun][google.cloud.datacatalog.lineage.v1.GetRun]. +message GetRunRequest { + // Required. The name of the run to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "datalineage.googleapis.com/Run" } + ]; +} + +// Request message for +// [ListRuns][google.cloud.datacatalog.lineage.v1.ListRuns]. +message ListRunsRequest { + // Required. The name of process that owns this collection of runs. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datalineage.googleapis.com/Run" + } + ]; + + // The maximum number of runs to return. The service may return + // fewer than this value. If unspecified, at most 50 runs are + // returned. The maximum value is 100; values greater than 100 are cut to + // 100. + int32 page_size = 2; + + // The page token received from a previous `ListRuns` call. Specify + // it to get the next page. + // + // When paginating, all other parameters specified in this call must + // match the parameters of the call that provided the page token. + string page_token = 3; +} + +// Response message for +// [ListRuns][google.cloud.datacatalog.lineage.v1.ListRuns]. +message ListRunsResponse { + // The runs from the specified project and location. + repeated Run runs = 1; + + // The token to specify as `page_token` in the next call to get the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [DeleteRun][google.cloud.datacatalog.lineage.v1.DeleteRun]. +message DeleteRunRequest { + // Required. The name of the run to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "datalineage.googleapis.com/Run" } + ]; + + // If set to true and the run is not found, the request + // succeeds but the server doesn't perform any actions. + bool allow_missing = 2; +} + +// Request message for +// [CreateLineageEvent][google.cloud.datacatalog.lineage.v1.CreateLineageEvent]. +message CreateLineageEventRequest { + // Required. The name of the run that should own the lineage event. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datalineage.googleapis.com/LineageEvent" + } + ]; + + // Required. The lineage event to create. + LineageEvent lineage_event = 2 [(google.api.field_behavior) = REQUIRED]; + + // A unique identifier for this request. Restricted to 36 ASCII characters. + // A random UUID is recommended. This request is idempotent only if a + // `request_id` is provided. + string request_id = 3; +} + +// Request message for +// [GetLineageEvent][google.cloud.datacatalog.lineage.v1.GetLineageEvent]. +message GetLineageEventRequest { + // Required. The name of the lineage event to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalineage.googleapis.com/LineageEvent" + } + ]; +} + +// Request message for +// [ListLineageEvents][google.cloud.datacatalog.lineage.v1.ListLineageEvents]. +message ListLineageEventsRequest { + // Required. The name of the run that owns the collection of lineage events to + // get. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datalineage.googleapis.com/LineageEvent" + } + ]; + + // The maximum number of lineage events to return. + // + // The service may return fewer events than this value. + // If unspecified, at most 50 events are returned. The maximum value is 100; + // values greater than 100 are cut to 100. + int32 page_size = 2; + + // The page token received from a previous `ListLineageEvents` call. Specify + // it to get the next page. + // + // When paginating, all other parameters specified in this call must + // match the parameters of the call that provided the page token. + string page_token = 3; +} + +// Response message for +// [ListLineageEvents][google.cloud.datacatalog.lineage.v1.ListLineageEvents]. +message ListLineageEventsResponse { + // Lineage events from the specified project and location. + repeated LineageEvent lineage_events = 1; + + // The token to specify as `page_token` in the next call to get the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [DeleteLineageEvent][google.cloud.datacatalog.lineage.v1.DeleteLineageEvent]. +message DeleteLineageEventRequest { + // Required. The name of the lineage event to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalineage.googleapis.com/LineageEvent" + } + ]; + + // If set to true and the lineage event is not found, the request + // succeeds but the server doesn't perform any actions. + bool allow_missing = 2; +} + +// Request message for +// [SearchLinks][google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks]. +message SearchLinksRequest { + // Required. The project and location you want search in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datalineage.googleapis.com/Process" + } + ]; + + // The asset for which you want to retrieve links. + oneof criteria { + // Optional. Send asset information in the **source** field to retrieve all + // links that lead from the specified asset to downstream assets. + EntityReference source = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Send asset information in the **target** field to retrieve all + // links that lead from upstream assets to the specified asset. + EntityReference target = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The maximum number of links to return in a single page of the + // response. A page may contain fewer links than this value. If unspecified, + // at most 10 links are returned. + // + // Maximum value is 100; values greater than 100 are reduced to 100. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token received from a previous `SearchLinksRequest` + // call. Use it to get the next page. + // + // When requesting subsequent pages of a response, remember that + // all parameters must match the values you provided + // in the original request. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [SearchLinks][google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks]. +message SearchLinksResponse { + // The list of links for a given asset. Can be empty if the asset has no + // relations of requested type (source or target). + repeated Link links = 1; + + // The token to specify as `page_token` in the subsequent call to get the next + // page. Omitted if there are no more pages in the response. + string next_page_token = 2; +} + +// Links represent the data flow between **source** (upstream) +// and **target** (downstream) assets in transformation pipelines. +// +// Links are created when LineageEvents record data transformation between +// related assets. +message Link { + // Output only. Immutable. The name of the link. Format: + // `projects/{project}/locations/{location}/links/{link}`. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE + ]; + + // The pointer to the entity that is the **source** of this link. + EntityReference source = 2; + + // The pointer to the entity that is the **target** of this link. + EntityReference target = 3; + + // The start of the first event establishing this link. + google.protobuf.Timestamp start_time = 4; + + // The end of the last event establishing this link. + google.protobuf.Timestamp end_time = 5; +} + +// Request message for +// [BatchSearchLinkProcesses][google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcesses]. +message BatchSearchLinkProcessesRequest { + // Required. The project and location where you want to search. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datalineage.googleapis.com/Process" + } + ]; + + // Required. An array of links to check for their associated LineageProcesses. + // + // The maximum number of items in this array is 100. + // If the request contains more than 100 links, it returns the + // `INVALID_ARGUMENT` error. + // + // Format: `projects/{project}/locations/{location}/links/{link}`. + repeated string links = 2 [(google.api.field_behavior) = REQUIRED]; + + // The maximum number of processes to return in a single page of the response. + // A page may contain fewer results than this value. + int32 page_size = 3; + + // The page token received from a previous `BatchSearchLinkProcesses` call. + // Use it to get the next page. + // + // When requesting subsequent pages of a response, remember that + // all parameters must match the values you provided + // in the original request. + string page_token = 4; +} + +// Response message for +// [BatchSearchLinkProcesses][google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcesses]. +message BatchSearchLinkProcessesResponse { + // An array of processes associated with the specified links. + repeated ProcessLinks process_links = 1; + + // The token to specify as `page_token` in the subsequent call to get the next + // page. Omitted if there are no more pages in the response. + string next_page_token = 2; +} + +// Links associated with a specific process. +message ProcessLinks { + // The process name in the format of + // `projects/{project}/locations/{location}/processes/{process}`. + string process = 1 [(google.api.resource_reference) = { + type: "datalineage.googleapis.com/Process" + }]; + + // An array containing link details objects of the links provided in + // the original request. + // + // A single process can result in creating multiple links. + // If any of the links you provide in the request are created by + // the same process, they all are included in this array. + repeated ProcessLinkInfo links = 2; +} + +// Link details. +message ProcessLinkInfo { + // The name of the link in the format of + // `projects/{project}/locations/{location}/links/{link}`. + string link = 1; + + // The start of the first event establishing this link-process tuple. + google.protobuf.Timestamp start_time = 2; + + // The end of the last event establishing this link-process tuple. + google.protobuf.Timestamp end_time = 3; +} + +// Origin of a process. +message Origin { + // Type of the source of a process. + enum SourceType { + // Source is Unspecified + SOURCE_TYPE_UNSPECIFIED = 0; + + // A custom source + CUSTOM = 1; + + // BigQuery + BIGQUERY = 2; + + // Data Fusion + DATA_FUSION = 3; + + // Composer + COMPOSER = 4; + + // Looker Studio + LOOKER_STUDIO = 5; + } + + // Type of the source. + SourceType source_type = 1; + + // If the source_type isn't CUSTOM, the value of this field should be a GCP + // resource name of the system, which reports lineage. The project and + // location parts of the resource name must match the project and location of + // the lineage resource being created. Examples: + // + // - `{source_type: COMPOSER, name: + // "projects/foo/locations/us/environments/bar"}` + // - `{source_type: BIGQUERY, name: "projects/foo/locations/eu"}` + // - `{source_type: CUSTOM, name: "myCustomIntegration"}` + string name = 2; +} diff --git a/packages/google-cloud-datacatalog-lineage/protos/protos.d.ts b/packages/google-cloud-datacatalog-lineage/protos/protos.d.ts new file mode 100644 index 000000000000..3701cd9c7d3c --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/protos/protos.d.ts @@ -0,0 +1,9667 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import type {protobuf as $protobuf} from "google-gax"; +import Long = require("long"); +/** Namespace google. */ +export namespace google { + + /** Namespace cloud. */ + namespace cloud { + + /** Namespace datacatalog. */ + namespace datacatalog { + + /** Namespace lineage. */ + namespace lineage { + + /** Namespace v1. */ + namespace v1 { + + /** Represents a Lineage */ + class Lineage extends $protobuf.rpc.Service { + + /** + * Constructs a new Lineage service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Lineage service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Lineage; + + /** + * Calls CreateProcess. + * @param request CreateProcessRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Process + */ + public createProcess(request: google.cloud.datacatalog.lineage.v1.ICreateProcessRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.CreateProcessCallback): void; + + /** + * Calls CreateProcess. + * @param request CreateProcessRequest message or plain object + * @returns Promise + */ + public createProcess(request: google.cloud.datacatalog.lineage.v1.ICreateProcessRequest): Promise; + + /** + * Calls UpdateProcess. + * @param request UpdateProcessRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Process + */ + public updateProcess(request: google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.UpdateProcessCallback): void; + + /** + * Calls UpdateProcess. + * @param request UpdateProcessRequest message or plain object + * @returns Promise + */ + public updateProcess(request: google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest): Promise; + + /** + * Calls GetProcess. + * @param request GetProcessRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Process + */ + public getProcess(request: google.cloud.datacatalog.lineage.v1.IGetProcessRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.GetProcessCallback): void; + + /** + * Calls GetProcess. + * @param request GetProcessRequest message or plain object + * @returns Promise + */ + public getProcess(request: google.cloud.datacatalog.lineage.v1.IGetProcessRequest): Promise; + + /** + * Calls ListProcesses. + * @param request ListProcessesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListProcessesResponse + */ + public listProcesses(request: google.cloud.datacatalog.lineage.v1.IListProcessesRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.ListProcessesCallback): void; + + /** + * Calls ListProcesses. + * @param request ListProcessesRequest message or plain object + * @returns Promise + */ + public listProcesses(request: google.cloud.datacatalog.lineage.v1.IListProcessesRequest): Promise; + + /** + * Calls DeleteProcess. + * @param request DeleteProcessRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteProcess(request: google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.DeleteProcessCallback): void; + + /** + * Calls DeleteProcess. + * @param request DeleteProcessRequest message or plain object + * @returns Promise + */ + public deleteProcess(request: google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest): Promise; + + /** + * Calls CreateRun. + * @param request CreateRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Run + */ + public createRun(request: google.cloud.datacatalog.lineage.v1.ICreateRunRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.CreateRunCallback): void; + + /** + * Calls CreateRun. + * @param request CreateRunRequest message or plain object + * @returns Promise + */ + public createRun(request: google.cloud.datacatalog.lineage.v1.ICreateRunRequest): Promise; + + /** + * Calls UpdateRun. + * @param request UpdateRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Run + */ + public updateRun(request: google.cloud.datacatalog.lineage.v1.IUpdateRunRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.UpdateRunCallback): void; + + /** + * Calls UpdateRun. + * @param request UpdateRunRequest message or plain object + * @returns Promise + */ + public updateRun(request: google.cloud.datacatalog.lineage.v1.IUpdateRunRequest): Promise; + + /** + * Calls GetRun. + * @param request GetRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Run + */ + public getRun(request: google.cloud.datacatalog.lineage.v1.IGetRunRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.GetRunCallback): void; + + /** + * Calls GetRun. + * @param request GetRunRequest message or plain object + * @returns Promise + */ + public getRun(request: google.cloud.datacatalog.lineage.v1.IGetRunRequest): Promise; + + /** + * Calls ListRuns. + * @param request ListRunsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListRunsResponse + */ + public listRuns(request: google.cloud.datacatalog.lineage.v1.IListRunsRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.ListRunsCallback): void; + + /** + * Calls ListRuns. + * @param request ListRunsRequest message or plain object + * @returns Promise + */ + public listRuns(request: google.cloud.datacatalog.lineage.v1.IListRunsRequest): Promise; + + /** + * Calls DeleteRun. + * @param request DeleteRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteRun(request: google.cloud.datacatalog.lineage.v1.IDeleteRunRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.DeleteRunCallback): void; + + /** + * Calls DeleteRun. + * @param request DeleteRunRequest message or plain object + * @returns Promise + */ + public deleteRun(request: google.cloud.datacatalog.lineage.v1.IDeleteRunRequest): Promise; + + /** + * Calls CreateLineageEvent. + * @param request CreateLineageEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageEvent + */ + public createLineageEvent(request: google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.CreateLineageEventCallback): void; + + /** + * Calls CreateLineageEvent. + * @param request CreateLineageEventRequest message or plain object + * @returns Promise + */ + public createLineageEvent(request: google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest): Promise; + + /** + * Calls GetLineageEvent. + * @param request GetLineageEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageEvent + */ + public getLineageEvent(request: google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.GetLineageEventCallback): void; + + /** + * Calls GetLineageEvent. + * @param request GetLineageEventRequest message or plain object + * @returns Promise + */ + public getLineageEvent(request: google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest): Promise; + + /** + * Calls ListLineageEvents. + * @param request ListLineageEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListLineageEventsResponse + */ + public listLineageEvents(request: google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.ListLineageEventsCallback): void; + + /** + * Calls ListLineageEvents. + * @param request ListLineageEventsRequest message or plain object + * @returns Promise + */ + public listLineageEvents(request: google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest): Promise; + + /** + * Calls DeleteLineageEvent. + * @param request DeleteLineageEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteLineageEvent(request: google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.DeleteLineageEventCallback): void; + + /** + * Calls DeleteLineageEvent. + * @param request DeleteLineageEventRequest message or plain object + * @returns Promise + */ + public deleteLineageEvent(request: google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest): Promise; + + /** + * Calls SearchLinks. + * @param request SearchLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchLinksResponse + */ + public searchLinks(request: google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.SearchLinksCallback): void; + + /** + * Calls SearchLinks. + * @param request SearchLinksRequest message or plain object + * @returns Promise + */ + public searchLinks(request: google.cloud.datacatalog.lineage.v1.ISearchLinksRequest): Promise; + + /** + * Calls BatchSearchLinkProcesses. + * @param request BatchSearchLinkProcessesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchSearchLinkProcessesResponse + */ + public batchSearchLinkProcesses(request: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, callback: google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcessesCallback): void; + + /** + * Calls BatchSearchLinkProcesses. + * @param request BatchSearchLinkProcessesRequest message or plain object + * @returns Promise + */ + public batchSearchLinkProcesses(request: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest): Promise; + } + + namespace Lineage { + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|createProcess}. + * @param error Error, if any + * @param [response] Process + */ + type CreateProcessCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.Process) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|updateProcess}. + * @param error Error, if any + * @param [response] Process + */ + type UpdateProcessCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.Process) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|getProcess}. + * @param error Error, if any + * @param [response] Process + */ + type GetProcessCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.Process) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|listProcesses}. + * @param error Error, if any + * @param [response] ListProcessesResponse + */ + type ListProcessesCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.ListProcessesResponse) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|deleteProcess}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteProcessCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|createRun}. + * @param error Error, if any + * @param [response] Run + */ + type CreateRunCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.Run) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|updateRun}. + * @param error Error, if any + * @param [response] Run + */ + type UpdateRunCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.Run) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|getRun}. + * @param error Error, if any + * @param [response] Run + */ + type GetRunCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.Run) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|listRuns}. + * @param error Error, if any + * @param [response] ListRunsResponse + */ + type ListRunsCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.ListRunsResponse) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|deleteRun}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteRunCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|createLineageEvent}. + * @param error Error, if any + * @param [response] LineageEvent + */ + type CreateLineageEventCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.LineageEvent) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|getLineageEvent}. + * @param error Error, if any + * @param [response] LineageEvent + */ + type GetLineageEventCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.LineageEvent) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|listLineageEvents}. + * @param error Error, if any + * @param [response] ListLineageEventsResponse + */ + type ListLineageEventsCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|deleteLineageEvent}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteLineageEventCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|searchLinks}. + * @param error Error, if any + * @param [response] SearchLinksResponse + */ + type SearchLinksCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.SearchLinksResponse) => void; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|batchSearchLinkProcesses}. + * @param error Error, if any + * @param [response] BatchSearchLinkProcessesResponse + */ + type BatchSearchLinkProcessesCallback = (error: (Error|null), response?: google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse) => void; + } + + /** Properties of a Process. */ + interface IProcess { + + /** Process name */ + name?: (string|null); + + /** Process displayName */ + displayName?: (string|null); + + /** Process attributes */ + attributes?: ({ [k: string]: google.protobuf.IValue }|null); + + /** Process origin */ + origin?: (google.cloud.datacatalog.lineage.v1.IOrigin|null); + } + + /** Represents a Process. */ + class Process implements IProcess { + + /** + * Constructs a new Process. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IProcess); + + /** Process name. */ + public name: string; + + /** Process displayName. */ + public displayName: string; + + /** Process attributes. */ + public attributes: { [k: string]: google.protobuf.IValue }; + + /** Process origin. */ + public origin?: (google.cloud.datacatalog.lineage.v1.IOrigin|null); + + /** + * Creates a new Process instance using the specified properties. + * @param [properties] Properties to set + * @returns Process instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IProcess): google.cloud.datacatalog.lineage.v1.Process; + + /** + * Encodes the specified Process message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Process.verify|verify} messages. + * @param message Process message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IProcess, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Process message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Process.verify|verify} messages. + * @param message Process message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IProcess, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Process message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Process + * @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.datacatalog.lineage.v1.Process; + + /** + * Decodes a Process message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Process + * @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.datacatalog.lineage.v1.Process; + + /** + * Verifies a Process 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 Process message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Process + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.Process; + + /** + * Creates a plain object from a Process message. Also converts values to other types if specified. + * @param message Process + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.Process, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Process to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Process + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Run. */ + interface IRun { + + /** Run name */ + name?: (string|null); + + /** Run displayName */ + displayName?: (string|null); + + /** Run attributes */ + attributes?: ({ [k: string]: google.protobuf.IValue }|null); + + /** Run startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Run endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** Run state */ + state?: (google.cloud.datacatalog.lineage.v1.Run.State|keyof typeof google.cloud.datacatalog.lineage.v1.Run.State|null); + } + + /** Represents a Run. */ + class Run implements IRun { + + /** + * Constructs a new Run. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IRun); + + /** Run name. */ + public name: string; + + /** Run displayName. */ + public displayName: string; + + /** Run attributes. */ + public attributes: { [k: string]: google.protobuf.IValue }; + + /** Run startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Run endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Run state. */ + public state: (google.cloud.datacatalog.lineage.v1.Run.State|keyof typeof google.cloud.datacatalog.lineage.v1.Run.State); + + /** + * Creates a new Run instance using the specified properties. + * @param [properties] Properties to set + * @returns Run instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IRun): google.cloud.datacatalog.lineage.v1.Run; + + /** + * Encodes the specified Run message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Run.verify|verify} messages. + * @param message Run message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IRun, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Run message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Run.verify|verify} messages. + * @param message Run message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IRun, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Run message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Run + * @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.datacatalog.lineage.v1.Run; + + /** + * Decodes a Run message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Run + * @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.datacatalog.lineage.v1.Run; + + /** + * Verifies a Run 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 Run message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Run + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.Run; + + /** + * Creates a plain object from a Run message. Also converts values to other types if specified. + * @param message Run + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.Run, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Run to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Run + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Run { + + /** State enum. */ + enum State { + UNKNOWN = 0, + STARTED = 1, + COMPLETED = 2, + FAILED = 3, + ABORTED = 4 + } + } + + /** Properties of a LineageEvent. */ + interface ILineageEvent { + + /** LineageEvent name */ + name?: (string|null); + + /** LineageEvent links */ + links?: (google.cloud.datacatalog.lineage.v1.IEventLink[]|null); + + /** LineageEvent startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** LineageEvent endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a LineageEvent. */ + class LineageEvent implements ILineageEvent { + + /** + * Constructs a new LineageEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.ILineageEvent); + + /** LineageEvent name. */ + public name: string; + + /** LineageEvent links. */ + public links: google.cloud.datacatalog.lineage.v1.IEventLink[]; + + /** LineageEvent startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** LineageEvent endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new LineageEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns LineageEvent instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.ILineageEvent): google.cloud.datacatalog.lineage.v1.LineageEvent; + + /** + * Encodes the specified LineageEvent message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.LineageEvent.verify|verify} messages. + * @param message LineageEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.ILineageEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LineageEvent message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.LineageEvent.verify|verify} messages. + * @param message LineageEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.ILineageEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LineageEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LineageEvent + * @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.datacatalog.lineage.v1.LineageEvent; + + /** + * Decodes a LineageEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LineageEvent + * @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.datacatalog.lineage.v1.LineageEvent; + + /** + * Verifies a LineageEvent 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 LineageEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LineageEvent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.LineageEvent; + + /** + * Creates a plain object from a LineageEvent message. Also converts values to other types if specified. + * @param message LineageEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.LineageEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LineageEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LineageEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EventLink. */ + interface IEventLink { + + /** EventLink source */ + source?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** EventLink target */ + target?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + } + + /** Represents an EventLink. */ + class EventLink implements IEventLink { + + /** + * Constructs a new EventLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IEventLink); + + /** EventLink source. */ + public source?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** EventLink target. */ + public target?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** + * Creates a new EventLink instance using the specified properties. + * @param [properties] Properties to set + * @returns EventLink instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IEventLink): google.cloud.datacatalog.lineage.v1.EventLink; + + /** + * Encodes the specified EventLink message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.EventLink.verify|verify} messages. + * @param message EventLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IEventLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EventLink message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.EventLink.verify|verify} messages. + * @param message EventLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IEventLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventLink + * @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.datacatalog.lineage.v1.EventLink; + + /** + * Decodes an EventLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EventLink + * @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.datacatalog.lineage.v1.EventLink; + + /** + * Verifies an EventLink 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 an EventLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EventLink + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.EventLink; + + /** + * Creates a plain object from an EventLink message. Also converts values to other types if specified. + * @param message EventLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.EventLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EventLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EventLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EntityReference. */ + interface IEntityReference { + + /** EntityReference fullyQualifiedName */ + fullyQualifiedName?: (string|null); + } + + /** Represents an EntityReference. */ + class EntityReference implements IEntityReference { + + /** + * Constructs a new EntityReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IEntityReference); + + /** EntityReference fullyQualifiedName. */ + public fullyQualifiedName: string; + + /** + * Creates a new EntityReference instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityReference instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IEntityReference): google.cloud.datacatalog.lineage.v1.EntityReference; + + /** + * Encodes the specified EntityReference message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.EntityReference.verify|verify} messages. + * @param message EntityReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IEntityReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EntityReference message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.EntityReference.verify|verify} messages. + * @param message EntityReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IEntityReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EntityReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityReference + * @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.datacatalog.lineage.v1.EntityReference; + + /** + * Decodes an EntityReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityReference + * @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.datacatalog.lineage.v1.EntityReference; + + /** + * Verifies an EntityReference 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 an EntityReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityReference + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.EntityReference; + + /** + * Creates a plain object from an EntityReference message. Also converts values to other types if specified. + * @param message EntityReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.EntityReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EntityReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EntityReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OperationMetadata. */ + interface IOperationMetadata { + + /** OperationMetadata state */ + state?: (google.cloud.datacatalog.lineage.v1.OperationMetadata.State|keyof typeof google.cloud.datacatalog.lineage.v1.OperationMetadata.State|null); + + /** OperationMetadata operationType */ + operationType?: (google.cloud.datacatalog.lineage.v1.OperationMetadata.Type|keyof typeof google.cloud.datacatalog.lineage.v1.OperationMetadata.Type|null); + + /** OperationMetadata resource */ + resource?: (string|null); + + /** OperationMetadata resourceUuid */ + resourceUuid?: (string|null); + + /** OperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** OperationMetadata endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents an OperationMetadata. */ + class OperationMetadata implements IOperationMetadata { + + /** + * Constructs a new OperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IOperationMetadata); + + /** OperationMetadata state. */ + public state: (google.cloud.datacatalog.lineage.v1.OperationMetadata.State|keyof typeof google.cloud.datacatalog.lineage.v1.OperationMetadata.State); + + /** OperationMetadata operationType. */ + public operationType: (google.cloud.datacatalog.lineage.v1.OperationMetadata.Type|keyof typeof google.cloud.datacatalog.lineage.v1.OperationMetadata.Type); + + /** OperationMetadata resource. */ + public resource: string; + + /** OperationMetadata resourceUuid. */ + public resourceUuid: string; + + /** OperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** OperationMetadata endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new OperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationMetadata instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IOperationMetadata): google.cloud.datacatalog.lineage.v1.OperationMetadata; + + /** + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationMetadata + * @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.datacatalog.lineage.v1.OperationMetadata; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OperationMetadata + * @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.datacatalog.lineage.v1.OperationMetadata; + + /** + * Verifies an OperationMetadata 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 an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.OperationMetadata; + + /** + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @param message OperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace OperationMetadata { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + RUNNING = 2, + SUCCEEDED = 3, + FAILED = 4 + } + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + DELETE = 1 + } + } + + /** Properties of a CreateProcessRequest. */ + interface ICreateProcessRequest { + + /** CreateProcessRequest parent */ + parent?: (string|null); + + /** CreateProcessRequest process */ + process?: (google.cloud.datacatalog.lineage.v1.IProcess|null); + + /** CreateProcessRequest requestId */ + requestId?: (string|null); + } + + /** Represents a CreateProcessRequest. */ + class CreateProcessRequest implements ICreateProcessRequest { + + /** + * Constructs a new CreateProcessRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.ICreateProcessRequest); + + /** CreateProcessRequest parent. */ + public parent: string; + + /** CreateProcessRequest process. */ + public process?: (google.cloud.datacatalog.lineage.v1.IProcess|null); + + /** CreateProcessRequest requestId. */ + public requestId: string; + + /** + * Creates a new CreateProcessRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateProcessRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.ICreateProcessRequest): google.cloud.datacatalog.lineage.v1.CreateProcessRequest; + + /** + * Encodes the specified CreateProcessRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateProcessRequest.verify|verify} messages. + * @param message CreateProcessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.ICreateProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateProcessRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateProcessRequest.verify|verify} messages. + * @param message CreateProcessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.ICreateProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateProcessRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateProcessRequest + * @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.datacatalog.lineage.v1.CreateProcessRequest; + + /** + * Decodes a CreateProcessRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateProcessRequest + * @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.datacatalog.lineage.v1.CreateProcessRequest; + + /** + * Verifies a CreateProcessRequest 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 CreateProcessRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateProcessRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.CreateProcessRequest; + + /** + * Creates a plain object from a CreateProcessRequest message. Also converts values to other types if specified. + * @param message CreateProcessRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.CreateProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateProcessRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateProcessRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateProcessRequest. */ + interface IUpdateProcessRequest { + + /** UpdateProcessRequest process */ + process?: (google.cloud.datacatalog.lineage.v1.IProcess|null); + + /** UpdateProcessRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateProcessRequest allowMissing */ + allowMissing?: (boolean|null); + } + + /** Represents an UpdateProcessRequest. */ + class UpdateProcessRequest implements IUpdateProcessRequest { + + /** + * Constructs a new UpdateProcessRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest); + + /** UpdateProcessRequest process. */ + public process?: (google.cloud.datacatalog.lineage.v1.IProcess|null); + + /** UpdateProcessRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateProcessRequest allowMissing. */ + public allowMissing: boolean; + + /** + * Creates a new UpdateProcessRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateProcessRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest): google.cloud.datacatalog.lineage.v1.UpdateProcessRequest; + + /** + * Encodes the specified UpdateProcessRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.UpdateProcessRequest.verify|verify} messages. + * @param message UpdateProcessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateProcessRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.UpdateProcessRequest.verify|verify} messages. + * @param message UpdateProcessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateProcessRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateProcessRequest + * @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.datacatalog.lineage.v1.UpdateProcessRequest; + + /** + * Decodes an UpdateProcessRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateProcessRequest + * @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.datacatalog.lineage.v1.UpdateProcessRequest; + + /** + * Verifies an UpdateProcessRequest 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 an UpdateProcessRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateProcessRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.UpdateProcessRequest; + + /** + * Creates a plain object from an UpdateProcessRequest message. Also converts values to other types if specified. + * @param message UpdateProcessRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.UpdateProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateProcessRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateProcessRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetProcessRequest. */ + interface IGetProcessRequest { + + /** GetProcessRequest name */ + name?: (string|null); + } + + /** Represents a GetProcessRequest. */ + class GetProcessRequest implements IGetProcessRequest { + + /** + * Constructs a new GetProcessRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IGetProcessRequest); + + /** GetProcessRequest name. */ + public name: string; + + /** + * Creates a new GetProcessRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetProcessRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IGetProcessRequest): google.cloud.datacatalog.lineage.v1.GetProcessRequest; + + /** + * Encodes the specified GetProcessRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetProcessRequest.verify|verify} messages. + * @param message GetProcessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IGetProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetProcessRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetProcessRequest.verify|verify} messages. + * @param message GetProcessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IGetProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetProcessRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetProcessRequest + * @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.datacatalog.lineage.v1.GetProcessRequest; + + /** + * Decodes a GetProcessRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetProcessRequest + * @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.datacatalog.lineage.v1.GetProcessRequest; + + /** + * Verifies a GetProcessRequest 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 GetProcessRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetProcessRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.GetProcessRequest; + + /** + * Creates a plain object from a GetProcessRequest message. Also converts values to other types if specified. + * @param message GetProcessRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.GetProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetProcessRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetProcessRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListProcessesRequest. */ + interface IListProcessesRequest { + + /** ListProcessesRequest parent */ + parent?: (string|null); + + /** ListProcessesRequest pageSize */ + pageSize?: (number|null); + + /** ListProcessesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListProcessesRequest. */ + class ListProcessesRequest implements IListProcessesRequest { + + /** + * Constructs a new ListProcessesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IListProcessesRequest); + + /** ListProcessesRequest parent. */ + public parent: string; + + /** ListProcessesRequest pageSize. */ + public pageSize: number; + + /** ListProcessesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListProcessesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListProcessesRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IListProcessesRequest): google.cloud.datacatalog.lineage.v1.ListProcessesRequest; + + /** + * Encodes the specified ListProcessesRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListProcessesRequest.verify|verify} messages. + * @param message ListProcessesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IListProcessesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListProcessesRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListProcessesRequest.verify|verify} messages. + * @param message ListProcessesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IListProcessesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListProcessesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListProcessesRequest + * @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.datacatalog.lineage.v1.ListProcessesRequest; + + /** + * Decodes a ListProcessesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListProcessesRequest + * @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.datacatalog.lineage.v1.ListProcessesRequest; + + /** + * Verifies a ListProcessesRequest 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 ListProcessesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListProcessesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.ListProcessesRequest; + + /** + * Creates a plain object from a ListProcessesRequest message. Also converts values to other types if specified. + * @param message ListProcessesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.ListProcessesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListProcessesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListProcessesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListProcessesResponse. */ + interface IListProcessesResponse { + + /** ListProcessesResponse processes */ + processes?: (google.cloud.datacatalog.lineage.v1.IProcess[]|null); + + /** ListProcessesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListProcessesResponse. */ + class ListProcessesResponse implements IListProcessesResponse { + + /** + * Constructs a new ListProcessesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IListProcessesResponse); + + /** ListProcessesResponse processes. */ + public processes: google.cloud.datacatalog.lineage.v1.IProcess[]; + + /** ListProcessesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListProcessesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListProcessesResponse instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IListProcessesResponse): google.cloud.datacatalog.lineage.v1.ListProcessesResponse; + + /** + * Encodes the specified ListProcessesResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListProcessesResponse.verify|verify} messages. + * @param message ListProcessesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IListProcessesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListProcessesResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListProcessesResponse.verify|verify} messages. + * @param message ListProcessesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IListProcessesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListProcessesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListProcessesResponse + * @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.datacatalog.lineage.v1.ListProcessesResponse; + + /** + * Decodes a ListProcessesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListProcessesResponse + * @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.datacatalog.lineage.v1.ListProcessesResponse; + + /** + * Verifies a ListProcessesResponse 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 ListProcessesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListProcessesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.ListProcessesResponse; + + /** + * Creates a plain object from a ListProcessesResponse message. Also converts values to other types if specified. + * @param message ListProcessesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.ListProcessesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListProcessesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListProcessesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteProcessRequest. */ + interface IDeleteProcessRequest { + + /** DeleteProcessRequest name */ + name?: (string|null); + + /** DeleteProcessRequest allowMissing */ + allowMissing?: (boolean|null); + } + + /** Represents a DeleteProcessRequest. */ + class DeleteProcessRequest implements IDeleteProcessRequest { + + /** + * Constructs a new DeleteProcessRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest); + + /** DeleteProcessRequest name. */ + public name: string; + + /** DeleteProcessRequest allowMissing. */ + public allowMissing: boolean; + + /** + * Creates a new DeleteProcessRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteProcessRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest): google.cloud.datacatalog.lineage.v1.DeleteProcessRequest; + + /** + * Encodes the specified DeleteProcessRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteProcessRequest.verify|verify} messages. + * @param message DeleteProcessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteProcessRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteProcessRequest.verify|verify} messages. + * @param message DeleteProcessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteProcessRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteProcessRequest + * @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.datacatalog.lineage.v1.DeleteProcessRequest; + + /** + * Decodes a DeleteProcessRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteProcessRequest + * @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.datacatalog.lineage.v1.DeleteProcessRequest; + + /** + * Verifies a DeleteProcessRequest 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 DeleteProcessRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteProcessRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.DeleteProcessRequest; + + /** + * Creates a plain object from a DeleteProcessRequest message. Also converts values to other types if specified. + * @param message DeleteProcessRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.DeleteProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteProcessRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteProcessRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateRunRequest. */ + interface ICreateRunRequest { + + /** CreateRunRequest parent */ + parent?: (string|null); + + /** CreateRunRequest run */ + run?: (google.cloud.datacatalog.lineage.v1.IRun|null); + + /** CreateRunRequest requestId */ + requestId?: (string|null); + } + + /** Represents a CreateRunRequest. */ + class CreateRunRequest implements ICreateRunRequest { + + /** + * Constructs a new CreateRunRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.ICreateRunRequest); + + /** CreateRunRequest parent. */ + public parent: string; + + /** CreateRunRequest run. */ + public run?: (google.cloud.datacatalog.lineage.v1.IRun|null); + + /** CreateRunRequest requestId. */ + public requestId: string; + + /** + * Creates a new CreateRunRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateRunRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.ICreateRunRequest): google.cloud.datacatalog.lineage.v1.CreateRunRequest; + + /** + * Encodes the specified CreateRunRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateRunRequest.verify|verify} messages. + * @param message CreateRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.ICreateRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateRunRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateRunRequest.verify|verify} messages. + * @param message CreateRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.ICreateRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateRunRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateRunRequest + * @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.datacatalog.lineage.v1.CreateRunRequest; + + /** + * Decodes a CreateRunRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateRunRequest + * @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.datacatalog.lineage.v1.CreateRunRequest; + + /** + * Verifies a CreateRunRequest 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 CreateRunRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateRunRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.CreateRunRequest; + + /** + * Creates a plain object from a CreateRunRequest message. Also converts values to other types if specified. + * @param message CreateRunRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.CreateRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateRunRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateRunRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateRunRequest. */ + interface IUpdateRunRequest { + + /** UpdateRunRequest run */ + run?: (google.cloud.datacatalog.lineage.v1.IRun|null); + + /** UpdateRunRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateRunRequest. */ + class UpdateRunRequest implements IUpdateRunRequest { + + /** + * Constructs a new UpdateRunRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IUpdateRunRequest); + + /** UpdateRunRequest run. */ + public run?: (google.cloud.datacatalog.lineage.v1.IRun|null); + + /** UpdateRunRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateRunRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateRunRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IUpdateRunRequest): google.cloud.datacatalog.lineage.v1.UpdateRunRequest; + + /** + * Encodes the specified UpdateRunRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.UpdateRunRequest.verify|verify} messages. + * @param message UpdateRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IUpdateRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateRunRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.UpdateRunRequest.verify|verify} messages. + * @param message UpdateRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IUpdateRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateRunRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateRunRequest + * @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.datacatalog.lineage.v1.UpdateRunRequest; + + /** + * Decodes an UpdateRunRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateRunRequest + * @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.datacatalog.lineage.v1.UpdateRunRequest; + + /** + * Verifies an UpdateRunRequest 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 an UpdateRunRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateRunRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.UpdateRunRequest; + + /** + * Creates a plain object from an UpdateRunRequest message. Also converts values to other types if specified. + * @param message UpdateRunRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.UpdateRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateRunRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateRunRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRunRequest. */ + interface IGetRunRequest { + + /** GetRunRequest name */ + name?: (string|null); + } + + /** Represents a GetRunRequest. */ + class GetRunRequest implements IGetRunRequest { + + /** + * Constructs a new GetRunRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IGetRunRequest); + + /** GetRunRequest name. */ + public name: string; + + /** + * Creates a new GetRunRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRunRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IGetRunRequest): google.cloud.datacatalog.lineage.v1.GetRunRequest; + + /** + * Encodes the specified GetRunRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetRunRequest.verify|verify} messages. + * @param message GetRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IGetRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRunRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetRunRequest.verify|verify} messages. + * @param message GetRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IGetRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRunRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRunRequest + * @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.datacatalog.lineage.v1.GetRunRequest; + + /** + * Decodes a GetRunRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRunRequest + * @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.datacatalog.lineage.v1.GetRunRequest; + + /** + * Verifies a GetRunRequest 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 GetRunRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRunRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.GetRunRequest; + + /** + * Creates a plain object from a GetRunRequest message. Also converts values to other types if specified. + * @param message GetRunRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.GetRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRunRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRunRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListRunsRequest. */ + interface IListRunsRequest { + + /** ListRunsRequest parent */ + parent?: (string|null); + + /** ListRunsRequest pageSize */ + pageSize?: (number|null); + + /** ListRunsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListRunsRequest. */ + class ListRunsRequest implements IListRunsRequest { + + /** + * Constructs a new ListRunsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IListRunsRequest); + + /** ListRunsRequest parent. */ + public parent: string; + + /** ListRunsRequest pageSize. */ + public pageSize: number; + + /** ListRunsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListRunsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRunsRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IListRunsRequest): google.cloud.datacatalog.lineage.v1.ListRunsRequest; + + /** + * Encodes the specified ListRunsRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListRunsRequest.verify|verify} messages. + * @param message ListRunsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IListRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRunsRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListRunsRequest.verify|verify} messages. + * @param message ListRunsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IListRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRunsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRunsRequest + * @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.datacatalog.lineage.v1.ListRunsRequest; + + /** + * Decodes a ListRunsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRunsRequest + * @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.datacatalog.lineage.v1.ListRunsRequest; + + /** + * Verifies a ListRunsRequest 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 ListRunsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRunsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.ListRunsRequest; + + /** + * Creates a plain object from a ListRunsRequest message. Also converts values to other types if specified. + * @param message ListRunsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.ListRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRunsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRunsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListRunsResponse. */ + interface IListRunsResponse { + + /** ListRunsResponse runs */ + runs?: (google.cloud.datacatalog.lineage.v1.IRun[]|null); + + /** ListRunsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListRunsResponse. */ + class ListRunsResponse implements IListRunsResponse { + + /** + * Constructs a new ListRunsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IListRunsResponse); + + /** ListRunsResponse runs. */ + public runs: google.cloud.datacatalog.lineage.v1.IRun[]; + + /** ListRunsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListRunsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRunsResponse instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IListRunsResponse): google.cloud.datacatalog.lineage.v1.ListRunsResponse; + + /** + * Encodes the specified ListRunsResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListRunsResponse.verify|verify} messages. + * @param message ListRunsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IListRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRunsResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListRunsResponse.verify|verify} messages. + * @param message ListRunsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IListRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRunsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRunsResponse + * @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.datacatalog.lineage.v1.ListRunsResponse; + + /** + * Decodes a ListRunsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRunsResponse + * @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.datacatalog.lineage.v1.ListRunsResponse; + + /** + * Verifies a ListRunsResponse 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 ListRunsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRunsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.ListRunsResponse; + + /** + * Creates a plain object from a ListRunsResponse message. Also converts values to other types if specified. + * @param message ListRunsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.ListRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRunsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRunsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteRunRequest. */ + interface IDeleteRunRequest { + + /** DeleteRunRequest name */ + name?: (string|null); + + /** DeleteRunRequest allowMissing */ + allowMissing?: (boolean|null); + } + + /** Represents a DeleteRunRequest. */ + class DeleteRunRequest implements IDeleteRunRequest { + + /** + * Constructs a new DeleteRunRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IDeleteRunRequest); + + /** DeleteRunRequest name. */ + public name: string; + + /** DeleteRunRequest allowMissing. */ + public allowMissing: boolean; + + /** + * Creates a new DeleteRunRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRunRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IDeleteRunRequest): google.cloud.datacatalog.lineage.v1.DeleteRunRequest; + + /** + * Encodes the specified DeleteRunRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteRunRequest.verify|verify} messages. + * @param message DeleteRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IDeleteRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRunRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteRunRequest.verify|verify} messages. + * @param message DeleteRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IDeleteRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRunRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRunRequest + * @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.datacatalog.lineage.v1.DeleteRunRequest; + + /** + * Decodes a DeleteRunRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRunRequest + * @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.datacatalog.lineage.v1.DeleteRunRequest; + + /** + * Verifies a DeleteRunRequest 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 DeleteRunRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRunRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.DeleteRunRequest; + + /** + * Creates a plain object from a DeleteRunRequest message. Also converts values to other types if specified. + * @param message DeleteRunRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.DeleteRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRunRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRunRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateLineageEventRequest. */ + interface ICreateLineageEventRequest { + + /** CreateLineageEventRequest parent */ + parent?: (string|null); + + /** CreateLineageEventRequest lineageEvent */ + lineageEvent?: (google.cloud.datacatalog.lineage.v1.ILineageEvent|null); + + /** CreateLineageEventRequest requestId */ + requestId?: (string|null); + } + + /** Represents a CreateLineageEventRequest. */ + class CreateLineageEventRequest implements ICreateLineageEventRequest { + + /** + * Constructs a new CreateLineageEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest); + + /** CreateLineageEventRequest parent. */ + public parent: string; + + /** CreateLineageEventRequest lineageEvent. */ + public lineageEvent?: (google.cloud.datacatalog.lineage.v1.ILineageEvent|null); + + /** CreateLineageEventRequest requestId. */ + public requestId: string; + + /** + * Creates a new CreateLineageEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateLineageEventRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest): google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest; + + /** + * Encodes the specified CreateLineageEventRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest.verify|verify} messages. + * @param message CreateLineageEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateLineageEventRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest.verify|verify} messages. + * @param message CreateLineageEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateLineageEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateLineageEventRequest + * @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.datacatalog.lineage.v1.CreateLineageEventRequest; + + /** + * Decodes a CreateLineageEventRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateLineageEventRequest + * @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.datacatalog.lineage.v1.CreateLineageEventRequest; + + /** + * Verifies a CreateLineageEventRequest 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 CreateLineageEventRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateLineageEventRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest; + + /** + * Creates a plain object from a CreateLineageEventRequest message. Also converts values to other types if specified. + * @param message CreateLineageEventRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateLineageEventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateLineageEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetLineageEventRequest. */ + interface IGetLineageEventRequest { + + /** GetLineageEventRequest name */ + name?: (string|null); + } + + /** Represents a GetLineageEventRequest. */ + class GetLineageEventRequest implements IGetLineageEventRequest { + + /** + * Constructs a new GetLineageEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest); + + /** GetLineageEventRequest name. */ + public name: string; + + /** + * Creates a new GetLineageEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetLineageEventRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest): google.cloud.datacatalog.lineage.v1.GetLineageEventRequest; + + /** + * Encodes the specified GetLineageEventRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetLineageEventRequest.verify|verify} messages. + * @param message GetLineageEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetLineageEventRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetLineageEventRequest.verify|verify} messages. + * @param message GetLineageEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetLineageEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetLineageEventRequest + * @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.datacatalog.lineage.v1.GetLineageEventRequest; + + /** + * Decodes a GetLineageEventRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetLineageEventRequest + * @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.datacatalog.lineage.v1.GetLineageEventRequest; + + /** + * Verifies a GetLineageEventRequest 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 GetLineageEventRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetLineageEventRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.GetLineageEventRequest; + + /** + * Creates a plain object from a GetLineageEventRequest message. Also converts values to other types if specified. + * @param message GetLineageEventRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.GetLineageEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetLineageEventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetLineageEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListLineageEventsRequest. */ + interface IListLineageEventsRequest { + + /** ListLineageEventsRequest parent */ + parent?: (string|null); + + /** ListLineageEventsRequest pageSize */ + pageSize?: (number|null); + + /** ListLineageEventsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListLineageEventsRequest. */ + class ListLineageEventsRequest implements IListLineageEventsRequest { + + /** + * Constructs a new ListLineageEventsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest); + + /** ListLineageEventsRequest parent. */ + public parent: string; + + /** ListLineageEventsRequest pageSize. */ + public pageSize: number; + + /** ListLineageEventsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListLineageEventsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListLineageEventsRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest): google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest; + + /** + * Encodes the specified ListLineageEventsRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest.verify|verify} messages. + * @param message ListLineageEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListLineageEventsRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest.verify|verify} messages. + * @param message ListLineageEventsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListLineageEventsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListLineageEventsRequest + * @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.datacatalog.lineage.v1.ListLineageEventsRequest; + + /** + * Decodes a ListLineageEventsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListLineageEventsRequest + * @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.datacatalog.lineage.v1.ListLineageEventsRequest; + + /** + * Verifies a ListLineageEventsRequest 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 ListLineageEventsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListLineageEventsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest; + + /** + * Creates a plain object from a ListLineageEventsRequest message. Also converts values to other types if specified. + * @param message ListLineageEventsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListLineageEventsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListLineageEventsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListLineageEventsResponse. */ + interface IListLineageEventsResponse { + + /** ListLineageEventsResponse lineageEvents */ + lineageEvents?: (google.cloud.datacatalog.lineage.v1.ILineageEvent[]|null); + + /** ListLineageEventsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListLineageEventsResponse. */ + class ListLineageEventsResponse implements IListLineageEventsResponse { + + /** + * Constructs a new ListLineageEventsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse); + + /** ListLineageEventsResponse lineageEvents. */ + public lineageEvents: google.cloud.datacatalog.lineage.v1.ILineageEvent[]; + + /** ListLineageEventsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListLineageEventsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListLineageEventsResponse instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse): google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse; + + /** + * Encodes the specified ListLineageEventsResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse.verify|verify} messages. + * @param message ListLineageEventsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListLineageEventsResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse.verify|verify} messages. + * @param message ListLineageEventsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListLineageEventsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListLineageEventsResponse + * @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.datacatalog.lineage.v1.ListLineageEventsResponse; + + /** + * Decodes a ListLineageEventsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListLineageEventsResponse + * @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.datacatalog.lineage.v1.ListLineageEventsResponse; + + /** + * Verifies a ListLineageEventsResponse 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 ListLineageEventsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListLineageEventsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse; + + /** + * Creates a plain object from a ListLineageEventsResponse message. Also converts values to other types if specified. + * @param message ListLineageEventsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListLineageEventsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListLineageEventsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteLineageEventRequest. */ + interface IDeleteLineageEventRequest { + + /** DeleteLineageEventRequest name */ + name?: (string|null); + + /** DeleteLineageEventRequest allowMissing */ + allowMissing?: (boolean|null); + } + + /** Represents a DeleteLineageEventRequest. */ + class DeleteLineageEventRequest implements IDeleteLineageEventRequest { + + /** + * Constructs a new DeleteLineageEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest); + + /** DeleteLineageEventRequest name. */ + public name: string; + + /** DeleteLineageEventRequest allowMissing. */ + public allowMissing: boolean; + + /** + * Creates a new DeleteLineageEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteLineageEventRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest): google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest; + + /** + * Encodes the specified DeleteLineageEventRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest.verify|verify} messages. + * @param message DeleteLineageEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteLineageEventRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest.verify|verify} messages. + * @param message DeleteLineageEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteLineageEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteLineageEventRequest + * @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.datacatalog.lineage.v1.DeleteLineageEventRequest; + + /** + * Decodes a DeleteLineageEventRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteLineageEventRequest + * @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.datacatalog.lineage.v1.DeleteLineageEventRequest; + + /** + * Verifies a DeleteLineageEventRequest 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 DeleteLineageEventRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteLineageEventRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest; + + /** + * Creates a plain object from a DeleteLineageEventRequest message. Also converts values to other types if specified. + * @param message DeleteLineageEventRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteLineageEventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteLineageEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SearchLinksRequest. */ + interface ISearchLinksRequest { + + /** SearchLinksRequest parent */ + parent?: (string|null); + + /** SearchLinksRequest source */ + source?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** SearchLinksRequest target */ + target?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** SearchLinksRequest pageSize */ + pageSize?: (number|null); + + /** SearchLinksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a SearchLinksRequest. */ + class SearchLinksRequest implements ISearchLinksRequest { + + /** + * Constructs a new SearchLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.ISearchLinksRequest); + + /** SearchLinksRequest parent. */ + public parent: string; + + /** SearchLinksRequest source. */ + public source?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** SearchLinksRequest target. */ + public target?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** SearchLinksRequest pageSize. */ + public pageSize: number; + + /** SearchLinksRequest pageToken. */ + public pageToken: string; + + /** SearchLinksRequest criteria. */ + public criteria?: ("source"|"target"); + + /** + * Creates a new SearchLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchLinksRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.ISearchLinksRequest): google.cloud.datacatalog.lineage.v1.SearchLinksRequest; + + /** + * Encodes the specified SearchLinksRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.SearchLinksRequest.verify|verify} messages. + * @param message SearchLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchLinksRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.SearchLinksRequest.verify|verify} messages. + * @param message SearchLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchLinksRequest + * @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.datacatalog.lineage.v1.SearchLinksRequest; + + /** + * Decodes a SearchLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchLinksRequest + * @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.datacatalog.lineage.v1.SearchLinksRequest; + + /** + * Verifies a SearchLinksRequest 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 SearchLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.SearchLinksRequest; + + /** + * Creates a plain object from a SearchLinksRequest message. Also converts values to other types if specified. + * @param message SearchLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.SearchLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SearchLinksResponse. */ + interface ISearchLinksResponse { + + /** SearchLinksResponse links */ + links?: (google.cloud.datacatalog.lineage.v1.ILink[]|null); + + /** SearchLinksResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a SearchLinksResponse. */ + class SearchLinksResponse implements ISearchLinksResponse { + + /** + * Constructs a new SearchLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.ISearchLinksResponse); + + /** SearchLinksResponse links. */ + public links: google.cloud.datacatalog.lineage.v1.ILink[]; + + /** SearchLinksResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new SearchLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchLinksResponse instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.ISearchLinksResponse): google.cloud.datacatalog.lineage.v1.SearchLinksResponse; + + /** + * Encodes the specified SearchLinksResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.SearchLinksResponse.verify|verify} messages. + * @param message SearchLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.ISearchLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchLinksResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.SearchLinksResponse.verify|verify} messages. + * @param message SearchLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.ISearchLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchLinksResponse + * @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.datacatalog.lineage.v1.SearchLinksResponse; + + /** + * Decodes a SearchLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchLinksResponse + * @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.datacatalog.lineage.v1.SearchLinksResponse; + + /** + * Verifies a SearchLinksResponse 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 SearchLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.SearchLinksResponse; + + /** + * Creates a plain object from a SearchLinksResponse message. Also converts values to other types if specified. + * @param message SearchLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.SearchLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Link. */ + interface ILink { + + /** Link name */ + name?: (string|null); + + /** Link source */ + source?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** Link target */ + target?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** Link startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Link endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Link. */ + class Link implements ILink { + + /** + * Constructs a new Link. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.ILink); + + /** Link name. */ + public name: string; + + /** Link source. */ + public source?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** Link target. */ + public target?: (google.cloud.datacatalog.lineage.v1.IEntityReference|null); + + /** Link startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Link endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new Link instance using the specified properties. + * @param [properties] Properties to set + * @returns Link instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.ILink): google.cloud.datacatalog.lineage.v1.Link; + + /** + * Encodes the specified Link message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Link.verify|verify} messages. + * @param message Link message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.ILink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Link message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Link.verify|verify} messages. + * @param message Link message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.ILink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Link message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Link + * @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.datacatalog.lineage.v1.Link; + + /** + * Decodes a Link message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Link + * @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.datacatalog.lineage.v1.Link; + + /** + * Verifies a Link 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 Link message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Link + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.Link; + + /** + * Creates a plain object from a Link message. Also converts values to other types if specified. + * @param message Link + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.Link, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Link to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Link + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchSearchLinkProcessesRequest. */ + interface IBatchSearchLinkProcessesRequest { + + /** BatchSearchLinkProcessesRequest parent */ + parent?: (string|null); + + /** BatchSearchLinkProcessesRequest links */ + links?: (string[]|null); + + /** BatchSearchLinkProcessesRequest pageSize */ + pageSize?: (number|null); + + /** BatchSearchLinkProcessesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a BatchSearchLinkProcessesRequest. */ + class BatchSearchLinkProcessesRequest implements IBatchSearchLinkProcessesRequest { + + /** + * Constructs a new BatchSearchLinkProcessesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest); + + /** BatchSearchLinkProcessesRequest parent. */ + public parent: string; + + /** BatchSearchLinkProcessesRequest links. */ + public links: string[]; + + /** BatchSearchLinkProcessesRequest pageSize. */ + public pageSize: number; + + /** BatchSearchLinkProcessesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new BatchSearchLinkProcessesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchSearchLinkProcessesRequest instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest): google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest; + + /** + * Encodes the specified BatchSearchLinkProcessesRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest.verify|verify} messages. + * @param message BatchSearchLinkProcessesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchSearchLinkProcessesRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest.verify|verify} messages. + * @param message BatchSearchLinkProcessesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchSearchLinkProcessesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchSearchLinkProcessesRequest + * @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.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest; + + /** + * Decodes a BatchSearchLinkProcessesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchSearchLinkProcessesRequest + * @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.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest; + + /** + * Verifies a BatchSearchLinkProcessesRequest 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 BatchSearchLinkProcessesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchSearchLinkProcessesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest; + + /** + * Creates a plain object from a BatchSearchLinkProcessesRequest message. Also converts values to other types if specified. + * @param message BatchSearchLinkProcessesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchSearchLinkProcessesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchSearchLinkProcessesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchSearchLinkProcessesResponse. */ + interface IBatchSearchLinkProcessesResponse { + + /** BatchSearchLinkProcessesResponse processLinks */ + processLinks?: (google.cloud.datacatalog.lineage.v1.IProcessLinks[]|null); + + /** BatchSearchLinkProcessesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a BatchSearchLinkProcessesResponse. */ + class BatchSearchLinkProcessesResponse implements IBatchSearchLinkProcessesResponse { + + /** + * Constructs a new BatchSearchLinkProcessesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse); + + /** BatchSearchLinkProcessesResponse processLinks. */ + public processLinks: google.cloud.datacatalog.lineage.v1.IProcessLinks[]; + + /** BatchSearchLinkProcessesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new BatchSearchLinkProcessesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchSearchLinkProcessesResponse instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse): google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse; + + /** + * Encodes the specified BatchSearchLinkProcessesResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse.verify|verify} messages. + * @param message BatchSearchLinkProcessesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchSearchLinkProcessesResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse.verify|verify} messages. + * @param message BatchSearchLinkProcessesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchSearchLinkProcessesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchSearchLinkProcessesResponse + * @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.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse; + + /** + * Decodes a BatchSearchLinkProcessesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchSearchLinkProcessesResponse + * @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.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse; + + /** + * Verifies a BatchSearchLinkProcessesResponse 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 BatchSearchLinkProcessesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchSearchLinkProcessesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse; + + /** + * Creates a plain object from a BatchSearchLinkProcessesResponse message. Also converts values to other types if specified. + * @param message BatchSearchLinkProcessesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchSearchLinkProcessesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchSearchLinkProcessesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ProcessLinks. */ + interface IProcessLinks { + + /** ProcessLinks process */ + process?: (string|null); + + /** ProcessLinks links */ + links?: (google.cloud.datacatalog.lineage.v1.IProcessLinkInfo[]|null); + } + + /** Represents a ProcessLinks. */ + class ProcessLinks implements IProcessLinks { + + /** + * Constructs a new ProcessLinks. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IProcessLinks); + + /** ProcessLinks process. */ + public process: string; + + /** ProcessLinks links. */ + public links: google.cloud.datacatalog.lineage.v1.IProcessLinkInfo[]; + + /** + * Creates a new ProcessLinks instance using the specified properties. + * @param [properties] Properties to set + * @returns ProcessLinks instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IProcessLinks): google.cloud.datacatalog.lineage.v1.ProcessLinks; + + /** + * Encodes the specified ProcessLinks message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ProcessLinks.verify|verify} messages. + * @param message ProcessLinks message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IProcessLinks, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProcessLinks message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ProcessLinks.verify|verify} messages. + * @param message ProcessLinks message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IProcessLinks, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProcessLinks message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProcessLinks + * @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.datacatalog.lineage.v1.ProcessLinks; + + /** + * Decodes a ProcessLinks message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProcessLinks + * @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.datacatalog.lineage.v1.ProcessLinks; + + /** + * Verifies a ProcessLinks 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 ProcessLinks message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProcessLinks + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.ProcessLinks; + + /** + * Creates a plain object from a ProcessLinks message. Also converts values to other types if specified. + * @param message ProcessLinks + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.ProcessLinks, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProcessLinks to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ProcessLinks + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ProcessLinkInfo. */ + interface IProcessLinkInfo { + + /** ProcessLinkInfo link */ + link?: (string|null); + + /** ProcessLinkInfo startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** ProcessLinkInfo endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a ProcessLinkInfo. */ + class ProcessLinkInfo implements IProcessLinkInfo { + + /** + * Constructs a new ProcessLinkInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IProcessLinkInfo); + + /** ProcessLinkInfo link. */ + public link: string; + + /** ProcessLinkInfo startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** ProcessLinkInfo endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new ProcessLinkInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ProcessLinkInfo instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IProcessLinkInfo): google.cloud.datacatalog.lineage.v1.ProcessLinkInfo; + + /** + * Encodes the specified ProcessLinkInfo message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.verify|verify} messages. + * @param message ProcessLinkInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IProcessLinkInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ProcessLinkInfo message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.verify|verify} messages. + * @param message ProcessLinkInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IProcessLinkInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProcessLinkInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProcessLinkInfo + * @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.datacatalog.lineage.v1.ProcessLinkInfo; + + /** + * Decodes a ProcessLinkInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProcessLinkInfo + * @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.datacatalog.lineage.v1.ProcessLinkInfo; + + /** + * Verifies a ProcessLinkInfo 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 ProcessLinkInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProcessLinkInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.ProcessLinkInfo; + + /** + * Creates a plain object from a ProcessLinkInfo message. Also converts values to other types if specified. + * @param message ProcessLinkInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.ProcessLinkInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ProcessLinkInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ProcessLinkInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Origin. */ + interface IOrigin { + + /** Origin sourceType */ + sourceType?: (google.cloud.datacatalog.lineage.v1.Origin.SourceType|keyof typeof google.cloud.datacatalog.lineage.v1.Origin.SourceType|null); + + /** Origin name */ + name?: (string|null); + } + + /** Represents an Origin. */ + class Origin implements IOrigin { + + /** + * Constructs a new Origin. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.datacatalog.lineage.v1.IOrigin); + + /** Origin sourceType. */ + public sourceType: (google.cloud.datacatalog.lineage.v1.Origin.SourceType|keyof typeof google.cloud.datacatalog.lineage.v1.Origin.SourceType); + + /** Origin name. */ + public name: string; + + /** + * Creates a new Origin instance using the specified properties. + * @param [properties] Properties to set + * @returns Origin instance + */ + public static create(properties?: google.cloud.datacatalog.lineage.v1.IOrigin): google.cloud.datacatalog.lineage.v1.Origin; + + /** + * Encodes the specified Origin message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Origin.verify|verify} messages. + * @param message Origin message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.datacatalog.lineage.v1.IOrigin, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Origin message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Origin.verify|verify} messages. + * @param message Origin message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.datacatalog.lineage.v1.IOrigin, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Origin message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Origin + * @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.datacatalog.lineage.v1.Origin; + + /** + * Decodes an Origin message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Origin + * @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.datacatalog.lineage.v1.Origin; + + /** + * Verifies an Origin 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 an Origin message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Origin + */ + public static fromObject(object: { [k: string]: any }): google.cloud.datacatalog.lineage.v1.Origin; + + /** + * Creates a plain object from an Origin message. Also converts values to other types if specified. + * @param message Origin + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.datacatalog.lineage.v1.Origin, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Origin to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Origin + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Origin { + + /** SourceType enum. */ + enum SourceType { + SOURCE_TYPE_UNSPECIFIED = 0, + CUSTOM = 1, + BIGQUERY = 2, + DATA_FUSION = 3, + COMPOSER = 4, + LOOKER_STUDIO = 5 + } + } + } + } + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @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.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @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.api.Http; + + /** + * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Http + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule responseBody */ + responseBody?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get?: (string|null); + + /** HttpRule put. */ + public put?: (string|null); + + /** HttpRule post. */ + public post?: (string|null); + + /** HttpRule delete. */ + public delete?: (string|null); + + /** HttpRule patch. */ + public patch?: (string|null); + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule responseBody. */ + public responseBody: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HttpRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomHttpPattern + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 + } + + /** Properties of a ResourceDescriptor. */ + interface IResourceDescriptor { + + /** ResourceDescriptor type */ + type?: (string|null); + + /** ResourceDescriptor pattern */ + pattern?: (string[]|null); + + /** ResourceDescriptor nameField */ + nameField?: (string|null); + + /** ResourceDescriptor history */ + history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); + + /** ResourceDescriptor plural */ + plural?: (string|null); + + /** ResourceDescriptor singular */ + singular?: (string|null); + + /** ResourceDescriptor style */ + style?: (google.api.ResourceDescriptor.Style[]|null); + } + + /** Represents a ResourceDescriptor. */ + class ResourceDescriptor implements IResourceDescriptor { + + /** + * Constructs a new ResourceDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceDescriptor); + + /** ResourceDescriptor type. */ + public type: string; + + /** ResourceDescriptor pattern. */ + public pattern: string[]; + + /** ResourceDescriptor nameField. */ + public nameField: string; + + /** ResourceDescriptor history. */ + public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History); + + /** ResourceDescriptor plural. */ + public plural: string; + + /** ResourceDescriptor singular. */ + public singular: string; + + /** ResourceDescriptor style. */ + public style: google.api.ResourceDescriptor.Style[]; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceDescriptor instance + */ + public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; + + /** + * Verifies a ResourceDescriptor 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @param message ResourceDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ResourceDescriptor { + + /** History enum. */ + enum History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2 + } + + /** Style enum. */ + enum Style { + STYLE_UNSPECIFIED = 0, + DECLARATIVE_FRIENDLY = 1 + } + } + + /** Properties of a ResourceReference. */ + interface IResourceReference { + + /** ResourceReference type */ + type?: (string|null); + + /** ResourceReference childType */ + childType?: (string|null); + } + + /** Represents a ResourceReference. */ + class ResourceReference implements IResourceReference { + + /** + * Constructs a new ResourceReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceReference); + + /** ResourceReference type. */ + public type: string; + + /** ResourceReference childType. */ + public childType: string; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceReference instance + */ + public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceReference + * @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.api.ResourceReference; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceReference + * @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.api.ResourceReference; + + /** + * Verifies a ResourceReference 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 ResourceReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceReference + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @param message ResourceReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + + /** FileDescriptorProto edition */ + edition?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** FileDescriptorProto edition. */ + public edition: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange 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 an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { + + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { + + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); + + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRangeOptions instance + */ + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; + + /** + * Verifies an ExtensionRangeOptions 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 an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRangeOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); + + /** FieldDescriptorProto type. */ + public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto 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 an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto 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 an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EnumDescriptorProto { + + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { + + /** EnumReservedRange start */ + start?: (number|null); + + /** EnumReservedRange end */ + end?: (number|null); + } + + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { + + /** + * Constructs a new EnumReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + + /** EnumReservedRange start. */ + public start: number; + + /** EnumReservedRange end. */ + public end: number; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumReservedRange instance + */ + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Verifies an EnumReservedRange 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 an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto 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 an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); + + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); + + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); + + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); + + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FileOptions .google.api.resourceDefinition */ + ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; + + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; + + /** FileOptions phpNamespace. */ + public phpNamespace: string; + + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; + + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @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.protobuf.FileOptions; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @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.protobuf.FileOptions; + + /** + * Verifies a FileOptions 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 FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MessageOptions .google.api.resource */ + ".google.api.resource"?: (google.api.IResourceDescriptor|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @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.protobuf.MessageOptions; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageOptions + * @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.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions 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 MessageOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FieldOptions .google.api.fieldBehavior */ + ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); + + /** FieldOptions .google.api.resourceReference */ + ".google.api.resourceReference"?: (google.api.IResourceReference|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @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.protobuf.FieldOptions; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldOptions + * @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.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions 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 FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @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.protobuf.OneofOptions; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @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.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions 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 an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @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.protobuf.EnumOptions; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumOptions + * @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.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions 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 an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions 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 an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); + + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions 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 ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); + + /** MethodOptions .google.longrunning.operationInfo */ + ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @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.protobuf.MethodOptions; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @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.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions 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 MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MethodOptions { + + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|string|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|string|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|string|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long|string); + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long|string); + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: (Uint8Array|string); + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption 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 an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UninterpretedOption + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart 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 NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NamePart + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location 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 Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @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.protobuf.GeneratedCodeInfo; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GeneratedCodeInfo + * @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.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + + /** Annotation semantic */ + semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** Annotation semantic. */ + public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic); + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation 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 an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Annotation { + + /** Semantic enum. */ + enum Semantic { + NONE = 0, + SET = 1, + ALIAS = 2 + } + } + } + + /** Properties of an Any. */ + interface IAny { + + /** Any type_url */ + type_url?: (string|null); + + /** Any value */ + value?: (Uint8Array|string|null); + } + + /** Represents an Any. */ + class Any implements IAny { + + /** + * Constructs a new Any. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: (Uint8Array|string); + + /** + * Creates a new Any instance using the specified properties. + * @param [properties] Properties to set + * @returns Any instance + */ + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Any message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Any + * @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.protobuf.Any; + + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Any + * @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.protobuf.Any; + + /** + * Verifies an Any 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 an Any message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Any + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Any to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Any + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (number|Long|string|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { + + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: (number|Long|string); + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @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.protobuf.Duration; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Duration + * @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.protobuf.Duration; + + /** + * Verifies a Duration 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 Duration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Duration + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Duration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Duration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Empty. */ + interface IEmpty { + } + + /** Represents an Empty. */ + class Empty implements IEmpty { + + /** + * Constructs a new Empty. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEmpty); + + /** + * Creates a new Empty instance using the specified properties. + * @param [properties] Properties to set + * @returns Empty instance + */ + public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Empty + * @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.protobuf.Empty; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Empty + * @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.protobuf.Empty; + + /** + * Verifies an Empty 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 an Empty message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Empty + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @param message Empty + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Empty to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Empty + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FieldMask. */ + interface IFieldMask { + + /** FieldMask paths */ + paths?: (string[]|null); + } + + /** Represents a FieldMask. */ + class FieldMask implements IFieldMask { + + /** + * Constructs a new FieldMask. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldMask); + + /** FieldMask paths. */ + public paths: string[]; + + /** + * Creates a new FieldMask instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldMask instance + */ + public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldMask + * @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.protobuf.FieldMask; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldMask + * @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.protobuf.FieldMask; + + /** + * Verifies a FieldMask 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 FieldMask message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldMask + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @param message FieldMask + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldMask to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldMask + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Struct. */ + interface IStruct { + + /** Struct fields */ + fields?: ({ [k: string]: google.protobuf.IValue }|null); + } + + /** Represents a Struct. */ + class Struct implements IStruct { + + /** + * Constructs a new Struct. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStruct); + + /** Struct fields. */ + public fields: { [k: string]: google.protobuf.IValue }; + + /** + * Creates a new Struct instance using the specified properties. + * @param [properties] Properties to set + * @returns Struct instance + */ + public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @param message Struct message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @param message Struct message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Struct + * @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.protobuf.Struct; + + /** + * Decodes a Struct message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Struct + * @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.protobuf.Struct; + + /** + * Verifies a Struct 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 Struct message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Struct + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Struct; + + /** + * Creates a plain object from a Struct message. Also converts values to other types if specified. + * @param message Struct + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Struct to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Struct + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Value. */ + interface IValue { + + /** Value nullValue */ + nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null); + + /** Value numberValue */ + numberValue?: (number|null); + + /** Value stringValue */ + stringValue?: (string|null); + + /** Value boolValue */ + boolValue?: (boolean|null); + + /** Value structValue */ + structValue?: (google.protobuf.IStruct|null); + + /** Value listValue */ + listValue?: (google.protobuf.IListValue|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IValue); + + /** Value nullValue. */ + public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null); + + /** Value numberValue. */ + public numberValue?: (number|null); + + /** Value stringValue. */ + public stringValue?: (string|null); + + /** Value boolValue. */ + public boolValue?: (boolean|null); + + /** Value structValue. */ + public structValue?: (google.protobuf.IStruct|null); + + /** Value listValue. */ + public listValue?: (google.protobuf.IListValue|null); + + /** Value kind. */ + public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.protobuf.IValue): google.protobuf.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @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.protobuf.Value; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Value + * @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.protobuf.Value; + + /** + * Verifies a Value 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 Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Value; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** NullValue enum. */ + enum NullValue { + NULL_VALUE = 0 + } + + /** Properties of a ListValue. */ + interface IListValue { + + /** ListValue values */ + values?: (google.protobuf.IValue[]|null); + } + + /** Represents a ListValue. */ + class ListValue implements IListValue { + + /** + * Constructs a new ListValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IListValue); + + /** ListValue values. */ + public values: google.protobuf.IValue[]; + + /** + * Creates a new ListValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ListValue instance + */ + public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @param message ListValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @param message ListValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListValue + * @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.protobuf.ListValue; + + /** + * Decodes a ListValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListValue + * @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.protobuf.ListValue; + + /** + * Verifies a ListValue 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 ListValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue; + + /** + * Creates a plain object from a ListValue message. Also converts values to other types if specified. + * @param message ListValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Timestamp. */ + interface ITimestamp { + + /** Timestamp seconds */ + seconds?: (number|Long|string|null); + + /** Timestamp nanos */ + nanos?: (number|null); + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: (number|Long|string); + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @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.protobuf.Timestamp; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Timestamp + * @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.protobuf.Timestamp; + + /** + * Verifies a Timestamp 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 Timestamp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Timestamp + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Timestamp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Timestamp + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace longrunning. */ + namespace longrunning { + + /** Represents an Operations */ + class Operations extends $protobuf.rpc.Service { + + /** + * Constructs a new Operations service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Operations service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations; + + /** + * Calls ListOperations. + * @param request ListOperationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListOperationsResponse + */ + public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void; + + /** + * Calls ListOperations. + * @param request ListOperationsRequest message or plain object + * @returns Promise + */ + public listOperations(request: google.longrunning.IListOperationsRequest): Promise; + + /** + * Calls GetOperation. + * @param request GetOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void; + + /** + * Calls GetOperation. + * @param request GetOperationRequest message or plain object + * @returns Promise + */ + public getOperation(request: google.longrunning.IGetOperationRequest): Promise; + + /** + * Calls DeleteOperation. + * @param request DeleteOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void; + + /** + * Calls DeleteOperation. + * @param request DeleteOperationRequest message or plain object + * @returns Promise + */ + public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise; + + /** + * Calls CancelOperation. + * @param request CancelOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void; + + /** + * Calls CancelOperation. + * @param request CancelOperationRequest message or plain object + * @returns Promise + */ + public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise; + + /** + * Calls WaitOperation. + * @param request WaitOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void; + + /** + * Calls WaitOperation. + * @param request WaitOperationRequest message or plain object + * @returns Promise + */ + public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise; + } + + namespace Operations { + + /** + * Callback as used by {@link google.longrunning.Operations|listOperations}. + * @param error Error, if any + * @param [response] ListOperationsResponse + */ + type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; + + /** + * Callback as used by {@link google.longrunning.Operations|getOperation}. + * @param error Error, if any + * @param [response] Operation + */ + type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * @param error Error, if any + * @param [response] Operation + */ + type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + } + + /** Properties of an Operation. */ + interface IOperation { + + /** Operation name */ + name?: (string|null); + + /** Operation metadata */ + metadata?: (google.protobuf.IAny|null); + + /** Operation done */ + done?: (boolean|null); + + /** Operation error */ + error?: (google.rpc.IStatus|null); + + /** Operation response */ + response?: (google.protobuf.IAny|null); + } + + /** Represents an Operation. */ + class Operation implements IOperation { + + /** + * Constructs a new Operation. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IOperation); + + /** Operation name. */ + public name: string; + + /** Operation metadata. */ + public metadata?: (google.protobuf.IAny|null); + + /** Operation done. */ + public done: boolean; + + /** Operation error. */ + public error?: (google.rpc.IStatus|null); + + /** Operation response. */ + public response?: (google.protobuf.IAny|null); + + /** Operation result. */ + public result?: ("error"|"response"); + + /** + * Creates a new Operation instance using the specified properties. + * @param [properties] Properties to set + * @returns Operation instance + */ + public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation; + + /** + * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Operation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Operation + * @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.longrunning.Operation; + + /** + * Decodes an Operation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Operation + * @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.longrunning.Operation; + + /** + * Verifies an Operation 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 an Operation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Operation + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.Operation; + + /** + * Creates a plain object from an Operation message. Also converts values to other types if specified. + * @param message Operation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Operation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Operation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetOperationRequest. */ + interface IGetOperationRequest { + + /** GetOperationRequest name */ + name?: (string|null); + } + + /** Represents a GetOperationRequest. */ + class GetOperationRequest implements IGetOperationRequest { + + /** + * Constructs a new GetOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IGetOperationRequest); + + /** GetOperationRequest name. */ + public name: string; + + /** + * Creates a new GetOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetOperationRequest instance + */ + public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest; + + /** + * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * @param message GetOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * @param message GetOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetOperationRequest + * @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.longrunning.GetOperationRequest; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetOperationRequest + * @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.longrunning.GetOperationRequest; + + /** + * Verifies a GetOperationRequest 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 GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest; + + /** + * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * @param message GetOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetOperationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListOperationsRequest. */ + interface IListOperationsRequest { + + /** ListOperationsRequest name */ + name?: (string|null); + + /** ListOperationsRequest filter */ + filter?: (string|null); + + /** ListOperationsRequest pageSize */ + pageSize?: (number|null); + + /** ListOperationsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListOperationsRequest. */ + class ListOperationsRequest implements IListOperationsRequest { + + /** + * Constructs a new ListOperationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IListOperationsRequest); + + /** ListOperationsRequest name. */ + public name: string; + + /** ListOperationsRequest filter. */ + public filter: string; + + /** ListOperationsRequest pageSize. */ + public pageSize: number; + + /** ListOperationsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListOperationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOperationsRequest instance + */ + public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest; + + /** + * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * @param message ListOperationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * @param message ListOperationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListOperationsRequest + * @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.longrunning.ListOperationsRequest; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListOperationsRequest + * @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.longrunning.ListOperationsRequest; + + /** + * Verifies a ListOperationsRequest 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 ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListOperationsRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest; + + /** + * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. + * @param message ListOperationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListOperationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListOperationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListOperationsResponse. */ + interface IListOperationsResponse { + + /** ListOperationsResponse operations */ + operations?: (google.longrunning.IOperation[]|null); + + /** ListOperationsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListOperationsResponse. */ + class ListOperationsResponse implements IListOperationsResponse { + + /** + * Constructs a new ListOperationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IListOperationsResponse); + + /** ListOperationsResponse operations. */ + public operations: google.longrunning.IOperation[]; + + /** ListOperationsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListOperationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOperationsResponse instance + */ + public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse; + + /** + * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * @param message ListOperationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * @param message ListOperationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListOperationsResponse + * @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.longrunning.ListOperationsResponse; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListOperationsResponse + * @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.longrunning.ListOperationsResponse; + + /** + * Verifies a ListOperationsResponse 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 ListOperationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListOperationsResponse + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse; + + /** + * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * @param message ListOperationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListOperationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListOperationsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CancelOperationRequest. */ + interface ICancelOperationRequest { + + /** CancelOperationRequest name */ + name?: (string|null); + } + + /** Represents a CancelOperationRequest. */ + class CancelOperationRequest implements ICancelOperationRequest { + + /** + * Constructs a new CancelOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.ICancelOperationRequest); + + /** CancelOperationRequest name. */ + public name: string; + + /** + * Creates a new CancelOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelOperationRequest instance + */ + public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest; + + /** + * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * @param message CancelOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * @param message CancelOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelOperationRequest + * @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.longrunning.CancelOperationRequest; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelOperationRequest + * @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.longrunning.CancelOperationRequest; + + /** + * Verifies a CancelOperationRequest 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 CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest; + + /** + * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * @param message CancelOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelOperationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteOperationRequest. */ + interface IDeleteOperationRequest { + + /** DeleteOperationRequest name */ + name?: (string|null); + } + + /** Represents a DeleteOperationRequest. */ + class DeleteOperationRequest implements IDeleteOperationRequest { + + /** + * Constructs a new DeleteOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IDeleteOperationRequest); + + /** DeleteOperationRequest name. */ + public name: string; + + /** + * Creates a new DeleteOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteOperationRequest instance + */ + public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest; + + /** + * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * @param message DeleteOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * @param message DeleteOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteOperationRequest + * @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.longrunning.DeleteOperationRequest; + + /** + * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteOperationRequest + * @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.longrunning.DeleteOperationRequest; + + /** + * Verifies a DeleteOperationRequest 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 DeleteOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest; + + /** + * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified. + * @param message DeleteOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteOperationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WaitOperationRequest. */ + interface IWaitOperationRequest { + + /** WaitOperationRequest name */ + name?: (string|null); + + /** WaitOperationRequest timeout */ + timeout?: (google.protobuf.IDuration|null); + } + + /** Represents a WaitOperationRequest. */ + class WaitOperationRequest implements IWaitOperationRequest { + + /** + * Constructs a new WaitOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IWaitOperationRequest); + + /** WaitOperationRequest name. */ + public name: string; + + /** WaitOperationRequest timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** + * Creates a new WaitOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WaitOperationRequest instance + */ + public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest; + + /** + * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * @param message WaitOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * @param message WaitOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WaitOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WaitOperationRequest + * @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.longrunning.WaitOperationRequest; + + /** + * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WaitOperationRequest + * @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.longrunning.WaitOperationRequest; + + /** + * Verifies a WaitOperationRequest 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 WaitOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WaitOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest; + + /** + * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified. + * @param message WaitOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WaitOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WaitOperationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OperationInfo. */ + interface IOperationInfo { + + /** OperationInfo responseType */ + responseType?: (string|null); + + /** OperationInfo metadataType */ + metadataType?: (string|null); + } + + /** Represents an OperationInfo. */ + class OperationInfo implements IOperationInfo { + + /** + * Constructs a new OperationInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.longrunning.IOperationInfo); + + /** OperationInfo responseType. */ + public responseType: string; + + /** OperationInfo metadataType. */ + public metadataType: string; + + /** + * Creates a new OperationInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationInfo instance + */ + public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo; + + /** + * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * @param message OperationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * @param message OperationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OperationInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationInfo + * @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.longrunning.OperationInfo; + + /** + * Decodes an OperationInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OperationInfo + * @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.longrunning.OperationInfo; + + /** + * Verifies an OperationInfo 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 an OperationInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OperationInfo + */ + public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo; + + /** + * Creates a plain object from an OperationInfo message. Also converts values to other types if specified. + * @param message OperationInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OperationInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OperationInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace rpc. */ + namespace rpc { + + /** Properties of a Status. */ + interface IStatus { + + /** Status code */ + code?: (number|null); + + /** Status message */ + message?: (string|null); + + /** Status details */ + details?: (google.protobuf.IAny[]|null); + } + + /** Represents a Status. */ + class Status implements IStatus { + + /** + * Constructs a new Status. + * @param [properties] Properties to set + */ + constructor(properties?: google.rpc.IStatus); + + /** Status code. */ + public code: number; + + /** Status message. */ + public message: string; + + /** Status details. */ + public details: google.protobuf.IAny[]; + + /** + * Creates a new Status instance using the specified properties. + * @param [properties] Properties to set + * @returns Status instance + */ + public static create(properties?: google.rpc.IStatus): google.rpc.Status; + + /** + * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Status message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Status + * @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.rpc.Status; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Status + * @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.rpc.Status; + + /** + * Verifies a Status 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 Status message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Status + */ + public static fromObject(object: { [k: string]: any }): google.rpc.Status; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Status to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Status + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } +} diff --git a/packages/google-cloud-datacatalog-lineage/protos/protos.js b/packages/google-cloud-datacatalog-lineage/protos/protos.js new file mode 100644 index 000000000000..fded4ed72814 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/protos/protos.js @@ -0,0 +1,24347 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +(function(global, factory) { /* global define, require, module */ + + /* AMD */ if (typeof define === 'function' && define.amd) + define(["protobufjs/minimal"], factory); + + /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) + module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal); + +})(this, function($protobuf) { + "use strict"; + + // Common aliases + var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + + // Exported root namespace + var $root = $protobuf.roots._google_cloud_lineage_protos || ($protobuf.roots._google_cloud_lineage_protos = {}); + + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.cloud = (function() { + + /** + * Namespace cloud. + * @memberof google + * @namespace + */ + var cloud = {}; + + cloud.datacatalog = (function() { + + /** + * Namespace datacatalog. + * @memberof google.cloud + * @namespace + */ + var datacatalog = {}; + + datacatalog.lineage = (function() { + + /** + * Namespace lineage. + * @memberof google.cloud.datacatalog + * @namespace + */ + var lineage = {}; + + lineage.v1 = (function() { + + /** + * Namespace v1. + * @memberof google.cloud.datacatalog.lineage + * @namespace + */ + var v1 = {}; + + v1.Lineage = (function() { + + /** + * Constructs a new Lineage service. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a Lineage + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Lineage(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Lineage.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Lineage; + + /** + * Creates new Lineage service using the specified rpc implementation. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Lineage} RPC service. Useful where requests and/or responses are streamed. + */ + Lineage.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|createProcess}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef CreateProcessCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.Process} [response] Process + */ + + /** + * Calls CreateProcess. + * @function createProcess + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.ICreateProcessRequest} request CreateProcessRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.CreateProcessCallback} callback Node-style callback called with the error, if any, and Process + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.createProcess = function createProcess(request, callback) { + return this.rpcCall(createProcess, $root.google.cloud.datacatalog.lineage.v1.CreateProcessRequest, $root.google.cloud.datacatalog.lineage.v1.Process, request, callback); + }, "name", { value: "CreateProcess" }); + + /** + * Calls CreateProcess. + * @function createProcess + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.ICreateProcessRequest} request CreateProcessRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|updateProcess}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef UpdateProcessCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.Process} [response] Process + */ + + /** + * Calls UpdateProcess. + * @function updateProcess + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest} request UpdateProcessRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.UpdateProcessCallback} callback Node-style callback called with the error, if any, and Process + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.updateProcess = function updateProcess(request, callback) { + return this.rpcCall(updateProcess, $root.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest, $root.google.cloud.datacatalog.lineage.v1.Process, request, callback); + }, "name", { value: "UpdateProcess" }); + + /** + * Calls UpdateProcess. + * @function updateProcess + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest} request UpdateProcessRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|getProcess}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef GetProcessCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.Process} [response] Process + */ + + /** + * Calls GetProcess. + * @function getProcess + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IGetProcessRequest} request GetProcessRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.GetProcessCallback} callback Node-style callback called with the error, if any, and Process + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.getProcess = function getProcess(request, callback) { + return this.rpcCall(getProcess, $root.google.cloud.datacatalog.lineage.v1.GetProcessRequest, $root.google.cloud.datacatalog.lineage.v1.Process, request, callback); + }, "name", { value: "GetProcess" }); + + /** + * Calls GetProcess. + * @function getProcess + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IGetProcessRequest} request GetProcessRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|listProcesses}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef ListProcessesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.ListProcessesResponse} [response] ListProcessesResponse + */ + + /** + * Calls ListProcesses. + * @function listProcesses + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesRequest} request ListProcessesRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.ListProcessesCallback} callback Node-style callback called with the error, if any, and ListProcessesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.listProcesses = function listProcesses(request, callback) { + return this.rpcCall(listProcesses, $root.google.cloud.datacatalog.lineage.v1.ListProcessesRequest, $root.google.cloud.datacatalog.lineage.v1.ListProcessesResponse, request, callback); + }, "name", { value: "ListProcesses" }); + + /** + * Calls ListProcesses. + * @function listProcesses + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesRequest} request ListProcessesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|deleteProcess}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef DeleteProcessCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteProcess. + * @function deleteProcess + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest} request DeleteProcessRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.DeleteProcessCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.deleteProcess = function deleteProcess(request, callback) { + return this.rpcCall(deleteProcess, $root.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteProcess" }); + + /** + * Calls DeleteProcess. + * @function deleteProcess + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest} request DeleteProcessRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|createRun}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef CreateRunCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.Run} [response] Run + */ + + /** + * Calls CreateRun. + * @function createRun + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.ICreateRunRequest} request CreateRunRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.CreateRunCallback} callback Node-style callback called with the error, if any, and Run + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.createRun = function createRun(request, callback) { + return this.rpcCall(createRun, $root.google.cloud.datacatalog.lineage.v1.CreateRunRequest, $root.google.cloud.datacatalog.lineage.v1.Run, request, callback); + }, "name", { value: "CreateRun" }); + + /** + * Calls CreateRun. + * @function createRun + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.ICreateRunRequest} request CreateRunRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|updateRun}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef UpdateRunCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.Run} [response] Run + */ + + /** + * Calls UpdateRun. + * @function updateRun + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IUpdateRunRequest} request UpdateRunRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.UpdateRunCallback} callback Node-style callback called with the error, if any, and Run + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.updateRun = function updateRun(request, callback) { + return this.rpcCall(updateRun, $root.google.cloud.datacatalog.lineage.v1.UpdateRunRequest, $root.google.cloud.datacatalog.lineage.v1.Run, request, callback); + }, "name", { value: "UpdateRun" }); + + /** + * Calls UpdateRun. + * @function updateRun + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IUpdateRunRequest} request UpdateRunRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|getRun}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef GetRunCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.Run} [response] Run + */ + + /** + * Calls GetRun. + * @function getRun + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IGetRunRequest} request GetRunRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.GetRunCallback} callback Node-style callback called with the error, if any, and Run + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.getRun = function getRun(request, callback) { + return this.rpcCall(getRun, $root.google.cloud.datacatalog.lineage.v1.GetRunRequest, $root.google.cloud.datacatalog.lineage.v1.Run, request, callback); + }, "name", { value: "GetRun" }); + + /** + * Calls GetRun. + * @function getRun + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IGetRunRequest} request GetRunRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|listRuns}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef ListRunsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.ListRunsResponse} [response] ListRunsResponse + */ + + /** + * Calls ListRuns. + * @function listRuns + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IListRunsRequest} request ListRunsRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.ListRunsCallback} callback Node-style callback called with the error, if any, and ListRunsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.listRuns = function listRuns(request, callback) { + return this.rpcCall(listRuns, $root.google.cloud.datacatalog.lineage.v1.ListRunsRequest, $root.google.cloud.datacatalog.lineage.v1.ListRunsResponse, request, callback); + }, "name", { value: "ListRuns" }); + + /** + * Calls ListRuns. + * @function listRuns + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IListRunsRequest} request ListRunsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|deleteRun}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef DeleteRunCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteRun. + * @function deleteRun + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IDeleteRunRequest} request DeleteRunRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.DeleteRunCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.deleteRun = function deleteRun(request, callback) { + return this.rpcCall(deleteRun, $root.google.cloud.datacatalog.lineage.v1.DeleteRunRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteRun" }); + + /** + * Calls DeleteRun. + * @function deleteRun + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IDeleteRunRequest} request DeleteRunRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|createLineageEvent}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef CreateLineageEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.LineageEvent} [response] LineageEvent + */ + + /** + * Calls CreateLineageEvent. + * @function createLineageEvent + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest} request CreateLineageEventRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.CreateLineageEventCallback} callback Node-style callback called with the error, if any, and LineageEvent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.createLineageEvent = function createLineageEvent(request, callback) { + return this.rpcCall(createLineageEvent, $root.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest, $root.google.cloud.datacatalog.lineage.v1.LineageEvent, request, callback); + }, "name", { value: "CreateLineageEvent" }); + + /** + * Calls CreateLineageEvent. + * @function createLineageEvent + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest} request CreateLineageEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|getLineageEvent}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef GetLineageEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.LineageEvent} [response] LineageEvent + */ + + /** + * Calls GetLineageEvent. + * @function getLineageEvent + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest} request GetLineageEventRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.GetLineageEventCallback} callback Node-style callback called with the error, if any, and LineageEvent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.getLineageEvent = function getLineageEvent(request, callback) { + return this.rpcCall(getLineageEvent, $root.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest, $root.google.cloud.datacatalog.lineage.v1.LineageEvent, request, callback); + }, "name", { value: "GetLineageEvent" }); + + /** + * Calls GetLineageEvent. + * @function getLineageEvent + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest} request GetLineageEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|listLineageEvents}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef ListLineageEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse} [response] ListLineageEventsResponse + */ + + /** + * Calls ListLineageEvents. + * @function listLineageEvents + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest} request ListLineageEventsRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.ListLineageEventsCallback} callback Node-style callback called with the error, if any, and ListLineageEventsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.listLineageEvents = function listLineageEvents(request, callback) { + return this.rpcCall(listLineageEvents, $root.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest, $root.google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse, request, callback); + }, "name", { value: "ListLineageEvents" }); + + /** + * Calls ListLineageEvents. + * @function listLineageEvents + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest} request ListLineageEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|deleteLineageEvent}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef DeleteLineageEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteLineageEvent. + * @function deleteLineageEvent + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest} request DeleteLineageEventRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.DeleteLineageEventCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.deleteLineageEvent = function deleteLineageEvent(request, callback) { + return this.rpcCall(deleteLineageEvent, $root.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteLineageEvent" }); + + /** + * Calls DeleteLineageEvent. + * @function deleteLineageEvent + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest} request DeleteLineageEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|searchLinks}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef SearchLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.SearchLinksResponse} [response] SearchLinksResponse + */ + + /** + * Calls SearchLinks. + * @function searchLinks + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksRequest} request SearchLinksRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.SearchLinksCallback} callback Node-style callback called with the error, if any, and SearchLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.searchLinks = function searchLinks(request, callback) { + return this.rpcCall(searchLinks, $root.google.cloud.datacatalog.lineage.v1.SearchLinksRequest, $root.google.cloud.datacatalog.lineage.v1.SearchLinksResponse, request, callback); + }, "name", { value: "SearchLinks" }); + + /** + * Calls SearchLinks. + * @function searchLinks + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksRequest} request SearchLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.datacatalog.lineage.v1.Lineage|batchSearchLinkProcesses}. + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @typedef BatchSearchLinkProcessesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse} [response] BatchSearchLinkProcessesResponse + */ + + /** + * Calls BatchSearchLinkProcesses. + * @function batchSearchLinkProcesses + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest} request BatchSearchLinkProcessesRequest message or plain object + * @param {google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcessesCallback} callback Node-style callback called with the error, if any, and BatchSearchLinkProcessesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Lineage.prototype.batchSearchLinkProcesses = function batchSearchLinkProcesses(request, callback) { + return this.rpcCall(batchSearchLinkProcesses, $root.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest, $root.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse, request, callback); + }, "name", { value: "BatchSearchLinkProcesses" }); + + /** + * Calls BatchSearchLinkProcesses. + * @function batchSearchLinkProcesses + * @memberof google.cloud.datacatalog.lineage.v1.Lineage + * @instance + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest} request BatchSearchLinkProcessesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Lineage; + })(); + + v1.Process = (function() { + + /** + * Properties of a Process. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IProcess + * @property {string|null} [name] Process name + * @property {string|null} [displayName] Process displayName + * @property {Object.|null} [attributes] Process attributes + * @property {google.cloud.datacatalog.lineage.v1.IOrigin|null} [origin] Process origin + */ + + /** + * Constructs a new Process. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a Process. + * @implements IProcess + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IProcess=} [properties] Properties to set + */ + function Process(properties) { + this.attributes = {}; + 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]]; + } + + /** + * Process name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @instance + */ + Process.prototype.name = ""; + + /** + * Process displayName. + * @member {string} displayName + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @instance + */ + Process.prototype.displayName = ""; + + /** + * Process attributes. + * @member {Object.} attributes + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @instance + */ + Process.prototype.attributes = $util.emptyObject; + + /** + * Process origin. + * @member {google.cloud.datacatalog.lineage.v1.IOrigin|null|undefined} origin + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @instance + */ + Process.prototype.origin = null; + + /** + * Creates a new Process instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @static + * @param {google.cloud.datacatalog.lineage.v1.IProcess=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.Process} Process instance + */ + Process.create = function create(properties) { + return new Process(properties); + }; + + /** + * Encodes the specified Process message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Process.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @static + * @param {google.cloud.datacatalog.lineage.v1.IProcess} message Process message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Process.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) + for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.attributes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) + $root.google.cloud.datacatalog.lineage.v1.Origin.encode(message.origin, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Process message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Process.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @static + * @param {google.cloud.datacatalog.lineage.v1.IProcess} message Process message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Process.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Process message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.Process} Process + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Process.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.Process(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + if (message.attributes === $util.emptyObject) + message.attributes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributes[key] = value; + break; + } + case 4: { + message.origin = $root.google.cloud.datacatalog.lineage.v1.Origin.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Process message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.Process} Process + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Process.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Process message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Process.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + if (!$util.isObject(message.attributes)) + return "attributes: object expected"; + var key = Object.keys(message.attributes); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.attributes[key[i]]); + if (error) + return "attributes." + error; + } + } + if (message.origin != null && message.hasOwnProperty("origin")) { + var error = $root.google.cloud.datacatalog.lineage.v1.Origin.verify(message.origin); + if (error) + return "origin." + error; + } + return null; + }; + + /** + * Creates a Process message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.Process} Process + */ + Process.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.Process) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.Process(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.attributes) { + if (typeof object.attributes !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Process.attributes: object expected"); + message.attributes = {}; + for (var keys = Object.keys(object.attributes), i = 0; i < keys.length; ++i) { + if (typeof object.attributes[keys[i]] !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Process.attributes: object expected"); + message.attributes[keys[i]] = $root.google.protobuf.Value.fromObject(object.attributes[keys[i]]); + } + } + if (object.origin != null) { + if (typeof object.origin !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Process.origin: object expected"); + message.origin = $root.google.cloud.datacatalog.lineage.v1.Origin.fromObject(object.origin); + } + return message; + }; + + /** + * Creates a plain object from a Process message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @static + * @param {google.cloud.datacatalog.lineage.v1.Process} message Process + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Process.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.attributes = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.origin = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + var keys2; + if (message.attributes && (keys2 = Object.keys(message.attributes)).length) { + object.attributes = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributes[keys2[j]] = $root.google.protobuf.Value.toObject(message.attributes[keys2[j]], options); + } + if (message.origin != null && message.hasOwnProperty("origin")) + object.origin = $root.google.cloud.datacatalog.lineage.v1.Origin.toObject(message.origin, options); + return object; + }; + + /** + * Converts this Process to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @instance + * @returns {Object.} JSON object + */ + Process.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Process + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.Process + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Process.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.Process"; + }; + + return Process; + })(); + + v1.Run = (function() { + + /** + * Properties of a Run. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IRun + * @property {string|null} [name] Run name + * @property {string|null} [displayName] Run displayName + * @property {Object.|null} [attributes] Run attributes + * @property {google.protobuf.ITimestamp|null} [startTime] Run startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Run endTime + * @property {google.cloud.datacatalog.lineage.v1.Run.State|null} [state] Run state + */ + + /** + * Constructs a new Run. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a Run. + * @implements IRun + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IRun=} [properties] Properties to set + */ + function Run(properties) { + this.attributes = {}; + 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]]; + } + + /** + * Run name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @instance + */ + Run.prototype.name = ""; + + /** + * Run displayName. + * @member {string} displayName + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @instance + */ + Run.prototype.displayName = ""; + + /** + * Run attributes. + * @member {Object.} attributes + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @instance + */ + Run.prototype.attributes = $util.emptyObject; + + /** + * Run startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @instance + */ + Run.prototype.startTime = null; + + /** + * Run endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @instance + */ + Run.prototype.endTime = null; + + /** + * Run state. + * @member {google.cloud.datacatalog.lineage.v1.Run.State} state + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @instance + */ + Run.prototype.state = 0; + + /** + * Creates a new Run instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @static + * @param {google.cloud.datacatalog.lineage.v1.IRun=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.Run} Run instance + */ + Run.create = function create(properties) { + return new Run(properties); + }; + + /** + * Encodes the specified Run message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Run.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @static + * @param {google.cloud.datacatalog.lineage.v1.IRun} message Run message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Run.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) + for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.attributes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + return writer; + }; + + /** + * Encodes the specified Run message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Run.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @static + * @param {google.cloud.datacatalog.lineage.v1.IRun} message Run message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Run.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Run message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.Run} Run + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Run.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.Run(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + if (message.attributes === $util.emptyObject) + message.attributes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributes[key] = value; + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Run message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.Run} Run + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Run.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Run message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Run.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + if (!$util.isObject(message.attributes)) + return "attributes: object expected"; + var key = Object.keys(message.attributes); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.attributes[key[i]]); + if (error) + return "attributes." + error; + } + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Creates a Run message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.Run} Run + */ + Run.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.Run) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.Run(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.attributes) { + if (typeof object.attributes !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Run.attributes: object expected"); + message.attributes = {}; + for (var keys = Object.keys(object.attributes), i = 0; i < keys.length; ++i) { + if (typeof object.attributes[keys[i]] !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Run.attributes: object expected"); + message.attributes[keys[i]] = $root.google.protobuf.Value.fromObject(object.attributes[keys[i]]); + } + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Run.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Run.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "UNKNOWN": + case 0: + message.state = 0; + break; + case "STARTED": + case 1: + message.state = 1; + break; + case "COMPLETED": + case 2: + message.state = 2; + break; + case "FAILED": + case 3: + message.state = 3; + break; + case "ABORTED": + case 4: + message.state = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from a Run message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @static + * @param {google.cloud.datacatalog.lineage.v1.Run} message Run + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Run.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.attributes = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.startTime = null; + object.endTime = null; + object.state = options.enums === String ? "UNKNOWN" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + var keys2; + if (message.attributes && (keys2 = Object.keys(message.attributes)).length) { + object.attributes = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributes[keys2[j]] = $root.google.protobuf.Value.toObject(message.attributes[keys2[j]], options); + } + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.datacatalog.lineage.v1.Run.State[message.state] === undefined ? message.state : $root.google.cloud.datacatalog.lineage.v1.Run.State[message.state] : message.state; + return object; + }; + + /** + * Converts this Run to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @instance + * @returns {Object.} JSON object + */ + Run.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Run + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.Run + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Run.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.Run"; + }; + + /** + * State enum. + * @name google.cloud.datacatalog.lineage.v1.Run.State + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} STARTED=1 STARTED value + * @property {number} COMPLETED=2 COMPLETED value + * @property {number} FAILED=3 FAILED value + * @property {number} ABORTED=4 ABORTED value + */ + Run.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "STARTED"] = 1; + values[valuesById[2] = "COMPLETED"] = 2; + values[valuesById[3] = "FAILED"] = 3; + values[valuesById[4] = "ABORTED"] = 4; + return values; + })(); + + return Run; + })(); + + v1.LineageEvent = (function() { + + /** + * Properties of a LineageEvent. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface ILineageEvent + * @property {string|null} [name] LineageEvent name + * @property {Array.|null} [links] LineageEvent links + * @property {google.protobuf.ITimestamp|null} [startTime] LineageEvent startTime + * @property {google.protobuf.ITimestamp|null} [endTime] LineageEvent endTime + */ + + /** + * Constructs a new LineageEvent. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a LineageEvent. + * @implements ILineageEvent + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.ILineageEvent=} [properties] Properties to set + */ + function LineageEvent(properties) { + this.links = []; + 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]]; + } + + /** + * LineageEvent name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @instance + */ + LineageEvent.prototype.name = ""; + + /** + * LineageEvent links. + * @member {Array.} links + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @instance + */ + LineageEvent.prototype.links = $util.emptyArray; + + /** + * LineageEvent startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @instance + */ + LineageEvent.prototype.startTime = null; + + /** + * LineageEvent endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @instance + */ + LineageEvent.prototype.endTime = null; + + /** + * Creates a new LineageEvent instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @static + * @param {google.cloud.datacatalog.lineage.v1.ILineageEvent=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.LineageEvent} LineageEvent instance + */ + LineageEvent.create = function create(properties) { + return new LineageEvent(properties); + }; + + /** + * Encodes the specified LineageEvent message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.LineageEvent.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @static + * @param {google.cloud.datacatalog.lineage.v1.ILineageEvent} message LineageEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LineageEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.links != null && message.links.length) + for (var i = 0; i < message.links.length; ++i) + $root.google.cloud.datacatalog.lineage.v1.EventLink.encode(message.links[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LineageEvent message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.LineageEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @static + * @param {google.cloud.datacatalog.lineage.v1.ILineageEvent} message LineageEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LineageEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LineageEvent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.LineageEvent} LineageEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LineageEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.LineageEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 8: { + if (!(message.links && message.links.length)) + message.links = []; + message.links.push($root.google.cloud.datacatalog.lineage.v1.EventLink.decode(reader, reader.uint32())); + break; + } + case 6: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LineageEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.LineageEvent} LineageEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LineageEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LineageEvent message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LineageEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.links != null && message.hasOwnProperty("links")) { + if (!Array.isArray(message.links)) + return "links: array expected"; + for (var i = 0; i < message.links.length; ++i) { + var error = $root.google.cloud.datacatalog.lineage.v1.EventLink.verify(message.links[i]); + if (error) + return "links." + error; + } + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates a LineageEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.LineageEvent} LineageEvent + */ + LineageEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.LineageEvent) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.LineageEvent(); + if (object.name != null) + message.name = String(object.name); + if (object.links) { + if (!Array.isArray(object.links)) + throw TypeError(".google.cloud.datacatalog.lineage.v1.LineageEvent.links: array expected"); + message.links = []; + for (var i = 0; i < object.links.length; ++i) { + if (typeof object.links[i] !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.LineageEvent.links: object expected"); + message.links[i] = $root.google.cloud.datacatalog.lineage.v1.EventLink.fromObject(object.links[i]); + } + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.LineageEvent.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.LineageEvent.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a LineageEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @static + * @param {google.cloud.datacatalog.lineage.v1.LineageEvent} message LineageEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LineageEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.links = []; + if (options.defaults) { + object.name = ""; + object.startTime = null; + object.endTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.links && message.links.length) { + object.links = []; + for (var j = 0; j < message.links.length; ++j) + object.links[j] = $root.google.cloud.datacatalog.lineage.v1.EventLink.toObject(message.links[j], options); + } + return object; + }; + + /** + * Converts this LineageEvent to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @instance + * @returns {Object.} JSON object + */ + LineageEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LineageEvent + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.LineageEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LineageEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.LineageEvent"; + }; + + return LineageEvent; + })(); + + v1.EventLink = (function() { + + /** + * Properties of an EventLink. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IEventLink + * @property {google.cloud.datacatalog.lineage.v1.IEntityReference|null} [source] EventLink source + * @property {google.cloud.datacatalog.lineage.v1.IEntityReference|null} [target] EventLink target + */ + + /** + * Constructs a new EventLink. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents an EventLink. + * @implements IEventLink + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IEventLink=} [properties] Properties to set + */ + function EventLink(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]]; + } + + /** + * EventLink source. + * @member {google.cloud.datacatalog.lineage.v1.IEntityReference|null|undefined} source + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @instance + */ + EventLink.prototype.source = null; + + /** + * EventLink target. + * @member {google.cloud.datacatalog.lineage.v1.IEntityReference|null|undefined} target + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @instance + */ + EventLink.prototype.target = null; + + /** + * Creates a new EventLink instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @static + * @param {google.cloud.datacatalog.lineage.v1.IEventLink=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.EventLink} EventLink instance + */ + EventLink.create = function create(properties) { + return new EventLink(properties); + }; + + /** + * Encodes the specified EventLink message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.EventLink.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @static + * @param {google.cloud.datacatalog.lineage.v1.IEventLink} message EventLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventLink.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.google.cloud.datacatalog.lineage.v1.EntityReference.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.google.cloud.datacatalog.lineage.v1.EntityReference.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EventLink message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.EventLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @static + * @param {google.cloud.datacatalog.lineage.v1.IEventLink} message EventLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EventLink message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.EventLink} EventLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventLink.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.EventLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.source = $root.google.cloud.datacatalog.lineage.v1.EntityReference.decode(reader, reader.uint32()); + break; + } + case 2: { + message.target = $root.google.cloud.datacatalog.lineage.v1.EntityReference.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EventLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.EventLink} EventLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EventLink message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventLink.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.google.cloud.datacatalog.lineage.v1.EntityReference.verify(message.source); + if (error) + return "source." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.google.cloud.datacatalog.lineage.v1.EntityReference.verify(message.target); + if (error) + return "target." + error; + } + return null; + }; + + /** + * Creates an EventLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.EventLink} EventLink + */ + EventLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.EventLink) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.EventLink(); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.EventLink.source: object expected"); + message.source = $root.google.cloud.datacatalog.lineage.v1.EntityReference.fromObject(object.source); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.EventLink.target: object expected"); + message.target = $root.google.cloud.datacatalog.lineage.v1.EntityReference.fromObject(object.target); + } + return message; + }; + + /** + * Creates a plain object from an EventLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @static + * @param {google.cloud.datacatalog.lineage.v1.EventLink} message EventLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EventLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.source = null; + object.target = null; + } + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.google.cloud.datacatalog.lineage.v1.EntityReference.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.google.cloud.datacatalog.lineage.v1.EntityReference.toObject(message.target, options); + return object; + }; + + /** + * Converts this EventLink to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @instance + * @returns {Object.} JSON object + */ + EventLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EventLink + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.EventLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EventLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.EventLink"; + }; + + return EventLink; + })(); + + v1.EntityReference = (function() { + + /** + * Properties of an EntityReference. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IEntityReference + * @property {string|null} [fullyQualifiedName] EntityReference fullyQualifiedName + */ + + /** + * Constructs a new EntityReference. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents an EntityReference. + * @implements IEntityReference + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IEntityReference=} [properties] Properties to set + */ + function EntityReference(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]]; + } + + /** + * EntityReference fullyQualifiedName. + * @member {string} fullyQualifiedName + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @instance + */ + EntityReference.prototype.fullyQualifiedName = ""; + + /** + * Creates a new EntityReference instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @static + * @param {google.cloud.datacatalog.lineage.v1.IEntityReference=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.EntityReference} EntityReference instance + */ + EntityReference.create = function create(properties) { + return new EntityReference(properties); + }; + + /** + * Encodes the specified EntityReference message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.EntityReference.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @static + * @param {google.cloud.datacatalog.lineage.v1.IEntityReference} message EntityReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fullyQualifiedName != null && Object.hasOwnProperty.call(message, "fullyQualifiedName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fullyQualifiedName); + return writer; + }; + + /** + * Encodes the specified EntityReference message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.EntityReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @static + * @param {google.cloud.datacatalog.lineage.v1.IEntityReference} message EntityReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EntityReference message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.EntityReference} EntityReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.EntityReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.fullyQualifiedName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EntityReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.EntityReference} EntityReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EntityReference message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EntityReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fullyQualifiedName != null && message.hasOwnProperty("fullyQualifiedName")) + if (!$util.isString(message.fullyQualifiedName)) + return "fullyQualifiedName: string expected"; + return null; + }; + + /** + * Creates an EntityReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.EntityReference} EntityReference + */ + EntityReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.EntityReference) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.EntityReference(); + if (object.fullyQualifiedName != null) + message.fullyQualifiedName = String(object.fullyQualifiedName); + return message; + }; + + /** + * Creates a plain object from an EntityReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @static + * @param {google.cloud.datacatalog.lineage.v1.EntityReference} message EntityReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EntityReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.fullyQualifiedName = ""; + if (message.fullyQualifiedName != null && message.hasOwnProperty("fullyQualifiedName")) + object.fullyQualifiedName = message.fullyQualifiedName; + return object; + }; + + /** + * Converts this EntityReference to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @instance + * @returns {Object.} JSON object + */ + EntityReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EntityReference + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.EntityReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EntityReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.EntityReference"; + }; + + return EntityReference; + })(); + + v1.OperationMetadata = (function() { + + /** + * Properties of an OperationMetadata. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IOperationMetadata + * @property {google.cloud.datacatalog.lineage.v1.OperationMetadata.State|null} [state] OperationMetadata state + * @property {google.cloud.datacatalog.lineage.v1.OperationMetadata.Type|null} [operationType] OperationMetadata operationType + * @property {string|null} [resource] OperationMetadata resource + * @property {string|null} [resourceUuid] OperationMetadata resourceUuid + * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime + * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime + */ + + /** + * Constructs a new OperationMetadata. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents an OperationMetadata. + * @implements IOperationMetadata + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IOperationMetadata=} [properties] Properties to set + */ + function OperationMetadata(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]]; + } + + /** + * OperationMetadata state. + * @member {google.cloud.datacatalog.lineage.v1.OperationMetadata.State} state + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.state = 0; + + /** + * OperationMetadata operationType. + * @member {google.cloud.datacatalog.lineage.v1.OperationMetadata.Type} operationType + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.operationType = 0; + + /** + * OperationMetadata resource. + * @member {string} resource + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.resource = ""; + + /** + * OperationMetadata resourceUuid. + * @member {string} resourceUuid + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.resourceUuid = ""; + + /** + * OperationMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.createTime = null; + + /** + * OperationMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.endTime = null; + + /** + * Creates a new OperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @static + * @param {google.cloud.datacatalog.lineage.v1.IOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.OperationMetadata} OperationMetadata instance + */ + OperationMetadata.create = function create(properties) { + return new OperationMetadata(properties); + }; + + /** + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.OperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @static + * @param {google.cloud.datacatalog.lineage.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operationType); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); + if (message.resourceUuid != null && Object.hasOwnProperty.call(message, "resourceUuid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.resourceUuid); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.OperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @static + * @param {google.cloud.datacatalog.lineage.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.OperationMetadata} OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.OperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.state = reader.int32(); + break; + } + case 2: { + message.operationType = reader.int32(); + break; + } + case 3: { + message.resource = reader.string(); + break; + } + case 4: { + message.resourceUuid = reader.string(); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.OperationMetadata} OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OperationMetadata message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.operationType != null && message.hasOwnProperty("operationType")) + switch (message.operationType) { + default: + return "operationType: enum value expected"; + case 0: + case 1: + break; + } + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.resourceUuid != null && message.hasOwnProperty("resourceUuid")) + if (!$util.isString(message.resourceUuid)) + return "resourceUuid: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.OperationMetadata} OperationMetadata + */ + OperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.OperationMetadata) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.OperationMetadata(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "FAILED": + case 4: + message.state = 4; + break; + } + switch (object.operationType) { + default: + if (typeof object.operationType === "number") { + message.operationType = object.operationType; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.operationType = 0; + break; + case "DELETE": + case 1: + message.operationType = 1; + break; + } + if (object.resource != null) + message.resource = String(object.resource); + if (object.resourceUuid != null) + message.resourceUuid = String(object.resourceUuid); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.OperationMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.OperationMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @static + * @param {google.cloud.datacatalog.lineage.v1.OperationMetadata} message OperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.operationType = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.resource = ""; + object.resourceUuid = ""; + object.createTime = null; + object.endTime = null; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.datacatalog.lineage.v1.OperationMetadata.State[message.state] === undefined ? message.state : $root.google.cloud.datacatalog.lineage.v1.OperationMetadata.State[message.state] : message.state; + if (message.operationType != null && message.hasOwnProperty("operationType")) + object.operationType = options.enums === String ? $root.google.cloud.datacatalog.lineage.v1.OperationMetadata.Type[message.operationType] === undefined ? message.operationType : $root.google.cloud.datacatalog.lineage.v1.OperationMetadata.Type[message.operationType] : message.operationType; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.resourceUuid != null && message.hasOwnProperty("resourceUuid")) + object.resourceUuid = message.resourceUuid; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + return object; + }; + + /** + * Converts this OperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @instance + * @returns {Object.} JSON object + */ + OperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OperationMetadata + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.OperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.OperationMetadata"; + }; + + /** + * State enum. + * @name google.cloud.datacatalog.lineage.v1.OperationMetadata.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} FAILED=4 FAILED value + */ + OperationMetadata.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "FAILED"] = 4; + return values; + })(); + + /** + * Type enum. + * @name google.cloud.datacatalog.lineage.v1.OperationMetadata.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} DELETE=1 DELETE value + */ + OperationMetadata.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DELETE"] = 1; + return values; + })(); + + return OperationMetadata; + })(); + + v1.CreateProcessRequest = (function() { + + /** + * Properties of a CreateProcessRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface ICreateProcessRequest + * @property {string|null} [parent] CreateProcessRequest parent + * @property {google.cloud.datacatalog.lineage.v1.IProcess|null} [process] CreateProcessRequest process + * @property {string|null} [requestId] CreateProcessRequest requestId + */ + + /** + * Constructs a new CreateProcessRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a CreateProcessRequest. + * @implements ICreateProcessRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.ICreateProcessRequest=} [properties] Properties to set + */ + function CreateProcessRequest(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]]; + } + + /** + * CreateProcessRequest parent. + * @member {string} parent + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @instance + */ + CreateProcessRequest.prototype.parent = ""; + + /** + * CreateProcessRequest process. + * @member {google.cloud.datacatalog.lineage.v1.IProcess|null|undefined} process + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @instance + */ + CreateProcessRequest.prototype.process = null; + + /** + * CreateProcessRequest requestId. + * @member {string} requestId + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @instance + */ + CreateProcessRequest.prototype.requestId = ""; + + /** + * Creates a new CreateProcessRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ICreateProcessRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.CreateProcessRequest} CreateProcessRequest instance + */ + CreateProcessRequest.create = function create(properties) { + return new CreateProcessRequest(properties); + }; + + /** + * Encodes the specified CreateProcessRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateProcessRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ICreateProcessRequest} message CreateProcessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateProcessRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.process != null && Object.hasOwnProperty.call(message, "process")) + $root.google.cloud.datacatalog.lineage.v1.Process.encode(message.process, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified CreateProcessRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateProcessRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ICreateProcessRequest} message CreateProcessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateProcessRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateProcessRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.CreateProcessRequest} CreateProcessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateProcessRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.CreateProcessRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.process = $root.google.cloud.datacatalog.lineage.v1.Process.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateProcessRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.CreateProcessRequest} CreateProcessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateProcessRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateProcessRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateProcessRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.process != null && message.hasOwnProperty("process")) { + var error = $root.google.cloud.datacatalog.lineage.v1.Process.verify(message.process); + if (error) + return "process." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a CreateProcessRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.CreateProcessRequest} CreateProcessRequest + */ + CreateProcessRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.CreateProcessRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.CreateProcessRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.process != null) { + if (typeof object.process !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.CreateProcessRequest.process: object expected"); + message.process = $root.google.cloud.datacatalog.lineage.v1.Process.fromObject(object.process); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a CreateProcessRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.CreateProcessRequest} message CreateProcessRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateProcessRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.process = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.process != null && message.hasOwnProperty("process")) + object.process = $root.google.cloud.datacatalog.lineage.v1.Process.toObject(message.process, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this CreateProcessRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @instance + * @returns {Object.} JSON object + */ + CreateProcessRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateProcessRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.CreateProcessRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateProcessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.CreateProcessRequest"; + }; + + return CreateProcessRequest; + })(); + + v1.UpdateProcessRequest = (function() { + + /** + * Properties of an UpdateProcessRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IUpdateProcessRequest + * @property {google.cloud.datacatalog.lineage.v1.IProcess|null} [process] UpdateProcessRequest process + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateProcessRequest updateMask + * @property {boolean|null} [allowMissing] UpdateProcessRequest allowMissing + */ + + /** + * Constructs a new UpdateProcessRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents an UpdateProcessRequest. + * @implements IUpdateProcessRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest=} [properties] Properties to set + */ + function UpdateProcessRequest(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]]; + } + + /** + * UpdateProcessRequest process. + * @member {google.cloud.datacatalog.lineage.v1.IProcess|null|undefined} process + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @instance + */ + UpdateProcessRequest.prototype.process = null; + + /** + * UpdateProcessRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @instance + */ + UpdateProcessRequest.prototype.updateMask = null; + + /** + * UpdateProcessRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @instance + */ + UpdateProcessRequest.prototype.allowMissing = false; + + /** + * Creates a new UpdateProcessRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.UpdateProcessRequest} UpdateProcessRequest instance + */ + UpdateProcessRequest.create = function create(properties) { + return new UpdateProcessRequest(properties); + }; + + /** + * Encodes the specified UpdateProcessRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.UpdateProcessRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest} message UpdateProcessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateProcessRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.process != null && Object.hasOwnProperty.call(message, "process")) + $root.google.cloud.datacatalog.lineage.v1.Process.encode(message.process, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + return writer; + }; + + /** + * Encodes the specified UpdateProcessRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.UpdateProcessRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest} message UpdateProcessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateProcessRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateProcessRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.UpdateProcessRequest} UpdateProcessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateProcessRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.process = $root.google.cloud.datacatalog.lineage.v1.Process.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.allowMissing = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateProcessRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.UpdateProcessRequest} UpdateProcessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateProcessRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateProcessRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateProcessRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.process != null && message.hasOwnProperty("process")) { + var error = $root.google.cloud.datacatalog.lineage.v1.Process.verify(message.process); + if (error) + return "process." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; + return null; + }; + + /** + * Creates an UpdateProcessRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.UpdateProcessRequest} UpdateProcessRequest + */ + UpdateProcessRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest(); + if (object.process != null) { + if (typeof object.process !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.UpdateProcessRequest.process: object expected"); + message.process = $root.google.cloud.datacatalog.lineage.v1.Process.fromObject(object.process); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.UpdateProcessRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); + return message; + }; + + /** + * Creates a plain object from an UpdateProcessRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.UpdateProcessRequest} message UpdateProcessRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateProcessRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.process = null; + object.updateMask = null; + object.allowMissing = false; + } + if (message.process != null && message.hasOwnProperty("process")) + object.process = $root.google.cloud.datacatalog.lineage.v1.Process.toObject(message.process, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; + return object; + }; + + /** + * Converts this UpdateProcessRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateProcessRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateProcessRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.UpdateProcessRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateProcessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.UpdateProcessRequest"; + }; + + return UpdateProcessRequest; + })(); + + v1.GetProcessRequest = (function() { + + /** + * Properties of a GetProcessRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IGetProcessRequest + * @property {string|null} [name] GetProcessRequest name + */ + + /** + * Constructs a new GetProcessRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a GetProcessRequest. + * @implements IGetProcessRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IGetProcessRequest=} [properties] Properties to set + */ + function GetProcessRequest(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]]; + } + + /** + * GetProcessRequest name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @instance + */ + GetProcessRequest.prototype.name = ""; + + /** + * Creates a new GetProcessRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IGetProcessRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.GetProcessRequest} GetProcessRequest instance + */ + GetProcessRequest.create = function create(properties) { + return new GetProcessRequest(properties); + }; + + /** + * Encodes the specified GetProcessRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetProcessRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IGetProcessRequest} message GetProcessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetProcessRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetProcessRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetProcessRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IGetProcessRequest} message GetProcessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetProcessRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetProcessRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.GetProcessRequest} GetProcessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetProcessRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.GetProcessRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetProcessRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.GetProcessRequest} GetProcessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetProcessRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetProcessRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetProcessRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetProcessRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.GetProcessRequest} GetProcessRequest + */ + GetProcessRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.GetProcessRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.GetProcessRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetProcessRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.GetProcessRequest} message GetProcessRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetProcessRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetProcessRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @instance + * @returns {Object.} JSON object + */ + GetProcessRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetProcessRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.GetProcessRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetProcessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.GetProcessRequest"; + }; + + return GetProcessRequest; + })(); + + v1.ListProcessesRequest = (function() { + + /** + * Properties of a ListProcessesRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IListProcessesRequest + * @property {string|null} [parent] ListProcessesRequest parent + * @property {number|null} [pageSize] ListProcessesRequest pageSize + * @property {string|null} [pageToken] ListProcessesRequest pageToken + */ + + /** + * Constructs a new ListProcessesRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a ListProcessesRequest. + * @implements IListProcessesRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesRequest=} [properties] Properties to set + */ + function ListProcessesRequest(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]]; + } + + /** + * ListProcessesRequest parent. + * @member {string} parent + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @instance + */ + ListProcessesRequest.prototype.parent = ""; + + /** + * ListProcessesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @instance + */ + ListProcessesRequest.prototype.pageSize = 0; + + /** + * ListProcessesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @instance + */ + ListProcessesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListProcessesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.ListProcessesRequest} ListProcessesRequest instance + */ + ListProcessesRequest.create = function create(properties) { + return new ListProcessesRequest(properties); + }; + + /** + * Encodes the specified ListProcessesRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListProcessesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesRequest} message ListProcessesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListProcessesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListProcessesRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListProcessesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesRequest} message ListProcessesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListProcessesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListProcessesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.ListProcessesRequest} ListProcessesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListProcessesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.ListProcessesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListProcessesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.ListProcessesRequest} ListProcessesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListProcessesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListProcessesRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListProcessesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListProcessesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.ListProcessesRequest} ListProcessesRequest + */ + ListProcessesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.ListProcessesRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.ListProcessesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListProcessesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ListProcessesRequest} message ListProcessesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListProcessesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListProcessesRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @instance + * @returns {Object.} JSON object + */ + ListProcessesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListProcessesRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListProcessesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.ListProcessesRequest"; + }; + + return ListProcessesRequest; + })(); + + v1.ListProcessesResponse = (function() { + + /** + * Properties of a ListProcessesResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IListProcessesResponse + * @property {Array.|null} [processes] ListProcessesResponse processes + * @property {string|null} [nextPageToken] ListProcessesResponse nextPageToken + */ + + /** + * Constructs a new ListProcessesResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a ListProcessesResponse. + * @implements IListProcessesResponse + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesResponse=} [properties] Properties to set + */ + function ListProcessesResponse(properties) { + this.processes = []; + 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]]; + } + + /** + * ListProcessesResponse processes. + * @member {Array.} processes + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @instance + */ + ListProcessesResponse.prototype.processes = $util.emptyArray; + + /** + * ListProcessesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @instance + */ + ListProcessesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListProcessesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesResponse=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.ListProcessesResponse} ListProcessesResponse instance + */ + ListProcessesResponse.create = function create(properties) { + return new ListProcessesResponse(properties); + }; + + /** + * Encodes the specified ListProcessesResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListProcessesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesResponse} message ListProcessesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListProcessesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.processes != null && message.processes.length) + for (var i = 0; i < message.processes.length; ++i) + $root.google.cloud.datacatalog.lineage.v1.Process.encode(message.processes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListProcessesResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListProcessesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListProcessesResponse} message ListProcessesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListProcessesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListProcessesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.ListProcessesResponse} ListProcessesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListProcessesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.ListProcessesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.processes && message.processes.length)) + message.processes = []; + message.processes.push($root.google.cloud.datacatalog.lineage.v1.Process.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListProcessesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.ListProcessesResponse} ListProcessesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListProcessesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListProcessesResponse message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListProcessesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.processes != null && message.hasOwnProperty("processes")) { + if (!Array.isArray(message.processes)) + return "processes: array expected"; + for (var i = 0; i < message.processes.length; ++i) { + var error = $root.google.cloud.datacatalog.lineage.v1.Process.verify(message.processes[i]); + if (error) + return "processes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListProcessesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.ListProcessesResponse} ListProcessesResponse + */ + ListProcessesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.ListProcessesResponse) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.ListProcessesResponse(); + if (object.processes) { + if (!Array.isArray(object.processes)) + throw TypeError(".google.cloud.datacatalog.lineage.v1.ListProcessesResponse.processes: array expected"); + message.processes = []; + for (var i = 0; i < object.processes.length; ++i) { + if (typeof object.processes[i] !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.ListProcessesResponse.processes: object expected"); + message.processes[i] = $root.google.cloud.datacatalog.lineage.v1.Process.fromObject(object.processes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListProcessesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.ListProcessesResponse} message ListProcessesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListProcessesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.processes = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.processes && message.processes.length) { + object.processes = []; + for (var j = 0; j < message.processes.length; ++j) + object.processes[j] = $root.google.cloud.datacatalog.lineage.v1.Process.toObject(message.processes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListProcessesResponse to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @instance + * @returns {Object.} JSON object + */ + ListProcessesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListProcessesResponse + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.ListProcessesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListProcessesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.ListProcessesResponse"; + }; + + return ListProcessesResponse; + })(); + + v1.DeleteProcessRequest = (function() { + + /** + * Properties of a DeleteProcessRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IDeleteProcessRequest + * @property {string|null} [name] DeleteProcessRequest name + * @property {boolean|null} [allowMissing] DeleteProcessRequest allowMissing + */ + + /** + * Constructs a new DeleteProcessRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a DeleteProcessRequest. + * @implements IDeleteProcessRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest=} [properties] Properties to set + */ + function DeleteProcessRequest(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]]; + } + + /** + * DeleteProcessRequest name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @instance + */ + DeleteProcessRequest.prototype.name = ""; + + /** + * DeleteProcessRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @instance + */ + DeleteProcessRequest.prototype.allowMissing = false; + + /** + * Creates a new DeleteProcessRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.DeleteProcessRequest} DeleteProcessRequest instance + */ + DeleteProcessRequest.create = function create(properties) { + return new DeleteProcessRequest(properties); + }; + + /** + * Encodes the specified DeleteProcessRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteProcessRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest} message DeleteProcessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteProcessRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowMissing); + return writer; + }; + + /** + * Encodes the specified DeleteProcessRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteProcessRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest} message DeleteProcessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteProcessRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteProcessRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.DeleteProcessRequest} DeleteProcessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteProcessRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.allowMissing = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteProcessRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.DeleteProcessRequest} DeleteProcessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteProcessRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteProcessRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteProcessRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; + return null; + }; + + /** + * Creates a DeleteProcessRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.DeleteProcessRequest} DeleteProcessRequest + */ + DeleteProcessRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); + return message; + }; + + /** + * Creates a plain object from a DeleteProcessRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.DeleteProcessRequest} message DeleteProcessRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteProcessRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.allowMissing = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; + return object; + }; + + /** + * Converts this DeleteProcessRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteProcessRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteProcessRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.DeleteProcessRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteProcessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.DeleteProcessRequest"; + }; + + return DeleteProcessRequest; + })(); + + v1.CreateRunRequest = (function() { + + /** + * Properties of a CreateRunRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface ICreateRunRequest + * @property {string|null} [parent] CreateRunRequest parent + * @property {google.cloud.datacatalog.lineage.v1.IRun|null} [run] CreateRunRequest run + * @property {string|null} [requestId] CreateRunRequest requestId + */ + + /** + * Constructs a new CreateRunRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a CreateRunRequest. + * @implements ICreateRunRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.ICreateRunRequest=} [properties] Properties to set + */ + function CreateRunRequest(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]]; + } + + /** + * CreateRunRequest parent. + * @member {string} parent + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @instance + */ + CreateRunRequest.prototype.parent = ""; + + /** + * CreateRunRequest run. + * @member {google.cloud.datacatalog.lineage.v1.IRun|null|undefined} run + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @instance + */ + CreateRunRequest.prototype.run = null; + + /** + * CreateRunRequest requestId. + * @member {string} requestId + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @instance + */ + CreateRunRequest.prototype.requestId = ""; + + /** + * Creates a new CreateRunRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ICreateRunRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.CreateRunRequest} CreateRunRequest instance + */ + CreateRunRequest.create = function create(properties) { + return new CreateRunRequest(properties); + }; + + /** + * Encodes the specified CreateRunRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateRunRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ICreateRunRequest} message CreateRunRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateRunRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.run != null && Object.hasOwnProperty.call(message, "run")) + $root.google.cloud.datacatalog.lineage.v1.Run.encode(message.run, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified CreateRunRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateRunRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ICreateRunRequest} message CreateRunRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateRunRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateRunRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.CreateRunRequest} CreateRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateRunRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.CreateRunRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.run = $root.google.cloud.datacatalog.lineage.v1.Run.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateRunRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.CreateRunRequest} CreateRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateRunRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateRunRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateRunRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.run != null && message.hasOwnProperty("run")) { + var error = $root.google.cloud.datacatalog.lineage.v1.Run.verify(message.run); + if (error) + return "run." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a CreateRunRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.CreateRunRequest} CreateRunRequest + */ + CreateRunRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.CreateRunRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.CreateRunRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.run != null) { + if (typeof object.run !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.CreateRunRequest.run: object expected"); + message.run = $root.google.cloud.datacatalog.lineage.v1.Run.fromObject(object.run); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a CreateRunRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.CreateRunRequest} message CreateRunRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateRunRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.run = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.run != null && message.hasOwnProperty("run")) + object.run = $root.google.cloud.datacatalog.lineage.v1.Run.toObject(message.run, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this CreateRunRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @instance + * @returns {Object.} JSON object + */ + CreateRunRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateRunRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.CreateRunRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateRunRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.CreateRunRequest"; + }; + + return CreateRunRequest; + })(); + + v1.UpdateRunRequest = (function() { + + /** + * Properties of an UpdateRunRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IUpdateRunRequest + * @property {google.cloud.datacatalog.lineage.v1.IRun|null} [run] UpdateRunRequest run + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateRunRequest updateMask + */ + + /** + * Constructs a new UpdateRunRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents an UpdateRunRequest. + * @implements IUpdateRunRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IUpdateRunRequest=} [properties] Properties to set + */ + function UpdateRunRequest(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]]; + } + + /** + * UpdateRunRequest run. + * @member {google.cloud.datacatalog.lineage.v1.IRun|null|undefined} run + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @instance + */ + UpdateRunRequest.prototype.run = null; + + /** + * UpdateRunRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @instance + */ + UpdateRunRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateRunRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IUpdateRunRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.UpdateRunRequest} UpdateRunRequest instance + */ + UpdateRunRequest.create = function create(properties) { + return new UpdateRunRequest(properties); + }; + + /** + * Encodes the specified UpdateRunRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.UpdateRunRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IUpdateRunRequest} message UpdateRunRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateRunRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.run != null && Object.hasOwnProperty.call(message, "run")) + $root.google.cloud.datacatalog.lineage.v1.Run.encode(message.run, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateRunRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.UpdateRunRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IUpdateRunRequest} message UpdateRunRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateRunRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateRunRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.UpdateRunRequest} UpdateRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateRunRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.UpdateRunRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.run = $root.google.cloud.datacatalog.lineage.v1.Run.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateRunRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.UpdateRunRequest} UpdateRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateRunRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateRunRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateRunRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.run != null && message.hasOwnProperty("run")) { + var error = $root.google.cloud.datacatalog.lineage.v1.Run.verify(message.run); + if (error) + return "run." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateRunRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.UpdateRunRequest} UpdateRunRequest + */ + UpdateRunRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.UpdateRunRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.UpdateRunRequest(); + if (object.run != null) { + if (typeof object.run !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.UpdateRunRequest.run: object expected"); + message.run = $root.google.cloud.datacatalog.lineage.v1.Run.fromObject(object.run); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.UpdateRunRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateRunRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.UpdateRunRequest} message UpdateRunRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateRunRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.run = null; + object.updateMask = null; + } + if (message.run != null && message.hasOwnProperty("run")) + object.run = $root.google.cloud.datacatalog.lineage.v1.Run.toObject(message.run, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateRunRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateRunRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateRunRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.UpdateRunRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateRunRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.UpdateRunRequest"; + }; + + return UpdateRunRequest; + })(); + + v1.GetRunRequest = (function() { + + /** + * Properties of a GetRunRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IGetRunRequest + * @property {string|null} [name] GetRunRequest name + */ + + /** + * Constructs a new GetRunRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a GetRunRequest. + * @implements IGetRunRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IGetRunRequest=} [properties] Properties to set + */ + function GetRunRequest(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]]; + } + + /** + * GetRunRequest name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @instance + */ + GetRunRequest.prototype.name = ""; + + /** + * Creates a new GetRunRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IGetRunRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.GetRunRequest} GetRunRequest instance + */ + GetRunRequest.create = function create(properties) { + return new GetRunRequest(properties); + }; + + /** + * Encodes the specified GetRunRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetRunRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IGetRunRequest} message GetRunRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRunRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetRunRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetRunRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IGetRunRequest} message GetRunRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRunRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRunRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.GetRunRequest} GetRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRunRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.GetRunRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRunRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.GetRunRequest} GetRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRunRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRunRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRunRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetRunRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.GetRunRequest} GetRunRequest + */ + GetRunRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.GetRunRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.GetRunRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetRunRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.GetRunRequest} message GetRunRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRunRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetRunRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @instance + * @returns {Object.} JSON object + */ + GetRunRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRunRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.GetRunRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRunRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.GetRunRequest"; + }; + + return GetRunRequest; + })(); + + v1.ListRunsRequest = (function() { + + /** + * Properties of a ListRunsRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IListRunsRequest + * @property {string|null} [parent] ListRunsRequest parent + * @property {number|null} [pageSize] ListRunsRequest pageSize + * @property {string|null} [pageToken] ListRunsRequest pageToken + */ + + /** + * Constructs a new ListRunsRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a ListRunsRequest. + * @implements IListRunsRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IListRunsRequest=} [properties] Properties to set + */ + function ListRunsRequest(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]]; + } + + /** + * ListRunsRequest parent. + * @member {string} parent + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @instance + */ + ListRunsRequest.prototype.parent = ""; + + /** + * ListRunsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @instance + */ + ListRunsRequest.prototype.pageSize = 0; + + /** + * ListRunsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @instance + */ + ListRunsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListRunsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListRunsRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.ListRunsRequest} ListRunsRequest instance + */ + ListRunsRequest.create = function create(properties) { + return new ListRunsRequest(properties); + }; + + /** + * Encodes the specified ListRunsRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListRunsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListRunsRequest} message ListRunsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRunsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListRunsRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListRunsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListRunsRequest} message ListRunsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRunsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRunsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.ListRunsRequest} ListRunsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRunsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.ListRunsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRunsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.ListRunsRequest} ListRunsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRunsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRunsRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRunsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListRunsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.ListRunsRequest} ListRunsRequest + */ + ListRunsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.ListRunsRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.ListRunsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListRunsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ListRunsRequest} message ListRunsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRunsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListRunsRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @instance + * @returns {Object.} JSON object + */ + ListRunsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRunsRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRunsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.ListRunsRequest"; + }; + + return ListRunsRequest; + })(); + + v1.ListRunsResponse = (function() { + + /** + * Properties of a ListRunsResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IListRunsResponse + * @property {Array.|null} [runs] ListRunsResponse runs + * @property {string|null} [nextPageToken] ListRunsResponse nextPageToken + */ + + /** + * Constructs a new ListRunsResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a ListRunsResponse. + * @implements IListRunsResponse + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IListRunsResponse=} [properties] Properties to set + */ + function ListRunsResponse(properties) { + this.runs = []; + 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]]; + } + + /** + * ListRunsResponse runs. + * @member {Array.} runs + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @instance + */ + ListRunsResponse.prototype.runs = $util.emptyArray; + + /** + * ListRunsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @instance + */ + ListRunsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListRunsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListRunsResponse=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.ListRunsResponse} ListRunsResponse instance + */ + ListRunsResponse.create = function create(properties) { + return new ListRunsResponse(properties); + }; + + /** + * Encodes the specified ListRunsResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListRunsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListRunsResponse} message ListRunsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRunsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runs != null && message.runs.length) + for (var i = 0; i < message.runs.length; ++i) + $root.google.cloud.datacatalog.lineage.v1.Run.encode(message.runs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListRunsResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListRunsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListRunsResponse} message ListRunsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRunsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRunsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.ListRunsResponse} ListRunsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRunsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.ListRunsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.runs && message.runs.length)) + message.runs = []; + message.runs.push($root.google.cloud.datacatalog.lineage.v1.Run.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRunsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.ListRunsResponse} ListRunsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRunsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRunsResponse message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRunsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runs != null && message.hasOwnProperty("runs")) { + if (!Array.isArray(message.runs)) + return "runs: array expected"; + for (var i = 0; i < message.runs.length; ++i) { + var error = $root.google.cloud.datacatalog.lineage.v1.Run.verify(message.runs[i]); + if (error) + return "runs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListRunsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.ListRunsResponse} ListRunsResponse + */ + ListRunsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.ListRunsResponse) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.ListRunsResponse(); + if (object.runs) { + if (!Array.isArray(object.runs)) + throw TypeError(".google.cloud.datacatalog.lineage.v1.ListRunsResponse.runs: array expected"); + message.runs = []; + for (var i = 0; i < object.runs.length; ++i) { + if (typeof object.runs[i] !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.ListRunsResponse.runs: object expected"); + message.runs[i] = $root.google.cloud.datacatalog.lineage.v1.Run.fromObject(object.runs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListRunsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.ListRunsResponse} message ListRunsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRunsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.runs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.runs && message.runs.length) { + object.runs = []; + for (var j = 0; j < message.runs.length; ++j) + object.runs[j] = $root.google.cloud.datacatalog.lineage.v1.Run.toObject(message.runs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListRunsResponse to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @instance + * @returns {Object.} JSON object + */ + ListRunsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRunsResponse + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.ListRunsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRunsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.ListRunsResponse"; + }; + + return ListRunsResponse; + })(); + + v1.DeleteRunRequest = (function() { + + /** + * Properties of a DeleteRunRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IDeleteRunRequest + * @property {string|null} [name] DeleteRunRequest name + * @property {boolean|null} [allowMissing] DeleteRunRequest allowMissing + */ + + /** + * Constructs a new DeleteRunRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a DeleteRunRequest. + * @implements IDeleteRunRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IDeleteRunRequest=} [properties] Properties to set + */ + function DeleteRunRequest(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]]; + } + + /** + * DeleteRunRequest name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @instance + */ + DeleteRunRequest.prototype.name = ""; + + /** + * DeleteRunRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @instance + */ + DeleteRunRequest.prototype.allowMissing = false; + + /** + * Creates a new DeleteRunRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IDeleteRunRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.DeleteRunRequest} DeleteRunRequest instance + */ + DeleteRunRequest.create = function create(properties) { + return new DeleteRunRequest(properties); + }; + + /** + * Encodes the specified DeleteRunRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteRunRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IDeleteRunRequest} message DeleteRunRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRunRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowMissing); + return writer; + }; + + /** + * Encodes the specified DeleteRunRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteRunRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IDeleteRunRequest} message DeleteRunRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRunRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRunRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.DeleteRunRequest} DeleteRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRunRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.DeleteRunRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.allowMissing = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteRunRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.DeleteRunRequest} DeleteRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRunRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRunRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRunRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; + return null; + }; + + /** + * Creates a DeleteRunRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.DeleteRunRequest} DeleteRunRequest + */ + DeleteRunRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.DeleteRunRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.DeleteRunRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); + return message; + }; + + /** + * Creates a plain object from a DeleteRunRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.DeleteRunRequest} message DeleteRunRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRunRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.allowMissing = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; + return object; + }; + + /** + * Converts this DeleteRunRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRunRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRunRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.DeleteRunRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRunRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.DeleteRunRequest"; + }; + + return DeleteRunRequest; + })(); + + v1.CreateLineageEventRequest = (function() { + + /** + * Properties of a CreateLineageEventRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface ICreateLineageEventRequest + * @property {string|null} [parent] CreateLineageEventRequest parent + * @property {google.cloud.datacatalog.lineage.v1.ILineageEvent|null} [lineageEvent] CreateLineageEventRequest lineageEvent + * @property {string|null} [requestId] CreateLineageEventRequest requestId + */ + + /** + * Constructs a new CreateLineageEventRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a CreateLineageEventRequest. + * @implements ICreateLineageEventRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest=} [properties] Properties to set + */ + function CreateLineageEventRequest(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]]; + } + + /** + * CreateLineageEventRequest parent. + * @member {string} parent + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @instance + */ + CreateLineageEventRequest.prototype.parent = ""; + + /** + * CreateLineageEventRequest lineageEvent. + * @member {google.cloud.datacatalog.lineage.v1.ILineageEvent|null|undefined} lineageEvent + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @instance + */ + CreateLineageEventRequest.prototype.lineageEvent = null; + + /** + * CreateLineageEventRequest requestId. + * @member {string} requestId + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @instance + */ + CreateLineageEventRequest.prototype.requestId = ""; + + /** + * Creates a new CreateLineageEventRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest} CreateLineageEventRequest instance + */ + CreateLineageEventRequest.create = function create(properties) { + return new CreateLineageEventRequest(properties); + }; + + /** + * Encodes the specified CreateLineageEventRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest} message CreateLineageEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateLineageEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.lineageEvent != null && Object.hasOwnProperty.call(message, "lineageEvent")) + $root.google.cloud.datacatalog.lineage.v1.LineageEvent.encode(message.lineageEvent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified CreateLineageEventRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest} message CreateLineageEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateLineageEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateLineageEventRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest} CreateLineageEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateLineageEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.lineageEvent = $root.google.cloud.datacatalog.lineage.v1.LineageEvent.decode(reader, reader.uint32()); + break; + } + case 3: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateLineageEventRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest} CreateLineageEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateLineageEventRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateLineageEventRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateLineageEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.lineageEvent != null && message.hasOwnProperty("lineageEvent")) { + var error = $root.google.cloud.datacatalog.lineage.v1.LineageEvent.verify(message.lineageEvent); + if (error) + return "lineageEvent." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; + + /** + * Creates a CreateLineageEventRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest} CreateLineageEventRequest + */ + CreateLineageEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.lineageEvent != null) { + if (typeof object.lineageEvent !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest.lineageEvent: object expected"); + message.lineageEvent = $root.google.cloud.datacatalog.lineage.v1.LineageEvent.fromObject(object.lineageEvent); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a CreateLineageEventRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest} message CreateLineageEventRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateLineageEventRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.lineageEvent = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.lineageEvent != null && message.hasOwnProperty("lineageEvent")) + object.lineageEvent = $root.google.cloud.datacatalog.lineage.v1.LineageEvent.toObject(message.lineageEvent, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; + + /** + * Converts this CreateLineageEventRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @instance + * @returns {Object.} JSON object + */ + CreateLineageEventRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateLineageEventRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateLineageEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest"; + }; + + return CreateLineageEventRequest; + })(); + + v1.GetLineageEventRequest = (function() { + + /** + * Properties of a GetLineageEventRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IGetLineageEventRequest + * @property {string|null} [name] GetLineageEventRequest name + */ + + /** + * Constructs a new GetLineageEventRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a GetLineageEventRequest. + * @implements IGetLineageEventRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest=} [properties] Properties to set + */ + function GetLineageEventRequest(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]]; + } + + /** + * GetLineageEventRequest name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @instance + */ + GetLineageEventRequest.prototype.name = ""; + + /** + * Creates a new GetLineageEventRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.GetLineageEventRequest} GetLineageEventRequest instance + */ + GetLineageEventRequest.create = function create(properties) { + return new GetLineageEventRequest(properties); + }; + + /** + * Encodes the specified GetLineageEventRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetLineageEventRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest} message GetLineageEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetLineageEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetLineageEventRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.GetLineageEventRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest} message GetLineageEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetLineageEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetLineageEventRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.GetLineageEventRequest} GetLineageEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetLineageEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetLineageEventRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.GetLineageEventRequest} GetLineageEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetLineageEventRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetLineageEventRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetLineageEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetLineageEventRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.GetLineageEventRequest} GetLineageEventRequest + */ + GetLineageEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetLineageEventRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.GetLineageEventRequest} message GetLineageEventRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetLineageEventRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetLineageEventRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @instance + * @returns {Object.} JSON object + */ + GetLineageEventRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetLineageEventRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.GetLineageEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetLineageEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.GetLineageEventRequest"; + }; + + return GetLineageEventRequest; + })(); + + v1.ListLineageEventsRequest = (function() { + + /** + * Properties of a ListLineageEventsRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IListLineageEventsRequest + * @property {string|null} [parent] ListLineageEventsRequest parent + * @property {number|null} [pageSize] ListLineageEventsRequest pageSize + * @property {string|null} [pageToken] ListLineageEventsRequest pageToken + */ + + /** + * Constructs a new ListLineageEventsRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a ListLineageEventsRequest. + * @implements IListLineageEventsRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest=} [properties] Properties to set + */ + function ListLineageEventsRequest(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]]; + } + + /** + * ListLineageEventsRequest parent. + * @member {string} parent + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @instance + */ + ListLineageEventsRequest.prototype.parent = ""; + + /** + * ListLineageEventsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @instance + */ + ListLineageEventsRequest.prototype.pageSize = 0; + + /** + * ListLineageEventsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @instance + */ + ListLineageEventsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListLineageEventsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest} ListLineageEventsRequest instance + */ + ListLineageEventsRequest.create = function create(properties) { + return new ListLineageEventsRequest(properties); + }; + + /** + * Encodes the specified ListLineageEventsRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest} message ListLineageEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListLineageEventsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListLineageEventsRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest} message ListLineageEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListLineageEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListLineageEventsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest} ListLineageEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListLineageEventsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListLineageEventsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest} ListLineageEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListLineageEventsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListLineageEventsRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListLineageEventsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListLineageEventsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest} ListLineageEventsRequest + */ + ListLineageEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListLineageEventsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest} message ListLineageEventsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListLineageEventsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListLineageEventsRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @instance + * @returns {Object.} JSON object + */ + ListLineageEventsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListLineageEventsRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListLineageEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest"; + }; + + return ListLineageEventsRequest; + })(); + + v1.ListLineageEventsResponse = (function() { + + /** + * Properties of a ListLineageEventsResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IListLineageEventsResponse + * @property {Array.|null} [lineageEvents] ListLineageEventsResponse lineageEvents + * @property {string|null} [nextPageToken] ListLineageEventsResponse nextPageToken + */ + + /** + * Constructs a new ListLineageEventsResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a ListLineageEventsResponse. + * @implements IListLineageEventsResponse + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse=} [properties] Properties to set + */ + function ListLineageEventsResponse(properties) { + this.lineageEvents = []; + 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]]; + } + + /** + * ListLineageEventsResponse lineageEvents. + * @member {Array.} lineageEvents + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @instance + */ + ListLineageEventsResponse.prototype.lineageEvents = $util.emptyArray; + + /** + * ListLineageEventsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @instance + */ + ListLineageEventsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListLineageEventsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse} ListLineageEventsResponse instance + */ + ListLineageEventsResponse.create = function create(properties) { + return new ListLineageEventsResponse(properties); + }; + + /** + * Encodes the specified ListLineageEventsResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse} message ListLineageEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListLineageEventsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.lineageEvents != null && message.lineageEvents.length) + for (var i = 0; i < message.lineageEvents.length; ++i) + $root.google.cloud.datacatalog.lineage.v1.LineageEvent.encode(message.lineageEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListLineageEventsResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse} message ListLineageEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListLineageEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListLineageEventsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse} ListLineageEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListLineageEventsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.lineageEvents && message.lineageEvents.length)) + message.lineageEvents = []; + message.lineageEvents.push($root.google.cloud.datacatalog.lineage.v1.LineageEvent.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListLineageEventsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse} ListLineageEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListLineageEventsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListLineageEventsResponse message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListLineageEventsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.lineageEvents != null && message.hasOwnProperty("lineageEvents")) { + if (!Array.isArray(message.lineageEvents)) + return "lineageEvents: array expected"; + for (var i = 0; i < message.lineageEvents.length; ++i) { + var error = $root.google.cloud.datacatalog.lineage.v1.LineageEvent.verify(message.lineageEvents[i]); + if (error) + return "lineageEvents." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListLineageEventsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse} ListLineageEventsResponse + */ + ListLineageEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse(); + if (object.lineageEvents) { + if (!Array.isArray(object.lineageEvents)) + throw TypeError(".google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse.lineageEvents: array expected"); + message.lineageEvents = []; + for (var i = 0; i < object.lineageEvents.length; ++i) { + if (typeof object.lineageEvents[i] !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse.lineageEvents: object expected"); + message.lineageEvents[i] = $root.google.cloud.datacatalog.lineage.v1.LineageEvent.fromObject(object.lineageEvents[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListLineageEventsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse} message ListLineageEventsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListLineageEventsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.lineageEvents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.lineageEvents && message.lineageEvents.length) { + object.lineageEvents = []; + for (var j = 0; j < message.lineageEvents.length; ++j) + object.lineageEvents[j] = $root.google.cloud.datacatalog.lineage.v1.LineageEvent.toObject(message.lineageEvents[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListLineageEventsResponse to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @instance + * @returns {Object.} JSON object + */ + ListLineageEventsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListLineageEventsResponse + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListLineageEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse"; + }; + + return ListLineageEventsResponse; + })(); + + v1.DeleteLineageEventRequest = (function() { + + /** + * Properties of a DeleteLineageEventRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IDeleteLineageEventRequest + * @property {string|null} [name] DeleteLineageEventRequest name + * @property {boolean|null} [allowMissing] DeleteLineageEventRequest allowMissing + */ + + /** + * Constructs a new DeleteLineageEventRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a DeleteLineageEventRequest. + * @implements IDeleteLineageEventRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest=} [properties] Properties to set + */ + function DeleteLineageEventRequest(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]]; + } + + /** + * DeleteLineageEventRequest name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @instance + */ + DeleteLineageEventRequest.prototype.name = ""; + + /** + * DeleteLineageEventRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @instance + */ + DeleteLineageEventRequest.prototype.allowMissing = false; + + /** + * Creates a new DeleteLineageEventRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest} DeleteLineageEventRequest instance + */ + DeleteLineageEventRequest.create = function create(properties) { + return new DeleteLineageEventRequest(properties); + }; + + /** + * Encodes the specified DeleteLineageEventRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest} message DeleteLineageEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteLineageEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowMissing); + return writer; + }; + + /** + * Encodes the specified DeleteLineageEventRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest} message DeleteLineageEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteLineageEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteLineageEventRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest} DeleteLineageEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteLineageEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.allowMissing = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteLineageEventRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest} DeleteLineageEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteLineageEventRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteLineageEventRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteLineageEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; + return null; + }; + + /** + * Creates a DeleteLineageEventRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest} DeleteLineageEventRequest + */ + DeleteLineageEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); + return message; + }; + + /** + * Creates a plain object from a DeleteLineageEventRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest} message DeleteLineageEventRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteLineageEventRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.allowMissing = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; + return object; + }; + + /** + * Converts this DeleteLineageEventRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteLineageEventRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteLineageEventRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteLineageEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest"; + }; + + return DeleteLineageEventRequest; + })(); + + v1.SearchLinksRequest = (function() { + + /** + * Properties of a SearchLinksRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface ISearchLinksRequest + * @property {string|null} [parent] SearchLinksRequest parent + * @property {google.cloud.datacatalog.lineage.v1.IEntityReference|null} [source] SearchLinksRequest source + * @property {google.cloud.datacatalog.lineage.v1.IEntityReference|null} [target] SearchLinksRequest target + * @property {number|null} [pageSize] SearchLinksRequest pageSize + * @property {string|null} [pageToken] SearchLinksRequest pageToken + */ + + /** + * Constructs a new SearchLinksRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a SearchLinksRequest. + * @implements ISearchLinksRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksRequest=} [properties] Properties to set + */ + function SearchLinksRequest(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]]; + } + + /** + * SearchLinksRequest parent. + * @member {string} parent + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @instance + */ + SearchLinksRequest.prototype.parent = ""; + + /** + * SearchLinksRequest source. + * @member {google.cloud.datacatalog.lineage.v1.IEntityReference|null|undefined} source + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @instance + */ + SearchLinksRequest.prototype.source = null; + + /** + * SearchLinksRequest target. + * @member {google.cloud.datacatalog.lineage.v1.IEntityReference|null|undefined} target + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @instance + */ + SearchLinksRequest.prototype.target = null; + + /** + * SearchLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @instance + */ + SearchLinksRequest.prototype.pageSize = 0; + + /** + * SearchLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @instance + */ + SearchLinksRequest.prototype.pageToken = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SearchLinksRequest criteria. + * @member {"source"|"target"|undefined} criteria + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @instance + */ + Object.defineProperty(SearchLinksRequest.prototype, "criteria", { + get: $util.oneOfGetter($oneOfFields = ["source", "target"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SearchLinksRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.SearchLinksRequest} SearchLinksRequest instance + */ + SearchLinksRequest.create = function create(properties) { + return new SearchLinksRequest(properties); + }; + + /** + * Encodes the specified SearchLinksRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.SearchLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksRequest} message SearchLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchLinksRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.google.cloud.datacatalog.lineage.v1.EntityReference.encode(message.source, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.google.cloud.datacatalog.lineage.v1.EntityReference.encode(message.target, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SearchLinksRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.SearchLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksRequest} message SearchLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.SearchLinksRequest} SearchLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchLinksRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.SearchLinksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 4: { + message.source = $root.google.cloud.datacatalog.lineage.v1.EntityReference.decode(reader, reader.uint32()); + break; + } + case 5: { + message.target = $root.google.cloud.datacatalog.lineage.v1.EntityReference.decode(reader, reader.uint32()); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.SearchLinksRequest} SearchLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchLinksRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchLinksRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.source != null && message.hasOwnProperty("source")) { + properties.criteria = 1; + { + var error = $root.google.cloud.datacatalog.lineage.v1.EntityReference.verify(message.source); + if (error) + return "source." + error; + } + } + if (message.target != null && message.hasOwnProperty("target")) { + if (properties.criteria === 1) + return "criteria: multiple values"; + properties.criteria = 1; + { + var error = $root.google.cloud.datacatalog.lineage.v1.EntityReference.verify(message.target); + if (error) + return "target." + error; + } + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a SearchLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.SearchLinksRequest} SearchLinksRequest + */ + SearchLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.SearchLinksRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.SearchLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.SearchLinksRequest.source: object expected"); + message.source = $root.google.cloud.datacatalog.lineage.v1.EntityReference.fromObject(object.source); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.SearchLinksRequest.target: object expected"); + message.target = $root.google.cloud.datacatalog.lineage.v1.EntityReference.fromObject(object.target); + } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a SearchLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.SearchLinksRequest} message SearchLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchLinksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.source != null && message.hasOwnProperty("source")) { + object.source = $root.google.cloud.datacatalog.lineage.v1.EntityReference.toObject(message.source, options); + if (options.oneofs) + object.criteria = "source"; + } + if (message.target != null && message.hasOwnProperty("target")) { + object.target = $root.google.cloud.datacatalog.lineage.v1.EntityReference.toObject(message.target, options); + if (options.oneofs) + object.criteria = "target"; + } + return object; + }; + + /** + * Converts this SearchLinksRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @instance + * @returns {Object.} JSON object + */ + SearchLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchLinksRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.SearchLinksRequest"; + }; + + return SearchLinksRequest; + })(); + + v1.SearchLinksResponse = (function() { + + /** + * Properties of a SearchLinksResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface ISearchLinksResponse + * @property {Array.|null} [links] SearchLinksResponse links + * @property {string|null} [nextPageToken] SearchLinksResponse nextPageToken + */ + + /** + * Constructs a new SearchLinksResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a SearchLinksResponse. + * @implements ISearchLinksResponse + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksResponse=} [properties] Properties to set + */ + function SearchLinksResponse(properties) { + this.links = []; + 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]]; + } + + /** + * SearchLinksResponse links. + * @member {Array.} links + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @instance + */ + SearchLinksResponse.prototype.links = $util.emptyArray; + + /** + * SearchLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @instance + */ + SearchLinksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new SearchLinksResponse instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksResponse=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.SearchLinksResponse} SearchLinksResponse instance + */ + SearchLinksResponse.create = function create(properties) { + return new SearchLinksResponse(properties); + }; + + /** + * Encodes the specified SearchLinksResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.SearchLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksResponse} message SearchLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.links != null && message.links.length) + for (var i = 0; i < message.links.length; ++i) + $root.google.cloud.datacatalog.lineage.v1.Link.encode(message.links[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified SearchLinksResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.SearchLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.ISearchLinksResponse} message SearchLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.SearchLinksResponse} SearchLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchLinksResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.SearchLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.links && message.links.length)) + message.links = []; + message.links.push($root.google.cloud.datacatalog.lineage.v1.Link.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.SearchLinksResponse} SearchLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchLinksResponse message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.links != null && message.hasOwnProperty("links")) { + if (!Array.isArray(message.links)) + return "links: array expected"; + for (var i = 0; i < message.links.length; ++i) { + var error = $root.google.cloud.datacatalog.lineage.v1.Link.verify(message.links[i]); + if (error) + return "links." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a SearchLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.SearchLinksResponse} SearchLinksResponse + */ + SearchLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.SearchLinksResponse) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.SearchLinksResponse(); + if (object.links) { + if (!Array.isArray(object.links)) + throw TypeError(".google.cloud.datacatalog.lineage.v1.SearchLinksResponse.links: array expected"); + message.links = []; + for (var i = 0; i < object.links.length; ++i) { + if (typeof object.links[i] !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.SearchLinksResponse.links: object expected"); + message.links[i] = $root.google.cloud.datacatalog.lineage.v1.Link.fromObject(object.links[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a SearchLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.SearchLinksResponse} message SearchLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.links = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.links && message.links.length) { + object.links = []; + for (var j = 0; j < message.links.length; ++j) + object.links[j] = $root.google.cloud.datacatalog.lineage.v1.Link.toObject(message.links[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this SearchLinksResponse to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @instance + * @returns {Object.} JSON object + */ + SearchLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchLinksResponse + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.SearchLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.SearchLinksResponse"; + }; + + return SearchLinksResponse; + })(); + + v1.Link = (function() { + + /** + * Properties of a Link. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface ILink + * @property {string|null} [name] Link name + * @property {google.cloud.datacatalog.lineage.v1.IEntityReference|null} [source] Link source + * @property {google.cloud.datacatalog.lineage.v1.IEntityReference|null} [target] Link target + * @property {google.protobuf.ITimestamp|null} [startTime] Link startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Link endTime + */ + + /** + * Constructs a new Link. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a Link. + * @implements ILink + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.ILink=} [properties] Properties to set + */ + function Link(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]]; + } + + /** + * Link name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @instance + */ + Link.prototype.name = ""; + + /** + * Link source. + * @member {google.cloud.datacatalog.lineage.v1.IEntityReference|null|undefined} source + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @instance + */ + Link.prototype.source = null; + + /** + * Link target. + * @member {google.cloud.datacatalog.lineage.v1.IEntityReference|null|undefined} target + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @instance + */ + Link.prototype.target = null; + + /** + * Link startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @instance + */ + Link.prototype.startTime = null; + + /** + * Link endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @instance + */ + Link.prototype.endTime = null; + + /** + * Creates a new Link instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @static + * @param {google.cloud.datacatalog.lineage.v1.ILink=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.Link} Link instance + */ + Link.create = function create(properties) { + return new Link(properties); + }; + + /** + * Encodes the specified Link message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Link.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @static + * @param {google.cloud.datacatalog.lineage.v1.ILink} message Link message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Link.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.google.cloud.datacatalog.lineage.v1.EntityReference.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.google.cloud.datacatalog.lineage.v1.EntityReference.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Link message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Link.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @static + * @param {google.cloud.datacatalog.lineage.v1.ILink} message Link message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Link.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Link message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.Link} Link + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Link.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.Link(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.source = $root.google.cloud.datacatalog.lineage.v1.EntityReference.decode(reader, reader.uint32()); + break; + } + case 3: { + message.target = $root.google.cloud.datacatalog.lineage.v1.EntityReference.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Link message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.Link} Link + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Link.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Link message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Link.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.google.cloud.datacatalog.lineage.v1.EntityReference.verify(message.source); + if (error) + return "source." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.google.cloud.datacatalog.lineage.v1.EntityReference.verify(message.target); + if (error) + return "target." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates a Link message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.Link} Link + */ + Link.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.Link) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.Link(); + if (object.name != null) + message.name = String(object.name); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Link.source: object expected"); + message.source = $root.google.cloud.datacatalog.lineage.v1.EntityReference.fromObject(object.source); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Link.target: object expected"); + message.target = $root.google.cloud.datacatalog.lineage.v1.EntityReference.fromObject(object.target); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Link.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.Link.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a Link message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @static + * @param {google.cloud.datacatalog.lineage.v1.Link} message Link + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Link.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.source = null; + object.target = null; + object.startTime = null; + object.endTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.google.cloud.datacatalog.lineage.v1.EntityReference.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.google.cloud.datacatalog.lineage.v1.EntityReference.toObject(message.target, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + return object; + }; + + /** + * Converts this Link to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @instance + * @returns {Object.} JSON object + */ + Link.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Link + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.Link + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Link.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.Link"; + }; + + return Link; + })(); + + v1.BatchSearchLinkProcessesRequest = (function() { + + /** + * Properties of a BatchSearchLinkProcessesRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IBatchSearchLinkProcessesRequest + * @property {string|null} [parent] BatchSearchLinkProcessesRequest parent + * @property {Array.|null} [links] BatchSearchLinkProcessesRequest links + * @property {number|null} [pageSize] BatchSearchLinkProcessesRequest pageSize + * @property {string|null} [pageToken] BatchSearchLinkProcessesRequest pageToken + */ + + /** + * Constructs a new BatchSearchLinkProcessesRequest. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a BatchSearchLinkProcessesRequest. + * @implements IBatchSearchLinkProcessesRequest + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest=} [properties] Properties to set + */ + function BatchSearchLinkProcessesRequest(properties) { + this.links = []; + 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]]; + } + + /** + * BatchSearchLinkProcessesRequest parent. + * @member {string} parent + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @instance + */ + BatchSearchLinkProcessesRequest.prototype.parent = ""; + + /** + * BatchSearchLinkProcessesRequest links. + * @member {Array.} links + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @instance + */ + BatchSearchLinkProcessesRequest.prototype.links = $util.emptyArray; + + /** + * BatchSearchLinkProcessesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @instance + */ + BatchSearchLinkProcessesRequest.prototype.pageSize = 0; + + /** + * BatchSearchLinkProcessesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @instance + */ + BatchSearchLinkProcessesRequest.prototype.pageToken = ""; + + /** + * Creates a new BatchSearchLinkProcessesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest} BatchSearchLinkProcessesRequest instance + */ + BatchSearchLinkProcessesRequest.create = function create(properties) { + return new BatchSearchLinkProcessesRequest(properties); + }; + + /** + * Encodes the specified BatchSearchLinkProcessesRequest message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest} message BatchSearchLinkProcessesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchSearchLinkProcessesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.links != null && message.links.length) + for (var i = 0; i < message.links.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.links[i]); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified BatchSearchLinkProcessesRequest message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest} message BatchSearchLinkProcessesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchSearchLinkProcessesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchSearchLinkProcessesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest} BatchSearchLinkProcessesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchSearchLinkProcessesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.links && message.links.length)) + message.links = []; + message.links.push(reader.string()); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchSearchLinkProcessesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest} BatchSearchLinkProcessesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchSearchLinkProcessesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchSearchLinkProcessesRequest message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchSearchLinkProcessesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.links != null && message.hasOwnProperty("links")) { + if (!Array.isArray(message.links)) + return "links: array expected"; + for (var i = 0; i < message.links.length; ++i) + if (!$util.isString(message.links[i])) + return "links: string[] expected"; + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a BatchSearchLinkProcessesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest} BatchSearchLinkProcessesRequest + */ + BatchSearchLinkProcessesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.links) { + if (!Array.isArray(object.links)) + throw TypeError(".google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest.links: array expected"); + message.links = []; + for (var i = 0; i < object.links.length; ++i) + message.links[i] = String(object.links[i]); + } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a BatchSearchLinkProcessesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @static + * @param {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest} message BatchSearchLinkProcessesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchSearchLinkProcessesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.links = []; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.links && message.links.length) { + object.links = []; + for (var j = 0; j < message.links.length; ++j) + object.links[j] = message.links[j]; + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this BatchSearchLinkProcessesRequest to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @instance + * @returns {Object.} JSON object + */ + BatchSearchLinkProcessesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchSearchLinkProcessesRequest + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchSearchLinkProcessesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest"; + }; + + return BatchSearchLinkProcessesRequest; + })(); + + v1.BatchSearchLinkProcessesResponse = (function() { + + /** + * Properties of a BatchSearchLinkProcessesResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IBatchSearchLinkProcessesResponse + * @property {Array.|null} [processLinks] BatchSearchLinkProcessesResponse processLinks + * @property {string|null} [nextPageToken] BatchSearchLinkProcessesResponse nextPageToken + */ + + /** + * Constructs a new BatchSearchLinkProcessesResponse. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a BatchSearchLinkProcessesResponse. + * @implements IBatchSearchLinkProcessesResponse + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse=} [properties] Properties to set + */ + function BatchSearchLinkProcessesResponse(properties) { + this.processLinks = []; + 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]]; + } + + /** + * BatchSearchLinkProcessesResponse processLinks. + * @member {Array.} processLinks + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @instance + */ + BatchSearchLinkProcessesResponse.prototype.processLinks = $util.emptyArray; + + /** + * BatchSearchLinkProcessesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @instance + */ + BatchSearchLinkProcessesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new BatchSearchLinkProcessesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse} BatchSearchLinkProcessesResponse instance + */ + BatchSearchLinkProcessesResponse.create = function create(properties) { + return new BatchSearchLinkProcessesResponse(properties); + }; + + /** + * Encodes the specified BatchSearchLinkProcessesResponse message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse} message BatchSearchLinkProcessesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchSearchLinkProcessesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.processLinks != null && message.processLinks.length) + for (var i = 0; i < message.processLinks.length; ++i) + $root.google.cloud.datacatalog.lineage.v1.ProcessLinks.encode(message.processLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified BatchSearchLinkProcessesResponse message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse} message BatchSearchLinkProcessesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchSearchLinkProcessesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchSearchLinkProcessesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse} BatchSearchLinkProcessesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchSearchLinkProcessesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.processLinks && message.processLinks.length)) + message.processLinks = []; + message.processLinks.push($root.google.cloud.datacatalog.lineage.v1.ProcessLinks.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchSearchLinkProcessesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse} BatchSearchLinkProcessesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchSearchLinkProcessesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchSearchLinkProcessesResponse message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchSearchLinkProcessesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.processLinks != null && message.hasOwnProperty("processLinks")) { + if (!Array.isArray(message.processLinks)) + return "processLinks: array expected"; + for (var i = 0; i < message.processLinks.length; ++i) { + var error = $root.google.cloud.datacatalog.lineage.v1.ProcessLinks.verify(message.processLinks[i]); + if (error) + return "processLinks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a BatchSearchLinkProcessesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse} BatchSearchLinkProcessesResponse + */ + BatchSearchLinkProcessesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse(); + if (object.processLinks) { + if (!Array.isArray(object.processLinks)) + throw TypeError(".google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse.processLinks: array expected"); + message.processLinks = []; + for (var i = 0; i < object.processLinks.length; ++i) { + if (typeof object.processLinks[i] !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse.processLinks: object expected"); + message.processLinks[i] = $root.google.cloud.datacatalog.lineage.v1.ProcessLinks.fromObject(object.processLinks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a BatchSearchLinkProcessesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @static + * @param {google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse} message BatchSearchLinkProcessesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchSearchLinkProcessesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.processLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.processLinks && message.processLinks.length) { + object.processLinks = []; + for (var j = 0; j < message.processLinks.length; ++j) + object.processLinks[j] = $root.google.cloud.datacatalog.lineage.v1.ProcessLinks.toObject(message.processLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this BatchSearchLinkProcessesResponse to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @instance + * @returns {Object.} JSON object + */ + BatchSearchLinkProcessesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchSearchLinkProcessesResponse + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchSearchLinkProcessesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse"; + }; + + return BatchSearchLinkProcessesResponse; + })(); + + v1.ProcessLinks = (function() { + + /** + * Properties of a ProcessLinks. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IProcessLinks + * @property {string|null} [process] ProcessLinks process + * @property {Array.|null} [links] ProcessLinks links + */ + + /** + * Constructs a new ProcessLinks. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a ProcessLinks. + * @implements IProcessLinks + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IProcessLinks=} [properties] Properties to set + */ + function ProcessLinks(properties) { + this.links = []; + 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]]; + } + + /** + * ProcessLinks process. + * @member {string} process + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @instance + */ + ProcessLinks.prototype.process = ""; + + /** + * ProcessLinks links. + * @member {Array.} links + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @instance + */ + ProcessLinks.prototype.links = $util.emptyArray; + + /** + * Creates a new ProcessLinks instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @static + * @param {google.cloud.datacatalog.lineage.v1.IProcessLinks=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.ProcessLinks} ProcessLinks instance + */ + ProcessLinks.create = function create(properties) { + return new ProcessLinks(properties); + }; + + /** + * Encodes the specified ProcessLinks message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ProcessLinks.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @static + * @param {google.cloud.datacatalog.lineage.v1.IProcessLinks} message ProcessLinks message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProcessLinks.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.process != null && Object.hasOwnProperty.call(message, "process")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.process); + if (message.links != null && message.links.length) + for (var i = 0; i < message.links.length; ++i) + $root.google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.encode(message.links[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ProcessLinks message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ProcessLinks.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @static + * @param {google.cloud.datacatalog.lineage.v1.IProcessLinks} message ProcessLinks message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProcessLinks.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProcessLinks message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.ProcessLinks} ProcessLinks + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProcessLinks.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.ProcessLinks(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.process = reader.string(); + break; + } + case 2: { + if (!(message.links && message.links.length)) + message.links = []; + message.links.push($root.google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProcessLinks message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.ProcessLinks} ProcessLinks + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProcessLinks.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProcessLinks message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProcessLinks.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.process != null && message.hasOwnProperty("process")) + if (!$util.isString(message.process)) + return "process: string expected"; + if (message.links != null && message.hasOwnProperty("links")) { + if (!Array.isArray(message.links)) + return "links: array expected"; + for (var i = 0; i < message.links.length; ++i) { + var error = $root.google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.verify(message.links[i]); + if (error) + return "links." + error; + } + } + return null; + }; + + /** + * Creates a ProcessLinks message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.ProcessLinks} ProcessLinks + */ + ProcessLinks.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.ProcessLinks) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.ProcessLinks(); + if (object.process != null) + message.process = String(object.process); + if (object.links) { + if (!Array.isArray(object.links)) + throw TypeError(".google.cloud.datacatalog.lineage.v1.ProcessLinks.links: array expected"); + message.links = []; + for (var i = 0; i < object.links.length; ++i) { + if (typeof object.links[i] !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.ProcessLinks.links: object expected"); + message.links[i] = $root.google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.fromObject(object.links[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ProcessLinks message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @static + * @param {google.cloud.datacatalog.lineage.v1.ProcessLinks} message ProcessLinks + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProcessLinks.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.links = []; + if (options.defaults) + object.process = ""; + if (message.process != null && message.hasOwnProperty("process")) + object.process = message.process; + if (message.links && message.links.length) { + object.links = []; + for (var j = 0; j < message.links.length; ++j) + object.links[j] = $root.google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.toObject(message.links[j], options); + } + return object; + }; + + /** + * Converts this ProcessLinks to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @instance + * @returns {Object.} JSON object + */ + ProcessLinks.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ProcessLinks + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinks + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProcessLinks.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.ProcessLinks"; + }; + + return ProcessLinks; + })(); + + v1.ProcessLinkInfo = (function() { + + /** + * Properties of a ProcessLinkInfo. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IProcessLinkInfo + * @property {string|null} [link] ProcessLinkInfo link + * @property {google.protobuf.ITimestamp|null} [startTime] ProcessLinkInfo startTime + * @property {google.protobuf.ITimestamp|null} [endTime] ProcessLinkInfo endTime + */ + + /** + * Constructs a new ProcessLinkInfo. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents a ProcessLinkInfo. + * @implements IProcessLinkInfo + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IProcessLinkInfo=} [properties] Properties to set + */ + function ProcessLinkInfo(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]]; + } + + /** + * ProcessLinkInfo link. + * @member {string} link + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @instance + */ + ProcessLinkInfo.prototype.link = ""; + + /** + * ProcessLinkInfo startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @instance + */ + ProcessLinkInfo.prototype.startTime = null; + + /** + * ProcessLinkInfo endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @instance + */ + ProcessLinkInfo.prototype.endTime = null; + + /** + * Creates a new ProcessLinkInfo instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @static + * @param {google.cloud.datacatalog.lineage.v1.IProcessLinkInfo=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.ProcessLinkInfo} ProcessLinkInfo instance + */ + ProcessLinkInfo.create = function create(properties) { + return new ProcessLinkInfo(properties); + }; + + /** + * Encodes the specified ProcessLinkInfo message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @static + * @param {google.cloud.datacatalog.lineage.v1.IProcessLinkInfo} message ProcessLinkInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProcessLinkInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.link != null && Object.hasOwnProperty.call(message, "link")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ProcessLinkInfo message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @static + * @param {google.cloud.datacatalog.lineage.v1.IProcessLinkInfo} message ProcessLinkInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProcessLinkInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProcessLinkInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.ProcessLinkInfo} ProcessLinkInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProcessLinkInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.ProcessLinkInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.link = reader.string(); + break; + } + case 2: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProcessLinkInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.ProcessLinkInfo} ProcessLinkInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProcessLinkInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProcessLinkInfo message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProcessLinkInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.link != null && message.hasOwnProperty("link")) + if (!$util.isString(message.link)) + return "link: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates a ProcessLinkInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.ProcessLinkInfo} ProcessLinkInfo + */ + ProcessLinkInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.ProcessLinkInfo) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.ProcessLinkInfo(); + if (object.link != null) + message.link = String(object.link); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.datacatalog.lineage.v1.ProcessLinkInfo.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a ProcessLinkInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @static + * @param {google.cloud.datacatalog.lineage.v1.ProcessLinkInfo} message ProcessLinkInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProcessLinkInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.link = ""; + object.startTime = null; + object.endTime = null; + } + if (message.link != null && message.hasOwnProperty("link")) + object.link = message.link; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + return object; + }; + + /** + * Converts this ProcessLinkInfo to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @instance + * @returns {Object.} JSON object + */ + ProcessLinkInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ProcessLinkInfo + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.ProcessLinkInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProcessLinkInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.ProcessLinkInfo"; + }; + + return ProcessLinkInfo; + })(); + + v1.Origin = (function() { + + /** + * Properties of an Origin. + * @memberof google.cloud.datacatalog.lineage.v1 + * @interface IOrigin + * @property {google.cloud.datacatalog.lineage.v1.Origin.SourceType|null} [sourceType] Origin sourceType + * @property {string|null} [name] Origin name + */ + + /** + * Constructs a new Origin. + * @memberof google.cloud.datacatalog.lineage.v1 + * @classdesc Represents an Origin. + * @implements IOrigin + * @constructor + * @param {google.cloud.datacatalog.lineage.v1.IOrigin=} [properties] Properties to set + */ + function Origin(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]]; + } + + /** + * Origin sourceType. + * @member {google.cloud.datacatalog.lineage.v1.Origin.SourceType} sourceType + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @instance + */ + Origin.prototype.sourceType = 0; + + /** + * Origin name. + * @member {string} name + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @instance + */ + Origin.prototype.name = ""; + + /** + * Creates a new Origin instance using the specified properties. + * @function create + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @static + * @param {google.cloud.datacatalog.lineage.v1.IOrigin=} [properties] Properties to set + * @returns {google.cloud.datacatalog.lineage.v1.Origin} Origin instance + */ + Origin.create = function create(properties) { + return new Origin(properties); + }; + + /** + * Encodes the specified Origin message. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Origin.verify|verify} messages. + * @function encode + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @static + * @param {google.cloud.datacatalog.lineage.v1.IOrigin} message Origin message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Origin.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sourceType != null && Object.hasOwnProperty.call(message, "sourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sourceType); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + return writer; + }; + + /** + * Encodes the specified Origin message, length delimited. Does not implicitly {@link google.cloud.datacatalog.lineage.v1.Origin.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @static + * @param {google.cloud.datacatalog.lineage.v1.IOrigin} message Origin message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Origin.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Origin message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.datacatalog.lineage.v1.Origin} Origin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Origin.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.datacatalog.lineage.v1.Origin(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sourceType = reader.int32(); + break; + } + case 2: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Origin message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.datacatalog.lineage.v1.Origin} Origin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Origin.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Origin message. + * @function verify + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Origin.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sourceType != null && message.hasOwnProperty("sourceType")) + switch (message.sourceType) { + default: + return "sourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates an Origin message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.datacatalog.lineage.v1.Origin} Origin + */ + Origin.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.datacatalog.lineage.v1.Origin) + return object; + var message = new $root.google.cloud.datacatalog.lineage.v1.Origin(); + switch (object.sourceType) { + default: + if (typeof object.sourceType === "number") { + message.sourceType = object.sourceType; + break; + } + break; + case "SOURCE_TYPE_UNSPECIFIED": + case 0: + message.sourceType = 0; + break; + case "CUSTOM": + case 1: + message.sourceType = 1; + break; + case "BIGQUERY": + case 2: + message.sourceType = 2; + break; + case "DATA_FUSION": + case 3: + message.sourceType = 3; + break; + case "COMPOSER": + case 4: + message.sourceType = 4; + break; + case "LOOKER_STUDIO": + case 5: + message.sourceType = 5; + break; + } + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an Origin message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @static + * @param {google.cloud.datacatalog.lineage.v1.Origin} message Origin + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Origin.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.sourceType = options.enums === String ? "SOURCE_TYPE_UNSPECIFIED" : 0; + object.name = ""; + } + if (message.sourceType != null && message.hasOwnProperty("sourceType")) + object.sourceType = options.enums === String ? $root.google.cloud.datacatalog.lineage.v1.Origin.SourceType[message.sourceType] === undefined ? message.sourceType : $root.google.cloud.datacatalog.lineage.v1.Origin.SourceType[message.sourceType] : message.sourceType; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this Origin to JSON. + * @function toJSON + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @instance + * @returns {Object.} JSON object + */ + Origin.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Origin + * @function getTypeUrl + * @memberof google.cloud.datacatalog.lineage.v1.Origin + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Origin.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.datacatalog.lineage.v1.Origin"; + }; + + /** + * SourceType enum. + * @name google.cloud.datacatalog.lineage.v1.Origin.SourceType + * @enum {number} + * @property {number} SOURCE_TYPE_UNSPECIFIED=0 SOURCE_TYPE_UNSPECIFIED value + * @property {number} CUSTOM=1 CUSTOM value + * @property {number} BIGQUERY=2 BIGQUERY value + * @property {number} DATA_FUSION=3 DATA_FUSION value + * @property {number} COMPOSER=4 COMPOSER value + * @property {number} LOOKER_STUDIO=5 LOOKER_STUDIO value + */ + Origin.SourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CUSTOM"] = 1; + values[valuesById[2] = "BIGQUERY"] = 2; + values[valuesById[3] = "DATA_FUSION"] = 3; + values[valuesById[4] = "COMPOSER"] = 4; + values[valuesById[5] = "LOOKER_STUDIO"] = 5; + return values; + })(); + + return Origin; + })(); + + return v1; + })(); + + return lineage; + })(); + + return datacatalog; + })(); + + return cloud; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + 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]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + 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]]; + } + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; + + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; + + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; + + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; + + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; + + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HttpRule + * @function getTypeUrl + * @memberof google.api.HttpRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.HttpRule"; + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(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]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; + + return CustomHttpPattern; + })(); + + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + return values; + })(); + + api.ResourceDescriptor = (function() { + + /** + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + * @property {Array.|null} [style] ResourceDescriptor style + */ + + /** + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor + * @constructor + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + */ + function ResourceDescriptor(properties) { + this.pattern = []; + this.style = []; + 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]]; + } + + /** + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.type = ""; + + /** + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.pattern = $util.emptyArray; + + /** + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.nameField = ""; + + /** + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.history = 0; + + /** + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.plural = ""; + + /** + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; + + /** + * ResourceDescriptor style. + * @member {Array.} style + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.style = $util.emptyArray; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @function create + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + */ + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); + }; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + if (message.style != null && message.style.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.style.length; ++i) + writer.int32(message.style[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + } + case 3: { + message.nameField = reader.string(); + break; + } + case 4: { + message.history = reader.int32(); + break; + } + case 5: { + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else + message.style.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceDescriptor message. + * @function verify + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + if (message.style != null && message.hasOwnProperty("style")) { + if (!Array.isArray(message.style)) + return "style: array expected"; + for (var i = 0; i < message.style.length; ++i) + switch (message.style[i]) { + default: + return "style: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); + } + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; + } + break; + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; + } + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + if (object.style) { + if (!Array.isArray(object.style)) + throw TypeError(".google.api.ResourceDescriptor.style: array expected"); + message.style = []; + for (var i = 0; i < object.style.length; ++i) + switch (object.style[i]) { + default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; + } + case "STYLE_UNSPECIFIED": + case 0: + message.style[i] = 0; + break; + case "DECLARATIVE_FRIENDLY": + case 1: + message.style[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.pattern = []; + object.style = []; + } + if (options.defaults) { + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + if (message.style && message.style.length) { + object.style = []; + for (var j = 0; j < message.style.length; ++j) + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + } + return object; + }; + + /** + * Converts this ResourceDescriptor to JSON. + * @function toJSON + * @memberof google.api.ResourceDescriptor + * @instance + * @returns {Object.} JSON object + */ + ResourceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceDescriptor + * @function getTypeUrl + * @memberof google.api.ResourceDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceDescriptor"; + }; + + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); + + /** + * Style enum. + * @name google.api.ResourceDescriptor.Style + * @enum {number} + * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value + * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value + */ + ResourceDescriptor.Style = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; + return values; + })(); + + return ResourceDescriptor; + })(); + + api.ResourceReference = (function() { + + /** + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType + */ + + /** + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference + * @constructor + * @param {google.api.IResourceReference=} [properties] Properties to set + */ + function ResourceReference(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]]; + } + + /** + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.type = ""; + + /** + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.childType = ""; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @function create + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance + */ + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); + }; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + return writer; + }; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.childType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceReference message. + * @function verify + * @memberof google.api.ResourceReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; + return null; + }; + + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceReference + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceReference} ResourceReference + */ + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) + return object; + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); + return message; + }; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceReference + * @static + * @param {google.api.ResourceReference} message ResourceReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + object.childType = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; + return object; + }; + + /** + * Converts this ResourceReference to JSON. + * @function toJSON + * @memberof google.api.ResourceReference + * @instance + * @returns {Object.} JSON object + */ + ResourceReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceReference + * @function getTypeUrl + * @memberof google.api.ResourceReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceReference"; + }; + + return ResourceReference; + })(); + + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + 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]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; + + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {string|null} [edition] FileDescriptorProto edition + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + 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]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * FileDescriptorProto edition. + * @member {string} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); + return writer; + }; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message["package"] = reader.string(); + break; + } + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + case 13: { + message.edition = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + if (!$util.isString(message.edition)) + return "edition: string expected"; + return null; + }; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + if (object.edition != null) + message.edition = String(object.edition); + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + object.edition = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = message.edition; + return object; + }; + + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(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]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(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]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + }; + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(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]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + case 17: { + message.proto3Optional = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; + break; + } + break; + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(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]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; + + EnumDescriptorProto.EnumReservedRange = (function() { + + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ + + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(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]]; + } + + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; + + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(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]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + 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]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(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]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); + return message; + }; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; + return object; + }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.MethodDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + MethodDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; + 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]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions phpGenericServices. + * @member {boolean} phpGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = true; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; + + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; + + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; + + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; + + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) + writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 42: { + message.phpGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (typeof message.phpGenericServices !== "boolean") + return "phpGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); + if (error) + return ".google.api.resourceDefinition." + error; + } + } + return null; + }; + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileOptions} FileOptions + */ + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) + return object; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.phpGenericServices != null) + message.phpGenericServices = Boolean(object.phpGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpGenericServices = false; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + object.phpGenericServices = message.phpGenericServices; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + } + return object; + }; + + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); + if (error) + return ".google.api.resource." + error; + } + return null; + }; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) + return object; + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); + } + return message; + }; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object[".google.api.resource"] = null; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); + return object; + }; + + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; + 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]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + + /** + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.resourceReference"] = null; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; + } + return null; + }; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; + break; + } + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; + break; + } + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + } + return message; + }; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object.unverifiedLazy = false; + object[".google.api.resourceReference"] = null; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + return object; + }; + + /** + * Converts this FieldOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions + * @instance + * @returns {Object.} JSON object + */ + FieldOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this OneofOptions to JSON. + * @function toJSON + * @memberof google.protobuf.OneofOptions + * @instance + * @returns {Object.} JSON object + */ + OneofOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) + return object; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.allowAlias = false; + object.deprecated = false; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) + return object; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumValueOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueOptions + * @instance + * @returns {Object.} JSON object + */ + EnumValueOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.defaultHost"] = ""; + + /** + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + return writer; + }; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; + } + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; + return null; + }; + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + return message; + }; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + return object; + }; + + /** + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions + * @instance + * @returns {Object.} JSON object + */ + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature + * @property {google.longrunning.IOperationInfo|null} [".google.longrunning.operationInfo"] MethodOptions .google.longrunning.operationInfo + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; + 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]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.idempotencyLevel = 0; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + + /** + * MethodOptions .google.longrunning.operationInfo. + * @member {google.longrunning.IOperationInfo|null|undefined} .google.longrunning.operationInfo + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.longrunning.operationInfo"] = null; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.longrunning.operationInfo"] != null && Object.hasOwnProperty.call(message, ".google.longrunning.operationInfo")) + $root.google.longrunning.OperationInfo.encode(message[".google.longrunning.operationInfo"], writer.uint32(/* id 1049, wireType 2 =*/8394).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + } + case 1049: { + message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; + } + if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) { + var error = $root.google.longrunning.OperationInfo.verify(message[".google.longrunning.operationInfo"]); + if (error) + return ".google.longrunning.operationInfo." + error; + } + return null; + }; + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) + return object; + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + } + if (object[".google.longrunning.operationInfo"] != null) { + if (typeof object[".google.longrunning.operationInfo"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.longrunning.operationInfo: object expected"); + message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.fromObject(object[".google.longrunning.operationInfo"]); + } + return message; + }; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } + if (options.defaults) { + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object[".google.longrunning.operationInfo"] = null; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) + object[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.toObject(message[".google.longrunning.operationInfo"], options); + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + return object; + }; + + /** + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; + + /** + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {number} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value + */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + 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]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + } + case 3: { + message.identifierValue = reader.string(); + break; + } + case 4: { + message.positiveIntValue = reader.uint64(); + break; + } + case 5: { + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length >= 0) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; + }; + + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(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]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + 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]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } + return object; + }; + + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + 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]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + 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]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + 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]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; + break; + } + break; + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; + return object; + }; + + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; + + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + protobuf.Any = (function() { + + /** + * Properties of an Any. + * @memberof google.protobuf + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value + */ + + /** + * Constructs a new Any. + * @memberof google.protobuf + * @classdesc Represents an Any. + * @implements IAny + * @constructor + * @param {google.protobuf.IAny=} [properties] Properties to set + */ + function Any(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]]; + } + + /** + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.type_url = ""; + + /** + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.value = $util.newBuffer([]); + + /** + * Creates a new Any instance using the specified properties. + * @function create + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny=} [properties] Properties to set + * @returns {google.protobuf.Any} Any instance + */ + Any.create = function create(properties) { + return new Any(properties); + }; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Any.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + return writer; + }; + + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Any.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Any message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Any + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Any} Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Any.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type_url = reader.string(); + break; + } + case 2: { + message.value = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Any + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Any} Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Any.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Any message. + * @function verify + * @memberof google.protobuf.Any + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Any.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; + + /** + * Creates an Any message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Any + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Any} Any + */ + Any.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Any) + return object; + var message = new $root.google.protobuf.Any(); + if (object.type_url != null) + message.type_url = String(object.type_url); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + return message; + }; + + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.Any} message Any + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Any.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type_url = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type_url != null && message.hasOwnProperty("type_url")) + object.type_url = message.type_url; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; + }; + + /** + * Converts this Any to JSON. + * @function toJSON + * @memberof google.protobuf.Any + * @instance + * @returns {Object.} JSON object + */ + Any.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Any + * @function getTypeUrl + * @memberof google.protobuf.Any + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Any"; + }; + + return Any; + })(); + + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(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]]; + } + + /** + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Duration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) + return object; + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof google.protobuf.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Duration + * @function getTypeUrl + * @memberof google.protobuf.Duration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Duration"; + }; + + return Duration; + })(); + + protobuf.Empty = (function() { + + /** + * Properties of an Empty. + * @memberof google.protobuf + * @interface IEmpty + */ + + /** + * Constructs a new Empty. + * @memberof google.protobuf + * @classdesc Represents an Empty. + * @implements IEmpty + * @constructor + * @param {google.protobuf.IEmpty=} [properties] Properties to set + */ + function Empty(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]]; + } + + /** + * Creates a new Empty instance using the specified properties. + * @function create + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @returns {google.protobuf.Empty} Empty instance + */ + Empty.create = function create(properties) { + return new Empty(properties); + }; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Empty message. + * @function verify + * @memberof google.protobuf.Empty + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Empty.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Empty + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Empty} Empty + */ + Empty.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Empty) + return object; + return new $root.google.protobuf.Empty(); + }; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.Empty} message Empty + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Empty.toObject = function toObject() { + return {}; + }; + + /** + * Converts this Empty to JSON. + * @function toJSON + * @memberof google.protobuf.Empty + * @instance + * @returns {Object.} JSON object + */ + Empty.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Empty + * @function getTypeUrl + * @memberof google.protobuf.Empty + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Empty"; + }; + + return Empty; + })(); + + protobuf.FieldMask = (function() { + + /** + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths + */ + + /** + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask + * @constructor + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + */ + function FieldMask(properties) { + this.paths = []; + 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]]; + } + + /** + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask + * @instance + */ + FieldMask.prototype.paths = $util.emptyArray; + + /** + * Creates a new FieldMask instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance + */ + FieldMask.create = function create(properties) { + return new FieldMask(properties); + }; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + return writer; + }; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldMask message. + * @function verify + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldMask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + return null; + }; + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldMask} FieldMask + */ + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) + return object; + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + return message; + }; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.FieldMask} message FieldMask + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldMask.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + return object; + }; + + /** + * Converts this FieldMask to JSON. + * @function toJSON + * @memberof google.protobuf.FieldMask + * @instance + * @returns {Object.} JSON object + */ + FieldMask.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldMask + * @function getTypeUrl + * @memberof google.protobuf.FieldMask + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldMask"; + }; + + return FieldMask; + })(); + + protobuf.Struct = (function() { + + /** + * Properties of a Struct. + * @memberof google.protobuf + * @interface IStruct + * @property {Object.|null} [fields] Struct fields + */ + + /** + * Constructs a new Struct. + * @memberof google.protobuf + * @classdesc Represents a Struct. + * @implements IStruct + * @constructor + * @param {google.protobuf.IStruct=} [properties] Properties to set + */ + function Struct(properties) { + this.fields = {}; + 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]]; + } + + /** + * Struct fields. + * @member {Object.} fields + * @memberof google.protobuf.Struct + * @instance + */ + Struct.prototype.fields = $util.emptyObject; + + /** + * Creates a new Struct instance using the specified properties. + * @function create + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct=} [properties] Properties to set + * @returns {google.protobuf.Struct} Struct instance + */ + Struct.create = function create(properties) { + return new Struct(properties); + }; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct} message Struct message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Struct.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) + for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct} message Struct message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Struct.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Struct} Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Struct.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.fields === $util.emptyObject) + message.fields = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.fields[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Struct message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Struct} Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Struct.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Struct message. + * @function verify + * @memberof google.protobuf.Struct + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Struct.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!$util.isObject(message.fields)) + return "fields: object expected"; + var key = Object.keys(message.fields); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.fields[key[i]]); + if (error) + return "fields." + error; + } + } + return null; + }; + + /** + * Creates a Struct message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Struct + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Struct} Struct + */ + Struct.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Struct) + return object; + var message = new $root.google.protobuf.Struct(); + if (object.fields) { + if (typeof object.fields !== "object") + throw TypeError(".google.protobuf.Struct.fields: object expected"); + message.fields = {}; + for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) { + if (typeof object.fields[keys[i]] !== "object") + throw TypeError(".google.protobuf.Struct.fields: object expected"); + message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a Struct message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.Struct} message Struct + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Struct.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.fields = {}; + var keys2; + if (message.fields && (keys2 = Object.keys(message.fields)).length) { + object.fields = {}; + for (var j = 0; j < keys2.length; ++j) + object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Struct to JSON. + * @function toJSON + * @memberof google.protobuf.Struct + * @instance + * @returns {Object.} JSON object + */ + Struct.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Struct + * @function getTypeUrl + * @memberof google.protobuf.Struct + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Struct"; + }; + + return Struct; + })(); + + protobuf.Value = (function() { + + /** + * Properties of a Value. + * @memberof google.protobuf + * @interface IValue + * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue + * @property {number|null} [numberValue] Value numberValue + * @property {string|null} [stringValue] Value stringValue + * @property {boolean|null} [boolValue] Value boolValue + * @property {google.protobuf.IStruct|null} [structValue] Value structValue + * @property {google.protobuf.IListValue|null} [listValue] Value listValue + */ + + /** + * Constructs a new Value. + * @memberof google.protobuf + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.protobuf.IValue=} [properties] Properties to set + */ + function Value(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]]; + } + + /** + * Value nullValue. + * @member {google.protobuf.NullValue|null|undefined} nullValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.nullValue = null; + + /** + * Value numberValue. + * @member {number|null|undefined} numberValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.numberValue = null; + + /** + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.stringValue = null; + + /** + * Value boolValue. + * @member {boolean|null|undefined} boolValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.boolValue = null; + + /** + * Value structValue. + * @member {google.protobuf.IStruct|null|undefined} structValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.structValue = null; + + /** + * Value listValue. + * @member {google.protobuf.IListValue|null|undefined} listValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.listValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Value kind. + * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind + * @memberof google.protobuf.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue=} [properties] Properties to set + * @returns {google.protobuf.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); + if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); + if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue")) + $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue")) + $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.nullValue = reader.int32(); + break; + } + case 2: { + message.numberValue = reader.double(); + break; + } + case 3: { + message.stringValue = reader.string(); + break; + } + case 4: { + message.boolValue = reader.bool(); + break; + } + case 5: { + message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 6: { + message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Value message. + * @function verify + * @memberof google.protobuf.Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + properties.kind = 1; + switch (message.nullValue) { + default: + return "nullValue: enum value expected"; + case 0: + break; + } + } + if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.numberValue !== "number") + return "numberValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean expected"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.Struct.verify(message.structValue); + if (error) + return "structValue." + error; + } + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.ListValue.verify(message.listValue); + if (error) + return "listValue." + error; + } + } + return null; + }; + + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Value} Value + */ + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Value) + return object; + var message = new $root.google.protobuf.Value(); + switch (object.nullValue) { + default: + if (typeof object.nullValue === "number") { + message.nullValue = object.nullValue; + break; + } + break; + case "NULL_VALUE": + case 0: + message.nullValue = 0; + break; + } + if (object.numberValue != null) + message.numberValue = Number(object.numberValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.boolValue != null) + message.boolValue = Boolean(object.boolValue); + if (object.structValue != null) { + if (typeof object.structValue !== "object") + throw TypeError(".google.protobuf.Value.structValue: object expected"); + message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue); + } + if (object.listValue != null) { + if (typeof object.listValue !== "object") + throw TypeError(".google.protobuf.Value.listValue: object expected"); + message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue); + } + return message; + }; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.Value} message Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] === undefined ? message.nullValue : $root.google.protobuf.NullValue[message.nullValue] : message.nullValue; + if (options.oneofs) + object.kind = "nullValue"; + } + if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue; + if (options.oneofs) + object.kind = "numberValue"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.kind = "stringValue"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + object.boolValue = message.boolValue; + if (options.oneofs) + object.kind = "boolValue"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options); + if (options.oneofs) + object.kind = "structValue"; + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options); + if (options.oneofs) + object.kind = "listValue"; + } + return object; + }; + + /** + * Converts this Value to JSON. + * @function toJSON + * @memberof google.protobuf.Value + * @instance + * @returns {Object.} JSON object + */ + Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Value + * @function getTypeUrl + * @memberof google.protobuf.Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Value"; + }; + + return Value; + })(); + + /** + * NullValue enum. + * @name google.protobuf.NullValue + * @enum {number} + * @property {number} NULL_VALUE=0 NULL_VALUE value + */ + protobuf.NullValue = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_VALUE"] = 0; + return values; + })(); + + protobuf.ListValue = (function() { + + /** + * Properties of a ListValue. + * @memberof google.protobuf + * @interface IListValue + * @property {Array.|null} [values] ListValue values + */ + + /** + * Constructs a new ListValue. + * @memberof google.protobuf + * @classdesc Represents a ListValue. + * @implements IListValue + * @constructor + * @param {google.protobuf.IListValue=} [properties] Properties to set + */ + function ListValue(properties) { + this.values = []; + 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]]; + } + + /** + * ListValue values. + * @member {Array.} values + * @memberof google.protobuf.ListValue + * @instance + */ + ListValue.prototype.values = $util.emptyArray; + + /** + * Creates a new ListValue instance using the specified properties. + * @function create + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue=} [properties] Properties to set + * @returns {google.protobuf.ListValue} ListValue instance + */ + ListValue.create = function create(properties) { + return new ListValue(properties); + }; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue} message ListValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue} message ListValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ListValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ListValue} ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ListValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ListValue} ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListValue message. + * @function verify + * @memberof google.protobuf.ListValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.values[i]); + if (error) + return "values." + error; + } + } + return null; + }; + + /** + * Creates a ListValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ListValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ListValue} ListValue + */ + ListValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ListValue) + return object; + var message = new $root.google.protobuf.ListValue(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.protobuf.ListValue.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".google.protobuf.ListValue.values: object expected"); + message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ListValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.ListValue} message ListValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options); + } + return object; + }; + + /** + * Converts this ListValue to JSON. + * @function toJSON + * @memberof google.protobuf.ListValue + * @instance + * @returns {Object.} JSON object + */ + ListValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListValue + * @function getTypeUrl + * @memberof google.protobuf.ListValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ListValue"; + }; + + return ListValue; + })(); + + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(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]]; + } + + /** + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Timestamp + * @function getTypeUrl + * @memberof google.protobuf.Timestamp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Timestamp"; + }; + + return Timestamp; + })(); + + return protobuf; + })(); + + google.longrunning = (function() { + + /** + * Namespace longrunning. + * @memberof google + * @namespace + */ + var longrunning = {}; + + longrunning.Operations = (function() { + + /** + * Constructs a new Operations service. + * @memberof google.longrunning + * @classdesc Represents an Operations + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Operations(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Operations.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Operations; + + /** + * Creates new Operations service using the specified rpc implementation. + * @function create + * @memberof google.longrunning.Operations + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Operations} RPC service. Useful where requests and/or responses are streamed. + */ + Operations.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.longrunning.Operations|listOperations}. + * @memberof google.longrunning.Operations + * @typedef ListOperationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.ListOperationsResponse} [response] ListOperationsResponse + */ + + /** + * Calls ListOperations. + * @function listOperations + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IListOperationsRequest} request ListOperationsRequest message or plain object + * @param {google.longrunning.Operations.ListOperationsCallback} callback Node-style callback called with the error, if any, and ListOperationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Operations.prototype.listOperations = function listOperations(request, callback) { + return this.rpcCall(listOperations, $root.google.longrunning.ListOperationsRequest, $root.google.longrunning.ListOperationsResponse, request, callback); + }, "name", { value: "ListOperations" }); + + /** + * Calls ListOperations. + * @function listOperations + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IListOperationsRequest} request ListOperationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.longrunning.Operations|getOperation}. + * @memberof google.longrunning.Operations + * @typedef GetOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls GetOperation. + * @function getOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IGetOperationRequest} request GetOperationRequest message or plain object + * @param {google.longrunning.Operations.GetOperationCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Operations.prototype.getOperation = function getOperation(request, callback) { + return this.rpcCall(getOperation, $root.google.longrunning.GetOperationRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "GetOperation" }); + + /** + * Calls GetOperation. + * @function getOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IGetOperationRequest} request GetOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * @memberof google.longrunning.Operations + * @typedef DeleteOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteOperation. + * @function deleteOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IDeleteOperationRequest} request DeleteOperationRequest message or plain object + * @param {google.longrunning.Operations.DeleteOperationCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Operations.prototype.deleteOperation = function deleteOperation(request, callback) { + return this.rpcCall(deleteOperation, $root.google.longrunning.DeleteOperationRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteOperation" }); + + /** + * Calls DeleteOperation. + * @function deleteOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IDeleteOperationRequest} request DeleteOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * @memberof google.longrunning.Operations + * @typedef CancelOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelOperation. + * @function cancelOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.ICancelOperationRequest} request CancelOperationRequest message or plain object + * @param {google.longrunning.Operations.CancelOperationCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Operations.prototype.cancelOperation = function cancelOperation(request, callback) { + return this.rpcCall(cancelOperation, $root.google.longrunning.CancelOperationRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelOperation" }); + + /** + * Calls CancelOperation. + * @function cancelOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.ICancelOperationRequest} request CancelOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * @memberof google.longrunning.Operations + * @typedef WaitOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls WaitOperation. + * @function waitOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IWaitOperationRequest} request WaitOperationRequest message or plain object + * @param {google.longrunning.Operations.WaitOperationCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Operations.prototype.waitOperation = function waitOperation(request, callback) { + return this.rpcCall(waitOperation, $root.google.longrunning.WaitOperationRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "WaitOperation" }); + + /** + * Calls WaitOperation. + * @function waitOperation + * @memberof google.longrunning.Operations + * @instance + * @param {google.longrunning.IWaitOperationRequest} request WaitOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Operations; + })(); + + longrunning.Operation = (function() { + + /** + * Properties of an Operation. + * @memberof google.longrunning + * @interface IOperation + * @property {string|null} [name] Operation name + * @property {google.protobuf.IAny|null} [metadata] Operation metadata + * @property {boolean|null} [done] Operation done + * @property {google.rpc.IStatus|null} [error] Operation error + * @property {google.protobuf.IAny|null} [response] Operation response + */ + + /** + * Constructs a new Operation. + * @memberof google.longrunning + * @classdesc Represents an Operation. + * @implements IOperation + * @constructor + * @param {google.longrunning.IOperation=} [properties] Properties to set + */ + function Operation(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]]; + } + + /** + * Operation name. + * @member {string} name + * @memberof google.longrunning.Operation + * @instance + */ + Operation.prototype.name = ""; + + /** + * Operation metadata. + * @member {google.protobuf.IAny|null|undefined} metadata + * @memberof google.longrunning.Operation + * @instance + */ + Operation.prototype.metadata = null; + + /** + * Operation done. + * @member {boolean} done + * @memberof google.longrunning.Operation + * @instance + */ + Operation.prototype.done = false; + + /** + * Operation error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.longrunning.Operation + * @instance + */ + Operation.prototype.error = null; + + /** + * Operation response. + * @member {google.protobuf.IAny|null|undefined} response + * @memberof google.longrunning.Operation + * @instance + */ + Operation.prototype.response = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Operation result. + * @member {"error"|"response"|undefined} result + * @memberof google.longrunning.Operation + * @instance + */ + Object.defineProperty(Operation.prototype, "result", { + get: $util.oneOfGetter($oneOfFields = ["error", "response"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Operation instance using the specified properties. + * @function create + * @memberof google.longrunning.Operation + * @static + * @param {google.longrunning.IOperation=} [properties] Properties to set + * @returns {google.longrunning.Operation} Operation instance + */ + Operation.create = function create(properties) { + return new Operation(properties); + }; + + /** + * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * @function encode + * @memberof google.longrunning.Operation + * @static + * @param {google.longrunning.IOperation} message Operation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Any.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.done != null && Object.hasOwnProperty.call(message, "done")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.done); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.response != null && Object.hasOwnProperty.call(message, "response")) + $root.google.protobuf.Any.encode(message.response, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.longrunning.Operation + * @static + * @param {google.longrunning.IOperation} message Operation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Operation message from the specified reader or buffer. + * @function decode + * @memberof google.longrunning.Operation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.longrunning.Operation} Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.Operation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.metadata = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + } + case 3: { + message.done = reader.bool(); + break; + } + case 4: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 5: { + message.response = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Operation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.longrunning.Operation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.longrunning.Operation} Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Operation message. + * @function verify + * @memberof google.longrunning.Operation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Operation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Any.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.done != null && message.hasOwnProperty("done")) + if (typeof message.done !== "boolean") + return "done: boolean expected"; + if (message.error != null && message.hasOwnProperty("error")) { + properties.result = 1; + { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.response != null && message.hasOwnProperty("response")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + { + var error = $root.google.protobuf.Any.verify(message.response); + if (error) + return "response." + error; + } + } + return null; + }; + + /** + * Creates an Operation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.longrunning.Operation + * @static + * @param {Object.} object Plain object + * @returns {google.longrunning.Operation} Operation + */ + Operation.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.Operation) + return object; + var message = new $root.google.longrunning.Operation(); + if (object.name != null) + message.name = String(object.name); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.longrunning.Operation.metadata: object expected"); + message.metadata = $root.google.protobuf.Any.fromObject(object.metadata); + } + if (object.done != null) + message.done = Boolean(object.done); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.longrunning.Operation.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.response != null) { + if (typeof object.response !== "object") + throw TypeError(".google.longrunning.Operation.response: object expected"); + message.response = $root.google.protobuf.Any.fromObject(object.response); + } + return message; + }; + + /** + * Creates a plain object from an Operation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.longrunning.Operation + * @static + * @param {google.longrunning.Operation} message Operation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Operation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.metadata = null; + object.done = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Any.toObject(message.metadata, options); + if (message.done != null && message.hasOwnProperty("done")) + object.done = message.done; + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (options.oneofs) + object.result = "error"; + } + if (message.response != null && message.hasOwnProperty("response")) { + object.response = $root.google.protobuf.Any.toObject(message.response, options); + if (options.oneofs) + object.result = "response"; + } + return object; + }; + + /** + * Converts this Operation to JSON. + * @function toJSON + * @memberof google.longrunning.Operation + * @instance + * @returns {Object.} JSON object + */ + Operation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Operation + * @function getTypeUrl + * @memberof google.longrunning.Operation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Operation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.longrunning.Operation"; + }; + + return Operation; + })(); + + longrunning.GetOperationRequest = (function() { + + /** + * Properties of a GetOperationRequest. + * @memberof google.longrunning + * @interface IGetOperationRequest + * @property {string|null} [name] GetOperationRequest name + */ + + /** + * Constructs a new GetOperationRequest. + * @memberof google.longrunning + * @classdesc Represents a GetOperationRequest. + * @implements IGetOperationRequest + * @constructor + * @param {google.longrunning.IGetOperationRequest=} [properties] Properties to set + */ + function GetOperationRequest(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]]; + } + + /** + * GetOperationRequest name. + * @member {string} name + * @memberof google.longrunning.GetOperationRequest + * @instance + */ + GetOperationRequest.prototype.name = ""; + + /** + * Creates a new GetOperationRequest instance using the specified properties. + * @function create + * @memberof google.longrunning.GetOperationRequest + * @static + * @param {google.longrunning.IGetOperationRequest=} [properties] Properties to set + * @returns {google.longrunning.GetOperationRequest} GetOperationRequest instance + */ + GetOperationRequest.create = function create(properties) { + return new GetOperationRequest(properties); + }; + + /** + * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * @function encode + * @memberof google.longrunning.GetOperationRequest + * @static + * @param {google.longrunning.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetOperationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.longrunning.GetOperationRequest + * @static + * @param {google.longrunning.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.longrunning.GetOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.longrunning.GetOperationRequest} GetOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetOperationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.GetOperationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.longrunning.GetOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.longrunning.GetOperationRequest} GetOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetOperationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetOperationRequest message. + * @function verify + * @memberof google.longrunning.GetOperationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetOperationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.longrunning.GetOperationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.longrunning.GetOperationRequest} GetOperationRequest + */ + GetOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.GetOperationRequest) + return object; + var message = new $root.google.longrunning.GetOperationRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.longrunning.GetOperationRequest + * @static + * @param {google.longrunning.GetOperationRequest} message GetOperationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetOperationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetOperationRequest to JSON. + * @function toJSON + * @memberof google.longrunning.GetOperationRequest + * @instance + * @returns {Object.} JSON object + */ + GetOperationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetOperationRequest + * @function getTypeUrl + * @memberof google.longrunning.GetOperationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.longrunning.GetOperationRequest"; + }; + + return GetOperationRequest; + })(); + + longrunning.ListOperationsRequest = (function() { + + /** + * Properties of a ListOperationsRequest. + * @memberof google.longrunning + * @interface IListOperationsRequest + * @property {string|null} [name] ListOperationsRequest name + * @property {string|null} [filter] ListOperationsRequest filter + * @property {number|null} [pageSize] ListOperationsRequest pageSize + * @property {string|null} [pageToken] ListOperationsRequest pageToken + */ + + /** + * Constructs a new ListOperationsRequest. + * @memberof google.longrunning + * @classdesc Represents a ListOperationsRequest. + * @implements IListOperationsRequest + * @constructor + * @param {google.longrunning.IListOperationsRequest=} [properties] Properties to set + */ + function ListOperationsRequest(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]]; + } + + /** + * ListOperationsRequest name. + * @member {string} name + * @memberof google.longrunning.ListOperationsRequest + * @instance + */ + ListOperationsRequest.prototype.name = ""; + + /** + * ListOperationsRequest filter. + * @member {string} filter + * @memberof google.longrunning.ListOperationsRequest + * @instance + */ + ListOperationsRequest.prototype.filter = ""; + + /** + * ListOperationsRequest pageSize. + * @member {number} pageSize + * @memberof google.longrunning.ListOperationsRequest + * @instance + */ + ListOperationsRequest.prototype.pageSize = 0; + + /** + * ListOperationsRequest pageToken. + * @member {string} pageToken + * @memberof google.longrunning.ListOperationsRequest + * @instance + */ + ListOperationsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListOperationsRequest instance using the specified properties. + * @function create + * @memberof google.longrunning.ListOperationsRequest + * @static + * @param {google.longrunning.IListOperationsRequest=} [properties] Properties to set + * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest instance + */ + ListOperationsRequest.create = function create(properties) { + return new ListOperationsRequest(properties); + }; + + /** + * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * @function encode + * @memberof google.longrunning.ListOperationsRequest + * @static + * @param {google.longrunning.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListOperationsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + return writer; + }; + + /** + * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.longrunning.ListOperationsRequest + * @static + * @param {google.longrunning.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.longrunning.ListOperationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListOperationsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.ListOperationsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: { + message.name = reader.string(); + break; + } + case 1: { + message.filter = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.longrunning.ListOperationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListOperationsRequest message. + * @function verify + * @memberof google.longrunning.ListOperationsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListOperationsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.longrunning.ListOperationsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.longrunning.ListOperationsRequest} ListOperationsRequest + */ + ListOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.ListOperationsRequest) + return object; + var message = new $root.google.longrunning.ListOperationsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.longrunning.ListOperationsRequest + * @static + * @param {google.longrunning.ListOperationsRequest} message ListOperationsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListOperationsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.name = ""; + } + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this ListOperationsRequest to JSON. + * @function toJSON + * @memberof google.longrunning.ListOperationsRequest + * @instance + * @returns {Object.} JSON object + */ + ListOperationsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListOperationsRequest + * @function getTypeUrl + * @memberof google.longrunning.ListOperationsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.longrunning.ListOperationsRequest"; + }; + + return ListOperationsRequest; + })(); + + longrunning.ListOperationsResponse = (function() { + + /** + * Properties of a ListOperationsResponse. + * @memberof google.longrunning + * @interface IListOperationsResponse + * @property {Array.|null} [operations] ListOperationsResponse operations + * @property {string|null} [nextPageToken] ListOperationsResponse nextPageToken + */ + + /** + * Constructs a new ListOperationsResponse. + * @memberof google.longrunning + * @classdesc Represents a ListOperationsResponse. + * @implements IListOperationsResponse + * @constructor + * @param {google.longrunning.IListOperationsResponse=} [properties] Properties to set + */ + function ListOperationsResponse(properties) { + this.operations = []; + 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]]; + } + + /** + * ListOperationsResponse operations. + * @member {Array.} operations + * @memberof google.longrunning.ListOperationsResponse + * @instance + */ + ListOperationsResponse.prototype.operations = $util.emptyArray; + + /** + * ListOperationsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.longrunning.ListOperationsResponse + * @instance + */ + ListOperationsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListOperationsResponse instance using the specified properties. + * @function create + * @memberof google.longrunning.ListOperationsResponse + * @static + * @param {google.longrunning.IListOperationsResponse=} [properties] Properties to set + * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse instance + */ + ListOperationsResponse.create = function create(properties) { + return new ListOperationsResponse(properties); + }; + + /** + * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * @function encode + * @memberof google.longrunning.ListOperationsResponse + * @static + * @param {google.longrunning.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListOperationsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operations != null && message.operations.length) + for (var i = 0; i < message.operations.length; ++i) + $root.google.longrunning.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.longrunning.ListOperationsResponse + * @static + * @param {google.longrunning.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.longrunning.ListOperationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListOperationsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.ListOperationsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.operations && message.operations.length)) + message.operations = []; + message.operations.push($root.google.longrunning.Operation.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.longrunning.ListOperationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListOperationsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListOperationsResponse message. + * @function verify + * @memberof google.longrunning.ListOperationsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListOperationsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operations != null && message.hasOwnProperty("operations")) { + if (!Array.isArray(message.operations)) + return "operations: array expected"; + for (var i = 0; i < message.operations.length; ++i) { + var error = $root.google.longrunning.Operation.verify(message.operations[i]); + if (error) + return "operations." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.longrunning.ListOperationsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.longrunning.ListOperationsResponse} ListOperationsResponse + */ + ListOperationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.ListOperationsResponse) + return object; + var message = new $root.google.longrunning.ListOperationsResponse(); + if (object.operations) { + if (!Array.isArray(object.operations)) + throw TypeError(".google.longrunning.ListOperationsResponse.operations: array expected"); + message.operations = []; + for (var i = 0; i < object.operations.length; ++i) { + if (typeof object.operations[i] !== "object") + throw TypeError(".google.longrunning.ListOperationsResponse.operations: object expected"); + message.operations[i] = $root.google.longrunning.Operation.fromObject(object.operations[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.longrunning.ListOperationsResponse + * @static + * @param {google.longrunning.ListOperationsResponse} message ListOperationsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListOperationsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.operations = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.operations && message.operations.length) { + object.operations = []; + for (var j = 0; j < message.operations.length; ++j) + object.operations[j] = $root.google.longrunning.Operation.toObject(message.operations[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListOperationsResponse to JSON. + * @function toJSON + * @memberof google.longrunning.ListOperationsResponse + * @instance + * @returns {Object.} JSON object + */ + ListOperationsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListOperationsResponse + * @function getTypeUrl + * @memberof google.longrunning.ListOperationsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListOperationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.longrunning.ListOperationsResponse"; + }; + + return ListOperationsResponse; + })(); + + longrunning.CancelOperationRequest = (function() { + + /** + * Properties of a CancelOperationRequest. + * @memberof google.longrunning + * @interface ICancelOperationRequest + * @property {string|null} [name] CancelOperationRequest name + */ + + /** + * Constructs a new CancelOperationRequest. + * @memberof google.longrunning + * @classdesc Represents a CancelOperationRequest. + * @implements ICancelOperationRequest + * @constructor + * @param {google.longrunning.ICancelOperationRequest=} [properties] Properties to set + */ + function CancelOperationRequest(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]]; + } + + /** + * CancelOperationRequest name. + * @member {string} name + * @memberof google.longrunning.CancelOperationRequest + * @instance + */ + CancelOperationRequest.prototype.name = ""; + + /** + * Creates a new CancelOperationRequest instance using the specified properties. + * @function create + * @memberof google.longrunning.CancelOperationRequest + * @static + * @param {google.longrunning.ICancelOperationRequest=} [properties] Properties to set + * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest instance + */ + CancelOperationRequest.create = function create(properties) { + return new CancelOperationRequest(properties); + }; + + /** + * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * @function encode + * @memberof google.longrunning.CancelOperationRequest + * @static + * @param {google.longrunning.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelOperationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.longrunning.CancelOperationRequest + * @static + * @param {google.longrunning.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.longrunning.CancelOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelOperationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.CancelOperationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.longrunning.CancelOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CancelOperationRequest message. + * @function verify + * @memberof google.longrunning.CancelOperationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CancelOperationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.longrunning.CancelOperationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.longrunning.CancelOperationRequest} CancelOperationRequest + */ + CancelOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.CancelOperationRequest) + return object; + var message = new $root.google.longrunning.CancelOperationRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.longrunning.CancelOperationRequest + * @static + * @param {google.longrunning.CancelOperationRequest} message CancelOperationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CancelOperationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this CancelOperationRequest to JSON. + * @function toJSON + * @memberof google.longrunning.CancelOperationRequest + * @instance + * @returns {Object.} JSON object + */ + CancelOperationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CancelOperationRequest + * @function getTypeUrl + * @memberof google.longrunning.CancelOperationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CancelOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.longrunning.CancelOperationRequest"; + }; + + return CancelOperationRequest; + })(); + + longrunning.DeleteOperationRequest = (function() { + + /** + * Properties of a DeleteOperationRequest. + * @memberof google.longrunning + * @interface IDeleteOperationRequest + * @property {string|null} [name] DeleteOperationRequest name + */ + + /** + * Constructs a new DeleteOperationRequest. + * @memberof google.longrunning + * @classdesc Represents a DeleteOperationRequest. + * @implements IDeleteOperationRequest + * @constructor + * @param {google.longrunning.IDeleteOperationRequest=} [properties] Properties to set + */ + function DeleteOperationRequest(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]]; + } + + /** + * DeleteOperationRequest name. + * @member {string} name + * @memberof google.longrunning.DeleteOperationRequest + * @instance + */ + DeleteOperationRequest.prototype.name = ""; + + /** + * Creates a new DeleteOperationRequest instance using the specified properties. + * @function create + * @memberof google.longrunning.DeleteOperationRequest + * @static + * @param {google.longrunning.IDeleteOperationRequest=} [properties] Properties to set + * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest instance + */ + DeleteOperationRequest.create = function create(properties) { + return new DeleteOperationRequest(properties); + }; + + /** + * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * @function encode + * @memberof google.longrunning.DeleteOperationRequest + * @static + * @param {google.longrunning.IDeleteOperationRequest} message DeleteOperationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteOperationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.longrunning.DeleteOperationRequest + * @static + * @param {google.longrunning.IDeleteOperationRequest} message DeleteOperationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteOperationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.longrunning.DeleteOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteOperationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.DeleteOperationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.longrunning.DeleteOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteOperationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteOperationRequest message. + * @function verify + * @memberof google.longrunning.DeleteOperationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteOperationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.longrunning.DeleteOperationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.longrunning.DeleteOperationRequest} DeleteOperationRequest + */ + DeleteOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.DeleteOperationRequest) + return object; + var message = new $root.google.longrunning.DeleteOperationRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.longrunning.DeleteOperationRequest + * @static + * @param {google.longrunning.DeleteOperationRequest} message DeleteOperationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteOperationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteOperationRequest to JSON. + * @function toJSON + * @memberof google.longrunning.DeleteOperationRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteOperationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteOperationRequest + * @function getTypeUrl + * @memberof google.longrunning.DeleteOperationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.longrunning.DeleteOperationRequest"; + }; + + return DeleteOperationRequest; + })(); + + longrunning.WaitOperationRequest = (function() { + + /** + * Properties of a WaitOperationRequest. + * @memberof google.longrunning + * @interface IWaitOperationRequest + * @property {string|null} [name] WaitOperationRequest name + * @property {google.protobuf.IDuration|null} [timeout] WaitOperationRequest timeout + */ + + /** + * Constructs a new WaitOperationRequest. + * @memberof google.longrunning + * @classdesc Represents a WaitOperationRequest. + * @implements IWaitOperationRequest + * @constructor + * @param {google.longrunning.IWaitOperationRequest=} [properties] Properties to set + */ + function WaitOperationRequest(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]]; + } + + /** + * WaitOperationRequest name. + * @member {string} name + * @memberof google.longrunning.WaitOperationRequest + * @instance + */ + WaitOperationRequest.prototype.name = ""; + + /** + * WaitOperationRequest timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.longrunning.WaitOperationRequest + * @instance + */ + WaitOperationRequest.prototype.timeout = null; + + /** + * Creates a new WaitOperationRequest instance using the specified properties. + * @function create + * @memberof google.longrunning.WaitOperationRequest + * @static + * @param {google.longrunning.IWaitOperationRequest=} [properties] Properties to set + * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest instance + */ + WaitOperationRequest.create = function create(properties) { + return new WaitOperationRequest(properties); + }; + + /** + * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * @function encode + * @memberof google.longrunning.WaitOperationRequest + * @static + * @param {google.longrunning.IWaitOperationRequest} message WaitOperationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WaitOperationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.longrunning.WaitOperationRequest + * @static + * @param {google.longrunning.IWaitOperationRequest} message WaitOperationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WaitOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WaitOperationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.longrunning.WaitOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WaitOperationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.WaitOperationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.longrunning.WaitOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WaitOperationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WaitOperationRequest message. + * @function verify + * @memberof google.longrunning.WaitOperationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WaitOperationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + return null; + }; + + /** + * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.longrunning.WaitOperationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.longrunning.WaitOperationRequest} WaitOperationRequest + */ + WaitOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.WaitOperationRequest) + return object; + var message = new $root.google.longrunning.WaitOperationRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.timeout != null) { + if (typeof object.timeout !== "object") + throw TypeError(".google.longrunning.WaitOperationRequest.timeout: object expected"); + message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); + } + return message; + }; + + /** + * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.longrunning.WaitOperationRequest + * @static + * @param {google.longrunning.WaitOperationRequest} message WaitOperationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WaitOperationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.timeout = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.timeout != null && message.hasOwnProperty("timeout")) + object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); + return object; + }; + + /** + * Converts this WaitOperationRequest to JSON. + * @function toJSON + * @memberof google.longrunning.WaitOperationRequest + * @instance + * @returns {Object.} JSON object + */ + WaitOperationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WaitOperationRequest + * @function getTypeUrl + * @memberof google.longrunning.WaitOperationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WaitOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.longrunning.WaitOperationRequest"; + }; + + return WaitOperationRequest; + })(); + + longrunning.OperationInfo = (function() { + + /** + * Properties of an OperationInfo. + * @memberof google.longrunning + * @interface IOperationInfo + * @property {string|null} [responseType] OperationInfo responseType + * @property {string|null} [metadataType] OperationInfo metadataType + */ + + /** + * Constructs a new OperationInfo. + * @memberof google.longrunning + * @classdesc Represents an OperationInfo. + * @implements IOperationInfo + * @constructor + * @param {google.longrunning.IOperationInfo=} [properties] Properties to set + */ + function OperationInfo(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]]; + } + + /** + * OperationInfo responseType. + * @member {string} responseType + * @memberof google.longrunning.OperationInfo + * @instance + */ + OperationInfo.prototype.responseType = ""; + + /** + * OperationInfo metadataType. + * @member {string} metadataType + * @memberof google.longrunning.OperationInfo + * @instance + */ + OperationInfo.prototype.metadataType = ""; + + /** + * Creates a new OperationInfo instance using the specified properties. + * @function create + * @memberof google.longrunning.OperationInfo + * @static + * @param {google.longrunning.IOperationInfo=} [properties] Properties to set + * @returns {google.longrunning.OperationInfo} OperationInfo instance + */ + OperationInfo.create = function create(properties) { + return new OperationInfo(properties); + }; + + /** + * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * @function encode + * @memberof google.longrunning.OperationInfo + * @static + * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseType); + if (message.metadataType != null && Object.hasOwnProperty.call(message, "metadataType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadataType); + return writer; + }; + + /** + * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.longrunning.OperationInfo + * @static + * @param {google.longrunning.IOperationInfo} message OperationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OperationInfo message from the specified reader or buffer. + * @function decode + * @memberof google.longrunning.OperationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.longrunning.OperationInfo} OperationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.longrunning.OperationInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.responseType = reader.string(); + break; + } + case 2: { + message.metadataType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OperationInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.longrunning.OperationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.longrunning.OperationInfo} OperationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OperationInfo message. + * @function verify + * @memberof google.longrunning.OperationInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OperationInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.responseType != null && message.hasOwnProperty("responseType")) + if (!$util.isString(message.responseType)) + return "responseType: string expected"; + if (message.metadataType != null && message.hasOwnProperty("metadataType")) + if (!$util.isString(message.metadataType)) + return "metadataType: string expected"; + return null; + }; + + /** + * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.longrunning.OperationInfo + * @static + * @param {Object.} object Plain object + * @returns {google.longrunning.OperationInfo} OperationInfo + */ + OperationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.longrunning.OperationInfo) + return object; + var message = new $root.google.longrunning.OperationInfo(); + if (object.responseType != null) + message.responseType = String(object.responseType); + if (object.metadataType != null) + message.metadataType = String(object.metadataType); + return message; + }; + + /** + * Creates a plain object from an OperationInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.longrunning.OperationInfo + * @static + * @param {google.longrunning.OperationInfo} message OperationInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OperationInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.responseType = ""; + object.metadataType = ""; + } + if (message.responseType != null && message.hasOwnProperty("responseType")) + object.responseType = message.responseType; + if (message.metadataType != null && message.hasOwnProperty("metadataType")) + object.metadataType = message.metadataType; + return object; + }; + + /** + * Converts this OperationInfo to JSON. + * @function toJSON + * @memberof google.longrunning.OperationInfo + * @instance + * @returns {Object.} JSON object + */ + OperationInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OperationInfo + * @function getTypeUrl + * @memberof google.longrunning.OperationInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OperationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.longrunning.OperationInfo"; + }; + + return OperationInfo; + })(); + + return longrunning; + })(); + + google.rpc = (function() { + + /** + * Namespace rpc. + * @memberof google + * @namespace + */ + var rpc = {}; + + rpc.Status = (function() { + + /** + * Properties of a Status. + * @memberof google.rpc + * @interface IStatus + * @property {number|null} [code] Status code + * @property {string|null} [message] Status message + * @property {Array.|null} [details] Status details + */ + + /** + * Constructs a new Status. + * @memberof google.rpc + * @classdesc Represents a Status. + * @implements IStatus + * @constructor + * @param {google.rpc.IStatus=} [properties] Properties to set + */ + function Status(properties) { + this.details = []; + 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]]; + } + + /** + * Status code. + * @member {number} code + * @memberof google.rpc.Status + * @instance + */ + Status.prototype.code = 0; + + /** + * Status message. + * @member {string} message + * @memberof google.rpc.Status + * @instance + */ + Status.prototype.message = ""; + + /** + * Status details. + * @member {Array.} details + * @memberof google.rpc.Status + * @instance + */ + Status.prototype.details = $util.emptyArray; + + /** + * Creates a new Status instance using the specified properties. + * @function create + * @memberof google.rpc.Status + * @static + * @param {google.rpc.IStatus=} [properties] Properties to set + * @returns {google.rpc.Status} Status instance + */ + Status.create = function create(properties) { + return new Status(properties); + }; + + /** + * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @function encode + * @memberof google.rpc.Status + * @static + * @param {google.rpc.IStatus} message Status message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Status.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.details != null && message.details.length) + for (var i = 0; i < message.details.length; ++i) + $root.google.protobuf.Any.encode(message.details[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @function encodeDelimited + * @memberof google.rpc.Status + * @static + * @param {google.rpc.IStatus} message Status message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Status.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Status message from the specified reader or buffer. + * @function decode + * @memberof google.rpc.Status + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.rpc.Status} Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Status.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.rpc.Status(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.code = reader.int32(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + case 3: { + if (!(message.details && message.details.length)) + message.details = []; + message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.rpc.Status + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.rpc.Status} Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Status.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Status message. + * @function verify + * @memberof google.rpc.Status + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Status.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.details != null && message.hasOwnProperty("details")) { + if (!Array.isArray(message.details)) + return "details: array expected"; + for (var i = 0; i < message.details.length; ++i) { + var error = $root.google.protobuf.Any.verify(message.details[i]); + if (error) + return "details." + error; + } + } + return null; + }; + + /** + * Creates a Status message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.rpc.Status + * @static + * @param {Object.} object Plain object + * @returns {google.rpc.Status} Status + */ + Status.fromObject = function fromObject(object) { + if (object instanceof $root.google.rpc.Status) + return object; + var message = new $root.google.rpc.Status(); + if (object.code != null) + message.code = object.code | 0; + if (object.message != null) + message.message = String(object.message); + if (object.details) { + if (!Array.isArray(object.details)) + throw TypeError(".google.rpc.Status.details: array expected"); + message.details = []; + for (var i = 0; i < object.details.length; ++i) { + if (typeof object.details[i] !== "object") + throw TypeError(".google.rpc.Status.details: object expected"); + message.details[i] = $root.google.protobuf.Any.fromObject(object.details[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @function toObject + * @memberof google.rpc.Status + * @static + * @param {google.rpc.Status} message Status + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Status.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.details = []; + if (options.defaults) { + object.code = 0; + object.message = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.details && message.details.length) { + object.details = []; + for (var j = 0; j < message.details.length; ++j) + object.details[j] = $root.google.protobuf.Any.toObject(message.details[j], options); + } + return object; + }; + + /** + * Converts this Status to JSON. + * @function toJSON + * @memberof google.rpc.Status + * @instance + * @returns {Object.} JSON object + */ + Status.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Status + * @function getTypeUrl + * @memberof google.rpc.Status + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Status.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.rpc.Status"; + }; + + return Status; + })(); + + return rpc; + })(); + + return google; + })(); + + return $root; +}); diff --git a/packages/google-cloud-datacatalog-lineage/protos/protos.json b/packages/google-cloud-datacatalog-lineage/protos/protos.json new file mode 100644 index 000000000000..30f094518790 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/protos/protos.json @@ -0,0 +1,2549 @@ +{ + "nested": { + "google": { + "nested": { + "cloud": { + "nested": { + "datacatalog": { + "nested": { + "lineage": { + "nested": { + "v1": { + "options": { + "csharp_namespace": "Google.Cloud.DataCatalog.Lineage.V1", + "go_package": "google.golang.org/genproto/googleapis/cloud/datacatalog/lineage/v1;lineage", + "java_multiple_files": true, + "java_outer_classname": "LineageProto", + "java_package": "com.google.cloud.datacatalog.lineage.v1", + "php_namespace": "Google\\Cloud\\DataCatalog\\Lineage\\V1", + "ruby_package": "Google::Cloud::DataCatalog::Lineage::V1" + }, + "nested": { + "Lineage": { + "options": { + "(google.api.default_host)": "datalineage.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "CreateProcess": { + "requestType": "CreateProcessRequest", + "responseType": "Process", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/processes", + "(google.api.http).body": "process", + "(google.api.method_signature)": "parent,process" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/processes", + "body": "process" + } + }, + { + "(google.api.method_signature)": "parent,process" + } + ] + }, + "UpdateProcess": { + "requestType": "UpdateProcessRequest", + "responseType": "Process", + "options": { + "(google.api.http).patch": "/v1/{process.name=projects/*/locations/*/processes/*}", + "(google.api.http).body": "process", + "(google.api.method_signature)": "process,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{process.name=projects/*/locations/*/processes/*}", + "body": "process" + } + }, + { + "(google.api.method_signature)": "process,update_mask" + } + ] + }, + "GetProcess": { + "requestType": "GetProcessRequest", + "responseType": "Process", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/processes/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/processes/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListProcesses": { + "requestType": "ListProcessesRequest", + "responseType": "ListProcessesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/processes", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/processes" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteProcess": { + "requestType": "DeleteProcessRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/processes/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "google.cloud.datacatalog.lineage.v1.OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/processes/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "google.cloud.datacatalog.lineage.v1.OperationMetadata" + } + } + ] + }, + "CreateRun": { + "requestType": "CreateRunRequest", + "responseType": "Run", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/processes/*}/runs", + "(google.api.http).body": "run", + "(google.api.method_signature)": "parent,run" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/processes/*}/runs", + "body": "run" + } + }, + { + "(google.api.method_signature)": "parent,run" + } + ] + }, + "UpdateRun": { + "requestType": "UpdateRunRequest", + "responseType": "Run", + "options": { + "(google.api.http).patch": "/v1/{run.name=projects/*/locations/*/processes/*/runs/*}", + "(google.api.http).body": "run", + "(google.api.method_signature)": "run,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{run.name=projects/*/locations/*/processes/*/runs/*}", + "body": "run" + } + }, + { + "(google.api.method_signature)": "run,update_mask" + } + ] + }, + "GetRun": { + "requestType": "GetRunRequest", + "responseType": "Run", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/processes/*/runs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/processes/*/runs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListRuns": { + "requestType": "ListRunsRequest", + "responseType": "ListRunsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/processes/*}/runs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/processes/*}/runs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteRun": { + "requestType": "DeleteRunRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/processes/*/runs/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "google.cloud.datacatalog.lineage.v1.OperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/processes/*/runs/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "google.cloud.datacatalog.lineage.v1.OperationMetadata" + } + } + ] + }, + "CreateLineageEvent": { + "requestType": "CreateLineageEventRequest", + "responseType": "LineageEvent", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/processes/*/runs/*}/lineageEvents", + "(google.api.http).body": "lineage_event", + "(google.api.method_signature)": "parent,lineage_event" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/processes/*/runs/*}/lineageEvents", + "body": "lineage_event" + } + }, + { + "(google.api.method_signature)": "parent,lineage_event" + } + ] + }, + "GetLineageEvent": { + "requestType": "GetLineageEventRequest", + "responseType": "LineageEvent", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/processes/*/runs/*/lineageEvents/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/processes/*/runs/*/lineageEvents/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListLineageEvents": { + "requestType": "ListLineageEventsRequest", + "responseType": "ListLineageEventsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/processes/*/runs/*}/lineageEvents", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/processes/*/runs/*}/lineageEvents" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteLineageEvent": { + "requestType": "DeleteLineageEventRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/processes/*/runs/*/lineageEvents/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/processes/*/runs/*/lineageEvents/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "SearchLinks": { + "requestType": "SearchLinksRequest", + "responseType": "SearchLinksResponse", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}:searchLinks", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}:searchLinks", + "body": "*" + } + } + ] + }, + "BatchSearchLinkProcesses": { + "requestType": "BatchSearchLinkProcessesRequest", + "responseType": "BatchSearchLinkProcessesResponse", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}:batchSearchLinkProcesses", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}:batchSearchLinkProcesses", + "body": "*" + } + } + ] + } + } + }, + "Process": { + "options": { + "(google.api.resource).type": "datalineage.googleapis.com/Process", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/processes/{process}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "attributes": { + "keyType": "string", + "type": "google.protobuf.Value", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "origin": { + "type": "Origin", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "Run": { + "options": { + "(google.api.resource).type": "datalineage.googleapis.com/Run", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/processes/{process}/runs/{run}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "attributes": { + "keyType": "string", + "type": "google.protobuf.Value", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "state": { + "type": "State", + "id": 6, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "State": { + "values": { + "UNKNOWN": 0, + "STARTED": 1, + "COMPLETED": 2, + "FAILED": 3, + "ABORTED": 4 + } + } + } + }, + "LineageEvent": { + "options": { + "(google.api.resource).type": "datalineage.googleapis.com/LineageEvent", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "links": { + "rule": "repeated", + "type": "EventLink", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "EventLink": { + "fields": { + "source": { + "type": "EntityReference", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "target": { + "type": "EntityReference", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "EntityReference": { + "fields": { + "fullyQualifiedName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "OperationMetadata": { + "fields": { + "state": { + "type": "State", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "operationType": { + "type": "Type", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "resource": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "resourceUuid": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "PENDING": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "FAILED": 4 + } + }, + "Type": { + "values": { + "TYPE_UNSPECIFIED": 0, + "DELETE": 1 + } + } + } + }, + "CreateProcessRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "datalineage.googleapis.com/Process" + } + }, + "process": { + "type": "Process", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3 + } + } + }, + "UpdateProcessRequest": { + "fields": { + "process": { + "type": "Process", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + }, + "allowMissing": { + "type": "bool", + "id": 3 + } + } + }, + "GetProcessRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "datalineage.googleapis.com/Process" + } + } + } + }, + "ListProcessesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "datalineage.googleapis.com/Process" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListProcessesResponse": { + "fields": { + "processes": { + "rule": "repeated", + "type": "Process", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteProcessRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "datalineage.googleapis.com/Process" + } + }, + "allowMissing": { + "type": "bool", + "id": 2 + } + } + }, + "CreateRunRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "datalineage.googleapis.com/Run" + } + }, + "run": { + "type": "Run", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3 + } + } + }, + "UpdateRunRequest": { + "fields": { + "run": { + "type": "Run", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "GetRunRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "datalineage.googleapis.com/Run" + } + } + } + }, + "ListRunsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "datalineage.googleapis.com/Run" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListRunsResponse": { + "fields": { + "runs": { + "rule": "repeated", + "type": "Run", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteRunRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "datalineage.googleapis.com/Run" + } + }, + "allowMissing": { + "type": "bool", + "id": 2 + } + } + }, + "CreateLineageEventRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "datalineage.googleapis.com/LineageEvent" + } + }, + "lineageEvent": { + "type": "LineageEvent", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "requestId": { + "type": "string", + "id": 3 + } + } + }, + "GetLineageEventRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "datalineage.googleapis.com/LineageEvent" + } + } + } + }, + "ListLineageEventsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "datalineage.googleapis.com/LineageEvent" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListLineageEventsResponse": { + "fields": { + "lineageEvents": { + "rule": "repeated", + "type": "LineageEvent", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteLineageEventRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "datalineage.googleapis.com/LineageEvent" + } + }, + "allowMissing": { + "type": "bool", + "id": 2 + } + } + }, + "SearchLinksRequest": { + "oneofs": { + "criteria": { + "oneof": [ + "source", + "target" + ] + } + }, + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "datalineage.googleapis.com/Process" + } + }, + "source": { + "type": "EntityReference", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "target": { + "type": "EntityReference", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SearchLinksResponse": { + "fields": { + "links": { + "rule": "repeated", + "type": "Link", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "Link": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "source": { + "type": "EntityReference", + "id": 2 + }, + "target": { + "type": "EntityReference", + "id": 3 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 4 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 5 + } + } + }, + "BatchSearchLinkProcessesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "datalineage.googleapis.com/Process" + } + }, + "links": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + } + } + }, + "BatchSearchLinkProcessesResponse": { + "fields": { + "processLinks": { + "rule": "repeated", + "type": "ProcessLinks", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "ProcessLinks": { + "fields": { + "process": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "datalineage.googleapis.com/Process" + } + }, + "links": { + "rule": "repeated", + "type": "ProcessLinkInfo", + "id": 2 + } + } + }, + "ProcessLinkInfo": { + "fields": { + "link": { + "type": "string", + "id": 1 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + } + } + }, + "Origin": { + "fields": { + "sourceType": { + "type": "SourceType", + "id": 1 + }, + "name": { + "type": "string", + "id": 2 + } + }, + "nested": { + "SourceType": { + "values": { + "SOURCE_TYPE_UNSPECIFIED": 0, + "CUSTOM": 1, + "BIGQUERY": 2, + "DATA_FUSION": 3, + "COMPOSER": 4, + "LOOKER_STUDIO": 5 + } + } + } + } + } + } + } + } + } + } + } + }, + "api": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", + "java_multiple_files": true, + "java_outer_classname": "ResourceProto", + "java_package": "com.google.api", + "objc_class_prefix": "GAPI", + "cc_enable_arenas": true + }, + "nested": { + "http": { + "type": "HttpRule", + "id": 72295728, + "extend": "google.protobuf.MethodOptions" + }, + "Http": { + "fields": { + "rules": { + "rule": "repeated", + "type": "HttpRule", + "id": 1 + }, + "fullyDecodeReservedExpansion": { + "type": "bool", + "id": 2 + } + } + }, + "HttpRule": { + "oneofs": { + "pattern": { + "oneof": [ + "get", + "put", + "post", + "delete", + "patch", + "custom" + ] + } + }, + "fields": { + "selector": { + "type": "string", + "id": 1 + }, + "get": { + "type": "string", + "id": 2 + }, + "put": { + "type": "string", + "id": 3 + }, + "post": { + "type": "string", + "id": 4 + }, + "delete": { + "type": "string", + "id": 5 + }, + "patch": { + "type": "string", + "id": 6 + }, + "custom": { + "type": "CustomHttpPattern", + "id": 8 + }, + "body": { + "type": "string", + "id": 7 + }, + "responseBody": { + "type": "string", + "id": 12 + }, + "additionalBindings": { + "rule": "repeated", + "type": "HttpRule", + "id": 11 + } + } + }, + "CustomHttpPattern": { + "fields": { + "kind": { + "type": "string", + "id": 1 + }, + "path": { + "type": "string", + "id": 2 + } + } + }, + "methodSignature": { + "rule": "repeated", + "type": "string", + "id": 1051, + "extend": "google.protobuf.MethodOptions" + }, + "defaultHost": { + "type": "string", + "id": 1049, + "extend": "google.protobuf.ServiceOptions" + }, + "oauthScopes": { + "type": "string", + "id": 1050, + "extend": "google.protobuf.ServiceOptions" + }, + "fieldBehavior": { + "rule": "repeated", + "type": "google.api.FieldBehavior", + "id": 1052, + "extend": "google.protobuf.FieldOptions" + }, + "FieldBehavior": { + "values": { + "FIELD_BEHAVIOR_UNSPECIFIED": 0, + "OPTIONAL": 1, + "REQUIRED": 2, + "OUTPUT_ONLY": 3, + "INPUT_ONLY": 4, + "IMMUTABLE": 5, + "UNORDERED_LIST": 6, + "NON_EMPTY_DEFAULT": 7 + } + }, + "resourceReference": { + "type": "google.api.ResourceReference", + "id": 1055, + "extend": "google.protobuf.FieldOptions" + }, + "resourceDefinition": { + "rule": "repeated", + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.FileOptions" + }, + "resource": { + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.MessageOptions" + }, + "ResourceDescriptor": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "pattern": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "nameField": { + "type": "string", + "id": 3 + }, + "history": { + "type": "History", + "id": 4 + }, + "plural": { + "type": "string", + "id": 5 + }, + "singular": { + "type": "string", + "id": 6 + }, + "style": { + "rule": "repeated", + "type": "Style", + "id": 10 + } + }, + "nested": { + "History": { + "values": { + "HISTORY_UNSPECIFIED": 0, + "ORIGINALLY_SINGLE_PATTERN": 1, + "FUTURE_MULTI_PATTERN": 2 + } + }, + "Style": { + "values": { + "STYLE_UNSPECIFIED": 0, + "DECLARATIVE_FRIENDLY": 1 + } + } + } + }, + "ResourceReference": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "childType": { + "type": "string", + "id": 2 + } + } + } + } + }, + "protobuf": { + "options": { + "go_package": "google.golang.org/protobuf/types/descriptorpb", + "java_package": "com.google.protobuf", + "java_outer_classname": "DescriptorProtos", + "csharp_namespace": "Google.Protobuf.Reflection", + "objc_class_prefix": "GPB", + "cc_enable_arenas": true, + "optimize_for": "SPEED" + }, + "nested": { + "FileDescriptorSet": { + "fields": { + "file": { + "rule": "repeated", + "type": "FileDescriptorProto", + "id": 1 + } + } + }, + "FileDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "package": { + "type": "string", + "id": 2 + }, + "dependency": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "publicDependency": { + "rule": "repeated", + "type": "int32", + "id": 10, + "options": { + "packed": false + } + }, + "weakDependency": { + "rule": "repeated", + "type": "int32", + "id": 11, + "options": { + "packed": false + } + }, + "messageType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 4 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 5 + }, + "service": { + "rule": "repeated", + "type": "ServiceDescriptorProto", + "id": 6 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 7 + }, + "options": { + "type": "FileOptions", + "id": 8 + }, + "sourceCodeInfo": { + "type": "SourceCodeInfo", + "id": 9 + }, + "syntax": { + "type": "string", + "id": 12 + }, + "edition": { + "type": "string", + "id": 13 + } + } + }, + "DescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "field": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 2 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 6 + }, + "nestedType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 3 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 4 + }, + "extensionRange": { + "rule": "repeated", + "type": "ExtensionRange", + "id": 5 + }, + "oneofDecl": { + "rule": "repeated", + "type": "OneofDescriptorProto", + "id": 8 + }, + "options": { + "type": "MessageOptions", + "id": 7 + }, + "reservedRange": { + "rule": "repeated", + "type": "ReservedRange", + "id": 9 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 10 + } + }, + "nested": { + "ExtensionRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "ExtensionRangeOptions", + "id": 3 + } + } + }, + "ReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "ExtensionRangeOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "FieldDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 3 + }, + "label": { + "type": "Label", + "id": 4 + }, + "type": { + "type": "Type", + "id": 5 + }, + "typeName": { + "type": "string", + "id": 6 + }, + "extendee": { + "type": "string", + "id": 2 + }, + "defaultValue": { + "type": "string", + "id": 7 + }, + "oneofIndex": { + "type": "int32", + "id": 9 + }, + "jsonName": { + "type": "string", + "id": 10 + }, + "options": { + "type": "FieldOptions", + "id": 8 + }, + "proto3Optional": { + "type": "bool", + "id": 17 + } + }, + "nested": { + "Type": { + "values": { + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18 + } + }, + "Label": { + "values": { + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3 + } + } + } + }, + "OneofDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "options": { + "type": "OneofOptions", + "id": 2 + } + } + }, + "EnumDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "value": { + "rule": "repeated", + "type": "EnumValueDescriptorProto", + "id": 2 + }, + "options": { + "type": "EnumOptions", + "id": 3 + }, + "reservedRange": { + "rule": "repeated", + "type": "EnumReservedRange", + "id": 4 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 5 + } + }, + "nested": { + "EnumReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "EnumValueDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "EnumValueOptions", + "id": 3 + } + } + }, + "ServiceDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "method": { + "rule": "repeated", + "type": "MethodDescriptorProto", + "id": 2 + }, + "options": { + "type": "ServiceOptions", + "id": 3 + } + } + }, + "MethodDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "inputType": { + "type": "string", + "id": 2 + }, + "outputType": { + "type": "string", + "id": 3 + }, + "options": { + "type": "MethodOptions", + "id": 4 + }, + "clientStreaming": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "serverStreaming": { + "type": "bool", + "id": 6, + "options": { + "default": false + } + } + } + }, + "FileOptions": { + "fields": { + "javaPackage": { + "type": "string", + "id": 1 + }, + "javaOuterClassname": { + "type": "string", + "id": 8 + }, + "javaMultipleFiles": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "javaGenerateEqualsAndHash": { + "type": "bool", + "id": 20, + "options": { + "deprecated": true + } + }, + "javaStringCheckUtf8": { + "type": "bool", + "id": 27, + "options": { + "default": false + } + }, + "optimizeFor": { + "type": "OptimizeMode", + "id": 9, + "options": { + "default": "SPEED" + } + }, + "goPackage": { + "type": "string", + "id": 11 + }, + "ccGenericServices": { + "type": "bool", + "id": 16, + "options": { + "default": false + } + }, + "javaGenericServices": { + "type": "bool", + "id": 17, + "options": { + "default": false + } + }, + "pyGenericServices": { + "type": "bool", + "id": 18, + "options": { + "default": false + } + }, + "phpGenericServices": { + "type": "bool", + "id": 42, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 23, + "options": { + "default": false + } + }, + "ccEnableArenas": { + "type": "bool", + "id": 31, + "options": { + "default": true + } + }, + "objcClassPrefix": { + "type": "string", + "id": 36 + }, + "csharpNamespace": { + "type": "string", + "id": 37 + }, + "swiftPrefix": { + "type": "string", + "id": 39 + }, + "phpClassPrefix": { + "type": "string", + "id": 40 + }, + "phpNamespace": { + "type": "string", + "id": 41 + }, + "phpMetadataNamespace": { + "type": "string", + "id": 44 + }, + "rubyPackage": { + "type": "string", + "id": 45 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 38, + 38 + ] + ], + "nested": { + "OptimizeMode": { + "values": { + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3 + } + } + } + }, + "MessageOptions": { + "fields": { + "messageSetWireFormat": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "noStandardDescriptorAccessor": { + "type": "bool", + "id": 2, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "mapEntry": { + "type": "bool", + "id": 7 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ], + [ + 5, + 5 + ], + [ + 6, + 6 + ], + [ + 8, + 8 + ], + [ + 9, + 9 + ] + ] + }, + "FieldOptions": { + "fields": { + "ctype": { + "type": "CType", + "id": 1, + "options": { + "default": "STRING" + } + }, + "packed": { + "type": "bool", + "id": 2 + }, + "jstype": { + "type": "JSType", + "id": 6, + "options": { + "default": "JS_NORMAL" + } + }, + "lazy": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "weak": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ] + ], + "nested": { + "CType": { + "values": { + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2 + } + }, + "JSType": { + "values": { + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2 + } + } + } + }, + "OneofOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "EnumOptions": { + "fields": { + "allowAlias": { + "type": "bool", + "id": 2 + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 5, + 5 + ] + ] + }, + "EnumValueOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "ServiceOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "MethodOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "idempotencyLevel": { + "type": "IdempotencyLevel", + "id": 34, + "options": { + "default": "IDEMPOTENCY_UNKNOWN" + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "nested": { + "IdempotencyLevel": { + "values": { + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2 + } + } + } + }, + "UninterpretedOption": { + "fields": { + "name": { + "rule": "repeated", + "type": "NamePart", + "id": 2 + }, + "identifierValue": { + "type": "string", + "id": 3 + }, + "positiveIntValue": { + "type": "uint64", + "id": 4 + }, + "negativeIntValue": { + "type": "int64", + "id": 5 + }, + "doubleValue": { + "type": "double", + "id": 6 + }, + "stringValue": { + "type": "bytes", + "id": 7 + }, + "aggregateValue": { + "type": "string", + "id": 8 + } + }, + "nested": { + "NamePart": { + "fields": { + "namePart": { + "rule": "required", + "type": "string", + "id": 1 + }, + "isExtension": { + "rule": "required", + "type": "bool", + "id": 2 + } + } + } + } + }, + "SourceCodeInfo": { + "fields": { + "location": { + "rule": "repeated", + "type": "Location", + "id": 1 + } + }, + "nested": { + "Location": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "span": { + "rule": "repeated", + "type": "int32", + "id": 2 + }, + "leadingComments": { + "type": "string", + "id": 3 + }, + "trailingComments": { + "type": "string", + "id": 4 + }, + "leadingDetachedComments": { + "rule": "repeated", + "type": "string", + "id": 6 + } + } + } + } + }, + "GeneratedCodeInfo": { + "fields": { + "annotation": { + "rule": "repeated", + "type": "Annotation", + "id": 1 + } + }, + "nested": { + "Annotation": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "sourceFile": { + "type": "string", + "id": 2 + }, + "begin": { + "type": "int32", + "id": 3 + }, + "end": { + "type": "int32", + "id": 4 + }, + "semantic": { + "type": "Semantic", + "id": 5 + } + }, + "nested": { + "Semantic": { + "values": { + "NONE": 0, + "SET": 1, + "ALIAS": 2 + } + } + } + } + } + }, + "Any": { + "fields": { + "type_url": { + "type": "string", + "id": 1 + }, + "value": { + "type": "bytes", + "id": 2 + } + } + }, + "Duration": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + }, + "Empty": { + "fields": {} + }, + "FieldMask": { + "fields": { + "paths": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, + "Struct": { + "fields": { + "fields": { + "keyType": "string", + "type": "Value", + "id": 1 + } + } + }, + "Value": { + "oneofs": { + "kind": { + "oneof": [ + "nullValue", + "numberValue", + "stringValue", + "boolValue", + "structValue", + "listValue" + ] + } + }, + "fields": { + "nullValue": { + "type": "NullValue", + "id": 1 + }, + "numberValue": { + "type": "double", + "id": 2 + }, + "stringValue": { + "type": "string", + "id": 3 + }, + "boolValue": { + "type": "bool", + "id": 4 + }, + "structValue": { + "type": "Struct", + "id": 5 + }, + "listValue": { + "type": "ListValue", + "id": 6 + } + } + }, + "NullValue": { + "values": { + "NULL_VALUE": 0 + } + }, + "ListValue": { + "fields": { + "values": { + "rule": "repeated", + "type": "Value", + "id": 1 + } + } + }, + "Timestamp": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "longrunning": { + "options": { + "cc_enable_arenas": true, + "csharp_namespace": "Google.LongRunning", + "go_package": "google.golang.org/genproto/googleapis/longrunning;longrunning", + "java_multiple_files": true, + "java_outer_classname": "OperationsProto", + "java_package": "com.google.longrunning", + "php_namespace": "Google\\LongRunning" + }, + "nested": { + "operationInfo": { + "type": "google.longrunning.OperationInfo", + "id": 1049, + "extend": "google.protobuf.MethodOptions" + }, + "Operations": { + "options": { + "(google.api.default_host)": "longrunning.googleapis.com" + }, + "methods": { + "ListOperations": { + "requestType": "ListOperationsRequest", + "responseType": "ListOperationsResponse", + "options": { + "(google.api.http).get": "/v1/{name=operations}", + "(google.api.method_signature)": "name,filter" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=operations}" + } + }, + { + "(google.api.method_signature)": "name,filter" + } + ] + }, + "GetOperation": { + "requestType": "GetOperationRequest", + "responseType": "Operation", + "options": { + "(google.api.http).get": "/v1/{name=operations/**}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=operations/**}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "DeleteOperation": { + "requestType": "DeleteOperationRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=operations/**}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=operations/**}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CancelOperation": { + "requestType": "CancelOperationRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=operations/**}:cancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=operations/**}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "WaitOperation": { + "requestType": "WaitOperationRequest", + "responseType": "Operation" + } + } + }, + "Operation": { + "oneofs": { + "result": { + "oneof": [ + "error", + "response" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "metadata": { + "type": "google.protobuf.Any", + "id": 2 + }, + "done": { + "type": "bool", + "id": 3 + }, + "error": { + "type": "google.rpc.Status", + "id": 4 + }, + "response": { + "type": "google.protobuf.Any", + "id": 5 + } + } + }, + "GetOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "ListOperationsRequest": { + "fields": { + "name": { + "type": "string", + "id": 4 + }, + "filter": { + "type": "string", + "id": 1 + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListOperationsResponse": { + "fields": { + "operations": { + "rule": "repeated", + "type": "Operation", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CancelOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "DeleteOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "WaitOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "timeout": { + "type": "google.protobuf.Duration", + "id": 2 + } + } + }, + "OperationInfo": { + "fields": { + "responseType": { + "type": "string", + "id": 1 + }, + "metadataType": { + "type": "string", + "id": 2 + } + } + } + } + }, + "rpc": { + "options": { + "cc_enable_arenas": true, + "go_package": "google.golang.org/genproto/googleapis/rpc/status;status", + "java_multiple_files": true, + "java_outer_classname": "StatusProto", + "java_package": "com.google.rpc", + "objc_class_prefix": "RPC" + }, + "nested": { + "Status": { + "fields": { + "code": { + "type": "int32", + "id": 1 + }, + "message": { + "type": "string", + "id": 2 + }, + "details": { + "rule": "repeated", + "type": "google.protobuf.Any", + "id": 3 + } + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/packages/google-cloud-datacatalog-lineage/samples/README.md b/packages/google-cloud-datacatalog-lineage/samples/README.md new file mode 100644 index 000000000000..ee4e4fb3190a --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/README.md @@ -0,0 +1,356 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Data Lineage API: Node.js Samples](https://github.com/googleapis/google-cloud-node) + +[![Open in Cloud Shell][shell_img]][shell_link] + + + +## Table of Contents + +* [Before you begin](#before-you-begin) +* [Samples](#samples) + * [Lineage.batch_search_link_processes](#lineage.batch_search_link_processes) + * [Lineage.create_lineage_event](#lineage.create_lineage_event) + * [Lineage.create_process](#lineage.create_process) + * [Lineage.create_run](#lineage.create_run) + * [Lineage.delete_lineage_event](#lineage.delete_lineage_event) + * [Lineage.delete_process](#lineage.delete_process) + * [Lineage.delete_run](#lineage.delete_run) + * [Lineage.get_lineage_event](#lineage.get_lineage_event) + * [Lineage.get_process](#lineage.get_process) + * [Lineage.get_run](#lineage.get_run) + * [Lineage.list_lineage_events](#lineage.list_lineage_events) + * [Lineage.list_processes](#lineage.list_processes) + * [Lineage.list_runs](#lineage.list_runs) + * [Lineage.search_links](#lineage.search_links) + * [Lineage.update_process](#lineage.update_process) + * [Lineage.update_run](#lineage.update_run) + * [Quickstart](#quickstart) + * [Quickstart](#quickstart) + +## Before you begin + +Before running the samples, make sure you've followed the steps outlined in +[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library). + +`cd samples` + +`npm install` + +`cd ..` + +## Samples + + + +### Lineage.batch_search_link_processes + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.batch_search_link_processes.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.batch_search_link_processes.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.batch_search_link_processes.js` + + +----- + + + + +### Lineage.create_lineage_event + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_lineage_event.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_lineage_event.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_lineage_event.js` + + +----- + + + + +### Lineage.create_process + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_process.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_process.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_process.js` + + +----- + + + + +### Lineage.create_run + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_run.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_run.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_run.js` + + +----- + + + + +### Lineage.delete_lineage_event + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_lineage_event.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_lineage_event.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_lineage_event.js` + + +----- + + + + +### Lineage.delete_process + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_process.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_process.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_process.js` + + +----- + + + + +### Lineage.delete_run + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_run.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_run.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_run.js` + + +----- + + + + +### Lineage.get_lineage_event + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_lineage_event.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_lineage_event.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_lineage_event.js` + + +----- + + + + +### Lineage.get_process + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_process.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_process.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_process.js` + + +----- + + + + +### Lineage.get_run + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_run.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_run.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_run.js` + + +----- + + + + +### Lineage.list_lineage_events + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_lineage_events.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_lineage_events.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_lineage_events.js` + + +----- + + + + +### Lineage.list_processes + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_processes.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_processes.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_processes.js` + + +----- + + + + +### Lineage.list_runs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_runs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_runs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_runs.js` + + +----- + + + + +### Lineage.search_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.search_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.search_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.search_links.js` + + +----- + + + + +### Lineage.update_process + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_process.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_process.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_process.js` + + +----- + + + + +### Lineage.update_run + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_run.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_run.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_run.js` + + +----- + + + + +### Quickstart + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/quickstart.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/quickstart.js` + + +----- + + + + +### Quickstart + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-datacatalog-lineage/samples/test/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-datacatalog-lineage/samples/test/quickstart.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-datacatalog-lineage/samples/test/quickstart.js` + + + + + + +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=samples/README.md +[product-docs]: diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.batch_search_link_processes.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.batch_search_link_processes.js new file mode 100644 index 000000000000..8067b32c6651 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.batch_search_link_processes.js @@ -0,0 +1,85 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, links) { + // [START datalineage_v1_generated_Lineage_BatchSearchLinkProcesses_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The project and location where you want to search. + */ + // const parent = 'abc123' + /** + * Required. An array of links to check for their associated LineageProcesses. + * The maximum number of items in this array is 100. + * If the request contains more than 100 links, it returns the + * `INVALID_ARGUMENT` error. + * Format: `projects/{project}/locations/{location}/links/{link}`. + */ + // const links = 'abc123' + /** + * The maximum number of processes to return in a single page of the response. + * A page may contain fewer results than this value. + */ + // const pageSize = 1234 + /** + * The page token received from a previous `BatchSearchLinkProcesses` call. + * Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + */ + // const pageToken = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callBatchSearchLinkProcesses() { + // Construct request + const request = { + parent, + links, + }; + + // Run request + const iterable = await lineageClient.batchSearchLinkProcessesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callBatchSearchLinkProcesses(); + // [END datalineage_v1_generated_Lineage_BatchSearchLinkProcesses_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_lineage_event.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_lineage_event.js new file mode 100644 index 000000000000..5336d44fd65b --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_lineage_event.js @@ -0,0 +1,72 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, lineageEvent) { + // [START datalineage_v1_generated_Lineage_CreateLineageEvent_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the run that should own the lineage event. + */ + // const parent = 'abc123' + /** + * Required. The lineage event to create. + */ + // const lineageEvent = {} + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + */ + // const requestId = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callCreateLineageEvent() { + // Construct request + const request = { + parent, + lineageEvent, + }; + + // Run request + const response = await lineageClient.createLineageEvent(request); + console.log(response); + } + + callCreateLineageEvent(); + // [END datalineage_v1_generated_Lineage_CreateLineageEvent_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_process.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_process.js new file mode 100644 index 000000000000..666ffb793acf --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_process.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, process) { + // [START datalineage_v1_generated_Lineage_CreateProcess_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the project and its location that should own the + * process. + */ + // const parent = 'abc123' + /** + * Required. The process to create. + */ + // const process = {} + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + */ + // const requestId = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callCreateProcess() { + // Construct request + const request = { + parent, + process, + }; + + // Run request + const response = await lineageClient.createProcess(request); + console.log(response); + } + + callCreateProcess(); + // [END datalineage_v1_generated_Lineage_CreateProcess_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_run.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_run.js new file mode 100644 index 000000000000..ab8fbd030ee0 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.create_run.js @@ -0,0 +1,72 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, run) { + // [START datalineage_v1_generated_Lineage_CreateRun_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the process that should own the run. + */ + // const parent = 'abc123' + /** + * Required. The run to create. + */ + // const run = {} + /** + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + */ + // const requestId = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callCreateRun() { + // Construct request + const request = { + parent, + run, + }; + + // Run request + const response = await lineageClient.createRun(request); + console.log(response); + } + + callCreateRun(); + // [END datalineage_v1_generated_Lineage_CreateRun_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_lineage_event.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_lineage_event.js new file mode 100644 index 000000000000..f694a7bbb8b1 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_lineage_event.js @@ -0,0 +1,66 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START datalineage_v1_generated_Lineage_DeleteLineageEvent_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the lineage event to delete. + */ + // const name = 'abc123' + /** + * If set to true and the lineage event is not found, the request + * succeeds but the server doesn't perform any actions. + */ + // const allowMissing = true + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callDeleteLineageEvent() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await lineageClient.deleteLineageEvent(request); + console.log(response); + } + + callDeleteLineageEvent(); + // [END datalineage_v1_generated_Lineage_DeleteLineageEvent_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_process.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_process.js new file mode 100644 index 000000000000..d79e9df33d06 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_process.js @@ -0,0 +1,67 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START datalineage_v1_generated_Lineage_DeleteProcess_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the process to delete. + */ + // const name = 'abc123' + /** + * If set to true and the process is not found, the request + * succeeds but the server doesn't perform any actions. + */ + // const allowMissing = true + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callDeleteProcess() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await lineageClient.deleteProcess(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteProcess(); + // [END datalineage_v1_generated_Lineage_DeleteProcess_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_run.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_run.js new file mode 100644 index 000000000000..ae7460539ce6 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.delete_run.js @@ -0,0 +1,67 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START datalineage_v1_generated_Lineage_DeleteRun_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the run to delete. + */ + // const name = 'abc123' + /** + * If set to true and the run is not found, the request + * succeeds but the server doesn't perform any actions. + */ + // const allowMissing = true + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callDeleteRun() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await lineageClient.deleteRun(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteRun(); + // [END datalineage_v1_generated_Lineage_DeleteRun_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_lineage_event.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_lineage_event.js new file mode 100644 index 000000000000..db2516140953 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_lineage_event.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START datalineage_v1_generated_Lineage_GetLineageEvent_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the lineage event to get. + */ + // const name = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callGetLineageEvent() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await lineageClient.getLineageEvent(request); + console.log(response); + } + + callGetLineageEvent(); + // [END datalineage_v1_generated_Lineage_GetLineageEvent_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_process.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_process.js new file mode 100644 index 000000000000..dfb219e7ba7d --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_process.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START datalineage_v1_generated_Lineage_GetProcess_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the process to get. + */ + // const name = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callGetProcess() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await lineageClient.getProcess(request); + console.log(response); + } + + callGetProcess(); + // [END datalineage_v1_generated_Lineage_GetProcess_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_run.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_run.js new file mode 100644 index 000000000000..78f090425f55 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.get_run.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START datalineage_v1_generated_Lineage_GetRun_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the run to get. + */ + // const name = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callGetRun() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await lineageClient.getRun(request); + console.log(response); + } + + callGetRun(); + // [END datalineage_v1_generated_Lineage_GetRun_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_lineage_events.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_lineage_events.js new file mode 100644 index 000000000000..971b7e6ff240 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_lineage_events.js @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START datalineage_v1_generated_Lineage_ListLineageEvents_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the run that owns the collection of lineage events to + * get. + */ + // const parent = 'abc123' + /** + * The maximum number of lineage events to return. + * The service may return fewer events than this value. + * If unspecified, at most 50 events are returned. The maximum value is 100; + * values greater than 100 are cut to 100. + */ + // const pageSize = 1234 + /** + * The page token received from a previous `ListLineageEvents` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callListLineageEvents() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await lineageClient.listLineageEventsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListLineageEvents(); + // [END datalineage_v1_generated_Lineage_ListLineageEvents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_processes.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_processes.js new file mode 100644 index 000000000000..c3c3e7481092 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_processes.js @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START datalineage_v1_generated_Lineage_ListProcesses_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the project and its location that owns this + * collection of processes. + */ + // const parent = 'abc123' + /** + * The maximum number of processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + */ + // const pageSize = 1234 + /** + * The page token received from a previous `ListProcesses` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callListProcesses() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await lineageClient.listProcessesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListProcesses(); + // [END datalineage_v1_generated_Lineage_ListProcesses_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_runs.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_runs.js new file mode 100644 index 000000000000..1de49972c7fb --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.list_runs.js @@ -0,0 +1,77 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START datalineage_v1_generated_Lineage_ListRuns_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of process that owns this collection of runs. + */ + // const parent = 'abc123' + /** + * The maximum number of runs to return. The service may return + * fewer than this value. If unspecified, at most 50 runs are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + */ + // const pageSize = 1234 + /** + * The page token received from a previous `ListRuns` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callListRuns() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await lineageClient.listRunsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListRuns(); + // [END datalineage_v1_generated_Lineage_ListRuns_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.search_links.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.search_links.js new file mode 100644 index 000000000000..4ec16c63f03e --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.search_links.js @@ -0,0 +1,88 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START datalineage_v1_generated_Lineage_SearchLinks_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The project and location you want search in. + */ + // const parent = 'abc123' + /** + * Optional. Send asset information in the **source** field to retrieve all + * links that lead from the specified asset to downstream assets. + */ + // const source = {} + /** + * Optional. Send asset information in the **target** field to retrieve all + * links that lead from upstream assets to the specified asset. + */ + // const target = {} + /** + * Optional. The maximum number of links to return in a single page of the + * response. A page may contain fewer links than this value. If unspecified, + * at most 10 links are returned. + * Maximum value is 100; values greater than 100 are reduced to 100. + */ + // const pageSize = 1234 + /** + * Optional. The page token received from a previous `SearchLinksRequest` + * call. Use it to get the next page. + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + */ + // const pageToken = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callSearchLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await lineageClient.searchLinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callSearchLinks(); + // [END datalineage_v1_generated_Lineage_SearchLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_process.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_process.js new file mode 100644 index 000000000000..62ca21b4c7da --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_process.js @@ -0,0 +1,71 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(process) { + // [START datalineage_v1_generated_Lineage_UpdateProcess_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The lineage process to update. + * The process's `name` field is used to identify the process to update. + */ + // const process = {} + /** + * The list of fields to update. Currently not used. The whole message is + * updated. + */ + // const updateMask = {} + /** + * If set to true and the process is not found, the request inserts it. + */ + // const allowMissing = true + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callUpdateProcess() { + // Construct request + const request = { + process, + }; + + // Run request + const response = await lineageClient.updateProcess(request); + console.log(response); + } + + callUpdateProcess(); + // [END datalineage_v1_generated_Lineage_UpdateProcess_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_run.js b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_run.js new file mode 100644 index 000000000000..6c90d0914c68 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/lineage.update_run.js @@ -0,0 +1,69 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(run) { + // [START datalineage_v1_generated_Lineage_UpdateRun_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The lineage run to update. + * The run's `name` field is used to identify the run to update. + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + */ + // const run = {} + /** + * The list of fields to update. Currently not used. The whole message is + * updated. + */ + // const updateMask = {} + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callUpdateRun() { + // Construct request + const request = { + run, + }; + + // Run request + const response = await lineageClient.updateRun(request); + console.log(response); + } + + callUpdateRun(); + // [END datalineage_v1_generated_Lineage_UpdateRun_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata.google.cloud.datacatalog.lineage.v1.json b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata.google.cloud.datacatalog.lineage.v1.json new file mode 100644 index 000000000000..a6e4b0b6d801 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata.google.cloud.datacatalog.lineage.v1.json @@ -0,0 +1,755 @@ +{ + "clientLibrary": { + "name": "nodejs-lineage", + "version": "0.0.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.datacatalog.lineage.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "datalineage_v1_generated_Lineage_CreateProcess_async", + "title": "Lineage createProcess Sample", + "origin": "API_DEFINITION", + "description": " Creates a new process.", + "canonical": true, + "file": "lineage.create_process.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateProcess", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateProcess", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "process", + "type": ".google.cloud.datacatalog.lineage.v1.Process" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.Process", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "CreateProcess", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateProcess", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_UpdateProcess_async", + "title": "Lineage updateProcess Sample", + "origin": "API_DEFINITION", + "description": " Updates a process.", + "canonical": true, + "file": "lineage.update_process.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateProcess", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateProcess", + "async": true, + "parameters": [ + { + "name": "process", + "type": ".google.cloud.datacatalog.lineage.v1.Process" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "allow_missing", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.Process", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "UpdateProcess", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateProcess", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_GetProcess_async", + "title": "Lineage getProcess Sample", + "origin": "API_DEFINITION", + "description": " Gets the details of the specified process.", + "canonical": true, + "file": "lineage.get_process.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetProcess", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetProcess", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.Process", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "GetProcess", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetProcess", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_ListProcesses_async", + "title": "Lineage listProcesses Sample", + "origin": "API_DEFINITION", + "description": " List processes in the given project and location. List order is descending by insertion time.", + "canonical": true, + "file": "lineage.list_processes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListProcesses", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListProcesses", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.ListProcessesResponse", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "ListProcesses", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListProcesses", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_DeleteProcess_async", + "title": "Lineage deleteProcess Sample", + "origin": "API_DEFINITION", + "description": " Deletes the process with the specified name.", + "canonical": true, + "file": "lineage.delete_process.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteProcess", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteProcess", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "allow_missing", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "DeleteProcess", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteProcess", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_CreateRun_async", + "title": "Lineage createRun Sample", + "origin": "API_DEFINITION", + "description": " Creates a new run.", + "canonical": true, + "file": "lineage.create_run.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateRun", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateRun", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "run", + "type": ".google.cloud.datacatalog.lineage.v1.Run" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.Run", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "CreateRun", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateRun", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_UpdateRun_async", + "title": "Lineage updateRun Sample", + "origin": "API_DEFINITION", + "description": " Updates a run.", + "canonical": true, + "file": "lineage.update_run.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateRun", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateRun", + "async": true, + "parameters": [ + { + "name": "run", + "type": ".google.cloud.datacatalog.lineage.v1.Run" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.Run", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "UpdateRun", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateRun", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_GetRun_async", + "title": "Lineage getRun Sample", + "origin": "API_DEFINITION", + "description": " Gets the details of the specified run.", + "canonical": true, + "file": "lineage.get_run.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetRun", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetRun", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.Run", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "GetRun", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetRun", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_ListRuns_async", + "title": "Lineage listRuns Sample", + "origin": "API_DEFINITION", + "description": " Lists runs in the given project and location. List order is descending by `start_time`.", + "canonical": true, + "file": "lineage.list_runs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListRuns", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListRuns", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.ListRunsResponse", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "ListRuns", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListRuns", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_DeleteRun_async", + "title": "Lineage deleteRun Sample", + "origin": "API_DEFINITION", + "description": " Deletes the run with the specified name.", + "canonical": true, + "file": "lineage.delete_run.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteRun", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteRun", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "allow_missing", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "DeleteRun", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteRun", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_CreateLineageEvent_async", + "title": "Lineage createLineageEvent Sample", + "origin": "API_DEFINITION", + "description": " Creates a new lineage event.", + "canonical": true, + "file": "lineage.create_lineage_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateLineageEvent", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateLineageEvent", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "lineage_event", + "type": ".google.cloud.datacatalog.lineage.v1.LineageEvent" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.LineageEvent", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "CreateLineageEvent", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateLineageEvent", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_GetLineageEvent_async", + "title": "Lineage getLineageEvent Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a specified lineage event.", + "canonical": true, + "file": "lineage.get_lineage_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetLineageEvent", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetLineageEvent", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.LineageEvent", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "GetLineageEvent", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetLineageEvent", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_ListLineageEvents_async", + "title": "Lineage listLineageEvents Sample", + "origin": "API_DEFINITION", + "description": " Lists lineage events in the given project and location. The list order is not defined.", + "canonical": true, + "file": "lineage.list_lineage_events.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListLineageEvents", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListLineageEvents", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "ListLineageEvents", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListLineageEvents", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_DeleteLineageEvent_async", + "title": "Lineage deleteLineageEvent Sample", + "origin": "API_DEFINITION", + "description": " Deletes the lineage event with the specified name.", + "canonical": true, + "file": "lineage.delete_lineage_event.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteLineageEvent", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteLineageEvent", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "allow_missing", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "DeleteLineageEvent", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteLineageEvent", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_SearchLinks_async", + "title": "Lineage searchLinks Sample", + "origin": "API_DEFINITION", + "description": " Retrieve a list of links connected to a specific asset. Links represent the data flow between **source** (upstream) and **target** (downstream) assets in transformation pipelines. Links are stored in the same project as the Lineage Events that create them. You can retrieve links in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", + "canonical": true, + "file": "lineage.search_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SearchLinks", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "source", + "type": ".google.cloud.datacatalog.lineage.v1.EntityReference" + }, + { + "name": "target", + "type": ".google.cloud.datacatalog.lineage.v1.EntityReference" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.SearchLinksResponse", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "SearchLinks", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + }, + { + "regionTag": "datalineage_v1_generated_Lineage_BatchSearchLinkProcesses_async", + "title": "Lineage batchSearchLinkProcesses Sample", + "origin": "API_DEFINITION", + "description": " Retrieve information about LineageProcesses associated with specific links. LineageProcesses are transformation pipelines that result in data flowing from **source** to **target** assets. Links between assets represent this operation. If you have specific link names, you can use this method to verify which LineageProcesses contribute to creating those links. See the [SearchLinks][google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks] method for more information on how to retrieve link name. You can retrieve the LineageProcess information in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", + "canonical": true, + "file": "lineage.batch_search_link_processes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchSearchLinkProcesses", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcesses", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "links", + "type": "TYPE_STRING[]" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse", + "client": { + "shortName": "LineageClient", + "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" + }, + "method": { + "shortName": "BatchSearchLinkProcesses", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcesses", + "service": { + "shortName": "Lineage", + "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" + } + } + } + } + ] +} \ No newline at end of file diff --git a/packages/google-cloud-datacatalog-lineage/samples/package.json b/packages/google-cloud-datacatalog-lineage/samples/package.json new file mode 100644 index 000000000000..90daae4f0a0e --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/package.json @@ -0,0 +1,24 @@ +{ + "name": "lineage-samples", + "private": true, + "license": "Apache-2.0", + "author": "Google LLC", + "engines": { + "node": ">=12.0.0" + }, + "files": [ + "*.js" + ], + "scripts": { + "test": "c8 mocha --timeout 600000 test/*.js", + "publish": "echo 'sample test; do not publish'" + }, + "dependencies": { + "@google-cloud/lineage": "0.0.0" + }, + "devDependencies": { + "c8": "^7.1.0", + "chai": "^4.2.0", + "mocha": "^8.0.0" + } +} diff --git a/packages/google-cloud-datacatalog-lineage/samples/quickstart.js b/packages/google-cloud-datacatalog-lineage/samples/quickstart.js new file mode 100644 index 000000000000..2b980c2d8621 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/quickstart.js @@ -0,0 +1,76 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +'use strict'; + +function main(parent) { + // [START datalineage_quickstart] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the project and its location that owns this + * collection of processes. + */ + // const parent = 'abc123' + /** + * The maximum number of processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + */ + // const pageSize = 1234 + /** + * The page token received from a previous `ListProcesses` call. Specify + * it to get the next page. + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Lineage library + const {LineageClient} = require('@google-cloud/lineage').v1; + + // Instantiates a client + const lineageClient = new LineageClient(); + + async function callListProcesses() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await lineageClient.listProcessesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListProcesses(); + // [END datalineage_quickstart] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-datacatalog-lineage/samples/test/quickstart.js b/packages/google-cloud-datacatalog-lineage/samples/test/quickstart.js new file mode 100644 index 000000000000..6584e8bee0af --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/samples/test/quickstart.js @@ -0,0 +1,42 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const assert = require('assert'); +const path = require('path'); +const cp = require('child_process'); +const {describe, it, before} = require('mocha'); +const {LineageClient} = require('@google-cloud/lineage').v1; +const lineageClient = new LineageClient(); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const cwd = path.join(__dirname, '..'); + +describe('Quickstart', () => { + let projectId; + + before(async () => { + projectId = await lineageClient.getProjectId(); + }); + + it('should run quickstart', async () => { + const output = execSync( + `node ./quickstart.js projects/${projectId}/locations/us-central1`, + {cwd} + ); + assert(output !== null); + }); +}); diff --git a/packages/google-cloud-datacatalog-lineage/src/index.ts b/packages/google-cloud-datacatalog-lineage/src/index.ts new file mode 100644 index 000000000000..486a342e561c --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/src/index.ts @@ -0,0 +1,27 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** +// ** All changes to this file may be overwritten. ** + +import * as v1 from './v1'; + +const LineageClient = v1.LineageClient; +type LineageClient = v1.LineageClient; + +export {v1, LineageClient}; +export default {v1, LineageClient}; +import * as protos from '../protos/protos'; +export {protos}; diff --git a/packages/google-cloud-datacatalog-lineage/src/v1/gapic_metadata.json b/packages/google-cloud-datacatalog-lineage/src/v1/gapic_metadata.json new file mode 100644 index 000000000000..e0a93cd5d0d4 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/src/v1/gapic_metadata.json @@ -0,0 +1,203 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "typescript", + "protoPackage": "google.cloud.datacatalog.lineage.v1", + "libraryPackage": "@google-cloud/lineage", + "services": { + "Lineage": { + "clients": { + "grpc": { + "libraryClient": "LineageClient", + "rpcs": { + "CreateProcess": { + "methods": [ + "createProcess" + ] + }, + "UpdateProcess": { + "methods": [ + "updateProcess" + ] + }, + "GetProcess": { + "methods": [ + "getProcess" + ] + }, + "CreateRun": { + "methods": [ + "createRun" + ] + }, + "UpdateRun": { + "methods": [ + "updateRun" + ] + }, + "GetRun": { + "methods": [ + "getRun" + ] + }, + "CreateLineageEvent": { + "methods": [ + "createLineageEvent" + ] + }, + "GetLineageEvent": { + "methods": [ + "getLineageEvent" + ] + }, + "DeleteLineageEvent": { + "methods": [ + "deleteLineageEvent" + ] + }, + "DeleteProcess": { + "methods": [ + "deleteProcess" + ] + }, + "DeleteRun": { + "methods": [ + "deleteRun" + ] + }, + "ListProcesses": { + "methods": [ + "listProcesses", + "listProcessesStream", + "listProcessesAsync" + ] + }, + "ListRuns": { + "methods": [ + "listRuns", + "listRunsStream", + "listRunsAsync" + ] + }, + "ListLineageEvents": { + "methods": [ + "listLineageEvents", + "listLineageEventsStream", + "listLineageEventsAsync" + ] + }, + "SearchLinks": { + "methods": [ + "searchLinks", + "searchLinksStream", + "searchLinksAsync" + ] + }, + "BatchSearchLinkProcesses": { + "methods": [ + "batchSearchLinkProcesses", + "batchSearchLinkProcessesStream", + "batchSearchLinkProcessesAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "LineageClient", + "rpcs": { + "CreateProcess": { + "methods": [ + "createProcess" + ] + }, + "UpdateProcess": { + "methods": [ + "updateProcess" + ] + }, + "GetProcess": { + "methods": [ + "getProcess" + ] + }, + "CreateRun": { + "methods": [ + "createRun" + ] + }, + "UpdateRun": { + "methods": [ + "updateRun" + ] + }, + "GetRun": { + "methods": [ + "getRun" + ] + }, + "CreateLineageEvent": { + "methods": [ + "createLineageEvent" + ] + }, + "GetLineageEvent": { + "methods": [ + "getLineageEvent" + ] + }, + "DeleteLineageEvent": { + "methods": [ + "deleteLineageEvent" + ] + }, + "DeleteProcess": { + "methods": [ + "deleteProcess" + ] + }, + "DeleteRun": { + "methods": [ + "deleteRun" + ] + }, + "ListProcesses": { + "methods": [ + "listProcesses", + "listProcessesStream", + "listProcessesAsync" + ] + }, + "ListRuns": { + "methods": [ + "listRuns", + "listRunsStream", + "listRunsAsync" + ] + }, + "ListLineageEvents": { + "methods": [ + "listLineageEvents", + "listLineageEventsStream", + "listLineageEventsAsync" + ] + }, + "SearchLinks": { + "methods": [ + "searchLinks", + "searchLinksStream", + "searchLinksAsync" + ] + }, + "BatchSearchLinkProcesses": { + "methods": [ + "batchSearchLinkProcesses", + "batchSearchLinkProcessesStream", + "batchSearchLinkProcessesAsync" + ] + } + } + } + } + } + } +} diff --git a/packages/google-cloud-datacatalog-lineage/src/v1/index.ts b/packages/google-cloud-datacatalog-lineage/src/v1/index.ts new file mode 100644 index 000000000000..e233845ef5f7 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/src/v1/index.ts @@ -0,0 +1,19 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +export {LineageClient} from './lineage_client'; diff --git a/packages/google-cloud-datacatalog-lineage/src/v1/lineage_client.ts b/packages/google-cloud-datacatalog-lineage/src/v1/lineage_client.ts new file mode 100644 index 000000000000..53313ae1265a --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/src/v1/lineage_client.ts @@ -0,0 +1,3200 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + GrpcClientOptions, + LROperation, + PaginationCallback, + GaxCall, +} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/lineage_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './lineage_client_config.json'; +const version = require('../../../package.json').version; + +/** + * Lineage is used to track data flows between assets over time. You can + * create {@link google.cloud.datacatalog.lineage.v1.LineageEvent|LineageEvents} + * to record lineage between multiple sources and a single target, for + * example, when table data is based on data from multiple tables. + * @class + * @memberof v1 + */ +export class LineageClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + pathTemplates: {[name: string]: gax.PathTemplate}; + operationsClient: gax.OperationsClient; + lineageStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of LineageClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new LineageClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof LineageClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + lineageEventPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}' + ), + locationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}' + ), + processPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/processes/{process}' + ), + projectPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}' + ), + runPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/processes/{process}/runs/{run}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listProcesses: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'processes' + ), + listRuns: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'runs' + ), + listLineageEvents: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'lineageEvents' + ), + searchLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'links' + ), + batchSearchLinkProcesses: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'processLinks' + ), + }; + + const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + // This API contains "long-running operations", which return a + // an Operation object that allows for tracking of the operation, + // rather than holding a request open. + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/v1/{name=projects/*/locations/*/operations/*}:cancel', + body: '*', + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/v1/{name=projects/*/locations/*/operations/*}', + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/v1/{name=projects/*/locations/*/operations/*}', + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/v1/{name=projects/*/locations/*}/operations', + }, + ]; + } + this.operationsClient = this._gaxModule + .lro(lroOptions) + .operationsClient(opts); + const deleteProcessResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteProcessMetadata = protoFilesRoot.lookup( + '.google.cloud.datacatalog.lineage.v1.OperationMetadata' + ) as gax.protobuf.Type; + const deleteRunResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteRunMetadata = protoFilesRoot.lookup( + '.google.cloud.datacatalog.lineage.v1.OperationMetadata' + ) as gax.protobuf.Type; + + this.descriptors.longrunning = { + deleteProcess: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteProcessResponse.decode.bind(deleteProcessResponse), + deleteProcessMetadata.decode.bind(deleteProcessMetadata) + ), + deleteRun: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteRunResponse.decode.bind(deleteRunResponse), + deleteRunMetadata.decode.bind(deleteRunMetadata) + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.datacatalog.lineage.v1.Lineage', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.lineageStub) { + return this.lineageStub; + } + + // Put together the "service stub" for + // google.cloud.datacatalog.lineage.v1.Lineage. + this.lineageStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.datacatalog.lineage.v1.Lineage' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.datacatalog.lineage.v1.Lineage, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const lineageStubMethods = [ + 'createProcess', + 'updateProcess', + 'getProcess', + 'listProcesses', + 'deleteProcess', + 'createRun', + 'updateRun', + 'getRun', + 'listRuns', + 'deleteRun', + 'createLineageEvent', + 'getLineageEvent', + 'listLineageEvents', + 'deleteLineageEvent', + 'searchLinks', + 'batchSearchLinkProcesses', + ]; + for (const methodName of lineageStubMethods) { + const callPromise = this.lineageStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = + this.descriptors.page[methodName] || + this.descriptors.longrunning[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.lineageStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'datalineage.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'datalineage.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Creates a new process. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the project and its location that should own the + * process. + * @param {google.cloud.datacatalog.lineage.v1.Process} request.process + * Required. The process to create. + * @param {string} request.requestId + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Process]{@link google.cloud.datacatalog.lineage.v1.Process}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/lineage.create_process.js + * region_tag:datalineage_v1_generated_Lineage_CreateProcess_async + */ + createProcess( + request?: protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcess, + ( + | protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest + | undefined + ), + {} | undefined + ] + >; + createProcess( + request: protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createProcess( + request: protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createProcess( + request?: protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcess, + ( + | protos.google.cloud.datacatalog.lineage.v1.ICreateProcessRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createProcess(request, options, callback); + } + /** + * Updates a process. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.datacatalog.lineage.v1.Process} request.process + * Required. The lineage process to update. + * + * The process's `name` field is used to identify the process to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to update. Currently not used. The whole message is + * updated. + * @param {boolean} request.allowMissing + * If set to true and the process is not found, the request inserts it. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Process]{@link google.cloud.datacatalog.lineage.v1.Process}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/lineage.update_process.js + * region_tag:datalineage_v1_generated_Lineage_UpdateProcess_async + */ + updateProcess( + request?: protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcess, + ( + | protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest + | undefined + ), + {} | undefined + ] + >; + updateProcess( + request: protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateProcess( + request: protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateProcess( + request?: protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcess, + ( + | protos.google.cloud.datacatalog.lineage.v1.IUpdateProcessRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'process.name': request.process!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateProcess(request, options, callback); + } + /** + * Gets the details of the specified process. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the process to get. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Process]{@link google.cloud.datacatalog.lineage.v1.Process}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/lineage.get_process.js + * region_tag:datalineage_v1_generated_Lineage_GetProcess_async + */ + getProcess( + request?: protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcess, + protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest | undefined, + {} | undefined + ] + >; + getProcess( + request: protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getProcess( + request: protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getProcess( + request?: protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.datacatalog.lineage.v1.IProcess, + | protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcess, + protos.google.cloud.datacatalog.lineage.v1.IGetProcessRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getProcess(request, options, callback); + } + /** + * Creates a new run. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the process that should own the run. + * @param {google.cloud.datacatalog.lineage.v1.Run} request.run + * Required. The run to create. + * @param {string} request.requestId + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Run]{@link google.cloud.datacatalog.lineage.v1.Run}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/lineage.create_run.js + * region_tag:datalineage_v1_generated_Lineage_CreateRun_async + */ + createRun( + request?: protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IRun, + protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest | undefined, + {} | undefined + ] + >; + createRun( + request: protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createRun( + request: protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createRun( + request?: protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IRun, + protos.google.cloud.datacatalog.lineage.v1.ICreateRunRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createRun(request, options, callback); + } + /** + * Updates a run. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.datacatalog.lineage.v1.Run} request.run + * Required. The lineage run to update. + * + * The run's `name` field is used to identify the run to update. + * + * Format: + * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to update. Currently not used. The whole message is + * updated. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Run]{@link google.cloud.datacatalog.lineage.v1.Run}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/lineage.update_run.js + * region_tag:datalineage_v1_generated_Lineage_UpdateRun_async + */ + updateRun( + request?: protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IRun, + protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest | undefined, + {} | undefined + ] + >; + updateRun( + request: protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateRun( + request: protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateRun( + request?: protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IRun, + protos.google.cloud.datacatalog.lineage.v1.IUpdateRunRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'run.name': request.run!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateRun(request, options, callback); + } + /** + * Gets the details of the specified run. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the run to get. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Run]{@link google.cloud.datacatalog.lineage.v1.Run}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/lineage.get_run.js + * region_tag:datalineage_v1_generated_Lineage_GetRun_async + */ + getRun( + request?: protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IRun, + protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest | undefined, + {} | undefined + ] + >; + getRun( + request: protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getRun( + request: protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getRun( + request?: protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.datacatalog.lineage.v1.IRun, + | protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IRun, + protos.google.cloud.datacatalog.lineage.v1.IGetRunRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getRun(request, options, callback); + } + /** + * Creates a new lineage event. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the run that should own the lineage event. + * @param {google.cloud.datacatalog.lineage.v1.LineageEvent} request.lineageEvent + * Required. The lineage event to create. + * @param {string} request.requestId + * A unique identifier for this request. Restricted to 36 ASCII characters. + * A random UUID is recommended. This request is idempotent only if a + * `request_id` is provided. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [LineageEvent]{@link google.cloud.datacatalog.lineage.v1.LineageEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/lineage.create_lineage_event.js + * region_tag:datalineage_v1_generated_Lineage_CreateLineageEvent_async + */ + createLineageEvent( + request?: protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + ( + | protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest + | undefined + ), + {} | undefined + ] + >; + createLineageEvent( + request: protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + | protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createLineageEvent( + request: protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + | protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createLineageEvent( + request?: protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + | protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + | protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + ( + | protos.google.cloud.datacatalog.lineage.v1.ICreateLineageEventRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createLineageEvent(request, options, callback); + } + /** + * Gets details of a specified lineage event. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the lineage event to get. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [LineageEvent]{@link google.cloud.datacatalog.lineage.v1.LineageEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/lineage.get_lineage_event.js + * region_tag:datalineage_v1_generated_Lineage_GetLineageEvent_async + */ + getLineageEvent( + request?: protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + ( + | protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest + | undefined + ), + {} | undefined + ] + >; + getLineageEvent( + request: protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + | protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getLineageEvent( + request: protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest, + callback: Callback< + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + | protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getLineageEvent( + request?: protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + | protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + | protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent, + ( + | protos.google.cloud.datacatalog.lineage.v1.IGetLineageEventRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getLineageEvent(request, options, callback); + } + /** + * Deletes the lineage event with the specified name. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the lineage event to delete. + * @param {boolean} request.allowMissing + * If set to true and the lineage event is not found, the request + * succeeds but the server doesn't perform any actions. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/lineage.delete_lineage_event.js + * region_tag:datalineage_v1_generated_Lineage_DeleteLineageEvent_async + */ + deleteLineageEvent( + request?: protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest + | undefined + ), + {} | undefined + ] + >; + deleteLineageEvent( + request: protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteLineageEvent( + request: protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteLineageEvent( + request?: protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.datacatalog.lineage.v1.IDeleteLineageEventRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteLineageEvent(request, options, callback); + } + + /** + * Deletes the process with the specified name. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the process to delete. + * @param {boolean} request.allowMissing + * If set to true and the process is not found, the request + * succeeds but the server doesn't perform any actions. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/lineage.delete_process.js + * region_tag:datalineage_v1_generated_Lineage_DeleteProcess_async + */ + deleteProcess( + request?: protos.google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteProcess( + request: protos.google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteProcess( + request: protos.google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteProcess( + request?: protos.google.cloud.datacatalog.lineage.v1.IDeleteProcessRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteProcess(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteProcess()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/lineage.delete_process.js + * region_tag:datalineage_v1_generated_Lineage_DeleteProcess_async + */ + async checkDeleteProcessProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.datacatalog.lineage.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteProcess, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.datacatalog.lineage.v1.OperationMetadata + >; + } + /** + * Deletes the run with the specified name. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the run to delete. + * @param {boolean} request.allowMissing + * If set to true and the run is not found, the request + * succeeds but the server doesn't perform any actions. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/lineage.delete_run.js + * region_tag:datalineage_v1_generated_Lineage_DeleteRun_async + */ + deleteRun( + request?: protos.google.cloud.datacatalog.lineage.v1.IDeleteRunRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteRun( + request: protos.google.cloud.datacatalog.lineage.v1.IDeleteRunRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteRun( + request: protos.google.cloud.datacatalog.lineage.v1.IDeleteRunRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteRun( + request?: protos.google.cloud.datacatalog.lineage.v1.IDeleteRunRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteRun(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteRun()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/lineage.delete_run.js + * region_tag:datalineage_v1_generated_Lineage_DeleteRun_async + */ + async checkDeleteRunProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.datacatalog.lineage.v1.OperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteRun, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.datacatalog.lineage.v1.OperationMetadata + >; + } + /** + * List processes in the given project and location. List order is descending + * by insertion time. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the project and its location that owns this + * collection of processes. + * @param {number} request.pageSize + * The maximum number of processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * @param {string} request.pageToken + * The page token received from a previous `ListProcesses` call. Specify + * it to get the next page. + * + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Process]{@link google.cloud.datacatalog.lineage.v1.Process}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listProcessesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listProcesses( + request?: protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcess[], + protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest | null, + protos.google.cloud.datacatalog.lineage.v1.IListProcessesResponse + ] + >; + listProcesses( + request: protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListProcessesResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IProcess + > + ): void; + listProcesses( + request: protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListProcessesResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IProcess + > + ): void; + listProcesses( + request?: protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListProcessesResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IProcess + >, + callback?: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListProcessesResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IProcess + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcess[], + protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest | null, + protos.google.cloud.datacatalog.lineage.v1.IListProcessesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listProcesses(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the project and its location that owns this + * collection of processes. + * @param {number} request.pageSize + * The maximum number of processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * @param {string} request.pageToken + * The page token received from a previous `ListProcesses` call. Specify + * it to get the next page. + * + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Process]{@link google.cloud.datacatalog.lineage.v1.Process} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listProcessesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listProcessesStream( + request?: protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listProcesses']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listProcesses.createStream( + this.innerApiCalls.listProcesses as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listProcesses`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the project and its location that owns this + * collection of processes. + * @param {number} request.pageSize + * The maximum number of processes to return. The service may return + * fewer than this value. If unspecified, at most 50 processes are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * @param {string} request.pageToken + * The page token received from a previous `ListProcesses` call. Specify + * it to get the next page. + * + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Process]{@link google.cloud.datacatalog.lineage.v1.Process}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/lineage.list_processes.js + * region_tag:datalineage_v1_generated_Lineage_ListProcesses_async + */ + listProcessesAsync( + request?: protos.google.cloud.datacatalog.lineage.v1.IListProcessesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listProcesses']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listProcesses.asyncIterate( + this.innerApiCalls['listProcesses'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists runs in the given project and location. List order is descending by + * `start_time`. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of process that owns this collection of runs. + * @param {number} request.pageSize + * The maximum number of runs to return. The service may return + * fewer than this value. If unspecified, at most 50 runs are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * @param {string} request.pageToken + * The page token received from a previous `ListRuns` call. Specify + * it to get the next page. + * + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Run]{@link google.cloud.datacatalog.lineage.v1.Run}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listRunsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listRuns( + request?: protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IRun[], + protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest | null, + protos.google.cloud.datacatalog.lineage.v1.IListRunsResponse + ] + >; + listRuns( + request: protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListRunsResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IRun + > + ): void; + listRuns( + request: protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListRunsResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IRun + > + ): void; + listRuns( + request?: protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListRunsResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IRun + >, + callback?: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListRunsResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IRun + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IRun[], + protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest | null, + protos.google.cloud.datacatalog.lineage.v1.IListRunsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listRuns(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of process that owns this collection of runs. + * @param {number} request.pageSize + * The maximum number of runs to return. The service may return + * fewer than this value. If unspecified, at most 50 runs are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * @param {string} request.pageToken + * The page token received from a previous `ListRuns` call. Specify + * it to get the next page. + * + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Run]{@link google.cloud.datacatalog.lineage.v1.Run} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listRunsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listRunsStream( + request?: protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listRuns']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listRuns.createStream( + this.innerApiCalls.listRuns as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listRuns`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of process that owns this collection of runs. + * @param {number} request.pageSize + * The maximum number of runs to return. The service may return + * fewer than this value. If unspecified, at most 50 runs are + * returned. The maximum value is 100; values greater than 100 are cut to + * 100. + * @param {string} request.pageToken + * The page token received from a previous `ListRuns` call. Specify + * it to get the next page. + * + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Run]{@link google.cloud.datacatalog.lineage.v1.Run}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/lineage.list_runs.js + * region_tag:datalineage_v1_generated_Lineage_ListRuns_async + */ + listRunsAsync( + request?: protos.google.cloud.datacatalog.lineage.v1.IListRunsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listRuns']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listRuns.asyncIterate( + this.innerApiCalls['listRuns'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists lineage events in the given project and location. The list order is + * not defined. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the run that owns the collection of lineage events to + * get. + * @param {number} request.pageSize + * The maximum number of lineage events to return. + * + * The service may return fewer events than this value. + * If unspecified, at most 50 events are returned. The maximum value is 100; + * values greater than 100 are cut to 100. + * @param {string} request.pageToken + * The page token received from a previous `ListLineageEvents` call. Specify + * it to get the next page. + * + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [LineageEvent]{@link google.cloud.datacatalog.lineage.v1.LineageEvent}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listLineageEventsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listLineageEvents( + request?: protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent[], + protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest | null, + protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse + ] + >; + listLineageEvents( + request: protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent + > + ): void; + listLineageEvents( + request: protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent + > + ): void; + listLineageEvents( + request?: protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent + >, + callback?: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + | protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.ILineageEvent[], + protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest | null, + protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listLineageEvents(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the run that owns the collection of lineage events to + * get. + * @param {number} request.pageSize + * The maximum number of lineage events to return. + * + * The service may return fewer events than this value. + * If unspecified, at most 50 events are returned. The maximum value is 100; + * values greater than 100 are cut to 100. + * @param {string} request.pageToken + * The page token received from a previous `ListLineageEvents` call. Specify + * it to get the next page. + * + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [LineageEvent]{@link google.cloud.datacatalog.lineage.v1.LineageEvent} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listLineageEventsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listLineageEventsStream( + request?: protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listLineageEvents']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listLineageEvents.createStream( + this.innerApiCalls.listLineageEvents as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listLineageEvents`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the run that owns the collection of lineage events to + * get. + * @param {number} request.pageSize + * The maximum number of lineage events to return. + * + * The service may return fewer events than this value. + * If unspecified, at most 50 events are returned. The maximum value is 100; + * values greater than 100 are cut to 100. + * @param {string} request.pageToken + * The page token received from a previous `ListLineageEvents` call. Specify + * it to get the next page. + * + * When paginating, all other parameters specified in this call must + * match the parameters of the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [LineageEvent]{@link google.cloud.datacatalog.lineage.v1.LineageEvent}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/lineage.list_lineage_events.js + * region_tag:datalineage_v1_generated_Lineage_ListLineageEvents_async + */ + listLineageEventsAsync( + request?: protos.google.cloud.datacatalog.lineage.v1.IListLineageEventsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listLineageEvents']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listLineageEvents.asyncIterate( + this.innerApiCalls['listLineageEvents'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Retrieve a list of links connected to a specific asset. + * Links represent the data flow between **source** (upstream) + * and **target** (downstream) assets in transformation pipelines. + * Links are stored in the same project as the Lineage Events that create + * them. + * + * You can retrieve links in every project where you have the + * `datalineage.events.get` permission. The project provided in the URL + * is used for Billing and Quota. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project and location you want search in. + * @param {google.cloud.datacatalog.lineage.v1.EntityReference} [request.source] + * Optional. Send asset information in the **source** field to retrieve all + * links that lead from the specified asset to downstream assets. + * @param {google.cloud.datacatalog.lineage.v1.EntityReference} [request.target] + * Optional. Send asset information in the **target** field to retrieve all + * links that lead from upstream assets to the specified asset. + * @param {number} [request.pageSize] + * Optional. The maximum number of links to return in a single page of the + * response. A page may contain fewer links than this value. If unspecified, + * at most 10 links are returned. + * + * Maximum value is 100; values greater than 100 are reduced to 100. + * @param {string} [request.pageToken] + * Optional. The page token received from a previous `SearchLinksRequest` + * call. Use it to get the next page. + * + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Link]{@link google.cloud.datacatalog.lineage.v1.Link}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `searchLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + searchLinks( + request?: protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.ILink[], + protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest | null, + protos.google.cloud.datacatalog.lineage.v1.ISearchLinksResponse + ] + >; + searchLinks( + request: protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + | protos.google.cloud.datacatalog.lineage.v1.ISearchLinksResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.ILink + > + ): void; + searchLinks( + request: protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + | protos.google.cloud.datacatalog.lineage.v1.ISearchLinksResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.ILink + > + ): void; + searchLinks( + request?: protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + | protos.google.cloud.datacatalog.lineage.v1.ISearchLinksResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.ILink + >, + callback?: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + | protos.google.cloud.datacatalog.lineage.v1.ISearchLinksResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.ILink + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.ILink[], + protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest | null, + protos.google.cloud.datacatalog.lineage.v1.ISearchLinksResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.searchLinks(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project and location you want search in. + * @param {google.cloud.datacatalog.lineage.v1.EntityReference} [request.source] + * Optional. Send asset information in the **source** field to retrieve all + * links that lead from the specified asset to downstream assets. + * @param {google.cloud.datacatalog.lineage.v1.EntityReference} [request.target] + * Optional. Send asset information in the **target** field to retrieve all + * links that lead from upstream assets to the specified asset. + * @param {number} [request.pageSize] + * Optional. The maximum number of links to return in a single page of the + * response. A page may contain fewer links than this value. If unspecified, + * at most 10 links are returned. + * + * Maximum value is 100; values greater than 100 are reduced to 100. + * @param {string} [request.pageToken] + * Optional. The page token received from a previous `SearchLinksRequest` + * call. Use it to get the next page. + * + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Link]{@link google.cloud.datacatalog.lineage.v1.Link} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `searchLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + searchLinksStream( + request?: protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['searchLinks']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.searchLinks.createStream( + this.innerApiCalls.searchLinks as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `searchLinks`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project and location you want search in. + * @param {google.cloud.datacatalog.lineage.v1.EntityReference} [request.source] + * Optional. Send asset information in the **source** field to retrieve all + * links that lead from the specified asset to downstream assets. + * @param {google.cloud.datacatalog.lineage.v1.EntityReference} [request.target] + * Optional. Send asset information in the **target** field to retrieve all + * links that lead from upstream assets to the specified asset. + * @param {number} [request.pageSize] + * Optional. The maximum number of links to return in a single page of the + * response. A page may contain fewer links than this value. If unspecified, + * at most 10 links are returned. + * + * Maximum value is 100; values greater than 100 are reduced to 100. + * @param {string} [request.pageToken] + * Optional. The page token received from a previous `SearchLinksRequest` + * call. Use it to get the next page. + * + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Link]{@link google.cloud.datacatalog.lineage.v1.Link}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/lineage.search_links.js + * region_tag:datalineage_v1_generated_Lineage_SearchLinks_async + */ + searchLinksAsync( + request?: protos.google.cloud.datacatalog.lineage.v1.ISearchLinksRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['searchLinks']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.searchLinks.asyncIterate( + this.innerApiCalls['searchLinks'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Retrieve information about LineageProcesses associated with specific + * links. LineageProcesses are transformation pipelines that result in data + * flowing from **source** to **target** assets. Links between assets + * represent this operation. + * + * If you have specific link names, you can use this method to + * verify which LineageProcesses contribute to creating those links. + * See the + * {@link google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks|SearchLinks} + * method for more information on how to retrieve link name. + * + * You can retrieve the LineageProcess information in every project where you + * have the `datalineage.events.get` permission. The project provided in the + * URL is used for Billing and Quota. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project and location where you want to search. + * @param {string[]} request.links + * Required. An array of links to check for their associated LineageProcesses. + * + * The maximum number of items in this array is 100. + * If the request contains more than 100 links, it returns the + * `INVALID_ARGUMENT` error. + * + * Format: `projects/{project}/locations/{location}/links/{link}`. + * @param {number} request.pageSize + * The maximum number of processes to return in a single page of the response. + * A page may contain fewer results than this value. + * @param {string} request.pageToken + * The page token received from a previous `BatchSearchLinkProcesses` call. + * Use it to get the next page. + * + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [ProcessLinks]{@link google.cloud.datacatalog.lineage.v1.ProcessLinks}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `batchSearchLinkProcessesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + batchSearchLinkProcesses( + request?: protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcessLinks[], + protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest | null, + protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse + ] + >; + batchSearchLinkProcesses( + request: protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + | protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IProcessLinks + > + ): void; + batchSearchLinkProcesses( + request: protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + callback: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + | protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IProcessLinks + > + ): void; + batchSearchLinkProcesses( + request?: protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + | protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IProcessLinks + >, + callback?: PaginationCallback< + protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + | protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse + | null + | undefined, + protos.google.cloud.datacatalog.lineage.v1.IProcessLinks + > + ): Promise< + [ + protos.google.cloud.datacatalog.lineage.v1.IProcessLinks[], + protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest | null, + protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.batchSearchLinkProcesses( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project and location where you want to search. + * @param {string[]} request.links + * Required. An array of links to check for their associated LineageProcesses. + * + * The maximum number of items in this array is 100. + * If the request contains more than 100 links, it returns the + * `INVALID_ARGUMENT` error. + * + * Format: `projects/{project}/locations/{location}/links/{link}`. + * @param {number} request.pageSize + * The maximum number of processes to return in a single page of the response. + * A page may contain fewer results than this value. + * @param {string} request.pageToken + * The page token received from a previous `BatchSearchLinkProcesses` call. + * Use it to get the next page. + * + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [ProcessLinks]{@link google.cloud.datacatalog.lineage.v1.ProcessLinks} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `batchSearchLinkProcessesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + batchSearchLinkProcessesStream( + request?: protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['batchSearchLinkProcesses']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.batchSearchLinkProcesses.createStream( + this.innerApiCalls.batchSearchLinkProcesses as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `batchSearchLinkProcesses`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The project and location where you want to search. + * @param {string[]} request.links + * Required. An array of links to check for their associated LineageProcesses. + * + * The maximum number of items in this array is 100. + * If the request contains more than 100 links, it returns the + * `INVALID_ARGUMENT` error. + * + * Format: `projects/{project}/locations/{location}/links/{link}`. + * @param {number} request.pageSize + * The maximum number of processes to return in a single page of the response. + * A page may contain fewer results than this value. + * @param {string} request.pageToken + * The page token received from a previous `BatchSearchLinkProcesses` call. + * Use it to get the next page. + * + * When requesting subsequent pages of a response, remember that + * all parameters must match the values you provided + * in the original request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [ProcessLinks]{@link google.cloud.datacatalog.lineage.v1.ProcessLinks}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/lineage.batch_search_link_processes.js + * region_tag:datalineage_v1_generated_Lineage_BatchSearchLinkProcesses_async + */ + batchSearchLinkProcessesAsync( + request?: protos.google.cloud.datacatalog.lineage.v1.IBatchSearchLinkProcessesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['batchSearchLinkProcesses']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.batchSearchLinkProcesses.asyncIterate( + this.innerApiCalls['batchSearchLinkProcesses'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified lineageEvent resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} process + * @param {string} run + * @param {string} lineage_event + * @returns {string} Resource name string. + */ + lineageEventPath( + project: string, + location: string, + process: string, + run: string, + lineageEvent: string + ) { + return this.pathTemplates.lineageEventPathTemplate.render({ + project: project, + location: location, + process: process, + run: run, + lineage_event: lineageEvent, + }); + } + + /** + * Parse the project from LineageEvent resource. + * + * @param {string} lineageEventName + * A fully-qualified path representing LineageEvent resource. + * @returns {string} A string representing the project. + */ + matchProjectFromLineageEventName(lineageEventName: string) { + return this.pathTemplates.lineageEventPathTemplate.match(lineageEventName) + .project; + } + + /** + * Parse the location from LineageEvent resource. + * + * @param {string} lineageEventName + * A fully-qualified path representing LineageEvent resource. + * @returns {string} A string representing the location. + */ + matchLocationFromLineageEventName(lineageEventName: string) { + return this.pathTemplates.lineageEventPathTemplate.match(lineageEventName) + .location; + } + + /** + * Parse the process from LineageEvent resource. + * + * @param {string} lineageEventName + * A fully-qualified path representing LineageEvent resource. + * @returns {string} A string representing the process. + */ + matchProcessFromLineageEventName(lineageEventName: string) { + return this.pathTemplates.lineageEventPathTemplate.match(lineageEventName) + .process; + } + + /** + * Parse the run from LineageEvent resource. + * + * @param {string} lineageEventName + * A fully-qualified path representing LineageEvent resource. + * @returns {string} A string representing the run. + */ + matchRunFromLineageEventName(lineageEventName: string) { + return this.pathTemplates.lineageEventPathTemplate.match(lineageEventName) + .run; + } + + /** + * Parse the lineage_event from LineageEvent resource. + * + * @param {string} lineageEventName + * A fully-qualified path representing LineageEvent resource. + * @returns {string} A string representing the lineage_event. + */ + matchLineageEventFromLineageEventName(lineageEventName: string) { + return this.pathTemplates.lineageEventPathTemplate.match(lineageEventName) + .lineage_event; + } + + /** + * Return a fully-qualified location resource name string. + * + * @param {string} project + * @param {string} location + * @returns {string} Resource name string. + */ + locationPath(project: string, location: string) { + return this.pathTemplates.locationPathTemplate.render({ + project: project, + location: location, + }); + } + + /** + * Parse the project from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the project. + */ + matchProjectFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).project; + } + + /** + * Parse the location from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the location. + */ + matchLocationFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).location; + } + + /** + * Return a fully-qualified process resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} process + * @returns {string} Resource name string. + */ + processPath(project: string, location: string, process: string) { + return this.pathTemplates.processPathTemplate.render({ + project: project, + location: location, + process: process, + }); + } + + /** + * Parse the project from Process resource. + * + * @param {string} processName + * A fully-qualified path representing Process resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProcessName(processName: string) { + return this.pathTemplates.processPathTemplate.match(processName).project; + } + + /** + * Parse the location from Process resource. + * + * @param {string} processName + * A fully-qualified path representing Process resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProcessName(processName: string) { + return this.pathTemplates.processPathTemplate.match(processName).location; + } + + /** + * Parse the process from Process resource. + * + * @param {string} processName + * A fully-qualified path representing Process resource. + * @returns {string} A string representing the process. + */ + matchProcessFromProcessName(processName: string) { + return this.pathTemplates.processPathTemplate.match(processName).process; + } + + /** + * Return a fully-qualified project resource name string. + * + * @param {string} project + * @returns {string} Resource name string. + */ + projectPath(project: string) { + return this.pathTemplates.projectPathTemplate.render({ + project: project, + }); + } + + /** + * Parse the project from Project resource. + * + * @param {string} projectName + * A fully-qualified path representing Project resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectName(projectName: string) { + return this.pathTemplates.projectPathTemplate.match(projectName).project; + } + + /** + * Return a fully-qualified run resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} process + * @param {string} run + * @returns {string} Resource name string. + */ + runPath(project: string, location: string, process: string, run: string) { + return this.pathTemplates.runPathTemplate.render({ + project: project, + location: location, + process: process, + run: run, + }); + } + + /** + * Parse the project from Run resource. + * + * @param {string} runName + * A fully-qualified path representing Run resource. + * @returns {string} A string representing the project. + */ + matchProjectFromRunName(runName: string) { + return this.pathTemplates.runPathTemplate.match(runName).project; + } + + /** + * Parse the location from Run resource. + * + * @param {string} runName + * A fully-qualified path representing Run resource. + * @returns {string} A string representing the location. + */ + matchLocationFromRunName(runName: string) { + return this.pathTemplates.runPathTemplate.match(runName).location; + } + + /** + * Parse the process from Run resource. + * + * @param {string} runName + * A fully-qualified path representing Run resource. + * @returns {string} A string representing the process. + */ + matchProcessFromRunName(runName: string) { + return this.pathTemplates.runPathTemplate.match(runName).process; + } + + /** + * Parse the run from Run resource. + * + * @param {string} runName + * A fully-qualified path representing Run resource. + * @returns {string} A string representing the run. + */ + matchRunFromRunName(runName: string) { + return this.pathTemplates.runPathTemplate.match(runName).run; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.lineageStub && !this._terminated) { + return this.lineageStub.then(stub => { + this._terminated = true; + stub.close(); + this.operationsClient.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-datacatalog-lineage/src/v1/lineage_client_config.json b/packages/google-cloud-datacatalog-lineage/src/v1/lineage_client_config.json new file mode 100644 index 000000000000..3b138daf4610 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/src/v1/lineage_client_config.json @@ -0,0 +1,109 @@ +{ + "interfaces": { + "google.cloud.datacatalog.lineage.v1.Lineage": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "unavailable": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateProcess": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "UpdateProcess": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "GetProcess": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "ListProcesses": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "DeleteProcess": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "CreateRun": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "UpdateRun": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "GetRun": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "ListRuns": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "DeleteRun": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "CreateLineageEvent": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "GetLineageEvent": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "ListLineageEvents": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "DeleteLineageEvent": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "SearchLinks": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "BatchSearchLinkProcesses": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-datacatalog-lineage/src/v1/lineage_proto_list.json b/packages/google-cloud-datacatalog-lineage/src/v1/lineage_proto_list.json new file mode 100644 index 000000000000..9a4ba7685b87 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/src/v1/lineage_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/datacatalog/lineage/v1/lineage.proto" +] diff --git a/packages/google-cloud-datacatalog-lineage/system-test/fixtures/sample/src/index.js b/packages/google-cloud-datacatalog-lineage/system-test/fixtures/sample/src/index.js new file mode 100644 index 000000000000..cf3687360af5 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/system-test/fixtures/sample/src/index.js @@ -0,0 +1,26 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* eslint-disable node/no-missing-require, no-unused-vars */ +const lineage = require('@google-cloud/lineage'); + +function main() { + const lineageClient = new lineage.LineageClient(); +} + +main(); diff --git a/packages/google-cloud-datacatalog-lineage/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-datacatalog-lineage/system-test/fixtures/sample/src/index.ts new file mode 100644 index 000000000000..2a269943ae26 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/system-test/fixtures/sample/src/index.ts @@ -0,0 +1,32 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import {LineageClient} from '@google-cloud/lineage'; + +// check that the client class type name can be used +function doStuffWithLineageClient(client: LineageClient) { + client.close(); +} + +function main() { + // check that the client instance can be created + const lineageClient = new LineageClient(); + doStuffWithLineageClient(lineageClient); +} + +main(); diff --git a/packages/google-cloud-datacatalog-lineage/system-test/install.ts b/packages/google-cloud-datacatalog-lineage/system-test/install.ts new file mode 100644 index 000000000000..f61fe236476b --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/system-test/install.ts @@ -0,0 +1,51 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import {packNTest} from 'pack-n-play'; +import {readFileSync} from 'fs'; +import {describe, it} from 'mocha'; + +describe('📦 pack-n-play test', () => { + it('TypeScript code', async function () { + this.timeout(300000); + const options = { + packageDir: process.cwd(), + sample: { + description: 'TypeScript user can use the type definitions', + ts: readFileSync( + './system-test/fixtures/sample/src/index.ts' + ).toString(), + }, + }; + await packNTest(options); + }); + + it('JavaScript code', async function () { + this.timeout(300000); + const options = { + packageDir: process.cwd(), + sample: { + description: 'JavaScript user can use the library', + ts: readFileSync( + './system-test/fixtures/sample/src/index.js' + ).toString(), + }, + }; + await packNTest(options); + }); +}); diff --git a/packages/google-cloud-datacatalog-lineage/test/gapic_lineage_v1.ts b/packages/google-cloud-datacatalog-lineage/test/gapic_lineage_v1.ts new file mode 100644 index 000000000000..391f35de5dd0 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/test/gapic_lineage_v1.ts @@ -0,0 +1,4115 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as lineageModule from '../src'; + +import {PassThrough} from 'stream'; + +import {protobuf, LROperation, operationsProtos} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubLongRunningCall( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().rejects(callError) + : sinon.stub().resolves([mockOperation]); +} + +function stubLongRunningCallWithCallback( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().callsArgWith(2, callError) + : sinon.stub().callsArgWith(2, null, mockOperation); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.LineageClient', () => { + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = lineageModule.v1.LineageClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = lineageModule.v1.LineageClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = lineageModule.v1.LineageClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new lineageModule.v1.LineageClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new lineageModule.v1.LineageClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.lineageStub, undefined); + await client.initialize(); + assert(client.lineageStub); + }); + + it('has close method for the initialized client', done => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.lineageStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.lineageStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('createProcess', () => { + it('invokes createProcess without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateProcessRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ); + client.innerApiCalls.createProcess = stubSimpleCall(expectedResponse); + const [response] = await client.createProcess(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createProcess without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateProcessRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ); + client.innerApiCalls.createProcess = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createProcess( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.IProcess | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createProcess with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateProcessRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createProcess = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createProcess(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createProcess with closed client', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateProcessRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createProcess(request), expectedError); + }); + }); + + describe('updateProcess', () => { + it('invokes updateProcess without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest() + ); + request.process ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest', + ['process', 'name'] + ); + request.process.name = defaultValue1; + const expectedHeaderRequestParams = `process.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ); + client.innerApiCalls.updateProcess = stubSimpleCall(expectedResponse); + const [response] = await client.updateProcess(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateProcess without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest() + ); + request.process ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest', + ['process', 'name'] + ); + request.process.name = defaultValue1; + const expectedHeaderRequestParams = `process.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ); + client.innerApiCalls.updateProcess = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateProcess( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.IProcess | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateProcess with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest() + ); + request.process ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest', + ['process', 'name'] + ); + request.process.name = defaultValue1; + const expectedHeaderRequestParams = `process.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateProcess = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateProcess(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateProcess with closed client', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest() + ); + request.process ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.UpdateProcessRequest', + ['process', 'name'] + ); + request.process.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateProcess(request), expectedError); + }); + }); + + describe('getProcess', () => { + it('invokes getProcess without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetProcessRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ); + client.innerApiCalls.getProcess = stubSimpleCall(expectedResponse); + const [response] = await client.getProcess(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getProcess without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetProcessRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ); + client.innerApiCalls.getProcess = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getProcess( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.IProcess | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getProcess with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetProcessRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getProcess = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getProcess(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getProcess with closed client', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetProcessRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getProcess(request), expectedError); + }); + }); + + describe('createRun', () => { + it('invokes createRun without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateRunRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ); + client.innerApiCalls.createRun = stubSimpleCall(expectedResponse); + const [response] = await client.createRun(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createRun without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateRunRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ); + client.innerApiCalls.createRun = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createRun( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.IRun | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createRun with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateRunRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createRun = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.createRun(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createRun with closed client', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateRunRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createRun(request), expectedError); + }); + }); + + describe('updateRun', () => { + it('invokes updateRun without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.UpdateRunRequest() + ); + request.run ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.UpdateRunRequest', + ['run', 'name'] + ); + request.run.name = defaultValue1; + const expectedHeaderRequestParams = `run.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ); + client.innerApiCalls.updateRun = stubSimpleCall(expectedResponse); + const [response] = await client.updateRun(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateRun without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.UpdateRunRequest() + ); + request.run ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.UpdateRunRequest', + ['run', 'name'] + ); + request.run.name = defaultValue1; + const expectedHeaderRequestParams = `run.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ); + client.innerApiCalls.updateRun = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateRun( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.IRun | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateRun with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.UpdateRunRequest() + ); + request.run ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.UpdateRunRequest', + ['run', 'name'] + ); + request.run.name = defaultValue1; + const expectedHeaderRequestParams = `run.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateRun = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateRun(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateRun with closed client', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.UpdateRunRequest() + ); + request.run ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.UpdateRunRequest', + ['run', 'name'] + ); + request.run.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateRun(request), expectedError); + }); + }); + + describe('getRun', () => { + it('invokes getRun without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetRunRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ); + client.innerApiCalls.getRun = stubSimpleCall(expectedResponse); + const [response] = await client.getRun(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getRun as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRun without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetRunRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ); + client.innerApiCalls.getRun = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getRun( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.IRun | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getRun as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRun with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetRunRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getRun = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getRun(request), expectedError); + const actualRequest = (client.innerApiCalls.getRun as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRun with closed client', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetRunRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getRun(request), expectedError); + }); + }); + + describe('createLineageEvent', () => { + it('invokes createLineageEvent without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ); + client.innerApiCalls.createLineageEvent = + stubSimpleCall(expectedResponse); + const [response] = await client.createLineageEvent(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createLineageEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createLineageEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createLineageEvent without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ); + client.innerApiCalls.createLineageEvent = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createLineageEvent( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.ILineageEvent | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createLineageEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createLineageEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createLineageEvent with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createLineageEvent = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createLineageEvent(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createLineageEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createLineageEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createLineageEvent with closed client', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.CreateLineageEventRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createLineageEvent(request), expectedError); + }); + }); + + describe('getLineageEvent', () => { + it('invokes getLineageEvent without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ); + client.innerApiCalls.getLineageEvent = stubSimpleCall(expectedResponse); + const [response] = await client.getLineageEvent(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getLineageEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getLineageEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getLineageEvent without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ); + client.innerApiCalls.getLineageEvent = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLineageEvent( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.ILineageEvent | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getLineageEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getLineageEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getLineageEvent with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getLineageEvent = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getLineageEvent(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getLineageEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getLineageEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getLineageEvent with closed client', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.GetLineageEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getLineageEvent(request), expectedError); + }); + }); + + describe('deleteLineageEvent', () => { + it('invokes deleteLineageEvent without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteLineageEvent = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteLineageEvent(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteLineageEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteLineageEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteLineageEvent without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteLineageEvent = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteLineageEvent( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteLineageEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteLineageEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteLineageEvent with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteLineageEvent = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteLineageEvent(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteLineageEvent as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteLineageEvent as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteLineageEvent with closed client', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteLineageEventRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteLineageEvent(request), expectedError); + }); + }); + + describe('deleteProcess', () => { + it('invokes deleteProcess without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteProcess = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteProcess(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteProcess without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteProcess = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteProcess( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteProcess with call error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteProcess = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteProcess(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteProcess with LRO error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteProcessRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteProcess = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteProcess(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteProcess as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteProcess as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteProcessProgress without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteProcessProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteProcessProgress with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteProcessProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteRun', () => { + it('invokes deleteRun without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteRunRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteRun = stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteRun(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteRun without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteRunRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteRun = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteRun( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.datacatalog.lineage.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteRun with call error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteRunRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteRun = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteRun(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteRun with LRO error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.DeleteRunRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.DeleteRunRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteRun = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteRun(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteRun as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteRun as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteRunProgress without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteRunProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteRunProgress with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkDeleteRunProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listProcesses', () => { + it('invokes listProcesses without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + ]; + client.innerApiCalls.listProcesses = stubSimpleCall(expectedResponse); + const [response] = await client.listProcesses(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listProcesses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listProcesses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listProcesses without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + ]; + client.innerApiCalls.listProcesses = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listProcesses( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.datacatalog.lineage.v1.IProcess[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listProcesses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listProcesses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listProcesses with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listProcesses = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listProcesses(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listProcesses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listProcesses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listProcessesStream without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + ]; + client.descriptors.page.listProcesses.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listProcessesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.Process[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.datacatalog.lineage.v1.Process) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listProcesses.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProcesses, request) + ); + assert( + (client.descriptors.page.listProcesses.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listProcessesStream with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listProcesses.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listProcessesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.Process[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.datacatalog.lineage.v1.Process) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listProcesses.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProcesses, request) + ); + assert( + (client.descriptors.page.listProcesses.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listProcesses without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Process() + ), + ]; + client.descriptors.page.listProcesses.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.datacatalog.lineage.v1.IProcess[] = + []; + const iterable = client.listProcessesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listProcesses.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listProcesses.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listProcesses with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listProcesses.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listProcessesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.datacatalog.lineage.v1.IProcess[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listProcesses.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listProcesses.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listRuns', () => { + it('invokes listRuns without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListRunsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListRunsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + ]; + client.innerApiCalls.listRuns = stubSimpleCall(expectedResponse); + const [response] = await client.listRuns(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listRuns as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRuns as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listRuns without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListRunsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListRunsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + ]; + client.innerApiCalls.listRuns = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listRuns( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.IRun[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listRuns as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRuns as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listRuns with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListRunsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListRunsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listRuns = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.listRuns(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listRuns as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRuns as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listRunsStream without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListRunsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListRunsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + ]; + client.descriptors.page.listRuns.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listRunsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.Run[] = []; + stream.on( + 'data', + (response: protos.google.cloud.datacatalog.lineage.v1.Run) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listRuns.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listRuns, request) + ); + assert( + (client.descriptors.page.listRuns.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listRunsStream with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListRunsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListRunsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listRuns.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listRunsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.Run[] = []; + stream.on( + 'data', + (response: protos.google.cloud.datacatalog.lineage.v1.Run) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listRuns.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listRuns, request) + ); + assert( + (client.descriptors.page.listRuns.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listRuns without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListRunsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListRunsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Run() + ), + ]; + client.descriptors.page.listRuns.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.datacatalog.lineage.v1.IRun[] = []; + const iterable = client.listRunsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listRuns.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.listRuns.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listRuns with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListRunsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListRunsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listRuns.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listRunsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.datacatalog.lineage.v1.IRun[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listRuns.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.listRuns.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listLineageEvents', () => { + it('invokes listLineageEvents without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + ]; + client.innerApiCalls.listLineageEvents = stubSimpleCall(expectedResponse); + const [response] = await client.listLineageEvents(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listLineageEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listLineageEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listLineageEvents without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + ]; + client.innerApiCalls.listLineageEvents = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listLineageEvents( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.datacatalog.lineage.v1.ILineageEvent[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listLineageEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listLineageEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listLineageEvents with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listLineageEvents = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listLineageEvents(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listLineageEvents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listLineageEvents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listLineageEventsStream without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + ]; + client.descriptors.page.listLineageEvents.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listLineageEventsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.LineageEvent[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.datacatalog.lineage.v1.LineageEvent + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listLineageEvents.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listLineageEvents, request) + ); + assert( + (client.descriptors.page.listLineageEvents.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listLineageEventsStream with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listLineageEvents.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listLineageEventsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.LineageEvent[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.datacatalog.lineage.v1.LineageEvent + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listLineageEvents.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listLineageEvents, request) + ); + assert( + (client.descriptors.page.listLineageEvents.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listLineageEvents without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.LineageEvent() + ), + ]; + client.descriptors.page.listLineageEvents.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.datacatalog.lineage.v1.ILineageEvent[] = + []; + const iterable = client.listLineageEventsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listLineageEvents.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listLineageEvents.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listLineageEvents with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.ListLineageEventsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listLineageEvents.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLineageEventsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.datacatalog.lineage.v1.ILineageEvent[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listLineageEvents.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listLineageEvents.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('searchLinks', () => { + it('invokes searchLinks without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.SearchLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.SearchLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + ]; + client.innerApiCalls.searchLinks = stubSimpleCall(expectedResponse); + const [response] = await client.searchLinks(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.searchLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.searchLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes searchLinks without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.SearchLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.SearchLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + ]; + client.innerApiCalls.searchLinks = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.searchLinks( + request, + ( + err?: Error | null, + result?: protos.google.cloud.datacatalog.lineage.v1.ILink[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.searchLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.searchLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes searchLinks with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.SearchLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.SearchLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.searchLinks = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.searchLinks(request), expectedError); + const actualRequest = ( + client.innerApiCalls.searchLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.searchLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes searchLinksStream without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.SearchLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.SearchLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + ]; + client.descriptors.page.searchLinks.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.searchLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.Link[] = []; + stream.on( + 'data', + (response: protos.google.cloud.datacatalog.lineage.v1.Link) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.searchLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.searchLinks, request) + ); + assert( + (client.descriptors.page.searchLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes searchLinksStream with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.SearchLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.SearchLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.searchLinks.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.searchLinksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.Link[] = []; + stream.on( + 'data', + (response: protos.google.cloud.datacatalog.lineage.v1.Link) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.searchLinks.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.searchLinks, request) + ); + assert( + (client.descriptors.page.searchLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with searchLinks without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.SearchLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.SearchLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.Link() + ), + ]; + client.descriptors.page.searchLinks.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.datacatalog.lineage.v1.ILink[] = []; + const iterable = client.searchLinksAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.searchLinks.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert( + (client.descriptors.page.searchLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with searchLinks with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.SearchLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.SearchLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.searchLinks.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.searchLinksAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.datacatalog.lineage.v1.ILink[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.searchLinks.asyncIterate as SinonStub).getCall( + 0 + ).args[1], + request + ); + assert( + (client.descriptors.page.searchLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('batchSearchLinkProcesses', () => { + it('invokes batchSearchLinkProcesses without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + ]; + client.innerApiCalls.batchSearchLinkProcesses = + stubSimpleCall(expectedResponse); + const [response] = await client.batchSearchLinkProcesses(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchSearchLinkProcesses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchSearchLinkProcesses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchSearchLinkProcesses without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + ]; + client.innerApiCalls.batchSearchLinkProcesses = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.batchSearchLinkProcesses( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.datacatalog.lineage.v1.IProcessLinks[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchSearchLinkProcesses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchSearchLinkProcesses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchSearchLinkProcesses with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchSearchLinkProcesses = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.batchSearchLinkProcesses(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.batchSearchLinkProcesses as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchSearchLinkProcesses as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchSearchLinkProcessesStream without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + ]; + client.descriptors.page.batchSearchLinkProcesses.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.batchSearchLinkProcessesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.ProcessLinks[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.datacatalog.lineage.v1.ProcessLinks + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.batchSearchLinkProcesses + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.batchSearchLinkProcesses, request) + ); + assert( + ( + client.descriptors.page.batchSearchLinkProcesses + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes batchSearchLinkProcessesStream with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.batchSearchLinkProcesses.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.batchSearchLinkProcessesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.datacatalog.lineage.v1.ProcessLinks[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.datacatalog.lineage.v1.ProcessLinks + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.batchSearchLinkProcesses + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.batchSearchLinkProcesses, request) + ); + assert( + ( + client.descriptors.page.batchSearchLinkProcesses + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with batchSearchLinkProcesses without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.ProcessLinks() + ), + ]; + client.descriptors.page.batchSearchLinkProcesses.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.datacatalog.lineage.v1.IProcessLinks[] = + []; + const iterable = client.batchSearchLinkProcessesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.batchSearchLinkProcesses + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.batchSearchLinkProcesses + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with batchSearchLinkProcesses with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.batchSearchLinkProcesses.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.batchSearchLinkProcessesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.datacatalog.lineage.v1.IProcessLinks[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.batchSearchLinkProcesses + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.batchSearchLinkProcesses + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('Path templates', () => { + describe('lineageEvent', () => { + const fakePath = '/rendered/path/lineageEvent'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + process: 'processValue', + run: 'runValue', + lineage_event: 'lineageEventValue', + }; + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.lineageEventPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.lineageEventPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('lineageEventPath', () => { + const result = client.lineageEventPath( + 'projectValue', + 'locationValue', + 'processValue', + 'runValue', + 'lineageEventValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.lineageEventPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromLineageEventName', () => { + const result = client.matchProjectFromLineageEventName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.lineageEventPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromLineageEventName', () => { + const result = client.matchLocationFromLineageEventName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.lineageEventPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchProcessFromLineageEventName', () => { + const result = client.matchProcessFromLineageEventName(fakePath); + assert.strictEqual(result, 'processValue'); + assert( + (client.pathTemplates.lineageEventPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromLineageEventName', () => { + const result = client.matchRunFromLineageEventName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + (client.pathTemplates.lineageEventPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLineageEventFromLineageEventName', () => { + const result = client.matchLineageEventFromLineageEventName(fakePath); + assert.strictEqual(result, 'lineageEventValue'); + assert( + (client.pathTemplates.lineageEventPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('location', () => { + const fakePath = '/rendered/path/location'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + }; + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.locationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.locationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('locationPath', () => { + const result = client.locationPath('projectValue', 'locationValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.locationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromLocationName', () => { + const result = client.matchProjectFromLocationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromLocationName', () => { + const result = client.matchLocationFromLocationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('process', () => { + const fakePath = '/rendered/path/process'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + process: 'processValue', + }; + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.processPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.processPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('processPath', () => { + const result = client.processPath( + 'projectValue', + 'locationValue', + 'processValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.processPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProcessName', () => { + const result = client.matchProjectFromProcessName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.processPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProcessName', () => { + const result = client.matchLocationFromProcessName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.processPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchProcessFromProcessName', () => { + const result = client.matchProcessFromProcessName(fakePath); + assert.strictEqual(result, 'processValue'); + assert( + (client.pathTemplates.processPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('project', () => { + const fakePath = '/rendered/path/project'; + const expectedParameters = { + project: 'projectValue', + }; + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectPath', () => { + const result = client.projectPath('projectValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.projectPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectName', () => { + const result = client.matchProjectFromProjectName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.projectPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('run', () => { + const fakePath = '/rendered/path/run'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + process: 'processValue', + run: 'runValue', + }; + const client = new lineageModule.v1.LineageClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.runPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.runPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('runPath', () => { + const result = client.runPath( + 'projectValue', + 'locationValue', + 'processValue', + 'runValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.runPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromRunName', () => { + const result = client.matchProjectFromRunName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.runPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromRunName', () => { + const result = client.matchLocationFromRunName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.runPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchProcessFromRunName', () => { + const result = client.matchProcessFromRunName(fakePath); + assert.strictEqual(result, 'processValue'); + assert( + (client.pathTemplates.runPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromRunName', () => { + const result = client.matchRunFromRunName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + (client.pathTemplates.runPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); diff --git a/packages/google-cloud-datacatalog-lineage/tsconfig.json b/packages/google-cloud-datacatalog-lineage/tsconfig.json new file mode 100644 index 000000000000..c78f1c884ef6 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "./node_modules/gts/tsconfig-google.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build", + "resolveJsonModule": true, + "lib": [ + "es2018", + "dom" + ] + }, + "include": [ + "src/*.ts", + "src/**/*.ts", + "test/*.ts", + "test/**/*.ts", + "system-test/*.ts" + ] +} diff --git a/packages/google-cloud-datacatalog-lineage/webpack.config.js b/packages/google-cloud-datacatalog-lineage/webpack.config.js new file mode 100644 index 000000000000..acad5888eb1d --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/webpack.config.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +const path = require('path'); + +module.exports = { + entry: './src/index.ts', + output: { + library: 'Lineage', + filename: './lineage.js', + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + resolve: { + alias: { + '../../../package.json': path.resolve(__dirname, 'package.json'), + }, + extensions: ['.js', '.json', '.ts'], + }, + module: { + rules: [ + { + test: /\.tsx?$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + { + test: /node_modules[\\/]@grpc[\\/]grpc-js/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]grpc/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]retry-request/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]https?-proxy-agent/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]gtoken/, + use: 'null-loader', + }, + ], + }, + mode: 'production', +}; diff --git a/release-please-config.json b/release-please-config.json index 84496556ca0c..20a4c4dd9886 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -128,7 +128,8 @@ "packages/google-privacy-dlp": {}, "packages/google-storagetransfer": {}, "packages/grafeas": {}, - "packages/typeless-sample-bot": {} + "packages/typeless-sample-bot": {}, + "packages/google-cloud-datacatalog-lineage": {} }, "plugins": [ { From 0e8e44d985d962fe1d11c29e135b57acf4c11bb3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 2 Feb 2023 10:50:17 -0500 Subject: [PATCH 09/38] chore: release main (#3923) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: release main * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- .release-please-manifest.json | 7 +-- changelog.json | 53 ++++++++++++++++++- .../CHANGELOG.md | 8 +++ .../package.json | 2 +- ...a.google.cloud.datacatalog.lineage.v1.json | 2 +- .../samples/package.json | 2 +- .../CHANGELOG.md | 7 +++ .../package.json | 2 +- ...a.google.cloud.networkconnectivity.v1.json | 2 +- ...le.cloud.networkconnectivity.v1alpha1.json | 2 +- .../samples/package.json | 2 +- .../CHANGELOG.md | 7 +++ .../package.json | 2 +- ...a.google.cloud.recaptchaenterprise.v1.json | 2 +- ...gle.cloud.recaptchaenterprise.v1beta1.json | 2 +- .../samples/package.json | 2 +- 16 files changed, 89 insertions(+), 15 deletions(-) create mode 100644 packages/google-cloud-datacatalog-lineage/CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e81cbd01913a..d0f9fc29c58f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -70,7 +70,7 @@ "packages/google-cloud-memcache": "2.3.0", "packages/google-cloud-metastore": "3.4.0", "packages/google-cloud-monitoring": "3.0.3", - "packages/google-cloud-networkconnectivity": "2.3.0", + "packages/google-cloud-networkconnectivity": "2.3.1", "packages/google-cloud-networkmanagement": "2.4.0", "packages/google-cloud-networksecurity": "1.1.0", "packages/google-cloud-notebooks": "2.1.2", @@ -82,7 +82,7 @@ "packages/google-cloud-phishingprotection": "3.0.6", "packages/google-cloud-policytroubleshooter": "2.0.6", "packages/google-cloud-privatecatalog": "2.1.0", - "packages/google-cloud-recaptchaenterprise": "3.2.0", + "packages/google-cloud-recaptchaenterprise": "3.3.0", "packages/google-cloud-recommender": "5.0.4", "packages/google-cloud-redis": "3.2.0", "packages/google-cloud-resourcemanager": "4.2.0", @@ -127,5 +127,6 @@ "packages/google-privacy-dlp": "4.4.0", "packages/google-storagetransfer": "2.3.0", "packages/grafeas": "4.2.1", - "packages/typeless-sample-bot": "1.3.0" + "packages/typeless-sample-bot": "1.3.0", + "packages/google-cloud-datacatalog-lineage": "0.1.0" } diff --git a/changelog.json b/changelog.json index 2ae4524f288b..1c69a8b15c24 100644 --- a/changelog.json +++ b/changelog.json @@ -1,6 +1,57 @@ { "repository": "googleapis/google-cloud-node", "entries": [ + { + "changes": [ + { + "type": "feat", + "sha": "772f591c2ada4aec8d17a50c97f7a6be8240bb07", + "message": "Add initial files for google.cloud.datacatalog.lineage.v1", + "issues": [ + "3831" + ] + } + ], + "version": "0.1.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/lineage", + "id": "4cabcb37-1074-4be6-a97c-8d6835868c68", + "createTime": "2023-02-02T01:26:10.067Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "6542d1e8ffaeb35cc0526de8df2ee11fb3c3e75d", + "message": "[recaptcha-enterprise] add account_verification field to Assessment for MFA", + "issues": [ + "3910" + ] + } + ], + "version": "3.3.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/recaptcha-enterprise", + "id": "d3f992bc-3977-490b-b814-1e9b8ba85f63", + "createTime": "2023-02-02T01:26:10.066Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "685ef7fd29e875c4d35b1a5cd7f41cecb0eb5722", + "message": "[networkconnectivity] remove HTTP bindings for serviceConnectionMaps, serviceConnectionPolicies, serviceClasses", + "issues": [ + "3907" + ] + } + ], + "version": "2.3.1", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/network-connectivity", + "id": "bd81484b-c4ec-4300-a713-476b9d533d28", + "createTime": "2023-02-02T01:26:10.065Z" + }, { "changes": [ { @@ -1683,5 +1734,5 @@ "createTime": "2023-01-28T04:18:24.718Z" } ], - "updateTime": "2023-01-28T04:18:24.750Z" + "updateTime": "2023-02-02T01:26:10.067Z" } \ No newline at end of file diff --git a/packages/google-cloud-datacatalog-lineage/CHANGELOG.md b/packages/google-cloud-datacatalog-lineage/CHANGELOG.md new file mode 100644 index 000000000000..93268d628859 --- /dev/null +++ b/packages/google-cloud-datacatalog-lineage/CHANGELOG.md @@ -0,0 +1,8 @@ +# Changelog + +## 0.1.0 (2023-02-02) + + +### Features + +* Add initial files for google.cloud.datacatalog.lineage.v1 ([#3831](https://github.com/googleapis/google-cloud-node/issues/3831)) ([772f591](https://github.com/googleapis/google-cloud-node/commit/772f591c2ada4aec8d17a50c97f7a6be8240bb07)) diff --git a/packages/google-cloud-datacatalog-lineage/package.json b/packages/google-cloud-datacatalog-lineage/package.json index fd56f0d00c8a..db764c9761c1 100644 --- a/packages/google-cloud-datacatalog-lineage/package.json +++ b/packages/google-cloud-datacatalog-lineage/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/lineage", - "version": "0.0.0", + "version": "0.1.0", "description": "Data Lineage API client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata.google.cloud.datacatalog.lineage.v1.json b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata.google.cloud.datacatalog.lineage.v1.json index a6e4b0b6d801..340b2edd58b4 100644 --- a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata.google.cloud.datacatalog.lineage.v1.json +++ b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata.google.cloud.datacatalog.lineage.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-lineage", - "version": "0.0.0", + "version": "0.1.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-datacatalog-lineage/samples/package.json b/packages/google-cloud-datacatalog-lineage/samples/package.json index 90daae4f0a0e..3cff36f8f42f 100644 --- a/packages/google-cloud-datacatalog-lineage/samples/package.json +++ b/packages/google-cloud-datacatalog-lineage/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@google-cloud/lineage": "0.0.0" + "@google-cloud/lineage": "^0.1.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-cloud-networkconnectivity/CHANGELOG.md b/packages/google-cloud-networkconnectivity/CHANGELOG.md index 6a2b5b9cd957..fa33e258bc2f 100644 --- a/packages/google-cloud-networkconnectivity/CHANGELOG.md +++ b/packages/google-cloud-networkconnectivity/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.1](https://github.com/googleapis/google-cloud-node/compare/network-connectivity-v2.3.0...network-connectivity-v2.3.1) (2023-02-02) + + +### Bug Fixes + +* [networkconnectivity] remove HTTP bindings for serviceConnectionMaps, serviceConnectionPolicies, serviceClasses ([#3907](https://github.com/googleapis/google-cloud-node/issues/3907)) ([685ef7f](https://github.com/googleapis/google-cloud-node/commit/685ef7fd29e875c4d35b1a5cd7f41cecb0eb5722)) + ## [2.3.0](https://github.com/googleapis/google-cloud-node/compare/network-connectivity-v2.2.0...network-connectivity-v2.3.0) (2023-01-28) diff --git a/packages/google-cloud-networkconnectivity/package.json b/packages/google-cloud-networkconnectivity/package.json index 256a6392e6c2..c460c468b02e 100644 --- a/packages/google-cloud-networkconnectivity/package.json +++ b/packages/google-cloud-networkconnectivity/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/network-connectivity", - "version": "2.3.0", + "version": "2.3.1", "description": "Networkconnectivity client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata.google.cloud.networkconnectivity.v1.json b/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata.google.cloud.networkconnectivity.v1.json index 078dd2aed423..8e109a94274e 100644 --- a/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata.google.cloud.networkconnectivity.v1.json +++ b/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata.google.cloud.networkconnectivity.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-networkconnectivity", - "version": "2.3.0", + "version": "2.3.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-networkconnectivity/samples/generated/v1alpha1/snippet_metadata.google.cloud.networkconnectivity.v1alpha1.json b/packages/google-cloud-networkconnectivity/samples/generated/v1alpha1/snippet_metadata.google.cloud.networkconnectivity.v1alpha1.json index 6ef747dc7b84..c5fe36f568ef 100644 --- a/packages/google-cloud-networkconnectivity/samples/generated/v1alpha1/snippet_metadata.google.cloud.networkconnectivity.v1alpha1.json +++ b/packages/google-cloud-networkconnectivity/samples/generated/v1alpha1/snippet_metadata.google.cloud.networkconnectivity.v1alpha1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-networkconnectivity", - "version": "2.3.0", + "version": "2.3.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-networkconnectivity/samples/package.json b/packages/google-cloud-networkconnectivity/samples/package.json index 2f536e08d36f..490aee7897ff 100644 --- a/packages/google-cloud-networkconnectivity/samples/package.json +++ b/packages/google-cloud-networkconnectivity/samples/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/network-connectivity": "^2.3.0" + "@google-cloud/network-connectivity": "^2.3.1" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-cloud-recaptchaenterprise/CHANGELOG.md b/packages/google-cloud-recaptchaenterprise/CHANGELOG.md index 48e3edc18296..705f573c9ac0 100644 --- a/packages/google-cloud-recaptchaenterprise/CHANGELOG.md +++ b/packages/google-cloud-recaptchaenterprise/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/recaptcha-enterprise?activeTab=versions +## [3.3.0](https://github.com/googleapis/google-cloud-node/compare/recaptcha-enterprise-v3.2.0...recaptcha-enterprise-v3.3.0) (2023-02-02) + + +### Features + +* [recaptcha-enterprise] add account_verification field to Assessment for MFA ([#3910](https://github.com/googleapis/google-cloud-node/issues/3910)) ([6542d1e](https://github.com/googleapis/google-cloud-node/commit/6542d1e8ffaeb35cc0526de8df2ee11fb3c3e75d)) + ## [3.2.0](https://github.com/googleapis/google-cloud-node/compare/recaptcha-enterprise-v3.1.1...recaptcha-enterprise-v3.2.0) (2022-12-16) diff --git a/packages/google-cloud-recaptchaenterprise/package.json b/packages/google-cloud-recaptchaenterprise/package.json index 20d988d3ae69..1097ad063eb2 100644 --- a/packages/google-cloud-recaptchaenterprise/package.json +++ b/packages/google-cloud-recaptchaenterprise/package.json @@ -5,7 +5,7 @@ "url": "https://github.com/googleapis/google-cloud-node.git" }, "name": "@google-cloud/recaptcha-enterprise", - "version": "3.2.0", + "version": "3.3.0", "author": "Google LLC", "description": "reCAPTCHA Enterprise API client for Node.js", "main": "build/src/index.js", diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json index 3a978a98d02c..c476299c3c2e 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-recaptchaenterprise", - "version": "3.2.0", + "version": "3.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json index 3f5e826d1d64..e297828f72ba 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json +++ b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-recaptchaenterprise", - "version": "3.2.0", + "version": "3.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-recaptchaenterprise/samples/package.json b/packages/google-cloud-recaptchaenterprise/samples/package.json index 989c6d712ad9..c80932acc2cd 100644 --- a/packages/google-cloud-recaptchaenterprise/samples/package.json +++ b/packages/google-cloud-recaptchaenterprise/samples/package.json @@ -13,7 +13,7 @@ "test": "echo add tests" }, "dependencies": { - "@google-cloud/recaptcha-enterprise": "^3.2.0" + "@google-cloud/recaptcha-enterprise": "^3.3.0" }, "devDependencies": { "chai": "^4.2.0", From 48763577ffe3a47a445c3c3f53a4801049f5d217 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 2 Feb 2023 11:37:20 -0500 Subject: [PATCH 10/38] feat: [gkemulticloud] Added support for Azure workload identity federation (#3925) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Added support for Azure workload identity federation feat: Added `reconciling` and `update_time` output fields to Azure Client resource. Added support for Azure workload identity federation to replace Azure client when creating clusters to manage Azure resources. PiperOrigin-RevId: 506534887 Source-Link: https://github.com/googleapis/googleapis/commit/db56b146aebb211f9d552a3db3614238fba7bbe4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f76c2b52c816d91bdd7ba5efa117cca0989720e7 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZW11bHRpY2xvdWQvLk93bEJvdC55YW1sIiwiaCI6ImY3NmMyYjUyYzgxNmQ5MWJkZDdiYTVlZmExMTdjY2EwOTg5NzIwZTcifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: Benjamin E. Coe --- .../gkemulticloud/v1/attached_resources.proto | 6 +- .../gkemulticloud/v1/attached_service.proto | 14 +- .../gkemulticloud/v1/aws_resources.proto | 2 +- .../cloud/gkemulticloud/v1/aws_service.proto | 10 +- .../gkemulticloud/v1/azure_resources.proto | 32 +- .../gkemulticloud/v1/azure_service.proto | 15 +- .../protos/protos.d.ts | 121 +++++++ .../protos/protos.js | 306 ++++++++++++++++++ .../protos/protos.json | 41 ++- ...tached_clusters.delete_attached_cluster.js | 2 +- ...erate_attached_cluster_install_manifest.js | 4 +- .../attached_clusters.get_attached_cluster.js | 2 +- ...ttached_clusters.list_attached_clusters.js | 2 +- .../v1/aws_clusters.delete_aws_cluster.js | 2 +- .../v1/aws_clusters.get_aws_cluster.js | 2 +- .../v1/aws_clusters.list_aws_clusters.js | 2 +- .../v1/azure_clusters.delete_azure_cluster.js | 2 +- .../v1/azure_clusters.get_azure_cluster.js | 2 +- .../v1/azure_clusters.list_azure_clients.js | 2 +- .../v1/azure_clusters.list_azure_clusters.js | 2 +- .../v1/azure_clusters.update_azure_cluster.js | 3 + ...etadata.google.cloud.gkemulticloud.v1.json | 8 +- .../src/v1/attached_clusters_client.ts | 16 +- .../src/v1/aws_clusters_client.ts | 12 +- .../src/v1/azure_clusters_client.ts | 21 +- 25 files changed, 563 insertions(+), 68 deletions(-) diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto index 4c8f6ab475e7..157072863d96 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto @@ -70,7 +70,7 @@ message AttachedCluster { // `projects//locations//attachedClusters/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1; // Optional. A human readable description of this cluster. @@ -180,9 +180,9 @@ message AttachedClusterUser { // OIDC discovery information of the target cluster. // // Kubernetes Service Account (KSA) tokens are JWT tokens signed by the cluster -// API server. This fields indicates how GCP services +// API server. This fields indicates how Google Cloud Platform services // validate KSA tokens in order to allow system workloads (such as GKE Connect -// and telemetry agents) to authenticate back to GCP. +// and telemetry agents) to authenticate back to Google Cloud Platform. // // Both clusters with public and private issuer URLs are supported. // Clusters with public issuers only need to specify the `issuer_url` field diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto index e72d3f1ab29f..f4e72873824b 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto @@ -42,7 +42,7 @@ service AttachedClusters { // Creates a new // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource - // on a given GCP project and region. + // on a given Google Cloud Platform project and region. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be @@ -175,7 +175,7 @@ message GenerateAttachedClusterInstallManifestRequest { } ]; - // Required. A client provided ID the resource. Must be unique within the + // Required. A client provided ID of the resource. Must be unique within the // parent resource. // // The provided ID will be part of the @@ -188,7 +188,7 @@ message GenerateAttachedClusterInstallManifestRequest { // When generating an install manifest for importing an existing Membership // resource, the attached_cluster_id field must be the Membership id. // - // Membership names are formatted as `resource name formatted as + // Membership names are formatted as // `projects//locations//memberships/`. string attached_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -315,7 +315,7 @@ message GetAttachedClusterRequest { // `projects//locations//attachedClusters/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -332,7 +332,7 @@ message ListAttachedClustersRequest { // Location names are formatted as `projects//locations/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -358,7 +358,7 @@ message ListAttachedClustersRequest { // Response message for `AttachedClusters.ListAttachedClusters` method. message ListAttachedClustersResponse { // A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] - // resources in the specified GCP project and region region. + // resources in the specified Google Cloud Platform project and region region. repeated AttachedCluster attached_clusters = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -375,7 +375,7 @@ message DeleteAttachedClusterRequest { // `projects//locations//attachedClusters/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_resources.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_resources.proto index dc7e918209e2..f1684a81195a 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_resources.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_resources.proto @@ -70,7 +70,7 @@ message AwsCluster { // `projects//locations//awsClusters/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1; // Optional. A human readable description of this cluster. diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_service.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_service.proto index cb1f3a41db30..000e45a6343c 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_service.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_service.proto @@ -41,7 +41,7 @@ service AwsClusters { "https://www.googleapis.com/auth/cloud-platform"; // Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - // resource on a given GCP project and region. + // resource on a given Google Cloud Platform project and region. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be @@ -290,7 +290,7 @@ message GetAwsClusterRequest { // `projects//locations//awsClusters/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -307,7 +307,7 @@ message ListAwsClustersRequest { // Location names are formatted as `projects//locations/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -333,7 +333,7 @@ message ListAwsClustersRequest { // Response message for `AwsClusters.ListAwsClusters` method. message ListAwsClustersResponse { // A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources - // in the specified GCP project and region region. + // in the specified Google Cloud Platform project and region region. repeated AwsCluster aws_clusters = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -350,7 +350,7 @@ message DeleteAwsClusterRequest { // `projects//locations//awsClusters/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_resources.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_resources.proto index b6750d764235..f4d3c1c6323b 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_resources.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_resources.proto @@ -70,7 +70,7 @@ message AzureCluster { // `projects//locations//azureClusters/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1; // Optional. A human readable description of this cluster. @@ -90,20 +90,20 @@ message AzureCluster { // `/subscriptions//resourceGroups/` string resource_group_id = 17 [(google.api.field_behavior) = REQUIRED]; - // Required. Name of the + // Optional. Name of the // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains // authentication configuration for how the Anthos Multi-Cloud API connects to // Azure APIs. // - // The `AzureClient` resource must reside on the same GCP project and region - // as the `AzureCluster`. + // The `AzureClient` resource must reside on the same Google Cloud Platform + // project and region as the `AzureCluster`. // // `AzureClient` names are formatted as // `projects//locations//azureClients/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) // for more details on Google Cloud resource names. - string azure_client = 16 [(google.api.field_behavior) = REQUIRED]; + string azure_client = 16 [(google.api.field_behavior) = OPTIONAL]; // Required. Cluster-wide networking configuration. AzureClusterNetworking networking = 4 @@ -115,6 +115,10 @@ message AzureCluster { // Required. Configuration related to the cluster RBAC settings. AzureAuthorization authorization = 6 [(google.api.field_behavior) = REQUIRED]; + // Optional. Authentication configuration for management of Azure resources. + AzureServicesAuthentication azure_services_authentication = 22 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. The current state of the cluster. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -410,6 +414,9 @@ message AzureClient { // Required. The Azure Active Directory Application ID. string application_id = 3 [(google.api.field_behavior) = REQUIRED]; + // Output only. If set, there are currently pending changes to the client. + bool reconciling = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Annotations on the resource. // // This field has the same restrictions as Kubernetes annotations. @@ -430,6 +437,10 @@ message AzureClient { // Output only. The time at which this resource was created. google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which this client was last updated. + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configuration related to the cluster RBAC settings. @@ -444,6 +455,15 @@ message AzureAuthorization { [(google.api.field_behavior) = REQUIRED]; } +// Authentication configuration for the management of Azure resources. +message AzureServicesAuthentication { + // Required. The Azure Active Directory Tenant ID. + string tenant_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Azure Active Directory Application ID. + string application_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Identities of a user-type subject for Azure clusters. message AzureClusterUser { // Required. The name of the user, e.g. `my-gcp-id@gmail.com`. @@ -638,7 +658,7 @@ message AzureServerConfig { // `projects//locations//azureServerConfig`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1; // List of valid Kubernetes versions. diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_service.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_service.proto index 2593468ad42e..22c2d6a7cf44 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_service.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_service.proto @@ -105,7 +105,7 @@ service AzureClusters { } // Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - // resource on a given GCP project and region. + // resource on a given Google Cloud Platform project and region. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be @@ -327,6 +327,9 @@ message UpdateAzureClusterRequest { // * `annotations`. // * `authorization.admin_users`. // * `control_plane.root_volume.size_gib`. + // * `azure_services_authentication`. + // * `azure_services_authentication.tenant_id`. + // * `azure_services_authentication.application_id`. // * `control_plane.proxy_config`. // * `control_plane.proxy_config.resource_group_id`. // * `control_plane.proxy_config.secret_id`. @@ -347,7 +350,7 @@ message GetAzureClusterRequest { // `projects//locations//azureClusters/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -364,7 +367,7 @@ message ListAzureClustersRequest { // Location names are formatted as `projects//locations/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -390,7 +393,7 @@ message ListAzureClustersRequest { // Response message for `AzureClusters.ListAzureClusters` method. message ListAzureClustersResponse { // A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - // resources in the specified GCP project and region region. + // resources in the specified Google Cloud Platform project and region region. repeated AzureCluster azure_clusters = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -407,7 +410,7 @@ message DeleteAzureClusterRequest { // `projects//locations//azureClusters/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -679,7 +682,7 @@ message ListAzureClientsRequest { // Location names are formatted as `projects//locations/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) - // for more details on GCP resource names. + // for more details on Google Cloud Platform resource names. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/packages/google-cloud-gkemulticloud/protos/protos.d.ts b/packages/google-cloud-gkemulticloud/protos/protos.d.ts index 8819abeb7579..17b8a51f770b 100644 --- a/packages/google-cloud-gkemulticloud/protos/protos.d.ts +++ b/packages/google-cloud-gkemulticloud/protos/protos.d.ts @@ -7368,6 +7368,9 @@ export namespace google { /** AzureCluster authorization */ authorization?: (google.cloud.gkemulticloud.v1.IAzureAuthorization|null); + /** AzureCluster azureServicesAuthentication */ + azureServicesAuthentication?: (google.cloud.gkemulticloud.v1.IAzureServicesAuthentication|null); + /** AzureCluster state */ state?: (google.cloud.gkemulticloud.v1.AzureCluster.State|keyof typeof google.cloud.gkemulticloud.v1.AzureCluster.State|null); @@ -7447,6 +7450,9 @@ export namespace google { /** AzureCluster authorization. */ public authorization?: (google.cloud.gkemulticloud.v1.IAzureAuthorization|null); + /** AzureCluster azureServicesAuthentication. */ + public azureServicesAuthentication?: (google.cloud.gkemulticloud.v1.IAzureServicesAuthentication|null); + /** AzureCluster state. */ public state: (google.cloud.gkemulticloud.v1.AzureCluster.State|keyof typeof google.cloud.gkemulticloud.v1.AzureCluster.State); @@ -8377,6 +8383,9 @@ export namespace google { /** AzureClient applicationId */ applicationId?: (string|null); + /** AzureClient reconciling */ + reconciling?: (boolean|null); + /** AzureClient annotations */ annotations?: ({ [k: string]: string }|null); @@ -8388,6 +8397,9 @@ export namespace google { /** AzureClient createTime */ createTime?: (google.protobuf.ITimestamp|null); + + /** AzureClient updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } /** Represents an AzureClient. */ @@ -8408,6 +8420,9 @@ export namespace google { /** AzureClient applicationId. */ public applicationId: string; + /** AzureClient reconciling. */ + public reconciling: boolean; + /** AzureClient annotations. */ public annotations: { [k: string]: string }; @@ -8420,6 +8435,9 @@ export namespace google { /** AzureClient createTime. */ public createTime?: (google.protobuf.ITimestamp|null); + /** AzureClient updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + /** * Creates a new AzureClient instance using the specified properties. * @param [properties] Properties to set @@ -8595,6 +8613,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AzureServicesAuthentication. */ + interface IAzureServicesAuthentication { + + /** AzureServicesAuthentication tenantId */ + tenantId?: (string|null); + + /** AzureServicesAuthentication applicationId */ + applicationId?: (string|null); + } + + /** Represents an AzureServicesAuthentication. */ + class AzureServicesAuthentication implements IAzureServicesAuthentication { + + /** + * Constructs a new AzureServicesAuthentication. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gkemulticloud.v1.IAzureServicesAuthentication); + + /** AzureServicesAuthentication tenantId. */ + public tenantId: string; + + /** AzureServicesAuthentication applicationId. */ + public applicationId: string; + + /** + * Creates a new AzureServicesAuthentication instance using the specified properties. + * @param [properties] Properties to set + * @returns AzureServicesAuthentication instance + */ + public static create(properties?: google.cloud.gkemulticloud.v1.IAzureServicesAuthentication): google.cloud.gkemulticloud.v1.AzureServicesAuthentication; + + /** + * Encodes the specified AzureServicesAuthentication message. Does not implicitly {@link google.cloud.gkemulticloud.v1.AzureServicesAuthentication.verify|verify} messages. + * @param message AzureServicesAuthentication message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gkemulticloud.v1.IAzureServicesAuthentication, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AzureServicesAuthentication message, length delimited. Does not implicitly {@link google.cloud.gkemulticloud.v1.AzureServicesAuthentication.verify|verify} messages. + * @param message AzureServicesAuthentication message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gkemulticloud.v1.IAzureServicesAuthentication, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AzureServicesAuthentication message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AzureServicesAuthentication + * @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.gkemulticloud.v1.AzureServicesAuthentication; + + /** + * Decodes an AzureServicesAuthentication message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AzureServicesAuthentication + * @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.gkemulticloud.v1.AzureServicesAuthentication; + + /** + * Verifies an AzureServicesAuthentication 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 an AzureServicesAuthentication message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AzureServicesAuthentication + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gkemulticloud.v1.AzureServicesAuthentication; + + /** + * Creates a plain object from an AzureServicesAuthentication message. Also converts values to other types if specified. + * @param message AzureServicesAuthentication + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gkemulticloud.v1.AzureServicesAuthentication, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AzureServicesAuthentication to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AzureServicesAuthentication + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AzureClusterUser. */ interface IAzureClusterUser { diff --git a/packages/google-cloud-gkemulticloud/protos/protos.js b/packages/google-cloud-gkemulticloud/protos/protos.js index 031d079c4910..9464bf043bcc 100644 --- a/packages/google-cloud-gkemulticloud/protos/protos.js +++ b/packages/google-cloud-gkemulticloud/protos/protos.js @@ -17714,6 +17714,7 @@ * @property {google.cloud.gkemulticloud.v1.IAzureClusterNetworking|null} [networking] AzureCluster networking * @property {google.cloud.gkemulticloud.v1.IAzureControlPlane|null} [controlPlane] AzureCluster controlPlane * @property {google.cloud.gkemulticloud.v1.IAzureAuthorization|null} [authorization] AzureCluster authorization + * @property {google.cloud.gkemulticloud.v1.IAzureServicesAuthentication|null} [azureServicesAuthentication] AzureCluster azureServicesAuthentication * @property {google.cloud.gkemulticloud.v1.AzureCluster.State|null} [state] AzureCluster state * @property {string|null} [endpoint] AzureCluster endpoint * @property {string|null} [uid] AzureCluster uid @@ -17812,6 +17813,14 @@ */ AzureCluster.prototype.authorization = null; + /** + * AzureCluster azureServicesAuthentication. + * @member {google.cloud.gkemulticloud.v1.IAzureServicesAuthentication|null|undefined} azureServicesAuthentication + * @memberof google.cloud.gkemulticloud.v1.AzureCluster + * @instance + */ + AzureCluster.prototype.azureServicesAuthentication = null; + /** * AzureCluster state. * @member {google.cloud.gkemulticloud.v1.AzureCluster.State} state @@ -17997,6 +18006,8 @@ $root.google.cloud.gkemulticloud.v1.Fleet.encode(message.fleet, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); if (message.managedResources != null && Object.hasOwnProperty.call(message, "managedResources")) $root.google.cloud.gkemulticloud.v1.AzureClusterResources.encode(message.managedResources, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.azureServicesAuthentication != null && Object.hasOwnProperty.call(message, "azureServicesAuthentication")) + $root.google.cloud.gkemulticloud.v1.AzureServicesAuthentication.encode(message.azureServicesAuthentication, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) $root.google.cloud.gkemulticloud.v1.LoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.errors != null && message.errors.length) @@ -18070,6 +18081,10 @@ message.authorization = $root.google.cloud.gkemulticloud.v1.AzureAuthorization.decode(reader, reader.uint32()); break; } + case 22: { + message.azureServicesAuthentication = $root.google.cloud.gkemulticloud.v1.AzureServicesAuthentication.decode(reader, reader.uint32()); + break; + } case 7: { message.state = reader.int32(); break; @@ -18216,6 +18231,11 @@ if (error) return "authorization." + error; } + if (message.azureServicesAuthentication != null && message.hasOwnProperty("azureServicesAuthentication")) { + var error = $root.google.cloud.gkemulticloud.v1.AzureServicesAuthentication.verify(message.azureServicesAuthentication); + if (error) + return "azureServicesAuthentication." + error; + } if (message.state != null && message.hasOwnProperty("state")) switch (message.state) { default: @@ -18336,6 +18356,11 @@ throw TypeError(".google.cloud.gkemulticloud.v1.AzureCluster.authorization: object expected"); message.authorization = $root.google.cloud.gkemulticloud.v1.AzureAuthorization.fromObject(object.authorization); } + if (object.azureServicesAuthentication != null) { + if (typeof object.azureServicesAuthentication !== "object") + throw TypeError(".google.cloud.gkemulticloud.v1.AzureCluster.azureServicesAuthentication: object expected"); + message.azureServicesAuthentication = $root.google.cloud.gkemulticloud.v1.AzureServicesAuthentication.fromObject(object.azureServicesAuthentication); + } switch (object.state) { default: if (typeof object.state === "number") { @@ -18474,6 +18499,7 @@ object.clusterCaCertificate = ""; object.fleet = null; object.managedResources = null; + object.azureServicesAuthentication = null; object.loggingConfig = null; object.monitoringConfig = null; } @@ -18521,6 +18547,8 @@ object.fleet = $root.google.cloud.gkemulticloud.v1.Fleet.toObject(message.fleet, options); if (message.managedResources != null && message.hasOwnProperty("managedResources")) object.managedResources = $root.google.cloud.gkemulticloud.v1.AzureClusterResources.toObject(message.managedResources, options); + if (message.azureServicesAuthentication != null && message.hasOwnProperty("azureServicesAuthentication")) + object.azureServicesAuthentication = $root.google.cloud.gkemulticloud.v1.AzureServicesAuthentication.toObject(message.azureServicesAuthentication, options); if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) object.loggingConfig = $root.google.cloud.gkemulticloud.v1.LoggingConfig.toObject(message.loggingConfig, options); if (message.errors && message.errors.length) { @@ -20534,10 +20562,12 @@ * @property {string|null} [name] AzureClient name * @property {string|null} [tenantId] AzureClient tenantId * @property {string|null} [applicationId] AzureClient applicationId + * @property {boolean|null} [reconciling] AzureClient reconciling * @property {Object.|null} [annotations] AzureClient annotations * @property {string|null} [pemCertificate] AzureClient pemCertificate * @property {string|null} [uid] AzureClient uid * @property {google.protobuf.ITimestamp|null} [createTime] AzureClient createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] AzureClient updateTime */ /** @@ -20580,6 +20610,14 @@ */ AzureClient.prototype.applicationId = ""; + /** + * AzureClient reconciling. + * @member {boolean} reconciling + * @memberof google.cloud.gkemulticloud.v1.AzureClient + * @instance + */ + AzureClient.prototype.reconciling = false; + /** * AzureClient annotations. * @member {Object.} annotations @@ -20612,6 +20650,14 @@ */ AzureClient.prototype.createTime = null; + /** + * AzureClient updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.gkemulticloud.v1.AzureClient + * @instance + */ + AzureClient.prototype.updateTime = null; + /** * Creates a new AzureClient instance using the specified properties. * @function create @@ -20651,6 +20697,10 @@ if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations")) for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + if (message.reconciling != null && Object.hasOwnProperty.call(message, "reconciling")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.reconciling); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -20697,6 +20747,10 @@ message.applicationId = reader.string(); break; } + case 9: { + message.reconciling = reader.bool(); + break; + } case 8: { if (message.annotations === $util.emptyObject) message.annotations = {}; @@ -20732,6 +20786,10 @@ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 10: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -20776,6 +20834,9 @@ if (message.applicationId != null && message.hasOwnProperty("applicationId")) if (!$util.isString(message.applicationId)) return "applicationId: string expected"; + if (message.reconciling != null && message.hasOwnProperty("reconciling")) + if (typeof message.reconciling !== "boolean") + return "reconciling: boolean expected"; if (message.annotations != null && message.hasOwnProperty("annotations")) { if (!$util.isObject(message.annotations)) return "annotations: object expected"; @@ -20795,6 +20856,11 @@ if (error) return "createTime." + error; } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; @@ -20816,6 +20882,8 @@ message.tenantId = String(object.tenantId); if (object.applicationId != null) message.applicationId = String(object.applicationId); + if (object.reconciling != null) + message.reconciling = Boolean(object.reconciling); if (object.annotations) { if (typeof object.annotations !== "object") throw TypeError(".google.cloud.gkemulticloud.v1.AzureClient.annotations: object expected"); @@ -20832,6 +20900,11 @@ throw TypeError(".google.cloud.gkemulticloud.v1.AzureClient.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.gkemulticloud.v1.AzureClient.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } return message; }; @@ -20857,6 +20930,8 @@ object.uid = ""; object.createTime = null; object.pemCertificate = ""; + object.reconciling = false; + object.updateTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -20876,6 +20951,10 @@ for (var j = 0; j < keys2.length; ++j) object.annotations[keys2[j]] = message.annotations[keys2[j]]; } + if (message.reconciling != null && message.hasOwnProperty("reconciling")) + object.reconciling = message.reconciling; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; @@ -21132,6 +21211,233 @@ return AzureAuthorization; })(); + v1.AzureServicesAuthentication = (function() { + + /** + * Properties of an AzureServicesAuthentication. + * @memberof google.cloud.gkemulticloud.v1 + * @interface IAzureServicesAuthentication + * @property {string|null} [tenantId] AzureServicesAuthentication tenantId + * @property {string|null} [applicationId] AzureServicesAuthentication applicationId + */ + + /** + * Constructs a new AzureServicesAuthentication. + * @memberof google.cloud.gkemulticloud.v1 + * @classdesc Represents an AzureServicesAuthentication. + * @implements IAzureServicesAuthentication + * @constructor + * @param {google.cloud.gkemulticloud.v1.IAzureServicesAuthentication=} [properties] Properties to set + */ + function AzureServicesAuthentication(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]]; + } + + /** + * AzureServicesAuthentication tenantId. + * @member {string} tenantId + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @instance + */ + AzureServicesAuthentication.prototype.tenantId = ""; + + /** + * AzureServicesAuthentication applicationId. + * @member {string} applicationId + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @instance + */ + AzureServicesAuthentication.prototype.applicationId = ""; + + /** + * Creates a new AzureServicesAuthentication instance using the specified properties. + * @function create + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @static + * @param {google.cloud.gkemulticloud.v1.IAzureServicesAuthentication=} [properties] Properties to set + * @returns {google.cloud.gkemulticloud.v1.AzureServicesAuthentication} AzureServicesAuthentication instance + */ + AzureServicesAuthentication.create = function create(properties) { + return new AzureServicesAuthentication(properties); + }; + + /** + * Encodes the specified AzureServicesAuthentication message. Does not implicitly {@link google.cloud.gkemulticloud.v1.AzureServicesAuthentication.verify|verify} messages. + * @function encode + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @static + * @param {google.cloud.gkemulticloud.v1.IAzureServicesAuthentication} message AzureServicesAuthentication message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AzureServicesAuthentication.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tenantId != null && Object.hasOwnProperty.call(message, "tenantId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tenantId); + if (message.applicationId != null && Object.hasOwnProperty.call(message, "applicationId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.applicationId); + return writer; + }; + + /** + * Encodes the specified AzureServicesAuthentication message, length delimited. Does not implicitly {@link google.cloud.gkemulticloud.v1.AzureServicesAuthentication.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @static + * @param {google.cloud.gkemulticloud.v1.IAzureServicesAuthentication} message AzureServicesAuthentication message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AzureServicesAuthentication.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AzureServicesAuthentication message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gkemulticloud.v1.AzureServicesAuthentication} AzureServicesAuthentication + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AzureServicesAuthentication.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gkemulticloud.v1.AzureServicesAuthentication(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.tenantId = reader.string(); + break; + } + case 2: { + message.applicationId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AzureServicesAuthentication message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gkemulticloud.v1.AzureServicesAuthentication} AzureServicesAuthentication + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AzureServicesAuthentication.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AzureServicesAuthentication message. + * @function verify + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AzureServicesAuthentication.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tenantId != null && message.hasOwnProperty("tenantId")) + if (!$util.isString(message.tenantId)) + return "tenantId: string expected"; + if (message.applicationId != null && message.hasOwnProperty("applicationId")) + if (!$util.isString(message.applicationId)) + return "applicationId: string expected"; + return null; + }; + + /** + * Creates an AzureServicesAuthentication message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gkemulticloud.v1.AzureServicesAuthentication} AzureServicesAuthentication + */ + AzureServicesAuthentication.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gkemulticloud.v1.AzureServicesAuthentication) + return object; + var message = new $root.google.cloud.gkemulticloud.v1.AzureServicesAuthentication(); + if (object.tenantId != null) + message.tenantId = String(object.tenantId); + if (object.applicationId != null) + message.applicationId = String(object.applicationId); + return message; + }; + + /** + * Creates a plain object from an AzureServicesAuthentication message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @static + * @param {google.cloud.gkemulticloud.v1.AzureServicesAuthentication} message AzureServicesAuthentication + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AzureServicesAuthentication.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.tenantId = ""; + object.applicationId = ""; + } + if (message.tenantId != null && message.hasOwnProperty("tenantId")) + object.tenantId = message.tenantId; + if (message.applicationId != null && message.hasOwnProperty("applicationId")) + object.applicationId = message.applicationId; + return object; + }; + + /** + * Converts this AzureServicesAuthentication to JSON. + * @function toJSON + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @instance + * @returns {Object.} JSON object + */ + AzureServicesAuthentication.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AzureServicesAuthentication + * @function getTypeUrl + * @memberof google.cloud.gkemulticloud.v1.AzureServicesAuthentication + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AzureServicesAuthentication.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gkemulticloud.v1.AzureServicesAuthentication"; + }; + + return AzureServicesAuthentication; + })(); + v1.AzureClusterUser = (function() { /** diff --git a/packages/google-cloud-gkemulticloud/protos/protos.json b/packages/google-cloud-gkemulticloud/protos/protos.json index d13e1e6c2ff9..d2d05431db87 100644 --- a/packages/google-cloud-gkemulticloud/protos/protos.json +++ b/packages/google-cloud-gkemulticloud/protos/protos.json @@ -2147,7 +2147,7 @@ "type": "string", "id": 16, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OPTIONAL" } }, "networking": { @@ -2171,6 +2171,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "azureServicesAuthentication": { + "type": "AzureServicesAuthentication", + "id": 22, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "state": { "type": "State", "id": 7, @@ -2508,6 +2515,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "reconciling": { + "type": "bool", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "annotations": { "keyType": "string", "type": "string", @@ -2536,6 +2550,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -2551,6 +2572,24 @@ } } }, + "AzureServicesAuthentication": { + "fields": { + "tenantId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "applicationId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "AzureClusterUser": { "fields": { "username": { diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.delete_attached_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.delete_attached_cluster.js index 892643581053..8fdb0ae29fed 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.delete_attached_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.delete_attached_cluster.js @@ -34,7 +34,7 @@ function main(name) { * `AttachedCluster` names are formatted as * `projects//locations//attachedClusters/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const name = 'abc123' /** diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_install_manifest.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_install_manifest.js index 2331be72c20b..cc1f1e59083b 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_install_manifest.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.generate_attached_cluster_install_manifest.js @@ -38,7 +38,7 @@ function main(parent, attachedClusterId, platformVersion) { */ // const parent = 'abc123' /** - * Required. A client provided ID the resource. Must be unique within the + * Required. A client provided ID of the resource. Must be unique within the * parent resource. * The provided ID will be part of the * AttachedCluster google.cloud.gkemulticloud.v1.AttachedCluster resource @@ -47,7 +47,7 @@ function main(parent, attachedClusterId, platformVersion) { * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * When generating an install manifest for importing an existing Membership * resource, the attached_cluster_id field must be the Membership id. - * Membership names are formatted as `resource name formatted as + * Membership names are formatted as * `projects//locations//memberships/`. */ // const attachedClusterId = 'abc123' diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_cluster.js index 5a0c427ecb61..5e265334d16c 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.get_attached_cluster.js @@ -35,7 +35,7 @@ function main(name) { * `AttachedCluster` names are formatted as * `projects//locations//attachedClusters/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const name = 'abc123' diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.list_attached_clusters.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.list_attached_clusters.js index c4286bb196a8..86d76f8626cd 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.list_attached_clusters.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/attached_clusters.list_attached_clusters.js @@ -33,7 +33,7 @@ function main(parent) { * AttachedCluster google.cloud.gkemulticloud.v1.AttachedCluster resources. * Location names are formatted as `projects//locations/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const parent = 'abc123' /** diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_cluster.js index b05b022f474e..9059ef970906 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.delete_aws_cluster.js @@ -34,7 +34,7 @@ function main(name) { * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const name = 'abc123' /** diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_cluster.js index c257102b1666..a8bb79ab9351 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.get_aws_cluster.js @@ -35,7 +35,7 @@ function main(name) { * `AwsCluster` names are formatted as * `projects//locations//awsClusters/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const name = 'abc123' diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_clusters.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_clusters.js index 1bab96c188fb..af8dedecf15e 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_clusters.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/aws_clusters.list_aws_clusters.js @@ -33,7 +33,7 @@ function main(parent) { * AwsCluster google.cloud.gkemulticloud.v1.AwsCluster resources. * Location names are formatted as `projects//locations/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const parent = 'abc123' /** diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_cluster.js index 30383a904158..b2dbf072f6f3 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.delete_azure_cluster.js @@ -34,7 +34,7 @@ function main(name) { * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const name = 'abc123' /** diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_cluster.js index c7fec8a73e62..f575dfb7fef5 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.get_azure_cluster.js @@ -35,7 +35,7 @@ function main(name) { * `AzureCluster` names are formatted as * `projects//locations//azureClusters/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const name = 'abc123' diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clients.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clients.js index 7b7f1e133180..15ce045ff7ec 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clients.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clients.js @@ -33,7 +33,7 @@ function main(parent) { * AzureClient google.cloud.gkemulticloud.v1.AzureClient resources. * Location names are formatted as `projects//locations/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const parent = 'abc123' /** diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clusters.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clusters.js index 8ee4cb2d3919..61ee406c1eef 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clusters.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.list_azure_clusters.js @@ -33,7 +33,7 @@ function main(parent) { * AzureCluster google.cloud.gkemulticloud.v1.AzureCluster resources. * Location names are formatted as `projects//locations/`. * See Resource Names (https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. */ // const parent = 'abc123' /** diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_cluster.js b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_cluster.js index c27412bbbc7c..f506e9ee86bf 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_cluster.js +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/azure_clusters.update_azure_cluster.js @@ -48,6 +48,9 @@ function main(azureCluster, updateMask) { * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. + * * `azure_services_authentication`. + * * `azure_services_authentication.tenant_id`. + * * `azure_services_authentication.application_id`. * * `control_plane.proxy_config`. * * `control_plane.proxy_config.resource_group_id`. * * `control_plane.proxy_config.secret_id`. diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata.google.cloud.gkemulticloud.v1.json b/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata.google.cloud.gkemulticloud.v1.json index 218c0a165e2f..b8ba778ad025 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata.google.cloud.gkemulticloud.v1.json +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata.google.cloud.gkemulticloud.v1.json @@ -15,7 +15,7 @@ "regionTag": "gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_async", "title": "AttachedClusters createAttachedCluster Sample", "origin": "API_DEFINITION", - "description": " Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a given GCP project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", + "description": " Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a given Google Cloud Platform project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", "canonical": true, "file": "attached_clusters.create_attached_cluster.js", "language": "JAVASCRIPT", @@ -403,7 +403,7 @@ "regionTag": "gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_async", "title": "AttachedClusters createAwsCluster Sample", "origin": "API_DEFINITION", - "description": " Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given GCP project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", + "description": " Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given Google Cloud Platform project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", "canonical": true, "file": "aws_clusters.create_aws_cluster.js", "language": "JAVASCRIPT", @@ -1151,7 +1151,7 @@ "regionTag": "gkemulticloud_v1_generated_AzureClusters_CreateAzureCluster_async", "title": "AttachedClusters createAzureCluster Sample", "origin": "API_DEFINITION", - "description": " Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given GCP project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", + "description": " Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given Google Cloud Platform project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", "canonical": true, "file": "azure_clusters.create_azure_cluster.js", "language": "JAVASCRIPT", @@ -1210,7 +1210,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], diff --git a/packages/google-cloud-gkemulticloud/src/v1/attached_clusters_client.ts b/packages/google-cloud-gkemulticloud/src/v1/attached_clusters_client.ts index d75d86a04475..b8e8d04eaaed 100644 --- a/packages/google-cloud-gkemulticloud/src/v1/attached_clusters_client.ts +++ b/packages/google-cloud-gkemulticloud/src/v1/attached_clusters_client.ts @@ -474,7 +474,7 @@ export class AttachedClustersClient { * `projects//locations//attachedClusters/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -690,7 +690,7 @@ export class AttachedClustersClient { * See [Resource Names](https://cloud.google.com/apis/design/resource_names) * for more details on Google Cloud resource names. * @param {string} request.attachedClusterId - * Required. A client provided ID the resource. Must be unique within the + * Required. A client provided ID of the resource. Must be unique within the * parent resource. * * The provided ID will be part of the @@ -703,7 +703,7 @@ export class AttachedClustersClient { * When generating an install manifest for importing an existing Membership * resource, the attached_cluster_id field must be the Membership id. * - * Membership names are formatted as `resource name formatted as + * Membership names are formatted as * `projects//locations//memberships/`. * @param {string} request.platformVersion * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). @@ -809,7 +809,7 @@ export class AttachedClustersClient { /** * Creates a new * {@link google.cloud.gkemulticloud.v1.AttachedCluster|AttachedCluster} resource - * on a given GCP project and region. + * on a given Google Cloud Platform project and region. * * If successful, the response contains a newly created * {@link google.longrunning.Operation|Operation} resource that can be @@ -1313,7 +1313,7 @@ export class AttachedClustersClient { * `projects//locations//attachedClusters/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {boolean} request.validateOnly * If set, only validate the request, but do not actually delete the resource. * @param {boolean} request.allowMissing @@ -1481,7 +1481,7 @@ export class AttachedClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * @@ -1593,7 +1593,7 @@ export class AttachedClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * @@ -1653,7 +1653,7 @@ export class AttachedClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * diff --git a/packages/google-cloud-gkemulticloud/src/v1/aws_clusters_client.ts b/packages/google-cloud-gkemulticloud/src/v1/aws_clusters_client.ts index 968f953399f7..96ecda7c337f 100644 --- a/packages/google-cloud-gkemulticloud/src/v1/aws_clusters_client.ts +++ b/packages/google-cloud-gkemulticloud/src/v1/aws_clusters_client.ts @@ -496,7 +496,7 @@ export class AwsClustersClient { * `projects//locations//awsClusters/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -900,7 +900,7 @@ export class AwsClustersClient { /** * Creates a new {@link google.cloud.gkemulticloud.v1.AwsCluster|AwsCluster} - * resource on a given GCP project and region. + * resource on a given Google Cloud Platform project and region. * * If successful, the response contains a newly created * {@link google.longrunning.Operation|Operation} resource that can be @@ -1253,7 +1253,7 @@ export class AwsClustersClient { * `projects//locations//awsClusters/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {boolean} request.validateOnly * If set, only validate the request, but do not actually delete the resource. * @param {boolean} request.allowMissing @@ -1917,7 +1917,7 @@ export class AwsClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * @@ -2029,7 +2029,7 @@ export class AwsClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * @@ -2089,7 +2089,7 @@ export class AwsClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * diff --git a/packages/google-cloud-gkemulticloud/src/v1/azure_clusters_client.ts b/packages/google-cloud-gkemulticloud/src/v1/azure_clusters_client.ts index 51a8754a26f5..1ba92c71483d 100644 --- a/packages/google-cloud-gkemulticloud/src/v1/azure_clusters_client.ts +++ b/packages/google-cloud-gkemulticloud/src/v1/azure_clusters_client.ts @@ -628,7 +628,7 @@ export class AzureClustersClient { * `projects//locations//azureClusters/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1364,7 +1364,7 @@ export class AzureClustersClient { } /** * Creates a new {@link google.cloud.gkemulticloud.v1.AzureCluster|AzureCluster} - * resource on a given GCP project and region. + * resource on a given Google Cloud Platform project and region. * * If successful, the response contains a newly created * {@link google.longrunning.Operation|Operation} resource that can be @@ -1549,6 +1549,9 @@ export class AzureClustersClient { * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. + * * `azure_services_authentication`. + * * `azure_services_authentication.tenant_id`. + * * `azure_services_authentication.application_id`. * * `control_plane.proxy_config`. * * `control_plane.proxy_config.resource_group_id`. * * `control_plane.proxy_config.secret_id`. @@ -1707,7 +1710,7 @@ export class AzureClustersClient { * `projects//locations//azureClusters/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {boolean} request.allowMissing * If set to true, and the * {@link google.cloud.gkemulticloud.v1.AzureCluster|AzureCluster} resource is not @@ -2355,7 +2358,7 @@ export class AzureClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * @@ -2467,7 +2470,7 @@ export class AzureClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * @@ -2527,7 +2530,7 @@ export class AzureClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * @@ -2587,7 +2590,7 @@ export class AzureClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * @@ -2699,7 +2702,7 @@ export class AzureClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * @@ -2759,7 +2762,7 @@ export class AzureClustersClient { * Location names are formatted as `projects//locations/`. * * See [Resource Names](https://cloud.google.com/apis/design/resource_names) - * for more details on GCP resource names. + * for more details on Google Cloud Platform resource names. * @param {number} request.pageSize * The maximum number of items to return. * From eb35fda1368f28f51440e548eae3599c17e7112b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 2 Feb 2023 16:15:31 -0800 Subject: [PATCH 11/38] docs: [container] Improve `version` documentation for `NodePool` (#3926) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Improve `version` documentation for `NodePool` PiperOrigin-RevId: 506627554 Source-Link: https://github.com/googleapis/googleapis/commit/666a551b6900359140c0b394ab8b6ac0e1736da2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e666add3b7a5b2b9cf21d4f2b70026da361664d9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiZTY2NmFkZDNiN2E1YjJiOWNmMjFkNGYyYjcwMDI2ZGEzNjE2NjRkOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../protos/google/container/v1beta1/cluster_service.proto | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/google-container/protos/google/container/v1beta1/cluster_service.proto b/packages/google-container/protos/google/container/v1beta1/cluster_service.proto index 24922ac0a23a..fee552d5f29c 100644 --- a/packages/google-container/protos/google/container/v1beta1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1beta1/cluster_service.proto @@ -3456,7 +3456,9 @@ message NodePool { // [Output only] Server-defined URL for the resource. string self_link = 100; - // The version of the Kubernetes of this node. + // The version of Kubernetes running on this NodePool's nodes. If unspecified, + // it defaults as described + // [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). string version = 101; // [Output only] The resource URLs of the [managed instance @@ -3850,8 +3852,7 @@ message AutoprovisioningNodePoolDefaults { // information, read [how to specify min CPU // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). // This field is deprecated, min_cpu_platform should be specified using - // https://cloud.google.com/requested-min-cpu-platform label selector on the - // pod. + // `cloud.google.com/requested-min-cpu-platform` label selector on the pod. // To unset the min cpu platform field pass "automatic" // as field value. string min_cpu_platform = 5 [deprecated = true]; From 8034fe154ecbc96b11106f565bcb90ed4cdaccc5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 2 Feb 2023 16:28:36 -0800 Subject: [PATCH 12/38] docs: [optimization] clarification for deprecated fields (#3927) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: clarification for deprecated fields PiperOrigin-RevId: 506637342 Source-Link: https://github.com/googleapis/googleapis/commit/98213939f37659fac7370a3c5fe250336a54f82f Source-Link: https://github.com/googleapis/googleapis-gen/commit/d9d93e022548947045bef32a4245e3ba5c936808 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9wdGltaXphdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiZDlkOTNlMDIyNTQ4OTQ3MDQ1YmVmMzJhNDI0NWUzYmE1YzkzNjgwOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../cloud/optimization/v1/fleet_routing.proto | 150 +++++--- .../v1/fleet_routing.optimize_tours.js | 2 +- .../src/v1/fleet_routing_client.ts | 181 +++++++++- .../test/gapic_fleet_routing_v1.ts | 328 ++++++++++++++++++ 4 files changed, 605 insertions(+), 56 deletions(-) diff --git a/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/fleet_routing.proto b/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/fleet_routing.proto index a00d1b78135b..4ede3ad43700 100644 --- a/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/fleet_routing.proto +++ b/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/fleet_routing.proto @@ -165,7 +165,7 @@ message OptimizeToursRequest { // By default, the solving mode is `DEFAULT_SOLVE` (0). SolvingMode solving_mode = 4; - // Truncates the number of validation errors returned. Those errors are + // Truncates the number of validation errors returned. These errors are // typically attached to an INVALID_ARGUMENT error payload as a BadRequest // error detail (https://cloud.google.com/apis/design/errors#error_details), // unless solving_mode=VALIDATE_ONLY: see the @@ -343,7 +343,8 @@ message OptimizeToursRequest { // [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label]. string label = 17; - // Deprecated: Use [OptimizeToursRequest.populate_transition_polylines][] + // Deprecated: Use + // [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] // instead. If true, polylines will be populated in response // [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]. // Note that in this case, the polylines will also be populated in the @@ -417,10 +418,11 @@ message OptimizeToursResponse { // Duration, distance and usage metrics for this solution. Metrics metrics = 6; - // Deprecated: Use [Metrics.total_cost][] instead. - // Total cost of the solution. This takes into account all costs: costs per - // per hour and travel hour, fixed vehicle costs, unperformed shipment penalty - // costs, global duration cost, etc. + // Deprecated: Use + // [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost] + // instead. Total cost of the solution. This takes into account all costs: + // costs per per hour and travel hour, fixed vehicle costs, unperformed + // shipment penalty costs, global duration cost, etc. double total_cost = 2 [deprecated = true]; } @@ -537,7 +539,8 @@ message ShipmentModel { google.protobuf.Duration offset_duration = 5; } - // Deprecated: Use top level [BreakRule][] instead. + // Deprecated: Use top level + // [BreakRule][google.cloud.optimization.v1.ShipmentModel.BreakRule] instead. // Rules to generate time breaks for a vehicle (e.g. lunch // breaks). A break is a contiguous period of time during which the vehicle // remains idle at its current position and cannot perform any visit. A break @@ -545,10 +548,10 @@ message ShipmentModel { // // * during the travel between two visits (which includes the time right // before or right after a visit, but not in the middle of a visit), in - // which case it extends the corresponding transit time between the visits, - // * or before the vehicle start (the vehicle may not start in the middle of + // which case it extends the corresponding transit time between the visits + // * before the vehicle start (the vehicle may not start in the middle of // a break), in which case it does not affect the vehicle start time. - // * or after the vehicle end (ditto, with the vehicle end time). + // * after the vehicle end (ditto, with the vehicle end time). message BreakRule { option deprecated = true; @@ -890,7 +893,9 @@ message Shipment { // [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit]. string label = 11; - // Deprecated: Use [VisitRequest.load_demands][] instead. + // Deprecated: Use + // [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] + // instead. repeated CapacityQuantity demands = 9 [deprecated = true]; } @@ -1027,7 +1032,9 @@ message Shipment { // `precedence_rules` that reference ignored shipments will also be ignored. bool ignore = 13; - // Deprecated: Use [Shipment.load_demands][] instead. + // Deprecated: Use + // [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] + // instead. repeated CapacityQuantity demands = 3 [deprecated = true]; } @@ -1430,20 +1437,26 @@ message Vehicle { // Deprecated: No longer used. // Indices in the `break_rule` field in the source - // [ShipmentModel][]. They correspond to break rules enforced on the vehicle. - // + // [ShipmentModel][google.cloud.optimization.v1.ShipmentModel]. They + // correspond to break rules enforced on the vehicle. // // As of 2018/03, at most one rule index per vehicle can be specified. repeated int32 break_rule_indices = 29 [deprecated = true]; - // Deprecated: Use [Vehicle.load_limits][] instead. + // Deprecated: Use + // [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] + // instead. repeated CapacityQuantity capacities = 13 [deprecated = true]; - // Deprecated: Use [Vehicle.LoadLimit.start_load_interval][] instead. + // Deprecated: Use + // [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] + // instead. repeated CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - // Deprecated: Use [Vehicle.LoadLimit.end_load_interval][] instead. + // Deprecated: Use + // [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] + // instead. repeated CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; } @@ -1510,8 +1523,9 @@ message TimeWindow { optional double cost_per_hour_after_soft_end_time = 6; } -// Deprecated: Use [Shipment.Load][], [Vehicle.LoadLimit][] and -// [ShipmentRoute.VehicleLoad][] instead. +// Deprecated: Use +// [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval] +// instead. message CapacityQuantity { option deprecated = true; @@ -1520,7 +1534,9 @@ message CapacityQuantity { int64 value = 2; } -// Deprecated: Use [Vehicle.LoadLimit.Interval][] instead. +// Deprecated: Use +// [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval] +// instead. message CapacityQuantityInterval { option deprecated = true; @@ -1549,8 +1565,8 @@ message DistanceLimit { // nonnegative. optional int64 soft_max_meters = 2; - // Cost per kilometer incurred if `soft_max_meters` limit is violated. The - // additional cost is 0 if the distance is under the limit, otherwise the + // Cost per kilometer incurred if distance is above `soft_max_meters` limit. + // The additional cost is 0 if the distance is under the limit, otherwise the // formula used to compute the cost is the following: // ``` // (distance_meters - soft_max_meters) / 1000.0 * @@ -1816,8 +1832,9 @@ message BreakRule { // --++-----------------------------------------------------------------++--> // ``` message ShipmentRoute { - // Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead. - // Time interval spent on the route resulting from a + // Deprecated: Use + // [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] + // instead. Time interval spent on the route resulting from a // [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay]. message Delay { option deprecated = true; @@ -1882,9 +1899,10 @@ message ShipmentRoute { // if specified in the `VisitRequest`. string visit_label = 8; - // Deprecated: Use [ShipmentRoute.Transition.loads][] instead. - // Vehicle loads upon arrival at the visit location, for each - // type specified in + // Deprecated: Use + // [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] + // instead. Vehicle loads upon arrival at the visit location, for each type + // specified in // [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], // `start_load_intervals`, `end_load_intervals` or `demands`. // @@ -1892,10 +1910,14 @@ message ShipmentRoute { // and that don't have any non-zero demand on the route. repeated CapacityQuantity arrival_loads = 9 [deprecated = true]; - // Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead. + // Deprecated: Use + // [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] + // instead. Delay occurring before the visit starts. Delay delay_before_start = 10 [deprecated = true]; - // Deprecated: Use [Visit.load_demands][] instead. + // Deprecated: Use + // [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] + // instead. repeated CapacityQuantity demands = 5 [deprecated = true]; } @@ -1968,7 +1990,9 @@ message ShipmentRoute { // on whether the visit was a pickup or a delivery. map vehicle_loads = 11; - // Deprecated: Use [Transition.vehicle_loads][] instead. + // Deprecated: Use + // [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] + // instead. repeated CapacityQuantity loads = 10 [deprecated = true]; } @@ -2000,10 +2024,11 @@ message ShipmentRoute { google.protobuf.Duration duration = 2; } - // Deprecated: Use [ShipmentRoute.transitions][] instead. - // Travel between each visit, along the route: from the - // vehicle's `start_location` to the first visit's `arrival_location`, then - // from the first visit's `departure_location` to the second visit's + // Deprecated: Use + // [ShipmentRoute.Transition][google.cloud.optimization.v1.ShipmentRoute.Transition] + // instead. Travel between each visit along the route: from the vehicle's + // `start_location` to the first visit's `arrival_location`, then from the + // first visit's `departure_location` to the second visit's // `arrival_location`, and so on until the vehicle's `end_location`. This // accounts only for the actual travel between visits, not counting the // waiting time, the time spent performing a visit, nor the distance covered @@ -2113,30 +2138,34 @@ message ShipmentRoute { // Total cost of the route. The sum of all costs in the cost map. double route_total_cost = 18; - // Deprecated: Use [ShipmentRoute.Transition.loads][] instead. - // Vehicle loads upon arrival at its end location, for each - // type specified in + // Deprecated: Use + // [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] + // instead. Vehicle loads upon arrival at its end location, for each type + // specified in // [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], // `start_load_intervals`, `end_load_intervals` or demands. Exception: we omit // loads for quantity types unconstrained by intervals and that don't have any // non-zero demand on the route. repeated CapacityQuantity end_loads = 13 [deprecated = true]; - // Deprecated: Use [ShipmentRoute.Transition][] instead. - // Ordered list of travel steps for the route. + // Deprecated: Use + // [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions] + // instead. Ordered list of travel steps for the route. repeated TravelStep travel_steps = 14 [deprecated = true]; // Deprecated: No longer used. // This field will only be populated at the // [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit] - // level. Extra detour time due to the shipments visited on the route. + // level. + // + // This field is the extra detour time due to the shipments visited on the + // route. // // It is equal to `vehicle_end_time` - `vehicle_start_time` - travel duration // from the vehicle's start_location to its `end_location`. google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - // Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead. - // Delay occurring before the vehicle end. See + // Deprecated: Delay occurring before the vehicle end. See // [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay]. Delay delay_before_vehicle_end = 16 [deprecated = true]; } @@ -2288,12 +2317,18 @@ message AggregatedMetrics { // [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads]. map max_loads = 9; - // Deprecated: Use [ShipmentRoute.route_costs][] and - // [OptimizeToursResponse.Metrics.costs][] instead. + // Deprecated: Use + // [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs] + // and + // [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs] + // instead. map costs = 10 [deprecated = true]; - // Deprecated: Use [ShipmentRoute.route_total_cost][] and - // [OptimizeToursResponse.Metrics.total_cost][] instead. + // Deprecated: Use + // [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost] + // and + // [OptimizeToursResponse.Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost] + // instead. double total_cost = 11 [deprecated = true]; } @@ -2342,7 +2377,7 @@ message InjectedSolutionConstraint { // relaxation the time is fixed, unless the vehicle is empty. message Relaxation { // Expresses the different constraint relaxation levels, which are - // applied for a visit and those that follow when it satifies the + // applied for a visit and those that follow when it satisfies the // threshold conditions. // // The enumeration below is in order of increasing relaxation. @@ -2350,7 +2385,7 @@ message InjectedSolutionConstraint { // Implicit default relaxation level: no constraints are relaxed, // i.e., all visits are fully constrained. // - // This value must not be explicly used in `level`. + // This value must not be explicitly used in `level`. LEVEL_UNSPECIFIED = 0; // Visit start times and vehicle start/end times will be relaxed, but @@ -2371,7 +2406,7 @@ message InjectedSolutionConstraint { // The constraint relaxation level that applies when the conditions // at or after `threshold_time` AND at least `threshold_visit_count` are - // satified. + // satisfied. Level level = 1; // The time at or after which the relaxation `level` may be applied. @@ -2493,6 +2528,11 @@ message OptimizeToursValidationError { // * INJECTED_SOLUTION_MISSING_LABEL = 2000; // * INJECTED_SOLUTION_DUPLICATE_LABEL = 2001; // * INJECTED_SOLUTION_AMBIGUOUS_INDEX = 2002; + // * INJECTED_SOLUTION_INFEASIBLE_AFTER_GETTING_TRAVEL_TIMES = 2003; + // * INJECTED_SOLUTION_TRANSITION_INCONSISTENT_WITH_ACTUAL_TRAVEL = 2004; + // * INJECTED_SOLUTION_CONCURRENT_SOLUTION_TYPES = 2005; + // * INJECTED_SOLUTION_MORE_THAN_ONE_PER_TYPE = 2006; + // * INJECTED_SOLUTION_REFRESH_WITHOUT_POPULATE = 2008; // * SHIPMENT_MODEL_ERROR = 22; // * SHIPMENT_MODEL_TOO_LARGE = 2200; // * SHIPMENT_MODEL_TOO_MANY_CAPACITY_TYPES = 2201; @@ -2500,6 +2540,8 @@ message OptimizeToursValidationError { // * SHIPMENT_MODEL_GLOBAL_END_TIME_TOO_LARGE_OR_NAN = 2203; // * SHIPMENT_MODEL_GLOBAL_START_TIME_AFTER_GLOBAL_END_TIME = 2204; // * SHIPMENT_MODEL_GLOBAL_DURATION_TOO_LONG = 2205; + // * SHIPMENT_MODEL_MAX_ACTIVE_VEHICLES_NOT_POSITIVE = 2206; + // * SHIPMENT_MODEL_DURATION_MATRIX_TOO_LARGE = 2207; // * INDEX_ERROR = 24; // * TAG_ERROR = 26; // * TIME_WINDOW_ERROR = 28; @@ -2581,9 +2623,12 @@ message OptimizeToursValidationError { // * DURATION_LIMIT_QUADRATIC_SOFT_MAX_DURATION_EXCEEDS_GLOBAL_DURATION // = 3815; // * SHIPMENT_ERROR = 40; + // * SHIPMENT_PD_LIMIT_WITHOUT_PICKUP_AND_DELIVERY = 4014; // * SHIPMENT_PD_ABSOLUTE_DETOUR_LIMIT_DURATION_NEGATIVE_OR_NAN = 4000; // * SHIPMENT_PD_ABSOLUTE_DETOUR_LIMIT_DURATION_EXCEEDS_GLOBAL_DURATION // = 4001; + // * SHIPMENT_PD_RELATIVE_DETOUR_LIMIT_INVALID = 4015; + // * SHIPMENT_PD_DETOUR_LIMIT_AND_EXTRA_VISIT_DURATION = 4016; // * SHIPMENT_PD_TIME_LIMIT_DURATION_NEGATIVE_OR_NAN = 4002; // * SHIPMENT_PD_TIME_LIMIT_DURATION_EXCEEDS_GLOBAL_DURATION = 4003; // * SHIPMENT_EMPTY_SHIPMENT_TYPE = 4004; @@ -2596,7 +2641,6 @@ message OptimizeToursValidationError { // * SHIPMENT_INVALID_COST_FOR_VEHICLE = 4011; // * SHIPMENT_COST_FOR_VEHICLE_INDEX_OUT_OF_BOUNDS = 4012; // * SHIPMENT_DUPLICATE_COST_FOR_VEHICLE_INDEX = 4013; - // * SHIPMENT_DETOUR_WITHOUT_PICKUP_AND_DELIVERY = 4014; // * VEHICLE_ERROR = 42; // * VEHICLE_EMPTY_REQUIRED_OPERATOR_TYPE = 4200; // * VEHICLE_DUPLICATE_REQUIRED_OPERATOR_TYPE = 4201; @@ -2620,6 +2664,9 @@ message OptimizeToursValidationError { // * VEHICLE_INVALID_COST_PER_TRAVELED_HOUR = 4219; // * VEHICLE_INVALID_FIXED_COST = 4220; // * VEHICLE_INVALID_TRAVEL_DURATION_MULTIPLE = 4221; + // * VEHICLE_TRAVEL_DURATION_MULTIPLE_WITH_SHIPMENT_PD_DETOUR_LIMITS + // = 4223; + // * VEHICLE_MATRIX_INDEX_WITH_SHIPMENT_PD_DETOUR_LIMITS = 4224; // * VEHICLE_MINIMUM_DURATION_LONGER_THAN_DURATION_LIMIT = 4222; // * VISIT_REQUEST_ERROR = 44; // * VISIT_REQUEST_EMPTY_TAG = 4400; @@ -2672,9 +2719,6 @@ message OptimizeToursValidationError { // * DURATION_SECONDS_MATRIX_ERROR = 56; // * DURATION_SECONDS_MATRIX_DURATION_NEGATIVE_OR_NAN = 5600; // * DURATION_SECONDS_MATRIX_DURATION_EXCEEDS_GLOBAL_DURATION = 5601; - // * GRAPH_ARC_ERROR = 58; - // * GRAPH_ARC_DURATION_NEGATIVE_OR_NAN = 5800; - // * GRAPH_ARC_DURATION_EXCEEDS_GLOBAL_DURATION = 5801; int32 code = 1; // The error display name. diff --git a/packages/google-cloud-optimization/samples/generated/v1/fleet_routing.optimize_tours.js b/packages/google-cloud-optimization/samples/generated/v1/fleet_routing.optimize_tours.js index 57865fb2f515..763fccf6b717 100644 --- a/packages/google-cloud-optimization/samples/generated/v1/fleet_routing.optimize_tours.js +++ b/packages/google-cloud-optimization/samples/generated/v1/fleet_routing.optimize_tours.js @@ -51,7 +51,7 @@ function main(parent) { */ // const solvingMode = {} /** - * Truncates the number of validation errors returned. Those errors are + * Truncates the number of validation errors returned. These errors are * typically attached to an INVALID_ARGUMENT error payload as a BadRequest * error detail (https://cloud.google.com/apis/design/errors#error_details), * unless solving_mode=VALIDATE_ONLY: see the diff --git a/packages/google-cloud-optimization/src/v1/fleet_routing_client.ts b/packages/google-cloud-optimization/src/v1/fleet_routing_client.ts index 4cd95bd8cf17..7e01b67d3e6f 100644 --- a/packages/google-cloud-optimization/src/v1/fleet_routing_client.ts +++ b/packages/google-cloud-optimization/src/v1/fleet_routing_client.ts @@ -396,7 +396,7 @@ export class FleetRoutingClient { * @param {google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode} request.solvingMode * By default, the solving mode is `DEFAULT_SOLVE` (0). * @param {number} request.maxValidationErrors - * Truncates the number of validation errors returned. Those errors are + * Truncates the number of validation errors returned. These errors are * typically attached to an INVALID_ARGUMENT error payload as a BadRequest * error detail (https://cloud.google.com/apis/design/errors#error_details), * unless solving_mode=VALIDATE_ONLY: see the @@ -561,7 +561,8 @@ export class FleetRoutingClient { * Label that may be used to identify this request, reported back in the * {@link google.cloud.optimization.v1.OptimizeToursResponse.request_label|OptimizeToursResponse.request_label}. * @param {boolean} request.populateTravelStepPolylines - * Deprecated: Use {@link |OptimizeToursRequest.populate_transition_polylines} + * Deprecated: Use + * {@link google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines|OptimizeToursRequest.populate_transition_polylines} * instead. If true, polylines will be populated in response * {@link google.cloud.optimization.v1.ShipmentRoute.transitions|ShipmentRoute.transitions}. * Note that in this case, the polylines will also be populated in the @@ -805,6 +806,182 @@ export class FleetRoutingClient { protos.google.cloud.optimization.v1.AsyncModelMetadata >; } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } /** * Terminate the gRPC channel and close the client. diff --git a/packages/google-cloud-optimization/test/gapic_fleet_routing_v1.ts b/packages/google-cloud-optimization/test/gapic_fleet_routing_v1.ts index 955c4923f95c..c2973c037ee3 100644 --- a/packages/google-cloud-optimization/test/gapic_fleet_routing_v1.ts +++ b/packages/google-cloud-optimization/test/gapic_fleet_routing_v1.ts @@ -96,6 +96,29 @@ function stubLongRunningCallWithCallback( : sinon.stub().callsArgWith(2, null, mockOperation); } +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + describe('v1.FleetRoutingClient', () => { describe('Common methods', () => { it('has servicePath', () => { @@ -517,4 +540,309 @@ describe('v1.FleetRoutingClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new fleetroutingModule.v1.FleetRoutingClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); }); From 1f144933dc9fffc9066a74b92f3c88c8f036af4b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 3 Feb 2023 11:41:11 -0500 Subject: [PATCH 13/38] chore: update import paths for Go targets to match open source location (#3922) PiperOrigin-RevId: 506405333 Source-Link: https://github.com/googleapis/googleapis/commit/c8a382b9980b59a241a561aef1599980209a5e87 Source-Link: https://github.com/googleapis/googleapis-gen/commit/655941e193fa93cbb2eac7ad5cd2b943b3cf287e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiNjU1OTQxZTE5M2ZhOTNjYmIyZWFjN2FkNWNkMmI5NDNiM2NmMjg3ZSJ9 chore: update import paths for Go targets to match open source location chore: update go_package in protos to match open source location chore: add explicit release levels to Go gapic targets PiperOrigin-RevId: 506711567 Source-Link: https://github.com/googleapis/googleapis/commit/d02e58244db5d01607ec2ad52a47e7edce8612f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7f1c54153125eb5abd60a32de58cfda6a798a70a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Benjamin Coe Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-speech/owlbot.py | 6 +++--- .../google/cloud/speech/v1/cloud_speech.proto | 2 +- .../speech/v1/cloud_speech_adaptation.proto | 20 ++++++++++++------- .../google/cloud/speech/v1/resource.proto | 14 ++++++------- .../cloud/speech/v1p1beta1/cloud_speech.proto | 2 +- .../v1p1beta1/cloud_speech_adaptation.proto | 20 ++++++++++++------- .../cloud/speech/v1p1beta1/resource.proto | 6 +++--- .../google/cloud/speech/v2/cloud_speech.proto | 2 +- .../google-cloud-speech/protos/protos.json | 6 +++--- .../v1/adaptation.create_custom_class.js | 3 ++- .../v1/adaptation.create_phrase_set.js | 3 ++- ...ippet_metadata.google.cloud.speech.v1.json | 4 ++-- .../adaptation.create_custom_class.js | 3 ++- .../v1p1beta1/adaptation.create_phrase_set.js | 3 ++- ...etadata.google.cloud.speech.v1p1beta1.json | 4 ++-- .../src/v1/adaptation_client.ts | 6 ++++-- .../src/v1p1beta1/adaptation_client.ts | 6 ++++-- 17 files changed, 65 insertions(+), 45 deletions(-) diff --git a/packages/google-cloud-speech/owlbot.py b/packages/google-cloud-speech/owlbot.py index 3b66219429f9..0643d3a027da 100644 --- a/packages/google-cloud-speech/owlbot.py +++ b/packages/google-cloud-speech/owlbot.py @@ -27,9 +27,9 @@ def patch(library: Path): # Manual helper methods override the streaming API so that it # accepts streamingConfig when calling streamingRecognize. # Rename the generated methods to avoid confusion. - s.replace(f'owl-bot-staging/{version}/src/{version}/{name}_client.ts', r'( +)streamingRecognize\(', '\\1_streamingRecognize(') - s.replace(f'owl-bot-staging/{version}/test/gapic_{name}_{version}.ts', r'client\.streamingRecognize\(', 'client._streamingRecognize(') - s.replace(f'owl-bot-staging/{version}/src/{version}/{name}_client.ts', r'\Z', + s.replace(f'owl-bot-staging/google-cloud-speech/{version}/src/{version}/{name}_client.ts', r'( +)streamingRecognize\(', '\\1_streamingRecognize(') + s.replace(f'owl-bot-staging/google-cloud-speech/{version}/test/gapic_{name}_{version}.ts', r'client\.streamingRecognize\(', 'client._streamingRecognize(') + s.replace(f'owl-bot-staging/google-cloud-speech/{version}/src/{version}/{name}_client.ts', r'\Z', '\n' + "import {ImprovedStreamingClient} from '../helpers';\n" + '// eslint-disable-next-line @typescript-eslint/no-empty-interface\n' + diff --git a/packages/google-cloud-speech/protos/google/cloud/speech/v1/cloud_speech.proto b/packages/google-cloud-speech/protos/google/cloud/speech/v1/cloud_speech.proto index e8f19603087f..e62f752f3a80 100644 --- a/packages/google-cloud-speech/protos/google/cloud/speech/v1/cloud_speech.proto +++ b/packages/google-cloud-speech/protos/google/cloud/speech/v1/cloud_speech.proto @@ -27,7 +27,7 @@ import "google/protobuf/wrappers.proto"; import "google/rpc/status.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v1;speech"; +option go_package = "cloud.google.com/go/speech/apiv1/speechpb;speechpb"; option java_multiple_files = true; option java_outer_classname = "SpeechProto"; option java_package = "com.google.cloud.speech.v1"; diff --git a/packages/google-cloud-speech/protos/google/cloud/speech/v1/cloud_speech_adaptation.proto b/packages/google-cloud-speech/protos/google/cloud/speech/v1/cloud_speech_adaptation.proto index b0d60ab4a1dd..a7a9eb365d0c 100644 --- a/packages/google-cloud-speech/protos/google/cloud/speech/v1/cloud_speech_adaptation.proto +++ b/packages/google-cloud-speech/protos/google/cloud/speech/v1/cloud_speech_adaptation.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v1;speech"; +option go_package = "cloud.google.com/go/speech/apiv1/speechpb;speechpb"; option java_multiple_files = true; option java_outer_classname = "SpeechAdaptationProto"; option java_package = "com.google.cloud.speech.v1"; @@ -34,7 +34,8 @@ option objc_class_prefix = "GCS"; // Service that implements Google Cloud Speech Adaptation API. service Adaptation { option (google.api.default_host) = "speech.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Create a set of phrase hints. Each item in the set can be a single word or // a multi-word phrase. The items in the PhraseSet are favored by the @@ -86,7 +87,8 @@ service Adaptation { post: "/v1/{parent=projects/*/locations/*}/customClasses" body: "*" }; - option (google.api.method_signature) = "parent,custom_class,custom_class_id"; + option (google.api.method_signature) = + "parent,custom_class,custom_class_id"; } // Get a custom class. @@ -98,7 +100,8 @@ service Adaptation { } // List custom classes. - rpc ListCustomClasses(ListCustomClassesRequest) returns (ListCustomClassesResponse) { + rpc ListCustomClasses(ListCustomClassesRequest) + returns (ListCustomClassesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/customClasses" }; @@ -115,7 +118,8 @@ service Adaptation { } // Delete a custom class. - rpc DeleteCustomClass(DeleteCustomClassRequest) returns (google.protobuf.Empty) { + rpc DeleteCustomClass(DeleteCustomClassRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/customClasses/*}" }; @@ -125,7 +129,8 @@ service Adaptation { // Message sent by the client for the `CreatePhraseSet` method. message CreatePhraseSetRequest { - // Required. The parent resource where this phrase set will be created. Format: + // Required. The parent resource where this phrase set will be created. + // Format: // // `projects/{project}/locations/{location}/phraseSets` // @@ -248,7 +253,8 @@ message DeletePhraseSetRequest { // Message sent by the client for the `CreateCustomClass` method. message CreateCustomClassRequest { - // Required. The parent resource where this custom class will be created. Format: + // Required. The parent resource where this custom class will be created. + // Format: // // `projects/{project}/locations/{location}/customClasses` // diff --git a/packages/google-cloud-speech/protos/google/cloud/speech/v1/resource.proto b/packages/google-cloud-speech/protos/google/cloud/speech/v1/resource.proto index 63b7ae4479ff..fcfd4640a2ab 100644 --- a/packages/google-cloud-speech/protos/google/cloud/speech/v1/resource.proto +++ b/packages/google-cloud-speech/protos/google/cloud/speech/v1/resource.proto @@ -19,7 +19,7 @@ package google.cloud.speech.v1; import "google/api/resource.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v1;speech"; +option go_package = "cloud.google.com/go/speech/apiv1/speechpb;speechpb"; option java_multiple_files = true; option java_outer_classname = "SpeechResourceProto"; option java_package = "com.google.cloud.speech.v1"; @@ -82,8 +82,8 @@ message PhraseSet { // Speech-to-Text supports three locations: `global`, `us` (US North America), // and `eu` (Europe). If you are calling the `speech.googleapis.com` // endpoint, use the `global` location. To specify a region, use a - // [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or - // `eu` location value. + // [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) + // with matching `us` or `eu` location value. message Phrase { // The phrase itself. string value = 1; @@ -95,8 +95,8 @@ message PhraseSet { // boost will simply be ignored. Though `boost` can accept a wide range of // positive values, most use cases are best served // with values between 0 and 20. We recommend using a binary search approach - // to finding the optimal value for your use case. Speech recognition - // will skip PhraseSets with a boost value of 0. + // to finding the optimal value for your use case as well as adding + // phrases both with and without boost to your requests. float boost = 2; } @@ -113,8 +113,8 @@ message PhraseSet { // enabled, so negative boost will simply be ignored. Though `boost` can // accept a wide range of positive values, most use cases are best served with // values between 0 (exclusive) and 20. We recommend using a binary search - // approach to finding the optimal value for your use case. Speech recognition - // will skip PhraseSets with a boost value of 0. + // approach to finding the optimal value for your use case as well as adding + // phrases both with and without boost to your requests. float boost = 4; } diff --git a/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto b/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto index d1396692b608..d72ad00563a5 100644 --- a/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto +++ b/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto @@ -27,7 +27,7 @@ import "google/protobuf/wrappers.proto"; import "google/rpc/status.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech"; +option go_package = "cloud.google.com/go/speech/apiv1p1beta1/speechpb;speechpb"; option java_multiple_files = true; option java_outer_classname = "SpeechProto"; option java_package = "com.google.cloud.speech.v1p1beta1"; diff --git a/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto index 45ca97f2d13a..f805dfb575ca 100644 --- a/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto +++ b/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech"; +option go_package = "cloud.google.com/go/speech/apiv1p1beta1/speechpb;speechpb"; option java_multiple_files = true; option java_outer_classname = "SpeechAdaptationProto"; option java_package = "com.google.cloud.speech.v1p1beta1"; @@ -34,7 +34,8 @@ option objc_class_prefix = "GCS"; // Service that implements Google Cloud Speech Adaptation API. service Adaptation { option (google.api.default_host) = "speech.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Create a set of phrase hints. Each item in the set can be a single word or // a multi-word phrase. The items in the PhraseSet are favored by the @@ -86,7 +87,8 @@ service Adaptation { post: "/v1p1beta1/{parent=projects/*/locations/*}/customClasses" body: "*" }; - option (google.api.method_signature) = "parent,custom_class,custom_class_id"; + option (google.api.method_signature) = + "parent,custom_class,custom_class_id"; } // Get a custom class. @@ -98,7 +100,8 @@ service Adaptation { } // List custom classes. - rpc ListCustomClasses(ListCustomClassesRequest) returns (ListCustomClassesResponse) { + rpc ListCustomClasses(ListCustomClassesRequest) + returns (ListCustomClassesResponse) { option (google.api.http) = { get: "/v1p1beta1/{parent=projects/*/locations/*}/customClasses" }; @@ -115,7 +118,8 @@ service Adaptation { } // Delete a custom class. - rpc DeleteCustomClass(DeleteCustomClassRequest) returns (google.protobuf.Empty) { + rpc DeleteCustomClass(DeleteCustomClassRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1p1beta1/{name=projects/*/locations/*/customClasses/*}" }; @@ -125,7 +129,8 @@ service Adaptation { // Message sent by the client for the `CreatePhraseSet` method. message CreatePhraseSetRequest { - // Required. The parent resource where this phrase set will be created. Format: + // Required. The parent resource where this phrase set will be created. + // Format: // // `projects/{project}/locations/{location}/phraseSets` // @@ -248,7 +253,8 @@ message DeletePhraseSetRequest { // Message sent by the client for the `CreateCustomClass` method. message CreateCustomClassRequest { - // Required. The parent resource where this custom class will be created. Format: + // Required. The parent resource where this custom class will be created. + // Format: // // `projects/{project}/locations/{location}/customClasses` // diff --git a/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/resource.proto b/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/resource.proto index 945872618ed5..6deb314b8481 100644 --- a/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/resource.proto +++ b/packages/google-cloud-speech/protos/google/cloud/speech/v1p1beta1/resource.proto @@ -19,7 +19,7 @@ package google.cloud.speech.v1p1beta1; import "google/api/resource.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech"; +option go_package = "cloud.google.com/go/speech/apiv1p1beta1/speechpb;speechpb"; option java_multiple_files = true; option java_outer_classname = "SpeechResourceProto"; option java_package = "com.google.cloud.speech.v1p1beta1"; @@ -82,8 +82,8 @@ message PhraseSet { // Speech-to-Text supports three locations: `global`, `us` (US North America), // and `eu` (Europe). If you are calling the `speech.googleapis.com` // endpoint, use the `global` location. To specify a region, use a - // [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or - // `eu` location value. + // [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) + // with matching `us` or `eu` location value. message Phrase { // The phrase itself. string value = 1; diff --git a/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto b/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto index a3512e316c42..246e48e16396 100644 --- a/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto +++ b/packages/google-cloud-speech/protos/google/cloud/speech/v2/cloud_speech.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v2;speech"; +option go_package = "cloud.google.com/go/speech/apiv2/speechpb;speechpb"; option java_multiple_files = true; option java_outer_classname = "CloudSpeechProto"; option java_package = "com.google.cloud.speech.v2"; diff --git a/packages/google-cloud-speech/protos/protos.json b/packages/google-cloud-speech/protos/protos.json index bcc5a168aca0..50e2355ca308 100644 --- a/packages/google-cloud-speech/protos/protos.json +++ b/packages/google-cloud-speech/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/speech/v1;speech", + "go_package": "cloud.google.com/go/speech/apiv1/speechpb;speechpb", "java_multiple_files": true, "java_outer_classname": "SpeechAdaptationProto", "java_package": "com.google.cloud.speech.v1", @@ -1134,7 +1134,7 @@ "v1p1beta1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech", + "go_package": "cloud.google.com/go/speech/apiv1p1beta1/speechpb;speechpb", "java_multiple_files": true, "java_outer_classname": "SpeechAdaptationProto", "java_package": "com.google.cloud.speech.v1p1beta1", @@ -2318,7 +2318,7 @@ }, "v2": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/speech/v2;speech", + "go_package": "cloud.google.com/go/speech/apiv2/speechpb;speechpb", "java_multiple_files": true, "java_outer_classname": "CloudSpeechProto", "java_package": "com.google.cloud.speech.v2", diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.create_custom_class.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.create_custom_class.js index d148d4f428e3..325a60e7c91b 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.create_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.create_custom_class.js @@ -29,7 +29,8 @@ function main(parent, customClassId, customClass) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The parent resource where this custom class will be created. Format: + * Required. The parent resource where this custom class will be created. + * Format: * `projects/{project}/locations/{location}/customClasses` * Speech-to-Text supports three locations: `global`, `us` (US North America), * and `eu` (Europe). If you are calling the `speech.googleapis.com` diff --git a/packages/google-cloud-speech/samples/generated/v1/adaptation.create_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1/adaptation.create_phrase_set.js index ba2132aa5cbc..dbb9cb3c5fe3 100644 --- a/packages/google-cloud-speech/samples/generated/v1/adaptation.create_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1/adaptation.create_phrase_set.js @@ -29,7 +29,8 @@ function main(parent, phraseSetId, phraseSet) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The parent resource where this phrase set will be created. Format: + * Required. The parent resource where this phrase set will be created. + * Format: * `projects/{project}/locations/{location}/phraseSets` * Speech-to-Text supports three locations: `global`, `us` (US North America), * and `eu` (Europe). If you are calling the `speech.googleapis.com` diff --git a/packages/google-cloud-speech/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json b/packages/google-cloud-speech/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json index 5eb23dcbbe1c..d2a716916f68 100644 --- a/packages/google-cloud-speech/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json +++ b/packages/google-cloud-speech/samples/generated/v1/snippet_metadata.google.cloud.speech.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 73, "type": "FULL" } ], @@ -242,7 +242,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 73, "type": "FULL" } ], diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_custom_class.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_custom_class.js index 9ce168a3a49f..9fa672ba3b0d 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_custom_class.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_custom_class.js @@ -29,7 +29,8 @@ function main(parent, customClassId, customClass) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The parent resource where this custom class will be created. Format: + * Required. The parent resource where this custom class will be created. + * Format: * `projects/{project}/locations/{location}/customClasses` * Speech-to-Text supports three locations: `global`, `us` (US North America), * and `eu` (Europe). If you are calling the `speech.googleapis.com` diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_phrase_set.js b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_phrase_set.js index 0f23566942a3..d96a3884c399 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_phrase_set.js +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/adaptation.create_phrase_set.js @@ -29,7 +29,8 @@ function main(parent, phraseSetId, phraseSet) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The parent resource where this phrase set will be created. Format: + * Required. The parent resource where this phrase set will be created. + * Format: * `projects/{project}/locations/{location}/phraseSets` * Speech-to-Text supports three locations: `global`, `us` (US North America), * and `eu` (Europe). If you are calling the `speech.googleapis.com` diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json b/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json index e462d1097c04..dff6522b8e23 100644 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json +++ b/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 73, "type": "FULL" } ], @@ -242,7 +242,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 73, "type": "FULL" } ], diff --git a/packages/google-cloud-speech/src/v1/adaptation_client.ts b/packages/google-cloud-speech/src/v1/adaptation_client.ts index 393b16e355af..766b846cede5 100644 --- a/packages/google-cloud-speech/src/v1/adaptation_client.ts +++ b/packages/google-cloud-speech/src/v1/adaptation_client.ts @@ -359,7 +359,8 @@ export class AdaptationClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent resource where this phrase set will be created. Format: + * Required. The parent resource where this phrase set will be created. + * Format: * * `projects/{project}/locations/{location}/phraseSets` * @@ -736,7 +737,8 @@ export class AdaptationClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent resource where this custom class will be created. Format: + * Required. The parent resource where this custom class will be created. + * Format: * * `projects/{project}/locations/{location}/customClasses` * diff --git a/packages/google-cloud-speech/src/v1p1beta1/adaptation_client.ts b/packages/google-cloud-speech/src/v1p1beta1/adaptation_client.ts index 827180ed4b41..e9aa13253354 100644 --- a/packages/google-cloud-speech/src/v1p1beta1/adaptation_client.ts +++ b/packages/google-cloud-speech/src/v1p1beta1/adaptation_client.ts @@ -359,7 +359,8 @@ export class AdaptationClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent resource where this phrase set will be created. Format: + * Required. The parent resource where this phrase set will be created. + * Format: * * `projects/{project}/locations/{location}/phraseSets` * @@ -762,7 +763,8 @@ export class AdaptationClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent resource where this custom class will be created. Format: + * Required. The parent resource where this custom class will be created. + * Format: * * `projects/{project}/locations/{location}/customClasses` * From 8db9a87b2f16d17b482dfbfb8832ce466e564fc4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 3 Feb 2023 13:06:16 -0500 Subject: [PATCH 14/38] chore: [Many APIs] update import paths for Go targets to match open source location (#3931) chore: update import paths for Go targets to match open source location chore: update go_package in protos to match open source location chore: add explicit release levels to Go gapic targets PiperOrigin-RevId: 506711567 Source-Link: https://github.com/googleapis/googleapis/commit/d02e58244db5d01607ec2ad52a47e7edce8612f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7f1c54153125eb5abd60a32de58cfda6a798a70a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFjY2Vzc2FwcHJvdmFsLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFwaWdhdGV3YXkvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFwaWdlZWNvbm5lY3QvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc2V0Ly5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc3VyZWR3b3JrbG9hZHMvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhcmVtZXRhbHNvbHV0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdG9ycy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwZ2F0ZXdheXMvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtY2xpZW50Y29ubmVjdG9yc2VydmljZXMvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtY2xpZW50Z2F0ZXdheXMvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWFuYWx5dGljc2h1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWNvbm5lY3Rpb24vLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWRhdGFleGNoYW5nZS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWRhdGFwb2xpY2llcy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWRhdGF0cmFuc2Zlci8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LXJlc2VydmF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbGxpbmctYnVkZ2V0cy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Co-authored-by: Owl Bot Co-authored-by: Benjamin E. Coe --- .../accessapproval/v1/accessapproval.proto | 2 +- .../protos/protos.json | 2 +- .../aiplatform/v1/accelerator_type.proto | 2 +- .../cloud/aiplatform/v1/annotation.proto | 2 +- .../cloud/aiplatform/v1/annotation_spec.proto | 2 +- .../google/cloud/aiplatform/v1/artifact.proto | 2 +- .../aiplatform/v1/batch_prediction_job.proto | 2 +- .../aiplatform/v1/completion_stats.proto | 2 +- .../google/cloud/aiplatform/v1/context.proto | 2 +- .../cloud/aiplatform/v1/custom_job.proto | 2 +- .../cloud/aiplatform/v1/data_item.proto | 2 +- .../aiplatform/v1/data_labeling_job.proto | 2 +- .../google/cloud/aiplatform/v1/dataset.proto | 2 +- .../cloud/aiplatform/v1/dataset_service.proto | 2 +- .../aiplatform/v1/deployed_index_ref.proto | 2 +- .../aiplatform/v1/deployed_model_ref.proto | 2 +- .../cloud/aiplatform/v1/encryption_spec.proto | 2 +- .../google/cloud/aiplatform/v1/endpoint.proto | 2 +- .../aiplatform/v1/endpoint_service.proto | 2 +- .../cloud/aiplatform/v1/entity_type.proto | 2 +- .../google/cloud/aiplatform/v1/env_var.proto | 2 +- .../google/cloud/aiplatform/v1/event.proto | 2 +- .../cloud/aiplatform/v1/execution.proto | 2 +- .../cloud/aiplatform/v1/explanation.proto | 2 +- .../aiplatform/v1/explanation_metadata.proto | 2 +- .../google/cloud/aiplatform/v1/feature.proto | 2 +- .../v1/feature_monitoring_stats.proto | 2 +- .../aiplatform/v1/feature_selector.proto | 2 +- .../cloud/aiplatform/v1/featurestore.proto | 2 +- .../v1/featurestore_monitoring.proto | 2 +- .../v1/featurestore_online_service.proto | 2 +- .../aiplatform/v1/featurestore_service.proto | 2 +- .../v1/hyperparameter_tuning_job.proto | 2 +- .../google/cloud/aiplatform/v1/index.proto | 2 +- .../cloud/aiplatform/v1/index_endpoint.proto | 2 +- .../v1/index_endpoint_service.proto | 2 +- .../cloud/aiplatform/v1/index_service.proto | 2 +- .../google/cloud/aiplatform/v1/io.proto | 2 +- .../cloud/aiplatform/v1/job_service.proto | 2 +- .../cloud/aiplatform/v1/job_state.proto | 2 +- .../aiplatform/v1/lineage_subgraph.proto | 2 +- .../aiplatform/v1/machine_resources.proto | 2 +- .../v1/manual_batch_tuning_parameters.proto | 2 +- .../cloud/aiplatform/v1/metadata_schema.proto | 2 +- .../aiplatform/v1/metadata_service.proto | 2 +- .../cloud/aiplatform/v1/metadata_store.proto | 2 +- .../aiplatform/v1/migratable_resource.proto | 2 +- .../aiplatform/v1/migration_service.proto | 2 +- .../google/cloud/aiplatform/v1/model.proto | 2 +- .../v1/model_deployment_monitoring_job.proto | 2 +- .../aiplatform/v1/model_evaluation.proto | 2 +- .../v1/model_evaluation_slice.proto | 2 +- .../aiplatform/v1/model_monitoring.proto | 2 +- .../cloud/aiplatform/v1/model_service.proto | 2 +- .../cloud/aiplatform/v1/operation.proto | 2 +- .../v1/pipeline_failure_policy.proto | 2 +- .../cloud/aiplatform/v1/pipeline_job.proto | 2 +- .../aiplatform/v1/pipeline_service.proto | 2 +- .../cloud/aiplatform/v1/pipeline_state.proto | 2 +- .../aiplatform/v1/prediction_service.proto | 2 +- .../cloud/aiplatform/v1/saved_query.proto | 2 +- .../instance/image_classification.proto | 2 +- .../instance/image_object_detection.proto | 2 +- .../predict/instance/image_segmentation.proto | 2 +- .../instance/text_classification.proto | 2 +- .../predict/instance/text_extraction.proto | 2 +- .../predict/instance/text_sentiment.proto | 2 +- .../instance/video_action_recognition.proto | 2 +- .../instance/video_classification.proto | 2 +- .../instance/video_object_tracking.proto | 2 +- .../predict/params/image_classification.proto | 2 +- .../params/image_object_detection.proto | 2 +- .../predict/params/image_segmentation.proto | 2 +- .../params/video_action_recognition.proto | 2 +- .../predict/params/video_classification.proto | 2 +- .../params/video_object_tracking.proto | 2 +- .../predict/prediction/classification.proto | 2 +- .../prediction/image_object_detection.proto | 2 +- .../prediction/image_segmentation.proto | 2 +- .../prediction/tabular_classification.proto | 2 +- .../prediction/tabular_regression.proto | 2 +- .../predict/prediction/text_extraction.proto | 2 +- .../predict/prediction/text_sentiment.proto | 2 +- .../prediction/video_action_recognition.proto | 2 +- .../prediction/video_classification.proto | 2 +- .../prediction/video_object_tracking.proto | 2 +- .../automl_image_classification.proto | 2 +- .../automl_image_object_detection.proto | 2 +- .../automl_image_segmentation.proto | 2 +- .../definition/automl_tables.proto | 2 +- .../automl_text_classification.proto | 2 +- .../definition/automl_text_extraction.proto | 2 +- .../definition/automl_text_sentiment.proto | 2 +- .../automl_video_action_recognition.proto | 2 +- .../automl_video_classification.proto | 2 +- .../automl_video_object_tracking.proto | 2 +- .../export_evaluated_data_items_config.proto | 2 +- .../cloud/aiplatform/v1/specialist_pool.proto | 2 +- .../v1/specialist_pool_service.proto | 2 +- .../google/cloud/aiplatform/v1/study.proto | 2 +- .../cloud/aiplatform/v1/tensorboard.proto | 2 +- .../aiplatform/v1/tensorboard_data.proto | 2 +- .../v1/tensorboard_experiment.proto | 2 +- .../cloud/aiplatform/v1/tensorboard_run.proto | 2 +- .../aiplatform/v1/tensorboard_service.proto | 2 +- .../v1/tensorboard_time_series.proto | 2 +- .../aiplatform/v1/training_pipeline.proto | 2 +- .../google/cloud/aiplatform/v1/types.proto | 2 +- .../v1/unmanaged_container_model.proto | 2 +- .../aiplatform/v1/user_action_reference.proto | 2 +- .../google/cloud/aiplatform/v1/value.proto | 2 +- .../cloud/aiplatform/v1/vizier_service.proto | 2 +- .../aiplatform/v1beta1/accelerator_type.proto | 2 +- .../cloud/aiplatform/v1beta1/annotation.proto | 2 +- .../aiplatform/v1beta1/annotation_spec.proto | 2 +- .../cloud/aiplatform/v1beta1/artifact.proto | 2 +- .../v1beta1/batch_prediction_job.proto | 2 +- .../aiplatform/v1beta1/completion_stats.proto | 2 +- .../cloud/aiplatform/v1beta1/context.proto | 2 +- .../cloud/aiplatform/v1beta1/custom_job.proto | 2 +- .../cloud/aiplatform/v1beta1/data_item.proto | 2 +- .../v1beta1/data_labeling_job.proto | 2 +- .../cloud/aiplatform/v1beta1/dataset.proto | 2 +- .../aiplatform/v1beta1/dataset_service.proto | 2 +- .../v1beta1/deployed_index_ref.proto | 2 +- .../v1beta1/deployed_model_ref.proto | 2 +- .../v1beta1/deployment_resource_pool.proto | 2 +- .../deployment_resource_pool_service.proto | 2 +- .../aiplatform/v1beta1/encryption_spec.proto | 2 +- .../cloud/aiplatform/v1beta1/endpoint.proto | 2 +- .../aiplatform/v1beta1/endpoint_service.proto | 2 +- .../aiplatform/v1beta1/entity_type.proto | 2 +- .../cloud/aiplatform/v1beta1/env_var.proto | 2 +- .../cloud/aiplatform/v1beta1/event.proto | 2 +- .../cloud/aiplatform/v1beta1/execution.proto | 2 +- .../aiplatform/v1beta1/explanation.proto | 2 +- .../v1beta1/explanation_metadata.proto | 2 +- .../cloud/aiplatform/v1beta1/feature.proto | 2 +- .../v1beta1/feature_monitoring_stats.proto | 2 +- .../aiplatform/v1beta1/feature_selector.proto | 2 +- .../aiplatform/v1beta1/featurestore.proto | 2 +- .../v1beta1/featurestore_monitoring.proto | 2 +- .../v1beta1/featurestore_online_service.proto | 2 +- .../v1beta1/featurestore_service.proto | 2 +- .../v1beta1/hyperparameter_tuning_job.proto | 2 +- .../cloud/aiplatform/v1beta1/index.proto | 2 +- .../aiplatform/v1beta1/index_endpoint.proto | 2 +- .../v1beta1/index_endpoint_service.proto | 2 +- .../aiplatform/v1beta1/index_service.proto | 2 +- .../google/cloud/aiplatform/v1beta1/io.proto | 2 +- .../aiplatform/v1beta1/job_service.proto | 2 +- .../cloud/aiplatform/v1beta1/job_state.proto | 2 +- .../aiplatform/v1beta1/lineage_subgraph.proto | 2 +- .../v1beta1/machine_resources.proto | 2 +- .../manual_batch_tuning_parameters.proto | 2 +- .../aiplatform/v1beta1/metadata_schema.proto | 2 +- .../aiplatform/v1beta1/metadata_service.proto | 2 +- .../aiplatform/v1beta1/metadata_store.proto | 2 +- .../v1beta1/migratable_resource.proto | 2 +- .../v1beta1/migration_service.proto | 2 +- .../cloud/aiplatform/v1beta1/model.proto | 2 +- .../model_deployment_monitoring_job.proto | 2 +- .../aiplatform/v1beta1/model_evaluation.proto | 2 +- .../v1beta1/model_evaluation_slice.proto | 2 +- .../aiplatform/v1beta1/model_monitoring.proto | 2 +- .../aiplatform/v1beta1/model_service.proto | 2 +- .../cloud/aiplatform/v1beta1/operation.proto | 2 +- .../v1beta1/pipeline_failure_policy.proto | 2 +- .../aiplatform/v1beta1/pipeline_job.proto | 2 +- .../aiplatform/v1beta1/pipeline_service.proto | 2 +- .../aiplatform/v1beta1/pipeline_state.proto | 2 +- .../v1beta1/prediction_service.proto | 2 +- .../aiplatform/v1beta1/saved_query.proto | 2 +- .../v1beta1/schema/annotation_payload.proto | 2 +- .../schema/annotation_spec_color.proto | 2 +- .../v1beta1/schema/data_item_payload.proto | 2 +- .../v1beta1/schema/dataset_metadata.proto | 2 +- .../aiplatform/v1beta1/schema/geometry.proto | 2 +- .../instance/image_classification.proto | 2 +- .../instance/image_object_detection.proto | 2 +- .../predict/instance/image_segmentation.proto | 2 +- .../instance/text_classification.proto | 2 +- .../predict/instance/text_extraction.proto | 2 +- .../predict/instance/text_sentiment.proto | 2 +- .../instance/video_action_recognition.proto | 2 +- .../instance/video_classification.proto | 2 +- .../instance/video_object_tracking.proto | 2 +- .../predict/params/image_classification.proto | 2 +- .../params/image_object_detection.proto | 2 +- .../predict/params/image_segmentation.proto | 2 +- .../params/video_action_recognition.proto | 2 +- .../predict/params/video_classification.proto | 2 +- .../params/video_object_tracking.proto | 2 +- .../predict/prediction/classification.proto | 2 +- .../prediction/image_object_detection.proto | 2 +- .../prediction/image_segmentation.proto | 2 +- .../prediction/tabular_classification.proto | 2 +- .../prediction/tabular_regression.proto | 2 +- .../predict/prediction/text_extraction.proto | 2 +- .../predict/prediction/text_sentiment.proto | 2 +- .../prediction/time_series_forecasting.proto | 2 +- .../prediction/video_action_recognition.proto | 2 +- .../prediction/video_classification.proto | 2 +- .../prediction/video_object_tracking.proto | 2 +- .../automl_image_classification.proto | 2 +- .../automl_image_object_detection.proto | 2 +- .../automl_image_segmentation.proto | 2 +- .../definition/automl_tables.proto | 2 +- .../automl_text_classification.proto | 2 +- .../definition/automl_text_extraction.proto | 2 +- .../definition/automl_text_sentiment.proto | 2 +- .../automl_time_series_forecasting.proto | 2 +- .../automl_video_action_recognition.proto | 2 +- .../automl_video_classification.proto | 2 +- .../automl_video_object_tracking.proto | 2 +- .../export_evaluated_data_items_config.proto | 2 +- .../aiplatform/v1beta1/specialist_pool.proto | 2 +- .../v1beta1/specialist_pool_service.proto | 2 +- .../cloud/aiplatform/v1beta1/study.proto | 2 +- .../aiplatform/v1beta1/tensorboard.proto | 2 +- .../aiplatform/v1beta1/tensorboard_data.proto | 2 +- .../v1beta1/tensorboard_experiment.proto | 2 +- .../aiplatform/v1beta1/tensorboard_run.proto | 2 +- .../v1beta1/tensorboard_service.proto | 2 +- .../v1beta1/tensorboard_time_series.proto | 2 +- .../v1beta1/training_pipeline.proto | 2 +- .../cloud/aiplatform/v1beta1/types.proto | 2 +- .../v1beta1/unmanaged_container_model.proto | 2 +- .../v1beta1/user_action_reference.proto | 2 +- .../cloud/aiplatform/v1beta1/value.proto | 2 +- .../aiplatform/v1beta1/vizier_service.proto | 2 +- .../protos/protos.json | 22 +++++++++---------- .../cloud/apigateway/v1/apigateway.proto | 2 +- .../apigateway/v1/apigateway_service.proto | 2 +- .../protos/protos.json | 2 +- .../cloud/apigeeconnect/v1/connection.proto | 2 +- .../cloud/apigeeconnect/v1/tether.proto | 2 +- .../protos/protos.json | 2 +- .../google/cloud/asset/v1/asset_service.proto | 2 +- .../protos/google/cloud/asset/v1/assets.proto | 2 +- .../cloud/asset/v1p1beta1/asset_service.proto | 2 +- .../google/cloud/asset/v1p1beta1/assets.proto | 2 +- .../cloud/asset/v1p2beta1/asset_service.proto | 2 +- .../google/cloud/asset/v1p2beta1/assets.proto | 2 +- .../cloud/asset/v1p5beta1/asset_service.proto | 2 +- .../google/cloud/asset/v1p5beta1/assets.proto | 2 +- .../cloud/asset/v1p7beta1/asset_service.proto | 2 +- .../google/cloud/asset/v1p7beta1/assets.proto | 2 +- .../google/cloud/osconfig/v1/inventory.proto | 2 +- .../google/cloud/osconfig/v1/os_policy.proto | 2 +- .../v1/os_policy_assignment_reports.proto | 2 +- .../osconfig/v1/os_policy_assignments.proto | 2 +- .../cloud/osconfig/v1/osconfig_common.proto | 2 +- .../cloud/osconfig/v1/osconfig_service.proto | 2 +- .../osconfig/v1/osconfig_zonal_service.proto | 2 +- .../cloud/osconfig/v1/patch_deployments.proto | 2 +- .../google/cloud/osconfig/v1/patch_jobs.proto | 2 +- .../cloud/osconfig/v1/vulnerability.proto | 2 +- .../google-cloud-asset/protos/protos.json | 12 +++++----- .../v1/assuredworkloads.proto | 2 +- .../v1beta1/assuredworkloads.proto | 2 +- .../v1beta1/assuredworkloads_service.proto | 2 +- .../protos/protos.json | 4 ++-- .../v2/baremetalsolution.proto | 2 +- .../cloud/baremetalsolution/v2/instance.proto | 2 +- .../cloud/baremetalsolution/v2/lun.proto | 2 +- .../cloud/baremetalsolution/v2/network.proto | 2 +- .../baremetalsolution/v2/nfs_share.proto | 2 +- .../cloud/baremetalsolution/v2/volume.proto | 2 +- .../protos/protos.json | 2 +- .../protos/google/cloud/batch/v1/batch.proto | 2 +- .../protos/google/cloud/batch/v1/job.proto | 2 +- .../protos/google/cloud/batch/v1/task.proto | 2 +- .../protos/google/cloud/batch/v1/volume.proto | 2 +- .../google/cloud/batch/v1alpha/batch.proto | 2 +- .../google/cloud/batch/v1alpha/job.proto | 2 +- .../google/cloud/batch/v1alpha/task.proto | 2 +- .../google/cloud/batch/v1alpha/volume.proto | 2 +- .../google-cloud-batch/protos/protos.json | 4 ++-- .../v1/app_connections_service.proto | 2 +- .../protos/protos.json | 2 +- .../v1/app_connector_instance_config.proto | 2 +- .../v1/app_connectors_service.proto | 2 +- .../appconnectors/v1/resource_info.proto | 2 +- .../protos/protos.json | 2 +- .../appgateways/v1/app_gateways_service.proto | 2 +- .../protos/protos.json | 2 +- .../client_connector_services_service.proto | 2 +- .../protos/protos.json | 2 +- .../v1/client_gateways_service.proto | 2 +- .../protos/protos.json | 2 +- .../analyticshub/v1/analyticshub.proto | 2 +- .../protos/protos.json | 2 +- .../bigquery/connection/v1/connection.proto | 2 +- .../connection/v1beta1/connection.proto | 2 +- .../protos/protos.json | 4 ++-- .../connection_service.create_connection.js | 1 - .../dataexchange/v1beta1/dataexchange.proto | 2 +- .../protos/protos.json | 2 +- .../bigquery/datapolicies/v1/datapolicy.proto | 2 +- .../datapolicies/v1beta1/datapolicy.proto | 2 +- .../protos/protos.json | 4 ++-- .../datatransfer/v1/datatransfer.proto | 2 +- .../bigquery/datatransfer/v1/transfer.proto | 2 +- .../protos/protos.json | 2 +- .../bigquery/reservation/v1/reservation.proto | 2 +- .../protos/protos.json | 2 +- .../billing/budgets/v1/budget_model.proto | 2 +- .../billing/budgets/v1/budget_service.proto | 2 +- .../budgets/v1beta1/budget_model.proto | 2 +- .../budgets/v1beta1/budget_service.proto | 2 +- .../protos/protos.json | 4 ++-- 312 files changed, 331 insertions(+), 332 deletions(-) diff --git a/packages/google-cloud-accessapproval/protos/google/cloud/accessapproval/v1/accessapproval.proto b/packages/google-cloud-accessapproval/protos/google/cloud/accessapproval/v1/accessapproval.proto index adeccff45a76..fae4db7a34cd 100644 --- a/packages/google-cloud-accessapproval/protos/google/cloud/accessapproval/v1/accessapproval.proto +++ b/packages/google-cloud-accessapproval/protos/google/cloud/accessapproval/v1/accessapproval.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AccessApproval.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/accessapproval/v1;accessapproval"; +option go_package = "cloud.google.com/go/accessapproval/apiv1/accessapprovalpb;accessapprovalpb"; option java_multiple_files = true; option java_outer_classname = "AccessApprovalProto"; option java_package = "com.google.cloud.accessapproval.v1"; diff --git a/packages/google-cloud-accessapproval/protos/protos.json b/packages/google-cloud-accessapproval/protos/protos.json index 810f4ce9d7d8..f0a9f0fd0e86 100644 --- a/packages/google-cloud-accessapproval/protos/protos.json +++ b/packages/google-cloud-accessapproval/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.AccessApproval.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/accessapproval/v1;accessapproval", + "go_package": "cloud.google.com/go/accessapproval/apiv1/accessapprovalpb;accessapprovalpb", "java_multiple_files": true, "java_outer_classname": "AccessApprovalProto", "java_package": "com.google.cloud.accessapproval.v1", diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto index 726ec203d4ca..d8c61e0762a0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "AcceleratorTypeProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/annotation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/annotation.proto index c490f955b80e..98ac15345db2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/annotation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/annotation.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "AnnotationProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/annotation_spec.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/annotation_spec.proto index e4bffcccd3bf..0a715556cdbf 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/annotation_spec.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/annotation_spec.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "AnnotationSpecProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/artifact.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/artifact.proto index 2dbe5f5dd932..bdadc2d757d5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/artifact.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/artifact.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ArtifactProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto index 5ab6fe987469..3370f884362e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -31,7 +31,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "BatchPredictionJobProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/completion_stats.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/completion_stats.proto index a098e914e28f..3cf5f834ce66 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/completion_stats.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/completion_stats.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "CompletionStatsProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/context.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/context.proto index fcf423e5540b..4a5452105f4c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/context.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/context.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ContextProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto index 4c372da1b10d..07015387779e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto @@ -28,7 +28,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "CustomJobProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_item.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_item.proto index ef2117c64451..4ab14e19e347 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_item.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_item.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DataItemProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_labeling_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_labeling_job.proto index 58c328fb13a0..8bc07dbf2bc0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_labeling_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_labeling_job.proto @@ -26,7 +26,7 @@ import "google/rpc/status.proto"; import "google/type/money.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DataLabelingJobProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto index 25fbbc313413..e9fcca74eb26 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto @@ -25,7 +25,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DatasetProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto index f6e7ba9238c2..70223bef1d84 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto @@ -30,7 +30,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DatasetServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployed_index_ref.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployed_index_ref.proto index 35c8b30c70b1..88263d5d3b28 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployed_index_ref.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployed_index_ref.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DeployedIndexRefProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployed_model_ref.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployed_model_ref.proto index 8a7b1eb79eec..d37d0c06402d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployed_model_ref.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployed_model_ref.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DeployedModelNameProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/encryption_spec.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/encryption_spec.proto index 4eae114f07f4..ce5ddad21504 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/encryption_spec.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/encryption_spec.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EncryptionSpecProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto index 6c1a23b8b93f..1f3a5a190699 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto @@ -25,7 +25,7 @@ import "google/cloud/aiplatform/v1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EndpointProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint_service.proto index 324fd9204ec4..f7aed01fafa7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EndpointServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto index dcdea9645e15..5ff273926c75 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1/featurestore_monitoring.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EntityTypeProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/env_var.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/env_var.proto index 34722e362558..1bf42292534a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/env_var.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/env_var.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EnvVarProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/event.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/event.proto index 0056445bb2ec..85150440542e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/event.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/event.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EventProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/execution.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/execution.proto index 5af5c2aca85a..4ba955e3e2a2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/execution.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/execution.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ExecutionProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto index 24d9e28f72ae..b5a53187b6a6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto @@ -21,7 +21,7 @@ import "google/cloud/aiplatform/v1/explanation_metadata.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ExplanationProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation_metadata.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation_metadata.proto index aac28243085b..50ba68996590 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation_metadata.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation_metadata.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ExplanationMetadataProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto index ea62bd1b7b13..b242d9ba9c11 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1/feature_monitoring_stats.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeatureProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto index 95cad9fc475d..0f778d42992f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeatureMonitoringStatsProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_selector.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_selector.proto index 7a4a8e664902..b653f8ec2576 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_selector.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_selector.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeatureSelectorProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto index facac33d0ef8..9e8d2d9b455c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeaturestoreProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto index 071f6a24656e..7dfa325abbfd 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeaturestoreMonitoringProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto index b9c4f3dbf4dd..262a7bb43fc2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto @@ -25,7 +25,7 @@ import "google/cloud/aiplatform/v1/types.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeaturestoreOnlineServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto index b500a4aa2b8c..86c3afb35095 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto @@ -31,7 +31,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeaturestoreServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto index 0178d6d53f62..5f80864e31f1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "HyperparameterTuningJobProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto index c50e5d48f8cf..559f3485a221 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IndexProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto index 8aed1b0f5571..8f699671d33e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IndexEndpointProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto index 72dcb7566ca3..561edf93e28f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IndexEndpointServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto index bf323fa2b86f..229825e50eec 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IndexServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto index 676c3a891fd4..13294bb1e040 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/io.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IoProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto index cf4abe14947b..bac4eb93b792 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto @@ -32,7 +32,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "JobServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto index 45b101c017f1..16efd4556fa7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_state.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "JobStateProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/lineage_subgraph.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/lineage_subgraph.proto index 7ad020b6129a..428ec31456f1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/lineage_subgraph.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/lineage_subgraph.proto @@ -21,7 +21,7 @@ import "google/cloud/aiplatform/v1/event.proto"; import "google/cloud/aiplatform/v1/execution.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "LineageSubgraphProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto index 23b93f8e4641..60dea057bebe 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1/accelerator_type.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MachineResourcesProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto index a32ccfac66a5..68ea0a035126 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ManualBatchTuningParametersProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_schema.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_schema.proto index c82e6e1fb234..26a5257df408 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_schema.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_schema.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MetadataSchemaProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto index ae10562c1525..04a07627fcc1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_service.proto @@ -32,7 +32,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MetadataServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_store.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_store.proto index a151ddce9b21..c8583ae2be5f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_store.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/metadata_store.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MetadataProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migratable_resource.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migratable_resource.proto index 04dff9c8566c..cf8322c682e2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migratable_resource.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migratable_resource.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MigratableResourceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migration_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migration_service.proto index 7acbdb11e3d5..ac1b7f0ea02d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migration_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migration_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MigrationServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto index 3c6d66b8ac10..33f27c73f80e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto @@ -26,7 +26,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto index ecbda9d84872..3f03831c0b0d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto @@ -29,7 +29,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelDeploymentMonitoringJobProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation.proto index a8f12525bf3c..ecf0f9e014cb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelEvaluationProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto index 085132e38d84..dd7949b772b5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelEvaluationSliceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto index 1b44c09230a8..73c5e0b2b3af 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto @@ -20,7 +20,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/io.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelMonitoringProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto index cac89f57a704..b2132ed39d01 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto @@ -29,7 +29,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/operation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/operation.proto index e1d4a90079f4..05d994ffe533 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/operation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/operation.proto @@ -21,7 +21,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "OperationProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto index 5ff3b78be4ae..35b0401efc2f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "PipelineFailurePolicyProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto index 66f862a4f7b7..1b951f3b7fac 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto @@ -30,7 +30,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "Pipeline"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto index ada10871dc70..7bd1055f80f0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_service.proto @@ -27,7 +27,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "PipelineServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_state.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_state.proto index a06ae8abeb4a..28baee3b34d6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_state.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_state.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "PipelineStateProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto index e2f5e420293d..e02e5704c8b5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto @@ -25,7 +25,7 @@ import "google/cloud/aiplatform/v1/explanation.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "PredictionServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/saved_query.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/saved_query.proto index ec9ec0c9f3b8..cdf1f8d1119f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/saved_query.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/saved_query.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "SavedQueryProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto index 7ebb77ab8624..e7f14c262ed7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "ImageClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto index 96aa4b14ef15..cf6995dd65bc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto index 95dbf98cf0a3..0916ae560ee1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto index 7d977a2f3496..acf3ad888207 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "TextClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto index b0b60c0fc0ef..492d907d5ae7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "TextExtractionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto index 15ded40b9dfd..cb3b732a487d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "TextSentimentPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto index a43507dd619f..0cc58f06d827 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto index 70318a602202..d849d0476b63 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto index 26b34930bfe4..4418c4926b0e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto index 6aab8b468ddc..68b6d402c6d2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "ImageClassificationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto index e957e2af2e9c..6def9cb3d74e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto index 5469108a3a74..83e12562c4a7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto index ba6ec5403bf1..d7778531d2bf 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto index f4325f8a1631..acf7ce0d937f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto index 82449062d7d8..721a080563c6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto index be54f2c8d371..a727b42bddea 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "ClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto index b0bb842e618f..8a449d2b63ae 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto index 20ff4f6d2d0c..5510a6c42e13 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto index 979461bd3f89..cd49449dec06 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "TabularClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto index ba6bc6a7d8c2..d3ebc73e0438 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "TabularRegressionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto index f74a82bfd46a..a16ce5c21661 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "TextExtractionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto index 4e8d5ec2c0d1..e5352b60d4d3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "TextSentimentPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto index 35aecb6c54bf..ea44f1e1d648 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto @@ -20,7 +20,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto index fee01c7e752a..d06450871ac5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto @@ -20,7 +20,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto index d445c0cc404c..415c03d77801 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto @@ -20,7 +20,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto index 0f2c1ea4e795..697a9b61dbf5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto index 1459a85a7635..a930bf140cae 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageObjectDetectionProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto index 8303ef692e12..69e7e893c76e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageSegmentationProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto index 5b43fc7be082..b0fcfbf43426 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLTablesProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto index 1713e6a6c6f7..ad75ea174360 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto index 01f56c31f385..e12c49409102 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextExtractionProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto index cb3f0ac5f45a..642e9d50e7ab 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextSentimentProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto index 331033bdc729..870066f76720 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoActionRecognitionProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto index 194ea3c66e78..672601224403 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto index d97e356f36a6..c941b5c8c5f1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoObjectTrackingProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto index eaa3298a23a1..f5eaa303a242 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "ExportEvaluatedDataItemsConfigProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool.proto index d186592a578e..3fc47f97b89e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "SpecialistPoolProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool_service.proto index 982b1395a5e6..0f1f7531f3fc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/specialist_pool_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "SpecialistPoolServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto index 7a949bc8f31a..cbdacda2d12d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "StudyProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard.proto index a0c6aad55765..541cbfe4cd90 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_data.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_data.proto index 6cc0f24d7bad..282a01be3a19 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_data.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_data.proto @@ -21,7 +21,7 @@ import "google/cloud/aiplatform/v1/tensorboard_time_series.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardDataProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_experiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_experiment.proto index 30a334f2c904..db57d584aaef 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_experiment.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_experiment.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardExperimentProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_run.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_run.proto index 25c373f605d1..bc109db9db90 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_run.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_run.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardRunProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_service.proto index 07ea601dedac..8a17a6221018 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_service.proto @@ -30,7 +30,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_time_series.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_time_series.proto index 09af560fb8d9..e09648af38cf 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_time_series.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tensorboard_time_series.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardTimeSeriesProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/training_pipeline.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/training_pipeline.proto index 298cc49a1d6c..10d96e55704f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/training_pipeline.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/training_pipeline.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TrainingPipelineProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/types.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/types.proto index 095b73c114fc..c724b8ec2739 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/types.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/types.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TypesProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/unmanaged_container_model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/unmanaged_container_model.proto index c3d167d817ab..de9b6ccf7e88 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/unmanaged_container_model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/unmanaged_container_model.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1/model.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "UnmanagedContainerModelProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/user_action_reference.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/user_action_reference.proto index 102dac6d47fc..25c50397701d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/user_action_reference.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/user_action_reference.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "UserActionReferenceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/value.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/value.proto index e8ab58538c2c..8b52968d8557 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/value.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/value.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ValueProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto index da56853fa6eb..d269b87efae7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/vizier_service.proto @@ -27,7 +27,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "VizierServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto index 4d4c3b8f01c0..ebee15157ee1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "AcceleratorTypeProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation.proto index 44858aa0ebd8..4723c8a34fe9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "AnnotationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto index a2c18690bc11..56b937507926 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "AnnotationSpecProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/artifact.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/artifact.proto index b0df629bcbab..135a42de7db5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/artifact.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/artifact.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ArtifactProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index bf4f40b8f6d2..cbdd9f046a2b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -33,7 +33,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "BatchPredictionJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/completion_stats.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/completion_stats.proto index ee99522663f9..ef9bf10dfde6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/completion_stats.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/completion_stats.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "CompletionStatsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/context.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/context.proto index 3c6ae7750b67..3f50fbd7b1fc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/context.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/context.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ContextProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto index 917616422ad3..9c16cf95ca27 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -28,7 +28,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "CustomJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_item.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_item.proto index b65ebdaf5c7c..1249a6962697 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_item.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_item.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DataItemProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto index 38cf99ffee1d..c1582fb9cc23 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto @@ -26,7 +26,7 @@ import "google/rpc/status.proto"; import "google/type/money.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DataLabelingJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto index 51ef2928a1b6..b89a9525f3aa 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset.proto @@ -25,7 +25,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DatasetProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto index 30097e817d9c..fdef69d1502b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -30,7 +30,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DatasetServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto index fd20f4d63295..01e970b44eb5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DeployedIndexRefProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto index 337ba55e82e7..2f3e7555114a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DeployedModelNameProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto index 8f794120f86d..3237bb905568 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DeploymentResourcePoolProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto index 752d8407aae7..fbce75a91a74 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto @@ -27,7 +27,7 @@ import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "DeploymentResourcePoolServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto index 738f8876b8d5..89cc8b9a6338 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EncryptionSpecProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto index c8055754466f..ad084fce5055 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -25,7 +25,7 @@ import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EndpointProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto index 8496b62ff598..d48a018b2fad 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EndpointServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto index e69d56a09807..4455292036d8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EntityTypeProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/env_var.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/env_var.proto index 5e1d677b998d..8dc7bbf17cdd 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/env_var.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/env_var.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EnvVarProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/event.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/event.proto index 628aba7b6bda..d6c5794bf9ad 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/event.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/event.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "EventProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/execution.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/execution.proto index 7c477048abfa..260c8246de98 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/execution.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/execution.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ExecutionProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto index 222e75daa22b..28970d9d124d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ExplanationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto index 7089c4e01d1c..c7f079c8c7a2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ExplanationMetadataProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto index 2d9b8883d7cb..c9dc14a7c1e1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto @@ -23,7 +23,7 @@ import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeatureProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto index 749632305ded..b1f490deb100 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeatureMonitoringStatsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_selector.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_selector.proto index 907f14e23ef1..c29347c499f6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_selector.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_selector.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeatureSelectorProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto index 3530ca6fbecf..a5c0ad452b93 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeaturestoreProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto index 307a3cd88ed1..3f1653dc02a9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeaturestoreMonitoringProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto index 8ee05dffa2c2..0a6922b9dd44 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto @@ -25,7 +25,7 @@ import "google/cloud/aiplatform/v1beta1/types.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeaturestoreOnlineServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto index 31aed3da96c3..688deafa6458 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -32,7 +32,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/interval.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "FeaturestoreServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto index ac5d551570ec..7f8e8c183315 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "HyperparameterTuningJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto index 279c421d8833..35dbfe23006f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IndexProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto index 2230eae354a6..59a3f7afa72e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IndexEndpointProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto index 27e5e374d7ae..64e1a2cc115a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IndexEndpointServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto index 68bc40488852..2565ca7ae86e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IndexServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto index 2b52b83aeb5b..7bc38c3150d1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "IoProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto index ec07d5fd4aac..e3416ee783b1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto @@ -32,7 +32,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "JobServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto index 14458e2ee68e..fb0ffdc33d2d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_state.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "JobStateProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto index ce2797179620..58d308733f3a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto @@ -21,7 +21,7 @@ import "google/cloud/aiplatform/v1beta1/event.proto"; import "google/cloud/aiplatform/v1beta1/execution.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "LineageSubgraphProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto index fcf75e357f54..7f26271c3544 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/accelerator_type.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MachineResourcesProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto index 189e88f21d64..1131aa2e1cc5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ManualBatchTuningParametersProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_schema.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_schema.proto index fbe45dff4e05..a3042d2f4ffa 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_schema.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_schema.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MetadataSchemaProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto index 215b853170ee..b1b6c664c93c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_service.proto @@ -32,7 +32,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MetadataServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_store.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_store.proto index 7e6bcbcb8059..a96a5780e856 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_store.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/metadata_store.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MetadataProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto index e0995f3d37d3..21ab28c9dfbe 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MigratableResourceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migration_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migration_service.proto index c3db729b5336..00e4f582fb09 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migration_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/migration_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "MigrationServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto index 8c7b0fdc73fd..b76ec7d78f72 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto @@ -26,7 +26,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto index 153417ed0aa6..48707707980d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -29,7 +29,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelDeploymentMonitoringJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto index e37ad53a1c68..96d2d1016f7a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelEvaluationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto index d52c4766a889..145cbda470e1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelEvaluationSliceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto index 3dc687e5f107..73bc3c6b3f88 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto @@ -20,7 +20,7 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelMonitoringProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto index 80da8a99f8d5..08ce8bcd95fa 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto @@ -30,7 +30,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ModelServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/operation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/operation.proto index 330ab6245a05..b7ea2af4be41 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/operation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/operation.proto @@ -21,7 +21,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "OperationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto index f197f510f090..8d4ecef391c8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "PipelineFailurePolicyProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto index 637707f3a77a..93edfbdf9f12 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -30,7 +30,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "Pipeline"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto index 26ea0fb67042..d17c375342eb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -27,7 +27,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "PipelineServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto index 41f2fb6ae0c6..1d4356bb4ae8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "PipelineStateProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto index 72e516fe6e79..1171de23f37a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -25,7 +25,7 @@ import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "PredictionServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/saved_query.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/saved_query.proto index e7c03ff9e260..d78fd10068f8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/saved_query.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/saved_query.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "SavedQueryProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto index 249c5ca3c328..18950e8441e0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto @@ -21,7 +21,7 @@ import "google/cloud/aiplatform/v1beta1/schema/geometry.proto"; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/schemapb;schemapb"; option java_multiple_files = true; option java_outer_classname = "AnnotationPayloadProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto index 5a4b976741ae..b5ae22ffc6e6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1.schema; import "google/type/color.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/schemapb;schemapb"; option java_multiple_files = true; option java_outer_classname = "AnnotationSpecColorProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto index 6f8b3eff8b6a..8911cd607f8b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1.schema; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/schemapb;schemapb"; option java_multiple_files = true; option java_outer_classname = "DataItemPayloadProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto index d35bbc33cf97..730280aee0b7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/schemapb;schemapb"; option java_multiple_files = true; option java_outer_classname = "DatasetMetadataProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto index 5dd708e37e35..f196fe3524e0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/schemapb;schemapb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto index 7ce0a3442998..3a9cd5b3b2c1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "ImageClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto index b92db336cc7c..1edc6cc8e7fa 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto index a83b7fbcceb3..5056881c1e11 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto index 99b8deda78c8..bf773184d209 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "TextClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto index 0265e4c03b8d..764eeea7e4db 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "TextExtractionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto index 17480d0c1ebb..73bf08939674 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "TextSentimentPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto index f65c6d2b114c..570f0394e09a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto index 9261a240279e..52eee2a81362 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto index 6a420074a9fb..b347e992535a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto index 088f0495265e..8082195114a3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "ImageClassificationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto index 32861f2b6499..637d1569e685 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto index a49c81364bd9..47d8ddcf25a4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto index 02e8ec9fb802..fad0f06ef8e6 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto index c93ccb6be96b..57dc95f678bc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto index 25c91dd711fd..8232278bb06f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/params/paramspb;paramspb"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto index b7b6d3db133e..1bd03d4de2e5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "ClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto index a5489b1bcbba..3521f7955698 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto index 77629ccffc2f..edd3a740b472 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto index 1616dfca57ce..ffdb995768ef 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "TabularClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto index 0aa04bddad53..65fd7cfcca23 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "TabularRegressionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto index e7c0cffcee15..1b42997ee8c7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "TextExtractionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto index b5b7a1458b21..23c1b68a90d8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "TextSentimentPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto index e2db5812d049..c9f641e65959 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "TimeSeriesForecastingPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto index 86ff341c2e57..30bfd9963c1b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto @@ -20,7 +20,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto index 6cff97622ea9..faac51147e7e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto @@ -20,7 +20,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto index 11e28a9aa527..6af9eea3d719 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto @@ -20,7 +20,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto index 1b874b03b6e1..1a2c9ede4f27 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto index 938ece400fc6..b80309b501c8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageObjectDetectionProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto index e368e00b66de..b4385fbc0e5b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageSegmentationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto index 5488f747fca3..5930e169902f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLTablesProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto index b57492a5f99d..61c16c434c8a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto index a367486a45af..f92b0b467e07 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextExtractionProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto index b63162d7c1f9..75563ff2a640 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextSentimentProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto index 596d0abd5a87..130a2f0ebebf 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto @@ -19,7 +19,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLForecastingProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto index ef5284b7d331..750ddfa4b928 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoActionRecognitionProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto index c6e15229147a..e69c1ab03018 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto index 7d929d2038fd..72132b3e3a4f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoObjectTrackingProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto index b88d0c4f1929..0fec2c8554e8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto @@ -18,7 +18,7 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb"; option java_multiple_files = true; option java_outer_classname = "ExportEvaluatedDataItemsConfigProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto index 0e0fe0248173..1c57376cd0f0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "SpecialistPoolProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto index 204e4de10993..01d037b812ef 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "SpecialistPoolServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto index 8d27d555bcd2..8337e9643628 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "StudyProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard.proto index ef7d56470ab6..b4bb6897f408 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard.proto @@ -22,7 +22,7 @@ import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_data.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_data.proto index 90d883bf4f3d..7bdee1604878 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_data.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_data.proto @@ -21,7 +21,7 @@ import "google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardDataProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto index 01c6007753b9..d4f40a27e982 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardExperimentProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_run.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_run.proto index d13446ae341c..5239784a138e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_run.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_run.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardRunProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_service.proto index 955e050610f8..2a150320bec7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_service.proto @@ -30,7 +30,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto index 22d01783d926..cc07a7bbe62e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TensorboardTimeSeriesProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto index b5c09f0ce3b2..42ab55457ccb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TrainingPipelineProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/types.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/types.proto index d62b772cf269..4f185561634f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/types.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/types.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "TypesProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto index 6e176608a89d..354dd926a09f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "UnmanagedContainerModelProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto index 4ecf45989c94..dab68d4c917d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "UserActionReferenceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/value.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/value.proto index 9468f580a2a6..0de95affe5a4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/value.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/value.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "ValueProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto index 2967bfafa82f..6f2f0eac399c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vizier_service.proto @@ -27,7 +27,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; option java_multiple_files = true; option java_outer_classname = "VizierServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index f2be2cf4b742..3250254e6c8c 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform", + "go_package": "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb", "java_multiple_files": true, "java_outer_classname": "VizierServiceProto", "java_package": "com.google.cloud.aiplatform.v1", @@ -14136,7 +14136,7 @@ "instance": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance", + "go_package": "cloud.google.com/go/aiplatform/apiv1/schema/predict/instance/instancepb;instancepb", "java_multiple_files": true, "java_outer_classname": "VideoObjectTrackingPredictionInstanceProto", "java_package": "com.google.cloud.aiplatform.v1.schema.predict.instance", @@ -14285,7 +14285,7 @@ "params": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1.Schema.Predict.Params", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params", + "go_package": "cloud.google.com/go/aiplatform/apiv1/schema/predict/params/paramspb;paramspb", "java_multiple_files": true, "java_outer_classname": "VideoObjectTrackingPredictionParamsProto", "java_package": "com.google.cloud.aiplatform.v1.schema.predict.params", @@ -14382,7 +14382,7 @@ "prediction": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction", + "go_package": "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb", "java_multiple_files": true, "java_outer_classname": "VideoObjectTrackingPredictionResultProto", "java_package": "com.google.cloud.aiplatform.v1.schema.predict.prediction", @@ -14628,7 +14628,7 @@ "definition": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition", + "go_package": "cloud.google.com/go/aiplatform/apiv1/schema/trainingjob/definition/definitionpb;definitionpb", "java_multiple_files": true, "java_outer_classname": "AutoMLVideoObjectTrackingProto", "java_package": "com.google.cloud.aiplatform.v1.schema.trainingjob.definition", @@ -17859,7 +17859,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform", + "go_package": "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb", "java_multiple_files": true, "java_outer_classname": "VizierServiceProto", "java_package": "com.google.cloud.aiplatform.v1beta1", @@ -32643,7 +32643,7 @@ "schema": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1Beta1.Schema", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema", + "go_package": "cloud.google.com/go/aiplatform/apiv1beta1/schema/schemapb;schemapb", "java_multiple_files": true, "java_outer_classname": "DatasetMetadataProto", "java_package": "com.google.cloud.aiplatform.v1beta1.schema", @@ -33127,7 +33127,7 @@ "instance": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance", + "go_package": "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/instance/instancepb;instancepb", "java_multiple_files": true, "java_outer_classname": "VideoObjectTrackingPredictionInstanceProto", "java_package": "com.google.cloud.aiplatform.v1beta1.schema.predict.instance", @@ -33276,7 +33276,7 @@ "params": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params", + "go_package": "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/params/paramspb;paramspb", "java_multiple_files": true, "java_outer_classname": "VideoObjectTrackingPredictionParamsProto", "java_package": "com.google.cloud.aiplatform.v1beta1.schema.predict.params", @@ -33373,7 +33373,7 @@ "prediction": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction", + "go_package": "cloud.google.com/go/aiplatform/apiv1beta1/schema/predict/prediction/predictionpb;predictionpb", "java_multiple_files": true, "java_outer_classname": "VideoObjectTrackingPredictionResultProto", "java_package": "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction", @@ -33627,7 +33627,7 @@ "definition": { "options": { "csharp_namespace": "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition", - "go_package": "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition", + "go_package": "cloud.google.com/go/aiplatform/apiv1beta1/schema/trainingjob/definition/definitionpb;definitionpb", "java_multiple_files": true, "java_outer_classname": "AutoMLVideoObjectTrackingProto", "java_package": "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition", diff --git a/packages/google-cloud-apigateway/protos/google/cloud/apigateway/v1/apigateway.proto b/packages/google-cloud-apigateway/protos/google/cloud/apigateway/v1/apigateway.proto index d1dccc740b6b..436435b2081b 100644 --- a/packages/google-cloud-apigateway/protos/google/cloud/apigateway/v1/apigateway.proto +++ b/packages/google-cloud-apigateway/protos/google/cloud/apigateway/v1/apigateway.proto @@ -22,7 +22,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ApiGateway.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/apigateway/v1;apigateway"; +option go_package = "cloud.google.com/go/apigateway/apiv1/apigatewaypb;apigatewaypb"; option java_multiple_files = true; option java_package = "com.google.cloud.apigateway.v1"; option php_namespace = "Google\\Cloud\\ApiGateway\\V1"; diff --git a/packages/google-cloud-apigateway/protos/google/cloud/apigateway/v1/apigateway_service.proto b/packages/google-cloud-apigateway/protos/google/cloud/apigateway/v1/apigateway_service.proto index 0738d7081bfd..84d8b2a9eb18 100644 --- a/packages/google-cloud-apigateway/protos/google/cloud/apigateway/v1/apigateway_service.proto +++ b/packages/google-cloud-apigateway/protos/google/cloud/apigateway/v1/apigateway_service.proto @@ -22,7 +22,7 @@ import "google/cloud/apigateway/v1/apigateway.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.ApiGateway.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/apigateway/v1;apigateway"; +option go_package = "cloud.google.com/go/apigateway/apiv1/apigatewaypb;apigatewaypb"; option java_multiple_files = true; option java_package = "com.google.cloud.apigateway.v1"; option php_namespace = "Google\\Cloud\\ApiGateway\\V1"; diff --git a/packages/google-cloud-apigateway/protos/protos.json b/packages/google-cloud-apigateway/protos/protos.json index 71d14da7e30b..35c76d7e0b9e 100644 --- a/packages/google-cloud-apigateway/protos/protos.json +++ b/packages/google-cloud-apigateway/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.ApiGateway.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/apigateway/v1;apigateway", + "go_package": "cloud.google.com/go/apigateway/apiv1/apigatewaypb;apigatewaypb", "java_multiple_files": true, "java_package": "com.google.cloud.apigateway.v1", "php_namespace": "Google\\Cloud\\ApiGateway\\V1", diff --git a/packages/google-cloud-apigeeconnect/protos/google/cloud/apigeeconnect/v1/connection.proto b/packages/google-cloud-apigeeconnect/protos/google/cloud/apigeeconnect/v1/connection.proto index 021ae3b26d19..5800b36ec650 100644 --- a/packages/google-cloud-apigeeconnect/protos/google/cloud/apigeeconnect/v1/connection.proto +++ b/packages/google-cloud-apigeeconnect/protos/google/cloud/apigeeconnect/v1/connection.proto @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.ApigeeConnect.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/apigeeconnect/v1;apigeeconnect"; +option go_package = "cloud.google.com/go/apigeeconnect/apiv1/apigeeconnectpb;apigeeconnectpb"; option java_multiple_files = true; option java_outer_classname = "ConnectionProto"; option java_package = "com.google.cloud.apigeeconnect.v1"; diff --git a/packages/google-cloud-apigeeconnect/protos/google/cloud/apigeeconnect/v1/tether.proto b/packages/google-cloud-apigeeconnect/protos/google/cloud/apigeeconnect/v1/tether.proto index 8cd4eccb87b1..abd36c822007 100644 --- a/packages/google-cloud-apigeeconnect/protos/google/cloud/apigeeconnect/v1/tether.proto +++ b/packages/google-cloud-apigeeconnect/protos/google/cloud/apigeeconnect/v1/tether.proto @@ -21,7 +21,7 @@ import "google/rpc/status.proto"; import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.ApigeeConnect.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/apigeeconnect/v1;apigeeconnect"; +option go_package = "cloud.google.com/go/apigeeconnect/apiv1/apigeeconnectpb;apigeeconnectpb"; option java_multiple_files = true; option java_outer_classname = "TetherProto"; option java_package = "com.google.cloud.apigeeconnect.v1"; diff --git a/packages/google-cloud-apigeeconnect/protos/protos.json b/packages/google-cloud-apigeeconnect/protos/protos.json index 3d6c93b357be..902258d66eae 100644 --- a/packages/google-cloud-apigeeconnect/protos/protos.json +++ b/packages/google-cloud-apigeeconnect/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.ApigeeConnect.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/apigeeconnect/v1;apigeeconnect", + "go_package": "cloud.google.com/go/apigeeconnect/apiv1/apigeeconnectpb;apigeeconnectpb", "java_multiple_files": true, "java_outer_classname": "TetherProto", "java_package": "com.google.cloud.apigeeconnect.v1", diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1/asset_service.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1/asset_service.proto index 8539dc0f51d4..d024e6a0fec8 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1/asset_service.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1/asset_service.proto @@ -32,7 +32,7 @@ import "google/rpc/status.proto"; import "google/type/expr.proto"; option csharp_namespace = "Google.Cloud.Asset.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetServiceProto"; option java_package = "com.google.cloud.asset.v1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1/assets.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1/assets.proto index 9e777428918d..e540bf60df82 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1/assets.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1/assets.proto @@ -30,7 +30,7 @@ import "google/rpc/code.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Asset.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetProto"; option java_package = "com.google.cloud.asset.v1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/asset_service.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/asset_service.proto index b7366dbd7cbc..e3b256f88e88 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/asset_service.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/asset_service.proto @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto"; import "google/cloud/asset/v1p1beta1/assets.proto"; option csharp_namespace = "Google.Cloud.Asset.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p1beta1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1p1beta1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetServiceProto"; option java_package = "com.google.cloud.asset.v1p1beta1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/assets.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/assets.proto index d2fb98e072de..b1000893066c 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/assets.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1p1beta1/assets.proto @@ -20,7 +20,7 @@ import "google/iam/v1/policy.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Asset.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p1beta1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1p1beta1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetProto"; option java_package = "com.google.cloud.asset.v1p1beta1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1p2beta1/asset_service.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1p2beta1/asset_service.proto index 92f285f86524..025af806226d 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1p2beta1/asset_service.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1p2beta1/asset_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Asset.V1p2Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p2beta1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1p2beta1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetServiceProto"; option java_package = "com.google.cloud.asset.v1p2beta1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1p2beta1/assets.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1p2beta1/assets.proto index bc2a9c511f28..abeb14569265 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1p2beta1/assets.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1p2beta1/assets.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Asset.v1p2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p2beta1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1p2beta1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetProto"; option java_package = "com.google.cloud.asset.v1p2beta1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/asset_service.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/asset_service.proto index 9a28cdb6ef3a..86bf48920b77 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/asset_service.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/asset_service.proto @@ -24,7 +24,7 @@ import "google/cloud/asset/v1p5beta1/assets.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Asset.V1P5Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p5beta1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1p5beta1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetServiceProto"; option java_package = "com.google.cloud.asset.v1p5beta1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/assets.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/assets.proto index 35faabebf584..b277e308324d 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/assets.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1p5beta1/assets.proto @@ -26,7 +26,7 @@ import "google/protobuf/struct.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Asset.V1p5Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p5beta1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1p5beta1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetProto"; option java_package = "com.google.cloud.asset.v1p5beta1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/asset_service.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/asset_service.proto index d184cf8ff8de..46333d1c112c 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/asset_service.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/asset_service.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Asset.V1P7Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p7beta1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1p7beta1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetServiceProto"; option java_package = "com.google.cloud.asset.v1p7beta1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/assets.proto b/packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/assets.proto index 710a37acd7ba..275d955e10de 100644 --- a/packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/assets.proto +++ b/packages/google-cloud-asset/protos/google/cloud/asset/v1p7beta1/assets.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Asset.V1P7Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/asset/v1p7beta1;asset"; +option go_package = "cloud.google.com/go/asset/apiv1p7beta1/assetpb;assetpb"; option java_multiple_files = true; option java_outer_classname = "AssetProto"; option java_package = "com.google.cloud.asset.v1p7beta1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/inventory.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/inventory.proto index 92c2b81c8323..2807b85cb598 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/inventory.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/inventory.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "Inventories"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy.proto index de0db191797d..f1911199686b 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy.proto @@ -19,7 +19,7 @@ package google.cloud.osconfig.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OsPolicyProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto index aa4b2b11b4e8..c7f102b2d679 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OSPolicyAssignmentReportsProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy_assignments.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy_assignments.proto index 157b8fd39894..73e10aeb6a3f 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy_assignments.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/os_policy_assignments.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OsPolicyAssignmentsProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_common.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_common.proto index 2b72d6ae9451..baa6e37294b0 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_common.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_common.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.osconfig.v1; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_outer_classname = "Common"; option java_package = "com.google.cloud.osconfig.v1"; option php_namespace = "Google\\Cloud\\OsConfig\\V1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_service.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_service.proto index 515905c87d5a..c6afe3fa5b6a 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_service.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_service.proto @@ -24,7 +24,7 @@ import "google/protobuf/empty.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_outer_classname = "OsConfigProto"; option java_package = "com.google.cloud.osconfig.v1"; option php_namespace = "Google\\Cloud\\OsConfig\\V1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto index 196737c19412..671ed3c0d93e 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto @@ -25,7 +25,7 @@ import "google/cloud/osconfig/v1/vulnerability.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OsConfigZonalServiceProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/patch_deployments.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/patch_deployments.proto index d5708544f8ba..ac45652d9d78 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/patch_deployments.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/patch_deployments.proto @@ -27,7 +27,7 @@ import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_outer_classname = "PatchDeployments"; option java_package = "com.google.cloud.osconfig.v1"; option php_namespace = "Google\\Cloud\\OsConfig\\V1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/patch_jobs.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/patch_jobs.proto index 4edfc8df5557..7c0b3400713e 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/patch_jobs.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/patch_jobs.proto @@ -23,7 +23,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_outer_classname = "PatchJobs"; option java_package = "com.google.cloud.osconfig.v1"; option php_namespace = "Google\\Cloud\\OsConfig\\V1"; diff --git a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/vulnerability.proto b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/vulnerability.proto index b8ca5175ce04..b758df3bad00 100644 --- a/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/vulnerability.proto +++ b/packages/google-cloud-asset/protos/google/cloud/osconfig/v1/vulnerability.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "VulnerabilityProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-asset/protos/protos.json b/packages/google-cloud-asset/protos/protos.json index 196d1392abb1..ea44b1799a5d 100644 --- a/packages/google-cloud-asset/protos/protos.json +++ b/packages/google-cloud-asset/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.Asset.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/asset/v1;asset", + "go_package": "cloud.google.com/go/asset/apiv1/assetpb;assetpb", "java_multiple_files": true, "java_outer_classname": "AssetProto", "java_package": "com.google.cloud.asset.v1", @@ -2944,7 +2944,7 @@ "v1p1beta1": { "options": { "csharp_namespace": "Google.Cloud.Asset.V1P1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/asset/v1p1beta1;asset", + "go_package": "cloud.google.com/go/asset/apiv1p1beta1/assetpb;assetpb", "java_multiple_files": true, "java_outer_classname": "AssetProto", "java_package": "com.google.cloud.asset.v1p1beta1", @@ -3189,7 +3189,7 @@ "v1p2beta1": { "options": { "csharp_namespace": "Google.Cloud.Asset.v1p2beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/asset/v1p2beta1;asset", + "go_package": "cloud.google.com/go/asset/apiv1p2beta1/assetpb;assetpb", "java_multiple_files": true, "java_outer_classname": "AssetProto", "java_package": "com.google.cloud.asset.v1p2beta1", @@ -4059,7 +4059,7 @@ "v1p5beta1": { "options": { "csharp_namespace": "Google.Cloud.Asset.V1p5Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/asset/v1p5beta1;asset", + "go_package": "cloud.google.com/go/asset/apiv1p5beta1/assetpb;assetpb", "java_multiple_files": true, "java_outer_classname": "AssetProto", "java_package": "com.google.cloud.asset.v1p5beta1", @@ -4240,7 +4240,7 @@ "v1p7beta1": { "options": { "csharp_namespace": "Google.Cloud.Asset.V1P7Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/asset/v1p7beta1;asset", + "go_package": "cloud.google.com/go/asset/apiv1p7beta1/assetpb;assetpb", "java_multiple_files": true, "java_outer_classname": "AssetProto", "java_package": "com.google.cloud.asset.v1p7beta1", @@ -4717,7 +4717,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.OsConfig.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig", + "go_package": "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb", "java_multiple_files": true, "java_outer_classname": "Inventories", "java_package": "com.google.cloud.osconfig.v1", diff --git a/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1/assuredworkloads.proto b/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1/assuredworkloads.proto index f6349f35fd57..2700056cac47 100644 --- a/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1/assuredworkloads.proto +++ b/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1/assuredworkloads.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AssuredWorkloads.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/assuredworkloads/v1;assuredworkloads"; +option go_package = "cloud.google.com/go/assuredworkloads/apiv1/assuredworkloadspb;assuredworkloadspb"; option java_multiple_files = true; option java_outer_classname = "AssuredworkloadsProto"; option java_package = "com.google.cloud.assuredworkloads.v1"; diff --git a/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto b/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto index e6a83fae4ee8..c33caa0aaa24 100644 --- a/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto +++ b/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto @@ -23,7 +23,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AssuredWorkloads.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/assuredworkloads/v1beta1;assuredworkloads"; +option go_package = "cloud.google.com/go/assuredworkloads/apiv1beta1/assuredworkloadspb;assuredworkloadspb"; option java_multiple_files = true; option java_outer_classname = "AssuredworkloadsProto"; option java_package = "com.google.cloud.assuredworkloads.v1beta1"; diff --git a/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto b/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto index 1af45f12a03f..e62a64a6dd2a 100644 --- a/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto +++ b/packages/google-cloud-assuredworkloads/protos/google/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto @@ -23,7 +23,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; option csharp_namespace = "Google.Cloud.AssuredWorkloads.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/assuredworkloads/v1beta1;assuredworkloads"; +option go_package = "cloud.google.com/go/assuredworkloads/apiv1beta1/assuredworkloadspb;assuredworkloadspb"; option java_multiple_files = true; option java_outer_classname = "AssuredworkloadsServiceProto"; option java_package = "com.google.cloud.assuredworkloads.v1beta1"; diff --git a/packages/google-cloud-assuredworkloads/protos/protos.json b/packages/google-cloud-assuredworkloads/protos/protos.json index 2bde22887ae5..82dae2d5ad04 100644 --- a/packages/google-cloud-assuredworkloads/protos/protos.json +++ b/packages/google-cloud-assuredworkloads/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.AssuredWorkloads.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/assuredworkloads/v1;assuredworkloads", + "go_package": "cloud.google.com/go/assuredworkloads/apiv1/assuredworkloadspb;assuredworkloadspb", "java_multiple_files": true, "java_outer_classname": "AssuredworkloadsProto", "java_package": "com.google.cloud.assuredworkloads.v1", @@ -931,7 +931,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.AssuredWorkloads.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/assuredworkloads/v1beta1;assuredworkloads", + "go_package": "cloud.google.com/go/assuredworkloads/apiv1beta1/assuredworkloadspb;assuredworkloadspb", "java_multiple_files": true, "java_outer_classname": "AssuredworkloadsServiceProto", "java_package": "com.google.cloud.assuredworkloads.v1beta1", diff --git a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/baremetalsolution.proto b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/baremetalsolution.proto index 87e0f8d5b3a2..975145b63f80 100644 --- a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/baremetalsolution.proto +++ b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/baremetalsolution.proto @@ -28,7 +28,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option go_package = "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb"; option java_multiple_files = true; option java_outer_classname = "BareMetalSolutionProto"; option java_package = "com.google.cloud.baremetalsolution.v2"; diff --git a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/instance.proto b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/instance.proto index 49105bd8ca14..364029ee6ff0 100644 --- a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/instance.proto +++ b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/instance.proto @@ -24,7 +24,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option go_package = "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb"; option java_multiple_files = true; option java_outer_classname = "InstanceProto"; option java_package = "com.google.cloud.baremetalsolution.v2"; diff --git a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/lun.proto b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/lun.proto index c165a5030812..11bcf7466087 100644 --- a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/lun.proto +++ b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/lun.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option go_package = "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb"; option java_multiple_files = true; option java_outer_classname = "LunProto"; option java_package = "com.google.cloud.baremetalsolution.v2"; diff --git a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/network.proto b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/network.proto index 3f240de01ba2..e46eab9af15d 100644 --- a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/network.proto +++ b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/network.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option go_package = "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb"; option java_multiple_files = true; option java_outer_classname = "NetworkProto"; option java_package = "com.google.cloud.baremetalsolution.v2"; diff --git a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/nfs_share.proto b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/nfs_share.proto index 29d2a808dddf..f8a63e8e5cc8 100644 --- a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/nfs_share.proto +++ b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/nfs_share.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option go_package = "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb"; option java_multiple_files = true; option java_outer_classname = "NfsShareProto"; option java_package = "com.google.cloud.baremetalsolution.v2"; diff --git a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/volume.proto b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/volume.proto index 39d66f9ceed8..8920a6f153d2 100644 --- a/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/volume.proto +++ b/packages/google-cloud-baremetalsolution/protos/google/cloud/baremetalsolution/v2/volume.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option go_package = "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb"; option java_multiple_files = true; option java_outer_classname = "VolumeProto"; option java_package = "com.google.cloud.baremetalsolution.v2"; diff --git a/packages/google-cloud-baremetalsolution/protos/protos.json b/packages/google-cloud-baremetalsolution/protos/protos.json index 316d4863dbd0..f301c36589fd 100644 --- a/packages/google-cloud-baremetalsolution/protos/protos.json +++ b/packages/google-cloud-baremetalsolution/protos/protos.json @@ -9,7 +9,7 @@ "v2": { "options": { "csharp_namespace": "Google.Cloud.BareMetalSolution.V2", - "go_package": "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution", + "go_package": "cloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb", "java_multiple_files": true, "java_outer_classname": "VolumeProto", "java_package": "com.google.cloud.baremetalsolution.v2", diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1/batch.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1/batch.proto index 1877f6fe91ff..9eb8770b8339 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1/batch.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1/batch.proto @@ -28,7 +28,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Batch.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1;batch"; +option go_package = "cloud.google.com/go/batch/apiv1/batchpb;batchpb"; option java_multiple_files = true; option java_outer_classname = "BatchProto"; option java_package = "com.google.cloud.batch.v1"; diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto index 8f97f546e19b..c531b4979c55 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto @@ -23,7 +23,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Batch.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1;batch"; +option go_package = "cloud.google.com/go/batch/apiv1/batchpb;batchpb"; option java_multiple_files = true; option java_outer_classname = "JobProto"; option java_package = "com.google.cloud.batch.v1"; diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto index 1085bfcb0832..a468c3fcf0e2 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Batch.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1;batch"; +option go_package = "cloud.google.com/go/batch/apiv1/batchpb;batchpb"; option java_multiple_files = true; option java_outer_classname = "TaskProto"; option java_package = "com.google.cloud.batch.v1"; diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1/volume.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1/volume.proto index 7b6ebac48fba..77413de823a6 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1/volume.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1/volume.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.batch.v1; option csharp_namespace = "Google.Cloud.Batch.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1;batch"; +option go_package = "cloud.google.com/go/batch/apiv1/batchpb;batchpb"; option java_multiple_files = true; option java_outer_classname = "VolumeProto"; option java_package = "com.google.cloud.batch.v1"; diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/batch.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/batch.proto index 5017de51d25a..3897c112ac81 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/batch.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/batch.proto @@ -28,7 +28,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Batch.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha;batch"; +option go_package = "cloud.google.com/go/batch/apiv1alpha/batchpb;batchpb"; option java_multiple_files = true; option java_outer_classname = "BatchProto"; option java_package = "com.google.cloud.batch.v1alpha"; diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto index b3af4a4b6634..5fe0b1c76503 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto @@ -23,7 +23,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Batch.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha;batch"; +option go_package = "cloud.google.com/go/batch/apiv1alpha/batchpb;batchpb"; option java_multiple_files = true; option java_outer_classname = "JobProto"; option java_package = "com.google.cloud.batch.v1alpha"; diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/task.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/task.proto index a28545ad4957..d43795bce8ea 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/task.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/task.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Batch.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha;batch"; +option go_package = "cloud.google.com/go/batch/apiv1alpha/batchpb;batchpb"; option java_multiple_files = true; option java_outer_classname = "TaskProto"; option java_package = "com.google.cloud.batch.v1alpha"; diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/volume.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/volume.proto index 4112d2363a61..11ef3a8cf729 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/volume.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/volume.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.batch.v1alpha; option csharp_namespace = "Google.Cloud.Batch.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha;batch"; +option go_package = "cloud.google.com/go/batch/apiv1alpha/batchpb;batchpb"; option java_multiple_files = true; option java_outer_classname = "VolumeProto"; option java_package = "com.google.cloud.batch.v1alpha"; diff --git a/packages/google-cloud-batch/protos/protos.json b/packages/google-cloud-batch/protos/protos.json index db9ffe2c42ab..333c70fbd4e4 100644 --- a/packages/google-cloud-batch/protos/protos.json +++ b/packages/google-cloud-batch/protos/protos.json @@ -981,7 +981,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.Batch.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/batch/v1;batch", + "go_package": "cloud.google.com/go/batch/apiv1/batchpb;batchpb", "java_multiple_files": true, "java_outer_classname": "VolumeProto", "java_package": "com.google.cloud.batch.v1", @@ -2133,7 +2133,7 @@ "v1alpha": { "options": { "csharp_namespace": "Google.Cloud.Batch.V1Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/batch/v1alpha;batch", + "go_package": "cloud.google.com/go/batch/apiv1alpha/batchpb;batchpb", "java_multiple_files": true, "java_outer_classname": "VolumeProto", "java_package": "com.google.cloud.batch.v1alpha", diff --git a/packages/google-cloud-beyondcorp-appconnections/protos/google/cloud/beyondcorp/appconnections/v1/app_connections_service.proto b/packages/google-cloud-beyondcorp-appconnections/protos/google/cloud/beyondcorp/appconnections/v1/app_connections_service.proto index 48143604a5d7..c0db64fb5652 100644 --- a/packages/google-cloud-beyondcorp-appconnections/protos/google/cloud/beyondcorp/appconnections/v1/app_connections_service.proto +++ b/packages/google-cloud-beyondcorp-appconnections/protos/google/cloud/beyondcorp/appconnections/v1/app_connections_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.BeyondCorp.AppConnections.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/beyondcorp/appconnections/v1;appconnections"; +option go_package = "cloud.google.com/go/beyondcorp/appconnections/apiv1/appconnectionspb;appconnectionspb"; option java_multiple_files = true; option java_outer_classname = "AppConnectionsServiceProto"; option java_package = "com.google.cloud.beyondcorp.appconnections.v1"; diff --git a/packages/google-cloud-beyondcorp-appconnections/protos/protos.json b/packages/google-cloud-beyondcorp-appconnections/protos/protos.json index 29f6df6799d3..1430fae45351 100644 --- a/packages/google-cloud-beyondcorp-appconnections/protos/protos.json +++ b/packages/google-cloud-beyondcorp-appconnections/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BeyondCorp.AppConnections.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/beyondcorp/appconnections/v1;appconnections", + "go_package": "cloud.google.com/go/beyondcorp/appconnections/apiv1/appconnectionspb;appconnectionspb", "java_multiple_files": true, "java_outer_classname": "AppConnectionsServiceProto", "java_package": "com.google.cloud.beyondcorp.appconnections.v1", diff --git a/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config.proto b/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config.proto index 7e183063fd27..21c91061936b 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config.proto +++ b/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/any.proto"; option csharp_namespace = "Google.Cloud.BeyondCorp.AppConnectors.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/beyondcorp/appconnectors/v1;appconnectors"; +option go_package = "cloud.google.com/go/beyondcorp/appconnectors/apiv1/appconnectorspb;appconnectorspb"; option java_multiple_files = true; option java_outer_classname = "AppConnectorInstanceConfigProto"; option java_package = "com.google.cloud.beyondcorp.appconnectors.v1"; diff --git a/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.proto b/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.proto index 54634f867983..152cccb7e922 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.proto +++ b/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/app_connectors_service.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.BeyondCorp.AppConnectors.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/beyondcorp/appconnectors/v1;appconnectors"; +option go_package = "cloud.google.com/go/beyondcorp/appconnectors/apiv1/appconnectorspb;appconnectorspb"; option java_multiple_files = true; option java_outer_classname = "AppConnectorsServiceProto"; option java_package = "com.google.cloud.beyondcorp.appconnectors.v1"; diff --git a/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/resource_info.proto b/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/resource_info.proto index d7f26d53cfee..0156412ad10e 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/resource_info.proto +++ b/packages/google-cloud-beyondcorp-appconnectors/protos/google/cloud/beyondcorp/appconnectors/v1/resource_info.proto @@ -21,7 +21,7 @@ import "google/protobuf/any.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.BeyondCorp.AppConnectors.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/beyondcorp/appconnectors/v1;appconnectors"; +option go_package = "cloud.google.com/go/beyondcorp/appconnectors/apiv1/appconnectorspb;appconnectorspb"; option java_multiple_files = true; option java_outer_classname = "ResourceInfoProto"; option java_package = "com.google.cloud.beyondcorp.appconnectors.v1"; diff --git a/packages/google-cloud-beyondcorp-appconnectors/protos/protos.json b/packages/google-cloud-beyondcorp-appconnectors/protos/protos.json index 7395d7e8c0ed..408a63431c8e 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/protos/protos.json +++ b/packages/google-cloud-beyondcorp-appconnectors/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BeyondCorp.AppConnectors.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/beyondcorp/appconnectors/v1;appconnectors", + "go_package": "cloud.google.com/go/beyondcorp/appconnectors/apiv1/appconnectorspb;appconnectorspb", "java_multiple_files": true, "java_outer_classname": "ResourceInfoProto", "java_package": "com.google.cloud.beyondcorp.appconnectors.v1", diff --git a/packages/google-cloud-beyondcorp-appgateways/protos/google/cloud/beyondcorp/appgateways/v1/app_gateways_service.proto b/packages/google-cloud-beyondcorp-appgateways/protos/google/cloud/beyondcorp/appgateways/v1/app_gateways_service.proto index fa21383bfc72..6b122fab78e1 100644 --- a/packages/google-cloud-beyondcorp-appgateways/protos/google/cloud/beyondcorp/appgateways/v1/app_gateways_service.proto +++ b/packages/google-cloud-beyondcorp-appgateways/protos/google/cloud/beyondcorp/appgateways/v1/app_gateways_service.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.BeyondCorp.AppGateways.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/beyondcorp/appgateways/v1;appgateways"; +option go_package = "cloud.google.com/go/beyondcorp/appgateways/apiv1/appgatewayspb;appgatewayspb"; option java_multiple_files = true; option java_outer_classname = "AppGatewaysServiceProto"; option java_package = "com.google.cloud.beyondcorp.appgateways.v1"; diff --git a/packages/google-cloud-beyondcorp-appgateways/protos/protos.json b/packages/google-cloud-beyondcorp-appgateways/protos/protos.json index c4c4a5dcab61..264e9c8398c0 100644 --- a/packages/google-cloud-beyondcorp-appgateways/protos/protos.json +++ b/packages/google-cloud-beyondcorp-appgateways/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BeyondCorp.AppGateways.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/beyondcorp/appgateways/v1;appgateways", + "go_package": "cloud.google.com/go/beyondcorp/appgateways/apiv1/appgatewayspb;appgatewayspb", "java_multiple_files": true, "java_outer_classname": "AppGatewaysServiceProto", "java_package": "com.google.cloud.beyondcorp.appgateways.v1", diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/protos/google/cloud/beyondcorp/clientconnectorservices/v1/client_connector_services_service.proto b/packages/google-cloud-beyondcorp-clientconnectorservices/protos/google/cloud/beyondcorp/clientconnectorservices/v1/client_connector_services_service.proto index 87932f735de2..ffacd5ac1641 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/protos/google/cloud/beyondcorp/clientconnectorservices/v1/client_connector_services_service.proto +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/protos/google/cloud/beyondcorp/clientconnectorservices/v1/client_connector_services_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.BeyondCorp.ClientConnectorServices.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/beyondcorp/clientconnectorservices/v1;clientconnectorservices"; +option go_package = "cloud.google.com/go/beyondcorp/clientconnectorservices/apiv1/clientconnectorservicespb;clientconnectorservicespb"; option java_multiple_files = true; option java_outer_classname = "ClientConnectorServicesServiceProto"; option java_package = "com.google.cloud.beyondcorp.clientconnectorservices.v1"; diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/protos/protos.json b/packages/google-cloud-beyondcorp-clientconnectorservices/protos/protos.json index 197103646eb4..284ac86840a3 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/protos/protos.json +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BeyondCorp.ClientConnectorServices.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/beyondcorp/clientconnectorservices/v1;clientconnectorservices", + "go_package": "cloud.google.com/go/beyondcorp/clientconnectorservices/apiv1/clientconnectorservicespb;clientconnectorservicespb", "java_multiple_files": true, "java_outer_classname": "ClientConnectorServicesServiceProto", "java_package": "com.google.cloud.beyondcorp.clientconnectorservices.v1", diff --git a/packages/google-cloud-beyondcorp-clientgateways/protos/google/cloud/beyondcorp/clientgateways/v1/client_gateways_service.proto b/packages/google-cloud-beyondcorp-clientgateways/protos/google/cloud/beyondcorp/clientgateways/v1/client_gateways_service.proto index 8ce25bb1ed9e..23cf54ceb9cb 100644 --- a/packages/google-cloud-beyondcorp-clientgateways/protos/google/cloud/beyondcorp/clientgateways/v1/client_gateways_service.proto +++ b/packages/google-cloud-beyondcorp-clientgateways/protos/google/cloud/beyondcorp/clientgateways/v1/client_gateways_service.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.BeyondCorp.ClientGateways.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/beyondcorp/clientgateways/v1;clientgateways"; +option go_package = "cloud.google.com/go/beyondcorp/clientgateways/apiv1/clientgatewayspb;clientgatewayspb"; option java_multiple_files = true; option java_outer_classname = "ClientGatewaysServiceProto"; option java_package = "com.google.cloud.beyondcorp.clientgateways.v1"; diff --git a/packages/google-cloud-beyondcorp-clientgateways/protos/protos.json b/packages/google-cloud-beyondcorp-clientgateways/protos/protos.json index d6634438c91d..3743b2f49dfe 100644 --- a/packages/google-cloud-beyondcorp-clientgateways/protos/protos.json +++ b/packages/google-cloud-beyondcorp-clientgateways/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BeyondCorp.ClientGateways.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/beyondcorp/clientgateways/v1;clientgateways", + "go_package": "cloud.google.com/go/beyondcorp/clientgateways/apiv1/clientgatewayspb;clientgatewayspb", "java_multiple_files": true, "java_outer_classname": "ClientGatewaysServiceProto", "java_package": "com.google.cloud.beyondcorp.clientgateways.v1", diff --git a/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/analyticshub.proto b/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/analyticshub.proto index 7adf65844432..bd1882a69cb0 100644 --- a/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/analyticshub.proto +++ b/packages/google-cloud-bigquery-analyticshub/protos/google/cloud/bigquery/analyticshub/v1/analyticshub.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.BigQuery.AnalyticsHub.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/analyticshub/v1;analyticshub"; +option go_package = "cloud.google.com/go/bigquery/analyticshub/apiv1/analyticshubpb;analyticshubpb"; option java_multiple_files = true; option java_outer_classname = "AnalyticsHubProto"; option java_package = "com.google.cloud.bigquery.analyticshub.v1"; diff --git a/packages/google-cloud-bigquery-analyticshub/protos/protos.json b/packages/google-cloud-bigquery-analyticshub/protos/protos.json index 80c8d19216f2..84deb0e1c0dc 100644 --- a/packages/google-cloud-bigquery-analyticshub/protos/protos.json +++ b/packages/google-cloud-bigquery-analyticshub/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BigQuery.AnalyticsHub.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/bigquery/analyticshub/v1;analyticshub", + "go_package": "cloud.google.com/go/bigquery/analyticshub/apiv1/analyticshubpb;analyticshubpb", "java_multiple_files": true, "java_outer_classname": "AnalyticsHubProto", "java_package": "com.google.cloud.bigquery.analyticshub.v1", diff --git a/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1/connection.proto b/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1/connection.proto index ee0dba14ad83..8350c3950ead 100644 --- a/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1/connection.proto +++ b/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1/connection.proto @@ -26,7 +26,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.BigQuery.Connection.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1;connection"; +option go_package = "cloud.google.com/go/bigquery/connection/apiv1/connectionpb;connectionpb"; option java_multiple_files = true; option java_package = "com.google.cloud.bigquery.connection.v1"; option php_namespace = "Google\\Cloud\\BigQuery\\Connection\\V1"; diff --git a/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1beta1/connection.proto b/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1beta1/connection.proto index eda714db7d46..4692cddb84a4 100644 --- a/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1beta1/connection.proto +++ b/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1beta1/connection.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.BigQuery.Connection.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1beta1;connection"; +option go_package = "cloud.google.com/go/bigquery/connection/apiv1beta1/connectionpb;connectionpb"; option java_outer_classname = "ConnectionProto"; option java_package = "com.google.cloud.bigquery.connection.v1beta1"; option php_namespace = "Google\\Cloud\\BigQuery\\Connection\\V1beta1"; diff --git a/packages/google-cloud-bigquery-connection/protos/protos.json b/packages/google-cloud-bigquery-connection/protos/protos.json index a881fa3b7192..cb3cdc9934dd 100644 --- a/packages/google-cloud-bigquery-connection/protos/protos.json +++ b/packages/google-cloud-bigquery-connection/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BigQuery.Connection.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1;connection", + "go_package": "cloud.google.com/go/bigquery/connection/apiv1/connectionpb;connectionpb", "java_multiple_files": true, "java_package": "com.google.cloud.bigquery.connection.v1", "php_namespace": "Google\\Cloud\\BigQuery\\Connection\\V1" @@ -543,7 +543,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.BigQuery.Connection.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1beta1;connection", + "go_package": "cloud.google.com/go/bigquery/connection/apiv1beta1/connectionpb;connectionpb", "java_outer_classname": "ConnectionProto", "java_package": "com.google.cloud.bigquery.connection.v1beta1", "php_namespace": "Google\\Cloud\\BigQuery\\Connection\\V1beta1" diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js b/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js index 1560924a8eb9..d6430b2c1a59 100644 --- a/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js +++ b/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js @@ -1,4 +1,3 @@ - // Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/packages/google-cloud-bigquery-dataexchange/protos/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto b/packages/google-cloud-bigquery-dataexchange/protos/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto index f18a0e49e09f..73bc87d1c731 100644 --- a/packages/google-cloud-bigquery-dataexchange/protos/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto +++ b/packages/google-cloud-bigquery-dataexchange/protos/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.BigQuery.DataExchange.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/dataexchange/v1beta1;dataexchange"; +option go_package = "cloud.google.com/go/bigquery/dataexchange/apiv1beta1/dataexchangepb;dataexchangepb"; option java_multiple_files = true; option java_outer_classname = "DataExchangeProto"; option java_package = "com.google.cloud.bigquery.dataexchange.v1beta1"; diff --git a/packages/google-cloud-bigquery-dataexchange/protos/protos.json b/packages/google-cloud-bigquery-dataexchange/protos/protos.json index 31dbbb40dd5c..bc34599813e8 100644 --- a/packages/google-cloud-bigquery-dataexchange/protos/protos.json +++ b/packages/google-cloud-bigquery-dataexchange/protos/protos.json @@ -11,7 +11,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.BigQuery.DataExchange.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/bigquery/dataexchange/v1beta1;dataexchange", + "go_package": "cloud.google.com/go/bigquery/dataexchange/apiv1beta1/dataexchangepb;dataexchangepb", "java_multiple_files": true, "java_outer_classname": "DataExchangeProto", "java_package": "com.google.cloud.bigquery.dataexchange.v1beta1", diff --git a/packages/google-cloud-bigquery-datapolicies/protos/google/cloud/bigquery/datapolicies/v1/datapolicy.proto b/packages/google-cloud-bigquery-datapolicies/protos/google/cloud/bigquery/datapolicies/v1/datapolicy.proto index cd79acfba307..1677e7eb7a41 100644 --- a/packages/google-cloud-bigquery-datapolicies/protos/google/cloud/bigquery/datapolicies/v1/datapolicy.proto +++ b/packages/google-cloud-bigquery-datapolicies/protos/google/cloud/bigquery/datapolicies/v1/datapolicy.proto @@ -26,7 +26,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.BigQuery.DataPolicies.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/datapolicies/v1;datapolicies"; +option go_package = "cloud.google.com/go/bigquery/datapolicies/apiv1/datapoliciespb;datapoliciespb"; option java_multiple_files = true; option java_outer_classname = "DataPolicyProto"; option java_package = "com.google.cloud.bigquery.datapolicies.v1"; diff --git a/packages/google-cloud-bigquery-datapolicies/protos/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto b/packages/google-cloud-bigquery-datapolicies/protos/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto index 363f15c5ce94..b149fe47595c 100644 --- a/packages/google-cloud-bigquery-datapolicies/protos/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto +++ b/packages/google-cloud-bigquery-datapolicies/protos/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto @@ -26,7 +26,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.BigQuery.DataPolicies.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/datapolicies/v1beta1;datapolicies"; +option go_package = "cloud.google.com/go/bigquery/datapolicies/apiv1beta1/datapoliciespb;datapoliciespb"; option java_multiple_files = true; option java_outer_classname = "DataPolicyProto"; option java_package = "com.google.cloud.bigquery.datapolicies.v1beta1"; diff --git a/packages/google-cloud-bigquery-datapolicies/protos/protos.json b/packages/google-cloud-bigquery-datapolicies/protos/protos.json index e36f69c175e4..7432f9174997 100644 --- a/packages/google-cloud-bigquery-datapolicies/protos/protos.json +++ b/packages/google-cloud-bigquery-datapolicies/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BigQuery.DataPolicies.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/bigquery/datapolicies/v1;datapolicies", + "go_package": "cloud.google.com/go/bigquery/datapolicies/apiv1/datapoliciespb;datapoliciespb", "java_multiple_files": true, "java_outer_classname": "DataPolicyProto", "java_package": "com.google.cloud.bigquery.datapolicies.v1", @@ -384,7 +384,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.BigQuery.DataPolicies.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/bigquery/datapolicies/v1beta1;datapolicies", + "go_package": "cloud.google.com/go/bigquery/datapolicies/apiv1beta1/datapoliciespb;datapoliciespb", "java_multiple_files": true, "java_outer_classname": "DataPolicyProto", "java_package": "com.google.cloud.bigquery.datapolicies.v1beta1", diff --git a/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto b/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto index 0ac1c3d72f8c..7400e45f05a1 100644 --- a/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto +++ b/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/datatransfer.proto @@ -28,7 +28,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.BigQuery.DataTransfer.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer"; +option go_package = "cloud.google.com/go/bigquery/datatransfer/apiv1/datatransferpb;datatransferpb"; option java_multiple_files = true; option java_outer_classname = "DataTransferProto"; option java_package = "com.google.cloud.bigquery.datatransfer.v1"; diff --git a/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/transfer.proto b/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/transfer.proto index a73c3455996e..4c9eca8cf5e1 100644 --- a/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/transfer.proto +++ b/packages/google-cloud-bigquery-datatransfer/protos/google/cloud/bigquery/datatransfer/v1/transfer.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.BigQuery.DataTransfer.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer"; +option go_package = "cloud.google.com/go/bigquery/datatransfer/apiv1/datatransferpb;datatransferpb"; option java_multiple_files = true; option java_outer_classname = "TransferProto"; option java_package = "com.google.cloud.bigquery.datatransfer.v1"; diff --git a/packages/google-cloud-bigquery-datatransfer/protos/protos.json b/packages/google-cloud-bigquery-datatransfer/protos/protos.json index 0c10300be096..2ea68d27a57d 100644 --- a/packages/google-cloud-bigquery-datatransfer/protos/protos.json +++ b/packages/google-cloud-bigquery-datatransfer/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BigQuery.DataTransfer.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1;datatransfer", + "go_package": "cloud.google.com/go/bigquery/datatransfer/apiv1/datatransferpb;datatransferpb", "java_multiple_files": true, "java_outer_classname": "TransferProto", "java_package": "com.google.cloud.bigquery.datatransfer.v1", diff --git a/packages/google-cloud-bigquery-reservation/protos/google/cloud/bigquery/reservation/v1/reservation.proto b/packages/google-cloud-bigquery-reservation/protos/google/cloud/bigquery/reservation/v1/reservation.proto index 7276c30b5723..013095ef3cd3 100644 --- a/packages/google-cloud-bigquery-reservation/protos/google/cloud/bigquery/reservation/v1/reservation.proto +++ b/packages/google-cloud-bigquery-reservation/protos/google/cloud/bigquery/reservation/v1/reservation.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.BigQuery.Reservation.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/reservation/v1;reservation"; +option go_package = "cloud.google.com/go/bigquery/reservation/apiv1/reservationpb;reservationpb"; option java_multiple_files = true; option java_outer_classname = "ReservationProto"; option java_package = "com.google.cloud.bigquery.reservation.v1"; diff --git a/packages/google-cloud-bigquery-reservation/protos/protos.json b/packages/google-cloud-bigquery-reservation/protos/protos.json index f2d4d04d1423..12f24fa7e772 100644 --- a/packages/google-cloud-bigquery-reservation/protos/protos.json +++ b/packages/google-cloud-bigquery-reservation/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.BigQuery.Reservation.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/bigquery/reservation/v1;reservation", + "go_package": "cloud.google.com/go/bigquery/reservation/apiv1/reservationpb;reservationpb", "java_multiple_files": true, "java_outer_classname": "ReservationProto", "java_package": "com.google.cloud.bigquery.reservation.v1", diff --git a/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1/budget_model.proto b/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1/budget_model.proto index 6758f5ca967b..6fd3f0b1a5c3 100644 --- a/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1/budget_model.proto +++ b/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1/budget_model.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/type/date.proto"; import "google/type/money.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1;budgets"; +option go_package = "cloud.google.com/go/billing/budgets/apiv1/budgetspb;budgetspb"; option java_multiple_files = true; option java_outer_classname = "BudgetModelProto"; option java_package = "com.google.cloud.billing.budgets.v1"; diff --git a/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1/budget_service.proto b/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1/budget_service.proto index a4b512b8a6fa..c5dd2f85c95f 100644 --- a/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1/budget_service.proto +++ b/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1/budget_service.proto @@ -24,7 +24,7 @@ import "google/cloud/billing/budgets/v1/budget_model.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1;budgets"; +option go_package = "cloud.google.com/go/billing/budgets/apiv1/budgetspb;budgetspb"; option java_multiple_files = true; option java_outer_classname = "BudgetServiceProto"; option java_package = "com.google.cloud.billing.budgets.v1"; diff --git a/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1beta1/budget_model.proto b/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1beta1/budget_model.proto index c269c8194b32..167e8e4658a9 100644 --- a/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1beta1/budget_model.proto +++ b/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1beta1/budget_model.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/type/date.proto"; import "google/type/money.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1beta1;budgets"; +option go_package = "cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb;budgetspb"; option java_multiple_files = true; option java_package = "com.google.cloud.billing.budgets.v1beta1"; diff --git a/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1beta1/budget_service.proto b/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1beta1/budget_service.proto index e38c0aa35906..3651785eaa77 100644 --- a/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1beta1/budget_service.proto +++ b/packages/google-cloud-billing-budgets/protos/google/cloud/billing/budgets/v1beta1/budget_service.proto @@ -24,7 +24,7 @@ import "google/cloud/billing/budgets/v1beta1/budget_model.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1beta1;budgets"; +option go_package = "cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb;budgetspb"; option java_multiple_files = true; option java_package = "com.google.cloud.billing.budgets.v1beta1"; diff --git a/packages/google-cloud-billing-budgets/protos/protos.json b/packages/google-cloud-billing-budgets/protos/protos.json index b208ea611a53..c4df91f27c26 100644 --- a/packages/google-cloud-billing-budgets/protos/protos.json +++ b/packages/google-cloud-billing-budgets/protos/protos.json @@ -10,7 +10,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1;budgets", + "go_package": "cloud.google.com/go/billing/budgets/apiv1/budgetspb;budgetspb", "java_multiple_files": true, "java_outer_classname": "BudgetServiceProto", "java_package": "com.google.cloud.billing.budgets.v1" @@ -469,7 +469,7 @@ }, "v1beta1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1beta1;budgets", + "go_package": "cloud.google.com/go/billing/budgets/apiv1beta1/budgetspb;budgetspb", "java_multiple_files": true, "java_package": "com.google.cloud.billing.budgets.v1beta1" }, From d381322d2327680ad2b988886a2bd56a6aa65185 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 3 Feb 2023 14:23:47 -0500 Subject: [PATCH 15/38] chore: [Many APIs] update import paths for Go targets to match open source location (#3932) chore: update import paths for Go targets to match open source location chore: update go_package in protos to match open source location chore: add explicit release levels to Go gapic targets PiperOrigin-RevId: 506711567 Source-Link: https://github.com/googleapis/googleapis/commit/d02e58244db5d01607ec2ad52a47e7edce8612f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7f1c54153125eb5abd60a32de58cfda6a798a70a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbGxpbmcvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbmFyeWF1dGhvcml6YXRpb24vLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNlcnRpZmljYXRlbWFuYWdlci8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNoYW5uZWwvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNsb3VkZG1zLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhY3RjZW50ZXJpbnNpZ2h0cy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRlbnR3YXJlaG91c2UvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFjYXRhbG9nLWxpbmVhZ2UvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFjYXRhbG9nLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFmdXNpb24vLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFsYWJlbGluZy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwbGV4Ly5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwcm9jLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFxbmEvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFzdHJlYW0vLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRlcGxveS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpc2NvdmVyeWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvbWFpbnMvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Benjamin E. Coe --- .../protos/google/cloud/billing/v1/cloud_billing.proto | 2 +- .../protos/google/cloud/billing/v1/cloud_catalog.proto | 2 +- packages/google-cloud-billing/protos/protos.json | 2 +- .../google/cloud/binaryauthorization/v1/resources.proto | 2 +- .../google/cloud/binaryauthorization/v1/service.proto | 2 +- .../v1beta1/continuous_validation_logging.proto | 2 +- .../cloud/binaryauthorization/v1beta1/resources.proto | 2 +- .../cloud/binaryauthorization/v1beta1/service.proto | 2 +- .../google-cloud-binaryauthorization/protos/protos.json | 4 ++-- .../v1/certificate_issuance_config.proto | 2 +- .../cloud/certificatemanager/v1/certificate_manager.proto | 2 +- .../google-cloud-certificatemanager/protos/protos.json | 2 +- .../google/cloud/channel/v1/channel_partner_links.proto | 2 +- .../protos/google/cloud/channel/v1/common.proto | 2 +- .../protos/google/cloud/channel/v1/customers.proto | 2 +- .../protos/google/cloud/channel/v1/entitlements.proto | 2 +- .../protos/google/cloud/channel/v1/offers.proto | 2 +- .../protos/google/cloud/channel/v1/operations.proto | 2 +- .../protos/google/cloud/channel/v1/products.proto | 2 +- .../protos/google/cloud/channel/v1/reports_service.proto | 2 +- .../protos/google/cloud/channel/v1/repricing.proto | 2 +- .../protos/google/cloud/channel/v1/service.proto | 2 +- .../protos/google/cloud/channel/v1/subscriber_event.proto | 2 +- packages/google-cloud-channel/protos/protos.json | 2 +- .../protos/google/cloud/clouddms/v1/clouddms.proto | 2 +- .../google/cloud/clouddms/v1/clouddms_resources.proto | 2 +- packages/google-cloud-clouddms/protos/protos.json | 2 +- .../v1/contact_center_insights.proto | 2 +- .../google/cloud/contactcenterinsights/v1/resources.proto | 2 +- .../google-cloud-contactcenterinsights/protos/protos.json | 2 +- .../v1/async_document_service_request.proto | 2 +- .../protos/google/cloud/contentwarehouse/v1/common.proto | 2 +- .../google/cloud/contentwarehouse/v1/document.proto | 2 +- .../cloud/contentwarehouse/v1/document_link_service.proto | 2 +- .../cloud/contentwarehouse/v1/document_schema.proto | 2 +- .../contentwarehouse/v1/document_schema_service.proto | 2 +- .../cloud/contentwarehouse/v1/document_service.proto | 2 +- .../contentwarehouse/v1/document_service_request.proto | 2 +- .../protos/google/cloud/contentwarehouse/v1/filters.proto | 2 +- .../google/cloud/contentwarehouse/v1/histogram.proto | 2 +- .../google/cloud/contentwarehouse/v1/rule_engine.proto | 2 +- .../cloud/contentwarehouse/v1/ruleset_service.proto | 2 +- .../contentwarehouse/v1/ruleset_service_request.proto | 2 +- .../google/cloud/contentwarehouse/v1/synonymset.proto | 2 +- .../cloud/contentwarehouse/v1/synonymset_service.proto | 2 +- .../contentwarehouse/v1/synonymset_service_request.proto | 2 +- .../protos/google/cloud/documentai/v1/barcode.proto | 2 +- .../protos/google/cloud/documentai/v1/document.proto | 2 +- .../protos/google/cloud/documentai/v1/document_io.proto | 2 +- .../cloud/documentai/v1/document_processor_service.proto | 2 +- .../google/cloud/documentai/v1/document_schema.proto | 2 +- .../protos/google/cloud/documentai/v1/geometry.proto | 2 +- .../google/cloud/documentai/v1/operation_metadata.proto | 2 +- .../protos/google/cloud/documentai/v1/processor.proto | 2 +- .../google/cloud/documentai/v1/processor_type.proto | 2 +- packages/google-cloud-contentwarehouse/protos/protos.json | 4 ++-- .../google/cloud/datacatalog/lineage/v1/lineage.proto | 2 +- .../google-cloud-datacatalog-lineage/protos/protos.json | 2 +- .../protos/google/cloud/datacatalog/v1/bigquery.proto | 2 +- .../protos/google/cloud/datacatalog/v1/common.proto | 2 +- .../protos/google/cloud/datacatalog/v1/data_source.proto | 2 +- .../protos/google/cloud/datacatalog/v1/datacatalog.proto | 2 +- .../google/cloud/datacatalog/v1/dataplex_spec.proto | 2 +- .../google/cloud/datacatalog/v1/gcs_fileset_spec.proto | 2 +- .../google/cloud/datacatalog/v1/physical_schema.proto | 2 +- .../google/cloud/datacatalog/v1/policytagmanager.proto | 2 +- .../datacatalog/v1/policytagmanagerserialization.proto | 2 +- .../protos/google/cloud/datacatalog/v1/schema.proto | 2 +- .../protos/google/cloud/datacatalog/v1/search.proto | 2 +- .../protos/google/cloud/datacatalog/v1/table_spec.proto | 2 +- .../protos/google/cloud/datacatalog/v1/tags.proto | 2 +- .../protos/google/cloud/datacatalog/v1/timestamps.proto | 2 +- .../protos/google/cloud/datacatalog/v1/usage.proto | 2 +- .../protos/google/cloud/datacatalog/v1beta1/common.proto | 2 +- .../google/cloud/datacatalog/v1beta1/datacatalog.proto | 2 +- .../cloud/datacatalog/v1beta1/gcs_fileset_spec.proto | 2 +- .../cloud/datacatalog/v1beta1/policytagmanager.proto | 2 +- .../v1beta1/policytagmanagerserialization.proto | 2 +- .../protos/google/cloud/datacatalog/v1beta1/schema.proto | 2 +- .../protos/google/cloud/datacatalog/v1beta1/search.proto | 2 +- .../google/cloud/datacatalog/v1beta1/table_spec.proto | 2 +- .../protos/google/cloud/datacatalog/v1beta1/tags.proto | 2 +- .../google/cloud/datacatalog/v1beta1/timestamps.proto | 2 +- packages/google-cloud-datacatalog/protos/protos.json | 4 ++-- .../protos/google/cloud/datafusion/v1/datafusion.proto | 2 +- .../protos/google/cloud/datafusion/v1beta1/v1beta1.proto | 2 +- packages/google-cloud-datafusion/protos/protos.json | 4 ++-- .../google/cloud/datalabeling/v1beta1/annotation.proto | 2 +- .../cloud/datalabeling/v1beta1/annotation_spec_set.proto | 2 +- .../datalabeling/v1beta1/data_labeling_service.proto | 2 +- .../google/cloud/datalabeling/v1beta1/data_payloads.proto | 2 +- .../google/cloud/datalabeling/v1beta1/dataset.proto | 2 +- .../google/cloud/datalabeling/v1beta1/evaluation.proto | 2 +- .../cloud/datalabeling/v1beta1/evaluation_job.proto | 2 +- .../datalabeling/v1beta1/human_annotation_config.proto | 2 +- .../google/cloud/datalabeling/v1beta1/instruction.proto | 2 +- .../google/cloud/datalabeling/v1beta1/operations.proto | 2 +- packages/google-cloud-datalabeling/protos/protos.json | 2 +- .../protos/google/cloud/dataplex/v1/analyze.proto | 2 +- .../protos/google/cloud/dataplex/v1/content.proto | 2 +- .../protos/google/cloud/dataplex/v1/data_profile.proto | 2 +- .../protos/google/cloud/dataplex/v1/data_quality.proto | 2 +- .../protos/google/cloud/dataplex/v1/datascans.proto | 2 +- .../protos/google/cloud/dataplex/v1/logs.proto | 2 +- .../protos/google/cloud/dataplex/v1/metadata.proto | 2 +- .../protos/google/cloud/dataplex/v1/processing.proto | 2 +- .../protos/google/cloud/dataplex/v1/resources.proto | 2 +- .../protos/google/cloud/dataplex/v1/service.proto | 2 +- .../protos/google/cloud/dataplex/v1/tasks.proto | 2 +- packages/google-cloud-dataplex/protos/protos.json | 2 +- .../google/cloud/dataproc/v1/autoscaling_policies.proto | 2 +- .../protos/google/cloud/dataproc/v1/batches.proto | 2 +- .../protos/google/cloud/dataproc/v1/clusters.proto | 2 +- .../protos/google/cloud/dataproc/v1/jobs.proto | 2 +- .../protos/google/cloud/dataproc/v1/node_groups.proto | 2 +- .../protos/google/cloud/dataproc/v1/operations.proto | 2 +- .../protos/google/cloud/dataproc/v1/shared.proto | 2 +- .../google/cloud/dataproc/v1/workflow_templates.proto | 2 +- packages/google-cloud-dataproc/protos/protos.json | 2 +- .../google/cloud/dataqna/v1alpha/annotated_string.proto | 2 +- .../cloud/dataqna/v1alpha/auto_suggestion_service.proto | 2 +- .../protos/google/cloud/dataqna/v1alpha/question.proto | 2 +- .../google/cloud/dataqna/v1alpha/question_service.proto | 2 +- .../google/cloud/dataqna/v1alpha/user_feedback.proto | 2 +- packages/google-cloud-dataqna/protos/protos.json | 2 +- .../protos/google/cloud/datastream/v1/datastream.proto | 2 +- .../google/cloud/datastream/v1/datastream_resources.proto | 2 +- .../google/cloud/datastream/v1alpha1/datastream.proto | 2 +- .../cloud/datastream/v1alpha1/datastream_resources.proto | 2 +- packages/google-cloud-datastream/protos/protos.json | 4 ++-- .../protos/google/cloud/deploy/v1/cloud_deploy.proto | 2 +- .../deploy/v1/deliverypipeline_notification_payload.proto | 2 +- .../cloud/deploy/v1/jobrun_notification_payload.proto | 2 +- .../protos/google/cloud/deploy/v1/log_enums.proto | 2 +- .../cloud/deploy/v1/release_notification_payload.proto | 2 +- .../google/cloud/deploy/v1/release_render_payload.proto | 2 +- .../cloud/deploy/v1/rollout_notification_payload.proto | 2 +- .../cloud/deploy/v1/target_notification_payload.proto | 2 +- packages/google-cloud-deploy/protos/protos.json | 2 +- .../protos/google/cloud/dialogflow/v2beta1/agent.proto | 2 +- .../google/cloud/dialogflow/v2beta1/answer_record.proto | 2 +- .../google/cloud/dialogflow/v2beta1/audio_config.proto | 2 +- .../protos/google/cloud/dialogflow/v2beta1/context.proto | 2 +- .../google/cloud/dialogflow/v2beta1/conversation.proto | 2 +- .../cloud/dialogflow/v2beta1/conversation_event.proto | 2 +- .../cloud/dialogflow/v2beta1/conversation_profile.proto | 2 +- .../protos/google/cloud/dialogflow/v2beta1/document.proto | 2 +- .../google/cloud/dialogflow/v2beta1/entity_type.proto | 2 +- .../google/cloud/dialogflow/v2beta1/environment.proto | 2 +- .../google/cloud/dialogflow/v2beta1/fulfillment.proto | 2 +- .../protos/google/cloud/dialogflow/v2beta1/gcs.proto | 2 +- .../dialogflow/v2beta1/human_agent_assistant_event.proto | 2 +- .../protos/google/cloud/dialogflow/v2beta1/intent.proto | 2 +- .../google/cloud/dialogflow/v2beta1/knowledge_base.proto | 2 +- .../google/cloud/dialogflow/v2beta1/participant.proto | 2 +- .../protos/google/cloud/dialogflow/v2beta1/session.proto | 2 +- .../cloud/dialogflow/v2beta1/session_entity_type.proto | 2 +- .../cloud/dialogflow/v2beta1/validation_result.proto | 2 +- .../protos/google/cloud/dialogflow/v2beta1/version.proto | 2 +- .../protos/google/cloud/dialogflow/v2beta1/webhook.proto | 2 +- packages/google-cloud-dialogflow/protos/protos.json | 2 +- .../google/cloud/discoveryengine/v1beta/common.proto | 2 +- .../google/cloud/discoveryengine/v1beta/document.proto | 2 +- .../cloud/discoveryengine/v1beta/document_service.proto | 2 +- .../cloud/discoveryengine/v1beta/import_config.proto | 2 +- .../discoveryengine/v1beta/recommendation_service.proto | 2 +- .../google/cloud/discoveryengine/v1beta/user_event.proto | 2 +- .../cloud/discoveryengine/v1beta/user_event_service.proto | 2 +- packages/google-cloud-discoveryengine/protos/protos.json | 2 +- .../protos/google/cloud/documentai/v1/barcode.proto | 2 +- .../protos/google/cloud/documentai/v1/document.proto | 2 +- .../protos/google/cloud/documentai/v1/document_io.proto | 2 +- .../cloud/documentai/v1/document_processor_service.proto | 2 +- .../google/cloud/documentai/v1/document_schema.proto | 2 +- .../protos/google/cloud/documentai/v1/geometry.proto | 2 +- .../google/cloud/documentai/v1/operation_metadata.proto | 2 +- .../protos/google/cloud/documentai/v1/processor.proto | 2 +- .../google/cloud/documentai/v1/processor_type.proto | 2 +- .../protos/google/cloud/documentai/v1beta1/document.proto | 2 +- .../cloud/documentai/v1beta1/document_understanding.proto | 2 +- .../protos/google/cloud/documentai/v1beta1/geometry.proto | 2 +- .../protos/google/cloud/documentai/v1beta2/document.proto | 2 +- .../cloud/documentai/v1beta2/document_understanding.proto | 2 +- .../protos/google/cloud/documentai/v1beta2/geometry.proto | 2 +- .../protos/google/cloud/documentai/v1beta3/barcode.proto | 2 +- .../protos/google/cloud/documentai/v1beta3/document.proto | 2 +- .../google/cloud/documentai/v1beta3/document_io.proto | 2 +- .../documentai/v1beta3/document_processor_service.proto | 2 +- .../google/cloud/documentai/v1beta3/document_schema.proto | 2 +- .../google/cloud/documentai/v1beta3/evaluation.proto | 2 +- .../protos/google/cloud/documentai/v1beta3/geometry.proto | 2 +- .../cloud/documentai/v1beta3/operation_metadata.proto | 2 +- .../google/cloud/documentai/v1beta3/processor.proto | 2 +- .../google/cloud/documentai/v1beta3/processor_type.proto | 2 +- packages/google-cloud-documentai/protos/protos.json | 8 ++++---- .../protos/google/cloud/domains/v1/domains.proto | 2 +- .../protos/google/cloud/domains/v1alpha2/domains.proto | 2 +- .../protos/google/cloud/domains/v1beta1/domains.proto | 2 +- packages/google-cloud-domains/protos/protos.json | 6 +++--- 199 files changed, 209 insertions(+), 209 deletions(-) diff --git a/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_billing.proto b/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_billing.proto index 4f6277b3f20e..be9f94719824 100644 --- a/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_billing.proto +++ b/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_billing.proto @@ -24,7 +24,7 @@ import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/billing/v1;billing"; +option go_package = "cloud.google.com/go/billing/apiv1/billingpb;billingpb"; option java_multiple_files = true; option java_outer_classname = "CloudBillingProto"; option java_package = "com.google.cloud.billing.v1"; diff --git a/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_catalog.proto b/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_catalog.proto index f3d46e627083..1cbb8c18a14a 100644 --- a/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_catalog.proto +++ b/packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_catalog.proto @@ -24,7 +24,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/money.proto"; option csharp_namespace = "Google.Cloud.Billing.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/billing/v1;billing"; +option go_package = "cloud.google.com/go/billing/apiv1/billingpb;billingpb"; option java_multiple_files = true; option java_outer_classname = "CloudCatalogProto"; option java_package = "com.google.cloud.billing.v1"; diff --git a/packages/google-cloud-billing/protos/protos.json b/packages/google-cloud-billing/protos/protos.json index a89fc6d6f3f9..57e1430804e3 100644 --- a/packages/google-cloud-billing/protos/protos.json +++ b/packages/google-cloud-billing/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/billing/v1;billing", + "go_package": "cloud.google.com/go/billing/apiv1/billingpb;billingpb", "java_multiple_files": true, "java_outer_classname": "CloudCatalogProto", "java_package": "com.google.cloud.billing.v1", diff --git a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1/resources.proto b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1/resources.proto index 5df7f58bdf8b..de81309f0404 100644 --- a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1/resources.proto +++ b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1/resources.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1;binaryauthorization"; +option go_package = "cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb;binaryauthorizationpb"; option java_multiple_files = false; option java_package = "com.google.protos.google.cloud.binaryauthorization.v1"; option php_namespace = "Google\\Cloud\\BinaryAuthorization\\V1"; diff --git a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1/service.proto b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1/service.proto index e063aacc04d2..7cbfbdc05efa 100644 --- a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1/service.proto +++ b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1/service.proto @@ -26,7 +26,7 @@ import "grafeas/v1/attestation.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1;binaryauthorization"; +option go_package = "cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb;binaryauthorizationpb"; option java_multiple_files = false; option java_package = "com.google.protos.google.cloud.binaryauthorization.v1"; option php_namespace = "Google\\Cloud\\BinaryAuthorization\\V1"; diff --git a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto index 1666b5189eb0..c4539f8c2b82 100644 --- a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto +++ b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto @@ -20,7 +20,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1;binaryauthorization"; +option go_package = "cloud.google.com/go/binaryauthorization/apiv1beta1/binaryauthorizationpb;binaryauthorizationpb"; option java_multiple_files = true; option java_outer_classname = "ContinuousValidationLoggingProto"; option java_package = "com.google.cloud.binaryauthorization.v1beta1"; diff --git a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/resources.proto b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/resources.proto index 28c18f99ad84..5855bd7f7aff 100644 --- a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/resources.proto +++ b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/resources.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1;binaryauthorization"; +option go_package = "cloud.google.com/go/binaryauthorization/apiv1beta1/binaryauthorizationpb;binaryauthorizationpb"; option java_multiple_files = true; option java_outer_classname = "BinaryAuthorizationResourcesProto"; option java_package = "com.google.cloud.binaryauthorization.v1beta1"; diff --git a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/service.proto b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/service.proto index 90e63b4d4820..c8502637f2de 100644 --- a/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/service.proto +++ b/packages/google-cloud-binaryauthorization/protos/google/cloud/binaryauthorization/v1beta1/service.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1;binaryauthorization"; +option go_package = "cloud.google.com/go/binaryauthorization/apiv1beta1/binaryauthorizationpb;binaryauthorizationpb"; option java_multiple_files = true; option java_outer_classname = "BinaryAuthorizationServiceProto"; option java_package = "com.google.cloud.binaryauthorization.v1beta1"; diff --git a/packages/google-cloud-binaryauthorization/protos/protos.json b/packages/google-cloud-binaryauthorization/protos/protos.json index d24834981e81..c7ef6dacbffc 100644 --- a/packages/google-cloud-binaryauthorization/protos/protos.json +++ b/packages/google-cloud-binaryauthorization/protos/protos.json @@ -10,7 +10,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.BinaryAuthorization.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1;binaryauthorization", + "go_package": "cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb;binaryauthorizationpb", "java_multiple_files": false, "java_package": "com.google.protos.google.cloud.binaryauthorization.v1", "php_namespace": "Google\\Cloud\\BinaryAuthorization\\V1", @@ -671,7 +671,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.BinaryAuthorization.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1;binaryauthorization", + "go_package": "cloud.google.com/go/binaryauthorization/apiv1beta1/binaryauthorizationpb;binaryauthorizationpb", "java_multiple_files": true, "java_outer_classname": "BinaryAuthorizationServiceProto", "java_package": "com.google.cloud.binaryauthorization.v1beta1", diff --git a/packages/google-cloud-certificatemanager/protos/google/cloud/certificatemanager/v1/certificate_issuance_config.proto b/packages/google-cloud-certificatemanager/protos/google/cloud/certificatemanager/v1/certificate_issuance_config.proto index 629cb5944f93..3d20aa0b8f6f 100644 --- a/packages/google-cloud-certificatemanager/protos/google/cloud/certificatemanager/v1/certificate_issuance_config.proto +++ b/packages/google-cloud-certificatemanager/protos/google/cloud/certificatemanager/v1/certificate_issuance_config.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.CertificateManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1;certificatemanager"; +option go_package = "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb;certificatemanagerpb"; option java_multiple_files = true; option java_outer_classname = "CertificateIssuanceConfigProto"; option java_package = "com.google.cloud.certificatemanager.v1"; diff --git a/packages/google-cloud-certificatemanager/protos/google/cloud/certificatemanager/v1/certificate_manager.proto b/packages/google-cloud-certificatemanager/protos/google/cloud/certificatemanager/v1/certificate_manager.proto index 29cd39aae22f..d3e2449c84de 100644 --- a/packages/google-cloud-certificatemanager/protos/google/cloud/certificatemanager/v1/certificate_manager.proto +++ b/packages/google-cloud-certificatemanager/protos/google/cloud/certificatemanager/v1/certificate_manager.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.CertificateManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1;certificatemanager"; +option go_package = "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb;certificatemanagerpb"; option java_multiple_files = true; option java_outer_classname = "CertificateManagerProto"; option java_package = "com.google.cloud.certificatemanager.v1"; diff --git a/packages/google-cloud-certificatemanager/protos/protos.json b/packages/google-cloud-certificatemanager/protos/protos.json index 596732babc5f..0074b3cfa1e8 100644 --- a/packages/google-cloud-certificatemanager/protos/protos.json +++ b/packages/google-cloud-certificatemanager/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.CertificateManager.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1;certificatemanager", + "go_package": "cloud.google.com/go/certificatemanager/apiv1/certificatemanagerpb;certificatemanagerpb", "java_multiple_files": true, "java_outer_classname": "CertificateManagerProto", "java_package": "com.google.cloud.certificatemanager.v1", diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/channel_partner_links.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/channel_partner_links.proto index d0607af278c1..5f51b3f2ee7b 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/channel_partner_links.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/channel_partner_links.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/channel/v1/common.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "ChannelPartnerLinksProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/common.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/common.proto index 2380722ac8d1..9e899fd787f3 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/common.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/common.proto @@ -19,7 +19,7 @@ package google.cloud.channel.v1; import "google/api/field_behavior.proto"; import "google/protobuf/any.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/customers.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/customers.proto index 18bf1ad99a16..e355420c803a 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/customers.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/customers.proto @@ -22,7 +22,7 @@ import "google/cloud/channel/v1/common.proto"; import "google/protobuf/timestamp.proto"; import "google/type/postal_address.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "CustomersProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/entitlements.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/entitlements.proto index 8a6633b140c3..9fef42d0e6ca 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/entitlements.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/entitlements.proto @@ -23,7 +23,7 @@ import "google/cloud/channel/v1/offers.proto"; import "google/cloud/channel/v1/products.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "EntitlementsProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/offers.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/offers.proto index 3a504045350e..eb24f871d01d 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/offers.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/offers.proto @@ -23,7 +23,7 @@ import "google/cloud/channel/v1/products.proto"; import "google/protobuf/timestamp.proto"; import "google/type/money.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "OffersProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/operations.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/operations.proto index e9e190772cb7..242ae3d8a3c5 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/operations.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/operations.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package google.cloud.channel.v1; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "OperationsProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/products.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/products.proto index 411e1698b96b..07c50c65d66c 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/products.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/products.proto @@ -18,7 +18,7 @@ package google.cloud.channel.v1; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "ProductsProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/reports_service.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/reports_service.proto index 1cb87124cb6a..ed3211bb2e97 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/reports_service.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/reports_service.proto @@ -27,7 +27,7 @@ import "google/type/datetime.proto"; import "google/type/decimal.proto"; import "google/type/money.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "ReportsServiceProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/repricing.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/repricing.proto index 1a15067b3781..9d0cfaf8c1dd 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/repricing.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/repricing.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; import "google/type/decimal.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "RepricingProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/service.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/service.proto index 93730e9ea333..36627bf36867 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/service.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/service.proto @@ -31,7 +31,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/subscriber_event.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/subscriber_event.proto index 0135c066f44a..57504ca456e7 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/subscriber_event.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/subscriber_event.proto @@ -18,7 +18,7 @@ package google.cloud.channel.v1; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; +option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "SubscriberEventProto"; option java_package = "com.google.cloud.channel.v1"; diff --git a/packages/google-cloud-channel/protos/protos.json b/packages/google-cloud-channel/protos/protos.json index 21ab38129eb4..ba36452c39a1 100644 --- a/packages/google-cloud-channel/protos/protos.json +++ b/packages/google-cloud-channel/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/channel/v1;channel", + "go_package": "cloud.google.com/go/channel/apiv1/channelpb;channelpb", "java_multiple_files": true, "java_outer_classname": "SubscriberEventProto", "java_package": "com.google.cloud.channel.v1" diff --git a/packages/google-cloud-clouddms/protos/google/cloud/clouddms/v1/clouddms.proto b/packages/google-cloud-clouddms/protos/google/cloud/clouddms/v1/clouddms.proto index a8e3e74c6e4d..0126c9c3a20b 100644 --- a/packages/google-cloud-clouddms/protos/google/cloud/clouddms/v1/clouddms.proto +++ b/packages/google-cloud-clouddms/protos/google/cloud/clouddms/v1/clouddms.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.CloudDms.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/clouddms/v1;clouddms"; +option go_package = "cloud.google.com/go/clouddms/apiv1/clouddmspb;clouddmspb"; option java_multiple_files = true; option java_outer_classname = "ClouddmsProto"; option java_package = "com.google.cloud.clouddms.v1"; diff --git a/packages/google-cloud-clouddms/protos/google/cloud/clouddms/v1/clouddms_resources.proto b/packages/google-cloud-clouddms/protos/google/cloud/clouddms/v1/clouddms_resources.proto index dd7731a6e840..67a6356d2104 100644 --- a/packages/google-cloud-clouddms/protos/google/cloud/clouddms/v1/clouddms_resources.proto +++ b/packages/google-cloud-clouddms/protos/google/cloud/clouddms/v1/clouddms_resources.proto @@ -24,7 +24,7 @@ import "google/protobuf/wrappers.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.CloudDms.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/clouddms/v1;clouddms"; +option go_package = "cloud.google.com/go/clouddms/apiv1/clouddmspb;clouddmspb"; option java_multiple_files = true; option java_outer_classname = "ClouddmsResourcesProto"; option java_package = "com.google.cloud.clouddms.v1"; diff --git a/packages/google-cloud-clouddms/protos/protos.json b/packages/google-cloud-clouddms/protos/protos.json index f7c59de057cf..e6e150c50fc6 100644 --- a/packages/google-cloud-clouddms/protos/protos.json +++ b/packages/google-cloud-clouddms/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.CloudDms.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/clouddms/v1;clouddms", + "go_package": "cloud.google.com/go/clouddms/apiv1/clouddmspb;clouddmspb", "java_multiple_files": true, "java_outer_classname": "ClouddmsResourcesProto", "java_package": "com.google.cloud.clouddms.v1", diff --git a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto index 1ecf43216832..273bd0d42f13 100644 --- a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto +++ b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto @@ -29,7 +29,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.ContactCenterInsights.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1;contactcenterinsights"; +option go_package = "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb;contactcenterinsightspb"; option java_multiple_files = true; option java_outer_classname = "ContactCenterInsightsProto"; option java_package = "com.google.cloud.contactcenterinsights.v1"; diff --git a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto index 715eff61177b..a78ce3f81903 100644 --- a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto +++ b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ContactCenterInsights.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1;contactcenterinsights"; +option go_package = "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb;contactcenterinsightspb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.cloud.contactcenterinsights.v1"; diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.json b/packages/google-cloud-contactcenterinsights/protos/protos.json index 8e9d8399c00a..56af16f7cc2a 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.json +++ b/packages/google-cloud-contactcenterinsights/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.ContactCenterInsights.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1;contactcenterinsights", + "go_package": "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb;contactcenterinsightspb", "java_multiple_files": true, "java_outer_classname": "ResourcesProto", "java_package": "com.google.cloud.contactcenterinsights.v1", diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/async_document_service_request.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/async_document_service_request.proto index 368ddf3f8ccb..eba3bf3bbf36 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/async_document_service_request.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/async_document_service_request.proto @@ -19,7 +19,7 @@ package google.cloud.contentwarehouse.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "AsyncDocumentServiceRequestProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/common.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/common.proto index 9be7e86a34da..3592ee6d2897 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/common.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/common.proto @@ -19,7 +19,7 @@ package google.cloud.contentwarehouse.v1; import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document.proto index 5ec6c2ec686e..c74c6fc757b4 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document.proto @@ -22,7 +22,7 @@ import "google/cloud/documentai/v1/document.proto"; import "google/protobuf/timestamp.proto"; import "google/type/datetime.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_link_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_link_service.proto index a5a14d8dcbf4..36fb164fa821 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_link_service.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_link_service.proto @@ -25,7 +25,7 @@ import "google/cloud/contentwarehouse/v1/document.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "DocumentLinkServiceProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema.proto index fae52e4c51e1..6c5526129919 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "DocumentSchemaProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema_service.proto index 9c570695045a..0027048ca9ee 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema_service.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_schema_service.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/contentwarehouse/v1/document_schema.proto"; import "google/protobuf/empty.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "DocumentSchemaServiceProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service.proto index e0c1c8750881..d2b250be9912 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service.proto @@ -27,7 +27,7 @@ import "google/cloud/contentwarehouse/v1/rule_engine.proto"; import "google/iam/v1/policy.proto"; import "google/protobuf/empty.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "DocumentServiceProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service_request.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service_request.proto index 635bfdb6558b..521ef12ac063 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service_request.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/document_service_request.proto @@ -25,7 +25,7 @@ import "google/cloud/contentwarehouse/v1/histogram.proto"; import "google/iam/v1/policy.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "DocumentServiceRequestProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/filters.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/filters.proto index 52e39ca90a27..2c43dfffbb4f 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/filters.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/filters.proto @@ -19,7 +19,7 @@ package google.cloud.contentwarehouse.v1; import "google/api/resource.proto"; import "google/type/interval.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "FiltersProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/histogram.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/histogram.proto index ce25e7a8c3fa..5c73cea742b5 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/histogram.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/histogram.proto @@ -19,7 +19,7 @@ package google.cloud.contentwarehouse.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "HistogramProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/rule_engine.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/rule_engine.proto index 7badc7b788a7..2f69d5e832ae 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/rule_engine.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/rule_engine.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/iam/v1/policy.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "RuleEngineProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service.proto index 091367eabee3..9a1fe571b6e0 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service.proto @@ -22,7 +22,7 @@ import "google/cloud/contentwarehouse/v1/rule_engine.proto"; import "google/cloud/contentwarehouse/v1/ruleset_service_request.proto"; import "google/protobuf/empty.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "RuleSetServiceProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service_request.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service_request.proto index 61d12510680b..2bca2efefc42 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service_request.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/ruleset_service_request.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/contentwarehouse/v1/rule_engine.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "RuleSetServiceRequestProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset.proto index d4f23e0571ec..ed989951d0e4 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset.proto @@ -18,7 +18,7 @@ package google.cloud.contentwarehouse.v1; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "SynonymSetProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service.proto index 39acfd112ae8..5f3e1625e706 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service.proto @@ -22,7 +22,7 @@ import "google/cloud/contentwarehouse/v1/synonymset.proto"; import "google/cloud/contentwarehouse/v1/synonymset_service_request.proto"; import "google/protobuf/empty.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "SynonymSetServiceProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service_request.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service_request.proto index 8d1955456d33..89584cd2eaf8 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service_request.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/contentwarehouse/v1/synonymset_service_request.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/contentwarehouse/v1/synonymset.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse"; +option go_package = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb"; option java_multiple_files = true; option java_outer_classname = "SynonymSetServiceRequestProto"; option java_package = "com.google.cloud.contentwarehouse.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/barcode.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/barcode.proto index bb841771ade3..c131dcbed29f 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/barcode.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/barcode.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "BarcodeProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto index 680cf88282f7..18620dbca060 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document.proto @@ -28,7 +28,7 @@ import "google/type/money.proto"; import "google/type/postal_address.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto index d56086336d2a..23768b7544ea 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto @@ -19,7 +19,7 @@ package google.cloud.documentai.v1; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentIoProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto index 3e7cf51ee9af..814cc94cc1f3 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_processor_service.proto @@ -32,7 +32,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessorService"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto index 679a6ee59e8d..3fffba9fadbd 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_schema.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiDocumentSchema"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/geometry.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/geometry.proto index 7471ef012475..ce668ec8e7ad 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/geometry.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/geometry.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/operation_metadata.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/operation_metadata.proto index 5698b0a4f3cc..b922bf4cc3ab 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/operation_metadata.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/operation_metadata.proto @@ -19,7 +19,7 @@ package google.cloud.documentai.v1; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "OperationMetadataProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor.proto index ac599e987b65..4dabe48fe6f5 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor.proto @@ -22,7 +22,7 @@ import "google/cloud/documentai/v1/document_schema.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessor"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor_type.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor_type.proto index a54274532cb8..e5f6eca0a89a 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor_type.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/processor_type.proto @@ -20,7 +20,7 @@ import "google/api/launch_stage.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessorType"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-contentwarehouse/protos/protos.json b/packages/google-cloud-contentwarehouse/protos/protos.json index aef02965d37f..c3e520cbd8de 100644 --- a/packages/google-cloud-contentwarehouse/protos/protos.json +++ b/packages/google-cloud-contentwarehouse/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1;contentwarehouse", + "go_package": "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb;contentwarehousepb", "java_multiple_files": true, "java_outer_classname": "SynonymSetServiceRequestProto", "java_package": "com.google.cloud.contentwarehouse.v1", @@ -2508,7 +2508,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.DocumentAI.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai", + "go_package": "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb", "java_multiple_files": true, "java_outer_classname": "GeometryProto", "java_package": "com.google.cloud.documentai.v1", diff --git a/packages/google-cloud-datacatalog-lineage/protos/google/cloud/datacatalog/lineage/v1/lineage.proto b/packages/google-cloud-datacatalog-lineage/protos/google/cloud/datacatalog/lineage/v1/lineage.proto index 5569ff68865f..ed9602a81be4 100644 --- a/packages/google-cloud-datacatalog-lineage/protos/google/cloud/datacatalog/lineage/v1/lineage.proto +++ b/packages/google-cloud-datacatalog-lineage/protos/google/cloud/datacatalog/lineage/v1/lineage.proto @@ -27,7 +27,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DataCatalog.Lineage.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/lineage/v1;lineage"; +option go_package = "cloud.google.com/go/datacatalog/lineage/apiv1/lineagepb;lineagepb"; option java_multiple_files = true; option java_outer_classname = "LineageProto"; option java_package = "com.google.cloud.datacatalog.lineage.v1"; diff --git a/packages/google-cloud-datacatalog-lineage/protos/protos.json b/packages/google-cloud-datacatalog-lineage/protos/protos.json index 30f094518790..a194848e0f27 100644 --- a/packages/google-cloud-datacatalog-lineage/protos/protos.json +++ b/packages/google-cloud-datacatalog-lineage/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.DataCatalog.Lineage.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/datacatalog/lineage/v1;lineage", + "go_package": "cloud.google.com/go/datacatalog/lineage/apiv1/lineagepb;lineagepb", "java_multiple_files": true, "java_outer_classname": "LineageProto", "java_package": "com.google.cloud.datacatalog.lineage.v1", diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/bigquery.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/bigquery.proto index 4be42ebba3d3..33994ac3fae1 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/bigquery.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/bigquery.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_outer_classname = "BigQueryProto"; option java_package = "com.google.cloud.datacatalog.v1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/common.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/common.proto index 7a6bef5f2223..11483e32f3d3 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/common.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/common.proto @@ -20,7 +20,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/data_source.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/data_source.proto index a73ff09c7567..faf2666625eb 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/data_source.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/data_source.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_outer_classname = "DataSourceProto"; option java_package = "com.google.cloud.datacatalog.v1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/datacatalog.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/datacatalog.proto index 4508e076634e..7c03a04d81c0 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/datacatalog.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/datacatalog.proto @@ -38,7 +38,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/dataplex_spec.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/dataplex_spec.proto index 0cdba3e1f8c6..bf47a373bb09 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/dataplex_spec.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/dataplex_spec.proto @@ -21,7 +21,7 @@ import "google/cloud/datacatalog/v1/physical_schema.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_outer_classname = "DataplexSpecProto"; option java_package = "com.google.cloud.datacatalog.v1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/gcs_fileset_spec.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/gcs_fileset_spec.proto index 82a165309f19..56d9f4d6ed00 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/gcs_fileset_spec.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/gcs_fileset_spec.proto @@ -21,7 +21,7 @@ import "google/cloud/datacatalog/v1/timestamps.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/physical_schema.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/physical_schema.proto index 414e95ca7f27..693cd60711f0 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/physical_schema.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/physical_schema.proto @@ -18,7 +18,7 @@ package google.cloud.datacatalog.v1; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_outer_classname = "PhysicalSchemaProto"; option java_package = "com.google.cloud.datacatalog.v1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanager.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanager.proto index be415988404b..45a8489e5f31 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanager.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanager.proto @@ -28,7 +28,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_outer_classname = "PolicyTagManagerProto"; option java_package = "com.google.cloud.datacatalog.v1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto index a4fe4d8b9c9c..9d320b21f031 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/policytagmanagerserialization.proto @@ -24,7 +24,7 @@ import "google/cloud/datacatalog/v1/policytagmanager.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_outer_classname = "PolicyTagManagerSerializationProto"; option java_package = "com.google.cloud.datacatalog.v1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/schema.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/schema.proto index b33caac484f4..f5a1f81eb433 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/schema.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/schema.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/search.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/search.proto index 88c06a46cc19..72dbe9f3fcd5 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/search.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/search.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/table_spec.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/table_spec.proto index cbf7ad3e970b..a92e5990efd8 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/table_spec.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/table_spec.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/tags.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/tags.proto index dedfd2f61f10..c5835af12116 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/tags.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/tags.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/timestamps.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/timestamps.proto index fe96d7d3fb6b..cab8776cc607 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/timestamps.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/timestamps.proto @@ -21,7 +21,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/usage.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/usage.proto index d778e5121450..07c3b140daca 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/usage.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1/usage.proto @@ -21,7 +21,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/common.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/common.proto index a759b371ef5f..f61608a66554 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/common.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/common.proto @@ -18,7 +18,7 @@ package google.cloud.datacatalog.v1beta1; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1beta1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/datacatalog.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/datacatalog.proto index 5f265d5bfca8..0c6c0809b6f7 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/datacatalog.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/datacatalog.proto @@ -34,7 +34,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1beta1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto index c8ca9779fc25..b7c6bcafab90 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto @@ -21,7 +21,7 @@ import "google/cloud/datacatalog/v1beta1/timestamps.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1beta1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/policytagmanager.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/policytagmanager.proto index 5602bcf16807..7cc2090557d3 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/policytagmanager.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/policytagmanager.proto @@ -28,7 +28,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_outer_classname = "PolicyTagManagerProto"; option java_package = "com.google.cloud.datacatalog.v1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto index b6e4fb3201ab..a1b2314d39d4 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto @@ -25,7 +25,7 @@ import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_outer_classname = "PolicyTagManagerSerializationProto"; option java_package = "com.google.cloud.datacatalog.v1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/schema.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/schema.proto index d8e69fd46056..c51234aa494b 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/schema.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/schema.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1beta1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/search.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/search.proto index afaa643d758f..0455662cb866 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/search.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/search.proto @@ -20,7 +20,7 @@ import "google/cloud/datacatalog/v1beta1/common.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1beta1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/table_spec.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/table_spec.proto index c08f43efdfd0..abfc3fe46b17 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/table_spec.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/table_spec.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1beta1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/tags.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/tags.proto index c15fb218abf2..57a683bbe061 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/tags.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/tags.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1beta1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/timestamps.proto b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/timestamps.proto index dc49c75cb537..e524d671c99c 100644 --- a/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/timestamps.proto +++ b/packages/google-cloud-datacatalog/protos/google/cloud/datacatalog/v1beta1/timestamps.proto @@ -21,7 +21,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog"; +option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datacatalog.v1beta1"; option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; diff --git a/packages/google-cloud-datacatalog/protos/protos.json b/packages/google-cloud-datacatalog/protos/protos.json index 430c39ddb17e..09104e69509e 100644 --- a/packages/google-cloud-datacatalog/protos/protos.json +++ b/packages/google-cloud-datacatalog/protos/protos.json @@ -10,7 +10,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.DataCatalog.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog", + "go_package": "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb", "java_multiple_files": true, "java_outer_classname": "PolicyTagManagerSerializationProto", "java_package": "com.google.cloud.datacatalog.v1", @@ -3272,7 +3272,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.DataCatalog.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog", + "go_package": "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb", "java_multiple_files": true, "java_package": "com.google.cloud.datacatalog.v1beta1", "php_namespace": "Google\\Cloud\\DataCatalog\\V1beta1", diff --git a/packages/google-cloud-datafusion/protos/google/cloud/datafusion/v1/datafusion.proto b/packages/google-cloud-datafusion/protos/google/cloud/datafusion/v1/datafusion.proto index 6151050939a3..9cbaaf97e58d 100644 --- a/packages/google-cloud-datafusion/protos/google/cloud/datafusion/v1/datafusion.proto +++ b/packages/google-cloud-datafusion/protos/google/cloud/datafusion/v1/datafusion.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DataFusion.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datafusion/v1;datafusion"; +option go_package = "cloud.google.com/go/datafusion/apiv1/datafusionpb;datafusionpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datafusion.v1"; option php_namespace = "Google\\Cloud\\DataFusion\\V1"; diff --git a/packages/google-cloud-datafusion/protos/google/cloud/datafusion/v1beta1/v1beta1.proto b/packages/google-cloud-datafusion/protos/google/cloud/datafusion/v1beta1/v1beta1.proto index ac3f309c1ea6..ef2c68579923 100644 --- a/packages/google-cloud-datafusion/protos/google/cloud/datafusion/v1beta1/v1beta1.proto +++ b/packages/google-cloud-datafusion/protos/google/cloud/datafusion/v1beta1/v1beta1.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.DataFusion.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datafusion/v1beta1;datafusion"; +option go_package = "cloud.google.com/go/datafusion/apiv1beta1/datafusionpb;datafusionpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datafusion.v1beta1"; option php_namespace = "Google\\Cloud\\DataFusion\\V1beta1"; diff --git a/packages/google-cloud-datafusion/protos/protos.json b/packages/google-cloud-datafusion/protos/protos.json index c0a470b2202f..06e9d36b053d 100644 --- a/packages/google-cloud-datafusion/protos/protos.json +++ b/packages/google-cloud-datafusion/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.DataFusion.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/datafusion/v1;datafusion", + "go_package": "cloud.google.com/go/datafusion/apiv1/datafusionpb;datafusionpb", "java_multiple_files": true, "java_package": "com.google.cloud.datafusion.v1", "php_namespace": "Google\\Cloud\\DataFusion\\V1", @@ -657,7 +657,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.DataFusion.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/datafusion/v1beta1;datafusion", + "go_package": "cloud.google.com/go/datafusion/apiv1beta1/datafusionpb;datafusionpb", "java_multiple_files": true, "java_package": "com.google.cloud.datafusion.v1beta1", "php_namespace": "Google\\Cloud\\DataFusion\\V1beta1", diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation.proto index d62cbfd136b0..fa858055173d 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation.proto @@ -21,7 +21,7 @@ import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto"; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto index 7670ae6a9f96..b4d67e476033 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto @@ -20,7 +20,7 @@ package google.cloud.datalabeling.v1beta1; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_labeling_service.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_labeling_service.proto index 5d0746c8a6df..fc3b50c7e761 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_labeling_service.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_labeling_service.proto @@ -32,7 +32,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_payloads.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_payloads.proto index a9ca0fc93fe9..6d663486dec2 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_payloads.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/data_payloads.proto @@ -20,7 +20,7 @@ package google.cloud.datalabeling.v1beta1; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/dataset.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/dataset.proto index 557279fa746b..038bee18fa16 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/dataset.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/dataset.proto @@ -25,7 +25,7 @@ import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation.proto index 950fa82cf456..557d7f727eff 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation.proto @@ -23,7 +23,7 @@ import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation_job.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation_job.proto index d40f8f2016d2..fc98544d5e20 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation_job.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/evaluation_job.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/human_annotation_config.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/human_annotation_config.proto index 9cc2424be4d7..0b2b016c0dc2 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/human_annotation_config.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/human_annotation_config.proto @@ -21,7 +21,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/instruction.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/instruction.proto index 9b19d32fdc5c..6227c7cfdd42 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/instruction.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/instruction.proto @@ -22,7 +22,7 @@ import "google/cloud/datalabeling/v1beta1/dataset.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/operations.proto b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/operations.proto index 02d596fc9c6e..a467dc3a6971 100644 --- a/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/operations.proto +++ b/packages/google-cloud-datalabeling/protos/google/cloud/datalabeling/v1beta1/operations.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; +option go_package = "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1"; diff --git a/packages/google-cloud-datalabeling/protos/protos.json b/packages/google-cloud-datalabeling/protos/protos.json index 6d24da13f780..31c0162ba60c 100644 --- a/packages/google-cloud-datalabeling/protos/protos.json +++ b/packages/google-cloud-datalabeling/protos/protos.json @@ -9,7 +9,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.DataLabeling.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + "go_package": "cloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb", "java_multiple_files": true, "java_package": "com.google.cloud.datalabeling.v1beta1", "php_namespace": "Google\\Cloud\\DataLabeling\\V1beta1", diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/analyze.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/analyze.proto index ece76eb5a93a..9befe7ba5223 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/analyze.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/analyze.proto @@ -22,7 +22,7 @@ import "google/cloud/dataplex/v1/resources.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "AnalyzeProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/content.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/content.proto index 9064de5c32ab..b63d8ae977f1 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/content.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/content.proto @@ -26,7 +26,7 @@ import "google/iam/v1/policy.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "ContentProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_profile.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_profile.proto index bb8695af09cf..05a005f2edde 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_profile.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_profile.proto @@ -18,7 +18,7 @@ package google.cloud.dataplex.v1; import "google/cloud/dataplex/v1/processing.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "DataProfileProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_quality.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_quality.proto index b0953a0ebcfe..fc9acd06c1fa 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_quality.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/data_quality.proto @@ -19,7 +19,7 @@ package google.cloud.dataplex.v1; import "google/api/field_behavior.proto"; import "google/cloud/dataplex/v1/processing.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "DataQualityProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/datascans.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/datascans.proto index cda87e94ba51..d2320c566b27 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/datascans.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/datascans.proto @@ -28,7 +28,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "DataScansProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/logs.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/logs.proto index f788c47eaebe..f6bc38640db6 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/logs.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/logs.proto @@ -20,7 +20,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "LogsProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/metadata.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/metadata.proto index 99c817eed8c9..c6432906f226 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/metadata.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/metadata.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "MetadataProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/processing.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/processing.proto index 49d962eb0c5c..ba32f7a0d922 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/processing.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/processing.proto @@ -19,7 +19,7 @@ package google.cloud.dataplex.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "ProcessingProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/resources.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/resources.proto index 86af8432b84e..7ba96cfee88e 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/resources.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/resources.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/service.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/service.proto index d23ca8e2f868..ba0ed0502bf7 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/service.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/service.proto @@ -28,7 +28,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/tasks.proto b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/tasks.proto index 6aa028636c0c..3e7137ba29fa 100644 --- a/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/tasks.proto +++ b/packages/google-cloud-dataplex/protos/google/cloud/dataplex/v1/tasks.proto @@ -22,7 +22,7 @@ import "google/cloud/dataplex/v1/resources.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option go_package = "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb"; option java_multiple_files = true; option java_outer_classname = "TasksProto"; option java_package = "com.google.cloud.dataplex.v1"; diff --git a/packages/google-cloud-dataplex/protos/protos.json b/packages/google-cloud-dataplex/protos/protos.json index 0353dbbe2252..f24542edef2d 100644 --- a/packages/google-cloud-dataplex/protos/protos.json +++ b/packages/google-cloud-dataplex/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex", + "go_package": "cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb", "java_multiple_files": true, "java_outer_classname": "TasksProto", "java_package": "com.google.cloud.dataplex.v1" diff --git a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/autoscaling_policies.proto b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/autoscaling_policies.proto index 18b2f7df36df..1461b87fcf3e 100644 --- a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/autoscaling_policies.proto +++ b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/autoscaling_policies.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option go_package = "cloud.google.com/go/dataproc/apiv1/dataprocpb;dataprocpb"; option java_multiple_files = true; option java_outer_classname = "AutoscalingPoliciesProto"; option java_package = "com.google.cloud.dataproc.v1"; diff --git a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/batches.proto b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/batches.proto index eafb4e354eab..0aee7f2cae28 100644 --- a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/batches.proto +++ b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/batches.proto @@ -25,7 +25,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option go_package = "cloud.google.com/go/dataproc/apiv1/dataprocpb;dataprocpb"; option java_multiple_files = true; option java_outer_classname = "BatchesProto"; option java_package = "com.google.cloud.dataproc.v1"; diff --git a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/clusters.proto b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/clusters.proto index 203efa8c4ffd..eff7cf25aadd 100644 --- a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/clusters.proto +++ b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/clusters.proto @@ -26,7 +26,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option go_package = "cloud.google.com/go/dataproc/apiv1/dataprocpb;dataprocpb"; option java_multiple_files = true; option java_outer_classname = "ClustersProto"; option java_package = "com.google.cloud.dataproc.v1"; diff --git a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/jobs.proto b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/jobs.proto index e9dcf9cc6b80..25bd69d0a6e3 100644 --- a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/jobs.proto +++ b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/jobs.proto @@ -24,7 +24,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option go_package = "cloud.google.com/go/dataproc/apiv1/dataprocpb;dataprocpb"; option java_multiple_files = true; option java_outer_classname = "JobsProto"; option java_package = "com.google.cloud.dataproc.v1"; diff --git a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/node_groups.proto b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/node_groups.proto index 0abc223820c3..a42c927f65d5 100644 --- a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/node_groups.proto +++ b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/node_groups.proto @@ -24,7 +24,7 @@ import "google/cloud/dataproc/v1/clusters.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option go_package = "cloud.google.com/go/dataproc/apiv1/dataprocpb;dataprocpb"; option java_multiple_files = true; option java_outer_classname = "NodeGroupsProto"; option java_package = "com.google.cloud.dataproc.v1"; diff --git a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/operations.proto b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/operations.proto index 854d9eda6ab6..b0b2fc2c5cd9 100644 --- a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/operations.proto +++ b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/operations.proto @@ -19,7 +19,7 @@ package google.cloud.dataproc.v1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option go_package = "cloud.google.com/go/dataproc/apiv1/dataprocpb;dataprocpb"; option java_multiple_files = true; option java_outer_classname = "OperationsProto"; option java_package = "com.google.cloud.dataproc.v1"; diff --git a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/shared.proto b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/shared.proto index 187969157757..4f9642ea3b39 100644 --- a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/shared.proto +++ b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/shared.proto @@ -18,7 +18,7 @@ package google.cloud.dataproc.v1; import "google/api/field_behavior.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option go_package = "cloud.google.com/go/dataproc/apiv1/dataprocpb;dataprocpb"; option java_multiple_files = true; option java_outer_classname = "SharedProto"; option java_package = "com.google.cloud.dataproc.v1"; diff --git a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/workflow_templates.proto b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/workflow_templates.proto index 416ba26d03c5..4ddf0a2df108 100644 --- a/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/workflow_templates.proto +++ b/packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/workflow_templates.proto @@ -27,7 +27,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option go_package = "cloud.google.com/go/dataproc/apiv1/dataprocpb;dataprocpb"; option java_multiple_files = true; option java_outer_classname = "WorkflowTemplatesProto"; option java_package = "com.google.cloud.dataproc.v1"; diff --git a/packages/google-cloud-dataproc/protos/protos.json b/packages/google-cloud-dataproc/protos/protos.json index 05d79a7f60d7..d3edf4023da5 100644 --- a/packages/google-cloud-dataproc/protos/protos.json +++ b/packages/google-cloud-dataproc/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc", + "go_package": "cloud.google.com/go/dataproc/apiv1/dataprocpb;dataprocpb", "java_multiple_files": true, "java_outer_classname": "WorkflowTemplatesProto", "java_package": "com.google.cloud.dataproc.v1", diff --git a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/annotated_string.proto b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/annotated_string.proto index d1eb596d1760..2b7592008657 100644 --- a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/annotated_string.proto +++ b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/annotated_string.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.dataqna.v1alpha; option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option go_package = "cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb"; option java_multiple_files = true; option java_outer_classname = "AnnotatedStringProto"; option java_package = "com.google.cloud.dataqna.v1alpha"; diff --git a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/auto_suggestion_service.proto b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/auto_suggestion_service.proto index dc547819a319..f8af41bb07eb 100644 --- a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/auto_suggestion_service.proto +++ b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/auto_suggestion_service.proto @@ -23,7 +23,7 @@ import "google/cloud/dataqna/v1alpha/annotated_string.proto"; import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option go_package = "cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb"; option java_multiple_files = true; option java_outer_classname = "AutoSuggestionServiceProto"; option java_package = "com.google.cloud.dataqna.v1alpha"; diff --git a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/question.proto b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/question.proto index 7478adfd7fde..950d94bd97b2 100644 --- a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/question.proto +++ b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/question.proto @@ -24,7 +24,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option go_package = "cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb"; option java_multiple_files = true; option java_outer_classname = "QuestionProto"; option java_package = "com.google.cloud.dataqna.v1alpha"; diff --git a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/question_service.proto b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/question_service.proto index d92ac1275a78..9c2b24d81154 100644 --- a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/question_service.proto +++ b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/question_service.proto @@ -25,7 +25,7 @@ import "google/cloud/dataqna/v1alpha/user_feedback.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option go_package = "cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb"; option java_multiple_files = true; option java_outer_classname = "QuestionServiceProto"; option java_package = "com.google.cloud.dataqna.v1alpha"; diff --git a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/user_feedback.proto b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/user_feedback.proto index 9749d49e70f1..6f0430881543 100644 --- a/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/user_feedback.proto +++ b/packages/google-cloud-dataqna/protos/google/cloud/dataqna/v1alpha/user_feedback.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option go_package = "cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb"; option java_multiple_files = true; option java_outer_classname = "UserFeedbackProto"; option java_package = "com.google.cloud.dataqna.v1alpha"; diff --git a/packages/google-cloud-dataqna/protos/protos.json b/packages/google-cloud-dataqna/protos/protos.json index 8ebe38d652b5..95cf98831bb4 100644 --- a/packages/google-cloud-dataqna/protos/protos.json +++ b/packages/google-cloud-dataqna/protos/protos.json @@ -9,7 +9,7 @@ "v1alpha": { "options": { "csharp_namespace": "Google.Cloud.DataQnA.V1Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna", + "go_package": "cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb", "java_multiple_files": true, "java_outer_classname": "UserFeedbackProto", "java_package": "com.google.cloud.dataqna.v1alpha", diff --git a/packages/google-cloud-datastream/protos/google/cloud/datastream/v1/datastream.proto b/packages/google-cloud-datastream/protos/google/cloud/datastream/v1/datastream.proto index a29633912097..cd9770794501 100644 --- a/packages/google-cloud-datastream/protos/google/cloud/datastream/v1/datastream.proto +++ b/packages/google-cloud-datastream/protos/google/cloud/datastream/v1/datastream.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Datastream.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datastream/v1;datastream"; +option go_package = "cloud.google.com/go/datastream/apiv1/datastreampb;datastreampb"; option java_multiple_files = true; option java_outer_classname = "DatastreamProto"; option java_package = "com.google.cloud.datastream.v1"; diff --git a/packages/google-cloud-datastream/protos/google/cloud/datastream/v1/datastream_resources.proto b/packages/google-cloud-datastream/protos/google/cloud/datastream/v1/datastream_resources.proto index 58a2c7bdf8f4..80a8deeaefbd 100644 --- a/packages/google-cloud-datastream/protos/google/cloud/datastream/v1/datastream_resources.proto +++ b/packages/google-cloud-datastream/protos/google/cloud/datastream/v1/datastream_resources.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Datastream.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datastream/v1;datastream"; +option go_package = "cloud.google.com/go/datastream/apiv1/datastreampb;datastreampb"; option java_multiple_files = true; option java_outer_classname = "DatastreamResourcesProto"; option java_package = "com.google.cloud.datastream.v1"; diff --git a/packages/google-cloud-datastream/protos/google/cloud/datastream/v1alpha1/datastream.proto b/packages/google-cloud-datastream/protos/google/cloud/datastream/v1alpha1/datastream.proto index c924cbbf5efe..14dac8fe5b54 100644 --- a/packages/google-cloud-datastream/protos/google/cloud/datastream/v1alpha1/datastream.proto +++ b/packages/google-cloud-datastream/protos/google/cloud/datastream/v1alpha1/datastream.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Datastream.V1Alpha1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datastream/v1alpha1;datastream"; +option go_package = "cloud.google.com/go/datastream/apiv1alpha1/datastreampb;datastreampb"; option java_multiple_files = true; option java_outer_classname = "CloudDatastreamServiceProto"; option java_package = "com.google.cloud.datastream.v1alpha1"; diff --git a/packages/google-cloud-datastream/protos/google/cloud/datastream/v1alpha1/datastream_resources.proto b/packages/google-cloud-datastream/protos/google/cloud/datastream/v1alpha1/datastream_resources.proto index b2a9ba3fc359..59111d92a7ec 100644 --- a/packages/google-cloud-datastream/protos/google/cloud/datastream/v1alpha1/datastream_resources.proto +++ b/packages/google-cloud-datastream/protos/google/cloud/datastream/v1alpha1/datastream_resources.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/datastream/v1alpha1;datastream"; +option go_package = "cloud.google.com/go/datastream/apiv1alpha1/datastreampb;datastreampb"; option java_multiple_files = true; option java_outer_classname = "CloudDatastreamResourcesProto"; option java_package = "com.google.cloud.datastream.v1alpha1"; diff --git a/packages/google-cloud-datastream/protos/protos.json b/packages/google-cloud-datastream/protos/protos.json index 5560f826f597..1735d370cb61 100644 --- a/packages/google-cloud-datastream/protos/protos.json +++ b/packages/google-cloud-datastream/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.Datastream.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/datastream/v1;datastream", + "go_package": "cloud.google.com/go/datastream/apiv1/datastreampb;datastreampb", "java_multiple_files": true, "java_outer_classname": "DatastreamResourcesProto", "java_package": "com.google.cloud.datastream.v1", @@ -2780,7 +2780,7 @@ "v1alpha1": { "options": { "csharp_namespace": "Google.Cloud.Datastream.V1Alpha1", - "go_package": "google.golang.org/genproto/googleapis/cloud/datastream/v1alpha1;datastream", + "go_package": "cloud.google.com/go/datastream/apiv1alpha1/datastreampb;datastreampb", "java_multiple_files": true, "java_outer_classname": "CloudDatastreamResourcesProto", "java_package": "com.google.cloud.datastream.v1alpha1", diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto index 69f8d522208e..cf8810dcd952 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; option java_multiple_files = true; option java_outer_classname = "CloudDeployProto"; option java_package = "com.google.cloud.deploy.v1"; diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto index 5fff2d0876cc..6ba9b13a14e7 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto @@ -18,7 +18,7 @@ package google.cloud.deploy.v1; import "google/cloud/deploy/v1/log_enums.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; option java_multiple_files = true; option java_outer_classname = "DeliveryPipelineNotificationPayloadProto"; option java_package = "com.google.cloud.deploy.v1"; diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/jobrun_notification_payload.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/jobrun_notification_payload.proto index f1e80d6b3257..a3049eb0e7c3 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/jobrun_notification_payload.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/jobrun_notification_payload.proto @@ -18,7 +18,7 @@ package google.cloud.deploy.v1; import "google/cloud/deploy/v1/log_enums.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; option java_multiple_files = true; option java_outer_classname = "JobRunNotificationPayloadProto"; option java_package = "com.google.cloud.deploy.v1"; diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/log_enums.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/log_enums.proto index cd6a32ea4b48..649ad98c6b06 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/log_enums.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/log_enums.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package google.cloud.deploy.v1; -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; option java_multiple_files = true; option java_outer_classname = "LogEnumsProto"; option java_package = "com.google.cloud.deploy.v1"; diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/release_notification_payload.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/release_notification_payload.proto index 0383b8e566bc..f0e117fa4e07 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/release_notification_payload.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/release_notification_payload.proto @@ -18,7 +18,7 @@ package google.cloud.deploy.v1; import "google/cloud/deploy/v1/log_enums.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; option java_multiple_files = true; option java_outer_classname = "ReleaseNotificationPayloadProto"; option java_package = "com.google.cloud.deploy.v1"; diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/release_render_payload.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/release_render_payload.proto index 414e72ded347..a8d18dcf5373 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/release_render_payload.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/release_render_payload.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package google.cloud.deploy.v1; -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; option java_multiple_files = true; option java_outer_classname = "ReleaseRenderPayloadProto"; option java_package = "com.google.cloud.deploy.v1"; diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/rollout_notification_payload.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/rollout_notification_payload.proto index 10f6864f97c8..31cc0f40db17 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/rollout_notification_payload.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/rollout_notification_payload.proto @@ -18,7 +18,7 @@ package google.cloud.deploy.v1; import "google/cloud/deploy/v1/log_enums.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; option java_multiple_files = true; option java_outer_classname = "RolloutNotificationPayloadProto"; option java_package = "com.google.cloud.deploy.v1"; diff --git a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/target_notification_payload.proto b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/target_notification_payload.proto index d121cdb8ded8..734f5a44ff79 100644 --- a/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/target_notification_payload.proto +++ b/packages/google-cloud-deploy/protos/google/cloud/deploy/v1/target_notification_payload.proto @@ -18,7 +18,7 @@ package google.cloud.deploy.v1; import "google/cloud/deploy/v1/log_enums.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; +option go_package = "cloud.google.com/go/deploy/apiv1/deploypb;deploypb"; option java_multiple_files = true; option java_outer_classname = "TargetNotificationPayloadProto"; option java_package = "com.google.cloud.deploy.v1"; diff --git a/packages/google-cloud-deploy/protos/protos.json b/packages/google-cloud-deploy/protos/protos.json index 85547b0e1f5e..a31305b93346 100644 --- a/packages/google-cloud-deploy/protos/protos.json +++ b/packages/google-cloud-deploy/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy", + "go_package": "cloud.google.com/go/deploy/apiv1/deploypb;deploypb", "java_multiple_files": true, "java_outer_classname": "TargetNotificationPayloadProto", "java_package": "com.google.cloud.deploy.v1", diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/agent.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/agent.proto index b446af773f32..67ebcfc008bb 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/agent.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/agent.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "AgentProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/answer_record.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/answer_record.proto index 762b1ea1b45b..28aabf7fd953 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/answer_record.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/answer_record.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "AnswerRecordsProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/audio_config.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/audio_config.proto index 0f34aa6663da..d7f497220954 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "AudioConfigProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/context.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/context.proto index 7a7525e3c87c..6582563e466d 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/context.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/context.proto @@ -26,7 +26,7 @@ import "google/protobuf/struct.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "ContextProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation.proto index 7fb0d557a650..6b511a570c46 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "ConversationProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation_event.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation_event.proto index 7f47dcee08af..8299612ce728 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation_event.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation_event.proto @@ -21,7 +21,7 @@ import "google/rpc/status.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "ConversationEventProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation_profile.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation_profile.proto index c01970a69d94..371a31898ea2 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation_profile.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/conversation_profile.proto @@ -29,7 +29,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "ConversationProfileProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/document.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/document.proto index ae5b8498e776..8e30bb5ad7cb 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/document.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/document.proto @@ -28,7 +28,7 @@ import "google/rpc/status.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/entity_type.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/entity_type.proto index ae408aa38d86..9855e5aec4da 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/entity_type.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/entity_type.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "EntityTypeProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/environment.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/environment.proto index 4fa6653f714d..dbe45f9293af 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/environment.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/environment.proto @@ -28,7 +28,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "EnvironmentProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/fulfillment.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/fulfillment.proto index e537a2f0227b..fd8d55893764 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/fulfillment.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/fulfillment.proto @@ -24,7 +24,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "FulfillmentProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/gcs.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/gcs.proto index debb5786c060..73cd686d3b08 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/gcs.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/gcs.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "GcsProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto index 7f8214eb5b40..af050a007acd 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto @@ -20,7 +20,7 @@ import "google/cloud/dialogflow/v2beta1/participant.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "HumanAgentAssistantEventProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/intent.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/intent.proto index 6c6536f2049a..c982e1fdbf44 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/intent.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/intent.proto @@ -28,7 +28,7 @@ import "google/protobuf/struct.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "IntentProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto index 12ee8079d889..28238ed9cbc4 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "KnowledgeBaseProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto index 486f8828bca3..43cade6fb0c3 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto @@ -29,7 +29,7 @@ import "google/rpc/status.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "ParticipantProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto index de6cde47d8b7..a34f80f95961 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto @@ -33,7 +33,7 @@ import "google/type/latlng.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "SessionProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session_entity_type.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session_entity_type.proto index 3ff4fbd7725a..8291c2429a02 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session_entity_type.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session_entity_type.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "SessionEntityTypeProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/validation_result.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/validation_result.proto index d3882b9fae23..99c67ddd202d 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/validation_result.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/validation_result.proto @@ -18,7 +18,7 @@ package google.cloud.dialogflow.v2beta1; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "ValidationResultProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/version.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/version.proto index 4e79cd323b7a..b697b5694c91 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/version.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/version.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "VersionProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/webhook.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/webhook.proto index a0a6ebdb3817..cb4d5aa4ce16 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/webhook.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/webhook.proto @@ -24,7 +24,7 @@ import "google/protobuf/struct.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; option java_multiple_files = true; option java_outer_classname = "WebhookProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; diff --git a/packages/google-cloud-dialogflow/protos/protos.json b/packages/google-cloud-dialogflow/protos/protos.json index 0fcb45d2f56d..dd7e6eb032f5 100644 --- a/packages/google-cloud-dialogflow/protos/protos.json +++ b/packages/google-cloud-dialogflow/protos/protos.json @@ -9728,7 +9728,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.Dialogflow.V2beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow", + "go_package": "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb", "java_multiple_files": true, "java_outer_classname": "WebhookProto", "java_package": "com.google.cloud.dialogflow.v2beta1", diff --git a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/common.proto b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/common.proto index 0d5e187b17d3..f956540fca69 100644 --- a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/common.proto +++ b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/common.proto @@ -19,7 +19,7 @@ package google.cloud.discoveryengine.v1beta; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/discoveryengine/v1beta;discoveryengine"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.discoveryengine.v1beta"; diff --git a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/document.proto b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/document.proto index 38c000233bd2..e62044ddb47e 100644 --- a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/document.proto +++ b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/document.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/discoveryengine/v1beta;discoveryengine"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.discoveryengine.v1beta"; diff --git a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/document_service.proto b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/document_service.proto index 78080294189e..138af1c42ecf 100644 --- a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/document_service.proto +++ b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/document_service.proto @@ -26,7 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/discoveryengine/v1beta;discoveryengine"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; option java_multiple_files = true; option java_outer_classname = "DocumentServiceProto"; option java_package = "com.google.cloud.discoveryengine.v1beta"; diff --git a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/import_config.proto b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/import_config.proto index a2b2cf8ffca6..dfd34eb45a16 100644 --- a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/import_config.proto +++ b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/import_config.proto @@ -25,7 +25,7 @@ import "google/rpc/status.proto"; import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/discoveryengine/v1beta;discoveryengine"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; option java_multiple_files = true; option java_outer_classname = "ImportConfigProto"; option java_package = "com.google.cloud.discoveryengine.v1beta"; diff --git a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto index 14304006ad33..7479a0d06c07 100644 --- a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +++ b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto @@ -25,7 +25,7 @@ import "google/cloud/discoveryengine/v1beta/user_event.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/discoveryengine/v1beta;discoveryengine"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; option java_multiple_files = true; option java_outer_classname = "RecommendationServiceProto"; option java_package = "com.google.cloud.discoveryengine.v1beta"; diff --git a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/user_event.proto b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/user_event.proto index 0e2af5afcb85..93a5268e0585 100644 --- a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/user_event.proto +++ b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/user_event.proto @@ -23,7 +23,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/discoveryengine/v1beta;discoveryengine"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; option java_multiple_files = true; option java_outer_classname = "UserEventProto"; option java_package = "com.google.cloud.discoveryengine.v1beta"; diff --git a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto index 21900556475d..f9773e2093a2 100644 --- a/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +++ b/packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto @@ -26,7 +26,7 @@ import "google/cloud/discoveryengine/v1beta/user_event.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/discoveryengine/v1beta;discoveryengine"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; option java_multiple_files = true; option java_outer_classname = "UserEventServiceProto"; option java_package = "com.google.cloud.discoveryengine.v1beta"; diff --git a/packages/google-cloud-discoveryengine/protos/protos.json b/packages/google-cloud-discoveryengine/protos/protos.json index 36c27ca81375..95c10886fa2e 100644 --- a/packages/google-cloud-discoveryengine/protos/protos.json +++ b/packages/google-cloud-discoveryengine/protos/protos.json @@ -9,7 +9,7 @@ "v1beta": { "options": { "csharp_namespace": "Google.Cloud.DiscoveryEngine.V1Beta", - "go_package": "google.golang.org/genproto/googleapis/cloud/discoveryengine/v1beta;discoveryengine", + "go_package": "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb", "java_multiple_files": true, "java_outer_classname": "UserEventServiceProto", "java_package": "com.google.cloud.discoveryengine.v1beta", diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/barcode.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/barcode.proto index bb841771ade3..c131dcbed29f 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/barcode.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/barcode.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "BarcodeProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto index 680cf88282f7..18620dbca060 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document.proto @@ -28,7 +28,7 @@ import "google/type/money.proto"; import "google/type/postal_address.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto index d56086336d2a..23768b7544ea 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto @@ -19,7 +19,7 @@ package google.cloud.documentai.v1; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentIoProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto index 3e7cf51ee9af..814cc94cc1f3 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_processor_service.proto @@ -32,7 +32,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessorService"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto index 679a6ee59e8d..3fffba9fadbd 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_schema.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiDocumentSchema"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/geometry.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/geometry.proto index 7471ef012475..ce668ec8e7ad 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/geometry.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/geometry.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/operation_metadata.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/operation_metadata.proto index 5698b0a4f3cc..b922bf4cc3ab 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/operation_metadata.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/operation_metadata.proto @@ -19,7 +19,7 @@ package google.cloud.documentai.v1; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "OperationMetadataProto"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor.proto index ac599e987b65..4dabe48fe6f5 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor.proto @@ -22,7 +22,7 @@ import "google/cloud/documentai/v1/document_schema.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessor"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor_type.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor_type.proto index a54274532cb8..e5f6eca0a89a 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor_type.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1/processor_type.proto @@ -20,7 +20,7 @@ import "google/api/launch_stage.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessorType"; option java_package = "com.google.cloud.documentai.v1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document.proto index aa95ecc29950..1f5a4da99ec8 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document.proto @@ -23,7 +23,7 @@ import "google/rpc/status.proto"; import "google/type/color.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.documentai.v1beta1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document_understanding.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document_understanding.proto index eb17286d4d5e..62601d3f3ae2 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document_understanding.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/document_understanding.proto @@ -25,7 +25,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProto"; option java_package = "com.google.cloud.documentai.v1beta1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/geometry.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/geometry.proto index 5772db745118..797154a59b72 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/geometry.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta1/geometry.proto @@ -19,7 +19,7 @@ package google.cloud.documentai.v1beta1; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta1;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta1/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.documentai.v1beta1"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto index a7255d7c1b92..bcf457112a02 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document.proto @@ -22,7 +22,7 @@ import "google/rpc/status.proto"; import "google/type/color.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta2;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta2/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.documentai.v1beta2"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document_understanding.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document_understanding.proto index 137ba5e3116f..19cb22da6a41 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document_understanding.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/document_understanding.proto @@ -25,7 +25,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta2;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta2/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProto"; option java_package = "com.google.cloud.documentai.v1beta2"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/geometry.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/geometry.proto index 8c97cb995cf4..060e5105912f 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/geometry.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta2/geometry.proto @@ -18,7 +18,7 @@ package google.cloud.documentai.v1beta2; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta2;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta2/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.documentai.v1beta2"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/barcode.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/barcode.proto index 9b063faf287a..a5148172b7ba 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/barcode.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/barcode.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1beta3; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "BarcodeProto"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto index 89f4d2e21610..caade71ebc00 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto @@ -28,7 +28,7 @@ import "google/type/money.proto"; import "google/type/postal_address.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto index 2b441c7c17e9..8c831c58d84d 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto @@ -19,7 +19,7 @@ package google.cloud.documentai.v1beta3; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentIoProto"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto index b5fff18359e9..d9a2d21242d0 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -33,7 +33,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessorService"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto index 5a470dfa162f..b792319da4fe 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_schema.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1beta3; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiDocumentSchema"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/evaluation.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/evaluation.proto index c6aa30e7ab44..1601b86eb4f0 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/evaluation.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/evaluation.proto @@ -20,7 +20,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiEvaluation"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/geometry.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/geometry.proto index c42e0cb7a07d..05eeac9c4936 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/geometry.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/geometry.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1beta3; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/operation_metadata.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/operation_metadata.proto index cd573a823c47..e8f757a543ba 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/operation_metadata.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/operation_metadata.proto @@ -19,7 +19,7 @@ package google.cloud.documentai.v1beta3; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "OperationMetadataProto"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto index 970e2b979696..707ab54cbf96 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto @@ -22,7 +22,7 @@ import "google/cloud/documentai/v1beta3/document_schema.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessor"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor_type.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor_type.proto index 1d9f6fa3a7dc..0ff23ffafb3d 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor_type.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor_type.proto @@ -20,7 +20,7 @@ import "google/api/launch_stage.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessorType"; option java_package = "com.google.cloud.documentai.v1beta3"; diff --git a/packages/google-cloud-documentai/protos/protos.json b/packages/google-cloud-documentai/protos/protos.json index 7c0317a08abf..d139158d9a97 100644 --- a/packages/google-cloud-documentai/protos/protos.json +++ b/packages/google-cloud-documentai/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.DocumentAI.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai", + "go_package": "cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb", "java_multiple_files": true, "java_outer_classname": "DocumentAiProcessorType", "java_package": "com.google.cloud.documentai.v1", @@ -2505,7 +2505,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.DocumentAI.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/documentai/v1beta1;documentai", + "go_package": "cloud.google.com/go/documentai/apiv1beta1/documentaipb;documentaipb", "java_multiple_files": true, "java_outer_classname": "DocumentAiProto", "java_package": "com.google.cloud.documentai.v1beta1", @@ -3332,7 +3332,7 @@ "v1beta2": { "options": { "csharp_namespace": "Google.Cloud.DocumentAI.V1Beta2", - "go_package": "google.golang.org/genproto/googleapis/cloud/documentai/v1beta2;documentai", + "go_package": "cloud.google.com/go/documentai/apiv1beta2/documentaipb;documentaipb", "java_multiple_files": true, "java_outer_classname": "DocumentAiProto", "java_package": "com.google.cloud.documentai.v1beta2", @@ -4324,7 +4324,7 @@ "v1beta3": { "options": { "csharp_namespace": "Google.Cloud.DocumentAI.V1Beta3", - "go_package": "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai", + "go_package": "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb", "java_multiple_files": true, "java_outer_classname": "DocumentAiProcessorType", "java_package": "com.google.cloud.documentai.v1beta3", diff --git a/packages/google-cloud-domains/protos/google/cloud/domains/v1/domains.proto b/packages/google-cloud-domains/protos/google/cloud/domains/v1/domains.proto index a9123616395b..5746e561b0f4 100644 --- a/packages/google-cloud-domains/protos/google/cloud/domains/v1/domains.proto +++ b/packages/google-cloud-domains/protos/google/cloud/domains/v1/domains.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/money.proto"; import "google/type/postal_address.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/domains/v1;domains"; +option go_package = "cloud.google.com/go/domains/apiv1/domainspb;domainspb"; option java_multiple_files = true; option java_outer_classname = "DomainsProto"; option java_package = "com.google.cloud.domains.v1"; diff --git a/packages/google-cloud-domains/protos/google/cloud/domains/v1alpha2/domains.proto b/packages/google-cloud-domains/protos/google/cloud/domains/v1alpha2/domains.proto index 8f4273c399d7..2c3822d417e7 100644 --- a/packages/google-cloud-domains/protos/google/cloud/domains/v1alpha2/domains.proto +++ b/packages/google-cloud-domains/protos/google/cloud/domains/v1alpha2/domains.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/money.proto"; import "google/type/postal_address.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/domains/v1alpha2;domains"; +option go_package = "cloud.google.com/go/domains/apiv1alpha2/domainspb;domainspb"; option java_multiple_files = true; option java_outer_classname = "DomainsProto"; option java_package = "com.google.cloud.domains.v1alpha2"; diff --git a/packages/google-cloud-domains/protos/google/cloud/domains/v1beta1/domains.proto b/packages/google-cloud-domains/protos/google/cloud/domains/v1beta1/domains.proto index 062cdb067c17..b148e946aa8d 100644 --- a/packages/google-cloud-domains/protos/google/cloud/domains/v1beta1/domains.proto +++ b/packages/google-cloud-domains/protos/google/cloud/domains/v1beta1/domains.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/money.proto"; import "google/type/postal_address.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/domains/v1beta1;domains"; +option go_package = "cloud.google.com/go/domains/apiv1beta1/domainspb;domainspb"; option java_multiple_files = true; option java_outer_classname = "DomainsProto"; option java_package = "com.google.cloud.domains.v1beta1"; diff --git a/packages/google-cloud-domains/protos/protos.json b/packages/google-cloud-domains/protos/protos.json index 69be27f0c95c..43ed651b8664 100644 --- a/packages/google-cloud-domains/protos/protos.json +++ b/packages/google-cloud-domains/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/domains/v1;domains", + "go_package": "cloud.google.com/go/domains/apiv1/domainspb;domainspb", "java_multiple_files": true, "java_outer_classname": "DomainsProto", "java_package": "com.google.cloud.domains.v1" @@ -1207,7 +1207,7 @@ }, "v1alpha2": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/domains/v1alpha2;domains", + "go_package": "cloud.google.com/go/domains/apiv1alpha2/domainspb;domainspb", "java_multiple_files": true, "java_outer_classname": "DomainsProto", "java_package": "com.google.cloud.domains.v1alpha2" @@ -2406,7 +2406,7 @@ }, "v1beta1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/domains/v1beta1;domains", + "go_package": "cloud.google.com/go/domains/apiv1beta1/domainspb;domainspb", "java_multiple_files": true, "java_outer_classname": "DomainsProto", "java_package": "com.google.cloud.domains.v1beta1" From 0a6525ebcbfb88932c7069b1217897d5b7137eaa Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 3 Feb 2023 15:36:40 -0500 Subject: [PATCH 16/38] chore: [Many APIs] update import paths for Go targets to match open source location (#3933) chore: update import paths for Go targets to match open source location chore: update go_package in protos to match open source location chore: add explicit release levels to Go gapic targets PiperOrigin-RevId: 506711567 Source-Link: https://github.com/googleapis/googleapis/commit/d02e58244db5d01607ec2ad52a47e7edce8612f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7f1c54153125eb5abd60a32de58cfda6a798a70a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVzc2VudGlhbGNvbnRhY3RzLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLXB1Ymxpc2hpbmcvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWZpbGVzdG9yZS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWZ1bmN0aW9ucy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdhbWluZy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZWJhY2t1cC8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZWNvbm5lY3QtZ2F0ZXdheS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZWh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZW11bHRpY2xvdWQvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlhcC8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlkcy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlvdC8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWttcy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWxhbmd1YWdlLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWxpZmVzY2llbmNlcy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1hbmFnZWRpZGVudGl0aWVzLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lZGlhdHJhbnNsYXRpb24vLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lbWNhY2hlLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1ldGFzdG9yZS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Benjamin E. Coe --- .../cloud/essentialcontacts/v1/enums.proto | 2 +- .../cloud/essentialcontacts/v1/service.proto | 2 +- .../protos/protos.json | 2 +- .../eventarc/publishing/v1/publisher.proto | 2 +- .../protos/protos.json | 2 +- .../google/cloud/eventarc/v1/channel.proto | 2 +- .../eventarc/v1/channel_connection.proto | 2 +- .../google/cloud/eventarc/v1/discovery.proto | 2 +- .../google/cloud/eventarc/v1/eventarc.proto | 2 +- .../eventarc/v1/google_channel_config.proto | 2 +- .../google/cloud/eventarc/v1/trigger.proto | 2 +- .../google-cloud-eventarc/protos/protos.json | 2 +- .../v1/cloud_filestore_service.proto | 2 +- .../v1beta1/cloud_filestore_service.proto | 2 +- .../google-cloud-filestore/protos/protos.json | 4 +-- .../google/cloud/functions/v1/functions.proto | 2 +- .../cloud/functions/v1/operations.proto | 2 +- .../google/cloud/functions/v2/functions.proto | 2 +- .../cloud/functions/v2alpha/functions.proto | 2 +- .../cloud/functions/v2beta/functions.proto | 2 +- .../google-cloud-functions/protos/protos.json | 8 ++--- .../google/cloud/gaming/v1/common.proto | 2 +- .../gaming/v1/game_server_clusters.proto | 2 +- .../v1/game_server_clusters_service.proto | 2 +- .../cloud/gaming/v1/game_server_configs.proto | 2 +- .../v1/game_server_configs_service.proto | 2 +- .../gaming/v1/game_server_deployments.proto | 2 +- .../v1/game_server_deployments_service.proto | 2 +- .../google/cloud/gaming/v1/realms.proto | 2 +- .../cloud/gaming/v1/realms_service.proto | 2 +- .../google/cloud/gaming/v1beta/common.proto | 2 +- .../gaming/v1beta/game_server_clusters.proto | 2 +- .../v1beta/game_server_clusters_service.proto | 2 +- .../gaming/v1beta/game_server_configs.proto | 2 +- .../v1beta/game_server_configs_service.proto | 2 +- .../v1beta/game_server_deployments.proto | 2 +- .../game_server_deployments_service.proto | 2 +- .../google/cloud/gaming/v1beta/realms.proto | 2 +- .../cloud/gaming/v1beta/realms_service.proto | 2 +- .../google-cloud-gaming/protos/protos.json | 4 +-- .../google/cloud/gkebackup/v1/backup.proto | 2 +- .../cloud/gkebackup/v1/backup_plan.proto | 2 +- .../google/cloud/gkebackup/v1/common.proto | 2 +- .../google/cloud/gkebackup/v1/gkebackup.proto | 2 +- .../google/cloud/gkebackup/v1/restore.proto | 2 +- .../cloud/gkebackup/v1/restore_plan.proto | 2 +- .../google/cloud/gkebackup/v1/volume.proto | 2 +- .../google-cloud-gkebackup/protos/protos.json | 2 +- .../gkeconnect/gateway/v1beta1/gateway.proto | 2 +- .../protos/protos.json | 2 +- .../configmanagement/configmanagement.proto | 2 +- .../google/cloud/gkehub/v1/feature.proto | 2 +- .../google/cloud/gkehub/v1/membership.proto | 2 +- .../multiclusteringress.proto | 2 +- .../google/cloud/gkehub/v1/service.proto | 2 +- .../cloudauditlogging/cloudauditlogging.proto | 2 +- .../configmanagement/configmanagement.proto | 2 +- .../google/cloud/gkehub/v1alpha/feature.proto | 2 +- .../gkehub/v1alpha/metering/metering.proto | 2 +- .../multiclusteringress.proto | 2 +- .../google/cloud/gkehub/v1alpha/service.proto | 2 +- .../v1alpha/servicemesh/servicemesh.proto | 2 +- .../cloud/gkehub/v1alpha2/membership.proto | 2 +- .../configmanagement/configmanagement.proto | 2 +- .../google/cloud/gkehub/v1beta/feature.proto | 2 +- .../gkehub/v1beta/metering/metering.proto | 2 +- .../multiclusteringress.proto | 2 +- .../google/cloud/gkehub/v1beta/service.proto | 2 +- .../cloud/gkehub/v1beta1/membership.proto | 2 +- .../google-cloud-gkehub/protos/protos.json | 30 +++++++++---------- .../gkemulticloud/v1/attached_resources.proto | 2 +- .../gkemulticloud/v1/attached_service.proto | 2 +- .../gkemulticloud/v1/aws_resources.proto | 2 +- .../cloud/gkemulticloud/v1/aws_service.proto | 2 +- .../gkemulticloud/v1/azure_resources.proto | 2 +- .../gkemulticloud/v1/azure_service.proto | 2 +- .../gkemulticloud/v1/common_resources.proto | 2 +- .../protos/protos.json | 2 +- .../protos/google/cloud/iap/v1/service.proto | 2 +- .../google/cloud/iap/v1beta1/service.proto | 2 +- packages/google-cloud-iap/protos/protos.json | 4 +-- .../protos/google/cloud/ids/v1/ids.proto | 2 +- packages/google-cloud-ids/protos/protos.json | 2 +- .../google/cloud/iot/v1/device_manager.proto | 2 +- .../google/cloud/iot/v1/resources.proto | 2 +- packages/google-cloud-iot/protos/protos.json | 2 +- .../google/cloud/kms/v1/ekm_service.proto | 2 +- .../google/cloud/kms/v1/resources.proto | 2 +- .../protos/google/cloud/kms/v1/service.proto | 2 +- packages/google-cloud-kms/protos/protos.json | 2 +- .../cloud/language/v1/language_service.proto | 2 +- .../language/v1beta2/language_service.proto | 2 +- .../google-cloud-language/protos/protos.json | 4 +-- .../cloud/lifesciences/v2beta/workflows.proto | 2 +- .../protos/protos.json | 2 +- .../v1/managed_identities_service.proto | 2 +- .../cloud/managedidentities/v1/resource.proto | 2 +- .../v1beta1/managed_identities_service.proto | 2 +- .../managedidentities/v1beta1/resource.proto | 2 +- .../protos/protos.json | 4 +-- .../v1beta1/media_translation.proto | 2 +- .../protos/protos.json | 2 +- .../cloud/memcache/v1/cloud_memcache.proto | 2 +- .../memcache/v1beta2/cloud_memcache.proto | 2 +- .../google-cloud-memcache/protos/protos.json | 4 +-- .../google/cloud/metastore/v1/metastore.proto | 2 +- .../metastore/v1/metastore_federation.proto | 2 +- .../cloud/metastore/v1alpha/metastore.proto | 2 +- .../v1alpha/metastore_federation.proto | 2 +- .../cloud/metastore/v1beta/metastore.proto | 2 +- .../v1beta/metastore_federation.proto | 2 +- .../google-cloud-metastore/protos/protos.json | 6 ++-- 112 files changed, 137 insertions(+), 137 deletions(-) diff --git a/packages/google-cloud-essentialcontacts/protos/google/cloud/essentialcontacts/v1/enums.proto b/packages/google-cloud-essentialcontacts/protos/google/cloud/essentialcontacts/v1/enums.proto index 6fcdeb3735cb..ec0ecd9f9c75 100644 --- a/packages/google-cloud-essentialcontacts/protos/google/cloud/essentialcontacts/v1/enums.proto +++ b/packages/google-cloud-essentialcontacts/protos/google/cloud/essentialcontacts/v1/enums.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package google.cloud.essentialcontacts.v1; -option go_package = "google.golang.org/genproto/googleapis/cloud/essentialcontacts/v1;essentialcontacts"; +option go_package = "cloud.google.com/go/essentialcontacts/apiv1/essentialcontactspb;essentialcontactspb"; option java_multiple_files = true; option java_outer_classname = "EnumsProto"; option java_package = "com.google.cloud.essentialcontacts.v1"; diff --git a/packages/google-cloud-essentialcontacts/protos/google/cloud/essentialcontacts/v1/service.proto b/packages/google-cloud-essentialcontacts/protos/google/cloud/essentialcontacts/v1/service.proto index 2bd0f1a61631..edee4105248c 100644 --- a/packages/google-cloud-essentialcontacts/protos/google/cloud/essentialcontacts/v1/service.proto +++ b/packages/google-cloud-essentialcontacts/protos/google/cloud/essentialcontacts/v1/service.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/essentialcontacts/v1;essentialcontacts"; +option go_package = "cloud.google.com/go/essentialcontacts/apiv1/essentialcontactspb;essentialcontactspb"; option java_multiple_files = true; option java_package = "com.google.cloud.essentialcontacts.v1"; option csharp_namespace = "Google.Cloud.EssentialContacts.V1"; diff --git a/packages/google-cloud-essentialcontacts/protos/protos.json b/packages/google-cloud-essentialcontacts/protos/protos.json index 8c722dcdd1f5..c7534f7a751e 100644 --- a/packages/google-cloud-essentialcontacts/protos/protos.json +++ b/packages/google-cloud-essentialcontacts/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/essentialcontacts/v1;essentialcontacts", + "go_package": "cloud.google.com/go/essentialcontacts/apiv1/essentialcontactspb;essentialcontactspb", "java_multiple_files": true, "java_outer_classname": "EnumsProto", "java_package": "com.google.cloud.essentialcontacts.v1", diff --git a/packages/google-cloud-eventarc-publishing/protos/google/cloud/eventarc/publishing/v1/publisher.proto b/packages/google-cloud-eventarc-publishing/protos/google/cloud/eventarc/publishing/v1/publisher.proto index b68f1ece8470..53ca8f438eb1 100644 --- a/packages/google-cloud-eventarc-publishing/protos/google/cloud/eventarc/publishing/v1/publisher.proto +++ b/packages/google-cloud-eventarc-publishing/protos/google/cloud/eventarc/publishing/v1/publisher.proto @@ -20,7 +20,7 @@ import "google/api/client.proto"; import "google/protobuf/any.proto"; option csharp_namespace = "Google.Cloud.Eventarc.Publishing.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/publishing/v1;publisher"; +option go_package = "cloud.google.com/go/eventarc/publishing/apiv1/publishingpb;publishingpb"; option java_multiple_files = true; option java_outer_classname = "PublisherProto"; option java_package = "com.google.cloud.eventarc.publishing.v1"; diff --git a/packages/google-cloud-eventarc-publishing/protos/protos.json b/packages/google-cloud-eventarc-publishing/protos/protos.json index 031f0f34d233..1a12a2223912 100644 --- a/packages/google-cloud-eventarc-publishing/protos/protos.json +++ b/packages/google-cloud-eventarc-publishing/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.Eventarc.Publishing.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/eventarc/publishing/v1;publisher", + "go_package": "cloud.google.com/go/eventarc/publishing/apiv1/publishingpb;publishingpb", "java_multiple_files": true, "java_outer_classname": "PublisherProto", "java_package": "com.google.cloud.eventarc.publishing.v1", diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel.proto index 9c5395580b1d..dde0f6070103 100644 --- a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel.proto +++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Eventarc.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc"; +option go_package = "cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpb"; option java_multiple_files = true; option java_outer_classname = "ChannelProto"; option java_package = "com.google.cloud.eventarc.v1"; diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel_connection.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel_connection.proto index 576b5cc59f03..01fac685d604 100644 --- a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel_connection.proto +++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel_connection.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Eventarc.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc"; +option go_package = "cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpb"; option java_multiple_files = true; option java_outer_classname = "ChannelConnectionProto"; option java_package = "com.google.cloud.eventarc.v1"; diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/discovery.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/discovery.proto index 44633de81a3f..f2671580f05a 100644 --- a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/discovery.proto +++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/discovery.proto @@ -19,7 +19,7 @@ package google.cloud.eventarc.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc"; +option go_package = "cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpb"; option java_multiple_files = true; option java_outer_classname = "DiscoveryProto"; option java_package = "com.google.cloud.eventarc.v1"; diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/eventarc.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/eventarc.proto index 44d46fce3b86..95ba4f7c5cac 100644 --- a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/eventarc.proto +++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/eventarc.proto @@ -30,7 +30,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Eventarc.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc"; +option go_package = "cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpb"; option java_multiple_files = true; option java_outer_classname = "EventarcProto"; option java_package = "com.google.cloud.eventarc.v1"; diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/google_channel_config.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/google_channel_config.proto index 2b440b57dc4a..af00ef25ead3 100644 --- a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/google_channel_config.proto +++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/google_channel_config.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Eventarc.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc"; +option go_package = "cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpb"; option java_multiple_files = true; option java_outer_classname = "GoogleChannelConfigProto"; option java_package = "com.google.cloud.eventarc.v1"; diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/trigger.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/trigger.proto index c4ede775f0af..a2e86a653816 100644 --- a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/trigger.proto +++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/trigger.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/code.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc"; +option go_package = "cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpb"; option java_multiple_files = true; option java_outer_classname = "TriggerProto"; option java_package = "com.google.cloud.eventarc.v1"; diff --git a/packages/google-cloud-eventarc/protos/protos.json b/packages/google-cloud-eventarc/protos/protos.json index 4744aa1f09e3..54c8284c9602 100644 --- a/packages/google-cloud-eventarc/protos/protos.json +++ b/packages/google-cloud-eventarc/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.Eventarc.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc", + "go_package": "cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpb", "java_multiple_files": true, "java_outer_classname": "TriggerProto", "java_package": "com.google.cloud.eventarc.v1", diff --git a/packages/google-cloud-filestore/protos/google/cloud/filestore/v1/cloud_filestore_service.proto b/packages/google-cloud-filestore/protos/google/cloud/filestore/v1/cloud_filestore_service.proto index 676fa0b2fc53..6086772551c1 100644 --- a/packages/google-cloud-filestore/protos/google/cloud/filestore/v1/cloud_filestore_service.proto +++ b/packages/google-cloud-filestore/protos/google/cloud/filestore/v1/cloud_filestore_service.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.Filestore.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/filestore/v1;filestore"; +option go_package = "cloud.google.com/go/filestore/apiv1/filestorepb;filestorepb"; option java_multiple_files = true; option java_outer_classname = "CloudFilestoreServiceProto"; option java_package = "com.google.cloud.filestore.v1"; diff --git a/packages/google-cloud-filestore/protos/google/cloud/filestore/v1beta1/cloud_filestore_service.proto b/packages/google-cloud-filestore/protos/google/cloud/filestore/v1beta1/cloud_filestore_service.proto index bf600312e2d4..81f284220709 100644 --- a/packages/google-cloud-filestore/protos/google/cloud/filestore/v1beta1/cloud_filestore_service.proto +++ b/packages/google-cloud-filestore/protos/google/cloud/filestore/v1beta1/cloud_filestore_service.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.Filestore.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/filestore/v1beta1;filestore"; +option go_package = "cloud.google.com/go/filestore/apiv1beta1/filestorepb;filestorepb"; option java_multiple_files = true; option java_outer_classname = "CloudFilestoreServiceProto"; option java_package = "com.google.cloud.filestore.v1beta1"; diff --git a/packages/google-cloud-filestore/protos/protos.json b/packages/google-cloud-filestore/protos/protos.json index a6a3cabaf678..65952217b3b3 100644 --- a/packages/google-cloud-filestore/protos/protos.json +++ b/packages/google-cloud-filestore/protos/protos.json @@ -71,7 +71,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.Filestore.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/filestore/v1;filestore", + "go_package": "cloud.google.com/go/filestore/apiv1/filestorepb;filestorepb", "java_multiple_files": true, "java_outer_classname": "CloudFilestoreServiceProto", "java_package": "com.google.cloud.filestore.v1", @@ -899,7 +899,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.Filestore.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/filestore/v1beta1;filestore", + "go_package": "cloud.google.com/go/filestore/apiv1beta1/filestorepb;filestorepb", "java_multiple_files": true, "java_outer_classname": "CloudFilestoreServiceProto", "java_package": "com.google.cloud.filestore.v1beta1", diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v1/functions.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v1/functions.proto index 7592f3bed902..4b01c5b4f6ba 100644 --- a/packages/google-cloud-functions/protos/google/cloud/functions/v1/functions.proto +++ b/packages/google-cloud-functions/protos/google/cloud/functions/v1/functions.proto @@ -27,7 +27,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v1;functions"; +option go_package = "cloud.google.com/go/functions/apiv1/functionspb;functionspb"; option java_multiple_files = true; option java_outer_classname = "FunctionsProto"; option java_package = "com.google.cloud.functions.v1"; diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v1/operations.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v1/operations.proto index 9d634e782f76..880774c96c0d 100644 --- a/packages/google-cloud-functions/protos/google/cloud/functions/v1/operations.proto +++ b/packages/google-cloud-functions/protos/google/cloud/functions/v1/operations.proto @@ -19,7 +19,7 @@ package google.cloud.functions.v1; import "google/protobuf/any.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v1;functions"; +option go_package = "cloud.google.com/go/functions/apiv1/functionspb;functionspb"; option java_multiple_files = true; option java_outer_classname = "FunctionsOperationsProto"; option java_package = "com.google.cloud.functions.v1"; diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v2/functions.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v2/functions.proto index 6af26ee880de..a22047aa01ae 100644 --- a/packages/google-cloud-functions/protos/google/cloud/functions/v2/functions.proto +++ b/packages/google-cloud-functions/protos/google/cloud/functions/v2/functions.proto @@ -25,7 +25,7 @@ import "google/protobuf/any.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v2;functions"; +option go_package = "cloud.google.com/go/functions/apiv2/functionspb;functionspb"; option java_multiple_files = true; option java_outer_classname = "FunctionsProto"; option java_package = "com.google.cloud.functions.v2"; diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v2alpha/functions.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v2alpha/functions.proto index 6bc9de6832ce..0861c4b668ff 100644 --- a/packages/google-cloud-functions/protos/google/cloud/functions/v2alpha/functions.proto +++ b/packages/google-cloud-functions/protos/google/cloud/functions/v2alpha/functions.proto @@ -25,7 +25,7 @@ import "google/protobuf/any.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v2alpha;functions"; +option go_package = "cloud.google.com/go/functions/apiv2alpha/functionspb;functionspb"; option java_multiple_files = true; option java_outer_classname = "FunctionsProto"; option java_package = "com.google.cloud.functions.v2alpha"; diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v2beta/functions.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v2beta/functions.proto index 4d8ee95f3432..4d2284f31de8 100644 --- a/packages/google-cloud-functions/protos/google/cloud/functions/v2beta/functions.proto +++ b/packages/google-cloud-functions/protos/google/cloud/functions/v2beta/functions.proto @@ -25,7 +25,7 @@ import "google/protobuf/any.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v2beta;functions"; +option go_package = "cloud.google.com/go/functions/apiv2beta/functionspb;functionspb"; option java_multiple_files = true; option java_outer_classname = "FunctionsProto"; option java_package = "com.google.cloud.functions.v2beta"; diff --git a/packages/google-cloud-functions/protos/protos.json b/packages/google-cloud-functions/protos/protos.json index 96b51701a707..c3b9f8605e6b 100644 --- a/packages/google-cloud-functions/protos/protos.json +++ b/packages/google-cloud-functions/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/functions/v1;functions", + "go_package": "cloud.google.com/go/functions/apiv1/functionspb;functionspb", "java_multiple_files": true, "java_outer_classname": "FunctionsOperationsProto", "java_package": "com.google.cloud.functions.v1", @@ -810,7 +810,7 @@ }, "v2": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/functions/v2;functions", + "go_package": "cloud.google.com/go/functions/apiv2/functionspb;functionspb", "java_multiple_files": true, "java_outer_classname": "FunctionsProto", "java_package": "com.google.cloud.functions.v2", @@ -1795,7 +1795,7 @@ }, "v2alpha": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/functions/v2alpha;functions", + "go_package": "cloud.google.com/go/functions/apiv2alpha/functionspb;functionspb", "java_multiple_files": true, "java_outer_classname": "FunctionsProto", "java_package": "com.google.cloud.functions.v2alpha", @@ -2780,7 +2780,7 @@ }, "v2beta": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/functions/v2beta;functions", + "go_package": "cloud.google.com/go/functions/apiv2beta/functionspb;functionspb", "java_multiple_files": true, "java_outer_classname": "FunctionsProto", "java_package": "com.google.cloud.functions.v2beta", diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/common.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/common.proto index 843042671ffe..3537dc53d0be 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/common.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/common.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_clusters.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_clusters.proto index 02fbc0f890b0..2319999436f5 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_clusters.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_clusters.proto @@ -22,7 +22,7 @@ import "google/cloud/gaming/v1/common.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_clusters_service.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_clusters_service.proto index db7a0f28f080..08ee2bd53e52 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_clusters_service.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_clusters_service.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/cloud/gaming/v1/game_server_clusters.proto"; import "google/longrunning/operations.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_configs.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_configs.proto index c9848654e853..568bb85555c7 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_configs.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_configs.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/gaming/v1/common.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_configs_service.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_configs_service.proto index c151d6032faf..5460fedb0218 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_configs_service.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_configs_service.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/cloud/gaming/v1/game_server_configs.proto"; import "google/longrunning/operations.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_deployments.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_deployments.proto index 3c01717dd9b6..d972491f6453 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_deployments.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_deployments.proto @@ -22,7 +22,7 @@ import "google/cloud/gaming/v1/common.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_deployments_service.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_deployments_service.proto index a82d259e83fc..544011340a0a 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_deployments_service.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/game_server_deployments_service.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/cloud/gaming/v1/game_server_deployments.proto"; import "google/longrunning/operations.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/realms.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/realms.proto index 007071a90636..2c7f07aa7015 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/realms.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/realms.proto @@ -22,7 +22,7 @@ import "google/cloud/gaming/v1/common.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/realms_service.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/realms_service.proto index 018850d71d52..685b59efa325 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/realms_service.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1/realms_service.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/cloud/gaming/v1/realms.proto"; import "google/longrunning/operations.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/common.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/common.proto index 4059404fcc2e..c11de6590cd2 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/common.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/common.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1beta"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_clusters.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_clusters.proto index 0a91a635d803..c65b1dd47456 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_clusters.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_clusters.proto @@ -22,7 +22,7 @@ import "google/cloud/gaming/v1beta/common.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1beta"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_clusters_service.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_clusters_service.proto index 18b374b694d6..1ad7d7678938 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_clusters_service.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_clusters_service.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/cloud/gaming/v1beta/game_server_clusters.proto"; import "google/longrunning/operations.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1beta"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_configs.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_configs.proto index 1ffc0c816ef1..4a87e0f95d96 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_configs.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_configs.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/gaming/v1beta/common.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1beta"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_configs_service.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_configs_service.proto index 20a2c888eeca..ba82bc109ae7 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_configs_service.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_configs_service.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/cloud/gaming/v1beta/game_server_configs.proto"; import "google/longrunning/operations.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1beta"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_deployments.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_deployments.proto index 01e8fef934a6..73691a2ca648 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_deployments.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_deployments.proto @@ -22,7 +22,7 @@ import "google/cloud/gaming/v1beta/common.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1beta"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_deployments_service.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_deployments_service.proto index 0b3503f46caf..8260f0487321 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_deployments_service.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/game_server_deployments_service.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/cloud/gaming/v1beta/game_server_deployments.proto"; import "google/longrunning/operations.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1beta"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/realms.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/realms.proto index e80bae0a9f42..dcba0cd7d1e1 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/realms.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/realms.proto @@ -22,7 +22,7 @@ import "google/cloud/gaming/v1beta/common.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1beta"; diff --git a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/realms_service.proto b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/realms_service.proto index eb6cca9312f4..bb9cbe9d59f1 100644 --- a/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/realms_service.proto +++ b/packages/google-cloud-gaming/protos/google/cloud/gaming/v1beta/realms_service.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/cloud/gaming/v1beta/realms.proto"; import "google/longrunning/operations.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming"; +option go_package = "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1beta"; diff --git a/packages/google-cloud-gaming/protos/protos.json b/packages/google-cloud-gaming/protos/protos.json index 2fae5e07879f..4301b4b3ad0e 100644 --- a/packages/google-cloud-gaming/protos/protos.json +++ b/packages/google-cloud-gaming/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming", + "go_package": "cloud.google.com/go/gaming/apiv1/gamingpb;gamingpb", "java_multiple_files": true, "java_package": "com.google.cloud.gaming.v1" }, @@ -2076,7 +2076,7 @@ }, "v1beta": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming", + "go_package": "cloud.google.com/go/gaming/apiv1beta/gamingpb;gamingpb", "java_multiple_files": true, "java_package": "com.google.cloud.gaming.v1beta", "php_namespace": "Google\\Cloud\\Gaming\\V1beta" diff --git a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/backup.proto b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/backup.proto index 5e8193b75eae..635689d76343 100644 --- a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/backup.proto +++ b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/backup.proto @@ -22,7 +22,7 @@ import "google/cloud/gkebackup/v1/common.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeBackup.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkebackup/v1;gkebackup"; +option go_package = "cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb"; option java_multiple_files = true; option java_outer_classname = "BackupProto"; option java_package = "com.google.cloud.gkebackup.v1"; diff --git a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/backup_plan.proto b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/backup_plan.proto index ae823f18a330..f9579e27d07c 100644 --- a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/backup_plan.proto +++ b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/backup_plan.proto @@ -22,7 +22,7 @@ import "google/cloud/gkebackup/v1/common.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeBackup.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkebackup/v1;gkebackup"; +option go_package = "cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb"; option java_multiple_files = true; option java_outer_classname = "BackupPlanProto"; option java_package = "com.google.cloud.gkebackup.v1"; diff --git a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/common.proto b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/common.proto index f86e95eae4e5..0656bd281011 100644 --- a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/common.proto +++ b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/common.proto @@ -19,7 +19,7 @@ package google.cloud.gkebackup.v1; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.GkeBackup.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkebackup/v1;gkebackup"; +option go_package = "cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.gkebackup.v1"; diff --git a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/gkebackup.proto b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/gkebackup.proto index 84da52d465f0..795fa2cd9064 100644 --- a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/gkebackup.proto +++ b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/gkebackup.proto @@ -30,7 +30,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeBackup.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkebackup/v1;gkebackup"; +option go_package = "cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb"; option java_multiple_files = true; option java_outer_classname = "GKEBackupProto"; option java_package = "com.google.cloud.gkebackup.v1"; diff --git a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/restore.proto b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/restore.proto index b2eb017a5218..7f97e56c7318 100644 --- a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/restore.proto +++ b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/restore.proto @@ -22,7 +22,7 @@ import "google/cloud/gkebackup/v1/common.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeBackup.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkebackup/v1;gkebackup"; +option go_package = "cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb"; option java_multiple_files = true; option java_outer_classname = "RestoreProto"; option java_package = "com.google.cloud.gkebackup.v1"; diff --git a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/restore_plan.proto b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/restore_plan.proto index 5811332b05e0..32bc31b62d84 100644 --- a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/restore_plan.proto +++ b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/restore_plan.proto @@ -22,7 +22,7 @@ import "google/cloud/gkebackup/v1/restore.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeBackup.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkebackup/v1;gkebackup"; +option go_package = "cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb"; option java_multiple_files = true; option java_outer_classname = "RestorePlanProto"; option java_package = "com.google.cloud.gkebackup.v1"; diff --git a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/volume.proto b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/volume.proto index 87b633ce19c4..a7914291c361 100644 --- a/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/volume.proto +++ b/packages/google-cloud-gkebackup/protos/google/cloud/gkebackup/v1/volume.proto @@ -22,7 +22,7 @@ import "google/cloud/gkebackup/v1/common.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeBackup.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkebackup/v1;gkebackup"; +option go_package = "cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb"; option java_multiple_files = true; option java_outer_classname = "VolumeProto"; option java_package = "com.google.cloud.gkebackup.v1"; diff --git a/packages/google-cloud-gkebackup/protos/protos.json b/packages/google-cloud-gkebackup/protos/protos.json index f2808929ccce..da563c372e18 100644 --- a/packages/google-cloud-gkebackup/protos/protos.json +++ b/packages/google-cloud-gkebackup/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.GkeBackup.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkebackup/v1;gkebackup", + "go_package": "cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb", "java_multiple_files": true, "java_outer_classname": "VolumeProto", "java_package": "com.google.cloud.gkebackup.v1", diff --git a/packages/google-cloud-gkeconnect-gateway/protos/google/cloud/gkeconnect/gateway/v1beta1/gateway.proto b/packages/google-cloud-gkeconnect-gateway/protos/google/cloud/gkeconnect/gateway/v1beta1/gateway.proto index 6e13893ca7a1..5dc600c1c01c 100644 --- a/packages/google-cloud-gkeconnect-gateway/protos/google/cloud/gkeconnect/gateway/v1beta1/gateway.proto +++ b/packages/google-cloud-gkeconnect-gateway/protos/google/cloud/gkeconnect/gateway/v1beta1/gateway.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/api/httpbody.proto"; option csharp_namespace = "Google.Cloud.GkeConnect.Gateway.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkeconnect/gateway/v1beta1;gateway"; +option go_package = "cloud.google.com/go/gkeconnect/gateway/apiv1beta1/gatewaypb;gatewaypb"; option java_multiple_files = true; option java_outer_classname = "GatewayProto"; option java_package = "com.google.cloud.gkeconnect.gateway.v1beta1"; diff --git a/packages/google-cloud-gkeconnect-gateway/protos/protos.json b/packages/google-cloud-gkeconnect-gateway/protos/protos.json index 65b66014583f..09042fe52b78 100644 --- a/packages/google-cloud-gkeconnect-gateway/protos/protos.json +++ b/packages/google-cloud-gkeconnect-gateway/protos/protos.json @@ -11,7 +11,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.GkeConnect.Gateway.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkeconnect/gateway/v1beta1;gateway", + "go_package": "cloud.google.com/go/gkeconnect/gateway/apiv1beta1/gatewaypb;gatewaypb", "java_multiple_files": true, "java_outer_classname": "GatewayProto", "java_package": "com.google.cloud.gkeconnect.gateway.v1beta1", diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/configmanagement/configmanagement.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/configmanagement/configmanagement.proto index 4dc0b4216a9f..978276dc5c6c 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/configmanagement/configmanagement.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/configmanagement/configmanagement.proto @@ -19,7 +19,7 @@ package google.cloud.gkehub.configmanagement.v1; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.ConfigManagement.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/configmanagement/v1;configmanagement"; +option go_package = "cloud.google.com/go/gkehub/configmanagement/apiv1/configmanagementpb;configmanagementpb"; option java_multiple_files = true; option java_outer_classname = "ConfigManagementProto"; option java_package = "com.google.cloud.gkehub.configmanagement.v1"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/feature.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/feature.proto index 402f500d93a6..6b48661b4fd1 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/feature.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/feature.proto @@ -23,7 +23,7 @@ import "google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1;gkehub"; +option go_package = "cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpb"; option java_multiple_files = true; option java_outer_classname = "FeatureProto"; option java_package = "com.google.cloud.gkehub.v1"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/membership.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/membership.proto index c7f9c9f23a22..3133403d72f4 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/membership.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/membership.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1;gkehub"; +option go_package = "cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpb"; option java_multiple_files = true; option java_outer_classname = "MembershipProto"; option java_package = "com.google.cloud.gkehub.v1"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto index 5beb548a6e1b..ce9a72514d76 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.gkehub.multiclusteringress.v1; option csharp_namespace = "Google.Cloud.GkeHub.MultiClusterIngress.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/multiclusteringress/v1;multiclusteringress"; +option go_package = "cloud.google.com/go/gkehub/multiclusteringress/apiv1/multiclusteringresspb;multiclusteringresspb"; option java_multiple_files = true; option java_outer_classname = "MultiClusterIngressProto"; option java_package = "com.google.cloud.gkehub.multiclusteringress.v1"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/service.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/service.proto index 484a2e1d201f..612f079d5d32 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/service.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1/service.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1;gkehub"; +option go_package = "cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.gkehub.v1"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto index f0f060ab1b19..e8b3bb0caafa 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto @@ -18,7 +18,7 @@ package google.cloud.gkehub.cloudauditlogging.v1alpha; option csharp_namespace = "Google.Cloud.GkeHub.CloudAuditLogging.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/cloudauditlogging/v1alpha;cloudauditlogging"; +option go_package = "cloud.google.com/go/gkehub/cloudauditlogging/apiv1alpha/cloudauditloggingpb;cloudauditloggingpb"; option java_multiple_files = true; option java_outer_classname = "CloudAuditLoggingProto"; option java_package = "com.google.cloud.gkehub.cloudauditlogging.v1alpha"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto index 11f60814d91f..bca2e55108e7 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto @@ -19,7 +19,7 @@ package google.cloud.gkehub.configmanagement.v1alpha; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.ConfigManagement.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/configmanagement/v1alpha;configmanagement"; +option go_package = "cloud.google.com/go/gkehub/configmanagement/apiv1alpha/configmanagementpb;configmanagementpb"; option java_multiple_files = true; option java_outer_classname = "ConfigManagementProto"; option java_package = "com.google.cloud.gkehub.configmanagement.v1alpha"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/feature.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/feature.proto index 7ebbd5eabb9e..e8557d90ab74 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/feature.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/feature.proto @@ -26,7 +26,7 @@ import "google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1alpha;gkehub"; +option go_package = "cloud.google.com/go/gkehub/apiv1alpha/gkehubpb;gkehubpb"; option java_multiple_files = true; option java_outer_classname = "FeatureProto"; option java_package = "com.google.cloud.gkehub.v1alpha"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/metering/metering.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/metering/metering.proto index 96ee3d9fc542..6bb7e55a7216 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/metering/metering.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/metering/metering.proto @@ -19,7 +19,7 @@ package google.cloud.gkehub.metering.v1alpha; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.Metering.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/metering/v1alpha;metering"; +option go_package = "cloud.google.com/go/gkehub/metering/apiv1alpha/meteringpb;meteringpb"; option java_multiple_files = true; option java_outer_classname = "MeteringProto"; option java_package = "com.google.cloud.gkehub.metering.v1alpha"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto index c8f409066f61..2d4ce5c7f2f1 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto @@ -18,7 +18,7 @@ package google.cloud.gkehub.multiclusteringress.v1alpha; option csharp_namespace = "Google.Cloud.GkeHub.MultiClusterIngress.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/multiclusteringress/v1alpha;multiclusteringress"; +option go_package = "cloud.google.com/go/gkehub/multiclusteringress/apiv1alpha/multiclusteringresspb;multiclusteringresspb"; option java_multiple_files = true; option java_outer_classname = "MultiClusterIngressProto"; option java_package = "com.google.cloud.gkehub.multiclusteringress.v1alpha"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/service.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/service.proto index 7bbf9c76819c..f90a53a51294 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/service.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/service.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1alpha;gkehub"; +option go_package = "cloud.google.com/go/gkehub/apiv1alpha/gkehubpb;gkehubpb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.gkehub.v1alpha"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto index 7c898c8af434..927c15a5994e 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.GkeHub.ServiceMesh.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/servicemesh/v1alpha;servicemesh"; +option go_package = "cloud.google.com/go/gkehub/servicemesh/apiv1alpha/servicemeshpb;servicemeshpb"; option java_multiple_files = true; option java_outer_classname = "ServiceMeshProto"; option java_package = "com.google.cloud.gkehub.servicemesh.v1alpha"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha2/membership.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha2/membership.proto index bea0dff75740..1256ae45e8f0 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha2/membership.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1alpha2/membership.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1Alpha2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1alpha2;gkehub"; +option go_package = "cloud.google.com/go/gkehub/apiv1alpha2/gkehubpb;gkehubpb"; option java_multiple_files = true; option java_outer_classname = "MembershipProto"; option java_package = "com.google.cloud.gkehub.v1alpha2"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto index 89df90f40ab1..77211d349db6 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto @@ -19,7 +19,7 @@ package google.cloud.gkehub.configmanagement.v1beta; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.ConfigManagement.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/configmanagement/v1beta;configmanagement"; +option go_package = "cloud.google.com/go/gkehub/configmanagement/apiv1beta/configmanagementpb;configmanagementpb"; option java_multiple_files = true; option java_outer_classname = "ConfigManagementProto"; option java_package = "com.google.cloud.gkehub.configmanagement.v1beta"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/feature.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/feature.proto index b847f9920d1a..3655644e6e53 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/feature.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/feature.proto @@ -24,7 +24,7 @@ import "google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta;gkehub"; +option go_package = "cloud.google.com/go/gkehub/apiv1beta/gkehubpb;gkehubpb"; option java_multiple_files = true; option java_outer_classname = "FeatureProto"; option java_package = "com.google.cloud.gkehub.v1beta"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/metering/metering.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/metering/metering.proto index 26fce8bc070b..3436915d5546 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/metering/metering.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/metering/metering.proto @@ -19,7 +19,7 @@ package google.cloud.gkehub.metering.v1beta; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.Metering.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/metering/v1beta;metering"; +option go_package = "cloud.google.com/go/gkehub/metering/apiv1beta/meteringpb;meteringpb"; option java_multiple_files = true; option java_outer_classname = "MeteringProto"; option java_package = "com.google.cloud.gkehub.metering.v1beta"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto index 450f2bd7c8cf..90c483b3bf6e 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto @@ -18,7 +18,7 @@ package google.cloud.gkehub.multiclusteringress.v1beta; option csharp_namespace = "Google.Cloud.GkeHub.MultiClusterIngress.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/multiclusteringress/v1beta;multiclusteringress"; +option go_package = "cloud.google.com/go/gkehub/multiclusteringress/apiv1beta/multiclusteringresspb;multiclusteringresspb"; option java_multiple_files = true; option java_outer_classname = "MultiClusterIngressProto"; option java_package = "com.google.cloud.gkehub.multiclusteringress.v1beta"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/service.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/service.proto index 57b6a72dab25..27640473a6e6 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/service.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta/service.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta;gkehub"; +option go_package = "cloud.google.com/go/gkehub/apiv1beta/gkehubpb;gkehubpb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.gkehub.v1beta"; diff --git a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta1/membership.proto b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta1/membership.proto index a8567263c2a6..fadedf5b2d50 100644 --- a/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta1/membership.proto +++ b/packages/google-cloud-gkehub/protos/google/cloud/gkehub/v1beta1/membership.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta1;gkehub"; +option go_package = "cloud.google.com/go/gkehub/apiv1beta1/gkehubpb;gkehubpb"; option java_multiple_files = true; option java_package = "com.google.cloud.gkehub.v1beta1"; option php_namespace = "Google\\Cloud\\GkeHub\\V1beta1"; diff --git a/packages/google-cloud-gkehub/protos/protos.json b/packages/google-cloud-gkehub/protos/protos.json index c004a1bf8c09..b1086a6a31dc 100644 --- a/packages/google-cloud-gkehub/protos/protos.json +++ b/packages/google-cloud-gkehub/protos/protos.json @@ -1055,7 +1055,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.ConfigManagement.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/configmanagement/v1;configmanagement", + "go_package": "cloud.google.com/go/gkehub/configmanagement/apiv1/configmanagementpb;configmanagementpb", "java_multiple_files": true, "java_outer_classname": "ConfigManagementProto", "java_package": "com.google.cloud.gkehub.configmanagement.v1", @@ -1503,7 +1503,7 @@ "v1alpha": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.ConfigManagement.V1Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/configmanagement/v1alpha;configmanagement", + "go_package": "cloud.google.com/go/gkehub/configmanagement/apiv1alpha/configmanagementpb;configmanagementpb", "java_multiple_files": true, "java_outer_classname": "ConfigManagementProto", "java_package": "com.google.cloud.gkehub.configmanagement.v1alpha", @@ -1995,7 +1995,7 @@ "v1beta": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.ConfigManagement.V1Beta", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/configmanagement/v1beta;configmanagement", + "go_package": "cloud.google.com/go/gkehub/configmanagement/apiv1beta/configmanagementpb;configmanagementpb", "java_multiple_files": true, "java_outer_classname": "ConfigManagementProto", "java_package": "com.google.cloud.gkehub.configmanagement.v1beta", @@ -2481,7 +2481,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/v1;gkehub", + "go_package": "cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpb", "java_multiple_files": true, "java_outer_classname": "ServiceProto", "java_package": "com.google.cloud.gkehub.v1", @@ -3660,7 +3660,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.MultiClusterIngress.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/multiclusteringress/v1;multiclusteringress", + "go_package": "cloud.google.com/go/gkehub/multiclusteringress/apiv1/multiclusteringresspb;multiclusteringresspb", "java_multiple_files": true, "java_outer_classname": "MultiClusterIngressProto", "java_package": "com.google.cloud.gkehub.multiclusteringress.v1", @@ -3681,7 +3681,7 @@ "v1alpha": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.MultiClusterIngress.V1Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/multiclusteringress/v1alpha;multiclusteringress", + "go_package": "cloud.google.com/go/gkehub/multiclusteringress/apiv1alpha/multiclusteringresspb;multiclusteringresspb", "java_multiple_files": true, "java_outer_classname": "MultiClusterIngressProto", "java_package": "com.google.cloud.gkehub.multiclusteringress.v1alpha", @@ -3713,7 +3713,7 @@ "v1beta": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.MultiClusterIngress.V1Beta", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/multiclusteringress/v1beta;multiclusteringress", + "go_package": "cloud.google.com/go/gkehub/multiclusteringress/apiv1beta/multiclusteringresspb;multiclusteringresspb", "java_multiple_files": true, "java_outer_classname": "MultiClusterIngressProto", "java_package": "com.google.cloud.gkehub.multiclusteringress.v1beta", @@ -3749,7 +3749,7 @@ "v1alpha": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.CloudAuditLogging.V1Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/cloudauditlogging/v1alpha;cloudauditlogging", + "go_package": "cloud.google.com/go/gkehub/cloudauditlogging/apiv1alpha/cloudauditloggingpb;cloudauditloggingpb", "java_multiple_files": true, "java_outer_classname": "CloudAuditLoggingProto", "java_package": "com.google.cloud.gkehub.cloudauditlogging.v1alpha", @@ -3773,7 +3773,7 @@ "v1alpha": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.V1Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/v1alpha;gkehub", + "go_package": "cloud.google.com/go/gkehub/apiv1alpha/gkehubpb;gkehubpb", "java_multiple_files": true, "java_outer_classname": "ServiceProto", "java_package": "com.google.cloud.gkehub.v1alpha", @@ -4287,7 +4287,7 @@ "v1alpha": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.Metering.V1Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/metering/v1alpha;metering", + "go_package": "cloud.google.com/go/gkehub/metering/apiv1alpha/meteringpb;meteringpb", "java_multiple_files": true, "java_outer_classname": "MeteringProto", "java_package": "com.google.cloud.gkehub.metering.v1alpha", @@ -4312,7 +4312,7 @@ "v1beta": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.Metering.V1Beta", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/metering/v1beta;metering", + "go_package": "cloud.google.com/go/gkehub/metering/apiv1beta/meteringpb;meteringpb", "java_multiple_files": true, "java_outer_classname": "MeteringProto", "java_package": "com.google.cloud.gkehub.metering.v1beta", @@ -4341,7 +4341,7 @@ "v1alpha": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.ServiceMesh.V1Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/servicemesh/v1alpha;servicemesh", + "go_package": "cloud.google.com/go/gkehub/servicemesh/apiv1alpha/servicemeshpb;servicemeshpb", "java_multiple_files": true, "java_outer_classname": "ServiceMeshProto", "java_package": "com.google.cloud.gkehub.servicemesh.v1alpha", @@ -4439,7 +4439,7 @@ "v1alpha2": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.V1Alpha2", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/v1alpha2;gkehub", + "go_package": "cloud.google.com/go/gkehub/apiv1alpha2/gkehubpb;gkehubpb", "java_multiple_files": true, "java_outer_classname": "MembershipProto", "java_package": "com.google.cloud.gkehub.v1alpha2", @@ -5300,7 +5300,7 @@ "v1beta": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.V1Beta", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta;gkehub", + "go_package": "cloud.google.com/go/gkehub/apiv1beta/gkehubpb;gkehubpb", "java_multiple_files": true, "java_outer_classname": "ServiceProto", "java_package": "com.google.cloud.gkehub.v1beta", @@ -5791,7 +5791,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.GkeHub.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta1;gkehub", + "go_package": "cloud.google.com/go/gkehub/apiv1beta1/gkehubpb;gkehubpb", "java_multiple_files": true, "java_package": "com.google.cloud.gkehub.v1beta1", "php_namespace": "Google\\Cloud\\GkeHub\\V1beta1", diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto index 157072863d96..adca2ee90273 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_resources.proto @@ -22,7 +22,7 @@ import "google/cloud/gkemulticloud/v1/common_resources.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud"; +option go_package = "cloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb"; option java_multiple_files = true; option java_outer_classname = "AttachedResourcesProto"; option java_package = "com.google.cloud.gkemulticloud.v1"; diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto index f4e72873824b..175be6d4e441 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/attached_service.proto @@ -25,7 +25,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud"; +option go_package = "cloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb"; option java_multiple_files = true; option java_outer_classname = "AttachedServiceProto"; option java_package = "com.google.cloud.gkemulticloud.v1"; diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_resources.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_resources.proto index f1684a81195a..8989cd8643df 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_resources.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_resources.proto @@ -22,7 +22,7 @@ import "google/cloud/gkemulticloud/v1/common_resources.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud"; +option go_package = "cloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb"; option java_multiple_files = true; option java_outer_classname = "AwsResourcesProto"; option java_package = "com.google.cloud.gkemulticloud.v1"; diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_service.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_service.proto index 000e45a6343c..874f4df58e15 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_service.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/aws_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud"; +option go_package = "cloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb"; option java_multiple_files = true; option java_outer_classname = "AwsServiceProto"; option java_package = "com.google.cloud.gkemulticloud.v1"; diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_resources.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_resources.proto index f4d3c1c6323b..d7b6fc19e2d6 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_resources.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_resources.proto @@ -22,7 +22,7 @@ import "google/cloud/gkemulticloud/v1/common_resources.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud"; +option go_package = "cloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb"; option java_multiple_files = true; option java_outer_classname = "AzureResourcesProto"; option java_package = "com.google.cloud.gkemulticloud.v1"; diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_service.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_service.proto index 22c2d6a7cf44..d39e9dd63b55 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_service.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/azure_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud"; +option go_package = "cloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb"; option java_multiple_files = true; option java_outer_classname = "AzureServiceProto"; option java_package = "com.google.cloud.gkemulticloud.v1"; diff --git a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/common_resources.proto b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/common_resources.proto index ba34f50b4c5b..a39cb813e21a 100644 --- a/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/common_resources.proto +++ b/packages/google-cloud-gkemulticloud/protos/google/cloud/gkemulticloud/v1/common_resources.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud"; +option go_package = "cloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb"; option java_multiple_files = true; option java_outer_classname = "CommonResourcesProto"; option java_package = "com.google.cloud.gkemulticloud.v1"; diff --git a/packages/google-cloud-gkemulticloud/protos/protos.json b/packages/google-cloud-gkemulticloud/protos/protos.json index d2d05431db87..d65b1ee3ea7d 100644 --- a/packages/google-cloud-gkemulticloud/protos/protos.json +++ b/packages/google-cloud-gkemulticloud/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.GkeMultiCloud.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud", + "go_package": "cloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb", "java_multiple_files": true, "java_outer_classname": "AzureServiceProto", "java_package": "com.google.cloud.gkemulticloud.v1", diff --git a/packages/google-cloud-iap/protos/google/cloud/iap/v1/service.proto b/packages/google-cloud-iap/protos/google/cloud/iap/v1/service.proto index 919009292c4e..b0ba2e3fbf13 100644 --- a/packages/google-cloud-iap/protos/google/cloud/iap/v1/service.proto +++ b/packages/google-cloud-iap/protos/google/cloud/iap/v1/service.proto @@ -28,7 +28,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.Iap.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/iap/v1;iap"; +option go_package = "cloud.google.com/go/iap/apiv1/iappb;iappb"; option java_multiple_files = true; option java_package = "com.google.cloud.iap.v1"; option php_namespace = "Google\\Cloud\\Iap\\V1"; diff --git a/packages/google-cloud-iap/protos/google/cloud/iap/v1beta1/service.proto b/packages/google-cloud-iap/protos/google/cloud/iap/v1beta1/service.proto index a414a339be99..c1ead1cfd2c9 100644 --- a/packages/google-cloud-iap/protos/google/cloud/iap/v1beta1/service.proto +++ b/packages/google-cloud-iap/protos/google/cloud/iap/v1beta1/service.proto @@ -21,7 +21,7 @@ import "google/api/client.proto"; import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/iap/v1beta1;iap"; +option go_package = "cloud.google.com/go/iap/apiv1beta1/iappb;iappb"; option java_multiple_files = true; option java_package = "com.google.cloud.iap.v1beta1"; diff --git a/packages/google-cloud-iap/protos/protos.json b/packages/google-cloud-iap/protos/protos.json index 1d0b8c520bd6..23a5269bba8d 100644 --- a/packages/google-cloud-iap/protos/protos.json +++ b/packages/google-cloud-iap/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.Iap.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/iap/v1;iap", + "go_package": "cloud.google.com/go/iap/apiv1/iappb;iappb", "java_multiple_files": true, "java_package": "com.google.cloud.iap.v1", "php_namespace": "Google\\Cloud\\Iap\\V1", @@ -895,7 +895,7 @@ }, "v1beta1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/iap/v1beta1;iap", + "go_package": "cloud.google.com/go/iap/apiv1beta1/iappb;iappb", "java_multiple_files": true, "java_package": "com.google.cloud.iap.v1beta1" }, diff --git a/packages/google-cloud-ids/protos/google/cloud/ids/v1/ids.proto b/packages/google-cloud-ids/protos/google/cloud/ids/v1/ids.proto index d5202a5445dd..bad61be32e0d 100644 --- a/packages/google-cloud-ids/protos/google/cloud/ids/v1/ids.proto +++ b/packages/google-cloud-ids/protos/google/cloud/ids/v1/ids.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/ids/v1;ids"; +option go_package = "cloud.google.com/go/ids/apiv1/idspb;idspb"; option java_multiple_files = true; option java_outer_classname = "IdsProto"; option java_package = "com.google.cloud.ids.v1"; diff --git a/packages/google-cloud-ids/protos/protos.json b/packages/google-cloud-ids/protos/protos.json index 751103d84e66..6261697d8088 100644 --- a/packages/google-cloud-ids/protos/protos.json +++ b/packages/google-cloud-ids/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/ids/v1;ids", + "go_package": "cloud.google.com/go/ids/apiv1/idspb;idspb", "java_multiple_files": true, "java_outer_classname": "IdsProto", "java_package": "com.google.cloud.ids.v1", diff --git a/packages/google-cloud-iot/protos/google/cloud/iot/v1/device_manager.proto b/packages/google-cloud-iot/protos/google/cloud/iot/v1/device_manager.proto index b28140ce7b52..121bcdeefca1 100644 --- a/packages/google-cloud-iot/protos/google/cloud/iot/v1/device_manager.proto +++ b/packages/google-cloud-iot/protos/google/cloud/iot/v1/device_manager.proto @@ -27,7 +27,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/iot/v1;iot"; +option go_package = "cloud.google.com/go/iot/apiv1/iotpb;iotpb"; option java_multiple_files = true; option java_outer_classname = "DeviceManagerProto"; option java_package = "com.google.cloud.iot.v1"; diff --git a/packages/google-cloud-iot/protos/google/cloud/iot/v1/resources.proto b/packages/google-cloud-iot/protos/google/cloud/iot/v1/resources.proto index a14fc027ef47..d08d268b0243 100644 --- a/packages/google-cloud-iot/protos/google/cloud/iot/v1/resources.proto +++ b/packages/google-cloud-iot/protos/google/cloud/iot/v1/resources.proto @@ -21,7 +21,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/iot/v1;iot"; +option go_package = "cloud.google.com/go/iot/apiv1/iotpb;iotpb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.cloud.iot.v1"; diff --git a/packages/google-cloud-iot/protos/protos.json b/packages/google-cloud-iot/protos/protos.json index 0f026f5320c8..d65293669ee6 100644 --- a/packages/google-cloud-iot/protos/protos.json +++ b/packages/google-cloud-iot/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/iot/v1;iot", + "go_package": "cloud.google.com/go/iot/apiv1/iotpb;iotpb", "java_multiple_files": true, "java_outer_classname": "ResourcesProto", "java_package": "com.google.cloud.iot.v1" diff --git a/packages/google-cloud-kms/protos/google/cloud/kms/v1/ekm_service.proto b/packages/google-cloud-kms/protos/google/cloud/kms/v1/ekm_service.proto index c179d4a6c35b..aea72d681704 100644 --- a/packages/google-cloud-kms/protos/google/cloud/kms/v1/ekm_service.proto +++ b/packages/google-cloud-kms/protos/google/cloud/kms/v1/ekm_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Kms.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/kms/v1;kms"; +option go_package = "cloud.google.com/go/kms/apiv1/kmspb;kmspb"; option java_multiple_files = true; option java_outer_classname = "EkmServiceProto"; option java_package = "com.google.cloud.kms.v1"; diff --git a/packages/google-cloud-kms/protos/google/cloud/kms/v1/resources.proto b/packages/google-cloud-kms/protos/google/cloud/kms/v1/resources.proto index fa89122c8a0e..23a787295fd3 100644 --- a/packages/google-cloud-kms/protos/google/cloud/kms/v1/resources.proto +++ b/packages/google-cloud-kms/protos/google/cloud/kms/v1/resources.proto @@ -24,7 +24,7 @@ import "google/protobuf/wrappers.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Kms.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/kms/v1;kms"; +option go_package = "cloud.google.com/go/kms/apiv1/kmspb;kmspb"; option java_multiple_files = true; option java_outer_classname = "KmsResourcesProto"; option java_package = "com.google.cloud.kms.v1"; diff --git a/packages/google-cloud-kms/protos/google/cloud/kms/v1/service.proto b/packages/google-cloud-kms/protos/google/cloud/kms/v1/service.proto index 938f1e2550ec..86a020f4b73a 100644 --- a/packages/google-cloud-kms/protos/google/cloud/kms/v1/service.proto +++ b/packages/google-cloud-kms/protos/google/cloud/kms/v1/service.proto @@ -26,7 +26,7 @@ import "google/protobuf/wrappers.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Kms.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/kms/v1;kms"; +option go_package = "cloud.google.com/go/kms/apiv1/kmspb;kmspb"; option java_multiple_files = true; option java_outer_classname = "KmsProto"; option java_package = "com.google.cloud.kms.v1"; diff --git a/packages/google-cloud-kms/protos/protos.json b/packages/google-cloud-kms/protos/protos.json index b532f93ffe5b..7b248f1317de 100644 --- a/packages/google-cloud-kms/protos/protos.json +++ b/packages/google-cloud-kms/protos/protos.json @@ -10,7 +10,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.Kms.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/kms/v1;kms", + "go_package": "cloud.google.com/go/kms/apiv1/kmspb;kmspb", "java_multiple_files": true, "java_outer_classname": "KmsProto", "java_package": "com.google.cloud.kms.v1", diff --git a/packages/google-cloud-language/protos/google/cloud/language/v1/language_service.proto b/packages/google-cloud-language/protos/google/cloud/language/v1/language_service.proto index 4dae89745bf4..991ccabb01e7 100644 --- a/packages/google-cloud-language/protos/google/cloud/language/v1/language_service.proto +++ b/packages/google-cloud-language/protos/google/cloud/language/v1/language_service.proto @@ -20,7 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/language/v1;language"; +option go_package = "cloud.google.com/go/language/apiv1/languagepb;languagepb"; option java_multiple_files = true; option java_outer_classname = "LanguageServiceProto"; option java_package = "com.google.cloud.language.v1"; diff --git a/packages/google-cloud-language/protos/google/cloud/language/v1beta2/language_service.proto b/packages/google-cloud-language/protos/google/cloud/language/v1beta2/language_service.proto index 3e6a9f8290ec..49c6c0dd1e20 100644 --- a/packages/google-cloud-language/protos/google/cloud/language/v1beta2/language_service.proto +++ b/packages/google-cloud-language/protos/google/cloud/language/v1beta2/language_service.proto @@ -20,7 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/language/v1beta2;language"; +option go_package = "cloud.google.com/go/language/apiv1beta2/languagepb;languagepb"; option java_multiple_files = true; option java_outer_classname = "LanguageServiceProto"; option java_package = "com.google.cloud.language.v1beta2"; diff --git a/packages/google-cloud-language/protos/protos.json b/packages/google-cloud-language/protos/protos.json index 043713bcd1b9..4d5a00f8cf9d 100644 --- a/packages/google-cloud-language/protos/protos.json +++ b/packages/google-cloud-language/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/language/v1;language", + "go_package": "cloud.google.com/go/language/apiv1/languagepb;languagepb", "java_multiple_files": true, "java_outer_classname": "LanguageServiceProto", "java_package": "com.google.cloud.language.v1" @@ -904,7 +904,7 @@ }, "v1beta2": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/language/v1beta2;language", + "go_package": "cloud.google.com/go/language/apiv1beta2/languagepb;languagepb", "java_multiple_files": true, "java_outer_classname": "LanguageServiceProto", "java_package": "com.google.cloud.language.v1beta2" diff --git a/packages/google-cloud-lifesciences/protos/google/cloud/lifesciences/v2beta/workflows.proto b/packages/google-cloud-lifesciences/protos/google/cloud/lifesciences/v2beta/workflows.proto index f936850e1d28..d3a465e35693 100644 --- a/packages/google-cloud-lifesciences/protos/google/cloud/lifesciences/v2beta/workflows.proto +++ b/packages/google-cloud-lifesciences/protos/google/cloud/lifesciences/v2beta/workflows.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/code.proto"; option csharp_namespace = "Google.Cloud.LifeSciences.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/lifesciences/v2beta;lifesciences"; +option go_package = "cloud.google.com/go/lifesciences/apiv2beta/lifesciencespb;lifesciencespb"; option java_multiple_files = true; option java_outer_classname = "WorkflowsProto"; option java_package = "com.google.cloud.lifesciences.v2beta"; diff --git a/packages/google-cloud-lifesciences/protos/protos.json b/packages/google-cloud-lifesciences/protos/protos.json index 5a3e377c6716..5d36f8315386 100644 --- a/packages/google-cloud-lifesciences/protos/protos.json +++ b/packages/google-cloud-lifesciences/protos/protos.json @@ -9,7 +9,7 @@ "v2beta": { "options": { "csharp_namespace": "Google.Cloud.LifeSciences.V2Beta", - "go_package": "google.golang.org/genproto/googleapis/cloud/lifesciences/v2beta;lifesciences", + "go_package": "cloud.google.com/go/lifesciences/apiv2beta/lifesciencespb;lifesciencespb", "java_multiple_files": true, "java_outer_classname": "WorkflowsProto", "java_package": "com.google.cloud.lifesciences.v2beta", diff --git a/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1/managed_identities_service.proto b/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1/managed_identities_service.proto index 9112ac6e5e25..3a8d14ef1df4 100644 --- a/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1/managed_identities_service.proto +++ b/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1/managed_identities_service.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ManagedIdentities.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/managedidentities/v1;managedidentities"; +option go_package = "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb;managedidentitiespb"; option java_multiple_files = true; option java_outer_classname = "ManagedIdentitiesServiceProto"; option java_package = "com.google.cloud.managedidentities.v1"; diff --git a/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1/resource.proto b/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1/resource.proto index abae9da6fab0..f03917ca0d16 100644 --- a/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1/resource.proto +++ b/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1/resource.proto @@ -22,7 +22,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ManagedIdentities.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/managedidentities/v1;managedidentities"; +option go_package = "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb;managedidentitiespb"; option java_multiple_files = true; option java_outer_classname = "ResourceProto"; option java_package = "com.google.cloud.managedidentities.v1"; diff --git a/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1beta1/managed_identities_service.proto b/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1beta1/managed_identities_service.proto index 17bc165f2df9..8abe4a8c6df2 100644 --- a/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1beta1/managed_identities_service.proto +++ b/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1beta1/managed_identities_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ManagedIdentities.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/managedidentities/v1beta1;managedidentities"; +option go_package = "cloud.google.com/go/managedidentities/apiv1beta1/managedidentitiespb;managedidentitiespb"; option java_multiple_files = true; option java_outer_classname = "ManagedIdentitiesServiceProto"; option java_package = "com.google.cloud.managedidentities.v1beta1"; diff --git a/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1beta1/resource.proto b/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1beta1/resource.proto index a866b9e8c33c..7fa7cc0c08be 100644 --- a/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1beta1/resource.proto +++ b/packages/google-cloud-managedidentities/protos/google/cloud/managedidentities/v1beta1/resource.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ManagedIdentities.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/managedidentities/v1beta1;managedidentities"; +option go_package = "cloud.google.com/go/managedidentities/apiv1beta1/managedidentitiespb;managedidentitiespb"; option java_multiple_files = true; option java_outer_classname = "ResourceProto"; option java_package = "com.google.cloud.managedidentities.v1beta1"; diff --git a/packages/google-cloud-managedidentities/protos/protos.json b/packages/google-cloud-managedidentities/protos/protos.json index a685231190e5..40caea345907 100644 --- a/packages/google-cloud-managedidentities/protos/protos.json +++ b/packages/google-cloud-managedidentities/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.ManagedIdentities.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/managedidentities/v1;managedidentities", + "go_package": "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb;managedidentitiespb", "java_multiple_files": true, "java_outer_classname": "ResourceProto", "java_package": "com.google.cloud.managedidentities.v1", @@ -776,7 +776,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.ManagedIdentities.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/managedidentities/v1beta1;managedidentities", + "go_package": "cloud.google.com/go/managedidentities/apiv1beta1/managedidentitiespb;managedidentitiespb", "java_multiple_files": true, "java_outer_classname": "ResourceProto", "java_package": "com.google.cloud.managedidentities.v1beta1", diff --git a/packages/google-cloud-mediatranslation/protos/google/cloud/mediatranslation/v1beta1/media_translation.proto b/packages/google-cloud-mediatranslation/protos/google/cloud/mediatranslation/v1beta1/media_translation.proto index 88c86d094ef5..63aff80c9273 100644 --- a/packages/google-cloud-mediatranslation/protos/google/cloud/mediatranslation/v1beta1/media_translation.proto +++ b/packages/google-cloud-mediatranslation/protos/google/cloud/mediatranslation/v1beta1/media_translation.proto @@ -21,7 +21,7 @@ import "google/rpc/status.proto"; import "google/api/client.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/mediatranslation/v1beta1;mediatranslation"; +option go_package = "cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb;mediatranslationpb"; option java_multiple_files = true; option java_outer_classname = "MediaTranslationProto"; option java_package = "com.google.cloud.mediatranslation.v1beta1"; diff --git a/packages/google-cloud-mediatranslation/protos/protos.json b/packages/google-cloud-mediatranslation/protos/protos.json index 84f96f9c18bf..b1ef5de4ae97 100644 --- a/packages/google-cloud-mediatranslation/protos/protos.json +++ b/packages/google-cloud-mediatranslation/protos/protos.json @@ -9,7 +9,7 @@ "v1beta1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/mediatranslation/v1beta1;mediatranslation", + "go_package": "cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb;mediatranslationpb", "java_multiple_files": true, "java_outer_classname": "MediaTranslationProto", "java_package": "com.google.cloud.mediatranslation.v1beta1", diff --git a/packages/google-cloud-memcache/protos/google/cloud/memcache/v1/cloud_memcache.proto b/packages/google-cloud-memcache/protos/google/cloud/memcache/v1/cloud_memcache.proto index f1cca1231376..1a6e172696b1 100644 --- a/packages/google-cloud-memcache/protos/google/cloud/memcache/v1/cloud_memcache.proto +++ b/packages/google-cloud-memcache/protos/google/cloud/memcache/v1/cloud_memcache.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/memcache/v1;memcache"; +option go_package = "cloud.google.com/go/memcache/apiv1/memcachepb;memcachepb"; option java_multiple_files = true; option java_outer_classname = "CloudMemcacheProto"; option java_package = "com.google.cloud.memcache.v1"; diff --git a/packages/google-cloud-memcache/protos/google/cloud/memcache/v1beta2/cloud_memcache.proto b/packages/google-cloud-memcache/protos/google/cloud/memcache/v1beta2/cloud_memcache.proto index 4cb9040318b7..7a11e2a1124b 100644 --- a/packages/google-cloud-memcache/protos/google/cloud/memcache/v1beta2/cloud_memcache.proto +++ b/packages/google-cloud-memcache/protos/google/cloud/memcache/v1beta2/cloud_memcache.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2;memcache"; +option go_package = "cloud.google.com/go/memcache/apiv1beta2/memcachepb;memcachepb"; option java_multiple_files = true; option java_outer_classname = "CloudMemcacheProto"; option java_package = "com.google.cloud.memcache.v1beta2"; diff --git a/packages/google-cloud-memcache/protos/protos.json b/packages/google-cloud-memcache/protos/protos.json index 983de7d59e61..1a86bb98aa13 100644 --- a/packages/google-cloud-memcache/protos/protos.json +++ b/packages/google-cloud-memcache/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/memcache/v1;memcache", + "go_package": "cloud.google.com/go/memcache/apiv1/memcachepb;memcachepb", "java_multiple_files": true, "java_outer_classname": "CloudMemcacheProto", "java_package": "com.google.cloud.memcache.v1" @@ -807,7 +807,7 @@ }, "v1beta2": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2;memcache", + "go_package": "cloud.google.com/go/memcache/apiv1beta2/memcachepb;memcachepb", "java_multiple_files": true, "java_outer_classname": "CloudMemcacheProto", "java_package": "com.google.cloud.memcache.v1beta2" diff --git a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore.proto b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore.proto index 01431d9c12f2..8b4020c98da3 100644 --- a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore.proto +++ b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; import "google/type/dayofweek.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1;metastore"; +option go_package = "cloud.google.com/go/metastore/apiv1/metastorepb;metastorepb"; option java_multiple_files = true; option java_outer_classname = "MetastoreProto"; option java_package = "com.google.cloud.metastore.v1"; diff --git a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore_federation.proto b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore_federation.proto index f3a95b1758df..19fdce46ec5f 100644 --- a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore_federation.proto +++ b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1/metastore_federation.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1;metastore"; +option go_package = "cloud.google.com/go/metastore/apiv1/metastorepb;metastorepb"; option java_multiple_files = true; option java_outer_classname = "MetastoreFederationProto"; option java_package = "com.google.cloud.metastore.v1"; diff --git a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore.proto b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore.proto index 3afa1057b7e9..05621431edce 100644 --- a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore.proto +++ b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; import "google/type/dayofweek.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha;metastore"; +option go_package = "cloud.google.com/go/metastore/apiv1alpha/metastorepb;metastorepb"; option java_multiple_files = true; option java_outer_classname = "MetastoreProto"; option java_package = "com.google.cloud.metastore.v1alpha"; diff --git a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore_federation.proto b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore_federation.proto index c450d5a285c8..7ad2f9c18722 100644 --- a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore_federation.proto +++ b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1alpha/metastore_federation.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha;metastore"; +option go_package = "cloud.google.com/go/metastore/apiv1alpha/metastorepb;metastorepb"; option java_multiple_files = true; option java_outer_classname = "MetastoreFederationProto"; option java_package = "com.google.cloud.metastore.v1alpha"; diff --git a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore.proto b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore.proto index 1f748bad97aa..0cb4edd95bce 100644 --- a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore.proto +++ b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; import "google/type/dayofweek.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1beta;metastore"; +option go_package = "cloud.google.com/go/metastore/apiv1beta/metastorepb;metastorepb"; option java_multiple_files = true; option java_outer_classname = "MetastoreProto"; option java_package = "com.google.cloud.metastore.v1beta"; diff --git a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore_federation.proto b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore_federation.proto index e7d0e1408753..5929dd0b6d32 100644 --- a/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore_federation.proto +++ b/packages/google-cloud-metastore/protos/google/cloud/metastore/v1beta/metastore_federation.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1beta;metastore"; +option go_package = "cloud.google.com/go/metastore/apiv1beta/metastorepb;metastorepb"; option java_multiple_files = true; option java_outer_classname = "MetastoreFederationProto"; option java_package = "com.google.cloud.metastore.v1beta"; diff --git a/packages/google-cloud-metastore/protos/protos.json b/packages/google-cloud-metastore/protos/protos.json index e4e2562cbaf8..7dd7fd310654 100644 --- a/packages/google-cloud-metastore/protos/protos.json +++ b/packages/google-cloud-metastore/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/metastore/v1;metastore", + "go_package": "cloud.google.com/go/metastore/apiv1/metastorepb;metastorepb", "java_multiple_files": true, "java_outer_classname": "MetastoreFederationProto", "java_package": "com.google.cloud.metastore.v1", @@ -1926,7 +1926,7 @@ }, "v1alpha": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha;metastore", + "go_package": "cloud.google.com/go/metastore/apiv1alpha/metastorepb;metastorepb", "java_multiple_files": true, "java_outer_classname": "MetastoreFederationProto", "java_package": "com.google.cloud.metastore.v1alpha", @@ -4141,7 +4141,7 @@ }, "v1beta": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/metastore/v1beta;metastore", + "go_package": "cloud.google.com/go/metastore/apiv1beta/metastorepb;metastorepb", "java_multiple_files": true, "java_outer_classname": "MetastoreFederationProto", "java_package": "com.google.cloud.metastore.v1beta", From 54b124cde2b5ee3c624f8c74d76b4dfb0a1dbb86 Mon Sep 17 00:00:00 2001 From: "owlbot-bootstrapper[bot]" <104649659+owlbot-bootstrapper[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 11:17:57 -0800 Subject: [PATCH 17/38] feat: add initial files for google.maps.mapsplatformdatasets.v1alpha (#3924) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: initial commit * feat: initial generation of library Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtbWFwc3BsYXRmb3JtZGF0YXNldHMvLk93bEJvdC55YW1sIiwiaCI6IjY1NTk0MWUxOTNmYTkzY2JiMmVhYzdhZDVjZDJiOTQzYjNjZjI4N2UifQ== * Owl Bot copied code from https://github.com/googleapis/googleapis-gen/commit/655941e193fa93cbb2eac7ad5cd2b943b3cf287e * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owlbot Bootstrapper Co-authored-by: Owl Bot Co-authored-by: Sofia Leon Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../.OwlBot.yaml | 19 + .../.eslintignore | 7 + .../.eslintrc.json | 3 + .../.gitattributes | 4 + .../.gitignore | 14 + .../.jsdoc.js | 55 + .../.mocharc.js | 29 + .../google-maps-mapsplatformdatasets/.nycrc | 24 + .../.prettierignore | 6 + .../.prettierrc.js | 17 + .../.repo-metadata.json | 16 + .../CODE_OF_CONDUCT.md | 94 + .../CONTRIBUTING.md | 76 + .../google-maps-mapsplatformdatasets/LICENSE | 202 + .../README.md | 195 + .../linkinator.config.json | 16 + .../package.json | 71 + .../v1alpha/data_source.proto | 64 + .../v1alpha/dataset.proto | 110 + .../v1alpha/maps_platform_datasets.proto | 167 + ...maps_platform_datasets_alpha_service.proto | 97 + .../protos/protos.d.ts | 5799 ++++++ .../protos/protos.js | 15385 ++++++++++++++++ .../protos/protos.json | 1606 ++ .../samples/README.md | 194 + ...atform_datasets_v1_alpha.create_dataset.js | 67 + ...atform_datasets_v1_alpha.delete_dataset.js | 66 + ...atasets_v1_alpha.delete_dataset_version.js | 61 + ..._platform_datasets_v1_alpha.get_dataset.js | 73 + ...datasets_v1_alpha.list_dataset_versions.js | 74 + ...latform_datasets_v1_alpha.list_datasets.js | 74 + ...tasets_v1_alpha.update_dataset_metadata.js | 68 + ...gle.maps.mapsplatformdatasets.v1alpha.json | 327 + .../samples/package.json | 24 + .../samples/quickstart.js | 76 + .../samples/test/quickstart.js | 48 + .../src/index.ts | 29 + .../src/v1alpha/gapic_metadata.json | 101 + .../src/v1alpha/index.ts | 19 + .../maps_platform_datasets_v1_alpha_client.ts | 1304 ++ ...tform_datasets_v1_alpha_client_config.json | 72 + ...platform_datasets_v1_alpha_proto_list.json | 6 + .../system-test/fixtures/sample/src/index.js | 27 + .../system-test/fixtures/sample/src/index.ts | 37 + .../system-test/install.ts | 51 + ...maps_platform_datasets_v1_alpha_v1alpha.ts | 1743 ++ .../tsconfig.json | 19 + .../webpack.config.js | 64 + release-please-config.json | 1 + 49 files changed, 28701 insertions(+) create mode 100644 packages/google-maps-mapsplatformdatasets/.OwlBot.yaml create mode 100644 packages/google-maps-mapsplatformdatasets/.eslintignore create mode 100644 packages/google-maps-mapsplatformdatasets/.eslintrc.json create mode 100644 packages/google-maps-mapsplatformdatasets/.gitattributes create mode 100644 packages/google-maps-mapsplatformdatasets/.gitignore create mode 100644 packages/google-maps-mapsplatformdatasets/.jsdoc.js create mode 100644 packages/google-maps-mapsplatformdatasets/.mocharc.js create mode 100644 packages/google-maps-mapsplatformdatasets/.nycrc create mode 100644 packages/google-maps-mapsplatformdatasets/.prettierignore create mode 100644 packages/google-maps-mapsplatformdatasets/.prettierrc.js create mode 100644 packages/google-maps-mapsplatformdatasets/.repo-metadata.json create mode 100644 packages/google-maps-mapsplatformdatasets/CODE_OF_CONDUCT.md create mode 100644 packages/google-maps-mapsplatformdatasets/CONTRIBUTING.md create mode 100644 packages/google-maps-mapsplatformdatasets/LICENSE create mode 100644 packages/google-maps-mapsplatformdatasets/README.md create mode 100644 packages/google-maps-mapsplatformdatasets/linkinator.config.json create mode 100644 packages/google-maps-mapsplatformdatasets/package.json create mode 100644 packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/data_source.proto create mode 100644 packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/dataset.proto create mode 100644 packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto create mode 100644 packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets_alpha_service.proto create mode 100644 packages/google-maps-mapsplatformdatasets/protos/protos.d.ts create mode 100644 packages/google-maps-mapsplatformdatasets/protos/protos.js create mode 100644 packages/google-maps-mapsplatformdatasets/protos/protos.json create mode 100644 packages/google-maps-mapsplatformdatasets/samples/README.md create mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js create mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js create mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js create mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js create mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js create mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js create mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js create mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata.google.maps.mapsplatformdatasets.v1alpha.json create mode 100644 packages/google-maps-mapsplatformdatasets/samples/package.json create mode 100644 packages/google-maps-mapsplatformdatasets/samples/quickstart.js create mode 100644 packages/google-maps-mapsplatformdatasets/samples/test/quickstart.js create mode 100644 packages/google-maps-mapsplatformdatasets/src/index.ts create mode 100644 packages/google-maps-mapsplatformdatasets/src/v1alpha/gapic_metadata.json create mode 100644 packages/google-maps-mapsplatformdatasets/src/v1alpha/index.ts create mode 100644 packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_client.ts create mode 100644 packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_client_config.json create mode 100644 packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_proto_list.json create mode 100644 packages/google-maps-mapsplatformdatasets/system-test/fixtures/sample/src/index.js create mode 100644 packages/google-maps-mapsplatformdatasets/system-test/fixtures/sample/src/index.ts create mode 100644 packages/google-maps-mapsplatformdatasets/system-test/install.ts create mode 100644 packages/google-maps-mapsplatformdatasets/test/gapic_maps_platform_datasets_v1_alpha_v1alpha.ts create mode 100644 packages/google-maps-mapsplatformdatasets/tsconfig.json create mode 100644 packages/google-maps-mapsplatformdatasets/webpack.config.js diff --git a/packages/google-maps-mapsplatformdatasets/.OwlBot.yaml b/packages/google-maps-mapsplatformdatasets/.OwlBot.yaml new file mode 100644 index 000000000000..fb29dd9837b1 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.OwlBot.yaml @@ -0,0 +1,19 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +deep-copy-regex: + - source: /google/maps/mapsplatformdatasets/(.*)/.*-nodejs + dest: /owl-bot-staging/google-maps-mapsplatformdatasets/$1 + +api-name: mapsplatformdatasets \ No newline at end of file diff --git a/packages/google-maps-mapsplatformdatasets/.eslintignore b/packages/google-maps-mapsplatformdatasets/.eslintignore new file mode 100644 index 000000000000..ea5b04aebe68 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.eslintignore @@ -0,0 +1,7 @@ +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ +samples/generated/ diff --git a/packages/google-maps-mapsplatformdatasets/.eslintrc.json b/packages/google-maps-mapsplatformdatasets/.eslintrc.json new file mode 100644 index 000000000000..782153495464 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/packages/google-maps-mapsplatformdatasets/.gitattributes b/packages/google-maps-mapsplatformdatasets/.gitattributes new file mode 100644 index 000000000000..33739cb74e44 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.gitattributes @@ -0,0 +1,4 @@ +*.ts text eol=lf +*.js text eol=lf +protos/* linguist-generated +**/api-extractor.json linguist-language=JSON-with-Comments diff --git a/packages/google-maps-mapsplatformdatasets/.gitignore b/packages/google-maps-mapsplatformdatasets/.gitignore new file mode 100644 index 000000000000..5d32b23782f3 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.gitignore @@ -0,0 +1,14 @@ +**/*.log +**/node_modules +.coverage +coverage +.nyc_output +docs/ +out/ +build/ +system-test/secrets.js +system-test/*key.json +*.lock +.DS_Store +package-lock.json +__pycache__ diff --git a/packages/google-maps-mapsplatformdatasets/.jsdoc.js b/packages/google-maps-mapsplatformdatasets/.jsdoc.js new file mode 100644 index 000000000000..d9d1cf1b74a4 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.jsdoc.js @@ -0,0 +1,55 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +'use strict'; + +module.exports = { + opts: { + readme: './README.md', + package: './package.json', + template: './node_modules/jsdoc-fresh', + recurse: true, + verbose: true, + destination: './docs/' + }, + plugins: [ + 'plugins/markdown', + 'jsdoc-region-tag' + ], + source: { + excludePattern: '(^|\\/|\\\\)[._]', + include: [ + 'build/src', + 'protos' + ], + includePattern: '\\.js$' + }, + templates: { + copyright: 'Copyright 2023 Google LLC', + includeDate: false, + sourceFiles: false, + systemName: '@google-cloud/mapsplatformdatasets', + theme: 'lumen', + default: { + outputSourceFiles: false + } + }, + markdown: { + idInHeadings: true + } +}; diff --git a/packages/google-maps-mapsplatformdatasets/.mocharc.js b/packages/google-maps-mapsplatformdatasets/.mocharc.js new file mode 100644 index 000000000000..49e7e228701d --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.mocharc.js @@ -0,0 +1,29 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +const config = { + "enable-source-maps": true, + "throw-deprecation": true, + "timeout": 10000, + "recursive": true +} +if (process.env.MOCHA_THROW_DEPRECATION === 'false') { + delete config['throw-deprecation']; +} +if (process.env.MOCHA_REPORTER) { + config.reporter = process.env.MOCHA_REPORTER; +} +if (process.env.MOCHA_REPORTER_OUTPUT) { + config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`; +} +module.exports = config diff --git a/packages/google-maps-mapsplatformdatasets/.nycrc b/packages/google-maps-mapsplatformdatasets/.nycrc new file mode 100644 index 000000000000..b18d5472b62b --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.nycrc @@ -0,0 +1,24 @@ +{ + "report-dir": "./.coverage", + "reporter": ["text", "lcov"], + "exclude": [ + "**/*-test", + "**/.coverage", + "**/apis", + "**/benchmark", + "**/conformance", + "**/docs", + "**/samples", + "**/scripts", + "**/protos", + "**/test", + "**/*.d.ts", + ".jsdoc.js", + "**/.jsdoc.js", + "karma.conf.js", + "webpack-tests.config.js", + "webpack.config.js" + ], + "exclude-after-remap": false, + "all": true +} diff --git a/packages/google-maps-mapsplatformdatasets/.prettierignore b/packages/google-maps-mapsplatformdatasets/.prettierignore new file mode 100644 index 000000000000..9340ad9b86d3 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.prettierignore @@ -0,0 +1,6 @@ +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ diff --git a/packages/google-maps-mapsplatformdatasets/.prettierrc.js b/packages/google-maps-mapsplatformdatasets/.prettierrc.js new file mode 100644 index 000000000000..1e6cec783e40 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.prettierrc.js @@ -0,0 +1,17 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} diff --git a/packages/google-maps-mapsplatformdatasets/.repo-metadata.json b/packages/google-maps-mapsplatformdatasets/.repo-metadata.json new file mode 100644 index 000000000000..d93b6503f690 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "name": "mapsplatformdatasets", + "name_pretty": "Maps Platform Datasets API", + "product_documentation": "", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/mapsplatformdatasets/latest", + "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues", + "release_level": "beta", + "language": "nodejs", + "repo": "googleapis/google-cloud-node", + "distribution_name": "@google-cloud/mapsplatformdatasets", + "api_id": "mapsplatformdatasets.googleapis.com", + "default_version": "v1alpha", + "requires_billing": true, + "library_type": "GAPIC_AUTO" +} + diff --git a/packages/google-maps-mapsplatformdatasets/CODE_OF_CONDUCT.md b/packages/google-maps-mapsplatformdatasets/CODE_OF_CONDUCT.md new file mode 100644 index 000000000000..2add2547a812 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/CODE_OF_CONDUCT.md @@ -0,0 +1,94 @@ + +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal appearance, +race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, or to ban temporarily or permanently any +contributor for other behaviors that they deem inappropriate, threatening, +offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when the Project +Steward has a reasonable belief that an individual's behavior may have a +negative impact on the project or its community. + +## Conflict Resolution + +We do not believe that all conflict is bad; healthy debate and disagreement +often yield positive results. However, it is never okay to be disrespectful or +to engage in behavior that violates the project’s code of conduct. + +If you see someone violating the code of conduct, you are encouraged to address +the behavior directly with those involved. Many issues can be resolved quickly +and easily, and this gives people more control over the outcome of their +dispute. If you are unable to resolve the matter for any reason, or if the +behavior is threatening or harassing, report it. We are dedicated to providing +an environment where participants feel welcome and safe. + +Reports should be directed to *googleapis-stewards@google.com*, the +Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to +receive and address reported violations of the code of conduct. They will then +work with a committee consisting of representatives from the Open Source +Programs Office and the Google Open Source Strategy team. If for any reason you +are uncomfortable reaching out to the Project Steward, please email +opensource@google.com. + +We will investigate every complaint, but you may not receive a direct response. +We will use our discretion in determining when and how to follow up on reported +incidents, which may range from not taking action to permanent expulsion from +the project and project-sponsored spaces. We will notify the accused of the +report and provide them an opportunity to discuss it before any action is taken. +The identity of the reporter will be omitted from the details of the report +supplied to the accused. In potentially harmful situations, such as ongoing +harassment or threats to anyone's safety, we may take action without notice. + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/packages/google-maps-mapsplatformdatasets/CONTRIBUTING.md b/packages/google-maps-mapsplatformdatasets/CONTRIBUTING.md new file mode 100644 index 000000000000..1e1c2e2f385a --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/CONTRIBUTING.md @@ -0,0 +1,76 @@ +# How to become a contributor and submit your own code + +**Table of contents** + +* [Contributor License Agreements](#contributor-license-agreements) +* [Contributing a patch](#contributing-a-patch) +* [Running the tests](#running-the-tests) +* [Releasing the library](#releasing-the-library) + +## Contributor License Agreements + +We'd love to accept your sample apps and patches! Before we can take them, we +have to jump a couple of legal hurdles. + +Please fill out either the individual or corporate Contributor License Agreement +(CLA). + + * If you are an individual writing original source code and you're sure you + own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual). + * If you work for a company that wants to allow you to contribute your work, + then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate). + +Follow either of the two links above to access the appropriate CLA and +instructions for how to sign and return it. Once we receive it, we'll be able to +accept your pull requests. + +## Contributing A Patch + +1. Submit an issue describing your proposed change to the repo in question. +1. The repo owner will respond to your issue promptly. +1. If your proposed change is accepted, and you haven't already done so, sign a + Contributor License Agreement (see details above). +1. Fork the desired repo, develop and test your code changes. +1. Ensure that your code adheres to the existing style in the code to which + you are contributing. +1. Ensure that your code has an appropriate set of tests which all pass. +1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling. +1. Submit a pull request. + +### Before you begin + +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Maps Platform Datasets API API][enable_api]. +1. [Set up authentication with a service account][auth] so you can access the + API from your local workstation. + + +## Running the tests + +1. [Prepare your environment for Node.js setup][setup]. + +1. Install dependencies: + + npm install + +1. Run the tests: + + # Run unit tests. + npm test + + # Run sample integration tests. + npm run samples-test + + # Run all system tests. + npm run system-test + +1. Lint (and maybe fix) any changes: + + npm run fix + +[setup]: https://cloud.google.com/nodejs/docs/setup +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=mapsplatformdatasets.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file diff --git a/packages/google-maps-mapsplatformdatasets/LICENSE b/packages/google-maps-mapsplatformdatasets/LICENSE new file mode 100644 index 000000000000..d64569567334 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/google-maps-mapsplatformdatasets/README.md b/packages/google-maps-mapsplatformdatasets/README.md new file mode 100644 index 000000000000..28b074120e74 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/README.md @@ -0,0 +1,195 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Maps Platform Datasets API: Node.js Client](https://github.com/googleapis/google-cloud-node) + +[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![npm version](https://img.shields.io/npm/v/@googlemaps/maps-platform-datasets.svg)](https://www.npmjs.org/package/@googlemaps/maps-platform-datasets) + + + + +Maps Platform Datasets API client for Node.js + + +A comprehensive list of changes in each version may be found in +[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-mapsplatformdatasets/CHANGELOG.md). + +* [Maps Platform Datasets API Node.js Client API Reference][client-docs] + +* [github.com/googleapis/google-cloud-node/packages/google-maps-mapsplatformdatasets](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-mapsplatformdatasets) + +Read more about the client libraries for Cloud APIs, including the older +Google APIs Client Libraries, in [Client Libraries Explained][explained]. + +[explained]: https://cloud.google.com/apis/docs/client-libraries-explained + +**Table of contents:** + + +* [Quickstart](#quickstart) + * [Before you begin](#before-you-begin) + * [Installing the client library](#installing-the-client-library) + * [Using the client library](#using-the-client-library) +* [Samples](#samples) +* [Versioning](#versioning) +* [Contributing](#contributing) +* [License](#license) + +## Quickstart + +### Before you begin + +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Maps Platform Datasets API API][enable_api]. +1. [Set up authentication with a service account][auth] so you can access the + API from your local workstation. + +### Installing the client library + +```bash +npm install @googlemaps/maps-platform-datasets +``` + + +### Using the client library + +```javascript +/** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ +/** + * Required. The name of the project to list all the datasets for. + */ +// const parent = 'abc123' +/** + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 datasets will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + */ +// const pageSize = 1234 +/** + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + */ +// const pageToken = 'abc123' + +// Imports the Mapsplatformdatasets library +const {MapsPlatformDatasetsV1AlphaClient} = + // eslint-disable-next-line node/no-missing-require + require('@googlemaps/maps-platform-datasets').v1alpha; + +// Instantiates a client +const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + +async function callListDataset() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await mapsplatformdatasetsClient.listDatasetsAsync( + request + ); + for await (const response of iterable) { + console.log(response); + } +} + +callListDataset(); + +``` + + + +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| Maps_platform_datasets_v1_alpha.create_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js,samples/README.md) | +| Maps_platform_datasets_v1_alpha.delete_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js,samples/README.md) | +| Maps_platform_datasets_v1_alpha.delete_dataset_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js,samples/README.md) | +| Maps_platform_datasets_v1_alpha.get_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js,samples/README.md) | +| Maps_platform_datasets_v1_alpha.list_dataset_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js,samples/README.md) | +| Maps_platform_datasets_v1_alpha.list_datasets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js,samples/README.md) | +| Maps_platform_datasets_v1_alpha.update_dataset_metadata | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/quickstart.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/test/quickstart.js,samples/README.md) | + + + +The [Maps Platform Datasets API Node.js Client API Reference][client-docs] documentation +also contains samples. + +## Supported Node.js Versions + +Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). +Libraries are compatible with all current _active_ and _maintenance_ versions of +Node.js. +If you are using an end-of-life version of Node.js, we recommend that you update +as soon as possible to an actively supported LTS version. + +Google's client libraries support legacy versions of Node.js runtimes on a +best-efforts basis with the following warnings: + +* Legacy versions are not tested in continuous integration. +* Some security patches and features cannot be backported. +* Dependencies cannot be kept up-to-date. + +Client libraries targeting some end-of-life versions of Node.js are available, and +can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). +The dist-tags follow the naming convention `legacy-(version)`. +For example, `npm install @googlemaps/maps-platform-datasets@legacy-8` installs client libraries +for versions compatible with Node.js 8. + +## Versioning + +This library follows [Semantic Versioning](http://semver.org/). + + + + +This library is considered to be in **beta**. This means it is expected to be +mostly stable while we work toward a general availability release; however, +complete stability is not guaranteed. We will address issues and requests +against beta libraries with a high priority. + + + + + +More Information: [Google Cloud Platform Launch Stages][launch_stages] + +[launch_stages]: https://cloud.google.com/terms/launch-stages + +## Contributing + +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md). + +Please note that this `README.md`, the `samples/README.md`, +and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) +are generated from a central template. To edit one of these files, make an edit +to its templates in +[directory](https://github.com/googleapis/synthtool). + +## License + +Apache Version 2.0 + +See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) + +[client-docs]: https://cloud.google.com/nodejs/docs/reference/mapsplatformdatasets/latest + +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=mapsplatformdatasets.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started diff --git a/packages/google-maps-mapsplatformdatasets/linkinator.config.json b/packages/google-maps-mapsplatformdatasets/linkinator.config.json new file mode 100644 index 000000000000..befd23c86335 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/linkinator.config.json @@ -0,0 +1,16 @@ +{ + "recurse": true, + "skip": [ + "https://codecov.io/gh/googleapis/", + "www.googleapis.com", + "img.shields.io", + "https://console.cloud.google.com/cloudshell", + "https://support.google.com" + ], + "silent": true, + "concurrency": 5, + "retry": true, + "retryErrors": true, + "retryErrorsCount": 5, + "retryErrorsJitter": 3000 +} diff --git a/packages/google-maps-mapsplatformdatasets/package.json b/packages/google-maps-mapsplatformdatasets/package.json new file mode 100644 index 000000000000..5000be62f63f --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/package.json @@ -0,0 +1,71 @@ +{ + "name": "@googlemaps/maps-platform-datasets", + "version": "0.0.0", + "description": "Maps Platform Datasets API client for Node.js", + "repository": { + "type": "git", + "url": "https://github.com/googleapis/google-cloud-node.git", + "directory": "packages/google-maps-mapsplatformdatasets" + }, + "license": "Apache-2.0", + "author": "Google LLC", + "main": "build/src/index.js", + "files": [ + "build/src", + "build/protos" + ], + "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-mapsplatformdatasets", + "keywords": [ + "google apis client", + "google api client", + "google apis", + "google api", + "google", + "google cloud platform", + "google cloud", + "cloud", + "google mapsplatformdatasets", + "mapsplatformdatasets", + "Maps Platform Datasets API" + ], + "scripts": { + "clean": "gts clean", + "compile": "tsc -p . && cp -r protos build/", + "compile-protos": "compileProtos src", + "docs": "jsdoc -c .jsdoc.js", + "predocs-test": "npm run docs", + "docs-test": "linkinator docs", + "fix": "gts fix", + "lint": "gts check", + "prepare": "npm run compile-protos && npm run compile", + "system-test": "npm run compile && c8 mocha build/system-test", + "test": "c8 mocha build/test", + "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", + "prelint": "cd samples; npm link ../; npm i" + }, + "dependencies": { + "google-gax": "^3.5.2" + }, + "devDependencies": { + "@types/mocha": "^9.0.0", + "@types/node": "^18.0.0", + "@types/sinon": "^10.0.0", + "c8": "^7.3.5", + "gts": "^3.1.0", + "jsdoc": "^4.0.0", + "jsdoc-fresh": "^2.0.0", + "jsdoc-region-tag": "^2.0.0", + "linkinator": "^4.0.0", + "mocha": "^9.2.2", + "null-loader": "^4.0.1", + "pack-n-play": "^1.0.0-2", + "sinon": "^15.0.0", + "ts-loader": "^9.0.0", + "typescript": "^4.6.4", + "webpack": "^5.9.0", + "webpack-cli": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } +} diff --git a/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/data_source.proto b/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/data_source.proto new file mode 100644 index 000000000000..cc80b58f3be3 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/data_source.proto @@ -0,0 +1,64 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.maps.mapsplatformdatasets.v1alpha; + +option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha"; +option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets"; +option java_multiple_files = true; +option java_outer_classname = "DataSourceProto"; +option java_package = "com.google.maps.mapsplatformdatasets.v1alpha"; +option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha"; + +// The details about the data source when it is a local file. +message LocalFileSource { + // The file name and extension of the uploaded file. + string filename = 1; + + // The format of the file that is being uploaded. + FileFormat file_format = 2; +} + +// The details about the data source when it is in Google Cloud Storage. +message GcsSource { + // Source data URI. For example, `gs://my_bucket/my_object`. + string input_uri = 1; + + // The file format of the Google Cloud Storage object. This is used mainly for + // validation. + FileFormat file_format = 2; +} + +// The format of the file being uploaded. +enum FileFormat { + // Unspecified file format. + FILE_FORMAT_UNSPECIFIED = 0; + + // GeoJson file. + FILE_FORMAT_GEOJSON = 1; + + // KML file. + FILE_FORMAT_KML = 2; + + // CSV file. + FILE_FORMAT_CSV = 3; + + // Protobuf file. + FILE_FORMAT_PROTO = 4; + + // KMZ file. + FILE_FORMAT_KMZ = 5; +} diff --git a/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/dataset.proto b/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/dataset.proto new file mode 100644 index 000000000000..64e83cb4d908 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/dataset.proto @@ -0,0 +1,110 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.maps.mapsplatformdatasets.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/maps/mapsplatformdatasets/v1alpha/data_source.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha"; +option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets"; +option java_multiple_files = true; +option java_outer_classname = "DatasetProto"; +option java_package = "com.google.maps.mapsplatformdatasets.v1alpha"; +option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha"; + +// A representation of a maps platform dataset. +message Dataset { + option (google.api.resource) = { + type: "mapsplatformdatasets.googleapis.com/Dataset" + pattern: "projects/{project}/datasets/{dataset}" + }; + + // Resource name, + // projects/{project}/datasets/{dataset_id} + string name = 1; + + // Human readable name, shown in the console UI. Set by customer. + string display_name = 2; + + // A description of this dataset; set by the customer. + string description = 3; + + // The version of the dataset. + string version_id = 4; + + // Specified use case(s) for this dataset. + repeated Usage usage = 5; + + // Details about the source of the data for the dataset. + oneof data_source { + // A local file source for the dataset for a single upload. + LocalFileSource local_file_source = 6; + + // A Google Cloud Storage file source for the dataset for a single upload. + GcsSource gcs_source = 7; + } + + // The status of the import of the latest dataset version. + State status = 12; + + // Output only. Time when the dataset was first created. + google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the dataset metadata was last updated. + google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this version of dataset was created. (It happened when importing + // data to the dataset) + google.protobuf.Timestamp version_create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description for this version of dataset. It is provided when importing + // data to the dataset. + string version_description = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Usage specifies where the data is intended to be used to inform how to +// process the data. +enum Usage { + // The usage of this dataset is not set. + USAGE_UNSPECIFIED = 0; + + // This dataset will be used for data driven styling. + USAGE_DATA_DRIVEN_STYLING = 1; + + // This dataset will be used for area affordances in routing. + USAGE_AREA_AFFORDANCES = 2; + + // This dataset will be used for assisted driving in routing. + USAGE_ASSISTED_DRIVING = 3; +} + +// State specifies the status of the import of the latest dataset version. +enum State { + // The state of this dataset is not set. + STATE_UNSPECIFIED = 0; + + // The dataset version is getting imported. + STATE_IMPORTING = 1; + + // The dataset version succeeded in getting imported. + STATE_IMPORT_SUCCEEDED = 2; + + // The dataset version failed to get imported. + STATE_IMPORT_FAILED = 3; +} diff --git a/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto b/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto new file mode 100644 index 000000000000..7f2f42035683 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto @@ -0,0 +1,167 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.maps.mapsplatformdatasets.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/maps/mapsplatformdatasets/v1alpha/dataset.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha"; +option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets"; +option java_multiple_files = true; +option java_outer_classname = "MapsPlatformDatasetsProto"; +option java_package = "com.google.maps.mapsplatformdatasets.v1alpha"; +option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha"; + +// Request to create a maps dataset. +message CreateDatasetRequest { + // Required. Parent project that will own the dataset. + // Format: projects/{$project_number} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. The dataset version to create. + Dataset dataset = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update the metadata fields of the dataset. +message UpdateDatasetMetadataRequest { + // Required. The dataset to update. The dataset's name is used to identify the dataset + // to be updated. The name has the format: + // projects/{project}/datasets/{dataset_id} + Dataset dataset = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Support the value "*" for full + // replacement. + google.protobuf.FieldMask update_mask = 2; +} + +// Request to get the specified dataset. +message GetDatasetRequest { + // Required. Resource name. Can also fetch a specified version + // projects/{project}/datasets/{dataset_id} + // projects/{project}/datasets/{dataset_id}@{version-id} + // + // In order to retrieve a previous version of the dataset, also provide + // the version ID. + // Example: projects/123/datasets/assisted-driving-preferences@c7cfa2a8 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapsplatformdatasets.googleapis.com/Dataset" + } + ]; + + // If specified, will fetch the dataset details of the version published for + // the specified use case rather than the latest, if one exists. If a + // published version does not exist, will default to getting the dataset + // details of the latest version. + Usage published_usage = 2; +} + +// Request to list of all versions of the dataset. +message ListDatasetVersionsRequest { + // Required. The name of the dataset to list all the versions for. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapsplatformdatasets.googleapis.com/Dataset" + } + ]; + + // The maximum number of versions to return per page. + // If unspecified (or zero), at most 1000 versions will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2; + + // The page token, received from a previous GetDatasetVersions call. + // Provide this to retrieve the subsequent page. + string page_token = 3; +} + +// Response with list of all versions of the dataset. +message ListDatasetVersionsResponse { + // All the versions of the dataset. + repeated Dataset datasets = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request to list datasets for the project. +message ListDatasetsRequest { + // Required. The name of the project to list all the datasets for. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // The maximum number of versions to return per page. + // If unspecified (or zero), at most 1000 datasets will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2; + + // The page token, received from a previous GetDatasetVersions call. + // Provide this to retrieve the subsequent page. + string page_token = 3; +} + +// Response to list datasets for the project. +message ListDatasetsResponse { + // All the datasets for the project. + repeated Dataset datasets = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request to delete a dataset. +// +// The dataset to be deleted. +message DeleteDatasetRequest { + // Required. Format: projects/${project}/datasets/{dataset_id} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapsplatformdatasets.googleapis.com/Dataset" + } + ]; + + // If set to true, any dataset version for this dataset will also be deleted. + // (Otherwise, the request will only work if the dataset has no versions.) + bool force = 2; +} + +// Request to delete a version of a dataset. +message DeleteDatasetVersionRequest { + // Required. Format: projects/${project}/datasets/{dataset_id}@{version-id} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "mapsplatformdatasets.googleapis.com/Dataset" + } + ]; +} diff --git a/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets_alpha_service.proto b/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets_alpha_service.proto new file mode 100644 index 000000000000..fe071546fdbd --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets_alpha_service.proto @@ -0,0 +1,97 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.maps.mapsplatformdatasets.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/maps/mapsplatformdatasets/v1alpha/dataset.proto"; +import "google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto"; +import "google/protobuf/empty.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha"; +option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets"; +option java_multiple_files = true; +option java_outer_classname = "MapsPlatformDatasetsV1AlphaServiceProto"; +option java_package = "com.google.maps.mapsplatformdatasets.v1alpha"; +option objc_class_prefix = "MDV1A"; +option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha"; + +// Service definition for the Maps Platform Datasets API. +service MapsPlatformDatasetsV1Alpha { + option (google.api.default_host) = "mapsplatformdatasets.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Create a new dataset for the specified project. + rpc CreateDataset(CreateDatasetRequest) returns (Dataset) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*}/datasets" + body: "dataset" + }; + option (google.api.method_signature) = "parent,dataset"; + } + + // Update the metadata for the dataset. To update the data use: UploadDataset. + rpc UpdateDatasetMetadata(UpdateDatasetMetadataRequest) returns (Dataset) { + option (google.api.http) = { + patch: "/v1alpha/{dataset.name=projects/*/datasets/*}" + body: "dataset" + }; + option (google.api.method_signature) = "dataset,update_mask"; + } + + // Get the published or latest version of the dataset. + rpc GetDataset(GetDatasetRequest) returns (Dataset) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/datasets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List all the versions of a dataset. + rpc ListDatasetVersions(ListDatasetVersionsRequest) returns (ListDatasetVersionsResponse) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/datasets/*}:listVersions" + }; + option (google.api.method_signature) = "name"; + } + + // List all the datasets for the specified project. + rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*}/datasets" + }; + option (google.api.method_signature) = "parent"; + } + + // Delete the specified dataset and optionally all its corresponding + // versions. + rpc DeleteDataset(DeleteDatasetRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/datasets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Delete a specific version of the dataset. + rpc DeleteDatasetVersion(DeleteDatasetVersionRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/datasets/*}:deleteVersion" + }; + option (google.api.method_signature) = "name"; + } +} diff --git a/packages/google-maps-mapsplatformdatasets/protos/protos.d.ts b/packages/google-maps-mapsplatformdatasets/protos/protos.d.ts new file mode 100644 index 000000000000..a8c5d211fdca --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/protos/protos.d.ts @@ -0,0 +1,5799 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import type {protobuf as $protobuf} from "google-gax"; +import Long = require("long"); +/** Namespace google. */ +export namespace google { + + /** Namespace maps. */ + namespace maps { + + /** Namespace mapsplatformdatasets. */ + namespace mapsplatformdatasets { + + /** Namespace v1alpha. */ + namespace v1alpha { + + /** Properties of a LocalFileSource. */ + interface ILocalFileSource { + + /** LocalFileSource filename */ + filename?: (string|null); + + /** LocalFileSource fileFormat */ + fileFormat?: (google.maps.mapsplatformdatasets.v1alpha.FileFormat|keyof typeof google.maps.mapsplatformdatasets.v1alpha.FileFormat|null); + } + + /** Represents a LocalFileSource. */ + class LocalFileSource implements ILocalFileSource { + + /** + * Constructs a new LocalFileSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource); + + /** LocalFileSource filename. */ + public filename: string; + + /** LocalFileSource fileFormat. */ + public fileFormat: (google.maps.mapsplatformdatasets.v1alpha.FileFormat|keyof typeof google.maps.mapsplatformdatasets.v1alpha.FileFormat); + + /** + * Creates a new LocalFileSource instance using the specified properties. + * @param [properties] Properties to set + * @returns LocalFileSource instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource): google.maps.mapsplatformdatasets.v1alpha.LocalFileSource; + + /** + * Encodes the specified LocalFileSource message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.verify|verify} messages. + * @param message LocalFileSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LocalFileSource message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.verify|verify} messages. + * @param message LocalFileSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LocalFileSource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocalFileSource + * @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.maps.mapsplatformdatasets.v1alpha.LocalFileSource; + + /** + * Decodes a LocalFileSource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocalFileSource + * @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.maps.mapsplatformdatasets.v1alpha.LocalFileSource; + + /** + * Verifies a LocalFileSource 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 LocalFileSource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocalFileSource + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.LocalFileSource; + + /** + * Creates a plain object from a LocalFileSource message. Also converts values to other types if specified. + * @param message LocalFileSource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.LocalFileSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LocalFileSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LocalFileSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GcsSource. */ + interface IGcsSource { + + /** GcsSource inputUri */ + inputUri?: (string|null); + + /** GcsSource fileFormat */ + fileFormat?: (google.maps.mapsplatformdatasets.v1alpha.FileFormat|keyof typeof google.maps.mapsplatformdatasets.v1alpha.FileFormat|null); + } + + /** Represents a GcsSource. */ + class GcsSource implements IGcsSource { + + /** + * Constructs a new GcsSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IGcsSource); + + /** GcsSource inputUri. */ + public inputUri: string; + + /** GcsSource fileFormat. */ + public fileFormat: (google.maps.mapsplatformdatasets.v1alpha.FileFormat|keyof typeof google.maps.mapsplatformdatasets.v1alpha.FileFormat); + + /** + * Creates a new GcsSource instance using the specified properties. + * @param [properties] Properties to set + * @returns GcsSource instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IGcsSource): google.maps.mapsplatformdatasets.v1alpha.GcsSource; + + /** + * Encodes the specified GcsSource message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.GcsSource.verify|verify} messages. + * @param message GcsSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.GcsSource.verify|verify} messages. + * @param message GcsSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GcsSource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GcsSource + * @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.maps.mapsplatformdatasets.v1alpha.GcsSource; + + /** + * Decodes a GcsSource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GcsSource + * @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.maps.mapsplatformdatasets.v1alpha.GcsSource; + + /** + * Verifies a GcsSource 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 GcsSource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GcsSource + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.GcsSource; + + /** + * Creates a plain object from a GcsSource message. Also converts values to other types if specified. + * @param message GcsSource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GcsSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GcsSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** FileFormat enum. */ + enum FileFormat { + FILE_FORMAT_UNSPECIFIED = 0, + FILE_FORMAT_GEOJSON = 1, + FILE_FORMAT_KML = 2, + FILE_FORMAT_CSV = 3, + FILE_FORMAT_PROTO = 4, + FILE_FORMAT_KMZ = 5 + } + + /** Properties of a Dataset. */ + interface IDataset { + + /** Dataset name */ + name?: (string|null); + + /** Dataset displayName */ + displayName?: (string|null); + + /** Dataset description */ + description?: (string|null); + + /** Dataset versionId */ + versionId?: (string|null); + + /** Dataset usage */ + usage?: (google.maps.mapsplatformdatasets.v1alpha.Usage[]|null); + + /** Dataset localFileSource */ + localFileSource?: (google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource|null); + + /** Dataset gcsSource */ + gcsSource?: (google.maps.mapsplatformdatasets.v1alpha.IGcsSource|null); + + /** Dataset status */ + status?: (google.maps.mapsplatformdatasets.v1alpha.State|keyof typeof google.maps.mapsplatformdatasets.v1alpha.State|null); + + /** Dataset createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Dataset updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Dataset versionCreateTime */ + versionCreateTime?: (google.protobuf.ITimestamp|null); + + /** Dataset versionDescription */ + versionDescription?: (string|null); + } + + /** Represents a Dataset. */ + class Dataset implements IDataset { + + /** + * Constructs a new Dataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IDataset); + + /** Dataset name. */ + public name: string; + + /** Dataset displayName. */ + public displayName: string; + + /** Dataset description. */ + public description: string; + + /** Dataset versionId. */ + public versionId: string; + + /** Dataset usage. */ + public usage: google.maps.mapsplatformdatasets.v1alpha.Usage[]; + + /** Dataset localFileSource. */ + public localFileSource?: (google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource|null); + + /** Dataset gcsSource. */ + public gcsSource?: (google.maps.mapsplatformdatasets.v1alpha.IGcsSource|null); + + /** Dataset status. */ + public status: (google.maps.mapsplatformdatasets.v1alpha.State|keyof typeof google.maps.mapsplatformdatasets.v1alpha.State); + + /** Dataset createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Dataset updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Dataset versionCreateTime. */ + public versionCreateTime?: (google.protobuf.ITimestamp|null); + + /** Dataset versionDescription. */ + public versionDescription: string; + + /** Dataset dataSource. */ + public dataSource?: ("localFileSource"|"gcsSource"); + + /** + * Creates a new Dataset instance using the specified properties. + * @param [properties] Properties to set + * @returns Dataset instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IDataset): google.maps.mapsplatformdatasets.v1alpha.Dataset; + + /** + * Encodes the specified Dataset message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.Dataset.verify|verify} messages. + * @param message Dataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.Dataset.verify|verify} messages. + * @param message Dataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Dataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Dataset + * @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.maps.mapsplatformdatasets.v1alpha.Dataset; + + /** + * Decodes a Dataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Dataset + * @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.maps.mapsplatformdatasets.v1alpha.Dataset; + + /** + * Verifies a Dataset 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 Dataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Dataset + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.Dataset; + + /** + * Creates a plain object from a Dataset message. Also converts values to other types if specified. + * @param message Dataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Dataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Dataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Usage enum. */ + enum Usage { + USAGE_UNSPECIFIED = 0, + USAGE_DATA_DRIVEN_STYLING = 1, + USAGE_AREA_AFFORDANCES = 2, + USAGE_ASSISTED_DRIVING = 3 + } + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + STATE_IMPORTING = 1, + STATE_IMPORT_SUCCEEDED = 2, + STATE_IMPORT_FAILED = 3 + } + + /** Properties of a CreateDatasetRequest. */ + interface ICreateDatasetRequest { + + /** CreateDatasetRequest parent */ + parent?: (string|null); + + /** CreateDatasetRequest dataset */ + dataset?: (google.maps.mapsplatformdatasets.v1alpha.IDataset|null); + } + + /** Represents a CreateDatasetRequest. */ + class CreateDatasetRequest implements ICreateDatasetRequest { + + /** + * Constructs a new CreateDatasetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest); + + /** CreateDatasetRequest parent. */ + public parent: string; + + /** CreateDatasetRequest dataset. */ + public dataset?: (google.maps.mapsplatformdatasets.v1alpha.IDataset|null); + + /** + * Creates a new CreateDatasetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDatasetRequest instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest): google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest; + + /** + * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest.verify|verify} messages. + * @param message CreateDatasetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest.verify|verify} messages. + * @param message CreateDatasetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDatasetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDatasetRequest + * @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.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest; + + /** + * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateDatasetRequest + * @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.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest; + + /** + * Verifies a CreateDatasetRequest 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 CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateDatasetRequest + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest; + + /** + * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. + * @param message CreateDatasetRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateDatasetRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateDatasetRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateDatasetMetadataRequest. */ + interface IUpdateDatasetMetadataRequest { + + /** UpdateDatasetMetadataRequest dataset */ + dataset?: (google.maps.mapsplatformdatasets.v1alpha.IDataset|null); + + /** UpdateDatasetMetadataRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateDatasetMetadataRequest. */ + class UpdateDatasetMetadataRequest implements IUpdateDatasetMetadataRequest { + + /** + * Constructs a new UpdateDatasetMetadataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest); + + /** UpdateDatasetMetadataRequest dataset. */ + public dataset?: (google.maps.mapsplatformdatasets.v1alpha.IDataset|null); + + /** UpdateDatasetMetadataRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateDatasetMetadataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateDatasetMetadataRequest instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest): google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest; + + /** + * Encodes the specified UpdateDatasetMetadataRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest.verify|verify} messages. + * @param message UpdateDatasetMetadataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateDatasetMetadataRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest.verify|verify} messages. + * @param message UpdateDatasetMetadataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateDatasetMetadataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateDatasetMetadataRequest + * @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.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest; + + /** + * Decodes an UpdateDatasetMetadataRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateDatasetMetadataRequest + * @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.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest; + + /** + * Verifies an UpdateDatasetMetadataRequest 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 an UpdateDatasetMetadataRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateDatasetMetadataRequest + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest; + + /** + * Creates a plain object from an UpdateDatasetMetadataRequest message. Also converts values to other types if specified. + * @param message UpdateDatasetMetadataRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateDatasetMetadataRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateDatasetMetadataRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetDatasetRequest. */ + interface IGetDatasetRequest { + + /** GetDatasetRequest name */ + name?: (string|null); + + /** GetDatasetRequest publishedUsage */ + publishedUsage?: (google.maps.mapsplatformdatasets.v1alpha.Usage|keyof typeof google.maps.mapsplatformdatasets.v1alpha.Usage|null); + } + + /** Represents a GetDatasetRequest. */ + class GetDatasetRequest implements IGetDatasetRequest { + + /** + * Constructs a new GetDatasetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest); + + /** GetDatasetRequest name. */ + public name: string; + + /** GetDatasetRequest publishedUsage. */ + public publishedUsage: (google.maps.mapsplatformdatasets.v1alpha.Usage|keyof typeof google.maps.mapsplatformdatasets.v1alpha.Usage); + + /** + * Creates a new GetDatasetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDatasetRequest instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest): google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest; + + /** + * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest.verify|verify} messages. + * @param message GetDatasetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest.verify|verify} messages. + * @param message GetDatasetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDatasetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDatasetRequest + * @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.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest; + + /** + * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDatasetRequest + * @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.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest; + + /** + * Verifies a GetDatasetRequest 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 GetDatasetRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDatasetRequest + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest; + + /** + * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. + * @param message GetDatasetRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetDatasetRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDatasetRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListDatasetVersionsRequest. */ + interface IListDatasetVersionsRequest { + + /** ListDatasetVersionsRequest name */ + name?: (string|null); + + /** ListDatasetVersionsRequest pageSize */ + pageSize?: (number|null); + + /** ListDatasetVersionsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListDatasetVersionsRequest. */ + class ListDatasetVersionsRequest implements IListDatasetVersionsRequest { + + /** + * Constructs a new ListDatasetVersionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest); + + /** ListDatasetVersionsRequest name. */ + public name: string; + + /** ListDatasetVersionsRequest pageSize. */ + public pageSize: number; + + /** ListDatasetVersionsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListDatasetVersionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDatasetVersionsRequest instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest): google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest; + + /** + * Encodes the specified ListDatasetVersionsRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest.verify|verify} messages. + * @param message ListDatasetVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDatasetVersionsRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest.verify|verify} messages. + * @param message ListDatasetVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDatasetVersionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDatasetVersionsRequest + * @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.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest; + + /** + * Decodes a ListDatasetVersionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDatasetVersionsRequest + * @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.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest; + + /** + * Verifies a ListDatasetVersionsRequest 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 ListDatasetVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDatasetVersionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest; + + /** + * Creates a plain object from a ListDatasetVersionsRequest message. Also converts values to other types if specified. + * @param message ListDatasetVersionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDatasetVersionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDatasetVersionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListDatasetVersionsResponse. */ + interface IListDatasetVersionsResponse { + + /** ListDatasetVersionsResponse datasets */ + datasets?: (google.maps.mapsplatformdatasets.v1alpha.IDataset[]|null); + + /** ListDatasetVersionsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListDatasetVersionsResponse. */ + class ListDatasetVersionsResponse implements IListDatasetVersionsResponse { + + /** + * Constructs a new ListDatasetVersionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse); + + /** ListDatasetVersionsResponse datasets. */ + public datasets: google.maps.mapsplatformdatasets.v1alpha.IDataset[]; + + /** ListDatasetVersionsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListDatasetVersionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDatasetVersionsResponse instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse): google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse; + + /** + * Encodes the specified ListDatasetVersionsResponse message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse.verify|verify} messages. + * @param message ListDatasetVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDatasetVersionsResponse message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse.verify|verify} messages. + * @param message ListDatasetVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDatasetVersionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDatasetVersionsResponse + * @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.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse; + + /** + * Decodes a ListDatasetVersionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDatasetVersionsResponse + * @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.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse; + + /** + * Verifies a ListDatasetVersionsResponse 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 ListDatasetVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDatasetVersionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse; + + /** + * Creates a plain object from a ListDatasetVersionsResponse message. Also converts values to other types if specified. + * @param message ListDatasetVersionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDatasetVersionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDatasetVersionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListDatasetsRequest. */ + interface IListDatasetsRequest { + + /** ListDatasetsRequest parent */ + parent?: (string|null); + + /** ListDatasetsRequest pageSize */ + pageSize?: (number|null); + + /** ListDatasetsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListDatasetsRequest. */ + class ListDatasetsRequest implements IListDatasetsRequest { + + /** + * Constructs a new ListDatasetsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest); + + /** ListDatasetsRequest parent. */ + public parent: string; + + /** ListDatasetsRequest pageSize. */ + public pageSize: number; + + /** ListDatasetsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListDatasetsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDatasetsRequest instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest): google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest; + + /** + * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest.verify|verify} messages. + * @param message ListDatasetsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest.verify|verify} messages. + * @param message ListDatasetsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDatasetsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDatasetsRequest + * @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.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest; + + /** + * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDatasetsRequest + * @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.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest; + + /** + * Verifies a ListDatasetsRequest 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 ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDatasetsRequest + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest; + + /** + * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. + * @param message ListDatasetsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDatasetsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDatasetsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListDatasetsResponse. */ + interface IListDatasetsResponse { + + /** ListDatasetsResponse datasets */ + datasets?: (google.maps.mapsplatformdatasets.v1alpha.IDataset[]|null); + + /** ListDatasetsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListDatasetsResponse. */ + class ListDatasetsResponse implements IListDatasetsResponse { + + /** + * Constructs a new ListDatasetsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse); + + /** ListDatasetsResponse datasets. */ + public datasets: google.maps.mapsplatformdatasets.v1alpha.IDataset[]; + + /** ListDatasetsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListDatasetsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDatasetsResponse instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse): google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse; + + /** + * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse.verify|verify} messages. + * @param message ListDatasetsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse.verify|verify} messages. + * @param message ListDatasetsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDatasetsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDatasetsResponse + * @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.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse; + + /** + * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDatasetsResponse + * @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.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse; + + /** + * Verifies a ListDatasetsResponse 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 ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDatasetsResponse + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse; + + /** + * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. + * @param message ListDatasetsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDatasetsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDatasetsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteDatasetRequest. */ + interface IDeleteDatasetRequest { + + /** DeleteDatasetRequest name */ + name?: (string|null); + + /** DeleteDatasetRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteDatasetRequest. */ + class DeleteDatasetRequest implements IDeleteDatasetRequest { + + /** + * Constructs a new DeleteDatasetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest); + + /** DeleteDatasetRequest name. */ + public name: string; + + /** DeleteDatasetRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteDatasetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteDatasetRequest instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest): google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest; + + /** + * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest.verify|verify} messages. + * @param message DeleteDatasetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest.verify|verify} messages. + * @param message DeleteDatasetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteDatasetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteDatasetRequest + * @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.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest; + + /** + * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteDatasetRequest + * @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.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest; + + /** + * Verifies a DeleteDatasetRequest 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 DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteDatasetRequest + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest; + + /** + * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. + * @param message DeleteDatasetRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteDatasetRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteDatasetRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteDatasetVersionRequest. */ + interface IDeleteDatasetVersionRequest { + + /** DeleteDatasetVersionRequest name */ + name?: (string|null); + } + + /** Represents a DeleteDatasetVersionRequest. */ + class DeleteDatasetVersionRequest implements IDeleteDatasetVersionRequest { + + /** + * Constructs a new DeleteDatasetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest); + + /** DeleteDatasetVersionRequest name. */ + public name: string; + + /** + * Creates a new DeleteDatasetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteDatasetVersionRequest instance + */ + public static create(properties?: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest): google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest; + + /** + * Encodes the specified DeleteDatasetVersionRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest.verify|verify} messages. + * @param message DeleteDatasetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteDatasetVersionRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest.verify|verify} messages. + * @param message DeleteDatasetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteDatasetVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteDatasetVersionRequest + * @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.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest; + + /** + * Decodes a DeleteDatasetVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteDatasetVersionRequest + * @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.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest; + + /** + * Verifies a DeleteDatasetVersionRequest 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 DeleteDatasetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteDatasetVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest; + + /** + * Creates a plain object from a DeleteDatasetVersionRequest message. Also converts values to other types if specified. + * @param message DeleteDatasetVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteDatasetVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteDatasetVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents a MapsPlatformDatasetsV1Alpha */ + class MapsPlatformDatasetsV1Alpha extends $protobuf.rpc.Service { + + /** + * Constructs a new MapsPlatformDatasetsV1Alpha service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new MapsPlatformDatasetsV1Alpha service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MapsPlatformDatasetsV1Alpha; + + /** + * Calls CreateDataset. + * @param request CreateDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Dataset + */ + public createDataset(request: google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest, callback: google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.CreateDatasetCallback): void; + + /** + * Calls CreateDataset. + * @param request CreateDatasetRequest message or plain object + * @returns Promise + */ + public createDataset(request: google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest): Promise; + + /** + * Calls UpdateDatasetMetadata. + * @param request UpdateDatasetMetadataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Dataset + */ + public updateDatasetMetadata(request: google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest, callback: google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.UpdateDatasetMetadataCallback): void; + + /** + * Calls UpdateDatasetMetadata. + * @param request UpdateDatasetMetadataRequest message or plain object + * @returns Promise + */ + public updateDatasetMetadata(request: google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest): Promise; + + /** + * Calls GetDataset. + * @param request GetDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Dataset + */ + public getDataset(request: google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest, callback: google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.GetDatasetCallback): void; + + /** + * Calls GetDataset. + * @param request GetDatasetRequest message or plain object + * @returns Promise + */ + public getDataset(request: google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest): Promise; + + /** + * Calls ListDatasetVersions. + * @param request ListDatasetVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDatasetVersionsResponse + */ + public listDatasetVersions(request: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, callback: google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasetVersionsCallback): void; + + /** + * Calls ListDatasetVersions. + * @param request ListDatasetVersionsRequest message or plain object + * @returns Promise + */ + public listDatasetVersions(request: google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest): Promise; + + /** + * Calls ListDatasets. + * @param request ListDatasetsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse + */ + public listDatasets(request: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, callback: google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasetsCallback): void; + + /** + * Calls ListDatasets. + * @param request ListDatasetsRequest message or plain object + * @returns Promise + */ + public listDatasets(request: google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest): Promise; + + /** + * Calls DeleteDataset. + * @param request DeleteDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDataset(request: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest, callback: google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDatasetCallback): void; + + /** + * Calls DeleteDataset. + * @param request DeleteDatasetRequest message or plain object + * @returns Promise + */ + public deleteDataset(request: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest): Promise; + + /** + * Calls DeleteDatasetVersion. + * @param request DeleteDatasetVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDatasetVersion(request: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest, callback: google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDatasetVersionCallback): void; + + /** + * Calls DeleteDatasetVersion. + * @param request DeleteDatasetVersionRequest message or plain object + * @returns Promise + */ + public deleteDatasetVersion(request: google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest): Promise; + } + + namespace MapsPlatformDatasetsV1Alpha { + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|createDataset}. + * @param error Error, if any + * @param [response] Dataset + */ + type CreateDatasetCallback = (error: (Error|null), response?: google.maps.mapsplatformdatasets.v1alpha.Dataset) => void; + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|updateDatasetMetadata}. + * @param error Error, if any + * @param [response] Dataset + */ + type UpdateDatasetMetadataCallback = (error: (Error|null), response?: google.maps.mapsplatformdatasets.v1alpha.Dataset) => void; + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|getDataset}. + * @param error Error, if any + * @param [response] Dataset + */ + type GetDatasetCallback = (error: (Error|null), response?: google.maps.mapsplatformdatasets.v1alpha.Dataset) => void; + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|listDatasetVersions}. + * @param error Error, if any + * @param [response] ListDatasetVersionsResponse + */ + type ListDatasetVersionsCallback = (error: (Error|null), response?: google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse) => void; + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|listDatasets}. + * @param error Error, if any + * @param [response] ListDatasetsResponse + */ + type ListDatasetsCallback = (error: (Error|null), response?: google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse) => void; + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|deleteDataset}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDatasetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|deleteDatasetVersion}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDatasetVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } + } + } + } + + /** Namespace api. */ + namespace api { + + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 + } + + /** Properties of a ResourceDescriptor. */ + interface IResourceDescriptor { + + /** ResourceDescriptor type */ + type?: (string|null); + + /** ResourceDescriptor pattern */ + pattern?: (string[]|null); + + /** ResourceDescriptor nameField */ + nameField?: (string|null); + + /** ResourceDescriptor history */ + history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); + + /** ResourceDescriptor plural */ + plural?: (string|null); + + /** ResourceDescriptor singular */ + singular?: (string|null); + + /** ResourceDescriptor style */ + style?: (google.api.ResourceDescriptor.Style[]|null); + } + + /** Represents a ResourceDescriptor. */ + class ResourceDescriptor implements IResourceDescriptor { + + /** + * Constructs a new ResourceDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceDescriptor); + + /** ResourceDescriptor type. */ + public type: string; + + /** ResourceDescriptor pattern. */ + public pattern: string[]; + + /** ResourceDescriptor nameField. */ + public nameField: string; + + /** ResourceDescriptor history. */ + public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History); + + /** ResourceDescriptor plural. */ + public plural: string; + + /** ResourceDescriptor singular. */ + public singular: string; + + /** ResourceDescriptor style. */ + public style: google.api.ResourceDescriptor.Style[]; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceDescriptor instance + */ + public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; + + /** + * Verifies a ResourceDescriptor 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @param message ResourceDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ResourceDescriptor { + + /** History enum. */ + enum History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2 + } + + /** Style enum. */ + enum Style { + STYLE_UNSPECIFIED = 0, + DECLARATIVE_FRIENDLY = 1 + } + } + + /** Properties of a ResourceReference. */ + interface IResourceReference { + + /** ResourceReference type */ + type?: (string|null); + + /** ResourceReference childType */ + childType?: (string|null); + } + + /** Represents a ResourceReference. */ + class ResourceReference implements IResourceReference { + + /** + * Constructs a new ResourceReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceReference); + + /** ResourceReference type. */ + public type: string; + + /** ResourceReference childType. */ + public childType: string; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceReference instance + */ + public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceReference + * @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.api.ResourceReference; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceReference + * @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.api.ResourceReference; + + /** + * Verifies a ResourceReference 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 ResourceReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceReference + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @param message ResourceReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @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.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @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.api.Http; + + /** + * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Http + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule responseBody */ + responseBody?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get?: (string|null); + + /** HttpRule put. */ + public put?: (string|null); + + /** HttpRule post. */ + public post?: (string|null); + + /** HttpRule delete. */ + public delete?: (string|null); + + /** HttpRule patch. */ + public patch?: (string|null); + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule responseBody. */ + public responseBody: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HttpRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomHttpPattern + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + + /** FileDescriptorProto edition */ + edition?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** FileDescriptorProto edition. */ + public edition: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange 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 an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { + + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { + + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); + + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRangeOptions instance + */ + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; + + /** + * Verifies an ExtensionRangeOptions 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 an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRangeOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); + + /** FieldDescriptorProto type. */ + public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto 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 an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto 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 an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EnumDescriptorProto { + + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { + + /** EnumReservedRange start */ + start?: (number|null); + + /** EnumReservedRange end */ + end?: (number|null); + } + + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { + + /** + * Constructs a new EnumReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + + /** EnumReservedRange start. */ + public start: number; + + /** EnumReservedRange end. */ + public end: number; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumReservedRange instance + */ + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Verifies an EnumReservedRange 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 an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto 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 an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); + + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); + + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); + + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); + + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FileOptions .google.api.resourceDefinition */ + ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; + + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; + + /** FileOptions phpNamespace. */ + public phpNamespace: string; + + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; + + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @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.protobuf.FileOptions; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @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.protobuf.FileOptions; + + /** + * Verifies a FileOptions 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 FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MessageOptions .google.api.resource */ + ".google.api.resource"?: (google.api.IResourceDescriptor|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @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.protobuf.MessageOptions; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageOptions + * @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.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions 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 MessageOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FieldOptions .google.api.fieldBehavior */ + ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); + + /** FieldOptions .google.api.resourceReference */ + ".google.api.resourceReference"?: (google.api.IResourceReference|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @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.protobuf.FieldOptions; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldOptions + * @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.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions 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 FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @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.protobuf.OneofOptions; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @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.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions 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 an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @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.protobuf.EnumOptions; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumOptions + * @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.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions 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 an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions 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 an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); + + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions 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 ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @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.protobuf.MethodOptions; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @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.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions 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 MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MethodOptions { + + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|string|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|string|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|string|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long|string); + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long|string); + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: (Uint8Array|string); + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption 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 an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UninterpretedOption + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart 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 NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NamePart + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location 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 Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @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.protobuf.GeneratedCodeInfo; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GeneratedCodeInfo + * @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.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + + /** Annotation semantic */ + semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** Annotation semantic. */ + public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic); + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation 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 an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Annotation { + + /** Semantic enum. */ + enum Semantic { + NONE = 0, + SET = 1, + ALIAS = 2 + } + } + } + + /** Properties of a Timestamp. */ + interface ITimestamp { + + /** Timestamp seconds */ + seconds?: (number|Long|string|null); + + /** Timestamp nanos */ + nanos?: (number|null); + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: (number|Long|string); + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @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.protobuf.Timestamp; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Timestamp + * @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.protobuf.Timestamp; + + /** + * Verifies a Timestamp 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 Timestamp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Timestamp + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Timestamp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Timestamp + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FieldMask. */ + interface IFieldMask { + + /** FieldMask paths */ + paths?: (string[]|null); + } + + /** Represents a FieldMask. */ + class FieldMask implements IFieldMask { + + /** + * Constructs a new FieldMask. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldMask); + + /** FieldMask paths. */ + public paths: string[]; + + /** + * Creates a new FieldMask instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldMask instance + */ + public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldMask + * @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.protobuf.FieldMask; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldMask + * @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.protobuf.FieldMask; + + /** + * Verifies a FieldMask 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 FieldMask message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldMask + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @param message FieldMask + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldMask to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldMask + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Empty. */ + interface IEmpty { + } + + /** Represents an Empty. */ + class Empty implements IEmpty { + + /** + * Constructs a new Empty. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEmpty); + + /** + * Creates a new Empty instance using the specified properties. + * @param [properties] Properties to set + * @returns Empty instance + */ + public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Empty + * @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.protobuf.Empty; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Empty + * @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.protobuf.Empty; + + /** + * Verifies an Empty 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 an Empty message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Empty + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @param message Empty + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Empty to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Empty + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } +} diff --git a/packages/google-maps-mapsplatformdatasets/protos/protos.js b/packages/google-maps-mapsplatformdatasets/protos/protos.js new file mode 100644 index 000000000000..a1bcc9b214c8 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/protos/protos.js @@ -0,0 +1,15385 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +(function(global, factory) { /* global define, require, module */ + + /* AMD */ if (typeof define === 'function' && define.amd) + define(["protobufjs/minimal"], factory); + + /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) + module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal); + +})(this, function($protobuf) { + "use strict"; + + // Common aliases + var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + + // Exported root namespace + var $root = $protobuf.roots._googlemaps_maps_platform_datasets_protos || ($protobuf.roots._googlemaps_maps_platform_datasets_protos = {}); + + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.maps = (function() { + + /** + * Namespace maps. + * @memberof google + * @namespace + */ + var maps = {}; + + maps.mapsplatformdatasets = (function() { + + /** + * Namespace mapsplatformdatasets. + * @memberof google.maps + * @namespace + */ + var mapsplatformdatasets = {}; + + mapsplatformdatasets.v1alpha = (function() { + + /** + * Namespace v1alpha. + * @memberof google.maps.mapsplatformdatasets + * @namespace + */ + var v1alpha = {}; + + v1alpha.LocalFileSource = (function() { + + /** + * Properties of a LocalFileSource. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface ILocalFileSource + * @property {string|null} [filename] LocalFileSource filename + * @property {google.maps.mapsplatformdatasets.v1alpha.FileFormat|null} [fileFormat] LocalFileSource fileFormat + */ + + /** + * Constructs a new LocalFileSource. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a LocalFileSource. + * @implements ILocalFileSource + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource=} [properties] Properties to set + */ + function LocalFileSource(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]]; + } + + /** + * LocalFileSource filename. + * @member {string} filename + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @instance + */ + LocalFileSource.prototype.filename = ""; + + /** + * LocalFileSource fileFormat. + * @member {google.maps.mapsplatformdatasets.v1alpha.FileFormat} fileFormat + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @instance + */ + LocalFileSource.prototype.fileFormat = 0; + + /** + * Creates a new LocalFileSource instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.LocalFileSource} LocalFileSource instance + */ + LocalFileSource.create = function create(properties) { + return new LocalFileSource(properties); + }; + + /** + * Encodes the specified LocalFileSource message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource} message LocalFileSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocalFileSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filename != null && Object.hasOwnProperty.call(message, "filename")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.filename); + if (message.fileFormat != null && Object.hasOwnProperty.call(message, "fileFormat")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.fileFormat); + return writer; + }; + + /** + * Encodes the specified LocalFileSource message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource} message LocalFileSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocalFileSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LocalFileSource message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.LocalFileSource} LocalFileSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocalFileSource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.filename = reader.string(); + break; + } + case 2: { + message.fileFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LocalFileSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.LocalFileSource} LocalFileSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocalFileSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LocalFileSource message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LocalFileSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.filename != null && message.hasOwnProperty("filename")) + if (!$util.isString(message.filename)) + return "filename: string expected"; + if (message.fileFormat != null && message.hasOwnProperty("fileFormat")) + switch (message.fileFormat) { + default: + return "fileFormat: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * Creates a LocalFileSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.LocalFileSource} LocalFileSource + */ + LocalFileSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource(); + if (object.filename != null) + message.filename = String(object.filename); + switch (object.fileFormat) { + default: + if (typeof object.fileFormat === "number") { + message.fileFormat = object.fileFormat; + break; + } + break; + case "FILE_FORMAT_UNSPECIFIED": + case 0: + message.fileFormat = 0; + break; + case "FILE_FORMAT_GEOJSON": + case 1: + message.fileFormat = 1; + break; + case "FILE_FORMAT_KML": + case 2: + message.fileFormat = 2; + break; + case "FILE_FORMAT_CSV": + case 3: + message.fileFormat = 3; + break; + case "FILE_FORMAT_PROTO": + case 4: + message.fileFormat = 4; + break; + case "FILE_FORMAT_KMZ": + case 5: + message.fileFormat = 5; + break; + } + return message; + }; + + /** + * Creates a plain object from a LocalFileSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.LocalFileSource} message LocalFileSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LocalFileSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.filename = ""; + object.fileFormat = options.enums === String ? "FILE_FORMAT_UNSPECIFIED" : 0; + } + if (message.filename != null && message.hasOwnProperty("filename")) + object.filename = message.filename; + if (message.fileFormat != null && message.hasOwnProperty("fileFormat")) + object.fileFormat = options.enums === String ? $root.google.maps.mapsplatformdatasets.v1alpha.FileFormat[message.fileFormat] === undefined ? message.fileFormat : $root.google.maps.mapsplatformdatasets.v1alpha.FileFormat[message.fileFormat] : message.fileFormat; + return object; + }; + + /** + * Converts this LocalFileSource to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @instance + * @returns {Object.} JSON object + */ + LocalFileSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LocalFileSource + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.LocalFileSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LocalFileSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.LocalFileSource"; + }; + + return LocalFileSource; + })(); + + v1alpha.GcsSource = (function() { + + /** + * Properties of a GcsSource. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IGcsSource + * @property {string|null} [inputUri] GcsSource inputUri + * @property {google.maps.mapsplatformdatasets.v1alpha.FileFormat|null} [fileFormat] GcsSource fileFormat + */ + + /** + * Constructs a new GcsSource. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a GcsSource. + * @implements IGcsSource + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IGcsSource=} [properties] Properties to set + */ + function GcsSource(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]]; + } + + /** + * GcsSource inputUri. + * @member {string} inputUri + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @instance + */ + GcsSource.prototype.inputUri = ""; + + /** + * GcsSource fileFormat. + * @member {google.maps.mapsplatformdatasets.v1alpha.FileFormat} fileFormat + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @instance + */ + GcsSource.prototype.fileFormat = 0; + + /** + * Creates a new GcsSource instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IGcsSource=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.GcsSource} GcsSource instance + */ + GcsSource.create = function create(properties) { + return new GcsSource(properties); + }; + + /** + * Encodes the specified GcsSource message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.GcsSource.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IGcsSource} message GcsSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputUri != null && Object.hasOwnProperty.call(message, "inputUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputUri); + if (message.fileFormat != null && Object.hasOwnProperty.call(message, "fileFormat")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.fileFormat); + return writer; + }; + + /** + * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.GcsSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IGcsSource} message GcsSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcsSource message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.GcsSource} GcsSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsSource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.GcsSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.inputUri = reader.string(); + break; + } + case 2: { + message.fileFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GcsSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.GcsSource} GcsSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcsSource message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcsSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + if (message.fileFormat != null && message.hasOwnProperty("fileFormat")) + switch (message.fileFormat) { + default: + return "fileFormat: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * Creates a GcsSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.GcsSource} GcsSource + */ + GcsSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.GcsSource) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.GcsSource(); + if (object.inputUri != null) + message.inputUri = String(object.inputUri); + switch (object.fileFormat) { + default: + if (typeof object.fileFormat === "number") { + message.fileFormat = object.fileFormat; + break; + } + break; + case "FILE_FORMAT_UNSPECIFIED": + case 0: + message.fileFormat = 0; + break; + case "FILE_FORMAT_GEOJSON": + case 1: + message.fileFormat = 1; + break; + case "FILE_FORMAT_KML": + case 2: + message.fileFormat = 2; + break; + case "FILE_FORMAT_CSV": + case 3: + message.fileFormat = 3; + break; + case "FILE_FORMAT_PROTO": + case 4: + message.fileFormat = 4; + break; + case "FILE_FORMAT_KMZ": + case 5: + message.fileFormat = 5; + break; + } + return message; + }; + + /** + * Creates a plain object from a GcsSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.GcsSource} message GcsSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcsSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.inputUri = ""; + object.fileFormat = options.enums === String ? "FILE_FORMAT_UNSPECIFIED" : 0; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + object.inputUri = message.inputUri; + if (message.fileFormat != null && message.hasOwnProperty("fileFormat")) + object.fileFormat = options.enums === String ? $root.google.maps.mapsplatformdatasets.v1alpha.FileFormat[message.fileFormat] === undefined ? message.fileFormat : $root.google.maps.mapsplatformdatasets.v1alpha.FileFormat[message.fileFormat] : message.fileFormat; + return object; + }; + + /** + * Converts this GcsSource to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @instance + * @returns {Object.} JSON object + */ + GcsSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GcsSource + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.GcsSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GcsSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.GcsSource"; + }; + + return GcsSource; + })(); + + /** + * FileFormat enum. + * @name google.maps.mapsplatformdatasets.v1alpha.FileFormat + * @enum {number} + * @property {number} FILE_FORMAT_UNSPECIFIED=0 FILE_FORMAT_UNSPECIFIED value + * @property {number} FILE_FORMAT_GEOJSON=1 FILE_FORMAT_GEOJSON value + * @property {number} FILE_FORMAT_KML=2 FILE_FORMAT_KML value + * @property {number} FILE_FORMAT_CSV=3 FILE_FORMAT_CSV value + * @property {number} FILE_FORMAT_PROTO=4 FILE_FORMAT_PROTO value + * @property {number} FILE_FORMAT_KMZ=5 FILE_FORMAT_KMZ value + */ + v1alpha.FileFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FILE_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "FILE_FORMAT_GEOJSON"] = 1; + values[valuesById[2] = "FILE_FORMAT_KML"] = 2; + values[valuesById[3] = "FILE_FORMAT_CSV"] = 3; + values[valuesById[4] = "FILE_FORMAT_PROTO"] = 4; + values[valuesById[5] = "FILE_FORMAT_KMZ"] = 5; + return values; + })(); + + v1alpha.Dataset = (function() { + + /** + * Properties of a Dataset. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IDataset + * @property {string|null} [name] Dataset name + * @property {string|null} [displayName] Dataset displayName + * @property {string|null} [description] Dataset description + * @property {string|null} [versionId] Dataset versionId + * @property {Array.|null} [usage] Dataset usage + * @property {google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource|null} [localFileSource] Dataset localFileSource + * @property {google.maps.mapsplatformdatasets.v1alpha.IGcsSource|null} [gcsSource] Dataset gcsSource + * @property {google.maps.mapsplatformdatasets.v1alpha.State|null} [status] Dataset status + * @property {google.protobuf.ITimestamp|null} [createTime] Dataset createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Dataset updateTime + * @property {google.protobuf.ITimestamp|null} [versionCreateTime] Dataset versionCreateTime + * @property {string|null} [versionDescription] Dataset versionDescription + */ + + /** + * Constructs a new Dataset. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a Dataset. + * @implements IDataset + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IDataset=} [properties] Properties to set + */ + function Dataset(properties) { + this.usage = []; + 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]]; + } + + /** + * Dataset name. + * @member {string} name + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.name = ""; + + /** + * Dataset displayName. + * @member {string} displayName + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.displayName = ""; + + /** + * Dataset description. + * @member {string} description + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.description = ""; + + /** + * Dataset versionId. + * @member {string} versionId + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.versionId = ""; + + /** + * Dataset usage. + * @member {Array.} usage + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.usage = $util.emptyArray; + + /** + * Dataset localFileSource. + * @member {google.maps.mapsplatformdatasets.v1alpha.ILocalFileSource|null|undefined} localFileSource + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.localFileSource = null; + + /** + * Dataset gcsSource. + * @member {google.maps.mapsplatformdatasets.v1alpha.IGcsSource|null|undefined} gcsSource + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.gcsSource = null; + + /** + * Dataset status. + * @member {google.maps.mapsplatformdatasets.v1alpha.State} status + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.status = 0; + + /** + * Dataset createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.createTime = null; + + /** + * Dataset updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.updateTime = null; + + /** + * Dataset versionCreateTime. + * @member {google.protobuf.ITimestamp|null|undefined} versionCreateTime + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.versionCreateTime = null; + + /** + * Dataset versionDescription. + * @member {string} versionDescription + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Dataset.prototype.versionDescription = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Dataset dataSource. + * @member {"localFileSource"|"gcsSource"|undefined} dataSource + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + */ + Object.defineProperty(Dataset.prototype, "dataSource", { + get: $util.oneOfGetter($oneOfFields = ["localFileSource", "gcsSource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Dataset instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IDataset=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.Dataset} Dataset instance + */ + Dataset.create = function create(properties) { + return new Dataset(properties); + }; + + /** + * Encodes the specified Dataset message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.Dataset.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IDataset} message Dataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Dataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.versionId != null && Object.hasOwnProperty.call(message, "versionId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.versionId); + if (message.usage != null && message.usage.length) { + writer.uint32(/* id 5, wireType 2 =*/42).fork(); + for (var i = 0; i < message.usage.length; ++i) + writer.int32(message.usage[i]); + writer.ldelim(); + } + if (message.localFileSource != null && Object.hasOwnProperty.call(message, "localFileSource")) + $root.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.encode(message.localFileSource, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) + $root.google.maps.mapsplatformdatasets.v1alpha.GcsSource.encode(message.gcsSource, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.versionCreateTime != null && Object.hasOwnProperty.call(message, "versionCreateTime")) + $root.google.protobuf.Timestamp.encode(message.versionCreateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.versionDescription != null && Object.hasOwnProperty.call(message, "versionDescription")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.versionDescription); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.status); + return writer; + }; + + /** + * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.Dataset.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IDataset} message Dataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Dataset.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Dataset message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.Dataset} Dataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Dataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.Dataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + message.versionId = reader.string(); + break; + } + case 5: { + if (!(message.usage && message.usage.length)) + message.usage = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.usage.push(reader.int32()); + } else + message.usage.push(reader.int32()); + break; + } + case 6: { + message.localFileSource = $root.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.decode(reader, reader.uint32()); + break; + } + case 7: { + message.gcsSource = $root.google.maps.mapsplatformdatasets.v1alpha.GcsSource.decode(reader, reader.uint32()); + break; + } + case 12: { + message.status = reader.int32(); + break; + } + case 8: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 10: { + message.versionCreateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.versionDescription = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Dataset message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.Dataset} Dataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Dataset.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Dataset message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Dataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.versionId != null && message.hasOwnProperty("versionId")) + if (!$util.isString(message.versionId)) + return "versionId: string expected"; + if (message.usage != null && message.hasOwnProperty("usage")) { + if (!Array.isArray(message.usage)) + return "usage: array expected"; + for (var i = 0; i < message.usage.length; ++i) + switch (message.usage[i]) { + default: + return "usage: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.localFileSource != null && message.hasOwnProperty("localFileSource")) { + properties.dataSource = 1; + { + var error = $root.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.verify(message.localFileSource); + if (error) + return "localFileSource." + error; + } + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.maps.mapsplatformdatasets.v1alpha.GcsSource.verify(message.gcsSource); + if (error) + return "gcsSource." + error; + } + } + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.versionCreateTime != null && message.hasOwnProperty("versionCreateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.versionCreateTime); + if (error) + return "versionCreateTime." + error; + } + if (message.versionDescription != null && message.hasOwnProperty("versionDescription")) + if (!$util.isString(message.versionDescription)) + return "versionDescription: string expected"; + return null; + }; + + /** + * Creates a Dataset message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.Dataset} Dataset + */ + Dataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.Dataset) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.Dataset(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.versionId != null) + message.versionId = String(object.versionId); + if (object.usage) { + if (!Array.isArray(object.usage)) + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.Dataset.usage: array expected"); + message.usage = []; + for (var i = 0; i < object.usage.length; ++i) + switch (object.usage[i]) { + default: + if (typeof object.usage[i] === "number") { + message.usage[i] = object.usage[i]; + break; + } + case "USAGE_UNSPECIFIED": + case 0: + message.usage[i] = 0; + break; + case "USAGE_DATA_DRIVEN_STYLING": + case 1: + message.usage[i] = 1; + break; + case "USAGE_AREA_AFFORDANCES": + case 2: + message.usage[i] = 2; + break; + case "USAGE_ASSISTED_DRIVING": + case 3: + message.usage[i] = 3; + break; + } + } + if (object.localFileSource != null) { + if (typeof object.localFileSource !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.Dataset.localFileSource: object expected"); + message.localFileSource = $root.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.fromObject(object.localFileSource); + } + if (object.gcsSource != null) { + if (typeof object.gcsSource !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.Dataset.gcsSource: object expected"); + message.gcsSource = $root.google.maps.mapsplatformdatasets.v1alpha.GcsSource.fromObject(object.gcsSource); + } + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "STATE_IMPORTING": + case 1: + message.status = 1; + break; + case "STATE_IMPORT_SUCCEEDED": + case 2: + message.status = 2; + break; + case "STATE_IMPORT_FAILED": + case 3: + message.status = 3; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.Dataset.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.Dataset.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.versionCreateTime != null) { + if (typeof object.versionCreateTime !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.Dataset.versionCreateTime: object expected"); + message.versionCreateTime = $root.google.protobuf.Timestamp.fromObject(object.versionCreateTime); + } + if (object.versionDescription != null) + message.versionDescription = String(object.versionDescription); + return message; + }; + + /** + * Creates a plain object from a Dataset message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.Dataset} message Dataset + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Dataset.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.usage = []; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.versionId = ""; + object.createTime = null; + object.updateTime = null; + object.versionCreateTime = null; + object.versionDescription = ""; + object.status = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.versionId != null && message.hasOwnProperty("versionId")) + object.versionId = message.versionId; + if (message.usage && message.usage.length) { + object.usage = []; + for (var j = 0; j < message.usage.length; ++j) + object.usage[j] = options.enums === String ? $root.google.maps.mapsplatformdatasets.v1alpha.Usage[message.usage[j]] === undefined ? message.usage[j] : $root.google.maps.mapsplatformdatasets.v1alpha.Usage[message.usage[j]] : message.usage[j]; + } + if (message.localFileSource != null && message.hasOwnProperty("localFileSource")) { + object.localFileSource = $root.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.toObject(message.localFileSource, options); + if (options.oneofs) + object.dataSource = "localFileSource"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + object.gcsSource = $root.google.maps.mapsplatformdatasets.v1alpha.GcsSource.toObject(message.gcsSource, options); + if (options.oneofs) + object.dataSource = "gcsSource"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.versionCreateTime != null && message.hasOwnProperty("versionCreateTime")) + object.versionCreateTime = $root.google.protobuf.Timestamp.toObject(message.versionCreateTime, options); + if (message.versionDescription != null && message.hasOwnProperty("versionDescription")) + object.versionDescription = message.versionDescription; + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.google.maps.mapsplatformdatasets.v1alpha.State[message.status] === undefined ? message.status : $root.google.maps.mapsplatformdatasets.v1alpha.State[message.status] : message.status; + return object; + }; + + /** + * Converts this Dataset to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @instance + * @returns {Object.} JSON object + */ + Dataset.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Dataset + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.Dataset + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Dataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.Dataset"; + }; + + return Dataset; + })(); + + /** + * Usage enum. + * @name google.maps.mapsplatformdatasets.v1alpha.Usage + * @enum {number} + * @property {number} USAGE_UNSPECIFIED=0 USAGE_UNSPECIFIED value + * @property {number} USAGE_DATA_DRIVEN_STYLING=1 USAGE_DATA_DRIVEN_STYLING value + * @property {number} USAGE_AREA_AFFORDANCES=2 USAGE_AREA_AFFORDANCES value + * @property {number} USAGE_ASSISTED_DRIVING=3 USAGE_ASSISTED_DRIVING value + */ + v1alpha.Usage = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "USAGE_UNSPECIFIED"] = 0; + values[valuesById[1] = "USAGE_DATA_DRIVEN_STYLING"] = 1; + values[valuesById[2] = "USAGE_AREA_AFFORDANCES"] = 2; + values[valuesById[3] = "USAGE_ASSISTED_DRIVING"] = 3; + return values; + })(); + + /** + * State enum. + * @name google.maps.mapsplatformdatasets.v1alpha.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} STATE_IMPORTING=1 STATE_IMPORTING value + * @property {number} STATE_IMPORT_SUCCEEDED=2 STATE_IMPORT_SUCCEEDED value + * @property {number} STATE_IMPORT_FAILED=3 STATE_IMPORT_FAILED value + */ + v1alpha.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "STATE_IMPORTING"] = 1; + values[valuesById[2] = "STATE_IMPORT_SUCCEEDED"] = 2; + values[valuesById[3] = "STATE_IMPORT_FAILED"] = 3; + return values; + })(); + + v1alpha.CreateDatasetRequest = (function() { + + /** + * Properties of a CreateDatasetRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface ICreateDatasetRequest + * @property {string|null} [parent] CreateDatasetRequest parent + * @property {google.maps.mapsplatformdatasets.v1alpha.IDataset|null} [dataset] CreateDatasetRequest dataset + */ + + /** + * Constructs a new CreateDatasetRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a CreateDatasetRequest. + * @implements ICreateDatasetRequest + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest=} [properties] Properties to set + */ + function CreateDatasetRequest(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]]; + } + + /** + * CreateDatasetRequest parent. + * @member {string} parent + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @instance + */ + CreateDatasetRequest.prototype.parent = ""; + + /** + * CreateDatasetRequest dataset. + * @member {google.maps.mapsplatformdatasets.v1alpha.IDataset|null|undefined} dataset + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @instance + */ + CreateDatasetRequest.prototype.dataset = null; + + /** + * Creates a new CreateDatasetRequest instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest} CreateDatasetRequest instance + */ + CreateDatasetRequest.create = function create(properties) { + return new CreateDatasetRequest(properties); + }; + + /** + * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest} message CreateDatasetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDatasetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.encode(message.dataset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest} message CreateDatasetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateDatasetRequest message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest} CreateDatasetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDatasetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.dataset = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest} CreateDatasetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateDatasetRequest message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDatasetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + var error = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.verify(message.dataset); + if (error) + return "dataset." + error; + } + return null; + }; + + /** + * Creates a CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest} CreateDatasetRequest + */ + CreateDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataset != null) { + if (typeof object.dataset !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest.dataset: object expected"); + message.dataset = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.fromObject(object.dataset); + } + return message; + }; + + /** + * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest} message CreateDatasetRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateDatasetRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.dataset = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.toObject(message.dataset, options); + return object; + }; + + /** + * Converts this CreateDatasetRequest to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @instance + * @returns {Object.} JSON object + */ + CreateDatasetRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateDatasetRequest + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest"; + }; + + return CreateDatasetRequest; + })(); + + v1alpha.UpdateDatasetMetadataRequest = (function() { + + /** + * Properties of an UpdateDatasetMetadataRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IUpdateDatasetMetadataRequest + * @property {google.maps.mapsplatformdatasets.v1alpha.IDataset|null} [dataset] UpdateDatasetMetadataRequest dataset + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDatasetMetadataRequest updateMask + */ + + /** + * Constructs a new UpdateDatasetMetadataRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents an UpdateDatasetMetadataRequest. + * @implements IUpdateDatasetMetadataRequest + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest=} [properties] Properties to set + */ + function UpdateDatasetMetadataRequest(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]]; + } + + /** + * UpdateDatasetMetadataRequest dataset. + * @member {google.maps.mapsplatformdatasets.v1alpha.IDataset|null|undefined} dataset + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @instance + */ + UpdateDatasetMetadataRequest.prototype.dataset = null; + + /** + * UpdateDatasetMetadataRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @instance + */ + UpdateDatasetMetadataRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDatasetMetadataRequest instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest} UpdateDatasetMetadataRequest instance + */ + UpdateDatasetMetadataRequest.create = function create(properties) { + return new UpdateDatasetMetadataRequest(properties); + }; + + /** + * Encodes the specified UpdateDatasetMetadataRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest} message UpdateDatasetMetadataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDatasetMetadataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.encode(message.dataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateDatasetMetadataRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest} message UpdateDatasetMetadataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateDatasetMetadataRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateDatasetMetadataRequest message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest} UpdateDatasetMetadataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDatasetMetadataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataset = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateDatasetMetadataRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest} UpdateDatasetMetadataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateDatasetMetadataRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateDatasetMetadataRequest message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateDatasetMetadataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + var error = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.verify(message.dataset); + if (error) + return "dataset." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateDatasetMetadataRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest} UpdateDatasetMetadataRequest + */ + UpdateDatasetMetadataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest(); + if (object.dataset != null) { + if (typeof object.dataset !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest.dataset: object expected"); + message.dataset = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.fromObject(object.dataset); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateDatasetMetadataRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest} message UpdateDatasetMetadataRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateDatasetMetadataRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataset = null; + object.updateMask = null; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.toObject(message.dataset, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateDatasetMetadataRequest to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateDatasetMetadataRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateDatasetMetadataRequest + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateDatasetMetadataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest"; + }; + + return UpdateDatasetMetadataRequest; + })(); + + v1alpha.GetDatasetRequest = (function() { + + /** + * Properties of a GetDatasetRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IGetDatasetRequest + * @property {string|null} [name] GetDatasetRequest name + * @property {google.maps.mapsplatformdatasets.v1alpha.Usage|null} [publishedUsage] GetDatasetRequest publishedUsage + */ + + /** + * Constructs a new GetDatasetRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a GetDatasetRequest. + * @implements IGetDatasetRequest + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest=} [properties] Properties to set + */ + function GetDatasetRequest(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]]; + } + + /** + * GetDatasetRequest name. + * @member {string} name + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @instance + */ + GetDatasetRequest.prototype.name = ""; + + /** + * GetDatasetRequest publishedUsage. + * @member {google.maps.mapsplatformdatasets.v1alpha.Usage} publishedUsage + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @instance + */ + GetDatasetRequest.prototype.publishedUsage = 0; + + /** + * Creates a new GetDatasetRequest instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest} GetDatasetRequest instance + */ + GetDatasetRequest.create = function create(properties) { + return new GetDatasetRequest(properties); + }; + + /** + * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDatasetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.publishedUsage != null && Object.hasOwnProperty.call(message, "publishedUsage")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.publishedUsage); + return writer; + }; + + /** + * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDatasetRequest message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest} GetDatasetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDatasetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.publishedUsage = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest} GetDatasetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDatasetRequest message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDatasetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.publishedUsage != null && message.hasOwnProperty("publishedUsage")) + switch (message.publishedUsage) { + default: + return "publishedUsage: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Creates a GetDatasetRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest} GetDatasetRequest + */ + GetDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest(); + if (object.name != null) + message.name = String(object.name); + switch (object.publishedUsage) { + default: + if (typeof object.publishedUsage === "number") { + message.publishedUsage = object.publishedUsage; + break; + } + break; + case "USAGE_UNSPECIFIED": + case 0: + message.publishedUsage = 0; + break; + case "USAGE_DATA_DRIVEN_STYLING": + case 1: + message.publishedUsage = 1; + break; + case "USAGE_AREA_AFFORDANCES": + case 2: + message.publishedUsage = 2; + break; + case "USAGE_ASSISTED_DRIVING": + case 3: + message.publishedUsage = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest} message GetDatasetRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDatasetRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.publishedUsage = options.enums === String ? "USAGE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.publishedUsage != null && message.hasOwnProperty("publishedUsage")) + object.publishedUsage = options.enums === String ? $root.google.maps.mapsplatformdatasets.v1alpha.Usage[message.publishedUsage] === undefined ? message.publishedUsage : $root.google.maps.mapsplatformdatasets.v1alpha.Usage[message.publishedUsage] : message.publishedUsage; + return object; + }; + + /** + * Converts this GetDatasetRequest to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @instance + * @returns {Object.} JSON object + */ + GetDatasetRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetDatasetRequest + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest"; + }; + + return GetDatasetRequest; + })(); + + v1alpha.ListDatasetVersionsRequest = (function() { + + /** + * Properties of a ListDatasetVersionsRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IListDatasetVersionsRequest + * @property {string|null} [name] ListDatasetVersionsRequest name + * @property {number|null} [pageSize] ListDatasetVersionsRequest pageSize + * @property {string|null} [pageToken] ListDatasetVersionsRequest pageToken + */ + + /** + * Constructs a new ListDatasetVersionsRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a ListDatasetVersionsRequest. + * @implements IListDatasetVersionsRequest + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest=} [properties] Properties to set + */ + function ListDatasetVersionsRequest(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]]; + } + + /** + * ListDatasetVersionsRequest name. + * @member {string} name + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @instance + */ + ListDatasetVersionsRequest.prototype.name = ""; + + /** + * ListDatasetVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @instance + */ + ListDatasetVersionsRequest.prototype.pageSize = 0; + + /** + * ListDatasetVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @instance + */ + ListDatasetVersionsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDatasetVersionsRequest instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest} ListDatasetVersionsRequest instance + */ + ListDatasetVersionsRequest.create = function create(properties) { + return new ListDatasetVersionsRequest(properties); + }; + + /** + * Encodes the specified ListDatasetVersionsRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest} message ListDatasetVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDatasetVersionsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListDatasetVersionsRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest} message ListDatasetVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDatasetVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDatasetVersionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest} ListDatasetVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDatasetVersionsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDatasetVersionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest} ListDatasetVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDatasetVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDatasetVersionsRequest message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDatasetVersionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListDatasetVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest} ListDatasetVersionsRequest + */ + ListDatasetVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListDatasetVersionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest} message ListDatasetVersionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDatasetVersionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListDatasetVersionsRequest to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListDatasetVersionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListDatasetVersionsRequest + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDatasetVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest"; + }; + + return ListDatasetVersionsRequest; + })(); + + v1alpha.ListDatasetVersionsResponse = (function() { + + /** + * Properties of a ListDatasetVersionsResponse. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IListDatasetVersionsResponse + * @property {Array.|null} [datasets] ListDatasetVersionsResponse datasets + * @property {string|null} [nextPageToken] ListDatasetVersionsResponse nextPageToken + */ + + /** + * Constructs a new ListDatasetVersionsResponse. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a ListDatasetVersionsResponse. + * @implements IListDatasetVersionsResponse + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse=} [properties] Properties to set + */ + function ListDatasetVersionsResponse(properties) { + this.datasets = []; + 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]]; + } + + /** + * ListDatasetVersionsResponse datasets. + * @member {Array.} datasets + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @instance + */ + ListDatasetVersionsResponse.prototype.datasets = $util.emptyArray; + + /** + * ListDatasetVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @instance + */ + ListDatasetVersionsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListDatasetVersionsResponse instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse} ListDatasetVersionsResponse instance + */ + ListDatasetVersionsResponse.create = function create(properties) { + return new ListDatasetVersionsResponse(properties); + }; + + /** + * Encodes the specified ListDatasetVersionsResponse message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse} message ListDatasetVersionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDatasetVersionsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datasets != null && message.datasets.length) + for (var i = 0; i < message.datasets.length; ++i) + $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.encode(message.datasets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListDatasetVersionsResponse message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse} message ListDatasetVersionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDatasetVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDatasetVersionsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse} ListDatasetVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDatasetVersionsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.datasets && message.datasets.length)) + message.datasets = []; + message.datasets.push($root.google.maps.mapsplatformdatasets.v1alpha.Dataset.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDatasetVersionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse} ListDatasetVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDatasetVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDatasetVersionsResponse message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDatasetVersionsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datasets != null && message.hasOwnProperty("datasets")) { + if (!Array.isArray(message.datasets)) + return "datasets: array expected"; + for (var i = 0; i < message.datasets.length; ++i) { + var error = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.verify(message.datasets[i]); + if (error) + return "datasets." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListDatasetVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse} ListDatasetVersionsResponse + */ + ListDatasetVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse(); + if (object.datasets) { + if (!Array.isArray(object.datasets)) + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse.datasets: array expected"); + message.datasets = []; + for (var i = 0; i < object.datasets.length; ++i) { + if (typeof object.datasets[i] !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse.datasets: object expected"); + message.datasets[i] = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.fromObject(object.datasets[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListDatasetVersionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse} message ListDatasetVersionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDatasetVersionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.datasets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.datasets && message.datasets.length) { + object.datasets = []; + for (var j = 0; j < message.datasets.length; ++j) + object.datasets[j] = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.toObject(message.datasets[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListDatasetVersionsResponse to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @instance + * @returns {Object.} JSON object + */ + ListDatasetVersionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListDatasetVersionsResponse + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDatasetVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse"; + }; + + return ListDatasetVersionsResponse; + })(); + + v1alpha.ListDatasetsRequest = (function() { + + /** + * Properties of a ListDatasetsRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IListDatasetsRequest + * @property {string|null} [parent] ListDatasetsRequest parent + * @property {number|null} [pageSize] ListDatasetsRequest pageSize + * @property {string|null} [pageToken] ListDatasetsRequest pageToken + */ + + /** + * Constructs a new ListDatasetsRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a ListDatasetsRequest. + * @implements IListDatasetsRequest + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest=} [properties] Properties to set + */ + function ListDatasetsRequest(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]]; + } + + /** + * ListDatasetsRequest parent. + * @member {string} parent + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @instance + */ + ListDatasetsRequest.prototype.parent = ""; + + /** + * ListDatasetsRequest pageSize. + * @member {number} pageSize + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @instance + */ + ListDatasetsRequest.prototype.pageSize = 0; + + /** + * ListDatasetsRequest pageToken. + * @member {string} pageToken + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @instance + */ + ListDatasetsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDatasetsRequest instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest} ListDatasetsRequest instance + */ + ListDatasetsRequest.create = function create(properties) { + return new ListDatasetsRequest(properties); + }; + + /** + * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDatasetsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDatasetsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDatasetsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest} ListDatasetsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDatasetsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest} ListDatasetsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDatasetsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDatasetsRequest message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDatasetsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest} ListDatasetsRequest + */ + ListDatasetsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest} message ListDatasetsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDatasetsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListDatasetsRequest to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @instance + * @returns {Object.} JSON object + */ + ListDatasetsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListDatasetsRequest + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDatasetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest"; + }; + + return ListDatasetsRequest; + })(); + + v1alpha.ListDatasetsResponse = (function() { + + /** + * Properties of a ListDatasetsResponse. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IListDatasetsResponse + * @property {Array.|null} [datasets] ListDatasetsResponse datasets + * @property {string|null} [nextPageToken] ListDatasetsResponse nextPageToken + */ + + /** + * Constructs a new ListDatasetsResponse. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a ListDatasetsResponse. + * @implements IListDatasetsResponse + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse=} [properties] Properties to set + */ + function ListDatasetsResponse(properties) { + this.datasets = []; + 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]]; + } + + /** + * ListDatasetsResponse datasets. + * @member {Array.} datasets + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @instance + */ + ListDatasetsResponse.prototype.datasets = $util.emptyArray; + + /** + * ListDatasetsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @instance + */ + ListDatasetsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListDatasetsResponse instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse} ListDatasetsResponse instance + */ + ListDatasetsResponse.create = function create(properties) { + return new ListDatasetsResponse(properties); + }; + + /** + * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse} message ListDatasetsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDatasetsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datasets != null && message.datasets.length) + for (var i = 0; i < message.datasets.length; ++i) + $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.encode(message.datasets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse} message ListDatasetsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDatasetsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDatasetsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse} ListDatasetsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDatasetsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.datasets && message.datasets.length)) + message.datasets = []; + message.datasets.push($root.google.maps.mapsplatformdatasets.v1alpha.Dataset.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse} ListDatasetsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDatasetsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDatasetsResponse message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDatasetsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datasets != null && message.hasOwnProperty("datasets")) { + if (!Array.isArray(message.datasets)) + return "datasets: array expected"; + for (var i = 0; i < message.datasets.length; ++i) { + var error = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.verify(message.datasets[i]); + if (error) + return "datasets." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse} ListDatasetsResponse + */ + ListDatasetsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse(); + if (object.datasets) { + if (!Array.isArray(object.datasets)) + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse.datasets: array expected"); + message.datasets = []; + for (var i = 0; i < object.datasets.length; ++i) { + if (typeof object.datasets[i] !== "object") + throw TypeError(".google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse.datasets: object expected"); + message.datasets[i] = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.fromObject(object.datasets[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse} message ListDatasetsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDatasetsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.datasets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.datasets && message.datasets.length) { + object.datasets = []; + for (var j = 0; j < message.datasets.length; ++j) + object.datasets[j] = $root.google.maps.mapsplatformdatasets.v1alpha.Dataset.toObject(message.datasets[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListDatasetsResponse to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @instance + * @returns {Object.} JSON object + */ + ListDatasetsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListDatasetsResponse + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDatasetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse"; + }; + + return ListDatasetsResponse; + })(); + + v1alpha.DeleteDatasetRequest = (function() { + + /** + * Properties of a DeleteDatasetRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IDeleteDatasetRequest + * @property {string|null} [name] DeleteDatasetRequest name + * @property {boolean|null} [force] DeleteDatasetRequest force + */ + + /** + * Constructs a new DeleteDatasetRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a DeleteDatasetRequest. + * @implements IDeleteDatasetRequest + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest=} [properties] Properties to set + */ + function DeleteDatasetRequest(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]]; + } + + /** + * DeleteDatasetRequest name. + * @member {string} name + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @instance + */ + DeleteDatasetRequest.prototype.name = ""; + + /** + * DeleteDatasetRequest force. + * @member {boolean} force + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @instance + */ + DeleteDatasetRequest.prototype.force = false; + + /** + * Creates a new DeleteDatasetRequest instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest} DeleteDatasetRequest instance + */ + DeleteDatasetRequest.create = function create(properties) { + return new DeleteDatasetRequest(properties); + }; + + /** + * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDatasetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + return writer; + }; + + /** + * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteDatasetRequest message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest} DeleteDatasetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDatasetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.force = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest} DeleteDatasetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDatasetRequest message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteDatasetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + return null; + }; + + /** + * Creates a DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest} DeleteDatasetRequest + */ + DeleteDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + return message; + }; + + /** + * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest} message DeleteDatasetRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDatasetRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.force = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + return object; + }; + + /** + * Converts this DeleteDatasetRequest to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteDatasetRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteDatasetRequest + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest"; + }; + + return DeleteDatasetRequest; + })(); + + v1alpha.DeleteDatasetVersionRequest = (function() { + + /** + * Properties of a DeleteDatasetVersionRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @interface IDeleteDatasetVersionRequest + * @property {string|null} [name] DeleteDatasetVersionRequest name + */ + + /** + * Constructs a new DeleteDatasetVersionRequest. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a DeleteDatasetVersionRequest. + * @implements IDeleteDatasetVersionRequest + * @constructor + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest=} [properties] Properties to set + */ + function DeleteDatasetVersionRequest(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]]; + } + + /** + * DeleteDatasetVersionRequest name. + * @member {string} name + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @instance + */ + DeleteDatasetVersionRequest.prototype.name = ""; + + /** + * Creates a new DeleteDatasetVersionRequest instance using the specified properties. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest=} [properties] Properties to set + * @returns {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest} DeleteDatasetVersionRequest instance + */ + DeleteDatasetVersionRequest.create = function create(properties) { + return new DeleteDatasetVersionRequest(properties); + }; + + /** + * Encodes the specified DeleteDatasetVersionRequest message. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest} message DeleteDatasetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDatasetVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteDatasetVersionRequest message, length delimited. Does not implicitly {@link google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest} message DeleteDatasetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDatasetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteDatasetVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest} DeleteDatasetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDatasetVersionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteDatasetVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest} DeleteDatasetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDatasetVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDatasetVersionRequest message. + * @function verify + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteDatasetVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteDatasetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest} DeleteDatasetVersionRequest + */ + DeleteDatasetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest) + return object; + var message = new $root.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteDatasetVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @static + * @param {google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest} message DeleteDatasetVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDatasetVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteDatasetVersionRequest to JSON. + * @function toJSON + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteDatasetVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteDatasetVersionRequest + * @function getTypeUrl + * @memberof google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteDatasetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest"; + }; + + return DeleteDatasetVersionRequest; + })(); + + v1alpha.MapsPlatformDatasetsV1Alpha = (function() { + + /** + * Constructs a new MapsPlatformDatasetsV1Alpha service. + * @memberof google.maps.mapsplatformdatasets.v1alpha + * @classdesc Represents a MapsPlatformDatasetsV1Alpha + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function MapsPlatformDatasetsV1Alpha(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (MapsPlatformDatasetsV1Alpha.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MapsPlatformDatasetsV1Alpha; + + /** + * Creates new MapsPlatformDatasetsV1Alpha service using the specified rpc implementation. + * @function create + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {MapsPlatformDatasetsV1Alpha} RPC service. Useful where requests and/or responses are streamed. + */ + MapsPlatformDatasetsV1Alpha.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|createDataset}. + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @typedef CreateDatasetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.maps.mapsplatformdatasets.v1alpha.Dataset} [response] Dataset + */ + + /** + * Calls CreateDataset. + * @function createDataset + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest} request CreateDatasetRequest message or plain object + * @param {google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.CreateDatasetCallback} callback Node-style callback called with the error, if any, and Dataset + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MapsPlatformDatasetsV1Alpha.prototype.createDataset = function createDataset(request, callback) { + return this.rpcCall(createDataset, $root.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest, $root.google.maps.mapsplatformdatasets.v1alpha.Dataset, request, callback); + }, "name", { value: "CreateDataset" }); + + /** + * Calls CreateDataset. + * @function createDataset + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest} request CreateDatasetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|updateDatasetMetadata}. + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @typedef UpdateDatasetMetadataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.maps.mapsplatformdatasets.v1alpha.Dataset} [response] Dataset + */ + + /** + * Calls UpdateDatasetMetadata. + * @function updateDatasetMetadata + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest} request UpdateDatasetMetadataRequest message or plain object + * @param {google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.UpdateDatasetMetadataCallback} callback Node-style callback called with the error, if any, and Dataset + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MapsPlatformDatasetsV1Alpha.prototype.updateDatasetMetadata = function updateDatasetMetadata(request, callback) { + return this.rpcCall(updateDatasetMetadata, $root.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest, $root.google.maps.mapsplatformdatasets.v1alpha.Dataset, request, callback); + }, "name", { value: "UpdateDatasetMetadata" }); + + /** + * Calls UpdateDatasetMetadata. + * @function updateDatasetMetadata + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest} request UpdateDatasetMetadataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|getDataset}. + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @typedef GetDatasetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.maps.mapsplatformdatasets.v1alpha.Dataset} [response] Dataset + */ + + /** + * Calls GetDataset. + * @function getDataset + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest} request GetDatasetRequest message or plain object + * @param {google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.GetDatasetCallback} callback Node-style callback called with the error, if any, and Dataset + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MapsPlatformDatasetsV1Alpha.prototype.getDataset = function getDataset(request, callback) { + return this.rpcCall(getDataset, $root.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest, $root.google.maps.mapsplatformdatasets.v1alpha.Dataset, request, callback); + }, "name", { value: "GetDataset" }); + + /** + * Calls GetDataset. + * @function getDataset + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest} request GetDatasetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|listDatasetVersions}. + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @typedef ListDatasetVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse} [response] ListDatasetVersionsResponse + */ + + /** + * Calls ListDatasetVersions. + * @function listDatasetVersions + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest} request ListDatasetVersionsRequest message or plain object + * @param {google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasetVersionsCallback} callback Node-style callback called with the error, if any, and ListDatasetVersionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MapsPlatformDatasetsV1Alpha.prototype.listDatasetVersions = function listDatasetVersions(request, callback) { + return this.rpcCall(listDatasetVersions, $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest, $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse, request, callback); + }, "name", { value: "ListDatasetVersions" }); + + /** + * Calls ListDatasetVersions. + * @function listDatasetVersions + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest} request ListDatasetVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|listDatasets}. + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @typedef ListDatasetsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse} [response] ListDatasetsResponse + */ + + /** + * Calls ListDatasets. + * @function listDatasets + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest} request ListDatasetsRequest message or plain object + * @param {google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasetsCallback} callback Node-style callback called with the error, if any, and ListDatasetsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MapsPlatformDatasetsV1Alpha.prototype.listDatasets = function listDatasets(request, callback) { + return this.rpcCall(listDatasets, $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest, $root.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse, request, callback); + }, "name", { value: "ListDatasets" }); + + /** + * Calls ListDatasets. + * @function listDatasets + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest} request ListDatasetsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|deleteDataset}. + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @typedef DeleteDatasetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteDataset. + * @function deleteDataset + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object + * @param {google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDatasetCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MapsPlatformDatasetsV1Alpha.prototype.deleteDataset = function deleteDataset(request, callback) { + return this.rpcCall(deleteDataset, $root.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDataset" }); + + /** + * Calls DeleteDataset. + * @function deleteDataset + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha|deleteDatasetVersion}. + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @typedef DeleteDatasetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteDatasetVersion. + * @function deleteDatasetVersion + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest} request DeleteDatasetVersionRequest message or plain object + * @param {google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDatasetVersionCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MapsPlatformDatasetsV1Alpha.prototype.deleteDatasetVersion = function deleteDatasetVersion(request, callback) { + return this.rpcCall(deleteDatasetVersion, $root.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDatasetVersion" }); + + /** + * Calls DeleteDatasetVersion. + * @function deleteDatasetVersion + * @memberof google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha + * @instance + * @param {google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest} request DeleteDatasetVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return MapsPlatformDatasetsV1Alpha; + })(); + + return v1alpha; + })(); + + return mapsplatformdatasets; + })(); + + return maps; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + return values; + })(); + + api.ResourceDescriptor = (function() { + + /** + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + * @property {Array.|null} [style] ResourceDescriptor style + */ + + /** + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor + * @constructor + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + */ + function ResourceDescriptor(properties) { + this.pattern = []; + this.style = []; + 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]]; + } + + /** + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.type = ""; + + /** + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.pattern = $util.emptyArray; + + /** + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.nameField = ""; + + /** + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.history = 0; + + /** + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.plural = ""; + + /** + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; + + /** + * ResourceDescriptor style. + * @member {Array.} style + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.style = $util.emptyArray; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @function create + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + */ + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); + }; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + if (message.style != null && message.style.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.style.length; ++i) + writer.int32(message.style[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + } + case 3: { + message.nameField = reader.string(); + break; + } + case 4: { + message.history = reader.int32(); + break; + } + case 5: { + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else + message.style.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceDescriptor message. + * @function verify + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + if (message.style != null && message.hasOwnProperty("style")) { + if (!Array.isArray(message.style)) + return "style: array expected"; + for (var i = 0; i < message.style.length; ++i) + switch (message.style[i]) { + default: + return "style: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); + } + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; + } + break; + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; + } + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + if (object.style) { + if (!Array.isArray(object.style)) + throw TypeError(".google.api.ResourceDescriptor.style: array expected"); + message.style = []; + for (var i = 0; i < object.style.length; ++i) + switch (object.style[i]) { + default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; + } + case "STYLE_UNSPECIFIED": + case 0: + message.style[i] = 0; + break; + case "DECLARATIVE_FRIENDLY": + case 1: + message.style[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.pattern = []; + object.style = []; + } + if (options.defaults) { + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + if (message.style && message.style.length) { + object.style = []; + for (var j = 0; j < message.style.length; ++j) + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + } + return object; + }; + + /** + * Converts this ResourceDescriptor to JSON. + * @function toJSON + * @memberof google.api.ResourceDescriptor + * @instance + * @returns {Object.} JSON object + */ + ResourceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceDescriptor + * @function getTypeUrl + * @memberof google.api.ResourceDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceDescriptor"; + }; + + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); + + /** + * Style enum. + * @name google.api.ResourceDescriptor.Style + * @enum {number} + * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value + * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value + */ + ResourceDescriptor.Style = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; + return values; + })(); + + return ResourceDescriptor; + })(); + + api.ResourceReference = (function() { + + /** + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType + */ + + /** + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference + * @constructor + * @param {google.api.IResourceReference=} [properties] Properties to set + */ + function ResourceReference(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]]; + } + + /** + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.type = ""; + + /** + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.childType = ""; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @function create + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance + */ + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); + }; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + return writer; + }; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.childType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceReference message. + * @function verify + * @memberof google.api.ResourceReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; + return null; + }; + + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceReference + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceReference} ResourceReference + */ + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) + return object; + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); + return message; + }; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceReference + * @static + * @param {google.api.ResourceReference} message ResourceReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + object.childType = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; + return object; + }; + + /** + * Converts this ResourceReference to JSON. + * @function toJSON + * @memberof google.api.ResourceReference + * @instance + * @returns {Object.} JSON object + */ + ResourceReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceReference + * @function getTypeUrl + * @memberof google.api.ResourceReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceReference"; + }; + + return ResourceReference; + })(); + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + 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]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + 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]]; + } + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; + + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; + + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; + + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; + + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; + + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HttpRule + * @function getTypeUrl + * @memberof google.api.HttpRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.HttpRule"; + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(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]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; + + return CustomHttpPattern; + })(); + + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + 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]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; + + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {string|null} [edition] FileDescriptorProto edition + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + 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]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * FileDescriptorProto edition. + * @member {string} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); + return writer; + }; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message["package"] = reader.string(); + break; + } + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + case 13: { + message.edition = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + if (!$util.isString(message.edition)) + return "edition: string expected"; + return null; + }; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + if (object.edition != null) + message.edition = String(object.edition); + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + object.edition = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = message.edition; + return object; + }; + + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(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]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(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]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + }; + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(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]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + case 17: { + message.proto3Optional = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; + break; + } + break; + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(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]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; + + EnumDescriptorProto.EnumReservedRange = (function() { + + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ + + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(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]]; + } + + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; + + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(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]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + 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]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(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]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); + return message; + }; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; + return object; + }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.MethodDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + MethodDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; + 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]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions phpGenericServices. + * @member {boolean} phpGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = true; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; + + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; + + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; + + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; + + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) + writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 42: { + message.phpGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (typeof message.phpGenericServices !== "boolean") + return "phpGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); + if (error) + return ".google.api.resourceDefinition." + error; + } + } + return null; + }; + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileOptions} FileOptions + */ + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) + return object; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.phpGenericServices != null) + message.phpGenericServices = Boolean(object.phpGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpGenericServices = false; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + object.phpGenericServices = message.phpGenericServices; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + } + return object; + }; + + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); + if (error) + return ".google.api.resource." + error; + } + return null; + }; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) + return object; + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); + } + return message; + }; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object[".google.api.resource"] = null; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); + return object; + }; + + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; + 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]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + + /** + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.resourceReference"] = null; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; + } + return null; + }; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; + break; + } + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; + break; + } + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + } + return message; + }; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object.unverifiedLazy = false; + object[".google.api.resourceReference"] = null; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + return object; + }; + + /** + * Converts this FieldOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions + * @instance + * @returns {Object.} JSON object + */ + FieldOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this OneofOptions to JSON. + * @function toJSON + * @memberof google.protobuf.OneofOptions + * @instance + * @returns {Object.} JSON object + */ + OneofOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) + return object; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.allowAlias = false; + object.deprecated = false; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) + return object; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumValueOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueOptions + * @instance + * @returns {Object.} JSON object + */ + EnumValueOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.defaultHost"] = ""; + + /** + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + return writer; + }; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; + } + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; + return null; + }; + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + return message; + }; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + return object; + }; + + /** + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions + * @instance + * @returns {Object.} JSON object + */ + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; + 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]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.idempotencyLevel = 0; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; + } + return null; + }; + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) + return object; + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + } + return message; + }; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } + if (options.defaults) { + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + return object; + }; + + /** + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; + + /** + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {number} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value + */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + 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]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + } + case 3: { + message.identifierValue = reader.string(); + break; + } + case 4: { + message.positiveIntValue = reader.uint64(); + break; + } + case 5: { + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length >= 0) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; + }; + + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(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]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + 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]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } + return object; + }; + + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + 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]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + 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]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + 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]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; + break; + } + break; + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; + return object; + }; + + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; + + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(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]]; + } + + /** + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Timestamp + * @function getTypeUrl + * @memberof google.protobuf.Timestamp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Timestamp"; + }; + + return Timestamp; + })(); + + protobuf.FieldMask = (function() { + + /** + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths + */ + + /** + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask + * @constructor + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + */ + function FieldMask(properties) { + this.paths = []; + 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]]; + } + + /** + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask + * @instance + */ + FieldMask.prototype.paths = $util.emptyArray; + + /** + * Creates a new FieldMask instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance + */ + FieldMask.create = function create(properties) { + return new FieldMask(properties); + }; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + return writer; + }; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldMask message. + * @function verify + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldMask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + return null; + }; + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldMask} FieldMask + */ + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) + return object; + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + return message; + }; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.FieldMask} message FieldMask + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldMask.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + return object; + }; + + /** + * Converts this FieldMask to JSON. + * @function toJSON + * @memberof google.protobuf.FieldMask + * @instance + * @returns {Object.} JSON object + */ + FieldMask.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldMask + * @function getTypeUrl + * @memberof google.protobuf.FieldMask + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldMask"; + }; + + return FieldMask; + })(); + + protobuf.Empty = (function() { + + /** + * Properties of an Empty. + * @memberof google.protobuf + * @interface IEmpty + */ + + /** + * Constructs a new Empty. + * @memberof google.protobuf + * @classdesc Represents an Empty. + * @implements IEmpty + * @constructor + * @param {google.protobuf.IEmpty=} [properties] Properties to set + */ + function Empty(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]]; + } + + /** + * Creates a new Empty instance using the specified properties. + * @function create + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @returns {google.protobuf.Empty} Empty instance + */ + Empty.create = function create(properties) { + return new Empty(properties); + }; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Empty message. + * @function verify + * @memberof google.protobuf.Empty + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Empty.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Empty + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Empty} Empty + */ + Empty.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Empty) + return object; + return new $root.google.protobuf.Empty(); + }; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.Empty} message Empty + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Empty.toObject = function toObject() { + return {}; + }; + + /** + * Converts this Empty to JSON. + * @function toJSON + * @memberof google.protobuf.Empty + * @instance + * @returns {Object.} JSON object + */ + Empty.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Empty + * @function getTypeUrl + * @memberof google.protobuf.Empty + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Empty"; + }; + + return Empty; + })(); + + return protobuf; + })(); + + return google; + })(); + + return $root; +}); diff --git a/packages/google-maps-mapsplatformdatasets/protos/protos.json b/packages/google-maps-mapsplatformdatasets/protos/protos.json new file mode 100644 index 000000000000..4f41c1ca100c --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/protos/protos.json @@ -0,0 +1,1606 @@ +{ + "nested": { + "google": { + "nested": { + "maps": { + "nested": { + "mapsplatformdatasets": { + "nested": { + "v1alpha": { + "options": { + "csharp_namespace": "Google.Maps.MapsPlatformDatasets.V1Alpha", + "go_package": "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets", + "java_multiple_files": true, + "java_outer_classname": "MapsPlatformDatasetsV1AlphaServiceProto", + "java_package": "com.google.maps.mapsplatformdatasets.v1alpha", + "php_namespace": "Google\\Maps\\MapsPlatformDatasets\\V1alpha", + "cc_enable_arenas": true, + "objc_class_prefix": "MDV1A" + }, + "nested": { + "LocalFileSource": { + "fields": { + "filename": { + "type": "string", + "id": 1 + }, + "fileFormat": { + "type": "FileFormat", + "id": 2 + } + } + }, + "GcsSource": { + "fields": { + "inputUri": { + "type": "string", + "id": 1 + }, + "fileFormat": { + "type": "FileFormat", + "id": 2 + } + } + }, + "FileFormat": { + "values": { + "FILE_FORMAT_UNSPECIFIED": 0, + "FILE_FORMAT_GEOJSON": 1, + "FILE_FORMAT_KML": 2, + "FILE_FORMAT_CSV": 3, + "FILE_FORMAT_PROTO": 4, + "FILE_FORMAT_KMZ": 5 + } + }, + "Dataset": { + "options": { + "(google.api.resource).type": "mapsplatformdatasets.googleapis.com/Dataset", + "(google.api.resource).pattern": "projects/{project}/datasets/{dataset}" + }, + "oneofs": { + "dataSource": { + "oneof": [ + "localFileSource", + "gcsSource" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "displayName": { + "type": "string", + "id": 2 + }, + "description": { + "type": "string", + "id": 3 + }, + "versionId": { + "type": "string", + "id": 4 + }, + "usage": { + "rule": "repeated", + "type": "Usage", + "id": 5 + }, + "localFileSource": { + "type": "LocalFileSource", + "id": 6 + }, + "gcsSource": { + "type": "GcsSource", + "id": 7 + }, + "status": { + "type": "State", + "id": 12 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "versionCreateTime": { + "type": "google.protobuf.Timestamp", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "versionDescription": { + "type": "string", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "Usage": { + "values": { + "USAGE_UNSPECIFIED": 0, + "USAGE_DATA_DRIVEN_STYLING": 1, + "USAGE_AREA_AFFORDANCES": 2, + "USAGE_ASSISTED_DRIVING": 3 + } + }, + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "STATE_IMPORTING": 1, + "STATE_IMPORT_SUCCEEDED": 2, + "STATE_IMPORT_FAILED": 3 + } + }, + "CreateDatasetRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "cloudresourcemanager.googleapis.com/Project" + } + }, + "dataset": { + "type": "Dataset", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateDatasetMetadataRequest": { + "fields": { + "dataset": { + "type": "Dataset", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "GetDatasetRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "mapsplatformdatasets.googleapis.com/Dataset" + } + }, + "publishedUsage": { + "type": "Usage", + "id": 2 + } + } + }, + "ListDatasetVersionsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "mapsplatformdatasets.googleapis.com/Dataset" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListDatasetVersionsResponse": { + "fields": { + "datasets": { + "rule": "repeated", + "type": "Dataset", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "ListDatasetsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "cloudresourcemanager.googleapis.com/Project" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListDatasetsResponse": { + "fields": { + "datasets": { + "rule": "repeated", + "type": "Dataset", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteDatasetRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "mapsplatformdatasets.googleapis.com/Dataset" + } + }, + "force": { + "type": "bool", + "id": 2 + } + } + }, + "DeleteDatasetVersionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "mapsplatformdatasets.googleapis.com/Dataset" + } + } + } + }, + "MapsPlatformDatasetsV1Alpha": { + "options": { + "(google.api.default_host)": "mapsplatformdatasets.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "CreateDataset": { + "requestType": "CreateDatasetRequest", + "responseType": "Dataset", + "options": { + "(google.api.http).post": "/v1alpha/{parent=projects/*}/datasets", + "(google.api.http).body": "dataset", + "(google.api.method_signature)": "parent,dataset" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=projects/*}/datasets", + "body": "dataset" + } + }, + { + "(google.api.method_signature)": "parent,dataset" + } + ] + }, + "UpdateDatasetMetadata": { + "requestType": "UpdateDatasetMetadataRequest", + "responseType": "Dataset", + "options": { + "(google.api.http).patch": "/v1alpha/{dataset.name=projects/*/datasets/*}", + "(google.api.http).body": "dataset", + "(google.api.method_signature)": "dataset,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{dataset.name=projects/*/datasets/*}", + "body": "dataset" + } + }, + { + "(google.api.method_signature)": "dataset,update_mask" + } + ] + }, + "GetDataset": { + "requestType": "GetDatasetRequest", + "responseType": "Dataset", + "options": { + "(google.api.http).get": "/v1alpha/{name=projects/*/datasets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=projects/*/datasets/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListDatasetVersions": { + "requestType": "ListDatasetVersionsRequest", + "responseType": "ListDatasetVersionsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{name=projects/*/datasets/*}:listVersions", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=projects/*/datasets/*}:listVersions" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListDatasets": { + "requestType": "ListDatasetsRequest", + "responseType": "ListDatasetsResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=projects/*}/datasets", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=projects/*}/datasets" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteDataset": { + "requestType": "DeleteDatasetRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=projects/*/datasets/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=projects/*/datasets/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "DeleteDatasetVersion": { + "requestType": "DeleteDatasetVersionRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=projects/*/datasets/*}:deleteVersion", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=projects/*/datasets/*}:deleteVersion" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + } + } + } + } + } + } + } + } + }, + "api": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", + "java_multiple_files": true, + "java_outer_classname": "ClientProto", + "java_package": "com.google.api", + "objc_class_prefix": "GAPI", + "cc_enable_arenas": true + }, + "nested": { + "fieldBehavior": { + "rule": "repeated", + "type": "google.api.FieldBehavior", + "id": 1052, + "extend": "google.protobuf.FieldOptions" + }, + "FieldBehavior": { + "values": { + "FIELD_BEHAVIOR_UNSPECIFIED": 0, + "OPTIONAL": 1, + "REQUIRED": 2, + "OUTPUT_ONLY": 3, + "INPUT_ONLY": 4, + "IMMUTABLE": 5, + "UNORDERED_LIST": 6, + "NON_EMPTY_DEFAULT": 7 + } + }, + "resourceReference": { + "type": "google.api.ResourceReference", + "id": 1055, + "extend": "google.protobuf.FieldOptions" + }, + "resourceDefinition": { + "rule": "repeated", + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.FileOptions" + }, + "resource": { + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.MessageOptions" + }, + "ResourceDescriptor": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "pattern": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "nameField": { + "type": "string", + "id": 3 + }, + "history": { + "type": "History", + "id": 4 + }, + "plural": { + "type": "string", + "id": 5 + }, + "singular": { + "type": "string", + "id": 6 + }, + "style": { + "rule": "repeated", + "type": "Style", + "id": 10 + } + }, + "nested": { + "History": { + "values": { + "HISTORY_UNSPECIFIED": 0, + "ORIGINALLY_SINGLE_PATTERN": 1, + "FUTURE_MULTI_PATTERN": 2 + } + }, + "Style": { + "values": { + "STYLE_UNSPECIFIED": 0, + "DECLARATIVE_FRIENDLY": 1 + } + } + } + }, + "ResourceReference": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "childType": { + "type": "string", + "id": 2 + } + } + }, + "http": { + "type": "HttpRule", + "id": 72295728, + "extend": "google.protobuf.MethodOptions" + }, + "Http": { + "fields": { + "rules": { + "rule": "repeated", + "type": "HttpRule", + "id": 1 + }, + "fullyDecodeReservedExpansion": { + "type": "bool", + "id": 2 + } + } + }, + "HttpRule": { + "oneofs": { + "pattern": { + "oneof": [ + "get", + "put", + "post", + "delete", + "patch", + "custom" + ] + } + }, + "fields": { + "selector": { + "type": "string", + "id": 1 + }, + "get": { + "type": "string", + "id": 2 + }, + "put": { + "type": "string", + "id": 3 + }, + "post": { + "type": "string", + "id": 4 + }, + "delete": { + "type": "string", + "id": 5 + }, + "patch": { + "type": "string", + "id": 6 + }, + "custom": { + "type": "CustomHttpPattern", + "id": 8 + }, + "body": { + "type": "string", + "id": 7 + }, + "responseBody": { + "type": "string", + "id": 12 + }, + "additionalBindings": { + "rule": "repeated", + "type": "HttpRule", + "id": 11 + } + } + }, + "CustomHttpPattern": { + "fields": { + "kind": { + "type": "string", + "id": 1 + }, + "path": { + "type": "string", + "id": 2 + } + } + }, + "methodSignature": { + "rule": "repeated", + "type": "string", + "id": 1051, + "extend": "google.protobuf.MethodOptions" + }, + "defaultHost": { + "type": "string", + "id": 1049, + "extend": "google.protobuf.ServiceOptions" + }, + "oauthScopes": { + "type": "string", + "id": 1050, + "extend": "google.protobuf.ServiceOptions" + } + } + }, + "protobuf": { + "options": { + "go_package": "google.golang.org/protobuf/types/descriptorpb", + "java_package": "com.google.protobuf", + "java_outer_classname": "DescriptorProtos", + "csharp_namespace": "Google.Protobuf.Reflection", + "objc_class_prefix": "GPB", + "cc_enable_arenas": true, + "optimize_for": "SPEED" + }, + "nested": { + "FileDescriptorSet": { + "fields": { + "file": { + "rule": "repeated", + "type": "FileDescriptorProto", + "id": 1 + } + } + }, + "FileDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "package": { + "type": "string", + "id": 2 + }, + "dependency": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "publicDependency": { + "rule": "repeated", + "type": "int32", + "id": 10, + "options": { + "packed": false + } + }, + "weakDependency": { + "rule": "repeated", + "type": "int32", + "id": 11, + "options": { + "packed": false + } + }, + "messageType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 4 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 5 + }, + "service": { + "rule": "repeated", + "type": "ServiceDescriptorProto", + "id": 6 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 7 + }, + "options": { + "type": "FileOptions", + "id": 8 + }, + "sourceCodeInfo": { + "type": "SourceCodeInfo", + "id": 9 + }, + "syntax": { + "type": "string", + "id": 12 + }, + "edition": { + "type": "string", + "id": 13 + } + } + }, + "DescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "field": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 2 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 6 + }, + "nestedType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 3 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 4 + }, + "extensionRange": { + "rule": "repeated", + "type": "ExtensionRange", + "id": 5 + }, + "oneofDecl": { + "rule": "repeated", + "type": "OneofDescriptorProto", + "id": 8 + }, + "options": { + "type": "MessageOptions", + "id": 7 + }, + "reservedRange": { + "rule": "repeated", + "type": "ReservedRange", + "id": 9 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 10 + } + }, + "nested": { + "ExtensionRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "ExtensionRangeOptions", + "id": 3 + } + } + }, + "ReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "ExtensionRangeOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "FieldDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 3 + }, + "label": { + "type": "Label", + "id": 4 + }, + "type": { + "type": "Type", + "id": 5 + }, + "typeName": { + "type": "string", + "id": 6 + }, + "extendee": { + "type": "string", + "id": 2 + }, + "defaultValue": { + "type": "string", + "id": 7 + }, + "oneofIndex": { + "type": "int32", + "id": 9 + }, + "jsonName": { + "type": "string", + "id": 10 + }, + "options": { + "type": "FieldOptions", + "id": 8 + }, + "proto3Optional": { + "type": "bool", + "id": 17 + } + }, + "nested": { + "Type": { + "values": { + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18 + } + }, + "Label": { + "values": { + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3 + } + } + } + }, + "OneofDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "options": { + "type": "OneofOptions", + "id": 2 + } + } + }, + "EnumDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "value": { + "rule": "repeated", + "type": "EnumValueDescriptorProto", + "id": 2 + }, + "options": { + "type": "EnumOptions", + "id": 3 + }, + "reservedRange": { + "rule": "repeated", + "type": "EnumReservedRange", + "id": 4 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 5 + } + }, + "nested": { + "EnumReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "EnumValueDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "EnumValueOptions", + "id": 3 + } + } + }, + "ServiceDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "method": { + "rule": "repeated", + "type": "MethodDescriptorProto", + "id": 2 + }, + "options": { + "type": "ServiceOptions", + "id": 3 + } + } + }, + "MethodDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "inputType": { + "type": "string", + "id": 2 + }, + "outputType": { + "type": "string", + "id": 3 + }, + "options": { + "type": "MethodOptions", + "id": 4 + }, + "clientStreaming": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "serverStreaming": { + "type": "bool", + "id": 6, + "options": { + "default": false + } + } + } + }, + "FileOptions": { + "fields": { + "javaPackage": { + "type": "string", + "id": 1 + }, + "javaOuterClassname": { + "type": "string", + "id": 8 + }, + "javaMultipleFiles": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "javaGenerateEqualsAndHash": { + "type": "bool", + "id": 20, + "options": { + "deprecated": true + } + }, + "javaStringCheckUtf8": { + "type": "bool", + "id": 27, + "options": { + "default": false + } + }, + "optimizeFor": { + "type": "OptimizeMode", + "id": 9, + "options": { + "default": "SPEED" + } + }, + "goPackage": { + "type": "string", + "id": 11 + }, + "ccGenericServices": { + "type": "bool", + "id": 16, + "options": { + "default": false + } + }, + "javaGenericServices": { + "type": "bool", + "id": 17, + "options": { + "default": false + } + }, + "pyGenericServices": { + "type": "bool", + "id": 18, + "options": { + "default": false + } + }, + "phpGenericServices": { + "type": "bool", + "id": 42, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 23, + "options": { + "default": false + } + }, + "ccEnableArenas": { + "type": "bool", + "id": 31, + "options": { + "default": true + } + }, + "objcClassPrefix": { + "type": "string", + "id": 36 + }, + "csharpNamespace": { + "type": "string", + "id": 37 + }, + "swiftPrefix": { + "type": "string", + "id": 39 + }, + "phpClassPrefix": { + "type": "string", + "id": 40 + }, + "phpNamespace": { + "type": "string", + "id": 41 + }, + "phpMetadataNamespace": { + "type": "string", + "id": 44 + }, + "rubyPackage": { + "type": "string", + "id": 45 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 38, + 38 + ] + ], + "nested": { + "OptimizeMode": { + "values": { + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3 + } + } + } + }, + "MessageOptions": { + "fields": { + "messageSetWireFormat": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "noStandardDescriptorAccessor": { + "type": "bool", + "id": 2, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "mapEntry": { + "type": "bool", + "id": 7 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ], + [ + 5, + 5 + ], + [ + 6, + 6 + ], + [ + 8, + 8 + ], + [ + 9, + 9 + ] + ] + }, + "FieldOptions": { + "fields": { + "ctype": { + "type": "CType", + "id": 1, + "options": { + "default": "STRING" + } + }, + "packed": { + "type": "bool", + "id": 2 + }, + "jstype": { + "type": "JSType", + "id": 6, + "options": { + "default": "JS_NORMAL" + } + }, + "lazy": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "weak": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ] + ], + "nested": { + "CType": { + "values": { + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2 + } + }, + "JSType": { + "values": { + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2 + } + } + } + }, + "OneofOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "EnumOptions": { + "fields": { + "allowAlias": { + "type": "bool", + "id": 2 + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 5, + 5 + ] + ] + }, + "EnumValueOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "ServiceOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "MethodOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "idempotencyLevel": { + "type": "IdempotencyLevel", + "id": 34, + "options": { + "default": "IDEMPOTENCY_UNKNOWN" + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "nested": { + "IdempotencyLevel": { + "values": { + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2 + } + } + } + }, + "UninterpretedOption": { + "fields": { + "name": { + "rule": "repeated", + "type": "NamePart", + "id": 2 + }, + "identifierValue": { + "type": "string", + "id": 3 + }, + "positiveIntValue": { + "type": "uint64", + "id": 4 + }, + "negativeIntValue": { + "type": "int64", + "id": 5 + }, + "doubleValue": { + "type": "double", + "id": 6 + }, + "stringValue": { + "type": "bytes", + "id": 7 + }, + "aggregateValue": { + "type": "string", + "id": 8 + } + }, + "nested": { + "NamePart": { + "fields": { + "namePart": { + "rule": "required", + "type": "string", + "id": 1 + }, + "isExtension": { + "rule": "required", + "type": "bool", + "id": 2 + } + } + } + } + }, + "SourceCodeInfo": { + "fields": { + "location": { + "rule": "repeated", + "type": "Location", + "id": 1 + } + }, + "nested": { + "Location": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "span": { + "rule": "repeated", + "type": "int32", + "id": 2 + }, + "leadingComments": { + "type": "string", + "id": 3 + }, + "trailingComments": { + "type": "string", + "id": 4 + }, + "leadingDetachedComments": { + "rule": "repeated", + "type": "string", + "id": 6 + } + } + } + } + }, + "GeneratedCodeInfo": { + "fields": { + "annotation": { + "rule": "repeated", + "type": "Annotation", + "id": 1 + } + }, + "nested": { + "Annotation": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "sourceFile": { + "type": "string", + "id": 2 + }, + "begin": { + "type": "int32", + "id": 3 + }, + "end": { + "type": "int32", + "id": 4 + }, + "semantic": { + "type": "Semantic", + "id": 5 + } + }, + "nested": { + "Semantic": { + "values": { + "NONE": 0, + "SET": 1, + "ALIAS": 2 + } + } + } + } + } + }, + "Timestamp": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + }, + "FieldMask": { + "fields": { + "paths": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, + "Empty": { + "fields": {} + } + } + } + } + } + } +} \ No newline at end of file diff --git a/packages/google-maps-mapsplatformdatasets/samples/README.md b/packages/google-maps-mapsplatformdatasets/samples/README.md new file mode 100644 index 000000000000..0a67c9c0e070 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/README.md @@ -0,0 +1,194 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Maps Platform Datasets API: Node.js Samples](https://github.com/googleapis/google-cloud-node) + +[![Open in Cloud Shell][shell_img]][shell_link] + + + +## Table of Contents + +* [Before you begin](#before-you-begin) +* [Samples](#samples) + * [Maps_platform_datasets_v1_alpha.create_dataset](#maps_platform_datasets_v1_alpha.create_dataset) + * [Maps_platform_datasets_v1_alpha.delete_dataset](#maps_platform_datasets_v1_alpha.delete_dataset) + * [Maps_platform_datasets_v1_alpha.delete_dataset_version](#maps_platform_datasets_v1_alpha.delete_dataset_version) + * [Maps_platform_datasets_v1_alpha.get_dataset](#maps_platform_datasets_v1_alpha.get_dataset) + * [Maps_platform_datasets_v1_alpha.list_dataset_versions](#maps_platform_datasets_v1_alpha.list_dataset_versions) + * [Maps_platform_datasets_v1_alpha.list_datasets](#maps_platform_datasets_v1_alpha.list_datasets) + * [Maps_platform_datasets_v1_alpha.update_dataset_metadata](#maps_platform_datasets_v1_alpha.update_dataset_metadata) + * [Quickstart](#quickstart) + * [Quickstart](#quickstart) + +## Before you begin + +Before running the samples, make sure you've followed the steps outlined in +[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library). + +`cd samples` + +`npm install` + +`cd ..` + +## Samples + + + +### Maps_platform_datasets_v1_alpha.create_dataset + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js` + + +----- + + + + +### Maps_platform_datasets_v1_alpha.delete_dataset + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js` + + +----- + + + + +### Maps_platform_datasets_v1_alpha.delete_dataset_version + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js` + + +----- + + + + +### Maps_platform_datasets_v1_alpha.get_dataset + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js` + + +----- + + + + +### Maps_platform_datasets_v1_alpha.list_dataset_versions + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js` + + +----- + + + + +### Maps_platform_datasets_v1_alpha.list_datasets + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js` + + +----- + + + + +### Maps_platform_datasets_v1_alpha.update_dataset_metadata + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js` + + +----- + + + + +### Quickstart + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/quickstart.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-mapsplatformdatasets/samples/quickstart.js` + + +----- + + + + +### Quickstart + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/test/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/test/quickstart.js,samples/README.md) + +__Usage:__ + + +`node packages/google-maps-mapsplatformdatasets/samples/test/quickstart.js` + + + + + + +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=samples/README.md +[product-docs]: diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js new file mode 100644 index 000000000000..05fa7c453499 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js @@ -0,0 +1,67 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, dataset) { + // [START mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_CreateDataset_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Parent project that will own the dataset. + * Format: projects/{$project_number} + */ + // const parent = 'abc123' + /** + * Required. The dataset version to create. + */ + // const dataset = {} + + // Imports the Mapsplatformdatasets library + const {MapsPlatformDatasetsV1AlphaClient} = require('@google-cloud/mapsplatformdatasets').v1alpha; + + // Instantiates a client + const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + + async function callCreateDataset() { + // Construct request + const request = { + parent, + dataset, + }; + + // Run request + const response = await mapsplatformdatasetsClient.createDataset(request); + console.log(response); + } + + callCreateDataset(); + // [END mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_CreateDataset_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js new file mode 100644 index 000000000000..20427db6d503 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js @@ -0,0 +1,66 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDataset_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Format: projects/${project}/datasets/{dataset_id} + */ + // const name = 'abc123' + /** + * If set to true, any dataset version for this dataset will also be deleted. + * (Otherwise, the request will only work if the dataset has no versions.) + */ + // const force = true + + // Imports the Mapsplatformdatasets library + const {MapsPlatformDatasetsV1AlphaClient} = require('@google-cloud/mapsplatformdatasets').v1alpha; + + // Instantiates a client + const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + + async function callDeleteDataset() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await mapsplatformdatasetsClient.deleteDataset(request); + console.log(response); + } + + callDeleteDataset(); + // [END mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDataset_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js new file mode 100644 index 000000000000..9d5855bc9486 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDatasetVersion_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Format: projects/${project}/datasets/{dataset_id}@{version-id} + */ + // const name = 'abc123' + + // Imports the Mapsplatformdatasets library + const {MapsPlatformDatasetsV1AlphaClient} = require('@google-cloud/mapsplatformdatasets').v1alpha; + + // Instantiates a client + const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + + async function callDeleteDatasetVersion() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await mapsplatformdatasetsClient.deleteDatasetVersion(request); + console.log(response); + } + + callDeleteDatasetVersion(); + // [END mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDatasetVersion_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js new file mode 100644 index 000000000000..4ac775ae5e64 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_GetDataset_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Resource name. Can also fetch a specified version + * projects/{project}/datasets/{dataset_id} + * projects/{project}/datasets/{dataset_id}@{version-id} + * In order to retrieve a previous version of the dataset, also provide + * the version ID. + * Example: projects/123/datasets/assisted-driving-preferences@c7cfa2a8 + */ + // const name = 'abc123' + /** + * If specified, will fetch the dataset details of the version published for + * the specified use case rather than the latest, if one exists. If a + * published version does not exist, will default to getting the dataset + * details of the latest version. + */ + // const publishedUsage = {} + + // Imports the Mapsplatformdatasets library + const {MapsPlatformDatasetsV1AlphaClient} = require('@google-cloud/mapsplatformdatasets').v1alpha; + + // Instantiates a client + const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + + async function callGetDataset() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await mapsplatformdatasetsClient.getDataset(request); + console.log(response); + } + + callGetDataset(); + // [END mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_GetDataset_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js new file mode 100644 index 000000000000..9ce71f20a984 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js @@ -0,0 +1,74 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasetVersions_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the dataset to list all the versions for. + */ + // const name = 'abc123' + /** + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 versions will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + // const pageSize = 1234 + /** + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + */ + // const pageToken = 'abc123' + + // Imports the Mapsplatformdatasets library + const {MapsPlatformDatasetsV1AlphaClient} = require('@google-cloud/mapsplatformdatasets').v1alpha; + + // Instantiates a client + const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + + async function callListDatasetVersions() { + // Construct request + const request = { + name, + }; + + // Run request + const iterable = await mapsplatformdatasetsClient.listDatasetVersionsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListDatasetVersions(); + // [END mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasetVersions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js new file mode 100644 index 000000000000..ede7bfce6c51 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js @@ -0,0 +1,74 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasets_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the project to list all the datasets for. + */ + // const parent = 'abc123' + /** + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 datasets will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + // const pageSize = 1234 + /** + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + */ + // const pageToken = 'abc123' + + // Imports the Mapsplatformdatasets library + const {MapsPlatformDatasetsV1AlphaClient} = require('@google-cloud/mapsplatformdatasets').v1alpha; + + // Instantiates a client + const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + + async function callListDatasets() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await mapsplatformdatasetsClient.listDatasetsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListDatasets(); + // [END mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasets_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js new file mode 100644 index 000000000000..92c89465f4f1 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js @@ -0,0 +1,68 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(dataset) { + // [START mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_UpdateDatasetMetadata_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The dataset to update. The dataset's name is used to identify the dataset + * to be updated. The name has the format: + * projects/{project}/datasets/{dataset_id} + */ + // const dataset = {} + /** + * The list of fields to be updated. Support the value "*" for full + * replacement. + */ + // const updateMask = {} + + // Imports the Mapsplatformdatasets library + const {MapsPlatformDatasetsV1AlphaClient} = require('@google-cloud/mapsplatformdatasets').v1alpha; + + // Instantiates a client + const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + + async function callUpdateDatasetMetadata() { + // Construct request + const request = { + dataset, + }; + + // Run request + const response = await mapsplatformdatasetsClient.updateDatasetMetadata(request); + console.log(response); + } + + callUpdateDatasetMetadata(); + // [END mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_UpdateDatasetMetadata_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata.google.maps.mapsplatformdatasets.v1alpha.json b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata.google.maps.mapsplatformdatasets.v1alpha.json new file mode 100644 index 000000000000..185ae899d324 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata.google.maps.mapsplatformdatasets.v1alpha.json @@ -0,0 +1,327 @@ +{ + "clientLibrary": { + "name": "nodejs-mapsplatformdatasets", + "version": "0.0.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.maps.mapsplatformdatasets.v1alpha", + "version": "v1alpha" + } + ] + }, + "snippets": [ + { + "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_CreateDataset_async", + "title": "MapsPlatformDatasetsV1Alpha createDataset Sample", + "origin": "API_DEFINITION", + "description": " Create a new dataset for the specified project.", + "canonical": true, + "file": "maps_platform_datasets_v1_alpha.create_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDataset", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.CreateDataset", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "dataset", + "type": ".google.maps.mapsplatformdatasets.v1alpha.Dataset" + } + ], + "resultType": ".google.maps.mapsplatformdatasets.v1alpha.Dataset", + "client": { + "shortName": "MapsPlatformDatasetsV1AlphaClient", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" + }, + "method": { + "shortName": "CreateDataset", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.CreateDataset", + "service": { + "shortName": "MapsPlatformDatasetsV1Alpha", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" + } + } + } + }, + { + "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_UpdateDatasetMetadata_async", + "title": "MapsPlatformDatasetsV1Alpha updateDatasetMetadata Sample", + "origin": "API_DEFINITION", + "description": " Update the metadata for the dataset. To update the data use: UploadDataset.", + "canonical": true, + "file": "maps_platform_datasets_v1_alpha.update_dataset_metadata.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDatasetMetadata", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.UpdateDatasetMetadata", + "async": true, + "parameters": [ + { + "name": "dataset", + "type": ".google.maps.mapsplatformdatasets.v1alpha.Dataset" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.maps.mapsplatformdatasets.v1alpha.Dataset", + "client": { + "shortName": "MapsPlatformDatasetsV1AlphaClient", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" + }, + "method": { + "shortName": "UpdateDatasetMetadata", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.UpdateDatasetMetadata", + "service": { + "shortName": "MapsPlatformDatasetsV1Alpha", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" + } + } + } + }, + { + "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_GetDataset_async", + "title": "MapsPlatformDatasetsV1Alpha getDataset Sample", + "origin": "API_DEFINITION", + "description": " Get the published or latest version of the dataset.", + "canonical": true, + "file": "maps_platform_datasets_v1_alpha.get_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataset", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.GetDataset", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "published_usage", + "type": ".google.maps.mapsplatformdatasets.v1alpha.Usage" + } + ], + "resultType": ".google.maps.mapsplatformdatasets.v1alpha.Dataset", + "client": { + "shortName": "MapsPlatformDatasetsV1AlphaClient", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" + }, + "method": { + "shortName": "GetDataset", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.GetDataset", + "service": { + "shortName": "MapsPlatformDatasetsV1Alpha", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" + } + } + } + }, + { + "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasetVersions_async", + "title": "MapsPlatformDatasetsV1Alpha listDatasetVersions Sample", + "origin": "API_DEFINITION", + "description": " List all the versions of a dataset.", + "canonical": true, + "file": "maps_platform_datasets_v1_alpha.list_dataset_versions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDatasetVersions", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasetVersions", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse", + "client": { + "shortName": "MapsPlatformDatasetsV1AlphaClient", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" + }, + "method": { + "shortName": "ListDatasetVersions", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasetVersions", + "service": { + "shortName": "MapsPlatformDatasetsV1Alpha", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" + } + } + } + }, + { + "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasets_async", + "title": "MapsPlatformDatasetsV1Alpha listDatasets Sample", + "origin": "API_DEFINITION", + "description": " List all the datasets for the specified project.", + "canonical": true, + "file": "maps_platform_datasets_v1_alpha.list_datasets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDatasets", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasets", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse", + "client": { + "shortName": "MapsPlatformDatasetsV1AlphaClient", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" + }, + "method": { + "shortName": "ListDatasets", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasets", + "service": { + "shortName": "MapsPlatformDatasetsV1Alpha", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" + } + } + } + }, + { + "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDataset_async", + "title": "MapsPlatformDatasetsV1Alpha deleteDataset Sample", + "origin": "API_DEFINITION", + "description": " Delete the specified dataset and optionally all its corresponding versions.", + "canonical": true, + "file": "maps_platform_datasets_v1_alpha.delete_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDataset", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDataset", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "force", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "MapsPlatformDatasetsV1AlphaClient", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" + }, + "method": { + "shortName": "DeleteDataset", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDataset", + "service": { + "shortName": "MapsPlatformDatasetsV1Alpha", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" + } + } + } + }, + { + "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDatasetVersion_async", + "title": "MapsPlatformDatasetsV1Alpha deleteDatasetVersion Sample", + "origin": "API_DEFINITION", + "description": " Delete a specific version of the dataset.", + "canonical": true, + "file": "maps_platform_datasets_v1_alpha.delete_dataset_version.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDatasetVersion", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDatasetVersion", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "MapsPlatformDatasetsV1AlphaClient", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" + }, + "method": { + "shortName": "DeleteDatasetVersion", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDatasetVersion", + "service": { + "shortName": "MapsPlatformDatasetsV1Alpha", + "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" + } + } + } + } + ] +} \ No newline at end of file diff --git a/packages/google-maps-mapsplatformdatasets/samples/package.json b/packages/google-maps-mapsplatformdatasets/samples/package.json new file mode 100644 index 000000000000..6a8712ec257c --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/package.json @@ -0,0 +1,24 @@ +{ + "name": "mapsplatformdatasets-samples", + "private": true, + "license": "Apache-2.0", + "author": "Google LLC", + "engines": { + "node": ">=12.0.0" + }, + "files": [ + "*.js" + ], + "scripts": { + "test": "c8 mocha --timeout 600000 test/*.js", + "publish": "echo 'sample test; do not publish'" + }, + "dependencies": { + "@googlemaps/maps-platform-datasets": "0.0.0" + }, + "devDependencies": { + "c8": "^7.1.0", + "chai": "^4.2.0", + "mocha": "^8.0.0" + } +} diff --git a/packages/google-maps-mapsplatformdatasets/samples/quickstart.js b/packages/google-maps-mapsplatformdatasets/samples/quickstart.js new file mode 100644 index 000000000000..eece7f785e23 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/quickstart.js @@ -0,0 +1,76 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +'use strict'; + +function main(parent) { + // [START mapsplatformdatasets_quickstart] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the project to list all the datasets for. + */ + // const parent = 'abc123' + /** + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 datasets will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + // const pageSize = 1234 + /** + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + */ + // const pageToken = 'abc123' + + // Imports the Mapsplatformdatasets library + const {MapsPlatformDatasetsV1AlphaClient} = + // eslint-disable-next-line node/no-missing-require + require('@googlemaps/maps-platform-datasets').v1alpha; + + // Instantiates a client + const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + + async function callListDataset() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await mapsplatformdatasetsClient.listDatasetsAsync( + request + ); + for await (const response of iterable) { + console.log(response); + } + } + + callListDataset(); + // [END mapsplatformdatasets_quickstart] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-maps-mapsplatformdatasets/samples/test/quickstart.js b/packages/google-maps-mapsplatformdatasets/samples/test/quickstart.js new file mode 100644 index 000000000000..8ffb2292d967 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/samples/test/quickstart.js @@ -0,0 +1,48 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const assert = require('assert'); +const path = require('path'); +const cp = require('child_process'); +const {describe, it} = require('mocha'); +// const {describe, it, before} = require('mocha'); +// // Imports the Mapsplatformdatasets library +// const {MapsPlatformDatasetsV1AlphaClient} = +// require('@google-cloud/mapsplatformdatasets').v1alpha; +// // Instantiates a client +// const mapsplatformdatasetsClient = new MapsPlatformDatasetsV1AlphaClient(); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const cwd = path.join(__dirname, '..'); + +describe('Quickstart', () => { + // let projectId; + + // before(async () => { + // projectId = await mapsplatformdatasetsClient.getProjectId(); + // }); + + it('should run quickstart', async () => { + // NOTE: This API does not yet support project ID (vs. just project number) + // We should use projectId once they do. b/266963679 + // DEVELOPER: change this to your project number when running locally. + const output = execSync('node ./quickstart.js projects/1046198160504', { + cwd, + }); + assert(output !== null); + }); +}); diff --git a/packages/google-maps-mapsplatformdatasets/src/index.ts b/packages/google-maps-mapsplatformdatasets/src/index.ts new file mode 100644 index 000000000000..d0a943d87732 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/src/index.ts @@ -0,0 +1,29 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** +// ** All changes to this file may be overwritten. ** + +import * as v1alpha from './v1alpha'; + +const MapsPlatformDatasetsV1AlphaClient = + v1alpha.MapsPlatformDatasetsV1AlphaClient; +type MapsPlatformDatasetsV1AlphaClient = + v1alpha.MapsPlatformDatasetsV1AlphaClient; + +export {v1alpha, MapsPlatformDatasetsV1AlphaClient}; +export default {v1alpha, MapsPlatformDatasetsV1AlphaClient}; +import * as protos from '../protos/protos'; +export {protos}; diff --git a/packages/google-maps-mapsplatformdatasets/src/v1alpha/gapic_metadata.json b/packages/google-maps-mapsplatformdatasets/src/v1alpha/gapic_metadata.json new file mode 100644 index 000000000000..9662e9ce6d6c --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/src/v1alpha/gapic_metadata.json @@ -0,0 +1,101 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "typescript", + "protoPackage": "google.maps.mapsplatformdatasets.v1alpha", + "libraryPackage": "@google-cloud/mapsplatformdatasets", + "services": { + "MapsPlatformDatasetsV1Alpha": { + "clients": { + "grpc": { + "libraryClient": "MapsPlatformDatasetsV1AlphaClient", + "rpcs": { + "CreateDataset": { + "methods": [ + "createDataset" + ] + }, + "UpdateDatasetMetadata": { + "methods": [ + "updateDatasetMetadata" + ] + }, + "GetDataset": { + "methods": [ + "getDataset" + ] + }, + "DeleteDataset": { + "methods": [ + "deleteDataset" + ] + }, + "DeleteDatasetVersion": { + "methods": [ + "deleteDatasetVersion" + ] + }, + "ListDatasetVersions": { + "methods": [ + "listDatasetVersions", + "listDatasetVersionsStream", + "listDatasetVersionsAsync" + ] + }, + "ListDatasets": { + "methods": [ + "listDatasets", + "listDatasetsStream", + "listDatasetsAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "MapsPlatformDatasetsV1AlphaClient", + "rpcs": { + "CreateDataset": { + "methods": [ + "createDataset" + ] + }, + "UpdateDatasetMetadata": { + "methods": [ + "updateDatasetMetadata" + ] + }, + "GetDataset": { + "methods": [ + "getDataset" + ] + }, + "DeleteDataset": { + "methods": [ + "deleteDataset" + ] + }, + "DeleteDatasetVersion": { + "methods": [ + "deleteDatasetVersion" + ] + }, + "ListDatasetVersions": { + "methods": [ + "listDatasetVersions", + "listDatasetVersionsStream", + "listDatasetVersionsAsync" + ] + }, + "ListDatasets": { + "methods": [ + "listDatasets", + "listDatasetsStream", + "listDatasetsAsync" + ] + } + } + } + } + } + } +} diff --git a/packages/google-maps-mapsplatformdatasets/src/v1alpha/index.ts b/packages/google-maps-mapsplatformdatasets/src/v1alpha/index.ts new file mode 100644 index 000000000000..a91f63ad8057 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/src/v1alpha/index.ts @@ -0,0 +1,19 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +export {MapsPlatformDatasetsV1AlphaClient} from './maps_platform_datasets_v1_alpha_client'; diff --git a/packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_client.ts b/packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_client.ts new file mode 100644 index 000000000000..22512f7e05eb --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_client.ts @@ -0,0 +1,1304 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + PaginationCallback, + GaxCall, +} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1alpha/maps_platform_datasets_v1_alpha_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './maps_platform_datasets_v1_alpha_client_config.json'; +const version = require('../../../package.json').version; + +/** + * Service definition for the Maps Platform Datasets API. + * @class + * @memberof v1alpha + */ +export class MapsPlatformDatasetsV1AlphaClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + pathTemplates: {[name: string]: gax.PathTemplate}; + mapsPlatformDatasetsV1AlphaStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of MapsPlatformDatasetsV1AlphaClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new MapsPlatformDatasetsV1AlphaClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this + .constructor as typeof MapsPlatformDatasetsV1AlphaClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + datasetPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/datasets/{dataset}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listDatasetVersions: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'datasets' + ), + listDatasets: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'datasets' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.mapsPlatformDatasetsV1AlphaStub) { + return this.mapsPlatformDatasetsV1AlphaStub; + } + + // Put together the "service stub" for + // google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha. + this.mapsPlatformDatasetsV1AlphaStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.maps.mapsplatformdatasets.v1alpha + .MapsPlatformDatasetsV1Alpha, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const mapsPlatformDatasetsV1AlphaStubMethods = [ + 'createDataset', + 'updateDatasetMetadata', + 'getDataset', + 'listDatasetVersions', + 'listDatasets', + 'deleteDataset', + 'deleteDatasetVersion', + ]; + for (const methodName of mapsPlatformDatasetsV1AlphaStubMethods) { + const callPromise = this.mapsPlatformDatasetsV1AlphaStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = this.descriptors.page[methodName] || undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.mapsPlatformDatasetsV1AlphaStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'mapsplatformdatasets.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'mapsplatformdatasets.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Create a new dataset for the specified project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Parent project that will own the dataset. + * Format: projects/{$project_number} + * @param {google.maps.mapsplatformdatasets.v1alpha.Dataset} request.dataset + * Required. The dataset version to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Dataset]{@link google.maps.mapsplatformdatasets.v1alpha.Dataset}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/maps_platform_datasets_v1_alpha.create_dataset.js + * region_tag:mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_CreateDataset_async + */ + createDataset( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest, + options?: CallOptions + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest + | undefined + ), + {} | undefined + ] + >; + createDataset( + request: protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest, + options: CallOptions, + callback: Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createDataset( + request: protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest, + callback: Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createDataset( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.ICreateDatasetRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createDataset(request, options, callback); + } + /** + * Update the metadata for the dataset. To update the data use: UploadDataset. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.maps.mapsplatformdatasets.v1alpha.Dataset} request.dataset + * Required. The dataset to update. The dataset's name is used to identify the dataset + * to be updated. The name has the format: + * projects/{project}/datasets/{dataset_id} + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. Support the value "*" for full + * replacement. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Dataset]{@link google.maps.mapsplatformdatasets.v1alpha.Dataset}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/maps_platform_datasets_v1_alpha.update_dataset_metadata.js + * region_tag:mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_UpdateDatasetMetadata_async + */ + updateDatasetMetadata( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest, + options?: CallOptions + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest + | undefined + ), + {} | undefined + ] + >; + updateDatasetMetadata( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest, + options: CallOptions, + callback: Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDatasetMetadata( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest, + callback: Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateDatasetMetadata( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.IUpdateDatasetMetadataRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'dataset.name': request.dataset!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateDatasetMetadata(request, options, callback); + } + /** + * Get the published or latest version of the dataset. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Resource name. Can also fetch a specified version + * projects/{project}/datasets/{dataset_id} + * projects/{project}/datasets/{dataset_id}@{version-id} + * + * In order to retrieve a previous version of the dataset, also provide + * the version ID. + * Example: projects/123/datasets/assisted-driving-preferences@c7cfa2a8 + * @param {google.maps.mapsplatformdatasets.v1alpha.Usage} request.publishedUsage + * If specified, will fetch the dataset details of the version published for + * the specified use case rather than the latest, if one exists. If a + * published version does not exist, will default to getting the dataset + * details of the latest version. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Dataset]{@link google.maps.mapsplatformdatasets.v1alpha.Dataset}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/maps_platform_datasets_v1_alpha.get_dataset.js + * region_tag:mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_GetDataset_async + */ + getDataset( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest, + options?: CallOptions + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest + | undefined + ), + {} | undefined + ] + >; + getDataset( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest, + options: CallOptions, + callback: Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataset( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest, + callback: Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDataset( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + | protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.IGetDatasetRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getDataset(request, options, callback); + } + /** + * Delete the specified dataset and optionally all its corresponding + * versions. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Format: projects/${project}/datasets/{dataset_id} + * @param {boolean} request.force + * If set to true, any dataset version for this dataset will also be deleted. + * (Otherwise, the request will only work if the dataset has no versions.) + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset.js + * region_tag:mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDataset_async + */ + deleteDataset( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest + | undefined + ), + {} | undefined + ] + >; + deleteDataset( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDataset( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDataset( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteDataset(request, options, callback); + } + /** + * Delete a specific version of the dataset. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Format: projects/${project}/datasets/{dataset_id}@{version-id} + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/maps_platform_datasets_v1_alpha.delete_dataset_version.js + * region_tag:mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDatasetVersion_async + */ + deleteDatasetVersion( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest + | undefined + ), + {} | undefined + ] + >; + deleteDatasetVersion( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDatasetVersion( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDatasetVersion( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.maps.mapsplatformdatasets.v1alpha.IDeleteDatasetVersionRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteDatasetVersion(request, options, callback); + } + + /** + * List all the versions of a dataset. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the dataset to list all the versions for. + * @param {number} request.pageSize + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 versions will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string} request.pageToken + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Dataset]{@link google.maps.mapsplatformdatasets.v1alpha.Dataset}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDatasetVersionsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDatasetVersions( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[], + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest | null, + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse + ] + >; + listDatasetVersions( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + | protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse + | null + | undefined, + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset + > + ): void; + listDatasetVersions( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + callback: PaginationCallback< + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + | protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse + | null + | undefined, + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset + > + ): void; + listDatasetVersions( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + | protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse + | null + | undefined, + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset + >, + callback?: PaginationCallback< + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + | protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse + | null + | undefined, + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset + > + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[], + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest | null, + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.listDatasetVersions(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the dataset to list all the versions for. + * @param {number} request.pageSize + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 versions will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string} request.pageToken + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Dataset]{@link google.maps.mapsplatformdatasets.v1alpha.Dataset} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDatasetVersionsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDatasetVersionsStream( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + const defaultCallSettings = this._defaults['listDatasetVersions']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDatasetVersions.createStream( + this.innerApiCalls.listDatasetVersions as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDatasetVersions`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the dataset to list all the versions for. + * @param {number} request.pageSize + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 versions will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string} request.pageToken + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Dataset]{@link google.maps.mapsplatformdatasets.v1alpha.Dataset}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_dataset_versions.js + * region_tag:mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasetVersions_async + */ + listDatasetVersionsAsync( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetVersionsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + const defaultCallSettings = this._defaults['listDatasetVersions']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDatasetVersions.asyncIterate( + this.innerApiCalls['listDatasetVersions'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * List all the datasets for the specified project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the project to list all the datasets for. + * @param {number} request.pageSize + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 datasets will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string} request.pageToken + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Dataset]{@link google.maps.mapsplatformdatasets.v1alpha.Dataset}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDatasetsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDatasets( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[], + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest | null, + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse + ] + >; + listDatasets( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + | protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse + | null + | undefined, + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset + > + ): void; + listDatasets( + request: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + callback: PaginationCallback< + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + | protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse + | null + | undefined, + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset + > + ): void; + listDatasets( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + | protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse + | null + | undefined, + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset + >, + callback?: PaginationCallback< + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + | protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse + | null + | undefined, + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset + > + ): Promise< + [ + protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[], + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest | null, + protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listDatasets(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the project to list all the datasets for. + * @param {number} request.pageSize + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 datasets will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string} request.pageToken + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Dataset]{@link google.maps.mapsplatformdatasets.v1alpha.Dataset} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDatasetsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDatasetsStream( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listDatasets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDatasets.createStream( + this.innerApiCalls.listDatasets as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDatasets`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the project to list all the datasets for. + * @param {number} request.pageSize + * The maximum number of versions to return per page. + * If unspecified (or zero), at most 1000 datasets will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string} request.pageToken + * The page token, received from a previous GetDatasetVersions call. + * Provide this to retrieve the subsequent page. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Dataset]{@link google.maps.mapsplatformdatasets.v1alpha.Dataset}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/maps_platform_datasets_v1_alpha.list_datasets.js + * region_tag:mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasets_async + */ + listDatasetsAsync( + request?: protos.google.maps.mapsplatformdatasets.v1alpha.IListDatasetsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listDatasets']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDatasets.asyncIterate( + this.innerApiCalls['listDatasets'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified dataset resource name string. + * + * @param {string} project + * @param {string} dataset + * @returns {string} Resource name string. + */ + datasetPath(project: string, dataset: string) { + return this.pathTemplates.datasetPathTemplate.render({ + project: project, + dataset: dataset, + }); + } + + /** + * Parse the project from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).project; + } + + /** + * Parse the dataset from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).dataset; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.mapsPlatformDatasetsV1AlphaStub && !this._terminated) { + return this.mapsPlatformDatasetsV1AlphaStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_client_config.json b/packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_client_config.json new file mode 100644 index 000000000000..9e8456f41a61 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_client_config.json @@ -0,0 +1,72 @@ +{ + "interfaces": { + "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "unavailable": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + }, + "ce5b960a6ed052e690863808e4f0deff3dc7d49f": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateDataset": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateDatasetMetadata": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetDataset": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "ListDatasetVersions": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "ListDatasets": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "DeleteDataset": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteDatasetVersion": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_proto_list.json b/packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_proto_list.json new file mode 100644 index 000000000000..07d014af0bc2 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/src/v1alpha/maps_platform_datasets_v1_alpha_proto_list.json @@ -0,0 +1,6 @@ +[ + "../../protos/google/maps/mapsplatformdatasets/v1alpha/data_source.proto", + "../../protos/google/maps/mapsplatformdatasets/v1alpha/dataset.proto", + "../../protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto", + "../../protos/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets_alpha_service.proto" +] diff --git a/packages/google-maps-mapsplatformdatasets/system-test/fixtures/sample/src/index.js b/packages/google-maps-mapsplatformdatasets/system-test/fixtures/sample/src/index.js new file mode 100644 index 000000000000..21496414c8b7 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/system-test/fixtures/sample/src/index.js @@ -0,0 +1,27 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* eslint-disable node/no-missing-require, no-unused-vars */ +const mapsplatformdatasets = require('@googlemaps/maps-platform-datasets'); + +function main() { + const mapsPlatformDatasetsV1AlphaClient = + new mapsplatformdatasets.MapsPlatformDatasetsV1AlphaClient(); +} + +main(); diff --git a/packages/google-maps-mapsplatformdatasets/system-test/fixtures/sample/src/index.ts b/packages/google-maps-mapsplatformdatasets/system-test/fixtures/sample/src/index.ts new file mode 100644 index 000000000000..2afb5fc8ee1d --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/system-test/fixtures/sample/src/index.ts @@ -0,0 +1,37 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import {MapsPlatformDatasetsV1AlphaClient} from '@googlemaps/maps-platform-datasets'; + +// check that the client class type name can be used +function doStuffWithMapsPlatformDatasetsV1AlphaClient( + client: MapsPlatformDatasetsV1AlphaClient +) { + client.close(); +} + +function main() { + // check that the client instance can be created + const mapsPlatformDatasetsV1AlphaClient = + new MapsPlatformDatasetsV1AlphaClient(); + doStuffWithMapsPlatformDatasetsV1AlphaClient( + mapsPlatformDatasetsV1AlphaClient + ); +} + +main(); diff --git a/packages/google-maps-mapsplatformdatasets/system-test/install.ts b/packages/google-maps-mapsplatformdatasets/system-test/install.ts new file mode 100644 index 000000000000..f61fe236476b --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/system-test/install.ts @@ -0,0 +1,51 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import {packNTest} from 'pack-n-play'; +import {readFileSync} from 'fs'; +import {describe, it} from 'mocha'; + +describe('📦 pack-n-play test', () => { + it('TypeScript code', async function () { + this.timeout(300000); + const options = { + packageDir: process.cwd(), + sample: { + description: 'TypeScript user can use the type definitions', + ts: readFileSync( + './system-test/fixtures/sample/src/index.ts' + ).toString(), + }, + }; + await packNTest(options); + }); + + it('JavaScript code', async function () { + this.timeout(300000); + const options = { + packageDir: process.cwd(), + sample: { + description: 'JavaScript user can use the library', + ts: readFileSync( + './system-test/fixtures/sample/src/index.js' + ).toString(), + }, + }; + await packNTest(options); + }); +}); diff --git a/packages/google-maps-mapsplatformdatasets/test/gapic_maps_platform_datasets_v1_alpha_v1alpha.ts b/packages/google-maps-mapsplatformdatasets/test/gapic_maps_platform_datasets_v1_alpha_v1alpha.ts new file mode 100644 index 000000000000..a37704434c45 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/test/gapic_maps_platform_datasets_v1_alpha_v1alpha.ts @@ -0,0 +1,1743 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as mapsplatformdatasetsv1alphaModule from '../src'; + +import {PassThrough} from 'stream'; + +import {protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1alpha.MapsPlatformDatasetsV1AlphaClient', () => { + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + mapsplatformdatasetsv1alphaModule.v1alpha + .MapsPlatformDatasetsV1AlphaClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + mapsplatformdatasetsv1alphaModule.v1alpha + .MapsPlatformDatasetsV1AlphaClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = + mapsplatformdatasetsv1alphaModule.v1alpha + .MapsPlatformDatasetsV1AlphaClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + fallback: true, + } + ); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.mapsPlatformDatasetsV1AlphaStub, undefined); + await client.initialize(); + assert(client.mapsPlatformDatasetsV1AlphaStub); + }); + + it('has close method for the initialized client', done => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.mapsPlatformDatasetsV1AlphaStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.mapsPlatformDatasetsV1AlphaStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('createDataset', () => { + it('invokes createDataset without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ); + client.innerApiCalls.createDataset = stubSimpleCall(expectedResponse); + const [response] = await client.createDataset(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createDataset as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDataset as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createDataset without error using callback', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ); + client.innerApiCalls.createDataset = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createDataset( + request, + ( + err?: Error | null, + result?: protos.google.maps.mapsplatformdatasets.v1alpha.IDataset | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createDataset as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDataset as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createDataset with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createDataset = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createDataset(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createDataset as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDataset as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createDataset with closed client', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.CreateDatasetRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createDataset(request), expectedError); + }); + }); + + describe('updateDatasetMetadata', () => { + it('invokes updateDatasetMetadata without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest() + ); + request.dataset ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest', + ['dataset', 'name'] + ); + request.dataset.name = defaultValue1; + const expectedHeaderRequestParams = `dataset.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ); + client.innerApiCalls.updateDatasetMetadata = + stubSimpleCall(expectedResponse); + const [response] = await client.updateDatasetMetadata(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateDatasetMetadata as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDatasetMetadata as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateDatasetMetadata without error using callback', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest() + ); + request.dataset ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest', + ['dataset', 'name'] + ); + request.dataset.name = defaultValue1; + const expectedHeaderRequestParams = `dataset.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ); + client.innerApiCalls.updateDatasetMetadata = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateDatasetMetadata( + request, + ( + err?: Error | null, + result?: protos.google.maps.mapsplatformdatasets.v1alpha.IDataset | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateDatasetMetadata as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDatasetMetadata as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateDatasetMetadata with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest() + ); + request.dataset ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest', + ['dataset', 'name'] + ); + request.dataset.name = defaultValue1; + const expectedHeaderRequestParams = `dataset.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateDatasetMetadata = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateDatasetMetadata(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateDatasetMetadata as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateDatasetMetadata as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateDatasetMetadata with closed client', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest() + ); + request.dataset ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.UpdateDatasetMetadataRequest', + ['dataset', 'name'] + ); + request.dataset.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateDatasetMetadata(request), + expectedError + ); + }); + }); + + describe('getDataset', () => { + it('invokes getDataset without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ); + client.innerApiCalls.getDataset = stubSimpleCall(expectedResponse); + const [response] = await client.getDataset(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getDataset as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataset as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getDataset without error using callback', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ); + client.innerApiCalls.getDataset = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getDataset( + request, + ( + err?: Error | null, + result?: protos.google.maps.mapsplatformdatasets.v1alpha.IDataset | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getDataset as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataset as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getDataset with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getDataset = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getDataset(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getDataset as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDataset as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getDataset with closed client', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.GetDatasetRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getDataset(request), expectedError); + }); + }); + + describe('deleteDataset', () => { + it('invokes deleteDataset without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDataset = stubSimpleCall(expectedResponse); + const [response] = await client.deleteDataset(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteDataset as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDataset as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteDataset without error using callback', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDataset = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteDataset( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteDataset as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDataset as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteDataset with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteDataset = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteDataset(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteDataset as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDataset as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteDataset with closed client', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteDataset(request), expectedError); + }); + }); + + describe('deleteDatasetVersion', () => { + it('invokes deleteDatasetVersion without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDatasetVersion = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteDatasetVersion(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteDatasetVersion as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDatasetVersion as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteDatasetVersion without error using callback', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDatasetVersion = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteDatasetVersion( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteDatasetVersion as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDatasetVersion as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteDatasetVersion with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteDatasetVersion = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteDatasetVersion(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteDatasetVersion as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDatasetVersion as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteDatasetVersion with closed client', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.DeleteDatasetVersionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteDatasetVersion(request), expectedError); + }); + }); + + describe('listDatasetVersions', () => { + it('invokes listDatasetVersions without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + ]; + client.innerApiCalls.listDatasetVersions = + stubSimpleCall(expectedResponse); + const [response] = await client.listDatasetVersions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDatasetVersions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDatasetVersions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDatasetVersions without error using callback', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + ]; + client.innerApiCalls.listDatasetVersions = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDatasetVersions( + request, + ( + err?: Error | null, + result?: + | protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDatasetVersions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDatasetVersions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDatasetVersions with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listDatasetVersions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listDatasetVersions(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listDatasetVersions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDatasetVersions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDatasetVersionsStream without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + ]; + client.descriptors.page.listDatasetVersions.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listDatasetVersionsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.maps.mapsplatformdatasets.v1alpha.Dataset[] = + []; + stream.on( + 'data', + ( + response: protos.google.maps.mapsplatformdatasets.v1alpha.Dataset + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listDatasetVersions.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDatasetVersions, request) + ); + assert( + (client.descriptors.page.listDatasetVersions.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listDatasetVersionsStream with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDatasetVersions.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listDatasetVersionsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.maps.mapsplatformdatasets.v1alpha.Dataset[] = + []; + stream.on( + 'data', + ( + response: protos.google.maps.mapsplatformdatasets.v1alpha.Dataset + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listDatasetVersions.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDatasetVersions, request) + ); + assert( + (client.descriptors.page.listDatasetVersions.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDatasetVersions without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + ]; + client.descriptors.page.listDatasetVersions.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[] = + []; + const iterable = client.listDatasetVersionsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listDatasetVersions.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDatasetVersions.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDatasetVersions with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDatasetVersions.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDatasetVersionsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listDatasetVersions.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDatasetVersions.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listDatasets', () => { + it('invokes listDatasets without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + ]; + client.innerApiCalls.listDatasets = stubSimpleCall(expectedResponse); + const [response] = await client.listDatasets(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDatasets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDatasets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDatasets without error using callback', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + ]; + client.innerApiCalls.listDatasets = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDatasets( + request, + ( + err?: Error | null, + result?: + | protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDatasets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDatasets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDatasets with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listDatasets = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listDatasets(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listDatasets as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDatasets as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDatasetsStream without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + ]; + client.descriptors.page.listDatasets.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listDatasetsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.maps.mapsplatformdatasets.v1alpha.Dataset[] = + []; + stream.on( + 'data', + ( + response: protos.google.maps.mapsplatformdatasets.v1alpha.Dataset + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listDatasets.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDatasets, request) + ); + assert( + (client.descriptors.page.listDatasets.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listDatasetsStream with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDatasets.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listDatasetsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.maps.mapsplatformdatasets.v1alpha.Dataset[] = + []; + stream.on( + 'data', + ( + response: protos.google.maps.mapsplatformdatasets.v1alpha.Dataset + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listDatasets.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDatasets, request) + ); + assert( + (client.descriptors.page.listDatasets.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDatasets without error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.Dataset() + ), + ]; + client.descriptors.page.listDatasets.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[] = + []; + const iterable = client.listDatasetsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listDatasets.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDatasets.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDatasets with error', async () => { + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.maps.mapsplatformdatasets.v1alpha.ListDatasetsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDatasets.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDatasetsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.maps.mapsplatformdatasets.v1alpha.IDataset[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listDatasets.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDatasets.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('Path templates', () => { + describe('dataset', () => { + const fakePath = '/rendered/path/dataset'; + const expectedParameters = { + project: 'projectValue', + dataset: 'datasetValue', + }; + const client = + new mapsplatformdatasetsv1alphaModule.v1alpha.MapsPlatformDatasetsV1AlphaClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.datasetPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetPath', () => { + const result = client.datasetPath('projectValue', 'datasetValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetName', () => { + const result = client.matchProjectFromDatasetName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetName', () => { + const result = client.matchDatasetFromDatasetName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); diff --git a/packages/google-maps-mapsplatformdatasets/tsconfig.json b/packages/google-maps-mapsplatformdatasets/tsconfig.json new file mode 100644 index 000000000000..c78f1c884ef6 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "./node_modules/gts/tsconfig-google.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build", + "resolveJsonModule": true, + "lib": [ + "es2018", + "dom" + ] + }, + "include": [ + "src/*.ts", + "src/**/*.ts", + "test/*.ts", + "test/**/*.ts", + "system-test/*.ts" + ] +} diff --git a/packages/google-maps-mapsplatformdatasets/webpack.config.js b/packages/google-maps-mapsplatformdatasets/webpack.config.js new file mode 100644 index 000000000000..afe735f02762 --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/webpack.config.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +const path = require('path'); + +module.exports = { + entry: './src/index.ts', + output: { + library: 'MapsPlatformDatasetsV1Alpha', + filename: './maps-platform-datasets-v1-alpha.js', + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + resolve: { + alias: { + '../../../package.json': path.resolve(__dirname, 'package.json'), + }, + extensions: ['.js', '.json', '.ts'], + }, + module: { + rules: [ + { + test: /\.tsx?$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + { + test: /node_modules[\\/]@grpc[\\/]grpc-js/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]grpc/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]retry-request/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]https?-proxy-agent/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]gtoken/, + use: 'null-loader', + }, + ], + }, + mode: 'production', +}; diff --git a/release-please-config.json b/release-please-config.json index 20a4c4dd9886..b1826c39901c 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -129,6 +129,7 @@ "packages/google-storagetransfer": {}, "packages/grafeas": {}, "packages/typeless-sample-bot": {}, + "packages/google-maps-mapsplatformdatasets": {}, "packages/google-cloud-datacatalog-lineage": {} }, "plugins": [ From fa12e5db80735e93b0434b1eb3ab4b814058db96 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 16:04:30 -0800 Subject: [PATCH 18/38] chore: [Many APIs] update import paths for Go targets to match open source location (#3935) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update import paths for Go targets to match open source location chore: update go_package in protos to match open source location chore: add explicit release levels to Go gapic targets PiperOrigin-RevId: 506711567 Source-Link: https://github.com/googleapis/googleapis/commit/d02e58244db5d01607ec2ad52a47e7edce8612f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7f1c54153125eb5abd60a32de58cfda6a798a70a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3JldG1hbmFnZXIvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5LXByaXZhdGVjYS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5LXB1YmxpY2NhLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVyLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2VkaXJlY3RvcnkvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNoZWxsLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRhbGVudC8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRhc2tzLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRleHR0b3NwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRyYW5zbGF0ZS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvLWxpdmVzdHJlYW0vLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvLXN0aXRjaGVyLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvLXRyYW5zY29kZXIvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvaW50ZWxsaWdlbmNlLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpc2lvbi8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZtbWlncmF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZtd2FyZWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZwY2FjY2Vzcy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXdlYnJpc2svLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../cloud/secretmanager/v1/resources.proto | 2 +- .../cloud/secretmanager/v1/service.proto | 2 +- .../protos/protos.json | 2 +- .../security/privateca/v1/resources.proto | 2 +- .../cloud/security/privateca/v1/service.proto | 2 +- .../privateca/v1beta1/resources.proto | 2 +- .../security/privateca/v1beta1/service.proto | 2 +- .../protos/protos.json | 4 +- .../security/publicca/v1beta1/resources.proto | 2 +- .../security/publicca/v1beta1/service.proto | 2 +- .../protos/protos.json | 2 +- .../cloud/securitycenter/v1/access.proto | 15 +- .../cloud/securitycenter/v1/asset.proto | 2 +- .../securitycenter/v1/bigquery_export.proto | 2 +- .../cloud/securitycenter/v1/compliance.proto | 2 +- .../cloud/securitycenter/v1/connection.proto | 2 +- .../securitycenter/v1/contact_details.proto | 2 +- .../cloud/securitycenter/v1/container.proto | 2 +- .../cloud/securitycenter/v1/database.proto | 2 +- .../securitycenter/v1/exfiltration.proto | 2 +- .../securitycenter/v1/external_system.proto | 11 +- .../google/cloud/securitycenter/v1/file.proto | 2 +- .../cloud/securitycenter/v1/finding.proto | 8 +- .../cloud/securitycenter/v1/folder.proto | 2 +- .../cloud/securitycenter/v1/iam_binding.proto | 2 +- .../cloud/securitycenter/v1/indicator.proto | 2 +- .../securitycenter/v1/kernel_rootkit.proto | 2 +- .../cloud/securitycenter/v1/kubernetes.proto | 2 +- .../cloud/securitycenter/v1/label.proto | 2 +- .../securitycenter/v1/mitre_attack.proto | 2 +- .../cloud/securitycenter/v1/mute_config.proto | 2 +- .../v1/notification_config.proto | 6 +- .../v1/notification_message.proto | 2 +- .../v1/organization_settings.proto | 2 +- .../cloud/securitycenter/v1/process.proto | 2 +- .../cloud/securitycenter/v1/resource.proto | 2 +- .../v1/run_asset_discovery_response.proto | 2 +- .../securitycenter/v1/security_marks.proto | 2 +- .../v1/securitycenter_service.proto | 58 +-- .../cloud/securitycenter/v1/source.proto | 2 +- .../securitycenter/v1/vulnerability.proto | 2 +- .../cloud/securitycenter/v1beta1/asset.proto | 2 +- .../securitycenter/v1beta1/finding.proto | 2 +- .../v1beta1/organization_settings.proto | 2 +- .../run_asset_discovery_response.proto | 2 +- .../v1beta1/security_marks.proto | 2 +- .../v1beta1/securitycenter_service.proto | 2 +- .../cloud/securitycenter/v1beta1/source.proto | 2 +- .../securitycenter/v1p1beta1/asset.proto | 2 +- .../securitycenter/v1p1beta1/finding.proto | 2 +- .../securitycenter/v1p1beta1/folder.proto | 2 +- .../v1p1beta1/notification_config.proto | 2 +- .../v1p1beta1/notification_message.proto | 2 +- .../v1p1beta1/organization_settings.proto | 2 +- .../securitycenter/v1p1beta1/resource.proto | 2 +- .../run_asset_discovery_response.proto | 2 +- .../v1p1beta1/security_marks.proto | 2 +- .../v1p1beta1/securitycenter_service.proto | 2 +- .../securitycenter/v1p1beta1/source.proto | 2 +- .../protos/protos.d.ts | 157 +++++++ .../protos/protos.js | 439 ++++++++++++++++++ .../protos/protos.json | 54 ++- ...security_center.create_big_query_export.js | 6 +- ...urity_center.create_notification_config.js | 4 +- ...security_center.delete_big_query_export.js | 2 +- ...urity_center.delete_notification_config.js | 4 +- .../security_center.get_big_query_export.js | 2 +- ...security_center.get_notification_config.js | 4 +- ...curity_center.list_notification_configs.js | 6 +- .../v1/security_center.set_finding_state.js | 10 +- .../generated/v1/security_center.set_mute.js | 6 +- ...tadata.google.cloud.securitycenter.v1.json | 12 +- .../src/v1/security_center_client.ts | 62 +-- .../src/v1/security_center_proto_list.json | 1 + .../cloud/servicedirectory/v1/endpoint.proto | 2 +- .../servicedirectory/v1/lookup_service.proto | 2 +- .../cloud/servicedirectory/v1/namespace.proto | 2 +- .../v1/registration_service.proto | 2 +- .../cloud/servicedirectory/v1/service.proto | 2 +- .../servicedirectory/v1beta1/endpoint.proto | 2 +- .../v1beta1/lookup_service.proto | 2 +- .../servicedirectory/v1beta1/namespace.proto | 2 +- .../v1beta1/registration_service.proto | 2 +- .../servicedirectory/v1beta1/service.proto | 2 +- .../protos/protos.json | 4 +- .../google/cloud/shell/v1/cloudshell.proto | 2 +- .../google-cloud-shell/protos/protos.json | 2 +- .../google/cloud/talent/v4/common.proto | 2 +- .../google/cloud/talent/v4/company.proto | 2 +- .../cloud/talent/v4/company_service.proto | 2 +- .../cloud/talent/v4/completion_service.proto | 2 +- .../protos/google/cloud/talent/v4/event.proto | 2 +- .../cloud/talent/v4/event_service.proto | 2 +- .../google/cloud/talent/v4/filters.proto | 2 +- .../google/cloud/talent/v4/histogram.proto | 2 +- .../protos/google/cloud/talent/v4/job.proto | 2 +- .../google/cloud/talent/v4/job_service.proto | 2 +- .../google/cloud/talent/v4/tenant.proto | 2 +- .../cloud/talent/v4/tenant_service.proto | 2 +- .../google/cloud/talent/v4beta1/batch.proto | 2 +- .../google/cloud/talent/v4beta1/common.proto | 2 +- .../google/cloud/talent/v4beta1/company.proto | 2 +- .../talent/v4beta1/company_service.proto | 2 +- .../talent/v4beta1/completion_service.proto | 2 +- .../google/cloud/talent/v4beta1/event.proto | 2 +- .../cloud/talent/v4beta1/event_service.proto | 2 +- .../google/cloud/talent/v4beta1/filters.proto | 2 +- .../cloud/talent/v4beta1/histogram.proto | 2 +- .../google/cloud/talent/v4beta1/job.proto | 2 +- .../cloud/talent/v4beta1/job_service.proto | 2 +- .../google/cloud/talent/v4beta1/tenant.proto | 2 +- .../cloud/talent/v4beta1/tenant_service.proto | 2 +- .../google-cloud-talent/protos/protos.json | 4 +- .../google/cloud/tasks/v2/cloudtasks.proto | 2 +- .../protos/google/cloud/tasks/v2/queue.proto | 2 +- .../protos/google/cloud/tasks/v2/target.proto | 2 +- .../protos/google/cloud/tasks/v2/task.proto | 2 +- .../cloud/tasks/v2beta2/cloudtasks.proto | 2 +- .../google/cloud/tasks/v2beta2/queue.proto | 2 +- .../google/cloud/tasks/v2beta2/target.proto | 2 +- .../google/cloud/tasks/v2beta2/task.proto | 2 +- .../cloud/tasks/v2beta3/cloudtasks.proto | 2 +- .../google/cloud/tasks/v2beta3/queue.proto | 2 +- .../google/cloud/tasks/v2beta3/target.proto | 2 +- .../google/cloud/tasks/v2beta3/task.proto | 2 +- .../google-cloud-tasks/protos/protos.json | 6 +- .../src/v2/cloud_tasks_client_config.json | 8 +- .../v2beta2/cloud_tasks_client_config.json | 8 +- .../v2beta3/cloud_tasks_client_config.json | 8 +- .../cloud/texttospeech/v1/cloud_tts.proto | 2 +- .../cloud/texttospeech/v1/cloud_tts_lrs.proto | 2 +- .../texttospeech/v1beta1/cloud_tts.proto | 2 +- .../texttospeech/v1beta1/cloud_tts_lrs.proto | 2 +- .../protos/protos.json | 4 +- .../google/cloud/tpu/v1/cloud_tpu.proto | 2 +- .../google/cloud/tpu/v2/cloud_tpu.proto | 2 +- .../google/cloud/tpu/v2alpha1/cloud_tpu.proto | 2 +- packages/google-cloud-tpu/protos/protos.json | 6 +- .../translate/v3/translation_service.proto | 2 +- .../v3beta1/translation_service.proto | 2 +- .../google-cloud-translate/protos/protos.json | 4 +- .../cloud/video/livestream/v1/outputs.proto | 2 +- .../cloud/video/livestream/v1/resources.proto | 2 +- .../cloud/video/livestream/v1/service.proto | 2 +- .../protos/protos.json | 2 +- .../video/stitcher/v1/ad_tag_details.proto | 2 +- .../cloud/video/stitcher/v1/cdn_keys.proto | 2 +- .../cloud/video/stitcher/v1/companions.proto | 2 +- .../cloud/video/stitcher/v1/events.proto | 2 +- .../cloud/video/stitcher/v1/sessions.proto | 2 +- .../cloud/video/stitcher/v1/slates.proto | 2 +- .../video/stitcher/v1/stitch_details.proto | 2 +- .../stitcher/v1/video_stitcher_service.proto | 2 +- .../protos/protos.json | 2 +- .../cloud/video/transcoder/v1/resources.proto | 2 +- .../cloud/video/transcoder/v1/services.proto | 2 +- .../protos/protos.json | 2 +- .../v1/video_intelligence.proto | 2 +- .../v1beta2/video_intelligence.proto | 2 +- .../v1p1beta1/video_intelligence.proto | 2 +- .../v1p2beta1/video_intelligence.proto | 2 +- .../v1p3beta1/video_intelligence.proto | 2 +- .../protos/protos.json | 10 +- ...aming_video_intelligence_service_client.ts | 1 - .../google/cloud/vision/v1/geometry.proto | 2 +- .../cloud/vision/v1/image_annotator.proto | 2 +- .../cloud/vision/v1/product_search.proto | 2 +- .../vision/v1/product_search_service.proto | 2 +- .../cloud/vision/v1/text_annotation.proto | 2 +- .../cloud/vision/v1/web_detection.proto | 2 +- .../cloud/vision/v1p1beta1/geometry.proto | 2 +- .../vision/v1p1beta1/image_annotator.proto | 2 +- .../vision/v1p1beta1/text_annotation.proto | 2 +- .../vision/v1p1beta1/web_detection.proto | 2 +- .../cloud/vision/v1p2beta1/geometry.proto | 2 +- .../vision/v1p2beta1/image_annotator.proto | 2 +- .../vision/v1p2beta1/text_annotation.proto | 2 +- .../vision/v1p2beta1/web_detection.proto | 2 +- .../cloud/vision/v1p3beta1/geometry.proto | 2 +- .../vision/v1p3beta1/image_annotator.proto | 2 +- .../vision/v1p3beta1/product_search.proto | 2 +- .../v1p3beta1/product_search_service.proto | 2 +- .../vision/v1p3beta1/text_annotation.proto | 2 +- .../vision/v1p3beta1/web_detection.proto | 2 +- .../google/cloud/vision/v1p4beta1/face.proto | 2 +- .../cloud/vision/v1p4beta1/geometry.proto | 2 +- .../vision/v1p4beta1/image_annotator.proto | 2 +- .../vision/v1p4beta1/product_search.proto | 2 +- .../v1p4beta1/product_search_service.proto | 2 +- .../vision/v1p4beta1/text_annotation.proto | 2 +- .../vision/v1p4beta1/web_detection.proto | 2 +- .../google-cloud-vision/protos/protos.json | 10 +- .../cloud/vmmigration/v1/vmmigration.proto | 2 +- .../protos/protos.json | 2 +- .../cloud/vmwareengine/v1/vmwareengine.proto | 2 +- .../v1/vmwareengine_resources.proto | 2 +- .../protos/protos.json | 2 +- .../cloud/vpcaccess/v1/vpc_access.proto | 2 +- .../google-cloud-vpcaccess/protos/protos.json | 2 +- .../google/cloud/webrisk/v1/webrisk.proto | 2 +- .../cloud/webrisk/v1beta1/webrisk.proto | 2 +- .../google-cloud-webrisk/protos/protos.json | 4 +- 202 files changed, 980 insertions(+), 304 deletions(-) diff --git a/packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/resources.proto b/packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/resources.proto index 3c6591e3b9b3..3fcf8b405bc6 100644 --- a/packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/resources.proto +++ b/packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/resources.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.SecretManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/secretmanager/v1;secretmanager"; +option go_package = "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.cloud.secretmanager.v1"; diff --git a/packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/service.proto b/packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/service.proto index 52b3b0943c81..029d38f4a9bd 100644 --- a/packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/service.proto +++ b/packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/service.proto @@ -28,7 +28,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.SecretManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/secretmanager/v1;secretmanager"; +option go_package = "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.secretmanager.v1"; diff --git a/packages/google-cloud-secretmanager/protos/protos.json b/packages/google-cloud-secretmanager/protos/protos.json index 5f58bffe786e..bc26bbe25cb9 100644 --- a/packages/google-cloud-secretmanager/protos/protos.json +++ b/packages/google-cloud-secretmanager/protos/protos.json @@ -10,7 +10,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.SecretManager.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/secretmanager/v1;secretmanager", + "go_package": "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb", "java_multiple_files": true, "java_outer_classname": "ServiceProto", "java_package": "com.google.cloud.secretmanager.v1", diff --git a/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1/resources.proto b/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1/resources.proto index 3f6dfb17110d..d1102ccb9955 100644 --- a/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1/resources.proto +++ b/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1/resources.proto @@ -24,7 +24,7 @@ import "google/type/expr.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PrivateCA.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/security/privateca/v1;privateca"; +option go_package = "cloud.google.com/go/security/privateca/apiv1/privatecapb;privatecapb"; option java_multiple_files = true; option java_outer_classname = "PrivateCaResourcesProto"; option java_package = "com.google.cloud.security.privateca.v1"; diff --git a/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1/service.proto b/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1/service.proto index 2ab59538323d..ab3d46f719c8 100644 --- a/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1/service.proto +++ b/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1/service.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PrivateCA.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/security/privateca/v1;privateca"; +option go_package = "cloud.google.com/go/security/privateca/apiv1/privatecapb;privatecapb"; option java_multiple_files = true; option java_outer_classname = "PrivateCaProto"; option java_package = "com.google.cloud.security.privateca.v1"; diff --git a/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1beta1/resources.proto b/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1beta1/resources.proto index 5e98d97ace1b..736ba6e70040 100644 --- a/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1beta1/resources.proto +++ b/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1beta1/resources.proto @@ -24,7 +24,7 @@ import "google/protobuf/wrappers.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PrivateCA.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1;privateca"; +option go_package = "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb;privatecapb"; option java_multiple_files = true; option java_outer_classname = "PrivateCaResourcesProto"; option java_package = "com.google.cloud.security.privateca.v1beta1"; diff --git a/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1beta1/service.proto b/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1beta1/service.proto index 965736b954f8..b83b3daf8845 100644 --- a/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1beta1/service.proto +++ b/packages/google-cloud-security-privateca/protos/google/cloud/security/privateca/v1beta1/service.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PrivateCA.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1;privateca"; +option go_package = "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb;privatecapb"; option java_multiple_files = true; option java_outer_classname = "PrivateCaProto"; option java_package = "com.google.cloud.security.privateca.v1beta1"; diff --git a/packages/google-cloud-security-privateca/protos/protos.json b/packages/google-cloud-security-privateca/protos/protos.json index c5aa6856a70c..0f8a5c88b518 100644 --- a/packages/google-cloud-security-privateca/protos/protos.json +++ b/packages/google-cloud-security-privateca/protos/protos.json @@ -12,7 +12,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.Security.PrivateCA.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/security/privateca/v1;privateca", + "go_package": "cloud.google.com/go/security/privateca/apiv1/privatecapb;privatecapb", "java_multiple_files": true, "java_outer_classname": "PrivateCaProto", "java_package": "com.google.cloud.security.privateca.v1", @@ -2877,7 +2877,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.Security.PrivateCA.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1;privateca", + "go_package": "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb;privatecapb", "java_multiple_files": true, "java_outer_classname": "PrivateCaProto", "java_package": "com.google.cloud.security.privateca.v1beta1", diff --git a/packages/google-cloud-security-publicca/protos/google/cloud/security/publicca/v1beta1/resources.proto b/packages/google-cloud-security-publicca/protos/google/cloud/security/publicca/v1beta1/resources.proto index e081b2ab1673..5b5bff05b9a8 100644 --- a/packages/google-cloud-security-publicca/protos/google/cloud/security/publicca/v1beta1/resources.proto +++ b/packages/google-cloud-security-publicca/protos/google/cloud/security/publicca/v1beta1/resources.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PublicCA.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/security/publicca/v1beta1;publicca"; +option go_package = "cloud.google.com/go/security/publicca/apiv1beta1/publiccapb;publiccapb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.cloud.security.publicca.v1beta1"; diff --git a/packages/google-cloud-security-publicca/protos/google/cloud/security/publicca/v1beta1/service.proto b/packages/google-cloud-security-publicca/protos/google/cloud/security/publicca/v1beta1/service.proto index 8cee47338f8b..631a37d469c4 100644 --- a/packages/google-cloud-security-publicca/protos/google/cloud/security/publicca/v1beta1/service.proto +++ b/packages/google-cloud-security-publicca/protos/google/cloud/security/publicca/v1beta1/service.proto @@ -24,7 +24,7 @@ import "google/cloud/security/publicca/v1beta1/resources.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PublicCA.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/security/publicca/v1beta1;publicca"; +option go_package = "cloud.google.com/go/security/publicca/apiv1beta1/publiccapb;publiccapb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.security.publicca.v1beta1"; diff --git a/packages/google-cloud-security-publicca/protos/protos.json b/packages/google-cloud-security-publicca/protos/protos.json index d47c0d69fbc0..0dadabb70d77 100644 --- a/packages/google-cloud-security-publicca/protos/protos.json +++ b/packages/google-cloud-security-publicca/protos/protos.json @@ -12,7 +12,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.Security.PublicCA.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/security/publicca/v1beta1;publicca", + "go_package": "cloud.google.com/go/security/publicca/apiv1beta1/publiccapb;publiccapb", "java_multiple_files": true, "java_outer_classname": "ServiceProto", "java_package": "com.google.cloud.security.publicca.v1beta1", diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/access.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/access.proto index 799b84fcccb8..b5d9d0d8368b 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/access.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/access.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "AccessProto"; option java_package = "com.google.cloud.securitycenter.v1"; @@ -42,7 +42,7 @@ message Access { // The caller IP's geolocation, which identifies where the call came from. Geolocation caller_ip_geo = 3; - // What kind of user agent is associated, e.g. operating system shells, + // What kind of user agent is associated, for example operating system shells, // embedded or stand-alone applications, etc. string user_agent_family = 4; @@ -76,6 +76,15 @@ message Access { // authorities are present, they are guaranteed to be sorted based on the // original ordering of the identity delegation events. repeated ServiceAccountDelegationInfo service_account_delegation_info = 9; + + // A string that represents the username of a user, user account, or other + // entity involved in the access event. What the entity is and what its role + // in the access event is depends on the finding that this field appears in. + // The entity is likely not an IAM principal, but could be a user that is + // logged into an operating system, if the finding is VM-related, or a user + // that is logged into some type of application that is involved in the + // access event. + string user_name = 11; } // Identity delegation history of an authenticated service account. @@ -97,4 +106,4 @@ message ServiceAccountDelegationInfo { message Geolocation { // A CLDR. string region_code = 1; -} +} \ No newline at end of file diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/asset.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/asset.proto index 55ba5641a09a..8bfdbe9fd3f3 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/asset.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/asset.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/bigquery_export.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/bigquery_export.proto index 850c66e5d03f..6afd9b4f54f2 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/bigquery_export.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/bigquery_export.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "BigQueryExportProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/compliance.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/compliance.proto index ca1353b69d0c..13edb396b9a9 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/compliance.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/compliance.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "ComplianceProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/connection.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/connection.proto index 29e95546c72e..6ac9c99e5e01 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/connection.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/connection.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "ConnectionProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/contact_details.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/contact_details.proto index c282d325b692..c0e7c2f761c6 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/contact_details.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/contact_details.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "ContactDetailsProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/container.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/container.proto index 65ca458cfc86..420356368cd9 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/container.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/container.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1; import "google/cloud/securitycenter/v1/label.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "ContainerProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/database.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/database.proto index 276b31004ee9..39afb4e010d9 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/database.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/database.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "DatabaseProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/exfiltration.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/exfiltration.proto index 14e644f66020..02620be69c28 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/exfiltration.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/exfiltration.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "ExfiltrationProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/external_system.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/external_system.proto index 8ba698138da1..5dd45724718c 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/external_system.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/external_system.proto @@ -20,7 +20,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "ExternalSystemProto"; option java_package = "com.google.cloud.securitycenter.v1"; @@ -36,11 +36,10 @@ message ExternalSystem { pattern: "projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}" }; - // External System Name e.g. jira, demisto, etc. - // e.g.: - // `organizations/1234/sources/5678/findings/123456/externalSystems/jira` - // `folders/1234/sources/5678/findings/123456/externalSystems/jira` - // `projects/1234/sources/5678/findings/123456/externalSystems/jira` + // Full resource name of the external system, for example: + // "organizations/1234/sources/5678/findings/123456/externalSystems/jira", + // "folders/1234/sources/5678/findings/123456/externalSystems/jira", + // "projects/1234/sources/5678/findings/123456/externalSystems/jira" string name = 1; // References primary/secondary etc assignees in the external system. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/file.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/file.proto index d802dda6ebf4..99cfa07ad9dd 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/file.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/file.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "FileProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto index 755b661772dd..ade6cca0a60b 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto @@ -29,6 +29,7 @@ import "google/cloud/securitycenter/v1/external_system.proto"; import "google/cloud/securitycenter/v1/file.proto"; import "google/cloud/securitycenter/v1/iam_binding.proto"; import "google/cloud/securitycenter/v1/indicator.proto"; +import "google/cloud/securitycenter/v1/kernel_rootkit.proto"; import "google/cloud/securitycenter/v1/kubernetes.proto"; import "google/cloud/securitycenter/v1/mitre_attack.proto"; import "google/cloud/securitycenter/v1/process.proto"; @@ -38,7 +39,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; @@ -253,7 +254,7 @@ message Finding { // Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise Indicator indicator = 18; - // Represents vulnerability specific fields like cve, cvss scores etc. + // Represents vulnerability-specific fields like CVE and CVS scores. // CVE stands for Common Vulnerabilities and Exposures // (https://cve.mitre.org/about/) Vulnerability vulnerability = 20; @@ -336,4 +337,7 @@ message Finding { // File associated with the finding. repeated File files = 46; + + // Kernel Rootkit signature. + KernelRootkit kernel_rootkit = 50; } diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/folder.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/folder.proto index 4078a527b338..2a1291daa784 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/folder.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/folder.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "FolderProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/iam_binding.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/iam_binding.proto index c1e57a37382b..9d68642df0a4 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/iam_binding.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/iam_binding.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "IamBindingProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/indicator.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/indicator.proto index 1cbfdfa2c9a3..567bc384d593 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/indicator.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/indicator.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "IndicatorProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kernel_rootkit.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kernel_rootkit.proto index 1010e3effcb6..f2178ad55f5b 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kernel_rootkit.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kernel_rootkit.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "KernelRootkitProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kubernetes.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kubernetes.proto index bf3bc3608c53..dfe24c04fabc 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kubernetes.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kubernetes.proto @@ -20,7 +20,7 @@ import "google/cloud/securitycenter/v1/container.proto"; import "google/cloud/securitycenter/v1/label.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "KubernetesProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/label.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/label.proto index 30321d907181..cc554342e6e8 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/label.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/label.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "LabelProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mitre_attack.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mitre_attack.proto index ab8262ccfbb3..708b10390c94 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mitre_attack.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mitre_attack.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "MitreAttackProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mute_config.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mute_config.proto index 74426957b7c2..20d2cb059e07 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mute_config.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mute_config.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "MuteConfigProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_config.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_config.proto index ee1e95460786..1bce1cfe771f 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_config.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_config.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "NotificationConfigProto"; option java_package = "com.google.cloud.securitycenter.v1"; @@ -73,7 +73,9 @@ message NotificationConfig { // The relative resource name of this notification config. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: - // "organizations/{organization_id}/notificationConfigs/notify_public_bucket". + // "organizations/{organization_id}/notificationConfigs/notify_public_bucket", + // "folders/{folder_id}/notificationConfigs/notify_public_bucket", + // or "projects/{project_id}/notificationConfigs/notify_public_bucket". string name = 1; // The description of the notification config (max of 1024 characters). diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_message.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_message.proto index 3605dfbefae1..80f98ea2da04 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_message.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_message.proto @@ -20,7 +20,7 @@ import "google/cloud/securitycenter/v1/finding.proto"; import "google/cloud/securitycenter/v1/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "NotificationMessageProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/organization_settings.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/organization_settings.proto index e8bc9687d026..460ee701fb58 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/organization_settings.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/organization_settings.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/process.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/process.proto index 480714be47d1..c885f48ec966 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/process.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/process.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1; import "google/cloud/securitycenter/v1/file.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "ProcessProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/resource.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/resource.proto index ab241d8bf3f3..3adcda1fcee7 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/resource.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/resource.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/cloud/securitycenter/v1/folder.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "ResourceProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/run_asset_discovery_response.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/run_asset_discovery_response.proto index 70088c06a645..c2861883f576 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/run_asset_discovery_response.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/run_asset_discovery_response.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_marks.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_marks.proto index 15c9769f226f..c0118899b171 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_marks.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_marks.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/securitycenter_service.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/securitycenter_service.proto index 4d06590e34c8..94aef2df2408 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -42,7 +42,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; @@ -161,7 +161,7 @@ service SecurityCenter { option (google.api.method_signature) = "name"; } - // Gets a big query export. + // Gets a BigQuery export. rpc GetBigQueryExport(GetBigQueryExportRequest) returns (BigQueryExport) { option (google.api.http) = { get: "/v1/{name=organizations/*/bigQueryExports/*}" @@ -507,7 +507,7 @@ service SecurityCenter { option (google.api.method_signature) = "security_marks"; } - // Creates a big query export. + // Creates a BigQuery export. rpc CreateBigQueryExport(CreateBigQueryExportRequest) returns (BigQueryExport) { option (google.api.http) = { @@ -526,7 +526,7 @@ service SecurityCenter { "parent,big_query_export,big_query_export_id"; } - // Deletes an existing big query export. + // Deletes an existing BigQuery export. rpc DeleteBigQueryExport(DeleteBigQueryExportRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -673,8 +673,8 @@ message CreateNotificationConfigRequest { // Required. // Unique identifier provided by the client within the parent scope. - // It must be between 1 and 128 characters, and contains alphanumeric - // characters, underscores or hyphens only. + // It must be between 1 and 128 characters and contain alphanumeric + // characters, underscores, or hyphens only. string config_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The notification config being created. The name and the service @@ -717,7 +717,9 @@ message DeleteMuteConfigRequest { // Request message for deleting a notification config. message DeleteNotificationConfigRequest { // Required. Name of the notification config to delete. Its format is - // "organizations/[organization_id]/notificationConfigs/[config_id]". + // "organizations/[organization_id]/notificationConfigs/[config_id]", + // "folders/[folder_id]/notificationConfigs/[config_id]", + // or "projects/[project_id]/notificationConfigs/[config_id]". string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -726,9 +728,9 @@ message DeleteNotificationConfigRequest { ]; } -// Request message for retrieving a big query export. +// Request message for retrieving a BigQuery export. message GetBigQueryExportRequest { - // Required. Name of the big query export to retrieve. Its format is + // Required. Name of the BigQuery export to retrieve. Its format is // organizations/{organization}/bigQueryExports/{export_id}, // folders/{folder}/bigQueryExports/{export_id}, or // projects/{project}/bigQueryExports/{export_id} @@ -757,7 +759,9 @@ message GetMuteConfigRequest { // Request message for getting a notification config. message GetNotificationConfigRequest { // Required. Name of the notification config to get. Its format is - // "organizations/[organization_id]/notificationConfigs/[config_id]". + // "organizations/[organization_id]/notificationConfigs/[config_id]", + // "folders/[folder_id]/notificationConfigs/[config_id]", + // or "projects/[project_id]/notificationConfigs/[config_id]". string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1159,9 +1163,9 @@ message ListMuteConfigsResponse { // Request message for listing notification configs. message ListNotificationConfigsRequest { - // Required. Name of the organization to list notification configs. Its format - // is "organizations/[organization_id]", "folders/[folder_id]", or - // "projects/[project_id]". + // Required. The name of the parent in which to list the notification + // configurations. Its format is "organizations/[organization_id]", + // "folders/[folder_id]", or "projects/[project_id]". string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1654,10 +1658,12 @@ message ListFindingsResponse { // Request message for updating a finding's state. message SetFindingStateRequest { - // Required. The relative resource name of the finding. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name - // Example: - // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". + // Required. The [relative resource + // name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) + // of the finding. Example: + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + // "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + // "projects/{project_id}/sources/{source_id}/findings/{finding_id}". string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1675,9 +1681,9 @@ message SetFindingStateRequest { // Request message for updating a finding's mute status. message SetMuteRequest { - // Required. The relative resource name of the finding. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name - // Example: + // Required. The [relative resource + // name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) + // of the finding. Example: // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", // "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", // "projects/{project_id}/sources/{source_id}/findings/{finding_id}". @@ -1799,10 +1805,10 @@ message UpdateSecurityMarksRequest { google.protobuf.Timestamp start_time = 3; } -// Request message for creating a big query export. +// Request message for creating a BigQuery export. message CreateBigQueryExportRequest { - // Required. Resource name of the new big query export's parent. Its format is - // "organizations/[organization_id]", "folders/[folder_id]", or + // Required. The name of the parent resource of the new BigQuery export. Its + // format is "organizations/[organization_id]", "folders/[folder_id]", or // "projects/[project_id]". string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1811,7 +1817,7 @@ message CreateBigQueryExportRequest { } ]; - // Required. The big query export being created. + // Required. The BigQuery export being created. BigQueryExport big_query_export = 2 [(google.api.field_behavior) = REQUIRED]; // Required. Unique identifier provided by the client within the parent scope. @@ -1867,9 +1873,9 @@ message ListBigQueryExportsResponse { string next_page_token = 2; } -// Request message for deleting a big query export. +// Request message for deleting a BigQuery export. message DeleteBigQueryExportRequest { - // Required. Name of the big query export to delete. Its format is + // Required. The name of the BigQuery export to delete. Its format is // organizations/{organization}/bigQueryExports/{export_id}, // folders/{folder}/bigQueryExports/{export_id}, or // projects/{project}/bigQueryExports/{export_id} diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/source.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/source.proto index 75c069a1cccf..daf7c3c601e6 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/source.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/source.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/vulnerability.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/vulnerability.proto index 3810d90c7059..eeff95633649 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/vulnerability.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/vulnerability.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "VulnerabilityProto"; option java_package = "com.google.cloud.securitycenter.v1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/asset.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/asset.proto index 415e7a2f094f..897925017009 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/asset.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/asset.proto @@ -22,7 +22,7 @@ import "google/cloud/securitycenter/v1beta1/security_marks.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/finding.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/finding.proto index 768bf411c7eb..66609f3f27d4 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/finding.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/finding.proto @@ -22,7 +22,7 @@ import "google/cloud/securitycenter/v1beta1/security_marks.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/organization_settings.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/organization_settings.proto index b447bf6e39d4..3c9509ba9620 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/organization_settings.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/organization_settings.proto @@ -18,7 +18,7 @@ package google.cloud.securitycenter.v1beta1; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto index cab92d902c37..dfda29a29aa9 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto @@ -18,7 +18,7 @@ package google.cloud.securitycenter.v1beta1; import "google/protobuf/duration.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/security_marks.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/security_marks.proto index f1dc88d7cd4b..5bae35479a6d 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/security_marks.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/security_marks.proto @@ -18,7 +18,7 @@ package google.cloud.securitycenter.v1beta1; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/securitycenter_service.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/securitycenter_service.proto index 55276ef7f1c8..e45ac6df4483 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/securitycenter_service.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/securitycenter_service.proto @@ -33,7 +33,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/source.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/source.proto index a4a49749ed30..d6fec93631dd 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/source.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1beta1/source.proto @@ -18,7 +18,7 @@ package google.cloud.securitycenter.v1beta1; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/asset.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/asset.proto index 45fdcbf5a5a4..df4a093f15f0 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/asset.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/asset.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/finding.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/finding.proto index 5edd3d86296b..f88034bb5ad6 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/finding.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/finding.proto @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/folder.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/folder.proto index 28a587163c1c..c94f2da69a66 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/folder.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/folder.proto @@ -18,7 +18,7 @@ package google.cloud.securitycenter.v1p1beta1; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "FolderProto"; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/notification_config.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/notification_config.proto index faaab37b102e..87f2dbbc683d 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/notification_config.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/notification_config.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/notification_message.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/notification_message.proto index 78a3e781f127..eb1c43a5778b 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/notification_message.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/notification_message.proto @@ -20,7 +20,7 @@ import "google/cloud/securitycenter/v1p1beta1/finding.proto"; import "google/cloud/securitycenter/v1p1beta1/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/organization_settings.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/organization_settings.proto index b80f046d6b8b..b4d26c907a25 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/organization_settings.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/organization_settings.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1p1beta1; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/resource.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/resource.proto index 3b2d2d437e8e..fd1ef2e266ea 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/resource.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/resource.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/cloud/securitycenter/v1p1beta1/folder.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_outer_classname = "ResourceProto"; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto index 835e33fbdf11..96c4f1d1459d 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1p1beta1; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/security_marks.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/security_marks.proto index 2245605b3e47..52762b5be34a 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/security_marks.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/security_marks.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1p1beta1; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto index 958e69714cfb..b2fae10eebf7 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto @@ -39,7 +39,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/source.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/source.proto index e2a556595560..bcbc5e62a878 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/source.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1p1beta1/source.proto @@ -19,7 +19,7 @@ package google.cloud.securitycenter.v1p1beta1; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter"; +option go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; option java_multiple_files = true; option java_package = "com.google.cloud.securitycenter.v1p1beta1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; diff --git a/packages/google-cloud-securitycenter/protos/protos.d.ts b/packages/google-cloud-securitycenter/protos/protos.d.ts index fc85fe37a70f..398cbb041f20 100644 --- a/packages/google-cloud-securitycenter/protos/protos.d.ts +++ b/packages/google-cloud-securitycenter/protos/protos.d.ts @@ -55,6 +55,9 @@ export namespace google { /** Access serviceAccountDelegationInfo */ serviceAccountDelegationInfo?: (google.cloud.securitycenter.v1.IServiceAccountDelegationInfo[]|null); + + /** Access userName */ + userName?: (string|null); } /** Represents an Access. */ @@ -93,6 +96,9 @@ export namespace google { /** Access serviceAccountDelegationInfo. */ public serviceAccountDelegationInfo: google.cloud.securitycenter.v1.IServiceAccountDelegationInfo[]; + /** Access userName. */ + public userName: string; + /** * Creates a new Access instance using the specified properties. * @param [properties] Properties to set @@ -2440,6 +2446,9 @@ export namespace google { /** Finding files */ files?: (google.cloud.securitycenter.v1.IFile[]|null); + + /** Finding kernelRootkit */ + kernelRootkit?: (google.cloud.securitycenter.v1.IKernelRootkit|null); } /** Represents a Finding. */ @@ -2553,6 +2562,9 @@ export namespace google { /** Finding files. */ public files: google.cloud.securitycenter.v1.IFile[]; + /** Finding kernelRootkit. */ + public kernelRootkit?: (google.cloud.securitycenter.v1.IKernelRootkit|null); + /** * Creates a new Finding instance using the specified properties. * @param [properties] Properties to set @@ -3320,6 +3332,151 @@ export namespace google { } } + /** Properties of a KernelRootkit. */ + interface IKernelRootkit { + + /** KernelRootkit name */ + name?: (string|null); + + /** KernelRootkit unexpectedCodeModification */ + unexpectedCodeModification?: (boolean|null); + + /** KernelRootkit unexpectedReadOnlyDataModification */ + unexpectedReadOnlyDataModification?: (boolean|null); + + /** KernelRootkit unexpectedFtraceHandler */ + unexpectedFtraceHandler?: (boolean|null); + + /** KernelRootkit unexpectedKprobeHandler */ + unexpectedKprobeHandler?: (boolean|null); + + /** KernelRootkit unexpectedKernelCodePages */ + unexpectedKernelCodePages?: (boolean|null); + + /** KernelRootkit unexpectedSystemCallHandler */ + unexpectedSystemCallHandler?: (boolean|null); + + /** KernelRootkit unexpectedInterruptHandler */ + unexpectedInterruptHandler?: (boolean|null); + + /** KernelRootkit unexpectedProcessesInRunqueue */ + unexpectedProcessesInRunqueue?: (boolean|null); + } + + /** Represents a KernelRootkit. */ + class KernelRootkit implements IKernelRootkit { + + /** + * Constructs a new KernelRootkit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IKernelRootkit); + + /** KernelRootkit name. */ + public name: string; + + /** KernelRootkit unexpectedCodeModification. */ + public unexpectedCodeModification: boolean; + + /** KernelRootkit unexpectedReadOnlyDataModification. */ + public unexpectedReadOnlyDataModification: boolean; + + /** KernelRootkit unexpectedFtraceHandler. */ + public unexpectedFtraceHandler: boolean; + + /** KernelRootkit unexpectedKprobeHandler. */ + public unexpectedKprobeHandler: boolean; + + /** KernelRootkit unexpectedKernelCodePages. */ + public unexpectedKernelCodePages: boolean; + + /** KernelRootkit unexpectedSystemCallHandler. */ + public unexpectedSystemCallHandler: boolean; + + /** KernelRootkit unexpectedInterruptHandler. */ + public unexpectedInterruptHandler: boolean; + + /** KernelRootkit unexpectedProcessesInRunqueue. */ + public unexpectedProcessesInRunqueue: boolean; + + /** + * Creates a new KernelRootkit instance using the specified properties. + * @param [properties] Properties to set + * @returns KernelRootkit instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IKernelRootkit): google.cloud.securitycenter.v1.KernelRootkit; + + /** + * Encodes the specified KernelRootkit message. Does not implicitly {@link google.cloud.securitycenter.v1.KernelRootkit.verify|verify} messages. + * @param message KernelRootkit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IKernelRootkit, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KernelRootkit message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.KernelRootkit.verify|verify} messages. + * @param message KernelRootkit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IKernelRootkit, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KernelRootkit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KernelRootkit + * @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.securitycenter.v1.KernelRootkit; + + /** + * Decodes a KernelRootkit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KernelRootkit + * @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.securitycenter.v1.KernelRootkit; + + /** + * Verifies a KernelRootkit 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 KernelRootkit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KernelRootkit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.KernelRootkit; + + /** + * Creates a plain object from a KernelRootkit message. Also converts values to other types if specified. + * @param message KernelRootkit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.KernelRootkit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KernelRootkit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KernelRootkit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a Kubernetes. */ interface IKubernetes { diff --git a/packages/google-cloud-securitycenter/protos/protos.js b/packages/google-cloud-securitycenter/protos/protos.js index 4500ffed7964..1101f8bb7b27 100644 --- a/packages/google-cloud-securitycenter/protos/protos.js +++ b/packages/google-cloud-securitycenter/protos/protos.js @@ -81,6 +81,7 @@ * @property {string|null} [principalSubject] Access principalSubject * @property {string|null} [serviceAccountKeyName] Access serviceAccountKeyName * @property {Array.|null} [serviceAccountDelegationInfo] Access serviceAccountDelegationInfo + * @property {string|null} [userName] Access userName */ /** @@ -171,6 +172,14 @@ */ Access.prototype.serviceAccountDelegationInfo = $util.emptyArray; + /** + * Access userName. + * @member {string} userName + * @memberof google.cloud.securitycenter.v1.Access + * @instance + */ + Access.prototype.userName = ""; + /** * Creates a new Access instance using the specified properties. * @function create @@ -214,6 +223,8 @@ if (message.serviceAccountDelegationInfo != null && message.serviceAccountDelegationInfo.length) for (var i = 0; i < message.serviceAccountDelegationInfo.length; ++i) $root.google.cloud.securitycenter.v1.ServiceAccountDelegationInfo.encode(message.serviceAccountDelegationInfo[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.userName); return writer; }; @@ -286,6 +297,10 @@ message.serviceAccountDelegationInfo.push($root.google.cloud.securitycenter.v1.ServiceAccountDelegationInfo.decode(reader, reader.uint32())); break; } + case 11: { + message.userName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -356,6 +371,9 @@ return "serviceAccountDelegationInfo." + error; } } + if (message.userName != null && message.hasOwnProperty("userName")) + if (!$util.isString(message.userName)) + return "userName: string expected"; return null; }; @@ -400,6 +418,8 @@ message.serviceAccountDelegationInfo[i] = $root.google.cloud.securitycenter.v1.ServiceAccountDelegationInfo.fromObject(object.serviceAccountDelegationInfo[i]); } } + if (object.userName != null) + message.userName = String(object.userName); return message; }; @@ -427,6 +447,7 @@ object.methodName = ""; object.principalSubject = ""; object.serviceAccountKeyName = ""; + object.userName = ""; } if (message.principalEmail != null && message.hasOwnProperty("principalEmail")) object.principalEmail = message.principalEmail; @@ -449,6 +470,8 @@ for (var j = 0; j < message.serviceAccountDelegationInfo.length; ++j) object.serviceAccountDelegationInfo[j] = $root.google.cloud.securitycenter.v1.ServiceAccountDelegationInfo.toObject(message.serviceAccountDelegationInfo[j], options); } + if (message.userName != null && message.hasOwnProperty("userName")) + object.userName = message.userName; return object; }; @@ -5965,6 +5988,7 @@ * @property {google.cloud.securitycenter.v1.IKubernetes|null} [kubernetes] Finding kubernetes * @property {google.cloud.securitycenter.v1.IDatabase|null} [database] Finding database * @property {Array.|null} [files] Finding files + * @property {google.cloud.securitycenter.v1.IKernelRootkit|null} [kernelRootkit] Finding kernelRootkit */ /** @@ -6263,6 +6287,14 @@ */ Finding.prototype.files = $util.emptyArray; + /** + * Finding kernelRootkit. + * @member {google.cloud.securitycenter.v1.IKernelRootkit|null|undefined} kernelRootkit + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.kernelRootkit = null; + /** * Creates a new Finding instance using the specified properties. * @function create @@ -6370,6 +6402,8 @@ if (message.files != null && message.files.length) for (var i = 0; i < message.files.length; ++i) $root.google.cloud.securitycenter.v1.File.encode(message.files[i], writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim(); + if (message.kernelRootkit != null && Object.hasOwnProperty.call(message, "kernelRootkit")) + $root.google.cloud.securitycenter.v1.KernelRootkit.encode(message.kernelRootkit, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); return writer; }; @@ -6609,6 +6643,10 @@ message.files.push($root.google.cloud.securitycenter.v1.File.decode(reader, reader.uint32())); break; } + case 50: { + message.kernelRootkit = $root.google.cloud.securitycenter.v1.KernelRootkit.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -6855,6 +6893,11 @@ return "files." + error; } } + if (message.kernelRootkit != null && message.hasOwnProperty("kernelRootkit")) { + var error = $root.google.cloud.securitycenter.v1.KernelRootkit.verify(message.kernelRootkit); + if (error) + return "kernelRootkit." + error; + } return null; }; @@ -7139,6 +7182,11 @@ message.files[i] = $root.google.cloud.securitycenter.v1.File.fromObject(object.files[i]); } } + if (object.kernelRootkit != null) { + if (typeof object.kernelRootkit !== "object") + throw TypeError(".google.cloud.securitycenter.v1.Finding.kernelRootkit: object expected"); + message.kernelRootkit = $root.google.cloud.securitycenter.v1.KernelRootkit.fromObject(object.kernelRootkit); + } return message; }; @@ -7194,6 +7242,7 @@ object.nextSteps = ""; object.kubernetes = null; object.database = null; + object.kernelRootkit = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -7291,6 +7340,8 @@ for (var j = 0; j < message.files.length; ++j) object.files[j] = $root.google.cloud.securitycenter.v1.File.toObject(message.files[j], options); } + if (message.kernelRootkit != null && message.hasOwnProperty("kernelRootkit")) + object.kernelRootkit = $root.google.cloud.securitycenter.v1.KernelRootkit.toObject(message.kernelRootkit, options); return object; }; @@ -8971,6 +9022,394 @@ return Indicator; })(); + v1.KernelRootkit = (function() { + + /** + * Properties of a KernelRootkit. + * @memberof google.cloud.securitycenter.v1 + * @interface IKernelRootkit + * @property {string|null} [name] KernelRootkit name + * @property {boolean|null} [unexpectedCodeModification] KernelRootkit unexpectedCodeModification + * @property {boolean|null} [unexpectedReadOnlyDataModification] KernelRootkit unexpectedReadOnlyDataModification + * @property {boolean|null} [unexpectedFtraceHandler] KernelRootkit unexpectedFtraceHandler + * @property {boolean|null} [unexpectedKprobeHandler] KernelRootkit unexpectedKprobeHandler + * @property {boolean|null} [unexpectedKernelCodePages] KernelRootkit unexpectedKernelCodePages + * @property {boolean|null} [unexpectedSystemCallHandler] KernelRootkit unexpectedSystemCallHandler + * @property {boolean|null} [unexpectedInterruptHandler] KernelRootkit unexpectedInterruptHandler + * @property {boolean|null} [unexpectedProcessesInRunqueue] KernelRootkit unexpectedProcessesInRunqueue + */ + + /** + * Constructs a new KernelRootkit. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a KernelRootkit. + * @implements IKernelRootkit + * @constructor + * @param {google.cloud.securitycenter.v1.IKernelRootkit=} [properties] Properties to set + */ + function KernelRootkit(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]]; + } + + /** + * KernelRootkit name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + */ + KernelRootkit.prototype.name = ""; + + /** + * KernelRootkit unexpectedCodeModification. + * @member {boolean} unexpectedCodeModification + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + */ + KernelRootkit.prototype.unexpectedCodeModification = false; + + /** + * KernelRootkit unexpectedReadOnlyDataModification. + * @member {boolean} unexpectedReadOnlyDataModification + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + */ + KernelRootkit.prototype.unexpectedReadOnlyDataModification = false; + + /** + * KernelRootkit unexpectedFtraceHandler. + * @member {boolean} unexpectedFtraceHandler + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + */ + KernelRootkit.prototype.unexpectedFtraceHandler = false; + + /** + * KernelRootkit unexpectedKprobeHandler. + * @member {boolean} unexpectedKprobeHandler + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + */ + KernelRootkit.prototype.unexpectedKprobeHandler = false; + + /** + * KernelRootkit unexpectedKernelCodePages. + * @member {boolean} unexpectedKernelCodePages + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + */ + KernelRootkit.prototype.unexpectedKernelCodePages = false; + + /** + * KernelRootkit unexpectedSystemCallHandler. + * @member {boolean} unexpectedSystemCallHandler + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + */ + KernelRootkit.prototype.unexpectedSystemCallHandler = false; + + /** + * KernelRootkit unexpectedInterruptHandler. + * @member {boolean} unexpectedInterruptHandler + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + */ + KernelRootkit.prototype.unexpectedInterruptHandler = false; + + /** + * KernelRootkit unexpectedProcessesInRunqueue. + * @member {boolean} unexpectedProcessesInRunqueue + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + */ + KernelRootkit.prototype.unexpectedProcessesInRunqueue = false; + + /** + * Creates a new KernelRootkit instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @static + * @param {google.cloud.securitycenter.v1.IKernelRootkit=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.KernelRootkit} KernelRootkit instance + */ + KernelRootkit.create = function create(properties) { + return new KernelRootkit(properties); + }; + + /** + * Encodes the specified KernelRootkit message. Does not implicitly {@link google.cloud.securitycenter.v1.KernelRootkit.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @static + * @param {google.cloud.securitycenter.v1.IKernelRootkit} message KernelRootkit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KernelRootkit.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.unexpectedCodeModification != null && Object.hasOwnProperty.call(message, "unexpectedCodeModification")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.unexpectedCodeModification); + if (message.unexpectedReadOnlyDataModification != null && Object.hasOwnProperty.call(message, "unexpectedReadOnlyDataModification")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unexpectedReadOnlyDataModification); + if (message.unexpectedFtraceHandler != null && Object.hasOwnProperty.call(message, "unexpectedFtraceHandler")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.unexpectedFtraceHandler); + if (message.unexpectedKprobeHandler != null && Object.hasOwnProperty.call(message, "unexpectedKprobeHandler")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.unexpectedKprobeHandler); + if (message.unexpectedKernelCodePages != null && Object.hasOwnProperty.call(message, "unexpectedKernelCodePages")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.unexpectedKernelCodePages); + if (message.unexpectedSystemCallHandler != null && Object.hasOwnProperty.call(message, "unexpectedSystemCallHandler")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.unexpectedSystemCallHandler); + if (message.unexpectedInterruptHandler != null && Object.hasOwnProperty.call(message, "unexpectedInterruptHandler")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.unexpectedInterruptHandler); + if (message.unexpectedProcessesInRunqueue != null && Object.hasOwnProperty.call(message, "unexpectedProcessesInRunqueue")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.unexpectedProcessesInRunqueue); + return writer; + }; + + /** + * Encodes the specified KernelRootkit message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.KernelRootkit.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @static + * @param {google.cloud.securitycenter.v1.IKernelRootkit} message KernelRootkit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KernelRootkit.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a KernelRootkit message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.KernelRootkit} KernelRootkit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KernelRootkit.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.KernelRootkit(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.unexpectedCodeModification = reader.bool(); + break; + } + case 3: { + message.unexpectedReadOnlyDataModification = reader.bool(); + break; + } + case 4: { + message.unexpectedFtraceHandler = reader.bool(); + break; + } + case 5: { + message.unexpectedKprobeHandler = reader.bool(); + break; + } + case 6: { + message.unexpectedKernelCodePages = reader.bool(); + break; + } + case 7: { + message.unexpectedSystemCallHandler = reader.bool(); + break; + } + case 8: { + message.unexpectedInterruptHandler = reader.bool(); + break; + } + case 9: { + message.unexpectedProcessesInRunqueue = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a KernelRootkit message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.KernelRootkit} KernelRootkit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KernelRootkit.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KernelRootkit message. + * @function verify + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KernelRootkit.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.unexpectedCodeModification != null && message.hasOwnProperty("unexpectedCodeModification")) + if (typeof message.unexpectedCodeModification !== "boolean") + return "unexpectedCodeModification: boolean expected"; + if (message.unexpectedReadOnlyDataModification != null && message.hasOwnProperty("unexpectedReadOnlyDataModification")) + if (typeof message.unexpectedReadOnlyDataModification !== "boolean") + return "unexpectedReadOnlyDataModification: boolean expected"; + if (message.unexpectedFtraceHandler != null && message.hasOwnProperty("unexpectedFtraceHandler")) + if (typeof message.unexpectedFtraceHandler !== "boolean") + return "unexpectedFtraceHandler: boolean expected"; + if (message.unexpectedKprobeHandler != null && message.hasOwnProperty("unexpectedKprobeHandler")) + if (typeof message.unexpectedKprobeHandler !== "boolean") + return "unexpectedKprobeHandler: boolean expected"; + if (message.unexpectedKernelCodePages != null && message.hasOwnProperty("unexpectedKernelCodePages")) + if (typeof message.unexpectedKernelCodePages !== "boolean") + return "unexpectedKernelCodePages: boolean expected"; + if (message.unexpectedSystemCallHandler != null && message.hasOwnProperty("unexpectedSystemCallHandler")) + if (typeof message.unexpectedSystemCallHandler !== "boolean") + return "unexpectedSystemCallHandler: boolean expected"; + if (message.unexpectedInterruptHandler != null && message.hasOwnProperty("unexpectedInterruptHandler")) + if (typeof message.unexpectedInterruptHandler !== "boolean") + return "unexpectedInterruptHandler: boolean expected"; + if (message.unexpectedProcessesInRunqueue != null && message.hasOwnProperty("unexpectedProcessesInRunqueue")) + if (typeof message.unexpectedProcessesInRunqueue !== "boolean") + return "unexpectedProcessesInRunqueue: boolean expected"; + return null; + }; + + /** + * Creates a KernelRootkit message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.KernelRootkit} KernelRootkit + */ + KernelRootkit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.KernelRootkit) + return object; + var message = new $root.google.cloud.securitycenter.v1.KernelRootkit(); + if (object.name != null) + message.name = String(object.name); + if (object.unexpectedCodeModification != null) + message.unexpectedCodeModification = Boolean(object.unexpectedCodeModification); + if (object.unexpectedReadOnlyDataModification != null) + message.unexpectedReadOnlyDataModification = Boolean(object.unexpectedReadOnlyDataModification); + if (object.unexpectedFtraceHandler != null) + message.unexpectedFtraceHandler = Boolean(object.unexpectedFtraceHandler); + if (object.unexpectedKprobeHandler != null) + message.unexpectedKprobeHandler = Boolean(object.unexpectedKprobeHandler); + if (object.unexpectedKernelCodePages != null) + message.unexpectedKernelCodePages = Boolean(object.unexpectedKernelCodePages); + if (object.unexpectedSystemCallHandler != null) + message.unexpectedSystemCallHandler = Boolean(object.unexpectedSystemCallHandler); + if (object.unexpectedInterruptHandler != null) + message.unexpectedInterruptHandler = Boolean(object.unexpectedInterruptHandler); + if (object.unexpectedProcessesInRunqueue != null) + message.unexpectedProcessesInRunqueue = Boolean(object.unexpectedProcessesInRunqueue); + return message; + }; + + /** + * Creates a plain object from a KernelRootkit message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @static + * @param {google.cloud.securitycenter.v1.KernelRootkit} message KernelRootkit + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KernelRootkit.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.unexpectedCodeModification = false; + object.unexpectedReadOnlyDataModification = false; + object.unexpectedFtraceHandler = false; + object.unexpectedKprobeHandler = false; + object.unexpectedKernelCodePages = false; + object.unexpectedSystemCallHandler = false; + object.unexpectedInterruptHandler = false; + object.unexpectedProcessesInRunqueue = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.unexpectedCodeModification != null && message.hasOwnProperty("unexpectedCodeModification")) + object.unexpectedCodeModification = message.unexpectedCodeModification; + if (message.unexpectedReadOnlyDataModification != null && message.hasOwnProperty("unexpectedReadOnlyDataModification")) + object.unexpectedReadOnlyDataModification = message.unexpectedReadOnlyDataModification; + if (message.unexpectedFtraceHandler != null && message.hasOwnProperty("unexpectedFtraceHandler")) + object.unexpectedFtraceHandler = message.unexpectedFtraceHandler; + if (message.unexpectedKprobeHandler != null && message.hasOwnProperty("unexpectedKprobeHandler")) + object.unexpectedKprobeHandler = message.unexpectedKprobeHandler; + if (message.unexpectedKernelCodePages != null && message.hasOwnProperty("unexpectedKernelCodePages")) + object.unexpectedKernelCodePages = message.unexpectedKernelCodePages; + if (message.unexpectedSystemCallHandler != null && message.hasOwnProperty("unexpectedSystemCallHandler")) + object.unexpectedSystemCallHandler = message.unexpectedSystemCallHandler; + if (message.unexpectedInterruptHandler != null && message.hasOwnProperty("unexpectedInterruptHandler")) + object.unexpectedInterruptHandler = message.unexpectedInterruptHandler; + if (message.unexpectedProcessesInRunqueue != null && message.hasOwnProperty("unexpectedProcessesInRunqueue")) + object.unexpectedProcessesInRunqueue = message.unexpectedProcessesInRunqueue; + return object; + }; + + /** + * Converts this KernelRootkit to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @instance + * @returns {Object.} JSON object + */ + KernelRootkit.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KernelRootkit + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.KernelRootkit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KernelRootkit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.KernelRootkit"; + }; + + return KernelRootkit; + })(); + v1.Kubernetes = (function() { /** diff --git a/packages/google-cloud-securitycenter/protos/protos.json b/packages/google-cloud-securitycenter/protos/protos.json index 57619a9a87ed..4b015458b2ef 100644 --- a/packages/google-cloud-securitycenter/protos/protos.json +++ b/packages/google-cloud-securitycenter/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.SecurityCenter.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter", + "go_package": "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb", "java_multiple_files": true, "java_outer_classname": "ResourceProto", "java_package": "com.google.cloud.securitycenter.v1", @@ -57,6 +57,10 @@ "rule": "repeated", "type": "ServiceAccountDelegationInfo", "id": 9 + }, + "userName": { + "type": "string", + "id": 11 } } }, @@ -635,6 +639,10 @@ "rule": "repeated", "type": "File", "id": 46 + }, + "kernelRootkit": { + "type": "KernelRootkit", + "id": 50 } }, "nested": { @@ -782,6 +790,46 @@ } } }, + "KernelRootkit": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "unexpectedCodeModification": { + "type": "bool", + "id": 2 + }, + "unexpectedReadOnlyDataModification": { + "type": "bool", + "id": 3 + }, + "unexpectedFtraceHandler": { + "type": "bool", + "id": 4 + }, + "unexpectedKprobeHandler": { + "type": "bool", + "id": 5 + }, + "unexpectedKernelCodePages": { + "type": "bool", + "id": 6 + }, + "unexpectedSystemCallHandler": { + "type": "bool", + "id": 7 + }, + "unexpectedInterruptHandler": { + "type": "bool", + "id": 8 + }, + "unexpectedProcessesInRunqueue": { + "type": "bool", + "id": 9 + } + } + }, "Kubernetes": { "fields": { "pods": { @@ -3412,7 +3460,7 @@ }, "v1beta1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter", + "go_package": "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb", "java_multiple_files": true, "java_package": "com.google.cloud.securitycenter.v1beta1" }, @@ -4486,7 +4534,7 @@ "v1p1beta1": { "options": { "csharp_namespace": "Google.Cloud.SecurityCenter.V1P1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1;securitycenter", + "go_package": "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb", "java_multiple_files": true, "java_package": "com.google.cloud.securitycenter.v1p1beta1", "php_namespace": "Google\\Cloud\\SecurityCenter\\V1p1beta1", diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_big_query_export.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_big_query_export.js index 158d09dcb357..f5ffc8a929f0 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_big_query_export.js +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_big_query_export.js @@ -29,13 +29,13 @@ function main(parent, bigQueryExport, bigQueryExportId) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. Resource name of the new big query export's parent. Its format is - * "organizations/[organization_id]", "folders/[folder_id]", or + * Required. The name of the parent resource of the new BigQuery export. Its + * format is "organizations/[organization_id]", "folders/[folder_id]", or * "projects/[project_id]". */ // const parent = 'abc123' /** - * Required. The big query export being created. + * Required. The BigQuery export being created. */ // const bigQueryExport = {} /** diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_notification_config.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_notification_config.js index 7ae83fdfd087..51e50e56fdf9 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_notification_config.js +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_notification_config.js @@ -37,8 +37,8 @@ function main(parent, configId, notificationConfig) { /** * Required. * Unique identifier provided by the client within the parent scope. - * It must be between 1 and 128 characters, and contains alphanumeric - * characters, underscores or hyphens only. + * It must be between 1 and 128 characters and contain alphanumeric + * characters, underscores, or hyphens only. */ // const configId = 'abc123' /** diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_big_query_export.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_big_query_export.js index 93aff7648f50..8431ed836b64 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_big_query_export.js +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_big_query_export.js @@ -29,7 +29,7 @@ function main(name) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. Name of the big query export to delete. Its format is + * Required. The name of the BigQuery export to delete. Its format is * organizations/{organization}/bigQueryExports/{export_id}, * folders/{folder}/bigQueryExports/{export_id}, or * projects/{project}/bigQueryExports/{export_id} diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_notification_config.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_notification_config.js index b69c4afe97fe..51096d1b3e38 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_notification_config.js +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_notification_config.js @@ -30,7 +30,9 @@ function main(name) { */ /** * Required. Name of the notification config to delete. Its format is - * "organizations/[organization_id]/notificationConfigs/[config_id]". + * "organizations/[organization_id]/notificationConfigs/[config_id]", + * "folders/[folder_id]/notificationConfigs/[config_id]", + * or "projects/[project_id]/notificationConfigs/[config_id]". */ // const name = 'abc123' diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_big_query_export.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_big_query_export.js index d947aa512988..9d29e830f32b 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_big_query_export.js +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_big_query_export.js @@ -29,7 +29,7 @@ function main(name) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. Name of the big query export to retrieve. Its format is + * Required. Name of the BigQuery export to retrieve. Its format is * organizations/{organization}/bigQueryExports/{export_id}, * folders/{folder}/bigQueryExports/{export_id}, or * projects/{project}/bigQueryExports/{export_id} diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_notification_config.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_notification_config.js index 5622d988bb6b..b0d9970d8f52 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_notification_config.js +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_notification_config.js @@ -30,7 +30,9 @@ function main(name) { */ /** * Required. Name of the notification config to get. Its format is - * "organizations/[organization_id]/notificationConfigs/[config_id]". + * "organizations/[organization_id]/notificationConfigs/[config_id]", + * "folders/[folder_id]/notificationConfigs/[config_id]", + * or "projects/[project_id]/notificationConfigs/[config_id]". */ // const name = 'abc123' diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_notification_configs.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_notification_configs.js index 295f8180689b..7a0dfec9fce1 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_notification_configs.js +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_notification_configs.js @@ -29,9 +29,9 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. Name of the organization to list notification configs. Its format - * is "organizations/[organization_id]", "folders/[folder_id]", or - * "projects/[project_id]". + * Required. The name of the parent in which to list the notification + * configurations. Its format is "organizations/[organization_id]", + * "folders/[folder_id]", or "projects/[project_id]". */ // const parent = 'abc123' /** diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_finding_state.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_finding_state.js index 9a9e9ec51895..5ff07ee6428a 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_finding_state.js +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_finding_state.js @@ -29,10 +29,12 @@ function main(name, state, startTime) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The relative resource name of the finding. See: - * https://cloud.google.com/apis/design/resource_names#relative_resource_name - * Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". + * Required. The relative resource + * name (https://cloud.google.com/apis/design/resource_names#relative_resource_name) + * of the finding. Example: + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". */ // const name = 'abc123' /** diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_mute.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_mute.js index a87e6438848d..d1e22987715d 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_mute.js +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_mute.js @@ -29,9 +29,9 @@ function main(name, mute) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The relative resource name of the finding. See: - * https://cloud.google.com/apis/design/resource_names#relative_resource_name - * Example: + * Required. The relative resource + * name (https://cloud.google.com/apis/design/resource_names#relative_resource_name) + * of the finding. Example: * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json b/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json index fff0f09709b6..981f1def66d6 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json @@ -298,7 +298,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 56, "type": "FULL" } ], @@ -331,7 +331,7 @@ "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async", "title": "SecurityCenter getBigQueryExport Sample", "origin": "API_DEFINITION", - "description": " Gets a big query export.", + "description": " Gets a BigQuery export.", "canonical": true, "file": "security_center.get_big_query_export.js", "language": "JAVASCRIPT", @@ -462,7 +462,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 56, "type": "FULL" } ], @@ -1030,7 +1030,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 68, "type": "FULL" } ], @@ -1519,7 +1519,7 @@ "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async", "title": "SecurityCenter createBigQueryExport Sample", "origin": "API_DEFINITION", - "description": " Creates a big query export.", + "description": " Creates a BigQuery export.", "canonical": true, "file": "security_center.create_big_query_export.js", "language": "JAVASCRIPT", @@ -1567,7 +1567,7 @@ "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async", "title": "SecurityCenter deleteBigQueryExport Sample", "origin": "API_DEFINITION", - "description": " Deletes an existing big query export.", + "description": " Deletes an existing BigQuery export.", "canonical": true, "file": "security_center.delete_big_query_export.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-securitycenter/src/v1/security_center_client.ts b/packages/google-cloud-securitycenter/src/v1/security_center_client.ts index f0ad59d8633e..99a608c1f9bc 100644 --- a/packages/google-cloud-securitycenter/src/v1/security_center_client.ts +++ b/packages/google-cloud-securitycenter/src/v1/security_center_client.ts @@ -867,8 +867,8 @@ export class SecurityCenterClient { * @param {string} request.configId * Required. * Unique identifier provided by the client within the parent scope. - * It must be between 1 and 128 characters, and contains alphanumeric - * characters, underscores or hyphens only. + * It must be between 1 and 128 characters and contain alphanumeric + * characters, underscores, or hyphens only. * @param {google.cloud.securitycenter.v1.NotificationConfig} request.notificationConfig * Required. The notification config being created. The name and the service * account will be ignored as they are both output only fields on this @@ -1074,7 +1074,9 @@ export class SecurityCenterClient { * The request object that will be sent. * @param {string} request.name * Required. Name of the notification config to delete. Its format is - * "organizations/[organization_id]/notificationConfigs/[config_id]". + * "organizations/[organization_id]/notificationConfigs/[config_id]", + * "folders/[folder_id]/notificationConfigs/[config_id]", + * or "projects/[project_id]/notificationConfigs/[config_id]". * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1170,12 +1172,12 @@ export class SecurityCenterClient { ); } /** - * Gets a big query export. + * Gets a BigQuery export. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. Name of the big query export to retrieve. Its format is + * Required. Name of the BigQuery export to retrieve. Its format is * organizations/{organization}/bigQueryExports/{export_id}, * folders/{folder}/bigQueryExports/{export_id}, or * projects/{project}/bigQueryExports/{export_id} @@ -1457,7 +1459,9 @@ export class SecurityCenterClient { * The request object that will be sent. * @param {string} request.name * Required. Name of the notification config to get. Its format is - * "organizations/[organization_id]/notificationConfigs/[config_id]". + * "organizations/[organization_id]/notificationConfigs/[config_id]", + * "folders/[folder_id]/notificationConfigs/[config_id]", + * or "projects/[project_id]/notificationConfigs/[config_id]". * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1748,10 +1752,12 @@ export class SecurityCenterClient { * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The relative resource name of the finding. See: - * https://cloud.google.com/apis/design/resource_names#relative_resource_name - * Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". + * Required. The [relative resource + * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) + * of the finding. Example: + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". * @param {google.cloud.securitycenter.v1.Finding.State} request.state * Required. The desired State of the finding. * @param {google.protobuf.Timestamp} request.startTime @@ -1846,9 +1852,9 @@ export class SecurityCenterClient { * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The relative resource name of the finding. See: - * https://cloud.google.com/apis/design/resource_names#relative_resource_name - * Example: + * Required. The [relative resource + * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) + * of the finding. Example: * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". @@ -2838,16 +2844,16 @@ export class SecurityCenterClient { return this.innerApiCalls.updateSecurityMarks(request, options, callback); } /** - * Creates a big query export. + * Creates a BigQuery export. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Resource name of the new big query export's parent. Its format is - * "organizations/[organization_id]", "folders/[folder_id]", or + * Required. The name of the parent resource of the new BigQuery export. Its + * format is "organizations/[organization_id]", "folders/[folder_id]", or * "projects/[project_id]". * @param {google.cloud.securitycenter.v1.BigQueryExport} request.bigQueryExport - * Required. The big query export being created. + * Required. The BigQuery export being created. * @param {string} request.bigQueryExportId * Required. Unique identifier provided by the client within the parent scope. * It must consist of lower case letters, numbers, and hyphen, with the first @@ -2944,12 +2950,12 @@ export class SecurityCenterClient { return this.innerApiCalls.createBigQueryExport(request, options, callback); } /** - * Deletes an existing big query export. + * Deletes an existing BigQuery export. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. Name of the big query export to delete. Its format is + * Required. The name of the BigQuery export to delete. Its format is * organizations/{organization}/bigQueryExports/{export_id}, * folders/{folder}/bigQueryExports/{export_id}, or * projects/{project}/bigQueryExports/{export_id} @@ -5936,9 +5942,9 @@ export class SecurityCenterClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Name of the organization to list notification configs. Its format - * is "organizations/[organization_id]", "folders/[folder_id]", or - * "projects/[project_id]". + * Required. The name of the parent in which to list the notification + * configurations. Its format is "organizations/[organization_id]", + * "folders/[folder_id]", or "projects/[project_id]". * @param {string} request.pageToken * The value returned by the last `ListNotificationConfigsResponse`; indicates * that this is a continuation of a prior `ListNotificationConfigs` call, and @@ -6043,9 +6049,9 @@ export class SecurityCenterClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Name of the organization to list notification configs. Its format - * is "organizations/[organization_id]", "folders/[folder_id]", or - * "projects/[project_id]". + * Required. The name of the parent in which to list the notification + * configurations. Its format is "organizations/[organization_id]", + * "folders/[folder_id]", or "projects/[project_id]". * @param {string} request.pageToken * The value returned by the last `ListNotificationConfigsResponse`; indicates * that this is a continuation of a prior `ListNotificationConfigs` call, and @@ -6094,9 +6100,9 @@ export class SecurityCenterClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Name of the organization to list notification configs. Its format - * is "organizations/[organization_id]", "folders/[folder_id]", or - * "projects/[project_id]". + * Required. The name of the parent in which to list the notification + * configurations. Its format is "organizations/[organization_id]", + * "folders/[folder_id]", or "projects/[project_id]". * @param {string} request.pageToken * The value returned by the last `ListNotificationConfigsResponse`; indicates * that this is a continuation of a prior `ListNotificationConfigs` call, and diff --git a/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json b/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json index be5b8aeaa299..b9720dfd4fcd 100644 --- a/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json +++ b/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json @@ -14,6 +14,7 @@ "../../protos/google/cloud/securitycenter/v1/folder.proto", "../../protos/google/cloud/securitycenter/v1/iam_binding.proto", "../../protos/google/cloud/securitycenter/v1/indicator.proto", + "../../protos/google/cloud/securitycenter/v1/kernel_rootkit.proto", "../../protos/google/cloud/securitycenter/v1/kubernetes.proto", "../../protos/google/cloud/securitycenter/v1/label.proto", "../../protos/google/cloud/securitycenter/v1/mitre_attack.proto", diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/endpoint.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/endpoint.proto index 5748f304db2d..c4b7b259bce2 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/endpoint.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/endpoint.proto @@ -20,7 +20,7 @@ import "google/api/resource.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "EndpointProto"; option java_package = "com.google.cloud.servicedirectory.v1"; diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/lookup_service.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/lookup_service.proto index c51582b310f1..34f54de6eaeb 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/lookup_service.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/lookup_service.proto @@ -24,7 +24,7 @@ import "google/cloud/servicedirectory/v1/service.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "LookupServiceProto"; option java_package = "com.google.cloud.servicedirectory.v1"; diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/namespace.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/namespace.proto index e4a3c1ea74d6..b4ca4697d693 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/namespace.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/namespace.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "NamespaceProto"; option java_package = "com.google.cloud.servicedirectory.v1"; diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/registration_service.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/registration_service.proto index 8c0a61a70fca..b854db726f81 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/registration_service.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/registration_service.proto @@ -30,7 +30,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "RegistrationServiceProto"; option java_package = "com.google.cloud.servicedirectory.v1"; diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/service.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/service.proto index 803de1f5da09..894c518d9c88 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/service.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1/service.proto @@ -22,7 +22,7 @@ import "google/cloud/servicedirectory/v1/endpoint.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.servicedirectory.v1"; diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/endpoint.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/endpoint.proto index 7a3fbb2e6432..d843b10dfe14 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/endpoint.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/endpoint.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "EndpointProto"; option java_package = "com.google.cloud.servicedirectory.v1beta1"; diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/lookup_service.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/lookup_service.proto index a411ee734dcb..1c1a0abe3ec3 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/lookup_service.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/lookup_service.proto @@ -24,7 +24,7 @@ import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "LookupServiceProto"; option java_package = "com.google.cloud.servicedirectory.v1beta1"; diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/namespace.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/namespace.proto index 4fc1ce806875..acb7474b79be 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/namespace.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/namespace.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "NamespaceProto"; option java_package = "com.google.cloud.servicedirectory.v1beta1"; diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/registration_service.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/registration_service.proto index b5f7e254b583..8dae294032bf 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/registration_service.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/registration_service.proto @@ -30,7 +30,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "RegistrationServiceProto"; option java_package = "com.google.cloud.servicedirectory.v1beta1"; diff --git a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/service.proto b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/service.proto index 4671bb663462..12b7e58a13ca 100644 --- a/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/service.proto +++ b/packages/google-cloud-servicedirectory/protos/google/cloud/servicedirectory/v1beta1/service.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceDirectory.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1;servicedirectory"; +option go_package = "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.servicedirectory.v1beta1"; diff --git a/packages/google-cloud-servicedirectory/protos/protos.json b/packages/google-cloud-servicedirectory/protos/protos.json index 256da5a3bcc1..425f43f9a1a4 100644 --- a/packages/google-cloud-servicedirectory/protos/protos.json +++ b/packages/google-cloud-servicedirectory/protos/protos.json @@ -10,7 +10,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.ServiceDirectory.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory", + "go_package": "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb", "java_multiple_files": true, "java_outer_classname": "RegistrationServiceProto", "java_package": "com.google.cloud.servicedirectory.v1", @@ -892,7 +892,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.ServiceDirectory.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1;servicedirectory", + "go_package": "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb;servicedirectorypb", "java_multiple_files": true, "java_outer_classname": "RegistrationServiceProto", "java_package": "com.google.cloud.servicedirectory.v1beta1", diff --git a/packages/google-cloud-shell/protos/google/cloud/shell/v1/cloudshell.proto b/packages/google-cloud-shell/protos/google/cloud/shell/v1/cloudshell.proto index cee2cb1887df..e27e43474d07 100644 --- a/packages/google-cloud-shell/protos/google/cloud/shell/v1/cloudshell.proto +++ b/packages/google-cloud-shell/protos/google/cloud/shell/v1/cloudshell.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/shell/v1;shell"; +option go_package = "cloud.google.com/go/shell/apiv1/shellpb;shellpb"; option java_multiple_files = true; option java_outer_classname = "CloudShellProto"; option java_package = "com.google.cloud.shell.v1"; diff --git a/packages/google-cloud-shell/protos/protos.json b/packages/google-cloud-shell/protos/protos.json index 87a7043854b5..955b5c79eb27 100644 --- a/packages/google-cloud-shell/protos/protos.json +++ b/packages/google-cloud-shell/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/shell/v1;shell", + "go_package": "cloud.google.com/go/shell/apiv1/shellpb;shellpb", "java_multiple_files": true, "java_outer_classname": "CloudShellProto", "java_package": "com.google.cloud.shell.v1" diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/common.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/common.proto index a530bf07cb09..b275beb82aa5 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/common.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/common.proto @@ -23,7 +23,7 @@ import "google/type/latlng.proto"; import "google/type/money.proto"; import "google/type/postal_address.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/company.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/company.proto index 043c65016809..3ece118d4d33 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/company.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/company.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/talent/v4/common.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "CompanyProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/company_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/company_service.proto index b19dc3afae3a..b56a33a538b7 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/company_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/company_service.proto @@ -25,7 +25,7 @@ import "google/cloud/talent/v4/company.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "CompanyServiceProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/completion_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/completion_service.proto index 179f9b439f7b..2026a0746d48 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/completion_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/completion_service.proto @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/talent/v4/common.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "CompletionServiceProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/event.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/event.proto index 0b03cf388fe4..e379c446aba7 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/event.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/event.proto @@ -19,7 +19,7 @@ package google.cloud.talent.v4; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "EventProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/event_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/event_service.proto index 0f1f423445c4..bed839a44b2d 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/event_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/event_service.proto @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/talent/v4/event.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "EventServiceProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/filters.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/filters.proto index ea2c75d6718e..a9bd6be86bb4 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/filters.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/filters.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; import "google/type/latlng.proto"; import "google/type/timeofday.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "FiltersProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/histogram.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/histogram.proto index e141ffe70c09..91a6077f42c8 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/histogram.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/histogram.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package google.cloud.talent.v4; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "HistogramProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/job.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/job.proto index 6debd1f32890..6769f2972079 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/job.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/job.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/talent/v4/common.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "JobProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/job_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/job_service.proto index fd94679ba598..5eb2f09536b0 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/job_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/job_service.proto @@ -30,7 +30,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "JobServiceProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/tenant.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/tenant.proto index 1868982b2ec7..3cad56014a93 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/tenant.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/tenant.proto @@ -19,7 +19,7 @@ package google.cloud.talent.v4; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "TenantProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4/tenant_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4/tenant_service.proto index 682d1f025b54..51c62f5d050a 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4/tenant_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4/tenant_service.proto @@ -25,7 +25,7 @@ import "google/cloud/talent/v4/tenant.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent"; +option go_package = "cloud.google.com/go/talent/apiv4/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "TenantServiceProto"; option java_package = "com.google.cloud.talent.v4"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/batch.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/batch.proto index 64a40e9cac00..e1e3ea8011f0 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/batch.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/batch.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "BatchProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/common.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/common.proto index 062c5727390e..8bceefc41a89 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/common.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/common.proto @@ -23,7 +23,7 @@ import "google/type/latlng.proto"; import "google/type/money.proto"; import "google/type/postal_address.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/company.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/company.proto index 9dd4f0a64f27..48663caa279e 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/company.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/company.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/talent/v4beta1/common.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "CompanyResourceProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/company_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/company_service.proto index 2dd9ffca8ce6..423f43830e6d 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/company_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/company_service.proto @@ -25,7 +25,7 @@ import "google/cloud/talent/v4beta1/company.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "CompanyServiceProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/completion_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/completion_service.proto index 48aa0bda2fbe..261f8a5c5a09 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/completion_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/completion_service.proto @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/talent/v4beta1/common.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "CompletionServiceProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/event.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/event.proto index 3e4cbd0af57b..dbe275e7b532 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/event.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/event.proto @@ -19,7 +19,7 @@ package google.cloud.talent.v4beta1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "EventProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/event_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/event_service.proto index 38df2db3bff5..6d3941154ddd 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/event_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/event_service.proto @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/talent/v4beta1/event.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "EventServiceProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/filters.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/filters.proto index 7818c5caf01c..5122f6affadd 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/filters.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/filters.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; import "google/type/latlng.proto"; import "google/type/timeofday.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "FiltersProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/histogram.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/histogram.proto index 96d2a81ddf8b..33d182beabf4 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/histogram.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/histogram.proto @@ -16,7 +16,7 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "HistogramProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/job.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/job.proto index 6c23bea9ca39..25f82b751b56 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/job.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/job.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "JobResourceProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/job_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/job_service.proto index 3bdb56e934b1..6c0021d74f68 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/job_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/job_service.proto @@ -30,7 +30,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "JobServiceProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/tenant.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/tenant.proto index 53a3a515a1ad..fd74a555fd21 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/tenant.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/tenant.proto @@ -19,7 +19,7 @@ package google.cloud.talent.v4beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "TenantResourceProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/tenant_service.proto b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/tenant_service.proto index 57614a45b6f1..a6a550684eac 100644 --- a/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/tenant_service.proto +++ b/packages/google-cloud-talent/protos/google/cloud/talent/v4beta1/tenant_service.proto @@ -25,7 +25,7 @@ import "google/cloud/talent/v4beta1/tenant.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; +option go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb"; option java_multiple_files = true; option java_outer_classname = "TenantServiceProto"; option java_package = "com.google.cloud.talent.v4beta1"; diff --git a/packages/google-cloud-talent/protos/protos.json b/packages/google-cloud-talent/protos/protos.json index 7ad045b1b310..916bd0e0e6be 100644 --- a/packages/google-cloud-talent/protos/protos.json +++ b/packages/google-cloud-talent/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v4": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/talent/v4;talent", + "go_package": "cloud.google.com/go/talent/apiv4/talentpb;talentpb", "java_multiple_files": true, "java_outer_classname": "TenantServiceProto", "java_package": "com.google.cloud.talent.v4", @@ -2263,7 +2263,7 @@ }, "v4beta1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent", + "go_package": "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb", "java_multiple_files": true, "java_outer_classname": "TenantServiceProto", "java_package": "com.google.cloud.talent.v4beta1", diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/cloudtasks.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/cloudtasks.proto index d30aae519a88..edc1cbdb44b7 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/cloudtasks.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/cloudtasks.proto @@ -28,7 +28,7 @@ import "google/iam/v1/policy.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "CloudTasksProto"; option java_package = "com.google.cloud.tasks.v2"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/queue.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/queue.proto index 3de39792590b..ff1cb2ae6a2b 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/queue.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/queue.proto @@ -22,7 +22,7 @@ import "google/cloud/tasks/v2/target.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "QueueProto"; option java_package = "com.google.cloud.tasks.v2"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/target.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/target.proto index db7ef20f60fb..5141d7fb6aba 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/target.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/target.proto @@ -19,7 +19,7 @@ package google.cloud.tasks.v2; import "google/api/field_behavior.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "TargetProto"; option java_package = "com.google.cloud.tasks.v2"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/task.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/task.proto index 9669b21ae6bf..b0efae63e3a9 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/task.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2/task.proto @@ -23,7 +23,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "TaskProto"; option java_package = "com.google.cloud.tasks.v2"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/cloudtasks.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/cloudtasks.proto index 8b2fa57e5530..fea304c46f40 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/cloudtasks.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/cloudtasks.proto @@ -29,7 +29,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2beta2/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "CloudTasksProto"; option java_package = "com.google.cloud.tasks.v2beta2"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/queue.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/queue.proto index 2d6ba2e1a7b4..3c1c347574e0 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/queue.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/queue.proto @@ -22,7 +22,7 @@ import "google/cloud/tasks/v2beta2/target.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2beta2/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "QueueProto"; option java_package = "com.google.cloud.tasks.v2beta2"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/target.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/target.proto index 7ee837dbd165..e9fb4e5623f1 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/target.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/target.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.tasks.v2beta2; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2beta2/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "TargetProto"; option java_package = "com.google.cloud.tasks.v2beta2"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/task.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/task.proto index 5e5c35755293..6dc48cdb84d2 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/task.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta2/task.proto @@ -21,7 +21,7 @@ import "google/cloud/tasks/v2beta2/target.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2beta2/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "TaskProto"; option java_package = "com.google.cloud.tasks.v2beta2"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/cloudtasks.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/cloudtasks.proto index 81e2098dd19a..80c8cf9db951 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/cloudtasks.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/cloudtasks.proto @@ -27,7 +27,7 @@ import "google/iam/v1/policy.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2beta3/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "CloudTasksProto"; option java_package = "com.google.cloud.tasks.v2beta3"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/queue.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/queue.proto index f892852bedd5..1b0f5f63757e 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/queue.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/queue.proto @@ -22,7 +22,7 @@ import "google/cloud/tasks/v2beta3/target.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2beta3/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "QueueProto"; option java_package = "com.google.cloud.tasks.v2beta3"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/target.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/target.proto index efebfedf71aa..05c5d7f6d84c 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/target.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/target.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.tasks.v2beta3; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2beta3/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "TargetProto"; option java_package = "com.google.cloud.tasks.v2beta3"; diff --git a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/task.proto b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/task.proto index b491b5aaa375..69ffe26f7600 100644 --- a/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/task.proto +++ b/packages/google-cloud-tasks/protos/google/cloud/tasks/v2beta3/task.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; +option go_package = "cloud.google.com/go/tasks/apiv2beta3/taskspb;taskspb"; option java_multiple_files = true; option java_outer_classname = "TaskProto"; option java_package = "com.google.cloud.tasks.v2beta3"; diff --git a/packages/google-cloud-tasks/protos/protos.json b/packages/google-cloud-tasks/protos/protos.json index 1b65fc18766b..8f514f8504e9 100644 --- a/packages/google-cloud-tasks/protos/protos.json +++ b/packages/google-cloud-tasks/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v2": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks", + "go_package": "cloud.google.com/go/tasks/apiv2/taskspb;taskspb", "java_multiple_files": true, "java_outer_classname": "TaskProto", "java_package": "com.google.cloud.tasks.v2", @@ -874,7 +874,7 @@ }, "v2beta2": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks", + "go_package": "cloud.google.com/go/tasks/apiv2beta2/taskspb;taskspb", "java_multiple_files": true, "java_outer_classname": "TaskProto", "java_package": "com.google.cloud.tasks.v2beta2", @@ -1973,7 +1973,7 @@ }, "v2beta3": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks", + "go_package": "cloud.google.com/go/tasks/apiv2beta3/taskspb;taskspb", "java_multiple_files": true, "java_outer_classname": "TaskProto", "java_package": "com.google.cloud.tasks.v2beta3", diff --git a/packages/google-cloud-tasks/src/v2/cloud_tasks_client_config.json b/packages/google-cloud-tasks/src/v2/cloud_tasks_client_config.json index 25284bc09e7e..837e866773b1 100644 --- a/packages/google-cloud-tasks/src/v2/cloud_tasks_client_config.json +++ b/packages/google-cloud-tasks/src/v2/cloud_tasks_client_config.json @@ -13,18 +13,18 @@ "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 20000, "total_timeout_millis": 600000 }, "2607cc7256ff9acb2ee9b232c5722dbbaab18846": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 20000, "total_timeout_millis": 600000 } }, diff --git a/packages/google-cloud-tasks/src/v2beta2/cloud_tasks_client_config.json b/packages/google-cloud-tasks/src/v2beta2/cloud_tasks_client_config.json index 8f33b6b1c669..a1f0b2ed3798 100644 --- a/packages/google-cloud-tasks/src/v2beta2/cloud_tasks_client_config.json +++ b/packages/google-cloud-tasks/src/v2beta2/cloud_tasks_client_config.json @@ -13,18 +13,18 @@ "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 20000, "total_timeout_millis": 600000 }, "2607cc7256ff9acb2ee9b232c5722dbbaab18846": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 20000, "total_timeout_millis": 600000 } }, diff --git a/packages/google-cloud-tasks/src/v2beta3/cloud_tasks_client_config.json b/packages/google-cloud-tasks/src/v2beta3/cloud_tasks_client_config.json index 1fe31739a8c2..0eb3420f3d44 100644 --- a/packages/google-cloud-tasks/src/v2beta3/cloud_tasks_client_config.json +++ b/packages/google-cloud-tasks/src/v2beta3/cloud_tasks_client_config.json @@ -13,18 +13,18 @@ "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 20000, "total_timeout_millis": 600000 }, "2607cc7256ff9acb2ee9b232c5722dbbaab18846": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, + "initial_rpc_timeout_millis": 20000, "rpc_timeout_multiplier": 1, - "max_rpc_timeout_millis": 60000, + "max_rpc_timeout_millis": 20000, "total_timeout_millis": 600000 } }, diff --git a/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts.proto b/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts.proto index b50d3698fb77..72fe71282b39 100644 --- a/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts.proto +++ b/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.TextToSpeech.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/texttospeech/v1;texttospeech"; +option go_package = "cloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb"; option java_multiple_files = true; option java_outer_classname = "TextToSpeechProto"; option java_package = "com.google.cloud.texttospeech.v1"; diff --git a/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts_lrs.proto b/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts_lrs.proto index d90f587160c0..6f9662355f52 100644 --- a/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts_lrs.proto +++ b/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts_lrs.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.TextToSpeech.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/texttospeech/v1;texttospeech"; +option go_package = "cloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb"; option java_multiple_files = true; option java_outer_classname = "TextToSpeechLongAudioSynthesisProto"; option java_package = "com.google.cloud.texttospeech.v1"; diff --git a/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1beta1/cloud_tts.proto b/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1beta1/cloud_tts.proto index 63e5361dc0ab..b1cd1515356f 100644 --- a/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1beta1/cloud_tts.proto +++ b/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1beta1/cloud_tts.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.TextToSpeech.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1;texttospeech"; +option go_package = "cloud.google.com/go/texttospeech/apiv1beta1/texttospeechpb;texttospeechpb"; option java_multiple_files = true; option java_outer_classname = "TextToSpeechProto"; option java_package = "com.google.cloud.texttospeech.v1beta1"; diff --git a/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto b/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto index 17bc9479f0b4..ecfecf0a46fb 100644 --- a/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto +++ b/packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.TextToSpeech.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1;texttospeech"; +option go_package = "cloud.google.com/go/texttospeech/apiv1beta1/texttospeechpb;texttospeechpb"; option java_multiple_files = true; option java_outer_classname = "TextToSpeechLongAudioSynthesisProto"; option java_package = "com.google.cloud.texttospeech.v1beta1"; diff --git a/packages/google-cloud-texttospeech/protos/protos.json b/packages/google-cloud-texttospeech/protos/protos.json index c49b9141911f..f5059f81890d 100644 --- a/packages/google-cloud-texttospeech/protos/protos.json +++ b/packages/google-cloud-texttospeech/protos/protos.json @@ -10,7 +10,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.TextToSpeech.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/texttospeech/v1;texttospeech", + "go_package": "cloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb", "java_multiple_files": true, "java_outer_classname": "TextToSpeechLongAudioSynthesisProto", "java_package": "com.google.cloud.texttospeech.v1", @@ -363,7 +363,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.TextToSpeech.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1;texttospeech", + "go_package": "cloud.google.com/go/texttospeech/apiv1beta1/texttospeechpb;texttospeechpb", "java_multiple_files": true, "java_outer_classname": "TextToSpeechLongAudioSynthesisProto", "java_package": "com.google.cloud.texttospeech.v1beta1", diff --git a/packages/google-cloud-tpu/protos/google/cloud/tpu/v1/cloud_tpu.proto b/packages/google-cloud-tpu/protos/google/cloud/tpu/v1/cloud_tpu.proto index 7436286628e7..8afe85b1d1bc 100644 --- a/packages/google-cloud-tpu/protos/google/cloud/tpu/v1/cloud_tpu.proto +++ b/packages/google-cloud-tpu/protos/google/cloud/tpu/v1/cloud_tpu.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tpu/v1;tpu"; +option go_package = "cloud.google.com/go/tpu/apiv1/tpupb;tpupb"; option java_multiple_files = true; option java_outer_classname = "CloudTpuProto"; option java_package = "com.google.cloud.tpu.v1"; diff --git a/packages/google-cloud-tpu/protos/google/cloud/tpu/v2/cloud_tpu.proto b/packages/google-cloud-tpu/protos/google/cloud/tpu/v2/cloud_tpu.proto index 6f06133af6a2..ce3f804f7c8f 100644 --- a/packages/google-cloud-tpu/protos/google/cloud/tpu/v2/cloud_tpu.proto +++ b/packages/google-cloud-tpu/protos/google/cloud/tpu/v2/cloud_tpu.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tpu/v2;tpu"; +option go_package = "cloud.google.com/go/tpu/apiv2/tpupb;tpupb"; option java_multiple_files = true; option java_outer_classname = "CloudTpuProto"; option java_package = "com.google.cloud.tpu.v2"; diff --git a/packages/google-cloud-tpu/protos/google/cloud/tpu/v2alpha1/cloud_tpu.proto b/packages/google-cloud-tpu/protos/google/cloud/tpu/v2alpha1/cloud_tpu.proto index 7f618ebdc647..e3a9ab24600c 100644 --- a/packages/google-cloud-tpu/protos/google/cloud/tpu/v2alpha1/cloud_tpu.proto +++ b/packages/google-cloud-tpu/protos/google/cloud/tpu/v2alpha1/cloud_tpu.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/type/interval.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/tpu/v2alpha1;tpu"; +option go_package = "cloud.google.com/go/tpu/apiv2alpha1/tpupb;tpupb"; option java_multiple_files = true; option java_outer_classname = "CloudTpuProto"; option java_package = "com.google.cloud.tpu.v2alpha1"; diff --git a/packages/google-cloud-tpu/protos/protos.json b/packages/google-cloud-tpu/protos/protos.json index fc0f3a1482f3..4b699a7a623b 100644 --- a/packages/google-cloud-tpu/protos/protos.json +++ b/packages/google-cloud-tpu/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/tpu/v1;tpu", + "go_package": "cloud.google.com/go/tpu/apiv1/tpupb;tpupb", "java_multiple_files": true, "java_outer_classname": "CloudTpuProto", "java_package": "com.google.cloud.tpu.v1" @@ -772,7 +772,7 @@ }, "v2": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/tpu/v2;tpu", + "go_package": "cloud.google.com/go/tpu/apiv2/tpupb;tpupb", "java_multiple_files": true, "java_outer_classname": "CloudTpuProto", "java_package": "com.google.cloud.tpu.v2" @@ -1763,7 +1763,7 @@ }, "v2alpha1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/tpu/v2alpha1;tpu", + "go_package": "cloud.google.com/go/tpu/apiv2alpha1/tpupb;tpupb", "java_multiple_files": true, "java_outer_classname": "CloudTpuProto", "java_package": "com.google.cloud.tpu.v2alpha1" diff --git a/packages/google-cloud-translate/protos/google/cloud/translate/v3/translation_service.proto b/packages/google-cloud-translate/protos/google/cloud/translate/v3/translation_service.proto index c0203c93f578..b63b233c0282 100644 --- a/packages/google-cloud-translate/protos/google/cloud/translate/v3/translation_service.proto +++ b/packages/google-cloud-translate/protos/google/cloud/translate/v3/translation_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Translate.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/translate/v3;translate"; +option go_package = "cloud.google.com/go/translation/apiv3/translationpb;translationpb"; option java_multiple_files = true; option java_outer_classname = "TranslationServiceProto"; option java_package = "com.google.cloud.translate.v3"; diff --git a/packages/google-cloud-translate/protos/google/cloud/translate/v3beta1/translation_service.proto b/packages/google-cloud-translate/protos/google/cloud/translate/v3beta1/translation_service.proto index 07626145212d..e8835700c23b 100644 --- a/packages/google-cloud-translate/protos/google/cloud/translate/v3beta1/translation_service.proto +++ b/packages/google-cloud-translate/protos/google/cloud/translate/v3beta1/translation_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Translate.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/translate/v3beta1;translate"; +option go_package = "cloud.google.com/go/translation/apiv3beta1/translationpb;translationpb"; option java_multiple_files = true; option java_outer_classname = "TranslationServiceProto"; option java_package = "com.google.cloud.translate.v3beta1"; diff --git a/packages/google-cloud-translate/protos/protos.json b/packages/google-cloud-translate/protos/protos.json index d714fb7f191f..31dc96602901 100644 --- a/packages/google-cloud-translate/protos/protos.json +++ b/packages/google-cloud-translate/protos/protos.json @@ -10,7 +10,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.Translate.V3", - "go_package": "google.golang.org/genproto/googleapis/cloud/translate/v3;translate", + "go_package": "cloud.google.com/go/translation/apiv3/translationpb;translationpb", "java_multiple_files": true, "java_outer_classname": "TranslationServiceProto", "java_package": "com.google.cloud.translate.v3", @@ -1286,7 +1286,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.Translate.V3Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/translate/v3beta1;translate", + "go_package": "cloud.google.com/go/translation/apiv3beta1/translationpb;translationpb", "java_multiple_files": true, "java_outer_classname": "TranslationServiceProto", "java_package": "com.google.cloud.translate.v3beta1", diff --git a/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/outputs.proto b/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/outputs.proto index 90ab85b4f7cd..fb5cc130154d 100644 --- a/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/outputs.proto +++ b/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/outputs.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.Video.LiveStream.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/livestream/v1;livestream"; +option go_package = "cloud.google.com/go/video/livestream/apiv1/livestreampb;livestreampb"; option java_multiple_files = true; option java_outer_classname = "OutputsProto"; option java_package = "com.google.cloud.video.livestream.v1"; diff --git a/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/resources.proto b/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/resources.proto index b9159ec97448..a0d29591d8db 100644 --- a/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/resources.proto +++ b/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/resources.proto @@ -24,7 +24,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.Video.LiveStream.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/livestream/v1;livestream"; +option go_package = "cloud.google.com/go/video/livestream/apiv1/livestreampb;livestreampb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.cloud.video.livestream.v1"; diff --git a/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/service.proto b/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/service.proto index 8ef65d80814b..d8c478ec6a8e 100644 --- a/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/service.proto +++ b/packages/google-cloud-video-livestream/protos/google/cloud/video/livestream/v1/service.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Video.LiveStream.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/livestream/v1;livestream"; +option go_package = "cloud.google.com/go/video/livestream/apiv1/livestreampb;livestreampb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.video.livestream.v1"; diff --git a/packages/google-cloud-video-livestream/protos/protos.json b/packages/google-cloud-video-livestream/protos/protos.json index 70363b6c26e5..81e97a4abcc9 100644 --- a/packages/google-cloud-video-livestream/protos/protos.json +++ b/packages/google-cloud-video-livestream/protos/protos.json @@ -11,7 +11,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.Video.LiveStream.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/video/livestream/v1;livestream", + "go_package": "cloud.google.com/go/video/livestream/apiv1/livestreampb;livestreampb", "java_multiple_files": true, "java_outer_classname": "ServiceProto", "java_package": "com.google.cloud.video.livestream.v1", diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/ad_tag_details.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/ad_tag_details.proto index 3c1c018b20e4..1961fa9b810b 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/ad_tag_details.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/ad_tag_details.proto @@ -20,7 +20,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher"; +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; option java_multiple_files = true; option java_outer_classname = "AdTagDetailsProto"; option java_package = "com.google.cloud.video.stitcher.v1"; diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/cdn_keys.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/cdn_keys.proto index c4835c5a6676..fd7a40200daa 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/cdn_keys.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/cdn_keys.proto @@ -19,7 +19,7 @@ package google.cloud.video.stitcher.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher"; +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; option java_multiple_files = true; option java_outer_classname = "CdnKeysProto"; option java_package = "com.google.cloud.video.stitcher.v1"; diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/companions.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/companions.proto index af57e92ddbbd..ef87e1994de8 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/companions.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/companions.proto @@ -18,7 +18,7 @@ package google.cloud.video.stitcher.v1; import "google/cloud/video/stitcher/v1/events.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher"; +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; option java_multiple_files = true; option java_outer_classname = "CompanionsProto"; option java_package = "com.google.cloud.video.stitcher.v1"; diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/events.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/events.proto index 3a5e967f5281..24e4c459c803 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/events.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/events.proto @@ -18,7 +18,7 @@ package google.cloud.video.stitcher.v1; import "google/protobuf/duration.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher"; +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; option java_multiple_files = true; option java_outer_classname = "EventsProto"; option java_package = "com.google.cloud.video.stitcher.v1"; diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/sessions.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/sessions.proto index 8bbbea806969..035e274f2021 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/sessions.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/sessions.proto @@ -22,7 +22,7 @@ import "google/cloud/video/stitcher/v1/companions.proto"; import "google/cloud/video/stitcher/v1/events.proto"; import "google/protobuf/duration.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher"; +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; option java_multiple_files = true; option java_outer_classname = "SessionsProto"; option java_package = "com.google.cloud.video.stitcher.v1"; diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/slates.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/slates.proto index a52de64998d8..eaa516713f9e 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/slates.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/slates.proto @@ -19,7 +19,7 @@ package google.cloud.video.stitcher.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher"; +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; option java_multiple_files = true; option java_outer_classname = "SlatesProto"; option java_package = "com.google.cloud.video.stitcher.v1"; diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/stitch_details.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/stitch_details.proto index e23224e3536a..293f9b14b63d 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/stitch_details.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/stitch_details.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher"; +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; option java_multiple_files = true; option java_outer_classname = "StitchDetailsProto"; option java_package = "com.google.cloud.video.stitcher.v1"; diff --git a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto index 938f01c8af61..8e86835a406b 100644 --- a/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto +++ b/packages/google-cloud-video-stitcher/protos/google/cloud/video/stitcher/v1/video_stitcher_service.proto @@ -28,7 +28,7 @@ import "google/cloud/video/stitcher/v1/stitch_details.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher"; +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; option java_multiple_files = true; option java_outer_classname = "VideoStitcherServiceProto"; option java_package = "com.google.cloud.video.stitcher.v1"; diff --git a/packages/google-cloud-video-stitcher/protos/protos.json b/packages/google-cloud-video-stitcher/protos/protos.json index 3e930fa09ff2..a2c87448fcb4 100644 --- a/packages/google-cloud-video-stitcher/protos/protos.json +++ b/packages/google-cloud-video-stitcher/protos/protos.json @@ -10,7 +10,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher", + "go_package": "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb", "java_multiple_files": true, "java_outer_classname": "VideoStitcherServiceProto", "java_package": "com.google.cloud.video.stitcher.v1" diff --git a/packages/google-cloud-video-transcoder/protos/google/cloud/video/transcoder/v1/resources.proto b/packages/google-cloud-video-transcoder/protos/google/cloud/video/transcoder/v1/resources.proto index 08508ec87631..76f626f4eec8 100644 --- a/packages/google-cloud-video-transcoder/protos/google/cloud/video/transcoder/v1/resources.proto +++ b/packages/google-cloud-video-transcoder/protos/google/cloud/video/transcoder/v1/resources.proto @@ -22,7 +22,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1;transcoder"; +option go_package = "cloud.google.com/go/video/transcoder/apiv1/transcoderpb;transcoderpb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.cloud.video.transcoder.v1"; diff --git a/packages/google-cloud-video-transcoder/protos/google/cloud/video/transcoder/v1/services.proto b/packages/google-cloud-video-transcoder/protos/google/cloud/video/transcoder/v1/services.proto index 4d400c33b7a3..658415c87906 100644 --- a/packages/google-cloud-video-transcoder/protos/google/cloud/video/transcoder/v1/services.proto +++ b/packages/google-cloud-video-transcoder/protos/google/cloud/video/transcoder/v1/services.proto @@ -24,7 +24,7 @@ import "google/cloud/video/transcoder/v1/resources.proto"; import "google/protobuf/empty.proto"; option csharp_namespace = "Google.Cloud.Video.Transcoder.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1;transcoder"; +option go_package = "cloud.google.com/go/video/transcoder/apiv1/transcoderpb;transcoderpb"; option java_multiple_files = true; option java_outer_classname = "ServicesProto"; option java_package = "com.google.cloud.video.transcoder.v1"; diff --git a/packages/google-cloud-video-transcoder/protos/protos.json b/packages/google-cloud-video-transcoder/protos/protos.json index ba6ca82b2155..2e7ff12fae4e 100644 --- a/packages/google-cloud-video-transcoder/protos/protos.json +++ b/packages/google-cloud-video-transcoder/protos/protos.json @@ -10,7 +10,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1;transcoder", + "go_package": "cloud.google.com/go/video/transcoder/apiv1/transcoderpb;transcoderpb", "java_multiple_files": true, "java_outer_classname": "ServicesProto", "java_package": "com.google.cloud.video.transcoder.v1", diff --git a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1/video_intelligence.proto b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1/video_intelligence.proto index 648ec4752534..013f022ef08a 100644 --- a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1/video_intelligence.proto +++ b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1/video_intelligence.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.VideoIntelligence.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1;videointelligence"; +option go_package = "cloud.google.com/go/videointelligence/apiv1/videointelligencepb;videointelligencepb"; option java_multiple_files = true; option java_outer_classname = "VideoIntelligenceServiceProto"; option java_package = "com.google.cloud.videointelligence.v1"; diff --git a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1beta2/video_intelligence.proto b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1beta2/video_intelligence.proto index 81648c523ecb..c2d4ec86ee89 100644 --- a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1beta2/video_intelligence.proto +++ b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1beta2/video_intelligence.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.VideoIntelligence.V1Beta2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2;videointelligence"; +option go_package = "cloud.google.com/go/videointelligence/apiv1beta2/videointelligencepb;videointelligencepb"; option java_multiple_files = true; option java_outer_classname = "VideoIntelligenceServiceProto"; option java_package = "com.google.cloud.videointelligence.v1beta2"; diff --git a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p1beta1/video_intelligence.proto b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p1beta1/video_intelligence.proto index 3c0b8b5626c9..23e6524bd2b0 100644 --- a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p1beta1/video_intelligence.proto +++ b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p1beta1/video_intelligence.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.VideoIntelligence.V1P1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p1beta1;videointelligence"; +option go_package = "cloud.google.com/go/videointelligence/apiv1p1beta1/videointelligencepb;videointelligencepb"; option java_multiple_files = true; option java_outer_classname = "VideoIntelligenceServiceProto"; option java_package = "com.google.cloud.videointelligence.v1p1beta1"; diff --git a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto index c185c0aa99b2..6f22c92c6aaf 100644 --- a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto +++ b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.VideoIntelligence.V1P2Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p2beta1;videointelligence"; +option go_package = "cloud.google.com/go/videointelligence/apiv1p2beta1/videointelligencepb;videointelligencepb"; option java_multiple_files = true; option java_outer_classname = "VideoIntelligenceServiceProto"; option java_package = "com.google.cloud.videointelligence.v1p2beta1"; diff --git a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto index db039e67a0c0..9326d84b0cff 100644 --- a/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto +++ b/packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.VideoIntelligence.V1P3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p3beta1;videointelligence"; +option go_package = "cloud.google.com/go/videointelligence/apiv1p3beta1/videointelligencepb;videointelligencepb"; option java_multiple_files = true; option java_outer_classname = "VideoIntelligenceServiceProto"; option java_package = "com.google.cloud.videointelligence.v1p3beta1"; diff --git a/packages/google-cloud-videointelligence/protos/protos.json b/packages/google-cloud-videointelligence/protos/protos.json index 4132bfd3f87f..c0f9c1a627ca 100644 --- a/packages/google-cloud-videointelligence/protos/protos.json +++ b/packages/google-cloud-videointelligence/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.VideoIntelligence.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/videointelligence/v1;videointelligence", + "go_package": "cloud.google.com/go/videointelligence/apiv1/videointelligencepb;videointelligencepb", "java_multiple_files": true, "java_outer_classname": "VideoIntelligenceServiceProto", "java_package": "com.google.cloud.videointelligence.v1", @@ -967,7 +967,7 @@ "v1beta2": { "options": { "csharp_namespace": "Google.Cloud.VideoIntelligence.V1Beta2", - "go_package": "google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2;videointelligence", + "go_package": "cloud.google.com/go/videointelligence/apiv1beta2/videointelligencepb;videointelligencepb", "java_multiple_files": true, "java_outer_classname": "VideoIntelligenceServiceProto", "java_package": "com.google.cloud.videointelligence.v1beta2", @@ -1384,7 +1384,7 @@ "v1p1beta1": { "options": { "csharp_namespace": "Google.Cloud.VideoIntelligence.V1P1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p1beta1;videointelligence", + "go_package": "cloud.google.com/go/videointelligence/apiv1p1beta1/videointelligencepb;videointelligencepb", "java_multiple_files": true, "java_outer_classname": "VideoIntelligenceServiceProto", "java_package": "com.google.cloud.videointelligence.v1p1beta1", @@ -1835,7 +1835,7 @@ "v1p2beta1": { "options": { "csharp_namespace": "Google.Cloud.VideoIntelligence.V1P2Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p2beta1;videointelligence", + "go_package": "cloud.google.com/go/videointelligence/apiv1p2beta1/videointelligencepb;videointelligencepb", "java_multiple_files": true, "java_outer_classname": "VideoIntelligenceServiceProto", "java_package": "com.google.cloud.videointelligence.v1p2beta1", @@ -2324,7 +2324,7 @@ "v1p3beta1": { "options": { "csharp_namespace": "Google.Cloud.VideoIntelligence.V1P3Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p3beta1;videointelligence", + "go_package": "cloud.google.com/go/videointelligence/apiv1p3beta1/videointelligencepb;videointelligencepb", "java_multiple_files": true, "java_outer_classname": "VideoIntelligenceServiceProto", "java_package": "com.google.cloud.videointelligence.v1p3beta1", diff --git a/packages/google-cloud-videointelligence/src/v1p3beta1/streaming_video_intelligence_service_client.ts b/packages/google-cloud-videointelligence/src/v1p3beta1/streaming_video_intelligence_service_client.ts index 4002adb9521d..98f8390de603 100644 --- a/packages/google-cloud-videointelligence/src/v1p3beta1/streaming_video_intelligence_service_client.ts +++ b/packages/google-cloud-videointelligence/src/v1p3beta1/streaming_video_intelligence_service_client.ts @@ -25,7 +25,6 @@ import type { ClientOptions, } from 'google-gax'; import {PassThrough} from 'stream'; -// eslint-disable-next-line @typescript-eslint/no-unused-vars import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1/geometry.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1/geometry.proto index 7e0d24c2f066..30aa355c7b4c 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1/geometry.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1/geometry.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.vision.v1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.vision.v1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1/image_annotator.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1/image_annotator.proto index 6fed6112bec7..bb022ffc960f 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1/image_annotator.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1/image_annotator.proto @@ -30,7 +30,7 @@ import "google/type/color.proto"; import "google/type/latlng.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ImageAnnotatorProto"; option java_package = "com.google.cloud.vision.v1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1/product_search.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1/product_search.proto index a2a9850582b5..b68f3fdc8061 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1/product_search.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1/product_search.proto @@ -22,7 +22,7 @@ import "google/cloud/vision/v1/product_search_service.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ProductSearchProto"; option java_package = "com.google.cloud.vision.v1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1/product_search_service.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1/product_search_service.proto index 65680d909681..02e367b0c311 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1/product_search_service.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1/product_search_service.proto @@ -28,7 +28,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ProductSearchServiceProto"; option java_package = "com.google.cloud.vision.v1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1/text_annotation.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1/text_annotation.proto index 9c07c322075c..303186088ba0 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1/text_annotation.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1/text_annotation.proto @@ -19,7 +19,7 @@ package google.cloud.vision.v1; import "google/cloud/vision/v1/geometry.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "TextAnnotationProto"; option java_package = "com.google.cloud.vision.v1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1/web_detection.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1/web_detection.proto index 369a1350d40f..36d36b8b8555 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1/web_detection.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1/web_detection.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.vision.v1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "WebDetectionProto"; option java_package = "com.google.cloud.vision.v1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/geometry.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/geometry.proto index 6d46d9c342ec..2fcc14a45347 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/geometry.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/geometry.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.vision.v1p1beta1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p1beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.vision.v1p1beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/image_annotator.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/image_annotator.proto index f66ad504fca9..a4d610392984 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/image_annotator.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/image_annotator.proto @@ -28,7 +28,7 @@ import "google/type/color.proto"; import "google/type/latlng.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p1beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ImageAnnotatorProto"; option java_package = "com.google.cloud.vision.v1p1beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/text_annotation.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/text_annotation.proto index f85cc44dfd59..feca82bfd549 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/text_annotation.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/text_annotation.proto @@ -19,7 +19,7 @@ package google.cloud.vision.v1p1beta1; import "google/cloud/vision/v1p1beta1/geometry.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p1beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "TextAnnotationProto"; option java_package = "com.google.cloud.vision.v1p1beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/web_detection.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/web_detection.proto index c50e1ad62cc8..13029cbbd172 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/web_detection.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p1beta1/web_detection.proto @@ -18,7 +18,7 @@ package google.cloud.vision.v1p1beta1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p1beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "WebDetectionProto"; option java_package = "com.google.cloud.vision.v1p1beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/geometry.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/geometry.proto index e9fec20bda76..3b15ba8673ee 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/geometry.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/geometry.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.vision.v1p2beta1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p2beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.vision.v1p2beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/image_annotator.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/image_annotator.proto index 264462d48438..727c0b091245 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/image_annotator.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/image_annotator.proto @@ -30,7 +30,7 @@ import "google/type/color.proto"; import "google/type/latlng.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p2beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ImageAnnotatorProto"; option java_package = "com.google.cloud.vision.v1p2beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/text_annotation.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/text_annotation.proto index af568194aa8d..dd6e21f5f57e 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/text_annotation.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/text_annotation.proto @@ -19,7 +19,7 @@ package google.cloud.vision.v1p2beta1; import "google/cloud/vision/v1p2beta1/geometry.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p2beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "TextAnnotationProto"; option java_package = "com.google.cloud.vision.v1p2beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/web_detection.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/web_detection.proto index 2decb8596ef2..aa0902d18bf9 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/web_detection.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p2beta1/web_detection.proto @@ -18,7 +18,7 @@ package google.cloud.vision.v1p2beta1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p2beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "WebDetectionProto"; option java_package = "com.google.cloud.vision.v1p2beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/geometry.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/geometry.proto index c2c524fb559a..c3941687e197 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/geometry.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/geometry.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.vision.v1p3beta1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p3beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.vision.v1p3beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/image_annotator.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/image_annotator.proto index ebab14a6b115..16a99afe4946 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/image_annotator.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/image_annotator.proto @@ -31,7 +31,7 @@ import "google/type/color.proto"; import "google/type/latlng.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p3beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ImageAnnotatorProto"; option java_package = "com.google.cloud.vision.v1p3beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/product_search.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/product_search.proto index 86ea1a064f83..7f311bee610d 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/product_search.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/product_search.proto @@ -22,7 +22,7 @@ import "google/cloud/vision/v1p3beta1/product_search_service.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p3beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ProductSearchProto"; option java_package = "com.google.cloud.vision.v1p3beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/product_search_service.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/product_search_service.proto index daf1d0ddc5ec..f0ede6426192 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/product_search_service.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/product_search_service.proto @@ -29,7 +29,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p3beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ProductSearchServiceProto"; option java_package = "com.google.cloud.vision.v1p3beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/text_annotation.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/text_annotation.proto index 633e404ed097..67fa6eb26277 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/text_annotation.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/text_annotation.proto @@ -19,7 +19,7 @@ package google.cloud.vision.v1p3beta1; import "google/cloud/vision/v1p3beta1/geometry.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p3beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "TextAnnotationProto"; option java_package = "com.google.cloud.vision.v1p3beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/web_detection.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/web_detection.proto index 205dfe656d1f..4438893cdc08 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/web_detection.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p3beta1/web_detection.proto @@ -18,7 +18,7 @@ package google.cloud.vision.v1p3beta1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p3beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "WebDetectionProto"; option java_package = "com.google.cloud.vision.v1p3beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/face.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/face.proto index d2ab72f0cded..334ef5d65b29 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/face.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/face.proto @@ -20,7 +20,7 @@ package google.cloud.vision.v1p4beta1; import "google/cloud/vision/v1p4beta1/geometry.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "CelebrityProto"; option java_package = "com.google.cloud.vision.v1p4beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/geometry.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/geometry.proto index 877fd8972dfe..d03db990b67b 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/geometry.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/geometry.proto @@ -19,7 +19,7 @@ package google.cloud.vision.v1p4beta1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.vision.v1p4beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/image_annotator.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/image_annotator.proto index cc7836974588..3a37ce128c9e 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/image_annotator.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/image_annotator.proto @@ -32,7 +32,7 @@ import "google/type/color.proto"; import "google/type/latlng.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ImageAnnotatorProto"; option java_package = "com.google.cloud.vision.v1p4beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/product_search.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/product_search.proto index ebb428acc800..060fd2a84062 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/product_search.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/product_search.proto @@ -23,7 +23,7 @@ import "google/cloud/vision/v1p4beta1/product_search_service.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ProductSearchProto"; option java_package = "com.google.cloud.vision.v1p4beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/product_search_service.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/product_search_service.proto index df7bc7a38a4d..5e50202fcd49 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/product_search_service.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/product_search_service.proto @@ -29,7 +29,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "ProductSearchServiceProto"; option java_package = "com.google.cloud.vision.v1p4beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/text_annotation.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/text_annotation.proto index 233c4c689e4f..7e6afb1ee898 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/text_annotation.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/text_annotation.proto @@ -20,7 +20,7 @@ package google.cloud.vision.v1p4beta1; import "google/cloud/vision/v1p4beta1/geometry.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "TextAnnotationProto"; option java_package = "com.google.cloud.vision.v1p4beta1"; diff --git a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/web_detection.proto b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/web_detection.proto index 7d716570f45d..713474e38645 100644 --- a/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/web_detection.proto +++ b/packages/google-cloud-vision/protos/google/cloud/vision/v1p4beta1/web_detection.proto @@ -19,7 +19,7 @@ package google.cloud.vision.v1p4beta1; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision"; +option go_package = "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb"; option java_multiple_files = true; option java_outer_classname = "WebDetectionProto"; option java_package = "com.google.cloud.vision.v1p4beta1"; diff --git a/packages/google-cloud-vision/protos/protos.json b/packages/google-cloud-vision/protos/protos.json index c0f5748afdab..4062331e2dc7 100644 --- a/packages/google-cloud-vision/protos/protos.json +++ b/packages/google-cloud-vision/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/vision/v1;vision", + "go_package": "cloud.google.com/go/vision/apiv1/visionpb;visionpb", "java_multiple_files": true, "java_outer_classname": "WebDetectionProto", "java_package": "com.google.cloud.vision.v1", @@ -2353,7 +2353,7 @@ "v1p1beta1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision", + "go_package": "cloud.google.com/go/vision/apiv1p1beta1/visionpb;visionpb", "java_multiple_files": true, "java_outer_classname": "WebDetectionProto", "java_package": "com.google.cloud.vision.v1p1beta1" @@ -3212,7 +3212,7 @@ "v1p2beta1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision", + "go_package": "cloud.google.com/go/vision/apiv1p2beta1/visionpb;visionpb", "java_multiple_files": true, "java_outer_classname": "WebDetectionProto", "java_package": "com.google.cloud.vision.v1p2beta1" @@ -4262,7 +4262,7 @@ "v1p3beta1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1;vision", + "go_package": "cloud.google.com/go/vision/apiv1p3beta1/visionpb;visionpb", "java_multiple_files": true, "java_outer_classname": "WebDetectionProto", "java_package": "com.google.cloud.vision.v1p3beta1", @@ -6339,7 +6339,7 @@ "v1p4beta1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision", + "go_package": "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb", "java_multiple_files": true, "java_outer_classname": "WebDetectionProto", "java_package": "com.google.cloud.vision.v1p4beta1", diff --git a/packages/google-cloud-vmmigration/protos/google/cloud/vmmigration/v1/vmmigration.proto b/packages/google-cloud-vmmigration/protos/google/cloud/vmmigration/v1/vmmigration.proto index 00dd86b05f45..35c6f36d002e 100644 --- a/packages/google-cloud-vmmigration/protos/google/cloud/vmmigration/v1/vmmigration.proto +++ b/packages/google-cloud-vmmigration/protos/google/cloud/vmmigration/v1/vmmigration.proto @@ -28,7 +28,7 @@ import "google/rpc/error_details.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.VMMigration.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/vmmigration/v1;vmmigration"; +option go_package = "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb;vmmigrationpb"; option java_multiple_files = true; option java_outer_classname = "VmMigrationProto"; option java_package = "com.google.cloud.vmmigration.v1"; diff --git a/packages/google-cloud-vmmigration/protos/protos.json b/packages/google-cloud-vmmigration/protos/protos.json index af97ead56108..96014be94818 100644 --- a/packages/google-cloud-vmmigration/protos/protos.json +++ b/packages/google-cloud-vmmigration/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.VMMigration.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/vmmigration/v1;vmmigration", + "go_package": "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb;vmmigrationpb", "java_multiple_files": true, "java_outer_classname": "VmMigrationProto", "java_package": "com.google.cloud.vmmigration.v1", diff --git a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto index 6589dc815264..035c5bd397b5 100644 --- a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto +++ b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.VmwareEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/vmwareengine/v1;vmwareengine"; +option go_package = "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb;vmwareenginepb"; option java_multiple_files = true; option java_outer_classname = "VmwareengineProto"; option java_package = "com.google.cloud.vmwareengine.v1"; diff --git a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto index c81c664241d4..4f0a496df033 100644 --- a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto +++ b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine_resources.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.VmwareEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/vmwareengine/v1;vmwareengine"; +option go_package = "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb;vmwareenginepb"; option java_multiple_files = true; option java_outer_classname = "VmwareengineResourcesProto"; option java_package = "com.google.cloud.vmwareengine.v1"; diff --git a/packages/google-cloud-vmwareengine/protos/protos.json b/packages/google-cloud-vmwareengine/protos/protos.json index 95998c481303..963d1dce0394 100644 --- a/packages/google-cloud-vmwareengine/protos/protos.json +++ b/packages/google-cloud-vmwareengine/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.VmwareEngine.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/vmwareengine/v1;vmwareengine", + "go_package": "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb;vmwareenginepb", "java_multiple_files": true, "java_outer_classname": "VmwareengineResourcesProto", "java_package": "com.google.cloud.vmwareengine.v1", diff --git a/packages/google-cloud-vpcaccess/protos/google/cloud/vpcaccess/v1/vpc_access.proto b/packages/google-cloud-vpcaccess/protos/google/cloud/vpcaccess/v1/vpc_access.proto index bf2b2fc8b3bd..21bf77757e63 100644 --- a/packages/google-cloud-vpcaccess/protos/google/cloud/vpcaccess/v1/vpc_access.proto +++ b/packages/google-cloud-vpcaccess/protos/google/cloud/vpcaccess/v1/vpc_access.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.VpcAccess.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/vpcaccess/v1;vpcaccess"; +option go_package = "cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb;vpcaccesspb"; option java_multiple_files = true; option java_outer_classname = "VpcAccessProto"; option java_package = "com.google.cloud.vpcaccess.v1"; diff --git a/packages/google-cloud-vpcaccess/protos/protos.json b/packages/google-cloud-vpcaccess/protos/protos.json index 406e9b8d050f..ed8d8e36ee7f 100644 --- a/packages/google-cloud-vpcaccess/protos/protos.json +++ b/packages/google-cloud-vpcaccess/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.VpcAccess.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/vpcaccess/v1;vpcaccess", + "go_package": "cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb;vpcaccesspb", "java_multiple_files": true, "java_outer_classname": "VpcAccessProto", "java_package": "com.google.cloud.vpcaccess.v1", diff --git a/packages/google-cloud-webrisk/protos/google/cloud/webrisk/v1/webrisk.proto b/packages/google-cloud-webrisk/protos/google/cloud/webrisk/v1/webrisk.proto index 186a301fb875..47281fe7f18f 100644 --- a/packages/google-cloud-webrisk/protos/google/cloud/webrisk/v1/webrisk.proto +++ b/packages/google-cloud-webrisk/protos/google/cloud/webrisk/v1/webrisk.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.WebRisk.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/webrisk/v1;webrisk"; +option go_package = "cloud.google.com/go/webrisk/apiv1/webriskpb;webriskpb"; option java_multiple_files = true; option java_outer_classname = "WebRiskProto"; option java_package = "com.google.webrisk.v1"; diff --git a/packages/google-cloud-webrisk/protos/google/cloud/webrisk/v1beta1/webrisk.proto b/packages/google-cloud-webrisk/protos/google/cloud/webrisk/v1beta1/webrisk.proto index 02264252f51f..6fcdb3aec611 100644 --- a/packages/google-cloud-webrisk/protos/google/cloud/webrisk/v1beta1/webrisk.proto +++ b/packages/google-cloud-webrisk/protos/google/cloud/webrisk/v1beta1/webrisk.proto @@ -23,7 +23,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.WebRisk.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/webrisk/v1beta1;webrisk"; +option go_package = "cloud.google.com/go/webrisk/apiv1beta1/webriskpb;webriskpb"; option java_multiple_files = true; option java_outer_classname = "WebRiskProto"; option java_package = "com.google.webrisk.v1beta1"; diff --git a/packages/google-cloud-webrisk/protos/protos.json b/packages/google-cloud-webrisk/protos/protos.json index 377a83e4e6d3..5eb6d15d7733 100644 --- a/packages/google-cloud-webrisk/protos/protos.json +++ b/packages/google-cloud-webrisk/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.WebRisk.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/webrisk/v1;webrisk", + "go_package": "cloud.google.com/go/webrisk/apiv1/webriskpb;webriskpb", "java_multiple_files": true, "java_outer_classname": "WebRiskProto", "java_package": "com.google.webrisk.v1", @@ -393,7 +393,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.WebRisk.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/webrisk/v1beta1;webrisk", + "go_package": "cloud.google.com/go/webrisk/apiv1beta1/webriskpb;webriskpb", "java_multiple_files": true, "java_outer_classname": "WebRiskProto", "java_package": "com.google.webrisk.v1beta1", From e8b1caac7a42a19f77670354267860734d49c489 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 02:10:11 +0000 Subject: [PATCH 19/38] chore: [Many APIs] update import paths for Go targets to match open source location (#3934) - [ ] Regenerate this pull request now. chore: update go_package in protos to match open source location chore: add explicit release levels to Go gapic targets PiperOrigin-RevId: 506711567 Source-Link: https://togithub.com/googleapis/googleapis/commit/d02e58244db5d01607ec2ad52a47e7edce8612f0 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/7f1c54153125eb5abd60a32de58cfda6a798a70a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmtjb25uZWN0aXZpdHkvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmttYW5hZ2VtZW50Ly5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmtzZWN1cml0eS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5vdGVib29rcy8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9wdGltaXphdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9yY2hlc3RyYXRpb24tYWlyZmxvdy1zZXJ2aWNlLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9yZ3BvbGljeS8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9zY29uZmlnLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9zbG9naW4vLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBoaXNoaW5ncHJvdGVjdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBvbGljeXRyb3VibGVzaG9vdGVyLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXByaXZhdGVjYXRhbG9nLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYWVudGVycHJpc2UvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY29tbWVuZGVyLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlZGlzLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlc291cmNlbWFuYWdlci8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlc291cmNlc2V0dGluZ3MvLk93bEJvdC55YW1sIiwiaCI6IjdmMWM1NDE1MzEyNWViNWFiZDYwYTMyZGU1OGNmZGE2YTc5OGE3MGEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJldGFpbC8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJ1bi8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNjaGVkdWxlci8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 --- .../cloud/networkconnectivity/v1/common.proto | 2 +- .../cloud/networkconnectivity/v1/hub.proto | 2 +- .../networkconnectivity/v1alpha1/common.proto | 2 +- .../networkconnectivity/v1alpha1/hub.proto | 2 +- .../protos/protos.json | 2 +- .../v1/connectivity_test.proto | 2 +- .../networkmanagement/v1/reachability.proto | 2 +- .../cloud/networkmanagement/v1/trace.proto | 2 +- .../v1beta1/connectivity_test.proto | 2 +- .../v1beta1/reachability.proto | 2 +- .../networkmanagement/v1beta1/trace.proto | 2 +- .../protos/protos.json | 4 +- .../v1/authorization_policy.proto | 2 +- .../v1/client_tls_policy.proto | 2 +- .../cloud/networksecurity/v1/common.proto | 2 +- .../networksecurity/v1/network_security.proto | 2 +- .../v1/server_tls_policy.proto | 2 +- .../google/cloud/networksecurity/v1/tls.proto | 2 +- .../v1beta1/authorization_policy.proto | 2 +- .../v1beta1/client_tls_policy.proto | 2 +- .../networksecurity/v1beta1/common.proto | 2 +- .../v1beta1/network_security.proto | 2 +- .../v1beta1/server_tls_policy.proto | 2 +- .../cloud/networksecurity/v1beta1/tls.proto | 2 +- .../protos/protos.json | 4 +- .../notebooks/v1/diagnostic_config.proto | 2 +- .../cloud/notebooks/v1/environment.proto | 2 +- .../google/cloud/notebooks/v1/event.proto | 2 +- .../google/cloud/notebooks/v1/execution.proto | 2 +- .../google/cloud/notebooks/v1/instance.proto | 2 +- .../cloud/notebooks/v1/instance_config.proto | 2 +- .../cloud/notebooks/v1/managed_service.proto | 2 +- .../google/cloud/notebooks/v1/runtime.proto | 2 +- .../google/cloud/notebooks/v1/schedule.proto | 2 +- .../google/cloud/notebooks/v1/service.proto | 2 +- .../cloud/notebooks/v1beta1/environment.proto | 2 +- .../cloud/notebooks/v1beta1/instance.proto | 2 +- .../cloud/notebooks/v1beta1/service.proto | 2 +- .../google-cloud-notebooks/protos/protos.json | 4 +- .../cloud/optimization/v1/async_model.proto | 2 +- .../cloud/optimization/v1/fleet_routing.proto | 2 +- .../protos/protos.json | 2 +- .../airflow/service/v1/environments.proto | 2 +- .../airflow/service/v1/image_versions.proto | 2 +- .../airflow/service/v1/operations.proto | 2 +- .../service/v1beta1/environments.proto | 2 +- .../service/v1beta1/image_versions.proto | 2 +- .../airflow/service/v1beta1/operations.proto | 2 +- .../protos/protos.json | 4 +- .../cloud/orgpolicy/v2/constraint.proto | 2 +- .../google/cloud/orgpolicy/v2/orgpolicy.proto | 2 +- .../google-cloud-orgpolicy/protos/protos.json | 2 +- .../google/cloud/osconfig/v1/inventory.proto | 2 +- .../google/cloud/osconfig/v1/os_policy.proto | 2 +- .../v1/os_policy_assignment_reports.proto | 2 +- .../osconfig/v1/os_policy_assignments.proto | 2 +- .../cloud/osconfig/v1/osconfig_common.proto | 2 +- .../cloud/osconfig/v1/osconfig_service.proto | 2 +- .../osconfig/v1/osconfig_zonal_service.proto | 2 +- .../cloud/osconfig/v1/patch_deployments.proto | 2 +- .../google/cloud/osconfig/v1/patch_jobs.proto | 2 +- .../cloud/osconfig/v1/vulnerability.proto | 2 +- .../osconfig/v1alpha/config_common.proto | 2 +- .../instance_os_policies_compliance.proto | 2 +- .../cloud/osconfig/v1alpha/inventory.proto | 2 +- .../cloud/osconfig/v1alpha/os_policy.proto | 2 +- .../os_policy_assignment_reports.proto | 2 +- .../v1alpha/os_policy_assignments.proto | 2 +- .../osconfig/v1alpha/osconfig_common.proto | 2 +- .../v1alpha/osconfig_zonal_service.proto | 2 +- .../osconfig/v1alpha/vulnerability.proto | 2 +- .../osconfig/v1beta/guest_policies.proto | 2 +- .../osconfig/v1beta/osconfig_common.proto | 2 +- .../osconfig/v1beta/osconfig_service.proto | 2 +- .../osconfig/v1beta/patch_deployments.proto | 2 +- .../cloud/osconfig/v1beta/patch_jobs.proto | 2 +- .../google-cloud-osconfig/protos/protos.json | 6 +- .../google/cloud/oslogin/common/common.proto | 2 +- .../google/cloud/oslogin/v1/oslogin.proto | 2 +- .../google/cloud/oslogin/v1beta/oslogin.proto | 2 +- .../google-cloud-oslogin/protos/protos.json | 6 +- .../google-cloud-phishingprotection/owlbot.py | 17 - .../v1beta1/phishingprotection.proto | 2 +- .../protos/protos.json | 2 +- .../policytroubleshooter/v1/checker.proto | 2 +- .../v1/explanations.proto | 2 +- .../protos/protos.json | 2 +- .../v1beta1/private_catalog.proto | 2 +- .../protos/protos.json | 2 +- .../v1/recaptchaenterprise.proto | 2 +- .../v1beta1/recaptchaenterprise.proto | 2 +- .../protos/protos.json | 4 +- packages/google-cloud-recommender/.jsdoc.js | 4 +- packages/google-cloud-recommender/README.md | 24 + .../linkinator.config.json | 10 +- .../google/cloud/recommender/v1/insight.proto | 39 +- .../recommender/v1/insight_type_config.proto | 85 + .../cloud/recommender/v1/recommendation.proto | 71 +- .../recommender/v1/recommender_config.proto | 85 + .../recommender/v1/recommender_service.proto | 267 +- .../cloud/recommender/v1beta1/insight.proto | 161 + .../v1beta1/insight_type_config.proto | 85 + .../recommender/v1beta1/recommendation.proto | 361 + .../v1beta1/recommender_config.proto | 85 + .../v1beta1/recommender_service.proto | 591 + .../protos/protos.d.ts | 5475 ++++- .../google-cloud-recommender/protos/protos.js | 18604 +++++++++++++--- .../protos/protos.json | 1599 +- .../samples/README.md | 432 + .../generated/v1/recommender.get_insight.js | 61 + .../v1/recommender.get_insight_type_config.js | 65 + .../v1/recommender.get_recommendation.js | 61 + .../v1/recommender.get_recommender_config.js | 65 + .../generated/v1/recommender.list_insights.js | 101 + .../v1/recommender.list_recommendations.js | 101 + .../v1/recommender.mark_insight_accepted.js | 71 + ...recommender.mark_recommendation_claimed.js | 73 + .../recommender.mark_recommendation_failed.js | 73 + ...commender.mark_recommendation_succeeded.js | 73 + .../recommender.update_insight_type_config.js | 70 + .../recommender.update_recommender_config.js | 70 + ..._metadata.google.cloud.recommender.v1.json | 567 + .../v1beta1/recommender.get_insight.js | 61 + .../recommender.get_insight_type_config.js | 65 + .../v1beta1/recommender.get_recommendation.js | 61 + .../recommender.get_recommender_config.js | 65 + .../v1beta1/recommender.list_insights.js | 101 + .../recommender.list_recommendations.js | 101 + .../recommender.mark_insight_accepted.js | 71 + ...recommender.mark_recommendation_claimed.js | 73 + .../recommender.mark_recommendation_failed.js | 73 + ...commender.mark_recommendation_succeeded.js | 73 + .../recommender.update_insight_type_config.js | 70 + .../recommender.update_recommender_config.js | 70 + ...data.google.cloud.recommender.v1beta1.json | 567 + .../google-cloud-recommender/src/index.ts | 5 +- .../src/v1/gapic_metadata.json | 40 + .../google-cloud-recommender/src/v1/index.ts | 2 +- .../src/v1/recommender_client.ts | 1758 +- .../src/v1/recommender_client_config.json | 16 + .../src/v1/recommender_proto_list.json | 2 + .../src/v1beta1/gapic_metadata.json | 151 + .../src/v1beta1/index.ts | 19 + .../src/v1beta1/recommender_client.ts | 3633 +++ .../v1beta1/recommender_client_config.json | 82 + .../src/v1beta1/recommender_proto_list.json | 7 + .../system-test/fixtures/sample/src/index.js | 2 +- .../system-test/fixtures/sample/src/index.ts | 2 +- .../system-test/install.ts | 2 +- .../test/gapic_recommender_v1.ts | 2113 +- .../test/gapic_recommender_v1beta1.ts | 4060 ++++ packages/google-cloud-redis/owlbot.py | 3 +- .../google/cloud/redis/v1/cloud_redis.proto | 2 +- .../cloud/redis/v1beta1/cloud_redis.proto | 2 +- .../google-cloud-redis/protos/protos.json | 4 +- ...nippet_metadata.google.cloud.redis.v1.json | 2 +- ...t_metadata.google.cloud.redis.v1beta1.json | 2 +- .../cloud/resourcemanager/v3/folders.proto | 2 +- .../resourcemanager/v3/organizations.proto | 2 +- .../cloud/resourcemanager/v3/projects.proto | 2 +- .../resourcemanager/v3/tag_bindings.proto | 2 +- .../cloud/resourcemanager/v3/tag_keys.proto | 2 +- .../cloud/resourcemanager/v3/tag_values.proto | 2 +- .../protos/protos.json | 2 +- .../v1/resource_settings.proto | 2 +- .../protos/protos.json | 2 +- .../google/cloud/retail/v2/catalog.proto | 2 +- .../cloud/retail/v2/catalog_service.proto | 2 +- .../google/cloud/retail/v2/common.proto | 2 +- .../cloud/retail/v2/completion_service.proto | 2 +- .../google/cloud/retail/v2/control.proto | 2 +- .../cloud/retail/v2/control_service.proto | 2 +- .../cloud/retail/v2/import_config.proto | 2 +- .../cloud/retail/v2/prediction_service.proto | 2 +- .../google/cloud/retail/v2/product.proto | 2 +- .../cloud/retail/v2/product_service.proto | 2 +- .../google/cloud/retail/v2/promotion.proto | 2 +- .../google/cloud/retail/v2/purge_config.proto | 2 +- .../cloud/retail/v2/search_service.proto | 2 +- .../cloud/retail/v2/serving_config.proto | 2 +- .../retail/v2/serving_config_service.proto | 2 +- .../google/cloud/retail/v2/user_event.proto | 2 +- .../cloud/retail/v2/user_event_service.proto | 2 +- .../google/cloud/retail/v2alpha/catalog.proto | 2 +- .../retail/v2alpha/catalog_service.proto | 2 +- .../google/cloud/retail/v2alpha/common.proto | 2 +- .../retail/v2alpha/completion_service.proto | 2 +- .../google/cloud/retail/v2alpha/control.proto | 2 +- .../retail/v2alpha/control_service.proto | 2 +- .../cloud/retail/v2alpha/export_config.proto | 2 +- .../cloud/retail/v2alpha/import_config.proto | 2 +- .../google/cloud/retail/v2alpha/model.proto | 2 +- .../cloud/retail/v2alpha/model_service.proto | 2 +- .../retail/v2alpha/prediction_service.proto | 2 +- .../google/cloud/retail/v2alpha/product.proto | 2 +- .../retail/v2alpha/product_service.proto | 2 +- .../cloud/retail/v2alpha/promotion.proto | 2 +- .../cloud/retail/v2alpha/purge_config.proto | 2 +- .../cloud/retail/v2alpha/search_service.proto | 2 +- .../cloud/retail/v2alpha/serving_config.proto | 2 +- .../v2alpha/serving_config_service.proto | 2 +- .../cloud/retail/v2alpha/user_event.proto | 2 +- .../retail/v2alpha/user_event_service.proto | 2 +- .../google/cloud/retail/v2beta/catalog.proto | 2 +- .../cloud/retail/v2beta/catalog_service.proto | 2 +- .../google/cloud/retail/v2beta/common.proto | 2 +- .../retail/v2beta/completion_service.proto | 2 +- .../google/cloud/retail/v2beta/control.proto | 2 +- .../cloud/retail/v2beta/control_service.proto | 2 +- .../cloud/retail/v2beta/export_config.proto | 2 +- .../cloud/retail/v2beta/import_config.proto | 2 +- .../google/cloud/retail/v2beta/model.proto | 2 +- .../cloud/retail/v2beta/model_service.proto | 2 +- .../retail/v2beta/prediction_service.proto | 2 +- .../google/cloud/retail/v2beta/product.proto | 2 +- .../cloud/retail/v2beta/product_service.proto | 2 +- .../cloud/retail/v2beta/promotion.proto | 2 +- .../cloud/retail/v2beta/purge_config.proto | 2 +- .../cloud/retail/v2beta/search_service.proto | 2 +- .../cloud/retail/v2beta/serving_config.proto | 2 +- .../v2beta/serving_config_service.proto | 2 +- .../cloud/retail/v2beta/user_event.proto | 2 +- .../retail/v2beta/user_event_service.proto | 2 +- .../google-cloud-retail/protos/protos.json | 6 +- .../google/cloud/run/v2/condition.proto | 2 +- .../google/cloud/run/v2/execution.proto | 2 +- .../cloud/run/v2/execution_template.proto | 2 +- .../protos/google/cloud/run/v2/job.proto | 2 +- .../protos/google/cloud/run/v2/k8s.min.proto | 2 +- .../protos/google/cloud/run/v2/revision.proto | 2 +- .../cloud/run/v2/revision_template.proto | 2 +- .../protos/google/cloud/run/v2/service.proto | 2 +- .../protos/google/cloud/run/v2/task.proto | 2 +- .../google/cloud/run/v2/task_template.proto | 2 +- .../google/cloud/run/v2/traffic_target.proto | 2 +- .../google/cloud/run/v2/vendor_settings.proto | 2 +- packages/google-cloud-run/protos/protos.json | 2 +- .../cloud/scheduler/v1/cloudscheduler.proto | 2 +- .../google/cloud/scheduler/v1/job.proto | 2 +- .../google/cloud/scheduler/v1/target.proto | 2 +- .../scheduler/v1beta1/cloudscheduler.proto | 2 +- .../google/cloud/scheduler/v1beta1/job.proto | 2 +- .../cloud/scheduler/v1beta1/target.proto | 2 +- .../google-cloud-scheduler/protos/protos.json | 4 +- 244 files changed, 38662 insertions(+), 4524 deletions(-) delete mode 100644 packages/google-cloud-phishingprotection/owlbot.py create mode 100644 packages/google-cloud-recommender/protos/google/cloud/recommender/v1/insight_type_config.proto create mode 100644 packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommender_config.proto create mode 100644 packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/insight.proto create mode 100644 packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/insight_type_config.proto create mode 100644 packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommendation.proto create mode 100644 packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommender_config.proto create mode 100644 packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommender_service.proto create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight_type_config.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommendation.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommender_config.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.list_insights.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.list_recommendations.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.mark_insight_accepted.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_claimed.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_failed.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_succeeded.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.update_insight_type_config.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/recommender.update_recommender_config.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1/snippet_metadata.google.cloud.recommender.v1.json create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight_type_config.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommendation.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommender_config.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_insights.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_recommendations.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_insight_accepted.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_claimed.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_failed.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_insight_type_config.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_recommender_config.js create mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/snippet_metadata.google.cloud.recommender.v1beta1.json create mode 100644 packages/google-cloud-recommender/src/v1beta1/gapic_metadata.json create mode 100644 packages/google-cloud-recommender/src/v1beta1/index.ts create mode 100644 packages/google-cloud-recommender/src/v1beta1/recommender_client.ts create mode 100644 packages/google-cloud-recommender/src/v1beta1/recommender_client_config.json create mode 100644 packages/google-cloud-recommender/src/v1beta1/recommender_proto_list.json create mode 100644 packages/google-cloud-recommender/test/gapic_recommender_v1beta1.ts diff --git a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/common.proto b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/common.proto index 282cf34758e7..892530489356 100644 --- a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/common.proto +++ b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/common.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1;networkconnectivity"; +option go_package = "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb;networkconnectivitypb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.networkconnectivity.v1"; diff --git a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/hub.proto b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/hub.proto index 44cf09ae0a64..eef97978f3d9 100644 --- a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/hub.proto +++ b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1/hub.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1;networkconnectivity"; +option go_package = "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb;networkconnectivitypb"; option java_multiple_files = true; option java_outer_classname = "HubProto"; option java_package = "com.google.cloud.networkconnectivity.v1"; diff --git a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1alpha1/common.proto b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1alpha1/common.proto index bdd9df63e954..1ef4b4714da9 100644 --- a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1alpha1/common.proto +++ b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1alpha1/common.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1Alpha1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1;networkconnectivity"; +option go_package = "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb;networkconnectivitypb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.networkconnectivity.v1alpha1"; diff --git a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1alpha1/hub.proto b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1alpha1/hub.proto index 6f1b8eede078..72875cfb66e2 100644 --- a/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1alpha1/hub.proto +++ b/packages/google-cloud-networkconnectivity/protos/google/cloud/networkconnectivity/v1alpha1/hub.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1Alpha1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1;networkconnectivity"; +option go_package = "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb;networkconnectivitypb"; option java_multiple_files = true; option java_outer_classname = "HubProto"; option java_package = "com.google.cloud.networkconnectivity.v1alpha1"; diff --git a/packages/google-cloud-networkconnectivity/protos/protos.json b/packages/google-cloud-networkconnectivity/protos/protos.json index f1b6bb1b47aa..637d689f965f 100644 --- a/packages/google-cloud-networkconnectivity/protos/protos.json +++ b/packages/google-cloud-networkconnectivity/protos/protos.json @@ -1274,7 +1274,7 @@ "v1alpha1": { "options": { "csharp_namespace": "Google.Cloud.NetworkConnectivity.V1Alpha1", - "go_package": "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1;networkconnectivity", + "go_package": "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb;networkconnectivitypb", "java_multiple_files": true, "java_outer_classname": "HubProto", "java_package": "com.google.cloud.networkconnectivity.v1alpha1", diff --git a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/connectivity_test.proto b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/connectivity_test.proto index 36d88b30b6b3..78685ba735ec 100644 --- a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/connectivity_test.proto +++ b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/connectivity_test.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.NetworkManagement.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1;networkmanagement"; +option go_package = "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb"; option java_multiple_files = true; option java_outer_classname = "TestOuterClass"; option java_package = "com.google.cloud.networkmanagement.v1"; diff --git a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/reachability.proto b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/reachability.proto index b8cdaec9dbde..d81fe4f57797 100644 --- a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/reachability.proto +++ b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/reachability.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkManagement.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1;networkmanagement"; +option go_package = "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb"; option java_multiple_files = true; option java_outer_classname = "ReachabilityServiceProto"; option java_package = "com.google.cloud.networkmanagement.v1"; diff --git a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/trace.proto b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/trace.proto index 63ec014e0a57..945b1baf4df6 100644 --- a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/trace.proto +++ b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1/trace.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.networkmanagement.v1; option csharp_namespace = "Google.Cloud.NetworkManagement.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1;networkmanagement"; +option go_package = "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb"; option java_multiple_files = true; option java_outer_classname = "TraceProto"; option java_package = "com.google.cloud.networkmanagement.v1"; diff --git a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/connectivity_test.proto b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/connectivity_test.proto index 03d529b44f68..cfbae11c1641 100644 --- a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/connectivity_test.proto +++ b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/connectivity_test.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.NetworkManagement.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1beta1;networkmanagement"; +option go_package = "cloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmanagementpb"; option java_multiple_files = true; option java_outer_classname = "TestOuterClass"; option java_package = "com.google.cloud.networkmanagement.v1beta1"; diff --git a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/reachability.proto b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/reachability.proto index 82cf7a3f4825..6c642e51e461 100644 --- a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/reachability.proto +++ b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/reachability.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkManagement.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1beta1;networkmanagement"; +option go_package = "cloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmanagementpb"; option java_multiple_files = true; option java_outer_classname = "ReachabilityServiceProto"; option java_package = "com.google.cloud.networkmanagement.v1beta1"; diff --git a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/trace.proto b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/trace.proto index 9035fcfe4078..bd14fd549cea 100644 --- a/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/trace.proto +++ b/packages/google-cloud-networkmanagement/protos/google/cloud/networkmanagement/v1beta1/trace.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.networkmanagement.v1beta1; option csharp_namespace = "Google.Cloud.NetworkManagement.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1beta1;networkmanagement"; +option go_package = "cloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmanagementpb"; option java_multiple_files = true; option java_outer_classname = "TraceProto"; option java_package = "com.google.cloud.networkmanagement.v1beta1"; diff --git a/packages/google-cloud-networkmanagement/protos/protos.json b/packages/google-cloud-networkmanagement/protos/protos.json index 05013ad84ae1..05a574e9fc52 100644 --- a/packages/google-cloud-networkmanagement/protos/protos.json +++ b/packages/google-cloud-networkmanagement/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.NetworkManagement.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1;networkmanagement", + "go_package": "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb", "java_multiple_files": true, "java_outer_classname": "ReachabilityServiceProto", "java_package": "com.google.cloud.networkmanagement.v1", @@ -1199,7 +1199,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.NetworkManagement.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1beta1;networkmanagement", + "go_package": "cloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmanagementpb", "java_multiple_files": true, "java_outer_classname": "ReachabilityServiceProto", "java_package": "com.google.cloud.networkmanagement.v1beta1", diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/authorization_policy.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/authorization_policy.proto index e66afdddec2e..7d720d4e9c4f 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/authorization_policy.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/authorization_policy.proto @@ -22,7 +22,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "AuthorizationPolicyProto"; option java_package = "com.google.cloud.networksecurity.v1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/client_tls_policy.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/client_tls_policy.proto index 4cba3efac4bf..e201dd82c1ce 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/client_tls_policy.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/client_tls_policy.proto @@ -23,7 +23,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "ClientTlsPolicyProto"; option java_package = "com.google.cloud.networksecurity.v1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/common.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/common.proto index 1ec1905bf365..728b9b089452 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/common.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/common.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.networksecurity.v1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/network_security.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/network_security.proto index addce1e17e83..a77d11f6b259 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/network_security.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/network_security.proto @@ -24,7 +24,7 @@ import "google/cloud/networksecurity/v1/server_tls_policy.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_package = "com.google.cloud.networksecurity.v1"; option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/server_tls_policy.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/server_tls_policy.proto index fb549068ac34..c837d4a61f4e 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/server_tls_policy.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/server_tls_policy.proto @@ -23,7 +23,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "ServerTlsPolicyProto"; option java_package = "com.google.cloud.networksecurity.v1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/tls.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/tls.proto index 2b23d8ef1aff..2a82818593e2 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/tls.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1/tls.proto @@ -19,7 +19,7 @@ package google.cloud.networksecurity.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "TlsProto"; option java_package = "com.google.cloud.networksecurity.v1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/authorization_policy.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/authorization_policy.proto index afae9ba5da83..e52f06d6a89d 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/authorization_policy.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/authorization_policy.proto @@ -22,7 +22,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "AuthorizationPolicyProto"; option java_package = "com.google.cloud.networksecurity.v1beta1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/client_tls_policy.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/client_tls_policy.proto index 8f10ad7fb9bc..23b510774100 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/client_tls_policy.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/client_tls_policy.proto @@ -23,7 +23,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "ClientTlsPolicyProto"; option java_package = "com.google.cloud.networksecurity.v1beta1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/common.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/common.proto index 7aa715d52c65..04f37a45ec9e 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/common.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/common.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.networksecurity.v1beta1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/network_security.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/network_security.proto index bd1fc8ce012e..157948f65c5a 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/network_security.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/network_security.proto @@ -24,7 +24,7 @@ import "google/cloud/networksecurity/v1beta1/server_tls_policy.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_package = "com.google.cloud.networksecurity.v1beta1"; option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1beta1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/server_tls_policy.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/server_tls_policy.proto index ce92cfce6336..02b5a7443bce 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/server_tls_policy.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/server_tls_policy.proto @@ -23,7 +23,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "ServerTlsPolicyProto"; option java_package = "com.google.cloud.networksecurity.v1beta1"; diff --git a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/tls.proto b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/tls.proto index 3addee9fde63..f160146c1866 100644 --- a/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/tls.proto +++ b/packages/google-cloud-networksecurity/protos/google/cloud/networksecurity/v1beta1/tls.proto @@ -19,7 +19,7 @@ package google.cloud.networksecurity.v1beta1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity"; +option go_package = "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb"; option java_multiple_files = true; option java_outer_classname = "TlsProto"; option java_package = "com.google.cloud.networksecurity.v1beta1"; diff --git a/packages/google-cloud-networksecurity/protos/protos.json b/packages/google-cloud-networksecurity/protos/protos.json index e847f225d552..c37010cf0fee 100644 --- a/packages/google-cloud-networksecurity/protos/protos.json +++ b/packages/google-cloud-networksecurity/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.NetworkSecurity.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/networksecurity/v1;networksecurity", + "go_package": "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb", "java_multiple_files": true, "java_outer_classname": "ServerTlsPolicyProto", "java_package": "com.google.cloud.networksecurity.v1", @@ -1101,7 +1101,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.NetworkSecurity.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1;networksecurity", + "go_package": "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb", "java_multiple_files": true, "java_outer_classname": "ServerTlsPolicyProto", "java_package": "com.google.cloud.networksecurity.v1beta1", diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/diagnostic_config.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/diagnostic_config.proto index dcde42557c79..11a8198ccfb9 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/diagnostic_config.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/diagnostic_config.proto @@ -18,7 +18,7 @@ package google.cloud.notebooks.v1; import "google/api/field_behavior.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "DiagnosticConfigProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/environment.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/environment.proto index 1aff9bab71d8..92aa1ffc7a50 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/environment.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/environment.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Notebooks.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "EnvironmentProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/event.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/event.proto index bb0c91cf40d7..66d58bbf9270 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/event.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/event.proto @@ -19,7 +19,7 @@ package google.cloud.notebooks.v1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "EventProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/execution.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/execution.proto index 4d40f93d81f7..4d4e2825099e 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/execution.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/execution.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "ExecutionProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/instance.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/instance.proto index 3ab01a1eaff3..6354b3c460a6 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/instance.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/instance.proto @@ -22,7 +22,7 @@ import "google/cloud/notebooks/v1/environment.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Notebooks.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "InstanceProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/instance_config.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/instance_config.proto index ebe67df34eee..77ac3714e116 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/instance_config.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/instance_config.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.notebooks.v1; option csharp_namespace = "Google.Cloud.Notebooks.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "InstanceConfigProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/managed_service.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/managed_service.proto index ee5836ffd08d..cc0ab598baf7 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/managed_service.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/managed_service.proto @@ -28,7 +28,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Notebooks.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "ManagedNotebooksProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/runtime.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/runtime.proto index 990f7f8d6521..6f23a2b24243 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/runtime.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/runtime.proto @@ -22,7 +22,7 @@ import "google/cloud/notebooks/v1/environment.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Notebooks.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "RuntimeProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/schedule.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/schedule.proto index 75216af17f57..671b5d1b8d97 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/schedule.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/schedule.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/notebooks/v1/execution.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "ScheduleProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/service.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/service.proto index e2011edad80d..744dc72d9550 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/service.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1/service.proto @@ -30,7 +30,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Notebooks.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "NotebooksProto"; option java_package = "com.google.cloud.notebooks.v1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/environment.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/environment.proto index 3bf88450cd48..ab26aeda4636 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/environment.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/environment.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Notebooks.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1beta1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "EnvironmentProto"; option java_package = "com.google.cloud.notebooks.v1beta1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/instance.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/instance.proto index 1892de1ca3d4..18d21d864bf1 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/instance.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/instance.proto @@ -22,7 +22,7 @@ import "google/cloud/notebooks/v1beta1/environment.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Notebooks.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1beta1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "InstanceProto"; option java_package = "com.google.cloud.notebooks.v1beta1"; diff --git a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/service.proto b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/service.proto index 6164cad34135..37fabfc65515 100644 --- a/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/service.proto +++ b/packages/google-cloud-notebooks/protos/google/cloud/notebooks/v1beta1/service.proto @@ -25,7 +25,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Notebooks.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1;notebooks"; +option go_package = "cloud.google.com/go/notebooks/apiv1beta1/notebookspb;notebookspb"; option java_multiple_files = true; option java_outer_classname = "NotebooksProto"; option java_package = "com.google.cloud.notebooks.v1beta1"; diff --git a/packages/google-cloud-notebooks/protos/protos.json b/packages/google-cloud-notebooks/protos/protos.json index 4b44e57b52f3..c8293f6d5c57 100644 --- a/packages/google-cloud-notebooks/protos/protos.json +++ b/packages/google-cloud-notebooks/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks", + "go_package": "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb", "java_multiple_files": true, "java_outer_classname": "NotebooksProto", "java_package": "com.google.cloud.notebooks.v1", @@ -3750,7 +3750,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.Notebooks.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1;notebooks", + "go_package": "cloud.google.com/go/notebooks/apiv1beta1/notebookspb;notebookspb", "java_multiple_files": true, "java_outer_classname": "NotebooksProto", "java_package": "com.google.cloud.notebooks.v1beta1", diff --git a/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/async_model.proto b/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/async_model.proto index a2494e2e0693..a3da0e47970c 100644 --- a/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/async_model.proto +++ b/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/async_model.proto @@ -19,7 +19,7 @@ package google.cloud.optimization.v1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/optimization/v1;optimization"; +option go_package = "cloud.google.com/go/optimization/apiv1/optimizationpb;optimizationpb"; option java_multiple_files = true; option java_outer_classname = "AsyncModelProto"; option java_package = "com.google.cloud.optimization.v1"; diff --git a/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/fleet_routing.proto b/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/fleet_routing.proto index 4ede3ad43700..d641cdd0f38b 100644 --- a/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/fleet_routing.proto +++ b/packages/google-cloud-optimization/protos/google/cloud/optimization/v1/fleet_routing.proto @@ -25,7 +25,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/type/latlng.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/optimization/v1;optimization"; +option go_package = "cloud.google.com/go/optimization/apiv1/optimizationpb;optimizationpb"; option java_multiple_files = true; option java_outer_classname = "FleetRoutingProto"; option java_package = "com.google.cloud.optimization.v1"; diff --git a/packages/google-cloud-optimization/protos/protos.json b/packages/google-cloud-optimization/protos/protos.json index 386cf32afacb..2c7bd2ce4d73 100644 --- a/packages/google-cloud-optimization/protos/protos.json +++ b/packages/google-cloud-optimization/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/optimization/v1;optimization", + "go_package": "cloud.google.com/go/optimization/apiv1/optimizationpb;optimizationpb", "java_multiple_files": true, "java_outer_classname": "FleetRoutingProto", "java_package": "com.google.cloud.optimization.v1" diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto index 2c5b15d53e3e..2754df731869 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto +++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1;service"; +option go_package = "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb;servicepb"; option java_multiple_files = true; option java_package = "com.google.cloud.orchestration.airflow.service.v1"; diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/image_versions.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/image_versions.proto index 5a00c50180c8..9363574b720b 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/image_versions.proto +++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/image_versions.proto @@ -20,7 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/type/date.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1;service"; +option go_package = "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb;servicepb"; option java_multiple_files = true; option java_package = "com.google.cloud.orchestration.airflow.service.v1"; diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/operations.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/operations.proto index c899dcc9ea8c..8be3e9b4549a 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/operations.proto +++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/operations.proto @@ -18,7 +18,7 @@ package google.cloud.orchestration.airflow.service.v1; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1;service"; +option go_package = "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb;servicepb"; option java_multiple_files = true; option java_outer_classname = "OperationsProto"; option java_package = "com.google.cloud.orchestration.airflow.service.v1"; diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto index f78f79ae679a..a21e40bdfe4f 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto +++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1beta1;service"; +option go_package = "cloud.google.com/go/orchestration/airflow/service/apiv1beta1/servicepb;servicepb"; option java_multiple_files = true; option java_package = "com.google.cloud.orchestration.airflow.service.v1beta1"; diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/image_versions.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/image_versions.proto index 0d6292482349..98b467d4bf4f 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/image_versions.proto +++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/image_versions.proto @@ -20,7 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/type/date.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1beta1;service"; +option go_package = "cloud.google.com/go/orchestration/airflow/service/apiv1beta1/servicepb;servicepb"; option java_multiple_files = true; option java_package = "com.google.cloud.orchestration.airflow.service.v1beta1"; diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/operations.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/operations.proto index 1863129f7fa8..bb5d78b51fcb 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/operations.proto +++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/operations.proto @@ -18,7 +18,7 @@ package google.cloud.orchestration.airflow.service.v1beta1; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1beta1;service"; +option go_package = "cloud.google.com/go/orchestration/airflow/service/apiv1beta1/servicepb;servicepb"; option java_multiple_files = true; option java_outer_classname = "OperationsProto"; option java_package = "com.google.cloud.orchestration.airflow.service.v1beta1"; diff --git a/packages/google-cloud-orchestration-airflow-service/protos/protos.json b/packages/google-cloud-orchestration-airflow-service/protos/protos.json index 4649413cac0a..d137c6a6b7e3 100644 --- a/packages/google-cloud-orchestration-airflow-service/protos/protos.json +++ b/packages/google-cloud-orchestration-airflow-service/protos/protos.json @@ -12,7 +12,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1;service", + "go_package": "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb;servicepb", "java_multiple_files": true, "java_package": "com.google.cloud.orchestration.airflow.service.v1", "java_outer_classname": "OperationsProto" @@ -1194,7 +1194,7 @@ }, "v1beta1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1beta1;service", + "go_package": "cloud.google.com/go/orchestration/airflow/service/apiv1beta1/servicepb;servicepb", "java_multiple_files": true, "java_package": "com.google.cloud.orchestration.airflow.service.v1beta1", "java_outer_classname": "OperationsProto" diff --git a/packages/google-cloud-orgpolicy/protos/google/cloud/orgpolicy/v2/constraint.proto b/packages/google-cloud-orgpolicy/protos/google/cloud/orgpolicy/v2/constraint.proto index 9683a6a9c659..9a14e93fa879 100644 --- a/packages/google-cloud-orgpolicy/protos/google/cloud/orgpolicy/v2/constraint.proto +++ b/packages/google-cloud-orgpolicy/protos/google/cloud/orgpolicy/v2/constraint.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OrgPolicy.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2;orgpolicy"; +option go_package = "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb;orgpolicypb"; option java_multiple_files = true; option java_outer_classname = "ConstraintProto"; option java_package = "com.google.cloud.orgpolicy.v2"; diff --git a/packages/google-cloud-orgpolicy/protos/google/cloud/orgpolicy/v2/orgpolicy.proto b/packages/google-cloud-orgpolicy/protos/google/cloud/orgpolicy/v2/orgpolicy.proto index 1e4b7c00a2ad..0504d0748245 100644 --- a/packages/google-cloud-orgpolicy/protos/google/cloud/orgpolicy/v2/orgpolicy.proto +++ b/packages/google-cloud-orgpolicy/protos/google/cloud/orgpolicy/v2/orgpolicy.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/expr.proto"; option csharp_namespace = "Google.Cloud.OrgPolicy.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2;orgpolicy"; +option go_package = "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb;orgpolicypb"; option java_multiple_files = true; option java_outer_classname = "OrgPolicyProto"; option java_package = "com.google.cloud.orgpolicy.v2"; diff --git a/packages/google-cloud-orgpolicy/protos/protos.json b/packages/google-cloud-orgpolicy/protos/protos.json index 6c9afe05b364..9f119cc50e00 100644 --- a/packages/google-cloud-orgpolicy/protos/protos.json +++ b/packages/google-cloud-orgpolicy/protos/protos.json @@ -9,7 +9,7 @@ "v2": { "options": { "csharp_namespace": "Google.Cloud.OrgPolicy.V2", - "go_package": "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2;orgpolicy", + "go_package": "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb;orgpolicypb", "java_multiple_files": true, "java_outer_classname": "OrgPolicyProto", "java_package": "com.google.cloud.orgpolicy.v2", diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/inventory.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/inventory.proto index 92c2b81c8323..2807b85cb598 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/inventory.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/inventory.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "Inventories"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy.proto index de0db191797d..f1911199686b 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy.proto @@ -19,7 +19,7 @@ package google.cloud.osconfig.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OsPolicyProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto index aa4b2b11b4e8..c7f102b2d679 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignment_reports.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OSPolicyAssignmentReportsProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignments.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignments.proto index 157b8fd39894..73e10aeb6a3f 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignments.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/os_policy_assignments.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OsPolicyAssignmentsProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_common.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_common.proto index 2b72d6ae9451..baa6e37294b0 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_common.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_common.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.osconfig.v1; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_outer_classname = "Common"; option java_package = "com.google.cloud.osconfig.v1"; option php_namespace = "Google\\Cloud\\OsConfig\\V1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_service.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_service.proto index 515905c87d5a..c6afe3fa5b6a 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_service.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_service.proto @@ -24,7 +24,7 @@ import "google/protobuf/empty.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_outer_classname = "OsConfigProto"; option java_package = "com.google.cloud.osconfig.v1"; option php_namespace = "Google\\Cloud\\OsConfig\\V1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto index 196737c19412..671ed3c0d93e 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/osconfig_zonal_service.proto @@ -25,7 +25,7 @@ import "google/cloud/osconfig/v1/vulnerability.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OsConfigZonalServiceProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_deployments.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_deployments.proto index d5708544f8ba..ac45652d9d78 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_deployments.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_deployments.proto @@ -27,7 +27,7 @@ import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_outer_classname = "PatchDeployments"; option java_package = "com.google.cloud.osconfig.v1"; option php_namespace = "Google\\Cloud\\OsConfig\\V1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_jobs.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_jobs.proto index 4edfc8df5557..7c0b3400713e 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_jobs.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/patch_jobs.proto @@ -23,7 +23,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_outer_classname = "PatchJobs"; option java_package = "com.google.cloud.osconfig.v1"; option php_namespace = "Google\\Cloud\\OsConfig\\V1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/vulnerability.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/vulnerability.proto index b8ca5175ce04..b758df3bad00 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/vulnerability.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1/vulnerability.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "VulnerabilityProto"; option java_package = "com.google.cloud.osconfig.v1"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/config_common.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/config_common.proto index a7a50c716bf1..2fe52e14a66f 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/config_common.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/config_common.proto @@ -18,7 +18,7 @@ package google.cloud.osconfig.v1alpha; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "ConfigCommonProto"; option java_package = "com.google.cloud.osconfig.v1alpha"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto index 501ac3aef3fb..0d6eafc7fa25 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto @@ -22,7 +22,7 @@ import "google/cloud/osconfig/v1alpha/config_common.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "InstanceOSPoliciesComplianceProto"; option java_package = "com.google.cloud.osconfig.v1alpha"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/inventory.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/inventory.proto index c524ae1c93e5..a63416ae1a69 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/inventory.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/inventory.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "Inventories"; option java_package = "com.google.cloud.osconfig.v1alpha"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy.proto index 578d82a1e698..f822ecb4ceed 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy.proto @@ -19,7 +19,7 @@ package google.cloud.osconfig.v1alpha; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OsPolicyProto"; option java_package = "com.google.cloud.osconfig.v1alpha"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto index 87905bbf5e8a..6b00fb9e0cad 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OSPolicyAssignmentReportsProto"; option java_package = "com.google.cloud.osconfig.v1alpha"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignments.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignments.proto index 30106569fb8c..86b0cbb88d18 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignments.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/os_policy_assignments.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OsPolicyAssignmentsProto"; option java_package = "com.google.cloud.osconfig.v1alpha"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_common.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_common.proto index 1d2b58ac6cd5..49bfeca0c346 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_common.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_common.proto @@ -18,7 +18,7 @@ package google.cloud.osconfig.v1alpha; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "Common"; option java_package = "com.google.cloud.osconfig.v1alpha"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto index bb73fbd0331f..439efa9d78ff 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto @@ -27,7 +27,7 @@ import "google/cloud/osconfig/v1alpha/vulnerability.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "OsConfigZonalServiceProto"; option java_package = "com.google.cloud.osconfig.v1alpha"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/vulnerability.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/vulnerability.proto index 54080ba759d8..2ea9784fd851 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/vulnerability.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1alpha/vulnerability.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb"; option java_multiple_files = true; option java_outer_classname = "VulnerabilityProto"; option java_package = "com.google.cloud.osconfig.v1alpha"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/guest_policies.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/guest_policies.proto index 9ff7bb0e8a17..5534bb9d89fb 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/guest_policies.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/guest_policies.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1beta/osconfigpb;osconfigpb"; option java_outer_classname = "GuestPolicies"; option java_package = "com.google.cloud.osconfig.v1beta"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/osconfig_common.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/osconfig_common.proto index 8cee0d93dea3..959b39c51fbd 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/osconfig_common.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/osconfig_common.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.osconfig.v1beta; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1beta/osconfigpb;osconfigpb"; option java_outer_classname = "Common"; option java_package = "com.google.cloud.osconfig.v1beta"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/osconfig_service.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/osconfig_service.proto index d69b7f799fb0..8882f2314d6d 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/osconfig_service.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/osconfig_service.proto @@ -23,7 +23,7 @@ import "google/cloud/osconfig/v1beta/patch_deployments.proto"; import "google/cloud/osconfig/v1beta/patch_jobs.proto"; import "google/protobuf/empty.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1beta/osconfigpb;osconfigpb"; option java_outer_classname = "OsConfigProto"; option java_package = "com.google.cloud.osconfig.v1beta"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/patch_deployments.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/patch_deployments.proto index b37758f11f38..127cc6a2c42d 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/patch_deployments.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/patch_deployments.proto @@ -26,7 +26,7 @@ import "google/type/datetime.proto"; import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1beta/osconfigpb;osconfigpb"; option java_outer_classname = "PatchDeployments"; option java_package = "com.google.cloud.osconfig.v1beta"; diff --git a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/patch_jobs.proto b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/patch_jobs.proto index 6ea11859afe8..c691bc7e6a7e 100644 --- a/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/patch_jobs.proto +++ b/packages/google-cloud-osconfig/protos/google/cloud/osconfig/v1beta/patch_jobs.proto @@ -22,7 +22,7 @@ import "google/cloud/osconfig/v1beta/osconfig_common.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta;osconfig"; +option go_package = "cloud.google.com/go/osconfig/apiv1beta/osconfigpb;osconfigpb"; option java_outer_classname = "PatchJobs"; option java_package = "com.google.cloud.osconfig.v1beta"; diff --git a/packages/google-cloud-osconfig/protos/protos.json b/packages/google-cloud-osconfig/protos/protos.json index d246c893376f..223c4f50eb09 100644 --- a/packages/google-cloud-osconfig/protos/protos.json +++ b/packages/google-cloud-osconfig/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.OsConfig.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig", + "go_package": "cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb", "java_multiple_files": true, "java_outer_classname": "VulnerabilityProto", "java_package": "com.google.cloud.osconfig.v1", @@ -3357,7 +3357,7 @@ "v1alpha": { "options": { "csharp_namespace": "Google.Cloud.OsConfig.V1Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig", + "go_package": "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb", "java_multiple_files": true, "java_outer_classname": "VulnerabilityProto", "java_package": "com.google.cloud.osconfig.v1alpha", @@ -5763,7 +5763,7 @@ }, "v1beta": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta;osconfig", + "go_package": "cloud.google.com/go/osconfig/apiv1beta/osconfigpb;osconfigpb", "java_outer_classname": "PatchJobs", "java_package": "com.google.cloud.osconfig.v1beta" }, diff --git a/packages/google-cloud-oslogin/protos/google/cloud/oslogin/common/common.proto b/packages/google-cloud-oslogin/protos/google/cloud/oslogin/common/common.proto index 6eeaf8908d86..de96a9b51fea 100644 --- a/packages/google-cloud-oslogin/protos/google/cloud/oslogin/common/common.proto +++ b/packages/google-cloud-oslogin/protos/google/cloud/oslogin/common/common.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.OsLogin.Common"; -option go_package = "google.golang.org/genproto/googleapis/cloud/oslogin/common;common"; +option go_package = "cloud.google.com/go/oslogin/common/commonpb;commonpb"; option java_outer_classname = "OsLoginProto"; option java_package = "com.google.cloud.oslogin.common"; option php_namespace = "Google\\Cloud\\OsLogin\\Common"; diff --git a/packages/google-cloud-oslogin/protos/google/cloud/oslogin/v1/oslogin.proto b/packages/google-cloud-oslogin/protos/google/cloud/oslogin/v1/oslogin.proto index e5a1810b0b03..0b4f570255aa 100644 --- a/packages/google-cloud-oslogin/protos/google/cloud/oslogin/v1/oslogin.proto +++ b/packages/google-cloud-oslogin/protos/google/cloud/oslogin/v1/oslogin.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.OsLogin.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin"; +option go_package = "cloud.google.com/go/oslogin/apiv1/osloginpb;osloginpb"; option java_multiple_files = true; option java_outer_classname = "OsLoginProto"; option java_package = "com.google.cloud.oslogin.v1"; diff --git a/packages/google-cloud-oslogin/protos/google/cloud/oslogin/v1beta/oslogin.proto b/packages/google-cloud-oslogin/protos/google/cloud/oslogin/v1beta/oslogin.proto index 841d1a407e2d..6154a79d4d09 100644 --- a/packages/google-cloud-oslogin/protos/google/cloud/oslogin/v1beta/oslogin.proto +++ b/packages/google-cloud-oslogin/protos/google/cloud/oslogin/v1beta/oslogin.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.OsLogin.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta;oslogin"; +option go_package = "cloud.google.com/go/oslogin/apiv1beta/osloginpb;osloginpb"; option java_multiple_files = true; option java_outer_classname = "OsLoginProto"; option java_package = "com.google.cloud.oslogin.v1beta"; diff --git a/packages/google-cloud-oslogin/protos/protos.json b/packages/google-cloud-oslogin/protos/protos.json index b3d32e35c8a6..ec03db039643 100644 --- a/packages/google-cloud-oslogin/protos/protos.json +++ b/packages/google-cloud-oslogin/protos/protos.json @@ -9,7 +9,7 @@ "common": { "options": { "csharp_namespace": "Google.Cloud.OsLogin.Common", - "go_package": "google.golang.org/genproto/googleapis/cloud/oslogin/common;common", + "go_package": "cloud.google.com/go/oslogin/common/commonpb;commonpb", "java_outer_classname": "OsLoginProto", "java_package": "com.google.cloud.oslogin.common", "php_namespace": "Google\\Cloud\\OsLogin\\Common", @@ -118,7 +118,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.OsLogin.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin", + "go_package": "cloud.google.com/go/oslogin/apiv1/osloginpb;osloginpb", "java_multiple_files": true, "java_outer_classname": "OsLoginProto", "java_package": "com.google.cloud.oslogin.v1", @@ -431,7 +431,7 @@ "v1beta": { "options": { "csharp_namespace": "Google.Cloud.OsLogin.V1Beta", - "go_package": "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta;oslogin", + "go_package": "cloud.google.com/go/oslogin/apiv1beta/osloginpb;osloginpb", "java_multiple_files": true, "java_outer_classname": "OsLoginProto", "java_package": "com.google.cloud.oslogin.v1beta", diff --git a/packages/google-cloud-phishingprotection/owlbot.py b/packages/google-cloud-phishingprotection/owlbot.py deleted file mode 100644 index e6f45149ff59..000000000000 --- a/packages/google-cloud-phishingprotection/owlbot.py +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool.languages.node as node - -node.owlbot_main(templates_excludes=[".github/release-please.yml"]) diff --git a/packages/google-cloud-phishingprotection/protos/google/cloud/phishingprotection/v1beta1/phishingprotection.proto b/packages/google-cloud-phishingprotection/protos/google/cloud/phishingprotection/v1beta1/phishingprotection.proto index 01a89ec2bb10..82eb6af4424d 100644 --- a/packages/google-cloud-phishingprotection/protos/google/cloud/phishingprotection/v1beta1/phishingprotection.proto +++ b/packages/google-cloud-phishingprotection/protos/google/cloud/phishingprotection/v1beta1/phishingprotection.proto @@ -23,7 +23,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.PhishingProtection.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/phishingprotection/v1beta1;phishingprotection"; +option go_package = "cloud.google.com/go/phishingprotection/apiv1beta1/phishingprotectionpb;phishingprotectionpb"; option java_multiple_files = true; option java_outer_classname = "PhishingProtectionProto"; option java_package = "com.google.phishingprotection.v1beta1"; diff --git a/packages/google-cloud-phishingprotection/protos/protos.json b/packages/google-cloud-phishingprotection/protos/protos.json index 38e6a8a57595..8d4ab5fcb541 100644 --- a/packages/google-cloud-phishingprotection/protos/protos.json +++ b/packages/google-cloud-phishingprotection/protos/protos.json @@ -9,7 +9,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.PhishingProtection.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/phishingprotection/v1beta1;phishingprotection", + "go_package": "cloud.google.com/go/phishingprotection/apiv1beta1/phishingprotectionpb;phishingprotectionpb", "java_multiple_files": true, "java_outer_classname": "PhishingProtectionProto", "java_package": "com.google.phishingprotection.v1beta1", diff --git a/packages/google-cloud-policytroubleshooter/protos/google/cloud/policytroubleshooter/v1/checker.proto b/packages/google-cloud-policytroubleshooter/protos/google/cloud/policytroubleshooter/v1/checker.proto index 1b20892ec70a..bd6d755878eb 100644 --- a/packages/google-cloud-policytroubleshooter/protos/google/cloud/policytroubleshooter/v1/checker.proto +++ b/packages/google-cloud-policytroubleshooter/protos/google/cloud/policytroubleshooter/v1/checker.proto @@ -23,7 +23,7 @@ import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PolicyTroubleshooter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/policytroubleshooter/v1;policytroubleshooter"; +option go_package = "cloud.google.com/go/policytroubleshooter/apiv1/policytroubleshooterpb;policytroubleshooterpb"; option java_multiple_files = true; option java_outer_classname = "IAMCheckerProto"; option java_package = "com.google.cloud.policytroubleshooter.v1"; diff --git a/packages/google-cloud-policytroubleshooter/protos/google/cloud/policytroubleshooter/v1/explanations.proto b/packages/google-cloud-policytroubleshooter/protos/google/cloud/policytroubleshooter/v1/explanations.proto index 1eb2a58ce7bc..78b56b96ad63 100644 --- a/packages/google-cloud-policytroubleshooter/protos/google/cloud/policytroubleshooter/v1/explanations.proto +++ b/packages/google-cloud-policytroubleshooter/protos/google/cloud/policytroubleshooter/v1/explanations.proto @@ -22,7 +22,7 @@ import "google/iam/v1/policy.proto"; import "google/type/expr.proto"; option csharp_namespace = "Google.Cloud.PolicyTroubleshooter.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/policytroubleshooter/v1;policytroubleshooter"; +option go_package = "cloud.google.com/go/policytroubleshooter/apiv1/policytroubleshooterpb;policytroubleshooterpb"; option php_namespace = "Google\\Cloud\\PolicyTroubleshooter\\V1"; option ruby_package = "Google::Cloud::PolicyTroubleshooter::V1"; diff --git a/packages/google-cloud-policytroubleshooter/protos/protos.json b/packages/google-cloud-policytroubleshooter/protos/protos.json index 3f3c32e0a856..485a67735772 100644 --- a/packages/google-cloud-policytroubleshooter/protos/protos.json +++ b/packages/google-cloud-policytroubleshooter/protos/protos.json @@ -10,7 +10,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Cloud.PolicyTroubleshooter.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/policytroubleshooter/v1;policytroubleshooter", + "go_package": "cloud.google.com/go/policytroubleshooter/apiv1/policytroubleshooterpb;policytroubleshooterpb", "java_multiple_files": true, "java_outer_classname": "IAMCheckerProto", "java_package": "com.google.cloud.policytroubleshooter.v1", diff --git a/packages/google-cloud-privatecatalog/protos/google/cloud/privatecatalog/v1beta1/private_catalog.proto b/packages/google-cloud-privatecatalog/protos/google/cloud/privatecatalog/v1beta1/private_catalog.proto index 4b1f6e54ec4d..1ee777143578 100644 --- a/packages/google-cloud-privatecatalog/protos/google/cloud/privatecatalog/v1beta1/private_catalog.proto +++ b/packages/google-cloud-privatecatalog/protos/google/cloud/privatecatalog/v1beta1/private_catalog.proto @@ -25,7 +25,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.PrivateCatalog.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/privatecatalog/v1beta1;privatecatalog"; +option go_package = "cloud.google.com/go/privatecatalog/apiv1beta1/privatecatalogpb;privatecatalogpb"; option java_multiple_files = true; option java_outer_classname = "PrivateCatalogProto"; option java_package = "com.google.cloud.privatecatalog.v1beta1"; diff --git a/packages/google-cloud-privatecatalog/protos/protos.json b/packages/google-cloud-privatecatalog/protos/protos.json index 343dacf295a6..ebe2d5b8dc4f 100644 --- a/packages/google-cloud-privatecatalog/protos/protos.json +++ b/packages/google-cloud-privatecatalog/protos/protos.json @@ -9,7 +9,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.PrivateCatalog.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/privatecatalog/v1beta1;privatecatalog", + "go_package": "cloud.google.com/go/privatecatalog/apiv1beta1/privatecatalogpb;privatecatalogpb", "java_multiple_files": true, "java_outer_classname": "PrivateCatalogProto", "java_package": "com.google.cloud.privatecatalog.v1beta1", diff --git a/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto index 12e5852d50c7..5c90c5493ddc 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto +++ b/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.RecaptchaEnterprise.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1;recaptchaenterprise"; +option go_package = "cloud.google.com/go/recaptchaenterprise/apiv1/recaptchaenterprisepb;recaptchaenterprisepb"; option java_multiple_files = true; option java_outer_classname = "RecaptchaEnterpriseProto"; option java_package = "com.google.recaptchaenterprise.v1"; diff --git a/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto b/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto index 28a07a8e51b3..ba7aaaa6a91f 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto +++ b/packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.RecaptchaEnterprise.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1beta1;recaptchaenterprise"; +option go_package = "cloud.google.com/go/recaptchaenterprise/apiv1beta1/recaptchaenterprisepb;recaptchaenterprisepb"; option java_multiple_files = true; option java_outer_classname = "RecaptchaEnterpriseProto"; option java_package = "com.google.recaptchaenterprise.v1beta1"; diff --git a/packages/google-cloud-recaptchaenterprise/protos/protos.json b/packages/google-cloud-recaptchaenterprise/protos/protos.json index 30e689d5a789..0c61272546e9 100644 --- a/packages/google-cloud-recaptchaenterprise/protos/protos.json +++ b/packages/google-cloud-recaptchaenterprise/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.RecaptchaEnterprise.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1;recaptchaenterprise", + "go_package": "cloud.google.com/go/recaptchaenterprise/apiv1/recaptchaenterprisepb;recaptchaenterprisepb", "java_multiple_files": true, "java_outer_classname": "RecaptchaEnterpriseProto", "java_package": "com.google.recaptchaenterprise.v1", @@ -1201,7 +1201,7 @@ "v1beta1": { "options": { "csharp_namespace": "Google.Cloud.RecaptchaEnterprise.V1Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1beta1;recaptchaenterprise", + "go_package": "cloud.google.com/go/recaptchaenterprise/apiv1beta1/recaptchaenterprisepb;recaptchaenterprisepb", "java_multiple_files": true, "java_outer_classname": "RecaptchaEnterpriseProto", "java_package": "com.google.recaptchaenterprise.v1beta1", diff --git a/packages/google-cloud-recommender/.jsdoc.js b/packages/google-cloud-recommender/.jsdoc.js index 020db4c57e85..c2e2fb04e21e 100644 --- a/packages/google-cloud-recommender/.jsdoc.js +++ b/packages/google-cloud-recommender/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2021 Google LLC', + copyright: 'Copyright 2023 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/recommender', diff --git a/packages/google-cloud-recommender/README.md b/packages/google-cloud-recommender/README.md index 7a343361f211..274422cbc751 100644 --- a/packages/google-cloud-recommender/README.md +++ b/packages/google-cloud-recommender/README.md @@ -89,6 +89,30 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Recommender.get_insight | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight.js,samples/README.md) | +| Recommender.get_insight_type_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight_type_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight_type_config.js,samples/README.md) | +| Recommender.get_recommendation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommendation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommendation.js,samples/README.md) | +| Recommender.get_recommender_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommender_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommender_config.js,samples/README.md) | +| Recommender.list_insights | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.list_insights.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.list_insights.js,samples/README.md) | +| Recommender.list_recommendations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.list_recommendations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.list_recommendations.js,samples/README.md) | +| Recommender.mark_insight_accepted | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_insight_accepted.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.mark_insight_accepted.js,samples/README.md) | +| Recommender.mark_recommendation_claimed | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_claimed.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_claimed.js,samples/README.md) | +| Recommender.mark_recommendation_failed | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_failed.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_failed.js,samples/README.md) | +| Recommender.mark_recommendation_succeeded | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_succeeded.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_succeeded.js,samples/README.md) | +| Recommender.update_insight_type_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.update_insight_type_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.update_insight_type_config.js,samples/README.md) | +| Recommender.update_recommender_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.update_recommender_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.update_recommender_config.js,samples/README.md) | +| Recommender.get_insight | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight.js,samples/README.md) | +| Recommender.get_insight_type_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight_type_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight_type_config.js,samples/README.md) | +| Recommender.get_recommendation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommendation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommendation.js,samples/README.md) | +| Recommender.get_recommender_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommender_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommender_config.js,samples/README.md) | +| Recommender.list_insights | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_insights.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_insights.js,samples/README.md) | +| Recommender.list_recommendations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_recommendations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_recommendations.js,samples/README.md) | +| Recommender.mark_insight_accepted | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_insight_accepted.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_insight_accepted.js,samples/README.md) | +| Recommender.mark_recommendation_claimed | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_claimed.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_claimed.js,samples/README.md) | +| Recommender.mark_recommendation_failed | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_failed.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_failed.js,samples/README.md) | +| Recommender.mark_recommendation_succeeded | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js,samples/README.md) | +| Recommender.update_insight_type_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_insight_type_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_insight_type_config.js,samples/README.md) | +| Recommender.update_recommender_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_recommender_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_recommender_config.js,samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/quickstart.js,samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/test/quickstart.js,samples/README.md) | diff --git a/packages/google-cloud-recommender/linkinator.config.json b/packages/google-cloud-recommender/linkinator.config.json index 29a223b6db64..befd23c86335 100644 --- a/packages/google-cloud-recommender/linkinator.config.json +++ b/packages/google-cloud-recommender/linkinator.config.json @@ -3,8 +3,14 @@ "skip": [ "https://codecov.io/gh/googleapis/", "www.googleapis.com", - "img.shields.io" + "img.shields.io", + "https://console.cloud.google.com/cloudshell", + "https://support.google.com" ], "silent": true, - "concurrency": 10 + "concurrency": 5, + "retry": true, + "retryErrors": true, + "retryErrorsCount": 5, + "retryErrorsJitter": 3000 } diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/insight.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/insight.proto index e561b8381800..2d7c01339e33 100644 --- a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/insight.proto +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/insight.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Recommender.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/recommender/v1;recommender"; +option go_package = "cloud.google.com/go/recommender/apiv1/recommenderpb;recommenderpb"; option java_multiple_files = true; option java_outer_classname = "InsightProto"; option java_package = "com.google.cloud.recommender.v1"; @@ -46,13 +46,6 @@ message Insight { pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" }; - // Reference to an associated recommendation. - message RecommendationReference { - // Recommendation resource name, e.g. - // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID] - string recommendation = 1; - } - // Insight category. enum Category { // Unspecified category. @@ -71,6 +64,31 @@ message Insight { MANAGEABILITY = 4; } + // Insight severity levels. + enum Severity { + // Insight has unspecified severity. + SEVERITY_UNSPECIFIED = 0; + + // Insight has low severity. + LOW = 1; + + // Insight has medium severity. + MEDIUM = 2; + + // Insight has high severity. + HIGH = 3; + + // Insight has critical severity. + CRITICAL = 4; + } + + // Reference to an associated recommendation. + message RecommendationReference { + // Recommendation resource name, e.g. + // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID] + string recommendation = 1; + } + // Name of the insight. string name = 1; @@ -102,6 +120,9 @@ message Insight { // Category being targeted by the insight. Category category = 7; + // Insight's severity. + Severity severity = 15; + // Fingerprint of the Insight. Provides optimistic locking when updating // states. string etag = 11; diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/insight_type_config.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/insight_type_config.proto new file mode 100644 index 000000000000..742864bc75b3 --- /dev/null +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/insight_type_config.proto @@ -0,0 +1,85 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.recommender.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Recommender.V1"; +option go_package = "cloud.google.com/go/recommender/apiv1/recommenderpb;recommenderpb"; +option java_multiple_files = true; +option java_outer_classname = "InsightTypeConfigProto"; +option java_package = "com.google.cloud.recommender.v1"; +option objc_class_prefix = "CREC"; + +// Configuration for an InsightType. +message InsightTypeConfig { + option (google.api.resource) = { + type: "recommender.googleapis.com/InsightTypeConfig" + pattern: "projects/{project}/locations/{location}/insightTypes/{insight_type}/config" + pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}/config" + }; + + // Name of insight type config. + // Eg, + // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config + string name = 1; + + // InsightTypeGenerationConfig which configures the generation of + // insights for this insight type. + InsightTypeGenerationConfig insight_type_generation_config = 2; + + // Fingerprint of the InsightTypeConfig. Provides optimistic locking when + // updating. + string etag = 3; + + // Last time when the config was updated. + google.protobuf.Timestamp update_time = 4; + + // Output only. Immutable. The revision ID of the config. + // A new revision is committed whenever the config is changed in any way. + // The format is an 8-character hexadecimal string. + string revision_id = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Allows clients to store small amounts of arbitrary data. Annotations must + // follow the Kubernetes syntax. + // The total size of all keys and values combined is limited to 256k. + // Key can have 2 segments: prefix (optional) and name (required), + // separated by a slash (/). + // Prefix must be a DNS subdomain. + // Name must be 63 characters or less, begin and end with alphanumerics, + // with dashes (-), underscores (_), dots (.), and alphanumerics between. + map annotations = 6; + + // A user-settable field to provide a human-readable name to be used in user + // interfaces. + string display_name = 7; +} + +// A configuration to customize the generation of insights. +// Eg, customizing the lookback period considered when generating a +// insight. +message InsightTypeGenerationConfig { + // Parameters for this InsightTypeGenerationConfig. These configs can be used + // by or are applied to all subtypes. + google.protobuf.Struct params = 1; +} diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommendation.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommendation.proto index 78f8f10c278b..fd1533456880 100644 --- a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommendation.proto +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommendation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/money.proto"; option csharp_namespace = "Google.Cloud.Recommender.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/recommender/v1;recommender"; +option go_package = "cloud.google.com/go/recommender/apiv1/recommenderpb;recommenderpb"; option java_multiple_files = true; option java_package = "com.google.cloud.recommender.v1"; option objc_class_prefix = "CREC"; @@ -46,6 +46,24 @@ message Recommendation { pattern: "organizations/{organization}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" }; + // Recommendation priority levels. + enum Priority { + // Recommendation has unspecified priority. + PRIORITY_UNSPECIFIED = 0; + + // Recommendation has P4 priority (lowest priority). + P4 = 1; + + // Recommendation has P3 priority (second lowest priority). + P3 = 2; + + // Recommendation has P2 priority (second highest priority). + P2 = 3; + + // Recommendation has P1 priority (highest priority). + P1 = 4; + } + // Reference to an associated insight. message InsightReference { // Insight resource name, e.g. @@ -84,6 +102,9 @@ message Recommendation { // or negative. repeated Impact additional_impact = 6; + // Recommendation's priority. + Priority priority = 17; + // Content of the recommendation describing recommended changes to resources. RecommendationContent content = 7; @@ -96,6 +117,12 @@ message Recommendation { // Insights that led to this recommendation. repeated InsightReference associated_insights = 14; + + // Corresponds to a mutually exclusive group ID within a recommender. + // A non-empty ID indicates that the recommendation belongs to a mutually + // exclusive group. This means that only one recommendation within the group + // is suggested to be applied. + string xor_group_id = 18; } // Contains what resources are changing and how they are changing. @@ -104,6 +131,9 @@ message RecommendationContent { // that, all operations within one group are expected to be performed // atomically and in an order. repeated OperationGroup operation_groups = 2; + + // Condensed overview information about the recommendation. + google.protobuf.Struct overview = 3; } // Group of operations that need to be performed atomically. @@ -123,7 +153,7 @@ message OperationGroup { // * Allows extension to custom operations not natively supported by RFC6902. // See https://tools.ietf.org/html/rfc6902 for details on the original RFC. message Operation { - // Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', + // Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', // 'copy', 'test' and custom operations. This field is case-insensitive and // always populated. string action = 1; @@ -171,24 +201,33 @@ message Operation { // This is intended to be an exact match per filter. To perform advanced // matching, use path_value_matchers. // - // * Example: { + // * Example: + // ``` + // { // "/versions/*/name" : "it-123" // "/versions/*/targetSize/percent": 20 - // } - // * Example: { + // } + // ``` + // * Example: + // ``` + // { // "/bindings/*/role": "roles/owner" // "/bindings/*/condition" : null - // } - // * Example: { + // } + // ``` + // * Example: + // ``` + // { // "/bindings/*/role": "roles/owner" // "/bindings/*/members/*" : ["x@example.com", "y@example.com"] - // } + // } + // ``` // When both path_filters and path_value_matchers are set, an implicit AND // must be performed. map path_filters = 8; // Similar to path_filters, this contains set of filters to apply if `path` - // field referes to array elements. This is meant to support value matching + // field refers to array elements. This is meant to support value matching // beyond exact match. To perform exact match, use path_filters. // When both path_filters and path_value_matchers are set, an implicit AND // must be performed. @@ -210,12 +249,21 @@ message CostProjection { // An approximate projection on amount saved or amount incurred. Negative cost // units indicate cost savings and positive cost units indicate increase. // See google.type.Money documentation for positive/negative units. + // + // A user's permissions may affect whether the cost is computed using list + // prices or custom contract prices. google.type.Money cost = 1; // Duration for which this cost applies. google.protobuf.Duration duration = 2; } +// Contains various ways of describing the impact on Security. +message SecurityProjection { + // Additional security impact details that is provided by the recommender. + google.protobuf.Struct details = 2; +} + // Contains the impact a recommendation can have for a given category. message Impact { // The category of the impact. @@ -243,6 +291,9 @@ message Impact { oneof projection { // Use with CategoryType.COST CostProjection cost_projection = 100; + + // Use with CategoryType.SECURITY + SecurityProjection security_projection = 101; } } diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommender_config.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommender_config.proto new file mode 100644 index 000000000000..0e0c613b9820 --- /dev/null +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommender_config.proto @@ -0,0 +1,85 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.recommender.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Recommender.V1"; +option go_package = "cloud.google.com/go/recommender/apiv1/recommenderpb;recommenderpb"; +option java_multiple_files = true; +option java_outer_classname = "RecommenderConfigProto"; +option java_package = "com.google.cloud.recommender.v1"; +option objc_class_prefix = "CREC"; + +// Configuration for a Recommender. +message RecommenderConfig { + option (google.api.resource) = { + type: "recommender.googleapis.com/RecommenderConfig" + pattern: "projects/{project}/locations/{location}/recommenders/{recommender}/config" + pattern: "organizations/{organization}/locations/{location}/recommenders/{recommender}/config" + }; + + // Name of recommender config. + // Eg, + // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config + string name = 1; + + // RecommenderGenerationConfig which configures the Generation of + // recommendations for this recommender. + RecommenderGenerationConfig recommender_generation_config = 2; + + // Fingerprint of the RecommenderConfig. Provides optimistic locking when + // updating. + string etag = 3; + + // Last time when the config was updated. + google.protobuf.Timestamp update_time = 4; + + // Output only. Immutable. The revision ID of the config. + // A new revision is committed whenever the config is changed in any way. + // The format is an 8-character hexadecimal string. + string revision_id = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Allows clients to store small amounts of arbitrary data. Annotations must + // follow the Kubernetes syntax. + // The total size of all keys and values combined is limited to 256k. + // Key can have 2 segments: prefix (optional) and name (required), + // separated by a slash (/). + // Prefix must be a DNS subdomain. + // Name must be 63 characters or less, begin and end with alphanumerics, + // with dashes (-), underscores (_), dots (.), and alphanumerics between. + map annotations = 6; + + // A user-settable field to provide a human-readable name to be used in user + // interfaces. + string display_name = 7; +} + +// A Configuration to customize the generation of recommendations. +// Eg, customizing the lookback period considered when generating a +// recommendation. +message RecommenderGenerationConfig { + // Parameters for this RecommenderGenerationConfig. These configs can be used + // by or are applied to all subtypes. + google.protobuf.Struct params = 1; +} diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommender_service.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommender_service.proto index f8816a92471a..947687639d1a 100644 --- a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommender_service.proto +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1/recommender_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,10 +21,13 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/recommender/v1/insight.proto"; +import "google/cloud/recommender/v1/insight_type_config.proto"; import "google/cloud/recommender/v1/recommendation.proto"; +import "google/cloud/recommender/v1/recommender_config.proto"; +import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Recommender.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/recommender/v1;recommender"; +option go_package = "cloud.google.com/go/recommender/apiv1/recommenderpb;recommenderpb"; option java_multiple_files = true; option java_outer_classname = "RecommenderProto"; option java_package = "com.google.cloud.recommender.v1"; @@ -36,10 +39,11 @@ option objc_class_prefix = "CREC"; // based on analysis of user resources, configuration and monitoring metrics. service Recommender { option (google.api.default_host) = "recommender.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; - // Lists insights for a Cloud project. Requires the recommender.*.list IAM - // permission for the specified insight type. + // Lists insights for the specified Cloud Resource. Requires the + // recommender.*.list IAM permission for the specified insight type. rpc ListInsights(ListInsightsRequest) returns (ListInsightsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/insightTypes/*}/insights" @@ -100,9 +104,10 @@ service Recommender { option (google.api.method_signature) = "name,state_metadata,etag"; } - // Lists recommendations for a Cloud project. Requires the recommender.*.list - // IAM permission for the specified recommender. - rpc ListRecommendations(ListRecommendationsRequest) returns (ListRecommendationsResponse) { + // Lists recommendations for the specified Cloud Resource. Requires the + // recommender.*.list IAM permission for the specified recommender. + rpc ListRecommendations(ListRecommendationsRequest) + returns (ListRecommendationsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/recommenders/*}/recommendations" additional_bindings { @@ -147,7 +152,8 @@ service Recommender { // // Requires the recommender.*.update IAM permission for the specified // recommender. - rpc MarkRecommendationClaimed(MarkRecommendationClaimedRequest) returns (Recommendation) { + rpc MarkRecommendationClaimed(MarkRecommendationClaimedRequest) + returns (Recommendation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed" body: "*" @@ -178,7 +184,8 @@ service Recommender { // // Requires the recommender.*.update IAM permission for the specified // recommender. - rpc MarkRecommendationSucceeded(MarkRecommendationSucceededRequest) returns (Recommendation) { + rpc MarkRecommendationSucceeded(MarkRecommendationSucceededRequest) + returns (Recommendation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" body: "*" @@ -209,7 +216,8 @@ service Recommender { // // Requires the recommender.*.update IAM permission for the specified // recommender. - rpc MarkRecommendationFailed(MarkRecommendationFailedRequest) returns (Recommendation) { + rpc MarkRecommendationFailed(MarkRecommendationFailedRequest) + returns (Recommendation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed" body: "*" @@ -228,6 +236,62 @@ service Recommender { }; option (google.api.method_signature) = "name,state_metadata,etag"; } + + // Gets the requested Recommender Config. There is only one instance of the + // config for each Recommender. + rpc GetRecommenderConfig(GetRecommenderConfigRequest) + returns (RecommenderConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/recommenders/*/config}" + additional_bindings { + get: "/v1/{name=organizations/*/locations/*/recommenders/*/config}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates a Recommender Config. This will create a new revision of the + // config. + rpc UpdateRecommenderConfig(UpdateRecommenderConfigRequest) + returns (RecommenderConfig) { + option (google.api.http) = { + patch: "/v1/{recommender_config.name=projects/*/locations/*/recommenders/*/config}" + body: "recommender_config" + additional_bindings { + patch: "/v1/{recommender_config.name=organizations/*/locations/*/recommenders/*/config}" + body: "recommender_config" + } + }; + option (google.api.method_signature) = "recommender_config,update_mask"; + } + + // Gets the requested InsightTypeConfig. There is only one instance of the + // config for each InsightType. + rpc GetInsightTypeConfig(GetInsightTypeConfigRequest) + returns (InsightTypeConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/insightTypes/*/config}" + additional_bindings { + get: "/v1/{name=organizations/*/locations/*/insightTypes/*/config}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates an InsightTypeConfig change. This will create a new revision of the + // config. + rpc UpdateInsightTypeConfig(UpdateInsightTypeConfigRequest) + returns (InsightTypeConfig) { + option (google.api.http) = { + patch: "/v1/{insight_type_config.name=projects/*/locations/*/insightTypes/*/config}" + body: "insight_type_config" + additional_bindings { + patch: "/v1/{insight_type_config.name=organizations/*/locations/*/insightTypes/*/config}" + body: "insight_type_config" + } + }; + option (google.api.method_signature) = "insight_type_config,update_mask"; + } } // Request for the `ListInsights` method. @@ -235,13 +299,20 @@ message ListInsightsRequest { // Required. The container resource on which to execute the request. // Acceptable formats: // - // 1. - // "projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]", + // * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + // + // * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + // + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + // + // * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + // + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` // // LOCATION here refers to GCP Locations: // https://cloud.google.com/about/locations/ // INSIGHT_TYPE_ID refers to supported insight types: - // https://cloud.google.com/recommender/docs/insights/insight-types.) + // https://cloud.google.com/recommender/docs/insights/insight-types. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -249,20 +320,38 @@ message ListInsightsRequest { } ]; - // Optional. The maximum number of results to return from this request. Non-positive - // values are ignored. If not specified, the server will determine the number - // of results to return. + // Optional. The maximum number of results to return from this request. + // Non-positive values are ignored. If not specified, the server will + // determine the number of results to return. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If present, retrieves the next batch of results from the preceding call to - // this method. `page_token` must be the value of `next_page_token` from the - // previous response. The values of other method parameters must be identical - // to those in the previous call. + // Optional. If present, retrieves the next batch of results from the + // preceding call to this method. `page_token` must be the value of + // `next_page_token` from the previous response. The values of other method + // parameters must be identical to those in the previous call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Filter expression to restrict the insights returned. Supported - // filter fields: state - // Eg: `state:"DISMISSED" or state:"ACTIVE" + // filter fields: + // + // * `stateInfo.state` + // + // * `insightSubtype` + // + // * `severity` + // + // Examples: + // + // * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + // + // * `insightSubtype = PERMISSIONS_USAGE` + // + // * `severity = CRITICAL OR severity = HIGH` + // + // * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + // + // (These expressions are based on the filter language described at + // https://google.aip.dev/160) string filter = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -297,9 +386,10 @@ message MarkInsightAcceptedRequest { } ]; - // Optional. State properties user wish to include with this state. Full replace of the - // current state_metadata. - map state_metadata = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. State properties user wish to include with this state. Full + // replace of the current state_metadata. + map state_metadata = 2 + [(google.api.field_behavior) = OPTIONAL]; // Required. Fingerprint of the Insight. Provides optimistic locking. string etag = 3 [(google.api.field_behavior) = REQUIRED]; @@ -310,8 +400,15 @@ message ListRecommendationsRequest { // Required. The container resource on which to execute the request. // Acceptable formats: // - // 1. - // "projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]", + // * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + // + // * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + // + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + // + // * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + // + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` // // LOCATION here refers to GCP Locations: // https://cloud.google.com/about/locations/ @@ -324,20 +421,38 @@ message ListRecommendationsRequest { } ]; - // Optional. The maximum number of results to return from this request. Non-positive - // values are ignored. If not specified, the server will determine the number - // of results to return. + // Optional. The maximum number of results to return from this request. + // Non-positive values are ignored. If not specified, the server will + // determine the number of results to return. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If present, retrieves the next batch of results from the preceding call to - // this method. `page_token` must be the value of `next_page_token` from the - // previous response. The values of other method parameters must be identical - // to those in the previous call. + // Optional. If present, retrieves the next batch of results from the + // preceding call to this method. `page_token` must be the value of + // `next_page_token` from the previous response. The values of other method + // parameters must be identical to those in the previous call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Filter expression to restrict the recommendations returned. Supported - // filter fields: state_info.state - // Eg: `state_info.state:"DISMISSED" or state_info.state:"FAILED" + // filter fields: + // + // * `state_info.state` + // + // * `recommenderSubtype` + // + // * `priority` + // + // Examples: + // + // * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + // + // * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + // + // * `priority = P1 OR priority = P2` + // + // * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + // + // (These expressions are based on the filter language described at + // https://google.aip.dev/160) string filter = 5; } @@ -374,8 +489,8 @@ message MarkRecommendationClaimedRequest { // State properties to include with this state. Overwrites any existing // `state_metadata`. - // Keys must match the regex /^[a-z0-9][a-z0-9_.-]{0,62}$/. - // Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/. + // Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + // Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. map state_metadata = 2; // Required. Fingerprint of the Recommendation. Provides optimistic locking. @@ -394,8 +509,8 @@ message MarkRecommendationSucceededRequest { // State properties to include with this state. Overwrites any existing // `state_metadata`. - // Keys must match the regex /^[a-z0-9][a-z0-9_.-]{0,62}$/. - // Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/. + // Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + // Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. map state_metadata = 2; // Required. Fingerprint of the Recommendation. Provides optimistic locking. @@ -414,10 +529,76 @@ message MarkRecommendationFailedRequest { // State properties to include with this state. Overwrites any existing // `state_metadata`. - // Keys must match the regex /^[a-z0-9][a-z0-9_.-]{0,62}$/. - // Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/. + // Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + // Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. map state_metadata = 2; // Required. Fingerprint of the Recommendation. Provides optimistic locking. string etag = 3 [(google.api.field_behavior) = REQUIRED]; } + +// Request for the GetRecommenderConfig` method. +message GetRecommenderConfigRequest { + // Required. Name of the Recommendation Config to get. + // + // Acceptable formats: + // + // * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + // + // * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + // + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/RecommenderConfig" + } + ]; +} + +// Request for the `UpdateRecommenderConfig` method. +message UpdateRecommenderConfigRequest { + // Required. The RecommenderConfig to update. + RecommenderConfig recommender_config = 1 + [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2; + + // If true, validate the request and preview the change, but do not actually + // update it. + bool validate_only = 3; +} + +// Request for the GetInsightTypeConfig` method. +message GetInsightTypeConfigRequest { + // Required. Name of the InsightTypeConfig to get. + // + // Acceptable formats: + // + // * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + // + // * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + // + // * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/InsightTypeConfig" + } + ]; +} + +// Request for the `UpdateInsightTypeConfig` method. +message UpdateInsightTypeConfigRequest { + // Required. The InsightTypeConfig to update. + InsightTypeConfig insight_type_config = 1 + [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2; + + // If true, validate the request and preview the change, but do not actually + // update it. + bool validate_only = 3; +} diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/insight.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/insight.proto new file mode 100644 index 000000000000..2fc7f6477e6a --- /dev/null +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/insight.proto @@ -0,0 +1,161 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.recommender.v1beta1; + +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Recommender.V1Beta1"; +option go_package = "cloud.google.com/go/recommender/apiv1beta1/recommenderpb;recommenderpb"; +option java_multiple_files = true; +option java_package = "com.google.cloud.recommender.v1beta1"; +option objc_class_prefix = "CREC"; +option (google.api.resource_definition) = { + type: "recommender.googleapis.com/InsightType" + pattern: "projects/{project}/locations/{location}/insightTypes/{insight_type}" + pattern: "billingAccounts/{billing_account}/locations/{location}/insightTypes/{insight_type}" + pattern: "folders/{folder}/locations/{location}/insightTypes/{insight_type}" + pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}" +}; + +// An insight along with the information used to derive the insight. The insight +// may have associated recomendations as well. +message Insight { + option (google.api.resource) = { + type: "recommender.googleapis.com/Insight" + pattern: "projects/{project}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + pattern: "billingAccounts/{billing_account}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + pattern: "folders/{folder}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + }; + + // Insight category. + enum Category { + // Unspecified category. + CATEGORY_UNSPECIFIED = 0; + + // The insight is related to cost. + COST = 1; + + // The insight is related to security. + SECURITY = 2; + + // The insight is related to performance. + PERFORMANCE = 3; + + // This insight is related to manageability. + MANAGEABILITY = 4; + } + + // Insight severity levels. + enum Severity { + // Insight has unspecified severity. + SEVERITY_UNSPECIFIED = 0; + + // Insight has low severity. + LOW = 1; + + // Insight has medium severity. + MEDIUM = 2; + + // Insight has high severity. + HIGH = 3; + + // Insight has critical severity. + CRITICAL = 4; + } + + // Reference to an associated recommendation. + message RecommendationReference { + // Recommendation resource name, e.g. + // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID] + string recommendation = 1; + } + + // Name of the insight. + string name = 1; + + // Free-form human readable summary in English. The maximum length is 500 + // characters. + string description = 2; + + // Fully qualified resource names that this insight is targeting. + repeated string target_resources = 9; + + // Insight subtype. Insight content schema will be stable for a given subtype. + string insight_subtype = 10; + + // A struct of custom fields to explain the insight. + // Example: "grantedPermissionsCount": "1000" + google.protobuf.Struct content = 3; + + // Timestamp of the latest data used to generate the insight. + google.protobuf.Timestamp last_refresh_time = 4; + + // Observation period that led to the insight. The source data used to + // generate the insight ends at last_refresh_time and begins at + // (last_refresh_time - observation_period). + google.protobuf.Duration observation_period = 5; + + // Information state and metadata. + InsightStateInfo state_info = 6; + + // Category being targeted by the insight. + Category category = 7; + + // Insight's severity. + Severity severity = 15; + + // Fingerprint of the Insight. Provides optimistic locking when updating + // states. + string etag = 11; + + // Recommendations derived from this insight. + repeated RecommendationReference associated_recommendations = 8; +} + +// Information related to insight state. +message InsightStateInfo { + // Represents insight state. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // Insight is active. Content for ACTIVE insights can be updated by Google. + // ACTIVE insights can be marked DISMISSED OR ACCEPTED. + ACTIVE = 1; + + // Some action has been taken based on this insight. Insights become + // accepted when a recommendation derived from the insight has been marked + // CLAIMED, SUCCEEDED, or FAILED. ACTIVE insights can also be marked + // ACCEPTED explicitly. Content for ACCEPTED insights is immutable. ACCEPTED + // insights can only be marked ACCEPTED (which may update state metadata). + ACCEPTED = 2; + + // Insight is dismissed. Content for DISMISSED insights can be updated by + // Google. DISMISSED insights can be marked as ACTIVE. + DISMISSED = 3; + } + + // Insight state. + State state = 1; + + // A map of metadata for the state, provided by user or automations systems. + map state_metadata = 2; +} diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/insight_type_config.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/insight_type_config.proto new file mode 100644 index 000000000000..e910a3d26d3b --- /dev/null +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/insight_type_config.proto @@ -0,0 +1,85 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.recommender.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Recommender.V1Beta1"; +option go_package = "cloud.google.com/go/recommender/apiv1beta1/recommenderpb;recommenderpb"; +option java_multiple_files = true; +option java_outer_classname = "InsightTypeConfigProto"; +option java_package = "com.google.cloud.recommender.v1beta1"; +option objc_class_prefix = "CREC"; + +// Configuration for an InsightType. +message InsightTypeConfig { + option (google.api.resource) = { + type: "recommender.googleapis.com/InsightTypeConfig" + pattern: "projects/{project}/locations/{location}/insightTypes/{insight_type}/config" + pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}/config" + }; + + // Name of insight type config. + // Eg, + // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config + string name = 1; + + // InsightTypeGenerationConfig which configures the generation of + // insights for this insight type. + InsightTypeGenerationConfig insight_type_generation_config = 2; + + // Fingerprint of the InsightTypeConfig. Provides optimistic locking when + // updating. + string etag = 3; + + // Last time when the config was updated. + google.protobuf.Timestamp update_time = 4; + + // Output only. Immutable. The revision ID of the config. + // A new revision is committed whenever the config is changed in any way. + // The format is an 8-character hexadecimal string. + string revision_id = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Allows clients to store small amounts of arbitrary data. Annotations must + // follow the Kubernetes syntax. + // The total size of all keys and values combined is limited to 256k. + // Key can have 2 segments: prefix (optional) and name (required), + // separated by a slash (/). + // Prefix must be a DNS subdomain. + // Name must be 63 characters or less, begin and end with alphanumerics, + // with dashes (-), underscores (_), dots (.), and alphanumerics between. + map annotations = 6; + + // A user-settable field to provide a human-readable name to be used in user + // interfaces. + string display_name = 7; +} + +// A configuration to customize the generation of insights. +// Eg, customizing the lookback period considered when generating a +// insight. +message InsightTypeGenerationConfig { + // Parameters for this InsightTypeGenerationConfig. These configs can be used + // by or are applied to all subtypes. + google.protobuf.Struct params = 1; +} diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommendation.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommendation.proto new file mode 100644 index 000000000000..390958c62cef --- /dev/null +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommendation.proto @@ -0,0 +1,361 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.recommender.v1beta1; + +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/money.proto"; + +option csharp_namespace = "Google.Cloud.Recommender.V1Beta1"; +option go_package = "cloud.google.com/go/recommender/apiv1beta1/recommenderpb;recommenderpb"; +option java_multiple_files = true; +option java_package = "com.google.cloud.recommender.v1beta1"; +option objc_class_prefix = "CREC"; +option (google.api.resource_definition) = { + type: "recommender.googleapis.com/Recommender" + pattern: "projects/{project}/locations/{location}/recommenders/{recommender}" + pattern: "billingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}" + pattern: "folders/{folder}/locations/{location}/recommenders/{recommender}" + pattern: "organizations/{organization}/locations/{location}/recommenders/{recommender}" +}; + +// A recommendation along with a suggested action. E.g., a rightsizing +// recommendation for an underutilized VM, IAM role recommendations, etc +message Recommendation { + option (google.api.resource) = { + type: "recommender.googleapis.com/Recommendation" + pattern: "projects/{project}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + pattern: "billingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + pattern: "folders/{folder}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + pattern: "organizations/{organization}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + }; + + // Recommendation priority levels. + enum Priority { + // Recommendation has unspecified priority. + PRIORITY_UNSPECIFIED = 0; + + // Recommendation has P4 priority (lowest priority). + P4 = 1; + + // Recommendation has P3 priority (second lowest priority). + P3 = 2; + + // Recommendation has P2 priority (second highest priority). + P2 = 3; + + // Recommendation has P1 priority (highest priority). + P1 = 4; + } + + // Reference to an associated insight. + message InsightReference { + // Insight resource name, e.g. + // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID] + string insight = 1; + } + + // Name of recommendation. + string name = 1; + + // Free-form human readable summary in English. The maximum length is 500 + // characters. + string description = 2; + + // Contains an identifier for a subtype of recommendations produced for the + // same recommender. Subtype is a function of content and impact, meaning a + // new subtype might be added when significant changes to `content` or + // `primary_impact.category` are introduced. See the Recommenders section + // to see a list of subtypes for a given Recommender. + // + // Examples: + // For recommender = "google.iam.policy.Recommender", + // recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE" + string recommender_subtype = 12; + + // Last time this recommendation was refreshed by the system that created it + // in the first place. + google.protobuf.Timestamp last_refresh_time = 4; + + // The primary impact that this recommendation can have while trying to + // optimize for one category. + Impact primary_impact = 5; + + // Optional set of additional impact that this recommendation may have when + // trying to optimize for the primary category. These may be positive + // or negative. + repeated Impact additional_impact = 6; + + // Recommendation's priority. + Priority priority = 17; + + // Content of the recommendation describing recommended changes to resources. + RecommendationContent content = 7; + + // Information for state. Contains state and metadata. + RecommendationStateInfo state_info = 10; + + // Fingerprint of the Recommendation. Provides optimistic locking when + // updating states. + string etag = 11; + + // Insights that led to this recommendation. + repeated InsightReference associated_insights = 14; + + // Corresponds to a mutually exclusive group ID within a recommender. + // A non-empty ID indicates that the recommendation belongs to a mutually + // exclusive group. This means that only one recommendation within the group + // is suggested to be applied. + string xor_group_id = 18; +} + +// Contains what resources are changing and how they are changing. +message RecommendationContent { + // Operations to one or more Google Cloud resources grouped in such a way + // that, all operations within one group are expected to be performed + // atomically and in an order. + repeated OperationGroup operation_groups = 2; + + // Condensed overview information about the recommendation. + google.protobuf.Struct overview = 3; +} + +// Group of operations that need to be performed atomically. +message OperationGroup { + // List of operations across one or more resources that belong to this group. + // Loosely based on RFC6902 and should be performed in the order they appear. + repeated Operation operations = 1; +} + +// Contains an operation for a resource loosely based on the JSON-PATCH format +// with support for: +// +// * Custom filters for describing partial array patch. +// * Extended path values for describing nested arrays. +// * Custom fields for describing the resource for which the operation is being +// described. +// * Allows extension to custom operations not natively supported by RFC6902. +// See https://tools.ietf.org/html/rfc6902 for details on the original RFC. +message Operation { + // Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', + // 'copy', 'test' and 'custom' operations. This field is case-insensitive and + // always populated. + string action = 1; + + // Type of GCP resource being modified/tested. This field is always populated. + // Example: cloudresourcemanager.googleapis.com/Project, + // compute.googleapis.com/Instance + string resource_type = 2; + + // Contains the fully qualified resource name. This field is always populated. + // ex: //cloudresourcemanager.googleapis.com/projects/foo. + string resource = 3; + + // Path to the target field being operated on. If the operation is at the + // resource level, then path should be "/". This field is always populated. + string path = 4; + + // Can be set with action 'copy' to copy resource configuration across + // different resources of the same type. Example: A resource clone can be + // done via action = 'copy', path = "/", from = "/", + // source_resource = and resource_name = . + // This field is empty for all other values of `action`. + string source_resource = 5; + + // Can be set with action 'copy' or 'move' to indicate the source field within + // resource or source_resource, ignored if provided for other operation types. + string source_path = 6; + + // One of the fields in the following block will be set and intend to + // describe a value for 'path' field. + oneof path_value { + // Value for the `path` field. Will be set for actions:'add'/'replace'. + // Maybe set for action: 'test'. Either this or `value_matcher` will be set + // for 'test' operation. An exact match must be performed. + google.protobuf.Value value = 7; + + // Can be set for action 'test' for advanced matching for the value of + // 'path' field. Either this or `value` will be set for 'test' operation. + ValueMatcher value_matcher = 10; + } + + // Set of filters to apply if `path` refers to array elements or nested array + // elements in order to narrow down to a single unique element that is being + // tested/modified. + // This is intended to be an exact match per filter. To perform advanced + // matching, use path_value_matchers. + // + // * Example: + // ``` + // { + // "/versions/*/name" : "it-123" + // "/versions/*/targetSize/percent": 20 + // } + // ``` + // * Example: + // ``` + // { + // "/bindings/*/role": "roles/owner" + // "/bindings/*/condition" : null + // } + // ``` + // * Example: + // ``` + // { + // "/bindings/*/role": "roles/owner" + // "/bindings/*/members/*" : ["x@example.com", "y@example.com"] + // } + // ``` + // When both path_filters and path_value_matchers are set, an implicit AND + // must be performed. + map path_filters = 8; + + // Similar to path_filters, this contains set of filters to apply if `path` + // field refers to array elements. This is meant to support value matching + // beyond exact match. To perform exact match, use path_filters. + // When both path_filters and path_value_matchers are set, an implicit AND + // must be performed. + map path_value_matchers = 11; +} + +// Contains various matching options for values for a GCP resource field. +message ValueMatcher { + oneof match_variant { + // To be used for full regex matching. The regular expression is using the + // Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be + // used with RE2::FullMatch + string matches_pattern = 1; + } +} + +// Contains metadata about how much money a recommendation can save or incur. +message CostProjection { + // An approximate projection on amount saved or amount incurred. Negative cost + // units indicate cost savings and positive cost units indicate increase. + // See google.type.Money documentation for positive/negative units. + // + // A user's permissions may affect whether the cost is computed using list + // prices or custom contract prices. + google.type.Money cost = 1; + + // Duration for which this cost applies. + google.protobuf.Duration duration = 2; +} + +// Contains various ways of describing the impact on Security. +message SecurityProjection { + // This field can be used by the recommender to define details specific to + // security impact. + google.protobuf.Struct details = 2; +} + +// Contains metadata about how much sustainability a recommendation can save or +// incur. +message SustainabilityProjection { + // Carbon Footprint generated in kg of CO2 equivalent. + // Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e). + double kg_c_o2e = 1; + + // Duration for which this sustanability applies. + google.protobuf.Duration duration = 2; +} + +// Contains the impact a recommendation can have for a given category. +message Impact { + // The category of the impact. + enum Category { + // Default unspecified category. Don't use directly. + CATEGORY_UNSPECIFIED = 0; + + // Indicates a potential increase or decrease in cost. + COST = 1; + + // Indicates a potential increase or decrease in security. + SECURITY = 2; + + // Indicates a potential increase or decrease in performance. + PERFORMANCE = 3; + + // Indicates a potential increase or decrease in manageability. + MANAGEABILITY = 4; + + // Indicates a potential increase or decrease in sustainability. + SUSTAINABILITY = 5; + } + + // Category that is being targeted. + Category category = 1; + + // Contains projections (if any) for this category. + oneof projection { + // Use with CategoryType.COST + CostProjection cost_projection = 100; + + // Use with CategoryType.SECURITY + SecurityProjection security_projection = 101; + + // Use with CategoryType.SUSTAINABILITY + SustainabilityProjection sustainability_projection = 102; + } +} + +// Information for state. Contains state and metadata. +message RecommendationStateInfo { + // Represents Recommendation State. + enum State { + // Default state. Don't use directly. + STATE_UNSPECIFIED = 0; + + // Recommendation is active and can be applied. Recommendations content can + // be updated by Google. + // + // ACTIVE recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED. + ACTIVE = 1; + + // Recommendation is in claimed state. Recommendations content is + // immutable and cannot be updated by Google. + // + // CLAIMED recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED. + CLAIMED = 6; + + // Recommendation is in succeeded state. Recommendations content is + // immutable and cannot be updated by Google. + // + // SUCCEEDED recommendations can be marked as SUCCEEDED, or FAILED. + SUCCEEDED = 3; + + // Recommendation is in failed state. Recommendations content is immutable + // and cannot be updated by Google. + // + // FAILED recommendations can be marked as SUCCEEDED, or FAILED. + FAILED = 4; + + // Recommendation is in dismissed state. Recommendation content can be + // updated by Google. + // + // DISMISSED recommendations can be marked as ACTIVE. + DISMISSED = 5; + } + + // The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED. + State state = 1; + + // A map of metadata for the state, provided by user or automations systems. + map state_metadata = 2; +} diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommender_config.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommender_config.proto new file mode 100644 index 000000000000..834f17beadbb --- /dev/null +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommender_config.proto @@ -0,0 +1,85 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.recommender.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Recommender.V1Beta1"; +option go_package = "cloud.google.com/go/recommender/apiv1beta1/recommenderpb;recommenderpb"; +option java_multiple_files = true; +option java_outer_classname = "RecommenderConfigProto"; +option java_package = "com.google.cloud.recommender.v1beta1"; +option objc_class_prefix = "CREC"; + +// Configuration for a Recommender. +message RecommenderConfig { + option (google.api.resource) = { + type: "recommender.googleapis.com/RecommenderConfig" + pattern: "projects/{project}/locations/{location}/recommenders/{recommender}/config" + pattern: "organizations/{organization}/locations/{location}/recommenders/{recommender}/config" + }; + + // Name of recommender config. + // Eg, + // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config + string name = 1; + + // RecommenderGenerationConfig which configures the Generation of + // recommendations for this recommender. + RecommenderGenerationConfig recommender_generation_config = 2; + + // Fingerprint of the RecommenderConfig. Provides optimistic locking when + // updating. + string etag = 3; + + // Last time when the config was updated. + google.protobuf.Timestamp update_time = 4; + + // Output only. Immutable. The revision ID of the config. + // A new revision is committed whenever the config is changed in any way. + // The format is an 8-character hexadecimal string. + string revision_id = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Allows clients to store small amounts of arbitrary data. Annotations must + // follow the Kubernetes syntax. + // The total size of all keys and values combined is limited to 256k. + // Key can have 2 segments: prefix (optional) and name (required), + // separated by a slash (/). + // Prefix must be a DNS subdomain. + // Name must be 63 characters or less, begin and end with alphanumerics, + // with dashes (-), underscores (_), dots (.), and alphanumerics between. + map annotations = 6; + + // A user-settable field to provide a human-readable name to be used in user + // interfaces. + string display_name = 7; +} + +// A Configuration to customize the generation of recommendations. +// Eg, customizing the lookback period considered when generating a +// recommendation. +message RecommenderGenerationConfig { + // Parameters for this RecommenderGenerationConfig. These configs can be used + // by or are applied to all subtypes. + google.protobuf.Struct params = 1; +} diff --git a/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommender_service.proto b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommender_service.proto new file mode 100644 index 000000000000..80829a90c012 --- /dev/null +++ b/packages/google-cloud-recommender/protos/google/cloud/recommender/v1beta1/recommender_service.proto @@ -0,0 +1,591 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.recommender.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/recommender/v1beta1/insight.proto"; +import "google/cloud/recommender/v1beta1/insight_type_config.proto"; +import "google/cloud/recommender/v1beta1/recommendation.proto"; +import "google/cloud/recommender/v1beta1/recommender_config.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.Recommender.V1Beta1"; +option go_package = "cloud.google.com/go/recommender/apiv1beta1/recommenderpb;recommenderpb"; +option java_multiple_files = true; +option java_outer_classname = "RecommenderProto"; +option java_package = "com.google.cloud.recommender.v1beta1"; +option objc_class_prefix = "CREC"; + +// Provides insights and recommendations for cloud customers for various +// categories like performance optimization, cost savings, reliability, feature +// discovery, etc. Insights and recommendations are generated automatically +// based on analysis of user resources, configuration and monitoring metrics. +service Recommender { + option (google.api.default_host) = "recommender.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists insights for the specified Cloud Resource. Requires the + // recommender.*.list IAM permission for the specified insight type. + rpc ListInsights(ListInsightsRequest) returns (ListInsightsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/insightTypes/*}/insights" + additional_bindings { + get: "/v1beta1/{parent=billingAccounts/*/locations/*/insightTypes/*}/insights" + } + additional_bindings { + get: "/v1beta1/{parent=folders/*/locations/*/insightTypes/*}/insights" + } + additional_bindings { + get: "/v1beta1/{parent=organizations/*/locations/*/insightTypes/*}/insights" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the requested insight. Requires the recommender.*.get IAM permission + // for the specified insight type. + rpc GetInsight(GetInsightRequest) returns (Insight) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}" + additional_bindings { + get: "/v1beta1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}" + } + additional_bindings { + get: "/v1beta1/{name=folders/*/locations/*/insightTypes/*/insights/*}" + } + additional_bindings { + get: "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Marks the Insight State as Accepted. Users can use this method to + // indicate to the Recommender API that they have applied some action based + // on the insight. This stops the insight content from being updated. + // + // MarkInsightAccepted can be applied to insights in ACTIVE state. Requires + // the recommender.*.update IAM permission for the specified insight. + rpc MarkInsightAccepted(MarkInsightAcceptedRequest) returns (Insight) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + additional_bindings { + post: "/v1beta1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=folders/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + } + }; + option (google.api.method_signature) = "name,state_metadata,etag"; + } + + // Lists recommendations for the specified Cloud Resource. Requires the + // recommender.*.list IAM permission for the specified recommender. + rpc ListRecommendations(ListRecommendationsRequest) returns (ListRecommendationsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/recommenders/*}/recommendations" + additional_bindings { + get: "/v1beta1/{parent=billingAccounts/*/locations/*/recommenders/*}/recommendations" + } + additional_bindings { + get: "/v1beta1/{parent=folders/*/locations/*/recommenders/*}/recommendations" + } + additional_bindings { + get: "/v1beta1/{parent=organizations/*/locations/*/recommenders/*}/recommendations" + } + }; + option (google.api.method_signature) = "parent,filter"; + } + + // Gets the requested recommendation. Requires the recommender.*.get + // IAM permission for the specified recommender. + rpc GetRecommendation(GetRecommendationRequest) returns (Recommendation) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}" + additional_bindings { + get: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}" + } + additional_bindings { + get: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}" + } + additional_bindings { + get: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Marks the Recommendation State as Claimed. Users can use this method to + // indicate to the Recommender API that they are starting to apply the + // recommendation themselves. This stops the recommendation content from being + // updated. Associated insights are frozen and placed in the ACCEPTED state. + // + // MarkRecommendationClaimed can be applied to recommendations in CLAIMED or + // ACTIVE state. + // + // Requires the recommender.*.update IAM permission for the specified + // recommender. + rpc MarkRecommendationClaimed(MarkRecommendationClaimedRequest) returns (Recommendation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + additional_bindings { + post: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + } + }; + option (google.api.method_signature) = "name,state_metadata,etag"; + } + + // Marks the Recommendation State as Succeeded. Users can use this method to + // indicate to the Recommender API that they have applied the recommendation + // themselves, and the operation was successful. This stops the recommendation + // content from being updated. Associated insights are frozen and placed in + // the ACCEPTED state. + // + // MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, + // CLAIMED, SUCCEEDED, or FAILED state. + // + // Requires the recommender.*.update IAM permission for the specified + // recommender. + rpc MarkRecommendationSucceeded(MarkRecommendationSucceededRequest) returns (Recommendation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + additional_bindings { + post: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + } + }; + option (google.api.method_signature) = "name,state_metadata,etag"; + } + + // Marks the Recommendation State as Failed. Users can use this method to + // indicate to the Recommender API that they have applied the recommendation + // themselves, and the operation failed. This stops the recommendation content + // from being updated. Associated insights are frozen and placed in the + // ACCEPTED state. + // + // MarkRecommendationFailed can be applied to recommendations in ACTIVE, + // CLAIMED, SUCCEEDED, or FAILED state. + // + // Requires the recommender.*.update IAM permission for the specified + // recommender. + rpc MarkRecommendationFailed(MarkRecommendationFailedRequest) returns (Recommendation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + additional_bindings { + post: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + } + }; + option (google.api.method_signature) = "name,state_metadata,etag"; + } + + // Gets the requested Recommender Config. There is only one instance of the + // config for each Recommender. + rpc GetRecommenderConfig(GetRecommenderConfigRequest) returns (RecommenderConfig) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/recommenders/*/config}" + additional_bindings { + get: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/config}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates a Recommender Config. This will create a new revision of the + // config. + rpc UpdateRecommenderConfig(UpdateRecommenderConfigRequest) returns (RecommenderConfig) { + option (google.api.http) = { + patch: "/v1beta1/{recommender_config.name=projects/*/locations/*/recommenders/*/config}" + body: "recommender_config" + additional_bindings { + post: "/v1beta1/{recommender_config.name=organizations/*/locations/*/recommenders/*/config}" + body: "recommender_config" + } + }; + option (google.api.method_signature) = "recommender_config,update_mask"; + } + + // Gets the requested InsightTypeConfig. There is only one instance of the + // config for each InsightType. + rpc GetInsightTypeConfig(GetInsightTypeConfigRequest) returns (InsightTypeConfig) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/insightTypes/*/config}" + additional_bindings { + get: "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/config}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates an InsightTypeConfig change. This will create a new revision of the + // config. + rpc UpdateInsightTypeConfig(UpdateInsightTypeConfigRequest) returns (InsightTypeConfig) { + option (google.api.http) = { + patch: "/v1beta1/{insight_type_config.name=projects/*/locations/*/insightTypes/*/config}" + body: "insight_type_config" + additional_bindings { + post: "/v1beta1/{insight_type_config.name=organizations/*/locations/*/insightTypes/*/config}" + body: "insight_type_config" + } + }; + option (google.api.method_signature) = "insight_type_config,update_mask"; + } +} + +// Request for the `ListInsights` method. +message ListInsightsRequest { + // Required. The container resource on which to execute the request. + // Acceptable formats: + // + // * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + // + // * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + // + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + // + // * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + // + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + // + // LOCATION here refers to GCP Locations: + // https://cloud.google.com/about/locations/ + // INSIGHT_TYPE_ID refers to supported insight types: + // https://cloud.google.com/recommender/docs/insights/insight-types. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/InsightType" + } + ]; + + // Optional. The maximum number of results to return from this request. Non-positive + // values are ignored. If not specified, the server will determine the number + // of results to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, retrieves the next batch of results from the preceding call to + // this method. `page_token` must be the value of `next_page_token` from the + // previous response. The values of other method parameters must be identical + // to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression to restrict the insights returned. Supported + // filter fields: + // + // * `stateInfo.state` + // + // * `insightSubtype` + // + // * `severity` + // + // Examples: + // + // * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + // + // * `insightSubtype = PERMISSIONS_USAGE` + // + // * `severity = CRITICAL OR severity = HIGH` + // + // * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + // + // (These expressions are based on the filter language described at + // https://google.aip.dev/160) + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response to the `ListInsights` method. +message ListInsightsResponse { + // The set of insights for the `parent` resource. + repeated Insight insights = 1; + + // A token that can be used to request the next page of results. This field is + // empty if there are no additional results. + string next_page_token = 2; +} + +// Request to the `GetInsight` method. +message GetInsightRequest { + // Required. Name of the insight. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/Insight" + } + ]; +} + +// Request for the `MarkInsightAccepted` method. +message MarkInsightAcceptedRequest { + // Required. Name of the insight. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/Insight" + } + ]; + + // Optional. State properties user wish to include with this state. Full replace of the + // current state_metadata. + map state_metadata = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Fingerprint of the Insight. Provides optimistic locking. + string etag = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the `ListRecommendations` method. +message ListRecommendationsRequest { + // Required. The container resource on which to execute the request. + // Acceptable formats: + // + // * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + // + // * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + // + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + // + // * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + // + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + // + // LOCATION here refers to GCP Locations: + // https://cloud.google.com/about/locations/ + // RECOMMENDER_ID refers to supported recommenders: + // https://cloud.google.com/recommender/docs/recommenders. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/Recommender" + } + ]; + + // Optional. The maximum number of results to return from this request. Non-positive + // values are ignored. If not specified, the server will determine the number + // of results to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, retrieves the next batch of results from the preceding call to + // this method. `page_token` must be the value of `next_page_token` from the + // previous response. The values of other method parameters must be identical + // to those in the previous call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Filter expression to restrict the recommendations returned. Supported + // filter fields: + // + // * `state_info.state` + // + // * `recommenderSubtype` + // + // * `priority` + // + // Examples: + // + // * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + // + // * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + // + // * `priority = P1 OR priority = P2` + // + // * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + // + // (These expressions are based on the filter language described at + // https://google.aip.dev/160) + string filter = 5; +} + +// Response to the `ListRecommendations` method. +message ListRecommendationsResponse { + // The set of recommendations for the `parent` resource. + repeated Recommendation recommendations = 1; + + // A token that can be used to request the next page of results. This field is + // empty if there are no additional results. + string next_page_token = 2; +} + +// Request to the `GetRecommendation` method. +message GetRecommendationRequest { + // Required. Name of the recommendation. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/Recommendation" + } + ]; +} + +// Request for the `MarkRecommendationClaimed` Method. +message MarkRecommendationClaimedRequest { + // Required. Name of the recommendation. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/Recommendation" + } + ]; + + // State properties to include with this state. Overwrites any existing + // `state_metadata`. + // Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + // Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + map state_metadata = 2; + + // Required. Fingerprint of the Recommendation. Provides optimistic locking. + string etag = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the `MarkRecommendationSucceeded` Method. +message MarkRecommendationSucceededRequest { + // Required. Name of the recommendation. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/Recommendation" + } + ]; + + // State properties to include with this state. Overwrites any existing + // `state_metadata`. + // Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + // Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + map state_metadata = 2; + + // Required. Fingerprint of the Recommendation. Provides optimistic locking. + string etag = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the `MarkRecommendationFailed` Method. +message MarkRecommendationFailedRequest { + // Required. Name of the recommendation. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/Recommendation" + } + ]; + + // State properties to include with this state. Overwrites any existing + // `state_metadata`. + // Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + // Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + map state_metadata = 2; + + // Required. Fingerprint of the Recommendation. Provides optimistic locking. + string etag = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the GetRecommenderConfig` method. +message GetRecommenderConfigRequest { + // Required. Name of the Recommendation Config to get. + // + // Acceptable formats: + // + // * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + // + // * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + // + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/RecommenderConfig" + } + ]; +} + +// Request for the `UpdateRecommenderConfig` method. +message UpdateRecommenderConfigRequest { + // Required. The RecommenderConfig to update. + RecommenderConfig recommender_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2; + + // If true, validate the request and preview the change, but do not actually + // update it. + bool validate_only = 3; +} + +// Request for the GetInsightTypeConfig` method. +message GetInsightTypeConfigRequest { + // Required. Name of the InsightTypeConfig to get. + // + // Acceptable formats: + // + // * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + // + // * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + // + // * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "recommender.googleapis.com/InsightTypeConfig" + } + ]; +} + +// Request for the `UpdateInsightTypeConfig` method. +message UpdateInsightTypeConfigRequest { + // Required. The InsightTypeConfig to update. + InsightTypeConfig insight_type_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2; + + // If true, validate the request and preview the change, but do not actually + // update it. + bool validate_only = 3; +} diff --git a/packages/google-cloud-recommender/protos/protos.d.ts b/packages/google-cloud-recommender/protos/protos.d.ts index 7141a9a54370..71afbbfa2178 100644 --- a/packages/google-cloud-recommender/protos/protos.d.ts +++ b/packages/google-cloud-recommender/protos/protos.d.ts @@ -56,6 +56,9 @@ export namespace google { /** Insight category */ category?: (google.cloud.recommender.v1.Insight.Category|keyof typeof google.cloud.recommender.v1.Insight.Category|null); + /** Insight severity */ + severity?: (google.cloud.recommender.v1.Insight.Severity|keyof typeof google.cloud.recommender.v1.Insight.Severity|null); + /** Insight etag */ etag?: (string|null); @@ -99,6 +102,9 @@ export namespace google { /** Insight category. */ public category: (google.cloud.recommender.v1.Insight.Category|keyof typeof google.cloud.recommender.v1.Insight.Category); + /** Insight severity. */ + public severity: (google.cloud.recommender.v1.Insight.Severity|keyof typeof google.cloud.recommender.v1.Insight.Severity); + /** Insight etag. */ public etag: string; @@ -185,6 +191,24 @@ export namespace google { namespace Insight { + /** Category enum. */ + enum Category { + CATEGORY_UNSPECIFIED = 0, + COST = 1, + SECURITY = 2, + PERFORMANCE = 3, + MANAGEABILITY = 4 + } + + /** Severity enum. */ + enum Severity { + SEVERITY_UNSPECIFIED = 0, + LOW = 1, + MEDIUM = 2, + HIGH = 3, + CRITICAL = 4 + } + /** Properties of a RecommendationReference. */ interface IRecommendationReference { @@ -281,15 +305,6 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - /** Category enum. */ - enum Category { - CATEGORY_UNSPECIFIED = 0, - COST = 1, - SECURITY = 2, - PERFORMANCE = 3, - MANAGEABILITY = 4 - } } /** Properties of an InsightStateInfo. */ @@ -406,6 +421,236 @@ export namespace google { } } + /** Properties of an InsightTypeConfig. */ + interface IInsightTypeConfig { + + /** InsightTypeConfig name */ + name?: (string|null); + + /** InsightTypeConfig insightTypeGenerationConfig */ + insightTypeGenerationConfig?: (google.cloud.recommender.v1.IInsightTypeGenerationConfig|null); + + /** InsightTypeConfig etag */ + etag?: (string|null); + + /** InsightTypeConfig updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** InsightTypeConfig revisionId */ + revisionId?: (string|null); + + /** InsightTypeConfig annotations */ + annotations?: ({ [k: string]: string }|null); + + /** InsightTypeConfig displayName */ + displayName?: (string|null); + } + + /** Represents an InsightTypeConfig. */ + class InsightTypeConfig implements IInsightTypeConfig { + + /** + * Constructs a new InsightTypeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IInsightTypeConfig); + + /** InsightTypeConfig name. */ + public name: string; + + /** InsightTypeConfig insightTypeGenerationConfig. */ + public insightTypeGenerationConfig?: (google.cloud.recommender.v1.IInsightTypeGenerationConfig|null); + + /** InsightTypeConfig etag. */ + public etag: string; + + /** InsightTypeConfig updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** InsightTypeConfig revisionId. */ + public revisionId: string; + + /** InsightTypeConfig annotations. */ + public annotations: { [k: string]: string }; + + /** InsightTypeConfig displayName. */ + public displayName: string; + + /** + * Creates a new InsightTypeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InsightTypeConfig instance + */ + public static create(properties?: google.cloud.recommender.v1.IInsightTypeConfig): google.cloud.recommender.v1.InsightTypeConfig; + + /** + * Encodes the specified InsightTypeConfig message. Does not implicitly {@link google.cloud.recommender.v1.InsightTypeConfig.verify|verify} messages. + * @param message InsightTypeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IInsightTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsightTypeConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.InsightTypeConfig.verify|verify} messages. + * @param message InsightTypeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IInsightTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsightTypeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsightTypeConfig + * @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.recommender.v1.InsightTypeConfig; + + /** + * Decodes an InsightTypeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsightTypeConfig + * @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.recommender.v1.InsightTypeConfig; + + /** + * Verifies an InsightTypeConfig 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 an InsightTypeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsightTypeConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.InsightTypeConfig; + + /** + * Creates a plain object from an InsightTypeConfig message. Also converts values to other types if specified. + * @param message InsightTypeConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.InsightTypeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsightTypeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsightTypeConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InsightTypeGenerationConfig. */ + interface IInsightTypeGenerationConfig { + + /** InsightTypeGenerationConfig params */ + params?: (google.protobuf.IStruct|null); + } + + /** Represents an InsightTypeGenerationConfig. */ + class InsightTypeGenerationConfig implements IInsightTypeGenerationConfig { + + /** + * Constructs a new InsightTypeGenerationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IInsightTypeGenerationConfig); + + /** InsightTypeGenerationConfig params. */ + public params?: (google.protobuf.IStruct|null); + + /** + * Creates a new InsightTypeGenerationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InsightTypeGenerationConfig instance + */ + public static create(properties?: google.cloud.recommender.v1.IInsightTypeGenerationConfig): google.cloud.recommender.v1.InsightTypeGenerationConfig; + + /** + * Encodes the specified InsightTypeGenerationConfig message. Does not implicitly {@link google.cloud.recommender.v1.InsightTypeGenerationConfig.verify|verify} messages. + * @param message InsightTypeGenerationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IInsightTypeGenerationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsightTypeGenerationConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.InsightTypeGenerationConfig.verify|verify} messages. + * @param message InsightTypeGenerationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IInsightTypeGenerationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsightTypeGenerationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsightTypeGenerationConfig + * @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.recommender.v1.InsightTypeGenerationConfig; + + /** + * Decodes an InsightTypeGenerationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsightTypeGenerationConfig + * @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.recommender.v1.InsightTypeGenerationConfig; + + /** + * Verifies an InsightTypeGenerationConfig 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 an InsightTypeGenerationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsightTypeGenerationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.InsightTypeGenerationConfig; + + /** + * Creates a plain object from an InsightTypeGenerationConfig message. Also converts values to other types if specified. + * @param message InsightTypeGenerationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.InsightTypeGenerationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsightTypeGenerationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsightTypeGenerationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a Recommendation. */ interface IRecommendation { @@ -427,6 +672,9 @@ export namespace google { /** Recommendation additionalImpact */ additionalImpact?: (google.cloud.recommender.v1.IImpact[]|null); + /** Recommendation priority */ + priority?: (google.cloud.recommender.v1.Recommendation.Priority|keyof typeof google.cloud.recommender.v1.Recommendation.Priority|null); + /** Recommendation content */ content?: (google.cloud.recommender.v1.IRecommendationContent|null); @@ -438,6 +686,9 @@ export namespace google { /** Recommendation associatedInsights */ associatedInsights?: (google.cloud.recommender.v1.Recommendation.IInsightReference[]|null); + + /** Recommendation xorGroupId */ + xorGroupId?: (string|null); } /** Represents a Recommendation. */ @@ -467,6 +718,9 @@ export namespace google { /** Recommendation additionalImpact. */ public additionalImpact: google.cloud.recommender.v1.IImpact[]; + /** Recommendation priority. */ + public priority: (google.cloud.recommender.v1.Recommendation.Priority|keyof typeof google.cloud.recommender.v1.Recommendation.Priority); + /** Recommendation content. */ public content?: (google.cloud.recommender.v1.IRecommendationContent|null); @@ -479,6 +733,9 @@ export namespace google { /** Recommendation associatedInsights. */ public associatedInsights: google.cloud.recommender.v1.Recommendation.IInsightReference[]; + /** Recommendation xorGroupId. */ + public xorGroupId: string; + /** * Creates a new Recommendation instance using the specified properties. * @param [properties] Properties to set @@ -559,6 +816,15 @@ export namespace google { namespace Recommendation { + /** Priority enum. */ + enum Priority { + PRIORITY_UNSPECIFIED = 0, + P4 = 1, + P3 = 2, + P2 = 3, + P1 = 4 + } + /** Properties of an InsightReference. */ interface IInsightReference { @@ -662,6 +928,9 @@ export namespace google { /** RecommendationContent operationGroups */ operationGroups?: (google.cloud.recommender.v1.IOperationGroup[]|null); + + /** RecommendationContent overview */ + overview?: (google.protobuf.IStruct|null); } /** Represents a RecommendationContent. */ @@ -676,6 +945,9 @@ export namespace google { /** RecommendationContent operationGroups. */ public operationGroups: google.cloud.recommender.v1.IOperationGroup[]; + /** RecommendationContent overview. */ + public overview?: (google.protobuf.IStruct|null); + /** * Creates a new RecommendationContent instance using the specified properties. * @param [properties] Properties to set @@ -1208,6 +1480,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SecurityProjection. */ + interface ISecurityProjection { + + /** SecurityProjection details */ + details?: (google.protobuf.IStruct|null); + } + + /** Represents a SecurityProjection. */ + class SecurityProjection implements ISecurityProjection { + + /** + * Constructs a new SecurityProjection. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.ISecurityProjection); + + /** SecurityProjection details. */ + public details?: (google.protobuf.IStruct|null); + + /** + * Creates a new SecurityProjection instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityProjection instance + */ + public static create(properties?: google.cloud.recommender.v1.ISecurityProjection): google.cloud.recommender.v1.SecurityProjection; + + /** + * Encodes the specified SecurityProjection message. Does not implicitly {@link google.cloud.recommender.v1.SecurityProjection.verify|verify} messages. + * @param message SecurityProjection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.ISecurityProjection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.SecurityProjection.verify|verify} messages. + * @param message SecurityProjection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.ISecurityProjection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityProjection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityProjection + * @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.recommender.v1.SecurityProjection; + + /** + * Decodes a SecurityProjection message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityProjection + * @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.recommender.v1.SecurityProjection; + + /** + * Verifies a SecurityProjection 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 SecurityProjection message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityProjection + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.SecurityProjection; + + /** + * Creates a plain object from a SecurityProjection message. Also converts values to other types if specified. + * @param message SecurityProjection + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.SecurityProjection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityProjection to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityProjection + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an Impact. */ interface IImpact { @@ -1216,6 +1585,9 @@ export namespace google { /** Impact costProjection */ costProjection?: (google.cloud.recommender.v1.ICostProjection|null); + + /** Impact securityProjection */ + securityProjection?: (google.cloud.recommender.v1.ISecurityProjection|null); } /** Represents an Impact. */ @@ -1233,8 +1605,11 @@ export namespace google { /** Impact costProjection. */ public costProjection?: (google.cloud.recommender.v1.ICostProjection|null); + /** Impact securityProjection. */ + public securityProjection?: (google.cloud.recommender.v1.ISecurityProjection|null); + /** Impact projection. */ - public projection?: "costProjection"; + public projection?: ("costProjection"|"securityProjection"); /** * Creates a new Impact instance using the specified properties. @@ -1442,16 +1817,246 @@ export namespace google { } } - /** Represents a Recommender */ - class Recommender extends $protobuf.rpc.Service { + /** Properties of a RecommenderConfig. */ + interface IRecommenderConfig { + + /** RecommenderConfig name */ + name?: (string|null); + + /** RecommenderConfig recommenderGenerationConfig */ + recommenderGenerationConfig?: (google.cloud.recommender.v1.IRecommenderGenerationConfig|null); + + /** RecommenderConfig etag */ + etag?: (string|null); + + /** RecommenderConfig updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** RecommenderConfig revisionId */ + revisionId?: (string|null); + + /** RecommenderConfig annotations */ + annotations?: ({ [k: string]: string }|null); + + /** RecommenderConfig displayName */ + displayName?: (string|null); + } + + /** Represents a RecommenderConfig. */ + class RecommenderConfig implements IRecommenderConfig { /** - * Constructs a new Recommender service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new RecommenderConfig. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.recommender.v1.IRecommenderConfig); + + /** RecommenderConfig name. */ + public name: string; + + /** RecommenderConfig recommenderGenerationConfig. */ + public recommenderGenerationConfig?: (google.cloud.recommender.v1.IRecommenderGenerationConfig|null); + + /** RecommenderConfig etag. */ + public etag: string; + + /** RecommenderConfig updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** RecommenderConfig revisionId. */ + public revisionId: string; + + /** RecommenderConfig annotations. */ + public annotations: { [k: string]: string }; + + /** RecommenderConfig displayName. */ + public displayName: string; + + /** + * Creates a new RecommenderConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RecommenderConfig instance + */ + public static create(properties?: google.cloud.recommender.v1.IRecommenderConfig): google.cloud.recommender.v1.RecommenderConfig; + + /** + * Encodes the specified RecommenderConfig message. Does not implicitly {@link google.cloud.recommender.v1.RecommenderConfig.verify|verify} messages. + * @param message RecommenderConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IRecommenderConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecommenderConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.RecommenderConfig.verify|verify} messages. + * @param message RecommenderConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IRecommenderConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecommenderConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecommenderConfig + * @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.recommender.v1.RecommenderConfig; + + /** + * Decodes a RecommenderConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecommenderConfig + * @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.recommender.v1.RecommenderConfig; + + /** + * Verifies a RecommenderConfig 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 RecommenderConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecommenderConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.RecommenderConfig; + + /** + * Creates a plain object from a RecommenderConfig message. Also converts values to other types if specified. + * @param message RecommenderConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.RecommenderConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecommenderConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecommenderConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RecommenderGenerationConfig. */ + interface IRecommenderGenerationConfig { + + /** RecommenderGenerationConfig params */ + params?: (google.protobuf.IStruct|null); + } + + /** Represents a RecommenderGenerationConfig. */ + class RecommenderGenerationConfig implements IRecommenderGenerationConfig { + + /** + * Constructs a new RecommenderGenerationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IRecommenderGenerationConfig); + + /** RecommenderGenerationConfig params. */ + public params?: (google.protobuf.IStruct|null); + + /** + * Creates a new RecommenderGenerationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RecommenderGenerationConfig instance + */ + public static create(properties?: google.cloud.recommender.v1.IRecommenderGenerationConfig): google.cloud.recommender.v1.RecommenderGenerationConfig; + + /** + * Encodes the specified RecommenderGenerationConfig message. Does not implicitly {@link google.cloud.recommender.v1.RecommenderGenerationConfig.verify|verify} messages. + * @param message RecommenderGenerationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IRecommenderGenerationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecommenderGenerationConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.RecommenderGenerationConfig.verify|verify} messages. + * @param message RecommenderGenerationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IRecommenderGenerationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecommenderGenerationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecommenderGenerationConfig + * @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.recommender.v1.RecommenderGenerationConfig; + + /** + * Decodes a RecommenderGenerationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecommenderGenerationConfig + * @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.recommender.v1.RecommenderGenerationConfig; + + /** + * Verifies a RecommenderGenerationConfig 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 RecommenderGenerationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecommenderGenerationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.RecommenderGenerationConfig; + + /** + * Creates a plain object from a RecommenderGenerationConfig message. Also converts values to other types if specified. + * @param message RecommenderGenerationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.RecommenderGenerationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecommenderGenerationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecommenderGenerationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents a Recommender */ + class Recommender extends $protobuf.rpc.Service { + + /** + * Constructs a new Recommender service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** * Creates new Recommender service using the specified rpc implementation. @@ -1573,6 +2178,62 @@ export namespace google { * @returns Promise */ public markRecommendationFailed(request: google.cloud.recommender.v1.IMarkRecommendationFailedRequest): Promise; + + /** + * Calls GetRecommenderConfig. + * @param request GetRecommenderConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RecommenderConfig + */ + public getRecommenderConfig(request: google.cloud.recommender.v1.IGetRecommenderConfigRequest, callback: google.cloud.recommender.v1.Recommender.GetRecommenderConfigCallback): void; + + /** + * Calls GetRecommenderConfig. + * @param request GetRecommenderConfigRequest message or plain object + * @returns Promise + */ + public getRecommenderConfig(request: google.cloud.recommender.v1.IGetRecommenderConfigRequest): Promise; + + /** + * Calls UpdateRecommenderConfig. + * @param request UpdateRecommenderConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RecommenderConfig + */ + public updateRecommenderConfig(request: google.cloud.recommender.v1.IUpdateRecommenderConfigRequest, callback: google.cloud.recommender.v1.Recommender.UpdateRecommenderConfigCallback): void; + + /** + * Calls UpdateRecommenderConfig. + * @param request UpdateRecommenderConfigRequest message or plain object + * @returns Promise + */ + public updateRecommenderConfig(request: google.cloud.recommender.v1.IUpdateRecommenderConfigRequest): Promise; + + /** + * Calls GetInsightTypeConfig. + * @param request GetInsightTypeConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InsightTypeConfig + */ + public getInsightTypeConfig(request: google.cloud.recommender.v1.IGetInsightTypeConfigRequest, callback: google.cloud.recommender.v1.Recommender.GetInsightTypeConfigCallback): void; + + /** + * Calls GetInsightTypeConfig. + * @param request GetInsightTypeConfigRequest message or plain object + * @returns Promise + */ + public getInsightTypeConfig(request: google.cloud.recommender.v1.IGetInsightTypeConfigRequest): Promise; + + /** + * Calls UpdateInsightTypeConfig. + * @param request UpdateInsightTypeConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InsightTypeConfig + */ + public updateInsightTypeConfig(request: google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest, callback: google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfigCallback): void; + + /** + * Calls UpdateInsightTypeConfig. + * @param request UpdateInsightTypeConfigRequest message or plain object + * @returns Promise + */ + public updateInsightTypeConfig(request: google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest): Promise; } namespace Recommender { @@ -1632,6 +2293,34 @@ export namespace google { * @param [response] Recommendation */ type MarkRecommendationFailedCallback = (error: (Error|null), response?: google.cloud.recommender.v1.Recommendation) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|getRecommenderConfig}. + * @param error Error, if any + * @param [response] RecommenderConfig + */ + type GetRecommenderConfigCallback = (error: (Error|null), response?: google.cloud.recommender.v1.RecommenderConfig) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|updateRecommenderConfig}. + * @param error Error, if any + * @param [response] RecommenderConfig + */ + type UpdateRecommenderConfigCallback = (error: (Error|null), response?: google.cloud.recommender.v1.RecommenderConfig) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|getInsightTypeConfig}. + * @param error Error, if any + * @param [response] InsightTypeConfig + */ + type GetInsightTypeConfigCallback = (error: (Error|null), response?: google.cloud.recommender.v1.InsightTypeConfig) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|updateInsightTypeConfig}. + * @param error Error, if any + * @param [response] InsightTypeConfig + */ + type UpdateInsightTypeConfigCallback = (error: (Error|null), response?: google.cloud.recommender.v1.InsightTypeConfig) => void; } /** Properties of a ListInsightsRequest. */ @@ -2255,445 +2944,4746 @@ export namespace google { public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.ListRecommendationsResponse; /** - * Creates a plain object from a ListRecommendationsResponse message. Also converts values to other types if specified. - * @param message ListRecommendationsResponse + * Creates a plain object from a ListRecommendationsResponse message. Also converts values to other types if specified. + * @param message ListRecommendationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.ListRecommendationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRecommendationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRecommendationsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRecommendationRequest. */ + interface IGetRecommendationRequest { + + /** GetRecommendationRequest name */ + name?: (string|null); + } + + /** Represents a GetRecommendationRequest. */ + class GetRecommendationRequest implements IGetRecommendationRequest { + + /** + * Constructs a new GetRecommendationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IGetRecommendationRequest); + + /** GetRecommendationRequest name. */ + public name: string; + + /** + * Creates a new GetRecommendationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRecommendationRequest instance + */ + public static create(properties?: google.cloud.recommender.v1.IGetRecommendationRequest): google.cloud.recommender.v1.GetRecommendationRequest; + + /** + * Encodes the specified GetRecommendationRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetRecommendationRequest.verify|verify} messages. + * @param message GetRecommendationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IGetRecommendationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRecommendationRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetRecommendationRequest.verify|verify} messages. + * @param message GetRecommendationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IGetRecommendationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRecommendationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRecommendationRequest + * @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.recommender.v1.GetRecommendationRequest; + + /** + * Decodes a GetRecommendationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRecommendationRequest + * @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.recommender.v1.GetRecommendationRequest; + + /** + * Verifies a GetRecommendationRequest 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 GetRecommendationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRecommendationRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.GetRecommendationRequest; + + /** + * Creates a plain object from a GetRecommendationRequest message. Also converts values to other types if specified. + * @param message GetRecommendationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.GetRecommendationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRecommendationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRecommendationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MarkRecommendationClaimedRequest. */ + interface IMarkRecommendationClaimedRequest { + + /** MarkRecommendationClaimedRequest name */ + name?: (string|null); + + /** MarkRecommendationClaimedRequest stateMetadata */ + stateMetadata?: ({ [k: string]: string }|null); + + /** MarkRecommendationClaimedRequest etag */ + etag?: (string|null); + } + + /** Represents a MarkRecommendationClaimedRequest. */ + class MarkRecommendationClaimedRequest implements IMarkRecommendationClaimedRequest { + + /** + * Constructs a new MarkRecommendationClaimedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IMarkRecommendationClaimedRequest); + + /** MarkRecommendationClaimedRequest name. */ + public name: string; + + /** MarkRecommendationClaimedRequest stateMetadata. */ + public stateMetadata: { [k: string]: string }; + + /** MarkRecommendationClaimedRequest etag. */ + public etag: string; + + /** + * Creates a new MarkRecommendationClaimedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MarkRecommendationClaimedRequest instance + */ + public static create(properties?: google.cloud.recommender.v1.IMarkRecommendationClaimedRequest): google.cloud.recommender.v1.MarkRecommendationClaimedRequest; + + /** + * Encodes the specified MarkRecommendationClaimedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationClaimedRequest.verify|verify} messages. + * @param message MarkRecommendationClaimedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IMarkRecommendationClaimedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MarkRecommendationClaimedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationClaimedRequest.verify|verify} messages. + * @param message MarkRecommendationClaimedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IMarkRecommendationClaimedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MarkRecommendationClaimedRequest + * @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.recommender.v1.MarkRecommendationClaimedRequest; + + /** + * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MarkRecommendationClaimedRequest + * @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.recommender.v1.MarkRecommendationClaimedRequest; + + /** + * Verifies a MarkRecommendationClaimedRequest 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 MarkRecommendationClaimedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MarkRecommendationClaimedRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.MarkRecommendationClaimedRequest; + + /** + * Creates a plain object from a MarkRecommendationClaimedRequest message. Also converts values to other types if specified. + * @param message MarkRecommendationClaimedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.MarkRecommendationClaimedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MarkRecommendationClaimedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MarkRecommendationClaimedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MarkRecommendationSucceededRequest. */ + interface IMarkRecommendationSucceededRequest { + + /** MarkRecommendationSucceededRequest name */ + name?: (string|null); + + /** MarkRecommendationSucceededRequest stateMetadata */ + stateMetadata?: ({ [k: string]: string }|null); + + /** MarkRecommendationSucceededRequest etag */ + etag?: (string|null); + } + + /** Represents a MarkRecommendationSucceededRequest. */ + class MarkRecommendationSucceededRequest implements IMarkRecommendationSucceededRequest { + + /** + * Constructs a new MarkRecommendationSucceededRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IMarkRecommendationSucceededRequest); + + /** MarkRecommendationSucceededRequest name. */ + public name: string; + + /** MarkRecommendationSucceededRequest stateMetadata. */ + public stateMetadata: { [k: string]: string }; + + /** MarkRecommendationSucceededRequest etag. */ + public etag: string; + + /** + * Creates a new MarkRecommendationSucceededRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MarkRecommendationSucceededRequest instance + */ + public static create(properties?: google.cloud.recommender.v1.IMarkRecommendationSucceededRequest): google.cloud.recommender.v1.MarkRecommendationSucceededRequest; + + /** + * Encodes the specified MarkRecommendationSucceededRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationSucceededRequest.verify|verify} messages. + * @param message MarkRecommendationSucceededRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MarkRecommendationSucceededRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationSucceededRequest.verify|verify} messages. + * @param message MarkRecommendationSucceededRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MarkRecommendationSucceededRequest + * @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.recommender.v1.MarkRecommendationSucceededRequest; + + /** + * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MarkRecommendationSucceededRequest + * @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.recommender.v1.MarkRecommendationSucceededRequest; + + /** + * Verifies a MarkRecommendationSucceededRequest 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 MarkRecommendationSucceededRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MarkRecommendationSucceededRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.MarkRecommendationSucceededRequest; + + /** + * Creates a plain object from a MarkRecommendationSucceededRequest message. Also converts values to other types if specified. + * @param message MarkRecommendationSucceededRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.MarkRecommendationSucceededRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MarkRecommendationSucceededRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MarkRecommendationSucceededRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MarkRecommendationFailedRequest. */ + interface IMarkRecommendationFailedRequest { + + /** MarkRecommendationFailedRequest name */ + name?: (string|null); + + /** MarkRecommendationFailedRequest stateMetadata */ + stateMetadata?: ({ [k: string]: string }|null); + + /** MarkRecommendationFailedRequest etag */ + etag?: (string|null); + } + + /** Represents a MarkRecommendationFailedRequest. */ + class MarkRecommendationFailedRequest implements IMarkRecommendationFailedRequest { + + /** + * Constructs a new MarkRecommendationFailedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IMarkRecommendationFailedRequest); + + /** MarkRecommendationFailedRequest name. */ + public name: string; + + /** MarkRecommendationFailedRequest stateMetadata. */ + public stateMetadata: { [k: string]: string }; + + /** MarkRecommendationFailedRequest etag. */ + public etag: string; + + /** + * Creates a new MarkRecommendationFailedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MarkRecommendationFailedRequest instance + */ + public static create(properties?: google.cloud.recommender.v1.IMarkRecommendationFailedRequest): google.cloud.recommender.v1.MarkRecommendationFailedRequest; + + /** + * Encodes the specified MarkRecommendationFailedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationFailedRequest.verify|verify} messages. + * @param message MarkRecommendationFailedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IMarkRecommendationFailedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MarkRecommendationFailedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationFailedRequest.verify|verify} messages. + * @param message MarkRecommendationFailedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IMarkRecommendationFailedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MarkRecommendationFailedRequest + * @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.recommender.v1.MarkRecommendationFailedRequest; + + /** + * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MarkRecommendationFailedRequest + * @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.recommender.v1.MarkRecommendationFailedRequest; + + /** + * Verifies a MarkRecommendationFailedRequest 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 MarkRecommendationFailedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MarkRecommendationFailedRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.MarkRecommendationFailedRequest; + + /** + * Creates a plain object from a MarkRecommendationFailedRequest message. Also converts values to other types if specified. + * @param message MarkRecommendationFailedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.MarkRecommendationFailedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MarkRecommendationFailedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MarkRecommendationFailedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRecommenderConfigRequest. */ + interface IGetRecommenderConfigRequest { + + /** GetRecommenderConfigRequest name */ + name?: (string|null); + } + + /** Represents a GetRecommenderConfigRequest. */ + class GetRecommenderConfigRequest implements IGetRecommenderConfigRequest { + + /** + * Constructs a new GetRecommenderConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IGetRecommenderConfigRequest); + + /** GetRecommenderConfigRequest name. */ + public name: string; + + /** + * Creates a new GetRecommenderConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRecommenderConfigRequest instance + */ + public static create(properties?: google.cloud.recommender.v1.IGetRecommenderConfigRequest): google.cloud.recommender.v1.GetRecommenderConfigRequest; + + /** + * Encodes the specified GetRecommenderConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetRecommenderConfigRequest.verify|verify} messages. + * @param message GetRecommenderConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IGetRecommenderConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRecommenderConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetRecommenderConfigRequest.verify|verify} messages. + * @param message GetRecommenderConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IGetRecommenderConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRecommenderConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRecommenderConfigRequest + * @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.recommender.v1.GetRecommenderConfigRequest; + + /** + * Decodes a GetRecommenderConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRecommenderConfigRequest + * @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.recommender.v1.GetRecommenderConfigRequest; + + /** + * Verifies a GetRecommenderConfigRequest 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 GetRecommenderConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRecommenderConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.GetRecommenderConfigRequest; + + /** + * Creates a plain object from a GetRecommenderConfigRequest message. Also converts values to other types if specified. + * @param message GetRecommenderConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.GetRecommenderConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRecommenderConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRecommenderConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateRecommenderConfigRequest. */ + interface IUpdateRecommenderConfigRequest { + + /** UpdateRecommenderConfigRequest recommenderConfig */ + recommenderConfig?: (google.cloud.recommender.v1.IRecommenderConfig|null); + + /** UpdateRecommenderConfigRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateRecommenderConfigRequest validateOnly */ + validateOnly?: (boolean|null); + } + + /** Represents an UpdateRecommenderConfigRequest. */ + class UpdateRecommenderConfigRequest implements IUpdateRecommenderConfigRequest { + + /** + * Constructs a new UpdateRecommenderConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IUpdateRecommenderConfigRequest); + + /** UpdateRecommenderConfigRequest recommenderConfig. */ + public recommenderConfig?: (google.cloud.recommender.v1.IRecommenderConfig|null); + + /** UpdateRecommenderConfigRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateRecommenderConfigRequest validateOnly. */ + public validateOnly: boolean; + + /** + * Creates a new UpdateRecommenderConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateRecommenderConfigRequest instance + */ + public static create(properties?: google.cloud.recommender.v1.IUpdateRecommenderConfigRequest): google.cloud.recommender.v1.UpdateRecommenderConfigRequest; + + /** + * Encodes the specified UpdateRecommenderConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1.UpdateRecommenderConfigRequest.verify|verify} messages. + * @param message UpdateRecommenderConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IUpdateRecommenderConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateRecommenderConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.UpdateRecommenderConfigRequest.verify|verify} messages. + * @param message UpdateRecommenderConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IUpdateRecommenderConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateRecommenderConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateRecommenderConfigRequest + * @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.recommender.v1.UpdateRecommenderConfigRequest; + + /** + * Decodes an UpdateRecommenderConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateRecommenderConfigRequest + * @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.recommender.v1.UpdateRecommenderConfigRequest; + + /** + * Verifies an UpdateRecommenderConfigRequest 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 an UpdateRecommenderConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateRecommenderConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.UpdateRecommenderConfigRequest; + + /** + * Creates a plain object from an UpdateRecommenderConfigRequest message. Also converts values to other types if specified. + * @param message UpdateRecommenderConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.UpdateRecommenderConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateRecommenderConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateRecommenderConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetInsightTypeConfigRequest. */ + interface IGetInsightTypeConfigRequest { + + /** GetInsightTypeConfigRequest name */ + name?: (string|null); + } + + /** Represents a GetInsightTypeConfigRequest. */ + class GetInsightTypeConfigRequest implements IGetInsightTypeConfigRequest { + + /** + * Constructs a new GetInsightTypeConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IGetInsightTypeConfigRequest); + + /** GetInsightTypeConfigRequest name. */ + public name: string; + + /** + * Creates a new GetInsightTypeConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetInsightTypeConfigRequest instance + */ + public static create(properties?: google.cloud.recommender.v1.IGetInsightTypeConfigRequest): google.cloud.recommender.v1.GetInsightTypeConfigRequest; + + /** + * Encodes the specified GetInsightTypeConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetInsightTypeConfigRequest.verify|verify} messages. + * @param message GetInsightTypeConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IGetInsightTypeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetInsightTypeConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetInsightTypeConfigRequest.verify|verify} messages. + * @param message GetInsightTypeConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IGetInsightTypeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetInsightTypeConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetInsightTypeConfigRequest + * @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.recommender.v1.GetInsightTypeConfigRequest; + + /** + * Decodes a GetInsightTypeConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetInsightTypeConfigRequest + * @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.recommender.v1.GetInsightTypeConfigRequest; + + /** + * Verifies a GetInsightTypeConfigRequest 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 GetInsightTypeConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetInsightTypeConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.GetInsightTypeConfigRequest; + + /** + * Creates a plain object from a GetInsightTypeConfigRequest message. Also converts values to other types if specified. + * @param message GetInsightTypeConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.GetInsightTypeConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetInsightTypeConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetInsightTypeConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateInsightTypeConfigRequest. */ + interface IUpdateInsightTypeConfigRequest { + + /** UpdateInsightTypeConfigRequest insightTypeConfig */ + insightTypeConfig?: (google.cloud.recommender.v1.IInsightTypeConfig|null); + + /** UpdateInsightTypeConfigRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateInsightTypeConfigRequest validateOnly */ + validateOnly?: (boolean|null); + } + + /** Represents an UpdateInsightTypeConfigRequest. */ + class UpdateInsightTypeConfigRequest implements IUpdateInsightTypeConfigRequest { + + /** + * Constructs a new UpdateInsightTypeConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest); + + /** UpdateInsightTypeConfigRequest insightTypeConfig. */ + public insightTypeConfig?: (google.cloud.recommender.v1.IInsightTypeConfig|null); + + /** UpdateInsightTypeConfigRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateInsightTypeConfigRequest validateOnly. */ + public validateOnly: boolean; + + /** + * Creates a new UpdateInsightTypeConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateInsightTypeConfigRequest instance + */ + public static create(properties?: google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest): google.cloud.recommender.v1.UpdateInsightTypeConfigRequest; + + /** + * Encodes the specified UpdateInsightTypeConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1.UpdateInsightTypeConfigRequest.verify|verify} messages. + * @param message UpdateInsightTypeConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateInsightTypeConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.UpdateInsightTypeConfigRequest.verify|verify} messages. + * @param message UpdateInsightTypeConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateInsightTypeConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateInsightTypeConfigRequest + * @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.recommender.v1.UpdateInsightTypeConfigRequest; + + /** + * Decodes an UpdateInsightTypeConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateInsightTypeConfigRequest + * @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.recommender.v1.UpdateInsightTypeConfigRequest; + + /** + * Verifies an UpdateInsightTypeConfigRequest 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 an UpdateInsightTypeConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateInsightTypeConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.UpdateInsightTypeConfigRequest; + + /** + * Creates a plain object from an UpdateInsightTypeConfigRequest message. Also converts values to other types if specified. + * @param message UpdateInsightTypeConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1.UpdateInsightTypeConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateInsightTypeConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateInsightTypeConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace v1beta1. */ + namespace v1beta1 { + + /** Properties of an Insight. */ + interface IInsight { + + /** Insight name */ + name?: (string|null); + + /** Insight description */ + description?: (string|null); + + /** Insight targetResources */ + targetResources?: (string[]|null); + + /** Insight insightSubtype */ + insightSubtype?: (string|null); + + /** Insight content */ + content?: (google.protobuf.IStruct|null); + + /** Insight lastRefreshTime */ + lastRefreshTime?: (google.protobuf.ITimestamp|null); + + /** Insight observationPeriod */ + observationPeriod?: (google.protobuf.IDuration|null); + + /** Insight stateInfo */ + stateInfo?: (google.cloud.recommender.v1beta1.IInsightStateInfo|null); + + /** Insight category */ + category?: (google.cloud.recommender.v1beta1.Insight.Category|keyof typeof google.cloud.recommender.v1beta1.Insight.Category|null); + + /** Insight severity */ + severity?: (google.cloud.recommender.v1beta1.Insight.Severity|keyof typeof google.cloud.recommender.v1beta1.Insight.Severity|null); + + /** Insight etag */ + etag?: (string|null); + + /** Insight associatedRecommendations */ + associatedRecommendations?: (google.cloud.recommender.v1beta1.Insight.IRecommendationReference[]|null); + } + + /** Represents an Insight. */ + class Insight implements IInsight { + + /** + * Constructs a new Insight. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IInsight); + + /** Insight name. */ + public name: string; + + /** Insight description. */ + public description: string; + + /** Insight targetResources. */ + public targetResources: string[]; + + /** Insight insightSubtype. */ + public insightSubtype: string; + + /** Insight content. */ + public content?: (google.protobuf.IStruct|null); + + /** Insight lastRefreshTime. */ + public lastRefreshTime?: (google.protobuf.ITimestamp|null); + + /** Insight observationPeriod. */ + public observationPeriod?: (google.protobuf.IDuration|null); + + /** Insight stateInfo. */ + public stateInfo?: (google.cloud.recommender.v1beta1.IInsightStateInfo|null); + + /** Insight category. */ + public category: (google.cloud.recommender.v1beta1.Insight.Category|keyof typeof google.cloud.recommender.v1beta1.Insight.Category); + + /** Insight severity. */ + public severity: (google.cloud.recommender.v1beta1.Insight.Severity|keyof typeof google.cloud.recommender.v1beta1.Insight.Severity); + + /** Insight etag. */ + public etag: string; + + /** Insight associatedRecommendations. */ + public associatedRecommendations: google.cloud.recommender.v1beta1.Insight.IRecommendationReference[]; + + /** + * Creates a new Insight instance using the specified properties. + * @param [properties] Properties to set + * @returns Insight instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IInsight): google.cloud.recommender.v1beta1.Insight; + + /** + * Encodes the specified Insight message. Does not implicitly {@link google.cloud.recommender.v1beta1.Insight.verify|verify} messages. + * @param message Insight message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IInsight, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Insight message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Insight.verify|verify} messages. + * @param message Insight message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IInsight, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Insight message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Insight + * @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.recommender.v1beta1.Insight; + + /** + * Decodes an Insight message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Insight + * @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.recommender.v1beta1.Insight; + + /** + * Verifies an Insight 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 an Insight message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Insight + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.Insight; + + /** + * Creates a plain object from an Insight message. Also converts values to other types if specified. + * @param message Insight + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.Insight, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Insight to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Insight + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Insight { + + /** Category enum. */ + enum Category { + CATEGORY_UNSPECIFIED = 0, + COST = 1, + SECURITY = 2, + PERFORMANCE = 3, + MANAGEABILITY = 4 + } + + /** Severity enum. */ + enum Severity { + SEVERITY_UNSPECIFIED = 0, + LOW = 1, + MEDIUM = 2, + HIGH = 3, + CRITICAL = 4 + } + + /** Properties of a RecommendationReference. */ + interface IRecommendationReference { + + /** RecommendationReference recommendation */ + recommendation?: (string|null); + } + + /** Represents a RecommendationReference. */ + class RecommendationReference implements IRecommendationReference { + + /** + * Constructs a new RecommendationReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.Insight.IRecommendationReference); + + /** RecommendationReference recommendation. */ + public recommendation: string; + + /** + * Creates a new RecommendationReference instance using the specified properties. + * @param [properties] Properties to set + * @returns RecommendationReference instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.Insight.IRecommendationReference): google.cloud.recommender.v1beta1.Insight.RecommendationReference; + + /** + * Encodes the specified RecommendationReference message. Does not implicitly {@link google.cloud.recommender.v1beta1.Insight.RecommendationReference.verify|verify} messages. + * @param message RecommendationReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.Insight.IRecommendationReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecommendationReference message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Insight.RecommendationReference.verify|verify} messages. + * @param message RecommendationReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.Insight.IRecommendationReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecommendationReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecommendationReference + * @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.recommender.v1beta1.Insight.RecommendationReference; + + /** + * Decodes a RecommendationReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecommendationReference + * @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.recommender.v1beta1.Insight.RecommendationReference; + + /** + * Verifies a RecommendationReference 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 RecommendationReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecommendationReference + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.Insight.RecommendationReference; + + /** + * Creates a plain object from a RecommendationReference message. Also converts values to other types if specified. + * @param message RecommendationReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.Insight.RecommendationReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecommendationReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecommendationReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an InsightStateInfo. */ + interface IInsightStateInfo { + + /** InsightStateInfo state */ + state?: (google.cloud.recommender.v1beta1.InsightStateInfo.State|keyof typeof google.cloud.recommender.v1beta1.InsightStateInfo.State|null); + + /** InsightStateInfo stateMetadata */ + stateMetadata?: ({ [k: string]: string }|null); + } + + /** Represents an InsightStateInfo. */ + class InsightStateInfo implements IInsightStateInfo { + + /** + * Constructs a new InsightStateInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IInsightStateInfo); + + /** InsightStateInfo state. */ + public state: (google.cloud.recommender.v1beta1.InsightStateInfo.State|keyof typeof google.cloud.recommender.v1beta1.InsightStateInfo.State); + + /** InsightStateInfo stateMetadata. */ + public stateMetadata: { [k: string]: string }; + + /** + * Creates a new InsightStateInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns InsightStateInfo instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IInsightStateInfo): google.cloud.recommender.v1beta1.InsightStateInfo; + + /** + * Encodes the specified InsightStateInfo message. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightStateInfo.verify|verify} messages. + * @param message InsightStateInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IInsightStateInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsightStateInfo message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightStateInfo.verify|verify} messages. + * @param message InsightStateInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IInsightStateInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsightStateInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsightStateInfo + * @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.recommender.v1beta1.InsightStateInfo; + + /** + * Decodes an InsightStateInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsightStateInfo + * @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.recommender.v1beta1.InsightStateInfo; + + /** + * Verifies an InsightStateInfo 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 an InsightStateInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsightStateInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.InsightStateInfo; + + /** + * Creates a plain object from an InsightStateInfo message. Also converts values to other types if specified. + * @param message InsightStateInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.InsightStateInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsightStateInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsightStateInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InsightStateInfo { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + ACCEPTED = 2, + DISMISSED = 3 + } + } + + /** Properties of an InsightTypeConfig. */ + interface IInsightTypeConfig { + + /** InsightTypeConfig name */ + name?: (string|null); + + /** InsightTypeConfig insightTypeGenerationConfig */ + insightTypeGenerationConfig?: (google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig|null); + + /** InsightTypeConfig etag */ + etag?: (string|null); + + /** InsightTypeConfig updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** InsightTypeConfig revisionId */ + revisionId?: (string|null); + + /** InsightTypeConfig annotations */ + annotations?: ({ [k: string]: string }|null); + + /** InsightTypeConfig displayName */ + displayName?: (string|null); + } + + /** Represents an InsightTypeConfig. */ + class InsightTypeConfig implements IInsightTypeConfig { + + /** + * Constructs a new InsightTypeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IInsightTypeConfig); + + /** InsightTypeConfig name. */ + public name: string; + + /** InsightTypeConfig insightTypeGenerationConfig. */ + public insightTypeGenerationConfig?: (google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig|null); + + /** InsightTypeConfig etag. */ + public etag: string; + + /** InsightTypeConfig updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** InsightTypeConfig revisionId. */ + public revisionId: string; + + /** InsightTypeConfig annotations. */ + public annotations: { [k: string]: string }; + + /** InsightTypeConfig displayName. */ + public displayName: string; + + /** + * Creates a new InsightTypeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InsightTypeConfig instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IInsightTypeConfig): google.cloud.recommender.v1beta1.InsightTypeConfig; + + /** + * Encodes the specified InsightTypeConfig message. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightTypeConfig.verify|verify} messages. + * @param message InsightTypeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IInsightTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsightTypeConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightTypeConfig.verify|verify} messages. + * @param message InsightTypeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IInsightTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsightTypeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsightTypeConfig + * @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.recommender.v1beta1.InsightTypeConfig; + + /** + * Decodes an InsightTypeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsightTypeConfig + * @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.recommender.v1beta1.InsightTypeConfig; + + /** + * Verifies an InsightTypeConfig 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 an InsightTypeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsightTypeConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.InsightTypeConfig; + + /** + * Creates a plain object from an InsightTypeConfig message. Also converts values to other types if specified. + * @param message InsightTypeConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.InsightTypeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsightTypeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsightTypeConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InsightTypeGenerationConfig. */ + interface IInsightTypeGenerationConfig { + + /** InsightTypeGenerationConfig params */ + params?: (google.protobuf.IStruct|null); + } + + /** Represents an InsightTypeGenerationConfig. */ + class InsightTypeGenerationConfig implements IInsightTypeGenerationConfig { + + /** + * Constructs a new InsightTypeGenerationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig); + + /** InsightTypeGenerationConfig params. */ + public params?: (google.protobuf.IStruct|null); + + /** + * Creates a new InsightTypeGenerationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InsightTypeGenerationConfig instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig): google.cloud.recommender.v1beta1.InsightTypeGenerationConfig; + + /** + * Encodes the specified InsightTypeGenerationConfig message. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.verify|verify} messages. + * @param message InsightTypeGenerationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsightTypeGenerationConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.verify|verify} messages. + * @param message InsightTypeGenerationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsightTypeGenerationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsightTypeGenerationConfig + * @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.recommender.v1beta1.InsightTypeGenerationConfig; + + /** + * Decodes an InsightTypeGenerationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsightTypeGenerationConfig + * @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.recommender.v1beta1.InsightTypeGenerationConfig; + + /** + * Verifies an InsightTypeGenerationConfig 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 an InsightTypeGenerationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsightTypeGenerationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.InsightTypeGenerationConfig; + + /** + * Creates a plain object from an InsightTypeGenerationConfig message. Also converts values to other types if specified. + * @param message InsightTypeGenerationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.InsightTypeGenerationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsightTypeGenerationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsightTypeGenerationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Recommendation. */ + interface IRecommendation { + + /** Recommendation name */ + name?: (string|null); + + /** Recommendation description */ + description?: (string|null); + + /** Recommendation recommenderSubtype */ + recommenderSubtype?: (string|null); + + /** Recommendation lastRefreshTime */ + lastRefreshTime?: (google.protobuf.ITimestamp|null); + + /** Recommendation primaryImpact */ + primaryImpact?: (google.cloud.recommender.v1beta1.IImpact|null); + + /** Recommendation additionalImpact */ + additionalImpact?: (google.cloud.recommender.v1beta1.IImpact[]|null); + + /** Recommendation priority */ + priority?: (google.cloud.recommender.v1beta1.Recommendation.Priority|keyof typeof google.cloud.recommender.v1beta1.Recommendation.Priority|null); + + /** Recommendation content */ + content?: (google.cloud.recommender.v1beta1.IRecommendationContent|null); + + /** Recommendation stateInfo */ + stateInfo?: (google.cloud.recommender.v1beta1.IRecommendationStateInfo|null); + + /** Recommendation etag */ + etag?: (string|null); + + /** Recommendation associatedInsights */ + associatedInsights?: (google.cloud.recommender.v1beta1.Recommendation.IInsightReference[]|null); + + /** Recommendation xorGroupId */ + xorGroupId?: (string|null); + } + + /** Represents a Recommendation. */ + class Recommendation implements IRecommendation { + + /** + * Constructs a new Recommendation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IRecommendation); + + /** Recommendation name. */ + public name: string; + + /** Recommendation description. */ + public description: string; + + /** Recommendation recommenderSubtype. */ + public recommenderSubtype: string; + + /** Recommendation lastRefreshTime. */ + public lastRefreshTime?: (google.protobuf.ITimestamp|null); + + /** Recommendation primaryImpact. */ + public primaryImpact?: (google.cloud.recommender.v1beta1.IImpact|null); + + /** Recommendation additionalImpact. */ + public additionalImpact: google.cloud.recommender.v1beta1.IImpact[]; + + /** Recommendation priority. */ + public priority: (google.cloud.recommender.v1beta1.Recommendation.Priority|keyof typeof google.cloud.recommender.v1beta1.Recommendation.Priority); + + /** Recommendation content. */ + public content?: (google.cloud.recommender.v1beta1.IRecommendationContent|null); + + /** Recommendation stateInfo. */ + public stateInfo?: (google.cloud.recommender.v1beta1.IRecommendationStateInfo|null); + + /** Recommendation etag. */ + public etag: string; + + /** Recommendation associatedInsights. */ + public associatedInsights: google.cloud.recommender.v1beta1.Recommendation.IInsightReference[]; + + /** Recommendation xorGroupId. */ + public xorGroupId: string; + + /** + * Creates a new Recommendation instance using the specified properties. + * @param [properties] Properties to set + * @returns Recommendation instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IRecommendation): google.cloud.recommender.v1beta1.Recommendation; + + /** + * Encodes the specified Recommendation message. Does not implicitly {@link google.cloud.recommender.v1beta1.Recommendation.verify|verify} messages. + * @param message Recommendation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IRecommendation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Recommendation message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Recommendation.verify|verify} messages. + * @param message Recommendation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IRecommendation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Recommendation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Recommendation + * @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.recommender.v1beta1.Recommendation; + + /** + * Decodes a Recommendation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Recommendation + * @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.recommender.v1beta1.Recommendation; + + /** + * Verifies a Recommendation 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 Recommendation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Recommendation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.Recommendation; + + /** + * Creates a plain object from a Recommendation message. Also converts values to other types if specified. + * @param message Recommendation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.Recommendation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Recommendation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Recommendation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Recommendation { + + /** Priority enum. */ + enum Priority { + PRIORITY_UNSPECIFIED = 0, + P4 = 1, + P3 = 2, + P2 = 3, + P1 = 4 + } + + /** Properties of an InsightReference. */ + interface IInsightReference { + + /** InsightReference insight */ + insight?: (string|null); + } + + /** Represents an InsightReference. */ + class InsightReference implements IInsightReference { + + /** + * Constructs a new InsightReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.Recommendation.IInsightReference); + + /** InsightReference insight. */ + public insight: string; + + /** + * Creates a new InsightReference instance using the specified properties. + * @param [properties] Properties to set + * @returns InsightReference instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.Recommendation.IInsightReference): google.cloud.recommender.v1beta1.Recommendation.InsightReference; + + /** + * Encodes the specified InsightReference message. Does not implicitly {@link google.cloud.recommender.v1beta1.Recommendation.InsightReference.verify|verify} messages. + * @param message InsightReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.Recommendation.IInsightReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsightReference message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Recommendation.InsightReference.verify|verify} messages. + * @param message InsightReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.Recommendation.IInsightReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsightReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsightReference + * @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.recommender.v1beta1.Recommendation.InsightReference; + + /** + * Decodes an InsightReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsightReference + * @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.recommender.v1beta1.Recommendation.InsightReference; + + /** + * Verifies an InsightReference 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 an InsightReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsightReference + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.Recommendation.InsightReference; + + /** + * Creates a plain object from an InsightReference message. Also converts values to other types if specified. + * @param message InsightReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.Recommendation.InsightReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsightReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsightReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a RecommendationContent. */ + interface IRecommendationContent { + + /** RecommendationContent operationGroups */ + operationGroups?: (google.cloud.recommender.v1beta1.IOperationGroup[]|null); + + /** RecommendationContent overview */ + overview?: (google.protobuf.IStruct|null); + } + + /** Represents a RecommendationContent. */ + class RecommendationContent implements IRecommendationContent { + + /** + * Constructs a new RecommendationContent. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IRecommendationContent); + + /** RecommendationContent operationGroups. */ + public operationGroups: google.cloud.recommender.v1beta1.IOperationGroup[]; + + /** RecommendationContent overview. */ + public overview?: (google.protobuf.IStruct|null); + + /** + * Creates a new RecommendationContent instance using the specified properties. + * @param [properties] Properties to set + * @returns RecommendationContent instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IRecommendationContent): google.cloud.recommender.v1beta1.RecommendationContent; + + /** + * Encodes the specified RecommendationContent message. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommendationContent.verify|verify} messages. + * @param message RecommendationContent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IRecommendationContent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecommendationContent message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommendationContent.verify|verify} messages. + * @param message RecommendationContent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IRecommendationContent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecommendationContent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecommendationContent + * @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.recommender.v1beta1.RecommendationContent; + + /** + * Decodes a RecommendationContent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecommendationContent + * @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.recommender.v1beta1.RecommendationContent; + + /** + * Verifies a RecommendationContent 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 RecommendationContent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecommendationContent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.RecommendationContent; + + /** + * Creates a plain object from a RecommendationContent message. Also converts values to other types if specified. + * @param message RecommendationContent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.RecommendationContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecommendationContent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecommendationContent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OperationGroup. */ + interface IOperationGroup { + + /** OperationGroup operations */ + operations?: (google.cloud.recommender.v1beta1.IOperation[]|null); + } + + /** Represents an OperationGroup. */ + class OperationGroup implements IOperationGroup { + + /** + * Constructs a new OperationGroup. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IOperationGroup); + + /** OperationGroup operations. */ + public operations: google.cloud.recommender.v1beta1.IOperation[]; + + /** + * Creates a new OperationGroup instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationGroup instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IOperationGroup): google.cloud.recommender.v1beta1.OperationGroup; + + /** + * Encodes the specified OperationGroup message. Does not implicitly {@link google.cloud.recommender.v1beta1.OperationGroup.verify|verify} messages. + * @param message OperationGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IOperationGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OperationGroup message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.OperationGroup.verify|verify} messages. + * @param message OperationGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IOperationGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OperationGroup message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationGroup + * @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.recommender.v1beta1.OperationGroup; + + /** + * Decodes an OperationGroup message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OperationGroup + * @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.recommender.v1beta1.OperationGroup; + + /** + * Verifies an OperationGroup 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 an OperationGroup message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OperationGroup + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.OperationGroup; + + /** + * Creates a plain object from an OperationGroup message. Also converts values to other types if specified. + * @param message OperationGroup + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.OperationGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OperationGroup to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OperationGroup + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Operation. */ + interface IOperation { + + /** Operation action */ + action?: (string|null); + + /** Operation resourceType */ + resourceType?: (string|null); + + /** Operation resource */ + resource?: (string|null); + + /** Operation path */ + path?: (string|null); + + /** Operation sourceResource */ + sourceResource?: (string|null); + + /** Operation sourcePath */ + sourcePath?: (string|null); + + /** Operation value */ + value?: (google.protobuf.IValue|null); + + /** Operation valueMatcher */ + valueMatcher?: (google.cloud.recommender.v1beta1.IValueMatcher|null); + + /** Operation pathFilters */ + pathFilters?: ({ [k: string]: google.protobuf.IValue }|null); + + /** Operation pathValueMatchers */ + pathValueMatchers?: ({ [k: string]: google.cloud.recommender.v1beta1.IValueMatcher }|null); + } + + /** Represents an Operation. */ + class Operation implements IOperation { + + /** + * Constructs a new Operation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IOperation); + + /** Operation action. */ + public action: string; + + /** Operation resourceType. */ + public resourceType: string; + + /** Operation resource. */ + public resource: string; + + /** Operation path. */ + public path: string; + + /** Operation sourceResource. */ + public sourceResource: string; + + /** Operation sourcePath. */ + public sourcePath: string; + + /** Operation value. */ + public value?: (google.protobuf.IValue|null); + + /** Operation valueMatcher. */ + public valueMatcher?: (google.cloud.recommender.v1beta1.IValueMatcher|null); + + /** Operation pathFilters. */ + public pathFilters: { [k: string]: google.protobuf.IValue }; + + /** Operation pathValueMatchers. */ + public pathValueMatchers: { [k: string]: google.cloud.recommender.v1beta1.IValueMatcher }; + + /** Operation pathValue. */ + public pathValue?: ("value"|"valueMatcher"); + + /** + * Creates a new Operation instance using the specified properties. + * @param [properties] Properties to set + * @returns Operation instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IOperation): google.cloud.recommender.v1beta1.Operation; + + /** + * Encodes the specified Operation message. Does not implicitly {@link google.cloud.recommender.v1beta1.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Operation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Operation + * @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.recommender.v1beta1.Operation; + + /** + * Decodes an Operation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Operation + * @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.recommender.v1beta1.Operation; + + /** + * Verifies an Operation 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 an Operation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Operation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.Operation; + + /** + * Creates a plain object from an Operation message. Also converts values to other types if specified. + * @param message Operation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Operation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Operation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValueMatcher. */ + interface IValueMatcher { + + /** ValueMatcher matchesPattern */ + matchesPattern?: (string|null); + } + + /** Represents a ValueMatcher. */ + class ValueMatcher implements IValueMatcher { + + /** + * Constructs a new ValueMatcher. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IValueMatcher); + + /** ValueMatcher matchesPattern. */ + public matchesPattern?: (string|null); + + /** ValueMatcher matchVariant. */ + public matchVariant?: "matchesPattern"; + + /** + * Creates a new ValueMatcher instance using the specified properties. + * @param [properties] Properties to set + * @returns ValueMatcher instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IValueMatcher): google.cloud.recommender.v1beta1.ValueMatcher; + + /** + * Encodes the specified ValueMatcher message. Does not implicitly {@link google.cloud.recommender.v1beta1.ValueMatcher.verify|verify} messages. + * @param message ValueMatcher message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IValueMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValueMatcher message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ValueMatcher.verify|verify} messages. + * @param message ValueMatcher message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IValueMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValueMatcher message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValueMatcher + * @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.recommender.v1beta1.ValueMatcher; + + /** + * Decodes a ValueMatcher message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValueMatcher + * @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.recommender.v1beta1.ValueMatcher; + + /** + * Verifies a ValueMatcher 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 ValueMatcher message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValueMatcher + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.ValueMatcher; + + /** + * Creates a plain object from a ValueMatcher message. Also converts values to other types if specified. + * @param message ValueMatcher + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.ValueMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValueMatcher to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValueMatcher + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CostProjection. */ + interface ICostProjection { + + /** CostProjection cost */ + cost?: (google.type.IMoney|null); + + /** CostProjection duration */ + duration?: (google.protobuf.IDuration|null); + } + + /** Represents a CostProjection. */ + class CostProjection implements ICostProjection { + + /** + * Constructs a new CostProjection. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.ICostProjection); + + /** CostProjection cost. */ + public cost?: (google.type.IMoney|null); + + /** CostProjection duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** + * Creates a new CostProjection instance using the specified properties. + * @param [properties] Properties to set + * @returns CostProjection instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.ICostProjection): google.cloud.recommender.v1beta1.CostProjection; + + /** + * Encodes the specified CostProjection message. Does not implicitly {@link google.cloud.recommender.v1beta1.CostProjection.verify|verify} messages. + * @param message CostProjection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.ICostProjection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CostProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.CostProjection.verify|verify} messages. + * @param message CostProjection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.ICostProjection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CostProjection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CostProjection + * @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.recommender.v1beta1.CostProjection; + + /** + * Decodes a CostProjection message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CostProjection + * @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.recommender.v1beta1.CostProjection; + + /** + * Verifies a CostProjection 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 CostProjection message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CostProjection + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.CostProjection; + + /** + * Creates a plain object from a CostProjection message. Also converts values to other types if specified. + * @param message CostProjection + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.CostProjection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CostProjection to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CostProjection + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SecurityProjection. */ + interface ISecurityProjection { + + /** SecurityProjection details */ + details?: (google.protobuf.IStruct|null); + } + + /** Represents a SecurityProjection. */ + class SecurityProjection implements ISecurityProjection { + + /** + * Constructs a new SecurityProjection. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.ISecurityProjection); + + /** SecurityProjection details. */ + public details?: (google.protobuf.IStruct|null); + + /** + * Creates a new SecurityProjection instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityProjection instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.ISecurityProjection): google.cloud.recommender.v1beta1.SecurityProjection; + + /** + * Encodes the specified SecurityProjection message. Does not implicitly {@link google.cloud.recommender.v1beta1.SecurityProjection.verify|verify} messages. + * @param message SecurityProjection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.ISecurityProjection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.SecurityProjection.verify|verify} messages. + * @param message SecurityProjection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.ISecurityProjection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityProjection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityProjection + * @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.recommender.v1beta1.SecurityProjection; + + /** + * Decodes a SecurityProjection message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityProjection + * @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.recommender.v1beta1.SecurityProjection; + + /** + * Verifies a SecurityProjection 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 SecurityProjection message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityProjection + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.SecurityProjection; + + /** + * Creates a plain object from a SecurityProjection message. Also converts values to other types if specified. + * @param message SecurityProjection + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.SecurityProjection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityProjection to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityProjection + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SustainabilityProjection. */ + interface ISustainabilityProjection { + + /** SustainabilityProjection kgCO2e */ + kgCO2e?: (number|null); + + /** SustainabilityProjection duration */ + duration?: (google.protobuf.IDuration|null); + } + + /** Represents a SustainabilityProjection. */ + class SustainabilityProjection implements ISustainabilityProjection { + + /** + * Constructs a new SustainabilityProjection. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.ISustainabilityProjection); + + /** SustainabilityProjection kgCO2e. */ + public kgCO2e: number; + + /** SustainabilityProjection duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** + * Creates a new SustainabilityProjection instance using the specified properties. + * @param [properties] Properties to set + * @returns SustainabilityProjection instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.ISustainabilityProjection): google.cloud.recommender.v1beta1.SustainabilityProjection; + + /** + * Encodes the specified SustainabilityProjection message. Does not implicitly {@link google.cloud.recommender.v1beta1.SustainabilityProjection.verify|verify} messages. + * @param message SustainabilityProjection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.ISustainabilityProjection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SustainabilityProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.SustainabilityProjection.verify|verify} messages. + * @param message SustainabilityProjection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.ISustainabilityProjection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SustainabilityProjection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SustainabilityProjection + * @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.recommender.v1beta1.SustainabilityProjection; + + /** + * Decodes a SustainabilityProjection message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SustainabilityProjection + * @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.recommender.v1beta1.SustainabilityProjection; + + /** + * Verifies a SustainabilityProjection 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 SustainabilityProjection message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SustainabilityProjection + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.SustainabilityProjection; + + /** + * Creates a plain object from a SustainabilityProjection message. Also converts values to other types if specified. + * @param message SustainabilityProjection + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.SustainabilityProjection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SustainabilityProjection to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SustainabilityProjection + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Impact. */ + interface IImpact { + + /** Impact category */ + category?: (google.cloud.recommender.v1beta1.Impact.Category|keyof typeof google.cloud.recommender.v1beta1.Impact.Category|null); + + /** Impact costProjection */ + costProjection?: (google.cloud.recommender.v1beta1.ICostProjection|null); + + /** Impact securityProjection */ + securityProjection?: (google.cloud.recommender.v1beta1.ISecurityProjection|null); + + /** Impact sustainabilityProjection */ + sustainabilityProjection?: (google.cloud.recommender.v1beta1.ISustainabilityProjection|null); + } + + /** Represents an Impact. */ + class Impact implements IImpact { + + /** + * Constructs a new Impact. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IImpact); + + /** Impact category. */ + public category: (google.cloud.recommender.v1beta1.Impact.Category|keyof typeof google.cloud.recommender.v1beta1.Impact.Category); + + /** Impact costProjection. */ + public costProjection?: (google.cloud.recommender.v1beta1.ICostProjection|null); + + /** Impact securityProjection. */ + public securityProjection?: (google.cloud.recommender.v1beta1.ISecurityProjection|null); + + /** Impact sustainabilityProjection. */ + public sustainabilityProjection?: (google.cloud.recommender.v1beta1.ISustainabilityProjection|null); + + /** Impact projection. */ + public projection?: ("costProjection"|"securityProjection"|"sustainabilityProjection"); + + /** + * Creates a new Impact instance using the specified properties. + * @param [properties] Properties to set + * @returns Impact instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IImpact): google.cloud.recommender.v1beta1.Impact; + + /** + * Encodes the specified Impact message. Does not implicitly {@link google.cloud.recommender.v1beta1.Impact.verify|verify} messages. + * @param message Impact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IImpact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Impact message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Impact.verify|verify} messages. + * @param message Impact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IImpact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Impact message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Impact + * @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.recommender.v1beta1.Impact; + + /** + * Decodes an Impact message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Impact + * @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.recommender.v1beta1.Impact; + + /** + * Verifies an Impact 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 an Impact message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Impact + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.Impact; + + /** + * Creates a plain object from an Impact message. Also converts values to other types if specified. + * @param message Impact + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.Impact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Impact to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Impact + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Impact { + + /** Category enum. */ + enum Category { + CATEGORY_UNSPECIFIED = 0, + COST = 1, + SECURITY = 2, + PERFORMANCE = 3, + MANAGEABILITY = 4, + SUSTAINABILITY = 5 + } + } + + /** Properties of a RecommendationStateInfo. */ + interface IRecommendationStateInfo { + + /** RecommendationStateInfo state */ + state?: (google.cloud.recommender.v1beta1.RecommendationStateInfo.State|keyof typeof google.cloud.recommender.v1beta1.RecommendationStateInfo.State|null); + + /** RecommendationStateInfo stateMetadata */ + stateMetadata?: ({ [k: string]: string }|null); + } + + /** Represents a RecommendationStateInfo. */ + class RecommendationStateInfo implements IRecommendationStateInfo { + + /** + * Constructs a new RecommendationStateInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IRecommendationStateInfo); + + /** RecommendationStateInfo state. */ + public state: (google.cloud.recommender.v1beta1.RecommendationStateInfo.State|keyof typeof google.cloud.recommender.v1beta1.RecommendationStateInfo.State); + + /** RecommendationStateInfo stateMetadata. */ + public stateMetadata: { [k: string]: string }; + + /** + * Creates a new RecommendationStateInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns RecommendationStateInfo instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IRecommendationStateInfo): google.cloud.recommender.v1beta1.RecommendationStateInfo; + + /** + * Encodes the specified RecommendationStateInfo message. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommendationStateInfo.verify|verify} messages. + * @param message RecommendationStateInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IRecommendationStateInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecommendationStateInfo message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommendationStateInfo.verify|verify} messages. + * @param message RecommendationStateInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IRecommendationStateInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecommendationStateInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecommendationStateInfo + * @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.recommender.v1beta1.RecommendationStateInfo; + + /** + * Decodes a RecommendationStateInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecommendationStateInfo + * @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.recommender.v1beta1.RecommendationStateInfo; + + /** + * Verifies a RecommendationStateInfo 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 RecommendationStateInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecommendationStateInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.RecommendationStateInfo; + + /** + * Creates a plain object from a RecommendationStateInfo message. Also converts values to other types if specified. + * @param message RecommendationStateInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.RecommendationStateInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecommendationStateInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecommendationStateInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RecommendationStateInfo { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + CLAIMED = 6, + SUCCEEDED = 3, + FAILED = 4, + DISMISSED = 5 + } + } + + /** Properties of a RecommenderConfig. */ + interface IRecommenderConfig { + + /** RecommenderConfig name */ + name?: (string|null); + + /** RecommenderConfig recommenderGenerationConfig */ + recommenderGenerationConfig?: (google.cloud.recommender.v1beta1.IRecommenderGenerationConfig|null); + + /** RecommenderConfig etag */ + etag?: (string|null); + + /** RecommenderConfig updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** RecommenderConfig revisionId */ + revisionId?: (string|null); + + /** RecommenderConfig annotations */ + annotations?: ({ [k: string]: string }|null); + + /** RecommenderConfig displayName */ + displayName?: (string|null); + } + + /** Represents a RecommenderConfig. */ + class RecommenderConfig implements IRecommenderConfig { + + /** + * Constructs a new RecommenderConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IRecommenderConfig); + + /** RecommenderConfig name. */ + public name: string; + + /** RecommenderConfig recommenderGenerationConfig. */ + public recommenderGenerationConfig?: (google.cloud.recommender.v1beta1.IRecommenderGenerationConfig|null); + + /** RecommenderConfig etag. */ + public etag: string; + + /** RecommenderConfig updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** RecommenderConfig revisionId. */ + public revisionId: string; + + /** RecommenderConfig annotations. */ + public annotations: { [k: string]: string }; + + /** RecommenderConfig displayName. */ + public displayName: string; + + /** + * Creates a new RecommenderConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RecommenderConfig instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IRecommenderConfig): google.cloud.recommender.v1beta1.RecommenderConfig; + + /** + * Encodes the specified RecommenderConfig message. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommenderConfig.verify|verify} messages. + * @param message RecommenderConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IRecommenderConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecommenderConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommenderConfig.verify|verify} messages. + * @param message RecommenderConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IRecommenderConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecommenderConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecommenderConfig + * @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.recommender.v1beta1.RecommenderConfig; + + /** + * Decodes a RecommenderConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecommenderConfig + * @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.recommender.v1beta1.RecommenderConfig; + + /** + * Verifies a RecommenderConfig 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 RecommenderConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecommenderConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.RecommenderConfig; + + /** + * Creates a plain object from a RecommenderConfig message. Also converts values to other types if specified. + * @param message RecommenderConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.RecommenderConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecommenderConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecommenderConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RecommenderGenerationConfig. */ + interface IRecommenderGenerationConfig { + + /** RecommenderGenerationConfig params */ + params?: (google.protobuf.IStruct|null); + } + + /** Represents a RecommenderGenerationConfig. */ + class RecommenderGenerationConfig implements IRecommenderGenerationConfig { + + /** + * Constructs a new RecommenderGenerationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IRecommenderGenerationConfig); + + /** RecommenderGenerationConfig params. */ + public params?: (google.protobuf.IStruct|null); + + /** + * Creates a new RecommenderGenerationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RecommenderGenerationConfig instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IRecommenderGenerationConfig): google.cloud.recommender.v1beta1.RecommenderGenerationConfig; + + /** + * Encodes the specified RecommenderGenerationConfig message. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommenderGenerationConfig.verify|verify} messages. + * @param message RecommenderGenerationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IRecommenderGenerationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecommenderGenerationConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommenderGenerationConfig.verify|verify} messages. + * @param message RecommenderGenerationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IRecommenderGenerationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecommenderGenerationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecommenderGenerationConfig + * @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.recommender.v1beta1.RecommenderGenerationConfig; + + /** + * Decodes a RecommenderGenerationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecommenderGenerationConfig + * @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.recommender.v1beta1.RecommenderGenerationConfig; + + /** + * Verifies a RecommenderGenerationConfig 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 RecommenderGenerationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecommenderGenerationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.RecommenderGenerationConfig; + + /** + * Creates a plain object from a RecommenderGenerationConfig message. Also converts values to other types if specified. + * @param message RecommenderGenerationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.RecommenderGenerationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecommenderGenerationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecommenderGenerationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents a Recommender */ + class Recommender extends $protobuf.rpc.Service { + + /** + * Constructs a new Recommender service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Recommender service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Recommender; + + /** + * Calls ListInsights. + * @param request ListInsightsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListInsightsResponse + */ + public listInsights(request: google.cloud.recommender.v1beta1.IListInsightsRequest, callback: google.cloud.recommender.v1beta1.Recommender.ListInsightsCallback): void; + + /** + * Calls ListInsights. + * @param request ListInsightsRequest message or plain object + * @returns Promise + */ + public listInsights(request: google.cloud.recommender.v1beta1.IListInsightsRequest): Promise; + + /** + * Calls GetInsight. + * @param request GetInsightRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Insight + */ + public getInsight(request: google.cloud.recommender.v1beta1.IGetInsightRequest, callback: google.cloud.recommender.v1beta1.Recommender.GetInsightCallback): void; + + /** + * Calls GetInsight. + * @param request GetInsightRequest message or plain object + * @returns Promise + */ + public getInsight(request: google.cloud.recommender.v1beta1.IGetInsightRequest): Promise; + + /** + * Calls MarkInsightAccepted. + * @param request MarkInsightAcceptedRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Insight + */ + public markInsightAccepted(request: google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest, callback: google.cloud.recommender.v1beta1.Recommender.MarkInsightAcceptedCallback): void; + + /** + * Calls MarkInsightAccepted. + * @param request MarkInsightAcceptedRequest message or plain object + * @returns Promise + */ + public markInsightAccepted(request: google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest): Promise; + + /** + * Calls ListRecommendations. + * @param request ListRecommendationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListRecommendationsResponse + */ + public listRecommendations(request: google.cloud.recommender.v1beta1.IListRecommendationsRequest, callback: google.cloud.recommender.v1beta1.Recommender.ListRecommendationsCallback): void; + + /** + * Calls ListRecommendations. + * @param request ListRecommendationsRequest message or plain object + * @returns Promise + */ + public listRecommendations(request: google.cloud.recommender.v1beta1.IListRecommendationsRequest): Promise; + + /** + * Calls GetRecommendation. + * @param request GetRecommendationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Recommendation + */ + public getRecommendation(request: google.cloud.recommender.v1beta1.IGetRecommendationRequest, callback: google.cloud.recommender.v1beta1.Recommender.GetRecommendationCallback): void; + + /** + * Calls GetRecommendation. + * @param request GetRecommendationRequest message or plain object + * @returns Promise + */ + public getRecommendation(request: google.cloud.recommender.v1beta1.IGetRecommendationRequest): Promise; + + /** + * Calls MarkRecommendationClaimed. + * @param request MarkRecommendationClaimedRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Recommendation + */ + public markRecommendationClaimed(request: google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest, callback: google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimedCallback): void; + + /** + * Calls MarkRecommendationClaimed. + * @param request MarkRecommendationClaimedRequest message or plain object + * @returns Promise + */ + public markRecommendationClaimed(request: google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest): Promise; + + /** + * Calls MarkRecommendationSucceeded. + * @param request MarkRecommendationSucceededRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Recommendation + */ + public markRecommendationSucceeded(request: google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest, callback: google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceededCallback): void; + + /** + * Calls MarkRecommendationSucceeded. + * @param request MarkRecommendationSucceededRequest message or plain object + * @returns Promise + */ + public markRecommendationSucceeded(request: google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest): Promise; + + /** + * Calls MarkRecommendationFailed. + * @param request MarkRecommendationFailedRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Recommendation + */ + public markRecommendationFailed(request: google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest, callback: google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailedCallback): void; + + /** + * Calls MarkRecommendationFailed. + * @param request MarkRecommendationFailedRequest message or plain object + * @returns Promise + */ + public markRecommendationFailed(request: google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest): Promise; + + /** + * Calls GetRecommenderConfig. + * @param request GetRecommenderConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RecommenderConfig + */ + public getRecommenderConfig(request: google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest, callback: google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfigCallback): void; + + /** + * Calls GetRecommenderConfig. + * @param request GetRecommenderConfigRequest message or plain object + * @returns Promise + */ + public getRecommenderConfig(request: google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest): Promise; + + /** + * Calls UpdateRecommenderConfig. + * @param request UpdateRecommenderConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RecommenderConfig + */ + public updateRecommenderConfig(request: google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest, callback: google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfigCallback): void; + + /** + * Calls UpdateRecommenderConfig. + * @param request UpdateRecommenderConfigRequest message or plain object + * @returns Promise + */ + public updateRecommenderConfig(request: google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest): Promise; + + /** + * Calls GetInsightTypeConfig. + * @param request GetInsightTypeConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InsightTypeConfig + */ + public getInsightTypeConfig(request: google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest, callback: google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfigCallback): void; + + /** + * Calls GetInsightTypeConfig. + * @param request GetInsightTypeConfigRequest message or plain object + * @returns Promise + */ + public getInsightTypeConfig(request: google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest): Promise; + + /** + * Calls UpdateInsightTypeConfig. + * @param request UpdateInsightTypeConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InsightTypeConfig + */ + public updateInsightTypeConfig(request: google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest, callback: google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfigCallback): void; + + /** + * Calls UpdateInsightTypeConfig. + * @param request UpdateInsightTypeConfigRequest message or plain object + * @returns Promise + */ + public updateInsightTypeConfig(request: google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest): Promise; + } + + namespace Recommender { + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|listInsights}. + * @param error Error, if any + * @param [response] ListInsightsResponse + */ + type ListInsightsCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.ListInsightsResponse) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|getInsight}. + * @param error Error, if any + * @param [response] Insight + */ + type GetInsightCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.Insight) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|markInsightAccepted}. + * @param error Error, if any + * @param [response] Insight + */ + type MarkInsightAcceptedCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.Insight) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|listRecommendations}. + * @param error Error, if any + * @param [response] ListRecommendationsResponse + */ + type ListRecommendationsCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.ListRecommendationsResponse) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|getRecommendation}. + * @param error Error, if any + * @param [response] Recommendation + */ + type GetRecommendationCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.Recommendation) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|markRecommendationClaimed}. + * @param error Error, if any + * @param [response] Recommendation + */ + type MarkRecommendationClaimedCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.Recommendation) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|markRecommendationSucceeded}. + * @param error Error, if any + * @param [response] Recommendation + */ + type MarkRecommendationSucceededCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.Recommendation) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|markRecommendationFailed}. + * @param error Error, if any + * @param [response] Recommendation + */ + type MarkRecommendationFailedCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.Recommendation) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|getRecommenderConfig}. + * @param error Error, if any + * @param [response] RecommenderConfig + */ + type GetRecommenderConfigCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.RecommenderConfig) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|updateRecommenderConfig}. + * @param error Error, if any + * @param [response] RecommenderConfig + */ + type UpdateRecommenderConfigCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.RecommenderConfig) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|getInsightTypeConfig}. + * @param error Error, if any + * @param [response] InsightTypeConfig + */ + type GetInsightTypeConfigCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.InsightTypeConfig) => void; + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|updateInsightTypeConfig}. + * @param error Error, if any + * @param [response] InsightTypeConfig + */ + type UpdateInsightTypeConfigCallback = (error: (Error|null), response?: google.cloud.recommender.v1beta1.InsightTypeConfig) => void; + } + + /** Properties of a ListInsightsRequest. */ + interface IListInsightsRequest { + + /** ListInsightsRequest parent */ + parent?: (string|null); + + /** ListInsightsRequest pageSize */ + pageSize?: (number|null); + + /** ListInsightsRequest pageToken */ + pageToken?: (string|null); + + /** ListInsightsRequest filter */ + filter?: (string|null); + } + + /** Represents a ListInsightsRequest. */ + class ListInsightsRequest implements IListInsightsRequest { + + /** + * Constructs a new ListInsightsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IListInsightsRequest); + + /** ListInsightsRequest parent. */ + public parent: string; + + /** ListInsightsRequest pageSize. */ + public pageSize: number; + + /** ListInsightsRequest pageToken. */ + public pageToken: string; + + /** ListInsightsRequest filter. */ + public filter: string; + + /** + * Creates a new ListInsightsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListInsightsRequest instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IListInsightsRequest): google.cloud.recommender.v1beta1.ListInsightsRequest; + + /** + * Encodes the specified ListInsightsRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.ListInsightsRequest.verify|verify} messages. + * @param message ListInsightsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IListInsightsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListInsightsRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ListInsightsRequest.verify|verify} messages. + * @param message ListInsightsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IListInsightsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListInsightsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListInsightsRequest + * @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.recommender.v1beta1.ListInsightsRequest; + + /** + * Decodes a ListInsightsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListInsightsRequest + * @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.recommender.v1beta1.ListInsightsRequest; + + /** + * Verifies a ListInsightsRequest 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 ListInsightsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListInsightsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.ListInsightsRequest; + + /** + * Creates a plain object from a ListInsightsRequest message. Also converts values to other types if specified. + * @param message ListInsightsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.ListInsightsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListInsightsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListInsightsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListInsightsResponse. */ + interface IListInsightsResponse { + + /** ListInsightsResponse insights */ + insights?: (google.cloud.recommender.v1beta1.IInsight[]|null); + + /** ListInsightsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListInsightsResponse. */ + class ListInsightsResponse implements IListInsightsResponse { + + /** + * Constructs a new ListInsightsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IListInsightsResponse); + + /** ListInsightsResponse insights. */ + public insights: google.cloud.recommender.v1beta1.IInsight[]; + + /** ListInsightsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListInsightsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListInsightsResponse instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IListInsightsResponse): google.cloud.recommender.v1beta1.ListInsightsResponse; + + /** + * Encodes the specified ListInsightsResponse message. Does not implicitly {@link google.cloud.recommender.v1beta1.ListInsightsResponse.verify|verify} messages. + * @param message ListInsightsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IListInsightsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListInsightsResponse message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ListInsightsResponse.verify|verify} messages. + * @param message ListInsightsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IListInsightsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListInsightsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListInsightsResponse + * @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.recommender.v1beta1.ListInsightsResponse; + + /** + * Decodes a ListInsightsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListInsightsResponse + * @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.recommender.v1beta1.ListInsightsResponse; + + /** + * Verifies a ListInsightsResponse 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 ListInsightsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListInsightsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.ListInsightsResponse; + + /** + * Creates a plain object from a ListInsightsResponse message. Also converts values to other types if specified. + * @param message ListInsightsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.ListInsightsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListInsightsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListInsightsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetInsightRequest. */ + interface IGetInsightRequest { + + /** GetInsightRequest name */ + name?: (string|null); + } + + /** Represents a GetInsightRequest. */ + class GetInsightRequest implements IGetInsightRequest { + + /** + * Constructs a new GetInsightRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IGetInsightRequest); + + /** GetInsightRequest name. */ + public name: string; + + /** + * Creates a new GetInsightRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetInsightRequest instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IGetInsightRequest): google.cloud.recommender.v1beta1.GetInsightRequest; + + /** + * Encodes the specified GetInsightRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.GetInsightRequest.verify|verify} messages. + * @param message GetInsightRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IGetInsightRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetInsightRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.GetInsightRequest.verify|verify} messages. + * @param message GetInsightRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IGetInsightRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetInsightRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetInsightRequest + * @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.recommender.v1beta1.GetInsightRequest; + + /** + * Decodes a GetInsightRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetInsightRequest + * @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.recommender.v1beta1.GetInsightRequest; + + /** + * Verifies a GetInsightRequest 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 GetInsightRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetInsightRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.GetInsightRequest; + + /** + * Creates a plain object from a GetInsightRequest message. Also converts values to other types if specified. + * @param message GetInsightRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.GetInsightRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetInsightRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetInsightRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MarkInsightAcceptedRequest. */ + interface IMarkInsightAcceptedRequest { + + /** MarkInsightAcceptedRequest name */ + name?: (string|null); + + /** MarkInsightAcceptedRequest stateMetadata */ + stateMetadata?: ({ [k: string]: string }|null); + + /** MarkInsightAcceptedRequest etag */ + etag?: (string|null); + } + + /** Represents a MarkInsightAcceptedRequest. */ + class MarkInsightAcceptedRequest implements IMarkInsightAcceptedRequest { + + /** + * Constructs a new MarkInsightAcceptedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest); + + /** MarkInsightAcceptedRequest name. */ + public name: string; + + /** MarkInsightAcceptedRequest stateMetadata. */ + public stateMetadata: { [k: string]: string }; + + /** MarkInsightAcceptedRequest etag. */ + public etag: string; + + /** + * Creates a new MarkInsightAcceptedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MarkInsightAcceptedRequest instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest): google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest; + + /** + * Encodes the specified MarkInsightAcceptedRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest.verify|verify} messages. + * @param message MarkInsightAcceptedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MarkInsightAcceptedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest.verify|verify} messages. + * @param message MarkInsightAcceptedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MarkInsightAcceptedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MarkInsightAcceptedRequest + * @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.recommender.v1beta1.MarkInsightAcceptedRequest; + + /** + * Decodes a MarkInsightAcceptedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MarkInsightAcceptedRequest + * @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.recommender.v1beta1.MarkInsightAcceptedRequest; + + /** + * Verifies a MarkInsightAcceptedRequest 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 MarkInsightAcceptedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MarkInsightAcceptedRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest; + + /** + * Creates a plain object from a MarkInsightAcceptedRequest message. Also converts values to other types if specified. + * @param message MarkInsightAcceptedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MarkInsightAcceptedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MarkInsightAcceptedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListRecommendationsRequest. */ + interface IListRecommendationsRequest { + + /** ListRecommendationsRequest parent */ + parent?: (string|null); + + /** ListRecommendationsRequest pageSize */ + pageSize?: (number|null); + + /** ListRecommendationsRequest pageToken */ + pageToken?: (string|null); + + /** ListRecommendationsRequest filter */ + filter?: (string|null); + } + + /** Represents a ListRecommendationsRequest. */ + class ListRecommendationsRequest implements IListRecommendationsRequest { + + /** + * Constructs a new ListRecommendationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IListRecommendationsRequest); + + /** ListRecommendationsRequest parent. */ + public parent: string; + + /** ListRecommendationsRequest pageSize. */ + public pageSize: number; + + /** ListRecommendationsRequest pageToken. */ + public pageToken: string; + + /** ListRecommendationsRequest filter. */ + public filter: string; + + /** + * Creates a new ListRecommendationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRecommendationsRequest instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IListRecommendationsRequest): google.cloud.recommender.v1beta1.ListRecommendationsRequest; + + /** + * Encodes the specified ListRecommendationsRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.ListRecommendationsRequest.verify|verify} messages. + * @param message ListRecommendationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IListRecommendationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRecommendationsRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ListRecommendationsRequest.verify|verify} messages. + * @param message ListRecommendationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IListRecommendationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRecommendationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRecommendationsRequest + * @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.recommender.v1beta1.ListRecommendationsRequest; + + /** + * Decodes a ListRecommendationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRecommendationsRequest + * @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.recommender.v1beta1.ListRecommendationsRequest; + + /** + * Verifies a ListRecommendationsRequest 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 ListRecommendationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRecommendationsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.ListRecommendationsRequest; + + /** + * Creates a plain object from a ListRecommendationsRequest message. Also converts values to other types if specified. + * @param message ListRecommendationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.ListRecommendationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRecommendationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRecommendationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListRecommendationsResponse. */ + interface IListRecommendationsResponse { + + /** ListRecommendationsResponse recommendations */ + recommendations?: (google.cloud.recommender.v1beta1.IRecommendation[]|null); + + /** ListRecommendationsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListRecommendationsResponse. */ + class ListRecommendationsResponse implements IListRecommendationsResponse { + + /** + * Constructs a new ListRecommendationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IListRecommendationsResponse); + + /** ListRecommendationsResponse recommendations. */ + public recommendations: google.cloud.recommender.v1beta1.IRecommendation[]; + + /** ListRecommendationsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListRecommendationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRecommendationsResponse instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IListRecommendationsResponse): google.cloud.recommender.v1beta1.ListRecommendationsResponse; + + /** + * Encodes the specified ListRecommendationsResponse message. Does not implicitly {@link google.cloud.recommender.v1beta1.ListRecommendationsResponse.verify|verify} messages. + * @param message ListRecommendationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IListRecommendationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRecommendationsResponse message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ListRecommendationsResponse.verify|verify} messages. + * @param message ListRecommendationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IListRecommendationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRecommendationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRecommendationsResponse + * @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.recommender.v1beta1.ListRecommendationsResponse; + + /** + * Decodes a ListRecommendationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRecommendationsResponse + * @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.recommender.v1beta1.ListRecommendationsResponse; + + /** + * Verifies a ListRecommendationsResponse 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 ListRecommendationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRecommendationsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.ListRecommendationsResponse; + + /** + * Creates a plain object from a ListRecommendationsResponse message. Also converts values to other types if specified. + * @param message ListRecommendationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.ListRecommendationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRecommendationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRecommendationsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRecommendationRequest. */ + interface IGetRecommendationRequest { + + /** GetRecommendationRequest name */ + name?: (string|null); + } + + /** Represents a GetRecommendationRequest. */ + class GetRecommendationRequest implements IGetRecommendationRequest { + + /** + * Constructs a new GetRecommendationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IGetRecommendationRequest); + + /** GetRecommendationRequest name. */ + public name: string; + + /** + * Creates a new GetRecommendationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRecommendationRequest instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IGetRecommendationRequest): google.cloud.recommender.v1beta1.GetRecommendationRequest; + + /** + * Encodes the specified GetRecommendationRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.GetRecommendationRequest.verify|verify} messages. + * @param message GetRecommendationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IGetRecommendationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRecommendationRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.GetRecommendationRequest.verify|verify} messages. + * @param message GetRecommendationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IGetRecommendationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRecommendationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRecommendationRequest + * @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.recommender.v1beta1.GetRecommendationRequest; + + /** + * Decodes a GetRecommendationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRecommendationRequest + * @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.recommender.v1beta1.GetRecommendationRequest; + + /** + * Verifies a GetRecommendationRequest 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 GetRecommendationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRecommendationRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.GetRecommendationRequest; + + /** + * Creates a plain object from a GetRecommendationRequest message. Also converts values to other types if specified. + * @param message GetRecommendationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.GetRecommendationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRecommendationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRecommendationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MarkRecommendationClaimedRequest. */ + interface IMarkRecommendationClaimedRequest { + + /** MarkRecommendationClaimedRequest name */ + name?: (string|null); + + /** MarkRecommendationClaimedRequest stateMetadata */ + stateMetadata?: ({ [k: string]: string }|null); + + /** MarkRecommendationClaimedRequest etag */ + etag?: (string|null); + } + + /** Represents a MarkRecommendationClaimedRequest. */ + class MarkRecommendationClaimedRequest implements IMarkRecommendationClaimedRequest { + + /** + * Constructs a new MarkRecommendationClaimedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest); + + /** MarkRecommendationClaimedRequest name. */ + public name: string; + + /** MarkRecommendationClaimedRequest stateMetadata. */ + public stateMetadata: { [k: string]: string }; + + /** MarkRecommendationClaimedRequest etag. */ + public etag: string; + + /** + * Creates a new MarkRecommendationClaimedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MarkRecommendationClaimedRequest instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest): google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest; + + /** + * Encodes the specified MarkRecommendationClaimedRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest.verify|verify} messages. + * @param message MarkRecommendationClaimedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MarkRecommendationClaimedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest.verify|verify} messages. + * @param message MarkRecommendationClaimedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MarkRecommendationClaimedRequest + * @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.recommender.v1beta1.MarkRecommendationClaimedRequest; + + /** + * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MarkRecommendationClaimedRequest + * @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.recommender.v1beta1.MarkRecommendationClaimedRequest; + + /** + * Verifies a MarkRecommendationClaimedRequest 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 MarkRecommendationClaimedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MarkRecommendationClaimedRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest; + + /** + * Creates a plain object from a MarkRecommendationClaimedRequest message. Also converts values to other types if specified. + * @param message MarkRecommendationClaimedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MarkRecommendationClaimedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MarkRecommendationClaimedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MarkRecommendationSucceededRequest. */ + interface IMarkRecommendationSucceededRequest { + + /** MarkRecommendationSucceededRequest name */ + name?: (string|null); + + /** MarkRecommendationSucceededRequest stateMetadata */ + stateMetadata?: ({ [k: string]: string }|null); + + /** MarkRecommendationSucceededRequest etag */ + etag?: (string|null); + } + + /** Represents a MarkRecommendationSucceededRequest. */ + class MarkRecommendationSucceededRequest implements IMarkRecommendationSucceededRequest { + + /** + * Constructs a new MarkRecommendationSucceededRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest); + + /** MarkRecommendationSucceededRequest name. */ + public name: string; + + /** MarkRecommendationSucceededRequest stateMetadata. */ + public stateMetadata: { [k: string]: string }; + + /** MarkRecommendationSucceededRequest etag. */ + public etag: string; + + /** + * Creates a new MarkRecommendationSucceededRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MarkRecommendationSucceededRequest instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest): google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest; + + /** + * Encodes the specified MarkRecommendationSucceededRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest.verify|verify} messages. + * @param message MarkRecommendationSucceededRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MarkRecommendationSucceededRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest.verify|verify} messages. + * @param message MarkRecommendationSucceededRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MarkRecommendationSucceededRequest + * @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.recommender.v1beta1.MarkRecommendationSucceededRequest; + + /** + * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MarkRecommendationSucceededRequest + * @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.recommender.v1beta1.MarkRecommendationSucceededRequest; + + /** + * Verifies a MarkRecommendationSucceededRequest 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 MarkRecommendationSucceededRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MarkRecommendationSucceededRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest; + + /** + * Creates a plain object from a MarkRecommendationSucceededRequest message. Also converts values to other types if specified. + * @param message MarkRecommendationSucceededRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MarkRecommendationSucceededRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MarkRecommendationSucceededRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MarkRecommendationFailedRequest. */ + interface IMarkRecommendationFailedRequest { + + /** MarkRecommendationFailedRequest name */ + name?: (string|null); + + /** MarkRecommendationFailedRequest stateMetadata */ + stateMetadata?: ({ [k: string]: string }|null); + + /** MarkRecommendationFailedRequest etag */ + etag?: (string|null); + } + + /** Represents a MarkRecommendationFailedRequest. */ + class MarkRecommendationFailedRequest implements IMarkRecommendationFailedRequest { + + /** + * Constructs a new MarkRecommendationFailedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest); + + /** MarkRecommendationFailedRequest name. */ + public name: string; + + /** MarkRecommendationFailedRequest stateMetadata. */ + public stateMetadata: { [k: string]: string }; + + /** MarkRecommendationFailedRequest etag. */ + public etag: string; + + /** + * Creates a new MarkRecommendationFailedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MarkRecommendationFailedRequest instance + */ + public static create(properties?: google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest): google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest; + + /** + * Encodes the specified MarkRecommendationFailedRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest.verify|verify} messages. + * @param message MarkRecommendationFailedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MarkRecommendationFailedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest.verify|verify} messages. + * @param message MarkRecommendationFailedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MarkRecommendationFailedRequest + * @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.recommender.v1beta1.MarkRecommendationFailedRequest; + + /** + * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MarkRecommendationFailedRequest + * @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.recommender.v1beta1.MarkRecommendationFailedRequest; + + /** + * Verifies a MarkRecommendationFailedRequest 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 MarkRecommendationFailedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MarkRecommendationFailedRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest; + + /** + * Creates a plain object from a MarkRecommendationFailedRequest message. Also converts values to other types if specified. + * @param message MarkRecommendationFailedRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.recommender.v1.ListRecommendationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListRecommendationsResponse to JSON. + * Converts this MarkRecommendationFailedRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListRecommendationsResponse + * Gets the default type url for MarkRecommendationFailedRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetRecommendationRequest. */ - interface IGetRecommendationRequest { + /** Properties of a GetRecommenderConfigRequest. */ + interface IGetRecommenderConfigRequest { - /** GetRecommendationRequest name */ + /** GetRecommenderConfigRequest name */ name?: (string|null); } - /** Represents a GetRecommendationRequest. */ - class GetRecommendationRequest implements IGetRecommendationRequest { + /** Represents a GetRecommenderConfigRequest. */ + class GetRecommenderConfigRequest implements IGetRecommenderConfigRequest { /** - * Constructs a new GetRecommendationRequest. + * Constructs a new GetRecommenderConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.recommender.v1.IGetRecommendationRequest); + constructor(properties?: google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest); - /** GetRecommendationRequest name. */ + /** GetRecommenderConfigRequest name. */ public name: string; /** - * Creates a new GetRecommendationRequest instance using the specified properties. + * Creates a new GetRecommenderConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetRecommendationRequest instance + * @returns GetRecommenderConfigRequest instance */ - public static create(properties?: google.cloud.recommender.v1.IGetRecommendationRequest): google.cloud.recommender.v1.GetRecommendationRequest; + public static create(properties?: google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest): google.cloud.recommender.v1beta1.GetRecommenderConfigRequest; /** - * Encodes the specified GetRecommendationRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetRecommendationRequest.verify|verify} messages. - * @param message GetRecommendationRequest message or plain object to encode + * Encodes the specified GetRecommenderConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.GetRecommenderConfigRequest.verify|verify} messages. + * @param message GetRecommenderConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.recommender.v1.IGetRecommendationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetRecommendationRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetRecommendationRequest.verify|verify} messages. - * @param message GetRecommendationRequest message or plain object to encode + * Encodes the specified GetRecommenderConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.GetRecommenderConfigRequest.verify|verify} messages. + * @param message GetRecommenderConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.recommender.v1.IGetRecommendationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRecommendationRequest message from the specified reader or buffer. + * Decodes a GetRecommenderConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetRecommendationRequest + * @returns GetRecommenderConfigRequest * @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.recommender.v1.GetRecommendationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.recommender.v1beta1.GetRecommenderConfigRequest; /** - * Decodes a GetRecommendationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetRecommenderConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRecommendationRequest + * @returns GetRecommenderConfigRequest * @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.recommender.v1.GetRecommendationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.recommender.v1beta1.GetRecommenderConfigRequest; /** - * Verifies a GetRecommendationRequest message. + * Verifies a GetRecommenderConfigRequest 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 GetRecommendationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecommenderConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRecommendationRequest + * @returns GetRecommenderConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.GetRecommendationRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.GetRecommenderConfigRequest; /** - * Creates a plain object from a GetRecommendationRequest message. Also converts values to other types if specified. - * @param message GetRecommendationRequest + * Creates a plain object from a GetRecommenderConfigRequest message. Also converts values to other types if specified. + * @param message GetRecommenderConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.recommender.v1.GetRecommendationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.recommender.v1beta1.GetRecommenderConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRecommendationRequest to JSON. + * Converts this GetRecommenderConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRecommendationRequest + * Gets the default type url for GetRecommenderConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MarkRecommendationClaimedRequest. */ - interface IMarkRecommendationClaimedRequest { + /** Properties of an UpdateRecommenderConfigRequest. */ + interface IUpdateRecommenderConfigRequest { - /** MarkRecommendationClaimedRequest name */ - name?: (string|null); + /** UpdateRecommenderConfigRequest recommenderConfig */ + recommenderConfig?: (google.cloud.recommender.v1beta1.IRecommenderConfig|null); - /** MarkRecommendationClaimedRequest stateMetadata */ - stateMetadata?: ({ [k: string]: string }|null); + /** UpdateRecommenderConfigRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** MarkRecommendationClaimedRequest etag */ - etag?: (string|null); + /** UpdateRecommenderConfigRequest validateOnly */ + validateOnly?: (boolean|null); } - /** Represents a MarkRecommendationClaimedRequest. */ - class MarkRecommendationClaimedRequest implements IMarkRecommendationClaimedRequest { + /** Represents an UpdateRecommenderConfigRequest. */ + class UpdateRecommenderConfigRequest implements IUpdateRecommenderConfigRequest { /** - * Constructs a new MarkRecommendationClaimedRequest. + * Constructs a new UpdateRecommenderConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.recommender.v1.IMarkRecommendationClaimedRequest); + constructor(properties?: google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest); - /** MarkRecommendationClaimedRequest name. */ - public name: string; + /** UpdateRecommenderConfigRequest recommenderConfig. */ + public recommenderConfig?: (google.cloud.recommender.v1beta1.IRecommenderConfig|null); - /** MarkRecommendationClaimedRequest stateMetadata. */ - public stateMetadata: { [k: string]: string }; + /** UpdateRecommenderConfigRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** MarkRecommendationClaimedRequest etag. */ - public etag: string; + /** UpdateRecommenderConfigRequest validateOnly. */ + public validateOnly: boolean; /** - * Creates a new MarkRecommendationClaimedRequest instance using the specified properties. + * Creates a new UpdateRecommenderConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MarkRecommendationClaimedRequest instance + * @returns UpdateRecommenderConfigRequest instance */ - public static create(properties?: google.cloud.recommender.v1.IMarkRecommendationClaimedRequest): google.cloud.recommender.v1.MarkRecommendationClaimedRequest; + public static create(properties?: google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest): google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest; /** - * Encodes the specified MarkRecommendationClaimedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationClaimedRequest.verify|verify} messages. - * @param message MarkRecommendationClaimedRequest message or plain object to encode + * Encodes the specified UpdateRecommenderConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest.verify|verify} messages. + * @param message UpdateRecommenderConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.recommender.v1.IMarkRecommendationClaimedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MarkRecommendationClaimedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationClaimedRequest.verify|verify} messages. - * @param message MarkRecommendationClaimedRequest message or plain object to encode + * Encodes the specified UpdateRecommenderConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest.verify|verify} messages. + * @param message UpdateRecommenderConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.recommender.v1.IMarkRecommendationClaimedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer. + * Decodes an UpdateRecommenderConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MarkRecommendationClaimedRequest + * @returns UpdateRecommenderConfigRequest * @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.recommender.v1.MarkRecommendationClaimedRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest; /** - * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateRecommenderConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MarkRecommendationClaimedRequest + * @returns UpdateRecommenderConfigRequest * @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.recommender.v1.MarkRecommendationClaimedRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest; /** - * Verifies a MarkRecommendationClaimedRequest message. + * Verifies an UpdateRecommenderConfigRequest 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 MarkRecommendationClaimedRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateRecommenderConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MarkRecommendationClaimedRequest + * @returns UpdateRecommenderConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.MarkRecommendationClaimedRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest; /** - * Creates a plain object from a MarkRecommendationClaimedRequest message. Also converts values to other types if specified. - * @param message MarkRecommendationClaimedRequest + * Creates a plain object from an UpdateRecommenderConfigRequest message. Also converts values to other types if specified. + * @param message UpdateRecommenderConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.recommender.v1.MarkRecommendationClaimedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MarkRecommendationClaimedRequest to JSON. + * Converts this UpdateRecommenderConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MarkRecommendationClaimedRequest + * Gets the default type url for UpdateRecommenderConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MarkRecommendationSucceededRequest. */ - interface IMarkRecommendationSucceededRequest { + /** Properties of a GetInsightTypeConfigRequest. */ + interface IGetInsightTypeConfigRequest { - /** MarkRecommendationSucceededRequest name */ + /** GetInsightTypeConfigRequest name */ name?: (string|null); - - /** MarkRecommendationSucceededRequest stateMetadata */ - stateMetadata?: ({ [k: string]: string }|null); - - /** MarkRecommendationSucceededRequest etag */ - etag?: (string|null); } - /** Represents a MarkRecommendationSucceededRequest. */ - class MarkRecommendationSucceededRequest implements IMarkRecommendationSucceededRequest { + /** Represents a GetInsightTypeConfigRequest. */ + class GetInsightTypeConfigRequest implements IGetInsightTypeConfigRequest { /** - * Constructs a new MarkRecommendationSucceededRequest. + * Constructs a new GetInsightTypeConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.recommender.v1.IMarkRecommendationSucceededRequest); + constructor(properties?: google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest); - /** MarkRecommendationSucceededRequest name. */ + /** GetInsightTypeConfigRequest name. */ public name: string; - /** MarkRecommendationSucceededRequest stateMetadata. */ - public stateMetadata: { [k: string]: string }; - - /** MarkRecommendationSucceededRequest etag. */ - public etag: string; - /** - * Creates a new MarkRecommendationSucceededRequest instance using the specified properties. + * Creates a new GetInsightTypeConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MarkRecommendationSucceededRequest instance + * @returns GetInsightTypeConfigRequest instance */ - public static create(properties?: google.cloud.recommender.v1.IMarkRecommendationSucceededRequest): google.cloud.recommender.v1.MarkRecommendationSucceededRequest; + public static create(properties?: google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest): google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest; /** - * Encodes the specified MarkRecommendationSucceededRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationSucceededRequest.verify|verify} messages. - * @param message MarkRecommendationSucceededRequest message or plain object to encode + * Encodes the specified GetInsightTypeConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest.verify|verify} messages. + * @param message GetInsightTypeConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MarkRecommendationSucceededRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationSucceededRequest.verify|verify} messages. - * @param message MarkRecommendationSucceededRequest message or plain object to encode + * Encodes the specified GetInsightTypeConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest.verify|verify} messages. + * @param message GetInsightTypeConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer. + * Decodes a GetInsightTypeConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MarkRecommendationSucceededRequest + * @returns GetInsightTypeConfigRequest * @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.recommender.v1.MarkRecommendationSucceededRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest; /** - * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer, length delimited. + * Decodes a GetInsightTypeConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MarkRecommendationSucceededRequest + * @returns GetInsightTypeConfigRequest * @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.recommender.v1.MarkRecommendationSucceededRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest; /** - * Verifies a MarkRecommendationSucceededRequest message. + * Verifies a GetInsightTypeConfigRequest 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 MarkRecommendationSucceededRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetInsightTypeConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MarkRecommendationSucceededRequest + * @returns GetInsightTypeConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.MarkRecommendationSucceededRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest; /** - * Creates a plain object from a MarkRecommendationSucceededRequest message. Also converts values to other types if specified. - * @param message MarkRecommendationSucceededRequest + * Creates a plain object from a GetInsightTypeConfigRequest message. Also converts values to other types if specified. + * @param message GetInsightTypeConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.recommender.v1.MarkRecommendationSucceededRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MarkRecommendationSucceededRequest to JSON. + * Converts this GetInsightTypeConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MarkRecommendationSucceededRequest + * Gets the default type url for GetInsightTypeConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MarkRecommendationFailedRequest. */ - interface IMarkRecommendationFailedRequest { + /** Properties of an UpdateInsightTypeConfigRequest. */ + interface IUpdateInsightTypeConfigRequest { - /** MarkRecommendationFailedRequest name */ - name?: (string|null); + /** UpdateInsightTypeConfigRequest insightTypeConfig */ + insightTypeConfig?: (google.cloud.recommender.v1beta1.IInsightTypeConfig|null); - /** MarkRecommendationFailedRequest stateMetadata */ - stateMetadata?: ({ [k: string]: string }|null); + /** UpdateInsightTypeConfigRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** MarkRecommendationFailedRequest etag */ - etag?: (string|null); + /** UpdateInsightTypeConfigRequest validateOnly */ + validateOnly?: (boolean|null); } - /** Represents a MarkRecommendationFailedRequest. */ - class MarkRecommendationFailedRequest implements IMarkRecommendationFailedRequest { + /** Represents an UpdateInsightTypeConfigRequest. */ + class UpdateInsightTypeConfigRequest implements IUpdateInsightTypeConfigRequest { /** - * Constructs a new MarkRecommendationFailedRequest. + * Constructs a new UpdateInsightTypeConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.recommender.v1.IMarkRecommendationFailedRequest); + constructor(properties?: google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest); - /** MarkRecommendationFailedRequest name. */ - public name: string; + /** UpdateInsightTypeConfigRequest insightTypeConfig. */ + public insightTypeConfig?: (google.cloud.recommender.v1beta1.IInsightTypeConfig|null); - /** MarkRecommendationFailedRequest stateMetadata. */ - public stateMetadata: { [k: string]: string }; + /** UpdateInsightTypeConfigRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** MarkRecommendationFailedRequest etag. */ - public etag: string; + /** UpdateInsightTypeConfigRequest validateOnly. */ + public validateOnly: boolean; /** - * Creates a new MarkRecommendationFailedRequest instance using the specified properties. + * Creates a new UpdateInsightTypeConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MarkRecommendationFailedRequest instance + * @returns UpdateInsightTypeConfigRequest instance */ - public static create(properties?: google.cloud.recommender.v1.IMarkRecommendationFailedRequest): google.cloud.recommender.v1.MarkRecommendationFailedRequest; + public static create(properties?: google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest): google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest; /** - * Encodes the specified MarkRecommendationFailedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationFailedRequest.verify|verify} messages. - * @param message MarkRecommendationFailedRequest message or plain object to encode + * Encodes the specified UpdateInsightTypeConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest.verify|verify} messages. + * @param message UpdateInsightTypeConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.recommender.v1.IMarkRecommendationFailedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MarkRecommendationFailedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationFailedRequest.verify|verify} messages. - * @param message MarkRecommendationFailedRequest message or plain object to encode + * Encodes the specified UpdateInsightTypeConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest.verify|verify} messages. + * @param message UpdateInsightTypeConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.recommender.v1.IMarkRecommendationFailedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer. + * Decodes an UpdateInsightTypeConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MarkRecommendationFailedRequest + * @returns UpdateInsightTypeConfigRequest * @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.recommender.v1.MarkRecommendationFailedRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest; /** - * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateInsightTypeConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MarkRecommendationFailedRequest + * @returns UpdateInsightTypeConfigRequest * @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.recommender.v1.MarkRecommendationFailedRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest; /** - * Verifies a MarkRecommendationFailedRequest message. + * Verifies an UpdateInsightTypeConfigRequest 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 MarkRecommendationFailedRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateInsightTypeConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MarkRecommendationFailedRequest + * @returns UpdateInsightTypeConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1.MarkRecommendationFailedRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest; /** - * Creates a plain object from a MarkRecommendationFailedRequest message. Also converts values to other types if specified. - * @param message MarkRecommendationFailedRequest + * Creates a plain object from an UpdateInsightTypeConfigRequest message. Also converts values to other types if specified. + * @param message UpdateInsightTypeConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.recommender.v1.MarkRecommendationFailedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MarkRecommendationFailedRequest to JSON. + * Converts this UpdateInsightTypeConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MarkRecommendationFailedRequest + * Gets the default type url for UpdateInsightTypeConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -2958,6 +7948,18 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 + } + /** Properties of a Http. */ interface IHttp { @@ -3317,18 +8319,6 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - /** FieldBehavior enum. */ - enum FieldBehavior { - FIELD_BEHAVIOR_UNSPECIFIED = 0, - OPTIONAL = 1, - REQUIRED = 2, - OUTPUT_ONLY = 3, - INPUT_ONLY = 4, - IMMUTABLE = 5, - UNORDERED_LIST = 6, - NON_EMPTY_DEFAULT = 7 - } } /** Namespace protobuf. */ @@ -7211,6 +12201,103 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a FieldMask. */ + interface IFieldMask { + + /** FieldMask paths */ + paths?: (string[]|null); + } + + /** Represents a FieldMask. */ + class FieldMask implements IFieldMask { + + /** + * Constructs a new FieldMask. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldMask); + + /** FieldMask paths. */ + public paths: string[]; + + /** + * Creates a new FieldMask instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldMask instance + */ + public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldMask + * @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.protobuf.FieldMask; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldMask + * @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.protobuf.FieldMask; + + /** + * Verifies a FieldMask 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 FieldMask message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldMask + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @param message FieldMask + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldMask to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldMask + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Namespace type. */ diff --git a/packages/google-cloud-recommender/protos/protos.js b/packages/google-cloud-recommender/protos/protos.js index 2e370c47927d..de48b3114a0a 100644 --- a/packages/google-cloud-recommender/protos/protos.js +++ b/packages/google-cloud-recommender/protos/protos.js @@ -81,6 +81,7 @@ * @property {google.protobuf.IDuration|null} [observationPeriod] Insight observationPeriod * @property {google.cloud.recommender.v1.IInsightStateInfo|null} [stateInfo] Insight stateInfo * @property {google.cloud.recommender.v1.Insight.Category|null} [category] Insight category + * @property {google.cloud.recommender.v1.Insight.Severity|null} [severity] Insight severity * @property {string|null} [etag] Insight etag * @property {Array.|null} [associatedRecommendations] Insight associatedRecommendations */ @@ -174,6 +175,14 @@ */ Insight.prototype.category = 0; + /** + * Insight severity. + * @member {google.cloud.recommender.v1.Insight.Severity} severity + * @memberof google.cloud.recommender.v1.Insight + * @instance + */ + Insight.prototype.severity = 0; + /** * Insight etag. * @member {string} etag @@ -238,6 +247,8 @@ writer.uint32(/* id 10, wireType 2 =*/82).string(message.insightSubtype); if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.etag); + if (message.severity != null && Object.hasOwnProperty.call(message, "severity")) + writer.uint32(/* id 15, wireType 0 =*/120).int32(message.severity); return writer; }; @@ -310,6 +321,10 @@ message.category = reader.int32(); break; } + case 15: { + message.severity = reader.int32(); + break; + } case 11: { message.etag = reader.string(); break; @@ -402,6 +417,17 @@ case 4: break; } + if (message.severity != null && message.hasOwnProperty("severity")) + switch (message.severity) { + default: + return "severity: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } if (message.etag != null && message.hasOwnProperty("etag")) if (!$util.isString(message.etag)) return "etag: string expected"; @@ -490,6 +516,34 @@ message.category = 4; break; } + switch (object.severity) { + default: + if (typeof object.severity === "number") { + message.severity = object.severity; + break; + } + break; + case "SEVERITY_UNSPECIFIED": + case 0: + message.severity = 0; + break; + case "LOW": + case 1: + message.severity = 1; + break; + case "MEDIUM": + case 2: + message.severity = 2; + break; + case "HIGH": + case 3: + message.severity = 3; + break; + case "CRITICAL": + case 4: + message.severity = 4; + break; + } if (object.etag != null) message.etag = String(object.etag); if (object.associatedRecommendations) { @@ -532,6 +586,7 @@ object.category = options.enums === String ? "CATEGORY_UNSPECIFIED" : 0; object.insightSubtype = ""; object.etag = ""; + object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -561,6 +616,8 @@ object.insightSubtype = message.insightSubtype; if (message.etag != null && message.hasOwnProperty("etag")) object.etag = message.etag; + if (message.severity != null && message.hasOwnProperty("severity")) + object.severity = options.enums === String ? $root.google.cloud.recommender.v1.Insight.Severity[message.severity] === undefined ? message.severity : $root.google.cloud.recommender.v1.Insight.Severity[message.severity] : message.severity; return object; }; @@ -590,6 +647,46 @@ return typeUrlPrefix + "/google.cloud.recommender.v1.Insight"; }; + /** + * Category enum. + * @name google.cloud.recommender.v1.Insight.Category + * @enum {number} + * @property {number} CATEGORY_UNSPECIFIED=0 CATEGORY_UNSPECIFIED value + * @property {number} COST=1 COST value + * @property {number} SECURITY=2 SECURITY value + * @property {number} PERFORMANCE=3 PERFORMANCE value + * @property {number} MANAGEABILITY=4 MANAGEABILITY value + */ + Insight.Category = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "COST"] = 1; + values[valuesById[2] = "SECURITY"] = 2; + values[valuesById[3] = "PERFORMANCE"] = 3; + values[valuesById[4] = "MANAGEABILITY"] = 4; + return values; + })(); + + /** + * Severity enum. + * @name google.cloud.recommender.v1.Insight.Severity + * @enum {number} + * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value + * @property {number} LOW=1 LOW value + * @property {number} MEDIUM=2 MEDIUM value + * @property {number} HIGH=3 HIGH value + * @property {number} CRITICAL=4 CRITICAL value + */ + Insight.Severity = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "LOW"] = 1; + values[valuesById[2] = "MEDIUM"] = 2; + values[valuesById[3] = "HIGH"] = 3; + values[valuesById[4] = "CRITICAL"] = 4; + return values; + })(); + Insight.RecommendationReference = (function() { /** @@ -793,26 +890,6 @@ return RecommendationReference; })(); - /** - * Category enum. - * @name google.cloud.recommender.v1.Insight.Category - * @enum {number} - * @property {number} CATEGORY_UNSPECIFIED=0 CATEGORY_UNSPECIFIED value - * @property {number} COST=1 COST value - * @property {number} SECURITY=2 SECURITY value - * @property {number} PERFORMANCE=3 PERFORMANCE value - * @property {number} MANAGEABILITY=4 MANAGEABILITY value - */ - Insight.Category = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "COST"] = 1; - values[valuesById[2] = "SECURITY"] = 2; - values[valuesById[3] = "PERFORMANCE"] = 3; - values[valuesById[4] = "MANAGEABILITY"] = 4; - return values; - })(); - return Insight; })(); @@ -1125,35 +1202,31 @@ return InsightStateInfo; })(); - v1.Recommendation = (function() { + v1.InsightTypeConfig = (function() { /** - * Properties of a Recommendation. + * Properties of an InsightTypeConfig. * @memberof google.cloud.recommender.v1 - * @interface IRecommendation - * @property {string|null} [name] Recommendation name - * @property {string|null} [description] Recommendation description - * @property {string|null} [recommenderSubtype] Recommendation recommenderSubtype - * @property {google.protobuf.ITimestamp|null} [lastRefreshTime] Recommendation lastRefreshTime - * @property {google.cloud.recommender.v1.IImpact|null} [primaryImpact] Recommendation primaryImpact - * @property {Array.|null} [additionalImpact] Recommendation additionalImpact - * @property {google.cloud.recommender.v1.IRecommendationContent|null} [content] Recommendation content - * @property {google.cloud.recommender.v1.IRecommendationStateInfo|null} [stateInfo] Recommendation stateInfo - * @property {string|null} [etag] Recommendation etag - * @property {Array.|null} [associatedInsights] Recommendation associatedInsights + * @interface IInsightTypeConfig + * @property {string|null} [name] InsightTypeConfig name + * @property {google.cloud.recommender.v1.IInsightTypeGenerationConfig|null} [insightTypeGenerationConfig] InsightTypeConfig insightTypeGenerationConfig + * @property {string|null} [etag] InsightTypeConfig etag + * @property {google.protobuf.ITimestamp|null} [updateTime] InsightTypeConfig updateTime + * @property {string|null} [revisionId] InsightTypeConfig revisionId + * @property {Object.|null} [annotations] InsightTypeConfig annotations + * @property {string|null} [displayName] InsightTypeConfig displayName */ /** - * Constructs a new Recommendation. + * Constructs a new InsightTypeConfig. * @memberof google.cloud.recommender.v1 - * @classdesc Represents a Recommendation. - * @implements IRecommendation + * @classdesc Represents an InsightTypeConfig. + * @implements IInsightTypeConfig * @constructor - * @param {google.cloud.recommender.v1.IRecommendation=} [properties] Properties to set + * @param {google.cloud.recommender.v1.IInsightTypeConfig=} [properties] Properties to set */ - function Recommendation(properties) { - this.additionalImpact = []; - this.associatedInsights = []; + function InsightTypeConfig(properties) { + this.annotations = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1161,162 +1234,131 @@ } /** - * Recommendation name. + * InsightTypeConfig name. * @member {string} name - * @memberof google.cloud.recommender.v1.Recommendation - * @instance - */ - Recommendation.prototype.name = ""; - - /** - * Recommendation description. - * @member {string} description - * @memberof google.cloud.recommender.v1.Recommendation - * @instance - */ - Recommendation.prototype.description = ""; - - /** - * Recommendation recommenderSubtype. - * @member {string} recommenderSubtype - * @memberof google.cloud.recommender.v1.Recommendation - * @instance - */ - Recommendation.prototype.recommenderSubtype = ""; - - /** - * Recommendation lastRefreshTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastRefreshTime - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @instance */ - Recommendation.prototype.lastRefreshTime = null; + InsightTypeConfig.prototype.name = ""; /** - * Recommendation primaryImpact. - * @member {google.cloud.recommender.v1.IImpact|null|undefined} primaryImpact - * @memberof google.cloud.recommender.v1.Recommendation + * InsightTypeConfig insightTypeGenerationConfig. + * @member {google.cloud.recommender.v1.IInsightTypeGenerationConfig|null|undefined} insightTypeGenerationConfig + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @instance */ - Recommendation.prototype.primaryImpact = null; + InsightTypeConfig.prototype.insightTypeGenerationConfig = null; /** - * Recommendation additionalImpact. - * @member {Array.} additionalImpact - * @memberof google.cloud.recommender.v1.Recommendation + * InsightTypeConfig etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @instance */ - Recommendation.prototype.additionalImpact = $util.emptyArray; + InsightTypeConfig.prototype.etag = ""; /** - * Recommendation content. - * @member {google.cloud.recommender.v1.IRecommendationContent|null|undefined} content - * @memberof google.cloud.recommender.v1.Recommendation + * InsightTypeConfig updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @instance */ - Recommendation.prototype.content = null; + InsightTypeConfig.prototype.updateTime = null; /** - * Recommendation stateInfo. - * @member {google.cloud.recommender.v1.IRecommendationStateInfo|null|undefined} stateInfo - * @memberof google.cloud.recommender.v1.Recommendation + * InsightTypeConfig revisionId. + * @member {string} revisionId + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @instance */ - Recommendation.prototype.stateInfo = null; + InsightTypeConfig.prototype.revisionId = ""; /** - * Recommendation etag. - * @member {string} etag - * @memberof google.cloud.recommender.v1.Recommendation + * InsightTypeConfig annotations. + * @member {Object.} annotations + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @instance */ - Recommendation.prototype.etag = ""; + InsightTypeConfig.prototype.annotations = $util.emptyObject; /** - * Recommendation associatedInsights. - * @member {Array.} associatedInsights - * @memberof google.cloud.recommender.v1.Recommendation + * InsightTypeConfig displayName. + * @member {string} displayName + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @instance */ - Recommendation.prototype.associatedInsights = $util.emptyArray; + InsightTypeConfig.prototype.displayName = ""; /** - * Creates a new Recommendation instance using the specified properties. + * Creates a new InsightTypeConfig instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @static - * @param {google.cloud.recommender.v1.IRecommendation=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.Recommendation} Recommendation instance + * @param {google.cloud.recommender.v1.IInsightTypeConfig=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.InsightTypeConfig} InsightTypeConfig instance */ - Recommendation.create = function create(properties) { - return new Recommendation(properties); + InsightTypeConfig.create = function create(properties) { + return new InsightTypeConfig(properties); }; /** - * Encodes the specified Recommendation message. Does not implicitly {@link google.cloud.recommender.v1.Recommendation.verify|verify} messages. + * Encodes the specified InsightTypeConfig message. Does not implicitly {@link google.cloud.recommender.v1.InsightTypeConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @static - * @param {google.cloud.recommender.v1.IRecommendation} message Recommendation message or plain object to encode + * @param {google.cloud.recommender.v1.IInsightTypeConfig} message InsightTypeConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Recommendation.encode = function encode(message, writer) { + InsightTypeConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.lastRefreshTime != null && Object.hasOwnProperty.call(message, "lastRefreshTime")) - $root.google.protobuf.Timestamp.encode(message.lastRefreshTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.primaryImpact != null && Object.hasOwnProperty.call(message, "primaryImpact")) - $root.google.cloud.recommender.v1.Impact.encode(message.primaryImpact, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.additionalImpact != null && message.additionalImpact.length) - for (var i = 0; i < message.additionalImpact.length; ++i) - $root.google.cloud.recommender.v1.Impact.encode(message.additionalImpact[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - $root.google.cloud.recommender.v1.RecommendationContent.encode(message.content, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.stateInfo != null && Object.hasOwnProperty.call(message, "stateInfo")) - $root.google.cloud.recommender.v1.RecommendationStateInfo.encode(message.stateInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.insightTypeGenerationConfig != null && Object.hasOwnProperty.call(message, "insightTypeGenerationConfig")) + $root.google.cloud.recommender.v1.InsightTypeGenerationConfig.encode(message.insightTypeGenerationConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.etag); - if (message.recommenderSubtype != null && Object.hasOwnProperty.call(message, "recommenderSubtype")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.recommenderSubtype); - if (message.associatedInsights != null && message.associatedInsights.length) - for (var i = 0; i < message.associatedInsights.length; ++i) - $root.google.cloud.recommender.v1.Recommendation.InsightReference.encode(message.associatedInsights[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.revisionId != null && Object.hasOwnProperty.call(message, "revisionId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.revisionId); + if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations")) + for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); return writer; }; /** - * Encodes the specified Recommendation message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.Recommendation.verify|verify} messages. + * Encodes the specified InsightTypeConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.InsightTypeConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @static - * @param {google.cloud.recommender.v1.IRecommendation} message Recommendation message or plain object to encode + * @param {google.cloud.recommender.v1.IInsightTypeConfig} message InsightTypeConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Recommendation.encodeDelimited = function encodeDelimited(message, writer) { + InsightTypeConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Recommendation message from the specified reader or buffer. + * Decodes an InsightTypeConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.Recommendation} Recommendation + * @returns {google.cloud.recommender.v1.InsightTypeConfig} InsightTypeConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Recommendation.decode = function decode(reader, length) { + InsightTypeConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.Recommendation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.InsightTypeConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -1325,43 +1367,46 @@ break; } case 2: { - message.description = reader.string(); + message.insightTypeGenerationConfig = $root.google.cloud.recommender.v1.InsightTypeGenerationConfig.decode(reader, reader.uint32()); break; } - case 12: { - message.recommenderSubtype = reader.string(); + case 3: { + message.etag = reader.string(); break; } case 4: { - message.lastRefreshTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 5: { - message.primaryImpact = $root.google.cloud.recommender.v1.Impact.decode(reader, reader.uint32()); + message.revisionId = reader.string(); break; } case 6: { - if (!(message.additionalImpact && message.additionalImpact.length)) - message.additionalImpact = []; - message.additionalImpact.push($root.google.cloud.recommender.v1.Impact.decode(reader, reader.uint32())); + if (message.annotations === $util.emptyObject) + message.annotations = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.annotations[key] = value; break; } case 7: { - message.content = $root.google.cloud.recommender.v1.RecommendationContent.decode(reader, reader.uint32()); - break; - } - case 10: { - message.stateInfo = $root.google.cloud.recommender.v1.RecommendationStateInfo.decode(reader, reader.uint32()); - break; - } - case 11: { - message.etag = reader.string(); - break; - } - case 14: { - if (!(message.associatedInsights && message.associatedInsights.length)) - message.associatedInsights = []; - message.associatedInsights.push($root.google.cloud.recommender.v1.Recommendation.InsightReference.decode(reader, reader.uint32())); + message.displayName = reader.string(); break; } default: @@ -1373,534 +1418,272 @@ }; /** - * Decodes a Recommendation message from the specified reader or buffer, length delimited. + * Decodes an InsightTypeConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.Recommendation} Recommendation + * @returns {google.cloud.recommender.v1.InsightTypeConfig} InsightTypeConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Recommendation.decodeDelimited = function decodeDelimited(reader) { + InsightTypeConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Recommendation message. + * Verifies an InsightTypeConfig message. * @function verify - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Recommendation.verify = function verify(message) { + InsightTypeConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.recommenderSubtype != null && message.hasOwnProperty("recommenderSubtype")) - if (!$util.isString(message.recommenderSubtype)) - return "recommenderSubtype: string expected"; - if (message.lastRefreshTime != null && message.hasOwnProperty("lastRefreshTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastRefreshTime); + if (message.insightTypeGenerationConfig != null && message.hasOwnProperty("insightTypeGenerationConfig")) { + var error = $root.google.cloud.recommender.v1.InsightTypeGenerationConfig.verify(message.insightTypeGenerationConfig); if (error) - return "lastRefreshTime." + error; + return "insightTypeGenerationConfig." + error; } - if (message.primaryImpact != null && message.hasOwnProperty("primaryImpact")) { - var error = $root.google.cloud.recommender.v1.Impact.verify(message.primaryImpact); + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); if (error) - return "primaryImpact." + error; - } - if (message.additionalImpact != null && message.hasOwnProperty("additionalImpact")) { - if (!Array.isArray(message.additionalImpact)) - return "additionalImpact: array expected"; - for (var i = 0; i < message.additionalImpact.length; ++i) { - var error = $root.google.cloud.recommender.v1.Impact.verify(message.additionalImpact[i]); - if (error) - return "additionalImpact." + error; - } - } - if (message.content != null && message.hasOwnProperty("content")) { - var error = $root.google.cloud.recommender.v1.RecommendationContent.verify(message.content); - if (error) - return "content." + error; - } - if (message.stateInfo != null && message.hasOwnProperty("stateInfo")) { - var error = $root.google.cloud.recommender.v1.RecommendationStateInfo.verify(message.stateInfo); - if (error) - return "stateInfo." + error; - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.associatedInsights != null && message.hasOwnProperty("associatedInsights")) { - if (!Array.isArray(message.associatedInsights)) - return "associatedInsights: array expected"; - for (var i = 0; i < message.associatedInsights.length; ++i) { - var error = $root.google.cloud.recommender.v1.Recommendation.InsightReference.verify(message.associatedInsights[i]); - if (error) - return "associatedInsights." + error; - } + return "updateTime." + error; + } + if (message.revisionId != null && message.hasOwnProperty("revisionId")) + if (!$util.isString(message.revisionId)) + return "revisionId: string expected"; + if (message.annotations != null && message.hasOwnProperty("annotations")) { + if (!$util.isObject(message.annotations)) + return "annotations: object expected"; + var key = Object.keys(message.annotations); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.annotations[key[i]])) + return "annotations: string{k:string} expected"; } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; return null; }; /** - * Creates a Recommendation message from a plain object. Also converts values to their respective internal types. + * Creates an InsightTypeConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.Recommendation} Recommendation + * @returns {google.cloud.recommender.v1.InsightTypeConfig} InsightTypeConfig */ - Recommendation.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.Recommendation) + InsightTypeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.InsightTypeConfig) return object; - var message = new $root.google.cloud.recommender.v1.Recommendation(); + var message = new $root.google.cloud.recommender.v1.InsightTypeConfig(); if (object.name != null) message.name = String(object.name); - if (object.description != null) - message.description = String(object.description); - if (object.recommenderSubtype != null) - message.recommenderSubtype = String(object.recommenderSubtype); - if (object.lastRefreshTime != null) { - if (typeof object.lastRefreshTime !== "object") - throw TypeError(".google.cloud.recommender.v1.Recommendation.lastRefreshTime: object expected"); - message.lastRefreshTime = $root.google.protobuf.Timestamp.fromObject(object.lastRefreshTime); - } - if (object.primaryImpact != null) { - if (typeof object.primaryImpact !== "object") - throw TypeError(".google.cloud.recommender.v1.Recommendation.primaryImpact: object expected"); - message.primaryImpact = $root.google.cloud.recommender.v1.Impact.fromObject(object.primaryImpact); - } - if (object.additionalImpact) { - if (!Array.isArray(object.additionalImpact)) - throw TypeError(".google.cloud.recommender.v1.Recommendation.additionalImpact: array expected"); - message.additionalImpact = []; - for (var i = 0; i < object.additionalImpact.length; ++i) { - if (typeof object.additionalImpact[i] !== "object") - throw TypeError(".google.cloud.recommender.v1.Recommendation.additionalImpact: object expected"); - message.additionalImpact[i] = $root.google.cloud.recommender.v1.Impact.fromObject(object.additionalImpact[i]); - } - } - if (object.content != null) { - if (typeof object.content !== "object") - throw TypeError(".google.cloud.recommender.v1.Recommendation.content: object expected"); - message.content = $root.google.cloud.recommender.v1.RecommendationContent.fromObject(object.content); - } - if (object.stateInfo != null) { - if (typeof object.stateInfo !== "object") - throw TypeError(".google.cloud.recommender.v1.Recommendation.stateInfo: object expected"); - message.stateInfo = $root.google.cloud.recommender.v1.RecommendationStateInfo.fromObject(object.stateInfo); + if (object.insightTypeGenerationConfig != null) { + if (typeof object.insightTypeGenerationConfig !== "object") + throw TypeError(".google.cloud.recommender.v1.InsightTypeConfig.insightTypeGenerationConfig: object expected"); + message.insightTypeGenerationConfig = $root.google.cloud.recommender.v1.InsightTypeGenerationConfig.fromObject(object.insightTypeGenerationConfig); } if (object.etag != null) message.etag = String(object.etag); - if (object.associatedInsights) { - if (!Array.isArray(object.associatedInsights)) - throw TypeError(".google.cloud.recommender.v1.Recommendation.associatedInsights: array expected"); - message.associatedInsights = []; - for (var i = 0; i < object.associatedInsights.length; ++i) { - if (typeof object.associatedInsights[i] !== "object") - throw TypeError(".google.cloud.recommender.v1.Recommendation.associatedInsights: object expected"); - message.associatedInsights[i] = $root.google.cloud.recommender.v1.Recommendation.InsightReference.fromObject(object.associatedInsights[i]); - } - } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.recommender.v1.InsightTypeConfig.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.revisionId != null) + message.revisionId = String(object.revisionId); + if (object.annotations) { + if (typeof object.annotations !== "object") + throw TypeError(".google.cloud.recommender.v1.InsightTypeConfig.annotations: object expected"); + message.annotations = {}; + for (var keys = Object.keys(object.annotations), i = 0; i < keys.length; ++i) + message.annotations[keys[i]] = String(object.annotations[keys[i]]); + } + if (object.displayName != null) + message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from a Recommendation message. Also converts values to other types if specified. + * Creates a plain object from an InsightTypeConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @static - * @param {google.cloud.recommender.v1.Recommendation} message Recommendation + * @param {google.cloud.recommender.v1.InsightTypeConfig} message InsightTypeConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Recommendation.toObject = function toObject(message, options) { + InsightTypeConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.additionalImpact = []; - object.associatedInsights = []; - } + if (options.objects || options.defaults) + object.annotations = {}; if (options.defaults) { object.name = ""; - object.description = ""; - object.lastRefreshTime = null; - object.primaryImpact = null; - object.content = null; - object.stateInfo = null; + object.insightTypeGenerationConfig = null; object.etag = ""; - object.recommenderSubtype = ""; + object.updateTime = null; + object.revisionId = ""; + object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.lastRefreshTime != null && message.hasOwnProperty("lastRefreshTime")) - object.lastRefreshTime = $root.google.protobuf.Timestamp.toObject(message.lastRefreshTime, options); - if (message.primaryImpact != null && message.hasOwnProperty("primaryImpact")) - object.primaryImpact = $root.google.cloud.recommender.v1.Impact.toObject(message.primaryImpact, options); - if (message.additionalImpact && message.additionalImpact.length) { - object.additionalImpact = []; - for (var j = 0; j < message.additionalImpact.length; ++j) - object.additionalImpact[j] = $root.google.cloud.recommender.v1.Impact.toObject(message.additionalImpact[j], options); - } - if (message.content != null && message.hasOwnProperty("content")) - object.content = $root.google.cloud.recommender.v1.RecommendationContent.toObject(message.content, options); - if (message.stateInfo != null && message.hasOwnProperty("stateInfo")) - object.stateInfo = $root.google.cloud.recommender.v1.RecommendationStateInfo.toObject(message.stateInfo, options); + if (message.insightTypeGenerationConfig != null && message.hasOwnProperty("insightTypeGenerationConfig")) + object.insightTypeGenerationConfig = $root.google.cloud.recommender.v1.InsightTypeGenerationConfig.toObject(message.insightTypeGenerationConfig, options); if (message.etag != null && message.hasOwnProperty("etag")) object.etag = message.etag; - if (message.recommenderSubtype != null && message.hasOwnProperty("recommenderSubtype")) - object.recommenderSubtype = message.recommenderSubtype; - if (message.associatedInsights && message.associatedInsights.length) { - object.associatedInsights = []; - for (var j = 0; j < message.associatedInsights.length; ++j) - object.associatedInsights[j] = $root.google.cloud.recommender.v1.Recommendation.InsightReference.toObject(message.associatedInsights[j], options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.revisionId != null && message.hasOwnProperty("revisionId")) + object.revisionId = message.revisionId; + var keys2; + if (message.annotations && (keys2 = Object.keys(message.annotations)).length) { + object.annotations = {}; + for (var j = 0; j < keys2.length; ++j) + object.annotations[keys2[j]] = message.annotations[keys2[j]]; } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; /** - * Converts this Recommendation to JSON. + * Converts this InsightTypeConfig to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @instance * @returns {Object.} JSON object */ - Recommendation.prototype.toJSON = function toJSON() { + InsightTypeConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Recommendation + * Gets the default type url for InsightTypeConfig * @function getTypeUrl - * @memberof google.cloud.recommender.v1.Recommendation + * @memberof google.cloud.recommender.v1.InsightTypeConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Recommendation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InsightTypeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.Recommendation"; + return typeUrlPrefix + "/google.cloud.recommender.v1.InsightTypeConfig"; }; - Recommendation.InsightReference = (function() { - - /** - * Properties of an InsightReference. - * @memberof google.cloud.recommender.v1.Recommendation - * @interface IInsightReference - * @property {string|null} [insight] InsightReference insight - */ + return InsightTypeConfig; + })(); - /** - * Constructs a new InsightReference. - * @memberof google.cloud.recommender.v1.Recommendation - * @classdesc Represents an InsightReference. - * @implements IInsightReference - * @constructor - * @param {google.cloud.recommender.v1.Recommendation.IInsightReference=} [properties] Properties to set - */ - function InsightReference(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]]; - } + v1.InsightTypeGenerationConfig = (function() { - /** - * InsightReference insight. - * @member {string} insight - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @instance - */ - InsightReference.prototype.insight = ""; + /** + * Properties of an InsightTypeGenerationConfig. + * @memberof google.cloud.recommender.v1 + * @interface IInsightTypeGenerationConfig + * @property {google.protobuf.IStruct|null} [params] InsightTypeGenerationConfig params + */ - /** - * Creates a new InsightReference instance using the specified properties. - * @function create - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @static - * @param {google.cloud.recommender.v1.Recommendation.IInsightReference=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.Recommendation.InsightReference} InsightReference instance - */ - InsightReference.create = function create(properties) { - return new InsightReference(properties); - }; + /** + * Constructs a new InsightTypeGenerationConfig. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents an InsightTypeGenerationConfig. + * @implements IInsightTypeGenerationConfig + * @constructor + * @param {google.cloud.recommender.v1.IInsightTypeGenerationConfig=} [properties] Properties to set + */ + function InsightTypeGenerationConfig(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]]; + } - /** - * Encodes the specified InsightReference message. Does not implicitly {@link google.cloud.recommender.v1.Recommendation.InsightReference.verify|verify} messages. - * @function encode - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @static - * @param {google.cloud.recommender.v1.Recommendation.IInsightReference} message InsightReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InsightReference.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.insight != null && Object.hasOwnProperty.call(message, "insight")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.insight); - return writer; - }; + /** + * InsightTypeGenerationConfig params. + * @member {google.protobuf.IStruct|null|undefined} params + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig + * @instance + */ + InsightTypeGenerationConfig.prototype.params = null; - /** - * Encodes the specified InsightReference message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.Recommendation.InsightReference.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @static - * @param {google.cloud.recommender.v1.Recommendation.IInsightReference} message InsightReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InsightReference.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new InsightTypeGenerationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig + * @static + * @param {google.cloud.recommender.v1.IInsightTypeGenerationConfig=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.InsightTypeGenerationConfig} InsightTypeGenerationConfig instance + */ + InsightTypeGenerationConfig.create = function create(properties) { + return new InsightTypeGenerationConfig(properties); + }; - /** - * Decodes an InsightReference message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.Recommendation.InsightReference} InsightReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InsightReference.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.Recommendation.InsightReference(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.insight = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InsightReference message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.Recommendation.InsightReference} InsightReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InsightReference.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InsightReference message. - * @function verify - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InsightReference.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.insight != null && message.hasOwnProperty("insight")) - if (!$util.isString(message.insight)) - return "insight: string expected"; - return null; - }; - - /** - * Creates an InsightReference message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.Recommendation.InsightReference} InsightReference - */ - InsightReference.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.Recommendation.InsightReference) - return object; - var message = new $root.google.cloud.recommender.v1.Recommendation.InsightReference(); - if (object.insight != null) - message.insight = String(object.insight); - return message; - }; - - /** - * Creates a plain object from an InsightReference message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @static - * @param {google.cloud.recommender.v1.Recommendation.InsightReference} message InsightReference - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InsightReference.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.insight = ""; - if (message.insight != null && message.hasOwnProperty("insight")) - object.insight = message.insight; - return object; - }; - - /** - * Converts this InsightReference to JSON. - * @function toJSON - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @instance - * @returns {Object.} JSON object - */ - InsightReference.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InsightReference - * @function getTypeUrl - * @memberof google.cloud.recommender.v1.Recommendation.InsightReference - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InsightReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.recommender.v1.Recommendation.InsightReference"; - }; - - return InsightReference; - })(); - - return Recommendation; - })(); - - v1.RecommendationContent = (function() { - - /** - * Properties of a RecommendationContent. - * @memberof google.cloud.recommender.v1 - * @interface IRecommendationContent - * @property {Array.|null} [operationGroups] RecommendationContent operationGroups - */ - - /** - * Constructs a new RecommendationContent. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a RecommendationContent. - * @implements IRecommendationContent - * @constructor - * @param {google.cloud.recommender.v1.IRecommendationContent=} [properties] Properties to set - */ - function RecommendationContent(properties) { - this.operationGroups = []; - 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]]; - } - - /** - * RecommendationContent operationGroups. - * @member {Array.} operationGroups - * @memberof google.cloud.recommender.v1.RecommendationContent - * @instance - */ - RecommendationContent.prototype.operationGroups = $util.emptyArray; - - /** - * Creates a new RecommendationContent instance using the specified properties. - * @function create - * @memberof google.cloud.recommender.v1.RecommendationContent - * @static - * @param {google.cloud.recommender.v1.IRecommendationContent=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.RecommendationContent} RecommendationContent instance - */ - RecommendationContent.create = function create(properties) { - return new RecommendationContent(properties); - }; - - /** - * Encodes the specified RecommendationContent message. Does not implicitly {@link google.cloud.recommender.v1.RecommendationContent.verify|verify} messages. - * @function encode - * @memberof google.cloud.recommender.v1.RecommendationContent - * @static - * @param {google.cloud.recommender.v1.IRecommendationContent} message RecommendationContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecommendationContent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.operationGroups != null && message.operationGroups.length) - for (var i = 0; i < message.operationGroups.length; ++i) - $root.google.cloud.recommender.v1.OperationGroup.encode(message.operationGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified InsightTypeGenerationConfig message. Does not implicitly {@link google.cloud.recommender.v1.InsightTypeGenerationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig + * @static + * @param {google.cloud.recommender.v1.IInsightTypeGenerationConfig} message InsightTypeGenerationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightTypeGenerationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.protobuf.Struct.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * Encodes the specified RecommendationContent message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.RecommendationContent.verify|verify} messages. + * Encodes the specified InsightTypeGenerationConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.InsightTypeGenerationConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.RecommendationContent + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig * @static - * @param {google.cloud.recommender.v1.IRecommendationContent} message RecommendationContent message or plain object to encode + * @param {google.cloud.recommender.v1.IInsightTypeGenerationConfig} message InsightTypeGenerationConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecommendationContent.encodeDelimited = function encodeDelimited(message, writer) { + InsightTypeGenerationConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecommendationContent message from the specified reader or buffer. + * Decodes an InsightTypeGenerationConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.RecommendationContent + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.RecommendationContent} RecommendationContent + * @returns {google.cloud.recommender.v1.InsightTypeGenerationConfig} InsightTypeGenerationConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecommendationContent.decode = function decode(reader, length) { + InsightTypeGenerationConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.RecommendationContent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.InsightTypeGenerationConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - if (!(message.operationGroups && message.operationGroups.length)) - message.operationGroups = []; - message.operationGroups.push($root.google.cloud.recommender.v1.OperationGroup.decode(reader, reader.uint32())); + case 1: { + message.params = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } default: @@ -1912,140 +1695,140 @@ }; /** - * Decodes a RecommendationContent message from the specified reader or buffer, length delimited. + * Decodes an InsightTypeGenerationConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.RecommendationContent + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.RecommendationContent} RecommendationContent + * @returns {google.cloud.recommender.v1.InsightTypeGenerationConfig} InsightTypeGenerationConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecommendationContent.decodeDelimited = function decodeDelimited(reader) { + InsightTypeGenerationConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecommendationContent message. + * Verifies an InsightTypeGenerationConfig message. * @function verify - * @memberof google.cloud.recommender.v1.RecommendationContent + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecommendationContent.verify = function verify(message) { + InsightTypeGenerationConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.operationGroups != null && message.hasOwnProperty("operationGroups")) { - if (!Array.isArray(message.operationGroups)) - return "operationGroups: array expected"; - for (var i = 0; i < message.operationGroups.length; ++i) { - var error = $root.google.cloud.recommender.v1.OperationGroup.verify(message.operationGroups[i]); - if (error) - return "operationGroups." + error; - } + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.google.protobuf.Struct.verify(message.params); + if (error) + return "params." + error; } return null; }; /** - * Creates a RecommendationContent message from a plain object. Also converts values to their respective internal types. + * Creates an InsightTypeGenerationConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.RecommendationContent + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.RecommendationContent} RecommendationContent + * @returns {google.cloud.recommender.v1.InsightTypeGenerationConfig} InsightTypeGenerationConfig */ - RecommendationContent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.RecommendationContent) + InsightTypeGenerationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.InsightTypeGenerationConfig) return object; - var message = new $root.google.cloud.recommender.v1.RecommendationContent(); - if (object.operationGroups) { - if (!Array.isArray(object.operationGroups)) - throw TypeError(".google.cloud.recommender.v1.RecommendationContent.operationGroups: array expected"); - message.operationGroups = []; - for (var i = 0; i < object.operationGroups.length; ++i) { - if (typeof object.operationGroups[i] !== "object") - throw TypeError(".google.cloud.recommender.v1.RecommendationContent.operationGroups: object expected"); - message.operationGroups[i] = $root.google.cloud.recommender.v1.OperationGroup.fromObject(object.operationGroups[i]); - } + var message = new $root.google.cloud.recommender.v1.InsightTypeGenerationConfig(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.recommender.v1.InsightTypeGenerationConfig.params: object expected"); + message.params = $root.google.protobuf.Struct.fromObject(object.params); } return message; }; /** - * Creates a plain object from a RecommendationContent message. Also converts values to other types if specified. + * Creates a plain object from an InsightTypeGenerationConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.RecommendationContent + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig * @static - * @param {google.cloud.recommender.v1.RecommendationContent} message RecommendationContent + * @param {google.cloud.recommender.v1.InsightTypeGenerationConfig} message InsightTypeGenerationConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecommendationContent.toObject = function toObject(message, options) { + InsightTypeGenerationConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.operationGroups = []; - if (message.operationGroups && message.operationGroups.length) { - object.operationGroups = []; - for (var j = 0; j < message.operationGroups.length; ++j) - object.operationGroups[j] = $root.google.cloud.recommender.v1.OperationGroup.toObject(message.operationGroups[j], options); - } + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.google.protobuf.Struct.toObject(message.params, options); return object; }; /** - * Converts this RecommendationContent to JSON. + * Converts this InsightTypeGenerationConfig to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.RecommendationContent + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig * @instance * @returns {Object.} JSON object */ - RecommendationContent.prototype.toJSON = function toJSON() { + InsightTypeGenerationConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecommendationContent + * Gets the default type url for InsightTypeGenerationConfig * @function getTypeUrl - * @memberof google.cloud.recommender.v1.RecommendationContent + * @memberof google.cloud.recommender.v1.InsightTypeGenerationConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecommendationContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InsightTypeGenerationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.RecommendationContent"; + return typeUrlPrefix + "/google.cloud.recommender.v1.InsightTypeGenerationConfig"; }; - return RecommendationContent; + return InsightTypeGenerationConfig; })(); - v1.OperationGroup = (function() { + v1.Recommendation = (function() { /** - * Properties of an OperationGroup. + * Properties of a Recommendation. * @memberof google.cloud.recommender.v1 - * @interface IOperationGroup - * @property {Array.|null} [operations] OperationGroup operations + * @interface IRecommendation + * @property {string|null} [name] Recommendation name + * @property {string|null} [description] Recommendation description + * @property {string|null} [recommenderSubtype] Recommendation recommenderSubtype + * @property {google.protobuf.ITimestamp|null} [lastRefreshTime] Recommendation lastRefreshTime + * @property {google.cloud.recommender.v1.IImpact|null} [primaryImpact] Recommendation primaryImpact + * @property {Array.|null} [additionalImpact] Recommendation additionalImpact + * @property {google.cloud.recommender.v1.Recommendation.Priority|null} [priority] Recommendation priority + * @property {google.cloud.recommender.v1.IRecommendationContent|null} [content] Recommendation content + * @property {google.cloud.recommender.v1.IRecommendationStateInfo|null} [stateInfo] Recommendation stateInfo + * @property {string|null} [etag] Recommendation etag + * @property {Array.|null} [associatedInsights] Recommendation associatedInsights + * @property {string|null} [xorGroupId] Recommendation xorGroupId */ /** - * Constructs a new OperationGroup. + * Constructs a new Recommendation. * @memberof google.cloud.recommender.v1 - * @classdesc Represents an OperationGroup. - * @implements IOperationGroup + * @classdesc Represents a Recommendation. + * @implements IRecommendation * @constructor - * @param {google.cloud.recommender.v1.IOperationGroup=} [properties] Properties to set + * @param {google.cloud.recommender.v1.IRecommendation=} [properties] Properties to set */ - function OperationGroup(properties) { - this.operations = []; + function Recommendation(properties) { + this.additionalImpact = []; + this.associatedInsights = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2053,78 +1836,235 @@ } /** - * OperationGroup operations. - * @member {Array.} operations - * @memberof google.cloud.recommender.v1.OperationGroup + * Recommendation name. + * @member {string} name + * @memberof google.cloud.recommender.v1.Recommendation * @instance */ - OperationGroup.prototype.operations = $util.emptyArray; + Recommendation.prototype.name = ""; /** - * Creates a new OperationGroup instance using the specified properties. + * Recommendation description. + * @member {string} description + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.description = ""; + + /** + * Recommendation recommenderSubtype. + * @member {string} recommenderSubtype + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.recommenderSubtype = ""; + + /** + * Recommendation lastRefreshTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastRefreshTime + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.lastRefreshTime = null; + + /** + * Recommendation primaryImpact. + * @member {google.cloud.recommender.v1.IImpact|null|undefined} primaryImpact + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.primaryImpact = null; + + /** + * Recommendation additionalImpact. + * @member {Array.} additionalImpact + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.additionalImpact = $util.emptyArray; + + /** + * Recommendation priority. + * @member {google.cloud.recommender.v1.Recommendation.Priority} priority + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.priority = 0; + + /** + * Recommendation content. + * @member {google.cloud.recommender.v1.IRecommendationContent|null|undefined} content + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.content = null; + + /** + * Recommendation stateInfo. + * @member {google.cloud.recommender.v1.IRecommendationStateInfo|null|undefined} stateInfo + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.stateInfo = null; + + /** + * Recommendation etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.etag = ""; + + /** + * Recommendation associatedInsights. + * @member {Array.} associatedInsights + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.associatedInsights = $util.emptyArray; + + /** + * Recommendation xorGroupId. + * @member {string} xorGroupId + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + */ + Recommendation.prototype.xorGroupId = ""; + + /** + * Creates a new Recommendation instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.OperationGroup + * @memberof google.cloud.recommender.v1.Recommendation * @static - * @param {google.cloud.recommender.v1.IOperationGroup=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.OperationGroup} OperationGroup instance + * @param {google.cloud.recommender.v1.IRecommendation=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.Recommendation} Recommendation instance */ - OperationGroup.create = function create(properties) { - return new OperationGroup(properties); + Recommendation.create = function create(properties) { + return new Recommendation(properties); }; /** - * Encodes the specified OperationGroup message. Does not implicitly {@link google.cloud.recommender.v1.OperationGroup.verify|verify} messages. + * Encodes the specified Recommendation message. Does not implicitly {@link google.cloud.recommender.v1.Recommendation.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.OperationGroup + * @memberof google.cloud.recommender.v1.Recommendation * @static - * @param {google.cloud.recommender.v1.IOperationGroup} message OperationGroup message or plain object to encode + * @param {google.cloud.recommender.v1.IRecommendation} message Recommendation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationGroup.encode = function encode(message, writer) { + Recommendation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.operations != null && message.operations.length) - for (var i = 0; i < message.operations.length; ++i) - $root.google.cloud.recommender.v1.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.lastRefreshTime != null && Object.hasOwnProperty.call(message, "lastRefreshTime")) + $root.google.protobuf.Timestamp.encode(message.lastRefreshTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.primaryImpact != null && Object.hasOwnProperty.call(message, "primaryImpact")) + $root.google.cloud.recommender.v1.Impact.encode(message.primaryImpact, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.additionalImpact != null && message.additionalImpact.length) + for (var i = 0; i < message.additionalImpact.length; ++i) + $root.google.cloud.recommender.v1.Impact.encode(message.additionalImpact[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + $root.google.cloud.recommender.v1.RecommendationContent.encode(message.content, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.stateInfo != null && Object.hasOwnProperty.call(message, "stateInfo")) + $root.google.cloud.recommender.v1.RecommendationStateInfo.encode(message.stateInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.etag); + if (message.recommenderSubtype != null && Object.hasOwnProperty.call(message, "recommenderSubtype")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.recommenderSubtype); + if (message.associatedInsights != null && message.associatedInsights.length) + for (var i = 0; i < message.associatedInsights.length; ++i) + $root.google.cloud.recommender.v1.Recommendation.InsightReference.encode(message.associatedInsights[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.priority); + if (message.xorGroupId != null && Object.hasOwnProperty.call(message, "xorGroupId")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.xorGroupId); return writer; }; /** - * Encodes the specified OperationGroup message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.OperationGroup.verify|verify} messages. + * Encodes the specified Recommendation message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.Recommendation.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.OperationGroup + * @memberof google.cloud.recommender.v1.Recommendation * @static - * @param {google.cloud.recommender.v1.IOperationGroup} message OperationGroup message or plain object to encode + * @param {google.cloud.recommender.v1.IRecommendation} message Recommendation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationGroup.encodeDelimited = function encodeDelimited(message, writer) { + Recommendation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OperationGroup message from the specified reader or buffer. + * Decodes a Recommendation message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.OperationGroup + * @memberof google.cloud.recommender.v1.Recommendation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.OperationGroup} OperationGroup + * @returns {google.cloud.recommender.v1.Recommendation} Recommendation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationGroup.decode = function decode(reader, length) { + Recommendation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.OperationGroup(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.Recommendation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.operations && message.operations.length)) - message.operations = []; - message.operations.push($root.google.cloud.recommender.v1.Operation.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + } + case 2: { + message.description = reader.string(); + break; + } + case 12: { + message.recommenderSubtype = reader.string(); + break; + } + case 4: { + message.lastRefreshTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.primaryImpact = $root.google.cloud.recommender.v1.Impact.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.additionalImpact && message.additionalImpact.length)) + message.additionalImpact = []; + message.additionalImpact.push($root.google.cloud.recommender.v1.Impact.decode(reader, reader.uint32())); + break; + } + case 17: { + message.priority = reader.int32(); + break; + } + case 7: { + message.content = $root.google.cloud.recommender.v1.RecommendationContent.decode(reader, reader.uint32()); + break; + } + case 10: { + message.stateInfo = $root.google.cloud.recommender.v1.RecommendationStateInfo.decode(reader, reader.uint32()); + break; + } + case 11: { + message.etag = reader.string(); + break; + } + case 14: { + if (!(message.associatedInsights && message.associatedInsights.length)) + message.associatedInsights = []; + message.associatedInsights.push($root.google.cloud.recommender.v1.Recommendation.InsightReference.decode(reader, reader.uint32())); + break; + } + case 18: { + message.xorGroupId = reader.string(); break; } default: @@ -2136,150 +2076,12550 @@ }; /** - * Decodes an OperationGroup message from the specified reader or buffer, length delimited. + * Decodes a Recommendation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.OperationGroup + * @memberof google.cloud.recommender.v1.Recommendation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.OperationGroup} OperationGroup + * @returns {google.cloud.recommender.v1.Recommendation} Recommendation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationGroup.decodeDelimited = function decodeDelimited(reader) { + Recommendation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OperationGroup message. + * Verifies a Recommendation message. * @function verify - * @memberof google.cloud.recommender.v1.OperationGroup + * @memberof google.cloud.recommender.v1.Recommendation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OperationGroup.verify = function verify(message) { + Recommendation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.operations != null && message.hasOwnProperty("operations")) { - if (!Array.isArray(message.operations)) - return "operations: array expected"; - for (var i = 0; i < message.operations.length; ++i) { - var error = $root.google.cloud.recommender.v1.Operation.verify(message.operations[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.recommenderSubtype != null && message.hasOwnProperty("recommenderSubtype")) + if (!$util.isString(message.recommenderSubtype)) + return "recommenderSubtype: string expected"; + if (message.lastRefreshTime != null && message.hasOwnProperty("lastRefreshTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastRefreshTime); + if (error) + return "lastRefreshTime." + error; + } + if (message.primaryImpact != null && message.hasOwnProperty("primaryImpact")) { + var error = $root.google.cloud.recommender.v1.Impact.verify(message.primaryImpact); + if (error) + return "primaryImpact." + error; + } + if (message.additionalImpact != null && message.hasOwnProperty("additionalImpact")) { + if (!Array.isArray(message.additionalImpact)) + return "additionalImpact: array expected"; + for (var i = 0; i < message.additionalImpact.length; ++i) { + var error = $root.google.cloud.recommender.v1.Impact.verify(message.additionalImpact[i]); if (error) - return "operations." + error; + return "additionalImpact." + error; } } - return null; - }; - - /** - * Creates an OperationGroup message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.recommender.v1.OperationGroup - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.OperationGroup} OperationGroup - */ - OperationGroup.fromObject = function fromObject(object) { + if (message.priority != null && message.hasOwnProperty("priority")) + switch (message.priority) { + default: + return "priority: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.content != null && message.hasOwnProperty("content")) { + var error = $root.google.cloud.recommender.v1.RecommendationContent.verify(message.content); + if (error) + return "content." + error; + } + if (message.stateInfo != null && message.hasOwnProperty("stateInfo")) { + var error = $root.google.cloud.recommender.v1.RecommendationStateInfo.verify(message.stateInfo); + if (error) + return "stateInfo." + error; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.associatedInsights != null && message.hasOwnProperty("associatedInsights")) { + if (!Array.isArray(message.associatedInsights)) + return "associatedInsights: array expected"; + for (var i = 0; i < message.associatedInsights.length; ++i) { + var error = $root.google.cloud.recommender.v1.Recommendation.InsightReference.verify(message.associatedInsights[i]); + if (error) + return "associatedInsights." + error; + } + } + if (message.xorGroupId != null && message.hasOwnProperty("xorGroupId")) + if (!$util.isString(message.xorGroupId)) + return "xorGroupId: string expected"; + return null; + }; + + /** + * Creates a Recommendation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.Recommendation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.Recommendation} Recommendation + */ + Recommendation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.Recommendation) + return object; + var message = new $root.google.cloud.recommender.v1.Recommendation(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + if (object.recommenderSubtype != null) + message.recommenderSubtype = String(object.recommenderSubtype); + if (object.lastRefreshTime != null) { + if (typeof object.lastRefreshTime !== "object") + throw TypeError(".google.cloud.recommender.v1.Recommendation.lastRefreshTime: object expected"); + message.lastRefreshTime = $root.google.protobuf.Timestamp.fromObject(object.lastRefreshTime); + } + if (object.primaryImpact != null) { + if (typeof object.primaryImpact !== "object") + throw TypeError(".google.cloud.recommender.v1.Recommendation.primaryImpact: object expected"); + message.primaryImpact = $root.google.cloud.recommender.v1.Impact.fromObject(object.primaryImpact); + } + if (object.additionalImpact) { + if (!Array.isArray(object.additionalImpact)) + throw TypeError(".google.cloud.recommender.v1.Recommendation.additionalImpact: array expected"); + message.additionalImpact = []; + for (var i = 0; i < object.additionalImpact.length; ++i) { + if (typeof object.additionalImpact[i] !== "object") + throw TypeError(".google.cloud.recommender.v1.Recommendation.additionalImpact: object expected"); + message.additionalImpact[i] = $root.google.cloud.recommender.v1.Impact.fromObject(object.additionalImpact[i]); + } + } + switch (object.priority) { + default: + if (typeof object.priority === "number") { + message.priority = object.priority; + break; + } + break; + case "PRIORITY_UNSPECIFIED": + case 0: + message.priority = 0; + break; + case "P4": + case 1: + message.priority = 1; + break; + case "P3": + case 2: + message.priority = 2; + break; + case "P2": + case 3: + message.priority = 3; + break; + case "P1": + case 4: + message.priority = 4; + break; + } + if (object.content != null) { + if (typeof object.content !== "object") + throw TypeError(".google.cloud.recommender.v1.Recommendation.content: object expected"); + message.content = $root.google.cloud.recommender.v1.RecommendationContent.fromObject(object.content); + } + if (object.stateInfo != null) { + if (typeof object.stateInfo !== "object") + throw TypeError(".google.cloud.recommender.v1.Recommendation.stateInfo: object expected"); + message.stateInfo = $root.google.cloud.recommender.v1.RecommendationStateInfo.fromObject(object.stateInfo); + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.associatedInsights) { + if (!Array.isArray(object.associatedInsights)) + throw TypeError(".google.cloud.recommender.v1.Recommendation.associatedInsights: array expected"); + message.associatedInsights = []; + for (var i = 0; i < object.associatedInsights.length; ++i) { + if (typeof object.associatedInsights[i] !== "object") + throw TypeError(".google.cloud.recommender.v1.Recommendation.associatedInsights: object expected"); + message.associatedInsights[i] = $root.google.cloud.recommender.v1.Recommendation.InsightReference.fromObject(object.associatedInsights[i]); + } + } + if (object.xorGroupId != null) + message.xorGroupId = String(object.xorGroupId); + return message; + }; + + /** + * Creates a plain object from a Recommendation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.Recommendation + * @static + * @param {google.cloud.recommender.v1.Recommendation} message Recommendation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Recommendation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.additionalImpact = []; + object.associatedInsights = []; + } + if (options.defaults) { + object.name = ""; + object.description = ""; + object.lastRefreshTime = null; + object.primaryImpact = null; + object.content = null; + object.stateInfo = null; + object.etag = ""; + object.recommenderSubtype = ""; + object.priority = options.enums === String ? "PRIORITY_UNSPECIFIED" : 0; + object.xorGroupId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.lastRefreshTime != null && message.hasOwnProperty("lastRefreshTime")) + object.lastRefreshTime = $root.google.protobuf.Timestamp.toObject(message.lastRefreshTime, options); + if (message.primaryImpact != null && message.hasOwnProperty("primaryImpact")) + object.primaryImpact = $root.google.cloud.recommender.v1.Impact.toObject(message.primaryImpact, options); + if (message.additionalImpact && message.additionalImpact.length) { + object.additionalImpact = []; + for (var j = 0; j < message.additionalImpact.length; ++j) + object.additionalImpact[j] = $root.google.cloud.recommender.v1.Impact.toObject(message.additionalImpact[j], options); + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = $root.google.cloud.recommender.v1.RecommendationContent.toObject(message.content, options); + if (message.stateInfo != null && message.hasOwnProperty("stateInfo")) + object.stateInfo = $root.google.cloud.recommender.v1.RecommendationStateInfo.toObject(message.stateInfo, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.recommenderSubtype != null && message.hasOwnProperty("recommenderSubtype")) + object.recommenderSubtype = message.recommenderSubtype; + if (message.associatedInsights && message.associatedInsights.length) { + object.associatedInsights = []; + for (var j = 0; j < message.associatedInsights.length; ++j) + object.associatedInsights[j] = $root.google.cloud.recommender.v1.Recommendation.InsightReference.toObject(message.associatedInsights[j], options); + } + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = options.enums === String ? $root.google.cloud.recommender.v1.Recommendation.Priority[message.priority] === undefined ? message.priority : $root.google.cloud.recommender.v1.Recommendation.Priority[message.priority] : message.priority; + if (message.xorGroupId != null && message.hasOwnProperty("xorGroupId")) + object.xorGroupId = message.xorGroupId; + return object; + }; + + /** + * Converts this Recommendation to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.Recommendation + * @instance + * @returns {Object.} JSON object + */ + Recommendation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Recommendation + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.Recommendation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Recommendation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.Recommendation"; + }; + + /** + * Priority enum. + * @name google.cloud.recommender.v1.Recommendation.Priority + * @enum {number} + * @property {number} PRIORITY_UNSPECIFIED=0 PRIORITY_UNSPECIFIED value + * @property {number} P4=1 P4 value + * @property {number} P3=2 P3 value + * @property {number} P2=3 P2 value + * @property {number} P1=4 P1 value + */ + Recommendation.Priority = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PRIORITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "P4"] = 1; + values[valuesById[2] = "P3"] = 2; + values[valuesById[3] = "P2"] = 3; + values[valuesById[4] = "P1"] = 4; + return values; + })(); + + Recommendation.InsightReference = (function() { + + /** + * Properties of an InsightReference. + * @memberof google.cloud.recommender.v1.Recommendation + * @interface IInsightReference + * @property {string|null} [insight] InsightReference insight + */ + + /** + * Constructs a new InsightReference. + * @memberof google.cloud.recommender.v1.Recommendation + * @classdesc Represents an InsightReference. + * @implements IInsightReference + * @constructor + * @param {google.cloud.recommender.v1.Recommendation.IInsightReference=} [properties] Properties to set + */ + function InsightReference(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]]; + } + + /** + * InsightReference insight. + * @member {string} insight + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @instance + */ + InsightReference.prototype.insight = ""; + + /** + * Creates a new InsightReference instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @static + * @param {google.cloud.recommender.v1.Recommendation.IInsightReference=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.Recommendation.InsightReference} InsightReference instance + */ + InsightReference.create = function create(properties) { + return new InsightReference(properties); + }; + + /** + * Encodes the specified InsightReference message. Does not implicitly {@link google.cloud.recommender.v1.Recommendation.InsightReference.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @static + * @param {google.cloud.recommender.v1.Recommendation.IInsightReference} message InsightReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.insight != null && Object.hasOwnProperty.call(message, "insight")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.insight); + return writer; + }; + + /** + * Encodes the specified InsightReference message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.Recommendation.InsightReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @static + * @param {google.cloud.recommender.v1.Recommendation.IInsightReference} message InsightReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsightReference message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.Recommendation.InsightReference} InsightReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.Recommendation.InsightReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.insight = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsightReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.Recommendation.InsightReference} InsightReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsightReference message. + * @function verify + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsightReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.insight != null && message.hasOwnProperty("insight")) + if (!$util.isString(message.insight)) + return "insight: string expected"; + return null; + }; + + /** + * Creates an InsightReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.Recommendation.InsightReference} InsightReference + */ + InsightReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.Recommendation.InsightReference) + return object; + var message = new $root.google.cloud.recommender.v1.Recommendation.InsightReference(); + if (object.insight != null) + message.insight = String(object.insight); + return message; + }; + + /** + * Creates a plain object from an InsightReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @static + * @param {google.cloud.recommender.v1.Recommendation.InsightReference} message InsightReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsightReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.insight = ""; + if (message.insight != null && message.hasOwnProperty("insight")) + object.insight = message.insight; + return object; + }; + + /** + * Converts this InsightReference to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @instance + * @returns {Object.} JSON object + */ + InsightReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsightReference + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.Recommendation.InsightReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsightReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.Recommendation.InsightReference"; + }; + + return InsightReference; + })(); + + return Recommendation; + })(); + + v1.RecommendationContent = (function() { + + /** + * Properties of a RecommendationContent. + * @memberof google.cloud.recommender.v1 + * @interface IRecommendationContent + * @property {Array.|null} [operationGroups] RecommendationContent operationGroups + * @property {google.protobuf.IStruct|null} [overview] RecommendationContent overview + */ + + /** + * Constructs a new RecommendationContent. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a RecommendationContent. + * @implements IRecommendationContent + * @constructor + * @param {google.cloud.recommender.v1.IRecommendationContent=} [properties] Properties to set + */ + function RecommendationContent(properties) { + this.operationGroups = []; + 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]]; + } + + /** + * RecommendationContent operationGroups. + * @member {Array.} operationGroups + * @memberof google.cloud.recommender.v1.RecommendationContent + * @instance + */ + RecommendationContent.prototype.operationGroups = $util.emptyArray; + + /** + * RecommendationContent overview. + * @member {google.protobuf.IStruct|null|undefined} overview + * @memberof google.cloud.recommender.v1.RecommendationContent + * @instance + */ + RecommendationContent.prototype.overview = null; + + /** + * Creates a new RecommendationContent instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.RecommendationContent + * @static + * @param {google.cloud.recommender.v1.IRecommendationContent=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.RecommendationContent} RecommendationContent instance + */ + RecommendationContent.create = function create(properties) { + return new RecommendationContent(properties); + }; + + /** + * Encodes the specified RecommendationContent message. Does not implicitly {@link google.cloud.recommender.v1.RecommendationContent.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.RecommendationContent + * @static + * @param {google.cloud.recommender.v1.IRecommendationContent} message RecommendationContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationContent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operationGroups != null && message.operationGroups.length) + for (var i = 0; i < message.operationGroups.length; ++i) + $root.google.cloud.recommender.v1.OperationGroup.encode(message.operationGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.overview != null && Object.hasOwnProperty.call(message, "overview")) + $root.google.protobuf.Struct.encode(message.overview, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RecommendationContent message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.RecommendationContent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.RecommendationContent + * @static + * @param {google.cloud.recommender.v1.IRecommendationContent} message RecommendationContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationContent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecommendationContent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.RecommendationContent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.RecommendationContent} RecommendationContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationContent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.RecommendationContent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.operationGroups && message.operationGroups.length)) + message.operationGroups = []; + message.operationGroups.push($root.google.cloud.recommender.v1.OperationGroup.decode(reader, reader.uint32())); + break; + } + case 3: { + message.overview = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecommendationContent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.RecommendationContent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.RecommendationContent} RecommendationContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationContent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecommendationContent message. + * @function verify + * @memberof google.cloud.recommender.v1.RecommendationContent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecommendationContent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operationGroups != null && message.hasOwnProperty("operationGroups")) { + if (!Array.isArray(message.operationGroups)) + return "operationGroups: array expected"; + for (var i = 0; i < message.operationGroups.length; ++i) { + var error = $root.google.cloud.recommender.v1.OperationGroup.verify(message.operationGroups[i]); + if (error) + return "operationGroups." + error; + } + } + if (message.overview != null && message.hasOwnProperty("overview")) { + var error = $root.google.protobuf.Struct.verify(message.overview); + if (error) + return "overview." + error; + } + return null; + }; + + /** + * Creates a RecommendationContent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.RecommendationContent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.RecommendationContent} RecommendationContent + */ + RecommendationContent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.RecommendationContent) + return object; + var message = new $root.google.cloud.recommender.v1.RecommendationContent(); + if (object.operationGroups) { + if (!Array.isArray(object.operationGroups)) + throw TypeError(".google.cloud.recommender.v1.RecommendationContent.operationGroups: array expected"); + message.operationGroups = []; + for (var i = 0; i < object.operationGroups.length; ++i) { + if (typeof object.operationGroups[i] !== "object") + throw TypeError(".google.cloud.recommender.v1.RecommendationContent.operationGroups: object expected"); + message.operationGroups[i] = $root.google.cloud.recommender.v1.OperationGroup.fromObject(object.operationGroups[i]); + } + } + if (object.overview != null) { + if (typeof object.overview !== "object") + throw TypeError(".google.cloud.recommender.v1.RecommendationContent.overview: object expected"); + message.overview = $root.google.protobuf.Struct.fromObject(object.overview); + } + return message; + }; + + /** + * Creates a plain object from a RecommendationContent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.RecommendationContent + * @static + * @param {google.cloud.recommender.v1.RecommendationContent} message RecommendationContent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecommendationContent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.operationGroups = []; + if (options.defaults) + object.overview = null; + if (message.operationGroups && message.operationGroups.length) { + object.operationGroups = []; + for (var j = 0; j < message.operationGroups.length; ++j) + object.operationGroups[j] = $root.google.cloud.recommender.v1.OperationGroup.toObject(message.operationGroups[j], options); + } + if (message.overview != null && message.hasOwnProperty("overview")) + object.overview = $root.google.protobuf.Struct.toObject(message.overview, options); + return object; + }; + + /** + * Converts this RecommendationContent to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.RecommendationContent + * @instance + * @returns {Object.} JSON object + */ + RecommendationContent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecommendationContent + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.RecommendationContent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecommendationContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.RecommendationContent"; + }; + + return RecommendationContent; + })(); + + v1.OperationGroup = (function() { + + /** + * Properties of an OperationGroup. + * @memberof google.cloud.recommender.v1 + * @interface IOperationGroup + * @property {Array.|null} [operations] OperationGroup operations + */ + + /** + * Constructs a new OperationGroup. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents an OperationGroup. + * @implements IOperationGroup + * @constructor + * @param {google.cloud.recommender.v1.IOperationGroup=} [properties] Properties to set + */ + function OperationGroup(properties) { + this.operations = []; + 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]]; + } + + /** + * OperationGroup operations. + * @member {Array.} operations + * @memberof google.cloud.recommender.v1.OperationGroup + * @instance + */ + OperationGroup.prototype.operations = $util.emptyArray; + + /** + * Creates a new OperationGroup instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.OperationGroup + * @static + * @param {google.cloud.recommender.v1.IOperationGroup=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.OperationGroup} OperationGroup instance + */ + OperationGroup.create = function create(properties) { + return new OperationGroup(properties); + }; + + /** + * Encodes the specified OperationGroup message. Does not implicitly {@link google.cloud.recommender.v1.OperationGroup.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.OperationGroup + * @static + * @param {google.cloud.recommender.v1.IOperationGroup} message OperationGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationGroup.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operations != null && message.operations.length) + for (var i = 0; i < message.operations.length; ++i) + $root.google.cloud.recommender.v1.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OperationGroup message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.OperationGroup.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.OperationGroup + * @static + * @param {google.cloud.recommender.v1.IOperationGroup} message OperationGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationGroup.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OperationGroup message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.OperationGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.OperationGroup} OperationGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationGroup.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.OperationGroup(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.operations && message.operations.length)) + message.operations = []; + message.operations.push($root.google.cloud.recommender.v1.Operation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OperationGroup message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.OperationGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.OperationGroup} OperationGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationGroup.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OperationGroup message. + * @function verify + * @memberof google.cloud.recommender.v1.OperationGroup + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OperationGroup.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operations != null && message.hasOwnProperty("operations")) { + if (!Array.isArray(message.operations)) + return "operations: array expected"; + for (var i = 0; i < message.operations.length; ++i) { + var error = $root.google.cloud.recommender.v1.Operation.verify(message.operations[i]); + if (error) + return "operations." + error; + } + } + return null; + }; + + /** + * Creates an OperationGroup message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.OperationGroup + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.OperationGroup} OperationGroup + */ + OperationGroup.fromObject = function fromObject(object) { if (object instanceof $root.google.cloud.recommender.v1.OperationGroup) return object; - var message = new $root.google.cloud.recommender.v1.OperationGroup(); - if (object.operations) { - if (!Array.isArray(object.operations)) - throw TypeError(".google.cloud.recommender.v1.OperationGroup.operations: array expected"); - message.operations = []; - for (var i = 0; i < object.operations.length; ++i) { - if (typeof object.operations[i] !== "object") - throw TypeError(".google.cloud.recommender.v1.OperationGroup.operations: object expected"); - message.operations[i] = $root.google.cloud.recommender.v1.Operation.fromObject(object.operations[i]); + var message = new $root.google.cloud.recommender.v1.OperationGroup(); + if (object.operations) { + if (!Array.isArray(object.operations)) + throw TypeError(".google.cloud.recommender.v1.OperationGroup.operations: array expected"); + message.operations = []; + for (var i = 0; i < object.operations.length; ++i) { + if (typeof object.operations[i] !== "object") + throw TypeError(".google.cloud.recommender.v1.OperationGroup.operations: object expected"); + message.operations[i] = $root.google.cloud.recommender.v1.Operation.fromObject(object.operations[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OperationGroup message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.OperationGroup + * @static + * @param {google.cloud.recommender.v1.OperationGroup} message OperationGroup + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OperationGroup.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.operations = []; + if (message.operations && message.operations.length) { + object.operations = []; + for (var j = 0; j < message.operations.length; ++j) + object.operations[j] = $root.google.cloud.recommender.v1.Operation.toObject(message.operations[j], options); + } + return object; + }; + + /** + * Converts this OperationGroup to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.OperationGroup + * @instance + * @returns {Object.} JSON object + */ + OperationGroup.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OperationGroup + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.OperationGroup + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OperationGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.OperationGroup"; + }; + + return OperationGroup; + })(); + + v1.Operation = (function() { + + /** + * Properties of an Operation. + * @memberof google.cloud.recommender.v1 + * @interface IOperation + * @property {string|null} [action] Operation action + * @property {string|null} [resourceType] Operation resourceType + * @property {string|null} [resource] Operation resource + * @property {string|null} [path] Operation path + * @property {string|null} [sourceResource] Operation sourceResource + * @property {string|null} [sourcePath] Operation sourcePath + * @property {google.protobuf.IValue|null} [value] Operation value + * @property {google.cloud.recommender.v1.IValueMatcher|null} [valueMatcher] Operation valueMatcher + * @property {Object.|null} [pathFilters] Operation pathFilters + * @property {Object.|null} [pathValueMatchers] Operation pathValueMatchers + */ + + /** + * Constructs a new Operation. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents an Operation. + * @implements IOperation + * @constructor + * @param {google.cloud.recommender.v1.IOperation=} [properties] Properties to set + */ + function Operation(properties) { + this.pathFilters = {}; + this.pathValueMatchers = {}; + 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]]; + } + + /** + * Operation action. + * @member {string} action + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.action = ""; + + /** + * Operation resourceType. + * @member {string} resourceType + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.resourceType = ""; + + /** + * Operation resource. + * @member {string} resource + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.resource = ""; + + /** + * Operation path. + * @member {string} path + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.path = ""; + + /** + * Operation sourceResource. + * @member {string} sourceResource + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.sourceResource = ""; + + /** + * Operation sourcePath. + * @member {string} sourcePath + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.sourcePath = ""; + + /** + * Operation value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.value = null; + + /** + * Operation valueMatcher. + * @member {google.cloud.recommender.v1.IValueMatcher|null|undefined} valueMatcher + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.valueMatcher = null; + + /** + * Operation pathFilters. + * @member {Object.} pathFilters + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.pathFilters = $util.emptyObject; + + /** + * Operation pathValueMatchers. + * @member {Object.} pathValueMatchers + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Operation.prototype.pathValueMatchers = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Operation pathValue. + * @member {"value"|"valueMatcher"|undefined} pathValue + * @memberof google.cloud.recommender.v1.Operation + * @instance + */ + Object.defineProperty(Operation.prototype, "pathValue", { + get: $util.oneOfGetter($oneOfFields = ["value", "valueMatcher"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Operation instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.Operation + * @static + * @param {google.cloud.recommender.v1.IOperation=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.Operation} Operation instance + */ + Operation.create = function create(properties) { + return new Operation(properties); + }; + + /** + * Encodes the specified Operation message. Does not implicitly {@link google.cloud.recommender.v1.Operation.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.Operation + * @static + * @param {google.cloud.recommender.v1.IOperation} message Operation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.action); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.resourceType); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.path); + if (message.sourceResource != null && Object.hasOwnProperty.call(message, "sourceResource")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sourceResource); + if (message.sourcePath != null && Object.hasOwnProperty.call(message, "sourcePath")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.sourcePath); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.pathFilters != null && Object.hasOwnProperty.call(message, "pathFilters")) + for (var keys = Object.keys(message.pathFilters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.pathFilters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.valueMatcher != null && Object.hasOwnProperty.call(message, "valueMatcher")) + $root.google.cloud.recommender.v1.ValueMatcher.encode(message.valueMatcher, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.pathValueMatchers != null && Object.hasOwnProperty.call(message, "pathValueMatchers")) + for (var keys = Object.keys(message.pathValueMatchers), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.recommender.v1.ValueMatcher.encode(message.pathValueMatchers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.Operation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.Operation + * @static + * @param {google.cloud.recommender.v1.IOperation} message Operation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Operation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.Operation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.Operation} Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.Operation(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.action = reader.string(); + break; + } + case 2: { + message.resourceType = reader.string(); + break; + } + case 3: { + message.resource = reader.string(); + break; + } + case 4: { + message.path = reader.string(); + break; + } + case 5: { + message.sourceResource = reader.string(); + break; + } + case 6: { + message.sourcePath = reader.string(); + break; + } + case 7: { + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 10: { + message.valueMatcher = $root.google.cloud.recommender.v1.ValueMatcher.decode(reader, reader.uint32()); + break; + } + case 8: { + if (message.pathFilters === $util.emptyObject) + message.pathFilters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.pathFilters[key] = value; + break; + } + case 11: { + if (message.pathValueMatchers === $util.emptyObject) + message.pathValueMatchers = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.recommender.v1.ValueMatcher.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.pathValueMatchers[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Operation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.Operation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.Operation} Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Operation message. + * @function verify + * @memberof google.cloud.recommender.v1.Operation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Operation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.action != null && message.hasOwnProperty("action")) + if (!$util.isString(message.action)) + return "action: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + if (!$util.isString(message.resourceType)) + return "resourceType: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.sourceResource != null && message.hasOwnProperty("sourceResource")) + if (!$util.isString(message.sourceResource)) + return "sourceResource: string expected"; + if (message.sourcePath != null && message.hasOwnProperty("sourcePath")) + if (!$util.isString(message.sourcePath)) + return "sourcePath: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + properties.pathValue = 1; + { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; + } + } + if (message.valueMatcher != null && message.hasOwnProperty("valueMatcher")) { + if (properties.pathValue === 1) + return "pathValue: multiple values"; + properties.pathValue = 1; + { + var error = $root.google.cloud.recommender.v1.ValueMatcher.verify(message.valueMatcher); + if (error) + return "valueMatcher." + error; + } + } + if (message.pathFilters != null && message.hasOwnProperty("pathFilters")) { + if (!$util.isObject(message.pathFilters)) + return "pathFilters: object expected"; + var key = Object.keys(message.pathFilters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.pathFilters[key[i]]); + if (error) + return "pathFilters." + error; + } + } + if (message.pathValueMatchers != null && message.hasOwnProperty("pathValueMatchers")) { + if (!$util.isObject(message.pathValueMatchers)) + return "pathValueMatchers: object expected"; + var key = Object.keys(message.pathValueMatchers); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.recommender.v1.ValueMatcher.verify(message.pathValueMatchers[key[i]]); + if (error) + return "pathValueMatchers." + error; + } + } + return null; + }; + + /** + * Creates an Operation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.Operation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.Operation} Operation + */ + Operation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.Operation) + return object; + var message = new $root.google.cloud.recommender.v1.Operation(); + if (object.action != null) + message.action = String(object.action); + if (object.resourceType != null) + message.resourceType = String(object.resourceType); + if (object.resource != null) + message.resource = String(object.resource); + if (object.path != null) + message.path = String(object.path); + if (object.sourceResource != null) + message.sourceResource = String(object.sourceResource); + if (object.sourcePath != null) + message.sourcePath = String(object.sourcePath); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.recommender.v1.Operation.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); + } + if (object.valueMatcher != null) { + if (typeof object.valueMatcher !== "object") + throw TypeError(".google.cloud.recommender.v1.Operation.valueMatcher: object expected"); + message.valueMatcher = $root.google.cloud.recommender.v1.ValueMatcher.fromObject(object.valueMatcher); + } + if (object.pathFilters) { + if (typeof object.pathFilters !== "object") + throw TypeError(".google.cloud.recommender.v1.Operation.pathFilters: object expected"); + message.pathFilters = {}; + for (var keys = Object.keys(object.pathFilters), i = 0; i < keys.length; ++i) { + if (typeof object.pathFilters[keys[i]] !== "object") + throw TypeError(".google.cloud.recommender.v1.Operation.pathFilters: object expected"); + message.pathFilters[keys[i]] = $root.google.protobuf.Value.fromObject(object.pathFilters[keys[i]]); + } + } + if (object.pathValueMatchers) { + if (typeof object.pathValueMatchers !== "object") + throw TypeError(".google.cloud.recommender.v1.Operation.pathValueMatchers: object expected"); + message.pathValueMatchers = {}; + for (var keys = Object.keys(object.pathValueMatchers), i = 0; i < keys.length; ++i) { + if (typeof object.pathValueMatchers[keys[i]] !== "object") + throw TypeError(".google.cloud.recommender.v1.Operation.pathValueMatchers: object expected"); + message.pathValueMatchers[keys[i]] = $root.google.cloud.recommender.v1.ValueMatcher.fromObject(object.pathValueMatchers[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from an Operation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.Operation + * @static + * @param {google.cloud.recommender.v1.Operation} message Operation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Operation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.pathFilters = {}; + object.pathValueMatchers = {}; + } + if (options.defaults) { + object.action = ""; + object.resourceType = ""; + object.resource = ""; + object.path = ""; + object.sourceResource = ""; + object.sourcePath = ""; + } + if (message.action != null && message.hasOwnProperty("action")) + object.action = message.action; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = message.resourceType; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.sourceResource != null && message.hasOwnProperty("sourceResource")) + object.sourceResource = message.sourceResource; + if (message.sourcePath != null && message.hasOwnProperty("sourcePath")) + object.sourcePath = message.sourcePath; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = $root.google.protobuf.Value.toObject(message.value, options); + if (options.oneofs) + object.pathValue = "value"; + } + var keys2; + if (message.pathFilters && (keys2 = Object.keys(message.pathFilters)).length) { + object.pathFilters = {}; + for (var j = 0; j < keys2.length; ++j) + object.pathFilters[keys2[j]] = $root.google.protobuf.Value.toObject(message.pathFilters[keys2[j]], options); + } + if (message.valueMatcher != null && message.hasOwnProperty("valueMatcher")) { + object.valueMatcher = $root.google.cloud.recommender.v1.ValueMatcher.toObject(message.valueMatcher, options); + if (options.oneofs) + object.pathValue = "valueMatcher"; + } + if (message.pathValueMatchers && (keys2 = Object.keys(message.pathValueMatchers)).length) { + object.pathValueMatchers = {}; + for (var j = 0; j < keys2.length; ++j) + object.pathValueMatchers[keys2[j]] = $root.google.cloud.recommender.v1.ValueMatcher.toObject(message.pathValueMatchers[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Operation to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.Operation + * @instance + * @returns {Object.} JSON object + */ + Operation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Operation + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.Operation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Operation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.Operation"; + }; + + return Operation; + })(); + + v1.ValueMatcher = (function() { + + /** + * Properties of a ValueMatcher. + * @memberof google.cloud.recommender.v1 + * @interface IValueMatcher + * @property {string|null} [matchesPattern] ValueMatcher matchesPattern + */ + + /** + * Constructs a new ValueMatcher. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a ValueMatcher. + * @implements IValueMatcher + * @constructor + * @param {google.cloud.recommender.v1.IValueMatcher=} [properties] Properties to set + */ + function ValueMatcher(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]]; + } + + /** + * ValueMatcher matchesPattern. + * @member {string|null|undefined} matchesPattern + * @memberof google.cloud.recommender.v1.ValueMatcher + * @instance + */ + ValueMatcher.prototype.matchesPattern = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ValueMatcher matchVariant. + * @member {"matchesPattern"|undefined} matchVariant + * @memberof google.cloud.recommender.v1.ValueMatcher + * @instance + */ + Object.defineProperty(ValueMatcher.prototype, "matchVariant", { + get: $util.oneOfGetter($oneOfFields = ["matchesPattern"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ValueMatcher instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.ValueMatcher + * @static + * @param {google.cloud.recommender.v1.IValueMatcher=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.ValueMatcher} ValueMatcher instance + */ + ValueMatcher.create = function create(properties) { + return new ValueMatcher(properties); + }; + + /** + * Encodes the specified ValueMatcher message. Does not implicitly {@link google.cloud.recommender.v1.ValueMatcher.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.ValueMatcher + * @static + * @param {google.cloud.recommender.v1.IValueMatcher} message ValueMatcher message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ValueMatcher.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchesPattern != null && Object.hasOwnProperty.call(message, "matchesPattern")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchesPattern); + return writer; + }; + + /** + * Encodes the specified ValueMatcher message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ValueMatcher.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.ValueMatcher + * @static + * @param {google.cloud.recommender.v1.IValueMatcher} message ValueMatcher message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ValueMatcher.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ValueMatcher message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.ValueMatcher + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.ValueMatcher} ValueMatcher + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ValueMatcher.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ValueMatcher(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.matchesPattern = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ValueMatcher message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.ValueMatcher + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.ValueMatcher} ValueMatcher + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ValueMatcher.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ValueMatcher message. + * @function verify + * @memberof google.cloud.recommender.v1.ValueMatcher + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ValueMatcher.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.matchesPattern != null && message.hasOwnProperty("matchesPattern")) { + properties.matchVariant = 1; + if (!$util.isString(message.matchesPattern)) + return "matchesPattern: string expected"; + } + return null; + }; + + /** + * Creates a ValueMatcher message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.ValueMatcher + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.ValueMatcher} ValueMatcher + */ + ValueMatcher.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.ValueMatcher) + return object; + var message = new $root.google.cloud.recommender.v1.ValueMatcher(); + if (object.matchesPattern != null) + message.matchesPattern = String(object.matchesPattern); + return message; + }; + + /** + * Creates a plain object from a ValueMatcher message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.ValueMatcher + * @static + * @param {google.cloud.recommender.v1.ValueMatcher} message ValueMatcher + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ValueMatcher.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.matchesPattern != null && message.hasOwnProperty("matchesPattern")) { + object.matchesPattern = message.matchesPattern; + if (options.oneofs) + object.matchVariant = "matchesPattern"; + } + return object; + }; + + /** + * Converts this ValueMatcher to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.ValueMatcher + * @instance + * @returns {Object.} JSON object + */ + ValueMatcher.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ValueMatcher + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.ValueMatcher + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ValueMatcher.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.ValueMatcher"; + }; + + return ValueMatcher; + })(); + + v1.CostProjection = (function() { + + /** + * Properties of a CostProjection. + * @memberof google.cloud.recommender.v1 + * @interface ICostProjection + * @property {google.type.IMoney|null} [cost] CostProjection cost + * @property {google.protobuf.IDuration|null} [duration] CostProjection duration + */ + + /** + * Constructs a new CostProjection. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a CostProjection. + * @implements ICostProjection + * @constructor + * @param {google.cloud.recommender.v1.ICostProjection=} [properties] Properties to set + */ + function CostProjection(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]]; + } + + /** + * CostProjection cost. + * @member {google.type.IMoney|null|undefined} cost + * @memberof google.cloud.recommender.v1.CostProjection + * @instance + */ + CostProjection.prototype.cost = null; + + /** + * CostProjection duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof google.cloud.recommender.v1.CostProjection + * @instance + */ + CostProjection.prototype.duration = null; + + /** + * Creates a new CostProjection instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.CostProjection + * @static + * @param {google.cloud.recommender.v1.ICostProjection=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.CostProjection} CostProjection instance + */ + CostProjection.create = function create(properties) { + return new CostProjection(properties); + }; + + /** + * Encodes the specified CostProjection message. Does not implicitly {@link google.cloud.recommender.v1.CostProjection.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.CostProjection + * @static + * @param {google.cloud.recommender.v1.ICostProjection} message CostProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CostProjection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) + $root.google.type.Money.encode(message.cost, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CostProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.CostProjection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.CostProjection + * @static + * @param {google.cloud.recommender.v1.ICostProjection} message CostProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CostProjection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CostProjection message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.CostProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.CostProjection} CostProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CostProjection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.CostProjection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cost = $root.google.type.Money.decode(reader, reader.uint32()); + break; + } + case 2: { + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CostProjection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.CostProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.CostProjection} CostProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CostProjection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CostProjection message. + * @function verify + * @memberof google.cloud.recommender.v1.CostProjection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CostProjection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cost != null && message.hasOwnProperty("cost")) { + var error = $root.google.type.Money.verify(message.cost); + if (error) + return "cost." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + return null; + }; + + /** + * Creates a CostProjection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.CostProjection + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.CostProjection} CostProjection + */ + CostProjection.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.CostProjection) + return object; + var message = new $root.google.cloud.recommender.v1.CostProjection(); + if (object.cost != null) { + if (typeof object.cost !== "object") + throw TypeError(".google.cloud.recommender.v1.CostProjection.cost: object expected"); + message.cost = $root.google.type.Money.fromObject(object.cost); + } + if (object.duration != null) { + if (typeof object.duration !== "object") + throw TypeError(".google.cloud.recommender.v1.CostProjection.duration: object expected"); + message.duration = $root.google.protobuf.Duration.fromObject(object.duration); + } + return message; + }; + + /** + * Creates a plain object from a CostProjection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.CostProjection + * @static + * @param {google.cloud.recommender.v1.CostProjection} message CostProjection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CostProjection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cost = null; + object.duration = null; + } + if (message.cost != null && message.hasOwnProperty("cost")) + object.cost = $root.google.type.Money.toObject(message.cost, options); + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = $root.google.protobuf.Duration.toObject(message.duration, options); + return object; + }; + + /** + * Converts this CostProjection to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.CostProjection + * @instance + * @returns {Object.} JSON object + */ + CostProjection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CostProjection + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.CostProjection + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CostProjection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.CostProjection"; + }; + + return CostProjection; + })(); + + v1.SecurityProjection = (function() { + + /** + * Properties of a SecurityProjection. + * @memberof google.cloud.recommender.v1 + * @interface ISecurityProjection + * @property {google.protobuf.IStruct|null} [details] SecurityProjection details + */ + + /** + * Constructs a new SecurityProjection. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a SecurityProjection. + * @implements ISecurityProjection + * @constructor + * @param {google.cloud.recommender.v1.ISecurityProjection=} [properties] Properties to set + */ + function SecurityProjection(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]]; + } + + /** + * SecurityProjection details. + * @member {google.protobuf.IStruct|null|undefined} details + * @memberof google.cloud.recommender.v1.SecurityProjection + * @instance + */ + SecurityProjection.prototype.details = null; + + /** + * Creates a new SecurityProjection instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.SecurityProjection + * @static + * @param {google.cloud.recommender.v1.ISecurityProjection=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.SecurityProjection} SecurityProjection instance + */ + SecurityProjection.create = function create(properties) { + return new SecurityProjection(properties); + }; + + /** + * Encodes the specified SecurityProjection message. Does not implicitly {@link google.cloud.recommender.v1.SecurityProjection.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.SecurityProjection + * @static + * @param {google.cloud.recommender.v1.ISecurityProjection} message SecurityProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityProjection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.details != null && Object.hasOwnProperty.call(message, "details")) + $root.google.protobuf.Struct.encode(message.details, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SecurityProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.SecurityProjection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.SecurityProjection + * @static + * @param {google.cloud.recommender.v1.ISecurityProjection} message SecurityProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityProjection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityProjection message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.SecurityProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.SecurityProjection} SecurityProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityProjection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.SecurityProjection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.details = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityProjection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.SecurityProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.SecurityProjection} SecurityProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityProjection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityProjection message. + * @function verify + * @memberof google.cloud.recommender.v1.SecurityProjection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityProjection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.details != null && message.hasOwnProperty("details")) { + var error = $root.google.protobuf.Struct.verify(message.details); + if (error) + return "details." + error; + } + return null; + }; + + /** + * Creates a SecurityProjection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.SecurityProjection + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.SecurityProjection} SecurityProjection + */ + SecurityProjection.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.SecurityProjection) + return object; + var message = new $root.google.cloud.recommender.v1.SecurityProjection(); + if (object.details != null) { + if (typeof object.details !== "object") + throw TypeError(".google.cloud.recommender.v1.SecurityProjection.details: object expected"); + message.details = $root.google.protobuf.Struct.fromObject(object.details); + } + return message; + }; + + /** + * Creates a plain object from a SecurityProjection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.SecurityProjection + * @static + * @param {google.cloud.recommender.v1.SecurityProjection} message SecurityProjection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityProjection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.details = null; + if (message.details != null && message.hasOwnProperty("details")) + object.details = $root.google.protobuf.Struct.toObject(message.details, options); + return object; + }; + + /** + * Converts this SecurityProjection to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.SecurityProjection + * @instance + * @returns {Object.} JSON object + */ + SecurityProjection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityProjection + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.SecurityProjection + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityProjection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.SecurityProjection"; + }; + + return SecurityProjection; + })(); + + v1.Impact = (function() { + + /** + * Properties of an Impact. + * @memberof google.cloud.recommender.v1 + * @interface IImpact + * @property {google.cloud.recommender.v1.Impact.Category|null} [category] Impact category + * @property {google.cloud.recommender.v1.ICostProjection|null} [costProjection] Impact costProjection + * @property {google.cloud.recommender.v1.ISecurityProjection|null} [securityProjection] Impact securityProjection + */ + + /** + * Constructs a new Impact. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents an Impact. + * @implements IImpact + * @constructor + * @param {google.cloud.recommender.v1.IImpact=} [properties] Properties to set + */ + function Impact(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]]; + } + + /** + * Impact category. + * @member {google.cloud.recommender.v1.Impact.Category} category + * @memberof google.cloud.recommender.v1.Impact + * @instance + */ + Impact.prototype.category = 0; + + /** + * Impact costProjection. + * @member {google.cloud.recommender.v1.ICostProjection|null|undefined} costProjection + * @memberof google.cloud.recommender.v1.Impact + * @instance + */ + Impact.prototype.costProjection = null; + + /** + * Impact securityProjection. + * @member {google.cloud.recommender.v1.ISecurityProjection|null|undefined} securityProjection + * @memberof google.cloud.recommender.v1.Impact + * @instance + */ + Impact.prototype.securityProjection = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Impact projection. + * @member {"costProjection"|"securityProjection"|undefined} projection + * @memberof google.cloud.recommender.v1.Impact + * @instance + */ + Object.defineProperty(Impact.prototype, "projection", { + get: $util.oneOfGetter($oneOfFields = ["costProjection", "securityProjection"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Impact instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.Impact + * @static + * @param {google.cloud.recommender.v1.IImpact=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.Impact} Impact instance + */ + Impact.create = function create(properties) { + return new Impact(properties); + }; + + /** + * Encodes the specified Impact message. Does not implicitly {@link google.cloud.recommender.v1.Impact.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.Impact + * @static + * @param {google.cloud.recommender.v1.IImpact} message Impact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Impact.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.category != null && Object.hasOwnProperty.call(message, "category")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.category); + if (message.costProjection != null && Object.hasOwnProperty.call(message, "costProjection")) + $root.google.cloud.recommender.v1.CostProjection.encode(message.costProjection, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); + if (message.securityProjection != null && Object.hasOwnProperty.call(message, "securityProjection")) + $root.google.cloud.recommender.v1.SecurityProjection.encode(message.securityProjection, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Impact message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.Impact.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.Impact + * @static + * @param {google.cloud.recommender.v1.IImpact} message Impact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Impact.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Impact message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.Impact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.Impact} Impact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Impact.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.Impact(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.category = reader.int32(); + break; + } + case 100: { + message.costProjection = $root.google.cloud.recommender.v1.CostProjection.decode(reader, reader.uint32()); + break; + } + case 101: { + message.securityProjection = $root.google.cloud.recommender.v1.SecurityProjection.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Impact message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.Impact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.Impact} Impact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Impact.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Impact message. + * @function verify + * @memberof google.cloud.recommender.v1.Impact + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Impact.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.category != null && message.hasOwnProperty("category")) + switch (message.category) { + default: + return "category: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.costProjection != null && message.hasOwnProperty("costProjection")) { + properties.projection = 1; + { + var error = $root.google.cloud.recommender.v1.CostProjection.verify(message.costProjection); + if (error) + return "costProjection." + error; + } + } + if (message.securityProjection != null && message.hasOwnProperty("securityProjection")) { + if (properties.projection === 1) + return "projection: multiple values"; + properties.projection = 1; + { + var error = $root.google.cloud.recommender.v1.SecurityProjection.verify(message.securityProjection); + if (error) + return "securityProjection." + error; + } + } + return null; + }; + + /** + * Creates an Impact message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.Impact + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.Impact} Impact + */ + Impact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.Impact) + return object; + var message = new $root.google.cloud.recommender.v1.Impact(); + switch (object.category) { + default: + if (typeof object.category === "number") { + message.category = object.category; + break; + } + break; + case "CATEGORY_UNSPECIFIED": + case 0: + message.category = 0; + break; + case "COST": + case 1: + message.category = 1; + break; + case "SECURITY": + case 2: + message.category = 2; + break; + case "PERFORMANCE": + case 3: + message.category = 3; + break; + case "MANAGEABILITY": + case 4: + message.category = 4; + break; + } + if (object.costProjection != null) { + if (typeof object.costProjection !== "object") + throw TypeError(".google.cloud.recommender.v1.Impact.costProjection: object expected"); + message.costProjection = $root.google.cloud.recommender.v1.CostProjection.fromObject(object.costProjection); + } + if (object.securityProjection != null) { + if (typeof object.securityProjection !== "object") + throw TypeError(".google.cloud.recommender.v1.Impact.securityProjection: object expected"); + message.securityProjection = $root.google.cloud.recommender.v1.SecurityProjection.fromObject(object.securityProjection); + } + return message; + }; + + /** + * Creates a plain object from an Impact message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.Impact + * @static + * @param {google.cloud.recommender.v1.Impact} message Impact + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Impact.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.category = options.enums === String ? "CATEGORY_UNSPECIFIED" : 0; + if (message.category != null && message.hasOwnProperty("category")) + object.category = options.enums === String ? $root.google.cloud.recommender.v1.Impact.Category[message.category] === undefined ? message.category : $root.google.cloud.recommender.v1.Impact.Category[message.category] : message.category; + if (message.costProjection != null && message.hasOwnProperty("costProjection")) { + object.costProjection = $root.google.cloud.recommender.v1.CostProjection.toObject(message.costProjection, options); + if (options.oneofs) + object.projection = "costProjection"; + } + if (message.securityProjection != null && message.hasOwnProperty("securityProjection")) { + object.securityProjection = $root.google.cloud.recommender.v1.SecurityProjection.toObject(message.securityProjection, options); + if (options.oneofs) + object.projection = "securityProjection"; + } + return object; + }; + + /** + * Converts this Impact to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.Impact + * @instance + * @returns {Object.} JSON object + */ + Impact.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Impact + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.Impact + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Impact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.Impact"; + }; + + /** + * Category enum. + * @name google.cloud.recommender.v1.Impact.Category + * @enum {number} + * @property {number} CATEGORY_UNSPECIFIED=0 CATEGORY_UNSPECIFIED value + * @property {number} COST=1 COST value + * @property {number} SECURITY=2 SECURITY value + * @property {number} PERFORMANCE=3 PERFORMANCE value + * @property {number} MANAGEABILITY=4 MANAGEABILITY value + */ + Impact.Category = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "COST"] = 1; + values[valuesById[2] = "SECURITY"] = 2; + values[valuesById[3] = "PERFORMANCE"] = 3; + values[valuesById[4] = "MANAGEABILITY"] = 4; + return values; + })(); + + return Impact; + })(); + + v1.RecommendationStateInfo = (function() { + + /** + * Properties of a RecommendationStateInfo. + * @memberof google.cloud.recommender.v1 + * @interface IRecommendationStateInfo + * @property {google.cloud.recommender.v1.RecommendationStateInfo.State|null} [state] RecommendationStateInfo state + * @property {Object.|null} [stateMetadata] RecommendationStateInfo stateMetadata + */ + + /** + * Constructs a new RecommendationStateInfo. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a RecommendationStateInfo. + * @implements IRecommendationStateInfo + * @constructor + * @param {google.cloud.recommender.v1.IRecommendationStateInfo=} [properties] Properties to set + */ + function RecommendationStateInfo(properties) { + this.stateMetadata = {}; + 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]]; + } + + /** + * RecommendationStateInfo state. + * @member {google.cloud.recommender.v1.RecommendationStateInfo.State} state + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @instance + */ + RecommendationStateInfo.prototype.state = 0; + + /** + * RecommendationStateInfo stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @instance + */ + RecommendationStateInfo.prototype.stateMetadata = $util.emptyObject; + + /** + * Creates a new RecommendationStateInfo instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @static + * @param {google.cloud.recommender.v1.IRecommendationStateInfo=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.RecommendationStateInfo} RecommendationStateInfo instance + */ + RecommendationStateInfo.create = function create(properties) { + return new RecommendationStateInfo(properties); + }; + + /** + * Encodes the specified RecommendationStateInfo message. Does not implicitly {@link google.cloud.recommender.v1.RecommendationStateInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @static + * @param {google.cloud.recommender.v1.IRecommendationStateInfo} message RecommendationStateInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationStateInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified RecommendationStateInfo message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.RecommendationStateInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @static + * @param {google.cloud.recommender.v1.IRecommendationStateInfo} message RecommendationStateInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationStateInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecommendationStateInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.RecommendationStateInfo} RecommendationStateInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationStateInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.RecommendationStateInfo(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.state = reader.int32(); + break; + } + case 2: { + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecommendationStateInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.RecommendationStateInfo} RecommendationStateInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationStateInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecommendationStateInfo message. + * @function verify + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecommendationStateInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 6: + case 3: + case 4: + case 5: + break; + } + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a RecommendationStateInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.RecommendationStateInfo} RecommendationStateInfo + */ + RecommendationStateInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.RecommendationStateInfo) + return object; + var message = new $root.google.cloud.recommender.v1.RecommendationStateInfo(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CLAIMED": + case 6: + message.state = 6; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "FAILED": + case 4: + message.state = 4; + break; + case "DISMISSED": + case 5: + message.state = 5; + break; + } + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1.RecommendationStateInfo.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a RecommendationStateInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @static + * @param {google.cloud.recommender.v1.RecommendationStateInfo} message RecommendationStateInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecommendationStateInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.stateMetadata = {}; + if (options.defaults) + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.recommender.v1.RecommendationStateInfo.State[message.state] === undefined ? message.state : $root.google.cloud.recommender.v1.RecommendationStateInfo.State[message.state] : message.state; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + } + return object; + }; + + /** + * Converts this RecommendationStateInfo to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @instance + * @returns {Object.} JSON object + */ + RecommendationStateInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecommendationStateInfo + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecommendationStateInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.RecommendationStateInfo"; + }; + + /** + * State enum. + * @name google.cloud.recommender.v1.RecommendationStateInfo.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CLAIMED=6 CLAIMED value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} FAILED=4 FAILED value + * @property {number} DISMISSED=5 DISMISSED value + */ + RecommendationStateInfo.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[6] = "CLAIMED"] = 6; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "FAILED"] = 4; + values[valuesById[5] = "DISMISSED"] = 5; + return values; + })(); + + return RecommendationStateInfo; + })(); + + v1.RecommenderConfig = (function() { + + /** + * Properties of a RecommenderConfig. + * @memberof google.cloud.recommender.v1 + * @interface IRecommenderConfig + * @property {string|null} [name] RecommenderConfig name + * @property {google.cloud.recommender.v1.IRecommenderGenerationConfig|null} [recommenderGenerationConfig] RecommenderConfig recommenderGenerationConfig + * @property {string|null} [etag] RecommenderConfig etag + * @property {google.protobuf.ITimestamp|null} [updateTime] RecommenderConfig updateTime + * @property {string|null} [revisionId] RecommenderConfig revisionId + * @property {Object.|null} [annotations] RecommenderConfig annotations + * @property {string|null} [displayName] RecommenderConfig displayName + */ + + /** + * Constructs a new RecommenderConfig. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a RecommenderConfig. + * @implements IRecommenderConfig + * @constructor + * @param {google.cloud.recommender.v1.IRecommenderConfig=} [properties] Properties to set + */ + function RecommenderConfig(properties) { + this.annotations = {}; + 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]]; + } + + /** + * RecommenderConfig name. + * @member {string} name + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @instance + */ + RecommenderConfig.prototype.name = ""; + + /** + * RecommenderConfig recommenderGenerationConfig. + * @member {google.cloud.recommender.v1.IRecommenderGenerationConfig|null|undefined} recommenderGenerationConfig + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @instance + */ + RecommenderConfig.prototype.recommenderGenerationConfig = null; + + /** + * RecommenderConfig etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @instance + */ + RecommenderConfig.prototype.etag = ""; + + /** + * RecommenderConfig updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @instance + */ + RecommenderConfig.prototype.updateTime = null; + + /** + * RecommenderConfig revisionId. + * @member {string} revisionId + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @instance + */ + RecommenderConfig.prototype.revisionId = ""; + + /** + * RecommenderConfig annotations. + * @member {Object.} annotations + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @instance + */ + RecommenderConfig.prototype.annotations = $util.emptyObject; + + /** + * RecommenderConfig displayName. + * @member {string} displayName + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @instance + */ + RecommenderConfig.prototype.displayName = ""; + + /** + * Creates a new RecommenderConfig instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @static + * @param {google.cloud.recommender.v1.IRecommenderConfig=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.RecommenderConfig} RecommenderConfig instance + */ + RecommenderConfig.create = function create(properties) { + return new RecommenderConfig(properties); + }; + + /** + * Encodes the specified RecommenderConfig message. Does not implicitly {@link google.cloud.recommender.v1.RecommenderConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @static + * @param {google.cloud.recommender.v1.IRecommenderConfig} message RecommenderConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommenderConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.recommenderGenerationConfig != null && Object.hasOwnProperty.call(message, "recommenderGenerationConfig")) + $root.google.cloud.recommender.v1.RecommenderGenerationConfig.encode(message.recommenderGenerationConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.revisionId != null && Object.hasOwnProperty.call(message, "revisionId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.revisionId); + if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations")) + for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified RecommenderConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.RecommenderConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @static + * @param {google.cloud.recommender.v1.IRecommenderConfig} message RecommenderConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommenderConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecommenderConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.RecommenderConfig} RecommenderConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommenderConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.RecommenderConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.recommenderGenerationConfig = $root.google.cloud.recommender.v1.RecommenderGenerationConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.etag = reader.string(); + break; + } + case 4: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.revisionId = reader.string(); + break; + } + case 6: { + if (message.annotations === $util.emptyObject) + message.annotations = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.annotations[key] = value; + break; + } + case 7: { + message.displayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecommenderConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.RecommenderConfig} RecommenderConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommenderConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecommenderConfig message. + * @function verify + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecommenderConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.recommenderGenerationConfig != null && message.hasOwnProperty("recommenderGenerationConfig")) { + var error = $root.google.cloud.recommender.v1.RecommenderGenerationConfig.verify(message.recommenderGenerationConfig); + if (error) + return "recommenderGenerationConfig." + error; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.revisionId != null && message.hasOwnProperty("revisionId")) + if (!$util.isString(message.revisionId)) + return "revisionId: string expected"; + if (message.annotations != null && message.hasOwnProperty("annotations")) { + if (!$util.isObject(message.annotations)) + return "annotations: object expected"; + var key = Object.keys(message.annotations); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.annotations[key[i]])) + return "annotations: string{k:string} expected"; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a RecommenderConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.RecommenderConfig} RecommenderConfig + */ + RecommenderConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.RecommenderConfig) + return object; + var message = new $root.google.cloud.recommender.v1.RecommenderConfig(); + if (object.name != null) + message.name = String(object.name); + if (object.recommenderGenerationConfig != null) { + if (typeof object.recommenderGenerationConfig !== "object") + throw TypeError(".google.cloud.recommender.v1.RecommenderConfig.recommenderGenerationConfig: object expected"); + message.recommenderGenerationConfig = $root.google.cloud.recommender.v1.RecommenderGenerationConfig.fromObject(object.recommenderGenerationConfig); + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.recommender.v1.RecommenderConfig.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.revisionId != null) + message.revisionId = String(object.revisionId); + if (object.annotations) { + if (typeof object.annotations !== "object") + throw TypeError(".google.cloud.recommender.v1.RecommenderConfig.annotations: object expected"); + message.annotations = {}; + for (var keys = Object.keys(object.annotations), i = 0; i < keys.length; ++i) + message.annotations[keys[i]] = String(object.annotations[keys[i]]); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a RecommenderConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @static + * @param {google.cloud.recommender.v1.RecommenderConfig} message RecommenderConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecommenderConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.annotations = {}; + if (options.defaults) { + object.name = ""; + object.recommenderGenerationConfig = null; + object.etag = ""; + object.updateTime = null; + object.revisionId = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.recommenderGenerationConfig != null && message.hasOwnProperty("recommenderGenerationConfig")) + object.recommenderGenerationConfig = $root.google.cloud.recommender.v1.RecommenderGenerationConfig.toObject(message.recommenderGenerationConfig, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.revisionId != null && message.hasOwnProperty("revisionId")) + object.revisionId = message.revisionId; + var keys2; + if (message.annotations && (keys2 = Object.keys(message.annotations)).length) { + object.annotations = {}; + for (var j = 0; j < keys2.length; ++j) + object.annotations[keys2[j]] = message.annotations[keys2[j]]; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this RecommenderConfig to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @instance + * @returns {Object.} JSON object + */ + RecommenderConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecommenderConfig + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.RecommenderConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecommenderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.RecommenderConfig"; + }; + + return RecommenderConfig; + })(); + + v1.RecommenderGenerationConfig = (function() { + + /** + * Properties of a RecommenderGenerationConfig. + * @memberof google.cloud.recommender.v1 + * @interface IRecommenderGenerationConfig + * @property {google.protobuf.IStruct|null} [params] RecommenderGenerationConfig params + */ + + /** + * Constructs a new RecommenderGenerationConfig. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a RecommenderGenerationConfig. + * @implements IRecommenderGenerationConfig + * @constructor + * @param {google.cloud.recommender.v1.IRecommenderGenerationConfig=} [properties] Properties to set + */ + function RecommenderGenerationConfig(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]]; + } + + /** + * RecommenderGenerationConfig params. + * @member {google.protobuf.IStruct|null|undefined} params + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @instance + */ + RecommenderGenerationConfig.prototype.params = null; + + /** + * Creates a new RecommenderGenerationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @static + * @param {google.cloud.recommender.v1.IRecommenderGenerationConfig=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.RecommenderGenerationConfig} RecommenderGenerationConfig instance + */ + RecommenderGenerationConfig.create = function create(properties) { + return new RecommenderGenerationConfig(properties); + }; + + /** + * Encodes the specified RecommenderGenerationConfig message. Does not implicitly {@link google.cloud.recommender.v1.RecommenderGenerationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @static + * @param {google.cloud.recommender.v1.IRecommenderGenerationConfig} message RecommenderGenerationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommenderGenerationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.protobuf.Struct.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RecommenderGenerationConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.RecommenderGenerationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @static + * @param {google.cloud.recommender.v1.IRecommenderGenerationConfig} message RecommenderGenerationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommenderGenerationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecommenderGenerationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.RecommenderGenerationConfig} RecommenderGenerationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommenderGenerationConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.RecommenderGenerationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.params = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecommenderGenerationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.RecommenderGenerationConfig} RecommenderGenerationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommenderGenerationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecommenderGenerationConfig message. + * @function verify + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecommenderGenerationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.google.protobuf.Struct.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; + + /** + * Creates a RecommenderGenerationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.RecommenderGenerationConfig} RecommenderGenerationConfig + */ + RecommenderGenerationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.RecommenderGenerationConfig) + return object; + var message = new $root.google.cloud.recommender.v1.RecommenderGenerationConfig(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.recommender.v1.RecommenderGenerationConfig.params: object expected"); + message.params = $root.google.protobuf.Struct.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from a RecommenderGenerationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @static + * @param {google.cloud.recommender.v1.RecommenderGenerationConfig} message RecommenderGenerationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecommenderGenerationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.google.protobuf.Struct.toObject(message.params, options); + return object; + }; + + /** + * Converts this RecommenderGenerationConfig to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @instance + * @returns {Object.} JSON object + */ + RecommenderGenerationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecommenderGenerationConfig + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.RecommenderGenerationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecommenderGenerationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.RecommenderGenerationConfig"; + }; + + return RecommenderGenerationConfig; + })(); + + v1.Recommender = (function() { + + /** + * Constructs a new Recommender service. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a Recommender + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Recommender(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Recommender.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Recommender; + + /** + * Creates new Recommender service using the specified rpc implementation. + * @function create + * @memberof google.cloud.recommender.v1.Recommender + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Recommender} RPC service. Useful where requests and/or responses are streamed. + */ + Recommender.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|listInsights}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef ListInsightsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.ListInsightsResponse} [response] ListInsightsResponse + */ + + /** + * Calls ListInsights. + * @function listInsights + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IListInsightsRequest} request ListInsightsRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.ListInsightsCallback} callback Node-style callback called with the error, if any, and ListInsightsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.listInsights = function listInsights(request, callback) { + return this.rpcCall(listInsights, $root.google.cloud.recommender.v1.ListInsightsRequest, $root.google.cloud.recommender.v1.ListInsightsResponse, request, callback); + }, "name", { value: "ListInsights" }); + + /** + * Calls ListInsights. + * @function listInsights + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IListInsightsRequest} request ListInsightsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|getInsight}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef GetInsightCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.Insight} [response] Insight + */ + + /** + * Calls GetInsight. + * @function getInsight + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IGetInsightRequest} request GetInsightRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.GetInsightCallback} callback Node-style callback called with the error, if any, and Insight + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.getInsight = function getInsight(request, callback) { + return this.rpcCall(getInsight, $root.google.cloud.recommender.v1.GetInsightRequest, $root.google.cloud.recommender.v1.Insight, request, callback); + }, "name", { value: "GetInsight" }); + + /** + * Calls GetInsight. + * @function getInsight + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IGetInsightRequest} request GetInsightRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|markInsightAccepted}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef MarkInsightAcceptedCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.Insight} [response] Insight + */ + + /** + * Calls MarkInsightAccepted. + * @function markInsightAccepted + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest} request MarkInsightAcceptedRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.MarkInsightAcceptedCallback} callback Node-style callback called with the error, if any, and Insight + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.markInsightAccepted = function markInsightAccepted(request, callback) { + return this.rpcCall(markInsightAccepted, $root.google.cloud.recommender.v1.MarkInsightAcceptedRequest, $root.google.cloud.recommender.v1.Insight, request, callback); + }, "name", { value: "MarkInsightAccepted" }); + + /** + * Calls MarkInsightAccepted. + * @function markInsightAccepted + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest} request MarkInsightAcceptedRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|listRecommendations}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef ListRecommendationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.ListRecommendationsResponse} [response] ListRecommendationsResponse + */ + + /** + * Calls ListRecommendations. + * @function listRecommendations + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IListRecommendationsRequest} request ListRecommendationsRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.ListRecommendationsCallback} callback Node-style callback called with the error, if any, and ListRecommendationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.listRecommendations = function listRecommendations(request, callback) { + return this.rpcCall(listRecommendations, $root.google.cloud.recommender.v1.ListRecommendationsRequest, $root.google.cloud.recommender.v1.ListRecommendationsResponse, request, callback); + }, "name", { value: "ListRecommendations" }); + + /** + * Calls ListRecommendations. + * @function listRecommendations + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IListRecommendationsRequest} request ListRecommendationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|getRecommendation}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef GetRecommendationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.Recommendation} [response] Recommendation + */ + + /** + * Calls GetRecommendation. + * @function getRecommendation + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IGetRecommendationRequest} request GetRecommendationRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.GetRecommendationCallback} callback Node-style callback called with the error, if any, and Recommendation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.getRecommendation = function getRecommendation(request, callback) { + return this.rpcCall(getRecommendation, $root.google.cloud.recommender.v1.GetRecommendationRequest, $root.google.cloud.recommender.v1.Recommendation, request, callback); + }, "name", { value: "GetRecommendation" }); + + /** + * Calls GetRecommendation. + * @function getRecommendation + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IGetRecommendationRequest} request GetRecommendationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|markRecommendationClaimed}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef MarkRecommendationClaimedCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.Recommendation} [response] Recommendation + */ + + /** + * Calls MarkRecommendationClaimed. + * @function markRecommendationClaimed + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest} request MarkRecommendationClaimedRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.MarkRecommendationClaimedCallback} callback Node-style callback called with the error, if any, and Recommendation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.markRecommendationClaimed = function markRecommendationClaimed(request, callback) { + return this.rpcCall(markRecommendationClaimed, $root.google.cloud.recommender.v1.MarkRecommendationClaimedRequest, $root.google.cloud.recommender.v1.Recommendation, request, callback); + }, "name", { value: "MarkRecommendationClaimed" }); + + /** + * Calls MarkRecommendationClaimed. + * @function markRecommendationClaimed + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest} request MarkRecommendationClaimedRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|markRecommendationSucceeded}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef MarkRecommendationSucceededCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.Recommendation} [response] Recommendation + */ + + /** + * Calls MarkRecommendationSucceeded. + * @function markRecommendationSucceeded + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest} request MarkRecommendationSucceededRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.MarkRecommendationSucceededCallback} callback Node-style callback called with the error, if any, and Recommendation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.markRecommendationSucceeded = function markRecommendationSucceeded(request, callback) { + return this.rpcCall(markRecommendationSucceeded, $root.google.cloud.recommender.v1.MarkRecommendationSucceededRequest, $root.google.cloud.recommender.v1.Recommendation, request, callback); + }, "name", { value: "MarkRecommendationSucceeded" }); + + /** + * Calls MarkRecommendationSucceeded. + * @function markRecommendationSucceeded + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest} request MarkRecommendationSucceededRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|markRecommendationFailed}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef MarkRecommendationFailedCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.Recommendation} [response] Recommendation + */ + + /** + * Calls MarkRecommendationFailed. + * @function markRecommendationFailed + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest} request MarkRecommendationFailedRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.MarkRecommendationFailedCallback} callback Node-style callback called with the error, if any, and Recommendation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.markRecommendationFailed = function markRecommendationFailed(request, callback) { + return this.rpcCall(markRecommendationFailed, $root.google.cloud.recommender.v1.MarkRecommendationFailedRequest, $root.google.cloud.recommender.v1.Recommendation, request, callback); + }, "name", { value: "MarkRecommendationFailed" }); + + /** + * Calls MarkRecommendationFailed. + * @function markRecommendationFailed + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest} request MarkRecommendationFailedRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|getRecommenderConfig}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef GetRecommenderConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.RecommenderConfig} [response] RecommenderConfig + */ + + /** + * Calls GetRecommenderConfig. + * @function getRecommenderConfig + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IGetRecommenderConfigRequest} request GetRecommenderConfigRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.GetRecommenderConfigCallback} callback Node-style callback called with the error, if any, and RecommenderConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.getRecommenderConfig = function getRecommenderConfig(request, callback) { + return this.rpcCall(getRecommenderConfig, $root.google.cloud.recommender.v1.GetRecommenderConfigRequest, $root.google.cloud.recommender.v1.RecommenderConfig, request, callback); + }, "name", { value: "GetRecommenderConfig" }); + + /** + * Calls GetRecommenderConfig. + * @function getRecommenderConfig + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IGetRecommenderConfigRequest} request GetRecommenderConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|updateRecommenderConfig}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef UpdateRecommenderConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.RecommenderConfig} [response] RecommenderConfig + */ + + /** + * Calls UpdateRecommenderConfig. + * @function updateRecommenderConfig + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IUpdateRecommenderConfigRequest} request UpdateRecommenderConfigRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.UpdateRecommenderConfigCallback} callback Node-style callback called with the error, if any, and RecommenderConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.updateRecommenderConfig = function updateRecommenderConfig(request, callback) { + return this.rpcCall(updateRecommenderConfig, $root.google.cloud.recommender.v1.UpdateRecommenderConfigRequest, $root.google.cloud.recommender.v1.RecommenderConfig, request, callback); + }, "name", { value: "UpdateRecommenderConfig" }); + + /** + * Calls UpdateRecommenderConfig. + * @function updateRecommenderConfig + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IUpdateRecommenderConfigRequest} request UpdateRecommenderConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|getInsightTypeConfig}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef GetInsightTypeConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.InsightTypeConfig} [response] InsightTypeConfig + */ + + /** + * Calls GetInsightTypeConfig. + * @function getInsightTypeConfig + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IGetInsightTypeConfigRequest} request GetInsightTypeConfigRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.GetInsightTypeConfigCallback} callback Node-style callback called with the error, if any, and InsightTypeConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.getInsightTypeConfig = function getInsightTypeConfig(request, callback) { + return this.rpcCall(getInsightTypeConfig, $root.google.cloud.recommender.v1.GetInsightTypeConfigRequest, $root.google.cloud.recommender.v1.InsightTypeConfig, request, callback); + }, "name", { value: "GetInsightTypeConfig" }); + + /** + * Calls GetInsightTypeConfig. + * @function getInsightTypeConfig + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IGetInsightTypeConfigRequest} request GetInsightTypeConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1.Recommender|updateInsightTypeConfig}. + * @memberof google.cloud.recommender.v1.Recommender + * @typedef UpdateInsightTypeConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1.InsightTypeConfig} [response] InsightTypeConfig + */ + + /** + * Calls UpdateInsightTypeConfig. + * @function updateInsightTypeConfig + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest} request UpdateInsightTypeConfigRequest message or plain object + * @param {google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfigCallback} callback Node-style callback called with the error, if any, and InsightTypeConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.updateInsightTypeConfig = function updateInsightTypeConfig(request, callback) { + return this.rpcCall(updateInsightTypeConfig, $root.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest, $root.google.cloud.recommender.v1.InsightTypeConfig, request, callback); + }, "name", { value: "UpdateInsightTypeConfig" }); + + /** + * Calls UpdateInsightTypeConfig. + * @function updateInsightTypeConfig + * @memberof google.cloud.recommender.v1.Recommender + * @instance + * @param {google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest} request UpdateInsightTypeConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Recommender; + })(); + + v1.ListInsightsRequest = (function() { + + /** + * Properties of a ListInsightsRequest. + * @memberof google.cloud.recommender.v1 + * @interface IListInsightsRequest + * @property {string|null} [parent] ListInsightsRequest parent + * @property {number|null} [pageSize] ListInsightsRequest pageSize + * @property {string|null} [pageToken] ListInsightsRequest pageToken + * @property {string|null} [filter] ListInsightsRequest filter + */ + + /** + * Constructs a new ListInsightsRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a ListInsightsRequest. + * @implements IListInsightsRequest + * @constructor + * @param {google.cloud.recommender.v1.IListInsightsRequest=} [properties] Properties to set + */ + function ListInsightsRequest(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]]; + } + + /** + * ListInsightsRequest parent. + * @member {string} parent + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @instance + */ + ListInsightsRequest.prototype.parent = ""; + + /** + * ListInsightsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @instance + */ + ListInsightsRequest.prototype.pageSize = 0; + + /** + * ListInsightsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @instance + */ + ListInsightsRequest.prototype.pageToken = ""; + + /** + * ListInsightsRequest filter. + * @member {string} filter + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @instance + */ + ListInsightsRequest.prototype.filter = ""; + + /** + * Creates a new ListInsightsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @static + * @param {google.cloud.recommender.v1.IListInsightsRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.ListInsightsRequest} ListInsightsRequest instance + */ + ListInsightsRequest.create = function create(properties) { + return new ListInsightsRequest(properties); + }; + + /** + * Encodes the specified ListInsightsRequest message. Does not implicitly {@link google.cloud.recommender.v1.ListInsightsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @static + * @param {google.cloud.recommender.v1.IListInsightsRequest} message ListInsightsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInsightsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + return writer; + }; + + /** + * Encodes the specified ListInsightsRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ListInsightsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @static + * @param {google.cloud.recommender.v1.IListInsightsRequest} message ListInsightsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInsightsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListInsightsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.ListInsightsRequest} ListInsightsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInsightsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ListInsightsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListInsightsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.ListInsightsRequest} ListInsightsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInsightsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListInsightsRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListInsightsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + return null; + }; + + /** + * Creates a ListInsightsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.ListInsightsRequest} ListInsightsRequest + */ + ListInsightsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.ListInsightsRequest) + return object; + var message = new $root.google.cloud.recommender.v1.ListInsightsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + return message; + }; + + /** + * Creates a plain object from a ListInsightsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @static + * @param {google.cloud.recommender.v1.ListInsightsRequest} message ListInsightsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListInsightsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + return object; + }; + + /** + * Converts this ListInsightsRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @instance + * @returns {Object.} JSON object + */ + ListInsightsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListInsightsRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListInsightsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.ListInsightsRequest"; + }; + + return ListInsightsRequest; + })(); + + v1.ListInsightsResponse = (function() { + + /** + * Properties of a ListInsightsResponse. + * @memberof google.cloud.recommender.v1 + * @interface IListInsightsResponse + * @property {Array.|null} [insights] ListInsightsResponse insights + * @property {string|null} [nextPageToken] ListInsightsResponse nextPageToken + */ + + /** + * Constructs a new ListInsightsResponse. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a ListInsightsResponse. + * @implements IListInsightsResponse + * @constructor + * @param {google.cloud.recommender.v1.IListInsightsResponse=} [properties] Properties to set + */ + function ListInsightsResponse(properties) { + this.insights = []; + 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]]; + } + + /** + * ListInsightsResponse insights. + * @member {Array.} insights + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @instance + */ + ListInsightsResponse.prototype.insights = $util.emptyArray; + + /** + * ListInsightsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @instance + */ + ListInsightsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListInsightsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @static + * @param {google.cloud.recommender.v1.IListInsightsResponse=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.ListInsightsResponse} ListInsightsResponse instance + */ + ListInsightsResponse.create = function create(properties) { + return new ListInsightsResponse(properties); + }; + + /** + * Encodes the specified ListInsightsResponse message. Does not implicitly {@link google.cloud.recommender.v1.ListInsightsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @static + * @param {google.cloud.recommender.v1.IListInsightsResponse} message ListInsightsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInsightsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.insights != null && message.insights.length) + for (var i = 0; i < message.insights.length; ++i) + $root.google.cloud.recommender.v1.Insight.encode(message.insights[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListInsightsResponse message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ListInsightsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @static + * @param {google.cloud.recommender.v1.IListInsightsResponse} message ListInsightsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListInsightsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListInsightsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.ListInsightsResponse} ListInsightsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInsightsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ListInsightsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.insights && message.insights.length)) + message.insights = []; + message.insights.push($root.google.cloud.recommender.v1.Insight.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListInsightsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.ListInsightsResponse} ListInsightsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInsightsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListInsightsResponse message. + * @function verify + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListInsightsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.insights != null && message.hasOwnProperty("insights")) { + if (!Array.isArray(message.insights)) + return "insights: array expected"; + for (var i = 0; i < message.insights.length; ++i) { + var error = $root.google.cloud.recommender.v1.Insight.verify(message.insights[i]); + if (error) + return "insights." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListInsightsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.ListInsightsResponse} ListInsightsResponse + */ + ListInsightsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.ListInsightsResponse) + return object; + var message = new $root.google.cloud.recommender.v1.ListInsightsResponse(); + if (object.insights) { + if (!Array.isArray(object.insights)) + throw TypeError(".google.cloud.recommender.v1.ListInsightsResponse.insights: array expected"); + message.insights = []; + for (var i = 0; i < object.insights.length; ++i) { + if (typeof object.insights[i] !== "object") + throw TypeError(".google.cloud.recommender.v1.ListInsightsResponse.insights: object expected"); + message.insights[i] = $root.google.cloud.recommender.v1.Insight.fromObject(object.insights[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListInsightsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @static + * @param {google.cloud.recommender.v1.ListInsightsResponse} message ListInsightsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListInsightsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.insights = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.insights && message.insights.length) { + object.insights = []; + for (var j = 0; j < message.insights.length; ++j) + object.insights[j] = $root.google.cloud.recommender.v1.Insight.toObject(message.insights[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListInsightsResponse to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @instance + * @returns {Object.} JSON object + */ + ListInsightsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListInsightsResponse + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListInsightsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.ListInsightsResponse"; + }; + + return ListInsightsResponse; + })(); + + v1.GetInsightRequest = (function() { + + /** + * Properties of a GetInsightRequest. + * @memberof google.cloud.recommender.v1 + * @interface IGetInsightRequest + * @property {string|null} [name] GetInsightRequest name + */ + + /** + * Constructs a new GetInsightRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a GetInsightRequest. + * @implements IGetInsightRequest + * @constructor + * @param {google.cloud.recommender.v1.IGetInsightRequest=} [properties] Properties to set + */ + function GetInsightRequest(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]]; + } + + /** + * GetInsightRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @instance + */ + GetInsightRequest.prototype.name = ""; + + /** + * Creates a new GetInsightRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @static + * @param {google.cloud.recommender.v1.IGetInsightRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.GetInsightRequest} GetInsightRequest instance + */ + GetInsightRequest.create = function create(properties) { + return new GetInsightRequest(properties); + }; + + /** + * Encodes the specified GetInsightRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetInsightRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @static + * @param {google.cloud.recommender.v1.IGetInsightRequest} message GetInsightRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInsightRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetInsightRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetInsightRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @static + * @param {google.cloud.recommender.v1.IGetInsightRequest} message GetInsightRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInsightRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetInsightRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.GetInsightRequest} GetInsightRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInsightRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.GetInsightRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetInsightRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.GetInsightRequest} GetInsightRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInsightRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetInsightRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetInsightRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetInsightRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.GetInsightRequest} GetInsightRequest + */ + GetInsightRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.GetInsightRequest) + return object; + var message = new $root.google.cloud.recommender.v1.GetInsightRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetInsightRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @static + * @param {google.cloud.recommender.v1.GetInsightRequest} message GetInsightRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetInsightRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetInsightRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @instance + * @returns {Object.} JSON object + */ + GetInsightRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetInsightRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.GetInsightRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetInsightRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.GetInsightRequest"; + }; + + return GetInsightRequest; + })(); + + v1.MarkInsightAcceptedRequest = (function() { + + /** + * Properties of a MarkInsightAcceptedRequest. + * @memberof google.cloud.recommender.v1 + * @interface IMarkInsightAcceptedRequest + * @property {string|null} [name] MarkInsightAcceptedRequest name + * @property {Object.|null} [stateMetadata] MarkInsightAcceptedRequest stateMetadata + * @property {string|null} [etag] MarkInsightAcceptedRequest etag + */ + + /** + * Constructs a new MarkInsightAcceptedRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a MarkInsightAcceptedRequest. + * @implements IMarkInsightAcceptedRequest + * @constructor + * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest=} [properties] Properties to set + */ + function MarkInsightAcceptedRequest(properties) { + this.stateMetadata = {}; + 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]]; + } + + /** + * MarkInsightAcceptedRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @instance + */ + MarkInsightAcceptedRequest.prototype.name = ""; + + /** + * MarkInsightAcceptedRequest stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @instance + */ + MarkInsightAcceptedRequest.prototype.stateMetadata = $util.emptyObject; + + /** + * MarkInsightAcceptedRequest etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @instance + */ + MarkInsightAcceptedRequest.prototype.etag = ""; + + /** + * Creates a new MarkInsightAcceptedRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @static + * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest instance + */ + MarkInsightAcceptedRequest.create = function create(properties) { + return new MarkInsightAcceptedRequest(properties); + }; + + /** + * Encodes the specified MarkInsightAcceptedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkInsightAcceptedRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @static + * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest} message MarkInsightAcceptedRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MarkInsightAcceptedRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + return writer; + }; + + /** + * Encodes the specified MarkInsightAcceptedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkInsightAcceptedRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @static + * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest} message MarkInsightAcceptedRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MarkInsightAcceptedRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MarkInsightAcceptedRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MarkInsightAcceptedRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.MarkInsightAcceptedRequest(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; + break; + } + case 3: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MarkInsightAcceptedRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MarkInsightAcceptedRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MarkInsightAcceptedRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MarkInsightAcceptedRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; + + /** + * Creates a MarkInsightAcceptedRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest + */ + MarkInsightAcceptedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.MarkInsightAcceptedRequest) + return object; + var message = new $root.google.cloud.recommender.v1.MarkInsightAcceptedRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1.MarkInsightAcceptedRequest.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); + } + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; + + /** + * Creates a plain object from a MarkInsightAcceptedRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @static + * @param {google.cloud.recommender.v1.MarkInsightAcceptedRequest} message MarkInsightAcceptedRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MarkInsightAcceptedRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.stateMetadata = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; + + /** + * Converts this MarkInsightAcceptedRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @instance + * @returns {Object.} JSON object + */ + MarkInsightAcceptedRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MarkInsightAcceptedRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MarkInsightAcceptedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.MarkInsightAcceptedRequest"; + }; + + return MarkInsightAcceptedRequest; + })(); + + v1.ListRecommendationsRequest = (function() { + + /** + * Properties of a ListRecommendationsRequest. + * @memberof google.cloud.recommender.v1 + * @interface IListRecommendationsRequest + * @property {string|null} [parent] ListRecommendationsRequest parent + * @property {number|null} [pageSize] ListRecommendationsRequest pageSize + * @property {string|null} [pageToken] ListRecommendationsRequest pageToken + * @property {string|null} [filter] ListRecommendationsRequest filter + */ + + /** + * Constructs a new ListRecommendationsRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a ListRecommendationsRequest. + * @implements IListRecommendationsRequest + * @constructor + * @param {google.cloud.recommender.v1.IListRecommendationsRequest=} [properties] Properties to set + */ + function ListRecommendationsRequest(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]]; + } + + /** + * ListRecommendationsRequest parent. + * @member {string} parent + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @instance + */ + ListRecommendationsRequest.prototype.parent = ""; + + /** + * ListRecommendationsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @instance + */ + ListRecommendationsRequest.prototype.pageSize = 0; + + /** + * ListRecommendationsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @instance + */ + ListRecommendationsRequest.prototype.pageToken = ""; + + /** + * ListRecommendationsRequest filter. + * @member {string} filter + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @instance + */ + ListRecommendationsRequest.prototype.filter = ""; + + /** + * Creates a new ListRecommendationsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @static + * @param {google.cloud.recommender.v1.IListRecommendationsRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.ListRecommendationsRequest} ListRecommendationsRequest instance + */ + ListRecommendationsRequest.create = function create(properties) { + return new ListRecommendationsRequest(properties); + }; + + /** + * Encodes the specified ListRecommendationsRequest message. Does not implicitly {@link google.cloud.recommender.v1.ListRecommendationsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @static + * @param {google.cloud.recommender.v1.IListRecommendationsRequest} message ListRecommendationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRecommendationsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); + return writer; + }; + + /** + * Encodes the specified ListRecommendationsRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ListRecommendationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @static + * @param {google.cloud.recommender.v1.IListRecommendationsRequest} message ListRecommendationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRecommendationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRecommendationsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.ListRecommendationsRequest} ListRecommendationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRecommendationsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ListRecommendationsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.filter = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRecommendationsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.ListRecommendationsRequest} ListRecommendationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRecommendationsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRecommendationsRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRecommendationsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + return null; + }; + + /** + * Creates a ListRecommendationsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.ListRecommendationsRequest} ListRecommendationsRequest + */ + ListRecommendationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.ListRecommendationsRequest) + return object; + var message = new $root.google.cloud.recommender.v1.ListRecommendationsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + return message; + }; + + /** + * Creates a plain object from a ListRecommendationsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @static + * @param {google.cloud.recommender.v1.ListRecommendationsRequest} message ListRecommendationsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRecommendationsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + return object; + }; + + /** + * Converts this ListRecommendationsRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @instance + * @returns {Object.} JSON object + */ + ListRecommendationsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRecommendationsRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRecommendationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.ListRecommendationsRequest"; + }; + + return ListRecommendationsRequest; + })(); + + v1.ListRecommendationsResponse = (function() { + + /** + * Properties of a ListRecommendationsResponse. + * @memberof google.cloud.recommender.v1 + * @interface IListRecommendationsResponse + * @property {Array.|null} [recommendations] ListRecommendationsResponse recommendations + * @property {string|null} [nextPageToken] ListRecommendationsResponse nextPageToken + */ + + /** + * Constructs a new ListRecommendationsResponse. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a ListRecommendationsResponse. + * @implements IListRecommendationsResponse + * @constructor + * @param {google.cloud.recommender.v1.IListRecommendationsResponse=} [properties] Properties to set + */ + function ListRecommendationsResponse(properties) { + this.recommendations = []; + 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]]; + } + + /** + * ListRecommendationsResponse recommendations. + * @member {Array.} recommendations + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @instance + */ + ListRecommendationsResponse.prototype.recommendations = $util.emptyArray; + + /** + * ListRecommendationsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @instance + */ + ListRecommendationsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListRecommendationsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @static + * @param {google.cloud.recommender.v1.IListRecommendationsResponse=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.ListRecommendationsResponse} ListRecommendationsResponse instance + */ + ListRecommendationsResponse.create = function create(properties) { + return new ListRecommendationsResponse(properties); + }; + + /** + * Encodes the specified ListRecommendationsResponse message. Does not implicitly {@link google.cloud.recommender.v1.ListRecommendationsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @static + * @param {google.cloud.recommender.v1.IListRecommendationsResponse} message ListRecommendationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRecommendationsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recommendations != null && message.recommendations.length) + for (var i = 0; i < message.recommendations.length; ++i) + $root.google.cloud.recommender.v1.Recommendation.encode(message.recommendations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListRecommendationsResponse message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ListRecommendationsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @static + * @param {google.cloud.recommender.v1.IListRecommendationsResponse} message ListRecommendationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRecommendationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRecommendationsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.ListRecommendationsResponse} ListRecommendationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRecommendationsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ListRecommendationsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.recommendations && message.recommendations.length)) + message.recommendations = []; + message.recommendations.push($root.google.cloud.recommender.v1.Recommendation.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRecommendationsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.ListRecommendationsResponse} ListRecommendationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRecommendationsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRecommendationsResponse message. + * @function verify + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRecommendationsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recommendations != null && message.hasOwnProperty("recommendations")) { + if (!Array.isArray(message.recommendations)) + return "recommendations: array expected"; + for (var i = 0; i < message.recommendations.length; ++i) { + var error = $root.google.cloud.recommender.v1.Recommendation.verify(message.recommendations[i]); + if (error) + return "recommendations." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListRecommendationsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.ListRecommendationsResponse} ListRecommendationsResponse + */ + ListRecommendationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.ListRecommendationsResponse) + return object; + var message = new $root.google.cloud.recommender.v1.ListRecommendationsResponse(); + if (object.recommendations) { + if (!Array.isArray(object.recommendations)) + throw TypeError(".google.cloud.recommender.v1.ListRecommendationsResponse.recommendations: array expected"); + message.recommendations = []; + for (var i = 0; i < object.recommendations.length; ++i) { + if (typeof object.recommendations[i] !== "object") + throw TypeError(".google.cloud.recommender.v1.ListRecommendationsResponse.recommendations: object expected"); + message.recommendations[i] = $root.google.cloud.recommender.v1.Recommendation.fromObject(object.recommendations[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListRecommendationsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @static + * @param {google.cloud.recommender.v1.ListRecommendationsResponse} message ListRecommendationsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRecommendationsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.recommendations = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.recommendations && message.recommendations.length) { + object.recommendations = []; + for (var j = 0; j < message.recommendations.length; ++j) + object.recommendations[j] = $root.google.cloud.recommender.v1.Recommendation.toObject(message.recommendations[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListRecommendationsResponse to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @instance + * @returns {Object.} JSON object + */ + ListRecommendationsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRecommendationsResponse + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRecommendationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.ListRecommendationsResponse"; + }; + + return ListRecommendationsResponse; + })(); + + v1.GetRecommendationRequest = (function() { + + /** + * Properties of a GetRecommendationRequest. + * @memberof google.cloud.recommender.v1 + * @interface IGetRecommendationRequest + * @property {string|null} [name] GetRecommendationRequest name + */ + + /** + * Constructs a new GetRecommendationRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a GetRecommendationRequest. + * @implements IGetRecommendationRequest + * @constructor + * @param {google.cloud.recommender.v1.IGetRecommendationRequest=} [properties] Properties to set + */ + function GetRecommendationRequest(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]]; + } + + /** + * GetRecommendationRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @instance + */ + GetRecommendationRequest.prototype.name = ""; + + /** + * Creates a new GetRecommendationRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @static + * @param {google.cloud.recommender.v1.IGetRecommendationRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.GetRecommendationRequest} GetRecommendationRequest instance + */ + GetRecommendationRequest.create = function create(properties) { + return new GetRecommendationRequest(properties); + }; + + /** + * Encodes the specified GetRecommendationRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetRecommendationRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @static + * @param {google.cloud.recommender.v1.IGetRecommendationRequest} message GetRecommendationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRecommendationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetRecommendationRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetRecommendationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @static + * @param {google.cloud.recommender.v1.IGetRecommendationRequest} message GetRecommendationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRecommendationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRecommendationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.GetRecommendationRequest} GetRecommendationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRecommendationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.GetRecommendationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRecommendationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.GetRecommendationRequest} GetRecommendationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRecommendationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRecommendationRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRecommendationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetRecommendationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.GetRecommendationRequest} GetRecommendationRequest + */ + GetRecommendationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.GetRecommendationRequest) + return object; + var message = new $root.google.cloud.recommender.v1.GetRecommendationRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetRecommendationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @static + * @param {google.cloud.recommender.v1.GetRecommendationRequest} message GetRecommendationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRecommendationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetRecommendationRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @instance + * @returns {Object.} JSON object + */ + GetRecommendationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRecommendationRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRecommendationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.GetRecommendationRequest"; + }; + + return GetRecommendationRequest; + })(); + + v1.MarkRecommendationClaimedRequest = (function() { + + /** + * Properties of a MarkRecommendationClaimedRequest. + * @memberof google.cloud.recommender.v1 + * @interface IMarkRecommendationClaimedRequest + * @property {string|null} [name] MarkRecommendationClaimedRequest name + * @property {Object.|null} [stateMetadata] MarkRecommendationClaimedRequest stateMetadata + * @property {string|null} [etag] MarkRecommendationClaimedRequest etag + */ + + /** + * Constructs a new MarkRecommendationClaimedRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a MarkRecommendationClaimedRequest. + * @implements IMarkRecommendationClaimedRequest + * @constructor + * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest=} [properties] Properties to set + */ + function MarkRecommendationClaimedRequest(properties) { + this.stateMetadata = {}; + 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]]; + } + + /** + * MarkRecommendationClaimedRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @instance + */ + MarkRecommendationClaimedRequest.prototype.name = ""; + + /** + * MarkRecommendationClaimedRequest stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @instance + */ + MarkRecommendationClaimedRequest.prototype.stateMetadata = $util.emptyObject; + + /** + * MarkRecommendationClaimedRequest etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @instance + */ + MarkRecommendationClaimedRequest.prototype.etag = ""; + + /** + * Creates a new MarkRecommendationClaimedRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @static + * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest instance + */ + MarkRecommendationClaimedRequest.create = function create(properties) { + return new MarkRecommendationClaimedRequest(properties); + }; + + /** + * Encodes the specified MarkRecommendationClaimedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationClaimedRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @static + * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest} message MarkRecommendationClaimedRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MarkRecommendationClaimedRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + return writer; + }; + + /** + * Encodes the specified MarkRecommendationClaimedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationClaimedRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @static + * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest} message MarkRecommendationClaimedRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MarkRecommendationClaimedRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MarkRecommendationClaimedRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.MarkRecommendationClaimedRequest(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; + break; + } + case 3: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MarkRecommendationClaimedRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MarkRecommendationClaimedRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MarkRecommendationClaimedRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; + + /** + * Creates a MarkRecommendationClaimedRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest + */ + MarkRecommendationClaimedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.MarkRecommendationClaimedRequest) + return object; + var message = new $root.google.cloud.recommender.v1.MarkRecommendationClaimedRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1.MarkRecommendationClaimedRequest.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); + } + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; + + /** + * Creates a plain object from a MarkRecommendationClaimedRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @static + * @param {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} message MarkRecommendationClaimedRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MarkRecommendationClaimedRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.stateMetadata = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; + + /** + * Converts this MarkRecommendationClaimedRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @instance + * @returns {Object.} JSON object + */ + MarkRecommendationClaimedRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MarkRecommendationClaimedRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MarkRecommendationClaimedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.MarkRecommendationClaimedRequest"; + }; + + return MarkRecommendationClaimedRequest; + })(); + + v1.MarkRecommendationSucceededRequest = (function() { + + /** + * Properties of a MarkRecommendationSucceededRequest. + * @memberof google.cloud.recommender.v1 + * @interface IMarkRecommendationSucceededRequest + * @property {string|null} [name] MarkRecommendationSucceededRequest name + * @property {Object.|null} [stateMetadata] MarkRecommendationSucceededRequest stateMetadata + * @property {string|null} [etag] MarkRecommendationSucceededRequest etag + */ + + /** + * Constructs a new MarkRecommendationSucceededRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a MarkRecommendationSucceededRequest. + * @implements IMarkRecommendationSucceededRequest + * @constructor + * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest=} [properties] Properties to set + */ + function MarkRecommendationSucceededRequest(properties) { + this.stateMetadata = {}; + 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]]; + } + + /** + * MarkRecommendationSucceededRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @instance + */ + MarkRecommendationSucceededRequest.prototype.name = ""; + + /** + * MarkRecommendationSucceededRequest stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @instance + */ + MarkRecommendationSucceededRequest.prototype.stateMetadata = $util.emptyObject; + + /** + * MarkRecommendationSucceededRequest etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @instance + */ + MarkRecommendationSucceededRequest.prototype.etag = ""; + + /** + * Creates a new MarkRecommendationSucceededRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @static + * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest instance + */ + MarkRecommendationSucceededRequest.create = function create(properties) { + return new MarkRecommendationSucceededRequest(properties); + }; + + /** + * Encodes the specified MarkRecommendationSucceededRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationSucceededRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @static + * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest} message MarkRecommendationSucceededRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MarkRecommendationSucceededRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + return writer; + }; + + /** + * Encodes the specified MarkRecommendationSucceededRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationSucceededRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @static + * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest} message MarkRecommendationSucceededRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MarkRecommendationSucceededRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MarkRecommendationSucceededRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.MarkRecommendationSucceededRequest(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; + break; + } + case 3: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MarkRecommendationSucceededRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MarkRecommendationSucceededRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MarkRecommendationSucceededRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; + + /** + * Creates a MarkRecommendationSucceededRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest + */ + MarkRecommendationSucceededRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.MarkRecommendationSucceededRequest) + return object; + var message = new $root.google.cloud.recommender.v1.MarkRecommendationSucceededRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1.MarkRecommendationSucceededRequest.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); + } + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; + + /** + * Creates a plain object from a MarkRecommendationSucceededRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @static + * @param {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} message MarkRecommendationSucceededRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MarkRecommendationSucceededRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.stateMetadata = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; + + /** + * Converts this MarkRecommendationSucceededRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @instance + * @returns {Object.} JSON object + */ + MarkRecommendationSucceededRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MarkRecommendationSucceededRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MarkRecommendationSucceededRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.MarkRecommendationSucceededRequest"; + }; + + return MarkRecommendationSucceededRequest; + })(); + + v1.MarkRecommendationFailedRequest = (function() { + + /** + * Properties of a MarkRecommendationFailedRequest. + * @memberof google.cloud.recommender.v1 + * @interface IMarkRecommendationFailedRequest + * @property {string|null} [name] MarkRecommendationFailedRequest name + * @property {Object.|null} [stateMetadata] MarkRecommendationFailedRequest stateMetadata + * @property {string|null} [etag] MarkRecommendationFailedRequest etag + */ + + /** + * Constructs a new MarkRecommendationFailedRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a MarkRecommendationFailedRequest. + * @implements IMarkRecommendationFailedRequest + * @constructor + * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest=} [properties] Properties to set + */ + function MarkRecommendationFailedRequest(properties) { + this.stateMetadata = {}; + 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]]; + } + + /** + * MarkRecommendationFailedRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @instance + */ + MarkRecommendationFailedRequest.prototype.name = ""; + + /** + * MarkRecommendationFailedRequest stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @instance + */ + MarkRecommendationFailedRequest.prototype.stateMetadata = $util.emptyObject; + + /** + * MarkRecommendationFailedRequest etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @instance + */ + MarkRecommendationFailedRequest.prototype.etag = ""; + + /** + * Creates a new MarkRecommendationFailedRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @static + * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest instance + */ + MarkRecommendationFailedRequest.create = function create(properties) { + return new MarkRecommendationFailedRequest(properties); + }; + + /** + * Encodes the specified MarkRecommendationFailedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationFailedRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @static + * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest} message MarkRecommendationFailedRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MarkRecommendationFailedRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + return writer; + }; + + /** + * Encodes the specified MarkRecommendationFailedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationFailedRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @static + * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest} message MarkRecommendationFailedRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MarkRecommendationFailedRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MarkRecommendationFailedRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.MarkRecommendationFailedRequest(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; + break; + } + case 3: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MarkRecommendationFailedRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MarkRecommendationFailedRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MarkRecommendationFailedRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; + + /** + * Creates a MarkRecommendationFailedRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest + */ + MarkRecommendationFailedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.MarkRecommendationFailedRequest) + return object; + var message = new $root.google.cloud.recommender.v1.MarkRecommendationFailedRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1.MarkRecommendationFailedRequest.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); + } + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; + + /** + * Creates a plain object from a MarkRecommendationFailedRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @static + * @param {google.cloud.recommender.v1.MarkRecommendationFailedRequest} message MarkRecommendationFailedRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MarkRecommendationFailedRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.stateMetadata = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; + + /** + * Converts this MarkRecommendationFailedRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @instance + * @returns {Object.} JSON object + */ + MarkRecommendationFailedRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MarkRecommendationFailedRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MarkRecommendationFailedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.MarkRecommendationFailedRequest"; + }; + + return MarkRecommendationFailedRequest; + })(); + + v1.GetRecommenderConfigRequest = (function() { + + /** + * Properties of a GetRecommenderConfigRequest. + * @memberof google.cloud.recommender.v1 + * @interface IGetRecommenderConfigRequest + * @property {string|null} [name] GetRecommenderConfigRequest name + */ + + /** + * Constructs a new GetRecommenderConfigRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a GetRecommenderConfigRequest. + * @implements IGetRecommenderConfigRequest + * @constructor + * @param {google.cloud.recommender.v1.IGetRecommenderConfigRequest=} [properties] Properties to set + */ + function GetRecommenderConfigRequest(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]]; + } + + /** + * GetRecommenderConfigRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @instance + */ + GetRecommenderConfigRequest.prototype.name = ""; + + /** + * Creates a new GetRecommenderConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @static + * @param {google.cloud.recommender.v1.IGetRecommenderConfigRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.GetRecommenderConfigRequest} GetRecommenderConfigRequest instance + */ + GetRecommenderConfigRequest.create = function create(properties) { + return new GetRecommenderConfigRequest(properties); + }; + + /** + * Encodes the specified GetRecommenderConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetRecommenderConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @static + * @param {google.cloud.recommender.v1.IGetRecommenderConfigRequest} message GetRecommenderConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRecommenderConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetRecommenderConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetRecommenderConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @static + * @param {google.cloud.recommender.v1.IGetRecommenderConfigRequest} message GetRecommenderConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRecommenderConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRecommenderConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.GetRecommenderConfigRequest} GetRecommenderConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRecommenderConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.GetRecommenderConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRecommenderConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.GetRecommenderConfigRequest} GetRecommenderConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRecommenderConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRecommenderConfigRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRecommenderConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetRecommenderConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.GetRecommenderConfigRequest} GetRecommenderConfigRequest + */ + GetRecommenderConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.GetRecommenderConfigRequest) + return object; + var message = new $root.google.cloud.recommender.v1.GetRecommenderConfigRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetRecommenderConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @static + * @param {google.cloud.recommender.v1.GetRecommenderConfigRequest} message GetRecommenderConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRecommenderConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetRecommenderConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @instance + * @returns {Object.} JSON object + */ + GetRecommenderConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRecommenderConfigRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.GetRecommenderConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRecommenderConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.GetRecommenderConfigRequest"; + }; + + return GetRecommenderConfigRequest; + })(); + + v1.UpdateRecommenderConfigRequest = (function() { + + /** + * Properties of an UpdateRecommenderConfigRequest. + * @memberof google.cloud.recommender.v1 + * @interface IUpdateRecommenderConfigRequest + * @property {google.cloud.recommender.v1.IRecommenderConfig|null} [recommenderConfig] UpdateRecommenderConfigRequest recommenderConfig + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateRecommenderConfigRequest updateMask + * @property {boolean|null} [validateOnly] UpdateRecommenderConfigRequest validateOnly + */ + + /** + * Constructs a new UpdateRecommenderConfigRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents an UpdateRecommenderConfigRequest. + * @implements IUpdateRecommenderConfigRequest + * @constructor + * @param {google.cloud.recommender.v1.IUpdateRecommenderConfigRequest=} [properties] Properties to set + */ + function UpdateRecommenderConfigRequest(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]]; + } + + /** + * UpdateRecommenderConfigRequest recommenderConfig. + * @member {google.cloud.recommender.v1.IRecommenderConfig|null|undefined} recommenderConfig + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @instance + */ + UpdateRecommenderConfigRequest.prototype.recommenderConfig = null; + + /** + * UpdateRecommenderConfigRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @instance + */ + UpdateRecommenderConfigRequest.prototype.updateMask = null; + + /** + * UpdateRecommenderConfigRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @instance + */ + UpdateRecommenderConfigRequest.prototype.validateOnly = false; + + /** + * Creates a new UpdateRecommenderConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @static + * @param {google.cloud.recommender.v1.IUpdateRecommenderConfigRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.UpdateRecommenderConfigRequest} UpdateRecommenderConfigRequest instance + */ + UpdateRecommenderConfigRequest.create = function create(properties) { + return new UpdateRecommenderConfigRequest(properties); + }; + + /** + * Encodes the specified UpdateRecommenderConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1.UpdateRecommenderConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @static + * @param {google.cloud.recommender.v1.IUpdateRecommenderConfigRequest} message UpdateRecommenderConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateRecommenderConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recommenderConfig != null && Object.hasOwnProperty.call(message, "recommenderConfig")) + $root.google.cloud.recommender.v1.RecommenderConfig.encode(message.recommenderConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.validateOnly); + return writer; + }; + + /** + * Encodes the specified UpdateRecommenderConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.UpdateRecommenderConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @static + * @param {google.cloud.recommender.v1.IUpdateRecommenderConfigRequest} message UpdateRecommenderConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateRecommenderConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateRecommenderConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.UpdateRecommenderConfigRequest} UpdateRecommenderConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateRecommenderConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.UpdateRecommenderConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recommenderConfig = $root.google.cloud.recommender.v1.RecommenderConfig.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.validateOnly = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateRecommenderConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.UpdateRecommenderConfigRequest} UpdateRecommenderConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateRecommenderConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateRecommenderConfigRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateRecommenderConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recommenderConfig != null && message.hasOwnProperty("recommenderConfig")) { + var error = $root.google.cloud.recommender.v1.RecommenderConfig.verify(message.recommenderConfig); + if (error) + return "recommenderConfig." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; + return null; + }; + + /** + * Creates an UpdateRecommenderConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.UpdateRecommenderConfigRequest} UpdateRecommenderConfigRequest + */ + UpdateRecommenderConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.UpdateRecommenderConfigRequest) + return object; + var message = new $root.google.cloud.recommender.v1.UpdateRecommenderConfigRequest(); + if (object.recommenderConfig != null) { + if (typeof object.recommenderConfig !== "object") + throw TypeError(".google.cloud.recommender.v1.UpdateRecommenderConfigRequest.recommenderConfig: object expected"); + message.recommenderConfig = $root.google.cloud.recommender.v1.RecommenderConfig.fromObject(object.recommenderConfig); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.recommender.v1.UpdateRecommenderConfigRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); + return message; + }; + + /** + * Creates a plain object from an UpdateRecommenderConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @static + * @param {google.cloud.recommender.v1.UpdateRecommenderConfigRequest} message UpdateRecommenderConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateRecommenderConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.recommenderConfig = null; + object.updateMask = null; + object.validateOnly = false; + } + if (message.recommenderConfig != null && message.hasOwnProperty("recommenderConfig")) + object.recommenderConfig = $root.google.cloud.recommender.v1.RecommenderConfig.toObject(message.recommenderConfig, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; + return object; + }; + + /** + * Converts this UpdateRecommenderConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateRecommenderConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateRecommenderConfigRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.UpdateRecommenderConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateRecommenderConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.UpdateRecommenderConfigRequest"; + }; + + return UpdateRecommenderConfigRequest; + })(); + + v1.GetInsightTypeConfigRequest = (function() { + + /** + * Properties of a GetInsightTypeConfigRequest. + * @memberof google.cloud.recommender.v1 + * @interface IGetInsightTypeConfigRequest + * @property {string|null} [name] GetInsightTypeConfigRequest name + */ + + /** + * Constructs a new GetInsightTypeConfigRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents a GetInsightTypeConfigRequest. + * @implements IGetInsightTypeConfigRequest + * @constructor + * @param {google.cloud.recommender.v1.IGetInsightTypeConfigRequest=} [properties] Properties to set + */ + function GetInsightTypeConfigRequest(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]]; + } + + /** + * GetInsightTypeConfigRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @instance + */ + GetInsightTypeConfigRequest.prototype.name = ""; + + /** + * Creates a new GetInsightTypeConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @static + * @param {google.cloud.recommender.v1.IGetInsightTypeConfigRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.GetInsightTypeConfigRequest} GetInsightTypeConfigRequest instance + */ + GetInsightTypeConfigRequest.create = function create(properties) { + return new GetInsightTypeConfigRequest(properties); + }; + + /** + * Encodes the specified GetInsightTypeConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetInsightTypeConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @static + * @param {google.cloud.recommender.v1.IGetInsightTypeConfigRequest} message GetInsightTypeConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInsightTypeConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetInsightTypeConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetInsightTypeConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @static + * @param {google.cloud.recommender.v1.IGetInsightTypeConfigRequest} message GetInsightTypeConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInsightTypeConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetInsightTypeConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.GetInsightTypeConfigRequest} GetInsightTypeConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInsightTypeConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.GetInsightTypeConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetInsightTypeConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.GetInsightTypeConfigRequest} GetInsightTypeConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInsightTypeConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetInsightTypeConfigRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetInsightTypeConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetInsightTypeConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.GetInsightTypeConfigRequest} GetInsightTypeConfigRequest + */ + GetInsightTypeConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.GetInsightTypeConfigRequest) + return object; + var message = new $root.google.cloud.recommender.v1.GetInsightTypeConfigRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetInsightTypeConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @static + * @param {google.cloud.recommender.v1.GetInsightTypeConfigRequest} message GetInsightTypeConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetInsightTypeConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetInsightTypeConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @instance + * @returns {Object.} JSON object + */ + GetInsightTypeConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetInsightTypeConfigRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.GetInsightTypeConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetInsightTypeConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.GetInsightTypeConfigRequest"; + }; + + return GetInsightTypeConfigRequest; + })(); + + v1.UpdateInsightTypeConfigRequest = (function() { + + /** + * Properties of an UpdateInsightTypeConfigRequest. + * @memberof google.cloud.recommender.v1 + * @interface IUpdateInsightTypeConfigRequest + * @property {google.cloud.recommender.v1.IInsightTypeConfig|null} [insightTypeConfig] UpdateInsightTypeConfigRequest insightTypeConfig + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateInsightTypeConfigRequest updateMask + * @property {boolean|null} [validateOnly] UpdateInsightTypeConfigRequest validateOnly + */ + + /** + * Constructs a new UpdateInsightTypeConfigRequest. + * @memberof google.cloud.recommender.v1 + * @classdesc Represents an UpdateInsightTypeConfigRequest. + * @implements IUpdateInsightTypeConfigRequest + * @constructor + * @param {google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest=} [properties] Properties to set + */ + function UpdateInsightTypeConfigRequest(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]]; + } + + /** + * UpdateInsightTypeConfigRequest insightTypeConfig. + * @member {google.cloud.recommender.v1.IInsightTypeConfig|null|undefined} insightTypeConfig + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @instance + */ + UpdateInsightTypeConfigRequest.prototype.insightTypeConfig = null; + + /** + * UpdateInsightTypeConfigRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @instance + */ + UpdateInsightTypeConfigRequest.prototype.updateMask = null; + + /** + * UpdateInsightTypeConfigRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @instance + */ + UpdateInsightTypeConfigRequest.prototype.validateOnly = false; + + /** + * Creates a new UpdateInsightTypeConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @static + * @param {google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1.UpdateInsightTypeConfigRequest} UpdateInsightTypeConfigRequest instance + */ + UpdateInsightTypeConfigRequest.create = function create(properties) { + return new UpdateInsightTypeConfigRequest(properties); + }; + + /** + * Encodes the specified UpdateInsightTypeConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1.UpdateInsightTypeConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @static + * @param {google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest} message UpdateInsightTypeConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateInsightTypeConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.insightTypeConfig != null && Object.hasOwnProperty.call(message, "insightTypeConfig")) + $root.google.cloud.recommender.v1.InsightTypeConfig.encode(message.insightTypeConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.validateOnly); + return writer; + }; + + /** + * Encodes the specified UpdateInsightTypeConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.UpdateInsightTypeConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @static + * @param {google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest} message UpdateInsightTypeConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateInsightTypeConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateInsightTypeConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1.UpdateInsightTypeConfigRequest} UpdateInsightTypeConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateInsightTypeConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.insightTypeConfig = $root.google.cloud.recommender.v1.InsightTypeConfig.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.validateOnly = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateInsightTypeConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1.UpdateInsightTypeConfigRequest} UpdateInsightTypeConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateInsightTypeConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateInsightTypeConfigRequest message. + * @function verify + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateInsightTypeConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.insightTypeConfig != null && message.hasOwnProperty("insightTypeConfig")) { + var error = $root.google.cloud.recommender.v1.InsightTypeConfig.verify(message.insightTypeConfig); + if (error) + return "insightTypeConfig." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; + return null; + }; + + /** + * Creates an UpdateInsightTypeConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1.UpdateInsightTypeConfigRequest} UpdateInsightTypeConfigRequest + */ + UpdateInsightTypeConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest) + return object; + var message = new $root.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest(); + if (object.insightTypeConfig != null) { + if (typeof object.insightTypeConfig !== "object") + throw TypeError(".google.cloud.recommender.v1.UpdateInsightTypeConfigRequest.insightTypeConfig: object expected"); + message.insightTypeConfig = $root.google.cloud.recommender.v1.InsightTypeConfig.fromObject(object.insightTypeConfig); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.recommender.v1.UpdateInsightTypeConfigRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); + return message; + }; + + /** + * Creates a plain object from an UpdateInsightTypeConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @static + * @param {google.cloud.recommender.v1.UpdateInsightTypeConfigRequest} message UpdateInsightTypeConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateInsightTypeConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.insightTypeConfig = null; + object.updateMask = null; + object.validateOnly = false; + } + if (message.insightTypeConfig != null && message.hasOwnProperty("insightTypeConfig")) + object.insightTypeConfig = $root.google.cloud.recommender.v1.InsightTypeConfig.toObject(message.insightTypeConfig, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; + return object; + }; + + /** + * Converts this UpdateInsightTypeConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateInsightTypeConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateInsightTypeConfigRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1.UpdateInsightTypeConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateInsightTypeConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1.UpdateInsightTypeConfigRequest"; + }; + + return UpdateInsightTypeConfigRequest; + })(); + + return v1; + })(); + + recommender.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof google.cloud.recommender + * @namespace + */ + var v1beta1 = {}; + + v1beta1.Insight = (function() { + + /** + * Properties of an Insight. + * @memberof google.cloud.recommender.v1beta1 + * @interface IInsight + * @property {string|null} [name] Insight name + * @property {string|null} [description] Insight description + * @property {Array.|null} [targetResources] Insight targetResources + * @property {string|null} [insightSubtype] Insight insightSubtype + * @property {google.protobuf.IStruct|null} [content] Insight content + * @property {google.protobuf.ITimestamp|null} [lastRefreshTime] Insight lastRefreshTime + * @property {google.protobuf.IDuration|null} [observationPeriod] Insight observationPeriod + * @property {google.cloud.recommender.v1beta1.IInsightStateInfo|null} [stateInfo] Insight stateInfo + * @property {google.cloud.recommender.v1beta1.Insight.Category|null} [category] Insight category + * @property {google.cloud.recommender.v1beta1.Insight.Severity|null} [severity] Insight severity + * @property {string|null} [etag] Insight etag + * @property {Array.|null} [associatedRecommendations] Insight associatedRecommendations + */ + + /** + * Constructs a new Insight. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents an Insight. + * @implements IInsight + * @constructor + * @param {google.cloud.recommender.v1beta1.IInsight=} [properties] Properties to set + */ + function Insight(properties) { + this.targetResources = []; + this.associatedRecommendations = []; + 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]]; + } + + /** + * Insight name. + * @member {string} name + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.name = ""; + + /** + * Insight description. + * @member {string} description + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.description = ""; + + /** + * Insight targetResources. + * @member {Array.} targetResources + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.targetResources = $util.emptyArray; + + /** + * Insight insightSubtype. + * @member {string} insightSubtype + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.insightSubtype = ""; + + /** + * Insight content. + * @member {google.protobuf.IStruct|null|undefined} content + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.content = null; + + /** + * Insight lastRefreshTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastRefreshTime + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.lastRefreshTime = null; + + /** + * Insight observationPeriod. + * @member {google.protobuf.IDuration|null|undefined} observationPeriod + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.observationPeriod = null; + + /** + * Insight stateInfo. + * @member {google.cloud.recommender.v1beta1.IInsightStateInfo|null|undefined} stateInfo + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.stateInfo = null; + + /** + * Insight category. + * @member {google.cloud.recommender.v1beta1.Insight.Category} category + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.category = 0; + + /** + * Insight severity. + * @member {google.cloud.recommender.v1beta1.Insight.Severity} severity + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.severity = 0; + + /** + * Insight etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.etag = ""; + + /** + * Insight associatedRecommendations. + * @member {Array.} associatedRecommendations + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + */ + Insight.prototype.associatedRecommendations = $util.emptyArray; + + /** + * Creates a new Insight instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.Insight + * @static + * @param {google.cloud.recommender.v1beta1.IInsight=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.Insight} Insight instance + */ + Insight.create = function create(properties) { + return new Insight(properties); + }; + + /** + * Encodes the specified Insight message. Does not implicitly {@link google.cloud.recommender.v1beta1.Insight.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.Insight + * @static + * @param {google.cloud.recommender.v1beta1.IInsight} message Insight message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Insight.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + $root.google.protobuf.Struct.encode(message.content, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.lastRefreshTime != null && Object.hasOwnProperty.call(message, "lastRefreshTime")) + $root.google.protobuf.Timestamp.encode(message.lastRefreshTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.observationPeriod != null && Object.hasOwnProperty.call(message, "observationPeriod")) + $root.google.protobuf.Duration.encode(message.observationPeriod, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.stateInfo != null && Object.hasOwnProperty.call(message, "stateInfo")) + $root.google.cloud.recommender.v1beta1.InsightStateInfo.encode(message.stateInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.category != null && Object.hasOwnProperty.call(message, "category")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.category); + if (message.associatedRecommendations != null && message.associatedRecommendations.length) + for (var i = 0; i < message.associatedRecommendations.length; ++i) + $root.google.cloud.recommender.v1beta1.Insight.RecommendationReference.encode(message.associatedRecommendations[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.targetResources != null && message.targetResources.length) + for (var i = 0; i < message.targetResources.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.targetResources[i]); + if (message.insightSubtype != null && Object.hasOwnProperty.call(message, "insightSubtype")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.insightSubtype); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.etag); + if (message.severity != null && Object.hasOwnProperty.call(message, "severity")) + writer.uint32(/* id 15, wireType 0 =*/120).int32(message.severity); + return writer; + }; + + /** + * Encodes the specified Insight message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Insight.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.Insight + * @static + * @param {google.cloud.recommender.v1beta1.IInsight} message Insight message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Insight.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Insight message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.Insight + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.Insight} Insight + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Insight.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.Insight(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.description = reader.string(); + break; + } + case 9: { + if (!(message.targetResources && message.targetResources.length)) + message.targetResources = []; + message.targetResources.push(reader.string()); + break; + } + case 10: { + message.insightSubtype = reader.string(); + break; + } + case 3: { + message.content = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 4: { + message.lastRefreshTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.observationPeriod = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 6: { + message.stateInfo = $root.google.cloud.recommender.v1beta1.InsightStateInfo.decode(reader, reader.uint32()); + break; + } + case 7: { + message.category = reader.int32(); + break; + } + case 15: { + message.severity = reader.int32(); + break; + } + case 11: { + message.etag = reader.string(); + break; + } + case 8: { + if (!(message.associatedRecommendations && message.associatedRecommendations.length)) + message.associatedRecommendations = []; + message.associatedRecommendations.push($root.google.cloud.recommender.v1beta1.Insight.RecommendationReference.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Insight message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.Insight + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.Insight} Insight + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Insight.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Insight message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.Insight + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Insight.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.targetResources != null && message.hasOwnProperty("targetResources")) { + if (!Array.isArray(message.targetResources)) + return "targetResources: array expected"; + for (var i = 0; i < message.targetResources.length; ++i) + if (!$util.isString(message.targetResources[i])) + return "targetResources: string[] expected"; + } + if (message.insightSubtype != null && message.hasOwnProperty("insightSubtype")) + if (!$util.isString(message.insightSubtype)) + return "insightSubtype: string expected"; + if (message.content != null && message.hasOwnProperty("content")) { + var error = $root.google.protobuf.Struct.verify(message.content); + if (error) + return "content." + error; + } + if (message.lastRefreshTime != null && message.hasOwnProperty("lastRefreshTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastRefreshTime); + if (error) + return "lastRefreshTime." + error; + } + if (message.observationPeriod != null && message.hasOwnProperty("observationPeriod")) { + var error = $root.google.protobuf.Duration.verify(message.observationPeriod); + if (error) + return "observationPeriod." + error; + } + if (message.stateInfo != null && message.hasOwnProperty("stateInfo")) { + var error = $root.google.cloud.recommender.v1beta1.InsightStateInfo.verify(message.stateInfo); + if (error) + return "stateInfo." + error; + } + if (message.category != null && message.hasOwnProperty("category")) + switch (message.category) { + default: + return "category: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.severity != null && message.hasOwnProperty("severity")) + switch (message.severity) { + default: + return "severity: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.associatedRecommendations != null && message.hasOwnProperty("associatedRecommendations")) { + if (!Array.isArray(message.associatedRecommendations)) + return "associatedRecommendations: array expected"; + for (var i = 0; i < message.associatedRecommendations.length; ++i) { + var error = $root.google.cloud.recommender.v1beta1.Insight.RecommendationReference.verify(message.associatedRecommendations[i]); + if (error) + return "associatedRecommendations." + error; + } + } + return null; + }; + + /** + * Creates an Insight message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.Insight + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.Insight} Insight + */ + Insight.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.Insight) + return object; + var message = new $root.google.cloud.recommender.v1beta1.Insight(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + if (object.targetResources) { + if (!Array.isArray(object.targetResources)) + throw TypeError(".google.cloud.recommender.v1beta1.Insight.targetResources: array expected"); + message.targetResources = []; + for (var i = 0; i < object.targetResources.length; ++i) + message.targetResources[i] = String(object.targetResources[i]); + } + if (object.insightSubtype != null) + message.insightSubtype = String(object.insightSubtype); + if (object.content != null) { + if (typeof object.content !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Insight.content: object expected"); + message.content = $root.google.protobuf.Struct.fromObject(object.content); + } + if (object.lastRefreshTime != null) { + if (typeof object.lastRefreshTime !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Insight.lastRefreshTime: object expected"); + message.lastRefreshTime = $root.google.protobuf.Timestamp.fromObject(object.lastRefreshTime); + } + if (object.observationPeriod != null) { + if (typeof object.observationPeriod !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Insight.observationPeriod: object expected"); + message.observationPeriod = $root.google.protobuf.Duration.fromObject(object.observationPeriod); + } + if (object.stateInfo != null) { + if (typeof object.stateInfo !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Insight.stateInfo: object expected"); + message.stateInfo = $root.google.cloud.recommender.v1beta1.InsightStateInfo.fromObject(object.stateInfo); + } + switch (object.category) { + default: + if (typeof object.category === "number") { + message.category = object.category; + break; + } + break; + case "CATEGORY_UNSPECIFIED": + case 0: + message.category = 0; + break; + case "COST": + case 1: + message.category = 1; + break; + case "SECURITY": + case 2: + message.category = 2; + break; + case "PERFORMANCE": + case 3: + message.category = 3; + break; + case "MANAGEABILITY": + case 4: + message.category = 4; + break; + } + switch (object.severity) { + default: + if (typeof object.severity === "number") { + message.severity = object.severity; + break; + } + break; + case "SEVERITY_UNSPECIFIED": + case 0: + message.severity = 0; + break; + case "LOW": + case 1: + message.severity = 1; + break; + case "MEDIUM": + case 2: + message.severity = 2; + break; + case "HIGH": + case 3: + message.severity = 3; + break; + case "CRITICAL": + case 4: + message.severity = 4; + break; + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.associatedRecommendations) { + if (!Array.isArray(object.associatedRecommendations)) + throw TypeError(".google.cloud.recommender.v1beta1.Insight.associatedRecommendations: array expected"); + message.associatedRecommendations = []; + for (var i = 0; i < object.associatedRecommendations.length; ++i) { + if (typeof object.associatedRecommendations[i] !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Insight.associatedRecommendations: object expected"); + message.associatedRecommendations[i] = $root.google.cloud.recommender.v1beta1.Insight.RecommendationReference.fromObject(object.associatedRecommendations[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an Insight message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.Insight + * @static + * @param {google.cloud.recommender.v1beta1.Insight} message Insight + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Insight.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.associatedRecommendations = []; + object.targetResources = []; + } + if (options.defaults) { + object.name = ""; + object.description = ""; + object.content = null; + object.lastRefreshTime = null; + object.observationPeriod = null; + object.stateInfo = null; + object.category = options.enums === String ? "CATEGORY_UNSPECIFIED" : 0; + object.insightSubtype = ""; + object.etag = ""; + object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.content != null && message.hasOwnProperty("content")) + object.content = $root.google.protobuf.Struct.toObject(message.content, options); + if (message.lastRefreshTime != null && message.hasOwnProperty("lastRefreshTime")) + object.lastRefreshTime = $root.google.protobuf.Timestamp.toObject(message.lastRefreshTime, options); + if (message.observationPeriod != null && message.hasOwnProperty("observationPeriod")) + object.observationPeriod = $root.google.protobuf.Duration.toObject(message.observationPeriod, options); + if (message.stateInfo != null && message.hasOwnProperty("stateInfo")) + object.stateInfo = $root.google.cloud.recommender.v1beta1.InsightStateInfo.toObject(message.stateInfo, options); + if (message.category != null && message.hasOwnProperty("category")) + object.category = options.enums === String ? $root.google.cloud.recommender.v1beta1.Insight.Category[message.category] === undefined ? message.category : $root.google.cloud.recommender.v1beta1.Insight.Category[message.category] : message.category; + if (message.associatedRecommendations && message.associatedRecommendations.length) { + object.associatedRecommendations = []; + for (var j = 0; j < message.associatedRecommendations.length; ++j) + object.associatedRecommendations[j] = $root.google.cloud.recommender.v1beta1.Insight.RecommendationReference.toObject(message.associatedRecommendations[j], options); + } + if (message.targetResources && message.targetResources.length) { + object.targetResources = []; + for (var j = 0; j < message.targetResources.length; ++j) + object.targetResources[j] = message.targetResources[j]; + } + if (message.insightSubtype != null && message.hasOwnProperty("insightSubtype")) + object.insightSubtype = message.insightSubtype; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.severity != null && message.hasOwnProperty("severity")) + object.severity = options.enums === String ? $root.google.cloud.recommender.v1beta1.Insight.Severity[message.severity] === undefined ? message.severity : $root.google.cloud.recommender.v1beta1.Insight.Severity[message.severity] : message.severity; + return object; + }; + + /** + * Converts this Insight to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.Insight + * @instance + * @returns {Object.} JSON object + */ + Insight.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Insight + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.Insight + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Insight.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.Insight"; + }; + + /** + * Category enum. + * @name google.cloud.recommender.v1beta1.Insight.Category + * @enum {number} + * @property {number} CATEGORY_UNSPECIFIED=0 CATEGORY_UNSPECIFIED value + * @property {number} COST=1 COST value + * @property {number} SECURITY=2 SECURITY value + * @property {number} PERFORMANCE=3 PERFORMANCE value + * @property {number} MANAGEABILITY=4 MANAGEABILITY value + */ + Insight.Category = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "COST"] = 1; + values[valuesById[2] = "SECURITY"] = 2; + values[valuesById[3] = "PERFORMANCE"] = 3; + values[valuesById[4] = "MANAGEABILITY"] = 4; + return values; + })(); + + /** + * Severity enum. + * @name google.cloud.recommender.v1beta1.Insight.Severity + * @enum {number} + * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value + * @property {number} LOW=1 LOW value + * @property {number} MEDIUM=2 MEDIUM value + * @property {number} HIGH=3 HIGH value + * @property {number} CRITICAL=4 CRITICAL value + */ + Insight.Severity = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "LOW"] = 1; + values[valuesById[2] = "MEDIUM"] = 2; + values[valuesById[3] = "HIGH"] = 3; + values[valuesById[4] = "CRITICAL"] = 4; + return values; + })(); + + Insight.RecommendationReference = (function() { + + /** + * Properties of a RecommendationReference. + * @memberof google.cloud.recommender.v1beta1.Insight + * @interface IRecommendationReference + * @property {string|null} [recommendation] RecommendationReference recommendation + */ + + /** + * Constructs a new RecommendationReference. + * @memberof google.cloud.recommender.v1beta1.Insight + * @classdesc Represents a RecommendationReference. + * @implements IRecommendationReference + * @constructor + * @param {google.cloud.recommender.v1beta1.Insight.IRecommendationReference=} [properties] Properties to set + */ + function RecommendationReference(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]]; + } + + /** + * RecommendationReference recommendation. + * @member {string} recommendation + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @instance + */ + RecommendationReference.prototype.recommendation = ""; + + /** + * Creates a new RecommendationReference instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @static + * @param {google.cloud.recommender.v1beta1.Insight.IRecommendationReference=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.Insight.RecommendationReference} RecommendationReference instance + */ + RecommendationReference.create = function create(properties) { + return new RecommendationReference(properties); + }; + + /** + * Encodes the specified RecommendationReference message. Does not implicitly {@link google.cloud.recommender.v1beta1.Insight.RecommendationReference.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @static + * @param {google.cloud.recommender.v1beta1.Insight.IRecommendationReference} message RecommendationReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recommendation != null && Object.hasOwnProperty.call(message, "recommendation")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recommendation); + return writer; + }; + + /** + * Encodes the specified RecommendationReference message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Insight.RecommendationReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @static + * @param {google.cloud.recommender.v1beta1.Insight.IRecommendationReference} message RecommendationReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecommendationReference message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.Insight.RecommendationReference} RecommendationReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.Insight.RecommendationReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recommendation = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecommendationReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.Insight.RecommendationReference} RecommendationReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecommendationReference message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecommendationReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recommendation != null && message.hasOwnProperty("recommendation")) + if (!$util.isString(message.recommendation)) + return "recommendation: string expected"; + return null; + }; + + /** + * Creates a RecommendationReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.Insight.RecommendationReference} RecommendationReference + */ + RecommendationReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.Insight.RecommendationReference) + return object; + var message = new $root.google.cloud.recommender.v1beta1.Insight.RecommendationReference(); + if (object.recommendation != null) + message.recommendation = String(object.recommendation); + return message; + }; + + /** + * Creates a plain object from a RecommendationReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @static + * @param {google.cloud.recommender.v1beta1.Insight.RecommendationReference} message RecommendationReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecommendationReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.recommendation = ""; + if (message.recommendation != null && message.hasOwnProperty("recommendation")) + object.recommendation = message.recommendation; + return object; + }; + + /** + * Converts this RecommendationReference to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @instance + * @returns {Object.} JSON object + */ + RecommendationReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecommendationReference + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.Insight.RecommendationReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecommendationReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.Insight.RecommendationReference"; + }; + + return RecommendationReference; + })(); + + return Insight; + })(); + + v1beta1.InsightStateInfo = (function() { + + /** + * Properties of an InsightStateInfo. + * @memberof google.cloud.recommender.v1beta1 + * @interface IInsightStateInfo + * @property {google.cloud.recommender.v1beta1.InsightStateInfo.State|null} [state] InsightStateInfo state + * @property {Object.|null} [stateMetadata] InsightStateInfo stateMetadata + */ + + /** + * Constructs a new InsightStateInfo. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents an InsightStateInfo. + * @implements IInsightStateInfo + * @constructor + * @param {google.cloud.recommender.v1beta1.IInsightStateInfo=} [properties] Properties to set + */ + function InsightStateInfo(properties) { + this.stateMetadata = {}; + 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]]; + } + + /** + * InsightStateInfo state. + * @member {google.cloud.recommender.v1beta1.InsightStateInfo.State} state + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @instance + */ + InsightStateInfo.prototype.state = 0; + + /** + * InsightStateInfo stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @instance + */ + InsightStateInfo.prototype.stateMetadata = $util.emptyObject; + + /** + * Creates a new InsightStateInfo instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @static + * @param {google.cloud.recommender.v1beta1.IInsightStateInfo=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.InsightStateInfo} InsightStateInfo instance + */ + InsightStateInfo.create = function create(properties) { + return new InsightStateInfo(properties); + }; + + /** + * Encodes the specified InsightStateInfo message. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightStateInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @static + * @param {google.cloud.recommender.v1beta1.IInsightStateInfo} message InsightStateInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightStateInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsightStateInfo message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightStateInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @static + * @param {google.cloud.recommender.v1beta1.IInsightStateInfo} message InsightStateInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightStateInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsightStateInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.InsightStateInfo} InsightStateInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightStateInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.InsightStateInfo(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.state = reader.int32(); + break; + } + case 2: { + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsightStateInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.InsightStateInfo} InsightStateInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightStateInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsightStateInfo message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsightStateInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + return null; + }; + + /** + * Creates an InsightStateInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.InsightStateInfo} InsightStateInfo + */ + InsightStateInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.InsightStateInfo) + return object; + var message = new $root.google.cloud.recommender.v1beta1.InsightStateInfo(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "ACCEPTED": + case 2: + message.state = 2; + break; + case "DISMISSED": + case 3: + message.state = 3; + break; + } + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.InsightStateInfo.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from an InsightStateInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @static + * @param {google.cloud.recommender.v1beta1.InsightStateInfo} message InsightStateInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsightStateInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.stateMetadata = {}; + if (options.defaults) + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.recommender.v1beta1.InsightStateInfo.State[message.state] === undefined ? message.state : $root.google.cloud.recommender.v1beta1.InsightStateInfo.State[message.state] : message.state; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + } + return object; + }; + + /** + * Converts this InsightStateInfo to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @instance + * @returns {Object.} JSON object + */ + InsightStateInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsightStateInfo + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.InsightStateInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsightStateInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.InsightStateInfo"; + }; + + /** + * State enum. + * @name google.cloud.recommender.v1beta1.InsightStateInfo.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} ACCEPTED=2 ACCEPTED value + * @property {number} DISMISSED=3 DISMISSED value + */ + InsightStateInfo.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "ACCEPTED"] = 2; + values[valuesById[3] = "DISMISSED"] = 3; + return values; + })(); + + return InsightStateInfo; + })(); + + v1beta1.InsightTypeConfig = (function() { + + /** + * Properties of an InsightTypeConfig. + * @memberof google.cloud.recommender.v1beta1 + * @interface IInsightTypeConfig + * @property {string|null} [name] InsightTypeConfig name + * @property {google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig|null} [insightTypeGenerationConfig] InsightTypeConfig insightTypeGenerationConfig + * @property {string|null} [etag] InsightTypeConfig etag + * @property {google.protobuf.ITimestamp|null} [updateTime] InsightTypeConfig updateTime + * @property {string|null} [revisionId] InsightTypeConfig revisionId + * @property {Object.|null} [annotations] InsightTypeConfig annotations + * @property {string|null} [displayName] InsightTypeConfig displayName + */ + + /** + * Constructs a new InsightTypeConfig. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents an InsightTypeConfig. + * @implements IInsightTypeConfig + * @constructor + * @param {google.cloud.recommender.v1beta1.IInsightTypeConfig=} [properties] Properties to set + */ + function InsightTypeConfig(properties) { + this.annotations = {}; + 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]]; + } + + /** + * InsightTypeConfig name. + * @member {string} name + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @instance + */ + InsightTypeConfig.prototype.name = ""; + + /** + * InsightTypeConfig insightTypeGenerationConfig. + * @member {google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig|null|undefined} insightTypeGenerationConfig + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @instance + */ + InsightTypeConfig.prototype.insightTypeGenerationConfig = null; + + /** + * InsightTypeConfig etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @instance + */ + InsightTypeConfig.prototype.etag = ""; + + /** + * InsightTypeConfig updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @instance + */ + InsightTypeConfig.prototype.updateTime = null; + + /** + * InsightTypeConfig revisionId. + * @member {string} revisionId + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @instance + */ + InsightTypeConfig.prototype.revisionId = ""; + + /** + * InsightTypeConfig annotations. + * @member {Object.} annotations + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @instance + */ + InsightTypeConfig.prototype.annotations = $util.emptyObject; + + /** + * InsightTypeConfig displayName. + * @member {string} displayName + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @instance + */ + InsightTypeConfig.prototype.displayName = ""; + + /** + * Creates a new InsightTypeConfig instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @static + * @param {google.cloud.recommender.v1beta1.IInsightTypeConfig=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.InsightTypeConfig} InsightTypeConfig instance + */ + InsightTypeConfig.create = function create(properties) { + return new InsightTypeConfig(properties); + }; + + /** + * Encodes the specified InsightTypeConfig message. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightTypeConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @static + * @param {google.cloud.recommender.v1beta1.IInsightTypeConfig} message InsightTypeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightTypeConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.insightTypeGenerationConfig != null && Object.hasOwnProperty.call(message, "insightTypeGenerationConfig")) + $root.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.encode(message.insightTypeGenerationConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.revisionId != null && Object.hasOwnProperty.call(message, "revisionId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.revisionId); + if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations")) + for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + return writer; + }; + + /** + * Encodes the specified InsightTypeConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightTypeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @static + * @param {google.cloud.recommender.v1beta1.IInsightTypeConfig} message InsightTypeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightTypeConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsightTypeConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.InsightTypeConfig} InsightTypeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightTypeConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.InsightTypeConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.insightTypeGenerationConfig = $root.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.etag = reader.string(); + break; + } + case 4: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.revisionId = reader.string(); + break; + } + case 6: { + if (message.annotations === $util.emptyObject) + message.annotations = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.annotations[key] = value; + break; + } + case 7: { + message.displayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsightTypeConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.InsightTypeConfig} InsightTypeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightTypeConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsightTypeConfig message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsightTypeConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.insightTypeGenerationConfig != null && message.hasOwnProperty("insightTypeGenerationConfig")) { + var error = $root.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.verify(message.insightTypeGenerationConfig); + if (error) + return "insightTypeGenerationConfig." + error; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.revisionId != null && message.hasOwnProperty("revisionId")) + if (!$util.isString(message.revisionId)) + return "revisionId: string expected"; + if (message.annotations != null && message.hasOwnProperty("annotations")) { + if (!$util.isObject(message.annotations)) + return "annotations: object expected"; + var key = Object.keys(message.annotations); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.annotations[key[i]])) + return "annotations: string{k:string} expected"; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates an InsightTypeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.InsightTypeConfig} InsightTypeConfig + */ + InsightTypeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.InsightTypeConfig) + return object; + var message = new $root.google.cloud.recommender.v1beta1.InsightTypeConfig(); + if (object.name != null) + message.name = String(object.name); + if (object.insightTypeGenerationConfig != null) { + if (typeof object.insightTypeGenerationConfig !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.InsightTypeConfig.insightTypeGenerationConfig: object expected"); + message.insightTypeGenerationConfig = $root.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.fromObject(object.insightTypeGenerationConfig); + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.InsightTypeConfig.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.revisionId != null) + message.revisionId = String(object.revisionId); + if (object.annotations) { + if (typeof object.annotations !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.InsightTypeConfig.annotations: object expected"); + message.annotations = {}; + for (var keys = Object.keys(object.annotations), i = 0; i < keys.length; ++i) + message.annotations[keys[i]] = String(object.annotations[keys[i]]); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from an InsightTypeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @static + * @param {google.cloud.recommender.v1beta1.InsightTypeConfig} message InsightTypeConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsightTypeConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.annotations = {}; + if (options.defaults) { + object.name = ""; + object.insightTypeGenerationConfig = null; + object.etag = ""; + object.updateTime = null; + object.revisionId = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.insightTypeGenerationConfig != null && message.hasOwnProperty("insightTypeGenerationConfig")) + object.insightTypeGenerationConfig = $root.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.toObject(message.insightTypeGenerationConfig, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.revisionId != null && message.hasOwnProperty("revisionId")) + object.revisionId = message.revisionId; + var keys2; + if (message.annotations && (keys2 = Object.keys(message.annotations)).length) { + object.annotations = {}; + for (var j = 0; j < keys2.length; ++j) + object.annotations[keys2[j]] = message.annotations[keys2[j]]; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this InsightTypeConfig to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @instance + * @returns {Object.} JSON object + */ + InsightTypeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsightTypeConfig + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.InsightTypeConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsightTypeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.InsightTypeConfig"; + }; + + return InsightTypeConfig; + })(); + + v1beta1.InsightTypeGenerationConfig = (function() { + + /** + * Properties of an InsightTypeGenerationConfig. + * @memberof google.cloud.recommender.v1beta1 + * @interface IInsightTypeGenerationConfig + * @property {google.protobuf.IStruct|null} [params] InsightTypeGenerationConfig params + */ + + /** + * Constructs a new InsightTypeGenerationConfig. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents an InsightTypeGenerationConfig. + * @implements IInsightTypeGenerationConfig + * @constructor + * @param {google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig=} [properties] Properties to set + */ + function InsightTypeGenerationConfig(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]]; + } + + /** + * InsightTypeGenerationConfig params. + * @member {google.protobuf.IStruct|null|undefined} params + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @instance + */ + InsightTypeGenerationConfig.prototype.params = null; + + /** + * Creates a new InsightTypeGenerationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @static + * @param {google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.InsightTypeGenerationConfig} InsightTypeGenerationConfig instance + */ + InsightTypeGenerationConfig.create = function create(properties) { + return new InsightTypeGenerationConfig(properties); + }; + + /** + * Encodes the specified InsightTypeGenerationConfig message. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @static + * @param {google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig} message InsightTypeGenerationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightTypeGenerationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.protobuf.Struct.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsightTypeGenerationConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @static + * @param {google.cloud.recommender.v1beta1.IInsightTypeGenerationConfig} message InsightTypeGenerationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightTypeGenerationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsightTypeGenerationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.InsightTypeGenerationConfig} InsightTypeGenerationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightTypeGenerationConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.params = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsightTypeGenerationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.InsightTypeGenerationConfig} InsightTypeGenerationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightTypeGenerationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsightTypeGenerationConfig message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsightTypeGenerationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.google.protobuf.Struct.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; + + /** + * Creates an InsightTypeGenerationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.InsightTypeGenerationConfig} InsightTypeGenerationConfig + */ + InsightTypeGenerationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig) + return object; + var message = new $root.google.cloud.recommender.v1beta1.InsightTypeGenerationConfig(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.InsightTypeGenerationConfig.params: object expected"); + message.params = $root.google.protobuf.Struct.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from an InsightTypeGenerationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @static + * @param {google.cloud.recommender.v1beta1.InsightTypeGenerationConfig} message InsightTypeGenerationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsightTypeGenerationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.google.protobuf.Struct.toObject(message.params, options); + return object; + }; + + /** + * Converts this InsightTypeGenerationConfig to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @instance + * @returns {Object.} JSON object + */ + InsightTypeGenerationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsightTypeGenerationConfig + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.InsightTypeGenerationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsightTypeGenerationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.InsightTypeGenerationConfig"; + }; + + return InsightTypeGenerationConfig; + })(); + + v1beta1.Recommendation = (function() { + + /** + * Properties of a Recommendation. + * @memberof google.cloud.recommender.v1beta1 + * @interface IRecommendation + * @property {string|null} [name] Recommendation name + * @property {string|null} [description] Recommendation description + * @property {string|null} [recommenderSubtype] Recommendation recommenderSubtype + * @property {google.protobuf.ITimestamp|null} [lastRefreshTime] Recommendation lastRefreshTime + * @property {google.cloud.recommender.v1beta1.IImpact|null} [primaryImpact] Recommendation primaryImpact + * @property {Array.|null} [additionalImpact] Recommendation additionalImpact + * @property {google.cloud.recommender.v1beta1.Recommendation.Priority|null} [priority] Recommendation priority + * @property {google.cloud.recommender.v1beta1.IRecommendationContent|null} [content] Recommendation content + * @property {google.cloud.recommender.v1beta1.IRecommendationStateInfo|null} [stateInfo] Recommendation stateInfo + * @property {string|null} [etag] Recommendation etag + * @property {Array.|null} [associatedInsights] Recommendation associatedInsights + * @property {string|null} [xorGroupId] Recommendation xorGroupId + */ + + /** + * Constructs a new Recommendation. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a Recommendation. + * @implements IRecommendation + * @constructor + * @param {google.cloud.recommender.v1beta1.IRecommendation=} [properties] Properties to set + */ + function Recommendation(properties) { + this.additionalImpact = []; + this.associatedInsights = []; + 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]]; + } + + /** + * Recommendation name. + * @member {string} name + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.name = ""; + + /** + * Recommendation description. + * @member {string} description + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.description = ""; + + /** + * Recommendation recommenderSubtype. + * @member {string} recommenderSubtype + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.recommenderSubtype = ""; + + /** + * Recommendation lastRefreshTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastRefreshTime + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.lastRefreshTime = null; + + /** + * Recommendation primaryImpact. + * @member {google.cloud.recommender.v1beta1.IImpact|null|undefined} primaryImpact + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.primaryImpact = null; + + /** + * Recommendation additionalImpact. + * @member {Array.} additionalImpact + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.additionalImpact = $util.emptyArray; + + /** + * Recommendation priority. + * @member {google.cloud.recommender.v1beta1.Recommendation.Priority} priority + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.priority = 0; + + /** + * Recommendation content. + * @member {google.cloud.recommender.v1beta1.IRecommendationContent|null|undefined} content + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.content = null; + + /** + * Recommendation stateInfo. + * @member {google.cloud.recommender.v1beta1.IRecommendationStateInfo|null|undefined} stateInfo + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.stateInfo = null; + + /** + * Recommendation etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.etag = ""; + + /** + * Recommendation associatedInsights. + * @member {Array.} associatedInsights + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.associatedInsights = $util.emptyArray; + + /** + * Recommendation xorGroupId. + * @member {string} xorGroupId + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + */ + Recommendation.prototype.xorGroupId = ""; + + /** + * Creates a new Recommendation instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @static + * @param {google.cloud.recommender.v1beta1.IRecommendation=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.Recommendation} Recommendation instance + */ + Recommendation.create = function create(properties) { + return new Recommendation(properties); + }; + + /** + * Encodes the specified Recommendation message. Does not implicitly {@link google.cloud.recommender.v1beta1.Recommendation.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @static + * @param {google.cloud.recommender.v1beta1.IRecommendation} message Recommendation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Recommendation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.lastRefreshTime != null && Object.hasOwnProperty.call(message, "lastRefreshTime")) + $root.google.protobuf.Timestamp.encode(message.lastRefreshTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.primaryImpact != null && Object.hasOwnProperty.call(message, "primaryImpact")) + $root.google.cloud.recommender.v1beta1.Impact.encode(message.primaryImpact, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.additionalImpact != null && message.additionalImpact.length) + for (var i = 0; i < message.additionalImpact.length; ++i) + $root.google.cloud.recommender.v1beta1.Impact.encode(message.additionalImpact[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + $root.google.cloud.recommender.v1beta1.RecommendationContent.encode(message.content, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.stateInfo != null && Object.hasOwnProperty.call(message, "stateInfo")) + $root.google.cloud.recommender.v1beta1.RecommendationStateInfo.encode(message.stateInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.etag); + if (message.recommenderSubtype != null && Object.hasOwnProperty.call(message, "recommenderSubtype")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.recommenderSubtype); + if (message.associatedInsights != null && message.associatedInsights.length) + for (var i = 0; i < message.associatedInsights.length; ++i) + $root.google.cloud.recommender.v1beta1.Recommendation.InsightReference.encode(message.associatedInsights[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.priority); + if (message.xorGroupId != null && Object.hasOwnProperty.call(message, "xorGroupId")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.xorGroupId); + return writer; + }; + + /** + * Encodes the specified Recommendation message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Recommendation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @static + * @param {google.cloud.recommender.v1beta1.IRecommendation} message Recommendation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Recommendation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Recommendation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.Recommendation} Recommendation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Recommendation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.Recommendation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.description = reader.string(); + break; + } + case 12: { + message.recommenderSubtype = reader.string(); + break; + } + case 4: { + message.lastRefreshTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.primaryImpact = $root.google.cloud.recommender.v1beta1.Impact.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.additionalImpact && message.additionalImpact.length)) + message.additionalImpact = []; + message.additionalImpact.push($root.google.cloud.recommender.v1beta1.Impact.decode(reader, reader.uint32())); + break; + } + case 17: { + message.priority = reader.int32(); + break; + } + case 7: { + message.content = $root.google.cloud.recommender.v1beta1.RecommendationContent.decode(reader, reader.uint32()); + break; + } + case 10: { + message.stateInfo = $root.google.cloud.recommender.v1beta1.RecommendationStateInfo.decode(reader, reader.uint32()); + break; + } + case 11: { + message.etag = reader.string(); + break; + } + case 14: { + if (!(message.associatedInsights && message.associatedInsights.length)) + message.associatedInsights = []; + message.associatedInsights.push($root.google.cloud.recommender.v1beta1.Recommendation.InsightReference.decode(reader, reader.uint32())); + break; + } + case 18: { + message.xorGroupId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Recommendation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.Recommendation} Recommendation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Recommendation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Recommendation message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Recommendation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.recommenderSubtype != null && message.hasOwnProperty("recommenderSubtype")) + if (!$util.isString(message.recommenderSubtype)) + return "recommenderSubtype: string expected"; + if (message.lastRefreshTime != null && message.hasOwnProperty("lastRefreshTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastRefreshTime); + if (error) + return "lastRefreshTime." + error; + } + if (message.primaryImpact != null && message.hasOwnProperty("primaryImpact")) { + var error = $root.google.cloud.recommender.v1beta1.Impact.verify(message.primaryImpact); + if (error) + return "primaryImpact." + error; + } + if (message.additionalImpact != null && message.hasOwnProperty("additionalImpact")) { + if (!Array.isArray(message.additionalImpact)) + return "additionalImpact: array expected"; + for (var i = 0; i < message.additionalImpact.length; ++i) { + var error = $root.google.cloud.recommender.v1beta1.Impact.verify(message.additionalImpact[i]); + if (error) + return "additionalImpact." + error; + } + } + if (message.priority != null && message.hasOwnProperty("priority")) + switch (message.priority) { + default: + return "priority: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.content != null && message.hasOwnProperty("content")) { + var error = $root.google.cloud.recommender.v1beta1.RecommendationContent.verify(message.content); + if (error) + return "content." + error; + } + if (message.stateInfo != null && message.hasOwnProperty("stateInfo")) { + var error = $root.google.cloud.recommender.v1beta1.RecommendationStateInfo.verify(message.stateInfo); + if (error) + return "stateInfo." + error; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.associatedInsights != null && message.hasOwnProperty("associatedInsights")) { + if (!Array.isArray(message.associatedInsights)) + return "associatedInsights: array expected"; + for (var i = 0; i < message.associatedInsights.length; ++i) { + var error = $root.google.cloud.recommender.v1beta1.Recommendation.InsightReference.verify(message.associatedInsights[i]); + if (error) + return "associatedInsights." + error; + } + } + if (message.xorGroupId != null && message.hasOwnProperty("xorGroupId")) + if (!$util.isString(message.xorGroupId)) + return "xorGroupId: string expected"; + return null; + }; + + /** + * Creates a Recommendation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.Recommendation} Recommendation + */ + Recommendation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.Recommendation) + return object; + var message = new $root.google.cloud.recommender.v1beta1.Recommendation(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + if (object.recommenderSubtype != null) + message.recommenderSubtype = String(object.recommenderSubtype); + if (object.lastRefreshTime != null) { + if (typeof object.lastRefreshTime !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Recommendation.lastRefreshTime: object expected"); + message.lastRefreshTime = $root.google.protobuf.Timestamp.fromObject(object.lastRefreshTime); + } + if (object.primaryImpact != null) { + if (typeof object.primaryImpact !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Recommendation.primaryImpact: object expected"); + message.primaryImpact = $root.google.cloud.recommender.v1beta1.Impact.fromObject(object.primaryImpact); + } + if (object.additionalImpact) { + if (!Array.isArray(object.additionalImpact)) + throw TypeError(".google.cloud.recommender.v1beta1.Recommendation.additionalImpact: array expected"); + message.additionalImpact = []; + for (var i = 0; i < object.additionalImpact.length; ++i) { + if (typeof object.additionalImpact[i] !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Recommendation.additionalImpact: object expected"); + message.additionalImpact[i] = $root.google.cloud.recommender.v1beta1.Impact.fromObject(object.additionalImpact[i]); + } + } + switch (object.priority) { + default: + if (typeof object.priority === "number") { + message.priority = object.priority; + break; + } + break; + case "PRIORITY_UNSPECIFIED": + case 0: + message.priority = 0; + break; + case "P4": + case 1: + message.priority = 1; + break; + case "P3": + case 2: + message.priority = 2; + break; + case "P2": + case 3: + message.priority = 3; + break; + case "P1": + case 4: + message.priority = 4; + break; + } + if (object.content != null) { + if (typeof object.content !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Recommendation.content: object expected"); + message.content = $root.google.cloud.recommender.v1beta1.RecommendationContent.fromObject(object.content); + } + if (object.stateInfo != null) { + if (typeof object.stateInfo !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Recommendation.stateInfo: object expected"); + message.stateInfo = $root.google.cloud.recommender.v1beta1.RecommendationStateInfo.fromObject(object.stateInfo); + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.associatedInsights) { + if (!Array.isArray(object.associatedInsights)) + throw TypeError(".google.cloud.recommender.v1beta1.Recommendation.associatedInsights: array expected"); + message.associatedInsights = []; + for (var i = 0; i < object.associatedInsights.length; ++i) { + if (typeof object.associatedInsights[i] !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Recommendation.associatedInsights: object expected"); + message.associatedInsights[i] = $root.google.cloud.recommender.v1beta1.Recommendation.InsightReference.fromObject(object.associatedInsights[i]); + } + } + if (object.xorGroupId != null) + message.xorGroupId = String(object.xorGroupId); + return message; + }; + + /** + * Creates a plain object from a Recommendation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @static + * @param {google.cloud.recommender.v1beta1.Recommendation} message Recommendation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Recommendation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.additionalImpact = []; + object.associatedInsights = []; + } + if (options.defaults) { + object.name = ""; + object.description = ""; + object.lastRefreshTime = null; + object.primaryImpact = null; + object.content = null; + object.stateInfo = null; + object.etag = ""; + object.recommenderSubtype = ""; + object.priority = options.enums === String ? "PRIORITY_UNSPECIFIED" : 0; + object.xorGroupId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.lastRefreshTime != null && message.hasOwnProperty("lastRefreshTime")) + object.lastRefreshTime = $root.google.protobuf.Timestamp.toObject(message.lastRefreshTime, options); + if (message.primaryImpact != null && message.hasOwnProperty("primaryImpact")) + object.primaryImpact = $root.google.cloud.recommender.v1beta1.Impact.toObject(message.primaryImpact, options); + if (message.additionalImpact && message.additionalImpact.length) { + object.additionalImpact = []; + for (var j = 0; j < message.additionalImpact.length; ++j) + object.additionalImpact[j] = $root.google.cloud.recommender.v1beta1.Impact.toObject(message.additionalImpact[j], options); + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = $root.google.cloud.recommender.v1beta1.RecommendationContent.toObject(message.content, options); + if (message.stateInfo != null && message.hasOwnProperty("stateInfo")) + object.stateInfo = $root.google.cloud.recommender.v1beta1.RecommendationStateInfo.toObject(message.stateInfo, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.recommenderSubtype != null && message.hasOwnProperty("recommenderSubtype")) + object.recommenderSubtype = message.recommenderSubtype; + if (message.associatedInsights && message.associatedInsights.length) { + object.associatedInsights = []; + for (var j = 0; j < message.associatedInsights.length; ++j) + object.associatedInsights[j] = $root.google.cloud.recommender.v1beta1.Recommendation.InsightReference.toObject(message.associatedInsights[j], options); + } + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = options.enums === String ? $root.google.cloud.recommender.v1beta1.Recommendation.Priority[message.priority] === undefined ? message.priority : $root.google.cloud.recommender.v1beta1.Recommendation.Priority[message.priority] : message.priority; + if (message.xorGroupId != null && message.hasOwnProperty("xorGroupId")) + object.xorGroupId = message.xorGroupId; + return object; + }; + + /** + * Converts this Recommendation to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @instance + * @returns {Object.} JSON object + */ + Recommendation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Recommendation + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Recommendation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.Recommendation"; + }; + + /** + * Priority enum. + * @name google.cloud.recommender.v1beta1.Recommendation.Priority + * @enum {number} + * @property {number} PRIORITY_UNSPECIFIED=0 PRIORITY_UNSPECIFIED value + * @property {number} P4=1 P4 value + * @property {number} P3=2 P3 value + * @property {number} P2=3 P2 value + * @property {number} P1=4 P1 value + */ + Recommendation.Priority = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PRIORITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "P4"] = 1; + values[valuesById[2] = "P3"] = 2; + values[valuesById[3] = "P2"] = 3; + values[valuesById[4] = "P1"] = 4; + return values; + })(); + + Recommendation.InsightReference = (function() { + + /** + * Properties of an InsightReference. + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @interface IInsightReference + * @property {string|null} [insight] InsightReference insight + */ + + /** + * Constructs a new InsightReference. + * @memberof google.cloud.recommender.v1beta1.Recommendation + * @classdesc Represents an InsightReference. + * @implements IInsightReference + * @constructor + * @param {google.cloud.recommender.v1beta1.Recommendation.IInsightReference=} [properties] Properties to set + */ + function InsightReference(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]]; + } + + /** + * InsightReference insight. + * @member {string} insight + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @instance + */ + InsightReference.prototype.insight = ""; + + /** + * Creates a new InsightReference instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @static + * @param {google.cloud.recommender.v1beta1.Recommendation.IInsightReference=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.Recommendation.InsightReference} InsightReference instance + */ + InsightReference.create = function create(properties) { + return new InsightReference(properties); + }; + + /** + * Encodes the specified InsightReference message. Does not implicitly {@link google.cloud.recommender.v1beta1.Recommendation.InsightReference.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @static + * @param {google.cloud.recommender.v1beta1.Recommendation.IInsightReference} message InsightReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.insight != null && Object.hasOwnProperty.call(message, "insight")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.insight); + return writer; + }; + + /** + * Encodes the specified InsightReference message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Recommendation.InsightReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @static + * @param {google.cloud.recommender.v1beta1.Recommendation.IInsightReference} message InsightReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsightReference message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.Recommendation.InsightReference} InsightReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.Recommendation.InsightReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.insight = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsightReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.Recommendation.InsightReference} InsightReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsightReference message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsightReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.insight != null && message.hasOwnProperty("insight")) + if (!$util.isString(message.insight)) + return "insight: string expected"; + return null; + }; + + /** + * Creates an InsightReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.Recommendation.InsightReference} InsightReference + */ + InsightReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.Recommendation.InsightReference) + return object; + var message = new $root.google.cloud.recommender.v1beta1.Recommendation.InsightReference(); + if (object.insight != null) + message.insight = String(object.insight); + return message; + }; + + /** + * Creates a plain object from an InsightReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @static + * @param {google.cloud.recommender.v1beta1.Recommendation.InsightReference} message InsightReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsightReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.insight = ""; + if (message.insight != null && message.hasOwnProperty("insight")) + object.insight = message.insight; + return object; + }; + + /** + * Converts this InsightReference to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @instance + * @returns {Object.} JSON object + */ + InsightReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsightReference + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.Recommendation.InsightReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsightReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.Recommendation.InsightReference"; + }; + + return InsightReference; + })(); + + return Recommendation; + })(); + + v1beta1.RecommendationContent = (function() { + + /** + * Properties of a RecommendationContent. + * @memberof google.cloud.recommender.v1beta1 + * @interface IRecommendationContent + * @property {Array.|null} [operationGroups] RecommendationContent operationGroups + * @property {google.protobuf.IStruct|null} [overview] RecommendationContent overview + */ + + /** + * Constructs a new RecommendationContent. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a RecommendationContent. + * @implements IRecommendationContent + * @constructor + * @param {google.cloud.recommender.v1beta1.IRecommendationContent=} [properties] Properties to set + */ + function RecommendationContent(properties) { + this.operationGroups = []; + 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]]; + } + + /** + * RecommendationContent operationGroups. + * @member {Array.} operationGroups + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @instance + */ + RecommendationContent.prototype.operationGroups = $util.emptyArray; + + /** + * RecommendationContent overview. + * @member {google.protobuf.IStruct|null|undefined} overview + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @instance + */ + RecommendationContent.prototype.overview = null; + + /** + * Creates a new RecommendationContent instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @static + * @param {google.cloud.recommender.v1beta1.IRecommendationContent=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.RecommendationContent} RecommendationContent instance + */ + RecommendationContent.create = function create(properties) { + return new RecommendationContent(properties); + }; + + /** + * Encodes the specified RecommendationContent message. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommendationContent.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @static + * @param {google.cloud.recommender.v1beta1.IRecommendationContent} message RecommendationContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationContent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operationGroups != null && message.operationGroups.length) + for (var i = 0; i < message.operationGroups.length; ++i) + $root.google.cloud.recommender.v1beta1.OperationGroup.encode(message.operationGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.overview != null && Object.hasOwnProperty.call(message, "overview")) + $root.google.protobuf.Struct.encode(message.overview, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RecommendationContent message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommendationContent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @static + * @param {google.cloud.recommender.v1beta1.IRecommendationContent} message RecommendationContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationContent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecommendationContent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.RecommendationContent} RecommendationContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationContent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.RecommendationContent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.operationGroups && message.operationGroups.length)) + message.operationGroups = []; + message.operationGroups.push($root.google.cloud.recommender.v1beta1.OperationGroup.decode(reader, reader.uint32())); + break; + } + case 3: { + message.overview = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecommendationContent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.RecommendationContent} RecommendationContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationContent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecommendationContent message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecommendationContent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operationGroups != null && message.hasOwnProperty("operationGroups")) { + if (!Array.isArray(message.operationGroups)) + return "operationGroups: array expected"; + for (var i = 0; i < message.operationGroups.length; ++i) { + var error = $root.google.cloud.recommender.v1beta1.OperationGroup.verify(message.operationGroups[i]); + if (error) + return "operationGroups." + error; + } + } + if (message.overview != null && message.hasOwnProperty("overview")) { + var error = $root.google.protobuf.Struct.verify(message.overview); + if (error) + return "overview." + error; + } + return null; + }; + + /** + * Creates a RecommendationContent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.RecommendationContent} RecommendationContent + */ + RecommendationContent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.RecommendationContent) + return object; + var message = new $root.google.cloud.recommender.v1beta1.RecommendationContent(); + if (object.operationGroups) { + if (!Array.isArray(object.operationGroups)) + throw TypeError(".google.cloud.recommender.v1beta1.RecommendationContent.operationGroups: array expected"); + message.operationGroups = []; + for (var i = 0; i < object.operationGroups.length; ++i) { + if (typeof object.operationGroups[i] !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.RecommendationContent.operationGroups: object expected"); + message.operationGroups[i] = $root.google.cloud.recommender.v1beta1.OperationGroup.fromObject(object.operationGroups[i]); + } + } + if (object.overview != null) { + if (typeof object.overview !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.RecommendationContent.overview: object expected"); + message.overview = $root.google.protobuf.Struct.fromObject(object.overview); + } + return message; + }; + + /** + * Creates a plain object from a RecommendationContent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @static + * @param {google.cloud.recommender.v1beta1.RecommendationContent} message RecommendationContent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecommendationContent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.operationGroups = []; + if (options.defaults) + object.overview = null; + if (message.operationGroups && message.operationGroups.length) { + object.operationGroups = []; + for (var j = 0; j < message.operationGroups.length; ++j) + object.operationGroups[j] = $root.google.cloud.recommender.v1beta1.OperationGroup.toObject(message.operationGroups[j], options); + } + if (message.overview != null && message.hasOwnProperty("overview")) + object.overview = $root.google.protobuf.Struct.toObject(message.overview, options); + return object; + }; + + /** + * Converts this RecommendationContent to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @instance + * @returns {Object.} JSON object + */ + RecommendationContent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecommendationContent + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.RecommendationContent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecommendationContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.RecommendationContent"; + }; + + return RecommendationContent; + })(); + + v1beta1.OperationGroup = (function() { + + /** + * Properties of an OperationGroup. + * @memberof google.cloud.recommender.v1beta1 + * @interface IOperationGroup + * @property {Array.|null} [operations] OperationGroup operations + */ + + /** + * Constructs a new OperationGroup. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents an OperationGroup. + * @implements IOperationGroup + * @constructor + * @param {google.cloud.recommender.v1beta1.IOperationGroup=} [properties] Properties to set + */ + function OperationGroup(properties) { + this.operations = []; + 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]]; + } + + /** + * OperationGroup operations. + * @member {Array.} operations + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @instance + */ + OperationGroup.prototype.operations = $util.emptyArray; + + /** + * Creates a new OperationGroup instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @static + * @param {google.cloud.recommender.v1beta1.IOperationGroup=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.OperationGroup} OperationGroup instance + */ + OperationGroup.create = function create(properties) { + return new OperationGroup(properties); + }; + + /** + * Encodes the specified OperationGroup message. Does not implicitly {@link google.cloud.recommender.v1beta1.OperationGroup.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @static + * @param {google.cloud.recommender.v1beta1.IOperationGroup} message OperationGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationGroup.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operations != null && message.operations.length) + for (var i = 0; i < message.operations.length; ++i) + $root.google.cloud.recommender.v1beta1.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OperationGroup message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.OperationGroup.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @static + * @param {google.cloud.recommender.v1beta1.IOperationGroup} message OperationGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationGroup.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OperationGroup message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.OperationGroup} OperationGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationGroup.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.OperationGroup(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.operations && message.operations.length)) + message.operations = []; + message.operations.push($root.google.cloud.recommender.v1beta1.Operation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OperationGroup message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.OperationGroup} OperationGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationGroup.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OperationGroup message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OperationGroup.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operations != null && message.hasOwnProperty("operations")) { + if (!Array.isArray(message.operations)) + return "operations: array expected"; + for (var i = 0; i < message.operations.length; ++i) { + var error = $root.google.cloud.recommender.v1beta1.Operation.verify(message.operations[i]); + if (error) + return "operations." + error; + } + } + return null; + }; + + /** + * Creates an OperationGroup message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.OperationGroup} OperationGroup + */ + OperationGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.OperationGroup) + return object; + var message = new $root.google.cloud.recommender.v1beta1.OperationGroup(); + if (object.operations) { + if (!Array.isArray(object.operations)) + throw TypeError(".google.cloud.recommender.v1beta1.OperationGroup.operations: array expected"); + message.operations = []; + for (var i = 0; i < object.operations.length; ++i) { + if (typeof object.operations[i] !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.OperationGroup.operations: object expected"); + message.operations[i] = $root.google.cloud.recommender.v1beta1.Operation.fromObject(object.operations[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OperationGroup message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @static + * @param {google.cloud.recommender.v1beta1.OperationGroup} message OperationGroup + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OperationGroup.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.operations = []; + if (message.operations && message.operations.length) { + object.operations = []; + for (var j = 0; j < message.operations.length; ++j) + object.operations[j] = $root.google.cloud.recommender.v1beta1.Operation.toObject(message.operations[j], options); + } + return object; + }; + + /** + * Converts this OperationGroup to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @instance + * @returns {Object.} JSON object + */ + OperationGroup.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OperationGroup + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.OperationGroup + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OperationGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.OperationGroup"; + }; + + return OperationGroup; + })(); + + v1beta1.Operation = (function() { + + /** + * Properties of an Operation. + * @memberof google.cloud.recommender.v1beta1 + * @interface IOperation + * @property {string|null} [action] Operation action + * @property {string|null} [resourceType] Operation resourceType + * @property {string|null} [resource] Operation resource + * @property {string|null} [path] Operation path + * @property {string|null} [sourceResource] Operation sourceResource + * @property {string|null} [sourcePath] Operation sourcePath + * @property {google.protobuf.IValue|null} [value] Operation value + * @property {google.cloud.recommender.v1beta1.IValueMatcher|null} [valueMatcher] Operation valueMatcher + * @property {Object.|null} [pathFilters] Operation pathFilters + * @property {Object.|null} [pathValueMatchers] Operation pathValueMatchers + */ + + /** + * Constructs a new Operation. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents an Operation. + * @implements IOperation + * @constructor + * @param {google.cloud.recommender.v1beta1.IOperation=} [properties] Properties to set + */ + function Operation(properties) { + this.pathFilters = {}; + this.pathValueMatchers = {}; + 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]]; + } + + /** + * Operation action. + * @member {string} action + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.action = ""; + + /** + * Operation resourceType. + * @member {string} resourceType + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.resourceType = ""; + + /** + * Operation resource. + * @member {string} resource + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.resource = ""; + + /** + * Operation path. + * @member {string} path + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.path = ""; + + /** + * Operation sourceResource. + * @member {string} sourceResource + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.sourceResource = ""; + + /** + * Operation sourcePath. + * @member {string} sourcePath + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.sourcePath = ""; + + /** + * Operation value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.value = null; + + /** + * Operation valueMatcher. + * @member {google.cloud.recommender.v1beta1.IValueMatcher|null|undefined} valueMatcher + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.valueMatcher = null; + + /** + * Operation pathFilters. + * @member {Object.} pathFilters + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.pathFilters = $util.emptyObject; + + /** + * Operation pathValueMatchers. + * @member {Object.} pathValueMatchers + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Operation.prototype.pathValueMatchers = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Operation pathValue. + * @member {"value"|"valueMatcher"|undefined} pathValue + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + */ + Object.defineProperty(Operation.prototype, "pathValue", { + get: $util.oneOfGetter($oneOfFields = ["value", "valueMatcher"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Operation instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.Operation + * @static + * @param {google.cloud.recommender.v1beta1.IOperation=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.Operation} Operation instance + */ + Operation.create = function create(properties) { + return new Operation(properties); + }; + + /** + * Encodes the specified Operation message. Does not implicitly {@link google.cloud.recommender.v1beta1.Operation.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.Operation + * @static + * @param {google.cloud.recommender.v1beta1.IOperation} message Operation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.action); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.resourceType); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.path); + if (message.sourceResource != null && Object.hasOwnProperty.call(message, "sourceResource")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sourceResource); + if (message.sourcePath != null && Object.hasOwnProperty.call(message, "sourcePath")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.sourcePath); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.pathFilters != null && Object.hasOwnProperty.call(message, "pathFilters")) + for (var keys = Object.keys(message.pathFilters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.pathFilters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.valueMatcher != null && Object.hasOwnProperty.call(message, "valueMatcher")) + $root.google.cloud.recommender.v1beta1.ValueMatcher.encode(message.valueMatcher, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.pathValueMatchers != null && Object.hasOwnProperty.call(message, "pathValueMatchers")) + for (var keys = Object.keys(message.pathValueMatchers), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.recommender.v1beta1.ValueMatcher.encode(message.pathValueMatchers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Operation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.Operation + * @static + * @param {google.cloud.recommender.v1beta1.IOperation} message Operation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Operation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.Operation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.Operation} Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.Operation(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.action = reader.string(); + break; + } + case 2: { + message.resourceType = reader.string(); + break; + } + case 3: { + message.resource = reader.string(); + break; + } + case 4: { + message.path = reader.string(); + break; + } + case 5: { + message.sourceResource = reader.string(); + break; + } + case 6: { + message.sourcePath = reader.string(); + break; + } + case 7: { + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 10: { + message.valueMatcher = $root.google.cloud.recommender.v1beta1.ValueMatcher.decode(reader, reader.uint32()); + break; + } + case 8: { + if (message.pathFilters === $util.emptyObject) + message.pathFilters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.pathFilters[key] = value; + break; + } + case 11: { + if (message.pathValueMatchers === $util.emptyObject) + message.pathValueMatchers = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.recommender.v1beta1.ValueMatcher.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.pathValueMatchers[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Operation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.Operation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.Operation} Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Operation message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.Operation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Operation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.action != null && message.hasOwnProperty("action")) + if (!$util.isString(message.action)) + return "action: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + if (!$util.isString(message.resourceType)) + return "resourceType: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.sourceResource != null && message.hasOwnProperty("sourceResource")) + if (!$util.isString(message.sourceResource)) + return "sourceResource: string expected"; + if (message.sourcePath != null && message.hasOwnProperty("sourcePath")) + if (!$util.isString(message.sourcePath)) + return "sourcePath: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + properties.pathValue = 1; + { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; + } + } + if (message.valueMatcher != null && message.hasOwnProperty("valueMatcher")) { + if (properties.pathValue === 1) + return "pathValue: multiple values"; + properties.pathValue = 1; + { + var error = $root.google.cloud.recommender.v1beta1.ValueMatcher.verify(message.valueMatcher); + if (error) + return "valueMatcher." + error; + } + } + if (message.pathFilters != null && message.hasOwnProperty("pathFilters")) { + if (!$util.isObject(message.pathFilters)) + return "pathFilters: object expected"; + var key = Object.keys(message.pathFilters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.pathFilters[key[i]]); + if (error) + return "pathFilters." + error; + } + } + if (message.pathValueMatchers != null && message.hasOwnProperty("pathValueMatchers")) { + if (!$util.isObject(message.pathValueMatchers)) + return "pathValueMatchers: object expected"; + var key = Object.keys(message.pathValueMatchers); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.recommender.v1beta1.ValueMatcher.verify(message.pathValueMatchers[key[i]]); + if (error) + return "pathValueMatchers." + error; + } + } + return null; + }; + + /** + * Creates an Operation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.Operation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.Operation} Operation + */ + Operation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.Operation) + return object; + var message = new $root.google.cloud.recommender.v1beta1.Operation(); + if (object.action != null) + message.action = String(object.action); + if (object.resourceType != null) + message.resourceType = String(object.resourceType); + if (object.resource != null) + message.resource = String(object.resource); + if (object.path != null) + message.path = String(object.path); + if (object.sourceResource != null) + message.sourceResource = String(object.sourceResource); + if (object.sourcePath != null) + message.sourcePath = String(object.sourcePath); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Operation.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); + } + if (object.valueMatcher != null) { + if (typeof object.valueMatcher !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Operation.valueMatcher: object expected"); + message.valueMatcher = $root.google.cloud.recommender.v1beta1.ValueMatcher.fromObject(object.valueMatcher); + } + if (object.pathFilters) { + if (typeof object.pathFilters !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Operation.pathFilters: object expected"); + message.pathFilters = {}; + for (var keys = Object.keys(object.pathFilters), i = 0; i < keys.length; ++i) { + if (typeof object.pathFilters[keys[i]] !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Operation.pathFilters: object expected"); + message.pathFilters[keys[i]] = $root.google.protobuf.Value.fromObject(object.pathFilters[keys[i]]); + } + } + if (object.pathValueMatchers) { + if (typeof object.pathValueMatchers !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Operation.pathValueMatchers: object expected"); + message.pathValueMatchers = {}; + for (var keys = Object.keys(object.pathValueMatchers), i = 0; i < keys.length; ++i) { + if (typeof object.pathValueMatchers[keys[i]] !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Operation.pathValueMatchers: object expected"); + message.pathValueMatchers[keys[i]] = $root.google.cloud.recommender.v1beta1.ValueMatcher.fromObject(object.pathValueMatchers[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from an Operation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.Operation + * @static + * @param {google.cloud.recommender.v1beta1.Operation} message Operation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Operation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.pathFilters = {}; + object.pathValueMatchers = {}; + } + if (options.defaults) { + object.action = ""; + object.resourceType = ""; + object.resource = ""; + object.path = ""; + object.sourceResource = ""; + object.sourcePath = ""; + } + if (message.action != null && message.hasOwnProperty("action")) + object.action = message.action; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = message.resourceType; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.sourceResource != null && message.hasOwnProperty("sourceResource")) + object.sourceResource = message.sourceResource; + if (message.sourcePath != null && message.hasOwnProperty("sourcePath")) + object.sourcePath = message.sourcePath; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = $root.google.protobuf.Value.toObject(message.value, options); + if (options.oneofs) + object.pathValue = "value"; + } + var keys2; + if (message.pathFilters && (keys2 = Object.keys(message.pathFilters)).length) { + object.pathFilters = {}; + for (var j = 0; j < keys2.length; ++j) + object.pathFilters[keys2[j]] = $root.google.protobuf.Value.toObject(message.pathFilters[keys2[j]], options); + } + if (message.valueMatcher != null && message.hasOwnProperty("valueMatcher")) { + object.valueMatcher = $root.google.cloud.recommender.v1beta1.ValueMatcher.toObject(message.valueMatcher, options); + if (options.oneofs) + object.pathValue = "valueMatcher"; + } + if (message.pathValueMatchers && (keys2 = Object.keys(message.pathValueMatchers)).length) { + object.pathValueMatchers = {}; + for (var j = 0; j < keys2.length; ++j) + object.pathValueMatchers[keys2[j]] = $root.google.cloud.recommender.v1beta1.ValueMatcher.toObject(message.pathValueMatchers[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Operation to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.Operation + * @instance + * @returns {Object.} JSON object + */ + Operation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Operation + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.Operation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Operation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.Operation"; + }; + + return Operation; + })(); + + v1beta1.ValueMatcher = (function() { + + /** + * Properties of a ValueMatcher. + * @memberof google.cloud.recommender.v1beta1 + * @interface IValueMatcher + * @property {string|null} [matchesPattern] ValueMatcher matchesPattern + */ + + /** + * Constructs a new ValueMatcher. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a ValueMatcher. + * @implements IValueMatcher + * @constructor + * @param {google.cloud.recommender.v1beta1.IValueMatcher=} [properties] Properties to set + */ + function ValueMatcher(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]]; + } + + /** + * ValueMatcher matchesPattern. + * @member {string|null|undefined} matchesPattern + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @instance + */ + ValueMatcher.prototype.matchesPattern = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ValueMatcher matchVariant. + * @member {"matchesPattern"|undefined} matchVariant + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @instance + */ + Object.defineProperty(ValueMatcher.prototype, "matchVariant", { + get: $util.oneOfGetter($oneOfFields = ["matchesPattern"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ValueMatcher instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @static + * @param {google.cloud.recommender.v1beta1.IValueMatcher=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.ValueMatcher} ValueMatcher instance + */ + ValueMatcher.create = function create(properties) { + return new ValueMatcher(properties); + }; + + /** + * Encodes the specified ValueMatcher message. Does not implicitly {@link google.cloud.recommender.v1beta1.ValueMatcher.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @static + * @param {google.cloud.recommender.v1beta1.IValueMatcher} message ValueMatcher message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ValueMatcher.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchesPattern != null && Object.hasOwnProperty.call(message, "matchesPattern")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchesPattern); + return writer; + }; + + /** + * Encodes the specified ValueMatcher message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ValueMatcher.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @static + * @param {google.cloud.recommender.v1beta1.IValueMatcher} message ValueMatcher message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ValueMatcher.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ValueMatcher message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.ValueMatcher} ValueMatcher + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ValueMatcher.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.ValueMatcher(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.matchesPattern = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ValueMatcher message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.ValueMatcher} ValueMatcher + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ValueMatcher.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ValueMatcher message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ValueMatcher.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.matchesPattern != null && message.hasOwnProperty("matchesPattern")) { + properties.matchVariant = 1; + if (!$util.isString(message.matchesPattern)) + return "matchesPattern: string expected"; + } + return null; + }; + + /** + * Creates a ValueMatcher message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.ValueMatcher} ValueMatcher + */ + ValueMatcher.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.ValueMatcher) + return object; + var message = new $root.google.cloud.recommender.v1beta1.ValueMatcher(); + if (object.matchesPattern != null) + message.matchesPattern = String(object.matchesPattern); + return message; + }; + + /** + * Creates a plain object from a ValueMatcher message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @static + * @param {google.cloud.recommender.v1beta1.ValueMatcher} message ValueMatcher + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ValueMatcher.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.matchesPattern != null && message.hasOwnProperty("matchesPattern")) { + object.matchesPattern = message.matchesPattern; + if (options.oneofs) + object.matchVariant = "matchesPattern"; + } + return object; + }; + + /** + * Converts this ValueMatcher to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @instance + * @returns {Object.} JSON object + */ + ValueMatcher.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ValueMatcher + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.ValueMatcher + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ValueMatcher.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.ValueMatcher"; + }; + + return ValueMatcher; + })(); + + v1beta1.CostProjection = (function() { + + /** + * Properties of a CostProjection. + * @memberof google.cloud.recommender.v1beta1 + * @interface ICostProjection + * @property {google.type.IMoney|null} [cost] CostProjection cost + * @property {google.protobuf.IDuration|null} [duration] CostProjection duration + */ + + /** + * Constructs a new CostProjection. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a CostProjection. + * @implements ICostProjection + * @constructor + * @param {google.cloud.recommender.v1beta1.ICostProjection=} [properties] Properties to set + */ + function CostProjection(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]]; + } + + /** + * CostProjection cost. + * @member {google.type.IMoney|null|undefined} cost + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @instance + */ + CostProjection.prototype.cost = null; + + /** + * CostProjection duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @instance + */ + CostProjection.prototype.duration = null; + + /** + * Creates a new CostProjection instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @static + * @param {google.cloud.recommender.v1beta1.ICostProjection=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.CostProjection} CostProjection instance + */ + CostProjection.create = function create(properties) { + return new CostProjection(properties); + }; + + /** + * Encodes the specified CostProjection message. Does not implicitly {@link google.cloud.recommender.v1beta1.CostProjection.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @static + * @param {google.cloud.recommender.v1beta1.ICostProjection} message CostProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CostProjection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) + $root.google.type.Money.encode(message.cost, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CostProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.CostProjection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @static + * @param {google.cloud.recommender.v1beta1.ICostProjection} message CostProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CostProjection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CostProjection message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.CostProjection} CostProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CostProjection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.CostProjection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cost = $root.google.type.Money.decode(reader, reader.uint32()); + break; + } + case 2: { + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CostProjection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.CostProjection} CostProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CostProjection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CostProjection message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CostProjection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cost != null && message.hasOwnProperty("cost")) { + var error = $root.google.type.Money.verify(message.cost); + if (error) + return "cost." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + return null; + }; + + /** + * Creates a CostProjection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.CostProjection} CostProjection + */ + CostProjection.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.CostProjection) + return object; + var message = new $root.google.cloud.recommender.v1beta1.CostProjection(); + if (object.cost != null) { + if (typeof object.cost !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.CostProjection.cost: object expected"); + message.cost = $root.google.type.Money.fromObject(object.cost); + } + if (object.duration != null) { + if (typeof object.duration !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.CostProjection.duration: object expected"); + message.duration = $root.google.protobuf.Duration.fromObject(object.duration); + } + return message; + }; + + /** + * Creates a plain object from a CostProjection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @static + * @param {google.cloud.recommender.v1beta1.CostProjection} message CostProjection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CostProjection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cost = null; + object.duration = null; + } + if (message.cost != null && message.hasOwnProperty("cost")) + object.cost = $root.google.type.Money.toObject(message.cost, options); + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = $root.google.protobuf.Duration.toObject(message.duration, options); + return object; + }; + + /** + * Converts this CostProjection to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @instance + * @returns {Object.} JSON object + */ + CostProjection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CostProjection + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.CostProjection + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CostProjection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.CostProjection"; + }; + + return CostProjection; + })(); + + v1beta1.SecurityProjection = (function() { + + /** + * Properties of a SecurityProjection. + * @memberof google.cloud.recommender.v1beta1 + * @interface ISecurityProjection + * @property {google.protobuf.IStruct|null} [details] SecurityProjection details + */ + + /** + * Constructs a new SecurityProjection. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a SecurityProjection. + * @implements ISecurityProjection + * @constructor + * @param {google.cloud.recommender.v1beta1.ISecurityProjection=} [properties] Properties to set + */ + function SecurityProjection(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]]; + } + + /** + * SecurityProjection details. + * @member {google.protobuf.IStruct|null|undefined} details + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @instance + */ + SecurityProjection.prototype.details = null; + + /** + * Creates a new SecurityProjection instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @static + * @param {google.cloud.recommender.v1beta1.ISecurityProjection=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.SecurityProjection} SecurityProjection instance + */ + SecurityProjection.create = function create(properties) { + return new SecurityProjection(properties); + }; + + /** + * Encodes the specified SecurityProjection message. Does not implicitly {@link google.cloud.recommender.v1beta1.SecurityProjection.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @static + * @param {google.cloud.recommender.v1beta1.ISecurityProjection} message SecurityProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityProjection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.details != null && Object.hasOwnProperty.call(message, "details")) + $root.google.protobuf.Struct.encode(message.details, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SecurityProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.SecurityProjection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @static + * @param {google.cloud.recommender.v1beta1.ISecurityProjection} message SecurityProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityProjection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityProjection message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.SecurityProjection} SecurityProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityProjection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.SecurityProjection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.details = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityProjection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.SecurityProjection} SecurityProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityProjection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityProjection message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityProjection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.details != null && message.hasOwnProperty("details")) { + var error = $root.google.protobuf.Struct.verify(message.details); + if (error) + return "details." + error; + } + return null; + }; + + /** + * Creates a SecurityProjection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.SecurityProjection} SecurityProjection + */ + SecurityProjection.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.SecurityProjection) + return object; + var message = new $root.google.cloud.recommender.v1beta1.SecurityProjection(); + if (object.details != null) { + if (typeof object.details !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.SecurityProjection.details: object expected"); + message.details = $root.google.protobuf.Struct.fromObject(object.details); + } + return message; + }; + + /** + * Creates a plain object from a SecurityProjection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @static + * @param {google.cloud.recommender.v1beta1.SecurityProjection} message SecurityProjection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityProjection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.details = null; + if (message.details != null && message.hasOwnProperty("details")) + object.details = $root.google.protobuf.Struct.toObject(message.details, options); + return object; + }; + + /** + * Converts this SecurityProjection to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @instance + * @returns {Object.} JSON object + */ + SecurityProjection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityProjection + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.SecurityProjection + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityProjection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.SecurityProjection"; + }; + + return SecurityProjection; + })(); + + v1beta1.SustainabilityProjection = (function() { + + /** + * Properties of a SustainabilityProjection. + * @memberof google.cloud.recommender.v1beta1 + * @interface ISustainabilityProjection + * @property {number|null} [kgCO2e] SustainabilityProjection kgCO2e + * @property {google.protobuf.IDuration|null} [duration] SustainabilityProjection duration + */ + + /** + * Constructs a new SustainabilityProjection. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a SustainabilityProjection. + * @implements ISustainabilityProjection + * @constructor + * @param {google.cloud.recommender.v1beta1.ISustainabilityProjection=} [properties] Properties to set + */ + function SustainabilityProjection(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]]; + } + + /** + * SustainabilityProjection kgCO2e. + * @member {number} kgCO2e + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @instance + */ + SustainabilityProjection.prototype.kgCO2e = 0; + + /** + * SustainabilityProjection duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @instance + */ + SustainabilityProjection.prototype.duration = null; + + /** + * Creates a new SustainabilityProjection instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @static + * @param {google.cloud.recommender.v1beta1.ISustainabilityProjection=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.SustainabilityProjection} SustainabilityProjection instance + */ + SustainabilityProjection.create = function create(properties) { + return new SustainabilityProjection(properties); + }; + + /** + * Encodes the specified SustainabilityProjection message. Does not implicitly {@link google.cloud.recommender.v1beta1.SustainabilityProjection.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @static + * @param {google.cloud.recommender.v1beta1.ISustainabilityProjection} message SustainabilityProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SustainabilityProjection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kgCO2e != null && Object.hasOwnProperty.call(message, "kgCO2e")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.kgCO2e); + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SustainabilityProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.SustainabilityProjection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @static + * @param {google.cloud.recommender.v1beta1.ISustainabilityProjection} message SustainabilityProjection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SustainabilityProjection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SustainabilityProjection message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.SustainabilityProjection} SustainabilityProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SustainabilityProjection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.SustainabilityProjection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.kgCO2e = reader.double(); + break; + } + case 2: { + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SustainabilityProjection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.SustainabilityProjection} SustainabilityProjection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SustainabilityProjection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SustainabilityProjection message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SustainabilityProjection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kgCO2e != null && message.hasOwnProperty("kgCO2e")) + if (typeof message.kgCO2e !== "number") + return "kgCO2e: number expected"; + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + return null; + }; + + /** + * Creates a SustainabilityProjection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.SustainabilityProjection} SustainabilityProjection + */ + SustainabilityProjection.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.SustainabilityProjection) + return object; + var message = new $root.google.cloud.recommender.v1beta1.SustainabilityProjection(); + if (object.kgCO2e != null) + message.kgCO2e = Number(object.kgCO2e); + if (object.duration != null) { + if (typeof object.duration !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.SustainabilityProjection.duration: object expected"); + message.duration = $root.google.protobuf.Duration.fromObject(object.duration); + } + return message; + }; + + /** + * Creates a plain object from a SustainabilityProjection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @static + * @param {google.cloud.recommender.v1beta1.SustainabilityProjection} message SustainabilityProjection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SustainabilityProjection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kgCO2e = 0; + object.duration = null; + } + if (message.kgCO2e != null && message.hasOwnProperty("kgCO2e")) + object.kgCO2e = options.json && !isFinite(message.kgCO2e) ? String(message.kgCO2e) : message.kgCO2e; + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = $root.google.protobuf.Duration.toObject(message.duration, options); + return object; + }; + + /** + * Converts this SustainabilityProjection to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @instance + * @returns {Object.} JSON object + */ + SustainabilityProjection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SustainabilityProjection + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.SustainabilityProjection + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SustainabilityProjection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.SustainabilityProjection"; + }; + + return SustainabilityProjection; + })(); + + v1beta1.Impact = (function() { + + /** + * Properties of an Impact. + * @memberof google.cloud.recommender.v1beta1 + * @interface IImpact + * @property {google.cloud.recommender.v1beta1.Impact.Category|null} [category] Impact category + * @property {google.cloud.recommender.v1beta1.ICostProjection|null} [costProjection] Impact costProjection + * @property {google.cloud.recommender.v1beta1.ISecurityProjection|null} [securityProjection] Impact securityProjection + * @property {google.cloud.recommender.v1beta1.ISustainabilityProjection|null} [sustainabilityProjection] Impact sustainabilityProjection + */ + + /** + * Constructs a new Impact. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents an Impact. + * @implements IImpact + * @constructor + * @param {google.cloud.recommender.v1beta1.IImpact=} [properties] Properties to set + */ + function Impact(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]]; + } + + /** + * Impact category. + * @member {google.cloud.recommender.v1beta1.Impact.Category} category + * @memberof google.cloud.recommender.v1beta1.Impact + * @instance + */ + Impact.prototype.category = 0; + + /** + * Impact costProjection. + * @member {google.cloud.recommender.v1beta1.ICostProjection|null|undefined} costProjection + * @memberof google.cloud.recommender.v1beta1.Impact + * @instance + */ + Impact.prototype.costProjection = null; + + /** + * Impact securityProjection. + * @member {google.cloud.recommender.v1beta1.ISecurityProjection|null|undefined} securityProjection + * @memberof google.cloud.recommender.v1beta1.Impact + * @instance + */ + Impact.prototype.securityProjection = null; + + /** + * Impact sustainabilityProjection. + * @member {google.cloud.recommender.v1beta1.ISustainabilityProjection|null|undefined} sustainabilityProjection + * @memberof google.cloud.recommender.v1beta1.Impact + * @instance + */ + Impact.prototype.sustainabilityProjection = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Impact projection. + * @member {"costProjection"|"securityProjection"|"sustainabilityProjection"|undefined} projection + * @memberof google.cloud.recommender.v1beta1.Impact + * @instance + */ + Object.defineProperty(Impact.prototype, "projection", { + get: $util.oneOfGetter($oneOfFields = ["costProjection", "securityProjection", "sustainabilityProjection"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Impact instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.Impact + * @static + * @param {google.cloud.recommender.v1beta1.IImpact=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.Impact} Impact instance + */ + Impact.create = function create(properties) { + return new Impact(properties); + }; + + /** + * Encodes the specified Impact message. Does not implicitly {@link google.cloud.recommender.v1beta1.Impact.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.Impact + * @static + * @param {google.cloud.recommender.v1beta1.IImpact} message Impact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Impact.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.category != null && Object.hasOwnProperty.call(message, "category")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.category); + if (message.costProjection != null && Object.hasOwnProperty.call(message, "costProjection")) + $root.google.cloud.recommender.v1beta1.CostProjection.encode(message.costProjection, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); + if (message.securityProjection != null && Object.hasOwnProperty.call(message, "securityProjection")) + $root.google.cloud.recommender.v1beta1.SecurityProjection.encode(message.securityProjection, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); + if (message.sustainabilityProjection != null && Object.hasOwnProperty.call(message, "sustainabilityProjection")) + $root.google.cloud.recommender.v1beta1.SustainabilityProjection.encode(message.sustainabilityProjection, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Impact message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.Impact.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.Impact + * @static + * @param {google.cloud.recommender.v1beta1.IImpact} message Impact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Impact.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Impact message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.Impact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.Impact} Impact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Impact.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.Impact(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.category = reader.int32(); + break; + } + case 100: { + message.costProjection = $root.google.cloud.recommender.v1beta1.CostProjection.decode(reader, reader.uint32()); + break; + } + case 101: { + message.securityProjection = $root.google.cloud.recommender.v1beta1.SecurityProjection.decode(reader, reader.uint32()); + break; + } + case 102: { + message.sustainabilityProjection = $root.google.cloud.recommender.v1beta1.SustainabilityProjection.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Impact message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.Impact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.Impact} Impact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Impact.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Impact message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.Impact + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Impact.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.category != null && message.hasOwnProperty("category")) + switch (message.category) { + default: + return "category: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.costProjection != null && message.hasOwnProperty("costProjection")) { + properties.projection = 1; + { + var error = $root.google.cloud.recommender.v1beta1.CostProjection.verify(message.costProjection); + if (error) + return "costProjection." + error; + } + } + if (message.securityProjection != null && message.hasOwnProperty("securityProjection")) { + if (properties.projection === 1) + return "projection: multiple values"; + properties.projection = 1; + { + var error = $root.google.cloud.recommender.v1beta1.SecurityProjection.verify(message.securityProjection); + if (error) + return "securityProjection." + error; + } + } + if (message.sustainabilityProjection != null && message.hasOwnProperty("sustainabilityProjection")) { + if (properties.projection === 1) + return "projection: multiple values"; + properties.projection = 1; + { + var error = $root.google.cloud.recommender.v1beta1.SustainabilityProjection.verify(message.sustainabilityProjection); + if (error) + return "sustainabilityProjection." + error; + } + } + return null; + }; + + /** + * Creates an Impact message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.Impact + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.Impact} Impact + */ + Impact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.Impact) + return object; + var message = new $root.google.cloud.recommender.v1beta1.Impact(); + switch (object.category) { + default: + if (typeof object.category === "number") { + message.category = object.category; + break; + } + break; + case "CATEGORY_UNSPECIFIED": + case 0: + message.category = 0; + break; + case "COST": + case 1: + message.category = 1; + break; + case "SECURITY": + case 2: + message.category = 2; + break; + case "PERFORMANCE": + case 3: + message.category = 3; + break; + case "MANAGEABILITY": + case 4: + message.category = 4; + break; + case "SUSTAINABILITY": + case 5: + message.category = 5; + break; + } + if (object.costProjection != null) { + if (typeof object.costProjection !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Impact.costProjection: object expected"); + message.costProjection = $root.google.cloud.recommender.v1beta1.CostProjection.fromObject(object.costProjection); + } + if (object.securityProjection != null) { + if (typeof object.securityProjection !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Impact.securityProjection: object expected"); + message.securityProjection = $root.google.cloud.recommender.v1beta1.SecurityProjection.fromObject(object.securityProjection); + } + if (object.sustainabilityProjection != null) { + if (typeof object.sustainabilityProjection !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.Impact.sustainabilityProjection: object expected"); + message.sustainabilityProjection = $root.google.cloud.recommender.v1beta1.SustainabilityProjection.fromObject(object.sustainabilityProjection); + } + return message; + }; + + /** + * Creates a plain object from an Impact message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.Impact + * @static + * @param {google.cloud.recommender.v1beta1.Impact} message Impact + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Impact.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.category = options.enums === String ? "CATEGORY_UNSPECIFIED" : 0; + if (message.category != null && message.hasOwnProperty("category")) + object.category = options.enums === String ? $root.google.cloud.recommender.v1beta1.Impact.Category[message.category] === undefined ? message.category : $root.google.cloud.recommender.v1beta1.Impact.Category[message.category] : message.category; + if (message.costProjection != null && message.hasOwnProperty("costProjection")) { + object.costProjection = $root.google.cloud.recommender.v1beta1.CostProjection.toObject(message.costProjection, options); + if (options.oneofs) + object.projection = "costProjection"; + } + if (message.securityProjection != null && message.hasOwnProperty("securityProjection")) { + object.securityProjection = $root.google.cloud.recommender.v1beta1.SecurityProjection.toObject(message.securityProjection, options); + if (options.oneofs) + object.projection = "securityProjection"; + } + if (message.sustainabilityProjection != null && message.hasOwnProperty("sustainabilityProjection")) { + object.sustainabilityProjection = $root.google.cloud.recommender.v1beta1.SustainabilityProjection.toObject(message.sustainabilityProjection, options); + if (options.oneofs) + object.projection = "sustainabilityProjection"; + } + return object; + }; + + /** + * Converts this Impact to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.Impact + * @instance + * @returns {Object.} JSON object + */ + Impact.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Impact + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.Impact + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Impact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.Impact"; + }; + + /** + * Category enum. + * @name google.cloud.recommender.v1beta1.Impact.Category + * @enum {number} + * @property {number} CATEGORY_UNSPECIFIED=0 CATEGORY_UNSPECIFIED value + * @property {number} COST=1 COST value + * @property {number} SECURITY=2 SECURITY value + * @property {number} PERFORMANCE=3 PERFORMANCE value + * @property {number} MANAGEABILITY=4 MANAGEABILITY value + * @property {number} SUSTAINABILITY=5 SUSTAINABILITY value + */ + Impact.Category = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "COST"] = 1; + values[valuesById[2] = "SECURITY"] = 2; + values[valuesById[3] = "PERFORMANCE"] = 3; + values[valuesById[4] = "MANAGEABILITY"] = 4; + values[valuesById[5] = "SUSTAINABILITY"] = 5; + return values; + })(); + + return Impact; + })(); + + v1beta1.RecommendationStateInfo = (function() { + + /** + * Properties of a RecommendationStateInfo. + * @memberof google.cloud.recommender.v1beta1 + * @interface IRecommendationStateInfo + * @property {google.cloud.recommender.v1beta1.RecommendationStateInfo.State|null} [state] RecommendationStateInfo state + * @property {Object.|null} [stateMetadata] RecommendationStateInfo stateMetadata + */ + + /** + * Constructs a new RecommendationStateInfo. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a RecommendationStateInfo. + * @implements IRecommendationStateInfo + * @constructor + * @param {google.cloud.recommender.v1beta1.IRecommendationStateInfo=} [properties] Properties to set + */ + function RecommendationStateInfo(properties) { + this.stateMetadata = {}; + 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]]; + } + + /** + * RecommendationStateInfo state. + * @member {google.cloud.recommender.v1beta1.RecommendationStateInfo.State} state + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo + * @instance + */ + RecommendationStateInfo.prototype.state = 0; + + /** + * RecommendationStateInfo stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo + * @instance + */ + RecommendationStateInfo.prototype.stateMetadata = $util.emptyObject; + + /** + * Creates a new RecommendationStateInfo instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo + * @static + * @param {google.cloud.recommender.v1beta1.IRecommendationStateInfo=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.RecommendationStateInfo} RecommendationStateInfo instance + */ + RecommendationStateInfo.create = function create(properties) { + return new RecommendationStateInfo(properties); + }; + + /** + * Encodes the specified RecommendationStateInfo message. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommendationStateInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo + * @static + * @param {google.cloud.recommender.v1beta1.IRecommendationStateInfo} message RecommendationStateInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationStateInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified RecommendationStateInfo message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommendationStateInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo + * @static + * @param {google.cloud.recommender.v1beta1.IRecommendationStateInfo} message RecommendationStateInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommendationStateInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecommendationStateInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.RecommendationStateInfo} RecommendationStateInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationStateInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.RecommendationStateInfo(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.state = reader.int32(); + break; + } + case 2: { + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecommendationStateInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.RecommendationStateInfo} RecommendationStateInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommendationStateInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecommendationStateInfo message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecommendationStateInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 6: + case 3: + case 4: + case 5: + break; + } + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a RecommendationStateInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.RecommendationStateInfo} RecommendationStateInfo + */ + RecommendationStateInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.RecommendationStateInfo) + return object; + var message = new $root.google.cloud.recommender.v1beta1.RecommendationStateInfo(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "CLAIMED": + case 6: + message.state = 6; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "FAILED": + case 4: + message.state = 4; + break; + case "DISMISSED": + case 5: + message.state = 5; + break; + } + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.RecommendationStateInfo.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); } return message; }; /** - * Creates a plain object from an OperationGroup message. Also converts values to other types if specified. + * Creates a plain object from a RecommendationStateInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.OperationGroup + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo * @static - * @param {google.cloud.recommender.v1.OperationGroup} message OperationGroup + * @param {google.cloud.recommender.v1beta1.RecommendationStateInfo} message RecommendationStateInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OperationGroup.toObject = function toObject(message, options) { + RecommendationStateInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.operations = []; - if (message.operations && message.operations.length) { - object.operations = []; - for (var j = 0; j < message.operations.length; ++j) - object.operations[j] = $root.google.cloud.recommender.v1.Operation.toObject(message.operations[j], options); + if (options.objects || options.defaults) + object.stateMetadata = {}; + if (options.defaults) + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.recommender.v1beta1.RecommendationStateInfo.State[message.state] === undefined ? message.state : $root.google.cloud.recommender.v1beta1.RecommendationStateInfo.State[message.state] : message.state; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; } return object; }; /** - * Converts this OperationGroup to JSON. + * Converts this RecommendationStateInfo to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.OperationGroup + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo * @instance * @returns {Object.} JSON object */ - OperationGroup.prototype.toJSON = function toJSON() { + RecommendationStateInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OperationGroup + * Gets the default type url for RecommendationStateInfo * @function getTypeUrl - * @memberof google.cloud.recommender.v1.OperationGroup + * @memberof google.cloud.recommender.v1beta1.RecommendationStateInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OperationGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecommendationStateInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.OperationGroup"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.RecommendationStateInfo"; }; - return OperationGroup; + /** + * State enum. + * @name google.cloud.recommender.v1beta1.RecommendationStateInfo.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} CLAIMED=6 CLAIMED value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} FAILED=4 FAILED value + * @property {number} DISMISSED=5 DISMISSED value + */ + RecommendationStateInfo.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[6] = "CLAIMED"] = 6; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "FAILED"] = 4; + values[valuesById[5] = "DISMISSED"] = 5; + return values; + })(); + + return RecommendationStateInfo; })(); - v1.Operation = (function() { + v1beta1.RecommenderConfig = (function() { /** - * Properties of an Operation. - * @memberof google.cloud.recommender.v1 - * @interface IOperation - * @property {string|null} [action] Operation action - * @property {string|null} [resourceType] Operation resourceType - * @property {string|null} [resource] Operation resource - * @property {string|null} [path] Operation path - * @property {string|null} [sourceResource] Operation sourceResource - * @property {string|null} [sourcePath] Operation sourcePath - * @property {google.protobuf.IValue|null} [value] Operation value - * @property {google.cloud.recommender.v1.IValueMatcher|null} [valueMatcher] Operation valueMatcher - * @property {Object.|null} [pathFilters] Operation pathFilters - * @property {Object.|null} [pathValueMatchers] Operation pathValueMatchers + * Properties of a RecommenderConfig. + * @memberof google.cloud.recommender.v1beta1 + * @interface IRecommenderConfig + * @property {string|null} [name] RecommenderConfig name + * @property {google.cloud.recommender.v1beta1.IRecommenderGenerationConfig|null} [recommenderGenerationConfig] RecommenderConfig recommenderGenerationConfig + * @property {string|null} [etag] RecommenderConfig etag + * @property {google.protobuf.ITimestamp|null} [updateTime] RecommenderConfig updateTime + * @property {string|null} [revisionId] RecommenderConfig revisionId + * @property {Object.|null} [annotations] RecommenderConfig annotations + * @property {string|null} [displayName] RecommenderConfig displayName */ /** - * Constructs a new Operation. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents an Operation. - * @implements IOperation + * Constructs a new RecommenderConfig. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a RecommenderConfig. + * @implements IRecommenderConfig * @constructor - * @param {google.cloud.recommender.v1.IOperation=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IRecommenderConfig=} [properties] Properties to set */ - function Operation(properties) { - this.pathFilters = {}; - this.pathValueMatchers = {}; + function RecommenderConfig(properties) { + this.annotations = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2287,221 +14627,160 @@ } /** - * Operation action. - * @member {string} action - * @memberof google.cloud.recommender.v1.Operation - * @instance - */ - Operation.prototype.action = ""; - - /** - * Operation resourceType. - * @member {string} resourceType - * @memberof google.cloud.recommender.v1.Operation - * @instance - */ - Operation.prototype.resourceType = ""; - - /** - * Operation resource. - * @member {string} resource - * @memberof google.cloud.recommender.v1.Operation - * @instance - */ - Operation.prototype.resource = ""; - - /** - * Operation path. - * @member {string} path - * @memberof google.cloud.recommender.v1.Operation - * @instance - */ - Operation.prototype.path = ""; - - /** - * Operation sourceResource. - * @member {string} sourceResource - * @memberof google.cloud.recommender.v1.Operation + * RecommenderConfig name. + * @member {string} name + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @instance */ - Operation.prototype.sourceResource = ""; + RecommenderConfig.prototype.name = ""; /** - * Operation sourcePath. - * @member {string} sourcePath - * @memberof google.cloud.recommender.v1.Operation + * RecommenderConfig recommenderGenerationConfig. + * @member {google.cloud.recommender.v1beta1.IRecommenderGenerationConfig|null|undefined} recommenderGenerationConfig + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @instance */ - Operation.prototype.sourcePath = ""; + RecommenderConfig.prototype.recommenderGenerationConfig = null; /** - * Operation value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.recommender.v1.Operation + * RecommenderConfig etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @instance */ - Operation.prototype.value = null; + RecommenderConfig.prototype.etag = ""; /** - * Operation valueMatcher. - * @member {google.cloud.recommender.v1.IValueMatcher|null|undefined} valueMatcher - * @memberof google.cloud.recommender.v1.Operation + * RecommenderConfig updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @instance */ - Operation.prototype.valueMatcher = null; + RecommenderConfig.prototype.updateTime = null; /** - * Operation pathFilters. - * @member {Object.} pathFilters - * @memberof google.cloud.recommender.v1.Operation + * RecommenderConfig revisionId. + * @member {string} revisionId + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @instance */ - Operation.prototype.pathFilters = $util.emptyObject; + RecommenderConfig.prototype.revisionId = ""; /** - * Operation pathValueMatchers. - * @member {Object.} pathValueMatchers - * @memberof google.cloud.recommender.v1.Operation + * RecommenderConfig annotations. + * @member {Object.} annotations + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @instance */ - Operation.prototype.pathValueMatchers = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + RecommenderConfig.prototype.annotations = $util.emptyObject; /** - * Operation pathValue. - * @member {"value"|"valueMatcher"|undefined} pathValue - * @memberof google.cloud.recommender.v1.Operation + * RecommenderConfig displayName. + * @member {string} displayName + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @instance */ - Object.defineProperty(Operation.prototype, "pathValue", { - get: $util.oneOfGetter($oneOfFields = ["value", "valueMatcher"]), - set: $util.oneOfSetter($oneOfFields) - }); + RecommenderConfig.prototype.displayName = ""; /** - * Creates a new Operation instance using the specified properties. + * Creates a new RecommenderConfig instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @static - * @param {google.cloud.recommender.v1.IOperation=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.Operation} Operation instance + * @param {google.cloud.recommender.v1beta1.IRecommenderConfig=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.RecommenderConfig} RecommenderConfig instance */ - Operation.create = function create(properties) { - return new Operation(properties); + RecommenderConfig.create = function create(properties) { + return new RecommenderConfig(properties); }; /** - * Encodes the specified Operation message. Does not implicitly {@link google.cloud.recommender.v1.Operation.verify|verify} messages. + * Encodes the specified RecommenderConfig message. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommenderConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @static - * @param {google.cloud.recommender.v1.IOperation} message Operation message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IRecommenderConfig} message RecommenderConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Operation.encode = function encode(message, writer) { + RecommenderConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.action); - if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.resourceType); - if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.path); - if (message.sourceResource != null && Object.hasOwnProperty.call(message, "sourceResource")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.sourceResource); - if (message.sourcePath != null && Object.hasOwnProperty.call(message, "sourcePath")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.sourcePath); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.pathFilters != null && Object.hasOwnProperty.call(message, "pathFilters")) - for (var keys = Object.keys(message.pathFilters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.pathFilters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.valueMatcher != null && Object.hasOwnProperty.call(message, "valueMatcher")) - $root.google.cloud.recommender.v1.ValueMatcher.encode(message.valueMatcher, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.pathValueMatchers != null && Object.hasOwnProperty.call(message, "pathValueMatchers")) - for (var keys = Object.keys(message.pathValueMatchers), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.recommender.v1.ValueMatcher.encode(message.pathValueMatchers[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.recommenderGenerationConfig != null && Object.hasOwnProperty.call(message, "recommenderGenerationConfig")) + $root.google.cloud.recommender.v1beta1.RecommenderGenerationConfig.encode(message.recommenderGenerationConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.revisionId != null && Object.hasOwnProperty.call(message, "revisionId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.revisionId); + if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations")) + for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); return writer; }; /** - * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.Operation.verify|verify} messages. + * Encodes the specified RecommenderConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommenderConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @static - * @param {google.cloud.recommender.v1.IOperation} message Operation message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IRecommenderConfig} message RecommenderConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Operation.encodeDelimited = function encodeDelimited(message, writer) { + RecommenderConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Operation message from the specified reader or buffer. + * Decodes a RecommenderConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.Operation} Operation + * @returns {google.cloud.recommender.v1beta1.RecommenderConfig} RecommenderConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Operation.decode = function decode(reader, length) { + RecommenderConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.Operation(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.RecommenderConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.action = reader.string(); + message.name = reader.string(); break; } case 2: { - message.resourceType = reader.string(); + message.recommenderGenerationConfig = $root.google.cloud.recommender.v1beta1.RecommenderGenerationConfig.decode(reader, reader.uint32()); break; } case 3: { - message.resource = reader.string(); + message.etag = reader.string(); break; } case 4: { - message.path = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 5: { - message.sourceResource = reader.string(); + message.revisionId = reader.string(); break; } case 6: { - message.sourcePath = reader.string(); - break; - } - case 7: { - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 10: { - message.valueMatcher = $root.google.cloud.recommender.v1.ValueMatcher.decode(reader, reader.uint32()); - break; - } - case 8: { - if (message.pathFilters === $util.emptyObject) - message.pathFilters = {}; + if (message.annotations === $util.emptyObject) + message.annotations = {}; var end2 = reader.uint32() + reader.pos; key = ""; - value = null; + value = ""; while (reader.pos < end2) { var tag2 = reader.uint32(); switch (tag2 >>> 3) { @@ -2509,37 +14788,18 @@ key = reader.string(); break; case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + value = reader.string(); break; default: reader.skipType(tag2 & 7); break; } } - message.pathFilters[key] = value; + message.annotations[key] = value; break; } - case 11: { - if (message.pathValueMatchers === $util.emptyObject) - message.pathValueMatchers = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.recommender.v1.ValueMatcher.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.pathValueMatchers[key] = value; + case 7: { + message.displayName = reader.string(); break; } default: @@ -2551,716 +14811,838 @@ }; /** - * Decodes an Operation message from the specified reader or buffer, length delimited. + * Decodes a RecommenderConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.Operation} Operation + * @returns {google.cloud.recommender.v1beta1.RecommenderConfig} RecommenderConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Operation.decodeDelimited = function decodeDelimited(reader) { + RecommenderConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Operation message. + * Verifies a RecommenderConfig message. * @function verify - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Operation.verify = function verify(message) { + RecommenderConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.action != null && message.hasOwnProperty("action")) - if (!$util.isString(message.action)) - return "action: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - if (!$util.isString(message.resourceType)) - return "resourceType: string expected"; - if (message.resource != null && message.hasOwnProperty("resource")) - if (!$util.isString(message.resource)) - return "resource: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.sourceResource != null && message.hasOwnProperty("sourceResource")) - if (!$util.isString(message.sourceResource)) - return "sourceResource: string expected"; - if (message.sourcePath != null && message.hasOwnProperty("sourcePath")) - if (!$util.isString(message.sourcePath)) - return "sourcePath: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - properties.pathValue = 1; - { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.recommenderGenerationConfig != null && message.hasOwnProperty("recommenderGenerationConfig")) { + var error = $root.google.cloud.recommender.v1beta1.RecommenderGenerationConfig.verify(message.recommenderGenerationConfig); + if (error) + return "recommenderGenerationConfig." + error; } - if (message.valueMatcher != null && message.hasOwnProperty("valueMatcher")) { - if (properties.pathValue === 1) - return "pathValue: multiple values"; - properties.pathValue = 1; - { - var error = $root.google.cloud.recommender.v1.ValueMatcher.verify(message.valueMatcher); - if (error) - return "valueMatcher." + error; - } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.revisionId != null && message.hasOwnProperty("revisionId")) + if (!$util.isString(message.revisionId)) + return "revisionId: string expected"; + if (message.annotations != null && message.hasOwnProperty("annotations")) { + if (!$util.isObject(message.annotations)) + return "annotations: object expected"; + var key = Object.keys(message.annotations); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.annotations[key[i]])) + return "annotations: string{k:string} expected"; } - if (message.pathFilters != null && message.hasOwnProperty("pathFilters")) { - if (!$util.isObject(message.pathFilters)) - return "pathFilters: object expected"; - var key = Object.keys(message.pathFilters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.pathFilters[key[i]]); - if (error) - return "pathFilters." + error; - } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + return null; + }; + + /** + * Creates a RecommenderConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.RecommenderConfig} RecommenderConfig + */ + RecommenderConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.RecommenderConfig) + return object; + var message = new $root.google.cloud.recommender.v1beta1.RecommenderConfig(); + if (object.name != null) + message.name = String(object.name); + if (object.recommenderGenerationConfig != null) { + if (typeof object.recommenderGenerationConfig !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.RecommenderConfig.recommenderGenerationConfig: object expected"); + message.recommenderGenerationConfig = $root.google.cloud.recommender.v1beta1.RecommenderGenerationConfig.fromObject(object.recommenderGenerationConfig); } - if (message.pathValueMatchers != null && message.hasOwnProperty("pathValueMatchers")) { - if (!$util.isObject(message.pathValueMatchers)) - return "pathValueMatchers: object expected"; - var key = Object.keys(message.pathValueMatchers); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.recommender.v1.ValueMatcher.verify(message.pathValueMatchers[key[i]]); - if (error) - return "pathValueMatchers." + error; + if (object.etag != null) + message.etag = String(object.etag); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.RecommenderConfig.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.revisionId != null) + message.revisionId = String(object.revisionId); + if (object.annotations) { + if (typeof object.annotations !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.RecommenderConfig.annotations: object expected"); + message.annotations = {}; + for (var keys = Object.keys(object.annotations), i = 0; i < keys.length; ++i) + message.annotations[keys[i]] = String(object.annotations[keys[i]]); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a RecommenderConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig + * @static + * @param {google.cloud.recommender.v1beta1.RecommenderConfig} message RecommenderConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecommenderConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.annotations = {}; + if (options.defaults) { + object.name = ""; + object.recommenderGenerationConfig = null; + object.etag = ""; + object.updateTime = null; + object.revisionId = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.recommenderGenerationConfig != null && message.hasOwnProperty("recommenderGenerationConfig")) + object.recommenderGenerationConfig = $root.google.cloud.recommender.v1beta1.RecommenderGenerationConfig.toObject(message.recommenderGenerationConfig, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.revisionId != null && message.hasOwnProperty("revisionId")) + object.revisionId = message.revisionId; + var keys2; + if (message.annotations && (keys2 = Object.keys(message.annotations)).length) { + object.annotations = {}; + for (var j = 0; j < keys2.length; ++j) + object.annotations[keys2[j]] = message.annotations[keys2[j]]; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this RecommenderConfig to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig + * @instance + * @returns {Object.} JSON object + */ + RecommenderConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecommenderConfig + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.RecommenderConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecommenderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.RecommenderConfig"; + }; + + return RecommenderConfig; + })(); + + v1beta1.RecommenderGenerationConfig = (function() { + + /** + * Properties of a RecommenderGenerationConfig. + * @memberof google.cloud.recommender.v1beta1 + * @interface IRecommenderGenerationConfig + * @property {google.protobuf.IStruct|null} [params] RecommenderGenerationConfig params + */ + + /** + * Constructs a new RecommenderGenerationConfig. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a RecommenderGenerationConfig. + * @implements IRecommenderGenerationConfig + * @constructor + * @param {google.cloud.recommender.v1beta1.IRecommenderGenerationConfig=} [properties] Properties to set + */ + function RecommenderGenerationConfig(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]]; + } + + /** + * RecommenderGenerationConfig params. + * @member {google.protobuf.IStruct|null|undefined} params + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig + * @instance + */ + RecommenderGenerationConfig.prototype.params = null; + + /** + * Creates a new RecommenderGenerationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig + * @static + * @param {google.cloud.recommender.v1beta1.IRecommenderGenerationConfig=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.RecommenderGenerationConfig} RecommenderGenerationConfig instance + */ + RecommenderGenerationConfig.create = function create(properties) { + return new RecommenderGenerationConfig(properties); + }; + + /** + * Encodes the specified RecommenderGenerationConfig message. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommenderGenerationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig + * @static + * @param {google.cloud.recommender.v1beta1.IRecommenderGenerationConfig} message RecommenderGenerationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommenderGenerationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.protobuf.Struct.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RecommenderGenerationConfig message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.RecommenderGenerationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig + * @static + * @param {google.cloud.recommender.v1beta1.IRecommenderGenerationConfig} message RecommenderGenerationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecommenderGenerationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecommenderGenerationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.RecommenderGenerationConfig} RecommenderGenerationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommenderGenerationConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.RecommenderGenerationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.params = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; } } + return message; + }; + + /** + * Decodes a RecommenderGenerationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.RecommenderGenerationConfig} RecommenderGenerationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecommenderGenerationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecommenderGenerationConfig message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecommenderGenerationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.google.protobuf.Struct.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates an Operation message from a plain object. Also converts values to their respective internal types. + * Creates a RecommenderGenerationConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.Operation} Operation + * @returns {google.cloud.recommender.v1beta1.RecommenderGenerationConfig} RecommenderGenerationConfig */ - Operation.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.Operation) + RecommenderGenerationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.RecommenderGenerationConfig) return object; - var message = new $root.google.cloud.recommender.v1.Operation(); - if (object.action != null) - message.action = String(object.action); - if (object.resourceType != null) - message.resourceType = String(object.resourceType); - if (object.resource != null) - message.resource = String(object.resource); - if (object.path != null) - message.path = String(object.path); - if (object.sourceResource != null) - message.sourceResource = String(object.sourceResource); - if (object.sourcePath != null) - message.sourcePath = String(object.sourcePath); - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.recommender.v1.Operation.value: object expected"); - message.value = $root.google.protobuf.Value.fromObject(object.value); - } - if (object.valueMatcher != null) { - if (typeof object.valueMatcher !== "object") - throw TypeError(".google.cloud.recommender.v1.Operation.valueMatcher: object expected"); - message.valueMatcher = $root.google.cloud.recommender.v1.ValueMatcher.fromObject(object.valueMatcher); - } - if (object.pathFilters) { - if (typeof object.pathFilters !== "object") - throw TypeError(".google.cloud.recommender.v1.Operation.pathFilters: object expected"); - message.pathFilters = {}; - for (var keys = Object.keys(object.pathFilters), i = 0; i < keys.length; ++i) { - if (typeof object.pathFilters[keys[i]] !== "object") - throw TypeError(".google.cloud.recommender.v1.Operation.pathFilters: object expected"); - message.pathFilters[keys[i]] = $root.google.protobuf.Value.fromObject(object.pathFilters[keys[i]]); - } - } - if (object.pathValueMatchers) { - if (typeof object.pathValueMatchers !== "object") - throw TypeError(".google.cloud.recommender.v1.Operation.pathValueMatchers: object expected"); - message.pathValueMatchers = {}; - for (var keys = Object.keys(object.pathValueMatchers), i = 0; i < keys.length; ++i) { - if (typeof object.pathValueMatchers[keys[i]] !== "object") - throw TypeError(".google.cloud.recommender.v1.Operation.pathValueMatchers: object expected"); - message.pathValueMatchers[keys[i]] = $root.google.cloud.recommender.v1.ValueMatcher.fromObject(object.pathValueMatchers[keys[i]]); - } + var message = new $root.google.cloud.recommender.v1beta1.RecommenderGenerationConfig(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.RecommenderGenerationConfig.params: object expected"); + message.params = $root.google.protobuf.Struct.fromObject(object.params); } return message; }; /** - * Creates a plain object from an Operation message. Also converts values to other types if specified. + * Creates a plain object from a RecommenderGenerationConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig * @static - * @param {google.cloud.recommender.v1.Operation} message Operation + * @param {google.cloud.recommender.v1beta1.RecommenderGenerationConfig} message RecommenderGenerationConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Operation.toObject = function toObject(message, options) { + RecommenderGenerationConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) { - object.pathFilters = {}; - object.pathValueMatchers = {}; - } - if (options.defaults) { - object.action = ""; - object.resourceType = ""; - object.resource = ""; - object.path = ""; - object.sourceResource = ""; - object.sourcePath = ""; - } - if (message.action != null && message.hasOwnProperty("action")) - object.action = message.action; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - object.resourceType = message.resourceType; - if (message.resource != null && message.hasOwnProperty("resource")) - object.resource = message.resource; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.sourceResource != null && message.hasOwnProperty("sourceResource")) - object.sourceResource = message.sourceResource; - if (message.sourcePath != null && message.hasOwnProperty("sourcePath")) - object.sourcePath = message.sourcePath; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = $root.google.protobuf.Value.toObject(message.value, options); - if (options.oneofs) - object.pathValue = "value"; - } - var keys2; - if (message.pathFilters && (keys2 = Object.keys(message.pathFilters)).length) { - object.pathFilters = {}; - for (var j = 0; j < keys2.length; ++j) - object.pathFilters[keys2[j]] = $root.google.protobuf.Value.toObject(message.pathFilters[keys2[j]], options); - } - if (message.valueMatcher != null && message.hasOwnProperty("valueMatcher")) { - object.valueMatcher = $root.google.cloud.recommender.v1.ValueMatcher.toObject(message.valueMatcher, options); - if (options.oneofs) - object.pathValue = "valueMatcher"; - } - if (message.pathValueMatchers && (keys2 = Object.keys(message.pathValueMatchers)).length) { - object.pathValueMatchers = {}; - for (var j = 0; j < keys2.length; ++j) - object.pathValueMatchers[keys2[j]] = $root.google.cloud.recommender.v1.ValueMatcher.toObject(message.pathValueMatchers[keys2[j]], options); - } + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.google.protobuf.Struct.toObject(message.params, options); return object; }; /** - * Converts this Operation to JSON. + * Converts this RecommenderGenerationConfig to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig * @instance * @returns {Object.} JSON object */ - Operation.prototype.toJSON = function toJSON() { + RecommenderGenerationConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Operation + * Gets the default type url for RecommenderGenerationConfig * @function getTypeUrl - * @memberof google.cloud.recommender.v1.Operation + * @memberof google.cloud.recommender.v1beta1.RecommenderGenerationConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Operation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RecommenderGenerationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.Operation"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.RecommenderGenerationConfig"; }; - return Operation; + return RecommenderGenerationConfig; })(); - v1.ValueMatcher = (function() { + v1beta1.Recommender = (function() { /** - * Properties of a ValueMatcher. - * @memberof google.cloud.recommender.v1 - * @interface IValueMatcher - * @property {string|null} [matchesPattern] ValueMatcher matchesPattern + * Constructs a new Recommender service. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a Recommender + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Recommender(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Recommender.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Recommender; /** - * Constructs a new ValueMatcher. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a ValueMatcher. - * @implements IValueMatcher - * @constructor - * @param {google.cloud.recommender.v1.IValueMatcher=} [properties] Properties to set + * Creates new Recommender service using the specified rpc implementation. + * @function create + * @memberof google.cloud.recommender.v1beta1.Recommender + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Recommender} RPC service. Useful where requests and/or responses are streamed. */ - function ValueMatcher(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]]; - } + Recommender.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ValueMatcher matchesPattern. - * @member {string|null|undefined} matchesPattern - * @memberof google.cloud.recommender.v1.ValueMatcher + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|listInsights}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef ListInsightsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.ListInsightsResponse} [response] ListInsightsResponse + */ + + /** + * Calls ListInsights. + * @function listInsights + * @memberof google.cloud.recommender.v1beta1.Recommender * @instance + * @param {google.cloud.recommender.v1beta1.IListInsightsRequest} request ListInsightsRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.ListInsightsCallback} callback Node-style callback called with the error, if any, and ListInsightsResponse + * @returns {undefined} + * @variation 1 */ - ValueMatcher.prototype.matchesPattern = null; + Object.defineProperty(Recommender.prototype.listInsights = function listInsights(request, callback) { + return this.rpcCall(listInsights, $root.google.cloud.recommender.v1beta1.ListInsightsRequest, $root.google.cloud.recommender.v1beta1.ListInsightsResponse, request, callback); + }, "name", { value: "ListInsights" }); - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Calls ListInsights. + * @function listInsights + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IListInsightsRequest} request ListInsightsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * ValueMatcher matchVariant. - * @member {"matchesPattern"|undefined} matchVariant - * @memberof google.cloud.recommender.v1.ValueMatcher + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|getInsight}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef GetInsightCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.Insight} [response] Insight + */ + + /** + * Calls GetInsight. + * @function getInsight + * @memberof google.cloud.recommender.v1beta1.Recommender * @instance + * @param {google.cloud.recommender.v1beta1.IGetInsightRequest} request GetInsightRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.GetInsightCallback} callback Node-style callback called with the error, if any, and Insight + * @returns {undefined} + * @variation 1 */ - Object.defineProperty(ValueMatcher.prototype, "matchVariant", { - get: $util.oneOfGetter($oneOfFields = ["matchesPattern"]), - set: $util.oneOfSetter($oneOfFields) - }); + Object.defineProperty(Recommender.prototype.getInsight = function getInsight(request, callback) { + return this.rpcCall(getInsight, $root.google.cloud.recommender.v1beta1.GetInsightRequest, $root.google.cloud.recommender.v1beta1.Insight, request, callback); + }, "name", { value: "GetInsight" }); /** - * Creates a new ValueMatcher instance using the specified properties. - * @function create - * @memberof google.cloud.recommender.v1.ValueMatcher - * @static - * @param {google.cloud.recommender.v1.IValueMatcher=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.ValueMatcher} ValueMatcher instance + * Calls GetInsight. + * @function getInsight + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IGetInsightRequest} request GetInsightRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ValueMatcher.create = function create(properties) { - return new ValueMatcher(properties); - }; /** - * Encodes the specified ValueMatcher message. Does not implicitly {@link google.cloud.recommender.v1.ValueMatcher.verify|verify} messages. - * @function encode - * @memberof google.cloud.recommender.v1.ValueMatcher - * @static - * @param {google.cloud.recommender.v1.IValueMatcher} message ValueMatcher message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|markInsightAccepted}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef MarkInsightAcceptedCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.Insight} [response] Insight + */ + + /** + * Calls MarkInsightAccepted. + * @function markInsightAccepted + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest} request MarkInsightAcceptedRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.MarkInsightAcceptedCallback} callback Node-style callback called with the error, if any, and Insight + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.markInsightAccepted = function markInsightAccepted(request, callback) { + return this.rpcCall(markInsightAccepted, $root.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest, $root.google.cloud.recommender.v1beta1.Insight, request, callback); + }, "name", { value: "MarkInsightAccepted" }); + + /** + * Calls MarkInsightAccepted. + * @function markInsightAccepted + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest} request MarkInsightAcceptedRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|listRecommendations}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef ListRecommendationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.ListRecommendationsResponse} [response] ListRecommendationsResponse */ - ValueMatcher.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.matchesPattern != null && Object.hasOwnProperty.call(message, "matchesPattern")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchesPattern); - return writer; - }; /** - * Encodes the specified ValueMatcher message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ValueMatcher.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.recommender.v1.ValueMatcher - * @static - * @param {google.cloud.recommender.v1.IValueMatcher} message ValueMatcher message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListRecommendations. + * @function listRecommendations + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IListRecommendationsRequest} request ListRecommendationsRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.ListRecommendationsCallback} callback Node-style callback called with the error, if any, and ListRecommendationsResponse + * @returns {undefined} + * @variation 1 */ - ValueMatcher.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Recommender.prototype.listRecommendations = function listRecommendations(request, callback) { + return this.rpcCall(listRecommendations, $root.google.cloud.recommender.v1beta1.ListRecommendationsRequest, $root.google.cloud.recommender.v1beta1.ListRecommendationsResponse, request, callback); + }, "name", { value: "ListRecommendations" }); /** - * Decodes a ValueMatcher message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.recommender.v1.ValueMatcher - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.ValueMatcher} ValueMatcher - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListRecommendations. + * @function listRecommendations + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IListRecommendationsRequest} request ListRecommendationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ValueMatcher.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ValueMatcher(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.matchesPattern = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ValueMatcher message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.recommender.v1.ValueMatcher - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.ValueMatcher} ValueMatcher - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|getRecommendation}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef GetRecommendationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.Recommendation} [response] Recommendation */ - ValueMatcher.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ValueMatcher message. - * @function verify - * @memberof google.cloud.recommender.v1.ValueMatcher - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetRecommendation. + * @function getRecommendation + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IGetRecommendationRequest} request GetRecommendationRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.GetRecommendationCallback} callback Node-style callback called with the error, if any, and Recommendation + * @returns {undefined} + * @variation 1 */ - ValueMatcher.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.matchesPattern != null && message.hasOwnProperty("matchesPattern")) { - properties.matchVariant = 1; - if (!$util.isString(message.matchesPattern)) - return "matchesPattern: string expected"; - } - return null; - }; + Object.defineProperty(Recommender.prototype.getRecommendation = function getRecommendation(request, callback) { + return this.rpcCall(getRecommendation, $root.google.cloud.recommender.v1beta1.GetRecommendationRequest, $root.google.cloud.recommender.v1beta1.Recommendation, request, callback); + }, "name", { value: "GetRecommendation" }); /** - * Creates a ValueMatcher message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.recommender.v1.ValueMatcher - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.ValueMatcher} ValueMatcher + * Calls GetRecommendation. + * @function getRecommendation + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IGetRecommendationRequest} request GetRecommendationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ValueMatcher.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.ValueMatcher) - return object; - var message = new $root.google.cloud.recommender.v1.ValueMatcher(); - if (object.matchesPattern != null) - message.matchesPattern = String(object.matchesPattern); - return message; - }; /** - * Creates a plain object from a ValueMatcher message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.recommender.v1.ValueMatcher - * @static - * @param {google.cloud.recommender.v1.ValueMatcher} message ValueMatcher - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|markRecommendationClaimed}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef MarkRecommendationClaimedCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.Recommendation} [response] Recommendation */ - ValueMatcher.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.matchesPattern != null && message.hasOwnProperty("matchesPattern")) { - object.matchesPattern = message.matchesPattern; - if (options.oneofs) - object.matchVariant = "matchesPattern"; - } - return object; - }; /** - * Converts this ValueMatcher to JSON. - * @function toJSON - * @memberof google.cloud.recommender.v1.ValueMatcher + * Calls MarkRecommendationClaimed. + * @function markRecommendationClaimed + * @memberof google.cloud.recommender.v1beta1.Recommender * @instance - * @returns {Object.} JSON object + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest} request MarkRecommendationClaimedRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimedCallback} callback Node-style callback called with the error, if any, and Recommendation + * @returns {undefined} + * @variation 1 */ - ValueMatcher.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Recommender.prototype.markRecommendationClaimed = function markRecommendationClaimed(request, callback) { + return this.rpcCall(markRecommendationClaimed, $root.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest, $root.google.cloud.recommender.v1beta1.Recommendation, request, callback); + }, "name", { value: "MarkRecommendationClaimed" }); /** - * Gets the default type url for ValueMatcher - * @function getTypeUrl - * @memberof google.cloud.recommender.v1.ValueMatcher - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls MarkRecommendationClaimed. + * @function markRecommendationClaimed + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest} request MarkRecommendationClaimedRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ValueMatcher.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.recommender.v1.ValueMatcher"; - }; - return ValueMatcher; - })(); + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|markRecommendationSucceeded}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef MarkRecommendationSucceededCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.Recommendation} [response] Recommendation + */ - v1.CostProjection = (function() { + /** + * Calls MarkRecommendationSucceeded. + * @function markRecommendationSucceeded + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest} request MarkRecommendationSucceededRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceededCallback} callback Node-style callback called with the error, if any, and Recommendation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Recommender.prototype.markRecommendationSucceeded = function markRecommendationSucceeded(request, callback) { + return this.rpcCall(markRecommendationSucceeded, $root.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest, $root.google.cloud.recommender.v1beta1.Recommendation, request, callback); + }, "name", { value: "MarkRecommendationSucceeded" }); /** - * Properties of a CostProjection. - * @memberof google.cloud.recommender.v1 - * @interface ICostProjection - * @property {google.type.IMoney|null} [cost] CostProjection cost - * @property {google.protobuf.IDuration|null} [duration] CostProjection duration + * Calls MarkRecommendationSucceeded. + * @function markRecommendationSucceeded + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest} request MarkRecommendationSucceededRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CostProjection. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a CostProjection. - * @implements ICostProjection - * @constructor - * @param {google.cloud.recommender.v1.ICostProjection=} [properties] Properties to set + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|markRecommendationFailed}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef MarkRecommendationFailedCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.Recommendation} [response] Recommendation */ - function CostProjection(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]]; - } /** - * CostProjection cost. - * @member {google.type.IMoney|null|undefined} cost - * @memberof google.cloud.recommender.v1.CostProjection + * Calls MarkRecommendationFailed. + * @function markRecommendationFailed + * @memberof google.cloud.recommender.v1beta1.Recommender * @instance + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest} request MarkRecommendationFailedRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailedCallback} callback Node-style callback called with the error, if any, and Recommendation + * @returns {undefined} + * @variation 1 */ - CostProjection.prototype.cost = null; + Object.defineProperty(Recommender.prototype.markRecommendationFailed = function markRecommendationFailed(request, callback) { + return this.rpcCall(markRecommendationFailed, $root.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest, $root.google.cloud.recommender.v1beta1.Recommendation, request, callback); + }, "name", { value: "MarkRecommendationFailed" }); /** - * CostProjection duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof google.cloud.recommender.v1.CostProjection + * Calls MarkRecommendationFailed. + * @function markRecommendationFailed + * @memberof google.cloud.recommender.v1beta1.Recommender * @instance + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest} request MarkRecommendationFailedRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CostProjection.prototype.duration = null; /** - * Creates a new CostProjection instance using the specified properties. - * @function create - * @memberof google.cloud.recommender.v1.CostProjection - * @static - * @param {google.cloud.recommender.v1.ICostProjection=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.CostProjection} CostProjection instance + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|getRecommenderConfig}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef GetRecommenderConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.RecommenderConfig} [response] RecommenderConfig */ - CostProjection.create = function create(properties) { - return new CostProjection(properties); - }; /** - * Encodes the specified CostProjection message. Does not implicitly {@link google.cloud.recommender.v1.CostProjection.verify|verify} messages. - * @function encode - * @memberof google.cloud.recommender.v1.CostProjection - * @static - * @param {google.cloud.recommender.v1.ICostProjection} message CostProjection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetRecommenderConfig. + * @function getRecommenderConfig + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest} request GetRecommenderConfigRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfigCallback} callback Node-style callback called with the error, if any, and RecommenderConfig + * @returns {undefined} + * @variation 1 */ - CostProjection.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.google.type.Money.encode(message.cost, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Object.defineProperty(Recommender.prototype.getRecommenderConfig = function getRecommenderConfig(request, callback) { + return this.rpcCall(getRecommenderConfig, $root.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest, $root.google.cloud.recommender.v1beta1.RecommenderConfig, request, callback); + }, "name", { value: "GetRecommenderConfig" }); /** - * Encodes the specified CostProjection message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.CostProjection.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.recommender.v1.CostProjection - * @static - * @param {google.cloud.recommender.v1.ICostProjection} message CostProjection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetRecommenderConfig. + * @function getRecommenderConfig + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest} request GetRecommenderConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|updateRecommenderConfig}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef UpdateRecommenderConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.RecommenderConfig} [response] RecommenderConfig */ - CostProjection.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CostProjection message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.recommender.v1.CostProjection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.CostProjection} CostProjection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateRecommenderConfig. + * @function updateRecommenderConfig + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest} request UpdateRecommenderConfigRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfigCallback} callback Node-style callback called with the error, if any, and RecommenderConfig + * @returns {undefined} + * @variation 1 */ - CostProjection.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.CostProjection(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.cost = $root.google.type.Money.decode(reader, reader.uint32()); - break; - } - case 2: { - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Object.defineProperty(Recommender.prototype.updateRecommenderConfig = function updateRecommenderConfig(request, callback) { + return this.rpcCall(updateRecommenderConfig, $root.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest, $root.google.cloud.recommender.v1beta1.RecommenderConfig, request, callback); + }, "name", { value: "UpdateRecommenderConfig" }); /** - * Decodes a CostProjection message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.recommender.v1.CostProjection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.CostProjection} CostProjection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateRecommenderConfig. + * @function updateRecommenderConfig + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest} request UpdateRecommenderConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CostProjection.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a CostProjection message. - * @function verify - * @memberof google.cloud.recommender.v1.CostProjection - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|getInsightTypeConfig}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef GetInsightTypeConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.InsightTypeConfig} [response] InsightTypeConfig */ - CostProjection.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cost != null && message.hasOwnProperty("cost")) { - var error = $root.google.type.Money.verify(message.cost); - if (error) - return "cost." + error; - } - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - return null; - }; /** - * Creates a CostProjection message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.recommender.v1.CostProjection - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.CostProjection} CostProjection + * Calls GetInsightTypeConfig. + * @function getInsightTypeConfig + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest} request GetInsightTypeConfigRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfigCallback} callback Node-style callback called with the error, if any, and InsightTypeConfig + * @returns {undefined} + * @variation 1 */ - CostProjection.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.CostProjection) - return object; - var message = new $root.google.cloud.recommender.v1.CostProjection(); - if (object.cost != null) { - if (typeof object.cost !== "object") - throw TypeError(".google.cloud.recommender.v1.CostProjection.cost: object expected"); - message.cost = $root.google.type.Money.fromObject(object.cost); - } - if (object.duration != null) { - if (typeof object.duration !== "object") - throw TypeError(".google.cloud.recommender.v1.CostProjection.duration: object expected"); - message.duration = $root.google.protobuf.Duration.fromObject(object.duration); - } - return message; - }; + Object.defineProperty(Recommender.prototype.getInsightTypeConfig = function getInsightTypeConfig(request, callback) { + return this.rpcCall(getInsightTypeConfig, $root.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest, $root.google.cloud.recommender.v1beta1.InsightTypeConfig, request, callback); + }, "name", { value: "GetInsightTypeConfig" }); /** - * Creates a plain object from a CostProjection message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.recommender.v1.CostProjection - * @static - * @param {google.cloud.recommender.v1.CostProjection} message CostProjection - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetInsightTypeConfig. + * @function getInsightTypeConfig + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest} request GetInsightTypeConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CostProjection.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.cost = null; - object.duration = null; - } - if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.google.type.Money.toObject(message.cost, options); - if (message.duration != null && message.hasOwnProperty("duration")) - object.duration = $root.google.protobuf.Duration.toObject(message.duration, options); - return object; - }; /** - * Converts this CostProjection to JSON. - * @function toJSON - * @memberof google.cloud.recommender.v1.CostProjection + * Callback as used by {@link google.cloud.recommender.v1beta1.Recommender|updateInsightTypeConfig}. + * @memberof google.cloud.recommender.v1beta1.Recommender + * @typedef UpdateInsightTypeConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.recommender.v1beta1.InsightTypeConfig} [response] InsightTypeConfig + */ + + /** + * Calls UpdateInsightTypeConfig. + * @function updateInsightTypeConfig + * @memberof google.cloud.recommender.v1beta1.Recommender * @instance - * @returns {Object.} JSON object + * @param {google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest} request UpdateInsightTypeConfigRequest message or plain object + * @param {google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfigCallback} callback Node-style callback called with the error, if any, and InsightTypeConfig + * @returns {undefined} + * @variation 1 */ - CostProjection.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Recommender.prototype.updateInsightTypeConfig = function updateInsightTypeConfig(request, callback) { + return this.rpcCall(updateInsightTypeConfig, $root.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest, $root.google.cloud.recommender.v1beta1.InsightTypeConfig, request, callback); + }, "name", { value: "UpdateInsightTypeConfig" }); /** - * Gets the default type url for CostProjection - * @function getTypeUrl - * @memberof google.cloud.recommender.v1.CostProjection - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls UpdateInsightTypeConfig. + * @function updateInsightTypeConfig + * @memberof google.cloud.recommender.v1beta1.Recommender + * @instance + * @param {google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest} request UpdateInsightTypeConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CostProjection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.recommender.v1.CostProjection"; - }; - return CostProjection; + return Recommender; })(); - v1.Impact = (function() { + v1beta1.ListInsightsRequest = (function() { /** - * Properties of an Impact. - * @memberof google.cloud.recommender.v1 - * @interface IImpact - * @property {google.cloud.recommender.v1.Impact.Category|null} [category] Impact category - * @property {google.cloud.recommender.v1.ICostProjection|null} [costProjection] Impact costProjection + * Properties of a ListInsightsRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IListInsightsRequest + * @property {string|null} [parent] ListInsightsRequest parent + * @property {number|null} [pageSize] ListInsightsRequest pageSize + * @property {string|null} [pageToken] ListInsightsRequest pageToken + * @property {string|null} [filter] ListInsightsRequest filter */ /** - * Constructs a new Impact. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents an Impact. - * @implements IImpact + * Constructs a new ListInsightsRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a ListInsightsRequest. + * @implements IListInsightsRequest * @constructor - * @param {google.cloud.recommender.v1.IImpact=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IListInsightsRequest=} [properties] Properties to set */ - function Impact(properties) { + function ListInsightsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3268,103 +15650,117 @@ } /** - * Impact category. - * @member {google.cloud.recommender.v1.Impact.Category} category - * @memberof google.cloud.recommender.v1.Impact + * ListInsightsRequest parent. + * @member {string} parent + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @instance */ - Impact.prototype.category = 0; + ListInsightsRequest.prototype.parent = ""; /** - * Impact costProjection. - * @member {google.cloud.recommender.v1.ICostProjection|null|undefined} costProjection - * @memberof google.cloud.recommender.v1.Impact + * ListInsightsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @instance */ - Impact.prototype.costProjection = null; + ListInsightsRequest.prototype.pageSize = 0; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ListInsightsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest + * @instance + */ + ListInsightsRequest.prototype.pageToken = ""; /** - * Impact projection. - * @member {"costProjection"|undefined} projection - * @memberof google.cloud.recommender.v1.Impact + * ListInsightsRequest filter. + * @member {string} filter + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @instance */ - Object.defineProperty(Impact.prototype, "projection", { - get: $util.oneOfGetter($oneOfFields = ["costProjection"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListInsightsRequest.prototype.filter = ""; /** - * Creates a new Impact instance using the specified properties. + * Creates a new ListInsightsRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @static - * @param {google.cloud.recommender.v1.IImpact=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.Impact} Impact instance + * @param {google.cloud.recommender.v1beta1.IListInsightsRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.ListInsightsRequest} ListInsightsRequest instance */ - Impact.create = function create(properties) { - return new Impact(properties); + ListInsightsRequest.create = function create(properties) { + return new ListInsightsRequest(properties); }; /** - * Encodes the specified Impact message. Does not implicitly {@link google.cloud.recommender.v1.Impact.verify|verify} messages. + * Encodes the specified ListInsightsRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.ListInsightsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @static - * @param {google.cloud.recommender.v1.IImpact} message Impact message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IListInsightsRequest} message ListInsightsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Impact.encode = function encode(message, writer) { + ListInsightsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.category != null && Object.hasOwnProperty.call(message, "category")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.category); - if (message.costProjection != null && Object.hasOwnProperty.call(message, "costProjection")) - $root.google.cloud.recommender.v1.CostProjection.encode(message.costProjection, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified Impact message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.Impact.verify|verify} messages. + * Encodes the specified ListInsightsRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ListInsightsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @static - * @param {google.cloud.recommender.v1.IImpact} message Impact message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IListInsightsRequest} message ListInsightsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Impact.encodeDelimited = function encodeDelimited(message, writer) { + ListInsightsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Impact message from the specified reader or buffer. + * Decodes a ListInsightsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.Impact} Impact + * @returns {google.cloud.recommender.v1beta1.ListInsightsRequest} ListInsightsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Impact.decode = function decode(reader, length) { + ListInsightsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.Impact(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.ListInsightsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.category = reader.int32(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } - case 100: { - message.costProjection = $root.google.cloud.recommender.v1.CostProjection.decode(reader, reader.uint32()); + case 4: { + message.filter = reader.string(); break; } default: @@ -3376,197 +15772,149 @@ }; /** - * Decodes an Impact message from the specified reader or buffer, length delimited. + * Decodes a ListInsightsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.Impact} Impact + * @returns {google.cloud.recommender.v1beta1.ListInsightsRequest} ListInsightsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Impact.decodeDelimited = function decodeDelimited(reader) { + ListInsightsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Impact message. + * Verifies a ListInsightsRequest message. * @function verify - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Impact.verify = function verify(message) { + ListInsightsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.category != null && message.hasOwnProperty("category")) - switch (message.category) { - default: - return "category: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.costProjection != null && message.hasOwnProperty("costProjection")) { - properties.projection = 1; - { - var error = $root.google.cloud.recommender.v1.CostProjection.verify(message.costProjection); - if (error) - return "costProjection." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates an Impact message from a plain object. Also converts values to their respective internal types. + * Creates a ListInsightsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.Impact} Impact + * @returns {google.cloud.recommender.v1beta1.ListInsightsRequest} ListInsightsRequest */ - Impact.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.Impact) + ListInsightsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.ListInsightsRequest) return object; - var message = new $root.google.cloud.recommender.v1.Impact(); - switch (object.category) { - default: - if (typeof object.category === "number") { - message.category = object.category; - break; - } - break; - case "CATEGORY_UNSPECIFIED": - case 0: - message.category = 0; - break; - case "COST": - case 1: - message.category = 1; - break; - case "SECURITY": - case 2: - message.category = 2; - break; - case "PERFORMANCE": - case 3: - message.category = 3; - break; - case "MANAGEABILITY": - case 4: - message.category = 4; - break; - } - if (object.costProjection != null) { - if (typeof object.costProjection !== "object") - throw TypeError(".google.cloud.recommender.v1.Impact.costProjection: object expected"); - message.costProjection = $root.google.cloud.recommender.v1.CostProjection.fromObject(object.costProjection); - } + var message = new $root.google.cloud.recommender.v1beta1.ListInsightsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from an Impact message. Also converts values to other types if specified. + * Creates a plain object from a ListInsightsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @static - * @param {google.cloud.recommender.v1.Impact} message Impact + * @param {google.cloud.recommender.v1beta1.ListInsightsRequest} message ListInsightsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Impact.toObject = function toObject(message, options) { + ListInsightsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.category = options.enums === String ? "CATEGORY_UNSPECIFIED" : 0; - if (message.category != null && message.hasOwnProperty("category")) - object.category = options.enums === String ? $root.google.cloud.recommender.v1.Impact.Category[message.category] === undefined ? message.category : $root.google.cloud.recommender.v1.Impact.Category[message.category] : message.category; - if (message.costProjection != null && message.hasOwnProperty("costProjection")) { - object.costProjection = $root.google.cloud.recommender.v1.CostProjection.toObject(message.costProjection, options); - if (options.oneofs) - object.projection = "costProjection"; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this Impact to JSON. + * Converts this ListInsightsRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @instance * @returns {Object.} JSON object */ - Impact.prototype.toJSON = function toJSON() { + ListInsightsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Impact + * Gets the default type url for ListInsightsRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.Impact + * @memberof google.cloud.recommender.v1beta1.ListInsightsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Impact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListInsightsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.Impact"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.ListInsightsRequest"; }; - /** - * Category enum. - * @name google.cloud.recommender.v1.Impact.Category - * @enum {number} - * @property {number} CATEGORY_UNSPECIFIED=0 CATEGORY_UNSPECIFIED value - * @property {number} COST=1 COST value - * @property {number} SECURITY=2 SECURITY value - * @property {number} PERFORMANCE=3 PERFORMANCE value - * @property {number} MANAGEABILITY=4 MANAGEABILITY value - */ - Impact.Category = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "COST"] = 1; - values[valuesById[2] = "SECURITY"] = 2; - values[valuesById[3] = "PERFORMANCE"] = 3; - values[valuesById[4] = "MANAGEABILITY"] = 4; - return values; - })(); - - return Impact; + return ListInsightsRequest; })(); - v1.RecommendationStateInfo = (function() { + v1beta1.ListInsightsResponse = (function() { /** - * Properties of a RecommendationStateInfo. - * @memberof google.cloud.recommender.v1 - * @interface IRecommendationStateInfo - * @property {google.cloud.recommender.v1.RecommendationStateInfo.State|null} [state] RecommendationStateInfo state - * @property {Object.|null} [stateMetadata] RecommendationStateInfo stateMetadata + * Properties of a ListInsightsResponse. + * @memberof google.cloud.recommender.v1beta1 + * @interface IListInsightsResponse + * @property {Array.|null} [insights] ListInsightsResponse insights + * @property {string|null} [nextPageToken] ListInsightsResponse nextPageToken */ /** - * Constructs a new RecommendationStateInfo. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a RecommendationStateInfo. - * @implements IRecommendationStateInfo + * Constructs a new ListInsightsResponse. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a ListInsightsResponse. + * @implements IListInsightsResponse * @constructor - * @param {google.cloud.recommender.v1.IRecommendationStateInfo=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IListInsightsResponse=} [properties] Properties to set */ - function RecommendationStateInfo(properties) { - this.stateMetadata = {}; + function ListInsightsResponse(properties) { + this.insights = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3574,109 +15922,92 @@ } /** - * RecommendationStateInfo state. - * @member {google.cloud.recommender.v1.RecommendationStateInfo.State} state - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * ListInsightsResponse insights. + * @member {Array.} insights + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @instance */ - RecommendationStateInfo.prototype.state = 0; + ListInsightsResponse.prototype.insights = $util.emptyArray; /** - * RecommendationStateInfo stateMetadata. - * @member {Object.} stateMetadata - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * ListInsightsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @instance */ - RecommendationStateInfo.prototype.stateMetadata = $util.emptyObject; + ListInsightsResponse.prototype.nextPageToken = ""; /** - * Creates a new RecommendationStateInfo instance using the specified properties. + * Creates a new ListInsightsResponse instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @static - * @param {google.cloud.recommender.v1.IRecommendationStateInfo=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.RecommendationStateInfo} RecommendationStateInfo instance + * @param {google.cloud.recommender.v1beta1.IListInsightsResponse=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.ListInsightsResponse} ListInsightsResponse instance */ - RecommendationStateInfo.create = function create(properties) { - return new RecommendationStateInfo(properties); + ListInsightsResponse.create = function create(properties) { + return new ListInsightsResponse(properties); }; /** - * Encodes the specified RecommendationStateInfo message. Does not implicitly {@link google.cloud.recommender.v1.RecommendationStateInfo.verify|verify} messages. + * Encodes the specified ListInsightsResponse message. Does not implicitly {@link google.cloud.recommender.v1beta1.ListInsightsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @static - * @param {google.cloud.recommender.v1.IRecommendationStateInfo} message RecommendationStateInfo message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IListInsightsResponse} message ListInsightsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecommendationStateInfo.encode = function encode(message, writer) { + ListInsightsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) - for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + if (message.insights != null && message.insights.length) + for (var i = 0; i < message.insights.length; ++i) + $root.google.cloud.recommender.v1beta1.Insight.encode(message.insights[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified RecommendationStateInfo message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.RecommendationStateInfo.verify|verify} messages. + * Encodes the specified ListInsightsResponse message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ListInsightsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @static - * @param {google.cloud.recommender.v1.IRecommendationStateInfo} message RecommendationStateInfo message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IListInsightsResponse} message ListInsightsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecommendationStateInfo.encodeDelimited = function encodeDelimited(message, writer) { + ListInsightsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecommendationStateInfo message from the specified reader or buffer. + * Decodes a ListInsightsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.RecommendationStateInfo} RecommendationStateInfo + * @returns {google.cloud.recommender.v1beta1.ListInsightsResponse} ListInsightsResponse * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecommendationStateInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.RecommendationStateInfo(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.state = reader.int32(); - break; - } - case 2: { - if (message.stateMetadata === $util.emptyObject) - message.stateMetadata = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.stateMetadata[key] = value; + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListInsightsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.ListInsightsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.insights && message.insights.length)) + message.insights = []; + message.insights.push($root.google.cloud.recommender.v1beta1.Insight.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -3688,508 +16019,640 @@ }; /** - * Decodes a RecommendationStateInfo message from the specified reader or buffer, length delimited. + * Decodes a ListInsightsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.RecommendationStateInfo} RecommendationStateInfo + * @returns {google.cloud.recommender.v1beta1.ListInsightsResponse} ListInsightsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecommendationStateInfo.decodeDelimited = function decodeDelimited(reader) { + ListInsightsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecommendationStateInfo message. + * Verifies a ListInsightsResponse message. * @function verify - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecommendationStateInfo.verify = function verify(message) { + ListInsightsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 6: - case 3: - case 4: - case 5: - break; + if (message.insights != null && message.hasOwnProperty("insights")) { + if (!Array.isArray(message.insights)) + return "insights: array expected"; + for (var i = 0; i < message.insights.length; ++i) { + var error = $root.google.cloud.recommender.v1beta1.Insight.verify(message.insights[i]); + if (error) + return "insights." + error; } - if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { - if (!$util.isObject(message.stateMetadata)) - return "stateMetadata: object expected"; - var key = Object.keys(message.stateMetadata); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.stateMetadata[key[i]])) - return "stateMetadata: string{k:string} expected"; } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a RecommendationStateInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ListInsightsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.RecommendationStateInfo} RecommendationStateInfo + * @returns {google.cloud.recommender.v1beta1.ListInsightsResponse} ListInsightsResponse */ - RecommendationStateInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.RecommendationStateInfo) + ListInsightsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.ListInsightsResponse) return object; - var message = new $root.google.cloud.recommender.v1.RecommendationStateInfo(); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; + var message = new $root.google.cloud.recommender.v1beta1.ListInsightsResponse(); + if (object.insights) { + if (!Array.isArray(object.insights)) + throw TypeError(".google.cloud.recommender.v1beta1.ListInsightsResponse.insights: array expected"); + message.insights = []; + for (var i = 0; i < object.insights.length; ++i) { + if (typeof object.insights[i] !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.ListInsightsResponse.insights: object expected"); + message.insights[i] = $root.google.cloud.recommender.v1beta1.Insight.fromObject(object.insights[i]); } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "CLAIMED": - case 6: - message.state = 6; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "FAILED": - case 4: - message.state = 4; - break; - case "DISMISSED": - case 5: - message.state = 5; - break; - } - if (object.stateMetadata) { - if (typeof object.stateMetadata !== "object") - throw TypeError(".google.cloud.recommender.v1.RecommendationStateInfo.stateMetadata: object expected"); - message.stateMetadata = {}; - for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) - message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a RecommendationStateInfo message. Also converts values to other types if specified. + * Creates a plain object from a ListInsightsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @static - * @param {google.cloud.recommender.v1.RecommendationStateInfo} message RecommendationStateInfo + * @param {google.cloud.recommender.v1beta1.ListInsightsResponse} message ListInsightsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecommendationStateInfo.toObject = function toObject(message, options) { + ListInsightsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.stateMetadata = {}; + if (options.arrays || options.defaults) + object.insights = []; if (options.defaults) - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.recommender.v1.RecommendationStateInfo.State[message.state] === undefined ? message.state : $root.google.cloud.recommender.v1.RecommendationStateInfo.State[message.state] : message.state; - var keys2; - if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { - object.stateMetadata = {}; - for (var j = 0; j < keys2.length; ++j) - object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + object.nextPageToken = ""; + if (message.insights && message.insights.length) { + object.insights = []; + for (var j = 0; j < message.insights.length; ++j) + object.insights[j] = $root.google.cloud.recommender.v1beta1.Insight.toObject(message.insights[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this RecommendationStateInfo to JSON. + * Converts this ListInsightsResponse to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @instance * @returns {Object.} JSON object */ - RecommendationStateInfo.prototype.toJSON = function toJSON() { + ListInsightsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RecommendationStateInfo + * Gets the default type url for ListInsightsResponse * @function getTypeUrl - * @memberof google.cloud.recommender.v1.RecommendationStateInfo + * @memberof google.cloud.recommender.v1beta1.ListInsightsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RecommendationStateInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListInsightsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.RecommendationStateInfo"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.ListInsightsResponse"; }; - /** - * State enum. - * @name google.cloud.recommender.v1.RecommendationStateInfo.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} CLAIMED=6 CLAIMED value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} FAILED=4 FAILED value - * @property {number} DISMISSED=5 DISMISSED value - */ - RecommendationStateInfo.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[6] = "CLAIMED"] = 6; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "FAILED"] = 4; - values[valuesById[5] = "DISMISSED"] = 5; - return values; - })(); - - return RecommendationStateInfo; + return ListInsightsResponse; })(); - v1.Recommender = (function() { + v1beta1.GetInsightRequest = (function() { /** - * Constructs a new Recommender service. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a Recommender - * @extends $protobuf.rpc.Service + * Properties of a GetInsightRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IGetInsightRequest + * @property {string|null} [name] GetInsightRequest name + */ + + /** + * Constructs a new GetInsightRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a GetInsightRequest. + * @implements IGetInsightRequest * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @param {google.cloud.recommender.v1beta1.IGetInsightRequest=} [properties] Properties to set */ - function Recommender(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function GetInsightRequest(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]]; } - (Recommender.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Recommender; + /** + * GetInsightRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest + * @instance + */ + GetInsightRequest.prototype.name = ""; /** - * Creates new Recommender service using the specified rpc implementation. + * Creates a new GetInsightRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.Recommender + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Recommender} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.recommender.v1beta1.IGetInsightRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.GetInsightRequest} GetInsightRequest instance */ - Recommender.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + GetInsightRequest.create = function create(properties) { + return new GetInsightRequest(properties); }; /** - * Callback as used by {@link google.cloud.recommender.v1.Recommender|listInsights}. - * @memberof google.cloud.recommender.v1.Recommender - * @typedef ListInsightsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.recommender.v1.ListInsightsResponse} [response] ListInsightsResponse + * Encodes the specified GetInsightRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.GetInsightRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest + * @static + * @param {google.cloud.recommender.v1beta1.IGetInsightRequest} message GetInsightRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInsightRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetInsightRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.GetInsightRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest + * @static + * @param {google.cloud.recommender.v1beta1.IGetInsightRequest} message GetInsightRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInsightRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetInsightRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.GetInsightRequest} GetInsightRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetInsightRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.GetInsightRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListInsights. - * @function listInsights - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IListInsightsRequest} request ListInsightsRequest message or plain object - * @param {google.cloud.recommender.v1.Recommender.ListInsightsCallback} callback Node-style callback called with the error, if any, and ListInsightsResponse - * @returns {undefined} - * @variation 1 + * Decodes a GetInsightRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.GetInsightRequest} GetInsightRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Recommender.prototype.listInsights = function listInsights(request, callback) { - return this.rpcCall(listInsights, $root.google.cloud.recommender.v1.ListInsightsRequest, $root.google.cloud.recommender.v1.ListInsightsResponse, request, callback); - }, "name", { value: "ListInsights" }); + GetInsightRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListInsights. - * @function listInsights - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IListInsightsRequest} request ListInsightsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a GetInsightRequest message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + GetInsightRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.recommender.v1.Recommender|getInsight}. - * @memberof google.cloud.recommender.v1.Recommender - * @typedef GetInsightCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.recommender.v1.Insight} [response] Insight + * Creates a GetInsightRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.GetInsightRequest} GetInsightRequest */ + GetInsightRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.GetInsightRequest) + return object; + var message = new $root.google.cloud.recommender.v1beta1.GetInsightRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls GetInsight. - * @function getInsight - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IGetInsightRequest} request GetInsightRequest message or plain object - * @param {google.cloud.recommender.v1.Recommender.GetInsightCallback} callback Node-style callback called with the error, if any, and Insight - * @returns {undefined} - * @variation 1 + * Creates a plain object from a GetInsightRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest + * @static + * @param {google.cloud.recommender.v1beta1.GetInsightRequest} message GetInsightRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Recommender.prototype.getInsight = function getInsight(request, callback) { - return this.rpcCall(getInsight, $root.google.cloud.recommender.v1.GetInsightRequest, $root.google.cloud.recommender.v1.Insight, request, callback); - }, "name", { value: "GetInsight" }); + GetInsightRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls GetInsight. - * @function getInsight - * @memberof google.cloud.recommender.v1.Recommender + * Converts this GetInsightRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest * @instance - * @param {google.cloud.recommender.v1.IGetInsightRequest} request GetInsightRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + GetInsightRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.recommender.v1.Recommender|markInsightAccepted}. - * @memberof google.cloud.recommender.v1.Recommender - * @typedef MarkInsightAcceptedCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.recommender.v1.Insight} [response] Insight + * Gets the default type url for GetInsightRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.GetInsightRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + GetInsightRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.GetInsightRequest"; + }; - /** - * Calls MarkInsightAccepted. - * @function markInsightAccepted - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest} request MarkInsightAcceptedRequest message or plain object - * @param {google.cloud.recommender.v1.Recommender.MarkInsightAcceptedCallback} callback Node-style callback called with the error, if any, and Insight - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Recommender.prototype.markInsightAccepted = function markInsightAccepted(request, callback) { - return this.rpcCall(markInsightAccepted, $root.google.cloud.recommender.v1.MarkInsightAcceptedRequest, $root.google.cloud.recommender.v1.Insight, request, callback); - }, "name", { value: "MarkInsightAccepted" }); + return GetInsightRequest; + })(); - /** - * Calls MarkInsightAccepted. - * @function markInsightAccepted - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest} request MarkInsightAcceptedRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1beta1.MarkInsightAcceptedRequest = (function() { /** - * Callback as used by {@link google.cloud.recommender.v1.Recommender|listRecommendations}. - * @memberof google.cloud.recommender.v1.Recommender - * @typedef ListRecommendationsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.recommender.v1.ListRecommendationsResponse} [response] ListRecommendationsResponse + * Properties of a MarkInsightAcceptedRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IMarkInsightAcceptedRequest + * @property {string|null} [name] MarkInsightAcceptedRequest name + * @property {Object.|null} [stateMetadata] MarkInsightAcceptedRequest stateMetadata + * @property {string|null} [etag] MarkInsightAcceptedRequest etag */ /** - * Calls ListRecommendations. - * @function listRecommendations - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IListRecommendationsRequest} request ListRecommendationsRequest message or plain object - * @param {google.cloud.recommender.v1.Recommender.ListRecommendationsCallback} callback Node-style callback called with the error, if any, and ListRecommendationsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new MarkInsightAcceptedRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a MarkInsightAcceptedRequest. + * @implements IMarkInsightAcceptedRequest + * @constructor + * @param {google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest=} [properties] Properties to set */ - Object.defineProperty(Recommender.prototype.listRecommendations = function listRecommendations(request, callback) { - return this.rpcCall(listRecommendations, $root.google.cloud.recommender.v1.ListRecommendationsRequest, $root.google.cloud.recommender.v1.ListRecommendationsResponse, request, callback); - }, "name", { value: "ListRecommendations" }); + function MarkInsightAcceptedRequest(properties) { + this.stateMetadata = {}; + 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]]; + } /** - * Calls ListRecommendations. - * @function listRecommendations - * @memberof google.cloud.recommender.v1.Recommender + * MarkInsightAcceptedRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest * @instance - * @param {google.cloud.recommender.v1.IListRecommendationsRequest} request ListRecommendationsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + MarkInsightAcceptedRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.recommender.v1.Recommender|getRecommendation}. - * @memberof google.cloud.recommender.v1.Recommender - * @typedef GetRecommendationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.recommender.v1.Recommendation} [response] Recommendation + * MarkInsightAcceptedRequest stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @instance */ + MarkInsightAcceptedRequest.prototype.stateMetadata = $util.emptyObject; /** - * Calls GetRecommendation. - * @function getRecommendation - * @memberof google.cloud.recommender.v1.Recommender + * MarkInsightAcceptedRequest etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest * @instance - * @param {google.cloud.recommender.v1.IGetRecommendationRequest} request GetRecommendationRequest message or plain object - * @param {google.cloud.recommender.v1.Recommender.GetRecommendationCallback} callback Node-style callback called with the error, if any, and Recommendation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Recommender.prototype.getRecommendation = function getRecommendation(request, callback) { - return this.rpcCall(getRecommendation, $root.google.cloud.recommender.v1.GetRecommendationRequest, $root.google.cloud.recommender.v1.Recommendation, request, callback); - }, "name", { value: "GetRecommendation" }); + MarkInsightAcceptedRequest.prototype.etag = ""; /** - * Calls GetRecommendation. - * @function getRecommendation - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IGetRecommendationRequest} request GetRecommendationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new MarkInsightAcceptedRequest instance using the specified properties. + * @function create + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @static + * @param {google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest instance */ + MarkInsightAcceptedRequest.create = function create(properties) { + return new MarkInsightAcceptedRequest(properties); + }; /** - * Callback as used by {@link google.cloud.recommender.v1.Recommender|markRecommendationClaimed}. - * @memberof google.cloud.recommender.v1.Recommender - * @typedef MarkRecommendationClaimedCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.recommender.v1.Recommendation} [response] Recommendation + * Encodes the specified MarkInsightAcceptedRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @static + * @param {google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest} message MarkInsightAcceptedRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MarkInsightAcceptedRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + return writer; + }; /** - * Calls MarkRecommendationClaimed. - * @function markRecommendationClaimed - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest} request MarkRecommendationClaimedRequest message or plain object - * @param {google.cloud.recommender.v1.Recommender.MarkRecommendationClaimedCallback} callback Node-style callback called with the error, if any, and Recommendation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Recommender.prototype.markRecommendationClaimed = function markRecommendationClaimed(request, callback) { - return this.rpcCall(markRecommendationClaimed, $root.google.cloud.recommender.v1.MarkRecommendationClaimedRequest, $root.google.cloud.recommender.v1.Recommendation, request, callback); - }, "name", { value: "MarkRecommendationClaimed" }); + * Encodes the specified MarkInsightAcceptedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @static + * @param {google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest} message MarkInsightAcceptedRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MarkInsightAcceptedRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls MarkRecommendationClaimed. - * @function markRecommendationClaimed - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest} request MarkRecommendationClaimedRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a MarkInsightAcceptedRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MarkInsightAcceptedRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; + break; + } + case 3: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.recommender.v1.Recommender|markRecommendationSucceeded}. - * @memberof google.cloud.recommender.v1.Recommender - * @typedef MarkRecommendationSucceededCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.recommender.v1.Recommendation} [response] Recommendation + * Decodes a MarkInsightAcceptedRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MarkInsightAcceptedRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls MarkRecommendationSucceeded. - * @function markRecommendationSucceeded - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest} request MarkRecommendationSucceededRequest message or plain object - * @param {google.cloud.recommender.v1.Recommender.MarkRecommendationSucceededCallback} callback Node-style callback called with the error, if any, and Recommendation - * @returns {undefined} - * @variation 1 + * Verifies a MarkInsightAcceptedRequest message. + * @function verify + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(Recommender.prototype.markRecommendationSucceeded = function markRecommendationSucceeded(request, callback) { - return this.rpcCall(markRecommendationSucceeded, $root.google.cloud.recommender.v1.MarkRecommendationSucceededRequest, $root.google.cloud.recommender.v1.Recommendation, request, callback); - }, "name", { value: "MarkRecommendationSucceeded" }); + MarkInsightAcceptedRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; /** - * Calls MarkRecommendationSucceeded. - * @function markRecommendationSucceeded - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest} request MarkRecommendationSucceededRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a MarkInsightAcceptedRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest */ + MarkInsightAcceptedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest) + return object; + var message = new $root.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); + } + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; /** - * Callback as used by {@link google.cloud.recommender.v1.Recommender|markRecommendationFailed}. - * @memberof google.cloud.recommender.v1.Recommender - * @typedef MarkRecommendationFailedCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.recommender.v1.Recommendation} [response] Recommendation + * Creates a plain object from a MarkInsightAcceptedRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @static + * @param {google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest} message MarkInsightAcceptedRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + MarkInsightAcceptedRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.stateMetadata = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; /** - * Calls MarkRecommendationFailed. - * @function markRecommendationFailed - * @memberof google.cloud.recommender.v1.Recommender + * Converts this MarkInsightAcceptedRequest to JSON. + * @function toJSON + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest * @instance - * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest} request MarkRecommendationFailedRequest message or plain object - * @param {google.cloud.recommender.v1.Recommender.MarkRecommendationFailedCallback} callback Node-style callback called with the error, if any, and Recommendation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Recommender.prototype.markRecommendationFailed = function markRecommendationFailed(request, callback) { - return this.rpcCall(markRecommendationFailed, $root.google.cloud.recommender.v1.MarkRecommendationFailedRequest, $root.google.cloud.recommender.v1.Recommendation, request, callback); - }, "name", { value: "MarkRecommendationFailed" }); + MarkInsightAcceptedRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls MarkRecommendationFailed. - * @function markRecommendationFailed - * @memberof google.cloud.recommender.v1.Recommender - * @instance - * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest} request MarkRecommendationFailedRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for MarkInsightAcceptedRequest + * @function getTypeUrl + * @memberof google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + MarkInsightAcceptedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest"; + }; - return Recommender; + return MarkInsightAcceptedRequest; })(); - v1.ListInsightsRequest = (function() { + v1beta1.ListRecommendationsRequest = (function() { /** - * Properties of a ListInsightsRequest. - * @memberof google.cloud.recommender.v1 - * @interface IListInsightsRequest - * @property {string|null} [parent] ListInsightsRequest parent - * @property {number|null} [pageSize] ListInsightsRequest pageSize - * @property {string|null} [pageToken] ListInsightsRequest pageToken - * @property {string|null} [filter] ListInsightsRequest filter + * Properties of a ListRecommendationsRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IListRecommendationsRequest + * @property {string|null} [parent] ListRecommendationsRequest parent + * @property {number|null} [pageSize] ListRecommendationsRequest pageSize + * @property {string|null} [pageToken] ListRecommendationsRequest pageToken + * @property {string|null} [filter] ListRecommendationsRequest filter */ /** - * Constructs a new ListInsightsRequest. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a ListInsightsRequest. - * @implements IListInsightsRequest + * Constructs a new ListRecommendationsRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a ListRecommendationsRequest. + * @implements IListRecommendationsRequest * @constructor - * @param {google.cloud.recommender.v1.IListInsightsRequest=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IListRecommendationsRequest=} [properties] Properties to set */ - function ListInsightsRequest(properties) { + function ListRecommendationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4197,59 +16660,59 @@ } /** - * ListInsightsRequest parent. + * ListRecommendationsRequest parent. * @member {string} parent - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @instance */ - ListInsightsRequest.prototype.parent = ""; + ListRecommendationsRequest.prototype.parent = ""; /** - * ListInsightsRequest pageSize. + * ListRecommendationsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @instance */ - ListInsightsRequest.prototype.pageSize = 0; + ListRecommendationsRequest.prototype.pageSize = 0; /** - * ListInsightsRequest pageToken. + * ListRecommendationsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @instance */ - ListInsightsRequest.prototype.pageToken = ""; + ListRecommendationsRequest.prototype.pageToken = ""; /** - * ListInsightsRequest filter. + * ListRecommendationsRequest filter. * @member {string} filter - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @instance */ - ListInsightsRequest.prototype.filter = ""; + ListRecommendationsRequest.prototype.filter = ""; /** - * Creates a new ListInsightsRequest instance using the specified properties. + * Creates a new ListRecommendationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @static - * @param {google.cloud.recommender.v1.IListInsightsRequest=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.ListInsightsRequest} ListInsightsRequest instance + * @param {google.cloud.recommender.v1beta1.IListRecommendationsRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.ListRecommendationsRequest} ListRecommendationsRequest instance */ - ListInsightsRequest.create = function create(properties) { - return new ListInsightsRequest(properties); + ListRecommendationsRequest.create = function create(properties) { + return new ListRecommendationsRequest(properties); }; /** - * Encodes the specified ListInsightsRequest message. Does not implicitly {@link google.cloud.recommender.v1.ListInsightsRequest.verify|verify} messages. + * Encodes the specified ListRecommendationsRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.ListRecommendationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @static - * @param {google.cloud.recommender.v1.IListInsightsRequest} message ListInsightsRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IListRecommendationsRequest} message ListRecommendationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListInsightsRequest.encode = function encode(message, writer) { + ListRecommendationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -4259,38 +16722,38 @@ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); return writer; }; /** - * Encodes the specified ListInsightsRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ListInsightsRequest.verify|verify} messages. + * Encodes the specified ListRecommendationsRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ListRecommendationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @static - * @param {google.cloud.recommender.v1.IListInsightsRequest} message ListInsightsRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IListRecommendationsRequest} message ListRecommendationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListInsightsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRecommendationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListInsightsRequest message from the specified reader or buffer. + * Decodes a ListRecommendationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.ListInsightsRequest} ListInsightsRequest + * @returns {google.cloud.recommender.v1beta1.ListRecommendationsRequest} ListRecommendationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListInsightsRequest.decode = function decode(reader, length) { + ListRecommendationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ListInsightsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.ListRecommendationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -4306,7 +16769,7 @@ message.pageToken = reader.string(); break; } - case 4: { + case 5: { message.filter = reader.string(); break; } @@ -4319,30 +16782,30 @@ }; /** - * Decodes a ListInsightsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRecommendationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.ListInsightsRequest} ListInsightsRequest + * @returns {google.cloud.recommender.v1beta1.ListRecommendationsRequest} ListRecommendationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListInsightsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRecommendationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListInsightsRequest message. + * Verifies a ListRecommendationsRequest message. * @function verify - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListInsightsRequest.verify = function verify(message) { + ListRecommendationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -4361,17 +16824,17 @@ }; /** - * Creates a ListInsightsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRecommendationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.ListInsightsRequest} ListInsightsRequest + * @returns {google.cloud.recommender.v1beta1.ListRecommendationsRequest} ListRecommendationsRequest */ - ListInsightsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.ListInsightsRequest) + ListRecommendationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.ListRecommendationsRequest) return object; - var message = new $root.google.cloud.recommender.v1.ListInsightsRequest(); + var message = new $root.google.cloud.recommender.v1beta1.ListRecommendationsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -4384,15 +16847,15 @@ }; /** - * Creates a plain object from a ListInsightsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRecommendationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @static - * @param {google.cloud.recommender.v1.ListInsightsRequest} message ListInsightsRequest + * @param {google.cloud.recommender.v1beta1.ListRecommendationsRequest} message ListRecommendationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListInsightsRequest.toObject = function toObject(message, options) { + ListRecommendationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -4414,54 +16877,54 @@ }; /** - * Converts this ListInsightsRequest to JSON. + * Converts this ListRecommendationsRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @instance * @returns {Object.} JSON object */ - ListInsightsRequest.prototype.toJSON = function toJSON() { + ListRecommendationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListInsightsRequest + * Gets the default type url for ListRecommendationsRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.ListInsightsRequest + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListInsightsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRecommendationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.ListInsightsRequest"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.ListRecommendationsRequest"; }; - return ListInsightsRequest; + return ListRecommendationsRequest; })(); - v1.ListInsightsResponse = (function() { + v1beta1.ListRecommendationsResponse = (function() { /** - * Properties of a ListInsightsResponse. - * @memberof google.cloud.recommender.v1 - * @interface IListInsightsResponse - * @property {Array.|null} [insights] ListInsightsResponse insights - * @property {string|null} [nextPageToken] ListInsightsResponse nextPageToken + * Properties of a ListRecommendationsResponse. + * @memberof google.cloud.recommender.v1beta1 + * @interface IListRecommendationsResponse + * @property {Array.|null} [recommendations] ListRecommendationsResponse recommendations + * @property {string|null} [nextPageToken] ListRecommendationsResponse nextPageToken */ /** - * Constructs a new ListInsightsResponse. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a ListInsightsResponse. - * @implements IListInsightsResponse + * Constructs a new ListRecommendationsResponse. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a ListRecommendationsResponse. + * @implements IListRecommendationsResponse * @constructor - * @param {google.cloud.recommender.v1.IListInsightsResponse=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IListRecommendationsResponse=} [properties] Properties to set */ - function ListInsightsResponse(properties) { - this.insights = []; + function ListRecommendationsResponse(properties) { + this.recommendations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4469,88 +16932,88 @@ } /** - * ListInsightsResponse insights. - * @member {Array.} insights - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * ListRecommendationsResponse recommendations. + * @member {Array.} recommendations + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @instance */ - ListInsightsResponse.prototype.insights = $util.emptyArray; + ListRecommendationsResponse.prototype.recommendations = $util.emptyArray; /** - * ListInsightsResponse nextPageToken. + * ListRecommendationsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @instance */ - ListInsightsResponse.prototype.nextPageToken = ""; + ListRecommendationsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListInsightsResponse instance using the specified properties. + * Creates a new ListRecommendationsResponse instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @static - * @param {google.cloud.recommender.v1.IListInsightsResponse=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.ListInsightsResponse} ListInsightsResponse instance + * @param {google.cloud.recommender.v1beta1.IListRecommendationsResponse=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.ListRecommendationsResponse} ListRecommendationsResponse instance */ - ListInsightsResponse.create = function create(properties) { - return new ListInsightsResponse(properties); + ListRecommendationsResponse.create = function create(properties) { + return new ListRecommendationsResponse(properties); }; /** - * Encodes the specified ListInsightsResponse message. Does not implicitly {@link google.cloud.recommender.v1.ListInsightsResponse.verify|verify} messages. + * Encodes the specified ListRecommendationsResponse message. Does not implicitly {@link google.cloud.recommender.v1beta1.ListRecommendationsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @static - * @param {google.cloud.recommender.v1.IListInsightsResponse} message ListInsightsResponse message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IListRecommendationsResponse} message ListRecommendationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListInsightsResponse.encode = function encode(message, writer) { + ListRecommendationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.insights != null && message.insights.length) - for (var i = 0; i < message.insights.length; ++i) - $root.google.cloud.recommender.v1.Insight.encode(message.insights[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recommendations != null && message.recommendations.length) + for (var i = 0; i < message.recommendations.length; ++i) + $root.google.cloud.recommender.v1beta1.Recommendation.encode(message.recommendations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListInsightsResponse message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ListInsightsResponse.verify|verify} messages. + * Encodes the specified ListRecommendationsResponse message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.ListRecommendationsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @static - * @param {google.cloud.recommender.v1.IListInsightsResponse} message ListInsightsResponse message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IListRecommendationsResponse} message ListRecommendationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListInsightsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListRecommendationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListInsightsResponse message from the specified reader or buffer. + * Decodes a ListRecommendationsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.ListInsightsResponse} ListInsightsResponse + * @returns {google.cloud.recommender.v1beta1.ListRecommendationsResponse} ListRecommendationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListInsightsResponse.decode = function decode(reader, length) { + ListRecommendationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ListInsightsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.ListRecommendationsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.insights && message.insights.length)) - message.insights = []; - message.insights.push($root.google.cloud.recommender.v1.Insight.decode(reader, reader.uint32())); + if (!(message.recommendations && message.recommendations.length)) + message.recommendations = []; + message.recommendations.push($root.google.cloud.recommender.v1beta1.Recommendation.decode(reader, reader.uint32())); break; } case 2: { @@ -4566,39 +17029,39 @@ }; /** - * Decodes a ListInsightsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListRecommendationsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.ListInsightsResponse} ListInsightsResponse + * @returns {google.cloud.recommender.v1beta1.ListRecommendationsResponse} ListRecommendationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListInsightsResponse.decodeDelimited = function decodeDelimited(reader) { + ListRecommendationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListInsightsResponse message. + * Verifies a ListRecommendationsResponse message. * @function verify - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListInsightsResponse.verify = function verify(message) { + ListRecommendationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.insights != null && message.hasOwnProperty("insights")) { - if (!Array.isArray(message.insights)) - return "insights: array expected"; - for (var i = 0; i < message.insights.length; ++i) { - var error = $root.google.cloud.recommender.v1.Insight.verify(message.insights[i]); + if (message.recommendations != null && message.hasOwnProperty("recommendations")) { + if (!Array.isArray(message.recommendations)) + return "recommendations: array expected"; + for (var i = 0; i < message.recommendations.length; ++i) { + var error = $root.google.cloud.recommender.v1beta1.Recommendation.verify(message.recommendations[i]); if (error) - return "insights." + error; + return "recommendations." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -4608,25 +17071,25 @@ }; /** - * Creates a ListInsightsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListRecommendationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.ListInsightsResponse} ListInsightsResponse + * @returns {google.cloud.recommender.v1beta1.ListRecommendationsResponse} ListRecommendationsResponse */ - ListInsightsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.ListInsightsResponse) + ListRecommendationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.ListRecommendationsResponse) return object; - var message = new $root.google.cloud.recommender.v1.ListInsightsResponse(); - if (object.insights) { - if (!Array.isArray(object.insights)) - throw TypeError(".google.cloud.recommender.v1.ListInsightsResponse.insights: array expected"); - message.insights = []; - for (var i = 0; i < object.insights.length; ++i) { - if (typeof object.insights[i] !== "object") - throw TypeError(".google.cloud.recommender.v1.ListInsightsResponse.insights: object expected"); - message.insights[i] = $root.google.cloud.recommender.v1.Insight.fromObject(object.insights[i]); + var message = new $root.google.cloud.recommender.v1beta1.ListRecommendationsResponse(); + if (object.recommendations) { + if (!Array.isArray(object.recommendations)) + throw TypeError(".google.cloud.recommender.v1beta1.ListRecommendationsResponse.recommendations: array expected"); + message.recommendations = []; + for (var i = 0; i < object.recommendations.length; ++i) { + if (typeof object.recommendations[i] !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.ListRecommendationsResponse.recommendations: object expected"); + message.recommendations[i] = $root.google.cloud.recommender.v1beta1.Recommendation.fromObject(object.recommendations[i]); } } if (object.nextPageToken != null) @@ -4635,26 +17098,26 @@ }; /** - * Creates a plain object from a ListInsightsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListRecommendationsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @static - * @param {google.cloud.recommender.v1.ListInsightsResponse} message ListInsightsResponse + * @param {google.cloud.recommender.v1beta1.ListRecommendationsResponse} message ListRecommendationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListInsightsResponse.toObject = function toObject(message, options) { + ListRecommendationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.insights = []; + object.recommendations = []; if (options.defaults) object.nextPageToken = ""; - if (message.insights && message.insights.length) { - object.insights = []; - for (var j = 0; j < message.insights.length; ++j) - object.insights[j] = $root.google.cloud.recommender.v1.Insight.toObject(message.insights[j], options); + if (message.recommendations && message.recommendations.length) { + object.recommendations = []; + for (var j = 0; j < message.recommendations.length; ++j) + object.recommendations[j] = $root.google.cloud.recommender.v1beta1.Recommendation.toObject(message.recommendations[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -4662,52 +17125,52 @@ }; /** - * Converts this ListInsightsResponse to JSON. + * Converts this ListRecommendationsResponse to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @instance * @returns {Object.} JSON object */ - ListInsightsResponse.prototype.toJSON = function toJSON() { + ListRecommendationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListInsightsResponse + * Gets the default type url for ListRecommendationsResponse * @function getTypeUrl - * @memberof google.cloud.recommender.v1.ListInsightsResponse + * @memberof google.cloud.recommender.v1beta1.ListRecommendationsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListInsightsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRecommendationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.ListInsightsResponse"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.ListRecommendationsResponse"; }; - return ListInsightsResponse; + return ListRecommendationsResponse; })(); - v1.GetInsightRequest = (function() { + v1beta1.GetRecommendationRequest = (function() { /** - * Properties of a GetInsightRequest. - * @memberof google.cloud.recommender.v1 - * @interface IGetInsightRequest - * @property {string|null} [name] GetInsightRequest name + * Properties of a GetRecommendationRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IGetRecommendationRequest + * @property {string|null} [name] GetRecommendationRequest name */ /** - * Constructs a new GetInsightRequest. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a GetInsightRequest. - * @implements IGetInsightRequest + * Constructs a new GetRecommendationRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a GetRecommendationRequest. + * @implements IGetRecommendationRequest * @constructor - * @param {google.cloud.recommender.v1.IGetInsightRequest=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IGetRecommendationRequest=} [properties] Properties to set */ - function GetInsightRequest(properties) { + function GetRecommendationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4715,35 +17178,35 @@ } /** - * GetInsightRequest name. + * GetRecommendationRequest name. * @member {string} name - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @instance */ - GetInsightRequest.prototype.name = ""; + GetRecommendationRequest.prototype.name = ""; /** - * Creates a new GetInsightRequest instance using the specified properties. + * Creates a new GetRecommendationRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @static - * @param {google.cloud.recommender.v1.IGetInsightRequest=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.GetInsightRequest} GetInsightRequest instance + * @param {google.cloud.recommender.v1beta1.IGetRecommendationRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.GetRecommendationRequest} GetRecommendationRequest instance */ - GetInsightRequest.create = function create(properties) { - return new GetInsightRequest(properties); + GetRecommendationRequest.create = function create(properties) { + return new GetRecommendationRequest(properties); }; /** - * Encodes the specified GetInsightRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetInsightRequest.verify|verify} messages. + * Encodes the specified GetRecommendationRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.GetRecommendationRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @static - * @param {google.cloud.recommender.v1.IGetInsightRequest} message GetInsightRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IGetRecommendationRequest} message GetRecommendationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetInsightRequest.encode = function encode(message, writer) { + GetRecommendationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -4752,33 +17215,33 @@ }; /** - * Encodes the specified GetInsightRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetInsightRequest.verify|verify} messages. + * Encodes the specified GetRecommendationRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.GetRecommendationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @static - * @param {google.cloud.recommender.v1.IGetInsightRequest} message GetInsightRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IGetRecommendationRequest} message GetRecommendationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetInsightRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetRecommendationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetInsightRequest message from the specified reader or buffer. + * Decodes a GetRecommendationRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.GetInsightRequest} GetInsightRequest + * @returns {google.cloud.recommender.v1beta1.GetRecommendationRequest} GetRecommendationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetInsightRequest.decode = function decode(reader, length) { + GetRecommendationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.GetInsightRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.GetRecommendationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -4795,30 +17258,30 @@ }; /** - * Decodes a GetInsightRequest message from the specified reader or buffer, length delimited. + * Decodes a GetRecommendationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.GetInsightRequest} GetInsightRequest + * @returns {google.cloud.recommender.v1beta1.GetRecommendationRequest} GetRecommendationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetInsightRequest.decodeDelimited = function decodeDelimited(reader) { + GetRecommendationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetInsightRequest message. + * Verifies a GetRecommendationRequest message. * @function verify - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetInsightRequest.verify = function verify(message) { + GetRecommendationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -4828,32 +17291,32 @@ }; /** - * Creates a GetInsightRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecommendationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.GetInsightRequest} GetInsightRequest + * @returns {google.cloud.recommender.v1beta1.GetRecommendationRequest} GetRecommendationRequest */ - GetInsightRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.GetInsightRequest) + GetRecommendationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.GetRecommendationRequest) return object; - var message = new $root.google.cloud.recommender.v1.GetInsightRequest(); + var message = new $root.google.cloud.recommender.v1beta1.GetRecommendationRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetInsightRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetRecommendationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @static - * @param {google.cloud.recommender.v1.GetInsightRequest} message GetInsightRequest + * @param {google.cloud.recommender.v1beta1.GetRecommendationRequest} message GetRecommendationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetInsightRequest.toObject = function toObject(message, options) { + GetRecommendationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -4865,54 +17328,54 @@ }; /** - * Converts this GetInsightRequest to JSON. + * Converts this GetRecommendationRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @instance * @returns {Object.} JSON object */ - GetInsightRequest.prototype.toJSON = function toJSON() { + GetRecommendationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetInsightRequest + * Gets the default type url for GetRecommendationRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.GetInsightRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommendationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetInsightRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetRecommendationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.GetInsightRequest"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.GetRecommendationRequest"; }; - return GetInsightRequest; + return GetRecommendationRequest; })(); - v1.MarkInsightAcceptedRequest = (function() { + v1beta1.MarkRecommendationClaimedRequest = (function() { /** - * Properties of a MarkInsightAcceptedRequest. - * @memberof google.cloud.recommender.v1 - * @interface IMarkInsightAcceptedRequest - * @property {string|null} [name] MarkInsightAcceptedRequest name - * @property {Object.|null} [stateMetadata] MarkInsightAcceptedRequest stateMetadata - * @property {string|null} [etag] MarkInsightAcceptedRequest etag + * Properties of a MarkRecommendationClaimedRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IMarkRecommendationClaimedRequest + * @property {string|null} [name] MarkRecommendationClaimedRequest name + * @property {Object.|null} [stateMetadata] MarkRecommendationClaimedRequest stateMetadata + * @property {string|null} [etag] MarkRecommendationClaimedRequest etag */ /** - * Constructs a new MarkInsightAcceptedRequest. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a MarkInsightAcceptedRequest. - * @implements IMarkInsightAcceptedRequest + * Constructs a new MarkRecommendationClaimedRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a MarkRecommendationClaimedRequest. + * @implements IMarkRecommendationClaimedRequest * @constructor - * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest=} [properties] Properties to set */ - function MarkInsightAcceptedRequest(properties) { + function MarkRecommendationClaimedRequest(properties) { this.stateMetadata = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -4921,51 +17384,51 @@ } /** - * MarkInsightAcceptedRequest name. + * MarkRecommendationClaimedRequest name. * @member {string} name - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @instance */ - MarkInsightAcceptedRequest.prototype.name = ""; + MarkRecommendationClaimedRequest.prototype.name = ""; /** - * MarkInsightAcceptedRequest stateMetadata. + * MarkRecommendationClaimedRequest stateMetadata. * @member {Object.} stateMetadata - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @instance */ - MarkInsightAcceptedRequest.prototype.stateMetadata = $util.emptyObject; + MarkRecommendationClaimedRequest.prototype.stateMetadata = $util.emptyObject; /** - * MarkInsightAcceptedRequest etag. + * MarkRecommendationClaimedRequest etag. * @member {string} etag - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @instance */ - MarkInsightAcceptedRequest.prototype.etag = ""; + MarkRecommendationClaimedRequest.prototype.etag = ""; /** - * Creates a new MarkInsightAcceptedRequest instance using the specified properties. + * Creates a new MarkRecommendationClaimedRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @static - * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest instance + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest instance */ - MarkInsightAcceptedRequest.create = function create(properties) { - return new MarkInsightAcceptedRequest(properties); + MarkRecommendationClaimedRequest.create = function create(properties) { + return new MarkRecommendationClaimedRequest(properties); }; /** - * Encodes the specified MarkInsightAcceptedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkInsightAcceptedRequest.verify|verify} messages. + * Encodes the specified MarkRecommendationClaimedRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @static - * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest} message MarkInsightAcceptedRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest} message MarkRecommendationClaimedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MarkInsightAcceptedRequest.encode = function encode(message, writer) { + MarkRecommendationClaimedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -4979,33 +17442,33 @@ }; /** - * Encodes the specified MarkInsightAcceptedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkInsightAcceptedRequest.verify|verify} messages. + * Encodes the specified MarkRecommendationClaimedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @static - * @param {google.cloud.recommender.v1.IMarkInsightAcceptedRequest} message MarkInsightAcceptedRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest} message MarkRecommendationClaimedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MarkInsightAcceptedRequest.encodeDelimited = function encodeDelimited(message, writer) { + MarkRecommendationClaimedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MarkInsightAcceptedRequest message from the specified reader or buffer. + * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MarkInsightAcceptedRequest.decode = function decode(reader, length) { + MarkRecommendationClaimedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.MarkInsightAcceptedRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -5049,30 +17512,30 @@ }; /** - * Decodes a MarkInsightAcceptedRequest message from the specified reader or buffer, length delimited. + * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MarkInsightAcceptedRequest.decodeDelimited = function decodeDelimited(reader) { + MarkRecommendationClaimedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MarkInsightAcceptedRequest message. + * Verifies a MarkRecommendationClaimedRequest message. * @function verify - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MarkInsightAcceptedRequest.verify = function verify(message) { + MarkRecommendationClaimedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -5093,22 +17556,22 @@ }; /** - * Creates a MarkInsightAcceptedRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MarkRecommendationClaimedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.MarkInsightAcceptedRequest} MarkInsightAcceptedRequest + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest */ - MarkInsightAcceptedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.MarkInsightAcceptedRequest) + MarkRecommendationClaimedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest) return object; - var message = new $root.google.cloud.recommender.v1.MarkInsightAcceptedRequest(); + var message = new $root.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest(); if (object.name != null) message.name = String(object.name); if (object.stateMetadata) { if (typeof object.stateMetadata !== "object") - throw TypeError(".google.cloud.recommender.v1.MarkInsightAcceptedRequest.stateMetadata: object expected"); + throw TypeError(".google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest.stateMetadata: object expected"); message.stateMetadata = {}; for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); @@ -5119,15 +17582,15 @@ }; /** - * Creates a plain object from a MarkInsightAcceptedRequest message. Also converts values to other types if specified. + * Creates a plain object from a MarkRecommendationClaimedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @static - * @param {google.cloud.recommender.v1.MarkInsightAcceptedRequest} message MarkInsightAcceptedRequest + * @param {google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest} message MarkRecommendationClaimedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MarkInsightAcceptedRequest.toObject = function toObject(message, options) { + MarkRecommendationClaimedRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -5151,55 +17614,55 @@ }; /** - * Converts this MarkInsightAcceptedRequest to JSON. + * Converts this MarkRecommendationClaimedRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @instance * @returns {Object.} JSON object */ - MarkInsightAcceptedRequest.prototype.toJSON = function toJSON() { + MarkRecommendationClaimedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MarkInsightAcceptedRequest + * Gets the default type url for MarkRecommendationClaimedRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.MarkInsightAcceptedRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MarkInsightAcceptedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MarkRecommendationClaimedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.MarkInsightAcceptedRequest"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest"; }; - return MarkInsightAcceptedRequest; + return MarkRecommendationClaimedRequest; })(); - v1.ListRecommendationsRequest = (function() { + v1beta1.MarkRecommendationSucceededRequest = (function() { /** - * Properties of a ListRecommendationsRequest. - * @memberof google.cloud.recommender.v1 - * @interface IListRecommendationsRequest - * @property {string|null} [parent] ListRecommendationsRequest parent - * @property {number|null} [pageSize] ListRecommendationsRequest pageSize - * @property {string|null} [pageToken] ListRecommendationsRequest pageToken - * @property {string|null} [filter] ListRecommendationsRequest filter + * Properties of a MarkRecommendationSucceededRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IMarkRecommendationSucceededRequest + * @property {string|null} [name] MarkRecommendationSucceededRequest name + * @property {Object.|null} [stateMetadata] MarkRecommendationSucceededRequest stateMetadata + * @property {string|null} [etag] MarkRecommendationSucceededRequest etag */ /** - * Constructs a new ListRecommendationsRequest. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a ListRecommendationsRequest. - * @implements IListRecommendationsRequest + * Constructs a new MarkRecommendationSucceededRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a MarkRecommendationSucceededRequest. + * @implements IMarkRecommendationSucceededRequest * @constructor - * @param {google.cloud.recommender.v1.IListRecommendationsRequest=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest=} [properties] Properties to set */ - function ListRecommendationsRequest(properties) { + function MarkRecommendationSucceededRequest(properties) { + this.stateMetadata = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5207,117 +17670,123 @@ } /** - * ListRecommendationsRequest parent. - * @member {string} parent - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest - * @instance - */ - ListRecommendationsRequest.prototype.parent = ""; - - /** - * ListRecommendationsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * MarkRecommendationSucceededRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @instance */ - ListRecommendationsRequest.prototype.pageSize = 0; + MarkRecommendationSucceededRequest.prototype.name = ""; /** - * ListRecommendationsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * MarkRecommendationSucceededRequest stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @instance */ - ListRecommendationsRequest.prototype.pageToken = ""; + MarkRecommendationSucceededRequest.prototype.stateMetadata = $util.emptyObject; /** - * ListRecommendationsRequest filter. - * @member {string} filter - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * MarkRecommendationSucceededRequest etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @instance */ - ListRecommendationsRequest.prototype.filter = ""; + MarkRecommendationSucceededRequest.prototype.etag = ""; /** - * Creates a new ListRecommendationsRequest instance using the specified properties. + * Creates a new MarkRecommendationSucceededRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @static - * @param {google.cloud.recommender.v1.IListRecommendationsRequest=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.ListRecommendationsRequest} ListRecommendationsRequest instance + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest instance */ - ListRecommendationsRequest.create = function create(properties) { - return new ListRecommendationsRequest(properties); + MarkRecommendationSucceededRequest.create = function create(properties) { + return new MarkRecommendationSucceededRequest(properties); }; /** - * Encodes the specified ListRecommendationsRequest message. Does not implicitly {@link google.cloud.recommender.v1.ListRecommendationsRequest.verify|verify} messages. + * Encodes the specified MarkRecommendationSucceededRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @static - * @param {google.cloud.recommender.v1.IListRecommendationsRequest} message ListRecommendationsRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest} message MarkRecommendationSucceededRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRecommendationsRequest.encode = function encode(message, writer) { + MarkRecommendationSucceededRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); return writer; }; /** - * Encodes the specified ListRecommendationsRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ListRecommendationsRequest.verify|verify} messages. + * Encodes the specified MarkRecommendationSucceededRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @static - * @param {google.cloud.recommender.v1.IListRecommendationsRequest} message ListRecommendationsRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest} message MarkRecommendationSucceededRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRecommendationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MarkRecommendationSucceededRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRecommendationsRequest message from the specified reader or buffer. + * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.ListRecommendationsRequest} ListRecommendationsRequest + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRecommendationsRequest.decode = function decode(reader, length) { + MarkRecommendationSucceededRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ListRecommendationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; break; } - case 5: { - message.filter = reader.string(); + case 3: { + message.etag = reader.string(); break; } default: @@ -5329,149 +17798,157 @@ }; /** - * Decodes a ListRecommendationsRequest message from the specified reader or buffer, length delimited. + * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.ListRecommendationsRequest} ListRecommendationsRequest + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRecommendationsRequest.decodeDelimited = function decodeDelimited(reader) { + MarkRecommendationSucceededRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRecommendationsRequest message. + * Verifies a MarkRecommendationSucceededRequest message. * @function verify - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRecommendationsRequest.verify = function verify(message) { + MarkRecommendationSucceededRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a ListRecommendationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MarkRecommendationSucceededRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.ListRecommendationsRequest} ListRecommendationsRequest + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest */ - ListRecommendationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.ListRecommendationsRequest) + MarkRecommendationSucceededRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest) return object; - var message = new $root.google.cloud.recommender.v1.ListRecommendationsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); + } + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a ListRecommendationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MarkRecommendationSucceededRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @static - * @param {google.cloud.recommender.v1.ListRecommendationsRequest} message ListRecommendationsRequest + * @param {google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest} message MarkRecommendationSucceededRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRecommendationsRequest.toObject = function toObject(message, options) { + MarkRecommendationSucceededRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.stateMetadata = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.name = ""; + object.etag = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this ListRecommendationsRequest to JSON. + * Converts this MarkRecommendationSucceededRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @instance * @returns {Object.} JSON object */ - ListRecommendationsRequest.prototype.toJSON = function toJSON() { + MarkRecommendationSucceededRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRecommendationsRequest + * Gets the default type url for MarkRecommendationSucceededRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.ListRecommendationsRequest + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRecommendationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MarkRecommendationSucceededRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.ListRecommendationsRequest"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest"; }; - return ListRecommendationsRequest; + return MarkRecommendationSucceededRequest; })(); - v1.ListRecommendationsResponse = (function() { + v1beta1.MarkRecommendationFailedRequest = (function() { /** - * Properties of a ListRecommendationsResponse. - * @memberof google.cloud.recommender.v1 - * @interface IListRecommendationsResponse - * @property {Array.|null} [recommendations] ListRecommendationsResponse recommendations - * @property {string|null} [nextPageToken] ListRecommendationsResponse nextPageToken + * Properties of a MarkRecommendationFailedRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IMarkRecommendationFailedRequest + * @property {string|null} [name] MarkRecommendationFailedRequest name + * @property {Object.|null} [stateMetadata] MarkRecommendationFailedRequest stateMetadata + * @property {string|null} [etag] MarkRecommendationFailedRequest etag */ /** - * Constructs a new ListRecommendationsResponse. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a ListRecommendationsResponse. - * @implements IListRecommendationsResponse + * Constructs a new MarkRecommendationFailedRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a MarkRecommendationFailedRequest. + * @implements IMarkRecommendationFailedRequest * @constructor - * @param {google.cloud.recommender.v1.IListRecommendationsResponse=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest=} [properties] Properties to set */ - function ListRecommendationsResponse(properties) { - this.recommendations = []; + function MarkRecommendationFailedRequest(properties) { + this.stateMetadata = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5479,92 +17956,123 @@ } /** - * ListRecommendationsResponse recommendations. - * @member {Array.} recommendations - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * MarkRecommendationFailedRequest name. + * @member {string} name + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @instance */ - ListRecommendationsResponse.prototype.recommendations = $util.emptyArray; + MarkRecommendationFailedRequest.prototype.name = ""; /** - * ListRecommendationsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * MarkRecommendationFailedRequest stateMetadata. + * @member {Object.} stateMetadata + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @instance */ - ListRecommendationsResponse.prototype.nextPageToken = ""; + MarkRecommendationFailedRequest.prototype.stateMetadata = $util.emptyObject; /** - * Creates a new ListRecommendationsResponse instance using the specified properties. + * MarkRecommendationFailedRequest etag. + * @member {string} etag + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest + * @instance + */ + MarkRecommendationFailedRequest.prototype.etag = ""; + + /** + * Creates a new MarkRecommendationFailedRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @static - * @param {google.cloud.recommender.v1.IListRecommendationsResponse=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.ListRecommendationsResponse} ListRecommendationsResponse instance + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest instance */ - ListRecommendationsResponse.create = function create(properties) { - return new ListRecommendationsResponse(properties); + MarkRecommendationFailedRequest.create = function create(properties) { + return new MarkRecommendationFailedRequest(properties); }; /** - * Encodes the specified ListRecommendationsResponse message. Does not implicitly {@link google.cloud.recommender.v1.ListRecommendationsResponse.verify|verify} messages. + * Encodes the specified MarkRecommendationFailedRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @static - * @param {google.cloud.recommender.v1.IListRecommendationsResponse} message ListRecommendationsResponse message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest} message MarkRecommendationFailedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRecommendationsResponse.encode = function encode(message, writer) { + MarkRecommendationFailedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recommendations != null && message.recommendations.length) - for (var i = 0; i < message.recommendations.length; ++i) - $root.google.cloud.recommender.v1.Recommendation.encode(message.recommendations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) + for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); return writer; }; /** - * Encodes the specified ListRecommendationsResponse message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.ListRecommendationsResponse.verify|verify} messages. + * Encodes the specified MarkRecommendationFailedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @static - * @param {google.cloud.recommender.v1.IListRecommendationsResponse} message ListRecommendationsResponse message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest} message MarkRecommendationFailedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRecommendationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MarkRecommendationFailedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRecommendationsResponse message from the specified reader or buffer. + * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.ListRecommendationsResponse} ListRecommendationsResponse + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRecommendationsResponse.decode = function decode(reader, length) { + MarkRecommendationFailedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.ListRecommendationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.recommendations && message.recommendations.length)) - message.recommendations = []; - message.recommendations.push($root.google.cloud.recommender.v1.Recommendation.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + if (message.stateMetadata === $util.emptyObject) + message.stateMetadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.stateMetadata[key] = value; + break; + } + case 3: { + message.etag = reader.string(); break; } default: @@ -5576,148 +18084,154 @@ }; /** - * Decodes a ListRecommendationsResponse message from the specified reader or buffer, length delimited. + * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.ListRecommendationsResponse} ListRecommendationsResponse + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRecommendationsResponse.decodeDelimited = function decodeDelimited(reader) { + MarkRecommendationFailedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRecommendationsResponse message. + * Verifies a MarkRecommendationFailedRequest message. * @function verify - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRecommendationsResponse.verify = function verify(message) { + MarkRecommendationFailedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recommendations != null && message.hasOwnProperty("recommendations")) { - if (!Array.isArray(message.recommendations)) - return "recommendations: array expected"; - for (var i = 0; i < message.recommendations.length; ++i) { - var error = $root.google.cloud.recommender.v1.Recommendation.verify(message.recommendations[i]); - if (error) - return "recommendations." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { + if (!$util.isObject(message.stateMetadata)) + return "stateMetadata: object expected"; + var key = Object.keys(message.stateMetadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.stateMetadata[key[i]])) + return "stateMetadata: string{k:string} expected"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a ListRecommendationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MarkRecommendationFailedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.ListRecommendationsResponse} ListRecommendationsResponse + * @returns {google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest */ - ListRecommendationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.ListRecommendationsResponse) + MarkRecommendationFailedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest) return object; - var message = new $root.google.cloud.recommender.v1.ListRecommendationsResponse(); - if (object.recommendations) { - if (!Array.isArray(object.recommendations)) - throw TypeError(".google.cloud.recommender.v1.ListRecommendationsResponse.recommendations: array expected"); - message.recommendations = []; - for (var i = 0; i < object.recommendations.length; ++i) { - if (typeof object.recommendations[i] !== "object") - throw TypeError(".google.cloud.recommender.v1.ListRecommendationsResponse.recommendations: object expected"); - message.recommendations[i] = $root.google.cloud.recommender.v1.Recommendation.fromObject(object.recommendations[i]); - } + var message = new $root.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.stateMetadata) { + if (typeof object.stateMetadata !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest.stateMetadata: object expected"); + message.stateMetadata = {}; + for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) + message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a ListRecommendationsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MarkRecommendationFailedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @static - * @param {google.cloud.recommender.v1.ListRecommendationsResponse} message ListRecommendationsResponse + * @param {google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest} message MarkRecommendationFailedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRecommendationsResponse.toObject = function toObject(message, options) { + MarkRecommendationFailedRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.recommendations = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.recommendations && message.recommendations.length) { - object.recommendations = []; - for (var j = 0; j < message.recommendations.length; ++j) - object.recommendations[j] = $root.google.cloud.recommender.v1.Recommendation.toObject(message.recommendations[j], options); + if (options.objects || options.defaults) + object.stateMetadata = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { + object.stateMetadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this ListRecommendationsResponse to JSON. + * Converts this MarkRecommendationFailedRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @instance * @returns {Object.} JSON object */ - ListRecommendationsResponse.prototype.toJSON = function toJSON() { + MarkRecommendationFailedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRecommendationsResponse + * Gets the default type url for MarkRecommendationFailedRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.ListRecommendationsResponse + * @memberof google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRecommendationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MarkRecommendationFailedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.ListRecommendationsResponse"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest"; }; - return ListRecommendationsResponse; + return MarkRecommendationFailedRequest; })(); - v1.GetRecommendationRequest = (function() { + v1beta1.GetRecommenderConfigRequest = (function() { /** - * Properties of a GetRecommendationRequest. - * @memberof google.cloud.recommender.v1 - * @interface IGetRecommendationRequest - * @property {string|null} [name] GetRecommendationRequest name + * Properties of a GetRecommenderConfigRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IGetRecommenderConfigRequest + * @property {string|null} [name] GetRecommenderConfigRequest name */ /** - * Constructs a new GetRecommendationRequest. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a GetRecommendationRequest. - * @implements IGetRecommendationRequest + * Constructs a new GetRecommenderConfigRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a GetRecommenderConfigRequest. + * @implements IGetRecommenderConfigRequest * @constructor - * @param {google.cloud.recommender.v1.IGetRecommendationRequest=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest=} [properties] Properties to set */ - function GetRecommendationRequest(properties) { + function GetRecommenderConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5725,35 +18239,35 @@ } /** - * GetRecommendationRequest name. + * GetRecommenderConfigRequest name. * @member {string} name - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @instance */ - GetRecommendationRequest.prototype.name = ""; + GetRecommenderConfigRequest.prototype.name = ""; /** - * Creates a new GetRecommendationRequest instance using the specified properties. + * Creates a new GetRecommenderConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @static - * @param {google.cloud.recommender.v1.IGetRecommendationRequest=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.GetRecommendationRequest} GetRecommendationRequest instance + * @param {google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.GetRecommenderConfigRequest} GetRecommenderConfigRequest instance */ - GetRecommendationRequest.create = function create(properties) { - return new GetRecommendationRequest(properties); + GetRecommenderConfigRequest.create = function create(properties) { + return new GetRecommenderConfigRequest(properties); }; /** - * Encodes the specified GetRecommendationRequest message. Does not implicitly {@link google.cloud.recommender.v1.GetRecommendationRequest.verify|verify} messages. + * Encodes the specified GetRecommenderConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.GetRecommenderConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @static - * @param {google.cloud.recommender.v1.IGetRecommendationRequest} message GetRecommendationRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest} message GetRecommenderConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecommendationRequest.encode = function encode(message, writer) { + GetRecommenderConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -5762,33 +18276,33 @@ }; /** - * Encodes the specified GetRecommendationRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.GetRecommendationRequest.verify|verify} messages. + * Encodes the specified GetRecommenderConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.GetRecommenderConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @static - * @param {google.cloud.recommender.v1.IGetRecommendationRequest} message GetRecommendationRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest} message GetRecommenderConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecommendationRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetRecommenderConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRecommendationRequest message from the specified reader or buffer. + * Decodes a GetRecommenderConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.GetRecommendationRequest} GetRecommendationRequest + * @returns {google.cloud.recommender.v1beta1.GetRecommenderConfigRequest} GetRecommenderConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRecommendationRequest.decode = function decode(reader, length) { + GetRecommenderConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.GetRecommendationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -5805,30 +18319,30 @@ }; /** - * Decodes a GetRecommendationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetRecommenderConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.GetRecommendationRequest} GetRecommendationRequest + * @returns {google.cloud.recommender.v1beta1.GetRecommenderConfigRequest} GetRecommenderConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRecommendationRequest.decodeDelimited = function decodeDelimited(reader) { + GetRecommenderConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRecommendationRequest message. + * Verifies a GetRecommenderConfigRequest message. * @function verify - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRecommendationRequest.verify = function verify(message) { + GetRecommenderConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -5838,32 +18352,32 @@ }; /** - * Creates a GetRecommendationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetRecommenderConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.GetRecommendationRequest} GetRecommendationRequest + * @returns {google.cloud.recommender.v1beta1.GetRecommenderConfigRequest} GetRecommenderConfigRequest */ - GetRecommendationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.GetRecommendationRequest) + GetRecommenderConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest) return object; - var message = new $root.google.cloud.recommender.v1.GetRecommendationRequest(); + var message = new $root.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetRecommendationRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetRecommenderConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @static - * @param {google.cloud.recommender.v1.GetRecommendationRequest} message GetRecommendationRequest + * @param {google.cloud.recommender.v1beta1.GetRecommenderConfigRequest} message GetRecommenderConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRecommendationRequest.toObject = function toObject(message, options) { + GetRecommenderConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -5875,55 +18389,54 @@ }; /** - * Converts this GetRecommendationRequest to JSON. + * Converts this GetRecommenderConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @instance * @returns {Object.} JSON object */ - GetRecommendationRequest.prototype.toJSON = function toJSON() { + GetRecommenderConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetRecommendationRequest + * Gets the default type url for GetRecommenderConfigRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.GetRecommendationRequest + * @memberof google.cloud.recommender.v1beta1.GetRecommenderConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetRecommendationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetRecommenderConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.GetRecommendationRequest"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.GetRecommenderConfigRequest"; }; - return GetRecommendationRequest; + return GetRecommenderConfigRequest; })(); - v1.MarkRecommendationClaimedRequest = (function() { + v1beta1.UpdateRecommenderConfigRequest = (function() { /** - * Properties of a MarkRecommendationClaimedRequest. - * @memberof google.cloud.recommender.v1 - * @interface IMarkRecommendationClaimedRequest - * @property {string|null} [name] MarkRecommendationClaimedRequest name - * @property {Object.|null} [stateMetadata] MarkRecommendationClaimedRequest stateMetadata - * @property {string|null} [etag] MarkRecommendationClaimedRequest etag + * Properties of an UpdateRecommenderConfigRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IUpdateRecommenderConfigRequest + * @property {google.cloud.recommender.v1beta1.IRecommenderConfig|null} [recommenderConfig] UpdateRecommenderConfigRequest recommenderConfig + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateRecommenderConfigRequest updateMask + * @property {boolean|null} [validateOnly] UpdateRecommenderConfigRequest validateOnly */ /** - * Constructs a new MarkRecommendationClaimedRequest. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a MarkRecommendationClaimedRequest. - * @implements IMarkRecommendationClaimedRequest + * Constructs a new UpdateRecommenderConfigRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents an UpdateRecommenderConfigRequest. + * @implements IUpdateRecommenderConfigRequest * @constructor - * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest=} [properties] Properties to set */ - function MarkRecommendationClaimedRequest(properties) { - this.stateMetadata = {}; + function UpdateRecommenderConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5931,123 +18444,103 @@ } /** - * MarkRecommendationClaimedRequest name. - * @member {string} name - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * UpdateRecommenderConfigRequest recommenderConfig. + * @member {google.cloud.recommender.v1beta1.IRecommenderConfig|null|undefined} recommenderConfig + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @instance */ - MarkRecommendationClaimedRequest.prototype.name = ""; + UpdateRecommenderConfigRequest.prototype.recommenderConfig = null; /** - * MarkRecommendationClaimedRequest stateMetadata. - * @member {Object.} stateMetadata - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * UpdateRecommenderConfigRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @instance */ - MarkRecommendationClaimedRequest.prototype.stateMetadata = $util.emptyObject; + UpdateRecommenderConfigRequest.prototype.updateMask = null; /** - * MarkRecommendationClaimedRequest etag. - * @member {string} etag - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * UpdateRecommenderConfigRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @instance */ - MarkRecommendationClaimedRequest.prototype.etag = ""; + UpdateRecommenderConfigRequest.prototype.validateOnly = false; /** - * Creates a new MarkRecommendationClaimedRequest instance using the specified properties. + * Creates a new UpdateRecommenderConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @static - * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest instance + * @param {google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest} UpdateRecommenderConfigRequest instance */ - MarkRecommendationClaimedRequest.create = function create(properties) { - return new MarkRecommendationClaimedRequest(properties); + UpdateRecommenderConfigRequest.create = function create(properties) { + return new UpdateRecommenderConfigRequest(properties); }; /** - * Encodes the specified MarkRecommendationClaimedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationClaimedRequest.verify|verify} messages. + * Encodes the specified UpdateRecommenderConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @static - * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest} message MarkRecommendationClaimedRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest} message UpdateRecommenderConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MarkRecommendationClaimedRequest.encode = function encode(message, writer) { + UpdateRecommenderConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) - for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + if (message.recommenderConfig != null && Object.hasOwnProperty.call(message, "recommenderConfig")) + $root.google.cloud.recommender.v1beta1.RecommenderConfig.encode(message.recommenderConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.validateOnly); return writer; }; /** - * Encodes the specified MarkRecommendationClaimedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationClaimedRequest.verify|verify} messages. + * Encodes the specified UpdateRecommenderConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @static - * @param {google.cloud.recommender.v1.IMarkRecommendationClaimedRequest} message MarkRecommendationClaimedRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest} message UpdateRecommenderConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MarkRecommendationClaimedRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateRecommenderConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer. + * Decodes an UpdateRecommenderConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest + * @returns {google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest} UpdateRecommenderConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MarkRecommendationClaimedRequest.decode = function decode(reader, length) { + UpdateRecommenderConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.MarkRecommendationClaimedRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.recommenderConfig = $root.google.cloud.recommender.v1beta1.RecommenderConfig.decode(reader, reader.uint32()); break; } case 2: { - if (message.stateMetadata === $util.emptyObject) - message.stateMetadata = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.stateMetadata[key] = value; + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 3: { - message.etag = reader.string(); + message.validateOnly = reader.bool(); break; } default: @@ -6059,157 +18552,149 @@ }; /** - * Decodes a MarkRecommendationClaimedRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateRecommenderConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest + * @returns {google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest} UpdateRecommenderConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MarkRecommendationClaimedRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateRecommenderConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MarkRecommendationClaimedRequest message. + * Verifies an UpdateRecommenderConfigRequest message. * @function verify - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MarkRecommendationClaimedRequest.verify = function verify(message) { + UpdateRecommenderConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { - if (!$util.isObject(message.stateMetadata)) - return "stateMetadata: object expected"; - var key = Object.keys(message.stateMetadata); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.stateMetadata[key[i]])) - return "stateMetadata: string{k:string} expected"; - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - return null; - }; - - /** - * Creates a MarkRecommendationClaimedRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} MarkRecommendationClaimedRequest - */ - MarkRecommendationClaimedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.MarkRecommendationClaimedRequest) - return object; - var message = new $root.google.cloud.recommender.v1.MarkRecommendationClaimedRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.stateMetadata) { - if (typeof object.stateMetadata !== "object") - throw TypeError(".google.cloud.recommender.v1.MarkRecommendationClaimedRequest.stateMetadata: object expected"); - message.stateMetadata = {}; - for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) - message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); + if (message.recommenderConfig != null && message.hasOwnProperty("recommenderConfig")) { + var error = $root.google.cloud.recommender.v1beta1.RecommenderConfig.verify(message.recommenderConfig); + if (error) + return "recommenderConfig." + error; } - if (object.etag != null) - message.etag = String(object.etag); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; + return null; + }; + + /** + * Creates an UpdateRecommenderConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest} UpdateRecommenderConfigRequest + */ + UpdateRecommenderConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest) + return object; + var message = new $root.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest(); + if (object.recommenderConfig != null) { + if (typeof object.recommenderConfig !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest.recommenderConfig: object expected"); + message.recommenderConfig = $root.google.cloud.recommender.v1beta1.RecommenderConfig.fromObject(object.recommenderConfig); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); return message; }; /** - * Creates a plain object from a MarkRecommendationClaimedRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateRecommenderConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @static - * @param {google.cloud.recommender.v1.MarkRecommendationClaimedRequest} message MarkRecommendationClaimedRequest + * @param {google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest} message UpdateRecommenderConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MarkRecommendationClaimedRequest.toObject = function toObject(message, options) { + UpdateRecommenderConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.stateMetadata = {}; if (options.defaults) { - object.name = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - var keys2; - if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { - object.stateMetadata = {}; - for (var j = 0; j < keys2.length; ++j) - object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; + object.recommenderConfig = null; + object.updateMask = null; + object.validateOnly = false; + } + if (message.recommenderConfig != null && message.hasOwnProperty("recommenderConfig")) + object.recommenderConfig = $root.google.cloud.recommender.v1beta1.RecommenderConfig.toObject(message.recommenderConfig, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; return object; }; /** - * Converts this MarkRecommendationClaimedRequest to JSON. + * Converts this UpdateRecommenderConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @instance * @returns {Object.} JSON object */ - MarkRecommendationClaimedRequest.prototype.toJSON = function toJSON() { + UpdateRecommenderConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MarkRecommendationClaimedRequest + * Gets the default type url for UpdateRecommenderConfigRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.MarkRecommendationClaimedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MarkRecommendationClaimedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateRecommenderConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.MarkRecommendationClaimedRequest"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest"; }; - return MarkRecommendationClaimedRequest; + return UpdateRecommenderConfigRequest; })(); - v1.MarkRecommendationSucceededRequest = (function() { + v1beta1.GetInsightTypeConfigRequest = (function() { /** - * Properties of a MarkRecommendationSucceededRequest. - * @memberof google.cloud.recommender.v1 - * @interface IMarkRecommendationSucceededRequest - * @property {string|null} [name] MarkRecommendationSucceededRequest name - * @property {Object.|null} [stateMetadata] MarkRecommendationSucceededRequest stateMetadata - * @property {string|null} [etag] MarkRecommendationSucceededRequest etag + * Properties of a GetInsightTypeConfigRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IGetInsightTypeConfigRequest + * @property {string|null} [name] GetInsightTypeConfigRequest name */ /** - * Constructs a new MarkRecommendationSucceededRequest. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a MarkRecommendationSucceededRequest. - * @implements IMarkRecommendationSucceededRequest + * Constructs a new GetInsightTypeConfigRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents a GetInsightTypeConfigRequest. + * @implements IGetInsightTypeConfigRequest * @constructor - * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest=} [properties] Properties to set */ - function MarkRecommendationSucceededRequest(properties) { - this.stateMetadata = {}; + function GetInsightTypeConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6217,91 +18702,70 @@ } /** - * MarkRecommendationSucceededRequest name. + * GetInsightTypeConfigRequest name. * @member {string} name - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest - * @instance - */ - MarkRecommendationSucceededRequest.prototype.name = ""; - - /** - * MarkRecommendationSucceededRequest stateMetadata. - * @member {Object.} stateMetadata - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest - * @instance - */ - MarkRecommendationSucceededRequest.prototype.stateMetadata = $util.emptyObject; - - /** - * MarkRecommendationSucceededRequest etag. - * @member {string} etag - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @instance */ - MarkRecommendationSucceededRequest.prototype.etag = ""; + GetInsightTypeConfigRequest.prototype.name = ""; /** - * Creates a new MarkRecommendationSucceededRequest instance using the specified properties. + * Creates a new GetInsightTypeConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @static - * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest instance + * @param {google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest} GetInsightTypeConfigRequest instance */ - MarkRecommendationSucceededRequest.create = function create(properties) { - return new MarkRecommendationSucceededRequest(properties); + GetInsightTypeConfigRequest.create = function create(properties) { + return new GetInsightTypeConfigRequest(properties); }; /** - * Encodes the specified MarkRecommendationSucceededRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationSucceededRequest.verify|verify} messages. + * Encodes the specified GetInsightTypeConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @static - * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest} message MarkRecommendationSucceededRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest} message GetInsightTypeConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MarkRecommendationSucceededRequest.encode = function encode(message, writer) { + GetInsightTypeConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) - for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); return writer; }; /** - * Encodes the specified MarkRecommendationSucceededRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationSucceededRequest.verify|verify} messages. + * Encodes the specified GetInsightTypeConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @static - * @param {google.cloud.recommender.v1.IMarkRecommendationSucceededRequest} message MarkRecommendationSucceededRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest} message GetInsightTypeConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MarkRecommendationSucceededRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetInsightTypeConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer. + * Decodes a GetInsightTypeConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest + * @returns {google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest} GetInsightTypeConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MarkRecommendationSucceededRequest.decode = function decode(reader, length) { + GetInsightTypeConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.MarkRecommendationSucceededRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -6309,33 +18773,6 @@ message.name = reader.string(); break; } - case 2: { - if (message.stateMetadata === $util.emptyObject) - message.stateMetadata = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.stateMetadata[key] = value; - break; - } - case 3: { - message.etag = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -6345,157 +18782,124 @@ }; /** - * Decodes a MarkRecommendationSucceededRequest message from the specified reader or buffer, length delimited. + * Decodes a GetInsightTypeConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest + * @returns {google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest} GetInsightTypeConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MarkRecommendationSucceededRequest.decodeDelimited = function decodeDelimited(reader) { + GetInsightTypeConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MarkRecommendationSucceededRequest message. + * Verifies a GetInsightTypeConfigRequest message. * @function verify - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MarkRecommendationSucceededRequest.verify = function verify(message) { + GetInsightTypeConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { - if (!$util.isObject(message.stateMetadata)) - return "stateMetadata: object expected"; - var key = Object.keys(message.stateMetadata); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.stateMetadata[key[i]])) - return "stateMetadata: string{k:string} expected"; - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; return null; }; /** - * Creates a MarkRecommendationSucceededRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetInsightTypeConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} MarkRecommendationSucceededRequest + * @returns {google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest} GetInsightTypeConfigRequest */ - MarkRecommendationSucceededRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.MarkRecommendationSucceededRequest) + GetInsightTypeConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest) return object; - var message = new $root.google.cloud.recommender.v1.MarkRecommendationSucceededRequest(); + var message = new $root.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest(); if (object.name != null) message.name = String(object.name); - if (object.stateMetadata) { - if (typeof object.stateMetadata !== "object") - throw TypeError(".google.cloud.recommender.v1.MarkRecommendationSucceededRequest.stateMetadata: object expected"); - message.stateMetadata = {}; - for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) - message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); - } - if (object.etag != null) - message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a MarkRecommendationSucceededRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetInsightTypeConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @static - * @param {google.cloud.recommender.v1.MarkRecommendationSucceededRequest} message MarkRecommendationSucceededRequest + * @param {google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest} message GetInsightTypeConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MarkRecommendationSucceededRequest.toObject = function toObject(message, options) { + GetInsightTypeConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.stateMetadata = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.etag = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - var keys2; - if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { - object.stateMetadata = {}; - for (var j = 0; j < keys2.length; ++j) - object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; return object; }; /** - * Converts this MarkRecommendationSucceededRequest to JSON. + * Converts this GetInsightTypeConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @instance * @returns {Object.} JSON object */ - MarkRecommendationSucceededRequest.prototype.toJSON = function toJSON() { + GetInsightTypeConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MarkRecommendationSucceededRequest + * Gets the default type url for GetInsightTypeConfigRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.MarkRecommendationSucceededRequest + * @memberof google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MarkRecommendationSucceededRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetInsightTypeConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.MarkRecommendationSucceededRequest"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest"; }; - return MarkRecommendationSucceededRequest; + return GetInsightTypeConfigRequest; })(); - v1.MarkRecommendationFailedRequest = (function() { + v1beta1.UpdateInsightTypeConfigRequest = (function() { /** - * Properties of a MarkRecommendationFailedRequest. - * @memberof google.cloud.recommender.v1 - * @interface IMarkRecommendationFailedRequest - * @property {string|null} [name] MarkRecommendationFailedRequest name - * @property {Object.|null} [stateMetadata] MarkRecommendationFailedRequest stateMetadata - * @property {string|null} [etag] MarkRecommendationFailedRequest etag + * Properties of an UpdateInsightTypeConfigRequest. + * @memberof google.cloud.recommender.v1beta1 + * @interface IUpdateInsightTypeConfigRequest + * @property {google.cloud.recommender.v1beta1.IInsightTypeConfig|null} [insightTypeConfig] UpdateInsightTypeConfigRequest insightTypeConfig + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateInsightTypeConfigRequest updateMask + * @property {boolean|null} [validateOnly] UpdateInsightTypeConfigRequest validateOnly */ /** - * Constructs a new MarkRecommendationFailedRequest. - * @memberof google.cloud.recommender.v1 - * @classdesc Represents a MarkRecommendationFailedRequest. - * @implements IMarkRecommendationFailedRequest + * Constructs a new UpdateInsightTypeConfigRequest. + * @memberof google.cloud.recommender.v1beta1 + * @classdesc Represents an UpdateInsightTypeConfigRequest. + * @implements IUpdateInsightTypeConfigRequest * @constructor - * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest=} [properties] Properties to set + * @param {google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest=} [properties] Properties to set */ - function MarkRecommendationFailedRequest(properties) { - this.stateMetadata = {}; + function UpdateInsightTypeConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6503,123 +18907,103 @@ } /** - * MarkRecommendationFailedRequest name. - * @member {string} name - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * UpdateInsightTypeConfigRequest insightTypeConfig. + * @member {google.cloud.recommender.v1beta1.IInsightTypeConfig|null|undefined} insightTypeConfig + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @instance */ - MarkRecommendationFailedRequest.prototype.name = ""; + UpdateInsightTypeConfigRequest.prototype.insightTypeConfig = null; /** - * MarkRecommendationFailedRequest stateMetadata. - * @member {Object.} stateMetadata - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * UpdateInsightTypeConfigRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @instance */ - MarkRecommendationFailedRequest.prototype.stateMetadata = $util.emptyObject; + UpdateInsightTypeConfigRequest.prototype.updateMask = null; /** - * MarkRecommendationFailedRequest etag. - * @member {string} etag - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * UpdateInsightTypeConfigRequest validateOnly. + * @member {boolean} validateOnly + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @instance */ - MarkRecommendationFailedRequest.prototype.etag = ""; + UpdateInsightTypeConfigRequest.prototype.validateOnly = false; /** - * Creates a new MarkRecommendationFailedRequest instance using the specified properties. + * Creates a new UpdateInsightTypeConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @static - * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest=} [properties] Properties to set - * @returns {google.cloud.recommender.v1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest instance + * @param {google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest=} [properties] Properties to set + * @returns {google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest} UpdateInsightTypeConfigRequest instance */ - MarkRecommendationFailedRequest.create = function create(properties) { - return new MarkRecommendationFailedRequest(properties); + UpdateInsightTypeConfigRequest.create = function create(properties) { + return new UpdateInsightTypeConfigRequest(properties); }; /** - * Encodes the specified MarkRecommendationFailedRequest message. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationFailedRequest.verify|verify} messages. + * Encodes the specified UpdateInsightTypeConfigRequest message. Does not implicitly {@link google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @static - * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest} message MarkRecommendationFailedRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest} message UpdateInsightTypeConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MarkRecommendationFailedRequest.encode = function encode(message, writer) { + UpdateInsightTypeConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.stateMetadata != null && Object.hasOwnProperty.call(message, "stateMetadata")) - for (var keys = Object.keys(message.stateMetadata), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.stateMetadata[keys[i]]).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + if (message.insightTypeConfig != null && Object.hasOwnProperty.call(message, "insightTypeConfig")) + $root.google.cloud.recommender.v1beta1.InsightTypeConfig.encode(message.insightTypeConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.validateOnly); return writer; }; /** - * Encodes the specified MarkRecommendationFailedRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1.MarkRecommendationFailedRequest.verify|verify} messages. + * Encodes the specified UpdateInsightTypeConfigRequest message, length delimited. Does not implicitly {@link google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @static - * @param {google.cloud.recommender.v1.IMarkRecommendationFailedRequest} message MarkRecommendationFailedRequest message or plain object to encode + * @param {google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest} message UpdateInsightTypeConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MarkRecommendationFailedRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateInsightTypeConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer. + * Decodes an UpdateInsightTypeConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.recommender.v1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest + * @returns {google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest} UpdateInsightTypeConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MarkRecommendationFailedRequest.decode = function decode(reader, length) { + UpdateInsightTypeConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1.MarkRecommendationFailedRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.insightTypeConfig = $root.google.cloud.recommender.v1beta1.InsightTypeConfig.decode(reader, reader.uint32()); break; } case 2: { - if (message.stateMetadata === $util.emptyObject) - message.stateMetadata = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.stateMetadata[key] = value; + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 3: { - message.etag = reader.string(); + message.validateOnly = reader.bool(); break; } default: @@ -6631,137 +19015,132 @@ }; /** - * Decodes a MarkRecommendationFailedRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateInsightTypeConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.recommender.v1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest + * @returns {google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest} UpdateInsightTypeConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MarkRecommendationFailedRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateInsightTypeConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MarkRecommendationFailedRequest message. + * Verifies an UpdateInsightTypeConfigRequest message. * @function verify - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MarkRecommendationFailedRequest.verify = function verify(message) { + UpdateInsightTypeConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.stateMetadata != null && message.hasOwnProperty("stateMetadata")) { - if (!$util.isObject(message.stateMetadata)) - return "stateMetadata: object expected"; - var key = Object.keys(message.stateMetadata); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.stateMetadata[key[i]])) - return "stateMetadata: string{k:string} expected"; + if (message.insightTypeConfig != null && message.hasOwnProperty("insightTypeConfig")) { + var error = $root.google.cloud.recommender.v1beta1.InsightTypeConfig.verify(message.insightTypeConfig); + if (error) + return "insightTypeConfig." + error; } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + if (typeof message.validateOnly !== "boolean") + return "validateOnly: boolean expected"; return null; }; /** - * Creates a MarkRecommendationFailedRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateInsightTypeConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.recommender.v1.MarkRecommendationFailedRequest} MarkRecommendationFailedRequest + * @returns {google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest} UpdateInsightTypeConfigRequest */ - MarkRecommendationFailedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.recommender.v1.MarkRecommendationFailedRequest) + UpdateInsightTypeConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest) return object; - var message = new $root.google.cloud.recommender.v1.MarkRecommendationFailedRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.stateMetadata) { - if (typeof object.stateMetadata !== "object") - throw TypeError(".google.cloud.recommender.v1.MarkRecommendationFailedRequest.stateMetadata: object expected"); - message.stateMetadata = {}; - for (var keys = Object.keys(object.stateMetadata), i = 0; i < keys.length; ++i) - message.stateMetadata[keys[i]] = String(object.stateMetadata[keys[i]]); - } - if (object.etag != null) - message.etag = String(object.etag); + var message = new $root.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest(); + if (object.insightTypeConfig != null) { + if (typeof object.insightTypeConfig !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest.insightTypeConfig: object expected"); + message.insightTypeConfig = $root.google.cloud.recommender.v1beta1.InsightTypeConfig.fromObject(object.insightTypeConfig); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.validateOnly != null) + message.validateOnly = Boolean(object.validateOnly); return message; }; /** - * Creates a plain object from a MarkRecommendationFailedRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateInsightTypeConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @static - * @param {google.cloud.recommender.v1.MarkRecommendationFailedRequest} message MarkRecommendationFailedRequest + * @param {google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest} message UpdateInsightTypeConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MarkRecommendationFailedRequest.toObject = function toObject(message, options) { + UpdateInsightTypeConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.stateMetadata = {}; if (options.defaults) { - object.name = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - var keys2; - if (message.stateMetadata && (keys2 = Object.keys(message.stateMetadata)).length) { - object.stateMetadata = {}; - for (var j = 0; j < keys2.length; ++j) - object.stateMetadata[keys2[j]] = message.stateMetadata[keys2[j]]; - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; + object.insightTypeConfig = null; + object.updateMask = null; + object.validateOnly = false; + } + if (message.insightTypeConfig != null && message.hasOwnProperty("insightTypeConfig")) + object.insightTypeConfig = $root.google.cloud.recommender.v1beta1.InsightTypeConfig.toObject(message.insightTypeConfig, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.validateOnly != null && message.hasOwnProperty("validateOnly")) + object.validateOnly = message.validateOnly; return object; }; /** - * Converts this MarkRecommendationFailedRequest to JSON. + * Converts this UpdateInsightTypeConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @instance * @returns {Object.} JSON object */ - MarkRecommendationFailedRequest.prototype.toJSON = function toJSON() { + UpdateInsightTypeConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MarkRecommendationFailedRequest + * Gets the default type url for UpdateInsightTypeConfigRequest * @function getTypeUrl - * @memberof google.cloud.recommender.v1.MarkRecommendationFailedRequest + * @memberof google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MarkRecommendationFailedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateInsightTypeConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.recommender.v1.MarkRecommendationFailedRequest"; + return typeUrlPrefix + "/google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest"; }; - return MarkRecommendationFailedRequest; + return UpdateInsightTypeConfigRequest; })(); - return v1; + return v1beta1; })(); return recommender; @@ -7463,6 +19842,32 @@ return ResourceReference; })(); + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + return values; + })(); + api.Http = (function() { /** @@ -8426,32 +20831,6 @@ return CustomHttpPattern; })(); - /** - * FieldBehavior enum. - * @name google.api.FieldBehavior - * @enum {number} - * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value - * @property {number} OPTIONAL=1 OPTIONAL value - * @property {number} REQUIRED=2 REQUIRED value - * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value - * @property {number} INPUT_ONLY=4 INPUT_ONLY value - * @property {number} IMMUTABLE=5 IMMUTABLE value - * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value - * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value - */ - api.FieldBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "OPTIONAL"] = 1; - values[valuesById[2] = "REQUIRED"] = 2; - values[valuesById[3] = "OUTPUT_ONLY"] = 3; - values[valuesById[4] = "INPUT_ONLY"] = 4; - values[valuesById[5] = "IMMUTABLE"] = 5; - values[valuesById[6] = "UNORDERED_LIST"] = 6; - values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; - return values; - })(); - return api; })(); @@ -19191,6 +31570,225 @@ return Timestamp; })(); + protobuf.FieldMask = (function() { + + /** + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths + */ + + /** + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask + * @constructor + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + */ + function FieldMask(properties) { + this.paths = []; + 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]]; + } + + /** + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask + * @instance + */ + FieldMask.prototype.paths = $util.emptyArray; + + /** + * Creates a new FieldMask instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance + */ + FieldMask.create = function create(properties) { + return new FieldMask(properties); + }; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + return writer; + }; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldMask message. + * @function verify + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldMask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + return null; + }; + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldMask} FieldMask + */ + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) + return object; + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + return message; + }; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.FieldMask} message FieldMask + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldMask.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + return object; + }; + + /** + * Converts this FieldMask to JSON. + * @function toJSON + * @memberof google.protobuf.FieldMask + * @instance + * @returns {Object.} JSON object + */ + FieldMask.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldMask + * @function getTypeUrl + * @memberof google.protobuf.FieldMask + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldMask"; + }; + + return FieldMask; + })(); + return protobuf; })(); diff --git a/packages/google-cloud-recommender/protos/protos.json b/packages/google-cloud-recommender/protos/protos.json index 0f25ea384d1d..4670dee18b42 100644 --- a/packages/google-cloud-recommender/protos/protos.json +++ b/packages/google-cloud-recommender/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.Recommender.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/recommender/v1;recommender", + "go_package": "cloud.google.com/go/recommender/apiv1/recommenderpb;recommenderpb", "java_multiple_files": true, "java_outer_classname": "RecommenderProto", "java_package": "com.google.cloud.recommender.v1", @@ -61,6 +61,1122 @@ "type": "Category", "id": 7 }, + "severity": { + "type": "Severity", + "id": 15 + }, + "etag": { + "type": "string", + "id": 11 + }, + "associatedRecommendations": { + "rule": "repeated", + "type": "RecommendationReference", + "id": 8 + } + }, + "nested": { + "Category": { + "values": { + "CATEGORY_UNSPECIFIED": 0, + "COST": 1, + "SECURITY": 2, + "PERFORMANCE": 3, + "MANAGEABILITY": 4 + } + }, + "Severity": { + "values": { + "SEVERITY_UNSPECIFIED": 0, + "LOW": 1, + "MEDIUM": 2, + "HIGH": 3, + "CRITICAL": 4 + } + }, + "RecommendationReference": { + "fields": { + "recommendation": { + "type": "string", + "id": 1 + } + } + } + } + }, + "InsightStateInfo": { + "fields": { + "state": { + "type": "State", + "id": 1 + }, + "stateMetadata": { + "keyType": "string", + "type": "string", + "id": 2 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "ACCEPTED": 2, + "DISMISSED": 3 + } + } + } + }, + "InsightTypeConfig": { + "options": { + "(google.api.resource).type": "recommender.googleapis.com/InsightTypeConfig", + "(google.api.resource).pattern": "organizations/{organization}/locations/{location}/insightTypes/{insight_type}/config" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "insightTypeGenerationConfig": { + "type": "InsightTypeGenerationConfig", + "id": 2 + }, + "etag": { + "type": "string", + "id": 3 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4 + }, + "revisionId": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "annotations": { + "keyType": "string", + "type": "string", + "id": 6 + }, + "displayName": { + "type": "string", + "id": 7 + } + } + }, + "InsightTypeGenerationConfig": { + "fields": { + "params": { + "type": "google.protobuf.Struct", + "id": 1 + } + } + }, + "Recommendation": { + "options": { + "(google.api.resource).type": "recommender.googleapis.com/Recommendation", + "(google.api.resource).pattern": "organizations/{organization}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "description": { + "type": "string", + "id": 2 + }, + "recommenderSubtype": { + "type": "string", + "id": 12 + }, + "lastRefreshTime": { + "type": "google.protobuf.Timestamp", + "id": 4 + }, + "primaryImpact": { + "type": "Impact", + "id": 5 + }, + "additionalImpact": { + "rule": "repeated", + "type": "Impact", + "id": 6 + }, + "priority": { + "type": "Priority", + "id": 17 + }, + "content": { + "type": "RecommendationContent", + "id": 7 + }, + "stateInfo": { + "type": "RecommendationStateInfo", + "id": 10 + }, + "etag": { + "type": "string", + "id": 11 + }, + "associatedInsights": { + "rule": "repeated", + "type": "InsightReference", + "id": 14 + }, + "xorGroupId": { + "type": "string", + "id": 18 + } + }, + "nested": { + "Priority": { + "values": { + "PRIORITY_UNSPECIFIED": 0, + "P4": 1, + "P3": 2, + "P2": 3, + "P1": 4 + } + }, + "InsightReference": { + "fields": { + "insight": { + "type": "string", + "id": 1 + } + } + } + } + }, + "RecommendationContent": { + "fields": { + "operationGroups": { + "rule": "repeated", + "type": "OperationGroup", + "id": 2 + }, + "overview": { + "type": "google.protobuf.Struct", + "id": 3 + } + } + }, + "OperationGroup": { + "fields": { + "operations": { + "rule": "repeated", + "type": "Operation", + "id": 1 + } + } + }, + "Operation": { + "oneofs": { + "pathValue": { + "oneof": [ + "value", + "valueMatcher" + ] + } + }, + "fields": { + "action": { + "type": "string", + "id": 1 + }, + "resourceType": { + "type": "string", + "id": 2 + }, + "resource": { + "type": "string", + "id": 3 + }, + "path": { + "type": "string", + "id": 4 + }, + "sourceResource": { + "type": "string", + "id": 5 + }, + "sourcePath": { + "type": "string", + "id": 6 + }, + "value": { + "type": "google.protobuf.Value", + "id": 7 + }, + "valueMatcher": { + "type": "ValueMatcher", + "id": 10 + }, + "pathFilters": { + "keyType": "string", + "type": "google.protobuf.Value", + "id": 8 + }, + "pathValueMatchers": { + "keyType": "string", + "type": "ValueMatcher", + "id": 11 + } + } + }, + "ValueMatcher": { + "oneofs": { + "matchVariant": { + "oneof": [ + "matchesPattern" + ] + } + }, + "fields": { + "matchesPattern": { + "type": "string", + "id": 1 + } + } + }, + "CostProjection": { + "fields": { + "cost": { + "type": "google.type.Money", + "id": 1 + }, + "duration": { + "type": "google.protobuf.Duration", + "id": 2 + } + } + }, + "SecurityProjection": { + "fields": { + "details": { + "type": "google.protobuf.Struct", + "id": 2 + } + } + }, + "Impact": { + "oneofs": { + "projection": { + "oneof": [ + "costProjection", + "securityProjection" + ] + } + }, + "fields": { + "category": { + "type": "Category", + "id": 1 + }, + "costProjection": { + "type": "CostProjection", + "id": 100 + }, + "securityProjection": { + "type": "SecurityProjection", + "id": 101 + } + }, + "nested": { + "Category": { + "values": { + "CATEGORY_UNSPECIFIED": 0, + "COST": 1, + "SECURITY": 2, + "PERFORMANCE": 3, + "MANAGEABILITY": 4 + } + } + } + }, + "RecommendationStateInfo": { + "fields": { + "state": { + "type": "State", + "id": 1 + }, + "stateMetadata": { + "keyType": "string", + "type": "string", + "id": 2 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "ACTIVE": 1, + "CLAIMED": 6, + "SUCCEEDED": 3, + "FAILED": 4, + "DISMISSED": 5 + } + } + } + }, + "RecommenderConfig": { + "options": { + "(google.api.resource).type": "recommender.googleapis.com/RecommenderConfig", + "(google.api.resource).pattern": "organizations/{organization}/locations/{location}/recommenders/{recommender}/config" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "recommenderGenerationConfig": { + "type": "RecommenderGenerationConfig", + "id": 2 + }, + "etag": { + "type": "string", + "id": 3 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4 + }, + "revisionId": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "annotations": { + "keyType": "string", + "type": "string", + "id": 6 + }, + "displayName": { + "type": "string", + "id": 7 + } + } + }, + "RecommenderGenerationConfig": { + "fields": { + "params": { + "type": "google.protobuf.Struct", + "id": 1 + } + } + }, + "Recommender": { + "options": { + "(google.api.default_host)": "recommender.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "ListInsights": { + "requestType": "ListInsightsRequest", + "responseType": "ListInsightsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/insightTypes/*}/insights", + "(google.api.http).additional_bindings.get": "/v1/{parent=organizations/*/locations/*/insightTypes/*}/insights", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/insightTypes/*}/insights", + "additional_bindings": [ + { + "get": "/v1/{parent=billingAccounts/*/locations/*/insightTypes/*}/insights" + }, + { + "get": "/v1/{parent=folders/*/locations/*/insightTypes/*}/insights" + }, + { + "get": "/v1/{parent=organizations/*/locations/*/insightTypes/*}/insights" + } + ] + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetInsight": { + "requestType": "GetInsightRequest", + "responseType": "Insight", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}", + "(google.api.http).additional_bindings.get": "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}", + "additional_bindings": [ + { + "get": "/v1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}" + }, + { + "get": "/v1/{name=folders/*/locations/*/insightTypes/*/insights/*}" + }, + { + "get": "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}" + } + ] + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "MarkInsightAccepted": { + "requestType": "MarkInsightAcceptedRequest", + "responseType": "Insight", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "name,state_metadata,etag" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "body": "*", + "additional_bindings": [ + { + "post": "/v1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "body": "*" + }, + { + "post": "/v1/{name=folders/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "body": "*" + }, + { + "post": "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "body": "*" + } + ] + } + }, + { + "(google.api.method_signature)": "name,state_metadata,etag" + } + ] + }, + "ListRecommendations": { + "requestType": "ListRecommendationsRequest", + "responseType": "ListRecommendationsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/recommenders/*}/recommendations", + "(google.api.http).additional_bindings.get": "/v1/{parent=organizations/*/locations/*/recommenders/*}/recommendations", + "(google.api.method_signature)": "parent,filter" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/recommenders/*}/recommendations", + "additional_bindings": [ + { + "get": "/v1/{parent=billingAccounts/*/locations/*/recommenders/*}/recommendations" + }, + { + "get": "/v1/{parent=folders/*/locations/*/recommenders/*}/recommendations" + }, + { + "get": "/v1/{parent=organizations/*/locations/*/recommenders/*}/recommendations" + } + ] + } + }, + { + "(google.api.method_signature)": "parent" + }, + { + "(google.api.method_signature)": "parent,filter" + } + ] + }, + "GetRecommendation": { + "requestType": "GetRecommendationRequest", + "responseType": "Recommendation", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}", + "(google.api.http).additional_bindings.get": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}", + "additional_bindings": [ + { + "get": "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}" + }, + { + "get": "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}" + }, + { + "get": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}" + } + ] + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "MarkRecommendationClaimed": { + "requestType": "MarkRecommendationClaimedRequest", + "responseType": "Recommendation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "name,state_metadata,etag" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "body": "*", + "additional_bindings": [ + { + "post": "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "body": "*" + }, + { + "post": "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "body": "*" + }, + { + "post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "body": "*" + } + ] + } + }, + { + "(google.api.method_signature)": "name,state_metadata,etag" + } + ] + }, + "MarkRecommendationSucceeded": { + "requestType": "MarkRecommendationSucceededRequest", + "responseType": "Recommendation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "name,state_metadata,etag" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "body": "*", + "additional_bindings": [ + { + "post": "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "body": "*" + }, + { + "post": "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "body": "*" + }, + { + "post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "body": "*" + } + ] + } + }, + { + "(google.api.method_signature)": "name,state_metadata,etag" + } + ] + }, + "MarkRecommendationFailed": { + "requestType": "MarkRecommendationFailedRequest", + "responseType": "Recommendation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "name,state_metadata,etag" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "body": "*", + "additional_bindings": [ + { + "post": "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "body": "*" + }, + { + "post": "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "body": "*" + }, + { + "post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "body": "*" + } + ] + } + }, + { + "(google.api.method_signature)": "name,state_metadata,etag" + } + ] + }, + "GetRecommenderConfig": { + "requestType": "GetRecommenderConfigRequest", + "responseType": "RecommenderConfig", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/recommenders/*/config}", + "(google.api.http).additional_bindings.get": "/v1/{name=organizations/*/locations/*/recommenders/*/config}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/recommenders/*/config}", + "additional_bindings": { + "get": "/v1/{name=organizations/*/locations/*/recommenders/*/config}" + } + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateRecommenderConfig": { + "requestType": "UpdateRecommenderConfigRequest", + "responseType": "RecommenderConfig", + "options": { + "(google.api.http).patch": "/v1/{recommender_config.name=projects/*/locations/*/recommenders/*/config}", + "(google.api.http).body": "recommender_config", + "(google.api.http).additional_bindings.patch": "/v1/{recommender_config.name=organizations/*/locations/*/recommenders/*/config}", + "(google.api.http).additional_bindings.body": "recommender_config", + "(google.api.method_signature)": "recommender_config,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{recommender_config.name=projects/*/locations/*/recommenders/*/config}", + "body": "recommender_config", + "additional_bindings": { + "patch": "/v1/{recommender_config.name=organizations/*/locations/*/recommenders/*/config}", + "body": "recommender_config" + } + } + }, + { + "(google.api.method_signature)": "recommender_config,update_mask" + } + ] + }, + "GetInsightTypeConfig": { + "requestType": "GetInsightTypeConfigRequest", + "responseType": "InsightTypeConfig", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/insightTypes/*/config}", + "(google.api.http).additional_bindings.get": "/v1/{name=organizations/*/locations/*/insightTypes/*/config}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/insightTypes/*/config}", + "additional_bindings": { + "get": "/v1/{name=organizations/*/locations/*/insightTypes/*/config}" + } + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateInsightTypeConfig": { + "requestType": "UpdateInsightTypeConfigRequest", + "responseType": "InsightTypeConfig", + "options": { + "(google.api.http).patch": "/v1/{insight_type_config.name=projects/*/locations/*/insightTypes/*/config}", + "(google.api.http).body": "insight_type_config", + "(google.api.http).additional_bindings.patch": "/v1/{insight_type_config.name=organizations/*/locations/*/insightTypes/*/config}", + "(google.api.http).additional_bindings.body": "insight_type_config", + "(google.api.method_signature)": "insight_type_config,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{insight_type_config.name=projects/*/locations/*/insightTypes/*/config}", + "body": "insight_type_config", + "additional_bindings": { + "patch": "/v1/{insight_type_config.name=organizations/*/locations/*/insightTypes/*/config}", + "body": "insight_type_config" + } + } + }, + { + "(google.api.method_signature)": "insight_type_config,update_mask" + } + ] + } + } + }, + "ListInsightsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/InsightType" + } + }, + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "filter": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListInsightsResponse": { + "fields": { + "insights": { + "rule": "repeated", + "type": "Insight", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetInsightRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/Insight" + } + } + } + }, + "MarkInsightAcceptedRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/Insight" + } + }, + "stateMetadata": { + "keyType": "string", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "etag": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListRecommendationsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/Recommender" + } + }, + "pageSize": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "filter": { + "type": "string", + "id": 5 + } + } + }, + "ListRecommendationsResponse": { + "fields": { + "recommendations": { + "rule": "repeated", + "type": "Recommendation", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetRecommendationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/Recommendation" + } + } + } + }, + "MarkRecommendationClaimedRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/Recommendation" + } + }, + "stateMetadata": { + "keyType": "string", + "type": "string", + "id": 2 + }, + "etag": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "MarkRecommendationSucceededRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/Recommendation" + } + }, + "stateMetadata": { + "keyType": "string", + "type": "string", + "id": 2 + }, + "etag": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "MarkRecommendationFailedRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/Recommendation" + } + }, + "stateMetadata": { + "keyType": "string", + "type": "string", + "id": 2 + }, + "etag": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetRecommenderConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/RecommenderConfig" + } + } + } + }, + "UpdateRecommenderConfigRequest": { + "fields": { + "recommenderConfig": { + "type": "RecommenderConfig", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + }, + "validateOnly": { + "type": "bool", + "id": 3 + } + } + }, + "GetInsightTypeConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/InsightTypeConfig" + } + } + } + }, + "UpdateInsightTypeConfigRequest": { + "fields": { + "insightTypeConfig": { + "type": "InsightTypeConfig", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + }, + "validateOnly": { + "type": "bool", + "id": 3 + } + } + } + } + }, + "v1beta1": { + "options": { + "csharp_namespace": "Google.Cloud.Recommender.V1Beta1", + "go_package": "cloud.google.com/go/recommender/apiv1beta1/recommenderpb;recommenderpb", + "java_multiple_files": true, + "java_package": "com.google.cloud.recommender.v1beta1", + "objc_class_prefix": "CREC", + "(google.api.resource_definition).type": "recommender.googleapis.com/Recommender", + "(google.api.resource_definition).pattern": "organizations/{organization}/locations/{location}/recommenders/{recommender}", + "java_outer_classname": "RecommenderProto" + }, + "nested": { + "Insight": { + "options": { + "(google.api.resource).type": "recommender.googleapis.com/Insight", + "(google.api.resource).pattern": "organizations/{organization}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "description": { + "type": "string", + "id": 2 + }, + "targetResources": { + "rule": "repeated", + "type": "string", + "id": 9 + }, + "insightSubtype": { + "type": "string", + "id": 10 + }, + "content": { + "type": "google.protobuf.Struct", + "id": 3 + }, + "lastRefreshTime": { + "type": "google.protobuf.Timestamp", + "id": 4 + }, + "observationPeriod": { + "type": "google.protobuf.Duration", + "id": 5 + }, + "stateInfo": { + "type": "InsightStateInfo", + "id": 6 + }, + "category": { + "type": "Category", + "id": 7 + }, + "severity": { + "type": "Severity", + "id": 15 + }, "etag": { "type": "string", "id": 11 @@ -72,14 +1188,6 @@ } }, "nested": { - "RecommendationReference": { - "fields": { - "recommendation": { - "type": "string", - "id": 1 - } - } - }, "Category": { "values": { "CATEGORY_UNSPECIFIED": 0, @@ -88,6 +1196,23 @@ "PERFORMANCE": 3, "MANAGEABILITY": 4 } + }, + "Severity": { + "values": { + "SEVERITY_UNSPECIFIED": 0, + "LOW": 1, + "MEDIUM": 2, + "HIGH": 3, + "CRITICAL": 4 + } + }, + "RecommendationReference": { + "fields": { + "recommendation": { + "type": "string", + "id": 1 + } + } } } }, @@ -114,6 +1239,54 @@ } } }, + "InsightTypeConfig": { + "options": { + "(google.api.resource).type": "recommender.googleapis.com/InsightTypeConfig", + "(google.api.resource).pattern": "organizations/{organization}/locations/{location}/insightTypes/{insight_type}/config" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "insightTypeGenerationConfig": { + "type": "InsightTypeGenerationConfig", + "id": 2 + }, + "etag": { + "type": "string", + "id": 3 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4 + }, + "revisionId": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "annotations": { + "keyType": "string", + "type": "string", + "id": 6 + }, + "displayName": { + "type": "string", + "id": 7 + } + } + }, + "InsightTypeGenerationConfig": { + "fields": { + "params": { + "type": "google.protobuf.Struct", + "id": 1 + } + } + }, "Recommendation": { "options": { "(google.api.resource).type": "recommender.googleapis.com/Recommendation", @@ -145,6 +1318,10 @@ "type": "Impact", "id": 6 }, + "priority": { + "type": "Priority", + "id": 17 + }, "content": { "type": "RecommendationContent", "id": 7 @@ -161,9 +1338,22 @@ "rule": "repeated", "type": "InsightReference", "id": 14 + }, + "xorGroupId": { + "type": "string", + "id": 18 } }, "nested": { + "Priority": { + "values": { + "PRIORITY_UNSPECIFIED": 0, + "P4": 1, + "P3": 2, + "P2": 3, + "P1": 4 + } + }, "InsightReference": { "fields": { "insight": { @@ -180,6 +1370,10 @@ "rule": "repeated", "type": "OperationGroup", "id": 2 + }, + "overview": { + "type": "google.protobuf.Struct", + "id": 3 } } }, @@ -273,11 +1467,33 @@ } } }, + "SecurityProjection": { + "fields": { + "details": { + "type": "google.protobuf.Struct", + "id": 2 + } + } + }, + "SustainabilityProjection": { + "fields": { + "kgCO2e": { + "type": "double", + "id": 1 + }, + "duration": { + "type": "google.protobuf.Duration", + "id": 2 + } + } + }, "Impact": { "oneofs": { "projection": { "oneof": [ - "costProjection" + "costProjection", + "securityProjection", + "sustainabilityProjection" ] } }, @@ -289,6 +1505,14 @@ "costProjection": { "type": "CostProjection", "id": 100 + }, + "securityProjection": { + "type": "SecurityProjection", + "id": 101 + }, + "sustainabilityProjection": { + "type": "SustainabilityProjection", + "id": 102 } }, "nested": { @@ -298,7 +1522,8 @@ "COST": 1, "SECURITY": 2, "PERFORMANCE": 3, - "MANAGEABILITY": 4 + "MANAGEABILITY": 4, + "SUSTAINABILITY": 5 } } } @@ -328,6 +1553,54 @@ } } }, + "RecommenderConfig": { + "options": { + "(google.api.resource).type": "recommender.googleapis.com/RecommenderConfig", + "(google.api.resource).pattern": "organizations/{organization}/locations/{location}/recommenders/{recommender}/config" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "recommenderGenerationConfig": { + "type": "RecommenderGenerationConfig", + "id": 2 + }, + "etag": { + "type": "string", + "id": 3 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4 + }, + "revisionId": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "annotations": { + "keyType": "string", + "type": "string", + "id": 6 + }, + "displayName": { + "type": "string", + "id": 7 + } + } + }, + "RecommenderGenerationConfig": { + "fields": { + "params": { + "type": "google.protobuf.Struct", + "id": 1 + } + } + }, "Recommender": { "options": { "(google.api.default_host)": "recommender.googleapis.com", @@ -338,23 +1611,23 @@ "requestType": "ListInsightsRequest", "responseType": "ListInsightsResponse", "options": { - "(google.api.http).get": "/v1/{parent=projects/*/locations/*/insightTypes/*}/insights", - "(google.api.http).additional_bindings.get": "/v1/{parent=organizations/*/locations/*/insightTypes/*}/insights", + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/insightTypes/*}/insights", + "(google.api.http).additional_bindings.get": "/v1beta1/{parent=organizations/*/locations/*/insightTypes/*}/insights", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*/insightTypes/*}/insights", + "get": "/v1beta1/{parent=projects/*/locations/*/insightTypes/*}/insights", "additional_bindings": [ { - "get": "/v1/{parent=billingAccounts/*/locations/*/insightTypes/*}/insights" + "get": "/v1beta1/{parent=billingAccounts/*/locations/*/insightTypes/*}/insights" }, { - "get": "/v1/{parent=folders/*/locations/*/insightTypes/*}/insights" + "get": "/v1beta1/{parent=folders/*/locations/*/insightTypes/*}/insights" }, { - "get": "/v1/{parent=organizations/*/locations/*/insightTypes/*}/insights" + "get": "/v1beta1/{parent=organizations/*/locations/*/insightTypes/*}/insights" } ] } @@ -368,23 +1641,23 @@ "requestType": "GetInsightRequest", "responseType": "Insight", "options": { - "(google.api.http).get": "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}", - "(google.api.http).additional_bindings.get": "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}", + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}", + "(google.api.http).additional_bindings.get": "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}", + "get": "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}", "additional_bindings": [ { - "get": "/v1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}" + "get": "/v1beta1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}" }, { - "get": "/v1/{name=folders/*/locations/*/insightTypes/*/insights/*}" + "get": "/v1beta1/{name=folders/*/locations/*/insightTypes/*/insights/*}" }, { - "get": "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}" + "get": "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}" } ] } @@ -398,28 +1671,28 @@ "requestType": "MarkInsightAcceptedRequest", "responseType": "Insight", "options": { - "(google.api.http).post": "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "(google.api.http).additional_bindings.post": "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,state_metadata,etag" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "post": "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted", "body": "*", "additional_bindings": [ { - "post": "/v1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "post": "/v1beta1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}:markAccepted", "body": "*" }, { - "post": "/v1/{name=folders/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "post": "/v1beta1/{name=folders/*/locations/*/insightTypes/*/insights/*}:markAccepted", "body": "*" }, { - "post": "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted", + "post": "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted", "body": "*" } ] @@ -434,30 +1707,27 @@ "requestType": "ListRecommendationsRequest", "responseType": "ListRecommendationsResponse", "options": { - "(google.api.http).get": "/v1/{parent=projects/*/locations/*/recommenders/*}/recommendations", - "(google.api.http).additional_bindings.get": "/v1/{parent=organizations/*/locations/*/recommenders/*}/recommendations", + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/recommenders/*}/recommendations", + "(google.api.http).additional_bindings.get": "/v1beta1/{parent=organizations/*/locations/*/recommenders/*}/recommendations", "(google.api.method_signature)": "parent,filter" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*/recommenders/*}/recommendations", + "get": "/v1beta1/{parent=projects/*/locations/*/recommenders/*}/recommendations", "additional_bindings": [ { - "get": "/v1/{parent=billingAccounts/*/locations/*/recommenders/*}/recommendations" + "get": "/v1beta1/{parent=billingAccounts/*/locations/*/recommenders/*}/recommendations" }, { - "get": "/v1/{parent=folders/*/locations/*/recommenders/*}/recommendations" + "get": "/v1beta1/{parent=folders/*/locations/*/recommenders/*}/recommendations" }, { - "get": "/v1/{parent=organizations/*/locations/*/recommenders/*}/recommendations" + "get": "/v1beta1/{parent=organizations/*/locations/*/recommenders/*}/recommendations" } ] } }, - { - "(google.api.method_signature)": "parent" - }, { "(google.api.method_signature)": "parent,filter" } @@ -467,23 +1737,23 @@ "requestType": "GetRecommendationRequest", "responseType": "Recommendation", "options": { - "(google.api.http).get": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}", - "(google.api.http).additional_bindings.get": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}", + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}", + "(google.api.http).additional_bindings.get": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}", + "get": "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}", "additional_bindings": [ { - "get": "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}" + "get": "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}" }, { - "get": "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}" + "get": "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}" }, { - "get": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}" + "get": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}" } ] } @@ -497,28 +1767,28 @@ "requestType": "MarkRecommendationClaimedRequest", "responseType": "Recommendation", "options": { - "(google.api.http).post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "(google.api.http).additional_bindings.post": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,state_metadata,etag" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "post": "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed", "body": "*", "additional_bindings": [ { - "post": "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "post": "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markClaimed", "body": "*" }, { - "post": "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "post": "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markClaimed", "body": "*" }, { - "post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed", + "post": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed", "body": "*" } ] @@ -533,28 +1803,28 @@ "requestType": "MarkRecommendationSucceededRequest", "responseType": "Recommendation", "options": { - "(google.api.http).post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "(google.api.http).additional_bindings.post": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,state_metadata,etag" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "post": "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", "body": "*", "additional_bindings": [ { - "post": "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "post": "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", "body": "*" }, { - "post": "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "post": "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", "body": "*" }, { - "post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", + "post": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded", "body": "*" } ] @@ -569,28 +1839,28 @@ "requestType": "MarkRecommendationFailedRequest", "responseType": "Recommendation", "options": { - "(google.api.http).post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "(google.api.http).additional_bindings.post": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,state_metadata,etag" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "post": "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed", "body": "*", "additional_bindings": [ { - "post": "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "post": "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markFailed", "body": "*" }, { - "post": "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "post": "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markFailed", "body": "*" }, { - "post": "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed", + "post": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed", "body": "*" } ] @@ -600,6 +1870,102 @@ "(google.api.method_signature)": "name,state_metadata,etag" } ] + }, + "GetRecommenderConfig": { + "requestType": "GetRecommenderConfigRequest", + "responseType": "RecommenderConfig", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/recommenders/*/config}", + "(google.api.http).additional_bindings.get": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/config}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/recommenders/*/config}", + "additional_bindings": { + "get": "/v1beta1/{name=organizations/*/locations/*/recommenders/*/config}" + } + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateRecommenderConfig": { + "requestType": "UpdateRecommenderConfigRequest", + "responseType": "RecommenderConfig", + "options": { + "(google.api.http).patch": "/v1beta1/{recommender_config.name=projects/*/locations/*/recommenders/*/config}", + "(google.api.http).body": "recommender_config", + "(google.api.http).additional_bindings.post": "/v1beta1/{recommender_config.name=organizations/*/locations/*/recommenders/*/config}", + "(google.api.http).additional_bindings.body": "recommender_config", + "(google.api.method_signature)": "recommender_config,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta1/{recommender_config.name=projects/*/locations/*/recommenders/*/config}", + "body": "recommender_config", + "additional_bindings": { + "post": "/v1beta1/{recommender_config.name=organizations/*/locations/*/recommenders/*/config}", + "body": "recommender_config" + } + } + }, + { + "(google.api.method_signature)": "recommender_config,update_mask" + } + ] + }, + "GetInsightTypeConfig": { + "requestType": "GetInsightTypeConfigRequest", + "responseType": "InsightTypeConfig", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/insightTypes/*/config}", + "(google.api.http).additional_bindings.get": "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/config}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/insightTypes/*/config}", + "additional_bindings": { + "get": "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/config}" + } + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateInsightTypeConfig": { + "requestType": "UpdateInsightTypeConfigRequest", + "responseType": "InsightTypeConfig", + "options": { + "(google.api.http).patch": "/v1beta1/{insight_type_config.name=projects/*/locations/*/insightTypes/*/config}", + "(google.api.http).body": "insight_type_config", + "(google.api.http).additional_bindings.post": "/v1beta1/{insight_type_config.name=organizations/*/locations/*/insightTypes/*/config}", + "(google.api.http).additional_bindings.body": "insight_type_config", + "(google.api.method_signature)": "insight_type_config,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1beta1/{insight_type_config.name=projects/*/locations/*/insightTypes/*/config}", + "body": "insight_type_config", + "additional_bindings": { + "post": "/v1beta1/{insight_type_config.name=organizations/*/locations/*/insightTypes/*/config}", + "body": "insight_type_config" + } + } + }, + { + "(google.api.method_signature)": "insight_type_config,update_mask" + } + ] } } }, @@ -814,6 +2180,68 @@ } } } + }, + "GetRecommenderConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/RecommenderConfig" + } + } + } + }, + "UpdateRecommenderConfigRequest": { + "fields": { + "recommenderConfig": { + "type": "RecommenderConfig", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + }, + "validateOnly": { + "type": "bool", + "id": 3 + } + } + }, + "GetInsightTypeConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "recommender.googleapis.com/InsightTypeConfig" + } + } + } + }, + "UpdateInsightTypeConfigRequest": { + "fields": { + "insightTypeConfig": { + "type": "InsightTypeConfig", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + }, + "validateOnly": { + "type": "bool", + "id": 3 + } + } } } } @@ -826,7 +2254,7 @@ "cc_enable_arenas": true, "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", "java_multiple_files": true, - "java_outer_classname": "FieldBehaviorProto", + "java_outer_classname": "ClientProto", "java_package": "com.google.api", "objc_class_prefix": "GAPI" }, @@ -908,6 +2336,24 @@ } } }, + "fieldBehavior": { + "rule": "repeated", + "type": "google.api.FieldBehavior", + "id": 1052, + "extend": "google.protobuf.FieldOptions" + }, + "FieldBehavior": { + "values": { + "FIELD_BEHAVIOR_UNSPECIFIED": 0, + "OPTIONAL": 1, + "REQUIRED": 2, + "OUTPUT_ONLY": 3, + "INPUT_ONLY": 4, + "IMMUTABLE": 5, + "UNORDERED_LIST": 6, + "NON_EMPTY_DEFAULT": 7 + } + }, "http": { "type": "HttpRule", "id": 72295728, @@ -1010,24 +2456,6 @@ "type": "string", "id": 1050, "extend": "google.protobuf.ServiceOptions" - }, - "fieldBehavior": { - "rule": "repeated", - "type": "google.api.FieldBehavior", - "id": 1052, - "extend": "google.protobuf.FieldOptions" - }, - "FieldBehavior": { - "values": { - "FIELD_BEHAVIOR_UNSPECIFIED": 0, - "OPTIONAL": 1, - "REQUIRED": 2, - "OUTPUT_ONLY": 3, - "INPUT_ONLY": 4, - "IMMUTABLE": 5, - "UNORDERED_LIST": 6, - "NON_EMPTY_DEFAULT": 7 - } } } }, @@ -2048,6 +3476,15 @@ "id": 2 } } + }, + "FieldMask": { + "fields": { + "paths": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } } } }, diff --git a/packages/google-cloud-recommender/samples/README.md b/packages/google-cloud-recommender/samples/README.md index ee912bd32f24..ca6ef87143b4 100644 --- a/packages/google-cloud-recommender/samples/README.md +++ b/packages/google-cloud-recommender/samples/README.md @@ -12,6 +12,30 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) + * [Recommender.get_insight](#recommender.get_insight) + * [Recommender.get_insight_type_config](#recommender.get_insight_type_config) + * [Recommender.get_recommendation](#recommender.get_recommendation) + * [Recommender.get_recommender_config](#recommender.get_recommender_config) + * [Recommender.list_insights](#recommender.list_insights) + * [Recommender.list_recommendations](#recommender.list_recommendations) + * [Recommender.mark_insight_accepted](#recommender.mark_insight_accepted) + * [Recommender.mark_recommendation_claimed](#recommender.mark_recommendation_claimed) + * [Recommender.mark_recommendation_failed](#recommender.mark_recommendation_failed) + * [Recommender.mark_recommendation_succeeded](#recommender.mark_recommendation_succeeded) + * [Recommender.update_insight_type_config](#recommender.update_insight_type_config) + * [Recommender.update_recommender_config](#recommender.update_recommender_config) + * [Recommender.get_insight](#recommender.get_insight) + * [Recommender.get_insight_type_config](#recommender.get_insight_type_config) + * [Recommender.get_recommendation](#recommender.get_recommendation) + * [Recommender.get_recommender_config](#recommender.get_recommender_config) + * [Recommender.list_insights](#recommender.list_insights) + * [Recommender.list_recommendations](#recommender.list_recommendations) + * [Recommender.mark_insight_accepted](#recommender.mark_insight_accepted) + * [Recommender.mark_recommendation_claimed](#recommender.mark_recommendation_claimed) + * [Recommender.mark_recommendation_failed](#recommender.mark_recommendation_failed) + * [Recommender.mark_recommendation_succeeded](#recommender.mark_recommendation_succeeded) + * [Recommender.update_insight_type_config](#recommender.update_insight_type_config) + * [Recommender.update_recommender_config](#recommender.update_recommender_config) * [Quickstart](#quickstart) * [Quickstart](#quickstart) @@ -30,6 +54,414 @@ Before running the samples, make sure you've followed the steps outlined in +### Recommender.get_insight + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight.js` + + +----- + + + + +### Recommender.get_insight_type_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight_type_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight_type_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight_type_config.js` + + +----- + + + + +### Recommender.get_recommendation + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommendation.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommendation.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommendation.js` + + +----- + + + + +### Recommender.get_recommender_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommender_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommender_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommender_config.js` + + +----- + + + + +### Recommender.list_insights + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.list_insights.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.list_insights.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.list_insights.js` + + +----- + + + + +### Recommender.list_recommendations + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.list_recommendations.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.list_recommendations.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.list_recommendations.js` + + +----- + + + + +### Recommender.mark_insight_accepted + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_insight_accepted.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.mark_insight_accepted.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.mark_insight_accepted.js` + + +----- + + + + +### Recommender.mark_recommendation_claimed + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_claimed.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_claimed.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_claimed.js` + + +----- + + + + +### Recommender.mark_recommendation_failed + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_failed.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_failed.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_failed.js` + + +----- + + + + +### Recommender.mark_recommendation_succeeded + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_succeeded.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_succeeded.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_succeeded.js` + + +----- + + + + +### Recommender.update_insight_type_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.update_insight_type_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.update_insight_type_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.update_insight_type_config.js` + + +----- + + + + +### Recommender.update_recommender_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1/recommender.update_recommender_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1/recommender.update_recommender_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1/recommender.update_recommender_config.js` + + +----- + + + + +### Recommender.get_insight + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight.js` + + +----- + + + + +### Recommender.get_insight_type_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight_type_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight_type_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight_type_config.js` + + +----- + + + + +### Recommender.get_recommendation + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommendation.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommendation.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommendation.js` + + +----- + + + + +### Recommender.get_recommender_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommender_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommender_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommender_config.js` + + +----- + + + + +### Recommender.list_insights + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_insights.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_insights.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_insights.js` + + +----- + + + + +### Recommender.list_recommendations + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_recommendations.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_recommendations.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_recommendations.js` + + +----- + + + + +### Recommender.mark_insight_accepted + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_insight_accepted.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_insight_accepted.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_insight_accepted.js` + + +----- + + + + +### Recommender.mark_recommendation_claimed + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_claimed.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_claimed.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_claimed.js` + + +----- + + + + +### Recommender.mark_recommendation_failed + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_failed.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_failed.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_failed.js` + + +----- + + + + +### Recommender.mark_recommendation_succeeded + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js` + + +----- + + + + +### Recommender.update_insight_type_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_insight_type_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_insight_type_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_insight_type_config.js` + + +----- + + + + +### Recommender.update_recommender_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_recommender_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_recommender_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_recommender_config.js` + + +----- + + + + ### Quickstart View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-recommender/samples/quickstart.js). diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight.js new file mode 100644 index 000000000000..1bd5f590f465 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START recommender_v1_generated_Recommender_GetInsight_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the insight. + */ + // const name = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callGetInsight() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await recommenderClient.getInsight(request); + console.log(response); + } + + callGetInsight(); + // [END recommender_v1_generated_Recommender_GetInsight_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight_type_config.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight_type_config.js new file mode 100644 index 000000000000..36551fb83966 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.get_insight_type_config.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START recommender_v1_generated_Recommender_GetInsightTypeConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the InsightTypeConfig to get. + * Acceptable formats: + * * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + */ + // const name = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callGetInsightTypeConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await recommenderClient.getInsightTypeConfig(request); + console.log(response); + } + + callGetInsightTypeConfig(); + // [END recommender_v1_generated_Recommender_GetInsightTypeConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommendation.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommendation.js new file mode 100644 index 000000000000..5e5eb1c8a7f2 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommendation.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START recommender_v1_generated_Recommender_GetRecommendation_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the recommendation. + */ + // const name = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callGetRecommendation() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await recommenderClient.getRecommendation(request); + console.log(response); + } + + callGetRecommendation(); + // [END recommender_v1_generated_Recommender_GetRecommendation_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommender_config.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommender_config.js new file mode 100644 index 000000000000..f3f43e99f7c1 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.get_recommender_config.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START recommender_v1_generated_Recommender_GetRecommenderConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the Recommendation Config to get. + * Acceptable formats: + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + */ + // const name = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callGetRecommenderConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await recommenderClient.getRecommenderConfig(request); + console.log(response); + } + + callGetRecommenderConfig(); + // [END recommender_v1_generated_Recommender_GetRecommenderConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.list_insights.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.list_insights.js new file mode 100644 index 000000000000..47c9e1f056c5 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.list_insights.js @@ -0,0 +1,101 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START recommender_v1_generated_Recommender_ListInsights_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The container resource on which to execute the request. + * Acceptable formats: + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * INSIGHT_TYPE_ID refers to supported insight types: + * https://cloud.google.com/recommender/docs/insights/insight-types. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. If not specified, the server will + * determine the number of results to return. + */ + // const pageSize = 1234 + /** + * Optional. If present, retrieves the next batch of results from the + * preceding call to this method. `page_token` must be the value of + * `next_page_token` from the previous response. The values of other method + * parameters must be identical to those in the previous call. + */ + // const pageToken = 'abc123' + /** + * Optional. Filter expression to restrict the insights returned. Supported + * filter fields: + * * `stateInfo.state` + * * `insightSubtype` + * * `severity` + * Examples: + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * * `insightSubtype = PERMISSIONS_USAGE` + * * `severity = CRITICAL OR severity = HIGH` + * * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + */ + // const filter = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callListInsights() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await recommenderClient.listInsightsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListInsights(); + // [END recommender_v1_generated_Recommender_ListInsights_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.list_recommendations.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.list_recommendations.js new file mode 100644 index 000000000000..c21dcc389934 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.list_recommendations.js @@ -0,0 +1,101 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START recommender_v1_generated_Recommender_ListRecommendations_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The container resource on which to execute the request. + * Acceptable formats: + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * RECOMMENDER_ID refers to supported recommenders: + * https://cloud.google.com/recommender/docs/recommenders. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. If not specified, the server will + * determine the number of results to return. + */ + // const pageSize = 1234 + /** + * Optional. If present, retrieves the next batch of results from the + * preceding call to this method. `page_token` must be the value of + * `next_page_token` from the previous response. The values of other method + * parameters must be identical to those in the previous call. + */ + // const pageToken = 'abc123' + /** + * Filter expression to restrict the recommendations returned. Supported + * filter fields: + * * `state_info.state` + * * `recommenderSubtype` + * * `priority` + * Examples: + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + * * `priority = P1 OR priority = P2` + * * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + */ + // const filter = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callListRecommendations() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await recommenderClient.listRecommendationsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListRecommendations(); + // [END recommender_v1_generated_Recommender_ListRecommendations_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_insight_accepted.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_insight_accepted.js new file mode 100644 index 000000000000..214db284b392 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_insight_accepted.js @@ -0,0 +1,71 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, etag) { + // [START recommender_v1_generated_Recommender_MarkInsightAccepted_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the insight. + */ + // const name = 'abc123' + /** + * Optional. State properties user wish to include with this state. Full + * replace of the current state_metadata. + */ + // const stateMetadata = 1234 + /** + * Required. Fingerprint of the Insight. Provides optimistic locking. + */ + // const etag = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callMarkInsightAccepted() { + // Construct request + const request = { + name, + etag, + }; + + // Run request + const response = await recommenderClient.markInsightAccepted(request); + console.log(response); + } + + callMarkInsightAccepted(); + // [END recommender_v1_generated_Recommender_MarkInsightAccepted_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_claimed.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_claimed.js new file mode 100644 index 000000000000..f5c0207253d1 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_claimed.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, etag) { + // [START recommender_v1_generated_Recommender_MarkRecommendationClaimed_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the recommendation. + */ + // const name = 'abc123' + /** + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + */ + // const stateMetadata = 1234 + /** + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + */ + // const etag = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callMarkRecommendationClaimed() { + // Construct request + const request = { + name, + etag, + }; + + // Run request + const response = await recommenderClient.markRecommendationClaimed(request); + console.log(response); + } + + callMarkRecommendationClaimed(); + // [END recommender_v1_generated_Recommender_MarkRecommendationClaimed_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_failed.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_failed.js new file mode 100644 index 000000000000..f57d899a84fd --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_failed.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, etag) { + // [START recommender_v1_generated_Recommender_MarkRecommendationFailed_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the recommendation. + */ + // const name = 'abc123' + /** + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + */ + // const stateMetadata = 1234 + /** + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + */ + // const etag = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callMarkRecommendationFailed() { + // Construct request + const request = { + name, + etag, + }; + + // Run request + const response = await recommenderClient.markRecommendationFailed(request); + console.log(response); + } + + callMarkRecommendationFailed(); + // [END recommender_v1_generated_Recommender_MarkRecommendationFailed_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_succeeded.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_succeeded.js new file mode 100644 index 000000000000..c7f4d80342f9 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.mark_recommendation_succeeded.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, etag) { + // [START recommender_v1_generated_Recommender_MarkRecommendationSucceeded_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the recommendation. + */ + // const name = 'abc123' + /** + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + */ + // const stateMetadata = 1234 + /** + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + */ + // const etag = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callMarkRecommendationSucceeded() { + // Construct request + const request = { + name, + etag, + }; + + // Run request + const response = await recommenderClient.markRecommendationSucceeded(request); + console.log(response); + } + + callMarkRecommendationSucceeded(); + // [END recommender_v1_generated_Recommender_MarkRecommendationSucceeded_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.update_insight_type_config.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.update_insight_type_config.js new file mode 100644 index 000000000000..1b370d8c471c --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.update_insight_type_config.js @@ -0,0 +1,70 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(insightTypeConfig) { + // [START recommender_v1_generated_Recommender_UpdateInsightTypeConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The InsightTypeConfig to update. + */ + // const insightTypeConfig = {} + /** + * The list of fields to be updated. + */ + // const updateMask = {} + /** + * If true, validate the request and preview the change, but do not actually + * update it. + */ + // const validateOnly = true + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callUpdateInsightTypeConfig() { + // Construct request + const request = { + insightTypeConfig, + }; + + // Run request + const response = await recommenderClient.updateInsightTypeConfig(request); + console.log(response); + } + + callUpdateInsightTypeConfig(); + // [END recommender_v1_generated_Recommender_UpdateInsightTypeConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/recommender.update_recommender_config.js b/packages/google-cloud-recommender/samples/generated/v1/recommender.update_recommender_config.js new file mode 100644 index 000000000000..e4ac74aba64e --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/recommender.update_recommender_config.js @@ -0,0 +1,70 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(recommenderConfig) { + // [START recommender_v1_generated_Recommender_UpdateRecommenderConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The RecommenderConfig to update. + */ + // const recommenderConfig = {} + /** + * The list of fields to be updated. + */ + // const updateMask = {} + /** + * If true, validate the request and preview the change, but do not actually + * update it. + */ + // const validateOnly = true + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callUpdateRecommenderConfig() { + // Construct request + const request = { + recommenderConfig, + }; + + // Run request + const response = await recommenderClient.updateRecommenderConfig(request); + console.log(response); + } + + callUpdateRecommenderConfig(); + // [END recommender_v1_generated_Recommender_UpdateRecommenderConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1/snippet_metadata.google.cloud.recommender.v1.json b/packages/google-cloud-recommender/samples/generated/v1/snippet_metadata.google.cloud.recommender.v1.json new file mode 100644 index 000000000000..4f1465e023dc --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1/snippet_metadata.google.cloud.recommender.v1.json @@ -0,0 +1,567 @@ +{ + "clientLibrary": { + "name": "nodejs-recommender", + "version": "5.0.4", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.recommender.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "recommender_v1_generated_Recommender_ListInsights_async", + "title": "Recommender listInsights Sample", + "origin": "API_DEFINITION", + "description": " Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", + "canonical": true, + "file": "recommender.list_insights.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListInsights", + "fullName": "google.cloud.recommender.v1.Recommender.ListInsights", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.ListInsightsResponse", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "ListInsights", + "fullName": "google.cloud.recommender.v1.Recommender.ListInsights", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_GetInsight_async", + "title": "Recommender getInsight Sample", + "origin": "API_DEFINITION", + "description": " Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", + "canonical": true, + "file": "recommender.get_insight.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetInsight", + "fullName": "google.cloud.recommender.v1.Recommender.GetInsight", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.Insight", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "GetInsight", + "fullName": "google.cloud.recommender.v1.Recommender.GetInsight", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_MarkInsightAccepted_async", + "title": "Recommender markInsightAccepted Sample", + "origin": "API_DEFINITION", + "description": " Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", + "canonical": true, + "file": "recommender.mark_insight_accepted.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "MarkInsightAccepted", + "fullName": "google.cloud.recommender.v1.Recommender.MarkInsightAccepted", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "state_metadata", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.Insight", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "MarkInsightAccepted", + "fullName": "google.cloud.recommender.v1.Recommender.MarkInsightAccepted", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_ListRecommendations_async", + "title": "Recommender listRecommendations Sample", + "origin": "API_DEFINITION", + "description": " Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.list_recommendations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListRecommendations", + "fullName": "google.cloud.recommender.v1.Recommender.ListRecommendations", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.ListRecommendationsResponse", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "ListRecommendations", + "fullName": "google.cloud.recommender.v1.Recommender.ListRecommendations", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_GetRecommendation_async", + "title": "Recommender getRecommendation Sample", + "origin": "API_DEFINITION", + "description": " Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.get_recommendation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetRecommendation", + "fullName": "google.cloud.recommender.v1.Recommender.GetRecommendation", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.Recommendation", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "GetRecommendation", + "fullName": "google.cloud.recommender.v1.Recommender.GetRecommendation", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationClaimed_async", + "title": "Recommender markRecommendationClaimed Sample", + "origin": "API_DEFINITION", + "description": " Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.mark_recommendation_claimed.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "MarkRecommendationClaimed", + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationClaimed", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "state_metadata", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.Recommendation", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "MarkRecommendationClaimed", + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationClaimed", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationSucceeded_async", + "title": "Recommender markRecommendationSucceeded Sample", + "origin": "API_DEFINITION", + "description": " Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.mark_recommendation_succeeded.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "MarkRecommendationSucceeded", + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationSucceeded", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "state_metadata", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.Recommendation", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "MarkRecommendationSucceeded", + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationSucceeded", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationFailed_async", + "title": "Recommender markRecommendationFailed Sample", + "origin": "API_DEFINITION", + "description": " Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.mark_recommendation_failed.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "MarkRecommendationFailed", + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationFailed", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "state_metadata", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.Recommendation", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "MarkRecommendationFailed", + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationFailed", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_GetRecommenderConfig_async", + "title": "Recommender getRecommenderConfig Sample", + "origin": "API_DEFINITION", + "description": " Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", + "canonical": true, + "file": "recommender.get_recommender_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetRecommenderConfig", + "fullName": "google.cloud.recommender.v1.Recommender.GetRecommenderConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.RecommenderConfig", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "GetRecommenderConfig", + "fullName": "google.cloud.recommender.v1.Recommender.GetRecommenderConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_UpdateRecommenderConfig_async", + "title": "Recommender updateRecommenderConfig Sample", + "origin": "API_DEFINITION", + "description": " Updates a Recommender Config. This will create a new revision of the config.", + "canonical": true, + "file": "recommender.update_recommender_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateRecommenderConfig", + "fullName": "google.cloud.recommender.v1.Recommender.UpdateRecommenderConfig", + "async": true, + "parameters": [ + { + "name": "recommender_config", + "type": ".google.cloud.recommender.v1.RecommenderConfig" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "validate_only", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.recommender.v1.RecommenderConfig", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "UpdateRecommenderConfig", + "fullName": "google.cloud.recommender.v1.Recommender.UpdateRecommenderConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_GetInsightTypeConfig_async", + "title": "Recommender getInsightTypeConfig Sample", + "origin": "API_DEFINITION", + "description": " Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", + "canonical": true, + "file": "recommender.get_insight_type_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetInsightTypeConfig", + "fullName": "google.cloud.recommender.v1.Recommender.GetInsightTypeConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1.InsightTypeConfig", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "GetInsightTypeConfig", + "fullName": "google.cloud.recommender.v1.Recommender.GetInsightTypeConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1_generated_Recommender_UpdateInsightTypeConfig_async", + "title": "Recommender updateInsightTypeConfig Sample", + "origin": "API_DEFINITION", + "description": " Updates an InsightTypeConfig change. This will create a new revision of the config.", + "canonical": true, + "file": "recommender.update_insight_type_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateInsightTypeConfig", + "fullName": "google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfig", + "async": true, + "parameters": [ + { + "name": "insight_type_config", + "type": ".google.cloud.recommender.v1.InsightTypeConfig" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "validate_only", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.recommender.v1.InsightTypeConfig", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1.RecommenderClient" + }, + "method": { + "shortName": "UpdateInsightTypeConfig", + "fullName": "google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + } + } + ] +} \ No newline at end of file diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight.js new file mode 100644 index 000000000000..9fe532fc4a16 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START recommender_v1beta1_generated_Recommender_GetInsight_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the insight. + */ + // const name = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callGetInsight() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await recommenderClient.getInsight(request); + console.log(response); + } + + callGetInsight(); + // [END recommender_v1beta1_generated_Recommender_GetInsight_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight_type_config.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight_type_config.js new file mode 100644 index 000000000000..a10fda24e5eb --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_insight_type_config.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START recommender_v1beta1_generated_Recommender_GetInsightTypeConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the InsightTypeConfig to get. + * Acceptable formats: + * * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + */ + // const name = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callGetInsightTypeConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await recommenderClient.getInsightTypeConfig(request); + console.log(response); + } + + callGetInsightTypeConfig(); + // [END recommender_v1beta1_generated_Recommender_GetInsightTypeConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommendation.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommendation.js new file mode 100644 index 000000000000..1eec74a92266 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommendation.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START recommender_v1beta1_generated_Recommender_GetRecommendation_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the recommendation. + */ + // const name = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callGetRecommendation() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await recommenderClient.getRecommendation(request); + console.log(response); + } + + callGetRecommendation(); + // [END recommender_v1beta1_generated_Recommender_GetRecommendation_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommender_config.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommender_config.js new file mode 100644 index 000000000000..714bfb6daa3d --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.get_recommender_config.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START recommender_v1beta1_generated_Recommender_GetRecommenderConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the Recommendation Config to get. + * Acceptable formats: + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + */ + // const name = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callGetRecommenderConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await recommenderClient.getRecommenderConfig(request); + console.log(response); + } + + callGetRecommenderConfig(); + // [END recommender_v1beta1_generated_Recommender_GetRecommenderConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_insights.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_insights.js new file mode 100644 index 000000000000..4021b57de479 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_insights.js @@ -0,0 +1,101 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START recommender_v1beta1_generated_Recommender_ListInsights_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The container resource on which to execute the request. + * Acceptable formats: + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * INSIGHT_TYPE_ID refers to supported insight types: + * https://cloud.google.com/recommender/docs/insights/insight-types. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of results to return from this request. Non-positive + * values are ignored. If not specified, the server will determine the number + * of results to return. + */ + // const pageSize = 1234 + /** + * Optional. If present, retrieves the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the + * previous response. The values of other method parameters must be identical + * to those in the previous call. + */ + // const pageToken = 'abc123' + /** + * Optional. Filter expression to restrict the insights returned. Supported + * filter fields: + * * `stateInfo.state` + * * `insightSubtype` + * * `severity` + * Examples: + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * * `insightSubtype = PERMISSIONS_USAGE` + * * `severity = CRITICAL OR severity = HIGH` + * * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + */ + // const filter = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callListInsights() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await recommenderClient.listInsightsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListInsights(); + // [END recommender_v1beta1_generated_Recommender_ListInsights_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_recommendations.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_recommendations.js new file mode 100644 index 000000000000..85973f13f6bc --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.list_recommendations.js @@ -0,0 +1,101 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START recommender_v1beta1_generated_Recommender_ListRecommendations_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The container resource on which to execute the request. + * Acceptable formats: + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * RECOMMENDER_ID refers to supported recommenders: + * https://cloud.google.com/recommender/docs/recommenders. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of results to return from this request. Non-positive + * values are ignored. If not specified, the server will determine the number + * of results to return. + */ + // const pageSize = 1234 + /** + * Optional. If present, retrieves the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the + * previous response. The values of other method parameters must be identical + * to those in the previous call. + */ + // const pageToken = 'abc123' + /** + * Filter expression to restrict the recommendations returned. Supported + * filter fields: + * * `state_info.state` + * * `recommenderSubtype` + * * `priority` + * Examples: + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + * * `priority = P1 OR priority = P2` + * * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + */ + // const filter = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callListRecommendations() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await recommenderClient.listRecommendationsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListRecommendations(); + // [END recommender_v1beta1_generated_Recommender_ListRecommendations_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_insight_accepted.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_insight_accepted.js new file mode 100644 index 000000000000..a36e53a62021 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_insight_accepted.js @@ -0,0 +1,71 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, etag) { + // [START recommender_v1beta1_generated_Recommender_MarkInsightAccepted_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the insight. + */ + // const name = 'abc123' + /** + * Optional. State properties user wish to include with this state. Full replace of the + * current state_metadata. + */ + // const stateMetadata = 1234 + /** + * Required. Fingerprint of the Insight. Provides optimistic locking. + */ + // const etag = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callMarkInsightAccepted() { + // Construct request + const request = { + name, + etag, + }; + + // Run request + const response = await recommenderClient.markInsightAccepted(request); + console.log(response); + } + + callMarkInsightAccepted(); + // [END recommender_v1beta1_generated_Recommender_MarkInsightAccepted_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_claimed.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_claimed.js new file mode 100644 index 000000000000..1c32b500a96b --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_claimed.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, etag) { + // [START recommender_v1beta1_generated_Recommender_MarkRecommendationClaimed_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the recommendation. + */ + // const name = 'abc123' + /** + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + */ + // const stateMetadata = 1234 + /** + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + */ + // const etag = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callMarkRecommendationClaimed() { + // Construct request + const request = { + name, + etag, + }; + + // Run request + const response = await recommenderClient.markRecommendationClaimed(request); + console.log(response); + } + + callMarkRecommendationClaimed(); + // [END recommender_v1beta1_generated_Recommender_MarkRecommendationClaimed_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_failed.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_failed.js new file mode 100644 index 000000000000..61ce20318625 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_failed.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, etag) { + // [START recommender_v1beta1_generated_Recommender_MarkRecommendationFailed_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the recommendation. + */ + // const name = 'abc123' + /** + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + */ + // const stateMetadata = 1234 + /** + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + */ + // const etag = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callMarkRecommendationFailed() { + // Construct request + const request = { + name, + etag, + }; + + // Run request + const response = await recommenderClient.markRecommendationFailed(request); + console.log(response); + } + + callMarkRecommendationFailed(); + // [END recommender_v1beta1_generated_Recommender_MarkRecommendationFailed_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js new file mode 100644 index 000000000000..16dd143eef1e --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, etag) { + // [START recommender_v1beta1_generated_Recommender_MarkRecommendationSucceeded_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the recommendation. + */ + // const name = 'abc123' + /** + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + */ + // const stateMetadata = 1234 + /** + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + */ + // const etag = 'abc123' + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callMarkRecommendationSucceeded() { + // Construct request + const request = { + name, + etag, + }; + + // Run request + const response = await recommenderClient.markRecommendationSucceeded(request); + console.log(response); + } + + callMarkRecommendationSucceeded(); + // [END recommender_v1beta1_generated_Recommender_MarkRecommendationSucceeded_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_insight_type_config.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_insight_type_config.js new file mode 100644 index 000000000000..d5e4ee4bdb8b --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_insight_type_config.js @@ -0,0 +1,70 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(insightTypeConfig) { + // [START recommender_v1beta1_generated_Recommender_UpdateInsightTypeConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The InsightTypeConfig to update. + */ + // const insightTypeConfig = {} + /** + * The list of fields to be updated. + */ + // const updateMask = {} + /** + * If true, validate the request and preview the change, but do not actually + * update it. + */ + // const validateOnly = true + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callUpdateInsightTypeConfig() { + // Construct request + const request = { + insightTypeConfig, + }; + + // Run request + const response = await recommenderClient.updateInsightTypeConfig(request); + console.log(response); + } + + callUpdateInsightTypeConfig(); + // [END recommender_v1beta1_generated_Recommender_UpdateInsightTypeConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_recommender_config.js b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_recommender_config.js new file mode 100644 index 000000000000..a34d8e21c888 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/recommender.update_recommender_config.js @@ -0,0 +1,70 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(recommenderConfig) { + // [START recommender_v1beta1_generated_Recommender_UpdateRecommenderConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The RecommenderConfig to update. + */ + // const recommenderConfig = {} + /** + * The list of fields to be updated. + */ + // const updateMask = {} + /** + * If true, validate the request and preview the change, but do not actually + * update it. + */ + // const validateOnly = true + + // Imports the Recommender library + const {RecommenderClient} = require('@google-cloud/recommender').v1beta1; + + // Instantiates a client + const recommenderClient = new RecommenderClient(); + + async function callUpdateRecommenderConfig() { + // Construct request + const request = { + recommenderConfig, + }; + + // Run request + const response = await recommenderClient.updateRecommenderConfig(request); + console.log(response); + } + + callUpdateRecommenderConfig(); + // [END recommender_v1beta1_generated_Recommender_UpdateRecommenderConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/snippet_metadata.google.cloud.recommender.v1beta1.json b/packages/google-cloud-recommender/samples/generated/v1beta1/snippet_metadata.google.cloud.recommender.v1beta1.json new file mode 100644 index 000000000000..38d207677e66 --- /dev/null +++ b/packages/google-cloud-recommender/samples/generated/v1beta1/snippet_metadata.google.cloud.recommender.v1beta1.json @@ -0,0 +1,567 @@ +{ + "clientLibrary": { + "name": "nodejs-recommender", + "version": "5.0.4", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.recommender.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "recommender_v1beta1_generated_Recommender_ListInsights_async", + "title": "Recommender listInsights Sample", + "origin": "API_DEFINITION", + "description": " Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", + "canonical": true, + "file": "recommender.list_insights.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListInsights", + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListInsights", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.ListInsightsResponse", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "ListInsights", + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListInsights", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_GetInsight_async", + "title": "Recommender getInsight Sample", + "origin": "API_DEFINITION", + "description": " Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", + "canonical": true, + "file": "recommender.get_insight.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetInsight", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsight", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.Insight", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "GetInsight", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsight", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_MarkInsightAccepted_async", + "title": "Recommender markInsightAccepted Sample", + "origin": "API_DEFINITION", + "description": " Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", + "canonical": true, + "file": "recommender.mark_insight_accepted.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "MarkInsightAccepted", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkInsightAccepted", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "state_metadata", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.Insight", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "MarkInsightAccepted", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkInsightAccepted", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_ListRecommendations_async", + "title": "Recommender listRecommendations Sample", + "origin": "API_DEFINITION", + "description": " Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.list_recommendations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListRecommendations", + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListRecommendations", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.ListRecommendationsResponse", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "ListRecommendations", + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListRecommendations", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommendation_async", + "title": "Recommender getRecommendation Sample", + "origin": "API_DEFINITION", + "description": " Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.get_recommendation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetRecommendation", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommendation", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.Recommendation", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "GetRecommendation", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommendation", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationClaimed_async", + "title": "Recommender markRecommendationClaimed Sample", + "origin": "API_DEFINITION", + "description": " Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.mark_recommendation_claimed.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "MarkRecommendationClaimed", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimed", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "state_metadata", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.Recommendation", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "MarkRecommendationClaimed", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimed", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationSucceeded_async", + "title": "Recommender markRecommendationSucceeded Sample", + "origin": "API_DEFINITION", + "description": " Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.mark_recommendation_succeeded.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "MarkRecommendationSucceeded", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceeded", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "state_metadata", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.Recommendation", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "MarkRecommendationSucceeded", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceeded", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationFailed_async", + "title": "Recommender markRecommendationFailed Sample", + "origin": "API_DEFINITION", + "description": " Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", + "canonical": true, + "file": "recommender.mark_recommendation_failed.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "MarkRecommendationFailed", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailed", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "state_metadata", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.Recommendation", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "MarkRecommendationFailed", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailed", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommenderConfig_async", + "title": "Recommender getRecommenderConfig Sample", + "origin": "API_DEFINITION", + "description": " Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", + "canonical": true, + "file": "recommender.get_recommender_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetRecommenderConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.RecommenderConfig", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "GetRecommenderConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_UpdateRecommenderConfig_async", + "title": "Recommender updateRecommenderConfig Sample", + "origin": "API_DEFINITION", + "description": " Updates a Recommender Config. This will create a new revision of the config.", + "canonical": true, + "file": "recommender.update_recommender_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateRecommenderConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig", + "async": true, + "parameters": [ + { + "name": "recommender_config", + "type": ".google.cloud.recommender.v1beta1.RecommenderConfig" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "validate_only", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.RecommenderConfig", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "UpdateRecommenderConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_GetInsightTypeConfig_async", + "title": "Recommender getInsightTypeConfig Sample", + "origin": "API_DEFINITION", + "description": " Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", + "canonical": true, + "file": "recommender.get_insight_type_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetInsightTypeConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.InsightTypeConfig", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "GetInsightTypeConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_UpdateInsightTypeConfig_async", + "title": "Recommender updateInsightTypeConfig Sample", + "origin": "API_DEFINITION", + "description": " Updates an InsightTypeConfig change. This will create a new revision of the config.", + "canonical": true, + "file": "recommender.update_insight_type_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateInsightTypeConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig", + "async": true, + "parameters": [ + { + "name": "insight_type_config", + "type": ".google.cloud.recommender.v1beta1.InsightTypeConfig" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "validate_only", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.recommender.v1beta1.InsightTypeConfig", + "client": { + "shortName": "RecommenderClient", + "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" + }, + "method": { + "shortName": "UpdateInsightTypeConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + } + } + ] +} \ No newline at end of file diff --git a/packages/google-cloud-recommender/src/index.ts b/packages/google-cloud-recommender/src/index.ts index 3254740d6a7a..e5c0448a125a 100644 --- a/packages/google-cloud-recommender/src/index.ts +++ b/packages/google-cloud-recommender/src/index.ts @@ -17,11 +17,12 @@ // ** All changes to this file may be overwritten. ** import * as v1 from './v1'; +import * as v1beta1 from './v1beta1'; const RecommenderClient = v1.RecommenderClient; type RecommenderClient = v1.RecommenderClient; -export {v1, RecommenderClient}; -export default {v1, RecommenderClient}; +export {v1, v1beta1, RecommenderClient}; +export default {v1, v1beta1, RecommenderClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-cloud-recommender/src/v1/gapic_metadata.json b/packages/google-cloud-recommender/src/v1/gapic_metadata.json index 55b21d43d2c7..ac3dc26d8b60 100644 --- a/packages/google-cloud-recommender/src/v1/gapic_metadata.json +++ b/packages/google-cloud-recommender/src/v1/gapic_metadata.json @@ -40,6 +40,26 @@ "markRecommendationFailed" ] }, + "GetRecommenderConfig": { + "methods": [ + "getRecommenderConfig" + ] + }, + "UpdateRecommenderConfig": { + "methods": [ + "updateRecommenderConfig" + ] + }, + "GetInsightTypeConfig": { + "methods": [ + "getInsightTypeConfig" + ] + }, + "UpdateInsightTypeConfig": { + "methods": [ + "updateInsightTypeConfig" + ] + }, "ListInsights": { "methods": [ "listInsights", @@ -89,6 +109,26 @@ "markRecommendationFailed" ] }, + "GetRecommenderConfig": { + "methods": [ + "getRecommenderConfig" + ] + }, + "UpdateRecommenderConfig": { + "methods": [ + "updateRecommenderConfig" + ] + }, + "GetInsightTypeConfig": { + "methods": [ + "getInsightTypeConfig" + ] + }, + "UpdateInsightTypeConfig": { + "methods": [ + "updateInsightTypeConfig" + ] + }, "ListInsights": { "methods": [ "listInsights", diff --git a/packages/google-cloud-recommender/src/v1/index.ts b/packages/google-cloud-recommender/src/v1/index.ts index 368aaebbc898..fbe6584bdf27 100644 --- a/packages/google-cloud-recommender/src/v1/index.ts +++ b/packages/google-cloud-recommender/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recommender/src/v1/recommender_client.ts b/packages/google-cloud-recommender/src/v1/recommender_client.ts index 93f598d8e37a..8a0173b3a597 100644 --- a/packages/google-cloud-recommender/src/v1/recommender_client.ts +++ b/packages/google-cloud-recommender/src/v1/recommender_client.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -26,18 +26,15 @@ import { PaginationCallback, GaxCall, } from 'google-gax'; -import * as path from 'path'; - import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); /** * Client JSON configuration object, loaded from * `src/v1/recommender_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './recommender_client_config.json'; - const version = require('../../../package.json').version; /** @@ -51,6 +48,7 @@ const version = require('../../../package.json').version; export class RecommenderClient { private _terminated = false; private _opts: ClientOptions; + private _providedCustomServicePath: boolean; private _gaxModule: typeof gax | typeof gax.fallback; private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; @@ -62,6 +60,7 @@ export class RecommenderClient { longrunning: {}, batching: {}, }; + warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; pathTemplates: {[name: string]: gax.PathTemplate}; recommenderStub?: Promise<{[name: string]: Function}>; @@ -71,7 +70,7 @@ export class RecommenderClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -94,17 +93,29 @@ export class RecommenderClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. - */ - constructor(opts?: ClientOptions) { + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new RecommenderClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof RecommenderClient; const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; const fallback = @@ -112,13 +123,21 @@ export class RecommenderClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -129,6 +148,12 @@ export class RecommenderClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -143,27 +168,14 @@ export class RecommenderClient { } if (!opts.fallback) { clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); } if (opts.libName && opts.libVersion) { clientHeader.push(`${opts.libName}/${opts.libVersion}`); } // Load the applicable protos. - // For Node.js, pass the path to JSON proto file. - // For browsers, pass the JSON content. - - const nodejsProtoPath = path.join( - __dirname, - '..', - '..', - 'protos', - 'protos.json' - ); - this._protos = this._gaxGrpc.loadProto( - opts.fallback - ? // eslint-disable-next-line @typescript-eslint/no-var-requires - require('../../protos/protos.json') - : nodejsProtoPath - ); + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); // This API contains "path templates"; forward-slash-separated // identifiers to uniquely identify resources within the API. @@ -203,6 +215,10 @@ export class RecommenderClient { new this._gaxModule.PathTemplate( 'organizations/{organization}/locations/{location}/insightTypes/{insight_type}' ), + organizationLocationInsightTypeConfigPathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/locations/{location}/insightTypes/{insight_type}/config' + ), organizationLocationInsightTypeInsightPathTemplate: new this._gaxModule.PathTemplate( 'organizations/{organization}/locations/{location}/insightTypes/{insight_type}/insights/{insight}' @@ -211,6 +227,10 @@ export class RecommenderClient { new this._gaxModule.PathTemplate( 'organizations/{organization}/locations/{location}/recommenders/{recommender}' ), + organizationLocationRecommenderConfigPathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/locations/{location}/recommenders/{recommender}/config' + ), organizationLocationRecommenderRecommendationPathTemplate: new this._gaxModule.PathTemplate( 'organizations/{organization}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}' @@ -218,6 +238,10 @@ export class RecommenderClient { projectLocationInsightTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/insightTypes/{insight_type}' ), + projectLocationInsightTypeConfigPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/insightTypes/{insight_type}/config' + ), projectLocationInsightTypeInsightPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/insightTypes/{insight_type}/insights/{insight}' @@ -225,6 +249,10 @@ export class RecommenderClient { projectLocationRecommenderPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/recommenders/{recommender}' ), + projectLocationRecommenderConfigPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/recommenders/{recommender}/config' + ), projectLocationRecommenderRecommendationPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}' @@ -259,6 +287,9 @@ export class RecommenderClient { // of calling the API is handled in `google-gax`, with this code // merely providing the destination and request information. this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; } /** @@ -287,7 +318,8 @@ export class RecommenderClient { ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any (this._protos as any).google.cloud.recommender.v1.Recommender, - this._opts + this._opts, + this._providedCustomServicePath ) as Promise<{[method: string]: Function}>; // Iterate over each of the methods that the service provides @@ -301,6 +333,10 @@ export class RecommenderClient { 'markRecommendationClaimed', 'markRecommendationSucceeded', 'markRecommendationFailed', + 'getRecommenderConfig', + 'updateRecommenderConfig', + 'getInsightTypeConfig', + 'updateInsightTypeConfig', ]; for (const methodName of recommenderStubMethods) { const callPromise = this.recommenderStub.then( @@ -321,7 +357,8 @@ export class RecommenderClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -383,8 +420,26 @@ export class RecommenderClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Gets the requested insight. Requires the recommender.*.get IAM permission + * for the specified insight type. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the insight. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Insight]{@link google.cloud.recommender.v1.Insight}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/recommender.get_insight.js + * region_tag:recommender_v1_generated_Recommender_GetInsight_async + */ getInsight( - request: protos.google.cloud.recommender.v1.IGetInsightRequest, + request?: protos.google.cloud.recommender.v1.IGetInsightRequest, options?: CallOptions ): Promise< [ @@ -410,26 +465,8 @@ export class RecommenderClient { {} | null | undefined > ): void; - /** - * Gets the requested insight. Requires the recommender.*.get IAM permission - * for the specified insight type. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Name of the insight. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Insight]{@link google.cloud.recommender.v1.Insight}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getInsight(request); - */ getInsight( - request: protos.google.cloud.recommender.v1.IGetInsightRequest, + request?: protos.google.cloud.recommender.v1.IGetInsightRequest, optionsOrCallback?: | CallOptions | Callback< @@ -463,14 +500,41 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getInsight(request, options, callback); } + /** + * Marks the Insight State as Accepted. Users can use this method to + * indicate to the Recommender API that they have applied some action based + * on the insight. This stops the insight content from being updated. + * + * MarkInsightAccepted can be applied to insights in ACTIVE state. Requires + * the recommender.*.update IAM permission for the specified insight. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the insight. + * @param {number[]} [request.stateMetadata] + * Optional. State properties user wish to include with this state. Full + * replace of the current state_metadata. + * @param {string} request.etag + * Required. Fingerprint of the Insight. Provides optimistic locking. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Insight]{@link google.cloud.recommender.v1.Insight}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/recommender.mark_insight_accepted.js + * region_tag:recommender_v1_generated_Recommender_MarkInsightAccepted_async + */ markInsightAccepted( - request: protos.google.cloud.recommender.v1.IMarkInsightAcceptedRequest, + request?: protos.google.cloud.recommender.v1.IMarkInsightAcceptedRequest, options?: CallOptions ): Promise< [ @@ -503,35 +567,8 @@ export class RecommenderClient { {} | null | undefined > ): void; - /** - * Marks the Insight State as Accepted. Users can use this method to - * indicate to the Recommender API that they have applied some action based - * on the insight. This stops the insight content from being updated. - * - * MarkInsightAccepted can be applied to insights in ACTIVE state. Requires - * the recommender.*.update IAM permission for the specified insight. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Name of the insight. - * @param {number[]} [request.stateMetadata] - * Optional. State properties user wish to include with this state. Full replace of the - * current state_metadata. - * @param {string} request.etag - * Required. Fingerprint of the Insight. Provides optimistic locking. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Insight]{@link google.cloud.recommender.v1.Insight}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.markInsightAccepted(request); - */ markInsightAccepted( - request: protos.google.cloud.recommender.v1.IMarkInsightAcceptedRequest, + request?: protos.google.cloud.recommender.v1.IMarkInsightAcceptedRequest, optionsOrCallback?: | CallOptions | Callback< @@ -570,14 +607,32 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.markInsightAccepted(request, options, callback); } + /** + * Gets the requested recommendation. Requires the recommender.*.get + * IAM permission for the specified recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the recommendation. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1.Recommendation}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/recommender.get_recommendation.js + * region_tag:recommender_v1_generated_Recommender_GetRecommendation_async + */ getRecommendation( - request: protos.google.cloud.recommender.v1.IGetRecommendationRequest, + request?: protos.google.cloud.recommender.v1.IGetRecommendationRequest, options?: CallOptions ): Promise< [ @@ -607,26 +662,8 @@ export class RecommenderClient { {} | null | undefined > ): void; - /** - * Gets the requested recommendation. Requires the recommender.*.get - * IAM permission for the specified recommender. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Name of the recommendation. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1.Recommendation}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getRecommendation(request); - */ getRecommendation( - request: protos.google.cloud.recommender.v1.IGetRecommendationRequest, + request?: protos.google.cloud.recommender.v1.IGetRecommendationRequest, optionsOrCallback?: | CallOptions | Callback< @@ -662,14 +699,47 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.getRecommendation(request, options, callback); } + /** + * Marks the Recommendation State as Claimed. Users can use this method to + * indicate to the Recommender API that they are starting to apply the + * recommendation themselves. This stops the recommendation content from being + * updated. Associated insights are frozen and placed in the ACCEPTED state. + * + * MarkRecommendationClaimed can be applied to recommendations in CLAIMED, + * SUCCEEDED, FAILED, or ACTIVE state. + * + * Requires the recommender.*.update IAM permission for the specified + * recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the recommendation. + * @param {number[]} request.stateMetadata + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^{@link a-z0-9_.-|a-z0-9}{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + * @param {string} request.etag + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1.Recommendation}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/recommender.mark_recommendation_claimed.js + * region_tag:recommender_v1_generated_Recommender_MarkRecommendationClaimed_async + */ markRecommendationClaimed( - request: protos.google.cloud.recommender.v1.IMarkRecommendationClaimedRequest, + request?: protos.google.cloud.recommender.v1.IMarkRecommendationClaimedRequest, options?: CallOptions ): Promise< [ @@ -702,41 +772,8 @@ export class RecommenderClient { {} | null | undefined > ): void; - /** - * Marks the Recommendation State as Claimed. Users can use this method to - * indicate to the Recommender API that they are starting to apply the - * recommendation themselves. This stops the recommendation content from being - * updated. Associated insights are frozen and placed in the ACCEPTED state. - * - * MarkRecommendationClaimed can be applied to recommendations in CLAIMED, - * SUCCEEDED, FAILED, or ACTIVE state. - * - * Requires the recommender.*.update IAM permission for the specified - * recommender. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Name of the recommendation. - * @param {number[]} request.stateMetadata - * State properties to include with this state. Overwrites any existing - * `state_metadata`. - * Keys must match the regex /^{@link a-z0-9_.-|a-z0-9}{0,62}$/. - * Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/. - * @param {string} request.etag - * Required. Fingerprint of the Recommendation. Provides optimistic locking. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1.Recommendation}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.markRecommendationClaimed(request); - */ markRecommendationClaimed( - request: protos.google.cloud.recommender.v1.IMarkRecommendationClaimedRequest, + request?: protos.google.cloud.recommender.v1.IMarkRecommendationClaimedRequest, optionsOrCallback?: | CallOptions | Callback< @@ -775,8 +812,8 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.markRecommendationClaimed( @@ -785,40 +822,6 @@ export class RecommenderClient { callback ); } - markRecommendationSucceeded( - request: protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.recommender.v1.IRecommendation, - ( - | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest - | undefined - ), - {} | undefined - ] - >; - markRecommendationSucceeded( - request: protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, - options: CallOptions, - callback: Callback< - protos.google.cloud.recommender.v1.IRecommendation, - | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest - | null - | undefined, - {} | null | undefined - > - ): void; - markRecommendationSucceeded( - request: protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, - callback: Callback< - protos.google.cloud.recommender.v1.IRecommendation, - | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** * Marks the Recommendation State as Succeeded. Users can use this method to * indicate to the Recommender API that they have applied the recommendation @@ -839,8 +842,8 @@ export class RecommenderClient { * @param {number[]} request.stateMetadata * State properties to include with this state. Overwrites any existing * `state_metadata`. - * Keys must match the regex /^{@link a-z0-9_.-|a-z0-9}{0,62}$/. - * Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/. + * Keys must match the regex `/^{@link a-z0-9_.-|a-z0-9}{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. * @param {string} request.etag * Required. Fingerprint of the Recommendation. Provides optimistic locking. * @param {object} [options] @@ -850,27 +853,12 @@ export class RecommenderClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.markRecommendationSucceeded(request); + * @example include:samples/generated/v1/recommender.mark_recommendation_succeeded.js + * region_tag:recommender_v1_generated_Recommender_MarkRecommendationSucceeded_async */ markRecommendationSucceeded( - request: protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.cloud.recommender.v1.IRecommendation, - | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest - | null - | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.cloud.recommender.v1.IRecommendation, - | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest - | null - | undefined, - {} | null | undefined - > + request?: protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, + options?: CallOptions ): Promise< [ protos.google.cloud.recommender.v1.IRecommendation, @@ -880,21 +868,70 @@ export class RecommenderClient { ), {} | undefined ] - > | void { - request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { + >; + markRecommendationSucceeded( + request: protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1.IRecommendation, + | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markRecommendationSucceeded( + request: protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, + callback: Callback< + protos.google.cloud.recommender.v1.IRecommendation, + | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markRecommendationSucceeded( + request?: protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1.IRecommendation, + | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1.IRecommendation, + | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1.IRecommendation, + ( + | protos.google.cloud.recommender.v1.IMarkRecommendationSucceededRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.markRecommendationSucceeded( @@ -903,97 +940,523 @@ export class RecommenderClient { callback ); } + /** + * Marks the Recommendation State as Failed. Users can use this method to + * indicate to the Recommender API that they have applied the recommendation + * themselves, and the operation failed. This stops the recommendation content + * from being updated. Associated insights are frozen and placed in the + * ACCEPTED state. + * + * MarkRecommendationFailed can be applied to recommendations in ACTIVE, + * CLAIMED, SUCCEEDED, or FAILED state. + * + * Requires the recommender.*.update IAM permission for the specified + * recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the recommendation. + * @param {number[]} request.stateMetadata + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^{@link a-z0-9_.-|a-z0-9}{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + * @param {string} request.etag + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1.Recommendation}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/recommender.mark_recommendation_failed.js + * region_tag:recommender_v1_generated_Recommender_MarkRecommendationFailed_async + */ + markRecommendationFailed( + request?: protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1.IRecommendation, + ( + | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + | undefined + ), + {} | undefined + ] + >; + markRecommendationFailed( + request: protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1.IRecommendation, + | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + | null + | undefined, + {} | null | undefined + > + ): void; markRecommendationFailed( request: protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest, + callback: Callback< + protos.google.cloud.recommender.v1.IRecommendation, + | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markRecommendationFailed( + request?: protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1.IRecommendation, + | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1.IRecommendation, + | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1.IRecommendation, + ( + | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.markRecommendationFailed( + request, + options, + callback + ); + } + /** + * Gets the requested Recommender Config. There is only one instance of the + * config for each Recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the Recommendation Config to get. + * + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [RecommenderConfig]{@link google.cloud.recommender.v1.RecommenderConfig}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/recommender.get_recommender_config.js + * region_tag:recommender_v1_generated_Recommender_GetRecommenderConfig_async + */ + getRecommenderConfig( + request?: protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1.IRecommenderConfig, + ( + | protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest + | undefined + ), + {} | undefined + ] + >; + getRecommenderConfig( + request: protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1.IRecommenderConfig, + | protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getRecommenderConfig( + request: protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest, + callback: Callback< + protos.google.cloud.recommender.v1.IRecommenderConfig, + | protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getRecommenderConfig( + request?: protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1.IRecommenderConfig, + | protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1.IRecommenderConfig, + | protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1.IRecommenderConfig, + ( + | protos.google.cloud.recommender.v1.IGetRecommenderConfigRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getRecommenderConfig(request, options, callback); + } + /** + * Updates a Recommender Config. This will create a new revision of the + * config. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.recommender.v1.RecommenderConfig} request.recommenderConfig + * Required. The RecommenderConfig to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. + * @param {boolean} request.validateOnly + * If true, validate the request and preview the change, but do not actually + * update it. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [RecommenderConfig]{@link google.cloud.recommender.v1.RecommenderConfig}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/recommender.update_recommender_config.js + * region_tag:recommender_v1_generated_Recommender_UpdateRecommenderConfig_async + */ + updateRecommenderConfig( + request?: protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1.IRecommenderConfig, + ( + | protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest + | undefined + ), + {} | undefined + ] + >; + updateRecommenderConfig( + request: protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1.IRecommenderConfig, + | protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateRecommenderConfig( + request: protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest, + callback: Callback< + protos.google.cloud.recommender.v1.IRecommenderConfig, + | protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateRecommenderConfig( + request?: protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1.IRecommenderConfig, + | protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1.IRecommenderConfig, + | protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1.IRecommenderConfig, + ( + | protos.google.cloud.recommender.v1.IUpdateRecommenderConfigRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'recommender_config.name': request.recommenderConfig!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateRecommenderConfig( + request, + options, + callback + ); + } + /** + * Gets the requested InsightTypeConfig. There is only one instance of the + * config for each InsightType. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the InsightTypeConfig to get. + * + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * + * * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * + * * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [InsightTypeConfig]{@link google.cloud.recommender.v1.InsightTypeConfig}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/recommender.get_insight_type_config.js + * region_tag:recommender_v1_generated_Recommender_GetInsightTypeConfig_async + */ + getInsightTypeConfig( + request?: protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.recommender.v1.IRecommendation, + protos.google.cloud.recommender.v1.IInsightTypeConfig, ( - | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + | protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest | undefined ), {} | undefined ] >; - markRecommendationFailed( - request: protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest, + getInsightTypeConfig( + request: protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest, options: CallOptions, callback: Callback< - protos.google.cloud.recommender.v1.IRecommendation, - | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + protos.google.cloud.recommender.v1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest | null | undefined, {} | null | undefined > ): void; - markRecommendationFailed( - request: protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest, + getInsightTypeConfig( + request: protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest, callback: Callback< - protos.google.cloud.recommender.v1.IRecommendation, - | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + protos.google.cloud.recommender.v1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest | null | undefined, {} | null | undefined > ): void; + getInsightTypeConfig( + request?: protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1.IInsightTypeConfig, + ( + | protos.google.cloud.recommender.v1.IGetInsightTypeConfigRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getInsightTypeConfig(request, options, callback); + } /** - * Marks the Recommendation State as Failed. Users can use this method to - * indicate to the Recommender API that they have applied the recommendation - * themselves, and the operation failed. This stops the recommendation content - * from being updated. Associated insights are frozen and placed in the - * ACCEPTED state. - * - * MarkRecommendationFailed can be applied to recommendations in ACTIVE, - * CLAIMED, SUCCEEDED, or FAILED state. - * - * Requires the recommender.*.update IAM permission for the specified - * recommender. + * Updates an InsightTypeConfig change. This will create a new revision of the + * config. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. Name of the recommendation. - * @param {number[]} request.stateMetadata - * State properties to include with this state. Overwrites any existing - * `state_metadata`. - * Keys must match the regex /^{@link a-z0-9_.-|a-z0-9}{0,62}$/. - * Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/. - * @param {string} request.etag - * Required. Fingerprint of the Recommendation. Provides optimistic locking. + * @param {google.cloud.recommender.v1.InsightTypeConfig} request.insightTypeConfig + * Required. The InsightTypeConfig to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. + * @param {boolean} request.validateOnly + * If true, validate the request and preview the change, but do not actually + * update it. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1.Recommendation}. + * The first element of the array is an object representing [InsightTypeConfig]{@link google.cloud.recommender.v1.InsightTypeConfig}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.markRecommendationFailed(request); + * @example include:samples/generated/v1/recommender.update_insight_type_config.js + * region_tag:recommender_v1_generated_Recommender_UpdateInsightTypeConfig_async */ - markRecommendationFailed( - request: protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest, + updateInsightTypeConfig( + request?: protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1.IInsightTypeConfig, + ( + | protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest + | undefined + ), + {} | undefined + ] + >; + updateInsightTypeConfig( + request: protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateInsightTypeConfig( + request: protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest, + callback: Callback< + protos.google.cloud.recommender.v1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateInsightTypeConfig( + request?: protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.recommender.v1.IRecommendation, - | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + protos.google.cloud.recommender.v1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.recommender.v1.IRecommendation, - | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + protos.google.cloud.recommender.v1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.recommender.v1.IRecommendation, + protos.google.cloud.recommender.v1.IInsightTypeConfig, ( - | protos.google.cloud.recommender.v1.IMarkRecommendationFailedRequest + | protos.google.cloud.recommender.v1.IUpdateInsightTypeConfigRequest | undefined ), {} | undefined @@ -1011,51 +1474,20 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - name: request.name || '', + this._gaxModule.routingHeader.fromParams({ + 'insight_type_config.name': request.insightTypeConfig!.name ?? '', }); this.initialize(); - return this.innerApiCalls.markRecommendationFailed( + return this.innerApiCalls.updateInsightTypeConfig( request, options, callback ); } - listInsights( - request: protos.google.cloud.recommender.v1.IListInsightsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.recommender.v1.IInsight[], - protos.google.cloud.recommender.v1.IListInsightsRequest | null, - protos.google.cloud.recommender.v1.IListInsightsResponse - ] - >; - listInsights( - request: protos.google.cloud.recommender.v1.IListInsightsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.cloud.recommender.v1.IListInsightsRequest, - | protos.google.cloud.recommender.v1.IListInsightsResponse - | null - | undefined, - protos.google.cloud.recommender.v1.IInsight - > - ): void; - listInsights( - request: protos.google.cloud.recommender.v1.IListInsightsRequest, - callback: PaginationCallback< - protos.google.cloud.recommender.v1.IListInsightsRequest, - | protos.google.cloud.recommender.v1.IListInsightsResponse - | null - | undefined, - protos.google.cloud.recommender.v1.IInsight - > - ): void; /** - * Lists insights for a Cloud project. Requires the recommender.*.list IAM - * permission for the specified insight type. + * Lists insights for the specified Cloud Resource. Requires the + * recommender.*.list IAM permission for the specified insight type. * * @param {Object} request * The request object that will be sent. @@ -1063,26 +1495,51 @@ export class RecommenderClient { * Required. The container resource on which to execute the request. * Acceptable formats: * - * 1. - * "projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]", + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * * LOCATION here refers to GCP Locations: * https://cloud.google.com/about/locations/ * INSIGHT_TYPE_ID refers to supported insight types: - * https://cloud.google.com/recommender/docs/insights/insight-types.) + * https://cloud.google.com/recommender/docs/insights/insight-types. * @param {number} [request.pageSize] - * Optional. The maximum number of results to return from this request. Non-positive - * values are ignored. If not specified, the server will determine the number - * of results to return. + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. If not specified, the server will + * determine the number of results to return. * @param {string} [request.pageToken] - * Optional. If present, retrieves the next batch of results from the preceding call to - * this method. `page_token` must be the value of `next_page_token` from the - * previous response. The values of other method parameters must be identical - * to those in the previous call. + * Optional. If present, retrieves the next batch of results from the + * preceding call to this method. `page_token` must be the value of + * `next_page_token` from the previous response. The values of other method + * parameters must be identical to those in the previous call. * @param {string} [request.filter] * Optional. Filter expression to restrict the insights returned. Supported - * filter fields: state - * Eg: `state:"DISMISSED" or state:"ACTIVE" + * filter fields: + * + * * `stateInfo.state` + * + * * `insightSubtype` + * + * * `severity` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `insightSubtype = PERMISSIONS_USAGE` + * + * * `severity = CRITICAL OR severity = HIGH` + * + * * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1096,8 +1553,39 @@ export class RecommenderClient { * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ + listInsights( + request?: protos.google.cloud.recommender.v1.IListInsightsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1.IInsight[], + protos.google.cloud.recommender.v1.IListInsightsRequest | null, + protos.google.cloud.recommender.v1.IListInsightsResponse + ] + >; + listInsights( + request: protos.google.cloud.recommender.v1.IListInsightsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.recommender.v1.IListInsightsRequest, + | protos.google.cloud.recommender.v1.IListInsightsResponse + | null + | undefined, + protos.google.cloud.recommender.v1.IInsight + > + ): void; listInsights( request: protos.google.cloud.recommender.v1.IListInsightsRequest, + callback: PaginationCallback< + protos.google.cloud.recommender.v1.IListInsightsRequest, + | protos.google.cloud.recommender.v1.IListInsightsResponse + | null + | undefined, + protos.google.cloud.recommender.v1.IInsight + > + ): void; + listInsights( + request?: protos.google.cloud.recommender.v1.IListInsightsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -1133,8 +1621,8 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listInsights(request, options, callback); @@ -1148,26 +1636,51 @@ export class RecommenderClient { * Required. The container resource on which to execute the request. * Acceptable formats: * - * 1. - * "projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]", + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * * LOCATION here refers to GCP Locations: * https://cloud.google.com/about/locations/ * INSIGHT_TYPE_ID refers to supported insight types: - * https://cloud.google.com/recommender/docs/insights/insight-types.) + * https://cloud.google.com/recommender/docs/insights/insight-types. * @param {number} [request.pageSize] - * Optional. The maximum number of results to return from this request. Non-positive - * values are ignored. If not specified, the server will determine the number - * of results to return. + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. If not specified, the server will + * determine the number of results to return. * @param {string} [request.pageToken] - * Optional. If present, retrieves the next batch of results from the preceding call to - * this method. `page_token` must be the value of `next_page_token` from the - * previous response. The values of other method parameters must be identical - * to those in the previous call. + * Optional. If present, retrieves the next batch of results from the + * preceding call to this method. `page_token` must be the value of + * `next_page_token` from the previous response. The values of other method + * parameters must be identical to those in the previous call. * @param {string} [request.filter] * Optional. Filter expression to restrict the insights returned. Supported - * filter fields: state - * Eg: `state:"DISMISSED" or state:"ACTIVE" + * filter fields: + * + * * `stateInfo.state` + * + * * `insightSubtype` + * + * * `severity` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `insightSubtype = PERMISSIONS_USAGE` + * + * * `severity = CRITICAL OR severity = HIGH` + * + * * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1189,13 +1702,14 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listInsights']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listInsights.createStream( - this.innerApiCalls.listInsights as gax.GaxCall, + this.innerApiCalls.listInsights as GaxCall, request, callSettings ); @@ -1211,26 +1725,51 @@ export class RecommenderClient { * Required. The container resource on which to execute the request. * Acceptable formats: * - * 1. - * "projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]", + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * * LOCATION here refers to GCP Locations: * https://cloud.google.com/about/locations/ * INSIGHT_TYPE_ID refers to supported insight types: - * https://cloud.google.com/recommender/docs/insights/insight-types.) + * https://cloud.google.com/recommender/docs/insights/insight-types. * @param {number} [request.pageSize] - * Optional. The maximum number of results to return from this request. Non-positive - * values are ignored. If not specified, the server will determine the number - * of results to return. + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. If not specified, the server will + * determine the number of results to return. * @param {string} [request.pageToken] - * Optional. If present, retrieves the next batch of results from the preceding call to - * this method. `page_token` must be the value of `next_page_token` from the - * previous response. The values of other method parameters must be identical - * to those in the previous call. + * Optional. If present, retrieves the next batch of results from the + * preceding call to this method. `page_token` must be the value of + * `next_page_token` from the previous response. The values of other method + * parameters must be identical to those in the previous call. * @param {string} [request.filter] * Optional. Filter expression to restrict the insights returned. Supported - * filter fields: state - * Eg: `state:"DISMISSED" or state:"ACTIVE" + * filter fields: + * + * * `stateInfo.state` + * + * * `insightSubtype` + * + * * `severity` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `insightSubtype = PERMISSIONS_USAGE` + * + * * `severity = CRITICAL OR severity = HIGH` + * + * * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1241,35 +1780,100 @@ export class RecommenderClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listInsightsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1/recommender.list_insights.js + * region_tag:recommender_v1_generated_Recommender_ListInsights_async + */ + listInsightsAsync( + request?: protos.google.cloud.recommender.v1.IListInsightsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listInsights']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listInsights.asyncIterate( + this.innerApiCalls['listInsights'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists recommendations for the specified Cloud Resource. Requires the + * recommender.*.list IAM permission for the specified recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The container resource on which to execute the request. + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * RECOMMENDER_ID refers to supported recommenders: + * https://cloud.google.com/recommender/docs/recommenders. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. If not specified, the server will + * determine the number of results to return. + * @param {string} [request.pageToken] + * Optional. If present, retrieves the next batch of results from the + * preceding call to this method. `page_token` must be the value of + * `next_page_token` from the previous response. The values of other method + * parameters must be identical to those in the previous call. + * @param {string} request.filter + * Filter expression to restrict the recommendations returned. Supported + * filter fields: + * + * * `state_info.state` + * + * * `recommenderSubtype` + * + * * `priority` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + * + * * `priority = P1 OR priority = P2` + * + * * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Recommendation]{@link google.cloud.recommender.v1.Recommendation}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listRecommendationsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ - listInsightsAsync( - request?: protos.google.cloud.recommender.v1.IListInsightsRequest, - options?: CallOptions - ): AsyncIterable { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - options = options || {}; - const callSettings = new gax.CallSettings(options); - this.initialize(); - return this.descriptors.page.listInsights.asyncIterate( - this.innerApiCalls['listInsights'] as GaxCall, - request as unknown as RequestType, - callSettings - ) as AsyncIterable; - } listRecommendations( - request: protos.google.cloud.recommender.v1.IListRecommendationsRequest, + request?: protos.google.cloud.recommender.v1.IListRecommendationsRequest, options?: CallOptions ): Promise< [ @@ -1299,51 +1903,8 @@ export class RecommenderClient { protos.google.cloud.recommender.v1.IRecommendation > ): void; - /** - * Lists recommendations for a Cloud project. Requires the recommender.*.list - * IAM permission for the specified recommender. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The container resource on which to execute the request. - * Acceptable formats: - * - * 1. - * "projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]", - * - * LOCATION here refers to GCP Locations: - * https://cloud.google.com/about/locations/ - * RECOMMENDER_ID refers to supported recommenders: - * https://cloud.google.com/recommender/docs/recommenders. - * @param {number} [request.pageSize] - * Optional. The maximum number of results to return from this request. Non-positive - * values are ignored. If not specified, the server will determine the number - * of results to return. - * @param {string} [request.pageToken] - * Optional. If present, retrieves the next batch of results from the preceding call to - * this method. `page_token` must be the value of `next_page_token` from the - * previous response. The values of other method parameters must be identical - * to those in the previous call. - * @param {string} request.filter - * Filter expression to restrict the recommendations returned. Supported - * filter fields: state_info.state - * Eg: `state_info.state:"DISMISSED" or state_info.state:"FAILED" - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Recommendation]{@link google.cloud.recommender.v1.Recommendation}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listRecommendationsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ listRecommendations( - request: protos.google.cloud.recommender.v1.IListRecommendationsRequest, + request?: protos.google.cloud.recommender.v1.IListRecommendationsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< @@ -1379,8 +1940,8 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listRecommendations(request, options, callback); @@ -1394,26 +1955,51 @@ export class RecommenderClient { * Required. The container resource on which to execute the request. * Acceptable formats: * - * 1. - * "projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]", + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * * LOCATION here refers to GCP Locations: * https://cloud.google.com/about/locations/ * RECOMMENDER_ID refers to supported recommenders: * https://cloud.google.com/recommender/docs/recommenders. * @param {number} [request.pageSize] - * Optional. The maximum number of results to return from this request. Non-positive - * values are ignored. If not specified, the server will determine the number - * of results to return. + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. If not specified, the server will + * determine the number of results to return. * @param {string} [request.pageToken] - * Optional. If present, retrieves the next batch of results from the preceding call to - * this method. `page_token` must be the value of `next_page_token` from the - * previous response. The values of other method parameters must be identical - * to those in the previous call. + * Optional. If present, retrieves the next batch of results from the + * preceding call to this method. `page_token` must be the value of + * `next_page_token` from the previous response. The values of other method + * parameters must be identical to those in the previous call. * @param {string} request.filter * Filter expression to restrict the recommendations returned. Supported - * filter fields: state_info.state - * Eg: `state_info.state:"DISMISSED" or state_info.state:"FAILED" + * filter fields: + * + * * `state_info.state` + * + * * `recommenderSubtype` + * + * * `priority` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + * + * * `priority = P1 OR priority = P2` + * + * * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -1435,13 +2021,14 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listRecommendations']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listRecommendations.createStream( - this.innerApiCalls.listRecommendations as gax.GaxCall, + this.innerApiCalls.listRecommendations as GaxCall, request, callSettings ); @@ -1457,26 +2044,51 @@ export class RecommenderClient { * Required. The container resource on which to execute the request. * Acceptable formats: * - * 1. - * "projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]", + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * * LOCATION here refers to GCP Locations: * https://cloud.google.com/about/locations/ * RECOMMENDER_ID refers to supported recommenders: * https://cloud.google.com/recommender/docs/recommenders. * @param {number} [request.pageSize] - * Optional. The maximum number of results to return from this request. Non-positive - * values are ignored. If not specified, the server will determine the number - * of results to return. + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. If not specified, the server will + * determine the number of results to return. * @param {string} [request.pageToken] - * Optional. If present, retrieves the next batch of results from the preceding call to - * this method. `page_token` must be the value of `next_page_token` from the - * previous response. The values of other method parameters must be identical - * to those in the previous call. + * Optional. If present, retrieves the next batch of results from the + * preceding call to this method. `page_token` must be the value of + * `next_page_token` from the previous response. The values of other method + * parameters must be identical to those in the previous call. * @param {string} request.filter * Filter expression to restrict the recommendations returned. Supported - * filter fields: state_info.state - * Eg: `state_info.state:"DISMISSED" or state_info.state:"FAILED" + * filter fields: + * + * * `state_info.state` + * + * * `recommenderSubtype` + * + * * `priority` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + * + * * `priority = P1 OR priority = P2` + * + * * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1487,11 +2099,8 @@ export class RecommenderClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listRecommendationsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1/recommender.list_recommendations.js + * region_tag:recommender_v1_generated_Recommender_ListRecommendations_async */ listRecommendationsAsync( request?: protos.google.cloud.recommender.v1.IListRecommendationsRequest, @@ -1502,15 +2111,15 @@ export class RecommenderClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', }); - options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listRecommendations']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listRecommendations.asyncIterate( this.innerApiCalls['listRecommendations'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2189,6 +2798,73 @@ export class RecommenderClient { ).insight_type; } + /** + * Return a fully-qualified organizationLocationInsightTypeConfig resource name string. + * + * @param {string} organization + * @param {string} location + * @param {string} insight_type + * @returns {string} Resource name string. + */ + organizationLocationInsightTypeConfigPath( + organization: string, + location: string, + insightType: string + ) { + return this.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.render( + { + organization: organization, + location: location, + insight_type: insightType, + } + ); + } + + /** + * Parse the organization from OrganizationLocationInsightTypeConfig resource. + * + * @param {string} organizationLocationInsightTypeConfigName + * A fully-qualified path representing organization_location_insight_type_config resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationLocationInsightTypeConfigName( + organizationLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.match( + organizationLocationInsightTypeConfigName + ).organization; + } + + /** + * Parse the location from OrganizationLocationInsightTypeConfig resource. + * + * @param {string} organizationLocationInsightTypeConfigName + * A fully-qualified path representing organization_location_insight_type_config resource. + * @returns {string} A string representing the location. + */ + matchLocationFromOrganizationLocationInsightTypeConfigName( + organizationLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.match( + organizationLocationInsightTypeConfigName + ).location; + } + + /** + * Parse the insight_type from OrganizationLocationInsightTypeConfig resource. + * + * @param {string} organizationLocationInsightTypeConfigName + * A fully-qualified path representing organization_location_insight_type_config resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromOrganizationLocationInsightTypeConfigName( + organizationLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.match( + organizationLocationInsightTypeConfigName + ).insight_type; + } + /** * Return a fully-qualified organizationLocationInsightTypeInsight resource name string. * @@ -2341,6 +3017,73 @@ export class RecommenderClient { ).recommender; } + /** + * Return a fully-qualified organizationLocationRecommenderConfig resource name string. + * + * @param {string} organization + * @param {string} location + * @param {string} recommender + * @returns {string} Resource name string. + */ + organizationLocationRecommenderConfigPath( + organization: string, + location: string, + recommender: string + ) { + return this.pathTemplates.organizationLocationRecommenderConfigPathTemplate.render( + { + organization: organization, + location: location, + recommender: recommender, + } + ); + } + + /** + * Parse the organization from OrganizationLocationRecommenderConfig resource. + * + * @param {string} organizationLocationRecommenderConfigName + * A fully-qualified path representing organization_location_recommender_config resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationLocationRecommenderConfigName( + organizationLocationRecommenderConfigName: string + ) { + return this.pathTemplates.organizationLocationRecommenderConfigPathTemplate.match( + organizationLocationRecommenderConfigName + ).organization; + } + + /** + * Parse the location from OrganizationLocationRecommenderConfig resource. + * + * @param {string} organizationLocationRecommenderConfigName + * A fully-qualified path representing organization_location_recommender_config resource. + * @returns {string} A string representing the location. + */ + matchLocationFromOrganizationLocationRecommenderConfigName( + organizationLocationRecommenderConfigName: string + ) { + return this.pathTemplates.organizationLocationRecommenderConfigPathTemplate.match( + organizationLocationRecommenderConfigName + ).location; + } + + /** + * Parse the recommender from OrganizationLocationRecommenderConfig resource. + * + * @param {string} organizationLocationRecommenderConfigName + * A fully-qualified path representing organization_location_recommender_config resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromOrganizationLocationRecommenderConfigName( + organizationLocationRecommenderConfigName: string + ) { + return this.pathTemplates.organizationLocationRecommenderConfigPathTemplate.match( + organizationLocationRecommenderConfigName + ).recommender; + } + /** * Return a fully-qualified organizationLocationRecommenderRecommendation resource name string. * @@ -2491,6 +3234,73 @@ export class RecommenderClient { ).insight_type; } + /** + * Return a fully-qualified projectLocationInsightTypeConfig resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} insight_type + * @returns {string} Resource name string. + */ + projectLocationInsightTypeConfigPath( + project: string, + location: string, + insightType: string + ) { + return this.pathTemplates.projectLocationInsightTypeConfigPathTemplate.render( + { + project: project, + location: location, + insight_type: insightType, + } + ); + } + + /** + * Parse the project from ProjectLocationInsightTypeConfig resource. + * + * @param {string} projectLocationInsightTypeConfigName + * A fully-qualified path representing project_location_insight_type_config resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationInsightTypeConfigName( + projectLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.projectLocationInsightTypeConfigPathTemplate.match( + projectLocationInsightTypeConfigName + ).project; + } + + /** + * Parse the location from ProjectLocationInsightTypeConfig resource. + * + * @param {string} projectLocationInsightTypeConfigName + * A fully-qualified path representing project_location_insight_type_config resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationInsightTypeConfigName( + projectLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.projectLocationInsightTypeConfigPathTemplate.match( + projectLocationInsightTypeConfigName + ).location; + } + + /** + * Parse the insight_type from ProjectLocationInsightTypeConfig resource. + * + * @param {string} projectLocationInsightTypeConfigName + * A fully-qualified path representing project_location_insight_type_config resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromProjectLocationInsightTypeConfigName( + projectLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.projectLocationInsightTypeConfigPathTemplate.match( + projectLocationInsightTypeConfigName + ).insight_type; + } + /** * Return a fully-qualified projectLocationInsightTypeInsight resource name string. * @@ -2641,6 +3451,73 @@ export class RecommenderClient { ).recommender; } + /** + * Return a fully-qualified projectLocationRecommenderConfig resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} recommender + * @returns {string} Resource name string. + */ + projectLocationRecommenderConfigPath( + project: string, + location: string, + recommender: string + ) { + return this.pathTemplates.projectLocationRecommenderConfigPathTemplate.render( + { + project: project, + location: location, + recommender: recommender, + } + ); + } + + /** + * Parse the project from ProjectLocationRecommenderConfig resource. + * + * @param {string} projectLocationRecommenderConfigName + * A fully-qualified path representing project_location_recommender_config resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationRecommenderConfigName( + projectLocationRecommenderConfigName: string + ) { + return this.pathTemplates.projectLocationRecommenderConfigPathTemplate.match( + projectLocationRecommenderConfigName + ).project; + } + + /** + * Parse the location from ProjectLocationRecommenderConfig resource. + * + * @param {string} projectLocationRecommenderConfigName + * A fully-qualified path representing project_location_recommender_config resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationRecommenderConfigName( + projectLocationRecommenderConfigName: string + ) { + return this.pathTemplates.projectLocationRecommenderConfigPathTemplate.match( + projectLocationRecommenderConfigName + ).location; + } + + /** + * Parse the recommender from ProjectLocationRecommenderConfig resource. + * + * @param {string} projectLocationRecommenderConfigName + * A fully-qualified path representing project_location_recommender_config resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromProjectLocationRecommenderConfigName( + projectLocationRecommenderConfigName: string + ) { + return this.pathTemplates.projectLocationRecommenderConfigPathTemplate.match( + projectLocationRecommenderConfigName + ).recommender; + } + /** * Return a fully-qualified projectLocationRecommenderRecommendation resource name string. * @@ -2733,9 +3610,8 @@ export class RecommenderClient { * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { - this.initialize(); - if (!this._terminated) { - return this.recommenderStub!.then(stub => { + if (this.recommenderStub && !this._terminated) { + return this.recommenderStub.then(stub => { this._terminated = true; stub.close(); }); diff --git a/packages/google-cloud-recommender/src/v1/recommender_client_config.json b/packages/google-cloud-recommender/src/v1/recommender_client_config.json index a5a33f327783..a8ffdbb5b6ed 100644 --- a/packages/google-cloud-recommender/src/v1/recommender_client_config.json +++ b/packages/google-cloud-recommender/src/v1/recommender_client_config.json @@ -59,6 +59,22 @@ "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "GetRecommenderConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateRecommenderConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetInsightTypeConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateInsightTypeConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-recommender/src/v1/recommender_proto_list.json b/packages/google-cloud-recommender/src/v1/recommender_proto_list.json index 9492e3060335..016dc35c415e 100644 --- a/packages/google-cloud-recommender/src/v1/recommender_proto_list.json +++ b/packages/google-cloud-recommender/src/v1/recommender_proto_list.json @@ -1,5 +1,7 @@ [ "../../protos/google/cloud/recommender/v1/insight.proto", + "../../protos/google/cloud/recommender/v1/insight_type_config.proto", "../../protos/google/cloud/recommender/v1/recommendation.proto", + "../../protos/google/cloud/recommender/v1/recommender_config.proto", "../../protos/google/cloud/recommender/v1/recommender_service.proto" ] diff --git a/packages/google-cloud-recommender/src/v1beta1/gapic_metadata.json b/packages/google-cloud-recommender/src/v1beta1/gapic_metadata.json new file mode 100644 index 000000000000..7728d04eacbe --- /dev/null +++ b/packages/google-cloud-recommender/src/v1beta1/gapic_metadata.json @@ -0,0 +1,151 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "typescript", + "protoPackage": "google.cloud.recommender.v1beta1", + "libraryPackage": "@google-cloud/recommender", + "services": { + "Recommender": { + "clients": { + "grpc": { + "libraryClient": "RecommenderClient", + "rpcs": { + "GetInsight": { + "methods": [ + "getInsight" + ] + }, + "MarkInsightAccepted": { + "methods": [ + "markInsightAccepted" + ] + }, + "GetRecommendation": { + "methods": [ + "getRecommendation" + ] + }, + "MarkRecommendationClaimed": { + "methods": [ + "markRecommendationClaimed" + ] + }, + "MarkRecommendationSucceeded": { + "methods": [ + "markRecommendationSucceeded" + ] + }, + "MarkRecommendationFailed": { + "methods": [ + "markRecommendationFailed" + ] + }, + "GetRecommenderConfig": { + "methods": [ + "getRecommenderConfig" + ] + }, + "UpdateRecommenderConfig": { + "methods": [ + "updateRecommenderConfig" + ] + }, + "GetInsightTypeConfig": { + "methods": [ + "getInsightTypeConfig" + ] + }, + "UpdateInsightTypeConfig": { + "methods": [ + "updateInsightTypeConfig" + ] + }, + "ListInsights": { + "methods": [ + "listInsights", + "listInsightsStream", + "listInsightsAsync" + ] + }, + "ListRecommendations": { + "methods": [ + "listRecommendations", + "listRecommendationsStream", + "listRecommendationsAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RecommenderClient", + "rpcs": { + "GetInsight": { + "methods": [ + "getInsight" + ] + }, + "MarkInsightAccepted": { + "methods": [ + "markInsightAccepted" + ] + }, + "GetRecommendation": { + "methods": [ + "getRecommendation" + ] + }, + "MarkRecommendationClaimed": { + "methods": [ + "markRecommendationClaimed" + ] + }, + "MarkRecommendationSucceeded": { + "methods": [ + "markRecommendationSucceeded" + ] + }, + "MarkRecommendationFailed": { + "methods": [ + "markRecommendationFailed" + ] + }, + "GetRecommenderConfig": { + "methods": [ + "getRecommenderConfig" + ] + }, + "UpdateRecommenderConfig": { + "methods": [ + "updateRecommenderConfig" + ] + }, + "GetInsightTypeConfig": { + "methods": [ + "getInsightTypeConfig" + ] + }, + "UpdateInsightTypeConfig": { + "methods": [ + "updateInsightTypeConfig" + ] + }, + "ListInsights": { + "methods": [ + "listInsights", + "listInsightsStream", + "listInsightsAsync" + ] + }, + "ListRecommendations": { + "methods": [ + "listRecommendations", + "listRecommendationsStream", + "listRecommendationsAsync" + ] + } + } + } + } + } + } +} diff --git a/packages/google-cloud-recommender/src/v1beta1/index.ts b/packages/google-cloud-recommender/src/v1beta1/index.ts new file mode 100644 index 000000000000..fbe6584bdf27 --- /dev/null +++ b/packages/google-cloud-recommender/src/v1beta1/index.ts @@ -0,0 +1,19 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +export {RecommenderClient} from './recommender_client'; diff --git a/packages/google-cloud-recommender/src/v1beta1/recommender_client.ts b/packages/google-cloud-recommender/src/v1beta1/recommender_client.ts new file mode 100644 index 000000000000..6747feef77b3 --- /dev/null +++ b/packages/google-cloud-recommender/src/v1beta1/recommender_client.ts @@ -0,0 +1,3633 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + PaginationCallback, + GaxCall, +} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/recommender_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './recommender_client_config.json'; +const version = require('../../../package.json').version; + +/** + * Provides insights and recommendations for cloud customers for various + * categories like performance optimization, cost savings, reliability, feature + * discovery, etc. Insights and recommendations are generated automatically + * based on analysis of user resources, configuration and monitoring metrics. + * @class + * @memberof v1beta1 + */ +export class RecommenderClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + pathTemplates: {[name: string]: gax.PathTemplate}; + recommenderStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RecommenderClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new RecommenderClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof RecommenderClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + billingAccountLocationInsightTypePathTemplate: + new this._gaxModule.PathTemplate( + 'billingAccounts/{billing_account}/locations/{location}/insightTypes/{insight_type}' + ), + billingAccountLocationInsightTypeInsightPathTemplate: + new this._gaxModule.PathTemplate( + 'billingAccounts/{billing_account}/locations/{location}/insightTypes/{insight_type}/insights/{insight}' + ), + billingAccountLocationRecommenderPathTemplate: + new this._gaxModule.PathTemplate( + 'billingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}' + ), + billingAccountLocationRecommenderRecommendationPathTemplate: + new this._gaxModule.PathTemplate( + 'billingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}' + ), + folderLocationInsightTypePathTemplate: new this._gaxModule.PathTemplate( + 'folders/{folder}/locations/{location}/insightTypes/{insight_type}' + ), + folderLocationInsightTypeInsightPathTemplate: + new this._gaxModule.PathTemplate( + 'folders/{folder}/locations/{location}/insightTypes/{insight_type}/insights/{insight}' + ), + folderLocationRecommenderPathTemplate: new this._gaxModule.PathTemplate( + 'folders/{folder}/locations/{location}/recommenders/{recommender}' + ), + folderLocationRecommenderRecommendationPathTemplate: + new this._gaxModule.PathTemplate( + 'folders/{folder}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}' + ), + organizationLocationInsightTypePathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/locations/{location}/insightTypes/{insight_type}' + ), + organizationLocationInsightTypeConfigPathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/locations/{location}/insightTypes/{insight_type}/config' + ), + organizationLocationInsightTypeInsightPathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/locations/{location}/insightTypes/{insight_type}/insights/{insight}' + ), + organizationLocationRecommenderPathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/locations/{location}/recommenders/{recommender}' + ), + organizationLocationRecommenderConfigPathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/locations/{location}/recommenders/{recommender}/config' + ), + organizationLocationRecommenderRecommendationPathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}' + ), + projectLocationInsightTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/insightTypes/{insight_type}' + ), + projectLocationInsightTypeConfigPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/insightTypes/{insight_type}/config' + ), + projectLocationInsightTypeInsightPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/insightTypes/{insight_type}/insights/{insight}' + ), + projectLocationRecommenderPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/recommenders/{recommender}' + ), + projectLocationRecommenderConfigPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/recommenders/{recommender}/config' + ), + projectLocationRecommenderRecommendationPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listInsights: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'insights' + ), + listRecommendations: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'recommendations' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.recommender.v1beta1.Recommender', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.recommenderStub) { + return this.recommenderStub; + } + + // Put together the "service stub" for + // google.cloud.recommender.v1beta1.Recommender. + this.recommenderStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.recommender.v1beta1.Recommender' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.recommender.v1beta1.Recommender, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const recommenderStubMethods = [ + 'listInsights', + 'getInsight', + 'markInsightAccepted', + 'listRecommendations', + 'getRecommendation', + 'markRecommendationClaimed', + 'markRecommendationSucceeded', + 'markRecommendationFailed', + 'getRecommenderConfig', + 'updateRecommenderConfig', + 'getInsightTypeConfig', + 'updateInsightTypeConfig', + ]; + for (const methodName of recommenderStubMethods) { + const callPromise = this.recommenderStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = this.descriptors.page[methodName] || undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.recommenderStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'recommender.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'recommender.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Gets the requested insight. Requires the recommender.*.get IAM permission + * for the specified insight type. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the insight. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Insight]{@link google.cloud.recommender.v1beta1.Insight}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.get_insight.js + * region_tag:recommender_v1beta1_generated_Recommender_GetInsight_async + */ + getInsight( + request?: protos.google.cloud.recommender.v1beta1.IGetInsightRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsight, + protos.google.cloud.recommender.v1beta1.IGetInsightRequest | undefined, + {} | undefined + ] + >; + getInsight( + request: protos.google.cloud.recommender.v1beta1.IGetInsightRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IInsight, + | protos.google.cloud.recommender.v1beta1.IGetInsightRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getInsight( + request: protos.google.cloud.recommender.v1beta1.IGetInsightRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IInsight, + | protos.google.cloud.recommender.v1beta1.IGetInsightRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getInsight( + request?: protos.google.cloud.recommender.v1beta1.IGetInsightRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IInsight, + | protos.google.cloud.recommender.v1beta1.IGetInsightRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IInsight, + | protos.google.cloud.recommender.v1beta1.IGetInsightRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsight, + protos.google.cloud.recommender.v1beta1.IGetInsightRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getInsight(request, options, callback); + } + /** + * Marks the Insight State as Accepted. Users can use this method to + * indicate to the Recommender API that they have applied some action based + * on the insight. This stops the insight content from being updated. + * + * MarkInsightAccepted can be applied to insights in ACTIVE state. Requires + * the recommender.*.update IAM permission for the specified insight. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the insight. + * @param {number[]} [request.stateMetadata] + * Optional. State properties user wish to include with this state. Full replace of the + * current state_metadata. + * @param {string} request.etag + * Required. Fingerprint of the Insight. Provides optimistic locking. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Insight]{@link google.cloud.recommender.v1beta1.Insight}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.mark_insight_accepted.js + * region_tag:recommender_v1beta1_generated_Recommender_MarkInsightAccepted_async + */ + markInsightAccepted( + request?: protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsight, + ( + | protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest + | undefined + ), + {} | undefined + ] + >; + markInsightAccepted( + request: protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IInsight, + | protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markInsightAccepted( + request: protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IInsight, + | protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markInsightAccepted( + request?: protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IInsight, + | protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IInsight, + | protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsight, + ( + | protos.google.cloud.recommender.v1beta1.IMarkInsightAcceptedRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.markInsightAccepted(request, options, callback); + } + /** + * Gets the requested recommendation. Requires the recommender.*.get + * IAM permission for the specified recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the recommendation. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1beta1.Recommendation}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.get_recommendation.js + * region_tag:recommender_v1beta1_generated_Recommender_GetRecommendation_async + */ + getRecommendation( + request?: protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation, + ( + | protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest + | undefined + ), + {} | undefined + ] + >; + getRecommendation( + request: protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getRecommendation( + request: protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getRecommendation( + request?: protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation, + ( + | protos.google.cloud.recommender.v1beta1.IGetRecommendationRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getRecommendation(request, options, callback); + } + /** + * Marks the Recommendation State as Claimed. Users can use this method to + * indicate to the Recommender API that they are starting to apply the + * recommendation themselves. This stops the recommendation content from being + * updated. Associated insights are frozen and placed in the ACCEPTED state. + * + * MarkRecommendationClaimed can be applied to recommendations in CLAIMED or + * ACTIVE state. + * + * Requires the recommender.*.update IAM permission for the specified + * recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the recommendation. + * @param {number[]} request.stateMetadata + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^{@link a-z0-9_.-|a-z0-9}{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + * @param {string} request.etag + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1beta1.Recommendation}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.mark_recommendation_claimed.js + * region_tag:recommender_v1beta1_generated_Recommender_MarkRecommendationClaimed_async + */ + markRecommendationClaimed( + request?: protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation, + ( + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest + | undefined + ), + {} | undefined + ] + >; + markRecommendationClaimed( + request: protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markRecommendationClaimed( + request: protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markRecommendationClaimed( + request?: protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation, + ( + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationClaimedRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.markRecommendationClaimed( + request, + options, + callback + ); + } + /** + * Marks the Recommendation State as Succeeded. Users can use this method to + * indicate to the Recommender API that they have applied the recommendation + * themselves, and the operation was successful. This stops the recommendation + * content from being updated. Associated insights are frozen and placed in + * the ACCEPTED state. + * + * MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, + * CLAIMED, SUCCEEDED, or FAILED state. + * + * Requires the recommender.*.update IAM permission for the specified + * recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the recommendation. + * @param {number[]} request.stateMetadata + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^{@link a-z0-9_.-|a-z0-9}{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + * @param {string} request.etag + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1beta1.Recommendation}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.mark_recommendation_succeeded.js + * region_tag:recommender_v1beta1_generated_Recommender_MarkRecommendationSucceeded_async + */ + markRecommendationSucceeded( + request?: protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation, + ( + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest + | undefined + ), + {} | undefined + ] + >; + markRecommendationSucceeded( + request: protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markRecommendationSucceeded( + request: protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markRecommendationSucceeded( + request?: protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation, + ( + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationSucceededRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.markRecommendationSucceeded( + request, + options, + callback + ); + } + /** + * Marks the Recommendation State as Failed. Users can use this method to + * indicate to the Recommender API that they have applied the recommendation + * themselves, and the operation failed. This stops the recommendation content + * from being updated. Associated insights are frozen and placed in the + * ACCEPTED state. + * + * MarkRecommendationFailed can be applied to recommendations in ACTIVE, + * CLAIMED, SUCCEEDED, or FAILED state. + * + * Requires the recommender.*.update IAM permission for the specified + * recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the recommendation. + * @param {number[]} request.stateMetadata + * State properties to include with this state. Overwrites any existing + * `state_metadata`. + * Keys must match the regex `/^{@link a-z0-9_.-|a-z0-9}{0,62}$/`. + * Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`. + * @param {string} request.etag + * Required. Fingerprint of the Recommendation. Provides optimistic locking. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Recommendation]{@link google.cloud.recommender.v1beta1.Recommendation}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.mark_recommendation_failed.js + * region_tag:recommender_v1beta1_generated_Recommender_MarkRecommendationFailed_async + */ + markRecommendationFailed( + request?: protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation, + ( + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest + | undefined + ), + {} | undefined + ] + >; + markRecommendationFailed( + request: protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markRecommendationFailed( + request: protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest + | null + | undefined, + {} | null | undefined + > + ): void; + markRecommendationFailed( + request?: protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IRecommendation, + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation, + ( + | protos.google.cloud.recommender.v1beta1.IMarkRecommendationFailedRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.markRecommendationFailed( + request, + options, + callback + ); + } + /** + * Gets the requested Recommender Config. There is only one instance of the + * config for each Recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the Recommendation Config to get. + * + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [RecommenderConfig]{@link google.cloud.recommender.v1beta1.RecommenderConfig}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.get_recommender_config.js + * region_tag:recommender_v1beta1_generated_Recommender_GetRecommenderConfig_async + */ + getRecommenderConfig( + request?: protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + ( + | protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest + | undefined + ), + {} | undefined + ] + >; + getRecommenderConfig( + request: protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + | protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getRecommenderConfig( + request: protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + | protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getRecommenderConfig( + request?: protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + | protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + | protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + ( + | protos.google.cloud.recommender.v1beta1.IGetRecommenderConfigRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getRecommenderConfig(request, options, callback); + } + /** + * Updates a Recommender Config. This will create a new revision of the + * config. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.recommender.v1beta1.RecommenderConfig} request.recommenderConfig + * Required. The RecommenderConfig to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. + * @param {boolean} request.validateOnly + * If true, validate the request and preview the change, but do not actually + * update it. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [RecommenderConfig]{@link google.cloud.recommender.v1beta1.RecommenderConfig}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.update_recommender_config.js + * region_tag:recommender_v1beta1_generated_Recommender_UpdateRecommenderConfig_async + */ + updateRecommenderConfig( + request?: protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + ( + | protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest + | undefined + ), + {} | undefined + ] + >; + updateRecommenderConfig( + request: protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + | protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateRecommenderConfig( + request: protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + | protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateRecommenderConfig( + request?: protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + | protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + | protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommenderConfig, + ( + | protos.google.cloud.recommender.v1beta1.IUpdateRecommenderConfigRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'recommender_config.name': request.recommenderConfig!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateRecommenderConfig( + request, + options, + callback + ); + } + /** + * Gets the requested InsightTypeConfig. There is only one instance of the + * config for each InsightType. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the InsightTypeConfig to get. + * + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * + * * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * + * * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [InsightTypeConfig]{@link google.cloud.recommender.v1beta1.InsightTypeConfig}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.get_insight_type_config.js + * region_tag:recommender_v1beta1_generated_Recommender_GetInsightTypeConfig_async + */ + getInsightTypeConfig( + request?: protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + ( + | protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest + | undefined + ), + {} | undefined + ] + >; + getInsightTypeConfig( + request: protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getInsightTypeConfig( + request: protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getInsightTypeConfig( + request?: protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + ( + | protos.google.cloud.recommender.v1beta1.IGetInsightTypeConfigRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getInsightTypeConfig(request, options, callback); + } + /** + * Updates an InsightTypeConfig change. This will create a new revision of the + * config. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.recommender.v1beta1.InsightTypeConfig} request.insightTypeConfig + * Required. The InsightTypeConfig to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The list of fields to be updated. + * @param {boolean} request.validateOnly + * If true, validate the request and preview the change, but do not actually + * update it. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [InsightTypeConfig]{@link google.cloud.recommender.v1beta1.InsightTypeConfig}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.update_insight_type_config.js + * region_tag:recommender_v1beta1_generated_Recommender_UpdateInsightTypeConfig_async + */ + updateInsightTypeConfig( + request?: protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + ( + | protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest + | undefined + ), + {} | undefined + ] + >; + updateInsightTypeConfig( + request: protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateInsightTypeConfig( + request: protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest, + callback: Callback< + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateInsightTypeConfig( + request?: protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + | protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsightTypeConfig, + ( + | protos.google.cloud.recommender.v1beta1.IUpdateInsightTypeConfigRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'insight_type_config.name': request.insightTypeConfig!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateInsightTypeConfig( + request, + options, + callback + ); + } + + /** + * Lists insights for the specified Cloud Resource. Requires the + * recommender.*.list IAM permission for the specified insight type. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The container resource on which to execute the request. + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * INSIGHT_TYPE_ID refers to supported insight types: + * https://cloud.google.com/recommender/docs/insights/insight-types. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return from this request. Non-positive + * values are ignored. If not specified, the server will determine the number + * of results to return. + * @param {string} [request.pageToken] + * Optional. If present, retrieves the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the + * previous response. The values of other method parameters must be identical + * to those in the previous call. + * @param {string} [request.filter] + * Optional. Filter expression to restrict the insights returned. Supported + * filter fields: + * + * * `stateInfo.state` + * + * * `insightSubtype` + * + * * `severity` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `insightSubtype = PERMISSIONS_USAGE` + * + * * `severity = CRITICAL OR severity = HIGH` + * + * * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Insight]{@link google.cloud.recommender.v1beta1.Insight}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listInsightsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listInsights( + request?: protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsight[], + protos.google.cloud.recommender.v1beta1.IListInsightsRequest | null, + protos.google.cloud.recommender.v1beta1.IListInsightsResponse + ] + >; + listInsights( + request: protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + | protos.google.cloud.recommender.v1beta1.IListInsightsResponse + | null + | undefined, + protos.google.cloud.recommender.v1beta1.IInsight + > + ): void; + listInsights( + request: protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + callback: PaginationCallback< + protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + | protos.google.cloud.recommender.v1beta1.IListInsightsResponse + | null + | undefined, + protos.google.cloud.recommender.v1beta1.IInsight + > + ): void; + listInsights( + request?: protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + | protos.google.cloud.recommender.v1beta1.IListInsightsResponse + | null + | undefined, + protos.google.cloud.recommender.v1beta1.IInsight + >, + callback?: PaginationCallback< + protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + | protos.google.cloud.recommender.v1beta1.IListInsightsResponse + | null + | undefined, + protos.google.cloud.recommender.v1beta1.IInsight + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IInsight[], + protos.google.cloud.recommender.v1beta1.IListInsightsRequest | null, + protos.google.cloud.recommender.v1beta1.IListInsightsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listInsights(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The container resource on which to execute the request. + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * INSIGHT_TYPE_ID refers to supported insight types: + * https://cloud.google.com/recommender/docs/insights/insight-types. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return from this request. Non-positive + * values are ignored. If not specified, the server will determine the number + * of results to return. + * @param {string} [request.pageToken] + * Optional. If present, retrieves the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the + * previous response. The values of other method parameters must be identical + * to those in the previous call. + * @param {string} [request.filter] + * Optional. Filter expression to restrict the insights returned. Supported + * filter fields: + * + * * `stateInfo.state` + * + * * `insightSubtype` + * + * * `severity` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `insightSubtype = PERMISSIONS_USAGE` + * + * * `severity = CRITICAL OR severity = HIGH` + * + * * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Insight]{@link google.cloud.recommender.v1beta1.Insight} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listInsightsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listInsightsStream( + request?: protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listInsights']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listInsights.createStream( + this.innerApiCalls.listInsights as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listInsights`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The container resource on which to execute the request. + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` + * + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * INSIGHT_TYPE_ID refers to supported insight types: + * https://cloud.google.com/recommender/docs/insights/insight-types. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return from this request. Non-positive + * values are ignored. If not specified, the server will determine the number + * of results to return. + * @param {string} [request.pageToken] + * Optional. If present, retrieves the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the + * previous response. The values of other method parameters must be identical + * to those in the previous call. + * @param {string} [request.filter] + * Optional. Filter expression to restrict the insights returned. Supported + * filter fields: + * + * * `stateInfo.state` + * + * * `insightSubtype` + * + * * `severity` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `insightSubtype = PERMISSIONS_USAGE` + * + * * `severity = CRITICAL OR severity = HIGH` + * + * * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Insight]{@link google.cloud.recommender.v1beta1.Insight}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.list_insights.js + * region_tag:recommender_v1beta1_generated_Recommender_ListInsights_async + */ + listInsightsAsync( + request?: protos.google.cloud.recommender.v1beta1.IListInsightsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listInsights']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listInsights.asyncIterate( + this.innerApiCalls['listInsights'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists recommendations for the specified Cloud Resource. Requires the + * recommender.*.list IAM permission for the specified recommender. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The container resource on which to execute the request. + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * RECOMMENDER_ID refers to supported recommenders: + * https://cloud.google.com/recommender/docs/recommenders. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return from this request. Non-positive + * values are ignored. If not specified, the server will determine the number + * of results to return. + * @param {string} [request.pageToken] + * Optional. If present, retrieves the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the + * previous response. The values of other method parameters must be identical + * to those in the previous call. + * @param {string} request.filter + * Filter expression to restrict the recommendations returned. Supported + * filter fields: + * + * * `state_info.state` + * + * * `recommenderSubtype` + * + * * `priority` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + * + * * `priority = P1 OR priority = P2` + * + * * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Recommendation]{@link google.cloud.recommender.v1beta1.Recommendation}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listRecommendationsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listRecommendations( + request?: protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation[], + protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest | null, + protos.google.cloud.recommender.v1beta1.IListRecommendationsResponse + ] + >; + listRecommendations( + request: protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + | protos.google.cloud.recommender.v1beta1.IListRecommendationsResponse + | null + | undefined, + protos.google.cloud.recommender.v1beta1.IRecommendation + > + ): void; + listRecommendations( + request: protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + callback: PaginationCallback< + protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + | protos.google.cloud.recommender.v1beta1.IListRecommendationsResponse + | null + | undefined, + protos.google.cloud.recommender.v1beta1.IRecommendation + > + ): void; + listRecommendations( + request?: protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + | protos.google.cloud.recommender.v1beta1.IListRecommendationsResponse + | null + | undefined, + protos.google.cloud.recommender.v1beta1.IRecommendation + >, + callback?: PaginationCallback< + protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + | protos.google.cloud.recommender.v1beta1.IListRecommendationsResponse + | null + | undefined, + protos.google.cloud.recommender.v1beta1.IRecommendation + > + ): Promise< + [ + protos.google.cloud.recommender.v1beta1.IRecommendation[], + protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest | null, + protos.google.cloud.recommender.v1beta1.IListRecommendationsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listRecommendations(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The container resource on which to execute the request. + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * RECOMMENDER_ID refers to supported recommenders: + * https://cloud.google.com/recommender/docs/recommenders. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return from this request. Non-positive + * values are ignored. If not specified, the server will determine the number + * of results to return. + * @param {string} [request.pageToken] + * Optional. If present, retrieves the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the + * previous response. The values of other method parameters must be identical + * to those in the previous call. + * @param {string} request.filter + * Filter expression to restrict the recommendations returned. Supported + * filter fields: + * + * * `state_info.state` + * + * * `recommenderSubtype` + * + * * `priority` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + * + * * `priority = P1 OR priority = P2` + * + * * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Recommendation]{@link google.cloud.recommender.v1beta1.Recommendation} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listRecommendationsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listRecommendationsStream( + request?: protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listRecommendations']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listRecommendations.createStream( + this.innerApiCalls.listRecommendations as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listRecommendations`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The container resource on which to execute the request. + * Acceptable formats: + * + * * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` + * + * LOCATION here refers to GCP Locations: + * https://cloud.google.com/about/locations/ + * RECOMMENDER_ID refers to supported recommenders: + * https://cloud.google.com/recommender/docs/recommenders. + * @param {number} [request.pageSize] + * Optional. The maximum number of results to return from this request. Non-positive + * values are ignored. If not specified, the server will determine the number + * of results to return. + * @param {string} [request.pageToken] + * Optional. If present, retrieves the next batch of results from the preceding call to + * this method. `page_token` must be the value of `next_page_token` from the + * previous response. The values of other method parameters must be identical + * to those in the previous call. + * @param {string} request.filter + * Filter expression to restrict the recommendations returned. Supported + * filter fields: + * + * * `state_info.state` + * + * * `recommenderSubtype` + * + * * `priority` + * + * Examples: + * + * * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` + * + * * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` + * + * * `priority = P1 OR priority = P2` + * + * * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` + * + * (These expressions are based on the filter language described at + * https://google.aip.dev/160) + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Recommendation]{@link google.cloud.recommender.v1beta1.Recommendation}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta1/recommender.list_recommendations.js + * region_tag:recommender_v1beta1_generated_Recommender_ListRecommendations_async + */ + listRecommendationsAsync( + request?: protos.google.cloud.recommender.v1beta1.IListRecommendationsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listRecommendations']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listRecommendations.asyncIterate( + this.innerApiCalls['listRecommendations'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified billingAccountLocationInsightType resource name string. + * + * @param {string} billing_account + * @param {string} location + * @param {string} insight_type + * @returns {string} Resource name string. + */ + billingAccountLocationInsightTypePath( + billingAccount: string, + location: string, + insightType: string + ) { + return this.pathTemplates.billingAccountLocationInsightTypePathTemplate.render( + { + billing_account: billingAccount, + location: location, + insight_type: insightType, + } + ); + } + + /** + * Parse the billing_account from BillingAccountLocationInsightType resource. + * + * @param {string} billingAccountLocationInsightTypeName + * A fully-qualified path representing billing_account_location_insight_type resource. + * @returns {string} A string representing the billing_account. + */ + matchBillingAccountFromBillingAccountLocationInsightTypeName( + billingAccountLocationInsightTypeName: string + ) { + return this.pathTemplates.billingAccountLocationInsightTypePathTemplate.match( + billingAccountLocationInsightTypeName + ).billing_account; + } + + /** + * Parse the location from BillingAccountLocationInsightType resource. + * + * @param {string} billingAccountLocationInsightTypeName + * A fully-qualified path representing billing_account_location_insight_type resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBillingAccountLocationInsightTypeName( + billingAccountLocationInsightTypeName: string + ) { + return this.pathTemplates.billingAccountLocationInsightTypePathTemplate.match( + billingAccountLocationInsightTypeName + ).location; + } + + /** + * Parse the insight_type from BillingAccountLocationInsightType resource. + * + * @param {string} billingAccountLocationInsightTypeName + * A fully-qualified path representing billing_account_location_insight_type resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromBillingAccountLocationInsightTypeName( + billingAccountLocationInsightTypeName: string + ) { + return this.pathTemplates.billingAccountLocationInsightTypePathTemplate.match( + billingAccountLocationInsightTypeName + ).insight_type; + } + + /** + * Return a fully-qualified billingAccountLocationInsightTypeInsight resource name string. + * + * @param {string} billing_account + * @param {string} location + * @param {string} insight_type + * @param {string} insight + * @returns {string} Resource name string. + */ + billingAccountLocationInsightTypeInsightPath( + billingAccount: string, + location: string, + insightType: string, + insight: string + ) { + return this.pathTemplates.billingAccountLocationInsightTypeInsightPathTemplate.render( + { + billing_account: billingAccount, + location: location, + insight_type: insightType, + insight: insight, + } + ); + } + + /** + * Parse the billing_account from BillingAccountLocationInsightTypeInsight resource. + * + * @param {string} billingAccountLocationInsightTypeInsightName + * A fully-qualified path representing billing_account_location_insight_type_insight resource. + * @returns {string} A string representing the billing_account. + */ + matchBillingAccountFromBillingAccountLocationInsightTypeInsightName( + billingAccountLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.billingAccountLocationInsightTypeInsightPathTemplate.match( + billingAccountLocationInsightTypeInsightName + ).billing_account; + } + + /** + * Parse the location from BillingAccountLocationInsightTypeInsight resource. + * + * @param {string} billingAccountLocationInsightTypeInsightName + * A fully-qualified path representing billing_account_location_insight_type_insight resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBillingAccountLocationInsightTypeInsightName( + billingAccountLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.billingAccountLocationInsightTypeInsightPathTemplate.match( + billingAccountLocationInsightTypeInsightName + ).location; + } + + /** + * Parse the insight_type from BillingAccountLocationInsightTypeInsight resource. + * + * @param {string} billingAccountLocationInsightTypeInsightName + * A fully-qualified path representing billing_account_location_insight_type_insight resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromBillingAccountLocationInsightTypeInsightName( + billingAccountLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.billingAccountLocationInsightTypeInsightPathTemplate.match( + billingAccountLocationInsightTypeInsightName + ).insight_type; + } + + /** + * Parse the insight from BillingAccountLocationInsightTypeInsight resource. + * + * @param {string} billingAccountLocationInsightTypeInsightName + * A fully-qualified path representing billing_account_location_insight_type_insight resource. + * @returns {string} A string representing the insight. + */ + matchInsightFromBillingAccountLocationInsightTypeInsightName( + billingAccountLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.billingAccountLocationInsightTypeInsightPathTemplate.match( + billingAccountLocationInsightTypeInsightName + ).insight; + } + + /** + * Return a fully-qualified billingAccountLocationRecommender resource name string. + * + * @param {string} billing_account + * @param {string} location + * @param {string} recommender + * @returns {string} Resource name string. + */ + billingAccountLocationRecommenderPath( + billingAccount: string, + location: string, + recommender: string + ) { + return this.pathTemplates.billingAccountLocationRecommenderPathTemplate.render( + { + billing_account: billingAccount, + location: location, + recommender: recommender, + } + ); + } + + /** + * Parse the billing_account from BillingAccountLocationRecommender resource. + * + * @param {string} billingAccountLocationRecommenderName + * A fully-qualified path representing billing_account_location_recommender resource. + * @returns {string} A string representing the billing_account. + */ + matchBillingAccountFromBillingAccountLocationRecommenderName( + billingAccountLocationRecommenderName: string + ) { + return this.pathTemplates.billingAccountLocationRecommenderPathTemplate.match( + billingAccountLocationRecommenderName + ).billing_account; + } + + /** + * Parse the location from BillingAccountLocationRecommender resource. + * + * @param {string} billingAccountLocationRecommenderName + * A fully-qualified path representing billing_account_location_recommender resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBillingAccountLocationRecommenderName( + billingAccountLocationRecommenderName: string + ) { + return this.pathTemplates.billingAccountLocationRecommenderPathTemplate.match( + billingAccountLocationRecommenderName + ).location; + } + + /** + * Parse the recommender from BillingAccountLocationRecommender resource. + * + * @param {string} billingAccountLocationRecommenderName + * A fully-qualified path representing billing_account_location_recommender resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromBillingAccountLocationRecommenderName( + billingAccountLocationRecommenderName: string + ) { + return this.pathTemplates.billingAccountLocationRecommenderPathTemplate.match( + billingAccountLocationRecommenderName + ).recommender; + } + + /** + * Return a fully-qualified billingAccountLocationRecommenderRecommendation resource name string. + * + * @param {string} billing_account + * @param {string} location + * @param {string} recommender + * @param {string} recommendation + * @returns {string} Resource name string. + */ + billingAccountLocationRecommenderRecommendationPath( + billingAccount: string, + location: string, + recommender: string, + recommendation: string + ) { + return this.pathTemplates.billingAccountLocationRecommenderRecommendationPathTemplate.render( + { + billing_account: billingAccount, + location: location, + recommender: recommender, + recommendation: recommendation, + } + ); + } + + /** + * Parse the billing_account from BillingAccountLocationRecommenderRecommendation resource. + * + * @param {string} billingAccountLocationRecommenderRecommendationName + * A fully-qualified path representing billing_account_location_recommender_recommendation resource. + * @returns {string} A string representing the billing_account. + */ + matchBillingAccountFromBillingAccountLocationRecommenderRecommendationName( + billingAccountLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.billingAccountLocationRecommenderRecommendationPathTemplate.match( + billingAccountLocationRecommenderRecommendationName + ).billing_account; + } + + /** + * Parse the location from BillingAccountLocationRecommenderRecommendation resource. + * + * @param {string} billingAccountLocationRecommenderRecommendationName + * A fully-qualified path representing billing_account_location_recommender_recommendation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBillingAccountLocationRecommenderRecommendationName( + billingAccountLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.billingAccountLocationRecommenderRecommendationPathTemplate.match( + billingAccountLocationRecommenderRecommendationName + ).location; + } + + /** + * Parse the recommender from BillingAccountLocationRecommenderRecommendation resource. + * + * @param {string} billingAccountLocationRecommenderRecommendationName + * A fully-qualified path representing billing_account_location_recommender_recommendation resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromBillingAccountLocationRecommenderRecommendationName( + billingAccountLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.billingAccountLocationRecommenderRecommendationPathTemplate.match( + billingAccountLocationRecommenderRecommendationName + ).recommender; + } + + /** + * Parse the recommendation from BillingAccountLocationRecommenderRecommendation resource. + * + * @param {string} billingAccountLocationRecommenderRecommendationName + * A fully-qualified path representing billing_account_location_recommender_recommendation resource. + * @returns {string} A string representing the recommendation. + */ + matchRecommendationFromBillingAccountLocationRecommenderRecommendationName( + billingAccountLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.billingAccountLocationRecommenderRecommendationPathTemplate.match( + billingAccountLocationRecommenderRecommendationName + ).recommendation; + } + + /** + * Return a fully-qualified folderLocationInsightType resource name string. + * + * @param {string} folder + * @param {string} location + * @param {string} insight_type + * @returns {string} Resource name string. + */ + folderLocationInsightTypePath( + folder: string, + location: string, + insightType: string + ) { + return this.pathTemplates.folderLocationInsightTypePathTemplate.render({ + folder: folder, + location: location, + insight_type: insightType, + }); + } + + /** + * Parse the folder from FolderLocationInsightType resource. + * + * @param {string} folderLocationInsightTypeName + * A fully-qualified path representing folder_location_insight_type resource. + * @returns {string} A string representing the folder. + */ + matchFolderFromFolderLocationInsightTypeName( + folderLocationInsightTypeName: string + ) { + return this.pathTemplates.folderLocationInsightTypePathTemplate.match( + folderLocationInsightTypeName + ).folder; + } + + /** + * Parse the location from FolderLocationInsightType resource. + * + * @param {string} folderLocationInsightTypeName + * A fully-qualified path representing folder_location_insight_type resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFolderLocationInsightTypeName( + folderLocationInsightTypeName: string + ) { + return this.pathTemplates.folderLocationInsightTypePathTemplate.match( + folderLocationInsightTypeName + ).location; + } + + /** + * Parse the insight_type from FolderLocationInsightType resource. + * + * @param {string} folderLocationInsightTypeName + * A fully-qualified path representing folder_location_insight_type resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromFolderLocationInsightTypeName( + folderLocationInsightTypeName: string + ) { + return this.pathTemplates.folderLocationInsightTypePathTemplate.match( + folderLocationInsightTypeName + ).insight_type; + } + + /** + * Return a fully-qualified folderLocationInsightTypeInsight resource name string. + * + * @param {string} folder + * @param {string} location + * @param {string} insight_type + * @param {string} insight + * @returns {string} Resource name string. + */ + folderLocationInsightTypeInsightPath( + folder: string, + location: string, + insightType: string, + insight: string + ) { + return this.pathTemplates.folderLocationInsightTypeInsightPathTemplate.render( + { + folder: folder, + location: location, + insight_type: insightType, + insight: insight, + } + ); + } + + /** + * Parse the folder from FolderLocationInsightTypeInsight resource. + * + * @param {string} folderLocationInsightTypeInsightName + * A fully-qualified path representing folder_location_insight_type_insight resource. + * @returns {string} A string representing the folder. + */ + matchFolderFromFolderLocationInsightTypeInsightName( + folderLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.folderLocationInsightTypeInsightPathTemplate.match( + folderLocationInsightTypeInsightName + ).folder; + } + + /** + * Parse the location from FolderLocationInsightTypeInsight resource. + * + * @param {string} folderLocationInsightTypeInsightName + * A fully-qualified path representing folder_location_insight_type_insight resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFolderLocationInsightTypeInsightName( + folderLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.folderLocationInsightTypeInsightPathTemplate.match( + folderLocationInsightTypeInsightName + ).location; + } + + /** + * Parse the insight_type from FolderLocationInsightTypeInsight resource. + * + * @param {string} folderLocationInsightTypeInsightName + * A fully-qualified path representing folder_location_insight_type_insight resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromFolderLocationInsightTypeInsightName( + folderLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.folderLocationInsightTypeInsightPathTemplate.match( + folderLocationInsightTypeInsightName + ).insight_type; + } + + /** + * Parse the insight from FolderLocationInsightTypeInsight resource. + * + * @param {string} folderLocationInsightTypeInsightName + * A fully-qualified path representing folder_location_insight_type_insight resource. + * @returns {string} A string representing the insight. + */ + matchInsightFromFolderLocationInsightTypeInsightName( + folderLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.folderLocationInsightTypeInsightPathTemplate.match( + folderLocationInsightTypeInsightName + ).insight; + } + + /** + * Return a fully-qualified folderLocationRecommender resource name string. + * + * @param {string} folder + * @param {string} location + * @param {string} recommender + * @returns {string} Resource name string. + */ + folderLocationRecommenderPath( + folder: string, + location: string, + recommender: string + ) { + return this.pathTemplates.folderLocationRecommenderPathTemplate.render({ + folder: folder, + location: location, + recommender: recommender, + }); + } + + /** + * Parse the folder from FolderLocationRecommender resource. + * + * @param {string} folderLocationRecommenderName + * A fully-qualified path representing folder_location_recommender resource. + * @returns {string} A string representing the folder. + */ + matchFolderFromFolderLocationRecommenderName( + folderLocationRecommenderName: string + ) { + return this.pathTemplates.folderLocationRecommenderPathTemplate.match( + folderLocationRecommenderName + ).folder; + } + + /** + * Parse the location from FolderLocationRecommender resource. + * + * @param {string} folderLocationRecommenderName + * A fully-qualified path representing folder_location_recommender resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFolderLocationRecommenderName( + folderLocationRecommenderName: string + ) { + return this.pathTemplates.folderLocationRecommenderPathTemplate.match( + folderLocationRecommenderName + ).location; + } + + /** + * Parse the recommender from FolderLocationRecommender resource. + * + * @param {string} folderLocationRecommenderName + * A fully-qualified path representing folder_location_recommender resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromFolderLocationRecommenderName( + folderLocationRecommenderName: string + ) { + return this.pathTemplates.folderLocationRecommenderPathTemplate.match( + folderLocationRecommenderName + ).recommender; + } + + /** + * Return a fully-qualified folderLocationRecommenderRecommendation resource name string. + * + * @param {string} folder + * @param {string} location + * @param {string} recommender + * @param {string} recommendation + * @returns {string} Resource name string. + */ + folderLocationRecommenderRecommendationPath( + folder: string, + location: string, + recommender: string, + recommendation: string + ) { + return this.pathTemplates.folderLocationRecommenderRecommendationPathTemplate.render( + { + folder: folder, + location: location, + recommender: recommender, + recommendation: recommendation, + } + ); + } + + /** + * Parse the folder from FolderLocationRecommenderRecommendation resource. + * + * @param {string} folderLocationRecommenderRecommendationName + * A fully-qualified path representing folder_location_recommender_recommendation resource. + * @returns {string} A string representing the folder. + */ + matchFolderFromFolderLocationRecommenderRecommendationName( + folderLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.folderLocationRecommenderRecommendationPathTemplate.match( + folderLocationRecommenderRecommendationName + ).folder; + } + + /** + * Parse the location from FolderLocationRecommenderRecommendation resource. + * + * @param {string} folderLocationRecommenderRecommendationName + * A fully-qualified path representing folder_location_recommender_recommendation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFolderLocationRecommenderRecommendationName( + folderLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.folderLocationRecommenderRecommendationPathTemplate.match( + folderLocationRecommenderRecommendationName + ).location; + } + + /** + * Parse the recommender from FolderLocationRecommenderRecommendation resource. + * + * @param {string} folderLocationRecommenderRecommendationName + * A fully-qualified path representing folder_location_recommender_recommendation resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromFolderLocationRecommenderRecommendationName( + folderLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.folderLocationRecommenderRecommendationPathTemplate.match( + folderLocationRecommenderRecommendationName + ).recommender; + } + + /** + * Parse the recommendation from FolderLocationRecommenderRecommendation resource. + * + * @param {string} folderLocationRecommenderRecommendationName + * A fully-qualified path representing folder_location_recommender_recommendation resource. + * @returns {string} A string representing the recommendation. + */ + matchRecommendationFromFolderLocationRecommenderRecommendationName( + folderLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.folderLocationRecommenderRecommendationPathTemplate.match( + folderLocationRecommenderRecommendationName + ).recommendation; + } + + /** + * Return a fully-qualified organizationLocationInsightType resource name string. + * + * @param {string} organization + * @param {string} location + * @param {string} insight_type + * @returns {string} Resource name string. + */ + organizationLocationInsightTypePath( + organization: string, + location: string, + insightType: string + ) { + return this.pathTemplates.organizationLocationInsightTypePathTemplate.render( + { + organization: organization, + location: location, + insight_type: insightType, + } + ); + } + + /** + * Parse the organization from OrganizationLocationInsightType resource. + * + * @param {string} organizationLocationInsightTypeName + * A fully-qualified path representing organization_location_insight_type resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationLocationInsightTypeName( + organizationLocationInsightTypeName: string + ) { + return this.pathTemplates.organizationLocationInsightTypePathTemplate.match( + organizationLocationInsightTypeName + ).organization; + } + + /** + * Parse the location from OrganizationLocationInsightType resource. + * + * @param {string} organizationLocationInsightTypeName + * A fully-qualified path representing organization_location_insight_type resource. + * @returns {string} A string representing the location. + */ + matchLocationFromOrganizationLocationInsightTypeName( + organizationLocationInsightTypeName: string + ) { + return this.pathTemplates.organizationLocationInsightTypePathTemplate.match( + organizationLocationInsightTypeName + ).location; + } + + /** + * Parse the insight_type from OrganizationLocationInsightType resource. + * + * @param {string} organizationLocationInsightTypeName + * A fully-qualified path representing organization_location_insight_type resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromOrganizationLocationInsightTypeName( + organizationLocationInsightTypeName: string + ) { + return this.pathTemplates.organizationLocationInsightTypePathTemplate.match( + organizationLocationInsightTypeName + ).insight_type; + } + + /** + * Return a fully-qualified organizationLocationInsightTypeConfig resource name string. + * + * @param {string} organization + * @param {string} location + * @param {string} insight_type + * @returns {string} Resource name string. + */ + organizationLocationInsightTypeConfigPath( + organization: string, + location: string, + insightType: string + ) { + return this.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.render( + { + organization: organization, + location: location, + insight_type: insightType, + } + ); + } + + /** + * Parse the organization from OrganizationLocationInsightTypeConfig resource. + * + * @param {string} organizationLocationInsightTypeConfigName + * A fully-qualified path representing organization_location_insight_type_config resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationLocationInsightTypeConfigName( + organizationLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.match( + organizationLocationInsightTypeConfigName + ).organization; + } + + /** + * Parse the location from OrganizationLocationInsightTypeConfig resource. + * + * @param {string} organizationLocationInsightTypeConfigName + * A fully-qualified path representing organization_location_insight_type_config resource. + * @returns {string} A string representing the location. + */ + matchLocationFromOrganizationLocationInsightTypeConfigName( + organizationLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.match( + organizationLocationInsightTypeConfigName + ).location; + } + + /** + * Parse the insight_type from OrganizationLocationInsightTypeConfig resource. + * + * @param {string} organizationLocationInsightTypeConfigName + * A fully-qualified path representing organization_location_insight_type_config resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromOrganizationLocationInsightTypeConfigName( + organizationLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.match( + organizationLocationInsightTypeConfigName + ).insight_type; + } + + /** + * Return a fully-qualified organizationLocationInsightTypeInsight resource name string. + * + * @param {string} organization + * @param {string} location + * @param {string} insight_type + * @param {string} insight + * @returns {string} Resource name string. + */ + organizationLocationInsightTypeInsightPath( + organization: string, + location: string, + insightType: string, + insight: string + ) { + return this.pathTemplates.organizationLocationInsightTypeInsightPathTemplate.render( + { + organization: organization, + location: location, + insight_type: insightType, + insight: insight, + } + ); + } + + /** + * Parse the organization from OrganizationLocationInsightTypeInsight resource. + * + * @param {string} organizationLocationInsightTypeInsightName + * A fully-qualified path representing organization_location_insight_type_insight resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationLocationInsightTypeInsightName( + organizationLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeInsightPathTemplate.match( + organizationLocationInsightTypeInsightName + ).organization; + } + + /** + * Parse the location from OrganizationLocationInsightTypeInsight resource. + * + * @param {string} organizationLocationInsightTypeInsightName + * A fully-qualified path representing organization_location_insight_type_insight resource. + * @returns {string} A string representing the location. + */ + matchLocationFromOrganizationLocationInsightTypeInsightName( + organizationLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeInsightPathTemplate.match( + organizationLocationInsightTypeInsightName + ).location; + } + + /** + * Parse the insight_type from OrganizationLocationInsightTypeInsight resource. + * + * @param {string} organizationLocationInsightTypeInsightName + * A fully-qualified path representing organization_location_insight_type_insight resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromOrganizationLocationInsightTypeInsightName( + organizationLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeInsightPathTemplate.match( + organizationLocationInsightTypeInsightName + ).insight_type; + } + + /** + * Parse the insight from OrganizationLocationInsightTypeInsight resource. + * + * @param {string} organizationLocationInsightTypeInsightName + * A fully-qualified path representing organization_location_insight_type_insight resource. + * @returns {string} A string representing the insight. + */ + matchInsightFromOrganizationLocationInsightTypeInsightName( + organizationLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.organizationLocationInsightTypeInsightPathTemplate.match( + organizationLocationInsightTypeInsightName + ).insight; + } + + /** + * Return a fully-qualified organizationLocationRecommender resource name string. + * + * @param {string} organization + * @param {string} location + * @param {string} recommender + * @returns {string} Resource name string. + */ + organizationLocationRecommenderPath( + organization: string, + location: string, + recommender: string + ) { + return this.pathTemplates.organizationLocationRecommenderPathTemplate.render( + { + organization: organization, + location: location, + recommender: recommender, + } + ); + } + + /** + * Parse the organization from OrganizationLocationRecommender resource. + * + * @param {string} organizationLocationRecommenderName + * A fully-qualified path representing organization_location_recommender resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationLocationRecommenderName( + organizationLocationRecommenderName: string + ) { + return this.pathTemplates.organizationLocationRecommenderPathTemplate.match( + organizationLocationRecommenderName + ).organization; + } + + /** + * Parse the location from OrganizationLocationRecommender resource. + * + * @param {string} organizationLocationRecommenderName + * A fully-qualified path representing organization_location_recommender resource. + * @returns {string} A string representing the location. + */ + matchLocationFromOrganizationLocationRecommenderName( + organizationLocationRecommenderName: string + ) { + return this.pathTemplates.organizationLocationRecommenderPathTemplate.match( + organizationLocationRecommenderName + ).location; + } + + /** + * Parse the recommender from OrganizationLocationRecommender resource. + * + * @param {string} organizationLocationRecommenderName + * A fully-qualified path representing organization_location_recommender resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromOrganizationLocationRecommenderName( + organizationLocationRecommenderName: string + ) { + return this.pathTemplates.organizationLocationRecommenderPathTemplate.match( + organizationLocationRecommenderName + ).recommender; + } + + /** + * Return a fully-qualified organizationLocationRecommenderConfig resource name string. + * + * @param {string} organization + * @param {string} location + * @param {string} recommender + * @returns {string} Resource name string. + */ + organizationLocationRecommenderConfigPath( + organization: string, + location: string, + recommender: string + ) { + return this.pathTemplates.organizationLocationRecommenderConfigPathTemplate.render( + { + organization: organization, + location: location, + recommender: recommender, + } + ); + } + + /** + * Parse the organization from OrganizationLocationRecommenderConfig resource. + * + * @param {string} organizationLocationRecommenderConfigName + * A fully-qualified path representing organization_location_recommender_config resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationLocationRecommenderConfigName( + organizationLocationRecommenderConfigName: string + ) { + return this.pathTemplates.organizationLocationRecommenderConfigPathTemplate.match( + organizationLocationRecommenderConfigName + ).organization; + } + + /** + * Parse the location from OrganizationLocationRecommenderConfig resource. + * + * @param {string} organizationLocationRecommenderConfigName + * A fully-qualified path representing organization_location_recommender_config resource. + * @returns {string} A string representing the location. + */ + matchLocationFromOrganizationLocationRecommenderConfigName( + organizationLocationRecommenderConfigName: string + ) { + return this.pathTemplates.organizationLocationRecommenderConfigPathTemplate.match( + organizationLocationRecommenderConfigName + ).location; + } + + /** + * Parse the recommender from OrganizationLocationRecommenderConfig resource. + * + * @param {string} organizationLocationRecommenderConfigName + * A fully-qualified path representing organization_location_recommender_config resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromOrganizationLocationRecommenderConfigName( + organizationLocationRecommenderConfigName: string + ) { + return this.pathTemplates.organizationLocationRecommenderConfigPathTemplate.match( + organizationLocationRecommenderConfigName + ).recommender; + } + + /** + * Return a fully-qualified organizationLocationRecommenderRecommendation resource name string. + * + * @param {string} organization + * @param {string} location + * @param {string} recommender + * @param {string} recommendation + * @returns {string} Resource name string. + */ + organizationLocationRecommenderRecommendationPath( + organization: string, + location: string, + recommender: string, + recommendation: string + ) { + return this.pathTemplates.organizationLocationRecommenderRecommendationPathTemplate.render( + { + organization: organization, + location: location, + recommender: recommender, + recommendation: recommendation, + } + ); + } + + /** + * Parse the organization from OrganizationLocationRecommenderRecommendation resource. + * + * @param {string} organizationLocationRecommenderRecommendationName + * A fully-qualified path representing organization_location_recommender_recommendation resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationLocationRecommenderRecommendationName( + organizationLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.organizationLocationRecommenderRecommendationPathTemplate.match( + organizationLocationRecommenderRecommendationName + ).organization; + } + + /** + * Parse the location from OrganizationLocationRecommenderRecommendation resource. + * + * @param {string} organizationLocationRecommenderRecommendationName + * A fully-qualified path representing organization_location_recommender_recommendation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromOrganizationLocationRecommenderRecommendationName( + organizationLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.organizationLocationRecommenderRecommendationPathTemplate.match( + organizationLocationRecommenderRecommendationName + ).location; + } + + /** + * Parse the recommender from OrganizationLocationRecommenderRecommendation resource. + * + * @param {string} organizationLocationRecommenderRecommendationName + * A fully-qualified path representing organization_location_recommender_recommendation resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromOrganizationLocationRecommenderRecommendationName( + organizationLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.organizationLocationRecommenderRecommendationPathTemplate.match( + organizationLocationRecommenderRecommendationName + ).recommender; + } + + /** + * Parse the recommendation from OrganizationLocationRecommenderRecommendation resource. + * + * @param {string} organizationLocationRecommenderRecommendationName + * A fully-qualified path representing organization_location_recommender_recommendation resource. + * @returns {string} A string representing the recommendation. + */ + matchRecommendationFromOrganizationLocationRecommenderRecommendationName( + organizationLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.organizationLocationRecommenderRecommendationPathTemplate.match( + organizationLocationRecommenderRecommendationName + ).recommendation; + } + + /** + * Return a fully-qualified projectLocationInsightType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} insight_type + * @returns {string} Resource name string. + */ + projectLocationInsightTypePath( + project: string, + location: string, + insightType: string + ) { + return this.pathTemplates.projectLocationInsightTypePathTemplate.render({ + project: project, + location: location, + insight_type: insightType, + }); + } + + /** + * Parse the project from ProjectLocationInsightType resource. + * + * @param {string} projectLocationInsightTypeName + * A fully-qualified path representing project_location_insight_type resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationInsightTypeName( + projectLocationInsightTypeName: string + ) { + return this.pathTemplates.projectLocationInsightTypePathTemplate.match( + projectLocationInsightTypeName + ).project; + } + + /** + * Parse the location from ProjectLocationInsightType resource. + * + * @param {string} projectLocationInsightTypeName + * A fully-qualified path representing project_location_insight_type resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationInsightTypeName( + projectLocationInsightTypeName: string + ) { + return this.pathTemplates.projectLocationInsightTypePathTemplate.match( + projectLocationInsightTypeName + ).location; + } + + /** + * Parse the insight_type from ProjectLocationInsightType resource. + * + * @param {string} projectLocationInsightTypeName + * A fully-qualified path representing project_location_insight_type resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromProjectLocationInsightTypeName( + projectLocationInsightTypeName: string + ) { + return this.pathTemplates.projectLocationInsightTypePathTemplate.match( + projectLocationInsightTypeName + ).insight_type; + } + + /** + * Return a fully-qualified projectLocationInsightTypeConfig resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} insight_type + * @returns {string} Resource name string. + */ + projectLocationInsightTypeConfigPath( + project: string, + location: string, + insightType: string + ) { + return this.pathTemplates.projectLocationInsightTypeConfigPathTemplate.render( + { + project: project, + location: location, + insight_type: insightType, + } + ); + } + + /** + * Parse the project from ProjectLocationInsightTypeConfig resource. + * + * @param {string} projectLocationInsightTypeConfigName + * A fully-qualified path representing project_location_insight_type_config resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationInsightTypeConfigName( + projectLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.projectLocationInsightTypeConfigPathTemplate.match( + projectLocationInsightTypeConfigName + ).project; + } + + /** + * Parse the location from ProjectLocationInsightTypeConfig resource. + * + * @param {string} projectLocationInsightTypeConfigName + * A fully-qualified path representing project_location_insight_type_config resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationInsightTypeConfigName( + projectLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.projectLocationInsightTypeConfigPathTemplate.match( + projectLocationInsightTypeConfigName + ).location; + } + + /** + * Parse the insight_type from ProjectLocationInsightTypeConfig resource. + * + * @param {string} projectLocationInsightTypeConfigName + * A fully-qualified path representing project_location_insight_type_config resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromProjectLocationInsightTypeConfigName( + projectLocationInsightTypeConfigName: string + ) { + return this.pathTemplates.projectLocationInsightTypeConfigPathTemplate.match( + projectLocationInsightTypeConfigName + ).insight_type; + } + + /** + * Return a fully-qualified projectLocationInsightTypeInsight resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} insight_type + * @param {string} insight + * @returns {string} Resource name string. + */ + projectLocationInsightTypeInsightPath( + project: string, + location: string, + insightType: string, + insight: string + ) { + return this.pathTemplates.projectLocationInsightTypeInsightPathTemplate.render( + { + project: project, + location: location, + insight_type: insightType, + insight: insight, + } + ); + } + + /** + * Parse the project from ProjectLocationInsightTypeInsight resource. + * + * @param {string} projectLocationInsightTypeInsightName + * A fully-qualified path representing project_location_insight_type_insight resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationInsightTypeInsightName( + projectLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.projectLocationInsightTypeInsightPathTemplate.match( + projectLocationInsightTypeInsightName + ).project; + } + + /** + * Parse the location from ProjectLocationInsightTypeInsight resource. + * + * @param {string} projectLocationInsightTypeInsightName + * A fully-qualified path representing project_location_insight_type_insight resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationInsightTypeInsightName( + projectLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.projectLocationInsightTypeInsightPathTemplate.match( + projectLocationInsightTypeInsightName + ).location; + } + + /** + * Parse the insight_type from ProjectLocationInsightTypeInsight resource. + * + * @param {string} projectLocationInsightTypeInsightName + * A fully-qualified path representing project_location_insight_type_insight resource. + * @returns {string} A string representing the insight_type. + */ + matchInsightTypeFromProjectLocationInsightTypeInsightName( + projectLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.projectLocationInsightTypeInsightPathTemplate.match( + projectLocationInsightTypeInsightName + ).insight_type; + } + + /** + * Parse the insight from ProjectLocationInsightTypeInsight resource. + * + * @param {string} projectLocationInsightTypeInsightName + * A fully-qualified path representing project_location_insight_type_insight resource. + * @returns {string} A string representing the insight. + */ + matchInsightFromProjectLocationInsightTypeInsightName( + projectLocationInsightTypeInsightName: string + ) { + return this.pathTemplates.projectLocationInsightTypeInsightPathTemplate.match( + projectLocationInsightTypeInsightName + ).insight; + } + + /** + * Return a fully-qualified projectLocationRecommender resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} recommender + * @returns {string} Resource name string. + */ + projectLocationRecommenderPath( + project: string, + location: string, + recommender: string + ) { + return this.pathTemplates.projectLocationRecommenderPathTemplate.render({ + project: project, + location: location, + recommender: recommender, + }); + } + + /** + * Parse the project from ProjectLocationRecommender resource. + * + * @param {string} projectLocationRecommenderName + * A fully-qualified path representing project_location_recommender resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationRecommenderName( + projectLocationRecommenderName: string + ) { + return this.pathTemplates.projectLocationRecommenderPathTemplate.match( + projectLocationRecommenderName + ).project; + } + + /** + * Parse the location from ProjectLocationRecommender resource. + * + * @param {string} projectLocationRecommenderName + * A fully-qualified path representing project_location_recommender resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationRecommenderName( + projectLocationRecommenderName: string + ) { + return this.pathTemplates.projectLocationRecommenderPathTemplate.match( + projectLocationRecommenderName + ).location; + } + + /** + * Parse the recommender from ProjectLocationRecommender resource. + * + * @param {string} projectLocationRecommenderName + * A fully-qualified path representing project_location_recommender resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromProjectLocationRecommenderName( + projectLocationRecommenderName: string + ) { + return this.pathTemplates.projectLocationRecommenderPathTemplate.match( + projectLocationRecommenderName + ).recommender; + } + + /** + * Return a fully-qualified projectLocationRecommenderConfig resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} recommender + * @returns {string} Resource name string. + */ + projectLocationRecommenderConfigPath( + project: string, + location: string, + recommender: string + ) { + return this.pathTemplates.projectLocationRecommenderConfigPathTemplate.render( + { + project: project, + location: location, + recommender: recommender, + } + ); + } + + /** + * Parse the project from ProjectLocationRecommenderConfig resource. + * + * @param {string} projectLocationRecommenderConfigName + * A fully-qualified path representing project_location_recommender_config resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationRecommenderConfigName( + projectLocationRecommenderConfigName: string + ) { + return this.pathTemplates.projectLocationRecommenderConfigPathTemplate.match( + projectLocationRecommenderConfigName + ).project; + } + + /** + * Parse the location from ProjectLocationRecommenderConfig resource. + * + * @param {string} projectLocationRecommenderConfigName + * A fully-qualified path representing project_location_recommender_config resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationRecommenderConfigName( + projectLocationRecommenderConfigName: string + ) { + return this.pathTemplates.projectLocationRecommenderConfigPathTemplate.match( + projectLocationRecommenderConfigName + ).location; + } + + /** + * Parse the recommender from ProjectLocationRecommenderConfig resource. + * + * @param {string} projectLocationRecommenderConfigName + * A fully-qualified path representing project_location_recommender_config resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromProjectLocationRecommenderConfigName( + projectLocationRecommenderConfigName: string + ) { + return this.pathTemplates.projectLocationRecommenderConfigPathTemplate.match( + projectLocationRecommenderConfigName + ).recommender; + } + + /** + * Return a fully-qualified projectLocationRecommenderRecommendation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} recommender + * @param {string} recommendation + * @returns {string} Resource name string. + */ + projectLocationRecommenderRecommendationPath( + project: string, + location: string, + recommender: string, + recommendation: string + ) { + return this.pathTemplates.projectLocationRecommenderRecommendationPathTemplate.render( + { + project: project, + location: location, + recommender: recommender, + recommendation: recommendation, + } + ); + } + + /** + * Parse the project from ProjectLocationRecommenderRecommendation resource. + * + * @param {string} projectLocationRecommenderRecommendationName + * A fully-qualified path representing project_location_recommender_recommendation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationRecommenderRecommendationName( + projectLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.projectLocationRecommenderRecommendationPathTemplate.match( + projectLocationRecommenderRecommendationName + ).project; + } + + /** + * Parse the location from ProjectLocationRecommenderRecommendation resource. + * + * @param {string} projectLocationRecommenderRecommendationName + * A fully-qualified path representing project_location_recommender_recommendation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationRecommenderRecommendationName( + projectLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.projectLocationRecommenderRecommendationPathTemplate.match( + projectLocationRecommenderRecommendationName + ).location; + } + + /** + * Parse the recommender from ProjectLocationRecommenderRecommendation resource. + * + * @param {string} projectLocationRecommenderRecommendationName + * A fully-qualified path representing project_location_recommender_recommendation resource. + * @returns {string} A string representing the recommender. + */ + matchRecommenderFromProjectLocationRecommenderRecommendationName( + projectLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.projectLocationRecommenderRecommendationPathTemplate.match( + projectLocationRecommenderRecommendationName + ).recommender; + } + + /** + * Parse the recommendation from ProjectLocationRecommenderRecommendation resource. + * + * @param {string} projectLocationRecommenderRecommendationName + * A fully-qualified path representing project_location_recommender_recommendation resource. + * @returns {string} A string representing the recommendation. + */ + matchRecommendationFromProjectLocationRecommenderRecommendationName( + projectLocationRecommenderRecommendationName: string + ) { + return this.pathTemplates.projectLocationRecommenderRecommendationPathTemplate.match( + projectLocationRecommenderRecommendationName + ).recommendation; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.recommenderStub && !this._terminated) { + return this.recommenderStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-recommender/src/v1beta1/recommender_client_config.json b/packages/google-cloud-recommender/src/v1beta1/recommender_client_config.json new file mode 100644 index 000000000000..76661e8589b8 --- /dev/null +++ b/packages/google-cloud-recommender/src/v1beta1/recommender_client_config.json @@ -0,0 +1,82 @@ +{ + "interfaces": { + "google.cloud.recommender.v1beta1.Recommender": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "ListInsights": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetInsight": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MarkInsightAccepted": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListRecommendations": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetRecommendation": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MarkRecommendationClaimed": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "MarkRecommendationSucceeded": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "MarkRecommendationFailed": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetRecommenderConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateRecommenderConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetInsightTypeConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateInsightTypeConfig": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-recommender/src/v1beta1/recommender_proto_list.json b/packages/google-cloud-recommender/src/v1beta1/recommender_proto_list.json new file mode 100644 index 000000000000..7e1fb4b4ee63 --- /dev/null +++ b/packages/google-cloud-recommender/src/v1beta1/recommender_proto_list.json @@ -0,0 +1,7 @@ +[ + "../../protos/google/cloud/recommender/v1beta1/insight.proto", + "../../protos/google/cloud/recommender/v1beta1/insight_type_config.proto", + "../../protos/google/cloud/recommender/v1beta1/recommendation.proto", + "../../protos/google/cloud/recommender/v1beta1/recommender_config.proto", + "../../protos/google/cloud/recommender/v1beta1/recommender_service.proto" +] diff --git a/packages/google-cloud-recommender/system-test/fixtures/sample/src/index.js b/packages/google-cloud-recommender/system-test/fixtures/sample/src/index.js index c33833cd73ca..44cdb3375eca 100644 --- a/packages/google-cloud-recommender/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-recommender/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recommender/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-recommender/system-test/fixtures/sample/src/index.ts index 659c9f953154..5142e8f3f3e0 100644 --- a/packages/google-cloud-recommender/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-recommender/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recommender/system-test/install.ts b/packages/google-cloud-recommender/system-test/install.ts index d2d61c0396fc..f61fe236476b 100644 --- a/packages/google-cloud-recommender/system-test/install.ts +++ b/packages/google-cloud-recommender/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-recommender/test/gapic_recommender_v1.ts b/packages/google-cloud-recommender/test/gapic_recommender_v1.ts index 832227011386..eda8184f80cd 100644 --- a/packages/google-cloud-recommender/test/gapic_recommender_v1.ts +++ b/packages/google-cloud-recommender/test/gapic_recommender_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -27,6 +27,21 @@ import {PassThrough} from 'stream'; import {protobuf} from 'google-gax'; +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + function generateSampleMessage(instance: T) { const filledObject = ( instance.constructor as typeof protobuf.Message @@ -113,84 +128,101 @@ function stubAsyncIterationCall( } describe('v1.RecommenderClient', () => { - it('has servicePath', () => { - const servicePath = recommenderModule.v1.RecommenderClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = recommenderModule.v1.RecommenderClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = recommenderModule.v1.RecommenderClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = recommenderModule.v1.RecommenderClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = recommenderModule.v1.RecommenderClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = recommenderModule.v1.RecommenderClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = new recommenderModule.v1.RecommenderClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = new recommenderModule.v1.RecommenderClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = new recommenderModule.v1.RecommenderClient({ - fallback: true, + it('should create a client with gRPC fallback', () => { + const client = new recommenderModule.v1.RecommenderClient({ + fallback: true, + }); + assert(client); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new recommenderModule.v1.RecommenderClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.recommenderStub, undefined); + await client.initialize(); + assert(client.recommenderStub); }); - assert.strictEqual(client.recommenderStub, undefined); - await client.initialize(); - assert(client.recommenderStub); - }); - it('has close method', () => { - const client = new recommenderModule.v1.RecommenderClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.recommenderStub); + client.close().then(() => { + done(); + }); }); - client.close(); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new recommenderModule.v1.RecommenderClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.recommenderStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new recommenderModule.v1.RecommenderClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getInsight', () => { @@ -203,26 +235,26 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.GetInsightRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetInsightRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.cloud.recommender.v1.Insight() ); client.innerApiCalls.getInsight = stubSimpleCall(expectedResponse); const [response] = await client.getInsight(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getInsight as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getInsight without error using callback', async () => { @@ -234,15 +266,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.GetInsightRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetInsightRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.cloud.recommender.v1.Insight() ); @@ -265,11 +294,14 @@ describe('v1.RecommenderClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getInsight as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getInsight with error', async () => { @@ -281,26 +313,45 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.GetInsightRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetInsightRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getInsight = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getInsight(request), expectedError); - assert( - (client.innerApiCalls.getInsight as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) + const actualRequest = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInsight with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.GetInsightRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetInsightRequest', + ['name'] ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getInsight(request), expectedError); }); }); @@ -314,15 +365,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.MarkInsightAcceptedRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkInsightAcceptedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.cloud.recommender.v1.Insight() ); @@ -330,11 +378,14 @@ describe('v1.RecommenderClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.markInsightAccepted(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.markInsightAccepted as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes markInsightAccepted without error using callback', async () => { @@ -346,15 +397,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.MarkInsightAcceptedRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkInsightAcceptedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.cloud.recommender.v1.Insight() ); @@ -377,11 +425,14 @@ describe('v1.RecommenderClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.markInsightAccepted as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes markInsightAccepted with error', async () => { @@ -393,26 +444,45 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.MarkInsightAcceptedRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkInsightAcceptedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.markInsightAccepted = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.markInsightAccepted(request), expectedError); - assert( - (client.innerApiCalls.markInsightAccepted as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) + const actualRequest = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markInsightAccepted with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkInsightAcceptedRequest() ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkInsightAcceptedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.markInsightAccepted(request), expectedError); }); }); @@ -426,26 +496,26 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.GetRecommendationRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetRecommendationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.cloud.recommender.v1.Recommendation() ); client.innerApiCalls.getRecommendation = stubSimpleCall(expectedResponse); const [response] = await client.getRecommendation(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getRecommendation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getRecommendation without error using callback', async () => { @@ -457,15 +527,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.GetRecommendationRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetRecommendationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.cloud.recommender.v1.Recommendation() ); @@ -488,11 +555,14 @@ describe('v1.RecommenderClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getRecommendation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getRecommendation with error', async () => { @@ -504,26 +574,45 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.GetRecommendationRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetRecommendationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getRecommendation = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getRecommendation(request), expectedError); - assert( - (client.innerApiCalls.getRecommendation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) + const actualRequest = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommendation with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.GetRecommendationRequest() ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetRecommendationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getRecommendation(request), expectedError); }); }); @@ -537,15 +626,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.MarkRecommendationClaimedRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationClaimedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.cloud.recommender.v1.Recommendation() ); @@ -553,11 +639,14 @@ describe('v1.RecommenderClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.markRecommendationClaimed(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.markRecommendationClaimed as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes markRecommendationClaimed without error using callback', async () => { @@ -569,15 +658,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.MarkRecommendationClaimedRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationClaimedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.cloud.recommender.v1.Recommendation() ); @@ -600,11 +686,14 @@ describe('v1.RecommenderClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.markRecommendationClaimed as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes markRecommendationClaimed with error', async () => { @@ -616,15 +705,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.MarkRecommendationClaimedRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationClaimedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.markRecommendationClaimed = stubSimpleCall( undefined, @@ -634,76 +720,644 @@ describe('v1.RecommenderClient', () => { client.markRecommendationClaimed(request), expectedError ); - assert( - (client.innerApiCalls.markRecommendationClaimed as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) + const actualRequest = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationClaimed with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkRecommendationClaimedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationClaimedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.markRecommendationClaimed(request), + expectedError + ); + }); + }); + + describe('markRecommendationSucceeded', () => { + it('invokes markRecommendationSucceeded without error', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkRecommendationSucceededRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationSucceededRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1.Recommendation() + ); + client.innerApiCalls.markRecommendationSucceeded = + stubSimpleCall(expectedResponse); + const [response] = await client.markRecommendationSucceeded(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationSucceeded without error using callback', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkRecommendationSucceededRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationSucceededRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1.Recommendation() + ); + client.innerApiCalls.markRecommendationSucceeded = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.markRecommendationSucceeded( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1.IRecommendation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationSucceeded with error', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkRecommendationSucceededRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationSucceededRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.markRecommendationSucceeded = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.markRecommendationSucceeded(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationSucceeded with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkRecommendationSucceededRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationSucceededRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.markRecommendationSucceeded(request), + expectedError + ); + }); + }); + + describe('markRecommendationFailed', () => { + it('invokes markRecommendationFailed without error', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkRecommendationFailedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationFailedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1.Recommendation() + ); + client.innerApiCalls.markRecommendationFailed = + stubSimpleCall(expectedResponse); + const [response] = await client.markRecommendationFailed(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationFailed without error using callback', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkRecommendationFailedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationFailedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1.Recommendation() + ); + client.innerApiCalls.markRecommendationFailed = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.markRecommendationFailed( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1.IRecommendation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationFailed with error', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkRecommendationFailedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationFailedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.markRecommendationFailed = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.markRecommendationFailed(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationFailed with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.MarkRecommendationFailedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.MarkRecommendationFailedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.markRecommendationFailed(request), + expectedError + ); + }); + }); + + describe('getRecommenderConfig', () => { + it('invokes getRecommenderConfig without error', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.GetRecommenderConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetRecommenderConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1.RecommenderConfig() + ); + client.innerApiCalls.getRecommenderConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.getRecommenderConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommenderConfig without error using callback', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.GetRecommenderConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetRecommenderConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1.RecommenderConfig() + ); + client.innerApiCalls.getRecommenderConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getRecommenderConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1.IRecommenderConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommenderConfig with error', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.GetRecommenderConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetRecommenderConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getRecommenderConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getRecommenderConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommenderConfig with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.GetRecommenderConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetRecommenderConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getRecommenderConfig(request), expectedError); + }); + }); + + describe('updateRecommenderConfig', () => { + it('invokes updateRecommenderConfig without error', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.UpdateRecommenderConfigRequest() + ); + request.recommenderConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.UpdateRecommenderConfigRequest', + ['recommenderConfig', 'name'] + ); + request.recommenderConfig.name = defaultValue1; + const expectedHeaderRequestParams = `recommender_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1.RecommenderConfig() + ); + client.innerApiCalls.updateRecommenderConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.updateRecommenderConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateRecommenderConfig without error using callback', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.UpdateRecommenderConfigRequest() + ); + request.recommenderConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.UpdateRecommenderConfigRequest', + ['recommenderConfig', 'name'] + ); + request.recommenderConfig.name = defaultValue1; + const expectedHeaderRequestParams = `recommender_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1.RecommenderConfig() + ); + client.innerApiCalls.updateRecommenderConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateRecommenderConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1.IRecommenderConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateRecommenderConfig with error', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.UpdateRecommenderConfigRequest() + ); + request.recommenderConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.UpdateRecommenderConfigRequest', + ['recommenderConfig', 'name'] + ); + request.recommenderConfig.name = defaultValue1; + const expectedHeaderRequestParams = `recommender_config.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateRecommenderConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateRecommenderConfig(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateRecommenderConfig with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.UpdateRecommenderConfigRequest() + ); + request.recommenderConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.UpdateRecommenderConfigRequest', + ['recommenderConfig', 'name'] + ); + request.recommenderConfig.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateRecommenderConfig(request), + expectedError ); }); }); - describe('markRecommendationSucceeded', () => { - it('invokes markRecommendationSucceeded without error', async () => { + describe('getInsightTypeConfig', () => { + it('invokes getInsightTypeConfig without error', async () => { const client = new recommenderModule.v1.RecommenderClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.recommender.v1.MarkRecommendationSucceededRequest() + new protos.google.cloud.recommender.v1.GetInsightTypeConfigRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetInsightTypeConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.recommender.v1.Recommendation() + new protos.google.cloud.recommender.v1.InsightTypeConfig() ); - client.innerApiCalls.markRecommendationSucceeded = + client.innerApiCalls.getInsightTypeConfig = stubSimpleCall(expectedResponse); - const [response] = await client.markRecommendationSucceeded(request); + const [response] = await client.getInsightTypeConfig(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.markRecommendationSucceeded as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes markRecommendationSucceeded without error using callback', async () => { + it('invokes getInsightTypeConfig without error using callback', async () => { const client = new recommenderModule.v1.RecommenderClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.recommender.v1.MarkRecommendationSucceededRequest() + new protos.google.cloud.recommender.v1.GetInsightTypeConfigRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetInsightTypeConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.recommender.v1.Recommendation() + new protos.google.cloud.recommender.v1.InsightTypeConfig() ); - client.innerApiCalls.markRecommendationSucceeded = + client.innerApiCalls.getInsightTypeConfig = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.markRecommendationSucceeded( + client.getInsightTypeConfig( request, ( err?: Error | null, - result?: protos.google.cloud.recommender.v1.IRecommendation | null + result?: protos.google.cloud.recommender.v1.IInsightTypeConfig | null ) => { if (err) { reject(err); @@ -715,110 +1369,128 @@ describe('v1.RecommenderClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.markRecommendationSucceeded as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes markRecommendationSucceeded with error', async () => { + it('invokes getInsightTypeConfig with error', async () => { const client = new recommenderModule.v1.RecommenderClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.recommender.v1.MarkRecommendationSucceededRequest() + new protos.google.cloud.recommender.v1.GetInsightTypeConfigRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetInsightTypeConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.markRecommendationSucceeded = stubSimpleCall( + client.innerApiCalls.getInsightTypeConfig = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.markRecommendationSucceeded(request), - expectedError + await assert.rejects(client.getInsightTypeConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInsightTypeConfig with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.GetInsightTypeConfigRequest() ); - assert( - (client.innerApiCalls.markRecommendationSucceeded as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.GetInsightTypeConfigRequest', + ['name'] ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getInsightTypeConfig(request), expectedError); }); }); - describe('markRecommendationFailed', () => { - it('invokes markRecommendationFailed without error', async () => { + describe('updateInsightTypeConfig', () => { + it('invokes updateInsightTypeConfig without error', async () => { const client = new recommenderModule.v1.RecommenderClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.recommender.v1.MarkRecommendationFailedRequest() + new protos.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.insightTypeConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest', + ['insightTypeConfig', 'name'] + ); + request.insightTypeConfig.name = defaultValue1; + const expectedHeaderRequestParams = `insight_type_config.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.recommender.v1.Recommendation() + new protos.google.cloud.recommender.v1.InsightTypeConfig() ); - client.innerApiCalls.markRecommendationFailed = + client.innerApiCalls.updateInsightTypeConfig = stubSimpleCall(expectedResponse); - const [response] = await client.markRecommendationFailed(request); + const [response] = await client.updateInsightTypeConfig(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.markRecommendationFailed as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes markRecommendationFailed without error using callback', async () => { + it('invokes updateInsightTypeConfig without error using callback', async () => { const client = new recommenderModule.v1.RecommenderClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.recommender.v1.MarkRecommendationFailedRequest() + new protos.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.insightTypeConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest', + ['insightTypeConfig', 'name'] + ); + request.insightTypeConfig.name = defaultValue1; + const expectedHeaderRequestParams = `insight_type_config.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.recommender.v1.Recommendation() + new protos.google.cloud.recommender.v1.InsightTypeConfig() ); - client.innerApiCalls.markRecommendationFailed = + client.innerApiCalls.updateInsightTypeConfig = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.markRecommendationFailed( + client.updateInsightTypeConfig( request, ( err?: Error | null, - result?: protos.google.cloud.recommender.v1.IRecommendation | null + result?: protos.google.cloud.recommender.v1.IInsightTypeConfig | null ) => { if (err) { reject(err); @@ -830,44 +1502,71 @@ describe('v1.RecommenderClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.markRecommendationFailed as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes markRecommendationFailed with error', async () => { + it('invokes updateInsightTypeConfig with error', async () => { const client = new recommenderModule.v1.RecommenderClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.recommender.v1.MarkRecommendationFailedRequest() + new protos.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + request.insightTypeConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest', + ['insightTypeConfig', 'name'] + ); + request.insightTypeConfig.name = defaultValue1; + const expectedHeaderRequestParams = `insight_type_config.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.markRecommendationFailed = stubSimpleCall( + client.innerApiCalls.updateInsightTypeConfig = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.markRecommendationFailed(request), + client.updateInsightTypeConfig(request), expectedError ); - assert( - (client.innerApiCalls.markRecommendationFailed as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) + const actualRequest = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateInsightTypeConfig with closed client', async () => { + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest() + ); + request.insightTypeConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.UpdateInsightTypeConfigRequest', + ['insightTypeConfig', 'name'] + ); + request.insightTypeConfig.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateInsightTypeConfig(request), + expectedError ); }); }); @@ -882,15 +1581,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListInsightsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.recommender.v1.Insight()), generateSampleMessage(new protos.google.cloud.recommender.v1.Insight()), @@ -899,11 +1595,14 @@ describe('v1.RecommenderClient', () => { client.innerApiCalls.listInsights = stubSimpleCall(expectedResponse); const [response] = await client.listInsights(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listInsights as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listInsights without error using callback', async () => { @@ -915,15 +1614,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListInsightsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.recommender.v1.Insight()), generateSampleMessage(new protos.google.cloud.recommender.v1.Insight()), @@ -948,11 +1644,14 @@ describe('v1.RecommenderClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listInsights as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listInsights with error', async () => { @@ -964,26 +1663,26 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListInsightsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listInsights = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listInsights(request), expectedError); - assert( - (client.innerApiCalls.listInsights as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listInsightsStream without error', async () => { @@ -995,8 +1694,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListInsightsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.recommender.v1.Insight()), generateSampleMessage(new protos.google.cloud.recommender.v1.Insight()), @@ -1027,11 +1730,12 @@ describe('v1.RecommenderClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listInsights, request) ); - assert.strictEqual( - ( - client.descriptors.page.listInsights.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listInsights.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -1044,8 +1748,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListInsightsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listInsights.createStream = stubPageStreamingCall( undefined, @@ -1073,11 +1781,12 @@ describe('v1.RecommenderClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listInsights, request) ); - assert.strictEqual( - ( - client.descriptors.page.listInsights.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listInsights.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -1090,8 +1799,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListInsightsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.recommender.v1.Insight()), generateSampleMessage(new protos.google.cloud.recommender.v1.Insight()), @@ -1111,11 +1824,12 @@ describe('v1.RecommenderClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listInsights.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listInsights.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -1128,8 +1842,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListInsightsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listInsights.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -1146,11 +1864,12 @@ describe('v1.RecommenderClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listInsights.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listInsights.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -1165,15 +1884,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListRecommendationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.recommender.v1.Recommendation() @@ -1189,11 +1905,14 @@ describe('v1.RecommenderClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listRecommendations(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listRecommendations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listRecommendations without error using callback', async () => { @@ -1205,15 +1924,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListRecommendationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.recommender.v1.Recommendation() @@ -1244,11 +1960,14 @@ describe('v1.RecommenderClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listRecommendations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listRecommendations with error', async () => { @@ -1260,26 +1979,26 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListRecommendationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listRecommendations = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listRecommendations(request), expectedError); - assert( - (client.innerApiCalls.listRecommendations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listRecommendationsStream without error', async () => { @@ -1291,8 +2010,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListRecommendationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.recommender.v1.Recommendation() @@ -1330,11 +2053,12 @@ describe('v1.RecommenderClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listRecommendations, request) ); - assert.strictEqual( - ( - client.descriptors.page.listRecommendations.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listRecommendations.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -1347,8 +2071,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListRecommendationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listRecommendations.createStream = stubPageStreamingCall(undefined, expectedError); @@ -1375,11 +2103,12 @@ describe('v1.RecommenderClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listRecommendations, request) ); - assert.strictEqual( - ( - client.descriptors.page.listRecommendations.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listRecommendations.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -1392,8 +2121,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListRecommendationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.recommender.v1.Recommendation() @@ -1420,11 +2153,12 @@ describe('v1.RecommenderClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listRecommendations.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listRecommendations.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -1437,8 +2171,12 @@ describe('v1.RecommenderClient', () => { const request = generateSampleMessage( new protos.google.cloud.recommender.v1.ListRecommendationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listRecommendations.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -1456,11 +2194,12 @@ describe('v1.RecommenderClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listRecommendations.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + assert( + (client.descriptors.page.listRecommendations.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -2152,20 +2891,105 @@ describe('v1.RecommenderClient', () => { .match as SinonStub ) .getCall(-1) - .calledWith(fakePath) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFolderLocationRecommenderRecommendationName', () => { + const result = + client.matchLocationFromFolderLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .folderLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromFolderLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommenderFromFolderLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates + .folderLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommendationFromFolderLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommendationFromFolderLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommendationValue'); + assert( + ( + client.pathTemplates + .folderLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('organizationLocationInsightType', () => { + const fakePath = '/rendered/path/organizationLocationInsightType'; + const expectedParameters = { + organization: 'organizationValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + }; + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationLocationInsightTypePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationLocationInsightTypePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationLocationInsightTypePath', () => { + const result = client.organizationLocationInsightTypePath( + 'organizationValue', + 'locationValue', + 'insightTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.organizationLocationInsightTypePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) ); }); - it('matchLocationFromFolderLocationRecommenderRecommendationName', () => { + it('matchOrganizationFromOrganizationLocationInsightTypeName', () => { const result = - client.matchLocationFromFolderLocationRecommenderRecommendationName( + client.matchOrganizationFromOrganizationLocationInsightTypeName( fakePath ); - assert.strictEqual(result, 'locationValue'); + assert.strictEqual(result, 'organizationValue'); assert( ( - client.pathTemplates - .folderLocationRecommenderRecommendationPathTemplate + client.pathTemplates.organizationLocationInsightTypePathTemplate .match as SinonStub ) .getCall(-1) @@ -2173,16 +2997,13 @@ describe('v1.RecommenderClient', () => { ); }); - it('matchRecommenderFromFolderLocationRecommenderRecommendationName', () => { + it('matchLocationFromOrganizationLocationInsightTypeName', () => { const result = - client.matchRecommenderFromFolderLocationRecommenderRecommendationName( - fakePath - ); - assert.strictEqual(result, 'recommenderValue'); + client.matchLocationFromOrganizationLocationInsightTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); assert( ( - client.pathTemplates - .folderLocationRecommenderRecommendationPathTemplate + client.pathTemplates.organizationLocationInsightTypePathTemplate .match as SinonStub ) .getCall(-1) @@ -2190,16 +3011,15 @@ describe('v1.RecommenderClient', () => { ); }); - it('matchRecommendationFromFolderLocationRecommenderRecommendationName', () => { + it('matchInsightTypeFromOrganizationLocationInsightTypeName', () => { const result = - client.matchRecommendationFromFolderLocationRecommenderRecommendationName( + client.matchInsightTypeFromOrganizationLocationInsightTypeName( fakePath ); - assert.strictEqual(result, 'recommendationValue'); + assert.strictEqual(result, 'insightTypeValue'); assert( ( - client.pathTemplates - .folderLocationRecommenderRecommendationPathTemplate + client.pathTemplates.organizationLocationInsightTypePathTemplate .match as SinonStub ) .getCall(-1) @@ -2208,8 +3028,8 @@ describe('v1.RecommenderClient', () => { }); }); - describe('organizationLocationInsightType', () => { - const fakePath = '/rendered/path/organizationLocationInsightType'; + describe('organizationLocationInsightTypeConfig', () => { + const fakePath = '/rendered/path/organizationLocationInsightTypeConfig'; const expectedParameters = { organization: 'organizationValue', location: 'locationValue', @@ -2220,13 +3040,13 @@ describe('v1.RecommenderClient', () => { projectId: 'bogus', }); client.initialize(); - client.pathTemplates.organizationLocationInsightTypePathTemplate.render = + client.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.render = sinon.stub().returns(fakePath); - client.pathTemplates.organizationLocationInsightTypePathTemplate.match = + client.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.match = sinon.stub().returns(expectedParameters); - it('organizationLocationInsightTypePath', () => { - const result = client.organizationLocationInsightTypePath( + it('organizationLocationInsightTypeConfigPath', () => { + const result = client.organizationLocationInsightTypeConfigPath( 'organizationValue', 'locationValue', 'insightTypeValue' @@ -2234,7 +3054,8 @@ describe('v1.RecommenderClient', () => { assert.strictEqual(result, fakePath); assert( ( - client.pathTemplates.organizationLocationInsightTypePathTemplate + client.pathTemplates + .organizationLocationInsightTypeConfigPathTemplate .render as SinonStub ) .getCall(-1) @@ -2242,15 +3063,16 @@ describe('v1.RecommenderClient', () => { ); }); - it('matchOrganizationFromOrganizationLocationInsightTypeName', () => { + it('matchOrganizationFromOrganizationLocationInsightTypeConfigName', () => { const result = - client.matchOrganizationFromOrganizationLocationInsightTypeName( + client.matchOrganizationFromOrganizationLocationInsightTypeConfigName( fakePath ); assert.strictEqual(result, 'organizationValue'); assert( ( - client.pathTemplates.organizationLocationInsightTypePathTemplate + client.pathTemplates + .organizationLocationInsightTypeConfigPathTemplate .match as SinonStub ) .getCall(-1) @@ -2258,13 +3080,16 @@ describe('v1.RecommenderClient', () => { ); }); - it('matchLocationFromOrganizationLocationInsightTypeName', () => { + it('matchLocationFromOrganizationLocationInsightTypeConfigName', () => { const result = - client.matchLocationFromOrganizationLocationInsightTypeName(fakePath); + client.matchLocationFromOrganizationLocationInsightTypeConfigName( + fakePath + ); assert.strictEqual(result, 'locationValue'); assert( ( - client.pathTemplates.organizationLocationInsightTypePathTemplate + client.pathTemplates + .organizationLocationInsightTypeConfigPathTemplate .match as SinonStub ) .getCall(-1) @@ -2272,15 +3097,16 @@ describe('v1.RecommenderClient', () => { ); }); - it('matchInsightTypeFromOrganizationLocationInsightTypeName', () => { + it('matchInsightTypeFromOrganizationLocationInsightTypeConfigName', () => { const result = - client.matchInsightTypeFromOrganizationLocationInsightTypeName( + client.matchInsightTypeFromOrganizationLocationInsightTypeConfigName( fakePath ); assert.strictEqual(result, 'insightTypeValue'); assert( ( - client.pathTemplates.organizationLocationInsightTypePathTemplate + client.pathTemplates + .organizationLocationInsightTypeConfigPathTemplate .match as SinonStub ) .getCall(-1) @@ -2476,6 +3302,93 @@ describe('v1.RecommenderClient', () => { }); }); + describe('organizationLocationRecommenderConfig', () => { + const fakePath = '/rendered/path/organizationLocationRecommenderConfig'; + const expectedParameters = { + organization: 'organizationValue', + location: 'locationValue', + recommender: 'recommenderValue', + }; + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationLocationRecommenderConfigPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationLocationRecommenderConfigPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationLocationRecommenderConfigPath', () => { + const result = client.organizationLocationRecommenderConfigPath( + 'organizationValue', + 'locationValue', + 'recommenderValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderConfigPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationLocationRecommenderConfigName', () => { + const result = + client.matchOrganizationFromOrganizationLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromOrganizationLocationRecommenderConfigName', () => { + const result = + client.matchLocationFromOrganizationLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromOrganizationLocationRecommenderConfigName', () => { + const result = + client.matchRecommenderFromOrganizationLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('organizationLocationRecommenderRecommendation', () => { const fakePath = '/rendered/path/organizationLocationRecommenderRecommendation'; @@ -2662,6 +3575,87 @@ describe('v1.RecommenderClient', () => { }); }); + describe('projectLocationInsightTypeConfig', () => { + const fakePath = '/rendered/path/projectLocationInsightTypeConfig'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + }; + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationInsightTypeConfigPath', () => { + const result = client.projectLocationInsightTypeConfigPath( + 'projectValue', + 'locationValue', + 'insightTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationInsightTypeConfigName', () => { + const result = + client.matchProjectFromProjectLocationInsightTypeConfigName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationInsightTypeConfigName', () => { + const result = + client.matchLocationFromProjectLocationInsightTypeConfigName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromProjectLocationInsightTypeConfigName', () => { + const result = + client.matchInsightTypeFromProjectLocationInsightTypeConfigName( + fakePath + ); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationInsightTypeInsight', () => { const fakePath = '/rendered/path/projectLocationInsightTypeInsight'; const expectedParameters = { @@ -2842,6 +3836,87 @@ describe('v1.RecommenderClient', () => { }); }); + describe('projectLocationRecommenderConfig', () => { + const fakePath = '/rendered/path/projectLocationRecommenderConfig'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + recommender: 'recommenderValue', + }; + const client = new recommenderModule.v1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationRecommenderConfigPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationRecommenderConfigPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationRecommenderConfigPath', () => { + const result = client.projectLocationRecommenderConfigPath( + 'projectValue', + 'locationValue', + 'recommenderValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationRecommenderConfigPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationRecommenderConfigName', () => { + const result = + client.matchProjectFromProjectLocationRecommenderConfigName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationRecommenderConfigName', () => { + const result = + client.matchLocationFromProjectLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromProjectLocationRecommenderConfigName', () => { + const result = + client.matchRecommenderFromProjectLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates.projectLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationRecommenderRecommendation', () => { const fakePath = '/rendered/path/projectLocationRecommenderRecommendation'; diff --git a/packages/google-cloud-recommender/test/gapic_recommender_v1beta1.ts b/packages/google-cloud-recommender/test/gapic_recommender_v1beta1.ts new file mode 100644 index 000000000000..2e66463b7f7f --- /dev/null +++ b/packages/google-cloud-recommender/test/gapic_recommender_v1beta1.ts @@ -0,0 +1,4060 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as recommenderModule from '../src'; + +import {PassThrough} from 'stream'; + +import {protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta1.RecommenderClient', () => { + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + recommenderModule.v1beta1.RecommenderClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + recommenderModule.v1beta1.RecommenderClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = recommenderModule.v1beta1.RecommenderClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new recommenderModule.v1beta1.RecommenderClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.recommenderStub, undefined); + await client.initialize(); + assert(client.recommenderStub); + }); + + it('has close method for the initialized client', done => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.recommenderStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.recommenderStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('getInsight', () => { + it('invokes getInsight without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetInsightRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetInsightRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ); + client.innerApiCalls.getInsight = stubSimpleCall(expectedResponse); + const [response] = await client.getInsight(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInsight without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetInsightRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetInsightRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ); + client.innerApiCalls.getInsight = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getInsight( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IInsight | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInsight with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetInsightRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetInsightRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getInsight = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getInsight(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsight as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInsight with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetInsightRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetInsightRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getInsight(request), expectedError); + }); + }); + + describe('markInsightAccepted', () => { + it('invokes markInsightAccepted without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ); + client.innerApiCalls.markInsightAccepted = + stubSimpleCall(expectedResponse); + const [response] = await client.markInsightAccepted(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markInsightAccepted without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ); + client.innerApiCalls.markInsightAccepted = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.markInsightAccepted( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IInsight | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markInsightAccepted with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.markInsightAccepted = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.markInsightAccepted(request), expectedError); + const actualRequest = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markInsightAccepted as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markInsightAccepted with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.markInsightAccepted(request), expectedError); + }); + }); + + describe('getRecommendation', () => { + it('invokes getRecommendation without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetRecommendationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetRecommendationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ); + client.innerApiCalls.getRecommendation = stubSimpleCall(expectedResponse); + const [response] = await client.getRecommendation(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommendation without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetRecommendationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetRecommendationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ); + client.innerApiCalls.getRecommendation = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getRecommendation( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IRecommendation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommendation with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetRecommendationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetRecommendationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getRecommendation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getRecommendation(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommendation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommendation with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetRecommendationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetRecommendationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getRecommendation(request), expectedError); + }); + }); + + describe('markRecommendationClaimed', () => { + it('invokes markRecommendationClaimed without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ); + client.innerApiCalls.markRecommendationClaimed = + stubSimpleCall(expectedResponse); + const [response] = await client.markRecommendationClaimed(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationClaimed without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ); + client.innerApiCalls.markRecommendationClaimed = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.markRecommendationClaimed( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IRecommendation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationClaimed with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.markRecommendationClaimed = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.markRecommendationClaimed(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationClaimed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationClaimed with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.markRecommendationClaimed(request), + expectedError + ); + }); + }); + + describe('markRecommendationSucceeded', () => { + it('invokes markRecommendationSucceeded without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ); + client.innerApiCalls.markRecommendationSucceeded = + stubSimpleCall(expectedResponse); + const [response] = await client.markRecommendationSucceeded(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationSucceeded without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ); + client.innerApiCalls.markRecommendationSucceeded = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.markRecommendationSucceeded( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IRecommendation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationSucceeded with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.markRecommendationSucceeded = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.markRecommendationSucceeded(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationSucceeded as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationSucceeded with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.markRecommendationSucceeded(request), + expectedError + ); + }); + }); + + describe('markRecommendationFailed', () => { + it('invokes markRecommendationFailed without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ); + client.innerApiCalls.markRecommendationFailed = + stubSimpleCall(expectedResponse); + const [response] = await client.markRecommendationFailed(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationFailed without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ); + client.innerApiCalls.markRecommendationFailed = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.markRecommendationFailed( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IRecommendation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationFailed with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.markRecommendationFailed = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.markRecommendationFailed(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.markRecommendationFailed as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes markRecommendationFailed with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.markRecommendationFailed(request), + expectedError + ); + }); + }); + + describe('getRecommenderConfig', () => { + it('invokes getRecommenderConfig without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.RecommenderConfig() + ); + client.innerApiCalls.getRecommenderConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.getRecommenderConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommenderConfig without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.RecommenderConfig() + ); + client.innerApiCalls.getRecommenderConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getRecommenderConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IRecommenderConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommenderConfig with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getRecommenderConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getRecommenderConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getRecommenderConfig with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetRecommenderConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getRecommenderConfig(request), expectedError); + }); + }); + + describe('updateRecommenderConfig', () => { + it('invokes updateRecommenderConfig without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest() + ); + request.recommenderConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest', + ['recommenderConfig', 'name'] + ); + request.recommenderConfig.name = defaultValue1; + const expectedHeaderRequestParams = `recommender_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.RecommenderConfig() + ); + client.innerApiCalls.updateRecommenderConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.updateRecommenderConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateRecommenderConfig without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest() + ); + request.recommenderConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest', + ['recommenderConfig', 'name'] + ); + request.recommenderConfig.name = defaultValue1; + const expectedHeaderRequestParams = `recommender_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.RecommenderConfig() + ); + client.innerApiCalls.updateRecommenderConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateRecommenderConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IRecommenderConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateRecommenderConfig with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest() + ); + request.recommenderConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest', + ['recommenderConfig', 'name'] + ); + request.recommenderConfig.name = defaultValue1; + const expectedHeaderRequestParams = `recommender_config.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateRecommenderConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateRecommenderConfig(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateRecommenderConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateRecommenderConfig with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest() + ); + request.recommenderConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.UpdateRecommenderConfigRequest', + ['recommenderConfig', 'name'] + ); + request.recommenderConfig.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateRecommenderConfig(request), + expectedError + ); + }); + }); + + describe('getInsightTypeConfig', () => { + it('invokes getInsightTypeConfig without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.InsightTypeConfig() + ); + client.innerApiCalls.getInsightTypeConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.getInsightTypeConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInsightTypeConfig without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.InsightTypeConfig() + ); + client.innerApiCalls.getInsightTypeConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getInsightTypeConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IInsightTypeConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInsightTypeConfig with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getInsightTypeConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getInsightTypeConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInsightTypeConfig with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.GetInsightTypeConfigRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getInsightTypeConfig(request), expectedError); + }); + }); + + describe('updateInsightTypeConfig', () => { + it('invokes updateInsightTypeConfig without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest() + ); + request.insightTypeConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest', + ['insightTypeConfig', 'name'] + ); + request.insightTypeConfig.name = defaultValue1; + const expectedHeaderRequestParams = `insight_type_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.InsightTypeConfig() + ); + client.innerApiCalls.updateInsightTypeConfig = + stubSimpleCall(expectedResponse); + const [response] = await client.updateInsightTypeConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateInsightTypeConfig without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest() + ); + request.insightTypeConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest', + ['insightTypeConfig', 'name'] + ); + request.insightTypeConfig.name = defaultValue1; + const expectedHeaderRequestParams = `insight_type_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.InsightTypeConfig() + ); + client.innerApiCalls.updateInsightTypeConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateInsightTypeConfig( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IInsightTypeConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateInsightTypeConfig with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest() + ); + request.insightTypeConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest', + ['insightTypeConfig', 'name'] + ); + request.insightTypeConfig.name = defaultValue1; + const expectedHeaderRequestParams = `insight_type_config.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateInsightTypeConfig = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateInsightTypeConfig(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateInsightTypeConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateInsightTypeConfig with closed client', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest() + ); + request.insightTypeConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.UpdateInsightTypeConfigRequest', + ['insightTypeConfig', 'name'] + ); + request.insightTypeConfig.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateInsightTypeConfig(request), + expectedError + ); + }); + }); + + describe('listInsights', () => { + it('invokes listInsights without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListInsightsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + ]; + client.innerApiCalls.listInsights = stubSimpleCall(expectedResponse); + const [response] = await client.listInsights(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listInsights without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListInsightsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + ]; + client.innerApiCalls.listInsights = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listInsights( + request, + ( + err?: Error | null, + result?: protos.google.cloud.recommender.v1beta1.IInsight[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listInsights with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListInsightsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listInsights = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listInsights(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listInsights as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listInsightsStream without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListInsightsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + ]; + client.descriptors.page.listInsights.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listInsightsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.recommender.v1beta1.Insight[] = []; + stream.on( + 'data', + (response: protos.google.cloud.recommender.v1beta1.Insight) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listInsights.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listInsights, request) + ); + assert( + (client.descriptors.page.listInsights.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listInsightsStream with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListInsightsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listInsights.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listInsightsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.recommender.v1beta1.Insight[] = []; + stream.on( + 'data', + (response: protos.google.cloud.recommender.v1beta1.Insight) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listInsights.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listInsights, request) + ); + assert( + (client.descriptors.page.listInsights.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listInsights without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListInsightsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Insight() + ), + ]; + client.descriptors.page.listInsights.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.recommender.v1beta1.IInsight[] = []; + const iterable = client.listInsightsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listInsights.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listInsights.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listInsights with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListInsightsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListInsightsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listInsights.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listInsightsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.recommender.v1beta1.IInsight[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listInsights.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listInsights.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listRecommendations', () => { + it('invokes listRecommendations without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListRecommendationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + ]; + client.innerApiCalls.listRecommendations = + stubSimpleCall(expectedResponse); + const [response] = await client.listRecommendations(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listRecommendations without error using callback', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListRecommendationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + ]; + client.innerApiCalls.listRecommendations = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listRecommendations( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.recommender.v1beta1.IRecommendation[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listRecommendations with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListRecommendationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listRecommendations = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listRecommendations(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listRecommendations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listRecommendationsStream without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListRecommendationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + ]; + client.descriptors.page.listRecommendations.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listRecommendationsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.recommender.v1beta1.Recommendation[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.recommender.v1beta1.Recommendation + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listRecommendations.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listRecommendations, request) + ); + assert( + (client.descriptors.page.listRecommendations.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listRecommendationsStream with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListRecommendationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listRecommendations.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listRecommendationsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.recommender.v1beta1.Recommendation[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.recommender.v1beta1.Recommendation + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listRecommendations.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listRecommendations, request) + ); + assert( + (client.descriptors.page.listRecommendations.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listRecommendations without error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListRecommendationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.Recommendation() + ), + ]; + client.descriptors.page.listRecommendations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.recommender.v1beta1.IRecommendation[] = + []; + const iterable = client.listRecommendationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listRecommendations.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listRecommendations.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listRecommendations with error', async () => { + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.recommender.v1beta1.ListRecommendationsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.recommender.v1beta1.ListRecommendationsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listRecommendations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listRecommendationsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.recommender.v1beta1.IRecommendation[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listRecommendations.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listRecommendations.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('Path templates', () => { + describe('billingAccountLocationInsightType', () => { + const fakePath = '/rendered/path/billingAccountLocationInsightType'; + const expectedParameters = { + billing_account: 'billingAccountValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.billingAccountLocationInsightTypePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.billingAccountLocationInsightTypePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('billingAccountLocationInsightTypePath', () => { + const result = client.billingAccountLocationInsightTypePath( + 'billingAccountValue', + 'locationValue', + 'insightTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.billingAccountLocationInsightTypePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchBillingAccountFromBillingAccountLocationInsightTypeName', () => { + const result = + client.matchBillingAccountFromBillingAccountLocationInsightTypeName( + fakePath + ); + assert.strictEqual(result, 'billingAccountValue'); + assert( + ( + client.pathTemplates.billingAccountLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBillingAccountLocationInsightTypeName', () => { + const result = + client.matchLocationFromBillingAccountLocationInsightTypeName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.billingAccountLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromBillingAccountLocationInsightTypeName', () => { + const result = + client.matchInsightTypeFromBillingAccountLocationInsightTypeName( + fakePath + ); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates.billingAccountLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('billingAccountLocationInsightTypeInsight', () => { + const fakePath = + '/rendered/path/billingAccountLocationInsightTypeInsight'; + const expectedParameters = { + billing_account: 'billingAccountValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + insight: 'insightValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.billingAccountLocationInsightTypeInsightPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.billingAccountLocationInsightTypeInsightPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('billingAccountLocationInsightTypeInsightPath', () => { + const result = client.billingAccountLocationInsightTypeInsightPath( + 'billingAccountValue', + 'locationValue', + 'insightTypeValue', + 'insightValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .billingAccountLocationInsightTypeInsightPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchBillingAccountFromBillingAccountLocationInsightTypeInsightName', () => { + const result = + client.matchBillingAccountFromBillingAccountLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'billingAccountValue'); + assert( + ( + client.pathTemplates + .billingAccountLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBillingAccountLocationInsightTypeInsightName', () => { + const result = + client.matchLocationFromBillingAccountLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .billingAccountLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromBillingAccountLocationInsightTypeInsightName', () => { + const result = + client.matchInsightTypeFromBillingAccountLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates + .billingAccountLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightFromBillingAccountLocationInsightTypeInsightName', () => { + const result = + client.matchInsightFromBillingAccountLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'insightValue'); + assert( + ( + client.pathTemplates + .billingAccountLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('billingAccountLocationRecommender', () => { + const fakePath = '/rendered/path/billingAccountLocationRecommender'; + const expectedParameters = { + billing_account: 'billingAccountValue', + location: 'locationValue', + recommender: 'recommenderValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.billingAccountLocationRecommenderPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.billingAccountLocationRecommenderPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('billingAccountLocationRecommenderPath', () => { + const result = client.billingAccountLocationRecommenderPath( + 'billingAccountValue', + 'locationValue', + 'recommenderValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.billingAccountLocationRecommenderPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchBillingAccountFromBillingAccountLocationRecommenderName', () => { + const result = + client.matchBillingAccountFromBillingAccountLocationRecommenderName( + fakePath + ); + assert.strictEqual(result, 'billingAccountValue'); + assert( + ( + client.pathTemplates.billingAccountLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBillingAccountLocationRecommenderName', () => { + const result = + client.matchLocationFromBillingAccountLocationRecommenderName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.billingAccountLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromBillingAccountLocationRecommenderName', () => { + const result = + client.matchRecommenderFromBillingAccountLocationRecommenderName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates.billingAccountLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('billingAccountLocationRecommenderRecommendation', () => { + const fakePath = + '/rendered/path/billingAccountLocationRecommenderRecommendation'; + const expectedParameters = { + billing_account: 'billingAccountValue', + location: 'locationValue', + recommender: 'recommenderValue', + recommendation: 'recommendationValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.billingAccountLocationRecommenderRecommendationPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.billingAccountLocationRecommenderRecommendationPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('billingAccountLocationRecommenderRecommendationPath', () => { + const result = + client.billingAccountLocationRecommenderRecommendationPath( + 'billingAccountValue', + 'locationValue', + 'recommenderValue', + 'recommendationValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .billingAccountLocationRecommenderRecommendationPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchBillingAccountFromBillingAccountLocationRecommenderRecommendationName', () => { + const result = + client.matchBillingAccountFromBillingAccountLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'billingAccountValue'); + assert( + ( + client.pathTemplates + .billingAccountLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBillingAccountLocationRecommenderRecommendationName', () => { + const result = + client.matchLocationFromBillingAccountLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .billingAccountLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromBillingAccountLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommenderFromBillingAccountLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates + .billingAccountLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommendationFromBillingAccountLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommendationFromBillingAccountLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommendationValue'); + assert( + ( + client.pathTemplates + .billingAccountLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('folderLocationInsightType', () => { + const fakePath = '/rendered/path/folderLocationInsightType'; + const expectedParameters = { + folder: 'folderValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.folderLocationInsightTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.folderLocationInsightTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('folderLocationInsightTypePath', () => { + const result = client.folderLocationInsightTypePath( + 'folderValue', + 'locationValue', + 'insightTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.folderLocationInsightTypePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchFolderFromFolderLocationInsightTypeName', () => { + const result = + client.matchFolderFromFolderLocationInsightTypeName(fakePath); + assert.strictEqual(result, 'folderValue'); + assert( + ( + client.pathTemplates.folderLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFolderLocationInsightTypeName', () => { + const result = + client.matchLocationFromFolderLocationInsightTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.folderLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromFolderLocationInsightTypeName', () => { + const result = + client.matchInsightTypeFromFolderLocationInsightTypeName(fakePath); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates.folderLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('folderLocationInsightTypeInsight', () => { + const fakePath = '/rendered/path/folderLocationInsightTypeInsight'; + const expectedParameters = { + folder: 'folderValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + insight: 'insightValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.folderLocationInsightTypeInsightPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.folderLocationInsightTypeInsightPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('folderLocationInsightTypeInsightPath', () => { + const result = client.folderLocationInsightTypeInsightPath( + 'folderValue', + 'locationValue', + 'insightTypeValue', + 'insightValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.folderLocationInsightTypeInsightPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchFolderFromFolderLocationInsightTypeInsightName', () => { + const result = + client.matchFolderFromFolderLocationInsightTypeInsightName(fakePath); + assert.strictEqual(result, 'folderValue'); + assert( + ( + client.pathTemplates.folderLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFolderLocationInsightTypeInsightName', () => { + const result = + client.matchLocationFromFolderLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.folderLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromFolderLocationInsightTypeInsightName', () => { + const result = + client.matchInsightTypeFromFolderLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates.folderLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightFromFolderLocationInsightTypeInsightName', () => { + const result = + client.matchInsightFromFolderLocationInsightTypeInsightName(fakePath); + assert.strictEqual(result, 'insightValue'); + assert( + ( + client.pathTemplates.folderLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('folderLocationRecommender', () => { + const fakePath = '/rendered/path/folderLocationRecommender'; + const expectedParameters = { + folder: 'folderValue', + location: 'locationValue', + recommender: 'recommenderValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.folderLocationRecommenderPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.folderLocationRecommenderPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('folderLocationRecommenderPath', () => { + const result = client.folderLocationRecommenderPath( + 'folderValue', + 'locationValue', + 'recommenderValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.folderLocationRecommenderPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchFolderFromFolderLocationRecommenderName', () => { + const result = + client.matchFolderFromFolderLocationRecommenderName(fakePath); + assert.strictEqual(result, 'folderValue'); + assert( + ( + client.pathTemplates.folderLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFolderLocationRecommenderName', () => { + const result = + client.matchLocationFromFolderLocationRecommenderName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.folderLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromFolderLocationRecommenderName', () => { + const result = + client.matchRecommenderFromFolderLocationRecommenderName(fakePath); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates.folderLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('folderLocationRecommenderRecommendation', () => { + const fakePath = '/rendered/path/folderLocationRecommenderRecommendation'; + const expectedParameters = { + folder: 'folderValue', + location: 'locationValue', + recommender: 'recommenderValue', + recommendation: 'recommendationValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.folderLocationRecommenderRecommendationPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.folderLocationRecommenderRecommendationPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('folderLocationRecommenderRecommendationPath', () => { + const result = client.folderLocationRecommenderRecommendationPath( + 'folderValue', + 'locationValue', + 'recommenderValue', + 'recommendationValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .folderLocationRecommenderRecommendationPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchFolderFromFolderLocationRecommenderRecommendationName', () => { + const result = + client.matchFolderFromFolderLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'folderValue'); + assert( + ( + client.pathTemplates + .folderLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFolderLocationRecommenderRecommendationName', () => { + const result = + client.matchLocationFromFolderLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .folderLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromFolderLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommenderFromFolderLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates + .folderLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommendationFromFolderLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommendationFromFolderLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommendationValue'); + assert( + ( + client.pathTemplates + .folderLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('organizationLocationInsightType', () => { + const fakePath = '/rendered/path/organizationLocationInsightType'; + const expectedParameters = { + organization: 'organizationValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationLocationInsightTypePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationLocationInsightTypePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationLocationInsightTypePath', () => { + const result = client.organizationLocationInsightTypePath( + 'organizationValue', + 'locationValue', + 'insightTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.organizationLocationInsightTypePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationLocationInsightTypeName', () => { + const result = + client.matchOrganizationFromOrganizationLocationInsightTypeName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates.organizationLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromOrganizationLocationInsightTypeName', () => { + const result = + client.matchLocationFromOrganizationLocationInsightTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.organizationLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromOrganizationLocationInsightTypeName', () => { + const result = + client.matchInsightTypeFromOrganizationLocationInsightTypeName( + fakePath + ); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates.organizationLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('organizationLocationInsightTypeConfig', () => { + const fakePath = '/rendered/path/organizationLocationInsightTypeConfig'; + const expectedParameters = { + organization: 'organizationValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationLocationInsightTypeConfigPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationLocationInsightTypeConfigPath', () => { + const result = client.organizationLocationInsightTypeConfigPath( + 'organizationValue', + 'locationValue', + 'insightTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .organizationLocationInsightTypeConfigPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationLocationInsightTypeConfigName', () => { + const result = + client.matchOrganizationFromOrganizationLocationInsightTypeConfigName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates + .organizationLocationInsightTypeConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromOrganizationLocationInsightTypeConfigName', () => { + const result = + client.matchLocationFromOrganizationLocationInsightTypeConfigName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .organizationLocationInsightTypeConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromOrganizationLocationInsightTypeConfigName', () => { + const result = + client.matchInsightTypeFromOrganizationLocationInsightTypeConfigName( + fakePath + ); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates + .organizationLocationInsightTypeConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('organizationLocationInsightTypeInsight', () => { + const fakePath = '/rendered/path/organizationLocationInsightTypeInsight'; + const expectedParameters = { + organization: 'organizationValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + insight: 'insightValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationLocationInsightTypeInsightPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationLocationInsightTypeInsightPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationLocationInsightTypeInsightPath', () => { + const result = client.organizationLocationInsightTypeInsightPath( + 'organizationValue', + 'locationValue', + 'insightTypeValue', + 'insightValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .organizationLocationInsightTypeInsightPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationLocationInsightTypeInsightName', () => { + const result = + client.matchOrganizationFromOrganizationLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates + .organizationLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromOrganizationLocationInsightTypeInsightName', () => { + const result = + client.matchLocationFromOrganizationLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .organizationLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromOrganizationLocationInsightTypeInsightName', () => { + const result = + client.matchInsightTypeFromOrganizationLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates + .organizationLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightFromOrganizationLocationInsightTypeInsightName', () => { + const result = + client.matchInsightFromOrganizationLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'insightValue'); + assert( + ( + client.pathTemplates + .organizationLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('organizationLocationRecommender', () => { + const fakePath = '/rendered/path/organizationLocationRecommender'; + const expectedParameters = { + organization: 'organizationValue', + location: 'locationValue', + recommender: 'recommenderValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationLocationRecommenderPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationLocationRecommenderPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationLocationRecommenderPath', () => { + const result = client.organizationLocationRecommenderPath( + 'organizationValue', + 'locationValue', + 'recommenderValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.organizationLocationRecommenderPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationLocationRecommenderName', () => { + const result = + client.matchOrganizationFromOrganizationLocationRecommenderName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates.organizationLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromOrganizationLocationRecommenderName', () => { + const result = + client.matchLocationFromOrganizationLocationRecommenderName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.organizationLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromOrganizationLocationRecommenderName', () => { + const result = + client.matchRecommenderFromOrganizationLocationRecommenderName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates.organizationLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('organizationLocationRecommenderConfig', () => { + const fakePath = '/rendered/path/organizationLocationRecommenderConfig'; + const expectedParameters = { + organization: 'organizationValue', + location: 'locationValue', + recommender: 'recommenderValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationLocationRecommenderConfigPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationLocationRecommenderConfigPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationLocationRecommenderConfigPath', () => { + const result = client.organizationLocationRecommenderConfigPath( + 'organizationValue', + 'locationValue', + 'recommenderValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderConfigPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationLocationRecommenderConfigName', () => { + const result = + client.matchOrganizationFromOrganizationLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromOrganizationLocationRecommenderConfigName', () => { + const result = + client.matchLocationFromOrganizationLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromOrganizationLocationRecommenderConfigName', () => { + const result = + client.matchRecommenderFromOrganizationLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('organizationLocationRecommenderRecommendation', () => { + const fakePath = + '/rendered/path/organizationLocationRecommenderRecommendation'; + const expectedParameters = { + organization: 'organizationValue', + location: 'locationValue', + recommender: 'recommenderValue', + recommendation: 'recommendationValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationLocationRecommenderRecommendationPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationLocationRecommenderRecommendationPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationLocationRecommenderRecommendationPath', () => { + const result = client.organizationLocationRecommenderRecommendationPath( + 'organizationValue', + 'locationValue', + 'recommenderValue', + 'recommendationValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderRecommendationPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationLocationRecommenderRecommendationName', () => { + const result = + client.matchOrganizationFromOrganizationLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromOrganizationLocationRecommenderRecommendationName', () => { + const result = + client.matchLocationFromOrganizationLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromOrganizationLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommenderFromOrganizationLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommendationFromOrganizationLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommendationFromOrganizationLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommendationValue'); + assert( + ( + client.pathTemplates + .organizationLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationInsightType', () => { + const fakePath = '/rendered/path/projectLocationInsightType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationInsightTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationInsightTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationInsightTypePath', () => { + const result = client.projectLocationInsightTypePath( + 'projectValue', + 'locationValue', + 'insightTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationInsightTypePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationInsightTypeName', () => { + const result = + client.matchProjectFromProjectLocationInsightTypeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationInsightTypeName', () => { + const result = + client.matchLocationFromProjectLocationInsightTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromProjectLocationInsightTypeName', () => { + const result = + client.matchInsightTypeFromProjectLocationInsightTypeName(fakePath); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationInsightTypeConfig', () => { + const fakePath = '/rendered/path/projectLocationInsightTypeConfig'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationInsightTypeConfigPath', () => { + const result = client.projectLocationInsightTypeConfigPath( + 'projectValue', + 'locationValue', + 'insightTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationInsightTypeConfigName', () => { + const result = + client.matchProjectFromProjectLocationInsightTypeConfigName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationInsightTypeConfigName', () => { + const result = + client.matchLocationFromProjectLocationInsightTypeConfigName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromProjectLocationInsightTypeConfigName', () => { + const result = + client.matchInsightTypeFromProjectLocationInsightTypeConfigName( + fakePath + ); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationInsightTypeInsight', () => { + const fakePath = '/rendered/path/projectLocationInsightTypeInsight'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + insight_type: 'insightTypeValue', + insight: 'insightValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationInsightTypeInsightPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationInsightTypeInsightPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationInsightTypeInsightPath', () => { + const result = client.projectLocationInsightTypeInsightPath( + 'projectValue', + 'locationValue', + 'insightTypeValue', + 'insightValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationInsightTypeInsightPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationInsightTypeInsightName', () => { + const result = + client.matchProjectFromProjectLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationInsightTypeInsightName', () => { + const result = + client.matchLocationFromProjectLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightTypeFromProjectLocationInsightTypeInsightName', () => { + const result = + client.matchInsightTypeFromProjectLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'insightTypeValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchInsightFromProjectLocationInsightTypeInsightName', () => { + const result = + client.matchInsightFromProjectLocationInsightTypeInsightName( + fakePath + ); + assert.strictEqual(result, 'insightValue'); + assert( + ( + client.pathTemplates.projectLocationInsightTypeInsightPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationRecommender', () => { + const fakePath = '/rendered/path/projectLocationRecommender'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + recommender: 'recommenderValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationRecommenderPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationRecommenderPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationRecommenderPath', () => { + const result = client.projectLocationRecommenderPath( + 'projectValue', + 'locationValue', + 'recommenderValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationRecommenderPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationRecommenderName', () => { + const result = + client.matchProjectFromProjectLocationRecommenderName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationRecommenderName', () => { + const result = + client.matchLocationFromProjectLocationRecommenderName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromProjectLocationRecommenderName', () => { + const result = + client.matchRecommenderFromProjectLocationRecommenderName(fakePath); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates.projectLocationRecommenderPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationRecommenderConfig', () => { + const fakePath = '/rendered/path/projectLocationRecommenderConfig'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + recommender: 'recommenderValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationRecommenderConfigPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationRecommenderConfigPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationRecommenderConfigPath', () => { + const result = client.projectLocationRecommenderConfigPath( + 'projectValue', + 'locationValue', + 'recommenderValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationRecommenderConfigPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationRecommenderConfigName', () => { + const result = + client.matchProjectFromProjectLocationRecommenderConfigName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationRecommenderConfigName', () => { + const result = + client.matchLocationFromProjectLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromProjectLocationRecommenderConfigName', () => { + const result = + client.matchRecommenderFromProjectLocationRecommenderConfigName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates.projectLocationRecommenderConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationRecommenderRecommendation', () => { + const fakePath = + '/rendered/path/projectLocationRecommenderRecommendation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + recommender: 'recommenderValue', + recommendation: 'recommendationValue', + }; + const client = new recommenderModule.v1beta1.RecommenderClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationRecommenderRecommendationPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationRecommenderRecommendationPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationRecommenderRecommendationPath', () => { + const result = client.projectLocationRecommenderRecommendationPath( + 'projectValue', + 'locationValue', + 'recommenderValue', + 'recommendationValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationRecommenderRecommendationPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationRecommenderRecommendationName', () => { + const result = + client.matchProjectFromProjectLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationRecommenderRecommendationName', () => { + const result = + client.matchLocationFromProjectLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommenderFromProjectLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommenderFromProjectLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommenderValue'); + assert( + ( + client.pathTemplates + .projectLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRecommendationFromProjectLocationRecommenderRecommendationName', () => { + const result = + client.matchRecommendationFromProjectLocationRecommenderRecommendationName( + fakePath + ); + assert.strictEqual(result, 'recommendationValue'); + assert( + ( + client.pathTemplates + .projectLocationRecommenderRecommendationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); diff --git a/packages/google-cloud-redis/owlbot.py b/packages/google-cloud-redis/owlbot.py index 740eb2a64b09..18b246a11a53 100644 --- a/packages/google-cloud-redis/owlbot.py +++ b/packages/google-cloud-redis/owlbot.py @@ -13,7 +13,7 @@ # limitations under the License. import synthtool as s -import synthtool.languages.node as node +import synthtool.languages.node_mono_repo as node import pathlib @@ -24,6 +24,7 @@ def patch(library: pathlib.Path): node.owlbot_main( + relative_dir="packages/google-cloud-redis", staging_excludes=['package.json', 'README.md'], patch_staging=patch ) diff --git a/packages/google-cloud-redis/protos/google/cloud/redis/v1/cloud_redis.proto b/packages/google-cloud-redis/protos/google/cloud/redis/v1/cloud_redis.proto index f0ba2f43fbfd..51659ed119f7 100644 --- a/packages/google-cloud-redis/protos/google/cloud/redis/v1/cloud_redis.proto +++ b/packages/google-cloud-redis/protos/google/cloud/redis/v1/cloud_redis.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/redis/v1;redis"; +option go_package = "cloud.google.com/go/redis/apiv1/redispb;redispb"; option java_multiple_files = true; option java_outer_classname = "CloudRedisServiceV1Proto"; option java_package = "com.google.cloud.redis.v1"; diff --git a/packages/google-cloud-redis/protos/google/cloud/redis/v1beta1/cloud_redis.proto b/packages/google-cloud-redis/protos/google/cloud/redis/v1beta1/cloud_redis.proto index 075a06359d09..037c93aeb5c7 100644 --- a/packages/google-cloud-redis/protos/google/cloud/redis/v1beta1/cloud_redis.proto +++ b/packages/google-cloud-redis/protos/google/cloud/redis/v1beta1/cloud_redis.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/redis/v1beta1;redis"; +option go_package = "cloud.google.com/go/redis/apiv1beta1/redispb;redispb"; option java_multiple_files = true; option java_outer_classname = "CloudRedisServiceBetaProto"; option java_package = "com.google.cloud.redis.v1beta1"; diff --git a/packages/google-cloud-redis/protos/protos.json b/packages/google-cloud-redis/protos/protos.json index 4ab1b4a431dc..4cfb4f1c9e4a 100644 --- a/packages/google-cloud-redis/protos/protos.json +++ b/packages/google-cloud-redis/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/redis/v1;redis", + "go_package": "cloud.google.com/go/redis/apiv1/redispb;redispb", "java_multiple_files": true, "java_outer_classname": "CloudRedisServiceV1Proto", "java_package": "com.google.cloud.redis.v1" @@ -1043,7 +1043,7 @@ }, "v1beta1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/redis/v1beta1;redis", + "go_package": "cloud.google.com/go/redis/apiv1beta1/redispb;redispb", "java_multiple_files": true, "java_outer_classname": "CloudRedisServiceBetaProto", "java_package": "com.google.cloud.redis.v1beta1" diff --git a/packages/google-cloud-redis/samples/generated/v1/snippet_metadata.google.cloud.redis.v1.json b/packages/google-cloud-redis/samples/generated/v1/snippet_metadata.google.cloud.redis.v1.json index 6f235204563b..0006739984df 100644 --- a/packages/google-cloud-redis/samples/generated/v1/snippet_metadata.google.cloud.redis.v1.json +++ b/packages/google-cloud-redis/samples/generated/v1/snippet_metadata.google.cloud.redis.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-redis", - "version": "3.1.5", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-redis/samples/generated/v1beta1/snippet_metadata.google.cloud.redis.v1beta1.json b/packages/google-cloud-redis/samples/generated/v1beta1/snippet_metadata.google.cloud.redis.v1beta1.json index 3006d24af652..8a471cba8949 100644 --- a/packages/google-cloud-redis/samples/generated/v1beta1/snippet_metadata.google.cloud.redis.v1beta1.json +++ b/packages/google-cloud-redis/samples/generated/v1beta1/snippet_metadata.google.cloud.redis.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-redis", - "version": "3.1.5", + "version": "3.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/folders.proto b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/folders.proto index af87809d751f..98568a26e65f 100644 --- a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/folders.proto +++ b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/folders.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ResourceManager.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3;resourcemanager"; +option go_package = "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb;resourcemanagerpb"; option java_multiple_files = true; option java_outer_classname = "FoldersProto"; option java_package = "com.google.cloud.resourcemanager.v3"; diff --git a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/organizations.proto b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/organizations.proto index 0e99a1552202..8f8a6f34a53f 100644 --- a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/organizations.proto +++ b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/organizations.proto @@ -25,7 +25,7 @@ import "google/iam/v1/policy.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ResourceManager.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3;resourcemanager"; +option go_package = "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb;resourcemanagerpb"; option java_multiple_files = true; option java_outer_classname = "OrganizationsProto"; option java_package = "com.google.cloud.resourcemanager.v3"; diff --git a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/projects.proto b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/projects.proto index 3d2feb08d57b..693e4609e96a 100644 --- a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/projects.proto +++ b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/projects.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ResourceManager.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3;resourcemanager"; +option go_package = "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb;resourcemanagerpb"; option java_multiple_files = true; option java_outer_classname = "ProjectsProto"; option java_package = "com.google.cloud.resourcemanager.v3"; diff --git a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_bindings.proto b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_bindings.proto index 6c8f260a4171..a9dbac3b06f2 100644 --- a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_bindings.proto +++ b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_bindings.proto @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.ResourceManager.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3;resourcemanager"; +option go_package = "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb;resourcemanagerpb"; option java_multiple_files = true; option java_outer_classname = "TagBindingsProto"; option java_package = "com.google.cloud.resourcemanager.v3"; diff --git a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_keys.proto b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_keys.proto index 5ecf0b405bfe..3d0500141b13 100644 --- a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_keys.proto +++ b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_keys.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ResourceManager.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3;resourcemanager"; +option go_package = "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb;resourcemanagerpb"; option java_multiple_files = true; option java_outer_classname = "TagKeysProto"; option java_package = "com.google.cloud.resourcemanager.v3"; diff --git a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_values.proto b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_values.proto index 86ba70125578..7cace43097ff 100644 --- a/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_values.proto +++ b/packages/google-cloud-resourcemanager/protos/google/cloud/resourcemanager/v3/tag_values.proto @@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ResourceManager.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3;resourcemanager"; +option go_package = "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb;resourcemanagerpb"; option java_multiple_files = true; option java_outer_classname = "TagValuesProto"; option java_package = "com.google.cloud.resourcemanager.v3"; diff --git a/packages/google-cloud-resourcemanager/protos/protos.json b/packages/google-cloud-resourcemanager/protos/protos.json index 7c8da45f9aea..848c70cf61df 100644 --- a/packages/google-cloud-resourcemanager/protos/protos.json +++ b/packages/google-cloud-resourcemanager/protos/protos.json @@ -9,7 +9,7 @@ "v3": { "options": { "csharp_namespace": "Google.Cloud.ResourceManager.V3", - "go_package": "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3;resourcemanager", + "go_package": "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb;resourcemanagerpb", "java_multiple_files": true, "java_outer_classname": "TagValuesProto", "java_package": "com.google.cloud.resourcemanager.v3", diff --git a/packages/google-cloud-resourcesettings/protos/google/cloud/resourcesettings/v1/resource_settings.proto b/packages/google-cloud-resourcesettings/protos/google/cloud/resourcesettings/v1/resource_settings.proto index c2e7f7dba630..38479dcbd01c 100644 --- a/packages/google-cloud-resourcesettings/protos/google/cloud/resourcesettings/v1/resource_settings.proto +++ b/packages/google-cloud-resourcesettings/protos/google/cloud/resourcesettings/v1/resource_settings.proto @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/resourcesettings/v1;resourcesettings"; +option go_package = "cloud.google.com/go/resourcesettings/apiv1/resourcesettingspb;resourcesettingspb"; option java_multiple_files = true; option java_outer_classname = "ResourceSettingsProto"; option java_package = "com.google.cloud.resourcesettings.v1"; diff --git a/packages/google-cloud-resourcesettings/protos/protos.json b/packages/google-cloud-resourcesettings/protos/protos.json index c0958a4a4f43..9554ef6e1a8b 100644 --- a/packages/google-cloud-resourcesettings/protos/protos.json +++ b/packages/google-cloud-resourcesettings/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "cc_enable_arenas": true, - "go_package": "google.golang.org/genproto/googleapis/cloud/resourcesettings/v1;resourcesettings", + "go_package": "cloud.google.com/go/resourcesettings/apiv1/resourcesettingspb;resourcesettingspb", "java_multiple_files": true, "java_outer_classname": "ResourceSettingsProto", "java_package": "com.google.cloud.resourcesettings.v1", diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/catalog.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/catalog.proto index 156e061ec945..f66c1181fccd 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/catalog.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/catalog.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2/common.proto"; import "google/cloud/retail/v2/import_config.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CatalogProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/catalog_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/catalog_service.proto index da6f5a2b8d8f..14b45841baa8 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/catalog_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/catalog_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CatalogServiceProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/common.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/common.proto index 5db569dd8ab4..5d09c8a32406 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/common.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/common.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/completion_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/completion_service.proto index 86493f8a2a6e..fa80fcd96a7c 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/completion_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/completion_service.proto @@ -25,7 +25,7 @@ import "google/cloud/retail/v2/import_config.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CompletionServiceProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/control.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/control.proto index 4dc94aa38929..c2b1d1c9d791 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/control.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/control.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/retail/v2/common.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ControlProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/control_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/control_service.proto index 24e8c1c44640..e84e30b2167b 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/control_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/control_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ControlServiceProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/import_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/import_config.proto index 23b063692066..94df9e738203 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/import_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/import_config.proto @@ -26,7 +26,7 @@ import "google/rpc/status.proto"; import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ImportConfigProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/prediction_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/prediction_service.proto index 48b46bc812d1..ebef948fafb0 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/prediction_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/prediction_service.proto @@ -24,7 +24,7 @@ import "google/cloud/retail/v2/user_event.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "PredictionServiceProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/product.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/product.proto index 5d61470d3c21..dc558df1bfaf 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/product.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/product.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ProductProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/product_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/product_service.proto index be83ad9fd2c1..d15dac88124e 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/product_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/product_service.proto @@ -29,7 +29,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ProductServiceProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/promotion.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/promotion.proto index 9ba323475f29..266943845155 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/promotion.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/promotion.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.retail.v2; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "PromotionProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/purge_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/purge_config.proto index cb510745025b..fe6272d5d9d3 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/purge_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/purge_config.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "PurgeConfigProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/search_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/search_service.proto index 30c3c45a6962..1882f33f6611 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/search_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/search_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "SearchServiceProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/serving_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/serving_config.proto index 41e73beffc21..78f49d3fa51c 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/serving_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/serving_config.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2/common.proto"; import "google/cloud/retail/v2/search_service.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ServingConfigProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/serving_config_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/serving_config_service.proto index b8dbc621d732..25ca897f306c 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/serving_config_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/serving_config_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ServingConfigServiceProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/user_event.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/user_event.proto index 6093c9a5f31f..4e98b363b8fe 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/user_event.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/user_event.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "UserEventProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2/user_event_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2/user_event_service.proto index 23049dafe278..6b44aa4598f9 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2/user_event_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2/user_event_service.proto @@ -27,7 +27,7 @@ import "google/cloud/retail/v2/user_event.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "UserEventServiceProto"; option java_package = "com.google.cloud.retail.v2"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/catalog.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/catalog.proto index 95b7dd9443d4..ade5b4286149 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/catalog.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/catalog.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2alpha/common.proto"; import "google/cloud/retail/v2alpha/import_config.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CatalogProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/catalog_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/catalog_service.proto index d14a79a83c98..41b1af8a3ac0 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/catalog_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/catalog_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CatalogServiceProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/common.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/common.proto index 4a06b4273ef5..bdcad0ef7474 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/common.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/common.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/completion_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/completion_service.proto index 323bc05d607a..331a0e746b48 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/completion_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/completion_service.proto @@ -25,7 +25,7 @@ import "google/cloud/retail/v2alpha/import_config.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CompletionServiceProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/control.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/control.proto index 6ad604ea42b7..5c3047ce4380 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/control.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/control.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2alpha/common.proto"; import "google/cloud/retail/v2alpha/search_service.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ControlProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/control_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/control_service.proto index 53744cded224..7cfd462db97a 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/control_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/control_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ControlServiceProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/export_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/export_config.proto index 831bb2ec5507..40ceb9cdb3bc 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/export_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/export_config.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ExportConfigProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/import_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/import_config.proto index 8b7d87b95680..f33557960c1e 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/import_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/import_config.proto @@ -26,7 +26,7 @@ import "google/rpc/status.proto"; import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ImportConfigProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/model.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/model.proto index 1b60792dbfa2..b8f8cd8dcf83 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/model.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/model.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2alpha/common.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ModelProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/model_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/model_service.proto index af057c514261..a2ab6d0dc011 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/model_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/model_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ModelServiceProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/prediction_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/prediction_service.proto index b88e97e7a34a..dc4fff74ddda 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/prediction_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/prediction_service.proto @@ -24,7 +24,7 @@ import "google/cloud/retail/v2alpha/user_event.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "PredictionServiceProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/product.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/product.proto index 7dd20a744b3e..b47be04cbe7b 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/product.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/product.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ProductProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/product_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/product_service.proto index ec82c437f445..fc5cddc131ed 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/product_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/product_service.proto @@ -30,7 +30,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ProductServiceProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/promotion.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/promotion.proto index 879449a42bb9..63a80737cc7b 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/promotion.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/promotion.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.retail.v2alpha; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "PromotionProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/purge_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/purge_config.proto index d05376b6e32c..b7b9ab81441d 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/purge_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/purge_config.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "PurgeConfigProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/search_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/search_service.proto index 37526c1f7530..4abc69c2bcc6 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/search_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/search_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "SearchServiceProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/serving_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/serving_config.proto index d4d02c70c47e..700f8327e70d 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/serving_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/serving_config.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2alpha/common.proto"; import "google/cloud/retail/v2alpha/search_service.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ServingConfigProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/serving_config_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/serving_config_service.proto index 387091079cc1..abe94af65afe 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/serving_config_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/serving_config_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ServingConfigServiceProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/user_event.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/user_event.proto index 6d24ca244879..62a551ebdd5c 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/user_event.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/user_event.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "UserEventProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/user_event_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/user_event_service.proto index 5e0702bca510..68bfa0b8eb07 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/user_event_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2alpha/user_event_service.proto @@ -27,7 +27,7 @@ import "google/cloud/retail/v2alpha/user_event.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "UserEventServiceProto"; option java_package = "com.google.cloud.retail.v2alpha"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/catalog.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/catalog.proto index ca691cc86ae8..f7a3d3576255 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/catalog.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/catalog.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2beta/common.proto"; import "google/cloud/retail/v2beta/import_config.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CatalogProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/catalog_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/catalog_service.proto index bab1fc34aa5e..337111764f1f 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/catalog_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/catalog_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CatalogServiceProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/common.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/common.proto index 5aab1d0ddc31..6ef6bfaa305f 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/common.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/common.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/completion_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/completion_service.proto index 635189b60960..ebd845dc2f37 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/completion_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/completion_service.proto @@ -25,7 +25,7 @@ import "google/cloud/retail/v2beta/import_config.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "CompletionServiceProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/control.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/control.proto index 2d6367199eeb..e44cfdd672dc 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/control.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/control.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2beta/common.proto"; import "google/cloud/retail/v2beta/search_service.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ControlProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/control_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/control_service.proto index a0a9d2e732fd..6a9a8707fb24 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/control_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/control_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ControlServiceProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/export_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/export_config.proto index d330c6faa530..9efc0d195a62 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/export_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/export_config.proto @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ExportConfigProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/import_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/import_config.proto index e544f6471a0c..d6d457c508e2 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/import_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/import_config.proto @@ -26,7 +26,7 @@ import "google/rpc/status.proto"; import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ImportConfigProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/model.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/model.proto index 3141b0df500e..deb4a0ade5c0 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/model.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/model.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2beta/common.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ModelProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/model_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/model_service.proto index 3a9a3c5a360c..5a73dd605a59 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/model_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/model_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ModelServiceProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/prediction_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/prediction_service.proto index 7b3f322f197b..9856ad285027 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/prediction_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/prediction_service.proto @@ -24,7 +24,7 @@ import "google/cloud/retail/v2beta/user_event.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "PredictionServiceProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/product.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/product.proto index 383c06a2bab2..a4f3e869307c 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/product.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/product.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ProductProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/product_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/product_service.proto index 0c09943324d0..6ebb4003d638 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/product_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/product_service.proto @@ -29,7 +29,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ProductServiceProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/promotion.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/promotion.proto index 5346f14d363b..e388f3aeb7a6 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/promotion.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/promotion.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.retail.v2beta; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "PromotionProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/purge_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/purge_config.proto index 25502cd7d16f..377c465499ae 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/purge_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/purge_config.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "PurgeConfigProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/search_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/search_service.proto index 9bbf255b2152..71ae51eb4e67 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/search_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/search_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "SearchServiceProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/serving_config.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/serving_config.proto index 35d1cf853533..e82b3c5994e7 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/serving_config.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/serving_config.proto @@ -22,7 +22,7 @@ import "google/cloud/retail/v2beta/common.proto"; import "google/cloud/retail/v2beta/search_service.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ServingConfigProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/serving_config_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/serving_config_service.proto index 46bdcd9b04f7..66b210b3ab17 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/serving_config_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/serving_config_service.proto @@ -25,7 +25,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "ServingConfigServiceProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/user_event.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/user_event.proto index 3d88483e79fe..5adf86027fc1 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/user_event.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/user_event.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "UserEventProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/user_event_service.proto b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/user_event_service.proto index 4dc822bdc3b3..c7dd29ffe851 100644 --- a/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/user_event_service.proto +++ b/packages/google-cloud-retail/protos/google/cloud/retail/v2beta/user_event_service.proto @@ -27,7 +27,7 @@ import "google/cloud/retail/v2beta/user_event.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; option java_multiple_files = true; option java_outer_classname = "UserEventServiceProto"; option java_package = "com.google.cloud.retail.v2beta"; diff --git a/packages/google-cloud-retail/protos/protos.json b/packages/google-cloud-retail/protos/protos.json index 442b27bfea26..4dd8811df4c8 100644 --- a/packages/google-cloud-retail/protos/protos.json +++ b/packages/google-cloud-retail/protos/protos.json @@ -9,7 +9,7 @@ "v2": { "options": { "csharp_namespace": "Google.Cloud.Retail.V2", - "go_package": "google.golang.org/genproto/googleapis/cloud/retail/v2;retail", + "go_package": "cloud.google.com/go/retail/apiv2/retailpb;retailpb", "java_multiple_files": true, "java_outer_classname": "UserEventServiceProto", "java_package": "com.google.cloud.retail.v2", @@ -4058,7 +4058,7 @@ "v2alpha": { "options": { "csharp_namespace": "Google.Cloud.Retail.V2Alpha", - "go_package": "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail", + "go_package": "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb", "java_multiple_files": true, "java_outer_classname": "UserEventServiceProto", "java_package": "com.google.cloud.retail.v2alpha", @@ -9023,7 +9023,7 @@ "v2beta": { "options": { "csharp_namespace": "Google.Cloud.Retail.V2Beta", - "go_package": "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail", + "go_package": "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb", "java_multiple_files": true, "java_outer_classname": "UserEventServiceProto", "java_package": "com.google.cloud.retail.v2beta", diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/condition.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/condition.proto index bf23a68e92f5..1aaecc02c601 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/condition.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/condition.proto @@ -18,7 +18,7 @@ package google.cloud.run.v2; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "ConditionProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/execution.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/execution.proto index 0d9bde3a641d..1c2cf832f8e6 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/execution.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/execution.proto @@ -26,7 +26,7 @@ import "google/cloud/run/v2/task_template.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "ExecutionProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/execution_template.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/execution_template.proto index f8fe9c4204fa..17e4a4439a15 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/execution_template.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/execution_template.proto @@ -19,7 +19,7 @@ package google.cloud.run.v2; import "google/api/field_behavior.proto"; import "google/cloud/run/v2/task_template.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "ExecutionTemplateProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/job.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/job.proto index 349973099b9e..5a04b5318804 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/job.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/job.proto @@ -31,7 +31,7 @@ import "google/iam/v1/policy.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "JobProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/k8s.min.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/k8s.min.proto index f09c96bc81c0..b5b2353828eb 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/k8s.min.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/k8s.min.proto @@ -19,7 +19,7 @@ package google.cloud.run.v2; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "K8sMinProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/revision.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/revision.proto index 117f4f118864..753776b47d1b 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/revision.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/revision.proto @@ -29,7 +29,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "RevisionProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/revision_template.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/revision_template.proto index 2abd4d9eecb9..7dd2b895d437 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/revision_template.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/revision_template.proto @@ -21,7 +21,7 @@ import "google/cloud/run/v2/k8s.min.proto"; import "google/cloud/run/v2/vendor_settings.proto"; import "google/protobuf/duration.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "RevisionTemplateProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/service.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/service.proto index a2eb4039a335..6620d79d2a5a 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/service.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/service.proto @@ -31,7 +31,7 @@ import "google/iam/v1/policy.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/task.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/task.proto index 0b73bb38dd75..45584e3ce203 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/task.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/task.proto @@ -27,7 +27,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "TaskProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/task_template.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/task_template.proto index 5507bfd8f2cb..f19ee7960ce2 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/task_template.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/task_template.proto @@ -21,7 +21,7 @@ import "google/cloud/run/v2/k8s.min.proto"; import "google/cloud/run/v2/vendor_settings.proto"; import "google/protobuf/duration.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "TaskTemplateProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/traffic_target.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/traffic_target.proto index f0f1fc0a4fcc..b1836ad14601 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/traffic_target.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/traffic_target.proto @@ -18,7 +18,7 @@ package google.cloud.run.v2; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "TrafficTargetProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/google/cloud/run/v2/vendor_settings.proto b/packages/google-cloud-run/protos/google/cloud/run/v2/vendor_settings.proto index 8e70538995f8..1b166ec62ca0 100644 --- a/packages/google-cloud-run/protos/google/cloud/run/v2/vendor_settings.proto +++ b/packages/google-cloud-run/protos/google/cloud/run/v2/vendor_settings.proto @@ -18,7 +18,7 @@ package google.cloud.run.v2; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option go_package = "cloud.google.com/go/run/apiv2/runpb;runpb"; option java_multiple_files = true; option java_outer_classname = "VendorSettingsProto"; option java_package = "com.google.cloud.run.v2"; diff --git a/packages/google-cloud-run/protos/protos.json b/packages/google-cloud-run/protos/protos.json index 667a7a2c2ed0..492935be2a55 100644 --- a/packages/google-cloud-run/protos/protos.json +++ b/packages/google-cloud-run/protos/protos.json @@ -989,7 +989,7 @@ "nested": { "v2": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/run/v2;run", + "go_package": "cloud.google.com/go/run/apiv2/runpb;runpb", "java_multiple_files": true, "java_outer_classname": "TaskProto", "java_package": "com.google.cloud.run.v2", diff --git a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/cloudscheduler.proto b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/cloudscheduler.proto index 89ce8cbd338c..7c6caab2f08b 100644 --- a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/cloudscheduler.proto +++ b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/cloudscheduler.proto @@ -25,7 +25,7 @@ import "google/cloud/scheduler/v1/job.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler"; +option go_package = "cloud.google.com/go/scheduler/apiv1/schedulerpb;schedulerpb"; option java_multiple_files = true; option java_outer_classname = "SchedulerProto"; option java_package = "com.google.cloud.scheduler.v1"; diff --git a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/job.proto b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/job.proto index 7e43ff1647fd..bda5a3b54a9a 100644 --- a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/job.proto +++ b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/job.proto @@ -23,7 +23,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler"; +option go_package = "cloud.google.com/go/scheduler/apiv1/schedulerpb;schedulerpb"; option java_multiple_files = true; option java_outer_classname = "JobProto"; option java_package = "com.google.cloud.scheduler.v1"; diff --git a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/target.proto b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/target.proto index 07466ce97654..e2928a34a8ea 100644 --- a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/target.proto +++ b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1/target.proto @@ -19,7 +19,7 @@ package google.cloud.scheduler.v1; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler"; +option go_package = "cloud.google.com/go/scheduler/apiv1/schedulerpb;schedulerpb"; option java_multiple_files = true; option java_outer_classname = "TargetProto"; option java_package = "com.google.cloud.scheduler.v1"; diff --git a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/cloudscheduler.proto b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/cloudscheduler.proto index f9a2da03ff22..210e0f294121 100644 --- a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/cloudscheduler.proto +++ b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/cloudscheduler.proto @@ -24,7 +24,7 @@ import "google/cloud/scheduler/v1beta1/job.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler"; +option go_package = "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb;schedulerpb"; option java_multiple_files = true; option java_outer_classname = "SchedulerProto"; option java_package = "com.google.cloud.scheduler.v1beta1"; diff --git a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/job.proto b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/job.proto index 2353beecac83..2674217d97e1 100644 --- a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/job.proto +++ b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/job.proto @@ -23,7 +23,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler"; +option go_package = "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb;schedulerpb"; option java_multiple_files = true; option java_outer_classname = "JobProto"; option java_package = "com.google.cloud.scheduler.v1beta1"; diff --git a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/target.proto b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/target.proto index f98f210dc40c..af1c3484e50c 100644 --- a/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/target.proto +++ b/packages/google-cloud-scheduler/protos/google/cloud/scheduler/v1beta1/target.proto @@ -18,7 +18,7 @@ package google.cloud.scheduler.v1beta1; import "google/api/resource.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler"; +option go_package = "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb;schedulerpb"; option java_multiple_files = true; option java_outer_classname = "TargetProto"; option java_package = "com.google.cloud.scheduler.v1beta1"; diff --git a/packages/google-cloud-scheduler/protos/protos.json b/packages/google-cloud-scheduler/protos/protos.json index b3e634937faa..eb2e84a55e75 100644 --- a/packages/google-cloud-scheduler/protos/protos.json +++ b/packages/google-cloud-scheduler/protos/protos.json @@ -8,7 +8,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler", + "go_package": "cloud.google.com/go/scheduler/apiv1/schedulerpb;schedulerpb", "java_multiple_files": true, "java_outer_classname": "TargetProto", "java_package": "com.google.cloud.scheduler.v1", @@ -559,7 +559,7 @@ }, "v1beta1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1;scheduler", + "go_package": "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb;schedulerpb", "java_multiple_files": true, "java_outer_classname": "TargetProto", "java_package": "com.google.cloud.scheduler.v1beta1", From 202a81d90437064e1cff92683c298cd2ccc93de9 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Mon, 6 Feb 2023 19:30:11 -0800 Subject: [PATCH 20/38] build: add owlbot audit10 (#3914) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/{{metadata['repo']['name']}}/issues) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes # 🦕 --- .../owlbot.py | 3 - .../.jsdoc.js | 4 +- .../README.md | 6 +- .../owlbot.py | 2 +- .../package.json | 89 +++++++++---------- .../v1/container_analysis.get_iam_policy.js | 2 +- ...s.get_vulnerability_occurrences_summary.js | 2 +- .../v1/container_analysis.set_iam_policy.js | 2 +- ...container_analysis.test_iam_permissions.js | 2 +- .../v1/grafeas.batch_create_notes.js | 2 +- .../v1/grafeas.batch_create_occurrences.js | 2 +- .../generated/v1/grafeas.create_note.js | 2 +- .../generated/v1/grafeas.create_occurrence.js | 2 +- .../generated/v1/grafeas.delete_note.js | 2 +- .../generated/v1/grafeas.delete_occurrence.js | 2 +- .../samples/generated/v1/grafeas.get_note.js | 2 +- .../generated/v1/grafeas.get_occurrence.js | 2 +- .../v1/grafeas.get_occurrence_note.js | 2 +- .../v1/grafeas.list_note_occurrences.js | 2 +- .../generated/v1/grafeas.list_notes.js | 2 +- .../generated/v1/grafeas.list_occurrences.js | 2 +- .../generated/v1/grafeas.update_note.js | 2 +- .../generated/v1/grafeas.update_occurrence.js | 2 +- ....google.devtools.containeranalysis.v1.json | 2 +- ...tainer_analysis_v1_beta1.get_iam_policy.js | 2 +- ...ainer_analysis_v1_beta1.get_scan_config.js | 2 +- ...ner_analysis_v1_beta1.list_scan_configs.js | 2 +- ...tainer_analysis_v1_beta1.set_iam_policy.js | 2 +- ..._analysis_v1_beta1.test_iam_permissions.js | 2 +- ...er_analysis_v1_beta1.update_scan_config.js | 2 +- .../grafeas_v1_beta1.batch_create_notes.js | 2 +- ...afeas_v1_beta1.batch_create_occurrences.js | 2 +- .../v1beta1/grafeas_v1_beta1.create_note.js | 2 +- .../grafeas_v1_beta1.create_occurrence.js | 2 +- .../v1beta1/grafeas_v1_beta1.delete_note.js | 2 +- .../grafeas_v1_beta1.delete_occurrence.js | 2 +- .../v1beta1/grafeas_v1_beta1.get_note.js | 2 +- .../grafeas_v1_beta1.get_occurrence.js | 2 +- .../grafeas_v1_beta1.get_occurrence_note.js | 2 +- ...1.get_vulnerability_occurrences_summary.js | 2 +- .../grafeas_v1_beta1.list_note_occurrences.js | 2 +- .../v1beta1/grafeas_v1_beta1.list_notes.js | 2 +- .../grafeas_v1_beta1.list_occurrences.js | 2 +- .../v1beta1/grafeas_v1_beta1.update_note.js | 2 +- .../grafeas_v1_beta1.update_occurrence.js | 2 +- ...le.devtools.containeranalysis.v1beta1.json | 2 +- .../src/index.ts | 2 +- .../src/v1/container_analysis_client.ts | 5 +- .../src/v1/index.ts | 2 +- .../container_analysis_v1_beta1_client.ts | 5 +- .../src/v1beta1/grafeas_v1_beta1_client.ts | 5 +- .../src/v1beta1/index.ts | 2 +- .../system-test/fixtures/sample/src/index.js | 2 +- .../system-test/fixtures/sample/src/index.ts | 2 +- .../system-test/install.ts | 2 +- .../test/gapic_container_analysis_v1.ts | 2 +- ...pic_container_analysis_v1_beta1_v1beta1.ts | 2 +- .../test/gapic_grafeas_v1_beta1_v1beta1.ts | 2 +- 58 files changed, 110 insertions(+), 109 deletions(-) diff --git a/packages/google-cloud-workflows-executions/owlbot.py b/packages/google-cloud-workflows-executions/owlbot.py index 66c2b868111d..1505c5e0c364 100644 --- a/packages/google-cloud-workflows-executions/owlbot.py +++ b/packages/google-cloud-workflows-executions/owlbot.py @@ -22,6 +22,3 @@ from pathlib import Path import shutil node.owlbot_main(relative_dir="packages/google-cloud-workflows-executions",templates_excludes=["src/index.ts"], staging_excludes=["src/v1/index.ts", "src/v1beta/index.ts", "src/index.ts", "README.md", "package.json"]) -shutil.rmtree('v1', ignore_errors=True) -shutil.rmtree('v1beta', ignore_errors=True) - diff --git a/packages/google-devtools-containeranalysis/.jsdoc.js b/packages/google-devtools-containeranalysis/.jsdoc.js index 17b0124cca82..bc16644d92f6 100644 --- a/packages/google-devtools-containeranalysis/.jsdoc.js +++ b/packages/google-devtools-containeranalysis/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2022 Google LLC', + copyright: 'Copyright 2023 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/containeranalysis', diff --git a/packages/google-devtools-containeranalysis/README.md b/packages/google-devtools-containeranalysis/README.md index 959e14cf242d..151f409b6340 100644 --- a/packages/google-devtools-containeranalysis/README.md +++ b/packages/google-devtools-containeranalysis/README.md @@ -10,15 +10,15 @@ -Container Analysis API client for Node.js +Containeranalysis client for Node.js A comprehensive list of changes in each version may be found in -[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-devtools-containeranalysis/CHANGELOG.md). +[the CHANGELOG](googleapis/nodejs-containeranalysis/CHANGELOG.md). * [Google Container Analysis Node.js Client API Reference][client-docs] * [Google Container Analysis Documentation][product-docs] -* [github.com/googleapis/google-cloud-node/packages/google-devtools-containeranalysis](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-devtools-containeranalysis) +* [github.com/googleapis/nodejs-containeranalysis](googleapis/nodejs-containeranalysis) Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in [Client Libraries Explained][explained]. diff --git a/packages/google-devtools-containeranalysis/owlbot.py b/packages/google-devtools-containeranalysis/owlbot.py index 45163103fb95..09aa9e512040 100644 --- a/packages/google-devtools-containeranalysis/owlbot.py +++ b/packages/google-devtools-containeranalysis/owlbot.py @@ -23,7 +23,7 @@ import pathlib def patch(library: pathlib.Path): - # # fix the URL of grafeas.io (this is already fixed upstream). + # fix the URL of grafeas.io (this is already fixed upstream). s.replace(library / 'src/v1beta1/*.ts', 'grafeas.io', 'https://grafeas.io') diff --git a/packages/google-devtools-containeranalysis/package.json b/packages/google-devtools-containeranalysis/package.json index 23573e923c6a..2a879714e7f6 100644 --- a/packages/google-devtools-containeranalysis/package.json +++ b/packages/google-devtools-containeranalysis/package.json @@ -1,17 +1,14 @@ { "name": "@google-cloud/containeranalysis", - "repository": { - "type": "git", - "directory": "packages/google-devtools-containeranalysis", - "url": "https://github.com/googleapis/google-cloud-node.git" - }, - "version": "4.4.1", + "version": "0.1.0", + "description": "Containeranalysis client for Node.js", + "repository": "googleapis/nodejs-containeranalysis", + "license": "Apache-2.0", "author": "Google LLC", - "description": "Container Analysis API client for Node.js", "main": "build/src/index.js", "files": [ - "build/protos", - "build/src" + "build/src", + "build/protos" ], "keywords": [ "google apis client", @@ -24,50 +21,48 @@ "cloud", "google containeranalysis", "containeranalysis", - "Container Analysis API" + "container analysis", + "grafeas" ], - "dependencies": { - "@google-cloud/grafeas": "^4.0.0", - "google-gax": "^3.5.2" - }, - "devDependencies": { - "@types/mocha": "^9.0.0", - "@types/node": "^18.0.0", - "@types/sinon": "^10.0.0", - "c8": "^7.0.0", - "gts": "^3.1.0", - "jsdoc": "^4.0.0", - "jsdoc-fresh": "^2.0.0", - "jsdoc-region-tag": "^2.0.0", - "linkinator": "^4.0.0", - "mocha": "^9.2.2", - "null-loader": "^4.0.0", - "pack-n-play": "^1.0.0-2", - "sinon": "^15.0.0", - "ts-loader": "^9.0.0", - "typescript": "^4.6.4", - "webpack": "^5.0.0", - "webpack-cli": "^5.0.0" - }, "scripts": { - "test": "c8 mocha build/test", - "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", - "system-test": "npm run compile && c8 mocha build/system-test", - "docs": "jsdoc -c .jsdoc.js", - "lint": "gts check", - "fix": "gts fix", - "docs-test": "linkinator docs", "clean": "gts clean", - "compile": "tsc -p . && cp -r protos build/", + "compile": "tsc -p . && cp -r protos build/ && minifyProtoJson", "compile-protos": "compileProtos src", + "docs": "jsdoc -c .jsdoc.js", "predocs-test": "npm run docs", + "docs-test": "linkinator docs", + "fix": "gts fix", + "lint": "gts check", + "prelint": "cd samples; npm link ../; npm i", "prepare": "npm run compile-protos && npm run compile", - "prelint": "cd samples; npm link ../; npm install", - "precompile": "gts clean" + "system-test": "npm run compile && c8 mocha build/system-test", + "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", + "test": "c8 mocha build/test" }, - "license": "Apache-2.0", - "engines": { - "node": ">=12.0.0" + "dependencies": { + "@google-cloud/grafeas": "^4.2.1", + "google-gax": "^3.5.2" }, - "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-devtools-containeranalysis" + "devDependencies": { + "@types/mocha": "^9.1.1", + "@types/node": "^16.11.62", + "@types/sinon": "^10.0.13", + "c8": "^7.12.0", + "gts": "^3.1.1", + "jsdoc": "^3.6.11", + "jsdoc-fresh": "^2.0.1", + "jsdoc-region-tag": "^2.0.1", + "linkinator": "^4.0.3", + "mocha": "^10.0.0", + "null-loader": "^4.0.1", + "pack-n-play": "^1.0.0-2", + "sinon": "^14.0.0", + "ts-loader": "^8.4.0", + "typescript": "^4.8.3", + "webpack": "^4.46.0", + "webpack-cli": "^4.10.0" + }, + "engines": { + "node": ">=v12" + } } diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.get_iam_policy.js b/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.get_iam_policy.js index ffd2dac37022..c933a75f6140 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.get_iam_policy.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.get_iam_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.get_vulnerability_occurrences_summary.js b/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.get_vulnerability_occurrences_summary.js index 961d76c4a50e..ff47d3b87667 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.get_vulnerability_occurrences_summary.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.get_vulnerability_occurrences_summary.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.set_iam_policy.js b/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.set_iam_policy.js index 773d2feef160..972488ce8f9a 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.set_iam_policy.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.set_iam_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.test_iam_permissions.js b/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.test_iam_permissions.js index 15cbec7433fb..0d3b4347e390 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.test_iam_permissions.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/container_analysis.test_iam_permissions.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.batch_create_notes.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.batch_create_notes.js index c7fd50e98896..56080f5f30b1 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.batch_create_notes.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.batch_create_notes.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.batch_create_occurrences.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.batch_create_occurrences.js index 82bf041bfa7f..f6132b3140c8 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.batch_create_occurrences.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.batch_create_occurrences.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.create_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.create_note.js index 7f4ddc8bb2c4..2f79faf7ea8f 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.create_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.create_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.create_occurrence.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.create_occurrence.js index 5bf16ee0424f..8e36f36e044d 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.create_occurrence.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.create_occurrence.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.delete_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.delete_note.js index 43a0ecc358f1..400349338713 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.delete_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.delete_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.delete_occurrence.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.delete_occurrence.js index 7fc141a61acd..f8342ce8c8bd 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.delete_occurrence.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.delete_occurrence.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_note.js index 93f2953494d5..b57805866c36 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_occurrence.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_occurrence.js index fa9deb083bce..af3812b99105 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_occurrence.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_occurrence.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_occurrence_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_occurrence_note.js index 3475e5e73d9d..7c8017e6e1c6 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_occurrence_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.get_occurrence_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_note_occurrences.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_note_occurrences.js index 89ed7bcaadd6..253b9ab09554 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_note_occurrences.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_note_occurrences.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_notes.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_notes.js index 1aa240b1340c..103280dd10e6 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_notes.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_notes.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_occurrences.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_occurrences.js index f94b1a76954e..a3fdab994996 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_occurrences.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.list_occurrences.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.update_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.update_note.js index 9abb83cf4493..c8f3b365cf3d 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.update_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.update_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.update_occurrence.js b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.update_occurrence.js index 037561c40058..27d7f27cdcc1 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.update_occurrence.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/grafeas.update_occurrence.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata.google.devtools.containeranalysis.v1.json b/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata.google.devtools.containeranalysis.v1.json index fb56568256d0..f4d6469173b4 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata.google.devtools.containeranalysis.v1.json +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata.google.devtools.containeranalysis.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-containeranalysis", - "version": "4.4.1", + "version": "0.1.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.get_iam_policy.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.get_iam_policy.js index 091136585579..8d14e1488fc1 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.get_iam_policy.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.get_iam_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.get_scan_config.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.get_scan_config.js index edbdac5f8f98..d319d2b04795 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.get_scan_config.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.get_scan_config.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.list_scan_configs.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.list_scan_configs.js index a9d4d2c5db3e..85b5024edea9 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.list_scan_configs.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.list_scan_configs.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.set_iam_policy.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.set_iam_policy.js index 0e76a5047dab..68df30f5afe4 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.set_iam_policy.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.set_iam_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.test_iam_permissions.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.test_iam_permissions.js index 1118a6071193..25cab1150f2d 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.test_iam_permissions.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.test_iam_permissions.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.update_scan_config.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.update_scan_config.js index 8611b4a35dc0..972b212744c4 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.update_scan_config.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/container_analysis_v1_beta1.update_scan_config.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.batch_create_notes.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.batch_create_notes.js index bc43b8361a77..5fc50f911c7b 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.batch_create_notes.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.batch_create_notes.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.batch_create_occurrences.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.batch_create_occurrences.js index 8e9d1ed6ddc7..24743d5790b1 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.batch_create_occurrences.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.batch_create_occurrences.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.create_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.create_note.js index 2ec483ba024f..6e64d8e46959 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.create_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.create_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.create_occurrence.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.create_occurrence.js index 81a745ccd81d..8ca47649de15 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.create_occurrence.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.create_occurrence.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.delete_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.delete_note.js index dd3cc4b0ae2e..dfe500ad2cd9 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.delete_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.delete_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.delete_occurrence.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.delete_occurrence.js index bbd3d475b7bd..425dde461087 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.delete_occurrence.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.delete_occurrence.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_note.js index 3e3b18a498fc..c498f1f79487 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence.js index 0254d00e4824..e062f404f9fc 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence_note.js index 75ba443346b1..012f47c8b3f6 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_vulnerability_occurrences_summary.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_vulnerability_occurrences_summary.js index 9d35e05182ed..a95d9608aff6 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_vulnerability_occurrences_summary.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.get_vulnerability_occurrences_summary.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_note_occurrences.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_note_occurrences.js index 5c1a0ed61ab9..fd4d81e0b716 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_note_occurrences.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_note_occurrences.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_notes.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_notes.js index e3e5b435bb3d..8b8a3059e9d3 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_notes.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_notes.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_occurrences.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_occurrences.js index a300bfbc9fcc..548c45904eb9 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_occurrences.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.list_occurrences.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.update_note.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.update_note.js index 68e0a1dd78fa..ef54381eb4c5 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.update_note.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.update_note.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.update_occurrence.js b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.update_occurrence.js index 433a3eb4e4bc..8ab1ed0fa5e5 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.update_occurrence.js +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/grafeas_v1_beta1.update_occurrence.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata.google.devtools.containeranalysis.v1beta1.json b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata.google.devtools.containeranalysis.v1beta1.json index 178edebb2f4d..25eb33a6e927 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata.google.devtools.containeranalysis.v1beta1.json +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata.google.devtools.containeranalysis.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-containeranalysis", - "version": "4.4.1", + "version": "0.1.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-devtools-containeranalysis/src/index.ts b/packages/google-devtools-containeranalysis/src/index.ts index 4ddc0fe6945c..3c5fb5c563ef 100644 --- a/packages/google-devtools-containeranalysis/src/index.ts +++ b/packages/google-devtools-containeranalysis/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/src/v1/container_analysis_client.ts b/packages/google-devtools-containeranalysis/src/v1/container_analysis_client.ts index 12e1b4b3c9f2..a5a08981929e 100644 --- a/packages/google-devtools-containeranalysis/src/v1/container_analysis_client.ts +++ b/packages/google-devtools-containeranalysis/src/v1/container_analysis_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -131,6 +131,9 @@ export class ContainerAnalysisClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/packages/google-devtools-containeranalysis/src/v1/index.ts b/packages/google-devtools-containeranalysis/src/v1/index.ts index 98ccba400ed4..81522f32fdbb 100644 --- a/packages/google-devtools-containeranalysis/src/v1/index.ts +++ b/packages/google-devtools-containeranalysis/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/src/v1beta1/container_analysis_v1_beta1_client.ts b/packages/google-devtools-containeranalysis/src/v1beta1/container_analysis_v1_beta1_client.ts index e3f8d4c0d041..807c6fcae0d6 100644 --- a/packages/google-devtools-containeranalysis/src/v1beta1/container_analysis_v1_beta1_client.ts +++ b/packages/google-devtools-containeranalysis/src/v1beta1/container_analysis_v1_beta1_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -133,6 +133,9 @@ export class ContainerAnalysisV1Beta1Client { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/packages/google-devtools-containeranalysis/src/v1beta1/grafeas_v1_beta1_client.ts b/packages/google-devtools-containeranalysis/src/v1beta1/grafeas_v1_beta1_client.ts index 612a126d1b04..5604f1fee694 100644 --- a/packages/google-devtools-containeranalysis/src/v1beta1/grafeas_v1_beta1_client.ts +++ b/packages/google-devtools-containeranalysis/src/v1beta1/grafeas_v1_beta1_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -133,6 +133,9 @@ export class GrafeasV1Beta1Client { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/packages/google-devtools-containeranalysis/src/v1beta1/index.ts b/packages/google-devtools-containeranalysis/src/v1beta1/index.ts index 1b08c601220c..619ba56f58e4 100644 --- a/packages/google-devtools-containeranalysis/src/v1beta1/index.ts +++ b/packages/google-devtools-containeranalysis/src/v1beta1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/system-test/fixtures/sample/src/index.js b/packages/google-devtools-containeranalysis/system-test/fixtures/sample/src/index.js index 860b92168957..c3e5379b647b 100644 --- a/packages/google-devtools-containeranalysis/system-test/fixtures/sample/src/index.js +++ b/packages/google-devtools-containeranalysis/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/system-test/fixtures/sample/src/index.ts b/packages/google-devtools-containeranalysis/system-test/fixtures/sample/src/index.ts index 41c8c39789f2..2d9ffda6defa 100644 --- a/packages/google-devtools-containeranalysis/system-test/fixtures/sample/src/index.ts +++ b/packages/google-devtools-containeranalysis/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/system-test/install.ts b/packages/google-devtools-containeranalysis/system-test/install.ts index 6dd1eaadafaa..f61fe236476b 100644 --- a/packages/google-devtools-containeranalysis/system-test/install.ts +++ b/packages/google-devtools-containeranalysis/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/test/gapic_container_analysis_v1.ts b/packages/google-devtools-containeranalysis/test/gapic_container_analysis_v1.ts index 9ef9604a7fc5..ac43199dc795 100644 --- a/packages/google-devtools-containeranalysis/test/gapic_container_analysis_v1.ts +++ b/packages/google-devtools-containeranalysis/test/gapic_container_analysis_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/test/gapic_container_analysis_v1_beta1_v1beta1.ts b/packages/google-devtools-containeranalysis/test/gapic_container_analysis_v1_beta1_v1beta1.ts index 3debd2468504..95670e193780 100644 --- a/packages/google-devtools-containeranalysis/test/gapic_container_analysis_v1_beta1_v1beta1.ts +++ b/packages/google-devtools-containeranalysis/test/gapic_container_analysis_v1_beta1_v1beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-devtools-containeranalysis/test/gapic_grafeas_v1_beta1_v1beta1.ts b/packages/google-devtools-containeranalysis/test/gapic_grafeas_v1_beta1_v1beta1.ts index 570c27a8274c..e90f0c167da3 100644 --- a/packages/google-devtools-containeranalysis/test/gapic_grafeas_v1_beta1_v1beta1.ts +++ b/packages/google-devtools-containeranalysis/test/gapic_grafeas_v1_beta1_v1beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From edd413166727e65c6ddfc5a3956e9e708bcef514 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Mon, 6 Feb 2023 20:08:12 -0800 Subject: [PATCH 21/38] chore: delete pycache (#3964) fixes #3767 --- .../__pycache__/synth.cpython-37.pyc | Bin 988 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 packages/google-cloud-functions/__pycache__/synth.cpython-37.pyc diff --git a/packages/google-cloud-functions/__pycache__/synth.cpython-37.pyc b/packages/google-cloud-functions/__pycache__/synth.cpython-37.pyc deleted file mode 100644 index 1c06c44421428324ce0d9dc6d0ca5c6966b93a35..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 988 zcmYL`&2G~`5XaX}Qafo9C;g&uvN#}uM66ybRMDhSsnjpgREQPGa(5@L!`f@ScGUO{ zIP@Ko0|(v!@faL^<-{v+Vx7k6S{~2*JoBH`Os~iX&t6R=(o5 zG!$V(6{<1?tBY^RFXOWEz$*TliWKB)SX&Yu>!6RT@~zR*y&`EDuS0oOpCjC$6<5Jc zx`vIrSI|5{pP%CvG-houpfy*q0qS@I460GxRcZBJRnXT@ACRoxl+|0XHEz>du0bnw z{l0{^7x~*RddLNJwnOW*L7VfEf|ij%TZ>4WJ(j_hk$O~grdWisP z#@rOsAif3RrC_=cK;*=dhfWj=laI_eFJj(Jy?iPQqe)Nz#|H#G33`gz<#htFE?yXyQo?!aNA#ZY)xx__;6Q$P3)GT>yLE zT%wHv?VE*{ZWi7nvpc()X4{k#+s>+sS;d^QOcA)Tin=ZdaVa;ukBm8io5%@>Zonzv z>MG94Imk4|T~}T%TfcFHNBTS%d2UuY8uYG@@w3D0;lGzxz7_PWZ=#i)__ky+Mnlf!UF3yJE|_d H=JNRu$oVpy From 4b97bb91894bfa56e5713e3f550a671e9f27c57c Mon Sep 17 00:00:00 2001 From: "owlbot-bootstrapper[bot]" <104649659+owlbot-bootstrapper[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 13:04:12 -0800 Subject: [PATCH 22/38] feat: add initial files for google.cloud.gsuiteaddons.v1 (#3744) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: initial commit * feat: initial generation of library Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdzdWl0ZWFkZG9ucy8uT3dsQm90LnlhbWwiLCJoIjoiNzc2NzkwNjIzNTgyMGM0NDIzZTQxNTI4NDBiNDQ5MDE4MTNlM2U0ZCJ9 * Owl Bot copied code from https://github.com/googleapis/googleapis-gen/commit/7767906235820c4423e4152840b44901813e3e4d * Owl Bot copied code from https://github.com/googleapis/googleapis-gen/commit/7767906235820c4423e4152840b44901813e3e4d * Owl Bot copied code from https://github.com/googleapis/googleapis-gen/commit/7767906235820c4423e4152840b44901813e3e4d * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owlbot Bootstrapper Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> Co-authored-by: Alexander Fenster Co-authored-by: Sofia Leon --- .../google-cloud-gsuiteaddons/.OwlBot.yaml | 17 + .../google-cloud-gsuiteaddons/.eslintignore | 7 + .../google-cloud-gsuiteaddons/.eslintrc.json | 3 + .../google-cloud-gsuiteaddons/.gitattributes | 4 + packages/google-cloud-gsuiteaddons/.gitignore | 14 + packages/google-cloud-gsuiteaddons/.jsdoc.js | 55 + .../google-cloud-gsuiteaddons/.mocharc.js | 29 + packages/google-cloud-gsuiteaddons/.nycrc | 24 + .../google-cloud-gsuiteaddons/.prettierignore | 6 + .../google-cloud-gsuiteaddons/.prettierrc.js | 17 + .../.repo-metadata.json | 16 + .../CODE_OF_CONDUCT.md | 94 + .../google-cloud-gsuiteaddons/CONTRIBUTING.md | 76 + packages/google-cloud-gsuiteaddons/LICENSE | 202 + packages/google-cloud-gsuiteaddons/README.md | 197 + .../linkinator.config.json | 16 + .../google-cloud-gsuiteaddons/package.json | 71 + .../apps/script/type/addon_widget_set.proto | 58 + .../calendar/calendar_addon_manifest.proto | 107 + .../type/docs/docs_addon_manifest.proto | 47 + .../type/drive/drive_addon_manifest.proto | 48 + .../apps/script/type/extension_point.proto | 77 + .../type/gmail/gmail_addon_manifest.proto | 127 + .../apps/script/type/script_manifest.proto | 105 + .../type/sheets/sheets_addon_manifest.proto | 47 + .../type/slides/slides_addon_manifest.proto | 47 + .../cloud/gsuiteaddons/v1/gsuiteaddons.proto | 389 + .../protos/protos.d.ts | 9497 ++++++ .../protos/protos.js | 23814 ++++++++++++++++ .../protos/protos.json | 2236 ++ .../samples/README.md | 230 + .../v1/g_suite_add_ons.create_deployment.js | 73 + .../v1/g_suite_add_ons.delete_deployment.js | 67 + .../v1/g_suite_add_ons.get_authorization.js | 63 + .../v1/g_suite_add_ons.get_deployment.js | 62 + .../v1/g_suite_add_ons.get_install_status.js | 62 + .../v1/g_suite_add_ons.install_deployment.js | 62 + .../v1/g_suite_add_ons.list_deployments.js | 78 + .../v1/g_suite_add_ons.replace_deployment.js | 61 + .../g_suite_add_ons.uninstall_deployment.js | 62 + ...metadata.google.cloud.gsuiteaddons.v1.json | 395 + .../samples/package.json | 24 + .../samples/quickstart.js | 76 + .../samples/test/quickstart.js | 41 + .../google-cloud-gsuiteaddons/src/index.ts | 27 + .../src/v1/g_suite_add_ons_client.ts | 1495 + .../src/v1/g_suite_add_ons_client_config.json | 84 + .../src/v1/g_suite_add_ons_proto_list.json | 12 + .../src/v1/gapic_metadata.json | 117 + .../google-cloud-gsuiteaddons/src/v1/index.ts | 19 + .../system-test/fixtures/sample/src/index.js | 26 + .../system-test/fixtures/sample/src/index.ts | 32 + .../system-test/install.ts | 51 + .../test/gapic_g_suite_add_ons_v1.ts | 1776 ++ .../google-cloud-gsuiteaddons/tsconfig.json | 19 + .../webpack.config.js | 64 + release-please-config.json | 3 +- 57 files changed, 42527 insertions(+), 1 deletion(-) create mode 100644 packages/google-cloud-gsuiteaddons/.OwlBot.yaml create mode 100644 packages/google-cloud-gsuiteaddons/.eslintignore create mode 100644 packages/google-cloud-gsuiteaddons/.eslintrc.json create mode 100644 packages/google-cloud-gsuiteaddons/.gitattributes create mode 100644 packages/google-cloud-gsuiteaddons/.gitignore create mode 100644 packages/google-cloud-gsuiteaddons/.jsdoc.js create mode 100644 packages/google-cloud-gsuiteaddons/.mocharc.js create mode 100644 packages/google-cloud-gsuiteaddons/.nycrc create mode 100644 packages/google-cloud-gsuiteaddons/.prettierignore create mode 100644 packages/google-cloud-gsuiteaddons/.prettierrc.js create mode 100644 packages/google-cloud-gsuiteaddons/.repo-metadata.json create mode 100644 packages/google-cloud-gsuiteaddons/CODE_OF_CONDUCT.md create mode 100644 packages/google-cloud-gsuiteaddons/CONTRIBUTING.md create mode 100644 packages/google-cloud-gsuiteaddons/LICENSE create mode 100644 packages/google-cloud-gsuiteaddons/README.md create mode 100644 packages/google-cloud-gsuiteaddons/linkinator.config.json create mode 100644 packages/google-cloud-gsuiteaddons/package.json create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/addon_widget_set.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/calendar/calendar_addon_manifest.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/docs/docs_addon_manifest.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/drive/drive_addon_manifest.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/extension_point.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/gmail/gmail_addon_manifest.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/script_manifest.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/sheets/sheets_addon_manifest.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/slides/slides_addon_manifest.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto create mode 100644 packages/google-cloud-gsuiteaddons/protos/protos.d.ts create mode 100644 packages/google-cloud-gsuiteaddons/protos/protos.js create mode 100644 packages/google-cloud-gsuiteaddons/protos/protos.json create mode 100644 packages/google-cloud-gsuiteaddons/samples/README.md create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.create_deployment.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.delete_deployment.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_authorization.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_deployment.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_install_status.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.install_deployment.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.list_deployments.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.replace_deployment.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.uninstall_deployment.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata.google.cloud.gsuiteaddons.v1.json create mode 100644 packages/google-cloud-gsuiteaddons/samples/package.json create mode 100644 packages/google-cloud-gsuiteaddons/samples/quickstart.js create mode 100644 packages/google-cloud-gsuiteaddons/samples/test/quickstart.js create mode 100644 packages/google-cloud-gsuiteaddons/src/index.ts create mode 100644 packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_client.ts create mode 100644 packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_client_config.json create mode 100644 packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_proto_list.json create mode 100644 packages/google-cloud-gsuiteaddons/src/v1/gapic_metadata.json create mode 100644 packages/google-cloud-gsuiteaddons/src/v1/index.ts create mode 100644 packages/google-cloud-gsuiteaddons/system-test/fixtures/sample/src/index.js create mode 100644 packages/google-cloud-gsuiteaddons/system-test/fixtures/sample/src/index.ts create mode 100644 packages/google-cloud-gsuiteaddons/system-test/install.ts create mode 100644 packages/google-cloud-gsuiteaddons/test/gapic_g_suite_add_ons_v1.ts create mode 100644 packages/google-cloud-gsuiteaddons/tsconfig.json create mode 100644 packages/google-cloud-gsuiteaddons/webpack.config.js diff --git a/packages/google-cloud-gsuiteaddons/.OwlBot.yaml b/packages/google-cloud-gsuiteaddons/.OwlBot.yaml new file mode 100644 index 000000000000..dc5a505d1671 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.OwlBot.yaml @@ -0,0 +1,17 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +deep-copy-regex: + - source: /google/cloud/gsuiteaddons/(.*)/.*-nodejs + dest: /owl-bot-staging/google-cloud-gsuiteaddons/$1 \ No newline at end of file diff --git a/packages/google-cloud-gsuiteaddons/.eslintignore b/packages/google-cloud-gsuiteaddons/.eslintignore new file mode 100644 index 000000000000..ea5b04aebe68 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.eslintignore @@ -0,0 +1,7 @@ +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ +samples/generated/ diff --git a/packages/google-cloud-gsuiteaddons/.eslintrc.json b/packages/google-cloud-gsuiteaddons/.eslintrc.json new file mode 100644 index 000000000000..782153495464 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/packages/google-cloud-gsuiteaddons/.gitattributes b/packages/google-cloud-gsuiteaddons/.gitattributes new file mode 100644 index 000000000000..33739cb74e44 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.gitattributes @@ -0,0 +1,4 @@ +*.ts text eol=lf +*.js text eol=lf +protos/* linguist-generated +**/api-extractor.json linguist-language=JSON-with-Comments diff --git a/packages/google-cloud-gsuiteaddons/.gitignore b/packages/google-cloud-gsuiteaddons/.gitignore new file mode 100644 index 000000000000..d4f03a0df2e8 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.gitignore @@ -0,0 +1,14 @@ +**/*.log +**/node_modules +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ +system-test/secrets.js +system-test/*key.json +*.lock +.DS_Store +package-lock.json +__pycache__ diff --git a/packages/google-cloud-gsuiteaddons/.jsdoc.js b/packages/google-cloud-gsuiteaddons/.jsdoc.js new file mode 100644 index 000000000000..0ba8d0588e97 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.jsdoc.js @@ -0,0 +1,55 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +'use strict'; + +module.exports = { + opts: { + readme: './README.md', + package: './package.json', + template: './node_modules/jsdoc-fresh', + recurse: true, + verbose: true, + destination: './docs/' + }, + plugins: [ + 'plugins/markdown', + 'jsdoc-region-tag' + ], + source: { + excludePattern: '(^|\\/|\\\\)[._]', + include: [ + 'build/src', + 'protos' + ], + includePattern: '\\.js$' + }, + templates: { + copyright: 'Copyright 2023 Google LLC', + includeDate: false, + sourceFiles: false, + systemName: '@google-cloud/gsuiteaddons', + theme: 'lumen', + default: { + outputSourceFiles: false + } + }, + markdown: { + idInHeadings: true + } +}; diff --git a/packages/google-cloud-gsuiteaddons/.mocharc.js b/packages/google-cloud-gsuiteaddons/.mocharc.js new file mode 100644 index 000000000000..49e7e228701d --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.mocharc.js @@ -0,0 +1,29 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +const config = { + "enable-source-maps": true, + "throw-deprecation": true, + "timeout": 10000, + "recursive": true +} +if (process.env.MOCHA_THROW_DEPRECATION === 'false') { + delete config['throw-deprecation']; +} +if (process.env.MOCHA_REPORTER) { + config.reporter = process.env.MOCHA_REPORTER; +} +if (process.env.MOCHA_REPORTER_OUTPUT) { + config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`; +} +module.exports = config diff --git a/packages/google-cloud-gsuiteaddons/.nycrc b/packages/google-cloud-gsuiteaddons/.nycrc new file mode 100644 index 000000000000..b18d5472b62b --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.nycrc @@ -0,0 +1,24 @@ +{ + "report-dir": "./.coverage", + "reporter": ["text", "lcov"], + "exclude": [ + "**/*-test", + "**/.coverage", + "**/apis", + "**/benchmark", + "**/conformance", + "**/docs", + "**/samples", + "**/scripts", + "**/protos", + "**/test", + "**/*.d.ts", + ".jsdoc.js", + "**/.jsdoc.js", + "karma.conf.js", + "webpack-tests.config.js", + "webpack.config.js" + ], + "exclude-after-remap": false, + "all": true +} diff --git a/packages/google-cloud-gsuiteaddons/.prettierignore b/packages/google-cloud-gsuiteaddons/.prettierignore new file mode 100644 index 000000000000..9340ad9b86d3 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.prettierignore @@ -0,0 +1,6 @@ +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ diff --git a/packages/google-cloud-gsuiteaddons/.prettierrc.js b/packages/google-cloud-gsuiteaddons/.prettierrc.js new file mode 100644 index 000000000000..1e6cec783e40 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.prettierrc.js @@ -0,0 +1,17 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} diff --git a/packages/google-cloud-gsuiteaddons/.repo-metadata.json b/packages/google-cloud-gsuiteaddons/.repo-metadata.json new file mode 100644 index 000000000000..82c84241d44c --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "name": "gsuiteaddons", + "name_pretty": "Google Workspace Add-ons API", + "product_documentation": "developers.google.com/workspace/add-ons/", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/gsuiteaddons/latest", + "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues", + "release_level": "beta", + "language": "nodejs", + "repo": "googleapis/google-cloud-node", + "distribution_name": "@google-cloud/gsuiteaddons", + "api_id": "gsuiteaddons.googleapis.com", + "default_version": "v1", + "requires_billing": true, + "library_type": "GAPIC_AUTO" +} + diff --git a/packages/google-cloud-gsuiteaddons/CODE_OF_CONDUCT.md b/packages/google-cloud-gsuiteaddons/CODE_OF_CONDUCT.md new file mode 100644 index 000000000000..2add2547a812 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/CODE_OF_CONDUCT.md @@ -0,0 +1,94 @@ + +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal appearance, +race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, or to ban temporarily or permanently any +contributor for other behaviors that they deem inappropriate, threatening, +offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when the Project +Steward has a reasonable belief that an individual's behavior may have a +negative impact on the project or its community. + +## Conflict Resolution + +We do not believe that all conflict is bad; healthy debate and disagreement +often yield positive results. However, it is never okay to be disrespectful or +to engage in behavior that violates the project’s code of conduct. + +If you see someone violating the code of conduct, you are encouraged to address +the behavior directly with those involved. Many issues can be resolved quickly +and easily, and this gives people more control over the outcome of their +dispute. If you are unable to resolve the matter for any reason, or if the +behavior is threatening or harassing, report it. We are dedicated to providing +an environment where participants feel welcome and safe. + +Reports should be directed to *googleapis-stewards@google.com*, the +Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to +receive and address reported violations of the code of conduct. They will then +work with a committee consisting of representatives from the Open Source +Programs Office and the Google Open Source Strategy team. If for any reason you +are uncomfortable reaching out to the Project Steward, please email +opensource@google.com. + +We will investigate every complaint, but you may not receive a direct response. +We will use our discretion in determining when and how to follow up on reported +incidents, which may range from not taking action to permanent expulsion from +the project and project-sponsored spaces. We will notify the accused of the +report and provide them an opportunity to discuss it before any action is taken. +The identity of the reporter will be omitted from the details of the report +supplied to the accused. In potentially harmful situations, such as ongoing +harassment or threats to anyone's safety, we may take action without notice. + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/packages/google-cloud-gsuiteaddons/CONTRIBUTING.md b/packages/google-cloud-gsuiteaddons/CONTRIBUTING.md new file mode 100644 index 000000000000..5d92e9e42237 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/CONTRIBUTING.md @@ -0,0 +1,76 @@ +# How to become a contributor and submit your own code + +**Table of contents** + +* [Contributor License Agreements](#contributor-license-agreements) +* [Contributing a patch](#contributing-a-patch) +* [Running the tests](#running-the-tests) +* [Releasing the library](#releasing-the-library) + +## Contributor License Agreements + +We'd love to accept your sample apps and patches! Before we can take them, we +have to jump a couple of legal hurdles. + +Please fill out either the individual or corporate Contributor License Agreement +(CLA). + + * If you are an individual writing original source code and you're sure you + own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual). + * If you work for a company that wants to allow you to contribute your work, + then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate). + +Follow either of the two links above to access the appropriate CLA and +instructions for how to sign and return it. Once we receive it, we'll be able to +accept your pull requests. + +## Contributing A Patch + +1. Submit an issue describing your proposed change to the repo in question. +1. The repo owner will respond to your issue promptly. +1. If your proposed change is accepted, and you haven't already done so, sign a + Contributor License Agreement (see details above). +1. Fork the desired repo, develop and test your code changes. +1. Ensure that your code adheres to the existing style in the code to which + you are contributing. +1. Ensure that your code has an appropriate set of tests which all pass. +1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling. +1. Submit a pull request. + +### Before you begin + +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Google Workspace Add-ons API API][enable_api]. +1. [Set up authentication with a service account][auth] so you can access the + API from your local workstation. + + +## Running the tests + +1. [Prepare your environment for Node.js setup][setup]. + +1. Install dependencies: + + npm install + +1. Run the tests: + + # Run unit tests. + npm test + + # Run sample integration tests. + npm run samples-test + + # Run all system tests. + npm run system-test + +1. Lint (and maybe fix) any changes: + + npm run fix + +[setup]: https://cloud.google.com/nodejs/docs/setup +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=gsuiteaddons.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file diff --git a/packages/google-cloud-gsuiteaddons/LICENSE b/packages/google-cloud-gsuiteaddons/LICENSE new file mode 100644 index 000000000000..d64569567334 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/google-cloud-gsuiteaddons/README.md b/packages/google-cloud-gsuiteaddons/README.md new file mode 100644 index 000000000000..23482e616ddb --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/README.md @@ -0,0 +1,197 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Google Workspace Add-ons API: Node.js Client](https://github.com/googleapis/google-cloud-node) + +[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![npm version](https://img.shields.io/npm/v/@google-cloud/gsuiteaddons.svg)](https://www.npmjs.org/package/@google-cloud/gsuiteaddons) + + + + +Google Workspace Add-ons API client for Node.js + + +A comprehensive list of changes in each version may be found in +[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-gsuiteaddons/CHANGELOG.md). + +* [Google Workspace Add-ons API Node.js Client API Reference][client-docs] +* [Google Workspace Add-ons API Documentation][product-docs] +* [github.com/googleapis/google-cloud-node/packages/google-cloud-gsuiteaddons](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-gsuiteaddons) + +Read more about the client libraries for Cloud APIs, including the older +Google APIs Client Libraries, in [Client Libraries Explained][explained]. + +[explained]: https://cloud.google.com/apis/docs/client-libraries-explained + +**Table of contents:** + + +* [Quickstart](#quickstart) + * [Before you begin](#before-you-begin) + * [Installing the client library](#installing-the-client-library) + * [Using the client library](#using-the-client-library) +* [Samples](#samples) +* [Versioning](#versioning) +* [Contributing](#contributing) +* [License](#license) + +## Quickstart + +### Before you begin + +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Google Workspace Add-ons API API][enable_api]. +1. [Set up authentication with a service account][auth] so you can access the + API from your local workstation. + +### Installing the client library + +```bash +npm install @google-cloud/gsuiteaddons +``` + + +### Using the client library + +```javascript +/** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ +/** + * Required. Name of the project in which to create the deployment. + * Example: `projects/my_project`. + */ +// const parent = 'abc123' +/** + * The maximum number of deployments to return. The service may return fewer + * than this value. + * If unspecified, at most 1000 deployments will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + */ +// const pageSize = 1234 +/** + * A page token, received from a previous `ListDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeployments` must + * match the call that provided the page token. + */ +// const pageToken = 'abc123' + +// Imports the Gsuiteaddons library +const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + +// Instantiates a client +const gsuiteaddonsClient = new GSuiteAddOnsClient(); + +async function callListDeployments() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gsuiteaddonsClient.listDeploymentsAsync(request); + for await (const response of iterable) { + console.log(response); + } +} + +callListDeployments(); + +``` + + + +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| G_suite_add_ons.create_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.create_deployment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.create_deployment.js,samples/README.md) | +| G_suite_add_ons.delete_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.delete_deployment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.delete_deployment.js,samples/README.md) | +| G_suite_add_ons.get_authorization | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_authorization.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_authorization.js,samples/README.md) | +| G_suite_add_ons.get_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_deployment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_deployment.js,samples/README.md) | +| G_suite_add_ons.get_install_status | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_install_status.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_install_status.js,samples/README.md) | +| G_suite_add_ons.install_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.install_deployment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.install_deployment.js,samples/README.md) | +| G_suite_add_ons.list_deployments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.list_deployments.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.list_deployments.js,samples/README.md) | +| G_suite_add_ons.replace_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.replace_deployment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.replace_deployment.js,samples/README.md) | +| G_suite_add_ons.uninstall_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.uninstall_deployment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.uninstall_deployment.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/quickstart.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/test/quickstart.js,samples/README.md) | + + + +The [Google Workspace Add-ons API Node.js Client API Reference][client-docs] documentation +also contains samples. + +## Supported Node.js Versions + +Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). +Libraries are compatible with all current _active_ and _maintenance_ versions of +Node.js. +If you are using an end-of-life version of Node.js, we recommend that you update +as soon as possible to an actively supported LTS version. + +Google's client libraries support legacy versions of Node.js runtimes on a +best-efforts basis with the following warnings: + +* Legacy versions are not tested in continuous integration. +* Some security patches and features cannot be backported. +* Dependencies cannot be kept up-to-date. + +Client libraries targeting some end-of-life versions of Node.js are available, and +can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). +The dist-tags follow the naming convention `legacy-(version)`. +For example, `npm install @google-cloud/gsuiteaddons@legacy-8` installs client libraries +for versions compatible with Node.js 8. + +## Versioning + +This library follows [Semantic Versioning](http://semver.org/). + + + + +This library is considered to be in **beta**. This means it is expected to be +mostly stable while we work toward a general availability release; however, +complete stability is not guaranteed. We will address issues and requests +against beta libraries with a high priority. + + + + + +More Information: [Google Cloud Platform Launch Stages][launch_stages] + +[launch_stages]: https://cloud.google.com/terms/launch-stages + +## Contributing + +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md). + +Please note that this `README.md`, the `samples/README.md`, +and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) +are generated from a central template. To edit one of these files, make an edit +to its templates in +[directory](https://github.com/googleapis/synthtool). + +## License + +Apache Version 2.0 + +See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) + +[client-docs]: https://cloud.google.com/nodejs/docs/reference/gsuiteaddons/latest +[product-docs]: developers.google.com/workspace/add-ons/ +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=gsuiteaddons.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started diff --git a/packages/google-cloud-gsuiteaddons/linkinator.config.json b/packages/google-cloud-gsuiteaddons/linkinator.config.json new file mode 100644 index 000000000000..befd23c86335 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/linkinator.config.json @@ -0,0 +1,16 @@ +{ + "recurse": true, + "skip": [ + "https://codecov.io/gh/googleapis/", + "www.googleapis.com", + "img.shields.io", + "https://console.cloud.google.com/cloudshell", + "https://support.google.com" + ], + "silent": true, + "concurrency": 5, + "retry": true, + "retryErrors": true, + "retryErrorsCount": 5, + "retryErrorsJitter": 3000 +} diff --git a/packages/google-cloud-gsuiteaddons/package.json b/packages/google-cloud-gsuiteaddons/package.json new file mode 100644 index 000000000000..2c15163e676b --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/package.json @@ -0,0 +1,71 @@ +{ + "name": "@google-cloud/gsuiteaddons", + "version": "0.0.0", + "description": "Google Workspace Add-ons API client for Node.js", + "repository": { + "type": "git", + "url": "https://github.com/googleapis/google-cloud-node.git", + "directory": "packages/google-cloud-gsuiteaddons" + }, + "license": "Apache-2.0", + "author": "Google LLC", + "main": "build/src/index.js", + "files": [ + "build/src", + "build/protos" + ], + "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-gsuiteaddons", + "keywords": [ + "google apis client", + "google api client", + "google apis", + "google api", + "google", + "google cloud platform", + "google cloud", + "cloud", + "google gsuiteaddons", + "gsuiteaddons", + "Google Workspace Add-ons API" + ], + "scripts": { + "clean": "gts clean", + "compile": "tsc -p . && cp -r protos build/", + "compile-protos": "compileProtos src", + "docs": "jsdoc -c .jsdoc.js", + "predocs-test": "npm run docs", + "docs-test": "linkinator docs", + "fix": "gts fix", + "lint": "gts check", + "prepare": "npm run compile-protos && npm run compile", + "system-test": "npm run compile && c8 mocha build/system-test", + "test": "c8 mocha build/test", + "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", + "prelint": "cd samples; npm link ../; npm i" + }, + "dependencies": { + "google-gax": "^3.5.2" + }, + "devDependencies": { + "@types/mocha": "^9.0.0", + "@types/node": "^18.0.0", + "@types/sinon": "^10.0.0", + "c8": "^7.3.5", + "gts": "^3.1.0", + "jsdoc": "^4.0.0", + "jsdoc-fresh": "^2.0.0", + "jsdoc-region-tag": "^2.0.0", + "linkinator": "^4.0.0", + "mocha": "^9.2.2", + "null-loader": "^4.0.1", + "pack-n-play": "^1.0.0-2", + "sinon": "^14.0.0", + "ts-loader": "^9.0.0", + "typescript": "^4.6.4", + "webpack": "^5.9.0", + "webpack-cli": "^4.2.0" + }, + "engines": { + "node": ">=12.0.0" + } +} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/addon_widget_set.proto b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/addon_widget_set.proto new file mode 100644 index 000000000000..477ff90f7d46 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/addon_widget_set.proto @@ -0,0 +1,58 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type; + +option csharp_namespace = "Google.Apps.Script.Type"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type"; +option java_multiple_files = true; +option java_outer_classname = "AddOnWidgetSetProto"; +option java_package = "com.google.apps.script.type"; +option php_namespace = "Google\\Apps\\Script\\Type"; +option ruby_package = "Google::Apps::Script::Type"; + +// The widget subset used by an add-on. +message AddOnWidgetSet { + // The Widget type. DEFAULT is the basic widget set. + enum WidgetType { + // The default widget set. + WIDGET_TYPE_UNSPECIFIED = 0; + + // The date picker. + DATE_PICKER = 1; + + // Styled buttons include filled buttons and disabled buttons. + STYLED_BUTTONS = 2; + + // Persistent forms allow persisting form values during actions. + PERSISTENT_FORMS = 3; + + // Fixed footer in card. + FIXED_FOOTER = 4; + + // Update the subject and recipients of a draft. + UPDATE_SUBJECT_AND_RECIPIENTS = 5; + + // The grid widget. + GRID_WIDGET = 6; + + // A Gmail add-on action that applies to the addon compose UI. + ADDON_COMPOSE_UI_ACTION = 7; + } + + // The list of widgets used in an add-on. + repeated WidgetType used_widgets = 1; +} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/calendar/calendar_addon_manifest.proto b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/calendar/calendar_addon_manifest.proto new file mode 100644 index 000000000000..3d21cd28ca60 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/calendar/calendar_addon_manifest.proto @@ -0,0 +1,107 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.calendar; + +import "google/api/field_behavior.proto"; +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Calendar"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/calendar"; +option java_multiple_files = true; +option java_outer_classname = "CalendarAddOnManifestProto"; +option java_package = "com.google.apps.script.type.calendar"; +option php_namespace = "Google\\Apps\\Script\\Type\\Calendar"; +option ruby_package = "Google::Apps::Script::Type::Calendar"; + +// Manifest section specific to Calendar Add-ons. + +// Calendar add-on manifest. +message CalendarAddOnManifest { + // An enum defining the level of data access event triggers require. + enum EventAccess { + // Default value when nothing is set for EventAccess. + UNSPECIFIED = 0; + + // METADATA gives event triggers the permission to access the metadata of + // events such as event id and calendar id. + METADATA = 1; + + // READ gives event triggers access to all provided event fields including + // the metadata, attendees, and conference data. + READ = 3; + + // WRITE gives event triggers access to the metadata of events and the + // ability to perform all actions, including adding attendees and setting + // conference data. + WRITE = 4; + + // READ_WRITE gives event triggers access to all provided event fields + // including the metadata, attendees, and conference data and the ability to + // perform all actions. + READ_WRITE = 5; + } + + // Defines an endpoint that will be executed contexts that don't + // match a declared contextual trigger. Any cards generated by this function + // will always be available to the user, but may be eclipsed by contextual + // content when this add-on declares more targeted triggers. + // + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6; + + // Defines conference solutions provided by this add-on. + repeated ConferenceSolution conference_solution = 3; + + // An endpoint to execute that creates a URL to the add-on's settings page. + string create_settings_url_function = 5; + + // An endpoint to trigger when an event is opened (viewed/edited). + CalendarExtensionPoint event_open_trigger = 10; + + // An endpoint to trigger when the open event is updated. + CalendarExtensionPoint event_update_trigger = 11; + + // Define the level of data access when an event addon is triggered. + EventAccess current_event_access = 12; +} + +// Defines conference related values. +message ConferenceSolution { + // Required. The endpoint to call when ConferenceData should be created. + string on_create_function = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. IDs should be unique across ConferenceSolutions within one + // add-on, but this is not strictly enforced. It is up to the add-on developer + // to assign them uniquely, otherwise the wrong ConferenceSolution may be + // used when the add-on is triggered. While the developer may change the + // display name of an add-on, the ID should not be changed. + string id = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The display name of the ConferenceSolution. + string name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. The URL for the logo image of the ConferenceSolution. + string logo_url = 6 [(google.api.field_behavior) = REQUIRED]; +} + +// Common format for declaring a calendar add-on's triggers. +message CalendarExtensionPoint { + // Required. The endpoint to execute when this extension point is + // activated. + string run_function = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/docs/docs_addon_manifest.proto b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/docs/docs_addon_manifest.proto new file mode 100644 index 000000000000..395523be5ee5 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/docs/docs_addon_manifest.proto @@ -0,0 +1,47 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.docs; + +import "google/api/field_behavior.proto"; +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Docs"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/docs"; +option java_multiple_files = true; +option java_outer_classname = "DocsAddOnManifestProto"; +option java_package = "com.google.apps.script.type.docs"; +option php_namespace = "Google\\Apps\\Script\\Type\\Docs"; +option ruby_package = "Google::Apps::Script::Type::Docs"; + +// Manifest section specific to Docs Add-ons. + +// Docs add-on manifest. +message DocsAddOnManifest { + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 1; + + // Endpoint to execute when file scope authorization is granted + // for this document/user pair. + DocsExtensionPoint on_file_scope_granted_trigger = 2; +} + +// Common format for declaring a Docs add-on's triggers. +message DocsExtensionPoint { + // Required. The endpoint to execute when this extension point is activated. + string run_function = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/drive/drive_addon_manifest.proto b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/drive/drive_addon_manifest.proto new file mode 100644 index 000000000000..55da161cfd60 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/drive/drive_addon_manifest.proto @@ -0,0 +1,48 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.drive; + +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Drive"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/drive"; +option java_multiple_files = true; +option java_outer_classname = "DriveAddOnManifestProto"; +option java_package = "com.google.apps.script.type.drive"; +option php_namespace = "Google\\Apps\\Script\\Type\\Drive"; +option ruby_package = "Google::Apps::Script::Type::Drive"; + +// Manifest section specific to Drive Add-ons. + +// Drive add-on manifest. +message DriveAddOnManifest { + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 1; + + // Corresponds to behvior that should execute when items are selected + // in relevant Drive view (e.g. the My Drive Doclist). + DriveExtensionPoint on_items_selected_trigger = 2; +} + +// A generic extension point with common features, e.g. something that simply +// needs a corresponding run function to work. +message DriveExtensionPoint { + // Required. The endpoint to execute when this extension point is + // activated. + string run_function = 1; +} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/extension_point.proto b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/extension_point.proto new file mode 100644 index 000000000000..f387c86423cf --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/extension_point.proto @@ -0,0 +1,77 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type; + +import "google/protobuf/wrappers.proto"; + +option csharp_namespace = "Google.Apps.Script.Type"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type"; +option java_multiple_files = true; +option java_package = "com.google.apps.script.type"; +option php_namespace = "Google\\Apps\\Script\\Type"; +option ruby_package = "Google::Apps::Script::Type"; + +// Common Manifest protos for G Suite extension-point configuration. + +// Common format for declaring a menu item, or button, that appears within a +// host app. +message MenuItemExtensionPoint { + // Required. The endpoint to execute when this extension point is + // activated. + string run_function = 1; + + // Required. User-visible text describing the action taken by activating this + // extension point. For example, "Insert invoice". + string label = 2; + + // The URL for the logo image shown in the add-on toolbar. + // + // If not set, defaults to the add-on's primary logo URL. + string logo_url = 3; +} + +// Common format for declaring an add-on's home-page view. +message HomepageExtensionPoint { + // Required. The endpoint to execute when this extension point is + // activated. + string run_function = 1; + + // Optional. If set to `false`, disable the home-page view in this context. + // + // Defaults to `true` if unset. + // + // If an add-ons custom home-page view is disabled, an autogenerated overview + // card will be provided for users instead. + google.protobuf.BoolValue enabled = 2; +} + +// Format for declaring a universal action menu item extension point. +message UniversalActionExtensionPoint { + // Required. User-visible text describing the action taken by activating this + // extension point, for example, "Add a new contact". + string label = 1; + + // Required. The action type supported on a universal action menu item. It + // could be either a link to open or an endpoint to execute. + oneof action_type { + // URL to be opened by the UniversalAction. + string open_link = 2; + + // Endpoint to be run by the UniversalAction. + string run_function = 3; + } +} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/gmail/gmail_addon_manifest.proto b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/gmail/gmail_addon_manifest.proto new file mode 100644 index 000000000000..eda200782c8b --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/gmail/gmail_addon_manifest.proto @@ -0,0 +1,127 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.gmail; + +import "google/apps/script/type/addon_widget_set.proto"; +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Gmail"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/gmail"; +option java_multiple_files = true; +option java_outer_classname = "GmailAddOnManifestProto"; +option java_package = "com.google.apps.script.type.gmail"; +option php_namespace = "Google\\Apps\\Script\\Type\\Gmail"; +option ruby_package = "Google::Apps::Script::Type::Gmail"; + +// Properties customizing the appearance and execution of a Gmail add-on. +message GmailAddOnManifest { + // Defines an endpoint that will be executed in contexts that don't + // match a declared contextual trigger. Any cards generated by this function + // will always be available to the user, but may be eclipsed by contextual + // content when this add-on declares more targeted triggers. + // + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14; + + // Defines the set of conditions that trigger the add-on. + repeated ContextualTrigger contextual_triggers = 3; + + // Defines set of [universal + // actions](/gmail/add-ons/how-tos/universal-actions) for the add-on. The user + // triggers universal actions from the add-on toolbar menu. + repeated UniversalAction universal_actions = 4; + + // Defines the compose time trigger for a compose time add-on. This is the + // trigger that causes an add-on to take action when the user is composing an + // email. + // All compose time addons are required to have the + // gmail.addons.current.action.compose scope even though it might not edit the + // draft. + ComposeTrigger compose_trigger = 12; + + // The name of an endpoint that verifies that the add-on has + // all the required third-party authorizations, by probing the third-party + // APIs. If the probe fails, the function should throw an exception to + // initiate the authorization flow. This function is called before each + // invocation of the add-on, in order to ensure a smooth user experience. + string authorization_check_function = 7; +} + +// An action that is always available in the add-on toolbar menu regardless of +// message context. +message UniversalAction { + // Required. User-visible text describing the action, for example, "Add a new + // contact." + string text = 1; + + // The type of the action determines the behavior of Gmail when the user + // invokes the action. + oneof action_type { + // A link that is opened by Gmail when the user triggers the action. + string open_link = 2; + + // An endpoint that is called when the user triggers the + // action. See the [universal actions + // guide](/gmail/add-ons/how-tos/universal-actions) for details. + string run_function = 3; + } +} + +// A trigger that activates when user is composing an email. +message ComposeTrigger { + // An enum defining the level of data access this compose trigger requires. + enum DraftAccess { + // Default value when nothing is set for DraftAccess. + UNSPECIFIED = 0; + + // NONE means compose trigger won't be able to access any data of the draft + // when a compose addon is triggered. + NONE = 1; + + // METADATA gives compose trigger the permission to access the metadata of + // the draft when a compose addon is triggered. This includes the audience + // list (To/cc list) of a draft message. + METADATA = 2; + } + + // Defines the set of actions for compose time add-on. These are actions + // that user can trigger on a compose time addon. + repeated google.apps.script.type.MenuItemExtensionPoint actions = 5; + + // Define the level of data access when a compose time addon is triggered. + DraftAccess draft_access = 4; +} + +// Defines a trigger that fires when the open email meets a specific criteria. +// When the trigger fires, it executes a specific endpoint, usually +// in order to create new cards and update the UI. +message ContextualTrigger { + // The type of trigger determines the conditions Gmail uses to show the + // add-on. + oneof trigger { + // UnconditionalTriggers are executed when any mail message is opened. + UnconditionalTrigger unconditional = 1; + } + + // Required. The name of the endpoint to call when a message matches the + // trigger. + string on_trigger_function = 4; +} + +// A trigger that fires when any email message is opened. +message UnconditionalTrigger {} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/script_manifest.proto b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/script_manifest.proto new file mode 100644 index 000000000000..572d5da98ce0 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/script_manifest.proto @@ -0,0 +1,105 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type; + +import "google/apps/script/type/addon_widget_set.proto"; +import "google/apps/script/type/extension_point.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Apps.Script.Type"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type"; +option java_multiple_files = true; +option java_package = "com.google.apps.script.type"; +option php_namespace = "Google\\Apps\\Script\\Type"; +option ruby_package = "Google::Apps::Script::Type"; + +// Add-on configuration that is shared across all add-on host applications. +message CommonAddOnManifest { + // Required. The display name of the add-on. + string name = 1; + + // Required. The URL for the logo image shown in the add-on toolbar. + string logo_url = 2; + + // Common layout properties for the add-on cards. + LayoutProperties layout_properties = 3; + + // The widgets used in the add-on. If this field is not specified, + // it indicates that default set is used. + AddOnWidgetSet add_on_widget_set = 4; + + // Whether to pass locale information from host app. + bool use_locale_from_app = 5; + + // Defines an endpoint that will be executed in any context, in + // any host. Any cards generated by this function will always be available to + // the user, but may be eclipsed by contextual content when this add-on + // declares more targeted triggers. + HomepageExtensionPoint homepage_trigger = 6; + + // Defines a list of extension points in the universal action menu which + // serves as a setting menu for the add-on. The extension point can be + // link URL to open or an endpoint to execute as a form + // submission. + repeated UniversalActionExtensionPoint universal_actions = 7; + + // An OpenLink action + // can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, + // the URL must also + // [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the + // prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS + // is assumed. Notice that HTTP links are automatically rewritten to HTTPS + // links. + google.protobuf.ListValue open_link_url_prefixes = 8; +} + +// Card layout properties shared across all add-on host applications. +message LayoutProperties { + // The primary color of the add-on. It sets the color of toolbar. If no + // primary color is set explicitly, the default value provided by the + // framework is used. + string primary_color = 1; + + // The secondary color of the add-on. It sets the color of buttons. + // If primary color is set but no secondary color is set, the + // secondary color is the same as the primary color. If neither primary + // color nor secondary color is set, the default value provided by the + // framework is used. + string secondary_color = 2; +} + +// Options for sending requests to add-on HTTP endpoints +message HttpOptions { + // Configuration for the token sent in the HTTP Authorization header + HttpAuthorizationHeader authorization_header = 1; +} + +// Authorization header sent in add-on HTTP requests +enum HttpAuthorizationHeader { + // Default value, equivalent to `SYSTEM_ID_TOKEN` + HTTP_AUTHORIZATION_HEADER_UNSPECIFIED = 0; + + // Send an ID token for the project-specific Google Workspace Add-ons system + // service account (default) + SYSTEM_ID_TOKEN = 1; + + // Send an ID token for the end user + USER_ID_TOKEN = 2; + + // Do not send an Authentication header + NONE = 3; +} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/sheets/sheets_addon_manifest.proto b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/sheets/sheets_addon_manifest.proto new file mode 100644 index 000000000000..c34bca71fcc9 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/sheets/sheets_addon_manifest.proto @@ -0,0 +1,47 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.sheets; + +import "google/api/field_behavior.proto"; +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Sheets"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/sheets"; +option java_multiple_files = true; +option java_outer_classname = "SheetsAddOnManifestProto"; +option java_package = "com.google.apps.script.type.sheets"; +option php_namespace = "Google\\Apps\\Script\\Type\\Sheets"; +option ruby_package = "Google::Apps::Script::Type::Sheets"; + +// Manifest section specific to Sheets Add-ons. + +// Sheets add-on manifest. +message SheetsAddOnManifest { + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 3; + + // Endpoint to execute when file scope authorization is granted + // for this document/user pair. + SheetsExtensionPoint on_file_scope_granted_trigger = 5; +} + +// Common format for declaring a Sheets add-on's triggers. +message SheetsExtensionPoint { + // Required. The endpoint to execute when this extension point is activated. + string run_function = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/slides/slides_addon_manifest.proto b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/slides/slides_addon_manifest.proto new file mode 100644 index 000000000000..6a51bb2f46b3 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/apps/script/type/slides/slides_addon_manifest.proto @@ -0,0 +1,47 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.slides; + +import "google/api/field_behavior.proto"; +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Slides"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/slides"; +option java_multiple_files = true; +option java_outer_classname = "SlidesAddOnManifestProto"; +option java_package = "com.google.apps.script.type.slides"; +option php_namespace = "Google\\Apps\\Script\\Type\\Slides"; +option ruby_package = "Google::Apps::Script::Type::Slides"; + +// Manifest section specific to Slides Add-ons. + +// Slides add-on manifest. +message SlidesAddOnManifest { + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 1; + + // Endpoint to execute when file scope authorization is granted + // for this document/user pair. + SlidesExtensionPoint on_file_scope_granted_trigger = 2; +} + +// Common format for declaring a Slides add-on's triggers. +message SlidesExtensionPoint { + // Required. The endpoint to execute when this extension point is activated. + string run_function = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/packages/google-cloud-gsuiteaddons/protos/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto b/packages/google-cloud-gsuiteaddons/protos/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto new file mode 100644 index 000000000000..8d557ca5f8ae --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto @@ -0,0 +1,389 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gsuiteaddons.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/apps/script/type/calendar/calendar_addon_manifest.proto"; +import "google/apps/script/type/docs/docs_addon_manifest.proto"; +import "google/apps/script/type/drive/drive_addon_manifest.proto"; +import "google/apps/script/type/gmail/gmail_addon_manifest.proto"; +import "google/apps/script/type/script_manifest.proto"; +import "google/apps/script/type/sheets/sheets_addon_manifest.proto"; +import "google/apps/script/type/slides/slides_addon_manifest.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/wrappers.proto"; + +option csharp_namespace = "Google.Cloud.GSuiteAddOns.V1"; +option go_package = "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb;gsuiteaddonspb"; +option java_multiple_files = true; +option java_outer_classname = "GSuiteAddOnsProto"; +option java_package = "com.google.cloud.gsuiteaddons.v1"; +option php_namespace = "Google\\Cloud\\GSuiteAddOns\\V1"; +option ruby_package = "Google::Cloud::GSuiteAddOns::V1"; + +// A service for managing Google Workspace Add-ons deployments. +// +// A Google Workspace Add-on is a third-party embedded component that can be +// installed in Google Workspace Applications like Gmail, Calendar, Drive, and +// the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can +// display UI cards, receive contextual information from the host application, +// and perform actions in the host application (See: +// https://developers.google.com/gsuite/add-ons/overview for more information). +// +// A Google Workspace Add-on deployment resource specifies metadata about the +// add-on, including a specification of the entry points in the host application +// that trigger add-on executions (see: +// https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests). +// Add-on deployments defined via the Google Workspace Add-ons API define their +// entrypoints using HTTPS URLs (See: +// https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes), +// +// A Google Workspace Add-on deployment can be installed in developer mode, +// which allows an add-on developer to test the experience an end-user would see +// when installing and running the add-on in their G Suite applications. When +// running in developer mode, more detailed error messages are exposed in the +// add-on UI to aid in debugging. +// +// A Google Workspace Add-on deployment can be published to Google Workspace +// Marketplace, which allows other Google Workspace users to discover and +// install the add-on. See: +// https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview +// for details. +service GSuiteAddOns { + option (google.api.default_host) = "gsuiteaddons.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets the authorization information for deployments in a given project. + rpc GetAuthorization(GetAuthorizationRequest) returns (Authorization) { + option (google.api.http) = { + get: "/v1/{name=projects/*/authorization}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a deployment with the specified name and configuration. + rpc CreateDeployment(CreateDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/deployments" + body: "deployment" + }; + option (google.api.method_signature) = "parent,deployment,deployment_id"; + } + + // Creates or replaces a deployment with the specified name. + rpc ReplaceDeployment(ReplaceDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + put: "/v1/{deployment.name=projects/*/deployments/*}" + body: "deployment" + }; + option (google.api.method_signature) = "deployment"; + } + + // Gets the deployment with the specified name. + rpc GetDeployment(GetDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + get: "/v1/{name=projects/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all deployments in a particular project. + rpc ListDeployments(ListDeploymentsRequest) + returns (ListDeploymentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*}/deployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes the deployment with the given name. + rpc DeleteDeployment(DeleteDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Installs a deployment in developer mode. + // See: + // https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. + rpc InstallDeployment(InstallDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/deployments/*}:install" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Uninstalls a developer mode deployment. + // See: + // https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. + rpc UninstallDeployment(UninstallDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/deployments/*}:uninstall" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Fetches the install status of a developer mode deployment. + rpc GetInstallStatus(GetInstallStatusRequest) returns (InstallStatus) { + option (google.api.http) = { + get: "/v1/{name=projects/*/deployments/*/installStatus}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message to get Google Workspace Add-ons authorization information. +message GetAuthorizationRequest { + // Required. Name of the project for which to get the Google Workspace Add-ons + // authorization information. + // + // Example: `projects/my_project/authorization`. + string name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Authorization" + } + ]; +} + +// The authorization information used when invoking deployment endpoints. +message Authorization { + option (google.api.resource) = { + type: "gsuiteaddons.googleapis.com/Authorization" + pattern: "projects/{project}/authorization" + }; + + // The canonical full name of this resource. + // Example: `projects/123/authorization` + string name = 1; + + // The email address of the service account used to authenticate requests to + // add-on callback endpoints. + string service_account_email = 2; + + // The OAuth client ID used to obtain OAuth access tokens for a user on the + // add-on's behalf. + string oauth_client_id = 3; +} + +// Request message to create a deployment. +message CreateDeploymentRequest { + // Required. Name of the project in which to create the deployment. + // + // Example: `projects/my_project`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. The id to use for this deployment. The full name of the created + // resource will be `projects//deployments/`. + string deployment_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The deployment to create (deployment.name cannot be set). + Deployment deployment = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message to create or replace a deployment. +message ReplaceDeploymentRequest { + // Required. The deployment to create or replace. + Deployment deployment = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message to get a deployment. +message GetDeploymentRequest { + // Required. The full resource name of the deployment to get. + // + // Example: `projects/my_project/deployments/my_deployment`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Deployment" + } + ]; +} + +// Request message to list deployments for a project. +message ListDeploymentsRequest { + // Required. Name of the project in which to create the deployment. + // + // Example: `projects/my_project`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // The maximum number of deployments to return. The service may return fewer + // than this value. + // If unspecified, at most 1000 deployments will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2; + + // A page token, received from a previous `ListDeployments` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListDeployments` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message to list deployments. +message ListDeploymentsResponse { + // The list of deployments for the given project. + repeated Deployment deployments = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message to delete a deployment. +message DeleteDeploymentRequest { + // Required. The full resource name of the deployment to delete. + // + // Example: `projects/my_project/deployments/my_deployment`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Deployment" + } + ]; + + // The etag of the deployment to delete. + // If this is provided, it must match the server's etag. + string etag = 2; +} + +// Request message to install a developer mode deployment. +message InstallDeploymentRequest { + // Required. The full resource name of the deployment to install. + // + // Example: `projects/my_project/deployments/my_deployment`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Deployment" + } + ]; +} + +// Request message to uninstall a developer mode deployment. +message UninstallDeploymentRequest { + // Required. The full resource name of the deployment to install. + // + // Example: `projects/my_project/deployments/my_deployment`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Deployment" + } + ]; +} + +// Request message to get the install status of a developer mode deployment. +message GetInstallStatusRequest { + // Required. The full resource name of the deployment. + // + // Example: `projects/my_project/deployments/my_deployment/installStatus`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/InstallStatus" + } + ]; +} + +// Developer mode install status of a deployment +message InstallStatus { + option (google.api.resource) = { + type: "gsuiteaddons.googleapis.com/InstallStatus" + pattern: "projects/{project}/deployments/{deployment}/installStatus" + }; + + // The canonical full resource name of the deployment install status. + // + // Example: `projects/123/deployments/my_deployment/installStatus`. + string name = 1; + + // True if the deployment is installed for the user + google.protobuf.BoolValue installed = 2; +} + +// A Google Workspace Add-on deployment +message Deployment { + option (google.api.resource) = { + type: "gsuiteaddons.googleapis.com/Deployment" + pattern: "projects/{project}/deployments/{deployment}" + }; + + // The deployment resource name. + // Example: projects/123/deployments/my_deployment. + string name = 1; + + // The list of Google OAuth scopes for which to request consent from the end + // user before executing an add-on endpoint. + repeated string oauth_scopes = 2; + + // The Google Workspace Add-on configuration. + AddOns add_ons = 3; + + // This value is computed by the server based on the version of the + // deployment in storage, and may be sent on update and delete requests to + // ensure the client has an up-to-date value before proceeding. + string etag = 5; +} + +// A Google Workspace Add-on configuration. +message AddOns { + // Configuration that is common across all Google Workspace Add-ons. + google.apps.script.type.CommonAddOnManifest common = 1; + + // Gmail add-on configuration. + google.apps.script.type.gmail.GmailAddOnManifest gmail = 2; + + // Drive add-on configuration. + google.apps.script.type.drive.DriveAddOnManifest drive = 5; + + // Calendar add-on configuration. + google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6; + + // Docs add-on configuration. + google.apps.script.type.docs.DocsAddOnManifest docs = 7; + + // Sheets add-on configuration. + google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8; + + // Slides add-on configuration. + google.apps.script.type.slides.SlidesAddOnManifest slides = 10; + + // Options for sending requests to add-on HTTP endpoints + google.apps.script.type.HttpOptions http_options = 15; +} diff --git a/packages/google-cloud-gsuiteaddons/protos/protos.d.ts b/packages/google-cloud-gsuiteaddons/protos/protos.d.ts new file mode 100644 index 000000000000..6de81fb2ba80 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/protos.d.ts @@ -0,0 +1,9497 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import type {protobuf as $protobuf} from "google-gax"; +import Long = require("long"); +/** Namespace google. */ +export namespace google { + + /** Namespace apps. */ + namespace apps { + + /** Namespace script. */ + namespace script { + + /** Namespace type. */ + namespace type { + + /** Properties of an AddOnWidgetSet. */ + interface IAddOnWidgetSet { + + /** AddOnWidgetSet usedWidgets */ + usedWidgets?: (google.apps.script.type.AddOnWidgetSet.WidgetType[]|null); + } + + /** Represents an AddOnWidgetSet. */ + class AddOnWidgetSet implements IAddOnWidgetSet { + + /** + * Constructs a new AddOnWidgetSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.IAddOnWidgetSet); + + /** AddOnWidgetSet usedWidgets. */ + public usedWidgets: google.apps.script.type.AddOnWidgetSet.WidgetType[]; + + /** + * Creates a new AddOnWidgetSet instance using the specified properties. + * @param [properties] Properties to set + * @returns AddOnWidgetSet instance + */ + public static create(properties?: google.apps.script.type.IAddOnWidgetSet): google.apps.script.type.AddOnWidgetSet; + + /** + * Encodes the specified AddOnWidgetSet message. Does not implicitly {@link google.apps.script.type.AddOnWidgetSet.verify|verify} messages. + * @param message AddOnWidgetSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.IAddOnWidgetSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddOnWidgetSet message, length delimited. Does not implicitly {@link google.apps.script.type.AddOnWidgetSet.verify|verify} messages. + * @param message AddOnWidgetSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.IAddOnWidgetSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddOnWidgetSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddOnWidgetSet + * @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.apps.script.type.AddOnWidgetSet; + + /** + * Decodes an AddOnWidgetSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddOnWidgetSet + * @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.apps.script.type.AddOnWidgetSet; + + /** + * Verifies an AddOnWidgetSet 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 an AddOnWidgetSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddOnWidgetSet + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.AddOnWidgetSet; + + /** + * Creates a plain object from an AddOnWidgetSet message. Also converts values to other types if specified. + * @param message AddOnWidgetSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.AddOnWidgetSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddOnWidgetSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddOnWidgetSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AddOnWidgetSet { + + /** WidgetType enum. */ + enum WidgetType { + WIDGET_TYPE_UNSPECIFIED = 0, + DATE_PICKER = 1, + STYLED_BUTTONS = 2, + PERSISTENT_FORMS = 3, + FIXED_FOOTER = 4, + UPDATE_SUBJECT_AND_RECIPIENTS = 5, + GRID_WIDGET = 6, + ADDON_COMPOSE_UI_ACTION = 7 + } + } + + /** Namespace calendar. */ + namespace calendar { + + /** Properties of a CalendarAddOnManifest. */ + interface ICalendarAddOnManifest { + + /** CalendarAddOnManifest homepageTrigger */ + homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** CalendarAddOnManifest conferenceSolution */ + conferenceSolution?: (google.apps.script.type.calendar.IConferenceSolution[]|null); + + /** CalendarAddOnManifest createSettingsUrlFunction */ + createSettingsUrlFunction?: (string|null); + + /** CalendarAddOnManifest eventOpenTrigger */ + eventOpenTrigger?: (google.apps.script.type.calendar.ICalendarExtensionPoint|null); + + /** CalendarAddOnManifest eventUpdateTrigger */ + eventUpdateTrigger?: (google.apps.script.type.calendar.ICalendarExtensionPoint|null); + + /** CalendarAddOnManifest currentEventAccess */ + currentEventAccess?: (google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess|keyof typeof google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess|null); + } + + /** Represents a CalendarAddOnManifest. */ + class CalendarAddOnManifest implements ICalendarAddOnManifest { + + /** + * Constructs a new CalendarAddOnManifest. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.calendar.ICalendarAddOnManifest); + + /** CalendarAddOnManifest homepageTrigger. */ + public homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** CalendarAddOnManifest conferenceSolution. */ + public conferenceSolution: google.apps.script.type.calendar.IConferenceSolution[]; + + /** CalendarAddOnManifest createSettingsUrlFunction. */ + public createSettingsUrlFunction: string; + + /** CalendarAddOnManifest eventOpenTrigger. */ + public eventOpenTrigger?: (google.apps.script.type.calendar.ICalendarExtensionPoint|null); + + /** CalendarAddOnManifest eventUpdateTrigger. */ + public eventUpdateTrigger?: (google.apps.script.type.calendar.ICalendarExtensionPoint|null); + + /** CalendarAddOnManifest currentEventAccess. */ + public currentEventAccess: (google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess|keyof typeof google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess); + + /** + * Creates a new CalendarAddOnManifest instance using the specified properties. + * @param [properties] Properties to set + * @returns CalendarAddOnManifest instance + */ + public static create(properties?: google.apps.script.type.calendar.ICalendarAddOnManifest): google.apps.script.type.calendar.CalendarAddOnManifest; + + /** + * Encodes the specified CalendarAddOnManifest message. Does not implicitly {@link google.apps.script.type.calendar.CalendarAddOnManifest.verify|verify} messages. + * @param message CalendarAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.calendar.ICalendarAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CalendarAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.calendar.CalendarAddOnManifest.verify|verify} messages. + * @param message CalendarAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.calendar.ICalendarAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CalendarAddOnManifest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CalendarAddOnManifest + * @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.apps.script.type.calendar.CalendarAddOnManifest; + + /** + * Decodes a CalendarAddOnManifest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CalendarAddOnManifest + * @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.apps.script.type.calendar.CalendarAddOnManifest; + + /** + * Verifies a CalendarAddOnManifest 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 CalendarAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CalendarAddOnManifest + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.calendar.CalendarAddOnManifest; + + /** + * Creates a plain object from a CalendarAddOnManifest message. Also converts values to other types if specified. + * @param message CalendarAddOnManifest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.calendar.CalendarAddOnManifest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CalendarAddOnManifest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CalendarAddOnManifest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CalendarAddOnManifest { + + /** EventAccess enum. */ + enum EventAccess { + UNSPECIFIED = 0, + METADATA = 1, + READ = 3, + WRITE = 4, + READ_WRITE = 5 + } + } + + /** Properties of a ConferenceSolution. */ + interface IConferenceSolution { + + /** ConferenceSolution onCreateFunction */ + onCreateFunction?: (string|null); + + /** ConferenceSolution id */ + id?: (string|null); + + /** ConferenceSolution name */ + name?: (string|null); + + /** ConferenceSolution logoUrl */ + logoUrl?: (string|null); + } + + /** Represents a ConferenceSolution. */ + class ConferenceSolution implements IConferenceSolution { + + /** + * Constructs a new ConferenceSolution. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.calendar.IConferenceSolution); + + /** ConferenceSolution onCreateFunction. */ + public onCreateFunction: string; + + /** ConferenceSolution id. */ + public id: string; + + /** ConferenceSolution name. */ + public name: string; + + /** ConferenceSolution logoUrl. */ + public logoUrl: string; + + /** + * Creates a new ConferenceSolution instance using the specified properties. + * @param [properties] Properties to set + * @returns ConferenceSolution instance + */ + public static create(properties?: google.apps.script.type.calendar.IConferenceSolution): google.apps.script.type.calendar.ConferenceSolution; + + /** + * Encodes the specified ConferenceSolution message. Does not implicitly {@link google.apps.script.type.calendar.ConferenceSolution.verify|verify} messages. + * @param message ConferenceSolution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.calendar.IConferenceSolution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConferenceSolution message, length delimited. Does not implicitly {@link google.apps.script.type.calendar.ConferenceSolution.verify|verify} messages. + * @param message ConferenceSolution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.calendar.IConferenceSolution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConferenceSolution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConferenceSolution + * @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.apps.script.type.calendar.ConferenceSolution; + + /** + * Decodes a ConferenceSolution message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConferenceSolution + * @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.apps.script.type.calendar.ConferenceSolution; + + /** + * Verifies a ConferenceSolution 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 ConferenceSolution message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConferenceSolution + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.calendar.ConferenceSolution; + + /** + * Creates a plain object from a ConferenceSolution message. Also converts values to other types if specified. + * @param message ConferenceSolution + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.calendar.ConferenceSolution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConferenceSolution to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConferenceSolution + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CalendarExtensionPoint. */ + interface ICalendarExtensionPoint { + + /** CalendarExtensionPoint runFunction */ + runFunction?: (string|null); + } + + /** Represents a CalendarExtensionPoint. */ + class CalendarExtensionPoint implements ICalendarExtensionPoint { + + /** + * Constructs a new CalendarExtensionPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.calendar.ICalendarExtensionPoint); + + /** CalendarExtensionPoint runFunction. */ + public runFunction: string; + + /** + * Creates a new CalendarExtensionPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns CalendarExtensionPoint instance + */ + public static create(properties?: google.apps.script.type.calendar.ICalendarExtensionPoint): google.apps.script.type.calendar.CalendarExtensionPoint; + + /** + * Encodes the specified CalendarExtensionPoint message. Does not implicitly {@link google.apps.script.type.calendar.CalendarExtensionPoint.verify|verify} messages. + * @param message CalendarExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.calendar.ICalendarExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CalendarExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.calendar.CalendarExtensionPoint.verify|verify} messages. + * @param message CalendarExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.calendar.ICalendarExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CalendarExtensionPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CalendarExtensionPoint + * @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.apps.script.type.calendar.CalendarExtensionPoint; + + /** + * Decodes a CalendarExtensionPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CalendarExtensionPoint + * @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.apps.script.type.calendar.CalendarExtensionPoint; + + /** + * Verifies a CalendarExtensionPoint 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 CalendarExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CalendarExtensionPoint + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.calendar.CalendarExtensionPoint; + + /** + * Creates a plain object from a CalendarExtensionPoint message. Also converts values to other types if specified. + * @param message CalendarExtensionPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.calendar.CalendarExtensionPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CalendarExtensionPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CalendarExtensionPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a MenuItemExtensionPoint. */ + interface IMenuItemExtensionPoint { + + /** MenuItemExtensionPoint runFunction */ + runFunction?: (string|null); + + /** MenuItemExtensionPoint label */ + label?: (string|null); + + /** MenuItemExtensionPoint logoUrl */ + logoUrl?: (string|null); + } + + /** Represents a MenuItemExtensionPoint. */ + class MenuItemExtensionPoint implements IMenuItemExtensionPoint { + + /** + * Constructs a new MenuItemExtensionPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.IMenuItemExtensionPoint); + + /** MenuItemExtensionPoint runFunction. */ + public runFunction: string; + + /** MenuItemExtensionPoint label. */ + public label: string; + + /** MenuItemExtensionPoint logoUrl. */ + public logoUrl: string; + + /** + * Creates a new MenuItemExtensionPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns MenuItemExtensionPoint instance + */ + public static create(properties?: google.apps.script.type.IMenuItemExtensionPoint): google.apps.script.type.MenuItemExtensionPoint; + + /** + * Encodes the specified MenuItemExtensionPoint message. Does not implicitly {@link google.apps.script.type.MenuItemExtensionPoint.verify|verify} messages. + * @param message MenuItemExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.IMenuItemExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MenuItemExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.MenuItemExtensionPoint.verify|verify} messages. + * @param message MenuItemExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.IMenuItemExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MenuItemExtensionPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MenuItemExtensionPoint + * @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.apps.script.type.MenuItemExtensionPoint; + + /** + * Decodes a MenuItemExtensionPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MenuItemExtensionPoint + * @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.apps.script.type.MenuItemExtensionPoint; + + /** + * Verifies a MenuItemExtensionPoint 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 MenuItemExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MenuItemExtensionPoint + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.MenuItemExtensionPoint; + + /** + * Creates a plain object from a MenuItemExtensionPoint message. Also converts values to other types if specified. + * @param message MenuItemExtensionPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.MenuItemExtensionPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MenuItemExtensionPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MenuItemExtensionPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HomepageExtensionPoint. */ + interface IHomepageExtensionPoint { + + /** HomepageExtensionPoint runFunction */ + runFunction?: (string|null); + + /** HomepageExtensionPoint enabled */ + enabled?: (google.protobuf.IBoolValue|null); + } + + /** Represents a HomepageExtensionPoint. */ + class HomepageExtensionPoint implements IHomepageExtensionPoint { + + /** + * Constructs a new HomepageExtensionPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.IHomepageExtensionPoint); + + /** HomepageExtensionPoint runFunction. */ + public runFunction: string; + + /** HomepageExtensionPoint enabled. */ + public enabled?: (google.protobuf.IBoolValue|null); + + /** + * Creates a new HomepageExtensionPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns HomepageExtensionPoint instance + */ + public static create(properties?: google.apps.script.type.IHomepageExtensionPoint): google.apps.script.type.HomepageExtensionPoint; + + /** + * Encodes the specified HomepageExtensionPoint message. Does not implicitly {@link google.apps.script.type.HomepageExtensionPoint.verify|verify} messages. + * @param message HomepageExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.IHomepageExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HomepageExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.HomepageExtensionPoint.verify|verify} messages. + * @param message HomepageExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.IHomepageExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HomepageExtensionPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HomepageExtensionPoint + * @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.apps.script.type.HomepageExtensionPoint; + + /** + * Decodes a HomepageExtensionPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HomepageExtensionPoint + * @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.apps.script.type.HomepageExtensionPoint; + + /** + * Verifies a HomepageExtensionPoint 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 HomepageExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HomepageExtensionPoint + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.HomepageExtensionPoint; + + /** + * Creates a plain object from a HomepageExtensionPoint message. Also converts values to other types if specified. + * @param message HomepageExtensionPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.HomepageExtensionPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HomepageExtensionPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HomepageExtensionPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UniversalActionExtensionPoint. */ + interface IUniversalActionExtensionPoint { + + /** UniversalActionExtensionPoint label */ + label?: (string|null); + + /** UniversalActionExtensionPoint openLink */ + openLink?: (string|null); + + /** UniversalActionExtensionPoint runFunction */ + runFunction?: (string|null); + } + + /** Represents an UniversalActionExtensionPoint. */ + class UniversalActionExtensionPoint implements IUniversalActionExtensionPoint { + + /** + * Constructs a new UniversalActionExtensionPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.IUniversalActionExtensionPoint); + + /** UniversalActionExtensionPoint label. */ + public label: string; + + /** UniversalActionExtensionPoint openLink. */ + public openLink?: (string|null); + + /** UniversalActionExtensionPoint runFunction. */ + public runFunction?: (string|null); + + /** UniversalActionExtensionPoint actionType. */ + public actionType?: ("openLink"|"runFunction"); + + /** + * Creates a new UniversalActionExtensionPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns UniversalActionExtensionPoint instance + */ + public static create(properties?: google.apps.script.type.IUniversalActionExtensionPoint): google.apps.script.type.UniversalActionExtensionPoint; + + /** + * Encodes the specified UniversalActionExtensionPoint message. Does not implicitly {@link google.apps.script.type.UniversalActionExtensionPoint.verify|verify} messages. + * @param message UniversalActionExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.IUniversalActionExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UniversalActionExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.UniversalActionExtensionPoint.verify|verify} messages. + * @param message UniversalActionExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.IUniversalActionExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UniversalActionExtensionPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UniversalActionExtensionPoint + * @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.apps.script.type.UniversalActionExtensionPoint; + + /** + * Decodes an UniversalActionExtensionPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UniversalActionExtensionPoint + * @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.apps.script.type.UniversalActionExtensionPoint; + + /** + * Verifies an UniversalActionExtensionPoint 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 an UniversalActionExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UniversalActionExtensionPoint + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.UniversalActionExtensionPoint; + + /** + * Creates a plain object from an UniversalActionExtensionPoint message. Also converts values to other types if specified. + * @param message UniversalActionExtensionPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.UniversalActionExtensionPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UniversalActionExtensionPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UniversalActionExtensionPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Namespace docs. */ + namespace docs { + + /** Properties of a DocsAddOnManifest. */ + interface IDocsAddOnManifest { + + /** DocsAddOnManifest homepageTrigger */ + homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** DocsAddOnManifest onFileScopeGrantedTrigger */ + onFileScopeGrantedTrigger?: (google.apps.script.type.docs.IDocsExtensionPoint|null); + } + + /** Represents a DocsAddOnManifest. */ + class DocsAddOnManifest implements IDocsAddOnManifest { + + /** + * Constructs a new DocsAddOnManifest. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.docs.IDocsAddOnManifest); + + /** DocsAddOnManifest homepageTrigger. */ + public homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** DocsAddOnManifest onFileScopeGrantedTrigger. */ + public onFileScopeGrantedTrigger?: (google.apps.script.type.docs.IDocsExtensionPoint|null); + + /** + * Creates a new DocsAddOnManifest instance using the specified properties. + * @param [properties] Properties to set + * @returns DocsAddOnManifest instance + */ + public static create(properties?: google.apps.script.type.docs.IDocsAddOnManifest): google.apps.script.type.docs.DocsAddOnManifest; + + /** + * Encodes the specified DocsAddOnManifest message. Does not implicitly {@link google.apps.script.type.docs.DocsAddOnManifest.verify|verify} messages. + * @param message DocsAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.docs.IDocsAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DocsAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.docs.DocsAddOnManifest.verify|verify} messages. + * @param message DocsAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.docs.IDocsAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DocsAddOnManifest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DocsAddOnManifest + * @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.apps.script.type.docs.DocsAddOnManifest; + + /** + * Decodes a DocsAddOnManifest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DocsAddOnManifest + * @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.apps.script.type.docs.DocsAddOnManifest; + + /** + * Verifies a DocsAddOnManifest 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 DocsAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DocsAddOnManifest + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.docs.DocsAddOnManifest; + + /** + * Creates a plain object from a DocsAddOnManifest message. Also converts values to other types if specified. + * @param message DocsAddOnManifest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.docs.DocsAddOnManifest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DocsAddOnManifest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DocsAddOnManifest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DocsExtensionPoint. */ + interface IDocsExtensionPoint { + + /** DocsExtensionPoint runFunction */ + runFunction?: (string|null); + } + + /** Represents a DocsExtensionPoint. */ + class DocsExtensionPoint implements IDocsExtensionPoint { + + /** + * Constructs a new DocsExtensionPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.docs.IDocsExtensionPoint); + + /** DocsExtensionPoint runFunction. */ + public runFunction: string; + + /** + * Creates a new DocsExtensionPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns DocsExtensionPoint instance + */ + public static create(properties?: google.apps.script.type.docs.IDocsExtensionPoint): google.apps.script.type.docs.DocsExtensionPoint; + + /** + * Encodes the specified DocsExtensionPoint message. Does not implicitly {@link google.apps.script.type.docs.DocsExtensionPoint.verify|verify} messages. + * @param message DocsExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.docs.IDocsExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DocsExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.docs.DocsExtensionPoint.verify|verify} messages. + * @param message DocsExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.docs.IDocsExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DocsExtensionPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DocsExtensionPoint + * @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.apps.script.type.docs.DocsExtensionPoint; + + /** + * Decodes a DocsExtensionPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DocsExtensionPoint + * @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.apps.script.type.docs.DocsExtensionPoint; + + /** + * Verifies a DocsExtensionPoint 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 DocsExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DocsExtensionPoint + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.docs.DocsExtensionPoint; + + /** + * Creates a plain object from a DocsExtensionPoint message. Also converts values to other types if specified. + * @param message DocsExtensionPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.docs.DocsExtensionPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DocsExtensionPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DocsExtensionPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace drive. */ + namespace drive { + + /** Properties of a DriveAddOnManifest. */ + interface IDriveAddOnManifest { + + /** DriveAddOnManifest homepageTrigger */ + homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** DriveAddOnManifest onItemsSelectedTrigger */ + onItemsSelectedTrigger?: (google.apps.script.type.drive.IDriveExtensionPoint|null); + } + + /** Represents a DriveAddOnManifest. */ + class DriveAddOnManifest implements IDriveAddOnManifest { + + /** + * Constructs a new DriveAddOnManifest. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.drive.IDriveAddOnManifest); + + /** DriveAddOnManifest homepageTrigger. */ + public homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** DriveAddOnManifest onItemsSelectedTrigger. */ + public onItemsSelectedTrigger?: (google.apps.script.type.drive.IDriveExtensionPoint|null); + + /** + * Creates a new DriveAddOnManifest instance using the specified properties. + * @param [properties] Properties to set + * @returns DriveAddOnManifest instance + */ + public static create(properties?: google.apps.script.type.drive.IDriveAddOnManifest): google.apps.script.type.drive.DriveAddOnManifest; + + /** + * Encodes the specified DriveAddOnManifest message. Does not implicitly {@link google.apps.script.type.drive.DriveAddOnManifest.verify|verify} messages. + * @param message DriveAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.drive.IDriveAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DriveAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.drive.DriveAddOnManifest.verify|verify} messages. + * @param message DriveAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.drive.IDriveAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DriveAddOnManifest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DriveAddOnManifest + * @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.apps.script.type.drive.DriveAddOnManifest; + + /** + * Decodes a DriveAddOnManifest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DriveAddOnManifest + * @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.apps.script.type.drive.DriveAddOnManifest; + + /** + * Verifies a DriveAddOnManifest 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 DriveAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DriveAddOnManifest + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.drive.DriveAddOnManifest; + + /** + * Creates a plain object from a DriveAddOnManifest message. Also converts values to other types if specified. + * @param message DriveAddOnManifest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.drive.DriveAddOnManifest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DriveAddOnManifest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DriveAddOnManifest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DriveExtensionPoint. */ + interface IDriveExtensionPoint { + + /** DriveExtensionPoint runFunction */ + runFunction?: (string|null); + } + + /** Represents a DriveExtensionPoint. */ + class DriveExtensionPoint implements IDriveExtensionPoint { + + /** + * Constructs a new DriveExtensionPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.drive.IDriveExtensionPoint); + + /** DriveExtensionPoint runFunction. */ + public runFunction: string; + + /** + * Creates a new DriveExtensionPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns DriveExtensionPoint instance + */ + public static create(properties?: google.apps.script.type.drive.IDriveExtensionPoint): google.apps.script.type.drive.DriveExtensionPoint; + + /** + * Encodes the specified DriveExtensionPoint message. Does not implicitly {@link google.apps.script.type.drive.DriveExtensionPoint.verify|verify} messages. + * @param message DriveExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.drive.IDriveExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DriveExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.drive.DriveExtensionPoint.verify|verify} messages. + * @param message DriveExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.drive.IDriveExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DriveExtensionPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DriveExtensionPoint + * @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.apps.script.type.drive.DriveExtensionPoint; + + /** + * Decodes a DriveExtensionPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DriveExtensionPoint + * @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.apps.script.type.drive.DriveExtensionPoint; + + /** + * Verifies a DriveExtensionPoint 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 DriveExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DriveExtensionPoint + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.drive.DriveExtensionPoint; + + /** + * Creates a plain object from a DriveExtensionPoint message. Also converts values to other types if specified. + * @param message DriveExtensionPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.drive.DriveExtensionPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DriveExtensionPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DriveExtensionPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace gmail. */ + namespace gmail { + + /** Properties of a GmailAddOnManifest. */ + interface IGmailAddOnManifest { + + /** GmailAddOnManifest homepageTrigger */ + homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** GmailAddOnManifest contextualTriggers */ + contextualTriggers?: (google.apps.script.type.gmail.IContextualTrigger[]|null); + + /** GmailAddOnManifest universalActions */ + universalActions?: (google.apps.script.type.gmail.IUniversalAction[]|null); + + /** GmailAddOnManifest composeTrigger */ + composeTrigger?: (google.apps.script.type.gmail.IComposeTrigger|null); + + /** GmailAddOnManifest authorizationCheckFunction */ + authorizationCheckFunction?: (string|null); + } + + /** Represents a GmailAddOnManifest. */ + class GmailAddOnManifest implements IGmailAddOnManifest { + + /** + * Constructs a new GmailAddOnManifest. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.gmail.IGmailAddOnManifest); + + /** GmailAddOnManifest homepageTrigger. */ + public homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** GmailAddOnManifest contextualTriggers. */ + public contextualTriggers: google.apps.script.type.gmail.IContextualTrigger[]; + + /** GmailAddOnManifest universalActions. */ + public universalActions: google.apps.script.type.gmail.IUniversalAction[]; + + /** GmailAddOnManifest composeTrigger. */ + public composeTrigger?: (google.apps.script.type.gmail.IComposeTrigger|null); + + /** GmailAddOnManifest authorizationCheckFunction. */ + public authorizationCheckFunction: string; + + /** + * Creates a new GmailAddOnManifest instance using the specified properties. + * @param [properties] Properties to set + * @returns GmailAddOnManifest instance + */ + public static create(properties?: google.apps.script.type.gmail.IGmailAddOnManifest): google.apps.script.type.gmail.GmailAddOnManifest; + + /** + * Encodes the specified GmailAddOnManifest message. Does not implicitly {@link google.apps.script.type.gmail.GmailAddOnManifest.verify|verify} messages. + * @param message GmailAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.gmail.IGmailAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GmailAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.GmailAddOnManifest.verify|verify} messages. + * @param message GmailAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.gmail.IGmailAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GmailAddOnManifest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GmailAddOnManifest + * @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.apps.script.type.gmail.GmailAddOnManifest; + + /** + * Decodes a GmailAddOnManifest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GmailAddOnManifest + * @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.apps.script.type.gmail.GmailAddOnManifest; + + /** + * Verifies a GmailAddOnManifest 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 GmailAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GmailAddOnManifest + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.gmail.GmailAddOnManifest; + + /** + * Creates a plain object from a GmailAddOnManifest message. Also converts values to other types if specified. + * @param message GmailAddOnManifest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.gmail.GmailAddOnManifest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GmailAddOnManifest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GmailAddOnManifest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UniversalAction. */ + interface IUniversalAction { + + /** UniversalAction text */ + text?: (string|null); + + /** UniversalAction openLink */ + openLink?: (string|null); + + /** UniversalAction runFunction */ + runFunction?: (string|null); + } + + /** Represents an UniversalAction. */ + class UniversalAction implements IUniversalAction { + + /** + * Constructs a new UniversalAction. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.gmail.IUniversalAction); + + /** UniversalAction text. */ + public text: string; + + /** UniversalAction openLink. */ + public openLink?: (string|null); + + /** UniversalAction runFunction. */ + public runFunction?: (string|null); + + /** UniversalAction actionType. */ + public actionType?: ("openLink"|"runFunction"); + + /** + * Creates a new UniversalAction instance using the specified properties. + * @param [properties] Properties to set + * @returns UniversalAction instance + */ + public static create(properties?: google.apps.script.type.gmail.IUniversalAction): google.apps.script.type.gmail.UniversalAction; + + /** + * Encodes the specified UniversalAction message. Does not implicitly {@link google.apps.script.type.gmail.UniversalAction.verify|verify} messages. + * @param message UniversalAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.gmail.IUniversalAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UniversalAction message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.UniversalAction.verify|verify} messages. + * @param message UniversalAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.gmail.IUniversalAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UniversalAction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UniversalAction + * @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.apps.script.type.gmail.UniversalAction; + + /** + * Decodes an UniversalAction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UniversalAction + * @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.apps.script.type.gmail.UniversalAction; + + /** + * Verifies an UniversalAction 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 an UniversalAction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UniversalAction + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.gmail.UniversalAction; + + /** + * Creates a plain object from an UniversalAction message. Also converts values to other types if specified. + * @param message UniversalAction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.gmail.UniversalAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UniversalAction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UniversalAction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ComposeTrigger. */ + interface IComposeTrigger { + + /** ComposeTrigger actions */ + actions?: (google.apps.script.type.IMenuItemExtensionPoint[]|null); + + /** ComposeTrigger draftAccess */ + draftAccess?: (google.apps.script.type.gmail.ComposeTrigger.DraftAccess|keyof typeof google.apps.script.type.gmail.ComposeTrigger.DraftAccess|null); + } + + /** Represents a ComposeTrigger. */ + class ComposeTrigger implements IComposeTrigger { + + /** + * Constructs a new ComposeTrigger. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.gmail.IComposeTrigger); + + /** ComposeTrigger actions. */ + public actions: google.apps.script.type.IMenuItemExtensionPoint[]; + + /** ComposeTrigger draftAccess. */ + public draftAccess: (google.apps.script.type.gmail.ComposeTrigger.DraftAccess|keyof typeof google.apps.script.type.gmail.ComposeTrigger.DraftAccess); + + /** + * Creates a new ComposeTrigger instance using the specified properties. + * @param [properties] Properties to set + * @returns ComposeTrigger instance + */ + public static create(properties?: google.apps.script.type.gmail.IComposeTrigger): google.apps.script.type.gmail.ComposeTrigger; + + /** + * Encodes the specified ComposeTrigger message. Does not implicitly {@link google.apps.script.type.gmail.ComposeTrigger.verify|verify} messages. + * @param message ComposeTrigger message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.gmail.IComposeTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ComposeTrigger message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.ComposeTrigger.verify|verify} messages. + * @param message ComposeTrigger message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.gmail.IComposeTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ComposeTrigger message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComposeTrigger + * @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.apps.script.type.gmail.ComposeTrigger; + + /** + * Decodes a ComposeTrigger message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ComposeTrigger + * @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.apps.script.type.gmail.ComposeTrigger; + + /** + * Verifies a ComposeTrigger 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 ComposeTrigger message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ComposeTrigger + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.gmail.ComposeTrigger; + + /** + * Creates a plain object from a ComposeTrigger message. Also converts values to other types if specified. + * @param message ComposeTrigger + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.gmail.ComposeTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ComposeTrigger to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComposeTrigger + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ComposeTrigger { + + /** DraftAccess enum. */ + enum DraftAccess { + UNSPECIFIED = 0, + NONE = 1, + METADATA = 2 + } + } + + /** Properties of a ContextualTrigger. */ + interface IContextualTrigger { + + /** ContextualTrigger unconditional */ + unconditional?: (google.apps.script.type.gmail.IUnconditionalTrigger|null); + + /** ContextualTrigger onTriggerFunction */ + onTriggerFunction?: (string|null); + } + + /** Represents a ContextualTrigger. */ + class ContextualTrigger implements IContextualTrigger { + + /** + * Constructs a new ContextualTrigger. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.gmail.IContextualTrigger); + + /** ContextualTrigger unconditional. */ + public unconditional?: (google.apps.script.type.gmail.IUnconditionalTrigger|null); + + /** ContextualTrigger onTriggerFunction. */ + public onTriggerFunction: string; + + /** ContextualTrigger trigger. */ + public trigger?: "unconditional"; + + /** + * Creates a new ContextualTrigger instance using the specified properties. + * @param [properties] Properties to set + * @returns ContextualTrigger instance + */ + public static create(properties?: google.apps.script.type.gmail.IContextualTrigger): google.apps.script.type.gmail.ContextualTrigger; + + /** + * Encodes the specified ContextualTrigger message. Does not implicitly {@link google.apps.script.type.gmail.ContextualTrigger.verify|verify} messages. + * @param message ContextualTrigger message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.gmail.IContextualTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ContextualTrigger message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.ContextualTrigger.verify|verify} messages. + * @param message ContextualTrigger message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.gmail.IContextualTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContextualTrigger message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContextualTrigger + * @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.apps.script.type.gmail.ContextualTrigger; + + /** + * Decodes a ContextualTrigger message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContextualTrigger + * @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.apps.script.type.gmail.ContextualTrigger; + + /** + * Verifies a ContextualTrigger 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 ContextualTrigger message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContextualTrigger + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.gmail.ContextualTrigger; + + /** + * Creates a plain object from a ContextualTrigger message. Also converts values to other types if specified. + * @param message ContextualTrigger + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.gmail.ContextualTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ContextualTrigger to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ContextualTrigger + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UnconditionalTrigger. */ + interface IUnconditionalTrigger { + } + + /** Represents an UnconditionalTrigger. */ + class UnconditionalTrigger implements IUnconditionalTrigger { + + /** + * Constructs a new UnconditionalTrigger. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.gmail.IUnconditionalTrigger); + + /** + * Creates a new UnconditionalTrigger instance using the specified properties. + * @param [properties] Properties to set + * @returns UnconditionalTrigger instance + */ + public static create(properties?: google.apps.script.type.gmail.IUnconditionalTrigger): google.apps.script.type.gmail.UnconditionalTrigger; + + /** + * Encodes the specified UnconditionalTrigger message. Does not implicitly {@link google.apps.script.type.gmail.UnconditionalTrigger.verify|verify} messages. + * @param message UnconditionalTrigger message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.gmail.IUnconditionalTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UnconditionalTrigger message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.UnconditionalTrigger.verify|verify} messages. + * @param message UnconditionalTrigger message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.gmail.IUnconditionalTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnconditionalTrigger message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnconditionalTrigger + * @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.apps.script.type.gmail.UnconditionalTrigger; + + /** + * Decodes an UnconditionalTrigger message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UnconditionalTrigger + * @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.apps.script.type.gmail.UnconditionalTrigger; + + /** + * Verifies an UnconditionalTrigger 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 an UnconditionalTrigger message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UnconditionalTrigger + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.gmail.UnconditionalTrigger; + + /** + * Creates a plain object from an UnconditionalTrigger message. Also converts values to other types if specified. + * @param message UnconditionalTrigger + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.gmail.UnconditionalTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UnconditionalTrigger to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UnconditionalTrigger + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a CommonAddOnManifest. */ + interface ICommonAddOnManifest { + + /** CommonAddOnManifest name */ + name?: (string|null); + + /** CommonAddOnManifest logoUrl */ + logoUrl?: (string|null); + + /** CommonAddOnManifest layoutProperties */ + layoutProperties?: (google.apps.script.type.ILayoutProperties|null); + + /** CommonAddOnManifest addOnWidgetSet */ + addOnWidgetSet?: (google.apps.script.type.IAddOnWidgetSet|null); + + /** CommonAddOnManifest useLocaleFromApp */ + useLocaleFromApp?: (boolean|null); + + /** CommonAddOnManifest homepageTrigger */ + homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** CommonAddOnManifest universalActions */ + universalActions?: (google.apps.script.type.IUniversalActionExtensionPoint[]|null); + + /** CommonAddOnManifest openLinkUrlPrefixes */ + openLinkUrlPrefixes?: (google.protobuf.IListValue|null); + } + + /** Represents a CommonAddOnManifest. */ + class CommonAddOnManifest implements ICommonAddOnManifest { + + /** + * Constructs a new CommonAddOnManifest. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.ICommonAddOnManifest); + + /** CommonAddOnManifest name. */ + public name: string; + + /** CommonAddOnManifest logoUrl. */ + public logoUrl: string; + + /** CommonAddOnManifest layoutProperties. */ + public layoutProperties?: (google.apps.script.type.ILayoutProperties|null); + + /** CommonAddOnManifest addOnWidgetSet. */ + public addOnWidgetSet?: (google.apps.script.type.IAddOnWidgetSet|null); + + /** CommonAddOnManifest useLocaleFromApp. */ + public useLocaleFromApp: boolean; + + /** CommonAddOnManifest homepageTrigger. */ + public homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** CommonAddOnManifest universalActions. */ + public universalActions: google.apps.script.type.IUniversalActionExtensionPoint[]; + + /** CommonAddOnManifest openLinkUrlPrefixes. */ + public openLinkUrlPrefixes?: (google.protobuf.IListValue|null); + + /** + * Creates a new CommonAddOnManifest instance using the specified properties. + * @param [properties] Properties to set + * @returns CommonAddOnManifest instance + */ + public static create(properties?: google.apps.script.type.ICommonAddOnManifest): google.apps.script.type.CommonAddOnManifest; + + /** + * Encodes the specified CommonAddOnManifest message. Does not implicitly {@link google.apps.script.type.CommonAddOnManifest.verify|verify} messages. + * @param message CommonAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.ICommonAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommonAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.CommonAddOnManifest.verify|verify} messages. + * @param message CommonAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.ICommonAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommonAddOnManifest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommonAddOnManifest + * @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.apps.script.type.CommonAddOnManifest; + + /** + * Decodes a CommonAddOnManifest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommonAddOnManifest + * @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.apps.script.type.CommonAddOnManifest; + + /** + * Verifies a CommonAddOnManifest 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 CommonAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommonAddOnManifest + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.CommonAddOnManifest; + + /** + * Creates a plain object from a CommonAddOnManifest message. Also converts values to other types if specified. + * @param message CommonAddOnManifest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.CommonAddOnManifest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommonAddOnManifest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommonAddOnManifest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LayoutProperties. */ + interface ILayoutProperties { + + /** LayoutProperties primaryColor */ + primaryColor?: (string|null); + + /** LayoutProperties secondaryColor */ + secondaryColor?: (string|null); + } + + /** Represents a LayoutProperties. */ + class LayoutProperties implements ILayoutProperties { + + /** + * Constructs a new LayoutProperties. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.ILayoutProperties); + + /** LayoutProperties primaryColor. */ + public primaryColor: string; + + /** LayoutProperties secondaryColor. */ + public secondaryColor: string; + + /** + * Creates a new LayoutProperties instance using the specified properties. + * @param [properties] Properties to set + * @returns LayoutProperties instance + */ + public static create(properties?: google.apps.script.type.ILayoutProperties): google.apps.script.type.LayoutProperties; + + /** + * Encodes the specified LayoutProperties message. Does not implicitly {@link google.apps.script.type.LayoutProperties.verify|verify} messages. + * @param message LayoutProperties message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.ILayoutProperties, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LayoutProperties message, length delimited. Does not implicitly {@link google.apps.script.type.LayoutProperties.verify|verify} messages. + * @param message LayoutProperties message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.ILayoutProperties, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LayoutProperties message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LayoutProperties + * @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.apps.script.type.LayoutProperties; + + /** + * Decodes a LayoutProperties message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LayoutProperties + * @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.apps.script.type.LayoutProperties; + + /** + * Verifies a LayoutProperties 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 LayoutProperties message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LayoutProperties + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.LayoutProperties; + + /** + * Creates a plain object from a LayoutProperties message. Also converts values to other types if specified. + * @param message LayoutProperties + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.LayoutProperties, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LayoutProperties to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LayoutProperties + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HttpOptions. */ + interface IHttpOptions { + + /** HttpOptions authorizationHeader */ + authorizationHeader?: (google.apps.script.type.HttpAuthorizationHeader|keyof typeof google.apps.script.type.HttpAuthorizationHeader|null); + } + + /** Represents a HttpOptions. */ + class HttpOptions implements IHttpOptions { + + /** + * Constructs a new HttpOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.IHttpOptions); + + /** HttpOptions authorizationHeader. */ + public authorizationHeader: (google.apps.script.type.HttpAuthorizationHeader|keyof typeof google.apps.script.type.HttpAuthorizationHeader); + + /** + * Creates a new HttpOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpOptions instance + */ + public static create(properties?: google.apps.script.type.IHttpOptions): google.apps.script.type.HttpOptions; + + /** + * Encodes the specified HttpOptions message. Does not implicitly {@link google.apps.script.type.HttpOptions.verify|verify} messages. + * @param message HttpOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.IHttpOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpOptions message, length delimited. Does not implicitly {@link google.apps.script.type.HttpOptions.verify|verify} messages. + * @param message HttpOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.IHttpOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpOptions + * @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.apps.script.type.HttpOptions; + + /** + * Decodes a HttpOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpOptions + * @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.apps.script.type.HttpOptions; + + /** + * Verifies a HttpOptions 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 HttpOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpOptions + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.HttpOptions; + + /** + * Creates a plain object from a HttpOptions message. Also converts values to other types if specified. + * @param message HttpOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.HttpOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HttpOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** HttpAuthorizationHeader enum. */ + enum HttpAuthorizationHeader { + HTTP_AUTHORIZATION_HEADER_UNSPECIFIED = 0, + SYSTEM_ID_TOKEN = 1, + USER_ID_TOKEN = 2, + NONE = 3 + } + + /** Namespace sheets. */ + namespace sheets { + + /** Properties of a SheetsAddOnManifest. */ + interface ISheetsAddOnManifest { + + /** SheetsAddOnManifest homepageTrigger */ + homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** SheetsAddOnManifest onFileScopeGrantedTrigger */ + onFileScopeGrantedTrigger?: (google.apps.script.type.sheets.ISheetsExtensionPoint|null); + } + + /** Represents a SheetsAddOnManifest. */ + class SheetsAddOnManifest implements ISheetsAddOnManifest { + + /** + * Constructs a new SheetsAddOnManifest. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.sheets.ISheetsAddOnManifest); + + /** SheetsAddOnManifest homepageTrigger. */ + public homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** SheetsAddOnManifest onFileScopeGrantedTrigger. */ + public onFileScopeGrantedTrigger?: (google.apps.script.type.sheets.ISheetsExtensionPoint|null); + + /** + * Creates a new SheetsAddOnManifest instance using the specified properties. + * @param [properties] Properties to set + * @returns SheetsAddOnManifest instance + */ + public static create(properties?: google.apps.script.type.sheets.ISheetsAddOnManifest): google.apps.script.type.sheets.SheetsAddOnManifest; + + /** + * Encodes the specified SheetsAddOnManifest message. Does not implicitly {@link google.apps.script.type.sheets.SheetsAddOnManifest.verify|verify} messages. + * @param message SheetsAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.sheets.ISheetsAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SheetsAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.sheets.SheetsAddOnManifest.verify|verify} messages. + * @param message SheetsAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.sheets.ISheetsAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SheetsAddOnManifest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SheetsAddOnManifest + * @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.apps.script.type.sheets.SheetsAddOnManifest; + + /** + * Decodes a SheetsAddOnManifest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SheetsAddOnManifest + * @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.apps.script.type.sheets.SheetsAddOnManifest; + + /** + * Verifies a SheetsAddOnManifest 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 SheetsAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SheetsAddOnManifest + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.sheets.SheetsAddOnManifest; + + /** + * Creates a plain object from a SheetsAddOnManifest message. Also converts values to other types if specified. + * @param message SheetsAddOnManifest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.sheets.SheetsAddOnManifest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SheetsAddOnManifest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SheetsAddOnManifest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SheetsExtensionPoint. */ + interface ISheetsExtensionPoint { + + /** SheetsExtensionPoint runFunction */ + runFunction?: (string|null); + } + + /** Represents a SheetsExtensionPoint. */ + class SheetsExtensionPoint implements ISheetsExtensionPoint { + + /** + * Constructs a new SheetsExtensionPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.sheets.ISheetsExtensionPoint); + + /** SheetsExtensionPoint runFunction. */ + public runFunction: string; + + /** + * Creates a new SheetsExtensionPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns SheetsExtensionPoint instance + */ + public static create(properties?: google.apps.script.type.sheets.ISheetsExtensionPoint): google.apps.script.type.sheets.SheetsExtensionPoint; + + /** + * Encodes the specified SheetsExtensionPoint message. Does not implicitly {@link google.apps.script.type.sheets.SheetsExtensionPoint.verify|verify} messages. + * @param message SheetsExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.sheets.ISheetsExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SheetsExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.sheets.SheetsExtensionPoint.verify|verify} messages. + * @param message SheetsExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.sheets.ISheetsExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SheetsExtensionPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SheetsExtensionPoint + * @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.apps.script.type.sheets.SheetsExtensionPoint; + + /** + * Decodes a SheetsExtensionPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SheetsExtensionPoint + * @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.apps.script.type.sheets.SheetsExtensionPoint; + + /** + * Verifies a SheetsExtensionPoint 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 SheetsExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SheetsExtensionPoint + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.sheets.SheetsExtensionPoint; + + /** + * Creates a plain object from a SheetsExtensionPoint message. Also converts values to other types if specified. + * @param message SheetsExtensionPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.sheets.SheetsExtensionPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SheetsExtensionPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SheetsExtensionPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace slides. */ + namespace slides { + + /** Properties of a SlidesAddOnManifest. */ + interface ISlidesAddOnManifest { + + /** SlidesAddOnManifest homepageTrigger */ + homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** SlidesAddOnManifest onFileScopeGrantedTrigger */ + onFileScopeGrantedTrigger?: (google.apps.script.type.slides.ISlidesExtensionPoint|null); + } + + /** Represents a SlidesAddOnManifest. */ + class SlidesAddOnManifest implements ISlidesAddOnManifest { + + /** + * Constructs a new SlidesAddOnManifest. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.slides.ISlidesAddOnManifest); + + /** SlidesAddOnManifest homepageTrigger. */ + public homepageTrigger?: (google.apps.script.type.IHomepageExtensionPoint|null); + + /** SlidesAddOnManifest onFileScopeGrantedTrigger. */ + public onFileScopeGrantedTrigger?: (google.apps.script.type.slides.ISlidesExtensionPoint|null); + + /** + * Creates a new SlidesAddOnManifest instance using the specified properties. + * @param [properties] Properties to set + * @returns SlidesAddOnManifest instance + */ + public static create(properties?: google.apps.script.type.slides.ISlidesAddOnManifest): google.apps.script.type.slides.SlidesAddOnManifest; + + /** + * Encodes the specified SlidesAddOnManifest message. Does not implicitly {@link google.apps.script.type.slides.SlidesAddOnManifest.verify|verify} messages. + * @param message SlidesAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.slides.ISlidesAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SlidesAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.slides.SlidesAddOnManifest.verify|verify} messages. + * @param message SlidesAddOnManifest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.slides.ISlidesAddOnManifest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SlidesAddOnManifest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SlidesAddOnManifest + * @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.apps.script.type.slides.SlidesAddOnManifest; + + /** + * Decodes a SlidesAddOnManifest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SlidesAddOnManifest + * @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.apps.script.type.slides.SlidesAddOnManifest; + + /** + * Verifies a SlidesAddOnManifest 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 SlidesAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SlidesAddOnManifest + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.slides.SlidesAddOnManifest; + + /** + * Creates a plain object from a SlidesAddOnManifest message. Also converts values to other types if specified. + * @param message SlidesAddOnManifest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.slides.SlidesAddOnManifest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SlidesAddOnManifest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlidesAddOnManifest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SlidesExtensionPoint. */ + interface ISlidesExtensionPoint { + + /** SlidesExtensionPoint runFunction */ + runFunction?: (string|null); + } + + /** Represents a SlidesExtensionPoint. */ + class SlidesExtensionPoint implements ISlidesExtensionPoint { + + /** + * Constructs a new SlidesExtensionPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.apps.script.type.slides.ISlidesExtensionPoint); + + /** SlidesExtensionPoint runFunction. */ + public runFunction: string; + + /** + * Creates a new SlidesExtensionPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns SlidesExtensionPoint instance + */ + public static create(properties?: google.apps.script.type.slides.ISlidesExtensionPoint): google.apps.script.type.slides.SlidesExtensionPoint; + + /** + * Encodes the specified SlidesExtensionPoint message. Does not implicitly {@link google.apps.script.type.slides.SlidesExtensionPoint.verify|verify} messages. + * @param message SlidesExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.apps.script.type.slides.ISlidesExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SlidesExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.slides.SlidesExtensionPoint.verify|verify} messages. + * @param message SlidesExtensionPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.apps.script.type.slides.ISlidesExtensionPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SlidesExtensionPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SlidesExtensionPoint + * @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.apps.script.type.slides.SlidesExtensionPoint; + + /** + * Decodes a SlidesExtensionPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SlidesExtensionPoint + * @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.apps.script.type.slides.SlidesExtensionPoint; + + /** + * Verifies a SlidesExtensionPoint 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 SlidesExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SlidesExtensionPoint + */ + public static fromObject(object: { [k: string]: any }): google.apps.script.type.slides.SlidesExtensionPoint; + + /** + * Creates a plain object from a SlidesExtensionPoint message. Also converts values to other types if specified. + * @param message SlidesExtensionPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.apps.script.type.slides.SlidesExtensionPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SlidesExtensionPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlidesExtensionPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + } + } + + /** Namespace api. */ + namespace api { + + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 + } + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @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.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @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.api.Http; + + /** + * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Http + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule responseBody */ + responseBody?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get?: (string|null); + + /** HttpRule put. */ + public put?: (string|null); + + /** HttpRule post. */ + public post?: (string|null); + + /** HttpRule delete. */ + public delete?: (string|null); + + /** HttpRule patch. */ + public patch?: (string|null); + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule responseBody. */ + public responseBody: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HttpRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomHttpPattern + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ResourceDescriptor. */ + interface IResourceDescriptor { + + /** ResourceDescriptor type */ + type?: (string|null); + + /** ResourceDescriptor pattern */ + pattern?: (string[]|null); + + /** ResourceDescriptor nameField */ + nameField?: (string|null); + + /** ResourceDescriptor history */ + history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); + + /** ResourceDescriptor plural */ + plural?: (string|null); + + /** ResourceDescriptor singular */ + singular?: (string|null); + + /** ResourceDescriptor style */ + style?: (google.api.ResourceDescriptor.Style[]|null); + } + + /** Represents a ResourceDescriptor. */ + class ResourceDescriptor implements IResourceDescriptor { + + /** + * Constructs a new ResourceDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceDescriptor); + + /** ResourceDescriptor type. */ + public type: string; + + /** ResourceDescriptor pattern. */ + public pattern: string[]; + + /** ResourceDescriptor nameField. */ + public nameField: string; + + /** ResourceDescriptor history. */ + public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History); + + /** ResourceDescriptor plural. */ + public plural: string; + + /** ResourceDescriptor singular. */ + public singular: string; + + /** ResourceDescriptor style. */ + public style: google.api.ResourceDescriptor.Style[]; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceDescriptor instance + */ + public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; + + /** + * Verifies a ResourceDescriptor 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @param message ResourceDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ResourceDescriptor { + + /** History enum. */ + enum History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2 + } + + /** Style enum. */ + enum Style { + STYLE_UNSPECIFIED = 0, + DECLARATIVE_FRIENDLY = 1 + } + } + + /** Properties of a ResourceReference. */ + interface IResourceReference { + + /** ResourceReference type */ + type?: (string|null); + + /** ResourceReference childType */ + childType?: (string|null); + } + + /** Represents a ResourceReference. */ + class ResourceReference implements IResourceReference { + + /** + * Constructs a new ResourceReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceReference); + + /** ResourceReference type. */ + public type: string; + + /** ResourceReference childType. */ + public childType: string; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceReference instance + */ + public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceReference + * @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.api.ResourceReference; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceReference + * @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.api.ResourceReference; + + /** + * Verifies a ResourceReference 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 ResourceReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceReference + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @param message ResourceReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + + /** FileDescriptorProto edition */ + edition?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** FileDescriptorProto edition. */ + public edition: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange 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 an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { + + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { + + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); + + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRangeOptions instance + */ + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; + + /** + * Verifies an ExtensionRangeOptions 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 an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRangeOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); + + /** FieldDescriptorProto type. */ + public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto 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 an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto 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 an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EnumDescriptorProto { + + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { + + /** EnumReservedRange start */ + start?: (number|null); + + /** EnumReservedRange end */ + end?: (number|null); + } + + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { + + /** + * Constructs a new EnumReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + + /** EnumReservedRange start. */ + public start: number; + + /** EnumReservedRange end. */ + public end: number; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumReservedRange instance + */ + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Verifies an EnumReservedRange 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 an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto 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 an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); + + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); + + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); + + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); + + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FileOptions .google.api.resourceDefinition */ + ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; + + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; + + /** FileOptions phpNamespace. */ + public phpNamespace: string; + + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; + + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @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.protobuf.FileOptions; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @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.protobuf.FileOptions; + + /** + * Verifies a FileOptions 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 FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MessageOptions .google.api.resource */ + ".google.api.resource"?: (google.api.IResourceDescriptor|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @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.protobuf.MessageOptions; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageOptions + * @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.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions 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 MessageOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FieldOptions .google.api.fieldBehavior */ + ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); + + /** FieldOptions .google.api.resourceReference */ + ".google.api.resourceReference"?: (google.api.IResourceReference|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @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.protobuf.FieldOptions; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldOptions + * @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.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions 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 FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @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.protobuf.OneofOptions; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @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.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions 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 an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @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.protobuf.EnumOptions; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumOptions + * @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.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions 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 an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions 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 an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); + + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions 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 ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @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.protobuf.MethodOptions; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @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.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions 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 MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MethodOptions { + + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|string|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|string|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|string|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long|string); + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long|string); + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: (Uint8Array|string); + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption 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 an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UninterpretedOption + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart 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 NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NamePart + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location 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 Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @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.protobuf.GeneratedCodeInfo; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GeneratedCodeInfo + * @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.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + + /** Annotation semantic */ + semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** Annotation semantic. */ + public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic); + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation 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 an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Annotation { + + /** Semantic enum. */ + enum Semantic { + NONE = 0, + SET = 1, + ALIAS = 2 + } + } + } + + /** Properties of a DoubleValue. */ + interface IDoubleValue { + + /** DoubleValue value */ + value?: (number|null); + } + + /** Represents a DoubleValue. */ + class DoubleValue implements IDoubleValue { + + /** + * Constructs a new DoubleValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDoubleValue); + + /** DoubleValue value. */ + public value: number; + + /** + * Creates a new DoubleValue instance using the specified properties. + * @param [properties] Properties to set + * @returns DoubleValue instance + */ + public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue; + + /** + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @param message DoubleValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @param message DoubleValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DoubleValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DoubleValue + * @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.protobuf.DoubleValue; + + /** + * Decodes a DoubleValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DoubleValue + * @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.protobuf.DoubleValue; + + /** + * Verifies a DoubleValue 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 DoubleValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DoubleValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue; + + /** + * Creates a plain object from a DoubleValue message. Also converts values to other types if specified. + * @param message DoubleValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DoubleValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DoubleValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FloatValue. */ + interface IFloatValue { + + /** FloatValue value */ + value?: (number|null); + } + + /** Represents a FloatValue. */ + class FloatValue implements IFloatValue { + + /** + * Constructs a new FloatValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFloatValue); + + /** FloatValue value. */ + public value: number; + + /** + * Creates a new FloatValue instance using the specified properties. + * @param [properties] Properties to set + * @returns FloatValue instance + */ + public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue; + + /** + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @param message FloatValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @param message FloatValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FloatValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FloatValue + * @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.protobuf.FloatValue; + + /** + * Decodes a FloatValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FloatValue + * @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.protobuf.FloatValue; + + /** + * Verifies a FloatValue 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 FloatValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FloatValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue; + + /** + * Creates a plain object from a FloatValue message. Also converts values to other types if specified. + * @param message FloatValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FloatValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FloatValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Int64Value. */ + interface IInt64Value { + + /** Int64Value value */ + value?: (number|Long|string|null); + } + + /** Represents an Int64Value. */ + class Int64Value implements IInt64Value { + + /** + * Constructs a new Int64Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IInt64Value); + + /** Int64Value value. */ + public value: (number|Long|string); + + /** + * Creates a new Int64Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Int64Value instance + */ + public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value; + + /** + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @param message Int64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @param message Int64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Int64Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Int64Value + * @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.protobuf.Int64Value; + + /** + * Decodes an Int64Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Int64Value + * @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.protobuf.Int64Value; + + /** + * Verifies an Int64Value 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 an Int64Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Int64Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value; + + /** + * Creates a plain object from an Int64Value message. Also converts values to other types if specified. + * @param message Int64Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Int64Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Int64Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a UInt64Value. */ + interface IUInt64Value { + + /** UInt64Value value */ + value?: (number|Long|string|null); + } + + /** Represents a UInt64Value. */ + class UInt64Value implements IUInt64Value { + + /** + * Constructs a new UInt64Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUInt64Value); + + /** UInt64Value value. */ + public value: (number|Long|string); + + /** + * Creates a new UInt64Value instance using the specified properties. + * @param [properties] Properties to set + * @returns UInt64Value instance + */ + public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value; + + /** + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @param message UInt64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @param message UInt64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UInt64Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UInt64Value + * @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.protobuf.UInt64Value; + + /** + * Decodes a UInt64Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UInt64Value + * @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.protobuf.UInt64Value; + + /** + * Verifies a UInt64Value 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 UInt64Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UInt64Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value; + + /** + * Creates a plain object from a UInt64Value message. Also converts values to other types if specified. + * @param message UInt64Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UInt64Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UInt64Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Int32Value. */ + interface IInt32Value { + + /** Int32Value value */ + value?: (number|null); + } + + /** Represents an Int32Value. */ + class Int32Value implements IInt32Value { + + /** + * Constructs a new Int32Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IInt32Value); + + /** Int32Value value. */ + public value: number; + + /** + * Creates a new Int32Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Int32Value instance + */ + public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value; + + /** + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @param message Int32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @param message Int32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Int32Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Int32Value + * @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.protobuf.Int32Value; + + /** + * Decodes an Int32Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Int32Value + * @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.protobuf.Int32Value; + + /** + * Verifies an Int32Value 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 an Int32Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Int32Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value; + + /** + * Creates a plain object from an Int32Value message. Also converts values to other types if specified. + * @param message Int32Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Int32Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Int32Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a UInt32Value. */ + interface IUInt32Value { + + /** UInt32Value value */ + value?: (number|null); + } + + /** Represents a UInt32Value. */ + class UInt32Value implements IUInt32Value { + + /** + * Constructs a new UInt32Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUInt32Value); + + /** UInt32Value value. */ + public value: number; + + /** + * Creates a new UInt32Value instance using the specified properties. + * @param [properties] Properties to set + * @returns UInt32Value instance + */ + public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value; + + /** + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @param message UInt32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @param message UInt32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UInt32Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UInt32Value + * @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.protobuf.UInt32Value; + + /** + * Decodes a UInt32Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UInt32Value + * @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.protobuf.UInt32Value; + + /** + * Verifies a UInt32Value 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 UInt32Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UInt32Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value; + + /** + * Creates a plain object from a UInt32Value message. Also converts values to other types if specified. + * @param message UInt32Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UInt32Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UInt32Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BoolValue. */ + interface IBoolValue { + + /** BoolValue value */ + value?: (boolean|null); + } + + /** Represents a BoolValue. */ + class BoolValue implements IBoolValue { + + /** + * Constructs a new BoolValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IBoolValue); + + /** BoolValue value. */ + public value: boolean; + + /** + * Creates a new BoolValue instance using the specified properties. + * @param [properties] Properties to set + * @returns BoolValue instance + */ + public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue; + + /** + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @param message BoolValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @param message BoolValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BoolValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BoolValue + * @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.protobuf.BoolValue; + + /** + * Decodes a BoolValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BoolValue + * @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.protobuf.BoolValue; + + /** + * Verifies a BoolValue 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 BoolValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BoolValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue; + + /** + * Creates a plain object from a BoolValue message. Also converts values to other types if specified. + * @param message BoolValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BoolValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BoolValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StringValue. */ + interface IStringValue { + + /** StringValue value */ + value?: (string|null); + } + + /** Represents a StringValue. */ + class StringValue implements IStringValue { + + /** + * Constructs a new StringValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStringValue); + + /** StringValue value. */ + public value: string; + + /** + * Creates a new StringValue instance using the specified properties. + * @param [properties] Properties to set + * @returns StringValue instance + */ + public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue; + + /** + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @param message StringValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @param message StringValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StringValue + * @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.protobuf.StringValue; + + /** + * Decodes a StringValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StringValue + * @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.protobuf.StringValue; + + /** + * Verifies a StringValue 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 StringValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StringValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue; + + /** + * Creates a plain object from a StringValue message. Also converts values to other types if specified. + * @param message StringValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StringValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StringValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BytesValue. */ + interface IBytesValue { + + /** BytesValue value */ + value?: (Uint8Array|string|null); + } + + /** Represents a BytesValue. */ + class BytesValue implements IBytesValue { + + /** + * Constructs a new BytesValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IBytesValue); + + /** BytesValue value. */ + public value: (Uint8Array|string); + + /** + * Creates a new BytesValue instance using the specified properties. + * @param [properties] Properties to set + * @returns BytesValue instance + */ + public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue; + + /** + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @param message BytesValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @param message BytesValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BytesValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BytesValue + * @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.protobuf.BytesValue; + + /** + * Decodes a BytesValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BytesValue + * @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.protobuf.BytesValue; + + /** + * Verifies a BytesValue 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 BytesValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BytesValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue; + + /** + * Creates a plain object from a BytesValue message. Also converts values to other types if specified. + * @param message BytesValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BytesValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BytesValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Struct. */ + interface IStruct { + + /** Struct fields */ + fields?: ({ [k: string]: google.protobuf.IValue }|null); + } + + /** Represents a Struct. */ + class Struct implements IStruct { + + /** + * Constructs a new Struct. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStruct); + + /** Struct fields. */ + public fields: { [k: string]: google.protobuf.IValue }; + + /** + * Creates a new Struct instance using the specified properties. + * @param [properties] Properties to set + * @returns Struct instance + */ + public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @param message Struct message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @param message Struct message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Struct + * @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.protobuf.Struct; + + /** + * Decodes a Struct message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Struct + * @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.protobuf.Struct; + + /** + * Verifies a Struct 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 Struct message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Struct + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Struct; + + /** + * Creates a plain object from a Struct message. Also converts values to other types if specified. + * @param message Struct + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Struct to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Struct + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Value. */ + interface IValue { + + /** Value nullValue */ + nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null); + + /** Value numberValue */ + numberValue?: (number|null); + + /** Value stringValue */ + stringValue?: (string|null); + + /** Value boolValue */ + boolValue?: (boolean|null); + + /** Value structValue */ + structValue?: (google.protobuf.IStruct|null); + + /** Value listValue */ + listValue?: (google.protobuf.IListValue|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IValue); + + /** Value nullValue. */ + public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null); + + /** Value numberValue. */ + public numberValue?: (number|null); + + /** Value stringValue. */ + public stringValue?: (string|null); + + /** Value boolValue. */ + public boolValue?: (boolean|null); + + /** Value structValue. */ + public structValue?: (google.protobuf.IStruct|null); + + /** Value listValue. */ + public listValue?: (google.protobuf.IListValue|null); + + /** Value kind. */ + public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.protobuf.IValue): google.protobuf.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @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.protobuf.Value; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Value + * @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.protobuf.Value; + + /** + * Verifies a Value 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 Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Value; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** NullValue enum. */ + enum NullValue { + NULL_VALUE = 0 + } + + /** Properties of a ListValue. */ + interface IListValue { + + /** ListValue values */ + values?: (google.protobuf.IValue[]|null); + } + + /** Represents a ListValue. */ + class ListValue implements IListValue { + + /** + * Constructs a new ListValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IListValue); + + /** ListValue values. */ + public values: google.protobuf.IValue[]; + + /** + * Creates a new ListValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ListValue instance + */ + public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @param message ListValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @param message ListValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListValue + * @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.protobuf.ListValue; + + /** + * Decodes a ListValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListValue + * @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.protobuf.ListValue; + + /** + * Verifies a ListValue 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 ListValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue; + + /** + * Creates a plain object from a ListValue message. Also converts values to other types if specified. + * @param message ListValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Empty. */ + interface IEmpty { + } + + /** Represents an Empty. */ + class Empty implements IEmpty { + + /** + * Constructs a new Empty. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEmpty); + + /** + * Creates a new Empty instance using the specified properties. + * @param [properties] Properties to set + * @returns Empty instance + */ + public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Empty + * @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.protobuf.Empty; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Empty + * @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.protobuf.Empty; + + /** + * Verifies an Empty 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 an Empty message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Empty + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @param message Empty + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Empty to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Empty + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Namespace cloud. */ + namespace cloud { + + /** Namespace gsuiteaddons. */ + namespace gsuiteaddons { + + /** Namespace v1. */ + namespace v1 { + + /** Represents a GSuiteAddOns */ + class GSuiteAddOns extends $protobuf.rpc.Service { + + /** + * Constructs a new GSuiteAddOns service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new GSuiteAddOns service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): GSuiteAddOns; + + /** + * Calls GetAuthorization. + * @param request GetAuthorizationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Authorization + */ + public getAuthorization(request: google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest, callback: google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetAuthorizationCallback): void; + + /** + * Calls GetAuthorization. + * @param request GetAuthorizationRequest message or plain object + * @returns Promise + */ + public getAuthorization(request: google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest): Promise; + + /** + * Calls CreateDeployment. + * @param request CreateDeploymentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Deployment + */ + public createDeployment(request: google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest, callback: google.cloud.gsuiteaddons.v1.GSuiteAddOns.CreateDeploymentCallback): void; + + /** + * Calls CreateDeployment. + * @param request CreateDeploymentRequest message or plain object + * @returns Promise + */ + public createDeployment(request: google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest): Promise; + + /** + * Calls ReplaceDeployment. + * @param request ReplaceDeploymentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Deployment + */ + public replaceDeployment(request: google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest, callback: google.cloud.gsuiteaddons.v1.GSuiteAddOns.ReplaceDeploymentCallback): void; + + /** + * Calls ReplaceDeployment. + * @param request ReplaceDeploymentRequest message or plain object + * @returns Promise + */ + public replaceDeployment(request: google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest): Promise; + + /** + * Calls GetDeployment. + * @param request GetDeploymentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Deployment + */ + public getDeployment(request: google.cloud.gsuiteaddons.v1.IGetDeploymentRequest, callback: google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetDeploymentCallback): void; + + /** + * Calls GetDeployment. + * @param request GetDeploymentRequest message or plain object + * @returns Promise + */ + public getDeployment(request: google.cloud.gsuiteaddons.v1.IGetDeploymentRequest): Promise; + + /** + * Calls ListDeployments. + * @param request ListDeploymentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDeploymentsResponse + */ + public listDeployments(request: google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, callback: google.cloud.gsuiteaddons.v1.GSuiteAddOns.ListDeploymentsCallback): void; + + /** + * Calls ListDeployments. + * @param request ListDeploymentsRequest message or plain object + * @returns Promise + */ + public listDeployments(request: google.cloud.gsuiteaddons.v1.IListDeploymentsRequest): Promise; + + /** + * Calls DeleteDeployment. + * @param request DeleteDeploymentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteDeployment(request: google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest, callback: google.cloud.gsuiteaddons.v1.GSuiteAddOns.DeleteDeploymentCallback): void; + + /** + * Calls DeleteDeployment. + * @param request DeleteDeploymentRequest message or plain object + * @returns Promise + */ + public deleteDeployment(request: google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest): Promise; + + /** + * Calls InstallDeployment. + * @param request InstallDeploymentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public installDeployment(request: google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest, callback: google.cloud.gsuiteaddons.v1.GSuiteAddOns.InstallDeploymentCallback): void; + + /** + * Calls InstallDeployment. + * @param request InstallDeploymentRequest message or plain object + * @returns Promise + */ + public installDeployment(request: google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest): Promise; + + /** + * Calls UninstallDeployment. + * @param request UninstallDeploymentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public uninstallDeployment(request: google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest, callback: google.cloud.gsuiteaddons.v1.GSuiteAddOns.UninstallDeploymentCallback): void; + + /** + * Calls UninstallDeployment. + * @param request UninstallDeploymentRequest message or plain object + * @returns Promise + */ + public uninstallDeployment(request: google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest): Promise; + + /** + * Calls GetInstallStatus. + * @param request GetInstallStatusRequest message or plain object + * @param callback Node-style callback called with the error, if any, and InstallStatus + */ + public getInstallStatus(request: google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest, callback: google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetInstallStatusCallback): void; + + /** + * Calls GetInstallStatus. + * @param request GetInstallStatusRequest message or plain object + * @returns Promise + */ + public getInstallStatus(request: google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest): Promise; + } + + namespace GSuiteAddOns { + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|getAuthorization}. + * @param error Error, if any + * @param [response] Authorization + */ + type GetAuthorizationCallback = (error: (Error|null), response?: google.cloud.gsuiteaddons.v1.Authorization) => void; + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|createDeployment}. + * @param error Error, if any + * @param [response] Deployment + */ + type CreateDeploymentCallback = (error: (Error|null), response?: google.cloud.gsuiteaddons.v1.Deployment) => void; + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|replaceDeployment}. + * @param error Error, if any + * @param [response] Deployment + */ + type ReplaceDeploymentCallback = (error: (Error|null), response?: google.cloud.gsuiteaddons.v1.Deployment) => void; + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|getDeployment}. + * @param error Error, if any + * @param [response] Deployment + */ + type GetDeploymentCallback = (error: (Error|null), response?: google.cloud.gsuiteaddons.v1.Deployment) => void; + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|listDeployments}. + * @param error Error, if any + * @param [response] ListDeploymentsResponse + */ + type ListDeploymentsCallback = (error: (Error|null), response?: google.cloud.gsuiteaddons.v1.ListDeploymentsResponse) => void; + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|deleteDeployment}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteDeploymentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|installDeployment}. + * @param error Error, if any + * @param [response] Empty + */ + type InstallDeploymentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|uninstallDeployment}. + * @param error Error, if any + * @param [response] Empty + */ + type UninstallDeploymentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|getInstallStatus}. + * @param error Error, if any + * @param [response] InstallStatus + */ + type GetInstallStatusCallback = (error: (Error|null), response?: google.cloud.gsuiteaddons.v1.InstallStatus) => void; + } + + /** Properties of a GetAuthorizationRequest. */ + interface IGetAuthorizationRequest { + + /** GetAuthorizationRequest name */ + name?: (string|null); + } + + /** Represents a GetAuthorizationRequest. */ + class GetAuthorizationRequest implements IGetAuthorizationRequest { + + /** + * Constructs a new GetAuthorizationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest); + + /** GetAuthorizationRequest name. */ + public name: string; + + /** + * Creates a new GetAuthorizationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetAuthorizationRequest instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest): google.cloud.gsuiteaddons.v1.GetAuthorizationRequest; + + /** + * Encodes the specified GetAuthorizationRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetAuthorizationRequest.verify|verify} messages. + * @param message GetAuthorizationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetAuthorizationRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetAuthorizationRequest.verify|verify} messages. + * @param message GetAuthorizationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetAuthorizationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetAuthorizationRequest + * @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.gsuiteaddons.v1.GetAuthorizationRequest; + + /** + * Decodes a GetAuthorizationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetAuthorizationRequest + * @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.gsuiteaddons.v1.GetAuthorizationRequest; + + /** + * Verifies a GetAuthorizationRequest 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 GetAuthorizationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetAuthorizationRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.GetAuthorizationRequest; + + /** + * Creates a plain object from a GetAuthorizationRequest message. Also converts values to other types if specified. + * @param message GetAuthorizationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.GetAuthorizationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetAuthorizationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetAuthorizationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Authorization. */ + interface IAuthorization { + + /** Authorization name */ + name?: (string|null); + + /** Authorization serviceAccountEmail */ + serviceAccountEmail?: (string|null); + + /** Authorization oauthClientId */ + oauthClientId?: (string|null); + } + + /** Represents an Authorization. */ + class Authorization implements IAuthorization { + + /** + * Constructs a new Authorization. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IAuthorization); + + /** Authorization name. */ + public name: string; + + /** Authorization serviceAccountEmail. */ + public serviceAccountEmail: string; + + /** Authorization oauthClientId. */ + public oauthClientId: string; + + /** + * Creates a new Authorization instance using the specified properties. + * @param [properties] Properties to set + * @returns Authorization instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IAuthorization): google.cloud.gsuiteaddons.v1.Authorization; + + /** + * Encodes the specified Authorization message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.Authorization.verify|verify} messages. + * @param message Authorization message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IAuthorization, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Authorization message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.Authorization.verify|verify} messages. + * @param message Authorization message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IAuthorization, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Authorization message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Authorization + * @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.gsuiteaddons.v1.Authorization; + + /** + * Decodes an Authorization message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Authorization + * @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.gsuiteaddons.v1.Authorization; + + /** + * Verifies an Authorization 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 an Authorization message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Authorization + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.Authorization; + + /** + * Creates a plain object from an Authorization message. Also converts values to other types if specified. + * @param message Authorization + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.Authorization, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Authorization to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Authorization + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateDeploymentRequest. */ + interface ICreateDeploymentRequest { + + /** CreateDeploymentRequest parent */ + parent?: (string|null); + + /** CreateDeploymentRequest deploymentId */ + deploymentId?: (string|null); + + /** CreateDeploymentRequest deployment */ + deployment?: (google.cloud.gsuiteaddons.v1.IDeployment|null); + } + + /** Represents a CreateDeploymentRequest. */ + class CreateDeploymentRequest implements ICreateDeploymentRequest { + + /** + * Constructs a new CreateDeploymentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest); + + /** CreateDeploymentRequest parent. */ + public parent: string; + + /** CreateDeploymentRequest deploymentId. */ + public deploymentId: string; + + /** CreateDeploymentRequest deployment. */ + public deployment?: (google.cloud.gsuiteaddons.v1.IDeployment|null); + + /** + * Creates a new CreateDeploymentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDeploymentRequest instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest): google.cloud.gsuiteaddons.v1.CreateDeploymentRequest; + + /** + * Encodes the specified CreateDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.CreateDeploymentRequest.verify|verify} messages. + * @param message CreateDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.CreateDeploymentRequest.verify|verify} messages. + * @param message CreateDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDeploymentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDeploymentRequest + * @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.gsuiteaddons.v1.CreateDeploymentRequest; + + /** + * Decodes a CreateDeploymentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateDeploymentRequest + * @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.gsuiteaddons.v1.CreateDeploymentRequest; + + /** + * Verifies a CreateDeploymentRequest 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 CreateDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateDeploymentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.CreateDeploymentRequest; + + /** + * Creates a plain object from a CreateDeploymentRequest message. Also converts values to other types if specified. + * @param message CreateDeploymentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.CreateDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateDeploymentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateDeploymentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReplaceDeploymentRequest. */ + interface IReplaceDeploymentRequest { + + /** ReplaceDeploymentRequest deployment */ + deployment?: (google.cloud.gsuiteaddons.v1.IDeployment|null); + } + + /** Represents a ReplaceDeploymentRequest. */ + class ReplaceDeploymentRequest implements IReplaceDeploymentRequest { + + /** + * Constructs a new ReplaceDeploymentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest); + + /** ReplaceDeploymentRequest deployment. */ + public deployment?: (google.cloud.gsuiteaddons.v1.IDeployment|null); + + /** + * Creates a new ReplaceDeploymentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReplaceDeploymentRequest instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest): google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest; + + /** + * Encodes the specified ReplaceDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest.verify|verify} messages. + * @param message ReplaceDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReplaceDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest.verify|verify} messages. + * @param message ReplaceDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReplaceDeploymentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReplaceDeploymentRequest + * @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.gsuiteaddons.v1.ReplaceDeploymentRequest; + + /** + * Decodes a ReplaceDeploymentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReplaceDeploymentRequest + * @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.gsuiteaddons.v1.ReplaceDeploymentRequest; + + /** + * Verifies a ReplaceDeploymentRequest 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 ReplaceDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReplaceDeploymentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest; + + /** + * Creates a plain object from a ReplaceDeploymentRequest message. Also converts values to other types if specified. + * @param message ReplaceDeploymentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReplaceDeploymentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReplaceDeploymentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetDeploymentRequest. */ + interface IGetDeploymentRequest { + + /** GetDeploymentRequest name */ + name?: (string|null); + } + + /** Represents a GetDeploymentRequest. */ + class GetDeploymentRequest implements IGetDeploymentRequest { + + /** + * Constructs a new GetDeploymentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IGetDeploymentRequest); + + /** GetDeploymentRequest name. */ + public name: string; + + /** + * Creates a new GetDeploymentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDeploymentRequest instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IGetDeploymentRequest): google.cloud.gsuiteaddons.v1.GetDeploymentRequest; + + /** + * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetDeploymentRequest.verify|verify} messages. + * @param message GetDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetDeploymentRequest.verify|verify} messages. + * @param message GetDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDeploymentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDeploymentRequest + * @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.gsuiteaddons.v1.GetDeploymentRequest; + + /** + * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetDeploymentRequest + * @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.gsuiteaddons.v1.GetDeploymentRequest; + + /** + * Verifies a GetDeploymentRequest 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 GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetDeploymentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.GetDeploymentRequest; + + /** + * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. + * @param message GetDeploymentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.GetDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetDeploymentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetDeploymentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListDeploymentsRequest. */ + interface IListDeploymentsRequest { + + /** ListDeploymentsRequest parent */ + parent?: (string|null); + + /** ListDeploymentsRequest pageSize */ + pageSize?: (number|null); + + /** ListDeploymentsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListDeploymentsRequest. */ + class ListDeploymentsRequest implements IListDeploymentsRequest { + + /** + * Constructs a new ListDeploymentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IListDeploymentsRequest); + + /** ListDeploymentsRequest parent. */ + public parent: string; + + /** ListDeploymentsRequest pageSize. */ + public pageSize: number; + + /** ListDeploymentsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListDeploymentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDeploymentsRequest instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IListDeploymentsRequest): google.cloud.gsuiteaddons.v1.ListDeploymentsRequest; + + /** + * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ListDeploymentsRequest.verify|verify} messages. + * @param message ListDeploymentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ListDeploymentsRequest.verify|verify} messages. + * @param message ListDeploymentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDeploymentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDeploymentsRequest + * @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.gsuiteaddons.v1.ListDeploymentsRequest; + + /** + * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDeploymentsRequest + * @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.gsuiteaddons.v1.ListDeploymentsRequest; + + /** + * Verifies a ListDeploymentsRequest 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 ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDeploymentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.ListDeploymentsRequest; + + /** + * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. + * @param message ListDeploymentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.ListDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDeploymentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDeploymentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListDeploymentsResponse. */ + interface IListDeploymentsResponse { + + /** ListDeploymentsResponse deployments */ + deployments?: (google.cloud.gsuiteaddons.v1.IDeployment[]|null); + + /** ListDeploymentsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListDeploymentsResponse. */ + class ListDeploymentsResponse implements IListDeploymentsResponse { + + /** + * Constructs a new ListDeploymentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IListDeploymentsResponse); + + /** ListDeploymentsResponse deployments. */ + public deployments: google.cloud.gsuiteaddons.v1.IDeployment[]; + + /** ListDeploymentsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListDeploymentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDeploymentsResponse instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IListDeploymentsResponse): google.cloud.gsuiteaddons.v1.ListDeploymentsResponse; + + /** + * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ListDeploymentsResponse.verify|verify} messages. + * @param message ListDeploymentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ListDeploymentsResponse.verify|verify} messages. + * @param message ListDeploymentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListDeploymentsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDeploymentsResponse + * @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.gsuiteaddons.v1.ListDeploymentsResponse; + + /** + * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDeploymentsResponse + * @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.gsuiteaddons.v1.ListDeploymentsResponse; + + /** + * Verifies a ListDeploymentsResponse 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 ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDeploymentsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.ListDeploymentsResponse; + + /** + * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. + * @param message ListDeploymentsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.ListDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListDeploymentsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListDeploymentsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteDeploymentRequest. */ + interface IDeleteDeploymentRequest { + + /** DeleteDeploymentRequest name */ + name?: (string|null); + + /** DeleteDeploymentRequest etag */ + etag?: (string|null); + } + + /** Represents a DeleteDeploymentRequest. */ + class DeleteDeploymentRequest implements IDeleteDeploymentRequest { + + /** + * Constructs a new DeleteDeploymentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest); + + /** DeleteDeploymentRequest name. */ + public name: string; + + /** DeleteDeploymentRequest etag. */ + public etag: string; + + /** + * Creates a new DeleteDeploymentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteDeploymentRequest instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest): google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest; + + /** + * Encodes the specified DeleteDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest.verify|verify} messages. + * @param message DeleteDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest.verify|verify} messages. + * @param message DeleteDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteDeploymentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteDeploymentRequest + * @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.gsuiteaddons.v1.DeleteDeploymentRequest; + + /** + * Decodes a DeleteDeploymentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteDeploymentRequest + * @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.gsuiteaddons.v1.DeleteDeploymentRequest; + + /** + * Verifies a DeleteDeploymentRequest 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 DeleteDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteDeploymentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest; + + /** + * Creates a plain object from a DeleteDeploymentRequest message. Also converts values to other types if specified. + * @param message DeleteDeploymentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteDeploymentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteDeploymentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstallDeploymentRequest. */ + interface IInstallDeploymentRequest { + + /** InstallDeploymentRequest name */ + name?: (string|null); + } + + /** Represents an InstallDeploymentRequest. */ + class InstallDeploymentRequest implements IInstallDeploymentRequest { + + /** + * Constructs a new InstallDeploymentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest); + + /** InstallDeploymentRequest name. */ + public name: string; + + /** + * Creates a new InstallDeploymentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InstallDeploymentRequest instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest): google.cloud.gsuiteaddons.v1.InstallDeploymentRequest; + + /** + * Encodes the specified InstallDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.InstallDeploymentRequest.verify|verify} messages. + * @param message InstallDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstallDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.InstallDeploymentRequest.verify|verify} messages. + * @param message InstallDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstallDeploymentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstallDeploymentRequest + * @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.gsuiteaddons.v1.InstallDeploymentRequest; + + /** + * Decodes an InstallDeploymentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstallDeploymentRequest + * @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.gsuiteaddons.v1.InstallDeploymentRequest; + + /** + * Verifies an InstallDeploymentRequest 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 an InstallDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstallDeploymentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.InstallDeploymentRequest; + + /** + * Creates a plain object from an InstallDeploymentRequest message. Also converts values to other types if specified. + * @param message InstallDeploymentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.InstallDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstallDeploymentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstallDeploymentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UninstallDeploymentRequest. */ + interface IUninstallDeploymentRequest { + + /** UninstallDeploymentRequest name */ + name?: (string|null); + } + + /** Represents an UninstallDeploymentRequest. */ + class UninstallDeploymentRequest implements IUninstallDeploymentRequest { + + /** + * Constructs a new UninstallDeploymentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest); + + /** UninstallDeploymentRequest name. */ + public name: string; + + /** + * Creates a new UninstallDeploymentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UninstallDeploymentRequest instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest): google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest; + + /** + * Encodes the specified UninstallDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest.verify|verify} messages. + * @param message UninstallDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UninstallDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest.verify|verify} messages. + * @param message UninstallDeploymentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninstallDeploymentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninstallDeploymentRequest + * @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.gsuiteaddons.v1.UninstallDeploymentRequest; + + /** + * Decodes an UninstallDeploymentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninstallDeploymentRequest + * @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.gsuiteaddons.v1.UninstallDeploymentRequest; + + /** + * Verifies an UninstallDeploymentRequest 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 an UninstallDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninstallDeploymentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest; + + /** + * Creates a plain object from an UninstallDeploymentRequest message. Also converts values to other types if specified. + * @param message UninstallDeploymentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UninstallDeploymentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UninstallDeploymentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetInstallStatusRequest. */ + interface IGetInstallStatusRequest { + + /** GetInstallStatusRequest name */ + name?: (string|null); + } + + /** Represents a GetInstallStatusRequest. */ + class GetInstallStatusRequest implements IGetInstallStatusRequest { + + /** + * Constructs a new GetInstallStatusRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest); + + /** GetInstallStatusRequest name. */ + public name: string; + + /** + * Creates a new GetInstallStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetInstallStatusRequest instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest): google.cloud.gsuiteaddons.v1.GetInstallStatusRequest; + + /** + * Encodes the specified GetInstallStatusRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetInstallStatusRequest.verify|verify} messages. + * @param message GetInstallStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetInstallStatusRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetInstallStatusRequest.verify|verify} messages. + * @param message GetInstallStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetInstallStatusRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetInstallStatusRequest + * @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.gsuiteaddons.v1.GetInstallStatusRequest; + + /** + * Decodes a GetInstallStatusRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetInstallStatusRequest + * @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.gsuiteaddons.v1.GetInstallStatusRequest; + + /** + * Verifies a GetInstallStatusRequest 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 GetInstallStatusRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetInstallStatusRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.GetInstallStatusRequest; + + /** + * Creates a plain object from a GetInstallStatusRequest message. Also converts values to other types if specified. + * @param message GetInstallStatusRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.GetInstallStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetInstallStatusRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetInstallStatusRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstallStatus. */ + interface IInstallStatus { + + /** InstallStatus name */ + name?: (string|null); + + /** InstallStatus installed */ + installed?: (google.protobuf.IBoolValue|null); + } + + /** Represents an InstallStatus. */ + class InstallStatus implements IInstallStatus { + + /** + * Constructs a new InstallStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IInstallStatus); + + /** InstallStatus name. */ + public name: string; + + /** InstallStatus installed. */ + public installed?: (google.protobuf.IBoolValue|null); + + /** + * Creates a new InstallStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns InstallStatus instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IInstallStatus): google.cloud.gsuiteaddons.v1.InstallStatus; + + /** + * Encodes the specified InstallStatus message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.InstallStatus.verify|verify} messages. + * @param message InstallStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IInstallStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstallStatus message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.InstallStatus.verify|verify} messages. + * @param message InstallStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IInstallStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstallStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstallStatus + * @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.gsuiteaddons.v1.InstallStatus; + + /** + * Decodes an InstallStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstallStatus + * @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.gsuiteaddons.v1.InstallStatus; + + /** + * Verifies an InstallStatus 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 an InstallStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstallStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.InstallStatus; + + /** + * Creates a plain object from an InstallStatus message. Also converts values to other types if specified. + * @param message InstallStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.InstallStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstallStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstallStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Deployment. */ + interface IDeployment { + + /** Deployment name */ + name?: (string|null); + + /** Deployment oauthScopes */ + oauthScopes?: (string[]|null); + + /** Deployment addOns */ + addOns?: (google.cloud.gsuiteaddons.v1.IAddOns|null); + + /** Deployment etag */ + etag?: (string|null); + } + + /** Represents a Deployment. */ + class Deployment implements IDeployment { + + /** + * Constructs a new Deployment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IDeployment); + + /** Deployment name. */ + public name: string; + + /** Deployment oauthScopes. */ + public oauthScopes: string[]; + + /** Deployment addOns. */ + public addOns?: (google.cloud.gsuiteaddons.v1.IAddOns|null); + + /** Deployment etag. */ + public etag: string; + + /** + * Creates a new Deployment instance using the specified properties. + * @param [properties] Properties to set + * @returns Deployment instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IDeployment): google.cloud.gsuiteaddons.v1.Deployment; + + /** + * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.Deployment.verify|verify} messages. + * @param message Deployment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.Deployment.verify|verify} messages. + * @param message Deployment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Deployment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Deployment + * @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.gsuiteaddons.v1.Deployment; + + /** + * Decodes a Deployment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Deployment + * @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.gsuiteaddons.v1.Deployment; + + /** + * Verifies a Deployment 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 Deployment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Deployment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.Deployment; + + /** + * Creates a plain object from a Deployment message. Also converts values to other types if specified. + * @param message Deployment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.Deployment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Deployment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Deployment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AddOns. */ + interface IAddOns { + + /** AddOns common */ + common?: (google.apps.script.type.ICommonAddOnManifest|null); + + /** AddOns gmail */ + gmail?: (google.apps.script.type.gmail.IGmailAddOnManifest|null); + + /** AddOns drive */ + drive?: (google.apps.script.type.drive.IDriveAddOnManifest|null); + + /** AddOns calendar */ + calendar?: (google.apps.script.type.calendar.ICalendarAddOnManifest|null); + + /** AddOns docs */ + docs?: (google.apps.script.type.docs.IDocsAddOnManifest|null); + + /** AddOns sheets */ + sheets?: (google.apps.script.type.sheets.ISheetsAddOnManifest|null); + + /** AddOns slides */ + slides?: (google.apps.script.type.slides.ISlidesAddOnManifest|null); + + /** AddOns httpOptions */ + httpOptions?: (google.apps.script.type.IHttpOptions|null); + } + + /** Represents an AddOns. */ + class AddOns implements IAddOns { + + /** + * Constructs a new AddOns. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.gsuiteaddons.v1.IAddOns); + + /** AddOns common. */ + public common?: (google.apps.script.type.ICommonAddOnManifest|null); + + /** AddOns gmail. */ + public gmail?: (google.apps.script.type.gmail.IGmailAddOnManifest|null); + + /** AddOns drive. */ + public drive?: (google.apps.script.type.drive.IDriveAddOnManifest|null); + + /** AddOns calendar. */ + public calendar?: (google.apps.script.type.calendar.ICalendarAddOnManifest|null); + + /** AddOns docs. */ + public docs?: (google.apps.script.type.docs.IDocsAddOnManifest|null); + + /** AddOns sheets. */ + public sheets?: (google.apps.script.type.sheets.ISheetsAddOnManifest|null); + + /** AddOns slides. */ + public slides?: (google.apps.script.type.slides.ISlidesAddOnManifest|null); + + /** AddOns httpOptions. */ + public httpOptions?: (google.apps.script.type.IHttpOptions|null); + + /** + * Creates a new AddOns instance using the specified properties. + * @param [properties] Properties to set + * @returns AddOns instance + */ + public static create(properties?: google.cloud.gsuiteaddons.v1.IAddOns): google.cloud.gsuiteaddons.v1.AddOns; + + /** + * Encodes the specified AddOns message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.AddOns.verify|verify} messages. + * @param message AddOns message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.gsuiteaddons.v1.IAddOns, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddOns message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.AddOns.verify|verify} messages. + * @param message AddOns message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.gsuiteaddons.v1.IAddOns, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddOns message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddOns + * @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.gsuiteaddons.v1.AddOns; + + /** + * Decodes an AddOns message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddOns + * @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.gsuiteaddons.v1.AddOns; + + /** + * Verifies an AddOns 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 an AddOns message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddOns + */ + public static fromObject(object: { [k: string]: any }): google.cloud.gsuiteaddons.v1.AddOns; + + /** + * Creates a plain object from an AddOns message. Also converts values to other types if specified. + * @param message AddOns + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.gsuiteaddons.v1.AddOns, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddOns to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddOns + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + } +} diff --git a/packages/google-cloud-gsuiteaddons/protos/protos.js b/packages/google-cloud-gsuiteaddons/protos/protos.js new file mode 100644 index 000000000000..e09b0eecab5c --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/protos.js @@ -0,0 +1,23814 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +(function(global, factory) { /* global define, require, module */ + + /* AMD */ if (typeof define === 'function' && define.amd) + define(["protobufjs/minimal"], factory); + + /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) + module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal); + +})(this, function($protobuf) { + "use strict"; + + // Common aliases + var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + + // Exported root namespace + var $root = $protobuf.roots._google_cloud_gsuiteaddons_protos || ($protobuf.roots._google_cloud_gsuiteaddons_protos = {}); + + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.apps = (function() { + + /** + * Namespace apps. + * @memberof google + * @namespace + */ + var apps = {}; + + apps.script = (function() { + + /** + * Namespace script. + * @memberof google.apps + * @namespace + */ + var script = {}; + + script.type = (function() { + + /** + * Namespace type. + * @memberof google.apps.script + * @namespace + */ + var type = {}; + + type.AddOnWidgetSet = (function() { + + /** + * Properties of an AddOnWidgetSet. + * @memberof google.apps.script.type + * @interface IAddOnWidgetSet + * @property {Array.|null} [usedWidgets] AddOnWidgetSet usedWidgets + */ + + /** + * Constructs a new AddOnWidgetSet. + * @memberof google.apps.script.type + * @classdesc Represents an AddOnWidgetSet. + * @implements IAddOnWidgetSet + * @constructor + * @param {google.apps.script.type.IAddOnWidgetSet=} [properties] Properties to set + */ + function AddOnWidgetSet(properties) { + this.usedWidgets = []; + 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]]; + } + + /** + * AddOnWidgetSet usedWidgets. + * @member {Array.} usedWidgets + * @memberof google.apps.script.type.AddOnWidgetSet + * @instance + */ + AddOnWidgetSet.prototype.usedWidgets = $util.emptyArray; + + /** + * Creates a new AddOnWidgetSet instance using the specified properties. + * @function create + * @memberof google.apps.script.type.AddOnWidgetSet + * @static + * @param {google.apps.script.type.IAddOnWidgetSet=} [properties] Properties to set + * @returns {google.apps.script.type.AddOnWidgetSet} AddOnWidgetSet instance + */ + AddOnWidgetSet.create = function create(properties) { + return new AddOnWidgetSet(properties); + }; + + /** + * Encodes the specified AddOnWidgetSet message. Does not implicitly {@link google.apps.script.type.AddOnWidgetSet.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.AddOnWidgetSet + * @static + * @param {google.apps.script.type.IAddOnWidgetSet} message AddOnWidgetSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddOnWidgetSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.usedWidgets != null && message.usedWidgets.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.usedWidgets.length; ++i) + writer.int32(message.usedWidgets[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified AddOnWidgetSet message, length delimited. Does not implicitly {@link google.apps.script.type.AddOnWidgetSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.AddOnWidgetSet + * @static + * @param {google.apps.script.type.IAddOnWidgetSet} message AddOnWidgetSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddOnWidgetSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddOnWidgetSet message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.AddOnWidgetSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.AddOnWidgetSet} AddOnWidgetSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddOnWidgetSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.AddOnWidgetSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.usedWidgets && message.usedWidgets.length)) + message.usedWidgets = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.usedWidgets.push(reader.int32()); + } else + message.usedWidgets.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AddOnWidgetSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.AddOnWidgetSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.AddOnWidgetSet} AddOnWidgetSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddOnWidgetSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AddOnWidgetSet message. + * @function verify + * @memberof google.apps.script.type.AddOnWidgetSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddOnWidgetSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.usedWidgets != null && message.hasOwnProperty("usedWidgets")) { + if (!Array.isArray(message.usedWidgets)) + return "usedWidgets: array expected"; + for (var i = 0; i < message.usedWidgets.length; ++i) + switch (message.usedWidgets[i]) { + default: + return "usedWidgets: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + } + return null; + }; + + /** + * Creates an AddOnWidgetSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.AddOnWidgetSet + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.AddOnWidgetSet} AddOnWidgetSet + */ + AddOnWidgetSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.AddOnWidgetSet) + return object; + var message = new $root.google.apps.script.type.AddOnWidgetSet(); + if (object.usedWidgets) { + if (!Array.isArray(object.usedWidgets)) + throw TypeError(".google.apps.script.type.AddOnWidgetSet.usedWidgets: array expected"); + message.usedWidgets = []; + for (var i = 0; i < object.usedWidgets.length; ++i) + switch (object.usedWidgets[i]) { + default: + if (typeof object.usedWidgets[i] === "number") { + message.usedWidgets[i] = object.usedWidgets[i]; + break; + } + case "WIDGET_TYPE_UNSPECIFIED": + case 0: + message.usedWidgets[i] = 0; + break; + case "DATE_PICKER": + case 1: + message.usedWidgets[i] = 1; + break; + case "STYLED_BUTTONS": + case 2: + message.usedWidgets[i] = 2; + break; + case "PERSISTENT_FORMS": + case 3: + message.usedWidgets[i] = 3; + break; + case "FIXED_FOOTER": + case 4: + message.usedWidgets[i] = 4; + break; + case "UPDATE_SUBJECT_AND_RECIPIENTS": + case 5: + message.usedWidgets[i] = 5; + break; + case "GRID_WIDGET": + case 6: + message.usedWidgets[i] = 6; + break; + case "ADDON_COMPOSE_UI_ACTION": + case 7: + message.usedWidgets[i] = 7; + break; + } + } + return message; + }; + + /** + * Creates a plain object from an AddOnWidgetSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.AddOnWidgetSet + * @static + * @param {google.apps.script.type.AddOnWidgetSet} message AddOnWidgetSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddOnWidgetSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.usedWidgets = []; + if (message.usedWidgets && message.usedWidgets.length) { + object.usedWidgets = []; + for (var j = 0; j < message.usedWidgets.length; ++j) + object.usedWidgets[j] = options.enums === String ? $root.google.apps.script.type.AddOnWidgetSet.WidgetType[message.usedWidgets[j]] === undefined ? message.usedWidgets[j] : $root.google.apps.script.type.AddOnWidgetSet.WidgetType[message.usedWidgets[j]] : message.usedWidgets[j]; + } + return object; + }; + + /** + * Converts this AddOnWidgetSet to JSON. + * @function toJSON + * @memberof google.apps.script.type.AddOnWidgetSet + * @instance + * @returns {Object.} JSON object + */ + AddOnWidgetSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AddOnWidgetSet + * @function getTypeUrl + * @memberof google.apps.script.type.AddOnWidgetSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddOnWidgetSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.AddOnWidgetSet"; + }; + + /** + * WidgetType enum. + * @name google.apps.script.type.AddOnWidgetSet.WidgetType + * @enum {number} + * @property {number} WIDGET_TYPE_UNSPECIFIED=0 WIDGET_TYPE_UNSPECIFIED value + * @property {number} DATE_PICKER=1 DATE_PICKER value + * @property {number} STYLED_BUTTONS=2 STYLED_BUTTONS value + * @property {number} PERSISTENT_FORMS=3 PERSISTENT_FORMS value + * @property {number} FIXED_FOOTER=4 FIXED_FOOTER value + * @property {number} UPDATE_SUBJECT_AND_RECIPIENTS=5 UPDATE_SUBJECT_AND_RECIPIENTS value + * @property {number} GRID_WIDGET=6 GRID_WIDGET value + * @property {number} ADDON_COMPOSE_UI_ACTION=7 ADDON_COMPOSE_UI_ACTION value + */ + AddOnWidgetSet.WidgetType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "WIDGET_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DATE_PICKER"] = 1; + values[valuesById[2] = "STYLED_BUTTONS"] = 2; + values[valuesById[3] = "PERSISTENT_FORMS"] = 3; + values[valuesById[4] = "FIXED_FOOTER"] = 4; + values[valuesById[5] = "UPDATE_SUBJECT_AND_RECIPIENTS"] = 5; + values[valuesById[6] = "GRID_WIDGET"] = 6; + values[valuesById[7] = "ADDON_COMPOSE_UI_ACTION"] = 7; + return values; + })(); + + return AddOnWidgetSet; + })(); + + type.calendar = (function() { + + /** + * Namespace calendar. + * @memberof google.apps.script.type + * @namespace + */ + var calendar = {}; + + calendar.CalendarAddOnManifest = (function() { + + /** + * Properties of a CalendarAddOnManifest. + * @memberof google.apps.script.type.calendar + * @interface ICalendarAddOnManifest + * @property {google.apps.script.type.IHomepageExtensionPoint|null} [homepageTrigger] CalendarAddOnManifest homepageTrigger + * @property {Array.|null} [conferenceSolution] CalendarAddOnManifest conferenceSolution + * @property {string|null} [createSettingsUrlFunction] CalendarAddOnManifest createSettingsUrlFunction + * @property {google.apps.script.type.calendar.ICalendarExtensionPoint|null} [eventOpenTrigger] CalendarAddOnManifest eventOpenTrigger + * @property {google.apps.script.type.calendar.ICalendarExtensionPoint|null} [eventUpdateTrigger] CalendarAddOnManifest eventUpdateTrigger + * @property {google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess|null} [currentEventAccess] CalendarAddOnManifest currentEventAccess + */ + + /** + * Constructs a new CalendarAddOnManifest. + * @memberof google.apps.script.type.calendar + * @classdesc Represents a CalendarAddOnManifest. + * @implements ICalendarAddOnManifest + * @constructor + * @param {google.apps.script.type.calendar.ICalendarAddOnManifest=} [properties] Properties to set + */ + function CalendarAddOnManifest(properties) { + this.conferenceSolution = []; + 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]]; + } + + /** + * CalendarAddOnManifest homepageTrigger. + * @member {google.apps.script.type.IHomepageExtensionPoint|null|undefined} homepageTrigger + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @instance + */ + CalendarAddOnManifest.prototype.homepageTrigger = null; + + /** + * CalendarAddOnManifest conferenceSolution. + * @member {Array.} conferenceSolution + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @instance + */ + CalendarAddOnManifest.prototype.conferenceSolution = $util.emptyArray; + + /** + * CalendarAddOnManifest createSettingsUrlFunction. + * @member {string} createSettingsUrlFunction + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @instance + */ + CalendarAddOnManifest.prototype.createSettingsUrlFunction = ""; + + /** + * CalendarAddOnManifest eventOpenTrigger. + * @member {google.apps.script.type.calendar.ICalendarExtensionPoint|null|undefined} eventOpenTrigger + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @instance + */ + CalendarAddOnManifest.prototype.eventOpenTrigger = null; + + /** + * CalendarAddOnManifest eventUpdateTrigger. + * @member {google.apps.script.type.calendar.ICalendarExtensionPoint|null|undefined} eventUpdateTrigger + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @instance + */ + CalendarAddOnManifest.prototype.eventUpdateTrigger = null; + + /** + * CalendarAddOnManifest currentEventAccess. + * @member {google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess} currentEventAccess + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @instance + */ + CalendarAddOnManifest.prototype.currentEventAccess = 0; + + /** + * Creates a new CalendarAddOnManifest instance using the specified properties. + * @function create + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @static + * @param {google.apps.script.type.calendar.ICalendarAddOnManifest=} [properties] Properties to set + * @returns {google.apps.script.type.calendar.CalendarAddOnManifest} CalendarAddOnManifest instance + */ + CalendarAddOnManifest.create = function create(properties) { + return new CalendarAddOnManifest(properties); + }; + + /** + * Encodes the specified CalendarAddOnManifest message. Does not implicitly {@link google.apps.script.type.calendar.CalendarAddOnManifest.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @static + * @param {google.apps.script.type.calendar.ICalendarAddOnManifest} message CalendarAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CalendarAddOnManifest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.conferenceSolution != null && message.conferenceSolution.length) + for (var i = 0; i < message.conferenceSolution.length; ++i) + $root.google.apps.script.type.calendar.ConferenceSolution.encode(message.conferenceSolution[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.createSettingsUrlFunction != null && Object.hasOwnProperty.call(message, "createSettingsUrlFunction")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.createSettingsUrlFunction); + if (message.homepageTrigger != null && Object.hasOwnProperty.call(message, "homepageTrigger")) + $root.google.apps.script.type.HomepageExtensionPoint.encode(message.homepageTrigger, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.eventOpenTrigger != null && Object.hasOwnProperty.call(message, "eventOpenTrigger")) + $root.google.apps.script.type.calendar.CalendarExtensionPoint.encode(message.eventOpenTrigger, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.eventUpdateTrigger != null && Object.hasOwnProperty.call(message, "eventUpdateTrigger")) + $root.google.apps.script.type.calendar.CalendarExtensionPoint.encode(message.eventUpdateTrigger, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.currentEventAccess != null && Object.hasOwnProperty.call(message, "currentEventAccess")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.currentEventAccess); + return writer; + }; + + /** + * Encodes the specified CalendarAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.calendar.CalendarAddOnManifest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @static + * @param {google.apps.script.type.calendar.ICalendarAddOnManifest} message CalendarAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CalendarAddOnManifest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CalendarAddOnManifest message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.calendar.CalendarAddOnManifest} CalendarAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CalendarAddOnManifest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.calendar.CalendarAddOnManifest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 6: { + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.conferenceSolution && message.conferenceSolution.length)) + message.conferenceSolution = []; + message.conferenceSolution.push($root.google.apps.script.type.calendar.ConferenceSolution.decode(reader, reader.uint32())); + break; + } + case 5: { + message.createSettingsUrlFunction = reader.string(); + break; + } + case 10: { + message.eventOpenTrigger = $root.google.apps.script.type.calendar.CalendarExtensionPoint.decode(reader, reader.uint32()); + break; + } + case 11: { + message.eventUpdateTrigger = $root.google.apps.script.type.calendar.CalendarExtensionPoint.decode(reader, reader.uint32()); + break; + } + case 12: { + message.currentEventAccess = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CalendarAddOnManifest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.calendar.CalendarAddOnManifest} CalendarAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CalendarAddOnManifest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CalendarAddOnManifest message. + * @function verify + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CalendarAddOnManifest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) { + var error = $root.google.apps.script.type.HomepageExtensionPoint.verify(message.homepageTrigger); + if (error) + return "homepageTrigger." + error; + } + if (message.conferenceSolution != null && message.hasOwnProperty("conferenceSolution")) { + if (!Array.isArray(message.conferenceSolution)) + return "conferenceSolution: array expected"; + for (var i = 0; i < message.conferenceSolution.length; ++i) { + var error = $root.google.apps.script.type.calendar.ConferenceSolution.verify(message.conferenceSolution[i]); + if (error) + return "conferenceSolution." + error; + } + } + if (message.createSettingsUrlFunction != null && message.hasOwnProperty("createSettingsUrlFunction")) + if (!$util.isString(message.createSettingsUrlFunction)) + return "createSettingsUrlFunction: string expected"; + if (message.eventOpenTrigger != null && message.hasOwnProperty("eventOpenTrigger")) { + var error = $root.google.apps.script.type.calendar.CalendarExtensionPoint.verify(message.eventOpenTrigger); + if (error) + return "eventOpenTrigger." + error; + } + if (message.eventUpdateTrigger != null && message.hasOwnProperty("eventUpdateTrigger")) { + var error = $root.google.apps.script.type.calendar.CalendarExtensionPoint.verify(message.eventUpdateTrigger); + if (error) + return "eventUpdateTrigger." + error; + } + if (message.currentEventAccess != null && message.hasOwnProperty("currentEventAccess")) + switch (message.currentEventAccess) { + default: + return "currentEventAccess: enum value expected"; + case 0: + case 1: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * Creates a CalendarAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.calendar.CalendarAddOnManifest} CalendarAddOnManifest + */ + CalendarAddOnManifest.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.calendar.CalendarAddOnManifest) + return object; + var message = new $root.google.apps.script.type.calendar.CalendarAddOnManifest(); + if (object.homepageTrigger != null) { + if (typeof object.homepageTrigger !== "object") + throw TypeError(".google.apps.script.type.calendar.CalendarAddOnManifest.homepageTrigger: object expected"); + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.fromObject(object.homepageTrigger); + } + if (object.conferenceSolution) { + if (!Array.isArray(object.conferenceSolution)) + throw TypeError(".google.apps.script.type.calendar.CalendarAddOnManifest.conferenceSolution: array expected"); + message.conferenceSolution = []; + for (var i = 0; i < object.conferenceSolution.length; ++i) { + if (typeof object.conferenceSolution[i] !== "object") + throw TypeError(".google.apps.script.type.calendar.CalendarAddOnManifest.conferenceSolution: object expected"); + message.conferenceSolution[i] = $root.google.apps.script.type.calendar.ConferenceSolution.fromObject(object.conferenceSolution[i]); + } + } + if (object.createSettingsUrlFunction != null) + message.createSettingsUrlFunction = String(object.createSettingsUrlFunction); + if (object.eventOpenTrigger != null) { + if (typeof object.eventOpenTrigger !== "object") + throw TypeError(".google.apps.script.type.calendar.CalendarAddOnManifest.eventOpenTrigger: object expected"); + message.eventOpenTrigger = $root.google.apps.script.type.calendar.CalendarExtensionPoint.fromObject(object.eventOpenTrigger); + } + if (object.eventUpdateTrigger != null) { + if (typeof object.eventUpdateTrigger !== "object") + throw TypeError(".google.apps.script.type.calendar.CalendarAddOnManifest.eventUpdateTrigger: object expected"); + message.eventUpdateTrigger = $root.google.apps.script.type.calendar.CalendarExtensionPoint.fromObject(object.eventUpdateTrigger); + } + switch (object.currentEventAccess) { + default: + if (typeof object.currentEventAccess === "number") { + message.currentEventAccess = object.currentEventAccess; + break; + } + break; + case "UNSPECIFIED": + case 0: + message.currentEventAccess = 0; + break; + case "METADATA": + case 1: + message.currentEventAccess = 1; + break; + case "READ": + case 3: + message.currentEventAccess = 3; + break; + case "WRITE": + case 4: + message.currentEventAccess = 4; + break; + case "READ_WRITE": + case 5: + message.currentEventAccess = 5; + break; + } + return message; + }; + + /** + * Creates a plain object from a CalendarAddOnManifest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @static + * @param {google.apps.script.type.calendar.CalendarAddOnManifest} message CalendarAddOnManifest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CalendarAddOnManifest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.conferenceSolution = []; + if (options.defaults) { + object.createSettingsUrlFunction = ""; + object.homepageTrigger = null; + object.eventOpenTrigger = null; + object.eventUpdateTrigger = null; + object.currentEventAccess = options.enums === String ? "UNSPECIFIED" : 0; + } + if (message.conferenceSolution && message.conferenceSolution.length) { + object.conferenceSolution = []; + for (var j = 0; j < message.conferenceSolution.length; ++j) + object.conferenceSolution[j] = $root.google.apps.script.type.calendar.ConferenceSolution.toObject(message.conferenceSolution[j], options); + } + if (message.createSettingsUrlFunction != null && message.hasOwnProperty("createSettingsUrlFunction")) + object.createSettingsUrlFunction = message.createSettingsUrlFunction; + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) + object.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.toObject(message.homepageTrigger, options); + if (message.eventOpenTrigger != null && message.hasOwnProperty("eventOpenTrigger")) + object.eventOpenTrigger = $root.google.apps.script.type.calendar.CalendarExtensionPoint.toObject(message.eventOpenTrigger, options); + if (message.eventUpdateTrigger != null && message.hasOwnProperty("eventUpdateTrigger")) + object.eventUpdateTrigger = $root.google.apps.script.type.calendar.CalendarExtensionPoint.toObject(message.eventUpdateTrigger, options); + if (message.currentEventAccess != null && message.hasOwnProperty("currentEventAccess")) + object.currentEventAccess = options.enums === String ? $root.google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess[message.currentEventAccess] === undefined ? message.currentEventAccess : $root.google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess[message.currentEventAccess] : message.currentEventAccess; + return object; + }; + + /** + * Converts this CalendarAddOnManifest to JSON. + * @function toJSON + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @instance + * @returns {Object.} JSON object + */ + CalendarAddOnManifest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CalendarAddOnManifest + * @function getTypeUrl + * @memberof google.apps.script.type.calendar.CalendarAddOnManifest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CalendarAddOnManifest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.calendar.CalendarAddOnManifest"; + }; + + /** + * EventAccess enum. + * @name google.apps.script.type.calendar.CalendarAddOnManifest.EventAccess + * @enum {number} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} METADATA=1 METADATA value + * @property {number} READ=3 READ value + * @property {number} WRITE=4 WRITE value + * @property {number} READ_WRITE=5 READ_WRITE value + */ + CalendarAddOnManifest.EventAccess = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "METADATA"] = 1; + values[valuesById[3] = "READ"] = 3; + values[valuesById[4] = "WRITE"] = 4; + values[valuesById[5] = "READ_WRITE"] = 5; + return values; + })(); + + return CalendarAddOnManifest; + })(); + + calendar.ConferenceSolution = (function() { + + /** + * Properties of a ConferenceSolution. + * @memberof google.apps.script.type.calendar + * @interface IConferenceSolution + * @property {string|null} [onCreateFunction] ConferenceSolution onCreateFunction + * @property {string|null} [id] ConferenceSolution id + * @property {string|null} [name] ConferenceSolution name + * @property {string|null} [logoUrl] ConferenceSolution logoUrl + */ + + /** + * Constructs a new ConferenceSolution. + * @memberof google.apps.script.type.calendar + * @classdesc Represents a ConferenceSolution. + * @implements IConferenceSolution + * @constructor + * @param {google.apps.script.type.calendar.IConferenceSolution=} [properties] Properties to set + */ + function ConferenceSolution(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]]; + } + + /** + * ConferenceSolution onCreateFunction. + * @member {string} onCreateFunction + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @instance + */ + ConferenceSolution.prototype.onCreateFunction = ""; + + /** + * ConferenceSolution id. + * @member {string} id + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @instance + */ + ConferenceSolution.prototype.id = ""; + + /** + * ConferenceSolution name. + * @member {string} name + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @instance + */ + ConferenceSolution.prototype.name = ""; + + /** + * ConferenceSolution logoUrl. + * @member {string} logoUrl + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @instance + */ + ConferenceSolution.prototype.logoUrl = ""; + + /** + * Creates a new ConferenceSolution instance using the specified properties. + * @function create + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @static + * @param {google.apps.script.type.calendar.IConferenceSolution=} [properties] Properties to set + * @returns {google.apps.script.type.calendar.ConferenceSolution} ConferenceSolution instance + */ + ConferenceSolution.create = function create(properties) { + return new ConferenceSolution(properties); + }; + + /** + * Encodes the specified ConferenceSolution message. Does not implicitly {@link google.apps.script.type.calendar.ConferenceSolution.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @static + * @param {google.apps.script.type.calendar.IConferenceSolution} message ConferenceSolution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConferenceSolution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.onCreateFunction != null && Object.hasOwnProperty.call(message, "onCreateFunction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.onCreateFunction); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.id); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + if (message.logoUrl != null && Object.hasOwnProperty.call(message, "logoUrl")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.logoUrl); + return writer; + }; + + /** + * Encodes the specified ConferenceSolution message, length delimited. Does not implicitly {@link google.apps.script.type.calendar.ConferenceSolution.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @static + * @param {google.apps.script.type.calendar.IConferenceSolution} message ConferenceSolution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConferenceSolution.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConferenceSolution message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.calendar.ConferenceSolution} ConferenceSolution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConferenceSolution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.calendar.ConferenceSolution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.onCreateFunction = reader.string(); + break; + } + case 4: { + message.id = reader.string(); + break; + } + case 5: { + message.name = reader.string(); + break; + } + case 6: { + message.logoUrl = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConferenceSolution message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.calendar.ConferenceSolution} ConferenceSolution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConferenceSolution.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConferenceSolution message. + * @function verify + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConferenceSolution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.onCreateFunction != null && message.hasOwnProperty("onCreateFunction")) + if (!$util.isString(message.onCreateFunction)) + return "onCreateFunction: string expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.logoUrl != null && message.hasOwnProperty("logoUrl")) + if (!$util.isString(message.logoUrl)) + return "logoUrl: string expected"; + return null; + }; + + /** + * Creates a ConferenceSolution message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.calendar.ConferenceSolution} ConferenceSolution + */ + ConferenceSolution.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.calendar.ConferenceSolution) + return object; + var message = new $root.google.apps.script.type.calendar.ConferenceSolution(); + if (object.onCreateFunction != null) + message.onCreateFunction = String(object.onCreateFunction); + if (object.id != null) + message.id = String(object.id); + if (object.name != null) + message.name = String(object.name); + if (object.logoUrl != null) + message.logoUrl = String(object.logoUrl); + return message; + }; + + /** + * Creates a plain object from a ConferenceSolution message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @static + * @param {google.apps.script.type.calendar.ConferenceSolution} message ConferenceSolution + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConferenceSolution.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.onCreateFunction = ""; + object.id = ""; + object.name = ""; + object.logoUrl = ""; + } + if (message.onCreateFunction != null && message.hasOwnProperty("onCreateFunction")) + object.onCreateFunction = message.onCreateFunction; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.logoUrl != null && message.hasOwnProperty("logoUrl")) + object.logoUrl = message.logoUrl; + return object; + }; + + /** + * Converts this ConferenceSolution to JSON. + * @function toJSON + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @instance + * @returns {Object.} JSON object + */ + ConferenceSolution.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConferenceSolution + * @function getTypeUrl + * @memberof google.apps.script.type.calendar.ConferenceSolution + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConferenceSolution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.calendar.ConferenceSolution"; + }; + + return ConferenceSolution; + })(); + + calendar.CalendarExtensionPoint = (function() { + + /** + * Properties of a CalendarExtensionPoint. + * @memberof google.apps.script.type.calendar + * @interface ICalendarExtensionPoint + * @property {string|null} [runFunction] CalendarExtensionPoint runFunction + */ + + /** + * Constructs a new CalendarExtensionPoint. + * @memberof google.apps.script.type.calendar + * @classdesc Represents a CalendarExtensionPoint. + * @implements ICalendarExtensionPoint + * @constructor + * @param {google.apps.script.type.calendar.ICalendarExtensionPoint=} [properties] Properties to set + */ + function CalendarExtensionPoint(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]]; + } + + /** + * CalendarExtensionPoint runFunction. + * @member {string} runFunction + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @instance + */ + CalendarExtensionPoint.prototype.runFunction = ""; + + /** + * Creates a new CalendarExtensionPoint instance using the specified properties. + * @function create + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @static + * @param {google.apps.script.type.calendar.ICalendarExtensionPoint=} [properties] Properties to set + * @returns {google.apps.script.type.calendar.CalendarExtensionPoint} CalendarExtensionPoint instance + */ + CalendarExtensionPoint.create = function create(properties) { + return new CalendarExtensionPoint(properties); + }; + + /** + * Encodes the specified CalendarExtensionPoint message. Does not implicitly {@link google.apps.script.type.calendar.CalendarExtensionPoint.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @static + * @param {google.apps.script.type.calendar.ICalendarExtensionPoint} message CalendarExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CalendarExtensionPoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runFunction != null && Object.hasOwnProperty.call(message, "runFunction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.runFunction); + return writer; + }; + + /** + * Encodes the specified CalendarExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.calendar.CalendarExtensionPoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @static + * @param {google.apps.script.type.calendar.ICalendarExtensionPoint} message CalendarExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CalendarExtensionPoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CalendarExtensionPoint message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.calendar.CalendarExtensionPoint} CalendarExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CalendarExtensionPoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.calendar.CalendarExtensionPoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.runFunction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CalendarExtensionPoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.calendar.CalendarExtensionPoint} CalendarExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CalendarExtensionPoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CalendarExtensionPoint message. + * @function verify + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CalendarExtensionPoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + if (!$util.isString(message.runFunction)) + return "runFunction: string expected"; + return null; + }; + + /** + * Creates a CalendarExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.calendar.CalendarExtensionPoint} CalendarExtensionPoint + */ + CalendarExtensionPoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.calendar.CalendarExtensionPoint) + return object; + var message = new $root.google.apps.script.type.calendar.CalendarExtensionPoint(); + if (object.runFunction != null) + message.runFunction = String(object.runFunction); + return message; + }; + + /** + * Creates a plain object from a CalendarExtensionPoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @static + * @param {google.apps.script.type.calendar.CalendarExtensionPoint} message CalendarExtensionPoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CalendarExtensionPoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.runFunction = ""; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + object.runFunction = message.runFunction; + return object; + }; + + /** + * Converts this CalendarExtensionPoint to JSON. + * @function toJSON + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @instance + * @returns {Object.} JSON object + */ + CalendarExtensionPoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CalendarExtensionPoint + * @function getTypeUrl + * @memberof google.apps.script.type.calendar.CalendarExtensionPoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CalendarExtensionPoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.calendar.CalendarExtensionPoint"; + }; + + return CalendarExtensionPoint; + })(); + + return calendar; + })(); + + type.MenuItemExtensionPoint = (function() { + + /** + * Properties of a MenuItemExtensionPoint. + * @memberof google.apps.script.type + * @interface IMenuItemExtensionPoint + * @property {string|null} [runFunction] MenuItemExtensionPoint runFunction + * @property {string|null} [label] MenuItemExtensionPoint label + * @property {string|null} [logoUrl] MenuItemExtensionPoint logoUrl + */ + + /** + * Constructs a new MenuItemExtensionPoint. + * @memberof google.apps.script.type + * @classdesc Represents a MenuItemExtensionPoint. + * @implements IMenuItemExtensionPoint + * @constructor + * @param {google.apps.script.type.IMenuItemExtensionPoint=} [properties] Properties to set + */ + function MenuItemExtensionPoint(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]]; + } + + /** + * MenuItemExtensionPoint runFunction. + * @member {string} runFunction + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @instance + */ + MenuItemExtensionPoint.prototype.runFunction = ""; + + /** + * MenuItemExtensionPoint label. + * @member {string} label + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @instance + */ + MenuItemExtensionPoint.prototype.label = ""; + + /** + * MenuItemExtensionPoint logoUrl. + * @member {string} logoUrl + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @instance + */ + MenuItemExtensionPoint.prototype.logoUrl = ""; + + /** + * Creates a new MenuItemExtensionPoint instance using the specified properties. + * @function create + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @static + * @param {google.apps.script.type.IMenuItemExtensionPoint=} [properties] Properties to set + * @returns {google.apps.script.type.MenuItemExtensionPoint} MenuItemExtensionPoint instance + */ + MenuItemExtensionPoint.create = function create(properties) { + return new MenuItemExtensionPoint(properties); + }; + + /** + * Encodes the specified MenuItemExtensionPoint message. Does not implicitly {@link google.apps.script.type.MenuItemExtensionPoint.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @static + * @param {google.apps.script.type.IMenuItemExtensionPoint} message MenuItemExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MenuItemExtensionPoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runFunction != null && Object.hasOwnProperty.call(message, "runFunction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.runFunction); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.label); + if (message.logoUrl != null && Object.hasOwnProperty.call(message, "logoUrl")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.logoUrl); + return writer; + }; + + /** + * Encodes the specified MenuItemExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.MenuItemExtensionPoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @static + * @param {google.apps.script.type.IMenuItemExtensionPoint} message MenuItemExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MenuItemExtensionPoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MenuItemExtensionPoint message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.MenuItemExtensionPoint} MenuItemExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MenuItemExtensionPoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.MenuItemExtensionPoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.runFunction = reader.string(); + break; + } + case 2: { + message.label = reader.string(); + break; + } + case 3: { + message.logoUrl = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MenuItemExtensionPoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.MenuItemExtensionPoint} MenuItemExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MenuItemExtensionPoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MenuItemExtensionPoint message. + * @function verify + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MenuItemExtensionPoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + if (!$util.isString(message.runFunction)) + return "runFunction: string expected"; + if (message.label != null && message.hasOwnProperty("label")) + if (!$util.isString(message.label)) + return "label: string expected"; + if (message.logoUrl != null && message.hasOwnProperty("logoUrl")) + if (!$util.isString(message.logoUrl)) + return "logoUrl: string expected"; + return null; + }; + + /** + * Creates a MenuItemExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.MenuItemExtensionPoint} MenuItemExtensionPoint + */ + MenuItemExtensionPoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.MenuItemExtensionPoint) + return object; + var message = new $root.google.apps.script.type.MenuItemExtensionPoint(); + if (object.runFunction != null) + message.runFunction = String(object.runFunction); + if (object.label != null) + message.label = String(object.label); + if (object.logoUrl != null) + message.logoUrl = String(object.logoUrl); + return message; + }; + + /** + * Creates a plain object from a MenuItemExtensionPoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @static + * @param {google.apps.script.type.MenuItemExtensionPoint} message MenuItemExtensionPoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MenuItemExtensionPoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.runFunction = ""; + object.label = ""; + object.logoUrl = ""; + } + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + object.runFunction = message.runFunction; + if (message.label != null && message.hasOwnProperty("label")) + object.label = message.label; + if (message.logoUrl != null && message.hasOwnProperty("logoUrl")) + object.logoUrl = message.logoUrl; + return object; + }; + + /** + * Converts this MenuItemExtensionPoint to JSON. + * @function toJSON + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @instance + * @returns {Object.} JSON object + */ + MenuItemExtensionPoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MenuItemExtensionPoint + * @function getTypeUrl + * @memberof google.apps.script.type.MenuItemExtensionPoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MenuItemExtensionPoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.MenuItemExtensionPoint"; + }; + + return MenuItemExtensionPoint; + })(); + + type.HomepageExtensionPoint = (function() { + + /** + * Properties of a HomepageExtensionPoint. + * @memberof google.apps.script.type + * @interface IHomepageExtensionPoint + * @property {string|null} [runFunction] HomepageExtensionPoint runFunction + * @property {google.protobuf.IBoolValue|null} [enabled] HomepageExtensionPoint enabled + */ + + /** + * Constructs a new HomepageExtensionPoint. + * @memberof google.apps.script.type + * @classdesc Represents a HomepageExtensionPoint. + * @implements IHomepageExtensionPoint + * @constructor + * @param {google.apps.script.type.IHomepageExtensionPoint=} [properties] Properties to set + */ + function HomepageExtensionPoint(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]]; + } + + /** + * HomepageExtensionPoint runFunction. + * @member {string} runFunction + * @memberof google.apps.script.type.HomepageExtensionPoint + * @instance + */ + HomepageExtensionPoint.prototype.runFunction = ""; + + /** + * HomepageExtensionPoint enabled. + * @member {google.protobuf.IBoolValue|null|undefined} enabled + * @memberof google.apps.script.type.HomepageExtensionPoint + * @instance + */ + HomepageExtensionPoint.prototype.enabled = null; + + /** + * Creates a new HomepageExtensionPoint instance using the specified properties. + * @function create + * @memberof google.apps.script.type.HomepageExtensionPoint + * @static + * @param {google.apps.script.type.IHomepageExtensionPoint=} [properties] Properties to set + * @returns {google.apps.script.type.HomepageExtensionPoint} HomepageExtensionPoint instance + */ + HomepageExtensionPoint.create = function create(properties) { + return new HomepageExtensionPoint(properties); + }; + + /** + * Encodes the specified HomepageExtensionPoint message. Does not implicitly {@link google.apps.script.type.HomepageExtensionPoint.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.HomepageExtensionPoint + * @static + * @param {google.apps.script.type.IHomepageExtensionPoint} message HomepageExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HomepageExtensionPoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runFunction != null && Object.hasOwnProperty.call(message, "runFunction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.runFunction); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + $root.google.protobuf.BoolValue.encode(message.enabled, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HomepageExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.HomepageExtensionPoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.HomepageExtensionPoint + * @static + * @param {google.apps.script.type.IHomepageExtensionPoint} message HomepageExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HomepageExtensionPoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HomepageExtensionPoint message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.HomepageExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.HomepageExtensionPoint} HomepageExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HomepageExtensionPoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.HomepageExtensionPoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.runFunction = reader.string(); + break; + } + case 2: { + message.enabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HomepageExtensionPoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.HomepageExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.HomepageExtensionPoint} HomepageExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HomepageExtensionPoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HomepageExtensionPoint message. + * @function verify + * @memberof google.apps.script.type.HomepageExtensionPoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HomepageExtensionPoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + if (!$util.isString(message.runFunction)) + return "runFunction: string expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.enabled); + if (error) + return "enabled." + error; + } + return null; + }; + + /** + * Creates a HomepageExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.HomepageExtensionPoint + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.HomepageExtensionPoint} HomepageExtensionPoint + */ + HomepageExtensionPoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.HomepageExtensionPoint) + return object; + var message = new $root.google.apps.script.type.HomepageExtensionPoint(); + if (object.runFunction != null) + message.runFunction = String(object.runFunction); + if (object.enabled != null) { + if (typeof object.enabled !== "object") + throw TypeError(".google.apps.script.type.HomepageExtensionPoint.enabled: object expected"); + message.enabled = $root.google.protobuf.BoolValue.fromObject(object.enabled); + } + return message; + }; + + /** + * Creates a plain object from a HomepageExtensionPoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.HomepageExtensionPoint + * @static + * @param {google.apps.script.type.HomepageExtensionPoint} message HomepageExtensionPoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HomepageExtensionPoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.runFunction = ""; + object.enabled = null; + } + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + object.runFunction = message.runFunction; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = $root.google.protobuf.BoolValue.toObject(message.enabled, options); + return object; + }; + + /** + * Converts this HomepageExtensionPoint to JSON. + * @function toJSON + * @memberof google.apps.script.type.HomepageExtensionPoint + * @instance + * @returns {Object.} JSON object + */ + HomepageExtensionPoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HomepageExtensionPoint + * @function getTypeUrl + * @memberof google.apps.script.type.HomepageExtensionPoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HomepageExtensionPoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.HomepageExtensionPoint"; + }; + + return HomepageExtensionPoint; + })(); + + type.UniversalActionExtensionPoint = (function() { + + /** + * Properties of an UniversalActionExtensionPoint. + * @memberof google.apps.script.type + * @interface IUniversalActionExtensionPoint + * @property {string|null} [label] UniversalActionExtensionPoint label + * @property {string|null} [openLink] UniversalActionExtensionPoint openLink + * @property {string|null} [runFunction] UniversalActionExtensionPoint runFunction + */ + + /** + * Constructs a new UniversalActionExtensionPoint. + * @memberof google.apps.script.type + * @classdesc Represents an UniversalActionExtensionPoint. + * @implements IUniversalActionExtensionPoint + * @constructor + * @param {google.apps.script.type.IUniversalActionExtensionPoint=} [properties] Properties to set + */ + function UniversalActionExtensionPoint(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]]; + } + + /** + * UniversalActionExtensionPoint label. + * @member {string} label + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @instance + */ + UniversalActionExtensionPoint.prototype.label = ""; + + /** + * UniversalActionExtensionPoint openLink. + * @member {string|null|undefined} openLink + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @instance + */ + UniversalActionExtensionPoint.prototype.openLink = null; + + /** + * UniversalActionExtensionPoint runFunction. + * @member {string|null|undefined} runFunction + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @instance + */ + UniversalActionExtensionPoint.prototype.runFunction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * UniversalActionExtensionPoint actionType. + * @member {"openLink"|"runFunction"|undefined} actionType + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @instance + */ + Object.defineProperty(UniversalActionExtensionPoint.prototype, "actionType", { + get: $util.oneOfGetter($oneOfFields = ["openLink", "runFunction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UniversalActionExtensionPoint instance using the specified properties. + * @function create + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @static + * @param {google.apps.script.type.IUniversalActionExtensionPoint=} [properties] Properties to set + * @returns {google.apps.script.type.UniversalActionExtensionPoint} UniversalActionExtensionPoint instance + */ + UniversalActionExtensionPoint.create = function create(properties) { + return new UniversalActionExtensionPoint(properties); + }; + + /** + * Encodes the specified UniversalActionExtensionPoint message. Does not implicitly {@link google.apps.script.type.UniversalActionExtensionPoint.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @static + * @param {google.apps.script.type.IUniversalActionExtensionPoint} message UniversalActionExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UniversalActionExtensionPoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.label); + if (message.openLink != null && Object.hasOwnProperty.call(message, "openLink")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.openLink); + if (message.runFunction != null && Object.hasOwnProperty.call(message, "runFunction")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.runFunction); + return writer; + }; + + /** + * Encodes the specified UniversalActionExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.UniversalActionExtensionPoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @static + * @param {google.apps.script.type.IUniversalActionExtensionPoint} message UniversalActionExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UniversalActionExtensionPoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UniversalActionExtensionPoint message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.UniversalActionExtensionPoint} UniversalActionExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UniversalActionExtensionPoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.UniversalActionExtensionPoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.label = reader.string(); + break; + } + case 2: { + message.openLink = reader.string(); + break; + } + case 3: { + message.runFunction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UniversalActionExtensionPoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.UniversalActionExtensionPoint} UniversalActionExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UniversalActionExtensionPoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UniversalActionExtensionPoint message. + * @function verify + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UniversalActionExtensionPoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.label != null && message.hasOwnProperty("label")) + if (!$util.isString(message.label)) + return "label: string expected"; + if (message.openLink != null && message.hasOwnProperty("openLink")) { + properties.actionType = 1; + if (!$util.isString(message.openLink)) + return "openLink: string expected"; + } + if (message.runFunction != null && message.hasOwnProperty("runFunction")) { + if (properties.actionType === 1) + return "actionType: multiple values"; + properties.actionType = 1; + if (!$util.isString(message.runFunction)) + return "runFunction: string expected"; + } + return null; + }; + + /** + * Creates an UniversalActionExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.UniversalActionExtensionPoint} UniversalActionExtensionPoint + */ + UniversalActionExtensionPoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.UniversalActionExtensionPoint) + return object; + var message = new $root.google.apps.script.type.UniversalActionExtensionPoint(); + if (object.label != null) + message.label = String(object.label); + if (object.openLink != null) + message.openLink = String(object.openLink); + if (object.runFunction != null) + message.runFunction = String(object.runFunction); + return message; + }; + + /** + * Creates a plain object from an UniversalActionExtensionPoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @static + * @param {google.apps.script.type.UniversalActionExtensionPoint} message UniversalActionExtensionPoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UniversalActionExtensionPoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.label = ""; + if (message.label != null && message.hasOwnProperty("label")) + object.label = message.label; + if (message.openLink != null && message.hasOwnProperty("openLink")) { + object.openLink = message.openLink; + if (options.oneofs) + object.actionType = "openLink"; + } + if (message.runFunction != null && message.hasOwnProperty("runFunction")) { + object.runFunction = message.runFunction; + if (options.oneofs) + object.actionType = "runFunction"; + } + return object; + }; + + /** + * Converts this UniversalActionExtensionPoint to JSON. + * @function toJSON + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @instance + * @returns {Object.} JSON object + */ + UniversalActionExtensionPoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UniversalActionExtensionPoint + * @function getTypeUrl + * @memberof google.apps.script.type.UniversalActionExtensionPoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UniversalActionExtensionPoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.UniversalActionExtensionPoint"; + }; + + return UniversalActionExtensionPoint; + })(); + + type.docs = (function() { + + /** + * Namespace docs. + * @memberof google.apps.script.type + * @namespace + */ + var docs = {}; + + docs.DocsAddOnManifest = (function() { + + /** + * Properties of a DocsAddOnManifest. + * @memberof google.apps.script.type.docs + * @interface IDocsAddOnManifest + * @property {google.apps.script.type.IHomepageExtensionPoint|null} [homepageTrigger] DocsAddOnManifest homepageTrigger + * @property {google.apps.script.type.docs.IDocsExtensionPoint|null} [onFileScopeGrantedTrigger] DocsAddOnManifest onFileScopeGrantedTrigger + */ + + /** + * Constructs a new DocsAddOnManifest. + * @memberof google.apps.script.type.docs + * @classdesc Represents a DocsAddOnManifest. + * @implements IDocsAddOnManifest + * @constructor + * @param {google.apps.script.type.docs.IDocsAddOnManifest=} [properties] Properties to set + */ + function DocsAddOnManifest(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]]; + } + + /** + * DocsAddOnManifest homepageTrigger. + * @member {google.apps.script.type.IHomepageExtensionPoint|null|undefined} homepageTrigger + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @instance + */ + DocsAddOnManifest.prototype.homepageTrigger = null; + + /** + * DocsAddOnManifest onFileScopeGrantedTrigger. + * @member {google.apps.script.type.docs.IDocsExtensionPoint|null|undefined} onFileScopeGrantedTrigger + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @instance + */ + DocsAddOnManifest.prototype.onFileScopeGrantedTrigger = null; + + /** + * Creates a new DocsAddOnManifest instance using the specified properties. + * @function create + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @static + * @param {google.apps.script.type.docs.IDocsAddOnManifest=} [properties] Properties to set + * @returns {google.apps.script.type.docs.DocsAddOnManifest} DocsAddOnManifest instance + */ + DocsAddOnManifest.create = function create(properties) { + return new DocsAddOnManifest(properties); + }; + + /** + * Encodes the specified DocsAddOnManifest message. Does not implicitly {@link google.apps.script.type.docs.DocsAddOnManifest.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @static + * @param {google.apps.script.type.docs.IDocsAddOnManifest} message DocsAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DocsAddOnManifest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.homepageTrigger != null && Object.hasOwnProperty.call(message, "homepageTrigger")) + $root.google.apps.script.type.HomepageExtensionPoint.encode(message.homepageTrigger, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.onFileScopeGrantedTrigger != null && Object.hasOwnProperty.call(message, "onFileScopeGrantedTrigger")) + $root.google.apps.script.type.docs.DocsExtensionPoint.encode(message.onFileScopeGrantedTrigger, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DocsAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.docs.DocsAddOnManifest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @static + * @param {google.apps.script.type.docs.IDocsAddOnManifest} message DocsAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DocsAddOnManifest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DocsAddOnManifest message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.docs.DocsAddOnManifest} DocsAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DocsAddOnManifest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.docs.DocsAddOnManifest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.decode(reader, reader.uint32()); + break; + } + case 2: { + message.onFileScopeGrantedTrigger = $root.google.apps.script.type.docs.DocsExtensionPoint.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DocsAddOnManifest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.docs.DocsAddOnManifest} DocsAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DocsAddOnManifest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DocsAddOnManifest message. + * @function verify + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DocsAddOnManifest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) { + var error = $root.google.apps.script.type.HomepageExtensionPoint.verify(message.homepageTrigger); + if (error) + return "homepageTrigger." + error; + } + if (message.onFileScopeGrantedTrigger != null && message.hasOwnProperty("onFileScopeGrantedTrigger")) { + var error = $root.google.apps.script.type.docs.DocsExtensionPoint.verify(message.onFileScopeGrantedTrigger); + if (error) + return "onFileScopeGrantedTrigger." + error; + } + return null; + }; + + /** + * Creates a DocsAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.docs.DocsAddOnManifest} DocsAddOnManifest + */ + DocsAddOnManifest.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.docs.DocsAddOnManifest) + return object; + var message = new $root.google.apps.script.type.docs.DocsAddOnManifest(); + if (object.homepageTrigger != null) { + if (typeof object.homepageTrigger !== "object") + throw TypeError(".google.apps.script.type.docs.DocsAddOnManifest.homepageTrigger: object expected"); + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.fromObject(object.homepageTrigger); + } + if (object.onFileScopeGrantedTrigger != null) { + if (typeof object.onFileScopeGrantedTrigger !== "object") + throw TypeError(".google.apps.script.type.docs.DocsAddOnManifest.onFileScopeGrantedTrigger: object expected"); + message.onFileScopeGrantedTrigger = $root.google.apps.script.type.docs.DocsExtensionPoint.fromObject(object.onFileScopeGrantedTrigger); + } + return message; + }; + + /** + * Creates a plain object from a DocsAddOnManifest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @static + * @param {google.apps.script.type.docs.DocsAddOnManifest} message DocsAddOnManifest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DocsAddOnManifest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.homepageTrigger = null; + object.onFileScopeGrantedTrigger = null; + } + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) + object.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.toObject(message.homepageTrigger, options); + if (message.onFileScopeGrantedTrigger != null && message.hasOwnProperty("onFileScopeGrantedTrigger")) + object.onFileScopeGrantedTrigger = $root.google.apps.script.type.docs.DocsExtensionPoint.toObject(message.onFileScopeGrantedTrigger, options); + return object; + }; + + /** + * Converts this DocsAddOnManifest to JSON. + * @function toJSON + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @instance + * @returns {Object.} JSON object + */ + DocsAddOnManifest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DocsAddOnManifest + * @function getTypeUrl + * @memberof google.apps.script.type.docs.DocsAddOnManifest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DocsAddOnManifest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.docs.DocsAddOnManifest"; + }; + + return DocsAddOnManifest; + })(); + + docs.DocsExtensionPoint = (function() { + + /** + * Properties of a DocsExtensionPoint. + * @memberof google.apps.script.type.docs + * @interface IDocsExtensionPoint + * @property {string|null} [runFunction] DocsExtensionPoint runFunction + */ + + /** + * Constructs a new DocsExtensionPoint. + * @memberof google.apps.script.type.docs + * @classdesc Represents a DocsExtensionPoint. + * @implements IDocsExtensionPoint + * @constructor + * @param {google.apps.script.type.docs.IDocsExtensionPoint=} [properties] Properties to set + */ + function DocsExtensionPoint(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]]; + } + + /** + * DocsExtensionPoint runFunction. + * @member {string} runFunction + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @instance + */ + DocsExtensionPoint.prototype.runFunction = ""; + + /** + * Creates a new DocsExtensionPoint instance using the specified properties. + * @function create + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @static + * @param {google.apps.script.type.docs.IDocsExtensionPoint=} [properties] Properties to set + * @returns {google.apps.script.type.docs.DocsExtensionPoint} DocsExtensionPoint instance + */ + DocsExtensionPoint.create = function create(properties) { + return new DocsExtensionPoint(properties); + }; + + /** + * Encodes the specified DocsExtensionPoint message. Does not implicitly {@link google.apps.script.type.docs.DocsExtensionPoint.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @static + * @param {google.apps.script.type.docs.IDocsExtensionPoint} message DocsExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DocsExtensionPoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runFunction != null && Object.hasOwnProperty.call(message, "runFunction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.runFunction); + return writer; + }; + + /** + * Encodes the specified DocsExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.docs.DocsExtensionPoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @static + * @param {google.apps.script.type.docs.IDocsExtensionPoint} message DocsExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DocsExtensionPoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DocsExtensionPoint message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.docs.DocsExtensionPoint} DocsExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DocsExtensionPoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.docs.DocsExtensionPoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.runFunction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DocsExtensionPoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.docs.DocsExtensionPoint} DocsExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DocsExtensionPoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DocsExtensionPoint message. + * @function verify + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DocsExtensionPoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + if (!$util.isString(message.runFunction)) + return "runFunction: string expected"; + return null; + }; + + /** + * Creates a DocsExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.docs.DocsExtensionPoint} DocsExtensionPoint + */ + DocsExtensionPoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.docs.DocsExtensionPoint) + return object; + var message = new $root.google.apps.script.type.docs.DocsExtensionPoint(); + if (object.runFunction != null) + message.runFunction = String(object.runFunction); + return message; + }; + + /** + * Creates a plain object from a DocsExtensionPoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @static + * @param {google.apps.script.type.docs.DocsExtensionPoint} message DocsExtensionPoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DocsExtensionPoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.runFunction = ""; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + object.runFunction = message.runFunction; + return object; + }; + + /** + * Converts this DocsExtensionPoint to JSON. + * @function toJSON + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @instance + * @returns {Object.} JSON object + */ + DocsExtensionPoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DocsExtensionPoint + * @function getTypeUrl + * @memberof google.apps.script.type.docs.DocsExtensionPoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DocsExtensionPoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.docs.DocsExtensionPoint"; + }; + + return DocsExtensionPoint; + })(); + + return docs; + })(); + + type.drive = (function() { + + /** + * Namespace drive. + * @memberof google.apps.script.type + * @namespace + */ + var drive = {}; + + drive.DriveAddOnManifest = (function() { + + /** + * Properties of a DriveAddOnManifest. + * @memberof google.apps.script.type.drive + * @interface IDriveAddOnManifest + * @property {google.apps.script.type.IHomepageExtensionPoint|null} [homepageTrigger] DriveAddOnManifest homepageTrigger + * @property {google.apps.script.type.drive.IDriveExtensionPoint|null} [onItemsSelectedTrigger] DriveAddOnManifest onItemsSelectedTrigger + */ + + /** + * Constructs a new DriveAddOnManifest. + * @memberof google.apps.script.type.drive + * @classdesc Represents a DriveAddOnManifest. + * @implements IDriveAddOnManifest + * @constructor + * @param {google.apps.script.type.drive.IDriveAddOnManifest=} [properties] Properties to set + */ + function DriveAddOnManifest(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]]; + } + + /** + * DriveAddOnManifest homepageTrigger. + * @member {google.apps.script.type.IHomepageExtensionPoint|null|undefined} homepageTrigger + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @instance + */ + DriveAddOnManifest.prototype.homepageTrigger = null; + + /** + * DriveAddOnManifest onItemsSelectedTrigger. + * @member {google.apps.script.type.drive.IDriveExtensionPoint|null|undefined} onItemsSelectedTrigger + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @instance + */ + DriveAddOnManifest.prototype.onItemsSelectedTrigger = null; + + /** + * Creates a new DriveAddOnManifest instance using the specified properties. + * @function create + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @static + * @param {google.apps.script.type.drive.IDriveAddOnManifest=} [properties] Properties to set + * @returns {google.apps.script.type.drive.DriveAddOnManifest} DriveAddOnManifest instance + */ + DriveAddOnManifest.create = function create(properties) { + return new DriveAddOnManifest(properties); + }; + + /** + * Encodes the specified DriveAddOnManifest message. Does not implicitly {@link google.apps.script.type.drive.DriveAddOnManifest.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @static + * @param {google.apps.script.type.drive.IDriveAddOnManifest} message DriveAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DriveAddOnManifest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.homepageTrigger != null && Object.hasOwnProperty.call(message, "homepageTrigger")) + $root.google.apps.script.type.HomepageExtensionPoint.encode(message.homepageTrigger, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.onItemsSelectedTrigger != null && Object.hasOwnProperty.call(message, "onItemsSelectedTrigger")) + $root.google.apps.script.type.drive.DriveExtensionPoint.encode(message.onItemsSelectedTrigger, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DriveAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.drive.DriveAddOnManifest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @static + * @param {google.apps.script.type.drive.IDriveAddOnManifest} message DriveAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DriveAddOnManifest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DriveAddOnManifest message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.drive.DriveAddOnManifest} DriveAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DriveAddOnManifest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.drive.DriveAddOnManifest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.decode(reader, reader.uint32()); + break; + } + case 2: { + message.onItemsSelectedTrigger = $root.google.apps.script.type.drive.DriveExtensionPoint.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DriveAddOnManifest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.drive.DriveAddOnManifest} DriveAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DriveAddOnManifest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DriveAddOnManifest message. + * @function verify + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DriveAddOnManifest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) { + var error = $root.google.apps.script.type.HomepageExtensionPoint.verify(message.homepageTrigger); + if (error) + return "homepageTrigger." + error; + } + if (message.onItemsSelectedTrigger != null && message.hasOwnProperty("onItemsSelectedTrigger")) { + var error = $root.google.apps.script.type.drive.DriveExtensionPoint.verify(message.onItemsSelectedTrigger); + if (error) + return "onItemsSelectedTrigger." + error; + } + return null; + }; + + /** + * Creates a DriveAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.drive.DriveAddOnManifest} DriveAddOnManifest + */ + DriveAddOnManifest.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.drive.DriveAddOnManifest) + return object; + var message = new $root.google.apps.script.type.drive.DriveAddOnManifest(); + if (object.homepageTrigger != null) { + if (typeof object.homepageTrigger !== "object") + throw TypeError(".google.apps.script.type.drive.DriveAddOnManifest.homepageTrigger: object expected"); + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.fromObject(object.homepageTrigger); + } + if (object.onItemsSelectedTrigger != null) { + if (typeof object.onItemsSelectedTrigger !== "object") + throw TypeError(".google.apps.script.type.drive.DriveAddOnManifest.onItemsSelectedTrigger: object expected"); + message.onItemsSelectedTrigger = $root.google.apps.script.type.drive.DriveExtensionPoint.fromObject(object.onItemsSelectedTrigger); + } + return message; + }; + + /** + * Creates a plain object from a DriveAddOnManifest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @static + * @param {google.apps.script.type.drive.DriveAddOnManifest} message DriveAddOnManifest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DriveAddOnManifest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.homepageTrigger = null; + object.onItemsSelectedTrigger = null; + } + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) + object.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.toObject(message.homepageTrigger, options); + if (message.onItemsSelectedTrigger != null && message.hasOwnProperty("onItemsSelectedTrigger")) + object.onItemsSelectedTrigger = $root.google.apps.script.type.drive.DriveExtensionPoint.toObject(message.onItemsSelectedTrigger, options); + return object; + }; + + /** + * Converts this DriveAddOnManifest to JSON. + * @function toJSON + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @instance + * @returns {Object.} JSON object + */ + DriveAddOnManifest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DriveAddOnManifest + * @function getTypeUrl + * @memberof google.apps.script.type.drive.DriveAddOnManifest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DriveAddOnManifest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.drive.DriveAddOnManifest"; + }; + + return DriveAddOnManifest; + })(); + + drive.DriveExtensionPoint = (function() { + + /** + * Properties of a DriveExtensionPoint. + * @memberof google.apps.script.type.drive + * @interface IDriveExtensionPoint + * @property {string|null} [runFunction] DriveExtensionPoint runFunction + */ + + /** + * Constructs a new DriveExtensionPoint. + * @memberof google.apps.script.type.drive + * @classdesc Represents a DriveExtensionPoint. + * @implements IDriveExtensionPoint + * @constructor + * @param {google.apps.script.type.drive.IDriveExtensionPoint=} [properties] Properties to set + */ + function DriveExtensionPoint(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]]; + } + + /** + * DriveExtensionPoint runFunction. + * @member {string} runFunction + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @instance + */ + DriveExtensionPoint.prototype.runFunction = ""; + + /** + * Creates a new DriveExtensionPoint instance using the specified properties. + * @function create + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @static + * @param {google.apps.script.type.drive.IDriveExtensionPoint=} [properties] Properties to set + * @returns {google.apps.script.type.drive.DriveExtensionPoint} DriveExtensionPoint instance + */ + DriveExtensionPoint.create = function create(properties) { + return new DriveExtensionPoint(properties); + }; + + /** + * Encodes the specified DriveExtensionPoint message. Does not implicitly {@link google.apps.script.type.drive.DriveExtensionPoint.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @static + * @param {google.apps.script.type.drive.IDriveExtensionPoint} message DriveExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DriveExtensionPoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runFunction != null && Object.hasOwnProperty.call(message, "runFunction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.runFunction); + return writer; + }; + + /** + * Encodes the specified DriveExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.drive.DriveExtensionPoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @static + * @param {google.apps.script.type.drive.IDriveExtensionPoint} message DriveExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DriveExtensionPoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DriveExtensionPoint message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.drive.DriveExtensionPoint} DriveExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DriveExtensionPoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.drive.DriveExtensionPoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.runFunction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DriveExtensionPoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.drive.DriveExtensionPoint} DriveExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DriveExtensionPoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DriveExtensionPoint message. + * @function verify + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DriveExtensionPoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + if (!$util.isString(message.runFunction)) + return "runFunction: string expected"; + return null; + }; + + /** + * Creates a DriveExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.drive.DriveExtensionPoint} DriveExtensionPoint + */ + DriveExtensionPoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.drive.DriveExtensionPoint) + return object; + var message = new $root.google.apps.script.type.drive.DriveExtensionPoint(); + if (object.runFunction != null) + message.runFunction = String(object.runFunction); + return message; + }; + + /** + * Creates a plain object from a DriveExtensionPoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @static + * @param {google.apps.script.type.drive.DriveExtensionPoint} message DriveExtensionPoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DriveExtensionPoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.runFunction = ""; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + object.runFunction = message.runFunction; + return object; + }; + + /** + * Converts this DriveExtensionPoint to JSON. + * @function toJSON + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @instance + * @returns {Object.} JSON object + */ + DriveExtensionPoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DriveExtensionPoint + * @function getTypeUrl + * @memberof google.apps.script.type.drive.DriveExtensionPoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DriveExtensionPoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.drive.DriveExtensionPoint"; + }; + + return DriveExtensionPoint; + })(); + + return drive; + })(); + + type.gmail = (function() { + + /** + * Namespace gmail. + * @memberof google.apps.script.type + * @namespace + */ + var gmail = {}; + + gmail.GmailAddOnManifest = (function() { + + /** + * Properties of a GmailAddOnManifest. + * @memberof google.apps.script.type.gmail + * @interface IGmailAddOnManifest + * @property {google.apps.script.type.IHomepageExtensionPoint|null} [homepageTrigger] GmailAddOnManifest homepageTrigger + * @property {Array.|null} [contextualTriggers] GmailAddOnManifest contextualTriggers + * @property {Array.|null} [universalActions] GmailAddOnManifest universalActions + * @property {google.apps.script.type.gmail.IComposeTrigger|null} [composeTrigger] GmailAddOnManifest composeTrigger + * @property {string|null} [authorizationCheckFunction] GmailAddOnManifest authorizationCheckFunction + */ + + /** + * Constructs a new GmailAddOnManifest. + * @memberof google.apps.script.type.gmail + * @classdesc Represents a GmailAddOnManifest. + * @implements IGmailAddOnManifest + * @constructor + * @param {google.apps.script.type.gmail.IGmailAddOnManifest=} [properties] Properties to set + */ + function GmailAddOnManifest(properties) { + this.contextualTriggers = []; + this.universalActions = []; + 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]]; + } + + /** + * GmailAddOnManifest homepageTrigger. + * @member {google.apps.script.type.IHomepageExtensionPoint|null|undefined} homepageTrigger + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @instance + */ + GmailAddOnManifest.prototype.homepageTrigger = null; + + /** + * GmailAddOnManifest contextualTriggers. + * @member {Array.} contextualTriggers + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @instance + */ + GmailAddOnManifest.prototype.contextualTriggers = $util.emptyArray; + + /** + * GmailAddOnManifest universalActions. + * @member {Array.} universalActions + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @instance + */ + GmailAddOnManifest.prototype.universalActions = $util.emptyArray; + + /** + * GmailAddOnManifest composeTrigger. + * @member {google.apps.script.type.gmail.IComposeTrigger|null|undefined} composeTrigger + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @instance + */ + GmailAddOnManifest.prototype.composeTrigger = null; + + /** + * GmailAddOnManifest authorizationCheckFunction. + * @member {string} authorizationCheckFunction + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @instance + */ + GmailAddOnManifest.prototype.authorizationCheckFunction = ""; + + /** + * Creates a new GmailAddOnManifest instance using the specified properties. + * @function create + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @static + * @param {google.apps.script.type.gmail.IGmailAddOnManifest=} [properties] Properties to set + * @returns {google.apps.script.type.gmail.GmailAddOnManifest} GmailAddOnManifest instance + */ + GmailAddOnManifest.create = function create(properties) { + return new GmailAddOnManifest(properties); + }; + + /** + * Encodes the specified GmailAddOnManifest message. Does not implicitly {@link google.apps.script.type.gmail.GmailAddOnManifest.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @static + * @param {google.apps.script.type.gmail.IGmailAddOnManifest} message GmailAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GmailAddOnManifest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.contextualTriggers != null && message.contextualTriggers.length) + for (var i = 0; i < message.contextualTriggers.length; ++i) + $root.google.apps.script.type.gmail.ContextualTrigger.encode(message.contextualTriggers[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.universalActions != null && message.universalActions.length) + for (var i = 0; i < message.universalActions.length; ++i) + $root.google.apps.script.type.gmail.UniversalAction.encode(message.universalActions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.authorizationCheckFunction != null && Object.hasOwnProperty.call(message, "authorizationCheckFunction")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.authorizationCheckFunction); + if (message.composeTrigger != null && Object.hasOwnProperty.call(message, "composeTrigger")) + $root.google.apps.script.type.gmail.ComposeTrigger.encode(message.composeTrigger, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.homepageTrigger != null && Object.hasOwnProperty.call(message, "homepageTrigger")) + $root.google.apps.script.type.HomepageExtensionPoint.encode(message.homepageTrigger, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GmailAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.GmailAddOnManifest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @static + * @param {google.apps.script.type.gmail.IGmailAddOnManifest} message GmailAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GmailAddOnManifest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GmailAddOnManifest message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.gmail.GmailAddOnManifest} GmailAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GmailAddOnManifest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.gmail.GmailAddOnManifest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 14: { + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.contextualTriggers && message.contextualTriggers.length)) + message.contextualTriggers = []; + message.contextualTriggers.push($root.google.apps.script.type.gmail.ContextualTrigger.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.universalActions && message.universalActions.length)) + message.universalActions = []; + message.universalActions.push($root.google.apps.script.type.gmail.UniversalAction.decode(reader, reader.uint32())); + break; + } + case 12: { + message.composeTrigger = $root.google.apps.script.type.gmail.ComposeTrigger.decode(reader, reader.uint32()); + break; + } + case 7: { + message.authorizationCheckFunction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GmailAddOnManifest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.gmail.GmailAddOnManifest} GmailAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GmailAddOnManifest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GmailAddOnManifest message. + * @function verify + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GmailAddOnManifest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) { + var error = $root.google.apps.script.type.HomepageExtensionPoint.verify(message.homepageTrigger); + if (error) + return "homepageTrigger." + error; + } + if (message.contextualTriggers != null && message.hasOwnProperty("contextualTriggers")) { + if (!Array.isArray(message.contextualTriggers)) + return "contextualTriggers: array expected"; + for (var i = 0; i < message.contextualTriggers.length; ++i) { + var error = $root.google.apps.script.type.gmail.ContextualTrigger.verify(message.contextualTriggers[i]); + if (error) + return "contextualTriggers." + error; + } + } + if (message.universalActions != null && message.hasOwnProperty("universalActions")) { + if (!Array.isArray(message.universalActions)) + return "universalActions: array expected"; + for (var i = 0; i < message.universalActions.length; ++i) { + var error = $root.google.apps.script.type.gmail.UniversalAction.verify(message.universalActions[i]); + if (error) + return "universalActions." + error; + } + } + if (message.composeTrigger != null && message.hasOwnProperty("composeTrigger")) { + var error = $root.google.apps.script.type.gmail.ComposeTrigger.verify(message.composeTrigger); + if (error) + return "composeTrigger." + error; + } + if (message.authorizationCheckFunction != null && message.hasOwnProperty("authorizationCheckFunction")) + if (!$util.isString(message.authorizationCheckFunction)) + return "authorizationCheckFunction: string expected"; + return null; + }; + + /** + * Creates a GmailAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.gmail.GmailAddOnManifest} GmailAddOnManifest + */ + GmailAddOnManifest.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.gmail.GmailAddOnManifest) + return object; + var message = new $root.google.apps.script.type.gmail.GmailAddOnManifest(); + if (object.homepageTrigger != null) { + if (typeof object.homepageTrigger !== "object") + throw TypeError(".google.apps.script.type.gmail.GmailAddOnManifest.homepageTrigger: object expected"); + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.fromObject(object.homepageTrigger); + } + if (object.contextualTriggers) { + if (!Array.isArray(object.contextualTriggers)) + throw TypeError(".google.apps.script.type.gmail.GmailAddOnManifest.contextualTriggers: array expected"); + message.contextualTriggers = []; + for (var i = 0; i < object.contextualTriggers.length; ++i) { + if (typeof object.contextualTriggers[i] !== "object") + throw TypeError(".google.apps.script.type.gmail.GmailAddOnManifest.contextualTriggers: object expected"); + message.contextualTriggers[i] = $root.google.apps.script.type.gmail.ContextualTrigger.fromObject(object.contextualTriggers[i]); + } + } + if (object.universalActions) { + if (!Array.isArray(object.universalActions)) + throw TypeError(".google.apps.script.type.gmail.GmailAddOnManifest.universalActions: array expected"); + message.universalActions = []; + for (var i = 0; i < object.universalActions.length; ++i) { + if (typeof object.universalActions[i] !== "object") + throw TypeError(".google.apps.script.type.gmail.GmailAddOnManifest.universalActions: object expected"); + message.universalActions[i] = $root.google.apps.script.type.gmail.UniversalAction.fromObject(object.universalActions[i]); + } + } + if (object.composeTrigger != null) { + if (typeof object.composeTrigger !== "object") + throw TypeError(".google.apps.script.type.gmail.GmailAddOnManifest.composeTrigger: object expected"); + message.composeTrigger = $root.google.apps.script.type.gmail.ComposeTrigger.fromObject(object.composeTrigger); + } + if (object.authorizationCheckFunction != null) + message.authorizationCheckFunction = String(object.authorizationCheckFunction); + return message; + }; + + /** + * Creates a plain object from a GmailAddOnManifest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @static + * @param {google.apps.script.type.gmail.GmailAddOnManifest} message GmailAddOnManifest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GmailAddOnManifest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.contextualTriggers = []; + object.universalActions = []; + } + if (options.defaults) { + object.authorizationCheckFunction = ""; + object.composeTrigger = null; + object.homepageTrigger = null; + } + if (message.contextualTriggers && message.contextualTriggers.length) { + object.contextualTriggers = []; + for (var j = 0; j < message.contextualTriggers.length; ++j) + object.contextualTriggers[j] = $root.google.apps.script.type.gmail.ContextualTrigger.toObject(message.contextualTriggers[j], options); + } + if (message.universalActions && message.universalActions.length) { + object.universalActions = []; + for (var j = 0; j < message.universalActions.length; ++j) + object.universalActions[j] = $root.google.apps.script.type.gmail.UniversalAction.toObject(message.universalActions[j], options); + } + if (message.authorizationCheckFunction != null && message.hasOwnProperty("authorizationCheckFunction")) + object.authorizationCheckFunction = message.authorizationCheckFunction; + if (message.composeTrigger != null && message.hasOwnProperty("composeTrigger")) + object.composeTrigger = $root.google.apps.script.type.gmail.ComposeTrigger.toObject(message.composeTrigger, options); + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) + object.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.toObject(message.homepageTrigger, options); + return object; + }; + + /** + * Converts this GmailAddOnManifest to JSON. + * @function toJSON + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @instance + * @returns {Object.} JSON object + */ + GmailAddOnManifest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GmailAddOnManifest + * @function getTypeUrl + * @memberof google.apps.script.type.gmail.GmailAddOnManifest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GmailAddOnManifest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.gmail.GmailAddOnManifest"; + }; + + return GmailAddOnManifest; + })(); + + gmail.UniversalAction = (function() { + + /** + * Properties of an UniversalAction. + * @memberof google.apps.script.type.gmail + * @interface IUniversalAction + * @property {string|null} [text] UniversalAction text + * @property {string|null} [openLink] UniversalAction openLink + * @property {string|null} [runFunction] UniversalAction runFunction + */ + + /** + * Constructs a new UniversalAction. + * @memberof google.apps.script.type.gmail + * @classdesc Represents an UniversalAction. + * @implements IUniversalAction + * @constructor + * @param {google.apps.script.type.gmail.IUniversalAction=} [properties] Properties to set + */ + function UniversalAction(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]]; + } + + /** + * UniversalAction text. + * @member {string} text + * @memberof google.apps.script.type.gmail.UniversalAction + * @instance + */ + UniversalAction.prototype.text = ""; + + /** + * UniversalAction openLink. + * @member {string|null|undefined} openLink + * @memberof google.apps.script.type.gmail.UniversalAction + * @instance + */ + UniversalAction.prototype.openLink = null; + + /** + * UniversalAction runFunction. + * @member {string|null|undefined} runFunction + * @memberof google.apps.script.type.gmail.UniversalAction + * @instance + */ + UniversalAction.prototype.runFunction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * UniversalAction actionType. + * @member {"openLink"|"runFunction"|undefined} actionType + * @memberof google.apps.script.type.gmail.UniversalAction + * @instance + */ + Object.defineProperty(UniversalAction.prototype, "actionType", { + get: $util.oneOfGetter($oneOfFields = ["openLink", "runFunction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UniversalAction instance using the specified properties. + * @function create + * @memberof google.apps.script.type.gmail.UniversalAction + * @static + * @param {google.apps.script.type.gmail.IUniversalAction=} [properties] Properties to set + * @returns {google.apps.script.type.gmail.UniversalAction} UniversalAction instance + */ + UniversalAction.create = function create(properties) { + return new UniversalAction(properties); + }; + + /** + * Encodes the specified UniversalAction message. Does not implicitly {@link google.apps.script.type.gmail.UniversalAction.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.gmail.UniversalAction + * @static + * @param {google.apps.script.type.gmail.IUniversalAction} message UniversalAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UniversalAction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.openLink != null && Object.hasOwnProperty.call(message, "openLink")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.openLink); + if (message.runFunction != null && Object.hasOwnProperty.call(message, "runFunction")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.runFunction); + return writer; + }; + + /** + * Encodes the specified UniversalAction message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.UniversalAction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.gmail.UniversalAction + * @static + * @param {google.apps.script.type.gmail.IUniversalAction} message UniversalAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UniversalAction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UniversalAction message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.gmail.UniversalAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.gmail.UniversalAction} UniversalAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UniversalAction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.gmail.UniversalAction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = reader.string(); + break; + } + case 2: { + message.openLink = reader.string(); + break; + } + case 3: { + message.runFunction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UniversalAction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.gmail.UniversalAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.gmail.UniversalAction} UniversalAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UniversalAction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UniversalAction message. + * @function verify + * @memberof google.apps.script.type.gmail.UniversalAction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UniversalAction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + if (message.openLink != null && message.hasOwnProperty("openLink")) { + properties.actionType = 1; + if (!$util.isString(message.openLink)) + return "openLink: string expected"; + } + if (message.runFunction != null && message.hasOwnProperty("runFunction")) { + if (properties.actionType === 1) + return "actionType: multiple values"; + properties.actionType = 1; + if (!$util.isString(message.runFunction)) + return "runFunction: string expected"; + } + return null; + }; + + /** + * Creates an UniversalAction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.gmail.UniversalAction + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.gmail.UniversalAction} UniversalAction + */ + UniversalAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.gmail.UniversalAction) + return object; + var message = new $root.google.apps.script.type.gmail.UniversalAction(); + if (object.text != null) + message.text = String(object.text); + if (object.openLink != null) + message.openLink = String(object.openLink); + if (object.runFunction != null) + message.runFunction = String(object.runFunction); + return message; + }; + + /** + * Creates a plain object from an UniversalAction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.gmail.UniversalAction + * @static + * @param {google.apps.script.type.gmail.UniversalAction} message UniversalAction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UniversalAction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + if (message.openLink != null && message.hasOwnProperty("openLink")) { + object.openLink = message.openLink; + if (options.oneofs) + object.actionType = "openLink"; + } + if (message.runFunction != null && message.hasOwnProperty("runFunction")) { + object.runFunction = message.runFunction; + if (options.oneofs) + object.actionType = "runFunction"; + } + return object; + }; + + /** + * Converts this UniversalAction to JSON. + * @function toJSON + * @memberof google.apps.script.type.gmail.UniversalAction + * @instance + * @returns {Object.} JSON object + */ + UniversalAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UniversalAction + * @function getTypeUrl + * @memberof google.apps.script.type.gmail.UniversalAction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UniversalAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.gmail.UniversalAction"; + }; + + return UniversalAction; + })(); + + gmail.ComposeTrigger = (function() { + + /** + * Properties of a ComposeTrigger. + * @memberof google.apps.script.type.gmail + * @interface IComposeTrigger + * @property {Array.|null} [actions] ComposeTrigger actions + * @property {google.apps.script.type.gmail.ComposeTrigger.DraftAccess|null} [draftAccess] ComposeTrigger draftAccess + */ + + /** + * Constructs a new ComposeTrigger. + * @memberof google.apps.script.type.gmail + * @classdesc Represents a ComposeTrigger. + * @implements IComposeTrigger + * @constructor + * @param {google.apps.script.type.gmail.IComposeTrigger=} [properties] Properties to set + */ + function ComposeTrigger(properties) { + this.actions = []; + 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]]; + } + + /** + * ComposeTrigger actions. + * @member {Array.} actions + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @instance + */ + ComposeTrigger.prototype.actions = $util.emptyArray; + + /** + * ComposeTrigger draftAccess. + * @member {google.apps.script.type.gmail.ComposeTrigger.DraftAccess} draftAccess + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @instance + */ + ComposeTrigger.prototype.draftAccess = 0; + + /** + * Creates a new ComposeTrigger instance using the specified properties. + * @function create + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @static + * @param {google.apps.script.type.gmail.IComposeTrigger=} [properties] Properties to set + * @returns {google.apps.script.type.gmail.ComposeTrigger} ComposeTrigger instance + */ + ComposeTrigger.create = function create(properties) { + return new ComposeTrigger(properties); + }; + + /** + * Encodes the specified ComposeTrigger message. Does not implicitly {@link google.apps.script.type.gmail.ComposeTrigger.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @static + * @param {google.apps.script.type.gmail.IComposeTrigger} message ComposeTrigger message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComposeTrigger.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.draftAccess != null && Object.hasOwnProperty.call(message, "draftAccess")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.draftAccess); + if (message.actions != null && message.actions.length) + for (var i = 0; i < message.actions.length; ++i) + $root.google.apps.script.type.MenuItemExtensionPoint.encode(message.actions[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ComposeTrigger message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.ComposeTrigger.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @static + * @param {google.apps.script.type.gmail.IComposeTrigger} message ComposeTrigger message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComposeTrigger.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ComposeTrigger message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.gmail.ComposeTrigger} ComposeTrigger + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComposeTrigger.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.gmail.ComposeTrigger(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: { + if (!(message.actions && message.actions.length)) + message.actions = []; + message.actions.push($root.google.apps.script.type.MenuItemExtensionPoint.decode(reader, reader.uint32())); + break; + } + case 4: { + message.draftAccess = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ComposeTrigger message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.gmail.ComposeTrigger} ComposeTrigger + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComposeTrigger.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ComposeTrigger message. + * @function verify + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComposeTrigger.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.actions != null && message.hasOwnProperty("actions")) { + if (!Array.isArray(message.actions)) + return "actions: array expected"; + for (var i = 0; i < message.actions.length; ++i) { + var error = $root.google.apps.script.type.MenuItemExtensionPoint.verify(message.actions[i]); + if (error) + return "actions." + error; + } + } + if (message.draftAccess != null && message.hasOwnProperty("draftAccess")) + switch (message.draftAccess) { + default: + return "draftAccess: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a ComposeTrigger message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.gmail.ComposeTrigger} ComposeTrigger + */ + ComposeTrigger.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.gmail.ComposeTrigger) + return object; + var message = new $root.google.apps.script.type.gmail.ComposeTrigger(); + if (object.actions) { + if (!Array.isArray(object.actions)) + throw TypeError(".google.apps.script.type.gmail.ComposeTrigger.actions: array expected"); + message.actions = []; + for (var i = 0; i < object.actions.length; ++i) { + if (typeof object.actions[i] !== "object") + throw TypeError(".google.apps.script.type.gmail.ComposeTrigger.actions: object expected"); + message.actions[i] = $root.google.apps.script.type.MenuItemExtensionPoint.fromObject(object.actions[i]); + } + } + switch (object.draftAccess) { + default: + if (typeof object.draftAccess === "number") { + message.draftAccess = object.draftAccess; + break; + } + break; + case "UNSPECIFIED": + case 0: + message.draftAccess = 0; + break; + case "NONE": + case 1: + message.draftAccess = 1; + break; + case "METADATA": + case 2: + message.draftAccess = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a ComposeTrigger message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @static + * @param {google.apps.script.type.gmail.ComposeTrigger} message ComposeTrigger + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ComposeTrigger.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.actions = []; + if (options.defaults) + object.draftAccess = options.enums === String ? "UNSPECIFIED" : 0; + if (message.draftAccess != null && message.hasOwnProperty("draftAccess")) + object.draftAccess = options.enums === String ? $root.google.apps.script.type.gmail.ComposeTrigger.DraftAccess[message.draftAccess] === undefined ? message.draftAccess : $root.google.apps.script.type.gmail.ComposeTrigger.DraftAccess[message.draftAccess] : message.draftAccess; + if (message.actions && message.actions.length) { + object.actions = []; + for (var j = 0; j < message.actions.length; ++j) + object.actions[j] = $root.google.apps.script.type.MenuItemExtensionPoint.toObject(message.actions[j], options); + } + return object; + }; + + /** + * Converts this ComposeTrigger to JSON. + * @function toJSON + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @instance + * @returns {Object.} JSON object + */ + ComposeTrigger.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ComposeTrigger + * @function getTypeUrl + * @memberof google.apps.script.type.gmail.ComposeTrigger + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComposeTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.gmail.ComposeTrigger"; + }; + + /** + * DraftAccess enum. + * @name google.apps.script.type.gmail.ComposeTrigger.DraftAccess + * @enum {number} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} NONE=1 NONE value + * @property {number} METADATA=2 METADATA value + */ + ComposeTrigger.DraftAccess = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "NONE"] = 1; + values[valuesById[2] = "METADATA"] = 2; + return values; + })(); + + return ComposeTrigger; + })(); + + gmail.ContextualTrigger = (function() { + + /** + * Properties of a ContextualTrigger. + * @memberof google.apps.script.type.gmail + * @interface IContextualTrigger + * @property {google.apps.script.type.gmail.IUnconditionalTrigger|null} [unconditional] ContextualTrigger unconditional + * @property {string|null} [onTriggerFunction] ContextualTrigger onTriggerFunction + */ + + /** + * Constructs a new ContextualTrigger. + * @memberof google.apps.script.type.gmail + * @classdesc Represents a ContextualTrigger. + * @implements IContextualTrigger + * @constructor + * @param {google.apps.script.type.gmail.IContextualTrigger=} [properties] Properties to set + */ + function ContextualTrigger(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]]; + } + + /** + * ContextualTrigger unconditional. + * @member {google.apps.script.type.gmail.IUnconditionalTrigger|null|undefined} unconditional + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @instance + */ + ContextualTrigger.prototype.unconditional = null; + + /** + * ContextualTrigger onTriggerFunction. + * @member {string} onTriggerFunction + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @instance + */ + ContextualTrigger.prototype.onTriggerFunction = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ContextualTrigger trigger. + * @member {"unconditional"|undefined} trigger + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @instance + */ + Object.defineProperty(ContextualTrigger.prototype, "trigger", { + get: $util.oneOfGetter($oneOfFields = ["unconditional"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ContextualTrigger instance using the specified properties. + * @function create + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @static + * @param {google.apps.script.type.gmail.IContextualTrigger=} [properties] Properties to set + * @returns {google.apps.script.type.gmail.ContextualTrigger} ContextualTrigger instance + */ + ContextualTrigger.create = function create(properties) { + return new ContextualTrigger(properties); + }; + + /** + * Encodes the specified ContextualTrigger message. Does not implicitly {@link google.apps.script.type.gmail.ContextualTrigger.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @static + * @param {google.apps.script.type.gmail.IContextualTrigger} message ContextualTrigger message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContextualTrigger.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.unconditional != null && Object.hasOwnProperty.call(message, "unconditional")) + $root.google.apps.script.type.gmail.UnconditionalTrigger.encode(message.unconditional, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.onTriggerFunction != null && Object.hasOwnProperty.call(message, "onTriggerFunction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.onTriggerFunction); + return writer; + }; + + /** + * Encodes the specified ContextualTrigger message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.ContextualTrigger.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @static + * @param {google.apps.script.type.gmail.IContextualTrigger} message ContextualTrigger message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContextualTrigger.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ContextualTrigger message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.gmail.ContextualTrigger} ContextualTrigger + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContextualTrigger.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.gmail.ContextualTrigger(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.unconditional = $root.google.apps.script.type.gmail.UnconditionalTrigger.decode(reader, reader.uint32()); + break; + } + case 4: { + message.onTriggerFunction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ContextualTrigger message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.gmail.ContextualTrigger} ContextualTrigger + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContextualTrigger.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ContextualTrigger message. + * @function verify + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContextualTrigger.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.unconditional != null && message.hasOwnProperty("unconditional")) { + properties.trigger = 1; + { + var error = $root.google.apps.script.type.gmail.UnconditionalTrigger.verify(message.unconditional); + if (error) + return "unconditional." + error; + } + } + if (message.onTriggerFunction != null && message.hasOwnProperty("onTriggerFunction")) + if (!$util.isString(message.onTriggerFunction)) + return "onTriggerFunction: string expected"; + return null; + }; + + /** + * Creates a ContextualTrigger message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.gmail.ContextualTrigger} ContextualTrigger + */ + ContextualTrigger.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.gmail.ContextualTrigger) + return object; + var message = new $root.google.apps.script.type.gmail.ContextualTrigger(); + if (object.unconditional != null) { + if (typeof object.unconditional !== "object") + throw TypeError(".google.apps.script.type.gmail.ContextualTrigger.unconditional: object expected"); + message.unconditional = $root.google.apps.script.type.gmail.UnconditionalTrigger.fromObject(object.unconditional); + } + if (object.onTriggerFunction != null) + message.onTriggerFunction = String(object.onTriggerFunction); + return message; + }; + + /** + * Creates a plain object from a ContextualTrigger message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @static + * @param {google.apps.script.type.gmail.ContextualTrigger} message ContextualTrigger + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContextualTrigger.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.onTriggerFunction = ""; + if (message.unconditional != null && message.hasOwnProperty("unconditional")) { + object.unconditional = $root.google.apps.script.type.gmail.UnconditionalTrigger.toObject(message.unconditional, options); + if (options.oneofs) + object.trigger = "unconditional"; + } + if (message.onTriggerFunction != null && message.hasOwnProperty("onTriggerFunction")) + object.onTriggerFunction = message.onTriggerFunction; + return object; + }; + + /** + * Converts this ContextualTrigger to JSON. + * @function toJSON + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @instance + * @returns {Object.} JSON object + */ + ContextualTrigger.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ContextualTrigger + * @function getTypeUrl + * @memberof google.apps.script.type.gmail.ContextualTrigger + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContextualTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.gmail.ContextualTrigger"; + }; + + return ContextualTrigger; + })(); + + gmail.UnconditionalTrigger = (function() { + + /** + * Properties of an UnconditionalTrigger. + * @memberof google.apps.script.type.gmail + * @interface IUnconditionalTrigger + */ + + /** + * Constructs a new UnconditionalTrigger. + * @memberof google.apps.script.type.gmail + * @classdesc Represents an UnconditionalTrigger. + * @implements IUnconditionalTrigger + * @constructor + * @param {google.apps.script.type.gmail.IUnconditionalTrigger=} [properties] Properties to set + */ + function UnconditionalTrigger(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]]; + } + + /** + * Creates a new UnconditionalTrigger instance using the specified properties. + * @function create + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @static + * @param {google.apps.script.type.gmail.IUnconditionalTrigger=} [properties] Properties to set + * @returns {google.apps.script.type.gmail.UnconditionalTrigger} UnconditionalTrigger instance + */ + UnconditionalTrigger.create = function create(properties) { + return new UnconditionalTrigger(properties); + }; + + /** + * Encodes the specified UnconditionalTrigger message. Does not implicitly {@link google.apps.script.type.gmail.UnconditionalTrigger.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @static + * @param {google.apps.script.type.gmail.IUnconditionalTrigger} message UnconditionalTrigger message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UnconditionalTrigger.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified UnconditionalTrigger message, length delimited. Does not implicitly {@link google.apps.script.type.gmail.UnconditionalTrigger.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @static + * @param {google.apps.script.type.gmail.IUnconditionalTrigger} message UnconditionalTrigger message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UnconditionalTrigger.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UnconditionalTrigger message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.gmail.UnconditionalTrigger} UnconditionalTrigger + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UnconditionalTrigger.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.gmail.UnconditionalTrigger(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UnconditionalTrigger message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.gmail.UnconditionalTrigger} UnconditionalTrigger + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UnconditionalTrigger.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UnconditionalTrigger message. + * @function verify + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UnconditionalTrigger.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an UnconditionalTrigger message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.gmail.UnconditionalTrigger} UnconditionalTrigger + */ + UnconditionalTrigger.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.gmail.UnconditionalTrigger) + return object; + return new $root.google.apps.script.type.gmail.UnconditionalTrigger(); + }; + + /** + * Creates a plain object from an UnconditionalTrigger message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @static + * @param {google.apps.script.type.gmail.UnconditionalTrigger} message UnconditionalTrigger + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UnconditionalTrigger.toObject = function toObject() { + return {}; + }; + + /** + * Converts this UnconditionalTrigger to JSON. + * @function toJSON + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @instance + * @returns {Object.} JSON object + */ + UnconditionalTrigger.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UnconditionalTrigger + * @function getTypeUrl + * @memberof google.apps.script.type.gmail.UnconditionalTrigger + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UnconditionalTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.gmail.UnconditionalTrigger"; + }; + + return UnconditionalTrigger; + })(); + + return gmail; + })(); + + type.CommonAddOnManifest = (function() { + + /** + * Properties of a CommonAddOnManifest. + * @memberof google.apps.script.type + * @interface ICommonAddOnManifest + * @property {string|null} [name] CommonAddOnManifest name + * @property {string|null} [logoUrl] CommonAddOnManifest logoUrl + * @property {google.apps.script.type.ILayoutProperties|null} [layoutProperties] CommonAddOnManifest layoutProperties + * @property {google.apps.script.type.IAddOnWidgetSet|null} [addOnWidgetSet] CommonAddOnManifest addOnWidgetSet + * @property {boolean|null} [useLocaleFromApp] CommonAddOnManifest useLocaleFromApp + * @property {google.apps.script.type.IHomepageExtensionPoint|null} [homepageTrigger] CommonAddOnManifest homepageTrigger + * @property {Array.|null} [universalActions] CommonAddOnManifest universalActions + * @property {google.protobuf.IListValue|null} [openLinkUrlPrefixes] CommonAddOnManifest openLinkUrlPrefixes + */ + + /** + * Constructs a new CommonAddOnManifest. + * @memberof google.apps.script.type + * @classdesc Represents a CommonAddOnManifest. + * @implements ICommonAddOnManifest + * @constructor + * @param {google.apps.script.type.ICommonAddOnManifest=} [properties] Properties to set + */ + function CommonAddOnManifest(properties) { + this.universalActions = []; + 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]]; + } + + /** + * CommonAddOnManifest name. + * @member {string} name + * @memberof google.apps.script.type.CommonAddOnManifest + * @instance + */ + CommonAddOnManifest.prototype.name = ""; + + /** + * CommonAddOnManifest logoUrl. + * @member {string} logoUrl + * @memberof google.apps.script.type.CommonAddOnManifest + * @instance + */ + CommonAddOnManifest.prototype.logoUrl = ""; + + /** + * CommonAddOnManifest layoutProperties. + * @member {google.apps.script.type.ILayoutProperties|null|undefined} layoutProperties + * @memberof google.apps.script.type.CommonAddOnManifest + * @instance + */ + CommonAddOnManifest.prototype.layoutProperties = null; + + /** + * CommonAddOnManifest addOnWidgetSet. + * @member {google.apps.script.type.IAddOnWidgetSet|null|undefined} addOnWidgetSet + * @memberof google.apps.script.type.CommonAddOnManifest + * @instance + */ + CommonAddOnManifest.prototype.addOnWidgetSet = null; + + /** + * CommonAddOnManifest useLocaleFromApp. + * @member {boolean} useLocaleFromApp + * @memberof google.apps.script.type.CommonAddOnManifest + * @instance + */ + CommonAddOnManifest.prototype.useLocaleFromApp = false; + + /** + * CommonAddOnManifest homepageTrigger. + * @member {google.apps.script.type.IHomepageExtensionPoint|null|undefined} homepageTrigger + * @memberof google.apps.script.type.CommonAddOnManifest + * @instance + */ + CommonAddOnManifest.prototype.homepageTrigger = null; + + /** + * CommonAddOnManifest universalActions. + * @member {Array.} universalActions + * @memberof google.apps.script.type.CommonAddOnManifest + * @instance + */ + CommonAddOnManifest.prototype.universalActions = $util.emptyArray; + + /** + * CommonAddOnManifest openLinkUrlPrefixes. + * @member {google.protobuf.IListValue|null|undefined} openLinkUrlPrefixes + * @memberof google.apps.script.type.CommonAddOnManifest + * @instance + */ + CommonAddOnManifest.prototype.openLinkUrlPrefixes = null; + + /** + * Creates a new CommonAddOnManifest instance using the specified properties. + * @function create + * @memberof google.apps.script.type.CommonAddOnManifest + * @static + * @param {google.apps.script.type.ICommonAddOnManifest=} [properties] Properties to set + * @returns {google.apps.script.type.CommonAddOnManifest} CommonAddOnManifest instance + */ + CommonAddOnManifest.create = function create(properties) { + return new CommonAddOnManifest(properties); + }; + + /** + * Encodes the specified CommonAddOnManifest message. Does not implicitly {@link google.apps.script.type.CommonAddOnManifest.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.CommonAddOnManifest + * @static + * @param {google.apps.script.type.ICommonAddOnManifest} message CommonAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommonAddOnManifest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.logoUrl != null && Object.hasOwnProperty.call(message, "logoUrl")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.logoUrl); + if (message.layoutProperties != null && Object.hasOwnProperty.call(message, "layoutProperties")) + $root.google.apps.script.type.LayoutProperties.encode(message.layoutProperties, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.addOnWidgetSet != null && Object.hasOwnProperty.call(message, "addOnWidgetSet")) + $root.google.apps.script.type.AddOnWidgetSet.encode(message.addOnWidgetSet, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.useLocaleFromApp != null && Object.hasOwnProperty.call(message, "useLocaleFromApp")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useLocaleFromApp); + if (message.homepageTrigger != null && Object.hasOwnProperty.call(message, "homepageTrigger")) + $root.google.apps.script.type.HomepageExtensionPoint.encode(message.homepageTrigger, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.universalActions != null && message.universalActions.length) + for (var i = 0; i < message.universalActions.length; ++i) + $root.google.apps.script.type.UniversalActionExtensionPoint.encode(message.universalActions[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.openLinkUrlPrefixes != null && Object.hasOwnProperty.call(message, "openLinkUrlPrefixes")) + $root.google.protobuf.ListValue.encode(message.openLinkUrlPrefixes, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CommonAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.CommonAddOnManifest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.CommonAddOnManifest + * @static + * @param {google.apps.script.type.ICommonAddOnManifest} message CommonAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommonAddOnManifest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CommonAddOnManifest message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.CommonAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.CommonAddOnManifest} CommonAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommonAddOnManifest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.CommonAddOnManifest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.logoUrl = reader.string(); + break; + } + case 3: { + message.layoutProperties = $root.google.apps.script.type.LayoutProperties.decode(reader, reader.uint32()); + break; + } + case 4: { + message.addOnWidgetSet = $root.google.apps.script.type.AddOnWidgetSet.decode(reader, reader.uint32()); + break; + } + case 5: { + message.useLocaleFromApp = reader.bool(); + break; + } + case 6: { + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.decode(reader, reader.uint32()); + break; + } + case 7: { + if (!(message.universalActions && message.universalActions.length)) + message.universalActions = []; + message.universalActions.push($root.google.apps.script.type.UniversalActionExtensionPoint.decode(reader, reader.uint32())); + break; + } + case 8: { + message.openLinkUrlPrefixes = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CommonAddOnManifest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.CommonAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.CommonAddOnManifest} CommonAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommonAddOnManifest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CommonAddOnManifest message. + * @function verify + * @memberof google.apps.script.type.CommonAddOnManifest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CommonAddOnManifest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.logoUrl != null && message.hasOwnProperty("logoUrl")) + if (!$util.isString(message.logoUrl)) + return "logoUrl: string expected"; + if (message.layoutProperties != null && message.hasOwnProperty("layoutProperties")) { + var error = $root.google.apps.script.type.LayoutProperties.verify(message.layoutProperties); + if (error) + return "layoutProperties." + error; + } + if (message.addOnWidgetSet != null && message.hasOwnProperty("addOnWidgetSet")) { + var error = $root.google.apps.script.type.AddOnWidgetSet.verify(message.addOnWidgetSet); + if (error) + return "addOnWidgetSet." + error; + } + if (message.useLocaleFromApp != null && message.hasOwnProperty("useLocaleFromApp")) + if (typeof message.useLocaleFromApp !== "boolean") + return "useLocaleFromApp: boolean expected"; + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) { + var error = $root.google.apps.script.type.HomepageExtensionPoint.verify(message.homepageTrigger); + if (error) + return "homepageTrigger." + error; + } + if (message.universalActions != null && message.hasOwnProperty("universalActions")) { + if (!Array.isArray(message.universalActions)) + return "universalActions: array expected"; + for (var i = 0; i < message.universalActions.length; ++i) { + var error = $root.google.apps.script.type.UniversalActionExtensionPoint.verify(message.universalActions[i]); + if (error) + return "universalActions." + error; + } + } + if (message.openLinkUrlPrefixes != null && message.hasOwnProperty("openLinkUrlPrefixes")) { + var error = $root.google.protobuf.ListValue.verify(message.openLinkUrlPrefixes); + if (error) + return "openLinkUrlPrefixes." + error; + } + return null; + }; + + /** + * Creates a CommonAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.CommonAddOnManifest + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.CommonAddOnManifest} CommonAddOnManifest + */ + CommonAddOnManifest.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.CommonAddOnManifest) + return object; + var message = new $root.google.apps.script.type.CommonAddOnManifest(); + if (object.name != null) + message.name = String(object.name); + if (object.logoUrl != null) + message.logoUrl = String(object.logoUrl); + if (object.layoutProperties != null) { + if (typeof object.layoutProperties !== "object") + throw TypeError(".google.apps.script.type.CommonAddOnManifest.layoutProperties: object expected"); + message.layoutProperties = $root.google.apps.script.type.LayoutProperties.fromObject(object.layoutProperties); + } + if (object.addOnWidgetSet != null) { + if (typeof object.addOnWidgetSet !== "object") + throw TypeError(".google.apps.script.type.CommonAddOnManifest.addOnWidgetSet: object expected"); + message.addOnWidgetSet = $root.google.apps.script.type.AddOnWidgetSet.fromObject(object.addOnWidgetSet); + } + if (object.useLocaleFromApp != null) + message.useLocaleFromApp = Boolean(object.useLocaleFromApp); + if (object.homepageTrigger != null) { + if (typeof object.homepageTrigger !== "object") + throw TypeError(".google.apps.script.type.CommonAddOnManifest.homepageTrigger: object expected"); + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.fromObject(object.homepageTrigger); + } + if (object.universalActions) { + if (!Array.isArray(object.universalActions)) + throw TypeError(".google.apps.script.type.CommonAddOnManifest.universalActions: array expected"); + message.universalActions = []; + for (var i = 0; i < object.universalActions.length; ++i) { + if (typeof object.universalActions[i] !== "object") + throw TypeError(".google.apps.script.type.CommonAddOnManifest.universalActions: object expected"); + message.universalActions[i] = $root.google.apps.script.type.UniversalActionExtensionPoint.fromObject(object.universalActions[i]); + } + } + if (object.openLinkUrlPrefixes != null) { + if (typeof object.openLinkUrlPrefixes !== "object") + throw TypeError(".google.apps.script.type.CommonAddOnManifest.openLinkUrlPrefixes: object expected"); + message.openLinkUrlPrefixes = $root.google.protobuf.ListValue.fromObject(object.openLinkUrlPrefixes); + } + return message; + }; + + /** + * Creates a plain object from a CommonAddOnManifest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.CommonAddOnManifest + * @static + * @param {google.apps.script.type.CommonAddOnManifest} message CommonAddOnManifest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CommonAddOnManifest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.universalActions = []; + if (options.defaults) { + object.name = ""; + object.logoUrl = ""; + object.layoutProperties = null; + object.addOnWidgetSet = null; + object.useLocaleFromApp = false; + object.homepageTrigger = null; + object.openLinkUrlPrefixes = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.logoUrl != null && message.hasOwnProperty("logoUrl")) + object.logoUrl = message.logoUrl; + if (message.layoutProperties != null && message.hasOwnProperty("layoutProperties")) + object.layoutProperties = $root.google.apps.script.type.LayoutProperties.toObject(message.layoutProperties, options); + if (message.addOnWidgetSet != null && message.hasOwnProperty("addOnWidgetSet")) + object.addOnWidgetSet = $root.google.apps.script.type.AddOnWidgetSet.toObject(message.addOnWidgetSet, options); + if (message.useLocaleFromApp != null && message.hasOwnProperty("useLocaleFromApp")) + object.useLocaleFromApp = message.useLocaleFromApp; + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) + object.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.toObject(message.homepageTrigger, options); + if (message.universalActions && message.universalActions.length) { + object.universalActions = []; + for (var j = 0; j < message.universalActions.length; ++j) + object.universalActions[j] = $root.google.apps.script.type.UniversalActionExtensionPoint.toObject(message.universalActions[j], options); + } + if (message.openLinkUrlPrefixes != null && message.hasOwnProperty("openLinkUrlPrefixes")) + object.openLinkUrlPrefixes = $root.google.protobuf.ListValue.toObject(message.openLinkUrlPrefixes, options); + return object; + }; + + /** + * Converts this CommonAddOnManifest to JSON. + * @function toJSON + * @memberof google.apps.script.type.CommonAddOnManifest + * @instance + * @returns {Object.} JSON object + */ + CommonAddOnManifest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CommonAddOnManifest + * @function getTypeUrl + * @memberof google.apps.script.type.CommonAddOnManifest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CommonAddOnManifest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.CommonAddOnManifest"; + }; + + return CommonAddOnManifest; + })(); + + type.LayoutProperties = (function() { + + /** + * Properties of a LayoutProperties. + * @memberof google.apps.script.type + * @interface ILayoutProperties + * @property {string|null} [primaryColor] LayoutProperties primaryColor + * @property {string|null} [secondaryColor] LayoutProperties secondaryColor + */ + + /** + * Constructs a new LayoutProperties. + * @memberof google.apps.script.type + * @classdesc Represents a LayoutProperties. + * @implements ILayoutProperties + * @constructor + * @param {google.apps.script.type.ILayoutProperties=} [properties] Properties to set + */ + function LayoutProperties(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]]; + } + + /** + * LayoutProperties primaryColor. + * @member {string} primaryColor + * @memberof google.apps.script.type.LayoutProperties + * @instance + */ + LayoutProperties.prototype.primaryColor = ""; + + /** + * LayoutProperties secondaryColor. + * @member {string} secondaryColor + * @memberof google.apps.script.type.LayoutProperties + * @instance + */ + LayoutProperties.prototype.secondaryColor = ""; + + /** + * Creates a new LayoutProperties instance using the specified properties. + * @function create + * @memberof google.apps.script.type.LayoutProperties + * @static + * @param {google.apps.script.type.ILayoutProperties=} [properties] Properties to set + * @returns {google.apps.script.type.LayoutProperties} LayoutProperties instance + */ + LayoutProperties.create = function create(properties) { + return new LayoutProperties(properties); + }; + + /** + * Encodes the specified LayoutProperties message. Does not implicitly {@link google.apps.script.type.LayoutProperties.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.LayoutProperties + * @static + * @param {google.apps.script.type.ILayoutProperties} message LayoutProperties message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LayoutProperties.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primaryColor != null && Object.hasOwnProperty.call(message, "primaryColor")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.primaryColor); + if (message.secondaryColor != null && Object.hasOwnProperty.call(message, "secondaryColor")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.secondaryColor); + return writer; + }; + + /** + * Encodes the specified LayoutProperties message, length delimited. Does not implicitly {@link google.apps.script.type.LayoutProperties.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.LayoutProperties + * @static + * @param {google.apps.script.type.ILayoutProperties} message LayoutProperties message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LayoutProperties.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LayoutProperties message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.LayoutProperties + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.LayoutProperties} LayoutProperties + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LayoutProperties.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.LayoutProperties(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.primaryColor = reader.string(); + break; + } + case 2: { + message.secondaryColor = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LayoutProperties message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.LayoutProperties + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.LayoutProperties} LayoutProperties + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LayoutProperties.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LayoutProperties message. + * @function verify + * @memberof google.apps.script.type.LayoutProperties + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LayoutProperties.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.primaryColor != null && message.hasOwnProperty("primaryColor")) + if (!$util.isString(message.primaryColor)) + return "primaryColor: string expected"; + if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor")) + if (!$util.isString(message.secondaryColor)) + return "secondaryColor: string expected"; + return null; + }; + + /** + * Creates a LayoutProperties message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.LayoutProperties + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.LayoutProperties} LayoutProperties + */ + LayoutProperties.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.LayoutProperties) + return object; + var message = new $root.google.apps.script.type.LayoutProperties(); + if (object.primaryColor != null) + message.primaryColor = String(object.primaryColor); + if (object.secondaryColor != null) + message.secondaryColor = String(object.secondaryColor); + return message; + }; + + /** + * Creates a plain object from a LayoutProperties message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.LayoutProperties + * @static + * @param {google.apps.script.type.LayoutProperties} message LayoutProperties + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LayoutProperties.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.primaryColor = ""; + object.secondaryColor = ""; + } + if (message.primaryColor != null && message.hasOwnProperty("primaryColor")) + object.primaryColor = message.primaryColor; + if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor")) + object.secondaryColor = message.secondaryColor; + return object; + }; + + /** + * Converts this LayoutProperties to JSON. + * @function toJSON + * @memberof google.apps.script.type.LayoutProperties + * @instance + * @returns {Object.} JSON object + */ + LayoutProperties.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LayoutProperties + * @function getTypeUrl + * @memberof google.apps.script.type.LayoutProperties + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LayoutProperties.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.LayoutProperties"; + }; + + return LayoutProperties; + })(); + + type.HttpOptions = (function() { + + /** + * Properties of a HttpOptions. + * @memberof google.apps.script.type + * @interface IHttpOptions + * @property {google.apps.script.type.HttpAuthorizationHeader|null} [authorizationHeader] HttpOptions authorizationHeader + */ + + /** + * Constructs a new HttpOptions. + * @memberof google.apps.script.type + * @classdesc Represents a HttpOptions. + * @implements IHttpOptions + * @constructor + * @param {google.apps.script.type.IHttpOptions=} [properties] Properties to set + */ + function HttpOptions(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]]; + } + + /** + * HttpOptions authorizationHeader. + * @member {google.apps.script.type.HttpAuthorizationHeader} authorizationHeader + * @memberof google.apps.script.type.HttpOptions + * @instance + */ + HttpOptions.prototype.authorizationHeader = 0; + + /** + * Creates a new HttpOptions instance using the specified properties. + * @function create + * @memberof google.apps.script.type.HttpOptions + * @static + * @param {google.apps.script.type.IHttpOptions=} [properties] Properties to set + * @returns {google.apps.script.type.HttpOptions} HttpOptions instance + */ + HttpOptions.create = function create(properties) { + return new HttpOptions(properties); + }; + + /** + * Encodes the specified HttpOptions message. Does not implicitly {@link google.apps.script.type.HttpOptions.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.HttpOptions + * @static + * @param {google.apps.script.type.IHttpOptions} message HttpOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.authorizationHeader != null && Object.hasOwnProperty.call(message, "authorizationHeader")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.authorizationHeader); + return writer; + }; + + /** + * Encodes the specified HttpOptions message, length delimited. Does not implicitly {@link google.apps.script.type.HttpOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.HttpOptions + * @static + * @param {google.apps.script.type.IHttpOptions} message HttpOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpOptions message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.HttpOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.HttpOptions} HttpOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.HttpOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.authorizationHeader = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.HttpOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.HttpOptions} HttpOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpOptions message. + * @function verify + * @memberof google.apps.script.type.HttpOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.authorizationHeader != null && message.hasOwnProperty("authorizationHeader")) + switch (message.authorizationHeader) { + default: + return "authorizationHeader: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Creates a HttpOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.HttpOptions + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.HttpOptions} HttpOptions + */ + HttpOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.HttpOptions) + return object; + var message = new $root.google.apps.script.type.HttpOptions(); + switch (object.authorizationHeader) { + default: + if (typeof object.authorizationHeader === "number") { + message.authorizationHeader = object.authorizationHeader; + break; + } + break; + case "HTTP_AUTHORIZATION_HEADER_UNSPECIFIED": + case 0: + message.authorizationHeader = 0; + break; + case "SYSTEM_ID_TOKEN": + case 1: + message.authorizationHeader = 1; + break; + case "USER_ID_TOKEN": + case 2: + message.authorizationHeader = 2; + break; + case "NONE": + case 3: + message.authorizationHeader = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a HttpOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.HttpOptions + * @static + * @param {google.apps.script.type.HttpOptions} message HttpOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.authorizationHeader = options.enums === String ? "HTTP_AUTHORIZATION_HEADER_UNSPECIFIED" : 0; + if (message.authorizationHeader != null && message.hasOwnProperty("authorizationHeader")) + object.authorizationHeader = options.enums === String ? $root.google.apps.script.type.HttpAuthorizationHeader[message.authorizationHeader] === undefined ? message.authorizationHeader : $root.google.apps.script.type.HttpAuthorizationHeader[message.authorizationHeader] : message.authorizationHeader; + return object; + }; + + /** + * Converts this HttpOptions to JSON. + * @function toJSON + * @memberof google.apps.script.type.HttpOptions + * @instance + * @returns {Object.} JSON object + */ + HttpOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HttpOptions + * @function getTypeUrl + * @memberof google.apps.script.type.HttpOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.HttpOptions"; + }; + + return HttpOptions; + })(); + + /** + * HttpAuthorizationHeader enum. + * @name google.apps.script.type.HttpAuthorizationHeader + * @enum {number} + * @property {number} HTTP_AUTHORIZATION_HEADER_UNSPECIFIED=0 HTTP_AUTHORIZATION_HEADER_UNSPECIFIED value + * @property {number} SYSTEM_ID_TOKEN=1 SYSTEM_ID_TOKEN value + * @property {number} USER_ID_TOKEN=2 USER_ID_TOKEN value + * @property {number} NONE=3 NONE value + */ + type.HttpAuthorizationHeader = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HTTP_AUTHORIZATION_HEADER_UNSPECIFIED"] = 0; + values[valuesById[1] = "SYSTEM_ID_TOKEN"] = 1; + values[valuesById[2] = "USER_ID_TOKEN"] = 2; + values[valuesById[3] = "NONE"] = 3; + return values; + })(); + + type.sheets = (function() { + + /** + * Namespace sheets. + * @memberof google.apps.script.type + * @namespace + */ + var sheets = {}; + + sheets.SheetsAddOnManifest = (function() { + + /** + * Properties of a SheetsAddOnManifest. + * @memberof google.apps.script.type.sheets + * @interface ISheetsAddOnManifest + * @property {google.apps.script.type.IHomepageExtensionPoint|null} [homepageTrigger] SheetsAddOnManifest homepageTrigger + * @property {google.apps.script.type.sheets.ISheetsExtensionPoint|null} [onFileScopeGrantedTrigger] SheetsAddOnManifest onFileScopeGrantedTrigger + */ + + /** + * Constructs a new SheetsAddOnManifest. + * @memberof google.apps.script.type.sheets + * @classdesc Represents a SheetsAddOnManifest. + * @implements ISheetsAddOnManifest + * @constructor + * @param {google.apps.script.type.sheets.ISheetsAddOnManifest=} [properties] Properties to set + */ + function SheetsAddOnManifest(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]]; + } + + /** + * SheetsAddOnManifest homepageTrigger. + * @member {google.apps.script.type.IHomepageExtensionPoint|null|undefined} homepageTrigger + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @instance + */ + SheetsAddOnManifest.prototype.homepageTrigger = null; + + /** + * SheetsAddOnManifest onFileScopeGrantedTrigger. + * @member {google.apps.script.type.sheets.ISheetsExtensionPoint|null|undefined} onFileScopeGrantedTrigger + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @instance + */ + SheetsAddOnManifest.prototype.onFileScopeGrantedTrigger = null; + + /** + * Creates a new SheetsAddOnManifest instance using the specified properties. + * @function create + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @static + * @param {google.apps.script.type.sheets.ISheetsAddOnManifest=} [properties] Properties to set + * @returns {google.apps.script.type.sheets.SheetsAddOnManifest} SheetsAddOnManifest instance + */ + SheetsAddOnManifest.create = function create(properties) { + return new SheetsAddOnManifest(properties); + }; + + /** + * Encodes the specified SheetsAddOnManifest message. Does not implicitly {@link google.apps.script.type.sheets.SheetsAddOnManifest.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @static + * @param {google.apps.script.type.sheets.ISheetsAddOnManifest} message SheetsAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SheetsAddOnManifest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.homepageTrigger != null && Object.hasOwnProperty.call(message, "homepageTrigger")) + $root.google.apps.script.type.HomepageExtensionPoint.encode(message.homepageTrigger, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.onFileScopeGrantedTrigger != null && Object.hasOwnProperty.call(message, "onFileScopeGrantedTrigger")) + $root.google.apps.script.type.sheets.SheetsExtensionPoint.encode(message.onFileScopeGrantedTrigger, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SheetsAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.sheets.SheetsAddOnManifest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @static + * @param {google.apps.script.type.sheets.ISheetsAddOnManifest} message SheetsAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SheetsAddOnManifest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SheetsAddOnManifest message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.sheets.SheetsAddOnManifest} SheetsAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SheetsAddOnManifest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.sheets.SheetsAddOnManifest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.decode(reader, reader.uint32()); + break; + } + case 5: { + message.onFileScopeGrantedTrigger = $root.google.apps.script.type.sheets.SheetsExtensionPoint.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SheetsAddOnManifest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.sheets.SheetsAddOnManifest} SheetsAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SheetsAddOnManifest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SheetsAddOnManifest message. + * @function verify + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SheetsAddOnManifest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) { + var error = $root.google.apps.script.type.HomepageExtensionPoint.verify(message.homepageTrigger); + if (error) + return "homepageTrigger." + error; + } + if (message.onFileScopeGrantedTrigger != null && message.hasOwnProperty("onFileScopeGrantedTrigger")) { + var error = $root.google.apps.script.type.sheets.SheetsExtensionPoint.verify(message.onFileScopeGrantedTrigger); + if (error) + return "onFileScopeGrantedTrigger." + error; + } + return null; + }; + + /** + * Creates a SheetsAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.sheets.SheetsAddOnManifest} SheetsAddOnManifest + */ + SheetsAddOnManifest.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.sheets.SheetsAddOnManifest) + return object; + var message = new $root.google.apps.script.type.sheets.SheetsAddOnManifest(); + if (object.homepageTrigger != null) { + if (typeof object.homepageTrigger !== "object") + throw TypeError(".google.apps.script.type.sheets.SheetsAddOnManifest.homepageTrigger: object expected"); + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.fromObject(object.homepageTrigger); + } + if (object.onFileScopeGrantedTrigger != null) { + if (typeof object.onFileScopeGrantedTrigger !== "object") + throw TypeError(".google.apps.script.type.sheets.SheetsAddOnManifest.onFileScopeGrantedTrigger: object expected"); + message.onFileScopeGrantedTrigger = $root.google.apps.script.type.sheets.SheetsExtensionPoint.fromObject(object.onFileScopeGrantedTrigger); + } + return message; + }; + + /** + * Creates a plain object from a SheetsAddOnManifest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @static + * @param {google.apps.script.type.sheets.SheetsAddOnManifest} message SheetsAddOnManifest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SheetsAddOnManifest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.homepageTrigger = null; + object.onFileScopeGrantedTrigger = null; + } + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) + object.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.toObject(message.homepageTrigger, options); + if (message.onFileScopeGrantedTrigger != null && message.hasOwnProperty("onFileScopeGrantedTrigger")) + object.onFileScopeGrantedTrigger = $root.google.apps.script.type.sheets.SheetsExtensionPoint.toObject(message.onFileScopeGrantedTrigger, options); + return object; + }; + + /** + * Converts this SheetsAddOnManifest to JSON. + * @function toJSON + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @instance + * @returns {Object.} JSON object + */ + SheetsAddOnManifest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SheetsAddOnManifest + * @function getTypeUrl + * @memberof google.apps.script.type.sheets.SheetsAddOnManifest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SheetsAddOnManifest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.sheets.SheetsAddOnManifest"; + }; + + return SheetsAddOnManifest; + })(); + + sheets.SheetsExtensionPoint = (function() { + + /** + * Properties of a SheetsExtensionPoint. + * @memberof google.apps.script.type.sheets + * @interface ISheetsExtensionPoint + * @property {string|null} [runFunction] SheetsExtensionPoint runFunction + */ + + /** + * Constructs a new SheetsExtensionPoint. + * @memberof google.apps.script.type.sheets + * @classdesc Represents a SheetsExtensionPoint. + * @implements ISheetsExtensionPoint + * @constructor + * @param {google.apps.script.type.sheets.ISheetsExtensionPoint=} [properties] Properties to set + */ + function SheetsExtensionPoint(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]]; + } + + /** + * SheetsExtensionPoint runFunction. + * @member {string} runFunction + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @instance + */ + SheetsExtensionPoint.prototype.runFunction = ""; + + /** + * Creates a new SheetsExtensionPoint instance using the specified properties. + * @function create + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @static + * @param {google.apps.script.type.sheets.ISheetsExtensionPoint=} [properties] Properties to set + * @returns {google.apps.script.type.sheets.SheetsExtensionPoint} SheetsExtensionPoint instance + */ + SheetsExtensionPoint.create = function create(properties) { + return new SheetsExtensionPoint(properties); + }; + + /** + * Encodes the specified SheetsExtensionPoint message. Does not implicitly {@link google.apps.script.type.sheets.SheetsExtensionPoint.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @static + * @param {google.apps.script.type.sheets.ISheetsExtensionPoint} message SheetsExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SheetsExtensionPoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runFunction != null && Object.hasOwnProperty.call(message, "runFunction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.runFunction); + return writer; + }; + + /** + * Encodes the specified SheetsExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.sheets.SheetsExtensionPoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @static + * @param {google.apps.script.type.sheets.ISheetsExtensionPoint} message SheetsExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SheetsExtensionPoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SheetsExtensionPoint message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.sheets.SheetsExtensionPoint} SheetsExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SheetsExtensionPoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.sheets.SheetsExtensionPoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.runFunction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SheetsExtensionPoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.sheets.SheetsExtensionPoint} SheetsExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SheetsExtensionPoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SheetsExtensionPoint message. + * @function verify + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SheetsExtensionPoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + if (!$util.isString(message.runFunction)) + return "runFunction: string expected"; + return null; + }; + + /** + * Creates a SheetsExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.sheets.SheetsExtensionPoint} SheetsExtensionPoint + */ + SheetsExtensionPoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.sheets.SheetsExtensionPoint) + return object; + var message = new $root.google.apps.script.type.sheets.SheetsExtensionPoint(); + if (object.runFunction != null) + message.runFunction = String(object.runFunction); + return message; + }; + + /** + * Creates a plain object from a SheetsExtensionPoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @static + * @param {google.apps.script.type.sheets.SheetsExtensionPoint} message SheetsExtensionPoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SheetsExtensionPoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.runFunction = ""; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + object.runFunction = message.runFunction; + return object; + }; + + /** + * Converts this SheetsExtensionPoint to JSON. + * @function toJSON + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @instance + * @returns {Object.} JSON object + */ + SheetsExtensionPoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SheetsExtensionPoint + * @function getTypeUrl + * @memberof google.apps.script.type.sheets.SheetsExtensionPoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SheetsExtensionPoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.sheets.SheetsExtensionPoint"; + }; + + return SheetsExtensionPoint; + })(); + + return sheets; + })(); + + type.slides = (function() { + + /** + * Namespace slides. + * @memberof google.apps.script.type + * @namespace + */ + var slides = {}; + + slides.SlidesAddOnManifest = (function() { + + /** + * Properties of a SlidesAddOnManifest. + * @memberof google.apps.script.type.slides + * @interface ISlidesAddOnManifest + * @property {google.apps.script.type.IHomepageExtensionPoint|null} [homepageTrigger] SlidesAddOnManifest homepageTrigger + * @property {google.apps.script.type.slides.ISlidesExtensionPoint|null} [onFileScopeGrantedTrigger] SlidesAddOnManifest onFileScopeGrantedTrigger + */ + + /** + * Constructs a new SlidesAddOnManifest. + * @memberof google.apps.script.type.slides + * @classdesc Represents a SlidesAddOnManifest. + * @implements ISlidesAddOnManifest + * @constructor + * @param {google.apps.script.type.slides.ISlidesAddOnManifest=} [properties] Properties to set + */ + function SlidesAddOnManifest(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]]; + } + + /** + * SlidesAddOnManifest homepageTrigger. + * @member {google.apps.script.type.IHomepageExtensionPoint|null|undefined} homepageTrigger + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @instance + */ + SlidesAddOnManifest.prototype.homepageTrigger = null; + + /** + * SlidesAddOnManifest onFileScopeGrantedTrigger. + * @member {google.apps.script.type.slides.ISlidesExtensionPoint|null|undefined} onFileScopeGrantedTrigger + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @instance + */ + SlidesAddOnManifest.prototype.onFileScopeGrantedTrigger = null; + + /** + * Creates a new SlidesAddOnManifest instance using the specified properties. + * @function create + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @static + * @param {google.apps.script.type.slides.ISlidesAddOnManifest=} [properties] Properties to set + * @returns {google.apps.script.type.slides.SlidesAddOnManifest} SlidesAddOnManifest instance + */ + SlidesAddOnManifest.create = function create(properties) { + return new SlidesAddOnManifest(properties); + }; + + /** + * Encodes the specified SlidesAddOnManifest message. Does not implicitly {@link google.apps.script.type.slides.SlidesAddOnManifest.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @static + * @param {google.apps.script.type.slides.ISlidesAddOnManifest} message SlidesAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SlidesAddOnManifest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.homepageTrigger != null && Object.hasOwnProperty.call(message, "homepageTrigger")) + $root.google.apps.script.type.HomepageExtensionPoint.encode(message.homepageTrigger, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.onFileScopeGrantedTrigger != null && Object.hasOwnProperty.call(message, "onFileScopeGrantedTrigger")) + $root.google.apps.script.type.slides.SlidesExtensionPoint.encode(message.onFileScopeGrantedTrigger, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SlidesAddOnManifest message, length delimited. Does not implicitly {@link google.apps.script.type.slides.SlidesAddOnManifest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @static + * @param {google.apps.script.type.slides.ISlidesAddOnManifest} message SlidesAddOnManifest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SlidesAddOnManifest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SlidesAddOnManifest message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.slides.SlidesAddOnManifest} SlidesAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SlidesAddOnManifest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.slides.SlidesAddOnManifest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.decode(reader, reader.uint32()); + break; + } + case 2: { + message.onFileScopeGrantedTrigger = $root.google.apps.script.type.slides.SlidesExtensionPoint.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SlidesAddOnManifest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.slides.SlidesAddOnManifest} SlidesAddOnManifest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SlidesAddOnManifest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SlidesAddOnManifest message. + * @function verify + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SlidesAddOnManifest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) { + var error = $root.google.apps.script.type.HomepageExtensionPoint.verify(message.homepageTrigger); + if (error) + return "homepageTrigger." + error; + } + if (message.onFileScopeGrantedTrigger != null && message.hasOwnProperty("onFileScopeGrantedTrigger")) { + var error = $root.google.apps.script.type.slides.SlidesExtensionPoint.verify(message.onFileScopeGrantedTrigger); + if (error) + return "onFileScopeGrantedTrigger." + error; + } + return null; + }; + + /** + * Creates a SlidesAddOnManifest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.slides.SlidesAddOnManifest} SlidesAddOnManifest + */ + SlidesAddOnManifest.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.slides.SlidesAddOnManifest) + return object; + var message = new $root.google.apps.script.type.slides.SlidesAddOnManifest(); + if (object.homepageTrigger != null) { + if (typeof object.homepageTrigger !== "object") + throw TypeError(".google.apps.script.type.slides.SlidesAddOnManifest.homepageTrigger: object expected"); + message.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.fromObject(object.homepageTrigger); + } + if (object.onFileScopeGrantedTrigger != null) { + if (typeof object.onFileScopeGrantedTrigger !== "object") + throw TypeError(".google.apps.script.type.slides.SlidesAddOnManifest.onFileScopeGrantedTrigger: object expected"); + message.onFileScopeGrantedTrigger = $root.google.apps.script.type.slides.SlidesExtensionPoint.fromObject(object.onFileScopeGrantedTrigger); + } + return message; + }; + + /** + * Creates a plain object from a SlidesAddOnManifest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @static + * @param {google.apps.script.type.slides.SlidesAddOnManifest} message SlidesAddOnManifest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SlidesAddOnManifest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.homepageTrigger = null; + object.onFileScopeGrantedTrigger = null; + } + if (message.homepageTrigger != null && message.hasOwnProperty("homepageTrigger")) + object.homepageTrigger = $root.google.apps.script.type.HomepageExtensionPoint.toObject(message.homepageTrigger, options); + if (message.onFileScopeGrantedTrigger != null && message.hasOwnProperty("onFileScopeGrantedTrigger")) + object.onFileScopeGrantedTrigger = $root.google.apps.script.type.slides.SlidesExtensionPoint.toObject(message.onFileScopeGrantedTrigger, options); + return object; + }; + + /** + * Converts this SlidesAddOnManifest to JSON. + * @function toJSON + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @instance + * @returns {Object.} JSON object + */ + SlidesAddOnManifest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SlidesAddOnManifest + * @function getTypeUrl + * @memberof google.apps.script.type.slides.SlidesAddOnManifest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlidesAddOnManifest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.slides.SlidesAddOnManifest"; + }; + + return SlidesAddOnManifest; + })(); + + slides.SlidesExtensionPoint = (function() { + + /** + * Properties of a SlidesExtensionPoint. + * @memberof google.apps.script.type.slides + * @interface ISlidesExtensionPoint + * @property {string|null} [runFunction] SlidesExtensionPoint runFunction + */ + + /** + * Constructs a new SlidesExtensionPoint. + * @memberof google.apps.script.type.slides + * @classdesc Represents a SlidesExtensionPoint. + * @implements ISlidesExtensionPoint + * @constructor + * @param {google.apps.script.type.slides.ISlidesExtensionPoint=} [properties] Properties to set + */ + function SlidesExtensionPoint(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]]; + } + + /** + * SlidesExtensionPoint runFunction. + * @member {string} runFunction + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @instance + */ + SlidesExtensionPoint.prototype.runFunction = ""; + + /** + * Creates a new SlidesExtensionPoint instance using the specified properties. + * @function create + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @static + * @param {google.apps.script.type.slides.ISlidesExtensionPoint=} [properties] Properties to set + * @returns {google.apps.script.type.slides.SlidesExtensionPoint} SlidesExtensionPoint instance + */ + SlidesExtensionPoint.create = function create(properties) { + return new SlidesExtensionPoint(properties); + }; + + /** + * Encodes the specified SlidesExtensionPoint message. Does not implicitly {@link google.apps.script.type.slides.SlidesExtensionPoint.verify|verify} messages. + * @function encode + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @static + * @param {google.apps.script.type.slides.ISlidesExtensionPoint} message SlidesExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SlidesExtensionPoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runFunction != null && Object.hasOwnProperty.call(message, "runFunction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.runFunction); + return writer; + }; + + /** + * Encodes the specified SlidesExtensionPoint message, length delimited. Does not implicitly {@link google.apps.script.type.slides.SlidesExtensionPoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @static + * @param {google.apps.script.type.slides.ISlidesExtensionPoint} message SlidesExtensionPoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SlidesExtensionPoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SlidesExtensionPoint message from the specified reader or buffer. + * @function decode + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.apps.script.type.slides.SlidesExtensionPoint} SlidesExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SlidesExtensionPoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.apps.script.type.slides.SlidesExtensionPoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.runFunction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SlidesExtensionPoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.apps.script.type.slides.SlidesExtensionPoint} SlidesExtensionPoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SlidesExtensionPoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SlidesExtensionPoint message. + * @function verify + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SlidesExtensionPoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + if (!$util.isString(message.runFunction)) + return "runFunction: string expected"; + return null; + }; + + /** + * Creates a SlidesExtensionPoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @static + * @param {Object.} object Plain object + * @returns {google.apps.script.type.slides.SlidesExtensionPoint} SlidesExtensionPoint + */ + SlidesExtensionPoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.apps.script.type.slides.SlidesExtensionPoint) + return object; + var message = new $root.google.apps.script.type.slides.SlidesExtensionPoint(); + if (object.runFunction != null) + message.runFunction = String(object.runFunction); + return message; + }; + + /** + * Creates a plain object from a SlidesExtensionPoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @static + * @param {google.apps.script.type.slides.SlidesExtensionPoint} message SlidesExtensionPoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SlidesExtensionPoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.runFunction = ""; + if (message.runFunction != null && message.hasOwnProperty("runFunction")) + object.runFunction = message.runFunction; + return object; + }; + + /** + * Converts this SlidesExtensionPoint to JSON. + * @function toJSON + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @instance + * @returns {Object.} JSON object + */ + SlidesExtensionPoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SlidesExtensionPoint + * @function getTypeUrl + * @memberof google.apps.script.type.slides.SlidesExtensionPoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlidesExtensionPoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.apps.script.type.slides.SlidesExtensionPoint"; + }; + + return SlidesExtensionPoint; + })(); + + return slides; + })(); + + return type; + })(); + + return script; + })(); + + return apps; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + return values; + })(); + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + 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]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + 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]]; + } + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; + + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; + + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; + + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; + + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; + + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HttpRule + * @function getTypeUrl + * @memberof google.api.HttpRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.HttpRule"; + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(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]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; + + return CustomHttpPattern; + })(); + + api.ResourceDescriptor = (function() { + + /** + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + * @property {Array.|null} [style] ResourceDescriptor style + */ + + /** + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor + * @constructor + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + */ + function ResourceDescriptor(properties) { + this.pattern = []; + this.style = []; + 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]]; + } + + /** + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.type = ""; + + /** + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.pattern = $util.emptyArray; + + /** + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.nameField = ""; + + /** + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.history = 0; + + /** + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.plural = ""; + + /** + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; + + /** + * ResourceDescriptor style. + * @member {Array.} style + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.style = $util.emptyArray; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @function create + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + */ + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); + }; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + if (message.style != null && message.style.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.style.length; ++i) + writer.int32(message.style[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + } + case 3: { + message.nameField = reader.string(); + break; + } + case 4: { + message.history = reader.int32(); + break; + } + case 5: { + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else + message.style.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceDescriptor message. + * @function verify + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + if (message.style != null && message.hasOwnProperty("style")) { + if (!Array.isArray(message.style)) + return "style: array expected"; + for (var i = 0; i < message.style.length; ++i) + switch (message.style[i]) { + default: + return "style: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); + } + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; + } + break; + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; + } + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + if (object.style) { + if (!Array.isArray(object.style)) + throw TypeError(".google.api.ResourceDescriptor.style: array expected"); + message.style = []; + for (var i = 0; i < object.style.length; ++i) + switch (object.style[i]) { + default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; + } + case "STYLE_UNSPECIFIED": + case 0: + message.style[i] = 0; + break; + case "DECLARATIVE_FRIENDLY": + case 1: + message.style[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.pattern = []; + object.style = []; + } + if (options.defaults) { + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + if (message.style && message.style.length) { + object.style = []; + for (var j = 0; j < message.style.length; ++j) + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + } + return object; + }; + + /** + * Converts this ResourceDescriptor to JSON. + * @function toJSON + * @memberof google.api.ResourceDescriptor + * @instance + * @returns {Object.} JSON object + */ + ResourceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceDescriptor + * @function getTypeUrl + * @memberof google.api.ResourceDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceDescriptor"; + }; + + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); + + /** + * Style enum. + * @name google.api.ResourceDescriptor.Style + * @enum {number} + * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value + * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value + */ + ResourceDescriptor.Style = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; + return values; + })(); + + return ResourceDescriptor; + })(); + + api.ResourceReference = (function() { + + /** + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType + */ + + /** + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference + * @constructor + * @param {google.api.IResourceReference=} [properties] Properties to set + */ + function ResourceReference(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]]; + } + + /** + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.type = ""; + + /** + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.childType = ""; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @function create + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance + */ + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); + }; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + return writer; + }; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.childType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceReference message. + * @function verify + * @memberof google.api.ResourceReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; + return null; + }; + + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceReference + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceReference} ResourceReference + */ + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) + return object; + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); + return message; + }; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceReference + * @static + * @param {google.api.ResourceReference} message ResourceReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + object.childType = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; + return object; + }; + + /** + * Converts this ResourceReference to JSON. + * @function toJSON + * @memberof google.api.ResourceReference + * @instance + * @returns {Object.} JSON object + */ + ResourceReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceReference + * @function getTypeUrl + * @memberof google.api.ResourceReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceReference"; + }; + + return ResourceReference; + })(); + + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + 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]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; + + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {string|null} [edition] FileDescriptorProto edition + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + 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]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * FileDescriptorProto edition. + * @member {string} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); + return writer; + }; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message["package"] = reader.string(); + break; + } + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + case 13: { + message.edition = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + if (!$util.isString(message.edition)) + return "edition: string expected"; + return null; + }; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + if (object.edition != null) + message.edition = String(object.edition); + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + object.edition = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = message.edition; + return object; + }; + + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(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]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(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]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + }; + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(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]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + case 17: { + message.proto3Optional = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; + break; + } + break; + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(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]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; + + EnumDescriptorProto.EnumReservedRange = (function() { + + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ + + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(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]]; + } + + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; + + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(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]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + 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]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(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]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); + return message; + }; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; + return object; + }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.MethodDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + MethodDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; + 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]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions phpGenericServices. + * @member {boolean} phpGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = true; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; + + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; + + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; + + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; + + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) + writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 42: { + message.phpGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (typeof message.phpGenericServices !== "boolean") + return "phpGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); + if (error) + return ".google.api.resourceDefinition." + error; + } + } + return null; + }; + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileOptions} FileOptions + */ + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) + return object; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.phpGenericServices != null) + message.phpGenericServices = Boolean(object.phpGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpGenericServices = false; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + object.phpGenericServices = message.phpGenericServices; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + } + return object; + }; + + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); + if (error) + return ".google.api.resource." + error; + } + return null; + }; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) + return object; + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); + } + return message; + }; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object[".google.api.resource"] = null; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); + return object; + }; + + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; + 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]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + + /** + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.resourceReference"] = null; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; + } + return null; + }; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; + break; + } + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; + break; + } + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + } + return message; + }; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object.unverifiedLazy = false; + object[".google.api.resourceReference"] = null; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + return object; + }; + + /** + * Converts this FieldOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions + * @instance + * @returns {Object.} JSON object + */ + FieldOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this OneofOptions to JSON. + * @function toJSON + * @memberof google.protobuf.OneofOptions + * @instance + * @returns {Object.} JSON object + */ + OneofOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) + return object; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.allowAlias = false; + object.deprecated = false; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) + return object; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumValueOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueOptions + * @instance + * @returns {Object.} JSON object + */ + EnumValueOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.defaultHost"] = ""; + + /** + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + return writer; + }; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; + } + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; + return null; + }; + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + return message; + }; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + return object; + }; + + /** + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions + * @instance + * @returns {Object.} JSON object + */ + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; + 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]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.idempotencyLevel = 0; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; + } + return null; + }; + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) + return object; + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + } + return message; + }; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } + if (options.defaults) { + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + return object; + }; + + /** + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; + + /** + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {number} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value + */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + 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]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + } + case 3: { + message.identifierValue = reader.string(); + break; + } + case 4: { + message.positiveIntValue = reader.uint64(); + break; + } + case 5: { + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length >= 0) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; + }; + + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(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]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + 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]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } + return object; + }; + + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + 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]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + 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]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + 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]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; + break; + } + break; + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; + return object; + }; + + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; + + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + protobuf.DoubleValue = (function() { + + /** + * Properties of a DoubleValue. + * @memberof google.protobuf + * @interface IDoubleValue + * @property {number|null} [value] DoubleValue value + */ + + /** + * Constructs a new DoubleValue. + * @memberof google.protobuf + * @classdesc Represents a DoubleValue. + * @implements IDoubleValue + * @constructor + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + */ + function DoubleValue(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]]; + } + + /** + * DoubleValue value. + * @member {number} value + * @memberof google.protobuf.DoubleValue + * @instance + */ + DoubleValue.prototype.value = 0; + + /** + * Creates a new DoubleValue instance using the specified properties. + * @function create + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + * @returns {google.protobuf.DoubleValue} DoubleValue instance + */ + DoubleValue.create = function create(properties) { + return new DoubleValue(properties); + }; + + /** + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + return writer; + }; + + /** + * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DoubleValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DoubleValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DoubleValue} DoubleValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DoubleValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DoubleValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DoubleValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DoubleValue} DoubleValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DoubleValue message. + * @function verify + * @memberof google.protobuf.DoubleValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DoubleValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + /** + * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DoubleValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DoubleValue} DoubleValue + */ + DoubleValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DoubleValue) + return object; + var message = new $root.google.protobuf.DoubleValue(); + if (object.value != null) + message.value = Number(object.value); + return message; + }; + + /** + * Creates a plain object from a DoubleValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.DoubleValue} message DoubleValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DoubleValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + return object; + }; + + /** + * Converts this DoubleValue to JSON. + * @function toJSON + * @memberof google.protobuf.DoubleValue + * @instance + * @returns {Object.} JSON object + */ + DoubleValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DoubleValue + * @function getTypeUrl + * @memberof google.protobuf.DoubleValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DoubleValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DoubleValue"; + }; + + return DoubleValue; + })(); + + protobuf.FloatValue = (function() { + + /** + * Properties of a FloatValue. + * @memberof google.protobuf + * @interface IFloatValue + * @property {number|null} [value] FloatValue value + */ + + /** + * Constructs a new FloatValue. + * @memberof google.protobuf + * @classdesc Represents a FloatValue. + * @implements IFloatValue + * @constructor + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + */ + function FloatValue(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]]; + } + + /** + * FloatValue value. + * @member {number} value + * @memberof google.protobuf.FloatValue + * @instance + */ + FloatValue.prototype.value = 0; + + /** + * Creates a new FloatValue instance using the specified properties. + * @function create + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + * @returns {google.protobuf.FloatValue} FloatValue instance + */ + FloatValue.create = function create(properties) { + return new FloatValue(properties); + }; + + /** + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FloatValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); + return writer; + }; + + /** + * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FloatValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FloatValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FloatValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FloatValue} FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FloatValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FloatValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FloatValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FloatValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FloatValue} FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FloatValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FloatValue message. + * @function verify + * @memberof google.protobuf.FloatValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FloatValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + /** + * Creates a FloatValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FloatValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FloatValue} FloatValue + */ + FloatValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FloatValue) + return object; + var message = new $root.google.protobuf.FloatValue(); + if (object.value != null) + message.value = Number(object.value); + return message; + }; + + /** + * Creates a plain object from a FloatValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.FloatValue} message FloatValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FloatValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + return object; + }; + + /** + * Converts this FloatValue to JSON. + * @function toJSON + * @memberof google.protobuf.FloatValue + * @instance + * @returns {Object.} JSON object + */ + FloatValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FloatValue + * @function getTypeUrl + * @memberof google.protobuf.FloatValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FloatValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FloatValue"; + }; + + return FloatValue; + })(); + + protobuf.Int64Value = (function() { + + /** + * Properties of an Int64Value. + * @memberof google.protobuf + * @interface IInt64Value + * @property {number|Long|null} [value] Int64Value value + */ + + /** + * Constructs a new Int64Value. + * @memberof google.protobuf + * @classdesc Represents an Int64Value. + * @implements IInt64Value + * @constructor + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + */ + function Int64Value(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]]; + } + + /** + * Int64Value value. + * @member {number|Long} value + * @memberof google.protobuf.Int64Value + * @instance + */ + Int64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Int64Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + * @returns {google.protobuf.Int64Value} Int64Value instance + */ + Int64Value.create = function create(properties) { + return new Int64Value(properties); + }; + + /** + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int64Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.value); + return writer; + }; + + /** + * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int64Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Int64Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Int64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Int64Value} Int64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int64Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int64Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Int64Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Int64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Int64Value} Int64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int64Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Int64Value message. + * @function verify + * @memberof google.protobuf.Int64Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int64Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; + return null; + }; + + /** + * Creates an Int64Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Int64Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Int64Value} Int64Value + */ + Int64Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Int64Value) + return object; + var message = new $root.google.protobuf.Int64Value(); + if (object.value != null) + if ($util.Long) + (message.value = $util.Long.fromValue(object.value)).unsigned = false; + else if (typeof object.value === "string") + message.value = parseInt(object.value, 10); + else if (typeof object.value === "number") + message.value = object.value; + else if (typeof object.value === "object") + message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an Int64Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.Int64Value} message Int64Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Int64Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.value = options.longs === String ? "0" : 0; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value === "number") + object.value = options.longs === String ? String(message.value) : message.value; + else + object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber() : message.value; + return object; + }; + + /** + * Converts this Int64Value to JSON. + * @function toJSON + * @memberof google.protobuf.Int64Value + * @instance + * @returns {Object.} JSON object + */ + Int64Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Int64Value + * @function getTypeUrl + * @memberof google.protobuf.Int64Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Int64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Int64Value"; + }; + + return Int64Value; + })(); + + protobuf.UInt64Value = (function() { + + /** + * Properties of a UInt64Value. + * @memberof google.protobuf + * @interface IUInt64Value + * @property {number|Long|null} [value] UInt64Value value + */ + + /** + * Constructs a new UInt64Value. + * @memberof google.protobuf + * @classdesc Represents a UInt64Value. + * @implements IUInt64Value + * @constructor + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + */ + function UInt64Value(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]]; + } + + /** + * UInt64Value value. + * @member {number|Long} value + * @memberof google.protobuf.UInt64Value + * @instance + */ + UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Creates a new UInt64Value instance using the specified properties. + * @function create + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + * @returns {google.protobuf.UInt64Value} UInt64Value instance + */ + UInt64Value.create = function create(properties) { + return new UInt64Value(properties); + }; + + /** + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt64Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value); + return writer; + }; + + /** + * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt64Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UInt64Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UInt64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UInt64Value} UInt64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt64Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt64Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.uint64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UInt64Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UInt64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UInt64Value} UInt64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt64Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UInt64Value message. + * @function verify + * @memberof google.protobuf.UInt64Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UInt64Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; + return null; + }; + + /** + * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UInt64Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UInt64Value} UInt64Value + */ + UInt64Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UInt64Value) + return object; + var message = new $root.google.protobuf.UInt64Value(); + if (object.value != null) + if ($util.Long) + (message.value = $util.Long.fromValue(object.value)).unsigned = true; + else if (typeof object.value === "string") + message.value = parseInt(object.value, 10); + else if (typeof object.value === "number") + message.value = object.value; + else if (typeof object.value === "object") + message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a UInt64Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.UInt64Value} message UInt64Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UInt64Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.value = options.longs === String ? "0" : 0; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value === "number") + object.value = options.longs === String ? String(message.value) : message.value; + else + object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value; + return object; + }; + + /** + * Converts this UInt64Value to JSON. + * @function toJSON + * @memberof google.protobuf.UInt64Value + * @instance + * @returns {Object.} JSON object + */ + UInt64Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UInt64Value + * @function getTypeUrl + * @memberof google.protobuf.UInt64Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UInt64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UInt64Value"; + }; + + return UInt64Value; + })(); + + protobuf.Int32Value = (function() { + + /** + * Properties of an Int32Value. + * @memberof google.protobuf + * @interface IInt32Value + * @property {number|null} [value] Int32Value value + */ + + /** + * Constructs a new Int32Value. + * @memberof google.protobuf + * @classdesc Represents an Int32Value. + * @implements IInt32Value + * @constructor + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + */ + function Int32Value(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]]; + } + + /** + * Int32Value value. + * @member {number} value + * @memberof google.protobuf.Int32Value + * @instance + */ + Int32Value.prototype.value = 0; + + /** + * Creates a new Int32Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + * @returns {google.protobuf.Int32Value} Int32Value instance + */ + Int32Value.create = function create(properties) { + return new Int32Value(properties); + }; + + /** + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int32Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.value); + return writer; + }; + + /** + * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int32Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Int32Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Int32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Int32Value} Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int32Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int32Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Int32Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Int32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Int32Value} Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int32Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Int32Value message. + * @function verify + * @memberof google.protobuf.Int32Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int32Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + return null; + }; + + /** + * Creates an Int32Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Int32Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Int32Value} Int32Value + */ + Int32Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Int32Value) + return object; + var message = new $root.google.protobuf.Int32Value(); + if (object.value != null) + message.value = object.value | 0; + return message; + }; + + /** + * Creates a plain object from an Int32Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.Int32Value} message Int32Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Int32Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this Int32Value to JSON. + * @function toJSON + * @memberof google.protobuf.Int32Value + * @instance + * @returns {Object.} JSON object + */ + Int32Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Int32Value + * @function getTypeUrl + * @memberof google.protobuf.Int32Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Int32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Int32Value"; + }; + + return Int32Value; + })(); + + protobuf.UInt32Value = (function() { + + /** + * Properties of a UInt32Value. + * @memberof google.protobuf + * @interface IUInt32Value + * @property {number|null} [value] UInt32Value value + */ + + /** + * Constructs a new UInt32Value. + * @memberof google.protobuf + * @classdesc Represents a UInt32Value. + * @implements IUInt32Value + * @constructor + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + */ + function UInt32Value(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]]; + } + + /** + * UInt32Value value. + * @member {number} value + * @memberof google.protobuf.UInt32Value + * @instance + */ + UInt32Value.prototype.value = 0; + + /** + * Creates a new UInt32Value instance using the specified properties. + * @function create + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + * @returns {google.protobuf.UInt32Value} UInt32Value instance + */ + UInt32Value.create = function create(properties) { + return new UInt32Value(properties); + }; + + /** + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt32Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); + return writer; + }; + + /** + * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt32Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UInt32Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UInt32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UInt32Value} UInt32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt32Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt32Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.uint32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UInt32Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UInt32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UInt32Value} UInt32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt32Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UInt32Value message. + * @function verify + * @memberof google.protobuf.UInt32Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UInt32Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + return null; + }; + + /** + * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UInt32Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UInt32Value} UInt32Value + */ + UInt32Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UInt32Value) + return object; + var message = new $root.google.protobuf.UInt32Value(); + if (object.value != null) + message.value = object.value >>> 0; + return message; + }; + + /** + * Creates a plain object from a UInt32Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.UInt32Value} message UInt32Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UInt32Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this UInt32Value to JSON. + * @function toJSON + * @memberof google.protobuf.UInt32Value + * @instance + * @returns {Object.} JSON object + */ + UInt32Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UInt32Value + * @function getTypeUrl + * @memberof google.protobuf.UInt32Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UInt32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UInt32Value"; + }; + + return UInt32Value; + })(); + + protobuf.BoolValue = (function() { + + /** + * Properties of a BoolValue. + * @memberof google.protobuf + * @interface IBoolValue + * @property {boolean|null} [value] BoolValue value + */ + + /** + * Constructs a new BoolValue. + * @memberof google.protobuf + * @classdesc Represents a BoolValue. + * @implements IBoolValue + * @constructor + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + */ + function BoolValue(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]]; + } + + /** + * BoolValue value. + * @member {boolean} value + * @memberof google.protobuf.BoolValue + * @instance + */ + BoolValue.prototype.value = false; + + /** + * Creates a new BoolValue instance using the specified properties. + * @function create + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + * @returns {google.protobuf.BoolValue} BoolValue instance + */ + BoolValue.create = function create(properties) { + return new BoolValue(properties); + }; + + /** + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoolValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value); + return writer; + }; + + /** + * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoolValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BoolValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.BoolValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.BoolValue} BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BoolValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BoolValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BoolValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.BoolValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.BoolValue} BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BoolValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BoolValue message. + * @function verify + * @memberof google.protobuf.BoolValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BoolValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "boolean") + return "value: boolean expected"; + return null; + }; + + /** + * Creates a BoolValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.BoolValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.BoolValue} BoolValue + */ + BoolValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.BoolValue) + return object; + var message = new $root.google.protobuf.BoolValue(); + if (object.value != null) + message.value = Boolean(object.value); + return message; + }; + + /** + * Creates a plain object from a BoolValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.BoolValue} message BoolValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BoolValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = false; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this BoolValue to JSON. + * @function toJSON + * @memberof google.protobuf.BoolValue + * @instance + * @returns {Object.} JSON object + */ + BoolValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BoolValue + * @function getTypeUrl + * @memberof google.protobuf.BoolValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BoolValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.BoolValue"; + }; + + return BoolValue; + })(); + + protobuf.StringValue = (function() { + + /** + * Properties of a StringValue. + * @memberof google.protobuf + * @interface IStringValue + * @property {string|null} [value] StringValue value + */ + + /** + * Constructs a new StringValue. + * @memberof google.protobuf + * @classdesc Represents a StringValue. + * @implements IStringValue + * @constructor + * @param {google.protobuf.IStringValue=} [properties] Properties to set + */ + function StringValue(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]]; + } + + /** + * StringValue value. + * @member {string} value + * @memberof google.protobuf.StringValue + * @instance + */ + StringValue.prototype.value = ""; + + /** + * Creates a new StringValue instance using the specified properties. + * @function create + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue=} [properties] Properties to set + * @returns {google.protobuf.StringValue} StringValue instance + */ + StringValue.create = function create(properties) { + return new StringValue(properties); + }; + + /** + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + return writer; + }; + + /** + * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StringValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.StringValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.StringValue} StringValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.StringValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StringValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.StringValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.StringValue} StringValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StringValue message. + * @function verify + * @memberof google.protobuf.StringValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates a StringValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.StringValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.StringValue} StringValue + */ + StringValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.StringValue) + return object; + var message = new $root.google.protobuf.StringValue(); + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from a StringValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.StringValue} message StringValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StringValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this StringValue to JSON. + * @function toJSON + * @memberof google.protobuf.StringValue + * @instance + * @returns {Object.} JSON object + */ + StringValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StringValue + * @function getTypeUrl + * @memberof google.protobuf.StringValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StringValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.StringValue"; + }; + + return StringValue; + })(); + + protobuf.BytesValue = (function() { + + /** + * Properties of a BytesValue. + * @memberof google.protobuf + * @interface IBytesValue + * @property {Uint8Array|null} [value] BytesValue value + */ + + /** + * Constructs a new BytesValue. + * @memberof google.protobuf + * @classdesc Represents a BytesValue. + * @implements IBytesValue + * @constructor + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + */ + function BytesValue(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]]; + } + + /** + * BytesValue value. + * @member {Uint8Array} value + * @memberof google.protobuf.BytesValue + * @instance + */ + BytesValue.prototype.value = $util.newBuffer([]); + + /** + * Creates a new BytesValue instance using the specified properties. + * @function create + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + * @returns {google.protobuf.BytesValue} BytesValue instance + */ + BytesValue.create = function create(properties) { + return new BytesValue(properties); + }; + + /** + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BytesValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); + return writer; + }; + + /** + * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BytesValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BytesValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.BytesValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.BytesValue} BytesValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BytesValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BytesValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BytesValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.BytesValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.BytesValue} BytesValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BytesValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BytesValue message. + * @function verify + * @memberof google.protobuf.BytesValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BytesValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; + + /** + * Creates a BytesValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.BytesValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.BytesValue} BytesValue + */ + BytesValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.BytesValue) + return object; + var message = new $root.google.protobuf.BytesValue(); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + return message; + }; + + /** + * Creates a plain object from a BytesValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.BytesValue} message BytesValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BytesValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; + }; + + /** + * Converts this BytesValue to JSON. + * @function toJSON + * @memberof google.protobuf.BytesValue + * @instance + * @returns {Object.} JSON object + */ + BytesValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BytesValue + * @function getTypeUrl + * @memberof google.protobuf.BytesValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BytesValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.BytesValue"; + }; + + return BytesValue; + })(); + + protobuf.Struct = (function() { + + /** + * Properties of a Struct. + * @memberof google.protobuf + * @interface IStruct + * @property {Object.|null} [fields] Struct fields + */ + + /** + * Constructs a new Struct. + * @memberof google.protobuf + * @classdesc Represents a Struct. + * @implements IStruct + * @constructor + * @param {google.protobuf.IStruct=} [properties] Properties to set + */ + function Struct(properties) { + this.fields = {}; + 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]]; + } + + /** + * Struct fields. + * @member {Object.} fields + * @memberof google.protobuf.Struct + * @instance + */ + Struct.prototype.fields = $util.emptyObject; + + /** + * Creates a new Struct instance using the specified properties. + * @function create + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct=} [properties] Properties to set + * @returns {google.protobuf.Struct} Struct instance + */ + Struct.create = function create(properties) { + return new Struct(properties); + }; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct} message Struct message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Struct.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) + for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct} message Struct message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Struct.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Struct} Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Struct.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.fields === $util.emptyObject) + message.fields = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.fields[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Struct message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Struct} Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Struct.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Struct message. + * @function verify + * @memberof google.protobuf.Struct + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Struct.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!$util.isObject(message.fields)) + return "fields: object expected"; + var key = Object.keys(message.fields); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.fields[key[i]]); + if (error) + return "fields." + error; + } + } + return null; + }; + + /** + * Creates a Struct message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Struct + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Struct} Struct + */ + Struct.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Struct) + return object; + var message = new $root.google.protobuf.Struct(); + if (object.fields) { + if (typeof object.fields !== "object") + throw TypeError(".google.protobuf.Struct.fields: object expected"); + message.fields = {}; + for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) { + if (typeof object.fields[keys[i]] !== "object") + throw TypeError(".google.protobuf.Struct.fields: object expected"); + message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a Struct message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.Struct} message Struct + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Struct.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.fields = {}; + var keys2; + if (message.fields && (keys2 = Object.keys(message.fields)).length) { + object.fields = {}; + for (var j = 0; j < keys2.length; ++j) + object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Struct to JSON. + * @function toJSON + * @memberof google.protobuf.Struct + * @instance + * @returns {Object.} JSON object + */ + Struct.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Struct + * @function getTypeUrl + * @memberof google.protobuf.Struct + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Struct"; + }; + + return Struct; + })(); + + protobuf.Value = (function() { + + /** + * Properties of a Value. + * @memberof google.protobuf + * @interface IValue + * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue + * @property {number|null} [numberValue] Value numberValue + * @property {string|null} [stringValue] Value stringValue + * @property {boolean|null} [boolValue] Value boolValue + * @property {google.protobuf.IStruct|null} [structValue] Value structValue + * @property {google.protobuf.IListValue|null} [listValue] Value listValue + */ + + /** + * Constructs a new Value. + * @memberof google.protobuf + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.protobuf.IValue=} [properties] Properties to set + */ + function Value(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]]; + } + + /** + * Value nullValue. + * @member {google.protobuf.NullValue|null|undefined} nullValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.nullValue = null; + + /** + * Value numberValue. + * @member {number|null|undefined} numberValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.numberValue = null; + + /** + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.stringValue = null; + + /** + * Value boolValue. + * @member {boolean|null|undefined} boolValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.boolValue = null; + + /** + * Value structValue. + * @member {google.protobuf.IStruct|null|undefined} structValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.structValue = null; + + /** + * Value listValue. + * @member {google.protobuf.IListValue|null|undefined} listValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.listValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Value kind. + * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind + * @memberof google.protobuf.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue=} [properties] Properties to set + * @returns {google.protobuf.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); + if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); + if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue")) + $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue")) + $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.nullValue = reader.int32(); + break; + } + case 2: { + message.numberValue = reader.double(); + break; + } + case 3: { + message.stringValue = reader.string(); + break; + } + case 4: { + message.boolValue = reader.bool(); + break; + } + case 5: { + message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 6: { + message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Value message. + * @function verify + * @memberof google.protobuf.Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + properties.kind = 1; + switch (message.nullValue) { + default: + return "nullValue: enum value expected"; + case 0: + break; + } + } + if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.numberValue !== "number") + return "numberValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean expected"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.Struct.verify(message.structValue); + if (error) + return "structValue." + error; + } + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.ListValue.verify(message.listValue); + if (error) + return "listValue." + error; + } + } + return null; + }; + + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Value} Value + */ + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Value) + return object; + var message = new $root.google.protobuf.Value(); + switch (object.nullValue) { + default: + if (typeof object.nullValue === "number") { + message.nullValue = object.nullValue; + break; + } + break; + case "NULL_VALUE": + case 0: + message.nullValue = 0; + break; + } + if (object.numberValue != null) + message.numberValue = Number(object.numberValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.boolValue != null) + message.boolValue = Boolean(object.boolValue); + if (object.structValue != null) { + if (typeof object.structValue !== "object") + throw TypeError(".google.protobuf.Value.structValue: object expected"); + message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue); + } + if (object.listValue != null) { + if (typeof object.listValue !== "object") + throw TypeError(".google.protobuf.Value.listValue: object expected"); + message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue); + } + return message; + }; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.Value} message Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] === undefined ? message.nullValue : $root.google.protobuf.NullValue[message.nullValue] : message.nullValue; + if (options.oneofs) + object.kind = "nullValue"; + } + if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue; + if (options.oneofs) + object.kind = "numberValue"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.kind = "stringValue"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + object.boolValue = message.boolValue; + if (options.oneofs) + object.kind = "boolValue"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options); + if (options.oneofs) + object.kind = "structValue"; + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options); + if (options.oneofs) + object.kind = "listValue"; + } + return object; + }; + + /** + * Converts this Value to JSON. + * @function toJSON + * @memberof google.protobuf.Value + * @instance + * @returns {Object.} JSON object + */ + Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Value + * @function getTypeUrl + * @memberof google.protobuf.Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Value"; + }; + + return Value; + })(); + + /** + * NullValue enum. + * @name google.protobuf.NullValue + * @enum {number} + * @property {number} NULL_VALUE=0 NULL_VALUE value + */ + protobuf.NullValue = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_VALUE"] = 0; + return values; + })(); + + protobuf.ListValue = (function() { + + /** + * Properties of a ListValue. + * @memberof google.protobuf + * @interface IListValue + * @property {Array.|null} [values] ListValue values + */ + + /** + * Constructs a new ListValue. + * @memberof google.protobuf + * @classdesc Represents a ListValue. + * @implements IListValue + * @constructor + * @param {google.protobuf.IListValue=} [properties] Properties to set + */ + function ListValue(properties) { + this.values = []; + 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]]; + } + + /** + * ListValue values. + * @member {Array.} values + * @memberof google.protobuf.ListValue + * @instance + */ + ListValue.prototype.values = $util.emptyArray; + + /** + * Creates a new ListValue instance using the specified properties. + * @function create + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue=} [properties] Properties to set + * @returns {google.protobuf.ListValue} ListValue instance + */ + ListValue.create = function create(properties) { + return new ListValue(properties); + }; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue} message ListValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue} message ListValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ListValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ListValue} ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ListValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ListValue} ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListValue message. + * @function verify + * @memberof google.protobuf.ListValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.values[i]); + if (error) + return "values." + error; + } + } + return null; + }; + + /** + * Creates a ListValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ListValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ListValue} ListValue + */ + ListValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ListValue) + return object; + var message = new $root.google.protobuf.ListValue(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.protobuf.ListValue.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".google.protobuf.ListValue.values: object expected"); + message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ListValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.ListValue} message ListValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options); + } + return object; + }; + + /** + * Converts this ListValue to JSON. + * @function toJSON + * @memberof google.protobuf.ListValue + * @instance + * @returns {Object.} JSON object + */ + ListValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListValue + * @function getTypeUrl + * @memberof google.protobuf.ListValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ListValue"; + }; + + return ListValue; + })(); + + protobuf.Empty = (function() { + + /** + * Properties of an Empty. + * @memberof google.protobuf + * @interface IEmpty + */ + + /** + * Constructs a new Empty. + * @memberof google.protobuf + * @classdesc Represents an Empty. + * @implements IEmpty + * @constructor + * @param {google.protobuf.IEmpty=} [properties] Properties to set + */ + function Empty(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]]; + } + + /** + * Creates a new Empty instance using the specified properties. + * @function create + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @returns {google.protobuf.Empty} Empty instance + */ + Empty.create = function create(properties) { + return new Empty(properties); + }; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Empty message. + * @function verify + * @memberof google.protobuf.Empty + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Empty.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Empty + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Empty} Empty + */ + Empty.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Empty) + return object; + return new $root.google.protobuf.Empty(); + }; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.Empty} message Empty + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Empty.toObject = function toObject() { + return {}; + }; + + /** + * Converts this Empty to JSON. + * @function toJSON + * @memberof google.protobuf.Empty + * @instance + * @returns {Object.} JSON object + */ + Empty.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Empty + * @function getTypeUrl + * @memberof google.protobuf.Empty + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Empty"; + }; + + return Empty; + })(); + + return protobuf; + })(); + + google.cloud = (function() { + + /** + * Namespace cloud. + * @memberof google + * @namespace + */ + var cloud = {}; + + cloud.gsuiteaddons = (function() { + + /** + * Namespace gsuiteaddons. + * @memberof google.cloud + * @namespace + */ + var gsuiteaddons = {}; + + gsuiteaddons.v1 = (function() { + + /** + * Namespace v1. + * @memberof google.cloud.gsuiteaddons + * @namespace + */ + var v1 = {}; + + v1.GSuiteAddOns = (function() { + + /** + * Constructs a new GSuiteAddOns service. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a GSuiteAddOns + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function GSuiteAddOns(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (GSuiteAddOns.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = GSuiteAddOns; + + /** + * Creates new GSuiteAddOns service using the specified rpc implementation. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {GSuiteAddOns} RPC service. Useful where requests and/or responses are streamed. + */ + GSuiteAddOns.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|getAuthorization}. + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @typedef GetAuthorizationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.gsuiteaddons.v1.Authorization} [response] Authorization + */ + + /** + * Calls GetAuthorization. + * @function getAuthorization + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest} request GetAuthorizationRequest message or plain object + * @param {google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetAuthorizationCallback} callback Node-style callback called with the error, if any, and Authorization + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GSuiteAddOns.prototype.getAuthorization = function getAuthorization(request, callback) { + return this.rpcCall(getAuthorization, $root.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest, $root.google.cloud.gsuiteaddons.v1.Authorization, request, callback); + }, "name", { value: "GetAuthorization" }); + + /** + * Calls GetAuthorization. + * @function getAuthorization + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest} request GetAuthorizationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|createDeployment}. + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @typedef CreateDeploymentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.gsuiteaddons.v1.Deployment} [response] Deployment + */ + + /** + * Calls CreateDeployment. + * @function createDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest} request CreateDeploymentRequest message or plain object + * @param {google.cloud.gsuiteaddons.v1.GSuiteAddOns.CreateDeploymentCallback} callback Node-style callback called with the error, if any, and Deployment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GSuiteAddOns.prototype.createDeployment = function createDeployment(request, callback) { + return this.rpcCall(createDeployment, $root.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest, $root.google.cloud.gsuiteaddons.v1.Deployment, request, callback); + }, "name", { value: "CreateDeployment" }); + + /** + * Calls CreateDeployment. + * @function createDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest} request CreateDeploymentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|replaceDeployment}. + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @typedef ReplaceDeploymentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.gsuiteaddons.v1.Deployment} [response] Deployment + */ + + /** + * Calls ReplaceDeployment. + * @function replaceDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest} request ReplaceDeploymentRequest message or plain object + * @param {google.cloud.gsuiteaddons.v1.GSuiteAddOns.ReplaceDeploymentCallback} callback Node-style callback called with the error, if any, and Deployment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GSuiteAddOns.prototype.replaceDeployment = function replaceDeployment(request, callback) { + return this.rpcCall(replaceDeployment, $root.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest, $root.google.cloud.gsuiteaddons.v1.Deployment, request, callback); + }, "name", { value: "ReplaceDeployment" }); + + /** + * Calls ReplaceDeployment. + * @function replaceDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest} request ReplaceDeploymentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|getDeployment}. + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @typedef GetDeploymentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.gsuiteaddons.v1.Deployment} [response] Deployment + */ + + /** + * Calls GetDeployment. + * @function getDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object + * @param {google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetDeploymentCallback} callback Node-style callback called with the error, if any, and Deployment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GSuiteAddOns.prototype.getDeployment = function getDeployment(request, callback) { + return this.rpcCall(getDeployment, $root.google.cloud.gsuiteaddons.v1.GetDeploymentRequest, $root.google.cloud.gsuiteaddons.v1.Deployment, request, callback); + }, "name", { value: "GetDeployment" }); + + /** + * Calls GetDeployment. + * @function getDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|listDeployments}. + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @typedef ListDeploymentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.gsuiteaddons.v1.ListDeploymentsResponse} [response] ListDeploymentsResponse + */ + + /** + * Calls ListDeployments. + * @function listDeployments + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object + * @param {google.cloud.gsuiteaddons.v1.GSuiteAddOns.ListDeploymentsCallback} callback Node-style callback called with the error, if any, and ListDeploymentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GSuiteAddOns.prototype.listDeployments = function listDeployments(request, callback) { + return this.rpcCall(listDeployments, $root.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest, $root.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse, request, callback); + }, "name", { value: "ListDeployments" }); + + /** + * Calls ListDeployments. + * @function listDeployments + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|deleteDeployment}. + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @typedef DeleteDeploymentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteDeployment. + * @function deleteDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest} request DeleteDeploymentRequest message or plain object + * @param {google.cloud.gsuiteaddons.v1.GSuiteAddOns.DeleteDeploymentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GSuiteAddOns.prototype.deleteDeployment = function deleteDeployment(request, callback) { + return this.rpcCall(deleteDeployment, $root.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteDeployment" }); + + /** + * Calls DeleteDeployment. + * @function deleteDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest} request DeleteDeploymentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|installDeployment}. + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @typedef InstallDeploymentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls InstallDeployment. + * @function installDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest} request InstallDeploymentRequest message or plain object + * @param {google.cloud.gsuiteaddons.v1.GSuiteAddOns.InstallDeploymentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GSuiteAddOns.prototype.installDeployment = function installDeployment(request, callback) { + return this.rpcCall(installDeployment, $root.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "InstallDeployment" }); + + /** + * Calls InstallDeployment. + * @function installDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest} request InstallDeploymentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|uninstallDeployment}. + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @typedef UninstallDeploymentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls UninstallDeployment. + * @function uninstallDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest} request UninstallDeploymentRequest message or plain object + * @param {google.cloud.gsuiteaddons.v1.GSuiteAddOns.UninstallDeploymentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GSuiteAddOns.prototype.uninstallDeployment = function uninstallDeployment(request, callback) { + return this.rpcCall(uninstallDeployment, $root.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "UninstallDeployment" }); + + /** + * Calls UninstallDeployment. + * @function uninstallDeployment + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest} request UninstallDeploymentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.gsuiteaddons.v1.GSuiteAddOns|getInstallStatus}. + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @typedef GetInstallStatusCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.gsuiteaddons.v1.InstallStatus} [response] InstallStatus + */ + + /** + * Calls GetInstallStatus. + * @function getInstallStatus + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest} request GetInstallStatusRequest message or plain object + * @param {google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetInstallStatusCallback} callback Node-style callback called with the error, if any, and InstallStatus + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(GSuiteAddOns.prototype.getInstallStatus = function getInstallStatus(request, callback) { + return this.rpcCall(getInstallStatus, $root.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest, $root.google.cloud.gsuiteaddons.v1.InstallStatus, request, callback); + }, "name", { value: "GetInstallStatus" }); + + /** + * Calls GetInstallStatus. + * @function getInstallStatus + * @memberof google.cloud.gsuiteaddons.v1.GSuiteAddOns + * @instance + * @param {google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest} request GetInstallStatusRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return GSuiteAddOns; + })(); + + v1.GetAuthorizationRequest = (function() { + + /** + * Properties of a GetAuthorizationRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IGetAuthorizationRequest + * @property {string|null} [name] GetAuthorizationRequest name + */ + + /** + * Constructs a new GetAuthorizationRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a GetAuthorizationRequest. + * @implements IGetAuthorizationRequest + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest=} [properties] Properties to set + */ + function GetAuthorizationRequest(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]]; + } + + /** + * GetAuthorizationRequest name. + * @member {string} name + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @instance + */ + GetAuthorizationRequest.prototype.name = ""; + + /** + * Creates a new GetAuthorizationRequest instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.GetAuthorizationRequest} GetAuthorizationRequest instance + */ + GetAuthorizationRequest.create = function create(properties) { + return new GetAuthorizationRequest(properties); + }; + + /** + * Encodes the specified GetAuthorizationRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetAuthorizationRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest} message GetAuthorizationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAuthorizationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetAuthorizationRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetAuthorizationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest} message GetAuthorizationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAuthorizationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetAuthorizationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.GetAuthorizationRequest} GetAuthorizationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAuthorizationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetAuthorizationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.GetAuthorizationRequest} GetAuthorizationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAuthorizationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetAuthorizationRequest message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAuthorizationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetAuthorizationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.GetAuthorizationRequest} GetAuthorizationRequest + */ + GetAuthorizationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetAuthorizationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.GetAuthorizationRequest} message GetAuthorizationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetAuthorizationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetAuthorizationRequest to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @instance + * @returns {Object.} JSON object + */ + GetAuthorizationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetAuthorizationRequest + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.GetAuthorizationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetAuthorizationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.GetAuthorizationRequest"; + }; + + return GetAuthorizationRequest; + })(); + + v1.Authorization = (function() { + + /** + * Properties of an Authorization. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IAuthorization + * @property {string|null} [name] Authorization name + * @property {string|null} [serviceAccountEmail] Authorization serviceAccountEmail + * @property {string|null} [oauthClientId] Authorization oauthClientId + */ + + /** + * Constructs a new Authorization. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents an Authorization. + * @implements IAuthorization + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IAuthorization=} [properties] Properties to set + */ + function Authorization(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]]; + } + + /** + * Authorization name. + * @member {string} name + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @instance + */ + Authorization.prototype.name = ""; + + /** + * Authorization serviceAccountEmail. + * @member {string} serviceAccountEmail + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @instance + */ + Authorization.prototype.serviceAccountEmail = ""; + + /** + * Authorization oauthClientId. + * @member {string} oauthClientId + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @instance + */ + Authorization.prototype.oauthClientId = ""; + + /** + * Creates a new Authorization instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @static + * @param {google.cloud.gsuiteaddons.v1.IAuthorization=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.Authorization} Authorization instance + */ + Authorization.create = function create(properties) { + return new Authorization(properties); + }; + + /** + * Encodes the specified Authorization message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.Authorization.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @static + * @param {google.cloud.gsuiteaddons.v1.IAuthorization} message Authorization message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Authorization.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.serviceAccountEmail != null && Object.hasOwnProperty.call(message, "serviceAccountEmail")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccountEmail); + if (message.oauthClientId != null && Object.hasOwnProperty.call(message, "oauthClientId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.oauthClientId); + return writer; + }; + + /** + * Encodes the specified Authorization message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.Authorization.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @static + * @param {google.cloud.gsuiteaddons.v1.IAuthorization} message Authorization message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Authorization.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Authorization message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.Authorization} Authorization + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Authorization.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.Authorization(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.serviceAccountEmail = reader.string(); + break; + } + case 3: { + message.oauthClientId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Authorization message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.Authorization} Authorization + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Authorization.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Authorization message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Authorization.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) + if (!$util.isString(message.serviceAccountEmail)) + return "serviceAccountEmail: string expected"; + if (message.oauthClientId != null && message.hasOwnProperty("oauthClientId")) + if (!$util.isString(message.oauthClientId)) + return "oauthClientId: string expected"; + return null; + }; + + /** + * Creates an Authorization message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.Authorization} Authorization + */ + Authorization.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.Authorization) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.Authorization(); + if (object.name != null) + message.name = String(object.name); + if (object.serviceAccountEmail != null) + message.serviceAccountEmail = String(object.serviceAccountEmail); + if (object.oauthClientId != null) + message.oauthClientId = String(object.oauthClientId); + return message; + }; + + /** + * Creates a plain object from an Authorization message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @static + * @param {google.cloud.gsuiteaddons.v1.Authorization} message Authorization + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Authorization.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.serviceAccountEmail = ""; + object.oauthClientId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) + object.serviceAccountEmail = message.serviceAccountEmail; + if (message.oauthClientId != null && message.hasOwnProperty("oauthClientId")) + object.oauthClientId = message.oauthClientId; + return object; + }; + + /** + * Converts this Authorization to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @instance + * @returns {Object.} JSON object + */ + Authorization.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Authorization + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.Authorization + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Authorization.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.Authorization"; + }; + + return Authorization; + })(); + + v1.CreateDeploymentRequest = (function() { + + /** + * Properties of a CreateDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface ICreateDeploymentRequest + * @property {string|null} [parent] CreateDeploymentRequest parent + * @property {string|null} [deploymentId] CreateDeploymentRequest deploymentId + * @property {google.cloud.gsuiteaddons.v1.IDeployment|null} [deployment] CreateDeploymentRequest deployment + */ + + /** + * Constructs a new CreateDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a CreateDeploymentRequest. + * @implements ICreateDeploymentRequest + * @constructor + * @param {google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest=} [properties] Properties to set + */ + function CreateDeploymentRequest(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]]; + } + + /** + * CreateDeploymentRequest parent. + * @member {string} parent + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @instance + */ + CreateDeploymentRequest.prototype.parent = ""; + + /** + * CreateDeploymentRequest deploymentId. + * @member {string} deploymentId + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @instance + */ + CreateDeploymentRequest.prototype.deploymentId = ""; + + /** + * CreateDeploymentRequest deployment. + * @member {google.cloud.gsuiteaddons.v1.IDeployment|null|undefined} deployment + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @instance + */ + CreateDeploymentRequest.prototype.deployment = null; + + /** + * Creates a new CreateDeploymentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.CreateDeploymentRequest} CreateDeploymentRequest instance + */ + CreateDeploymentRequest.create = function create(properties) { + return new CreateDeploymentRequest(properties); + }; + + /** + * Encodes the specified CreateDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.CreateDeploymentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest} message CreateDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDeploymentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.deploymentId != null && Object.hasOwnProperty.call(message, "deploymentId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deploymentId); + if (message.deployment != null && Object.hasOwnProperty.call(message, "deployment")) + $root.google.cloud.gsuiteaddons.v1.Deployment.encode(message.deployment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.CreateDeploymentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest} message CreateDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateDeploymentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.CreateDeploymentRequest} CreateDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDeploymentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.deploymentId = reader.string(); + break; + } + case 3: { + message.deployment = $root.google.cloud.gsuiteaddons.v1.Deployment.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateDeploymentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.CreateDeploymentRequest} CreateDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateDeploymentRequest message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDeploymentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.deploymentId != null && message.hasOwnProperty("deploymentId")) + if (!$util.isString(message.deploymentId)) + return "deploymentId: string expected"; + if (message.deployment != null && message.hasOwnProperty("deployment")) { + var error = $root.google.cloud.gsuiteaddons.v1.Deployment.verify(message.deployment); + if (error) + return "deployment." + error; + } + return null; + }; + + /** + * Creates a CreateDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.CreateDeploymentRequest} CreateDeploymentRequest + */ + CreateDeploymentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.deploymentId != null) + message.deploymentId = String(object.deploymentId); + if (object.deployment != null) { + if (typeof object.deployment !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.CreateDeploymentRequest.deployment: object expected"); + message.deployment = $root.google.cloud.gsuiteaddons.v1.Deployment.fromObject(object.deployment); + } + return message; + }; + + /** + * Creates a plain object from a CreateDeploymentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.CreateDeploymentRequest} message CreateDeploymentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateDeploymentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.deploymentId = ""; + object.deployment = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.deploymentId != null && message.hasOwnProperty("deploymentId")) + object.deploymentId = message.deploymentId; + if (message.deployment != null && message.hasOwnProperty("deployment")) + object.deployment = $root.google.cloud.gsuiteaddons.v1.Deployment.toObject(message.deployment, options); + return object; + }; + + /** + * Converts this CreateDeploymentRequest to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @instance + * @returns {Object.} JSON object + */ + CreateDeploymentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateDeploymentRequest + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.CreateDeploymentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.CreateDeploymentRequest"; + }; + + return CreateDeploymentRequest; + })(); + + v1.ReplaceDeploymentRequest = (function() { + + /** + * Properties of a ReplaceDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IReplaceDeploymentRequest + * @property {google.cloud.gsuiteaddons.v1.IDeployment|null} [deployment] ReplaceDeploymentRequest deployment + */ + + /** + * Constructs a new ReplaceDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a ReplaceDeploymentRequest. + * @implements IReplaceDeploymentRequest + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest=} [properties] Properties to set + */ + function ReplaceDeploymentRequest(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]]; + } + + /** + * ReplaceDeploymentRequest deployment. + * @member {google.cloud.gsuiteaddons.v1.IDeployment|null|undefined} deployment + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @instance + */ + ReplaceDeploymentRequest.prototype.deployment = null; + + /** + * Creates a new ReplaceDeploymentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest} ReplaceDeploymentRequest instance + */ + ReplaceDeploymentRequest.create = function create(properties) { + return new ReplaceDeploymentRequest(properties); + }; + + /** + * Encodes the specified ReplaceDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest} message ReplaceDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplaceDeploymentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deployment != null && Object.hasOwnProperty.call(message, "deployment")) + $root.google.cloud.gsuiteaddons.v1.Deployment.encode(message.deployment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ReplaceDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest} message ReplaceDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplaceDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReplaceDeploymentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest} ReplaceDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplaceDeploymentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.deployment = $root.google.cloud.gsuiteaddons.v1.Deployment.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReplaceDeploymentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest} ReplaceDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplaceDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReplaceDeploymentRequest message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReplaceDeploymentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deployment != null && message.hasOwnProperty("deployment")) { + var error = $root.google.cloud.gsuiteaddons.v1.Deployment.verify(message.deployment); + if (error) + return "deployment." + error; + } + return null; + }; + + /** + * Creates a ReplaceDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest} ReplaceDeploymentRequest + */ + ReplaceDeploymentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest(); + if (object.deployment != null) { + if (typeof object.deployment !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest.deployment: object expected"); + message.deployment = $root.google.cloud.gsuiteaddons.v1.Deployment.fromObject(object.deployment); + } + return message; + }; + + /** + * Creates a plain object from a ReplaceDeploymentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest} message ReplaceDeploymentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReplaceDeploymentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.deployment = null; + if (message.deployment != null && message.hasOwnProperty("deployment")) + object.deployment = $root.google.cloud.gsuiteaddons.v1.Deployment.toObject(message.deployment, options); + return object; + }; + + /** + * Converts this ReplaceDeploymentRequest to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @instance + * @returns {Object.} JSON object + */ + ReplaceDeploymentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReplaceDeploymentRequest + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReplaceDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest"; + }; + + return ReplaceDeploymentRequest; + })(); + + v1.GetDeploymentRequest = (function() { + + /** + * Properties of a GetDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IGetDeploymentRequest + * @property {string|null} [name] GetDeploymentRequest name + */ + + /** + * Constructs a new GetDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a GetDeploymentRequest. + * @implements IGetDeploymentRequest + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IGetDeploymentRequest=} [properties] Properties to set + */ + function GetDeploymentRequest(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]]; + } + + /** + * GetDeploymentRequest name. + * @member {string} name + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @instance + */ + GetDeploymentRequest.prototype.name = ""; + + /** + * Creates a new GetDeploymentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IGetDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.GetDeploymentRequest} GetDeploymentRequest instance + */ + GetDeploymentRequest.create = function create(properties) { + return new GetDeploymentRequest(properties); + }; + + /** + * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetDeploymentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDeploymentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetDeploymentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDeploymentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.GetDeploymentRequest} GetDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDeploymentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.GetDeploymentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.GetDeploymentRequest} GetDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetDeploymentRequest message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDeploymentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.GetDeploymentRequest} GetDeploymentRequest + */ + GetDeploymentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.GetDeploymentRequest) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.GetDeploymentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.GetDeploymentRequest} message GetDeploymentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDeploymentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetDeploymentRequest to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @instance + * @returns {Object.} JSON object + */ + GetDeploymentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetDeploymentRequest + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.GetDeploymentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.GetDeploymentRequest"; + }; + + return GetDeploymentRequest; + })(); + + v1.ListDeploymentsRequest = (function() { + + /** + * Properties of a ListDeploymentsRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IListDeploymentsRequest + * @property {string|null} [parent] ListDeploymentsRequest parent + * @property {number|null} [pageSize] ListDeploymentsRequest pageSize + * @property {string|null} [pageToken] ListDeploymentsRequest pageToken + */ + + /** + * Constructs a new ListDeploymentsRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a ListDeploymentsRequest. + * @implements IListDeploymentsRequest + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsRequest=} [properties] Properties to set + */ + function ListDeploymentsRequest(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]]; + } + + /** + * ListDeploymentsRequest parent. + * @member {string} parent + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @instance + */ + ListDeploymentsRequest.prototype.parent = ""; + + /** + * ListDeploymentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @instance + */ + ListDeploymentsRequest.prototype.pageSize = 0; + + /** + * ListDeploymentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @instance + */ + ListDeploymentsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDeploymentsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsRequest=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.ListDeploymentsRequest} ListDeploymentsRequest instance + */ + ListDeploymentsRequest.create = function create(properties) { + return new ListDeploymentsRequest(properties); + }; + + /** + * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ListDeploymentsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDeploymentsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ListDeploymentsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDeploymentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDeploymentsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.ListDeploymentsRequest} ListDeploymentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDeploymentsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.ListDeploymentsRequest} ListDeploymentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDeploymentsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDeploymentsRequest message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDeploymentsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.ListDeploymentsRequest} ListDeploymentsRequest + */ + ListDeploymentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.ListDeploymentsRequest} message ListDeploymentsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDeploymentsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListDeploymentsRequest to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @instance + * @returns {Object.} JSON object + */ + ListDeploymentsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListDeploymentsRequest + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDeploymentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.ListDeploymentsRequest"; + }; + + return ListDeploymentsRequest; + })(); + + v1.ListDeploymentsResponse = (function() { + + /** + * Properties of a ListDeploymentsResponse. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IListDeploymentsResponse + * @property {Array.|null} [deployments] ListDeploymentsResponse deployments + * @property {string|null} [nextPageToken] ListDeploymentsResponse nextPageToken + */ + + /** + * Constructs a new ListDeploymentsResponse. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a ListDeploymentsResponse. + * @implements IListDeploymentsResponse + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsResponse=} [properties] Properties to set + */ + function ListDeploymentsResponse(properties) { + this.deployments = []; + 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]]; + } + + /** + * ListDeploymentsResponse deployments. + * @member {Array.} deployments + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @instance + */ + ListDeploymentsResponse.prototype.deployments = $util.emptyArray; + + /** + * ListDeploymentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @instance + */ + ListDeploymentsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListDeploymentsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @static + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsResponse=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.ListDeploymentsResponse} ListDeploymentsResponse instance + */ + ListDeploymentsResponse.create = function create(properties) { + return new ListDeploymentsResponse(properties); + }; + + /** + * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ListDeploymentsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @static + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDeploymentsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deployments != null && message.deployments.length) + for (var i = 0; i < message.deployments.length; ++i) + $root.google.cloud.gsuiteaddons.v1.Deployment.encode(message.deployments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.ListDeploymentsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @static + * @param {google.cloud.gsuiteaddons.v1.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListDeploymentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListDeploymentsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.ListDeploymentsResponse} ListDeploymentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDeploymentsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.deployments && message.deployments.length)) + message.deployments = []; + message.deployments.push($root.google.cloud.gsuiteaddons.v1.Deployment.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.ListDeploymentsResponse} ListDeploymentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListDeploymentsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListDeploymentsResponse message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListDeploymentsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deployments != null && message.hasOwnProperty("deployments")) { + if (!Array.isArray(message.deployments)) + return "deployments: array expected"; + for (var i = 0; i < message.deployments.length; ++i) { + var error = $root.google.cloud.gsuiteaddons.v1.Deployment.verify(message.deployments[i]); + if (error) + return "deployments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.ListDeploymentsResponse} ListDeploymentsResponse + */ + ListDeploymentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse(); + if (object.deployments) { + if (!Array.isArray(object.deployments)) + throw TypeError(".google.cloud.gsuiteaddons.v1.ListDeploymentsResponse.deployments: array expected"); + message.deployments = []; + for (var i = 0; i < object.deployments.length; ++i) { + if (typeof object.deployments[i] !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.ListDeploymentsResponse.deployments: object expected"); + message.deployments[i] = $root.google.cloud.gsuiteaddons.v1.Deployment.fromObject(object.deployments[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @static + * @param {google.cloud.gsuiteaddons.v1.ListDeploymentsResponse} message ListDeploymentsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListDeploymentsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.deployments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.deployments && message.deployments.length) { + object.deployments = []; + for (var j = 0; j < message.deployments.length; ++j) + object.deployments[j] = $root.google.cloud.gsuiteaddons.v1.Deployment.toObject(message.deployments[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListDeploymentsResponse to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @instance + * @returns {Object.} JSON object + */ + ListDeploymentsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListDeploymentsResponse + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.ListDeploymentsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListDeploymentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.ListDeploymentsResponse"; + }; + + return ListDeploymentsResponse; + })(); + + v1.DeleteDeploymentRequest = (function() { + + /** + * Properties of a DeleteDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IDeleteDeploymentRequest + * @property {string|null} [name] DeleteDeploymentRequest name + * @property {string|null} [etag] DeleteDeploymentRequest etag + */ + + /** + * Constructs a new DeleteDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a DeleteDeploymentRequest. + * @implements IDeleteDeploymentRequest + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest=} [properties] Properties to set + */ + function DeleteDeploymentRequest(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]]; + } + + /** + * DeleteDeploymentRequest name. + * @member {string} name + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @instance + */ + DeleteDeploymentRequest.prototype.name = ""; + + /** + * DeleteDeploymentRequest etag. + * @member {string} etag + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @instance + */ + DeleteDeploymentRequest.prototype.etag = ""; + + /** + * Creates a new DeleteDeploymentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest} DeleteDeploymentRequest instance + */ + DeleteDeploymentRequest.create = function create(properties) { + return new DeleteDeploymentRequest(properties); + }; + + /** + * Encodes the specified DeleteDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest} message DeleteDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDeploymentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); + return writer; + }; + + /** + * Encodes the specified DeleteDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest} message DeleteDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteDeploymentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest} DeleteDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDeploymentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteDeploymentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest} DeleteDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDeploymentRequest message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteDeploymentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; + + /** + * Creates a DeleteDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest} DeleteDeploymentRequest + */ + DeleteDeploymentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; + + /** + * Creates a plain object from a DeleteDeploymentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest} message DeleteDeploymentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDeploymentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; + + /** + * Converts this DeleteDeploymentRequest to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteDeploymentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteDeploymentRequest + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest"; + }; + + return DeleteDeploymentRequest; + })(); + + v1.InstallDeploymentRequest = (function() { + + /** + * Properties of an InstallDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IInstallDeploymentRequest + * @property {string|null} [name] InstallDeploymentRequest name + */ + + /** + * Constructs a new InstallDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents an InstallDeploymentRequest. + * @implements IInstallDeploymentRequest + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest=} [properties] Properties to set + */ + function InstallDeploymentRequest(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]]; + } + + /** + * InstallDeploymentRequest name. + * @member {string} name + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @instance + */ + InstallDeploymentRequest.prototype.name = ""; + + /** + * Creates a new InstallDeploymentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.InstallDeploymentRequest} InstallDeploymentRequest instance + */ + InstallDeploymentRequest.create = function create(properties) { + return new InstallDeploymentRequest(properties); + }; + + /** + * Encodes the specified InstallDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.InstallDeploymentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest} message InstallDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstallDeploymentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified InstallDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.InstallDeploymentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest} message InstallDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstallDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstallDeploymentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.InstallDeploymentRequest} InstallDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstallDeploymentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstallDeploymentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.InstallDeploymentRequest} InstallDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstallDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstallDeploymentRequest message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstallDeploymentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates an InstallDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.InstallDeploymentRequest} InstallDeploymentRequest + */ + InstallDeploymentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an InstallDeploymentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.InstallDeploymentRequest} message InstallDeploymentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstallDeploymentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this InstallDeploymentRequest to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @instance + * @returns {Object.} JSON object + */ + InstallDeploymentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstallDeploymentRequest + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.InstallDeploymentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstallDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.InstallDeploymentRequest"; + }; + + return InstallDeploymentRequest; + })(); + + v1.UninstallDeploymentRequest = (function() { + + /** + * Properties of an UninstallDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IUninstallDeploymentRequest + * @property {string|null} [name] UninstallDeploymentRequest name + */ + + /** + * Constructs a new UninstallDeploymentRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents an UninstallDeploymentRequest. + * @implements IUninstallDeploymentRequest + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest=} [properties] Properties to set + */ + function UninstallDeploymentRequest(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]]; + } + + /** + * UninstallDeploymentRequest name. + * @member {string} name + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @instance + */ + UninstallDeploymentRequest.prototype.name = ""; + + /** + * Creates a new UninstallDeploymentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest} UninstallDeploymentRequest instance + */ + UninstallDeploymentRequest.create = function create(properties) { + return new UninstallDeploymentRequest(properties); + }; + + /** + * Encodes the specified UninstallDeploymentRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest} message UninstallDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninstallDeploymentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified UninstallDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest} message UninstallDeploymentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninstallDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UninstallDeploymentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest} UninstallDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninstallDeploymentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UninstallDeploymentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest} UninstallDeploymentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninstallDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UninstallDeploymentRequest message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninstallDeploymentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates an UninstallDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest} UninstallDeploymentRequest + */ + UninstallDeploymentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an UninstallDeploymentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest} message UninstallDeploymentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninstallDeploymentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this UninstallDeploymentRequest to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @instance + * @returns {Object.} JSON object + */ + UninstallDeploymentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UninstallDeploymentRequest + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninstallDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest"; + }; + + return UninstallDeploymentRequest; + })(); + + v1.GetInstallStatusRequest = (function() { + + /** + * Properties of a GetInstallStatusRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IGetInstallStatusRequest + * @property {string|null} [name] GetInstallStatusRequest name + */ + + /** + * Constructs a new GetInstallStatusRequest. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a GetInstallStatusRequest. + * @implements IGetInstallStatusRequest + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest=} [properties] Properties to set + */ + function GetInstallStatusRequest(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]]; + } + + /** + * GetInstallStatusRequest name. + * @member {string} name + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @instance + */ + GetInstallStatusRequest.prototype.name = ""; + + /** + * Creates a new GetInstallStatusRequest instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.GetInstallStatusRequest} GetInstallStatusRequest instance + */ + GetInstallStatusRequest.create = function create(properties) { + return new GetInstallStatusRequest(properties); + }; + + /** + * Encodes the specified GetInstallStatusRequest message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetInstallStatusRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest} message GetInstallStatusRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInstallStatusRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetInstallStatusRequest message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.GetInstallStatusRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest} message GetInstallStatusRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetInstallStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetInstallStatusRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.GetInstallStatusRequest} GetInstallStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInstallStatusRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetInstallStatusRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.GetInstallStatusRequest} GetInstallStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetInstallStatusRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetInstallStatusRequest message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetInstallStatusRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetInstallStatusRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.GetInstallStatusRequest} GetInstallStatusRequest + */ + GetInstallStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetInstallStatusRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @static + * @param {google.cloud.gsuiteaddons.v1.GetInstallStatusRequest} message GetInstallStatusRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetInstallStatusRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetInstallStatusRequest to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @instance + * @returns {Object.} JSON object + */ + GetInstallStatusRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetInstallStatusRequest + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.GetInstallStatusRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetInstallStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.GetInstallStatusRequest"; + }; + + return GetInstallStatusRequest; + })(); + + v1.InstallStatus = (function() { + + /** + * Properties of an InstallStatus. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IInstallStatus + * @property {string|null} [name] InstallStatus name + * @property {google.protobuf.IBoolValue|null} [installed] InstallStatus installed + */ + + /** + * Constructs a new InstallStatus. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents an InstallStatus. + * @implements IInstallStatus + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IInstallStatus=} [properties] Properties to set + */ + function InstallStatus(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]]; + } + + /** + * InstallStatus name. + * @member {string} name + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @instance + */ + InstallStatus.prototype.name = ""; + + /** + * InstallStatus installed. + * @member {google.protobuf.IBoolValue|null|undefined} installed + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @instance + */ + InstallStatus.prototype.installed = null; + + /** + * Creates a new InstallStatus instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @static + * @param {google.cloud.gsuiteaddons.v1.IInstallStatus=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.InstallStatus} InstallStatus instance + */ + InstallStatus.create = function create(properties) { + return new InstallStatus(properties); + }; + + /** + * Encodes the specified InstallStatus message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.InstallStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @static + * @param {google.cloud.gsuiteaddons.v1.IInstallStatus} message InstallStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstallStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.installed != null && Object.hasOwnProperty.call(message, "installed")) + $root.google.protobuf.BoolValue.encode(message.installed, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstallStatus message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.InstallStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @static + * @param {google.cloud.gsuiteaddons.v1.IInstallStatus} message InstallStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstallStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstallStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.InstallStatus} InstallStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstallStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.InstallStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.installed = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstallStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.InstallStatus} InstallStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstallStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstallStatus message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstallStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.installed != null && message.hasOwnProperty("installed")) { + var error = $root.google.protobuf.BoolValue.verify(message.installed); + if (error) + return "installed." + error; + } + return null; + }; + + /** + * Creates an InstallStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.InstallStatus} InstallStatus + */ + InstallStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.InstallStatus) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.InstallStatus(); + if (object.name != null) + message.name = String(object.name); + if (object.installed != null) { + if (typeof object.installed !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.InstallStatus.installed: object expected"); + message.installed = $root.google.protobuf.BoolValue.fromObject(object.installed); + } + return message; + }; + + /** + * Creates a plain object from an InstallStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @static + * @param {google.cloud.gsuiteaddons.v1.InstallStatus} message InstallStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstallStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.installed = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.installed != null && message.hasOwnProperty("installed")) + object.installed = $root.google.protobuf.BoolValue.toObject(message.installed, options); + return object; + }; + + /** + * Converts this InstallStatus to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @instance + * @returns {Object.} JSON object + */ + InstallStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstallStatus + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.InstallStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstallStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.InstallStatus"; + }; + + return InstallStatus; + })(); + + v1.Deployment = (function() { + + /** + * Properties of a Deployment. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IDeployment + * @property {string|null} [name] Deployment name + * @property {Array.|null} [oauthScopes] Deployment oauthScopes + * @property {google.cloud.gsuiteaddons.v1.IAddOns|null} [addOns] Deployment addOns + * @property {string|null} [etag] Deployment etag + */ + + /** + * Constructs a new Deployment. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents a Deployment. + * @implements IDeployment + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IDeployment=} [properties] Properties to set + */ + function Deployment(properties) { + this.oauthScopes = []; + 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]]; + } + + /** + * Deployment name. + * @member {string} name + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @instance + */ + Deployment.prototype.name = ""; + + /** + * Deployment oauthScopes. + * @member {Array.} oauthScopes + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @instance + */ + Deployment.prototype.oauthScopes = $util.emptyArray; + + /** + * Deployment addOns. + * @member {google.cloud.gsuiteaddons.v1.IAddOns|null|undefined} addOns + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @instance + */ + Deployment.prototype.addOns = null; + + /** + * Deployment etag. + * @member {string} etag + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @instance + */ + Deployment.prototype.etag = ""; + + /** + * Creates a new Deployment instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @static + * @param {google.cloud.gsuiteaddons.v1.IDeployment=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.Deployment} Deployment instance + */ + Deployment.create = function create(properties) { + return new Deployment(properties); + }; + + /** + * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.Deployment.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @static + * @param {google.cloud.gsuiteaddons.v1.IDeployment} message Deployment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Deployment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.oauthScopes != null && message.oauthScopes.length) + for (var i = 0; i < message.oauthScopes.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.oauthScopes[i]); + if (message.addOns != null && Object.hasOwnProperty.call(message, "addOns")) + $root.google.cloud.gsuiteaddons.v1.AddOns.encode(message.addOns, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); + return writer; + }; + + /** + * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.Deployment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @static + * @param {google.cloud.gsuiteaddons.v1.IDeployment} message Deployment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Deployment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Deployment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.Deployment} Deployment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Deployment.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.Deployment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.oauthScopes && message.oauthScopes.length)) + message.oauthScopes = []; + message.oauthScopes.push(reader.string()); + break; + } + case 3: { + message.addOns = $root.google.cloud.gsuiteaddons.v1.AddOns.decode(reader, reader.uint32()); + break; + } + case 5: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Deployment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.Deployment} Deployment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Deployment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Deployment message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Deployment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) { + if (!Array.isArray(message.oauthScopes)) + return "oauthScopes: array expected"; + for (var i = 0; i < message.oauthScopes.length; ++i) + if (!$util.isString(message.oauthScopes[i])) + return "oauthScopes: string[] expected"; + } + if (message.addOns != null && message.hasOwnProperty("addOns")) { + var error = $root.google.cloud.gsuiteaddons.v1.AddOns.verify(message.addOns); + if (error) + return "addOns." + error; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; + + /** + * Creates a Deployment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.Deployment} Deployment + */ + Deployment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.Deployment) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.Deployment(); + if (object.name != null) + message.name = String(object.name); + if (object.oauthScopes) { + if (!Array.isArray(object.oauthScopes)) + throw TypeError(".google.cloud.gsuiteaddons.v1.Deployment.oauthScopes: array expected"); + message.oauthScopes = []; + for (var i = 0; i < object.oauthScopes.length; ++i) + message.oauthScopes[i] = String(object.oauthScopes[i]); + } + if (object.addOns != null) { + if (typeof object.addOns !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.Deployment.addOns: object expected"); + message.addOns = $root.google.cloud.gsuiteaddons.v1.AddOns.fromObject(object.addOns); + } + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; + + /** + * Creates a plain object from a Deployment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @static + * @param {google.cloud.gsuiteaddons.v1.Deployment} message Deployment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Deployment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.oauthScopes = []; + if (options.defaults) { + object.name = ""; + object.addOns = null; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.oauthScopes && message.oauthScopes.length) { + object.oauthScopes = []; + for (var j = 0; j < message.oauthScopes.length; ++j) + object.oauthScopes[j] = message.oauthScopes[j]; + } + if (message.addOns != null && message.hasOwnProperty("addOns")) + object.addOns = $root.google.cloud.gsuiteaddons.v1.AddOns.toObject(message.addOns, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; + + /** + * Converts this Deployment to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @instance + * @returns {Object.} JSON object + */ + Deployment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Deployment + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.Deployment + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Deployment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.Deployment"; + }; + + return Deployment; + })(); + + v1.AddOns = (function() { + + /** + * Properties of an AddOns. + * @memberof google.cloud.gsuiteaddons.v1 + * @interface IAddOns + * @property {google.apps.script.type.ICommonAddOnManifest|null} [common] AddOns common + * @property {google.apps.script.type.gmail.IGmailAddOnManifest|null} [gmail] AddOns gmail + * @property {google.apps.script.type.drive.IDriveAddOnManifest|null} [drive] AddOns drive + * @property {google.apps.script.type.calendar.ICalendarAddOnManifest|null} [calendar] AddOns calendar + * @property {google.apps.script.type.docs.IDocsAddOnManifest|null} [docs] AddOns docs + * @property {google.apps.script.type.sheets.ISheetsAddOnManifest|null} [sheets] AddOns sheets + * @property {google.apps.script.type.slides.ISlidesAddOnManifest|null} [slides] AddOns slides + * @property {google.apps.script.type.IHttpOptions|null} [httpOptions] AddOns httpOptions + */ + + /** + * Constructs a new AddOns. + * @memberof google.cloud.gsuiteaddons.v1 + * @classdesc Represents an AddOns. + * @implements IAddOns + * @constructor + * @param {google.cloud.gsuiteaddons.v1.IAddOns=} [properties] Properties to set + */ + function AddOns(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]]; + } + + /** + * AddOns common. + * @member {google.apps.script.type.ICommonAddOnManifest|null|undefined} common + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @instance + */ + AddOns.prototype.common = null; + + /** + * AddOns gmail. + * @member {google.apps.script.type.gmail.IGmailAddOnManifest|null|undefined} gmail + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @instance + */ + AddOns.prototype.gmail = null; + + /** + * AddOns drive. + * @member {google.apps.script.type.drive.IDriveAddOnManifest|null|undefined} drive + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @instance + */ + AddOns.prototype.drive = null; + + /** + * AddOns calendar. + * @member {google.apps.script.type.calendar.ICalendarAddOnManifest|null|undefined} calendar + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @instance + */ + AddOns.prototype.calendar = null; + + /** + * AddOns docs. + * @member {google.apps.script.type.docs.IDocsAddOnManifest|null|undefined} docs + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @instance + */ + AddOns.prototype.docs = null; + + /** + * AddOns sheets. + * @member {google.apps.script.type.sheets.ISheetsAddOnManifest|null|undefined} sheets + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @instance + */ + AddOns.prototype.sheets = null; + + /** + * AddOns slides. + * @member {google.apps.script.type.slides.ISlidesAddOnManifest|null|undefined} slides + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @instance + */ + AddOns.prototype.slides = null; + + /** + * AddOns httpOptions. + * @member {google.apps.script.type.IHttpOptions|null|undefined} httpOptions + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @instance + */ + AddOns.prototype.httpOptions = null; + + /** + * Creates a new AddOns instance using the specified properties. + * @function create + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @static + * @param {google.cloud.gsuiteaddons.v1.IAddOns=} [properties] Properties to set + * @returns {google.cloud.gsuiteaddons.v1.AddOns} AddOns instance + */ + AddOns.create = function create(properties) { + return new AddOns(properties); + }; + + /** + * Encodes the specified AddOns message. Does not implicitly {@link google.cloud.gsuiteaddons.v1.AddOns.verify|verify} messages. + * @function encode + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @static + * @param {google.cloud.gsuiteaddons.v1.IAddOns} message AddOns message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddOns.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.apps.script.type.CommonAddOnManifest.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.gmail != null && Object.hasOwnProperty.call(message, "gmail")) + $root.google.apps.script.type.gmail.GmailAddOnManifest.encode(message.gmail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.drive != null && Object.hasOwnProperty.call(message, "drive")) + $root.google.apps.script.type.drive.DriveAddOnManifest.encode(message.drive, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.calendar != null && Object.hasOwnProperty.call(message, "calendar")) + $root.google.apps.script.type.calendar.CalendarAddOnManifest.encode(message.calendar, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.docs != null && Object.hasOwnProperty.call(message, "docs")) + $root.google.apps.script.type.docs.DocsAddOnManifest.encode(message.docs, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.sheets != null && Object.hasOwnProperty.call(message, "sheets")) + $root.google.apps.script.type.sheets.SheetsAddOnManifest.encode(message.sheets, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.slides != null && Object.hasOwnProperty.call(message, "slides")) + $root.google.apps.script.type.slides.SlidesAddOnManifest.encode(message.slides, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.httpOptions != null && Object.hasOwnProperty.call(message, "httpOptions")) + $root.google.apps.script.type.HttpOptions.encode(message.httpOptions, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AddOns message, length delimited. Does not implicitly {@link google.cloud.gsuiteaddons.v1.AddOns.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @static + * @param {google.cloud.gsuiteaddons.v1.IAddOns} message AddOns message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddOns.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddOns message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.gsuiteaddons.v1.AddOns} AddOns + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddOns.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.gsuiteaddons.v1.AddOns(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.apps.script.type.CommonAddOnManifest.decode(reader, reader.uint32()); + break; + } + case 2: { + message.gmail = $root.google.apps.script.type.gmail.GmailAddOnManifest.decode(reader, reader.uint32()); + break; + } + case 5: { + message.drive = $root.google.apps.script.type.drive.DriveAddOnManifest.decode(reader, reader.uint32()); + break; + } + case 6: { + message.calendar = $root.google.apps.script.type.calendar.CalendarAddOnManifest.decode(reader, reader.uint32()); + break; + } + case 7: { + message.docs = $root.google.apps.script.type.docs.DocsAddOnManifest.decode(reader, reader.uint32()); + break; + } + case 8: { + message.sheets = $root.google.apps.script.type.sheets.SheetsAddOnManifest.decode(reader, reader.uint32()); + break; + } + case 10: { + message.slides = $root.google.apps.script.type.slides.SlidesAddOnManifest.decode(reader, reader.uint32()); + break; + } + case 15: { + message.httpOptions = $root.google.apps.script.type.HttpOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AddOns message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.gsuiteaddons.v1.AddOns} AddOns + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddOns.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AddOns message. + * @function verify + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddOns.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.apps.script.type.CommonAddOnManifest.verify(message.common); + if (error) + return "common." + error; + } + if (message.gmail != null && message.hasOwnProperty("gmail")) { + var error = $root.google.apps.script.type.gmail.GmailAddOnManifest.verify(message.gmail); + if (error) + return "gmail." + error; + } + if (message.drive != null && message.hasOwnProperty("drive")) { + var error = $root.google.apps.script.type.drive.DriveAddOnManifest.verify(message.drive); + if (error) + return "drive." + error; + } + if (message.calendar != null && message.hasOwnProperty("calendar")) { + var error = $root.google.apps.script.type.calendar.CalendarAddOnManifest.verify(message.calendar); + if (error) + return "calendar." + error; + } + if (message.docs != null && message.hasOwnProperty("docs")) { + var error = $root.google.apps.script.type.docs.DocsAddOnManifest.verify(message.docs); + if (error) + return "docs." + error; + } + if (message.sheets != null && message.hasOwnProperty("sheets")) { + var error = $root.google.apps.script.type.sheets.SheetsAddOnManifest.verify(message.sheets); + if (error) + return "sheets." + error; + } + if (message.slides != null && message.hasOwnProperty("slides")) { + var error = $root.google.apps.script.type.slides.SlidesAddOnManifest.verify(message.slides); + if (error) + return "slides." + error; + } + if (message.httpOptions != null && message.hasOwnProperty("httpOptions")) { + var error = $root.google.apps.script.type.HttpOptions.verify(message.httpOptions); + if (error) + return "httpOptions." + error; + } + return null; + }; + + /** + * Creates an AddOns message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.gsuiteaddons.v1.AddOns} AddOns + */ + AddOns.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.gsuiteaddons.v1.AddOns) + return object; + var message = new $root.google.cloud.gsuiteaddons.v1.AddOns(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.AddOns.common: object expected"); + message.common = $root.google.apps.script.type.CommonAddOnManifest.fromObject(object.common); + } + if (object.gmail != null) { + if (typeof object.gmail !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.AddOns.gmail: object expected"); + message.gmail = $root.google.apps.script.type.gmail.GmailAddOnManifest.fromObject(object.gmail); + } + if (object.drive != null) { + if (typeof object.drive !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.AddOns.drive: object expected"); + message.drive = $root.google.apps.script.type.drive.DriveAddOnManifest.fromObject(object.drive); + } + if (object.calendar != null) { + if (typeof object.calendar !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.AddOns.calendar: object expected"); + message.calendar = $root.google.apps.script.type.calendar.CalendarAddOnManifest.fromObject(object.calendar); + } + if (object.docs != null) { + if (typeof object.docs !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.AddOns.docs: object expected"); + message.docs = $root.google.apps.script.type.docs.DocsAddOnManifest.fromObject(object.docs); + } + if (object.sheets != null) { + if (typeof object.sheets !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.AddOns.sheets: object expected"); + message.sheets = $root.google.apps.script.type.sheets.SheetsAddOnManifest.fromObject(object.sheets); + } + if (object.slides != null) { + if (typeof object.slides !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.AddOns.slides: object expected"); + message.slides = $root.google.apps.script.type.slides.SlidesAddOnManifest.fromObject(object.slides); + } + if (object.httpOptions != null) { + if (typeof object.httpOptions !== "object") + throw TypeError(".google.cloud.gsuiteaddons.v1.AddOns.httpOptions: object expected"); + message.httpOptions = $root.google.apps.script.type.HttpOptions.fromObject(object.httpOptions); + } + return message; + }; + + /** + * Creates a plain object from an AddOns message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @static + * @param {google.cloud.gsuiteaddons.v1.AddOns} message AddOns + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddOns.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.common = null; + object.gmail = null; + object.drive = null; + object.calendar = null; + object.docs = null; + object.sheets = null; + object.slides = null; + object.httpOptions = null; + } + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.apps.script.type.CommonAddOnManifest.toObject(message.common, options); + if (message.gmail != null && message.hasOwnProperty("gmail")) + object.gmail = $root.google.apps.script.type.gmail.GmailAddOnManifest.toObject(message.gmail, options); + if (message.drive != null && message.hasOwnProperty("drive")) + object.drive = $root.google.apps.script.type.drive.DriveAddOnManifest.toObject(message.drive, options); + if (message.calendar != null && message.hasOwnProperty("calendar")) + object.calendar = $root.google.apps.script.type.calendar.CalendarAddOnManifest.toObject(message.calendar, options); + if (message.docs != null && message.hasOwnProperty("docs")) + object.docs = $root.google.apps.script.type.docs.DocsAddOnManifest.toObject(message.docs, options); + if (message.sheets != null && message.hasOwnProperty("sheets")) + object.sheets = $root.google.apps.script.type.sheets.SheetsAddOnManifest.toObject(message.sheets, options); + if (message.slides != null && message.hasOwnProperty("slides")) + object.slides = $root.google.apps.script.type.slides.SlidesAddOnManifest.toObject(message.slides, options); + if (message.httpOptions != null && message.hasOwnProperty("httpOptions")) + object.httpOptions = $root.google.apps.script.type.HttpOptions.toObject(message.httpOptions, options); + return object; + }; + + /** + * Converts this AddOns to JSON. + * @function toJSON + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @instance + * @returns {Object.} JSON object + */ + AddOns.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AddOns + * @function getTypeUrl + * @memberof google.cloud.gsuiteaddons.v1.AddOns + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddOns.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.gsuiteaddons.v1.AddOns"; + }; + + return AddOns; + })(); + + return v1; + })(); + + return gsuiteaddons; + })(); + + return cloud; + })(); + + return google; + })(); + + return $root; +}); diff --git a/packages/google-cloud-gsuiteaddons/protos/protos.json b/packages/google-cloud-gsuiteaddons/protos/protos.json new file mode 100644 index 000000000000..538d290145ad --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/protos/protos.json @@ -0,0 +1,2236 @@ +{ + "nested": { + "google": { + "nested": { + "apps": { + "nested": { + "script": { + "nested": { + "type": { + "options": { + "csharp_namespace": "Google.Apps.Script.Type", + "go_package": "google.golang.org/genproto/googleapis/apps/script/type", + "java_multiple_files": true, + "java_outer_classname": "AddOnWidgetSetProto", + "java_package": "com.google.apps.script.type", + "php_namespace": "Google\\Apps\\Script\\Type", + "ruby_package": "Google::Apps::Script::Type" + }, + "nested": { + "AddOnWidgetSet": { + "fields": { + "usedWidgets": { + "rule": "repeated", + "type": "WidgetType", + "id": 1 + } + }, + "nested": { + "WidgetType": { + "values": { + "WIDGET_TYPE_UNSPECIFIED": 0, + "DATE_PICKER": 1, + "STYLED_BUTTONS": 2, + "PERSISTENT_FORMS": 3, + "FIXED_FOOTER": 4, + "UPDATE_SUBJECT_AND_RECIPIENTS": 5, + "GRID_WIDGET": 6, + "ADDON_COMPOSE_UI_ACTION": 7 + } + } + } + }, + "calendar": { + "options": { + "csharp_namespace": "Google.Apps.Script.Type.Calendar", + "go_package": "google.golang.org/genproto/googleapis/apps/script/type/calendar", + "java_multiple_files": true, + "java_outer_classname": "CalendarAddOnManifestProto", + "java_package": "com.google.apps.script.type.calendar", + "php_namespace": "Google\\Apps\\Script\\Type\\Calendar", + "ruby_package": "Google::Apps::Script::Type::Calendar" + }, + "nested": { + "CalendarAddOnManifest": { + "fields": { + "homepageTrigger": { + "type": "google.apps.script.type.HomepageExtensionPoint", + "id": 6 + }, + "conferenceSolution": { + "rule": "repeated", + "type": "ConferenceSolution", + "id": 3 + }, + "createSettingsUrlFunction": { + "type": "string", + "id": 5 + }, + "eventOpenTrigger": { + "type": "CalendarExtensionPoint", + "id": 10 + }, + "eventUpdateTrigger": { + "type": "CalendarExtensionPoint", + "id": 11 + }, + "currentEventAccess": { + "type": "EventAccess", + "id": 12 + } + }, + "nested": { + "EventAccess": { + "values": { + "UNSPECIFIED": 0, + "METADATA": 1, + "READ": 3, + "WRITE": 4, + "READ_WRITE": 5 + } + } + } + }, + "ConferenceSolution": { + "fields": { + "onCreateFunction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "id": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "name": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "logoUrl": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CalendarExtensionPoint": { + "fields": { + "runFunction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + } + } + }, + "MenuItemExtensionPoint": { + "fields": { + "runFunction": { + "type": "string", + "id": 1 + }, + "label": { + "type": "string", + "id": 2 + }, + "logoUrl": { + "type": "string", + "id": 3 + } + } + }, + "HomepageExtensionPoint": { + "fields": { + "runFunction": { + "type": "string", + "id": 1 + }, + "enabled": { + "type": "google.protobuf.BoolValue", + "id": 2 + } + } + }, + "UniversalActionExtensionPoint": { + "oneofs": { + "actionType": { + "oneof": [ + "openLink", + "runFunction" + ] + } + }, + "fields": { + "label": { + "type": "string", + "id": 1 + }, + "openLink": { + "type": "string", + "id": 2 + }, + "runFunction": { + "type": "string", + "id": 3 + } + } + }, + "docs": { + "options": { + "csharp_namespace": "Google.Apps.Script.Type.Docs", + "go_package": "google.golang.org/genproto/googleapis/apps/script/type/docs", + "java_multiple_files": true, + "java_outer_classname": "DocsAddOnManifestProto", + "java_package": "com.google.apps.script.type.docs", + "php_namespace": "Google\\Apps\\Script\\Type\\Docs", + "ruby_package": "Google::Apps::Script::Type::Docs" + }, + "nested": { + "DocsAddOnManifest": { + "fields": { + "homepageTrigger": { + "type": "google.apps.script.type.HomepageExtensionPoint", + "id": 1 + }, + "onFileScopeGrantedTrigger": { + "type": "DocsExtensionPoint", + "id": 2 + } + } + }, + "DocsExtensionPoint": { + "fields": { + "runFunction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + } + } + }, + "drive": { + "options": { + "csharp_namespace": "Google.Apps.Script.Type.Drive", + "go_package": "google.golang.org/genproto/googleapis/apps/script/type/drive", + "java_multiple_files": true, + "java_outer_classname": "DriveAddOnManifestProto", + "java_package": "com.google.apps.script.type.drive", + "php_namespace": "Google\\Apps\\Script\\Type\\Drive", + "ruby_package": "Google::Apps::Script::Type::Drive" + }, + "nested": { + "DriveAddOnManifest": { + "fields": { + "homepageTrigger": { + "type": "google.apps.script.type.HomepageExtensionPoint", + "id": 1 + }, + "onItemsSelectedTrigger": { + "type": "DriveExtensionPoint", + "id": 2 + } + } + }, + "DriveExtensionPoint": { + "fields": { + "runFunction": { + "type": "string", + "id": 1 + } + } + } + } + }, + "gmail": { + "options": { + "csharp_namespace": "Google.Apps.Script.Type.Gmail", + "go_package": "google.golang.org/genproto/googleapis/apps/script/type/gmail", + "java_multiple_files": true, + "java_outer_classname": "GmailAddOnManifestProto", + "java_package": "com.google.apps.script.type.gmail", + "php_namespace": "Google\\Apps\\Script\\Type\\Gmail", + "ruby_package": "Google::Apps::Script::Type::Gmail" + }, + "nested": { + "GmailAddOnManifest": { + "fields": { + "homepageTrigger": { + "type": "google.apps.script.type.HomepageExtensionPoint", + "id": 14 + }, + "contextualTriggers": { + "rule": "repeated", + "type": "ContextualTrigger", + "id": 3 + }, + "universalActions": { + "rule": "repeated", + "type": "UniversalAction", + "id": 4 + }, + "composeTrigger": { + "type": "ComposeTrigger", + "id": 12 + }, + "authorizationCheckFunction": { + "type": "string", + "id": 7 + } + } + }, + "UniversalAction": { + "oneofs": { + "actionType": { + "oneof": [ + "openLink", + "runFunction" + ] + } + }, + "fields": { + "text": { + "type": "string", + "id": 1 + }, + "openLink": { + "type": "string", + "id": 2 + }, + "runFunction": { + "type": "string", + "id": 3 + } + } + }, + "ComposeTrigger": { + "fields": { + "actions": { + "rule": "repeated", + "type": "google.apps.script.type.MenuItemExtensionPoint", + "id": 5 + }, + "draftAccess": { + "type": "DraftAccess", + "id": 4 + } + }, + "nested": { + "DraftAccess": { + "values": { + "UNSPECIFIED": 0, + "NONE": 1, + "METADATA": 2 + } + } + } + }, + "ContextualTrigger": { + "oneofs": { + "trigger": { + "oneof": [ + "unconditional" + ] + } + }, + "fields": { + "unconditional": { + "type": "UnconditionalTrigger", + "id": 1 + }, + "onTriggerFunction": { + "type": "string", + "id": 4 + } + } + }, + "UnconditionalTrigger": { + "fields": {} + } + } + }, + "CommonAddOnManifest": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "logoUrl": { + "type": "string", + "id": 2 + }, + "layoutProperties": { + "type": "LayoutProperties", + "id": 3 + }, + "addOnWidgetSet": { + "type": "AddOnWidgetSet", + "id": 4 + }, + "useLocaleFromApp": { + "type": "bool", + "id": 5 + }, + "homepageTrigger": { + "type": "HomepageExtensionPoint", + "id": 6 + }, + "universalActions": { + "rule": "repeated", + "type": "UniversalActionExtensionPoint", + "id": 7 + }, + "openLinkUrlPrefixes": { + "type": "google.protobuf.ListValue", + "id": 8 + } + } + }, + "LayoutProperties": { + "fields": { + "primaryColor": { + "type": "string", + "id": 1 + }, + "secondaryColor": { + "type": "string", + "id": 2 + } + } + }, + "HttpOptions": { + "fields": { + "authorizationHeader": { + "type": "HttpAuthorizationHeader", + "id": 1 + } + } + }, + "HttpAuthorizationHeader": { + "values": { + "HTTP_AUTHORIZATION_HEADER_UNSPECIFIED": 0, + "SYSTEM_ID_TOKEN": 1, + "USER_ID_TOKEN": 2, + "NONE": 3 + } + }, + "sheets": { + "options": { + "csharp_namespace": "Google.Apps.Script.Type.Sheets", + "go_package": "google.golang.org/genproto/googleapis/apps/script/type/sheets", + "java_multiple_files": true, + "java_outer_classname": "SheetsAddOnManifestProto", + "java_package": "com.google.apps.script.type.sheets", + "php_namespace": "Google\\Apps\\Script\\Type\\Sheets", + "ruby_package": "Google::Apps::Script::Type::Sheets" + }, + "nested": { + "SheetsAddOnManifest": { + "fields": { + "homepageTrigger": { + "type": "google.apps.script.type.HomepageExtensionPoint", + "id": 3 + }, + "onFileScopeGrantedTrigger": { + "type": "SheetsExtensionPoint", + "id": 5 + } + } + }, + "SheetsExtensionPoint": { + "fields": { + "runFunction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + } + } + }, + "slides": { + "options": { + "csharp_namespace": "Google.Apps.Script.Type.Slides", + "go_package": "google.golang.org/genproto/googleapis/apps/script/type/slides", + "java_multiple_files": true, + "java_outer_classname": "SlidesAddOnManifestProto", + "java_package": "com.google.apps.script.type.slides", + "php_namespace": "Google\\Apps\\Script\\Type\\Slides", + "ruby_package": "Google::Apps::Script::Type::Slides" + }, + "nested": { + "SlidesAddOnManifest": { + "fields": { + "homepageTrigger": { + "type": "google.apps.script.type.HomepageExtensionPoint", + "id": 1 + }, + "onFileScopeGrantedTrigger": { + "type": "SlidesExtensionPoint", + "id": 2 + } + } + }, + "SlidesExtensionPoint": { + "fields": { + "runFunction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + } + } + } + } + } + } + } + } + }, + "api": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", + "java_multiple_files": true, + "java_outer_classname": "ResourceProto", + "java_package": "com.google.api", + "objc_class_prefix": "GAPI", + "cc_enable_arenas": true + }, + "nested": { + "fieldBehavior": { + "rule": "repeated", + "type": "google.api.FieldBehavior", + "id": 1052, + "extend": "google.protobuf.FieldOptions" + }, + "FieldBehavior": { + "values": { + "FIELD_BEHAVIOR_UNSPECIFIED": 0, + "OPTIONAL": 1, + "REQUIRED": 2, + "OUTPUT_ONLY": 3, + "INPUT_ONLY": 4, + "IMMUTABLE": 5, + "UNORDERED_LIST": 6, + "NON_EMPTY_DEFAULT": 7 + } + }, + "http": { + "type": "HttpRule", + "id": 72295728, + "extend": "google.protobuf.MethodOptions" + }, + "Http": { + "fields": { + "rules": { + "rule": "repeated", + "type": "HttpRule", + "id": 1 + }, + "fullyDecodeReservedExpansion": { + "type": "bool", + "id": 2 + } + } + }, + "HttpRule": { + "oneofs": { + "pattern": { + "oneof": [ + "get", + "put", + "post", + "delete", + "patch", + "custom" + ] + } + }, + "fields": { + "selector": { + "type": "string", + "id": 1 + }, + "get": { + "type": "string", + "id": 2 + }, + "put": { + "type": "string", + "id": 3 + }, + "post": { + "type": "string", + "id": 4 + }, + "delete": { + "type": "string", + "id": 5 + }, + "patch": { + "type": "string", + "id": 6 + }, + "custom": { + "type": "CustomHttpPattern", + "id": 8 + }, + "body": { + "type": "string", + "id": 7 + }, + "responseBody": { + "type": "string", + "id": 12 + }, + "additionalBindings": { + "rule": "repeated", + "type": "HttpRule", + "id": 11 + } + } + }, + "CustomHttpPattern": { + "fields": { + "kind": { + "type": "string", + "id": 1 + }, + "path": { + "type": "string", + "id": 2 + } + } + }, + "methodSignature": { + "rule": "repeated", + "type": "string", + "id": 1051, + "extend": "google.protobuf.MethodOptions" + }, + "defaultHost": { + "type": "string", + "id": 1049, + "extend": "google.protobuf.ServiceOptions" + }, + "oauthScopes": { + "type": "string", + "id": 1050, + "extend": "google.protobuf.ServiceOptions" + }, + "resourceReference": { + "type": "google.api.ResourceReference", + "id": 1055, + "extend": "google.protobuf.FieldOptions" + }, + "resourceDefinition": { + "rule": "repeated", + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.FileOptions" + }, + "resource": { + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.MessageOptions" + }, + "ResourceDescriptor": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "pattern": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "nameField": { + "type": "string", + "id": 3 + }, + "history": { + "type": "History", + "id": 4 + }, + "plural": { + "type": "string", + "id": 5 + }, + "singular": { + "type": "string", + "id": 6 + }, + "style": { + "rule": "repeated", + "type": "Style", + "id": 10 + } + }, + "nested": { + "History": { + "values": { + "HISTORY_UNSPECIFIED": 0, + "ORIGINALLY_SINGLE_PATTERN": 1, + "FUTURE_MULTI_PATTERN": 2 + } + }, + "Style": { + "values": { + "STYLE_UNSPECIFIED": 0, + "DECLARATIVE_FRIENDLY": 1 + } + } + } + }, + "ResourceReference": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "childType": { + "type": "string", + "id": 2 + } + } + } + } + }, + "protobuf": { + "options": { + "go_package": "google.golang.org/protobuf/types/descriptorpb", + "java_package": "com.google.protobuf", + "java_outer_classname": "DescriptorProtos", + "csharp_namespace": "Google.Protobuf.Reflection", + "objc_class_prefix": "GPB", + "cc_enable_arenas": true, + "optimize_for": "SPEED" + }, + "nested": { + "FileDescriptorSet": { + "fields": { + "file": { + "rule": "repeated", + "type": "FileDescriptorProto", + "id": 1 + } + } + }, + "FileDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "package": { + "type": "string", + "id": 2 + }, + "dependency": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "publicDependency": { + "rule": "repeated", + "type": "int32", + "id": 10, + "options": { + "packed": false + } + }, + "weakDependency": { + "rule": "repeated", + "type": "int32", + "id": 11, + "options": { + "packed": false + } + }, + "messageType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 4 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 5 + }, + "service": { + "rule": "repeated", + "type": "ServiceDescriptorProto", + "id": 6 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 7 + }, + "options": { + "type": "FileOptions", + "id": 8 + }, + "sourceCodeInfo": { + "type": "SourceCodeInfo", + "id": 9 + }, + "syntax": { + "type": "string", + "id": 12 + }, + "edition": { + "type": "string", + "id": 13 + } + } + }, + "DescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "field": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 2 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 6 + }, + "nestedType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 3 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 4 + }, + "extensionRange": { + "rule": "repeated", + "type": "ExtensionRange", + "id": 5 + }, + "oneofDecl": { + "rule": "repeated", + "type": "OneofDescriptorProto", + "id": 8 + }, + "options": { + "type": "MessageOptions", + "id": 7 + }, + "reservedRange": { + "rule": "repeated", + "type": "ReservedRange", + "id": 9 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 10 + } + }, + "nested": { + "ExtensionRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "ExtensionRangeOptions", + "id": 3 + } + } + }, + "ReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "ExtensionRangeOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "FieldDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 3 + }, + "label": { + "type": "Label", + "id": 4 + }, + "type": { + "type": "Type", + "id": 5 + }, + "typeName": { + "type": "string", + "id": 6 + }, + "extendee": { + "type": "string", + "id": 2 + }, + "defaultValue": { + "type": "string", + "id": 7 + }, + "oneofIndex": { + "type": "int32", + "id": 9 + }, + "jsonName": { + "type": "string", + "id": 10 + }, + "options": { + "type": "FieldOptions", + "id": 8 + }, + "proto3Optional": { + "type": "bool", + "id": 17 + } + }, + "nested": { + "Type": { + "values": { + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18 + } + }, + "Label": { + "values": { + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3 + } + } + } + }, + "OneofDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "options": { + "type": "OneofOptions", + "id": 2 + } + } + }, + "EnumDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "value": { + "rule": "repeated", + "type": "EnumValueDescriptorProto", + "id": 2 + }, + "options": { + "type": "EnumOptions", + "id": 3 + }, + "reservedRange": { + "rule": "repeated", + "type": "EnumReservedRange", + "id": 4 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 5 + } + }, + "nested": { + "EnumReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "EnumValueDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "EnumValueOptions", + "id": 3 + } + } + }, + "ServiceDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "method": { + "rule": "repeated", + "type": "MethodDescriptorProto", + "id": 2 + }, + "options": { + "type": "ServiceOptions", + "id": 3 + } + } + }, + "MethodDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "inputType": { + "type": "string", + "id": 2 + }, + "outputType": { + "type": "string", + "id": 3 + }, + "options": { + "type": "MethodOptions", + "id": 4 + }, + "clientStreaming": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "serverStreaming": { + "type": "bool", + "id": 6, + "options": { + "default": false + } + } + } + }, + "FileOptions": { + "fields": { + "javaPackage": { + "type": "string", + "id": 1 + }, + "javaOuterClassname": { + "type": "string", + "id": 8 + }, + "javaMultipleFiles": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "javaGenerateEqualsAndHash": { + "type": "bool", + "id": 20, + "options": { + "deprecated": true + } + }, + "javaStringCheckUtf8": { + "type": "bool", + "id": 27, + "options": { + "default": false + } + }, + "optimizeFor": { + "type": "OptimizeMode", + "id": 9, + "options": { + "default": "SPEED" + } + }, + "goPackage": { + "type": "string", + "id": 11 + }, + "ccGenericServices": { + "type": "bool", + "id": 16, + "options": { + "default": false + } + }, + "javaGenericServices": { + "type": "bool", + "id": 17, + "options": { + "default": false + } + }, + "pyGenericServices": { + "type": "bool", + "id": 18, + "options": { + "default": false + } + }, + "phpGenericServices": { + "type": "bool", + "id": 42, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 23, + "options": { + "default": false + } + }, + "ccEnableArenas": { + "type": "bool", + "id": 31, + "options": { + "default": true + } + }, + "objcClassPrefix": { + "type": "string", + "id": 36 + }, + "csharpNamespace": { + "type": "string", + "id": 37 + }, + "swiftPrefix": { + "type": "string", + "id": 39 + }, + "phpClassPrefix": { + "type": "string", + "id": 40 + }, + "phpNamespace": { + "type": "string", + "id": 41 + }, + "phpMetadataNamespace": { + "type": "string", + "id": 44 + }, + "rubyPackage": { + "type": "string", + "id": 45 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 38, + 38 + ] + ], + "nested": { + "OptimizeMode": { + "values": { + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3 + } + } + } + }, + "MessageOptions": { + "fields": { + "messageSetWireFormat": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "noStandardDescriptorAccessor": { + "type": "bool", + "id": 2, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "mapEntry": { + "type": "bool", + "id": 7 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ], + [ + 5, + 5 + ], + [ + 6, + 6 + ], + [ + 8, + 8 + ], + [ + 9, + 9 + ] + ] + }, + "FieldOptions": { + "fields": { + "ctype": { + "type": "CType", + "id": 1, + "options": { + "default": "STRING" + } + }, + "packed": { + "type": "bool", + "id": 2 + }, + "jstype": { + "type": "JSType", + "id": 6, + "options": { + "default": "JS_NORMAL" + } + }, + "lazy": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "weak": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ] + ], + "nested": { + "CType": { + "values": { + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2 + } + }, + "JSType": { + "values": { + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2 + } + } + } + }, + "OneofOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "EnumOptions": { + "fields": { + "allowAlias": { + "type": "bool", + "id": 2 + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 5, + 5 + ] + ] + }, + "EnumValueOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "ServiceOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "MethodOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "idempotencyLevel": { + "type": "IdempotencyLevel", + "id": 34, + "options": { + "default": "IDEMPOTENCY_UNKNOWN" + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "nested": { + "IdempotencyLevel": { + "values": { + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2 + } + } + } + }, + "UninterpretedOption": { + "fields": { + "name": { + "rule": "repeated", + "type": "NamePart", + "id": 2 + }, + "identifierValue": { + "type": "string", + "id": 3 + }, + "positiveIntValue": { + "type": "uint64", + "id": 4 + }, + "negativeIntValue": { + "type": "int64", + "id": 5 + }, + "doubleValue": { + "type": "double", + "id": 6 + }, + "stringValue": { + "type": "bytes", + "id": 7 + }, + "aggregateValue": { + "type": "string", + "id": 8 + } + }, + "nested": { + "NamePart": { + "fields": { + "namePart": { + "rule": "required", + "type": "string", + "id": 1 + }, + "isExtension": { + "rule": "required", + "type": "bool", + "id": 2 + } + } + } + } + }, + "SourceCodeInfo": { + "fields": { + "location": { + "rule": "repeated", + "type": "Location", + "id": 1 + } + }, + "nested": { + "Location": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "span": { + "rule": "repeated", + "type": "int32", + "id": 2 + }, + "leadingComments": { + "type": "string", + "id": 3 + }, + "trailingComments": { + "type": "string", + "id": 4 + }, + "leadingDetachedComments": { + "rule": "repeated", + "type": "string", + "id": 6 + } + } + } + } + }, + "GeneratedCodeInfo": { + "fields": { + "annotation": { + "rule": "repeated", + "type": "Annotation", + "id": 1 + } + }, + "nested": { + "Annotation": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "sourceFile": { + "type": "string", + "id": 2 + }, + "begin": { + "type": "int32", + "id": 3 + }, + "end": { + "type": "int32", + "id": 4 + }, + "semantic": { + "type": "Semantic", + "id": 5 + } + }, + "nested": { + "Semantic": { + "values": { + "NONE": 0, + "SET": 1, + "ALIAS": 2 + } + } + } + } + } + }, + "DoubleValue": { + "fields": { + "value": { + "type": "double", + "id": 1 + } + } + }, + "FloatValue": { + "fields": { + "value": { + "type": "float", + "id": 1 + } + } + }, + "Int64Value": { + "fields": { + "value": { + "type": "int64", + "id": 1 + } + } + }, + "UInt64Value": { + "fields": { + "value": { + "type": "uint64", + "id": 1 + } + } + }, + "Int32Value": { + "fields": { + "value": { + "type": "int32", + "id": 1 + } + } + }, + "UInt32Value": { + "fields": { + "value": { + "type": "uint32", + "id": 1 + } + } + }, + "BoolValue": { + "fields": { + "value": { + "type": "bool", + "id": 1 + } + } + }, + "StringValue": { + "fields": { + "value": { + "type": "string", + "id": 1 + } + } + }, + "BytesValue": { + "fields": { + "value": { + "type": "bytes", + "id": 1 + } + } + }, + "Struct": { + "fields": { + "fields": { + "keyType": "string", + "type": "Value", + "id": 1 + } + } + }, + "Value": { + "oneofs": { + "kind": { + "oneof": [ + "nullValue", + "numberValue", + "stringValue", + "boolValue", + "structValue", + "listValue" + ] + } + }, + "fields": { + "nullValue": { + "type": "NullValue", + "id": 1 + }, + "numberValue": { + "type": "double", + "id": 2 + }, + "stringValue": { + "type": "string", + "id": 3 + }, + "boolValue": { + "type": "bool", + "id": 4 + }, + "structValue": { + "type": "Struct", + "id": 5 + }, + "listValue": { + "type": "ListValue", + "id": 6 + } + } + }, + "NullValue": { + "values": { + "NULL_VALUE": 0 + } + }, + "ListValue": { + "fields": { + "values": { + "rule": "repeated", + "type": "Value", + "id": 1 + } + } + }, + "Empty": { + "fields": {} + } + } + }, + "cloud": { + "nested": { + "gsuiteaddons": { + "nested": { + "v1": { + "options": { + "csharp_namespace": "Google.Cloud.GSuiteAddOns.V1", + "go_package": "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb;gsuiteaddonspb", + "java_multiple_files": true, + "java_outer_classname": "GSuiteAddOnsProto", + "java_package": "com.google.cloud.gsuiteaddons.v1", + "php_namespace": "Google\\Cloud\\GSuiteAddOns\\V1", + "ruby_package": "Google::Cloud::GSuiteAddOns::V1" + }, + "nested": { + "GSuiteAddOns": { + "options": { + "(google.api.default_host)": "gsuiteaddons.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "GetAuthorization": { + "requestType": "GetAuthorizationRequest", + "responseType": "Authorization", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/authorization}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/authorization}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateDeployment": { + "requestType": "CreateDeploymentRequest", + "responseType": "Deployment", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*}/deployments", + "(google.api.http).body": "deployment", + "(google.api.method_signature)": "parent,deployment,deployment_id" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*}/deployments", + "body": "deployment" + } + }, + { + "(google.api.method_signature)": "parent,deployment,deployment_id" + } + ] + }, + "ReplaceDeployment": { + "requestType": "ReplaceDeploymentRequest", + "responseType": "Deployment", + "options": { + "(google.api.http).put": "/v1/{deployment.name=projects/*/deployments/*}", + "(google.api.http).body": "deployment", + "(google.api.method_signature)": "deployment" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v1/{deployment.name=projects/*/deployments/*}", + "body": "deployment" + } + }, + { + "(google.api.method_signature)": "deployment" + } + ] + }, + "GetDeployment": { + "requestType": "GetDeploymentRequest", + "responseType": "Deployment", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/deployments/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/deployments/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListDeployments": { + "requestType": "ListDeploymentsRequest", + "responseType": "ListDeploymentsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*}/deployments", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*}/deployments" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteDeployment": { + "requestType": "DeleteDeploymentRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/deployments/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/deployments/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "InstallDeployment": { + "requestType": "InstallDeploymentRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/deployments/*}:install", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/deployments/*}:install", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UninstallDeployment": { + "requestType": "UninstallDeploymentRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/deployments/*}:uninstall", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/deployments/*}:uninstall", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetInstallStatus": { + "requestType": "GetInstallStatusRequest", + "responseType": "InstallStatus", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/deployments/*/installStatus}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/deployments/*/installStatus}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + } + } + }, + "GetAuthorizationRequest": { + "fields": { + "name": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "gsuiteaddons.googleapis.com/Authorization" + } + } + } + }, + "Authorization": { + "options": { + "(google.api.resource).type": "gsuiteaddons.googleapis.com/Authorization", + "(google.api.resource).pattern": "projects/{project}/authorization" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "serviceAccountEmail": { + "type": "string", + "id": 2 + }, + "oauthClientId": { + "type": "string", + "id": 3 + } + } + }, + "CreateDeploymentRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "cloudresourcemanager.googleapis.com/Project" + } + }, + "deploymentId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "deployment": { + "type": "Deployment", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ReplaceDeploymentRequest": { + "fields": { + "deployment": { + "type": "Deployment", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetDeploymentRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "gsuiteaddons.googleapis.com/Deployment" + } + } + } + }, + "ListDeploymentsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "cloudresourcemanager.googleapis.com/Project" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListDeploymentsResponse": { + "fields": { + "deployments": { + "rule": "repeated", + "type": "Deployment", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteDeploymentRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "gsuiteaddons.googleapis.com/Deployment" + } + }, + "etag": { + "type": "string", + "id": 2 + } + } + }, + "InstallDeploymentRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "gsuiteaddons.googleapis.com/Deployment" + } + } + } + }, + "UninstallDeploymentRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "gsuiteaddons.googleapis.com/Deployment" + } + } + } + }, + "GetInstallStatusRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "gsuiteaddons.googleapis.com/InstallStatus" + } + } + } + }, + "InstallStatus": { + "options": { + "(google.api.resource).type": "gsuiteaddons.googleapis.com/InstallStatus", + "(google.api.resource).pattern": "projects/{project}/deployments/{deployment}/installStatus" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "installed": { + "type": "google.protobuf.BoolValue", + "id": 2 + } + } + }, + "Deployment": { + "options": { + "(google.api.resource).type": "gsuiteaddons.googleapis.com/Deployment", + "(google.api.resource).pattern": "projects/{project}/deployments/{deployment}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "oauthScopes": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "addOns": { + "type": "AddOns", + "id": 3 + }, + "etag": { + "type": "string", + "id": 5 + } + } + }, + "AddOns": { + "fields": { + "common": { + "type": "google.apps.script.type.CommonAddOnManifest", + "id": 1 + }, + "gmail": { + "type": "google.apps.script.type.gmail.GmailAddOnManifest", + "id": 2 + }, + "drive": { + "type": "google.apps.script.type.drive.DriveAddOnManifest", + "id": 5 + }, + "calendar": { + "type": "google.apps.script.type.calendar.CalendarAddOnManifest", + "id": 6 + }, + "docs": { + "type": "google.apps.script.type.docs.DocsAddOnManifest", + "id": 7 + }, + "sheets": { + "type": "google.apps.script.type.sheets.SheetsAddOnManifest", + "id": 8 + }, + "slides": { + "type": "google.apps.script.type.slides.SlidesAddOnManifest", + "id": 10 + }, + "httpOptions": { + "type": "google.apps.script.type.HttpOptions", + "id": 15 + } + } + } + } + } + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/packages/google-cloud-gsuiteaddons/samples/README.md b/packages/google-cloud-gsuiteaddons/samples/README.md new file mode 100644 index 000000000000..c4f51b895f62 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/README.md @@ -0,0 +1,230 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Google Workspace Add-ons API: Node.js Samples](https://github.com/googleapis/google-cloud-node) + +[![Open in Cloud Shell][shell_img]][shell_link] + + + +## Table of Contents + +* [Before you begin](#before-you-begin) +* [Samples](#samples) + * [G_suite_add_ons.create_deployment](#g_suite_add_ons.create_deployment) + * [G_suite_add_ons.delete_deployment](#g_suite_add_ons.delete_deployment) + * [G_suite_add_ons.get_authorization](#g_suite_add_ons.get_authorization) + * [G_suite_add_ons.get_deployment](#g_suite_add_ons.get_deployment) + * [G_suite_add_ons.get_install_status](#g_suite_add_ons.get_install_status) + * [G_suite_add_ons.install_deployment](#g_suite_add_ons.install_deployment) + * [G_suite_add_ons.list_deployments](#g_suite_add_ons.list_deployments) + * [G_suite_add_ons.replace_deployment](#g_suite_add_ons.replace_deployment) + * [G_suite_add_ons.uninstall_deployment](#g_suite_add_ons.uninstall_deployment) + * [Quickstart](#quickstart) + * [Quickstart](#quickstart) + +## Before you begin + +Before running the samples, make sure you've followed the steps outlined in +[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library). + +`cd samples` + +`npm install` + +`cd ..` + +## Samples + + + +### G_suite_add_ons.create_deployment + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.create_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.create_deployment.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.create_deployment.js` + + +----- + + + + +### G_suite_add_ons.delete_deployment + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.delete_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.delete_deployment.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.delete_deployment.js` + + +----- + + + + +### G_suite_add_ons.get_authorization + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_authorization.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_authorization.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_authorization.js` + + +----- + + + + +### G_suite_add_ons.get_deployment + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_deployment.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_deployment.js` + + +----- + + + + +### G_suite_add_ons.get_install_status + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_install_status.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_install_status.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_install_status.js` + + +----- + + + + +### G_suite_add_ons.install_deployment + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.install_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.install_deployment.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.install_deployment.js` + + +----- + + + + +### G_suite_add_ons.list_deployments + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.list_deployments.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.list_deployments.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.list_deployments.js` + + +----- + + + + +### G_suite_add_ons.replace_deployment + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.replace_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.replace_deployment.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.replace_deployment.js` + + +----- + + + + +### G_suite_add_ons.uninstall_deployment + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.uninstall_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.uninstall_deployment.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.uninstall_deployment.js` + + +----- + + + + +### Quickstart + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/quickstart.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/quickstart.js` + + +----- + + + + +### Quickstart + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gsuiteaddons/samples/test/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gsuiteaddons/samples/test/quickstart.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-gsuiteaddons/samples/test/quickstart.js` + + + + + + +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=samples/README.md +[product-docs]: developers.google.com/workspace/add-ons/ diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.create_deployment.js b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.create_deployment.js new file mode 100644 index 000000000000..fa9eecd7eb57 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.create_deployment.js @@ -0,0 +1,73 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, deploymentId, deployment) { + // [START gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the project in which to create the deployment. + * Example: `projects/my_project`. + */ + // const parent = 'abc123' + /** + * Required. The id to use for this deployment. The full name of the created + * resource will be `projects//deployments/`. + */ + // const deploymentId = 'abc123' + /** + * Required. The deployment to create (deployment.name cannot be set). + */ + // const deployment = {} + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callCreateDeployment() { + // Construct request + const request = { + parent, + deploymentId, + deployment, + }; + + // Run request + const response = await gsuiteaddonsClient.createDeployment(request); + console.log(response); + } + + callCreateDeployment(); + // [END gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.delete_deployment.js b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.delete_deployment.js new file mode 100644 index 000000000000..126a4ffccf76 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.delete_deployment.js @@ -0,0 +1,67 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The full resource name of the deployment to delete. + * Example: `projects/my_project/deployments/my_deployment`. + */ + // const name = 'abc123' + /** + * The etag of the deployment to delete. + * If this is provided, it must match the server's etag. + */ + // const etag = 'abc123' + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callDeleteDeployment() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gsuiteaddonsClient.deleteDeployment(request); + console.log(response); + } + + callDeleteDeployment(); + // [END gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_authorization.js b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_authorization.js new file mode 100644 index 000000000000..36b8296534e7 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_authorization.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START gsuiteaddons_v1_generated_GSuiteAddOns_GetAuthorization_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the project for which to get the Google Workspace Add-ons + * authorization information. + * Example: `projects/my_project/authorization`. + */ + // const name = 'abc123' + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callGetAuthorization() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gsuiteaddonsClient.getAuthorization(request); + console.log(response); + } + + callGetAuthorization(); + // [END gsuiteaddons_v1_generated_GSuiteAddOns_GetAuthorization_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_deployment.js b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_deployment.js new file mode 100644 index 000000000000..f50131ff3579 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_deployment.js @@ -0,0 +1,62 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START gsuiteaddons_v1_generated_GSuiteAddOns_GetDeployment_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The full resource name of the deployment to get. + * Example: `projects/my_project/deployments/my_deployment`. + */ + // const name = 'abc123' + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callGetDeployment() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gsuiteaddonsClient.getDeployment(request); + console.log(response); + } + + callGetDeployment(); + // [END gsuiteaddons_v1_generated_GSuiteAddOns_GetDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_install_status.js b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_install_status.js new file mode 100644 index 000000000000..bed246f9f5d5 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.get_install_status.js @@ -0,0 +1,62 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START gsuiteaddons_v1_generated_GSuiteAddOns_GetInstallStatus_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The full resource name of the deployment. + * Example: `projects/my_project/deployments/my_deployment/installStatus`. + */ + // const name = 'abc123' + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callGetInstallStatus() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gsuiteaddonsClient.getInstallStatus(request); + console.log(response); + } + + callGetInstallStatus(); + // [END gsuiteaddons_v1_generated_GSuiteAddOns_GetInstallStatus_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.install_deployment.js b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.install_deployment.js new file mode 100644 index 000000000000..ecfb281157fe --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.install_deployment.js @@ -0,0 +1,62 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START gsuiteaddons_v1_generated_GSuiteAddOns_InstallDeployment_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The full resource name of the deployment to install. + * Example: `projects/my_project/deployments/my_deployment`. + */ + // const name = 'abc123' + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callInstallDeployment() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gsuiteaddonsClient.installDeployment(request); + console.log(response); + } + + callInstallDeployment(); + // [END gsuiteaddons_v1_generated_GSuiteAddOns_InstallDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.list_deployments.js b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.list_deployments.js new file mode 100644 index 000000000000..df7b8f978b4c --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.list_deployments.js @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START gsuiteaddons_v1_generated_GSuiteAddOns_ListDeployments_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the project in which to create the deployment. + * Example: `projects/my_project`. + */ + // const parent = 'abc123' + /** + * The maximum number of deployments to return. The service may return fewer + * than this value. + * If unspecified, at most 1000 deployments will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeployments` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callListDeployments() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gsuiteaddonsClient.listDeploymentsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListDeployments(); + // [END gsuiteaddons_v1_generated_GSuiteAddOns_ListDeployments_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.replace_deployment.js b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.replace_deployment.js new file mode 100644 index 000000000000..d697b80a7fae --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.replace_deployment.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(deployment) { + // [START gsuiteaddons_v1_generated_GSuiteAddOns_ReplaceDeployment_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The deployment to create or replace. + */ + // const deployment = {} + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callReplaceDeployment() { + // Construct request + const request = { + deployment, + }; + + // Run request + const response = await gsuiteaddonsClient.replaceDeployment(request); + console.log(response); + } + + callReplaceDeployment(); + // [END gsuiteaddons_v1_generated_GSuiteAddOns_ReplaceDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.uninstall_deployment.js b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.uninstall_deployment.js new file mode 100644 index 000000000000..e879887a9c34 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/g_suite_add_ons.uninstall_deployment.js @@ -0,0 +1,62 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START gsuiteaddons_v1_generated_GSuiteAddOns_UninstallDeployment_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The full resource name of the deployment to install. + * Example: `projects/my_project/deployments/my_deployment`. + */ + // const name = 'abc123' + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callUninstallDeployment() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gsuiteaddonsClient.uninstallDeployment(request); + console.log(response); + } + + callUninstallDeployment(); + // [END gsuiteaddons_v1_generated_GSuiteAddOns_UninstallDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata.google.cloud.gsuiteaddons.v1.json b/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata.google.cloud.gsuiteaddons.v1.json new file mode 100644 index 000000000000..132b60929bb0 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata.google.cloud.gsuiteaddons.v1.json @@ -0,0 +1,395 @@ +{ + "clientLibrary": { + "name": "nodejs-gsuiteaddons", + "version": "0.0.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.gsuiteaddons.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetAuthorization_async", + "title": "GSuiteAddOns getAuthorization Sample", + "origin": "API_DEFINITION", + "description": " Gets the authorization information for deployments in a given project.", + "canonical": true, + "file": "g_suite_add_ons.get_authorization.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAuthorization", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetAuthorization", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gsuiteaddons.v1.Authorization", + "client": { + "shortName": "GSuiteAddOnsClient", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" + }, + "method": { + "shortName": "GetAuthorization", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetAuthorization", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + } + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_async", + "title": "GSuiteAddOns createDeployment Sample", + "origin": "API_DEFINITION", + "description": " Creates a deployment with the specified name and configuration.", + "canonical": true, + "file": "g_suite_add_ons.create_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.CreateDeployment", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "deployment_id", + "type": "TYPE_STRING" + }, + { + "name": "deployment", + "type": ".google.cloud.gsuiteaddons.v1.Deployment" + } + ], + "resultType": ".google.cloud.gsuiteaddons.v1.Deployment", + "client": { + "shortName": "GSuiteAddOnsClient", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" + }, + "method": { + "shortName": "CreateDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.CreateDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + } + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_ReplaceDeployment_async", + "title": "GSuiteAddOns replaceDeployment Sample", + "origin": "API_DEFINITION", + "description": " Creates or replaces a deployment with the specified name.", + "canonical": true, + "file": "g_suite_add_ons.replace_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ReplaceDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ReplaceDeployment", + "async": true, + "parameters": [ + { + "name": "deployment", + "type": ".google.cloud.gsuiteaddons.v1.Deployment" + } + ], + "resultType": ".google.cloud.gsuiteaddons.v1.Deployment", + "client": { + "shortName": "GSuiteAddOnsClient", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" + }, + "method": { + "shortName": "ReplaceDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ReplaceDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + } + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetDeployment_async", + "title": "GSuiteAddOns getDeployment Sample", + "origin": "API_DEFINITION", + "description": " Gets the deployment with the specified name.", + "canonical": true, + "file": "g_suite_add_ons.get_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gsuiteaddons.v1.Deployment", + "client": { + "shortName": "GSuiteAddOnsClient", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" + }, + "method": { + "shortName": "GetDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + } + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_ListDeployments_async", + "title": "GSuiteAddOns listDeployments Sample", + "origin": "API_DEFINITION", + "description": " Lists all deployments in a particular project.", + "canonical": true, + "file": "g_suite_add_ons.list_deployments.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDeployments", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ListDeployments", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gsuiteaddons.v1.ListDeploymentsResponse", + "client": { + "shortName": "GSuiteAddOnsClient", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" + }, + "method": { + "shortName": "ListDeployments", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ListDeployments", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + } + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_async", + "title": "GSuiteAddOns deleteDeployment Sample", + "origin": "API_DEFINITION", + "description": " Deletes the deployment with the given name.", + "canonical": true, + "file": "g_suite_add_ons.delete_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.DeleteDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "GSuiteAddOnsClient", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" + }, + "method": { + "shortName": "DeleteDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.DeleteDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + } + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_InstallDeployment_async", + "title": "GSuiteAddOns installDeployment Sample", + "origin": "API_DEFINITION", + "description": " Installs a deployment in developer mode. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.", + "canonical": true, + "file": "g_suite_add_ons.install_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "InstallDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.InstallDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "GSuiteAddOnsClient", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" + }, + "method": { + "shortName": "InstallDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.InstallDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + } + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_UninstallDeployment_async", + "title": "GSuiteAddOns uninstallDeployment Sample", + "origin": "API_DEFINITION", + "description": " Uninstalls a developer mode deployment. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.", + "canonical": true, + "file": "g_suite_add_ons.uninstall_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UninstallDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.UninstallDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "GSuiteAddOnsClient", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" + }, + "method": { + "shortName": "UninstallDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.UninstallDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + } + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetInstallStatus_async", + "title": "GSuiteAddOns getInstallStatus Sample", + "origin": "API_DEFINITION", + "description": " Fetches the install status of a developer mode deployment.", + "canonical": true, + "file": "g_suite_add_ons.get_install_status.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetInstallStatus", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetInstallStatus", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gsuiteaddons.v1.InstallStatus", + "client": { + "shortName": "GSuiteAddOnsClient", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" + }, + "method": { + "shortName": "GetInstallStatus", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetInstallStatus", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + } + } + ] +} \ No newline at end of file diff --git a/packages/google-cloud-gsuiteaddons/samples/package.json b/packages/google-cloud-gsuiteaddons/samples/package.json new file mode 100644 index 000000000000..9312c42b3750 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/package.json @@ -0,0 +1,24 @@ +{ + "name": "gsuiteaddons-samples", + "private": true, + "license": "Apache-2.0", + "author": "Google LLC", + "engines": { + "node": ">=12.0.0" + }, + "files": [ + "*.js" + ], + "scripts": { + "test": "c8 mocha --timeout 600000 test/*.js", + "publish": "echo 'sample test; do not publish'" + }, + "dependencies": { + "@google-cloud/gsuiteaddons": "0.0.0" + }, + "devDependencies": { + "c8": "^7.1.0", + "chai": "^4.2.0", + "mocha": "^8.0.0" + } +} diff --git a/packages/google-cloud-gsuiteaddons/samples/quickstart.js b/packages/google-cloud-gsuiteaddons/samples/quickstart.js new file mode 100644 index 000000000000..7c34dfb17025 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/quickstart.js @@ -0,0 +1,76 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +'use strict'; + +function main(parent) { + // [START gsuiteaddons_quickstart] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the project in which to create the deployment. + * Example: `projects/my_project`. + */ + // const parent = 'abc123' + /** + * The maximum number of deployments to return. The service may return fewer + * than this value. + * If unspecified, at most 1000 deployments will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListDeployments` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDeployments` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Gsuiteaddons library + const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; + + // Instantiates a client + const gsuiteaddonsClient = new GSuiteAddOnsClient(); + + async function callListDeployments() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gsuiteaddonsClient.listDeploymentsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListDeployments(); + // [END gsuiteaddons_quickstart] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-gsuiteaddons/samples/test/quickstart.js b/packages/google-cloud-gsuiteaddons/samples/test/quickstart.js new file mode 100644 index 000000000000..12953ba6f581 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/samples/test/quickstart.js @@ -0,0 +1,41 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const assert = require('assert'); +const path = require('path'); +const cp = require('child_process'); +const {describe, it, before} = require('mocha'); +const {GSuiteAddOnsClient} = require('@google-cloud/gsuiteaddons').v1; +const gsuiteaddonsClient = new GSuiteAddOnsClient(); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const cwd = path.join(__dirname, '..'); + +describe('Quickstart', () => { + let projectId; + + before(async () => { + projectId = await gsuiteaddonsClient.getProjectId(); + }); + + it('should run quickstart', async () => { + const output = execSync(`node ./quickstart.js projects/${projectId}`, { + cwd, + }); + assert(output !== null); + }); +}); diff --git a/packages/google-cloud-gsuiteaddons/src/index.ts b/packages/google-cloud-gsuiteaddons/src/index.ts new file mode 100644 index 000000000000..3665b2537dec --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/src/index.ts @@ -0,0 +1,27 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** +// ** All changes to this file may be overwritten. ** + +import * as v1 from './v1'; + +const GSuiteAddOnsClient = v1.GSuiteAddOnsClient; +type GSuiteAddOnsClient = v1.GSuiteAddOnsClient; + +export {v1, GSuiteAddOnsClient}; +export default {v1, GSuiteAddOnsClient}; +import * as protos from '../protos/protos'; +export {protos}; diff --git a/packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_client.ts b/packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_client.ts new file mode 100644 index 000000000000..9bbdac1c58a2 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_client.ts @@ -0,0 +1,1495 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + PaginationCallback, + GaxCall, +} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/g_suite_add_ons_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './g_suite_add_ons_client_config.json'; +const version = require('../../../package.json').version; + +/** + * A service for managing Google Workspace Add-ons deployments. + * + * A Google Workspace Add-on is a third-party embedded component that can be + * installed in Google Workspace Applications like Gmail, Calendar, Drive, and + * the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can + * display UI cards, receive contextual information from the host application, + * and perform actions in the host application (See: + * https://developers.google.com/gsuite/add-ons/overview for more information). + * + * A Google Workspace Add-on deployment resource specifies metadata about the + * add-on, including a specification of the entry points in the host application + * that trigger add-on executions (see: + * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests). + * Add-on deployments defined via the Google Workspace Add-ons API define their + * entrypoints using HTTPS URLs (See: + * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes), + * + * A Google Workspace Add-on deployment can be installed in developer mode, + * which allows an add-on developer to test the experience an end-user would see + * when installing and running the add-on in their G Suite applications. When + * running in developer mode, more detailed error messages are exposed in the + * add-on UI to aid in debugging. + * + * A Google Workspace Add-on deployment can be published to Google Workspace + * Marketplace, which allows other Google Workspace users to discover and + * install the add-on. See: + * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview + * for details. + * @class + * @memberof v1 + */ +export class GSuiteAddOnsClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + pathTemplates: {[name: string]: gax.PathTemplate}; + gSuiteAddOnsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of GSuiteAddOnsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new GSuiteAddOnsClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof GSuiteAddOnsClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + authorizationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/authorization' + ), + deploymentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/deployments/{deployment}' + ), + installStatusPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/deployments/{deployment}/installStatus' + ), + projectPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listDeployments: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'deployments' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.gsuiteaddons.v1.GSuiteAddOns', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.gSuiteAddOnsStub) { + return this.gSuiteAddOnsStub; + } + + // Put together the "service stub" for + // google.cloud.gsuiteaddons.v1.GSuiteAddOns. + this.gSuiteAddOnsStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.gsuiteaddons.v1.GSuiteAddOns' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.gsuiteaddons.v1.GSuiteAddOns, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const gSuiteAddOnsStubMethods = [ + 'getAuthorization', + 'createDeployment', + 'replaceDeployment', + 'getDeployment', + 'listDeployments', + 'deleteDeployment', + 'installDeployment', + 'uninstallDeployment', + 'getInstallStatus', + ]; + for (const methodName of gSuiteAddOnsStubMethods) { + const callPromise = this.gSuiteAddOnsStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = this.descriptors.page[methodName] || undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.gSuiteAddOnsStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'gsuiteaddons.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'gsuiteaddons.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Gets the authorization information for deployments in a given project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the project for which to get the Google Workspace Add-ons + * authorization information. + * + * Example: `projects/my_project/authorization`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Authorization]{@link google.cloud.gsuiteaddons.v1.Authorization}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/g_suite_add_ons.get_authorization.js + * region_tag:gsuiteaddons_v1_generated_GSuiteAddOns_GetAuthorization_async + */ + getAuthorization( + request?: protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IAuthorization, + protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest | undefined, + {} | undefined + ] + >; + getAuthorization( + request: protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IAuthorization, + | protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAuthorization( + request: protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IAuthorization, + | protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAuthorization( + request?: protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.gsuiteaddons.v1.IAuthorization, + | protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.gsuiteaddons.v1.IAuthorization, + | protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IAuthorization, + protos.google.cloud.gsuiteaddons.v1.IGetAuthorizationRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getAuthorization(request, options, callback); + } + /** + * Creates a deployment with the specified name and configuration. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of the project in which to create the deployment. + * + * Example: `projects/my_project`. + * @param {string} request.deploymentId + * Required. The id to use for this deployment. The full name of the created + * resource will be `projects//deployments/`. + * @param {google.cloud.gsuiteaddons.v1.Deployment} request.deployment + * Required. The deployment to create (deployment.name cannot be set). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Deployment]{@link google.cloud.gsuiteaddons.v1.Deployment}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/g_suite_add_ons.create_deployment.js + * region_tag:gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_async + */ + createDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IDeployment, + protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest | undefined, + {} | undefined + ] + >; + createDeployment( + request: protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createDeployment( + request: protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IDeployment, + protos.google.cloud.gsuiteaddons.v1.ICreateDeploymentRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createDeployment(request, options, callback); + } + /** + * Creates or replaces a deployment with the specified name. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.gsuiteaddons.v1.Deployment} request.deployment + * Required. The deployment to create or replace. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Deployment]{@link google.cloud.gsuiteaddons.v1.Deployment}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/g_suite_add_ons.replace_deployment.js + * region_tag:gsuiteaddons_v1_generated_GSuiteAddOns_ReplaceDeployment_async + */ + replaceDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IDeployment, + protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest | undefined, + {} | undefined + ] + >; + replaceDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + replaceDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + replaceDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IDeployment, + protos.google.cloud.gsuiteaddons.v1.IReplaceDeploymentRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'deployment.name': request.deployment!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.replaceDeployment(request, options, callback); + } + /** + * Gets the deployment with the specified name. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The full resource name of the deployment to get. + * + * Example: `projects/my_project/deployments/my_deployment`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Deployment]{@link google.cloud.gsuiteaddons.v1.Deployment}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/g_suite_add_ons.get_deployment.js + * region_tag:gsuiteaddons_v1_generated_GSuiteAddOns_GetDeployment_async + */ + getDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IDeployment, + protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest | undefined, + {} | undefined + ] + >; + getDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.gsuiteaddons.v1.IDeployment, + | protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IDeployment, + protos.google.cloud.gsuiteaddons.v1.IGetDeploymentRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getDeployment(request, options, callback); + } + /** + * Deletes the deployment with the given name. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The full resource name of the deployment to delete. + * + * Example: `projects/my_project/deployments/my_deployment`. + * @param {string} request.etag + * The etag of the deployment to delete. + * If this is provided, it must match the server's etag. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/g_suite_add_ons.delete_deployment.js + * region_tag:gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_async + */ + deleteDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest | undefined, + {} | undefined + ] + >; + deleteDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.gsuiteaddons.v1.IDeleteDeploymentRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteDeployment(request, options, callback); + } + /** + * Installs a deployment in developer mode. + * See: + * https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The full resource name of the deployment to install. + * + * Example: `projects/my_project/deployments/my_deployment`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/g_suite_add_ons.install_deployment.js + * region_tag:gsuiteaddons_v1_generated_GSuiteAddOns_InstallDeployment_async + */ + installDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest | undefined, + {} | undefined + ] + >; + installDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + installDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + installDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.gsuiteaddons.v1.IInstallDeploymentRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.installDeployment(request, options, callback); + } + /** + * Uninstalls a developer mode deployment. + * See: + * https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The full resource name of the deployment to install. + * + * Example: `projects/my_project/deployments/my_deployment`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/g_suite_add_ons.uninstall_deployment.js + * region_tag:gsuiteaddons_v1_generated_GSuiteAddOns_UninstallDeployment_async + */ + uninstallDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest + | undefined + ), + {} | undefined + ] + >; + uninstallDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + uninstallDeployment( + request: protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + uninstallDeployment( + request?: protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.gsuiteaddons.v1.IUninstallDeploymentRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.uninstallDeployment(request, options, callback); + } + /** + * Fetches the install status of a developer mode deployment. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The full resource name of the deployment. + * + * Example: `projects/my_project/deployments/my_deployment/installStatus`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [InstallStatus]{@link google.cloud.gsuiteaddons.v1.InstallStatus}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/g_suite_add_ons.get_install_status.js + * region_tag:gsuiteaddons_v1_generated_GSuiteAddOns_GetInstallStatus_async + */ + getInstallStatus( + request?: protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IInstallStatus, + protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest | undefined, + {} | undefined + ] + >; + getInstallStatus( + request: protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IInstallStatus, + | protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getInstallStatus( + request: protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest, + callback: Callback< + protos.google.cloud.gsuiteaddons.v1.IInstallStatus, + | protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getInstallStatus( + request?: protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.gsuiteaddons.v1.IInstallStatus, + | protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.gsuiteaddons.v1.IInstallStatus, + | protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IInstallStatus, + protos.google.cloud.gsuiteaddons.v1.IGetInstallStatusRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getInstallStatus(request, options, callback); + } + + /** + * Lists all deployments in a particular project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of the project in which to create the deployment. + * + * Example: `projects/my_project`. + * @param {number} request.pageSize + * The maximum number of deployments to return. The service may return fewer + * than this value. + * If unspecified, at most 1000 deployments will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string} request.pageToken + * A page token, received from a previous `ListDeployments` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListDeployments` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Deployment]{@link google.cloud.gsuiteaddons.v1.Deployment}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDeploymentsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDeployments( + request?: protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IDeployment[], + protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest | null, + protos.google.cloud.gsuiteaddons.v1.IListDeploymentsResponse + ] + >; + listDeployments( + request: protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + | protos.google.cloud.gsuiteaddons.v1.IListDeploymentsResponse + | null + | undefined, + protos.google.cloud.gsuiteaddons.v1.IDeployment + > + ): void; + listDeployments( + request: protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + callback: PaginationCallback< + protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + | protos.google.cloud.gsuiteaddons.v1.IListDeploymentsResponse + | null + | undefined, + protos.google.cloud.gsuiteaddons.v1.IDeployment + > + ): void; + listDeployments( + request?: protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + | protos.google.cloud.gsuiteaddons.v1.IListDeploymentsResponse + | null + | undefined, + protos.google.cloud.gsuiteaddons.v1.IDeployment + >, + callback?: PaginationCallback< + protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + | protos.google.cloud.gsuiteaddons.v1.IListDeploymentsResponse + | null + | undefined, + protos.google.cloud.gsuiteaddons.v1.IDeployment + > + ): Promise< + [ + protos.google.cloud.gsuiteaddons.v1.IDeployment[], + protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest | null, + protos.google.cloud.gsuiteaddons.v1.IListDeploymentsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listDeployments(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of the project in which to create the deployment. + * + * Example: `projects/my_project`. + * @param {number} request.pageSize + * The maximum number of deployments to return. The service may return fewer + * than this value. + * If unspecified, at most 1000 deployments will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string} request.pageToken + * A page token, received from a previous `ListDeployments` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListDeployments` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Deployment]{@link google.cloud.gsuiteaddons.v1.Deployment} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDeploymentsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDeploymentsStream( + request?: protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listDeployments']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDeployments.createStream( + this.innerApiCalls.listDeployments as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDeployments`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of the project in which to create the deployment. + * + * Example: `projects/my_project`. + * @param {number} request.pageSize + * The maximum number of deployments to return. The service may return fewer + * than this value. + * If unspecified, at most 1000 deployments will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string} request.pageToken + * A page token, received from a previous `ListDeployments` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListDeployments` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Deployment]{@link google.cloud.gsuiteaddons.v1.Deployment}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/g_suite_add_ons.list_deployments.js + * region_tag:gsuiteaddons_v1_generated_GSuiteAddOns_ListDeployments_async + */ + listDeploymentsAsync( + request?: protos.google.cloud.gsuiteaddons.v1.IListDeploymentsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listDeployments']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDeployments.asyncIterate( + this.innerApiCalls['listDeployments'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified authorization resource name string. + * + * @param {string} project + * @returns {string} Resource name string. + */ + authorizationPath(project: string) { + return this.pathTemplates.authorizationPathTemplate.render({ + project: project, + }); + } + + /** + * Parse the project from Authorization resource. + * + * @param {string} authorizationName + * A fully-qualified path representing Authorization resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAuthorizationName(authorizationName: string) { + return this.pathTemplates.authorizationPathTemplate.match(authorizationName) + .project; + } + + /** + * Return a fully-qualified deployment resource name string. + * + * @param {string} project + * @param {string} deployment + * @returns {string} Resource name string. + */ + deploymentPath(project: string, deployment: string) { + return this.pathTemplates.deploymentPathTemplate.render({ + project: project, + deployment: deployment, + }); + } + + /** + * Parse the project from Deployment resource. + * + * @param {string} deploymentName + * A fully-qualified path representing Deployment resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDeploymentName(deploymentName: string) { + return this.pathTemplates.deploymentPathTemplate.match(deploymentName) + .project; + } + + /** + * Parse the deployment from Deployment resource. + * + * @param {string} deploymentName + * A fully-qualified path representing Deployment resource. + * @returns {string} A string representing the deployment. + */ + matchDeploymentFromDeploymentName(deploymentName: string) { + return this.pathTemplates.deploymentPathTemplate.match(deploymentName) + .deployment; + } + + /** + * Return a fully-qualified installStatus resource name string. + * + * @param {string} project + * @param {string} deployment + * @returns {string} Resource name string. + */ + installStatusPath(project: string, deployment: string) { + return this.pathTemplates.installStatusPathTemplate.render({ + project: project, + deployment: deployment, + }); + } + + /** + * Parse the project from InstallStatus resource. + * + * @param {string} installStatusName + * A fully-qualified path representing InstallStatus resource. + * @returns {string} A string representing the project. + */ + matchProjectFromInstallStatusName(installStatusName: string) { + return this.pathTemplates.installStatusPathTemplate.match(installStatusName) + .project; + } + + /** + * Parse the deployment from InstallStatus resource. + * + * @param {string} installStatusName + * A fully-qualified path representing InstallStatus resource. + * @returns {string} A string representing the deployment. + */ + matchDeploymentFromInstallStatusName(installStatusName: string) { + return this.pathTemplates.installStatusPathTemplate.match(installStatusName) + .deployment; + } + + /** + * Return a fully-qualified project resource name string. + * + * @param {string} project + * @returns {string} Resource name string. + */ + projectPath(project: string) { + return this.pathTemplates.projectPathTemplate.render({ + project: project, + }); + } + + /** + * Parse the project from Project resource. + * + * @param {string} projectName + * A fully-qualified path representing Project resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectName(projectName: string) { + return this.pathTemplates.projectPathTemplate.match(projectName).project; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.gSuiteAddOnsStub && !this._terminated) { + return this.gSuiteAddOnsStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_client_config.json b/packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_client_config.json new file mode 100644 index 000000000000..94cbce587515 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_client_config.json @@ -0,0 +1,84 @@ +{ + "interfaces": { + "google.cloud.gsuiteaddons.v1.GSuiteAddOns": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "unknown_unavailable": [ + "UNKNOWN", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + }, + "ce5b960a6ed052e690863808e4f0deff3dc7d49f": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetAuthorization": { + "timeout_millis": 120000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateDeployment": { + "timeout_millis": 10000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ReplaceDeployment": { + "timeout_millis": 10000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "GetDeployment": { + "timeout_millis": 10000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "ListDeployments": { + "timeout_millis": 10000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "DeleteDeployment": { + "timeout_millis": 10000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "InstallDeployment": { + "timeout_millis": 10000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "UninstallDeployment": { + "timeout_millis": 10000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + }, + "GetInstallStatus": { + "timeout_millis": 10000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" + } + } + } + } +} diff --git a/packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_proto_list.json b/packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_proto_list.json new file mode 100644 index 000000000000..754b641cc0b1 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/src/v1/g_suite_add_ons_proto_list.json @@ -0,0 +1,12 @@ +[ + "../../protos/google/apps/script/type/addon_widget_set.proto", + "../../protos/google/apps/script/type/calendar/calendar_addon_manifest.proto", + "../../protos/google/apps/script/type/docs/docs_addon_manifest.proto", + "../../protos/google/apps/script/type/drive/drive_addon_manifest.proto", + "../../protos/google/apps/script/type/extension_point.proto", + "../../protos/google/apps/script/type/gmail/gmail_addon_manifest.proto", + "../../protos/google/apps/script/type/script_manifest.proto", + "../../protos/google/apps/script/type/sheets/sheets_addon_manifest.proto", + "../../protos/google/apps/script/type/slides/slides_addon_manifest.proto", + "../../protos/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto" +] diff --git a/packages/google-cloud-gsuiteaddons/src/v1/gapic_metadata.json b/packages/google-cloud-gsuiteaddons/src/v1/gapic_metadata.json new file mode 100644 index 000000000000..acc05a47b13e --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/src/v1/gapic_metadata.json @@ -0,0 +1,117 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "typescript", + "protoPackage": "google.cloud.gsuiteaddons.v1", + "libraryPackage": "@google-cloud/gsuiteaddons", + "services": { + "GSuiteAddOns": { + "clients": { + "grpc": { + "libraryClient": "GSuiteAddOnsClient", + "rpcs": { + "GetAuthorization": { + "methods": [ + "getAuthorization" + ] + }, + "CreateDeployment": { + "methods": [ + "createDeployment" + ] + }, + "ReplaceDeployment": { + "methods": [ + "replaceDeployment" + ] + }, + "GetDeployment": { + "methods": [ + "getDeployment" + ] + }, + "DeleteDeployment": { + "methods": [ + "deleteDeployment" + ] + }, + "InstallDeployment": { + "methods": [ + "installDeployment" + ] + }, + "UninstallDeployment": { + "methods": [ + "uninstallDeployment" + ] + }, + "GetInstallStatus": { + "methods": [ + "getInstallStatus" + ] + }, + "ListDeployments": { + "methods": [ + "listDeployments", + "listDeploymentsStream", + "listDeploymentsAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "GSuiteAddOnsClient", + "rpcs": { + "GetAuthorization": { + "methods": [ + "getAuthorization" + ] + }, + "CreateDeployment": { + "methods": [ + "createDeployment" + ] + }, + "ReplaceDeployment": { + "methods": [ + "replaceDeployment" + ] + }, + "GetDeployment": { + "methods": [ + "getDeployment" + ] + }, + "DeleteDeployment": { + "methods": [ + "deleteDeployment" + ] + }, + "InstallDeployment": { + "methods": [ + "installDeployment" + ] + }, + "UninstallDeployment": { + "methods": [ + "uninstallDeployment" + ] + }, + "GetInstallStatus": { + "methods": [ + "getInstallStatus" + ] + }, + "ListDeployments": { + "methods": [ + "listDeployments", + "listDeploymentsStream", + "listDeploymentsAsync" + ] + } + } + } + } + } + } +} diff --git a/packages/google-cloud-gsuiteaddons/src/v1/index.ts b/packages/google-cloud-gsuiteaddons/src/v1/index.ts new file mode 100644 index 000000000000..36f1fdcb19a0 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/src/v1/index.ts @@ -0,0 +1,19 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +export {GSuiteAddOnsClient} from './g_suite_add_ons_client'; diff --git a/packages/google-cloud-gsuiteaddons/system-test/fixtures/sample/src/index.js b/packages/google-cloud-gsuiteaddons/system-test/fixtures/sample/src/index.js new file mode 100644 index 000000000000..5cff60adb944 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/system-test/fixtures/sample/src/index.js @@ -0,0 +1,26 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* eslint-disable node/no-missing-require, no-unused-vars */ +const gsuiteaddons = require('@google-cloud/gsuiteaddons'); + +function main() { + const gSuiteAddOnsClient = new gsuiteaddons.GSuiteAddOnsClient(); +} + +main(); diff --git a/packages/google-cloud-gsuiteaddons/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-gsuiteaddons/system-test/fixtures/sample/src/index.ts new file mode 100644 index 000000000000..681a0d8e56d9 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/system-test/fixtures/sample/src/index.ts @@ -0,0 +1,32 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import {GSuiteAddOnsClient} from '@google-cloud/gsuiteaddons'; + +// check that the client class type name can be used +function doStuffWithGSuiteAddOnsClient(client: GSuiteAddOnsClient) { + client.close(); +} + +function main() { + // check that the client instance can be created + const gSuiteAddOnsClient = new GSuiteAddOnsClient(); + doStuffWithGSuiteAddOnsClient(gSuiteAddOnsClient); +} + +main(); diff --git a/packages/google-cloud-gsuiteaddons/system-test/install.ts b/packages/google-cloud-gsuiteaddons/system-test/install.ts new file mode 100644 index 000000000000..f61fe236476b --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/system-test/install.ts @@ -0,0 +1,51 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import {packNTest} from 'pack-n-play'; +import {readFileSync} from 'fs'; +import {describe, it} from 'mocha'; + +describe('📦 pack-n-play test', () => { + it('TypeScript code', async function () { + this.timeout(300000); + const options = { + packageDir: process.cwd(), + sample: { + description: 'TypeScript user can use the type definitions', + ts: readFileSync( + './system-test/fixtures/sample/src/index.ts' + ).toString(), + }, + }; + await packNTest(options); + }); + + it('JavaScript code', async function () { + this.timeout(300000); + const options = { + packageDir: process.cwd(), + sample: { + description: 'JavaScript user can use the library', + ts: readFileSync( + './system-test/fixtures/sample/src/index.js' + ).toString(), + }, + }; + await packNTest(options); + }); +}); diff --git a/packages/google-cloud-gsuiteaddons/test/gapic_g_suite_add_ons_v1.ts b/packages/google-cloud-gsuiteaddons/test/gapic_g_suite_add_ons_v1.ts new file mode 100644 index 000000000000..1cb525e16cec --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/test/gapic_g_suite_add_ons_v1.ts @@ -0,0 +1,1776 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as gsuiteaddonsModule from '../src'; + +import {PassThrough} from 'stream'; + +import {protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.GSuiteAddOnsClient', () => { + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = gsuiteaddonsModule.v1.GSuiteAddOnsClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = gsuiteaddonsModule.v1.GSuiteAddOnsClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = gsuiteaddonsModule.v1.GSuiteAddOnsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.gSuiteAddOnsStub, undefined); + await client.initialize(); + assert(client.gSuiteAddOnsStub); + }); + + it('has close method for the initialized client', done => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.gSuiteAddOnsStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.gSuiteAddOnsStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('getAuthorization', () => { + it('invokes getAuthorization without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Authorization() + ); + client.innerApiCalls.getAuthorization = stubSimpleCall(expectedResponse); + const [response] = await client.getAuthorization(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getAuthorization as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAuthorization as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAuthorization without error using callback', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Authorization() + ); + client.innerApiCalls.getAuthorization = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getAuthorization( + request, + ( + err?: Error | null, + result?: protos.google.cloud.gsuiteaddons.v1.IAuthorization | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getAuthorization as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAuthorization as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAuthorization with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getAuthorization = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getAuthorization(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getAuthorization as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAuthorization as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAuthorization with closed client', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getAuthorization(request), expectedError); + }); + }); + + describe('createDeployment', () => { + it('invokes createDeployment without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ); + client.innerApiCalls.createDeployment = stubSimpleCall(expectedResponse); + const [response] = await client.createDeployment(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createDeployment without error using callback', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ); + client.innerApiCalls.createDeployment = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createDeployment( + request, + ( + err?: Error | null, + result?: protos.google.cloud.gsuiteaddons.v1.IDeployment | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createDeployment with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createDeployment = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createDeployment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createDeployment with closed client', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createDeployment(request), expectedError); + }); + }); + + describe('replaceDeployment', () => { + it('invokes replaceDeployment without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest() + ); + request.deployment ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest', + ['deployment', 'name'] + ); + request.deployment.name = defaultValue1; + const expectedHeaderRequestParams = `deployment.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ); + client.innerApiCalls.replaceDeployment = stubSimpleCall(expectedResponse); + const [response] = await client.replaceDeployment(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.replaceDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.replaceDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes replaceDeployment without error using callback', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest() + ); + request.deployment ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest', + ['deployment', 'name'] + ); + request.deployment.name = defaultValue1; + const expectedHeaderRequestParams = `deployment.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ); + client.innerApiCalls.replaceDeployment = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.replaceDeployment( + request, + ( + err?: Error | null, + result?: protos.google.cloud.gsuiteaddons.v1.IDeployment | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.replaceDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.replaceDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes replaceDeployment with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest() + ); + request.deployment ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest', + ['deployment', 'name'] + ); + request.deployment.name = defaultValue1; + const expectedHeaderRequestParams = `deployment.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.replaceDeployment = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.replaceDeployment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.replaceDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.replaceDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes replaceDeployment with closed client', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest() + ); + request.deployment ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest', + ['deployment', 'name'] + ); + request.deployment.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.replaceDeployment(request), expectedError); + }); + }); + + describe('getDeployment', () => { + it('invokes getDeployment without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ); + client.innerApiCalls.getDeployment = stubSimpleCall(expectedResponse); + const [response] = await client.getDeployment(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getDeployment without error using callback', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ); + client.innerApiCalls.getDeployment = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getDeployment( + request, + ( + err?: Error | null, + result?: protos.google.cloud.gsuiteaddons.v1.IDeployment | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getDeployment with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getDeployment = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getDeployment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getDeployment with closed client', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getDeployment(request), expectedError); + }); + }); + + describe('deleteDeployment', () => { + it('invokes deleteDeployment without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDeployment = stubSimpleCall(expectedResponse); + const [response] = await client.deleteDeployment(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteDeployment without error using callback', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteDeployment = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteDeployment( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteDeployment with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteDeployment = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteDeployment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteDeployment with closed client', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteDeployment(request), expectedError); + }); + }); + + describe('installDeployment', () => { + it('invokes installDeployment without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.installDeployment = stubSimpleCall(expectedResponse); + const [response] = await client.installDeployment(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.installDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.installDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes installDeployment without error using callback', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.installDeployment = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.installDeployment( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.installDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.installDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes installDeployment with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.installDeployment = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.installDeployment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.installDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.installDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes installDeployment with closed client', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.installDeployment(request), expectedError); + }); + }); + + describe('uninstallDeployment', () => { + it('invokes uninstallDeployment without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.uninstallDeployment = + stubSimpleCall(expectedResponse); + const [response] = await client.uninstallDeployment(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.uninstallDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.uninstallDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes uninstallDeployment without error using callback', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.uninstallDeployment = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.uninstallDeployment( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.uninstallDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.uninstallDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes uninstallDeployment with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.uninstallDeployment = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.uninstallDeployment(request), expectedError); + const actualRequest = ( + client.innerApiCalls.uninstallDeployment as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.uninstallDeployment as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes uninstallDeployment with closed client', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.uninstallDeployment(request), expectedError); + }); + }); + + describe('getInstallStatus', () => { + it('invokes getInstallStatus without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.InstallStatus() + ); + client.innerApiCalls.getInstallStatus = stubSimpleCall(expectedResponse); + const [response] = await client.getInstallStatus(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getInstallStatus as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInstallStatus as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInstallStatus without error using callback', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.InstallStatus() + ); + client.innerApiCalls.getInstallStatus = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getInstallStatus( + request, + ( + err?: Error | null, + result?: protos.google.cloud.gsuiteaddons.v1.IInstallStatus | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getInstallStatus as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInstallStatus as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInstallStatus with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getInstallStatus = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getInstallStatus(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getInstallStatus as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getInstallStatus as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getInstallStatus with closed client', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getInstallStatus(request), expectedError); + }); + }); + + describe('listDeployments', () => { + it('invokes listDeployments without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + ]; + client.innerApiCalls.listDeployments = stubSimpleCall(expectedResponse); + const [response] = await client.listDeployments(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDeployments as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDeployments as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDeployments without error using callback', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + ]; + client.innerApiCalls.listDeployments = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDeployments( + request, + ( + err?: Error | null, + result?: protos.google.cloud.gsuiteaddons.v1.IDeployment[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDeployments as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDeployments as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDeployments with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listDeployments = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listDeployments(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listDeployments as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDeployments as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDeploymentsStream without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + ]; + client.descriptors.page.listDeployments.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listDeploymentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.gsuiteaddons.v1.Deployment[] = []; + stream.on( + 'data', + (response: protos.google.cloud.gsuiteaddons.v1.Deployment) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listDeployments.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDeployments, request) + ); + assert( + (client.descriptors.page.listDeployments.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listDeploymentsStream with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDeployments.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listDeploymentsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.gsuiteaddons.v1.Deployment[] = []; + stream.on( + 'data', + (response: protos.google.cloud.gsuiteaddons.v1.Deployment) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listDeployments.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDeployments, request) + ); + assert( + (client.descriptors.page.listDeployments.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDeployments without error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.Deployment() + ), + ]; + client.descriptors.page.listDeployments.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.gsuiteaddons.v1.IDeployment[] = []; + const iterable = client.listDeploymentsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listDeployments.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDeployments.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDeployments with error', async () => { + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDeployments.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDeploymentsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.gsuiteaddons.v1.IDeployment[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listDeployments.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDeployments.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('Path templates', () => { + describe('authorization', () => { + const fakePath = '/rendered/path/authorization'; + const expectedParameters = { + project: 'projectValue', + }; + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.authorizationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.authorizationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('authorizationPath', () => { + const result = client.authorizationPath('projectValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.authorizationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAuthorizationName', () => { + const result = client.matchProjectFromAuthorizationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.authorizationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('deployment', () => { + const fakePath = '/rendered/path/deployment'; + const expectedParameters = { + project: 'projectValue', + deployment: 'deploymentValue', + }; + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.deploymentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.deploymentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('deploymentPath', () => { + const result = client.deploymentPath('projectValue', 'deploymentValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.deploymentPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDeploymentName', () => { + const result = client.matchProjectFromDeploymentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.deploymentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDeploymentFromDeploymentName', () => { + const result = client.matchDeploymentFromDeploymentName(fakePath); + assert.strictEqual(result, 'deploymentValue'); + assert( + (client.pathTemplates.deploymentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('installStatus', () => { + const fakePath = '/rendered/path/installStatus'; + const expectedParameters = { + project: 'projectValue', + deployment: 'deploymentValue', + }; + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.installStatusPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.installStatusPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('installStatusPath', () => { + const result = client.installStatusPath( + 'projectValue', + 'deploymentValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.installStatusPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromInstallStatusName', () => { + const result = client.matchProjectFromInstallStatusName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.installStatusPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDeploymentFromInstallStatusName', () => { + const result = client.matchDeploymentFromInstallStatusName(fakePath); + assert.strictEqual(result, 'deploymentValue'); + assert( + (client.pathTemplates.installStatusPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('project', () => { + const fakePath = '/rendered/path/project'; + const expectedParameters = { + project: 'projectValue', + }; + const client = new gsuiteaddonsModule.v1.GSuiteAddOnsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectPath', () => { + const result = client.projectPath('projectValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.projectPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectName', () => { + const result = client.matchProjectFromProjectName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.projectPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); diff --git a/packages/google-cloud-gsuiteaddons/tsconfig.json b/packages/google-cloud-gsuiteaddons/tsconfig.json new file mode 100644 index 000000000000..c78f1c884ef6 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "./node_modules/gts/tsconfig-google.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build", + "resolveJsonModule": true, + "lib": [ + "es2018", + "dom" + ] + }, + "include": [ + "src/*.ts", + "src/**/*.ts", + "test/*.ts", + "test/**/*.ts", + "system-test/*.ts" + ] +} diff --git a/packages/google-cloud-gsuiteaddons/webpack.config.js b/packages/google-cloud-gsuiteaddons/webpack.config.js new file mode 100644 index 000000000000..0d328939dcf0 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/webpack.config.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +const path = require('path'); + +module.exports = { + entry: './src/index.ts', + output: { + library: 'GSuiteAddOns', + filename: './g-suite-add-ons.js', + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + resolve: { + alias: { + '../../../package.json': path.resolve(__dirname, 'package.json'), + }, + extensions: ['.js', '.json', '.ts'], + }, + module: { + rules: [ + { + test: /\.tsx?$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + { + test: /node_modules[\\/]@grpc[\\/]grpc-js/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]grpc/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]retry-request/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]https?-proxy-agent/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]gtoken/, + use: 'null-loader', + }, + ], + }, + mode: 'production', +}; diff --git a/release-please-config.json b/release-please-config.json index b1826c39901c..7accf5885fd8 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -130,7 +130,8 @@ "packages/grafeas": {}, "packages/typeless-sample-bot": {}, "packages/google-maps-mapsplatformdatasets": {}, - "packages/google-cloud-datacatalog-lineage": {} + "packages/google-cloud-datacatalog-lineage": {}, + "packages/google-cloud-gsuiteaddons": {} }, "plugins": [ { From 191b3dc6cc420d66fa62b3c75a146720d5177627 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 13:19:16 -0800 Subject: [PATCH 23/38] chore(gitignore): [container] only ignore folders in the top level (#3938) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Add clarification on whether `NodePool.version` is a required field PiperOrigin-RevId: 506777053 Source-Link: https://github.com/googleapis/googleapis/commit/ffc5ffc75c652094eed6a7b2a804a26c6765c7fb Source-Link: https://github.com/googleapis/googleapis-gen/commit/d8776e811018df6944265b06d9b4148783f25759 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiZDg3NzZlODExMDE4ZGY2OTQ0MjY1YjA2ZDliNDE0ODc4M2YyNTc1OSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update .gitignore to always include protos folder Use gapic-generator-typescript v3.0.0. PiperOrigin-RevId: 507004755 Source-Link: https://github.com/googleapis/googleapis/commit/d784f3c1043616fc0646e9ce7afa1b9161cc02de Source-Link: https://github.com/googleapis/googleapis-gen/commit/5e64ba8615f65fdedb1fcd6ac792e5ea621027e4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiNWU2NGJhODYxNWY2NWZkZWRiMWZjZDZhYzc5MmU1ZWE2MjEwMjdlNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-container/.gitignore | 12 ++++++------ .../protos/google/container/v1/cluster_service.proto | 7 ++++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/google-container/.gitignore b/packages/google-container/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-container/.gitignore +++ b/packages/google-container/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 4fb096621a9f..aa2f3f45f13b 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -3127,7 +3127,9 @@ message NodePool { // [Output only] Server-defined URL for the resource. string self_link = 100; - // The version of the Kubernetes of this node. + // The version of Kubernetes running on this NodePool's nodes. If unspecified, + // it defaults as described + // [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). string version = 101; // [Output only] The resource URLs of the [managed instance @@ -3502,8 +3504,7 @@ message AutoprovisioningNodePoolDefaults { // information, read [how to specify min CPU // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). // This field is deprecated, min_cpu_platform should be specified using - // https://cloud.google.com/requested-min-cpu-platform label selector on the - // pod. + // `cloud.google.com/requested-min-cpu-platform` label selector on the pod. // To unset the min cpu platform field pass "automatic" // as field value. string min_cpu_platform = 5 [deprecated = true]; From 4d6e43f42545d241f218a8d81ce1209363184179 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 13:38:06 -0800 Subject: [PATCH 24/38] chore: [websecurityscanner,workflows] update import paths for Go targets to match open source location (#3936) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update import paths for Go targets to match open source location chore: update go_package in protos to match open source location chore: add explicit release levels to Go gapic targets PiperOrigin-RevId: 506711567 Source-Link: https://github.com/googleapis/googleapis/commit/d02e58244db5d01607ec2ad52a47e7edce8612f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7f1c54153125eb5abd60a32de58cfda6a798a70a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXdlYnNlY3VyaXR5c2Nhbm5lci8uT3dsQm90LnlhbWwiLCJoIjoiN2YxYzU0MTUzMTI1ZWI1YWJkNjBhMzJkZTU4Y2ZkYTZhNzk4YTcwYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXdvcmtmbG93cy1leGVjdXRpb25zLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjFjNTQxNTMxMjVlYjVhYmQ2MGEzMmRlNThjZmRhNmE3OThhNzBhIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * remove extra directories and remove in owlbot.py * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> Co-authored-by: Sofia Leon --- .../google/cloud/websecurityscanner/v1/crawled_url.proto | 2 +- .../google/cloud/websecurityscanner/v1/finding.proto | 2 +- .../cloud/websecurityscanner/v1/finding_addon.proto | 2 +- .../cloud/websecurityscanner/v1/finding_type_stats.proto | 2 +- .../google/cloud/websecurityscanner/v1/scan_config.proto | 2 +- .../cloud/websecurityscanner/v1/scan_config_error.proto | 2 +- .../google/cloud/websecurityscanner/v1/scan_run.proto | 2 +- .../websecurityscanner/v1/scan_run_error_trace.proto | 2 +- .../google/cloud/websecurityscanner/v1/scan_run_log.proto | 2 +- .../websecurityscanner/v1/scan_run_warning_trace.proto | 2 +- .../websecurityscanner/v1/web_security_scanner.proto | 2 +- .../cloud/websecurityscanner/v1alpha/crawled_url.proto | 2 +- .../google/cloud/websecurityscanner/v1alpha/finding.proto | 2 +- .../cloud/websecurityscanner/v1alpha/finding_addon.proto | 2 +- .../websecurityscanner/v1alpha/finding_type_stats.proto | 2 +- .../cloud/websecurityscanner/v1alpha/scan_config.proto | 2 +- .../cloud/websecurityscanner/v1alpha/scan_run.proto | 2 +- .../websecurityscanner/v1alpha/web_security_scanner.proto | 2 +- .../cloud/websecurityscanner/v1beta/crawled_url.proto | 2 +- .../google/cloud/websecurityscanner/v1beta/finding.proto | 2 +- .../cloud/websecurityscanner/v1beta/finding_addon.proto | 2 +- .../websecurityscanner/v1beta/finding_type_stats.proto | 2 +- .../cloud/websecurityscanner/v1beta/scan_config.proto | 2 +- .../websecurityscanner/v1beta/scan_config_error.proto | 2 +- .../google/cloud/websecurityscanner/v1beta/scan_run.proto | 2 +- .../websecurityscanner/v1beta/scan_run_error_trace.proto | 2 +- .../v1beta/scan_run_warning_trace.proto | 2 +- .../websecurityscanner/v1beta/web_security_scanner.proto | 2 +- .../google-cloud-websecurityscanner/protos/protos.json | 6 +++--- packages/google-cloud-workflows-executions/owlbot.py | 2 ++ .../google/cloud/workflows/executions/v1/executions.proto | 2 +- .../cloud/workflows/executions/v1beta/executions.proto | 2 +- .../protos/google/cloud/workflows/v1/workflows.proto | 2 +- .../protos/google/cloud/workflows/v1beta/workflows.proto | 2 +- .../google-cloud-workflows-executions/protos/protos.json | 8 ++++---- 35 files changed, 41 insertions(+), 39 deletions(-) diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/crawled_url.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/crawled_url.proto index 65fc000ffc40..6b8f8df3b621 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/crawled_url.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/crawled_url.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "CrawledUrlProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding.proto index 71fea9501938..0226bbf54c09 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/websecurityscanner/v1/finding_addon.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "FindingProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_addon.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_addon.proto index 1bcec8c716fe..409a7db542eb 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_addon.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_addon.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "FindingAddonProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_type_stats.proto index 7999f76d6a75..94a5e7ea6cec 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_type_stats.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/finding_type_stats.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "FindingTypeStatsProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config.proto index 85641af2fb54..12f3ece58484 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanConfigProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config_error.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config_error.proto index 5924f91553dd..96fe523b677c 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config_error.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_config_error.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanConfigErrorProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run.proto index 71df3a043ee0..70f5b452316d 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run.proto @@ -21,7 +21,7 @@ import "google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanRunProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto index 0c41c14321f0..8f906a57f0db 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto @@ -19,7 +19,7 @@ package google.cloud.websecurityscanner.v1; import "google/cloud/websecurityscanner/v1/scan_config_error.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanRunErrorTraceProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_log.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_log.proto index 1ff167e3f3dd..c1692674de10 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_log.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_log.proto @@ -20,7 +20,7 @@ import "google/cloud/websecurityscanner/v1/scan_run.proto"; import "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanRunLogProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto index dfc61697701e..db9d9330055b 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanRunWarningTraceProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/web_security_scanner.proto index efcc9bf2d39d..141f432c1906 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/web_security_scanner.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1/web_security_scanner.proto @@ -27,7 +27,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "WebSecurityScannerProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/crawled_url.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/crawled_url.proto index c22f4272f167..57d53c9ef534 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/crawled_url.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/crawled_url.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1alpha; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1alpha/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "CrawledUrlProto"; option java_package = "com.google.cloud.websecurityscanner.v1alpha"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding.proto index c02020f34319..55987fe09509 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding.proto @@ -20,7 +20,7 @@ package google.cloud.websecurityscanner.v1alpha; import "google/api/resource.proto"; import "google/cloud/websecurityscanner/v1alpha/finding_addon.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1alpha/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "FindingProto"; option java_package = "com.google.cloud.websecurityscanner.v1alpha"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_addon.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_addon.proto index 3fafdb40206a..f16b53ccf794 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_addon.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_addon.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1alpha; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1alpha/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "FindingAddonProto"; option java_package = "com.google.cloud.websecurityscanner.v1alpha"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto index e46b330c627e..4b8545a75c1c 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto @@ -19,7 +19,7 @@ package google.cloud.websecurityscanner.v1alpha; import "google/cloud/websecurityscanner/v1alpha/finding.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1alpha/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "FindingTypeStatsProto"; option java_package = "com.google.cloud.websecurityscanner.v1alpha"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_config.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_config.proto index 5497b1a0f6ac..e2cd7fe7135c 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_config.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_config.proto @@ -22,7 +22,7 @@ import "google/api/resource.proto"; import "google/cloud/websecurityscanner/v1alpha/scan_run.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1alpha/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanConfigProto"; option java_package = "com.google.cloud.websecurityscanner.v1alpha"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_run.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_run.proto index 79c54194938f..72d281a7d42e 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_run.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/scan_run.proto @@ -20,7 +20,7 @@ package google.cloud.websecurityscanner.v1alpha; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1alpha/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanRunProto"; option java_package = "com.google.cloud.websecurityscanner.v1alpha"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto index f34bd74d56bc..13ed469e7dcc 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto @@ -29,7 +29,7 @@ import "google/cloud/websecurityscanner/v1alpha/scan_run.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1alpha/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "WebSecurityScannerProto"; option java_package = "com.google.cloud.websecurityscanner.v1alpha"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/crawled_url.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/crawled_url.proto index cbfead4cb3b1..235f8126469c 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/crawled_url.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/crawled_url.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "CrawledUrlProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding.proto index 999e0920d796..ca07cafd902b 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding.proto @@ -21,7 +21,7 @@ import "google/api/resource.proto"; import "google/cloud/websecurityscanner/v1beta/finding_addon.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "FindingProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_addon.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_addon.proto index c29f6cadd9a0..a64fbf8e1df2 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_addon.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_addon.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "FindingAddonProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto index 9b2157618193..842a9f359e12 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "FindingTypeStatsProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config.proto index b25c61984150..550e2e736a8f 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config.proto @@ -23,7 +23,7 @@ import "google/cloud/websecurityscanner/v1beta/scan_run.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanConfigProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config_error.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config_error.proto index 3920b74fdc74..3030f9f264fb 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config_error.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_config_error.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanConfigErrorProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run.proto index 48800d247e28..da45e0a681ea 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run.proto @@ -23,7 +23,7 @@ import "google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanRunProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto index acbdef2bdf58..5eedd11503d2 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto @@ -20,7 +20,7 @@ package google.cloud.websecurityscanner.v1beta; import "google/cloud/websecurityscanner/v1beta/scan_config_error.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanRunErrorTraceProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto index 6ee6b3474960..0786e94d1609 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "ScanRunWarningTraceProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto index 79be175b5cf3..211affc4cc27 100644 --- a/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto +++ b/packages/google-cloud-websecurityscanner/protos/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -30,7 +30,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; +option go_package = "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb"; option java_multiple_files = true; option java_outer_classname = "WebSecurityScannerProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; diff --git a/packages/google-cloud-websecurityscanner/protos/protos.json b/packages/google-cloud-websecurityscanner/protos/protos.json index 1aff34bb3d01..20dfe0a94113 100644 --- a/packages/google-cloud-websecurityscanner/protos/protos.json +++ b/packages/google-cloud-websecurityscanner/protos/protos.json @@ -9,7 +9,7 @@ "v1": { "options": { "csharp_namespace": "Google.Cloud.WebSecurityScanner.V1", - "go_package": "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner", + "go_package": "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb;websecurityscannerpb", "java_multiple_files": true, "java_outer_classname": "WebSecurityScannerProto", "java_package": "com.google.cloud.websecurityscanner.v1", @@ -1093,7 +1093,7 @@ }, "v1alpha": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner", + "go_package": "cloud.google.com/go/websecurityscanner/apiv1alpha/websecurityscannerpb;websecurityscannerpb", "java_multiple_files": true, "java_outer_classname": "WebSecurityScannerProto", "java_package": "com.google.cloud.websecurityscanner.v1alpha" @@ -2032,7 +2032,7 @@ "v1beta": { "options": { "csharp_namespace": "Google.Cloud.WebSecurityScanner.V1Beta", - "go_package": "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner", + "go_package": "cloud.google.com/go/websecurityscanner/apiv1beta/websecurityscannerpb;websecurityscannerpb", "java_multiple_files": true, "java_outer_classname": "WebSecurityScannerProto", "java_package": "com.google.cloud.websecurityscanner.v1beta", diff --git a/packages/google-cloud-workflows-executions/owlbot.py b/packages/google-cloud-workflows-executions/owlbot.py index 1505c5e0c364..4ded010ab5b2 100644 --- a/packages/google-cloud-workflows-executions/owlbot.py +++ b/packages/google-cloud-workflows-executions/owlbot.py @@ -22,3 +22,5 @@ from pathlib import Path import shutil node.owlbot_main(relative_dir="packages/google-cloud-workflows-executions",templates_excludes=["src/index.ts"], staging_excludes=["src/v1/index.ts", "src/v1beta/index.ts", "src/index.ts", "README.md", "package.json"]) +shutil.rmtree('v1', ignore_errors=True) +shutil.rmtree('v1beta', ignore_errors=True) \ No newline at end of file diff --git a/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/executions/v1/executions.proto b/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/executions/v1/executions.proto index da76df9b8d92..f83921d0f351 100644 --- a/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/executions/v1/executions.proto +++ b/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/executions/v1/executions.proto @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1;executions"; +option go_package = "cloud.google.com/go/workflows/executions/apiv1/executionspb;executionspb"; option java_multiple_files = true; option java_outer_classname = "ExecutionsProto"; option java_package = "com.google.cloud.workflows.executions.v1"; diff --git a/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/executions/v1beta/executions.proto b/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/executions/v1beta/executions.proto index 5b03fdfe5944..dd37f3b88b5e 100644 --- a/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/executions/v1beta/executions.proto +++ b/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/executions/v1beta/executions.proto @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta;executions"; +option go_package = "cloud.google.com/go/workflows/executions/apiv1beta/executionspb;executionspb"; option java_multiple_files = true; option java_outer_classname = "ExecutionsProto"; option java_package = "com.google.cloud.workflows.executions.v1beta"; diff --git a/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/v1/workflows.proto b/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/v1/workflows.proto index 0b14cb306b58..9b9f86eac765 100644 --- a/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/v1/workflows.proto +++ b/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/v1/workflows.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/workflows/v1;workflows"; +option go_package = "cloud.google.com/go/workflows/apiv1/workflowspb;workflowspb"; option java_multiple_files = true; option java_outer_classname = "WorkflowsProto"; option java_package = "com.google.cloud.workflows.v1"; diff --git a/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/v1beta/workflows.proto b/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/v1beta/workflows.proto index 5308fa7313d9..d929f2006d7a 100644 --- a/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/v1beta/workflows.proto +++ b/packages/google-cloud-workflows-executions/protos/google/cloud/workflows/v1beta/workflows.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "google.golang.org/genproto/googleapis/cloud/workflows/v1beta;workflows"; +option go_package = "cloud.google.com/go/workflows/apiv1beta/workflowspb;workflowspb"; option java_multiple_files = true; option java_outer_classname = "WorkflowsProto"; option java_package = "com.google.cloud.workflows.v1beta"; diff --git a/packages/google-cloud-workflows-executions/protos/protos.json b/packages/google-cloud-workflows-executions/protos/protos.json index d89891d99697..853f81b78a97 100644 --- a/packages/google-cloud-workflows-executions/protos/protos.json +++ b/packages/google-cloud-workflows-executions/protos/protos.json @@ -10,7 +10,7 @@ "nested": { "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1;executions", + "go_package": "cloud.google.com/go/workflows/executions/apiv1/executionspb;executionspb", "java_multiple_files": true, "java_outer_classname": "ExecutionsProto", "java_package": "com.google.cloud.workflows.executions.v1", @@ -345,7 +345,7 @@ }, "v1beta": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta;executions", + "go_package": "cloud.google.com/go/workflows/executions/apiv1beta/executionspb;executionspb", "java_multiple_files": true, "java_outer_classname": "ExecutionsProto", "java_package": "com.google.cloud.workflows.executions.v1beta", @@ -624,7 +624,7 @@ }, "v1": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/workflows/v1;workflows", + "go_package": "cloud.google.com/go/workflows/apiv1/workflowspb;workflowspb", "java_multiple_files": true, "java_outer_classname": "WorkflowsProto", "java_package": "com.google.cloud.workflows.v1" @@ -974,7 +974,7 @@ }, "v1beta": { "options": { - "go_package": "google.golang.org/genproto/googleapis/cloud/workflows/v1beta;workflows", + "go_package": "cloud.google.com/go/workflows/apiv1beta/workflowspb;workflowspb", "java_multiple_files": true, "java_outer_classname": "WorkflowsProto", "java_package": "com.google.cloud.workflows.v1beta" From fcaacbc8060ec8eb750d283dc17febe9fb0f2cd8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 14:09:54 -0800 Subject: [PATCH 25/38] feat: [ai-platform] add service_networking.proto to aiplatform v1 (#3937) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add disable_explanations to DeployedModel in aiplatform v1beta1 endpoint.proto feat: add service_networking.proto to aiplatform v1beta1 feat: add private_service_connect_config to IndexEndpoint in aiplatform v1beta1 index_endpoint.proto feat: add nas_job.proto to aiplatform v1beta1 feat: add CreateNasJob, GetNasJob, ListNasJobs, DeleteNasJob, CancelNasJob, GetNasTrialDetail, ListNasTrialDetails RPCs to aiplatform v1beta1 job_service.proto feat: add original_model_info to Model in aiplatform v1beta1 model.proto feat: add CopyModel RPC to aiplatform v1beta1 model_service.proto feat: add failed_jobs to CustomJobDetail to aiplatform v1beta1 pipeline_job.proto feat: add safety_config to StudySpec in aiplatform v1beta1 study.proto PiperOrigin-RevId: 506776591 Source-Link: https://github.com/googleapis/googleapis/commit/a33b408525b964c452a27105bdb3b3206b16eb09 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e15a8ce6c9181b2590358a8b01809859e020d792 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImUxNWE4Y2U2YzkxODFiMjU5MDM1OGE4YjAxODA5ODU5ZTAyMGQ3OTIifQ== * feat: add service_networking.proto to aiplatform v1 feat: add private_service_connect_config to IndexEndpoint in aiplatform v1 index_endpoint.proto feat: add nas_job.proto to aiplatform v1 feat: add CreateNasJob, GetNasJob, ListNasJobs, DeleteNasJob, CancelNasJob, GetNasTrialDetail, ListNasTrialDetails RPCs to aiplatform v1 job_service.proto feat: add original_model_info to Model in aiplatform v1 model.proto feat: add CopyModel RPC to aiplatform v1 model_service.proto feat: add failed_jobs to CustomJobDetail to aiplatform v1 pipeline_job.proto feat: add safety_config to StudySpec in aiplatform v1 study.proto PiperOrigin-RevId: 506776605 Source-Link: https://github.com/googleapis/googleapis/commit/c7c17c07380282fa2d4d6c33a4a4727f9b1b416e Source-Link: https://github.com/googleapis/googleapis-gen/commit/d5217761a0cf1fc6bf240021d481eb9d70ca376a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImQ1MjE3NzYxYTBjZjFmYzZiZjI0MDAyMWQ0ODFlYjlkNzBjYTM3NmEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update .gitignore to always include protos folder Use gapic-generator-typescript v3.0.0. PiperOrigin-RevId: 507004755 Source-Link: https://github.com/googleapis/googleapis/commit/d784f3c1043616fc0646e9ce7afa1b9161cc02de Source-Link: https://github.com/googleapis/googleapis-gen/commit/5e64ba8615f65fdedb1fcd6ac792e5ea621027e4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjVlNjRiYTg2MTVmNjVmZGVkYjFmY2Q2YWM3OTJlNWVhNjIxMDI3ZTQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-aiplatform/.gitignore | 12 +- packages/google-cloud-aiplatform/README.md | 16 + .../google/cloud/aiplatform/v1/endpoint.proto | 5 +- .../cloud/aiplatform/v1/index_endpoint.proto | 13 +- .../cloud/aiplatform/v1/job_service.proto | 253 +- .../google/cloud/aiplatform/v1/model.proto | 18 + .../cloud/aiplatform/v1/model_service.proto | 88 + .../google/cloud/aiplatform/v1/nas_job.proto | 306 + .../cloud/aiplatform/v1/pipeline_job.proto | 9 +- .../aiplatform/v1/service_networking.proto | 38 + .../google/cloud/aiplatform/v1/study.proto | 19 + .../cloud/aiplatform/v1beta1/endpoint.proto | 12 +- .../aiplatform/v1beta1/index_endpoint.proto | 13 +- .../aiplatform/v1beta1/job_service.proto | 253 +- .../cloud/aiplatform/v1beta1/model.proto | 18 + .../aiplatform/v1beta1/model_service.proto | 88 + .../cloud/aiplatform/v1beta1/nas_job.proto | 306 + .../aiplatform/v1beta1/pipeline_job.proto | 9 +- .../v1beta1/service_networking.proto | 38 + .../cloud/aiplatform/v1beta1/study.proto | 19 + .../protos/protos.d.ts | 90816 ++++++++------- .../google-cloud-aiplatform/protos/protos.js | 94599 +++++++++------- .../protos/protos.json | 2446 +- .../google-cloud-aiplatform/samples/README.md | 288 + .../v1/job_service.cancel_nas_job.js | 63 + .../v1/job_service.create_nas_job.js | 67 + .../v1/job_service.delete_nas_job.js | 64 + .../generated/v1/job_service.get_nas_job.js | 63 + .../v1/job_service.get_nas_trial_detail.js | 63 + .../generated/v1/job_service.list_nas_jobs.js | 100 + .../v1/job_service.list_nas_trial_details.js | 78 + .../generated/v1/model_service.copy_model.js | 88 + ...t_metadata.google.cloud.aiplatform.v1.json | 364 + .../v1beta1/job_service.cancel_nas_job.js | 63 + .../v1beta1/job_service.create_nas_job.js | 67 + .../v1beta1/job_service.delete_nas_job.js | 64 + .../v1beta1/job_service.get_nas_job.js | 63 + .../job_service.get_nas_trial_detail.js | 63 + .../v1beta1/job_service.list_nas_jobs.js | 100 + .../job_service.list_nas_trial_details.js | 78 + .../v1beta1/model_service.copy_model.js | 88 + ...adata.google.cloud.aiplatform.v1beta1.json | 364 + .../src/v1/dataset_service_client.ts | 130 + .../src/v1/dataset_service_proto_list.json | 2 + .../src/v1/endpoint_service_client.ts | 130 + .../src/v1/endpoint_service_proto_list.json | 2 + ...turestore_online_serving_service_client.ts | 130 + ...ore_online_serving_service_proto_list.json | 2 + .../src/v1/featurestore_service_client.ts | 130 + .../v1/featurestore_service_proto_list.json | 2 + .../src/v1/gapic_metadata.json | 88 + .../src/v1/index_endpoint_service_client.ts | 130 + .../v1/index_endpoint_service_proto_list.json | 2 + .../src/v1/index_service_client.ts | 130 + .../src/v1/index_service_proto_list.json | 2 + .../src/v1/job_service_client.ts | 3028 +- .../src/v1/job_service_client_config.json | 28 + .../src/v1/job_service_proto_list.json | 2 + .../src/v1/metadata_service_client.ts | 130 + .../src/v1/metadata_service_proto_list.json | 2 + .../src/v1/migration_service_client.ts | 130 + .../src/v1/migration_service_proto_list.json | 2 + .../src/v1/model_service_client.ts | 303 + .../src/v1/model_service_client_config.json | 4 + .../src/v1/model_service_proto_list.json | 2 + .../src/v1/pipeline_service_client.ts | 130 + .../src/v1/pipeline_service_proto_list.json | 2 + .../src/v1/prediction_service_client.ts | 130 + .../src/v1/prediction_service_proto_list.json | 2 + .../src/v1/specialist_pool_service_client.ts | 130 + .../specialist_pool_service_proto_list.json | 2 + .../src/v1/tensorboard_service_client.ts | 130 + .../v1/tensorboard_service_proto_list.json | 2 + .../src/v1/vizier_service_client.ts | 130 + .../src/v1/vizier_service_proto_list.json | 2 + .../src/v1beta1/dataset_service_client.ts | 130 + .../v1beta1/dataset_service_proto_list.json | 2 + ...deployment_resource_pool_service_client.ts | 130 + ...ment_resource_pool_service_proto_list.json | 2 + .../src/v1beta1/endpoint_service_client.ts | 130 + .../v1beta1/endpoint_service_proto_list.json | 2 + ...turestore_online_serving_service_client.ts | 130 + ...ore_online_serving_service_proto_list.json | 2 + .../v1beta1/featurestore_service_client.ts | 130 + .../featurestore_service_proto_list.json | 2 + .../src/v1beta1/gapic_metadata.json | 88 + .../v1beta1/index_endpoint_service_client.ts | 130 + .../index_endpoint_service_proto_list.json | 2 + .../src/v1beta1/index_service_client.ts | 130 + .../src/v1beta1/index_service_proto_list.json | 2 + .../src/v1beta1/job_service_client.ts | 3136 +- .../v1beta1/job_service_client_config.json | 28 + .../src/v1beta1/job_service_proto_list.json | 2 + .../src/v1beta1/metadata_service_client.ts | 130 + .../v1beta1/metadata_service_proto_list.json | 2 + .../src/v1beta1/migration_service_client.ts | 130 + .../v1beta1/migration_service_proto_list.json | 2 + .../src/v1beta1/model_service_client.ts | 303 + .../v1beta1/model_service_client_config.json | 5 + .../src/v1beta1/model_service_proto_list.json | 2 + .../src/v1beta1/pipeline_service_client.ts | 130 + .../v1beta1/pipeline_service_proto_list.json | 2 + .../src/v1beta1/prediction_service_client.ts | 130 + .../prediction_service_proto_list.json | 2 + .../v1beta1/specialist_pool_service_client.ts | 130 + .../specialist_pool_service_proto_list.json | 2 + .../src/v1beta1/tensorboard_service_client.ts | 130 + .../tensorboard_service_proto_list.json | 2 + .../src/v1beta1/vizier_service_client.ts | 130 + .../v1beta1/vizier_service_proto_list.json | 2 + .../test/gapic_dataset_service_v1.ts | 141 + .../test/gapic_dataset_service_v1beta1.ts | 141 + ...eployment_resource_pool_service_v1beta1.ts | 147 + .../test/gapic_endpoint_service_v1.ts | 141 + .../test/gapic_endpoint_service_v1beta1.ts | 141 + ..._featurestore_online_serving_service_v1.ts | 147 + ...urestore_online_serving_service_v1beta1.ts | 147 + .../test/gapic_featurestore_service_v1.ts | 145 + .../gapic_featurestore_service_v1beta1.ts | 143 + .../test/gapic_index_endpoint_service_v1.ts | 143 + .../gapic_index_endpoint_service_v1beta1.ts | 143 + .../test/gapic_index_service_v1.ts | 141 + .../test/gapic_index_service_v1beta1.ts | 141 + .../test/gapic_job_service_v1.ts | 3372 +- .../test/gapic_job_service_v1beta1.ts | 3365 +- .../test/gapic_metadata_service_v1.ts | 141 + .../test/gapic_metadata_service_v1beta1.ts | 141 + .../test/gapic_migration_service_v1.ts | 141 + .../test/gapic_migration_service_v1beta1.ts | 141 + .../test/gapic_model_service_v1.ts | 331 + .../test/gapic_model_service_v1beta1.ts | 331 + .../test/gapic_pipeline_service_v1.ts | 141 + .../test/gapic_pipeline_service_v1beta1.ts | 141 + .../test/gapic_prediction_service_v1.ts | 141 + .../test/gapic_prediction_service_v1beta1.ts | 143 + .../test/gapic_specialist_pool_service_v1.ts | 143 + .../gapic_specialist_pool_service_v1beta1.ts | 143 + .../test/gapic_tensorboard_service_v1.ts | 141 + .../test/gapic_tensorboard_service_v1beta1.ts | 143 + .../test/gapic_vizier_service_v1.ts | 141 + .../test/gapic_vizier_service_v1beta1.ts | 141 + 141 files changed, 126572 insertions(+), 86835 deletions(-) create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js diff --git a/packages/google-cloud-aiplatform/.gitignore b/packages/google-cloud-aiplatform/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-aiplatform/.gitignore +++ b/packages/google-cloud-aiplatform/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-aiplatform/README.md b/packages/google-cloud-aiplatform/README.md index 5b9c044a5812..2864235ad9a8 100644 --- a/packages/google-cloud-aiplatform/README.md +++ b/packages/google-cloud-aiplatform/README.md @@ -163,26 +163,33 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Job_service.cancel_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_custom_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_custom_job.js,samples/README.md) | | Job_service.cancel_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_data_labeling_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_data_labeling_job.js,samples/README.md) | | Job_service.cancel_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js,samples/README.md) | +| Job_service.cancel_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js,samples/README.md) | | Job_service.create_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_batch_prediction_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_batch_prediction_job.js,samples/README.md) | | Job_service.create_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_custom_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_custom_job.js,samples/README.md) | | Job_service.create_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_data_labeling_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_data_labeling_job.js,samples/README.md) | | Job_service.create_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.create_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.create_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js,samples/README.md) | | Job_service.delete_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_batch_prediction_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_batch_prediction_job.js,samples/README.md) | | Job_service.delete_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_custom_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_custom_job.js,samples/README.md) | | Job_service.delete_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_data_labeling_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_data_labeling_job.js,samples/README.md) | | Job_service.delete_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.delete_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.delete_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js,samples/README.md) | | Job_service.get_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_batch_prediction_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_batch_prediction_job.js,samples/README.md) | | Job_service.get_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_custom_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_custom_job.js,samples/README.md) | | Job_service.get_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_data_labeling_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_data_labeling_job.js,samples/README.md) | | Job_service.get_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.get_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.get_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js,samples/README.md) | +| Job_service.get_nas_trial_detail | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js,samples/README.md) | | Job_service.list_batch_prediction_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js,samples/README.md) | | Job_service.list_custom_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.js,samples/README.md) | | Job_service.list_data_labeling_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.js,samples/README.md) | | Job_service.list_hyperparameter_tuning_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js,samples/README.md) | | Job_service.list_model_deployment_monitoring_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js,samples/README.md) | +| Job_service.list_nas_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js,samples/README.md) | +| Job_service.list_nas_trial_details | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js,samples/README.md) | | Job_service.pause_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js,samples/README.md) | | Job_service.resume_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js,samples/README.md) | | Job_service.search_model_deployment_monitoring_stats_anomalies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js,samples/README.md) | @@ -222,6 +229,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Migration_service.batch_migrate_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.batch_migrate_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/migration_service.batch_migrate_resources.js,samples/README.md) | | Migration_service.search_migratable_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/migration_service.search_migratable_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/migration_service.search_migratable_resources.js,samples/README.md) | | Model_service.batch_import_model_evaluation_slices | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js,samples/README.md) | +| Model_service.copy_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js,samples/README.md) | | Model_service.delete_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js,samples/README.md) | | Model_service.delete_model_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model_version.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model_version.js,samples/README.md) | | Model_service.export_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.export_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.export_model.js,samples/README.md) | @@ -365,26 +373,33 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Job_service.cancel_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_custom_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_custom_job.js,samples/README.md) | | Job_service.cancel_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js,samples/README.md) | | Job_service.cancel_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js,samples/README.md) | +| Job_service.cancel_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js,samples/README.md) | | Job_service.create_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_batch_prediction_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_batch_prediction_job.js,samples/README.md) | | Job_service.create_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_custom_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_custom_job.js,samples/README.md) | | Job_service.create_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_data_labeling_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_data_labeling_job.js,samples/README.md) | | Job_service.create_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.create_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.create_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js,samples/README.md) | | Job_service.delete_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js,samples/README.md) | | Job_service.delete_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_custom_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_custom_job.js,samples/README.md) | | Job_service.delete_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_data_labeling_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_data_labeling_job.js,samples/README.md) | | Job_service.delete_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.delete_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.delete_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js,samples/README.md) | | Job_service.get_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_batch_prediction_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_batch_prediction_job.js,samples/README.md) | | Job_service.get_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_custom_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_custom_job.js,samples/README.md) | | Job_service.get_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_data_labeling_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_data_labeling_job.js,samples/README.md) | | Job_service.get_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.get_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.get_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js,samples/README.md) | +| Job_service.get_nas_trial_detail | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js,samples/README.md) | | Job_service.list_batch_prediction_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js,samples/README.md) | | Job_service.list_custom_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.js,samples/README.md) | | Job_service.list_data_labeling_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js,samples/README.md) | | Job_service.list_hyperparameter_tuning_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js,samples/README.md) | | Job_service.list_model_deployment_monitoring_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js,samples/README.md) | +| Job_service.list_nas_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js,samples/README.md) | +| Job_service.list_nas_trial_details | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js,samples/README.md) | | Job_service.pause_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js,samples/README.md) | | Job_service.resume_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js,samples/README.md) | | Job_service.search_model_deployment_monitoring_stats_anomalies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js,samples/README.md) | @@ -424,6 +439,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Migration_service.batch_migrate_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.batch_migrate_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.batch_migrate_resources.js,samples/README.md) | | Migration_service.search_migratable_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.search_migratable_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/migration_service.search_migratable_resources.js,samples/README.md) | | Model_service.batch_import_model_evaluation_slices | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js,samples/README.md) | +| Model_service.copy_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js,samples/README.md) | | Model_service.delete_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js,samples/README.md) | | Model_service.delete_model_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model_version.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model_version.js,samples/README.md) | | Model_service.export_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.export_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.export_model.js,samples/README.md) | diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto index 1f3a5a190699..edbfc0cbe4e8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto @@ -96,7 +96,7 @@ message Endpoint { // this key. EncryptionSpec encryption_spec = 10; - // The full name of the Google Compute Engine + // Optional. The full name of the Google Compute Engine // [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks) // to which the Endpoint should be peered. // @@ -113,6 +113,7 @@ message Endpoint { // Where `{project}` is a project number, as in `12345`, and `{network}` is // network name. string network = 13 [ + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; @@ -224,6 +225,8 @@ message DeployedModel { // User can disable container logging by setting this flag to true. bool disable_container_logging = 15; + // If true, online prediction access logs are sent to StackDriver + // Logging. // These logs are like standard server access logs, containing // information like timestamp and latency for each prediction request. // diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto index 8f699671d33e..6fbbb8817e02 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/machine_resources.proto"; +import "google/cloud/aiplatform/v1/service_networking.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -102,6 +103,14 @@ message IndexEndpoint { // can be set. bool enable_private_service_connect = 10 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for private service connect. + // + // [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + // are mutually exclusive. + PrivateServiceConnectConfig private_service_connect_config = 12 + [(google.api.field_behavior) = OPTIONAL]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. @@ -177,10 +186,10 @@ message DeployedIndex { // e2-standard-16 and all machine types available for LARGE shard. // // Available machine types for LARGE shard: - // e2-standard-32, e2-highmem-16, n2d-standard-32. + // e2-highmem-16, n2d-standard-32. // // n1-standard-16 and n1-standard-32 are still available, but we recommend - // e2-standard-16 and e2-standard-32 for cost efficiency. + // e2-standard-16 and e2-highmem-16 for cost efficiency. DedicatedResources dedicated_resources = 16 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto index bac4eb93b792..ce8d664a379e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1/custom_job.proto"; import "google/cloud/aiplatform/v1/data_labeling_job.proto"; import "google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto"; import "google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto"; +import "google/cloud/aiplatform/v1/nas_job.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -43,7 +44,8 @@ option ruby_package = "Google::Cloud::AIPlatform::V1"; service JobService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; // Creates a CustomJob. A created CustomJob right away // will be attempted to be run. @@ -219,6 +221,81 @@ service JobService { option (google.api.method_signature) = "name"; } + // Creates a NasJob + rpc CreateNasJob(CreateNasJobRequest) returns (NasJob) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/nasJobs" + body: "nas_job" + }; + option (google.api.method_signature) = "parent,nas_job"; + } + + // Gets a NasJob + rpc GetNasJob(GetNasJobRequest) returns (NasJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/nasJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists NasJobs in a Location. + rpc ListNasJobs(ListNasJobsRequest) returns (ListNasJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/nasJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a NasJob. + rpc DeleteNasJob(DeleteNasJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/nasJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a NasJob. + // Starts asynchronous cancellation on the NasJob. The server + // makes a best effort to cancel the job, but success is not + // guaranteed. Clients can use + // [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob] or + // other methods to check whether the cancellation succeeded or whether the + // job completed despite cancellation. On successful cancellation, + // the NasJob is not deleted; instead it becomes a job with + // a [NasJob.error][google.cloud.aiplatform.v1.NasJob.error] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`, and + // [NasJob.state][google.cloud.aiplatform.v1.NasJob.state] is set to + // `CANCELLED`. + rpc CancelNasJob(CancelNasJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/nasJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a NasTrialDetail. + rpc GetNasTrialDetail(GetNasTrialDetailRequest) returns (NasTrialDetail) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List top NasTrialDetails of a NasJob. + rpc ListNasTrialDetails(ListNasTrialDetailsRequest) + returns (ListNasTrialDetailsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails" + }; + option (google.api.method_signature) = "parent"; + } + // Creates a BatchPredictionJob. A BatchPredictionJob once created will // right away be attempted to start. rpc CreateBatchPredictionJob(CreateBatchPredictionJobRequest) @@ -752,6 +829,180 @@ message CancelHyperparameterTuningJobRequest { ]; } +// Request message for +// [JobService.CreateNasJob][google.cloud.aiplatform.v1.JobService.CreateNasJob]. +message CreateNasJobRequest { + // Required. The resource name of the Location to create the NasJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The NasJob to create. + NasJob nas_job = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob]. +message GetNasJobRequest { + // Required. The name of the NasJob resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.ListNasJobs][google.cloud.aiplatform.v1.JobService.ListNasJobs]. +message ListNasJobsRequest { + // Required. The resource name of the Location to list the NasJobs + // from. Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // + // Supported fields: + // + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence + // + // Some examples of using the filter are: + // + // * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + // * `NOT display_name="my_job"` + // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListNasJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token] + // of the previous + // [JobService.ListNasJobs][google.cloud.aiplatform.v1.JobService.ListNasJobs] + // call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for +// [JobService.ListNasJobs][google.cloud.aiplatform.v1.JobService.ListNasJobs] +message ListNasJobsResponse { + // List of NasJobs in the requested page. + // [NasJob.nas_job_output][google.cloud.aiplatform.v1.NasJob.nas_job_output] + // of the jobs will not be returned. + repeated NasJob nas_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListNasJobsRequest.page_token][google.cloud.aiplatform.v1.ListNasJobsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + +// Request message for +// [JobService.DeleteNasJob][google.cloud.aiplatform.v1.JobService.DeleteNasJob]. +message DeleteNasJobRequest { + // Required. The name of the NasJob resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.CancelNasJob][google.cloud.aiplatform.v1.JobService.CancelNasJob]. +message CancelNasJobRequest { + // Required. The name of the NasJob to cancel. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.GetNasTrialDetail][google.cloud.aiplatform.v1.JobService.GetNasTrialDetail]. +message GetNasTrialDetailRequest { + // Required. The name of the NasTrialDetail resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasTrialDetail" + } + ]; +} + +// Request message for +// [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1.JobService.ListNasTrialDetails]. +message ListNasTrialDetailsRequest { + // Required. The name of the NasJob resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; + + // The standard list page size. + int32 page_size = 2; + + // The standard list page token. + // Typically obtained via + // [ListNasTrialDetailsResponse.next_page_token][google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token] + // of the previous + // [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1.JobService.ListNasTrialDetails] + // call. + string page_token = 3; +} + +// Response message for +// [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1.JobService.ListNasTrialDetails] +message ListNasTrialDetailsResponse { + // List of top NasTrials in the requested page. + repeated NasTrialDetail nas_trial_details = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListNasTrialDetailsRequest.page_token][google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + // Request message for // [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJob]. message CreateBatchPredictionJobRequest { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto index 33f27c73f80e..8ca72f5260b7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model.proto @@ -90,6 +90,19 @@ message Model { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Contains information about the original Model if this Model is a copy. + message OriginalModelInfo { + // Output only. The resource name of the Model this Model is a copy of, + // including the revision. Format: + // `projects/{project}/locations/{location}/models/{model_id}@{version_id}` + string model = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + } + // Identifies a type of Model's prediction resources. enum DeploymentResourcesType { // Should not be used. @@ -376,6 +389,11 @@ message Model { ModelSourceInfo model_source_info = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If this Model is a copy of another Model, this contains info + // about the original. + OriginalModelInfo original_model_info = 34 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The resource name of the Artifact that was created in // MetadataStore when creating the Model. The Artifact resource name pattern // is diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto index b2132ed39d01..4afe6afcac51 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/cloud/aiplatform/v1/io.proto"; import "google/cloud/aiplatform/v1/model.proto"; import "google/cloud/aiplatform/v1/model_evaluation.proto"; @@ -151,6 +152,24 @@ service ModelService { }; } + // Copies an already existing Vertex AI Model into the specified Location. + // The source Model must exist in the same Project. + // When copying custom Models, the users themselves are responsible for + // [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be + // region-agnostic, as well as making sure that any resources (e.g. files) it + // depends on remain accessible. + rpc CopyModel(CopyModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/models:copy" + body: "*" + }; + option (google.api.method_signature) = "parent,source_model"; + option (google.longrunning.operation_info) = { + response_type: "CopyModelResponse" + metadata_type: "CopyModelOperationMetadata" + }; + } + // Imports an externally generated ModelEvaluation. rpc ImportModelEvaluation(ImportModelEvaluationRequest) returns (ModelEvaluation) { @@ -580,6 +599,75 @@ message ExportModelOperationMetadata { // operation. message ExportModelResponse {} +// Request message for +// [ModelService.CopyModel][google.cloud.aiplatform.v1.ModelService.CopyModel]. +message CopyModelRequest { + // If both fields are unset, a new Model will be created with a generated ID. + oneof destination_model { + // Optional. Copy source_model into a new Model with this ID. The ID will + // become the final component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specify this field to copy source_model into this existing + // Model as a new version. Format: + // `projects/{project}/locations/{location}/models/{model}` + string parent_model = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + } + + // Required. The resource name of the Location into which to copy the Model. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The resource name of the Model to copy. That Model must be in the + // same Project. Format: + // `projects/{project}/locations/{location}/models/{model}` + string source_model = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Customer-managed encryption key options. If this is set, + // then the Model copy will be encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 3; +} + +// Details of +// [ModelService.CopyModel][google.cloud.aiplatform.v1.ModelService.CopyModel] +// operation. +message CopyModelOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message of +// [ModelService.CopyModel][google.cloud.aiplatform.v1.ModelService.CopyModel] +// operation. +message CopyModelResponse { + // The name of the copied Model resource. + // Format: `projects/{project}/locations/{location}/models/{model}` + string model = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + }]; + + // Output only. The version ID of the model that is copied. + string model_version_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request message for // [ModelService.ImportModelEvaluation][google.cloud.aiplatform.v1.ModelService.ImportModelEvaluation] message ImportModelEvaluationRequest { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto new file mode 100644 index 000000000000..f763b655f9f4 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto @@ -0,0 +1,306 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/custom_job.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/job_state.proto"; +import "google/cloud/aiplatform/v1/study.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "NasJobProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Represents a Neural Architecture Search (NAS) job. +message NasJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/NasJob" + pattern: "projects/{project}/locations/{location}/nasJobs/{nas_job}" + }; + + // Output only. Resource name of the NasJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the NasJob. + // The name can be up to 128 characters long and can consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The specification of a NasJob. + NasJobSpec nas_job_spec = 4 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Output of the NasJob. + NasJobOutput nas_job_output = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the job. + JobState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob for the first time entered the + // `JOB_STATE_RUNNING` state. + google.protobuf.Timestamp start_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob entered any of the following states: + // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + google.protobuf.Timestamp end_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob was most recently updated. + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only populated when job's state is JOB_STATE_FAILED or + // JOB_STATE_CANCELLED. + google.rpc.Status error = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize NasJobs. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 12; + + // Customer-managed encryption key options for a NasJob. + // If this is set, then all resources created by the NasJob + // will be encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 13; + + // Optional. Enable a separation of Custom model training + // and restricted image training for tenant project. + bool enable_restricted_image_training = 14 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a NasTrial details along with it's parameters. If there is a +// corresponding train NasTrial, the train NasTrial is also returned. +message NasTrialDetail { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/NasTrialDetail" + pattern: "projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}" + }; + + // Output only. Resource name of the NasTrialDetail. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The parameters for the NasJob NasTrial. + string parameters = 2; + + // The requested search NasTrial. + NasTrial search_trial = 3; + + // The train NasTrial corresponding to + // [search_trial][google.cloud.aiplatform.v1.NasTrialDetail.search_trial]. + // Only populated if + // [search_trial][google.cloud.aiplatform.v1.NasTrialDetail.search_trial] is + // used for training. + NasTrial train_trial = 4; +} + +// Represents the spec of a NasJob. +message NasJobSpec { + // The spec of multi-trial Neural Architecture Search (NAS). + message MultiTrialAlgorithmSpec { + // Represents a metric to optimize. + message MetricSpec { + // The available types of optimization goals. + enum GoalType { + // Goal Type will default to maximize. + GOAL_TYPE_UNSPECIFIED = 0; + + // Maximize the goal metric. + MAXIMIZE = 1; + + // Minimize the goal metric. + MINIMIZE = 2; + } + + // Required. The ID of the metric. Must not contain whitespaces. + string metric_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The optimization goal of the metric. + GoalType goal = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Represent spec for search trials. + message SearchTrialSpec { + // Required. The spec of a search trial job. The same spec applies to + // all search trials. + CustomJobSpec search_trial_job_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of Neural Architecture Search (NAS) trials + // to run. + int32 max_trial_count = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of trials to run in parallel. + int32 max_parallel_trial_count = 3 + [(google.api.field_behavior) = REQUIRED]; + + // The number of failed trials that need to be seen before failing + // the NasJob. + // + // If set to 0, Vertex AI decides how many trials must fail + // before the whole job fails. + int32 max_failed_trial_count = 4; + } + + // Represent spec for train trials. + message TrainTrialSpec { + // Required. The spec of a train trial job. The same spec applies to + // all train trials. + CustomJobSpec train_trial_job_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of trials to run in parallel. + int32 max_parallel_trial_count = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Frequency of search trials to start train stage. Top N + // [TrainTrialSpec.max_parallel_trial_count] + // search trials will be trained for every M + // [TrainTrialSpec.frequency] trials searched. + int32 frequency = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // The available types of multi-trial algorithms. + enum MultiTrialAlgorithm { + // Defaults to `REINFORCEMENT_LEARNING`. + MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0; + + // The Reinforcement Learning Algorithm for Multi-trial Neural + // Architecture Search (NAS). + REINFORCEMENT_LEARNING = 1; + + // The Grid Search Algorithm for Multi-trial Neural + // Architecture Search (NAS). + GRID_SEARCH = 2; + } + + // The multi-trial Neural Architecture Search (NAS) algorithm + // type. Defaults to `REINFORCEMENT_LEARNING`. + MultiTrialAlgorithm multi_trial_algorithm = 1; + + // Metric specs for the NAS job. + // Validation for this field is done at `multi_trial_algorithm_spec` field. + MetricSpec metric = 2; + + // Required. Spec for search trials. + SearchTrialSpec search_trial_spec = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] + // search trials will be trained for every M + // [TrainTrialSpec.frequency] trials searched. + TrainTrialSpec train_trial_spec = 4; + } + + // The Neural Architecture Search (NAS) algorithm specification. + oneof nas_algorithm_spec { + // The spec of multi-trial algorithms. + MultiTrialAlgorithmSpec multi_trial_algorithm_spec = 2; + } + + // The ID of the existing NasJob in the same Project and Location + // which will be used to resume search. search_space_spec and + // nas_algorithm_spec are obtained from previous NasJob hence should not + // provide them again for this NasJob. + string resume_nas_job_id = 3; + + // It defines the search space for Neural Architecture Search (NAS). + string search_space_spec = 1; +} + +// Represents a uCAIP NasJob output. +message NasJobOutput { + // The output of a multi-trial Neural Architecture Search (NAS) jobs. + message MultiTrialJobOutput { + // Output only. List of NasTrials that were started as part of search stage. + repeated NasTrial search_trials = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of NasTrials that were started as part of train stage. + repeated NasTrial train_trials = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The output of this Neural Architecture Search (NAS) job. + oneof output { + // Output only. The output of this multi-trial Neural Architecture Search + // (NAS) job. + MultiTrialJobOutput multi_trial_job_output = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// Represents a uCAIP NasJob trial. +message NasTrial { + // Describes a NasTrial state. + enum State { + // The NasTrial state is unspecified. + STATE_UNSPECIFIED = 0; + + // Indicates that a specific NasTrial has been requested, but it has not yet + // been suggested by the service. + REQUESTED = 1; + + // Indicates that the NasTrial has been suggested. + ACTIVE = 2; + + // Indicates that the NasTrial should stop according to the service. + STOPPING = 3; + + // Indicates that the NasTrial is completed successfully. + SUCCEEDED = 4; + + // Indicates that the NasTrial should not be attempted again. + // The service will set a NasTrial to INFEASIBLE when it's done but missing + // the final_measurement. + INFEASIBLE = 5; + } + + // Output only. The identifier of the NasTrial assigned by the service. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the NasTrial. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The final measurement containing the objective value. + Measurement final_measurement = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasTrial was started. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasTrial's status changed to `SUCCEEDED` or + // `INFEASIBLE`. + google.protobuf.Timestamp end_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto index 1b951f3b7fac..f0f6d2bb6a02 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto @@ -381,8 +381,6 @@ message PipelineTaskExecutorDetail { // The detailed info for a custom job executor. message CustomJobDetail { - option deprecated = true; - // Output only. The name of the // [CustomJob][google.cloud.aiplatform.v1.CustomJob]. string job = 1 [ @@ -391,6 +389,11 @@ message PipelineTaskExecutorDetail { type: "aiplatform.googleapis.com/CustomJob" } ]; + + // Output only. The names of the previously failed + // [CustomJob][google.cloud.aiplatform.v1.CustomJob]. The list includes the + // all attempts in chronological order. + repeated string failed_jobs = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } oneof details { @@ -400,6 +403,6 @@ message PipelineTaskExecutorDetail { // Output only. The detailed info for a custom job executor. CustomJobDetail custom_job_detail = 2 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + [(google.api.field_behavior) = OUTPUT_ONLY]; } } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto new file mode 100644 index 000000000000..e8ae11b7a823 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto @@ -0,0 +1,38 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "ServiceNetworkingProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Represents configuration for private service connect. +message PrivateServiceConnectConfig { + // Required. If true, expose the IndexEndpoint via private service connect. + bool enable_private_service_connect = 1 + [(google.api.field_behavior) = REQUIRED]; + + // A list of Projects from which the forwarding rule will target the service + // attachment. + repeated string project_allowlist = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto index cbdacda2d12d..4ef70dbeb245 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto @@ -199,6 +199,21 @@ message Trial { message StudySpec { // Represents a metric to optimize. message MetricSpec { + // Used in safe optimization to specify threshold levels and risk tolerance. + message SafetyMetricConfig { + // Safety threshold (boundary value between safe and unsafe). NOTE that if + // you leave SafetyMetricConfig unset, a default value of 0 will be used. + double safety_threshold = 1; + + // Desired minimum fraction of safe trials (over total number of trials) + // that should be targeted by the algorithm at any time during the + // study (best effort). This should be between 0.0 and 1.0 and a value of + // 0.0 means that there is no minimum and an algorithm proceeds without + // targeting any specific fraction. A value of 1.0 means that the + // algorithm attempts to only Suggest safe Trials. + optional double desired_min_safe_trials_fraction = 2; + } + // The available types of optimization goals. enum GoalType { // Goal Type will default to maximize. @@ -217,6 +232,10 @@ message StudySpec { // Required. The optimization goal of the metric. GoalType goal = 2 [(google.api.field_behavior) = REQUIRED]; + + // Used for safe search. In the case, the metric will be a safety + // metric. You must provide a separate metric for objective metric. + optional SafetyMetricConfig safety_config = 3; } // Represents a single parameter to optimize. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto index ad084fce5055..e5528607bf1e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -96,7 +96,7 @@ message Endpoint { // this key. EncryptionSpec encryption_spec = 10; - // The full name of the Google Compute Engine + // Optional. The full name of the Google Compute Engine // [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks) // to which the Endpoint should be peered. // @@ -113,6 +113,7 @@ message Endpoint { // Where `{project}` is a project number, as in `12345`, and `{network}` is // network name. string network = 13 [ + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; @@ -213,6 +214,13 @@ message DeployedModel { // will be used for the explanation configuration. ExplanationSpec explanation_spec = 9; + // If true, deploy the model without explainable feature, regardless the + // existence of + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] + // or + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]. + bool disable_explanations = 19; + // The service account that the DeployedModel's container runs as. Specify the // email address of the service account. If this service account is not // specified, the container runs as a service account that doesn't have access @@ -228,6 +236,8 @@ message DeployedModel { // Only supported for custom-trained Models and AutoML Tabular Models. bool enable_container_logging = 12; + // If true, online prediction access logs are sent to StackDriver + // Logging. // These logs are like standard server access logs, containing // information like timestamp and latency for each prediction request. // diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto index 59a3f7afa72e..fc387c80b1bc 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; +import "google/cloud/aiplatform/v1beta1/service_networking.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -102,6 +103,14 @@ message IndexEndpoint { // can be set. bool enable_private_service_connect = 10 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for private service connect. + // + // [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + // are mutually exclusive. + PrivateServiceConnectConfig private_service_connect_config = 12 + [(google.api.field_behavior) = OPTIONAL]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. @@ -178,10 +187,10 @@ message DeployedIndex { // e2-standard-16 and all machine types available for LARGE shard. // // Available machine types for LARGE shard: - // e2-standard-32, e2-highmem-16, n2d-standard-32. + // e2-highmem-16, n2d-standard-32. // // n1-standard-16 and n1-standard-32 are still available, but we recommend - // e2-standard-16 and e2-standard-32 for cost efficiency. + // e2-standard-16 and e2-highmem-16 for cost efficiency. DedicatedResources dedicated_resources = 16 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto index e3416ee783b1..abde6266bf89 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/custom_job.proto"; import "google/cloud/aiplatform/v1beta1/data_labeling_job.proto"; import "google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto"; import "google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto"; +import "google/cloud/aiplatform/v1beta1/nas_job.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -43,7 +44,8 @@ option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; service JobService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; // Creates a CustomJob. A created CustomJob right away // will be attempted to be run. @@ -219,6 +221,81 @@ service JobService { option (google.api.method_signature) = "name"; } + // Creates a NasJob + rpc CreateNasJob(CreateNasJobRequest) returns (NasJob) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/nasJobs" + body: "nas_job" + }; + option (google.api.method_signature) = "parent,nas_job"; + } + + // Gets a NasJob + rpc GetNasJob(GetNasJobRequest) returns (NasJob) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/nasJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists NasJobs in a Location. + rpc ListNasJobs(ListNasJobsRequest) returns (ListNasJobsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/nasJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a NasJob. + rpc DeleteNasJob(DeleteNasJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/nasJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a NasJob. + // Starts asynchronous cancellation on the NasJob. The server + // makes a best effort to cancel the job, but success is not + // guaranteed. Clients can use + // [JobService.GetNasJob][google.cloud.aiplatform.v1beta1.JobService.GetNasJob] + // or other methods to check whether the cancellation succeeded or whether the + // job completed despite cancellation. On successful cancellation, + // the NasJob is not deleted; instead it becomes a job with + // a [NasJob.error][google.cloud.aiplatform.v1beta1.NasJob.error] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`, and + // [NasJob.state][google.cloud.aiplatform.v1beta1.NasJob.state] is set to + // `CANCELLED`. + rpc CancelNasJob(CancelNasJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/nasJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a NasTrialDetail. + rpc GetNasTrialDetail(GetNasTrialDetailRequest) returns (NasTrialDetail) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List top NasTrialDetails of a NasJob. + rpc ListNasTrialDetails(ListNasTrialDetailsRequest) + returns (ListNasTrialDetailsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails" + }; + option (google.api.method_signature) = "parent"; + } + // Creates a BatchPredictionJob. A BatchPredictionJob once created will // right away be attempted to start. rpc CreateBatchPredictionJob(CreateBatchPredictionJobRequest) @@ -752,6 +829,180 @@ message CancelHyperparameterTuningJobRequest { ]; } +// Request message for +// [JobService.CreateNasJob][google.cloud.aiplatform.v1beta1.JobService.CreateNasJob]. +message CreateNasJobRequest { + // Required. The resource name of the Location to create the NasJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The NasJob to create. + NasJob nas_job = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [JobService.GetNasJob][google.cloud.aiplatform.v1beta1.JobService.GetNasJob]. +message GetNasJobRequest { + // Required. The name of the NasJob resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.ListNasJobs][google.cloud.aiplatform.v1beta1.JobService.ListNasJobs]. +message ListNasJobsRequest { + // Required. The resource name of the Location to list the NasJobs + // from. Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // + // Supported fields: + // + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence + // + // Some examples of using the filter are: + // + // * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + // * `NOT display_name="my_job"` + // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListNasJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token] + // of the previous + // [JobService.ListNasJobs][google.cloud.aiplatform.v1beta1.JobService.ListNasJobs] + // call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for +// [JobService.ListNasJobs][google.cloud.aiplatform.v1beta1.JobService.ListNasJobs] +message ListNasJobsResponse { + // List of NasJobs in the requested page. + // [NasJob.nas_job_output][google.cloud.aiplatform.v1beta1.NasJob.nas_job_output] + // of the jobs will not be returned. + repeated NasJob nas_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListNasJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListNasJobsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + +// Request message for +// [JobService.DeleteNasJob][google.cloud.aiplatform.v1beta1.JobService.DeleteNasJob]. +message DeleteNasJobRequest { + // Required. The name of the NasJob resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.CancelNasJob][google.cloud.aiplatform.v1beta1.JobService.CancelNasJob]. +message CancelNasJobRequest { + // Required. The name of the NasJob to cancel. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.GetNasTrialDetail][google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetail]. +message GetNasTrialDetailRequest { + // Required. The name of the NasTrialDetail resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasTrialDetail" + } + ]; +} + +// Request message for +// [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails]. +message ListNasTrialDetailsRequest { + // Required. The name of the NasJob resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; + + // The standard list page size. + int32 page_size = 2; + + // The standard list page token. + // Typically obtained via + // [ListNasTrialDetailsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token] + // of the previous + // [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails] + // call. + string page_token = 3; +} + +// Response message for +// [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails] +message ListNasTrialDetailsResponse { + // List of top NasTrials in the requested page. + repeated NasTrialDetail nas_trial_details = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListNasTrialDetailsRequest.page_token][google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + // Request message for // [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJob]. message CreateBatchPredictionJobRequest { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto index b76ec7d78f72..ed2b51e18485 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto @@ -90,6 +90,19 @@ message Model { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Contains information about the original Model if this Model is a copy. + message OriginalModelInfo { + // Output only. The resource name of the Model this Model is a copy of, + // including the revision. Format: + // `projects/{project}/locations/{location}/models/{model_id}@{version_id}` + string model = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + } + // Identifies a type of Model's prediction resources. enum DeploymentResourcesType { // Should not be used. @@ -380,6 +393,11 @@ message Model { ModelSourceInfo model_source_info = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If this Model is a copy of another Model, this contains info + // about the original. + OriginalModelInfo original_model_info = 34 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The resource name of the Artifact that was created in // MetadataStore when creating the Model. The Artifact resource name pattern // is diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto index 08ce8bcd95fa..c1a68c12c526 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; @@ -166,6 +167,24 @@ service ModelService { }; } + // Copies an already existing Vertex AI Model into the specified Location. + // The source Model must exist in the same Project. + // When copying custom Models, the users themselves are responsible for + // [Model.metadata][google.cloud.aiplatform.v1beta1.Model.metadata] content to + // be region-agnostic, as well as making sure that any resources (e.g. files) + // it depends on remain accessible. + rpc CopyModel(CopyModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/models:copy" + body: "*" + }; + option (google.api.method_signature) = "parent,source_model"; + option (google.longrunning.operation_info) = { + response_type: "CopyModelResponse" + metadata_type: "CopyModelOperationMetadata" + }; + } + // Imports an externally generated ModelEvaluation. rpc ImportModelEvaluation(ImportModelEvaluationRequest) returns (ModelEvaluation) { @@ -612,6 +631,75 @@ message UpdateExplanationDatasetResponse {} // operation. message ExportModelResponse {} +// Request message for +// [ModelService.CopyModel][google.cloud.aiplatform.v1beta1.ModelService.CopyModel]. +message CopyModelRequest { + // If both fields are unset, a new Model will be created with a generated ID. + oneof destination_model { + // Optional. Copy source_model into a new Model with this ID. The ID will + // become the final component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specify this field to copy source_model into this existing + // Model as a new version. Format: + // `projects/{project}/locations/{location}/models/{model}` + string parent_model = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + } + + // Required. The resource name of the Location into which to copy the Model. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The resource name of the Model to copy. That Model must be in the + // same Project. Format: + // `projects/{project}/locations/{location}/models/{model}` + string source_model = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Customer-managed encryption key options. If this is set, + // then the Model copy will be encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 3; +} + +// Details of +// [ModelService.CopyModel][google.cloud.aiplatform.v1beta1.ModelService.CopyModel] +// operation. +message CopyModelOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message of +// [ModelService.CopyModel][google.cloud.aiplatform.v1beta1.ModelService.CopyModel] +// operation. +message CopyModelResponse { + // The name of the copied Model resource. + // Format: `projects/{project}/locations/{location}/models/{model}` + string model = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + }]; + + // Output only. The version ID of the model that is copied. + string model_version_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request message for // [ModelService.ImportModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluation] message ImportModelEvaluationRequest { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto new file mode 100644 index 000000000000..383d3c5aca2a --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto @@ -0,0 +1,306 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/custom_job.proto"; +import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1beta1/job_state.proto"; +import "google/cloud/aiplatform/v1beta1/study.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "NasJobProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Represents a Neural Architecture Search (NAS) job. +message NasJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/NasJob" + pattern: "projects/{project}/locations/{location}/nasJobs/{nas_job}" + }; + + // Output only. Resource name of the NasJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the NasJob. + // The name can be up to 128 characters long and can consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The specification of a NasJob. + NasJobSpec nas_job_spec = 4 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Output of the NasJob. + NasJobOutput nas_job_output = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the job. + JobState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob for the first time entered the + // `JOB_STATE_RUNNING` state. + google.protobuf.Timestamp start_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob entered any of the following states: + // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + google.protobuf.Timestamp end_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob was most recently updated. + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only populated when job's state is JOB_STATE_FAILED or + // JOB_STATE_CANCELLED. + google.rpc.Status error = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize NasJobs. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 12; + + // Customer-managed encryption key options for a NasJob. + // If this is set, then all resources created by the NasJob + // will be encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 13; + + // Optional. Enable a separation of Custom model training + // and restricted image training for tenant project. + bool enable_restricted_image_training = 14 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a NasTrial details along with it's parameters. If there is a +// corresponding train NasTrial, the train NasTrial is also returned. +message NasTrialDetail { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/NasTrialDetail" + pattern: "projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}" + }; + + // Output only. Resource name of the NasTrialDetail. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The parameters for the NasJob NasTrial. + string parameters = 2; + + // The requested search NasTrial. + NasTrial search_trial = 3; + + // The train NasTrial corresponding to + // [search_trial][google.cloud.aiplatform.v1beta1.NasTrialDetail.search_trial]. + // Only populated if + // [search_trial][google.cloud.aiplatform.v1beta1.NasTrialDetail.search_trial] + // is used for training. + NasTrial train_trial = 4; +} + +// Represents the spec of a NasJob. +message NasJobSpec { + // The spec of multi-trial Neural Architecture Search (NAS). + message MultiTrialAlgorithmSpec { + // Represents a metric to optimize. + message MetricSpec { + // The available types of optimization goals. + enum GoalType { + // Goal Type will default to maximize. + GOAL_TYPE_UNSPECIFIED = 0; + + // Maximize the goal metric. + MAXIMIZE = 1; + + // Minimize the goal metric. + MINIMIZE = 2; + } + + // Required. The ID of the metric. Must not contain whitespaces. + string metric_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The optimization goal of the metric. + GoalType goal = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Represent spec for search trials. + message SearchTrialSpec { + // Required. The spec of a search trial job. The same spec applies to + // all search trials. + CustomJobSpec search_trial_job_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of Neural Architecture Search (NAS) trials + // to run. + int32 max_trial_count = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of trials to run in parallel. + int32 max_parallel_trial_count = 3 + [(google.api.field_behavior) = REQUIRED]; + + // The number of failed trials that need to be seen before failing + // the NasJob. + // + // If set to 0, Vertex AI decides how many trials must fail + // before the whole job fails. + int32 max_failed_trial_count = 4; + } + + // Represent spec for train trials. + message TrainTrialSpec { + // Required. The spec of a train trial job. The same spec applies to + // all train trials. + CustomJobSpec train_trial_job_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of trials to run in parallel. + int32 max_parallel_trial_count = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Frequency of search trials to start train stage. Top N + // [TrainTrialSpec.max_parallel_trial_count] + // search trials will be trained for every M + // [TrainTrialSpec.frequency] trials searched. + int32 frequency = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // The available types of multi-trial algorithms. + enum MultiTrialAlgorithm { + // Defaults to `REINFORCEMENT_LEARNING`. + MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0; + + // The Reinforcement Learning Algorithm for Multi-trial Neural + // Architecture Search (NAS). + REINFORCEMENT_LEARNING = 1; + + // The Grid Search Algorithm for Multi-trial Neural + // Architecture Search (NAS). + GRID_SEARCH = 2; + } + + // The multi-trial Neural Architecture Search (NAS) algorithm + // type. Defaults to `REINFORCEMENT_LEARNING`. + MultiTrialAlgorithm multi_trial_algorithm = 1; + + // Metric specs for the NAS job. + // Validation for this field is done at `multi_trial_algorithm_spec` field. + MetricSpec metric = 2; + + // Required. Spec for search trials. + SearchTrialSpec search_trial_spec = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] + // search trials will be trained for every M + // [TrainTrialSpec.frequency] trials searched. + TrainTrialSpec train_trial_spec = 4; + } + + // The Neural Architecture Search (NAS) algorithm specification. + oneof nas_algorithm_spec { + // The spec of multi-trial algorithms. + MultiTrialAlgorithmSpec multi_trial_algorithm_spec = 2; + } + + // The ID of the existing NasJob in the same Project and Location + // which will be used to resume search. search_space_spec and + // nas_algorithm_spec are obtained from previous NasJob hence should not + // provide them again for this NasJob. + string resume_nas_job_id = 3; + + // It defines the search space for Neural Architecture Search (NAS). + string search_space_spec = 1; +} + +// Represents a uCAIP NasJob output. +message NasJobOutput { + // The output of a multi-trial Neural Architecture Search (NAS) jobs. + message MultiTrialJobOutput { + // Output only. List of NasTrials that were started as part of search stage. + repeated NasTrial search_trials = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of NasTrials that were started as part of train stage. + repeated NasTrial train_trials = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The output of this Neural Architecture Search (NAS) job. + oneof output { + // Output only. The output of this multi-trial Neural Architecture Search + // (NAS) job. + MultiTrialJobOutput multi_trial_job_output = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// Represents a uCAIP NasJob trial. +message NasTrial { + // Describes a NasTrial state. + enum State { + // The NasTrial state is unspecified. + STATE_UNSPECIFIED = 0; + + // Indicates that a specific NasTrial has been requested, but it has not yet + // been suggested by the service. + REQUESTED = 1; + + // Indicates that the NasTrial has been suggested. + ACTIVE = 2; + + // Indicates that the NasTrial should stop according to the service. + STOPPING = 3; + + // Indicates that the NasTrial is completed successfully. + SUCCEEDED = 4; + + // Indicates that the NasTrial should not be attempted again. + // The service will set a NasTrial to INFEASIBLE when it's done but missing + // the final_measurement. + INFEASIBLE = 5; + } + + // Output only. The identifier of the NasTrial assigned by the service. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the NasTrial. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The final measurement containing the objective value. + Measurement final_measurement = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasTrial was started. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasTrial's status changed to `SUCCEEDED` or + // `INFEASIBLE`. + google.protobuf.Timestamp end_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto index 93edfbdf9f12..88d66b17647b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -382,8 +382,6 @@ message PipelineTaskExecutorDetail { // The detailed info for a custom job executor. message CustomJobDetail { - option deprecated = true; - // Output only. The name of the // [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob]. string job = 1 [ @@ -392,6 +390,11 @@ message PipelineTaskExecutorDetail { type: "aiplatform.googleapis.com/CustomJob" } ]; + + // Output only. The names of the previously failed + // [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob]. The list includes + // the all attempts in chronological order. + repeated string failed_jobs = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } oneof details { @@ -401,6 +404,6 @@ message PipelineTaskExecutorDetail { // Output only. The detailed info for a custom job executor. CustomJobDetail custom_job_detail = 2 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + [(google.api.field_behavior) = OUTPUT_ONLY]; } } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto new file mode 100644 index 000000000000..3c3052633ec1 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto @@ -0,0 +1,38 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "ServiceNetworkingProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Represents configuration for private service connect. +message PrivateServiceConnectConfig { + // Required. If true, expose the IndexEndpoint via private service connect. + bool enable_private_service_connect = 1 + [(google.api.field_behavior) = REQUIRED]; + + // A list of Projects from which the forwarding rule will target the service + // attachment. + repeated string project_allowlist = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto index 8337e9643628..03a9cfb72ea2 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto @@ -199,6 +199,21 @@ message Trial { message StudySpec { // Represents a metric to optimize. message MetricSpec { + // Used in safe optimization to specify threshold levels and risk tolerance. + message SafetyMetricConfig { + // Safety threshold (boundary value between safe and unsafe). NOTE that if + // you leave SafetyMetricConfig unset, a default value of 0 will be used. + double safety_threshold = 1; + + // Desired minimum fraction of safe trials (over total number of trials) + // that should be targeted by the algorithm at any time during the + // study (best effort). This should be between 0.0 and 1.0 and a value of + // 0.0 means that there is no minimum and an algorithm proceeds without + // targeting any specific fraction. A value of 1.0 means that the + // algorithm attempts to only Suggest safe Trials. + optional double desired_min_safe_trials_fraction = 2; + } + // The available types of optimization goals. enum GoalType { // Goal Type will default to maximize. @@ -217,6 +232,10 @@ message StudySpec { // Required. The optimization goal of the metric. GoalType goal = 2 [(google.api.field_behavior) = REQUIRED]; + + // Used for safe search. In the case, the metric will be a safety + // metric. You must provide a separate metric for objective metric. + optional SafetyMetricConfig safety_config = 3; } // Represents a single parameter to optimize. diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index 6f816ce8cda5..6bd2b72a98e8 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -6143,6 +6143,9 @@ export namespace google { /** Model modelSourceInfo */ modelSourceInfo?: (google.cloud.aiplatform.v1.IModelSourceInfo|null); + /** Model originalModelInfo */ + originalModelInfo?: (google.cloud.aiplatform.v1.Model.IOriginalModelInfo|null); + /** Model metadataArtifact */ metadataArtifact?: (string|null); } @@ -6234,6 +6237,9 @@ export namespace google { /** Model modelSourceInfo. */ public modelSourceInfo?: (google.cloud.aiplatform.v1.IModelSourceInfo|null); + /** Model originalModelInfo. */ + public originalModelInfo?: (google.cloud.aiplatform.v1.Model.IOriginalModelInfo|null); + /** Model metadataArtifact. */ public metadataArtifact: string; @@ -6430,6 +6436,103 @@ export namespace google { } } + /** Properties of an OriginalModelInfo. */ + interface IOriginalModelInfo { + + /** OriginalModelInfo model */ + model?: (string|null); + } + + /** Represents an OriginalModelInfo. */ + class OriginalModelInfo implements IOriginalModelInfo { + + /** + * Constructs a new OriginalModelInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.Model.IOriginalModelInfo); + + /** OriginalModelInfo model. */ + public model: string; + + /** + * Creates a new OriginalModelInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OriginalModelInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1.Model.IOriginalModelInfo): google.cloud.aiplatform.v1.Model.OriginalModelInfo; + + /** + * Encodes the specified OriginalModelInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify|verify} messages. + * @param message OriginalModelInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.Model.IOriginalModelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OriginalModelInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify|verify} messages. + * @param message OriginalModelInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.Model.IOriginalModelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OriginalModelInfo + * @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.aiplatform.v1.Model.OriginalModelInfo; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OriginalModelInfo + * @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.aiplatform.v1.Model.OriginalModelInfo; + + /** + * Verifies an OriginalModelInfo 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 an OriginalModelInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OriginalModelInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Model.OriginalModelInfo; + + /** + * Creates a plain object from an OriginalModelInfo message. Also converts values to other types if specified. + * @param message OriginalModelInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Model.OriginalModelInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OriginalModelInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OriginalModelInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** DeploymentResourcesType enum. */ enum DeploymentResourcesType { DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0, @@ -24011,6 +24114,9 @@ export namespace google { /** MetricSpec goal */ goal?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|null); + + /** MetricSpec safetyConfig */ + safetyConfig?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null); } /** Represents a MetricSpec. */ @@ -24028,6 +24134,12 @@ export namespace google { /** MetricSpec goal. */ public goal: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType); + /** MetricSpec safetyConfig. */ + public safetyConfig?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null); + + /** MetricSpec _safetyConfig. */ + public _safetyConfig?: "safetyConfig"; + /** * Creates a new MetricSpec instance using the specified properties. * @param [properties] Properties to set @@ -24108,6 +24220,112 @@ export namespace google { namespace MetricSpec { + /** Properties of a SafetyMetricConfig. */ + interface ISafetyMetricConfig { + + /** SafetyMetricConfig safetyThreshold */ + safetyThreshold?: (number|null); + + /** SafetyMetricConfig desiredMinSafeTrialsFraction */ + desiredMinSafeTrialsFraction?: (number|null); + } + + /** Represents a SafetyMetricConfig. */ + class SafetyMetricConfig implements ISafetyMetricConfig { + + /** + * Constructs a new SafetyMetricConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig); + + /** SafetyMetricConfig safetyThreshold. */ + public safetyThreshold: number; + + /** SafetyMetricConfig desiredMinSafeTrialsFraction. */ + public desiredMinSafeTrialsFraction?: (number|null); + + /** SafetyMetricConfig _desiredMinSafeTrialsFraction. */ + public _desiredMinSafeTrialsFraction?: "desiredMinSafeTrialsFraction"; + + /** + * Creates a new SafetyMetricConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SafetyMetricConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig): google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig; + + /** + * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @param message SafetyMetricConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @param message SafetyMetricConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SafetyMetricConfig + * @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.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SafetyMetricConfig + * @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.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig; + + /** + * Verifies a SafetyMetricConfig 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 SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SafetyMetricConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig; + + /** + * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. + * @param message SafetyMetricConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SafetyMetricConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SafetyMetricConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** GoalType enum. */ enum GoalType { GOAL_TYPE_UNSPECIFIED = 0, @@ -26304,6 +26522,9 @@ export namespace google { /** IndexEndpoint enablePrivateServiceConnect */ enablePrivateServiceConnect?: (boolean|null); + + /** IndexEndpoint privateServiceConnectConfig */ + privateServiceConnectConfig?: (google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null); } /** Represents an IndexEndpoint. */ @@ -26345,6 +26566,9 @@ export namespace google { /** IndexEndpoint enablePrivateServiceConnect. */ public enablePrivateServiceConnect: boolean; + /** IndexEndpoint privateServiceConnectConfig. */ + public privateServiceConnectConfig?: (google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null); + /** * Creates a new IndexEndpoint instance using the specified properties. * @param [properties] Properties to set @@ -26892,6 +27116,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PrivateServiceConnectConfig. */ + interface IPrivateServiceConnectConfig { + + /** PrivateServiceConnectConfig enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); + + /** PrivateServiceConnectConfig projectAllowlist */ + projectAllowlist?: (string[]|null); + } + + /** Represents a PrivateServiceConnectConfig. */ + class PrivateServiceConnectConfig implements IPrivateServiceConnectConfig { + + /** + * Constructs a new PrivateServiceConnectConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPrivateServiceConnectConfig); + + /** PrivateServiceConnectConfig enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; + + /** PrivateServiceConnectConfig projectAllowlist. */ + public projectAllowlist: string[]; + + /** + * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PrivateServiceConnectConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPrivateServiceConnectConfig): google.cloud.aiplatform.v1.PrivateServiceConnectConfig; + + /** + * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @param message PrivateServiceConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPrivateServiceConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @param message PrivateServiceConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPrivateServiceConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrivateServiceConnectConfig + * @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.aiplatform.v1.PrivateServiceConnectConfig; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrivateServiceConnectConfig + * @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.aiplatform.v1.PrivateServiceConnectConfig; + + /** + * Verifies a PrivateServiceConnectConfig 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 PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrivateServiceConnectConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PrivateServiceConnectConfig; + + /** + * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * @param message PrivateServiceConnectConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PrivateServiceConnectConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrivateServiceConnectConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrivateServiceConnectConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents an IndexEndpointService */ class IndexEndpointService extends $protobuf.rpc.Service { @@ -30678,6 +31005,104 @@ export namespace google { */ public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest): Promise; + /** + * Calls CreateNasJob. + * @param request CreateNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasJob + */ + public createNasJob(request: google.cloud.aiplatform.v1.ICreateNasJobRequest, callback: google.cloud.aiplatform.v1.JobService.CreateNasJobCallback): void; + + /** + * Calls CreateNasJob. + * @param request CreateNasJobRequest message or plain object + * @returns Promise + */ + public createNasJob(request: google.cloud.aiplatform.v1.ICreateNasJobRequest): Promise; + + /** + * Calls GetNasJob. + * @param request GetNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasJob + */ + public getNasJob(request: google.cloud.aiplatform.v1.IGetNasJobRequest, callback: google.cloud.aiplatform.v1.JobService.GetNasJobCallback): void; + + /** + * Calls GetNasJob. + * @param request GetNasJobRequest message or plain object + * @returns Promise + */ + public getNasJob(request: google.cloud.aiplatform.v1.IGetNasJobRequest): Promise; + + /** + * Calls ListNasJobs. + * @param request ListNasJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNasJobsResponse + */ + public listNasJobs(request: google.cloud.aiplatform.v1.IListNasJobsRequest, callback: google.cloud.aiplatform.v1.JobService.ListNasJobsCallback): void; + + /** + * Calls ListNasJobs. + * @param request ListNasJobsRequest message or plain object + * @returns Promise + */ + public listNasJobs(request: google.cloud.aiplatform.v1.IListNasJobsRequest): Promise; + + /** + * Calls DeleteNasJob. + * @param request DeleteNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteNasJob(request: google.cloud.aiplatform.v1.IDeleteNasJobRequest, callback: google.cloud.aiplatform.v1.JobService.DeleteNasJobCallback): void; + + /** + * Calls DeleteNasJob. + * @param request DeleteNasJobRequest message or plain object + * @returns Promise + */ + public deleteNasJob(request: google.cloud.aiplatform.v1.IDeleteNasJobRequest): Promise; + + /** + * Calls CancelNasJob. + * @param request CancelNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelNasJob(request: google.cloud.aiplatform.v1.ICancelNasJobRequest, callback: google.cloud.aiplatform.v1.JobService.CancelNasJobCallback): void; + + /** + * Calls CancelNasJob. + * @param request CancelNasJobRequest message or plain object + * @returns Promise + */ + public cancelNasJob(request: google.cloud.aiplatform.v1.ICancelNasJobRequest): Promise; + + /** + * Calls GetNasTrialDetail. + * @param request GetNasTrialDetailRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasTrialDetail + */ + public getNasTrialDetail(request: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, callback: google.cloud.aiplatform.v1.JobService.GetNasTrialDetailCallback): void; + + /** + * Calls GetNasTrialDetail. + * @param request GetNasTrialDetailRequest message or plain object + * @returns Promise + */ + public getNasTrialDetail(request: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest): Promise; + + /** + * Calls ListNasTrialDetails. + * @param request ListNasTrialDetailsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse + */ + public listNasTrialDetails(request: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, callback: google.cloud.aiplatform.v1.JobService.ListNasTrialDetailsCallback): void; + + /** + * Calls ListNasTrialDetails. + * @param request ListNasTrialDetailsRequest message or plain object + * @returns Promise + */ + public listNasTrialDetails(request: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest): Promise; + /** * Calls CreateBatchPredictionJob. * @param request CreateBatchPredictionJobRequest message or plain object @@ -30968,6 +31393,55 @@ export namespace google { */ type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createNasJob}. + * @param error Error, if any + * @param [response] NasJob + */ + type CreateNasJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.NasJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasJob}. + * @param error Error, if any + * @param [response] NasJob + */ + type GetNasJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.NasJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasJobs}. + * @param error Error, if any + * @param [response] ListNasJobsResponse + */ + type ListNasJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListNasJobsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteNasJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteNasJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelNasJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelNasJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasTrialDetail}. + * @param error Error, if any + * @param [response] NasTrialDetail + */ + type GetNasTrialDetailCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.NasTrialDetail) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasTrialDetails}. + * @param error Error, if any + * @param [response] ListNasTrialDetailsResponse + */ + type ListNasTrialDetailsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListNasTrialDetailsResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createBatchPredictionJob}. * @param error Error, if any @@ -32920,17282 +33394,16840 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateBatchPredictionJobRequest. */ - interface ICreateBatchPredictionJobRequest { + /** Properties of a CreateNasJobRequest. */ + interface ICreateNasJobRequest { - /** CreateBatchPredictionJobRequest parent */ + /** CreateNasJobRequest parent */ parent?: (string|null); - /** CreateBatchPredictionJobRequest batchPredictionJob */ - batchPredictionJob?: (google.cloud.aiplatform.v1.IBatchPredictionJob|null); + /** CreateNasJobRequest nasJob */ + nasJob?: (google.cloud.aiplatform.v1.INasJob|null); } - /** Represents a CreateBatchPredictionJobRequest. */ - class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { + /** Represents a CreateNasJobRequest. */ + class CreateNasJobRequest implements ICreateNasJobRequest { /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new CreateNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateNasJobRequest); - /** CreateBatchPredictionJobRequest parent. */ + /** CreateNasJobRequest parent. */ public parent: string; - /** CreateBatchPredictionJobRequest batchPredictionJob. */ - public batchPredictionJob?: (google.cloud.aiplatform.v1.IBatchPredictionJob|null); + /** CreateNasJobRequest nasJob. */ + public nasJob?: (google.cloud.aiplatform.v1.INasJob|null); /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new CreateNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateBatchPredictionJobRequest instance + * @returns CreateNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateNasJobRequest): google.cloud.aiplatform.v1.CreateNasJobRequest; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. + * @param message CreateNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. + * @param message CreateNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CreateNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateBatchPredictionJobRequest + * @returns CreateNasJobRequest * @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.aiplatform.v1.CreateBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateNasJobRequest; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateBatchPredictionJobRequest + * @returns CreateNasJobRequest * @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.aiplatform.v1.CreateBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateNasJobRequest; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a CreateNasJobRequest 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 CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateBatchPredictionJobRequest + * @returns CreateNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateNasJobRequest; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CreateBatchPredictionJobRequest + * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. + * @param message CreateNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this CreateNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for CreateNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetBatchPredictionJobRequest. */ - interface IGetBatchPredictionJobRequest { + /** Properties of a GetNasJobRequest. */ + interface IGetNasJobRequest { - /** GetBatchPredictionJobRequest name */ + /** GetNasJobRequest name */ name?: (string|null); } - /** Represents a GetBatchPredictionJobRequest. */ - class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { + /** Represents a GetNasJobRequest. */ + class GetNasJobRequest implements IGetNasJobRequest { /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new GetNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IGetNasJobRequest); - /** GetBatchPredictionJobRequest name. */ + /** GetNasJobRequest name. */ public name: string; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetBatchPredictionJobRequest instance + * @returns GetNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetNasJobRequest): google.cloud.aiplatform.v1.GetNasJobRequest; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. + * @param message GetNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. + * @param message GetNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetBatchPredictionJobRequest + * @returns GetNasJobRequest * @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.aiplatform.v1.GetBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetNasJobRequest; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBatchPredictionJobRequest + * @returns GetNasJobRequest * @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.aiplatform.v1.GetBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetNasJobRequest; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a GetNasJobRequest 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 GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetBatchPredictionJobRequest + * @returns GetNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetNasJobRequest; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message GetBatchPredictionJobRequest + * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. + * @param message GetNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this GetNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for GetNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsRequest. */ - interface IListBatchPredictionJobsRequest { + /** Properties of a ListNasJobsRequest. */ + interface IListNasJobsRequest { - /** ListBatchPredictionJobsRequest parent */ + /** ListNasJobsRequest parent */ parent?: (string|null); - /** ListBatchPredictionJobsRequest filter */ + /** ListNasJobsRequest filter */ filter?: (string|null); - /** ListBatchPredictionJobsRequest pageSize */ + /** ListNasJobsRequest pageSize */ pageSize?: (number|null); - /** ListBatchPredictionJobsRequest pageToken */ + /** ListNasJobsRequest pageToken */ pageToken?: (string|null); - /** ListBatchPredictionJobsRequest readMask */ + /** ListNasJobsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListBatchPredictionJobsRequest. */ - class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { + /** Represents a ListNasJobsRequest. */ + class ListNasJobsRequest implements IListNasJobsRequest { /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new ListNasJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListNasJobsRequest); - /** ListBatchPredictionJobsRequest parent. */ + /** ListNasJobsRequest parent. */ public parent: string; - /** ListBatchPredictionJobsRequest filter. */ + /** ListNasJobsRequest filter. */ public filter: string; - /** ListBatchPredictionJobsRequest pageSize. */ + /** ListNasJobsRequest pageSize. */ public pageSize: number; - /** ListBatchPredictionJobsRequest pageToken. */ + /** ListNasJobsRequest pageToken. */ public pageToken: string; - /** ListBatchPredictionJobsRequest readMask. */ + /** ListNasJobsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new ListNasJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsRequest instance + * @returns ListNasJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListNasJobsRequest): google.cloud.aiplatform.v1.ListNasJobsRequest; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. + * @param message ListNasJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListNasJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. + * @param message ListNasJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListNasJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a ListNasJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsRequest + * @returns ListNasJobsRequest * @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.aiplatform.v1.ListBatchPredictionJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListNasJobsRequest; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsRequest + * @returns ListNasJobsRequest * @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.aiplatform.v1.ListBatchPredictionJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListNasJobsRequest; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a ListNasJobsRequest 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 ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsRequest + * @returns ListNasJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListNasJobsRequest; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsRequest + * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. + * @param message ListNasJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListNasJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this ListNasJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for ListNasJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsResponse. */ - interface IListBatchPredictionJobsResponse { + /** Properties of a ListNasJobsResponse. */ + interface IListNasJobsResponse { - /** ListBatchPredictionJobsResponse batchPredictionJobs */ - batchPredictionJobs?: (google.cloud.aiplatform.v1.IBatchPredictionJob[]|null); + /** ListNasJobsResponse nasJobs */ + nasJobs?: (google.cloud.aiplatform.v1.INasJob[]|null); - /** ListBatchPredictionJobsResponse nextPageToken */ + /** ListNasJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListBatchPredictionJobsResponse. */ - class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { + /** Represents a ListNasJobsResponse. */ + class ListNasJobsResponse implements IListNasJobsResponse { /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListNasJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListNasJobsResponse); - /** ListBatchPredictionJobsResponse batchPredictionJobs. */ - public batchPredictionJobs: google.cloud.aiplatform.v1.IBatchPredictionJob[]; + /** ListNasJobsResponse nasJobs. */ + public nasJobs: google.cloud.aiplatform.v1.INasJob[]; - /** ListBatchPredictionJobsResponse nextPageToken. */ + /** ListNasJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListNasJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsResponse instance + * @returns ListNasJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListNasJobsResponse): google.cloud.aiplatform.v1.ListNasJobsResponse; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. + * @param message ListNasJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListNasJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. + * @param message ListNasJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListNasJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListNasJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsResponse + * @returns ListNasJobsResponse * @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.aiplatform.v1.ListBatchPredictionJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListNasJobsResponse; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsResponse + * @returns ListNasJobsResponse * @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.aiplatform.v1.ListBatchPredictionJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListNasJobsResponse; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListNasJobsResponse 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 ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsResponse + * @returns ListNasJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListNasJobsResponse; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsResponse + * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. + * @param message ListNasJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListNasJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListNasJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListNasJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteBatchPredictionJobRequest. */ - interface IDeleteBatchPredictionJobRequest { + /** Properties of a DeleteNasJobRequest. */ + interface IDeleteNasJobRequest { - /** DeleteBatchPredictionJobRequest name */ + /** DeleteNasJobRequest name */ name?: (string|null); } - /** Represents a DeleteBatchPredictionJobRequest. */ - class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { + /** Represents a DeleteNasJobRequest. */ + class DeleteNasJobRequest implements IDeleteNasJobRequest { /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new DeleteNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteNasJobRequest); - /** DeleteBatchPredictionJobRequest name. */ + /** DeleteNasJobRequest name. */ public name: string; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new DeleteNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteBatchPredictionJobRequest instance + * @returns DeleteNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteNasJobRequest): google.cloud.aiplatform.v1.DeleteNasJobRequest; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. + * @param message DeleteNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. + * @param message DeleteNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteBatchPredictionJobRequest + * @returns DeleteNasJobRequest * @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.aiplatform.v1.DeleteBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteNasJobRequest; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteBatchPredictionJobRequest + * @returns DeleteNasJobRequest * @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.aiplatform.v1.DeleteBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteNasJobRequest; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a DeleteNasJobRequest 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 DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteBatchPredictionJobRequest + * @returns DeleteNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteNasJobRequest; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message DeleteBatchPredictionJobRequest + * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. + * @param message DeleteNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this DeleteNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for DeleteNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelBatchPredictionJobRequest. */ - interface ICancelBatchPredictionJobRequest { + /** Properties of a CancelNasJobRequest. */ + interface ICancelNasJobRequest { - /** CancelBatchPredictionJobRequest name */ + /** CancelNasJobRequest name */ name?: (string|null); } - /** Represents a CancelBatchPredictionJobRequest. */ - class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { + /** Represents a CancelNasJobRequest. */ + class CancelNasJobRequest implements ICancelNasJobRequest { /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new CancelNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICancelNasJobRequest); - /** CancelBatchPredictionJobRequest name. */ + /** CancelNasJobRequest name. */ public name: string; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new CancelNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelBatchPredictionJobRequest instance + * @returns CancelNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICancelNasJobRequest): google.cloud.aiplatform.v1.CancelNasJobRequest; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. + * @param message CancelNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICancelNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. + * @param message CancelNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CancelNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelBatchPredictionJobRequest + * @returns CancelNasJobRequest * @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.aiplatform.v1.CancelBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CancelNasJobRequest; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelBatchPredictionJobRequest + * @returns CancelNasJobRequest * @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.aiplatform.v1.CancelBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CancelNasJobRequest; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a CancelNasJobRequest 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 CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelBatchPredictionJobRequest + * @returns CancelNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelNasJobRequest; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CancelBatchPredictionJobRequest + * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. + * @param message CancelNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CancelNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this CancelNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for CancelNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ - interface ICreateModelDeploymentMonitoringJobRequest { - - /** CreateModelDeploymentMonitoringJobRequest parent */ - parent?: (string|null); + /** Properties of a GetNasTrialDetailRequest. */ + interface IGetNasTrialDetailRequest { - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** GetNasTrialDetailRequest name */ + name?: (string|null); } - /** Represents a CreateModelDeploymentMonitoringJobRequest. */ - class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + /** Represents a GetNasTrialDetailRequest. */ + class GetNasTrialDetailRequest implements IGetNasTrialDetailRequest { /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new GetNasTrialDetailRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest); - /** CreateModelDeploymentMonitoringJobRequest parent. */ - public parent: string; - - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** GetNasTrialDetailRequest name. */ + public name: string; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetNasTrialDetailRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateModelDeploymentMonitoringJobRequest instance + * @returns GetNasTrialDetailRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest): google.cloud.aiplatform.v1.GetNasTrialDetailRequest; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. + * @param message GetNasTrialDetailRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. + * @param message GetNasTrialDetailRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns GetNasTrialDetailRequest * @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.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetNasTrialDetailRequest; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns GetNasTrialDetailRequest * @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.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetNasTrialDetailRequest; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a GetNasTrialDetailRequest 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 CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns GetNasTrialDetailRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetNasTrialDetailRequest; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message CreateModelDeploymentMonitoringJobRequest + * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. + * @param message GetNasTrialDetailRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetNasTrialDetailRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetNasTrialDetailRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for GetNasTrialDetailRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ - deployedModelId?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ - featureDisplayName?: (string|null); + /** Properties of a ListNasTrialDetailsRequest. */ + interface IListNasTrialDetailsRequest { - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ - objectives?: (google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); + /** ListNasTrialDetailsRequest parent */ + parent?: (string|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ + /** ListNasTrialDetailsRequest pageSize */ pageSize?: (number|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ + /** ListNasTrialDetailsRequest pageToken */ pageToken?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ - endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { + /** Represents a ListNasTrialDetailsRequest. */ + class ListNasTrialDetailsRequest implements IListNasTrialDetailsRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new ListNasTrialDetailsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ - public deployedModelId: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ - public featureDisplayName: string; + constructor(properties?: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ - public objectives: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; + /** ListNasTrialDetailsRequest parent. */ + public parent: string; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ + /** ListNasTrialDetailsRequest pageSize. */ public pageSize: number; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ + /** ListNasTrialDetailsRequest pageToken. */ public pageToken: string; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @returns ListNasTrialDetailsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest): google.cloud.aiplatform.v1.ListNasTrialDetailsRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. + * @param message ListNasTrialDetailsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. + * @param message ListNasTrialDetailsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns ListNasTrialDetailsRequest * @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.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListNasTrialDetailsRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns ListNasTrialDetailsRequest * @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.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListNasTrialDetailsRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a ListNasTrialDetailsRequest 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 SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns ListNasTrialDetailsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListNasTrialDetailsRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. + * @param message ListNasTrialDetailsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListNasTrialDetailsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this ListNasTrialDetailsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for ListNasTrialDetailsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** Properties of a StatsAnomaliesObjective. */ - interface IStatsAnomaliesObjective { - - /** StatsAnomaliesObjective type */ - type?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); - - /** StatsAnomaliesObjective topFeatureCount */ - topFeatureCount?: (number|null); - } - - /** Represents a StatsAnomaliesObjective. */ - class StatsAnomaliesObjective implements IStatsAnomaliesObjective { - - /** - * Constructs a new StatsAnomaliesObjective. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); - - /** StatsAnomaliesObjective type. */ - public type: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); - - /** StatsAnomaliesObjective topFeatureCount. */ - public topFeatureCount: number; - - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @param [properties] Properties to set - * @returns StatsAnomaliesObjective instance - */ - public static create(properties?: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StatsAnomaliesObjective - * @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.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StatsAnomaliesObjective - * @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.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Verifies a StatsAnomaliesObjective 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 StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StatsAnomaliesObjective - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @param message StatsAnomaliesObjective - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StatsAnomaliesObjective to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StatsAnomaliesObjective - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** Properties of a ListNasTrialDetailsResponse. */ + interface IListNasTrialDetailsResponse { - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies[]|null); + /** ListNasTrialDetailsResponse nasTrialDetails */ + nasTrialDetails?: (google.cloud.aiplatform.v1.INasTrialDetail[]|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ + /** ListNasTrialDetailsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** Represents a ListNasTrialDetailsResponse. */ + class ListNasTrialDetailsResponse implements IListNasTrialDetailsResponse { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new ListNasTrialDetailsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListNasTrialDetailsResponse); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies[]; + /** ListNasTrialDetailsResponse nasTrialDetails. */ + public nasTrialDetails: google.cloud.aiplatform.v1.INasTrialDetail[]; - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ + /** ListNasTrialDetailsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new ListNasTrialDetailsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @returns ListNasTrialDetailsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListNasTrialDetailsResponse): google.cloud.aiplatform.v1.ListNasTrialDetailsResponse; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * @param message ListNasTrialDetailsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListNasTrialDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * @param message ListNasTrialDetailsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListNasTrialDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ListNasTrialDetailsResponse * @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.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListNasTrialDetailsResponse; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ListNasTrialDetailsResponse * @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.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListNasTrialDetailsResponse; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a ListNasTrialDetailsResponse 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 SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ListNasTrialDetailsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListNasTrialDetailsResponse; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. + * @param message ListNasTrialDetailsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListNasTrialDetailsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this ListNasTrialDetailsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for ListNasTrialDetailsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetModelDeploymentMonitoringJobRequest. */ - interface IGetModelDeploymentMonitoringJobRequest { + /** Properties of a CreateBatchPredictionJobRequest. */ + interface ICreateBatchPredictionJobRequest { - /** GetModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** CreateBatchPredictionJobRequest parent */ + parent?: (string|null); + + /** CreateBatchPredictionJobRequest batchPredictionJob */ + batchPredictionJob?: (google.cloud.aiplatform.v1.IBatchPredictionJob|null); } - /** Represents a GetModelDeploymentMonitoringJobRequest. */ - class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { + /** Represents a CreateBatchPredictionJobRequest. */ + class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest); - /** GetModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** CreateBatchPredictionJobRequest parent. */ + public parent: string; + + /** CreateBatchPredictionJobRequest batchPredictionJob. */ + public batchPredictionJob?: (google.cloud.aiplatform.v1.IBatchPredictionJob|null); /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelDeploymentMonitoringJobRequest instance + * @returns CreateBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelDeploymentMonitoringJobRequest + * @returns CreateBatchPredictionJobRequest * @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.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelDeploymentMonitoringJobRequest + * @returns CreateBatchPredictionJobRequest * @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.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a CreateBatchPredictionJobRequest 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 GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelDeploymentMonitoringJobRequest + * @returns CreateBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message GetModelDeploymentMonitoringJobRequest + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CreateBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for CreateBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ - interface IListModelDeploymentMonitoringJobsRequest { - - /** ListModelDeploymentMonitoringJobsRequest parent */ - parent?: (string|null); - - /** ListModelDeploymentMonitoringJobsRequest filter */ - filter?: (string|null); - - /** ListModelDeploymentMonitoringJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListModelDeploymentMonitoringJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a GetBatchPredictionJobRequest. */ + interface IGetBatchPredictionJobRequest { - /** ListModelDeploymentMonitoringJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** GetBatchPredictionJobRequest name */ + name?: (string|null); } - /** Represents a ListModelDeploymentMonitoringJobsRequest. */ - class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { + /** Represents a GetBatchPredictionJobRequest. */ + class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new GetBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest); - - /** ListModelDeploymentMonitoringJobsRequest parent. */ - public parent: string; - - /** ListModelDeploymentMonitoringJobsRequest filter. */ - public filter: string; - - /** ListModelDeploymentMonitoringJobsRequest pageSize. */ - public pageSize: number; - - /** ListModelDeploymentMonitoringJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest); - /** ListModelDeploymentMonitoringJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** GetBatchPredictionJobRequest name. */ + public name: string; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsRequest instance + * @returns GetBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns GetBatchPredictionJobRequest * @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.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns GetBatchPredictionJobRequest * @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.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a GetBatchPredictionJobRequest 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 ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns GetBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsRequest + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message GetBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for GetBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ - interface IListModelDeploymentMonitoringJobsResponse { + /** Properties of a ListBatchPredictionJobsRequest. */ + interface IListBatchPredictionJobsRequest { - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ - modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]|null); + /** ListBatchPredictionJobsRequest parent */ + parent?: (string|null); - /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListBatchPredictionJobsRequest filter */ + filter?: (string|null); + + /** ListBatchPredictionJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListBatchPredictionJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListBatchPredictionJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListModelDeploymentMonitoringJobsResponse. */ - class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { + /** Represents a ListBatchPredictionJobsRequest. */ + class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new ListBatchPredictionJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest); - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ - public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]; + /** ListBatchPredictionJobsRequest parent. */ + public parent: string; - /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ - public nextPageToken: string; + /** ListBatchPredictionJobsRequest filter. */ + public filter: string; + + /** ListBatchPredictionJobsRequest pageSize. */ + public pageSize: number; + + /** ListBatchPredictionJobsRequest pageToken. */ + public pageToken: string; + + /** ListBatchPredictionJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsResponse instance + * @returns ListBatchPredictionJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ListBatchPredictionJobsRequest * @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.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ListBatchPredictionJobsRequest * @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.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a ListBatchPredictionJobsRequest 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 ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ListBatchPredictionJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsResponse + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for ListBatchPredictionJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ - interface IUpdateModelDeploymentMonitoringJobRequest { + /** Properties of a ListBatchPredictionJobsResponse. */ + interface IListBatchPredictionJobsResponse { - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** ListBatchPredictionJobsResponse batchPredictionJobs */ + batchPredictionJobs?: (google.cloud.aiplatform.v1.IBatchPredictionJob[]|null); - /** UpdateModelDeploymentMonitoringJobRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListBatchPredictionJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ - class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { + /** Represents a ListBatchPredictionJobsResponse. */ + class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new ListBatchPredictionJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse); - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** ListBatchPredictionJobsResponse batchPredictionJobs. */ + public batchPredictionJobs: google.cloud.aiplatform.v1.IBatchPredictionJob[]; - /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListBatchPredictionJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobRequest instance + * @returns ListBatchPredictionJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns ListBatchPredictionJobsResponse * @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.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns ListBatchPredictionJobsResponse * @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.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a ListBatchPredictionJobsResponse 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 an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns ListBatchPredictionJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobRequest + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * Gets the default type url for ListBatchPredictionJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ - interface IDeleteModelDeploymentMonitoringJobRequest { + /** Properties of a DeleteBatchPredictionJobRequest. */ + interface IDeleteBatchPredictionJobRequest { - /** DeleteModelDeploymentMonitoringJobRequest name */ + /** DeleteBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ - class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { + /** Represents a DeleteBatchPredictionJobRequest. */ + class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest); - /** DeleteModelDeploymentMonitoringJobRequest name. */ + /** DeleteBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelDeploymentMonitoringJobRequest instance + * @returns DeleteBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns DeleteBatchPredictionJobRequest * @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.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns DeleteBatchPredictionJobRequest * @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.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest 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 DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns DeleteBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message DeleteModelDeploymentMonitoringJobRequest + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message DeleteBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ - interface IPauseModelDeploymentMonitoringJobRequest { + /** Properties of a CancelBatchPredictionJobRequest. */ + interface ICancelBatchPredictionJobRequest { - /** PauseModelDeploymentMonitoringJobRequest name */ + /** CancelBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a PauseModelDeploymentMonitoringJobRequest. */ - class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { + /** Represents a CancelBatchPredictionJobRequest. */ + class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest); - /** PauseModelDeploymentMonitoringJobRequest name. */ + /** CancelBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PauseModelDeploymentMonitoringJobRequest instance + * @returns CancelBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns CancelBatchPredictionJobRequest * @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.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns CancelBatchPredictionJobRequest * @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.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a CancelBatchPredictionJobRequest 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 PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns CancelBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message PauseModelDeploymentMonitoringJobRequest + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CancelBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * Gets the default type url for CancelBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ - interface IResumeModelDeploymentMonitoringJobRequest { + /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ + interface ICreateModelDeploymentMonitoringJobRequest { - /** ResumeModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** CreateModelDeploymentMonitoringJobRequest parent */ + parent?: (string|null); + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); } - /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ - class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { + /** Represents a CreateModelDeploymentMonitoringJobRequest. */ + class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest); - /** ResumeModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** CreateModelDeploymentMonitoringJobRequest parent. */ + public parent: string; + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResumeModelDeploymentMonitoringJobRequest instance + * @returns CreateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest * @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.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest * @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.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest 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 ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message ResumeModelDeploymentMonitoringJobRequest + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message CreateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - interface IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (string|null); - /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ + deployedModelId?: (string|null); - /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ + featureDisplayName?: (string|null); - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ + objectives?: (google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); - /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata - * @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.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - - /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata - * @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.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - - /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata 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 an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - - /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** ModelDeploymentMonitoringObjectiveType enum. */ - enum ModelDeploymentMonitoringObjectiveType { - MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, - RAW_FEATURE_SKEW = 1, - RAW_FEATURE_DRIFT = 2, - FEATURE_ATTRIBUTION_SKEW = 3, - FEATURE_ATTRIBUTION_DRIFT = 4 - } - - /** Properties of a ModelDeploymentMonitoringJob. */ - interface IModelDeploymentMonitoringJob { - - /** ModelDeploymentMonitoringJob name */ - name?: (string|null); - - /** ModelDeploymentMonitoringJob displayName */ - displayName?: (string|null); - - /** ModelDeploymentMonitoringJob endpoint */ - endpoint?: (string|null); - - /** ModelDeploymentMonitoringJob state */ - state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); - - /** ModelDeploymentMonitoringJob scheduleState */ - scheduleState?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ - latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ - modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ - modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ - modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ - predictInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob samplePredictInstance */ - samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob bigqueryTables */ - bigqueryTables?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]|null); - - /** ModelDeploymentMonitoringJob logTtl */ - logTtl?: (google.protobuf.IDuration|null); - - /** ModelDeploymentMonitoringJob labels */ - labels?: ({ [k: string]: string }|null); - - /** ModelDeploymentMonitoringJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob nextScheduleTime */ - nextScheduleTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ + pageSize?: (number|null); - /** ModelDeploymentMonitoringJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ + pageToken?: (string|null); - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ - enableMonitoringPipelineLogs?: (boolean|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob error */ - error?: (google.rpc.IStatus|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ModelDeploymentMonitoringJob. */ - class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob); - - /** ModelDeploymentMonitoringJob name. */ - public name: string; - - /** ModelDeploymentMonitoringJob displayName. */ - public displayName: string; - - /** ModelDeploymentMonitoringJob endpoint. */ - public endpoint: string; - - /** ModelDeploymentMonitoringJob state. */ - public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); - - /** ModelDeploymentMonitoringJob scheduleState. */ - public scheduleState: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ - public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ - public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]; - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ - public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ - public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ - public predictInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob samplePredictInstance. */ - public samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob bigqueryTables. */ - public bigqueryTables: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]; - - /** ModelDeploymentMonitoringJob logTtl. */ - public logTtl?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - /** ModelDeploymentMonitoringJob labels. */ - public labels: { [k: string]: string }; + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob: string; - /** ModelDeploymentMonitoringJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ + public deployedModelId: string; - /** ModelDeploymentMonitoringJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ + public featureDisplayName: string; - /** ModelDeploymentMonitoringJob nextScheduleTime. */ - public nextScheduleTime?: (google.protobuf.ITimestamp|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ + public objectives: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ + public pageSize: number; - /** ModelDeploymentMonitoringJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ + public pageToken: string; - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ - public enableMonitoringPipelineLogs: boolean; + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob error. */ - public error?: (google.rpc.IStatus|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringJob instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + public static create(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringJob + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.aiplatform.v1.ModelDeploymentMonitoringJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringJob + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.aiplatform.v1.ModelDeploymentMonitoringJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest 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 ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringJob + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringJob + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringJob { + namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** Properties of a LatestMonitoringPipelineMetadata. */ - interface ILatestMonitoringPipelineMetadata { + /** Properties of a StatsAnomaliesObjective. */ + interface IStatsAnomaliesObjective { - /** LatestMonitoringPipelineMetadata runTime */ - runTime?: (google.protobuf.ITimestamp|null); + /** StatsAnomaliesObjective type */ + type?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); - /** LatestMonitoringPipelineMetadata status */ - status?: (google.rpc.IStatus|null); + /** StatsAnomaliesObjective topFeatureCount */ + topFeatureCount?: (number|null); } - /** Represents a LatestMonitoringPipelineMetadata. */ - class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + /** Represents a StatsAnomaliesObjective. */ + class StatsAnomaliesObjective implements IStatsAnomaliesObjective { /** - * Constructs a new LatestMonitoringPipelineMetadata. + * Constructs a new StatsAnomaliesObjective. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + constructor(properties?: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); - /** LatestMonitoringPipelineMetadata runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); + /** StatsAnomaliesObjective type. */ + public type: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); - /** LatestMonitoringPipelineMetadata status. */ - public status?: (google.rpc.IStatus|null); + /** StatsAnomaliesObjective topFeatureCount. */ + public topFeatureCount: number; /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * Creates a new StatsAnomaliesObjective instance using the specified properties. * @param [properties] Properties to set - * @returns LatestMonitoringPipelineMetadata instance + * @returns StatsAnomaliesObjective instance */ - public static create(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static create(properties?: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LatestMonitoringPipelineMetadata + * @returns StatsAnomaliesObjective * @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.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LatestMonitoringPipelineMetadata + * @returns StatsAnomaliesObjective * @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.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; /** - * Verifies a LatestMonitoringPipelineMetadata message. + * Verifies a StatsAnomaliesObjective 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 LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LatestMonitoringPipelineMetadata + * @returns StatsAnomaliesObjective */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @param message LatestMonitoringPipelineMetadata + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @param message StatsAnomaliesObjective * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LatestMonitoringPipelineMetadata to JSON. + * Converts this StatsAnomaliesObjective to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LatestMonitoringPipelineMetadata + * Gets the default type url for StatsAnomaliesObjective * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - /** MonitoringScheduleState enum. */ - enum MonitoringScheduleState { - MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, - PENDING = 1, - OFFLINE = 2, - RUNNING = 3 - } } - /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ - interface IModelDeploymentMonitoringBigQueryTable { - - /** ModelDeploymentMonitoringBigQueryTable logSource */ - logSource?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { - /** ModelDeploymentMonitoringBigQueryTable logType */ - logType?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies[]|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ - bigqueryTablePath?: (string|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ModelDeploymentMonitoringBigQueryTable. */ - class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable); - - /** ModelDeploymentMonitoringBigQueryTable logSource. */ - public logSource: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource); + constructor(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); - /** ModelDeploymentMonitoringBigQueryTable logType. */ - public logType: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType); + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies[]; - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ - public bigqueryTablePath: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringBigQueryTable instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static create(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse 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 ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringBigQueryTable + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringBigQueryTable { - - /** LogSource enum. */ - enum LogSource { - LOG_SOURCE_UNSPECIFIED = 0, - TRAINING = 1, - SERVING = 2 - } - - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - PREDICT = 1, - EXPLAIN = 2 - } - } - - /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ - interface IModelDeploymentMonitoringObjectiveConfig { - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ - deployedModelId?: (string|null); + /** Properties of a GetModelDeploymentMonitoringJobRequest. */ + interface IGetModelDeploymentMonitoringJobRequest { - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ - objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); + /** GetModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ - class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { + /** Represents a GetModelDeploymentMonitoringJobRequest. */ + class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig); - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ - public deployedModelId: string; + constructor(properties?: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest); - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ - public objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); + /** GetModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringObjectiveConfig instance + * @returns GetModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns GetModelDeploymentMonitoringJobRequest * @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.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns GetModelDeploymentMonitoringJobRequest * @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.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies a GetModelDeploymentMonitoringJobRequest 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 ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns GetModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringObjectiveConfig + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message GetModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for GetModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ - interface IModelDeploymentMonitoringScheduleConfig { + /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ + interface IListModelDeploymentMonitoringJobsRequest { - /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ - monitorInterval?: (google.protobuf.IDuration|null); + /** ListModelDeploymentMonitoringJobsRequest parent */ + parent?: (string|null); - /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ - monitorWindow?: (google.protobuf.IDuration|null); + /** ListModelDeploymentMonitoringJobsRequest filter */ + filter?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelDeploymentMonitoringJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ModelDeploymentMonitoringScheduleConfig. */ - class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { + /** Represents a ListModelDeploymentMonitoringJobsRequest. */ + class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig); + constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest); - /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ - public monitorInterval?: (google.protobuf.IDuration|null); + /** ListModelDeploymentMonitoringJobsRequest parent. */ + public parent: string; - /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ - public monitorWindow?: (google.protobuf.IDuration|null); + /** ListModelDeploymentMonitoringJobsRequest filter. */ + public filter: string; + + /** ListModelDeploymentMonitoringJobsRequest pageSize. */ + public pageSize: number; + + /** ListModelDeploymentMonitoringJobsRequest pageToken. */ + public pageToken: string; + + /** ListModelDeploymentMonitoringJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringScheduleConfig instance + * @returns ListModelDeploymentMonitoringJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns ListModelDeploymentMonitoringJobsRequest * @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.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns ListModelDeploymentMonitoringJobsRequest * @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.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a ListModelDeploymentMonitoringJobsRequest 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 ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns ListModelDeploymentMonitoringJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringScheduleConfig + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringStatsAnomalies. */ - interface IModelMonitoringStatsAnomalies { - - /** ModelMonitoringStatsAnomalies objective */ - objective?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); - - /** ModelMonitoringStatsAnomalies deployedModelId */ - deployedModelId?: (string|null); + /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ + interface IListModelDeploymentMonitoringJobsResponse { - /** ModelMonitoringStatsAnomalies anomalyCount */ - anomalyCount?: (number|null); + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ + modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]|null); - /** ModelMonitoringStatsAnomalies featureStats */ - featureStats?: (google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ModelMonitoringStatsAnomalies. */ - class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { + /** Represents a ListModelDeploymentMonitoringJobsResponse. */ + class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies); - - /** ModelMonitoringStatsAnomalies objective. */ - public objective: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); - - /** ModelMonitoringStatsAnomalies deployedModelId. */ - public deployedModelId: string; + constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse); - /** ModelMonitoringStatsAnomalies anomalyCount. */ - public anomalyCount: number; + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ + public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]; - /** ModelMonitoringStatsAnomalies featureStats. */ - public featureStats: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; + /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringStatsAnomalies instance + * @returns ListModelDeploymentMonitoringJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; + public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringStatsAnomalies + * @returns ListModelDeploymentMonitoringJobsResponse * @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.aiplatform.v1.ModelMonitoringStatsAnomalies; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringStatsAnomalies + * @returns ListModelDeploymentMonitoringJobsResponse * @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.aiplatform.v1.ModelMonitoringStatsAnomalies; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a ListModelDeploymentMonitoringJobsResponse 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 ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringStatsAnomalies + * @returns ListModelDeploymentMonitoringJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. - * @param message ModelMonitoringStatsAnomalies + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringStatsAnomalies + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringStatsAnomalies { - - /** Properties of a FeatureHistoricStatsAnomalies. */ - interface IFeatureHistoricStatsAnomalies { - - /** FeatureHistoricStatsAnomalies featureDisplayName */ - featureDisplayName?: (string|null); - - /** FeatureHistoricStatsAnomalies threshold */ - threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats */ - trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats */ - predictionStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]|null); - } + /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ + interface IUpdateModelDeploymentMonitoringJobRequest { - /** Represents a FeatureHistoricStatsAnomalies. */ - class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); + /** UpdateModelDeploymentMonitoringJobRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** FeatureHistoricStatsAnomalies featureDisplayName. */ - public featureDisplayName: string; + /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ + class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { - /** FeatureHistoricStatsAnomalies threshold. */ - public threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest); - /** FeatureHistoricStatsAnomalies trainingStats. */ - public trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); - /** FeatureHistoricStatsAnomalies predictionStats. */ - public predictionStats: google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]; + /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureHistoricStatsAnomalies instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureHistoricStatsAnomalies - * @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.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelDeploymentMonitoringJobRequest + * @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.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureHistoricStatsAnomalies - * @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.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelDeploymentMonitoringJobRequest + * @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.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; - /** - * Verifies a FeatureHistoricStatsAnomalies 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); + /** + * Verifies an UpdateModelDeploymentMonitoringJobRequest 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 FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureHistoricStatsAnomalies - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @param message FeatureHistoricStatsAnomalies - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringObjectiveConfig. */ - interface IModelMonitoringObjectiveConfig { - - /** ModelMonitoringObjectiveConfig trainingDataset */ - trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ - trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ - predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ + interface IDeleteModelDeploymentMonitoringJobRequest { - /** ModelMonitoringObjectiveConfig explanationConfig */ - explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** DeleteModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelMonitoringObjectiveConfig. */ - class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { + /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ + class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig); - - /** ModelMonitoringObjectiveConfig trainingDataset. */ - public trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ - public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ - public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest); - /** ModelMonitoringObjectiveConfig explanationConfig. */ - public explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** DeleteModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringObjectiveConfig instance + * @returns DeleteModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest * @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.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest * @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.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest 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 ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringObjectiveConfig + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message DeleteModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringObjectiveConfig { - - /** Properties of a TrainingDataset. */ - interface ITrainingDataset { + /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ + interface IPauseModelDeploymentMonitoringJobRequest { - /** TrainingDataset dataset */ - dataset?: (string|null); + /** PauseModelDeploymentMonitoringJobRequest name */ + name?: (string|null); + } - /** TrainingDataset gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); + /** Represents a PauseModelDeploymentMonitoringJobRequest. */ + class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { - /** TrainingDataset bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + /** + * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest); - /** TrainingDataset dataFormat */ - dataFormat?: (string|null); + /** PauseModelDeploymentMonitoringJobRequest name. */ + public name: string; - /** TrainingDataset targetField */ - targetField?: (string|null); + /** + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PauseModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; - /** TrainingDataset loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - } + /** + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a TrainingDataset. */ - class TrainingDataset implements ITrainingDataset { + /** + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new TrainingDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset); + /** + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PauseModelDeploymentMonitoringJobRequest + * @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.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; - /** TrainingDataset dataset. */ - public dataset?: (string|null); + /** + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PauseModelDeploymentMonitoringJobRequest + * @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.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; - /** TrainingDataset gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); + /** + * Verifies a PauseModelDeploymentMonitoringJobRequest 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); - /** TrainingDataset bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + /** + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PauseModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; - /** TrainingDataset dataFormat. */ - public dataFormat: string; + /** + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message PauseModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TrainingDataset targetField. */ - public targetField: string; + /** + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TrainingDataset loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + /** + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TrainingDataset dataSource. */ - public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ + interface IResumeModelDeploymentMonitoringJobRequest { - /** - * Creates a new TrainingDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** ResumeModelDeploymentMonitoringJobRequest name */ + name?: (string|null); + } - /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ + class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { - /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest); - /** - * Decodes a TrainingDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingDataset - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** ResumeModelDeploymentMonitoringJobRequest name. */ + public name: string; - /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingDataset - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ResumeModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; - /** - * Verifies a TrainingDataset 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); + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. - * @param message TrainingDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResumeModelDeploymentMonitoringJobRequest + * @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.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; - /** - * Converts this TrainingDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResumeModelDeploymentMonitoringJobRequest + * @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.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; - /** - * Gets the default type url for TrainingDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a ResumeModelDeploymentMonitoringJobRequest 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); - /** Properties of a TrainingPredictionSkewDetectionConfig. */ - interface ITrainingPredictionSkewDetectionConfig { + /** + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResumeModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; - /** TrainingPredictionSkewDetectionConfig skewThresholds */ - skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message ResumeModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ - attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ - defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - } + /** + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a TrainingPredictionSkewDetectionConfig. */ - class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + interface IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } - /** TrainingPredictionSkewDetectionConfig skewThresholds. */ - public skewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ - public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata); - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ - public defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPredictionSkewDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPredictionSkewDetectionConfig - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @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.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPredictionSkewDetectionConfig - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @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.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Verifies a TrainingPredictionSkewDetectionConfig 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); + /** + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata 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 TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPredictionSkewDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @param message TrainingPredictionSkewDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TrainingPredictionSkewDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a PredictionDriftDetectionConfig. */ - interface IPredictionDriftDetectionConfig { + /** ModelDeploymentMonitoringObjectiveType enum. */ + enum ModelDeploymentMonitoringObjectiveType { + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, + RAW_FEATURE_SKEW = 1, + RAW_FEATURE_DRIFT = 2, + FEATURE_ATTRIBUTION_SKEW = 3, + FEATURE_ATTRIBUTION_DRIFT = 4 + } - /** PredictionDriftDetectionConfig driftThresholds */ - driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** Properties of a ModelDeploymentMonitoringJob. */ + interface IModelDeploymentMonitoringJob { - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ - attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** ModelDeploymentMonitoringJob name */ + name?: (string|null); - /** PredictionDriftDetectionConfig defaultDriftThreshold */ - defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - } + /** ModelDeploymentMonitoringJob displayName */ + displayName?: (string|null); - /** Represents a PredictionDriftDetectionConfig. */ - class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { + /** ModelDeploymentMonitoringJob endpoint */ + endpoint?: (string|null); - /** - * Constructs a new PredictionDriftDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); + /** ModelDeploymentMonitoringJob state */ + state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); - /** PredictionDriftDetectionConfig driftThresholds. */ - public driftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** ModelDeploymentMonitoringJob scheduleState */ + scheduleState?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ - public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ + latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - /** PredictionDriftDetectionConfig defaultDriftThreshold. */ - public defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ + modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]|null); - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictionDriftDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ + modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ + modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictionDriftDetectionConfig - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ + predictInstanceSchemaUri?: (string|null); - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictionDriftDetectionConfig - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Verifies a PredictionDriftDetectionConfig 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 PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictionDriftDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @param message PredictionDriftDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PredictionDriftDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExplanationConfig. */ - interface IExplanationConfig { - - /** ExplanationConfig enableFeatureAttributes */ - enableFeatureAttributes?: (boolean|null); - - /** ExplanationConfig explanationBaseline */ - explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - } - - /** Represents an ExplanationConfig. */ - class ExplanationConfig implements IExplanationConfig { - - /** - * Constructs a new ExplanationConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig); - - /** ExplanationConfig enableFeatureAttributes. */ - public enableFeatureAttributes: boolean; - - /** ExplanationConfig explanationBaseline. */ - public explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - - /** - * Creates a new ExplanationConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; - - /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExplanationConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationConfig - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; - - /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationConfig - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** ModelDeploymentMonitoringJob samplePredictInstance */ + samplePredictInstance?: (google.protobuf.IValue|null); - /** - * Verifies an ExplanationConfig 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); + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); - /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** ModelDeploymentMonitoringJob bigqueryTables */ + bigqueryTables?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]|null); - /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. - * @param message ExplanationConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelDeploymentMonitoringJob logTtl */ + logTtl?: (google.protobuf.IDuration|null); - /** - * Converts this ExplanationConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ModelDeploymentMonitoringJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Gets the default type url for ExplanationConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ModelDeploymentMonitoringJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - namespace ExplanationConfig { + /** ModelDeploymentMonitoringJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** Properties of an ExplanationBaseline. */ - interface IExplanationBaseline { + /** ModelDeploymentMonitoringJob nextScheduleTime */ + nextScheduleTime?: (google.protobuf.ITimestamp|null); - /** ExplanationBaseline gcs */ - gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** ExplanationBaseline bigquery */ - bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** ModelDeploymentMonitoringJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** ExplanationBaseline predictionFormat */ - predictionFormat?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); - } + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ + enableMonitoringPipelineLogs?: (boolean|null); - /** Represents an ExplanationBaseline. */ - class ExplanationBaseline implements IExplanationBaseline { + /** ModelDeploymentMonitoringJob error */ + error?: (google.rpc.IStatus|null); + } - /** - * Constructs a new ExplanationBaseline. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + /** Represents a ModelDeploymentMonitoringJob. */ + class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { - /** ExplanationBaseline gcs. */ - public gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** + * Constructs a new ModelDeploymentMonitoringJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob); - /** ExplanationBaseline bigquery. */ - public bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** ModelDeploymentMonitoringJob name. */ + public name: string; - /** ExplanationBaseline predictionFormat. */ - public predictionFormat: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + /** ModelDeploymentMonitoringJob displayName. */ + public displayName: string; - /** ExplanationBaseline destination. */ - public destination?: ("gcs"|"bigquery"); + /** ModelDeploymentMonitoringJob endpoint. */ + public endpoint: string; - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationBaseline instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** ModelDeploymentMonitoringJob state. */ + public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob scheduleState. */ + public scheduleState: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState); - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ + public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationBaseline - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ + public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationBaseline - * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ + public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); - /** - * Verifies an ExplanationBaseline 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); + /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationBaseline - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ + public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @param message ExplanationBaseline - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ + public predictInstanceSchemaUri: string; - /** - * Converts this ExplanationBaseline to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ModelDeploymentMonitoringJob samplePredictInstance. */ + public samplePredictInstance?: (google.protobuf.IValue|null); - /** - * Gets the default type url for ExplanationBaseline - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; - namespace ExplanationBaseline { + /** ModelDeploymentMonitoringJob bigqueryTables. */ + public bigqueryTables: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]; - /** PredictionFormat enum. */ - enum PredictionFormat { - PREDICTION_FORMAT_UNSPECIFIED = 0, - JSONL = 2, - BIGQUERY = 3 - } - } - } - } + /** ModelDeploymentMonitoringJob logTtl. */ + public logTtl?: (google.protobuf.IDuration|null); - /** Properties of a ModelMonitoringAlertConfig. */ - interface IModelMonitoringAlertConfig { + /** ModelDeploymentMonitoringJob labels. */ + public labels: { [k: string]: string }; - /** ModelMonitoringAlertConfig emailAlertConfig */ - emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** ModelDeploymentMonitoringJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringAlertConfig enableLogging */ - enableLogging?: (boolean|null); - } + /** ModelDeploymentMonitoringJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Represents a ModelMonitoringAlertConfig. */ - class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { + /** ModelDeploymentMonitoringJob nextScheduleTime. */ + public nextScheduleTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ModelMonitoringAlertConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig); + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** ModelMonitoringAlertConfig emailAlertConfig. */ - public emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** ModelDeploymentMonitoringJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** ModelMonitoringAlertConfig enableLogging. */ - public enableLogging: boolean; + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ + public enableMonitoringPipelineLogs: boolean; - /** ModelMonitoringAlertConfig alert. */ - public alert?: "emailAlertConfig"; + /** ModelDeploymentMonitoringJob error. */ + public error?: (google.rpc.IStatus|null); /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringAlertConfig instance + * @returns ModelDeploymentMonitoringJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringAlertConfig + * @returns ModelDeploymentMonitoringJob * @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.aiplatform.v1.ModelMonitoringAlertConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringAlertConfig + * @returns ModelDeploymentMonitoringJob * @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.aiplatform.v1.ModelMonitoringAlertConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a ModelDeploymentMonitoringJob 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 ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringAlertConfig + * @returns ModelDeploymentMonitoringJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringAlertConfig + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this ModelDeploymentMonitoringJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringAlertConfig + * Gets the default type url for ModelDeploymentMonitoringJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringAlertConfig { + namespace ModelDeploymentMonitoringJob { - /** Properties of an EmailAlertConfig. */ - interface IEmailAlertConfig { + /** Properties of a LatestMonitoringPipelineMetadata. */ + interface ILatestMonitoringPipelineMetadata { - /** EmailAlertConfig userEmails */ - userEmails?: (string[]|null); + /** LatestMonitoringPipelineMetadata runTime */ + runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status */ + status?: (google.rpc.IStatus|null); } - /** Represents an EmailAlertConfig. */ - class EmailAlertConfig implements IEmailAlertConfig { + /** Represents a LatestMonitoringPipelineMetadata. */ + class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { /** - * Constructs a new EmailAlertConfig. + * Constructs a new LatestMonitoringPipelineMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig); + constructor(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); - /** EmailAlertConfig userEmails. */ - public userEmails: string[]; + /** LatestMonitoringPipelineMetadata runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new EmailAlertConfig instance using the specified properties. + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns EmailAlertConfig instance + * @returns LatestMonitoringPipelineMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + public static create(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EmailAlertConfig + * @returns LatestMonitoringPipelineMetadata * @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.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EmailAlertConfig + * @returns LatestMonitoringPipelineMetadata * @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.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Verifies an EmailAlertConfig message. + * Verifies a LatestMonitoringPipelineMetadata 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 an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EmailAlertConfig + * @returns LatestMonitoringPipelineMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. - * @param message EmailAlertConfig + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * @param message LatestMonitoringPipelineMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EmailAlertConfig to JSON. + * Converts this LatestMonitoringPipelineMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EmailAlertConfig + * Gets the default type url for LatestMonitoringPipelineMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** MonitoringScheduleState enum. */ + enum MonitoringScheduleState { + MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, + PENDING = 1, + OFFLINE = 2, + RUNNING = 3 + } } - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { + /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ + interface IModelDeploymentMonitoringBigQueryTable { - /** ThresholdConfig value */ - value?: (number|null); + /** ModelDeploymentMonitoringBigQueryTable logSource */ + logSource?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); + + /** ModelDeploymentMonitoringBigQueryTable logType */ + logType?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ + bigqueryTablePath?: (string|null); } - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { + /** Represents a ModelDeploymentMonitoringBigQueryTable. */ + class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { /** - * Constructs a new ThresholdConfig. + * Constructs a new ModelDeploymentMonitoringBigQueryTable. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IThresholdConfig); + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable); - /** ThresholdConfig value. */ - public value?: (number|null); + /** ModelDeploymentMonitoringBigQueryTable logSource. */ + public logSource: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource); - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** ModelDeploymentMonitoringBigQueryTable logType. */ + public logType: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType); + + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ + public bigqueryTablePath: string; /** - * Creates a new ThresholdConfig instance using the specified properties. + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @param [properties] Properties to set - * @returns ThresholdConfig instance + * @returns ModelDeploymentMonitoringBigQueryTable instance */ - public static create(properties?: google.cloud.aiplatform.v1.IThresholdConfig): google.cloud.aiplatform.v1.ThresholdConfig; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ThresholdConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ThresholdConfig + * @returns ModelDeploymentMonitoringBigQueryTable * @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.aiplatform.v1.ThresholdConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ThresholdConfig + * @returns ModelDeploymentMonitoringBigQueryTable * @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.aiplatform.v1.ThresholdConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Verifies a ThresholdConfig message. + * Verifies a ModelDeploymentMonitoringBigQueryTable 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 ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ThresholdConfig + * @returns ModelDeploymentMonitoringBigQueryTable */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ThresholdConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringBigQueryTable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ThresholdConfig to JSON. + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ThresholdConfig + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SamplingStrategy. */ - interface ISamplingStrategy { + namespace ModelDeploymentMonitoringBigQueryTable { - /** SamplingStrategy randomSampleConfig */ - randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); + /** LogSource enum. */ + enum LogSource { + LOG_SOURCE_UNSPECIFIED = 0, + TRAINING = 1, + SERVING = 2 + } + + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + PREDICT = 1, + EXPLAIN = 2 + } } - /** Represents a SamplingStrategy. */ - class SamplingStrategy implements ISamplingStrategy { + /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ + interface IModelDeploymentMonitoringObjectiveConfig { + + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ + deployedModelId?: (string|null); + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ + objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); + } + + /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ + class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { /** - * Constructs a new SamplingStrategy. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISamplingStrategy); + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig); - /** SamplingStrategy randomSampleConfig. */ - public randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ + public deployedModelId: string; + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ + public objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); /** - * Creates a new SamplingStrategy instance using the specified properties. + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns SamplingStrategy instance + * @returns ModelDeploymentMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISamplingStrategy): google.cloud.aiplatform.v1.SamplingStrategy; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SamplingStrategy message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SamplingStrategy + * @returns ModelDeploymentMonitoringObjectiveConfig * @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.aiplatform.v1.SamplingStrategy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SamplingStrategy + * @returns ModelDeploymentMonitoringObjectiveConfig * @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.aiplatform.v1.SamplingStrategy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Verifies a SamplingStrategy message. + * Verifies a ModelDeploymentMonitoringObjectiveConfig 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 SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SamplingStrategy + * @returns ModelDeploymentMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. - * @param message SamplingStrategy + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SamplingStrategy to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SamplingStrategy + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SamplingStrategy { - - /** Properties of a RandomSampleConfig. */ - interface IRandomSampleConfig { - - /** RandomSampleConfig sampleRate */ - sampleRate?: (number|null); - } - - /** Represents a RandomSampleConfig. */ - class RandomSampleConfig implements IRandomSampleConfig { - - /** - * Constructs a new RandomSampleConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig); - - /** RandomSampleConfig sampleRate. */ - public sampleRate: number; - - /** - * Creates a new RandomSampleConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RandomSampleConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - - /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RandomSampleConfig - * @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.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RandomSampleConfig - * @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.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - - /** - * Verifies a RandomSampleConfig 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 RandomSampleConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RandomSampleConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - - /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. - * @param message RandomSampleConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RandomSampleConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RandomSampleConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a LineageSubgraph. */ - interface ILineageSubgraph { - - /** LineageSubgraph artifacts */ - artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ + interface IModelDeploymentMonitoringScheduleConfig { - /** LineageSubgraph executions */ - executions?: (google.cloud.aiplatform.v1.IExecution[]|null); + /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ + monitorInterval?: (google.protobuf.IDuration|null); - /** LineageSubgraph events */ - events?: (google.cloud.aiplatform.v1.IEvent[]|null); + /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ + monitorWindow?: (google.protobuf.IDuration|null); } - /** Represents a LineageSubgraph. */ - class LineageSubgraph implements ILineageSubgraph { + /** Represents a ModelDeploymentMonitoringScheduleConfig. */ + class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { /** - * Constructs a new LineageSubgraph. + * Constructs a new ModelDeploymentMonitoringScheduleConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ILineageSubgraph); - - /** LineageSubgraph artifacts. */ - public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig); - /** LineageSubgraph executions. */ - public executions: google.cloud.aiplatform.v1.IExecution[]; + /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ + public monitorInterval?: (google.protobuf.IDuration|null); - /** LineageSubgraph events. */ - public events: google.cloud.aiplatform.v1.IEvent[]; + /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ + public monitorWindow?: (google.protobuf.IDuration|null); /** - * Creates a new LineageSubgraph instance using the specified properties. + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @param [properties] Properties to set - * @returns LineageSubgraph instance + * @returns ModelDeploymentMonitoringScheduleConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ILineageSubgraph): google.cloud.aiplatform.v1.LineageSubgraph; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @param message LineageSubgraph message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @param message LineageSubgraph message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LineageSubgraph message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LineageSubgraph + * @returns ModelDeploymentMonitoringScheduleConfig * @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.aiplatform.v1.LineageSubgraph; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LineageSubgraph + * @returns ModelDeploymentMonitoringScheduleConfig * @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.aiplatform.v1.LineageSubgraph; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Verifies a LineageSubgraph message. + * Verifies a ModelDeploymentMonitoringScheduleConfig 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 LineageSubgraph message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LineageSubgraph + * @returns ModelDeploymentMonitoringScheduleConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LineageSubgraph; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. - * @param message LineageSubgraph + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringScheduleConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.LineageSubgraph, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LineageSubgraph to JSON. + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LineageSubgraph + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MetadataSchema. */ - interface IMetadataSchema { - - /** MetadataSchema name */ - name?: (string|null); - - /** MetadataSchema schemaVersion */ - schemaVersion?: (string|null); + /** Properties of a ModelMonitoringStatsAnomalies. */ + interface IModelMonitoringStatsAnomalies { - /** MetadataSchema schema */ - schema?: (string|null); + /** ModelMonitoringStatsAnomalies objective */ + objective?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); - /** MetadataSchema schemaType */ - schemaType?: (google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|null); + /** ModelMonitoringStatsAnomalies deployedModelId */ + deployedModelId?: (string|null); - /** MetadataSchema createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ModelMonitoringStatsAnomalies anomalyCount */ + anomalyCount?: (number|null); - /** MetadataSchema description */ - description?: (string|null); + /** ModelMonitoringStatsAnomalies featureStats */ + featureStats?: (google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); } - /** Represents a MetadataSchema. */ - class MetadataSchema implements IMetadataSchema { + /** Represents a ModelMonitoringStatsAnomalies. */ + class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { /** - * Constructs a new MetadataSchema. + * Constructs a new ModelMonitoringStatsAnomalies. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMetadataSchema); - - /** MetadataSchema name. */ - public name: string; - - /** MetadataSchema schemaVersion. */ - public schemaVersion: string; + constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies); - /** MetadataSchema schema. */ - public schema: string; + /** ModelMonitoringStatsAnomalies objective. */ + public objective: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); - /** MetadataSchema schemaType. */ - public schemaType: (google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType); + /** ModelMonitoringStatsAnomalies deployedModelId. */ + public deployedModelId: string; - /** MetadataSchema createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ModelMonitoringStatsAnomalies anomalyCount. */ + public anomalyCount: number; - /** MetadataSchema description. */ - public description: string; + /** ModelMonitoringStatsAnomalies featureStats. */ + public featureStats: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; /** - * Creates a new MetadataSchema instance using the specified properties. + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. * @param [properties] Properties to set - * @returns MetadataSchema instance + * @returns ModelMonitoringStatsAnomalies instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMetadataSchema): google.cloud.aiplatform.v1.MetadataSchema; + public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. - * @param message MetadataSchema message or plain object to encode + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. - * @param message MetadataSchema message or plain object to encode + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MetadataSchema message from the specified reader or buffer. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MetadataSchema + * @returns ModelMonitoringStatsAnomalies * @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.aiplatform.v1.MetadataSchema; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MetadataSchema + * @returns ModelMonitoringStatsAnomalies * @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.aiplatform.v1.MetadataSchema; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Verifies a MetadataSchema message. + * Verifies a ModelMonitoringStatsAnomalies 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 MetadataSchema message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MetadataSchema + * @returns ModelMonitoringStatsAnomalies */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataSchema; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. - * @param message MetadataSchema + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @param message ModelMonitoringStatsAnomalies * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MetadataSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MetadataSchema to JSON. + * Converts this ModelMonitoringStatsAnomalies to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MetadataSchema + * Gets the default type url for ModelMonitoringStatsAnomalies * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MetadataSchema { - - /** MetadataSchemaType enum. */ - enum MetadataSchemaType { - METADATA_SCHEMA_TYPE_UNSPECIFIED = 0, - ARTIFACT_TYPE = 1, - EXECUTION_TYPE = 2, - CONTEXT_TYPE = 3 - } - } + namespace ModelMonitoringStatsAnomalies { - /** Represents a MetadataService */ - class MetadataService extends $protobuf.rpc.Service { + /** Properties of a FeatureHistoricStatsAnomalies. */ + interface IFeatureHistoricStatsAnomalies { - /** - * Constructs a new MetadataService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** FeatureHistoricStatsAnomalies featureDisplayName */ + featureDisplayName?: (string|null); - /** - * Creates new MetadataService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MetadataService; + /** FeatureHistoricStatsAnomalies threshold */ + threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** - * Calls CreateMetadataStore. - * @param request CreateMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createMetadataStore(request: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateMetadataStoreCallback): void; + /** FeatureHistoricStatsAnomalies trainingStats */ + trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - /** - * Calls CreateMetadataStore. - * @param request CreateMetadataStoreRequest message or plain object - * @returns Promise - */ - public createMetadataStore(request: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest): Promise; + /** FeatureHistoricStatsAnomalies predictionStats */ + predictionStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]|null); + } - /** - * Calls GetMetadataStore. - * @param request GetMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataStore - */ - public getMetadataStore(request: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetMetadataStoreCallback): void; + /** Represents a FeatureHistoricStatsAnomalies. */ + class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { - /** - * Calls GetMetadataStore. - * @param request GetMetadataStoreRequest message or plain object - * @returns Promise - */ - public getMetadataStore(request: google.cloud.aiplatform.v1.IGetMetadataStoreRequest): Promise; + /** + * Constructs a new FeatureHistoricStatsAnomalies. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - /** - * Calls ListMetadataStores. - * @param request ListMetadataStoresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMetadataStoresResponse - */ - public listMetadataStores(request: google.cloud.aiplatform.v1.IListMetadataStoresRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListMetadataStoresCallback): void; + /** FeatureHistoricStatsAnomalies featureDisplayName. */ + public featureDisplayName: string; - /** - * Calls ListMetadataStores. - * @param request ListMetadataStoresRequest message or plain object - * @returns Promise - */ - public listMetadataStores(request: google.cloud.aiplatform.v1.IListMetadataStoresRequest): Promise; + /** FeatureHistoricStatsAnomalies threshold. */ + public threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** - * Calls DeleteMetadataStore. - * @param request DeleteMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteMetadataStore(request: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStoreCallback): void; + /** FeatureHistoricStatsAnomalies trainingStats. */ + public trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - /** - * Calls DeleteMetadataStore. - * @param request DeleteMetadataStoreRequest message or plain object - * @returns Promise - */ - public deleteMetadataStore(request: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest): Promise; - - /** - * Calls CreateArtifact. - * @param request CreateArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact - */ - public createArtifact(request: google.cloud.aiplatform.v1.ICreateArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateArtifactCallback): void; + /** FeatureHistoricStatsAnomalies predictionStats. */ + public predictionStats: google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]; - /** - * Calls CreateArtifact. - * @param request CreateArtifactRequest message or plain object - * @returns Promise - */ - public createArtifact(request: google.cloud.aiplatform.v1.ICreateArtifactRequest): Promise; + /** + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureHistoricStatsAnomalies instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - /** - * Calls GetArtifact. - * @param request GetArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact - */ - public getArtifact(request: google.cloud.aiplatform.v1.IGetArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetArtifactCallback): void; + /** + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls GetArtifact. - * @param request GetArtifactRequest message or plain object - * @returns Promise - */ - public getArtifact(request: google.cloud.aiplatform.v1.IGetArtifactRequest): Promise; + /** + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls ListArtifacts. - * @param request ListArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListArtifactsResponse - */ - public listArtifacts(request: google.cloud.aiplatform.v1.IListArtifactsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListArtifactsCallback): void; + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureHistoricStatsAnomalies + * @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.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - /** - * Calls ListArtifacts. - * @param request ListArtifactsRequest message or plain object - * @returns Promise - */ - public listArtifacts(request: google.cloud.aiplatform.v1.IListArtifactsRequest): Promise; + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureHistoricStatsAnomalies + * @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.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - /** - * Calls UpdateArtifact. - * @param request UpdateArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact - */ - public updateArtifact(request: google.cloud.aiplatform.v1.IUpdateArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateArtifactCallback): void; + /** + * Verifies a FeatureHistoricStatsAnomalies 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); - /** - * Calls UpdateArtifact. - * @param request UpdateArtifactRequest message or plain object - * @returns Promise - */ - public updateArtifact(request: google.cloud.aiplatform.v1.IUpdateArtifactRequest): Promise; + /** + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureHistoricStatsAnomalies + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - /** - * Calls DeleteArtifact. - * @param request DeleteArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteArtifact(request: google.cloud.aiplatform.v1.IDeleteArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteArtifactCallback): void; + /** + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. + * @param message FeatureHistoricStatsAnomalies + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls DeleteArtifact. - * @param request DeleteArtifactRequest message or plain object - * @returns Promise - */ - public deleteArtifact(request: google.cloud.aiplatform.v1.IDeleteArtifactRequest): Promise; + /** + * Converts this FeatureHistoricStatsAnomalies to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Calls PurgeArtifacts. - * @param request PurgeArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public purgeArtifacts(request: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeArtifactsCallback): void; + /** + * Gets the default type url for FeatureHistoricStatsAnomalies + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Calls PurgeArtifacts. - * @param request PurgeArtifactsRequest message or plain object - * @returns Promise - */ - public purgeArtifacts(request: google.cloud.aiplatform.v1.IPurgeArtifactsRequest): Promise; + /** Properties of a ModelMonitoringObjectiveConfig. */ + interface IModelMonitoringObjectiveConfig { - /** - * Calls CreateContext. - * @param request CreateContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context - */ - public createContext(request: google.cloud.aiplatform.v1.ICreateContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateContextCallback): void; + /** ModelMonitoringObjectiveConfig trainingDataset */ + trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - /** - * Calls CreateContext. - * @param request CreateContextRequest message or plain object - * @returns Promise - */ - public createContext(request: google.cloud.aiplatform.v1.ICreateContextRequest): Promise; + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ + trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - /** - * Calls GetContext. - * @param request GetContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context - */ - public getContext(request: google.cloud.aiplatform.v1.IGetContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetContextCallback): void; + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ + predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); - /** - * Calls GetContext. - * @param request GetContextRequest message or plain object - * @returns Promise - */ - public getContext(request: google.cloud.aiplatform.v1.IGetContextRequest): Promise; + /** ModelMonitoringObjectiveConfig explanationConfig */ + explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + } - /** - * Calls ListContexts. - * @param request ListContextsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListContextsResponse - */ - public listContexts(request: google.cloud.aiplatform.v1.IListContextsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListContextsCallback): void; + /** Represents a ModelMonitoringObjectiveConfig. */ + class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { /** - * Calls ListContexts. - * @param request ListContextsRequest message or plain object - * @returns Promise + * Constructs a new ModelMonitoringObjectiveConfig. + * @param [properties] Properties to set */ - public listContexts(request: google.cloud.aiplatform.v1.IListContextsRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig); - /** - * Calls UpdateContext. - * @param request UpdateContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context - */ - public updateContext(request: google.cloud.aiplatform.v1.IUpdateContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateContextCallback): void; + /** ModelMonitoringObjectiveConfig trainingDataset. */ + public trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - /** - * Calls UpdateContext. - * @param request UpdateContextRequest message or plain object - * @returns Promise - */ - public updateContext(request: google.cloud.aiplatform.v1.IUpdateContextRequest): Promise; + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ + public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - /** - * Calls DeleteContext. - * @param request DeleteContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteContext(request: google.cloud.aiplatform.v1.IDeleteContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteContextCallback): void; + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ + public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); - /** - * Calls DeleteContext. - * @param request DeleteContextRequest message or plain object - * @returns Promise - */ - public deleteContext(request: google.cloud.aiplatform.v1.IDeleteContextRequest): Promise; + /** ModelMonitoringObjectiveConfig explanationConfig. */ + public explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); /** - * Calls PurgeContexts. - * @param request PurgeContextsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelMonitoringObjectiveConfig instance */ - public purgeContexts(request: google.cloud.aiplatform.v1.IPurgeContextsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeContextsCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Calls PurgeContexts. - * @param request PurgeContextsRequest message or plain object - * @returns Promise + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public purgeContexts(request: google.cloud.aiplatform.v1.IPurgeContextsRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls AddContextArtifactsAndExecutions. - * @param request AddContextArtifactsAndExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutionsCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls AddContextArtifactsAndExecutions. - * @param request AddContextArtifactsAndExecutionsRequest message or plain object - * @returns Promise + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Calls AddContextChildren. - * @param request AddContextChildrenRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddContextChildrenResponse + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public addContextChildren(request: google.cloud.aiplatform.v1.IAddContextChildrenRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddContextChildrenCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Calls AddContextChildren. - * @param request AddContextChildrenRequest message or plain object - * @returns Promise + * Verifies a ModelMonitoringObjectiveConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public addContextChildren(request: google.cloud.aiplatform.v1.IAddContextChildrenRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls RemoveContextChildren. - * @param request RemoveContextChildrenRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelMonitoringObjectiveConfig */ - public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, callback: google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Calls RemoveContextChildren. - * @param request RemoveContextChildrenRequest message or plain object - * @returns Promise + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringObjectiveConfig + * @param [options] Conversion options + * @returns Plain object */ - public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls QueryContextLineageSubgraph. - * @param request QueryContextLineageSubgraphRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph + * Converts this ModelMonitoringObjectiveConfig to JSON. + * @returns JSON object */ - public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraphCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls QueryContextLineageSubgraph. - * @param request QueryContextLineageSubgraphRequest message or plain object - * @returns Promise + * Gets the default type url for ModelMonitoringObjectiveConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls CreateExecution. - * @param request CreateExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution - */ - public createExecution(request: google.cloud.aiplatform.v1.ICreateExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateExecutionCallback): void; + namespace ModelMonitoringObjectiveConfig { - /** - * Calls CreateExecution. - * @param request CreateExecutionRequest message or plain object - * @returns Promise - */ - public createExecution(request: google.cloud.aiplatform.v1.ICreateExecutionRequest): Promise; + /** Properties of a TrainingDataset. */ + interface ITrainingDataset { - /** - * Calls GetExecution. - * @param request GetExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution - */ - public getExecution(request: google.cloud.aiplatform.v1.IGetExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetExecutionCallback): void; + /** TrainingDataset dataset */ + dataset?: (string|null); - /** - * Calls GetExecution. - * @param request GetExecutionRequest message or plain object - * @returns Promise - */ - public getExecution(request: google.cloud.aiplatform.v1.IGetExecutionRequest): Promise; + /** TrainingDataset gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); - /** - * Calls ListExecutions. - * @param request ListExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse - */ - public listExecutions(request: google.cloud.aiplatform.v1.IListExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListExecutionsCallback): void; + /** TrainingDataset bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** - * Calls ListExecutions. - * @param request ListExecutionsRequest message or plain object - * @returns Promise - */ - public listExecutions(request: google.cloud.aiplatform.v1.IListExecutionsRequest): Promise; + /** TrainingDataset dataFormat */ + dataFormat?: (string|null); - /** - * Calls UpdateExecution. - * @param request UpdateExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution - */ - public updateExecution(request: google.cloud.aiplatform.v1.IUpdateExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateExecutionCallback): void; + /** TrainingDataset targetField */ + targetField?: (string|null); - /** - * Calls UpdateExecution. - * @param request UpdateExecutionRequest message or plain object - * @returns Promise - */ - public updateExecution(request: google.cloud.aiplatform.v1.IUpdateExecutionRequest): Promise; + /** TrainingDataset loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + } - /** - * Calls DeleteExecution. - * @param request DeleteExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteExecution(request: google.cloud.aiplatform.v1.IDeleteExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteExecutionCallback): void; + /** Represents a TrainingDataset. */ + class TrainingDataset implements ITrainingDataset { - /** - * Calls DeleteExecution. - * @param request DeleteExecutionRequest message or plain object - * @returns Promise - */ - public deleteExecution(request: google.cloud.aiplatform.v1.IDeleteExecutionRequest): Promise; + /** + * Constructs a new TrainingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset); - /** - * Calls PurgeExecutions. - * @param request PurgeExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public purgeExecutions(request: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeExecutionsCallback): void; + /** TrainingDataset dataset. */ + public dataset?: (string|null); - /** - * Calls PurgeExecutions. - * @param request PurgeExecutionsRequest message or plain object - * @returns Promise - */ - public purgeExecutions(request: google.cloud.aiplatform.v1.IPurgeExecutionsRequest): Promise; + /** TrainingDataset gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); - /** - * Calls AddExecutionEvents. - * @param request AddExecutionEventsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddExecutionEventsResponse - */ - public addExecutionEvents(request: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddExecutionEventsCallback): void; + /** TrainingDataset bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** - * Calls AddExecutionEvents. - * @param request AddExecutionEventsRequest message or plain object - * @returns Promise - */ - public addExecutionEvents(request: google.cloud.aiplatform.v1.IAddExecutionEventsRequest): Promise; + /** TrainingDataset dataFormat. */ + public dataFormat: string; - /** - * Calls QueryExecutionInputsAndOutputs. - * @param request QueryExecutionInputsAndOutputsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph - */ - public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputsCallback): void; + /** TrainingDataset targetField. */ + public targetField: string; - /** - * Calls QueryExecutionInputsAndOutputs. - * @param request QueryExecutionInputsAndOutputsRequest message or plain object - * @returns Promise - */ - public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest): Promise; + /** TrainingDataset loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - /** - * Calls CreateMetadataSchema. - * @param request CreateMetadataSchemaRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataSchema - */ - public createMetadataSchema(request: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchemaCallback): void; + /** TrainingDataset dataSource. */ + public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); - /** - * Calls CreateMetadataSchema. - * @param request CreateMetadataSchemaRequest message or plain object - * @returns Promise - */ - public createMetadataSchema(request: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest): Promise; + /** + * Creates a new TrainingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; - /** - * Calls GetMetadataSchema. - * @param request GetMetadataSchemaRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataSchema - */ - public getMetadataSchema(request: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetMetadataSchemaCallback): void; + /** + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls GetMetadataSchema. - * @param request GetMetadataSchemaRequest message or plain object - * @returns Promise - */ - public getMetadataSchema(request: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest): Promise; + /** + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls ListMetadataSchemas. - * @param request ListMetadataSchemasRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse - */ - public listMetadataSchemas(request: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemasCallback): void; + /** + * Decodes a TrainingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingDataset + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; - /** - * Calls ListMetadataSchemas. - * @param request ListMetadataSchemasRequest message or plain object - * @returns Promise - */ - public listMetadataSchemas(request: google.cloud.aiplatform.v1.IListMetadataSchemasRequest): Promise; + /** + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingDataset + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; - /** - * Calls QueryArtifactLineageSubgraph. - * @param request QueryArtifactLineageSubgraphRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph - */ - public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraphCallback): void; + /** + * Verifies a TrainingDataset 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); - /** - * Calls QueryArtifactLineageSubgraph. - * @param request QueryArtifactLineageSubgraphRequest message or plain object - * @returns Promise - */ - public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest): Promise; - } + /** + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; - namespace MetadataService { + /** + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * @param message TrainingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataStore}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Converts this TrainingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataStore}. - * @param error Error, if any - * @param [response] MetadataStore - */ - type GetMetadataStoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataStore) => void; + /** + * Gets the default type url for TrainingDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataStores}. - * @param error Error, if any - * @param [response] ListMetadataStoresResponse - */ - type ListMetadataStoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListMetadataStoresResponse) => void; + /** Properties of a TrainingPredictionSkewDetectionConfig. */ + interface ITrainingPredictionSkewDetectionConfig { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteMetadataStore}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** TrainingPredictionSkewDetectionConfig skewThresholds */ + skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createArtifact}. - * @param error Error, if any - * @param [response] Artifact - */ - type CreateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ + attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getArtifact}. - * @param error Error, if any - * @param [response] Artifact - */ - type GetArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ + defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listArtifacts}. - * @param error Error, if any - * @param [response] ListArtifactsResponse - */ - type ListArtifactsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListArtifactsResponse) => void; + /** Represents a TrainingPredictionSkewDetectionConfig. */ + class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateArtifact}. - * @param error Error, if any - * @param [response] Artifact - */ - type UpdateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteArtifact}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteArtifactCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** TrainingPredictionSkewDetectionConfig skewThresholds. */ + public skewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeArtifacts}. - * @param error Error, if any - * @param [response] Operation - */ - type PurgeArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ + public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createContext}. - * @param error Error, if any - * @param [response] Context - */ - type CreateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ + public defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getContext}. - * @param error Error, if any - * @param [response] Context - */ - type GetContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPredictionSkewDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listContexts}. - * @param error Error, if any - * @param [response] ListContextsResponse - */ - type ListContextsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListContextsResponse) => void; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateContext}. - * @param error Error, if any - * @param [response] Context - */ - type UpdateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteContext}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteContextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPredictionSkewDetectionConfig + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeContexts}. - * @param error Error, if any - * @param [response] Operation - */ - type PurgeContextsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPredictionSkewDetectionConfig + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextArtifactsAndExecutions}. - * @param error Error, if any - * @param [response] AddContextArtifactsAndExecutionsResponse - */ - type AddContextArtifactsAndExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse) => void; + /** + * Verifies a TrainingPredictionSkewDetectionConfig 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); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextChildren}. - * @param error Error, if any - * @param [response] AddContextChildrenResponse - */ - type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddContextChildrenResponse) => void; + /** + * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPredictionSkewDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. - * @param error Error, if any - * @param [response] RemoveContextChildrenResponse - */ - type RemoveContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.RemoveContextChildrenResponse) => void; + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @param message TrainingPredictionSkewDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. - * @param error Error, if any - * @param [response] LineageSubgraph - */ - type QueryContextLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createExecution}. - * @param error Error, if any - * @param [response] Execution - */ - type CreateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; + /** + * Gets the default type url for TrainingPredictionSkewDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getExecution}. - * @param error Error, if any - * @param [response] Execution - */ - type GetExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; + /** Properties of a PredictionDriftDetectionConfig. */ + interface IPredictionDriftDetectionConfig { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listExecutions}. - * @param error Error, if any - * @param [response] ListExecutionsResponse - */ - type ListExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListExecutionsResponse) => void; + /** PredictionDriftDetectionConfig driftThresholds */ + driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateExecution}. - * @param error Error, if any - * @param [response] Execution - */ - type UpdateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ + attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteExecution}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteExecutionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** PredictionDriftDetectionConfig defaultDriftThreshold */ + defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeExecutions}. - * @param error Error, if any - * @param [response] Operation - */ - type PurgeExecutionsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Represents a PredictionDriftDetectionConfig. */ + class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addExecutionEvents}. - * @param error Error, if any - * @param [response] AddExecutionEventsResponse - */ - type AddExecutionEventsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddExecutionEventsResponse) => void; + /** + * Constructs a new PredictionDriftDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryExecutionInputsAndOutputs}. - * @param error Error, if any - * @param [response] LineageSubgraph - */ - type QueryExecutionInputsAndOutputsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; + /** PredictionDriftDetectionConfig driftThresholds. */ + public driftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataSchema}. - * @param error Error, if any - * @param [response] MetadataSchema - */ - type CreateMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataSchema) => void; + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ + public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataSchema}. - * @param error Error, if any - * @param [response] MetadataSchema - */ - type GetMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataSchema) => void; + /** PredictionDriftDetectionConfig defaultDriftThreshold. */ + public defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataSchemas}. - * @param error Error, if any - * @param [response] ListMetadataSchemasResponse - */ - type ListMetadataSchemasCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListMetadataSchemasResponse) => void; + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictionDriftDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryArtifactLineageSubgraph}. - * @param error Error, if any - * @param [response] LineageSubgraph - */ - type QueryArtifactLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; - } + /** + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a CreateMetadataStoreRequest. */ - interface ICreateMetadataStoreRequest { + /** + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** CreateMetadataStoreRequest parent */ - parent?: (string|null); + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictionDriftDetectionConfig + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** CreateMetadataStoreRequest metadataStore */ - metadataStore?: (google.cloud.aiplatform.v1.IMetadataStore|null); + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictionDriftDetectionConfig + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** CreateMetadataStoreRequest metadataStoreId */ - metadataStoreId?: (string|null); - } + /** + * Verifies a PredictionDriftDetectionConfig 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); - /** Represents a CreateMetadataStoreRequest. */ - class CreateMetadataStoreRequest implements ICreateMetadataStoreRequest { + /** + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictionDriftDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** - * Constructs a new CreateMetadataStoreRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest); + /** + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. + * @param message PredictionDriftDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CreateMetadataStoreRequest parent. */ - public parent: string; + /** + * Converts this PredictionDriftDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CreateMetadataStoreRequest metadataStore. */ - public metadataStore?: (google.cloud.aiplatform.v1.IMetadataStore|null); + /** + * Gets the default type url for PredictionDriftDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** CreateMetadataStoreRequest metadataStoreId. */ - public metadataStoreId: string; + /** Properties of an ExplanationConfig. */ + interface IExplanationConfig { - /** - * Creates a new CreateMetadataStoreRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateMetadataStoreRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; + /** ExplanationConfig enableFeatureAttributes */ + enableFeatureAttributes?: (boolean|null); - /** - * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. - * @param message CreateMetadataStoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** ExplanationConfig explanationBaseline */ + explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + } - /** - * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. - * @param message CreateMetadataStoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an ExplanationConfig. */ + class ExplanationConfig implements IExplanationConfig { - /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateMetadataStoreRequest - * @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.aiplatform.v1.CreateMetadataStoreRequest; + /** + * Constructs a new ExplanationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig); - /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateMetadataStoreRequest - * @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.aiplatform.v1.CreateMetadataStoreRequest; + /** ExplanationConfig enableFeatureAttributes. */ + public enableFeatureAttributes: boolean; - /** - * Verifies a CreateMetadataStoreRequest 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); + /** ExplanationConfig explanationBaseline. */ + public explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - /** - * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateMetadataStoreRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. - * @param message CreateMetadataStoreRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateMetadataStoreRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for CreateMetadataStoreRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationConfig + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationConfig + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + + /** + * Verifies an ExplanationConfig 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 an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @param message ExplanationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplanationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplanationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExplanationConfig { + + /** Properties of an ExplanationBaseline. */ + interface IExplanationBaseline { + + /** ExplanationBaseline gcs */ + gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** ExplanationBaseline bigquery */ + bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + + /** ExplanationBaseline predictionFormat */ + predictionFormat?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); + } + + /** Represents an ExplanationBaseline. */ + class ExplanationBaseline implements IExplanationBaseline { + + /** + * Constructs a new ExplanationBaseline. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + + /** ExplanationBaseline gcs. */ + public gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** ExplanationBaseline bigquery. */ + public bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + + /** ExplanationBaseline predictionFormat. */ + public predictionFormat: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + + /** ExplanationBaseline destination. */ + public destination?: ("gcs"|"bigquery"); + + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationBaseline instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationBaseline + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationBaseline + * @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.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Verifies an ExplanationBaseline 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 an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationBaseline + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @param message ExplanationBaseline + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplanationBaseline to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplanationBaseline + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExplanationBaseline { + + /** PredictionFormat enum. */ + enum PredictionFormat { + PREDICTION_FORMAT_UNSPECIFIED = 0, + JSONL = 2, + BIGQUERY = 3 + } + } + } } - /** Properties of a CreateMetadataStoreOperationMetadata. */ - interface ICreateMetadataStoreOperationMetadata { + /** Properties of a ModelMonitoringAlertConfig. */ + interface IModelMonitoringAlertConfig { - /** CreateMetadataStoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ModelMonitoringAlertConfig emailAlertConfig */ + emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging */ + enableLogging?: (boolean|null); } - /** Represents a CreateMetadataStoreOperationMetadata. */ - class CreateMetadataStoreOperationMetadata implements ICreateMetadataStoreOperationMetadata { + /** Represents a ModelMonitoringAlertConfig. */ + class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { /** - * Constructs a new CreateMetadataStoreOperationMetadata. + * Constructs a new ModelMonitoringAlertConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig); - /** CreateMetadataStoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ModelMonitoringAlertConfig emailAlertConfig. */ + public emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging. */ + public enableLogging: boolean; + + /** ModelMonitoringAlertConfig alert. */ + public alert?: "emailAlertConfig"; /** - * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMetadataStoreOperationMetadata instance + * @returns ModelMonitoringAlertConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. - * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. - * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMetadataStoreOperationMetadata + * @returns ModelMonitoringAlertConfig * @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.aiplatform.v1.CreateMetadataStoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMetadataStoreOperationMetadata + * @returns ModelMonitoringAlertConfig * @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.aiplatform.v1.CreateMetadataStoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Verifies a CreateMetadataStoreOperationMetadata message. + * Verifies a ModelMonitoringAlertConfig 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 CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMetadataStoreOperationMetadata + * @returns ModelMonitoringAlertConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @param message CreateMetadataStoreOperationMetadata + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringAlertConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMetadataStoreOperationMetadata to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateMetadataStoreOperationMetadata + * Gets the default type url for ModelMonitoringAlertConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetMetadataStoreRequest. */ - interface IGetMetadataStoreRequest { + namespace ModelMonitoringAlertConfig { - /** GetMetadataStoreRequest name */ - name?: (string|null); + /** Properties of an EmailAlertConfig. */ + interface IEmailAlertConfig { + + /** EmailAlertConfig userEmails */ + userEmails?: (string[]|null); + } + + /** Represents an EmailAlertConfig. */ + class EmailAlertConfig implements IEmailAlertConfig { + + /** + * Constructs a new EmailAlertConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig); + + /** EmailAlertConfig userEmails. */ + public userEmails: string[]; + + /** + * Creates a new EmailAlertConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailAlertConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailAlertConfig + * @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.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmailAlertConfig + * @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.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Verifies an EmailAlertConfig 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 an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmailAlertConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * @param message EmailAlertConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmailAlertConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EmailAlertConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a GetMetadataStoreRequest. */ - class GetMetadataStoreRequest implements IGetMetadataStoreRequest { + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { + + /** ThresholdConfig value */ + value?: (number|null); + } + + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { /** - * Constructs a new GetMetadataStoreRequest. + * Constructs a new ThresholdConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetMetadataStoreRequest); + constructor(properties?: google.cloud.aiplatform.v1.IThresholdConfig); - /** GetMetadataStoreRequest name. */ - public name: string; + /** ThresholdConfig value. */ + public value?: (number|null); + + /** ThresholdConfig threshold. */ + public threshold?: "value"; /** - * Creates a new GetMetadataStoreRequest instance using the specified properties. + * Creates a new ThresholdConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GetMetadataStoreRequest instance + * @returns ThresholdConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetMetadataStoreRequest): google.cloud.aiplatform.v1.GetMetadataStoreRequest; + public static create(properties?: google.cloud.aiplatform.v1.IThresholdConfig): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. - * @param message GetMetadataStoreRequest message or plain object to encode + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. - * @param message GetMetadataStoreRequest message or plain object to encode + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetMetadataStoreRequest + * @returns ThresholdConfig * @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.aiplatform.v1.GetMetadataStoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetMetadataStoreRequest + * @returns ThresholdConfig * @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.aiplatform.v1.GetMetadataStoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Verifies a GetMetadataStoreRequest message. + * Verifies a ThresholdConfig 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 GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetMetadataStoreRequest + * @returns ThresholdConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetMetadataStoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. - * @param message GetMetadataStoreRequest + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetMetadataStoreRequest to JSON. + * Converts this ThresholdConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetMetadataStoreRequest + * Gets the default type url for ThresholdConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataStoresRequest. */ - interface IListMetadataStoresRequest { - - /** ListMetadataStoresRequest parent */ - parent?: (string|null); - - /** ListMetadataStoresRequest pageSize */ - pageSize?: (number|null); + /** Properties of a SamplingStrategy. */ + interface ISamplingStrategy { - /** ListMetadataStoresRequest pageToken */ - pageToken?: (string|null); + /** SamplingStrategy randomSampleConfig */ + randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); } - /** Represents a ListMetadataStoresRequest. */ - class ListMetadataStoresRequest implements IListMetadataStoresRequest { + /** Represents a SamplingStrategy. */ + class SamplingStrategy implements ISamplingStrategy { /** - * Constructs a new ListMetadataStoresRequest. + * Constructs a new SamplingStrategy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListMetadataStoresRequest); - - /** ListMetadataStoresRequest parent. */ - public parent: string; - - /** ListMetadataStoresRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1.ISamplingStrategy); - /** ListMetadataStoresRequest pageToken. */ - public pageToken: string; + /** SamplingStrategy randomSampleConfig. */ + public randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); /** - * Creates a new ListMetadataStoresRequest instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataStoresRequest instance + * @returns SamplingStrategy instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListMetadataStoresRequest): google.cloud.aiplatform.v1.ListMetadataStoresRequest; + public static create(properties?: google.cloud.aiplatform.v1.ISamplingStrategy): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. - * @param message ListMetadataStoresRequest message or plain object to encode + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. - * @param message ListMetadataStoresRequest message or plain object to encode + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. + * Decodes a SamplingStrategy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataStoresRequest + * @returns SamplingStrategy * @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.aiplatform.v1.ListMetadataStoresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataStoresRequest + * @returns SamplingStrategy * @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.aiplatform.v1.ListMetadataStoresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Verifies a ListMetadataStoresRequest message. + * Verifies a SamplingStrategy 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 ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataStoresRequest + * @returns SamplingStrategy */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataStoresRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. - * @param message ListMetadataStoresRequest + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * @param message SamplingStrategy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListMetadataStoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataStoresRequest to JSON. + * Converts this SamplingStrategy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMetadataStoresRequest + * Gets the default type url for SamplingStrategy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataStoresResponse. */ - interface IListMetadataStoresResponse { - - /** ListMetadataStoresResponse metadataStores */ - metadataStores?: (google.cloud.aiplatform.v1.IMetadataStore[]|null); + namespace SamplingStrategy { - /** ListMetadataStoresResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** Properties of a RandomSampleConfig. */ + interface IRandomSampleConfig { - /** Represents a ListMetadataStoresResponse. */ - class ListMetadataStoresResponse implements IListMetadataStoresResponse { + /** RandomSampleConfig sampleRate */ + sampleRate?: (number|null); + } - /** - * Constructs a new ListMetadataStoresResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListMetadataStoresResponse); + /** Represents a RandomSampleConfig. */ + class RandomSampleConfig implements IRandomSampleConfig { - /** ListMetadataStoresResponse metadataStores. */ - public metadataStores: google.cloud.aiplatform.v1.IMetadataStore[]; + /** + * Constructs a new RandomSampleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig); - /** ListMetadataStoresResponse nextPageToken. */ - public nextPageToken: string; + /** RandomSampleConfig sampleRate. */ + public sampleRate: number; - /** - * Creates a new ListMetadataStoresResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListMetadataStoresResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListMetadataStoresResponse): google.cloud.aiplatform.v1.ListMetadataStoresResponse; + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RandomSampleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - /** - * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. - * @param message ListMetadataStoresResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. - * @param message ListMetadataStoresResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListMetadataStoresResponse - * @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.aiplatform.v1.ListMetadataStoresResponse; + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RandomSampleConfig + * @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.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListMetadataStoresResponse - * @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.aiplatform.v1.ListMetadataStoresResponse; + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RandomSampleConfig + * @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.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - /** - * Verifies a ListMetadataStoresResponse 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); + /** + * Verifies a RandomSampleConfig 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 ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListMetadataStoresResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataStoresResponse; + /** + * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RandomSampleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - /** - * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. - * @param message ListMetadataStoresResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListMetadataStoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @param message RandomSampleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ListMetadataStoresResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this RandomSampleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ListMetadataStoresResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for RandomSampleConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a DeleteMetadataStoreRequest. */ - interface IDeleteMetadataStoreRequest { + /** Properties of a NasJob. */ + interface INasJob { - /** DeleteMetadataStoreRequest name */ + /** NasJob name */ name?: (string|null); - /** DeleteMetadataStoreRequest force */ - force?: (boolean|null); - } + /** NasJob displayName */ + displayName?: (string|null); - /** Represents a DeleteMetadataStoreRequest. */ - class DeleteMetadataStoreRequest implements IDeleteMetadataStoreRequest { + /** NasJob nasJobSpec */ + nasJobSpec?: (google.cloud.aiplatform.v1.INasJobSpec|null); - /** - * Constructs a new DeleteMetadataStoreRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest); + /** NasJob nasJobOutput */ + nasJobOutput?: (google.cloud.aiplatform.v1.INasJobOutput|null); - /** DeleteMetadataStoreRequest name. */ - public name: string; + /** NasJob state */ + state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); - /** DeleteMetadataStoreRequest force. */ - public force: boolean; + /** NasJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new DeleteMetadataStoreRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteMetadataStoreRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; + /** NasJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. - * @param message DeleteMetadataStoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** NasJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. - * @param message DeleteMetadataStoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** NasJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteMetadataStoreRequest - * @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.aiplatform.v1.DeleteMetadataStoreRequest; + /** NasJob error */ + error?: (google.rpc.IStatus|null); - /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteMetadataStoreRequest - * @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.aiplatform.v1.DeleteMetadataStoreRequest; + /** NasJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Verifies a DeleteMetadataStoreRequest 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); + /** NasJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** - * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteMetadataStoreRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; + /** NasJob enableRestrictedImageTraining */ + enableRestrictedImageTraining?: (boolean|null); + } - /** - * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. - * @param message DeleteMetadataStoreRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a NasJob. */ + class NasJob implements INasJob { /** - * Converts this DeleteMetadataStoreRequest to JSON. - * @returns JSON object + * Constructs a new NasJob. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; + constructor(properties?: google.cloud.aiplatform.v1.INasJob); - /** - * Gets the default type url for DeleteMetadataStoreRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** NasJob name. */ + public name: string; - /** Properties of a DeleteMetadataStoreOperationMetadata. */ - interface IDeleteMetadataStoreOperationMetadata { + /** NasJob displayName. */ + public displayName: string; - /** DeleteMetadataStoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } + /** NasJob nasJobSpec. */ + public nasJobSpec?: (google.cloud.aiplatform.v1.INasJobSpec|null); - /** Represents a DeleteMetadataStoreOperationMetadata. */ - class DeleteMetadataStoreOperationMetadata implements IDeleteMetadataStoreOperationMetadata { + /** NasJob nasJobOutput. */ + public nasJobOutput?: (google.cloud.aiplatform.v1.INasJobOutput|null); - /** - * Constructs a new DeleteMetadataStoreOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata); + /** NasJob state. */ + public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); - /** DeleteMetadataStoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** NasJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** NasJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** NasJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** NasJob error. */ + public error?: (google.rpc.IStatus|null); + + /** NasJob labels. */ + public labels: { [k: string]: string }; + + /** NasJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** NasJob enableRestrictedImageTraining. */ + public enableRestrictedImageTraining: boolean; /** - * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. + * Creates a new NasJob instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteMetadataStoreOperationMetadata instance + * @returns NasJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.INasJob): google.cloud.aiplatform.v1.NasJob; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a NasJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteMetadataStoreOperationMetadata + * @returns NasJob * @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.aiplatform.v1.DeleteMetadataStoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJob; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NasJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteMetadataStoreOperationMetadata + * @returns NasJob * @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.aiplatform.v1.DeleteMetadataStoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJob; /** - * Verifies a DeleteMetadataStoreOperationMetadata message. + * Verifies a NasJob 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 DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteMetadataStoreOperationMetadata + * @returns NasJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJob; /** - * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteMetadataStoreOperationMetadata + * Creates a plain object from a NasJob message. Also converts values to other types if specified. + * @param message NasJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteMetadataStoreOperationMetadata to JSON. + * Converts this NasJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteMetadataStoreOperationMetadata + * Gets the default type url for NasJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateArtifactRequest. */ - interface ICreateArtifactRequest { + /** Properties of a NasTrialDetail. */ + interface INasTrialDetail { - /** CreateArtifactRequest parent */ - parent?: (string|null); + /** NasTrialDetail name */ + name?: (string|null); - /** CreateArtifactRequest artifact */ - artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + /** NasTrialDetail parameters */ + parameters?: (string|null); - /** CreateArtifactRequest artifactId */ - artifactId?: (string|null); + /** NasTrialDetail searchTrial */ + searchTrial?: (google.cloud.aiplatform.v1.INasTrial|null); + + /** NasTrialDetail trainTrial */ + trainTrial?: (google.cloud.aiplatform.v1.INasTrial|null); } - /** Represents a CreateArtifactRequest. */ - class CreateArtifactRequest implements ICreateArtifactRequest { + /** Represents a NasTrialDetail. */ + class NasTrialDetail implements INasTrialDetail { /** - * Constructs a new CreateArtifactRequest. + * Constructs a new NasTrialDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1.INasTrialDetail); - /** CreateArtifactRequest parent. */ - public parent: string; + /** NasTrialDetail name. */ + public name: string; - /** CreateArtifactRequest artifact. */ - public artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + /** NasTrialDetail parameters. */ + public parameters: string; - /** CreateArtifactRequest artifactId. */ - public artifactId: string; + /** NasTrialDetail searchTrial. */ + public searchTrial?: (google.cloud.aiplatform.v1.INasTrial|null); + + /** NasTrialDetail trainTrial. */ + public trainTrial?: (google.cloud.aiplatform.v1.INasTrial|null); /** - * Creates a new CreateArtifactRequest instance using the specified properties. + * Creates a new NasTrialDetail instance using the specified properties. * @param [properties] Properties to set - * @returns CreateArtifactRequest instance + * @returns NasTrialDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateArtifactRequest): google.cloud.aiplatform.v1.CreateArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1.INasTrialDetail): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. - * @param message CreateArtifactRequest message or plain object to encode + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. - * @param message CreateArtifactRequest message or plain object to encode + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer. + * Decodes a NasTrialDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateArtifactRequest + * @returns NasTrialDetail * @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.aiplatform.v1.CreateArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateArtifactRequest + * @returns NasTrialDetail * @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.aiplatform.v1.CreateArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Verifies a CreateArtifactRequest message. + * Verifies a NasTrialDetail 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 CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateArtifactRequest + * @returns NasTrialDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. - * @param message CreateArtifactRequest + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. + * @param message NasTrialDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasTrialDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateArtifactRequest to JSON. + * Converts this NasTrialDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateArtifactRequest + * Gets the default type url for NasTrialDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetArtifactRequest. */ - interface IGetArtifactRequest { + /** Properties of a NasJobSpec. */ + interface INasJobSpec { - /** GetArtifactRequest name */ - name?: (string|null); + /** NasJobSpec multiTrialAlgorithmSpec */ + multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null); + + /** NasJobSpec resumeNasJobId */ + resumeNasJobId?: (string|null); + + /** NasJobSpec searchSpaceSpec */ + searchSpaceSpec?: (string|null); } - /** Represents a GetArtifactRequest. */ - class GetArtifactRequest implements IGetArtifactRequest { + /** Represents a NasJobSpec. */ + class NasJobSpec implements INasJobSpec { /** - * Constructs a new GetArtifactRequest. + * Constructs a new NasJobSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1.INasJobSpec); - /** GetArtifactRequest name. */ - public name: string; + /** NasJobSpec multiTrialAlgorithmSpec. */ + public multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null); + + /** NasJobSpec resumeNasJobId. */ + public resumeNasJobId: string; + + /** NasJobSpec searchSpaceSpec. */ + public searchSpaceSpec: string; + + /** NasJobSpec nasAlgorithmSpec. */ + public nasAlgorithmSpec?: "multiTrialAlgorithmSpec"; /** - * Creates a new GetArtifactRequest instance using the specified properties. + * Creates a new NasJobSpec instance using the specified properties. * @param [properties] Properties to set - * @returns GetArtifactRequest instance + * @returns NasJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetArtifactRequest): google.cloud.aiplatform.v1.GetArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1.INasJobSpec): google.cloud.aiplatform.v1.NasJobSpec; /** - * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. - * @param message GetArtifactRequest message or plain object to encode + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. - * @param message GetArtifactRequest message or plain object to encode + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer. + * Decodes a NasJobSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetArtifactRequest + * @returns NasJobSpec * @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.aiplatform.v1.GetArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetArtifactRequest + * @returns NasJobSpec * @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.aiplatform.v1.GetArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec; /** - * Verifies a GetArtifactRequest message. + * Verifies a NasJobSpec 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 GetArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetArtifactRequest + * @returns NasJobSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec; /** - * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. - * @param message GetArtifactRequest + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. + * @param message NasJobSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetArtifactRequest to JSON. + * Converts this NasJobSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetArtifactRequest + * Gets the default type url for NasJobSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListArtifactsRequest. */ - interface IListArtifactsRequest { - - /** ListArtifactsRequest parent */ - parent?: (string|null); + namespace NasJobSpec { - /** ListArtifactsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a MultiTrialAlgorithmSpec. */ + interface IMultiTrialAlgorithmSpec { - /** ListArtifactsRequest pageToken */ - pageToken?: (string|null); + /** MultiTrialAlgorithmSpec multiTrialAlgorithm */ + multiTrialAlgorithm?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null); - /** ListArtifactsRequest filter */ - filter?: (string|null); + /** MultiTrialAlgorithmSpec metric */ + metric?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - /** ListArtifactsRequest orderBy */ - orderBy?: (string|null); - } + /** MultiTrialAlgorithmSpec searchTrialSpec */ + searchTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - /** Represents a ListArtifactsRequest. */ - class ListArtifactsRequest implements IListArtifactsRequest { + /** MultiTrialAlgorithmSpec trainTrialSpec */ + trainTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); + } - /** - * Constructs a new ListArtifactsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListArtifactsRequest); + /** Represents a MultiTrialAlgorithmSpec. */ + class MultiTrialAlgorithmSpec implements IMultiTrialAlgorithmSpec { - /** ListArtifactsRequest parent. */ - public parent: string; + /** + * Constructs a new MultiTrialAlgorithmSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec); - /** ListArtifactsRequest pageSize. */ - public pageSize: number; + /** MultiTrialAlgorithmSpec multiTrialAlgorithm. */ + public multiTrialAlgorithm: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm); - /** ListArtifactsRequest pageToken. */ - public pageToken: string; + /** MultiTrialAlgorithmSpec metric. */ + public metric?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - /** ListArtifactsRequest filter. */ - public filter: string; + /** MultiTrialAlgorithmSpec searchTrialSpec. */ + public searchTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - /** ListArtifactsRequest orderBy. */ - public orderBy: string; + /** MultiTrialAlgorithmSpec trainTrialSpec. */ + public trainTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); - /** - * Creates a new ListArtifactsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListArtifactsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListArtifactsRequest): google.cloud.aiplatform.v1.ListArtifactsRequest; + /** + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTrialAlgorithmSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; - /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. - * @param message ListArtifactsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. - * @param message ListArtifactsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTrialAlgorithmSpec + * @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.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTrialAlgorithmSpec + * @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.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Verifies a MultiTrialAlgorithmSpec 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 MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTrialAlgorithmSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. + * @param message MultiTrialAlgorithmSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTrialAlgorithmSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTrialAlgorithmSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MultiTrialAlgorithmSpec { + + /** Properties of a MetricSpec. */ + interface IMetricSpec { + + /** MetricSpec metricId */ + metricId?: (string|null); + + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null); + } + + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { + + /** + * Constructs a new MetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec); + + /** MetricSpec metricId. */ + public metricId: string; + + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType); + + /** + * Creates a new MetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricSpec + * @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.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricSpec + * @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.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Verifies a MetricSpec 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 MetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @param message MetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MetricSpec { + + /** GoalType enum. */ + enum GoalType { + GOAL_TYPE_UNSPECIFIED = 0, + MAXIMIZE = 1, + MINIMIZE = 2 + } + } + + /** Properties of a SearchTrialSpec. */ + interface ISearchTrialSpec { + + /** SearchTrialSpec searchTrialJobSpec */ + searchTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** SearchTrialSpec maxTrialCount */ + maxTrialCount?: (number|null); + + /** SearchTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); + + /** SearchTrialSpec maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); + } + + /** Represents a SearchTrialSpec. */ + class SearchTrialSpec implements ISearchTrialSpec { + + /** + * Constructs a new SearchTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec); + + /** SearchTrialSpec searchTrialJobSpec. */ + public searchTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** SearchTrialSpec maxTrialCount. */ + public maxTrialCount: number; + + /** SearchTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; + + /** SearchTrialSpec maxFailedTrialCount. */ + public maxFailedTrialCount: number; + + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchTrialSpec + * @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.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchTrialSpec + * @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.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Verifies a SearchTrialSpec 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 SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @param message SearchTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TrainTrialSpec. */ + interface ITrainTrialSpec { + + /** TrainTrialSpec trainTrialJobSpec */ + trainTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); + + /** TrainTrialSpec frequency */ + frequency?: (number|null); + } + + /** Represents a TrainTrialSpec. */ + class TrainTrialSpec implements ITrainTrialSpec { + + /** + * Constructs a new TrainTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec); + + /** TrainTrialSpec trainTrialJobSpec. */ + public trainTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; + + /** TrainTrialSpec frequency. */ + public frequency: number; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainTrialSpec + * @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.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainTrialSpec + * @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.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Verifies a TrainTrialSpec 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 TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @param message TrainTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MultiTrialAlgorithm enum. */ + enum MultiTrialAlgorithm { + MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0, + REINFORCEMENT_LEARNING = 1, + GRID_SEARCH = 2 + } + } + } + + /** Properties of a NasJobOutput. */ + interface INasJobOutput { + + /** NasJobOutput multiTrialJobOutput */ + multiTrialJobOutput?: (google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null); + } + + /** Represents a NasJobOutput. */ + class NasJobOutput implements INasJobOutput { + + /** + * Constructs a new NasJobOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.INasJobOutput); + + /** NasJobOutput multiTrialJobOutput. */ + public multiTrialJobOutput?: (google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null); + + /** NasJobOutput output. */ + public output?: "multiTrialJobOutput"; + + /** + * Creates a new NasJobOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns NasJobOutput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.INasJobOutput): google.cloud.aiplatform.v1.NasJobOutput; + + /** + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NasJobOutput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsRequest + * @returns NasJobOutput * @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.aiplatform.v1.ListArtifactsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobOutput; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListArtifactsRequest + * @returns NasJobOutput * @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.aiplatform.v1.ListArtifactsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobOutput; /** - * Verifies a ListArtifactsRequest message. + * Verifies a NasJobOutput 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 ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListArtifactsRequest + * @returns NasJobOutput */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListArtifactsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobOutput; /** - * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. - * @param message ListArtifactsRequest + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. + * @param message NasJobOutput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListArtifactsRequest to JSON. + * Converts this NasJobOutput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListArtifactsRequest + * Gets the default type url for NasJobOutput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListArtifactsResponse. */ - interface IListArtifactsResponse { + namespace NasJobOutput { - /** ListArtifactsResponse artifacts */ - artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + /** Properties of a MultiTrialJobOutput. */ + interface IMultiTrialJobOutput { - /** ListArtifactsResponse nextPageToken */ - nextPageToken?: (string|null); + /** MultiTrialJobOutput searchTrials */ + searchTrials?: (google.cloud.aiplatform.v1.INasTrial[]|null); + + /** MultiTrialJobOutput trainTrials */ + trainTrials?: (google.cloud.aiplatform.v1.INasTrial[]|null); + } + + /** Represents a MultiTrialJobOutput. */ + class MultiTrialJobOutput implements IMultiTrialJobOutput { + + /** + * Constructs a new MultiTrialJobOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput); + + /** MultiTrialJobOutput searchTrials. */ + public searchTrials: google.cloud.aiplatform.v1.INasTrial[]; + + /** MultiTrialJobOutput trainTrials. */ + public trainTrials: google.cloud.aiplatform.v1.INasTrial[]; + + /** + * Creates a new MultiTrialJobOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTrialJobOutput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; + + /** + * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTrialJobOutput + * @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.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; + + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTrialJobOutput + * @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.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; + + /** + * Verifies a MultiTrialJobOutput 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 MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTrialJobOutput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; + + /** + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. + * @param message MultiTrialJobOutput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTrialJobOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTrialJobOutput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ListArtifactsResponse. */ - class ListArtifactsResponse implements IListArtifactsResponse { + /** Properties of a NasTrial. */ + interface INasTrial { + + /** NasTrial id */ + id?: (string|null); + + /** NasTrial state */ + state?: (google.cloud.aiplatform.v1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1.NasTrial.State|null); + + /** NasTrial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** NasTrial startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a NasTrial. */ + class NasTrial implements INasTrial { /** - * Constructs a new ListArtifactsResponse. + * Constructs a new NasTrial. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListArtifactsResponse); + constructor(properties?: google.cloud.aiplatform.v1.INasTrial); - /** ListArtifactsResponse artifacts. */ - public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + /** NasTrial id. */ + public id: string; - /** ListArtifactsResponse nextPageToken. */ - public nextPageToken: string; + /** NasTrial state. */ + public state: (google.cloud.aiplatform.v1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1.NasTrial.State); + + /** NasTrial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** NasTrial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new NasTrial instance using the specified properties. * @param [properties] Properties to set - * @returns ListArtifactsResponse instance + * @returns NasTrial instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListArtifactsResponse): google.cloud.aiplatform.v1.ListArtifactsResponse; + public static create(properties?: google.cloud.aiplatform.v1.INasTrial): google.cloud.aiplatform.v1.NasTrial; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. - * @param message ListArtifactsResponse message or plain object to encode + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. - * @param message ListArtifactsResponse message or plain object to encode + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a NasTrial message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsResponse + * @returns NasTrial * @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.aiplatform.v1.ListArtifactsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasTrial; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a NasTrial message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListArtifactsResponse + * @returns NasTrial * @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.aiplatform.v1.ListArtifactsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasTrial; /** - * Verifies a ListArtifactsResponse message. + * Verifies a NasTrial 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 ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListArtifactsResponse + * @returns NasTrial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListArtifactsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasTrial; /** - * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. - * @param message ListArtifactsResponse + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. + * @param message NasTrial * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasTrial, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListArtifactsResponse to JSON. + * Converts this NasTrial to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListArtifactsResponse + * Gets the default type url for NasTrial * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateArtifactRequest. */ - interface IUpdateArtifactRequest { + namespace NasTrial { - /** UpdateArtifactRequest artifact */ - artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } + } - /** UpdateArtifactRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a LineageSubgraph. */ + interface ILineageSubgraph { - /** UpdateArtifactRequest allowMissing */ - allowMissing?: (boolean|null); + /** LineageSubgraph artifacts */ + artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + + /** LineageSubgraph executions */ + executions?: (google.cloud.aiplatform.v1.IExecution[]|null); + + /** LineageSubgraph events */ + events?: (google.cloud.aiplatform.v1.IEvent[]|null); } - /** Represents an UpdateArtifactRequest. */ - class UpdateArtifactRequest implements IUpdateArtifactRequest { + /** Represents a LineageSubgraph. */ + class LineageSubgraph implements ILineageSubgraph { /** - * Constructs a new UpdateArtifactRequest. + * Constructs a new LineageSubgraph. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1.ILineageSubgraph); - /** UpdateArtifactRequest artifact. */ - public artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + /** LineageSubgraph artifacts. */ + public artifacts: google.cloud.aiplatform.v1.IArtifact[]; - /** UpdateArtifactRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** LineageSubgraph executions. */ + public executions: google.cloud.aiplatform.v1.IExecution[]; - /** UpdateArtifactRequest allowMissing. */ - public allowMissing: boolean; + /** LineageSubgraph events. */ + public events: google.cloud.aiplatform.v1.IEvent[]; /** - * Creates a new UpdateArtifactRequest instance using the specified properties. + * Creates a new LineageSubgraph instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateArtifactRequest instance + * @returns LineageSubgraph instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateArtifactRequest): google.cloud.aiplatform.v1.UpdateArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1.ILineageSubgraph): google.cloud.aiplatform.v1.LineageSubgraph; /** - * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. - * @param message UpdateArtifactRequest message or plain object to encode + * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * @param message LineageSubgraph message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. - * @param message UpdateArtifactRequest message or plain object to encode + * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * @param message LineageSubgraph message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * Decodes a LineageSubgraph message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateArtifactRequest + * @returns LineageSubgraph * @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.aiplatform.v1.UpdateArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.LineageSubgraph; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateArtifactRequest + * @returns LineageSubgraph * @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.aiplatform.v1.UpdateArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.LineageSubgraph; /** - * Verifies an UpdateArtifactRequest message. + * Verifies a LineageSubgraph 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 an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateArtifactRequest + * @returns LineageSubgraph */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LineageSubgraph; /** - * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. - * @param message UpdateArtifactRequest + * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. + * @param message LineageSubgraph * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.LineageSubgraph, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateArtifactRequest to JSON. + * Converts this LineageSubgraph to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateArtifactRequest + * Gets the default type url for LineageSubgraph * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteArtifactRequest. */ - interface IDeleteArtifactRequest { + /** Properties of a MetadataSchema. */ + interface IMetadataSchema { - /** DeleteArtifactRequest name */ + /** MetadataSchema name */ name?: (string|null); - /** DeleteArtifactRequest etag */ - etag?: (string|null); + /** MetadataSchema schemaVersion */ + schemaVersion?: (string|null); + + /** MetadataSchema schema */ + schema?: (string|null); + + /** MetadataSchema schemaType */ + schemaType?: (google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|null); + + /** MetadataSchema createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataSchema description */ + description?: (string|null); } - /** Represents a DeleteArtifactRequest. */ - class DeleteArtifactRequest implements IDeleteArtifactRequest { + /** Represents a MetadataSchema. */ + class MetadataSchema implements IMetadataSchema { /** - * Constructs a new DeleteArtifactRequest. + * Constructs a new MetadataSchema. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1.IMetadataSchema); - /** DeleteArtifactRequest name. */ + /** MetadataSchema name. */ public name: string; - /** DeleteArtifactRequest etag. */ - public etag: string; + /** MetadataSchema schemaVersion. */ + public schemaVersion: string; + + /** MetadataSchema schema. */ + public schema: string; + + /** MetadataSchema schemaType. */ + public schemaType: (google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType); + + /** MetadataSchema createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataSchema description. */ + public description: string; /** - * Creates a new DeleteArtifactRequest instance using the specified properties. + * Creates a new MetadataSchema instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteArtifactRequest instance + * @returns MetadataSchema instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteArtifactRequest): google.cloud.aiplatform.v1.DeleteArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1.IMetadataSchema): google.cloud.aiplatform.v1.MetadataSchema; /** - * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. - * @param message DeleteArtifactRequest message or plain object to encode + * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. + * @param message MetadataSchema message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. - * @param message DeleteArtifactRequest message or plain object to encode + * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. + * @param message MetadataSchema message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer. + * Decodes a MetadataSchema message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteArtifactRequest + * @returns MetadataSchema * @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.aiplatform.v1.DeleteArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MetadataSchema; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteArtifactRequest + * @returns MetadataSchema * @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.aiplatform.v1.DeleteArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MetadataSchema; /** - * Verifies a DeleteArtifactRequest message. + * Verifies a MetadataSchema 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 DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteArtifactRequest + * @returns MetadataSchema */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataSchema; /** - * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. - * @param message DeleteArtifactRequest + * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. + * @param message MetadataSchema * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MetadataSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteArtifactRequest to JSON. + * Converts this MetadataSchema to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteArtifactRequest + * Gets the default type url for MetadataSchema * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeArtifactsRequest. */ - interface IPurgeArtifactsRequest { - - /** PurgeArtifactsRequest parent */ - parent?: (string|null); - - /** PurgeArtifactsRequest filter */ - filter?: (string|null); + namespace MetadataSchema { - /** PurgeArtifactsRequest force */ - force?: (boolean|null); + /** MetadataSchemaType enum. */ + enum MetadataSchemaType { + METADATA_SCHEMA_TYPE_UNSPECIFIED = 0, + ARTIFACT_TYPE = 1, + EXECUTION_TYPE = 2, + CONTEXT_TYPE = 3 + } } - /** Represents a PurgeArtifactsRequest. */ - class PurgeArtifactsRequest implements IPurgeArtifactsRequest { + /** Represents a MetadataService */ + class MetadataService extends $protobuf.rpc.Service { /** - * Constructs a new PurgeArtifactsRequest. - * @param [properties] Properties to set + * Constructs a new MetadataService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsRequest); - - /** PurgeArtifactsRequest parent. */ - public parent: string; - - /** PurgeArtifactsRequest filter. */ - public filter: string; - - /** PurgeArtifactsRequest force. */ - public force: boolean; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new PurgeArtifactsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PurgeArtifactsRequest instance + * Creates new MetadataService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsRequest): google.cloud.aiplatform.v1.PurgeArtifactsRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MetadataService; /** - * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. - * @param message PurgeArtifactsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateMetadataStore. + * @param request CreateMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createMetadataStore(request: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateMetadataStoreCallback): void; /** - * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. - * @param message PurgeArtifactsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateMetadataStore. + * @param request CreateMetadataStoreRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createMetadataStore(request: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest): Promise; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurgeArtifactsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataStore. + * @param request GetMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataStore */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsRequest; + public getMetadataStore(request: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetMetadataStoreCallback): void; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataStore. + * @param request GetMetadataStoreRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsRequest; + public getMetadataStore(request: google.cloud.aiplatform.v1.IGetMetadataStoreRequest): Promise; /** - * Verifies a PurgeArtifactsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListMetadataStores. + * @param request ListMetadataStoresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMetadataStoresResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listMetadataStores(request: google.cloud.aiplatform.v1.IListMetadataStoresRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListMetadataStoresCallback): void; /** - * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurgeArtifactsRequest + * Calls ListMetadataStores. + * @param request ListMetadataStoresRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsRequest; + public listMetadataStores(request: google.cloud.aiplatform.v1.IListMetadataStoresRequest): Promise; /** - * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. - * @param message PurgeArtifactsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteMetadataStore. + * @param request DeleteMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteMetadataStore(request: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStoreCallback): void; /** - * Converts this PurgeArtifactsRequest to JSON. - * @returns JSON object + * Calls DeleteMetadataStore. + * @param request DeleteMetadataStoreRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public deleteMetadataStore(request: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest): Promise; /** - * Gets the default type url for PurgeArtifactsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateArtifact. + * @param request CreateArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PurgeArtifactsResponse. */ - interface IPurgeArtifactsResponse { - - /** PurgeArtifactsResponse purgeCount */ - purgeCount?: (number|Long|string|null); - - /** PurgeArtifactsResponse purgeSample */ - purgeSample?: (string[]|null); - } - - /** Represents a PurgeArtifactsResponse. */ - class PurgeArtifactsResponse implements IPurgeArtifactsResponse { + public createArtifact(request: google.cloud.aiplatform.v1.ICreateArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateArtifactCallback): void; /** - * Constructs a new PurgeArtifactsResponse. - * @param [properties] Properties to set + * Calls CreateArtifact. + * @param request CreateArtifactRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsResponse); - - /** PurgeArtifactsResponse purgeCount. */ - public purgeCount: (number|Long|string); - - /** PurgeArtifactsResponse purgeSample. */ - public purgeSample: string[]; + public createArtifact(request: google.cloud.aiplatform.v1.ICreateArtifactRequest): Promise; /** - * Creates a new PurgeArtifactsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PurgeArtifactsResponse instance + * Calls GetArtifact. + * @param request GetArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsResponse): google.cloud.aiplatform.v1.PurgeArtifactsResponse; + public getArtifact(request: google.cloud.aiplatform.v1.IGetArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetArtifactCallback): void; /** - * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. - * @param message PurgeArtifactsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetArtifact. + * @param request GetArtifactRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public getArtifact(request: google.cloud.aiplatform.v1.IGetArtifactRequest): Promise; /** - * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. - * @param message PurgeArtifactsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListArtifacts. + * @param request ListArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListArtifactsResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listArtifacts(request: google.cloud.aiplatform.v1.IListArtifactsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListArtifactsCallback): void; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurgeArtifactsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListArtifacts. + * @param request ListArtifactsRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsResponse; + public listArtifacts(request: google.cloud.aiplatform.v1.IListArtifactsRequest): Promise; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateArtifact. + * @param request UpdateArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsResponse; + public updateArtifact(request: google.cloud.aiplatform.v1.IUpdateArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateArtifactCallback): void; /** - * Verifies a PurgeArtifactsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateArtifact. + * @param request UpdateArtifactRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public updateArtifact(request: google.cloud.aiplatform.v1.IUpdateArtifactRequest): Promise; /** - * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurgeArtifactsResponse + * Calls DeleteArtifact. + * @param request DeleteArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsResponse; + public deleteArtifact(request: google.cloud.aiplatform.v1.IDeleteArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteArtifactCallback): void; /** - * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. - * @param message PurgeArtifactsResponse - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteArtifact. + * @param request DeleteArtifactRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteArtifact(request: google.cloud.aiplatform.v1.IDeleteArtifactRequest): Promise; /** - * Converts this PurgeArtifactsResponse to JSON. - * @returns JSON object + * Calls PurgeArtifacts. + * @param request PurgeArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; + public purgeArtifacts(request: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeArtifactsCallback): void; /** - * Gets the default type url for PurgeArtifactsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls PurgeArtifacts. + * @param request PurgeArtifactsRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PurgeArtifactsMetadata. */ - interface IPurgeArtifactsMetadata { - - /** PurgeArtifactsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } - - /** Represents a PurgeArtifactsMetadata. */ - class PurgeArtifactsMetadata implements IPurgeArtifactsMetadata { + public purgeArtifacts(request: google.cloud.aiplatform.v1.IPurgeArtifactsRequest): Promise; /** - * Constructs a new PurgeArtifactsMetadata. - * @param [properties] Properties to set + * Calls CreateContext. + * @param request CreateContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata); - - /** PurgeArtifactsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + public createContext(request: google.cloud.aiplatform.v1.ICreateContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateContextCallback): void; /** - * Creates a new PurgeArtifactsMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns PurgeArtifactsMetadata instance + * Calls CreateContext. + * @param request CreateContextRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; + public createContext(request: google.cloud.aiplatform.v1.ICreateContextRequest): Promise; /** - * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. - * @param message PurgeArtifactsMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetContext. + * @param request GetContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public getContext(request: google.cloud.aiplatform.v1.IGetContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetContextCallback): void; /** - * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. - * @param message PurgeArtifactsMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetContext. + * @param request GetContextRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public getContext(request: google.cloud.aiplatform.v1.IGetContextRequest): Promise; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurgeArtifactsMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListContexts. + * @param request ListContextsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListContextsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; + public listContexts(request: google.cloud.aiplatform.v1.IListContextsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListContextsCallback): void; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListContexts. + * @param request ListContextsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; + public listContexts(request: google.cloud.aiplatform.v1.IListContextsRequest): Promise; /** - * Verifies a PurgeArtifactsMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateContext. + * @param request UpdateContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static verify(message: { [k: string]: any }): (string|null); + public updateContext(request: google.cloud.aiplatform.v1.IUpdateContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateContextCallback): void; /** - * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurgeArtifactsMetadata + * Calls UpdateContext. + * @param request UpdateContextRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; + public updateContext(request: google.cloud.aiplatform.v1.IUpdateContextRequest): Promise; /** - * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. - * @param message PurgeArtifactsMetadata - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteContext. + * @param request DeleteContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteContext(request: google.cloud.aiplatform.v1.IDeleteContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteContextCallback): void; /** - * Converts this PurgeArtifactsMetadata to JSON. - * @returns JSON object + * Calls DeleteContext. + * @param request DeleteContextRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public deleteContext(request: google.cloud.aiplatform.v1.IDeleteContextRequest): Promise; /** - * Gets the default type url for PurgeArtifactsMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls PurgeContexts. + * @param request PurgeContextsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateContextRequest. */ - interface ICreateContextRequest { - - /** CreateContextRequest parent */ - parent?: (string|null); - - /** CreateContextRequest context */ - context?: (google.cloud.aiplatform.v1.IContext|null); - - /** CreateContextRequest contextId */ - contextId?: (string|null); - } - - /** Represents a CreateContextRequest. */ - class CreateContextRequest implements ICreateContextRequest { + public purgeContexts(request: google.cloud.aiplatform.v1.IPurgeContextsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeContextsCallback): void; /** - * Constructs a new CreateContextRequest. - * @param [properties] Properties to set + * Calls PurgeContexts. + * @param request PurgeContextsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateContextRequest); - - /** CreateContextRequest parent. */ - public parent: string; - - /** CreateContextRequest context. */ - public context?: (google.cloud.aiplatform.v1.IContext|null); - - /** CreateContextRequest contextId. */ - public contextId: string; + public purgeContexts(request: google.cloud.aiplatform.v1.IPurgeContextsRequest): Promise; /** - * Creates a new CreateContextRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateContextRequest instance + * Calls AddContextArtifactsAndExecutions. + * @param request AddContextArtifactsAndExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateContextRequest): google.cloud.aiplatform.v1.CreateContextRequest; + public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutionsCallback): void; /** - * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. - * @param message CreateContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls AddContextArtifactsAndExecutions. + * @param request AddContextArtifactsAndExecutionsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest): Promise; /** - * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. - * @param message CreateContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls AddContextChildren. + * @param request AddContextChildrenRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddContextChildrenResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public addContextChildren(request: google.cloud.aiplatform.v1.IAddContextChildrenRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddContextChildrenCallback): void; /** - * Decodes a CreateContextRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls AddContextChildren. + * @param request AddContextChildrenRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateContextRequest; + public addContextChildren(request: google.cloud.aiplatform.v1.IAddContextChildrenRequest): Promise; /** - * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateContextRequest; + public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, callback: google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback): void; /** - * Verifies a CreateContextRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): Promise; /** - * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateContextRequest + * Calls QueryContextLineageSubgraph. + * @param request QueryContextLineageSubgraphRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateContextRequest; + public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraphCallback): void; /** - * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. - * @param message CreateContextRequest - * @param [options] Conversion options - * @returns Plain object + * Calls QueryContextLineageSubgraph. + * @param request QueryContextLineageSubgraphRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.CreateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest): Promise; /** - * Converts this CreateContextRequest to JSON. - * @returns JSON object + * Calls CreateExecution. + * @param request CreateExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - public toJSON(): { [k: string]: any }; + public createExecution(request: google.cloud.aiplatform.v1.ICreateExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateExecutionCallback): void; /** - * Gets the default type url for CreateContextRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateExecution. + * @param request CreateExecutionRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetContextRequest. */ - interface IGetContextRequest { - - /** GetContextRequest name */ - name?: (string|null); - } - - /** Represents a GetContextRequest. */ - class GetContextRequest implements IGetContextRequest { + public createExecution(request: google.cloud.aiplatform.v1.ICreateExecutionRequest): Promise; /** - * Constructs a new GetContextRequest. - * @param [properties] Properties to set + * Calls GetExecution. + * @param request GetExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - constructor(properties?: google.cloud.aiplatform.v1.IGetContextRequest); - - /** GetContextRequest name. */ - public name: string; + public getExecution(request: google.cloud.aiplatform.v1.IGetExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetExecutionCallback): void; /** - * Creates a new GetContextRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetContextRequest instance + * Calls GetExecution. + * @param request GetExecutionRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1.IGetContextRequest): google.cloud.aiplatform.v1.GetContextRequest; + public getExecution(request: google.cloud.aiplatform.v1.IGetExecutionRequest): Promise; /** - * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. - * @param message GetContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListExecutions. + * @param request ListExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse */ - public static encode(message: google.cloud.aiplatform.v1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listExecutions(request: google.cloud.aiplatform.v1.IListExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListExecutionsCallback): void; /** - * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. - * @param message GetContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListExecutions. + * @param request ListExecutionsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listExecutions(request: google.cloud.aiplatform.v1.IListExecutionsRequest): Promise; /** - * Decodes a GetContextRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateExecution. + * @param request UpdateExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetContextRequest; + public updateExecution(request: google.cloud.aiplatform.v1.IUpdateExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateExecutionCallback): void; /** - * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateExecution. + * @param request UpdateExecutionRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetContextRequest; + public updateExecution(request: google.cloud.aiplatform.v1.IUpdateExecutionRequest): Promise; /** - * Verifies a GetContextRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteExecution. + * @param request DeleteExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteExecution(request: google.cloud.aiplatform.v1.IDeleteExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteExecutionCallback): void; /** - * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetContextRequest + * Calls DeleteExecution. + * @param request DeleteExecutionRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetContextRequest; + public deleteExecution(request: google.cloud.aiplatform.v1.IDeleteExecutionRequest): Promise; /** - * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. - * @param message GetContextRequest - * @param [options] Conversion options - * @returns Plain object + * Calls PurgeExecutions. + * @param request PurgeExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.GetContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public purgeExecutions(request: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeExecutionsCallback): void; /** - * Converts this GetContextRequest to JSON. - * @returns JSON object + * Calls PurgeExecutions. + * @param request PurgeExecutionsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public purgeExecutions(request: google.cloud.aiplatform.v1.IPurgeExecutionsRequest): Promise; /** - * Gets the default type url for GetContextRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls AddExecutionEvents. + * @param request AddExecutionEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddExecutionEventsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListContextsRequest. */ - interface IListContextsRequest { - - /** ListContextsRequest parent */ - parent?: (string|null); - - /** ListContextsRequest pageSize */ - pageSize?: (number|null); - - /** ListContextsRequest pageToken */ - pageToken?: (string|null); - - /** ListContextsRequest filter */ - filter?: (string|null); - - /** ListContextsRequest orderBy */ - orderBy?: (string|null); - } - - /** Represents a ListContextsRequest. */ - class ListContextsRequest implements IListContextsRequest { + public addExecutionEvents(request: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddExecutionEventsCallback): void; /** - * Constructs a new ListContextsRequest. - * @param [properties] Properties to set + * Calls AddExecutionEvents. + * @param request AddExecutionEventsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IListContextsRequest); - - /** ListContextsRequest parent. */ - public parent: string; - - /** ListContextsRequest pageSize. */ - public pageSize: number; - - /** ListContextsRequest pageToken. */ - public pageToken: string; - - /** ListContextsRequest filter. */ - public filter: string; - - /** ListContextsRequest orderBy. */ - public orderBy: string; + public addExecutionEvents(request: google.cloud.aiplatform.v1.IAddExecutionEventsRequest): Promise; /** - * Creates a new ListContextsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListContextsRequest instance + * Calls QueryExecutionInputsAndOutputs. + * @param request QueryExecutionInputsAndOutputsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public static create(properties?: google.cloud.aiplatform.v1.IListContextsRequest): google.cloud.aiplatform.v1.ListContextsRequest; + public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputsCallback): void; /** - * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. - * @param message ListContextsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls QueryExecutionInputsAndOutputs. + * @param request QueryExecutionInputsAndOutputsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest): Promise; /** - * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. - * @param message ListContextsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateMetadataSchema. + * @param request CreateMetadataSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataSchema */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createMetadataSchema(request: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchemaCallback): void; /** - * Decodes a ListContextsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListContextsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateMetadataSchema. + * @param request CreateMetadataSchemaRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListContextsRequest; + public createMetadataSchema(request: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest): Promise; /** - * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListContextsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataSchema. + * @param request GetMetadataSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataSchema */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListContextsRequest; + public getMetadataSchema(request: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetMetadataSchemaCallback): void; /** - * Verifies a ListContextsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetMetadataSchema. + * @param request GetMetadataSchemaRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getMetadataSchema(request: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest): Promise; /** - * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListContextsRequest + * Calls ListMetadataSchemas. + * @param request ListMetadataSchemasRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListContextsRequest; + public listMetadataSchemas(request: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemasCallback): void; /** - * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. - * @param message ListContextsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ListMetadataSchemas. + * @param request ListMetadataSchemasRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ListContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listMetadataSchemas(request: google.cloud.aiplatform.v1.IListMetadataSchemasRequest): Promise; /** - * Converts this ListContextsRequest to JSON. - * @returns JSON object + * Calls QueryArtifactLineageSubgraph. + * @param request QueryArtifactLineageSubgraphRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public toJSON(): { [k: string]: any }; + public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraphCallback): void; /** - * Gets the default type url for ListContextsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls QueryArtifactLineageSubgraph. + * @param request QueryArtifactLineageSubgraphRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListContextsResponse. */ - interface IListContextsResponse { - - /** ListContextsResponse contexts */ - contexts?: (google.cloud.aiplatform.v1.IContext[]|null); - - /** ListContextsResponse nextPageToken */ - nextPageToken?: (string|null); + public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest): Promise; } - /** Represents a ListContextsResponse. */ - class ListContextsResponse implements IListContextsResponse { + namespace MetadataService { /** - * Constructs a new ListContextsResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataStore}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1.IListContextsResponse); - - /** ListContextsResponse contexts. */ - public contexts: google.cloud.aiplatform.v1.IContext[]; - - /** ListContextsResponse nextPageToken. */ - public nextPageToken: string; + type CreateMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a new ListContextsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListContextsResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataStore}. + * @param error Error, if any + * @param [response] MetadataStore */ - public static create(properties?: google.cloud.aiplatform.v1.IListContextsResponse): google.cloud.aiplatform.v1.ListContextsResponse; + type GetMetadataStoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataStore) => void; /** - * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. - * @param message ListContextsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataStores}. + * @param error Error, if any + * @param [response] ListMetadataStoresResponse */ - public static encode(message: google.cloud.aiplatform.v1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type ListMetadataStoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListMetadataStoresResponse) => void; /** - * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. - * @param message ListContextsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteMetadataStore}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a ListContextsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListContextsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListContextsResponse; + type CreateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; /** - * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListContextsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListContextsResponse; + type GetArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; /** - * Verifies a ListContextsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listArtifacts}. + * @param error Error, if any + * @param [response] ListArtifactsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListArtifactsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListArtifactsResponse) => void; /** - * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListContextsResponse + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListContextsResponse; + type UpdateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; /** - * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. - * @param message ListContextsResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteArtifact}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1.ListContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteArtifactCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListContextsResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeArtifacts}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type PurgeArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for ListContextsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createContext}. + * @param error Error, if any + * @param [response] Context */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateContextRequest. */ - interface IUpdateContextRequest { - - /** UpdateContextRequest context */ - context?: (google.cloud.aiplatform.v1.IContext|null); - - /** UpdateContextRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - - /** UpdateContextRequest allowMissing */ - allowMissing?: (boolean|null); - } - - /** Represents an UpdateContextRequest. */ - class UpdateContextRequest implements IUpdateContextRequest { + type CreateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; /** - * Constructs a new UpdateContextRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getContext}. + * @param error Error, if any + * @param [response] Context */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateContextRequest); - - /** UpdateContextRequest context. */ - public context?: (google.cloud.aiplatform.v1.IContext|null); - - /** UpdateContextRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** UpdateContextRequest allowMissing. */ - public allowMissing: boolean; + type GetContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; /** - * Creates a new UpdateContextRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateContextRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listContexts}. + * @param error Error, if any + * @param [response] ListContextsResponse */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateContextRequest): google.cloud.aiplatform.v1.UpdateContextRequest; + type ListContextsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListContextsResponse) => void; /** - * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. - * @param message UpdateContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateContext}. + * @param error Error, if any + * @param [response] Context */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; /** - * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. - * @param message UpdateContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteContext}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteContextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeContexts}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateContextRequest; + type PurgeContextsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextArtifactsAndExecutions}. + * @param error Error, if any + * @param [response] AddContextArtifactsAndExecutionsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateContextRequest; + type AddContextArtifactsAndExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse) => void; /** - * Verifies an UpdateContextRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextChildren}. + * @param error Error, if any + * @param [response] AddContextChildrenResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddContextChildrenResponse) => void; /** - * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateContextRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. + * @param error Error, if any + * @param [response] RemoveContextChildrenResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateContextRequest; + type RemoveContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.RemoveContextChildrenResponse) => void; /** - * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. - * @param message UpdateContextRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type QueryContextLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; /** - * Converts this UpdateContextRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createExecution}. + * @param error Error, if any + * @param [response] Execution */ - public toJSON(): { [k: string]: any }; + type CreateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; /** - * Gets the default type url for UpdateContextRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteContextRequest. */ - interface IDeleteContextRequest { - - /** DeleteContextRequest name */ - name?: (string|null); - - /** DeleteContextRequest force */ - force?: (boolean|null); - - /** DeleteContextRequest etag */ - etag?: (string|null); - } - - /** Represents a DeleteContextRequest. */ - class DeleteContextRequest implements IDeleteContextRequest { - - /** - * Constructs a new DeleteContextRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getExecution}. + * @param error Error, if any + * @param [response] Execution */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteContextRequest); - - /** DeleteContextRequest name. */ - public name: string; - - /** DeleteContextRequest force. */ - public force: boolean; - - /** DeleteContextRequest etag. */ - public etag: string; + type GetExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; /** - * Creates a new DeleteContextRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteContextRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listExecutions}. + * @param error Error, if any + * @param [response] ListExecutionsResponse */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteContextRequest): google.cloud.aiplatform.v1.DeleteContextRequest; + type ListExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListExecutionsResponse) => void; /** - * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. - * @param message DeleteContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateExecution}. + * @param error Error, if any + * @param [response] Execution */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; /** - * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. - * @param message DeleteContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteExecution}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteExecutionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeExecutions}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteContextRequest; + type PurgeExecutionsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addExecutionEvents}. + * @param error Error, if any + * @param [response] AddExecutionEventsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteContextRequest; + type AddExecutionEventsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddExecutionEventsResponse) => void; /** - * Verifies a DeleteContextRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryExecutionInputsAndOutputs}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public static verify(message: { [k: string]: any }): (string|null); + type QueryExecutionInputsAndOutputsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; /** - * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteContextRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataSchema}. + * @param error Error, if any + * @param [response] MetadataSchema */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteContextRequest; + type CreateMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataSchema) => void; /** - * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. - * @param message DeleteContextRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataSchema}. + * @param error Error, if any + * @param [response] MetadataSchema */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataSchema) => void; /** - * Converts this DeleteContextRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataSchemas}. + * @param error Error, if any + * @param [response] ListMetadataSchemasResponse */ - public toJSON(): { [k: string]: any }; + type ListMetadataSchemasCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListMetadataSchemasResponse) => void; /** - * Gets the default type url for DeleteContextRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryArtifactLineageSubgraph}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type QueryArtifactLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; } - /** Properties of a PurgeContextsRequest. */ - interface IPurgeContextsRequest { + /** Properties of a CreateMetadataStoreRequest. */ + interface ICreateMetadataStoreRequest { - /** PurgeContextsRequest parent */ + /** CreateMetadataStoreRequest parent */ parent?: (string|null); - /** PurgeContextsRequest filter */ - filter?: (string|null); + /** CreateMetadataStoreRequest metadataStore */ + metadataStore?: (google.cloud.aiplatform.v1.IMetadataStore|null); - /** PurgeContextsRequest force */ - force?: (boolean|null); + /** CreateMetadataStoreRequest metadataStoreId */ + metadataStoreId?: (string|null); } - /** Represents a PurgeContextsRequest. */ - class PurgeContextsRequest implements IPurgeContextsRequest { + /** Represents a CreateMetadataStoreRequest. */ + class CreateMetadataStoreRequest implements ICreateMetadataStoreRequest { /** - * Constructs a new PurgeContextsRequest. + * Constructs a new CreateMetadataStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest); - /** PurgeContextsRequest parent. */ + /** CreateMetadataStoreRequest parent. */ public parent: string; - /** PurgeContextsRequest filter. */ - public filter: string; + /** CreateMetadataStoreRequest metadataStore. */ + public metadataStore?: (google.cloud.aiplatform.v1.IMetadataStore|null); - /** PurgeContextsRequest force. */ - public force: boolean; + /** CreateMetadataStoreRequest metadataStoreId. */ + public metadataStoreId: string; /** - * Creates a new PurgeContextsRequest instance using the specified properties. + * Creates a new CreateMetadataStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsRequest instance + * @returns CreateMetadataStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsRequest): google.cloud.aiplatform.v1.PurgeContextsRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; /** - * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. - * @param message PurgeContextsRequest message or plain object to encode + * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. + * @param message CreateMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. - * @param message PurgeContextsRequest message or plain object to encode + * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. + * @param message CreateMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsRequest + * @returns CreateMetadataStoreRequest * @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.aiplatform.v1.PurgeContextsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsRequest + * @returns CreateMetadataStoreRequest * @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.aiplatform.v1.PurgeContextsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; /** - * Verifies a PurgeContextsRequest message. + * Verifies a CreateMetadataStoreRequest 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 PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsRequest + * @returns CreateMetadataStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; /** - * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. - * @param message PurgeContextsRequest + * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. + * @param message CreateMetadataStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsRequest to JSON. + * Converts this CreateMetadataStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeContextsRequest + * Gets the default type url for CreateMetadataStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeContextsResponse. */ - interface IPurgeContextsResponse { - - /** PurgeContextsResponse purgeCount */ - purgeCount?: (number|Long|string|null); + /** Properties of a CreateMetadataStoreOperationMetadata. */ + interface ICreateMetadataStoreOperationMetadata { - /** PurgeContextsResponse purgeSample */ - purgeSample?: (string[]|null); + /** CreateMetadataStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a PurgeContextsResponse. */ - class PurgeContextsResponse implements IPurgeContextsResponse { + /** Represents a CreateMetadataStoreOperationMetadata. */ + class CreateMetadataStoreOperationMetadata implements ICreateMetadataStoreOperationMetadata { /** - * Constructs a new PurgeContextsResponse. + * Constructs a new CreateMetadataStoreOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsResponse); - - /** PurgeContextsResponse purgeCount. */ - public purgeCount: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata); - /** PurgeContextsResponse purgeSample. */ - public purgeSample: string[]; + /** CreateMetadataStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new PurgeContextsResponse instance using the specified properties. + * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsResponse instance + * @returns CreateMetadataStoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsResponse): google.cloud.aiplatform.v1.PurgeContextsResponse; + public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; /** - * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. - * @param message PurgeContextsResponse message or plain object to encode + * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * @param message CreateMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. - * @param message PurgeContextsResponse message or plain object to encode + * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * @param message CreateMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsResponse + * @returns CreateMetadataStoreOperationMetadata * @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.aiplatform.v1.PurgeContextsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsResponse + * @returns CreateMetadataStoreOperationMetadata * @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.aiplatform.v1.PurgeContextsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; /** - * Verifies a PurgeContextsResponse message. + * Verifies a CreateMetadataStoreOperationMetadata 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 PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsResponse + * @returns CreateMetadataStoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; /** - * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. - * @param message PurgeContextsResponse + * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * @param message CreateMetadataStoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsResponse to JSON. + * Converts this CreateMetadataStoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeContextsResponse + * Gets the default type url for CreateMetadataStoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeContextsMetadata. */ - interface IPurgeContextsMetadata { + /** Properties of a GetMetadataStoreRequest. */ + interface IGetMetadataStoreRequest { - /** PurgeContextsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** GetMetadataStoreRequest name */ + name?: (string|null); } - /** Represents a PurgeContextsMetadata. */ - class PurgeContextsMetadata implements IPurgeContextsMetadata { + /** Represents a GetMetadataStoreRequest. */ + class GetMetadataStoreRequest implements IGetMetadataStoreRequest { /** - * Constructs a new PurgeContextsMetadata. + * Constructs a new GetMetadataStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IGetMetadataStoreRequest); - /** PurgeContextsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** GetMetadataStoreRequest name. */ + public name: string; /** - * Creates a new PurgeContextsMetadata instance using the specified properties. + * Creates a new GetMetadataStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsMetadata instance + * @returns GetMetadataStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsMetadata): google.cloud.aiplatform.v1.PurgeContextsMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IGetMetadataStoreRequest): google.cloud.aiplatform.v1.GetMetadataStoreRequest; /** - * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. - * @param message PurgeContextsMetadata message or plain object to encode + * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. + * @param message GetMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. - * @param message PurgeContextsMetadata message or plain object to encode + * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. + * @param message GetMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsMetadata + * @returns GetMetadataStoreRequest * @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.aiplatform.v1.PurgeContextsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetMetadataStoreRequest; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsMetadata + * @returns GetMetadataStoreRequest * @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.aiplatform.v1.PurgeContextsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetMetadataStoreRequest; /** - * Verifies a PurgeContextsMetadata message. + * Verifies a GetMetadataStoreRequest 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 PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsMetadata + * @returns GetMetadataStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetMetadataStoreRequest; /** - * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. - * @param message PurgeContextsMetadata + * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. + * @param message GetMetadataStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsMetadata to JSON. + * Converts this GetMetadataStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeContextsMetadata + * Gets the default type url for GetMetadataStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextArtifactsAndExecutionsRequest. */ - interface IAddContextArtifactsAndExecutionsRequest { + /** Properties of a ListMetadataStoresRequest. */ + interface IListMetadataStoresRequest { - /** AddContextArtifactsAndExecutionsRequest context */ - context?: (string|null); + /** ListMetadataStoresRequest parent */ + parent?: (string|null); - /** AddContextArtifactsAndExecutionsRequest artifacts */ - artifacts?: (string[]|null); + /** ListMetadataStoresRequest pageSize */ + pageSize?: (number|null); - /** AddContextArtifactsAndExecutionsRequest executions */ - executions?: (string[]|null); + /** ListMetadataStoresRequest pageToken */ + pageToken?: (string|null); } - /** Represents an AddContextArtifactsAndExecutionsRequest. */ - class AddContextArtifactsAndExecutionsRequest implements IAddContextArtifactsAndExecutionsRequest { + /** Represents a ListMetadataStoresRequest. */ + class ListMetadataStoresRequest implements IListMetadataStoresRequest { /** - * Constructs a new AddContextArtifactsAndExecutionsRequest. + * Constructs a new ListMetadataStoresRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListMetadataStoresRequest); - /** AddContextArtifactsAndExecutionsRequest context. */ - public context: string; + /** ListMetadataStoresRequest parent. */ + public parent: string; - /** AddContextArtifactsAndExecutionsRequest artifacts. */ - public artifacts: string[]; + /** ListMetadataStoresRequest pageSize. */ + public pageSize: number; - /** AddContextArtifactsAndExecutionsRequest executions. */ - public executions: string[]; + /** ListMetadataStoresRequest pageToken. */ + public pageToken: string; /** - * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. + * Creates a new ListMetadataStoresRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextArtifactsAndExecutionsRequest instance + * @returns ListMetadataStoresRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListMetadataStoresRequest): google.cloud.aiplatform.v1.ListMetadataStoresRequest; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. + * @param message ListMetadataStoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. + * @param message ListMetadataStoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextArtifactsAndExecutionsRequest + * @returns ListMetadataStoresRequest * @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.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListMetadataStoresRequest; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextArtifactsAndExecutionsRequest + * @returns ListMetadataStoresRequest * @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.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListMetadataStoresRequest; /** - * Verifies an AddContextArtifactsAndExecutionsRequest message. + * Verifies a ListMetadataStoresRequest 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 an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextArtifactsAndExecutionsRequest + * @returns ListMetadataStoresRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataStoresRequest; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. - * @param message AddContextArtifactsAndExecutionsRequest + * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. + * @param message ListMetadataStoresRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListMetadataStoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextArtifactsAndExecutionsRequest to JSON. + * Converts this ListMetadataStoresRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsRequest + * Gets the default type url for ListMetadataStoresRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextArtifactsAndExecutionsResponse. */ - interface IAddContextArtifactsAndExecutionsResponse { + /** Properties of a ListMetadataStoresResponse. */ + interface IListMetadataStoresResponse { + + /** ListMetadataStoresResponse metadataStores */ + metadataStores?: (google.cloud.aiplatform.v1.IMetadataStore[]|null); + + /** ListMetadataStoresResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an AddContextArtifactsAndExecutionsResponse. */ - class AddContextArtifactsAndExecutionsResponse implements IAddContextArtifactsAndExecutionsResponse { + /** Represents a ListMetadataStoresResponse. */ + class ListMetadataStoresResponse implements IListMetadataStoresResponse { /** - * Constructs a new AddContextArtifactsAndExecutionsResponse. + * Constructs a new ListMetadataStoresResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListMetadataStoresResponse); + + /** ListMetadataStoresResponse metadataStores. */ + public metadataStores: google.cloud.aiplatform.v1.IMetadataStore[]; + + /** ListMetadataStoresResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. + * Creates a new ListMetadataStoresResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextArtifactsAndExecutionsResponse instance + * @returns ListMetadataStoresResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListMetadataStoresResponse): google.cloud.aiplatform.v1.ListMetadataStoresResponse; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. + * @param message ListMetadataStoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. + * @param message ListMetadataStoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextArtifactsAndExecutionsResponse + * @returns ListMetadataStoresResponse * @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.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListMetadataStoresResponse; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextArtifactsAndExecutionsResponse + * @returns ListMetadataStoresResponse * @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.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListMetadataStoresResponse; /** - * Verifies an AddContextArtifactsAndExecutionsResponse message. + * Verifies a ListMetadataStoresResponse 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 an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextArtifactsAndExecutionsResponse + * @returns ListMetadataStoresResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataStoresResponse; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. - * @param message AddContextArtifactsAndExecutionsResponse + * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. + * @param message ListMetadataStoresResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListMetadataStoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextArtifactsAndExecutionsResponse to JSON. + * Converts this ListMetadataStoresResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsResponse + * Gets the default type url for ListMetadataStoresResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextChildrenRequest. */ - interface IAddContextChildrenRequest { - - /** AddContextChildrenRequest context */ - context?: (string|null); + /** Properties of a DeleteMetadataStoreRequest. */ + interface IDeleteMetadataStoreRequest { - /** AddContextChildrenRequest childContexts */ - childContexts?: (string[]|null); + /** DeleteMetadataStoreRequest name */ + name?: (string|null); + + /** DeleteMetadataStoreRequest force */ + force?: (boolean|null); } - /** Represents an AddContextChildrenRequest. */ - class AddContextChildrenRequest implements IAddContextChildrenRequest { + /** Represents a DeleteMetadataStoreRequest. */ + class DeleteMetadataStoreRequest implements IDeleteMetadataStoreRequest { /** - * Constructs a new AddContextChildrenRequest. + * Constructs a new DeleteMetadataStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddContextChildrenRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest); - /** AddContextChildrenRequest context. */ - public context: string; + /** DeleteMetadataStoreRequest name. */ + public name: string; - /** AddContextChildrenRequest childContexts. */ - public childContexts: string[]; + /** DeleteMetadataStoreRequest force. */ + public force: boolean; /** - * Creates a new AddContextChildrenRequest instance using the specified properties. + * Creates a new DeleteMetadataStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextChildrenRequest instance + * @returns DeleteMetadataStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddContextChildrenRequest): google.cloud.aiplatform.v1.AddContextChildrenRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; /** - * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. - * @param message AddContextChildrenRequest message or plain object to encode + * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. + * @param message DeleteMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. - * @param message AddContextChildrenRequest message or plain object to encode + * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. + * @param message DeleteMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextChildrenRequest + * @returns DeleteMetadataStoreRequest * @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.aiplatform.v1.AddContextChildrenRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextChildrenRequest + * @returns DeleteMetadataStoreRequest * @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.aiplatform.v1.AddContextChildrenRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; /** - * Verifies an AddContextChildrenRequest message. + * Verifies a DeleteMetadataStoreRequest 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 an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextChildrenRequest + * @returns DeleteMetadataStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextChildrenRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; /** - * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. - * @param message AddContextChildrenRequest + * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. + * @param message DeleteMetadataStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextChildrenRequest to JSON. + * Converts this DeleteMetadataStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextChildrenRequest + * Gets the default type url for DeleteMetadataStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextChildrenResponse. */ - interface IAddContextChildrenResponse { + /** Properties of a DeleteMetadataStoreOperationMetadata. */ + interface IDeleteMetadataStoreOperationMetadata { + + /** DeleteMetadataStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents an AddContextChildrenResponse. */ - class AddContextChildrenResponse implements IAddContextChildrenResponse { + /** Represents a DeleteMetadataStoreOperationMetadata. */ + class DeleteMetadataStoreOperationMetadata implements IDeleteMetadataStoreOperationMetadata { /** - * Constructs a new AddContextChildrenResponse. + * Constructs a new DeleteMetadataStoreOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddContextChildrenResponse); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata); + + /** DeleteMetadataStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new AddContextChildrenResponse instance using the specified properties. + * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextChildrenResponse instance + * @returns DeleteMetadataStoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddContextChildrenResponse): google.cloud.aiplatform.v1.AddContextChildrenResponse; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; /** - * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. - * @param message AddContextChildrenResponse message or plain object to encode + * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. - * @param message AddContextChildrenResponse message or plain object to encode + * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextChildrenResponse + * @returns DeleteMetadataStoreOperationMetadata * @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.aiplatform.v1.AddContextChildrenResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextChildrenResponse + * @returns DeleteMetadataStoreOperationMetadata * @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.aiplatform.v1.AddContextChildrenResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; /** - * Verifies an AddContextChildrenResponse message. + * Verifies a DeleteMetadataStoreOperationMetadata 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 an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextChildrenResponse + * @returns DeleteMetadataStoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextChildrenResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; /** - * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. - * @param message AddContextChildrenResponse + * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteMetadataStoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextChildrenResponse to JSON. + * Converts this DeleteMetadataStoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextChildrenResponse + * Gets the default type url for DeleteMetadataStoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveContextChildrenRequest. */ - interface IRemoveContextChildrenRequest { + /** Properties of a CreateArtifactRequest. */ + interface ICreateArtifactRequest { - /** RemoveContextChildrenRequest context */ - context?: (string|null); + /** CreateArtifactRequest parent */ + parent?: (string|null); - /** RemoveContextChildrenRequest childContexts */ - childContexts?: (string[]|null); + /** CreateArtifactRequest artifact */ + artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + + /** CreateArtifactRequest artifactId */ + artifactId?: (string|null); } - /** Represents a RemoveContextChildrenRequest. */ - class RemoveContextChildrenRequest implements IRemoveContextChildrenRequest { + /** Represents a CreateArtifactRequest. */ + class CreateArtifactRequest implements ICreateArtifactRequest { /** - * Constructs a new RemoveContextChildrenRequest. + * Constructs a new CreateArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateArtifactRequest); - /** RemoveContextChildrenRequest context. */ - public context: string; + /** CreateArtifactRequest parent. */ + public parent: string; - /** RemoveContextChildrenRequest childContexts. */ - public childContexts: string[]; + /** CreateArtifactRequest artifact. */ + public artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + + /** CreateArtifactRequest artifactId. */ + public artifactId: string; /** - * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * Creates a new CreateArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveContextChildrenRequest instance + * @returns CreateArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateArtifactRequest): google.cloud.aiplatform.v1.CreateArtifactRequest; /** - * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. - * @param message RemoveContextChildrenRequest message or plain object to encode + * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. + * @param message CreateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. - * @param message RemoveContextChildrenRequest message or plain object to encode + * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. + * @param message CreateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * Decodes a CreateArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveContextChildrenRequest + * @returns CreateArtifactRequest * @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.aiplatform.v1.RemoveContextChildrenRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateArtifactRequest; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveContextChildrenRequest + * @returns CreateArtifactRequest * @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.aiplatform.v1.RemoveContextChildrenRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateArtifactRequest; /** - * Verifies a RemoveContextChildrenRequest message. + * Verifies a CreateArtifactRequest 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 RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveContextChildrenRequest + * @returns CreateArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateArtifactRequest; /** - * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. - * @param message RemoveContextChildrenRequest + * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. + * @param message CreateArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveContextChildrenRequest to JSON. + * Converts this CreateArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveContextChildrenRequest + * Gets the default type url for CreateArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveContextChildrenResponse. */ - interface IRemoveContextChildrenResponse { + /** Properties of a GetArtifactRequest. */ + interface IGetArtifactRequest { + + /** GetArtifactRequest name */ + name?: (string|null); } - /** Represents a RemoveContextChildrenResponse. */ - class RemoveContextChildrenResponse implements IRemoveContextChildrenResponse { + /** Represents a GetArtifactRequest. */ + class GetArtifactRequest implements IGetArtifactRequest { /** - * Constructs a new RemoveContextChildrenResponse. + * Constructs a new GetArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse); + constructor(properties?: google.cloud.aiplatform.v1.IGetArtifactRequest); + + /** GetArtifactRequest name. */ + public name: string; /** - * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * Creates a new GetArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveContextChildrenResponse instance + * @returns GetArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetArtifactRequest): google.cloud.aiplatform.v1.GetArtifactRequest; /** - * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. - * @param message RemoveContextChildrenResponse message or plain object to encode + * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. + * @param message GetArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. - * @param message RemoveContextChildrenResponse message or plain object to encode + * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. + * @param message GetArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * Decodes a GetArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveContextChildrenResponse + * @returns GetArtifactRequest * @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.aiplatform.v1.RemoveContextChildrenResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetArtifactRequest; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveContextChildrenResponse + * @returns GetArtifactRequest * @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.aiplatform.v1.RemoveContextChildrenResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetArtifactRequest; /** - * Verifies a RemoveContextChildrenResponse message. + * Verifies a GetArtifactRequest 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 RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveContextChildrenResponse + * @returns GetArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetArtifactRequest; /** - * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. - * @param message RemoveContextChildrenResponse + * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. + * @param message GetArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveContextChildrenResponse to JSON. + * Converts this GetArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveContextChildrenResponse + * Gets the default type url for GetArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryContextLineageSubgraphRequest. */ - interface IQueryContextLineageSubgraphRequest { + /** Properties of a ListArtifactsRequest. */ + interface IListArtifactsRequest { - /** QueryContextLineageSubgraphRequest context */ - context?: (string|null); + /** ListArtifactsRequest parent */ + parent?: (string|null); + + /** ListArtifactsRequest pageSize */ + pageSize?: (number|null); + + /** ListArtifactsRequest pageToken */ + pageToken?: (string|null); + + /** ListArtifactsRequest filter */ + filter?: (string|null); + + /** ListArtifactsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a QueryContextLineageSubgraphRequest. */ - class QueryContextLineageSubgraphRequest implements IQueryContextLineageSubgraphRequest { + /** Represents a ListArtifactsRequest. */ + class ListArtifactsRequest implements IListArtifactsRequest { /** - * Constructs a new QueryContextLineageSubgraphRequest. + * Constructs a new ListArtifactsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListArtifactsRequest); - /** QueryContextLineageSubgraphRequest context. */ - public context: string; + /** ListArtifactsRequest parent. */ + public parent: string; + + /** ListArtifactsRequest pageSize. */ + public pageSize: number; + + /** ListArtifactsRequest pageToken. */ + public pageToken: string; + + /** ListArtifactsRequest filter. */ + public filter: string; + + /** ListArtifactsRequest orderBy. */ + public orderBy: string; /** - * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. + * Creates a new ListArtifactsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryContextLineageSubgraphRequest instance + * @returns ListArtifactsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest): google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListArtifactsRequest): google.cloud.aiplatform.v1.ListArtifactsRequest; /** - * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. + * @param message ListArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. + * @param message ListArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a ListArtifactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryContextLineageSubgraphRequest + * @returns ListArtifactsRequest * @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.aiplatform.v1.QueryContextLineageSubgraphRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListArtifactsRequest; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryContextLineageSubgraphRequest + * @returns ListArtifactsRequest * @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.aiplatform.v1.QueryContextLineageSubgraphRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListArtifactsRequest; /** - * Verifies a QueryContextLineageSubgraphRequest message. + * Verifies a ListArtifactsRequest 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 QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryContextLineageSubgraphRequest + * @returns ListArtifactsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListArtifactsRequest; /** - * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. - * @param message QueryContextLineageSubgraphRequest + * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. + * @param message ListArtifactsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryContextLineageSubgraphRequest to JSON. + * Converts this ListArtifactsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryContextLineageSubgraphRequest + * Gets the default type url for ListArtifactsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateExecutionRequest. */ - interface ICreateExecutionRequest { - - /** CreateExecutionRequest parent */ - parent?: (string|null); + /** Properties of a ListArtifactsResponse. */ + interface IListArtifactsResponse { - /** CreateExecutionRequest execution */ - execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** ListArtifactsResponse artifacts */ + artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); - /** CreateExecutionRequest executionId */ - executionId?: (string|null); + /** ListArtifactsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateExecutionRequest. */ - class CreateExecutionRequest implements ICreateExecutionRequest { + /** Represents a ListArtifactsResponse. */ + class ListArtifactsResponse implements IListArtifactsResponse { /** - * Constructs a new CreateExecutionRequest. + * Constructs a new ListArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateExecutionRequest); - - /** CreateExecutionRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1.IListArtifactsResponse); - /** CreateExecutionRequest execution. */ - public execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** ListArtifactsResponse artifacts. */ + public artifacts: google.cloud.aiplatform.v1.IArtifact[]; - /** CreateExecutionRequest executionId. */ - public executionId: string; + /** ListArtifactsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateExecutionRequest instance using the specified properties. + * Creates a new ListArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateExecutionRequest instance + * @returns ListArtifactsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateExecutionRequest): google.cloud.aiplatform.v1.CreateExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListArtifactsResponse): google.cloud.aiplatform.v1.ListArtifactsResponse; /** - * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. - * @param message CreateExecutionRequest message or plain object to encode + * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. + * @param message ListArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. - * @param message CreateExecutionRequest message or plain object to encode + * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. + * @param message ListArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer. + * Decodes a ListArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateExecutionRequest + * @returns ListArtifactsResponse * @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.aiplatform.v1.CreateExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListArtifactsResponse; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateExecutionRequest + * @returns ListArtifactsResponse * @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.aiplatform.v1.CreateExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListArtifactsResponse; /** - * Verifies a CreateExecutionRequest message. + * Verifies a ListArtifactsResponse 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 CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateExecutionRequest + * @returns ListArtifactsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListArtifactsResponse; /** - * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. - * @param message CreateExecutionRequest + * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. + * @param message ListArtifactsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateExecutionRequest to JSON. + * Converts this ListArtifactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateExecutionRequest + * Gets the default type url for ListArtifactsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetExecutionRequest. */ - interface IGetExecutionRequest { + /** Properties of an UpdateArtifactRequest. */ + interface IUpdateArtifactRequest { - /** GetExecutionRequest name */ - name?: (string|null); + /** UpdateArtifactRequest artifact */ + artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + + /** UpdateArtifactRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateArtifactRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents a GetExecutionRequest. */ - class GetExecutionRequest implements IGetExecutionRequest { + /** Represents an UpdateArtifactRequest. */ + class UpdateArtifactRequest implements IUpdateArtifactRequest { /** - * Constructs a new GetExecutionRequest. + * Constructs a new UpdateArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetExecutionRequest); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateArtifactRequest); - /** GetExecutionRequest name. */ - public name: string; + /** UpdateArtifactRequest artifact. */ + public artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + + /** UpdateArtifactRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateArtifactRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new GetExecutionRequest instance using the specified properties. + * Creates a new UpdateArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetExecutionRequest instance + * @returns UpdateArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetExecutionRequest): google.cloud.aiplatform.v1.GetExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateArtifactRequest): google.cloud.aiplatform.v1.UpdateArtifactRequest; /** - * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. - * @param message GetExecutionRequest message or plain object to encode + * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. + * @param message UpdateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. - * @param message GetExecutionRequest message or plain object to encode + * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. + * @param message UpdateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetExecutionRequest + * @returns UpdateArtifactRequest * @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.aiplatform.v1.GetExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateArtifactRequest; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetExecutionRequest + * @returns UpdateArtifactRequest * @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.aiplatform.v1.GetExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateArtifactRequest; /** - * Verifies a GetExecutionRequest message. + * Verifies an UpdateArtifactRequest 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 GetExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetExecutionRequest + * @returns UpdateArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateArtifactRequest; /** - * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. - * @param message GetExecutionRequest + * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * @param message UpdateArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetExecutionRequest to JSON. + * Converts this UpdateArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetExecutionRequest + * Gets the default type url for UpdateArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListExecutionsRequest. */ - interface IListExecutionsRequest { - - /** ListExecutionsRequest parent */ - parent?: (string|null); - - /** ListExecutionsRequest pageSize */ - pageSize?: (number|null); - - /** ListExecutionsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a DeleteArtifactRequest. */ + interface IDeleteArtifactRequest { - /** ListExecutionsRequest filter */ - filter?: (string|null); + /** DeleteArtifactRequest name */ + name?: (string|null); - /** ListExecutionsRequest orderBy */ - orderBy?: (string|null); + /** DeleteArtifactRequest etag */ + etag?: (string|null); } - /** Represents a ListExecutionsRequest. */ - class ListExecutionsRequest implements IListExecutionsRequest { + /** Represents a DeleteArtifactRequest. */ + class DeleteArtifactRequest implements IDeleteArtifactRequest { /** - * Constructs a new ListExecutionsRequest. + * Constructs a new DeleteArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListExecutionsRequest); - - /** ListExecutionsRequest parent. */ - public parent: string; - - /** ListExecutionsRequest pageSize. */ - public pageSize: number; - - /** ListExecutionsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1.IDeleteArtifactRequest); - /** ListExecutionsRequest filter. */ - public filter: string; + /** DeleteArtifactRequest name. */ + public name: string; - /** ListExecutionsRequest orderBy. */ - public orderBy: string; + /** DeleteArtifactRequest etag. */ + public etag: string; /** - * Creates a new ListExecutionsRequest instance using the specified properties. + * Creates a new DeleteArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListExecutionsRequest instance + * @returns DeleteArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListExecutionsRequest): google.cloud.aiplatform.v1.ListExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteArtifactRequest): google.cloud.aiplatform.v1.DeleteArtifactRequest; /** - * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. - * @param message ListExecutionsRequest message or plain object to encode + * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. + * @param message DeleteArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. - * @param message ListExecutionsRequest message or plain object to encode + * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. + * @param message DeleteArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExecutionsRequest + * @returns DeleteArtifactRequest * @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.aiplatform.v1.ListExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteArtifactRequest; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExecutionsRequest + * @returns DeleteArtifactRequest * @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.aiplatform.v1.ListExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteArtifactRequest; /** - * Verifies a ListExecutionsRequest message. + * Verifies a DeleteArtifactRequest 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 ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExecutionsRequest + * @returns DeleteArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteArtifactRequest; /** - * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. - * @param message ListExecutionsRequest + * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. + * @param message DeleteArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExecutionsRequest to JSON. + * Converts this DeleteArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListExecutionsRequest + * Gets the default type url for DeleteArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListExecutionsResponse. */ - interface IListExecutionsResponse { + /** Properties of a PurgeArtifactsRequest. */ + interface IPurgeArtifactsRequest { - /** ListExecutionsResponse executions */ - executions?: (google.cloud.aiplatform.v1.IExecution[]|null); + /** PurgeArtifactsRequest parent */ + parent?: (string|null); - /** ListExecutionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** PurgeArtifactsRequest filter */ + filter?: (string|null); + + /** PurgeArtifactsRequest force */ + force?: (boolean|null); } - /** Represents a ListExecutionsResponse. */ - class ListExecutionsResponse implements IListExecutionsResponse { + /** Represents a PurgeArtifactsRequest. */ + class PurgeArtifactsRequest implements IPurgeArtifactsRequest { /** - * Constructs a new ListExecutionsResponse. + * Constructs a new PurgeArtifactsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListExecutionsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsRequest); - /** ListExecutionsResponse executions. */ - public executions: google.cloud.aiplatform.v1.IExecution[]; + /** PurgeArtifactsRequest parent. */ + public parent: string; - /** ListExecutionsResponse nextPageToken. */ - public nextPageToken: string; + /** PurgeArtifactsRequest filter. */ + public filter: string; + + /** PurgeArtifactsRequest force. */ + public force: boolean; /** - * Creates a new ListExecutionsResponse instance using the specified properties. + * Creates a new PurgeArtifactsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListExecutionsResponse instance + * @returns PurgeArtifactsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListExecutionsResponse): google.cloud.aiplatform.v1.ListExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsRequest): google.cloud.aiplatform.v1.PurgeArtifactsRequest; /** - * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. - * @param message ListExecutionsResponse message or plain object to encode + * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. + * @param message PurgeArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. - * @param message ListExecutionsResponse message or plain object to encode + * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. + * @param message PurgeArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExecutionsResponse + * @returns PurgeArtifactsRequest * @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.aiplatform.v1.ListExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsRequest; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExecutionsResponse + * @returns PurgeArtifactsRequest * @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.aiplatform.v1.ListExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsRequest; /** - * Verifies a ListExecutionsResponse message. + * Verifies a PurgeArtifactsRequest 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 ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExecutionsResponse + * @returns PurgeArtifactsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsRequest; /** - * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. - * @param message ListExecutionsResponse + * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. + * @param message PurgeArtifactsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExecutionsResponse to JSON. + * Converts this PurgeArtifactsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListExecutionsResponse + * Gets the default type url for PurgeArtifactsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateExecutionRequest. */ - interface IUpdateExecutionRequest { - - /** UpdateExecutionRequest execution */ - execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** Properties of a PurgeArtifactsResponse. */ + interface IPurgeArtifactsResponse { - /** UpdateExecutionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** PurgeArtifactsResponse purgeCount */ + purgeCount?: (number|Long|string|null); - /** UpdateExecutionRequest allowMissing */ - allowMissing?: (boolean|null); + /** PurgeArtifactsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents an UpdateExecutionRequest. */ - class UpdateExecutionRequest implements IUpdateExecutionRequest { + /** Represents a PurgeArtifactsResponse. */ + class PurgeArtifactsResponse implements IPurgeArtifactsResponse { /** - * Constructs a new UpdateExecutionRequest. + * Constructs a new PurgeArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateExecutionRequest); - - /** UpdateExecutionRequest execution. */ - public execution?: (google.cloud.aiplatform.v1.IExecution|null); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsResponse); - /** UpdateExecutionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** PurgeArtifactsResponse purgeCount. */ + public purgeCount: (number|Long|string); - /** UpdateExecutionRequest allowMissing. */ - public allowMissing: boolean; + /** PurgeArtifactsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new UpdateExecutionRequest instance using the specified properties. + * Creates a new PurgeArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExecutionRequest instance + * @returns PurgeArtifactsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateExecutionRequest): google.cloud.aiplatform.v1.UpdateExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsResponse): google.cloud.aiplatform.v1.PurgeArtifactsResponse; /** - * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. - * @param message UpdateExecutionRequest message or plain object to encode + * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. + * @param message PurgeArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. - * @param message UpdateExecutionRequest message or plain object to encode + * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. + * @param message PurgeArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExecutionRequest + * @returns PurgeArtifactsResponse * @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.aiplatform.v1.UpdateExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsResponse; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExecutionRequest + * @returns PurgeArtifactsResponse * @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.aiplatform.v1.UpdateExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsResponse; /** - * Verifies an UpdateExecutionRequest message. + * Verifies a PurgeArtifactsResponse 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 an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExecutionRequest + * @returns PurgeArtifactsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsResponse; /** - * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. - * @param message UpdateExecutionRequest + * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. + * @param message PurgeArtifactsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExecutionRequest to JSON. + * Converts this PurgeArtifactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateExecutionRequest + * Gets the default type url for PurgeArtifactsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteExecutionRequest. */ - interface IDeleteExecutionRequest { - - /** DeleteExecutionRequest name */ - name?: (string|null); + /** Properties of a PurgeArtifactsMetadata. */ + interface IPurgeArtifactsMetadata { - /** DeleteExecutionRequest etag */ - etag?: (string|null); + /** PurgeArtifactsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a DeleteExecutionRequest. */ - class DeleteExecutionRequest implements IDeleteExecutionRequest { + /** Represents a PurgeArtifactsMetadata. */ + class PurgeArtifactsMetadata implements IPurgeArtifactsMetadata { /** - * Constructs a new DeleteExecutionRequest. + * Constructs a new PurgeArtifactsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteExecutionRequest); - - /** DeleteExecutionRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata); - /** DeleteExecutionRequest etag. */ - public etag: string; + /** PurgeArtifactsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new DeleteExecutionRequest instance using the specified properties. + * Creates a new PurgeArtifactsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteExecutionRequest instance + * @returns PurgeArtifactsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteExecutionRequest): google.cloud.aiplatform.v1.DeleteExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; /** - * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. - * @param message DeleteExecutionRequest message or plain object to encode + * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. + * @param message PurgeArtifactsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. - * @param message DeleteExecutionRequest message or plain object to encode + * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. + * @param message PurgeArtifactsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteExecutionRequest + * @returns PurgeArtifactsMetadata * @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.aiplatform.v1.DeleteExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteExecutionRequest + * @returns PurgeArtifactsMetadata * @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.aiplatform.v1.DeleteExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; /** - * Verifies a DeleteExecutionRequest message. + * Verifies a PurgeArtifactsMetadata 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 DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteExecutionRequest + * @returns PurgeArtifactsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; /** - * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. - * @param message DeleteExecutionRequest + * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. + * @param message PurgeArtifactsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteExecutionRequest to JSON. + * Converts this PurgeArtifactsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteExecutionRequest + * Gets the default type url for PurgeArtifactsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeExecutionsRequest. */ - interface IPurgeExecutionsRequest { + /** Properties of a CreateContextRequest. */ + interface ICreateContextRequest { - /** PurgeExecutionsRequest parent */ + /** CreateContextRequest parent */ parent?: (string|null); - /** PurgeExecutionsRequest filter */ - filter?: (string|null); + /** CreateContextRequest context */ + context?: (google.cloud.aiplatform.v1.IContext|null); - /** PurgeExecutionsRequest force */ - force?: (boolean|null); + /** CreateContextRequest contextId */ + contextId?: (string|null); } - /** Represents a PurgeExecutionsRequest. */ - class PurgeExecutionsRequest implements IPurgeExecutionsRequest { + /** Represents a CreateContextRequest. */ + class CreateContextRequest implements ICreateContextRequest { /** - * Constructs a new PurgeExecutionsRequest. + * Constructs a new CreateContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateContextRequest); - /** PurgeExecutionsRequest parent. */ + /** CreateContextRequest parent. */ public parent: string; - /** PurgeExecutionsRequest filter. */ - public filter: string; + /** CreateContextRequest context. */ + public context?: (google.cloud.aiplatform.v1.IContext|null); - /** PurgeExecutionsRequest force. */ - public force: boolean; + /** CreateContextRequest contextId. */ + public contextId: string; /** - * Creates a new PurgeExecutionsRequest instance using the specified properties. + * Creates a new CreateContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeExecutionsRequest instance + * @returns CreateContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsRequest): google.cloud.aiplatform.v1.PurgeExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateContextRequest): google.cloud.aiplatform.v1.CreateContextRequest; /** - * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. - * @param message PurgeExecutionsRequest message or plain object to encode + * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. + * @param message CreateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. - * @param message PurgeExecutionsRequest message or plain object to encode + * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. + * @param message CreateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. + * Decodes a CreateContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeExecutionsRequest + * @returns CreateContextRequest * @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.aiplatform.v1.PurgeExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateContextRequest; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsRequest + * @returns CreateContextRequest * @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.aiplatform.v1.PurgeExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateContextRequest; /** - * Verifies a PurgeExecutionsRequest message. + * Verifies a CreateContextRequest 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 PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeExecutionsRequest + * @returns CreateContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateContextRequest; /** - * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. - * @param message PurgeExecutionsRequest + * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. + * @param message CreateContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeExecutionsRequest to JSON. + * Converts this CreateContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeExecutionsRequest + * Gets the default type url for CreateContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeExecutionsResponse. */ - interface IPurgeExecutionsResponse { - - /** PurgeExecutionsResponse purgeCount */ - purgeCount?: (number|Long|string|null); + /** Properties of a GetContextRequest. */ + interface IGetContextRequest { - /** PurgeExecutionsResponse purgeSample */ - purgeSample?: (string[]|null); + /** GetContextRequest name */ + name?: (string|null); } - /** Represents a PurgeExecutionsResponse. */ - class PurgeExecutionsResponse implements IPurgeExecutionsResponse { + /** Represents a GetContextRequest. */ + class GetContextRequest implements IGetContextRequest { /** - * Constructs a new PurgeExecutionsResponse. + * Constructs a new GetContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsResponse); - - /** PurgeExecutionsResponse purgeCount. */ - public purgeCount: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1.IGetContextRequest); - /** PurgeExecutionsResponse purgeSample. */ - public purgeSample: string[]; + /** GetContextRequest name. */ + public name: string; /** - * Creates a new PurgeExecutionsResponse instance using the specified properties. + * Creates a new GetContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeExecutionsResponse instance + * @returns GetContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsResponse): google.cloud.aiplatform.v1.PurgeExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetContextRequest): google.cloud.aiplatform.v1.GetContextRequest; /** - * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. - * @param message PurgeExecutionsResponse message or plain object to encode + * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. + * @param message GetContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. - * @param message PurgeExecutionsResponse message or plain object to encode + * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. + * @param message GetContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. + * Decodes a GetContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeExecutionsResponse + * @returns GetContextRequest * @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.aiplatform.v1.PurgeExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetContextRequest; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsResponse + * @returns GetContextRequest * @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.aiplatform.v1.PurgeExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetContextRequest; /** - * Verifies a PurgeExecutionsResponse message. + * Verifies a GetContextRequest 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 PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeExecutionsResponse + * @returns GetContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetContextRequest; /** - * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. - * @param message PurgeExecutionsResponse + * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * @param message GetContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeExecutionsResponse to JSON. + * Converts this GetContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeExecutionsResponse + * Gets the default type url for GetContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeExecutionsMetadata. */ - interface IPurgeExecutionsMetadata { + /** Properties of a ListContextsRequest. */ + interface IListContextsRequest { - /** PurgeExecutionsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListContextsRequest parent */ + parent?: (string|null); + + /** ListContextsRequest pageSize */ + pageSize?: (number|null); + + /** ListContextsRequest pageToken */ + pageToken?: (string|null); + + /** ListContextsRequest filter */ + filter?: (string|null); + + /** ListContextsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a PurgeExecutionsMetadata. */ - class PurgeExecutionsMetadata implements IPurgeExecutionsMetadata { + /** Represents a ListContextsRequest. */ + class ListContextsRequest implements IListContextsRequest { /** - * Constructs a new PurgeExecutionsMetadata. + * Constructs a new ListContextsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IListContextsRequest); - /** PurgeExecutionsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListContextsRequest parent. */ + public parent: string; + + /** ListContextsRequest pageSize. */ + public pageSize: number; + + /** ListContextsRequest pageToken. */ + public pageToken: string; + + /** ListContextsRequest filter. */ + public filter: string; + + /** ListContextsRequest orderBy. */ + public orderBy: string; /** - * Creates a new PurgeExecutionsMetadata instance using the specified properties. + * Creates a new ListContextsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeExecutionsMetadata instance + * @returns ListContextsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IListContextsRequest): google.cloud.aiplatform.v1.ListContextsRequest; /** - * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. - * @param message PurgeExecutionsMetadata message or plain object to encode + * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. + * @param message ListContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. - * @param message PurgeExecutionsMetadata message or plain object to encode + * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. + * @param message ListContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. + * Decodes a ListContextsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeExecutionsMetadata + * @returns ListContextsRequest * @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.aiplatform.v1.PurgeExecutionsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListContextsRequest; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsMetadata + * @returns ListContextsRequest * @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.aiplatform.v1.PurgeExecutionsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListContextsRequest; /** - * Verifies a PurgeExecutionsMetadata message. + * Verifies a ListContextsRequest 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 PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeExecutionsMetadata + * @returns ListContextsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListContextsRequest; /** - * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. - * @param message PurgeExecutionsMetadata + * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. + * @param message ListContextsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeExecutionsMetadata to JSON. + * Converts this ListContextsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeExecutionsMetadata + * Gets the default type url for ListContextsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddExecutionEventsRequest. */ - interface IAddExecutionEventsRequest { + /** Properties of a ListContextsResponse. */ + interface IListContextsResponse { - /** AddExecutionEventsRequest execution */ - execution?: (string|null); + /** ListContextsResponse contexts */ + contexts?: (google.cloud.aiplatform.v1.IContext[]|null); - /** AddExecutionEventsRequest events */ - events?: (google.cloud.aiplatform.v1.IEvent[]|null); + /** ListContextsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an AddExecutionEventsRequest. */ - class AddExecutionEventsRequest implements IAddExecutionEventsRequest { + /** Represents a ListContextsResponse. */ + class ListContextsResponse implements IListContextsResponse { /** - * Constructs a new AddExecutionEventsRequest. + * Constructs a new ListContextsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListContextsResponse); - /** AddExecutionEventsRequest execution. */ - public execution: string; + /** ListContextsResponse contexts. */ + public contexts: google.cloud.aiplatform.v1.IContext[]; - /** AddExecutionEventsRequest events. */ - public events: google.cloud.aiplatform.v1.IEvent[]; + /** ListContextsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new AddExecutionEventsRequest instance using the specified properties. + * Creates a new ListContextsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddExecutionEventsRequest instance + * @returns ListContextsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsRequest): google.cloud.aiplatform.v1.AddExecutionEventsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListContextsResponse): google.cloud.aiplatform.v1.ListContextsResponse; /** - * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. - * @param message AddExecutionEventsRequest message or plain object to encode + * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. + * @param message ListContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. - * @param message AddExecutionEventsRequest message or plain object to encode + * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. + * @param message ListContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. + * Decodes a ListContextsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddExecutionEventsRequest + * @returns ListContextsResponse * @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.aiplatform.v1.AddExecutionEventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListContextsResponse; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddExecutionEventsRequest + * @returns ListContextsResponse * @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.aiplatform.v1.AddExecutionEventsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListContextsResponse; /** - * Verifies an AddExecutionEventsRequest message. + * Verifies a ListContextsResponse 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 an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddExecutionEventsRequest + * @returns ListContextsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddExecutionEventsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListContextsResponse; /** - * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. - * @param message AddExecutionEventsRequest + * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. + * @param message ListContextsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddExecutionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddExecutionEventsRequest to JSON. + * Converts this ListContextsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddExecutionEventsRequest + * Gets the default type url for ListContextsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddExecutionEventsResponse. */ - interface IAddExecutionEventsResponse { + /** Properties of an UpdateContextRequest. */ + interface IUpdateContextRequest { + + /** UpdateContextRequest context */ + context?: (google.cloud.aiplatform.v1.IContext|null); + + /** UpdateContextRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateContextRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents an AddExecutionEventsResponse. */ - class AddExecutionEventsResponse implements IAddExecutionEventsResponse { + /** Represents an UpdateContextRequest. */ + class UpdateContextRequest implements IUpdateContextRequest { /** - * Constructs a new AddExecutionEventsResponse. + * Constructs a new UpdateContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateContextRequest); + + /** UpdateContextRequest context. */ + public context?: (google.cloud.aiplatform.v1.IContext|null); + + /** UpdateContextRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateContextRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new AddExecutionEventsResponse instance using the specified properties. + * Creates a new UpdateContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddExecutionEventsResponse instance + * @returns UpdateContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsResponse): google.cloud.aiplatform.v1.AddExecutionEventsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateContextRequest): google.cloud.aiplatform.v1.UpdateContextRequest; /** - * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. - * @param message AddExecutionEventsResponse message or plain object to encode + * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. + * @param message UpdateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. - * @param message AddExecutionEventsResponse message or plain object to encode + * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. + * @param message UpdateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. + * Decodes an UpdateContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddExecutionEventsResponse + * @returns UpdateContextRequest * @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.aiplatform.v1.AddExecutionEventsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateContextRequest; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddExecutionEventsResponse + * @returns UpdateContextRequest * @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.aiplatform.v1.AddExecutionEventsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateContextRequest; /** - * Verifies an AddExecutionEventsResponse message. + * Verifies an UpdateContextRequest 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 an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddExecutionEventsResponse + * @returns UpdateContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddExecutionEventsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateContextRequest; /** - * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. - * @param message AddExecutionEventsResponse + * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. + * @param message UpdateContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddExecutionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddExecutionEventsResponse to JSON. + * Converts this UpdateContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddExecutionEventsResponse + * Gets the default type url for UpdateContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryExecutionInputsAndOutputsRequest. */ - interface IQueryExecutionInputsAndOutputsRequest { + /** Properties of a DeleteContextRequest. */ + interface IDeleteContextRequest { - /** QueryExecutionInputsAndOutputsRequest execution */ - execution?: (string|null); + /** DeleteContextRequest name */ + name?: (string|null); + + /** DeleteContextRequest force */ + force?: (boolean|null); + + /** DeleteContextRequest etag */ + etag?: (string|null); } - /** Represents a QueryExecutionInputsAndOutputsRequest. */ - class QueryExecutionInputsAndOutputsRequest implements IQueryExecutionInputsAndOutputsRequest { + /** Represents a DeleteContextRequest. */ + class DeleteContextRequest implements IDeleteContextRequest { /** - * Constructs a new QueryExecutionInputsAndOutputsRequest. + * Constructs a new DeleteContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteContextRequest); - /** QueryExecutionInputsAndOutputsRequest execution. */ - public execution: string; + /** DeleteContextRequest name. */ + public name: string; + + /** DeleteContextRequest force. */ + public force: boolean; + + /** DeleteContextRequest etag. */ + public etag: string; /** - * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. + * Creates a new DeleteContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryExecutionInputsAndOutputsRequest instance + * @returns DeleteContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteContextRequest): google.cloud.aiplatform.v1.DeleteContextRequest; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. - * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. + * @param message DeleteContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. - * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. + * @param message DeleteContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. + * Decodes a DeleteContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryExecutionInputsAndOutputsRequest + * @returns DeleteContextRequest * @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.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteContextRequest; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryExecutionInputsAndOutputsRequest + * @returns DeleteContextRequest * @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.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteContextRequest; /** - * Verifies a QueryExecutionInputsAndOutputsRequest message. + * Verifies a DeleteContextRequest 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 QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryExecutionInputsAndOutputsRequest + * @returns DeleteContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteContextRequest; /** - * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. - * @param message QueryExecutionInputsAndOutputsRequest + * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. + * @param message DeleteContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryExecutionInputsAndOutputsRequest to JSON. + * Converts this DeleteContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryExecutionInputsAndOutputsRequest + * Gets the default type url for DeleteContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateMetadataSchemaRequest. */ - interface ICreateMetadataSchemaRequest { + /** Properties of a PurgeContextsRequest. */ + interface IPurgeContextsRequest { - /** CreateMetadataSchemaRequest parent */ + /** PurgeContextsRequest parent */ parent?: (string|null); - /** CreateMetadataSchemaRequest metadataSchema */ - metadataSchema?: (google.cloud.aiplatform.v1.IMetadataSchema|null); + /** PurgeContextsRequest filter */ + filter?: (string|null); - /** CreateMetadataSchemaRequest metadataSchemaId */ - metadataSchemaId?: (string|null); + /** PurgeContextsRequest force */ + force?: (boolean|null); } - /** Represents a CreateMetadataSchemaRequest. */ - class CreateMetadataSchemaRequest implements ICreateMetadataSchemaRequest { + /** Represents a PurgeContextsRequest. */ + class PurgeContextsRequest implements IPurgeContextsRequest { /** - * Constructs a new CreateMetadataSchemaRequest. + * Constructs a new PurgeContextsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsRequest); - /** CreateMetadataSchemaRequest parent. */ + /** PurgeContextsRequest parent. */ public parent: string; - /** CreateMetadataSchemaRequest metadataSchema. */ - public metadataSchema?: (google.cloud.aiplatform.v1.IMetadataSchema|null); + /** PurgeContextsRequest filter. */ + public filter: string; - /** CreateMetadataSchemaRequest metadataSchemaId. */ - public metadataSchemaId: string; + /** PurgeContextsRequest force. */ + public force: boolean; /** - * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * Creates a new PurgeContextsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMetadataSchemaRequest instance + * @returns PurgeContextsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsRequest): google.cloud.aiplatform.v1.PurgeContextsRequest; /** - * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. - * @param message CreateMetadataSchemaRequest message or plain object to encode + * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. + * @param message PurgeContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. - * @param message CreateMetadataSchemaRequest message or plain object to encode + * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. + * @param message PurgeContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * Decodes a PurgeContextsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMetadataSchemaRequest + * @returns PurgeContextsRequest * @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.aiplatform.v1.CreateMetadataSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeContextsRequest; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMetadataSchemaRequest + * @returns PurgeContextsRequest * @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.aiplatform.v1.CreateMetadataSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeContextsRequest; /** - * Verifies a CreateMetadataSchemaRequest message. + * Verifies a PurgeContextsRequest 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 CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMetadataSchemaRequest + * @returns PurgeContextsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsRequest; /** - * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. - * @param message CreateMetadataSchemaRequest + * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. + * @param message PurgeContextsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMetadataSchemaRequest to JSON. + * Converts this PurgeContextsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateMetadataSchemaRequest + * Gets the default type url for PurgeContextsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetMetadataSchemaRequest. */ - interface IGetMetadataSchemaRequest { + /** Properties of a PurgeContextsResponse. */ + interface IPurgeContextsResponse { - /** GetMetadataSchemaRequest name */ - name?: (string|null); + /** PurgeContextsResponse purgeCount */ + purgeCount?: (number|Long|string|null); + + /** PurgeContextsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents a GetMetadataSchemaRequest. */ - class GetMetadataSchemaRequest implements IGetMetadataSchemaRequest { + /** Represents a PurgeContextsResponse. */ + class PurgeContextsResponse implements IPurgeContextsResponse { /** - * Constructs a new GetMetadataSchemaRequest. + * Constructs a new PurgeContextsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsResponse); - /** GetMetadataSchemaRequest name. */ - public name: string; + /** PurgeContextsResponse purgeCount. */ + public purgeCount: (number|Long|string); + + /** PurgeContextsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new GetMetadataSchemaRequest instance using the specified properties. + * Creates a new PurgeContextsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetMetadataSchemaRequest instance + * @returns PurgeContextsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsResponse): google.cloud.aiplatform.v1.PurgeContextsResponse; /** - * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. - * @param message GetMetadataSchemaRequest message or plain object to encode + * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. + * @param message PurgeContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. - * @param message GetMetadataSchemaRequest message or plain object to encode + * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. + * @param message PurgeContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. + * Decodes a PurgeContextsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetMetadataSchemaRequest + * @returns PurgeContextsResponse * @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.aiplatform.v1.GetMetadataSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeContextsResponse; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetMetadataSchemaRequest + * @returns PurgeContextsResponse * @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.aiplatform.v1.GetMetadataSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeContextsResponse; /** - * Verifies a GetMetadataSchemaRequest message. + * Verifies a PurgeContextsResponse 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 GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetMetadataSchemaRequest + * @returns PurgeContextsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsResponse; /** - * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. - * @param message GetMetadataSchemaRequest + * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. + * @param message PurgeContextsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetMetadataSchemaRequest to JSON. + * Converts this PurgeContextsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetMetadataSchemaRequest + * Gets the default type url for PurgeContextsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataSchemasRequest. */ - interface IListMetadataSchemasRequest { - - /** ListMetadataSchemasRequest parent */ - parent?: (string|null); - - /** ListMetadataSchemasRequest pageSize */ - pageSize?: (number|null); - - /** ListMetadataSchemasRequest pageToken */ - pageToken?: (string|null); + /** Properties of a PurgeContextsMetadata. */ + interface IPurgeContextsMetadata { - /** ListMetadataSchemasRequest filter */ - filter?: (string|null); + /** PurgeContextsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a ListMetadataSchemasRequest. */ - class ListMetadataSchemasRequest implements IListMetadataSchemasRequest { + /** Represents a PurgeContextsMetadata. */ + class PurgeContextsMetadata implements IPurgeContextsMetadata { /** - * Constructs a new ListMetadataSchemasRequest. + * Constructs a new PurgeContextsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasRequest); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsMetadata); - /** ListMetadataSchemasRequest parent. */ - public parent: string; - - /** ListMetadataSchemasRequest pageSize. */ - public pageSize: number; - - /** ListMetadataSchemasRequest pageToken. */ - public pageToken: string; - - /** ListMetadataSchemasRequest filter. */ - public filter: string; + /** PurgeContextsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new ListMetadataSchemasRequest instance using the specified properties. + * Creates a new PurgeContextsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataSchemasRequest instance + * @returns PurgeContextsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasRequest): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsMetadata): google.cloud.aiplatform.v1.PurgeContextsMetadata; /** - * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. - * @param message ListMetadataSchemasRequest message or plain object to encode + * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. + * @param message PurgeContextsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. - * @param message ListMetadataSchemasRequest message or plain object to encode + * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. + * @param message PurgeContextsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataSchemasRequest + * @returns PurgeContextsMetadata * @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.aiplatform.v1.ListMetadataSchemasRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeContextsMetadata; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataSchemasRequest + * @returns PurgeContextsMetadata * @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.aiplatform.v1.ListMetadataSchemasRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeContextsMetadata; /** - * Verifies a ListMetadataSchemasRequest message. + * Verifies a PurgeContextsMetadata 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 ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataSchemasRequest + * @returns PurgeContextsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsMetadata; /** - * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. - * @param message ListMetadataSchemasRequest + * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. + * @param message PurgeContextsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListMetadataSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataSchemasRequest to JSON. + * Converts this PurgeContextsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMetadataSchemasRequest + * Gets the default type url for PurgeContextsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataSchemasResponse. */ - interface IListMetadataSchemasResponse { + /** Properties of an AddContextArtifactsAndExecutionsRequest. */ + interface IAddContextArtifactsAndExecutionsRequest { - /** ListMetadataSchemasResponse metadataSchemas */ - metadataSchemas?: (google.cloud.aiplatform.v1.IMetadataSchema[]|null); + /** AddContextArtifactsAndExecutionsRequest context */ + context?: (string|null); - /** ListMetadataSchemasResponse nextPageToken */ - nextPageToken?: (string|null); + /** AddContextArtifactsAndExecutionsRequest artifacts */ + artifacts?: (string[]|null); + + /** AddContextArtifactsAndExecutionsRequest executions */ + executions?: (string[]|null); } - /** Represents a ListMetadataSchemasResponse. */ - class ListMetadataSchemasResponse implements IListMetadataSchemasResponse { + /** Represents an AddContextArtifactsAndExecutionsRequest. */ + class AddContextArtifactsAndExecutionsRequest implements IAddContextArtifactsAndExecutionsRequest { /** - * Constructs a new ListMetadataSchemasResponse. + * Constructs a new AddContextArtifactsAndExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasResponse); + constructor(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest); - /** ListMetadataSchemasResponse metadataSchemas. */ - public metadataSchemas: google.cloud.aiplatform.v1.IMetadataSchema[]; + /** AddContextArtifactsAndExecutionsRequest context. */ + public context: string; - /** ListMetadataSchemasResponse nextPageToken. */ - public nextPageToken: string; + /** AddContextArtifactsAndExecutionsRequest artifacts. */ + public artifacts: string[]; + + /** AddContextArtifactsAndExecutionsRequest executions. */ + public executions: string[]; /** - * Creates a new ListMetadataSchemasResponse instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataSchemasResponse instance + * @returns AddContextArtifactsAndExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasResponse): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; + public static create(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; /** - * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. - * @param message ListMetadataSchemasResponse message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. - * @param message ListMetadataSchemasResponse message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataSchemasResponse + * @returns AddContextArtifactsAndExecutionsRequest * @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.aiplatform.v1.ListMetadataSchemasResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataSchemasResponse + * @returns AddContextArtifactsAndExecutionsRequest * @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.aiplatform.v1.ListMetadataSchemasResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; /** - * Verifies a ListMetadataSchemasResponse message. + * Verifies an AddContextArtifactsAndExecutionsRequest 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 ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataSchemasResponse + * @returns AddContextArtifactsAndExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; /** - * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. - * @param message ListMetadataSchemasResponse + * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. + * @param message AddContextArtifactsAndExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListMetadataSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataSchemasResponse to JSON. + * Converts this AddContextArtifactsAndExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMetadataSchemasResponse + * Gets the default type url for AddContextArtifactsAndExecutionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryArtifactLineageSubgraphRequest. */ - interface IQueryArtifactLineageSubgraphRequest { - - /** QueryArtifactLineageSubgraphRequest artifact */ - artifact?: (string|null); - - /** QueryArtifactLineageSubgraphRequest maxHops */ - maxHops?: (number|null); - - /** QueryArtifactLineageSubgraphRequest filter */ - filter?: (string|null); + /** Properties of an AddContextArtifactsAndExecutionsResponse. */ + interface IAddContextArtifactsAndExecutionsResponse { } - /** Represents a QueryArtifactLineageSubgraphRequest. */ - class QueryArtifactLineageSubgraphRequest implements IQueryArtifactLineageSubgraphRequest { + /** Represents an AddContextArtifactsAndExecutionsResponse. */ + class AddContextArtifactsAndExecutionsResponse implements IAddContextArtifactsAndExecutionsResponse { /** - * Constructs a new QueryArtifactLineageSubgraphRequest. + * Constructs a new AddContextArtifactsAndExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest); - - /** QueryArtifactLineageSubgraphRequest artifact. */ - public artifact: string; - - /** QueryArtifactLineageSubgraphRequest maxHops. */ - public maxHops: number; - - /** QueryArtifactLineageSubgraphRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse); /** - * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns QueryArtifactLineageSubgraphRequest instance + * @returns AddContextArtifactsAndExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; + public static create(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. - * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. - * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryArtifactLineageSubgraphRequest + * @returns AddContextArtifactsAndExecutionsResponse * @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.aiplatform.v1.QueryArtifactLineageSubgraphRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryArtifactLineageSubgraphRequest + * @returns AddContextArtifactsAndExecutionsResponse * @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.aiplatform.v1.QueryArtifactLineageSubgraphRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; /** - * Verifies a QueryArtifactLineageSubgraphRequest message. + * Verifies an AddContextArtifactsAndExecutionsResponse 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 QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryArtifactLineageSubgraphRequest + * @returns AddContextArtifactsAndExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; /** - * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. - * @param message QueryArtifactLineageSubgraphRequest + * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. + * @param message AddContextArtifactsAndExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryArtifactLineageSubgraphRequest to JSON. + * Converts this AddContextArtifactsAndExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryArtifactLineageSubgraphRequest + * Gets the default type url for AddContextArtifactsAndExecutionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MetadataStore. */ - interface IMetadataStore { - - /** MetadataStore name */ - name?: (string|null); - - /** MetadataStore createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Properties of an AddContextChildrenRequest. */ + interface IAddContextChildrenRequest { - /** MetadataStore description */ - description?: (string|null); + /** AddContextChildrenRequest context */ + context?: (string|null); - /** MetadataStore state */ - state?: (google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null); + /** AddContextChildrenRequest childContexts */ + childContexts?: (string[]|null); } - /** Represents a MetadataStore. */ - class MetadataStore implements IMetadataStore { + /** Represents an AddContextChildrenRequest. */ + class AddContextChildrenRequest implements IAddContextChildrenRequest { /** - * Constructs a new MetadataStore. + * Constructs a new AddContextChildrenRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMetadataStore); - - /** MetadataStore name. */ - public name: string; - - /** MetadataStore createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + constructor(properties?: google.cloud.aiplatform.v1.IAddContextChildrenRequest); - /** MetadataStore description. */ - public description: string; + /** AddContextChildrenRequest context. */ + public context: string; - /** MetadataStore state. */ - public state?: (google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null); + /** AddContextChildrenRequest childContexts. */ + public childContexts: string[]; /** - * Creates a new MetadataStore instance using the specified properties. + * Creates a new AddContextChildrenRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MetadataStore instance + * @returns AddContextChildrenRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMetadataStore): google.cloud.aiplatform.v1.MetadataStore; + public static create(properties?: google.cloud.aiplatform.v1.IAddContextChildrenRequest): google.cloud.aiplatform.v1.AddContextChildrenRequest; /** - * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. - * @param message MetadataStore message or plain object to encode + * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. + * @param message AddContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. - * @param message MetadataStore message or plain object to encode + * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. + * @param message AddContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MetadataStore message from the specified reader or buffer. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MetadataStore + * @returns AddContextChildrenRequest * @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.aiplatform.v1.MetadataStore; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddContextChildrenRequest; /** - * Decodes a MetadataStore message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MetadataStore + * @returns AddContextChildrenRequest * @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.aiplatform.v1.MetadataStore; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddContextChildrenRequest; /** - * Verifies a MetadataStore message. + * Verifies an AddContextChildrenRequest 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 MetadataStore message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MetadataStore + * @returns AddContextChildrenRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataStore; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextChildrenRequest; /** - * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. - * @param message MetadataStore + * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. + * @param message AddContextChildrenRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MetadataStore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MetadataStore to JSON. + * Converts this AddContextChildrenRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MetadataStore + * Gets the default type url for AddContextChildrenRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MetadataStore { - - /** Properties of a MetadataStoreState. */ - interface IMetadataStoreState { - - /** MetadataStoreState diskUtilizationBytes */ - diskUtilizationBytes?: (number|Long|string|null); - } - - /** Represents a MetadataStoreState. */ - class MetadataStoreState implements IMetadataStoreState { - - /** - * Constructs a new MetadataStoreState. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState); - - /** MetadataStoreState diskUtilizationBytes. */ - public diskUtilizationBytes: (number|Long|string); - - /** - * Creates a new MetadataStoreState instance using the specified properties. - * @param [properties] Properties to set - * @returns MetadataStoreState instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState): google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState; - - /** - * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @param message MetadataStoreState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @param message MetadataStoreState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetadataStoreState - * @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.aiplatform.v1.MetadataStore.MetadataStoreState; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetadataStoreState - * @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.aiplatform.v1.MetadataStore.MetadataStoreState; - - /** - * Verifies a MetadataStoreState 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 MetadataStoreState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetadataStoreState - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState; - - /** - * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. - * @param message MetadataStoreState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetadataStoreState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MetadataStoreState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a MigratableResource. */ - interface IMigratableResource { - - /** MigratableResource mlEngineModelVersion */ - mlEngineModelVersion?: (google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null); - - /** MigratableResource automlModel */ - automlModel?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null); - - /** MigratableResource automlDataset */ - automlDataset?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null); - - /** MigratableResource dataLabelingDataset */ - dataLabelingDataset?: (google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null); - - /** MigratableResource lastMigrateTime */ - lastMigrateTime?: (google.protobuf.ITimestamp|null); - - /** MigratableResource lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** Properties of an AddContextChildrenResponse. */ + interface IAddContextChildrenResponse { } - /** Represents a MigratableResource. */ - class MigratableResource implements IMigratableResource { + /** Represents an AddContextChildrenResponse. */ + class AddContextChildrenResponse implements IAddContextChildrenResponse { /** - * Constructs a new MigratableResource. + * Constructs a new AddContextChildrenResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMigratableResource); - - /** MigratableResource mlEngineModelVersion. */ - public mlEngineModelVersion?: (google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null); - - /** MigratableResource automlModel. */ - public automlModel?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null); - - /** MigratableResource automlDataset. */ - public automlDataset?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null); - - /** MigratableResource dataLabelingDataset. */ - public dataLabelingDataset?: (google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null); - - /** MigratableResource lastMigrateTime. */ - public lastMigrateTime?: (google.protobuf.ITimestamp|null); - - /** MigratableResource lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); - - /** MigratableResource resource. */ - public resource?: ("mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"); + constructor(properties?: google.cloud.aiplatform.v1.IAddContextChildrenResponse); /** - * Creates a new MigratableResource instance using the specified properties. + * Creates a new AddContextChildrenResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MigratableResource instance + * @returns AddContextChildrenResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMigratableResource): google.cloud.aiplatform.v1.MigratableResource; + public static create(properties?: google.cloud.aiplatform.v1.IAddContextChildrenResponse): google.cloud.aiplatform.v1.AddContextChildrenResponse; /** - * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. - * @param message MigratableResource message or plain object to encode + * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. + * @param message AddContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. - * @param message MigratableResource message or plain object to encode + * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. + * @param message AddContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigratableResource message from the specified reader or buffer. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigratableResource + * @returns AddContextChildrenResponse * @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.aiplatform.v1.MigratableResource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddContextChildrenResponse; /** - * Decodes a MigratableResource message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigratableResource + * @returns AddContextChildrenResponse * @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.aiplatform.v1.MigratableResource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddContextChildrenResponse; /** - * Verifies a MigratableResource message. + * Verifies an AddContextChildrenResponse 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 MigratableResource message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigratableResource + * @returns AddContextChildrenResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextChildrenResponse; /** - * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. - * @param message MigratableResource + * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. + * @param message AddContextChildrenResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigratableResource to JSON. + * Converts this AddContextChildrenResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigratableResource + * Gets the default type url for AddContextChildrenResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MigratableResource { - - /** Properties of a MlEngineModelVersion. */ - interface IMlEngineModelVersion { + /** Properties of a RemoveContextChildrenRequest. */ + interface IRemoveContextChildrenRequest { - /** MlEngineModelVersion endpoint */ - endpoint?: (string|null); + /** RemoveContextChildrenRequest context */ + context?: (string|null); - /** MlEngineModelVersion version */ - version?: (string|null); - } + /** RemoveContextChildrenRequest childContexts */ + childContexts?: (string[]|null); + } - /** Represents a MlEngineModelVersion. */ - class MlEngineModelVersion implements IMlEngineModelVersion { + /** Represents a RemoveContextChildrenRequest. */ + class RemoveContextChildrenRequest implements IRemoveContextChildrenRequest { - /** - * Constructs a new MlEngineModelVersion. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion); + /** + * Constructs a new RemoveContextChildrenRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest); - /** MlEngineModelVersion endpoint. */ - public endpoint: string; + /** RemoveContextChildrenRequest context. */ + public context: string; - /** MlEngineModelVersion version. */ - public version: string; + /** RemoveContextChildrenRequest childContexts. */ + public childContexts: string[]; - /** - * Creates a new MlEngineModelVersion instance using the specified properties. - * @param [properties] Properties to set - * @returns MlEngineModelVersion instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion): google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion; + /** + * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveContextChildrenRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; - /** - * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @param message MlEngineModelVersion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @param message MlEngineModelVersion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MlEngineModelVersion - * @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.aiplatform.v1.MigratableResource.MlEngineModelVersion; + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveContextChildrenRequest + * @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.aiplatform.v1.RemoveContextChildrenRequest; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MlEngineModelVersion - * @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.aiplatform.v1.MigratableResource.MlEngineModelVersion; + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveContextChildrenRequest + * @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.aiplatform.v1.RemoveContextChildrenRequest; - /** - * Verifies a MlEngineModelVersion 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); + /** + * Verifies a RemoveContextChildrenRequest 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 MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MlEngineModelVersion - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion; + /** + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveContextChildrenRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; - /** - * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. - * @param message MlEngineModelVersion - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * @param message RemoveContextChildrenRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this MlEngineModelVersion to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this RemoveContextChildrenRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for MlEngineModelVersion - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for RemoveContextChildrenRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of an AutomlModel. */ - interface IAutomlModel { + /** Properties of a RemoveContextChildrenResponse. */ + interface IRemoveContextChildrenResponse { + } - /** AutomlModel model */ - model?: (string|null); + /** Represents a RemoveContextChildrenResponse. */ + class RemoveContextChildrenResponse implements IRemoveContextChildrenResponse { - /** AutomlModel modelDisplayName */ - modelDisplayName?: (string|null); - } + /** + * Constructs a new RemoveContextChildrenResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse); - /** Represents an AutomlModel. */ - class AutomlModel implements IAutomlModel { + /** + * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveContextChildrenResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; - /** - * Constructs a new AutomlModel. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel); + /** + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutomlModel model. */ - public model: string; + /** + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutomlModel modelDisplayName. */ - public modelDisplayName: string; + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveContextChildrenResponse + * @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.aiplatform.v1.RemoveContextChildrenResponse; - /** - * Creates a new AutomlModel instance using the specified properties. - * @param [properties] Properties to set - * @returns AutomlModel instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel): google.cloud.aiplatform.v1.MigratableResource.AutomlModel; + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveContextChildrenResponse + * @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.aiplatform.v1.RemoveContextChildrenResponse; - /** - * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. - * @param message AutomlModel message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a RemoveContextChildrenResponse 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); - /** - * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. - * @param message AutomlModel message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveContextChildrenResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; - /** - * Decodes an AutomlModel message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutomlModel - * @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.aiplatform.v1.MigratableResource.AutomlModel; + /** + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * @param message RemoveContextChildrenResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an AutomlModel message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutomlModel - * @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.aiplatform.v1.MigratableResource.AutomlModel; + /** + * Converts this RemoveContextChildrenResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies an AutomlModel 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); + /** + * Gets the default type url for RemoveContextChildrenResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutomlModel - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.AutomlModel; + /** Properties of a QueryContextLineageSubgraphRequest. */ + interface IQueryContextLineageSubgraphRequest { - /** - * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. - * @param message AutomlModel - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.AutomlModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** QueryContextLineageSubgraphRequest context */ + context?: (string|null); + } - /** - * Converts this AutomlModel to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a QueryContextLineageSubgraphRequest. */ + class QueryContextLineageSubgraphRequest implements IQueryContextLineageSubgraphRequest { - /** - * Gets the default type url for AutomlModel - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new QueryContextLineageSubgraphRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest); - /** Properties of an AutomlDataset. */ - interface IAutomlDataset { + /** QueryContextLineageSubgraphRequest context. */ + public context: string; - /** AutomlDataset dataset */ - dataset?: (string|null); + /** + * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryContextLineageSubgraphRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest): google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest; - /** AutomlDataset datasetDisplayName */ - datasetDisplayName?: (string|null); - } + /** + * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an AutomlDataset. */ - class AutomlDataset implements IAutomlDataset { + /** + * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new AutomlDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset); + /** + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryContextLineageSubgraphRequest + * @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.aiplatform.v1.QueryContextLineageSubgraphRequest; - /** AutomlDataset dataset. */ - public dataset: string; + /** + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryContextLineageSubgraphRequest + * @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.aiplatform.v1.QueryContextLineageSubgraphRequest; - /** AutomlDataset datasetDisplayName. */ - public datasetDisplayName: string; + /** + * Verifies a QueryContextLineageSubgraphRequest 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 new AutomlDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns AutomlDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset): google.cloud.aiplatform.v1.MigratableResource.AutomlDataset; + /** + * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryContextLineageSubgraphRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest; - /** - * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. - * @param message AutomlDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. + * @param message QueryContextLineageSubgraphRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. - * @param message AutomlDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this QueryContextLineageSubgraphRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes an AutomlDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutomlDataset - * @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.aiplatform.v1.MigratableResource.AutomlDataset; + /** + * Gets the default type url for QueryContextLineageSubgraphRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutomlDataset - * @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.aiplatform.v1.MigratableResource.AutomlDataset; + /** Properties of a CreateExecutionRequest. */ + interface ICreateExecutionRequest { - /** - * Verifies an AutomlDataset 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); + /** CreateExecutionRequest parent */ + parent?: (string|null); - /** - * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutomlDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.AutomlDataset; + /** CreateExecutionRequest execution */ + execution?: (google.cloud.aiplatform.v1.IExecution|null); - /** - * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. - * @param message AutomlDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.AutomlDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CreateExecutionRequest executionId */ + executionId?: (string|null); + } - /** - * Converts this AutomlDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a CreateExecutionRequest. */ + class CreateExecutionRequest implements ICreateExecutionRequest { - /** - * Gets the default type url for AutomlDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DataLabelingDataset. */ - interface IDataLabelingDataset { - - /** DataLabelingDataset dataset */ - dataset?: (string|null); - - /** DataLabelingDataset datasetDisplayName */ - datasetDisplayName?: (string|null); - - /** DataLabelingDataset dataLabelingAnnotatedDatasets */ - dataLabelingAnnotatedDatasets?: (google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]|null); - } - - /** Represents a DataLabelingDataset. */ - class DataLabelingDataset implements IDataLabelingDataset { - - /** - * Constructs a new DataLabelingDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset); - - /** DataLabelingDataset dataset. */ - public dataset: string; - - /** DataLabelingDataset datasetDisplayName. */ - public datasetDisplayName: string; - - /** DataLabelingDataset dataLabelingAnnotatedDatasets. */ - public dataLabelingAnnotatedDatasets: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]; - - /** - * Creates a new DataLabelingDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns DataLabelingDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset; - - /** - * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @param message DataLabelingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @param message DataLabelingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataLabelingDataset - * @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.aiplatform.v1.MigratableResource.DataLabelingDataset; - - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DataLabelingDataset - * @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.aiplatform.v1.MigratableResource.DataLabelingDataset; - - /** - * Verifies a DataLabelingDataset 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 DataLabelingDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DataLabelingDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset; - - /** - * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. - * @param message DataLabelingDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DataLabelingDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DataLabelingDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace DataLabelingDataset { - - /** Properties of a DataLabelingAnnotatedDataset. */ - interface IDataLabelingAnnotatedDataset { - - /** DataLabelingAnnotatedDataset annotatedDataset */ - annotatedDataset?: (string|null); - - /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ - annotatedDatasetDisplayName?: (string|null); - } - - /** Represents a DataLabelingAnnotatedDataset. */ - class DataLabelingAnnotatedDataset implements IDataLabelingAnnotatedDataset { - - /** - * Constructs a new DataLabelingAnnotatedDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset); - - /** DataLabelingAnnotatedDataset annotatedDataset. */ - public annotatedDataset: string; - - /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName. */ - public annotatedDatasetDisplayName: string; - - /** - * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns DataLabelingAnnotatedDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @param message DataLabelingAnnotatedDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @param message DataLabelingAnnotatedDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataLabelingAnnotatedDataset - * @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.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DataLabelingAnnotatedDataset - * @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.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - - /** - * Verifies a DataLabelingAnnotatedDataset 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 DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DataLabelingAnnotatedDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + /** + * Constructs a new CreateExecutionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateExecutionRequest); - /** - * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. - * @param message DataLabelingAnnotatedDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CreateExecutionRequest parent. */ + public parent: string; - /** - * Converts this DataLabelingAnnotatedDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CreateExecutionRequest execution. */ + public execution?: (google.cloud.aiplatform.v1.IExecution|null); - /** - * Gets the default type url for DataLabelingAnnotatedDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** CreateExecutionRequest executionId. */ + public executionId: string; - /** Represents a MigrationService */ - class MigrationService extends $protobuf.rpc.Service { + /** + * Creates a new CreateExecutionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateExecutionRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateExecutionRequest): google.cloud.aiplatform.v1.CreateExecutionRequest; /** - * Constructs a new MigrationService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. + * @param message CreateExecutionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static encode(message: google.cloud.aiplatform.v1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Creates new MigrationService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. + * @param message CreateExecutionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MigrationService; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls SearchMigratableResources. - * @param request SearchMigratableResourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse + * Decodes a CreateExecutionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateExecutionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public searchMigratableResources(request: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, callback: google.cloud.aiplatform.v1.MigrationService.SearchMigratableResourcesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateExecutionRequest; /** - * Calls SearchMigratableResources. - * @param request SearchMigratableResourcesRequest message or plain object - * @returns Promise + * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateExecutionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public searchMigratableResources(request: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateExecutionRequest; /** - * Calls BatchMigrateResources. - * @param request BatchMigrateResourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a CreateExecutionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public batchMigrateResources(request: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, callback: google.cloud.aiplatform.v1.MigrationService.BatchMigrateResourcesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls BatchMigrateResources. - * @param request BatchMigrateResourcesRequest message or plain object - * @returns Promise + * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateExecutionRequest */ - public batchMigrateResources(request: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest): Promise; - } + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateExecutionRequest; - namespace MigrationService { + /** + * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. + * @param message CreateExecutionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|searchMigratableResources}. - * @param error Error, if any - * @param [response] SearchMigratableResourcesResponse + * Converts this CreateExecutionRequest to JSON. + * @returns JSON object */ - type SearchMigratableResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SearchMigratableResourcesResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|batchMigrateResources}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for CreateExecutionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type BatchMigrateResourcesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchMigratableResourcesRequest. */ - interface ISearchMigratableResourcesRequest { - - /** SearchMigratableResourcesRequest parent */ - parent?: (string|null); - - /** SearchMigratableResourcesRequest pageSize */ - pageSize?: (number|null); - - /** SearchMigratableResourcesRequest pageToken */ - pageToken?: (string|null); + /** Properties of a GetExecutionRequest. */ + interface IGetExecutionRequest { - /** SearchMigratableResourcesRequest filter */ - filter?: (string|null); + /** GetExecutionRequest name */ + name?: (string|null); } - /** Represents a SearchMigratableResourcesRequest. */ - class SearchMigratableResourcesRequest implements ISearchMigratableResourcesRequest { + /** Represents a GetExecutionRequest. */ + class GetExecutionRequest implements IGetExecutionRequest { /** - * Constructs a new SearchMigratableResourcesRequest. + * Constructs a new GetExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest); - - /** SearchMigratableResourcesRequest parent. */ - public parent: string; - - /** SearchMigratableResourcesRequest pageSize. */ - public pageSize: number; - - /** SearchMigratableResourcesRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1.IGetExecutionRequest); - /** SearchMigratableResourcesRequest filter. */ - public filter: string; + /** GetExecutionRequest name. */ + public name: string; /** - * Creates a new SearchMigratableResourcesRequest instance using the specified properties. + * Creates a new GetExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchMigratableResourcesRequest instance + * @returns GetExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetExecutionRequest): google.cloud.aiplatform.v1.GetExecutionRequest; /** - * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. - * @param message SearchMigratableResourcesRequest message or plain object to encode + * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. + * @param message GetExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. - * @param message SearchMigratableResourcesRequest message or plain object to encode + * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. + * @param message GetExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. + * Decodes a GetExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchMigratableResourcesRequest + * @returns GetExecutionRequest * @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.aiplatform.v1.SearchMigratableResourcesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetExecutionRequest; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchMigratableResourcesRequest + * @returns GetExecutionRequest * @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.aiplatform.v1.SearchMigratableResourcesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetExecutionRequest; /** - * Verifies a SearchMigratableResourcesRequest message. + * Verifies a GetExecutionRequest 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 SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchMigratableResourcesRequest + * @returns GetExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetExecutionRequest; /** - * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. - * @param message SearchMigratableResourcesRequest + * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. + * @param message GetExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchMigratableResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchMigratableResourcesRequest to JSON. + * Converts this GetExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchMigratableResourcesRequest + * Gets the default type url for GetExecutionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchMigratableResourcesResponse. */ - interface ISearchMigratableResourcesResponse { + /** Properties of a ListExecutionsRequest. */ + interface IListExecutionsRequest { - /** SearchMigratableResourcesResponse migratableResources */ - migratableResources?: (google.cloud.aiplatform.v1.IMigratableResource[]|null); + /** ListExecutionsRequest parent */ + parent?: (string|null); - /** SearchMigratableResourcesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListExecutionsRequest pageSize */ + pageSize?: (number|null); + + /** ListExecutionsRequest pageToken */ + pageToken?: (string|null); + + /** ListExecutionsRequest filter */ + filter?: (string|null); + + /** ListExecutionsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a SearchMigratableResourcesResponse. */ - class SearchMigratableResourcesResponse implements ISearchMigratableResourcesResponse { + /** Represents a ListExecutionsRequest. */ + class ListExecutionsRequest implements IListExecutionsRequest { /** - * Constructs a new SearchMigratableResourcesResponse. + * Constructs a new ListExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListExecutionsRequest); - /** SearchMigratableResourcesResponse migratableResources. */ - public migratableResources: google.cloud.aiplatform.v1.IMigratableResource[]; + /** ListExecutionsRequest parent. */ + public parent: string; - /** SearchMigratableResourcesResponse nextPageToken. */ - public nextPageToken: string; + /** ListExecutionsRequest pageSize. */ + public pageSize: number; + + /** ListExecutionsRequest pageToken. */ + public pageToken: string; + + /** ListExecutionsRequest filter. */ + public filter: string; + + /** ListExecutionsRequest orderBy. */ + public orderBy: string; /** - * Creates a new SearchMigratableResourcesResponse instance using the specified properties. + * Creates a new ListExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchMigratableResourcesResponse instance + * @returns ListExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListExecutionsRequest): google.cloud.aiplatform.v1.ListExecutionsRequest; /** - * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. - * @param message SearchMigratableResourcesResponse message or plain object to encode + * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. + * @param message ListExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. - * @param message SearchMigratableResourcesResponse message or plain object to encode + * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. + * @param message ListExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. + * Decodes a ListExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchMigratableResourcesResponse + * @returns ListExecutionsRequest * @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.aiplatform.v1.SearchMigratableResourcesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListExecutionsRequest; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchMigratableResourcesResponse + * @returns ListExecutionsRequest * @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.aiplatform.v1.SearchMigratableResourcesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListExecutionsRequest; /** - * Verifies a SearchMigratableResourcesResponse message. + * Verifies a ListExecutionsRequest 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 SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchMigratableResourcesResponse + * @returns ListExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListExecutionsRequest; /** - * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. - * @param message SearchMigratableResourcesResponse + * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. + * @param message ListExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchMigratableResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchMigratableResourcesResponse to JSON. + * Converts this ListExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchMigratableResourcesResponse + * Gets the default type url for ListExecutionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchMigrateResourcesRequest. */ - interface IBatchMigrateResourcesRequest { + /** Properties of a ListExecutionsResponse. */ + interface IListExecutionsResponse { - /** BatchMigrateResourcesRequest parent */ - parent?: (string|null); + /** ListExecutionsResponse executions */ + executions?: (google.cloud.aiplatform.v1.IExecution[]|null); - /** BatchMigrateResourcesRequest migrateResourceRequests */ - migrateResourceRequests?: (google.cloud.aiplatform.v1.IMigrateResourceRequest[]|null); - } + /** ListExecutionsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a BatchMigrateResourcesRequest. */ - class BatchMigrateResourcesRequest implements IBatchMigrateResourcesRequest { + /** Represents a ListExecutionsResponse. */ + class ListExecutionsResponse implements IListExecutionsResponse { /** - * Constructs a new BatchMigrateResourcesRequest. + * Constructs a new ListExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListExecutionsResponse); - /** BatchMigrateResourcesRequest parent. */ - public parent: string; + /** ListExecutionsResponse executions. */ + public executions: google.cloud.aiplatform.v1.IExecution[]; - /** BatchMigrateResourcesRequest migrateResourceRequests. */ - public migrateResourceRequests: google.cloud.aiplatform.v1.IMigrateResourceRequest[]; + /** ListExecutionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchMigrateResourcesRequest instance using the specified properties. + * Creates a new ListExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesRequest instance + * @returns ListExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListExecutionsResponse): google.cloud.aiplatform.v1.ListExecutionsResponse; /** - * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. - * @param message BatchMigrateResourcesRequest message or plain object to encode + * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. + * @param message ListExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. - * @param message BatchMigrateResourcesRequest message or plain object to encode + * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. + * @param message ListExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. + * Decodes a ListExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesRequest + * @returns ListExecutionsResponse * @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.aiplatform.v1.BatchMigrateResourcesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListExecutionsResponse; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesRequest + * @returns ListExecutionsResponse * @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.aiplatform.v1.BatchMigrateResourcesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListExecutionsResponse; /** - * Verifies a BatchMigrateResourcesRequest message. + * Verifies a ListExecutionsResponse 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 BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesRequest + * @returns ListExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListExecutionsResponse; /** - * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesRequest + * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. + * @param message ListExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesRequest to JSON. + * Converts this ListExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchMigrateResourcesRequest + * Gets the default type url for ListExecutionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MigrateResourceRequest. */ - interface IMigrateResourceRequest { - - /** MigrateResourceRequest migrateMlEngineModelVersionConfig */ - migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); + /** Properties of an UpdateExecutionRequest. */ + interface IUpdateExecutionRequest { - /** MigrateResourceRequest migrateAutomlModelConfig */ - migrateAutomlModelConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); + /** UpdateExecutionRequest execution */ + execution?: (google.cloud.aiplatform.v1.IExecution|null); - /** MigrateResourceRequest migrateAutomlDatasetConfig */ - migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + /** UpdateExecutionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** MigrateResourceRequest migrateDataLabelingDatasetConfig */ - migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + /** UpdateExecutionRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents a MigrateResourceRequest. */ - class MigrateResourceRequest implements IMigrateResourceRequest { + /** Represents an UpdateExecutionRequest. */ + class UpdateExecutionRequest implements IUpdateExecutionRequest { /** - * Constructs a new MigrateResourceRequest. + * Constructs a new UpdateExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMigrateResourceRequest); - - /** MigrateResourceRequest migrateMlEngineModelVersionConfig. */ - public migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - - /** MigrateResourceRequest migrateAutomlModelConfig. */ - public migrateAutomlModelConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateExecutionRequest); - /** MigrateResourceRequest migrateAutomlDatasetConfig. */ - public migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + /** UpdateExecutionRequest execution. */ + public execution?: (google.cloud.aiplatform.v1.IExecution|null); - /** MigrateResourceRequest migrateDataLabelingDatasetConfig. */ - public migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + /** UpdateExecutionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** MigrateResourceRequest request. */ - public request?: ("migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"); + /** UpdateExecutionRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new MigrateResourceRequest instance using the specified properties. + * Creates a new UpdateExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateResourceRequest instance + * @returns UpdateExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMigrateResourceRequest): google.cloud.aiplatform.v1.MigrateResourceRequest; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateExecutionRequest): google.cloud.aiplatform.v1.UpdateExecutionRequest; /** - * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. - * @param message MigrateResourceRequest message or plain object to encode + * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. + * @param message UpdateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. - * @param message MigrateResourceRequest message or plain object to encode + * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. + * @param message UpdateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateResourceRequest + * @returns UpdateExecutionRequest * @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.aiplatform.v1.MigrateResourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateExecutionRequest; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateResourceRequest + * @returns UpdateExecutionRequest * @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.aiplatform.v1.MigrateResourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateExecutionRequest; /** - * Verifies a MigrateResourceRequest message. + * Verifies an UpdateExecutionRequest 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 MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateResourceRequest + * @returns UpdateExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateExecutionRequest; /** - * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. - * @param message MigrateResourceRequest + * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. + * @param message UpdateExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateResourceRequest to JSON. + * Converts this UpdateExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateResourceRequest + * Gets the default type url for UpdateExecutionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MigrateResourceRequest { + /** Properties of a DeleteExecutionRequest. */ + interface IDeleteExecutionRequest { - /** Properties of a MigrateMlEngineModelVersionConfig. */ - interface IMigrateMlEngineModelVersionConfig { + /** DeleteExecutionRequest name */ + name?: (string|null); - /** MigrateMlEngineModelVersionConfig endpoint */ - endpoint?: (string|null); + /** DeleteExecutionRequest etag */ + etag?: (string|null); + } - /** MigrateMlEngineModelVersionConfig modelVersion */ - modelVersion?: (string|null); + /** Represents a DeleteExecutionRequest. */ + class DeleteExecutionRequest implements IDeleteExecutionRequest { - /** MigrateMlEngineModelVersionConfig modelDisplayName */ - modelDisplayName?: (string|null); - } + /** + * Constructs a new DeleteExecutionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteExecutionRequest); - /** Represents a MigrateMlEngineModelVersionConfig. */ - class MigrateMlEngineModelVersionConfig implements IMigrateMlEngineModelVersionConfig { + /** DeleteExecutionRequest name. */ + public name: string; - /** - * Constructs a new MigrateMlEngineModelVersionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig); + /** DeleteExecutionRequest etag. */ + public etag: string; - /** MigrateMlEngineModelVersionConfig endpoint. */ - public endpoint: string; + /** + * Creates a new DeleteExecutionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteExecutionRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteExecutionRequest): google.cloud.aiplatform.v1.DeleteExecutionRequest; - /** MigrateMlEngineModelVersionConfig modelVersion. */ - public modelVersion: string; + /** + * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. + * @param message DeleteExecutionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** MigrateMlEngineModelVersionConfig modelDisplayName. */ - public modelDisplayName: string; + /** + * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. + * @param message DeleteExecutionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateMlEngineModelVersionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + /** + * Decodes a DeleteExecutionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteExecutionRequest + * @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.aiplatform.v1.DeleteExecutionRequest; - /** - * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @param message MigrateMlEngineModelVersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteExecutionRequest + * @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.aiplatform.v1.DeleteExecutionRequest; - /** - * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @param message MigrateMlEngineModelVersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a DeleteExecutionRequest 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); - /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateMlEngineModelVersionConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + /** + * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteExecutionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteExecutionRequest; - /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateMlEngineModelVersionConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + /** + * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. + * @param message DeleteExecutionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a MigrateMlEngineModelVersionConfig 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); + /** + * Converts this DeleteExecutionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateMlEngineModelVersionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + /** + * Gets the default type url for DeleteExecutionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. - * @param message MigrateMlEngineModelVersionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a PurgeExecutionsRequest. */ + interface IPurgeExecutionsRequest { - /** - * Converts this MigrateMlEngineModelVersionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PurgeExecutionsRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for MigrateMlEngineModelVersionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PurgeExecutionsRequest filter */ + filter?: (string|null); - /** Properties of a MigrateAutomlModelConfig. */ - interface IMigrateAutomlModelConfig { + /** PurgeExecutionsRequest force */ + force?: (boolean|null); + } - /** MigrateAutomlModelConfig model */ - model?: (string|null); + /** Represents a PurgeExecutionsRequest. */ + class PurgeExecutionsRequest implements IPurgeExecutionsRequest { - /** MigrateAutomlModelConfig modelDisplayName */ - modelDisplayName?: (string|null); - } + /** + * Constructs a new PurgeExecutionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsRequest); - /** Represents a MigrateAutomlModelConfig. */ - class MigrateAutomlModelConfig implements IMigrateAutomlModelConfig { + /** PurgeExecutionsRequest parent. */ + public parent: string; - /** - * Constructs a new MigrateAutomlModelConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig); + /** PurgeExecutionsRequest filter. */ + public filter: string; - /** MigrateAutomlModelConfig model. */ - public model: string; + /** PurgeExecutionsRequest force. */ + public force: boolean; - /** MigrateAutomlModelConfig modelDisplayName. */ - public modelDisplayName: string; + /** + * Creates a new PurgeExecutionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PurgeExecutionsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsRequest): google.cloud.aiplatform.v1.PurgeExecutionsRequest; - /** - * Creates a new MigrateAutomlModelConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateAutomlModelConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** + * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. + * @param message PurgeExecutionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @param message MigrateAutomlModelConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. + * @param message PurgeExecutionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @param message MigrateAutomlModelConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PurgeExecutionsRequest + * @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.aiplatform.v1.PurgeExecutionsRequest; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateAutomlModelConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PurgeExecutionsRequest + * @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.aiplatform.v1.PurgeExecutionsRequest; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateAutomlModelConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** + * Verifies a PurgeExecutionsRequest 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); - /** - * Verifies a MigrateAutomlModelConfig 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 PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PurgeExecutionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsRequest; - /** - * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateAutomlModelConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** + * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. + * @param message PurgeExecutionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. - * @param message MigrateAutomlModelConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this PurgeExecutionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this MigrateAutomlModelConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for PurgeExecutionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for MigrateAutomlModelConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateAutomlDatasetConfig. */ - interface IMigrateAutomlDatasetConfig { - - /** MigrateAutomlDatasetConfig dataset */ - dataset?: (string|null); - - /** MigrateAutomlDatasetConfig datasetDisplayName */ - datasetDisplayName?: (string|null); - } - - /** Represents a MigrateAutomlDatasetConfig. */ - class MigrateAutomlDatasetConfig implements IMigrateAutomlDatasetConfig { - - /** - * Constructs a new MigrateAutomlDatasetConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig); - - /** MigrateAutomlDatasetConfig dataset. */ - public dataset: string; - - /** MigrateAutomlDatasetConfig datasetDisplayName. */ - public datasetDisplayName: string; - - /** - * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateAutomlDatasetConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - - /** - * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @param message MigrateAutomlDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @param message MigrateAutomlDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateAutomlDatasetConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - - /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateAutomlDatasetConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - - /** - * Verifies a MigrateAutomlDatasetConfig 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 MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateAutomlDatasetConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - - /** - * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateAutomlDatasetConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateAutomlDatasetConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateAutomlDatasetConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateDataLabelingDatasetConfig. */ - interface IMigrateDataLabelingDatasetConfig { - - /** MigrateDataLabelingDatasetConfig dataset */ - dataset?: (string|null); - - /** MigrateDataLabelingDatasetConfig datasetDisplayName */ - datasetDisplayName?: (string|null); - - /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs */ - migrateDataLabelingAnnotatedDatasetConfigs?: (google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]|null); - } - - /** Represents a MigrateDataLabelingDatasetConfig. */ - class MigrateDataLabelingDatasetConfig implements IMigrateDataLabelingDatasetConfig { - - /** - * Constructs a new MigrateDataLabelingDatasetConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig); - - /** MigrateDataLabelingDatasetConfig dataset. */ - public dataset: string; - - /** MigrateDataLabelingDatasetConfig datasetDisplayName. */ - public datasetDisplayName: string; - - /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. */ - public migrateDataLabelingAnnotatedDatasetConfigs: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]; - - /** - * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateDataLabelingDatasetConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; - - /** - * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateDataLabelingDatasetConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; - - /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateDataLabelingDatasetConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; - - /** - * Verifies a MigrateDataLabelingDatasetConfig 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 MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateDataLabelingDatasetConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; - - /** - * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateDataLabelingDatasetConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateDataLabelingDatasetConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateDataLabelingDatasetConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MigrateDataLabelingDatasetConfig { - - /** Properties of a MigrateDataLabelingAnnotatedDatasetConfig. */ - interface IMigrateDataLabelingAnnotatedDatasetConfig { - - /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset */ - annotatedDataset?: (string|null); - } - - /** Represents a MigrateDataLabelingAnnotatedDatasetConfig. */ - class MigrateDataLabelingAnnotatedDatasetConfig implements IMigrateDataLabelingAnnotatedDatasetConfig { - - /** - * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig); - - /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. */ - public annotatedDataset: string; - - /** - * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateDataLabelingAnnotatedDatasetConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; - - /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateDataLabelingAnnotatedDatasetConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; - - /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateDataLabelingAnnotatedDatasetConfig - * @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.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; - - /** - * Verifies a MigrateDataLabelingAnnotatedDatasetConfig 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 MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateDataLabelingAnnotatedDatasetConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; - - /** - * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateDataLabelingAnnotatedDatasetConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** Properties of a PurgeExecutionsResponse. */ + interface IPurgeExecutionsResponse { - /** Properties of a BatchMigrateResourcesResponse. */ - interface IBatchMigrateResourcesResponse { + /** PurgeExecutionsResponse purgeCount */ + purgeCount?: (number|Long|string|null); - /** BatchMigrateResourcesResponse migrateResourceResponses */ - migrateResourceResponses?: (google.cloud.aiplatform.v1.IMigrateResourceResponse[]|null); + /** PurgeExecutionsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents a BatchMigrateResourcesResponse. */ - class BatchMigrateResourcesResponse implements IBatchMigrateResourcesResponse { + /** Represents a PurgeExecutionsResponse. */ + class PurgeExecutionsResponse implements IPurgeExecutionsResponse { /** - * Constructs a new BatchMigrateResourcesResponse. + * Constructs a new PurgeExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsResponse); - /** BatchMigrateResourcesResponse migrateResourceResponses. */ - public migrateResourceResponses: google.cloud.aiplatform.v1.IMigrateResourceResponse[]; + /** PurgeExecutionsResponse purgeCount. */ + public purgeCount: (number|Long|string); + + /** PurgeExecutionsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new BatchMigrateResourcesResponse instance using the specified properties. + * Creates a new PurgeExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesResponse instance + * @returns PurgeExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsResponse): google.cloud.aiplatform.v1.PurgeExecutionsResponse; /** - * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. - * @param message BatchMigrateResourcesResponse message or plain object to encode + * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. + * @param message PurgeExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. - * @param message BatchMigrateResourcesResponse message or plain object to encode + * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. + * @param message PurgeExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesResponse + * @returns PurgeExecutionsResponse * @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.aiplatform.v1.BatchMigrateResourcesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeExecutionsResponse; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesResponse + * @returns PurgeExecutionsResponse * @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.aiplatform.v1.BatchMigrateResourcesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeExecutionsResponse; /** - * Verifies a BatchMigrateResourcesResponse message. + * Verifies a PurgeExecutionsResponse 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 BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesResponse + * @returns PurgeExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsResponse; /** - * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesResponse + * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. + * @param message PurgeExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesResponse to JSON. + * Converts this PurgeExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchMigrateResourcesResponse + * Gets the default type url for PurgeExecutionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MigrateResourceResponse. */ - interface IMigrateResourceResponse { - - /** MigrateResourceResponse dataset */ - dataset?: (string|null); - - /** MigrateResourceResponse model */ - model?: (string|null); + /** Properties of a PurgeExecutionsMetadata. */ + interface IPurgeExecutionsMetadata { - /** MigrateResourceResponse migratableResource */ - migratableResource?: (google.cloud.aiplatform.v1.IMigratableResource|null); + /** PurgeExecutionsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a MigrateResourceResponse. */ - class MigrateResourceResponse implements IMigrateResourceResponse { + /** Represents a PurgeExecutionsMetadata. */ + class PurgeExecutionsMetadata implements IPurgeExecutionsMetadata { /** - * Constructs a new MigrateResourceResponse. + * Constructs a new PurgeExecutionsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMigrateResourceResponse); - - /** MigrateResourceResponse dataset. */ - public dataset?: (string|null); - - /** MigrateResourceResponse model. */ - public model?: (string|null); - - /** MigrateResourceResponse migratableResource. */ - public migratableResource?: (google.cloud.aiplatform.v1.IMigratableResource|null); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata); - /** MigrateResourceResponse migratedResource. */ - public migratedResource?: ("dataset"|"model"); + /** PurgeExecutionsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new MigrateResourceResponse instance using the specified properties. + * Creates a new PurgeExecutionsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateResourceResponse instance + * @returns PurgeExecutionsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMigrateResourceResponse): google.cloud.aiplatform.v1.MigrateResourceResponse; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; /** - * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. - * @param message MigrateResourceResponse message or plain object to encode + * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. + * @param message PurgeExecutionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. - * @param message MigrateResourceResponse message or plain object to encode + * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. + * @param message PurgeExecutionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateResourceResponse + * @returns PurgeExecutionsMetadata * @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.aiplatform.v1.MigrateResourceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateResourceResponse + * @returns PurgeExecutionsMetadata * @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.aiplatform.v1.MigrateResourceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; /** - * Verifies a MigrateResourceResponse message. + * Verifies a PurgeExecutionsMetadata 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 MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateResourceResponse + * @returns PurgeExecutionsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; /** - * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. - * @param message MigrateResourceResponse + * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. + * @param message PurgeExecutionsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateResourceResponse to JSON. + * Converts this PurgeExecutionsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateResourceResponse + * Gets the default type url for PurgeExecutionsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchMigrateResourcesOperationMetadata. */ - interface IBatchMigrateResourcesOperationMetadata { + /** Properties of an AddExecutionEventsRequest. */ + interface IAddExecutionEventsRequest { - /** BatchMigrateResourcesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** AddExecutionEventsRequest execution */ + execution?: (string|null); - /** BatchMigrateResourcesOperationMetadata partialResults */ - partialResults?: (google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult[]|null); + /** AddExecutionEventsRequest events */ + events?: (google.cloud.aiplatform.v1.IEvent[]|null); } - /** Represents a BatchMigrateResourcesOperationMetadata. */ - class BatchMigrateResourcesOperationMetadata implements IBatchMigrateResourcesOperationMetadata { + /** Represents an AddExecutionEventsRequest. */ + class AddExecutionEventsRequest implements IAddExecutionEventsRequest { /** - * Constructs a new BatchMigrateResourcesOperationMetadata. + * Constructs a new AddExecutionEventsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsRequest); - /** BatchMigrateResourcesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** AddExecutionEventsRequest execution. */ + public execution: string; - /** BatchMigrateResourcesOperationMetadata partialResults. */ - public partialResults: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult[]; + /** AddExecutionEventsRequest events. */ + public events: google.cloud.aiplatform.v1.IEvent[]; /** - * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. + * Creates a new AddExecutionEventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesOperationMetadata instance + * @returns AddExecutionEventsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsRequest): google.cloud.aiplatform.v1.AddExecutionEventsRequest; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode + * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * @param message AddExecutionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode + * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * @param message AddExecutionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesOperationMetadata + * @returns AddExecutionEventsRequest * @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.aiplatform.v1.BatchMigrateResourcesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddExecutionEventsRequest; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesOperationMetadata + * @returns AddExecutionEventsRequest * @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.aiplatform.v1.BatchMigrateResourcesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddExecutionEventsRequest; /** - * Verifies a BatchMigrateResourcesOperationMetadata message. + * Verifies an AddExecutionEventsRequest 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 BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesOperationMetadata + * @returns AddExecutionEventsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddExecutionEventsRequest; /** - * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesOperationMetadata + * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. + * @param message AddExecutionEventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddExecutionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesOperationMetadata to JSON. + * Converts this AddExecutionEventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchMigrateResourcesOperationMetadata + * Gets the default type url for AddExecutionEventsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace BatchMigrateResourcesOperationMetadata { - - /** Properties of a PartialResult. */ - interface IPartialResult { - - /** PartialResult error */ - error?: (google.rpc.IStatus|null); - - /** PartialResult model */ - model?: (string|null); - - /** PartialResult dataset */ - dataset?: (string|null); - - /** PartialResult request */ - request?: (google.cloud.aiplatform.v1.IMigrateResourceRequest|null); - } - - /** Represents a PartialResult. */ - class PartialResult implements IPartialResult { - - /** - * Constructs a new PartialResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult); - - /** PartialResult error. */ - public error?: (google.rpc.IStatus|null); - - /** PartialResult model. */ - public model?: (string|null); - - /** PartialResult dataset. */ - public dataset?: (string|null); - - /** PartialResult request. */ - public request?: (google.cloud.aiplatform.v1.IMigrateResourceRequest|null); - - /** PartialResult result. */ - public result?: ("error"|"model"|"dataset"); - - /** - * Creates a new PartialResult instance using the specified properties. - * @param [properties] Properties to set - * @returns PartialResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; - - /** - * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @param message PartialResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @param message PartialResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PartialResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PartialResult - * @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.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; - - /** - * Decodes a PartialResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PartialResult - * @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.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; - - /** - * Verifies a PartialResult 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 PartialResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PartialResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; - - /** - * Creates a plain object from a PartialResult message. Also converts values to other types if specified. - * @param message PartialResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PartialResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PartialResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ModelEvaluation. */ - interface IModelEvaluation { - - /** ModelEvaluation name */ - name?: (string|null); - - /** ModelEvaluation displayName */ - displayName?: (string|null); - - /** ModelEvaluation metricsSchemaUri */ - metricsSchemaUri?: (string|null); - - /** ModelEvaluation metrics */ - metrics?: (google.protobuf.IValue|null); - - /** ModelEvaluation createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** ModelEvaluation sliceDimensions */ - sliceDimensions?: (string[]|null); - - /** ModelEvaluation dataItemSchemaUri */ - dataItemSchemaUri?: (string|null); - - /** ModelEvaluation annotationSchemaUri */ - annotationSchemaUri?: (string|null); - - /** ModelEvaluation modelExplanation */ - modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); - - /** ModelEvaluation explanationSpecs */ - explanationSpecs?: (google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec[]|null); - - /** ModelEvaluation metadata */ - metadata?: (google.protobuf.IValue|null); + /** Properties of an AddExecutionEventsResponse. */ + interface IAddExecutionEventsResponse { } - /** Represents a ModelEvaluation. */ - class ModelEvaluation implements IModelEvaluation { + /** Represents an AddExecutionEventsResponse. */ + class AddExecutionEventsResponse implements IAddExecutionEventsResponse { /** - * Constructs a new ModelEvaluation. + * Constructs a new AddExecutionEventsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelEvaluation); - - /** ModelEvaluation name. */ - public name: string; - - /** ModelEvaluation displayName. */ - public displayName: string; - - /** ModelEvaluation metricsSchemaUri. */ - public metricsSchemaUri: string; - - /** ModelEvaluation metrics. */ - public metrics?: (google.protobuf.IValue|null); - - /** ModelEvaluation createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** ModelEvaluation sliceDimensions. */ - public sliceDimensions: string[]; - - /** ModelEvaluation dataItemSchemaUri. */ - public dataItemSchemaUri: string; - - /** ModelEvaluation annotationSchemaUri. */ - public annotationSchemaUri: string; - - /** ModelEvaluation modelExplanation. */ - public modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); - - /** ModelEvaluation explanationSpecs. */ - public explanationSpecs: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec[]; - - /** ModelEvaluation metadata. */ - public metadata?: (google.protobuf.IValue|null); + constructor(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsResponse); /** - * Creates a new ModelEvaluation instance using the specified properties. + * Creates a new AddExecutionEventsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ModelEvaluation instance + * @returns AddExecutionEventsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelEvaluation): google.cloud.aiplatform.v1.ModelEvaluation; + public static create(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsResponse): google.cloud.aiplatform.v1.AddExecutionEventsResponse; /** - * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. - * @param message ModelEvaluation message or plain object to encode + * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * @param message AddExecutionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. - * @param message ModelEvaluation message or plain object to encode + * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * @param message AddExecutionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelEvaluation message from the specified reader or buffer. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelEvaluation + * @returns AddExecutionEventsResponse * @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.aiplatform.v1.ModelEvaluation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddExecutionEventsResponse; /** - * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelEvaluation + * @returns AddExecutionEventsResponse * @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.aiplatform.v1.ModelEvaluation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddExecutionEventsResponse; /** - * Verifies a ModelEvaluation message. + * Verifies an AddExecutionEventsResponse 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 ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelEvaluation + * @returns AddExecutionEventsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddExecutionEventsResponse; /** - * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. - * @param message ModelEvaluation + * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. + * @param message AddExecutionEventsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddExecutionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelEvaluation to JSON. + * Converts this AddExecutionEventsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelEvaluation + * Gets the default type url for AddExecutionEventsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelEvaluation { - - /** Properties of a ModelEvaluationExplanationSpec. */ - interface IModelEvaluationExplanationSpec { - - /** ModelEvaluationExplanationSpec explanationType */ - explanationType?: (string|null); - - /** ModelEvaluationExplanationSpec explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1.IExplanationSpec|null); - } - - /** Represents a ModelEvaluationExplanationSpec. */ - class ModelEvaluationExplanationSpec implements IModelEvaluationExplanationSpec { - - /** - * Constructs a new ModelEvaluationExplanationSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec); - - /** ModelEvaluationExplanationSpec explanationType. */ - public explanationType: string; - - /** ModelEvaluationExplanationSpec explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1.IExplanationSpec|null); - - /** - * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ModelEvaluationExplanationSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec): google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @param message ModelEvaluationExplanationSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @param message ModelEvaluationExplanationSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ModelEvaluationExplanationSpec - * @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.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ModelEvaluationExplanationSpec - * @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.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Verifies a ModelEvaluationExplanationSpec 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 ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ModelEvaluationExplanationSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. - * @param message ModelEvaluationExplanationSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ModelEvaluationExplanationSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ModelEvaluationExplanationSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ModelEvaluationSlice. */ - interface IModelEvaluationSlice { - - /** ModelEvaluationSlice name */ - name?: (string|null); - - /** ModelEvaluationSlice slice */ - slice?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null); - - /** ModelEvaluationSlice metricsSchemaUri */ - metricsSchemaUri?: (string|null); - - /** ModelEvaluationSlice metrics */ - metrics?: (google.protobuf.IValue|null); + /** Properties of a QueryExecutionInputsAndOutputsRequest. */ + interface IQueryExecutionInputsAndOutputsRequest { - /** ModelEvaluationSlice createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** QueryExecutionInputsAndOutputsRequest execution */ + execution?: (string|null); } - /** Represents a ModelEvaluationSlice. */ - class ModelEvaluationSlice implements IModelEvaluationSlice { + /** Represents a QueryExecutionInputsAndOutputsRequest. */ + class QueryExecutionInputsAndOutputsRequest implements IQueryExecutionInputsAndOutputsRequest { /** - * Constructs a new ModelEvaluationSlice. + * Constructs a new QueryExecutionInputsAndOutputsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelEvaluationSlice); - - /** ModelEvaluationSlice name. */ - public name: string; - - /** ModelEvaluationSlice slice. */ - public slice?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null); - - /** ModelEvaluationSlice metricsSchemaUri. */ - public metricsSchemaUri: string; - - /** ModelEvaluationSlice metrics. */ - public metrics?: (google.protobuf.IValue|null); + constructor(properties?: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest); - /** ModelEvaluationSlice createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** QueryExecutionInputsAndOutputsRequest execution. */ + public execution: string; /** - * Creates a new ModelEvaluationSlice instance using the specified properties. + * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelEvaluationSlice instance + * @returns QueryExecutionInputsAndOutputsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelEvaluationSlice): google.cloud.aiplatform.v1.ModelEvaluationSlice; + public static create(properties?: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; /** - * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. - * @param message ModelEvaluationSlice message or plain object to encode + * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. - * @param message ModelEvaluationSlice message or plain object to encode + * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelEvaluationSlice + * @returns QueryExecutionInputsAndOutputsRequest * @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.aiplatform.v1.ModelEvaluationSlice; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelEvaluationSlice + * @returns QueryExecutionInputsAndOutputsRequest * @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.aiplatform.v1.ModelEvaluationSlice; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; /** - * Verifies a ModelEvaluationSlice message. + * Verifies a QueryExecutionInputsAndOutputsRequest 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 ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. + * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelEvaluationSlice + * @returns QueryExecutionInputsAndOutputsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; /** - * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. - * @param message ModelEvaluationSlice + * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. + * @param message QueryExecutionInputsAndOutputsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelEvaluationSlice to JSON. + * Converts this QueryExecutionInputsAndOutputsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelEvaluationSlice + * Gets the default type url for QueryExecutionInputsAndOutputsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelEvaluationSlice { + /** Properties of a CreateMetadataSchemaRequest. */ + interface ICreateMetadataSchemaRequest { - /** Properties of a Slice. */ - interface ISlice { + /** CreateMetadataSchemaRequest parent */ + parent?: (string|null); - /** Slice dimension */ - dimension?: (string|null); + /** CreateMetadataSchemaRequest metadataSchema */ + metadataSchema?: (google.cloud.aiplatform.v1.IMetadataSchema|null); - /** Slice value */ - value?: (string|null); - } + /** CreateMetadataSchemaRequest metadataSchemaId */ + metadataSchemaId?: (string|null); + } - /** Represents a Slice. */ - class Slice implements ISlice { + /** Represents a CreateMetadataSchemaRequest. */ + class CreateMetadataSchemaRequest implements ICreateMetadataSchemaRequest { - /** - * Constructs a new Slice. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice); + /** + * Constructs a new CreateMetadataSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest); - /** Slice dimension. */ - public dimension: string; - - /** Slice value. */ - public value: string; - - /** - * Creates a new Slice instance using the specified properties. - * @param [properties] Properties to set - * @returns Slice instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice; - - /** - * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @param message Slice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @param message Slice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Slice message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Slice - * @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.aiplatform.v1.ModelEvaluationSlice.Slice; - - /** - * Decodes a Slice message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Slice - * @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.aiplatform.v1.ModelEvaluationSlice.Slice; - - /** - * Verifies a Slice 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 Slice message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Slice - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice; - - /** - * Creates a plain object from a Slice message. Also converts values to other types if specified. - * @param message Slice - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Slice to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CreateMetadataSchemaRequest parent. */ + public parent: string; - /** - * Gets the default type url for Slice - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** CreateMetadataSchemaRequest metadataSchema. */ + public metadataSchema?: (google.cloud.aiplatform.v1.IMetadataSchema|null); - /** Represents a ModelService */ - class ModelService extends $protobuf.rpc.Service { + /** CreateMetadataSchemaRequest metadataSchemaId. */ + public metadataSchemaId: string; /** - * Constructs a new ModelService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateMetadataSchemaRequest instance */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; /** - * Creates new ModelService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * @param message CreateMetadataSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelService; + public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UploadModel. - * @param request UploadModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * @param message CreateMetadataSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public uploadModel(request: google.cloud.aiplatform.v1.IUploadModelRequest, callback: google.cloud.aiplatform.v1.ModelService.UploadModelCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UploadModel. - * @param request UploadModelRequest message or plain object - * @returns Promise + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public uploadModel(request: google.cloud.aiplatform.v1.IUploadModelRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; /** - * Calls GetModel. - * @param request GetModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getModel(request: google.cloud.aiplatform.v1.IGetModelRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; /** - * Calls GetModel. - * @param request GetModelRequest message or plain object - * @returns Promise + * Verifies a CreateMetadataSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getModel(request: google.cloud.aiplatform.v1.IGetModelRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListModels. - * @param request ListModelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelsResponse + * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateMetadataSchemaRequest */ - public listModels(request: google.cloud.aiplatform.v1.IListModelsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelsCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; /** - * Calls ListModels. - * @param request ListModelsRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * @param message CreateMetadataSchemaRequest + * @param [options] Conversion options + * @returns Plain object */ - public listModels(request: google.cloud.aiplatform.v1.IListModelsRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListModelVersions. - * @param request ListModelVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelVersionsResponse + * Converts this CreateMetadataSchemaRequest to JSON. + * @returns JSON object */ - public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ListModelVersions. - * @param request ListModelVersionsRequest message or plain object - * @returns Promise + * Gets the default type url for CreateMetadataSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetMetadataSchemaRequest. */ + interface IGetMetadataSchemaRequest { + + /** GetMetadataSchemaRequest name */ + name?: (string|null); + } + + /** Represents a GetMetadataSchemaRequest. */ + class GetMetadataSchemaRequest implements IGetMetadataSchemaRequest { /** - * Calls UpdateModel. - * @param request UpdateModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Constructs a new GetMetadataSchemaRequest. + * @param [properties] Properties to set */ - public updateModel(request: google.cloud.aiplatform.v1.IUpdateModelRequest, callback: google.cloud.aiplatform.v1.ModelService.UpdateModelCallback): void; + constructor(properties?: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest); + + /** GetMetadataSchemaRequest name. */ + public name: string; /** - * Calls UpdateModel. - * @param request UpdateModelRequest message or plain object - * @returns Promise + * Creates a new GetMetadataSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetMetadataSchemaRequest instance */ - public updateModel(request: google.cloud.aiplatform.v1.IUpdateModelRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; /** - * Calls DeleteModel. - * @param request DeleteModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * @param message GetMetadataSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteModel(request: google.cloud.aiplatform.v1.IDeleteModelRequest, callback: google.cloud.aiplatform.v1.ModelService.DeleteModelCallback): void; + public static encode(message: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteModel. - * @param request DeleteModelRequest message or plain object - * @returns Promise + * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * @param message GetMetadataSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteModel(request: google.cloud.aiplatform.v1.IDeleteModelRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteModelVersion. - * @param request DeleteModelVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, callback: google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; /** - * Calls DeleteModelVersion. - * @param request DeleteModelVersionRequest message or plain object - * @returns Promise + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; /** - * Calls MergeVersionAliases. - * @param request MergeVersionAliasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Verifies a GetMetadataSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, callback: google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls MergeVersionAliases. - * @param request MergeVersionAliasesRequest message or plain object - * @returns Promise + * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetMetadataSchemaRequest */ - public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; /** - * Calls ExportModel. - * @param request ExportModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. + * @param message GetMetadataSchemaRequest + * @param [options] Conversion options + * @returns Plain object */ - public exportModel(request: google.cloud.aiplatform.v1.IExportModelRequest, callback: google.cloud.aiplatform.v1.ModelService.ExportModelCallback): void; + public static toObject(message: google.cloud.aiplatform.v1.GetMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ExportModel. - * @param request ExportModelRequest message or plain object - * @returns Promise + * Converts this GetMetadataSchemaRequest to JSON. + * @returns JSON object */ - public exportModel(request: google.cloud.aiplatform.v1.IExportModelRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls ImportModelEvaluation. - * @param request ImportModelEvaluationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluation + * Gets the default type url for GetMetadataSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public importModelEvaluation(request: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, callback: google.cloud.aiplatform.v1.ModelService.ImportModelEvaluationCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListMetadataSchemasRequest. */ + interface IListMetadataSchemasRequest { + + /** ListMetadataSchemasRequest parent */ + parent?: (string|null); + + /** ListMetadataSchemasRequest pageSize */ + pageSize?: (number|null); + + /** ListMetadataSchemasRequest pageToken */ + pageToken?: (string|null); + + /** ListMetadataSchemasRequest filter */ + filter?: (string|null); + } + + /** Represents a ListMetadataSchemasRequest. */ + class ListMetadataSchemasRequest implements IListMetadataSchemasRequest { /** - * Calls ImportModelEvaluation. - * @param request ImportModelEvaluationRequest message or plain object - * @returns Promise + * Constructs a new ListMetadataSchemasRequest. + * @param [properties] Properties to set */ - public importModelEvaluation(request: google.cloud.aiplatform.v1.IImportModelEvaluationRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasRequest); + + /** ListMetadataSchemasRequest parent. */ + public parent: string; + + /** ListMetadataSchemasRequest pageSize. */ + public pageSize: number; + + /** ListMetadataSchemasRequest pageToken. */ + public pageToken: string; + + /** ListMetadataSchemasRequest filter. */ + public filter: string; /** - * Calls BatchImportModelEvaluationSlices. - * @param request BatchImportModelEvaluationSlicesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + * Creates a new ListMetadataSchemasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMetadataSchemasRequest instance */ - public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasRequest): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; /** - * Calls BatchImportModelEvaluationSlices. - * @param request BatchImportModelEvaluationSlicesRequest message or plain object - * @returns Promise + * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * @param message ListMetadataSchemasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetModelEvaluation. - * @param request GetModelEvaluationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluation + * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * @param message ListMetadataSchemasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getModelEvaluation(request: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelEvaluationCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetModelEvaluation. - * @param request GetModelEvaluationRequest message or plain object - * @returns Promise + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMetadataSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getModelEvaluation(request: google.cloud.aiplatform.v1.IGetModelEvaluationRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; /** - * Calls ListModelEvaluations. - * @param request ListModelEvaluationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListMetadataSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listModelEvaluations(request: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelEvaluationsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; /** - * Calls ListModelEvaluations. - * @param request ListModelEvaluationsRequest message or plain object - * @returns Promise + * Verifies a ListMetadataSchemasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listModelEvaluations(request: google.cloud.aiplatform.v1.IListModelEvaluationsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetModelEvaluationSlice. - * @param request GetModelEvaluationSliceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluationSlice + * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListMetadataSchemasRequest */ - public getModelEvaluationSlice(request: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSliceCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; /** - * Calls GetModelEvaluationSlice. - * @param request GetModelEvaluationSliceRequest message or plain object - * @returns Promise + * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. + * @param message ListMetadataSchemasRequest + * @param [options] Conversion options + * @returns Plain object */ - public getModelEvaluationSlice(request: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.ListMetadataSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListModelEvaluationSlices. - * @param request ListModelEvaluationSlicesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + * Converts this ListMetadataSchemasRequest to JSON. + * @returns JSON object */ - public listModelEvaluationSlices(request: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlicesCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ListModelEvaluationSlices. - * @param request ListModelEvaluationSlicesRequest message or plain object - * @returns Promise + * Gets the default type url for ListMetadataSchemasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listModelEvaluationSlices(request: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelService { + /** Properties of a ListMetadataSchemasResponse. */ + interface IListMetadataSchemasResponse { + + /** ListMetadataSchemasResponse metadataSchemas */ + metadataSchemas?: (google.cloud.aiplatform.v1.IMetadataSchema[]|null); + + /** ListMetadataSchemasResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListMetadataSchemasResponse. */ + class ListMetadataSchemasResponse implements IListMetadataSchemasResponse { /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|uploadModel}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new ListMetadataSchemasResponse. + * @param [properties] Properties to set */ - type UploadModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasResponse); + + /** ListMetadataSchemasResponse metadataSchemas. */ + public metadataSchemas: google.cloud.aiplatform.v1.IMetadataSchema[]; + + /** ListMetadataSchemasResponse nextPageToken. */ + public nextPageToken: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModel}. - * @param error Error, if any - * @param [response] Model + * Creates a new ListMetadataSchemasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMetadataSchemasResponse instance */ - type GetModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + public static create(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasResponse): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModels}. - * @param error Error, if any - * @param [response] ListModelsResponse + * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. + * @param message ListMetadataSchemasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelsResponse) => void; + public static encode(message: google.cloud.aiplatform.v1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelVersions}. - * @param error Error, if any - * @param [response] ListModelVersionsResponse + * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. + * @param message ListMetadataSchemasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListModelVersionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelVersionsResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|updateModel}. - * @param error Error, if any - * @param [response] Model + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMetadataSchemasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModel}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListMetadataSchemasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModelVersion}. - * @param error Error, if any - * @param [response] Operation + * Verifies a ListMetadataSchemasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type DeleteModelVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|mergeVersionAliases}. - * @param error Error, if any - * @param [response] Model + * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListMetadataSchemasResponse */ - type MergeVersionAliasesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|exportModel}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. + * @param message ListMetadataSchemasResponse + * @param [options] Conversion options + * @returns Plain object */ - type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1.ListMetadataSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|importModelEvaluation}. - * @param error Error, if any - * @param [response] ModelEvaluation - */ - type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluation) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportModelEvaluationSlices}. - * @param error Error, if any - * @param [response] BatchImportModelEvaluationSlicesResponse - */ - type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluation}. - * @param error Error, if any - * @param [response] ModelEvaluation - */ - type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluation) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluations}. - * @param error Error, if any - * @param [response] ListModelEvaluationsResponse - */ - type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelEvaluationsResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluationSlice}. - * @param error Error, if any - * @param [response] ModelEvaluationSlice + * Converts this ListMetadataSchemasResponse to JSON. + * @returns JSON object */ - type GetModelEvaluationSliceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluationSlice) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluationSlices}. - * @param error Error, if any - * @param [response] ListModelEvaluationSlicesResponse + * Gets the default type url for ListMetadataSchemasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UploadModelRequest. */ - interface IUploadModelRequest { - - /** UploadModelRequest parent */ - parent?: (string|null); - - /** UploadModelRequest parentModel */ - parentModel?: (string|null); + /** Properties of a QueryArtifactLineageSubgraphRequest. */ + interface IQueryArtifactLineageSubgraphRequest { - /** UploadModelRequest modelId */ - modelId?: (string|null); + /** QueryArtifactLineageSubgraphRequest artifact */ + artifact?: (string|null); - /** UploadModelRequest model */ - model?: (google.cloud.aiplatform.v1.IModel|null); + /** QueryArtifactLineageSubgraphRequest maxHops */ + maxHops?: (number|null); - /** UploadModelRequest serviceAccount */ - serviceAccount?: (string|null); + /** QueryArtifactLineageSubgraphRequest filter */ + filter?: (string|null); } - /** Represents an UploadModelRequest. */ - class UploadModelRequest implements IUploadModelRequest { + /** Represents a QueryArtifactLineageSubgraphRequest. */ + class QueryArtifactLineageSubgraphRequest implements IQueryArtifactLineageSubgraphRequest { /** - * Constructs a new UploadModelRequest. + * Constructs a new QueryArtifactLineageSubgraphRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUploadModelRequest); - - /** UploadModelRequest parent. */ - public parent: string; - - /** UploadModelRequest parentModel. */ - public parentModel: string; + constructor(properties?: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest); - /** UploadModelRequest modelId. */ - public modelId: string; + /** QueryArtifactLineageSubgraphRequest artifact. */ + public artifact: string; - /** UploadModelRequest model. */ - public model?: (google.cloud.aiplatform.v1.IModel|null); + /** QueryArtifactLineageSubgraphRequest maxHops. */ + public maxHops: number; - /** UploadModelRequest serviceAccount. */ - public serviceAccount: string; + /** QueryArtifactLineageSubgraphRequest filter. */ + public filter: string; /** - * Creates a new UploadModelRequest instance using the specified properties. + * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelRequest instance + * @returns QueryArtifactLineageSubgraphRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUploadModelRequest): google.cloud.aiplatform.v1.UploadModelRequest; + public static create(properties?: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; /** - * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. - * @param message UploadModelRequest message or plain object to encode + * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. - * @param message UploadModelRequest message or plain object to encode + * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelRequest message from the specified reader or buffer. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UploadModelRequest + * @returns QueryArtifactLineageSubgraphRequest * @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.aiplatform.v1.UploadModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; /** - * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelRequest + * @returns QueryArtifactLineageSubgraphRequest * @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.aiplatform.v1.UploadModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; /** - * Verifies an UploadModelRequest message. + * Verifies a QueryArtifactLineageSubgraphRequest 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 an UploadModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelRequest + * @returns QueryArtifactLineageSubgraphRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; /** - * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. - * @param message UploadModelRequest + * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. + * @param message QueryArtifactLineageSubgraphRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UploadModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelRequest to JSON. + * Converts this QueryArtifactLineageSubgraphRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UploadModelRequest + * Gets the default type url for QueryArtifactLineageSubgraphRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UploadModelOperationMetadata. */ - interface IUploadModelOperationMetadata { + /** Properties of a MetadataStore. */ + interface IMetadataStore { - /** UploadModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** MetadataStore name */ + name?: (string|null); + + /** MetadataStore createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** MetadataStore description */ + description?: (string|null); + + /** MetadataStore state */ + state?: (google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null); } - /** Represents an UploadModelOperationMetadata. */ - class UploadModelOperationMetadata implements IUploadModelOperationMetadata { + /** Represents a MetadataStore. */ + class MetadataStore implements IMetadataStore { /** - * Constructs a new UploadModelOperationMetadata. + * Constructs a new MetadataStore. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUploadModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IMetadataStore); - /** UploadModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** MetadataStore name. */ + public name: string; + + /** MetadataStore createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** MetadataStore description. */ + public description: string; + + /** MetadataStore state. */ + public state?: (google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null); /** - * Creates a new UploadModelOperationMetadata instance using the specified properties. + * Creates a new MetadataStore instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelOperationMetadata instance + * @returns MetadataStore instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUploadModelOperationMetadata): google.cloud.aiplatform.v1.UploadModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IMetadataStore): google.cloud.aiplatform.v1.MetadataStore; /** - * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. - * @param message UploadModelOperationMetadata message or plain object to encode + * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. + * @param message MetadataStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. - * @param message UploadModelOperationMetadata message or plain object to encode + * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. + * @param message MetadataStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * Decodes a MetadataStore message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UploadModelOperationMetadata + * @returns MetadataStore * @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.aiplatform.v1.UploadModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MetadataStore; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MetadataStore message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelOperationMetadata + * @returns MetadataStore * @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.aiplatform.v1.UploadModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MetadataStore; /** - * Verifies an UploadModelOperationMetadata message. + * Verifies a MetadataStore 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 an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelOperationMetadata + * @returns MetadataStore */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataStore; /** - * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. - * @param message UploadModelOperationMetadata + * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. + * @param message MetadataStore * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UploadModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MetadataStore, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelOperationMetadata to JSON. + * Converts this MetadataStore to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UploadModelOperationMetadata + * Gets the default type url for MetadataStore * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UploadModelResponse. */ - interface IUploadModelResponse { - - /** UploadModelResponse model */ - model?: (string|null); + namespace MetadataStore { - /** UploadModelResponse modelVersionId */ - modelVersionId?: (string|null); - } + /** Properties of a MetadataStoreState. */ + interface IMetadataStoreState { - /** Represents an UploadModelResponse. */ - class UploadModelResponse implements IUploadModelResponse { + /** MetadataStoreState diskUtilizationBytes */ + diskUtilizationBytes?: (number|Long|string|null); + } - /** - * Constructs a new UploadModelResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IUploadModelResponse); + /** Represents a MetadataStoreState. */ + class MetadataStoreState implements IMetadataStoreState { - /** UploadModelResponse model. */ - public model: string; + /** + * Constructs a new MetadataStoreState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState); - /** UploadModelResponse modelVersionId. */ - public modelVersionId: string; + /** MetadataStoreState diskUtilizationBytes. */ + public diskUtilizationBytes: (number|Long|string); - /** - * Creates a new UploadModelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UploadModelResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IUploadModelResponse): google.cloud.aiplatform.v1.UploadModelResponse; + /** + * Creates a new MetadataStoreState instance using the specified properties. + * @param [properties] Properties to set + * @returns MetadataStoreState instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState): google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState; - /** - * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. - * @param message UploadModelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @param message MetadataStoreState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. - * @param message UploadModelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @param message MetadataStoreState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an UploadModelResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UploadModelResponse - * @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.aiplatform.v1.UploadModelResponse; + /** + * Decodes a MetadataStoreState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetadataStoreState + * @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.aiplatform.v1.MetadataStore.MetadataStoreState; - /** - * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UploadModelResponse - * @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.aiplatform.v1.UploadModelResponse; + /** + * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetadataStoreState + * @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.aiplatform.v1.MetadataStore.MetadataStoreState; - /** - * Verifies an UploadModelResponse 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); + /** + * Verifies a MetadataStoreState 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 an UploadModelResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UploadModelResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelResponse; + /** + * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetadataStoreState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState; - /** - * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. - * @param message UploadModelResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.UploadModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. + * @param message MetadataStoreState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this UploadModelResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this MetadataStoreState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for UploadModelResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for MetadataStoreState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a GetModelRequest. */ - interface IGetModelRequest { + /** Properties of a MigratableResource. */ + interface IMigratableResource { - /** GetModelRequest name */ - name?: (string|null); + /** MigratableResource mlEngineModelVersion */ + mlEngineModelVersion?: (google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null); + + /** MigratableResource automlModel */ + automlModel?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null); + + /** MigratableResource automlDataset */ + automlDataset?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null); + + /** MigratableResource dataLabelingDataset */ + dataLabelingDataset?: (google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null); + + /** MigratableResource lastMigrateTime */ + lastMigrateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a GetModelRequest. */ - class GetModelRequest implements IGetModelRequest { + /** Represents a MigratableResource. */ + class MigratableResource implements IMigratableResource { /** - * Constructs a new GetModelRequest. + * Constructs a new MigratableResource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetModelRequest); + constructor(properties?: google.cloud.aiplatform.v1.IMigratableResource); - /** GetModelRequest name. */ - public name: string; + /** MigratableResource mlEngineModelVersion. */ + public mlEngineModelVersion?: (google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null); + + /** MigratableResource automlModel. */ + public automlModel?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null); + + /** MigratableResource automlDataset. */ + public automlDataset?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null); + + /** MigratableResource dataLabelingDataset. */ + public dataLabelingDataset?: (google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null); + + /** MigratableResource lastMigrateTime. */ + public lastMigrateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource resource. */ + public resource?: ("mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"); /** - * Creates a new GetModelRequest instance using the specified properties. + * Creates a new MigratableResource instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelRequest instance + * @returns MigratableResource instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetModelRequest): google.cloud.aiplatform.v1.GetModelRequest; + public static create(properties?: google.cloud.aiplatform.v1.IMigratableResource): google.cloud.aiplatform.v1.MigratableResource; /** - * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. - * @param message GetModelRequest message or plain object to encode + * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * @param message MigratableResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. - * @param message GetModelRequest message or plain object to encode + * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * @param message MigratableResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelRequest message from the specified reader or buffer. + * Decodes a MigratableResource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelRequest + * @returns MigratableResource * @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.aiplatform.v1.GetModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigratableResource; /** - * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. + * Decodes a MigratableResource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelRequest + * @returns MigratableResource * @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.aiplatform.v1.GetModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigratableResource; /** - * Verifies a GetModelRequest message. + * Verifies a MigratableResource 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 GetModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelRequest + * @returns MigratableResource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource; /** - * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. - * @param message GetModelRequest + * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. + * @param message MigratableResource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelRequest to JSON. + * Converts this MigratableResource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelRequest + * Gets the default type url for MigratableResource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelsRequest. */ - interface IListModelsRequest { - - /** ListModelsRequest parent */ - parent?: (string|null); + namespace MigratableResource { - /** ListModelsRequest filter */ - filter?: (string|null); + /** Properties of a MlEngineModelVersion. */ + interface IMlEngineModelVersion { - /** ListModelsRequest pageSize */ - pageSize?: (number|null); + /** MlEngineModelVersion endpoint */ + endpoint?: (string|null); - /** ListModelsRequest pageToken */ - pageToken?: (string|null); + /** MlEngineModelVersion version */ + version?: (string|null); + } - /** ListModelsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Represents a MlEngineModelVersion. */ + class MlEngineModelVersion implements IMlEngineModelVersion { - /** ListModelsRequest orderBy */ - orderBy?: (string|null); - } + /** + * Constructs a new MlEngineModelVersion. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion); - /** Represents a ListModelsRequest. */ - class ListModelsRequest implements IListModelsRequest { + /** MlEngineModelVersion endpoint. */ + public endpoint: string; - /** - * Constructs a new ListModelsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelsRequest); + /** MlEngineModelVersion version. */ + public version: string; - /** ListModelsRequest parent. */ - public parent: string; + /** + * Creates a new MlEngineModelVersion instance using the specified properties. + * @param [properties] Properties to set + * @returns MlEngineModelVersion instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion): google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion; - /** ListModelsRequest filter. */ - public filter: string; + /** + * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @param message MlEngineModelVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListModelsRequest pageSize. */ - public pageSize: number; + /** + * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @param message MlEngineModelVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListModelsRequest pageToken. */ - public pageToken: string; + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MlEngineModelVersion + * @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.aiplatform.v1.MigratableResource.MlEngineModelVersion; - /** ListModelsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MlEngineModelVersion + * @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.aiplatform.v1.MigratableResource.MlEngineModelVersion; - /** ListModelsRequest orderBy. */ - public orderBy: string; + /** + * Verifies a MlEngineModelVersion 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 new ListModelsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelsRequest): google.cloud.aiplatform.v1.ListModelsRequest; + /** + * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MlEngineModelVersion + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion; - /** - * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. - * @param message ListModelsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. + * @param message MlEngineModelVersion + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. - * @param message ListModelsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this MlEngineModelVersion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ListModelsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelsRequest - * @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.aiplatform.v1.ListModelsRequest; + /** + * Gets the default type url for MlEngineModelVersion + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelsRequest - * @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.aiplatform.v1.ListModelsRequest; + /** Properties of an AutomlModel. */ + interface IAutomlModel { - /** - * Verifies a ListModelsRequest 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); + /** AutomlModel model */ + model?: (string|null); - /** - * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelsRequest; + /** AutomlModel modelDisplayName */ + modelDisplayName?: (string|null); + } - /** - * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. - * @param message ListModelsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an AutomlModel. */ + class AutomlModel implements IAutomlModel { - /** - * Converts this ListModelsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new AutomlModel. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel); - /** - * Gets the default type url for ListModelsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** AutomlModel model. */ + public model: string; - /** Properties of a ListModelsResponse. */ - interface IListModelsResponse { + /** AutomlModel modelDisplayName. */ + public modelDisplayName: string; - /** ListModelsResponse models */ - models?: (google.cloud.aiplatform.v1.IModel[]|null); + /** + * Creates a new AutomlModel instance using the specified properties. + * @param [properties] Properties to set + * @returns AutomlModel instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel): google.cloud.aiplatform.v1.MigratableResource.AutomlModel; - /** ListModelsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. + * @param message AutomlModel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ListModelsResponse. */ - class ListModelsResponse implements IListModelsResponse { + /** + * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. + * @param message AutomlModel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new ListModelsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelsResponse); + /** + * Decodes an AutomlModel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutomlModel + * @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.aiplatform.v1.MigratableResource.AutomlModel; - /** ListModelsResponse models. */ - public models: google.cloud.aiplatform.v1.IModel[]; + /** + * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutomlModel + * @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.aiplatform.v1.MigratableResource.AutomlModel; - /** ListModelsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Verifies an AutomlModel 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 new ListModelsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelsResponse): google.cloud.aiplatform.v1.ListModelsResponse; + /** + * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutomlModel + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.AutomlModel; - /** - * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. - * @param message ListModelsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. + * @param message AutomlModel + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.AutomlModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. - * @param message ListModelsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this AutomlModel to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ListModelsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelsResponse - * @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.aiplatform.v1.ListModelsResponse; + /** + * Gets the default type url for AutomlModel + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelsResponse - * @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.aiplatform.v1.ListModelsResponse; + /** Properties of an AutomlDataset. */ + interface IAutomlDataset { - /** - * Verifies a ListModelsResponse 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); + /** AutomlDataset dataset */ + dataset?: (string|null); - /** - * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelsResponse; + /** AutomlDataset datasetDisplayName */ + datasetDisplayName?: (string|null); + } - /** - * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. - * @param message ListModelsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an AutomlDataset. */ + class AutomlDataset implements IAutomlDataset { - /** - * Converts this ListModelsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new AutomlDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset); - /** - * Gets the default type url for ListModelsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** AutomlDataset dataset. */ + public dataset: string; - /** Properties of a ListModelVersionsRequest. */ - interface IListModelVersionsRequest { + /** AutomlDataset datasetDisplayName. */ + public datasetDisplayName: string; - /** ListModelVersionsRequest name */ - name?: (string|null); + /** + * Creates a new AutomlDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns AutomlDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset): google.cloud.aiplatform.v1.MigratableResource.AutomlDataset; - /** ListModelVersionsRequest pageSize */ - pageSize?: (number|null); + /** + * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. + * @param message AutomlDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListModelVersionsRequest pageToken */ - pageToken?: (string|null); + /** + * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. + * @param message AutomlDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListModelVersionsRequest filter */ - filter?: (string|null); + /** + * Decodes an AutomlDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutomlDataset + * @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.aiplatform.v1.MigratableResource.AutomlDataset; - /** ListModelVersionsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** + * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutomlDataset + * @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.aiplatform.v1.MigratableResource.AutomlDataset; - /** ListModelVersionsRequest orderBy */ - orderBy?: (string|null); - } + /** + * Verifies an AutomlDataset 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); - /** Represents a ListModelVersionsRequest. */ - class ListModelVersionsRequest implements IListModelVersionsRequest { + /** + * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutomlDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.AutomlDataset; - /** - * Constructs a new ListModelVersionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest); + /** + * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. + * @param message AutomlDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.AutomlDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListModelVersionsRequest name. */ - public name: string; + /** + * Converts this AutomlDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListModelVersionsRequest pageSize. */ - public pageSize: number; + /** + * Gets the default type url for AutomlDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ListModelVersionsRequest pageToken. */ - public pageToken: string; + /** Properties of a DataLabelingDataset. */ + interface IDataLabelingDataset { - /** ListModelVersionsRequest filter. */ - public filter: string; + /** DataLabelingDataset dataset */ + dataset?: (string|null); - /** ListModelVersionsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** DataLabelingDataset datasetDisplayName */ + datasetDisplayName?: (string|null); - /** ListModelVersionsRequest orderBy. */ - public orderBy: string; + /** DataLabelingDataset dataLabelingAnnotatedDatasets */ + dataLabelingAnnotatedDatasets?: (google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]|null); + } - /** - * Creates a new ListModelVersionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelVersionsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest): google.cloud.aiplatform.v1.ListModelVersionsRequest; + /** Represents a DataLabelingDataset. */ + class DataLabelingDataset implements IDataLabelingDataset { - /** - * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. - * @param message ListModelVersionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new DataLabelingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset); - /** - * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. - * @param message ListModelVersionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** DataLabelingDataset dataset. */ + public dataset: string; + + /** DataLabelingDataset datasetDisplayName. */ + public datasetDisplayName: string; + + /** DataLabelingDataset dataLabelingAnnotatedDatasets. */ + public dataLabelingAnnotatedDatasets: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]; + + /** + * Creates a new DataLabelingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLabelingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset; + + /** + * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @param message DataLabelingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @param message DataLabelingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLabelingDataset + * @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.aiplatform.v1.MigratableResource.DataLabelingDataset; + + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataLabelingDataset + * @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.aiplatform.v1.MigratableResource.DataLabelingDataset; + + /** + * Verifies a DataLabelingDataset 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 DataLabelingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataLabelingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset; + + /** + * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. + * @param message DataLabelingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataLabelingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataLabelingDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DataLabelingDataset { + + /** Properties of a DataLabelingAnnotatedDataset. */ + interface IDataLabelingAnnotatedDataset { + + /** DataLabelingAnnotatedDataset annotatedDataset */ + annotatedDataset?: (string|null); + + /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ + annotatedDatasetDisplayName?: (string|null); + } + + /** Represents a DataLabelingAnnotatedDataset. */ + class DataLabelingAnnotatedDataset implements IDataLabelingAnnotatedDataset { + + /** + * Constructs a new DataLabelingAnnotatedDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset); + + /** DataLabelingAnnotatedDataset annotatedDataset. */ + public annotatedDataset: string; + + /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName. */ + public annotatedDatasetDisplayName: string; + + /** + * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLabelingAnnotatedDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @param message DataLabelingAnnotatedDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @param message DataLabelingAnnotatedDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLabelingAnnotatedDataset + * @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.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataLabelingAnnotatedDataset + * @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.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Verifies a DataLabelingAnnotatedDataset 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 DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataLabelingAnnotatedDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. + * @param message DataLabelingAnnotatedDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataLabelingAnnotatedDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataLabelingAnnotatedDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Represents a MigrationService */ + class MigrationService extends $protobuf.rpc.Service { /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new MigrationService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelVersionsRequest; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Creates new MigrationService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelVersionsRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MigrationService; /** - * Verifies a ListModelVersionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls SearchMigratableResources. + * @param request SearchMigratableResourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public searchMigratableResources(request: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, callback: google.cloud.aiplatform.v1.MigrationService.SearchMigratableResourcesCallback): void; /** - * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelVersionsRequest + * Calls SearchMigratableResources. + * @param request SearchMigratableResourcesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsRequest; + public searchMigratableResources(request: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest): Promise; /** - * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. - * @param message ListModelVersionsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls BatchMigrateResources. + * @param request BatchMigrateResourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public batchMigrateResources(request: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, callback: google.cloud.aiplatform.v1.MigrationService.BatchMigrateResourcesCallback): void; /** - * Converts this ListModelVersionsRequest to JSON. - * @returns JSON object + * Calls BatchMigrateResources. + * @param request BatchMigrateResourcesRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public batchMigrateResources(request: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest): Promise; + } + + namespace MigrationService { /** - * Gets the default type url for ListModelVersionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|searchMigratableResources}. + * @param error Error, if any + * @param [response] SearchMigratableResourcesResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type SearchMigratableResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SearchMigratableResourcesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|batchMigrateResources}. + * @param error Error, if any + * @param [response] Operation + */ + type BatchMigrateResourcesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a ListModelVersionsResponse. */ - interface IListModelVersionsResponse { + /** Properties of a SearchMigratableResourcesRequest. */ + interface ISearchMigratableResourcesRequest { - /** ListModelVersionsResponse models */ - models?: (google.cloud.aiplatform.v1.IModel[]|null); + /** SearchMigratableResourcesRequest parent */ + parent?: (string|null); - /** ListModelVersionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** SearchMigratableResourcesRequest pageSize */ + pageSize?: (number|null); + + /** SearchMigratableResourcesRequest pageToken */ + pageToken?: (string|null); + + /** SearchMigratableResourcesRequest filter */ + filter?: (string|null); } - /** Represents a ListModelVersionsResponse. */ - class ListModelVersionsResponse implements IListModelVersionsResponse { + /** Represents a SearchMigratableResourcesRequest. */ + class SearchMigratableResourcesRequest implements ISearchMigratableResourcesRequest { /** - * Constructs a new ListModelVersionsResponse. + * Constructs a new SearchMigratableResourcesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse); + constructor(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest); - /** ListModelVersionsResponse models. */ - public models: google.cloud.aiplatform.v1.IModel[]; + /** SearchMigratableResourcesRequest parent. */ + public parent: string; - /** ListModelVersionsResponse nextPageToken. */ - public nextPageToken: string; + /** SearchMigratableResourcesRequest pageSize. */ + public pageSize: number; + + /** SearchMigratableResourcesRequest pageToken. */ + public pageToken: string; + + /** SearchMigratableResourcesRequest filter. */ + public filter: string; /** - * Creates a new ListModelVersionsResponse instance using the specified properties. + * Creates a new SearchMigratableResourcesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelVersionsResponse instance + * @returns SearchMigratableResourcesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse): google.cloud.aiplatform.v1.ListModelVersionsResponse; + public static create(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; /** - * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. - * @param message ListModelVersionsResponse message or plain object to encode + * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. + * @param message SearchMigratableResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. - * @param message ListModelVersionsResponse message or plain object to encode + * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. + * @param message SearchMigratableResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelVersionsResponse + * @returns SearchMigratableResourcesRequest * @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.aiplatform.v1.ListModelVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelVersionsResponse + * @returns SearchMigratableResourcesRequest * @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.aiplatform.v1.ListModelVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; /** - * Verifies a ListModelVersionsResponse message. + * Verifies a SearchMigratableResourcesRequest 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 ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelVersionsResponse + * @returns SearchMigratableResourcesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; /** - * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. - * @param message ListModelVersionsResponse + * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. + * @param message SearchMigratableResourcesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchMigratableResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelVersionsResponse to JSON. + * Converts this SearchMigratableResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelVersionsResponse + * Gets the default type url for SearchMigratableResourcesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelRequest. */ - interface IUpdateModelRequest { + /** Properties of a SearchMigratableResourcesResponse. */ + interface ISearchMigratableResourcesResponse { - /** UpdateModelRequest model */ - model?: (google.cloud.aiplatform.v1.IModel|null); + /** SearchMigratableResourcesResponse migratableResources */ + migratableResources?: (google.cloud.aiplatform.v1.IMigratableResource[]|null); - /** UpdateModelRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** SearchMigratableResourcesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateModelRequest. */ - class UpdateModelRequest implements IUpdateModelRequest { + /** Represents a SearchMigratableResourcesResponse. */ + class SearchMigratableResourcesResponse implements ISearchMigratableResourcesResponse { /** - * Constructs a new UpdateModelRequest. + * Constructs a new SearchMigratableResourcesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelRequest); + constructor(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse); - /** UpdateModelRequest model. */ - public model?: (google.cloud.aiplatform.v1.IModel|null); + /** SearchMigratableResourcesResponse migratableResources. */ + public migratableResources: google.cloud.aiplatform.v1.IMigratableResource[]; - /** UpdateModelRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** SearchMigratableResourcesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateModelRequest instance using the specified properties. + * Creates a new SearchMigratableResourcesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelRequest instance + * @returns SearchMigratableResourcesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelRequest): google.cloud.aiplatform.v1.UpdateModelRequest; + public static create(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; /** - * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. - * @param message UpdateModelRequest message or plain object to encode + * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. + * @param message SearchMigratableResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. - * @param message UpdateModelRequest message or plain object to encode + * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. + * @param message SearchMigratableResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelRequest + * @returns SearchMigratableResourcesResponse * @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.aiplatform.v1.UpdateModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelRequest + * @returns SearchMigratableResourcesResponse * @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.aiplatform.v1.UpdateModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; /** - * Verifies an UpdateModelRequest message. + * Verifies a SearchMigratableResourcesResponse 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 an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelRequest + * @returns SearchMigratableResourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; /** - * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. - * @param message UpdateModelRequest + * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. + * @param message SearchMigratableResourcesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchMigratableResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelRequest to JSON. + * Converts this SearchMigratableResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelRequest + * Gets the default type url for SearchMigratableResourcesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelRequest. */ - interface IDeleteModelRequest { + /** Properties of a BatchMigrateResourcesRequest. */ + interface IBatchMigrateResourcesRequest { - /** DeleteModelRequest name */ - name?: (string|null); + /** BatchMigrateResourcesRequest parent */ + parent?: (string|null); + + /** BatchMigrateResourcesRequest migrateResourceRequests */ + migrateResourceRequests?: (google.cloud.aiplatform.v1.IMigrateResourceRequest[]|null); } - /** Represents a DeleteModelRequest. */ - class DeleteModelRequest implements IDeleteModelRequest { + /** Represents a BatchMigrateResourcesRequest. */ + class BatchMigrateResourcesRequest implements IBatchMigrateResourcesRequest { /** - * Constructs a new DeleteModelRequest. + * Constructs a new BatchMigrateResourcesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest); - /** DeleteModelRequest name. */ - public name: string; + /** BatchMigrateResourcesRequest parent. */ + public parent: string; + + /** BatchMigrateResourcesRequest migrateResourceRequests. */ + public migrateResourceRequests: google.cloud.aiplatform.v1.IMigrateResourceRequest[]; /** - * Creates a new DeleteModelRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelRequest instance + * @returns BatchMigrateResourcesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelRequest): google.cloud.aiplatform.v1.DeleteModelRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; /** - * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. - * @param message DeleteModelRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. + * @param message BatchMigrateResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. - * @param message DeleteModelRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. + * @param message BatchMigrateResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteModelRequest + * @returns BatchMigrateResourcesRequest * @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.aiplatform.v1.DeleteModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelRequest + * @returns BatchMigrateResourcesRequest * @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.aiplatform.v1.DeleteModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; /** - * Verifies a DeleteModelRequest message. + * Verifies a BatchMigrateResourcesRequest 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 DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelRequest + * @returns BatchMigrateResourcesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; /** - * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. - * @param message DeleteModelRequest + * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelRequest to JSON. + * Converts this BatchMigrateResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteModelRequest + * Gets the default type url for BatchMigrateResourcesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelVersionRequest. */ - interface IDeleteModelVersionRequest { + /** Properties of a MigrateResourceRequest. */ + interface IMigrateResourceRequest { - /** DeleteModelVersionRequest name */ - name?: (string|null); - } - - /** Represents a DeleteModelVersionRequest. */ - class DeleteModelVersionRequest implements IDeleteModelVersionRequest { - - /** - * Constructs a new DeleteModelVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest); - - /** DeleteModelVersionRequest name. */ - public name: string; - - /** - * Creates a new DeleteModelVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteModelVersionRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): google.cloud.aiplatform.v1.DeleteModelVersionRequest; - - /** - * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. - * @param message DeleteModelVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. - * @param message DeleteModelVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteModelVersionRequest - * @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.aiplatform.v1.DeleteModelVersionRequest; - - /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteModelVersionRequest - * @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.aiplatform.v1.DeleteModelVersionRequest; + /** MigrateResourceRequest migrateMlEngineModelVersionConfig */ + migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - /** - * Verifies a DeleteModelVersionRequest 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); + /** MigrateResourceRequest migrateAutomlModelConfig */ + migrateAutomlModelConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); - /** - * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteModelVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelVersionRequest; + /** MigrateResourceRequest migrateAutomlDatasetConfig */ + migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); - /** - * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. - * @param message DeleteModelVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteModelVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MigrateResourceRequest migrateDataLabelingDatasetConfig */ + migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + } - /** - * Converts this DeleteModelVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a MigrateResourceRequest. */ + class MigrateResourceRequest implements IMigrateResourceRequest { /** - * Gets the default type url for DeleteModelVersionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Constructs a new MigrateResourceRequest. + * @param [properties] Properties to set */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MergeVersionAliasesRequest. */ - interface IMergeVersionAliasesRequest { - - /** MergeVersionAliasesRequest name */ - name?: (string|null); + constructor(properties?: google.cloud.aiplatform.v1.IMigrateResourceRequest); - /** MergeVersionAliasesRequest versionAliases */ - versionAliases?: (string[]|null); - } + /** MigrateResourceRequest migrateMlEngineModelVersionConfig. */ + public migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - /** Represents a MergeVersionAliasesRequest. */ - class MergeVersionAliasesRequest implements IMergeVersionAliasesRequest { + /** MigrateResourceRequest migrateAutomlModelConfig. */ + public migrateAutomlModelConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); - /** - * Constructs a new MergeVersionAliasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest); + /** MigrateResourceRequest migrateAutomlDatasetConfig. */ + public migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); - /** MergeVersionAliasesRequest name. */ - public name: string; + /** MigrateResourceRequest migrateDataLabelingDatasetConfig. */ + public migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); - /** MergeVersionAliasesRequest versionAliases. */ - public versionAliases: string[]; + /** MigrateResourceRequest request. */ + public request?: ("migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"); /** - * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * Creates a new MigrateResourceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MergeVersionAliasesRequest instance + * @returns MigrateResourceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IMigrateResourceRequest): google.cloud.aiplatform.v1.MigrateResourceRequest; /** - * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. - * @param message MergeVersionAliasesRequest message or plain object to encode + * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. + * @param message MigrateResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. - * @param message MergeVersionAliasesRequest message or plain object to encode + * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. + * @param message MigrateResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * Decodes a MigrateResourceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MergeVersionAliasesRequest + * @returns MigrateResourceRequest * @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.aiplatform.v1.MergeVersionAliasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigrateResourceRequest; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MergeVersionAliasesRequest + * @returns MigrateResourceRequest * @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.aiplatform.v1.MergeVersionAliasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigrateResourceRequest; /** - * Verifies a MergeVersionAliasesRequest message. + * Verifies a MigrateResourceRequest 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 MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MergeVersionAliasesRequest + * @returns MigrateResourceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest; /** - * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. - * @param message MergeVersionAliasesRequest + * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. + * @param message MigrateResourceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MergeVersionAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MergeVersionAliasesRequest to JSON. + * Converts this MigrateResourceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MergeVersionAliasesRequest + * Gets the default type url for MigrateResourceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportModelRequest. */ - interface IExportModelRequest { + namespace MigrateResourceRequest { - /** ExportModelRequest name */ - name?: (string|null); + /** Properties of a MigrateMlEngineModelVersionConfig. */ + interface IMigrateMlEngineModelVersionConfig { - /** ExportModelRequest outputConfig */ - outputConfig?: (google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null); - } + /** MigrateMlEngineModelVersionConfig endpoint */ + endpoint?: (string|null); - /** Represents an ExportModelRequest. */ - class ExportModelRequest implements IExportModelRequest { + /** MigrateMlEngineModelVersionConfig modelVersion */ + modelVersion?: (string|null); - /** - * Constructs a new ExportModelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IExportModelRequest); + /** MigrateMlEngineModelVersionConfig modelDisplayName */ + modelDisplayName?: (string|null); + } - /** ExportModelRequest name. */ - public name: string; + /** Represents a MigrateMlEngineModelVersionConfig. */ + class MigrateMlEngineModelVersionConfig implements IMigrateMlEngineModelVersionConfig { - /** ExportModelRequest outputConfig. */ - public outputConfig?: (google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null); + /** + * Constructs a new MigrateMlEngineModelVersionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig); - /** - * Creates a new ExportModelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportModelRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IExportModelRequest): google.cloud.aiplatform.v1.ExportModelRequest; + /** MigrateMlEngineModelVersionConfig endpoint. */ + public endpoint: string; - /** - * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. - * @param message ExportModelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MigrateMlEngineModelVersionConfig modelVersion. */ + public modelVersion: string; - /** - * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. - * @param message ExportModelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MigrateMlEngineModelVersionConfig modelDisplayName. */ + public modelDisplayName: string; - /** - * Decodes an ExportModelRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportModelRequest - * @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.aiplatform.v1.ExportModelRequest; + /** + * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateMlEngineModelVersionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportModelRequest - * @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.aiplatform.v1.ExportModelRequest; + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an ExportModelRequest 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); + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportModelRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelRequest; + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateMlEngineModelVersionConfig + * @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.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. - * @param message ExportModelRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateMlEngineModelVersionConfig + * @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.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Converts this ExportModelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a MigrateMlEngineModelVersionConfig 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); - /** - * Gets the default type url for ExportModelRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateMlEngineModelVersionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - namespace ExportModelRequest { + /** + * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. + * @param message MigrateMlEngineModelVersionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of an OutputConfig. */ - interface IOutputConfig { + /** + * Converts this MigrateMlEngineModelVersionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** OutputConfig exportFormatId */ - exportFormatId?: (string|null); + /** + * Gets the default type url for MigrateMlEngineModelVersionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** OutputConfig artifactDestination */ - artifactDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** Properties of a MigrateAutomlModelConfig. */ + interface IMigrateAutomlModelConfig { - /** OutputConfig imageDestination */ - imageDestination?: (google.cloud.aiplatform.v1.IContainerRegistryDestination|null); + /** MigrateAutomlModelConfig model */ + model?: (string|null); + + /** MigrateAutomlModelConfig modelDisplayName */ + modelDisplayName?: (string|null); } - /** Represents an OutputConfig. */ - class OutputConfig implements IOutputConfig { + /** Represents a MigrateAutomlModelConfig. */ + class MigrateAutomlModelConfig implements IMigrateAutomlModelConfig { /** - * Constructs a new OutputConfig. + * Constructs a new MigrateAutomlModelConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig); - - /** OutputConfig exportFormatId. */ - public exportFormatId: string; + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig); - /** OutputConfig artifactDestination. */ - public artifactDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** MigrateAutomlModelConfig model. */ + public model: string; - /** OutputConfig imageDestination. */ - public imageDestination?: (google.cloud.aiplatform.v1.IContainerRegistryDestination|null); + /** MigrateAutomlModelConfig modelDisplayName. */ + public modelDisplayName: string; /** - * Creates a new OutputConfig instance using the specified properties. + * Creates a new MigrateAutomlModelConfig instance using the specified properties. * @param [properties] Properties to set - * @returns OutputConfig instance + * @returns MigrateAutomlModelConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode + * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @param message MigrateAutomlModelConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode + * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @param message MigrateAutomlModelConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputConfig message from the specified reader or buffer. + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputConfig + * @returns MigrateAutomlModelConfig * @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.aiplatform.v1.ExportModelRequest.OutputConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputConfig + * @returns MigrateAutomlModelConfig * @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.aiplatform.v1.ExportModelRequest.OutputConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Verifies an OutputConfig message. + * Verifies a MigrateAutomlModelConfig 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 an OutputConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputConfig + * @returns MigrateAutomlModelConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @param message OutputConfig + * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. + * @param message MigrateAutomlModelConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputConfig to JSON. + * Converts this MigrateAutomlModelConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputConfig + * Gets the default type url for MigrateAutomlModelConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - - /** Properties of an ExportModelOperationMetadata. */ - interface IExportModelOperationMetadata { - /** ExportModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** Properties of a MigrateAutomlDatasetConfig. */ + interface IMigrateAutomlDatasetConfig { - /** ExportModelOperationMetadata outputInfo */ - outputInfo?: (google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null); - } + /** MigrateAutomlDatasetConfig dataset */ + dataset?: (string|null); - /** Represents an ExportModelOperationMetadata. */ - class ExportModelOperationMetadata implements IExportModelOperationMetadata { + /** MigrateAutomlDatasetConfig datasetDisplayName */ + datasetDisplayName?: (string|null); + } - /** - * Constructs a new ExportModelOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IExportModelOperationMetadata); + /** Represents a MigrateAutomlDatasetConfig. */ + class MigrateAutomlDatasetConfig implements IMigrateAutomlDatasetConfig { - /** ExportModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** + * Constructs a new MigrateAutomlDatasetConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig); - /** ExportModelOperationMetadata outputInfo. */ - public outputInfo?: (google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null); + /** MigrateAutomlDatasetConfig dataset. */ + public dataset: string; - /** - * Creates a new ExportModelOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportModelOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IExportModelOperationMetadata): google.cloud.aiplatform.v1.ExportModelOperationMetadata; + /** MigrateAutomlDatasetConfig datasetDisplayName. */ + public datasetDisplayName: string; - /** - * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. - * @param message ExportModelOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateAutomlDatasetConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - /** - * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. - * @param message ExportModelOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @param message MigrateAutomlDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportModelOperationMetadata - * @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.aiplatform.v1.ExportModelOperationMetadata; + /** + * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @param message MigrateAutomlDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportModelOperationMetadata - * @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.aiplatform.v1.ExportModelOperationMetadata; + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateAutomlDatasetConfig + * @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.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - /** - * Verifies an ExportModelOperationMetadata 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); + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateAutomlDatasetConfig + * @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.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - /** - * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportModelOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelOperationMetadata; + /** + * Verifies a MigrateAutomlDatasetConfig 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 plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. - * @param message ExportModelOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateAutomlDatasetConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - /** - * Converts this ExportModelOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateAutomlDatasetConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ExportModelOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this MigrateAutomlDatasetConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace ExportModelOperationMetadata { + /** + * Gets the default type url for MigrateAutomlDatasetConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of an OutputInfo. */ - interface IOutputInfo { + /** Properties of a MigrateDataLabelingDatasetConfig. */ + interface IMigrateDataLabelingDatasetConfig { - /** OutputInfo artifactOutputUri */ - artifactOutputUri?: (string|null); + /** MigrateDataLabelingDatasetConfig dataset */ + dataset?: (string|null); - /** OutputInfo imageOutputUri */ - imageOutputUri?: (string|null); + /** MigrateDataLabelingDatasetConfig datasetDisplayName */ + datasetDisplayName?: (string|null); + + /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs */ + migrateDataLabelingAnnotatedDatasetConfigs?: (google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]|null); } - /** Represents an OutputInfo. */ - class OutputInfo implements IOutputInfo { + /** Represents a MigrateDataLabelingDatasetConfig. */ + class MigrateDataLabelingDatasetConfig implements IMigrateDataLabelingDatasetConfig { /** - * Constructs a new OutputInfo. + * Constructs a new MigrateDataLabelingDatasetConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo); + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig); - /** OutputInfo artifactOutputUri. */ - public artifactOutputUri: string; + /** MigrateDataLabelingDatasetConfig dataset. */ + public dataset: string; - /** OutputInfo imageOutputUri. */ - public imageOutputUri: string; + /** MigrateDataLabelingDatasetConfig datasetDisplayName. */ + public datasetDisplayName: string; + + /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. */ + public migrateDataLabelingAnnotatedDatasetConfigs: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]; /** - * Creates a new OutputInfo instance using the specified properties. + * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. * @param [properties] Properties to set - * @returns OutputInfo instance + * @returns MigrateDataLabelingDatasetConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo): google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode + * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode + * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputInfo message from the specified reader or buffer. + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputInfo + * @returns MigrateDataLabelingDatasetConfig * @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.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputInfo + * @returns MigrateDataLabelingDatasetConfig * @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.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Verifies an OutputInfo message. + * Verifies a MigrateDataLabelingDatasetConfig 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 an OutputInfo message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputInfo + * @returns MigrateDataLabelingDatasetConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. - * @param message OutputInfo + * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateDataLabelingDatasetConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputInfo to JSON. + * Converts this MigrateDataLabelingDatasetConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputInfo + * Gets the default type url for MigrateDataLabelingDatasetConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + namespace MigrateDataLabelingDatasetConfig { + + /** Properties of a MigrateDataLabelingAnnotatedDatasetConfig. */ + interface IMigrateDataLabelingAnnotatedDatasetConfig { + + /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset */ + annotatedDataset?: (string|null); + } + + /** Represents a MigrateDataLabelingAnnotatedDatasetConfig. */ + class MigrateDataLabelingAnnotatedDatasetConfig implements IMigrateDataLabelingAnnotatedDatasetConfig { + + /** + * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig); + + /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. */ + public annotatedDataset: string; + + /** + * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateDataLabelingAnnotatedDatasetConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateDataLabelingAnnotatedDatasetConfig + * @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.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateDataLabelingAnnotatedDatasetConfig + * @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.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Verifies a MigrateDataLabelingAnnotatedDatasetConfig 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 MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateDataLabelingAnnotatedDatasetConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateDataLabelingAnnotatedDatasetConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } - /** Properties of an ExportModelResponse. */ - interface IExportModelResponse { + /** Properties of a BatchMigrateResourcesResponse. */ + interface IBatchMigrateResourcesResponse { + + /** BatchMigrateResourcesResponse migrateResourceResponses */ + migrateResourceResponses?: (google.cloud.aiplatform.v1.IMigrateResourceResponse[]|null); } - /** Represents an ExportModelResponse. */ - class ExportModelResponse implements IExportModelResponse { + /** Represents a BatchMigrateResourcesResponse. */ + class BatchMigrateResourcesResponse implements IBatchMigrateResourcesResponse { /** - * Constructs a new ExportModelResponse. + * Constructs a new BatchMigrateResourcesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExportModelResponse); + constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse); + + /** BatchMigrateResourcesResponse migrateResourceResponses. */ + public migrateResourceResponses: google.cloud.aiplatform.v1.IMigrateResourceResponse[]; /** - * Creates a new ExportModelResponse instance using the specified properties. + * Creates a new BatchMigrateResourcesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportModelResponse instance + * @returns BatchMigrateResourcesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExportModelResponse): google.cloud.aiplatform.v1.ExportModelResponse; + public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; /** - * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. - * @param message ExportModelResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. + * @param message BatchMigrateResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. - * @param message ExportModelResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. + * @param message BatchMigrateResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportModelResponse message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportModelResponse + * @returns BatchMigrateResourcesResponse * @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.aiplatform.v1.ExportModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; /** - * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportModelResponse + * @returns BatchMigrateResourcesResponse * @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.aiplatform.v1.ExportModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; /** - * Verifies an ExportModelResponse message. + * Verifies a BatchMigrateResourcesResponse 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 an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportModelResponse + * @returns BatchMigrateResourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; /** - * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. - * @param message ExportModelResponse + * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportModelResponse to JSON. + * Converts this BatchMigrateResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportModelResponse + * Gets the default type url for BatchMigrateResourcesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportModelEvaluationRequest. */ - interface IImportModelEvaluationRequest { + /** Properties of a MigrateResourceResponse. */ + interface IMigrateResourceResponse { - /** ImportModelEvaluationRequest parent */ - parent?: (string|null); + /** MigrateResourceResponse dataset */ + dataset?: (string|null); - /** ImportModelEvaluationRequest modelEvaluation */ - modelEvaluation?: (google.cloud.aiplatform.v1.IModelEvaluation|null); + /** MigrateResourceResponse model */ + model?: (string|null); + + /** MigrateResourceResponse migratableResource */ + migratableResource?: (google.cloud.aiplatform.v1.IMigratableResource|null); } - /** Represents an ImportModelEvaluationRequest. */ - class ImportModelEvaluationRequest implements IImportModelEvaluationRequest { + /** Represents a MigrateResourceResponse. */ + class MigrateResourceResponse implements IMigrateResourceResponse { /** - * Constructs a new ImportModelEvaluationRequest. + * Constructs a new MigrateResourceResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IImportModelEvaluationRequest); + constructor(properties?: google.cloud.aiplatform.v1.IMigrateResourceResponse); - /** ImportModelEvaluationRequest parent. */ - public parent: string; + /** MigrateResourceResponse dataset. */ + public dataset?: (string|null); - /** ImportModelEvaluationRequest modelEvaluation. */ - public modelEvaluation?: (google.cloud.aiplatform.v1.IModelEvaluation|null); + /** MigrateResourceResponse model. */ + public model?: (string|null); + + /** MigrateResourceResponse migratableResource. */ + public migratableResource?: (google.cloud.aiplatform.v1.IMigratableResource|null); + + /** MigrateResourceResponse migratedResource. */ + public migratedResource?: ("dataset"|"model"); /** - * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * Creates a new MigrateResourceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ImportModelEvaluationRequest instance + * @returns MigrateResourceResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IImportModelEvaluationRequest): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; + public static create(properties?: google.cloud.aiplatform.v1.IMigrateResourceResponse): google.cloud.aiplatform.v1.MigrateResourceResponse; /** - * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. - * @param message ImportModelEvaluationRequest message or plain object to encode + * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. + * @param message MigrateResourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. - * @param message ImportModelEvaluationRequest message or plain object to encode + * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. + * @param message MigrateResourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * Decodes a MigrateResourceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportModelEvaluationRequest + * @returns MigrateResourceResponse * @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.aiplatform.v1.ImportModelEvaluationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigrateResourceResponse; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportModelEvaluationRequest + * @returns MigrateResourceResponse * @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.aiplatform.v1.ImportModelEvaluationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigrateResourceResponse; /** - * Verifies an ImportModelEvaluationRequest message. + * Verifies a MigrateResourceResponse 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 an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportModelEvaluationRequest + * @returns MigrateResourceResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceResponse; /** - * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. - * @param message ImportModelEvaluationRequest + * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. + * @param message MigrateResourceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ImportModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportModelEvaluationRequest to JSON. + * Converts this MigrateResourceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportModelEvaluationRequest + * Gets the default type url for MigrateResourceResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchImportModelEvaluationSlicesRequest. */ - interface IBatchImportModelEvaluationSlicesRequest { + /** Properties of a BatchMigrateResourcesOperationMetadata. */ + interface IBatchMigrateResourcesOperationMetadata { - /** BatchImportModelEvaluationSlicesRequest parent */ - parent?: (string|null); + /** BatchMigrateResourcesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices */ - modelEvaluationSlices?: (google.cloud.aiplatform.v1.IModelEvaluationSlice[]|null); + /** BatchMigrateResourcesOperationMetadata partialResults */ + partialResults?: (google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult[]|null); } - /** Represents a BatchImportModelEvaluationSlicesRequest. */ - class BatchImportModelEvaluationSlicesRequest implements IBatchImportModelEvaluationSlicesRequest { + /** Represents a BatchMigrateResourcesOperationMetadata. */ + class BatchMigrateResourcesOperationMetadata implements IBatchMigrateResourcesOperationMetadata { /** - * Constructs a new BatchImportModelEvaluationSlicesRequest. + * Constructs a new BatchMigrateResourcesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata); - /** BatchImportModelEvaluationSlicesRequest parent. */ - public parent: string; + /** BatchMigrateResourcesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. */ - public modelEvaluationSlices: google.cloud.aiplatform.v1.IModelEvaluationSlice[]; + /** BatchMigrateResourcesOperationMetadata partialResults. */ + public partialResults: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult[]; /** - * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchImportModelEvaluationSlicesRequest instance + * @returns BatchMigrateResourcesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchImportModelEvaluationSlicesRequest + * @returns BatchMigrateResourcesOperationMetadata * @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.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchImportModelEvaluationSlicesRequest + * @returns BatchMigrateResourcesOperationMetadata * @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.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; /** - * Verifies a BatchImportModelEvaluationSlicesRequest message. + * Verifies a BatchMigrateResourcesOperationMetadata 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 BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchImportModelEvaluationSlicesRequest + * @returns BatchMigrateResourcesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; /** - * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. - * @param message BatchImportModelEvaluationSlicesRequest + * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * Converts this BatchMigrateResourcesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchImportModelEvaluationSlicesRequest + * Gets the default type url for BatchMigrateResourcesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchImportModelEvaluationSlicesResponse. */ - interface IBatchImportModelEvaluationSlicesResponse { + namespace BatchMigrateResourcesOperationMetadata { - /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices */ - importedModelEvaluationSlices?: (string[]|null); - } + /** Properties of a PartialResult. */ + interface IPartialResult { - /** Represents a BatchImportModelEvaluationSlicesResponse. */ - class BatchImportModelEvaluationSlicesResponse implements IBatchImportModelEvaluationSlicesResponse { + /** PartialResult error */ + error?: (google.rpc.IStatus|null); - /** - * Constructs a new BatchImportModelEvaluationSlicesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse); + /** PartialResult model */ + model?: (string|null); - /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. */ - public importedModelEvaluationSlices: string[]; + /** PartialResult dataset */ + dataset?: (string|null); - /** - * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchImportModelEvaluationSlicesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + /** PartialResult request */ + request?: (google.cloud.aiplatform.v1.IMigrateResourceRequest|null); + } - /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a PartialResult. */ + class PartialResult implements IPartialResult { - /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new PartialResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult); - /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchImportModelEvaluationSlicesResponse - * @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.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + /** PartialResult error. */ + public error?: (google.rpc.IStatus|null); - /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchImportModelEvaluationSlicesResponse - * @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.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + /** PartialResult model. */ + public model?: (string|null); - /** - * Verifies a BatchImportModelEvaluationSlicesResponse 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); + /** PartialResult dataset. */ + public dataset?: (string|null); - /** - * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchImportModelEvaluationSlicesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + /** PartialResult request. */ + public request?: (google.cloud.aiplatform.v1.IMigrateResourceRequest|null); - /** - * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. - * @param message BatchImportModelEvaluationSlicesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PartialResult result. */ + public result?: ("error"|"model"|"dataset"); - /** - * Converts this BatchImportModelEvaluationSlicesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new PartialResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PartialResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; - /** - * Gets the default type url for BatchImportModelEvaluationSlicesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @param message PartialResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @param message PartialResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PartialResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PartialResult + * @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.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Decodes a PartialResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PartialResult + * @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.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Verifies a PartialResult 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 PartialResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PartialResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Creates a plain object from a PartialResult message. Also converts values to other types if specified. + * @param message PartialResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PartialResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PartialResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a GetModelEvaluationRequest. */ - interface IGetModelEvaluationRequest { + /** Properties of a ModelEvaluation. */ + interface IModelEvaluation { - /** GetModelEvaluationRequest name */ + /** ModelEvaluation name */ name?: (string|null); + + /** ModelEvaluation displayName */ + displayName?: (string|null); + + /** ModelEvaluation metricsSchemaUri */ + metricsSchemaUri?: (string|null); + + /** ModelEvaluation metrics */ + metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluation createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluation sliceDimensions */ + sliceDimensions?: (string[]|null); + + /** ModelEvaluation dataItemSchemaUri */ + dataItemSchemaUri?: (string|null); + + /** ModelEvaluation annotationSchemaUri */ + annotationSchemaUri?: (string|null); + + /** ModelEvaluation modelExplanation */ + modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); + + /** ModelEvaluation explanationSpecs */ + explanationSpecs?: (google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec[]|null); + + /** ModelEvaluation metadata */ + metadata?: (google.protobuf.IValue|null); } - /** Represents a GetModelEvaluationRequest. */ - class GetModelEvaluationRequest implements IGetModelEvaluationRequest { + /** Represents a ModelEvaluation. */ + class ModelEvaluation implements IModelEvaluation { /** - * Constructs a new GetModelEvaluationRequest. + * Constructs a new ModelEvaluation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationRequest); + constructor(properties?: google.cloud.aiplatform.v1.IModelEvaluation); - /** GetModelEvaluationRequest name. */ + /** ModelEvaluation name. */ public name: string; + /** ModelEvaluation displayName. */ + public displayName: string; + + /** ModelEvaluation metricsSchemaUri. */ + public metricsSchemaUri: string; + + /** ModelEvaluation metrics. */ + public metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluation createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluation sliceDimensions. */ + public sliceDimensions: string[]; + + /** ModelEvaluation dataItemSchemaUri. */ + public dataItemSchemaUri: string; + + /** ModelEvaluation annotationSchemaUri. */ + public annotationSchemaUri: string; + + /** ModelEvaluation modelExplanation. */ + public modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); + + /** ModelEvaluation explanationSpecs. */ + public explanationSpecs: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec[]; + + /** ModelEvaluation metadata. */ + public metadata?: (google.protobuf.IValue|null); + /** - * Creates a new GetModelEvaluationRequest instance using the specified properties. + * Creates a new ModelEvaluation instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelEvaluationRequest instance + * @returns ModelEvaluation instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationRequest): google.cloud.aiplatform.v1.GetModelEvaluationRequest; + public static create(properties?: google.cloud.aiplatform.v1.IModelEvaluation): google.cloud.aiplatform.v1.ModelEvaluation; /** - * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. - * @param message GetModelEvaluationRequest message or plain object to encode + * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. + * @param message ModelEvaluation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. - * @param message GetModelEvaluationRequest message or plain object to encode + * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. + * @param message ModelEvaluation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. + * Decodes a ModelEvaluation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelEvaluationRequest + * @returns ModelEvaluation * @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.aiplatform.v1.GetModelEvaluationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelEvaluation; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelEvaluationRequest + * @returns ModelEvaluation * @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.aiplatform.v1.GetModelEvaluationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelEvaluation; /** - * Verifies a GetModelEvaluationRequest message. + * Verifies a ModelEvaluation 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 GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelEvaluationRequest + * @returns ModelEvaluation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelEvaluationRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluation; /** - * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. - * @param message GetModelEvaluationRequest + * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. + * @param message ModelEvaluation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelEvaluationRequest to JSON. + * Converts this ModelEvaluation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelEvaluationRequest + * Gets the default type url for ModelEvaluation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelEvaluationsRequest. */ - interface IListModelEvaluationsRequest { + namespace ModelEvaluation { - /** ListModelEvaluationsRequest parent */ - parent?: (string|null); + /** Properties of a ModelEvaluationExplanationSpec. */ + interface IModelEvaluationExplanationSpec { - /** ListModelEvaluationsRequest filter */ - filter?: (string|null); + /** ModelEvaluationExplanationSpec explanationType */ + explanationType?: (string|null); - /** ListModelEvaluationsRequest pageSize */ - pageSize?: (number|null); + /** ModelEvaluationExplanationSpec explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1.IExplanationSpec|null); + } - /** ListModelEvaluationsRequest pageToken */ - pageToken?: (string|null); + /** Represents a ModelEvaluationExplanationSpec. */ + class ModelEvaluationExplanationSpec implements IModelEvaluationExplanationSpec { - /** ListModelEvaluationsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** + * Constructs a new ModelEvaluationExplanationSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec); + + /** ModelEvaluationExplanationSpec explanationType. */ + public explanationType: string; + + /** ModelEvaluationExplanationSpec explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1.IExplanationSpec|null); + + /** + * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelEvaluationExplanationSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec): google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; + + /** + * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @param message ModelEvaluationExplanationSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @param message ModelEvaluationExplanationSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelEvaluationExplanationSpec + * @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.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; + + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelEvaluationExplanationSpec + * @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.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; + + /** + * Verifies a ModelEvaluationExplanationSpec 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 ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelEvaluationExplanationSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; + + /** + * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * @param message ModelEvaluationExplanationSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelEvaluationExplanationSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelEvaluationExplanationSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ListModelEvaluationsRequest. */ - class ListModelEvaluationsRequest implements IListModelEvaluationsRequest { + /** Properties of a ModelEvaluationSlice. */ + interface IModelEvaluationSlice { + + /** ModelEvaluationSlice name */ + name?: (string|null); + + /** ModelEvaluationSlice slice */ + slice?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null); + + /** ModelEvaluationSlice metricsSchemaUri */ + metricsSchemaUri?: (string|null); + + /** ModelEvaluationSlice metrics */ + metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluationSlice createTime */ + createTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a ModelEvaluationSlice. */ + class ModelEvaluationSlice implements IModelEvaluationSlice { /** - * Constructs a new ListModelEvaluationsRequest. + * Constructs a new ModelEvaluationSlice. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IModelEvaluationSlice); - /** ListModelEvaluationsRequest parent. */ - public parent: string; + /** ModelEvaluationSlice name. */ + public name: string; - /** ListModelEvaluationsRequest filter. */ - public filter: string; + /** ModelEvaluationSlice slice. */ + public slice?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null); - /** ListModelEvaluationsRequest pageSize. */ - public pageSize: number; + /** ModelEvaluationSlice metricsSchemaUri. */ + public metricsSchemaUri: string; - /** ListModelEvaluationsRequest pageToken. */ - public pageToken: string; + /** ModelEvaluationSlice metrics. */ + public metrics?: (google.protobuf.IValue|null); - /** ListModelEvaluationsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ModelEvaluationSlice createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListModelEvaluationsRequest instance using the specified properties. + * Creates a new ModelEvaluationSlice instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelEvaluationsRequest instance + * @returns ModelEvaluationSlice instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsRequest): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IModelEvaluationSlice): google.cloud.aiplatform.v1.ModelEvaluationSlice; /** - * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. - * @param message ListModelEvaluationsRequest message or plain object to encode + * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. + * @param message ModelEvaluationSlice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. - * @param message ListModelEvaluationsRequest message or plain object to encode + * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. + * @param message ModelEvaluationSlice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelEvaluationsRequest + * @returns ModelEvaluationSlice * @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.aiplatform.v1.ListModelEvaluationsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelEvaluationSlice; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationsRequest + * @returns ModelEvaluationSlice * @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.aiplatform.v1.ListModelEvaluationsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelEvaluationSlice; /** - * Verifies a ListModelEvaluationsRequest message. + * Verifies a ModelEvaluationSlice 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 ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelEvaluationsRequest + * @returns ModelEvaluationSlice */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice; /** - * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. - * @param message ListModelEvaluationsRequest + * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. + * @param message ModelEvaluationSlice * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelEvaluationsRequest to JSON. + * Converts this ModelEvaluationSlice to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelEvaluationsRequest + * Gets the default type url for ModelEvaluationSlice * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelEvaluationsResponse. */ - interface IListModelEvaluationsResponse { + namespace ModelEvaluationSlice { - /** ListModelEvaluationsResponse modelEvaluations */ - modelEvaluations?: (google.cloud.aiplatform.v1.IModelEvaluation[]|null); + /** Properties of a Slice. */ + interface ISlice { - /** ListModelEvaluationsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** Slice dimension */ + dimension?: (string|null); - /** Represents a ListModelEvaluationsResponse. */ - class ListModelEvaluationsResponse implements IListModelEvaluationsResponse { + /** Slice value */ + value?: (string|null); + } - /** - * Constructs a new ListModelEvaluationsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsResponse); + /** Represents a Slice. */ + class Slice implements ISlice { - /** ListModelEvaluationsResponse modelEvaluations. */ - public modelEvaluations: google.cloud.aiplatform.v1.IModelEvaluation[]; + /** + * Constructs a new Slice. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice); - /** ListModelEvaluationsResponse nextPageToken. */ - public nextPageToken: string; + /** Slice dimension. */ + public dimension: string; + + /** Slice value. */ + public value: string; + + /** + * Creates a new Slice instance using the specified properties. + * @param [properties] Properties to set + * @returns Slice instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice; + + /** + * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @param message Slice message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @param message Slice message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Slice message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Slice + * @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.aiplatform.v1.ModelEvaluationSlice.Slice; + + /** + * Decodes a Slice message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Slice + * @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.aiplatform.v1.ModelEvaluationSlice.Slice; + + /** + * Verifies a Slice 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 Slice message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Slice + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice; + + /** + * Creates a plain object from a Slice message. Also converts values to other types if specified. + * @param message Slice + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Slice to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Slice + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Represents a ModelService */ + class ModelService extends $protobuf.rpc.Service { /** - * Creates a new ListModelEvaluationsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationsResponse instance + * Constructs a new ModelService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsResponse): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. - * @param message ListModelEvaluationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Creates new ModelService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelService; /** - * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. - * @param message ListModelEvaluationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UploadModel. + * @param request UploadModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public uploadModel(request: google.cloud.aiplatform.v1.IUploadModelRequest, callback: google.cloud.aiplatform.v1.ModelService.UploadModelCallback): void; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UploadModel. + * @param request UploadModelRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; + public uploadModel(request: google.cloud.aiplatform.v1.IUploadModelRequest): Promise; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetModel. + * @param request GetModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; + public getModel(request: google.cloud.aiplatform.v1.IGetModelRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelCallback): void; /** - * Verifies a ListModelEvaluationsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetModel. + * @param request GetModelRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getModel(request: google.cloud.aiplatform.v1.IGetModelRequest): Promise; /** - * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelEvaluationsResponse + * Calls ListModels. + * @param request ListModelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; + public listModels(request: google.cloud.aiplatform.v1.IListModelsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelsCallback): void; /** - * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. - * @param message ListModelEvaluationsResponse - * @param [options] Conversion options - * @returns Plain object + * Calls ListModels. + * @param request ListModelsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listModels(request: google.cloud.aiplatform.v1.IListModelsRequest): Promise; /** - * Converts this ListModelEvaluationsResponse to JSON. - * @returns JSON object + * Calls ListModelVersions. + * @param request ListModelVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelVersionsResponse */ - public toJSON(): { [k: string]: any }; + public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback): void; /** - * Gets the default type url for ListModelEvaluationsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ListModelVersions. + * @param request ListModelVersionsRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetModelEvaluationSliceRequest. */ - interface IGetModelEvaluationSliceRequest { - - /** GetModelEvaluationSliceRequest name */ - name?: (string|null); - } - - /** Represents a GetModelEvaluationSliceRequest. */ - class GetModelEvaluationSliceRequest implements IGetModelEvaluationSliceRequest { + public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest): Promise; /** - * Constructs a new GetModelEvaluationSliceRequest. - * @param [properties] Properties to set + * Calls UpdateModel. + * @param request UpdateModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model */ - constructor(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest); - - /** GetModelEvaluationSliceRequest name. */ - public name: string; + public updateModel(request: google.cloud.aiplatform.v1.IUpdateModelRequest, callback: google.cloud.aiplatform.v1.ModelService.UpdateModelCallback): void; /** - * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetModelEvaluationSliceRequest instance + * Calls UpdateModel. + * @param request UpdateModelRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; + public updateModel(request: google.cloud.aiplatform.v1.IUpdateModelRequest): Promise; /** - * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @param message GetModelEvaluationSliceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteModel. + * @param request DeleteModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteModel(request: google.cloud.aiplatform.v1.IDeleteModelRequest, callback: google.cloud.aiplatform.v1.ModelService.DeleteModelCallback): void; /** - * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @param message GetModelEvaluationSliceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteModel. + * @param request DeleteModelRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteModel(request: google.cloud.aiplatform.v1.IDeleteModelRequest): Promise; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetModelEvaluationSliceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelVersion. + * @param request DeleteModelVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; + public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, callback: google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback): void; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetModelEvaluationSliceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelVersion. + * @param request DeleteModelVersionRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; + public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): Promise; /** - * Verifies a GetModelEvaluationSliceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls MergeVersionAliases. + * @param request MergeVersionAliasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model */ - public static verify(message: { [k: string]: any }): (string|null); + public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, callback: google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback): void; /** - * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetModelEvaluationSliceRequest + * Calls MergeVersionAliases. + * @param request MergeVersionAliasesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; + public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): Promise; /** - * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. - * @param message GetModelEvaluationSliceRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ExportModel. + * @param request ExportModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public exportModel(request: google.cloud.aiplatform.v1.IExportModelRequest, callback: google.cloud.aiplatform.v1.ModelService.ExportModelCallback): void; /** - * Converts this GetModelEvaluationSliceRequest to JSON. - * @returns JSON object + * Calls ExportModel. + * @param request ExportModelRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public exportModel(request: google.cloud.aiplatform.v1.IExportModelRequest): Promise; /** - * Gets the default type url for GetModelEvaluationSliceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListModelEvaluationSlicesRequest. */ - interface IListModelEvaluationSlicesRequest { - - /** ListModelEvaluationSlicesRequest parent */ - parent?: (string|null); - - /** ListModelEvaluationSlicesRequest filter */ - filter?: (string|null); - - /** ListModelEvaluationSlicesRequest pageSize */ - pageSize?: (number|null); - - /** ListModelEvaluationSlicesRequest pageToken */ - pageToken?: (string|null); - - /** ListModelEvaluationSlicesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents a ListModelEvaluationSlicesRequest. */ - class ListModelEvaluationSlicesRequest implements IListModelEvaluationSlicesRequest { + public copyModel(request: google.cloud.aiplatform.v1.ICopyModelRequest, callback: google.cloud.aiplatform.v1.ModelService.CopyModelCallback): void; /** - * Constructs a new ListModelEvaluationSlicesRequest. - * @param [properties] Properties to set + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest); - - /** ListModelEvaluationSlicesRequest parent. */ - public parent: string; - - /** ListModelEvaluationSlicesRequest filter. */ - public filter: string; - - /** ListModelEvaluationSlicesRequest pageSize. */ - public pageSize: number; - - /** ListModelEvaluationSlicesRequest pageToken. */ - public pageToken: string; - - /** ListModelEvaluationSlicesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + public copyModel(request: google.cloud.aiplatform.v1.ICopyModelRequest): Promise; /** - * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationSlicesRequest instance + * Calls ImportModelEvaluation. + * @param request ImportModelEvaluationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluation */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; + public importModelEvaluation(request: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, callback: google.cloud.aiplatform.v1.ModelService.ImportModelEvaluationCallback): void; /** - * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. - * @param message ListModelEvaluationSlicesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ImportModelEvaluation. + * @param request ImportModelEvaluationRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public importModelEvaluation(request: google.cloud.aiplatform.v1.IImportModelEvaluationRequest): Promise; /** - * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. - * @param message ListModelEvaluationSlicesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback): void; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationSlicesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): Promise; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationSlicesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetModelEvaluation. + * @param request GetModelEvaluationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; + public getModelEvaluation(request: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelEvaluationCallback): void; /** - * Verifies a ListModelEvaluationSlicesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetModelEvaluation. + * @param request GetModelEvaluationRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getModelEvaluation(request: google.cloud.aiplatform.v1.IGetModelEvaluationRequest): Promise; /** - * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelEvaluationSlicesRequest + * Calls ListModelEvaluations. + * @param request ListModelEvaluationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; + public listModelEvaluations(request: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelEvaluationsCallback): void; /** - * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. - * @param message ListModelEvaluationSlicesRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ListModelEvaluations. + * @param request ListModelEvaluationsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listModelEvaluations(request: google.cloud.aiplatform.v1.IListModelEvaluationsRequest): Promise; /** - * Converts this ListModelEvaluationSlicesRequest to JSON. - * @returns JSON object + * Calls GetModelEvaluationSlice. + * @param request GetModelEvaluationSliceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluationSlice */ - public toJSON(): { [k: string]: any }; + public getModelEvaluationSlice(request: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSliceCallback): void; /** - * Gets the default type url for ListModelEvaluationSlicesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetModelEvaluationSlice. + * @param request GetModelEvaluationSliceRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListModelEvaluationSlicesResponse. */ - interface IListModelEvaluationSlicesResponse { + public getModelEvaluationSlice(request: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest): Promise; - /** ListModelEvaluationSlicesResponse modelEvaluationSlices */ - modelEvaluationSlices?: (google.cloud.aiplatform.v1.IModelEvaluationSlice[]|null); + /** + * Calls ListModelEvaluationSlices. + * @param request ListModelEvaluationSlicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + */ + public listModelEvaluationSlices(request: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlicesCallback): void; - /** ListModelEvaluationSlicesResponse nextPageToken */ - nextPageToken?: (string|null); + /** + * Calls ListModelEvaluationSlices. + * @param request ListModelEvaluationSlicesRequest message or plain object + * @returns Promise + */ + public listModelEvaluationSlices(request: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest): Promise; } - /** Represents a ListModelEvaluationSlicesResponse. */ - class ListModelEvaluationSlicesResponse implements IListModelEvaluationSlicesResponse { + namespace ModelService { /** - * Constructs a new ListModelEvaluationSlicesResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|uploadModel}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse); - - /** ListModelEvaluationSlicesResponse modelEvaluationSlices. */ - public modelEvaluationSlices: google.cloud.aiplatform.v1.IModelEvaluationSlice[]; - - /** ListModelEvaluationSlicesResponse nextPageToken. */ - public nextPageToken: string; + type UploadModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationSlicesResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModel}. + * @param error Error, if any + * @param [response] Model */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; + type GetModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; /** - * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @param message ListModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModels}. + * @param error Error, if any + * @param [response] ListModelsResponse */ - public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type ListModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelsResponse) => void; /** - * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @param message ListModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelVersions}. + * @param error Error, if any + * @param [response] ListModelVersionsResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type ListModelVersionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelVersionsResponse) => void; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationSlicesResponse + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|updateModel}. + * @param error Error, if any + * @param [response] Model + */ + type UpdateModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModel}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModelVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteModelVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|mergeVersionAliases}. + * @param error Error, if any + * @param [response] Model + */ + type MergeVersionAliasesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|exportModel}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|copyModel}. + * @param error Error, if any + * @param [response] Operation + */ + type CopyModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|importModelEvaluation}. + * @param error Error, if any + * @param [response] ModelEvaluation + */ + type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportModelEvaluationSlices}. + * @param error Error, if any + * @param [response] BatchImportModelEvaluationSlicesResponse + */ + type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluation}. + * @param error Error, if any + * @param [response] ModelEvaluation + */ + type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluations}. + * @param error Error, if any + * @param [response] ListModelEvaluationsResponse + */ + type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelEvaluationsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluationSlice}. + * @param error Error, if any + * @param [response] ModelEvaluationSlice + */ + type GetModelEvaluationSliceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluationSlice) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluationSlices}. + * @param error Error, if any + * @param [response] ListModelEvaluationSlicesResponse + */ + type ListModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) => void; + } + + /** Properties of an UploadModelRequest. */ + interface IUploadModelRequest { + + /** UploadModelRequest parent */ + parent?: (string|null); + + /** UploadModelRequest parentModel */ + parentModel?: (string|null); + + /** UploadModelRequest modelId */ + modelId?: (string|null); + + /** UploadModelRequest model */ + model?: (google.cloud.aiplatform.v1.IModel|null); + + /** UploadModelRequest serviceAccount */ + serviceAccount?: (string|null); + } + + /** Represents an UploadModelRequest. */ + class UploadModelRequest implements IUploadModelRequest { + + /** + * Constructs a new UploadModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUploadModelRequest); + + /** UploadModelRequest parent. */ + public parent: string; + + /** UploadModelRequest parentModel. */ + public parentModel: string; + + /** UploadModelRequest modelId. */ + public modelId: string; + + /** UploadModelRequest model. */ + public model?: (google.cloud.aiplatform.v1.IModel|null); + + /** UploadModelRequest serviceAccount. */ + public serviceAccount: string; + + /** + * Creates a new UploadModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UploadModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUploadModelRequest): google.cloud.aiplatform.v1.UploadModelRequest; + + /** + * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. + * @param message UploadModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. + * @param message UploadModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UploadModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UploadModelRequest * @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.aiplatform.v1.ListModelEvaluationSlicesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UploadModelRequest; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationSlicesResponse + * @returns UploadModelRequest * @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.aiplatform.v1.ListModelEvaluationSlicesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UploadModelRequest; /** - * Verifies a ListModelEvaluationSlicesResponse message. + * Verifies an UploadModelRequest 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 ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelEvaluationSlicesResponse + * @returns UploadModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelRequest; /** - * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. - * @param message ListModelEvaluationSlicesResponse + * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. + * @param message UploadModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UploadModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelEvaluationSlicesResponse to JSON. + * Converts this UploadModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelEvaluationSlicesResponse + * Gets the default type url for UploadModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PipelineFailurePolicy enum. */ - enum PipelineFailurePolicy { - PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0, - PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1, - PIPELINE_FAILURE_POLICY_FAIL_FAST = 2 - } - - /** Properties of a PipelineJob. */ - interface IPipelineJob { + /** Properties of an UploadModelOperationMetadata. */ + interface IUploadModelOperationMetadata { - /** PipelineJob name */ - name?: (string|null); + /** UploadModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } - /** PipelineJob displayName */ - displayName?: (string|null); + /** Represents an UploadModelOperationMetadata. */ + class UploadModelOperationMetadata implements IUploadModelOperationMetadata { - /** PipelineJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new UploadModelOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUploadModelOperationMetadata); - /** PipelineJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** UploadModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** PipelineJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new UploadModelOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UploadModelOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUploadModelOperationMetadata): google.cloud.aiplatform.v1.UploadModelOperationMetadata; - /** PipelineJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. + * @param message UploadModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob pipelineSpec */ - pipelineSpec?: (google.protobuf.IStruct|null); + /** + * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. + * @param message UploadModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob state */ - state?: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState|null); + /** + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UploadModelOperationMetadata + * @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.aiplatform.v1.UploadModelOperationMetadata; - /** PipelineJob jobDetail */ - jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + /** + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UploadModelOperationMetadata + * @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.aiplatform.v1.UploadModelOperationMetadata; - /** PipelineJob error */ - error?: (google.rpc.IStatus|null); + /** + * Verifies an UploadModelOperationMetadata 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); - /** PipelineJob labels */ - labels?: ({ [k: string]: string }|null); + /** + * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UploadModelOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelOperationMetadata; - /** PipelineJob runtimeConfig */ - runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); + /** + * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. + * @param message UploadModelOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UploadModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PipelineJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** + * Converts this UploadModelOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PipelineJob serviceAccount */ - serviceAccount?: (string|null); + /** + * Gets the default type url for UploadModelOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PipelineJob network */ - network?: (string|null); + /** Properties of an UploadModelResponse. */ + interface IUploadModelResponse { - /** PipelineJob templateUri */ - templateUri?: (string|null); + /** UploadModelResponse model */ + model?: (string|null); - /** PipelineJob templateMetadata */ - templateMetadata?: (google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null); + /** UploadModelResponse modelVersionId */ + modelVersionId?: (string|null); } - /** Represents a PipelineJob. */ - class PipelineJob implements IPipelineJob { + /** Represents an UploadModelResponse. */ + class UploadModelResponse implements IUploadModelResponse { /** - * Constructs a new PipelineJob. + * Constructs a new UploadModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineJob); + constructor(properties?: google.cloud.aiplatform.v1.IUploadModelResponse); - /** PipelineJob name. */ - public name: string; + /** UploadModelResponse model. */ + public model: string; - /** PipelineJob displayName. */ - public displayName: string; + /** UploadModelResponse modelVersionId. */ + public modelVersionId: string; - /** PipelineJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new UploadModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UploadModelResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUploadModelResponse): google.cloud.aiplatform.v1.UploadModelResponse; - /** PipelineJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. + * @param message UploadModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. + * @param message UploadModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes an UploadModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UploadModelResponse + * @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.aiplatform.v1.UploadModelResponse; - /** PipelineJob pipelineSpec. */ - public pipelineSpec?: (google.protobuf.IStruct|null); + /** + * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UploadModelResponse + * @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.aiplatform.v1.UploadModelResponse; - /** PipelineJob state. */ - public state: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState); + /** + * Verifies an UploadModelResponse 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); - /** PipelineJob jobDetail. */ - public jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + /** + * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UploadModelResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelResponse; - /** PipelineJob error. */ - public error?: (google.rpc.IStatus|null); + /** + * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. + * @param message UploadModelResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UploadModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PipelineJob labels. */ - public labels: { [k: string]: string }; + /** + * Converts this UploadModelResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PipelineJob runtimeConfig. */ - public runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); + /** + * Gets the default type url for UploadModelResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PipelineJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Properties of a GetModelRequest. */ + interface IGetModelRequest { - /** PipelineJob serviceAccount. */ - public serviceAccount: string; + /** GetModelRequest name */ + name?: (string|null); + } - /** PipelineJob network. */ - public network: string; + /** Represents a GetModelRequest. */ + class GetModelRequest implements IGetModelRequest { - /** PipelineJob templateUri. */ - public templateUri: string; + /** + * Constructs a new GetModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetModelRequest); - /** PipelineJob templateMetadata. */ - public templateMetadata?: (google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null); + /** GetModelRequest name. */ + public name: string; /** - * Creates a new PipelineJob instance using the specified properties. + * Creates a new GetModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineJob instance + * @returns GetModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineJob): google.cloud.aiplatform.v1.PipelineJob; + public static create(properties?: google.cloud.aiplatform.v1.IGetModelRequest): google.cloud.aiplatform.v1.GetModelRequest; /** - * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. - * @param message PipelineJob message or plain object to encode + * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. + * @param message GetModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. - * @param message PipelineJob message or plain object to encode + * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. + * @param message GetModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineJob message from the specified reader or buffer. + * Decodes a GetModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineJob + * @returns GetModelRequest * @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.aiplatform.v1.PipelineJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelRequest; /** - * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineJob + * @returns GetModelRequest * @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.aiplatform.v1.PipelineJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelRequest; /** - * Verifies a PipelineJob message. + * Verifies a GetModelRequest 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 PipelineJob message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineJob + * @returns GetModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelRequest; /** - * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. - * @param message PipelineJob + * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. + * @param message GetModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineJob to JSON. + * Converts this GetModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineJob + * Gets the default type url for GetModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PipelineJob { + /** Properties of a ListModelsRequest. */ + interface IListModelsRequest { - /** Properties of a RuntimeConfig. */ - interface IRuntimeConfig { + /** ListModelsRequest parent */ + parent?: (string|null); - /** RuntimeConfig parameters */ - parameters?: ({ [k: string]: google.cloud.aiplatform.v1.IValue }|null); + /** ListModelsRequest filter */ + filter?: (string|null); - /** RuntimeConfig gcsOutputDirectory */ - gcsOutputDirectory?: (string|null); + /** ListModelsRequest pageSize */ + pageSize?: (number|null); - /** RuntimeConfig parameterValues */ - parameterValues?: ({ [k: string]: google.protobuf.IValue }|null); + /** ListModelsRequest pageToken */ + pageToken?: (string|null); - /** RuntimeConfig failurePolicy */ - failurePolicy?: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy|null); + /** ListModelsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** RuntimeConfig inputArtifacts */ - inputArtifacts?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }|null); - } - - /** Represents a RuntimeConfig. */ - class RuntimeConfig implements IRuntimeConfig { - - /** - * Constructs a new RuntimeConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig); - - /** RuntimeConfig parameters. */ - public parameters: { [k: string]: google.cloud.aiplatform.v1.IValue }; - - /** RuntimeConfig gcsOutputDirectory. */ - public gcsOutputDirectory: string; - - /** RuntimeConfig parameterValues. */ - public parameterValues: { [k: string]: google.protobuf.IValue }; - - /** RuntimeConfig failurePolicy. */ - public failurePolicy: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy); - - /** RuntimeConfig inputArtifacts. */ - public inputArtifacts: { [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }; - - /** - * Creates a new RuntimeConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RuntimeConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig; - - /** - * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @param message RuntimeConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @param message RuntimeConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RuntimeConfig - * @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.aiplatform.v1.PipelineJob.RuntimeConfig; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RuntimeConfig - * @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.aiplatform.v1.PipelineJob.RuntimeConfig; - - /** - * Verifies a RuntimeConfig 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 RuntimeConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RuntimeConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig; - - /** - * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. - * @param message RuntimeConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RuntimeConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RuntimeConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace RuntimeConfig { - - /** Properties of an InputArtifact. */ - interface IInputArtifact { - - /** InputArtifact artifactId */ - artifactId?: (string|null); - } - - /** Represents an InputArtifact. */ - class InputArtifact implements IInputArtifact { - - /** - * Constructs a new InputArtifact. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact); - - /** InputArtifact artifactId. */ - public artifactId?: (string|null); - - /** InputArtifact kind. */ - public kind?: "artifactId"; - - /** - * Creates a new InputArtifact instance using the specified properties. - * @param [properties] Properties to set - * @returns InputArtifact instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - - /** - * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @param message InputArtifact message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @param message InputArtifact message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InputArtifact message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputArtifact - * @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.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - - /** - * Decodes an InputArtifact message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputArtifact - * @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.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - - /** - * Verifies an InputArtifact 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 an InputArtifact message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputArtifact - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; + /** ListModelsRequest orderBy */ + orderBy?: (string|null); + } - /** - * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. - * @param message InputArtifact - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a ListModelsRequest. */ + class ListModelsRequest implements IListModelsRequest { - /** - * Converts this InputArtifact to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new ListModelsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListModelsRequest); - /** - * Gets the default type url for InputArtifact - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** ListModelsRequest parent. */ + public parent: string; - /** Properties of a PipelineTemplateMetadata. */ - interface IPipelineTemplateMetadata { + /** ListModelsRequest filter. */ + public filter: string; - /** PipelineTemplateMetadata version */ - version?: (string|null); - } + /** ListModelsRequest pageSize. */ + public pageSize: number; - /** Represents a PipelineTemplateMetadata. */ - class PipelineTemplateMetadata implements IPipelineTemplateMetadata { + /** ListModelsRequest pageToken. */ + public pageToken: string; - /** - * Constructs a new PipelineTemplateMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineTemplateMetadata); + /** ListModelsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** PipelineTemplateMetadata version. */ - public version: string; + /** ListModelsRequest orderBy. */ + public orderBy: string; /** - * Creates a new PipelineTemplateMetadata instance using the specified properties. + * Creates a new ListModelsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTemplateMetadata instance + * @returns ListModelsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineTemplateMetadata): google.cloud.aiplatform.v1.PipelineTemplateMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IListModelsRequest): google.cloud.aiplatform.v1.ListModelsRequest; /** - * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. - * @param message PipelineTemplateMetadata message or plain object to encode + * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. + * @param message ListModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. - * @param message PipelineTemplateMetadata message or plain object to encode + * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. + * @param message ListModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * Decodes a ListModelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTemplateMetadata + * @returns ListModelsRequest * @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.aiplatform.v1.PipelineTemplateMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelsRequest; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTemplateMetadata + * @returns ListModelsRequest * @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.aiplatform.v1.PipelineTemplateMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelsRequest; /** - * Verifies a PipelineTemplateMetadata message. + * Verifies a ListModelsRequest 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 PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTemplateMetadata + * @returns ListModelsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTemplateMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelsRequest; /** - * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. - * @param message PipelineTemplateMetadata + * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. + * @param message ListModelsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTemplateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTemplateMetadata to JSON. + * Converts this ListModelsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineTemplateMetadata + * Gets the default type url for ListModelsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineJobDetail. */ - interface IPipelineJobDetail { - - /** PipelineJobDetail pipelineContext */ - pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); + /** Properties of a ListModelsResponse. */ + interface IListModelsResponse { - /** PipelineJobDetail pipelineRunContext */ - pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); + /** ListModelsResponse models */ + models?: (google.cloud.aiplatform.v1.IModel[]|null); - /** PipelineJobDetail taskDetails */ - taskDetails?: (google.cloud.aiplatform.v1.IPipelineTaskDetail[]|null); + /** ListModelsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a PipelineJobDetail. */ - class PipelineJobDetail implements IPipelineJobDetail { + /** Represents a ListModelsResponse. */ + class ListModelsResponse implements IListModelsResponse { /** - * Constructs a new PipelineJobDetail. + * Constructs a new ListModelsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail); - - /** PipelineJobDetail pipelineContext. */ - public pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); + constructor(properties?: google.cloud.aiplatform.v1.IListModelsResponse); - /** PipelineJobDetail pipelineRunContext. */ - public pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); + /** ListModelsResponse models. */ + public models: google.cloud.aiplatform.v1.IModel[]; - /** PipelineJobDetail taskDetails. */ - public taskDetails: google.cloud.aiplatform.v1.IPipelineTaskDetail[]; + /** ListModelsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new PipelineJobDetail instance using the specified properties. + * Creates a new ListModelsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineJobDetail instance + * @returns ListModelsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail): google.cloud.aiplatform.v1.PipelineJobDetail; + public static create(properties?: google.cloud.aiplatform.v1.IListModelsResponse): google.cloud.aiplatform.v1.ListModelsResponse; /** - * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. - * @param message PipelineJobDetail message or plain object to encode + * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. + * @param message ListModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. - * @param message PipelineJobDetail message or plain object to encode + * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. + * @param message ListModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer. + * Decodes a ListModelsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineJobDetail + * @returns ListModelsResponse * @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.aiplatform.v1.PipelineJobDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelsResponse; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineJobDetail + * @returns ListModelsResponse * @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.aiplatform.v1.PipelineJobDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelsResponse; /** - * Verifies a PipelineJobDetail message. + * Verifies a ListModelsResponse 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 PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineJobDetail + * @returns ListModelsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJobDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelsResponse; /** - * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. - * @param message PipelineJobDetail + * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. + * @param message ListModelsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineJobDetail to JSON. + * Converts this ListModelsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineJobDetail + * Gets the default type url for ListModelsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineTaskDetail. */ - interface IPipelineTaskDetail { - - /** PipelineTaskDetail taskId */ - taskId?: (number|Long|string|null); - - /** PipelineTaskDetail parentTaskId */ - parentTaskId?: (number|Long|string|null); - - /** PipelineTaskDetail taskName */ - taskName?: (string|null); - - /** PipelineTaskDetail createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail executorDetail */ - executorDetail?: (google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null); + /** Properties of a ListModelVersionsRequest. */ + interface IListModelVersionsRequest { - /** PipelineTaskDetail state */ - state?: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State|null); + /** ListModelVersionsRequest name */ + name?: (string|null); - /** PipelineTaskDetail execution */ - execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** ListModelVersionsRequest pageSize */ + pageSize?: (number|null); - /** PipelineTaskDetail error */ - error?: (google.rpc.IStatus|null); + /** ListModelVersionsRequest pageToken */ + pageToken?: (string|null); - /** PipelineTaskDetail pipelineTaskStatus */ - pipelineTaskStatus?: (google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus[]|null); + /** ListModelVersionsRequest filter */ + filter?: (string|null); - /** PipelineTaskDetail inputs */ - inputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); + /** ListModelVersionsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** PipelineTaskDetail outputs */ - outputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); + /** ListModelVersionsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a PipelineTaskDetail. */ - class PipelineTaskDetail implements IPipelineTaskDetail { + /** Represents a ListModelVersionsRequest. */ + class ListModelVersionsRequest implements IListModelVersionsRequest { /** - * Constructs a new PipelineTaskDetail. + * Constructs a new ListModelVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail); - - /** PipelineTaskDetail taskId. */ - public taskId: (number|Long|string); - - /** PipelineTaskDetail parentTaskId. */ - public parentTaskId: (number|Long|string); - - /** PipelineTaskDetail taskName. */ - public taskName: string; - - /** PipelineTaskDetail createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail executorDetail. */ - public executorDetail?: (google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null); + constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest); - /** PipelineTaskDetail state. */ - public state: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State); + /** ListModelVersionsRequest name. */ + public name: string; - /** PipelineTaskDetail execution. */ - public execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** ListModelVersionsRequest pageSize. */ + public pageSize: number; - /** PipelineTaskDetail error. */ - public error?: (google.rpc.IStatus|null); + /** ListModelVersionsRequest pageToken. */ + public pageToken: string; - /** PipelineTaskDetail pipelineTaskStatus. */ - public pipelineTaskStatus: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus[]; + /** ListModelVersionsRequest filter. */ + public filter: string; - /** PipelineTaskDetail inputs. */ - public inputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; + /** ListModelVersionsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** PipelineTaskDetail outputs. */ - public outputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; + /** ListModelVersionsRequest orderBy. */ + public orderBy: string; /** - * Creates a new PipelineTaskDetail instance using the specified properties. + * Creates a new ListModelVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTaskDetail instance + * @returns ListModelVersionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail): google.cloud.aiplatform.v1.PipelineTaskDetail; + public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest): google.cloud.aiplatform.v1.ListModelVersionsRequest; /** - * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. - * @param message PipelineTaskDetail message or plain object to encode + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. - * @param message PipelineTaskDetail message or plain object to encode + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTaskDetail + * @returns ListModelVersionsRequest * @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.aiplatform.v1.PipelineTaskDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelVersionsRequest; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTaskDetail + * @returns ListModelVersionsRequest * @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.aiplatform.v1.PipelineTaskDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelVersionsRequest; /** - * Verifies a PipelineTaskDetail message. + * Verifies a ListModelVersionsRequest 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 PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTaskDetail + * @returns ListModelVersionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsRequest; /** - * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. - * @param message PipelineTaskDetail - * @param [options] Conversion options + * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. + * @param message ListModelVersionsRequest + * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTaskDetail to JSON. + * Converts this ListModelVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineTaskDetail + * Gets the default type url for ListModelVersionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PipelineTaskDetail { - - /** Properties of a PipelineTaskStatus. */ - interface IPipelineTaskStatus { - - /** PipelineTaskStatus updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListModelVersionsResponse. */ + interface IListModelVersionsResponse { - /** PipelineTaskStatus state */ - state?: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State|null); + /** ListModelVersionsResponse models */ + models?: (google.cloud.aiplatform.v1.IModel[]|null); - /** PipelineTaskStatus error */ - error?: (google.rpc.IStatus|null); - } + /** ListModelVersionsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a PipelineTaskStatus. */ - class PipelineTaskStatus implements IPipelineTaskStatus { + /** Represents a ListModelVersionsResponse. */ + class ListModelVersionsResponse implements IListModelVersionsResponse { - /** - * Constructs a new PipelineTaskStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus); + /** + * Constructs a new ListModelVersionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse); - /** PipelineTaskStatus updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListModelVersionsResponse models. */ + public models: google.cloud.aiplatform.v1.IModel[]; - /** PipelineTaskStatus state. */ - public state: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State); + /** ListModelVersionsResponse nextPageToken. */ + public nextPageToken: string; - /** PipelineTaskStatus error. */ - public error?: (google.rpc.IStatus|null); + /** + * Creates a new ListModelVersionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelVersionsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse): google.cloud.aiplatform.v1.ListModelVersionsResponse; - /** - * Creates a new PipelineTaskStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns PipelineTaskStatus instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus): google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @param message PipelineTaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @param message PipelineTaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListModelVersionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListModelVersionsResponse + * @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.aiplatform.v1.ListModelVersionsResponse; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PipelineTaskStatus - * @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.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListModelVersionsResponse + * @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.aiplatform.v1.ListModelVersionsResponse; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PipelineTaskStatus - * @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.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Verifies a ListModelVersionsResponse 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); - /** - * Verifies a PipelineTaskStatus 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 ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelVersionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsResponse; - /** - * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PipelineTaskStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. + * @param message ListModelVersionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. - * @param message PipelineTaskStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ListModelVersionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this PipelineTaskStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for ListModelVersionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for PipelineTaskStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an UpdateModelRequest. */ + interface IUpdateModelRequest { - /** Properties of an ArtifactList. */ - interface IArtifactList { + /** UpdateModelRequest model */ + model?: (google.cloud.aiplatform.v1.IModel|null); - /** ArtifactList artifacts */ - artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); - } + /** UpdateModelRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** Represents an ArtifactList. */ - class ArtifactList implements IArtifactList { + /** Represents an UpdateModelRequest. */ + class UpdateModelRequest implements IUpdateModelRequest { - /** - * Constructs a new ArtifactList. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList); + /** + * Constructs a new UpdateModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelRequest); - /** ArtifactList artifacts. */ - public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + /** UpdateModelRequest model. */ + public model?: (google.cloud.aiplatform.v1.IModel|null); - /** - * Creates a new ArtifactList instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactList instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList): google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList; + /** UpdateModelRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @param message ArtifactList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new UpdateModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelRequest): google.cloud.aiplatform.v1.UpdateModelRequest; - /** - * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @param message ArtifactList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. + * @param message UpdateModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ArtifactList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactList - * @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.aiplatform.v1.PipelineTaskDetail.ArtifactList; + /** + * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. + * @param message UpdateModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ArtifactList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ArtifactList - * @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.aiplatform.v1.PipelineTaskDetail.ArtifactList; + /** + * Decodes an UpdateModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelRequest + * @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.aiplatform.v1.UpdateModelRequest; - /** - * Verifies an ArtifactList 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); + /** + * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelRequest + * @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.aiplatform.v1.UpdateModelRequest; - /** - * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ArtifactList - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList; + /** + * Verifies an UpdateModelRequest 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 plain object from an ArtifactList message. Also converts values to other types if specified. - * @param message ArtifactList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelRequest; - /** - * Converts this ArtifactList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. + * @param message UpdateModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ArtifactList - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this UpdateModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - RUNNING = 2, - SUCCEEDED = 3, - CANCEL_PENDING = 4, - CANCELLING = 5, - CANCELLED = 6, - FAILED = 7, - SKIPPED = 8, - NOT_TRIGGERED = 9 - } + /** + * Gets the default type url for UpdateModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineTaskExecutorDetail. */ - interface IPipelineTaskExecutorDetail { - - /** PipelineTaskExecutorDetail containerDetail */ - containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); + /** Properties of a DeleteModelRequest. */ + interface IDeleteModelRequest { - /** PipelineTaskExecutorDetail customJobDetail */ - customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + /** DeleteModelRequest name */ + name?: (string|null); } - /** Represents a PipelineTaskExecutorDetail. */ - class PipelineTaskExecutorDetail implements IPipelineTaskExecutorDetail { + /** Represents a DeleteModelRequest. */ + class DeleteModelRequest implements IDeleteModelRequest { /** - * Constructs a new PipelineTaskExecutorDetail. + * Constructs a new DeleteModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail); - - /** PipelineTaskExecutorDetail containerDetail. */ - public containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); - - /** PipelineTaskExecutorDetail customJobDetail. */ - public customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelRequest); - /** PipelineTaskExecutorDetail details. */ - public details?: ("containerDetail"|"customJobDetail"); + /** DeleteModelRequest name. */ + public name: string; /** - * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * Creates a new DeleteModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTaskExecutorDetail instance + * @returns DeleteModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelRequest): google.cloud.aiplatform.v1.DeleteModelRequest; /** - * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. - * @param message PipelineTaskExecutorDetail message or plain object to encode + * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. + * @param message DeleteModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. - * @param message PipelineTaskExecutorDetail message or plain object to encode + * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. + * @param message DeleteModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * Decodes a DeleteModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTaskExecutorDetail + * @returns DeleteModelRequest * @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.aiplatform.v1.PipelineTaskExecutorDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteModelRequest; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTaskExecutorDetail + * @returns DeleteModelRequest * @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.aiplatform.v1.PipelineTaskExecutorDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteModelRequest; /** - * Verifies a PipelineTaskExecutorDetail message. + * Verifies a DeleteModelRequest 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 PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTaskExecutorDetail + * @returns DeleteModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelRequest; /** - * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. - * @param message PipelineTaskExecutorDetail + * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * @param message DeleteModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTaskExecutorDetail to JSON. + * Converts this DeleteModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineTaskExecutorDetail + * Gets the default type url for DeleteModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PipelineTaskExecutorDetail { - - /** Properties of a ContainerDetail. */ - interface IContainerDetail { + /** Properties of a DeleteModelVersionRequest. */ + interface IDeleteModelVersionRequest { - /** ContainerDetail mainJob */ - mainJob?: (string|null); + /** DeleteModelVersionRequest name */ + name?: (string|null); + } - /** ContainerDetail preCachingCheckJob */ - preCachingCheckJob?: (string|null); + /** Represents a DeleteModelVersionRequest. */ + class DeleteModelVersionRequest implements IDeleteModelVersionRequest { - /** ContainerDetail failedMainJobs */ - failedMainJobs?: (string[]|null); + /** + * Constructs a new DeleteModelVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest); - /** ContainerDetail failedPreCachingCheckJobs */ - failedPreCachingCheckJobs?: (string[]|null); - } + /** DeleteModelVersionRequest name. */ + public name: string; - /** Represents a ContainerDetail. */ - class ContainerDetail implements IContainerDetail { + /** + * Creates a new DeleteModelVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteModelVersionRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): google.cloud.aiplatform.v1.DeleteModelVersionRequest; - /** - * Constructs a new ContainerDetail. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail); + /** + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * @param message DeleteModelVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ContainerDetail mainJob. */ - public mainJob: string; + /** + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * @param message DeleteModelVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ContainerDetail preCachingCheckJob. */ - public preCachingCheckJob: string; + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteModelVersionRequest + * @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.aiplatform.v1.DeleteModelVersionRequest; - /** ContainerDetail failedMainJobs. */ - public failedMainJobs: string[]; + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteModelVersionRequest + * @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.aiplatform.v1.DeleteModelVersionRequest; - /** ContainerDetail failedPreCachingCheckJobs. */ - public failedPreCachingCheckJobs: string[]; + /** + * Verifies a DeleteModelVersionRequest 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 new ContainerDetail instance using the specified properties. - * @param [properties] Properties to set - * @returns ContainerDetail instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; + /** + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteModelVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelVersionRequest; - /** - * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @param message ContainerDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. + * @param message DeleteModelVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteModelVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @param message ContainerDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this DeleteModelVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ContainerDetail message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContainerDetail - * @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.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; + /** + * Gets the default type url for DeleteModelVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContainerDetail - * @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.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; + /** Properties of a MergeVersionAliasesRequest. */ + interface IMergeVersionAliasesRequest { - /** - * Verifies a ContainerDetail 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); + /** MergeVersionAliasesRequest name */ + name?: (string|null); - /** - * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContainerDetail - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; + /** MergeVersionAliasesRequest versionAliases */ + versionAliases?: (string[]|null); + } - /** - * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. - * @param message ContainerDetail - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a MergeVersionAliasesRequest. */ + class MergeVersionAliasesRequest implements IMergeVersionAliasesRequest { - /** - * Converts this ContainerDetail to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new MergeVersionAliasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest); - /** - * Gets the default type url for ContainerDetail - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** MergeVersionAliasesRequest name. */ + public name: string; - /** Properties of a CustomJobDetail. */ - interface ICustomJobDetail { + /** MergeVersionAliasesRequest versionAliases. */ + public versionAliases: string[]; - /** CustomJobDetail job */ - job?: (string|null); + /** + * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MergeVersionAliasesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * @param message MergeVersionAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * @param message MergeVersionAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MergeVersionAliasesRequest + * @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.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MergeVersionAliasesRequest + * @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.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Verifies a MergeVersionAliasesRequest 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 MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MergeVersionAliasesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. + * @param message MergeVersionAliasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MergeVersionAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MergeVersionAliasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MergeVersionAliasesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExportModelRequest. */ + interface IExportModelRequest { + + /** ExportModelRequest name */ + name?: (string|null); + + /** ExportModelRequest outputConfig */ + outputConfig?: (google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null); + } + + /** Represents an ExportModelRequest. */ + class ExportModelRequest implements IExportModelRequest { + + /** + * Constructs a new ExportModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExportModelRequest); + + /** ExportModelRequest name. */ + public name: string; + + /** ExportModelRequest outputConfig. */ + public outputConfig?: (google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null); + + /** + * Creates a new ExportModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExportModelRequest): google.cloud.aiplatform.v1.ExportModelRequest; + + /** + * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. + * @param message ExportModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. + * @param message ExportModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExportModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportModelRequest + * @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.aiplatform.v1.ExportModelRequest; + + /** + * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportModelRequest + * @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.aiplatform.v1.ExportModelRequest; + + /** + * Verifies an ExportModelRequest 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 an ExportModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelRequest; + + /** + * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. + * @param message ExportModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExportModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExportModelRequest { + + /** Properties of an OutputConfig. */ + interface IOutputConfig { + + /** OutputConfig exportFormatId */ + exportFormatId?: (string|null); + + /** OutputConfig artifactDestination */ + artifactDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** OutputConfig imageDestination */ + imageDestination?: (google.cloud.aiplatform.v1.IContainerRegistryDestination|null); } - /** Represents a CustomJobDetail. */ - class CustomJobDetail implements ICustomJobDetail { + /** Represents an OutputConfig. */ + class OutputConfig implements IOutputConfig { /** - * Constructs a new CustomJobDetail. + * Constructs a new OutputConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail); + constructor(properties?: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig); - /** CustomJobDetail job. */ - public job: string; + /** OutputConfig exportFormatId. */ + public exportFormatId: string; + + /** OutputConfig artifactDestination. */ + public artifactDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** OutputConfig imageDestination. */ + public imageDestination?: (google.cloud.aiplatform.v1.IContainerRegistryDestination|null); /** - * Creates a new CustomJobDetail instance using the specified properties. + * Creates a new OutputConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CustomJobDetail instance + * @returns OutputConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; + public static create(properties?: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; /** - * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @param message CustomJobDetail message or plain object to encode + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @param message CustomJobDetail message or plain object to encode + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJobDetail message from the specified reader or buffer. + * Decodes an OutputConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomJobDetail + * @returns OutputConfig * @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.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; /** - * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomJobDetail + * @returns OutputConfig * @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.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; /** - * Verifies a CustomJobDetail message. + * Verifies an OutputConfig 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 CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomJobDetail + * @returns OutputConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; /** - * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. - * @param message CustomJobDetail + * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. + * @param message OutputConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJobDetail to JSON. + * Converts this OutputConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomJobDetail + * Gets the default type url for OutputConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -50203,21349 +50235,27352 @@ export namespace google { } } - /** PipelineState enum. */ - enum PipelineState { - PIPELINE_STATE_UNSPECIFIED = 0, - PIPELINE_STATE_QUEUED = 1, - PIPELINE_STATE_PENDING = 2, - PIPELINE_STATE_RUNNING = 3, - PIPELINE_STATE_SUCCEEDED = 4, - PIPELINE_STATE_FAILED = 5, - PIPELINE_STATE_CANCELLING = 6, - PIPELINE_STATE_CANCELLED = 7, - PIPELINE_STATE_PAUSED = 8 - } - - /** Properties of a Value. */ - interface IValue { - - /** Value intValue */ - intValue?: (number|Long|string|null); + /** Properties of an ExportModelOperationMetadata. */ + interface IExportModelOperationMetadata { - /** Value doubleValue */ - doubleValue?: (number|null); + /** ExportModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** Value stringValue */ - stringValue?: (string|null); + /** ExportModelOperationMetadata outputInfo */ + outputInfo?: (google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null); } - /** Represents a Value. */ - class Value implements IValue { + /** Represents an ExportModelOperationMetadata. */ + class ExportModelOperationMetadata implements IExportModelOperationMetadata { /** - * Constructs a new Value. + * Constructs a new ExportModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IValue); - - /** Value intValue. */ - public intValue?: (number|Long|string|null); - - /** Value doubleValue. */ - public doubleValue?: (number|null); + constructor(properties?: google.cloud.aiplatform.v1.IExportModelOperationMetadata); - /** Value stringValue. */ - public stringValue?: (string|null); + /** ExportModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** Value value. */ - public value?: ("intValue"|"doubleValue"|"stringValue"); + /** ExportModelOperationMetadata outputInfo. */ + public outputInfo?: (google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null); /** - * Creates a new Value instance using the specified properties. + * Creates a new ExportModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns Value instance + * @returns ExportModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IValue): google.cloud.aiplatform.v1.Value; + public static create(properties?: google.cloud.aiplatform.v1.IExportModelOperationMetadata): google.cloud.aiplatform.v1.ExportModelOperationMetadata; /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. - * @param message Value message or plain object to encode + * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. + * @param message ExportModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. - * @param message Value message or plain object to encode + * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. + * @param message ExportModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Value + * @returns ExportModelOperationMetadata * @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.aiplatform.v1.Value; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportModelOperationMetadata; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Value + * @returns ExportModelOperationMetadata * @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.aiplatform.v1.Value; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportModelOperationMetadata; /** - * Verifies a Value message. + * Verifies an ExportModelOperationMetadata 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 Value message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Value + * @returns ExportModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Value; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelOperationMetadata; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value + * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. + * @param message ExportModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Value to JSON. + * Converts this ExportModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Value + * Gets the default type url for ExportModelOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a PipelineService */ - class PipelineService extends $protobuf.rpc.Service { - - /** - * Constructs a new PipelineService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + namespace ExportModelOperationMetadata { - /** - * Creates new PipelineService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PipelineService; + /** Properties of an OutputInfo. */ + interface IOutputInfo { - /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline - */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback): void; - - /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object - * @returns Promise - */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): Promise; + /** OutputInfo artifactOutputUri */ + artifactOutputUri?: (string|null); - /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline - */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback): void; + /** OutputInfo imageOutputUri */ + imageOutputUri?: (string|null); + } - /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object - * @returns Promise - */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): Promise; + /** Represents an OutputInfo. */ + class OutputInfo implements IOutputInfo { - /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse - */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback): void; + /** + * Constructs a new OutputInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo); - /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object - * @returns Promise - */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): Promise; + /** OutputInfo artifactOutputUri. */ + public artifactOutputUri: string; - /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback): void; + /** OutputInfo imageOutputUri. */ + public imageOutputUri: string; - /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object - * @returns Promise - */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): Promise; + /** + * Creates a new OutputInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo): google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; - /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback): void; + /** + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object - * @returns Promise - */ - public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): Promise; + /** + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls CreatePipelineJob. - * @param request CreatePipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PipelineJob - */ - public createPipelineJob(request: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback): void; + /** + * Decodes an OutputInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputInfo + * @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.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; - /** - * Calls CreatePipelineJob. - * @param request CreatePipelineJobRequest message or plain object - * @returns Promise - */ - public createPipelineJob(request: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): Promise; + /** + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputInfo + * @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.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; - /** - * Calls GetPipelineJob. - * @param request GetPipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PipelineJob - */ - public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback): void; + /** + * Verifies an OutputInfo 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); - /** - * Calls GetPipelineJob. - * @param request GetPipelineJobRequest message or plain object - * @returns Promise - */ - public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest): Promise; + /** + * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; - /** - * Calls ListPipelineJobs. - * @param request ListPipelineJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPipelineJobsResponse - */ - public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback): void; + /** + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * @param message OutputInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls ListPipelineJobs. - * @param request ListPipelineJobsRequest message or plain object - * @returns Promise - */ - public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest): Promise; + /** + * Converts this OutputInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Calls DeletePipelineJob. - * @param request DeletePipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback): void; + /** + * Gets the default type url for OutputInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Calls DeletePipelineJob. - * @param request DeletePipelineJobRequest message or plain object - * @returns Promise - */ - public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): Promise; + /** Properties of an ExportModelResponse. */ + interface IExportModelResponse { + } - /** - * Calls CancelPipelineJob. - * @param request CancelPipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback): void; + /** Represents an ExportModelResponse. */ + class ExportModelResponse implements IExportModelResponse { /** - * Calls CancelPipelineJob. - * @param request CancelPipelineJobRequest message or plain object - * @returns Promise + * Constructs a new ExportModelResponse. + * @param [properties] Properties to set */ - public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): Promise; - } - - namespace PipelineService { + constructor(properties?: google.cloud.aiplatform.v1.IExportModelResponse); /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * Creates a new ExportModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportModelResponse instance */ - type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; + public static create(properties?: google.cloud.aiplatform.v1.IExportModelResponse): google.cloud.aiplatform.v1.ExportModelResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * @param message ExportModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; + public static encode(message: google.cloud.aiplatform.v1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. - * @param error Error, if any - * @param [response] ListTrainingPipelinesResponse + * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * @param message ExportModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. - * @param error Error, if any - * @param [response] Operation + * Decodes an ExportModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportModelResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. - * @param error Error, if any - * @param [response] Empty + * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportModelResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. - * @param error Error, if any - * @param [response] PipelineJob + * Verifies an ExportModelResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreatePipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. - * @param error Error, if any - * @param [response] PipelineJob + * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportModelResponse */ - type GetPipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. - * @param error Error, if any - * @param [response] ListPipelineJobsResponse + * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * @param message ExportModelResponse + * @param [options] Conversion options + * @returns Plain object */ - type ListPipelineJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListPipelineJobsResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1.ExportModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. - * @param error Error, if any - * @param [response] Operation + * Converts this ExportModelResponse to JSON. + * @returns JSON object */ - type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. - * @param error Error, if any - * @param [response] Empty + * Gets the default type url for ExportModelResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type CancelPipelineJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTrainingPipelineRequest. */ - interface ICreateTrainingPipelineRequest { + /** Properties of a CopyModelRequest. */ + interface ICopyModelRequest { - /** CreateTrainingPipelineRequest parent */ + /** CopyModelRequest modelId */ + modelId?: (string|null); + + /** CopyModelRequest parentModel */ + parentModel?: (string|null); + + /** CopyModelRequest parent */ parent?: (string|null); - /** CreateTrainingPipelineRequest trainingPipeline */ - trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + /** CopyModelRequest sourceModel */ + sourceModel?: (string|null); + + /** CopyModelRequest encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); } - /** Represents a CreateTrainingPipelineRequest. */ - class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { + /** Represents a CopyModelRequest. */ + class CopyModelRequest implements ICopyModelRequest { /** - * Constructs a new CreateTrainingPipelineRequest. + * Constructs a new CopyModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICopyModelRequest); - /** CreateTrainingPipelineRequest parent. */ + /** CopyModelRequest modelId. */ + public modelId?: (string|null); + + /** CopyModelRequest parentModel. */ + public parentModel?: (string|null); + + /** CopyModelRequest parent. */ public parent: string; - /** CreateTrainingPipelineRequest trainingPipeline. */ - public trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + /** CopyModelRequest sourceModel. */ + public sourceModel: string; + + /** CopyModelRequest encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** CopyModelRequest destinationModel. */ + public destinationModel?: ("modelId"|"parentModel"); /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * Creates a new CopyModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTrainingPipelineRequest instance + * @returns CopyModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICopyModelRequest): google.cloud.aiplatform.v1.CopyModelRequest; /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a CopyModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTrainingPipelineRequest + * @returns CopyModelRequest * @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.aiplatform.v1.CreateTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CopyModelRequest; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTrainingPipelineRequest + * @returns CopyModelRequest * @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.aiplatform.v1.CreateTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CopyModelRequest; /** - * Verifies a CreateTrainingPipelineRequest message. + * Verifies a CopyModelRequest 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 CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTrainingPipelineRequest + * @returns CopyModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CopyModelRequest; /** - * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message CreateTrainingPipelineRequest + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. + * @param message CopyModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CopyModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTrainingPipelineRequest to JSON. + * Converts this CopyModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTrainingPipelineRequest + * Gets the default type url for CopyModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTrainingPipelineRequest. */ - interface IGetTrainingPipelineRequest { + /** Properties of a CopyModelOperationMetadata. */ + interface ICopyModelOperationMetadata { - /** GetTrainingPipelineRequest name */ - name?: (string|null); + /** CopyModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a GetTrainingPipelineRequest. */ - class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { + /** Represents a CopyModelOperationMetadata. */ + class CopyModelOperationMetadata implements ICopyModelOperationMetadata { /** - * Constructs a new GetTrainingPipelineRequest. + * Constructs a new CopyModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICopyModelOperationMetadata); - /** GetTrainingPipelineRequest name. */ - public name: string; + /** CopyModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * Creates a new CopyModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetTrainingPipelineRequest instance + * @returns CopyModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICopyModelOperationMetadata): google.cloud.aiplatform.v1.CopyModelOperationMetadata; /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTrainingPipelineRequest + * @returns CopyModelOperationMetadata * @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.aiplatform.v1.GetTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CopyModelOperationMetadata; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTrainingPipelineRequest + * @returns CopyModelOperationMetadata * @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.aiplatform.v1.GetTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CopyModelOperationMetadata; /** - * Verifies a GetTrainingPipelineRequest message. + * Verifies a CopyModelOperationMetadata 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 GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTrainingPipelineRequest + * @returns CopyModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CopyModelOperationMetadata; /** - * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message GetTrainingPipelineRequest + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. + * @param message CopyModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CopyModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTrainingPipelineRequest to JSON. + * Converts this CopyModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTrainingPipelineRequest + * Gets the default type url for CopyModelOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrainingPipelinesRequest. */ - interface IListTrainingPipelinesRequest { - - /** ListTrainingPipelinesRequest parent */ - parent?: (string|null); - - /** ListTrainingPipelinesRequest filter */ - filter?: (string|null); - - /** ListTrainingPipelinesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a CopyModelResponse. */ + interface ICopyModelResponse { - /** ListTrainingPipelinesRequest pageToken */ - pageToken?: (string|null); + /** CopyModelResponse model */ + model?: (string|null); - /** ListTrainingPipelinesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** CopyModelResponse modelVersionId */ + modelVersionId?: (string|null); } - /** Represents a ListTrainingPipelinesRequest. */ - class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { + /** Represents a CopyModelResponse. */ + class CopyModelResponse implements ICopyModelResponse { /** - * Constructs a new ListTrainingPipelinesRequest. + * Constructs a new CopyModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest); - - /** ListTrainingPipelinesRequest parent. */ - public parent: string; - - /** ListTrainingPipelinesRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1.ICopyModelResponse); - /** ListTrainingPipelinesRequest pageSize. */ - public pageSize: number; - - /** ListTrainingPipelinesRequest pageToken. */ - public pageToken: string; + /** CopyModelResponse model. */ + public model: string; - /** ListTrainingPipelinesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** CopyModelResponse modelVersionId. */ + public modelVersionId: string; /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new CopyModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesRequest instance + * @returns CopyModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICopyModelResponse): google.cloud.aiplatform.v1.CopyModelResponse; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * Decodes a CopyModelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrainingPipelinesRequest + * @returns CopyModelResponse * @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.aiplatform.v1.ListTrainingPipelinesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CopyModelResponse; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrainingPipelinesRequest + * @returns CopyModelResponse * @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.aiplatform.v1.ListTrainingPipelinesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CopyModelResponse; /** - * Verifies a ListTrainingPipelinesRequest message. + * Verifies a CopyModelResponse 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 ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrainingPipelinesRequest + * @returns CopyModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CopyModelResponse; /** - * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. - * @param message ListTrainingPipelinesRequest + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @param message CopyModelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CopyModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesRequest to JSON. + * Converts this CopyModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrainingPipelinesRequest + * Gets the default type url for CopyModelResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrainingPipelinesResponse. */ - interface IListTrainingPipelinesResponse { + /** Properties of an ImportModelEvaluationRequest. */ + interface IImportModelEvaluationRequest { - /** ListTrainingPipelinesResponse trainingPipelines */ - trainingPipelines?: (google.cloud.aiplatform.v1.ITrainingPipeline[]|null); + /** ImportModelEvaluationRequest parent */ + parent?: (string|null); - /** ListTrainingPipelinesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ImportModelEvaluationRequest modelEvaluation */ + modelEvaluation?: (google.cloud.aiplatform.v1.IModelEvaluation|null); } - /** Represents a ListTrainingPipelinesResponse. */ - class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { + /** Represents an ImportModelEvaluationRequest. */ + class ImportModelEvaluationRequest implements IImportModelEvaluationRequest { /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new ImportModelEvaluationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IImportModelEvaluationRequest); - /** ListTrainingPipelinesResponse trainingPipelines. */ - public trainingPipelines: google.cloud.aiplatform.v1.ITrainingPipeline[]; + /** ImportModelEvaluationRequest parent. */ + public parent: string; - /** ListTrainingPipelinesResponse nextPageToken. */ - public nextPageToken: string; + /** ImportModelEvaluationRequest modelEvaluation. */ + public modelEvaluation?: (google.cloud.aiplatform.v1.IModelEvaluation|null); /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * Creates a new ImportModelEvaluationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesResponse instance + * @returns ImportModelEvaluationRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IImportModelEvaluationRequest): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. + * @param message ImportModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. + * @param message ImportModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrainingPipelinesResponse + * @returns ImportModelEvaluationRequest * @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.aiplatform.v1.ListTrainingPipelinesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrainingPipelinesResponse + * @returns ImportModelEvaluationRequest * @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.aiplatform.v1.ListTrainingPipelinesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; /** - * Verifies a ListTrainingPipelinesResponse message. + * Verifies an ImportModelEvaluationRequest 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 ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrainingPipelinesResponse + * @returns ImportModelEvaluationRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; /** - * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. - * @param message ListTrainingPipelinesResponse + * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * @param message ImportModelEvaluationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ImportModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this ImportModelEvaluationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrainingPipelinesResponse + * Gets the default type url for ImportModelEvaluationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTrainingPipelineRequest. */ - interface IDeleteTrainingPipelineRequest { + /** Properties of a BatchImportModelEvaluationSlicesRequest. */ + interface IBatchImportModelEvaluationSlicesRequest { - /** DeleteTrainingPipelineRequest name */ - name?: (string|null); + /** BatchImportModelEvaluationSlicesRequest parent */ + parent?: (string|null); + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices */ + modelEvaluationSlices?: (google.cloud.aiplatform.v1.IModelEvaluationSlice[]|null); } - /** Represents a DeleteTrainingPipelineRequest. */ - class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { + /** Represents a BatchImportModelEvaluationSlicesRequest. */ + class BatchImportModelEvaluationSlicesRequest implements IBatchImportModelEvaluationSlicesRequest { /** - * Constructs a new DeleteTrainingPipelineRequest. + * Constructs a new BatchImportModelEvaluationSlicesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest); - /** DeleteTrainingPipelineRequest name. */ - public name: string; + /** BatchImportModelEvaluationSlicesRequest parent. */ + public parent: string; + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. */ + public modelEvaluationSlices: google.cloud.aiplatform.v1.IModelEvaluationSlice[]; /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTrainingPipelineRequest instance + * @returns BatchImportModelEvaluationSlicesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesRequest * @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.aiplatform.v1.DeleteTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesRequest * @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.aiplatform.v1.DeleteTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; /** - * Verifies a DeleteTrainingPipelineRequest message. + * Verifies a BatchImportModelEvaluationSlicesRequest 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 DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; /** - * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message DeleteTrainingPipelineRequest + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTrainingPipelineRequest to JSON. + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTrainingPipelineRequest + * Gets the default type url for BatchImportModelEvaluationSlicesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelTrainingPipelineRequest. */ - interface ICancelTrainingPipelineRequest { + /** Properties of a BatchImportModelEvaluationSlicesResponse. */ + interface IBatchImportModelEvaluationSlicesResponse { - /** CancelTrainingPipelineRequest name */ - name?: (string|null); + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices */ + importedModelEvaluationSlices?: (string[]|null); } - /** Represents a CancelTrainingPipelineRequest. */ - class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { + /** Represents a BatchImportModelEvaluationSlicesResponse. */ + class BatchImportModelEvaluationSlicesResponse implements IBatchImportModelEvaluationSlicesResponse { /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new BatchImportModelEvaluationSlicesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse); - /** CancelTrainingPipelineRequest name. */ - public name: string; + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. */ + public importedModelEvaluationSlices: string[]; /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelTrainingPipelineRequest instance + * @returns BatchImportModelEvaluationSlicesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesResponse * @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.aiplatform.v1.CancelTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesResponse * @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.aiplatform.v1.CancelTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; /** - * Verifies a CancelTrainingPipelineRequest message. + * Verifies a BatchImportModelEvaluationSlicesResponse 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 CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; /** - * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message CancelTrainingPipelineRequest + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelTrainingPipelineRequest + * Gets the default type url for BatchImportModelEvaluationSlicesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreatePipelineJobRequest. */ - interface ICreatePipelineJobRequest { - - /** CreatePipelineJobRequest parent */ - parent?: (string|null); - - /** CreatePipelineJobRequest pipelineJob */ - pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); + /** Properties of a GetModelEvaluationRequest. */ + interface IGetModelEvaluationRequest { - /** CreatePipelineJobRequest pipelineJobId */ - pipelineJobId?: (string|null); + /** GetModelEvaluationRequest name */ + name?: (string|null); } - /** Represents a CreatePipelineJobRequest. */ - class CreatePipelineJobRequest implements ICreatePipelineJobRequest { + /** Represents a GetModelEvaluationRequest. */ + class GetModelEvaluationRequest implements IGetModelEvaluationRequest { /** - * Constructs a new CreatePipelineJobRequest. + * Constructs a new GetModelEvaluationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest); - - /** CreatePipelineJobRequest parent. */ - public parent: string; - - /** CreatePipelineJobRequest pipelineJob. */ - public pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); + constructor(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationRequest); - /** CreatePipelineJobRequest pipelineJobId. */ - public pipelineJobId: string; + /** GetModelEvaluationRequest name. */ + public name: string; /** - * Creates a new CreatePipelineJobRequest instance using the specified properties. + * Creates a new GetModelEvaluationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePipelineJobRequest instance + * @returns GetModelEvaluationRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): google.cloud.aiplatform.v1.CreatePipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationRequest): google.cloud.aiplatform.v1.GetModelEvaluationRequest; /** - * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. - * @param message CreatePipelineJobRequest message or plain object to encode + * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * @param message GetModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. - * @param message CreatePipelineJobRequest message or plain object to encode + * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * @param message GetModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePipelineJobRequest + * @returns GetModelEvaluationRequest * @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.aiplatform.v1.CreatePipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelEvaluationRequest; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePipelineJobRequest + * @returns GetModelEvaluationRequest * @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.aiplatform.v1.CreatePipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelEvaluationRequest; /** - * Verifies a CreatePipelineJobRequest message. + * Verifies a GetModelEvaluationRequest 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 CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePipelineJobRequest + * @returns GetModelEvaluationRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreatePipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelEvaluationRequest; /** - * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. - * @param message CreatePipelineJobRequest + * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. + * @param message GetModelEvaluationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreatePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreatePipelineJobRequest to JSON. + * Converts this GetModelEvaluationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreatePipelineJobRequest + * Gets the default type url for GetModelEvaluationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPipelineJobRequest. */ - interface IGetPipelineJobRequest { + /** Properties of a ListModelEvaluationsRequest. */ + interface IListModelEvaluationsRequest { - /** GetPipelineJobRequest name */ - name?: (string|null); + /** ListModelEvaluationsRequest parent */ + parent?: (string|null); + + /** ListModelEvaluationsRequest filter */ + filter?: (string|null); + + /** ListModelEvaluationsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelEvaluationsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelEvaluationsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetPipelineJobRequest. */ - class GetPipelineJobRequest implements IGetPipelineJobRequest { + /** Represents a ListModelEvaluationsRequest. */ + class ListModelEvaluationsRequest implements IListModelEvaluationsRequest { /** - * Constructs a new GetPipelineJobRequest. + * Constructs a new ListModelEvaluationsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsRequest); - /** GetPipelineJobRequest name. */ - public name: string; + /** ListModelEvaluationsRequest parent. */ + public parent: string; + + /** ListModelEvaluationsRequest filter. */ + public filter: string; + + /** ListModelEvaluationsRequest pageSize. */ + public pageSize: number; + + /** ListModelEvaluationsRequest pageToken. */ + public pageToken: string; + + /** ListModelEvaluationsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetPipelineJobRequest instance using the specified properties. + * Creates a new ListModelEvaluationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetPipelineJobRequest instance + * @returns ListModelEvaluationsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest): google.cloud.aiplatform.v1.GetPipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsRequest): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; /** - * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. - * @param message GetPipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. + * @param message ListModelEvaluationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. - * @param message GetPipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. + * @param message ListModelEvaluationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPipelineJobRequest + * @returns ListModelEvaluationsRequest * @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.aiplatform.v1.GetPipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPipelineJobRequest + * @returns ListModelEvaluationsRequest * @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.aiplatform.v1.GetPipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; /** - * Verifies a GetPipelineJobRequest message. + * Verifies a ListModelEvaluationsRequest 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 GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPipelineJobRequest + * @returns ListModelEvaluationsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetPipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; /** - * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. - * @param message GetPipelineJobRequest + * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. + * @param message ListModelEvaluationsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPipelineJobRequest to JSON. + * Converts this ListModelEvaluationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPipelineJobRequest + * Gets the default type url for ListModelEvaluationsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPipelineJobsRequest. */ - interface IListPipelineJobsRequest { - - /** ListPipelineJobsRequest parent */ - parent?: (string|null); - - /** ListPipelineJobsRequest filter */ - filter?: (string|null); - - /** ListPipelineJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListPipelineJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a ListModelEvaluationsResponse. */ + interface IListModelEvaluationsResponse { - /** ListPipelineJobsRequest orderBy */ - orderBy?: (string|null); + /** ListModelEvaluationsResponse modelEvaluations */ + modelEvaluations?: (google.cloud.aiplatform.v1.IModelEvaluation[]|null); - /** ListPipelineJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ListModelEvaluationsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListPipelineJobsRequest. */ - class ListPipelineJobsRequest implements IListPipelineJobsRequest { + /** Represents a ListModelEvaluationsResponse. */ + class ListModelEvaluationsResponse implements IListModelEvaluationsResponse { /** - * Constructs a new ListPipelineJobsRequest. + * Constructs a new ListModelEvaluationsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest); - - /** ListPipelineJobsRequest parent. */ - public parent: string; - - /** ListPipelineJobsRequest filter. */ - public filter: string; - - /** ListPipelineJobsRequest pageSize. */ - public pageSize: number; - - /** ListPipelineJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsResponse); - /** ListPipelineJobsRequest orderBy. */ - public orderBy: string; + /** ListModelEvaluationsResponse modelEvaluations. */ + public modelEvaluations: google.cloud.aiplatform.v1.IModelEvaluation[]; - /** ListPipelineJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ListModelEvaluationsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListPipelineJobsRequest instance using the specified properties. + * Creates a new ListModelEvaluationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListPipelineJobsRequest instance + * @returns ListModelEvaluationsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest): google.cloud.aiplatform.v1.ListPipelineJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsResponse): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; /** - * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. - * @param message ListPipelineJobsRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * @param message ListModelEvaluationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. - * @param message ListPipelineJobsRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * @param message ListModelEvaluationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPipelineJobsRequest + * @returns ListModelEvaluationsResponse * @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.aiplatform.v1.ListPipelineJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPipelineJobsRequest + * @returns ListModelEvaluationsResponse * @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.aiplatform.v1.ListPipelineJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; /** - * Verifies a ListPipelineJobsRequest message. + * Verifies a ListModelEvaluationsResponse 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 ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPipelineJobsRequest + * @returns ListModelEvaluationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; /** - * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. - * @param message ListPipelineJobsRequest + * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. + * @param message ListModelEvaluationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPipelineJobsRequest to JSON. + * Converts this ListModelEvaluationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPipelineJobsRequest + * Gets the default type url for ListModelEvaluationsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPipelineJobsResponse. */ - interface IListPipelineJobsResponse { - - /** ListPipelineJobsResponse pipelineJobs */ - pipelineJobs?: (google.cloud.aiplatform.v1.IPipelineJob[]|null); + /** Properties of a GetModelEvaluationSliceRequest. */ + interface IGetModelEvaluationSliceRequest { - /** ListPipelineJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetModelEvaluationSliceRequest name */ + name?: (string|null); } - /** Represents a ListPipelineJobsResponse. */ - class ListPipelineJobsResponse implements IListPipelineJobsResponse { + /** Represents a GetModelEvaluationSliceRequest. */ + class GetModelEvaluationSliceRequest implements IGetModelEvaluationSliceRequest { /** - * Constructs a new ListPipelineJobsResponse. + * Constructs a new GetModelEvaluationSliceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse); - - /** ListPipelineJobsResponse pipelineJobs. */ - public pipelineJobs: google.cloud.aiplatform.v1.IPipelineJob[]; + constructor(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest); - /** ListPipelineJobsResponse nextPageToken. */ - public nextPageToken: string; + /** GetModelEvaluationSliceRequest name. */ + public name: string; /** - * Creates a new ListPipelineJobsResponse instance using the specified properties. + * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPipelineJobsResponse instance + * @returns GetModelEvaluationSliceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse): google.cloud.aiplatform.v1.ListPipelineJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; /** - * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. - * @param message ListPipelineJobsResponse message or plain object to encode + * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * @param message GetModelEvaluationSliceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. - * @param message ListPipelineJobsResponse message or plain object to encode + * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * @param message GetModelEvaluationSliceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPipelineJobsResponse + * @returns GetModelEvaluationSliceRequest * @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.aiplatform.v1.ListPipelineJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPipelineJobsResponse + * @returns GetModelEvaluationSliceRequest * @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.aiplatform.v1.ListPipelineJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; /** - * Verifies a ListPipelineJobsResponse message. + * Verifies a GetModelEvaluationSliceRequest 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 ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPipelineJobsResponse + * @returns GetModelEvaluationSliceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; /** - * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. - * @param message ListPipelineJobsResponse + * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. + * @param message GetModelEvaluationSliceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPipelineJobsResponse to JSON. + * Converts this GetModelEvaluationSliceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPipelineJobsResponse + * Gets the default type url for GetModelEvaluationSliceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeletePipelineJobRequest. */ - interface IDeletePipelineJobRequest { + /** Properties of a ListModelEvaluationSlicesRequest. */ + interface IListModelEvaluationSlicesRequest { - /** DeletePipelineJobRequest name */ - name?: (string|null); - } + /** ListModelEvaluationSlicesRequest parent */ + parent?: (string|null); - /** Represents a DeletePipelineJobRequest. */ - class DeletePipelineJobRequest implements IDeletePipelineJobRequest { + /** ListModelEvaluationSlicesRequest filter */ + filter?: (string|null); - /** - * Constructs a new DeletePipelineJobRequest. + /** ListModelEvaluationSlicesRequest pageSize */ + pageSize?: (number|null); + + /** ListModelEvaluationSlicesRequest pageToken */ + pageToken?: (string|null); + + /** ListModelEvaluationSlicesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListModelEvaluationSlicesRequest. */ + class ListModelEvaluationSlicesRequest implements IListModelEvaluationSlicesRequest { + + /** + * Constructs a new ListModelEvaluationSlicesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest); - /** DeletePipelineJobRequest name. */ - public name: string; + /** ListModelEvaluationSlicesRequest parent. */ + public parent: string; + + /** ListModelEvaluationSlicesRequest filter. */ + public filter: string; + + /** ListModelEvaluationSlicesRequest pageSize. */ + public pageSize: number; + + /** ListModelEvaluationSlicesRequest pageToken. */ + public pageToken: string; + + /** ListModelEvaluationSlicesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeletePipelineJobRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeletePipelineJobRequest instance + * @returns ListModelEvaluationSlicesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): google.cloud.aiplatform.v1.DeletePipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; /** - * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. - * @param message DeletePipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @param message ListModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. - * @param message DeletePipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @param message ListModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeletePipelineJobRequest + * @returns ListModelEvaluationSlicesRequest * @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.aiplatform.v1.DeletePipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeletePipelineJobRequest + * @returns ListModelEvaluationSlicesRequest * @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.aiplatform.v1.DeletePipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; /** - * Verifies a DeletePipelineJobRequest message. + * Verifies a ListModelEvaluationSlicesRequest 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 DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeletePipelineJobRequest + * @returns ListModelEvaluationSlicesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeletePipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; /** - * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. - * @param message DeletePipelineJobRequest + * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @param message ListModelEvaluationSlicesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeletePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeletePipelineJobRequest to JSON. + * Converts this ListModelEvaluationSlicesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeletePipelineJobRequest + * Gets the default type url for ListModelEvaluationSlicesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelPipelineJobRequest. */ - interface ICancelPipelineJobRequest { + /** Properties of a ListModelEvaluationSlicesResponse. */ + interface IListModelEvaluationSlicesResponse { - /** CancelPipelineJobRequest name */ - name?: (string|null); + /** ListModelEvaluationSlicesResponse modelEvaluationSlices */ + modelEvaluationSlices?: (google.cloud.aiplatform.v1.IModelEvaluationSlice[]|null); + + /** ListModelEvaluationSlicesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CancelPipelineJobRequest. */ - class CancelPipelineJobRequest implements ICancelPipelineJobRequest { + /** Represents a ListModelEvaluationSlicesResponse. */ + class ListModelEvaluationSlicesResponse implements IListModelEvaluationSlicesResponse { /** - * Constructs a new CancelPipelineJobRequest. + * Constructs a new ListModelEvaluationSlicesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse); - /** CancelPipelineJobRequest name. */ - public name: string; + /** ListModelEvaluationSlicesResponse modelEvaluationSlices. */ + public modelEvaluationSlices: google.cloud.aiplatform.v1.IModelEvaluationSlice[]; + + /** ListModelEvaluationSlicesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CancelPipelineJobRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelPipelineJobRequest instance + * @returns ListModelEvaluationSlicesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): google.cloud.aiplatform.v1.CancelPipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; /** - * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. - * @param message CancelPipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * @param message ListModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. - * @param message CancelPipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * @param message ListModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelPipelineJobRequest + * @returns ListModelEvaluationSlicesResponse * @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.aiplatform.v1.CancelPipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelPipelineJobRequest + * @returns ListModelEvaluationSlicesResponse * @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.aiplatform.v1.CancelPipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; /** - * Verifies a CancelPipelineJobRequest message. + * Verifies a ListModelEvaluationSlicesResponse 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 CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelPipelineJobRequest + * @returns ListModelEvaluationSlicesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelPipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; /** - * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. - * @param message CancelPipelineJobRequest + * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @param message ListModelEvaluationSlicesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CancelPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelPipelineJobRequest to JSON. + * Converts this ListModelEvaluationSlicesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelPipelineJobRequest + * Gets the default type url for ListModelEvaluationSlicesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TrainingPipeline. */ - interface ITrainingPipeline { + /** PipelineFailurePolicy enum. */ + enum PipelineFailurePolicy { + PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0, + PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1, + PIPELINE_FAILURE_POLICY_FAIL_FAST = 2 + } - /** TrainingPipeline name */ + /** Properties of a PipelineJob. */ + interface IPipelineJob { + + /** PipelineJob name */ name?: (string|null); - /** TrainingPipeline displayName */ + /** PipelineJob displayName */ displayName?: (string|null); - /** TrainingPipeline inputDataConfig */ - inputDataConfig?: (google.cloud.aiplatform.v1.IInputDataConfig|null); - - /** TrainingPipeline trainingTaskDefinition */ - trainingTaskDefinition?: (string|null); - - /** TrainingPipeline trainingTaskInputs */ - trainingTaskInputs?: (google.protobuf.IValue|null); + /** PipelineJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline trainingTaskMetadata */ - trainingTaskMetadata?: (google.protobuf.IValue|null); + /** PipelineJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline modelToUpload */ - modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); + /** PipelineJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline modelId */ - modelId?: (string|null); + /** PipelineJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline parentModel */ - parentModel?: (string|null); + /** PipelineJob pipelineSpec */ + pipelineSpec?: (google.protobuf.IStruct|null); - /** TrainingPipeline state */ + /** PipelineJob state */ state?: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState|null); - /** TrainingPipeline error */ + /** PipelineJob jobDetail */ + jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + + /** PipelineJob error */ error?: (google.rpc.IStatus|null); - /** TrainingPipeline createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob labels */ + labels?: ({ [k: string]: string }|null); - /** TrainingPipeline startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob runtimeConfig */ + runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); - /** TrainingPipeline endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** TrainingPipeline updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob serviceAccount */ + serviceAccount?: (string|null); - /** TrainingPipeline labels */ - labels?: ({ [k: string]: string }|null); + /** PipelineJob network */ + network?: (string|null); - /** TrainingPipeline encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** PipelineJob templateUri */ + templateUri?: (string|null); + + /** PipelineJob templateMetadata */ + templateMetadata?: (google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null); } - /** Represents a TrainingPipeline. */ - class TrainingPipeline implements ITrainingPipeline { + /** Represents a PipelineJob. */ + class PipelineJob implements IPipelineJob { /** - * Constructs a new TrainingPipeline. + * Constructs a new PipelineJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITrainingPipeline); + constructor(properties?: google.cloud.aiplatform.v1.IPipelineJob); - /** TrainingPipeline name. */ + /** PipelineJob name. */ public name: string; - /** TrainingPipeline displayName. */ + /** PipelineJob displayName. */ public displayName: string; - /** TrainingPipeline inputDataConfig. */ - public inputDataConfig?: (google.cloud.aiplatform.v1.IInputDataConfig|null); - - /** TrainingPipeline trainingTaskDefinition. */ - public trainingTaskDefinition: string; - - /** TrainingPipeline trainingTaskInputs. */ - public trainingTaskInputs?: (google.protobuf.IValue|null); + /** PipelineJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline trainingTaskMetadata. */ - public trainingTaskMetadata?: (google.protobuf.IValue|null); + /** PipelineJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline modelToUpload. */ - public modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); + /** PipelineJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline modelId. */ - public modelId: string; + /** PipelineJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline parentModel. */ - public parentModel: string; + /** PipelineJob pipelineSpec. */ + public pipelineSpec?: (google.protobuf.IStruct|null); - /** TrainingPipeline state. */ + /** PipelineJob state. */ public state: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState); - /** TrainingPipeline error. */ + /** PipelineJob jobDetail. */ + public jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + + /** PipelineJob error. */ public error?: (google.rpc.IStatus|null); - /** TrainingPipeline createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob labels. */ + public labels: { [k: string]: string }; - /** TrainingPipeline startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob runtimeConfig. */ + public runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); - /** TrainingPipeline endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** TrainingPipeline updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob serviceAccount. */ + public serviceAccount: string; - /** TrainingPipeline labels. */ - public labels: { [k: string]: string }; + /** PipelineJob network. */ + public network: string; - /** TrainingPipeline encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** PipelineJob templateUri. */ + public templateUri: string; + + /** PipelineJob templateMetadata. */ + public templateMetadata?: (google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null); /** - * Creates a new TrainingPipeline instance using the specified properties. + * Creates a new PipelineJob instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingPipeline instance + * @returns PipelineJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITrainingPipeline): google.cloud.aiplatform.v1.TrainingPipeline; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineJob): google.cloud.aiplatform.v1.PipelineJob; /** - * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. - * @param message TrainingPipeline message or plain object to encode + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. - * @param message TrainingPipeline message or plain object to encode + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingPipeline message from the specified reader or buffer. + * Decodes a PipelineJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainingPipeline + * @returns PipelineJob * @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.aiplatform.v1.TrainingPipeline; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineJob; /** - * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainingPipeline + * @returns PipelineJob * @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.aiplatform.v1.TrainingPipeline; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineJob; /** - * Verifies a TrainingPipeline message. + * Verifies a PipelineJob 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 TrainingPipeline message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainingPipeline + * @returns PipelineJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TrainingPipeline; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob; /** - * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. - * @param message TrainingPipeline + * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. + * @param message PipelineJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TrainingPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingPipeline to JSON. + * Converts this PipelineJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainingPipeline + * Gets the default type url for PipelineJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InputDataConfig. */ - interface IInputDataConfig { - - /** InputDataConfig fractionSplit */ - fractionSplit?: (google.cloud.aiplatform.v1.IFractionSplit|null); + namespace PipelineJob { - /** InputDataConfig filterSplit */ - filterSplit?: (google.cloud.aiplatform.v1.IFilterSplit|null); + /** Properties of a RuntimeConfig. */ + interface IRuntimeConfig { - /** InputDataConfig predefinedSplit */ - predefinedSplit?: (google.cloud.aiplatform.v1.IPredefinedSplit|null); + /** RuntimeConfig parameters */ + parameters?: ({ [k: string]: google.cloud.aiplatform.v1.IValue }|null); - /** InputDataConfig timestampSplit */ - timestampSplit?: (google.cloud.aiplatform.v1.ITimestampSplit|null); + /** RuntimeConfig gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); - /** InputDataConfig stratifiedSplit */ - stratifiedSplit?: (google.cloud.aiplatform.v1.IStratifiedSplit|null); + /** RuntimeConfig parameterValues */ + parameterValues?: ({ [k: string]: google.protobuf.IValue }|null); - /** InputDataConfig gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** RuntimeConfig failurePolicy */ + failurePolicy?: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy|null); - /** InputDataConfig bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** RuntimeConfig inputArtifacts */ + inputArtifacts?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }|null); + } - /** InputDataConfig datasetId */ - datasetId?: (string|null); + /** Represents a RuntimeConfig. */ + class RuntimeConfig implements IRuntimeConfig { - /** InputDataConfig annotationsFilter */ - annotationsFilter?: (string|null); + /** + * Constructs a new RuntimeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig); - /** InputDataConfig annotationSchemaUri */ - annotationSchemaUri?: (string|null); + /** RuntimeConfig parameters. */ + public parameters: { [k: string]: google.cloud.aiplatform.v1.IValue }; - /** InputDataConfig savedQueryId */ - savedQueryId?: (string|null); + /** RuntimeConfig gcsOutputDirectory. */ + public gcsOutputDirectory: string; - /** InputDataConfig persistMlUseAssignment */ - persistMlUseAssignment?: (boolean|null); - } + /** RuntimeConfig parameterValues. */ + public parameterValues: { [k: string]: google.protobuf.IValue }; - /** Represents an InputDataConfig. */ - class InputDataConfig implements IInputDataConfig { + /** RuntimeConfig failurePolicy. */ + public failurePolicy: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy); - /** - * Constructs a new InputDataConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IInputDataConfig); + /** RuntimeConfig inputArtifacts. */ + public inputArtifacts: { [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }; - /** InputDataConfig fractionSplit. */ - public fractionSplit?: (google.cloud.aiplatform.v1.IFractionSplit|null); + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RuntimeConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig; - /** InputDataConfig filterSplit. */ - public filterSplit?: (google.cloud.aiplatform.v1.IFilterSplit|null); + /** + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @param message RuntimeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** InputDataConfig predefinedSplit. */ - public predefinedSplit?: (google.cloud.aiplatform.v1.IPredefinedSplit|null); + /** + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @param message RuntimeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** InputDataConfig timestampSplit. */ - public timestampSplit?: (google.cloud.aiplatform.v1.ITimestampSplit|null); + /** + * Decodes a RuntimeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RuntimeConfig + * @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.aiplatform.v1.PipelineJob.RuntimeConfig; - /** InputDataConfig stratifiedSplit. */ - public stratifiedSplit?: (google.cloud.aiplatform.v1.IStratifiedSplit|null); + /** + * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RuntimeConfig + * @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.aiplatform.v1.PipelineJob.RuntimeConfig; - /** InputDataConfig gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** + * Verifies a RuntimeConfig 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); - /** InputDataConfig bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** + * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RuntimeConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig; - /** InputDataConfig datasetId. */ - public datasetId: string; + /** + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. + * @param message RuntimeConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** InputDataConfig annotationsFilter. */ - public annotationsFilter: string; + /** + * Converts this RuntimeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** InputDataConfig annotationSchemaUri. */ - public annotationSchemaUri: string; + /** + * Gets the default type url for RuntimeConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** InputDataConfig savedQueryId. */ - public savedQueryId: string; + namespace RuntimeConfig { - /** InputDataConfig persistMlUseAssignment. */ - public persistMlUseAssignment: boolean; + /** Properties of an InputArtifact. */ + interface IInputArtifact { - /** InputDataConfig split. */ - public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); + /** InputArtifact artifactId */ + artifactId?: (string|null); + } - /** InputDataConfig destination. */ - public destination?: ("gcsDestination"|"bigqueryDestination"); + /** Represents an InputArtifact. */ + class InputArtifact implements IInputArtifact { - /** - * Creates a new InputDataConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns InputDataConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IInputDataConfig): google.cloud.aiplatform.v1.InputDataConfig; + /** + * Constructs a new InputArtifact. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact); - /** - * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. - * @param message InputDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputArtifact artifactId. */ + public artifactId?: (string|null); - /** - * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. - * @param message InputDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputArtifact kind. */ + public kind?: "artifactId"; - /** - * Decodes an InputDataConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputDataConfig - * @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.aiplatform.v1.InputDataConfig; + /** + * Creates a new InputArtifact instance using the specified properties. + * @param [properties] Properties to set + * @returns InputArtifact instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - /** - * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputDataConfig - * @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.aiplatform.v1.InputDataConfig; + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @param message InputArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an InputDataConfig 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); + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @param message InputArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputDataConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.InputDataConfig; + /** + * Decodes an InputArtifact message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputArtifact + * @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.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - /** - * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. - * @param message InputDataConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.InputDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an InputArtifact message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputArtifact + * @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.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - /** - * Converts this InputDataConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies an InputArtifact 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); - /** - * Gets the default type url for InputDataConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputArtifact + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - /** Properties of a FractionSplit. */ - interface IFractionSplit { + /** + * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. + * @param message InputArtifact + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FractionSplit trainingFraction */ - trainingFraction?: (number|null); + /** + * Converts this InputArtifact to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FractionSplit validationFraction */ - validationFraction?: (number|null); + /** + * Gets the default type url for InputArtifact + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } - /** FractionSplit testFraction */ - testFraction?: (number|null); + /** Properties of a PipelineTemplateMetadata. */ + interface IPipelineTemplateMetadata { + + /** PipelineTemplateMetadata version */ + version?: (string|null); } - /** Represents a FractionSplit. */ - class FractionSplit implements IFractionSplit { + /** Represents a PipelineTemplateMetadata. */ + class PipelineTemplateMetadata implements IPipelineTemplateMetadata { /** - * Constructs a new FractionSplit. + * Constructs a new PipelineTemplateMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IFractionSplit); - - /** FractionSplit trainingFraction. */ - public trainingFraction: number; - - /** FractionSplit validationFraction. */ - public validationFraction: number; + constructor(properties?: google.cloud.aiplatform.v1.IPipelineTemplateMetadata); - /** FractionSplit testFraction. */ - public testFraction: number; + /** PipelineTemplateMetadata version. */ + public version: string; /** - * Creates a new FractionSplit instance using the specified properties. + * Creates a new PipelineTemplateMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns FractionSplit instance + * @returns PipelineTemplateMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IFractionSplit): google.cloud.aiplatform.v1.FractionSplit; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineTemplateMetadata): google.cloud.aiplatform.v1.PipelineTemplateMetadata; /** - * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. - * @param message FractionSplit message or plain object to encode + * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @param message PipelineTemplateMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. - * @param message FractionSplit message or plain object to encode + * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @param message PipelineTemplateMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FractionSplit message from the specified reader or buffer. + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FractionSplit + * @returns PipelineTemplateMetadata * @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.aiplatform.v1.FractionSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineTemplateMetadata; /** - * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FractionSplit + * @returns PipelineTemplateMetadata * @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.aiplatform.v1.FractionSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineTemplateMetadata; /** - * Verifies a FractionSplit message. + * Verifies a PipelineTemplateMetadata 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 FractionSplit message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FractionSplit + * @returns PipelineTemplateMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FractionSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTemplateMetadata; /** - * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. - * @param message FractionSplit + * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * @param message PipelineTemplateMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.FractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineTemplateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FractionSplit to JSON. + * Converts this PipelineTemplateMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FractionSplit + * Gets the default type url for PipelineTemplateMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FilterSplit. */ - interface IFilterSplit { + /** Properties of a PipelineJobDetail. */ + interface IPipelineJobDetail { - /** FilterSplit trainingFilter */ - trainingFilter?: (string|null); + /** PipelineJobDetail pipelineContext */ + pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); - /** FilterSplit validationFilter */ - validationFilter?: (string|null); + /** PipelineJobDetail pipelineRunContext */ + pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); - /** FilterSplit testFilter */ - testFilter?: (string|null); + /** PipelineJobDetail taskDetails */ + taskDetails?: (google.cloud.aiplatform.v1.IPipelineTaskDetail[]|null); } - /** Represents a FilterSplit. */ - class FilterSplit implements IFilterSplit { + /** Represents a PipelineJobDetail. */ + class PipelineJobDetail implements IPipelineJobDetail { /** - * Constructs a new FilterSplit. + * Constructs a new PipelineJobDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IFilterSplit); + constructor(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail); - /** FilterSplit trainingFilter. */ - public trainingFilter: string; + /** PipelineJobDetail pipelineContext. */ + public pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); - /** FilterSplit validationFilter. */ - public validationFilter: string; + /** PipelineJobDetail pipelineRunContext. */ + public pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); - /** FilterSplit testFilter. */ - public testFilter: string; + /** PipelineJobDetail taskDetails. */ + public taskDetails: google.cloud.aiplatform.v1.IPipelineTaskDetail[]; /** - * Creates a new FilterSplit instance using the specified properties. + * Creates a new PipelineJobDetail instance using the specified properties. * @param [properties] Properties to set - * @returns FilterSplit instance + * @returns PipelineJobDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1.IFilterSplit): google.cloud.aiplatform.v1.FilterSplit; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail): google.cloud.aiplatform.v1.PipelineJobDetail; /** - * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. - * @param message FilterSplit message or plain object to encode + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * @param message PipelineJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. - * @param message FilterSplit message or plain object to encode + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * @param message PipelineJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilterSplit message from the specified reader or buffer. + * Decodes a PipelineJobDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FilterSplit + * @returns PipelineJobDetail * @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.aiplatform.v1.FilterSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineJobDetail; /** - * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FilterSplit + * @returns PipelineJobDetail * @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.aiplatform.v1.FilterSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineJobDetail; /** - * Verifies a FilterSplit message. + * Verifies a PipelineJobDetail 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 FilterSplit message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FilterSplit + * @returns PipelineJobDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FilterSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJobDetail; /** - * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. - * @param message FilterSplit + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * @param message PipelineJobDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.FilterSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilterSplit to JSON. + * Converts this PipelineJobDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FilterSplit + * Gets the default type url for PipelineJobDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PredefinedSplit. */ - interface IPredefinedSplit { + /** Properties of a PipelineTaskDetail. */ + interface IPipelineTaskDetail { - /** PredefinedSplit key */ - key?: (string|null); + /** PipelineTaskDetail taskId */ + taskId?: (number|Long|string|null); + + /** PipelineTaskDetail parentTaskId */ + parentTaskId?: (number|Long|string|null); + + /** PipelineTaskDetail taskName */ + taskName?: (string|null); + + /** PipelineTaskDetail createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail executorDetail */ + executorDetail?: (google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state */ + state?: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State|null); + + /** PipelineTaskDetail execution */ + execution?: (google.cloud.aiplatform.v1.IExecution|null); + + /** PipelineTaskDetail error */ + error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail pipelineTaskStatus */ + pipelineTaskStatus?: (google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus[]|null); + + /** PipelineTaskDetail inputs */ + inputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); + + /** PipelineTaskDetail outputs */ + outputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); } - /** Represents a PredefinedSplit. */ - class PredefinedSplit implements IPredefinedSplit { + /** Represents a PipelineTaskDetail. */ + class PipelineTaskDetail implements IPipelineTaskDetail { /** - * Constructs a new PredefinedSplit. + * Constructs a new PipelineTaskDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPredefinedSplit); + constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail); - /** PredefinedSplit key. */ - public key: string; + /** PipelineTaskDetail taskId. */ + public taskId: (number|Long|string); + + /** PipelineTaskDetail parentTaskId. */ + public parentTaskId: (number|Long|string); + + /** PipelineTaskDetail taskName. */ + public taskName: string; + + /** PipelineTaskDetail createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail executorDetail. */ + public executorDetail?: (google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state. */ + public state: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State); + + /** PipelineTaskDetail execution. */ + public execution?: (google.cloud.aiplatform.v1.IExecution|null); + + /** PipelineTaskDetail error. */ + public error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail pipelineTaskStatus. */ + public pipelineTaskStatus: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus[]; + + /** PipelineTaskDetail inputs. */ + public inputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; + + /** PipelineTaskDetail outputs. */ + public outputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; /** - * Creates a new PredefinedSplit instance using the specified properties. + * Creates a new PipelineTaskDetail instance using the specified properties. * @param [properties] Properties to set - * @returns PredefinedSplit instance + * @returns PipelineTaskDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPredefinedSplit): google.cloud.aiplatform.v1.PredefinedSplit; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail): google.cloud.aiplatform.v1.PipelineTaskDetail; /** - * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. - * @param message PredefinedSplit message or plain object to encode + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * @param message PipelineTaskDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. - * @param message PredefinedSplit message or plain object to encode + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * @param message PipelineTaskDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredefinedSplit message from the specified reader or buffer. + * Decodes a PipelineTaskDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredefinedSplit + * @returns PipelineTaskDetail * @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.aiplatform.v1.PredefinedSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineTaskDetail; /** - * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredefinedSplit + * @returns PipelineTaskDetail * @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.aiplatform.v1.PredefinedSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineTaskDetail; /** - * Verifies a PredefinedSplit message. + * Verifies a PipelineTaskDetail 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 PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredefinedSplit + * @returns PipelineTaskDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredefinedSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail; /** - * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. - * @param message PredefinedSplit + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * @param message PipelineTaskDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PredefinedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredefinedSplit to JSON. + * Converts this PipelineTaskDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredefinedSplit + * Gets the default type url for PipelineTaskDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TimestampSplit. */ - interface ITimestampSplit { - - /** TimestampSplit trainingFraction */ - trainingFraction?: (number|null); + namespace PipelineTaskDetail { - /** TimestampSplit validationFraction */ - validationFraction?: (number|null); + /** Properties of a PipelineTaskStatus. */ + interface IPipelineTaskStatus { - /** TimestampSplit testFraction */ - testFraction?: (number|null); + /** PipelineTaskStatus updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** TimestampSplit key */ - key?: (string|null); - } + /** PipelineTaskStatus state */ + state?: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State|null); - /** Represents a TimestampSplit. */ - class TimestampSplit implements ITimestampSplit { + /** PipelineTaskStatus error */ + error?: (google.rpc.IStatus|null); + } - /** - * Constructs a new TimestampSplit. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ITimestampSplit); + /** Represents a PipelineTaskStatus. */ + class PipelineTaskStatus implements IPipelineTaskStatus { - /** TimestampSplit trainingFraction. */ - public trainingFraction: number; + /** + * Constructs a new PipelineTaskStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus); - /** TimestampSplit validationFraction. */ - public validationFraction: number; + /** PipelineTaskStatus updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** TimestampSplit testFraction. */ - public testFraction: number; + /** PipelineTaskStatus state. */ + public state: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State); - /** TimestampSplit key. */ - public key: string; + /** PipelineTaskStatus error. */ + public error?: (google.rpc.IStatus|null); - /** - * Creates a new TimestampSplit instance using the specified properties. - * @param [properties] Properties to set - * @returns TimestampSplit instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ITimestampSplit): google.cloud.aiplatform.v1.TimestampSplit; + /** + * Creates a new PipelineTaskStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns PipelineTaskStatus instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus): google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; - /** - * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. - * @param message TimestampSplit message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @param message PipelineTaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. - * @param message TimestampSplit message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @param message PipelineTaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TimestampSplit message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimestampSplit - * @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.aiplatform.v1.TimestampSplit; + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PipelineTaskStatus + * @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.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; - /** - * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimestampSplit - * @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.aiplatform.v1.TimestampSplit; + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PipelineTaskStatus + * @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.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; - /** - * Verifies a TimestampSplit 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); + /** + * Verifies a PipelineTaskStatus 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 TimestampSplit message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TimestampSplit - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimestampSplit; + /** + * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PipelineTaskStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; - /** - * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. - * @param message TimestampSplit - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.TimestampSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. + * @param message PipelineTaskStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TimestampSplit to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this PipelineTaskStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TimestampSplit - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for PipelineTaskStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a StratifiedSplit. */ - interface IStratifiedSplit { + /** Properties of an ArtifactList. */ + interface IArtifactList { - /** StratifiedSplit trainingFraction */ - trainingFraction?: (number|null); + /** ArtifactList artifacts */ + artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + } - /** StratifiedSplit validationFraction */ - validationFraction?: (number|null); + /** Represents an ArtifactList. */ + class ArtifactList implements IArtifactList { - /** StratifiedSplit testFraction */ - testFraction?: (number|null); + /** + * Constructs a new ArtifactList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList); - /** StratifiedSplit key */ - key?: (string|null); + /** ArtifactList artifacts. */ + public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + + /** + * Creates a new ArtifactList instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactList instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList): google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList; + + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactList + * @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.aiplatform.v1.PipelineTaskDetail.ArtifactList; + + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArtifactList + * @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.aiplatform.v1.PipelineTaskDetail.ArtifactList; + + /** + * Verifies an ArtifactList 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 an ArtifactList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArtifactList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList; + + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @param message ArtifactList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArtifactList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArtifactList + * @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, + PENDING = 1, + RUNNING = 2, + SUCCEEDED = 3, + CANCEL_PENDING = 4, + CANCELLING = 5, + CANCELLED = 6, + FAILED = 7, + SKIPPED = 8, + NOT_TRIGGERED = 9 + } } - /** Represents a StratifiedSplit. */ - class StratifiedSplit implements IStratifiedSplit { + /** Properties of a PipelineTaskExecutorDetail. */ + interface IPipelineTaskExecutorDetail { + + /** PipelineTaskExecutorDetail containerDetail */ + containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); + + /** PipelineTaskExecutorDetail customJobDetail */ + customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + } + + /** Represents a PipelineTaskExecutorDetail. */ + class PipelineTaskExecutorDetail implements IPipelineTaskExecutorDetail { /** - * Constructs a new StratifiedSplit. + * Constructs a new PipelineTaskExecutorDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IStratifiedSplit); - - /** StratifiedSplit trainingFraction. */ - public trainingFraction: number; + constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail); - /** StratifiedSplit validationFraction. */ - public validationFraction: number; + /** PipelineTaskExecutorDetail containerDetail. */ + public containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); - /** StratifiedSplit testFraction. */ - public testFraction: number; + /** PipelineTaskExecutorDetail customJobDetail. */ + public customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); - /** StratifiedSplit key. */ - public key: string; + /** PipelineTaskExecutorDetail details. */ + public details?: ("containerDetail"|"customJobDetail"); /** - * Creates a new StratifiedSplit instance using the specified properties. + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. * @param [properties] Properties to set - * @returns StratifiedSplit instance + * @returns PipelineTaskExecutorDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1.IStratifiedSplit): google.cloud.aiplatform.v1.StratifiedSplit; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; /** - * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. - * @param message StratifiedSplit message or plain object to encode + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * @param message PipelineTaskExecutorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. - * @param message StratifiedSplit message or plain object to encode + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * @param message PipelineTaskExecutorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StratifiedSplit message from the specified reader or buffer. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StratifiedSplit + * @returns PipelineTaskExecutorDetail * @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.aiplatform.v1.StratifiedSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; /** - * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StratifiedSplit + * @returns PipelineTaskExecutorDetail * @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.aiplatform.v1.StratifiedSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; /** - * Verifies a StratifiedSplit message. + * Verifies a PipelineTaskExecutorDetail 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 StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StratifiedSplit + * @returns PipelineTaskExecutorDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StratifiedSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; /** - * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. - * @param message StratifiedSplit + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * @param message PipelineTaskExecutorDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.StratifiedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StratifiedSplit to JSON. + * Converts this PipelineTaskExecutorDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StratifiedSplit + * Gets the default type url for PipelineTaskExecutorDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a PredictionService */ - class PredictionService extends $protobuf.rpc.Service { + namespace PipelineTaskExecutorDetail { - /** - * Constructs a new PredictionService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Properties of a ContainerDetail. */ + interface IContainerDetail { - /** - * Creates new PredictionService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService; + /** ContainerDetail mainJob */ + mainJob?: (string|null); - /** - * Calls Predict. - * @param request PredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PredictResponse - */ - public predict(request: google.cloud.aiplatform.v1.IPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.PredictCallback): void; + /** ContainerDetail preCachingCheckJob */ + preCachingCheckJob?: (string|null); - /** - * Calls Predict. - * @param request PredictRequest message or plain object - * @returns Promise - */ - public predict(request: google.cloud.aiplatform.v1.IPredictRequest): Promise; + /** ContainerDetail failedMainJobs */ + failedMainJobs?: (string[]|null); - /** - * Calls RawPredict. - * @param request RawPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HttpBody - */ - public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.RawPredictCallback): void; + /** ContainerDetail failedPreCachingCheckJobs */ + failedPreCachingCheckJobs?: (string[]|null); + } - /** - * Calls RawPredict. - * @param request RawPredictRequest message or plain object - * @returns Promise - */ - public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest): Promise; + /** Represents a ContainerDetail. */ + class ContainerDetail implements IContainerDetail { - /** - * Calls Explain. - * @param request ExplainRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExplainResponse - */ - public explain(request: google.cloud.aiplatform.v1.IExplainRequest, callback: google.cloud.aiplatform.v1.PredictionService.ExplainCallback): void; + /** + * Constructs a new ContainerDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail); - /** - * Calls Explain. - * @param request ExplainRequest message or plain object - * @returns Promise - */ - public explain(request: google.cloud.aiplatform.v1.IExplainRequest): Promise; - } + /** ContainerDetail mainJob. */ + public mainJob: string; - namespace PredictionService { + /** ContainerDetail preCachingCheckJob. */ + public preCachingCheckJob: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. - * @param error Error, if any - * @param [response] PredictResponse - */ - type PredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PredictResponse) => void; + /** ContainerDetail failedMainJobs. */ + public failedMainJobs: string[]; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. - * @param error Error, if any - * @param [response] HttpBody - */ - type RawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; + /** ContainerDetail failedPreCachingCheckJobs. */ + public failedPreCachingCheckJobs: string[]; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. - * @param error Error, if any - * @param [response] ExplainResponse - */ - type ExplainCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExplainResponse) => void; - } + /** + * Creates a new ContainerDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; - /** Properties of a PredictRequest. */ - interface IPredictRequest { + /** + * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @param message ContainerDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** PredictRequest endpoint */ - endpoint?: (string|null); + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @param message ContainerDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** PredictRequest instances */ - instances?: (google.protobuf.IValue[]|null); + /** + * Decodes a ContainerDetail message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerDetail + * @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.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; - /** PredictRequest parameters */ - parameters?: (google.protobuf.IValue|null); - } + /** + * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContainerDetail + * @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.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; - /** Represents a PredictRequest. */ - class PredictRequest implements IPredictRequest { + /** + * Verifies a ContainerDetail 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); - /** - * Constructs a new PredictRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IPredictRequest); + /** + * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContainerDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; - /** PredictRequest endpoint. */ - public endpoint: string; + /** + * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. + * @param message ContainerDetail + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PredictRequest instances. */ - public instances: google.protobuf.IValue[]; + /** + * Converts this ContainerDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PredictRequest parameters. */ - public parameters?: (google.protobuf.IValue|null); + /** + * Gets the default type url for ContainerDetail + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new PredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IPredictRequest): google.cloud.aiplatform.v1.PredictRequest; + /** Properties of a CustomJobDetail. */ + interface ICustomJobDetail { - /** - * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. - * @param message PredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomJobDetail job */ + job?: (string|null); - /** - * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. - * @param message PredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomJobDetail failedJobs */ + failedJobs?: (string[]|null); + } - /** - * Decodes a PredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictRequest - * @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.aiplatform.v1.PredictRequest; + /** Represents a CustomJobDetail. */ + class CustomJobDetail implements ICustomJobDetail { - /** - * Decodes a PredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictRequest - * @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.aiplatform.v1.PredictRequest; + /** + * Constructs a new CustomJobDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail); - /** - * Verifies a PredictRequest 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); + /** CustomJobDetail job. */ + public job: string; - /** - * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictRequest; + /** CustomJobDetail failedJobs. */ + public failedJobs: string[]; - /** - * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. - * @param message PredictRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomJobDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; - /** - * Converts this PredictRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @param message CustomJobDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for PredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @param message CustomJobDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a PredictResponse. */ - interface IPredictResponse { + /** + * Decodes a CustomJobDetail message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomJobDetail + * @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.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; - /** PredictResponse predictions */ - predictions?: (google.protobuf.IValue[]|null); + /** + * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomJobDetail + * @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.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; - /** PredictResponse deployedModelId */ - deployedModelId?: (string|null); + /** + * Verifies a CustomJobDetail 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); - /** PredictResponse model */ - model?: (string|null); + /** + * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomJobDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; - /** PredictResponse modelVersionId */ - modelVersionId?: (string|null); + /** + * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * @param message CustomJobDetail + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PredictResponse modelDisplayName */ - modelDisplayName?: (string|null); + /** + * Converts this CustomJobDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomJobDetail + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a PredictResponse. */ - class PredictResponse implements IPredictResponse { + /** PipelineState enum. */ + enum PipelineState { + PIPELINE_STATE_UNSPECIFIED = 0, + PIPELINE_STATE_QUEUED = 1, + PIPELINE_STATE_PENDING = 2, + PIPELINE_STATE_RUNNING = 3, + PIPELINE_STATE_SUCCEEDED = 4, + PIPELINE_STATE_FAILED = 5, + PIPELINE_STATE_CANCELLING = 6, + PIPELINE_STATE_CANCELLED = 7, + PIPELINE_STATE_PAUSED = 8 + } + + /** Properties of a Value. */ + interface IValue { + + /** Value intValue */ + intValue?: (number|Long|string|null); + + /** Value doubleValue */ + doubleValue?: (number|null); + + /** Value stringValue */ + stringValue?: (string|null); + } + + /** Represents a Value. */ + class Value implements IValue { /** - * Constructs a new PredictResponse. + * Constructs a new Value. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPredictResponse); - - /** PredictResponse predictions. */ - public predictions: google.protobuf.IValue[]; + constructor(properties?: google.cloud.aiplatform.v1.IValue); - /** PredictResponse deployedModelId. */ - public deployedModelId: string; + /** Value intValue. */ + public intValue?: (number|Long|string|null); - /** PredictResponse model. */ - public model: string; + /** Value doubleValue. */ + public doubleValue?: (number|null); - /** PredictResponse modelVersionId. */ - public modelVersionId: string; + /** Value stringValue. */ + public stringValue?: (string|null); - /** PredictResponse modelDisplayName. */ - public modelDisplayName: string; + /** Value value. */ + public value?: ("intValue"|"doubleValue"|"stringValue"); /** - * Creates a new PredictResponse instance using the specified properties. + * Creates a new Value instance using the specified properties. * @param [properties] Properties to set - * @returns PredictResponse instance + * @returns Value instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPredictResponse): google.cloud.aiplatform.v1.PredictResponse; + public static create(properties?: google.cloud.aiplatform.v1.IValue): google.cloud.aiplatform.v1.Value; /** - * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. - * @param message PredictResponse message or plain object to encode + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. + * @param message Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. - * @param message PredictResponse message or plain object to encode + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. + * @param message Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictResponse message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredictResponse + * @returns Value * @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.aiplatform.v1.PredictResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Value; /** - * Decodes a PredictResponse message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredictResponse + * @returns Value * @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.aiplatform.v1.PredictResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Value; /** - * Verifies a PredictResponse message. + * Verifies a Value 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 PredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredictResponse + * @returns Value */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Value; /** - * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. - * @param message PredictResponse + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictResponse to JSON. + * Converts this Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredictResponse + * Gets the default type url for Value * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RawPredictRequest. */ - interface IRawPredictRequest { - - /** RawPredictRequest endpoint */ - endpoint?: (string|null); - - /** RawPredictRequest httpBody */ - httpBody?: (google.api.IHttpBody|null); - } - - /** Represents a RawPredictRequest. */ - class RawPredictRequest implements IRawPredictRequest { + /** Represents a PipelineService */ + class PipelineService extends $protobuf.rpc.Service { /** - * Constructs a new RawPredictRequest. - * @param [properties] Properties to set + * Constructs a new PipelineService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1.IRawPredictRequest); - - /** RawPredictRequest endpoint. */ - public endpoint: string; - - /** RawPredictRequest httpBody. */ - public httpBody?: (google.api.IHttpBody|null); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new RawPredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RawPredictRequest instance + * Creates new PipelineService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1.IRawPredictRequest): google.cloud.aiplatform.v1.RawPredictRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PipelineService; /** - * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. - * @param message RawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateTrainingPipeline. + * @param request CreateTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TrainingPipeline */ - public static encode(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback): void; /** - * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. - * @param message RawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateTrainingPipeline. + * @param request CreateTrainingPipelineRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): Promise; /** - * Decodes a RawPredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetTrainingPipeline. + * @param request GetTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TrainingPipeline */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.RawPredictRequest; + public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback): void; /** - * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetTrainingPipeline. + * @param request GetTrainingPipelineRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.RawPredictRequest; + public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): Promise; /** - * Verifies a RawPredictRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListTrainingPipelines. + * @param request ListTrainingPipelinesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback): void; /** - * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RawPredictRequest + * Calls ListTrainingPipelines. + * @param request ListTrainingPipelinesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RawPredictRequest; + public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): Promise; /** - * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. - * @param message RawPredictRequest - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteTrainingPipeline. + * @param request DeleteTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.RawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback): void; /** - * Converts this RawPredictRequest to JSON. - * @returns JSON object + * Calls DeleteTrainingPipeline. + * @param request DeleteTrainingPipelineRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): Promise; /** - * Gets the default type url for RawPredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CancelTrainingPipeline. + * @param request CancelTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExplainRequest. */ - interface IExplainRequest { - - /** ExplainRequest endpoint */ - endpoint?: (string|null); - - /** ExplainRequest instances */ - instances?: (google.protobuf.IValue[]|null); - - /** ExplainRequest parameters */ - parameters?: (google.protobuf.IValue|null); - - /** ExplainRequest explanationSpecOverride */ - explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); - - /** ExplainRequest deployedModelId */ - deployedModelId?: (string|null); - } - - /** Represents an ExplainRequest. */ - class ExplainRequest implements IExplainRequest { + public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback): void; /** - * Constructs a new ExplainRequest. - * @param [properties] Properties to set + * Calls CancelTrainingPipeline. + * @param request CancelTrainingPipelineRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IExplainRequest); - - /** ExplainRequest endpoint. */ - public endpoint: string; - - /** ExplainRequest instances. */ - public instances: google.protobuf.IValue[]; - - /** ExplainRequest parameters. */ - public parameters?: (google.protobuf.IValue|null); - - /** ExplainRequest explanationSpecOverride. */ - public explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); - - /** ExplainRequest deployedModelId. */ - public deployedModelId: string; + public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): Promise; /** - * Creates a new ExplainRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplainRequest instance + * Calls CreatePipelineJob. + * @param request CreatePipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PipelineJob */ - public static create(properties?: google.cloud.aiplatform.v1.IExplainRequest): google.cloud.aiplatform.v1.ExplainRequest; + public createPipelineJob(request: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback): void; /** - * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. - * @param message ExplainRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreatePipelineJob. + * @param request CreatePipelineJobRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createPipelineJob(request: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): Promise; /** - * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. - * @param message ExplainRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PipelineJob */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback): void; /** - * Decodes an ExplainRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplainRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExplainRequest; + public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest): Promise; /** - * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplainRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPipelineJobsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExplainRequest; + public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback): void; /** - * Verifies an ExplainRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest): Promise; /** - * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplainRequest + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainRequest; + public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback): void; /** - * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. - * @param message ExplainRequest - * @param [options] Conversion options - * @returns Plain object + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): Promise; /** - * Converts this ExplainRequest to JSON. - * @returns JSON object + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public toJSON(): { [k: string]: any }; + public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback): void; /** - * Gets the default type url for ExplainRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; + public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): Promise; } - /** Properties of an ExplainResponse. */ - interface IExplainResponse { + namespace PipelineService { - /** ExplainResponse explanations */ - explanations?: (google.cloud.aiplatform.v1.IExplanation[]|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline + */ + type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; - /** ExplainResponse deployedModelId */ - deployedModelId?: (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline + */ + type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; - /** ExplainResponse predictions */ - predictions?: (google.protobuf.IValue[]|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. + * @param error Error, if any + * @param [response] ListTrainingPipelinesResponse + */ + type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob + */ + type CreatePipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob + */ + type GetPipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. + * @param error Error, if any + * @param [response] ListPipelineJobsResponse + */ + type ListPipelineJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListPipelineJobsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelPipelineJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Represents an ExplainResponse. */ - class ExplainResponse implements IExplainResponse { + /** Properties of a CreateTrainingPipelineRequest. */ + interface ICreateTrainingPipelineRequest { + + /** CreateTrainingPipelineRequest parent */ + parent?: (string|null); + + /** CreateTrainingPipelineRequest trainingPipeline */ + trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + } + + /** Represents a CreateTrainingPipelineRequest. */ + class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { /** - * Constructs a new ExplainResponse. + * Constructs a new CreateTrainingPipelineRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExplainResponse); - - /** ExplainResponse explanations. */ - public explanations: google.cloud.aiplatform.v1.IExplanation[]; + constructor(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest); - /** ExplainResponse deployedModelId. */ - public deployedModelId: string; + /** CreateTrainingPipelineRequest parent. */ + public parent: string; - /** ExplainResponse predictions. */ - public predictions: google.protobuf.IValue[]; + /** CreateTrainingPipelineRequest trainingPipeline. */ + public trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); /** - * Creates a new ExplainResponse instance using the specified properties. + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExplainResponse instance + * @returns CreateTrainingPipelineRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExplainResponse): google.cloud.aiplatform.v1.ExplainResponse; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; /** - * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. - * @param message ExplainResponse message or plain object to encode + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * @param message CreateTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. - * @param message ExplainResponse message or plain object to encode + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * @param message CreateTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplainResponse message from the specified reader or buffer. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplainResponse + * @returns CreateTrainingPipelineRequest * @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.aiplatform.v1.ExplainResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; /** - * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplainResponse + * @returns CreateTrainingPipelineRequest * @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.aiplatform.v1.ExplainResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; /** - * Verifies an ExplainResponse message. + * Verifies a CreateTrainingPipelineRequest 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 an ExplainResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplainResponse + * @returns CreateTrainingPipelineRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; /** - * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. - * @param message ExplainResponse + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message CreateTrainingPipelineRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplainResponse to JSON. + * Converts this CreateTrainingPipelineRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplainResponse + * Gets the default type url for CreateTrainingPipelineRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Namespace schema. */ - namespace schema { - - /** Namespace predict. */ - namespace predict { - - /** Namespace instance. */ - namespace instance { + /** Properties of a GetTrainingPipelineRequest. */ + interface IGetTrainingPipelineRequest { - /** Properties of an ImageClassificationPredictionInstance. */ - interface IImageClassificationPredictionInstance { + /** GetTrainingPipelineRequest name */ + name?: (string|null); + } - /** ImageClassificationPredictionInstance content */ - content?: (string|null); + /** Represents a GetTrainingPipelineRequest. */ + class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { - /** ImageClassificationPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** + * Constructs a new GetTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest); - /** Represents an ImageClassificationPredictionInstance. */ - class ImageClassificationPredictionInstance implements IImageClassificationPredictionInstance { + /** GetTrainingPipelineRequest name. */ + public name: string; - /** - * Constructs a new ImageClassificationPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance); + /** + * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; - /** ImageClassificationPredictionInstance content. */ - public content: string; + /** + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. + * @param message GetTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ImageClassificationPredictionInstance mimeType. */ - public mimeType: string; + /** + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. + * @param message GetTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ImageClassificationPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageClassificationPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; + /** + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTrainingPipelineRequest + * @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.aiplatform.v1.GetTrainingPipelineRequest; - /** - * Encodes the specified ImageClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. - * @param message ImageClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTrainingPipelineRequest + * @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.aiplatform.v1.GetTrainingPipelineRequest; - /** - * Encodes the specified ImageClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. - * @param message ImageClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a GetTrainingPipelineRequest 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); - /** - * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageClassificationPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; + /** + * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTrainingPipelineRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; - /** - * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageClassificationPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; + /** + * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message GetTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies an ImageClassificationPredictionInstance 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); + /** + * Converts this GetTrainingPipelineRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates an ImageClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageClassificationPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; + /** + * Gets the default type url for GetTrainingPipelineRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from an ImageClassificationPredictionInstance message. Also converts values to other types if specified. - * @param message ImageClassificationPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ListTrainingPipelinesRequest. */ + interface IListTrainingPipelinesRequest { - /** - * Converts this ImageClassificationPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListTrainingPipelinesRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for ImageClassificationPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListTrainingPipelinesRequest filter */ + filter?: (string|null); - /** Properties of an ImageObjectDetectionPredictionInstance. */ - interface IImageObjectDetectionPredictionInstance { + /** ListTrainingPipelinesRequest pageSize */ + pageSize?: (number|null); - /** ImageObjectDetectionPredictionInstance content */ - content?: (string|null); + /** ListTrainingPipelinesRequest pageToken */ + pageToken?: (string|null); - /** ImageObjectDetectionPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** ListTrainingPipelinesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** Represents an ImageObjectDetectionPredictionInstance. */ - class ImageObjectDetectionPredictionInstance implements IImageObjectDetectionPredictionInstance { + /** Represents a ListTrainingPipelinesRequest. */ + class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { - /** - * Constructs a new ImageObjectDetectionPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance); + /** + * Constructs a new ListTrainingPipelinesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest); - /** ImageObjectDetectionPredictionInstance content. */ - public content: string; + /** ListTrainingPipelinesRequest parent. */ + public parent: string; - /** ImageObjectDetectionPredictionInstance mimeType. */ - public mimeType: string; + /** ListTrainingPipelinesRequest filter. */ + public filter: string; - /** - * Creates a new ImageObjectDetectionPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageObjectDetectionPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + /** ListTrainingPipelinesRequest pageSize. */ + public pageSize: number; - /** - * Encodes the specified ImageObjectDetectionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. - * @param message ImageObjectDetectionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesRequest pageToken. */ + public pageToken: string; - /** - * Encodes the specified ImageObjectDetectionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. - * @param message ImageObjectDetectionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** - * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageObjectDetectionPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + /** + * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTrainingPipelinesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; - /** - * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageObjectDetectionPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + /** + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * @param message ListTrainingPipelinesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an ImageObjectDetectionPredictionInstance 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); + /** + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * @param message ListTrainingPipelinesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an ImageObjectDetectionPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageObjectDetectionPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + /** + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTrainingPipelinesRequest + * @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.aiplatform.v1.ListTrainingPipelinesRequest; - /** - * Creates a plain object from an ImageObjectDetectionPredictionInstance message. Also converts values to other types if specified. - * @param message ImageObjectDetectionPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTrainingPipelinesRequest + * @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.aiplatform.v1.ListTrainingPipelinesRequest; - /** - * Converts this ImageObjectDetectionPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a ListTrainingPipelinesRequest 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); - /** - * Gets the default type url for ImageObjectDetectionPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTrainingPipelinesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; - /** Properties of an ImageSegmentationPredictionInstance. */ - interface IImageSegmentationPredictionInstance { + /** + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. + * @param message ListTrainingPipelinesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ImageSegmentationPredictionInstance content */ - content?: (string|null); + /** + * Converts this ListTrainingPipelinesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ImageSegmentationPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** + * Gets the default type url for ListTrainingPipelinesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents an ImageSegmentationPredictionInstance. */ - class ImageSegmentationPredictionInstance implements IImageSegmentationPredictionInstance { + /** Properties of a ListTrainingPipelinesResponse. */ + interface IListTrainingPipelinesResponse { - /** - * Constructs a new ImageSegmentationPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance); + /** ListTrainingPipelinesResponse trainingPipelines */ + trainingPipelines?: (google.cloud.aiplatform.v1.ITrainingPipeline[]|null); - /** ImageSegmentationPredictionInstance content. */ - public content: string; + /** ListTrainingPipelinesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** ImageSegmentationPredictionInstance mimeType. */ - public mimeType: string; + /** Represents a ListTrainingPipelinesResponse. */ + class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { - /** - * Creates a new ImageSegmentationPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageSegmentationPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; + /** + * Constructs a new ListTrainingPipelinesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse); - /** - * Encodes the specified ImageSegmentationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. - * @param message ImageSegmentationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesResponse trainingPipelines. */ + public trainingPipelines: google.cloud.aiplatform.v1.ITrainingPipeline[]; - /** - * Encodes the specified ImageSegmentationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. - * @param message ImageSegmentationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesResponse nextPageToken. */ + public nextPageToken: string; - /** - * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageSegmentationPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; + /** + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTrainingPipelinesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; - /** - * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageSegmentationPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; + /** + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * @param message ListTrainingPipelinesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an ImageSegmentationPredictionInstance 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); + /** + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * @param message ListTrainingPipelinesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an ImageSegmentationPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageSegmentationPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; + /** + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTrainingPipelinesResponse + * @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.aiplatform.v1.ListTrainingPipelinesResponse; - /** - * Creates a plain object from an ImageSegmentationPredictionInstance message. Also converts values to other types if specified. - * @param message ImageSegmentationPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTrainingPipelinesResponse + * @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.aiplatform.v1.ListTrainingPipelinesResponse; - /** - * Converts this ImageSegmentationPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a ListTrainingPipelinesResponse 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); - /** - * Gets the default type url for ImageSegmentationPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTrainingPipelinesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; - /** Properties of a TextClassificationPredictionInstance. */ - interface ITextClassificationPredictionInstance { + /** + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. + * @param message ListTrainingPipelinesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TextClassificationPredictionInstance content */ - content?: (string|null); + /** + * Converts this ListTrainingPipelinesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TextClassificationPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** + * Gets the default type url for ListTrainingPipelinesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a TextClassificationPredictionInstance. */ - class TextClassificationPredictionInstance implements ITextClassificationPredictionInstance { + /** Properties of a DeleteTrainingPipelineRequest. */ + interface IDeleteTrainingPipelineRequest { - /** - * Constructs a new TextClassificationPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance); + /** DeleteTrainingPipelineRequest name */ + name?: (string|null); + } - /** TextClassificationPredictionInstance content. */ - public content: string; + /** Represents a DeleteTrainingPipelineRequest. */ + class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { - /** TextClassificationPredictionInstance mimeType. */ - public mimeType: string; + /** + * Constructs a new DeleteTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest); - /** - * Creates a new TextClassificationPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns TextClassificationPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; + /** DeleteTrainingPipelineRequest name. */ + public name: string; - /** - * Encodes the specified TextClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. - * @param message TextClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; - /** - * Encodes the specified TextClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. - * @param message TextClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextClassificationPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; + /** + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextClassificationPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; + /** + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTrainingPipelineRequest + * @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.aiplatform.v1.DeleteTrainingPipelineRequest; - /** - * Verifies a TextClassificationPredictionInstance 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); + /** + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTrainingPipelineRequest + * @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.aiplatform.v1.DeleteTrainingPipelineRequest; - /** - * Creates a TextClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextClassificationPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; + /** + * Verifies a DeleteTrainingPipelineRequest 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 plain object from a TextClassificationPredictionInstance message. Also converts values to other types if specified. - * @param message TextClassificationPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTrainingPipelineRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; - /** - * Converts this TextClassificationPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message DeleteTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for TextClassificationPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this DeleteTrainingPipelineRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a TextExtractionPredictionInstance. */ - interface ITextExtractionPredictionInstance { + /** + * Gets the default type url for DeleteTrainingPipelineRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TextExtractionPredictionInstance content */ - content?: (string|null); + /** Properties of a CancelTrainingPipelineRequest. */ + interface ICancelTrainingPipelineRequest { - /** TextExtractionPredictionInstance mimeType */ - mimeType?: (string|null); + /** CancelTrainingPipelineRequest name */ + name?: (string|null); + } - /** TextExtractionPredictionInstance key */ - key?: (string|null); - } + /** Represents a CancelTrainingPipelineRequest. */ + class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { - /** Represents a TextExtractionPredictionInstance. */ - class TextExtractionPredictionInstance implements ITextExtractionPredictionInstance { + /** + * Constructs a new CancelTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest); - /** - * Constructs a new TextExtractionPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance); + /** CancelTrainingPipelineRequest name. */ + public name: string; - /** TextExtractionPredictionInstance content. */ - public content: string; + /** + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; - /** TextExtractionPredictionInstance mimeType. */ - public mimeType: string; + /** + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** TextExtractionPredictionInstance key. */ - public key: string; + /** + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new TextExtractionPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns TextExtractionPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; + /** + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelTrainingPipelineRequest + * @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.aiplatform.v1.CancelTrainingPipelineRequest; - /** - * Encodes the specified TextExtractionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. - * @param message TextExtractionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelTrainingPipelineRequest + * @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.aiplatform.v1.CancelTrainingPipelineRequest; - /** - * Encodes the specified TextExtractionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. - * @param message TextExtractionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a CancelTrainingPipelineRequest 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); - /** - * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextExtractionPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; + /** + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelTrainingPipelineRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; - /** - * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextExtractionPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; + /** + * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message CancelTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a TextExtractionPredictionInstance 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); + /** + * Converts this CancelTrainingPipelineRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a TextExtractionPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextExtractionPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; + /** + * Gets the default type url for CancelTrainingPipelineRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a TextExtractionPredictionInstance message. Also converts values to other types if specified. - * @param message TextExtractionPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a CreatePipelineJobRequest. */ + interface ICreatePipelineJobRequest { - /** - * Converts this TextExtractionPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TextExtractionPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CreatePipelineJobRequest parent */ + parent?: (string|null); - /** Properties of a TextSentimentPredictionInstance. */ - interface ITextSentimentPredictionInstance { + /** CreatePipelineJobRequest pipelineJob */ + pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); - /** TextSentimentPredictionInstance content */ - content?: (string|null); + /** CreatePipelineJobRequest pipelineJobId */ + pipelineJobId?: (string|null); + } - /** TextSentimentPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** Represents a CreatePipelineJobRequest. */ + class CreatePipelineJobRequest implements ICreatePipelineJobRequest { - /** Represents a TextSentimentPredictionInstance. */ - class TextSentimentPredictionInstance implements ITextSentimentPredictionInstance { + /** + * Constructs a new CreatePipelineJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest); - /** - * Constructs a new TextSentimentPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance); + /** CreatePipelineJobRequest parent. */ + public parent: string; - /** TextSentimentPredictionInstance content. */ - public content: string; + /** CreatePipelineJobRequest pipelineJob. */ + public pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); - /** TextSentimentPredictionInstance mimeType. */ - public mimeType: string; + /** CreatePipelineJobRequest pipelineJobId. */ + public pipelineJobId: string; - /** - * Creates a new TextSentimentPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns TextSentimentPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; + /** + * Creates a new CreatePipelineJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreatePipelineJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): google.cloud.aiplatform.v1.CreatePipelineJobRequest; - /** - * Encodes the specified TextSentimentPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. - * @param message TextSentimentPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TextSentimentPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. - * @param message TextSentimentPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextSentimentPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; + /** + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreatePipelineJobRequest + * @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.aiplatform.v1.CreatePipelineJobRequest; - /** - * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextSentimentPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; + /** + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreatePipelineJobRequest + * @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.aiplatform.v1.CreatePipelineJobRequest; - /** - * Verifies a TextSentimentPredictionInstance 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); + /** + * Verifies a CreatePipelineJobRequest 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 TextSentimentPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextSentimentPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; + /** + * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePipelineJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreatePipelineJobRequest; - /** - * Creates a plain object from a TextSentimentPredictionInstance message. Also converts values to other types if specified. - * @param message TextSentimentPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * @param message CreatePipelineJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreatePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TextSentimentPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this CreatePipelineJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TextSentimentPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for CreatePipelineJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a VideoActionRecognitionPredictionInstance. */ - interface IVideoActionRecognitionPredictionInstance { + /** Properties of a GetPipelineJobRequest. */ + interface IGetPipelineJobRequest { - /** VideoActionRecognitionPredictionInstance content */ - content?: (string|null); + /** GetPipelineJobRequest name */ + name?: (string|null); + } - /** VideoActionRecognitionPredictionInstance mimeType */ - mimeType?: (string|null); + /** Represents a GetPipelineJobRequest. */ + class GetPipelineJobRequest implements IGetPipelineJobRequest { - /** VideoActionRecognitionPredictionInstance timeSegmentStart */ - timeSegmentStart?: (string|null); + /** + * Constructs a new GetPipelineJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest); - /** VideoActionRecognitionPredictionInstance timeSegmentEnd */ - timeSegmentEnd?: (string|null); - } + /** GetPipelineJobRequest name. */ + public name: string; - /** Represents a VideoActionRecognitionPredictionInstance. */ - class VideoActionRecognitionPredictionInstance implements IVideoActionRecognitionPredictionInstance { + /** + * Creates a new GetPipelineJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPipelineJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest): google.cloud.aiplatform.v1.GetPipelineJobRequest; - /** - * Constructs a new VideoActionRecognitionPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance); + /** + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * @param message GetPipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** VideoActionRecognitionPredictionInstance content. */ - public content: string; + /** + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * @param message GetPipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** VideoActionRecognitionPredictionInstance mimeType. */ - public mimeType: string; + /** + * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPipelineJobRequest + * @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.aiplatform.v1.GetPipelineJobRequest; - /** VideoActionRecognitionPredictionInstance timeSegmentStart. */ - public timeSegmentStart: string; + /** + * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPipelineJobRequest + * @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.aiplatform.v1.GetPipelineJobRequest; - /** VideoActionRecognitionPredictionInstance timeSegmentEnd. */ - public timeSegmentEnd: string; + /** + * Verifies a GetPipelineJobRequest 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 new VideoActionRecognitionPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoActionRecognitionPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + /** + * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPipelineJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetPipelineJobRequest; - /** - * Encodes the specified VideoActionRecognitionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. - * @param message VideoActionRecognitionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. + * @param message GetPipelineJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified VideoActionRecognitionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. - * @param message VideoActionRecognitionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this GetPipelineJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoActionRecognitionPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + /** + * Gets the default type url for GetPipelineJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoActionRecognitionPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + /** Properties of a ListPipelineJobsRequest. */ + interface IListPipelineJobsRequest { - /** - * Verifies a VideoActionRecognitionPredictionInstance 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); + /** ListPipelineJobsRequest parent */ + parent?: (string|null); - /** - * Creates a VideoActionRecognitionPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoActionRecognitionPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + /** ListPipelineJobsRequest filter */ + filter?: (string|null); - /** - * Creates a plain object from a VideoActionRecognitionPredictionInstance message. Also converts values to other types if specified. - * @param message VideoActionRecognitionPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListPipelineJobsRequest pageSize */ + pageSize?: (number|null); - /** - * Converts this VideoActionRecognitionPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListPipelineJobsRequest pageToken */ + pageToken?: (string|null); - /** - * Gets the default type url for VideoActionRecognitionPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListPipelineJobsRequest orderBy */ + orderBy?: (string|null); - /** Properties of a VideoClassificationPredictionInstance. */ - interface IVideoClassificationPredictionInstance { + /** ListPipelineJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** VideoClassificationPredictionInstance content */ - content?: (string|null); + /** Represents a ListPipelineJobsRequest. */ + class ListPipelineJobsRequest implements IListPipelineJobsRequest { - /** VideoClassificationPredictionInstance mimeType */ - mimeType?: (string|null); + /** + * Constructs a new ListPipelineJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest); - /** VideoClassificationPredictionInstance timeSegmentStart */ - timeSegmentStart?: (string|null); + /** ListPipelineJobsRequest parent. */ + public parent: string; - /** VideoClassificationPredictionInstance timeSegmentEnd */ - timeSegmentEnd?: (string|null); - } + /** ListPipelineJobsRequest filter. */ + public filter: string; - /** Represents a VideoClassificationPredictionInstance. */ - class VideoClassificationPredictionInstance implements IVideoClassificationPredictionInstance { + /** ListPipelineJobsRequest pageSize. */ + public pageSize: number; - /** - * Constructs a new VideoClassificationPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance); + /** ListPipelineJobsRequest pageToken. */ + public pageToken: string; - /** VideoClassificationPredictionInstance content. */ - public content: string; + /** ListPipelineJobsRequest orderBy. */ + public orderBy: string; - /** VideoClassificationPredictionInstance mimeType. */ - public mimeType: string; + /** ListPipelineJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** VideoClassificationPredictionInstance timeSegmentStart. */ - public timeSegmentStart: string; + /** + * Creates a new ListPipelineJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPipelineJobsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest): google.cloud.aiplatform.v1.ListPipelineJobsRequest; - /** VideoClassificationPredictionInstance timeSegmentEnd. */ - public timeSegmentEnd: string; + /** + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * @param message ListPipelineJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new VideoClassificationPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoClassificationPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; + /** + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * @param message ListPipelineJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VideoClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. - * @param message VideoClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPipelineJobsRequest + * @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.aiplatform.v1.ListPipelineJobsRequest; - /** - * Encodes the specified VideoClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. - * @param message VideoClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPipelineJobsRequest + * @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.aiplatform.v1.ListPipelineJobsRequest; - /** - * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoClassificationPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; + /** + * Verifies a ListPipelineJobsRequest 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); - /** - * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoClassificationPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; + /** + * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPipelineJobsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsRequest; - /** - * Verifies a VideoClassificationPredictionInstance 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 plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. + * @param message ListPipelineJobsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a VideoClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoClassificationPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; + /** + * Converts this ListPipelineJobsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a VideoClassificationPredictionInstance message. Also converts values to other types if specified. - * @param message VideoClassificationPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ListPipelineJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this VideoClassificationPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a ListPipelineJobsResponse. */ + interface IListPipelineJobsResponse { - /** - * Gets the default type url for VideoClassificationPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListPipelineJobsResponse pipelineJobs */ + pipelineJobs?: (google.cloud.aiplatform.v1.IPipelineJob[]|null); - /** Properties of a VideoObjectTrackingPredictionInstance. */ - interface IVideoObjectTrackingPredictionInstance { + /** ListPipelineJobsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** VideoObjectTrackingPredictionInstance content */ - content?: (string|null); + /** Represents a ListPipelineJobsResponse. */ + class ListPipelineJobsResponse implements IListPipelineJobsResponse { - /** VideoObjectTrackingPredictionInstance mimeType */ - mimeType?: (string|null); + /** + * Constructs a new ListPipelineJobsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse); - /** VideoObjectTrackingPredictionInstance timeSegmentStart */ - timeSegmentStart?: (string|null); + /** ListPipelineJobsResponse pipelineJobs. */ + public pipelineJobs: google.cloud.aiplatform.v1.IPipelineJob[]; - /** VideoObjectTrackingPredictionInstance timeSegmentEnd */ - timeSegmentEnd?: (string|null); - } + /** ListPipelineJobsResponse nextPageToken. */ + public nextPageToken: string; - /** Represents a VideoObjectTrackingPredictionInstance. */ - class VideoObjectTrackingPredictionInstance implements IVideoObjectTrackingPredictionInstance { + /** + * Creates a new ListPipelineJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPipelineJobsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse): google.cloud.aiplatform.v1.ListPipelineJobsResponse; - /** - * Constructs a new VideoObjectTrackingPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance); + /** + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. + * @param message ListPipelineJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** VideoObjectTrackingPredictionInstance content. */ - public content: string; + /** + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. + * @param message ListPipelineJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** VideoObjectTrackingPredictionInstance mimeType. */ - public mimeType: string; + /** + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPipelineJobsResponse + * @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.aiplatform.v1.ListPipelineJobsResponse; - /** VideoObjectTrackingPredictionInstance timeSegmentStart. */ - public timeSegmentStart: string; + /** + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPipelineJobsResponse + * @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.aiplatform.v1.ListPipelineJobsResponse; - /** VideoObjectTrackingPredictionInstance timeSegmentEnd. */ - public timeSegmentEnd: string; + /** + * Verifies a ListPipelineJobsResponse 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 new VideoObjectTrackingPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoObjectTrackingPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + /** + * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPipelineJobsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsResponse; - /** - * Encodes the specified VideoObjectTrackingPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. - * @param message VideoObjectTrackingPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. + * @param message ListPipelineJobsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified VideoObjectTrackingPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. - * @param message VideoObjectTrackingPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ListPipelineJobsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoObjectTrackingPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + /** + * Gets the default type url for ListPipelineJobsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoObjectTrackingPredictionInstance - * @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.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + /** Properties of a DeletePipelineJobRequest. */ + interface IDeletePipelineJobRequest { - /** - * Verifies a VideoObjectTrackingPredictionInstance 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); + /** DeletePipelineJobRequest name */ + name?: (string|null); + } - /** - * Creates a VideoObjectTrackingPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoObjectTrackingPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + /** Represents a DeletePipelineJobRequest. */ + class DeletePipelineJobRequest implements IDeletePipelineJobRequest { - /** - * Creates a plain object from a VideoObjectTrackingPredictionInstance message. Also converts values to other types if specified. - * @param message VideoObjectTrackingPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new DeletePipelineJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest); - /** - * Converts this VideoObjectTrackingPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DeletePipelineJobRequest name. */ + public name: string; - /** - * Gets the default type url for VideoObjectTrackingPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Creates a new DeletePipelineJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeletePipelineJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): google.cloud.aiplatform.v1.DeletePipelineJobRequest; - /** Namespace params. */ - namespace params { + /** + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * @param message DeletePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an ImageClassificationPredictionParams. */ - interface IImageClassificationPredictionParams { + /** + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * @param message DeletePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ImageClassificationPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); + /** + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeletePipelineJobRequest + * @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.aiplatform.v1.DeletePipelineJobRequest; - /** ImageClassificationPredictionParams maxPredictions */ - maxPredictions?: (number|null); - } + /** + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeletePipelineJobRequest + * @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.aiplatform.v1.DeletePipelineJobRequest; - /** Represents an ImageClassificationPredictionParams. */ - class ImageClassificationPredictionParams implements IImageClassificationPredictionParams { + /** + * Verifies a DeletePipelineJobRequest 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); - /** - * Constructs a new ImageClassificationPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams); + /** + * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeletePipelineJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeletePipelineJobRequest; - /** ImageClassificationPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** + * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * @param message DeletePipelineJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeletePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ImageClassificationPredictionParams maxPredictions. */ - public maxPredictions: number; + /** + * Converts this DeletePipelineJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new ImageClassificationPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageClassificationPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; + /** + * Gets the default type url for DeletePipelineJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified ImageClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. - * @param message ImageClassificationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a CancelPipelineJobRequest. */ + interface ICancelPipelineJobRequest { - /** - * Encodes the specified ImageClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. - * @param message ImageClassificationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** CancelPipelineJobRequest name */ + name?: (string|null); + } - /** - * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageClassificationPredictionParams - * @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.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; + /** Represents a CancelPipelineJobRequest. */ + class CancelPipelineJobRequest implements ICancelPipelineJobRequest { - /** - * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageClassificationPredictionParams - * @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.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; + /** + * Constructs a new CancelPipelineJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest); - /** - * Verifies an ImageClassificationPredictionParams 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); + /** CancelPipelineJobRequest name. */ + public name: string; - /** - * Creates an ImageClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageClassificationPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; + /** + * Creates a new CancelPipelineJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelPipelineJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): google.cloud.aiplatform.v1.CancelPipelineJobRequest; - /** - * Creates a plain object from an ImageClassificationPredictionParams message. Also converts values to other types if specified. - * @param message ImageClassificationPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * @param message CancelPipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ImageClassificationPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * @param message CancelPipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ImageClassificationPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelPipelineJobRequest + * @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.aiplatform.v1.CancelPipelineJobRequest; - /** Properties of an ImageObjectDetectionPredictionParams. */ - interface IImageObjectDetectionPredictionParams { + /** + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelPipelineJobRequest + * @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.aiplatform.v1.CancelPipelineJobRequest; - /** ImageObjectDetectionPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); + /** + * Verifies a CancelPipelineJobRequest 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); - /** ImageObjectDetectionPredictionParams maxPredictions */ - maxPredictions?: (number|null); - } + /** + * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelPipelineJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelPipelineJobRequest; - /** Represents an ImageObjectDetectionPredictionParams. */ - class ImageObjectDetectionPredictionParams implements IImageObjectDetectionPredictionParams { + /** + * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. + * @param message CancelPipelineJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CancelPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ImageObjectDetectionPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams); + /** + * Converts this CancelPipelineJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ImageObjectDetectionPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** + * Gets the default type url for CancelPipelineJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ImageObjectDetectionPredictionParams maxPredictions. */ - public maxPredictions: number; + /** Properties of a TrainingPipeline. */ + interface ITrainingPipeline { - /** - * Creates a new ImageObjectDetectionPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageObjectDetectionPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; + /** TrainingPipeline name */ + name?: (string|null); - /** - * Encodes the specified ImageObjectDetectionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. - * @param message ImageObjectDetectionPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline displayName */ + displayName?: (string|null); - /** - * Encodes the specified ImageObjectDetectionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. - * @param message ImageObjectDetectionPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline inputDataConfig */ + inputDataConfig?: (google.cloud.aiplatform.v1.IInputDataConfig|null); - /** - * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageObjectDetectionPredictionParams - * @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.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; + /** TrainingPipeline trainingTaskDefinition */ + trainingTaskDefinition?: (string|null); - /** - * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageObjectDetectionPredictionParams - * @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.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; + /** TrainingPipeline trainingTaskInputs */ + trainingTaskInputs?: (google.protobuf.IValue|null); - /** - * Verifies an ImageObjectDetectionPredictionParams 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); + /** TrainingPipeline trainingTaskMetadata */ + trainingTaskMetadata?: (google.protobuf.IValue|null); - /** - * Creates an ImageObjectDetectionPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageObjectDetectionPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; + /** TrainingPipeline modelToUpload */ + modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); - /** - * Creates a plain object from an ImageObjectDetectionPredictionParams message. Also converts values to other types if specified. - * @param message ImageObjectDetectionPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TrainingPipeline modelId */ + modelId?: (string|null); - /** - * Converts this ImageObjectDetectionPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TrainingPipeline parentModel */ + parentModel?: (string|null); - /** - * Gets the default type url for ImageObjectDetectionPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TrainingPipeline state */ + state?: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState|null); - /** Properties of an ImageSegmentationPredictionParams. */ - interface IImageSegmentationPredictionParams { + /** TrainingPipeline error */ + error?: (google.rpc.IStatus|null); - /** ImageSegmentationPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); - } + /** TrainingPipeline createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Represents an ImageSegmentationPredictionParams. */ - class ImageSegmentationPredictionParams implements IImageSegmentationPredictionParams { + /** TrainingPipeline startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ImageSegmentationPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams); + /** TrainingPipeline endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** ImageSegmentationPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** TrainingPipeline updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new ImageSegmentationPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageSegmentationPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; + /** TrainingPipeline labels */ + labels?: ({ [k: string]: string }|null); - /** - * Encodes the specified ImageSegmentationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. - * @param message ImageSegmentationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + } - /** - * Encodes the specified ImageSegmentationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. - * @param message ImageSegmentationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a TrainingPipeline. */ + class TrainingPipeline implements ITrainingPipeline { - /** - * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageSegmentationPredictionParams - * @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.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; + /** + * Constructs a new TrainingPipeline. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITrainingPipeline); - /** - * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageSegmentationPredictionParams - * @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.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; + /** TrainingPipeline name. */ + public name: string; - /** - * Verifies an ImageSegmentationPredictionParams 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); + /** TrainingPipeline displayName. */ + public displayName: string; - /** - * Creates an ImageSegmentationPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageSegmentationPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; + /** TrainingPipeline inputDataConfig. */ + public inputDataConfig?: (google.cloud.aiplatform.v1.IInputDataConfig|null); - /** - * Creates a plain object from an ImageSegmentationPredictionParams message. Also converts values to other types if specified. - * @param message ImageSegmentationPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TrainingPipeline trainingTaskDefinition. */ + public trainingTaskDefinition: string; - /** - * Converts this ImageSegmentationPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TrainingPipeline trainingTaskInputs. */ + public trainingTaskInputs?: (google.protobuf.IValue|null); - /** - * Gets the default type url for ImageSegmentationPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TrainingPipeline trainingTaskMetadata. */ + public trainingTaskMetadata?: (google.protobuf.IValue|null); - /** Properties of a VideoActionRecognitionPredictionParams. */ - interface IVideoActionRecognitionPredictionParams { + /** TrainingPipeline modelToUpload. */ + public modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); - /** VideoActionRecognitionPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); + /** TrainingPipeline modelId. */ + public modelId: string; - /** VideoActionRecognitionPredictionParams maxPredictions */ - maxPredictions?: (number|null); - } + /** TrainingPipeline parentModel. */ + public parentModel: string; - /** Represents a VideoActionRecognitionPredictionParams. */ - class VideoActionRecognitionPredictionParams implements IVideoActionRecognitionPredictionParams { + /** TrainingPipeline state. */ + public state: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState); - /** - * Constructs a new VideoActionRecognitionPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams); + /** TrainingPipeline error. */ + public error?: (google.rpc.IStatus|null); - /** VideoActionRecognitionPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** TrainingPipeline createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** VideoActionRecognitionPredictionParams maxPredictions. */ - public maxPredictions: number; + /** TrainingPipeline startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new VideoActionRecognitionPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoActionRecognitionPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; + /** TrainingPipeline endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified VideoActionRecognitionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. - * @param message VideoActionRecognitionPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified VideoActionRecognitionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. - * @param message VideoActionRecognitionPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline labels. */ + public labels: { [k: string]: string }; - /** - * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoActionRecognitionPredictionParams - * @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.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; + /** TrainingPipeline encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** - * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoActionRecognitionPredictionParams - * @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.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; + /** + * Creates a new TrainingPipeline instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPipeline instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITrainingPipeline): google.cloud.aiplatform.v1.TrainingPipeline; - /** - * Verifies a VideoActionRecognitionPredictionParams 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); + /** + * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * @param message TrainingPipeline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a VideoActionRecognitionPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoActionRecognitionPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; + /** + * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * @param message TrainingPipeline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a VideoActionRecognitionPredictionParams message. Also converts values to other types if specified. - * @param message VideoActionRecognitionPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a TrainingPipeline message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPipeline + * @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.aiplatform.v1.TrainingPipeline; - /** - * Converts this VideoActionRecognitionPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPipeline + * @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.aiplatform.v1.TrainingPipeline; - /** - * Gets the default type url for VideoActionRecognitionPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a TrainingPipeline 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); - /** Properties of a VideoClassificationPredictionParams. */ - interface IVideoClassificationPredictionParams { + /** + * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPipeline + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TrainingPipeline; - /** VideoClassificationPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); + /** + * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. + * @param message TrainingPipeline + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TrainingPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** VideoClassificationPredictionParams maxPredictions */ - maxPredictions?: (number|null); + /** + * Converts this TrainingPipeline to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** VideoClassificationPredictionParams segmentClassification */ - segmentClassification?: (boolean|null); + /** + * Gets the default type url for TrainingPipeline + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** VideoClassificationPredictionParams shotClassification */ - shotClassification?: (boolean|null); + /** Properties of an InputDataConfig. */ + interface IInputDataConfig { - /** VideoClassificationPredictionParams oneSecIntervalClassification */ - oneSecIntervalClassification?: (boolean|null); - } + /** InputDataConfig fractionSplit */ + fractionSplit?: (google.cloud.aiplatform.v1.IFractionSplit|null); - /** Represents a VideoClassificationPredictionParams. */ - class VideoClassificationPredictionParams implements IVideoClassificationPredictionParams { + /** InputDataConfig filterSplit */ + filterSplit?: (google.cloud.aiplatform.v1.IFilterSplit|null); - /** - * Constructs a new VideoClassificationPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams); + /** InputDataConfig predefinedSplit */ + predefinedSplit?: (google.cloud.aiplatform.v1.IPredefinedSplit|null); - /** VideoClassificationPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** InputDataConfig timestampSplit */ + timestampSplit?: (google.cloud.aiplatform.v1.ITimestampSplit|null); - /** VideoClassificationPredictionParams maxPredictions. */ - public maxPredictions: number; + /** InputDataConfig stratifiedSplit */ + stratifiedSplit?: (google.cloud.aiplatform.v1.IStratifiedSplit|null); - /** VideoClassificationPredictionParams segmentClassification. */ - public segmentClassification: boolean; + /** InputDataConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** VideoClassificationPredictionParams shotClassification. */ - public shotClassification: boolean; + /** InputDataConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); - /** VideoClassificationPredictionParams oneSecIntervalClassification. */ - public oneSecIntervalClassification: boolean; + /** InputDataConfig datasetId */ + datasetId?: (string|null); - /** - * Creates a new VideoClassificationPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoClassificationPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; + /** InputDataConfig annotationsFilter */ + annotationsFilter?: (string|null); - /** - * Encodes the specified VideoClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. - * @param message VideoClassificationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputDataConfig annotationSchemaUri */ + annotationSchemaUri?: (string|null); - /** - * Encodes the specified VideoClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. - * @param message VideoClassificationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputDataConfig savedQueryId */ + savedQueryId?: (string|null); - /** - * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoClassificationPredictionParams - * @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.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; + /** InputDataConfig persistMlUseAssignment */ + persistMlUseAssignment?: (boolean|null); + } - /** - * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoClassificationPredictionParams - * @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.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; + /** Represents an InputDataConfig. */ + class InputDataConfig implements IInputDataConfig { - /** - * Verifies a VideoClassificationPredictionParams 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); + /** + * Constructs a new InputDataConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IInputDataConfig); - /** - * Creates a VideoClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoClassificationPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; + /** InputDataConfig fractionSplit. */ + public fractionSplit?: (google.cloud.aiplatform.v1.IFractionSplit|null); - /** - * Creates a plain object from a VideoClassificationPredictionParams message. Also converts values to other types if specified. - * @param message VideoClassificationPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** InputDataConfig filterSplit. */ + public filterSplit?: (google.cloud.aiplatform.v1.IFilterSplit|null); - /** - * Converts this VideoClassificationPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** InputDataConfig predefinedSplit. */ + public predefinedSplit?: (google.cloud.aiplatform.v1.IPredefinedSplit|null); - /** - * Gets the default type url for VideoClassificationPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** InputDataConfig timestampSplit. */ + public timestampSplit?: (google.cloud.aiplatform.v1.ITimestampSplit|null); - /** Properties of a VideoObjectTrackingPredictionParams. */ - interface IVideoObjectTrackingPredictionParams { + /** InputDataConfig stratifiedSplit. */ + public stratifiedSplit?: (google.cloud.aiplatform.v1.IStratifiedSplit|null); - /** VideoObjectTrackingPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); - - /** VideoObjectTrackingPredictionParams maxPredictions */ - maxPredictions?: (number|null); + /** InputDataConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** VideoObjectTrackingPredictionParams minBoundingBoxSize */ - minBoundingBoxSize?: (number|null); - } + /** InputDataConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); - /** Represents a VideoObjectTrackingPredictionParams. */ - class VideoObjectTrackingPredictionParams implements IVideoObjectTrackingPredictionParams { + /** InputDataConfig datasetId. */ + public datasetId: string; - /** - * Constructs a new VideoObjectTrackingPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams); + /** InputDataConfig annotationsFilter. */ + public annotationsFilter: string; - /** VideoObjectTrackingPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** InputDataConfig annotationSchemaUri. */ + public annotationSchemaUri: string; - /** VideoObjectTrackingPredictionParams maxPredictions. */ - public maxPredictions: number; + /** InputDataConfig savedQueryId. */ + public savedQueryId: string; - /** VideoObjectTrackingPredictionParams minBoundingBoxSize. */ - public minBoundingBoxSize: number; + /** InputDataConfig persistMlUseAssignment. */ + public persistMlUseAssignment: boolean; - /** - * Creates a new VideoObjectTrackingPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoObjectTrackingPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; + /** InputDataConfig split. */ + public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); - /** - * Encodes the specified VideoObjectTrackingPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. - * @param message VideoObjectTrackingPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputDataConfig destination. */ + public destination?: ("gcsDestination"|"bigqueryDestination"); - /** - * Encodes the specified VideoObjectTrackingPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. - * @param message VideoObjectTrackingPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new InputDataConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InputDataConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IInputDataConfig): google.cloud.aiplatform.v1.InputDataConfig; - /** - * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoObjectTrackingPredictionParams - * @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.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; + /** + * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. + * @param message InputDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoObjectTrackingPredictionParams - * @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.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; + /** + * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. + * @param message InputDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a VideoObjectTrackingPredictionParams 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); + /** + * Decodes an InputDataConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputDataConfig + * @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.aiplatform.v1.InputDataConfig; - /** - * Creates a VideoObjectTrackingPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoObjectTrackingPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; + /** + * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputDataConfig + * @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.aiplatform.v1.InputDataConfig; - /** - * Creates a plain object from a VideoObjectTrackingPredictionParams message. Also converts values to other types if specified. - * @param message VideoObjectTrackingPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies an InputDataConfig 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); - /** - * Converts this VideoObjectTrackingPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputDataConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.InputDataConfig; - /** - * Gets the default type url for VideoObjectTrackingPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * @param message InputDataConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.InputDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Namespace prediction. */ - namespace prediction { + /** + * Converts this InputDataConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a ClassificationPredictionResult. */ - interface IClassificationPredictionResult { + /** + * Gets the default type url for InputDataConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ClassificationPredictionResult ids */ - ids?: ((number|Long|string)[]|null); + /** Properties of a FractionSplit. */ + interface IFractionSplit { - /** ClassificationPredictionResult displayNames */ - displayNames?: (string[]|null); + /** FractionSplit trainingFraction */ + trainingFraction?: (number|null); - /** ClassificationPredictionResult confidences */ - confidences?: (number[]|null); - } + /** FractionSplit validationFraction */ + validationFraction?: (number|null); - /** Represents a ClassificationPredictionResult. */ - class ClassificationPredictionResult implements IClassificationPredictionResult { + /** FractionSplit testFraction */ + testFraction?: (number|null); + } - /** - * Constructs a new ClassificationPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult); + /** Represents a FractionSplit. */ + class FractionSplit implements IFractionSplit { - /** ClassificationPredictionResult ids. */ - public ids: (number|Long|string)[]; + /** + * Constructs a new FractionSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFractionSplit); - /** ClassificationPredictionResult displayNames. */ - public displayNames: string[]; + /** FractionSplit trainingFraction. */ + public trainingFraction: number; - /** ClassificationPredictionResult confidences. */ - public confidences: number[]; + /** FractionSplit validationFraction. */ + public validationFraction: number; - /** - * Creates a new ClassificationPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ClassificationPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; + /** FractionSplit testFraction. */ + public testFraction: number; - /** - * Encodes the specified ClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. - * @param message ClassificationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FractionSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns FractionSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFractionSplit): google.cloud.aiplatform.v1.FractionSplit; - /** - * Encodes the specified ClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. - * @param message ClassificationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * @param message FractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ClassificationPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClassificationPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; + /** + * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * @param message FractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ClassificationPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ClassificationPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; + /** + * Decodes a FractionSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FractionSplit + * @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.aiplatform.v1.FractionSplit; - /** - * Verifies a ClassificationPredictionResult 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); + /** + * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FractionSplit + * @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.aiplatform.v1.FractionSplit; - /** - * Creates a ClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClassificationPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; + /** + * Verifies a FractionSplit 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 plain object from a ClassificationPredictionResult message. Also converts values to other types if specified. - * @param message ClassificationPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FractionSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FractionSplit; - /** - * Converts this ClassificationPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. + * @param message FractionSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ClassificationPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this FractionSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of an ImageObjectDetectionPredictionResult. */ - interface IImageObjectDetectionPredictionResult { + /** + * Gets the default type url for FractionSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ImageObjectDetectionPredictionResult ids */ - ids?: ((number|Long|string)[]|null); + /** Properties of a FilterSplit. */ + interface IFilterSplit { - /** ImageObjectDetectionPredictionResult displayNames */ - displayNames?: (string[]|null); + /** FilterSplit trainingFilter */ + trainingFilter?: (string|null); - /** ImageObjectDetectionPredictionResult confidences */ - confidences?: (number[]|null); + /** FilterSplit validationFilter */ + validationFilter?: (string|null); - /** ImageObjectDetectionPredictionResult bboxes */ - bboxes?: (google.protobuf.IListValue[]|null); - } + /** FilterSplit testFilter */ + testFilter?: (string|null); + } - /** Represents an ImageObjectDetectionPredictionResult. */ - class ImageObjectDetectionPredictionResult implements IImageObjectDetectionPredictionResult { + /** Represents a FilterSplit. */ + class FilterSplit implements IFilterSplit { - /** - * Constructs a new ImageObjectDetectionPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult); + /** + * Constructs a new FilterSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFilterSplit); - /** ImageObjectDetectionPredictionResult ids. */ - public ids: (number|Long|string)[]; + /** FilterSplit trainingFilter. */ + public trainingFilter: string; - /** ImageObjectDetectionPredictionResult displayNames. */ - public displayNames: string[]; + /** FilterSplit validationFilter. */ + public validationFilter: string; - /** ImageObjectDetectionPredictionResult confidences. */ - public confidences: number[]; + /** FilterSplit testFilter. */ + public testFilter: string; - /** ImageObjectDetectionPredictionResult bboxes. */ - public bboxes: google.protobuf.IListValue[]; + /** + * Creates a new FilterSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns FilterSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFilterSplit): google.cloud.aiplatform.v1.FilterSplit; - /** - * Creates a new ImageObjectDetectionPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageObjectDetectionPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + /** + * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * @param message FilterSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImageObjectDetectionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. - * @param message ImageObjectDetectionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * @param message FilterSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImageObjectDetectionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. - * @param message ImageObjectDetectionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a FilterSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FilterSplit + * @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.aiplatform.v1.FilterSplit; - /** - * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageObjectDetectionPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + /** + * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FilterSplit + * @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.aiplatform.v1.FilterSplit; - /** - * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageObjectDetectionPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + /** + * Verifies a FilterSplit 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); - /** - * Verifies an ImageObjectDetectionPredictionResult 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 FilterSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FilterSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FilterSplit; - /** - * Creates an ImageObjectDetectionPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageObjectDetectionPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + /** + * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. + * @param message FilterSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FilterSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from an ImageObjectDetectionPredictionResult message. Also converts values to other types if specified. - * @param message ImageObjectDetectionPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImageObjectDetectionPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this FilterSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ImageObjectDetectionPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for FilterSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of an ImageSegmentationPredictionResult. */ - interface IImageSegmentationPredictionResult { + /** Properties of a PredefinedSplit. */ + interface IPredefinedSplit { - /** ImageSegmentationPredictionResult categoryMask */ - categoryMask?: (string|null); + /** PredefinedSplit key */ + key?: (string|null); + } - /** ImageSegmentationPredictionResult confidenceMask */ - confidenceMask?: (string|null); - } + /** Represents a PredefinedSplit. */ + class PredefinedSplit implements IPredefinedSplit { - /** Represents an ImageSegmentationPredictionResult. */ - class ImageSegmentationPredictionResult implements IImageSegmentationPredictionResult { + /** + * Constructs a new PredefinedSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPredefinedSplit); - /** - * Constructs a new ImageSegmentationPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult); + /** PredefinedSplit key. */ + public key: string; - /** ImageSegmentationPredictionResult categoryMask. */ - public categoryMask: string; + /** + * Creates a new PredefinedSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns PredefinedSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPredefinedSplit): google.cloud.aiplatform.v1.PredefinedSplit; - /** ImageSegmentationPredictionResult confidenceMask. */ - public confidenceMask: string; + /** + * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * @param message PredefinedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ImageSegmentationPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageSegmentationPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; + /** + * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * @param message PredefinedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImageSegmentationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. - * @param message ImageSegmentationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredefinedSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredefinedSplit + * @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.aiplatform.v1.PredefinedSplit; - /** - * Encodes the specified ImageSegmentationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. - * @param message ImageSegmentationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredefinedSplit + * @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.aiplatform.v1.PredefinedSplit; - /** - * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageSegmentationPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; + /** + * Verifies a PredefinedSplit 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); - /** - * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageSegmentationPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; + /** + * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredefinedSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredefinedSplit; - /** - * Verifies an ImageSegmentationPredictionResult 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 plain object from a PredefinedSplit message. Also converts values to other types if specified. + * @param message PredefinedSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PredefinedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an ImageSegmentationPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageSegmentationPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; + /** + * Converts this PredefinedSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an ImageSegmentationPredictionResult message. Also converts values to other types if specified. - * @param message ImageSegmentationPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for PredefinedSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this ImageSegmentationPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a TimestampSplit. */ + interface ITimestampSplit { - /** - * Gets the default type url for ImageSegmentationPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TimestampSplit trainingFraction */ + trainingFraction?: (number|null); - /** Properties of a TabularClassificationPredictionResult. */ - interface ITabularClassificationPredictionResult { + /** TimestampSplit validationFraction */ + validationFraction?: (number|null); - /** TabularClassificationPredictionResult classes */ - classes?: (string[]|null); + /** TimestampSplit testFraction */ + testFraction?: (number|null); - /** TabularClassificationPredictionResult scores */ - scores?: (number[]|null); - } + /** TimestampSplit key */ + key?: (string|null); + } - /** Represents a TabularClassificationPredictionResult. */ - class TabularClassificationPredictionResult implements ITabularClassificationPredictionResult { + /** Represents a TimestampSplit. */ + class TimestampSplit implements ITimestampSplit { - /** - * Constructs a new TabularClassificationPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult); + /** + * Constructs a new TimestampSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITimestampSplit); - /** TabularClassificationPredictionResult classes. */ - public classes: string[]; + /** TimestampSplit trainingFraction. */ + public trainingFraction: number; - /** TabularClassificationPredictionResult scores. */ - public scores: number[]; + /** TimestampSplit validationFraction. */ + public validationFraction: number; - /** - * Creates a new TabularClassificationPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns TabularClassificationPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; + /** TimestampSplit testFraction. */ + public testFraction: number; - /** - * Encodes the specified TabularClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. - * @param message TabularClassificationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** TimestampSplit key. */ + public key: string; - /** - * Encodes the specified TabularClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. - * @param message TabularClassificationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new TimestampSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns TimestampSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITimestampSplit): google.cloud.aiplatform.v1.TimestampSplit; - /** - * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabularClassificationPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; + /** + * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * @param message TimestampSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabularClassificationPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; + /** + * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * @param message TimestampSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a TabularClassificationPredictionResult 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); + /** + * Decodes a TimestampSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimestampSplit + * @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.aiplatform.v1.TimestampSplit; - /** - * Creates a TabularClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabularClassificationPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; + /** + * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimestampSplit + * @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.aiplatform.v1.TimestampSplit; - /** - * Creates a plain object from a TabularClassificationPredictionResult message. Also converts values to other types if specified. - * @param message TabularClassificationPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a TimestampSplit 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); - /** - * Converts this TabularClassificationPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimestampSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimestampSplit; - /** - * Gets the default type url for TabularClassificationPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * @param message TimestampSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TimestampSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a TabularRegressionPredictionResult. */ - interface ITabularRegressionPredictionResult { + /** + * Converts this TimestampSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TabularRegressionPredictionResult value */ - value?: (number|null); + /** + * Gets the default type url for TimestampSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TabularRegressionPredictionResult lowerBound */ - lowerBound?: (number|null); + /** Properties of a StratifiedSplit. */ + interface IStratifiedSplit { - /** TabularRegressionPredictionResult upperBound */ - upperBound?: (number|null); - } + /** StratifiedSplit trainingFraction */ + trainingFraction?: (number|null); - /** Represents a TabularRegressionPredictionResult. */ - class TabularRegressionPredictionResult implements ITabularRegressionPredictionResult { + /** StratifiedSplit validationFraction */ + validationFraction?: (number|null); - /** - * Constructs a new TabularRegressionPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult); + /** StratifiedSplit testFraction */ + testFraction?: (number|null); - /** TabularRegressionPredictionResult value. */ - public value: number; + /** StratifiedSplit key */ + key?: (string|null); + } - /** TabularRegressionPredictionResult lowerBound. */ - public lowerBound: number; + /** Represents a StratifiedSplit. */ + class StratifiedSplit implements IStratifiedSplit { - /** TabularRegressionPredictionResult upperBound. */ - public upperBound: number; + /** + * Constructs a new StratifiedSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IStratifiedSplit); - /** - * Creates a new TabularRegressionPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns TabularRegressionPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; + /** StratifiedSplit trainingFraction. */ + public trainingFraction: number; - /** - * Encodes the specified TabularRegressionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. - * @param message TabularRegressionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** StratifiedSplit validationFraction. */ + public validationFraction: number; - /** - * Encodes the specified TabularRegressionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. - * @param message TabularRegressionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** StratifiedSplit testFraction. */ + public testFraction: number; - /** - * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabularRegressionPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; + /** StratifiedSplit key. */ + public key: string; - /** - * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabularRegressionPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; + /** + * Creates a new StratifiedSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns StratifiedSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IStratifiedSplit): google.cloud.aiplatform.v1.StratifiedSplit; - /** - * Verifies a TabularRegressionPredictionResult 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); + /** + * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * @param message StratifiedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a TabularRegressionPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabularRegressionPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; + /** + * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * @param message StratifiedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a TabularRegressionPredictionResult message. Also converts values to other types if specified. - * @param message TabularRegressionPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a StratifiedSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StratifiedSplit + * @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.aiplatform.v1.StratifiedSplit; - /** - * Converts this TabularRegressionPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StratifiedSplit + * @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.aiplatform.v1.StratifiedSplit; - /** - * Gets the default type url for TabularRegressionPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a StratifiedSplit 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); - /** Properties of a TextExtractionPredictionResult. */ - interface ITextExtractionPredictionResult { + /** + * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StratifiedSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StratifiedSplit; - /** TextExtractionPredictionResult ids */ - ids?: ((number|Long|string)[]|null); + /** + * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. + * @param message StratifiedSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.StratifiedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TextExtractionPredictionResult displayNames */ - displayNames?: (string[]|null); + /** + * Converts this StratifiedSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TextExtractionPredictionResult textSegmentStartOffsets */ - textSegmentStartOffsets?: ((number|Long|string)[]|null); + /** + * Gets the default type url for StratifiedSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TextExtractionPredictionResult textSegmentEndOffsets */ - textSegmentEndOffsets?: ((number|Long|string)[]|null); + /** Represents a PredictionService */ + class PredictionService extends $protobuf.rpc.Service { - /** TextExtractionPredictionResult confidences */ - confidences?: (number[]|null); - } + /** + * Constructs a new PredictionService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a TextExtractionPredictionResult. */ - class TextExtractionPredictionResult implements ITextExtractionPredictionResult { + /** + * Creates new PredictionService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService; - /** - * Constructs a new TextExtractionPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult); + /** + * Calls Predict. + * @param request PredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PredictResponse + */ + public predict(request: google.cloud.aiplatform.v1.IPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.PredictCallback): void; - /** TextExtractionPredictionResult ids. */ - public ids: (number|Long|string)[]; + /** + * Calls Predict. + * @param request PredictRequest message or plain object + * @returns Promise + */ + public predict(request: google.cloud.aiplatform.v1.IPredictRequest): Promise; - /** TextExtractionPredictionResult displayNames. */ - public displayNames: string[]; + /** + * Calls RawPredict. + * @param request RawPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HttpBody + */ + public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.RawPredictCallback): void; - /** TextExtractionPredictionResult textSegmentStartOffsets. */ - public textSegmentStartOffsets: (number|Long|string)[]; + /** + * Calls RawPredict. + * @param request RawPredictRequest message or plain object + * @returns Promise + */ + public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest): Promise; - /** TextExtractionPredictionResult textSegmentEndOffsets. */ - public textSegmentEndOffsets: (number|Long|string)[]; + /** + * Calls Explain. + * @param request ExplainRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExplainResponse + */ + public explain(request: google.cloud.aiplatform.v1.IExplainRequest, callback: google.cloud.aiplatform.v1.PredictionService.ExplainCallback): void; - /** TextExtractionPredictionResult confidences. */ - public confidences: number[]; + /** + * Calls Explain. + * @param request ExplainRequest message or plain object + * @returns Promise + */ + public explain(request: google.cloud.aiplatform.v1.IExplainRequest): Promise; + } - /** - * Creates a new TextExtractionPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns TextExtractionPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; + namespace PredictionService { - /** - * Encodes the specified TextExtractionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. - * @param message TextExtractionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. + * @param error Error, if any + * @param [response] PredictResponse + */ + type PredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PredictResponse) => void; - /** - * Encodes the specified TextExtractionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. - * @param message TextExtractionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. + * @param error Error, if any + * @param [response] HttpBody + */ + type RawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; - /** - * Decodes a TextExtractionPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextExtractionPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. + * @param error Error, if any + * @param [response] ExplainResponse + */ + type ExplainCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExplainResponse) => void; + } - /** - * Decodes a TextExtractionPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextExtractionPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; + /** Properties of a PredictRequest. */ + interface IPredictRequest { - /** - * Verifies a TextExtractionPredictionResult 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); + /** PredictRequest endpoint */ + endpoint?: (string|null); - /** - * Creates a TextExtractionPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextExtractionPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; + /** PredictRequest instances */ + instances?: (google.protobuf.IValue[]|null); - /** - * Creates a plain object from a TextExtractionPredictionResult message. Also converts values to other types if specified. - * @param message TextExtractionPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PredictRequest parameters */ + parameters?: (google.protobuf.IValue|null); + } - /** - * Converts this TextExtractionPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a PredictRequest. */ + class PredictRequest implements IPredictRequest { - /** - * Gets the default type url for TextExtractionPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new PredictRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPredictRequest); - /** Properties of a TextSentimentPredictionResult. */ - interface ITextSentimentPredictionResult { + /** PredictRequest endpoint. */ + public endpoint: string; - /** TextSentimentPredictionResult sentiment */ - sentiment?: (number|null); - } + /** PredictRequest instances. */ + public instances: google.protobuf.IValue[]; - /** Represents a TextSentimentPredictionResult. */ - class TextSentimentPredictionResult implements ITextSentimentPredictionResult { + /** PredictRequest parameters. */ + public parameters?: (google.protobuf.IValue|null); - /** - * Constructs a new TextSentimentPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult); + /** + * Creates a new PredictRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPredictRequest): google.cloud.aiplatform.v1.PredictRequest; - /** TextSentimentPredictionResult sentiment. */ - public sentiment: number; + /** + * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @param message PredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new TextSentimentPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns TextSentimentPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; + /** + * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @param message PredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TextSentimentPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. - * @param message TextSentimentPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredictRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictRequest + * @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.aiplatform.v1.PredictRequest; - /** - * Encodes the specified TextSentimentPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. - * @param message TextSentimentPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredictRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictRequest + * @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.aiplatform.v1.PredictRequest; - /** - * Decodes a TextSentimentPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextSentimentPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; + /** + * Verifies a PredictRequest 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); - /** - * Decodes a TextSentimentPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextSentimentPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; + /** + * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictRequest; - /** - * Verifies a TextSentimentPredictionResult 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 plain object from a PredictRequest message. Also converts values to other types if specified. + * @param message PredictRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a TextSentimentPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextSentimentPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; + /** + * Converts this PredictRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a TextSentimentPredictionResult message. Also converts values to other types if specified. - * @param message TextSentimentPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for PredictRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this TextSentimentPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a PredictResponse. */ + interface IPredictResponse { - /** - * Gets the default type url for TextSentimentPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PredictResponse predictions */ + predictions?: (google.protobuf.IValue[]|null); - /** Properties of a VideoActionRecognitionPredictionResult. */ - interface IVideoActionRecognitionPredictionResult { + /** PredictResponse deployedModelId */ + deployedModelId?: (string|null); - /** VideoActionRecognitionPredictionResult id */ - id?: (string|null); + /** PredictResponse model */ + model?: (string|null); - /** VideoActionRecognitionPredictionResult displayName */ - displayName?: (string|null); + /** PredictResponse modelVersionId */ + modelVersionId?: (string|null); - /** VideoActionRecognitionPredictionResult timeSegmentStart */ - timeSegmentStart?: (google.protobuf.IDuration|null); + /** PredictResponse modelDisplayName */ + modelDisplayName?: (string|null); + } - /** VideoActionRecognitionPredictionResult timeSegmentEnd */ - timeSegmentEnd?: (google.protobuf.IDuration|null); + /** Represents a PredictResponse. */ + class PredictResponse implements IPredictResponse { - /** VideoActionRecognitionPredictionResult confidence */ - confidence?: (google.protobuf.IFloatValue|null); - } + /** + * Constructs a new PredictResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPredictResponse); - /** Represents a VideoActionRecognitionPredictionResult. */ - class VideoActionRecognitionPredictionResult implements IVideoActionRecognitionPredictionResult { + /** PredictResponse predictions. */ + public predictions: google.protobuf.IValue[]; - /** - * Constructs a new VideoActionRecognitionPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult); + /** PredictResponse deployedModelId. */ + public deployedModelId: string; - /** VideoActionRecognitionPredictionResult id. */ - public id: string; + /** PredictResponse model. */ + public model: string; - /** VideoActionRecognitionPredictionResult displayName. */ - public displayName: string; + /** PredictResponse modelVersionId. */ + public modelVersionId: string; - /** VideoActionRecognitionPredictionResult timeSegmentStart. */ - public timeSegmentStart?: (google.protobuf.IDuration|null); + /** PredictResponse modelDisplayName. */ + public modelDisplayName: string; - /** VideoActionRecognitionPredictionResult timeSegmentEnd. */ - public timeSegmentEnd?: (google.protobuf.IDuration|null); + /** + * Creates a new PredictResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPredictResponse): google.cloud.aiplatform.v1.PredictResponse; - /** VideoActionRecognitionPredictionResult confidence. */ - public confidence?: (google.protobuf.IFloatValue|null); + /** + * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * @param message PredictResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new VideoActionRecognitionPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoActionRecognitionPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + /** + * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * @param message PredictResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VideoActionRecognitionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. - * @param message VideoActionRecognitionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredictResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictResponse + * @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.aiplatform.v1.PredictResponse; - /** - * Encodes the specified VideoActionRecognitionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. - * @param message VideoActionRecognitionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredictResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictResponse + * @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.aiplatform.v1.PredictResponse; - /** - * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoActionRecognitionPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + /** + * Verifies a PredictResponse 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); - /** - * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoActionRecognitionPredictionResult - * @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.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + /** + * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictResponse; - /** - * Verifies a VideoActionRecognitionPredictionResult 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 plain object from a PredictResponse message. Also converts values to other types if specified. + * @param message PredictResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a VideoActionRecognitionPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoActionRecognitionPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + /** + * Converts this PredictResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a VideoActionRecognitionPredictionResult message. Also converts values to other types if specified. - * @param message VideoActionRecognitionPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for PredictResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this VideoActionRecognitionPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a RawPredictRequest. */ + interface IRawPredictRequest { - /** - * Gets the default type url for VideoActionRecognitionPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** RawPredictRequest endpoint */ + endpoint?: (string|null); - /** Properties of a VideoClassificationPredictionResult. */ - interface IVideoClassificationPredictionResult { + /** RawPredictRequest httpBody */ + httpBody?: (google.api.IHttpBody|null); + } - /** VideoClassificationPredictionResult id */ - id?: (string|null); + /** Represents a RawPredictRequest. */ + class RawPredictRequest implements IRawPredictRequest { - /** VideoClassificationPredictionResult displayName */ - displayName?: (string|null); + /** + * Constructs a new RawPredictRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRawPredictRequest); - /** VideoClassificationPredictionResult type */ - type?: (string|null); + /** RawPredictRequest endpoint. */ + public endpoint: string; - /** VideoClassificationPredictionResult timeSegmentStart */ - timeSegmentStart?: (google.protobuf.IDuration|null); + /** RawPredictRequest httpBody. */ + public httpBody?: (google.api.IHttpBody|null); - /** VideoClassificationPredictionResult timeSegmentEnd */ - timeSegmentEnd?: (google.protobuf.IDuration|null); + /** + * Creates a new RawPredictRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RawPredictRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRawPredictRequest): google.cloud.aiplatform.v1.RawPredictRequest; - /** VideoClassificationPredictionResult confidence */ - confidence?: (google.protobuf.IFloatValue|null); - } + /** + * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @param message RawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a VideoClassificationPredictionResult. */ - class VideoClassificationPredictionResult implements IVideoClassificationPredictionResult { + /** + * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @param message RawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new VideoClassificationPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult); + /** + * Decodes a RawPredictRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RawPredictRequest + * @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.aiplatform.v1.RawPredictRequest; - /** VideoClassificationPredictionResult id. */ - public id: string; + /** + * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RawPredictRequest + * @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.aiplatform.v1.RawPredictRequest; - /** VideoClassificationPredictionResult displayName. */ - public displayName: string; + /** + * Verifies a RawPredictRequest 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); - /** VideoClassificationPredictionResult type. */ - public type: string; + /** + * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RawPredictRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RawPredictRequest; - /** VideoClassificationPredictionResult timeSegmentStart. */ - public timeSegmentStart?: (google.protobuf.IDuration|null); + /** + * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * @param message RawPredictRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** VideoClassificationPredictionResult timeSegmentEnd. */ - public timeSegmentEnd?: (google.protobuf.IDuration|null); + /** + * Converts this RawPredictRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** VideoClassificationPredictionResult confidence. */ - public confidence?: (google.protobuf.IFloatValue|null); + /** + * Gets the default type url for RawPredictRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExplainRequest. */ + interface IExplainRequest { + + /** ExplainRequest endpoint */ + endpoint?: (string|null); + + /** ExplainRequest instances */ + instances?: (google.protobuf.IValue[]|null); + + /** ExplainRequest parameters */ + parameters?: (google.protobuf.IValue|null); + + /** ExplainRequest explanationSpecOverride */ + explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); + + /** ExplainRequest deployedModelId */ + deployedModelId?: (string|null); + } + + /** Represents an ExplainRequest. */ + class ExplainRequest implements IExplainRequest { + + /** + * Constructs a new ExplainRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExplainRequest); + + /** ExplainRequest endpoint. */ + public endpoint: string; + + /** ExplainRequest instances. */ + public instances: google.protobuf.IValue[]; + + /** ExplainRequest parameters. */ + public parameters?: (google.protobuf.IValue|null); + + /** ExplainRequest explanationSpecOverride. */ + public explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); + + /** ExplainRequest deployedModelId. */ + public deployedModelId: string; + + /** + * Creates a new ExplainRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplainRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExplainRequest): google.cloud.aiplatform.v1.ExplainRequest; + + /** + * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @param message ExplainRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @param message ExplainRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExplainRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplainRequest + * @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.aiplatform.v1.ExplainRequest; + + /** + * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplainRequest + * @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.aiplatform.v1.ExplainRequest; + + /** + * Verifies an ExplainRequest 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 an ExplainRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplainRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainRequest; + + /** + * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * @param message ExplainRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplainRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplainRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExplainResponse. */ + interface IExplainResponse { + + /** ExplainResponse explanations */ + explanations?: (google.cloud.aiplatform.v1.IExplanation[]|null); + + /** ExplainResponse deployedModelId */ + deployedModelId?: (string|null); + + /** ExplainResponse predictions */ + predictions?: (google.protobuf.IValue[]|null); + } + + /** Represents an ExplainResponse. */ + class ExplainResponse implements IExplainResponse { + + /** + * Constructs a new ExplainResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExplainResponse); + + /** ExplainResponse explanations. */ + public explanations: google.cloud.aiplatform.v1.IExplanation[]; + + /** ExplainResponse deployedModelId. */ + public deployedModelId: string; + + /** ExplainResponse predictions. */ + public predictions: google.protobuf.IValue[]; + + /** + * Creates a new ExplainResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplainResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExplainResponse): google.cloud.aiplatform.v1.ExplainResponse; + + /** + * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @param message ExplainResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @param message ExplainResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExplainResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplainResponse + * @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.aiplatform.v1.ExplainResponse; + + /** + * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplainResponse + * @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.aiplatform.v1.ExplainResponse; + + /** + * Verifies an ExplainResponse 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 an ExplainResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplainResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainResponse; + + /** + * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * @param message ExplainResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplainResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplainResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Namespace schema. */ + namespace schema { + + /** Namespace predict. */ + namespace predict { + + /** Namespace instance. */ + namespace instance { + + /** Properties of an ImageClassificationPredictionInstance. */ + interface IImageClassificationPredictionInstance { + + /** ImageClassificationPredictionInstance content */ + content?: (string|null); + + /** ImageClassificationPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents an ImageClassificationPredictionInstance. */ + class ImageClassificationPredictionInstance implements IImageClassificationPredictionInstance { /** - * Creates a new VideoClassificationPredictionResult instance using the specified properties. + * Constructs a new ImageClassificationPredictionInstance. * @param [properties] Properties to set - * @returns VideoClassificationPredictionResult instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance); + + /** ImageClassificationPredictionInstance content. */ + public content: string; + + /** ImageClassificationPredictionInstance mimeType. */ + public mimeType: string; /** - * Encodes the specified VideoClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. - * @param message VideoClassificationPredictionResult message or plain object to encode + * Creates a new ImageClassificationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageClassificationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; + + /** + * Encodes the specified ImageClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. + * @param message ImageClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VideoClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. - * @param message VideoClassificationPredictionResult message or plain object to encode + * Encodes the specified ImageClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. + * @param message ImageClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer. + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VideoClassificationPredictionResult + * @returns ImageClassificationPredictionInstance * @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.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; /** - * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer, length delimited. + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VideoClassificationPredictionResult + * @returns ImageClassificationPredictionInstance * @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.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; /** - * Verifies a VideoClassificationPredictionResult message. + * Verifies an ImageClassificationPredictionInstance 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 VideoClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * Creates an ImageClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VideoClassificationPredictionResult + * @returns ImageClassificationPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; /** - * Creates a plain object from a VideoClassificationPredictionResult message. Also converts values to other types if specified. - * @param message VideoClassificationPredictionResult + * Creates a plain object from an ImageClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message ImageClassificationPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VideoClassificationPredictionResult to JSON. + * Converts this ImageClassificationPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VideoClassificationPredictionResult + * Gets the default type url for ImageClassificationPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VideoObjectTrackingPredictionResult. */ - interface IVideoObjectTrackingPredictionResult { - - /** VideoObjectTrackingPredictionResult id */ - id?: (string|null); - - /** VideoObjectTrackingPredictionResult displayName */ - displayName?: (string|null); - - /** VideoObjectTrackingPredictionResult timeSegmentStart */ - timeSegmentStart?: (google.protobuf.IDuration|null); - - /** VideoObjectTrackingPredictionResult timeSegmentEnd */ - timeSegmentEnd?: (google.protobuf.IDuration|null); + /** Properties of an ImageObjectDetectionPredictionInstance. */ + interface IImageObjectDetectionPredictionInstance { - /** VideoObjectTrackingPredictionResult confidence */ - confidence?: (google.protobuf.IFloatValue|null); + /** ImageObjectDetectionPredictionInstance content */ + content?: (string|null); - /** VideoObjectTrackingPredictionResult frames */ - frames?: (google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]|null); + /** ImageObjectDetectionPredictionInstance mimeType */ + mimeType?: (string|null); } - /** Represents a VideoObjectTrackingPredictionResult. */ - class VideoObjectTrackingPredictionResult implements IVideoObjectTrackingPredictionResult { + /** Represents an ImageObjectDetectionPredictionInstance. */ + class ImageObjectDetectionPredictionInstance implements IImageObjectDetectionPredictionInstance { /** - * Constructs a new VideoObjectTrackingPredictionResult. + * Constructs a new ImageObjectDetectionPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult); - - /** VideoObjectTrackingPredictionResult id. */ - public id: string; - - /** VideoObjectTrackingPredictionResult displayName. */ - public displayName: string; - - /** VideoObjectTrackingPredictionResult timeSegmentStart. */ - public timeSegmentStart?: (google.protobuf.IDuration|null); - - /** VideoObjectTrackingPredictionResult timeSegmentEnd. */ - public timeSegmentEnd?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance); - /** VideoObjectTrackingPredictionResult confidence. */ - public confidence?: (google.protobuf.IFloatValue|null); + /** ImageObjectDetectionPredictionInstance content. */ + public content: string; - /** VideoObjectTrackingPredictionResult frames. */ - public frames: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]; + /** ImageObjectDetectionPredictionInstance mimeType. */ + public mimeType: string; /** - * Creates a new VideoObjectTrackingPredictionResult instance using the specified properties. + * Creates a new ImageObjectDetectionPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns VideoObjectTrackingPredictionResult instance + * @returns ImageObjectDetectionPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; /** - * Encodes the specified VideoObjectTrackingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. - * @param message VideoObjectTrackingPredictionResult message or plain object to encode + * Encodes the specified ImageObjectDetectionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @param message ImageObjectDetectionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VideoObjectTrackingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. - * @param message VideoObjectTrackingPredictionResult message or plain object to encode + * Encodes the specified ImageObjectDetectionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @param message ImageObjectDetectionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer. + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VideoObjectTrackingPredictionResult + * @returns ImageObjectDetectionPredictionInstance * @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.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; /** - * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer, length delimited. + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VideoObjectTrackingPredictionResult + * @returns ImageObjectDetectionPredictionInstance * @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.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; /** - * Verifies a VideoObjectTrackingPredictionResult message. + * Verifies an ImageObjectDetectionPredictionInstance 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 VideoObjectTrackingPredictionResult message from a plain object. Also converts values to their respective internal types. + * Creates an ImageObjectDetectionPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VideoObjectTrackingPredictionResult + * @returns ImageObjectDetectionPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; /** - * Creates a plain object from a VideoObjectTrackingPredictionResult message. Also converts values to other types if specified. - * @param message VideoObjectTrackingPredictionResult + * Creates a plain object from an ImageObjectDetectionPredictionInstance message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VideoObjectTrackingPredictionResult to JSON. + * Converts this ImageObjectDetectionPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VideoObjectTrackingPredictionResult + * Gets the default type url for ImageObjectDetectionPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace VideoObjectTrackingPredictionResult { - - /** Properties of a Frame. */ - interface IFrame { - - /** Frame timeOffset */ - timeOffset?: (google.protobuf.IDuration|null); - - /** Frame xMin */ - xMin?: (google.protobuf.IFloatValue|null); - - /** Frame xMax */ - xMax?: (google.protobuf.IFloatValue|null); - - /** Frame yMin */ - yMin?: (google.protobuf.IFloatValue|null); - - /** Frame yMax */ - yMax?: (google.protobuf.IFloatValue|null); - } - - /** Represents a Frame. */ - class Frame implements IFrame { - - /** - * Constructs a new Frame. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame); - - /** Frame timeOffset. */ - public timeOffset?: (google.protobuf.IDuration|null); - - /** Frame xMin. */ - public xMin?: (google.protobuf.IFloatValue|null); - - /** Frame xMax. */ - public xMax?: (google.protobuf.IFloatValue|null); - - /** Frame yMin. */ - public yMin?: (google.protobuf.IFloatValue|null); - - /** Frame yMax. */ - public yMax?: (google.protobuf.IFloatValue|null); - - /** - * Creates a new Frame instance using the specified properties. - * @param [properties] Properties to set - * @returns Frame instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; - - /** - * Encodes the specified Frame message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. - * @param message Frame message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Frame message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. - * @param message Frame message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Frame message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Frame - * @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.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; - - /** - * Decodes a Frame message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Frame - * @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.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; - - /** - * Verifies a Frame 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 Frame message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Frame - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; - - /** - * Creates a plain object from a Frame message. Also converts values to other types if specified. - * @param message Frame - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Frame to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Frame - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } - } - - /** Namespace trainingjob. */ - namespace trainingjob { - - /** Namespace definition. */ - namespace definition { - - /** Properties of an AutoMlImageClassification. */ - interface IAutoMlImageClassification { + /** Properties of an ImageSegmentationPredictionInstance. */ + interface IImageSegmentationPredictionInstance { - /** AutoMlImageClassification inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + /** ImageSegmentationPredictionInstance content */ + content?: (string|null); - /** AutoMlImageClassification metadata */ - metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); + /** ImageSegmentationPredictionInstance mimeType */ + mimeType?: (string|null); } - /** Represents an AutoMlImageClassification. */ - class AutoMlImageClassification implements IAutoMlImageClassification { + /** Represents an ImageSegmentationPredictionInstance. */ + class ImageSegmentationPredictionInstance implements IImageSegmentationPredictionInstance { /** - * Constructs a new AutoMlImageClassification. + * Constructs a new ImageSegmentationPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance); - /** AutoMlImageClassification inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + /** ImageSegmentationPredictionInstance content. */ + public content: string; - /** AutoMlImageClassification metadata. */ - public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); + /** ImageSegmentationPredictionInstance mimeType. */ + public mimeType: string; /** - * Creates a new AutoMlImageClassification instance using the specified properties. + * Creates a new ImageSegmentationPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageClassification instance + * @returns ImageSegmentationPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; /** - * Encodes the specified AutoMlImageClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. - * @param message AutoMlImageClassification message or plain object to encode + * Encodes the specified ImageSegmentationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. + * @param message ImageSegmentationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. - * @param message AutoMlImageClassification message or plain object to encode + * Encodes the specified ImageSegmentationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. + * @param message ImageSegmentationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageClassification message from the specified reader or buffer. + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageClassification + * @returns ImageSegmentationPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; /** - * Decodes an AutoMlImageClassification message from the specified reader or buffer, length delimited. + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageClassification + * @returns ImageSegmentationPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; /** - * Verifies an AutoMlImageClassification message. + * Verifies an ImageSegmentationPredictionInstance 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 an AutoMlImageClassification message from a plain object. Also converts values to their respective internal types. + * Creates an ImageSegmentationPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageClassification + * @returns ImageSegmentationPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; /** - * Creates a plain object from an AutoMlImageClassification message. Also converts values to other types if specified. - * @param message AutoMlImageClassification + * Creates a plain object from an ImageSegmentationPredictionInstance message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageClassification to JSON. + * Converts this ImageSegmentationPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageClassification + * Gets the default type url for ImageSegmentationPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlImageClassificationInputs. */ - interface IAutoMlImageClassificationInputs { - - /** AutoMlImageClassificationInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|null); - - /** AutoMlImageClassificationInputs baseModelId */ - baseModelId?: (string|null); - - /** AutoMlImageClassificationInputs budgetMilliNodeHours */ - budgetMilliNodeHours?: (number|Long|string|null); + /** Properties of a TextClassificationPredictionInstance. */ + interface ITextClassificationPredictionInstance { - /** AutoMlImageClassificationInputs disableEarlyStopping */ - disableEarlyStopping?: (boolean|null); + /** TextClassificationPredictionInstance content */ + content?: (string|null); - /** AutoMlImageClassificationInputs multiLabel */ - multiLabel?: (boolean|null); + /** TextClassificationPredictionInstance mimeType */ + mimeType?: (string|null); } - /** Represents an AutoMlImageClassificationInputs. */ - class AutoMlImageClassificationInputs implements IAutoMlImageClassificationInputs { + /** Represents a TextClassificationPredictionInstance. */ + class TextClassificationPredictionInstance implements ITextClassificationPredictionInstance { /** - * Constructs a new AutoMlImageClassificationInputs. + * Constructs a new TextClassificationPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs); - - /** AutoMlImageClassificationInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType); - - /** AutoMlImageClassificationInputs baseModelId. */ - public baseModelId: string; - - /** AutoMlImageClassificationInputs budgetMilliNodeHours. */ - public budgetMilliNodeHours: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance); - /** AutoMlImageClassificationInputs disableEarlyStopping. */ - public disableEarlyStopping: boolean; + /** TextClassificationPredictionInstance content. */ + public content: string; - /** AutoMlImageClassificationInputs multiLabel. */ - public multiLabel: boolean; + /** TextClassificationPredictionInstance mimeType. */ + public mimeType: string; /** - * Creates a new AutoMlImageClassificationInputs instance using the specified properties. + * Creates a new TextClassificationPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageClassificationInputs instance + * @returns TextClassificationPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; /** - * Encodes the specified AutoMlImageClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. - * @param message AutoMlImageClassificationInputs message or plain object to encode + * Encodes the specified TextClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. + * @param message TextClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. - * @param message AutoMlImageClassificationInputs message or plain object to encode + * Encodes the specified TextClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. + * @param message TextClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer. + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageClassificationInputs + * @returns TextClassificationPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; /** - * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer, length delimited. + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageClassificationInputs + * @returns TextClassificationPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; /** - * Verifies an AutoMlImageClassificationInputs message. + * Verifies a TextClassificationPredictionInstance 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 an AutoMlImageClassificationInputs message from a plain object. Also converts values to their respective internal types. + * Creates a TextClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageClassificationInputs + * @returns TextClassificationPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; /** - * Creates a plain object from an AutoMlImageClassificationInputs message. Also converts values to other types if specified. - * @param message AutoMlImageClassificationInputs + * Creates a plain object from a TextClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message TextClassificationPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageClassificationInputs to JSON. + * Converts this TextClassificationPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageClassificationInputs + * Gets the default type url for TextClassificationPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageClassificationInputs { - - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD = 1, - MOBILE_TF_LOW_LATENCY_1 = 2, - MOBILE_TF_VERSATILE_1 = 3, - MOBILE_TF_HIGH_ACCURACY_1 = 4 - } - } + /** Properties of a TextExtractionPredictionInstance. */ + interface ITextExtractionPredictionInstance { - /** Properties of an AutoMlImageClassificationMetadata. */ - interface IAutoMlImageClassificationMetadata { + /** TextExtractionPredictionInstance content */ + content?: (string|null); - /** AutoMlImageClassificationMetadata costMilliNodeHours */ - costMilliNodeHours?: (number|Long|string|null); + /** TextExtractionPredictionInstance mimeType */ + mimeType?: (string|null); - /** AutoMlImageClassificationMetadata successfulStopReason */ - successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|null); + /** TextExtractionPredictionInstance key */ + key?: (string|null); } - /** Represents an AutoMlImageClassificationMetadata. */ - class AutoMlImageClassificationMetadata implements IAutoMlImageClassificationMetadata { + /** Represents a TextExtractionPredictionInstance. */ + class TextExtractionPredictionInstance implements ITextExtractionPredictionInstance { /** - * Constructs a new AutoMlImageClassificationMetadata. + * Constructs a new TextExtractionPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance); - /** AutoMlImageClassificationMetadata costMilliNodeHours. */ - public costMilliNodeHours: (number|Long|string); + /** TextExtractionPredictionInstance content. */ + public content: string; - /** AutoMlImageClassificationMetadata successfulStopReason. */ - public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason); + /** TextExtractionPredictionInstance mimeType. */ + public mimeType: string; + + /** TextExtractionPredictionInstance key. */ + public key: string; /** - * Creates a new AutoMlImageClassificationMetadata instance using the specified properties. + * Creates a new TextExtractionPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageClassificationMetadata instance + * @returns TextExtractionPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; /** - * Encodes the specified AutoMlImageClassificationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. - * @param message AutoMlImageClassificationMetadata message or plain object to encode + * Encodes the specified TextExtractionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. + * @param message TextExtractionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageClassificationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. - * @param message AutoMlImageClassificationMetadata message or plain object to encode + * Encodes the specified TextExtractionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. + * @param message TextExtractionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer. + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageClassificationMetadata + * @returns TextExtractionPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; /** - * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer, length delimited. + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageClassificationMetadata + * @returns TextExtractionPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; /** - * Verifies an AutoMlImageClassificationMetadata message. + * Verifies a TextExtractionPredictionInstance 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 an AutoMlImageClassificationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TextExtractionPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageClassificationMetadata + * @returns TextExtractionPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; /** - * Creates a plain object from an AutoMlImageClassificationMetadata message. Also converts values to other types if specified. - * @param message AutoMlImageClassificationMetadata + * Creates a plain object from a TextExtractionPredictionInstance message. Also converts values to other types if specified. + * @param message TextExtractionPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageClassificationMetadata to JSON. + * Converts this TextExtractionPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageClassificationMetadata + * Gets the default type url for TextExtractionPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageClassificationMetadata { + /** Properties of a TextSentimentPredictionInstance. */ + interface ITextSentimentPredictionInstance { - /** SuccessfulStopReason enum. */ - enum SuccessfulStopReason { - SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, - BUDGET_REACHED = 1, - MODEL_CONVERGED = 2 - } + /** TextSentimentPredictionInstance content */ + content?: (string|null); + + /** TextSentimentPredictionInstance mimeType */ + mimeType?: (string|null); } - /** Properties of an AutoMlImageObjectDetection. */ - interface IAutoMlImageObjectDetection { - - /** AutoMlImageObjectDetection inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); - - /** AutoMlImageObjectDetection metadata */ - metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); - } - - /** Represents an AutoMlImageObjectDetection. */ - class AutoMlImageObjectDetection implements IAutoMlImageObjectDetection { + /** Represents a TextSentimentPredictionInstance. */ + class TextSentimentPredictionInstance implements ITextSentimentPredictionInstance { /** - * Constructs a new AutoMlImageObjectDetection. + * Constructs a new TextSentimentPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance); - /** AutoMlImageObjectDetection inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); + /** TextSentimentPredictionInstance content. */ + public content: string; - /** AutoMlImageObjectDetection metadata. */ - public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); + /** TextSentimentPredictionInstance mimeType. */ + public mimeType: string; /** - * Creates a new AutoMlImageObjectDetection instance using the specified properties. + * Creates a new TextSentimentPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageObjectDetection instance + * @returns TextSentimentPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; /** - * Encodes the specified AutoMlImageObjectDetection message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. - * @param message AutoMlImageObjectDetection message or plain object to encode + * Encodes the specified TextSentimentPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. + * @param message TextSentimentPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageObjectDetection message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. - * @param message AutoMlImageObjectDetection message or plain object to encode + * Encodes the specified TextSentimentPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. + * @param message TextSentimentPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer. + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageObjectDetection + * @returns TextSentimentPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; /** - * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer, length delimited. + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageObjectDetection + * @returns TextSentimentPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; /** - * Verifies an AutoMlImageObjectDetection message. + * Verifies a TextSentimentPredictionInstance 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 an AutoMlImageObjectDetection message from a plain object. Also converts values to their respective internal types. + * Creates a TextSentimentPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageObjectDetection + * @returns TextSentimentPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; /** - * Creates a plain object from an AutoMlImageObjectDetection message. Also converts values to other types if specified. - * @param message AutoMlImageObjectDetection + * Creates a plain object from a TextSentimentPredictionInstance message. Also converts values to other types if specified. + * @param message TextSentimentPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageObjectDetection to JSON. + * Converts this TextSentimentPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageObjectDetection + * Gets the default type url for TextSentimentPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlImageObjectDetectionInputs. */ - interface IAutoMlImageObjectDetectionInputs { + /** Properties of a VideoActionRecognitionPredictionInstance. */ + interface IVideoActionRecognitionPredictionInstance { - /** AutoMlImageObjectDetectionInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|null); + /** VideoActionRecognitionPredictionInstance content */ + content?: (string|null); - /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours */ - budgetMilliNodeHours?: (number|Long|string|null); + /** VideoActionRecognitionPredictionInstance mimeType */ + mimeType?: (string|null); - /** AutoMlImageObjectDetectionInputs disableEarlyStopping */ - disableEarlyStopping?: (boolean|null); + /** VideoActionRecognitionPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); + + /** VideoActionRecognitionPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); } - /** Represents an AutoMlImageObjectDetectionInputs. */ - class AutoMlImageObjectDetectionInputs implements IAutoMlImageObjectDetectionInputs { + /** Represents a VideoActionRecognitionPredictionInstance. */ + class VideoActionRecognitionPredictionInstance implements IVideoActionRecognitionPredictionInstance { /** - * Constructs a new AutoMlImageObjectDetectionInputs. + * Constructs a new VideoActionRecognitionPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance); - /** AutoMlImageObjectDetectionInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType); + /** VideoActionRecognitionPredictionInstance content. */ + public content: string; - /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours. */ - public budgetMilliNodeHours: (number|Long|string); + /** VideoActionRecognitionPredictionInstance mimeType. */ + public mimeType: string; - /** AutoMlImageObjectDetectionInputs disableEarlyStopping. */ - public disableEarlyStopping: boolean; + /** VideoActionRecognitionPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoActionRecognitionPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; /** - * Creates a new AutoMlImageObjectDetectionInputs instance using the specified properties. + * Creates a new VideoActionRecognitionPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageObjectDetectionInputs instance + * @returns VideoActionRecognitionPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; /** - * Encodes the specified AutoMlImageObjectDetectionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. - * @param message AutoMlImageObjectDetectionInputs message or plain object to encode + * Encodes the specified VideoActionRecognitionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @param message VideoActionRecognitionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageObjectDetectionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. - * @param message AutoMlImageObjectDetectionInputs message or plain object to encode + * Encodes the specified VideoActionRecognitionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @param message VideoActionRecognitionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer. + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageObjectDetectionInputs + * @returns VideoActionRecognitionPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; /** - * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer, length delimited. + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageObjectDetectionInputs + * @returns VideoActionRecognitionPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; /** - * Verifies an AutoMlImageObjectDetectionInputs message. + * Verifies a VideoActionRecognitionPredictionInstance 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 an AutoMlImageObjectDetectionInputs message from a plain object. Also converts values to their respective internal types. + * Creates a VideoActionRecognitionPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageObjectDetectionInputs + * @returns VideoActionRecognitionPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; /** - * Creates a plain object from an AutoMlImageObjectDetectionInputs message. Also converts values to other types if specified. - * @param message AutoMlImageObjectDetectionInputs + * Creates a plain object from a VideoActionRecognitionPredictionInstance message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageObjectDetectionInputs to JSON. + * Converts this VideoActionRecognitionPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageObjectDetectionInputs + * Gets the default type url for VideoActionRecognitionPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageObjectDetectionInputs { + /** Properties of a VideoClassificationPredictionInstance. */ + interface IVideoClassificationPredictionInstance { - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD_HIGH_ACCURACY_1 = 1, - CLOUD_LOW_LATENCY_1 = 2, - MOBILE_TF_LOW_LATENCY_1 = 3, - MOBILE_TF_VERSATILE_1 = 4, - MOBILE_TF_HIGH_ACCURACY_1 = 5 - } - } + /** VideoClassificationPredictionInstance content */ + content?: (string|null); - /** Properties of an AutoMlImageObjectDetectionMetadata. */ - interface IAutoMlImageObjectDetectionMetadata { + /** VideoClassificationPredictionInstance mimeType */ + mimeType?: (string|null); - /** AutoMlImageObjectDetectionMetadata costMilliNodeHours */ - costMilliNodeHours?: (number|Long|string|null); + /** VideoClassificationPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); - /** AutoMlImageObjectDetectionMetadata successfulStopReason */ - successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|null); + /** VideoClassificationPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); } - /** Represents an AutoMlImageObjectDetectionMetadata. */ - class AutoMlImageObjectDetectionMetadata implements IAutoMlImageObjectDetectionMetadata { + /** Represents a VideoClassificationPredictionInstance. */ + class VideoClassificationPredictionInstance implements IVideoClassificationPredictionInstance { /** - * Constructs a new AutoMlImageObjectDetectionMetadata. + * Constructs a new VideoClassificationPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance); - /** AutoMlImageObjectDetectionMetadata costMilliNodeHours. */ - public costMilliNodeHours: (number|Long|string); + /** VideoClassificationPredictionInstance content. */ + public content: string; - /** AutoMlImageObjectDetectionMetadata successfulStopReason. */ - public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason); + /** VideoClassificationPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoClassificationPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoClassificationPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; /** - * Creates a new AutoMlImageObjectDetectionMetadata instance using the specified properties. + * Creates a new VideoClassificationPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageObjectDetectionMetadata instance + * @returns VideoClassificationPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; /** - * Encodes the specified AutoMlImageObjectDetectionMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. - * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode + * Encodes the specified VideoClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. + * @param message VideoClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageObjectDetectionMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. - * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode + * Encodes the specified VideoClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. + * @param message VideoClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer. + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageObjectDetectionMetadata + * @returns VideoClassificationPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; /** - * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer, length delimited. + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageObjectDetectionMetadata + * @returns VideoClassificationPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; /** - * Verifies an AutoMlImageObjectDetectionMetadata message. + * Verifies a VideoClassificationPredictionInstance 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 an AutoMlImageObjectDetectionMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a VideoClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageObjectDetectionMetadata + * @returns VideoClassificationPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; /** - * Creates a plain object from an AutoMlImageObjectDetectionMetadata message. Also converts values to other types if specified. - * @param message AutoMlImageObjectDetectionMetadata + * Creates a plain object from a VideoClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageObjectDetectionMetadata to JSON. + * Converts this VideoClassificationPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageObjectDetectionMetadata + * Gets the default type url for VideoClassificationPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageObjectDetectionMetadata { + /** Properties of a VideoObjectTrackingPredictionInstance. */ + interface IVideoObjectTrackingPredictionInstance { - /** SuccessfulStopReason enum. */ - enum SuccessfulStopReason { - SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, - BUDGET_REACHED = 1, - MODEL_CONVERGED = 2 - } - } + /** VideoObjectTrackingPredictionInstance content */ + content?: (string|null); - /** Properties of an AutoMlImageSegmentation. */ - interface IAutoMlImageSegmentation { + /** VideoObjectTrackingPredictionInstance mimeType */ + mimeType?: (string|null); - /** AutoMlImageSegmentation inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + /** VideoObjectTrackingPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); - /** AutoMlImageSegmentation metadata */ - metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); + /** VideoObjectTrackingPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); } - /** Represents an AutoMlImageSegmentation. */ - class AutoMlImageSegmentation implements IAutoMlImageSegmentation { + /** Represents a VideoObjectTrackingPredictionInstance. */ + class VideoObjectTrackingPredictionInstance implements IVideoObjectTrackingPredictionInstance { /** - * Constructs a new AutoMlImageSegmentation. + * Constructs a new VideoObjectTrackingPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance); - /** AutoMlImageSegmentation inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + /** VideoObjectTrackingPredictionInstance content. */ + public content: string; - /** AutoMlImageSegmentation metadata. */ - public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); + /** VideoObjectTrackingPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoObjectTrackingPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoObjectTrackingPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; /** - * Creates a new AutoMlImageSegmentation instance using the specified properties. + * Creates a new VideoObjectTrackingPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageSegmentation instance + * @returns VideoObjectTrackingPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; /** - * Encodes the specified AutoMlImageSegmentation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. - * @param message AutoMlImageSegmentation message or plain object to encode + * Encodes the specified VideoObjectTrackingPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @param message VideoObjectTrackingPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageSegmentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. - * @param message AutoMlImageSegmentation message or plain object to encode + * Encodes the specified VideoObjectTrackingPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @param message VideoObjectTrackingPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageSegmentation message from the specified reader or buffer. + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageSegmentation + * @returns VideoObjectTrackingPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; /** - * Decodes an AutoMlImageSegmentation message from the specified reader or buffer, length delimited. + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageSegmentation + * @returns VideoObjectTrackingPredictionInstance * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; /** - * Verifies an AutoMlImageSegmentation message. + * Verifies a VideoObjectTrackingPredictionInstance 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 an AutoMlImageSegmentation message from a plain object. Also converts values to their respective internal types. + * Creates a VideoObjectTrackingPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageSegmentation + * @returns VideoObjectTrackingPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; /** - * Creates a plain object from an AutoMlImageSegmentation message. Also converts values to other types if specified. - * @param message AutoMlImageSegmentation + * Creates a plain object from a VideoObjectTrackingPredictionInstance message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageSegmentation to JSON. + * Converts this VideoObjectTrackingPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageSegmentation + * Gets the default type url for VideoObjectTrackingPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of an AutoMlImageSegmentationInputs. */ - interface IAutoMlImageSegmentationInputs { + /** Namespace params. */ + namespace params { - /** AutoMlImageSegmentationInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|null); + /** Properties of an ImageClassificationPredictionParams. */ + interface IImageClassificationPredictionParams { - /** AutoMlImageSegmentationInputs budgetMilliNodeHours */ - budgetMilliNodeHours?: (number|Long|string|null); + /** ImageClassificationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** AutoMlImageSegmentationInputs baseModelId */ - baseModelId?: (string|null); + /** ImageClassificationPredictionParams maxPredictions */ + maxPredictions?: (number|null); } - /** Represents an AutoMlImageSegmentationInputs. */ - class AutoMlImageSegmentationInputs implements IAutoMlImageSegmentationInputs { + /** Represents an ImageClassificationPredictionParams. */ + class ImageClassificationPredictionParams implements IImageClassificationPredictionParams { /** - * Constructs a new AutoMlImageSegmentationInputs. + * Constructs a new ImageClassificationPredictionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs); - - /** AutoMlImageSegmentationInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams); - /** AutoMlImageSegmentationInputs budgetMilliNodeHours. */ - public budgetMilliNodeHours: (number|Long|string); + /** ImageClassificationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; - /** AutoMlImageSegmentationInputs baseModelId. */ - public baseModelId: string; + /** ImageClassificationPredictionParams maxPredictions. */ + public maxPredictions: number; /** - * Creates a new AutoMlImageSegmentationInputs instance using the specified properties. + * Creates a new ImageClassificationPredictionParams instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageSegmentationInputs instance + * @returns ImageClassificationPredictionParams instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; /** - * Encodes the specified AutoMlImageSegmentationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. - * @param message AutoMlImageSegmentationInputs message or plain object to encode + * Encodes the specified ImageClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. + * @param message ImageClassificationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageSegmentationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. - * @param message AutoMlImageSegmentationInputs message or plain object to encode + * Encodes the specified ImageClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. + * @param message ImageClassificationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer. + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageSegmentationInputs + * @returns ImageClassificationPredictionParams * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; /** - * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer, length delimited. + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageSegmentationInputs + * @returns ImageClassificationPredictionParams * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; /** - * Verifies an AutoMlImageSegmentationInputs message. + * Verifies an ImageClassificationPredictionParams 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 an AutoMlImageSegmentationInputs message from a plain object. Also converts values to their respective internal types. + * Creates an ImageClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageSegmentationInputs + * @returns ImageClassificationPredictionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; /** - * Creates a plain object from an AutoMlImageSegmentationInputs message. Also converts values to other types if specified. - * @param message AutoMlImageSegmentationInputs + * Creates a plain object from an ImageClassificationPredictionParams message. Also converts values to other types if specified. + * @param message ImageClassificationPredictionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageSegmentationInputs to JSON. + * Converts this ImageClassificationPredictionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageSegmentationInputs + * Gets the default type url for ImageClassificationPredictionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageSegmentationInputs { - - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD_HIGH_ACCURACY_1 = 1, - CLOUD_LOW_ACCURACY_1 = 2, - MOBILE_TF_LOW_LATENCY_1 = 3 - } - } - - /** Properties of an AutoMlImageSegmentationMetadata. */ - interface IAutoMlImageSegmentationMetadata { + /** Properties of an ImageObjectDetectionPredictionParams. */ + interface IImageObjectDetectionPredictionParams { - /** AutoMlImageSegmentationMetadata costMilliNodeHours */ - costMilliNodeHours?: (number|Long|string|null); + /** ImageObjectDetectionPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** AutoMlImageSegmentationMetadata successfulStopReason */ - successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|null); + /** ImageObjectDetectionPredictionParams maxPredictions */ + maxPredictions?: (number|null); } - /** Represents an AutoMlImageSegmentationMetadata. */ - class AutoMlImageSegmentationMetadata implements IAutoMlImageSegmentationMetadata { + /** Represents an ImageObjectDetectionPredictionParams. */ + class ImageObjectDetectionPredictionParams implements IImageObjectDetectionPredictionParams { /** - * Constructs a new AutoMlImageSegmentationMetadata. + * Constructs a new ImageObjectDetectionPredictionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams); - /** AutoMlImageSegmentationMetadata costMilliNodeHours. */ - public costMilliNodeHours: (number|Long|string); + /** ImageObjectDetectionPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; - /** AutoMlImageSegmentationMetadata successfulStopReason. */ - public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason); + /** ImageObjectDetectionPredictionParams maxPredictions. */ + public maxPredictions: number; /** - * Creates a new AutoMlImageSegmentationMetadata instance using the specified properties. + * Creates a new ImageObjectDetectionPredictionParams instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageSegmentationMetadata instance + * @returns ImageObjectDetectionPredictionParams instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; /** - * Encodes the specified AutoMlImageSegmentationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. - * @param message AutoMlImageSegmentationMetadata message or plain object to encode + * Encodes the specified ImageObjectDetectionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @param message ImageObjectDetectionPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageSegmentationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. - * @param message AutoMlImageSegmentationMetadata message or plain object to encode + * Encodes the specified ImageObjectDetectionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @param message ImageObjectDetectionPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer. + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageSegmentationMetadata + * @returns ImageObjectDetectionPredictionParams * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; /** - * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer, length delimited. + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageSegmentationMetadata + * @returns ImageObjectDetectionPredictionParams * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; /** - * Verifies an AutoMlImageSegmentationMetadata message. + * Verifies an ImageObjectDetectionPredictionParams 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 an AutoMlImageSegmentationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ImageObjectDetectionPredictionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageSegmentationMetadata + * @returns ImageObjectDetectionPredictionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; /** - * Creates a plain object from an AutoMlImageSegmentationMetadata message. Also converts values to other types if specified. - * @param message AutoMlImageSegmentationMetadata + * Creates a plain object from an ImageObjectDetectionPredictionParams message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageSegmentationMetadata to JSON. + * Converts this ImageObjectDetectionPredictionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageSegmentationMetadata + * Gets the default type url for ImageObjectDetectionPredictionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageSegmentationMetadata { - - /** SuccessfulStopReason enum. */ - enum SuccessfulStopReason { - SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, - BUDGET_REACHED = 1, - MODEL_CONVERGED = 2 - } - } - - /** Properties of an AutoMlTables. */ - interface IAutoMlTables { - - /** AutoMlTables inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + /** Properties of an ImageSegmentationPredictionParams. */ + interface IImageSegmentationPredictionParams { - /** AutoMlTables metadata */ - metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); + /** ImageSegmentationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); } - /** Represents an AutoMlTables. */ - class AutoMlTables implements IAutoMlTables { + /** Represents an ImageSegmentationPredictionParams. */ + class ImageSegmentationPredictionParams implements IImageSegmentationPredictionParams { /** - * Constructs a new AutoMlTables. + * Constructs a new ImageSegmentationPredictionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables); - - /** AutoMlTables inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams); - /** AutoMlTables metadata. */ - public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); + /** ImageSegmentationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; /** - * Creates a new AutoMlTables instance using the specified properties. + * Creates a new ImageSegmentationPredictionParams instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTables instance + * @returns ImageSegmentationPredictionParams instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; /** - * Encodes the specified AutoMlTables message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. - * @param message AutoMlTables message or plain object to encode + * Encodes the specified ImageSegmentationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. + * @param message ImageSegmentationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTables message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. - * @param message AutoMlTables message or plain object to encode + * Encodes the specified ImageSegmentationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. + * @param message ImageSegmentationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTables message from the specified reader or buffer. + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTables + * @returns ImageSegmentationPredictionParams * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; /** - * Decodes an AutoMlTables message from the specified reader or buffer, length delimited. + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTables + * @returns ImageSegmentationPredictionParams * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; /** - * Verifies an AutoMlTables message. + * Verifies an ImageSegmentationPredictionParams 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 an AutoMlTables message from a plain object. Also converts values to their respective internal types. + * Creates an ImageSegmentationPredictionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTables + * @returns ImageSegmentationPredictionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; /** - * Creates a plain object from an AutoMlTables message. Also converts values to other types if specified. - * @param message AutoMlTables + * Creates a plain object from an ImageSegmentationPredictionParams message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTables to JSON. + * Converts this ImageSegmentationPredictionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTables + * Gets the default type url for ImageSegmentationPredictionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTablesInputs. */ - interface IAutoMlTablesInputs { + /** Properties of a VideoActionRecognitionPredictionParams. */ + interface IVideoActionRecognitionPredictionParams { - /** AutoMlTablesInputs optimizationObjectiveRecallValue */ - optimizationObjectiveRecallValue?: (number|null); + /** VideoActionRecognitionPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** AutoMlTablesInputs optimizationObjectivePrecisionValue */ - optimizationObjectivePrecisionValue?: (number|null); + /** VideoActionRecognitionPredictionParams maxPredictions */ + maxPredictions?: (number|null); + } - /** AutoMlTablesInputs predictionType */ - predictionType?: (string|null); + /** Represents a VideoActionRecognitionPredictionParams. */ + class VideoActionRecognitionPredictionParams implements IVideoActionRecognitionPredictionParams { - /** AutoMlTablesInputs targetColumn */ - targetColumn?: (string|null); + /** + * Constructs a new VideoActionRecognitionPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams); - /** AutoMlTablesInputs transformations */ - transformations?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]|null); + /** VideoActionRecognitionPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; - /** AutoMlTablesInputs optimizationObjective */ - optimizationObjective?: (string|null); + /** VideoActionRecognitionPredictionParams maxPredictions. */ + public maxPredictions: number; - /** AutoMlTablesInputs trainBudgetMilliNodeHours */ - trainBudgetMilliNodeHours?: (number|Long|string|null); + /** + * Creates a new VideoActionRecognitionPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoActionRecognitionPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; - /** AutoMlTablesInputs disableEarlyStopping */ - disableEarlyStopping?: (boolean|null); + /** + * Encodes the specified VideoActionRecognitionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @param message VideoActionRecognitionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutoMlTablesInputs weightColumnName */ - weightColumnName?: (string|null); + /** + * Encodes the specified VideoActionRecognitionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @param message VideoActionRecognitionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutoMlTablesInputs exportEvaluatedDataItemsConfig */ - exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoActionRecognitionPredictionParams + * @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.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; - /** AutoMlTablesInputs additionalExperiments */ - additionalExperiments?: (string[]|null); - } + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoActionRecognitionPredictionParams + * @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.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; - /** Represents an AutoMlTablesInputs. */ - class AutoMlTablesInputs implements IAutoMlTablesInputs { + /** + * Verifies a VideoActionRecognitionPredictionParams 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); /** - * Constructs a new AutoMlTablesInputs. - * @param [properties] Properties to set + * Creates a VideoActionRecognitionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoActionRecognitionPredictionParams */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs); + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; - /** AutoMlTablesInputs optimizationObjectiveRecallValue. */ - public optimizationObjectiveRecallValue?: (number|null); + /** + * Creates a plain object from a VideoActionRecognitionPredictionParams message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** AutoMlTablesInputs optimizationObjectivePrecisionValue. */ - public optimizationObjectivePrecisionValue?: (number|null); + /** + * Converts this VideoActionRecognitionPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** AutoMlTablesInputs predictionType. */ - public predictionType: string; + /** + * Gets the default type url for VideoActionRecognitionPredictionParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** AutoMlTablesInputs targetColumn. */ - public targetColumn: string; + /** Properties of a VideoClassificationPredictionParams. */ + interface IVideoClassificationPredictionParams { - /** AutoMlTablesInputs transformations. */ - public transformations: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]; + /** VideoClassificationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** AutoMlTablesInputs optimizationObjective. */ - public optimizationObjective: string; + /** VideoClassificationPredictionParams maxPredictions */ + maxPredictions?: (number|null); - /** AutoMlTablesInputs trainBudgetMilliNodeHours. */ - public trainBudgetMilliNodeHours: (number|Long|string); + /** VideoClassificationPredictionParams segmentClassification */ + segmentClassification?: (boolean|null); - /** AutoMlTablesInputs disableEarlyStopping. */ - public disableEarlyStopping: boolean; + /** VideoClassificationPredictionParams shotClassification */ + shotClassification?: (boolean|null); - /** AutoMlTablesInputs weightColumnName. */ - public weightColumnName: string; + /** VideoClassificationPredictionParams oneSecIntervalClassification */ + oneSecIntervalClassification?: (boolean|null); + } - /** AutoMlTablesInputs exportEvaluatedDataItemsConfig. */ - public exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + /** Represents a VideoClassificationPredictionParams. */ + class VideoClassificationPredictionParams implements IVideoClassificationPredictionParams { - /** AutoMlTablesInputs additionalExperiments. */ - public additionalExperiments: string[]; + /** + * Constructs a new VideoClassificationPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams); - /** AutoMlTablesInputs additionalOptimizationObjectiveConfig. */ - public additionalOptimizationObjectiveConfig?: ("optimizationObjectiveRecallValue"|"optimizationObjectivePrecisionValue"); + /** VideoClassificationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** VideoClassificationPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** VideoClassificationPredictionParams segmentClassification. */ + public segmentClassification: boolean; + + /** VideoClassificationPredictionParams shotClassification. */ + public shotClassification: boolean; + + /** VideoClassificationPredictionParams oneSecIntervalClassification. */ + public oneSecIntervalClassification: boolean; /** - * Creates a new AutoMlTablesInputs instance using the specified properties. + * Creates a new VideoClassificationPredictionParams instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTablesInputs instance + * @returns VideoClassificationPredictionParams instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; /** - * Encodes the specified AutoMlTablesInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. - * @param message AutoMlTablesInputs message or plain object to encode + * Encodes the specified VideoClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. + * @param message VideoClassificationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTablesInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. - * @param message AutoMlTablesInputs message or plain object to encode + * Encodes the specified VideoClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. + * @param message VideoClassificationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTablesInputs message from the specified reader or buffer. + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTablesInputs + * @returns VideoClassificationPredictionParams * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; /** - * Decodes an AutoMlTablesInputs message from the specified reader or buffer, length delimited. + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTablesInputs + * @returns VideoClassificationPredictionParams * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; /** - * Verifies an AutoMlTablesInputs message. + * Verifies a VideoClassificationPredictionParams 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 an AutoMlTablesInputs message from a plain object. Also converts values to their respective internal types. + * Creates a VideoClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTablesInputs + * @returns VideoClassificationPredictionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; /** - * Creates a plain object from an AutoMlTablesInputs message. Also converts values to other types if specified. - * @param message AutoMlTablesInputs + * Creates a plain object from a VideoClassificationPredictionParams message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTablesInputs to JSON. + * Converts this VideoClassificationPredictionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTablesInputs + * Gets the default type url for VideoClassificationPredictionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlTablesInputs { + /** Properties of a VideoObjectTrackingPredictionParams. */ + interface IVideoObjectTrackingPredictionParams { - /** Properties of a Transformation. */ - interface ITransformation { + /** VideoObjectTrackingPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** Transformation auto */ - auto?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); + /** VideoObjectTrackingPredictionParams maxPredictions */ + maxPredictions?: (number|null); - /** Transformation numeric */ - numeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); + /** VideoObjectTrackingPredictionParams minBoundingBoxSize */ + minBoundingBoxSize?: (number|null); + } - /** Transformation categorical */ - categorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); + /** Represents a VideoObjectTrackingPredictionParams. */ + class VideoObjectTrackingPredictionParams implements IVideoObjectTrackingPredictionParams { - /** Transformation timestamp */ - timestamp?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); + /** + * Constructs a new VideoObjectTrackingPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams); - /** Transformation text */ - text?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); + /** VideoObjectTrackingPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; - /** Transformation repeatedNumeric */ - repeatedNumeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); + /** VideoObjectTrackingPredictionParams maxPredictions. */ + public maxPredictions: number; - /** Transformation repeatedCategorical */ - repeatedCategorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); + /** VideoObjectTrackingPredictionParams minBoundingBoxSize. */ + public minBoundingBoxSize: number; - /** Transformation repeatedText */ - repeatedText?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); - } + /** + * Creates a new VideoObjectTrackingPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; - /** Represents a Transformation. */ - class Transformation implements ITransformation { + /** + * Encodes the specified VideoObjectTrackingPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @param message VideoObjectTrackingPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Transformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation); + /** + * Encodes the specified VideoObjectTrackingPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @param message VideoObjectTrackingPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** Transformation auto. */ - public auto?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoObjectTrackingPredictionParams + * @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.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; - /** Transformation numeric. */ - public numeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoObjectTrackingPredictionParams + * @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.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; - /** Transformation categorical. */ - public categorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); + /** + * Verifies a VideoObjectTrackingPredictionParams 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); - /** Transformation timestamp. */ - public timestamp?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); + /** + * Creates a VideoObjectTrackingPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoObjectTrackingPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; - /** Transformation text. */ - public text?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); + /** + * Creates a plain object from a VideoObjectTrackingPredictionParams message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Transformation repeatedNumeric. */ - public repeatedNumeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); + /** + * Converts this VideoObjectTrackingPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Transformation repeatedCategorical. */ - public repeatedCategorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); + /** + * Gets the default type url for VideoObjectTrackingPredictionParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** Transformation repeatedText. */ - public repeatedText?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); + /** Namespace prediction. */ + namespace prediction { - /** Transformation transformationDetail. */ - public transformationDetail?: ("auto"|"numeric"|"categorical"|"timestamp"|"text"|"repeatedNumeric"|"repeatedCategorical"|"repeatedText"); + /** Properties of a ClassificationPredictionResult. */ + interface IClassificationPredictionResult { - /** - * Creates a new Transformation instance using the specified properties. - * @param [properties] Properties to set - * @returns Transformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + /** ClassificationPredictionResult ids */ + ids?: ((number|Long|string)[]|null); - /** - * Encodes the specified Transformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. - * @param message Transformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** ClassificationPredictionResult displayNames */ + displayNames?: (string[]|null); - /** - * Encodes the specified Transformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. - * @param message Transformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** ClassificationPredictionResult confidences */ + confidences?: (number[]|null); + } - /** - * Decodes a Transformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + /** Represents a ClassificationPredictionResult. */ + class ClassificationPredictionResult implements IClassificationPredictionResult { - /** - * Decodes a Transformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + /** + * Constructs a new ClassificationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult); - /** - * Verifies a Transformation 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); + /** ClassificationPredictionResult ids. */ + public ids: (number|Long|string)[]; - /** - * Creates a Transformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - - /** - * Creates a plain object from a Transformation message. Also converts values to other types if specified. - * @param message Transformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ClassificationPredictionResult displayNames. */ + public displayNames: string[]; - /** - * Converts this Transformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ClassificationPredictionResult confidences. */ + public confidences: number[]; - /** - * Gets the default type url for Transformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new ClassificationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ClassificationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; - namespace Transformation { + /** + * Encodes the specified ClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. + * @param message ClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an AutoTransformation. */ - interface IAutoTransformation { + /** + * Encodes the specified ClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. + * @param message ClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutoTransformation columnName */ - columnName?: (string|null); - } + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClassificationPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; - /** Represents an AutoTransformation. */ - class AutoTransformation implements IAutoTransformation { + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClassificationPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; - /** - * Constructs a new AutoTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation); + /** + * Verifies a ClassificationPredictionResult 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); - /** AutoTransformation columnName. */ - public columnName: string; + /** + * Creates a ClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClassificationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; - /** - * Creates a new AutoTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns AutoTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + /** + * Creates a plain object from a ClassificationPredictionResult message. Also converts values to other types if specified. + * @param message ClassificationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified AutoTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. - * @param message AutoTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ClassificationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified AutoTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. - * @param message AutoTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ClassificationPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes an AutoTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutoTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + /** Properties of an ImageObjectDetectionPredictionResult. */ + interface IImageObjectDetectionPredictionResult { - /** - * Decodes an AutoTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutoTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + /** ImageObjectDetectionPredictionResult ids */ + ids?: ((number|Long|string)[]|null); - /** - * Verifies an AutoTransformation 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); + /** ImageObjectDetectionPredictionResult displayNames */ + displayNames?: (string[]|null); - /** - * Creates an AutoTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutoTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + /** ImageObjectDetectionPredictionResult confidences */ + confidences?: (number[]|null); - /** - * Creates a plain object from an AutoTransformation message. Also converts values to other types if specified. - * @param message AutoTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ImageObjectDetectionPredictionResult bboxes */ + bboxes?: (google.protobuf.IListValue[]|null); + } - /** - * Converts this AutoTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents an ImageObjectDetectionPredictionResult. */ + class ImageObjectDetectionPredictionResult implements IImageObjectDetectionPredictionResult { - /** - * Gets the default type url for AutoTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new ImageObjectDetectionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult); - /** Properties of a NumericTransformation. */ - interface INumericTransformation { + /** ImageObjectDetectionPredictionResult ids. */ + public ids: (number|Long|string)[]; - /** NumericTransformation columnName */ - columnName?: (string|null); + /** ImageObjectDetectionPredictionResult displayNames. */ + public displayNames: string[]; - /** NumericTransformation invalidValuesAllowed */ - invalidValuesAllowed?: (boolean|null); - } + /** ImageObjectDetectionPredictionResult confidences. */ + public confidences: number[]; - /** Represents a NumericTransformation. */ - class NumericTransformation implements INumericTransformation { + /** ImageObjectDetectionPredictionResult bboxes. */ + public bboxes: google.protobuf.IListValue[]; - /** - * Constructs a new NumericTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation); + /** + * Creates a new ImageObjectDetectionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageObjectDetectionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; - /** NumericTransformation columnName. */ - public columnName: string; + /** + * Encodes the specified ImageObjectDetectionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @param message ImageObjectDetectionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** NumericTransformation invalidValuesAllowed. */ - public invalidValuesAllowed: boolean; + /** + * Encodes the specified ImageObjectDetectionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @param message ImageObjectDetectionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new NumericTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns NumericTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageObjectDetectionPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; - /** - * Encodes the specified NumericTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. - * @param message NumericTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageObjectDetectionPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; - /** - * Encodes the specified NumericTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. - * @param message NumericTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies an ImageObjectDetectionPredictionResult 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); - /** - * Decodes a NumericTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NumericTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + /** + * Creates an ImageObjectDetectionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageObjectDetectionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; - /** - * Decodes a NumericTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NumericTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + /** + * Creates a plain object from an ImageObjectDetectionPredictionResult message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a NumericTransformation 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); + /** + * Converts this ImageObjectDetectionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a NumericTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NumericTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + /** + * Gets the default type url for ImageObjectDetectionPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a NumericTransformation message. Also converts values to other types if specified. - * @param message NumericTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an ImageSegmentationPredictionResult. */ + interface IImageSegmentationPredictionResult { - /** - * Converts this NumericTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ImageSegmentationPredictionResult categoryMask */ + categoryMask?: (string|null); - /** - * Gets the default type url for NumericTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ImageSegmentationPredictionResult confidenceMask */ + confidenceMask?: (string|null); + } - /** Properties of a CategoricalTransformation. */ - interface ICategoricalTransformation { + /** Represents an ImageSegmentationPredictionResult. */ + class ImageSegmentationPredictionResult implements IImageSegmentationPredictionResult { - /** CategoricalTransformation columnName */ - columnName?: (string|null); - } + /** + * Constructs a new ImageSegmentationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult); - /** Represents a CategoricalTransformation. */ - class CategoricalTransformation implements ICategoricalTransformation { + /** ImageSegmentationPredictionResult categoryMask. */ + public categoryMask: string; - /** - * Constructs a new CategoricalTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation); + /** ImageSegmentationPredictionResult confidenceMask. */ + public confidenceMask: string; - /** CategoricalTransformation columnName. */ - public columnName: string; + /** + * Creates a new ImageSegmentationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageSegmentationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; - /** - * Creates a new CategoricalTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + /** + * Encodes the specified ImageSegmentationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. + * @param message ImageSegmentationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CategoricalTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. - * @param message CategoricalTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ImageSegmentationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. + * @param message ImageSegmentationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CategoricalTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. - * @param message CategoricalTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageSegmentationPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; - /** - * Decodes a CategoricalTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + /** + * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageSegmentationPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; - /** - * Decodes a CategoricalTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + /** + * Verifies an ImageSegmentationPredictionResult 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); - /** - * Verifies a CategoricalTransformation 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 an ImageSegmentationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageSegmentationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; - /** - * Creates a CategoricalTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + /** + * Creates a plain object from an ImageSegmentationPredictionResult message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a CategoricalTransformation message. Also converts values to other types if specified. - * @param message CategoricalTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ImageSegmentationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this CategoricalTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for ImageSegmentationPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for CategoricalTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a TabularClassificationPredictionResult. */ + interface ITabularClassificationPredictionResult { - /** Properties of a TimestampTransformation. */ - interface ITimestampTransformation { + /** TabularClassificationPredictionResult classes */ + classes?: (string[]|null); - /** TimestampTransformation columnName */ - columnName?: (string|null); + /** TabularClassificationPredictionResult scores */ + scores?: (number[]|null); + } - /** TimestampTransformation timeFormat */ - timeFormat?: (string|null); + /** Represents a TabularClassificationPredictionResult. */ + class TabularClassificationPredictionResult implements ITabularClassificationPredictionResult { - /** TimestampTransformation invalidValuesAllowed */ - invalidValuesAllowed?: (boolean|null); - } + /** + * Constructs a new TabularClassificationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult); - /** Represents a TimestampTransformation. */ - class TimestampTransformation implements ITimestampTransformation { + /** TabularClassificationPredictionResult classes. */ + public classes: string[]; - /** - * Constructs a new TimestampTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation); + /** TabularClassificationPredictionResult scores. */ + public scores: number[]; - /** TimestampTransformation columnName. */ - public columnName: string; + /** + * Creates a new TabularClassificationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TabularClassificationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; - /** TimestampTransformation timeFormat. */ - public timeFormat: string; + /** + * Encodes the specified TabularClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. + * @param message TabularClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** TimestampTransformation invalidValuesAllowed. */ - public invalidValuesAllowed: boolean; + /** + * Encodes the specified TabularClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. + * @param message TabularClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new TimestampTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns TimestampTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + /** + * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabularClassificationPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; - /** - * Encodes the specified TimestampTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. - * @param message TimestampTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabularClassificationPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; - /** - * Encodes the specified TimestampTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. - * @param message TimestampTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a TabularClassificationPredictionResult 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); - /** - * Decodes a TimestampTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimestampTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + /** + * Creates a TabularClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabularClassificationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; - /** - * Decodes a TimestampTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimestampTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + /** + * Creates a plain object from a TabularClassificationPredictionResult message. Also converts values to other types if specified. + * @param message TabularClassificationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a TimestampTransformation 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); + /** + * Converts this TabularClassificationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a TimestampTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TimestampTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + /** + * Gets the default type url for TabularClassificationPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a TimestampTransformation message. Also converts values to other types if specified. - * @param message TimestampTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a TabularRegressionPredictionResult. */ + interface ITabularRegressionPredictionResult { - /** - * Converts this TimestampTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TabularRegressionPredictionResult value */ + value?: (number|null); - /** - * Gets the default type url for TimestampTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TabularRegressionPredictionResult lowerBound */ + lowerBound?: (number|null); - /** Properties of a TextTransformation. */ - interface ITextTransformation { + /** TabularRegressionPredictionResult upperBound */ + upperBound?: (number|null); + } - /** TextTransformation columnName */ - columnName?: (string|null); - } + /** Represents a TabularRegressionPredictionResult. */ + class TabularRegressionPredictionResult implements ITabularRegressionPredictionResult { - /** Represents a TextTransformation. */ - class TextTransformation implements ITextTransformation { + /** + * Constructs a new TabularRegressionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult); - /** - * Constructs a new TextTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation); + /** TabularRegressionPredictionResult value. */ + public value: number; - /** TextTransformation columnName. */ - public columnName: string; + /** TabularRegressionPredictionResult lowerBound. */ + public lowerBound: number; - /** - * Creates a new TextTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns TextTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + /** TabularRegressionPredictionResult upperBound. */ + public upperBound: number; - /** - * Encodes the specified TextTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. - * @param message TextTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new TabularRegressionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TabularRegressionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; - /** - * Encodes the specified TextTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. - * @param message TextTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TabularRegressionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. + * @param message TabularRegressionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + /** + * Encodes the specified TabularRegressionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. + * @param message TabularRegressionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + /** + * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabularRegressionPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; - /** - * Verifies a TextTransformation 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); + /** + * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabularRegressionPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; - /** - * Creates a TextTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + /** + * Verifies a TabularRegressionPredictionResult 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 plain object from a TextTransformation message. Also converts values to other types if specified. - * @param message TextTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a TabularRegressionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabularRegressionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; - /** - * Converts this TextTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a TabularRegressionPredictionResult message. Also converts values to other types if specified. + * @param message TabularRegressionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for TextTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this TabularRegressionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a NumericArrayTransformation. */ - interface INumericArrayTransformation { + /** + * Gets the default type url for TabularRegressionPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NumericArrayTransformation columnName */ - columnName?: (string|null); + /** Properties of a TextExtractionPredictionResult. */ + interface ITextExtractionPredictionResult { - /** NumericArrayTransformation invalidValuesAllowed */ - invalidValuesAllowed?: (boolean|null); - } + /** TextExtractionPredictionResult ids */ + ids?: ((number|Long|string)[]|null); - /** Represents a NumericArrayTransformation. */ - class NumericArrayTransformation implements INumericArrayTransformation { + /** TextExtractionPredictionResult displayNames */ + displayNames?: (string[]|null); - /** - * Constructs a new NumericArrayTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation); + /** TextExtractionPredictionResult textSegmentStartOffsets */ + textSegmentStartOffsets?: ((number|Long|string)[]|null); - /** NumericArrayTransformation columnName. */ - public columnName: string; + /** TextExtractionPredictionResult textSegmentEndOffsets */ + textSegmentEndOffsets?: ((number|Long|string)[]|null); - /** NumericArrayTransformation invalidValuesAllowed. */ - public invalidValuesAllowed: boolean; + /** TextExtractionPredictionResult confidences */ + confidences?: (number[]|null); + } - /** - * Creates a new NumericArrayTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns NumericArrayTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + /** Represents a TextExtractionPredictionResult. */ + class TextExtractionPredictionResult implements ITextExtractionPredictionResult { - /** - * Encodes the specified NumericArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. - * @param message NumericArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new TextExtractionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult); - /** - * Encodes the specified NumericArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. - * @param message NumericArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** TextExtractionPredictionResult ids. */ + public ids: (number|Long|string)[]; - /** - * Decodes a NumericArrayTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NumericArrayTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + /** TextExtractionPredictionResult displayNames. */ + public displayNames: string[]; - /** - * Decodes a NumericArrayTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NumericArrayTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + /** TextExtractionPredictionResult textSegmentStartOffsets. */ + public textSegmentStartOffsets: (number|Long|string)[]; - /** - * Verifies a NumericArrayTransformation 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); + /** TextExtractionPredictionResult textSegmentEndOffsets. */ + public textSegmentEndOffsets: (number|Long|string)[]; - /** - * Creates a NumericArrayTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NumericArrayTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + /** TextExtractionPredictionResult confidences. */ + public confidences: number[]; - /** - * Creates a plain object from a NumericArrayTransformation message. Also converts values to other types if specified. - * @param message NumericArrayTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new TextExtractionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TextExtractionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; - /** - * Converts this NumericArrayTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified TextExtractionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. + * @param message TextExtractionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for NumericArrayTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified TextExtractionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. + * @param message TextExtractionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a CategoricalArrayTransformation. */ - interface ICategoricalArrayTransformation { + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextExtractionPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; - /** CategoricalArrayTransformation columnName */ - columnName?: (string|null); - } - - /** Represents a CategoricalArrayTransformation. */ - class CategoricalArrayTransformation implements ICategoricalArrayTransformation { - - /** - * Constructs a new CategoricalArrayTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation); - - /** CategoricalArrayTransformation columnName. */ - public columnName: string; - - /** - * Creates a new CategoricalArrayTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalArrayTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - - /** - * Encodes the specified CategoricalArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. - * @param message CategoricalArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CategoricalArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. - * @param message CategoricalArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CategoricalArrayTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalArrayTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - - /** - * Decodes a CategoricalArrayTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalArrayTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - - /** - * Verifies a CategoricalArrayTransformation 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 CategoricalArrayTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalArrayTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - - /** - * Creates a plain object from a CategoricalArrayTransformation message. Also converts values to other types if specified. - * @param message CategoricalArrayTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CategoricalArrayTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CategoricalArrayTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TextArrayTransformation. */ - interface ITextArrayTransformation { - - /** TextArrayTransformation columnName */ - columnName?: (string|null); - } - - /** Represents a TextArrayTransformation. */ - class TextArrayTransformation implements ITextArrayTransformation { - - /** - * Constructs a new TextArrayTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation); - - /** TextArrayTransformation columnName. */ - public columnName: string; - - /** - * Creates a new TextArrayTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns TextArrayTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - - /** - * Encodes the specified TextArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. - * @param message TextArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TextArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. - * @param message TextArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TextArrayTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextArrayTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - - /** - * Decodes a TextArrayTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextArrayTransformation - * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextExtractionPredictionResult + * @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.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; - /** - * Verifies a TextArrayTransformation 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); + /** + * Verifies a TextExtractionPredictionResult 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 TextArrayTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextArrayTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; + /** + * Creates a TextExtractionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextExtractionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; - /** - * Creates a plain object from a TextArrayTransformation message. Also converts values to other types if specified. - * @param message TextArrayTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a TextExtractionPredictionResult message. Also converts values to other types if specified. + * @param message TextExtractionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TextArrayTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this TextExtractionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TextArrayTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Gets the default type url for TextExtractionPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTablesMetadata. */ - interface IAutoMlTablesMetadata { + /** Properties of a TextSentimentPredictionResult. */ + interface ITextSentimentPredictionResult { - /** AutoMlTablesMetadata trainCostMilliNodeHours */ - trainCostMilliNodeHours?: (number|Long|string|null); + /** TextSentimentPredictionResult sentiment */ + sentiment?: (number|null); } - /** Represents an AutoMlTablesMetadata. */ - class AutoMlTablesMetadata implements IAutoMlTablesMetadata { + /** Represents a TextSentimentPredictionResult. */ + class TextSentimentPredictionResult implements ITextSentimentPredictionResult { /** - * Constructs a new AutoMlTablesMetadata. + * Constructs a new TextSentimentPredictionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult); - /** AutoMlTablesMetadata trainCostMilliNodeHours. */ - public trainCostMilliNodeHours: (number|Long|string); + /** TextSentimentPredictionResult sentiment. */ + public sentiment: number; /** - * Creates a new AutoMlTablesMetadata instance using the specified properties. + * Creates a new TextSentimentPredictionResult instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTablesMetadata instance + * @returns TextSentimentPredictionResult instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; /** - * Encodes the specified AutoMlTablesMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. - * @param message AutoMlTablesMetadata message or plain object to encode + * Encodes the specified TextSentimentPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. + * @param message TextSentimentPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTablesMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. - * @param message AutoMlTablesMetadata message or plain object to encode + * Encodes the specified TextSentimentPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. + * @param message TextSentimentPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTablesMetadata message from the specified reader or buffer. + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTablesMetadata + * @returns TextSentimentPredictionResult * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; /** - * Decodes an AutoMlTablesMetadata message from the specified reader or buffer, length delimited. + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTablesMetadata + * @returns TextSentimentPredictionResult * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; /** - * Verifies an AutoMlTablesMetadata message. + * Verifies a TextSentimentPredictionResult 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 an AutoMlTablesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TextSentimentPredictionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTablesMetadata + * @returns TextSentimentPredictionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; /** - * Creates a plain object from an AutoMlTablesMetadata message. Also converts values to other types if specified. - * @param message AutoMlTablesMetadata + * Creates a plain object from a TextSentimentPredictionResult message. Also converts values to other types if specified. + * @param message TextSentimentPredictionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTablesMetadata to JSON. + * Converts this TextSentimentPredictionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTablesMetadata + * Gets the default type url for TextSentimentPredictionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportEvaluatedDataItemsConfig. */ - interface IExportEvaluatedDataItemsConfig { + /** Properties of a VideoActionRecognitionPredictionResult. */ + interface IVideoActionRecognitionPredictionResult { - /** ExportEvaluatedDataItemsConfig destinationBigqueryUri */ - destinationBigqueryUri?: (string|null); + /** VideoActionRecognitionPredictionResult id */ + id?: (string|null); - /** ExportEvaluatedDataItemsConfig overrideExistingTable */ - overrideExistingTable?: (boolean|null); + /** VideoActionRecognitionPredictionResult displayName */ + displayName?: (string|null); + + /** VideoActionRecognitionPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); } - /** Represents an ExportEvaluatedDataItemsConfig. */ - class ExportEvaluatedDataItemsConfig implements IExportEvaluatedDataItemsConfig { + /** Represents a VideoActionRecognitionPredictionResult. */ + class VideoActionRecognitionPredictionResult implements IVideoActionRecognitionPredictionResult { /** - * Constructs a new ExportEvaluatedDataItemsConfig. + * Constructs a new VideoActionRecognitionPredictionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult); - /** ExportEvaluatedDataItemsConfig destinationBigqueryUri. */ - public destinationBigqueryUri: string; + /** VideoActionRecognitionPredictionResult id. */ + public id: string; - /** ExportEvaluatedDataItemsConfig overrideExistingTable. */ - public overrideExistingTable: boolean; + /** VideoActionRecognitionPredictionResult displayName. */ + public displayName: string; + + /** VideoActionRecognitionPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); /** - * Creates a new ExportEvaluatedDataItemsConfig instance using the specified properties. + * Creates a new VideoActionRecognitionPredictionResult instance using the specified properties. * @param [properties] Properties to set - * @returns ExportEvaluatedDataItemsConfig instance + * @returns VideoActionRecognitionPredictionResult instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig): google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; /** - * Encodes the specified ExportEvaluatedDataItemsConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. - * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * Encodes the specified VideoActionRecognitionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. + * @param message VideoActionRecognitionPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportEvaluatedDataItemsConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. - * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * Encodes the specified VideoActionRecognitionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. + * @param message VideoActionRecognitionPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer. + * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportEvaluatedDataItemsConfig + * @returns VideoActionRecognitionPredictionResult * @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.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; /** - * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer, length delimited. + * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportEvaluatedDataItemsConfig + * @returns VideoActionRecognitionPredictionResult * @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.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; /** - * Verifies an ExportEvaluatedDataItemsConfig message. + * Verifies a VideoActionRecognitionPredictionResult 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 an ExportEvaluatedDataItemsConfig message from a plain object. Also converts values to their respective internal types. + * Creates a VideoActionRecognitionPredictionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportEvaluatedDataItemsConfig + * @returns VideoActionRecognitionPredictionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; /** - * Creates a plain object from an ExportEvaluatedDataItemsConfig message. Also converts values to other types if specified. - * @param message ExportEvaluatedDataItemsConfig + * Creates a plain object from a VideoActionRecognitionPredictionResult message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportEvaluatedDataItemsConfig to JSON. + * Converts this VideoActionRecognitionPredictionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportEvaluatedDataItemsConfig + * Gets the default type url for VideoActionRecognitionPredictionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextClassification. */ - interface IAutoMlTextClassification { + /** Properties of a VideoClassificationPredictionResult. */ + interface IVideoClassificationPredictionResult { - /** AutoMlTextClassification inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); + /** VideoClassificationPredictionResult id */ + id?: (string|null); + + /** VideoClassificationPredictionResult displayName */ + displayName?: (string|null); + + /** VideoClassificationPredictionResult type */ + type?: (string|null); + + /** VideoClassificationPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); } - /** Represents an AutoMlTextClassification. */ - class AutoMlTextClassification implements IAutoMlTextClassification { + /** Represents a VideoClassificationPredictionResult. */ + class VideoClassificationPredictionResult implements IVideoClassificationPredictionResult { /** - * Constructs a new AutoMlTextClassification. + * Constructs a new VideoClassificationPredictionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult); - /** AutoMlTextClassification inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); + /** VideoClassificationPredictionResult id. */ + public id: string; + + /** VideoClassificationPredictionResult displayName. */ + public displayName: string; + + /** VideoClassificationPredictionResult type. */ + public type: string; + + /** VideoClassificationPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); /** - * Creates a new AutoMlTextClassification instance using the specified properties. + * Creates a new VideoClassificationPredictionResult instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextClassification instance + * @returns VideoClassificationPredictionResult instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; /** - * Encodes the specified AutoMlTextClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. - * @param message AutoMlTextClassification message or plain object to encode + * Encodes the specified VideoClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. + * @param message VideoClassificationPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. - * @param message AutoMlTextClassification message or plain object to encode + * Encodes the specified VideoClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. + * @param message VideoClassificationPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextClassification message from the specified reader or buffer. + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextClassification + * @returns VideoClassificationPredictionResult * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; /** - * Decodes an AutoMlTextClassification message from the specified reader or buffer, length delimited. + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextClassification + * @returns VideoClassificationPredictionResult * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; /** - * Verifies an AutoMlTextClassification message. + * Verifies a VideoClassificationPredictionResult 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 an AutoMlTextClassification message from a plain object. Also converts values to their respective internal types. + * Creates a VideoClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextClassification + * @returns VideoClassificationPredictionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; /** - * Creates a plain object from an AutoMlTextClassification message. Also converts values to other types if specified. - * @param message AutoMlTextClassification + * Creates a plain object from a VideoClassificationPredictionResult message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextClassification to JSON. + * Converts this VideoClassificationPredictionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextClassification + * Gets the default type url for VideoClassificationPredictionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextClassificationInputs. */ - interface IAutoMlTextClassificationInputs { + /** Properties of a VideoObjectTrackingPredictionResult. */ + interface IVideoObjectTrackingPredictionResult { - /** AutoMlTextClassificationInputs multiLabel */ - multiLabel?: (boolean|null); - } + /** VideoObjectTrackingPredictionResult id */ + id?: (string|null); - /** Represents an AutoMlTextClassificationInputs. */ - class AutoMlTextClassificationInputs implements IAutoMlTextClassificationInputs { + /** VideoObjectTrackingPredictionResult displayName */ + displayName?: (string|null); - /** - * Constructs a new AutoMlTextClassificationInputs. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs); + /** VideoObjectTrackingPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); - /** AutoMlTextClassificationInputs multiLabel. */ - public multiLabel: boolean; + /** VideoObjectTrackingPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); - /** - * Creates a new AutoMlTextClassificationInputs instance using the specified properties. - * @param [properties] Properties to set - * @returns AutoMlTextClassificationInputs instance + /** VideoObjectTrackingPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); + + /** VideoObjectTrackingPredictionResult frames */ + frames?: (google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]|null); + } + + /** Represents a VideoObjectTrackingPredictionResult. */ + class VideoObjectTrackingPredictionResult implements IVideoObjectTrackingPredictionResult { + + /** + * Constructs a new VideoObjectTrackingPredictionResult. + * @param [properties] Properties to set */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult); + + /** VideoObjectTrackingPredictionResult id. */ + public id: string; + + /** VideoObjectTrackingPredictionResult displayName. */ + public displayName: string; + + /** VideoObjectTrackingPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); + + /** VideoObjectTrackingPredictionResult frames. */ + public frames: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]; /** - * Encodes the specified AutoMlTextClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. - * @param message AutoMlTextClassificationInputs message or plain object to encode + * Creates a new VideoObjectTrackingPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @param message VideoObjectTrackingPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. - * @param message AutoMlTextClassificationInputs message or plain object to encode + * Encodes the specified VideoObjectTrackingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @param message VideoObjectTrackingPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer. + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextClassificationInputs + * @returns VideoObjectTrackingPredictionResult * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; /** - * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer, length delimited. + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextClassificationInputs + * @returns VideoObjectTrackingPredictionResult * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; /** - * Verifies an AutoMlTextClassificationInputs message. + * Verifies a VideoObjectTrackingPredictionResult 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 an AutoMlTextClassificationInputs message from a plain object. Also converts values to their respective internal types. + * Creates a VideoObjectTrackingPredictionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextClassificationInputs + * @returns VideoObjectTrackingPredictionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; /** - * Creates a plain object from an AutoMlTextClassificationInputs message. Also converts values to other types if specified. - * @param message AutoMlTextClassificationInputs + * Creates a plain object from a VideoObjectTrackingPredictionResult message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextClassificationInputs to JSON. + * Converts this VideoObjectTrackingPredictionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextClassificationInputs + * Gets the default type url for VideoObjectTrackingPredictionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextExtraction. */ - interface IAutoMlTextExtraction { + namespace VideoObjectTrackingPredictionResult { - /** AutoMlTextExtraction inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); + /** Properties of a Frame. */ + interface IFrame { + + /** Frame timeOffset */ + timeOffset?: (google.protobuf.IDuration|null); + + /** Frame xMin */ + xMin?: (google.protobuf.IFloatValue|null); + + /** Frame xMax */ + xMax?: (google.protobuf.IFloatValue|null); + + /** Frame yMin */ + yMin?: (google.protobuf.IFloatValue|null); + + /** Frame yMax */ + yMax?: (google.protobuf.IFloatValue|null); + } + + /** Represents a Frame. */ + class Frame implements IFrame { + + /** + * Constructs a new Frame. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame); + + /** Frame timeOffset. */ + public timeOffset?: (google.protobuf.IDuration|null); + + /** Frame xMin. */ + public xMin?: (google.protobuf.IFloatValue|null); + + /** Frame xMax. */ + public xMax?: (google.protobuf.IFloatValue|null); + + /** Frame yMin. */ + public yMin?: (google.protobuf.IFloatValue|null); + + /** Frame yMax. */ + public yMax?: (google.protobuf.IFloatValue|null); + + /** + * Creates a new Frame instance using the specified properties. + * @param [properties] Properties to set + * @returns Frame instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Encodes the specified Frame message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @param message Frame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Frame message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @param message Frame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Frame message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Frame + * @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.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Decodes a Frame message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Frame + * @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.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Verifies a Frame 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 Frame message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Frame + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Creates a plain object from a Frame message. Also converts values to other types if specified. + * @param message Frame + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Frame to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Frame + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } + } + } - /** Represents an AutoMlTextExtraction. */ - class AutoMlTextExtraction implements IAutoMlTextExtraction { + /** Namespace trainingjob. */ + namespace trainingjob { + + /** Namespace definition. */ + namespace definition { + + /** Properties of an AutoMlImageClassification. */ + interface IAutoMlImageClassification { + + /** AutoMlImageClassification inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + + /** AutoMlImageClassification metadata */ + metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); + } + + /** Represents an AutoMlImageClassification. */ + class AutoMlImageClassification implements IAutoMlImageClassification { /** - * Constructs a new AutoMlTextExtraction. + * Constructs a new AutoMlImageClassification. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification); - /** AutoMlTextExtraction inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); + /** AutoMlImageClassification inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + + /** AutoMlImageClassification metadata. */ + public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); /** - * Creates a new AutoMlTextExtraction instance using the specified properties. + * Creates a new AutoMlImageClassification instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextExtraction instance + * @returns AutoMlImageClassification instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; /** - * Encodes the specified AutoMlTextExtraction message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. - * @param message AutoMlTextExtraction message or plain object to encode + * Encodes the specified AutoMlImageClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. + * @param message AutoMlImageClassification message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextExtraction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. - * @param message AutoMlTextExtraction message or plain object to encode + * Encodes the specified AutoMlImageClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. + * @param message AutoMlImageClassification message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextExtraction message from the specified reader or buffer. + * Decodes an AutoMlImageClassification message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextExtraction + * @returns AutoMlImageClassification * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; /** - * Decodes an AutoMlTextExtraction message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageClassification message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextExtraction + * @returns AutoMlImageClassification * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; /** - * Verifies an AutoMlTextExtraction message. + * Verifies an AutoMlImageClassification 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 an AutoMlTextExtraction message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageClassification message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextExtraction + * @returns AutoMlImageClassification */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; /** - * Creates a plain object from an AutoMlTextExtraction message. Also converts values to other types if specified. - * @param message AutoMlTextExtraction + * Creates a plain object from an AutoMlImageClassification message. Also converts values to other types if specified. + * @param message AutoMlImageClassification * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextExtraction to JSON. + * Converts this AutoMlImageClassification to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextExtraction + * Gets the default type url for AutoMlImageClassification * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextExtractionInputs. */ - interface IAutoMlTextExtractionInputs { + /** Properties of an AutoMlImageClassificationInputs. */ + interface IAutoMlImageClassificationInputs { + + /** AutoMlImageClassificationInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|null); + + /** AutoMlImageClassificationInputs baseModelId */ + baseModelId?: (string|null); + + /** AutoMlImageClassificationInputs budgetMilliNodeHours */ + budgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageClassificationInputs disableEarlyStopping */ + disableEarlyStopping?: (boolean|null); + + /** AutoMlImageClassificationInputs multiLabel */ + multiLabel?: (boolean|null); } - /** Represents an AutoMlTextExtractionInputs. */ - class AutoMlTextExtractionInputs implements IAutoMlTextExtractionInputs { + /** Represents an AutoMlImageClassificationInputs. */ + class AutoMlImageClassificationInputs implements IAutoMlImageClassificationInputs { /** - * Constructs a new AutoMlTextExtractionInputs. + * Constructs a new AutoMlImageClassificationInputs. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs); + + /** AutoMlImageClassificationInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType); + + /** AutoMlImageClassificationInputs baseModelId. */ + public baseModelId: string; + + /** AutoMlImageClassificationInputs budgetMilliNodeHours. */ + public budgetMilliNodeHours: (number|Long|string); + + /** AutoMlImageClassificationInputs disableEarlyStopping. */ + public disableEarlyStopping: boolean; + + /** AutoMlImageClassificationInputs multiLabel. */ + public multiLabel: boolean; /** - * Creates a new AutoMlTextExtractionInputs instance using the specified properties. + * Creates a new AutoMlImageClassificationInputs instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextExtractionInputs instance + * @returns AutoMlImageClassificationInputs instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; /** - * Encodes the specified AutoMlTextExtractionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. - * @param message AutoMlTextExtractionInputs message or plain object to encode + * Encodes the specified AutoMlImageClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. + * @param message AutoMlImageClassificationInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextExtractionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. - * @param message AutoMlTextExtractionInputs message or plain object to encode + * Encodes the specified AutoMlImageClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. + * @param message AutoMlImageClassificationInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer. + * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextExtractionInputs + * @returns AutoMlImageClassificationInputs * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; /** - * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextExtractionInputs + * @returns AutoMlImageClassificationInputs * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; /** - * Verifies an AutoMlTextExtractionInputs message. + * Verifies an AutoMlImageClassificationInputs 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 an AutoMlTextExtractionInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageClassificationInputs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextExtractionInputs + * @returns AutoMlImageClassificationInputs */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; /** - * Creates a plain object from an AutoMlTextExtractionInputs message. Also converts values to other types if specified. - * @param message AutoMlTextExtractionInputs + * Creates a plain object from an AutoMlImageClassificationInputs message. Also converts values to other types if specified. + * @param message AutoMlImageClassificationInputs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextExtractionInputs to JSON. + * Converts this AutoMlImageClassificationInputs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextExtractionInputs + * Gets the default type url for AutoMlImageClassificationInputs * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextSentiment. */ - interface IAutoMlTextSentiment { + namespace AutoMlImageClassificationInputs { - /** AutoMlTextSentiment inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_TF_LOW_LATENCY_1 = 2, + MOBILE_TF_VERSATILE_1 = 3, + MOBILE_TF_HIGH_ACCURACY_1 = 4 + } } - /** Represents an AutoMlTextSentiment. */ - class AutoMlTextSentiment implements IAutoMlTextSentiment { + /** Properties of an AutoMlImageClassificationMetadata. */ + interface IAutoMlImageClassificationMetadata { + + /** AutoMlImageClassificationMetadata costMilliNodeHours */ + costMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageClassificationMetadata successfulStopReason */ + successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|null); + } + + /** Represents an AutoMlImageClassificationMetadata. */ + class AutoMlImageClassificationMetadata implements IAutoMlImageClassificationMetadata { /** - * Constructs a new AutoMlTextSentiment. + * Constructs a new AutoMlImageClassificationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata); - /** AutoMlTextSentiment inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + /** AutoMlImageClassificationMetadata costMilliNodeHours. */ + public costMilliNodeHours: (number|Long|string); + + /** AutoMlImageClassificationMetadata successfulStopReason. */ + public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason); /** - * Creates a new AutoMlTextSentiment instance using the specified properties. + * Creates a new AutoMlImageClassificationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextSentiment instance + * @returns AutoMlImageClassificationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; /** - * Encodes the specified AutoMlTextSentiment message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. - * @param message AutoMlTextSentiment message or plain object to encode + * Encodes the specified AutoMlImageClassificationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. + * @param message AutoMlImageClassificationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextSentiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. - * @param message AutoMlTextSentiment message or plain object to encode + * Encodes the specified AutoMlImageClassificationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. + * @param message AutoMlImageClassificationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextSentiment message from the specified reader or buffer. + * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextSentiment + * @returns AutoMlImageClassificationMetadata * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; /** - * Decodes an AutoMlTextSentiment message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextSentiment + * @returns AutoMlImageClassificationMetadata * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; /** - * Verifies an AutoMlTextSentiment message. + * Verifies an AutoMlImageClassificationMetadata 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 an AutoMlTextSentiment message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageClassificationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextSentiment + * @returns AutoMlImageClassificationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; /** - * Creates a plain object from an AutoMlTextSentiment message. Also converts values to other types if specified. - * @param message AutoMlTextSentiment + * Creates a plain object from an AutoMlImageClassificationMetadata message. Also converts values to other types if specified. + * @param message AutoMlImageClassificationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextSentiment to JSON. + * Converts this AutoMlImageClassificationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextSentiment + * Gets the default type url for AutoMlImageClassificationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextSentimentInputs. */ - interface IAutoMlTextSentimentInputs { + namespace AutoMlImageClassificationMetadata { - /** AutoMlTextSentimentInputs sentimentMax */ - sentimentMax?: (number|null); + /** SuccessfulStopReason enum. */ + enum SuccessfulStopReason { + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, + BUDGET_REACHED = 1, + MODEL_CONVERGED = 2 + } } - /** Represents an AutoMlTextSentimentInputs. */ - class AutoMlTextSentimentInputs implements IAutoMlTextSentimentInputs { + /** Properties of an AutoMlImageObjectDetection. */ + interface IAutoMlImageObjectDetection { + + /** AutoMlImageObjectDetection inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); + + /** AutoMlImageObjectDetection metadata */ + metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); + } + + /** Represents an AutoMlImageObjectDetection. */ + class AutoMlImageObjectDetection implements IAutoMlImageObjectDetection { /** - * Constructs a new AutoMlTextSentimentInputs. + * Constructs a new AutoMlImageObjectDetection. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection); - /** AutoMlTextSentimentInputs sentimentMax. */ - public sentimentMax: number; + /** AutoMlImageObjectDetection inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); + + /** AutoMlImageObjectDetection metadata. */ + public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); /** - * Creates a new AutoMlTextSentimentInputs instance using the specified properties. + * Creates a new AutoMlImageObjectDetection instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextSentimentInputs instance + * @returns AutoMlImageObjectDetection instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; /** - * Encodes the specified AutoMlTextSentimentInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. - * @param message AutoMlTextSentimentInputs message or plain object to encode + * Encodes the specified AutoMlImageObjectDetection message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. + * @param message AutoMlImageObjectDetection message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextSentimentInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. - * @param message AutoMlTextSentimentInputs message or plain object to encode + * Encodes the specified AutoMlImageObjectDetection message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. + * @param message AutoMlImageObjectDetection message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer. + * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextSentimentInputs + * @returns AutoMlImageObjectDetection * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; /** - * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextSentimentInputs + * @returns AutoMlImageObjectDetection * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; /** - * Verifies an AutoMlTextSentimentInputs message. + * Verifies an AutoMlImageObjectDetection 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 an AutoMlTextSentimentInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageObjectDetection message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextSentimentInputs + * @returns AutoMlImageObjectDetection */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; /** - * Creates a plain object from an AutoMlTextSentimentInputs message. Also converts values to other types if specified. - * @param message AutoMlTextSentimentInputs + * Creates a plain object from an AutoMlImageObjectDetection message. Also converts values to other types if specified. + * @param message AutoMlImageObjectDetection * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextSentimentInputs to JSON. + * Converts this AutoMlImageObjectDetection to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextSentimentInputs + * Gets the default type url for AutoMlImageObjectDetection * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlVideoActionRecognition. */ - interface IAutoMlVideoActionRecognition { + /** Properties of an AutoMlImageObjectDetectionInputs. */ + interface IAutoMlImageObjectDetectionInputs { - /** AutoMlVideoActionRecognition inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + /** AutoMlImageObjectDetectionInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|null); + + /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours */ + budgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageObjectDetectionInputs disableEarlyStopping */ + disableEarlyStopping?: (boolean|null); } - /** Represents an AutoMlVideoActionRecognition. */ - class AutoMlVideoActionRecognition implements IAutoMlVideoActionRecognition { + /** Represents an AutoMlImageObjectDetectionInputs. */ + class AutoMlImageObjectDetectionInputs implements IAutoMlImageObjectDetectionInputs { /** - * Constructs a new AutoMlVideoActionRecognition. + * Constructs a new AutoMlImageObjectDetectionInputs. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs); - /** AutoMlVideoActionRecognition inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + /** AutoMlImageObjectDetectionInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType); + + /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours. */ + public budgetMilliNodeHours: (number|Long|string); + + /** AutoMlImageObjectDetectionInputs disableEarlyStopping. */ + public disableEarlyStopping: boolean; /** - * Creates a new AutoMlVideoActionRecognition instance using the specified properties. + * Creates a new AutoMlImageObjectDetectionInputs instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoActionRecognition instance + * @returns AutoMlImageObjectDetectionInputs instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; /** - * Encodes the specified AutoMlVideoActionRecognition message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. - * @param message AutoMlVideoActionRecognition message or plain object to encode + * Encodes the specified AutoMlImageObjectDetectionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. + * @param message AutoMlImageObjectDetectionInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoActionRecognition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. - * @param message AutoMlVideoActionRecognition message or plain object to encode + * Encodes the specified AutoMlImageObjectDetectionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. + * @param message AutoMlImageObjectDetectionInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer. + * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoActionRecognition + * @returns AutoMlImageObjectDetectionInputs * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; /** - * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoActionRecognition + * @returns AutoMlImageObjectDetectionInputs * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; /** - * Verifies an AutoMlVideoActionRecognition message. + * Verifies an AutoMlImageObjectDetectionInputs 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 an AutoMlVideoActionRecognition message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageObjectDetectionInputs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoActionRecognition + * @returns AutoMlImageObjectDetectionInputs */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; /** - * Creates a plain object from an AutoMlVideoActionRecognition message. Also converts values to other types if specified. - * @param message AutoMlVideoActionRecognition + * Creates a plain object from an AutoMlImageObjectDetectionInputs message. Also converts values to other types if specified. + * @param message AutoMlImageObjectDetectionInputs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoActionRecognition to JSON. + * Converts this AutoMlImageObjectDetectionInputs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoActionRecognition + * Gets the default type url for AutoMlImageObjectDetectionInputs * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlVideoActionRecognitionInputs. */ - interface IAutoMlVideoActionRecognitionInputs { + namespace AutoMlImageObjectDetectionInputs { - /** AutoMlVideoActionRecognitionInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|null); + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD_HIGH_ACCURACY_1 = 1, + CLOUD_LOW_LATENCY_1 = 2, + MOBILE_TF_LOW_LATENCY_1 = 3, + MOBILE_TF_VERSATILE_1 = 4, + MOBILE_TF_HIGH_ACCURACY_1 = 5 + } } - /** Represents an AutoMlVideoActionRecognitionInputs. */ - class AutoMlVideoActionRecognitionInputs implements IAutoMlVideoActionRecognitionInputs { + /** Properties of an AutoMlImageObjectDetectionMetadata. */ + interface IAutoMlImageObjectDetectionMetadata { + + /** AutoMlImageObjectDetectionMetadata costMilliNodeHours */ + costMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageObjectDetectionMetadata successfulStopReason */ + successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|null); + } + + /** Represents an AutoMlImageObjectDetectionMetadata. */ + class AutoMlImageObjectDetectionMetadata implements IAutoMlImageObjectDetectionMetadata { /** - * Constructs a new AutoMlVideoActionRecognitionInputs. + * Constructs a new AutoMlImageObjectDetectionMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata); - /** AutoMlVideoActionRecognitionInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType); + /** AutoMlImageObjectDetectionMetadata costMilliNodeHours. */ + public costMilliNodeHours: (number|Long|string); + + /** AutoMlImageObjectDetectionMetadata successfulStopReason. */ + public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason); /** - * Creates a new AutoMlVideoActionRecognitionInputs instance using the specified properties. + * Creates a new AutoMlImageObjectDetectionMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoActionRecognitionInputs instance + * @returns AutoMlImageObjectDetectionMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; /** - * Encodes the specified AutoMlVideoActionRecognitionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. - * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * Encodes the specified AutoMlImageObjectDetectionMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. + * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoActionRecognitionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. - * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * Encodes the specified AutoMlImageObjectDetectionMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. + * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer. + * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoActionRecognitionInputs + * @returns AutoMlImageObjectDetectionMetadata * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; /** - * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoActionRecognitionInputs + * @returns AutoMlImageObjectDetectionMetadata * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; /** - * Verifies an AutoMlVideoActionRecognitionInputs message. + * Verifies an AutoMlImageObjectDetectionMetadata 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 an AutoMlVideoActionRecognitionInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageObjectDetectionMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoActionRecognitionInputs + * @returns AutoMlImageObjectDetectionMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; /** - * Creates a plain object from an AutoMlVideoActionRecognitionInputs message. Also converts values to other types if specified. - * @param message AutoMlVideoActionRecognitionInputs + * Creates a plain object from an AutoMlImageObjectDetectionMetadata message. Also converts values to other types if specified. + * @param message AutoMlImageObjectDetectionMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoActionRecognitionInputs to JSON. + * Converts this AutoMlImageObjectDetectionMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoActionRecognitionInputs + * Gets the default type url for AutoMlImageObjectDetectionMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlVideoActionRecognitionInputs { + namespace AutoMlImageObjectDetectionMetadata { - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD = 1, - MOBILE_VERSATILE_1 = 2, - MOBILE_JETSON_VERSATILE_1 = 3, - MOBILE_CORAL_VERSATILE_1 = 4 + /** SuccessfulStopReason enum. */ + enum SuccessfulStopReason { + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, + BUDGET_REACHED = 1, + MODEL_CONVERGED = 2 } } - /** Properties of an AutoMlVideoClassification. */ - interface IAutoMlVideoClassification { + /** Properties of an AutoMlImageSegmentation. */ + interface IAutoMlImageSegmentation { - /** AutoMlVideoClassification inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + /** AutoMlImageSegmentation inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + + /** AutoMlImageSegmentation metadata */ + metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); } - /** Represents an AutoMlVideoClassification. */ - class AutoMlVideoClassification implements IAutoMlVideoClassification { + /** Represents an AutoMlImageSegmentation. */ + class AutoMlImageSegmentation implements IAutoMlImageSegmentation { /** - * Constructs a new AutoMlVideoClassification. + * Constructs a new AutoMlImageSegmentation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation); - /** AutoMlVideoClassification inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + /** AutoMlImageSegmentation inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + + /** AutoMlImageSegmentation metadata. */ + public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); /** - * Creates a new AutoMlVideoClassification instance using the specified properties. + * Creates a new AutoMlImageSegmentation instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoClassification instance + * @returns AutoMlImageSegmentation instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; /** - * Encodes the specified AutoMlVideoClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. - * @param message AutoMlVideoClassification message or plain object to encode + * Encodes the specified AutoMlImageSegmentation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. + * @param message AutoMlImageSegmentation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. - * @param message AutoMlVideoClassification message or plain object to encode + * Encodes the specified AutoMlImageSegmentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. + * @param message AutoMlImageSegmentation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoClassification message from the specified reader or buffer. + * Decodes an AutoMlImageSegmentation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoClassification + * @returns AutoMlImageSegmentation * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; /** - * Decodes an AutoMlVideoClassification message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageSegmentation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoClassification + * @returns AutoMlImageSegmentation * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; /** - * Verifies an AutoMlVideoClassification message. + * Verifies an AutoMlImageSegmentation 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 an AutoMlVideoClassification message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageSegmentation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoClassification + * @returns AutoMlImageSegmentation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; /** - * Creates a plain object from an AutoMlVideoClassification message. Also converts values to other types if specified. - * @param message AutoMlVideoClassification + * Creates a plain object from an AutoMlImageSegmentation message. Also converts values to other types if specified. + * @param message AutoMlImageSegmentation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoClassification to JSON. + * Converts this AutoMlImageSegmentation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoClassification + * Gets the default type url for AutoMlImageSegmentation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlVideoClassificationInputs. */ - interface IAutoMlVideoClassificationInputs { + /** Properties of an AutoMlImageSegmentationInputs. */ + interface IAutoMlImageSegmentationInputs { - /** AutoMlVideoClassificationInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|null); + /** AutoMlImageSegmentationInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|null); + + /** AutoMlImageSegmentationInputs budgetMilliNodeHours */ + budgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageSegmentationInputs baseModelId */ + baseModelId?: (string|null); } - /** Represents an AutoMlVideoClassificationInputs. */ - class AutoMlVideoClassificationInputs implements IAutoMlVideoClassificationInputs { + /** Represents an AutoMlImageSegmentationInputs. */ + class AutoMlImageSegmentationInputs implements IAutoMlImageSegmentationInputs { /** - * Constructs a new AutoMlVideoClassificationInputs. + * Constructs a new AutoMlImageSegmentationInputs. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs); - /** AutoMlVideoClassificationInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType); + /** AutoMlImageSegmentationInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType); + + /** AutoMlImageSegmentationInputs budgetMilliNodeHours. */ + public budgetMilliNodeHours: (number|Long|string); + + /** AutoMlImageSegmentationInputs baseModelId. */ + public baseModelId: string; /** - * Creates a new AutoMlVideoClassificationInputs instance using the specified properties. + * Creates a new AutoMlImageSegmentationInputs instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoClassificationInputs instance + * @returns AutoMlImageSegmentationInputs instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; /** - * Encodes the specified AutoMlVideoClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. - * @param message AutoMlVideoClassificationInputs message or plain object to encode + * Encodes the specified AutoMlImageSegmentationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. + * @param message AutoMlImageSegmentationInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. - * @param message AutoMlVideoClassificationInputs message or plain object to encode + * Encodes the specified AutoMlImageSegmentationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. + * @param message AutoMlImageSegmentationInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer. + * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoClassificationInputs + * @returns AutoMlImageSegmentationInputs * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; /** - * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoClassificationInputs + * @returns AutoMlImageSegmentationInputs * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; /** - * Verifies an AutoMlVideoClassificationInputs message. + * Verifies an AutoMlImageSegmentationInputs 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 an AutoMlVideoClassificationInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageSegmentationInputs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoClassificationInputs + * @returns AutoMlImageSegmentationInputs */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; /** - * Creates a plain object from an AutoMlVideoClassificationInputs message. Also converts values to other types if specified. - * @param message AutoMlVideoClassificationInputs + * Creates a plain object from an AutoMlImageSegmentationInputs message. Also converts values to other types if specified. + * @param message AutoMlImageSegmentationInputs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoClassificationInputs to JSON. + * Converts this AutoMlImageSegmentationInputs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoClassificationInputs + * Gets the default type url for AutoMlImageSegmentationInputs * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlVideoClassificationInputs { + namespace AutoMlImageSegmentationInputs { /** ModelType enum. */ enum ModelType { MODEL_TYPE_UNSPECIFIED = 0, - CLOUD = 1, - MOBILE_VERSATILE_1 = 2, - MOBILE_JETSON_VERSATILE_1 = 3 + CLOUD_HIGH_ACCURACY_1 = 1, + CLOUD_LOW_ACCURACY_1 = 2, + MOBILE_TF_LOW_LATENCY_1 = 3 } } - /** Properties of an AutoMlVideoObjectTracking. */ - interface IAutoMlVideoObjectTracking { + /** Properties of an AutoMlImageSegmentationMetadata. */ + interface IAutoMlImageSegmentationMetadata { - /** AutoMlVideoObjectTracking inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + /** AutoMlImageSegmentationMetadata costMilliNodeHours */ + costMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageSegmentationMetadata successfulStopReason */ + successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|null); } - /** Represents an AutoMlVideoObjectTracking. */ - class AutoMlVideoObjectTracking implements IAutoMlVideoObjectTracking { + /** Represents an AutoMlImageSegmentationMetadata. */ + class AutoMlImageSegmentationMetadata implements IAutoMlImageSegmentationMetadata { /** - * Constructs a new AutoMlVideoObjectTracking. + * Constructs a new AutoMlImageSegmentationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata); - /** AutoMlVideoObjectTracking inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + /** AutoMlImageSegmentationMetadata costMilliNodeHours. */ + public costMilliNodeHours: (number|Long|string); + + /** AutoMlImageSegmentationMetadata successfulStopReason. */ + public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason); /** - * Creates a new AutoMlVideoObjectTracking instance using the specified properties. + * Creates a new AutoMlImageSegmentationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoObjectTracking instance + * @returns AutoMlImageSegmentationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; /** - * Encodes the specified AutoMlVideoObjectTracking message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. - * @param message AutoMlVideoObjectTracking message or plain object to encode + * Encodes the specified AutoMlImageSegmentationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. + * @param message AutoMlImageSegmentationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoObjectTracking message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. - * @param message AutoMlVideoObjectTracking message or plain object to encode + * Encodes the specified AutoMlImageSegmentationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. + * @param message AutoMlImageSegmentationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer. + * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoObjectTracking + * @returns AutoMlImageSegmentationMetadata * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; /** - * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoObjectTracking + * @returns AutoMlImageSegmentationMetadata * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; /** - * Verifies an AutoMlVideoObjectTracking message. + * Verifies an AutoMlImageSegmentationMetadata 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 an AutoMlVideoObjectTracking message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageSegmentationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoObjectTracking + * @returns AutoMlImageSegmentationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; /** - * Creates a plain object from an AutoMlVideoObjectTracking message. Also converts values to other types if specified. - * @param message AutoMlVideoObjectTracking + * Creates a plain object from an AutoMlImageSegmentationMetadata message. Also converts values to other types if specified. + * @param message AutoMlImageSegmentationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoObjectTracking to JSON. + * Converts this AutoMlImageSegmentationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoObjectTracking + * Gets the default type url for AutoMlImageSegmentationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlVideoObjectTrackingInputs. */ - interface IAutoMlVideoObjectTrackingInputs { + namespace AutoMlImageSegmentationMetadata { - /** AutoMlVideoObjectTrackingInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|null); + /** SuccessfulStopReason enum. */ + enum SuccessfulStopReason { + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, + BUDGET_REACHED = 1, + MODEL_CONVERGED = 2 + } } - /** Represents an AutoMlVideoObjectTrackingInputs. */ - class AutoMlVideoObjectTrackingInputs implements IAutoMlVideoObjectTrackingInputs { + /** Properties of an AutoMlTables. */ + interface IAutoMlTables { + + /** AutoMlTables inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + + /** AutoMlTables metadata */ + metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); + } + + /** Represents an AutoMlTables. */ + class AutoMlTables implements IAutoMlTables { /** - * Constructs a new AutoMlVideoObjectTrackingInputs. + * Constructs a new AutoMlTables. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables); - /** AutoMlVideoObjectTrackingInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType); + /** AutoMlTables inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + + /** AutoMlTables metadata. */ + public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); /** - * Creates a new AutoMlVideoObjectTrackingInputs instance using the specified properties. + * Creates a new AutoMlTables instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoObjectTrackingInputs instance + * @returns AutoMlTables instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; /** - * Encodes the specified AutoMlVideoObjectTrackingInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. - * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * Encodes the specified AutoMlTables message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. + * @param message AutoMlTables message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoObjectTrackingInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. - * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * Encodes the specified AutoMlTables message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. + * @param message AutoMlTables message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer. + * Decodes an AutoMlTables message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoObjectTrackingInputs + * @returns AutoMlTables * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; /** - * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlTables message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoObjectTrackingInputs + * @returns AutoMlTables * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; /** - * Verifies an AutoMlVideoObjectTrackingInputs message. + * Verifies an AutoMlTables 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 an AutoMlVideoObjectTrackingInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlTables message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoObjectTrackingInputs + * @returns AutoMlTables */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; /** - * Creates a plain object from an AutoMlVideoObjectTrackingInputs message. Also converts values to other types if specified. - * @param message AutoMlVideoObjectTrackingInputs + * Creates a plain object from an AutoMlTables message. Also converts values to other types if specified. + * @param message AutoMlTables * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoObjectTrackingInputs to JSON. + * Converts this AutoMlTables to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoObjectTrackingInputs + * Gets the default type url for AutoMlTables * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlVideoObjectTrackingInputs { + /** Properties of an AutoMlTablesInputs. */ + interface IAutoMlTablesInputs { - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD = 1, - MOBILE_VERSATILE_1 = 2, - MOBILE_CORAL_VERSATILE_1 = 3, - MOBILE_CORAL_LOW_LATENCY_1 = 4, - MOBILE_JETSON_VERSATILE_1 = 5, - MOBILE_JETSON_LOW_LATENCY_1 = 6 - } - } - } - } - } + /** AutoMlTablesInputs optimizationObjectiveRecallValue */ + optimizationObjectiveRecallValue?: (number|null); - /** Properties of a SpecialistPool. */ - interface ISpecialistPool { + /** AutoMlTablesInputs optimizationObjectivePrecisionValue */ + optimizationObjectivePrecisionValue?: (number|null); - /** SpecialistPool name */ - name?: (string|null); + /** AutoMlTablesInputs predictionType */ + predictionType?: (string|null); - /** SpecialistPool displayName */ - displayName?: (string|null); + /** AutoMlTablesInputs targetColumn */ + targetColumn?: (string|null); - /** SpecialistPool specialistManagersCount */ - specialistManagersCount?: (number|null); + /** AutoMlTablesInputs transformations */ + transformations?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]|null); - /** SpecialistPool specialistManagerEmails */ - specialistManagerEmails?: (string[]|null); + /** AutoMlTablesInputs optimizationObjective */ + optimizationObjective?: (string|null); - /** SpecialistPool pendingDataLabelingJobs */ - pendingDataLabelingJobs?: (string[]|null); + /** AutoMlTablesInputs trainBudgetMilliNodeHours */ + trainBudgetMilliNodeHours?: (number|Long|string|null); - /** SpecialistPool specialistWorkerEmails */ - specialistWorkerEmails?: (string[]|null); - } + /** AutoMlTablesInputs disableEarlyStopping */ + disableEarlyStopping?: (boolean|null); - /** Represents a SpecialistPool. */ - class SpecialistPool implements ISpecialistPool { + /** AutoMlTablesInputs weightColumnName */ + weightColumnName?: (string|null); - /** - * Constructs a new SpecialistPool. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ISpecialistPool); + /** AutoMlTablesInputs exportEvaluatedDataItemsConfig */ + exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); - /** SpecialistPool name. */ - public name: string; + /** AutoMlTablesInputs additionalExperiments */ + additionalExperiments?: (string[]|null); + } - /** SpecialistPool displayName. */ - public displayName: string; + /** Represents an AutoMlTablesInputs. */ + class AutoMlTablesInputs implements IAutoMlTablesInputs { - /** SpecialistPool specialistManagersCount. */ - public specialistManagersCount: number; + /** + * Constructs a new AutoMlTablesInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs); - /** SpecialistPool specialistManagerEmails. */ - public specialistManagerEmails: string[]; + /** AutoMlTablesInputs optimizationObjectiveRecallValue. */ + public optimizationObjectiveRecallValue?: (number|null); - /** SpecialistPool pendingDataLabelingJobs. */ - public pendingDataLabelingJobs: string[]; + /** AutoMlTablesInputs optimizationObjectivePrecisionValue. */ + public optimizationObjectivePrecisionValue?: (number|null); - /** SpecialistPool specialistWorkerEmails. */ - public specialistWorkerEmails: string[]; + /** AutoMlTablesInputs predictionType. */ + public predictionType: string; - /** - * Creates a new SpecialistPool instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecialistPool instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ISpecialistPool): google.cloud.aiplatform.v1.SpecialistPool; + /** AutoMlTablesInputs targetColumn. */ + public targetColumn: string; - /** - * Encodes the specified SpecialistPool message. Does not implicitly {@link google.cloud.aiplatform.v1.SpecialistPool.verify|verify} messages. - * @param message SpecialistPool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoMlTablesInputs transformations. */ + public transformations: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]; - /** - * Encodes the specified SpecialistPool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SpecialistPool.verify|verify} messages. - * @param message SpecialistPool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoMlTablesInputs optimizationObjective. */ + public optimizationObjective: string; - /** - * Decodes a SpecialistPool message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecialistPool - * @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.aiplatform.v1.SpecialistPool; + /** AutoMlTablesInputs trainBudgetMilliNodeHours. */ + public trainBudgetMilliNodeHours: (number|Long|string); - /** - * Decodes a SpecialistPool message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecialistPool - * @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.aiplatform.v1.SpecialistPool; + /** AutoMlTablesInputs disableEarlyStopping. */ + public disableEarlyStopping: boolean; - /** - * Verifies a SpecialistPool 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); + /** AutoMlTablesInputs weightColumnName. */ + public weightColumnName: string; - /** - * Creates a SpecialistPool message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecialistPool - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SpecialistPool; + /** AutoMlTablesInputs exportEvaluatedDataItemsConfig. */ + public exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); - /** - * Creates a plain object from a SpecialistPool message. Also converts values to other types if specified. - * @param message SpecialistPool - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.SpecialistPool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** AutoMlTablesInputs additionalExperiments. */ + public additionalExperiments: string[]; - /** - * Converts this SpecialistPool to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AutoMlTablesInputs additionalOptimizationObjectiveConfig. */ + public additionalOptimizationObjectiveConfig?: ("optimizationObjectiveRecallValue"|"optimizationObjectivePrecisionValue"); - /** - * Gets the default type url for SpecialistPool - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new AutoMlTablesInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTablesInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; - /** Represents a SpecialistPoolService */ - class SpecialistPoolService extends $protobuf.rpc.Service { + /** + * Encodes the specified AutoMlTablesInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. + * @param message AutoMlTablesInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new SpecialistPoolService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** + * Encodes the specified AutoMlTablesInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. + * @param message AutoMlTablesInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates new SpecialistPoolService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SpecialistPoolService; + /** + * Decodes an AutoMlTablesInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTablesInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; - /** - * Calls CreateSpecialistPool. - * @param request CreateSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createSpecialistPool(request: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPoolCallback): void; + /** + * Decodes an AutoMlTablesInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTablesInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; - /** - * Calls CreateSpecialistPool. - * @param request CreateSpecialistPoolRequest message or plain object - * @returns Promise - */ - public createSpecialistPool(request: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest): Promise; + /** + * Verifies an AutoMlTablesInputs 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); - /** - * Calls GetSpecialistPool. - * @param request GetSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SpecialistPool - */ - public getSpecialistPool(request: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.GetSpecialistPoolCallback): void; + /** + * Creates an AutoMlTablesInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTablesInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; - /** - * Calls GetSpecialistPool. - * @param request GetSpecialistPoolRequest message or plain object - * @returns Promise - */ - public getSpecialistPool(request: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest): Promise; + /** + * Creates a plain object from an AutoMlTablesInputs message. Also converts values to other types if specified. + * @param message AutoMlTablesInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls ListSpecialistPools. - * @param request ListSpecialistPoolsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSpecialistPoolsResponse - */ - public listSpecialistPools(request: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPoolsCallback): void; + /** + * Converts this AutoMlTablesInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Calls ListSpecialistPools. - * @param request ListSpecialistPoolsRequest message or plain object - * @returns Promise - */ - public listSpecialistPools(request: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest): Promise; + /** + * Gets the default type url for AutoMlTablesInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls DeleteSpecialistPool. - * @param request DeleteSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteSpecialistPool(request: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.DeleteSpecialistPoolCallback): void; + namespace AutoMlTablesInputs { - /** - * Calls DeleteSpecialistPool. - * @param request DeleteSpecialistPoolRequest message or plain object - * @returns Promise - */ - public deleteSpecialistPool(request: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest): Promise; + /** Properties of a Transformation. */ + interface ITransformation { - /** - * Calls UpdateSpecialistPool. - * @param request UpdateSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public updateSpecialistPool(request: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPoolCallback): void; + /** Transformation auto */ + auto?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); - /** - * Calls UpdateSpecialistPool. - * @param request UpdateSpecialistPoolRequest message or plain object - * @returns Promise - */ - public updateSpecialistPool(request: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest): Promise; - } + /** Transformation numeric */ + numeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); - namespace SpecialistPoolService { + /** Transformation categorical */ + categorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|createSpecialistPool}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transformation timestamp */ + timestamp?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|getSpecialistPool}. - * @param error Error, if any - * @param [response] SpecialistPool - */ - type GetSpecialistPoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SpecialistPool) => void; + /** Transformation text */ + text?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|listSpecialistPools}. - * @param error Error, if any - * @param [response] ListSpecialistPoolsResponse - */ - type ListSpecialistPoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListSpecialistPoolsResponse) => void; + /** Transformation repeatedNumeric */ + repeatedNumeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|deleteSpecialistPool}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transformation repeatedCategorical */ + repeatedCategorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|updateSpecialistPool}. - * @param error Error, if any - * @param [response] Operation - */ - type UpdateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - } + /** Transformation repeatedText */ + repeatedText?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); + } - /** Properties of a CreateSpecialistPoolRequest. */ - interface ICreateSpecialistPoolRequest { + /** Represents a Transformation. */ + class Transformation implements ITransformation { - /** CreateSpecialistPoolRequest parent */ - parent?: (string|null); + /** + * Constructs a new Transformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation); - /** CreateSpecialistPoolRequest specialistPool */ - specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); - } + /** Transformation auto. */ + public auto?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); - /** Represents a CreateSpecialistPoolRequest. */ - class CreateSpecialistPoolRequest implements ICreateSpecialistPoolRequest { + /** Transformation numeric. */ + public numeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); - /** - * Constructs a new CreateSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest); + /** Transformation categorical. */ + public categorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); - /** CreateSpecialistPoolRequest parent. */ - public parent: string; + /** Transformation timestamp. */ + public timestamp?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); - /** CreateSpecialistPoolRequest specialistPool. */ - public specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + /** Transformation text. */ + public text?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); - /** - * Creates a new CreateSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest): google.cloud.aiplatform.v1.CreateSpecialistPoolRequest; + /** Transformation repeatedNumeric. */ + public repeatedNumeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); - /** - * Encodes the specified CreateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolRequest.verify|verify} messages. - * @param message CreateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Transformation repeatedCategorical. */ + public repeatedCategorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); - /** - * Encodes the specified CreateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolRequest.verify|verify} messages. - * @param message CreateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Transformation repeatedText. */ + public repeatedText?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); - /** - * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateSpecialistPoolRequest - * @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.aiplatform.v1.CreateSpecialistPoolRequest; + /** Transformation transformationDetail. */ + public transformationDetail?: ("auto"|"numeric"|"categorical"|"timestamp"|"text"|"repeatedNumeric"|"repeatedCategorical"|"repeatedText"); - /** - * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateSpecialistPoolRequest - * @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.aiplatform.v1.CreateSpecialistPoolRequest; + /** + * Creates a new Transformation instance using the specified properties. + * @param [properties] Properties to set + * @returns Transformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - /** - * Verifies a CreateSpecialistPoolRequest 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); + /** + * Encodes the specified Transformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. + * @param message Transformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a CreateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateSpecialistPoolRequest; + /** + * Encodes the specified Transformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. + * @param message Transformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a CreateSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message CreateSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.CreateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a Transformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - /** - * Gets the default type url for CreateSpecialistPoolRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a Transformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - /** Properties of a CreateSpecialistPoolOperationMetadata. */ - interface ICreateSpecialistPoolOperationMetadata { + /** + * Verifies a Transformation 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); - /** CreateSpecialistPoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } + /** + * Creates a Transformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - /** Represents a CreateSpecialistPoolOperationMetadata. */ - class CreateSpecialistPoolOperationMetadata implements ICreateSpecialistPoolOperationMetadata { + /** + * Creates a plain object from a Transformation message. Also converts values to other types if specified. + * @param message Transformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new CreateSpecialistPoolOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata); + /** + * Converts this Transformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CreateSpecialistPoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** + * Gets the default type url for Transformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new CreateSpecialistPoolOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateSpecialistPoolOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + namespace Transformation { - /** - * Encodes the specified CreateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an AutoTransformation. */ + interface IAutoTransformation { - /** - * Encodes the specified CreateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoTransformation columnName */ + columnName?: (string|null); + } - /** - * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateSpecialistPoolOperationMetadata - * @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.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + /** Represents an AutoTransformation. */ + class AutoTransformation implements IAutoTransformation { - /** - * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateSpecialistPoolOperationMetadata - * @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.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + /** + * Constructs a new AutoTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation); - /** - * Verifies a CreateSpecialistPoolOperationMetadata 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); + /** AutoTransformation columnName. */ + public columnName: string; - /** - * Creates a CreateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateSpecialistPoolOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + /** + * Creates a new AutoTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; - /** - * Creates a plain object from a CreateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. - * @param message CreateSpecialistPoolOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified AutoTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. + * @param message AutoTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateSpecialistPoolOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified AutoTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. + * @param message AutoTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for CreateSpecialistPoolOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an AutoTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; - /** Properties of a GetSpecialistPoolRequest. */ - interface IGetSpecialistPoolRequest { + /** + * Decodes an AutoTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; - /** GetSpecialistPoolRequest name */ - name?: (string|null); - } + /** + * Verifies an AutoTransformation 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); - /** Represents a GetSpecialistPoolRequest. */ - class GetSpecialistPoolRequest implements IGetSpecialistPoolRequest { + /** + * Creates an AutoTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; - /** - * Constructs a new GetSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest); + /** + * Creates a plain object from an AutoTransformation message. Also converts values to other types if specified. + * @param message AutoTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** GetSpecialistPoolRequest name. */ - public name: string; + /** + * Converts this AutoTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new GetSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest): google.cloud.aiplatform.v1.GetSpecialistPoolRequest; + /** + * Gets the default type url for AutoTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified GetSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetSpecialistPoolRequest.verify|verify} messages. - * @param message GetSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a NumericTransformation. */ + interface INumericTransformation { - /** - * Encodes the specified GetSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetSpecialistPoolRequest.verify|verify} messages. - * @param message GetSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** NumericTransformation columnName */ + columnName?: (string|null); - /** - * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSpecialistPoolRequest - * @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.aiplatform.v1.GetSpecialistPoolRequest; + /** NumericTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } - /** - * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSpecialistPoolRequest - * @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.aiplatform.v1.GetSpecialistPoolRequest; + /** Represents a NumericTransformation. */ + class NumericTransformation implements INumericTransformation { - /** - * Verifies a GetSpecialistPoolRequest 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); + /** + * Constructs a new NumericTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation); - /** - * Creates a GetSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetSpecialistPoolRequest; + /** NumericTransformation columnName. */ + public columnName: string; - /** - * Creates a plain object from a GetSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message GetSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.GetSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NumericTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; - /** - * Converts this GetSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new NumericTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; - /** - * Gets the default type url for GetSpecialistPoolRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified NumericTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. + * @param message NumericTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ListSpecialistPoolsRequest. */ - interface IListSpecialistPoolsRequest { + /** + * Encodes the specified NumericTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. + * @param message NumericTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListSpecialistPoolsRequest parent */ - parent?: (string|null); + /** + * Decodes a NumericTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; - /** ListSpecialistPoolsRequest pageSize */ - pageSize?: (number|null); + /** + * Decodes a NumericTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; - /** ListSpecialistPoolsRequest pageToken */ - pageToken?: (string|null); + /** + * Verifies a NumericTransformation 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); - /** ListSpecialistPoolsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** + * Creates a NumericTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; - /** Represents a ListSpecialistPoolsRequest. */ - class ListSpecialistPoolsRequest implements IListSpecialistPoolsRequest { + /** + * Creates a plain object from a NumericTransformation message. Also converts values to other types if specified. + * @param message NumericTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ListSpecialistPoolsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest); + /** + * Converts this NumericTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListSpecialistPoolsRequest parent. */ - public parent: string; + /** + * Gets the default type url for NumericTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ListSpecialistPoolsRequest pageSize. */ - public pageSize: number; + /** Properties of a CategoricalTransformation. */ + interface ICategoricalTransformation { - /** ListSpecialistPoolsRequest pageToken. */ - public pageToken: string; + /** CategoricalTransformation columnName */ + columnName?: (string|null); + } - /** ListSpecialistPoolsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** Represents a CategoricalTransformation. */ + class CategoricalTransformation implements ICategoricalTransformation { - /** - * Creates a new ListSpecialistPoolsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListSpecialistPoolsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest): google.cloud.aiplatform.v1.ListSpecialistPoolsRequest; + /** + * Constructs a new CategoricalTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation); - /** - * Encodes the specified ListSpecialistPoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsRequest.verify|verify} messages. - * @param message ListSpecialistPoolsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** CategoricalTransformation columnName. */ + public columnName: string; - /** - * Encodes the specified ListSpecialistPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsRequest.verify|verify} messages. - * @param message ListSpecialistPoolsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CategoricalTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; - /** - * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListSpecialistPoolsRequest - * @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.aiplatform.v1.ListSpecialistPoolsRequest; + /** + * Encodes the specified CategoricalTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @param message CategoricalTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListSpecialistPoolsRequest - * @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.aiplatform.v1.ListSpecialistPoolsRequest; + /** + * Encodes the specified CategoricalTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @param message CategoricalTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ListSpecialistPoolsRequest 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); + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; - /** - * Creates a ListSpecialistPoolsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListSpecialistPoolsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSpecialistPoolsRequest; - - /** - * Creates a plain object from a ListSpecialistPoolsRequest message. Also converts values to other types if specified. - * @param message ListSpecialistPoolsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListSpecialistPoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListSpecialistPoolsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; - /** - * Gets the default type url for ListSpecialistPoolsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a CategoricalTransformation 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); - /** Properties of a ListSpecialistPoolsResponse. */ - interface IListSpecialistPoolsResponse { + /** + * Creates a CategoricalTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; - /** ListSpecialistPoolsResponse specialistPools */ - specialistPools?: (google.cloud.aiplatform.v1.ISpecialistPool[]|null); + /** + * Creates a plain object from a CategoricalTransformation message. Also converts values to other types if specified. + * @param message CategoricalTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListSpecialistPoolsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Converts this CategoricalTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a ListSpecialistPoolsResponse. */ - class ListSpecialistPoolsResponse implements IListSpecialistPoolsResponse { + /** + * Gets the default type url for CategoricalTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new ListSpecialistPoolsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse); + /** Properties of a TimestampTransformation. */ + interface ITimestampTransformation { - /** ListSpecialistPoolsResponse specialistPools. */ - public specialistPools: google.cloud.aiplatform.v1.ISpecialistPool[]; + /** TimestampTransformation columnName */ + columnName?: (string|null); - /** ListSpecialistPoolsResponse nextPageToken. */ - public nextPageToken: string; + /** TimestampTransformation timeFormat */ + timeFormat?: (string|null); - /** - * Creates a new ListSpecialistPoolsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListSpecialistPoolsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse): google.cloud.aiplatform.v1.ListSpecialistPoolsResponse; + /** TimestampTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } - /** - * Encodes the specified ListSpecialistPoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.verify|verify} messages. - * @param message ListSpecialistPoolsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a TimestampTransformation. */ + class TimestampTransformation implements ITimestampTransformation { - /** - * Encodes the specified ListSpecialistPoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.verify|verify} messages. - * @param message ListSpecialistPoolsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new TimestampTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation); - /** - * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListSpecialistPoolsResponse - * @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.aiplatform.v1.ListSpecialistPoolsResponse; + /** TimestampTransformation columnName. */ + public columnName: string; - /** - * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListSpecialistPoolsResponse - * @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.aiplatform.v1.ListSpecialistPoolsResponse; + /** TimestampTransformation timeFormat. */ + public timeFormat: string; - /** - * Verifies a ListSpecialistPoolsResponse 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); + /** TimestampTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; - /** - * Creates a ListSpecialistPoolsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListSpecialistPoolsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSpecialistPoolsResponse; + /** + * Creates a new TimestampTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TimestampTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; - /** - * Creates a plain object from a ListSpecialistPoolsResponse message. Also converts values to other types if specified. - * @param message ListSpecialistPoolsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListSpecialistPoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified TimestampTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @param message TimestampTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ListSpecialistPoolsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified TimestampTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @param message TimestampTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ListSpecialistPoolsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a TimestampTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimestampTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; - /** Properties of a DeleteSpecialistPoolRequest. */ - interface IDeleteSpecialistPoolRequest { + /** + * Decodes a TimestampTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimestampTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; - /** DeleteSpecialistPoolRequest name */ - name?: (string|null); + /** + * Verifies a TimestampTransformation 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); - /** DeleteSpecialistPoolRequest force */ - force?: (boolean|null); - } + /** + * Creates a TimestampTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimestampTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; - /** Represents a DeleteSpecialistPoolRequest. */ - class DeleteSpecialistPoolRequest implements IDeleteSpecialistPoolRequest { + /** + * Creates a plain object from a TimestampTransformation message. Also converts values to other types if specified. + * @param message TimestampTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new DeleteSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest); + /** + * Converts this TimestampTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DeleteSpecialistPoolRequest name. */ - public name: string; + /** + * Gets the default type url for TimestampTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeleteSpecialistPoolRequest force. */ - public force: boolean; + /** Properties of a TextTransformation. */ + interface ITextTransformation { - /** - * Creates a new DeleteSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest): google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest; + /** TextTransformation columnName */ + columnName?: (string|null); + } - /** - * Encodes the specified DeleteSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest.verify|verify} messages. - * @param message DeleteSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a TextTransformation. */ + class TextTransformation implements ITextTransformation { - /** - * Encodes the specified DeleteSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest.verify|verify} messages. - * @param message DeleteSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new TextTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation); - /** - * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteSpecialistPoolRequest - * @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.aiplatform.v1.DeleteSpecialistPoolRequest; + /** TextTransformation columnName. */ + public columnName: string; - /** - * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteSpecialistPoolRequest - * @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.aiplatform.v1.DeleteSpecialistPoolRequest; + /** + * Creates a new TextTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; - /** - * Verifies a DeleteSpecialistPoolRequest 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); + /** + * Encodes the specified TextTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. + * @param message TextTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a DeleteSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest; + /** + * Encodes the specified TextTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. + * @param message TextTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a DeleteSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message DeleteSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a TextTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; - /** - * Converts this DeleteSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a TextTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; - /** - * Gets the default type url for DeleteSpecialistPoolRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a TextTransformation 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); - /** Properties of an UpdateSpecialistPoolRequest. */ - interface IUpdateSpecialistPoolRequest { + /** + * Creates a TextTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; - /** UpdateSpecialistPoolRequest specialistPool */ - specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + /** + * Creates a plain object from a TextTransformation message. Also converts values to other types if specified. + * @param message TextTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UpdateSpecialistPoolRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** + * Converts this TextTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents an UpdateSpecialistPoolRequest. */ - class UpdateSpecialistPoolRequest implements IUpdateSpecialistPoolRequest { + /** + * Gets the default type url for TextTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new UpdateSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest); + /** Properties of a NumericArrayTransformation. */ + interface INumericArrayTransformation { - /** UpdateSpecialistPoolRequest specialistPool. */ - public specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + /** NumericArrayTransformation columnName */ + columnName?: (string|null); - /** UpdateSpecialistPoolRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** NumericArrayTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } - /** - * Creates a new UpdateSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest): google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest; + /** Represents a NumericArrayTransformation. */ + class NumericArrayTransformation implements INumericArrayTransformation { - /** - * Encodes the specified UpdateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest.verify|verify} messages. - * @param message UpdateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new NumericArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation); - /** - * Encodes the specified UpdateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest.verify|verify} messages. - * @param message UpdateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** NumericArrayTransformation columnName. */ + public columnName: string; - /** - * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateSpecialistPoolRequest - * @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.aiplatform.v1.UpdateSpecialistPoolRequest; + /** NumericArrayTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; - /** - * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateSpecialistPoolRequest - * @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.aiplatform.v1.UpdateSpecialistPoolRequest; + /** + * Creates a new NumericArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; - /** - * Verifies an UpdateSpecialistPoolRequest 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); + /** + * Encodes the specified NumericArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @param message NumericArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an UpdateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest; + /** + * Encodes the specified NumericArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @param message NumericArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from an UpdateSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message UpdateSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericArrayTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; - /** - * Converts this UpdateSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericArrayTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; - /** - * Gets the default type url for UpdateSpecialistPoolRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a NumericArrayTransformation 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); - /** Properties of an UpdateSpecialistPoolOperationMetadata. */ - interface IUpdateSpecialistPoolOperationMetadata { + /** + * Creates a NumericArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; - /** UpdateSpecialistPoolOperationMetadata specialistPool */ - specialistPool?: (string|null); + /** + * Creates a plain object from a NumericArrayTransformation message. Also converts values to other types if specified. + * @param message NumericArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UpdateSpecialistPoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } + /** + * Converts this NumericArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents an UpdateSpecialistPoolOperationMetadata. */ - class UpdateSpecialistPoolOperationMetadata implements IUpdateSpecialistPoolOperationMetadata { + /** + * Gets the default type url for NumericArrayTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new UpdateSpecialistPoolOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata); + /** Properties of a CategoricalArrayTransformation. */ + interface ICategoricalArrayTransformation { - /** UpdateSpecialistPoolOperationMetadata specialistPool. */ - public specialistPool: string; + /** CategoricalArrayTransformation columnName */ + columnName?: (string|null); + } - /** UpdateSpecialistPoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** Represents a CategoricalArrayTransformation. */ + class CategoricalArrayTransformation implements ICategoricalArrayTransformation { - /** - * Creates a new UpdateSpecialistPoolOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateSpecialistPoolOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + /** + * Constructs a new CategoricalArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation); - /** - * Encodes the specified UpdateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** CategoricalArrayTransformation columnName. */ + public columnName: string; - /** - * Encodes the specified UpdateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CategoricalArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - /** - * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateSpecialistPoolOperationMetadata - * @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.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + /** + * Encodes the specified CategoricalArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @param message CategoricalArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateSpecialistPoolOperationMetadata - * @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.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + /** + * Encodes the specified CategoricalArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @param message CategoricalArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an UpdateSpecialistPoolOperationMetadata 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); + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalArrayTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - /** - * Creates an UpdateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateSpecialistPoolOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalArrayTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - /** - * Creates a plain object from an UpdateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateSpecialistPoolOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a CategoricalArrayTransformation 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); - /** - * Converts this UpdateSpecialistPoolOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a CategoricalArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - /** - * Gets the default type url for UpdateSpecialistPoolOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a CategoricalArrayTransformation message. Also converts values to other types if specified. + * @param message CategoricalArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a Tensorboard. */ - interface ITensorboard { + /** + * Converts this CategoricalArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Tensorboard name */ - name?: (string|null); + /** + * Gets the default type url for CategoricalArrayTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Tensorboard displayName */ - displayName?: (string|null); + /** Properties of a TextArrayTransformation. */ + interface ITextArrayTransformation { - /** Tensorboard description */ - description?: (string|null); + /** TextArrayTransformation columnName */ + columnName?: (string|null); + } - /** Tensorboard encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Represents a TextArrayTransformation. */ + class TextArrayTransformation implements ITextArrayTransformation { - /** Tensorboard blobStoragePathPrefix */ - blobStoragePathPrefix?: (string|null); + /** + * Constructs a new TextArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation); - /** Tensorboard runCount */ - runCount?: (number|null); + /** TextArrayTransformation columnName. */ + public columnName: string; - /** Tensorboard createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new TextArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - /** Tensorboard updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified TextArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @param message TextArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** Tensorboard labels */ - labels?: ({ [k: string]: string }|null); + /** + * Encodes the specified TextArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @param message TextArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** Tensorboard etag */ - etag?: (string|null); - } + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextArrayTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - /** Represents a Tensorboard. */ - class Tensorboard implements ITensorboard { + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextArrayTransformation + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - /** - * Constructs a new Tensorboard. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboard); + /** + * Verifies a TextArrayTransformation 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); - /** Tensorboard name. */ - public name: string; + /** + * Creates a TextArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - /** Tensorboard displayName. */ - public displayName: string; + /** + * Creates a plain object from a TextArrayTransformation message. Also converts values to other types if specified. + * @param message TextArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Tensorboard description. */ - public description: string; + /** + * Converts this TextArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Tensorboard encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** + * Gets the default type url for TextArrayTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } - /** Tensorboard blobStoragePathPrefix. */ - public blobStoragePathPrefix: string; + /** Properties of an AutoMlTablesMetadata. */ + interface IAutoMlTablesMetadata { - /** Tensorboard runCount. */ - public runCount: number; + /** AutoMlTablesMetadata trainCostMilliNodeHours */ + trainCostMilliNodeHours?: (number|Long|string|null); + } - /** Tensorboard createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Represents an AutoMlTablesMetadata. */ + class AutoMlTablesMetadata implements IAutoMlTablesMetadata { - /** Tensorboard updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new AutoMlTablesMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata); - /** Tensorboard labels. */ - public labels: { [k: string]: string }; + /** AutoMlTablesMetadata trainCostMilliNodeHours. */ + public trainCostMilliNodeHours: (number|Long|string); - /** Tensorboard etag. */ - public etag: string; + /** + * Creates a new AutoMlTablesMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTablesMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; - /** - * Creates a new Tensorboard instance using the specified properties. - * @param [properties] Properties to set - * @returns Tensorboard instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboard): google.cloud.aiplatform.v1.Tensorboard; + /** + * Encodes the specified AutoMlTablesMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. + * @param message AutoMlTablesMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Tensorboard message. Does not implicitly {@link google.cloud.aiplatform.v1.Tensorboard.verify|verify} messages. - * @param message Tensorboard message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboard, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified AutoMlTablesMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. + * @param message AutoMlTablesMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Tensorboard message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Tensorboard.verify|verify} messages. - * @param message Tensorboard message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboard, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an AutoMlTablesMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTablesMetadata + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; - /** - * Decodes a Tensorboard message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Tensorboard - * @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.aiplatform.v1.Tensorboard; + /** + * Decodes an AutoMlTablesMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTablesMetadata + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; - /** - * Decodes a Tensorboard message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Tensorboard - * @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.aiplatform.v1.Tensorboard; + /** + * Verifies an AutoMlTablesMetadata 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); - /** - * Verifies a Tensorboard 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 an AutoMlTablesMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTablesMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; - /** - * Creates a Tensorboard message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Tensorboard - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Tensorboard; + /** + * Creates a plain object from an AutoMlTablesMetadata message. Also converts values to other types if specified. + * @param message AutoMlTablesMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a Tensorboard message. Also converts values to other types if specified. - * @param message Tensorboard - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.Tensorboard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this AutoMlTablesMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this Tensorboard to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for AutoMlTablesMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for Tensorboard - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an ExportEvaluatedDataItemsConfig. */ + interface IExportEvaluatedDataItemsConfig { - /** Properties of a TimeSeriesData. */ - interface ITimeSeriesData { + /** ExportEvaluatedDataItemsConfig destinationBigqueryUri */ + destinationBigqueryUri?: (string|null); - /** TimeSeriesData tensorboardTimeSeriesId */ - tensorboardTimeSeriesId?: (string|null); + /** ExportEvaluatedDataItemsConfig overrideExistingTable */ + overrideExistingTable?: (boolean|null); + } - /** TimeSeriesData valueType */ - valueType?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|null); + /** Represents an ExportEvaluatedDataItemsConfig. */ + class ExportEvaluatedDataItemsConfig implements IExportEvaluatedDataItemsConfig { - /** TimeSeriesData values */ - values?: (google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]|null); - } + /** + * Constructs a new ExportEvaluatedDataItemsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig); - /** Represents a TimeSeriesData. */ - class TimeSeriesData implements ITimeSeriesData { + /** ExportEvaluatedDataItemsConfig destinationBigqueryUri. */ + public destinationBigqueryUri: string; - /** - * Constructs a new TimeSeriesData. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ITimeSeriesData); + /** ExportEvaluatedDataItemsConfig overrideExistingTable. */ + public overrideExistingTable: boolean; - /** TimeSeriesData tensorboardTimeSeriesId. */ - public tensorboardTimeSeriesId: string; + /** + * Creates a new ExportEvaluatedDataItemsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportEvaluatedDataItemsConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig): google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; - /** TimeSeriesData valueType. */ - public valueType: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType); + /** + * Encodes the specified ExportEvaluatedDataItemsConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. + * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** TimeSeriesData values. */ - public values: google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]; + /** + * Encodes the specified ExportEvaluatedDataItemsConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. + * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new TimeSeriesData instance using the specified properties. - * @param [properties] Properties to set - * @returns TimeSeriesData instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ITimeSeriesData): google.cloud.aiplatform.v1.TimeSeriesData; + /** + * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportEvaluatedDataItemsConfig + * @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.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; - /** - * Encodes the specified TimeSeriesData message. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesData.verify|verify} messages. - * @param message TimeSeriesData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ITimeSeriesData, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportEvaluatedDataItemsConfig + * @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.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; - /** - * Encodes the specified TimeSeriesData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesData.verify|verify} messages. - * @param message TimeSeriesData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimeSeriesData, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies an ExportEvaluatedDataItemsConfig 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); - /** - * Decodes a TimeSeriesData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimeSeriesData - * @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.aiplatform.v1.TimeSeriesData; + /** + * Creates an ExportEvaluatedDataItemsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportEvaluatedDataItemsConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; - /** - * Decodes a TimeSeriesData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeSeriesData - * @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.aiplatform.v1.TimeSeriesData; + /** + * Creates a plain object from an ExportEvaluatedDataItemsConfig message. Also converts values to other types if specified. + * @param message ExportEvaluatedDataItemsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a TimeSeriesData 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); + /** + * Converts this ExportEvaluatedDataItemsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a TimeSeriesData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TimeSeriesData - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimeSeriesData; + /** + * Gets the default type url for ExportEvaluatedDataItemsConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a TimeSeriesData message. Also converts values to other types if specified. - * @param message TimeSeriesData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.TimeSeriesData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an AutoMlTextClassification. */ + interface IAutoMlTextClassification { - /** - * Converts this TimeSeriesData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AutoMlTextClassification inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); + } - /** - * Gets the default type url for TimeSeriesData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents an AutoMlTextClassification. */ + class AutoMlTextClassification implements IAutoMlTextClassification { - /** Properties of a TimeSeriesDataPoint. */ - interface ITimeSeriesDataPoint { + /** + * Constructs a new AutoMlTextClassification. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification); - /** TimeSeriesDataPoint scalar */ - scalar?: (google.cloud.aiplatform.v1.IScalar|null); + /** AutoMlTextClassification inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); - /** TimeSeriesDataPoint tensor */ - tensor?: (google.cloud.aiplatform.v1.ITensorboardTensor|null); + /** + * Creates a new AutoMlTextClassification instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextClassification instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; - /** TimeSeriesDataPoint blobs */ - blobs?: (google.cloud.aiplatform.v1.ITensorboardBlobSequence|null); + /** + * Encodes the specified AutoMlTextClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. + * @param message AutoMlTextClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; - /** TimeSeriesDataPoint wallTime */ - wallTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified AutoMlTextClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. + * @param message AutoMlTextClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; - /** TimeSeriesDataPoint step */ - step?: (number|Long|string|null); - } + /** + * Decodes an AutoMlTextClassification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextClassification + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; - /** Represents a TimeSeriesDataPoint. */ - class TimeSeriesDataPoint implements ITimeSeriesDataPoint { + /** + * Decodes an AutoMlTextClassification message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextClassification + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; - /** - * Constructs a new TimeSeriesDataPoint. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ITimeSeriesDataPoint); + /** + * Verifies an AutoMlTextClassification 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); - /** TimeSeriesDataPoint scalar. */ - public scalar?: (google.cloud.aiplatform.v1.IScalar|null); + /** + * Creates an AutoMlTextClassification message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextClassification + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; - /** TimeSeriesDataPoint tensor. */ - public tensor?: (google.cloud.aiplatform.v1.ITensorboardTensor|null); + /** + * Creates a plain object from an AutoMlTextClassification message. Also converts values to other types if specified. + * @param message AutoMlTextClassification + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TimeSeriesDataPoint blobs. */ - public blobs?: (google.cloud.aiplatform.v1.ITensorboardBlobSequence|null); + /** + * Converts this AutoMlTextClassification to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TimeSeriesDataPoint wallTime. */ - public wallTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for AutoMlTextClassification + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TimeSeriesDataPoint step. */ - public step: (number|Long|string); + /** Properties of an AutoMlTextClassificationInputs. */ + interface IAutoMlTextClassificationInputs { - /** TimeSeriesDataPoint value. */ - public value?: ("scalar"|"tensor"|"blobs"); + /** AutoMlTextClassificationInputs multiLabel */ + multiLabel?: (boolean|null); + } - /** - * Creates a new TimeSeriesDataPoint instance using the specified properties. - * @param [properties] Properties to set - * @returns TimeSeriesDataPoint instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ITimeSeriesDataPoint): google.cloud.aiplatform.v1.TimeSeriesDataPoint; + /** Represents an AutoMlTextClassificationInputs. */ + class AutoMlTextClassificationInputs implements IAutoMlTextClassificationInputs { - /** - * Encodes the specified TimeSeriesDataPoint message. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesDataPoint.verify|verify} messages. - * @param message TimeSeriesDataPoint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ITimeSeriesDataPoint, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new AutoMlTextClassificationInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs); - /** - * Encodes the specified TimeSeriesDataPoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesDataPoint.verify|verify} messages. - * @param message TimeSeriesDataPoint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimeSeriesDataPoint, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoMlTextClassificationInputs multiLabel. */ + public multiLabel: boolean; - /** - * Decodes a TimeSeriesDataPoint message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimeSeriesDataPoint - * @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.aiplatform.v1.TimeSeriesDataPoint; + /** + * Creates a new AutoMlTextClassificationInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextClassificationInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; - /** - * Decodes a TimeSeriesDataPoint message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeSeriesDataPoint - * @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.aiplatform.v1.TimeSeriesDataPoint; + /** + * Encodes the specified AutoMlTextClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. + * @param message AutoMlTextClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a TimeSeriesDataPoint 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); + /** + * Encodes the specified AutoMlTextClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. + * @param message AutoMlTextClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a TimeSeriesDataPoint message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TimeSeriesDataPoint - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimeSeriesDataPoint; + /** + * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextClassificationInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; - /** - * Creates a plain object from a TimeSeriesDataPoint message. Also converts values to other types if specified. - * @param message TimeSeriesDataPoint - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.TimeSeriesDataPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextClassificationInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; - /** - * Converts this TimeSeriesDataPoint to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies an AutoMlTextClassificationInputs 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); - /** - * Gets the default type url for TimeSeriesDataPoint - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates an AutoMlTextClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextClassificationInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; - /** Properties of a Scalar. */ - interface IScalar { + /** + * Creates a plain object from an AutoMlTextClassificationInputs message. Also converts values to other types if specified. + * @param message AutoMlTextClassificationInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Scalar value */ - value?: (number|null); - } + /** + * Converts this AutoMlTextClassificationInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a Scalar. */ - class Scalar implements IScalar { + /** + * Gets the default type url for AutoMlTextClassificationInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new Scalar. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IScalar); + /** Properties of an AutoMlTextExtraction. */ + interface IAutoMlTextExtraction { - /** Scalar value. */ - public value: number; + /** AutoMlTextExtraction inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); + } - /** - * Creates a new Scalar instance using the specified properties. - * @param [properties] Properties to set - * @returns Scalar instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IScalar): google.cloud.aiplatform.v1.Scalar; + /** Represents an AutoMlTextExtraction. */ + class AutoMlTextExtraction implements IAutoMlTextExtraction { - /** - * Encodes the specified Scalar message. Does not implicitly {@link google.cloud.aiplatform.v1.Scalar.verify|verify} messages. - * @param message Scalar message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new AutoMlTextExtraction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction); - /** - * Encodes the specified Scalar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Scalar.verify|verify} messages. - * @param message Scalar message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoMlTextExtraction inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); - /** - * Decodes a Scalar message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Scalar - * @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.aiplatform.v1.Scalar; + /** + * Creates a new AutoMlTextExtraction instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextExtraction instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; - /** - * Decodes a Scalar message from the specified reader or buffer, length delimited. + /** + * Encodes the specified AutoMlTextExtraction message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. + * @param message AutoMlTextExtraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextExtraction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. + * @param message AutoMlTextExtraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextExtraction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextExtraction + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Decodes an AutoMlTextExtraction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextExtraction + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Verifies an AutoMlTextExtraction 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 an AutoMlTextExtraction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextExtraction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Creates a plain object from an AutoMlTextExtraction message. Also converts values to other types if specified. + * @param message AutoMlTextExtraction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextExtraction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlTextExtraction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlTextExtractionInputs. */ + interface IAutoMlTextExtractionInputs { + } + + /** Represents an AutoMlTextExtractionInputs. */ + class AutoMlTextExtractionInputs implements IAutoMlTextExtractionInputs { + + /** + * Constructs a new AutoMlTextExtractionInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs); + + /** + * Creates a new AutoMlTextExtractionInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextExtractionInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Encodes the specified AutoMlTextExtractionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. + * @param message AutoMlTextExtractionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextExtractionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. + * @param message AutoMlTextExtractionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextExtractionInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextExtractionInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Verifies an AutoMlTextExtractionInputs 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 an AutoMlTextExtractionInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextExtractionInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Creates a plain object from an AutoMlTextExtractionInputs message. Also converts values to other types if specified. + * @param message AutoMlTextExtractionInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextExtractionInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlTextExtractionInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlTextSentiment. */ + interface IAutoMlTextSentiment { + + /** AutoMlTextSentiment inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + } + + /** Represents an AutoMlTextSentiment. */ + class AutoMlTextSentiment implements IAutoMlTextSentiment { + + /** + * Constructs a new AutoMlTextSentiment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment); + + /** AutoMlTextSentiment inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + + /** + * Creates a new AutoMlTextSentiment instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextSentiment instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Encodes the specified AutoMlTextSentiment message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. + * @param message AutoMlTextSentiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextSentiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. + * @param message AutoMlTextSentiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextSentiment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextSentiment + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Decodes an AutoMlTextSentiment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextSentiment + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Verifies an AutoMlTextSentiment 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 an AutoMlTextSentiment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextSentiment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Creates a plain object from an AutoMlTextSentiment message. Also converts values to other types if specified. + * @param message AutoMlTextSentiment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextSentiment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlTextSentiment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlTextSentimentInputs. */ + interface IAutoMlTextSentimentInputs { + + /** AutoMlTextSentimentInputs sentimentMax */ + sentimentMax?: (number|null); + } + + /** Represents an AutoMlTextSentimentInputs. */ + class AutoMlTextSentimentInputs implements IAutoMlTextSentimentInputs { + + /** + * Constructs a new AutoMlTextSentimentInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs); + + /** AutoMlTextSentimentInputs sentimentMax. */ + public sentimentMax: number; + + /** + * Creates a new AutoMlTextSentimentInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextSentimentInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Encodes the specified AutoMlTextSentimentInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. + * @param message AutoMlTextSentimentInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextSentimentInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. + * @param message AutoMlTextSentimentInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextSentimentInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextSentimentInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Verifies an AutoMlTextSentimentInputs 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 an AutoMlTextSentimentInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextSentimentInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Creates a plain object from an AutoMlTextSentimentInputs message. Also converts values to other types if specified. + * @param message AutoMlTextSentimentInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextSentimentInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlTextSentimentInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlVideoActionRecognition. */ + interface IAutoMlVideoActionRecognition { + + /** AutoMlVideoActionRecognition inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + } + + /** Represents an AutoMlVideoActionRecognition. */ + class AutoMlVideoActionRecognition implements IAutoMlVideoActionRecognition { + + /** + * Constructs a new AutoMlVideoActionRecognition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition); + + /** AutoMlVideoActionRecognition inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + + /** + * Creates a new AutoMlVideoActionRecognition instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoActionRecognition instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Encodes the specified AutoMlVideoActionRecognition message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. + * @param message AutoMlVideoActionRecognition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoActionRecognition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. + * @param message AutoMlVideoActionRecognition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoActionRecognition + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoActionRecognition + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Verifies an AutoMlVideoActionRecognition 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 an AutoMlVideoActionRecognition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoActionRecognition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Creates a plain object from an AutoMlVideoActionRecognition message. Also converts values to other types if specified. + * @param message AutoMlVideoActionRecognition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoActionRecognition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoActionRecognition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlVideoActionRecognitionInputs. */ + interface IAutoMlVideoActionRecognitionInputs { + + /** AutoMlVideoActionRecognitionInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|null); + } + + /** Represents an AutoMlVideoActionRecognitionInputs. */ + class AutoMlVideoActionRecognitionInputs implements IAutoMlVideoActionRecognitionInputs { + + /** + * Constructs a new AutoMlVideoActionRecognitionInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs); + + /** AutoMlVideoActionRecognitionInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType); + + /** + * Creates a new AutoMlVideoActionRecognitionInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoActionRecognitionInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Encodes the specified AutoMlVideoActionRecognitionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. + * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoActionRecognitionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. + * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoActionRecognitionInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoActionRecognitionInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Verifies an AutoMlVideoActionRecognitionInputs 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 an AutoMlVideoActionRecognitionInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoActionRecognitionInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Creates a plain object from an AutoMlVideoActionRecognitionInputs message. Also converts values to other types if specified. + * @param message AutoMlVideoActionRecognitionInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoActionRecognitionInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoActionRecognitionInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutoMlVideoActionRecognitionInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_VERSATILE_1 = 2, + MOBILE_JETSON_VERSATILE_1 = 3, + MOBILE_CORAL_VERSATILE_1 = 4 + } + } + + /** Properties of an AutoMlVideoClassification. */ + interface IAutoMlVideoClassification { + + /** AutoMlVideoClassification inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + } + + /** Represents an AutoMlVideoClassification. */ + class AutoMlVideoClassification implements IAutoMlVideoClassification { + + /** + * Constructs a new AutoMlVideoClassification. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification); + + /** AutoMlVideoClassification inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + + /** + * Creates a new AutoMlVideoClassification instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoClassification instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Encodes the specified AutoMlVideoClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. + * @param message AutoMlVideoClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. + * @param message AutoMlVideoClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoClassification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoClassification + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Decodes an AutoMlVideoClassification message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoClassification + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Verifies an AutoMlVideoClassification 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 an AutoMlVideoClassification message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoClassification + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Creates a plain object from an AutoMlVideoClassification message. Also converts values to other types if specified. + * @param message AutoMlVideoClassification + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoClassification to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoClassification + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlVideoClassificationInputs. */ + interface IAutoMlVideoClassificationInputs { + + /** AutoMlVideoClassificationInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|null); + } + + /** Represents an AutoMlVideoClassificationInputs. */ + class AutoMlVideoClassificationInputs implements IAutoMlVideoClassificationInputs { + + /** + * Constructs a new AutoMlVideoClassificationInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs); + + /** AutoMlVideoClassificationInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType); + + /** + * Creates a new AutoMlVideoClassificationInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoClassificationInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Encodes the specified AutoMlVideoClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. + * @param message AutoMlVideoClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. + * @param message AutoMlVideoClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoClassificationInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoClassificationInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Verifies an AutoMlVideoClassificationInputs 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 an AutoMlVideoClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoClassificationInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Creates a plain object from an AutoMlVideoClassificationInputs message. Also converts values to other types if specified. + * @param message AutoMlVideoClassificationInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoClassificationInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoClassificationInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutoMlVideoClassificationInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_VERSATILE_1 = 2, + MOBILE_JETSON_VERSATILE_1 = 3 + } + } + + /** Properties of an AutoMlVideoObjectTracking. */ + interface IAutoMlVideoObjectTracking { + + /** AutoMlVideoObjectTracking inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + } + + /** Represents an AutoMlVideoObjectTracking. */ + class AutoMlVideoObjectTracking implements IAutoMlVideoObjectTracking { + + /** + * Constructs a new AutoMlVideoObjectTracking. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking); + + /** AutoMlVideoObjectTracking inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + + /** + * Creates a new AutoMlVideoObjectTracking instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoObjectTracking instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Encodes the specified AutoMlVideoObjectTracking message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. + * @param message AutoMlVideoObjectTracking message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoObjectTracking message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. + * @param message AutoMlVideoObjectTracking message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoObjectTracking + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoObjectTracking + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Verifies an AutoMlVideoObjectTracking 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 an AutoMlVideoObjectTracking message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoObjectTracking + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Creates a plain object from an AutoMlVideoObjectTracking message. Also converts values to other types if specified. + * @param message AutoMlVideoObjectTracking + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoObjectTracking to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoObjectTracking + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlVideoObjectTrackingInputs. */ + interface IAutoMlVideoObjectTrackingInputs { + + /** AutoMlVideoObjectTrackingInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|null); + } + + /** Represents an AutoMlVideoObjectTrackingInputs. */ + class AutoMlVideoObjectTrackingInputs implements IAutoMlVideoObjectTrackingInputs { + + /** + * Constructs a new AutoMlVideoObjectTrackingInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs); + + /** AutoMlVideoObjectTrackingInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType); + + /** + * Creates a new AutoMlVideoObjectTrackingInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoObjectTrackingInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Encodes the specified AutoMlVideoObjectTrackingInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. + * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoObjectTrackingInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. + * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoObjectTrackingInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoObjectTrackingInputs + * @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.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Verifies an AutoMlVideoObjectTrackingInputs 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 an AutoMlVideoObjectTrackingInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoObjectTrackingInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Creates a plain object from an AutoMlVideoObjectTrackingInputs message. Also converts values to other types if specified. + * @param message AutoMlVideoObjectTrackingInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoObjectTrackingInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoObjectTrackingInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutoMlVideoObjectTrackingInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_VERSATILE_1 = 2, + MOBILE_CORAL_VERSATILE_1 = 3, + MOBILE_CORAL_LOW_LATENCY_1 = 4, + MOBILE_JETSON_VERSATILE_1 = 5, + MOBILE_JETSON_LOW_LATENCY_1 = 6 + } + } + } + } + } + + /** Properties of a SpecialistPool. */ + interface ISpecialistPool { + + /** SpecialistPool name */ + name?: (string|null); + + /** SpecialistPool displayName */ + displayName?: (string|null); + + /** SpecialistPool specialistManagersCount */ + specialistManagersCount?: (number|null); + + /** SpecialistPool specialistManagerEmails */ + specialistManagerEmails?: (string[]|null); + + /** SpecialistPool pendingDataLabelingJobs */ + pendingDataLabelingJobs?: (string[]|null); + + /** SpecialistPool specialistWorkerEmails */ + specialistWorkerEmails?: (string[]|null); + } + + /** Represents a SpecialistPool. */ + class SpecialistPool implements ISpecialistPool { + + /** + * Constructs a new SpecialistPool. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISpecialistPool); + + /** SpecialistPool name. */ + public name: string; + + /** SpecialistPool displayName. */ + public displayName: string; + + /** SpecialistPool specialistManagersCount. */ + public specialistManagersCount: number; + + /** SpecialistPool specialistManagerEmails. */ + public specialistManagerEmails: string[]; + + /** SpecialistPool pendingDataLabelingJobs. */ + public pendingDataLabelingJobs: string[]; + + /** SpecialistPool specialistWorkerEmails. */ + public specialistWorkerEmails: string[]; + + /** + * Creates a new SpecialistPool instance using the specified properties. + * @param [properties] Properties to set + * @returns SpecialistPool instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISpecialistPool): google.cloud.aiplatform.v1.SpecialistPool; + + /** + * Encodes the specified SpecialistPool message. Does not implicitly {@link google.cloud.aiplatform.v1.SpecialistPool.verify|verify} messages. + * @param message SpecialistPool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SpecialistPool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SpecialistPool.verify|verify} messages. + * @param message SpecialistPool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SpecialistPool message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SpecialistPool + * @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.aiplatform.v1.SpecialistPool; + + /** + * Decodes a SpecialistPool message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SpecialistPool + * @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.aiplatform.v1.SpecialistPool; + + /** + * Verifies a SpecialistPool 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 SpecialistPool message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SpecialistPool + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SpecialistPool; + + /** + * Creates a plain object from a SpecialistPool message. Also converts values to other types if specified. + * @param message SpecialistPool + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SpecialistPool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SpecialistPool to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SpecialistPool + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents a SpecialistPoolService */ + class SpecialistPoolService extends $protobuf.rpc.Service { + + /** + * Constructs a new SpecialistPoolService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new SpecialistPoolService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SpecialistPoolService; + + /** + * Calls CreateSpecialistPool. + * @param request CreateSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createSpecialistPool(request: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPoolCallback): void; + + /** + * Calls CreateSpecialistPool. + * @param request CreateSpecialistPoolRequest message or plain object + * @returns Promise + */ + public createSpecialistPool(request: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest): Promise; + + /** + * Calls GetSpecialistPool. + * @param request GetSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SpecialistPool + */ + public getSpecialistPool(request: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.GetSpecialistPoolCallback): void; + + /** + * Calls GetSpecialistPool. + * @param request GetSpecialistPoolRequest message or plain object + * @returns Promise + */ + public getSpecialistPool(request: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest): Promise; + + /** + * Calls ListSpecialistPools. + * @param request ListSpecialistPoolsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSpecialistPoolsResponse + */ + public listSpecialistPools(request: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPoolsCallback): void; + + /** + * Calls ListSpecialistPools. + * @param request ListSpecialistPoolsRequest message or plain object + * @returns Promise + */ + public listSpecialistPools(request: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest): Promise; + + /** + * Calls DeleteSpecialistPool. + * @param request DeleteSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteSpecialistPool(request: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.DeleteSpecialistPoolCallback): void; + + /** + * Calls DeleteSpecialistPool. + * @param request DeleteSpecialistPoolRequest message or plain object + * @returns Promise + */ + public deleteSpecialistPool(request: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest): Promise; + + /** + * Calls UpdateSpecialistPool. + * @param request UpdateSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateSpecialistPool(request: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPoolCallback): void; + + /** + * Calls UpdateSpecialistPool. + * @param request UpdateSpecialistPoolRequest message or plain object + * @returns Promise + */ + public updateSpecialistPool(request: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest): Promise; + } + + namespace SpecialistPoolService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|createSpecialistPool}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|getSpecialistPool}. + * @param error Error, if any + * @param [response] SpecialistPool + */ + type GetSpecialistPoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SpecialistPool) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|listSpecialistPools}. + * @param error Error, if any + * @param [response] ListSpecialistPoolsResponse + */ + type ListSpecialistPoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListSpecialistPoolsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|deleteSpecialistPool}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|updateSpecialistPool}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + } + + /** Properties of a CreateSpecialistPoolRequest. */ + interface ICreateSpecialistPoolRequest { + + /** CreateSpecialistPoolRequest parent */ + parent?: (string|null); + + /** CreateSpecialistPoolRequest specialistPool */ + specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + } + + /** Represents a CreateSpecialistPoolRequest. */ + class CreateSpecialistPoolRequest implements ICreateSpecialistPoolRequest { + + /** + * Constructs a new CreateSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest); + + /** CreateSpecialistPoolRequest parent. */ + public parent: string; + + /** CreateSpecialistPoolRequest specialistPool. */ + public specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + + /** + * Creates a new CreateSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest): google.cloud.aiplatform.v1.CreateSpecialistPoolRequest; + + /** + * Encodes the specified CreateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolRequest.verify|verify} messages. + * @param message CreateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolRequest.verify|verify} messages. + * @param message CreateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSpecialistPoolRequest + * @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.aiplatform.v1.CreateSpecialistPoolRequest; + + /** + * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSpecialistPoolRequest + * @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.aiplatform.v1.CreateSpecialistPoolRequest; + + /** + * Verifies a CreateSpecialistPoolRequest 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 CreateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateSpecialistPoolRequest; + + /** + * Creates a plain object from a CreateSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message CreateSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateSpecialistPoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateSpecialistPoolOperationMetadata. */ + interface ICreateSpecialistPoolOperationMetadata { + + /** CreateSpecialistPoolOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents a CreateSpecialistPoolOperationMetadata. */ + class CreateSpecialistPoolOperationMetadata implements ICreateSpecialistPoolOperationMetadata { + + /** + * Constructs a new CreateSpecialistPoolOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata); + + /** CreateSpecialistPoolOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new CreateSpecialistPoolOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSpecialistPoolOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + + /** + * Encodes the specified CreateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSpecialistPoolOperationMetadata + * @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.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + + /** + * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSpecialistPoolOperationMetadata + * @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.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + + /** + * Verifies a CreateSpecialistPoolOperationMetadata 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 CreateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSpecialistPoolOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + + /** + * Creates a plain object from a CreateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. + * @param message CreateSpecialistPoolOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateSpecialistPoolOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateSpecialistPoolOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSpecialistPoolRequest. */ + interface IGetSpecialistPoolRequest { + + /** GetSpecialistPoolRequest name */ + name?: (string|null); + } + + /** Represents a GetSpecialistPoolRequest. */ + class GetSpecialistPoolRequest implements IGetSpecialistPoolRequest { + + /** + * Constructs a new GetSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest); + + /** GetSpecialistPoolRequest name. */ + public name: string; + + /** + * Creates a new GetSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest): google.cloud.aiplatform.v1.GetSpecialistPoolRequest; + + /** + * Encodes the specified GetSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetSpecialistPoolRequest.verify|verify} messages. + * @param message GetSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetSpecialistPoolRequest.verify|verify} messages. + * @param message GetSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSpecialistPoolRequest + * @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.aiplatform.v1.GetSpecialistPoolRequest; + + /** + * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSpecialistPoolRequest + * @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.aiplatform.v1.GetSpecialistPoolRequest; + + /** + * Verifies a GetSpecialistPoolRequest 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 GetSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetSpecialistPoolRequest; + + /** + * Creates a plain object from a GetSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message GetSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSpecialistPoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListSpecialistPoolsRequest. */ + interface IListSpecialistPoolsRequest { + + /** ListSpecialistPoolsRequest parent */ + parent?: (string|null); + + /** ListSpecialistPoolsRequest pageSize */ + pageSize?: (number|null); + + /** ListSpecialistPoolsRequest pageToken */ + pageToken?: (string|null); + + /** ListSpecialistPoolsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListSpecialistPoolsRequest. */ + class ListSpecialistPoolsRequest implements IListSpecialistPoolsRequest { + + /** + * Constructs a new ListSpecialistPoolsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest); + + /** ListSpecialistPoolsRequest parent. */ + public parent: string; + + /** ListSpecialistPoolsRequest pageSize. */ + public pageSize: number; + + /** ListSpecialistPoolsRequest pageToken. */ + public pageToken: string; + + /** ListSpecialistPoolsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new ListSpecialistPoolsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSpecialistPoolsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest): google.cloud.aiplatform.v1.ListSpecialistPoolsRequest; + + /** + * Encodes the specified ListSpecialistPoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsRequest.verify|verify} messages. + * @param message ListSpecialistPoolsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSpecialistPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsRequest.verify|verify} messages. + * @param message ListSpecialistPoolsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSpecialistPoolsRequest + * @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.aiplatform.v1.ListSpecialistPoolsRequest; + + /** + * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSpecialistPoolsRequest + * @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.aiplatform.v1.ListSpecialistPoolsRequest; + + /** + * Verifies a ListSpecialistPoolsRequest 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 ListSpecialistPoolsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSpecialistPoolsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSpecialistPoolsRequest; + + /** + * Creates a plain object from a ListSpecialistPoolsRequest message. Also converts values to other types if specified. + * @param message ListSpecialistPoolsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListSpecialistPoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSpecialistPoolsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListSpecialistPoolsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListSpecialistPoolsResponse. */ + interface IListSpecialistPoolsResponse { + + /** ListSpecialistPoolsResponse specialistPools */ + specialistPools?: (google.cloud.aiplatform.v1.ISpecialistPool[]|null); + + /** ListSpecialistPoolsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListSpecialistPoolsResponse. */ + class ListSpecialistPoolsResponse implements IListSpecialistPoolsResponse { + + /** + * Constructs a new ListSpecialistPoolsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse); + + /** ListSpecialistPoolsResponse specialistPools. */ + public specialistPools: google.cloud.aiplatform.v1.ISpecialistPool[]; + + /** ListSpecialistPoolsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListSpecialistPoolsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSpecialistPoolsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse): google.cloud.aiplatform.v1.ListSpecialistPoolsResponse; + + /** + * Encodes the specified ListSpecialistPoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.verify|verify} messages. + * @param message ListSpecialistPoolsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSpecialistPoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.verify|verify} messages. + * @param message ListSpecialistPoolsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSpecialistPoolsResponse + * @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.aiplatform.v1.ListSpecialistPoolsResponse; + + /** + * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSpecialistPoolsResponse + * @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.aiplatform.v1.ListSpecialistPoolsResponse; + + /** + * Verifies a ListSpecialistPoolsResponse 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 ListSpecialistPoolsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSpecialistPoolsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSpecialistPoolsResponse; + + /** + * Creates a plain object from a ListSpecialistPoolsResponse message. Also converts values to other types if specified. + * @param message ListSpecialistPoolsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListSpecialistPoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSpecialistPoolsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListSpecialistPoolsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteSpecialistPoolRequest. */ + interface IDeleteSpecialistPoolRequest { + + /** DeleteSpecialistPoolRequest name */ + name?: (string|null); + + /** DeleteSpecialistPoolRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteSpecialistPoolRequest. */ + class DeleteSpecialistPoolRequest implements IDeleteSpecialistPoolRequest { + + /** + * Constructs a new DeleteSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest); + + /** DeleteSpecialistPoolRequest name. */ + public name: string; + + /** DeleteSpecialistPoolRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest): google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest; + + /** + * Encodes the specified DeleteSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest.verify|verify} messages. + * @param message DeleteSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest.verify|verify} messages. + * @param message DeleteSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSpecialistPoolRequest + * @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.aiplatform.v1.DeleteSpecialistPoolRequest; + + /** + * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSpecialistPoolRequest + * @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.aiplatform.v1.DeleteSpecialistPoolRequest; + + /** + * Verifies a DeleteSpecialistPoolRequest 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 DeleteSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest; + + /** + * Creates a plain object from a DeleteSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message DeleteSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteSpecialistPoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateSpecialistPoolRequest. */ + interface IUpdateSpecialistPoolRequest { + + /** UpdateSpecialistPoolRequest specialistPool */ + specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + + /** UpdateSpecialistPoolRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateSpecialistPoolRequest. */ + class UpdateSpecialistPoolRequest implements IUpdateSpecialistPoolRequest { + + /** + * Constructs a new UpdateSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest); + + /** UpdateSpecialistPoolRequest specialistPool. */ + public specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + + /** UpdateSpecialistPoolRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest): google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest; + + /** + * Encodes the specified UpdateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest.verify|verify} messages. + * @param message UpdateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest.verify|verify} messages. + * @param message UpdateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSpecialistPoolRequest + * @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.aiplatform.v1.UpdateSpecialistPoolRequest; + + /** + * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSpecialistPoolRequest + * @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.aiplatform.v1.UpdateSpecialistPoolRequest; + + /** + * Verifies an UpdateSpecialistPoolRequest 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 an UpdateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest; + + /** + * Creates a plain object from an UpdateSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message UpdateSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateSpecialistPoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateSpecialistPoolOperationMetadata. */ + interface IUpdateSpecialistPoolOperationMetadata { + + /** UpdateSpecialistPoolOperationMetadata specialistPool */ + specialistPool?: (string|null); + + /** UpdateSpecialistPoolOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents an UpdateSpecialistPoolOperationMetadata. */ + class UpdateSpecialistPoolOperationMetadata implements IUpdateSpecialistPoolOperationMetadata { + + /** + * Constructs a new UpdateSpecialistPoolOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata); + + /** UpdateSpecialistPoolOperationMetadata specialistPool. */ + public specialistPool: string; + + /** UpdateSpecialistPoolOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new UpdateSpecialistPoolOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSpecialistPoolOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + + /** + * Encodes the specified UpdateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSpecialistPoolOperationMetadata + * @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.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + + /** + * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSpecialistPoolOperationMetadata + * @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.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + + /** + * Verifies an UpdateSpecialistPoolOperationMetadata 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 an UpdateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSpecialistPoolOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + + /** + * Creates a plain object from an UpdateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateSpecialistPoolOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateSpecialistPoolOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateSpecialistPoolOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Tensorboard. */ + interface ITensorboard { + + /** Tensorboard name */ + name?: (string|null); + + /** Tensorboard displayName */ + displayName?: (string|null); + + /** Tensorboard description */ + description?: (string|null); + + /** Tensorboard encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** Tensorboard blobStoragePathPrefix */ + blobStoragePathPrefix?: (string|null); + + /** Tensorboard runCount */ + runCount?: (number|null); + + /** Tensorboard createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Tensorboard updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Tensorboard labels */ + labels?: ({ [k: string]: string }|null); + + /** Tensorboard etag */ + etag?: (string|null); + } + + /** Represents a Tensorboard. */ + class Tensorboard implements ITensorboard { + + /** + * Constructs a new Tensorboard. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboard); + + /** Tensorboard name. */ + public name: string; + + /** Tensorboard displayName. */ + public displayName: string; + + /** Tensorboard description. */ + public description: string; + + /** Tensorboard encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** Tensorboard blobStoragePathPrefix. */ + public blobStoragePathPrefix: string; + + /** Tensorboard runCount. */ + public runCount: number; + + /** Tensorboard createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Tensorboard updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Tensorboard labels. */ + public labels: { [k: string]: string }; + + /** Tensorboard etag. */ + public etag: string; + + /** + * Creates a new Tensorboard instance using the specified properties. + * @param [properties] Properties to set + * @returns Tensorboard instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboard): google.cloud.aiplatform.v1.Tensorboard; + + /** + * Encodes the specified Tensorboard message. Does not implicitly {@link google.cloud.aiplatform.v1.Tensorboard.verify|verify} messages. + * @param message Tensorboard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Tensorboard message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Tensorboard.verify|verify} messages. + * @param message Tensorboard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Tensorboard message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Tensorboard + * @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.aiplatform.v1.Tensorboard; + + /** + * Decodes a Tensorboard message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Tensorboard + * @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.aiplatform.v1.Tensorboard; + + /** + * Verifies a Tensorboard 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 Tensorboard message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Tensorboard + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Tensorboard; + + /** + * Creates a plain object from a Tensorboard message. Also converts values to other types if specified. + * @param message Tensorboard + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Tensorboard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Tensorboard to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Tensorboard + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TimeSeriesData. */ + interface ITimeSeriesData { + + /** TimeSeriesData tensorboardTimeSeriesId */ + tensorboardTimeSeriesId?: (string|null); + + /** TimeSeriesData valueType */ + valueType?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|null); + + /** TimeSeriesData values */ + values?: (google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]|null); + } + + /** Represents a TimeSeriesData. */ + class TimeSeriesData implements ITimeSeriesData { + + /** + * Constructs a new TimeSeriesData. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITimeSeriesData); + + /** TimeSeriesData tensorboardTimeSeriesId. */ + public tensorboardTimeSeriesId: string; + + /** TimeSeriesData valueType. */ + public valueType: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType); + + /** TimeSeriesData values. */ + public values: google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]; + + /** + * Creates a new TimeSeriesData instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeSeriesData instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITimeSeriesData): google.cloud.aiplatform.v1.TimeSeriesData; + + /** + * Encodes the specified TimeSeriesData message. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesData.verify|verify} messages. + * @param message TimeSeriesData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITimeSeriesData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeSeriesData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesData.verify|verify} messages. + * @param message TimeSeriesData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimeSeriesData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimeSeriesData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimeSeriesData + * @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.aiplatform.v1.TimeSeriesData; + + /** + * Decodes a TimeSeriesData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimeSeriesData + * @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.aiplatform.v1.TimeSeriesData; + + /** + * Verifies a TimeSeriesData 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 TimeSeriesData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeSeriesData + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimeSeriesData; + + /** + * Creates a plain object from a TimeSeriesData message. Also converts values to other types if specified. + * @param message TimeSeriesData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TimeSeriesData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeSeriesData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TimeSeriesData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TimeSeriesDataPoint. */ + interface ITimeSeriesDataPoint { + + /** TimeSeriesDataPoint scalar */ + scalar?: (google.cloud.aiplatform.v1.IScalar|null); + + /** TimeSeriesDataPoint tensor */ + tensor?: (google.cloud.aiplatform.v1.ITensorboardTensor|null); + + /** TimeSeriesDataPoint blobs */ + blobs?: (google.cloud.aiplatform.v1.ITensorboardBlobSequence|null); + + /** TimeSeriesDataPoint wallTime */ + wallTime?: (google.protobuf.ITimestamp|null); + + /** TimeSeriesDataPoint step */ + step?: (number|Long|string|null); + } + + /** Represents a TimeSeriesDataPoint. */ + class TimeSeriesDataPoint implements ITimeSeriesDataPoint { + + /** + * Constructs a new TimeSeriesDataPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITimeSeriesDataPoint); + + /** TimeSeriesDataPoint scalar. */ + public scalar?: (google.cloud.aiplatform.v1.IScalar|null); + + /** TimeSeriesDataPoint tensor. */ + public tensor?: (google.cloud.aiplatform.v1.ITensorboardTensor|null); + + /** TimeSeriesDataPoint blobs. */ + public blobs?: (google.cloud.aiplatform.v1.ITensorboardBlobSequence|null); + + /** TimeSeriesDataPoint wallTime. */ + public wallTime?: (google.protobuf.ITimestamp|null); + + /** TimeSeriesDataPoint step. */ + public step: (number|Long|string); + + /** TimeSeriesDataPoint value. */ + public value?: ("scalar"|"tensor"|"blobs"); + + /** + * Creates a new TimeSeriesDataPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeSeriesDataPoint instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITimeSeriesDataPoint): google.cloud.aiplatform.v1.TimeSeriesDataPoint; + + /** + * Encodes the specified TimeSeriesDataPoint message. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesDataPoint.verify|verify} messages. + * @param message TimeSeriesDataPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITimeSeriesDataPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeSeriesDataPoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesDataPoint.verify|verify} messages. + * @param message TimeSeriesDataPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimeSeriesDataPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimeSeriesDataPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimeSeriesDataPoint + * @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.aiplatform.v1.TimeSeriesDataPoint; + + /** + * Decodes a TimeSeriesDataPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimeSeriesDataPoint + * @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.aiplatform.v1.TimeSeriesDataPoint; + + /** + * Verifies a TimeSeriesDataPoint 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 TimeSeriesDataPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeSeriesDataPoint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimeSeriesDataPoint; + + /** + * Creates a plain object from a TimeSeriesDataPoint message. Also converts values to other types if specified. + * @param message TimeSeriesDataPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TimeSeriesDataPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeSeriesDataPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TimeSeriesDataPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Scalar. */ + interface IScalar { + + /** Scalar value */ + value?: (number|null); + } + + /** Represents a Scalar. */ + class Scalar implements IScalar { + + /** + * Constructs a new Scalar. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IScalar); + + /** Scalar value. */ + public value: number; + + /** + * Creates a new Scalar instance using the specified properties. + * @param [properties] Properties to set + * @returns Scalar instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IScalar): google.cloud.aiplatform.v1.Scalar; + + /** + * Encodes the specified Scalar message. Does not implicitly {@link google.cloud.aiplatform.v1.Scalar.verify|verify} messages. + * @param message Scalar message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Scalar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Scalar.verify|verify} messages. + * @param message Scalar message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Scalar message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Scalar + * @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.aiplatform.v1.Scalar; + + /** + * Decodes a Scalar message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Scalar + * @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.aiplatform.v1.Scalar; + + /** + * Verifies a Scalar 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 Scalar message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Scalar + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Scalar; + + /** + * Creates a plain object from a Scalar message. Also converts values to other types if specified. + * @param message Scalar + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Scalar, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Scalar to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Scalar + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardTensor. */ + interface ITensorboardTensor { + + /** TensorboardTensor value */ + value?: (Uint8Array|string|null); + + /** TensorboardTensor versionNumber */ + versionNumber?: (number|null); + } + + /** Represents a TensorboardTensor. */ + class TensorboardTensor implements ITensorboardTensor { + + /** + * Constructs a new TensorboardTensor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardTensor); + + /** TensorboardTensor value. */ + public value: (Uint8Array|string); + + /** TensorboardTensor versionNumber. */ + public versionNumber: number; + + /** + * Creates a new TensorboardTensor instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardTensor instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardTensor): google.cloud.aiplatform.v1.TensorboardTensor; + + /** + * Encodes the specified TensorboardTensor message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTensor.verify|verify} messages. + * @param message TensorboardTensor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardTensor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardTensor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTensor.verify|verify} messages. + * @param message TensorboardTensor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardTensor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardTensor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardTensor + * @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.aiplatform.v1.TensorboardTensor; + + /** + * Decodes a TensorboardTensor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardTensor + * @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.aiplatform.v1.TensorboardTensor; + + /** + * Verifies a TensorboardTensor 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 TensorboardTensor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardTensor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTensor; + + /** + * Creates a plain object from a TensorboardTensor message. Also converts values to other types if specified. + * @param message TensorboardTensor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardTensor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardTensor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardTensor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardBlobSequence. */ + interface ITensorboardBlobSequence { + + /** TensorboardBlobSequence values */ + values?: (google.cloud.aiplatform.v1.ITensorboardBlob[]|null); + } + + /** Represents a TensorboardBlobSequence. */ + class TensorboardBlobSequence implements ITensorboardBlobSequence { + + /** + * Constructs a new TensorboardBlobSequence. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardBlobSequence); + + /** TensorboardBlobSequence values. */ + public values: google.cloud.aiplatform.v1.ITensorboardBlob[]; + + /** + * Creates a new TensorboardBlobSequence instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardBlobSequence instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardBlobSequence): google.cloud.aiplatform.v1.TensorboardBlobSequence; + + /** + * Encodes the specified TensorboardBlobSequence message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlobSequence.verify|verify} messages. + * @param message TensorboardBlobSequence message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardBlobSequence, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardBlobSequence message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlobSequence.verify|verify} messages. + * @param message TensorboardBlobSequence message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardBlobSequence, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardBlobSequence message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardBlobSequence + * @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.aiplatform.v1.TensorboardBlobSequence; + + /** + * Decodes a TensorboardBlobSequence message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardBlobSequence + * @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.aiplatform.v1.TensorboardBlobSequence; + + /** + * Verifies a TensorboardBlobSequence 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 TensorboardBlobSequence message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardBlobSequence + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardBlobSequence; + + /** + * Creates a plain object from a TensorboardBlobSequence message. Also converts values to other types if specified. + * @param message TensorboardBlobSequence + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardBlobSequence, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardBlobSequence to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardBlobSequence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardBlob. */ + interface ITensorboardBlob { + + /** TensorboardBlob id */ + id?: (string|null); + + /** TensorboardBlob data */ + data?: (Uint8Array|string|null); + } + + /** Represents a TensorboardBlob. */ + class TensorboardBlob implements ITensorboardBlob { + + /** + * Constructs a new TensorboardBlob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardBlob); + + /** TensorboardBlob id. */ + public id: string; + + /** TensorboardBlob data. */ + public data: (Uint8Array|string); + + /** + * Creates a new TensorboardBlob instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardBlob instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardBlob): google.cloud.aiplatform.v1.TensorboardBlob; + + /** + * Encodes the specified TensorboardBlob message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlob.verify|verify} messages. + * @param message TensorboardBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardBlob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlob.verify|verify} messages. + * @param message TensorboardBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardBlob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardBlob + * @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.aiplatform.v1.TensorboardBlob; + + /** + * Decodes a TensorboardBlob message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardBlob + * @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.aiplatform.v1.TensorboardBlob; + + /** + * Verifies a TensorboardBlob 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 TensorboardBlob message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardBlob + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardBlob; + + /** + * Creates a plain object from a TensorboardBlob message. Also converts values to other types if specified. + * @param message TensorboardBlob + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardBlob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardBlob to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardBlob + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardTimeSeries. */ + interface ITensorboardTimeSeries { + + /** TensorboardTimeSeries name */ + name?: (string|null); + + /** TensorboardTimeSeries displayName */ + displayName?: (string|null); + + /** TensorboardTimeSeries description */ + description?: (string|null); + + /** TensorboardTimeSeries valueType */ + valueType?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|null); + + /** TensorboardTimeSeries createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardTimeSeries updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardTimeSeries etag */ + etag?: (string|null); + + /** TensorboardTimeSeries pluginName */ + pluginName?: (string|null); + + /** TensorboardTimeSeries pluginData */ + pluginData?: (Uint8Array|string|null); + + /** TensorboardTimeSeries metadata */ + metadata?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata|null); + } + + /** Represents a TensorboardTimeSeries. */ + class TensorboardTimeSeries implements ITensorboardTimeSeries { + + /** + * Constructs a new TensorboardTimeSeries. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardTimeSeries); + + /** TensorboardTimeSeries name. */ + public name: string; + + /** TensorboardTimeSeries displayName. */ + public displayName: string; + + /** TensorboardTimeSeries description. */ + public description: string; + + /** TensorboardTimeSeries valueType. */ + public valueType: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType); + + /** TensorboardTimeSeries createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardTimeSeries updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardTimeSeries etag. */ + public etag: string; + + /** TensorboardTimeSeries pluginName. */ + public pluginName: string; + + /** TensorboardTimeSeries pluginData. */ + public pluginData: (Uint8Array|string); + + /** TensorboardTimeSeries metadata. */ + public metadata?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata|null); + + /** + * Creates a new TensorboardTimeSeries instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardTimeSeries instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardTimeSeries): google.cloud.aiplatform.v1.TensorboardTimeSeries; + + /** + * Encodes the specified TensorboardTimeSeries message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.verify|verify} messages. + * @param message TensorboardTimeSeries message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardTimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardTimeSeries message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.verify|verify} messages. + * @param message TensorboardTimeSeries message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardTimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardTimeSeries message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardTimeSeries + * @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.aiplatform.v1.TensorboardTimeSeries; + + /** + * Decodes a TensorboardTimeSeries message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardTimeSeries + * @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.aiplatform.v1.TensorboardTimeSeries; + + /** + * Verifies a TensorboardTimeSeries 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 TensorboardTimeSeries message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardTimeSeries + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTimeSeries; + + /** + * Creates a plain object from a TensorboardTimeSeries message. Also converts values to other types if specified. + * @param message TensorboardTimeSeries + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardTimeSeries, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardTimeSeries to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardTimeSeries + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace TensorboardTimeSeries { + + /** Properties of a Metadata. */ + interface IMetadata { + + /** Metadata maxStep */ + maxStep?: (number|Long|string|null); + + /** Metadata maxWallTime */ + maxWallTime?: (google.protobuf.ITimestamp|null); + + /** Metadata maxBlobSequenceLength */ + maxBlobSequenceLength?: (number|Long|string|null); + } + + /** Represents a Metadata. */ + class Metadata implements IMetadata { + + /** + * Constructs a new Metadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata); + + /** Metadata maxStep. */ + public maxStep: (number|Long|string); + + /** Metadata maxWallTime. */ + public maxWallTime?: (google.protobuf.ITimestamp|null); + + /** Metadata maxBlobSequenceLength. */ + public maxBlobSequenceLength: (number|Long|string); + + /** + * Creates a new Metadata instance using the specified properties. + * @param [properties] Properties to set + * @returns Metadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata): google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metadata + * @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.aiplatform.v1.TensorboardTimeSeries.Metadata; + + /** + * Decodes a Metadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metadata + * @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.aiplatform.v1.TensorboardTimeSeries.Metadata; + + /** + * Verifies a Metadata 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 Metadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @param message Metadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Metadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** ValueType enum. */ + enum ValueType { + VALUE_TYPE_UNSPECIFIED = 0, + SCALAR = 1, + TENSOR = 2, + BLOB_SEQUENCE = 3 + } + } + + /** Properties of a TensorboardExperiment. */ + interface ITensorboardExperiment { + + /** TensorboardExperiment name */ + name?: (string|null); + + /** TensorboardExperiment displayName */ + displayName?: (string|null); + + /** TensorboardExperiment description */ + description?: (string|null); + + /** TensorboardExperiment createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardExperiment updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardExperiment labels */ + labels?: ({ [k: string]: string }|null); + + /** TensorboardExperiment etag */ + etag?: (string|null); + + /** TensorboardExperiment source */ + source?: (string|null); + } + + /** Represents a TensorboardExperiment. */ + class TensorboardExperiment implements ITensorboardExperiment { + + /** + * Constructs a new TensorboardExperiment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardExperiment); + + /** TensorboardExperiment name. */ + public name: string; + + /** TensorboardExperiment displayName. */ + public displayName: string; + + /** TensorboardExperiment description. */ + public description: string; + + /** TensorboardExperiment createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardExperiment updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardExperiment labels. */ + public labels: { [k: string]: string }; + + /** TensorboardExperiment etag. */ + public etag: string; + + /** TensorboardExperiment source. */ + public source: string; + + /** + * Creates a new TensorboardExperiment instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardExperiment instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardExperiment): google.cloud.aiplatform.v1.TensorboardExperiment; + + /** + * Encodes the specified TensorboardExperiment message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardExperiment.verify|verify} messages. + * @param message TensorboardExperiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardExperiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardExperiment.verify|verify} messages. + * @param message TensorboardExperiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardExperiment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardExperiment + * @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.aiplatform.v1.TensorboardExperiment; + + /** + * Decodes a TensorboardExperiment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardExperiment + * @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.aiplatform.v1.TensorboardExperiment; + + /** + * Verifies a TensorboardExperiment 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 TensorboardExperiment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardExperiment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardExperiment; + + /** + * Creates a plain object from a TensorboardExperiment message. Also converts values to other types if specified. + * @param message TensorboardExperiment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardExperiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardExperiment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardExperiment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardRun. */ + interface ITensorboardRun { + + /** TensorboardRun name */ + name?: (string|null); + + /** TensorboardRun displayName */ + displayName?: (string|null); + + /** TensorboardRun description */ + description?: (string|null); + + /** TensorboardRun createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardRun updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardRun labels */ + labels?: ({ [k: string]: string }|null); + + /** TensorboardRun etag */ + etag?: (string|null); + } + + /** Represents a TensorboardRun. */ + class TensorboardRun implements ITensorboardRun { + + /** + * Constructs a new TensorboardRun. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardRun); + + /** TensorboardRun name. */ + public name: string; + + /** TensorboardRun displayName. */ + public displayName: string; + + /** TensorboardRun description. */ + public description: string; + + /** TensorboardRun createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardRun updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardRun labels. */ + public labels: { [k: string]: string }; + + /** TensorboardRun etag. */ + public etag: string; + + /** + * Creates a new TensorboardRun instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardRun instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardRun): google.cloud.aiplatform.v1.TensorboardRun; + + /** + * Encodes the specified TensorboardRun message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardRun.verify|verify} messages. + * @param message TensorboardRun message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardRun, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardRun message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardRun.verify|verify} messages. + * @param message TensorboardRun message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardRun, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardRun message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardRun + * @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.aiplatform.v1.TensorboardRun; + + /** + * Decodes a TensorboardRun message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardRun + * @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.aiplatform.v1.TensorboardRun; + + /** + * Verifies a TensorboardRun 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 TensorboardRun message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardRun + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardRun; + + /** + * Creates a plain object from a TensorboardRun message. Also converts values to other types if specified. + * @param message TensorboardRun + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardRun, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardRun to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardRun + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents a TensorboardService */ + class TensorboardService extends $protobuf.rpc.Service { + + /** + * Constructs a new TensorboardService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new TensorboardService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TensorboardService; + + /** + * Calls CreateTensorboard. + * @param request CreateTensorboardRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createTensorboard(request: google.cloud.aiplatform.v1.ICreateTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardCallback): void; + + /** + * Calls CreateTensorboard. + * @param request CreateTensorboardRequest message or plain object + * @returns Promise + */ + public createTensorboard(request: google.cloud.aiplatform.v1.ICreateTensorboardRequest): Promise; + + /** + * Calls GetTensorboard. + * @param request GetTensorboardRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Tensorboard + */ + public getTensorboard(request: google.cloud.aiplatform.v1.IGetTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardCallback): void; + + /** + * Calls GetTensorboard. + * @param request GetTensorboardRequest message or plain object + * @returns Promise + */ + public getTensorboard(request: google.cloud.aiplatform.v1.IGetTensorboardRequest): Promise; + + /** + * Calls ReadTensorboardUsage. + * @param request ReadTensorboardUsageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadTensorboardUsageResponse + */ + public readTensorboardUsage(request: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsageCallback): void; + + /** + * Calls ReadTensorboardUsage. + * @param request ReadTensorboardUsageRequest message or plain object + * @returns Promise + */ + public readTensorboardUsage(request: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest): Promise; + + /** + * Calls UpdateTensorboard. + * @param request UpdateTensorboardRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateTensorboard(request: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardCallback): void; + + /** + * Calls UpdateTensorboard. + * @param request UpdateTensorboardRequest message or plain object + * @returns Promise + */ + public updateTensorboard(request: google.cloud.aiplatform.v1.IUpdateTensorboardRequest): Promise; + + /** + * Calls ListTensorboards. + * @param request ListTensorboardsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTensorboardsResponse + */ + public listTensorboards(request: google.cloud.aiplatform.v1.IListTensorboardsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardsCallback): void; + + /** + * Calls ListTensorboards. + * @param request ListTensorboardsRequest message or plain object + * @returns Promise + */ + public listTensorboards(request: google.cloud.aiplatform.v1.IListTensorboardsRequest): Promise; + + /** + * Calls DeleteTensorboard. + * @param request DeleteTensorboardRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteTensorboard(request: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardCallback): void; + + /** + * Calls DeleteTensorboard. + * @param request DeleteTensorboardRequest message or plain object + * @returns Promise + */ + public deleteTensorboard(request: google.cloud.aiplatform.v1.IDeleteTensorboardRequest): Promise; + + /** + * Calls CreateTensorboardExperiment. + * @param request CreateTensorboardExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardExperiment + */ + public createTensorboardExperiment(request: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperimentCallback): void; + + /** + * Calls CreateTensorboardExperiment. + * @param request CreateTensorboardExperimentRequest message or plain object + * @returns Promise + */ + public createTensorboardExperiment(request: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest): Promise; + + /** + * Calls GetTensorboardExperiment. + * @param request GetTensorboardExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardExperiment + */ + public getTensorboardExperiment(request: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperimentCallback): void; + + /** + * Calls GetTensorboardExperiment. + * @param request GetTensorboardExperimentRequest message or plain object + * @returns Promise + */ + public getTensorboardExperiment(request: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest): Promise; + + /** + * Calls UpdateTensorboardExperiment. + * @param request UpdateTensorboardExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardExperiment + */ + public updateTensorboardExperiment(request: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperimentCallback): void; + + /** + * Calls UpdateTensorboardExperiment. + * @param request UpdateTensorboardExperimentRequest message or plain object + * @returns Promise + */ + public updateTensorboardExperiment(request: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest): Promise; + + /** + * Calls ListTensorboardExperiments. + * @param request ListTensorboardExperimentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTensorboardExperimentsResponse + */ + public listTensorboardExperiments(request: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperimentsCallback): void; + + /** + * Calls ListTensorboardExperiments. + * @param request ListTensorboardExperimentsRequest message or plain object + * @returns Promise + */ + public listTensorboardExperiments(request: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest): Promise; + + /** + * Calls DeleteTensorboardExperiment. + * @param request DeleteTensorboardExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteTensorboardExperiment(request: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperimentCallback): void; + + /** + * Calls DeleteTensorboardExperiment. + * @param request DeleteTensorboardExperimentRequest message or plain object + * @returns Promise + */ + public deleteTensorboardExperiment(request: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest): Promise; + + /** + * Calls CreateTensorboardRun. + * @param request CreateTensorboardRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardRun + */ + public createTensorboardRun(request: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRunCallback): void; + + /** + * Calls CreateTensorboardRun. + * @param request CreateTensorboardRunRequest message or plain object + * @returns Promise + */ + public createTensorboardRun(request: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest): Promise; + + /** + * Calls BatchCreateTensorboardRuns. + * @param request BatchCreateTensorboardRunsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchCreateTensorboardRunsResponse + */ + public batchCreateTensorboardRuns(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRunsCallback): void; + + /** + * Calls BatchCreateTensorboardRuns. + * @param request BatchCreateTensorboardRunsRequest message or plain object + * @returns Promise + */ + public batchCreateTensorboardRuns(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest): Promise; + + /** + * Calls GetTensorboardRun. + * @param request GetTensorboardRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardRun + */ + public getTensorboardRun(request: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRunCallback): void; + + /** + * Calls GetTensorboardRun. + * @param request GetTensorboardRunRequest message or plain object + * @returns Promise + */ + public getTensorboardRun(request: google.cloud.aiplatform.v1.IGetTensorboardRunRequest): Promise; + + /** + * Calls UpdateTensorboardRun. + * @param request UpdateTensorboardRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardRun + */ + public updateTensorboardRun(request: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRunCallback): void; + + /** + * Calls UpdateTensorboardRun. + * @param request UpdateTensorboardRunRequest message or plain object + * @returns Promise + */ + public updateTensorboardRun(request: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest): Promise; + + /** + * Calls ListTensorboardRuns. + * @param request ListTensorboardRunsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTensorboardRunsResponse + */ + public listTensorboardRuns(request: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRunsCallback): void; + + /** + * Calls ListTensorboardRuns. + * @param request ListTensorboardRunsRequest message or plain object + * @returns Promise + */ + public listTensorboardRuns(request: google.cloud.aiplatform.v1.IListTensorboardRunsRequest): Promise; + + /** + * Calls DeleteTensorboardRun. + * @param request DeleteTensorboardRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteTensorboardRun(request: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRunCallback): void; + + /** + * Calls DeleteTensorboardRun. + * @param request DeleteTensorboardRunRequest message or plain object + * @returns Promise + */ + public deleteTensorboardRun(request: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest): Promise; + + /** + * Calls BatchCreateTensorboardTimeSeries. + * @param request BatchCreateTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchCreateTensorboardTimeSeriesResponse + */ + public batchCreateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeriesCallback): void; + + /** + * Calls BatchCreateTensorboardTimeSeries. + * @param request BatchCreateTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public batchCreateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest): Promise; + + /** + * Calls CreateTensorboardTimeSeries. + * @param request CreateTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + */ + public createTensorboardTimeSeries(request: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeriesCallback): void; + + /** + * Calls CreateTensorboardTimeSeries. + * @param request CreateTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public createTensorboardTimeSeries(request: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest): Promise; + + /** + * Calls GetTensorboardTimeSeries. + * @param request GetTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + */ + public getTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeriesCallback): void; + + /** + * Calls GetTensorboardTimeSeries. + * @param request GetTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public getTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest): Promise; + + /** + * Calls UpdateTensorboardTimeSeries. + * @param request UpdateTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + */ + public updateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeriesCallback): void; + + /** + * Calls UpdateTensorboardTimeSeries. + * @param request UpdateTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public updateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest): Promise; + + /** + * Calls ListTensorboardTimeSeries. + * @param request ListTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTensorboardTimeSeriesResponse + */ + public listTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeriesCallback): void; + + /** + * Calls ListTensorboardTimeSeries. + * @param request ListTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public listTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest): Promise; + + /** + * Calls DeleteTensorboardTimeSeries. + * @param request DeleteTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeriesCallback): void; + + /** + * Calls DeleteTensorboardTimeSeries. + * @param request DeleteTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public deleteTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest): Promise; + + /** + * Calls BatchReadTensorboardTimeSeriesData. + * @param request BatchReadTensorboardTimeSeriesDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchReadTensorboardTimeSeriesDataResponse + */ + public batchReadTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesDataCallback): void; + + /** + * Calls BatchReadTensorboardTimeSeriesData. + * @param request BatchReadTensorboardTimeSeriesDataRequest message or plain object + * @returns Promise + */ + public batchReadTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest): Promise; + + /** + * Calls ReadTensorboardTimeSeriesData. + * @param request ReadTensorboardTimeSeriesDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadTensorboardTimeSeriesDataResponse + */ + public readTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesDataCallback): void; + + /** + * Calls ReadTensorboardTimeSeriesData. + * @param request ReadTensorboardTimeSeriesDataRequest message or plain object + * @returns Promise + */ + public readTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest): Promise; + + /** + * Calls ReadTensorboardBlobData. + * @param request ReadTensorboardBlobDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadTensorboardBlobDataResponse + */ + public readTensorboardBlobData(request: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobDataCallback): void; + + /** + * Calls ReadTensorboardBlobData. + * @param request ReadTensorboardBlobDataRequest message or plain object + * @returns Promise + */ + public readTensorboardBlobData(request: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest): Promise; + + /** + * Calls WriteTensorboardExperimentData. + * @param request WriteTensorboardExperimentDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WriteTensorboardExperimentDataResponse + */ + public writeTensorboardExperimentData(request: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentDataCallback): void; + + /** + * Calls WriteTensorboardExperimentData. + * @param request WriteTensorboardExperimentDataRequest message or plain object + * @returns Promise + */ + public writeTensorboardExperimentData(request: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest): Promise; + + /** + * Calls WriteTensorboardRunData. + * @param request WriteTensorboardRunDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WriteTensorboardRunDataResponse + */ + public writeTensorboardRunData(request: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunDataCallback): void; + + /** + * Calls WriteTensorboardRunData. + * @param request WriteTensorboardRunDataRequest message or plain object + * @returns Promise + */ + public writeTensorboardRunData(request: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest): Promise; + + /** + * Calls ExportTensorboardTimeSeriesData. + * @param request ExportTensorboardTimeSeriesDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExportTensorboardTimeSeriesDataResponse + */ + public exportTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesDataCallback): void; + + /** + * Calls ExportTensorboardTimeSeriesData. + * @param request ExportTensorboardTimeSeriesDataRequest message or plain object + * @returns Promise + */ + public exportTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest): Promise; + } + + namespace TensorboardService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboard}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboard}. + * @param error Error, if any + * @param [response] Tensorboard + */ + type GetTensorboardCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Tensorboard) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardUsage}. + * @param error Error, if any + * @param [response] ReadTensorboardUsageResponse + */ + type ReadTensorboardUsageCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboard}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboards}. + * @param error Error, if any + * @param [response] ListTensorboardsResponse + */ + type ListTensorboardsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboard}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardExperiment}. + * @param error Error, if any + * @param [response] TensorboardExperiment + */ + type CreateTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardExperiment}. + * @param error Error, if any + * @param [response] TensorboardExperiment + */ + type GetTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardExperiment}. + * @param error Error, if any + * @param [response] TensorboardExperiment + */ + type UpdateTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardExperiments}. + * @param error Error, if any + * @param [response] ListTensorboardExperimentsResponse + */ + type ListTensorboardExperimentsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardExperiment}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTensorboardExperimentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardRun}. + * @param error Error, if any + * @param [response] TensorboardRun + */ + type CreateTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchCreateTensorboardRuns}. + * @param error Error, if any + * @param [response] BatchCreateTensorboardRunsResponse + */ + type BatchCreateTensorboardRunsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardRun}. + * @param error Error, if any + * @param [response] TensorboardRun + */ + type GetTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardRun}. + * @param error Error, if any + * @param [response] TensorboardRun + */ + type UpdateTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardRuns}. + * @param error Error, if any + * @param [response] ListTensorboardRunsResponse + */ + type ListTensorboardRunsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardRunsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardRun}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTensorboardRunCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchCreateTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] BatchCreateTensorboardTimeSeriesResponse + */ + type BatchCreateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] TensorboardTimeSeries + */ + type CreateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] TensorboardTimeSeries + */ + type GetTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] TensorboardTimeSeries + */ + type UpdateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] ListTensorboardTimeSeriesResponse + */ + type ListTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchReadTensorboardTimeSeriesData}. + * @param error Error, if any + * @param [response] BatchReadTensorboardTimeSeriesDataResponse + */ + type BatchReadTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardTimeSeriesData}. + * @param error Error, if any + * @param [response] ReadTensorboardTimeSeriesDataResponse + */ + type ReadTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardBlobData}. + * @param error Error, if any + * @param [response] ReadTensorboardBlobDataResponse + */ + type ReadTensorboardBlobDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|writeTensorboardExperimentData}. + * @param error Error, if any + * @param [response] WriteTensorboardExperimentDataResponse + */ + type WriteTensorboardExperimentDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|writeTensorboardRunData}. + * @param error Error, if any + * @param [response] WriteTensorboardRunDataResponse + */ + type WriteTensorboardRunDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|exportTensorboardTimeSeriesData}. + * @param error Error, if any + * @param [response] ExportTensorboardTimeSeriesDataResponse + */ + type ExportTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse) => void; + } + + /** Properties of a CreateTensorboardRequest. */ + interface ICreateTensorboardRequest { + + /** CreateTensorboardRequest parent */ + parent?: (string|null); + + /** CreateTensorboardRequest tensorboard */ + tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + } + + /** Represents a CreateTensorboardRequest. */ + class CreateTensorboardRequest implements ICreateTensorboardRequest { + + /** + * Constructs a new CreateTensorboardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRequest); + + /** CreateTensorboardRequest parent. */ + public parent: string; + + /** CreateTensorboardRequest tensorboard. */ + public tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + + /** + * Creates a new CreateTensorboardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTensorboardRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRequest): google.cloud.aiplatform.v1.CreateTensorboardRequest; + + /** + * Encodes the specified CreateTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRequest.verify|verify} messages. + * @param message CreateTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRequest.verify|verify} messages. + * @param message CreateTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTensorboardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTensorboardRequest + * @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.aiplatform.v1.CreateTensorboardRequest; + + /** + * Decodes a CreateTensorboardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTensorboardRequest + * @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.aiplatform.v1.CreateTensorboardRequest; + + /** + * Verifies a CreateTensorboardRequest 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 CreateTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTensorboardRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardRequest; + + /** + * Creates a plain object from a CreateTensorboardRequest message. Also converts values to other types if specified. + * @param message CreateTensorboardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTensorboardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateTensorboardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTensorboardRequest. */ + interface IGetTensorboardRequest { + + /** GetTensorboardRequest name */ + name?: (string|null); + } + + /** Represents a GetTensorboardRequest. */ + class GetTensorboardRequest implements IGetTensorboardRequest { + + /** + * Constructs a new GetTensorboardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardRequest); + + /** GetTensorboardRequest name. */ + public name: string; + + /** + * Creates a new GetTensorboardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTensorboardRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardRequest): google.cloud.aiplatform.v1.GetTensorboardRequest; + + /** + * Encodes the specified GetTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRequest.verify|verify} messages. + * @param message GetTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRequest.verify|verify} messages. + * @param message GetTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTensorboardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTensorboardRequest + * @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.aiplatform.v1.GetTensorboardRequest; + + /** + * Decodes a GetTensorboardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTensorboardRequest + * @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.aiplatform.v1.GetTensorboardRequest; + + /** + * Verifies a GetTensorboardRequest 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 GetTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTensorboardRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardRequest; + + /** + * Creates a plain object from a GetTensorboardRequest message. Also converts values to other types if specified. + * @param message GetTensorboardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTensorboardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTensorboardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReadTensorboardUsageRequest. */ + interface IReadTensorboardUsageRequest { + + /** ReadTensorboardUsageRequest tensorboard */ + tensorboard?: (string|null); + } + + /** Represents a ReadTensorboardUsageRequest. */ + class ReadTensorboardUsageRequest implements IReadTensorboardUsageRequest { + + /** + * Constructs a new ReadTensorboardUsageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest); + + /** ReadTensorboardUsageRequest tensorboard. */ + public tensorboard: string; + + /** + * Creates a new ReadTensorboardUsageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTensorboardUsageRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest): google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; + + /** + * Encodes the specified ReadTensorboardUsageRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageRequest.verify|verify} messages. + * @param message ReadTensorboardUsageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadTensorboardUsageRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageRequest.verify|verify} messages. + * @param message ReadTensorboardUsageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadTensorboardUsageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTensorboardUsageRequest + * @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.aiplatform.v1.ReadTensorboardUsageRequest; + + /** + * Decodes a ReadTensorboardUsageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTensorboardUsageRequest + * @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.aiplatform.v1.ReadTensorboardUsageRequest; + + /** + * Verifies a ReadTensorboardUsageRequest 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 ReadTensorboardUsageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTensorboardUsageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; + + /** + * Creates a plain object from a ReadTensorboardUsageRequest message. Also converts values to other types if specified. + * @param message ReadTensorboardUsageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadTensorboardUsageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadTensorboardUsageRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReadTensorboardUsageResponse. */ + interface IReadTensorboardUsageResponse { + + /** ReadTensorboardUsageResponse monthlyUsageData */ + monthlyUsageData?: ({ [k: string]: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData }|null); + } + + /** Represents a ReadTensorboardUsageResponse. */ + class ReadTensorboardUsageResponse implements IReadTensorboardUsageResponse { + + /** + * Constructs a new ReadTensorboardUsageResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse); + + /** ReadTensorboardUsageResponse monthlyUsageData. */ + public monthlyUsageData: { [k: string]: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData }; + + /** + * Creates a new ReadTensorboardUsageResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTensorboardUsageResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse; + + /** + * Encodes the specified ReadTensorboardUsageResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.verify|verify} messages. + * @param message ReadTensorboardUsageResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadTensorboardUsageResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.verify|verify} messages. + * @param message ReadTensorboardUsageResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadTensorboardUsageResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTensorboardUsageResponse + * @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.aiplatform.v1.ReadTensorboardUsageResponse; + + /** + * Decodes a ReadTensorboardUsageResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTensorboardUsageResponse + * @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.aiplatform.v1.ReadTensorboardUsageResponse; + + /** + * Verifies a ReadTensorboardUsageResponse 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 ReadTensorboardUsageResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTensorboardUsageResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse; + + /** + * Creates a plain object from a ReadTensorboardUsageResponse message. Also converts values to other types if specified. + * @param message ReadTensorboardUsageResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadTensorboardUsageResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadTensorboardUsageResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReadTensorboardUsageResponse { + + /** Properties of a PerUserUsageData. */ + interface IPerUserUsageData { + + /** PerUserUsageData username */ + username?: (string|null); + + /** PerUserUsageData viewCount */ + viewCount?: (number|Long|string|null); + } + + /** Represents a PerUserUsageData. */ + class PerUserUsageData implements IPerUserUsageData { + + /** + * Constructs a new PerUserUsageData. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData); + + /** PerUserUsageData username. */ + public username: string; + + /** PerUserUsageData viewCount. */ + public viewCount: (number|Long|string); + + /** + * Creates a new PerUserUsageData instance using the specified properties. + * @param [properties] Properties to set + * @returns PerUserUsageData instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; + + /** + * Encodes the specified PerUserUsageData message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData.verify|verify} messages. + * @param message PerUserUsageData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PerUserUsageData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData.verify|verify} messages. + * @param message PerUserUsageData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PerUserUsageData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PerUserUsageData + * @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.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; + + /** + * Decodes a PerUserUsageData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PerUserUsageData + * @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.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; + + /** + * Verifies a PerUserUsageData 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 PerUserUsageData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PerUserUsageData + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; + + /** + * Creates a plain object from a PerUserUsageData message. Also converts values to other types if specified. + * @param message PerUserUsageData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PerUserUsageData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PerUserUsageData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PerMonthUsageData. */ + interface IPerMonthUsageData { + + /** PerMonthUsageData userUsageData */ + userUsageData?: (google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData[]|null); + } + + /** Represents a PerMonthUsageData. */ + class PerMonthUsageData implements IPerMonthUsageData { + + /** + * Constructs a new PerMonthUsageData. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData); + + /** PerMonthUsageData userUsageData. */ + public userUsageData: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData[]; + + /** + * Creates a new PerMonthUsageData instance using the specified properties. + * @param [properties] Properties to set + * @returns PerMonthUsageData instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; + + /** + * Encodes the specified PerMonthUsageData message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData.verify|verify} messages. + * @param message PerMonthUsageData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PerMonthUsageData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData.verify|verify} messages. + * @param message PerMonthUsageData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PerMonthUsageData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PerMonthUsageData + * @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.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; + + /** + * Decodes a PerMonthUsageData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PerMonthUsageData + * @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.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; + + /** + * Verifies a PerMonthUsageData 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 PerMonthUsageData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PerMonthUsageData + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; + + /** + * Creates a plain object from a PerMonthUsageData message. Also converts values to other types if specified. + * @param message PerMonthUsageData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PerMonthUsageData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PerMonthUsageData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a ListTensorboardsRequest. */ + interface IListTensorboardsRequest { + + /** ListTensorboardsRequest parent */ + parent?: (string|null); + + /** ListTensorboardsRequest filter */ + filter?: (string|null); + + /** ListTensorboardsRequest pageSize */ + pageSize?: (number|null); + + /** ListTensorboardsRequest pageToken */ + pageToken?: (string|null); + + /** ListTensorboardsRequest orderBy */ + orderBy?: (string|null); + + /** ListTensorboardsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListTensorboardsRequest. */ + class ListTensorboardsRequest implements IListTensorboardsRequest { + + /** + * Constructs a new ListTensorboardsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardsRequest); + + /** ListTensorboardsRequest parent. */ + public parent: string; + + /** ListTensorboardsRequest filter. */ + public filter: string; + + /** ListTensorboardsRequest pageSize. */ + public pageSize: number; + + /** ListTensorboardsRequest pageToken. */ + public pageToken: string; + + /** ListTensorboardsRequest orderBy. */ + public orderBy: string; + + /** ListTensorboardsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new ListTensorboardsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardsRequest): google.cloud.aiplatform.v1.ListTensorboardsRequest; + + /** + * Encodes the specified ListTensorboardsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsRequest.verify|verify} messages. + * @param message ListTensorboardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTensorboardsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsRequest.verify|verify} messages. + * @param message ListTensorboardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTensorboardsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardsRequest + * @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.aiplatform.v1.ListTensorboardsRequest; + + /** + * Decodes a ListTensorboardsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardsRequest + * @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.aiplatform.v1.ListTensorboardsRequest; + + /** + * Verifies a ListTensorboardsRequest 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 ListTensorboardsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardsRequest; + + /** + * Creates a plain object from a ListTensorboardsRequest message. Also converts values to other types if specified. + * @param message ListTensorboardsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTensorboardsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListTensorboardsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListTensorboardsResponse. */ + interface IListTensorboardsResponse { + + /** ListTensorboardsResponse tensorboards */ + tensorboards?: (google.cloud.aiplatform.v1.ITensorboard[]|null); + + /** ListTensorboardsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListTensorboardsResponse. */ + class ListTensorboardsResponse implements IListTensorboardsResponse { + + /** + * Constructs a new ListTensorboardsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardsResponse); + + /** ListTensorboardsResponse tensorboards. */ + public tensorboards: google.cloud.aiplatform.v1.ITensorboard[]; + + /** ListTensorboardsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListTensorboardsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardsResponse): google.cloud.aiplatform.v1.ListTensorboardsResponse; + + /** + * Encodes the specified ListTensorboardsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsResponse.verify|verify} messages. + * @param message ListTensorboardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTensorboardsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsResponse.verify|verify} messages. + * @param message ListTensorboardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTensorboardsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardsResponse + * @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.aiplatform.v1.ListTensorboardsResponse; + + /** + * Decodes a ListTensorboardsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardsResponse + * @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.aiplatform.v1.ListTensorboardsResponse; + + /** + * Verifies a ListTensorboardsResponse 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 ListTensorboardsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardsResponse; + + /** + * Creates a plain object from a ListTensorboardsResponse message. Also converts values to other types if specified. + * @param message ListTensorboardsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTensorboardsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListTensorboardsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateTensorboardRequest. */ + interface IUpdateTensorboardRequest { + + /** UpdateTensorboardRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTensorboardRequest tensorboard */ + tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + } + + /** Represents an UpdateTensorboardRequest. */ + class UpdateTensorboardRequest implements IUpdateTensorboardRequest { + + /** + * Constructs a new UpdateTensorboardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRequest); + + /** UpdateTensorboardRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTensorboardRequest tensorboard. */ + public tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + + /** + * Creates a new UpdateTensorboardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateTensorboardRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRequest): google.cloud.aiplatform.v1.UpdateTensorboardRequest; + + /** + * Encodes the specified UpdateTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRequest.verify|verify} messages. + * @param message UpdateTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRequest.verify|verify} messages. + * @param message UpdateTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateTensorboardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateTensorboardRequest + * @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.aiplatform.v1.UpdateTensorboardRequest; + + /** + * Decodes an UpdateTensorboardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateTensorboardRequest + * @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.aiplatform.v1.UpdateTensorboardRequest; + + /** + * Verifies an UpdateTensorboardRequest 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 an UpdateTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateTensorboardRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardRequest; + + /** + * Creates a plain object from an UpdateTensorboardRequest message. Also converts values to other types if specified. + * @param message UpdateTensorboardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateTensorboardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateTensorboardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteTensorboardRequest. */ + interface IDeleteTensorboardRequest { + + /** DeleteTensorboardRequest name */ + name?: (string|null); + } + + /** Represents a DeleteTensorboardRequest. */ + class DeleteTensorboardRequest implements IDeleteTensorboardRequest { + + /** + * Constructs a new DeleteTensorboardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRequest); + + /** DeleteTensorboardRequest name. */ + public name: string; + + /** + * Creates a new DeleteTensorboardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTensorboardRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRequest): google.cloud.aiplatform.v1.DeleteTensorboardRequest; + + /** + * Encodes the specified DeleteTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRequest.verify|verify} messages. + * @param message DeleteTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRequest.verify|verify} messages. + * @param message DeleteTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTensorboardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTensorboardRequest + * @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.aiplatform.v1.DeleteTensorboardRequest; + + /** + * Decodes a DeleteTensorboardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTensorboardRequest + * @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.aiplatform.v1.DeleteTensorboardRequest; + + /** + * Verifies a DeleteTensorboardRequest 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 DeleteTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTensorboardRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardRequest; + + /** + * Creates a plain object from a DeleteTensorboardRequest message. Also converts values to other types if specified. + * @param message DeleteTensorboardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTensorboardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteTensorboardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateTensorboardExperimentRequest. */ + interface ICreateTensorboardExperimentRequest { + + /** CreateTensorboardExperimentRequest parent */ + parent?: (string|null); + + /** CreateTensorboardExperimentRequest tensorboardExperiment */ + tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + + /** CreateTensorboardExperimentRequest tensorboardExperimentId */ + tensorboardExperimentId?: (string|null); + } + + /** Represents a CreateTensorboardExperimentRequest. */ + class CreateTensorboardExperimentRequest implements ICreateTensorboardExperimentRequest { + + /** + * Constructs a new CreateTensorboardExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest); + + /** CreateTensorboardExperimentRequest parent. */ + public parent: string; + + /** CreateTensorboardExperimentRequest tensorboardExperiment. */ + public tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + + /** CreateTensorboardExperimentRequest tensorboardExperimentId. */ + public tensorboardExperimentId: string; + + /** + * Creates a new CreateTensorboardExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTensorboardExperimentRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest): google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest; + + /** + * Encodes the specified CreateTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.verify|verify} messages. + * @param message CreateTensorboardExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.verify|verify} messages. + * @param message CreateTensorboardExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTensorboardExperimentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTensorboardExperimentRequest + * @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.aiplatform.v1.CreateTensorboardExperimentRequest; + + /** + * Decodes a CreateTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTensorboardExperimentRequest + * @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.aiplatform.v1.CreateTensorboardExperimentRequest; + + /** + * Verifies a CreateTensorboardExperimentRequest 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 CreateTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTensorboardExperimentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest; + + /** + * Creates a plain object from a CreateTensorboardExperimentRequest message. Also converts values to other types if specified. + * @param message CreateTensorboardExperimentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTensorboardExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateTensorboardExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTensorboardExperimentRequest. */ + interface IGetTensorboardExperimentRequest { + + /** GetTensorboardExperimentRequest name */ + name?: (string|null); + } + + /** Represents a GetTensorboardExperimentRequest. */ + class GetTensorboardExperimentRequest implements IGetTensorboardExperimentRequest { + + /** + * Constructs a new GetTensorboardExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest); + + /** GetTensorboardExperimentRequest name. */ + public name: string; + + /** + * Creates a new GetTensorboardExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTensorboardExperimentRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest): google.cloud.aiplatform.v1.GetTensorboardExperimentRequest; + + /** + * Encodes the specified GetTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardExperimentRequest.verify|verify} messages. + * @param message GetTensorboardExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardExperimentRequest.verify|verify} messages. + * @param message GetTensorboardExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTensorboardExperimentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTensorboardExperimentRequest + * @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.aiplatform.v1.GetTensorboardExperimentRequest; + + /** + * Decodes a GetTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTensorboardExperimentRequest + * @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.aiplatform.v1.GetTensorboardExperimentRequest; + + /** + * Verifies a GetTensorboardExperimentRequest 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 GetTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTensorboardExperimentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardExperimentRequest; + + /** + * Creates a plain object from a GetTensorboardExperimentRequest message. Also converts values to other types if specified. + * @param message GetTensorboardExperimentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTensorboardExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTensorboardExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListTensorboardExperimentsRequest. */ + interface IListTensorboardExperimentsRequest { + + /** ListTensorboardExperimentsRequest parent */ + parent?: (string|null); + + /** ListTensorboardExperimentsRequest filter */ + filter?: (string|null); + + /** ListTensorboardExperimentsRequest pageSize */ + pageSize?: (number|null); + + /** ListTensorboardExperimentsRequest pageToken */ + pageToken?: (string|null); + + /** ListTensorboardExperimentsRequest orderBy */ + orderBy?: (string|null); + + /** ListTensorboardExperimentsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListTensorboardExperimentsRequest. */ + class ListTensorboardExperimentsRequest implements IListTensorboardExperimentsRequest { + + /** + * Constructs a new ListTensorboardExperimentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest); + + /** ListTensorboardExperimentsRequest parent. */ + public parent: string; + + /** ListTensorboardExperimentsRequest filter. */ + public filter: string; + + /** ListTensorboardExperimentsRequest pageSize. */ + public pageSize: number; + + /** ListTensorboardExperimentsRequest pageToken. */ + public pageToken: string; + + /** ListTensorboardExperimentsRequest orderBy. */ + public orderBy: string; + + /** ListTensorboardExperimentsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new ListTensorboardExperimentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardExperimentsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest): google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest; + + /** + * Encodes the specified ListTensorboardExperimentsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.verify|verify} messages. + * @param message ListTensorboardExperimentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTensorboardExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.verify|verify} messages. + * @param message ListTensorboardExperimentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTensorboardExperimentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardExperimentsRequest + * @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.aiplatform.v1.ListTensorboardExperimentsRequest; + + /** + * Decodes a ListTensorboardExperimentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardExperimentsRequest + * @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.aiplatform.v1.ListTensorboardExperimentsRequest; + + /** + * Verifies a ListTensorboardExperimentsRequest 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 ListTensorboardExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardExperimentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest; + + /** + * Creates a plain object from a ListTensorboardExperimentsRequest message. Also converts values to other types if specified. + * @param message ListTensorboardExperimentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTensorboardExperimentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListTensorboardExperimentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListTensorboardExperimentsResponse. */ + interface IListTensorboardExperimentsResponse { + + /** ListTensorboardExperimentsResponse tensorboardExperiments */ + tensorboardExperiments?: (google.cloud.aiplatform.v1.ITensorboardExperiment[]|null); + + /** ListTensorboardExperimentsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListTensorboardExperimentsResponse. */ + class ListTensorboardExperimentsResponse implements IListTensorboardExperimentsResponse { + + /** + * Constructs a new ListTensorboardExperimentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse); + + /** ListTensorboardExperimentsResponse tensorboardExperiments. */ + public tensorboardExperiments: google.cloud.aiplatform.v1.ITensorboardExperiment[]; + + /** ListTensorboardExperimentsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListTensorboardExperimentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardExperimentsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; + + /** + * Encodes the specified ListTensorboardExperimentsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.verify|verify} messages. + * @param message ListTensorboardExperimentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTensorboardExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.verify|verify} messages. + * @param message ListTensorboardExperimentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTensorboardExperimentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from - * @returns Scalar + * @param [length] Message length if known beforehand + * @returns ListTensorboardExperimentsResponse * @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.aiplatform.v1.Scalar; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; /** - * Verifies a Scalar message. + * Decodes a ListTensorboardExperimentsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardExperimentsResponse + * @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.aiplatform.v1.ListTensorboardExperimentsResponse; + + /** + * Verifies a ListTensorboardExperimentsResponse 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 Scalar message from a plain object. Also converts values to their respective internal types. + * Creates a ListTensorboardExperimentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Scalar + * @returns ListTensorboardExperimentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Scalar; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; /** - * Creates a plain object from a Scalar message. Also converts values to other types if specified. - * @param message Scalar + * Creates a plain object from a ListTensorboardExperimentsResponse message. Also converts values to other types if specified. + * @param message ListTensorboardExperimentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Scalar, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Scalar to JSON. + * Converts this ListTensorboardExperimentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Scalar + * Gets the default type url for ListTensorboardExperimentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardTensor. */ - interface ITensorboardTensor { + /** Properties of an UpdateTensorboardExperimentRequest. */ + interface IUpdateTensorboardExperimentRequest { - /** TensorboardTensor value */ - value?: (Uint8Array|string|null); + /** UpdateTensorboardExperimentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** TensorboardTensor versionNumber */ - versionNumber?: (number|null); + /** UpdateTensorboardExperimentRequest tensorboardExperiment */ + tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); } - /** Represents a TensorboardTensor. */ - class TensorboardTensor implements ITensorboardTensor { + /** Represents an UpdateTensorboardExperimentRequest. */ + class UpdateTensorboardExperimentRequest implements IUpdateTensorboardExperimentRequest { /** - * Constructs a new TensorboardTensor. + * Constructs a new UpdateTensorboardExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardTensor); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest); - /** TensorboardTensor value. */ - public value: (Uint8Array|string); + /** UpdateTensorboardExperimentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** TensorboardTensor versionNumber. */ - public versionNumber: number; + /** UpdateTensorboardExperimentRequest tensorboardExperiment. */ + public tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); /** - * Creates a new TensorboardTensor instance using the specified properties. + * Creates a new UpdateTensorboardExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardTensor instance + * @returns UpdateTensorboardExperimentRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardTensor): google.cloud.aiplatform.v1.TensorboardTensor; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; /** - * Encodes the specified TensorboardTensor message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTensor.verify|verify} messages. - * @param message TensorboardTensor message or plain object to encode + * Encodes the specified UpdateTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.verify|verify} messages. + * @param message UpdateTensorboardExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardTensor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardTensor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTensor.verify|verify} messages. - * @param message TensorboardTensor message or plain object to encode + * Encodes the specified UpdateTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.verify|verify} messages. + * @param message UpdateTensorboardExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardTensor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardTensor message from the specified reader or buffer. + * Decodes an UpdateTensorboardExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardTensor + * @returns UpdateTensorboardExperimentRequest * @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.aiplatform.v1.TensorboardTensor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; /** - * Decodes a TensorboardTensor message from the specified reader or buffer, length delimited. + * Decodes an UpdateTensorboardExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardTensor + * @returns UpdateTensorboardExperimentRequest * @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.aiplatform.v1.TensorboardTensor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; /** - * Verifies a TensorboardTensor message. + * Verifies an UpdateTensorboardExperimentRequest 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 TensorboardTensor message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardTensor + * @returns UpdateTensorboardExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTensor; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; /** - * Creates a plain object from a TensorboardTensor message. Also converts values to other types if specified. - * @param message TensorboardTensor + * Creates a plain object from an UpdateTensorboardExperimentRequest message. Also converts values to other types if specified. + * @param message UpdateTensorboardExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardTensor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardTensor to JSON. + * Converts this UpdateTensorboardExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardTensor + * Gets the default type url for UpdateTensorboardExperimentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardBlobSequence. */ - interface ITensorboardBlobSequence { + /** Properties of a DeleteTensorboardExperimentRequest. */ + interface IDeleteTensorboardExperimentRequest { - /** TensorboardBlobSequence values */ - values?: (google.cloud.aiplatform.v1.ITensorboardBlob[]|null); + /** DeleteTensorboardExperimentRequest name */ + name?: (string|null); } - /** Represents a TensorboardBlobSequence. */ - class TensorboardBlobSequence implements ITensorboardBlobSequence { + /** Represents a DeleteTensorboardExperimentRequest. */ + class DeleteTensorboardExperimentRequest implements IDeleteTensorboardExperimentRequest { /** - * Constructs a new TensorboardBlobSequence. + * Constructs a new DeleteTensorboardExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardBlobSequence); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest); - /** TensorboardBlobSequence values. */ - public values: google.cloud.aiplatform.v1.ITensorboardBlob[]; + /** DeleteTensorboardExperimentRequest name. */ + public name: string; /** - * Creates a new TensorboardBlobSequence instance using the specified properties. + * Creates a new DeleteTensorboardExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardBlobSequence instance + * @returns DeleteTensorboardExperimentRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardBlobSequence): google.cloud.aiplatform.v1.TensorboardBlobSequence; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; /** - * Encodes the specified TensorboardBlobSequence message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlobSequence.verify|verify} messages. - * @param message TensorboardBlobSequence message or plain object to encode + * Encodes the specified DeleteTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest.verify|verify} messages. + * @param message DeleteTensorboardExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardBlobSequence, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardBlobSequence message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlobSequence.verify|verify} messages. - * @param message TensorboardBlobSequence message or plain object to encode + * Encodes the specified DeleteTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest.verify|verify} messages. + * @param message DeleteTensorboardExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardBlobSequence, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardBlobSequence message from the specified reader or buffer. + * Decodes a DeleteTensorboardExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardBlobSequence + * @returns DeleteTensorboardExperimentRequest * @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.aiplatform.v1.TensorboardBlobSequence; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; /** - * Decodes a TensorboardBlobSequence message from the specified reader or buffer, length delimited. + * Decodes a DeleteTensorboardExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardBlobSequence + * @returns DeleteTensorboardExperimentRequest * @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.aiplatform.v1.TensorboardBlobSequence; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; /** - * Verifies a TensorboardBlobSequence message. + * Verifies a DeleteTensorboardExperimentRequest 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 TensorboardBlobSequence message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardBlobSequence + * @returns DeleteTensorboardExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardBlobSequence; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; /** - * Creates a plain object from a TensorboardBlobSequence message. Also converts values to other types if specified. - * @param message TensorboardBlobSequence + * Creates a plain object from a DeleteTensorboardExperimentRequest message. Also converts values to other types if specified. + * @param message DeleteTensorboardExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardBlobSequence, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardBlobSequence to JSON. + * Converts this DeleteTensorboardExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardBlobSequence + * Gets the default type url for DeleteTensorboardExperimentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardBlob. */ - interface ITensorboardBlob { + /** Properties of a BatchCreateTensorboardRunsRequest. */ + interface IBatchCreateTensorboardRunsRequest { - /** TensorboardBlob id */ - id?: (string|null); + /** BatchCreateTensorboardRunsRequest parent */ + parent?: (string|null); - /** TensorboardBlob data */ - data?: (Uint8Array|string|null); + /** BatchCreateTensorboardRunsRequest requests */ + requests?: (google.cloud.aiplatform.v1.ICreateTensorboardRunRequest[]|null); } - /** Represents a TensorboardBlob. */ - class TensorboardBlob implements ITensorboardBlob { + /** Represents a BatchCreateTensorboardRunsRequest. */ + class BatchCreateTensorboardRunsRequest implements IBatchCreateTensorboardRunsRequest { /** - * Constructs a new TensorboardBlob. + * Constructs a new BatchCreateTensorboardRunsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardBlob); + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest); - /** TensorboardBlob id. */ - public id: string; + /** BatchCreateTensorboardRunsRequest parent. */ + public parent: string; - /** TensorboardBlob data. */ - public data: (Uint8Array|string); + /** BatchCreateTensorboardRunsRequest requests. */ + public requests: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest[]; /** - * Creates a new TensorboardBlob instance using the specified properties. + * Creates a new BatchCreateTensorboardRunsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardBlob instance + * @returns BatchCreateTensorboardRunsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardBlob): google.cloud.aiplatform.v1.TensorboardBlob; + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; /** - * Encodes the specified TensorboardBlob message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlob.verify|verify} messages. - * @param message TensorboardBlob message or plain object to encode + * Encodes the specified BatchCreateTensorboardRunsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.verify|verify} messages. + * @param message BatchCreateTensorboardRunsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardBlob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardBlob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlob.verify|verify} messages. - * @param message TensorboardBlob message or plain object to encode + * Encodes the specified BatchCreateTensorboardRunsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.verify|verify} messages. + * @param message BatchCreateTensorboardRunsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardBlob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardBlob message from the specified reader or buffer. + * Decodes a BatchCreateTensorboardRunsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardBlob + * @returns BatchCreateTensorboardRunsRequest * @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.aiplatform.v1.TensorboardBlob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; /** - * Decodes a TensorboardBlob message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateTensorboardRunsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardBlob + * @returns BatchCreateTensorboardRunsRequest * @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.aiplatform.v1.TensorboardBlob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; /** - * Verifies a TensorboardBlob message. + * Verifies a BatchCreateTensorboardRunsRequest 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 TensorboardBlob message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateTensorboardRunsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardBlob + * @returns BatchCreateTensorboardRunsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardBlob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; /** - * Creates a plain object from a TensorboardBlob message. Also converts values to other types if specified. - * @param message TensorboardBlob + * Creates a plain object from a BatchCreateTensorboardRunsRequest message. Also converts values to other types if specified. + * @param message BatchCreateTensorboardRunsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardBlob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardBlob to JSON. + * Converts this BatchCreateTensorboardRunsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardBlob + * Gets the default type url for BatchCreateTensorboardRunsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardTimeSeries. */ - interface ITensorboardTimeSeries { - - /** TensorboardTimeSeries name */ - name?: (string|null); - - /** TensorboardTimeSeries displayName */ - displayName?: (string|null); - - /** TensorboardTimeSeries description */ - description?: (string|null); - - /** TensorboardTimeSeries valueType */ - valueType?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|null); - - /** TensorboardTimeSeries createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardTimeSeries updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardTimeSeries etag */ - etag?: (string|null); - - /** TensorboardTimeSeries pluginName */ - pluginName?: (string|null); - - /** TensorboardTimeSeries pluginData */ - pluginData?: (Uint8Array|string|null); + /** Properties of a BatchCreateTensorboardRunsResponse. */ + interface IBatchCreateTensorboardRunsResponse { - /** TensorboardTimeSeries metadata */ - metadata?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata|null); + /** BatchCreateTensorboardRunsResponse tensorboardRuns */ + tensorboardRuns?: (google.cloud.aiplatform.v1.ITensorboardRun[]|null); } - /** Represents a TensorboardTimeSeries. */ - class TensorboardTimeSeries implements ITensorboardTimeSeries { + /** Represents a BatchCreateTensorboardRunsResponse. */ + class BatchCreateTensorboardRunsResponse implements IBatchCreateTensorboardRunsResponse { /** - * Constructs a new TensorboardTimeSeries. + * Constructs a new BatchCreateTensorboardRunsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardTimeSeries); - - /** TensorboardTimeSeries name. */ - public name: string; - - /** TensorboardTimeSeries displayName. */ - public displayName: string; - - /** TensorboardTimeSeries description. */ - public description: string; - - /** TensorboardTimeSeries valueType. */ - public valueType: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType); - - /** TensorboardTimeSeries createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardTimeSeries updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardTimeSeries etag. */ - public etag: string; - - /** TensorboardTimeSeries pluginName. */ - public pluginName: string; - - /** TensorboardTimeSeries pluginData. */ - public pluginData: (Uint8Array|string); + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse); - /** TensorboardTimeSeries metadata. */ - public metadata?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata|null); + /** BatchCreateTensorboardRunsResponse tensorboardRuns. */ + public tensorboardRuns: google.cloud.aiplatform.v1.ITensorboardRun[]; /** - * Creates a new TensorboardTimeSeries instance using the specified properties. + * Creates a new BatchCreateTensorboardRunsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardTimeSeries instance + * @returns BatchCreateTensorboardRunsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardTimeSeries): google.cloud.aiplatform.v1.TensorboardTimeSeries; + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; /** - * Encodes the specified TensorboardTimeSeries message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.verify|verify} messages. - * @param message TensorboardTimeSeries message or plain object to encode + * Encodes the specified BatchCreateTensorboardRunsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.verify|verify} messages. + * @param message BatchCreateTensorboardRunsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardTimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardTimeSeries message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.verify|verify} messages. - * @param message TensorboardTimeSeries message or plain object to encode + * Encodes the specified BatchCreateTensorboardRunsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.verify|verify} messages. + * @param message BatchCreateTensorboardRunsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardTimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardTimeSeries message from the specified reader or buffer. + * Decodes a BatchCreateTensorboardRunsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardTimeSeries + * @returns BatchCreateTensorboardRunsResponse * @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.aiplatform.v1.TensorboardTimeSeries; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; /** - * Decodes a TensorboardTimeSeries message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateTensorboardRunsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardTimeSeries + * @returns BatchCreateTensorboardRunsResponse * @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.aiplatform.v1.TensorboardTimeSeries; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; /** - * Verifies a TensorboardTimeSeries message. + * Verifies a BatchCreateTensorboardRunsResponse 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 TensorboardTimeSeries message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateTensorboardRunsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardTimeSeries + * @returns BatchCreateTensorboardRunsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTimeSeries; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; /** - * Creates a plain object from a TensorboardTimeSeries message. Also converts values to other types if specified. - * @param message TensorboardTimeSeries + * Creates a plain object from a BatchCreateTensorboardRunsResponse message. Also converts values to other types if specified. + * @param message BatchCreateTensorboardRunsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardTimeSeries, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardTimeSeries to JSON. + * Converts this BatchCreateTensorboardRunsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardTimeSeries + * Gets the default type url for BatchCreateTensorboardRunsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace TensorboardTimeSeries { - - /** Properties of a Metadata. */ - interface IMetadata { - - /** Metadata maxStep */ - maxStep?: (number|Long|string|null); - - /** Metadata maxWallTime */ - maxWallTime?: (google.protobuf.ITimestamp|null); - - /** Metadata maxBlobSequenceLength */ - maxBlobSequenceLength?: (number|Long|string|null); - } - - /** Represents a Metadata. */ - class Metadata implements IMetadata { - - /** - * Constructs a new Metadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata); - - /** Metadata maxStep. */ - public maxStep: (number|Long|string); - - /** Metadata maxWallTime. */ - public maxWallTime?: (google.protobuf.ITimestamp|null); - - /** Metadata maxBlobSequenceLength. */ - public maxBlobSequenceLength: (number|Long|string); - - /** - * Creates a new Metadata instance using the specified properties. - * @param [properties] Properties to set - * @returns Metadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata): google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata; - - /** - * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metadata - * @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.aiplatform.v1.TensorboardTimeSeries.Metadata; - - /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metadata - * @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.aiplatform.v1.TensorboardTimeSeries.Metadata; - - /** - * Verifies a Metadata 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 Metadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata; - - /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @param message Metadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Metadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Metadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** ValueType enum. */ - enum ValueType { - VALUE_TYPE_UNSPECIFIED = 0, - SCALAR = 1, - TENSOR = 2, - BLOB_SEQUENCE = 3 - } - } - - /** Properties of a TensorboardExperiment. */ - interface ITensorboardExperiment { - - /** TensorboardExperiment name */ - name?: (string|null); - - /** TensorboardExperiment displayName */ - displayName?: (string|null); - - /** TensorboardExperiment description */ - description?: (string|null); - - /** TensorboardExperiment createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardExperiment updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a CreateTensorboardRunRequest. */ + interface ICreateTensorboardRunRequest { - /** TensorboardExperiment labels */ - labels?: ({ [k: string]: string }|null); + /** CreateTensorboardRunRequest parent */ + parent?: (string|null); - /** TensorboardExperiment etag */ - etag?: (string|null); + /** CreateTensorboardRunRequest tensorboardRun */ + tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); - /** TensorboardExperiment source */ - source?: (string|null); + /** CreateTensorboardRunRequest tensorboardRunId */ + tensorboardRunId?: (string|null); } - /** Represents a TensorboardExperiment. */ - class TensorboardExperiment implements ITensorboardExperiment { + /** Represents a CreateTensorboardRunRequest. */ + class CreateTensorboardRunRequest implements ICreateTensorboardRunRequest { /** - * Constructs a new TensorboardExperiment. + * Constructs a new CreateTensorboardRunRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardExperiment); - - /** TensorboardExperiment name. */ - public name: string; - - /** TensorboardExperiment displayName. */ - public displayName: string; - - /** TensorboardExperiment description. */ - public description: string; - - /** TensorboardExperiment createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardExperiment updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest); - /** TensorboardExperiment labels. */ - public labels: { [k: string]: string }; + /** CreateTensorboardRunRequest parent. */ + public parent: string; - /** TensorboardExperiment etag. */ - public etag: string; + /** CreateTensorboardRunRequest tensorboardRun. */ + public tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); - /** TensorboardExperiment source. */ - public source: string; + /** CreateTensorboardRunRequest tensorboardRunId. */ + public tensorboardRunId: string; /** - * Creates a new TensorboardExperiment instance using the specified properties. + * Creates a new CreateTensorboardRunRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardExperiment instance + * @returns CreateTensorboardRunRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardExperiment): google.cloud.aiplatform.v1.TensorboardExperiment; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; /** - * Encodes the specified TensorboardExperiment message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardExperiment.verify|verify} messages. - * @param message TensorboardExperiment message or plain object to encode + * Encodes the specified CreateTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRunRequest.verify|verify} messages. + * @param message CreateTensorboardRunRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardExperiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardExperiment.verify|verify} messages. - * @param message TensorboardExperiment message or plain object to encode + * Encodes the specified CreateTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRunRequest.verify|verify} messages. + * @param message CreateTensorboardRunRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardExperiment message from the specified reader or buffer. + * Decodes a CreateTensorboardRunRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardExperiment + * @returns CreateTensorboardRunRequest * @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.aiplatform.v1.TensorboardExperiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; /** - * Decodes a TensorboardExperiment message from the specified reader or buffer, length delimited. + * Decodes a CreateTensorboardRunRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardExperiment + * @returns CreateTensorboardRunRequest * @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.aiplatform.v1.TensorboardExperiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; /** - * Verifies a TensorboardExperiment message. + * Verifies a CreateTensorboardRunRequest 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 TensorboardExperiment message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardExperiment + * @returns CreateTensorboardRunRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardExperiment; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; /** - * Creates a plain object from a TensorboardExperiment message. Also converts values to other types if specified. - * @param message TensorboardExperiment + * Creates a plain object from a CreateTensorboardRunRequest message. Also converts values to other types if specified. + * @param message CreateTensorboardRunRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardExperiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardExperiment to JSON. + * Converts this CreateTensorboardRunRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardExperiment + * Gets the default type url for CreateTensorboardRunRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardRun. */ - interface ITensorboardRun { + /** Properties of a GetTensorboardRunRequest. */ + interface IGetTensorboardRunRequest { - /** TensorboardRun name */ + /** GetTensorboardRunRequest name */ name?: (string|null); - - /** TensorboardRun displayName */ - displayName?: (string|null); - - /** TensorboardRun description */ - description?: (string|null); - - /** TensorboardRun createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardRun updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardRun labels */ - labels?: ({ [k: string]: string }|null); - - /** TensorboardRun etag */ - etag?: (string|null); } - /** Represents a TensorboardRun. */ - class TensorboardRun implements ITensorboardRun { + /** Represents a GetTensorboardRunRequest. */ + class GetTensorboardRunRequest implements IGetTensorboardRunRequest { /** - * Constructs a new TensorboardRun. + * Constructs a new GetTensorboardRunRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardRun); + constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardRunRequest); - /** TensorboardRun name. */ + /** GetTensorboardRunRequest name. */ public name: string; - /** TensorboardRun displayName. */ - public displayName: string; - - /** TensorboardRun description. */ - public description: string; - - /** TensorboardRun createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardRun updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardRun labels. */ - public labels: { [k: string]: string }; - - /** TensorboardRun etag. */ - public etag: string; - /** - * Creates a new TensorboardRun instance using the specified properties. + * Creates a new GetTensorboardRunRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardRun instance + * @returns GetTensorboardRunRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardRun): google.cloud.aiplatform.v1.TensorboardRun; + public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardRunRequest): google.cloud.aiplatform.v1.GetTensorboardRunRequest; /** - * Encodes the specified TensorboardRun message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardRun.verify|verify} messages. - * @param message TensorboardRun message or plain object to encode + * Encodes the specified GetTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRunRequest.verify|verify} messages. + * @param message GetTensorboardRunRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardRun, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardRun message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardRun.verify|verify} messages. - * @param message TensorboardRun message or plain object to encode + * Encodes the specified GetTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRunRequest.verify|verify} messages. + * @param message GetTensorboardRunRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardRun, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardRun message from the specified reader or buffer. + * Decodes a GetTensorboardRunRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardRun + * @returns GetTensorboardRunRequest * @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.aiplatform.v1.TensorboardRun; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetTensorboardRunRequest; /** - * Decodes a TensorboardRun message from the specified reader or buffer, length delimited. + * Decodes a GetTensorboardRunRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardRun + * @returns GetTensorboardRunRequest * @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.aiplatform.v1.TensorboardRun; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetTensorboardRunRequest; /** - * Verifies a TensorboardRun message. + * Verifies a GetTensorboardRunRequest 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 TensorboardRun message from a plain object. Also converts values to their respective internal types. + * Creates a GetTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardRun + * @returns GetTensorboardRunRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardRun; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardRunRequest; /** - * Creates a plain object from a TensorboardRun message. Also converts values to other types if specified. - * @param message TensorboardRun + * Creates a plain object from a GetTensorboardRunRequest message. Also converts values to other types if specified. + * @param message GetTensorboardRunRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardRun, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardRun to JSON. + * Converts this GetTensorboardRunRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardRun + * Gets the default type url for GetTensorboardRunRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a TensorboardService */ - class TensorboardService extends $protobuf.rpc.Service { + /** Properties of a ReadTensorboardBlobDataRequest. */ + interface IReadTensorboardBlobDataRequest { - /** - * Constructs a new TensorboardService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ReadTensorboardBlobDataRequest timeSeries */ + timeSeries?: (string|null); - /** - * Creates new TensorboardService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TensorboardService; + /** ReadTensorboardBlobDataRequest blobIds */ + blobIds?: (string[]|null); + } - /** - * Calls CreateTensorboard. - * @param request CreateTensorboardRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createTensorboard(request: google.cloud.aiplatform.v1.ICreateTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardCallback): void; + /** Represents a ReadTensorboardBlobDataRequest. */ + class ReadTensorboardBlobDataRequest implements IReadTensorboardBlobDataRequest { /** - * Calls CreateTensorboard. - * @param request CreateTensorboardRequest message or plain object - * @returns Promise + * Constructs a new ReadTensorboardBlobDataRequest. + * @param [properties] Properties to set */ - public createTensorboard(request: google.cloud.aiplatform.v1.ICreateTensorboardRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest); - /** - * Calls GetTensorboard. - * @param request GetTensorboardRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Tensorboard - */ - public getTensorboard(request: google.cloud.aiplatform.v1.IGetTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardCallback): void; + /** ReadTensorboardBlobDataRequest timeSeries. */ + public timeSeries: string; - /** - * Calls GetTensorboard. - * @param request GetTensorboardRequest message or plain object - * @returns Promise - */ - public getTensorboard(request: google.cloud.aiplatform.v1.IGetTensorboardRequest): Promise; + /** ReadTensorboardBlobDataRequest blobIds. */ + public blobIds: string[]; /** - * Calls ReadTensorboardUsage. - * @param request ReadTensorboardUsageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadTensorboardUsageResponse + * Creates a new ReadTensorboardBlobDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTensorboardBlobDataRequest instance */ - public readTensorboardUsage(request: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsageCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; /** - * Calls ReadTensorboardUsage. - * @param request ReadTensorboardUsageRequest message or plain object - * @returns Promise + * Encodes the specified ReadTensorboardBlobDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest.verify|verify} messages. + * @param message ReadTensorboardBlobDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readTensorboardUsage(request: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateTensorboard. - * @param request UpdateTensorboardRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified ReadTensorboardBlobDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest.verify|verify} messages. + * @param message ReadTensorboardBlobDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateTensorboard(request: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateTensorboard. - * @param request UpdateTensorboardRequest message or plain object - * @returns Promise + * Decodes a ReadTensorboardBlobDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTensorboardBlobDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateTensorboard(request: google.cloud.aiplatform.v1.IUpdateTensorboardRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; /** - * Calls ListTensorboards. - * @param request ListTensorboardsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTensorboardsResponse + * Decodes a ReadTensorboardBlobDataRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTensorboardBlobDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listTensorboards(request: google.cloud.aiplatform.v1.IListTensorboardsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; /** - * Calls ListTensorboards. - * @param request ListTensorboardsRequest message or plain object - * @returns Promise + * Verifies a ReadTensorboardBlobDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listTensorboards(request: google.cloud.aiplatform.v1.IListTensorboardsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteTensorboard. - * @param request DeleteTensorboardRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a ReadTensorboardBlobDataRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTensorboardBlobDataRequest */ - public deleteTensorboard(request: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; /** - * Calls DeleteTensorboard. - * @param request DeleteTensorboardRequest message or plain object - * @returns Promise + * Creates a plain object from a ReadTensorboardBlobDataRequest message. Also converts values to other types if specified. + * @param message ReadTensorboardBlobDataRequest + * @param [options] Conversion options + * @returns Plain object */ - public deleteTensorboard(request: google.cloud.aiplatform.v1.IDeleteTensorboardRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateTensorboardExperiment. - * @param request CreateTensorboardExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardExperiment + * Converts this ReadTensorboardBlobDataRequest to JSON. + * @returns JSON object */ - public createTensorboardExperiment(request: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperimentCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls CreateTensorboardExperiment. - * @param request CreateTensorboardExperimentRequest message or plain object - * @returns Promise + * Gets the default type url for ReadTensorboardBlobDataRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public createTensorboardExperiment(request: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls GetTensorboardExperiment. - * @param request GetTensorboardExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardExperiment - */ - public getTensorboardExperiment(request: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperimentCallback): void; + /** Properties of a ReadTensorboardBlobDataResponse. */ + interface IReadTensorboardBlobDataResponse { - /** - * Calls GetTensorboardExperiment. - * @param request GetTensorboardExperimentRequest message or plain object - * @returns Promise - */ - public getTensorboardExperiment(request: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest): Promise; + /** ReadTensorboardBlobDataResponse blobs */ + blobs?: (google.cloud.aiplatform.v1.ITensorboardBlob[]|null); + } - /** - * Calls UpdateTensorboardExperiment. - * @param request UpdateTensorboardExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardExperiment - */ - public updateTensorboardExperiment(request: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperimentCallback): void; + /** Represents a ReadTensorboardBlobDataResponse. */ + class ReadTensorboardBlobDataResponse implements IReadTensorboardBlobDataResponse { /** - * Calls UpdateTensorboardExperiment. - * @param request UpdateTensorboardExperimentRequest message or plain object - * @returns Promise + * Constructs a new ReadTensorboardBlobDataResponse. + * @param [properties] Properties to set */ - public updateTensorboardExperiment(request: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse); - /** - * Calls ListTensorboardExperiments. - * @param request ListTensorboardExperimentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTensorboardExperimentsResponse - */ - public listTensorboardExperiments(request: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperimentsCallback): void; + /** ReadTensorboardBlobDataResponse blobs. */ + public blobs: google.cloud.aiplatform.v1.ITensorboardBlob[]; /** - * Calls ListTensorboardExperiments. - * @param request ListTensorboardExperimentsRequest message or plain object - * @returns Promise + * Creates a new ReadTensorboardBlobDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTensorboardBlobDataResponse instance */ - public listTensorboardExperiments(request: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; /** - * Calls DeleteTensorboardExperiment. - * @param request DeleteTensorboardExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified ReadTensorboardBlobDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.verify|verify} messages. + * @param message ReadTensorboardBlobDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTensorboardExperiment(request: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperimentCallback): void; + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTensorboardExperiment. - * @param request DeleteTensorboardExperimentRequest message or plain object - * @returns Promise + * Encodes the specified ReadTensorboardBlobDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.verify|verify} messages. + * @param message ReadTensorboardBlobDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTensorboardExperiment(request: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateTensorboardRun. - * @param request CreateTensorboardRunRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardRun + * Decodes a ReadTensorboardBlobDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTensorboardBlobDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createTensorboardRun(request: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRunCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; /** - * Calls CreateTensorboardRun. - * @param request CreateTensorboardRunRequest message or plain object - * @returns Promise + * Decodes a ReadTensorboardBlobDataResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTensorboardBlobDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createTensorboardRun(request: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; /** - * Calls BatchCreateTensorboardRuns. - * @param request BatchCreateTensorboardRunsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchCreateTensorboardRunsResponse + * Verifies a ReadTensorboardBlobDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public batchCreateTensorboardRuns(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRunsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls BatchCreateTensorboardRuns. - * @param request BatchCreateTensorboardRunsRequest message or plain object - * @returns Promise + * Creates a ReadTensorboardBlobDataResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTensorboardBlobDataResponse */ - public batchCreateTensorboardRuns(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; /** - * Calls GetTensorboardRun. - * @param request GetTensorboardRunRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardRun + * Creates a plain object from a ReadTensorboardBlobDataResponse message. Also converts values to other types if specified. + * @param message ReadTensorboardBlobDataResponse + * @param [options] Conversion options + * @returns Plain object */ - public getTensorboardRun(request: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRunCallback): void; + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetTensorboardRun. - * @param request GetTensorboardRunRequest message or plain object - * @returns Promise + * Converts this ReadTensorboardBlobDataResponse to JSON. + * @returns JSON object */ - public getTensorboardRun(request: google.cloud.aiplatform.v1.IGetTensorboardRunRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls UpdateTensorboardRun. - * @param request UpdateTensorboardRunRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardRun + * Gets the default type url for ReadTensorboardBlobDataResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public updateTensorboardRun(request: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRunCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListTensorboardRunsRequest. */ + interface IListTensorboardRunsRequest { + + /** ListTensorboardRunsRequest parent */ + parent?: (string|null); + + /** ListTensorboardRunsRequest filter */ + filter?: (string|null); + + /** ListTensorboardRunsRequest pageSize */ + pageSize?: (number|null); + + /** ListTensorboardRunsRequest pageToken */ + pageToken?: (string|null); + + /** ListTensorboardRunsRequest orderBy */ + orderBy?: (string|null); + + /** ListTensorboardRunsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListTensorboardRunsRequest. */ + class ListTensorboardRunsRequest implements IListTensorboardRunsRequest { /** - * Calls UpdateTensorboardRun. - * @param request UpdateTensorboardRunRequest message or plain object - * @returns Promise + * Constructs a new ListTensorboardRunsRequest. + * @param [properties] Properties to set */ - public updateTensorboardRun(request: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsRequest); + + /** ListTensorboardRunsRequest parent. */ + public parent: string; + + /** ListTensorboardRunsRequest filter. */ + public filter: string; + + /** ListTensorboardRunsRequest pageSize. */ + public pageSize: number; + + /** ListTensorboardRunsRequest pageToken. */ + public pageToken: string; + + /** ListTensorboardRunsRequest orderBy. */ + public orderBy: string; - /** - * Calls ListTensorboardRuns. - * @param request ListTensorboardRunsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTensorboardRunsResponse - */ - public listTensorboardRuns(request: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRunsCallback): void; + /** ListTensorboardRunsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Calls ListTensorboardRuns. - * @param request ListTensorboardRunsRequest message or plain object - * @returns Promise + * Creates a new ListTensorboardRunsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardRunsRequest instance */ - public listTensorboardRuns(request: google.cloud.aiplatform.v1.IListTensorboardRunsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsRequest): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; /** - * Calls DeleteTensorboardRun. - * @param request DeleteTensorboardRunRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified ListTensorboardRunsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsRequest.verify|verify} messages. + * @param message ListTensorboardRunsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTensorboardRun(request: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRunCallback): void; + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTensorboardRun. - * @param request DeleteTensorboardRunRequest message or plain object - * @returns Promise + * Encodes the specified ListTensorboardRunsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsRequest.verify|verify} messages. + * @param message ListTensorboardRunsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTensorboardRun(request: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls BatchCreateTensorboardTimeSeries. - * @param request BatchCreateTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchCreateTensorboardTimeSeriesResponse + * Decodes a ListTensorboardRunsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardRunsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchCreateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeriesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; /** - * Calls BatchCreateTensorboardTimeSeries. - * @param request BatchCreateTensorboardTimeSeriesRequest message or plain object - * @returns Promise + * Decodes a ListTensorboardRunsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardRunsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchCreateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; /** - * Calls CreateTensorboardTimeSeries. - * @param request CreateTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + * Verifies a ListTensorboardRunsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createTensorboardTimeSeries(request: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeriesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateTensorboardTimeSeries. - * @param request CreateTensorboardTimeSeriesRequest message or plain object - * @returns Promise + * Creates a ListTensorboardRunsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardRunsRequest */ - public createTensorboardTimeSeries(request: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; /** - * Calls GetTensorboardTimeSeries. - * @param request GetTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + * Creates a plain object from a ListTensorboardRunsRequest message. Also converts values to other types if specified. + * @param message ListTensorboardRunsRequest + * @param [options] Conversion options + * @returns Plain object */ - public getTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeriesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetTensorboardTimeSeries. - * @param request GetTensorboardTimeSeriesRequest message or plain object - * @returns Promise + * Converts this ListTensorboardRunsRequest to JSON. + * @returns JSON object */ - public getTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls UpdateTensorboardTimeSeries. - * @param request UpdateTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + * Gets the default type url for ListTensorboardRunsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public updateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeriesCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls UpdateTensorboardTimeSeries. - * @param request UpdateTensorboardTimeSeriesRequest message or plain object - * @returns Promise - */ - public updateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest): Promise; + /** Properties of a ListTensorboardRunsResponse. */ + interface IListTensorboardRunsResponse { - /** - * Calls ListTensorboardTimeSeries. - * @param request ListTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTensorboardTimeSeriesResponse - */ - public listTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeriesCallback): void; + /** ListTensorboardRunsResponse tensorboardRuns */ + tensorboardRuns?: (google.cloud.aiplatform.v1.ITensorboardRun[]|null); - /** - * Calls ListTensorboardTimeSeries. - * @param request ListTensorboardTimeSeriesRequest message or plain object - * @returns Promise - */ - public listTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest): Promise; + /** ListTensorboardRunsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Calls DeleteTensorboardTimeSeries. - * @param request DeleteTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeriesCallback): void; + /** Represents a ListTensorboardRunsResponse. */ + class ListTensorboardRunsResponse implements IListTensorboardRunsResponse { /** - * Calls DeleteTensorboardTimeSeries. - * @param request DeleteTensorboardTimeSeriesRequest message or plain object - * @returns Promise + * Constructs a new ListTensorboardRunsResponse. + * @param [properties] Properties to set */ - public deleteTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsResponse); - /** - * Calls BatchReadTensorboardTimeSeriesData. - * @param request BatchReadTensorboardTimeSeriesDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchReadTensorboardTimeSeriesDataResponse - */ - public batchReadTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesDataCallback): void; + /** ListTensorboardRunsResponse tensorboardRuns. */ + public tensorboardRuns: google.cloud.aiplatform.v1.ITensorboardRun[]; - /** - * Calls BatchReadTensorboardTimeSeriesData. - * @param request BatchReadTensorboardTimeSeriesDataRequest message or plain object - * @returns Promise - */ - public batchReadTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest): Promise; + /** ListTensorboardRunsResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls ReadTensorboardTimeSeriesData. - * @param request ReadTensorboardTimeSeriesDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadTensorboardTimeSeriesDataResponse + * Creates a new ListTensorboardRunsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardRunsResponse instance */ - public readTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesDataCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsResponse): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; /** - * Calls ReadTensorboardTimeSeriesData. - * @param request ReadTensorboardTimeSeriesDataRequest message or plain object - * @returns Promise + * Encodes the specified ListTensorboardRunsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsResponse.verify|verify} messages. + * @param message ListTensorboardRunsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ReadTensorboardBlobData. - * @param request ReadTensorboardBlobDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadTensorboardBlobDataResponse + * Encodes the specified ListTensorboardRunsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsResponse.verify|verify} messages. + * @param message ListTensorboardRunsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readTensorboardBlobData(request: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobDataCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ReadTensorboardBlobData. - * @param request ReadTensorboardBlobDataRequest message or plain object - * @returns Promise + * Decodes a ListTensorboardRunsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardRunsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public readTensorboardBlobData(request: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; /** - * Calls WriteTensorboardExperimentData. - * @param request WriteTensorboardExperimentDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WriteTensorboardExperimentDataResponse + * Decodes a ListTensorboardRunsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardRunsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public writeTensorboardExperimentData(request: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentDataCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; /** - * Calls WriteTensorboardExperimentData. - * @param request WriteTensorboardExperimentDataRequest message or plain object - * @returns Promise + * Verifies a ListTensorboardRunsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public writeTensorboardExperimentData(request: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls WriteTensorboardRunData. - * @param request WriteTensorboardRunDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WriteTensorboardRunDataResponse + * Creates a ListTensorboardRunsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardRunsResponse */ - public writeTensorboardRunData(request: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunDataCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; /** - * Calls WriteTensorboardRunData. - * @param request WriteTensorboardRunDataRequest message or plain object - * @returns Promise + * Creates a plain object from a ListTensorboardRunsResponse message. Also converts values to other types if specified. + * @param message ListTensorboardRunsResponse + * @param [options] Conversion options + * @returns Plain object */ - public writeTensorboardRunData(request: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ExportTensorboardTimeSeriesData. - * @param request ExportTensorboardTimeSeriesDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExportTensorboardTimeSeriesDataResponse + * Converts this ListTensorboardRunsResponse to JSON. + * @returns JSON object */ - public exportTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesDataCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ExportTensorboardTimeSeriesData. - * @param request ExportTensorboardTimeSeriesDataRequest message or plain object - * @returns Promise + * Gets the default type url for ListTensorboardRunsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public exportTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace TensorboardService { + /** Properties of an UpdateTensorboardRunRequest. */ + interface IUpdateTensorboardRunRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboard}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** UpdateTensorboardRunRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboard}. - * @param error Error, if any - * @param [response] Tensorboard - */ - type GetTensorboardCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Tensorboard) => void; + /** UpdateTensorboardRunRequest tensorboardRun */ + tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardUsage}. - * @param error Error, if any - * @param [response] ReadTensorboardUsageResponse - */ - type ReadTensorboardUsageCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse) => void; + /** Represents an UpdateTensorboardRunRequest. */ + class UpdateTensorboardRunRequest implements IUpdateTensorboardRunRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboard}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new UpdateTensorboardRunRequest. + * @param [properties] Properties to set */ - type UpdateTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboards}. - * @param error Error, if any - * @param [response] ListTensorboardsResponse - */ - type ListTensorboardsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardsResponse) => void; + /** UpdateTensorboardRunRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboard}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** UpdateTensorboardRunRequest tensorboardRun. */ + public tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardExperiment}. - * @param error Error, if any - * @param [response] TensorboardExperiment + * Creates a new UpdateTensorboardRunRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateTensorboardRunRequest instance */ - type CreateTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardExperiment}. - * @param error Error, if any - * @param [response] TensorboardExperiment + * Encodes the specified UpdateTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.verify|verify} messages. + * @param message UpdateTensorboardRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardExperiment}. - * @param error Error, if any - * @param [response] TensorboardExperiment + * Encodes the specified UpdateTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.verify|verify} messages. + * @param message UpdateTensorboardRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardExperiments}. - * @param error Error, if any - * @param [response] ListTensorboardExperimentsResponse + * Decodes an UpdateTensorboardRunRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateTensorboardRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListTensorboardExperimentsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardExperiment}. - * @param error Error, if any - * @param [response] Operation + * Decodes an UpdateTensorboardRunRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateTensorboardRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteTensorboardExperimentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardRun}. - * @param error Error, if any - * @param [response] TensorboardRun + * Verifies an UpdateTensorboardRunRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchCreateTensorboardRuns}. - * @param error Error, if any - * @param [response] BatchCreateTensorboardRunsResponse + * Creates an UpdateTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateTensorboardRunRequest */ - type BatchCreateTensorboardRunsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardRun}. - * @param error Error, if any - * @param [response] TensorboardRun + * Creates a plain object from an UpdateTensorboardRunRequest message. Also converts values to other types if specified. + * @param message UpdateTensorboardRunRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardRun}. - * @param error Error, if any - * @param [response] TensorboardRun + * Converts this UpdateTensorboardRunRequest to JSON. + * @returns JSON object */ - type UpdateTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardRuns}. - * @param error Error, if any - * @param [response] ListTensorboardRunsResponse + * Gets the default type url for UpdateTensorboardRunRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListTensorboardRunsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardRunsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardRun}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteTensorboardRunCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Properties of a DeleteTensorboardRunRequest. */ + interface IDeleteTensorboardRunRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchCreateTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] BatchCreateTensorboardTimeSeriesResponse - */ - type BatchCreateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse) => void; + /** DeleteTensorboardRunRequest name */ + name?: (string|null); + } + + /** Represents a DeleteTensorboardRunRequest. */ + class DeleteTensorboardRunRequest implements IDeleteTensorboardRunRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] TensorboardTimeSeries + * Constructs a new DeleteTensorboardRunRequest. + * @param [properties] Properties to set */ - type CreateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest); + + /** DeleteTensorboardRunRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] TensorboardTimeSeries + * Creates a new DeleteTensorboardRunRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTensorboardRunRequest instance */ - type GetTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] TensorboardTimeSeries + * Encodes the specified DeleteTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRunRequest.verify|verify} messages. + * @param message DeleteTensorboardRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] ListTensorboardTimeSeriesResponse + * Encodes the specified DeleteTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRunRequest.verify|verify} messages. + * @param message DeleteTensorboardRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] Operation + * Decodes a DeleteTensorboardRunRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTensorboardRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchReadTensorboardTimeSeriesData}. - * @param error Error, if any - * @param [response] BatchReadTensorboardTimeSeriesDataResponse + * Decodes a DeleteTensorboardRunRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTensorboardRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type BatchReadTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardTimeSeriesData}. - * @param error Error, if any - * @param [response] ReadTensorboardTimeSeriesDataResponse + * Verifies a DeleteTensorboardRunRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ReadTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardBlobData}. - * @param error Error, if any - * @param [response] ReadTensorboardBlobDataResponse + * Creates a DeleteTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTensorboardRunRequest */ - type ReadTensorboardBlobDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|writeTensorboardExperimentData}. - * @param error Error, if any - * @param [response] WriteTensorboardExperimentDataResponse + * Creates a plain object from a DeleteTensorboardRunRequest message. Also converts values to other types if specified. + * @param message DeleteTensorboardRunRequest + * @param [options] Conversion options + * @returns Plain object */ - type WriteTensorboardExperimentDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|writeTensorboardRunData}. - * @param error Error, if any - * @param [response] WriteTensorboardRunDataResponse + * Converts this DeleteTensorboardRunRequest to JSON. + * @returns JSON object */ - type WriteTensorboardRunDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|exportTensorboardTimeSeriesData}. - * @param error Error, if any - * @param [response] ExportTensorboardTimeSeriesDataResponse + * Gets the default type url for DeleteTensorboardRunRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ExportTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardRequest. */ - interface ICreateTensorboardRequest { + /** Properties of a BatchCreateTensorboardTimeSeriesRequest. */ + interface IBatchCreateTensorboardTimeSeriesRequest { - /** CreateTensorboardRequest parent */ + /** BatchCreateTensorboardTimeSeriesRequest parent */ parent?: (string|null); - /** CreateTensorboardRequest tensorboard */ - tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + /** BatchCreateTensorboardTimeSeriesRequest requests */ + requests?: (google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest[]|null); } - /** Represents a CreateTensorboardRequest. */ - class CreateTensorboardRequest implements ICreateTensorboardRequest { + /** Represents a BatchCreateTensorboardTimeSeriesRequest. */ + class BatchCreateTensorboardTimeSeriesRequest implements IBatchCreateTensorboardTimeSeriesRequest { /** - * Constructs a new CreateTensorboardRequest. + * Constructs a new BatchCreateTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest); - /** CreateTensorboardRequest parent. */ + /** BatchCreateTensorboardTimeSeriesRequest parent. */ public parent: string; - /** CreateTensorboardRequest tensorboard. */ - public tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + /** BatchCreateTensorboardTimeSeriesRequest requests. */ + public requests: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest[]; /** - * Creates a new CreateTensorboardRequest instance using the specified properties. + * Creates a new BatchCreateTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardRequest instance + * @returns BatchCreateTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRequest): google.cloud.aiplatform.v1.CreateTensorboardRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; /** - * Encodes the specified CreateTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRequest.verify|verify} messages. - * @param message CreateTensorboardRequest message or plain object to encode + * Encodes the specified BatchCreateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message BatchCreateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRequest.verify|verify} messages. - * @param message CreateTensorboardRequest message or plain object to encode + * Encodes the specified BatchCreateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message BatchCreateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardRequest message from the specified reader or buffer. + * Decodes a BatchCreateTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesRequest * @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.aiplatform.v1.CreateTensorboardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; /** - * Decodes a CreateTensorboardRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesRequest * @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.aiplatform.v1.CreateTensorboardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; /** - * Verifies a CreateTensorboardRequest message. + * Verifies a BatchCreateTensorboardTimeSeriesRequest 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 CreateTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; /** - * Creates a plain object from a CreateTensorboardRequest message. Also converts values to other types if specified. - * @param message CreateTensorboardRequest + * Creates a plain object from a BatchCreateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message BatchCreateTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardRequest to JSON. + * Converts this BatchCreateTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardRequest + * Gets the default type url for BatchCreateTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTensorboardRequest. */ - interface IGetTensorboardRequest { + /** Properties of a BatchCreateTensorboardTimeSeriesResponse. */ + interface IBatchCreateTensorboardTimeSeriesResponse { - /** GetTensorboardRequest name */ - name?: (string|null); + /** BatchCreateTensorboardTimeSeriesResponse tensorboardTimeSeries */ + tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries[]|null); } - /** Represents a GetTensorboardRequest. */ - class GetTensorboardRequest implements IGetTensorboardRequest { + /** Represents a BatchCreateTensorboardTimeSeriesResponse. */ + class BatchCreateTensorboardTimeSeriesResponse implements IBatchCreateTensorboardTimeSeriesResponse { /** - * Constructs a new GetTensorboardRequest. + * Constructs a new BatchCreateTensorboardTimeSeriesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse); - /** GetTensorboardRequest name. */ - public name: string; + /** BatchCreateTensorboardTimeSeriesResponse tensorboardTimeSeries. */ + public tensorboardTimeSeries: google.cloud.aiplatform.v1.ITensorboardTimeSeries[]; /** - * Creates a new GetTensorboardRequest instance using the specified properties. + * Creates a new BatchCreateTensorboardTimeSeriesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTensorboardRequest instance + * @returns BatchCreateTensorboardTimeSeriesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardRequest): google.cloud.aiplatform.v1.GetTensorboardRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; /** - * Encodes the specified GetTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRequest.verify|verify} messages. - * @param message GetTensorboardRequest message or plain object to encode + * Encodes the specified BatchCreateTensorboardTimeSeriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.verify|verify} messages. + * @param message BatchCreateTensorboardTimeSeriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRequest.verify|verify} messages. - * @param message GetTensorboardRequest message or plain object to encode + * Encodes the specified BatchCreateTensorboardTimeSeriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.verify|verify} messages. + * @param message BatchCreateTensorboardTimeSeriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTensorboardRequest message from the specified reader or buffer. + * Decodes a BatchCreateTensorboardTimeSeriesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesResponse * @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.aiplatform.v1.GetTensorboardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; /** - * Decodes a GetTensorboardRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateTensorboardTimeSeriesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesResponse * @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.aiplatform.v1.GetTensorboardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; /** - * Verifies a GetTensorboardRequest message. + * Verifies a BatchCreateTensorboardTimeSeriesResponse 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 GetTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateTensorboardTimeSeriesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; /** - * Creates a plain object from a GetTensorboardRequest message. Also converts values to other types if specified. - * @param message GetTensorboardRequest + * Creates a plain object from a BatchCreateTensorboardTimeSeriesResponse message. Also converts values to other types if specified. + * @param message BatchCreateTensorboardTimeSeriesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTensorboardRequest to JSON. + * Converts this BatchCreateTensorboardTimeSeriesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTensorboardRequest + * Gets the default type url for BatchCreateTensorboardTimeSeriesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardUsageRequest. */ - interface IReadTensorboardUsageRequest { + /** Properties of a CreateTensorboardTimeSeriesRequest. */ + interface ICreateTensorboardTimeSeriesRequest { - /** ReadTensorboardUsageRequest tensorboard */ - tensorboard?: (string|null); + /** CreateTensorboardTimeSeriesRequest parent */ + parent?: (string|null); + + /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeriesId */ + tensorboardTimeSeriesId?: (string|null); + + /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeries */ + tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); } - /** Represents a ReadTensorboardUsageRequest. */ - class ReadTensorboardUsageRequest implements IReadTensorboardUsageRequest { + /** Represents a CreateTensorboardTimeSeriesRequest. */ + class CreateTensorboardTimeSeriesRequest implements ICreateTensorboardTimeSeriesRequest { /** - * Constructs a new ReadTensorboardUsageRequest. + * Constructs a new CreateTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest); - /** ReadTensorboardUsageRequest tensorboard. */ - public tensorboard: string; + /** CreateTensorboardTimeSeriesRequest parent. */ + public parent: string; + + /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeriesId. */ + public tensorboardTimeSeriesId: string; + + /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeries. */ + public tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); /** - * Creates a new ReadTensorboardUsageRequest instance using the specified properties. + * Creates a new CreateTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardUsageRequest instance + * @returns CreateTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest): google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; /** - * Encodes the specified ReadTensorboardUsageRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageRequest.verify|verify} messages. - * @param message ReadTensorboardUsageRequest message or plain object to encode + * Encodes the specified CreateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message CreateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardUsageRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageRequest.verify|verify} messages. - * @param message ReadTensorboardUsageRequest message or plain object to encode + * Encodes the specified CreateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message CreateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardUsageRequest message from the specified reader or buffer. + * Decodes a CreateTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardUsageRequest + * @returns CreateTensorboardTimeSeriesRequest * @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.aiplatform.v1.ReadTensorboardUsageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; /** - * Decodes a ReadTensorboardUsageRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardUsageRequest + * @returns CreateTensorboardTimeSeriesRequest * @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.aiplatform.v1.ReadTensorboardUsageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; /** - * Verifies a ReadTensorboardUsageRequest message. + * Verifies a CreateTensorboardTimeSeriesRequest 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 ReadTensorboardUsageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardUsageRequest + * @returns CreateTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; /** - * Creates a plain object from a ReadTensorboardUsageRequest message. Also converts values to other types if specified. - * @param message ReadTensorboardUsageRequest + * Creates a plain object from a CreateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message CreateTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardUsageRequest to JSON. + * Converts this CreateTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardUsageRequest + * Gets the default type url for CreateTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardUsageResponse. */ - interface IReadTensorboardUsageResponse { + /** Properties of a GetTensorboardTimeSeriesRequest. */ + interface IGetTensorboardTimeSeriesRequest { - /** ReadTensorboardUsageResponse monthlyUsageData */ - monthlyUsageData?: ({ [k: string]: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData }|null); + /** GetTensorboardTimeSeriesRequest name */ + name?: (string|null); } - /** Represents a ReadTensorboardUsageResponse. */ - class ReadTensorboardUsageResponse implements IReadTensorboardUsageResponse { + /** Represents a GetTensorboardTimeSeriesRequest. */ + class GetTensorboardTimeSeriesRequest implements IGetTensorboardTimeSeriesRequest { /** - * Constructs a new ReadTensorboardUsageResponse. + * Constructs a new GetTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse); + constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest); - /** ReadTensorboardUsageResponse monthlyUsageData. */ - public monthlyUsageData: { [k: string]: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData }; + /** GetTensorboardTimeSeriesRequest name. */ + public name: string; /** - * Creates a new ReadTensorboardUsageResponse instance using the specified properties. + * Creates a new GetTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardUsageResponse instance + * @returns GetTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; /** - * Encodes the specified ReadTensorboardUsageResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.verify|verify} messages. - * @param message ReadTensorboardUsageResponse message or plain object to encode + * Encodes the specified GetTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message GetTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardUsageResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.verify|verify} messages. - * @param message ReadTensorboardUsageResponse message or plain object to encode + * Encodes the specified GetTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message GetTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardUsageResponse message from the specified reader or buffer. + * Decodes a GetTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardUsageResponse + * @returns GetTensorboardTimeSeriesRequest * @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.aiplatform.v1.ReadTensorboardUsageResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; /** - * Decodes a ReadTensorboardUsageResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardUsageResponse + * @returns GetTensorboardTimeSeriesRequest * @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.aiplatform.v1.ReadTensorboardUsageResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; /** - * Verifies a ReadTensorboardUsageResponse message. + * Verifies a GetTensorboardTimeSeriesRequest 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 ReadTensorboardUsageResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardUsageResponse + * @returns GetTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; /** - * Creates a plain object from a ReadTensorboardUsageResponse message. Also converts values to other types if specified. - * @param message ReadTensorboardUsageResponse + * Creates a plain object from a GetTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message GetTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardUsageResponse to JSON. + * Converts this GetTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardUsageResponse + * Gets the default type url for GetTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ReadTensorboardUsageResponse { - - /** Properties of a PerUserUsageData. */ - interface IPerUserUsageData { - - /** PerUserUsageData username */ - username?: (string|null); - - /** PerUserUsageData viewCount */ - viewCount?: (number|Long|string|null); - } - - /** Represents a PerUserUsageData. */ - class PerUserUsageData implements IPerUserUsageData { - - /** - * Constructs a new PerUserUsageData. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData); - - /** PerUserUsageData username. */ - public username: string; - - /** PerUserUsageData viewCount. */ - public viewCount: (number|Long|string); - - /** - * Creates a new PerUserUsageData instance using the specified properties. - * @param [properties] Properties to set - * @returns PerUserUsageData instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; - - /** - * Encodes the specified PerUserUsageData message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData.verify|verify} messages. - * @param message PerUserUsageData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PerUserUsageData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData.verify|verify} messages. - * @param message PerUserUsageData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PerUserUsageData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PerUserUsageData - * @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.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; - - /** - * Decodes a PerUserUsageData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PerUserUsageData - * @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.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; - - /** - * Verifies a PerUserUsageData 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 PerUserUsageData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PerUserUsageData - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; - - /** - * Creates a plain object from a PerUserUsageData message. Also converts values to other types if specified. - * @param message PerUserUsageData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PerUserUsageData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PerUserUsageData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PerMonthUsageData. */ - interface IPerMonthUsageData { - - /** PerMonthUsageData userUsageData */ - userUsageData?: (google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData[]|null); - } - - /** Represents a PerMonthUsageData. */ - class PerMonthUsageData implements IPerMonthUsageData { - - /** - * Constructs a new PerMonthUsageData. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData); - - /** PerMonthUsageData userUsageData. */ - public userUsageData: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData[]; - - /** - * Creates a new PerMonthUsageData instance using the specified properties. - * @param [properties] Properties to set - * @returns PerMonthUsageData instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; - - /** - * Encodes the specified PerMonthUsageData message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData.verify|verify} messages. - * @param message PerMonthUsageData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PerMonthUsageData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData.verify|verify} messages. - * @param message PerMonthUsageData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PerMonthUsageData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PerMonthUsageData - * @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.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; - - /** - * Decodes a PerMonthUsageData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PerMonthUsageData - * @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.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; - - /** - * Verifies a PerMonthUsageData 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 PerMonthUsageData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PerMonthUsageData - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; - - /** - * Creates a plain object from a PerMonthUsageData message. Also converts values to other types if specified. - * @param message PerMonthUsageData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PerMonthUsageData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PerMonthUsageData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ListTensorboardsRequest. */ - interface IListTensorboardsRequest { + /** Properties of a ListTensorboardTimeSeriesRequest. */ + interface IListTensorboardTimeSeriesRequest { - /** ListTensorboardsRequest parent */ + /** ListTensorboardTimeSeriesRequest parent */ parent?: (string|null); - /** ListTensorboardsRequest filter */ + /** ListTensorboardTimeSeriesRequest filter */ filter?: (string|null); - /** ListTensorboardsRequest pageSize */ + /** ListTensorboardTimeSeriesRequest pageSize */ pageSize?: (number|null); - /** ListTensorboardsRequest pageToken */ + /** ListTensorboardTimeSeriesRequest pageToken */ pageToken?: (string|null); - /** ListTensorboardsRequest orderBy */ + /** ListTensorboardTimeSeriesRequest orderBy */ orderBy?: (string|null); - /** ListTensorboardsRequest readMask */ + /** ListTensorboardTimeSeriesRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListTensorboardsRequest. */ - class ListTensorboardsRequest implements IListTensorboardsRequest { + /** Represents a ListTensorboardTimeSeriesRequest. */ + class ListTensorboardTimeSeriesRequest implements IListTensorboardTimeSeriesRequest { /** - * Constructs a new ListTensorboardsRequest. + * Constructs a new ListTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest); - /** ListTensorboardsRequest parent. */ + /** ListTensorboardTimeSeriesRequest parent. */ public parent: string; - /** ListTensorboardsRequest filter. */ + /** ListTensorboardTimeSeriesRequest filter. */ public filter: string; - /** ListTensorboardsRequest pageSize. */ + /** ListTensorboardTimeSeriesRequest pageSize. */ public pageSize: number; - /** ListTensorboardsRequest pageToken. */ + /** ListTensorboardTimeSeriesRequest pageToken. */ public pageToken: string; - /** ListTensorboardsRequest orderBy. */ + /** ListTensorboardTimeSeriesRequest orderBy. */ public orderBy: string; - /** ListTensorboardsRequest readMask. */ + /** ListTensorboardTimeSeriesRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListTensorboardsRequest instance using the specified properties. + * Creates a new ListTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardsRequest instance + * @returns ListTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardsRequest): google.cloud.aiplatform.v1.ListTensorboardsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; /** - * Encodes the specified ListTensorboardsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsRequest.verify|verify} messages. - * @param message ListTensorboardsRequest message or plain object to encode + * Encodes the specified ListTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message ListTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsRequest.verify|verify} messages. - * @param message ListTensorboardsRequest message or plain object to encode + * Encodes the specified ListTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message ListTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardsRequest message from the specified reader or buffer. + * Decodes a ListTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardsRequest + * @returns ListTensorboardTimeSeriesRequest * @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.aiplatform.v1.ListTensorboardsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; /** - * Decodes a ListTensorboardsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardsRequest + * @returns ListTensorboardTimeSeriesRequest * @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.aiplatform.v1.ListTensorboardsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; /** - * Verifies a ListTensorboardsRequest message. + * Verifies a ListTensorboardTimeSeriesRequest 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 ListTensorboardsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardsRequest + * @returns ListTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; /** - * Creates a plain object from a ListTensorboardsRequest message. Also converts values to other types if specified. - * @param message ListTensorboardsRequest + * Creates a plain object from a ListTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message ListTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardsRequest to JSON. + * Converts this ListTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardsRequest + * Gets the default type url for ListTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardsResponse. */ - interface IListTensorboardsResponse { + /** Properties of a ListTensorboardTimeSeriesResponse. */ + interface IListTensorboardTimeSeriesResponse { - /** ListTensorboardsResponse tensorboards */ - tensorboards?: (google.cloud.aiplatform.v1.ITensorboard[]|null); + /** ListTensorboardTimeSeriesResponse tensorboardTimeSeries */ + tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries[]|null); - /** ListTensorboardsResponse nextPageToken */ + /** ListTensorboardTimeSeriesResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListTensorboardsResponse. */ - class ListTensorboardsResponse implements IListTensorboardsResponse { + /** Represents a ListTensorboardTimeSeriesResponse. */ + class ListTensorboardTimeSeriesResponse implements IListTensorboardTimeSeriesResponse { /** - * Constructs a new ListTensorboardsResponse. + * Constructs a new ListTensorboardTimeSeriesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse); - /** ListTensorboardsResponse tensorboards. */ - public tensorboards: google.cloud.aiplatform.v1.ITensorboard[]; + /** ListTensorboardTimeSeriesResponse tensorboardTimeSeries. */ + public tensorboardTimeSeries: google.cloud.aiplatform.v1.ITensorboardTimeSeries[]; - /** ListTensorboardsResponse nextPageToken. */ + /** ListTensorboardTimeSeriesResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListTensorboardsResponse instance using the specified properties. + * Creates a new ListTensorboardTimeSeriesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardsResponse instance + * @returns ListTensorboardTimeSeriesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardsResponse): google.cloud.aiplatform.v1.ListTensorboardsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; /** - * Encodes the specified ListTensorboardsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsResponse.verify|verify} messages. - * @param message ListTensorboardsResponse message or plain object to encode + * Encodes the specified ListTensorboardTimeSeriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.verify|verify} messages. + * @param message ListTensorboardTimeSeriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsResponse.verify|verify} messages. - * @param message ListTensorboardsResponse message or plain object to encode + * Encodes the specified ListTensorboardTimeSeriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.verify|verify} messages. + * @param message ListTensorboardTimeSeriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardsResponse message from the specified reader or buffer. + * Decodes a ListTensorboardTimeSeriesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardsResponse + * @returns ListTensorboardTimeSeriesResponse * @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.aiplatform.v1.ListTensorboardsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; /** - * Decodes a ListTensorboardsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTensorboardTimeSeriesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardsResponse + * @returns ListTensorboardTimeSeriesResponse * @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.aiplatform.v1.ListTensorboardsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; /** - * Verifies a ListTensorboardsResponse message. + * Verifies a ListTensorboardTimeSeriesResponse 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 ListTensorboardsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTensorboardTimeSeriesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardsResponse + * @returns ListTensorboardTimeSeriesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; /** - * Creates a plain object from a ListTensorboardsResponse message. Also converts values to other types if specified. - * @param message ListTensorboardsResponse + * Creates a plain object from a ListTensorboardTimeSeriesResponse message. Also converts values to other types if specified. + * @param message ListTensorboardTimeSeriesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardsResponse to JSON. + * Converts this ListTensorboardTimeSeriesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardsResponse + * Gets the default type url for ListTensorboardTimeSeriesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTensorboardRequest. */ - interface IUpdateTensorboardRequest { + /** Properties of an UpdateTensorboardTimeSeriesRequest. */ + interface IUpdateTensorboardTimeSeriesRequest { - /** UpdateTensorboardRequest updateMask */ + /** UpdateTensorboardTimeSeriesRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); - /** UpdateTensorboardRequest tensorboard */ - tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + /** UpdateTensorboardTimeSeriesRequest tensorboardTimeSeries */ + tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); } - /** Represents an UpdateTensorboardRequest. */ - class UpdateTensorboardRequest implements IUpdateTensorboardRequest { + /** Represents an UpdateTensorboardTimeSeriesRequest. */ + class UpdateTensorboardTimeSeriesRequest implements IUpdateTensorboardTimeSeriesRequest { /** - * Constructs a new UpdateTensorboardRequest. + * Constructs a new UpdateTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRequest); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest); - /** UpdateTensorboardRequest updateMask. */ + /** UpdateTensorboardTimeSeriesRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); - /** UpdateTensorboardRequest tensorboard. */ - public tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + /** UpdateTensorboardTimeSeriesRequest tensorboardTimeSeries. */ + public tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); /** - * Creates a new UpdateTensorboardRequest instance using the specified properties. + * Creates a new UpdateTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardRequest instance + * @returns UpdateTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRequest): google.cloud.aiplatform.v1.UpdateTensorboardRequest; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; /** - * Encodes the specified UpdateTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRequest.verify|verify} messages. - * @param message UpdateTensorboardRequest message or plain object to encode + * Encodes the specified UpdateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message UpdateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRequest.verify|verify} messages. - * @param message UpdateTensorboardRequest message or plain object to encode + * Encodes the specified UpdateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message UpdateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardRequest message from the specified reader or buffer. + * Decodes an UpdateTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardRequest + * @returns UpdateTensorboardTimeSeriesRequest * @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.aiplatform.v1.UpdateTensorboardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; /** - * Decodes an UpdateTensorboardRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardRequest + * @returns UpdateTensorboardTimeSeriesRequest * @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.aiplatform.v1.UpdateTensorboardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; /** - * Verifies an UpdateTensorboardRequest message. + * Verifies an UpdateTensorboardTimeSeriesRequest 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 an UpdateTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardRequest + * @returns UpdateTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; /** - * Creates a plain object from an UpdateTensorboardRequest message. Also converts values to other types if specified. - * @param message UpdateTensorboardRequest + * Creates a plain object from an UpdateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message UpdateTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardRequest to JSON. + * Converts this UpdateTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardRequest + * Gets the default type url for UpdateTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTensorboardRequest. */ - interface IDeleteTensorboardRequest { + /** Properties of a DeleteTensorboardTimeSeriesRequest. */ + interface IDeleteTensorboardTimeSeriesRequest { - /** DeleteTensorboardRequest name */ + /** DeleteTensorboardTimeSeriesRequest name */ name?: (string|null); } - /** Represents a DeleteTensorboardRequest. */ - class DeleteTensorboardRequest implements IDeleteTensorboardRequest { + /** Represents a DeleteTensorboardTimeSeriesRequest. */ + class DeleteTensorboardTimeSeriesRequest implements IDeleteTensorboardTimeSeriesRequest { /** - * Constructs a new DeleteTensorboardRequest. + * Constructs a new DeleteTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest); - /** DeleteTensorboardRequest name. */ + /** DeleteTensorboardTimeSeriesRequest name. */ public name: string; /** - * Creates a new DeleteTensorboardRequest instance using the specified properties. + * Creates a new DeleteTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTensorboardRequest instance + * @returns DeleteTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRequest): google.cloud.aiplatform.v1.DeleteTensorboardRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; /** - * Encodes the specified DeleteTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRequest.verify|verify} messages. - * @param message DeleteTensorboardRequest message or plain object to encode + * Encodes the specified DeleteTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message DeleteTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRequest.verify|verify} messages. - * @param message DeleteTensorboardRequest message or plain object to encode + * Encodes the specified DeleteTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message DeleteTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTensorboardRequest message from the specified reader or buffer. + * Decodes a DeleteTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTensorboardRequest + * @returns DeleteTensorboardTimeSeriesRequest * @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.aiplatform.v1.DeleteTensorboardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; /** - * Decodes a DeleteTensorboardRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTensorboardRequest + * @returns DeleteTensorboardTimeSeriesRequest * @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.aiplatform.v1.DeleteTensorboardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; /** - * Verifies a DeleteTensorboardRequest message. + * Verifies a DeleteTensorboardTimeSeriesRequest 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 DeleteTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTensorboardRequest + * @returns DeleteTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; /** - * Creates a plain object from a DeleteTensorboardRequest message. Also converts values to other types if specified. - * @param message DeleteTensorboardRequest + * Creates a plain object from a DeleteTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message DeleteTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTensorboardRequest to JSON. + * Converts this DeleteTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTensorboardRequest + * Gets the default type url for DeleteTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardExperimentRequest. */ - interface ICreateTensorboardExperimentRequest { - - /** CreateTensorboardExperimentRequest parent */ - parent?: (string|null); + /** Properties of a BatchReadTensorboardTimeSeriesDataRequest. */ + interface IBatchReadTensorboardTimeSeriesDataRequest { - /** CreateTensorboardExperimentRequest tensorboardExperiment */ - tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + /** BatchReadTensorboardTimeSeriesDataRequest tensorboard */ + tensorboard?: (string|null); - /** CreateTensorboardExperimentRequest tensorboardExperimentId */ - tensorboardExperimentId?: (string|null); + /** BatchReadTensorboardTimeSeriesDataRequest timeSeries */ + timeSeries?: (string[]|null); } - /** Represents a CreateTensorboardExperimentRequest. */ - class CreateTensorboardExperimentRequest implements ICreateTensorboardExperimentRequest { + /** Represents a BatchReadTensorboardTimeSeriesDataRequest. */ + class BatchReadTensorboardTimeSeriesDataRequest implements IBatchReadTensorboardTimeSeriesDataRequest { /** - * Constructs a new CreateTensorboardExperimentRequest. + * Constructs a new BatchReadTensorboardTimeSeriesDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest); - - /** CreateTensorboardExperimentRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest); - /** CreateTensorboardExperimentRequest tensorboardExperiment. */ - public tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + /** BatchReadTensorboardTimeSeriesDataRequest tensorboard. */ + public tensorboard: string; - /** CreateTensorboardExperimentRequest tensorboardExperimentId. */ - public tensorboardExperimentId: string; + /** BatchReadTensorboardTimeSeriesDataRequest timeSeries. */ + public timeSeries: string[]; /** - * Creates a new CreateTensorboardExperimentRequest instance using the specified properties. + * Creates a new BatchReadTensorboardTimeSeriesDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardExperimentRequest instance + * @returns BatchReadTensorboardTimeSeriesDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest): google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; /** - * Encodes the specified CreateTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.verify|verify} messages. - * @param message CreateTensorboardExperimentRequest message or plain object to encode + * Encodes the specified BatchReadTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message BatchReadTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.verify|verify} messages. - * @param message CreateTensorboardExperimentRequest message or plain object to encode + * Encodes the specified BatchReadTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message BatchReadTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardExperimentRequest message from the specified reader or buffer. + * Decodes a BatchReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataRequest * @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.aiplatform.v1.CreateTensorboardExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; /** - * Decodes a CreateTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataRequest * @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.aiplatform.v1.CreateTensorboardExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; /** - * Verifies a CreateTensorboardExperimentRequest message. + * Verifies a BatchReadTensorboardTimeSeriesDataRequest 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 CreateTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; /** - * Creates a plain object from a CreateTensorboardExperimentRequest message. Also converts values to other types if specified. - * @param message CreateTensorboardExperimentRequest + * Creates a plain object from a BatchReadTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. + * @param message BatchReadTensorboardTimeSeriesDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardExperimentRequest to JSON. + * Converts this BatchReadTensorboardTimeSeriesDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardExperimentRequest + * Gets the default type url for BatchReadTensorboardTimeSeriesDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTensorboardExperimentRequest. */ - interface IGetTensorboardExperimentRequest { + /** Properties of a BatchReadTensorboardTimeSeriesDataResponse. */ + interface IBatchReadTensorboardTimeSeriesDataResponse { - /** GetTensorboardExperimentRequest name */ - name?: (string|null); + /** BatchReadTensorboardTimeSeriesDataResponse timeSeriesData */ + timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData[]|null); } - /** Represents a GetTensorboardExperimentRequest. */ - class GetTensorboardExperimentRequest implements IGetTensorboardExperimentRequest { + /** Represents a BatchReadTensorboardTimeSeriesDataResponse. */ + class BatchReadTensorboardTimeSeriesDataResponse implements IBatchReadTensorboardTimeSeriesDataResponse { /** - * Constructs a new GetTensorboardExperimentRequest. + * Constructs a new BatchReadTensorboardTimeSeriesDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse); - /** GetTensorboardExperimentRequest name. */ - public name: string; + /** BatchReadTensorboardTimeSeriesDataResponse timeSeriesData. */ + public timeSeriesData: google.cloud.aiplatform.v1.ITimeSeriesData[]; /** - * Creates a new GetTensorboardExperimentRequest instance using the specified properties. + * Creates a new BatchReadTensorboardTimeSeriesDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTensorboardExperimentRequest instance + * @returns BatchReadTensorboardTimeSeriesDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest): google.cloud.aiplatform.v1.GetTensorboardExperimentRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; /** - * Encodes the specified GetTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardExperimentRequest.verify|verify} messages. - * @param message GetTensorboardExperimentRequest message or plain object to encode + * Encodes the specified BatchReadTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message BatchReadTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardExperimentRequest.verify|verify} messages. - * @param message GetTensorboardExperimentRequest message or plain object to encode + * Encodes the specified BatchReadTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message BatchReadTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTensorboardExperimentRequest message from the specified reader or buffer. + * Decodes a BatchReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataResponse * @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.aiplatform.v1.GetTensorboardExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; /** - * Decodes a GetTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataResponse * @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.aiplatform.v1.GetTensorboardExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; /** - * Verifies a GetTensorboardExperimentRequest message. + * Verifies a BatchReadTensorboardTimeSeriesDataResponse 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 GetTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; /** - * Creates a plain object from a GetTensorboardExperimentRequest message. Also converts values to other types if specified. - * @param message GetTensorboardExperimentRequest + * Creates a plain object from a BatchReadTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. + * @param message BatchReadTensorboardTimeSeriesDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTensorboardExperimentRequest to JSON. + * Converts this BatchReadTensorboardTimeSeriesDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTensorboardExperimentRequest + * Gets the default type url for BatchReadTensorboardTimeSeriesDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardExperimentsRequest. */ - interface IListTensorboardExperimentsRequest { - - /** ListTensorboardExperimentsRequest parent */ - parent?: (string|null); - - /** ListTensorboardExperimentsRequest filter */ - filter?: (string|null); - - /** ListTensorboardExperimentsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ReadTensorboardTimeSeriesDataRequest. */ + interface IReadTensorboardTimeSeriesDataRequest { - /** ListTensorboardExperimentsRequest pageToken */ - pageToken?: (string|null); + /** ReadTensorboardTimeSeriesDataRequest tensorboardTimeSeries */ + tensorboardTimeSeries?: (string|null); - /** ListTensorboardExperimentsRequest orderBy */ - orderBy?: (string|null); + /** ReadTensorboardTimeSeriesDataRequest maxDataPoints */ + maxDataPoints?: (number|null); - /** ListTensorboardExperimentsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ReadTensorboardTimeSeriesDataRequest filter */ + filter?: (string|null); } - /** Represents a ListTensorboardExperimentsRequest. */ - class ListTensorboardExperimentsRequest implements IListTensorboardExperimentsRequest { + /** Represents a ReadTensorboardTimeSeriesDataRequest. */ + class ReadTensorboardTimeSeriesDataRequest implements IReadTensorboardTimeSeriesDataRequest { /** - * Constructs a new ListTensorboardExperimentsRequest. + * Constructs a new ReadTensorboardTimeSeriesDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest); - - /** ListTensorboardExperimentsRequest parent. */ - public parent: string; - - /** ListTensorboardExperimentsRequest filter. */ - public filter: string; - - /** ListTensorboardExperimentsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest); - /** ListTensorboardExperimentsRequest pageToken. */ - public pageToken: string; + /** ReadTensorboardTimeSeriesDataRequest tensorboardTimeSeries. */ + public tensorboardTimeSeries: string; - /** ListTensorboardExperimentsRequest orderBy. */ - public orderBy: string; + /** ReadTensorboardTimeSeriesDataRequest maxDataPoints. */ + public maxDataPoints: number; - /** ListTensorboardExperimentsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ReadTensorboardTimeSeriesDataRequest filter. */ + public filter: string; /** - * Creates a new ListTensorboardExperimentsRequest instance using the specified properties. + * Creates a new ReadTensorboardTimeSeriesDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardExperimentsRequest instance + * @returns ReadTensorboardTimeSeriesDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest): google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; /** - * Encodes the specified ListTensorboardExperimentsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.verify|verify} messages. - * @param message ListTensorboardExperimentsRequest message or plain object to encode + * Encodes the specified ReadTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message ReadTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.verify|verify} messages. - * @param message ListTensorboardExperimentsRequest message or plain object to encode + * Encodes the specified ReadTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message ReadTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardExperimentsRequest message from the specified reader or buffer. + * Decodes a ReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardExperimentsRequest + * @returns ReadTensorboardTimeSeriesDataRequest * @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.aiplatform.v1.ListTensorboardExperimentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; /** - * Decodes a ListTensorboardExperimentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardExperimentsRequest + * @returns ReadTensorboardTimeSeriesDataRequest * @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.aiplatform.v1.ListTensorboardExperimentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; /** - * Verifies a ListTensorboardExperimentsRequest message. + * Verifies a ReadTensorboardTimeSeriesDataRequest 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 ListTensorboardExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardExperimentsRequest + * @returns ReadTensorboardTimeSeriesDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; /** - * Creates a plain object from a ListTensorboardExperimentsRequest message. Also converts values to other types if specified. - * @param message ListTensorboardExperimentsRequest + * Creates a plain object from a ReadTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. + * @param message ReadTensorboardTimeSeriesDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardExperimentsRequest to JSON. + * Converts this ReadTensorboardTimeSeriesDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardExperimentsRequest + * Gets the default type url for ReadTensorboardTimeSeriesDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListTensorboardExperimentsResponse. */ - interface IListTensorboardExperimentsResponse { + } - /** ListTensorboardExperimentsResponse tensorboardExperiments */ - tensorboardExperiments?: (google.cloud.aiplatform.v1.ITensorboardExperiment[]|null); + /** Properties of a ReadTensorboardTimeSeriesDataResponse. */ + interface IReadTensorboardTimeSeriesDataResponse { - /** ListTensorboardExperimentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ReadTensorboardTimeSeriesDataResponse timeSeriesData */ + timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData|null); } - /** Represents a ListTensorboardExperimentsResponse. */ - class ListTensorboardExperimentsResponse implements IListTensorboardExperimentsResponse { + /** Represents a ReadTensorboardTimeSeriesDataResponse. */ + class ReadTensorboardTimeSeriesDataResponse implements IReadTensorboardTimeSeriesDataResponse { /** - * Constructs a new ListTensorboardExperimentsResponse. + * Constructs a new ReadTensorboardTimeSeriesDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse); - - /** ListTensorboardExperimentsResponse tensorboardExperiments. */ - public tensorboardExperiments: google.cloud.aiplatform.v1.ITensorboardExperiment[]; + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse); - /** ListTensorboardExperimentsResponse nextPageToken. */ - public nextPageToken: string; + /** ReadTensorboardTimeSeriesDataResponse timeSeriesData. */ + public timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData|null); /** - * Creates a new ListTensorboardExperimentsResponse instance using the specified properties. + * Creates a new ReadTensorboardTimeSeriesDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardExperimentsResponse instance + * @returns ReadTensorboardTimeSeriesDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; /** - * Encodes the specified ListTensorboardExperimentsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.verify|verify} messages. - * @param message ListTensorboardExperimentsResponse message or plain object to encode + * Encodes the specified ReadTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message ReadTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.verify|verify} messages. - * @param message ListTensorboardExperimentsResponse message or plain object to encode + * Encodes the specified ReadTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message ReadTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardExperimentsResponse message from the specified reader or buffer. + * Decodes a ReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardExperimentsResponse + * @returns ReadTensorboardTimeSeriesDataResponse * @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.aiplatform.v1.ListTensorboardExperimentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; /** - * Decodes a ListTensorboardExperimentsResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardExperimentsResponse + * @returns ReadTensorboardTimeSeriesDataResponse * @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.aiplatform.v1.ListTensorboardExperimentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; /** - * Verifies a ListTensorboardExperimentsResponse message. + * Verifies a ReadTensorboardTimeSeriesDataResponse 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 ListTensorboardExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardExperimentsResponse + * @returns ReadTensorboardTimeSeriesDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; /** - * Creates a plain object from a ListTensorboardExperimentsResponse message. Also converts values to other types if specified. - * @param message ListTensorboardExperimentsResponse + * Creates a plain object from a ReadTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. + * @param message ReadTensorboardTimeSeriesDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardExperimentsResponse to JSON. + * Converts this ReadTensorboardTimeSeriesDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardExperimentsResponse + * Gets the default type url for ReadTensorboardTimeSeriesDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTensorboardExperimentRequest. */ - interface IUpdateTensorboardExperimentRequest { + /** Properties of a WriteTensorboardExperimentDataRequest. */ + interface IWriteTensorboardExperimentDataRequest { - /** UpdateTensorboardExperimentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** WriteTensorboardExperimentDataRequest tensorboardExperiment */ + tensorboardExperiment?: (string|null); - /** UpdateTensorboardExperimentRequest tensorboardExperiment */ - tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + /** WriteTensorboardExperimentDataRequest writeRunDataRequests */ + writeRunDataRequests?: (google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest[]|null); } - /** Represents an UpdateTensorboardExperimentRequest. */ - class UpdateTensorboardExperimentRequest implements IUpdateTensorboardExperimentRequest { + /** Represents a WriteTensorboardExperimentDataRequest. */ + class WriteTensorboardExperimentDataRequest implements IWriteTensorboardExperimentDataRequest { /** - * Constructs a new UpdateTensorboardExperimentRequest. + * Constructs a new WriteTensorboardExperimentDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest); + constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest); - /** UpdateTensorboardExperimentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** WriteTensorboardExperimentDataRequest tensorboardExperiment. */ + public tensorboardExperiment: string; - /** UpdateTensorboardExperimentRequest tensorboardExperiment. */ - public tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + /** WriteTensorboardExperimentDataRequest writeRunDataRequests. */ + public writeRunDataRequests: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest[]; /** - * Creates a new UpdateTensorboardExperimentRequest instance using the specified properties. + * Creates a new WriteTensorboardExperimentDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardExperimentRequest instance + * @returns WriteTensorboardExperimentDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; + public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; /** - * Encodes the specified UpdateTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.verify|verify} messages. - * @param message UpdateTensorboardExperimentRequest message or plain object to encode + * Encodes the specified WriteTensorboardExperimentDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.verify|verify} messages. + * @param message WriteTensorboardExperimentDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.verify|verify} messages. - * @param message UpdateTensorboardExperimentRequest message or plain object to encode + * Encodes the specified WriteTensorboardExperimentDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.verify|verify} messages. + * @param message WriteTensorboardExperimentDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardExperimentRequest message from the specified reader or buffer. + * Decodes a WriteTensorboardExperimentDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataRequest * @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.aiplatform.v1.UpdateTensorboardExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; /** - * Decodes an UpdateTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteTensorboardExperimentDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataRequest * @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.aiplatform.v1.UpdateTensorboardExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; /** - * Verifies an UpdateTensorboardExperimentRequest message. + * Verifies a WriteTensorboardExperimentDataRequest 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 an UpdateTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteTensorboardExperimentDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; /** - * Creates a plain object from an UpdateTensorboardExperimentRequest message. Also converts values to other types if specified. - * @param message UpdateTensorboardExperimentRequest + * Creates a plain object from a WriteTensorboardExperimentDataRequest message. Also converts values to other types if specified. + * @param message WriteTensorboardExperimentDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardExperimentRequest to JSON. + * Converts this WriteTensorboardExperimentDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardExperimentRequest + * Gets the default type url for WriteTensorboardExperimentDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTensorboardExperimentRequest. */ - interface IDeleteTensorboardExperimentRequest { - - /** DeleteTensorboardExperimentRequest name */ - name?: (string|null); + /** Properties of a WriteTensorboardExperimentDataResponse. */ + interface IWriteTensorboardExperimentDataResponse { } - /** Represents a DeleteTensorboardExperimentRequest. */ - class DeleteTensorboardExperimentRequest implements IDeleteTensorboardExperimentRequest { + /** Represents a WriteTensorboardExperimentDataResponse. */ + class WriteTensorboardExperimentDataResponse implements IWriteTensorboardExperimentDataResponse { /** - * Constructs a new DeleteTensorboardExperimentRequest. + * Constructs a new WriteTensorboardExperimentDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest); - - /** DeleteTensorboardExperimentRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse); /** - * Creates a new DeleteTensorboardExperimentRequest instance using the specified properties. + * Creates a new WriteTensorboardExperimentDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTensorboardExperimentRequest instance + * @returns WriteTensorboardExperimentDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; + public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; /** - * Encodes the specified DeleteTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest.verify|verify} messages. - * @param message DeleteTensorboardExperimentRequest message or plain object to encode + * Encodes the specified WriteTensorboardExperimentDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse.verify|verify} messages. + * @param message WriteTensorboardExperimentDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest.verify|verify} messages. - * @param message DeleteTensorboardExperimentRequest message or plain object to encode + * Encodes the specified WriteTensorboardExperimentDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse.verify|verify} messages. + * @param message WriteTensorboardExperimentDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTensorboardExperimentRequest message from the specified reader or buffer. + * Decodes a WriteTensorboardExperimentDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataResponse * @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.aiplatform.v1.DeleteTensorboardExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; /** - * Decodes a DeleteTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteTensorboardExperimentDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataResponse * @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.aiplatform.v1.DeleteTensorboardExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; /** - * Verifies a DeleteTensorboardExperimentRequest message. + * Verifies a WriteTensorboardExperimentDataResponse 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 DeleteTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteTensorboardExperimentDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; /** - * Creates a plain object from a DeleteTensorboardExperimentRequest message. Also converts values to other types if specified. - * @param message DeleteTensorboardExperimentRequest + * Creates a plain object from a WriteTensorboardExperimentDataResponse message. Also converts values to other types if specified. + * @param message WriteTensorboardExperimentDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTensorboardExperimentRequest to JSON. + * Converts this WriteTensorboardExperimentDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTensorboardExperimentRequest + * Gets the default type url for WriteTensorboardExperimentDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateTensorboardRunsRequest. */ - interface IBatchCreateTensorboardRunsRequest { + /** Properties of a WriteTensorboardRunDataRequest. */ + interface IWriteTensorboardRunDataRequest { - /** BatchCreateTensorboardRunsRequest parent */ - parent?: (string|null); + /** WriteTensorboardRunDataRequest tensorboardRun */ + tensorboardRun?: (string|null); - /** BatchCreateTensorboardRunsRequest requests */ - requests?: (google.cloud.aiplatform.v1.ICreateTensorboardRunRequest[]|null); + /** WriteTensorboardRunDataRequest timeSeriesData */ + timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData[]|null); } - /** Represents a BatchCreateTensorboardRunsRequest. */ - class BatchCreateTensorboardRunsRequest implements IBatchCreateTensorboardRunsRequest { + /** Represents a WriteTensorboardRunDataRequest. */ + class WriteTensorboardRunDataRequest implements IWriteTensorboardRunDataRequest { /** - * Constructs a new BatchCreateTensorboardRunsRequest. + * Constructs a new WriteTensorboardRunDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest); - /** BatchCreateTensorboardRunsRequest parent. */ - public parent: string; + /** WriteTensorboardRunDataRequest tensorboardRun. */ + public tensorboardRun: string; - /** BatchCreateTensorboardRunsRequest requests. */ - public requests: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest[]; + /** WriteTensorboardRunDataRequest timeSeriesData. */ + public timeSeriesData: google.cloud.aiplatform.v1.ITimeSeriesData[]; /** - * Creates a new BatchCreateTensorboardRunsRequest instance using the specified properties. + * Creates a new WriteTensorboardRunDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateTensorboardRunsRequest instance + * @returns WriteTensorboardRunDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; /** - * Encodes the specified BatchCreateTensorboardRunsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.verify|verify} messages. - * @param message BatchCreateTensorboardRunsRequest message or plain object to encode + * Encodes the specified WriteTensorboardRunDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.verify|verify} messages. + * @param message WriteTensorboardRunDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateTensorboardRunsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.verify|verify} messages. - * @param message BatchCreateTensorboardRunsRequest message or plain object to encode + * Encodes the specified WriteTensorboardRunDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.verify|verify} messages. + * @param message WriteTensorboardRunDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateTensorboardRunsRequest message from the specified reader or buffer. + * Decodes a WriteTensorboardRunDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateTensorboardRunsRequest + * @returns WriteTensorboardRunDataRequest * @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.aiplatform.v1.BatchCreateTensorboardRunsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; /** - * Decodes a BatchCreateTensorboardRunsRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteTensorboardRunDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateTensorboardRunsRequest + * @returns WriteTensorboardRunDataRequest * @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.aiplatform.v1.BatchCreateTensorboardRunsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; /** - * Verifies a BatchCreateTensorboardRunsRequest message. + * Verifies a WriteTensorboardRunDataRequest 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 BatchCreateTensorboardRunsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteTensorboardRunDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateTensorboardRunsRequest + * @returns WriteTensorboardRunDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; /** - * Creates a plain object from a BatchCreateTensorboardRunsRequest message. Also converts values to other types if specified. - * @param message BatchCreateTensorboardRunsRequest + * Creates a plain object from a WriteTensorboardRunDataRequest message. Also converts values to other types if specified. + * @param message WriteTensorboardRunDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateTensorboardRunsRequest to JSON. + * Converts this WriteTensorboardRunDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateTensorboardRunsRequest + * Gets the default type url for WriteTensorboardRunDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateTensorboardRunsResponse. */ - interface IBatchCreateTensorboardRunsResponse { - - /** BatchCreateTensorboardRunsResponse tensorboardRuns */ - tensorboardRuns?: (google.cloud.aiplatform.v1.ITensorboardRun[]|null); + /** Properties of a WriteTensorboardRunDataResponse. */ + interface IWriteTensorboardRunDataResponse { } - /** Represents a BatchCreateTensorboardRunsResponse. */ - class BatchCreateTensorboardRunsResponse implements IBatchCreateTensorboardRunsResponse { + /** Represents a WriteTensorboardRunDataResponse. */ + class WriteTensorboardRunDataResponse implements IWriteTensorboardRunDataResponse { /** - * Constructs a new BatchCreateTensorboardRunsResponse. + * Constructs a new WriteTensorboardRunDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse); - - /** BatchCreateTensorboardRunsResponse tensorboardRuns. */ - public tensorboardRuns: google.cloud.aiplatform.v1.ITensorboardRun[]; + constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse); /** - * Creates a new BatchCreateTensorboardRunsResponse instance using the specified properties. + * Creates a new WriteTensorboardRunDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateTensorboardRunsResponse instance + * @returns WriteTensorboardRunDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; /** - * Encodes the specified BatchCreateTensorboardRunsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.verify|verify} messages. - * @param message BatchCreateTensorboardRunsResponse message or plain object to encode + * Encodes the specified WriteTensorboardRunDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse.verify|verify} messages. + * @param message WriteTensorboardRunDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateTensorboardRunsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.verify|verify} messages. - * @param message BatchCreateTensorboardRunsResponse message or plain object to encode + * Encodes the specified WriteTensorboardRunDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse.verify|verify} messages. + * @param message WriteTensorboardRunDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateTensorboardRunsResponse message from the specified reader or buffer. + * Decodes a WriteTensorboardRunDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateTensorboardRunsResponse + * @returns WriteTensorboardRunDataResponse * @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.aiplatform.v1.BatchCreateTensorboardRunsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; /** - * Decodes a BatchCreateTensorboardRunsResponse message from the specified reader or buffer, length delimited. + * Decodes a WriteTensorboardRunDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateTensorboardRunsResponse + * @returns WriteTensorboardRunDataResponse * @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.aiplatform.v1.BatchCreateTensorboardRunsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; /** - * Verifies a BatchCreateTensorboardRunsResponse message. + * Verifies a WriteTensorboardRunDataResponse 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 BatchCreateTensorboardRunsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WriteTensorboardRunDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateTensorboardRunsResponse + * @returns WriteTensorboardRunDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; /** - * Creates a plain object from a BatchCreateTensorboardRunsResponse message. Also converts values to other types if specified. - * @param message BatchCreateTensorboardRunsResponse + * Creates a plain object from a WriteTensorboardRunDataResponse message. Also converts values to other types if specified. + * @param message WriteTensorboardRunDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateTensorboardRunsResponse to JSON. + * Converts this WriteTensorboardRunDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateTensorboardRunsResponse + * Gets the default type url for WriteTensorboardRunDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardRunRequest. */ - interface ICreateTensorboardRunRequest { + /** Properties of an ExportTensorboardTimeSeriesDataRequest. */ + interface IExportTensorboardTimeSeriesDataRequest { - /** CreateTensorboardRunRequest parent */ - parent?: (string|null); + /** ExportTensorboardTimeSeriesDataRequest tensorboardTimeSeries */ + tensorboardTimeSeries?: (string|null); - /** CreateTensorboardRunRequest tensorboardRun */ - tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + /** ExportTensorboardTimeSeriesDataRequest filter */ + filter?: (string|null); - /** CreateTensorboardRunRequest tensorboardRunId */ - tensorboardRunId?: (string|null); + /** ExportTensorboardTimeSeriesDataRequest pageSize */ + pageSize?: (number|null); + + /** ExportTensorboardTimeSeriesDataRequest pageToken */ + pageToken?: (string|null); + + /** ExportTensorboardTimeSeriesDataRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CreateTensorboardRunRequest. */ - class CreateTensorboardRunRequest implements ICreateTensorboardRunRequest { + /** Represents an ExportTensorboardTimeSeriesDataRequest. */ + class ExportTensorboardTimeSeriesDataRequest implements IExportTensorboardTimeSeriesDataRequest { /** - * Constructs a new CreateTensorboardRunRequest. + * Constructs a new ExportTensorboardTimeSeriesDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest); + constructor(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest); - /** CreateTensorboardRunRequest parent. */ - public parent: string; + /** ExportTensorboardTimeSeriesDataRequest tensorboardTimeSeries. */ + public tensorboardTimeSeries: string; - /** CreateTensorboardRunRequest tensorboardRun. */ - public tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + /** ExportTensorboardTimeSeriesDataRequest filter. */ + public filter: string; - /** CreateTensorboardRunRequest tensorboardRunId. */ - public tensorboardRunId: string; + /** ExportTensorboardTimeSeriesDataRequest pageSize. */ + public pageSize: number; + + /** ExportTensorboardTimeSeriesDataRequest pageToken. */ + public pageToken: string; + + /** ExportTensorboardTimeSeriesDataRequest orderBy. */ + public orderBy: string; /** - * Creates a new CreateTensorboardRunRequest instance using the specified properties. + * Creates a new ExportTensorboardTimeSeriesDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardRunRequest instance + * @returns ExportTensorboardTimeSeriesDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; + public static create(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; /** - * Encodes the specified CreateTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRunRequest.verify|verify} messages. - * @param message CreateTensorboardRunRequest message or plain object to encode + * Encodes the specified ExportTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message ExportTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRunRequest.verify|verify} messages. - * @param message CreateTensorboardRunRequest message or plain object to encode + * Encodes the specified ExportTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message ExportTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardRunRequest message from the specified reader or buffer. + * Decodes an ExportTensorboardTimeSeriesDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataRequest * @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.aiplatform.v1.CreateTensorboardRunRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; /** - * Decodes a CreateTensorboardRunRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataRequest * @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.aiplatform.v1.CreateTensorboardRunRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; /** - * Verifies a CreateTensorboardRunRequest message. + * Verifies an ExportTensorboardTimeSeriesDataRequest 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 CreateTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; /** - * Creates a plain object from a CreateTensorboardRunRequest message. Also converts values to other types if specified. - * @param message CreateTensorboardRunRequest + * Creates a plain object from an ExportTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. + * @param message ExportTensorboardTimeSeriesDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardRunRequest to JSON. + * Converts this ExportTensorboardTimeSeriesDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardRunRequest + * Gets the default type url for ExportTensorboardTimeSeriesDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTensorboardRunRequest. */ - interface IGetTensorboardRunRequest { + /** Properties of an ExportTensorboardTimeSeriesDataResponse. */ + interface IExportTensorboardTimeSeriesDataResponse { - /** GetTensorboardRunRequest name */ - name?: (string|null); + /** ExportTensorboardTimeSeriesDataResponse timeSeriesDataPoints */ + timeSeriesDataPoints?: (google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]|null); + + /** ExportTensorboardTimeSeriesDataResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetTensorboardRunRequest. */ - class GetTensorboardRunRequest implements IGetTensorboardRunRequest { + /** Represents an ExportTensorboardTimeSeriesDataResponse. */ + class ExportTensorboardTimeSeriesDataResponse implements IExportTensorboardTimeSeriesDataResponse { /** - * Constructs a new GetTensorboardRunRequest. + * Constructs a new ExportTensorboardTimeSeriesDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardRunRequest); + constructor(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse); - /** GetTensorboardRunRequest name. */ - public name: string; + /** ExportTensorboardTimeSeriesDataResponse timeSeriesDataPoints. */ + public timeSeriesDataPoints: google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]; + + /** ExportTensorboardTimeSeriesDataResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetTensorboardRunRequest instance using the specified properties. + * Creates a new ExportTensorboardTimeSeriesDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTensorboardRunRequest instance + * @returns ExportTensorboardTimeSeriesDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardRunRequest): google.cloud.aiplatform.v1.GetTensorboardRunRequest; + public static create(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; /** - * Encodes the specified GetTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRunRequest.verify|verify} messages. - * @param message GetTensorboardRunRequest message or plain object to encode + * Encodes the specified ExportTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message ExportTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRunRequest.verify|verify} messages. - * @param message GetTensorboardRunRequest message or plain object to encode + * Encodes the specified ExportTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message ExportTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTensorboardRunRequest message from the specified reader or buffer. + * Decodes an ExportTensorboardTimeSeriesDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataResponse * @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.aiplatform.v1.GetTensorboardRunRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; /** - * Decodes a GetTensorboardRunRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataResponse * @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.aiplatform.v1.GetTensorboardRunRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; /** - * Verifies a GetTensorboardRunRequest message. + * Verifies an ExportTensorboardTimeSeriesDataResponse 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 GetTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardRunRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; /** - * Creates a plain object from a GetTensorboardRunRequest message. Also converts values to other types if specified. - * @param message GetTensorboardRunRequest + * Creates a plain object from an ExportTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. + * @param message ExportTensorboardTimeSeriesDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTensorboardRunRequest to JSON. + * Converts this ExportTensorboardTimeSeriesDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTensorboardRunRequest + * Gets the default type url for ExportTensorboardTimeSeriesDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardBlobDataRequest. */ - interface IReadTensorboardBlobDataRequest { - - /** ReadTensorboardBlobDataRequest timeSeries */ - timeSeries?: (string|null); + /** Properties of a CreateTensorboardOperationMetadata. */ + interface ICreateTensorboardOperationMetadata { - /** ReadTensorboardBlobDataRequest blobIds */ - blobIds?: (string[]|null); + /** CreateTensorboardOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a ReadTensorboardBlobDataRequest. */ - class ReadTensorboardBlobDataRequest implements IReadTensorboardBlobDataRequest { + /** Represents a CreateTensorboardOperationMetadata. */ + class CreateTensorboardOperationMetadata implements ICreateTensorboardOperationMetadata { /** - * Constructs a new ReadTensorboardBlobDataRequest. + * Constructs a new CreateTensorboardOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest); - - /** ReadTensorboardBlobDataRequest timeSeries. */ - public timeSeries: string; + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata); - /** ReadTensorboardBlobDataRequest blobIds. */ - public blobIds: string[]; + /** CreateTensorboardOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new ReadTensorboardBlobDataRequest instance using the specified properties. + * Creates a new CreateTensorboardOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardBlobDataRequest instance + * @returns CreateTensorboardOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; /** - * Encodes the specified ReadTensorboardBlobDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest.verify|verify} messages. - * @param message ReadTensorboardBlobDataRequest message or plain object to encode + * Encodes the specified CreateTensorboardOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.verify|verify} messages. + * @param message CreateTensorboardOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardBlobDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest.verify|verify} messages. - * @param message ReadTensorboardBlobDataRequest message or plain object to encode + * Encodes the specified CreateTensorboardOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.verify|verify} messages. + * @param message CreateTensorboardOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardBlobDataRequest message from the specified reader or buffer. + * Decodes a CreateTensorboardOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardBlobDataRequest + * @returns CreateTensorboardOperationMetadata * @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.aiplatform.v1.ReadTensorboardBlobDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; /** - * Decodes a ReadTensorboardBlobDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTensorboardOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardBlobDataRequest + * @returns CreateTensorboardOperationMetadata * @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.aiplatform.v1.ReadTensorboardBlobDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; /** - * Verifies a ReadTensorboardBlobDataRequest message. + * Verifies a CreateTensorboardOperationMetadata 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 ReadTensorboardBlobDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTensorboardOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardBlobDataRequest + * @returns CreateTensorboardOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; /** - * Creates a plain object from a ReadTensorboardBlobDataRequest message. Also converts values to other types if specified. - * @param message ReadTensorboardBlobDataRequest + * Creates a plain object from a CreateTensorboardOperationMetadata message. Also converts values to other types if specified. + * @param message CreateTensorboardOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardBlobDataRequest to JSON. + * Converts this CreateTensorboardOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardBlobDataRequest + * Gets the default type url for CreateTensorboardOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardBlobDataResponse. */ - interface IReadTensorboardBlobDataResponse { + /** Properties of an UpdateTensorboardOperationMetadata. */ + interface IUpdateTensorboardOperationMetadata { - /** ReadTensorboardBlobDataResponse blobs */ - blobs?: (google.cloud.aiplatform.v1.ITensorboardBlob[]|null); + /** UpdateTensorboardOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a ReadTensorboardBlobDataResponse. */ - class ReadTensorboardBlobDataResponse implements IReadTensorboardBlobDataResponse { + /** Represents an UpdateTensorboardOperationMetadata. */ + class UpdateTensorboardOperationMetadata implements IUpdateTensorboardOperationMetadata { /** - * Constructs a new ReadTensorboardBlobDataResponse. + * Constructs a new UpdateTensorboardOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata); - /** ReadTensorboardBlobDataResponse blobs. */ - public blobs: google.cloud.aiplatform.v1.ITensorboardBlob[]; + /** UpdateTensorboardOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new ReadTensorboardBlobDataResponse instance using the specified properties. + * Creates a new UpdateTensorboardOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardBlobDataResponse instance + * @returns UpdateTensorboardOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; /** - * Encodes the specified ReadTensorboardBlobDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.verify|verify} messages. - * @param message ReadTensorboardBlobDataResponse message or plain object to encode + * Encodes the specified UpdateTensorboardOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.verify|verify} messages. + * @param message UpdateTensorboardOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardBlobDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.verify|verify} messages. - * @param message ReadTensorboardBlobDataResponse message or plain object to encode + * Encodes the specified UpdateTensorboardOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.verify|verify} messages. + * @param message UpdateTensorboardOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardBlobDataResponse message from the specified reader or buffer. + * Decodes an UpdateTensorboardOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardBlobDataResponse + * @returns UpdateTensorboardOperationMetadata * @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.aiplatform.v1.ReadTensorboardBlobDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; /** - * Decodes a ReadTensorboardBlobDataResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateTensorboardOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardBlobDataResponse + * @returns UpdateTensorboardOperationMetadata * @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.aiplatform.v1.ReadTensorboardBlobDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; /** - * Verifies a ReadTensorboardBlobDataResponse message. + * Verifies an UpdateTensorboardOperationMetadata 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 ReadTensorboardBlobDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTensorboardOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardBlobDataResponse + * @returns UpdateTensorboardOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; /** - * Creates a plain object from a ReadTensorboardBlobDataResponse message. Also converts values to other types if specified. - * @param message ReadTensorboardBlobDataResponse + * Creates a plain object from an UpdateTensorboardOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateTensorboardOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardBlobDataResponse to JSON. + * Converts this UpdateTensorboardOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardBlobDataResponse + * Gets the default type url for UpdateTensorboardOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardRunsRequest. */ - interface IListTensorboardRunsRequest { + /** Represents a VizierService */ + class VizierService extends $protobuf.rpc.Service { - /** ListTensorboardRunsRequest parent */ - parent?: (string|null); + /** + * Constructs a new VizierService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ListTensorboardRunsRequest filter */ - filter?: (string|null); + /** + * Creates new VizierService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): VizierService; - /** ListTensorboardRunsRequest pageSize */ - pageSize?: (number|null); + /** + * Calls CreateStudy. + * @param request CreateStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Study + */ + public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateStudyCallback): void; - /** ListTensorboardRunsRequest pageToken */ - pageToken?: (string|null); + /** + * Calls CreateStudy. + * @param request CreateStudyRequest message or plain object + * @returns Promise + */ + public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest): Promise; - /** ListTensorboardRunsRequest orderBy */ - orderBy?: (string|null); + /** + * Calls GetStudy. + * @param request GetStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Study + */ + public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.GetStudyCallback): void; - /** ListTensorboardRunsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** + * Calls GetStudy. + * @param request GetStudyRequest message or plain object + * @returns Promise + */ + public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest): Promise; - /** Represents a ListTensorboardRunsRequest. */ - class ListTensorboardRunsRequest implements IListTensorboardRunsRequest { + /** + * Calls ListStudies. + * @param request ListStudiesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListStudiesResponse + */ + public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest, callback: google.cloud.aiplatform.v1.VizierService.ListStudiesCallback): void; /** - * Constructs a new ListTensorboardRunsRequest. - * @param [properties] Properties to set + * Calls ListStudies. + * @param request ListStudiesRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsRequest); + public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest): Promise; - /** ListTensorboardRunsRequest parent. */ - public parent: string; + /** + * Calls DeleteStudy. + * @param request DeleteStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteStudyCallback): void; - /** ListTensorboardRunsRequest filter. */ - public filter: string; + /** + * Calls DeleteStudy. + * @param request DeleteStudyRequest message or plain object + * @returns Promise + */ + public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest): Promise; - /** ListTensorboardRunsRequest pageSize. */ - public pageSize: number; + /** + * Calls LookupStudy. + * @param request LookupStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Study + */ + public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.LookupStudyCallback): void; - /** ListTensorboardRunsRequest pageToken. */ - public pageToken: string; + /** + * Calls LookupStudy. + * @param request LookupStudyRequest message or plain object + * @returns Promise + */ + public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest): Promise; - /** ListTensorboardRunsRequest orderBy. */ - public orderBy: string; + /** + * Calls SuggestTrials. + * @param request SuggestTrialsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.SuggestTrialsCallback): void; - /** ListTensorboardRunsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Calls SuggestTrials. + * @param request SuggestTrialsRequest message or plain object + * @returns Promise + */ + public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest): Promise; /** - * Creates a new ListTensorboardRunsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListTensorboardRunsRequest instance + * Calls CreateTrial. + * @param request CreateTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsRequest): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; + public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateTrialCallback): void; /** - * Encodes the specified ListTensorboardRunsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsRequest.verify|verify} messages. - * @param message ListTensorboardRunsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateTrial. + * @param request CreateTrialRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest): Promise; /** - * Encodes the specified ListTensorboardRunsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsRequest.verify|verify} messages. - * @param message ListTensorboardRunsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetTrial. + * @param request GetTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.GetTrialCallback): void; /** - * Decodes a ListTensorboardRunsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListTensorboardRunsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetTrial. + * @param request GetTrialRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; + public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest): Promise; /** - * Decodes a ListTensorboardRunsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListTensorboardRunsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListTrials. + * @param request ListTrialsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTrialsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; + public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListTrialsCallback): void; /** - * Verifies a ListTensorboardRunsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListTrials. + * @param request ListTrialsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest): Promise; /** - * Creates a ListTensorboardRunsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListTensorboardRunsRequest + * Calls AddTrialMeasurement. + * @param request AddTrialMeasurementRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; + public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, callback: google.cloud.aiplatform.v1.VizierService.AddTrialMeasurementCallback): void; /** - * Creates a plain object from a ListTensorboardRunsRequest message. Also converts values to other types if specified. - * @param message ListTensorboardRunsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls AddTrialMeasurement. + * @param request AddTrialMeasurementRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): Promise; /** - * Converts this ListTensorboardRunsRequest to JSON. - * @returns JSON object + * Calls CompleteTrial. + * @param request CompleteTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial */ - public toJSON(): { [k: string]: any }; + public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CompleteTrialCallback): void; /** - * Gets the default type url for ListTensorboardRunsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CompleteTrial. + * @param request CompleteTrialRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest): Promise; - /** Properties of a ListTensorboardRunsResponse. */ - interface IListTensorboardRunsResponse { + /** + * Calls DeleteTrial. + * @param request DeleteTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteTrialCallback): void; - /** ListTensorboardRunsResponse tensorboardRuns */ - tensorboardRuns?: (google.cloud.aiplatform.v1.ITensorboardRun[]|null); + /** + * Calls DeleteTrial. + * @param request DeleteTrialRequest message or plain object + * @returns Promise + */ + public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest): Promise; - /** ListTensorboardRunsResponse nextPageToken */ - nextPageToken?: (string|null); + /** + * Calls CheckTrialEarlyStoppingState. + * @param request CheckTrialEarlyStoppingStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, callback: google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingStateCallback): void; + + /** + * Calls CheckTrialEarlyStoppingState. + * @param request CheckTrialEarlyStoppingStateRequest message or plain object + * @returns Promise + */ + public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): Promise; + + /** + * Calls StopTrial. + * @param request StopTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial + */ + public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.StopTrialCallback): void; + + /** + * Calls StopTrial. + * @param request StopTrialRequest message or plain object + * @returns Promise + */ + public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest): Promise; + + /** + * Calls ListOptimalTrials. + * @param request ListOptimalTrialsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListOptimalTrialsResponse + */ + public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListOptimalTrialsCallback): void; + + /** + * Calls ListOptimalTrials. + * @param request ListOptimalTrialsRequest message or plain object + * @returns Promise + */ + public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): Promise; } - /** Represents a ListTensorboardRunsResponse. */ - class ListTensorboardRunsResponse implements IListTensorboardRunsResponse { + namespace VizierService { /** - * Constructs a new ListTensorboardRunsResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|createStudy}. + * @param error Error, if any + * @param [response] Study */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsResponse); + type CreateStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; - /** ListTensorboardRunsResponse tensorboardRuns. */ - public tensorboardRuns: google.cloud.aiplatform.v1.ITensorboardRun[]; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|getStudy}. + * @param error Error, if any + * @param [response] Study + */ + type GetStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; - /** ListTensorboardRunsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listStudies}. + * @param error Error, if any + * @param [response] ListStudiesResponse + */ + type ListStudiesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListStudiesResponse) => void; /** - * Creates a new ListTensorboardRunsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListTensorboardRunsResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|deleteStudy}. + * @param error Error, if any + * @param [response] Empty */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsResponse): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; + type DeleteStudyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified ListTensorboardRunsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsResponse.verify|verify} messages. - * @param message ListTensorboardRunsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|lookupStudy}. + * @param error Error, if any + * @param [response] Study */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type LookupStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; /** - * Encodes the specified ListTensorboardRunsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsResponse.verify|verify} messages. - * @param message ListTensorboardRunsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|suggestTrials}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type SuggestTrialsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a ListTensorboardRunsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListTensorboardRunsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|createTrial}. + * @param error Error, if any + * @param [response] Trial */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; + type CreateTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; /** - * Decodes a ListTensorboardRunsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListTensorboardRunsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|getTrial}. + * @param error Error, if any + * @param [response] Trial */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; + type GetTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; /** - * Verifies a ListTensorboardRunsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listTrials}. + * @param error Error, if any + * @param [response] ListTrialsResponse + */ + type ListTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrialsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|addTrialMeasurement}. + * @param error Error, if any + * @param [response] Trial + */ + type AddTrialMeasurementCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|completeTrial}. + * @param error Error, if any + * @param [response] Trial */ - public static verify(message: { [k: string]: any }): (string|null); + type CompleteTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; /** - * Creates a ListTensorboardRunsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListTensorboardRunsResponse + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|deleteTrial}. + * @param error Error, if any + * @param [response] Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; + type DeleteTrialCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Creates a plain object from a ListTensorboardRunsResponse message. Also converts values to other types if specified. - * @param message ListTensorboardRunsResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|checkTrialEarlyStoppingState}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type CheckTrialEarlyStoppingStateCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListTensorboardRunsResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|stopTrial}. + * @param error Error, if any + * @param [response] Trial */ - public toJSON(): { [k: string]: any }; + type StopTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; /** - * Gets the default type url for ListTensorboardRunsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listOptimalTrials}. + * @param error Error, if any + * @param [response] ListOptimalTrialsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ListOptimalTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListOptimalTrialsResponse) => void; } - /** Properties of an UpdateTensorboardRunRequest. */ - interface IUpdateTensorboardRunRequest { - - /** UpdateTensorboardRunRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a GetStudyRequest. */ + interface IGetStudyRequest { - /** UpdateTensorboardRunRequest tensorboardRun */ - tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + /** GetStudyRequest name */ + name?: (string|null); } - /** Represents an UpdateTensorboardRunRequest. */ - class UpdateTensorboardRunRequest implements IUpdateTensorboardRunRequest { + /** Represents a GetStudyRequest. */ + class GetStudyRequest implements IGetStudyRequest { /** - * Constructs a new UpdateTensorboardRunRequest. + * Constructs a new GetStudyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest); - - /** UpdateTensorboardRunRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1.IGetStudyRequest); - /** UpdateTensorboardRunRequest tensorboardRun. */ - public tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + /** GetStudyRequest name. */ + public name: string; /** - * Creates a new UpdateTensorboardRunRequest instance using the specified properties. + * Creates a new GetStudyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardRunRequest instance + * @returns GetStudyRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetStudyRequest): google.cloud.aiplatform.v1.GetStudyRequest; /** - * Encodes the specified UpdateTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.verify|verify} messages. - * @param message UpdateTensorboardRunRequest message or plain object to encode + * Encodes the specified GetStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. + * @param message GetStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.verify|verify} messages. - * @param message UpdateTensorboardRunRequest message or plain object to encode + * Encodes the specified GetStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. + * @param message GetStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardRunRequest message from the specified reader or buffer. + * Decodes a GetStudyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardRunRequest + * @returns GetStudyRequest * @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.aiplatform.v1.UpdateTensorboardRunRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetStudyRequest; /** - * Decodes an UpdateTensorboardRunRequest message from the specified reader or buffer, length delimited. + * Decodes a GetStudyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardRunRequest + * @returns GetStudyRequest * @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.aiplatform.v1.UpdateTensorboardRunRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetStudyRequest; /** - * Verifies an UpdateTensorboardRunRequest message. + * Verifies a GetStudyRequest 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 an UpdateTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetStudyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardRunRequest + * @returns GetStudyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetStudyRequest; /** - * Creates a plain object from an UpdateTensorboardRunRequest message. Also converts values to other types if specified. - * @param message UpdateTensorboardRunRequest + * Creates a plain object from a GetStudyRequest message. Also converts values to other types if specified. + * @param message GetStudyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardRunRequest to JSON. + * Converts this GetStudyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardRunRequest + * Gets the default type url for GetStudyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTensorboardRunRequest. */ - interface IDeleteTensorboardRunRequest { + /** Properties of a CreateStudyRequest. */ + interface ICreateStudyRequest { - /** DeleteTensorboardRunRequest name */ - name?: (string|null); + /** CreateStudyRequest parent */ + parent?: (string|null); + + /** CreateStudyRequest study */ + study?: (google.cloud.aiplatform.v1.IStudy|null); } - /** Represents a DeleteTensorboardRunRequest. */ - class DeleteTensorboardRunRequest implements IDeleteTensorboardRunRequest { + /** Represents a CreateStudyRequest. */ + class CreateStudyRequest implements ICreateStudyRequest { /** - * Constructs a new DeleteTensorboardRunRequest. + * Constructs a new CreateStudyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest); - /** DeleteTensorboardRunRequest name. */ - public name: string; + /** CreateStudyRequest parent. */ + public parent: string; + + /** CreateStudyRequest study. */ + public study?: (google.cloud.aiplatform.v1.IStudy|null); /** - * Creates a new DeleteTensorboardRunRequest instance using the specified properties. + * Creates a new CreateStudyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTensorboardRunRequest instance + * @returns CreateStudyRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest): google.cloud.aiplatform.v1.CreateStudyRequest; /** - * Encodes the specified DeleteTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRunRequest.verify|verify} messages. - * @param message DeleteTensorboardRunRequest message or plain object to encode + * Encodes the specified CreateStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. + * @param message CreateStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRunRequest.verify|verify} messages. - * @param message DeleteTensorboardRunRequest message or plain object to encode + * Encodes the specified CreateStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. + * @param message CreateStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTensorboardRunRequest message from the specified reader or buffer. + * Decodes a CreateStudyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTensorboardRunRequest + * @returns CreateStudyRequest * @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.aiplatform.v1.DeleteTensorboardRunRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateStudyRequest; /** - * Decodes a DeleteTensorboardRunRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateStudyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTensorboardRunRequest + * @returns CreateStudyRequest * @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.aiplatform.v1.DeleteTensorboardRunRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateStudyRequest; /** - * Verifies a DeleteTensorboardRunRequest message. + * Verifies a CreateStudyRequest 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 DeleteTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateStudyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTensorboardRunRequest + * @returns CreateStudyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateStudyRequest; /** - * Creates a plain object from a DeleteTensorboardRunRequest message. Also converts values to other types if specified. - * @param message DeleteTensorboardRunRequest + * Creates a plain object from a CreateStudyRequest message. Also converts values to other types if specified. + * @param message CreateStudyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTensorboardRunRequest to JSON. + * Converts this CreateStudyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTensorboardRunRequest + * Gets the default type url for CreateStudyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateTensorboardTimeSeriesRequest. */ - interface IBatchCreateTensorboardTimeSeriesRequest { + /** Properties of a ListStudiesRequest. */ + interface IListStudiesRequest { - /** BatchCreateTensorboardTimeSeriesRequest parent */ + /** ListStudiesRequest parent */ parent?: (string|null); - /** BatchCreateTensorboardTimeSeriesRequest requests */ - requests?: (google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest[]|null); + /** ListStudiesRequest pageToken */ + pageToken?: (string|null); + + /** ListStudiesRequest pageSize */ + pageSize?: (number|null); } - /** Represents a BatchCreateTensorboardTimeSeriesRequest. */ - class BatchCreateTensorboardTimeSeriesRequest implements IBatchCreateTensorboardTimeSeriesRequest { + /** Represents a ListStudiesRequest. */ + class ListStudiesRequest implements IListStudiesRequest { /** - * Constructs a new BatchCreateTensorboardTimeSeriesRequest. + * Constructs a new ListStudiesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListStudiesRequest); - /** BatchCreateTensorboardTimeSeriesRequest parent. */ + /** ListStudiesRequest parent. */ public parent: string; - /** BatchCreateTensorboardTimeSeriesRequest requests. */ - public requests: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest[]; + /** ListStudiesRequest pageToken. */ + public pageToken: string; + + /** ListStudiesRequest pageSize. */ + public pageSize: number; /** - * Creates a new BatchCreateTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new ListStudiesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateTensorboardTimeSeriesRequest instance + * @returns ListStudiesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListStudiesRequest): google.cloud.aiplatform.v1.ListStudiesRequest; /** - * Encodes the specified BatchCreateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message BatchCreateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified ListStudiesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. + * @param message ListStudiesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message BatchCreateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified ListStudiesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. + * @param message ListStudiesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a ListStudiesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateTensorboardTimeSeriesRequest + * @returns ListStudiesRequest * @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.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListStudiesRequest; /** - * Decodes a BatchCreateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListStudiesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateTensorboardTimeSeriesRequest + * @returns ListStudiesRequest * @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.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListStudiesRequest; /** - * Verifies a BatchCreateTensorboardTimeSeriesRequest message. + * Verifies a ListStudiesRequest 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 BatchCreateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListStudiesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateTensorboardTimeSeriesRequest + * @returns ListStudiesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesRequest; /** - * Creates a plain object from a BatchCreateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message BatchCreateTensorboardTimeSeriesRequest + * Creates a plain object from a ListStudiesRequest message. Also converts values to other types if specified. + * @param message ListStudiesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListStudiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateTensorboardTimeSeriesRequest to JSON. + * Converts this ListStudiesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateTensorboardTimeSeriesRequest + * Gets the default type url for ListStudiesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateTensorboardTimeSeriesResponse. */ - interface IBatchCreateTensorboardTimeSeriesResponse { + /** Properties of a ListStudiesResponse. */ + interface IListStudiesResponse { - /** BatchCreateTensorboardTimeSeriesResponse tensorboardTimeSeries */ - tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries[]|null); + /** ListStudiesResponse studies */ + studies?: (google.cloud.aiplatform.v1.IStudy[]|null); + + /** ListStudiesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a BatchCreateTensorboardTimeSeriesResponse. */ - class BatchCreateTensorboardTimeSeriesResponse implements IBatchCreateTensorboardTimeSeriesResponse { + /** Represents a ListStudiesResponse. */ + class ListStudiesResponse implements IListStudiesResponse { /** - * Constructs a new BatchCreateTensorboardTimeSeriesResponse. + * Constructs a new ListStudiesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListStudiesResponse); - /** BatchCreateTensorboardTimeSeriesResponse tensorboardTimeSeries. */ - public tensorboardTimeSeries: google.cloud.aiplatform.v1.ITensorboardTimeSeries[]; + /** ListStudiesResponse studies. */ + public studies: google.cloud.aiplatform.v1.IStudy[]; + + /** ListStudiesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchCreateTensorboardTimeSeriesResponse instance using the specified properties. + * Creates a new ListStudiesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateTensorboardTimeSeriesResponse instance + * @returns ListStudiesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListStudiesResponse): google.cloud.aiplatform.v1.ListStudiesResponse; /** - * Encodes the specified BatchCreateTensorboardTimeSeriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.verify|verify} messages. - * @param message BatchCreateTensorboardTimeSeriesResponse message or plain object to encode + * Encodes the specified ListStudiesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. + * @param message ListStudiesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateTensorboardTimeSeriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.verify|verify} messages. - * @param message BatchCreateTensorboardTimeSeriesResponse message or plain object to encode + * Encodes the specified ListStudiesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. + * @param message ListStudiesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateTensorboardTimeSeriesResponse message from the specified reader or buffer. + * Decodes a ListStudiesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateTensorboardTimeSeriesResponse + * @returns ListStudiesResponse * @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.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListStudiesResponse; /** - * Decodes a BatchCreateTensorboardTimeSeriesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListStudiesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateTensorboardTimeSeriesResponse + * @returns ListStudiesResponse * @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.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListStudiesResponse; /** - * Verifies a BatchCreateTensorboardTimeSeriesResponse message. + * Verifies a ListStudiesResponse 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 BatchCreateTensorboardTimeSeriesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListStudiesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateTensorboardTimeSeriesResponse + * @returns ListStudiesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesResponse; /** - * Creates a plain object from a BatchCreateTensorboardTimeSeriesResponse message. Also converts values to other types if specified. - * @param message BatchCreateTensorboardTimeSeriesResponse + * Creates a plain object from a ListStudiesResponse message. Also converts values to other types if specified. + * @param message ListStudiesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListStudiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateTensorboardTimeSeriesResponse to JSON. + * Converts this ListStudiesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateTensorboardTimeSeriesResponse + * Gets the default type url for ListStudiesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardTimeSeriesRequest. */ - interface ICreateTensorboardTimeSeriesRequest { - - /** CreateTensorboardTimeSeriesRequest parent */ - parent?: (string|null); - - /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeriesId */ - tensorboardTimeSeriesId?: (string|null); + /** Properties of a DeleteStudyRequest. */ + interface IDeleteStudyRequest { - /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeries */ - tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); + /** DeleteStudyRequest name */ + name?: (string|null); } - /** Represents a CreateTensorboardTimeSeriesRequest. */ - class CreateTensorboardTimeSeriesRequest implements ICreateTensorboardTimeSeriesRequest { + /** Represents a DeleteStudyRequest. */ + class DeleteStudyRequest implements IDeleteStudyRequest { /** - * Constructs a new CreateTensorboardTimeSeriesRequest. + * Constructs a new DeleteStudyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest); - - /** CreateTensorboardTimeSeriesRequest parent. */ - public parent: string; - - /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeriesId. */ - public tensorboardTimeSeriesId: string; + constructor(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest); - /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeries. */ - public tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); + /** DeleteStudyRequest name. */ + public name: string; /** - * Creates a new CreateTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new DeleteStudyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardTimeSeriesRequest instance + * @returns DeleteStudyRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest): google.cloud.aiplatform.v1.DeleteStudyRequest; /** - * Encodes the specified CreateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message CreateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified DeleteStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. + * @param message DeleteStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message CreateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified DeleteStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. + * @param message DeleteStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a DeleteStudyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardTimeSeriesRequest + * @returns DeleteStudyRequest * @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.aiplatform.v1.CreateTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteStudyRequest; /** - * Decodes a CreateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteStudyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardTimeSeriesRequest + * @returns DeleteStudyRequest * @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.aiplatform.v1.CreateTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteStudyRequest; /** - * Verifies a CreateTensorboardTimeSeriesRequest message. + * Verifies a DeleteStudyRequest 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 CreateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteStudyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardTimeSeriesRequest + * @returns DeleteStudyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteStudyRequest; /** - * Creates a plain object from a CreateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message CreateTensorboardTimeSeriesRequest + * Creates a plain object from a DeleteStudyRequest message. Also converts values to other types if specified. + * @param message DeleteStudyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardTimeSeriesRequest to JSON. + * Converts this DeleteStudyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardTimeSeriesRequest + * Gets the default type url for DeleteStudyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTensorboardTimeSeriesRequest. */ - interface IGetTensorboardTimeSeriesRequest { + /** Properties of a LookupStudyRequest. */ + interface ILookupStudyRequest { - /** GetTensorboardTimeSeriesRequest name */ - name?: (string|null); + /** LookupStudyRequest parent */ + parent?: (string|null); + + /** LookupStudyRequest displayName */ + displayName?: (string|null); } - /** Represents a GetTensorboardTimeSeriesRequest. */ - class GetTensorboardTimeSeriesRequest implements IGetTensorboardTimeSeriesRequest { + /** Represents a LookupStudyRequest. */ + class LookupStudyRequest implements ILookupStudyRequest { /** - * Constructs a new GetTensorboardTimeSeriesRequest. + * Constructs a new LookupStudyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest); - /** GetTensorboardTimeSeriesRequest name. */ - public name: string; + /** LookupStudyRequest parent. */ + public parent: string; + + /** LookupStudyRequest displayName. */ + public displayName: string; /** - * Creates a new GetTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new LookupStudyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTensorboardTimeSeriesRequest instance + * @returns LookupStudyRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest): google.cloud.aiplatform.v1.LookupStudyRequest; /** - * Encodes the specified GetTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message GetTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified LookupStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. + * @param message LookupStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message GetTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified LookupStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. + * @param message LookupStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a LookupStudyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTensorboardTimeSeriesRequest + * @returns LookupStudyRequest * @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.aiplatform.v1.GetTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.LookupStudyRequest; /** - * Decodes a GetTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupStudyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTensorboardTimeSeriesRequest + * @returns LookupStudyRequest * @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.aiplatform.v1.GetTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.LookupStudyRequest; /** - * Verifies a GetTensorboardTimeSeriesRequest message. + * Verifies a LookupStudyRequest 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 GetTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupStudyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTensorboardTimeSeriesRequest + * @returns LookupStudyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LookupStudyRequest; /** - * Creates a plain object from a GetTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message GetTensorboardTimeSeriesRequest + * Creates a plain object from a LookupStudyRequest message. Also converts values to other types if specified. + * @param message LookupStudyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.LookupStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTensorboardTimeSeriesRequest to JSON. + * Converts this LookupStudyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTensorboardTimeSeriesRequest + * Gets the default type url for LookupStudyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardTimeSeriesRequest. */ - interface IListTensorboardTimeSeriesRequest { + /** Properties of a SuggestTrialsRequest. */ + interface ISuggestTrialsRequest { - /** ListTensorboardTimeSeriesRequest parent */ + /** SuggestTrialsRequest parent */ parent?: (string|null); - /** ListTensorboardTimeSeriesRequest filter */ - filter?: (string|null); - - /** ListTensorboardTimeSeriesRequest pageSize */ - pageSize?: (number|null); - - /** ListTensorboardTimeSeriesRequest pageToken */ - pageToken?: (string|null); - - /** ListTensorboardTimeSeriesRequest orderBy */ - orderBy?: (string|null); + /** SuggestTrialsRequest suggestionCount */ + suggestionCount?: (number|null); - /** ListTensorboardTimeSeriesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** SuggestTrialsRequest clientId */ + clientId?: (string|null); } - /** Represents a ListTensorboardTimeSeriesRequest. */ - class ListTensorboardTimeSeriesRequest implements IListTensorboardTimeSeriesRequest { + /** Represents a SuggestTrialsRequest. */ + class SuggestTrialsRequest implements ISuggestTrialsRequest { /** - * Constructs a new ListTensorboardTimeSeriesRequest. + * Constructs a new SuggestTrialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest); - /** ListTensorboardTimeSeriesRequest parent. */ + /** SuggestTrialsRequest parent. */ public parent: string; - /** ListTensorboardTimeSeriesRequest filter. */ - public filter: string; - - /** ListTensorboardTimeSeriesRequest pageSize. */ - public pageSize: number; - - /** ListTensorboardTimeSeriesRequest pageToken. */ - public pageToken: string; - - /** ListTensorboardTimeSeriesRequest orderBy. */ - public orderBy: string; + /** SuggestTrialsRequest suggestionCount. */ + public suggestionCount: number; - /** ListTensorboardTimeSeriesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** SuggestTrialsRequest clientId. */ + public clientId: string; /** - * Creates a new ListTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new SuggestTrialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardTimeSeriesRequest instance + * @returns SuggestTrialsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest): google.cloud.aiplatform.v1.SuggestTrialsRequest; /** - * Encodes the specified ListTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message ListTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified SuggestTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. + * @param message SuggestTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message ListTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified SuggestTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. + * @param message SuggestTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a SuggestTrialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardTimeSeriesRequest + * @returns SuggestTrialsRequest * @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.aiplatform.v1.ListTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SuggestTrialsRequest; /** - * Decodes a ListTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a SuggestTrialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardTimeSeriesRequest + * @returns SuggestTrialsRequest * @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.aiplatform.v1.ListTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SuggestTrialsRequest; /** - * Verifies a ListTensorboardTimeSeriesRequest message. + * Verifies a SuggestTrialsRequest 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 ListTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SuggestTrialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardTimeSeriesRequest + * @returns SuggestTrialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsRequest; /** - * Creates a plain object from a ListTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message ListTensorboardTimeSeriesRequest + * Creates a plain object from a SuggestTrialsRequest message. Also converts values to other types if specified. + * @param message SuggestTrialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardTimeSeriesRequest to JSON. + * Converts this SuggestTrialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardTimeSeriesRequest + * Gets the default type url for SuggestTrialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardTimeSeriesResponse. */ - interface IListTensorboardTimeSeriesResponse { + /** Properties of a SuggestTrialsResponse. */ + interface ISuggestTrialsResponse { - /** ListTensorboardTimeSeriesResponse tensorboardTimeSeries */ - tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries[]|null); + /** SuggestTrialsResponse trials */ + trials?: (google.cloud.aiplatform.v1.ITrial[]|null); - /** ListTensorboardTimeSeriesResponse nextPageToken */ - nextPageToken?: (string|null); + /** SuggestTrialsResponse studyState */ + studyState?: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State|null); + + /** SuggestTrialsResponse startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** SuggestTrialsResponse endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ListTensorboardTimeSeriesResponse. */ - class ListTensorboardTimeSeriesResponse implements IListTensorboardTimeSeriesResponse { + /** Represents a SuggestTrialsResponse. */ + class SuggestTrialsResponse implements ISuggestTrialsResponse { /** - * Constructs a new ListTensorboardTimeSeriesResponse. + * Constructs a new SuggestTrialsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse); + constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse); - /** ListTensorboardTimeSeriesResponse tensorboardTimeSeries. */ - public tensorboardTimeSeries: google.cloud.aiplatform.v1.ITensorboardTimeSeries[]; + /** SuggestTrialsResponse trials. */ + public trials: google.cloud.aiplatform.v1.ITrial[]; - /** ListTensorboardTimeSeriesResponse nextPageToken. */ - public nextPageToken: string; + /** SuggestTrialsResponse studyState. */ + public studyState: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State); + + /** SuggestTrialsResponse startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** SuggestTrialsResponse endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListTensorboardTimeSeriesResponse instance using the specified properties. + * Creates a new SuggestTrialsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardTimeSeriesResponse instance + * @returns SuggestTrialsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; + public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse): google.cloud.aiplatform.v1.SuggestTrialsResponse; /** - * Encodes the specified ListTensorboardTimeSeriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.verify|verify} messages. - * @param message ListTensorboardTimeSeriesResponse message or plain object to encode + * Encodes the specified SuggestTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. + * @param message SuggestTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardTimeSeriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.verify|verify} messages. - * @param message ListTensorboardTimeSeriesResponse message or plain object to encode + * Encodes the specified SuggestTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. + * @param message SuggestTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardTimeSeriesResponse message from the specified reader or buffer. + * Decodes a SuggestTrialsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardTimeSeriesResponse + * @returns SuggestTrialsResponse * @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.aiplatform.v1.ListTensorboardTimeSeriesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SuggestTrialsResponse; /** - * Decodes a ListTensorboardTimeSeriesResponse message from the specified reader or buffer, length delimited. + * Decodes a SuggestTrialsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardTimeSeriesResponse + * @returns SuggestTrialsResponse * @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.aiplatform.v1.ListTensorboardTimeSeriesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SuggestTrialsResponse; /** - * Verifies a ListTensorboardTimeSeriesResponse message. + * Verifies a SuggestTrialsResponse 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 ListTensorboardTimeSeriesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SuggestTrialsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardTimeSeriesResponse + * @returns SuggestTrialsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsResponse; /** - * Creates a plain object from a ListTensorboardTimeSeriesResponse message. Also converts values to other types if specified. - * @param message ListTensorboardTimeSeriesResponse + * Creates a plain object from a SuggestTrialsResponse message. Also converts values to other types if specified. + * @param message SuggestTrialsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardTimeSeriesResponse to JSON. + * Converts this SuggestTrialsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardTimeSeriesResponse + * Gets the default type url for SuggestTrialsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTensorboardTimeSeriesRequest. */ - interface IUpdateTensorboardTimeSeriesRequest { + /** Properties of a SuggestTrialsMetadata. */ + interface ISuggestTrialsMetadata { - /** UpdateTensorboardTimeSeriesRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** SuggestTrialsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** UpdateTensorboardTimeSeriesRequest tensorboardTimeSeries */ - tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); + /** SuggestTrialsMetadata clientId */ + clientId?: (string|null); } - /** Represents an UpdateTensorboardTimeSeriesRequest. */ - class UpdateTensorboardTimeSeriesRequest implements IUpdateTensorboardTimeSeriesRequest { + /** Represents a SuggestTrialsMetadata. */ + class SuggestTrialsMetadata implements ISuggestTrialsMetadata { /** - * Constructs a new UpdateTensorboardTimeSeriesRequest. + * Constructs a new SuggestTrialsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata); - /** UpdateTensorboardTimeSeriesRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** SuggestTrialsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** UpdateTensorboardTimeSeriesRequest tensorboardTimeSeries. */ - public tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); + /** SuggestTrialsMetadata clientId. */ + public clientId: string; /** - * Creates a new UpdateTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new SuggestTrialsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardTimeSeriesRequest instance + * @returns SuggestTrialsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata): google.cloud.aiplatform.v1.SuggestTrialsMetadata; /** - * Encodes the specified UpdateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message UpdateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified SuggestTrialsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. + * @param message SuggestTrialsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message UpdateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified SuggestTrialsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. + * @param message SuggestTrialsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a SuggestTrialsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardTimeSeriesRequest + * @returns SuggestTrialsMetadata * @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.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SuggestTrialsMetadata; /** - * Decodes an UpdateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a SuggestTrialsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardTimeSeriesRequest + * @returns SuggestTrialsMetadata * @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.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SuggestTrialsMetadata; /** - * Verifies an UpdateTensorboardTimeSeriesRequest message. + * Verifies a SuggestTrialsMetadata 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 an UpdateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SuggestTrialsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardTimeSeriesRequest + * @returns SuggestTrialsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsMetadata; /** - * Creates a plain object from an UpdateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message UpdateTensorboardTimeSeriesRequest + * Creates a plain object from a SuggestTrialsMetadata message. Also converts values to other types if specified. + * @param message SuggestTrialsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardTimeSeriesRequest to JSON. + * Converts this SuggestTrialsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardTimeSeriesRequest + * Gets the default type url for SuggestTrialsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTensorboardTimeSeriesRequest. */ - interface IDeleteTensorboardTimeSeriesRequest { + /** Properties of a CreateTrialRequest. */ + interface ICreateTrialRequest { - /** DeleteTensorboardTimeSeriesRequest name */ - name?: (string|null); + /** CreateTrialRequest parent */ + parent?: (string|null); + + /** CreateTrialRequest trial */ + trial?: (google.cloud.aiplatform.v1.ITrial|null); } - /** Represents a DeleteTensorboardTimeSeriesRequest. */ - class DeleteTensorboardTimeSeriesRequest implements IDeleteTensorboardTimeSeriesRequest { + /** Represents a CreateTrialRequest. */ + class CreateTrialRequest implements ICreateTrialRequest { /** - * Constructs a new DeleteTensorboardTimeSeriesRequest. + * Constructs a new CreateTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest); - /** DeleteTensorboardTimeSeriesRequest name. */ - public name: string; + /** CreateTrialRequest parent. */ + public parent: string; + + /** CreateTrialRequest trial. */ + public trial?: (google.cloud.aiplatform.v1.ITrial|null); /** - * Creates a new DeleteTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new CreateTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTensorboardTimeSeriesRequest instance + * @returns CreateTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest): google.cloud.aiplatform.v1.CreateTrialRequest; /** - * Encodes the specified DeleteTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message DeleteTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified CreateTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. + * @param message CreateTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message DeleteTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified CreateTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. + * @param message CreateTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a CreateTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTensorboardTimeSeriesRequest + * @returns CreateTrialRequest * @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.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTrialRequest; /** - * Decodes a DeleteTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTensorboardTimeSeriesRequest + * @returns CreateTrialRequest * @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.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTrialRequest; /** - * Verifies a DeleteTensorboardTimeSeriesRequest message. + * Verifies a CreateTrialRequest 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 DeleteTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTensorboardTimeSeriesRequest + * @returns CreateTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrialRequest; /** - * Creates a plain object from a DeleteTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message DeleteTensorboardTimeSeriesRequest + * Creates a plain object from a CreateTrialRequest message. Also converts values to other types if specified. + * @param message CreateTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTensorboardTimeSeriesRequest to JSON. + * Converts this CreateTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTensorboardTimeSeriesRequest + * Gets the default type url for CreateTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadTensorboardTimeSeriesDataRequest. */ - interface IBatchReadTensorboardTimeSeriesDataRequest { - - /** BatchReadTensorboardTimeSeriesDataRequest tensorboard */ - tensorboard?: (string|null); + /** Properties of a GetTrialRequest. */ + interface IGetTrialRequest { - /** BatchReadTensorboardTimeSeriesDataRequest timeSeries */ - timeSeries?: (string[]|null); + /** GetTrialRequest name */ + name?: (string|null); } - /** Represents a BatchReadTensorboardTimeSeriesDataRequest. */ - class BatchReadTensorboardTimeSeriesDataRequest implements IBatchReadTensorboardTimeSeriesDataRequest { + /** Represents a GetTrialRequest. */ + class GetTrialRequest implements IGetTrialRequest { /** - * Constructs a new BatchReadTensorboardTimeSeriesDataRequest. + * Constructs a new GetTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest); - - /** BatchReadTensorboardTimeSeriesDataRequest tensorboard. */ - public tensorboard: string; + constructor(properties?: google.cloud.aiplatform.v1.IGetTrialRequest); - /** BatchReadTensorboardTimeSeriesDataRequest timeSeries. */ - public timeSeries: string[]; + /** GetTrialRequest name. */ + public name: string; /** - * Creates a new BatchReadTensorboardTimeSeriesDataRequest instance using the specified properties. + * Creates a new GetTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadTensorboardTimeSeriesDataRequest instance + * @returns GetTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetTrialRequest): google.cloud.aiplatform.v1.GetTrialRequest; /** - * Encodes the specified BatchReadTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message BatchReadTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified GetTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. + * @param message GetTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message BatchReadTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified GetTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. + * @param message GetTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer. + * Decodes a GetTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadTensorboardTimeSeriesDataRequest + * @returns GetTrialRequest * @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.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetTrialRequest; /** - * Decodes a BatchReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadTensorboardTimeSeriesDataRequest + * @returns GetTrialRequest * @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.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetTrialRequest; /** - * Verifies a BatchReadTensorboardTimeSeriesDataRequest message. + * Verifies a GetTrialRequest 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 BatchReadTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadTensorboardTimeSeriesDataRequest + * @returns GetTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrialRequest; /** - * Creates a plain object from a BatchReadTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. - * @param message BatchReadTensorboardTimeSeriesDataRequest + * Creates a plain object from a GetTrialRequest message. Also converts values to other types if specified. + * @param message GetTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadTensorboardTimeSeriesDataRequest to JSON. + * Converts this GetTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadTensorboardTimeSeriesDataRequest + * Gets the default type url for GetTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadTensorboardTimeSeriesDataResponse. */ - interface IBatchReadTensorboardTimeSeriesDataResponse { + /** Properties of a ListTrialsRequest. */ + interface IListTrialsRequest { - /** BatchReadTensorboardTimeSeriesDataResponse timeSeriesData */ - timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData[]|null); + /** ListTrialsRequest parent */ + parent?: (string|null); + + /** ListTrialsRequest pageToken */ + pageToken?: (string|null); + + /** ListTrialsRequest pageSize */ + pageSize?: (number|null); } - /** Represents a BatchReadTensorboardTimeSeriesDataResponse. */ - class BatchReadTensorboardTimeSeriesDataResponse implements IBatchReadTensorboardTimeSeriesDataResponse { + /** Represents a ListTrialsRequest. */ + class ListTrialsRequest implements IListTrialsRequest { /** - * Constructs a new BatchReadTensorboardTimeSeriesDataResponse. + * Constructs a new ListTrialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListTrialsRequest); - /** BatchReadTensorboardTimeSeriesDataResponse timeSeriesData. */ - public timeSeriesData: google.cloud.aiplatform.v1.ITimeSeriesData[]; + /** ListTrialsRequest parent. */ + public parent: string; + + /** ListTrialsRequest pageToken. */ + public pageToken: string; + + /** ListTrialsRequest pageSize. */ + public pageSize: number; /** - * Creates a new BatchReadTensorboardTimeSeriesDataResponse instance using the specified properties. + * Creates a new ListTrialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadTensorboardTimeSeriesDataResponse instance + * @returns ListTrialsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListTrialsRequest): google.cloud.aiplatform.v1.ListTrialsRequest; /** - * Encodes the specified BatchReadTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message BatchReadTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified ListTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. + * @param message ListTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message BatchReadTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified ListTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. + * @param message ListTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer. + * Decodes a ListTrialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadTensorboardTimeSeriesDataResponse + * @returns ListTrialsRequest * @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.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTrialsRequest; /** - * Decodes a BatchReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTrialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadTensorboardTimeSeriesDataResponse + * @returns ListTrialsRequest * @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.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTrialsRequest; /** - * Verifies a BatchReadTensorboardTimeSeriesDataResponse message. + * Verifies a ListTrialsRequest 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 BatchReadTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadTensorboardTimeSeriesDataResponse + * @returns ListTrialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsRequest; /** - * Creates a plain object from a BatchReadTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. - * @param message BatchReadTensorboardTimeSeriesDataResponse + * Creates a plain object from a ListTrialsRequest message. Also converts values to other types if specified. + * @param message ListTrialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadTensorboardTimeSeriesDataResponse to JSON. + * Converts this ListTrialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadTensorboardTimeSeriesDataResponse + * Gets the default type url for ListTrialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardTimeSeriesDataRequest. */ - interface IReadTensorboardTimeSeriesDataRequest { - - /** ReadTensorboardTimeSeriesDataRequest tensorboardTimeSeries */ - tensorboardTimeSeries?: (string|null); + /** Properties of a ListTrialsResponse. */ + interface IListTrialsResponse { - /** ReadTensorboardTimeSeriesDataRequest maxDataPoints */ - maxDataPoints?: (number|null); + /** ListTrialsResponse trials */ + trials?: (google.cloud.aiplatform.v1.ITrial[]|null); - /** ReadTensorboardTimeSeriesDataRequest filter */ - filter?: (string|null); + /** ListTrialsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ReadTensorboardTimeSeriesDataRequest. */ - class ReadTensorboardTimeSeriesDataRequest implements IReadTensorboardTimeSeriesDataRequest { + /** Represents a ListTrialsResponse. */ + class ListTrialsResponse implements IListTrialsResponse { /** - * Constructs a new ReadTensorboardTimeSeriesDataRequest. + * Constructs a new ListTrialsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest); - - /** ReadTensorboardTimeSeriesDataRequest tensorboardTimeSeries. */ - public tensorboardTimeSeries: string; + constructor(properties?: google.cloud.aiplatform.v1.IListTrialsResponse); - /** ReadTensorboardTimeSeriesDataRequest maxDataPoints. */ - public maxDataPoints: number; + /** ListTrialsResponse trials. */ + public trials: google.cloud.aiplatform.v1.ITrial[]; - /** ReadTensorboardTimeSeriesDataRequest filter. */ - public filter: string; + /** ListTrialsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ReadTensorboardTimeSeriesDataRequest instance using the specified properties. + * Creates a new ListTrialsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardTimeSeriesDataRequest instance + * @returns ListTrialsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListTrialsResponse): google.cloud.aiplatform.v1.ListTrialsResponse; - /** - * Encodes the specified ReadTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message ReadTensorboardTimeSeriesDataRequest message or plain object to encode + /** + * Encodes the specified ListTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. + * @param message ListTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message ReadTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified ListTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. + * @param message ListTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer. + * Decodes a ListTrialsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardTimeSeriesDataRequest + * @returns ListTrialsResponse * @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.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTrialsResponse; /** - * Decodes a ReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTrialsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardTimeSeriesDataRequest + * @returns ListTrialsResponse * @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.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTrialsResponse; /** - * Verifies a ReadTensorboardTimeSeriesDataRequest message. + * Verifies a ListTrialsResponse 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 ReadTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrialsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardTimeSeriesDataRequest + * @returns ListTrialsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsResponse; /** - * Creates a plain object from a ReadTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. - * @param message ReadTensorboardTimeSeriesDataRequest + * Creates a plain object from a ListTrialsResponse message. Also converts values to other types if specified. + * @param message ListTrialsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardTimeSeriesDataRequest to JSON. + * Converts this ListTrialsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardTimeSeriesDataRequest + * Gets the default type url for ListTrialsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardTimeSeriesDataResponse. */ - interface IReadTensorboardTimeSeriesDataResponse { + /** Properties of an AddTrialMeasurementRequest. */ + interface IAddTrialMeasurementRequest { - /** ReadTensorboardTimeSeriesDataResponse timeSeriesData */ - timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData|null); + /** AddTrialMeasurementRequest trialName */ + trialName?: (string|null); + + /** AddTrialMeasurementRequest measurement */ + measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); } - /** Represents a ReadTensorboardTimeSeriesDataResponse. */ - class ReadTensorboardTimeSeriesDataResponse implements IReadTensorboardTimeSeriesDataResponse { + /** Represents an AddTrialMeasurementRequest. */ + class AddTrialMeasurementRequest implements IAddTrialMeasurementRequest { /** - * Constructs a new ReadTensorboardTimeSeriesDataResponse. + * Constructs a new AddTrialMeasurementRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest); - /** ReadTensorboardTimeSeriesDataResponse timeSeriesData. */ - public timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData|null); + /** AddTrialMeasurementRequest trialName. */ + public trialName: string; + + /** AddTrialMeasurementRequest measurement. */ + public measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); /** - * Creates a new ReadTensorboardTimeSeriesDataResponse instance using the specified properties. + * Creates a new AddTrialMeasurementRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardTimeSeriesDataResponse instance + * @returns AddTrialMeasurementRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; /** - * Encodes the specified ReadTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message ReadTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified AddTrialMeasurementRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. + * @param message AddTrialMeasurementRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message ReadTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified AddTrialMeasurementRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. + * @param message AddTrialMeasurementRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer. + * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardTimeSeriesDataResponse + * @returns AddTrialMeasurementRequest * @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.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; /** - * Decodes a ReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. + * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardTimeSeriesDataResponse + * @returns AddTrialMeasurementRequest * @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.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; /** - * Verifies a ReadTensorboardTimeSeriesDataResponse message. + * Verifies an AddTrialMeasurementRequest 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 ReadTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddTrialMeasurementRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardTimeSeriesDataResponse + * @returns AddTrialMeasurementRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; /** - * Creates a plain object from a ReadTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. - * @param message ReadTensorboardTimeSeriesDataResponse + * Creates a plain object from an AddTrialMeasurementRequest message. Also converts values to other types if specified. + * @param message AddTrialMeasurementRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddTrialMeasurementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardTimeSeriesDataResponse to JSON. + * Converts this AddTrialMeasurementRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardTimeSeriesDataResponse + * Gets the default type url for AddTrialMeasurementRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteTensorboardExperimentDataRequest. */ - interface IWriteTensorboardExperimentDataRequest { + /** Properties of a CompleteTrialRequest. */ + interface ICompleteTrialRequest { - /** WriteTensorboardExperimentDataRequest tensorboardExperiment */ - tensorboardExperiment?: (string|null); + /** CompleteTrialRequest name */ + name?: (string|null); - /** WriteTensorboardExperimentDataRequest writeRunDataRequests */ - writeRunDataRequests?: (google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest[]|null); + /** CompleteTrialRequest finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** CompleteTrialRequest trialInfeasible */ + trialInfeasible?: (boolean|null); + + /** CompleteTrialRequest infeasibleReason */ + infeasibleReason?: (string|null); } - /** Represents a WriteTensorboardExperimentDataRequest. */ - class WriteTensorboardExperimentDataRequest implements IWriteTensorboardExperimentDataRequest { + /** Represents a CompleteTrialRequest. */ + class CompleteTrialRequest implements ICompleteTrialRequest { /** - * Constructs a new WriteTensorboardExperimentDataRequest. + * Constructs a new CompleteTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest); - /** WriteTensorboardExperimentDataRequest tensorboardExperiment. */ - public tensorboardExperiment: string; + /** CompleteTrialRequest name. */ + public name: string; - /** WriteTensorboardExperimentDataRequest writeRunDataRequests. */ - public writeRunDataRequests: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest[]; + /** CompleteTrialRequest finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** CompleteTrialRequest trialInfeasible. */ + public trialInfeasible: boolean; + + /** CompleteTrialRequest infeasibleReason. */ + public infeasibleReason: string; /** - * Creates a new WriteTensorboardExperimentDataRequest instance using the specified properties. + * Creates a new CompleteTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteTensorboardExperimentDataRequest instance + * @returns CompleteTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest): google.cloud.aiplatform.v1.CompleteTrialRequest; /** - * Encodes the specified WriteTensorboardExperimentDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.verify|verify} messages. - * @param message WriteTensorboardExperimentDataRequest message or plain object to encode + * Encodes the specified CompleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. + * @param message CompleteTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteTensorboardExperimentDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.verify|verify} messages. - * @param message WriteTensorboardExperimentDataRequest message or plain object to encode + * Encodes the specified CompleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. + * @param message CompleteTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteTensorboardExperimentDataRequest message from the specified reader or buffer. + * Decodes a CompleteTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteTensorboardExperimentDataRequest + * @returns CompleteTrialRequest * @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.aiplatform.v1.WriteTensorboardExperimentDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CompleteTrialRequest; /** - * Decodes a WriteTensorboardExperimentDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CompleteTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteTensorboardExperimentDataRequest + * @returns CompleteTrialRequest * @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.aiplatform.v1.WriteTensorboardExperimentDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CompleteTrialRequest; /** - * Verifies a WriteTensorboardExperimentDataRequest message. + * Verifies a CompleteTrialRequest 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 WriteTensorboardExperimentDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompleteTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteTensorboardExperimentDataRequest + * @returns CompleteTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CompleteTrialRequest; /** - * Creates a plain object from a WriteTensorboardExperimentDataRequest message. Also converts values to other types if specified. - * @param message WriteTensorboardExperimentDataRequest + * Creates a plain object from a CompleteTrialRequest message. Also converts values to other types if specified. + * @param message CompleteTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CompleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteTensorboardExperimentDataRequest to JSON. + * Converts this CompleteTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteTensorboardExperimentDataRequest + * Gets the default type url for CompleteTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteTensorboardExperimentDataResponse. */ - interface IWriteTensorboardExperimentDataResponse { + /** Properties of a DeleteTrialRequest. */ + interface IDeleteTrialRequest { + + /** DeleteTrialRequest name */ + name?: (string|null); } - /** Represents a WriteTensorboardExperimentDataResponse. */ - class WriteTensorboardExperimentDataResponse implements IWriteTensorboardExperimentDataResponse { + /** Represents a DeleteTrialRequest. */ + class DeleteTrialRequest implements IDeleteTrialRequest { /** - * Constructs a new WriteTensorboardExperimentDataResponse. + * Constructs a new DeleteTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest); + + /** DeleteTrialRequest name. */ + public name: string; /** - * Creates a new WriteTensorboardExperimentDataResponse instance using the specified properties. + * Creates a new DeleteTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteTensorboardExperimentDataResponse instance + * @returns DeleteTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest): google.cloud.aiplatform.v1.DeleteTrialRequest; /** - * Encodes the specified WriteTensorboardExperimentDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse.verify|verify} messages. - * @param message WriteTensorboardExperimentDataResponse message or plain object to encode + * Encodes the specified DeleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. + * @param message DeleteTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteTensorboardExperimentDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse.verify|verify} messages. - * @param message WriteTensorboardExperimentDataResponse message or plain object to encode + * Encodes the specified DeleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. + * @param message DeleteTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteTensorboardExperimentDataResponse message from the specified reader or buffer. + * Decodes a DeleteTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteTensorboardExperimentDataResponse + * @returns DeleteTrialRequest * @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.aiplatform.v1.WriteTensorboardExperimentDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTrialRequest; /** - * Decodes a WriteTensorboardExperimentDataResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteTensorboardExperimentDataResponse + * @returns DeleteTrialRequest * @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.aiplatform.v1.WriteTensorboardExperimentDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTrialRequest; /** - * Verifies a WriteTensorboardExperimentDataResponse message. + * Verifies a DeleteTrialRequest 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 WriteTensorboardExperimentDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteTensorboardExperimentDataResponse + * @returns DeleteTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrialRequest; /** - * Creates a plain object from a WriteTensorboardExperimentDataResponse message. Also converts values to other types if specified. - * @param message WriteTensorboardExperimentDataResponse + * Creates a plain object from a DeleteTrialRequest message. Also converts values to other types if specified. + * @param message DeleteTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteTensorboardExperimentDataResponse to JSON. + * Converts this DeleteTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteTensorboardExperimentDataResponse + * Gets the default type url for DeleteTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteTensorboardRunDataRequest. */ - interface IWriteTensorboardRunDataRequest { - - /** WriteTensorboardRunDataRequest tensorboardRun */ - tensorboardRun?: (string|null); + /** Properties of a CheckTrialEarlyStoppingStateRequest. */ + interface ICheckTrialEarlyStoppingStateRequest { - /** WriteTensorboardRunDataRequest timeSeriesData */ - timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData[]|null); + /** CheckTrialEarlyStoppingStateRequest trialName */ + trialName?: (string|null); } - /** Represents a WriteTensorboardRunDataRequest. */ - class WriteTensorboardRunDataRequest implements IWriteTensorboardRunDataRequest { + /** Represents a CheckTrialEarlyStoppingStateRequest. */ + class CheckTrialEarlyStoppingStateRequest implements ICheckTrialEarlyStoppingStateRequest { /** - * Constructs a new WriteTensorboardRunDataRequest. + * Constructs a new CheckTrialEarlyStoppingStateRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest); - - /** WriteTensorboardRunDataRequest tensorboardRun. */ - public tensorboardRun: string; + constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest); - /** WriteTensorboardRunDataRequest timeSeriesData. */ - public timeSeriesData: google.cloud.aiplatform.v1.ITimeSeriesData[]; + /** CheckTrialEarlyStoppingStateRequest trialName. */ + public trialName: string; /** - * Creates a new WriteTensorboardRunDataRequest instance using the specified properties. + * Creates a new CheckTrialEarlyStoppingStateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteTensorboardRunDataRequest instance + * @returns CheckTrialEarlyStoppingStateRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; /** - * Encodes the specified WriteTensorboardRunDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.verify|verify} messages. - * @param message WriteTensorboardRunDataRequest message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteTensorboardRunDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.verify|verify} messages. - * @param message WriteTensorboardRunDataRequest message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteTensorboardRunDataRequest message from the specified reader or buffer. + * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteTensorboardRunDataRequest + * @returns CheckTrialEarlyStoppingStateRequest * @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.aiplatform.v1.WriteTensorboardRunDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; /** - * Decodes a WriteTensorboardRunDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteTensorboardRunDataRequest + * @returns CheckTrialEarlyStoppingStateRequest * @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.aiplatform.v1.WriteTensorboardRunDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; /** - * Verifies a WriteTensorboardRunDataRequest message. + * Verifies a CheckTrialEarlyStoppingStateRequest 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 WriteTensorboardRunDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CheckTrialEarlyStoppingStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteTensorboardRunDataRequest + * @returns CheckTrialEarlyStoppingStateRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; /** - * Creates a plain object from a WriteTensorboardRunDataRequest message. Also converts values to other types if specified. - * @param message WriteTensorboardRunDataRequest + * Creates a plain object from a CheckTrialEarlyStoppingStateRequest message. Also converts values to other types if specified. + * @param message CheckTrialEarlyStoppingStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteTensorboardRunDataRequest to JSON. + * Converts this CheckTrialEarlyStoppingStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteTensorboardRunDataRequest + * Gets the default type url for CheckTrialEarlyStoppingStateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteTensorboardRunDataResponse. */ - interface IWriteTensorboardRunDataResponse { + /** Properties of a CheckTrialEarlyStoppingStateResponse. */ + interface ICheckTrialEarlyStoppingStateResponse { + + /** CheckTrialEarlyStoppingStateResponse shouldStop */ + shouldStop?: (boolean|null); } - /** Represents a WriteTensorboardRunDataResponse. */ - class WriteTensorboardRunDataResponse implements IWriteTensorboardRunDataResponse { + /** Represents a CheckTrialEarlyStoppingStateResponse. */ + class CheckTrialEarlyStoppingStateResponse implements ICheckTrialEarlyStoppingStateResponse { /** - * Constructs a new WriteTensorboardRunDataResponse. + * Constructs a new CheckTrialEarlyStoppingStateResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse); + + /** CheckTrialEarlyStoppingStateResponse shouldStop. */ + public shouldStop: boolean; /** - * Creates a new WriteTensorboardRunDataResponse instance using the specified properties. + * Creates a new CheckTrialEarlyStoppingStateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WriteTensorboardRunDataResponse instance + * @returns CheckTrialEarlyStoppingStateResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; /** - * Encodes the specified WriteTensorboardRunDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse.verify|verify} messages. - * @param message WriteTensorboardRunDataResponse message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteTensorboardRunDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse.verify|verify} messages. - * @param message WriteTensorboardRunDataResponse message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteTensorboardRunDataResponse message from the specified reader or buffer. + * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteTensorboardRunDataResponse + * @returns CheckTrialEarlyStoppingStateResponse * @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.aiplatform.v1.WriteTensorboardRunDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; /** - * Decodes a WriteTensorboardRunDataResponse message from the specified reader or buffer, length delimited. + * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteTensorboardRunDataResponse + * @returns CheckTrialEarlyStoppingStateResponse * @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.aiplatform.v1.WriteTensorboardRunDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; /** - * Verifies a WriteTensorboardRunDataResponse message. + * Verifies a CheckTrialEarlyStoppingStateResponse 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 WriteTensorboardRunDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CheckTrialEarlyStoppingStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteTensorboardRunDataResponse + * @returns CheckTrialEarlyStoppingStateResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; /** - * Creates a plain object from a WriteTensorboardRunDataResponse message. Also converts values to other types if specified. - * @param message WriteTensorboardRunDataResponse + * Creates a plain object from a CheckTrialEarlyStoppingStateResponse message. Also converts values to other types if specified. + * @param message CheckTrialEarlyStoppingStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteTensorboardRunDataResponse to JSON. + * Converts this CheckTrialEarlyStoppingStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteTensorboardRunDataResponse + * Gets the default type url for CheckTrialEarlyStoppingStateResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportTensorboardTimeSeriesDataRequest. */ - interface IExportTensorboardTimeSeriesDataRequest { - - /** ExportTensorboardTimeSeriesDataRequest tensorboardTimeSeries */ - tensorboardTimeSeries?: (string|null); - - /** ExportTensorboardTimeSeriesDataRequest filter */ - filter?: (string|null); + /** Properties of a CheckTrialEarlyStoppingStateMetatdata. */ + interface ICheckTrialEarlyStoppingStateMetatdata { - /** ExportTensorboardTimeSeriesDataRequest pageSize */ - pageSize?: (number|null); + /** CheckTrialEarlyStoppingStateMetatdata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** ExportTensorboardTimeSeriesDataRequest pageToken */ - pageToken?: (string|null); + /** CheckTrialEarlyStoppingStateMetatdata study */ + study?: (string|null); - /** ExportTensorboardTimeSeriesDataRequest orderBy */ - orderBy?: (string|null); + /** CheckTrialEarlyStoppingStateMetatdata trial */ + trial?: (string|null); } - /** Represents an ExportTensorboardTimeSeriesDataRequest. */ - class ExportTensorboardTimeSeriesDataRequest implements IExportTensorboardTimeSeriesDataRequest { + /** Represents a CheckTrialEarlyStoppingStateMetatdata. */ + class CheckTrialEarlyStoppingStateMetatdata implements ICheckTrialEarlyStoppingStateMetatdata { /** - * Constructs a new ExportTensorboardTimeSeriesDataRequest. + * Constructs a new CheckTrialEarlyStoppingStateMetatdata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest); - - /** ExportTensorboardTimeSeriesDataRequest tensorboardTimeSeries. */ - public tensorboardTimeSeries: string; - - /** ExportTensorboardTimeSeriesDataRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata); - /** ExportTensorboardTimeSeriesDataRequest pageSize. */ - public pageSize: number; + /** CheckTrialEarlyStoppingStateMetatdata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** ExportTensorboardTimeSeriesDataRequest pageToken. */ - public pageToken: string; + /** CheckTrialEarlyStoppingStateMetatdata study. */ + public study: string; - /** ExportTensorboardTimeSeriesDataRequest orderBy. */ - public orderBy: string; + /** CheckTrialEarlyStoppingStateMetatdata trial. */ + public trial: string; /** - * Creates a new ExportTensorboardTimeSeriesDataRequest instance using the specified properties. + * Creates a new CheckTrialEarlyStoppingStateMetatdata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTensorboardTimeSeriesDataRequest instance + * @returns CheckTrialEarlyStoppingStateMetatdata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; /** - * Encodes the specified ExportTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message ExportTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message ExportTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTensorboardTimeSeriesDataRequest message from the specified reader or buffer. + * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTensorboardTimeSeriesDataRequest + * @returns CheckTrialEarlyStoppingStateMetatdata * @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.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; /** - * Decodes an ExportTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTensorboardTimeSeriesDataRequest + * @returns CheckTrialEarlyStoppingStateMetatdata * @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.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; /** - * Verifies an ExportTensorboardTimeSeriesDataRequest message. + * Verifies a CheckTrialEarlyStoppingStateMetatdata 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 an ExportTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CheckTrialEarlyStoppingStateMetatdata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTensorboardTimeSeriesDataRequest + * @returns CheckTrialEarlyStoppingStateMetatdata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; /** - * Creates a plain object from an ExportTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. - * @param message ExportTensorboardTimeSeriesDataRequest + * Creates a plain object from a CheckTrialEarlyStoppingStateMetatdata message. Also converts values to other types if specified. + * @param message CheckTrialEarlyStoppingStateMetatdata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTensorboardTimeSeriesDataRequest to JSON. + * Converts this CheckTrialEarlyStoppingStateMetatdata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportTensorboardTimeSeriesDataRequest + * Gets the default type url for CheckTrialEarlyStoppingStateMetatdata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportTensorboardTimeSeriesDataResponse. */ - interface IExportTensorboardTimeSeriesDataResponse { - - /** ExportTensorboardTimeSeriesDataResponse timeSeriesDataPoints */ - timeSeriesDataPoints?: (google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]|null); + /** Properties of a StopTrialRequest. */ + interface IStopTrialRequest { - /** ExportTensorboardTimeSeriesDataResponse nextPageToken */ - nextPageToken?: (string|null); + /** StopTrialRequest name */ + name?: (string|null); } - /** Represents an ExportTensorboardTimeSeriesDataResponse. */ - class ExportTensorboardTimeSeriesDataResponse implements IExportTensorboardTimeSeriesDataResponse { + /** Represents a StopTrialRequest. */ + class StopTrialRequest implements IStopTrialRequest { /** - * Constructs a new ExportTensorboardTimeSeriesDataResponse. + * Constructs a new StopTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse); - - /** ExportTensorboardTimeSeriesDataResponse timeSeriesDataPoints. */ - public timeSeriesDataPoints: google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]; + constructor(properties?: google.cloud.aiplatform.v1.IStopTrialRequest); - /** ExportTensorboardTimeSeriesDataResponse nextPageToken. */ - public nextPageToken: string; + /** StopTrialRequest name. */ + public name: string; /** - * Creates a new ExportTensorboardTimeSeriesDataResponse instance using the specified properties. + * Creates a new StopTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTensorboardTimeSeriesDataResponse instance + * @returns StopTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IStopTrialRequest): google.cloud.aiplatform.v1.StopTrialRequest; /** - * Encodes the specified ExportTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message ExportTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified StopTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. + * @param message StopTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message ExportTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified StopTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. + * @param message StopTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTensorboardTimeSeriesDataResponse message from the specified reader or buffer. + * Decodes a StopTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTensorboardTimeSeriesDataResponse + * @returns StopTrialRequest * @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.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StopTrialRequest; /** - * Decodes an ExportTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. + * Decodes a StopTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTensorboardTimeSeriesDataResponse + * @returns StopTrialRequest * @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.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StopTrialRequest; /** - * Verifies an ExportTensorboardTimeSeriesDataResponse message. + * Verifies a StopTrialRequest 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 an ExportTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTensorboardTimeSeriesDataResponse + * @returns StopTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StopTrialRequest; /** - * Creates a plain object from an ExportTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. - * @param message ExportTensorboardTimeSeriesDataResponse + * Creates a plain object from a StopTrialRequest message. Also converts values to other types if specified. + * @param message StopTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.StopTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTensorboardTimeSeriesDataResponse to JSON. + * Converts this StopTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportTensorboardTimeSeriesDataResponse + * Gets the default type url for StopTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardOperationMetadata. */ - interface ICreateTensorboardOperationMetadata { + /** Properties of a ListOptimalTrialsRequest. */ + interface IListOptimalTrialsRequest { - /** CreateTensorboardOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListOptimalTrialsRequest parent */ + parent?: (string|null); } - /** Represents a CreateTensorboardOperationMetadata. */ - class CreateTensorboardOperationMetadata implements ICreateTensorboardOperationMetadata { + /** Represents a ListOptimalTrialsRequest. */ + class ListOptimalTrialsRequest implements IListOptimalTrialsRequest { /** - * Constructs a new CreateTensorboardOperationMetadata. + * Constructs a new ListOptimalTrialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest); - /** CreateTensorboardOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListOptimalTrialsRequest parent. */ + public parent: string; /** - * Creates a new CreateTensorboardOperationMetadata instance using the specified properties. + * Creates a new ListOptimalTrialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardOperationMetadata instance + * @returns ListOptimalTrialsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; /** - * Encodes the specified CreateTensorboardOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.verify|verify} messages. - * @param message CreateTensorboardOperationMetadata message or plain object to encode + * Encodes the specified ListOptimalTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. + * @param message ListOptimalTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.verify|verify} messages. - * @param message CreateTensorboardOperationMetadata message or plain object to encode + * Encodes the specified ListOptimalTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. + * @param message ListOptimalTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardOperationMetadata message from the specified reader or buffer. + * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardOperationMetadata + * @returns ListOptimalTrialsRequest * @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.aiplatform.v1.CreateTensorboardOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; /** - * Decodes a CreateTensorboardOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardOperationMetadata + * @returns ListOptimalTrialsRequest * @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.aiplatform.v1.CreateTensorboardOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; /** - * Verifies a CreateTensorboardOperationMetadata message. + * Verifies a ListOptimalTrialsRequest 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 CreateTensorboardOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListOptimalTrialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardOperationMetadata + * @returns ListOptimalTrialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; /** - * Creates a plain object from a CreateTensorboardOperationMetadata message. Also converts values to other types if specified. - * @param message CreateTensorboardOperationMetadata + * Creates a plain object from a ListOptimalTrialsRequest message. Also converts values to other types if specified. + * @param message ListOptimalTrialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardOperationMetadata to JSON. + * Converts this ListOptimalTrialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardOperationMetadata + * Gets the default type url for ListOptimalTrialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTensorboardOperationMetadata. */ - interface IUpdateTensorboardOperationMetadata { + /** Properties of a ListOptimalTrialsResponse. */ + interface IListOptimalTrialsResponse { - /** UpdateTensorboardOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListOptimalTrialsResponse optimalTrials */ + optimalTrials?: (google.cloud.aiplatform.v1.ITrial[]|null); } - /** Represents an UpdateTensorboardOperationMetadata. */ - class UpdateTensorboardOperationMetadata implements IUpdateTensorboardOperationMetadata { + /** Represents a ListOptimalTrialsResponse. */ + class ListOptimalTrialsResponse implements IListOptimalTrialsResponse { /** - * Constructs a new UpdateTensorboardOperationMetadata. + * Constructs a new ListOptimalTrialsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse); - /** UpdateTensorboardOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListOptimalTrialsResponse optimalTrials. */ + public optimalTrials: google.cloud.aiplatform.v1.ITrial[]; /** - * Creates a new UpdateTensorboardOperationMetadata instance using the specified properties. + * Creates a new ListOptimalTrialsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardOperationMetadata instance + * @returns ListOptimalTrialsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; /** - * Encodes the specified UpdateTensorboardOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.verify|verify} messages. - * @param message UpdateTensorboardOperationMetadata message or plain object to encode + * Encodes the specified ListOptimalTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. + * @param message ListOptimalTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.verify|verify} messages. - * @param message UpdateTensorboardOperationMetadata message or plain object to encode + * Encodes the specified ListOptimalTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. + * @param message ListOptimalTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardOperationMetadata message from the specified reader or buffer. + * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardOperationMetadata + * @returns ListOptimalTrialsResponse * @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.aiplatform.v1.UpdateTensorboardOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; /** - * Decodes an UpdateTensorboardOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardOperationMetadata + * @returns ListOptimalTrialsResponse * @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.aiplatform.v1.UpdateTensorboardOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; /** - * Verifies an UpdateTensorboardOperationMetadata message. + * Verifies a ListOptimalTrialsResponse 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 an UpdateTensorboardOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListOptimalTrialsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardOperationMetadata + * @returns ListOptimalTrialsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; /** - * Creates a plain object from an UpdateTensorboardOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateTensorboardOperationMetadata + * Creates a plain object from a ListOptimalTrialsResponse message. Also converts values to other types if specified. + * @param message ListOptimalTrialsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardOperationMetadata to JSON. + * Converts this ListOptimalTrialsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardOperationMetadata + * Gets the default type url for ListOptimalTrialsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Represents a VizierService */ - class VizierService extends $protobuf.rpc.Service { - - /** - * Constructs a new VizierService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new VizierService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): VizierService; + /** Namespace v1beta1. */ + namespace v1beta1 { - /** - * Calls CreateStudy. - * @param request CreateStudyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Study - */ - public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateStudyCallback): void; + /** AcceleratorType enum. */ + enum AcceleratorType { + ACCELERATOR_TYPE_UNSPECIFIED = 0, + NVIDIA_TESLA_K80 = 1, + NVIDIA_TESLA_P100 = 2, + NVIDIA_TESLA_V100 = 3, + NVIDIA_TESLA_P4 = 4, + NVIDIA_TESLA_T4 = 5, + NVIDIA_TESLA_A100 = 8, + NVIDIA_A100_80GB = 9, + TPU_V2 = 6, + TPU_V3 = 7 + } - /** - * Calls CreateStudy. - * @param request CreateStudyRequest message or plain object - * @returns Promise - */ - public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest): Promise; + /** Properties of an Annotation. */ + interface IAnnotation { - /** - * Calls GetStudy. - * @param request GetStudyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Study - */ - public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.GetStudyCallback): void; + /** Annotation name */ + name?: (string|null); - /** - * Calls GetStudy. - * @param request GetStudyRequest message or plain object - * @returns Promise - */ - public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest): Promise; + /** Annotation payloadSchemaUri */ + payloadSchemaUri?: (string|null); - /** - * Calls ListStudies. - * @param request ListStudiesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListStudiesResponse - */ - public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest, callback: google.cloud.aiplatform.v1.VizierService.ListStudiesCallback): void; + /** Annotation payload */ + payload?: (google.protobuf.IValue|null); - /** - * Calls ListStudies. - * @param request ListStudiesRequest message or plain object - * @returns Promise - */ - public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest): Promise; + /** Annotation createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Calls DeleteStudy. - * @param request DeleteStudyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteStudyCallback): void; + /** Annotation updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Calls DeleteStudy. - * @param request DeleteStudyRequest message or plain object - * @returns Promise - */ - public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest): Promise; + /** Annotation etag */ + etag?: (string|null); - /** - * Calls LookupStudy. - * @param request LookupStudyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Study - */ - public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.LookupStudyCallback): void; + /** Annotation annotationSource */ + annotationSource?: (google.cloud.aiplatform.v1beta1.IUserActionReference|null); - /** - * Calls LookupStudy. - * @param request LookupStudyRequest message or plain object - * @returns Promise - */ - public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest): Promise; + /** Annotation labels */ + labels?: ({ [k: string]: string }|null); + } - /** - * Calls SuggestTrials. - * @param request SuggestTrialsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.SuggestTrialsCallback): void; + /** Represents an Annotation. */ + class Annotation implements IAnnotation { /** - * Calls SuggestTrials. - * @param request SuggestTrialsRequest message or plain object - * @returns Promise + * Constructs a new Annotation. + * @param [properties] Properties to set */ - public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAnnotation); - /** - * Calls CreateTrial. - * @param request CreateTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial - */ - public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateTrialCallback): void; + /** Annotation name. */ + public name: string; - /** - * Calls CreateTrial. - * @param request CreateTrialRequest message or plain object - * @returns Promise - */ - public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest): Promise; + /** Annotation payloadSchemaUri. */ + public payloadSchemaUri: string; - /** - * Calls GetTrial. - * @param request GetTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial - */ - public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.GetTrialCallback): void; + /** Annotation payload. */ + public payload?: (google.protobuf.IValue|null); - /** - * Calls GetTrial. - * @param request GetTrialRequest message or plain object - * @returns Promise - */ - public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest): Promise; + /** Annotation createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Calls ListTrials. - * @param request ListTrialsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTrialsResponse - */ - public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListTrialsCallback): void; + /** Annotation updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Calls ListTrials. - * @param request ListTrialsRequest message or plain object - * @returns Promise - */ - public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest): Promise; + /** Annotation etag. */ + public etag: string; - /** - * Calls AddTrialMeasurement. - * @param request AddTrialMeasurementRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial - */ - public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, callback: google.cloud.aiplatform.v1.VizierService.AddTrialMeasurementCallback): void; + /** Annotation annotationSource. */ + public annotationSource?: (google.cloud.aiplatform.v1beta1.IUserActionReference|null); - /** - * Calls AddTrialMeasurement. - * @param request AddTrialMeasurementRequest message or plain object - * @returns Promise - */ - public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): Promise; + /** Annotation labels. */ + public labels: { [k: string]: string }; /** - * Calls CompleteTrial. - * @param request CompleteTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance */ - public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CompleteTrialCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAnnotation): google.cloud.aiplatform.v1beta1.Annotation; /** - * Calls CompleteTrial. - * @param request CompleteTrialRequest message or plain object - * @returns Promise + * Encodes the specified Annotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTrial. - * @param request DeleteTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteTrialCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTrial. - * @param request DeleteTrialRequest message or plain object - * @returns Promise + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Annotation; /** - * Calls CheckTrialEarlyStoppingState. - * @param request CheckTrialEarlyStoppingStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, callback: google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingStateCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Annotation; /** - * Calls CheckTrialEarlyStoppingState. - * @param request CheckTrialEarlyStoppingStateRequest message or plain object - * @returns Promise + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls StopTrial. - * @param request StopTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation */ - public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.StopTrialCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Annotation; /** - * Calls StopTrial. - * @param request StopTrialRequest message or plain object - * @returns Promise + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object */ - public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListOptimalTrials. - * @param request ListOptimalTrialsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListOptimalTrialsResponse + * Converts this Annotation to JSON. + * @returns JSON object */ - public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListOptimalTrialsCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ListOptimalTrials. - * @param request ListOptimalTrialsRequest message or plain object - * @returns Promise + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace VizierService { + /** Properties of a UserActionReference. */ + interface IUserActionReference { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|createStudy}. - * @param error Error, if any - * @param [response] Study - */ - type CreateStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; + /** UserActionReference operation */ + operation?: (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|getStudy}. - * @param error Error, if any - * @param [response] Study - */ - type GetStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; + /** UserActionReference dataLabelingJob */ + dataLabelingJob?: (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listStudies}. - * @param error Error, if any - * @param [response] ListStudiesResponse - */ - type ListStudiesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListStudiesResponse) => void; + /** UserActionReference method */ + method?: (string|null); + } + + /** Represents a UserActionReference. */ + class UserActionReference implements IUserActionReference { /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|deleteStudy}. - * @param error Error, if any - * @param [response] Empty + * Constructs a new UserActionReference. + * @param [properties] Properties to set */ - type DeleteStudyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUserActionReference); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|lookupStudy}. - * @param error Error, if any - * @param [response] Study - */ - type LookupStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; + /** UserActionReference operation. */ + public operation?: (string|null); + + /** UserActionReference dataLabelingJob. */ + public dataLabelingJob?: (string|null); + + /** UserActionReference method. */ + public method: string; + + /** UserActionReference reference. */ + public reference?: ("operation"|"dataLabelingJob"); /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|suggestTrials}. - * @param error Error, if any - * @param [response] Operation + * Creates a new UserActionReference instance using the specified properties. + * @param [properties] Properties to set + * @returns UserActionReference instance */ - type SuggestTrialsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUserActionReference): google.cloud.aiplatform.v1beta1.UserActionReference; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|createTrial}. - * @param error Error, if any - * @param [response] Trial + * Encodes the specified UserActionReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UserActionReference.verify|verify} messages. + * @param message UserActionReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IUserActionReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|getTrial}. - * @param error Error, if any - * @param [response] Trial + * Encodes the specified UserActionReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UserActionReference.verify|verify} messages. + * @param message UserActionReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUserActionReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listTrials}. - * @param error Error, if any - * @param [response] ListTrialsResponse + * Decodes a UserActionReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserActionReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrialsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UserActionReference; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|addTrialMeasurement}. - * @param error Error, if any - * @param [response] Trial + * Decodes a UserActionReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UserActionReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type AddTrialMeasurementCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UserActionReference; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|completeTrial}. - * @param error Error, if any - * @param [response] Trial + * Verifies a UserActionReference message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CompleteTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|deleteTrial}. - * @param error Error, if any - * @param [response] Empty + * Creates a UserActionReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UserActionReference */ - type DeleteTrialCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UserActionReference; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|checkTrialEarlyStoppingState}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a UserActionReference message. Also converts values to other types if specified. + * @param message UserActionReference + * @param [options] Conversion options + * @returns Plain object */ - type CheckTrialEarlyStoppingStateCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UserActionReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|stopTrial}. - * @param error Error, if any - * @param [response] Trial + * Converts this UserActionReference to JSON. + * @returns JSON object */ - type StopTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listOptimalTrials}. - * @param error Error, if any - * @param [response] ListOptimalTrialsResponse + * Gets the default type url for UserActionReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListOptimalTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListOptimalTrialsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetStudyRequest. */ - interface IGetStudyRequest { + /** Properties of an AnnotationSpec. */ + interface IAnnotationSpec { - /** GetStudyRequest name */ + /** AnnotationSpec name */ name?: (string|null); + + /** AnnotationSpec displayName */ + displayName?: (string|null); + + /** AnnotationSpec createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** AnnotationSpec updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** AnnotationSpec etag */ + etag?: (string|null); } - /** Represents a GetStudyRequest. */ - class GetStudyRequest implements IGetStudyRequest { + /** Represents an AnnotationSpec. */ + class AnnotationSpec implements IAnnotationSpec { /** - * Constructs a new GetStudyRequest. + * Constructs a new AnnotationSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetStudyRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAnnotationSpec); - /** GetStudyRequest name. */ + /** AnnotationSpec name. */ public name: string; + /** AnnotationSpec displayName. */ + public displayName: string; + + /** AnnotationSpec createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** AnnotationSpec updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** AnnotationSpec etag. */ + public etag: string; + /** - * Creates a new GetStudyRequest instance using the specified properties. + * Creates a new AnnotationSpec instance using the specified properties. * @param [properties] Properties to set - * @returns GetStudyRequest instance + * @returns AnnotationSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetStudyRequest): google.cloud.aiplatform.v1.GetStudyRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAnnotationSpec): google.cloud.aiplatform.v1beta1.AnnotationSpec; /** - * Encodes the specified GetStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. - * @param message GetStudyRequest message or plain object to encode + * Encodes the specified AnnotationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AnnotationSpec.verify|verify} messages. + * @param message AnnotationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. - * @param message GetStudyRequest message or plain object to encode + * Encodes the specified AnnotationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AnnotationSpec.verify|verify} messages. + * @param message AnnotationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetStudyRequest message from the specified reader or buffer. + * Decodes an AnnotationSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetStudyRequest + * @returns AnnotationSpec * @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.aiplatform.v1.GetStudyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AnnotationSpec; /** - * Decodes a GetStudyRequest message from the specified reader or buffer, length delimited. + * Decodes an AnnotationSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetStudyRequest + * @returns AnnotationSpec * @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.aiplatform.v1.GetStudyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AnnotationSpec; /** - * Verifies a GetStudyRequest message. + * Verifies an AnnotationSpec 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 GetStudyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AnnotationSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetStudyRequest + * @returns AnnotationSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetStudyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AnnotationSpec; /** - * Creates a plain object from a GetStudyRequest message. Also converts values to other types if specified. - * @param message GetStudyRequest + * Creates a plain object from an AnnotationSpec message. Also converts values to other types if specified. + * @param message AnnotationSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AnnotationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetStudyRequest to JSON. + * Converts this AnnotationSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetStudyRequest + * Gets the default type url for AnnotationSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateStudyRequest. */ - interface ICreateStudyRequest { + /** Properties of an Artifact. */ + interface IArtifact { - /** CreateStudyRequest parent */ - parent?: (string|null); + /** Artifact name */ + name?: (string|null); - /** CreateStudyRequest study */ - study?: (google.cloud.aiplatform.v1.IStudy|null); + /** Artifact displayName */ + displayName?: (string|null); + + /** Artifact uri */ + uri?: (string|null); + + /** Artifact etag */ + etag?: (string|null); + + /** Artifact labels */ + labels?: ({ [k: string]: string }|null); + + /** Artifact createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Artifact updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Artifact state */ + state?: (google.cloud.aiplatform.v1beta1.Artifact.State|keyof typeof google.cloud.aiplatform.v1beta1.Artifact.State|null); + + /** Artifact schemaTitle */ + schemaTitle?: (string|null); + + /** Artifact schemaVersion */ + schemaVersion?: (string|null); + + /** Artifact metadata */ + metadata?: (google.protobuf.IStruct|null); + + /** Artifact description */ + description?: (string|null); } - /** Represents a CreateStudyRequest. */ - class CreateStudyRequest implements ICreateStudyRequest { + /** Represents an Artifact. */ + class Artifact implements IArtifact { /** - * Constructs a new CreateStudyRequest. + * Constructs a new Artifact. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IArtifact); - /** CreateStudyRequest parent. */ - public parent: string; + /** Artifact name. */ + public name: string; - /** CreateStudyRequest study. */ - public study?: (google.cloud.aiplatform.v1.IStudy|null); + /** Artifact displayName. */ + public displayName: string; + + /** Artifact uri. */ + public uri: string; + + /** Artifact etag. */ + public etag: string; + + /** Artifact labels. */ + public labels: { [k: string]: string }; + + /** Artifact createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Artifact updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Artifact state. */ + public state: (google.cloud.aiplatform.v1beta1.Artifact.State|keyof typeof google.cloud.aiplatform.v1beta1.Artifact.State); + + /** Artifact schemaTitle. */ + public schemaTitle: string; + + /** Artifact schemaVersion. */ + public schemaVersion: string; + + /** Artifact metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** Artifact description. */ + public description: string; /** - * Creates a new CreateStudyRequest instance using the specified properties. + * Creates a new Artifact instance using the specified properties. * @param [properties] Properties to set - * @returns CreateStudyRequest instance + * @returns Artifact instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest): google.cloud.aiplatform.v1.CreateStudyRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IArtifact): google.cloud.aiplatform.v1beta1.Artifact; /** - * Encodes the specified CreateStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. - * @param message CreateStudyRequest message or plain object to encode + * Encodes the specified Artifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Artifact.verify|verify} messages. + * @param message Artifact message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. - * @param message CreateStudyRequest message or plain object to encode + * Encodes the specified Artifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Artifact.verify|verify} messages. + * @param message Artifact message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateStudyRequest message from the specified reader or buffer. + * Decodes an Artifact message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateStudyRequest + * @returns Artifact * @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.aiplatform.v1.CreateStudyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Artifact; /** - * Decodes a CreateStudyRequest message from the specified reader or buffer, length delimited. + * Decodes an Artifact message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateStudyRequest + * @returns Artifact * @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.aiplatform.v1.CreateStudyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Artifact; /** - * Verifies a CreateStudyRequest message. + * Verifies an Artifact 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 CreateStudyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Artifact message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateStudyRequest + * @returns Artifact */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateStudyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Artifact; /** - * Creates a plain object from a CreateStudyRequest message. Also converts values to other types if specified. - * @param message CreateStudyRequest + * Creates a plain object from an Artifact message. Also converts values to other types if specified. + * @param message Artifact * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Artifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateStudyRequest to JSON. + * Converts this Artifact to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateStudyRequest + * Gets the default type url for Artifact * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListStudiesRequest. */ - interface IListStudiesRequest { + namespace Artifact { - /** ListStudiesRequest parent */ - parent?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + LIVE = 2 + } + } + + /** Properties of a BatchPredictionJob. */ + interface IBatchPredictionJob { + + /** BatchPredictionJob name */ + name?: (string|null); + + /** BatchPredictionJob displayName */ + displayName?: (string|null); + + /** BatchPredictionJob model */ + model?: (string|null); + + /** BatchPredictionJob modelVersionId */ + modelVersionId?: (string|null); + + /** BatchPredictionJob unmanagedContainerModel */ + unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); + + /** BatchPredictionJob inputConfig */ + inputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig|null); + + /** BatchPredictionJob instanceConfig */ + instanceConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig|null); + + /** BatchPredictionJob modelParameters */ + modelParameters?: (google.protobuf.IValue|null); + + /** BatchPredictionJob outputConfig */ + outputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig|null); + + /** BatchPredictionJob dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); + + /** BatchPredictionJob serviceAccount */ + serviceAccount?: (string|null); + + /** BatchPredictionJob manualBatchTuningParameters */ + manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); + + /** BatchPredictionJob generateExplanation */ + generateExplanation?: (boolean|null); + + /** BatchPredictionJob explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** BatchPredictionJob outputInfo */ + outputInfo?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo|null); + + /** BatchPredictionJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); + + /** BatchPredictionJob error */ + error?: (google.rpc.IStatus|null); + + /** BatchPredictionJob partialFailures */ + partialFailures?: (google.rpc.IStatus[]|null); + + /** BatchPredictionJob resourcesConsumed */ + resourcesConsumed?: (google.cloud.aiplatform.v1beta1.IResourcesConsumed|null); + + /** BatchPredictionJob completionStats */ + completionStats?: (google.cloud.aiplatform.v1beta1.ICompletionStats|null); + + /** BatchPredictionJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** BatchPredictionJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** BatchPredictionJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** BatchPredictionJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** BatchPredictionJob labels */ + labels?: ({ [k: string]: string }|null); + + /** BatchPredictionJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** BatchPredictionJob modelMonitoringConfig */ + modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); + + /** BatchPredictionJob modelMonitoringStatsAnomalies */ + modelMonitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + + /** BatchPredictionJob modelMonitoringStatus */ + modelMonitoringStatus?: (google.rpc.IStatus|null); + } + + /** Represents a BatchPredictionJob. */ + class BatchPredictionJob implements IBatchPredictionJob { + + /** + * Constructs a new BatchPredictionJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchPredictionJob); + + /** BatchPredictionJob name. */ + public name: string; + + /** BatchPredictionJob displayName. */ + public displayName: string; + + /** BatchPredictionJob model. */ + public model: string; + + /** BatchPredictionJob modelVersionId. */ + public modelVersionId: string; + + /** BatchPredictionJob unmanagedContainerModel. */ + public unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); + + /** BatchPredictionJob inputConfig. */ + public inputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig|null); + + /** BatchPredictionJob instanceConfig. */ + public instanceConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig|null); + + /** BatchPredictionJob modelParameters. */ + public modelParameters?: (google.protobuf.IValue|null); + + /** BatchPredictionJob outputConfig. */ + public outputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig|null); + + /** BatchPredictionJob dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); + + /** BatchPredictionJob serviceAccount. */ + public serviceAccount: string; + + /** BatchPredictionJob manualBatchTuningParameters. */ + public manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); + + /** BatchPredictionJob generateExplanation. */ + public generateExplanation: boolean; + + /** BatchPredictionJob explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** BatchPredictionJob outputInfo. */ + public outputInfo?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo|null); + + /** BatchPredictionJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); + + /** BatchPredictionJob error. */ + public error?: (google.rpc.IStatus|null); + + /** BatchPredictionJob partialFailures. */ + public partialFailures: google.rpc.IStatus[]; + + /** BatchPredictionJob resourcesConsumed. */ + public resourcesConsumed?: (google.cloud.aiplatform.v1beta1.IResourcesConsumed|null); + + /** BatchPredictionJob completionStats. */ + public completionStats?: (google.cloud.aiplatform.v1beta1.ICompletionStats|null); + + /** BatchPredictionJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListStudiesRequest pageToken */ - pageToken?: (string|null); + /** BatchPredictionJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** ListStudiesRequest pageSize */ - pageSize?: (number|null); - } + /** BatchPredictionJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** Represents a ListStudiesRequest. */ - class ListStudiesRequest implements IListStudiesRequest { + /** BatchPredictionJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ListStudiesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListStudiesRequest); + /** BatchPredictionJob labels. */ + public labels: { [k: string]: string }; - /** ListStudiesRequest parent. */ - public parent: string; + /** BatchPredictionJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ListStudiesRequest pageToken. */ - public pageToken: string; + /** BatchPredictionJob modelMonitoringConfig. */ + public modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); - /** ListStudiesRequest pageSize. */ - public pageSize: number; + /** BatchPredictionJob modelMonitoringStatsAnomalies. */ + public modelMonitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + + /** BatchPredictionJob modelMonitoringStatus. */ + public modelMonitoringStatus?: (google.rpc.IStatus|null); /** - * Creates a new ListStudiesRequest instance using the specified properties. + * Creates a new BatchPredictionJob instance using the specified properties. * @param [properties] Properties to set - * @returns ListStudiesRequest instance + * @returns BatchPredictionJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListStudiesRequest): google.cloud.aiplatform.v1.ListStudiesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchPredictionJob): google.cloud.aiplatform.v1beta1.BatchPredictionJob; /** - * Encodes the specified ListStudiesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. - * @param message ListStudiesRequest message or plain object to encode + * Encodes the specified BatchPredictionJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify|verify} messages. + * @param message BatchPredictionJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchPredictionJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListStudiesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. - * @param message ListStudiesRequest message or plain object to encode + * Encodes the specified BatchPredictionJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify|verify} messages. + * @param message BatchPredictionJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchPredictionJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListStudiesRequest message from the specified reader or buffer. + * Decodes a BatchPredictionJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListStudiesRequest + * @returns BatchPredictionJob * @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.aiplatform.v1.ListStudiesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchPredictionJob; /** - * Decodes a ListStudiesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchPredictionJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListStudiesRequest + * @returns BatchPredictionJob * @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.aiplatform.v1.ListStudiesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchPredictionJob; /** - * Verifies a ListStudiesRequest message. + * Verifies a BatchPredictionJob 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 ListStudiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchPredictionJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListStudiesRequest + * @returns BatchPredictionJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob; /** - * Creates a plain object from a ListStudiesRequest message. Also converts values to other types if specified. - * @param message ListStudiesRequest + * Creates a plain object from a BatchPredictionJob message. Also converts values to other types if specified. + * @param message BatchPredictionJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListStudiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListStudiesRequest to JSON. + * Converts this BatchPredictionJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListStudiesRequest + * Gets the default type url for BatchPredictionJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListStudiesResponse. */ - interface IListStudiesResponse { + namespace BatchPredictionJob { - /** ListStudiesResponse studies */ - studies?: (google.cloud.aiplatform.v1.IStudy[]|null); + /** Properties of an InputConfig. */ + interface IInputConfig { - /** ListStudiesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** InputConfig gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** Represents a ListStudiesResponse. */ - class ListStudiesResponse implements IListStudiesResponse { + /** InputConfig bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** - * Constructs a new ListStudiesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListStudiesResponse); + /** InputConfig instancesFormat */ + instancesFormat?: (string|null); + } - /** ListStudiesResponse studies. */ - public studies: google.cloud.aiplatform.v1.IStudy[]; + /** Represents an InputConfig. */ + class InputConfig implements IInputConfig { - /** ListStudiesResponse nextPageToken. */ - public nextPageToken: string; + /** + * Constructs a new InputConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig); - /** - * Creates a new ListStudiesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListStudiesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListStudiesResponse): google.cloud.aiplatform.v1.ListStudiesResponse; + /** InputConfig gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** - * Encodes the specified ListStudiesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. - * @param message ListStudiesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputConfig bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** - * Encodes the specified ListStudiesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. - * @param message ListStudiesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputConfig instancesFormat. */ + public instancesFormat: string; - /** - * Decodes a ListStudiesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListStudiesResponse - * @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.aiplatform.v1.ListStudiesResponse; + /** InputConfig source. */ + public source?: ("gcsSource"|"bigquerySource"); - /** - * Decodes a ListStudiesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListStudiesResponse - * @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.aiplatform.v1.ListStudiesResponse; + /** + * Creates a new InputConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InputConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; - /** - * Verifies a ListStudiesResponse 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); + /** + * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.verify|verify} messages. + * @param message InputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ListStudiesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListStudiesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesResponse; + /** + * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.verify|verify} messages. + * @param message InputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ListStudiesResponse message. Also converts values to other types if specified. - * @param message ListStudiesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListStudiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an InputConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputConfig + * @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.aiplatform.v1beta1.BatchPredictionJob.InputConfig; - /** - * Converts this ListStudiesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an InputConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputConfig + * @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.aiplatform.v1beta1.BatchPredictionJob.InputConfig; - /** - * Gets the default type url for ListStudiesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies an InputConfig 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); - /** Properties of a DeleteStudyRequest. */ - interface IDeleteStudyRequest { + /** + * Creates an InputConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; - /** DeleteStudyRequest name */ - name?: (string|null); - } + /** + * Creates a plain object from an InputConfig message. Also converts values to other types if specified. + * @param message InputConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a DeleteStudyRequest. */ - class DeleteStudyRequest implements IDeleteStudyRequest { + /** + * Converts this InputConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new DeleteStudyRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest); + /** + * Gets the default type url for InputConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeleteStudyRequest name. */ - public name: string; + /** Properties of an InstanceConfig. */ + interface IInstanceConfig { - /** - * Creates a new DeleteStudyRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteStudyRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest): google.cloud.aiplatform.v1.DeleteStudyRequest; + /** InstanceConfig instanceType */ + instanceType?: (string|null); - /** - * Encodes the specified DeleteStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. - * @param message DeleteStudyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstanceConfig keyField */ + keyField?: (string|null); - /** - * Encodes the specified DeleteStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. - * @param message DeleteStudyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstanceConfig includedFields */ + includedFields?: (string[]|null); - /** - * Decodes a DeleteStudyRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteStudyRequest - * @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.aiplatform.v1.DeleteStudyRequest; + /** InstanceConfig excludedFields */ + excludedFields?: (string[]|null); + } - /** - * Decodes a DeleteStudyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteStudyRequest - * @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.aiplatform.v1.DeleteStudyRequest; + /** Represents an InstanceConfig. */ + class InstanceConfig implements IInstanceConfig { + + /** + * Constructs a new InstanceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig); + + /** InstanceConfig instanceType. */ + public instanceType: string; + + /** InstanceConfig keyField. */ + public keyField: string; + + /** InstanceConfig includedFields. */ + public includedFields: string[]; + + /** InstanceConfig excludedFields. */ + public excludedFields: string[]; + + /** + * Creates a new InstanceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + + /** + * Encodes the specified InstanceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.verify|verify} messages. + * @param message InstanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.verify|verify} messages. + * @param message InstanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceConfig + * @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.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + + /** + * Decodes an InstanceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceConfig + * @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.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + + /** + * Verifies an InstanceConfig 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 an InstanceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + + /** + * Creates a plain object from an InstanceConfig message. Also converts values to other types if specified. + * @param message InstanceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OutputConfig. */ + interface IOutputConfig { + + /** OutputConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** OutputConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** OutputConfig predictionsFormat */ + predictionsFormat?: (string|null); + } + + /** Represents an OutputConfig. */ + class OutputConfig implements IOutputConfig { + + /** + * Constructs a new OutputConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig); + + /** OutputConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** OutputConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** OutputConfig predictionsFormat. */ + public predictionsFormat: string; + + /** OutputConfig destination. */ + public destination?: ("gcsDestination"|"bigqueryDestination"); + + /** + * Creates a new OutputConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + + /** + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OutputConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputConfig + * @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.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + + /** + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputConfig + * @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.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + + /** + * Verifies an OutputConfig 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 an OutputConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; - /** - * Verifies a DeleteStudyRequest 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 plain object from an OutputConfig message. Also converts values to other types if specified. + * @param message OutputConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a DeleteStudyRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteStudyRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteStudyRequest; + /** + * Converts this OutputConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a DeleteStudyRequest message. Also converts values to other types if specified. - * @param message DeleteStudyRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for OutputConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this DeleteStudyRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of an OutputInfo. */ + interface IOutputInfo { - /** - * Gets the default type url for DeleteStudyRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** OutputInfo gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); - /** Properties of a LookupStudyRequest. */ - interface ILookupStudyRequest { + /** OutputInfo bigqueryOutputDataset */ + bigqueryOutputDataset?: (string|null); - /** LookupStudyRequest parent */ - parent?: (string|null); + /** OutputInfo bigqueryOutputTable */ + bigqueryOutputTable?: (string|null); + } - /** LookupStudyRequest displayName */ - displayName?: (string|null); - } + /** Represents an OutputInfo. */ + class OutputInfo implements IOutputInfo { - /** Represents a LookupStudyRequest. */ - class LookupStudyRequest implements ILookupStudyRequest { + /** + * Constructs a new OutputInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo); - /** - * Constructs a new LookupStudyRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest); + /** OutputInfo gcsOutputDirectory. */ + public gcsOutputDirectory?: (string|null); - /** LookupStudyRequest parent. */ - public parent: string; + /** OutputInfo bigqueryOutputDataset. */ + public bigqueryOutputDataset?: (string|null); - /** LookupStudyRequest displayName. */ - public displayName: string; + /** OutputInfo bigqueryOutputTable. */ + public bigqueryOutputTable: string; - /** - * Creates a new LookupStudyRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupStudyRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest): google.cloud.aiplatform.v1.LookupStudyRequest; + /** OutputInfo outputLocation. */ + public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset"); - /** - * Encodes the specified LookupStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. - * @param message LookupStudyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new OutputInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; - /** - * Encodes the specified LookupStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. - * @param message LookupStudyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a LookupStudyRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupStudyRequest - * @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.aiplatform.v1.LookupStudyRequest; + /** + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a LookupStudyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupStudyRequest - * @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.aiplatform.v1.LookupStudyRequest; + /** + * Decodes an OutputInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputInfo + * @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.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; - /** - * Verifies a LookupStudyRequest 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); + /** + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputInfo + * @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.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; - /** - * Creates a LookupStudyRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupStudyRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LookupStudyRequest; + /** + * Verifies an OutputInfo 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 plain object from a LookupStudyRequest message. Also converts values to other types if specified. - * @param message LookupStudyRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.LookupStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; - /** - * Converts this LookupStudyRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * @param message OutputInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for LookupStudyRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this OutputInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OutputInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a SuggestTrialsRequest. */ - interface ISuggestTrialsRequest { + /** Properties of a CompletionStats. */ + interface ICompletionStats { - /** SuggestTrialsRequest parent */ - parent?: (string|null); + /** CompletionStats successfulCount */ + successfulCount?: (number|Long|string|null); - /** SuggestTrialsRequest suggestionCount */ - suggestionCount?: (number|null); + /** CompletionStats failedCount */ + failedCount?: (number|Long|string|null); - /** SuggestTrialsRequest clientId */ - clientId?: (string|null); + /** CompletionStats incompleteCount */ + incompleteCount?: (number|Long|string|null); + + /** CompletionStats successfulForecastPointCount */ + successfulForecastPointCount?: (number|Long|string|null); } - /** Represents a SuggestTrialsRequest. */ - class SuggestTrialsRequest implements ISuggestTrialsRequest { + /** Represents a CompletionStats. */ + class CompletionStats implements ICompletionStats { /** - * Constructs a new SuggestTrialsRequest. + * Constructs a new CompletionStats. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICompletionStats); - /** SuggestTrialsRequest parent. */ - public parent: string; + /** CompletionStats successfulCount. */ + public successfulCount: (number|Long|string); - /** SuggestTrialsRequest suggestionCount. */ - public suggestionCount: number; + /** CompletionStats failedCount. */ + public failedCount: (number|Long|string); - /** SuggestTrialsRequest clientId. */ - public clientId: string; + /** CompletionStats incompleteCount. */ + public incompleteCount: (number|Long|string); + + /** CompletionStats successfulForecastPointCount. */ + public successfulForecastPointCount: (number|Long|string); /** - * Creates a new SuggestTrialsRequest instance using the specified properties. + * Creates a new CompletionStats instance using the specified properties. * @param [properties] Properties to set - * @returns SuggestTrialsRequest instance + * @returns CompletionStats instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest): google.cloud.aiplatform.v1.SuggestTrialsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICompletionStats): google.cloud.aiplatform.v1beta1.CompletionStats; /** - * Encodes the specified SuggestTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. - * @param message SuggestTrialsRequest message or plain object to encode + * Encodes the specified CompletionStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CompletionStats.verify|verify} messages. + * @param message CompletionStats message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICompletionStats, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SuggestTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. - * @param message SuggestTrialsRequest message or plain object to encode + * Encodes the specified CompletionStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CompletionStats.verify|verify} messages. + * @param message CompletionStats message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICompletionStats, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SuggestTrialsRequest message from the specified reader or buffer. + * Decodes a CompletionStats message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SuggestTrialsRequest + * @returns CompletionStats * @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.aiplatform.v1.SuggestTrialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CompletionStats; /** - * Decodes a SuggestTrialsRequest message from the specified reader or buffer, length delimited. + * Decodes a CompletionStats message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SuggestTrialsRequest + * @returns CompletionStats * @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.aiplatform.v1.SuggestTrialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CompletionStats; /** - * Verifies a SuggestTrialsRequest message. + * Verifies a CompletionStats 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 SuggestTrialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompletionStats message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SuggestTrialsRequest + * @returns CompletionStats */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CompletionStats; /** - * Creates a plain object from a SuggestTrialsRequest message. Also converts values to other types if specified. - * @param message SuggestTrialsRequest + * Creates a plain object from a CompletionStats message. Also converts values to other types if specified. + * @param message CompletionStats * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CompletionStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SuggestTrialsRequest to JSON. + * Converts this CompletionStats to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SuggestTrialsRequest + * Gets the default type url for CompletionStats * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SuggestTrialsResponse. */ - interface ISuggestTrialsResponse { - - /** SuggestTrialsResponse trials */ - trials?: (google.cloud.aiplatform.v1.ITrial[]|null); - - /** SuggestTrialsResponse studyState */ - studyState?: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State|null); - - /** SuggestTrialsResponse startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Properties of an EncryptionSpec. */ + interface IEncryptionSpec { - /** SuggestTrialsResponse endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** EncryptionSpec kmsKeyName */ + kmsKeyName?: (string|null); } - /** Represents a SuggestTrialsResponse. */ - class SuggestTrialsResponse implements ISuggestTrialsResponse { + /** Represents an EncryptionSpec. */ + class EncryptionSpec implements IEncryptionSpec { /** - * Constructs a new SuggestTrialsResponse. + * Constructs a new EncryptionSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse); - - /** SuggestTrialsResponse trials. */ - public trials: google.cloud.aiplatform.v1.ITrial[]; - - /** SuggestTrialsResponse studyState. */ - public studyState: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State); - - /** SuggestTrialsResponse startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEncryptionSpec); - /** SuggestTrialsResponse endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** EncryptionSpec kmsKeyName. */ + public kmsKeyName: string; /** - * Creates a new SuggestTrialsResponse instance using the specified properties. + * Creates a new EncryptionSpec instance using the specified properties. * @param [properties] Properties to set - * @returns SuggestTrialsResponse instance + * @returns EncryptionSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse): google.cloud.aiplatform.v1.SuggestTrialsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEncryptionSpec): google.cloud.aiplatform.v1beta1.EncryptionSpec; /** - * Encodes the specified SuggestTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. - * @param message SuggestTrialsResponse message or plain object to encode + * Encodes the specified EncryptionSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EncryptionSpec.verify|verify} messages. + * @param message EncryptionSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEncryptionSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SuggestTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. - * @param message SuggestTrialsResponse message or plain object to encode + * Encodes the specified EncryptionSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EncryptionSpec.verify|verify} messages. + * @param message EncryptionSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEncryptionSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SuggestTrialsResponse message from the specified reader or buffer. + * Decodes an EncryptionSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SuggestTrialsResponse + * @returns EncryptionSpec * @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.aiplatform.v1.SuggestTrialsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EncryptionSpec; /** - * Decodes a SuggestTrialsResponse message from the specified reader or buffer, length delimited. + * Decodes an EncryptionSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SuggestTrialsResponse + * @returns EncryptionSpec * @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.aiplatform.v1.SuggestTrialsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EncryptionSpec; /** - * Verifies a SuggestTrialsResponse message. + * Verifies an EncryptionSpec 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 SuggestTrialsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EncryptionSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SuggestTrialsResponse + * @returns EncryptionSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EncryptionSpec; /** - * Creates a plain object from a SuggestTrialsResponse message. Also converts values to other types if specified. - * @param message SuggestTrialsResponse + * Creates a plain object from an EncryptionSpec message. Also converts values to other types if specified. + * @param message EncryptionSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EncryptionSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SuggestTrialsResponse to JSON. + * Converts this EncryptionSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SuggestTrialsResponse + * Gets the default type url for EncryptionSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SuggestTrialsMetadata. */ - interface ISuggestTrialsMetadata { + /** Properties of an Explanation. */ + interface IExplanation { - /** SuggestTrialsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** Explanation attributions */ + attributions?: (google.cloud.aiplatform.v1beta1.IAttribution[]|null); - /** SuggestTrialsMetadata clientId */ - clientId?: (string|null); + /** Explanation neighbors */ + neighbors?: (google.cloud.aiplatform.v1beta1.INeighbor[]|null); } - /** Represents a SuggestTrialsMetadata. */ - class SuggestTrialsMetadata implements ISuggestTrialsMetadata { + /** Represents an Explanation. */ + class Explanation implements IExplanation { /** - * Constructs a new SuggestTrialsMetadata. + * Constructs a new Explanation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanation); - /** SuggestTrialsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** Explanation attributions. */ + public attributions: google.cloud.aiplatform.v1beta1.IAttribution[]; - /** SuggestTrialsMetadata clientId. */ - public clientId: string; + /** Explanation neighbors. */ + public neighbors: google.cloud.aiplatform.v1beta1.INeighbor[]; /** - * Creates a new SuggestTrialsMetadata instance using the specified properties. + * Creates a new Explanation instance using the specified properties. * @param [properties] Properties to set - * @returns SuggestTrialsMetadata instance + * @returns Explanation instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata): google.cloud.aiplatform.v1.SuggestTrialsMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanation): google.cloud.aiplatform.v1beta1.Explanation; /** - * Encodes the specified SuggestTrialsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. - * @param message SuggestTrialsMetadata message or plain object to encode + * Encodes the specified Explanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Explanation.verify|verify} messages. + * @param message Explanation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SuggestTrialsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. - * @param message SuggestTrialsMetadata message or plain object to encode + * Encodes the specified Explanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Explanation.verify|verify} messages. + * @param message Explanation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SuggestTrialsMetadata message from the specified reader or buffer. + * Decodes an Explanation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SuggestTrialsMetadata + * @returns Explanation * @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.aiplatform.v1.SuggestTrialsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Explanation; /** - * Decodes a SuggestTrialsMetadata message from the specified reader or buffer, length delimited. + * Decodes an Explanation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SuggestTrialsMetadata + * @returns Explanation * @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.aiplatform.v1.SuggestTrialsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Explanation; /** - * Verifies a SuggestTrialsMetadata message. + * Verifies an Explanation 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 SuggestTrialsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an Explanation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SuggestTrialsMetadata + * @returns Explanation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Explanation; /** - * Creates a plain object from a SuggestTrialsMetadata message. Also converts values to other types if specified. - * @param message SuggestTrialsMetadata + * Creates a plain object from an Explanation message. Also converts values to other types if specified. + * @param message Explanation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Explanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SuggestTrialsMetadata to JSON. + * Converts this Explanation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SuggestTrialsMetadata + * Gets the default type url for Explanation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTrialRequest. */ - interface ICreateTrialRequest { - - /** CreateTrialRequest parent */ - parent?: (string|null); + /** Properties of a ModelExplanation. */ + interface IModelExplanation { - /** CreateTrialRequest trial */ - trial?: (google.cloud.aiplatform.v1.ITrial|null); + /** ModelExplanation meanAttributions */ + meanAttributions?: (google.cloud.aiplatform.v1beta1.IAttribution[]|null); } - /** Represents a CreateTrialRequest. */ - class CreateTrialRequest implements ICreateTrialRequest { + /** Represents a ModelExplanation. */ + class ModelExplanation implements IModelExplanation { /** - * Constructs a new CreateTrialRequest. + * Constructs a new ModelExplanation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest); - - /** CreateTrialRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelExplanation); - /** CreateTrialRequest trial. */ - public trial?: (google.cloud.aiplatform.v1.ITrial|null); + /** ModelExplanation meanAttributions. */ + public meanAttributions: google.cloud.aiplatform.v1beta1.IAttribution[]; /** - * Creates a new CreateTrialRequest instance using the specified properties. + * Creates a new ModelExplanation instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTrialRequest instance + * @returns ModelExplanation instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest): google.cloud.aiplatform.v1.CreateTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelExplanation): google.cloud.aiplatform.v1beta1.ModelExplanation; /** - * Encodes the specified CreateTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. - * @param message CreateTrialRequest message or plain object to encode + * Encodes the specified ModelExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelExplanation.verify|verify} messages. + * @param message ModelExplanation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelExplanation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. - * @param message CreateTrialRequest message or plain object to encode + * Encodes the specified ModelExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelExplanation.verify|verify} messages. + * @param message ModelExplanation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelExplanation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTrialRequest message from the specified reader or buffer. + * Decodes a ModelExplanation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTrialRequest + * @returns ModelExplanation * @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.aiplatform.v1.CreateTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelExplanation; /** - * Decodes a CreateTrialRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelExplanation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTrialRequest + * @returns ModelExplanation * @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.aiplatform.v1.CreateTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelExplanation; /** - * Verifies a CreateTrialRequest message. + * Verifies a ModelExplanation 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 CreateTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelExplanation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTrialRequest + * @returns ModelExplanation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelExplanation; /** - * Creates a plain object from a CreateTrialRequest message. Also converts values to other types if specified. - * @param message CreateTrialRequest + * Creates a plain object from a ModelExplanation message. Also converts values to other types if specified. + * @param message ModelExplanation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTrialRequest to JSON. + * Converts this ModelExplanation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTrialRequest + * Gets the default type url for ModelExplanation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTrialRequest. */ - interface IGetTrialRequest { + /** Properties of an Attribution. */ + interface IAttribution { - /** GetTrialRequest name */ - name?: (string|null); + /** Attribution baselineOutputValue */ + baselineOutputValue?: (number|null); + + /** Attribution instanceOutputValue */ + instanceOutputValue?: (number|null); + + /** Attribution featureAttributions */ + featureAttributions?: (google.protobuf.IValue|null); + + /** Attribution outputIndex */ + outputIndex?: (number[]|null); + + /** Attribution outputDisplayName */ + outputDisplayName?: (string|null); + + /** Attribution approximationError */ + approximationError?: (number|null); + + /** Attribution outputName */ + outputName?: (string|null); } - /** Represents a GetTrialRequest. */ - class GetTrialRequest implements IGetTrialRequest { + /** Represents an Attribution. */ + class Attribution implements IAttribution { /** - * Constructs a new GetTrialRequest. + * Constructs a new Attribution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTrialRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAttribution); - /** GetTrialRequest name. */ - public name: string; + /** Attribution baselineOutputValue. */ + public baselineOutputValue: number; + + /** Attribution instanceOutputValue. */ + public instanceOutputValue: number; + + /** Attribution featureAttributions. */ + public featureAttributions?: (google.protobuf.IValue|null); + + /** Attribution outputIndex. */ + public outputIndex: number[]; + + /** Attribution outputDisplayName. */ + public outputDisplayName: string; + + /** Attribution approximationError. */ + public approximationError: number; + + /** Attribution outputName. */ + public outputName: string; /** - * Creates a new GetTrialRequest instance using the specified properties. + * Creates a new Attribution instance using the specified properties. * @param [properties] Properties to set - * @returns GetTrialRequest instance + * @returns Attribution instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTrialRequest): google.cloud.aiplatform.v1.GetTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAttribution): google.cloud.aiplatform.v1beta1.Attribution; /** - * Encodes the specified GetTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. - * @param message GetTrialRequest message or plain object to encode + * Encodes the specified Attribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Attribution.verify|verify} messages. + * @param message Attribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. - * @param message GetTrialRequest message or plain object to encode + * Encodes the specified Attribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Attribution.verify|verify} messages. + * @param message Attribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTrialRequest message from the specified reader or buffer. + * Decodes an Attribution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTrialRequest + * @returns Attribution * @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.aiplatform.v1.GetTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Attribution; /** - * Decodes a GetTrialRequest message from the specified reader or buffer, length delimited. + * Decodes an Attribution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTrialRequest + * @returns Attribution * @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.aiplatform.v1.GetTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Attribution; /** - * Verifies a GetTrialRequest message. + * Verifies an Attribution 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 GetTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Attribution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTrialRequest + * @returns Attribution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Attribution; /** - * Creates a plain object from a GetTrialRequest message. Also converts values to other types if specified. - * @param message GetTrialRequest + * Creates a plain object from an Attribution message. Also converts values to other types if specified. + * @param message Attribution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Attribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTrialRequest to JSON. + * Converts this Attribution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTrialRequest + * Gets the default type url for Attribution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrialsRequest. */ - interface IListTrialsRequest { - - /** ListTrialsRequest parent */ - parent?: (string|null); + /** Properties of a Neighbor. */ + interface INeighbor { - /** ListTrialsRequest pageToken */ - pageToken?: (string|null); + /** Neighbor neighborId */ + neighborId?: (string|null); - /** ListTrialsRequest pageSize */ - pageSize?: (number|null); + /** Neighbor neighborDistance */ + neighborDistance?: (number|null); } - /** Represents a ListTrialsRequest. */ - class ListTrialsRequest implements IListTrialsRequest { + /** Represents a Neighbor. */ + class Neighbor implements INeighbor { /** - * Constructs a new ListTrialsRequest. + * Constructs a new Neighbor. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrialsRequest); - - /** ListTrialsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.INeighbor); - /** ListTrialsRequest pageToken. */ - public pageToken: string; + /** Neighbor neighborId. */ + public neighborId: string; - /** ListTrialsRequest pageSize. */ - public pageSize: number; + /** Neighbor neighborDistance. */ + public neighborDistance: number; /** - * Creates a new ListTrialsRequest instance using the specified properties. + * Creates a new Neighbor instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrialsRequest instance + * @returns Neighbor instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrialsRequest): google.cloud.aiplatform.v1.ListTrialsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.INeighbor): google.cloud.aiplatform.v1beta1.Neighbor; /** - * Encodes the specified ListTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. - * @param message ListTrialsRequest message or plain object to encode + * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Neighbor.verify|verify} messages. + * @param message Neighbor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. - * @param message ListTrialsRequest message or plain object to encode + * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Neighbor.verify|verify} messages. + * @param message Neighbor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrialsRequest message from the specified reader or buffer. + * Decodes a Neighbor message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrialsRequest + * @returns Neighbor * @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.aiplatform.v1.ListTrialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Neighbor; /** - * Decodes a ListTrialsRequest message from the specified reader or buffer, length delimited. + * Decodes a Neighbor message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrialsRequest + * @returns Neighbor * @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.aiplatform.v1.ListTrialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Neighbor; /** - * Verifies a ListTrialsRequest message. + * Verifies a Neighbor 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 ListTrialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Neighbor message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrialsRequest + * @returns Neighbor */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Neighbor; /** - * Creates a plain object from a ListTrialsRequest message. Also converts values to other types if specified. - * @param message ListTrialsRequest + * Creates a plain object from a Neighbor message. Also converts values to other types if specified. + * @param message Neighbor * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Neighbor, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrialsRequest to JSON. + * Converts this Neighbor to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrialsRequest + * Gets the default type url for Neighbor * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrialsResponse. */ - interface IListTrialsResponse { + /** Properties of an ExplanationSpec. */ + interface IExplanationSpec { - /** ListTrialsResponse trials */ - trials?: (google.cloud.aiplatform.v1.ITrial[]|null); + /** ExplanationSpec parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); - /** ListTrialsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ExplanationSpec metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadata|null); } - /** Represents a ListTrialsResponse. */ - class ListTrialsResponse implements IListTrialsResponse { + /** Represents an ExplanationSpec. */ + class ExplanationSpec implements IExplanationSpec { /** - * Constructs a new ListTrialsResponse. + * Constructs a new ExplanationSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrialsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpec); - /** ListTrialsResponse trials. */ - public trials: google.cloud.aiplatform.v1.ITrial[]; + /** ExplanationSpec parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); - /** ListTrialsResponse nextPageToken. */ - public nextPageToken: string; + /** ExplanationSpec metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadata|null); /** - * Creates a new ListTrialsResponse instance using the specified properties. + * Creates a new ExplanationSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrialsResponse instance + * @returns ExplanationSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrialsResponse): google.cloud.aiplatform.v1.ListTrialsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpec): google.cloud.aiplatform.v1beta1.ExplanationSpec; /** - * Encodes the specified ListTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. - * @param message ListTrialsResponse message or plain object to encode + * Encodes the specified ExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpec.verify|verify} messages. + * @param message ExplanationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. - * @param message ListTrialsResponse message or plain object to encode + * Encodes the specified ExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpec.verify|verify} messages. + * @param message ExplanationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrialsResponse message from the specified reader or buffer. + * Decodes an ExplanationSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrialsResponse + * @returns ExplanationSpec * @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.aiplatform.v1.ListTrialsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationSpec; /** - * Decodes a ListTrialsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExplanationSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrialsResponse + * @returns ExplanationSpec * @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.aiplatform.v1.ListTrialsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationSpec; /** - * Verifies a ListTrialsResponse message. + * Verifies an ExplanationSpec 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 ListTrialsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrialsResponse + * @returns ExplanationSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationSpec; /** - * Creates a plain object from a ListTrialsResponse message. Also converts values to other types if specified. - * @param message ListTrialsResponse + * Creates a plain object from an ExplanationSpec message. Also converts values to other types if specified. + * @param message ExplanationSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrialsResponse to JSON. + * Converts this ExplanationSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrialsResponse + * Gets the default type url for ExplanationSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddTrialMeasurementRequest. */ - interface IAddTrialMeasurementRequest { + /** Properties of an ExplanationParameters. */ + interface IExplanationParameters { - /** AddTrialMeasurementRequest trialName */ - trialName?: (string|null); + /** ExplanationParameters sampledShapleyAttribution */ + sampledShapleyAttribution?: (google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution|null); - /** AddTrialMeasurementRequest measurement */ - measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + /** ExplanationParameters integratedGradientsAttribution */ + integratedGradientsAttribution?: (google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution|null); + + /** ExplanationParameters xraiAttribution */ + xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); + + /** ExplanationParameters examples */ + examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); + + /** ExplanationParameters topK */ + topK?: (number|null); + + /** ExplanationParameters outputIndices */ + outputIndices?: (google.protobuf.IListValue|null); } - /** Represents an AddTrialMeasurementRequest. */ - class AddTrialMeasurementRequest implements IAddTrialMeasurementRequest { + /** Represents an ExplanationParameters. */ + class ExplanationParameters implements IExplanationParameters { /** - * Constructs a new AddTrialMeasurementRequest. + * Constructs a new ExplanationParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationParameters); - /** AddTrialMeasurementRequest trialName. */ - public trialName: string; + /** ExplanationParameters sampledShapleyAttribution. */ + public sampledShapleyAttribution?: (google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution|null); - /** AddTrialMeasurementRequest measurement. */ - public measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + /** ExplanationParameters integratedGradientsAttribution. */ + public integratedGradientsAttribution?: (google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution|null); + + /** ExplanationParameters xraiAttribution. */ + public xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); + + /** ExplanationParameters examples. */ + public examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); + + /** ExplanationParameters topK. */ + public topK: number; + + /** ExplanationParameters outputIndices. */ + public outputIndices?: (google.protobuf.IListValue|null); + + /** ExplanationParameters method. */ + public method?: ("sampledShapleyAttribution"|"integratedGradientsAttribution"|"xraiAttribution"|"examples"); /** - * Creates a new AddTrialMeasurementRequest instance using the specified properties. + * Creates a new ExplanationParameters instance using the specified properties. * @param [properties] Properties to set - * @returns AddTrialMeasurementRequest instance + * @returns ExplanationParameters instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationParameters): google.cloud.aiplatform.v1beta1.ExplanationParameters; /** - * Encodes the specified AddTrialMeasurementRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. - * @param message AddTrialMeasurementRequest message or plain object to encode + * Encodes the specified ExplanationParameters message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationParameters.verify|verify} messages. + * @param message ExplanationParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddTrialMeasurementRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. - * @param message AddTrialMeasurementRequest message or plain object to encode + * Encodes the specified ExplanationParameters message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationParameters.verify|verify} messages. + * @param message ExplanationParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer. + * Decodes an ExplanationParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddTrialMeasurementRequest + * @returns ExplanationParameters * @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.aiplatform.v1.AddTrialMeasurementRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationParameters; /** - * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer, length delimited. + * Decodes an ExplanationParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddTrialMeasurementRequest + * @returns ExplanationParameters * @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.aiplatform.v1.AddTrialMeasurementRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationParameters; /** - * Verifies an AddTrialMeasurementRequest message. + * Verifies an ExplanationParameters 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 an AddTrialMeasurementRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddTrialMeasurementRequest + * @returns ExplanationParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationParameters; /** - * Creates a plain object from an AddTrialMeasurementRequest message. Also converts values to other types if specified. - * @param message AddTrialMeasurementRequest + * Creates a plain object from an ExplanationParameters message. Also converts values to other types if specified. + * @param message ExplanationParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddTrialMeasurementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddTrialMeasurementRequest to JSON. + * Converts this ExplanationParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddTrialMeasurementRequest + * Gets the default type url for ExplanationParameters * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CompleteTrialRequest. */ - interface ICompleteTrialRequest { - - /** CompleteTrialRequest name */ - name?: (string|null); - - /** CompleteTrialRequest finalMeasurement */ - finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); - - /** CompleteTrialRequest trialInfeasible */ - trialInfeasible?: (boolean|null); + /** Properties of a SampledShapleyAttribution. */ + interface ISampledShapleyAttribution { - /** CompleteTrialRequest infeasibleReason */ - infeasibleReason?: (string|null); + /** SampledShapleyAttribution pathCount */ + pathCount?: (number|null); } - /** Represents a CompleteTrialRequest. */ - class CompleteTrialRequest implements ICompleteTrialRequest { + /** Represents a SampledShapleyAttribution. */ + class SampledShapleyAttribution implements ISampledShapleyAttribution { /** - * Constructs a new CompleteTrialRequest. + * Constructs a new SampledShapleyAttribution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest); - - /** CompleteTrialRequest name. */ - public name: string; - - /** CompleteTrialRequest finalMeasurement. */ - public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); - - /** CompleteTrialRequest trialInfeasible. */ - public trialInfeasible: boolean; + constructor(properties?: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution); - /** CompleteTrialRequest infeasibleReason. */ - public infeasibleReason: string; + /** SampledShapleyAttribution pathCount. */ + public pathCount: number; /** - * Creates a new CompleteTrialRequest instance using the specified properties. + * Creates a new SampledShapleyAttribution instance using the specified properties. * @param [properties] Properties to set - * @returns CompleteTrialRequest instance + * @returns SampledShapleyAttribution instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest): google.cloud.aiplatform.v1.CompleteTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; /** - * Encodes the specified CompleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. - * @param message CompleteTrialRequest message or plain object to encode + * Encodes the specified SampledShapleyAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.verify|verify} messages. + * @param message SampledShapleyAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. - * @param message CompleteTrialRequest message or plain object to encode + * Encodes the specified SampledShapleyAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.verify|verify} messages. + * @param message SampledShapleyAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompleteTrialRequest message from the specified reader or buffer. + * Decodes a SampledShapleyAttribution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CompleteTrialRequest + * @returns SampledShapleyAttribution * @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.aiplatform.v1.CompleteTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; /** - * Decodes a CompleteTrialRequest message from the specified reader or buffer, length delimited. + * Decodes a SampledShapleyAttribution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompleteTrialRequest + * @returns SampledShapleyAttribution * @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.aiplatform.v1.CompleteTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; /** - * Verifies a CompleteTrialRequest message. + * Verifies a SampledShapleyAttribution 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 CompleteTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SampledShapleyAttribution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompleteTrialRequest + * @returns SampledShapleyAttribution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CompleteTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; /** - * Creates a plain object from a CompleteTrialRequest message. Also converts values to other types if specified. - * @param message CompleteTrialRequest + * Creates a plain object from a SampledShapleyAttribution message. Also converts values to other types if specified. + * @param message SampledShapleyAttribution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CompleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SampledShapleyAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompleteTrialRequest to JSON. + * Converts this SampledShapleyAttribution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompleteTrialRequest + * Gets the default type url for SampledShapleyAttribution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTrialRequest. */ - interface IDeleteTrialRequest { + /** Properties of an IntegratedGradientsAttribution. */ + interface IIntegratedGradientsAttribution { - /** DeleteTrialRequest name */ - name?: (string|null); + /** IntegratedGradientsAttribution stepCount */ + stepCount?: (number|null); + + /** IntegratedGradientsAttribution smoothGradConfig */ + smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + + /** IntegratedGradientsAttribution blurBaselineConfig */ + blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); } - /** Represents a DeleteTrialRequest. */ - class DeleteTrialRequest implements IDeleteTrialRequest { + /** Represents an IntegratedGradientsAttribution. */ + class IntegratedGradientsAttribution implements IIntegratedGradientsAttribution { /** - * Constructs a new DeleteTrialRequest. + * Constructs a new IntegratedGradientsAttribution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution); - /** DeleteTrialRequest name. */ - public name: string; + /** IntegratedGradientsAttribution stepCount. */ + public stepCount: number; + + /** IntegratedGradientsAttribution smoothGradConfig. */ + public smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + + /** IntegratedGradientsAttribution blurBaselineConfig. */ + public blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); /** - * Creates a new DeleteTrialRequest instance using the specified properties. + * Creates a new IntegratedGradientsAttribution instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTrialRequest instance + * @returns IntegratedGradientsAttribution instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest): google.cloud.aiplatform.v1.DeleteTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; /** - * Encodes the specified DeleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. - * @param message DeleteTrialRequest message or plain object to encode + * Encodes the specified IntegratedGradientsAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.verify|verify} messages. + * @param message IntegratedGradientsAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. - * @param message DeleteTrialRequest message or plain object to encode + * Encodes the specified IntegratedGradientsAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.verify|verify} messages. + * @param message IntegratedGradientsAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTrialRequest message from the specified reader or buffer. + * Decodes an IntegratedGradientsAttribution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTrialRequest + * @returns IntegratedGradientsAttribution * @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.aiplatform.v1.DeleteTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; /** - * Decodes a DeleteTrialRequest message from the specified reader or buffer, length delimited. + * Decodes an IntegratedGradientsAttribution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTrialRequest + * @returns IntegratedGradientsAttribution * @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.aiplatform.v1.DeleteTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; /** - * Verifies a DeleteTrialRequest message. + * Verifies an IntegratedGradientsAttribution 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 DeleteTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IntegratedGradientsAttribution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTrialRequest + * @returns IntegratedGradientsAttribution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; /** - * Creates a plain object from a DeleteTrialRequest message. Also converts values to other types if specified. - * @param message DeleteTrialRequest + * Creates a plain object from an IntegratedGradientsAttribution message. Also converts values to other types if specified. + * @param message IntegratedGradientsAttribution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTrialRequest to JSON. + * Converts this IntegratedGradientsAttribution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTrialRequest + * Gets the default type url for IntegratedGradientsAttribution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CheckTrialEarlyStoppingStateRequest. */ - interface ICheckTrialEarlyStoppingStateRequest { + /** Properties of a XraiAttribution. */ + interface IXraiAttribution { - /** CheckTrialEarlyStoppingStateRequest trialName */ - trialName?: (string|null); + /** XraiAttribution stepCount */ + stepCount?: (number|null); + + /** XraiAttribution smoothGradConfig */ + smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + + /** XraiAttribution blurBaselineConfig */ + blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); } - /** Represents a CheckTrialEarlyStoppingStateRequest. */ - class CheckTrialEarlyStoppingStateRequest implements ICheckTrialEarlyStoppingStateRequest { + /** Represents a XraiAttribution. */ + class XraiAttribution implements IXraiAttribution { /** - * Constructs a new CheckTrialEarlyStoppingStateRequest. + * Constructs a new XraiAttribution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IXraiAttribution); - /** CheckTrialEarlyStoppingStateRequest trialName. */ - public trialName: string; + /** XraiAttribution stepCount. */ + public stepCount: number; + + /** XraiAttribution smoothGradConfig. */ + public smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + + /** XraiAttribution blurBaselineConfig. */ + public blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); /** - * Creates a new CheckTrialEarlyStoppingStateRequest instance using the specified properties. + * Creates a new XraiAttribution instance using the specified properties. * @param [properties] Properties to set - * @returns CheckTrialEarlyStoppingStateRequest instance + * @returns XraiAttribution instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IXraiAttribution): google.cloud.aiplatform.v1beta1.XraiAttribution; /** - * Encodes the specified CheckTrialEarlyStoppingStateRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode + * Encodes the specified XraiAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.XraiAttribution.verify|verify} messages. + * @param message XraiAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IXraiAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckTrialEarlyStoppingStateRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode + * Encodes the specified XraiAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.XraiAttribution.verify|verify} messages. + * @param message XraiAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IXraiAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer. + * Decodes a XraiAttribution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckTrialEarlyStoppingStateRequest + * @returns XraiAttribution * @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.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.XraiAttribution; /** - * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer, length delimited. + * Decodes a XraiAttribution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckTrialEarlyStoppingStateRequest + * @returns XraiAttribution * @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.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.XraiAttribution; /** - * Verifies a CheckTrialEarlyStoppingStateRequest message. + * Verifies a XraiAttribution 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 CheckTrialEarlyStoppingStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a XraiAttribution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckTrialEarlyStoppingStateRequest + * @returns XraiAttribution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.XraiAttribution; /** - * Creates a plain object from a CheckTrialEarlyStoppingStateRequest message. Also converts values to other types if specified. - * @param message CheckTrialEarlyStoppingStateRequest + * Creates a plain object from a XraiAttribution message. Also converts values to other types if specified. + * @param message XraiAttribution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.XraiAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckTrialEarlyStoppingStateRequest to JSON. + * Converts this XraiAttribution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckTrialEarlyStoppingStateRequest + * Gets the default type url for XraiAttribution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CheckTrialEarlyStoppingStateResponse. */ - interface ICheckTrialEarlyStoppingStateResponse { + /** Properties of a SmoothGradConfig. */ + interface ISmoothGradConfig { - /** CheckTrialEarlyStoppingStateResponse shouldStop */ - shouldStop?: (boolean|null); + /** SmoothGradConfig noiseSigma */ + noiseSigma?: (number|null); + + /** SmoothGradConfig featureNoiseSigma */ + featureNoiseSigma?: (google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma|null); + + /** SmoothGradConfig noisySampleCount */ + noisySampleCount?: (number|null); } - /** Represents a CheckTrialEarlyStoppingStateResponse. */ - class CheckTrialEarlyStoppingStateResponse implements ICheckTrialEarlyStoppingStateResponse { + /** Represents a SmoothGradConfig. */ + class SmoothGradConfig implements ISmoothGradConfig { /** - * Constructs a new CheckTrialEarlyStoppingStateResponse. + * Constructs a new SmoothGradConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISmoothGradConfig); - /** CheckTrialEarlyStoppingStateResponse shouldStop. */ - public shouldStop: boolean; + /** SmoothGradConfig noiseSigma. */ + public noiseSigma?: (number|null); + + /** SmoothGradConfig featureNoiseSigma. */ + public featureNoiseSigma?: (google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma|null); + + /** SmoothGradConfig noisySampleCount. */ + public noisySampleCount: number; + + /** SmoothGradConfig GradientNoiseSigma. */ + public GradientNoiseSigma?: ("noiseSigma"|"featureNoiseSigma"); /** - * Creates a new CheckTrialEarlyStoppingStateResponse instance using the specified properties. + * Creates a new SmoothGradConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CheckTrialEarlyStoppingStateResponse instance + * @returns SmoothGradConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISmoothGradConfig): google.cloud.aiplatform.v1beta1.SmoothGradConfig; /** - * Encodes the specified CheckTrialEarlyStoppingStateResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode + * Encodes the specified SmoothGradConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SmoothGradConfig.verify|verify} messages. + * @param message SmoothGradConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISmoothGradConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckTrialEarlyStoppingStateResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode + * Encodes the specified SmoothGradConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SmoothGradConfig.verify|verify} messages. + * @param message SmoothGradConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISmoothGradConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer. + * Decodes a SmoothGradConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckTrialEarlyStoppingStateResponse + * @returns SmoothGradConfig * @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.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SmoothGradConfig; /** - * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer, length delimited. + * Decodes a SmoothGradConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckTrialEarlyStoppingStateResponse + * @returns SmoothGradConfig * @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.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SmoothGradConfig; /** - * Verifies a CheckTrialEarlyStoppingStateResponse message. + * Verifies a SmoothGradConfig 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 CheckTrialEarlyStoppingStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SmoothGradConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckTrialEarlyStoppingStateResponse + * @returns SmoothGradConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SmoothGradConfig; /** - * Creates a plain object from a CheckTrialEarlyStoppingStateResponse message. Also converts values to other types if specified. - * @param message CheckTrialEarlyStoppingStateResponse + * Creates a plain object from a SmoothGradConfig message. Also converts values to other types if specified. + * @param message SmoothGradConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SmoothGradConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckTrialEarlyStoppingStateResponse to JSON. + * Converts this SmoothGradConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckTrialEarlyStoppingStateResponse + * Gets the default type url for SmoothGradConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CheckTrialEarlyStoppingStateMetatdata. */ - interface ICheckTrialEarlyStoppingStateMetatdata { - - /** CheckTrialEarlyStoppingStateMetatdata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - - /** CheckTrialEarlyStoppingStateMetatdata study */ - study?: (string|null); + /** Properties of a FeatureNoiseSigma. */ + interface IFeatureNoiseSigma { - /** CheckTrialEarlyStoppingStateMetatdata trial */ - trial?: (string|null); + /** FeatureNoiseSigma noiseSigma */ + noiseSigma?: (google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature[]|null); } - /** Represents a CheckTrialEarlyStoppingStateMetatdata. */ - class CheckTrialEarlyStoppingStateMetatdata implements ICheckTrialEarlyStoppingStateMetatdata { + /** Represents a FeatureNoiseSigma. */ + class FeatureNoiseSigma implements IFeatureNoiseSigma { /** - * Constructs a new CheckTrialEarlyStoppingStateMetatdata. + * Constructs a new FeatureNoiseSigma. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata); - - /** CheckTrialEarlyStoppingStateMetatdata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - - /** CheckTrialEarlyStoppingStateMetatdata study. */ - public study: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma); - /** CheckTrialEarlyStoppingStateMetatdata trial. */ - public trial: string; + /** FeatureNoiseSigma noiseSigma. */ + public noiseSigma: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature[]; /** - * Creates a new CheckTrialEarlyStoppingStateMetatdata instance using the specified properties. + * Creates a new FeatureNoiseSigma instance using the specified properties. * @param [properties] Properties to set - * @returns CheckTrialEarlyStoppingStateMetatdata instance + * @returns FeatureNoiseSigma instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; /** - * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode + * Encodes the specified FeatureNoiseSigma message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.verify|verify} messages. + * @param message FeatureNoiseSigma message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode + * Encodes the specified FeatureNoiseSigma message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.verify|verify} messages. + * @param message FeatureNoiseSigma message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer. + * Decodes a FeatureNoiseSigma message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckTrialEarlyStoppingStateMetatdata + * @returns FeatureNoiseSigma * @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.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; /** - * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer, length delimited. + * Decodes a FeatureNoiseSigma message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckTrialEarlyStoppingStateMetatdata + * @returns FeatureNoiseSigma * @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.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; /** - * Verifies a CheckTrialEarlyStoppingStateMetatdata message. + * Verifies a FeatureNoiseSigma 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 CheckTrialEarlyStoppingStateMetatdata message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureNoiseSigma message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckTrialEarlyStoppingStateMetatdata + * @returns FeatureNoiseSigma */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; /** - * Creates a plain object from a CheckTrialEarlyStoppingStateMetatdata message. Also converts values to other types if specified. - * @param message CheckTrialEarlyStoppingStateMetatdata + * Creates a plain object from a FeatureNoiseSigma message. Also converts values to other types if specified. + * @param message FeatureNoiseSigma * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckTrialEarlyStoppingStateMetatdata to JSON. + * Converts this FeatureNoiseSigma to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckTrialEarlyStoppingStateMetatdata + * Gets the default type url for FeatureNoiseSigma * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StopTrialRequest. */ - interface IStopTrialRequest { + namespace FeatureNoiseSigma { - /** StopTrialRequest name */ - name?: (string|null); + /** Properties of a NoiseSigmaForFeature. */ + interface INoiseSigmaForFeature { + + /** NoiseSigmaForFeature name */ + name?: (string|null); + + /** NoiseSigmaForFeature sigma */ + sigma?: (number|null); + } + + /** Represents a NoiseSigmaForFeature. */ + class NoiseSigmaForFeature implements INoiseSigmaForFeature { + + /** + * Constructs a new NoiseSigmaForFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature); + + /** NoiseSigmaForFeature name. */ + public name: string; + + /** NoiseSigmaForFeature sigma. */ + public sigma: number; + + /** + * Creates a new NoiseSigmaForFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns NoiseSigmaForFeature instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; + + /** + * Encodes the specified NoiseSigmaForFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature.verify|verify} messages. + * @param message NoiseSigmaForFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NoiseSigmaForFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature.verify|verify} messages. + * @param message NoiseSigmaForFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NoiseSigmaForFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NoiseSigmaForFeature + * @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.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; + + /** + * Decodes a NoiseSigmaForFeature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NoiseSigmaForFeature + * @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.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; + + /** + * Verifies a NoiseSigmaForFeature 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 NoiseSigmaForFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NoiseSigmaForFeature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; + + /** + * Creates a plain object from a NoiseSigmaForFeature message. Also converts values to other types if specified. + * @param message NoiseSigmaForFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NoiseSigmaForFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NoiseSigmaForFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a StopTrialRequest. */ - class StopTrialRequest implements IStopTrialRequest { + /** Properties of a BlurBaselineConfig. */ + interface IBlurBaselineConfig { + + /** BlurBaselineConfig maxBlurSigma */ + maxBlurSigma?: (number|null); + } + + /** Represents a BlurBaselineConfig. */ + class BlurBaselineConfig implements IBlurBaselineConfig { /** - * Constructs a new StopTrialRequest. + * Constructs a new BlurBaselineConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IStopTrialRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig); - /** StopTrialRequest name. */ - public name: string; + /** BlurBaselineConfig maxBlurSigma. */ + public maxBlurSigma: number; /** - * Creates a new StopTrialRequest instance using the specified properties. + * Creates a new BlurBaselineConfig instance using the specified properties. * @param [properties] Properties to set - * @returns StopTrialRequest instance + * @returns BlurBaselineConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.IStopTrialRequest): google.cloud.aiplatform.v1.StopTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; /** - * Encodes the specified StopTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. - * @param message StopTrialRequest message or plain object to encode + * Encodes the specified BlurBaselineConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BlurBaselineConfig.verify|verify} messages. + * @param message BlurBaselineConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. - * @param message StopTrialRequest message or plain object to encode + * Encodes the specified BlurBaselineConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BlurBaselineConfig.verify|verify} messages. + * @param message BlurBaselineConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopTrialRequest message from the specified reader or buffer. + * Decodes a BlurBaselineConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopTrialRequest + * @returns BlurBaselineConfig * @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.aiplatform.v1.StopTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; /** - * Decodes a StopTrialRequest message from the specified reader or buffer, length delimited. + * Decodes a BlurBaselineConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopTrialRequest + * @returns BlurBaselineConfig * @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.aiplatform.v1.StopTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; /** - * Verifies a StopTrialRequest message. + * Verifies a BlurBaselineConfig 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 StopTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BlurBaselineConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopTrialRequest + * @returns BlurBaselineConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StopTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; /** - * Creates a plain object from a StopTrialRequest message. Also converts values to other types if specified. - * @param message StopTrialRequest + * Creates a plain object from a BlurBaselineConfig message. Also converts values to other types if specified. + * @param message BlurBaselineConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.StopTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BlurBaselineConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopTrialRequest to JSON. + * Converts this BlurBaselineConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopTrialRequest + * Gets the default type url for BlurBaselineConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListOptimalTrialsRequest. */ - interface IListOptimalTrialsRequest { + /** Properties of an Examples. */ + interface IExamples { - /** ListOptimalTrialsRequest parent */ - parent?: (string|null); + /** Examples nearestNeighborSearchConfig */ + nearestNeighborSearchConfig?: (google.protobuf.IValue|null); + + /** Examples presets */ + presets?: (google.cloud.aiplatform.v1beta1.IPresets|null); + + /** Examples gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + + /** Examples neighborCount */ + neighborCount?: (number|null); } - /** Represents a ListOptimalTrialsRequest. */ - class ListOptimalTrialsRequest implements IListOptimalTrialsRequest { + /** Represents an Examples. */ + class Examples implements IExamples { /** - * Constructs a new ListOptimalTrialsRequest. + * Constructs a new Examples. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExamples); + + /** Examples nearestNeighborSearchConfig. */ + public nearestNeighborSearchConfig?: (google.protobuf.IValue|null); + + /** Examples presets. */ + public presets?: (google.cloud.aiplatform.v1beta1.IPresets|null); + + /** Examples gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** ListOptimalTrialsRequest parent. */ - public parent: string; + /** Examples neighborCount. */ + public neighborCount: number; + + /** Examples config. */ + public config?: ("nearestNeighborSearchConfig"|"presets"); /** - * Creates a new ListOptimalTrialsRequest instance using the specified properties. + * Creates a new Examples instance using the specified properties. * @param [properties] Properties to set - * @returns ListOptimalTrialsRequest instance + * @returns Examples instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExamples): google.cloud.aiplatform.v1beta1.Examples; /** - * Encodes the specified ListOptimalTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. - * @param message ListOptimalTrialsRequest message or plain object to encode + * Encodes the specified Examples message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. + * @param message Examples message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListOptimalTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. - * @param message ListOptimalTrialsRequest message or plain object to encode + * Encodes the specified Examples message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. + * @param message Examples message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer. + * Decodes an Examples message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListOptimalTrialsRequest + * @returns Examples * @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.aiplatform.v1.ListOptimalTrialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Examples; /** - * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer, length delimited. + * Decodes an Examples message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListOptimalTrialsRequest + * @returns Examples * @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.aiplatform.v1.ListOptimalTrialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Examples; /** - * Verifies a ListOptimalTrialsRequest message. + * Verifies an Examples 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 ListOptimalTrialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Examples message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListOptimalTrialsRequest + * @returns Examples */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Examples; /** - * Creates a plain object from a ListOptimalTrialsRequest message. Also converts values to other types if specified. - * @param message ListOptimalTrialsRequest + * Creates a plain object from an Examples message. Also converts values to other types if specified. + * @param message Examples * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Examples, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListOptimalTrialsRequest to JSON. + * Converts this Examples to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListOptimalTrialsRequest + * Gets the default type url for Examples * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListOptimalTrialsResponse. */ - interface IListOptimalTrialsResponse { + /** Properties of a Presets. */ + interface IPresets { - /** ListOptimalTrialsResponse optimalTrials */ - optimalTrials?: (google.cloud.aiplatform.v1.ITrial[]|null); + /** Presets query */ + query?: (google.cloud.aiplatform.v1beta1.Presets.Query|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Query|null); + + /** Presets modality */ + modality?: (google.cloud.aiplatform.v1beta1.Presets.Modality|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Modality|null); } - /** Represents a ListOptimalTrialsResponse. */ - class ListOptimalTrialsResponse implements IListOptimalTrialsResponse { + /** Represents a Presets. */ + class Presets implements IPresets { /** - * Constructs a new ListOptimalTrialsResponse. + * Constructs a new Presets. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPresets); - /** ListOptimalTrialsResponse optimalTrials. */ - public optimalTrials: google.cloud.aiplatform.v1.ITrial[]; + /** Presets query. */ + public query?: (google.cloud.aiplatform.v1beta1.Presets.Query|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Query|null); + + /** Presets modality. */ + public modality: (google.cloud.aiplatform.v1beta1.Presets.Modality|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Modality); + + /** Presets _query. */ + public _query?: "query"; /** - * Creates a new ListOptimalTrialsResponse instance using the specified properties. + * Creates a new Presets instance using the specified properties. * @param [properties] Properties to set - * @returns ListOptimalTrialsResponse instance + * @returns Presets instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPresets): google.cloud.aiplatform.v1beta1.Presets; /** - * Encodes the specified ListOptimalTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. - * @param message ListOptimalTrialsResponse message or plain object to encode + * Encodes the specified Presets message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Presets.verify|verify} messages. + * @param message Presets message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPresets, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListOptimalTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. - * @param message ListOptimalTrialsResponse message or plain object to encode + * Encodes the specified Presets message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Presets.verify|verify} messages. + * @param message Presets message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPresets, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer. + * Decodes a Presets message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListOptimalTrialsResponse + * @returns Presets * @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.aiplatform.v1.ListOptimalTrialsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Presets; /** - * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer, length delimited. + * Decodes a Presets message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListOptimalTrialsResponse + * @returns Presets * @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.aiplatform.v1.ListOptimalTrialsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Presets; /** - * Verifies a ListOptimalTrialsResponse message. + * Verifies a Presets 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 ListOptimalTrialsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Presets message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListOptimalTrialsResponse + * @returns Presets */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Presets; /** - * Creates a plain object from a ListOptimalTrialsResponse message. Also converts values to other types if specified. - * @param message ListOptimalTrialsResponse + * Creates a plain object from a Presets message. Also converts values to other types if specified. + * @param message Presets * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Presets, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListOptimalTrialsResponse to JSON. + * Converts this Presets to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListOptimalTrialsResponse + * Gets the default type url for Presets * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - - /** Namespace v1beta1. */ - namespace v1beta1 { - - /** AcceleratorType enum. */ - enum AcceleratorType { - ACCELERATOR_TYPE_UNSPECIFIED = 0, - NVIDIA_TESLA_K80 = 1, - NVIDIA_TESLA_P100 = 2, - NVIDIA_TESLA_V100 = 3, - NVIDIA_TESLA_P4 = 4, - NVIDIA_TESLA_T4 = 5, - NVIDIA_TESLA_A100 = 8, - NVIDIA_A100_80GB = 9, - TPU_V2 = 6, - TPU_V3 = 7 - } - - /** Properties of an Annotation. */ - interface IAnnotation { - - /** Annotation name */ - name?: (string|null); - /** Annotation payloadSchemaUri */ - payloadSchemaUri?: (string|null); + namespace Presets { - /** Annotation payload */ - payload?: (google.protobuf.IValue|null); + /** Query enum. */ + enum Query { + PRECISE = 0, + FAST = 1 + } - /** Annotation createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Modality enum. */ + enum Modality { + MODALITY_UNSPECIFIED = 0, + IMAGE = 1, + TEXT = 2, + TABULAR = 3 + } + } - /** Annotation updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of an ExplanationSpecOverride. */ + interface IExplanationSpecOverride { - /** Annotation etag */ - etag?: (string|null); + /** ExplanationSpecOverride parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); - /** Annotation annotationSource */ - annotationSource?: (google.cloud.aiplatform.v1beta1.IUserActionReference|null); + /** ExplanationSpecOverride metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride|null); - /** Annotation labels */ - labels?: ({ [k: string]: string }|null); + /** ExplanationSpecOverride examplesOverride */ + examplesOverride?: (google.cloud.aiplatform.v1beta1.IExamplesOverride|null); } - /** Represents an Annotation. */ - class Annotation implements IAnnotation { + /** Represents an ExplanationSpecOverride. */ + class ExplanationSpecOverride implements IExplanationSpecOverride { /** - * Constructs a new Annotation. + * Constructs a new ExplanationSpecOverride. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAnnotation); - - /** Annotation name. */ - public name: string; - - /** Annotation payloadSchemaUri. */ - public payloadSchemaUri: string; - - /** Annotation payload. */ - public payload?: (google.protobuf.IValue|null); - - /** Annotation createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Annotation updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride); - /** Annotation etag. */ - public etag: string; + /** ExplanationSpecOverride parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); - /** Annotation annotationSource. */ - public annotationSource?: (google.cloud.aiplatform.v1beta1.IUserActionReference|null); + /** ExplanationSpecOverride metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride|null); - /** Annotation labels. */ - public labels: { [k: string]: string }; + /** ExplanationSpecOverride examplesOverride. */ + public examplesOverride?: (google.cloud.aiplatform.v1beta1.IExamplesOverride|null); /** - * Creates a new Annotation instance using the specified properties. + * Creates a new ExplanationSpecOverride instance using the specified properties. * @param [properties] Properties to set - * @returns Annotation instance + * @returns ExplanationSpecOverride instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAnnotation): google.cloud.aiplatform.v1beta1.Annotation; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; /** - * Encodes the specified Annotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode + * Encodes the specified ExplanationSpecOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify|verify} messages. + * @param message ExplanationSpecOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode + * Encodes the specified ExplanationSpecOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify|verify} messages. + * @param message ExplanationSpecOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Annotation message from the specified reader or buffer. + * Decodes an ExplanationSpecOverride message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Annotation + * @returns ExplanationSpecOverride * @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.aiplatform.v1beta1.Annotation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. + * Decodes an ExplanationSpecOverride message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Annotation + * @returns ExplanationSpecOverride * @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.aiplatform.v1beta1.Annotation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; /** - * Verifies an Annotation message. + * Verifies an ExplanationSpecOverride 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 an Annotation message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationSpecOverride message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Annotation + * @returns ExplanationSpecOverride */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Annotation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @param message Annotation + * Creates a plain object from an ExplanationSpecOverride message. Also converts values to other types if specified. + * @param message ExplanationSpecOverride * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationSpecOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Annotation to JSON. + * Converts this ExplanationSpecOverride to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Annotation + * Gets the default type url for ExplanationSpecOverride * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserActionReference. */ - interface IUserActionReference { - - /** UserActionReference operation */ - operation?: (string|null); - - /** UserActionReference dataLabelingJob */ - dataLabelingJob?: (string|null); + /** Properties of an ExplanationMetadataOverride. */ + interface IExplanationMetadataOverride { - /** UserActionReference method */ - method?: (string|null); + /** ExplanationMetadataOverride inputs */ + inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride }|null); } - /** Represents a UserActionReference. */ - class UserActionReference implements IUserActionReference { + /** Represents an ExplanationMetadataOverride. */ + class ExplanationMetadataOverride implements IExplanationMetadataOverride { /** - * Constructs a new UserActionReference. + * Constructs a new ExplanationMetadataOverride. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUserActionReference); - - /** UserActionReference operation. */ - public operation?: (string|null); - - /** UserActionReference dataLabelingJob. */ - public dataLabelingJob?: (string|null); - - /** UserActionReference method. */ - public method: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride); - /** UserActionReference reference. */ - public reference?: ("operation"|"dataLabelingJob"); + /** ExplanationMetadataOverride inputs. */ + public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride }; /** - * Creates a new UserActionReference instance using the specified properties. + * Creates a new ExplanationMetadataOverride instance using the specified properties. * @param [properties] Properties to set - * @returns UserActionReference instance + * @returns ExplanationMetadataOverride instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUserActionReference): google.cloud.aiplatform.v1beta1.UserActionReference; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; /** - * Encodes the specified UserActionReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UserActionReference.verify|verify} messages. - * @param message UserActionReference message or plain object to encode + * Encodes the specified ExplanationMetadataOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.verify|verify} messages. + * @param message ExplanationMetadataOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUserActionReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UserActionReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UserActionReference.verify|verify} messages. - * @param message UserActionReference message or plain object to encode + * Encodes the specified ExplanationMetadataOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.verify|verify} messages. + * @param message ExplanationMetadataOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUserActionReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserActionReference message from the specified reader or buffer. + * Decodes an ExplanationMetadataOverride message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserActionReference + * @returns ExplanationMetadataOverride * @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.aiplatform.v1beta1.UserActionReference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; /** - * Decodes a UserActionReference message from the specified reader or buffer, length delimited. + * Decodes an ExplanationMetadataOverride message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserActionReference + * @returns ExplanationMetadataOverride * @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.aiplatform.v1beta1.UserActionReference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; /** - * Verifies a UserActionReference message. + * Verifies an ExplanationMetadataOverride 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 UserActionReference message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationMetadataOverride message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserActionReference + * @returns ExplanationMetadataOverride */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UserActionReference; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; /** - * Creates a plain object from a UserActionReference message. Also converts values to other types if specified. - * @param message UserActionReference + * Creates a plain object from an ExplanationMetadataOverride message. Also converts values to other types if specified. + * @param message ExplanationMetadataOverride * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UserActionReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserActionReference to JSON. + * Converts this ExplanationMetadataOverride to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserActionReference + * Gets the default type url for ExplanationMetadataOverride * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AnnotationSpec. */ - interface IAnnotationSpec { + namespace ExplanationMetadataOverride { - /** AnnotationSpec name */ - name?: (string|null); + /** Properties of an InputMetadataOverride. */ + interface IInputMetadataOverride { - /** AnnotationSpec displayName */ - displayName?: (string|null); + /** InputMetadataOverride inputBaselines */ + inputBaselines?: (google.protobuf.IValue[]|null); + } - /** AnnotationSpec createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Represents an InputMetadataOverride. */ + class InputMetadataOverride implements IInputMetadataOverride { - /** AnnotationSpec updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new InputMetadataOverride. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride); - /** AnnotationSpec etag */ - etag?: (string|null); + /** InputMetadataOverride inputBaselines. */ + public inputBaselines: google.protobuf.IValue[]; + + /** + * Creates a new InputMetadataOverride instance using the specified properties. + * @param [properties] Properties to set + * @returns InputMetadataOverride instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + + /** + * Encodes the specified InputMetadataOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride.verify|verify} messages. + * @param message InputMetadataOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InputMetadataOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride.verify|verify} messages. + * @param message InputMetadataOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InputMetadataOverride message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputMetadataOverride + * @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.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + + /** + * Decodes an InputMetadataOverride message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputMetadataOverride + * @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.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + + /** + * Verifies an InputMetadataOverride 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 an InputMetadataOverride message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputMetadataOverride + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + + /** + * Creates a plain object from an InputMetadataOverride message. Also converts values to other types if specified. + * @param message InputMetadataOverride + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InputMetadataOverride to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InputMetadataOverride + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents an AnnotationSpec. */ - class AnnotationSpec implements IAnnotationSpec { + /** Properties of an ExamplesOverride. */ + interface IExamplesOverride { + + /** ExamplesOverride neighborCount */ + neighborCount?: (number|null); + + /** ExamplesOverride crowdingCount */ + crowdingCount?: (number|null); + + /** ExamplesOverride restrictions */ + restrictions?: (google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace[]|null); + + /** ExamplesOverride returnEmbeddings */ + returnEmbeddings?: (boolean|null); + + /** ExamplesOverride dataFormat */ + dataFormat?: (google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|null); + } + + /** Represents an ExamplesOverride. */ + class ExamplesOverride implements IExamplesOverride { /** - * Constructs a new AnnotationSpec. + * Constructs a new ExamplesOverride. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAnnotationSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExamplesOverride); - /** AnnotationSpec name. */ - public name: string; + /** ExamplesOverride neighborCount. */ + public neighborCount: number; - /** AnnotationSpec displayName. */ - public displayName: string; + /** ExamplesOverride crowdingCount. */ + public crowdingCount: number; - /** AnnotationSpec createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ExamplesOverride restrictions. */ + public restrictions: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace[]; - /** AnnotationSpec updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ExamplesOverride returnEmbeddings. */ + public returnEmbeddings: boolean; - /** AnnotationSpec etag. */ - public etag: string; + /** ExamplesOverride dataFormat. */ + public dataFormat: (google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat); /** - * Creates a new AnnotationSpec instance using the specified properties. + * Creates a new ExamplesOverride instance using the specified properties. * @param [properties] Properties to set - * @returns AnnotationSpec instance + * @returns ExamplesOverride instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAnnotationSpec): google.cloud.aiplatform.v1beta1.AnnotationSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExamplesOverride): google.cloud.aiplatform.v1beta1.ExamplesOverride; /** - * Encodes the specified AnnotationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AnnotationSpec.verify|verify} messages. - * @param message AnnotationSpec message or plain object to encode + * Encodes the specified ExamplesOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesOverride.verify|verify} messages. + * @param message ExamplesOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AnnotationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AnnotationSpec.verify|verify} messages. - * @param message AnnotationSpec message or plain object to encode + * Encodes the specified ExamplesOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesOverride.verify|verify} messages. + * @param message ExamplesOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AnnotationSpec message from the specified reader or buffer. + * Decodes an ExamplesOverride message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AnnotationSpec + * @returns ExamplesOverride * @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.aiplatform.v1beta1.AnnotationSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExamplesOverride; /** - * Decodes an AnnotationSpec message from the specified reader or buffer, length delimited. + * Decodes an ExamplesOverride message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AnnotationSpec + * @returns ExamplesOverride * @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.aiplatform.v1beta1.AnnotationSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExamplesOverride; /** - * Verifies an AnnotationSpec message. + * Verifies an ExamplesOverride 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 an AnnotationSpec message from a plain object. Also converts values to their respective internal types. + * Creates an ExamplesOverride message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AnnotationSpec + * @returns ExamplesOverride */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AnnotationSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExamplesOverride; /** - * Creates a plain object from an AnnotationSpec message. Also converts values to other types if specified. - * @param message AnnotationSpec + * Creates a plain object from an ExamplesOverride message. Also converts values to other types if specified. + * @param message ExamplesOverride * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AnnotationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExamplesOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AnnotationSpec to JSON. + * Converts this ExamplesOverride to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AnnotationSpec + * Gets the default type url for ExamplesOverride * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Artifact. */ - interface IArtifact { - - /** Artifact name */ - name?: (string|null); - - /** Artifact displayName */ - displayName?: (string|null); - - /** Artifact uri */ - uri?: (string|null); - - /** Artifact etag */ - etag?: (string|null); - - /** Artifact labels */ - labels?: ({ [k: string]: string }|null); - - /** Artifact createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Artifact updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + namespace ExamplesOverride { - /** Artifact state */ - state?: (google.cloud.aiplatform.v1beta1.Artifact.State|keyof typeof google.cloud.aiplatform.v1beta1.Artifact.State|null); + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + INSTANCES = 1, + EMBEDDINGS = 2 + } + } - /** Artifact schemaTitle */ - schemaTitle?: (string|null); + /** Properties of an ExamplesRestrictionsNamespace. */ + interface IExamplesRestrictionsNamespace { - /** Artifact schemaVersion */ - schemaVersion?: (string|null); + /** ExamplesRestrictionsNamespace namespaceName */ + namespaceName?: (string|null); - /** Artifact metadata */ - metadata?: (google.protobuf.IStruct|null); + /** ExamplesRestrictionsNamespace allow */ + allow?: (string[]|null); - /** Artifact description */ - description?: (string|null); + /** ExamplesRestrictionsNamespace deny */ + deny?: (string[]|null); } - /** Represents an Artifact. */ - class Artifact implements IArtifact { + /** Represents an ExamplesRestrictionsNamespace. */ + class ExamplesRestrictionsNamespace implements IExamplesRestrictionsNamespace { /** - * Constructs a new Artifact. + * Constructs a new ExamplesRestrictionsNamespace. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IArtifact); - - /** Artifact name. */ - public name: string; - - /** Artifact displayName. */ - public displayName: string; - - /** Artifact uri. */ - public uri: string; - - /** Artifact etag. */ - public etag: string; - - /** Artifact labels. */ - public labels: { [k: string]: string }; - - /** Artifact createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Artifact updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Artifact state. */ - public state: (google.cloud.aiplatform.v1beta1.Artifact.State|keyof typeof google.cloud.aiplatform.v1beta1.Artifact.State); - - /** Artifact schemaTitle. */ - public schemaTitle: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace); - /** Artifact schemaVersion. */ - public schemaVersion: string; + /** ExamplesRestrictionsNamespace namespaceName. */ + public namespaceName: string; - /** Artifact metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** ExamplesRestrictionsNamespace allow. */ + public allow: string[]; - /** Artifact description. */ - public description: string; + /** ExamplesRestrictionsNamespace deny. */ + public deny: string[]; /** - * Creates a new Artifact instance using the specified properties. + * Creates a new ExamplesRestrictionsNamespace instance using the specified properties. * @param [properties] Properties to set - * @returns Artifact instance + * @returns ExamplesRestrictionsNamespace instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IArtifact): google.cloud.aiplatform.v1beta1.Artifact; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; /** - * Encodes the specified Artifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Artifact.verify|verify} messages. - * @param message Artifact message or plain object to encode + * Encodes the specified ExamplesRestrictionsNamespace message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.verify|verify} messages. + * @param message ExamplesRestrictionsNamespace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Artifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Artifact.verify|verify} messages. - * @param message Artifact message or plain object to encode + * Encodes the specified ExamplesRestrictionsNamespace message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.verify|verify} messages. + * @param message ExamplesRestrictionsNamespace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Artifact message from the specified reader or buffer. + * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Artifact + * @returns ExamplesRestrictionsNamespace * @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.aiplatform.v1beta1.Artifact; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; /** - * Decodes an Artifact message from the specified reader or buffer, length delimited. + * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Artifact + * @returns ExamplesRestrictionsNamespace * @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.aiplatform.v1beta1.Artifact; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; /** - * Verifies an Artifact message. + * Verifies an ExamplesRestrictionsNamespace 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 an Artifact message from a plain object. Also converts values to their respective internal types. + * Creates an ExamplesRestrictionsNamespace message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Artifact + * @returns ExamplesRestrictionsNamespace */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Artifact; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; /** - * Creates a plain object from an Artifact message. Also converts values to other types if specified. - * @param message Artifact + * Creates a plain object from an ExamplesRestrictionsNamespace message. Also converts values to other types if specified. + * @param message ExamplesRestrictionsNamespace * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Artifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Artifact to JSON. + * Converts this ExamplesRestrictionsNamespace to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Artifact + * Gets the default type url for ExamplesRestrictionsNamespace * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Artifact { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - LIVE = 2 - } - } - - /** Properties of a BatchPredictionJob. */ - interface IBatchPredictionJob { - - /** BatchPredictionJob name */ - name?: (string|null); - - /** BatchPredictionJob displayName */ - displayName?: (string|null); - - /** BatchPredictionJob model */ - model?: (string|null); - - /** BatchPredictionJob modelVersionId */ - modelVersionId?: (string|null); - - /** BatchPredictionJob unmanagedContainerModel */ - unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); - - /** BatchPredictionJob inputConfig */ - inputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig|null); - - /** BatchPredictionJob instanceConfig */ - instanceConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig|null); - - /** BatchPredictionJob modelParameters */ - modelParameters?: (google.protobuf.IValue|null); - - /** BatchPredictionJob outputConfig */ - outputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig|null); - - /** BatchPredictionJob dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); - - /** BatchPredictionJob serviceAccount */ - serviceAccount?: (string|null); - - /** BatchPredictionJob manualBatchTuningParameters */ - manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); - - /** BatchPredictionJob generateExplanation */ - generateExplanation?: (boolean|null); - - /** BatchPredictionJob explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** BatchPredictionJob outputInfo */ - outputInfo?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo|null); - - /** BatchPredictionJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** BatchPredictionJob error */ - error?: (google.rpc.IStatus|null); - - /** BatchPredictionJob partialFailures */ - partialFailures?: (google.rpc.IStatus[]|null); - - /** BatchPredictionJob resourcesConsumed */ - resourcesConsumed?: (google.cloud.aiplatform.v1beta1.IResourcesConsumed|null); - - /** BatchPredictionJob completionStats */ - completionStats?: (google.cloud.aiplatform.v1beta1.ICompletionStats|null); - - /** BatchPredictionJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob labels */ - labels?: ({ [k: string]: string }|null); + /** Properties of an ExplanationMetadata. */ + interface IExplanationMetadata { - /** BatchPredictionJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ExplanationMetadata inputs */ + inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata }|null); - /** BatchPredictionJob modelMonitoringConfig */ - modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); + /** ExplanationMetadata outputs */ + outputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata }|null); - /** BatchPredictionJob modelMonitoringStatsAnomalies */ - modelMonitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + /** ExplanationMetadata featureAttributionsSchemaUri */ + featureAttributionsSchemaUri?: (string|null); - /** BatchPredictionJob modelMonitoringStatus */ - modelMonitoringStatus?: (google.rpc.IStatus|null); + /** ExplanationMetadata latentSpaceSource */ + latentSpaceSource?: (string|null); } - /** Represents a BatchPredictionJob. */ - class BatchPredictionJob implements IBatchPredictionJob { + /** Represents an ExplanationMetadata. */ + class ExplanationMetadata implements IExplanationMetadata { /** - * Constructs a new BatchPredictionJob. + * Constructs a new ExplanationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchPredictionJob); - - /** BatchPredictionJob name. */ - public name: string; - - /** BatchPredictionJob displayName. */ - public displayName: string; - - /** BatchPredictionJob model. */ - public model: string; - - /** BatchPredictionJob modelVersionId. */ - public modelVersionId: string; - - /** BatchPredictionJob unmanagedContainerModel. */ - public unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); - - /** BatchPredictionJob inputConfig. */ - public inputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig|null); - - /** BatchPredictionJob instanceConfig. */ - public instanceConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig|null); - - /** BatchPredictionJob modelParameters. */ - public modelParameters?: (google.protobuf.IValue|null); - - /** BatchPredictionJob outputConfig. */ - public outputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig|null); - - /** BatchPredictionJob dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); - - /** BatchPredictionJob serviceAccount. */ - public serviceAccount: string; - - /** BatchPredictionJob manualBatchTuningParameters. */ - public manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); - - /** BatchPredictionJob generateExplanation. */ - public generateExplanation: boolean; - - /** BatchPredictionJob explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** BatchPredictionJob outputInfo. */ - public outputInfo?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo|null); - - /** BatchPredictionJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** BatchPredictionJob error. */ - public error?: (google.rpc.IStatus|null); - - /** BatchPredictionJob partialFailures. */ - public partialFailures: google.rpc.IStatus[]; - - /** BatchPredictionJob resourcesConsumed. */ - public resourcesConsumed?: (google.cloud.aiplatform.v1beta1.IResourcesConsumed|null); - - /** BatchPredictionJob completionStats. */ - public completionStats?: (google.cloud.aiplatform.v1beta1.ICompletionStats|null); - - /** BatchPredictionJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob labels. */ - public labels: { [k: string]: string }; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadata); - /** BatchPredictionJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ExplanationMetadata inputs. */ + public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata }; - /** BatchPredictionJob modelMonitoringConfig. */ - public modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); + /** ExplanationMetadata outputs. */ + public outputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata }; - /** BatchPredictionJob modelMonitoringStatsAnomalies. */ - public modelMonitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + /** ExplanationMetadata featureAttributionsSchemaUri. */ + public featureAttributionsSchemaUri: string; - /** BatchPredictionJob modelMonitoringStatus. */ - public modelMonitoringStatus?: (google.rpc.IStatus|null); + /** ExplanationMetadata latentSpaceSource. */ + public latentSpaceSource: string; /** - * Creates a new BatchPredictionJob instance using the specified properties. + * Creates a new ExplanationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchPredictionJob instance + * @returns ExplanationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchPredictionJob): google.cloud.aiplatform.v1beta1.BatchPredictionJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata; /** - * Encodes the specified BatchPredictionJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify|verify} messages. - * @param message BatchPredictionJob message or plain object to encode + * Encodes the specified ExplanationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.verify|verify} messages. + * @param message ExplanationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchPredictionJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchPredictionJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify|verify} messages. - * @param message BatchPredictionJob message or plain object to encode + * Encodes the specified ExplanationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.verify|verify} messages. + * @param message ExplanationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchPredictionJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchPredictionJob message from the specified reader or buffer. + * Decodes an ExplanationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchPredictionJob + * @returns ExplanationMetadata * @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.aiplatform.v1beta1.BatchPredictionJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationMetadata; /** - * Decodes a BatchPredictionJob message from the specified reader or buffer, length delimited. + * Decodes an ExplanationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchPredictionJob + * @returns ExplanationMetadata * @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.aiplatform.v1beta1.BatchPredictionJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationMetadata; /** - * Verifies a BatchPredictionJob message. + * Verifies an ExplanationMetadata 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 BatchPredictionJob message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchPredictionJob + * @returns ExplanationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata; /** - * Creates a plain object from a BatchPredictionJob message. Also converts values to other types if specified. - * @param message BatchPredictionJob + * Creates a plain object from an ExplanationMetadata message. Also converts values to other types if specified. + * @param message ExplanationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchPredictionJob to JSON. + * Converts this ExplanationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchPredictionJob + * Gets the default type url for ExplanationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace BatchPredictionJob { + namespace ExplanationMetadata { - /** Properties of an InputConfig. */ - interface IInputConfig { + /** Properties of an InputMetadata. */ + interface IInputMetadata { - /** InputConfig gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** InputMetadata inputBaselines */ + inputBaselines?: (google.protobuf.IValue[]|null); - /** InputConfig bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** InputMetadata inputTensorName */ + inputTensorName?: (string|null); - /** InputConfig instancesFormat */ - instancesFormat?: (string|null); + /** InputMetadata encoding */ + encoding?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|null); + + /** InputMetadata modality */ + modality?: (string|null); + + /** InputMetadata featureValueDomain */ + featureValueDomain?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain|null); + + /** InputMetadata indicesTensorName */ + indicesTensorName?: (string|null); + + /** InputMetadata denseShapeTensorName */ + denseShapeTensorName?: (string|null); + + /** InputMetadata indexFeatureMapping */ + indexFeatureMapping?: (string[]|null); + + /** InputMetadata encodedTensorName */ + encodedTensorName?: (string|null); + + /** InputMetadata encodedBaselines */ + encodedBaselines?: (google.protobuf.IValue[]|null); + + /** InputMetadata visualization */ + visualization?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization|null); + + /** InputMetadata groupName */ + groupName?: (string|null); } - /** Represents an InputConfig. */ - class InputConfig implements IInputConfig { + /** Represents an InputMetadata. */ + class InputMetadata implements IInputMetadata { + + /** + * Constructs a new InputMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata); + + /** InputMetadata inputBaselines. */ + public inputBaselines: google.protobuf.IValue[]; + + /** InputMetadata inputTensorName. */ + public inputTensorName: string; + + /** InputMetadata encoding. */ + public encoding: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding); + + /** InputMetadata modality. */ + public modality: string; + + /** InputMetadata featureValueDomain. */ + public featureValueDomain?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain|null); + + /** InputMetadata indicesTensorName. */ + public indicesTensorName: string; + + /** InputMetadata denseShapeTensorName. */ + public denseShapeTensorName: string; - /** - * Constructs a new InputConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig); + /** InputMetadata indexFeatureMapping. */ + public indexFeatureMapping: string[]; - /** InputConfig gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** InputMetadata encodedTensorName. */ + public encodedTensorName: string; - /** InputConfig bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** InputMetadata encodedBaselines. */ + public encodedBaselines: google.protobuf.IValue[]; - /** InputConfig instancesFormat. */ - public instancesFormat: string; + /** InputMetadata visualization. */ + public visualization?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization|null); - /** InputConfig source. */ - public source?: ("gcsSource"|"bigquerySource"); + /** InputMetadata groupName. */ + public groupName: string; /** - * Creates a new InputConfig instance using the specified properties. + * Creates a new InputMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns InputConfig instance + * @returns InputMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; /** - * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.verify|verify} messages. - * @param message InputConfig message or plain object to encode + * Encodes the specified InputMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.verify|verify} messages. + * @param message InputMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.verify|verify} messages. - * @param message InputConfig message or plain object to encode + * Encodes the specified InputMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.verify|verify} messages. + * @param message InputMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InputConfig message from the specified reader or buffer. + * Decodes an InputMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InputConfig + * @returns InputMetadata * @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.aiplatform.v1beta1.BatchPredictionJob.InputConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; /** - * Decodes an InputConfig message from the specified reader or buffer, length delimited. + * Decodes an InputMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InputConfig + * @returns InputMetadata * @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.aiplatform.v1beta1.BatchPredictionJob.InputConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; /** - * Verifies an InputConfig message. + * Verifies an InputMetadata 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 an InputConfig message from a plain object. Also converts values to their respective internal types. + * Creates an InputMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InputConfig + * @returns InputMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; /** - * Creates a plain object from an InputConfig message. Also converts values to other types if specified. - * @param message InputConfig + * Creates a plain object from an InputMetadata message. Also converts values to other types if specified. + * @param message InputMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InputConfig to JSON. + * Converts this InputMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InputConfig + * Gets the default type url for InputMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InstanceConfig. */ - interface IInstanceConfig { + namespace InputMetadata { - /** InstanceConfig instanceType */ - instanceType?: (string|null); + /** Properties of a FeatureValueDomain. */ + interface IFeatureValueDomain { - /** InstanceConfig keyField */ - keyField?: (string|null); + /** FeatureValueDomain minValue */ + minValue?: (number|null); - /** InstanceConfig includedFields */ - includedFields?: (string[]|null); + /** FeatureValueDomain maxValue */ + maxValue?: (number|null); - /** InstanceConfig excludedFields */ - excludedFields?: (string[]|null); - } + /** FeatureValueDomain originalMean */ + originalMean?: (number|null); - /** Represents an InstanceConfig. */ - class InstanceConfig implements IInstanceConfig { + /** FeatureValueDomain originalStddev */ + originalStddev?: (number|null); + } - /** - * Constructs a new InstanceConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig); + /** Represents a FeatureValueDomain. */ + class FeatureValueDomain implements IFeatureValueDomain { - /** InstanceConfig instanceType. */ - public instanceType: string; + /** + * Constructs a new FeatureValueDomain. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain); - /** InstanceConfig keyField. */ - public keyField: string; + /** FeatureValueDomain minValue. */ + public minValue: number; - /** InstanceConfig includedFields. */ - public includedFields: string[]; + /** FeatureValueDomain maxValue. */ + public maxValue: number; - /** InstanceConfig excludedFields. */ - public excludedFields: string[]; + /** FeatureValueDomain originalMean. */ + public originalMean: number; - /** - * Creates a new InstanceConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns InstanceConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + /** FeatureValueDomain originalStddev. */ + public originalStddev: number; - /** - * Encodes the specified InstanceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.verify|verify} messages. - * @param message InstanceConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FeatureValueDomain instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureValueDomain instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; - /** - * Encodes the specified InstanceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.verify|verify} messages. - * @param message InstanceConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FeatureValueDomain message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain.verify|verify} messages. + * @param message FeatureValueDomain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an InstanceConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InstanceConfig - * @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.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + /** + * Encodes the specified FeatureValueDomain message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain.verify|verify} messages. + * @param message FeatureValueDomain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an InstanceConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InstanceConfig - * @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.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + /** + * Decodes a FeatureValueDomain message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureValueDomain + * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; - /** - * Verifies an InstanceConfig 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); + /** + * Decodes a FeatureValueDomain message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureValueDomain + * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; - /** - * Creates an InstanceConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InstanceConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + /** + * Verifies a FeatureValueDomain 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 plain object from an InstanceConfig message. Also converts values to other types if specified. - * @param message InstanceConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a FeatureValueDomain message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureValueDomain + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; - /** - * Converts this InstanceConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a FeatureValueDomain message. Also converts values to other types if specified. + * @param message FeatureValueDomain + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for InstanceConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this FeatureValueDomain to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of an OutputConfig. */ - interface IOutputConfig { + /** + * Gets the default type url for FeatureValueDomain + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** OutputConfig gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Properties of a Visualization. */ + interface IVisualization { - /** OutputConfig bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Visualization type */ + type?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|null); - /** OutputConfig predictionsFormat */ - predictionsFormat?: (string|null); - } + /** Visualization polarity */ + polarity?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|null); - /** Represents an OutputConfig. */ - class OutputConfig implements IOutputConfig { + /** Visualization colorMap */ + colorMap?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|null); - /** - * Constructs a new OutputConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig); + /** Visualization clipPercentUpperbound */ + clipPercentUpperbound?: (number|null); - /** OutputConfig gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Visualization clipPercentLowerbound */ + clipPercentLowerbound?: (number|null); - /** OutputConfig bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Visualization overlayType */ + overlayType?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|null); + } - /** OutputConfig predictionsFormat. */ - public predictionsFormat: string; + /** Represents a Visualization. */ + class Visualization implements IVisualization { - /** OutputConfig destination. */ - public destination?: ("gcsDestination"|"bigqueryDestination"); + /** + * Constructs a new Visualization. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization); - /** - * Creates a new OutputConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns OutputConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + /** Visualization type. */ + public type: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type); - /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Visualization polarity. */ + public polarity: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity); - /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Visualization colorMap. */ + public colorMap: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap); - /** - * Decodes an OutputConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OutputConfig - * @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.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + /** Visualization clipPercentUpperbound. */ + public clipPercentUpperbound: number; - /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OutputConfig - * @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.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + /** Visualization clipPercentLowerbound. */ + public clipPercentLowerbound: number; - /** - * Verifies an OutputConfig 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); + /** Visualization overlayType. */ + public overlayType: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType); - /** - * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OutputConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + /** + * Creates a new Visualization instance using the specified properties. + * @param [properties] Properties to set + * @returns Visualization instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; - /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @param message OutputConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Visualization message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.verify|verify} messages. + * @param message Visualization message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this OutputConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Visualization message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.verify|verify} messages. + * @param message Visualization message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for OutputConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Decodes a Visualization message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Visualization + * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + + /** + * Decodes a Visualization message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Visualization + * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + + /** + * Verifies a Visualization 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 Visualization message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Visualization + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + + /** + * Creates a plain object from a Visualization message. Also converts values to other types if specified. + * @param message Visualization + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Visualization to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Visualization + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Visualization { + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + PIXELS = 1, + OUTLINES = 2 + } + + /** Polarity enum. */ + enum Polarity { + POLARITY_UNSPECIFIED = 0, + POSITIVE = 1, + NEGATIVE = 2, + BOTH = 3 + } + + /** ColorMap enum. */ + enum ColorMap { + COLOR_MAP_UNSPECIFIED = 0, + PINK_GREEN = 1, + VIRIDIS = 2, + RED = 3, + GREEN = 4, + RED_GREEN = 6, + PINK_WHITE_GREEN = 5 + } + + /** OverlayType enum. */ + enum OverlayType { + OVERLAY_TYPE_UNSPECIFIED = 0, + NONE = 1, + ORIGINAL = 2, + GRAYSCALE = 3, + MASK_BLACK = 4 + } + } + + /** Encoding enum. */ + enum Encoding { + ENCODING_UNSPECIFIED = 0, + IDENTITY = 1, + BAG_OF_FEATURES = 2, + BAG_OF_FEATURES_SPARSE = 3, + INDICATOR = 4, + COMBINED_EMBEDDING = 5, + CONCAT_EMBEDDING = 6 + } } - /** Properties of an OutputInfo. */ - interface IOutputInfo { + /** Properties of an OutputMetadata. */ + interface IOutputMetadata { - /** OutputInfo gcsOutputDirectory */ - gcsOutputDirectory?: (string|null); + /** OutputMetadata indexDisplayNameMapping */ + indexDisplayNameMapping?: (google.protobuf.IValue|null); - /** OutputInfo bigqueryOutputDataset */ - bigqueryOutputDataset?: (string|null); + /** OutputMetadata displayNameMappingKey */ + displayNameMappingKey?: (string|null); - /** OutputInfo bigqueryOutputTable */ - bigqueryOutputTable?: (string|null); + /** OutputMetadata outputTensorName */ + outputTensorName?: (string|null); } - /** Represents an OutputInfo. */ - class OutputInfo implements IOutputInfo { + /** Represents an OutputMetadata. */ + class OutputMetadata implements IOutputMetadata { /** - * Constructs a new OutputInfo. + * Constructs a new OutputMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo); + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata); - /** OutputInfo gcsOutputDirectory. */ - public gcsOutputDirectory?: (string|null); + /** OutputMetadata indexDisplayNameMapping. */ + public indexDisplayNameMapping?: (google.protobuf.IValue|null); - /** OutputInfo bigqueryOutputDataset. */ - public bigqueryOutputDataset?: (string|null); + /** OutputMetadata displayNameMappingKey. */ + public displayNameMappingKey?: (string|null); - /** OutputInfo bigqueryOutputTable. */ - public bigqueryOutputTable: string; + /** OutputMetadata outputTensorName. */ + public outputTensorName: string; - /** OutputInfo outputLocation. */ - public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset"); + /** OutputMetadata displayNameMapping. */ + public displayNameMapping?: ("indexDisplayNameMapping"|"displayNameMappingKey"); /** - * Creates a new OutputInfo instance using the specified properties. + * Creates a new OutputMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns OutputInfo instance + * @returns OutputMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode + * Encodes the specified OutputMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata.verify|verify} messages. + * @param message OutputMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode + * Encodes the specified OutputMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata.verify|verify} messages. + * @param message OutputMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputInfo message from the specified reader or buffer. + * Decodes an OutputMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputInfo + * @returns OutputMetadata * @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.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * Decodes an OutputMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputInfo + * @returns OutputMetadata * @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.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; /** - * Verifies an OutputInfo message. + * Verifies an OutputMetadata 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 an OutputInfo message from a plain object. Also converts values to their respective internal types. + * Creates an OutputMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputInfo + * @returns OutputMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. - * @param message OutputInfo + * Creates a plain object from an OutputMetadata message. Also converts values to other types if specified. + * @param message OutputMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputInfo to JSON. + * Converts this OutputMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputInfo + * Gets the default type url for OutputMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -71553,3081 +77588,2749 @@ export namespace google { } } - /** Properties of a CompletionStats. */ - interface ICompletionStats { - - /** CompletionStats successfulCount */ - successfulCount?: (number|Long|string|null); - - /** CompletionStats failedCount */ - failedCount?: (number|Long|string|null); - - /** CompletionStats incompleteCount */ - incompleteCount?: (number|Long|string|null); + /** Properties of an AvroSource. */ + interface IAvroSource { - /** CompletionStats successfulForecastPointCount */ - successfulForecastPointCount?: (number|Long|string|null); + /** AvroSource gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); } - /** Represents a CompletionStats. */ - class CompletionStats implements ICompletionStats { + /** Represents an AvroSource. */ + class AvroSource implements IAvroSource { /** - * Constructs a new CompletionStats. + * Constructs a new AvroSource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICompletionStats); - - /** CompletionStats successfulCount. */ - public successfulCount: (number|Long|string); - - /** CompletionStats failedCount. */ - public failedCount: (number|Long|string); - - /** CompletionStats incompleteCount. */ - public incompleteCount: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAvroSource); - /** CompletionStats successfulForecastPointCount. */ - public successfulForecastPointCount: (number|Long|string); + /** AvroSource gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); /** - * Creates a new CompletionStats instance using the specified properties. + * Creates a new AvroSource instance using the specified properties. * @param [properties] Properties to set - * @returns CompletionStats instance + * @returns AvroSource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICompletionStats): google.cloud.aiplatform.v1beta1.CompletionStats; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAvroSource): google.cloud.aiplatform.v1beta1.AvroSource; /** - * Encodes the specified CompletionStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CompletionStats.verify|verify} messages. - * @param message CompletionStats message or plain object to encode + * Encodes the specified AvroSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AvroSource.verify|verify} messages. + * @param message AvroSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICompletionStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAvroSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompletionStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CompletionStats.verify|verify} messages. - * @param message CompletionStats message or plain object to encode + * Encodes the specified AvroSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AvroSource.verify|verify} messages. + * @param message AvroSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICompletionStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAvroSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompletionStats message from the specified reader or buffer. + * Decodes an AvroSource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CompletionStats + * @returns AvroSource * @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.aiplatform.v1beta1.CompletionStats; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AvroSource; /** - * Decodes a CompletionStats message from the specified reader or buffer, length delimited. + * Decodes an AvroSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompletionStats + * @returns AvroSource * @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.aiplatform.v1beta1.CompletionStats; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AvroSource; /** - * Verifies a CompletionStats message. + * Verifies an AvroSource 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 CompletionStats message from a plain object. Also converts values to their respective internal types. + * Creates an AvroSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompletionStats + * @returns AvroSource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CompletionStats; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AvroSource; /** - * Creates a plain object from a CompletionStats message. Also converts values to other types if specified. - * @param message CompletionStats + * Creates a plain object from an AvroSource message. Also converts values to other types if specified. + * @param message AvroSource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CompletionStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AvroSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompletionStats to JSON. + * Converts this AvroSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompletionStats + * Gets the default type url for AvroSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EncryptionSpec. */ - interface IEncryptionSpec { + /** Properties of a CsvSource. */ + interface ICsvSource { - /** EncryptionSpec kmsKeyName */ - kmsKeyName?: (string|null); + /** CsvSource gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); } - /** Represents an EncryptionSpec. */ - class EncryptionSpec implements IEncryptionSpec { + /** Represents a CsvSource. */ + class CsvSource implements ICsvSource { /** - * Constructs a new EncryptionSpec. + * Constructs a new CsvSource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEncryptionSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICsvSource); - /** EncryptionSpec kmsKeyName. */ - public kmsKeyName: string; + /** CsvSource gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); /** - * Creates a new EncryptionSpec instance using the specified properties. + * Creates a new CsvSource instance using the specified properties. * @param [properties] Properties to set - * @returns EncryptionSpec instance + * @returns CsvSource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEncryptionSpec): google.cloud.aiplatform.v1beta1.EncryptionSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICsvSource): google.cloud.aiplatform.v1beta1.CsvSource; /** - * Encodes the specified EncryptionSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EncryptionSpec.verify|verify} messages. - * @param message EncryptionSpec message or plain object to encode + * Encodes the specified CsvSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvSource.verify|verify} messages. + * @param message CsvSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEncryptionSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICsvSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EncryptionSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EncryptionSpec.verify|verify} messages. - * @param message EncryptionSpec message or plain object to encode + * Encodes the specified CsvSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvSource.verify|verify} messages. + * @param message CsvSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEncryptionSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICsvSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EncryptionSpec message from the specified reader or buffer. + * Decodes a CsvSource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EncryptionSpec + * @returns CsvSource * @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.aiplatform.v1beta1.EncryptionSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CsvSource; /** - * Decodes an EncryptionSpec message from the specified reader or buffer, length delimited. + * Decodes a CsvSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EncryptionSpec + * @returns CsvSource * @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.aiplatform.v1beta1.EncryptionSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CsvSource; /** - * Verifies an EncryptionSpec message. + * Verifies a CsvSource 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 an EncryptionSpec message from a plain object. Also converts values to their respective internal types. + * Creates a CsvSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EncryptionSpec + * @returns CsvSource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EncryptionSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CsvSource; /** - * Creates a plain object from an EncryptionSpec message. Also converts values to other types if specified. - * @param message EncryptionSpec + * Creates a plain object from a CsvSource message. Also converts values to other types if specified. + * @param message CsvSource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.EncryptionSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CsvSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EncryptionSpec to JSON. + * Converts this CsvSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EncryptionSpec + * Gets the default type url for CsvSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Explanation. */ - interface IExplanation { - - /** Explanation attributions */ - attributions?: (google.cloud.aiplatform.v1beta1.IAttribution[]|null); + /** Properties of a GcsSource. */ + interface IGcsSource { - /** Explanation neighbors */ - neighbors?: (google.cloud.aiplatform.v1beta1.INeighbor[]|null); + /** GcsSource uris */ + uris?: (string[]|null); } - /** Represents an Explanation. */ - class Explanation implements IExplanation { + /** Represents a GcsSource. */ + class GcsSource implements IGcsSource { /** - * Constructs a new Explanation. + * Constructs a new GcsSource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanation); - - /** Explanation attributions. */ - public attributions: google.cloud.aiplatform.v1beta1.IAttribution[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGcsSource); - /** Explanation neighbors. */ - public neighbors: google.cloud.aiplatform.v1beta1.INeighbor[]; + /** GcsSource uris. */ + public uris: string[]; /** - * Creates a new Explanation instance using the specified properties. + * Creates a new GcsSource instance using the specified properties. * @param [properties] Properties to set - * @returns Explanation instance + * @returns GcsSource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanation): google.cloud.aiplatform.v1beta1.Explanation; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGcsSource): google.cloud.aiplatform.v1beta1.GcsSource; /** - * Encodes the specified Explanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Explanation.verify|verify} messages. - * @param message Explanation message or plain object to encode + * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsSource.verify|verify} messages. + * @param message GcsSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Explanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Explanation.verify|verify} messages. - * @param message Explanation message or plain object to encode + * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsSource.verify|verify} messages. + * @param message GcsSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Explanation message from the specified reader or buffer. + * Decodes a GcsSource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Explanation + * @returns GcsSource * @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.aiplatform.v1beta1.Explanation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GcsSource; /** - * Decodes an Explanation message from the specified reader or buffer, length delimited. + * Decodes a GcsSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Explanation + * @returns GcsSource * @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.aiplatform.v1beta1.Explanation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GcsSource; /** - * Verifies an Explanation message. + * Verifies a GcsSource 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 an Explanation message from a plain object. Also converts values to their respective internal types. + * Creates a GcsSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Explanation + * @returns GcsSource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Explanation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GcsSource; /** - * Creates a plain object from an Explanation message. Also converts values to other types if specified. - * @param message Explanation + * Creates a plain object from a GcsSource message. Also converts values to other types if specified. + * @param message GcsSource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Explanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Explanation to JSON. + * Converts this GcsSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Explanation + * Gets the default type url for GcsSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelExplanation. */ - interface IModelExplanation { + /** Properties of a GcsDestination. */ + interface IGcsDestination { - /** ModelExplanation meanAttributions */ - meanAttributions?: (google.cloud.aiplatform.v1beta1.IAttribution[]|null); + /** GcsDestination outputUriPrefix */ + outputUriPrefix?: (string|null); } - /** Represents a ModelExplanation. */ - class ModelExplanation implements IModelExplanation { + /** Represents a GcsDestination. */ + class GcsDestination implements IGcsDestination { /** - * Constructs a new ModelExplanation. + * Constructs a new GcsDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelExplanation); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGcsDestination); - /** ModelExplanation meanAttributions. */ - public meanAttributions: google.cloud.aiplatform.v1beta1.IAttribution[]; + /** GcsDestination outputUriPrefix. */ + public outputUriPrefix: string; /** - * Creates a new ModelExplanation instance using the specified properties. + * Creates a new GcsDestination instance using the specified properties. * @param [properties] Properties to set - * @returns ModelExplanation instance + * @returns GcsDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelExplanation): google.cloud.aiplatform.v1beta1.ModelExplanation; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGcsDestination): google.cloud.aiplatform.v1beta1.GcsDestination; /** - * Encodes the specified ModelExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelExplanation.verify|verify} messages. - * @param message ModelExplanation message or plain object to encode + * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsDestination.verify|verify} messages. + * @param message GcsDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelExplanation.verify|verify} messages. - * @param message ModelExplanation message or plain object to encode + * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsDestination.verify|verify} messages. + * @param message GcsDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelExplanation message from the specified reader or buffer. + * Decodes a GcsDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelExplanation + * @returns GcsDestination * @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.aiplatform.v1beta1.ModelExplanation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GcsDestination; /** - * Decodes a ModelExplanation message from the specified reader or buffer, length delimited. + * Decodes a GcsDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelExplanation + * @returns GcsDestination * @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.aiplatform.v1beta1.ModelExplanation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GcsDestination; /** - * Verifies a ModelExplanation message. + * Verifies a GcsDestination 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 ModelExplanation message from a plain object. Also converts values to their respective internal types. + * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelExplanation + * @returns GcsDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelExplanation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GcsDestination; /** - * Creates a plain object from a ModelExplanation message. Also converts values to other types if specified. - * @param message ModelExplanation + * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. + * @param message GcsDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelExplanation to JSON. + * Converts this GcsDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelExplanation + * Gets the default type url for GcsDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Attribution. */ - interface IAttribution { - - /** Attribution baselineOutputValue */ - baselineOutputValue?: (number|null); - - /** Attribution instanceOutputValue */ - instanceOutputValue?: (number|null); - - /** Attribution featureAttributions */ - featureAttributions?: (google.protobuf.IValue|null); - - /** Attribution outputIndex */ - outputIndex?: (number[]|null); - - /** Attribution outputDisplayName */ - outputDisplayName?: (string|null); - - /** Attribution approximationError */ - approximationError?: (number|null); + /** Properties of a BigQuerySource. */ + interface IBigQuerySource { - /** Attribution outputName */ - outputName?: (string|null); + /** BigQuerySource inputUri */ + inputUri?: (string|null); } - /** Represents an Attribution. */ - class Attribution implements IAttribution { + /** Represents a BigQuerySource. */ + class BigQuerySource implements IBigQuerySource { /** - * Constructs a new Attribution. + * Constructs a new BigQuerySource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAttribution); - - /** Attribution baselineOutputValue. */ - public baselineOutputValue: number; - - /** Attribution instanceOutputValue. */ - public instanceOutputValue: number; - - /** Attribution featureAttributions. */ - public featureAttributions?: (google.protobuf.IValue|null); - - /** Attribution outputIndex. */ - public outputIndex: number[]; - - /** Attribution outputDisplayName. */ - public outputDisplayName: string; - - /** Attribution approximationError. */ - public approximationError: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBigQuerySource); - /** Attribution outputName. */ - public outputName: string; + /** BigQuerySource inputUri. */ + public inputUri: string; /** - * Creates a new Attribution instance using the specified properties. + * Creates a new BigQuerySource instance using the specified properties. * @param [properties] Properties to set - * @returns Attribution instance + * @returns BigQuerySource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAttribution): google.cloud.aiplatform.v1beta1.Attribution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBigQuerySource): google.cloud.aiplatform.v1beta1.BigQuerySource; /** - * Encodes the specified Attribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Attribution.verify|verify} messages. - * @param message Attribution message or plain object to encode + * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQuerySource.verify|verify} messages. + * @param message BigQuerySource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Attribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Attribution.verify|verify} messages. - * @param message Attribution message or plain object to encode + * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQuerySource.verify|verify} messages. + * @param message BigQuerySource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Attribution message from the specified reader or buffer. + * Decodes a BigQuerySource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Attribution + * @returns BigQuerySource * @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.aiplatform.v1beta1.Attribution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BigQuerySource; /** - * Decodes an Attribution message from the specified reader or buffer, length delimited. + * Decodes a BigQuerySource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Attribution + * @returns BigQuerySource * @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.aiplatform.v1beta1.Attribution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BigQuerySource; /** - * Verifies an Attribution message. + * Verifies a BigQuerySource 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 an Attribution message from a plain object. Also converts values to their respective internal types. + * Creates a BigQuerySource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Attribution + * @returns BigQuerySource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Attribution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BigQuerySource; /** - * Creates a plain object from an Attribution message. Also converts values to other types if specified. - * @param message Attribution + * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified. + * @param message BigQuerySource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Attribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BigQuerySource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Attribution to JSON. + * Converts this BigQuerySource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Attribution + * Gets the default type url for BigQuerySource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Neighbor. */ - interface INeighbor { - - /** Neighbor neighborId */ - neighborId?: (string|null); + /** Properties of a BigQueryDestination. */ + interface IBigQueryDestination { - /** Neighbor neighborDistance */ - neighborDistance?: (number|null); + /** BigQueryDestination outputUri */ + outputUri?: (string|null); } - /** Represents a Neighbor. */ - class Neighbor implements INeighbor { + /** Represents a BigQueryDestination. */ + class BigQueryDestination implements IBigQueryDestination { /** - * Constructs a new Neighbor. + * Constructs a new BigQueryDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.INeighbor); - - /** Neighbor neighborId. */ - public neighborId: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBigQueryDestination); - /** Neighbor neighborDistance. */ - public neighborDistance: number; + /** BigQueryDestination outputUri. */ + public outputUri: string; /** - * Creates a new Neighbor instance using the specified properties. + * Creates a new BigQueryDestination instance using the specified properties. * @param [properties] Properties to set - * @returns Neighbor instance + * @returns BigQueryDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.INeighbor): google.cloud.aiplatform.v1beta1.Neighbor; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBigQueryDestination): google.cloud.aiplatform.v1beta1.BigQueryDestination; /** - * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Neighbor.verify|verify} messages. - * @param message Neighbor message or plain object to encode + * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQueryDestination.verify|verify} messages. + * @param message BigQueryDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Neighbor.verify|verify} messages. - * @param message Neighbor message or plain object to encode + * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQueryDestination.verify|verify} messages. + * @param message BigQueryDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Neighbor message from the specified reader or buffer. + * Decodes a BigQueryDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Neighbor + * @returns BigQueryDestination * @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.aiplatform.v1beta1.Neighbor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BigQueryDestination; /** - * Decodes a Neighbor message from the specified reader or buffer, length delimited. + * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Neighbor + * @returns BigQueryDestination * @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.aiplatform.v1beta1.Neighbor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BigQueryDestination; /** - * Verifies a Neighbor message. + * Verifies a BigQueryDestination 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 Neighbor message from a plain object. Also converts values to their respective internal types. + * Creates a BigQueryDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Neighbor + * @returns BigQueryDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Neighbor; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BigQueryDestination; /** - * Creates a plain object from a Neighbor message. Also converts values to other types if specified. - * @param message Neighbor + * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. + * @param message BigQueryDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Neighbor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BigQueryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Neighbor to JSON. + * Converts this BigQueryDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Neighbor + * Gets the default type url for BigQueryDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplanationSpec. */ - interface IExplanationSpec { - - /** ExplanationSpec parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); + /** Properties of a CsvDestination. */ + interface ICsvDestination { - /** ExplanationSpec metadata */ - metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadata|null); + /** CsvDestination gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); } - /** Represents an ExplanationSpec. */ - class ExplanationSpec implements IExplanationSpec { + /** Represents a CsvDestination. */ + class CsvDestination implements ICsvDestination { /** - * Constructs a new ExplanationSpec. + * Constructs a new CsvDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpec); - - /** ExplanationSpec parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICsvDestination); - /** ExplanationSpec metadata. */ - public metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadata|null); + /** CsvDestination gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); /** - * Creates a new ExplanationSpec instance using the specified properties. + * Creates a new CsvDestination instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationSpec instance + * @returns CsvDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpec): google.cloud.aiplatform.v1beta1.ExplanationSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICsvDestination): google.cloud.aiplatform.v1beta1.CsvDestination; /** - * Encodes the specified ExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpec.verify|verify} messages. - * @param message ExplanationSpec message or plain object to encode + * Encodes the specified CsvDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvDestination.verify|verify} messages. + * @param message CsvDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICsvDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpec.verify|verify} messages. - * @param message ExplanationSpec message or plain object to encode + * Encodes the specified CsvDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvDestination.verify|verify} messages. + * @param message CsvDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICsvDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationSpec message from the specified reader or buffer. + * Decodes a CsvDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationSpec + * @returns CsvDestination * @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.aiplatform.v1beta1.ExplanationSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CsvDestination; /** - * Decodes an ExplanationSpec message from the specified reader or buffer, length delimited. + * Decodes a CsvDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationSpec + * @returns CsvDestination * @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.aiplatform.v1beta1.ExplanationSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CsvDestination; /** - * Verifies an ExplanationSpec message. + * Verifies a CsvDestination 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 an ExplanationSpec message from a plain object. Also converts values to their respective internal types. + * Creates a CsvDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationSpec + * @returns CsvDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CsvDestination; /** - * Creates a plain object from an ExplanationSpec message. Also converts values to other types if specified. - * @param message ExplanationSpec + * Creates a plain object from a CsvDestination message. Also converts values to other types if specified. + * @param message CsvDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CsvDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationSpec to JSON. + * Converts this CsvDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationSpec + * Gets the default type url for CsvDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplanationParameters. */ - interface IExplanationParameters { - - /** ExplanationParameters sampledShapleyAttribution */ - sampledShapleyAttribution?: (google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution|null); - - /** ExplanationParameters integratedGradientsAttribution */ - integratedGradientsAttribution?: (google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution|null); - - /** ExplanationParameters xraiAttribution */ - xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); - - /** ExplanationParameters examples */ - examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); - - /** ExplanationParameters topK */ - topK?: (number|null); + /** Properties of a TFRecordDestination. */ + interface ITFRecordDestination { - /** ExplanationParameters outputIndices */ - outputIndices?: (google.protobuf.IListValue|null); + /** TFRecordDestination gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); } - /** Represents an ExplanationParameters. */ - class ExplanationParameters implements IExplanationParameters { + /** Represents a TFRecordDestination. */ + class TFRecordDestination implements ITFRecordDestination { /** - * Constructs a new ExplanationParameters. + * Constructs a new TFRecordDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationParameters); - - /** ExplanationParameters sampledShapleyAttribution. */ - public sampledShapleyAttribution?: (google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution|null); - - /** ExplanationParameters integratedGradientsAttribution. */ - public integratedGradientsAttribution?: (google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution|null); - - /** ExplanationParameters xraiAttribution. */ - public xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); - - /** ExplanationParameters examples. */ - public examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); - - /** ExplanationParameters topK. */ - public topK: number; - - /** ExplanationParameters outputIndices. */ - public outputIndices?: (google.protobuf.IListValue|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITFRecordDestination); - /** ExplanationParameters method. */ - public method?: ("sampledShapleyAttribution"|"integratedGradientsAttribution"|"xraiAttribution"|"examples"); + /** TFRecordDestination gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); /** - * Creates a new ExplanationParameters instance using the specified properties. + * Creates a new TFRecordDestination instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationParameters instance + * @returns TFRecordDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationParameters): google.cloud.aiplatform.v1beta1.ExplanationParameters; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITFRecordDestination): google.cloud.aiplatform.v1beta1.TFRecordDestination; /** - * Encodes the specified ExplanationParameters message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationParameters.verify|verify} messages. - * @param message ExplanationParameters message or plain object to encode + * Encodes the specified TFRecordDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TFRecordDestination.verify|verify} messages. + * @param message TFRecordDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITFRecordDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationParameters message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationParameters.verify|verify} messages. - * @param message ExplanationParameters message or plain object to encode + * Encodes the specified TFRecordDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TFRecordDestination.verify|verify} messages. + * @param message TFRecordDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITFRecordDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationParameters message from the specified reader or buffer. + * Decodes a TFRecordDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationParameters + * @returns TFRecordDestination * @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.aiplatform.v1beta1.ExplanationParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TFRecordDestination; /** - * Decodes an ExplanationParameters message from the specified reader or buffer, length delimited. + * Decodes a TFRecordDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationParameters + * @returns TFRecordDestination * @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.aiplatform.v1beta1.ExplanationParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TFRecordDestination; /** - * Verifies an ExplanationParameters message. + * Verifies a TFRecordDestination 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 an ExplanationParameters message from a plain object. Also converts values to their respective internal types. + * Creates a TFRecordDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationParameters + * @returns TFRecordDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TFRecordDestination; /** - * Creates a plain object from an ExplanationParameters message. Also converts values to other types if specified. - * @param message ExplanationParameters + * Creates a plain object from a TFRecordDestination message. Also converts values to other types if specified. + * @param message TFRecordDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.TFRecordDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationParameters to JSON. + * Converts this TFRecordDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationParameters + * Gets the default type url for TFRecordDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SampledShapleyAttribution. */ - interface ISampledShapleyAttribution { + /** Properties of a ContainerRegistryDestination. */ + interface IContainerRegistryDestination { - /** SampledShapleyAttribution pathCount */ - pathCount?: (number|null); + /** ContainerRegistryDestination outputUri */ + outputUri?: (string|null); } - /** Represents a SampledShapleyAttribution. */ - class SampledShapleyAttribution implements ISampledShapleyAttribution { + /** Represents a ContainerRegistryDestination. */ + class ContainerRegistryDestination implements IContainerRegistryDestination { /** - * Constructs a new SampledShapleyAttribution. + * Constructs a new ContainerRegistryDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution); + constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination); - /** SampledShapleyAttribution pathCount. */ - public pathCount: number; + /** ContainerRegistryDestination outputUri. */ + public outputUri: string; /** - * Creates a new SampledShapleyAttribution instance using the specified properties. + * Creates a new ContainerRegistryDestination instance using the specified properties. * @param [properties] Properties to set - * @returns SampledShapleyAttribution instance + * @returns ContainerRegistryDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; /** - * Encodes the specified SampledShapleyAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.verify|verify} messages. - * @param message SampledShapleyAttribution message or plain object to encode + * Encodes the specified ContainerRegistryDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify|verify} messages. + * @param message ContainerRegistryDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SampledShapleyAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.verify|verify} messages. - * @param message SampledShapleyAttribution message or plain object to encode + * Encodes the specified ContainerRegistryDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify|verify} messages. + * @param message ContainerRegistryDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SampledShapleyAttribution message from the specified reader or buffer. + * Decodes a ContainerRegistryDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SampledShapleyAttribution + * @returns ContainerRegistryDestination * @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.aiplatform.v1beta1.SampledShapleyAttribution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; /** - * Decodes a SampledShapleyAttribution message from the specified reader or buffer, length delimited. + * Decodes a ContainerRegistryDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SampledShapleyAttribution + * @returns ContainerRegistryDestination * @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.aiplatform.v1beta1.SampledShapleyAttribution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; /** - * Verifies a SampledShapleyAttribution message. + * Verifies a ContainerRegistryDestination 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 SampledShapleyAttribution message from a plain object. Also converts values to their respective internal types. + * Creates a ContainerRegistryDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SampledShapleyAttribution + * @returns ContainerRegistryDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; /** - * Creates a plain object from a SampledShapleyAttribution message. Also converts values to other types if specified. - * @param message SampledShapleyAttribution + * Creates a plain object from a ContainerRegistryDestination message. Also converts values to other types if specified. + * @param message ContainerRegistryDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SampledShapleyAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerRegistryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SampledShapleyAttribution to JSON. + * Converts this ContainerRegistryDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SampledShapleyAttribution + * Gets the default type url for ContainerRegistryDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IntegratedGradientsAttribution. */ - interface IIntegratedGradientsAttribution { + /** JobState enum. */ + enum JobState { + JOB_STATE_UNSPECIFIED = 0, + JOB_STATE_QUEUED = 1, + JOB_STATE_PENDING = 2, + JOB_STATE_RUNNING = 3, + JOB_STATE_SUCCEEDED = 4, + JOB_STATE_FAILED = 5, + JOB_STATE_CANCELLING = 6, + JOB_STATE_CANCELLED = 7, + JOB_STATE_PAUSED = 8, + JOB_STATE_EXPIRED = 9, + JOB_STATE_UPDATING = 10 + } - /** IntegratedGradientsAttribution stepCount */ - stepCount?: (number|null); + /** Properties of a MachineSpec. */ + interface IMachineSpec { - /** IntegratedGradientsAttribution smoothGradConfig */ - smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + /** MachineSpec machineType */ + machineType?: (string|null); - /** IntegratedGradientsAttribution blurBaselineConfig */ - blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); + /** MachineSpec acceleratorType */ + acceleratorType?: (google.cloud.aiplatform.v1beta1.AcceleratorType|keyof typeof google.cloud.aiplatform.v1beta1.AcceleratorType|null); + + /** MachineSpec acceleratorCount */ + acceleratorCount?: (number|null); } - /** Represents an IntegratedGradientsAttribution. */ - class IntegratedGradientsAttribution implements IIntegratedGradientsAttribution { + /** Represents a MachineSpec. */ + class MachineSpec implements IMachineSpec { /** - * Constructs a new IntegratedGradientsAttribution. + * Constructs a new MachineSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMachineSpec); - /** IntegratedGradientsAttribution stepCount. */ - public stepCount: number; + /** MachineSpec machineType. */ + public machineType: string; - /** IntegratedGradientsAttribution smoothGradConfig. */ - public smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + /** MachineSpec acceleratorType. */ + public acceleratorType: (google.cloud.aiplatform.v1beta1.AcceleratorType|keyof typeof google.cloud.aiplatform.v1beta1.AcceleratorType); - /** IntegratedGradientsAttribution blurBaselineConfig. */ - public blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); + /** MachineSpec acceleratorCount. */ + public acceleratorCount: number; /** - * Creates a new IntegratedGradientsAttribution instance using the specified properties. + * Creates a new MachineSpec instance using the specified properties. * @param [properties] Properties to set - * @returns IntegratedGradientsAttribution instance + * @returns MachineSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMachineSpec): google.cloud.aiplatform.v1beta1.MachineSpec; /** - * Encodes the specified IntegratedGradientsAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.verify|verify} messages. - * @param message IntegratedGradientsAttribution message or plain object to encode + * Encodes the specified MachineSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MachineSpec.verify|verify} messages. + * @param message MachineSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMachineSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntegratedGradientsAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.verify|verify} messages. - * @param message IntegratedGradientsAttribution message or plain object to encode + * Encodes the specified MachineSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MachineSpec.verify|verify} messages. + * @param message MachineSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMachineSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntegratedGradientsAttribution message from the specified reader or buffer. + * Decodes a MachineSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntegratedGradientsAttribution + * @returns MachineSpec * @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.aiplatform.v1beta1.IntegratedGradientsAttribution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MachineSpec; /** - * Decodes an IntegratedGradientsAttribution message from the specified reader or buffer, length delimited. + * Decodes a MachineSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntegratedGradientsAttribution + * @returns MachineSpec * @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.aiplatform.v1beta1.IntegratedGradientsAttribution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MachineSpec; /** - * Verifies an IntegratedGradientsAttribution message. + * Verifies a MachineSpec 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 an IntegratedGradientsAttribution message from a plain object. Also converts values to their respective internal types. + * Creates a MachineSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntegratedGradientsAttribution + * @returns MachineSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MachineSpec; /** - * Creates a plain object from an IntegratedGradientsAttribution message. Also converts values to other types if specified. - * @param message IntegratedGradientsAttribution + * Creates a plain object from a MachineSpec message. Also converts values to other types if specified. + * @param message MachineSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MachineSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntegratedGradientsAttribution to JSON. + * Converts this MachineSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IntegratedGradientsAttribution + * Gets the default type url for MachineSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a XraiAttribution. */ - interface IXraiAttribution { + /** Properties of a DedicatedResources. */ + interface IDedicatedResources { - /** XraiAttribution stepCount */ - stepCount?: (number|null); + /** DedicatedResources machineSpec */ + machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - /** XraiAttribution smoothGradConfig */ - smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + /** DedicatedResources minReplicaCount */ + minReplicaCount?: (number|null); - /** XraiAttribution blurBaselineConfig */ - blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); + /** DedicatedResources maxReplicaCount */ + maxReplicaCount?: (number|null); + + /** DedicatedResources autoscalingMetricSpecs */ + autoscalingMetricSpecs?: (google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]|null); } - /** Represents a XraiAttribution. */ - class XraiAttribution implements IXraiAttribution { + /** Represents a DedicatedResources. */ + class DedicatedResources implements IDedicatedResources { /** - * Constructs a new XraiAttribution. + * Constructs a new DedicatedResources. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IXraiAttribution); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDedicatedResources); - /** XraiAttribution stepCount. */ - public stepCount: number; + /** DedicatedResources machineSpec. */ + public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - /** XraiAttribution smoothGradConfig. */ - public smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + /** DedicatedResources minReplicaCount. */ + public minReplicaCount: number; - /** XraiAttribution blurBaselineConfig. */ - public blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); + /** DedicatedResources maxReplicaCount. */ + public maxReplicaCount: number; + + /** DedicatedResources autoscalingMetricSpecs. */ + public autoscalingMetricSpecs: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]; /** - * Creates a new XraiAttribution instance using the specified properties. + * Creates a new DedicatedResources instance using the specified properties. * @param [properties] Properties to set - * @returns XraiAttribution instance + * @returns DedicatedResources instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IXraiAttribution): google.cloud.aiplatform.v1beta1.XraiAttribution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDedicatedResources): google.cloud.aiplatform.v1beta1.DedicatedResources; /** - * Encodes the specified XraiAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.XraiAttribution.verify|verify} messages. - * @param message XraiAttribution message or plain object to encode + * Encodes the specified DedicatedResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DedicatedResources.verify|verify} messages. + * @param message DedicatedResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IXraiAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified XraiAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.XraiAttribution.verify|verify} messages. - * @param message XraiAttribution message or plain object to encode + * Encodes the specified DedicatedResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DedicatedResources.verify|verify} messages. + * @param message DedicatedResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IXraiAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a XraiAttribution message from the specified reader or buffer. + * Decodes a DedicatedResources message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns XraiAttribution + * @returns DedicatedResources * @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.aiplatform.v1beta1.XraiAttribution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DedicatedResources; /** - * Decodes a XraiAttribution message from the specified reader or buffer, length delimited. + * Decodes a DedicatedResources message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns XraiAttribution + * @returns DedicatedResources * @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.aiplatform.v1beta1.XraiAttribution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DedicatedResources; /** - * Verifies a XraiAttribution message. + * Verifies a DedicatedResources 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 XraiAttribution message from a plain object. Also converts values to their respective internal types. + * Creates a DedicatedResources message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns XraiAttribution + * @returns DedicatedResources */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.XraiAttribution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DedicatedResources; /** - * Creates a plain object from a XraiAttribution message. Also converts values to other types if specified. - * @param message XraiAttribution + * Creates a plain object from a DedicatedResources message. Also converts values to other types if specified. + * @param message DedicatedResources * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.XraiAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DedicatedResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this XraiAttribution to JSON. + * Converts this DedicatedResources to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for XraiAttribution + * Gets the default type url for DedicatedResources * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SmoothGradConfig. */ - interface ISmoothGradConfig { - - /** SmoothGradConfig noiseSigma */ - noiseSigma?: (number|null); + /** Properties of an AutomaticResources. */ + interface IAutomaticResources { - /** SmoothGradConfig featureNoiseSigma */ - featureNoiseSigma?: (google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma|null); + /** AutomaticResources minReplicaCount */ + minReplicaCount?: (number|null); - /** SmoothGradConfig noisySampleCount */ - noisySampleCount?: (number|null); + /** AutomaticResources maxReplicaCount */ + maxReplicaCount?: (number|null); } - /** Represents a SmoothGradConfig. */ - class SmoothGradConfig implements ISmoothGradConfig { - - /** - * Constructs a new SmoothGradConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISmoothGradConfig); - - /** SmoothGradConfig noiseSigma. */ - public noiseSigma?: (number|null); + /** Represents an AutomaticResources. */ + class AutomaticResources implements IAutomaticResources { - /** SmoothGradConfig featureNoiseSigma. */ - public featureNoiseSigma?: (google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma|null); + /** + * Constructs a new AutomaticResources. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IAutomaticResources); - /** SmoothGradConfig noisySampleCount. */ - public noisySampleCount: number; + /** AutomaticResources minReplicaCount. */ + public minReplicaCount: number; - /** SmoothGradConfig GradientNoiseSigma. */ - public GradientNoiseSigma?: ("noiseSigma"|"featureNoiseSigma"); + /** AutomaticResources maxReplicaCount. */ + public maxReplicaCount: number; /** - * Creates a new SmoothGradConfig instance using the specified properties. + * Creates a new AutomaticResources instance using the specified properties. * @param [properties] Properties to set - * @returns SmoothGradConfig instance + * @returns AutomaticResources instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISmoothGradConfig): google.cloud.aiplatform.v1beta1.SmoothGradConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAutomaticResources): google.cloud.aiplatform.v1beta1.AutomaticResources; /** - * Encodes the specified SmoothGradConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SmoothGradConfig.verify|verify} messages. - * @param message SmoothGradConfig message or plain object to encode + * Encodes the specified AutomaticResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutomaticResources.verify|verify} messages. + * @param message AutomaticResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISmoothGradConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAutomaticResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SmoothGradConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SmoothGradConfig.verify|verify} messages. - * @param message SmoothGradConfig message or plain object to encode + * Encodes the specified AutomaticResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutomaticResources.verify|verify} messages. + * @param message AutomaticResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISmoothGradConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAutomaticResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SmoothGradConfig message from the specified reader or buffer. + * Decodes an AutomaticResources message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SmoothGradConfig + * @returns AutomaticResources * @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.aiplatform.v1beta1.SmoothGradConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AutomaticResources; /** - * Decodes a SmoothGradConfig message from the specified reader or buffer, length delimited. + * Decodes an AutomaticResources message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SmoothGradConfig + * @returns AutomaticResources * @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.aiplatform.v1beta1.SmoothGradConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AutomaticResources; /** - * Verifies a SmoothGradConfig message. + * Verifies an AutomaticResources 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 SmoothGradConfig message from a plain object. Also converts values to their respective internal types. + * Creates an AutomaticResources message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SmoothGradConfig + * @returns AutomaticResources */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SmoothGradConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AutomaticResources; /** - * Creates a plain object from a SmoothGradConfig message. Also converts values to other types if specified. - * @param message SmoothGradConfig + * Creates a plain object from an AutomaticResources message. Also converts values to other types if specified. + * @param message AutomaticResources * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SmoothGradConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AutomaticResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SmoothGradConfig to JSON. + * Converts this AutomaticResources to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SmoothGradConfig + * Gets the default type url for AutomaticResources * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeatureNoiseSigma. */ - interface IFeatureNoiseSigma { + /** Properties of a BatchDedicatedResources. */ + interface IBatchDedicatedResources { - /** FeatureNoiseSigma noiseSigma */ - noiseSigma?: (google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature[]|null); + /** BatchDedicatedResources machineSpec */ + machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** BatchDedicatedResources startingReplicaCount */ + startingReplicaCount?: (number|null); + + /** BatchDedicatedResources maxReplicaCount */ + maxReplicaCount?: (number|null); } - /** Represents a FeatureNoiseSigma. */ - class FeatureNoiseSigma implements IFeatureNoiseSigma { + /** Represents a BatchDedicatedResources. */ + class BatchDedicatedResources implements IBatchDedicatedResources { /** - * Constructs a new FeatureNoiseSigma. + * Constructs a new BatchDedicatedResources. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources); - /** FeatureNoiseSigma noiseSigma. */ - public noiseSigma: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature[]; + /** BatchDedicatedResources machineSpec. */ + public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** BatchDedicatedResources startingReplicaCount. */ + public startingReplicaCount: number; + + /** BatchDedicatedResources maxReplicaCount. */ + public maxReplicaCount: number; /** - * Creates a new FeatureNoiseSigma instance using the specified properties. + * Creates a new BatchDedicatedResources instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureNoiseSigma instance + * @returns BatchDedicatedResources instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; /** - * Encodes the specified FeatureNoiseSigma message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.verify|verify} messages. - * @param message FeatureNoiseSigma message or plain object to encode + * Encodes the specified BatchDedicatedResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDedicatedResources.verify|verify} messages. + * @param message BatchDedicatedResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureNoiseSigma message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.verify|verify} messages. - * @param message FeatureNoiseSigma message or plain object to encode + * Encodes the specified BatchDedicatedResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDedicatedResources.verify|verify} messages. + * @param message BatchDedicatedResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureNoiseSigma message from the specified reader or buffer. + * Decodes a BatchDedicatedResources message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureNoiseSigma + * @returns BatchDedicatedResources * @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.aiplatform.v1beta1.FeatureNoiseSigma; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; /** - * Decodes a FeatureNoiseSigma message from the specified reader or buffer, length delimited. + * Decodes a BatchDedicatedResources message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureNoiseSigma + * @returns BatchDedicatedResources * @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.aiplatform.v1beta1.FeatureNoiseSigma; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; /** - * Verifies a FeatureNoiseSigma message. + * Verifies a BatchDedicatedResources 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 FeatureNoiseSigma message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDedicatedResources message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureNoiseSigma + * @returns BatchDedicatedResources */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; /** - * Creates a plain object from a FeatureNoiseSigma message. Also converts values to other types if specified. - * @param message FeatureNoiseSigma + * Creates a plain object from a BatchDedicatedResources message. Also converts values to other types if specified. + * @param message BatchDedicatedResources * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDedicatedResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureNoiseSigma to JSON. + * Converts this BatchDedicatedResources to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureNoiseSigma + * Gets the default type url for BatchDedicatedResources * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FeatureNoiseSigma { - - /** Properties of a NoiseSigmaForFeature. */ - interface INoiseSigmaForFeature { - - /** NoiseSigmaForFeature name */ - name?: (string|null); - - /** NoiseSigmaForFeature sigma */ - sigma?: (number|null); - } - - /** Represents a NoiseSigmaForFeature. */ - class NoiseSigmaForFeature implements INoiseSigmaForFeature { - - /** - * Constructs a new NoiseSigmaForFeature. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature); - - /** NoiseSigmaForFeature name. */ - public name: string; - - /** NoiseSigmaForFeature sigma. */ - public sigma: number; - - /** - * Creates a new NoiseSigmaForFeature instance using the specified properties. - * @param [properties] Properties to set - * @returns NoiseSigmaForFeature instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; - - /** - * Encodes the specified NoiseSigmaForFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature.verify|verify} messages. - * @param message NoiseSigmaForFeature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NoiseSigmaForFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature.verify|verify} messages. - * @param message NoiseSigmaForFeature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NoiseSigmaForFeature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NoiseSigmaForFeature - * @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.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; - - /** - * Decodes a NoiseSigmaForFeature message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NoiseSigmaForFeature - * @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.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; - - /** - * Verifies a NoiseSigmaForFeature 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 NoiseSigmaForFeature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NoiseSigmaForFeature - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; - - /** - * Creates a plain object from a NoiseSigmaForFeature message. Also converts values to other types if specified. - * @param message NoiseSigmaForFeature - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NoiseSigmaForFeature to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for NoiseSigmaForFeature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a BlurBaselineConfig. */ - interface IBlurBaselineConfig { + /** Properties of a ResourcesConsumed. */ + interface IResourcesConsumed { - /** BlurBaselineConfig maxBlurSigma */ - maxBlurSigma?: (number|null); + /** ResourcesConsumed replicaHours */ + replicaHours?: (number|null); } - /** Represents a BlurBaselineConfig. */ - class BlurBaselineConfig implements IBlurBaselineConfig { + /** Represents a ResourcesConsumed. */ + class ResourcesConsumed implements IResourcesConsumed { /** - * Constructs a new BlurBaselineConfig. + * Constructs a new ResourcesConsumed. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IResourcesConsumed); - /** BlurBaselineConfig maxBlurSigma. */ - public maxBlurSigma: number; + /** ResourcesConsumed replicaHours. */ + public replicaHours: number; /** - * Creates a new BlurBaselineConfig instance using the specified properties. + * Creates a new ResourcesConsumed instance using the specified properties. * @param [properties] Properties to set - * @returns BlurBaselineConfig instance + * @returns ResourcesConsumed instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResourcesConsumed): google.cloud.aiplatform.v1beta1.ResourcesConsumed; /** - * Encodes the specified BlurBaselineConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BlurBaselineConfig.verify|verify} messages. - * @param message BlurBaselineConfig message or plain object to encode + * Encodes the specified ResourcesConsumed message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcesConsumed.verify|verify} messages. + * @param message ResourcesConsumed message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResourcesConsumed, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BlurBaselineConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BlurBaselineConfig.verify|verify} messages. - * @param message BlurBaselineConfig message or plain object to encode + * Encodes the specified ResourcesConsumed message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcesConsumed.verify|verify} messages. + * @param message ResourcesConsumed message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourcesConsumed, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BlurBaselineConfig message from the specified reader or buffer. + * Decodes a ResourcesConsumed message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BlurBaselineConfig + * @returns ResourcesConsumed * @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.aiplatform.v1beta1.BlurBaselineConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourcesConsumed; /** - * Decodes a BlurBaselineConfig message from the specified reader or buffer, length delimited. + * Decodes a ResourcesConsumed message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BlurBaselineConfig + * @returns ResourcesConsumed * @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.aiplatform.v1beta1.BlurBaselineConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourcesConsumed; /** - * Verifies a BlurBaselineConfig message. + * Verifies a ResourcesConsumed 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 BlurBaselineConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ResourcesConsumed message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BlurBaselineConfig + * @returns ResourcesConsumed */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourcesConsumed; /** - * Creates a plain object from a BlurBaselineConfig message. Also converts values to other types if specified. - * @param message BlurBaselineConfig + * Creates a plain object from a ResourcesConsumed message. Also converts values to other types if specified. + * @param message ResourcesConsumed * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BlurBaselineConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResourcesConsumed, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BlurBaselineConfig to JSON. + * Converts this ResourcesConsumed to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BlurBaselineConfig + * Gets the default type url for ResourcesConsumed * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Examples. */ - interface IExamples { - - /** Examples nearestNeighborSearchConfig */ - nearestNeighborSearchConfig?: (google.protobuf.IValue|null); - - /** Examples presets */ - presets?: (google.cloud.aiplatform.v1beta1.IPresets|null); + /** Properties of a DiskSpec. */ + interface IDiskSpec { - /** Examples gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** DiskSpec bootDiskType */ + bootDiskType?: (string|null); - /** Examples neighborCount */ - neighborCount?: (number|null); + /** DiskSpec bootDiskSizeGb */ + bootDiskSizeGb?: (number|null); } - /** Represents an Examples. */ - class Examples implements IExamples { + /** Represents a DiskSpec. */ + class DiskSpec implements IDiskSpec { /** - * Constructs a new Examples. + * Constructs a new DiskSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExamples); - - /** Examples nearestNeighborSearchConfig. */ - public nearestNeighborSearchConfig?: (google.protobuf.IValue|null); - - /** Examples presets. */ - public presets?: (google.cloud.aiplatform.v1beta1.IPresets|null); - - /** Examples gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDiskSpec); - /** Examples neighborCount. */ - public neighborCount: number; + /** DiskSpec bootDiskType. */ + public bootDiskType: string; - /** Examples config. */ - public config?: ("nearestNeighborSearchConfig"|"presets"); + /** DiskSpec bootDiskSizeGb. */ + public bootDiskSizeGb: number; /** - * Creates a new Examples instance using the specified properties. + * Creates a new DiskSpec instance using the specified properties. * @param [properties] Properties to set - * @returns Examples instance + * @returns DiskSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExamples): google.cloud.aiplatform.v1beta1.Examples; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDiskSpec): google.cloud.aiplatform.v1beta1.DiskSpec; /** - * Encodes the specified Examples message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. - * @param message Examples message or plain object to encode + * Encodes the specified DiskSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DiskSpec.verify|verify} messages. + * @param message DiskSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDiskSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Examples message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. - * @param message Examples message or plain object to encode + * Encodes the specified DiskSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DiskSpec.verify|verify} messages. + * @param message DiskSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDiskSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Examples message from the specified reader or buffer. + * Decodes a DiskSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Examples + * @returns DiskSpec * @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.aiplatform.v1beta1.Examples; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DiskSpec; /** - * Decodes an Examples message from the specified reader or buffer, length delimited. + * Decodes a DiskSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Examples + * @returns DiskSpec * @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.aiplatform.v1beta1.Examples; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DiskSpec; /** - * Verifies an Examples message. + * Verifies a DiskSpec 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 an Examples message from a plain object. Also converts values to their respective internal types. + * Creates a DiskSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Examples + * @returns DiskSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Examples; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DiskSpec; /** - * Creates a plain object from an Examples message. Also converts values to other types if specified. - * @param message Examples + * Creates a plain object from a DiskSpec message. Also converts values to other types if specified. + * @param message DiskSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Examples, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DiskSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Examples to JSON. + * Converts this DiskSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Examples + * Gets the default type url for DiskSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Presets. */ - interface IPresets { + /** Properties of a NfsMount. */ + interface INfsMount { - /** Presets query */ - query?: (google.cloud.aiplatform.v1beta1.Presets.Query|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Query|null); + /** NfsMount server */ + server?: (string|null); - /** Presets modality */ - modality?: (google.cloud.aiplatform.v1beta1.Presets.Modality|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Modality|null); + /** NfsMount path */ + path?: (string|null); + + /** NfsMount mountPoint */ + mountPoint?: (string|null); } - /** Represents a Presets. */ - class Presets implements IPresets { + /** Represents a NfsMount. */ + class NfsMount implements INfsMount { /** - * Constructs a new Presets. + * Constructs a new NfsMount. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPresets); + constructor(properties?: google.cloud.aiplatform.v1beta1.INfsMount); - /** Presets query. */ - public query?: (google.cloud.aiplatform.v1beta1.Presets.Query|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Query|null); + /** NfsMount server. */ + public server: string; - /** Presets modality. */ - public modality: (google.cloud.aiplatform.v1beta1.Presets.Modality|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Modality); + /** NfsMount path. */ + public path: string; - /** Presets _query. */ - public _query?: "query"; + /** NfsMount mountPoint. */ + public mountPoint: string; /** - * Creates a new Presets instance using the specified properties. + * Creates a new NfsMount instance using the specified properties. * @param [properties] Properties to set - * @returns Presets instance + * @returns NfsMount instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPresets): google.cloud.aiplatform.v1beta1.Presets; + public static create(properties?: google.cloud.aiplatform.v1beta1.INfsMount): google.cloud.aiplatform.v1beta1.NfsMount; /** - * Encodes the specified Presets message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Presets.verify|verify} messages. - * @param message Presets message or plain object to encode + * Encodes the specified NfsMount message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. + * @param message NfsMount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPresets, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Presets message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Presets.verify|verify} messages. - * @param message Presets message or plain object to encode + * Encodes the specified NfsMount message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. + * @param message NfsMount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPresets, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Presets message from the specified reader or buffer. + * Decodes a NfsMount message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Presets + * @returns NfsMount * @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.aiplatform.v1beta1.Presets; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NfsMount; /** - * Decodes a Presets message from the specified reader or buffer, length delimited. + * Decodes a NfsMount message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Presets + * @returns NfsMount * @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.aiplatform.v1beta1.Presets; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NfsMount; /** - * Verifies a Presets message. + * Verifies a NfsMount 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 Presets message from a plain object. Also converts values to their respective internal types. + * Creates a NfsMount message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Presets + * @returns NfsMount */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Presets; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NfsMount; /** - * Creates a plain object from a Presets message. Also converts values to other types if specified. - * @param message Presets + * Creates a plain object from a NfsMount message. Also converts values to other types if specified. + * @param message NfsMount * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Presets, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NfsMount, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Presets to JSON. + * Converts this NfsMount to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Presets + * Gets the default type url for NfsMount * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Presets { - - /** Query enum. */ - enum Query { - PRECISE = 0, - FAST = 1 - } - - /** Modality enum. */ - enum Modality { - MODALITY_UNSPECIFIED = 0, - IMAGE = 1, - TEXT = 2, - TABULAR = 3 - } - } - - /** Properties of an ExplanationSpecOverride. */ - interface IExplanationSpecOverride { + } - /** ExplanationSpecOverride parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); + /** Properties of an AutoscalingMetricSpec. */ + interface IAutoscalingMetricSpec { - /** ExplanationSpecOverride metadata */ - metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride|null); + /** AutoscalingMetricSpec metricName */ + metricName?: (string|null); - /** ExplanationSpecOverride examplesOverride */ - examplesOverride?: (google.cloud.aiplatform.v1beta1.IExamplesOverride|null); + /** AutoscalingMetricSpec target */ + target?: (number|null); } - /** Represents an ExplanationSpecOverride. */ - class ExplanationSpecOverride implements IExplanationSpecOverride { + /** Represents an AutoscalingMetricSpec. */ + class AutoscalingMetricSpec implements IAutoscalingMetricSpec { /** - * Constructs a new ExplanationSpecOverride. + * Constructs a new AutoscalingMetricSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride); - - /** ExplanationSpecOverride parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec); - /** ExplanationSpecOverride metadata. */ - public metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride|null); + /** AutoscalingMetricSpec metricName. */ + public metricName: string; - /** ExplanationSpecOverride examplesOverride. */ - public examplesOverride?: (google.cloud.aiplatform.v1beta1.IExamplesOverride|null); + /** AutoscalingMetricSpec target. */ + public target: number; /** - * Creates a new ExplanationSpecOverride instance using the specified properties. + * Creates a new AutoscalingMetricSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationSpecOverride instance + * @returns AutoscalingMetricSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; /** - * Encodes the specified ExplanationSpecOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify|verify} messages. - * @param message ExplanationSpecOverride message or plain object to encode + * Encodes the specified AutoscalingMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.verify|verify} messages. + * @param message AutoscalingMetricSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationSpecOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify|verify} messages. - * @param message ExplanationSpecOverride message or plain object to encode + * Encodes the specified AutoscalingMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.verify|verify} messages. + * @param message AutoscalingMetricSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationSpecOverride message from the specified reader or buffer. + * Decodes an AutoscalingMetricSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationSpecOverride + * @returns AutoscalingMetricSpec * @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.aiplatform.v1beta1.ExplanationSpecOverride; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; /** - * Decodes an ExplanationSpecOverride message from the specified reader or buffer, length delimited. + * Decodes an AutoscalingMetricSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationSpecOverride + * @returns AutoscalingMetricSpec * @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.aiplatform.v1beta1.ExplanationSpecOverride; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; /** - * Verifies an ExplanationSpecOverride message. + * Verifies an AutoscalingMetricSpec 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 an ExplanationSpecOverride message from a plain object. Also converts values to their respective internal types. + * Creates an AutoscalingMetricSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationSpecOverride + * @returns AutoscalingMetricSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; /** - * Creates a plain object from an ExplanationSpecOverride message. Also converts values to other types if specified. - * @param message ExplanationSpecOverride + * Creates a plain object from an AutoscalingMetricSpec message. Also converts values to other types if specified. + * @param message AutoscalingMetricSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationSpecOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationSpecOverride to JSON. + * Converts this AutoscalingMetricSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationSpecOverride + * Gets the default type url for AutoscalingMetricSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplanationMetadataOverride. */ - interface IExplanationMetadataOverride { + /** Properties of a ManualBatchTuningParameters. */ + interface IManualBatchTuningParameters { - /** ExplanationMetadataOverride inputs */ - inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride }|null); + /** ManualBatchTuningParameters batchSize */ + batchSize?: (number|null); } - /** Represents an ExplanationMetadataOverride. */ - class ExplanationMetadataOverride implements IExplanationMetadataOverride { + /** Represents a ManualBatchTuningParameters. */ + class ManualBatchTuningParameters implements IManualBatchTuningParameters { /** - * Constructs a new ExplanationMetadataOverride. + * Constructs a new ManualBatchTuningParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride); + constructor(properties?: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters); - /** ExplanationMetadataOverride inputs. */ - public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride }; + /** ManualBatchTuningParameters batchSize. */ + public batchSize: number; /** - * Creates a new ExplanationMetadataOverride instance using the specified properties. + * Creates a new ManualBatchTuningParameters instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationMetadataOverride instance + * @returns ManualBatchTuningParameters instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; + public static create(properties?: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; /** - * Encodes the specified ExplanationMetadataOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.verify|verify} messages. - * @param message ExplanationMetadataOverride message or plain object to encode + * Encodes the specified ManualBatchTuningParameters message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.verify|verify} messages. + * @param message ManualBatchTuningParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationMetadataOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.verify|verify} messages. - * @param message ExplanationMetadataOverride message or plain object to encode + * Encodes the specified ManualBatchTuningParameters message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.verify|verify} messages. + * @param message ManualBatchTuningParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationMetadataOverride message from the specified reader or buffer. + * Decodes a ManualBatchTuningParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationMetadataOverride + * @returns ManualBatchTuningParameters * @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.aiplatform.v1beta1.ExplanationMetadataOverride; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; /** - * Decodes an ExplanationMetadataOverride message from the specified reader or buffer, length delimited. + * Decodes a ManualBatchTuningParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationMetadataOverride + * @returns ManualBatchTuningParameters * @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.aiplatform.v1beta1.ExplanationMetadataOverride; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; /** - * Verifies an ExplanationMetadataOverride message. + * Verifies a ManualBatchTuningParameters 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 an ExplanationMetadataOverride message from a plain object. Also converts values to their respective internal types. + * Creates a ManualBatchTuningParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationMetadataOverride + * @returns ManualBatchTuningParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; /** - * Creates a plain object from an ExplanationMetadataOverride message. Also converts values to other types if specified. - * @param message ExplanationMetadataOverride + * Creates a plain object from a ManualBatchTuningParameters message. Also converts values to other types if specified. + * @param message ManualBatchTuningParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationMetadataOverride to JSON. + * Converts this ManualBatchTuningParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationMetadataOverride + * Gets the default type url for ManualBatchTuningParameters * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ExplanationMetadataOverride { + /** ModelDeploymentMonitoringObjectiveType enum. */ + enum ModelDeploymentMonitoringObjectiveType { + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, + RAW_FEATURE_SKEW = 1, + RAW_FEATURE_DRIFT = 2, + FEATURE_ATTRIBUTION_SKEW = 3, + FEATURE_ATTRIBUTION_DRIFT = 4 + } - /** Properties of an InputMetadataOverride. */ - interface IInputMetadataOverride { + /** Properties of a ModelDeploymentMonitoringJob. */ + interface IModelDeploymentMonitoringJob { - /** InputMetadataOverride inputBaselines */ - inputBaselines?: (google.protobuf.IValue[]|null); - } + /** ModelDeploymentMonitoringJob name */ + name?: (string|null); - /** Represents an InputMetadataOverride. */ - class InputMetadataOverride implements IInputMetadataOverride { + /** ModelDeploymentMonitoringJob displayName */ + displayName?: (string|null); - /** - * Constructs a new InputMetadataOverride. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride); + /** ModelDeploymentMonitoringJob endpoint */ + endpoint?: (string|null); - /** InputMetadataOverride inputBaselines. */ - public inputBaselines: google.protobuf.IValue[]; + /** ModelDeploymentMonitoringJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** - * Creates a new InputMetadataOverride instance using the specified properties. - * @param [properties] Properties to set - * @returns InputMetadataOverride instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + /** ModelDeploymentMonitoringJob scheduleState */ + scheduleState?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - /** - * Encodes the specified InputMetadataOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride.verify|verify} messages. - * @param message InputMetadataOverride message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ + latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - /** - * Encodes the specified InputMetadataOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride.verify|verify} messages. - * @param message InputMetadataOverride message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ + modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]|null); - /** - * Decodes an InputMetadataOverride message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputMetadataOverride - * @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.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ + modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - /** - * Decodes an InputMetadataOverride message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputMetadataOverride - * @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.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - /** - * Verifies an InputMetadataOverride 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); + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ + modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - /** - * Creates an InputMetadataOverride message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputMetadataOverride - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ + predictInstanceSchemaUri?: (string|null); - /** - * Creates a plain object from an InputMetadataOverride message. Also converts values to other types if specified. - * @param message InputMetadataOverride - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelDeploymentMonitoringJob samplePredictInstance */ + samplePredictInstance?: (google.protobuf.IValue|null); - /** - * Converts this InputMetadataOverride to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); - /** - * Gets the default type url for InputMetadataOverride - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ModelDeploymentMonitoringJob bigqueryTables */ + bigqueryTables?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]|null); - /** Properties of an ExamplesOverride. */ - interface IExamplesOverride { + /** ModelDeploymentMonitoringJob logTtl */ + logTtl?: (google.protobuf.IDuration|null); - /** ExamplesOverride neighborCount */ - neighborCount?: (number|null); + /** ModelDeploymentMonitoringJob labels */ + labels?: ({ [k: string]: string }|null); - /** ExamplesOverride crowdingCount */ - crowdingCount?: (number|null); + /** ModelDeploymentMonitoringJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ExamplesOverride restrictions */ - restrictions?: (google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace[]|null); + /** ModelDeploymentMonitoringJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** ExamplesOverride returnEmbeddings */ - returnEmbeddings?: (boolean|null); + /** ModelDeploymentMonitoringJob nextScheduleTime */ + nextScheduleTime?: (google.protobuf.ITimestamp|null); - /** ExamplesOverride dataFormat */ - dataFormat?: (google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|null); + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ModelDeploymentMonitoringJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ + enableMonitoringPipelineLogs?: (boolean|null); + + /** ModelDeploymentMonitoringJob error */ + error?: (google.rpc.IStatus|null); } - /** Represents an ExamplesOverride. */ - class ExamplesOverride implements IExamplesOverride { + /** Represents a ModelDeploymentMonitoringJob. */ + class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { /** - * Constructs a new ExamplesOverride. + * Constructs a new ModelDeploymentMonitoringJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExamplesOverride); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob); - /** ExamplesOverride neighborCount. */ - public neighborCount: number; + /** ModelDeploymentMonitoringJob name. */ + public name: string; - /** ExamplesOverride crowdingCount. */ - public crowdingCount: number; + /** ModelDeploymentMonitoringJob displayName. */ + public displayName: string; - /** ExamplesOverride restrictions. */ - public restrictions: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace[]; + /** ModelDeploymentMonitoringJob endpoint. */ + public endpoint: string; - /** ExamplesOverride returnEmbeddings. */ - public returnEmbeddings: boolean; + /** ModelDeploymentMonitoringJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** ExamplesOverride dataFormat. */ - public dataFormat: (google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat); + /** ModelDeploymentMonitoringJob scheduleState. */ + public scheduleState: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState); + + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ + public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ + public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]; + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ + public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); + + /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ + public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ + public predictInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob samplePredictInstance. */ + public samplePredictInstance?: (google.protobuf.IValue|null); + + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob bigqueryTables. */ + public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; + + /** ModelDeploymentMonitoringJob logTtl. */ + public logTtl?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringJob labels. */ + public labels: { [k: string]: string }; + + /** ModelDeploymentMonitoringJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob nextScheduleTime. */ + public nextScheduleTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ModelDeploymentMonitoringJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ + public enableMonitoringPipelineLogs: boolean; + + /** ModelDeploymentMonitoringJob error. */ + public error?: (google.rpc.IStatus|null); /** - * Creates a new ExamplesOverride instance using the specified properties. + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @param [properties] Properties to set - * @returns ExamplesOverride instance + * @returns ModelDeploymentMonitoringJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExamplesOverride): google.cloud.aiplatform.v1beta1.ExamplesOverride; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Encodes the specified ExamplesOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesOverride.verify|verify} messages. - * @param message ExamplesOverride message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExamplesOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesOverride.verify|verify} messages. - * @param message ExamplesOverride message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExamplesOverride message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExamplesOverride + * @returns ModelDeploymentMonitoringJob * @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.aiplatform.v1beta1.ExamplesOverride; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Decodes an ExamplesOverride message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExamplesOverride + * @returns ModelDeploymentMonitoringJob * @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.aiplatform.v1beta1.ExamplesOverride; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Verifies an ExamplesOverride message. + * Verifies a ModelDeploymentMonitoringJob 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 an ExamplesOverride message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExamplesOverride - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExamplesOverride; + /** + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringJob + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + + /** + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringJob + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelDeploymentMonitoringJob to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelDeploymentMonitoringJob + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ModelDeploymentMonitoringJob { + + /** Properties of a LatestMonitoringPipelineMetadata. */ + interface ILatestMonitoringPipelineMetadata { + + /** LatestMonitoringPipelineMetadata runTime */ + runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status */ + status?: (google.rpc.IStatus|null); + } + + /** Represents a LatestMonitoringPipelineMetadata. */ + class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + + /** + * Constructs a new LatestMonitoringPipelineMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + + /** LatestMonitoringPipelineMetadata runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status. */ + public status?: (google.rpc.IStatus|null); + + /** + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns LatestMonitoringPipelineMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LatestMonitoringPipelineMetadata + * @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.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LatestMonitoringPipelineMetadata + * @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.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Verifies a LatestMonitoringPipelineMetadata 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 plain object from an ExamplesOverride message. Also converts values to other types if specified. - * @param message ExamplesOverride - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExamplesOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LatestMonitoringPipelineMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; - /** - * Converts this ExamplesOverride to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * @param message LatestMonitoringPipelineMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ExamplesOverride - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this LatestMonitoringPipelineMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace ExamplesOverride { + /** + * Gets the default type url for LatestMonitoringPipelineMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DataFormat enum. */ - enum DataFormat { - DATA_FORMAT_UNSPECIFIED = 0, - INSTANCES = 1, - EMBEDDINGS = 2 + /** MonitoringScheduleState enum. */ + enum MonitoringScheduleState { + MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, + PENDING = 1, + OFFLINE = 2, + RUNNING = 3 } } - /** Properties of an ExamplesRestrictionsNamespace. */ - interface IExamplesRestrictionsNamespace { + /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ + interface IModelDeploymentMonitoringBigQueryTable { - /** ExamplesRestrictionsNamespace namespaceName */ - namespaceName?: (string|null); + /** ModelDeploymentMonitoringBigQueryTable logSource */ + logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); - /** ExamplesRestrictionsNamespace allow */ - allow?: (string[]|null); + /** ModelDeploymentMonitoringBigQueryTable logType */ + logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); - /** ExamplesRestrictionsNamespace deny */ - deny?: (string[]|null); + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ + bigqueryTablePath?: (string|null); } - /** Represents an ExamplesRestrictionsNamespace. */ - class ExamplesRestrictionsNamespace implements IExamplesRestrictionsNamespace { + /** Represents a ModelDeploymentMonitoringBigQueryTable. */ + class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { /** - * Constructs a new ExamplesRestrictionsNamespace. + * Constructs a new ModelDeploymentMonitoringBigQueryTable. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); - /** ExamplesRestrictionsNamespace namespaceName. */ - public namespaceName: string; + /** ModelDeploymentMonitoringBigQueryTable logSource. */ + public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); - /** ExamplesRestrictionsNamespace allow. */ - public allow: string[]; + /** ModelDeploymentMonitoringBigQueryTable logType. */ + public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); - /** ExamplesRestrictionsNamespace deny. */ - public deny: string[]; + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ + public bigqueryTablePath: string; /** - * Creates a new ExamplesRestrictionsNamespace instance using the specified properties. + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @param [properties] Properties to set - * @returns ExamplesRestrictionsNamespace instance + * @returns ModelDeploymentMonitoringBigQueryTable instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Encodes the specified ExamplesRestrictionsNamespace message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.verify|verify} messages. - * @param message ExamplesRestrictionsNamespace message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExamplesRestrictionsNamespace message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.verify|verify} messages. - * @param message ExamplesRestrictionsNamespace message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExamplesRestrictionsNamespace + * @returns ModelDeploymentMonitoringBigQueryTable * @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.aiplatform.v1beta1.ExamplesRestrictionsNamespace; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExamplesRestrictionsNamespace + * @returns ModelDeploymentMonitoringBigQueryTable * @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.aiplatform.v1beta1.ExamplesRestrictionsNamespace; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Verifies an ExamplesRestrictionsNamespace message. + * Verifies a ModelDeploymentMonitoringBigQueryTable 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 an ExamplesRestrictionsNamespace message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExamplesRestrictionsNamespace + * @returns ModelDeploymentMonitoringBigQueryTable */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Creates a plain object from an ExamplesRestrictionsNamespace message. Also converts values to other types if specified. - * @param message ExamplesRestrictionsNamespace + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringBigQueryTable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExamplesRestrictionsNamespace to JSON. + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExamplesRestrictionsNamespace + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplanationMetadata. */ - interface IExplanationMetadata { + namespace ModelDeploymentMonitoringBigQueryTable { - /** ExplanationMetadata inputs */ - inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata }|null); + /** LogSource enum. */ + enum LogSource { + LOG_SOURCE_UNSPECIFIED = 0, + TRAINING = 1, + SERVING = 2 + } - /** ExplanationMetadata outputs */ - outputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata }|null); + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + PREDICT = 1, + EXPLAIN = 2 + } + } - /** ExplanationMetadata featureAttributionsSchemaUri */ - featureAttributionsSchemaUri?: (string|null); + /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ + interface IModelDeploymentMonitoringObjectiveConfig { - /** ExplanationMetadata latentSpaceSource */ - latentSpaceSource?: (string|null); + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ + deployedModelId?: (string|null); + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ + objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); } - /** Represents an ExplanationMetadata. */ - class ExplanationMetadata implements IExplanationMetadata { + /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ + class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { /** - * Constructs a new ExplanationMetadata. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadata); - - /** ExplanationMetadata inputs. */ - public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata }; - - /** ExplanationMetadata outputs. */ - public outputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata }; + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); - /** ExplanationMetadata featureAttributionsSchemaUri. */ - public featureAttributionsSchemaUri: string; + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ + public deployedModelId: string; - /** ExplanationMetadata latentSpaceSource. */ - public latentSpaceSource: string; + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ + public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); /** - * Creates a new ExplanationMetadata instance using the specified properties. + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationMetadata instance + * @returns ModelDeploymentMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Encodes the specified ExplanationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.verify|verify} messages. - * @param message ExplanationMetadata message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.verify|verify} messages. - * @param message ExplanationMetadata message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationMetadata message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationMetadata + * @returns ModelDeploymentMonitoringObjectiveConfig * @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.aiplatform.v1beta1.ExplanationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Decodes an ExplanationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationMetadata + * @returns ModelDeploymentMonitoringObjectiveConfig * @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.aiplatform.v1beta1.ExplanationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Verifies an ExplanationMetadata message. + * Verifies a ModelDeploymentMonitoringObjectiveConfig 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 an ExplanationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationMetadata + * @returns ModelDeploymentMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Creates a plain object from an ExplanationMetadata message. Also converts values to other types if specified. - * @param message ExplanationMetadata + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationMetadata to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationMetadata + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ExplanationMetadata { - - /** Properties of an InputMetadata. */ - interface IInputMetadata { - - /** InputMetadata inputBaselines */ - inputBaselines?: (google.protobuf.IValue[]|null); - - /** InputMetadata inputTensorName */ - inputTensorName?: (string|null); - - /** InputMetadata encoding */ - encoding?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|null); - - /** InputMetadata modality */ - modality?: (string|null); - - /** InputMetadata featureValueDomain */ - featureValueDomain?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain|null); - - /** InputMetadata indicesTensorName */ - indicesTensorName?: (string|null); - - /** InputMetadata denseShapeTensorName */ - denseShapeTensorName?: (string|null); - - /** InputMetadata indexFeatureMapping */ - indexFeatureMapping?: (string[]|null); - - /** InputMetadata encodedTensorName */ - encodedTensorName?: (string|null); - - /** InputMetadata encodedBaselines */ - encodedBaselines?: (google.protobuf.IValue[]|null); - - /** InputMetadata visualization */ - visualization?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization|null); - - /** InputMetadata groupName */ - groupName?: (string|null); - } - - /** Represents an InputMetadata. */ - class InputMetadata implements IInputMetadata { - - /** - * Constructs a new InputMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata); - - /** InputMetadata inputBaselines. */ - public inputBaselines: google.protobuf.IValue[]; - - /** InputMetadata inputTensorName. */ - public inputTensorName: string; - - /** InputMetadata encoding. */ - public encoding: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding); - - /** InputMetadata modality. */ - public modality: string; - - /** InputMetadata featureValueDomain. */ - public featureValueDomain?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain|null); - - /** InputMetadata indicesTensorName. */ - public indicesTensorName: string; - - /** InputMetadata denseShapeTensorName. */ - public denseShapeTensorName: string; - - /** InputMetadata indexFeatureMapping. */ - public indexFeatureMapping: string[]; - - /** InputMetadata encodedTensorName. */ - public encodedTensorName: string; - - /** InputMetadata encodedBaselines. */ - public encodedBaselines: google.protobuf.IValue[]; - - /** InputMetadata visualization. */ - public visualization?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization|null); - - /** InputMetadata groupName. */ - public groupName: string; - - /** - * Creates a new InputMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns InputMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; - - /** - * Encodes the specified InputMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.verify|verify} messages. - * @param message InputMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InputMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.verify|verify} messages. - * @param message InputMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InputMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputMetadata - * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; - - /** - * Decodes an InputMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputMetadata - * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; - - /** - * Verifies an InputMetadata 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 an InputMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; - - /** - * Creates a plain object from an InputMetadata message. Also converts values to other types if specified. - * @param message InputMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InputMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for InputMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace InputMetadata { - - /** Properties of a FeatureValueDomain. */ - interface IFeatureValueDomain { - - /** FeatureValueDomain minValue */ - minValue?: (number|null); - - /** FeatureValueDomain maxValue */ - maxValue?: (number|null); - - /** FeatureValueDomain originalMean */ - originalMean?: (number|null); - - /** FeatureValueDomain originalStddev */ - originalStddev?: (number|null); - } - - /** Represents a FeatureValueDomain. */ - class FeatureValueDomain implements IFeatureValueDomain { - - /** - * Constructs a new FeatureValueDomain. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain); - - /** FeatureValueDomain minValue. */ - public minValue: number; - - /** FeatureValueDomain maxValue. */ - public maxValue: number; - - /** FeatureValueDomain originalMean. */ - public originalMean: number; - - /** FeatureValueDomain originalStddev. */ - public originalStddev: number; - - /** - * Creates a new FeatureValueDomain instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureValueDomain instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; - - /** - * Encodes the specified FeatureValueDomain message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain.verify|verify} messages. - * @param message FeatureValueDomain message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureValueDomain message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain.verify|verify} messages. - * @param message FeatureValueDomain message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureValueDomain message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureValueDomain - * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; + /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ + interface IModelDeploymentMonitoringScheduleConfig { - /** - * Decodes a FeatureValueDomain message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureValueDomain - * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; + /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ + monitorInterval?: (google.protobuf.IDuration|null); - /** - * Verifies a FeatureValueDomain 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); + /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ + monitorWindow?: (google.protobuf.IDuration|null); + } - /** - * Creates a FeatureValueDomain message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureValueDomain - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; + /** Represents a ModelDeploymentMonitoringScheduleConfig. */ + class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { - /** - * Creates a plain object from a FeatureValueDomain message. Also converts values to other types if specified. - * @param message FeatureValueDomain - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig); - /** - * Converts this FeatureValueDomain to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ + public monitorInterval?: (google.protobuf.IDuration|null); - /** - * Gets the default type url for FeatureValueDomain - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ + public monitorWindow?: (google.protobuf.IDuration|null); - /** Properties of a Visualization. */ - interface IVisualization { + /** + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelDeploymentMonitoringScheduleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; - /** Visualization type */ - type?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|null); + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Visualization polarity */ - polarity?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|null); + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Visualization colorMap */ - colorMap?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|null); + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelDeploymentMonitoringScheduleConfig + * @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.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; - /** Visualization clipPercentUpperbound */ - clipPercentUpperbound?: (number|null); + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelDeploymentMonitoringScheduleConfig + * @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.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; - /** Visualization clipPercentLowerbound */ - clipPercentLowerbound?: (number|null); + /** + * Verifies a ModelDeploymentMonitoringScheduleConfig 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); - /** Visualization overlayType */ - overlayType?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|null); - } + /** + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringScheduleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; - /** Represents a Visualization. */ - class Visualization implements IVisualization { + /** + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringScheduleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new Visualization. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization); + /** + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Visualization type. */ - public type: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type); + /** + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Visualization polarity. */ - public polarity: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity); + /** Properties of a ModelMonitoringStatsAnomalies. */ + interface IModelMonitoringStatsAnomalies { - /** Visualization colorMap. */ - public colorMap: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap); + /** ModelMonitoringStatsAnomalies objective */ + objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); - /** Visualization clipPercentUpperbound. */ - public clipPercentUpperbound: number; + /** ModelMonitoringStatsAnomalies deployedModelId */ + deployedModelId?: (string|null); - /** Visualization clipPercentLowerbound. */ - public clipPercentLowerbound: number; + /** ModelMonitoringStatsAnomalies anomalyCount */ + anomalyCount?: (number|null); - /** Visualization overlayType. */ - public overlayType: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType); + /** ModelMonitoringStatsAnomalies featureStats */ + featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + } - /** - * Creates a new Visualization instance using the specified properties. - * @param [properties] Properties to set - * @returns Visualization instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + /** Represents a ModelMonitoringStatsAnomalies. */ + class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { - /** - * Encodes the specified Visualization message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.verify|verify} messages. - * @param message Visualization message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new ModelMonitoringStatsAnomalies. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); - /** - * Encodes the specified Visualization message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.verify|verify} messages. - * @param message Visualization message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelMonitoringStatsAnomalies objective. */ + public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); - /** - * Decodes a Visualization message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Visualization - * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + /** ModelMonitoringStatsAnomalies deployedModelId. */ + public deployedModelId: string; - /** - * Decodes a Visualization message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Visualization - * @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.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + /** ModelMonitoringStatsAnomalies anomalyCount. */ + public anomalyCount: number; - /** - * Verifies a Visualization 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); + /** ModelMonitoringStatsAnomalies featureStats. */ + public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; - /** - * Creates a Visualization message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Visualization - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + /** + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelMonitoringStatsAnomalies instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; - /** - * Creates a plain object from a Visualization message. Also converts values to other types if specified. - * @param message Visualization - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this Visualization to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for Visualization - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelMonitoringStatsAnomalies + * @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.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; - namespace Visualization { + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelMonitoringStatsAnomalies + * @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.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - PIXELS = 1, - OUTLINES = 2 - } + /** + * Verifies a ModelMonitoringStatsAnomalies 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); - /** Polarity enum. */ - enum Polarity { - POLARITY_UNSPECIFIED = 0, - POSITIVE = 1, - NEGATIVE = 2, - BOTH = 3 - } + /** + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelMonitoringStatsAnomalies + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; - /** ColorMap enum. */ - enum ColorMap { - COLOR_MAP_UNSPECIFIED = 0, - PINK_GREEN = 1, - VIRIDIS = 2, - RED = 3, - GREEN = 4, - RED_GREEN = 6, - PINK_WHITE_GREEN = 5 - } + /** + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @param message ModelMonitoringStatsAnomalies + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** OverlayType enum. */ - enum OverlayType { - OVERLAY_TYPE_UNSPECIFIED = 0, - NONE = 1, - ORIGINAL = 2, - GRAYSCALE = 3, - MASK_BLACK = 4 - } - } + /** + * Converts this ModelMonitoringStatsAnomalies to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Encoding enum. */ - enum Encoding { - ENCODING_UNSPECIFIED = 0, - IDENTITY = 1, - BAG_OF_FEATURES = 2, - BAG_OF_FEATURES_SPARSE = 3, - INDICATOR = 4, - COMBINED_EMBEDDING = 5, - CONCAT_EMBEDDING = 6 - } - } + /** + * Gets the default type url for ModelMonitoringStatsAnomalies + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of an OutputMetadata. */ - interface IOutputMetadata { + namespace ModelMonitoringStatsAnomalies { - /** OutputMetadata indexDisplayNameMapping */ - indexDisplayNameMapping?: (google.protobuf.IValue|null); + /** Properties of a FeatureHistoricStatsAnomalies. */ + interface IFeatureHistoricStatsAnomalies { - /** OutputMetadata displayNameMappingKey */ - displayNameMappingKey?: (string|null); + /** FeatureHistoricStatsAnomalies featureDisplayName */ + featureDisplayName?: (string|null); - /** OutputMetadata outputTensorName */ - outputTensorName?: (string|null); + /** FeatureHistoricStatsAnomalies threshold */ + threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + + /** FeatureHistoricStatsAnomalies trainingStats */ + trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + + /** FeatureHistoricStatsAnomalies predictionStats */ + predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); } - /** Represents an OutputMetadata. */ - class OutputMetadata implements IOutputMetadata { + /** Represents a FeatureHistoricStatsAnomalies. */ + class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { /** - * Constructs a new OutputMetadata. + * Constructs a new FeatureHistoricStatsAnomalies. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - /** OutputMetadata indexDisplayNameMapping. */ - public indexDisplayNameMapping?: (google.protobuf.IValue|null); + /** FeatureHistoricStatsAnomalies featureDisplayName. */ + public featureDisplayName: string; - /** OutputMetadata displayNameMappingKey. */ - public displayNameMappingKey?: (string|null); + /** FeatureHistoricStatsAnomalies threshold. */ + public threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - /** OutputMetadata outputTensorName. */ - public outputTensorName: string; + /** FeatureHistoricStatsAnomalies trainingStats. */ + public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - /** OutputMetadata displayNameMapping. */ - public displayNameMapping?: ("indexDisplayNameMapping"|"displayNameMappingKey"); + /** FeatureHistoricStatsAnomalies predictionStats. */ + public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; /** - * Creates a new OutputMetadata instance using the specified properties. + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. * @param [properties] Properties to set - * @returns OutputMetadata instance + * @returns FeatureHistoricStatsAnomalies instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Encodes the specified OutputMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata.verify|verify} messages. - * @param message OutputMetadata message or plain object to encode + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata.verify|verify} messages. - * @param message OutputMetadata message or plain object to encode + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputMetadata message from the specified reader or buffer. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputMetadata + * @returns FeatureHistoricStatsAnomalies * @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.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Decodes an OutputMetadata message from the specified reader or buffer, length delimited. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputMetadata + * @returns FeatureHistoricStatsAnomalies * @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.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Verifies an OutputMetadata message. + * Verifies a FeatureHistoricStatsAnomalies 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 an OutputMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputMetadata + * @returns FeatureHistoricStatsAnomalies */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Creates a plain object from an OutputMetadata message. Also converts values to other types if specified. - * @param message OutputMetadata + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. + * @param message FeatureHistoricStatsAnomalies * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputMetadata to JSON. + * Converts this FeatureHistoricStatsAnomalies to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputMetadata + * Gets the default type url for FeatureHistoricStatsAnomalies * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -74635,34995 +80338,34853 @@ export namespace google { } } - /** Properties of an AvroSource. */ - interface IAvroSource { + /** Properties of a FeatureStatsAnomaly. */ + interface IFeatureStatsAnomaly { - /** AvroSource gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** FeatureStatsAnomaly score */ + score?: (number|null); + + /** FeatureStatsAnomaly statsUri */ + statsUri?: (string|null); + + /** FeatureStatsAnomaly anomalyUri */ + anomalyUri?: (string|null); + + /** FeatureStatsAnomaly distributionDeviation */ + distributionDeviation?: (number|null); + + /** FeatureStatsAnomaly anomalyDetectionThreshold */ + anomalyDetectionThreshold?: (number|null); + + /** FeatureStatsAnomaly startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAnomaly endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents an AvroSource. */ - class AvroSource implements IAvroSource { + /** Represents a FeatureStatsAnomaly. */ + class FeatureStatsAnomaly implements IFeatureStatsAnomaly { /** - * Constructs a new AvroSource. + * Constructs a new FeatureStatsAnomaly. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAvroSource); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly); - /** AvroSource gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** FeatureStatsAnomaly score. */ + public score: number; + + /** FeatureStatsAnomaly statsUri. */ + public statsUri: string; + + /** FeatureStatsAnomaly anomalyUri. */ + public anomalyUri: string; + + /** FeatureStatsAnomaly distributionDeviation. */ + public distributionDeviation: number; + + /** FeatureStatsAnomaly anomalyDetectionThreshold. */ + public anomalyDetectionThreshold: number; + + /** FeatureStatsAnomaly startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAnomaly endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new AvroSource instance using the specified properties. + * Creates a new FeatureStatsAnomaly instance using the specified properties. * @param [properties] Properties to set - * @returns AvroSource instance + * @returns FeatureStatsAnomaly instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAvroSource): google.cloud.aiplatform.v1beta1.AvroSource; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Encodes the specified AvroSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AvroSource.verify|verify} messages. - * @param message AvroSource message or plain object to encode + * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @param message FeatureStatsAnomaly message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAvroSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AvroSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AvroSource.verify|verify} messages. - * @param message AvroSource message or plain object to encode + * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @param message FeatureStatsAnomaly message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAvroSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AvroSource message from the specified reader or buffer. + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AvroSource + * @returns FeatureStatsAnomaly * @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.aiplatform.v1beta1.AvroSource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Decodes an AvroSource message from the specified reader or buffer, length delimited. + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AvroSource + * @returns FeatureStatsAnomaly * @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.aiplatform.v1beta1.AvroSource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Verifies an AvroSource message. + * Verifies a FeatureStatsAnomaly 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 an AvroSource message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AvroSource + * @returns FeatureStatsAnomaly */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AvroSource; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Creates a plain object from an AvroSource message. Also converts values to other types if specified. - * @param message AvroSource + * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. + * @param message FeatureStatsAnomaly * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AvroSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AvroSource to JSON. + * Converts this FeatureStatsAnomaly to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AvroSource + * Gets the default type url for FeatureStatsAnomaly * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CsvSource. */ - interface ICsvSource { + /** Properties of a ModelMonitoringConfig. */ + interface IModelMonitoringConfig { - /** CsvSource gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** ModelMonitoringConfig objectiveConfigs */ + objectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]|null); + + /** ModelMonitoringConfig alertConfig */ + alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelMonitoringConfig analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); + + /** ModelMonitoringConfig statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); } - /** Represents a CsvSource. */ - class CsvSource implements ICsvSource { + /** Represents a ModelMonitoringConfig. */ + class ModelMonitoringConfig implements IModelMonitoringConfig { /** - * Constructs a new CsvSource. + * Constructs a new ModelMonitoringConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICsvSource); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig); - /** CsvSource gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** ModelMonitoringConfig objectiveConfigs. */ + public objectiveConfigs: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]; + + /** ModelMonitoringConfig alertConfig. */ + public alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelMonitoringConfig analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; + + /** ModelMonitoringConfig statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); /** - * Creates a new CsvSource instance using the specified properties. + * Creates a new ModelMonitoringConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CsvSource instance + * @returns ModelMonitoringConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICsvSource): google.cloud.aiplatform.v1beta1.CsvSource; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Encodes the specified CsvSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvSource.verify|verify} messages. - * @param message CsvSource message or plain object to encode + * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @param message ModelMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICsvSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CsvSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvSource.verify|verify} messages. - * @param message CsvSource message or plain object to encode + * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @param message ModelMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICsvSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CsvSource message from the specified reader or buffer. + * Decodes a ModelMonitoringConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CsvSource + * @returns ModelMonitoringConfig * @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.aiplatform.v1beta1.CsvSource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Decodes a CsvSource message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CsvSource + * @returns ModelMonitoringConfig * @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.aiplatform.v1beta1.CsvSource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Verifies a CsvSource message. + * Verifies a ModelMonitoringConfig 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 CsvSource message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CsvSource + * @returns ModelMonitoringConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CsvSource; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Creates a plain object from a CsvSource message. Also converts values to other types if specified. - * @param message CsvSource + * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CsvSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CsvSource to JSON. + * Converts this ModelMonitoringConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CsvSource + * Gets the default type url for ModelMonitoringConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GcsSource. */ - interface IGcsSource { + /** Properties of a ModelMonitoringObjectiveConfig. */ + interface IModelMonitoringObjectiveConfig { - /** GcsSource uris */ - uris?: (string[]|null); + /** ModelMonitoringObjectiveConfig trainingDataset */ + trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ + trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ + predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig explanationConfig */ + explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); } - /** Represents a GcsSource. */ - class GcsSource implements IGcsSource { + /** Represents a ModelMonitoringObjectiveConfig. */ + class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { /** - * Constructs a new GcsSource. + * Constructs a new ModelMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGcsSource); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); - /** GcsSource uris. */ - public uris: string[]; + /** ModelMonitoringObjectiveConfig trainingDataset. */ + public trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ + public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ + public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig explanationConfig. */ + public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); /** - * Creates a new GcsSource instance using the specified properties. + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GcsSource instance + * @returns ModelMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGcsSource): google.cloud.aiplatform.v1beta1.GcsSource; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsSource.verify|verify} messages. - * @param message GcsSource message or plain object to encode + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsSource.verify|verify} messages. - * @param message GcsSource message or plain object to encode + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GcsSource message from the specified reader or buffer. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GcsSource + * @returns ModelMonitoringObjectiveConfig * @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.aiplatform.v1beta1.GcsSource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Decodes a GcsSource message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GcsSource + * @returns ModelMonitoringObjectiveConfig * @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.aiplatform.v1beta1.GcsSource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Verifies a GcsSource message. + * Verifies a ModelMonitoringObjectiveConfig 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 GcsSource message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GcsSource + * @returns ModelMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GcsSource; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Creates a plain object from a GcsSource message. Also converts values to other types if specified. - * @param message GcsSource + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GcsSource to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GcsSource + * Gets the default type url for ModelMonitoringObjectiveConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GcsDestination. */ - interface IGcsDestination { + namespace ModelMonitoringObjectiveConfig { - /** GcsDestination outputUriPrefix */ - outputUriPrefix?: (string|null); - } + /** Properties of a TrainingDataset. */ + interface ITrainingDataset { - /** Represents a GcsDestination. */ - class GcsDestination implements IGcsDestination { + /** TrainingDataset dataset */ + dataset?: (string|null); - /** - * Constructs a new GcsDestination. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGcsDestination); + /** TrainingDataset gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** GcsDestination outputUriPrefix. */ - public outputUriPrefix: string; + /** TrainingDataset bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** - * Creates a new GcsDestination instance using the specified properties. - * @param [properties] Properties to set - * @returns GcsDestination instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGcsDestination): google.cloud.aiplatform.v1beta1.GcsDestination; + /** TrainingDataset dataFormat */ + dataFormat?: (string|null); - /** - * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsDestination.verify|verify} messages. - * @param message GcsDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingDataset targetField */ + targetField?: (string|null); - /** - * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsDestination.verify|verify} messages. - * @param message GcsDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingDataset loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + } - /** - * Decodes a GcsDestination message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GcsDestination - * @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.aiplatform.v1beta1.GcsDestination; + /** Represents a TrainingDataset. */ + class TrainingDataset implements ITrainingDataset { - /** - * Decodes a GcsDestination message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GcsDestination - * @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.aiplatform.v1beta1.GcsDestination; + /** + * Constructs a new TrainingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); + + /** TrainingDataset dataset. */ + public dataset?: (string|null); + + /** TrainingDataset gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + + /** TrainingDataset bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** TrainingDataset dataFormat. */ + public dataFormat: string; + + /** TrainingDataset targetField. */ + public targetField: string; + + /** TrainingDataset loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + + /** TrainingDataset dataSource. */ + public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + + /** + * Creates a new TrainingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingDataset + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingDataset + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Verifies a TrainingDataset 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 TrainingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * @param message TrainingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainingDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TrainingPredictionSkewDetectionConfig. */ + interface ITrainingPredictionSkewDetectionConfig { + + /** TrainingPredictionSkewDetectionConfig skewThresholds */ + skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ + attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ + defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + } + + /** Represents a TrainingPredictionSkewDetectionConfig. */ + class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + + /** TrainingPredictionSkewDetectionConfig skewThresholds. */ + public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ + public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ + public defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPredictionSkewDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPredictionSkewDetectionConfig + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPredictionSkewDetectionConfig + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Verifies a TrainingPredictionSkewDetectionConfig 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 TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPredictionSkewDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @param message TrainingPredictionSkewDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainingPredictionSkewDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PredictionDriftDetectionConfig. */ + interface IPredictionDriftDetectionConfig { + + /** PredictionDriftDetectionConfig driftThresholds */ + driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ + attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** PredictionDriftDetectionConfig defaultDriftThreshold */ + defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + } + + /** Represents a PredictionDriftDetectionConfig. */ + class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { + + /** + * Constructs a new PredictionDriftDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); + + /** PredictionDriftDetectionConfig driftThresholds. */ + public driftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ + public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - /** - * Verifies a GcsDestination 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); + /** PredictionDriftDetectionConfig defaultDriftThreshold. */ + public defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - /** - * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GcsDestination - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GcsDestination; + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictionDriftDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** - * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. - * @param message GcsDestination - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this GcsDestination to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for GcsDestination - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictionDriftDetectionConfig + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** Properties of a BigQuerySource. */ - interface IBigQuerySource { + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictionDriftDetectionConfig + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** BigQuerySource inputUri */ - inputUri?: (string|null); - } + /** + * Verifies a PredictionDriftDetectionConfig 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); - /** Represents a BigQuerySource. */ - class BigQuerySource implements IBigQuerySource { + /** + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictionDriftDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** - * Constructs a new BigQuerySource. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBigQuerySource); + /** + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. + * @param message PredictionDriftDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** BigQuerySource inputUri. */ - public inputUri: string; + /** + * Converts this PredictionDriftDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new BigQuerySource instance using the specified properties. - * @param [properties] Properties to set - * @returns BigQuerySource instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBigQuerySource): google.cloud.aiplatform.v1beta1.BigQuerySource; + /** + * Gets the default type url for PredictionDriftDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQuerySource.verify|verify} messages. - * @param message BigQuerySource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an ExplanationConfig. */ + interface IExplanationConfig { - /** - * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQuerySource.verify|verify} messages. - * @param message BigQuerySource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; + /** ExplanationConfig enableFeatureAttributes */ + enableFeatureAttributes?: (boolean|null); - /** - * Decodes a BigQuerySource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BigQuerySource - * @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.aiplatform.v1beta1.BigQuerySource; + /** ExplanationConfig explanationBaseline */ + explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + } - /** - * Decodes a BigQuerySource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BigQuerySource - * @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.aiplatform.v1beta1.BigQuerySource; + /** Represents an ExplanationConfig. */ + class ExplanationConfig implements IExplanationConfig { - /** - * Verifies a BigQuerySource 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); + /** + * Constructs a new ExplanationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig); - /** - * Creates a BigQuerySource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BigQuerySource - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BigQuerySource; + /** ExplanationConfig enableFeatureAttributes. */ + public enableFeatureAttributes: boolean; - /** - * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified. - * @param message BigQuerySource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BigQuerySource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ExplanationConfig explanationBaseline. */ + public explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - /** - * Converts this BigQuerySource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Gets the default type url for BigQuerySource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a BigQueryDestination. */ - interface IBigQueryDestination { + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** BigQueryDestination outputUri */ - outputUri?: (string|null); - } + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationConfig + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** Represents a BigQueryDestination. */ - class BigQueryDestination implements IBigQueryDestination { + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationConfig + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Constructs a new BigQueryDestination. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBigQueryDestination); + /** + * Verifies an ExplanationConfig 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); - /** BigQueryDestination outputUri. */ - public outputUri: string; + /** + * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Creates a new BigQueryDestination instance using the specified properties. - * @param [properties] Properties to set - * @returns BigQueryDestination instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBigQueryDestination): google.cloud.aiplatform.v1beta1.BigQueryDestination; + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @param message ExplanationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQueryDestination.verify|verify} messages. - * @param message BigQueryDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ExplanationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQueryDestination.verify|verify} messages. - * @param message BigQueryDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ExplanationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a BigQueryDestination message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BigQueryDestination - * @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.aiplatform.v1beta1.BigQueryDestination; + namespace ExplanationConfig { - /** - * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BigQueryDestination - * @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.aiplatform.v1beta1.BigQueryDestination; + /** Properties of an ExplanationBaseline. */ + interface IExplanationBaseline { - /** - * Verifies a BigQueryDestination 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); + /** ExplanationBaseline gcs */ + gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** - * Creates a BigQueryDestination message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BigQueryDestination - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BigQueryDestination; + /** ExplanationBaseline bigquery */ + bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** - * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. - * @param message BigQueryDestination - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BigQueryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ExplanationBaseline predictionFormat */ + predictionFormat?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); + } - /** - * Converts this BigQueryDestination to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents an ExplanationBaseline. */ + class ExplanationBaseline implements IExplanationBaseline { - /** - * Gets the default type url for BigQueryDestination - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new ExplanationBaseline. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); - /** Properties of a CsvDestination. */ - interface ICsvDestination { + /** ExplanationBaseline gcs. */ + public gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** CsvDestination gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - } + /** ExplanationBaseline bigquery. */ + public bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** Represents a CsvDestination. */ - class CsvDestination implements ICsvDestination { + /** ExplanationBaseline predictionFormat. */ + public predictionFormat: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); - /** - * Constructs a new CsvDestination. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICsvDestination); + /** ExplanationBaseline destination. */ + public destination?: ("gcs"|"bigquery"); - /** CsvDestination gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationBaseline instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** - * Creates a new CsvDestination instance using the specified properties. - * @param [properties] Properties to set - * @returns CsvDestination instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICsvDestination): google.cloud.aiplatform.v1beta1.CsvDestination; + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CsvDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvDestination.verify|verify} messages. - * @param message CsvDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICsvDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CsvDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvDestination.verify|verify} messages. - * @param message CsvDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICsvDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationBaseline + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** - * Decodes a CsvDestination message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CsvDestination - * @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.aiplatform.v1beta1.CsvDestination; + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationBaseline + * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** - * Decodes a CsvDestination message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CsvDestination - * @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.aiplatform.v1beta1.CsvDestination; + /** + * Verifies an ExplanationBaseline 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); - /** - * Verifies a CsvDestination 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 an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationBaseline + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** - * Creates a CsvDestination message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CsvDestination - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CsvDestination; + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @param message ExplanationBaseline + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a CsvDestination message. Also converts values to other types if specified. - * @param message CsvDestination - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CsvDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ExplanationBaseline to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplanationBaseline + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this CsvDestination to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + namespace ExplanationBaseline { - /** - * Gets the default type url for CsvDestination - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** PredictionFormat enum. */ + enum PredictionFormat { + PREDICTION_FORMAT_UNSPECIFIED = 0, + JSONL = 2, + BIGQUERY = 3 + } + } + } } - /** Properties of a TFRecordDestination. */ - interface ITFRecordDestination { + /** Properties of a ModelMonitoringAlertConfig. */ + interface IModelMonitoringAlertConfig { - /** TFRecordDestination gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ModelMonitoringAlertConfig emailAlertConfig */ + emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging */ + enableLogging?: (boolean|null); } - /** Represents a TFRecordDestination. */ - class TFRecordDestination implements ITFRecordDestination { + /** Represents a ModelMonitoringAlertConfig. */ + class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { /** - * Constructs a new TFRecordDestination. + * Constructs a new ModelMonitoringAlertConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITFRecordDestination); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig); - /** TFRecordDestination gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ModelMonitoringAlertConfig emailAlertConfig. */ + public emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging. */ + public enableLogging: boolean; + + /** ModelMonitoringAlertConfig alert. */ + public alert?: "emailAlertConfig"; /** - * Creates a new TFRecordDestination instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @param [properties] Properties to set - * @returns TFRecordDestination instance + * @returns ModelMonitoringAlertConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITFRecordDestination): google.cloud.aiplatform.v1beta1.TFRecordDestination; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Encodes the specified TFRecordDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TFRecordDestination.verify|verify} messages. - * @param message TFRecordDestination message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITFRecordDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TFRecordDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TFRecordDestination.verify|verify} messages. - * @param message TFRecordDestination message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITFRecordDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TFRecordDestination message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TFRecordDestination + * @returns ModelMonitoringAlertConfig * @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.aiplatform.v1beta1.TFRecordDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Decodes a TFRecordDestination message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TFRecordDestination + * @returns ModelMonitoringAlertConfig * @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.aiplatform.v1beta1.TFRecordDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Verifies a TFRecordDestination message. + * Verifies a ModelMonitoringAlertConfig 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 TFRecordDestination message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TFRecordDestination + * @returns ModelMonitoringAlertConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TFRecordDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Creates a plain object from a TFRecordDestination message. Also converts values to other types if specified. - * @param message TFRecordDestination + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringAlertConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.TFRecordDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TFRecordDestination to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TFRecordDestination + * Gets the default type url for ModelMonitoringAlertConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ContainerRegistryDestination. */ - interface IContainerRegistryDestination { + namespace ModelMonitoringAlertConfig { - /** ContainerRegistryDestination outputUri */ - outputUri?: (string|null); + /** Properties of an EmailAlertConfig. */ + interface IEmailAlertConfig { + + /** EmailAlertConfig userEmails */ + userEmails?: (string[]|null); + } + + /** Represents an EmailAlertConfig. */ + class EmailAlertConfig implements IEmailAlertConfig { + + /** + * Constructs a new EmailAlertConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig); + + /** EmailAlertConfig userEmails. */ + public userEmails: string[]; + + /** + * Creates a new EmailAlertConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailAlertConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailAlertConfig + * @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.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmailAlertConfig + * @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.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Verifies an EmailAlertConfig 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 an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmailAlertConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * @param message EmailAlertConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmailAlertConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EmailAlertConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ContainerRegistryDestination. */ - class ContainerRegistryDestination implements IContainerRegistryDestination { + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { + + /** ThresholdConfig value */ + value?: (number|null); + } + + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { /** - * Constructs a new ContainerRegistryDestination. + * Constructs a new ThresholdConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination); + constructor(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig); - /** ContainerRegistryDestination outputUri. */ - public outputUri: string; + /** ThresholdConfig value. */ + public value?: (number|null); + + /** ThresholdConfig threshold. */ + public threshold?: "value"; /** - * Creates a new ContainerRegistryDestination instance using the specified properties. + * Creates a new ThresholdConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ContainerRegistryDestination instance + * @returns ThresholdConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; + public static create(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Encodes the specified ContainerRegistryDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify|verify} messages. - * @param message ContainerRegistryDestination message or plain object to encode + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ContainerRegistryDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify|verify} messages. - * @param message ContainerRegistryDestination message or plain object to encode + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ContainerRegistryDestination message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ContainerRegistryDestination + * @returns ThresholdConfig * @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.aiplatform.v1beta1.ContainerRegistryDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Decodes a ContainerRegistryDestination message from the specified reader or buffer, length delimited. + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ContainerRegistryDestination + * @returns ThresholdConfig * @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.aiplatform.v1beta1.ContainerRegistryDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Verifies a ContainerRegistryDestination message. + * Verifies a ThresholdConfig 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 ContainerRegistryDestination message from a plain object. Also converts values to their respective internal types. + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ContainerRegistryDestination + * @returns ThresholdConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Creates a plain object from a ContainerRegistryDestination message. Also converts values to other types if specified. - * @param message ContainerRegistryDestination + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerRegistryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ContainerRegistryDestination to JSON. + * Converts this ThresholdConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ContainerRegistryDestination + * Gets the default type url for ThresholdConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** JobState enum. */ - enum JobState { - JOB_STATE_UNSPECIFIED = 0, - JOB_STATE_QUEUED = 1, - JOB_STATE_PENDING = 2, - JOB_STATE_RUNNING = 3, - JOB_STATE_SUCCEEDED = 4, - JOB_STATE_FAILED = 5, - JOB_STATE_CANCELLING = 6, - JOB_STATE_CANCELLED = 7, - JOB_STATE_PAUSED = 8, - JOB_STATE_EXPIRED = 9, - JOB_STATE_UPDATING = 10 - } - - /** Properties of a MachineSpec. */ - interface IMachineSpec { - - /** MachineSpec machineType */ - machineType?: (string|null); - - /** MachineSpec acceleratorType */ - acceleratorType?: (google.cloud.aiplatform.v1beta1.AcceleratorType|keyof typeof google.cloud.aiplatform.v1beta1.AcceleratorType|null); + /** Properties of a SamplingStrategy. */ + interface ISamplingStrategy { - /** MachineSpec acceleratorCount */ - acceleratorCount?: (number|null); + /** SamplingStrategy randomSampleConfig */ + randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); } - /** Represents a MachineSpec. */ - class MachineSpec implements IMachineSpec { + /** Represents a SamplingStrategy. */ + class SamplingStrategy implements ISamplingStrategy { /** - * Constructs a new MachineSpec. + * Constructs a new SamplingStrategy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMachineSpec); - - /** MachineSpec machineType. */ - public machineType: string; - - /** MachineSpec acceleratorType. */ - public acceleratorType: (google.cloud.aiplatform.v1beta1.AcceleratorType|keyof typeof google.cloud.aiplatform.v1beta1.AcceleratorType); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy); - /** MachineSpec acceleratorCount. */ - public acceleratorCount: number; + /** SamplingStrategy randomSampleConfig. */ + public randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); /** - * Creates a new MachineSpec instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @param [properties] Properties to set - * @returns MachineSpec instance + * @returns SamplingStrategy instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMachineSpec): google.cloud.aiplatform.v1beta1.MachineSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Encodes the specified MachineSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MachineSpec.verify|verify} messages. - * @param message MachineSpec message or plain object to encode + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMachineSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MachineSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MachineSpec.verify|verify} messages. - * @param message MachineSpec message or plain object to encode + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMachineSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MachineSpec message from the specified reader or buffer. + * Decodes a SamplingStrategy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MachineSpec + * @returns SamplingStrategy * @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.aiplatform.v1beta1.MachineSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Decodes a MachineSpec message from the specified reader or buffer, length delimited. + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MachineSpec + * @returns SamplingStrategy * @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.aiplatform.v1beta1.MachineSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Verifies a MachineSpec message. + * Verifies a SamplingStrategy 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 MachineSpec message from a plain object. Also converts values to their respective internal types. + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MachineSpec + * @returns SamplingStrategy */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MachineSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Creates a plain object from a MachineSpec message. Also converts values to other types if specified. - * @param message MachineSpec + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * @param message SamplingStrategy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MachineSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MachineSpec to JSON. + * Converts this SamplingStrategy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MachineSpec + * Gets the default type url for SamplingStrategy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DedicatedResources. */ - interface IDedicatedResources { + namespace SamplingStrategy { - /** DedicatedResources machineSpec */ - machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** Properties of a RandomSampleConfig. */ + interface IRandomSampleConfig { - /** DedicatedResources minReplicaCount */ - minReplicaCount?: (number|null); + /** RandomSampleConfig sampleRate */ + sampleRate?: (number|null); + } - /** DedicatedResources maxReplicaCount */ - maxReplicaCount?: (number|null); + /** Represents a RandomSampleConfig. */ + class RandomSampleConfig implements IRandomSampleConfig { - /** DedicatedResources autoscalingMetricSpecs */ - autoscalingMetricSpecs?: (google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]|null); + /** + * Constructs a new RandomSampleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig); + + /** RandomSampleConfig sampleRate. */ + public sampleRate: number; + + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RandomSampleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RandomSampleConfig + * @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.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RandomSampleConfig + * @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.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + + /** + * Verifies a RandomSampleConfig 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 RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RandomSampleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @param message RandomSampleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RandomSampleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RandomSampleConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a DedicatedResources. */ - class DedicatedResources implements IDedicatedResources { + /** Properties of an UnmanagedContainerModel. */ + interface IUnmanagedContainerModel { + + /** UnmanagedContainerModel artifactUri */ + artifactUri?: (string|null); + + /** UnmanagedContainerModel predictSchemata */ + predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + + /** UnmanagedContainerModel containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + } + + /** Represents an UnmanagedContainerModel. */ + class UnmanagedContainerModel implements IUnmanagedContainerModel { /** - * Constructs a new DedicatedResources. + * Constructs a new UnmanagedContainerModel. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDedicatedResources); - - /** DedicatedResources machineSpec. */ - public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel); - /** DedicatedResources minReplicaCount. */ - public minReplicaCount: number; + /** UnmanagedContainerModel artifactUri. */ + public artifactUri: string; - /** DedicatedResources maxReplicaCount. */ - public maxReplicaCount: number; + /** UnmanagedContainerModel predictSchemata. */ + public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - /** DedicatedResources autoscalingMetricSpecs. */ - public autoscalingMetricSpecs: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]; + /** UnmanagedContainerModel containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); /** - * Creates a new DedicatedResources instance using the specified properties. + * Creates a new UnmanagedContainerModel instance using the specified properties. * @param [properties] Properties to set - * @returns DedicatedResources instance + * @returns UnmanagedContainerModel instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDedicatedResources): google.cloud.aiplatform.v1beta1.DedicatedResources; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Encodes the specified DedicatedResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DedicatedResources.verify|verify} messages. - * @param message DedicatedResources message or plain object to encode + * Encodes the specified UnmanagedContainerModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. + * @param message UnmanagedContainerModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DedicatedResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DedicatedResources.verify|verify} messages. - * @param message DedicatedResources message or plain object to encode + * Encodes the specified UnmanagedContainerModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. + * @param message UnmanagedContainerModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DedicatedResources message from the specified reader or buffer. + * Decodes an UnmanagedContainerModel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DedicatedResources + * @returns UnmanagedContainerModel * @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.aiplatform.v1beta1.DedicatedResources; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Decodes a DedicatedResources message from the specified reader or buffer, length delimited. + * Decodes an UnmanagedContainerModel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DedicatedResources + * @returns UnmanagedContainerModel * @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.aiplatform.v1beta1.DedicatedResources; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Verifies a DedicatedResources message. + * Verifies an UnmanagedContainerModel 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 DedicatedResources message from a plain object. Also converts values to their respective internal types. + * Creates an UnmanagedContainerModel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DedicatedResources + * @returns UnmanagedContainerModel */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DedicatedResources; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Creates a plain object from a DedicatedResources message. Also converts values to other types if specified. - * @param message DedicatedResources + * Creates a plain object from an UnmanagedContainerModel message. Also converts values to other types if specified. + * @param message UnmanagedContainerModel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DedicatedResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UnmanagedContainerModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DedicatedResources to JSON. + * Converts this UnmanagedContainerModel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DedicatedResources + * Gets the default type url for UnmanagedContainerModel * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutomaticResources. */ - interface IAutomaticResources { + /** Properties of a Model. */ + interface IModel { - /** AutomaticResources minReplicaCount */ - minReplicaCount?: (number|null); + /** Model name */ + name?: (string|null); - /** AutomaticResources maxReplicaCount */ - maxReplicaCount?: (number|null); + /** Model versionId */ + versionId?: (string|null); + + /** Model versionAliases */ + versionAliases?: (string[]|null); + + /** Model versionCreateTime */ + versionCreateTime?: (google.protobuf.ITimestamp|null); + + /** Model versionUpdateTime */ + versionUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Model displayName */ + displayName?: (string|null); + + /** Model description */ + description?: (string|null); + + /** Model versionDescription */ + versionDescription?: (string|null); + + /** Model predictSchemata */ + predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + + /** Model metadataSchemaUri */ + metadataSchemaUri?: (string|null); + + /** Model metadata */ + metadata?: (google.protobuf.IValue|null); + + /** Model supportedExportFormats */ + supportedExportFormats?: (google.cloud.aiplatform.v1beta1.Model.IExportFormat[]|null); + + /** Model trainingPipeline */ + trainingPipeline?: (string|null); + + /** Model containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + + /** Model artifactUri */ + artifactUri?: (string|null); + + /** Model supportedDeploymentResourcesTypes */ + supportedDeploymentResourcesTypes?: (google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]|null); + + /** Model supportedInputStorageFormats */ + supportedInputStorageFormats?: (string[]|null); + + /** Model supportedOutputStorageFormats */ + supportedOutputStorageFormats?: (string[]|null); + + /** Model createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Model updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Model deployedModels */ + deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); + + /** Model explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** Model etag */ + etag?: (string|null); + + /** Model labels */ + labels?: ({ [k: string]: string }|null); + + /** Model encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Model modelSourceInfo */ + modelSourceInfo?: (google.cloud.aiplatform.v1beta1.IModelSourceInfo|null); + + /** Model originalModelInfo */ + originalModelInfo?: (google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo|null); + + /** Model metadataArtifact */ + metadataArtifact?: (string|null); } - /** Represents an AutomaticResources. */ - class AutomaticResources implements IAutomaticResources { + /** Represents a Model. */ + class Model implements IModel { /** - * Constructs a new AutomaticResources. + * Constructs a new Model. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAutomaticResources); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModel); - /** AutomaticResources minReplicaCount. */ - public minReplicaCount: number; + /** Model name. */ + public name: string; - /** AutomaticResources maxReplicaCount. */ - public maxReplicaCount: number; + /** Model versionId. */ + public versionId: string; + + /** Model versionAliases. */ + public versionAliases: string[]; + + /** Model versionCreateTime. */ + public versionCreateTime?: (google.protobuf.ITimestamp|null); + + /** Model versionUpdateTime. */ + public versionUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Model displayName. */ + public displayName: string; + + /** Model description. */ + public description: string; + + /** Model versionDescription. */ + public versionDescription: string; + + /** Model predictSchemata. */ + public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + + /** Model metadataSchemaUri. */ + public metadataSchemaUri: string; + + /** Model metadata. */ + public metadata?: (google.protobuf.IValue|null); + + /** Model supportedExportFormats. */ + public supportedExportFormats: google.cloud.aiplatform.v1beta1.Model.IExportFormat[]; + + /** Model trainingPipeline. */ + public trainingPipeline: string; + + /** Model containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + + /** Model artifactUri. */ + public artifactUri: string; + + /** Model supportedDeploymentResourcesTypes. */ + public supportedDeploymentResourcesTypes: google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]; + + /** Model supportedInputStorageFormats. */ + public supportedInputStorageFormats: string[]; + + /** Model supportedOutputStorageFormats. */ + public supportedOutputStorageFormats: string[]; + + /** Model createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Model updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Model deployedModels. */ + public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + + /** Model explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** Model etag. */ + public etag: string; + + /** Model labels. */ + public labels: { [k: string]: string }; + + /** Model encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Model modelSourceInfo. */ + public modelSourceInfo?: (google.cloud.aiplatform.v1beta1.IModelSourceInfo|null); + + /** Model originalModelInfo. */ + public originalModelInfo?: (google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo|null); + + /** Model metadataArtifact. */ + public metadataArtifact: string; /** - * Creates a new AutomaticResources instance using the specified properties. + * Creates a new Model instance using the specified properties. * @param [properties] Properties to set - * @returns AutomaticResources instance + * @returns Model instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAutomaticResources): google.cloud.aiplatform.v1beta1.AutomaticResources; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModel): google.cloud.aiplatform.v1beta1.Model; /** - * Encodes the specified AutomaticResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutomaticResources.verify|verify} messages. - * @param message AutomaticResources message or plain object to encode + * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. + * @param message Model message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAutomaticResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutomaticResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutomaticResources.verify|verify} messages. - * @param message AutomaticResources message or plain object to encode + * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. + * @param message Model message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAutomaticResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutomaticResources message from the specified reader or buffer. + * Decodes a Model message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutomaticResources + * @returns Model * @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.aiplatform.v1beta1.AutomaticResources; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Model; /** - * Decodes an AutomaticResources message from the specified reader or buffer, length delimited. + * Decodes a Model message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutomaticResources + * @returns Model * @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.aiplatform.v1beta1.AutomaticResources; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Model; /** - * Verifies an AutomaticResources message. + * Verifies a Model 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 an AutomaticResources message from a plain object. Also converts values to their respective internal types. + * Creates a Model message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutomaticResources + * @returns Model */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AutomaticResources; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model; /** - * Creates a plain object from an AutomaticResources message. Also converts values to other types if specified. - * @param message AutomaticResources + * Creates a plain object from a Model message. Also converts values to other types if specified. + * @param message Model * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AutomaticResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Model, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutomaticResources to JSON. + * Converts this Model to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutomaticResources + * Gets the default type url for Model * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchDedicatedResources. */ - interface IBatchDedicatedResources { + namespace Model { - /** BatchDedicatedResources machineSpec */ - machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** Properties of an ExportFormat. */ + interface IExportFormat { - /** BatchDedicatedResources startingReplicaCount */ - startingReplicaCount?: (number|null); + /** ExportFormat id */ + id?: (string|null); - /** BatchDedicatedResources maxReplicaCount */ - maxReplicaCount?: (number|null); + /** ExportFormat exportableContents */ + exportableContents?: (google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]|null); + } + + /** Represents an ExportFormat. */ + class ExportFormat implements IExportFormat { + + /** + * Constructs a new ExportFormat. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat); + + /** ExportFormat id. */ + public id: string; + + /** ExportFormat exportableContents. */ + public exportableContents: google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]; + + /** + * Creates a new ExportFormat instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFormat instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + + /** + * Encodes the specified ExportFormat message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * @param message ExportFormat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExportFormat message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * @param message ExportFormat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExportFormat message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportFormat + * @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.aiplatform.v1beta1.Model.ExportFormat; + + /** + * Decodes an ExportFormat message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportFormat + * @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.aiplatform.v1beta1.Model.ExportFormat; + + /** + * Verifies an ExportFormat 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 an ExportFormat message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFormat + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + + /** + * Creates a plain object from an ExportFormat message. Also converts values to other types if specified. + * @param message ExportFormat + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Model.ExportFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportFormat to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExportFormat + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExportFormat { + + /** ExportableContent enum. */ + enum ExportableContent { + EXPORTABLE_CONTENT_UNSPECIFIED = 0, + ARTIFACT = 1, + IMAGE = 2 + } + } + + /** Properties of an OriginalModelInfo. */ + interface IOriginalModelInfo { + + /** OriginalModelInfo model */ + model?: (string|null); + } + + /** Represents an OriginalModelInfo. */ + class OriginalModelInfo implements IOriginalModelInfo { + + /** + * Constructs a new OriginalModelInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo); + + /** OriginalModelInfo model. */ + public model: string; + + /** + * Creates a new OriginalModelInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OriginalModelInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo): google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo; + + /** + * Encodes the specified OriginalModelInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify|verify} messages. + * @param message OriginalModelInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OriginalModelInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify|verify} messages. + * @param message OriginalModelInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OriginalModelInfo + * @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.aiplatform.v1beta1.Model.OriginalModelInfo; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OriginalModelInfo + * @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.aiplatform.v1beta1.Model.OriginalModelInfo; + + /** + * Verifies an OriginalModelInfo 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 an OriginalModelInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OriginalModelInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo; + + /** + * Creates a plain object from an OriginalModelInfo message. Also converts values to other types if specified. + * @param message OriginalModelInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OriginalModelInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OriginalModelInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** DeploymentResourcesType enum. */ + enum DeploymentResourcesType { + DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0, + DEDICATED_RESOURCES = 1, + AUTOMATIC_RESOURCES = 2, + SHARED_RESOURCES = 3 + } } - /** Represents a BatchDedicatedResources. */ - class BatchDedicatedResources implements IBatchDedicatedResources { + /** Properties of a PredictSchemata. */ + interface IPredictSchemata { + + /** PredictSchemata instanceSchemaUri */ + instanceSchemaUri?: (string|null); + + /** PredictSchemata parametersSchemaUri */ + parametersSchemaUri?: (string|null); + + /** PredictSchemata predictionSchemaUri */ + predictionSchemaUri?: (string|null); + } + + /** Represents a PredictSchemata. */ + class PredictSchemata implements IPredictSchemata { /** - * Constructs a new BatchDedicatedResources. + * Constructs a new PredictSchemata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata); - /** BatchDedicatedResources machineSpec. */ - public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** PredictSchemata instanceSchemaUri. */ + public instanceSchemaUri: string; - /** BatchDedicatedResources startingReplicaCount. */ - public startingReplicaCount: number; + /** PredictSchemata parametersSchemaUri. */ + public parametersSchemaUri: string; - /** BatchDedicatedResources maxReplicaCount. */ - public maxReplicaCount: number; + /** PredictSchemata predictionSchemaUri. */ + public predictionSchemaUri: string; /** - * Creates a new BatchDedicatedResources instance using the specified properties. + * Creates a new PredictSchemata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDedicatedResources instance + * @returns PredictSchemata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Encodes the specified BatchDedicatedResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDedicatedResources.verify|verify} messages. - * @param message BatchDedicatedResources message or plain object to encode + * Encodes the specified PredictSchemata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. + * @param message PredictSchemata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDedicatedResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDedicatedResources.verify|verify} messages. - * @param message BatchDedicatedResources message or plain object to encode + * Encodes the specified PredictSchemata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. + * @param message PredictSchemata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDedicatedResources message from the specified reader or buffer. + * Decodes a PredictSchemata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchDedicatedResources + * @returns PredictSchemata * @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.aiplatform.v1beta1.BatchDedicatedResources; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Decodes a BatchDedicatedResources message from the specified reader or buffer, length delimited. + * Decodes a PredictSchemata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchDedicatedResources + * @returns PredictSchemata * @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.aiplatform.v1beta1.BatchDedicatedResources; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Verifies a BatchDedicatedResources message. + * Verifies a PredictSchemata 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 BatchDedicatedResources message from a plain object. Also converts values to their respective internal types. + * Creates a PredictSchemata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchDedicatedResources + * @returns PredictSchemata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Creates a plain object from a BatchDedicatedResources message. Also converts values to other types if specified. - * @param message BatchDedicatedResources + * Creates a plain object from a PredictSchemata message. Also converts values to other types if specified. + * @param message PredictSchemata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDedicatedResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredictSchemata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDedicatedResources to JSON. + * Converts this PredictSchemata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchDedicatedResources + * Gets the default type url for PredictSchemata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResourcesConsumed. */ - interface IResourcesConsumed { + /** Properties of a ModelContainerSpec. */ + interface IModelContainerSpec { - /** ResourcesConsumed replicaHours */ - replicaHours?: (number|null); + /** ModelContainerSpec imageUri */ + imageUri?: (string|null); + + /** ModelContainerSpec command */ + command?: (string[]|null); + + /** ModelContainerSpec args */ + args?: (string[]|null); + + /** ModelContainerSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + + /** ModelContainerSpec ports */ + ports?: (google.cloud.aiplatform.v1beta1.IPort[]|null); + + /** ModelContainerSpec predictRoute */ + predictRoute?: (string|null); + + /** ModelContainerSpec healthRoute */ + healthRoute?: (string|null); } - /** Represents a ResourcesConsumed. */ - class ResourcesConsumed implements IResourcesConsumed { + /** Represents a ModelContainerSpec. */ + class ModelContainerSpec implements IModelContainerSpec { /** - * Constructs a new ResourcesConsumed. + * Constructs a new ModelContainerSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResourcesConsumed); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec); - /** ResourcesConsumed replicaHours. */ - public replicaHours: number; + /** ModelContainerSpec imageUri. */ + public imageUri: string; + + /** ModelContainerSpec command. */ + public command: string[]; + + /** ModelContainerSpec args. */ + public args: string[]; + + /** ModelContainerSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + + /** ModelContainerSpec ports. */ + public ports: google.cloud.aiplatform.v1beta1.IPort[]; + + /** ModelContainerSpec predictRoute. */ + public predictRoute: string; + + /** ModelContainerSpec healthRoute. */ + public healthRoute: string; /** - * Creates a new ResourcesConsumed instance using the specified properties. + * Creates a new ModelContainerSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ResourcesConsumed instance + * @returns ModelContainerSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResourcesConsumed): google.cloud.aiplatform.v1beta1.ResourcesConsumed; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Encodes the specified ResourcesConsumed message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcesConsumed.verify|verify} messages. - * @param message ResourcesConsumed message or plain object to encode + * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. + * @param message ModelContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResourcesConsumed, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourcesConsumed message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcesConsumed.verify|verify} messages. - * @param message ResourcesConsumed message or plain object to encode + * Encodes the specified ModelContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. + * @param message ModelContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourcesConsumed, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourcesConsumed message from the specified reader or buffer. + * Decodes a ModelContainerSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourcesConsumed + * @returns ModelContainerSpec * @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.aiplatform.v1beta1.ResourcesConsumed; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Decodes a ResourcesConsumed message from the specified reader or buffer, length delimited. + * Decodes a ModelContainerSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourcesConsumed + * @returns ModelContainerSpec * @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.aiplatform.v1beta1.ResourcesConsumed; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Verifies a ResourcesConsumed message. + * Verifies a ModelContainerSpec 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 ResourcesConsumed message from a plain object. Also converts values to their respective internal types. + * Creates a ModelContainerSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourcesConsumed + * @returns ModelContainerSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourcesConsumed; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Creates a plain object from a ResourcesConsumed message. Also converts values to other types if specified. - * @param message ResourcesConsumed + * Creates a plain object from a ModelContainerSpec message. Also converts values to other types if specified. + * @param message ModelContainerSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResourcesConsumed, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourcesConsumed to JSON. + * Converts this ModelContainerSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourcesConsumed + * Gets the default type url for ModelContainerSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DiskSpec. */ - interface IDiskSpec { - - /** DiskSpec bootDiskType */ - bootDiskType?: (string|null); + /** Properties of a Port. */ + interface IPort { - /** DiskSpec bootDiskSizeGb */ - bootDiskSizeGb?: (number|null); + /** Port containerPort */ + containerPort?: (number|null); } - /** Represents a DiskSpec. */ - class DiskSpec implements IDiskSpec { + /** Represents a Port. */ + class Port implements IPort { /** - * Constructs a new DiskSpec. + * Constructs a new Port. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDiskSpec); - - /** DiskSpec bootDiskType. */ - public bootDiskType: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPort); - /** DiskSpec bootDiskSizeGb. */ - public bootDiskSizeGb: number; + /** Port containerPort. */ + public containerPort: number; /** - * Creates a new DiskSpec instance using the specified properties. + * Creates a new Port instance using the specified properties. * @param [properties] Properties to set - * @returns DiskSpec instance + * @returns Port instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDiskSpec): google.cloud.aiplatform.v1beta1.DiskSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPort): google.cloud.aiplatform.v1beta1.Port; /** - * Encodes the specified DiskSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DiskSpec.verify|verify} messages. - * @param message DiskSpec message or plain object to encode + * Encodes the specified Port message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. + * @param message Port message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDiskSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DiskSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DiskSpec.verify|verify} messages. - * @param message DiskSpec message or plain object to encode + * Encodes the specified Port message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. + * @param message Port message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDiskSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DiskSpec message from the specified reader or buffer. + * Decodes a Port message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DiskSpec + * @returns Port * @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.aiplatform.v1beta1.DiskSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Port; /** - * Decodes a DiskSpec message from the specified reader or buffer, length delimited. + * Decodes a Port message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DiskSpec + * @returns Port * @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.aiplatform.v1beta1.DiskSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Port; /** - * Verifies a DiskSpec message. + * Verifies a Port 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 DiskSpec message from a plain object. Also converts values to their respective internal types. + * Creates a Port message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DiskSpec + * @returns Port */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DiskSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Port; /** - * Creates a plain object from a DiskSpec message. Also converts values to other types if specified. - * @param message DiskSpec + * Creates a plain object from a Port message. Also converts values to other types if specified. + * @param message Port * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DiskSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Port, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DiskSpec to JSON. + * Converts this Port to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DiskSpec + * Gets the default type url for Port * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NfsMount. */ - interface INfsMount { - - /** NfsMount server */ - server?: (string|null); - - /** NfsMount path */ - path?: (string|null); + /** Properties of a ModelSourceInfo. */ + interface IModelSourceInfo { - /** NfsMount mountPoint */ - mountPoint?: (string|null); + /** ModelSourceInfo sourceType */ + sourceType?: (google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|keyof typeof google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|null); } - /** Represents a NfsMount. */ - class NfsMount implements INfsMount { + /** Represents a ModelSourceInfo. */ + class ModelSourceInfo implements IModelSourceInfo { /** - * Constructs a new NfsMount. + * Constructs a new ModelSourceInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.INfsMount); - - /** NfsMount server. */ - public server: string; - - /** NfsMount path. */ - public path: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelSourceInfo); - /** NfsMount mountPoint. */ - public mountPoint: string; + /** ModelSourceInfo sourceType. */ + public sourceType: (google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|keyof typeof google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType); /** - * Creates a new NfsMount instance using the specified properties. + * Creates a new ModelSourceInfo instance using the specified properties. * @param [properties] Properties to set - * @returns NfsMount instance + * @returns ModelSourceInfo instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.INfsMount): google.cloud.aiplatform.v1beta1.NfsMount; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelSourceInfo): google.cloud.aiplatform.v1beta1.ModelSourceInfo; /** - * Encodes the specified NfsMount message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. - * @param message NfsMount message or plain object to encode + * Encodes the specified ModelSourceInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelSourceInfo.verify|verify} messages. + * @param message ModelSourceInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NfsMount message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. - * @param message NfsMount message or plain object to encode + * Encodes the specified ModelSourceInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelSourceInfo.verify|verify} messages. + * @param message ModelSourceInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NfsMount message from the specified reader or buffer. + * Decodes a ModelSourceInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NfsMount + * @returns ModelSourceInfo * @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.aiplatform.v1beta1.NfsMount; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelSourceInfo; /** - * Decodes a NfsMount message from the specified reader or buffer, length delimited. + * Decodes a ModelSourceInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NfsMount + * @returns ModelSourceInfo * @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.aiplatform.v1beta1.NfsMount; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelSourceInfo; /** - * Verifies a NfsMount message. + * Verifies a ModelSourceInfo 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 NfsMount message from a plain object. Also converts values to their respective internal types. + * Creates a ModelSourceInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NfsMount + * @returns ModelSourceInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NfsMount; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelSourceInfo; /** - * Creates a plain object from a NfsMount message. Also converts values to other types if specified. - * @param message NfsMount + * Creates a plain object from a ModelSourceInfo message. Also converts values to other types if specified. + * @param message ModelSourceInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NfsMount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelSourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NfsMount to JSON. + * Converts this ModelSourceInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NfsMount + * Gets the default type url for ModelSourceInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoscalingMetricSpec. */ - interface IAutoscalingMetricSpec { + namespace ModelSourceInfo { - /** AutoscalingMetricSpec metricName */ - metricName?: (string|null); + /** ModelSourceType enum. */ + enum ModelSourceType { + MODEL_SOURCE_TYPE_UNSPECIFIED = 0, + AUTOML = 1, + CUSTOM = 2, + BQML = 3 + } + } - /** AutoscalingMetricSpec target */ - target?: (number|null); + /** Properties of a DeployedModelRef. */ + interface IDeployedModelRef { + + /** DeployedModelRef endpoint */ + endpoint?: (string|null); + + /** DeployedModelRef deployedModelId */ + deployedModelId?: (string|null); } - /** Represents an AutoscalingMetricSpec. */ - class AutoscalingMetricSpec implements IAutoscalingMetricSpec { + /** Represents a DeployedModelRef. */ + class DeployedModelRef implements IDeployedModelRef { /** - * Constructs a new AutoscalingMetricSpec. + * Constructs a new DeployedModelRef. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef); - /** AutoscalingMetricSpec metricName. */ - public metricName: string; + /** DeployedModelRef endpoint. */ + public endpoint: string; - /** AutoscalingMetricSpec target. */ - public target: number; + /** DeployedModelRef deployedModelId. */ + public deployedModelId: string; /** - * Creates a new AutoscalingMetricSpec instance using the specified properties. + * Creates a new DeployedModelRef instance using the specified properties. * @param [properties] Properties to set - * @returns AutoscalingMetricSpec instance + * @returns DeployedModelRef instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Encodes the specified AutoscalingMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.verify|verify} messages. - * @param message AutoscalingMetricSpec message or plain object to encode + * Encodes the specified DeployedModelRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. + * @param message DeployedModelRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoscalingMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.verify|verify} messages. - * @param message AutoscalingMetricSpec message or plain object to encode + * Encodes the specified DeployedModelRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. + * @param message DeployedModelRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoscalingMetricSpec message from the specified reader or buffer. + * Decodes a DeployedModelRef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoscalingMetricSpec + * @returns DeployedModelRef * @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.aiplatform.v1beta1.AutoscalingMetricSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Decodes an AutoscalingMetricSpec message from the specified reader or buffer, length delimited. + * Decodes a DeployedModelRef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoscalingMetricSpec + * @returns DeployedModelRef * @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.aiplatform.v1beta1.AutoscalingMetricSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Verifies an AutoscalingMetricSpec message. + * Verifies a DeployedModelRef 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 an AutoscalingMetricSpec message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedModelRef message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoscalingMetricSpec + * @returns DeployedModelRef */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Creates a plain object from an AutoscalingMetricSpec message. Also converts values to other types if specified. - * @param message AutoscalingMetricSpec + * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. + * @param message DeployedModelRef * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModelRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoscalingMetricSpec to JSON. + * Converts this DeployedModelRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoscalingMetricSpec + * Gets the default type url for DeployedModelRef * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ManualBatchTuningParameters. */ - interface IManualBatchTuningParameters { + /** Properties of an EnvVar. */ + interface IEnvVar { - /** ManualBatchTuningParameters batchSize */ - batchSize?: (number|null); + /** EnvVar name */ + name?: (string|null); + + /** EnvVar value */ + value?: (string|null); } - /** Represents a ManualBatchTuningParameters. */ - class ManualBatchTuningParameters implements IManualBatchTuningParameters { + /** Represents an EnvVar. */ + class EnvVar implements IEnvVar { /** - * Constructs a new ManualBatchTuningParameters. + * Constructs a new EnvVar. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEnvVar); - /** ManualBatchTuningParameters batchSize. */ - public batchSize: number; + /** EnvVar name. */ + public name: string; + + /** EnvVar value. */ + public value: string; /** - * Creates a new ManualBatchTuningParameters instance using the specified properties. + * Creates a new EnvVar instance using the specified properties. * @param [properties] Properties to set - * @returns ManualBatchTuningParameters instance + * @returns EnvVar instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEnvVar): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Encodes the specified ManualBatchTuningParameters message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.verify|verify} messages. - * @param message ManualBatchTuningParameters message or plain object to encode + * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. + * @param message EnvVar message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ManualBatchTuningParameters message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.verify|verify} messages. - * @param message ManualBatchTuningParameters message or plain object to encode + * Encodes the specified EnvVar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. + * @param message EnvVar message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ManualBatchTuningParameters message from the specified reader or buffer. + * Decodes an EnvVar message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ManualBatchTuningParameters + * @returns EnvVar * @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.aiplatform.v1beta1.ManualBatchTuningParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Decodes a ManualBatchTuningParameters message from the specified reader or buffer, length delimited. + * Decodes an EnvVar message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ManualBatchTuningParameters + * @returns EnvVar * @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.aiplatform.v1beta1.ManualBatchTuningParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Verifies a ManualBatchTuningParameters message. + * Verifies an EnvVar 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 ManualBatchTuningParameters message from a plain object. Also converts values to their respective internal types. + * Creates an EnvVar message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ManualBatchTuningParameters + * @returns EnvVar */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Creates a plain object from a ManualBatchTuningParameters message. Also converts values to other types if specified. - * @param message ManualBatchTuningParameters + * Creates a plain object from an EnvVar message. Also converts values to other types if specified. + * @param message EnvVar * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ManualBatchTuningParameters to JSON. + * Converts this EnvVar to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ManualBatchTuningParameters + * Gets the default type url for EnvVar * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** ModelDeploymentMonitoringObjectiveType enum. */ - enum ModelDeploymentMonitoringObjectiveType { - MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, - RAW_FEATURE_SKEW = 1, - RAW_FEATURE_DRIFT = 2, - FEATURE_ATTRIBUTION_SKEW = 3, - FEATURE_ATTRIBUTION_DRIFT = 4 - } - - /** Properties of a ModelDeploymentMonitoringJob. */ - interface IModelDeploymentMonitoringJob { + /** Properties of a Context. */ + interface IContext { - /** ModelDeploymentMonitoringJob name */ + /** Context name */ name?: (string|null); - /** ModelDeploymentMonitoringJob displayName */ + /** Context displayName */ displayName?: (string|null); - /** ModelDeploymentMonitoringJob endpoint */ - endpoint?: (string|null); - - /** ModelDeploymentMonitoringJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** ModelDeploymentMonitoringJob scheduleState */ - scheduleState?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ - latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ - modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ - modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ - modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ - predictInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob samplePredictInstance */ - samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob bigqueryTables */ - bigqueryTables?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]|null); - - /** ModelDeploymentMonitoringJob logTtl */ - logTtl?: (google.protobuf.IDuration|null); + /** Context etag */ + etag?: (string|null); - /** ModelDeploymentMonitoringJob labels */ + /** Context labels */ labels?: ({ [k: string]: string }|null); - /** ModelDeploymentMonitoringJob createTime */ + /** Context createTime */ createTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob updateTime */ + /** Context updateTime */ updateTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob nextScheduleTime */ - nextScheduleTime?: (google.protobuf.ITimestamp|null); + /** Context parentContexts */ + parentContexts?: (string[]|null); - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Context schemaTitle */ + schemaTitle?: (string|null); - /** ModelDeploymentMonitoringJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Context schemaVersion */ + schemaVersion?: (string|null); - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ - enableMonitoringPipelineLogs?: (boolean|null); + /** Context metadata */ + metadata?: (google.protobuf.IStruct|null); - /** ModelDeploymentMonitoringJob error */ - error?: (google.rpc.IStatus|null); + /** Context description */ + description?: (string|null); } - /** Represents a ModelDeploymentMonitoringJob. */ - class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { + /** Represents a Context. */ + class Context implements IContext { /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new Context. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob); + constructor(properties?: google.cloud.aiplatform.v1beta1.IContext); - /** ModelDeploymentMonitoringJob name. */ + /** Context name. */ public name: string; - /** ModelDeploymentMonitoringJob displayName. */ + /** Context displayName. */ public displayName: string; - /** ModelDeploymentMonitoringJob endpoint. */ - public endpoint: string; - - /** ModelDeploymentMonitoringJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** ModelDeploymentMonitoringJob scheduleState. */ - public scheduleState: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ - public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ - public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]; - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ - public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ - public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ - public predictInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob samplePredictInstance. */ - public samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob bigqueryTables. */ - public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; - - /** ModelDeploymentMonitoringJob logTtl. */ - public logTtl?: (google.protobuf.IDuration|null); + /** Context etag. */ + public etag: string; - /** ModelDeploymentMonitoringJob labels. */ + /** Context labels. */ public labels: { [k: string]: string }; - /** ModelDeploymentMonitoringJob createTime. */ + /** Context createTime. */ public createTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob updateTime. */ + /** Context updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob nextScheduleTime. */ - public nextScheduleTime?: (google.protobuf.ITimestamp|null); + /** Context parentContexts. */ + public parentContexts: string[]; - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Context schemaTitle. */ + public schemaTitle: string; - /** ModelDeploymentMonitoringJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Context schemaVersion. */ + public schemaVersion: string; - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ - public enableMonitoringPipelineLogs: boolean; + /** Context metadata. */ + public metadata?: (google.protobuf.IStruct|null); - /** ModelDeploymentMonitoringJob error. */ - public error?: (google.rpc.IStatus|null); + /** Context description. */ + public description: string; /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new Context instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringJob instance + * @returns Context instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContext): google.cloud.aiplatform.v1beta1.Context; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. + * @param message Context message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. + * @param message Context message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a Context message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringJob + * @returns Context * @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.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Context; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a Context message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringJob + * @returns Context * @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.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Context; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a Context 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 ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a Context message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringJob + * @returns Context */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Context; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringJob + * Creates a plain object from a Context message. Also converts values to other types if specified. + * @param message Context * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Context, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this Context to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for Context * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringJob { - - /** Properties of a LatestMonitoringPipelineMetadata. */ - interface ILatestMonitoringPipelineMetadata { + /** Properties of a CustomJob. */ + interface ICustomJob { - /** LatestMonitoringPipelineMetadata runTime */ - runTime?: (google.protobuf.ITimestamp|null); + /** CustomJob name */ + name?: (string|null); - /** LatestMonitoringPipelineMetadata status */ - status?: (google.rpc.IStatus|null); - } + /** CustomJob displayName */ + displayName?: (string|null); - /** Represents a LatestMonitoringPipelineMetadata. */ - class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + /** CustomJob jobSpec */ + jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** - * Constructs a new LatestMonitoringPipelineMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + /** CustomJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** LatestMonitoringPipelineMetadata runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); + /** CustomJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** LatestMonitoringPipelineMetadata status. */ - public status?: (google.rpc.IStatus|null); + /** CustomJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns LatestMonitoringPipelineMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** CustomJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomJob error */ + error?: (google.rpc.IStatus|null); - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LatestMonitoringPipelineMetadata - * @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.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** CustomJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LatestMonitoringPipelineMetadata - * @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.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** CustomJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** - * Verifies a LatestMonitoringPipelineMetadata 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); + /** CustomJob webAccessUris */ + webAccessUris?: ({ [k: string]: string }|null); + } - /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LatestMonitoringPipelineMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** Represents a CustomJob. */ + class CustomJob implements ICustomJob { - /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @param message LatestMonitoringPipelineMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new CustomJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJob); - /** - * Converts this LatestMonitoringPipelineMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CustomJob name. */ + public name: string; - /** - * Gets the default type url for LatestMonitoringPipelineMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CustomJob displayName. */ + public displayName: string; - /** MonitoringScheduleState enum. */ - enum MonitoringScheduleState { - MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, - PENDING = 1, - OFFLINE = 2, - RUNNING = 3 - } - } + /** CustomJob jobSpec. */ + public jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ - interface IModelDeploymentMonitoringBigQueryTable { + /** CustomJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** ModelDeploymentMonitoringBigQueryTable logSource */ - logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); + /** CustomJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringBigQueryTable logType */ - logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + /** CustomJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ - bigqueryTablePath?: (string|null); - } + /** CustomJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** Represents a ModelDeploymentMonitoringBigQueryTable. */ - class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { + /** CustomJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); + /** CustomJob error. */ + public error?: (google.rpc.IStatus|null); - /** ModelDeploymentMonitoringBigQueryTable logSource. */ - public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); + /** CustomJob labels. */ + public labels: { [k: string]: string }; - /** ModelDeploymentMonitoringBigQueryTable logType. */ - public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); + /** CustomJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ - public bigqueryTablePath: string; + /** CustomJob webAccessUris. */ + public webAccessUris: { [k: string]: string }; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new CustomJob instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringBigQueryTable instance + * @returns CustomJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJob): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. + * @param message CustomJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. + * @param message CustomJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a CustomJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns CustomJob * @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.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a CustomJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns CustomJob * @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.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a CustomJob 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 ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a CustomJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns CustomJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringBigQueryTable + * Creates a plain object from a CustomJob message. Also converts values to other types if specified. + * @param message CustomJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this CustomJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for CustomJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringBigQueryTable { + /** Properties of a CustomJobSpec. */ + interface ICustomJobSpec { - /** LogSource enum. */ - enum LogSource { - LOG_SOURCE_UNSPECIFIED = 0, - TRAINING = 1, - SERVING = 2 - } + /** CustomJobSpec workerPoolSpecs */ + workerPoolSpecs?: (google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]|null); - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - PREDICT = 1, - EXPLAIN = 2 - } - } + /** CustomJobSpec scheduling */ + scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ - interface IModelDeploymentMonitoringObjectiveConfig { + /** CustomJobSpec serviceAccount */ + serviceAccount?: (string|null); - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ - deployedModelId?: (string|null); + /** CustomJobSpec network */ + network?: (string|null); - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ - objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + /** CustomJobSpec reservedIpRanges */ + reservedIpRanges?: (string[]|null); + + /** CustomJobSpec baseOutputDirectory */ + baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** CustomJobSpec tensorboard */ + tensorboard?: (string|null); + + /** CustomJobSpec enableWebAccess */ + enableWebAccess?: (boolean|null); + + /** CustomJobSpec enableDashboardAccess */ + enableDashboardAccess?: (boolean|null); } - /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ - class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { + /** Represents a CustomJobSpec. */ + class CustomJobSpec implements ICustomJobSpec { /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new CustomJobSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec); - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ - public deployedModelId: string; + /** CustomJobSpec workerPoolSpecs. */ + public workerPoolSpecs: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]; - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ - public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + /** CustomJobSpec scheduling. */ + public scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); + + /** CustomJobSpec serviceAccount. */ + public serviceAccount: string; + + /** CustomJobSpec network. */ + public network: string; + + /** CustomJobSpec reservedIpRanges. */ + public reservedIpRanges: string[]; + + /** CustomJobSpec baseOutputDirectory. */ + public baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** CustomJobSpec tensorboard. */ + public tensorboard: string; + + /** CustomJobSpec enableWebAccess. */ + public enableWebAccess: boolean; + + /** CustomJobSpec enableDashboardAccess. */ + public enableDashboardAccess: boolean; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new CustomJobSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringObjectiveConfig instance + * @returns CustomJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified CustomJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. + * @param message CustomJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified CustomJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. + * @param message CustomJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a CustomJobSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns CustomJobSpec * @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.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a CustomJobSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns CustomJobSpec * @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.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies a CustomJobSpec 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 ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CustomJobSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns CustomJobSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringObjectiveConfig + * Creates a plain object from a CustomJobSpec message. Also converts values to other types if specified. + * @param message CustomJobSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this CustomJobSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for CustomJobSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ - interface IModelDeploymentMonitoringScheduleConfig { + /** Properties of a WorkerPoolSpec. */ + interface IWorkerPoolSpec { + + /** WorkerPoolSpec containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); + + /** WorkerPoolSpec pythonPackageSpec */ + pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); + + /** WorkerPoolSpec machineSpec */ + machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** WorkerPoolSpec replicaCount */ + replicaCount?: (number|Long|string|null); - /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ - monitorInterval?: (google.protobuf.IDuration|null); + /** WorkerPoolSpec nfsMounts */ + nfsMounts?: (google.cloud.aiplatform.v1beta1.INfsMount[]|null); - /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ - monitorWindow?: (google.protobuf.IDuration|null); + /** WorkerPoolSpec diskSpec */ + diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); } - /** Represents a ModelDeploymentMonitoringScheduleConfig. */ - class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { + /** Represents a WorkerPoolSpec. */ + class WorkerPoolSpec implements IWorkerPoolSpec { /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new WorkerPoolSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec); - /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ - public monitorInterval?: (google.protobuf.IDuration|null); + /** WorkerPoolSpec containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ - public monitorWindow?: (google.protobuf.IDuration|null); + /** WorkerPoolSpec pythonPackageSpec. */ + public pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); + + /** WorkerPoolSpec machineSpec. */ + public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** WorkerPoolSpec replicaCount. */ + public replicaCount: (number|Long|string); + + /** WorkerPoolSpec nfsMounts. */ + public nfsMounts: google.cloud.aiplatform.v1beta1.INfsMount[]; + + /** WorkerPoolSpec diskSpec. */ + public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + + /** WorkerPoolSpec task. */ + public task?: ("containerSpec"|"pythonPackageSpec"); /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new WorkerPoolSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringScheduleConfig instance + * @returns WorkerPoolSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. + * @param message WorkerPoolSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified WorkerPoolSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. + * @param message WorkerPoolSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a WorkerPoolSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns WorkerPoolSpec * @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.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a WorkerPoolSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns WorkerPoolSpec * @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.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a WorkerPoolSpec 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 ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a WorkerPoolSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns WorkerPoolSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringScheduleConfig + * Creates a plain object from a WorkerPoolSpec message. Also converts values to other types if specified. + * @param message WorkerPoolSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WorkerPoolSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this WorkerPoolSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for WorkerPoolSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringStatsAnomalies. */ - interface IModelMonitoringStatsAnomalies { + /** Properties of a ContainerSpec. */ + interface IContainerSpec { - /** ModelMonitoringStatsAnomalies objective */ - objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + /** ContainerSpec imageUri */ + imageUri?: (string|null); - /** ModelMonitoringStatsAnomalies deployedModelId */ - deployedModelId?: (string|null); + /** ContainerSpec command */ + command?: (string[]|null); - /** ModelMonitoringStatsAnomalies anomalyCount */ - anomalyCount?: (number|null); + /** ContainerSpec args */ + args?: (string[]|null); - /** ModelMonitoringStatsAnomalies featureStats */ - featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + /** ContainerSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); } - /** Represents a ModelMonitoringStatsAnomalies. */ - class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { + /** Represents a ContainerSpec. */ + class ContainerSpec implements IContainerSpec { /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new ContainerSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); + constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec); - /** ModelMonitoringStatsAnomalies objective. */ - public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + /** ContainerSpec imageUri. */ + public imageUri: string; - /** ModelMonitoringStatsAnomalies deployedModelId. */ - public deployedModelId: string; + /** ContainerSpec command. */ + public command: string[]; - /** ModelMonitoringStatsAnomalies anomalyCount. */ - public anomalyCount: number; + /** ContainerSpec args. */ + public args: string[]; - /** ModelMonitoringStatsAnomalies featureStats. */ - public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; + /** ContainerSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new ContainerSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringStatsAnomalies instance + * @returns ContainerSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. + * @param message ContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. + * @param message ContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a ContainerSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringStatsAnomalies + * @returns ContainerSpec * @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.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a ContainerSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringStatsAnomalies + * @returns ContainerSpec * @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.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a ContainerSpec 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 ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a ContainerSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringStatsAnomalies + * @returns ContainerSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. - * @param message ModelMonitoringStatsAnomalies + * Creates a plain object from a ContainerSpec message. Also converts values to other types if specified. + * @param message ContainerSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this ContainerSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringStatsAnomalies + * Gets the default type url for ContainerSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringStatsAnomalies { - - /** Properties of a FeatureHistoricStatsAnomalies. */ - interface IFeatureHistoricStatsAnomalies { - - /** FeatureHistoricStatsAnomalies featureDisplayName */ - featureDisplayName?: (string|null); - - /** FeatureHistoricStatsAnomalies threshold */ - threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats */ - trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats */ - predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); - } - - /** Represents a FeatureHistoricStatsAnomalies. */ - class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - - /** FeatureHistoricStatsAnomalies featureDisplayName. */ - public featureDisplayName: string; - - /** FeatureHistoricStatsAnomalies threshold. */ - public threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats. */ - public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats. */ - public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; - - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureHistoricStatsAnomalies instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureHistoricStatsAnomalies - * @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.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureHistoricStatsAnomalies - * @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.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Verifies a FeatureHistoricStatsAnomalies 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 FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureHistoricStatsAnomalies - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @param message FeatureHistoricStatsAnomalies - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a FeatureStatsAnomaly. */ - interface IFeatureStatsAnomaly { - - /** FeatureStatsAnomaly score */ - score?: (number|null); - - /** FeatureStatsAnomaly statsUri */ - statsUri?: (string|null); + /** Properties of a PythonPackageSpec. */ + interface IPythonPackageSpec { - /** FeatureStatsAnomaly anomalyUri */ - anomalyUri?: (string|null); + /** PythonPackageSpec executorImageUri */ + executorImageUri?: (string|null); - /** FeatureStatsAnomaly distributionDeviation */ - distributionDeviation?: (number|null); + /** PythonPackageSpec packageUris */ + packageUris?: (string[]|null); - /** FeatureStatsAnomaly anomalyDetectionThreshold */ - anomalyDetectionThreshold?: (number|null); + /** PythonPackageSpec pythonModule */ + pythonModule?: (string|null); - /** FeatureStatsAnomaly startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec args */ + args?: (string[]|null); - /** FeatureStatsAnomaly endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); } - /** Represents a FeatureStatsAnomaly. */ - class FeatureStatsAnomaly implements IFeatureStatsAnomaly { + /** Represents a PythonPackageSpec. */ + class PythonPackageSpec implements IPythonPackageSpec { /** - * Constructs a new FeatureStatsAnomaly. + * Constructs a new PythonPackageSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly); - - /** FeatureStatsAnomaly score. */ - public score: number; - - /** FeatureStatsAnomaly statsUri. */ - public statsUri: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec); - /** FeatureStatsAnomaly anomalyUri. */ - public anomalyUri: string; + /** PythonPackageSpec executorImageUri. */ + public executorImageUri: string; - /** FeatureStatsAnomaly distributionDeviation. */ - public distributionDeviation: number; + /** PythonPackageSpec packageUris. */ + public packageUris: string[]; - /** FeatureStatsAnomaly anomalyDetectionThreshold. */ - public anomalyDetectionThreshold: number; + /** PythonPackageSpec pythonModule. */ + public pythonModule: string; - /** FeatureStatsAnomaly startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec args. */ + public args: string[]; - /** FeatureStatsAnomaly endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; /** - * Creates a new FeatureStatsAnomaly instance using the specified properties. + * Creates a new PythonPackageSpec instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureStatsAnomaly instance + * @returns PythonPackageSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @param message FeatureStatsAnomaly message or plain object to encode + * Encodes the specified PythonPackageSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. + * @param message PythonPackageSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @param message FeatureStatsAnomaly message or plain object to encode + * Encodes the specified PythonPackageSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. + * @param message PythonPackageSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. + * Decodes a PythonPackageSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureStatsAnomaly + * @returns PythonPackageSpec * @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.aiplatform.v1beta1.FeatureStatsAnomaly; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. + * Decodes a PythonPackageSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureStatsAnomaly + * @returns PythonPackageSpec * @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.aiplatform.v1beta1.FeatureStatsAnomaly; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Verifies a FeatureStatsAnomaly message. + * Verifies a PythonPackageSpec 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 FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. + * Creates a PythonPackageSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureStatsAnomaly + * @returns PythonPackageSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. - * @param message FeatureStatsAnomaly + * Creates a plain object from a PythonPackageSpec message. Also converts values to other types if specified. + * @param message PythonPackageSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PythonPackageSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureStatsAnomaly to JSON. + * Converts this PythonPackageSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureStatsAnomaly + * Gets the default type url for PythonPackageSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringConfig. */ - interface IModelMonitoringConfig { - - /** ModelMonitoringConfig objectiveConfigs */ - objectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]|null); - - /** ModelMonitoringConfig alertConfig */ - alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + /** Properties of a Scheduling. */ + interface IScheduling { - /** ModelMonitoringConfig analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); + /** Scheduling timeout */ + timeout?: (google.protobuf.IDuration|null); - /** ModelMonitoringConfig statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Scheduling restartJobOnWorkerRestart */ + restartJobOnWorkerRestart?: (boolean|null); } - /** Represents a ModelMonitoringConfig. */ - class ModelMonitoringConfig implements IModelMonitoringConfig { + /** Represents a Scheduling. */ + class Scheduling implements IScheduling { /** - * Constructs a new ModelMonitoringConfig. + * Constructs a new Scheduling. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig); - - /** ModelMonitoringConfig objectiveConfigs. */ - public objectiveConfigs: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]; - - /** ModelMonitoringConfig alertConfig. */ - public alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IScheduling); - /** ModelMonitoringConfig analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; + /** Scheduling timeout. */ + public timeout?: (google.protobuf.IDuration|null); - /** ModelMonitoringConfig statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Scheduling restartJobOnWorkerRestart. */ + public restartJobOnWorkerRestart: boolean; /** - * Creates a new ModelMonitoringConfig instance using the specified properties. + * Creates a new Scheduling instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringConfig instance + * @returns Scheduling instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IScheduling): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. - * @param message ModelMonitoringConfig message or plain object to encode + * Encodes the specified Scheduling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. + * @param message Scheduling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. - * @param message ModelMonitoringConfig message or plain object to encode + * Encodes the specified Scheduling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. + * @param message Scheduling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringConfig message from the specified reader or buffer. + * Decodes a Scheduling message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringConfig + * @returns Scheduling * @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.aiplatform.v1beta1.ModelMonitoringConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. + * Decodes a Scheduling message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringConfig + * @returns Scheduling * @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.aiplatform.v1beta1.ModelMonitoringConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Verifies a ModelMonitoringConfig message. + * Verifies a Scheduling 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 ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Scheduling message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringConfig + * @returns Scheduling */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringConfig + * Creates a plain object from a Scheduling message. Also converts values to other types if specified. + * @param message Scheduling * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Scheduling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringConfig to JSON. + * Converts this Scheduling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringConfig + * Gets the default type url for Scheduling * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringObjectiveConfig. */ - interface IModelMonitoringObjectiveConfig { + /** Properties of a DataItem. */ + interface IDataItem { - /** ModelMonitoringObjectiveConfig trainingDataset */ - trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + /** DataItem name */ + name?: (string|null); + + /** DataItem createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ - trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** DataItem updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ - predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** DataItem labels */ + labels?: ({ [k: string]: string }|null); - /** ModelMonitoringObjectiveConfig explanationConfig */ - explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** DataItem payload */ + payload?: (google.protobuf.IValue|null); + + /** DataItem etag */ + etag?: (string|null); } - /** Represents a ModelMonitoringObjectiveConfig. */ - class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { + /** Represents a DataItem. */ + class DataItem implements IDataItem { /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new DataItem. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItem); - /** ModelMonitoringObjectiveConfig trainingDataset. */ - public trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + /** DataItem name. */ + public name: string; - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ - public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** DataItem createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ - public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** DataItem updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig explanationConfig. */ - public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** DataItem labels. */ + public labels: { [k: string]: string }; + + /** DataItem payload. */ + public payload?: (google.protobuf.IValue|null); + + /** DataItem etag. */ + public etag: string; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new DataItem instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringObjectiveConfig instance + * @returns DataItem instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItem): google.cloud.aiplatform.v1beta1.DataItem; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. + * @param message DataItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. + * @param message DataItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a DataItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringObjectiveConfig + * @returns DataItem * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataItem; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a DataItem message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringObjectiveConfig + * @returns DataItem * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataItem; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies a DataItem 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 ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringObjectiveConfig + * @returns DataItem */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItem; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringObjectiveConfig + * Creates a plain object from a DataItem message. Also converts values to other types if specified. + * @param message DataItem * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this DataItem to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for DataItem * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringObjectiveConfig { - - /** Properties of a TrainingDataset. */ - interface ITrainingDataset { - - /** TrainingDataset dataset */ - dataset?: (string|null); - - /** TrainingDataset gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - - /** TrainingDataset bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** TrainingDataset dataFormat */ - dataFormat?: (string|null); - - /** TrainingDataset targetField */ - targetField?: (string|null); - - /** TrainingDataset loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - } - - /** Represents a TrainingDataset. */ - class TrainingDataset implements ITrainingDataset { - - /** - * Constructs a new TrainingDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); - - /** TrainingDataset dataset. */ - public dataset?: (string|null); - - /** TrainingDataset gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - - /** TrainingDataset bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** TrainingDataset dataFormat. */ - public dataFormat: string; - - /** TrainingDataset targetField. */ - public targetField: string; - - /** TrainingDataset loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - - /** TrainingDataset dataSource. */ - public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); - - /** - * Creates a new TrainingDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; - - /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TrainingDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingDataset - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; - - /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingDataset - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; - - /** - * Verifies a TrainingDataset 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 TrainingDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; - - /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. - * @param message TrainingDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TrainingDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TrainingDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TrainingPredictionSkewDetectionConfig. */ - interface ITrainingPredictionSkewDetectionConfig { - - /** TrainingPredictionSkewDetectionConfig skewThresholds */ - skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ - attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ - defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - } - - /** Represents a TrainingPredictionSkewDetectionConfig. */ - class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { - - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); - - /** TrainingPredictionSkewDetectionConfig skewThresholds. */ - public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ - public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ - public defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPredictionSkewDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPredictionSkewDetectionConfig - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPredictionSkewDetectionConfig - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - - /** - * Verifies a TrainingPredictionSkewDetectionConfig 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 TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPredictionSkewDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @param message TrainingPredictionSkewDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TrainingPredictionSkewDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PredictionDriftDetectionConfig. */ - interface IPredictionDriftDetectionConfig { - - /** PredictionDriftDetectionConfig driftThresholds */ - driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ - attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** PredictionDriftDetectionConfig defaultDriftThreshold */ - defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - } - - /** Represents a PredictionDriftDetectionConfig. */ - class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { - - /** - * Constructs a new PredictionDriftDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); - - /** PredictionDriftDetectionConfig driftThresholds. */ - public driftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ - public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** PredictionDriftDetectionConfig defaultDriftThreshold. */ - public defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictionDriftDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictionDriftDetectionConfig - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictionDriftDetectionConfig - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Verifies a PredictionDriftDetectionConfig 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 PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictionDriftDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @param message PredictionDriftDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PredictionDriftDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExplanationConfig. */ - interface IExplanationConfig { - - /** ExplanationConfig enableFeatureAttributes */ - enableFeatureAttributes?: (boolean|null); - - /** ExplanationConfig explanationBaseline */ - explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - } - - /** Represents an ExplanationConfig. */ - class ExplanationConfig implements IExplanationConfig { - - /** - * Constructs a new ExplanationConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig); - - /** ExplanationConfig enableFeatureAttributes. */ - public enableFeatureAttributes: boolean; - - /** ExplanationConfig explanationBaseline. */ - public explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - - /** - * Creates a new ExplanationConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - - /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a DataLabelingJob. */ + interface IDataLabelingJob { - /** - * Decodes an ExplanationConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationConfig - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** DataLabelingJob name */ + name?: (string|null); - /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationConfig - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** DataLabelingJob displayName */ + displayName?: (string|null); - /** - * Verifies an ExplanationConfig 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); + /** DataLabelingJob datasets */ + datasets?: (string[]|null); - /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** DataLabelingJob annotationLabels */ + annotationLabels?: ({ [k: string]: string }|null); - /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. - * @param message ExplanationConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DataLabelingJob labelerCount */ + labelerCount?: (number|null); - /** - * Converts this ExplanationConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DataLabelingJob instructionUri */ + instructionUri?: (string|null); - /** - * Gets the default type url for ExplanationConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DataLabelingJob inputsSchemaUri */ + inputsSchemaUri?: (string|null); - namespace ExplanationConfig { + /** DataLabelingJob inputs */ + inputs?: (google.protobuf.IValue|null); - /** Properties of an ExplanationBaseline. */ - interface IExplanationBaseline { + /** DataLabelingJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** ExplanationBaseline gcs */ - gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** DataLabelingJob labelingProgress */ + labelingProgress?: (number|null); - /** ExplanationBaseline bigquery */ - bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** DataLabelingJob currentSpend */ + currentSpend?: (google.type.IMoney|null); - /** ExplanationBaseline predictionFormat */ - predictionFormat?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); - } + /** DataLabelingJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Represents an ExplanationBaseline. */ - class ExplanationBaseline implements IExplanationBaseline { + /** DataLabelingJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ExplanationBaseline. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + /** DataLabelingJob error */ + error?: (google.rpc.IStatus|null); - /** ExplanationBaseline gcs. */ - public gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** DataLabelingJob labels */ + labels?: ({ [k: string]: string }|null); - /** ExplanationBaseline bigquery. */ - public bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** DataLabelingJob specialistPools */ + specialistPools?: (string[]|null); - /** ExplanationBaseline predictionFormat. */ - public predictionFormat: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + /** DataLabelingJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ExplanationBaseline destination. */ - public destination?: ("gcs"|"bigquery"); + /** DataLabelingJob activeLearningConfig */ + activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + } - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationBaseline instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** Represents a DataLabelingJob. */ + class DataLabelingJob implements IDataLabelingJob { - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new DataLabelingJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob); - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** DataLabelingJob name. */ + public name: string; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationBaseline - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** DataLabelingJob displayName. */ + public displayName: string; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationBaseline - * @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.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** DataLabelingJob datasets. */ + public datasets: string[]; - /** - * Verifies an ExplanationBaseline 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); + /** DataLabelingJob annotationLabels. */ + public annotationLabels: { [k: string]: string }; - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationBaseline - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** DataLabelingJob labelerCount. */ + public labelerCount: number; - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @param message ExplanationBaseline - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DataLabelingJob instructionUri. */ + public instructionUri: string; - /** - * Converts this ExplanationBaseline to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DataLabelingJob inputsSchemaUri. */ + public inputsSchemaUri: string; - /** - * Gets the default type url for ExplanationBaseline - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DataLabelingJob inputs. */ + public inputs?: (google.protobuf.IValue|null); - namespace ExplanationBaseline { + /** DataLabelingJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** PredictionFormat enum. */ - enum PredictionFormat { - PREDICTION_FORMAT_UNSPECIFIED = 0, - JSONL = 2, - BIGQUERY = 3 - } - } - } - } + /** DataLabelingJob labelingProgress. */ + public labelingProgress: number; - /** Properties of a ModelMonitoringAlertConfig. */ - interface IModelMonitoringAlertConfig { + /** DataLabelingJob currentSpend. */ + public currentSpend?: (google.type.IMoney|null); - /** ModelMonitoringAlertConfig emailAlertConfig */ - emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** DataLabelingJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringAlertConfig enableLogging */ - enableLogging?: (boolean|null); - } + /** DataLabelingJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Represents a ModelMonitoringAlertConfig. */ - class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { + /** DataLabelingJob error. */ + public error?: (google.rpc.IStatus|null); - /** - * Constructs a new ModelMonitoringAlertConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig); + /** DataLabelingJob labels. */ + public labels: { [k: string]: string }; - /** ModelMonitoringAlertConfig emailAlertConfig. */ - public emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** DataLabelingJob specialistPools. */ + public specialistPools: string[]; - /** ModelMonitoringAlertConfig enableLogging. */ - public enableLogging: boolean; + /** DataLabelingJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ModelMonitoringAlertConfig alert. */ - public alert?: "emailAlertConfig"; + /** DataLabelingJob activeLearningConfig. */ + public activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new DataLabelingJob instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringAlertConfig instance + * @returns DataLabelingJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified DataLabelingJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. + * @param message DataLabelingJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified DataLabelingJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. + * @param message DataLabelingJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a DataLabelingJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringAlertConfig + * @returns DataLabelingJob * @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.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a DataLabelingJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringAlertConfig + * @returns DataLabelingJob * @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.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a DataLabelingJob 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 ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataLabelingJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringAlertConfig + * @returns DataLabelingJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringAlertConfig + * Creates a plain object from a DataLabelingJob message. Also converts values to other types if specified. + * @param message DataLabelingJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DataLabelingJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this DataLabelingJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringAlertConfig + * Gets the default type url for DataLabelingJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringAlertConfig { + /** Properties of an ActiveLearningConfig. */ + interface IActiveLearningConfig { - /** Properties of an EmailAlertConfig. */ - interface IEmailAlertConfig { + /** ActiveLearningConfig maxDataItemCount */ + maxDataItemCount?: (number|Long|string|null); - /** EmailAlertConfig userEmails */ - userEmails?: (string[]|null); - } + /** ActiveLearningConfig maxDataItemPercentage */ + maxDataItemPercentage?: (number|null); - /** Represents an EmailAlertConfig. */ - class EmailAlertConfig implements IEmailAlertConfig { + /** ActiveLearningConfig sampleConfig */ + sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); - /** - * Constructs a new EmailAlertConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig); + /** ActiveLearningConfig trainingConfig */ + trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + } - /** EmailAlertConfig userEmails. */ - public userEmails: string[]; + /** Represents an ActiveLearningConfig. */ + class ActiveLearningConfig implements IActiveLearningConfig { - /** - * Creates a new EmailAlertConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns EmailAlertConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** + * Constructs a new ActiveLearningConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig); - /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ActiveLearningConfig maxDataItemCount. */ + public maxDataItemCount?: (number|Long|string|null); - /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ActiveLearningConfig maxDataItemPercentage. */ + public maxDataItemPercentage?: (number|null); - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmailAlertConfig - * @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.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** ActiveLearningConfig sampleConfig. */ + public sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmailAlertConfig - * @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.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** ActiveLearningConfig trainingConfig. */ + public trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); - /** - * Verifies an EmailAlertConfig 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); + /** ActiveLearningConfig humanLabelingBudget. */ + public humanLabelingBudget?: ("maxDataItemCount"|"maxDataItemPercentage"); - /** - * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EmailAlertConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** + * Creates a new ActiveLearningConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ActiveLearningConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; - /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. - * @param message EmailAlertConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ActiveLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. + * @param message ActiveLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this EmailAlertConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ActiveLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. + * @param message ActiveLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for EmailAlertConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an ActiveLearningConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActiveLearningConfig + * @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.aiplatform.v1beta1.ActiveLearningConfig; + + /** + * Decodes an ActiveLearningConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ActiveLearningConfig + * @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.aiplatform.v1beta1.ActiveLearningConfig; + + /** + * Verifies an ActiveLearningConfig 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 an ActiveLearningConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ActiveLearningConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + + /** + * Creates a plain object from an ActiveLearningConfig message. Also converts values to other types if specified. + * @param message ActiveLearningConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ActiveLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ActiveLearningConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ActiveLearningConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { + /** Properties of a SampleConfig. */ + interface ISampleConfig { - /** ThresholdConfig value */ - value?: (number|null); + /** SampleConfig initialBatchSamplePercentage */ + initialBatchSamplePercentage?: (number|null); + + /** SampleConfig followingBatchSamplePercentage */ + followingBatchSamplePercentage?: (number|null); + + /** SampleConfig sampleStrategy */ + sampleStrategy?: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|null); } - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { + /** Represents a SampleConfig. */ + class SampleConfig implements ISampleConfig { /** - * Constructs a new ThresholdConfig. + * Constructs a new SampleConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig); - /** ThresholdConfig value. */ - public value?: (number|null); + /** SampleConfig initialBatchSamplePercentage. */ + public initialBatchSamplePercentage?: (number|null); - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** SampleConfig followingBatchSamplePercentage. */ + public followingBatchSamplePercentage?: (number|null); + + /** SampleConfig sampleStrategy. */ + public sampleStrategy: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy); + + /** SampleConfig initialBatchSampleSize. */ + public initialBatchSampleSize?: "initialBatchSamplePercentage"; + + /** SampleConfig followingBatchSampleSize. */ + public followingBatchSampleSize?: "followingBatchSamplePercentage"; /** - * Creates a new ThresholdConfig instance using the specified properties. + * Creates a new SampleConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ThresholdConfig instance + * @returns SampleConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified SampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. + * @param message SampleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified SampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. + * @param message SampleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ThresholdConfig message from the specified reader or buffer. + * Decodes a SampleConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ThresholdConfig + * @returns SampleConfig * @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.aiplatform.v1beta1.ThresholdConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * Decodes a SampleConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ThresholdConfig + * @returns SampleConfig * @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.aiplatform.v1beta1.ThresholdConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Verifies a ThresholdConfig message. + * Verifies a SampleConfig 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 ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * Creates a SampleConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ThresholdConfig + * @returns SampleConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig + * Creates a plain object from a SampleConfig message. Also converts values to other types if specified. + * @param message SampleConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ThresholdConfig to JSON. + * Converts this SampleConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ThresholdConfig + * Gets the default type url for SampleConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SamplingStrategy. */ - interface ISamplingStrategy { + namespace SampleConfig { - /** SamplingStrategy randomSampleConfig */ - randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); + /** SampleStrategy enum. */ + enum SampleStrategy { + SAMPLE_STRATEGY_UNSPECIFIED = 0, + UNCERTAINTY = 1 + } } - /** Represents a SamplingStrategy. */ - class SamplingStrategy implements ISamplingStrategy { + /** Properties of a TrainingConfig. */ + interface ITrainingConfig { + + /** TrainingConfig timeoutTrainingMilliHours */ + timeoutTrainingMilliHours?: (number|Long|string|null); + } + + /** Represents a TrainingConfig. */ + class TrainingConfig implements ITrainingConfig { /** - * Constructs a new SamplingStrategy. + * Constructs a new TrainingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig); - /** SamplingStrategy randomSampleConfig. */ - public randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); + /** TrainingConfig timeoutTrainingMilliHours. */ + public timeoutTrainingMilliHours: (number|Long|string); /** - * Creates a new SamplingStrategy instance using the specified properties. + * Creates a new TrainingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns SamplingStrategy instance + * @returns TrainingConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified TrainingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. + * @param message TrainingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified TrainingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. + * @param message TrainingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SamplingStrategy message from the specified reader or buffer. + * Decodes a TrainingConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SamplingStrategy + * @returns TrainingConfig * @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.aiplatform.v1beta1.SamplingStrategy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * Decodes a TrainingConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SamplingStrategy + * @returns TrainingConfig * @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.aiplatform.v1beta1.SamplingStrategy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Verifies a SamplingStrategy message. + * Verifies a TrainingConfig 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 SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SamplingStrategy + * @returns TrainingConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. - * @param message SamplingStrategy + * Creates a plain object from a TrainingConfig message. Also converts values to other types if specified. + * @param message TrainingConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SamplingStrategy to JSON. + * Converts this TrainingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SamplingStrategy + * Gets the default type url for TrainingConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SamplingStrategy { + /** Properties of a Dataset. */ + interface IDataset { - /** Properties of a RandomSampleConfig. */ - interface IRandomSampleConfig { + /** Dataset name */ + name?: (string|null); - /** RandomSampleConfig sampleRate */ - sampleRate?: (number|null); - } + /** Dataset displayName */ + displayName?: (string|null); - /** Represents a RandomSampleConfig. */ - class RandomSampleConfig implements IRandomSampleConfig { + /** Dataset description */ + description?: (string|null); - /** - * Constructs a new RandomSampleConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig); + /** Dataset metadataSchemaUri */ + metadataSchemaUri?: (string|null); - /** RandomSampleConfig sampleRate. */ - public sampleRate: number; + /** Dataset metadata */ + metadata?: (google.protobuf.IValue|null); - /** - * Creates a new RandomSampleConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RandomSampleConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + /** Dataset createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Dataset updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Dataset etag */ + etag?: (string|null); - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RandomSampleConfig - * @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.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + /** Dataset labels */ + labels?: ({ [k: string]: string }|null); - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RandomSampleConfig - * @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.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + /** Dataset savedQueries */ + savedQueries?: (google.cloud.aiplatform.v1beta1.ISavedQuery[]|null); - /** - * Verifies a RandomSampleConfig 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); + /** Dataset encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** - * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RandomSampleConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + /** Dataset metadataArtifact */ + metadataArtifact?: (string|null); + } - /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. - * @param message RandomSampleConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a Dataset. */ + class Dataset implements IDataset { - /** - * Converts this RandomSampleConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new Dataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataset); - /** - * Gets the default type url for RandomSampleConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** Dataset name. */ + public name: string; - /** Properties of an UnmanagedContainerModel. */ - interface IUnmanagedContainerModel { + /** Dataset displayName. */ + public displayName: string; - /** UnmanagedContainerModel artifactUri */ - artifactUri?: (string|null); + /** Dataset description. */ + public description: string; - /** UnmanagedContainerModel predictSchemata */ - predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** Dataset metadataSchemaUri. */ + public metadataSchemaUri: string; - /** UnmanagedContainerModel containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); - } + /** Dataset metadata. */ + public metadata?: (google.protobuf.IValue|null); - /** Represents an UnmanagedContainerModel. */ - class UnmanagedContainerModel implements IUnmanagedContainerModel { + /** Dataset createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new UnmanagedContainerModel. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel); + /** Dataset updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** UnmanagedContainerModel artifactUri. */ - public artifactUri: string; + /** Dataset etag. */ + public etag: string; - /** UnmanagedContainerModel predictSchemata. */ - public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** Dataset labels. */ + public labels: { [k: string]: string }; - /** UnmanagedContainerModel containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** Dataset savedQueries. */ + public savedQueries: google.cloud.aiplatform.v1beta1.ISavedQuery[]; + + /** Dataset encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Dataset metadataArtifact. */ + public metadataArtifact: string; /** - * Creates a new UnmanagedContainerModel instance using the specified properties. + * Creates a new Dataset instance using the specified properties. * @param [properties] Properties to set - * @returns UnmanagedContainerModel instance + * @returns Dataset instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataset): google.cloud.aiplatform.v1beta1.Dataset; /** - * Encodes the specified UnmanagedContainerModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. - * @param message UnmanagedContainerModel message or plain object to encode + * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. + * @param message Dataset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UnmanagedContainerModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. - * @param message UnmanagedContainerModel message or plain object to encode + * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. + * @param message Dataset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UnmanagedContainerModel message from the specified reader or buffer. + * Decodes a Dataset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UnmanagedContainerModel + * @returns Dataset * @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.aiplatform.v1beta1.UnmanagedContainerModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Dataset; /** - * Decodes an UnmanagedContainerModel message from the specified reader or buffer, length delimited. + * Decodes a Dataset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UnmanagedContainerModel + * @returns Dataset * @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.aiplatform.v1beta1.UnmanagedContainerModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Dataset; /** - * Verifies an UnmanagedContainerModel message. + * Verifies a Dataset 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 an UnmanagedContainerModel message from a plain object. Also converts values to their respective internal types. + * Creates a Dataset message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UnmanagedContainerModel + * @returns Dataset */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Dataset; /** - * Creates a plain object from an UnmanagedContainerModel message. Also converts values to other types if specified. - * @param message UnmanagedContainerModel + * Creates a plain object from a Dataset message. Also converts values to other types if specified. + * @param message Dataset * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UnmanagedContainerModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UnmanagedContainerModel to JSON. + * Converts this Dataset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UnmanagedContainerModel + * Gets the default type url for Dataset * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Model. */ - interface IModel { - - /** Model name */ - name?: (string|null); - - /** Model versionId */ - versionId?: (string|null); - - /** Model versionAliases */ - versionAliases?: (string[]|null); - - /** Model versionCreateTime */ - versionCreateTime?: (google.protobuf.ITimestamp|null); - - /** Model versionUpdateTime */ - versionUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Model displayName */ - displayName?: (string|null); - - /** Model description */ - description?: (string|null); - - /** Model versionDescription */ - versionDescription?: (string|null); - - /** Model predictSchemata */ - predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - - /** Model metadataSchemaUri */ - metadataSchemaUri?: (string|null); - - /** Model metadata */ - metadata?: (google.protobuf.IValue|null); - - /** Model supportedExportFormats */ - supportedExportFormats?: (google.cloud.aiplatform.v1beta1.Model.IExportFormat[]|null); - - /** Model trainingPipeline */ - trainingPipeline?: (string|null); - - /** Model containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); - - /** Model artifactUri */ - artifactUri?: (string|null); - - /** Model supportedDeploymentResourcesTypes */ - supportedDeploymentResourcesTypes?: (google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]|null); - - /** Model supportedInputStorageFormats */ - supportedInputStorageFormats?: (string[]|null); - - /** Model supportedOutputStorageFormats */ - supportedOutputStorageFormats?: (string[]|null); - - /** Model createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Model updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Model deployedModels */ - deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); - - /** Model explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** Model etag */ - etag?: (string|null); + /** Properties of an ImportDataConfig. */ + interface IImportDataConfig { - /** Model labels */ - labels?: ({ [k: string]: string }|null); + /** ImportDataConfig gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** Model encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ImportDataConfig dataItemLabels */ + dataItemLabels?: ({ [k: string]: string }|null); - /** Model modelSourceInfo */ - modelSourceInfo?: (google.cloud.aiplatform.v1beta1.IModelSourceInfo|null); + /** ImportDataConfig annotationLabels */ + annotationLabels?: ({ [k: string]: string }|null); - /** Model metadataArtifact */ - metadataArtifact?: (string|null); + /** ImportDataConfig importSchemaUri */ + importSchemaUri?: (string|null); } - /** Represents a Model. */ - class Model implements IModel { + /** Represents an ImportDataConfig. */ + class ImportDataConfig implements IImportDataConfig { /** - * Constructs a new Model. + * Constructs a new ImportDataConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModel); - - /** Model name. */ - public name: string; - - /** Model versionId. */ - public versionId: string; - - /** Model versionAliases. */ - public versionAliases: string[]; - - /** Model versionCreateTime. */ - public versionCreateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig); - /** Model versionUpdateTime. */ - public versionUpdateTime?: (google.protobuf.ITimestamp|null); + /** ImportDataConfig gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** Model displayName. */ - public displayName: string; + /** ImportDataConfig dataItemLabels. */ + public dataItemLabels: { [k: string]: string }; - /** Model description. */ - public description: string; + /** ImportDataConfig annotationLabels. */ + public annotationLabels: { [k: string]: string }; - /** Model versionDescription. */ - public versionDescription: string; + /** ImportDataConfig importSchemaUri. */ + public importSchemaUri: string; - /** Model predictSchemata. */ - public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** ImportDataConfig source. */ + public source?: "gcsSource"; - /** Model metadataSchemaUri. */ - public metadataSchemaUri: string; + /** + * Creates a new ImportDataConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportDataConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig): google.cloud.aiplatform.v1beta1.ImportDataConfig; - /** Model metadata. */ - public metadata?: (google.protobuf.IValue|null); + /** + * Encodes the specified ImportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. + * @param message ImportDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Model supportedExportFormats. */ - public supportedExportFormats: google.cloud.aiplatform.v1beta1.Model.IExportFormat[]; + /** + * Encodes the specified ImportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. + * @param message ImportDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Model trainingPipeline. */ - public trainingPipeline: string; + /** + * Decodes an ImportDataConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportDataConfig + * @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.aiplatform.v1beta1.ImportDataConfig; - /** Model containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** + * Decodes an ImportDataConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportDataConfig + * @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.aiplatform.v1beta1.ImportDataConfig; - /** Model artifactUri. */ - public artifactUri: string; + /** + * Verifies an ImportDataConfig 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); - /** Model supportedDeploymentResourcesTypes. */ - public supportedDeploymentResourcesTypes: google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]; + /** + * Creates an ImportDataConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportDataConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataConfig; - /** Model supportedInputStorageFormats. */ - public supportedInputStorageFormats: string[]; + /** + * Creates a plain object from an ImportDataConfig message. Also converts values to other types if specified. + * @param message ImportDataConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Model supportedOutputStorageFormats. */ - public supportedOutputStorageFormats: string[]; + /** + * Converts this ImportDataConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Model createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for ImportDataConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Model updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of an ExportDataConfig. */ + interface IExportDataConfig { - /** Model deployedModels. */ - public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + /** ExportDataConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** Model explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + /** ExportDataConfig annotationsFilter */ + annotationsFilter?: (string|null); + } - /** Model etag. */ - public etag: string; + /** Represents an ExportDataConfig. */ + class ExportDataConfig implements IExportDataConfig { - /** Model labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new ExportDataConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig); - /** Model encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ExportDataConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** Model modelSourceInfo. */ - public modelSourceInfo?: (google.cloud.aiplatform.v1beta1.IModelSourceInfo|null); + /** ExportDataConfig annotationsFilter. */ + public annotationsFilter: string; - /** Model metadataArtifact. */ - public metadataArtifact: string; + /** ExportDataConfig destination. */ + public destination?: "gcsDestination"; /** - * Creates a new Model instance using the specified properties. + * Creates a new ExportDataConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Model instance + * @returns ExportDataConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModel): google.cloud.aiplatform.v1beta1.Model; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. - * @param message Model message or plain object to encode + * Encodes the specified ExportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. + * @param message ExportDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. - * @param message Model message or plain object to encode + * Encodes the specified ExportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. + * @param message ExportDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Model message from the specified reader or buffer. + * Decodes an ExportDataConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Model + * @returns ExportDataConfig * @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.aiplatform.v1beta1.Model; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Decodes a Model message from the specified reader or buffer, length delimited. + * Decodes an ExportDataConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Model + * @returns ExportDataConfig * @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.aiplatform.v1beta1.Model; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Verifies a Model message. + * Verifies an ExportDataConfig 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 Model message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Model + * @returns ExportDataConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Creates a plain object from a Model message. Also converts values to other types if specified. - * @param message Model + * Creates a plain object from an ExportDataConfig message. Also converts values to other types if specified. + * @param message ExportDataConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Model, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Model to JSON. + * Converts this ExportDataConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Model + * Gets the default type url for ExportDataConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Model { - - /** Properties of an ExportFormat. */ - interface IExportFormat { - - /** ExportFormat id */ - id?: (string|null); - - /** ExportFormat exportableContents */ - exportableContents?: (google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]|null); - } - - /** Represents an ExportFormat. */ - class ExportFormat implements IExportFormat { - - /** - * Constructs a new ExportFormat. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat); - - /** ExportFormat id. */ - public id: string; - - /** ExportFormat exportableContents. */ - public exportableContents: google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]; + /** Properties of a SavedQuery. */ + interface ISavedQuery { - /** - * Creates a new ExportFormat instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportFormat instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + /** SavedQuery name */ + name?: (string|null); - /** - * Encodes the specified ExportFormat message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. - * @param message ExportFormat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + /** SavedQuery displayName */ + displayName?: (string|null); - /** - * Encodes the specified ExportFormat message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. - * @param message ExportFormat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + /** SavedQuery metadata */ + metadata?: (google.protobuf.IValue|null); - /** - * Decodes an ExportFormat message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportFormat - * @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.aiplatform.v1beta1.Model.ExportFormat; + /** SavedQuery createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes an ExportFormat message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportFormat - * @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.aiplatform.v1beta1.Model.ExportFormat; + /** SavedQuery updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies an ExportFormat 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); + /** SavedQuery annotationFilter */ + annotationFilter?: (string|null); - /** - * Creates an ExportFormat message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportFormat - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + /** SavedQuery problemType */ + problemType?: (string|null); - /** - * Creates a plain object from an ExportFormat message. Also converts values to other types if specified. - * @param message ExportFormat - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Model.ExportFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SavedQuery annotationSpecCount */ + annotationSpecCount?: (number|null); - /** - * Converts this ExportFormat to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SavedQuery etag */ + etag?: (string|null); - /** - * Gets the default type url for ExportFormat - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SavedQuery supportAutomlTraining */ + supportAutomlTraining?: (boolean|null); + } - namespace ExportFormat { + /** Represents a SavedQuery. */ + class SavedQuery implements ISavedQuery { - /** ExportableContent enum. */ - enum ExportableContent { - EXPORTABLE_CONTENT_UNSPECIFIED = 0, - ARTIFACT = 1, - IMAGE = 2 - } - } + /** + * Constructs a new SavedQuery. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery); - /** DeploymentResourcesType enum. */ - enum DeploymentResourcesType { - DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0, - DEDICATED_RESOURCES = 1, - AUTOMATIC_RESOURCES = 2, - SHARED_RESOURCES = 3 - } - } + /** SavedQuery name. */ + public name: string; - /** Properties of a PredictSchemata. */ - interface IPredictSchemata { + /** SavedQuery displayName. */ + public displayName: string; - /** PredictSchemata instanceSchemaUri */ - instanceSchemaUri?: (string|null); + /** SavedQuery metadata. */ + public metadata?: (google.protobuf.IValue|null); - /** PredictSchemata parametersSchemaUri */ - parametersSchemaUri?: (string|null); + /** SavedQuery createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** PredictSchemata predictionSchemaUri */ - predictionSchemaUri?: (string|null); - } + /** SavedQuery updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Represents a PredictSchemata. */ - class PredictSchemata implements IPredictSchemata { + /** SavedQuery annotationFilter. */ + public annotationFilter: string; - /** - * Constructs a new PredictSchemata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata); + /** SavedQuery problemType. */ + public problemType: string; - /** PredictSchemata instanceSchemaUri. */ - public instanceSchemaUri: string; + /** SavedQuery annotationSpecCount. */ + public annotationSpecCount: number; - /** PredictSchemata parametersSchemaUri. */ - public parametersSchemaUri: string; + /** SavedQuery etag. */ + public etag: string; - /** PredictSchemata predictionSchemaUri. */ - public predictionSchemaUri: string; + /** SavedQuery supportAutomlTraining. */ + public supportAutomlTraining: boolean; /** - * Creates a new PredictSchemata instance using the specified properties. + * Creates a new SavedQuery instance using the specified properties. * @param [properties] Properties to set - * @returns PredictSchemata instance + * @returns SavedQuery instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata): google.cloud.aiplatform.v1beta1.PredictSchemata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Encodes the specified PredictSchemata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. - * @param message PredictSchemata message or plain object to encode + * Encodes the specified SavedQuery message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. + * @param message SavedQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredictSchemata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. - * @param message PredictSchemata message or plain object to encode + * Encodes the specified SavedQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. + * @param message SavedQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictSchemata message from the specified reader or buffer. + * Decodes a SavedQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredictSchemata + * @returns SavedQuery * @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.aiplatform.v1beta1.PredictSchemata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Decodes a PredictSchemata message from the specified reader or buffer, length delimited. + * Decodes a SavedQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredictSchemata + * @returns SavedQuery * @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.aiplatform.v1beta1.PredictSchemata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Verifies a PredictSchemata message. + * Verifies a SavedQuery 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 PredictSchemata message from a plain object. Also converts values to their respective internal types. + * Creates a SavedQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredictSchemata + * @returns SavedQuery */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictSchemata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Creates a plain object from a PredictSchemata message. Also converts values to other types if specified. - * @param message PredictSchemata + * Creates a plain object from a SavedQuery message. Also converts values to other types if specified. + * @param message SavedQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PredictSchemata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SavedQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictSchemata to JSON. + * Converts this SavedQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredictSchemata + * Gets the default type url for SavedQuery * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelContainerSpec. */ - interface IModelContainerSpec { - - /** ModelContainerSpec imageUri */ - imageUri?: (string|null); + /** Represents a DatasetService */ + class DatasetService extends $protobuf.rpc.Service { - /** ModelContainerSpec command */ - command?: (string[]|null); + /** + * Constructs a new DatasetService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ModelContainerSpec args */ - args?: (string[]|null); + /** + * Creates new DatasetService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DatasetService; - /** ModelContainerSpec env */ - env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + /** + * Calls CreateDataset. + * @param request CreateDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetCallback): void; - /** ModelContainerSpec ports */ - ports?: (google.cloud.aiplatform.v1beta1.IPort[]|null); + /** + * Calls CreateDataset. + * @param request CreateDatasetRequest message or plain object + * @returns Promise + */ + public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): Promise; - /** ModelContainerSpec predictRoute */ - predictRoute?: (string|null); + /** + * Calls GetDataset. + * @param request GetDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Dataset + */ + public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetCallback): void; - /** ModelContainerSpec healthRoute */ - healthRoute?: (string|null); - } + /** + * Calls GetDataset. + * @param request GetDatasetRequest message or plain object + * @returns Promise + */ + public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): Promise; - /** Represents a ModelContainerSpec. */ - class ModelContainerSpec implements IModelContainerSpec { + /** + * Calls UpdateDataset. + * @param request UpdateDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Dataset + */ + public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetCallback): void; /** - * Constructs a new ModelContainerSpec. - * @param [properties] Properties to set + * Calls UpdateDataset. + * @param request UpdateDatasetRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec); + public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): Promise; - /** ModelContainerSpec imageUri. */ - public imageUri: string; + /** + * Calls ListDatasets. + * @param request ListDatasetsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse + */ + public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetsCallback): void; - /** ModelContainerSpec command. */ - public command: string[]; + /** + * Calls ListDatasets. + * @param request ListDatasetsRequest message or plain object + * @returns Promise + */ + public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): Promise; - /** ModelContainerSpec args. */ - public args: string[]; + /** + * Calls DeleteDataset. + * @param request DeleteDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetCallback): void; - /** ModelContainerSpec env. */ - public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + /** + * Calls DeleteDataset. + * @param request DeleteDatasetRequest message or plain object + * @returns Promise + */ + public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): Promise; - /** ModelContainerSpec ports. */ - public ports: google.cloud.aiplatform.v1beta1.IPort[]; + /** + * Calls ImportData. + * @param request ImportDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback): void; - /** ModelContainerSpec predictRoute. */ - public predictRoute: string; + /** + * Calls ImportData. + * @param request ImportDataRequest message or plain object + * @returns Promise + */ + public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest): Promise; - /** ModelContainerSpec healthRoute. */ - public healthRoute: string; + /** + * Calls ExportData. + * @param request ExportDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback): void; /** - * Creates a new ModelContainerSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ModelContainerSpec instance + * Calls ExportData. + * @param request ExportDataRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest): Promise; /** - * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. - * @param message ModelContainerSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListDataItems. + * @param request ListDataItemsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataItemsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback): void; /** - * Encodes the specified ModelContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. - * @param message ModelContainerSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListDataItems. + * @param request ListDataItemsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): Promise; /** - * Decodes a ModelContainerSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ModelContainerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchDataItems. + * @param request SearchDataItemsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchDataItemsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public searchDataItems(request: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItemsCallback): void; /** - * Decodes a ModelContainerSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ModelContainerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchDataItems. + * @param request SearchDataItemsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public searchDataItems(request: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest): Promise; /** - * Verifies a ModelContainerSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListSavedQueries. + * @param request ListSavedQueriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSavedQueriesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueriesCallback): void; /** - * Creates a ModelContainerSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ModelContainerSpec + * Calls ListSavedQueries. + * @param request ListSavedQueriesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): Promise; /** - * Creates a plain object from a ModelContainerSpec message. Also converts values to other types if specified. - * @param message ModelContainerSpec - * @param [options] Conversion options - * @returns Plain object + * Calls GetAnnotationSpec. + * @param request GetAnnotationSpecRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AnnotationSpec */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback): void; /** - * Converts this ModelContainerSpec to JSON. - * @returns JSON object + * Calls GetAnnotationSpec. + * @param request GetAnnotationSpecRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): Promise; /** - * Gets the default type url for ModelContainerSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ListAnnotations. + * @param request ListAnnotationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAnnotationsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Port. */ - interface IPort { + public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotationsCallback): void; - /** Port containerPort */ - containerPort?: (number|null); + /** + * Calls ListAnnotations. + * @param request ListAnnotationsRequest message or plain object + * @returns Promise + */ + public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): Promise; } - /** Represents a Port. */ - class Port implements IPort { + namespace DatasetService { /** - * Constructs a new Port. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|createDataset}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPort); + type CreateDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** Port containerPort. */ - public containerPort: number; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|getDataset}. + * @param error Error, if any + * @param [response] Dataset + */ + type GetDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; /** - * Creates a new Port instance using the specified properties. - * @param [properties] Properties to set - * @returns Port instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|updateDataset}. + * @param error Error, if any + * @param [response] Dataset */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPort): google.cloud.aiplatform.v1beta1.Port; + type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; /** - * Encodes the specified Port message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. - * @param message Port message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listDatasets}. + * @param error Error, if any + * @param [response] ListDatasetsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; + type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDatasetsResponse) => void; /** - * Encodes the specified Port message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. - * @param message Port message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|deleteDataset}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a Port message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Port - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|importData}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Port; + type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a Port message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Port - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|exportData}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Port; + type ExportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies a Port message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listDataItems}. + * @param error Error, if any + * @param [response] ListDataItemsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataItemsResponse) => void; /** - * Creates a Port message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Port + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|searchDataItems}. + * @param error Error, if any + * @param [response] SearchDataItemsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Port; + type SearchDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) => void; /** - * Creates a plain object from a Port message. Also converts values to other types if specified. - * @param message Port - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listSavedQueries}. + * @param error Error, if any + * @param [response] ListSavedQueriesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Port, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ListSavedQueriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) => void; /** - * Converts this Port to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|getAnnotationSpec}. + * @param error Error, if any + * @param [response] AnnotationSpec */ - public toJSON(): { [k: string]: any }; + type GetAnnotationSpecCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AnnotationSpec) => void; /** - * Gets the default type url for Port - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listAnnotations}. + * @param error Error, if any + * @param [response] ListAnnotationsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ListAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) => void; } - /** Properties of a ModelSourceInfo. */ - interface IModelSourceInfo { + /** Properties of a CreateDatasetRequest. */ + interface ICreateDatasetRequest { - /** ModelSourceInfo sourceType */ - sourceType?: (google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|keyof typeof google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|null); + /** CreateDatasetRequest parent */ + parent?: (string|null); + + /** CreateDatasetRequest dataset */ + dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); } - /** Represents a ModelSourceInfo. */ - class ModelSourceInfo implements IModelSourceInfo { + /** Represents a CreateDatasetRequest. */ + class CreateDatasetRequest implements ICreateDatasetRequest { /** - * Constructs a new ModelSourceInfo. + * Constructs a new CreateDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelSourceInfo); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest); - /** ModelSourceInfo sourceType. */ - public sourceType: (google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|keyof typeof google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType); + /** CreateDatasetRequest parent. */ + public parent: string; + + /** CreateDatasetRequest dataset. */ + public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); /** - * Creates a new ModelSourceInfo instance using the specified properties. + * Creates a new CreateDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelSourceInfo instance + * @returns CreateDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelSourceInfo): google.cloud.aiplatform.v1beta1.ModelSourceInfo; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Encodes the specified ModelSourceInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelSourceInfo.verify|verify} messages. - * @param message ModelSourceInfo message or plain object to encode + * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. + * @param message CreateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelSourceInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelSourceInfo.verify|verify} messages. - * @param message ModelSourceInfo message or plain object to encode + * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. + * @param message CreateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelSourceInfo message from the specified reader or buffer. + * Decodes a CreateDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelSourceInfo + * @returns CreateDatasetRequest * @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.aiplatform.v1beta1.ModelSourceInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Decodes a ModelSourceInfo message from the specified reader or buffer, length delimited. + * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelSourceInfo + * @returns CreateDatasetRequest * @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.aiplatform.v1beta1.ModelSourceInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Verifies a ModelSourceInfo message. + * Verifies a CreateDatasetRequest 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 ModelSourceInfo message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelSourceInfo + * @returns CreateDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelSourceInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Creates a plain object from a ModelSourceInfo message. Also converts values to other types if specified. - * @param message ModelSourceInfo + * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. + * @param message CreateDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelSourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelSourceInfo to JSON. + * Converts this CreateDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelSourceInfo + * Gets the default type url for CreateDatasetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelSourceInfo { - - /** ModelSourceType enum. */ - enum ModelSourceType { - MODEL_SOURCE_TYPE_UNSPECIFIED = 0, - AUTOML = 1, - CUSTOM = 2, - BQML = 3 - } - } - - /** Properties of a DeployedModelRef. */ - interface IDeployedModelRef { - - /** DeployedModelRef endpoint */ - endpoint?: (string|null); + /** Properties of a CreateDatasetOperationMetadata. */ + interface ICreateDatasetOperationMetadata { - /** DeployedModelRef deployedModelId */ - deployedModelId?: (string|null); + /** CreateDatasetOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeployedModelRef. */ - class DeployedModelRef implements IDeployedModelRef { + /** Represents a CreateDatasetOperationMetadata. */ + class CreateDatasetOperationMetadata implements ICreateDatasetOperationMetadata { /** - * Constructs a new DeployedModelRef. + * Constructs a new CreateDatasetOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef); - - /** DeployedModelRef endpoint. */ - public endpoint: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata); - /** DeployedModelRef deployedModelId. */ - public deployedModelId: string; + /** CreateDatasetOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeployedModelRef instance using the specified properties. + * Creates a new CreateDatasetOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedModelRef instance + * @returns CreateDatasetOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Encodes the specified DeployedModelRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. - * @param message DeployedModelRef message or plain object to encode + * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. + * @param message CreateDatasetOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedModelRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. - * @param message DeployedModelRef message or plain object to encode + * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. + * @param message CreateDatasetOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedModelRef message from the specified reader or buffer. + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedModelRef + * @returns CreateDatasetOperationMetadata * @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.aiplatform.v1beta1.DeployedModelRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Decodes a DeployedModelRef message from the specified reader or buffer, length delimited. + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedModelRef + * @returns CreateDatasetOperationMetadata * @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.aiplatform.v1beta1.DeployedModelRef; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Verifies a DeployedModelRef message. + * Verifies a CreateDatasetOperationMetadata 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 DeployedModelRef message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedModelRef + * @returns CreateDatasetOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. - * @param message DeployedModelRef + * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified. + * @param message CreateDatasetOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModelRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedModelRef to JSON. + * Converts this CreateDatasetOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedModelRef + * Gets the default type url for CreateDatasetOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnvVar. */ - interface IEnvVar { + /** Properties of a GetDatasetRequest. */ + interface IGetDatasetRequest { - /** EnvVar name */ + /** GetDatasetRequest name */ name?: (string|null); - /** EnvVar value */ - value?: (string|null); + /** GetDatasetRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an EnvVar. */ - class EnvVar implements IEnvVar { + /** Represents a GetDatasetRequest. */ + class GetDatasetRequest implements IGetDatasetRequest { /** - * Constructs a new EnvVar. + * Constructs a new GetDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEnvVar); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest); - /** EnvVar name. */ + /** GetDatasetRequest name. */ public name: string; - /** EnvVar value. */ - public value: string; + /** GetDatasetRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new EnvVar instance using the specified properties. + * Creates a new GetDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EnvVar instance + * @returns GetDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEnvVar): google.cloud.aiplatform.v1beta1.EnvVar; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. - * @param message EnvVar message or plain object to encode + * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. + * @param message GetDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnvVar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. - * @param message EnvVar message or plain object to encode + * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. + * @param message GetDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnvVar message from the specified reader or buffer. + * Decodes a GetDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnvVar + * @returns GetDatasetRequest * @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.aiplatform.v1beta1.EnvVar; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Decodes an EnvVar message from the specified reader or buffer, length delimited. + * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnvVar + * @returns GetDatasetRequest * @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.aiplatform.v1beta1.EnvVar; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Verifies an EnvVar message. + * Verifies a GetDatasetRequest 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 an EnvVar message from a plain object. Also converts values to their respective internal types. + * Creates a GetDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnvVar + * @returns GetDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EnvVar; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Creates a plain object from an EnvVar message. Also converts values to other types if specified. - * @param message EnvVar + * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. + * @param message GetDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.EnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnvVar to JSON. + * Converts this GetDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnvVar + * Gets the default type url for GetDatasetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Context. */ - interface IContext { - - /** Context name */ - name?: (string|null); - - /** Context displayName */ - displayName?: (string|null); - - /** Context etag */ - etag?: (string|null); - - /** Context labels */ - labels?: ({ [k: string]: string }|null); - - /** Context createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Context updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Context parentContexts */ - parentContexts?: (string[]|null); - - /** Context schemaTitle */ - schemaTitle?: (string|null); - - /** Context schemaVersion */ - schemaVersion?: (string|null); + /** Properties of an UpdateDatasetRequest. */ + interface IUpdateDatasetRequest { - /** Context metadata */ - metadata?: (google.protobuf.IStruct|null); + /** UpdateDatasetRequest dataset */ + dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); - /** Context description */ - description?: (string|null); + /** UpdateDatasetRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a Context. */ - class Context implements IContext { + /** Represents an UpdateDatasetRequest. */ + class UpdateDatasetRequest implements IUpdateDatasetRequest { /** - * Constructs a new Context. + * Constructs a new UpdateDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContext); - - /** Context name. */ - public name: string; - - /** Context displayName. */ - public displayName: string; - - /** Context etag. */ - public etag: string; - - /** Context labels. */ - public labels: { [k: string]: string }; - - /** Context createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Context updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Context parentContexts. */ - public parentContexts: string[]; - - /** Context schemaTitle. */ - public schemaTitle: string; - - /** Context schemaVersion. */ - public schemaVersion: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest); - /** Context metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** UpdateDatasetRequest dataset. */ + public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); - /** Context description. */ - public description: string; + /** UpdateDatasetRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new Context instance using the specified properties. + * Creates a new UpdateDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Context instance + * @returns UpdateDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContext): google.cloud.aiplatform.v1beta1.Context; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. - * @param message Context message or plain object to encode + * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. + * @param message UpdateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. - * @param message Context message or plain object to encode + * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. + * @param message UpdateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Context message from the specified reader or buffer. + * Decodes an UpdateDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Context + * @returns UpdateDatasetRequest * @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.aiplatform.v1beta1.Context; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Decodes a Context message from the specified reader or buffer, length delimited. + * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Context + * @returns UpdateDatasetRequest * @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.aiplatform.v1beta1.Context; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Verifies a Context message. + * Verifies an UpdateDatasetRequest 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 Context message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Context + * @returns UpdateDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Context; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Creates a plain object from a Context message. Also converts values to other types if specified. - * @param message Context + * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified. + * @param message UpdateDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Context, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Context to JSON. + * Converts this UpdateDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Context + * Gets the default type url for UpdateDatasetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomJob. */ - interface ICustomJob { - - /** CustomJob name */ - name?: (string|null); - - /** CustomJob displayName */ - displayName?: (string|null); - - /** CustomJob jobSpec */ - jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** CustomJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** CustomJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListDatasetsRequest. */ + interface IListDatasetsRequest { - /** CustomJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** ListDatasetsRequest parent */ + parent?: (string|null); - /** CustomJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListDatasetsRequest filter */ + filter?: (string|null); - /** CustomJob error */ - error?: (google.rpc.IStatus|null); + /** ListDatasetsRequest pageSize */ + pageSize?: (number|null); - /** CustomJob labels */ - labels?: ({ [k: string]: string }|null); + /** ListDatasetsRequest pageToken */ + pageToken?: (string|null); - /** CustomJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ListDatasetsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** CustomJob webAccessUris */ - webAccessUris?: ({ [k: string]: string }|null); + /** ListDatasetsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CustomJob. */ - class CustomJob implements ICustomJob { + /** Represents a ListDatasetsRequest. */ + class ListDatasetsRequest implements IListDatasetsRequest { /** - * Constructs a new CustomJob. + * Constructs a new ListDatasetsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJob); - - /** CustomJob name. */ - public name: string; - - /** CustomJob displayName. */ - public displayName: string; - - /** CustomJob jobSpec. */ - public jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** CustomJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** CustomJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest); - /** CustomJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** ListDatasetsRequest parent. */ + public parent: string; - /** CustomJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListDatasetsRequest filter. */ + public filter: string; - /** CustomJob error. */ - public error?: (google.rpc.IStatus|null); + /** ListDatasetsRequest pageSize. */ + public pageSize: number; - /** CustomJob labels. */ - public labels: { [k: string]: string }; + /** ListDatasetsRequest pageToken. */ + public pageToken: string; - /** CustomJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ListDatasetsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** CustomJob webAccessUris. */ - public webAccessUris: { [k: string]: string }; + /** ListDatasetsRequest orderBy. */ + public orderBy: string; /** - * Creates a new CustomJob instance using the specified properties. + * Creates a new ListDatasetsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CustomJob instance + * @returns ListDatasetsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJob): google.cloud.aiplatform.v1beta1.CustomJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. - * @param message CustomJob message or plain object to encode + * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. + * @param message ListDatasetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. - * @param message CustomJob message or plain object to encode + * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. + * @param message ListDatasetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJob message from the specified reader or buffer. + * Decodes a ListDatasetsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomJob + * @returns ListDatasetsRequest * @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.aiplatform.v1beta1.CustomJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Decodes a CustomJob message from the specified reader or buffer, length delimited. + * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomJob + * @returns ListDatasetsRequest * @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.aiplatform.v1beta1.CustomJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Verifies a CustomJob message. + * Verifies a ListDatasetsRequest 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 CustomJob message from a plain object. Also converts values to their respective internal types. + * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomJob + * @returns ListDatasetsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Creates a plain object from a CustomJob message. Also converts values to other types if specified. - * @param message CustomJob + * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. + * @param message ListDatasetsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJob to JSON. + * Converts this ListDatasetsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomJob + * Gets the default type url for ListDatasetsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomJobSpec. */ - interface ICustomJobSpec { - - /** CustomJobSpec workerPoolSpecs */ - workerPoolSpecs?: (google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]|null); - - /** CustomJobSpec scheduling */ - scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - - /** CustomJobSpec serviceAccount */ - serviceAccount?: (string|null); - - /** CustomJobSpec network */ - network?: (string|null); - - /** CustomJobSpec reservedIpRanges */ - reservedIpRanges?: (string[]|null); - - /** CustomJobSpec baseOutputDirectory */ - baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** CustomJobSpec tensorboard */ - tensorboard?: (string|null); + /** Properties of a ListDatasetsResponse. */ + interface IListDatasetsResponse { - /** CustomJobSpec enableWebAccess */ - enableWebAccess?: (boolean|null); + /** ListDatasetsResponse datasets */ + datasets?: (google.cloud.aiplatform.v1beta1.IDataset[]|null); - /** CustomJobSpec enableDashboardAccess */ - enableDashboardAccess?: (boolean|null); + /** ListDatasetsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CustomJobSpec. */ - class CustomJobSpec implements ICustomJobSpec { + /** Represents a ListDatasetsResponse. */ + class ListDatasetsResponse implements IListDatasetsResponse { /** - * Constructs a new CustomJobSpec. + * Constructs a new ListDatasetsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec); - - /** CustomJobSpec workerPoolSpecs. */ - public workerPoolSpecs: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]; - - /** CustomJobSpec scheduling. */ - public scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - - /** CustomJobSpec serviceAccount. */ - public serviceAccount: string; - - /** CustomJobSpec network. */ - public network: string; - - /** CustomJobSpec reservedIpRanges. */ - public reservedIpRanges: string[]; - - /** CustomJobSpec baseOutputDirectory. */ - public baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** CustomJobSpec tensorboard. */ - public tensorboard: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse); - /** CustomJobSpec enableWebAccess. */ - public enableWebAccess: boolean; + /** ListDatasetsResponse datasets. */ + public datasets: google.cloud.aiplatform.v1beta1.IDataset[]; - /** CustomJobSpec enableDashboardAccess. */ - public enableDashboardAccess: boolean; + /** ListDatasetsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CustomJobSpec instance using the specified properties. + * Creates a new ListDatasetsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CustomJobSpec instance + * @returns ListDatasetsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec): google.cloud.aiplatform.v1beta1.CustomJobSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Encodes the specified CustomJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. - * @param message CustomJobSpec message or plain object to encode + * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. + * @param message ListDatasetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. - * @param message CustomJobSpec message or plain object to encode + * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. + * @param message ListDatasetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJobSpec message from the specified reader or buffer. + * Decodes a ListDatasetsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomJobSpec + * @returns ListDatasetsResponse * @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.aiplatform.v1beta1.CustomJobSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Decodes a CustomJobSpec message from the specified reader or buffer, length delimited. + * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomJobSpec + * @returns ListDatasetsResponse * @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.aiplatform.v1beta1.CustomJobSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Verifies a CustomJobSpec message. + * Verifies a ListDatasetsResponse 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 CustomJobSpec message from a plain object. Also converts values to their respective internal types. + * Creates a ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomJobSpec + * @returns ListDatasetsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJobSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Creates a plain object from a CustomJobSpec message. Also converts values to other types if specified. - * @param message CustomJobSpec + * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. + * @param message ListDatasetsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJobSpec to JSON. + * Converts this ListDatasetsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomJobSpec + * Gets the default type url for ListDatasetsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WorkerPoolSpec. */ - interface IWorkerPoolSpec { - - /** WorkerPoolSpec containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - - /** WorkerPoolSpec pythonPackageSpec */ - pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); - - /** WorkerPoolSpec machineSpec */ - machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - - /** WorkerPoolSpec replicaCount */ - replicaCount?: (number|Long|string|null); - - /** WorkerPoolSpec nfsMounts */ - nfsMounts?: (google.cloud.aiplatform.v1beta1.INfsMount[]|null); + /** Properties of a DeleteDatasetRequest. */ + interface IDeleteDatasetRequest { - /** WorkerPoolSpec diskSpec */ - diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + /** DeleteDatasetRequest name */ + name?: (string|null); } - /** Represents a WorkerPoolSpec. */ - class WorkerPoolSpec implements IWorkerPoolSpec { + /** Represents a DeleteDatasetRequest. */ + class DeleteDatasetRequest implements IDeleteDatasetRequest { /** - * Constructs a new WorkerPoolSpec. + * Constructs a new DeleteDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec); - - /** WorkerPoolSpec containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - - /** WorkerPoolSpec pythonPackageSpec. */ - public pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); - - /** WorkerPoolSpec machineSpec. */ - public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - - /** WorkerPoolSpec replicaCount. */ - public replicaCount: (number|Long|string); - - /** WorkerPoolSpec nfsMounts. */ - public nfsMounts: google.cloud.aiplatform.v1beta1.INfsMount[]; - - /** WorkerPoolSpec diskSpec. */ - public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest); - /** WorkerPoolSpec task. */ - public task?: ("containerSpec"|"pythonPackageSpec"); + /** DeleteDatasetRequest name. */ + public name: string; /** - * Creates a new WorkerPoolSpec instance using the specified properties. + * Creates a new DeleteDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WorkerPoolSpec instance + * @returns DeleteDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. - * @param message WorkerPoolSpec message or plain object to encode + * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. + * @param message DeleteDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WorkerPoolSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. - * @param message WorkerPoolSpec message or plain object to encode + * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. + * @param message DeleteDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkerPoolSpec message from the specified reader or buffer. + * Decodes a DeleteDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WorkerPoolSpec + * @returns DeleteDatasetRequest * @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.aiplatform.v1beta1.WorkerPoolSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Decodes a WorkerPoolSpec message from the specified reader or buffer, length delimited. + * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WorkerPoolSpec + * @returns DeleteDatasetRequest * @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.aiplatform.v1beta1.WorkerPoolSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Verifies a WorkerPoolSpec message. + * Verifies a DeleteDatasetRequest 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 WorkerPoolSpec message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WorkerPoolSpec + * @returns DeleteDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Creates a plain object from a WorkerPoolSpec message. Also converts values to other types if specified. - * @param message WorkerPoolSpec + * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. + * @param message DeleteDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.WorkerPoolSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WorkerPoolSpec to JSON. + * Converts this DeleteDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WorkerPoolSpec + * Gets the default type url for DeleteDatasetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ContainerSpec. */ - interface IContainerSpec { - - /** ContainerSpec imageUri */ - imageUri?: (string|null); - - /** ContainerSpec command */ - command?: (string[]|null); + /** Properties of an ImportDataRequest. */ + interface IImportDataRequest { - /** ContainerSpec args */ - args?: (string[]|null); + /** ImportDataRequest name */ + name?: (string|null); - /** ContainerSpec env */ - env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + /** ImportDataRequest importConfigs */ + importConfigs?: (google.cloud.aiplatform.v1beta1.IImportDataConfig[]|null); } - /** Represents a ContainerSpec. */ - class ContainerSpec implements IContainerSpec { + /** Represents an ImportDataRequest. */ + class ImportDataRequest implements IImportDataRequest { /** - * Constructs a new ContainerSpec. + * Constructs a new ImportDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec); - - /** ContainerSpec imageUri. */ - public imageUri: string; - - /** ContainerSpec command. */ - public command: string[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest); - /** ContainerSpec args. */ - public args: string[]; + /** ImportDataRequest name. */ + public name: string; - /** ContainerSpec env. */ - public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + /** ImportDataRequest importConfigs. */ + public importConfigs: google.cloud.aiplatform.v1beta1.IImportDataConfig[]; /** - * Creates a new ContainerSpec instance using the specified properties. + * Creates a new ImportDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ContainerSpec instance + * @returns ImportDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Encodes the specified ContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. - * @param message ContainerSpec message or plain object to encode + * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. + * @param message ImportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. - * @param message ContainerSpec message or plain object to encode + * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. + * @param message ImportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ContainerSpec message from the specified reader or buffer. + * Decodes an ImportDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ContainerSpec + * @returns ImportDataRequest * @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.aiplatform.v1beta1.ContainerSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Decodes a ContainerSpec message from the specified reader or buffer, length delimited. + * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ContainerSpec + * @returns ImportDataRequest * @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.aiplatform.v1beta1.ContainerSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Verifies a ContainerSpec message. + * Verifies an ImportDataRequest 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 ContainerSpec message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ContainerSpec + * @returns ImportDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Creates a plain object from a ContainerSpec message. Also converts values to other types if specified. - * @param message ContainerSpec + * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified. + * @param message ImportDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ContainerSpec to JSON. + * Converts this ImportDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ContainerSpec + * Gets the default type url for ImportDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PythonPackageSpec. */ - interface IPythonPackageSpec { - - /** PythonPackageSpec executorImageUri */ - executorImageUri?: (string|null); - - /** PythonPackageSpec packageUris */ - packageUris?: (string[]|null); - - /** PythonPackageSpec pythonModule */ - pythonModule?: (string|null); - - /** PythonPackageSpec args */ - args?: (string[]|null); - - /** PythonPackageSpec env */ - env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + /** Properties of an ImportDataResponse. */ + interface IImportDataResponse { } - /** Represents a PythonPackageSpec. */ - class PythonPackageSpec implements IPythonPackageSpec { + /** Represents an ImportDataResponse. */ + class ImportDataResponse implements IImportDataResponse { /** - * Constructs a new PythonPackageSpec. + * Constructs a new ImportDataResponse. * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec); - - /** PythonPackageSpec executorImageUri. */ - public executorImageUri: string; - - /** PythonPackageSpec packageUris. */ - public packageUris: string[]; - - /** PythonPackageSpec pythonModule. */ - public pythonModule: string; - - /** PythonPackageSpec args. */ - public args: string[]; - - /** PythonPackageSpec env. */ - public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse); /** - * Creates a new PythonPackageSpec instance using the specified properties. + * Creates a new ImportDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PythonPackageSpec instance + * @returns ImportDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Encodes the specified PythonPackageSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. - * @param message PythonPackageSpec message or plain object to encode + * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. + * @param message ImportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PythonPackageSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. - * @param message PythonPackageSpec message or plain object to encode + * Encodes the specified ImportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. + * @param message ImportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer. + * Decodes an ImportDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PythonPackageSpec + * @returns ImportDataResponse * @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.aiplatform.v1beta1.PythonPackageSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer, length delimited. + * Decodes an ImportDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PythonPackageSpec + * @returns ImportDataResponse * @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.aiplatform.v1beta1.PythonPackageSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Verifies a PythonPackageSpec message. + * Verifies an ImportDataResponse 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 PythonPackageSpec message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PythonPackageSpec + * @returns ImportDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Creates a plain object from a PythonPackageSpec message. Also converts values to other types if specified. - * @param message PythonPackageSpec + * Creates a plain object from an ImportDataResponse message. Also converts values to other types if specified. + * @param message ImportDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PythonPackageSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PythonPackageSpec to JSON. + * Converts this ImportDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PythonPackageSpec + * Gets the default type url for ImportDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Scheduling. */ - interface IScheduling { - - /** Scheduling timeout */ - timeout?: (google.protobuf.IDuration|null); + /** Properties of an ImportDataOperationMetadata. */ + interface IImportDataOperationMetadata { - /** Scheduling restartJobOnWorkerRestart */ - restartJobOnWorkerRestart?: (boolean|null); + /** ImportDataOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a Scheduling. */ - class Scheduling implements IScheduling { + /** Represents an ImportDataOperationMetadata. */ + class ImportDataOperationMetadata implements IImportDataOperationMetadata { /** - * Constructs a new Scheduling. + * Constructs a new ImportDataOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IScheduling); - - /** Scheduling timeout. */ - public timeout?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata); - /** Scheduling restartJobOnWorkerRestart. */ - public restartJobOnWorkerRestart: boolean; + /** ImportDataOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new Scheduling instance using the specified properties. + * Creates a new ImportDataOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns Scheduling instance + * @returns ImportDataOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IScheduling): google.cloud.aiplatform.v1beta1.Scheduling; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Encodes the specified Scheduling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. - * @param message Scheduling message or plain object to encode + * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. + * @param message ImportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Scheduling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. - * @param message Scheduling message or plain object to encode + * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. + * @param message ImportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Scheduling message from the specified reader or buffer. + * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Scheduling + * @returns ImportDataOperationMetadata * @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.aiplatform.v1beta1.Scheduling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Decodes a Scheduling message from the specified reader or buffer, length delimited. + * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Scheduling + * @returns ImportDataOperationMetadata * @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.aiplatform.v1beta1.Scheduling; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Verifies a Scheduling message. + * Verifies an ImportDataOperationMetadata 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 Scheduling message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Scheduling + * @returns ImportDataOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Scheduling; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Creates a plain object from a Scheduling message. Also converts values to other types if specified. - * @param message Scheduling + * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified. + * @param message ImportDataOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Scheduling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Scheduling to JSON. + * Converts this ImportDataOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Scheduling + * Gets the default type url for ImportDataOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DataItem. */ - interface IDataItem { + /** Properties of an ExportDataRequest. */ + interface IExportDataRequest { - /** DataItem name */ + /** ExportDataRequest name */ name?: (string|null); - /** DataItem createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** DataItem updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** DataItem labels */ - labels?: ({ [k: string]: string }|null); - - /** DataItem payload */ - payload?: (google.protobuf.IValue|null); - - /** DataItem etag */ - etag?: (string|null); + /** ExportDataRequest exportConfig */ + exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); } - /** Represents a DataItem. */ - class DataItem implements IDataItem { + /** Represents an ExportDataRequest. */ + class ExportDataRequest implements IExportDataRequest { /** - * Constructs a new DataItem. + * Constructs a new ExportDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItem); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest); - /** DataItem name. */ + /** ExportDataRequest name. */ public name: string; - /** DataItem createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DataItem updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** DataItem labels. */ - public labels: { [k: string]: string }; - - /** DataItem payload. */ - public payload?: (google.protobuf.IValue|null); - - /** DataItem etag. */ - public etag: string; + /** ExportDataRequest exportConfig. */ + public exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); /** - * Creates a new DataItem instance using the specified properties. + * Creates a new ExportDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DataItem instance + * @returns ExportDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItem): google.cloud.aiplatform.v1beta1.DataItem; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. - * @param message DataItem message or plain object to encode + * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. + * @param message ExportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. - * @param message DataItem message or plain object to encode + * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. + * @param message ExportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataItem message from the specified reader or buffer. + * Decodes an ExportDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataItem + * @returns ExportDataRequest * @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.aiplatform.v1beta1.DataItem; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Decodes a DataItem message from the specified reader or buffer, length delimited. + * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataItem + * @returns ExportDataRequest * @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.aiplatform.v1beta1.DataItem; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Verifies a DataItem message. + * Verifies an ExportDataRequest 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 DataItem message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataItem + * @returns ExportDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItem; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Creates a plain object from a DataItem message. Also converts values to other types if specified. - * @param message DataItem + * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified. + * @param message ExportDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataItem to JSON. + * Converts this ExportDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataItem + * Gets the default type url for ExportDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DataLabelingJob. */ - interface IDataLabelingJob { - - /** DataLabelingJob name */ - name?: (string|null); - - /** DataLabelingJob displayName */ - displayName?: (string|null); - - /** DataLabelingJob datasets */ - datasets?: (string[]|null); - - /** DataLabelingJob annotationLabels */ - annotationLabels?: ({ [k: string]: string }|null); - - /** DataLabelingJob labelerCount */ - labelerCount?: (number|null); - - /** DataLabelingJob instructionUri */ - instructionUri?: (string|null); - - /** DataLabelingJob inputsSchemaUri */ - inputsSchemaUri?: (string|null); - - /** DataLabelingJob inputs */ - inputs?: (google.protobuf.IValue|null); - - /** DataLabelingJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** DataLabelingJob labelingProgress */ - labelingProgress?: (number|null); - - /** DataLabelingJob currentSpend */ - currentSpend?: (google.type.IMoney|null); - - /** DataLabelingJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob error */ - error?: (google.rpc.IStatus|null); - - /** DataLabelingJob labels */ - labels?: ({ [k: string]: string }|null); - - /** DataLabelingJob specialistPools */ - specialistPools?: (string[]|null); - - /** DataLabelingJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Properties of an ExportDataResponse. */ + interface IExportDataResponse { - /** DataLabelingJob activeLearningConfig */ - activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + /** ExportDataResponse exportedFiles */ + exportedFiles?: (string[]|null); } - /** Represents a DataLabelingJob. */ - class DataLabelingJob implements IDataLabelingJob { + /** Represents an ExportDataResponse. */ + class ExportDataResponse implements IExportDataResponse { /** - * Constructs a new DataLabelingJob. + * Constructs a new ExportDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob); - - /** DataLabelingJob name. */ - public name: string; - - /** DataLabelingJob displayName. */ - public displayName: string; - - /** DataLabelingJob datasets. */ - public datasets: string[]; - - /** DataLabelingJob annotationLabels. */ - public annotationLabels: { [k: string]: string }; - - /** DataLabelingJob labelerCount. */ - public labelerCount: number; - - /** DataLabelingJob instructionUri. */ - public instructionUri: string; - - /** DataLabelingJob inputsSchemaUri. */ - public inputsSchemaUri: string; - - /** DataLabelingJob inputs. */ - public inputs?: (google.protobuf.IValue|null); - - /** DataLabelingJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** DataLabelingJob labelingProgress. */ - public labelingProgress: number; - - /** DataLabelingJob currentSpend. */ - public currentSpend?: (google.type.IMoney|null); - - /** DataLabelingJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob error. */ - public error?: (google.rpc.IStatus|null); - - /** DataLabelingJob labels. */ - public labels: { [k: string]: string }; - - /** DataLabelingJob specialistPools. */ - public specialistPools: string[]; - - /** DataLabelingJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse); - /** DataLabelingJob activeLearningConfig. */ - public activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + /** ExportDataResponse exportedFiles. */ + public exportedFiles: string[]; /** - * Creates a new DataLabelingJob instance using the specified properties. + * Creates a new ExportDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DataLabelingJob instance + * @returns ExportDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Encodes the specified DataLabelingJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. - * @param message DataLabelingJob message or plain object to encode + * Encodes the specified ExportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. + * @param message ExportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataLabelingJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. - * @param message DataLabelingJob message or plain object to encode + * Encodes the specified ExportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. + * @param message ExportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataLabelingJob message from the specified reader or buffer. + * Decodes an ExportDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataLabelingJob + * @returns ExportDataResponse * @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.aiplatform.v1beta1.DataLabelingJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Decodes a DataLabelingJob message from the specified reader or buffer, length delimited. + * Decodes an ExportDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataLabelingJob + * @returns ExportDataResponse * @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.aiplatform.v1beta1.DataLabelingJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Verifies a DataLabelingJob message. + * Verifies an ExportDataResponse 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 DataLabelingJob message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataLabelingJob + * @returns ExportDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Creates a plain object from a DataLabelingJob message. Also converts values to other types if specified. - * @param message DataLabelingJob + * Creates a plain object from an ExportDataResponse message. Also converts values to other types if specified. + * @param message ExportDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DataLabelingJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataLabelingJob to JSON. + * Converts this ExportDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataLabelingJob + * Gets the default type url for ExportDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ActiveLearningConfig. */ - interface IActiveLearningConfig { - - /** ActiveLearningConfig maxDataItemCount */ - maxDataItemCount?: (number|Long|string|null); - - /** ActiveLearningConfig maxDataItemPercentage */ - maxDataItemPercentage?: (number|null); + /** Properties of an ExportDataOperationMetadata. */ + interface IExportDataOperationMetadata { - /** ActiveLearningConfig sampleConfig */ - sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + /** ExportDataOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ActiveLearningConfig trainingConfig */ - trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + /** ExportDataOperationMetadata gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); } - /** Represents an ActiveLearningConfig. */ - class ActiveLearningConfig implements IActiveLearningConfig { + /** Represents an ExportDataOperationMetadata. */ + class ExportDataOperationMetadata implements IExportDataOperationMetadata { /** - * Constructs a new ActiveLearningConfig. + * Constructs a new ExportDataOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig); - - /** ActiveLearningConfig maxDataItemCount. */ - public maxDataItemCount?: (number|Long|string|null); - - /** ActiveLearningConfig maxDataItemPercentage. */ - public maxDataItemPercentage?: (number|null); - - /** ActiveLearningConfig sampleConfig. */ - public sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata); - /** ActiveLearningConfig trainingConfig. */ - public trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + /** ExportDataOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ActiveLearningConfig humanLabelingBudget. */ - public humanLabelingBudget?: ("maxDataItemCount"|"maxDataItemPercentage"); + /** ExportDataOperationMetadata gcsOutputDirectory. */ + public gcsOutputDirectory: string; /** - * Creates a new ActiveLearningConfig instance using the specified properties. + * Creates a new ExportDataOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ActiveLearningConfig instance + * @returns ExportDataOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Encodes the specified ActiveLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. - * @param message ActiveLearningConfig message or plain object to encode + * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. + * @param message ExportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ActiveLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. - * @param message ActiveLearningConfig message or plain object to encode + * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. + * @param message ExportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActiveLearningConfig message from the specified reader or buffer. + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActiveLearningConfig + * @returns ExportDataOperationMetadata * @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.aiplatform.v1beta1.ActiveLearningConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Decodes an ActiveLearningConfig message from the specified reader or buffer, length delimited. + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActiveLearningConfig + * @returns ExportDataOperationMetadata * @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.aiplatform.v1beta1.ActiveLearningConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Verifies an ActiveLearningConfig message. + * Verifies an ExportDataOperationMetadata 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 an ActiveLearningConfig message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActiveLearningConfig + * @returns ExportDataOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Creates a plain object from an ActiveLearningConfig message. Also converts values to other types if specified. - * @param message ActiveLearningConfig + * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. + * @param message ExportDataOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ActiveLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActiveLearningConfig to JSON. + * Converts this ExportDataOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ActiveLearningConfig + * Gets the default type url for ExportDataOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SampleConfig. */ - interface ISampleConfig { + /** Properties of a ListDataItemsRequest. */ + interface IListDataItemsRequest { - /** SampleConfig initialBatchSamplePercentage */ - initialBatchSamplePercentage?: (number|null); + /** ListDataItemsRequest parent */ + parent?: (string|null); - /** SampleConfig followingBatchSamplePercentage */ - followingBatchSamplePercentage?: (number|null); + /** ListDataItemsRequest filter */ + filter?: (string|null); - /** SampleConfig sampleStrategy */ - sampleStrategy?: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|null); + /** ListDataItemsRequest pageSize */ + pageSize?: (number|null); + + /** ListDataItemsRequest pageToken */ + pageToken?: (string|null); + + /** ListDataItemsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListDataItemsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a SampleConfig. */ - class SampleConfig implements ISampleConfig { + /** Represents a ListDataItemsRequest. */ + class ListDataItemsRequest implements IListDataItemsRequest { /** - * Constructs a new SampleConfig. + * Constructs a new ListDataItemsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest); - /** SampleConfig initialBatchSamplePercentage. */ - public initialBatchSamplePercentage?: (number|null); + /** ListDataItemsRequest parent. */ + public parent: string; - /** SampleConfig followingBatchSamplePercentage. */ - public followingBatchSamplePercentage?: (number|null); + /** ListDataItemsRequest filter. */ + public filter: string; - /** SampleConfig sampleStrategy. */ - public sampleStrategy: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy); + /** ListDataItemsRequest pageSize. */ + public pageSize: number; - /** SampleConfig initialBatchSampleSize. */ - public initialBatchSampleSize?: "initialBatchSamplePercentage"; + /** ListDataItemsRequest pageToken. */ + public pageToken: string; - /** SampleConfig followingBatchSampleSize. */ - public followingBatchSampleSize?: "followingBatchSamplePercentage"; + /** ListDataItemsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListDataItemsRequest orderBy. */ + public orderBy: string; /** - * Creates a new SampleConfig instance using the specified properties. + * Creates a new ListDataItemsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SampleConfig instance + * @returns ListDataItemsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig): google.cloud.aiplatform.v1beta1.SampleConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Encodes the specified SampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. - * @param message SampleConfig message or plain object to encode + * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * @param message ListDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. - * @param message SampleConfig message or plain object to encode + * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * @param message ListDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SampleConfig message from the specified reader or buffer. + * Decodes a ListDataItemsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SampleConfig + * @returns ListDataItemsRequest * @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.aiplatform.v1beta1.SampleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Decodes a SampleConfig message from the specified reader or buffer, length delimited. + * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SampleConfig + * @returns ListDataItemsRequest * @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.aiplatform.v1beta1.SampleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Verifies a SampleConfig message. + * Verifies a ListDataItemsRequest 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 SampleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataItemsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SampleConfig + * @returns ListDataItemsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Creates a plain object from a SampleConfig message. Also converts values to other types if specified. - * @param message SampleConfig + * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified. + * @param message ListDataItemsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SampleConfig to JSON. + * Converts this ListDataItemsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SampleConfig + * Gets the default type url for ListDataItemsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SampleConfig { - - /** SampleStrategy enum. */ - enum SampleStrategy { - SAMPLE_STRATEGY_UNSPECIFIED = 0, - UNCERTAINTY = 1 - } - } + /** Properties of a ListDataItemsResponse. */ + interface IListDataItemsResponse { - /** Properties of a TrainingConfig. */ - interface ITrainingConfig { + /** ListDataItemsResponse dataItems */ + dataItems?: (google.cloud.aiplatform.v1beta1.IDataItem[]|null); - /** TrainingConfig timeoutTrainingMilliHours */ - timeoutTrainingMilliHours?: (number|Long|string|null); + /** ListDataItemsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a TrainingConfig. */ - class TrainingConfig implements ITrainingConfig { + /** Represents a ListDataItemsResponse. */ + class ListDataItemsResponse implements IListDataItemsResponse { /** - * Constructs a new TrainingConfig. + * Constructs a new ListDataItemsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse); - /** TrainingConfig timeoutTrainingMilliHours. */ - public timeoutTrainingMilliHours: (number|Long|string); + /** ListDataItemsResponse dataItems. */ + public dataItems: google.cloud.aiplatform.v1beta1.IDataItem[]; + + /** ListDataItemsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new TrainingConfig instance using the specified properties. + * Creates a new ListDataItemsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingConfig instance + * @returns ListDataItemsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Encodes the specified TrainingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. - * @param message TrainingConfig message or plain object to encode + * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. + * @param message ListDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. - * @param message TrainingConfig message or plain object to encode + * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. + * @param message ListDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingConfig message from the specified reader or buffer. + * Decodes a ListDataItemsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainingConfig + * @returns ListDataItemsResponse * @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.aiplatform.v1beta1.TrainingConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Decodes a TrainingConfig message from the specified reader or buffer, length delimited. + * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainingConfig + * @returns ListDataItemsResponse * @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.aiplatform.v1beta1.TrainingConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Verifies a TrainingConfig message. + * Verifies a ListDataItemsResponse 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 TrainingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataItemsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainingConfig + * @returns ListDataItemsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Creates a plain object from a TrainingConfig message. Also converts values to other types if specified. - * @param message TrainingConfig + * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified. + * @param message ListDataItemsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingConfig to JSON. + * Converts this ListDataItemsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainingConfig + * Gets the default type url for ListDataItemsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Dataset. */ - interface IDataset { + /** Properties of a SearchDataItemsRequest. */ + interface ISearchDataItemsRequest { - /** Dataset name */ - name?: (string|null); + /** SearchDataItemsRequest orderByDataItem */ + orderByDataItem?: (string|null); - /** Dataset displayName */ - displayName?: (string|null); + /** SearchDataItemsRequest orderByAnnotation */ + orderByAnnotation?: (google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation|null); - /** Dataset description */ - description?: (string|null); + /** SearchDataItemsRequest dataset */ + dataset?: (string|null); - /** Dataset metadataSchemaUri */ - metadataSchemaUri?: (string|null); + /** SearchDataItemsRequest savedQuery */ + savedQuery?: (string|null); - /** Dataset metadata */ - metadata?: (google.protobuf.IValue|null); + /** SearchDataItemsRequest dataLabelingJob */ + dataLabelingJob?: (string|null); - /** Dataset createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** SearchDataItemsRequest dataItemFilter */ + dataItemFilter?: (string|null); - /** Dataset updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** SearchDataItemsRequest annotationsFilter */ + annotationsFilter?: (string|null); - /** Dataset etag */ - etag?: (string|null); + /** SearchDataItemsRequest annotationFilters */ + annotationFilters?: (string[]|null); - /** Dataset labels */ - labels?: ({ [k: string]: string }|null); + /** SearchDataItemsRequest fieldMask */ + fieldMask?: (google.protobuf.IFieldMask|null); - /** Dataset savedQueries */ - savedQueries?: (google.cloud.aiplatform.v1beta1.ISavedQuery[]|null); + /** SearchDataItemsRequest annotationsLimit */ + annotationsLimit?: (number|null); - /** Dataset encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** SearchDataItemsRequest pageSize */ + pageSize?: (number|null); - /** Dataset metadataArtifact */ - metadataArtifact?: (string|null); + /** SearchDataItemsRequest orderBy */ + orderBy?: (string|null); + + /** SearchDataItemsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a Dataset. */ - class Dataset implements IDataset { + /** Represents a SearchDataItemsRequest. */ + class SearchDataItemsRequest implements ISearchDataItemsRequest { /** - * Constructs a new Dataset. + * Constructs a new SearchDataItemsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataset); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest); - /** Dataset name. */ - public name: string; + /** SearchDataItemsRequest orderByDataItem. */ + public orderByDataItem?: (string|null); - /** Dataset displayName. */ - public displayName: string; + /** SearchDataItemsRequest orderByAnnotation. */ + public orderByAnnotation?: (google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation|null); - /** Dataset description. */ - public description: string; + /** SearchDataItemsRequest dataset. */ + public dataset: string; - /** Dataset metadataSchemaUri. */ - public metadataSchemaUri: string; + /** SearchDataItemsRequest savedQuery. */ + public savedQuery: string; - /** Dataset metadata. */ - public metadata?: (google.protobuf.IValue|null); + /** SearchDataItemsRequest dataLabelingJob. */ + public dataLabelingJob: string; - /** Dataset createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** SearchDataItemsRequest dataItemFilter. */ + public dataItemFilter: string; - /** Dataset updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** SearchDataItemsRequest annotationsFilter. */ + public annotationsFilter: string; - /** Dataset etag. */ - public etag: string; + /** SearchDataItemsRequest annotationFilters. */ + public annotationFilters: string[]; - /** Dataset labels. */ - public labels: { [k: string]: string }; + /** SearchDataItemsRequest fieldMask. */ + public fieldMask?: (google.protobuf.IFieldMask|null); - /** Dataset savedQueries. */ - public savedQueries: google.cloud.aiplatform.v1beta1.ISavedQuery[]; + /** SearchDataItemsRequest annotationsLimit. */ + public annotationsLimit: number; - /** Dataset encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** SearchDataItemsRequest pageSize. */ + public pageSize: number; - /** Dataset metadataArtifact. */ - public metadataArtifact: string; + /** SearchDataItemsRequest orderBy. */ + public orderBy: string; + + /** SearchDataItemsRequest pageToken. */ + public pageToken: string; + + /** SearchDataItemsRequest order. */ + public order?: ("orderByDataItem"|"orderByAnnotation"); /** - * Creates a new Dataset instance using the specified properties. + * Creates a new SearchDataItemsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Dataset instance + * @returns SearchDataItemsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataset): google.cloud.aiplatform.v1beta1.Dataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; /** - * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. - * @param message Dataset message or plain object to encode + * Encodes the specified SearchDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.verify|verify} messages. + * @param message SearchDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. - * @param message Dataset message or plain object to encode + * Encodes the specified SearchDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.verify|verify} messages. + * @param message SearchDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Dataset message from the specified reader or buffer. + * Decodes a SearchDataItemsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Dataset + * @returns SearchDataItemsRequest * @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.aiplatform.v1beta1.Dataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; /** - * Decodes a Dataset message from the specified reader or buffer, length delimited. + * Decodes a SearchDataItemsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Dataset + * @returns SearchDataItemsRequest * @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.aiplatform.v1beta1.Dataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; /** - * Verifies a Dataset message. + * Verifies a SearchDataItemsRequest 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 Dataset message from a plain object. Also converts values to their respective internal types. + * Creates a SearchDataItemsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Dataset + * @returns SearchDataItemsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Dataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; /** - * Creates a plain object from a Dataset message. Also converts values to other types if specified. - * @param message Dataset + * Creates a plain object from a SearchDataItemsRequest message. Also converts values to other types if specified. + * @param message SearchDataItemsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Dataset to JSON. + * Converts this SearchDataItemsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Dataset + * Gets the default type url for SearchDataItemsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportDataConfig. */ - interface IImportDataConfig { - - /** ImportDataConfig gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - - /** ImportDataConfig dataItemLabels */ - dataItemLabels?: ({ [k: string]: string }|null); - - /** ImportDataConfig annotationLabels */ - annotationLabels?: ({ [k: string]: string }|null); - - /** ImportDataConfig importSchemaUri */ - importSchemaUri?: (string|null); - } + namespace SearchDataItemsRequest { - /** Represents an ImportDataConfig. */ - class ImportDataConfig implements IImportDataConfig { + /** Properties of an OrderByAnnotation. */ + interface IOrderByAnnotation { - /** - * Constructs a new ImportDataConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig); + /** OrderByAnnotation savedQuery */ + savedQuery?: (string|null); - /** ImportDataConfig gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** OrderByAnnotation orderBy */ + orderBy?: (string|null); + } - /** ImportDataConfig dataItemLabels. */ - public dataItemLabels: { [k: string]: string }; + /** Represents an OrderByAnnotation. */ + class OrderByAnnotation implements IOrderByAnnotation { - /** ImportDataConfig annotationLabels. */ - public annotationLabels: { [k: string]: string }; + /** + * Constructs a new OrderByAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation); - /** ImportDataConfig importSchemaUri. */ - public importSchemaUri: string; + /** OrderByAnnotation savedQuery. */ + public savedQuery: string; - /** ImportDataConfig source. */ - public source?: "gcsSource"; + /** OrderByAnnotation orderBy. */ + public orderBy: string; - /** - * Creates a new ImportDataConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportDataConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig): google.cloud.aiplatform.v1beta1.ImportDataConfig; + /** + * Creates a new OrderByAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns OrderByAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - /** - * Encodes the specified ImportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. - * @param message ImportDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified OrderByAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.verify|verify} messages. + * @param message OrderByAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. - * @param message ImportDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified OrderByAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.verify|verify} messages. + * @param message OrderByAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ImportDataConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportDataConfig - * @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.aiplatform.v1beta1.ImportDataConfig; + /** + * Decodes an OrderByAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OrderByAnnotation + * @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.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - /** - * Decodes an ImportDataConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportDataConfig - * @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.aiplatform.v1beta1.ImportDataConfig; + /** + * Decodes an OrderByAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OrderByAnnotation + * @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.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - /** - * Verifies an ImportDataConfig 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); + /** + * Verifies an OrderByAnnotation 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 an ImportDataConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportDataConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataConfig; + /** + * Creates an OrderByAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OrderByAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - /** - * Creates a plain object from an ImportDataConfig message. Also converts values to other types if specified. - * @param message ImportDataConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an OrderByAnnotation message. Also converts values to other types if specified. + * @param message OrderByAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ImportDataConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this OrderByAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ImportDataConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for OrderByAnnotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of an ExportDataConfig. */ - interface IExportDataConfig { + /** Properties of a SearchDataItemsResponse. */ + interface ISearchDataItemsResponse { - /** ExportDataConfig gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** SearchDataItemsResponse dataItemViews */ + dataItemViews?: (google.cloud.aiplatform.v1beta1.IDataItemView[]|null); - /** ExportDataConfig annotationsFilter */ - annotationsFilter?: (string|null); + /** SearchDataItemsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExportDataConfig. */ - class ExportDataConfig implements IExportDataConfig { + /** Represents a SearchDataItemsResponse. */ + class SearchDataItemsResponse implements ISearchDataItemsResponse { /** - * Constructs a new ExportDataConfig. + * Constructs a new SearchDataItemsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig); - - /** ExportDataConfig gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse); - /** ExportDataConfig annotationsFilter. */ - public annotationsFilter: string; + /** SearchDataItemsResponse dataItemViews. */ + public dataItemViews: google.cloud.aiplatform.v1beta1.IDataItemView[]; - /** ExportDataConfig destination. */ - public destination?: "gcsDestination"; + /** SearchDataItemsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExportDataConfig instance using the specified properties. + * Creates a new SearchDataItemsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataConfig instance + * @returns SearchDataItemsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig): google.cloud.aiplatform.v1beta1.ExportDataConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; /** - * Encodes the specified ExportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. - * @param message ExportDataConfig message or plain object to encode + * Encodes the specified SearchDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.verify|verify} messages. + * @param message SearchDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. - * @param message ExportDataConfig message or plain object to encode + * Encodes the specified SearchDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.verify|verify} messages. + * @param message SearchDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataConfig message from the specified reader or buffer. + * Decodes a SearchDataItemsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataConfig + * @returns SearchDataItemsResponse * @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.aiplatform.v1beta1.ExportDataConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; /** - * Decodes an ExportDataConfig message from the specified reader or buffer, length delimited. + * Decodes a SearchDataItemsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataConfig + * @returns SearchDataItemsResponse * @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.aiplatform.v1beta1.ExportDataConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; /** - * Verifies an ExportDataConfig message. + * Verifies a SearchDataItemsResponse 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 an ExportDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates a SearchDataItemsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataConfig + * @returns SearchDataItemsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; /** - * Creates a plain object from an ExportDataConfig message. Also converts values to other types if specified. - * @param message ExportDataConfig + * Creates a plain object from a SearchDataItemsResponse message. Also converts values to other types if specified. + * @param message SearchDataItemsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataConfig to JSON. + * Converts this SearchDataItemsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportDataConfig + * Gets the default type url for SearchDataItemsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SavedQuery. */ - interface ISavedQuery { - - /** SavedQuery name */ - name?: (string|null); - - /** SavedQuery displayName */ - displayName?: (string|null); - - /** SavedQuery metadata */ - metadata?: (google.protobuf.IValue|null); - - /** SavedQuery createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** SavedQuery updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** SavedQuery annotationFilter */ - annotationFilter?: (string|null); - - /** SavedQuery problemType */ - problemType?: (string|null); + /** Properties of a DataItemView. */ + interface IDataItemView { - /** SavedQuery annotationSpecCount */ - annotationSpecCount?: (number|null); + /** DataItemView dataItem */ + dataItem?: (google.cloud.aiplatform.v1beta1.IDataItem|null); - /** SavedQuery etag */ - etag?: (string|null); + /** DataItemView annotations */ + annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); - /** SavedQuery supportAutomlTraining */ - supportAutomlTraining?: (boolean|null); + /** DataItemView hasTruncatedAnnotations */ + hasTruncatedAnnotations?: (boolean|null); } - /** Represents a SavedQuery. */ - class SavedQuery implements ISavedQuery { + /** Represents a DataItemView. */ + class DataItemView implements IDataItemView { /** - * Constructs a new SavedQuery. + * Constructs a new DataItemView. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery); - - /** SavedQuery name. */ - public name: string; - - /** SavedQuery displayName. */ - public displayName: string; - - /** SavedQuery metadata. */ - public metadata?: (google.protobuf.IValue|null); - - /** SavedQuery createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** SavedQuery updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** SavedQuery annotationFilter. */ - public annotationFilter: string; - - /** SavedQuery problemType. */ - public problemType: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItemView); - /** SavedQuery annotationSpecCount. */ - public annotationSpecCount: number; + /** DataItemView dataItem. */ + public dataItem?: (google.cloud.aiplatform.v1beta1.IDataItem|null); - /** SavedQuery etag. */ - public etag: string; + /** DataItemView annotations. */ + public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; - /** SavedQuery supportAutomlTraining. */ - public supportAutomlTraining: boolean; + /** DataItemView hasTruncatedAnnotations. */ + public hasTruncatedAnnotations: boolean; /** - * Creates a new SavedQuery instance using the specified properties. + * Creates a new DataItemView instance using the specified properties. * @param [properties] Properties to set - * @returns SavedQuery instance + * @returns DataItemView instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery): google.cloud.aiplatform.v1beta1.SavedQuery; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItemView): google.cloud.aiplatform.v1beta1.DataItemView; /** - * Encodes the specified SavedQuery message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. - * @param message SavedQuery message or plain object to encode + * Encodes the specified DataItemView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItemView.verify|verify} messages. + * @param message DataItemView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataItemView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SavedQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. - * @param message SavedQuery message or plain object to encode + * Encodes the specified DataItemView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItemView.verify|verify} messages. + * @param message DataItemView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItemView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SavedQuery message from the specified reader or buffer. + * Decodes a DataItemView message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SavedQuery + * @returns DataItemView * @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.aiplatform.v1beta1.SavedQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataItemView; /** - * Decodes a SavedQuery message from the specified reader or buffer, length delimited. + * Decodes a DataItemView message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SavedQuery + * @returns DataItemView * @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.aiplatform.v1beta1.SavedQuery; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataItemView; /** - * Verifies a SavedQuery message. + * Verifies a DataItemView 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 SavedQuery message from a plain object. Also converts values to their respective internal types. + * Creates a DataItemView message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SavedQuery + * @returns DataItemView */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SavedQuery; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItemView; /** - * Creates a plain object from a SavedQuery message. Also converts values to other types if specified. - * @param message SavedQuery + * Creates a plain object from a DataItemView message. Also converts values to other types if specified. + * @param message DataItemView * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SavedQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DataItemView, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SavedQuery to JSON. + * Converts this DataItemView to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SavedQuery + * Gets the default type url for DataItemView * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a DatasetService */ - class DatasetService extends $protobuf.rpc.Service { + /** Properties of a ListSavedQueriesRequest. */ + interface IListSavedQueriesRequest { - /** - * Constructs a new DatasetService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ListSavedQueriesRequest parent */ + parent?: (string|null); - /** - * Creates new DatasetService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DatasetService; + /** ListSavedQueriesRequest filter */ + filter?: (string|null); - /** - * Calls CreateDataset. - * @param request CreateDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetCallback): void; + /** ListSavedQueriesRequest pageSize */ + pageSize?: (number|null); - /** - * Calls CreateDataset. - * @param request CreateDatasetRequest message or plain object - * @returns Promise - */ - public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): Promise; + /** ListSavedQueriesRequest pageToken */ + pageToken?: (string|null); - /** - * Calls GetDataset. - * @param request GetDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Dataset - */ - public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetCallback): void; + /** ListSavedQueriesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** - * Calls GetDataset. - * @param request GetDatasetRequest message or plain object - * @returns Promise - */ - public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): Promise; + /** ListSavedQueriesRequest orderBy */ + orderBy?: (string|null); + } - /** - * Calls UpdateDataset. - * @param request UpdateDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Dataset - */ - public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetCallback): void; + /** Represents a ListSavedQueriesRequest. */ + class ListSavedQueriesRequest implements IListSavedQueriesRequest { /** - * Calls UpdateDataset. - * @param request UpdateDatasetRequest message or plain object - * @returns Promise + * Constructs a new ListSavedQueriesRequest. + * @param [properties] Properties to set */ - public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest); - /** - * Calls ListDatasets. - * @param request ListDatasetsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse - */ - public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetsCallback): void; + /** ListSavedQueriesRequest parent. */ + public parent: string; - /** - * Calls ListDatasets. - * @param request ListDatasetsRequest message or plain object - * @returns Promise - */ - public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): Promise; + /** ListSavedQueriesRequest filter. */ + public filter: string; - /** - * Calls DeleteDataset. - * @param request DeleteDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetCallback): void; + /** ListSavedQueriesRequest pageSize. */ + public pageSize: number; - /** - * Calls DeleteDataset. - * @param request DeleteDatasetRequest message or plain object - * @returns Promise - */ - public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): Promise; + /** ListSavedQueriesRequest pageToken. */ + public pageToken: string; - /** - * Calls ImportData. - * @param request ImportDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback): void; + /** ListSavedQueriesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** - * Calls ImportData. - * @param request ImportDataRequest message or plain object - * @returns Promise - */ - public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest): Promise; + /** ListSavedQueriesRequest orderBy. */ + public orderBy: string; /** - * Calls ExportData. - * @param request ExportDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new ListSavedQueriesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSavedQueriesRequest instance */ - public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Calls ExportData. - * @param request ExportDataRequest message or plain object - * @returns Promise + * Encodes the specified ListSavedQueriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. + * @param message ListSavedQueriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDataItems. - * @param request ListDataItemsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataItemsResponse + * Encodes the specified ListSavedQueriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. + * @param message ListSavedQueriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDataItems. - * @param request ListDataItemsRequest message or plain object - * @returns Promise + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSavedQueriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Calls SearchDataItems. - * @param request SearchDataItemsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchDataItemsResponse + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSavedQueriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public searchDataItems(request: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItemsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Calls SearchDataItems. - * @param request SearchDataItemsRequest message or plain object - * @returns Promise + * Verifies a ListSavedQueriesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public searchDataItems(request: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListSavedQueries. - * @param request ListSavedQueriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSavedQueriesResponse + * Creates a ListSavedQueriesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSavedQueriesRequest */ - public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueriesCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Calls ListSavedQueries. - * @param request ListSavedQueriesRequest message or plain object - * @returns Promise + * Creates a plain object from a ListSavedQueriesRequest message. Also converts values to other types if specified. + * @param message ListSavedQueriesRequest + * @param [options] Conversion options + * @returns Plain object */ - public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetAnnotationSpec. - * @param request GetAnnotationSpecRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AnnotationSpec + * Converts this ListSavedQueriesRequest to JSON. + * @returns JSON object */ - public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls GetAnnotationSpec. - * @param request GetAnnotationSpecRequest message or plain object - * @returns Promise + * Gets the default type url for ListSavedQueriesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls ListAnnotations. - * @param request ListAnnotationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAnnotationsResponse - */ - public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotationsCallback): void; + /** Properties of a ListSavedQueriesResponse. */ + interface IListSavedQueriesResponse { - /** - * Calls ListAnnotations. - * @param request ListAnnotationsRequest message or plain object - * @returns Promise - */ - public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): Promise; + /** ListSavedQueriesResponse savedQueries */ + savedQueries?: (google.cloud.aiplatform.v1beta1.ISavedQuery[]|null); + + /** ListSavedQueriesResponse nextPageToken */ + nextPageToken?: (string|null); } - namespace DatasetService { + /** Represents a ListSavedQueriesResponse. */ + class ListSavedQueriesResponse implements IListSavedQueriesResponse { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|createDataset}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new ListSavedQueriesResponse. + * @param [properties] Properties to set */ - type CreateDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|getDataset}. - * @param error Error, if any - * @param [response] Dataset - */ - type GetDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; + /** ListSavedQueriesResponse savedQueries. */ + public savedQueries: google.cloud.aiplatform.v1beta1.ISavedQuery[]; + + /** ListSavedQueriesResponse nextPageToken. */ + public nextPageToken: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|updateDataset}. - * @param error Error, if any - * @param [response] Dataset + * Creates a new ListSavedQueriesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSavedQueriesResponse instance */ - type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listDatasets}. - * @param error Error, if any - * @param [response] ListDatasetsResponse + * Encodes the specified ListSavedQueriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. + * @param message ListSavedQueriesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDatasetsResponse) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|deleteDataset}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified ListSavedQueriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. + * @param message ListSavedQueriesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|importData}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSavedQueriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|exportData}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSavedQueriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ExportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listDataItems}. - * @param error Error, if any - * @param [response] ListDataItemsResponse + * Verifies a ListSavedQueriesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataItemsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|searchDataItems}. - * @param error Error, if any - * @param [response] SearchDataItemsResponse + * Creates a ListSavedQueriesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSavedQueriesResponse */ - type SearchDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listSavedQueries}. - * @param error Error, if any - * @param [response] ListSavedQueriesResponse + /** + * Creates a plain object from a ListSavedQueriesResponse message. Also converts values to other types if specified. + * @param message ListSavedQueriesResponse + * @param [options] Conversion options + * @returns Plain object */ - type ListSavedQueriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|getAnnotationSpec}. - * @param error Error, if any - * @param [response] AnnotationSpec + * Converts this ListSavedQueriesResponse to JSON. + * @returns JSON object */ - type GetAnnotationSpecCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AnnotationSpec) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listAnnotations}. - * @param error Error, if any - * @param [response] ListAnnotationsResponse + * Gets the default type url for ListSavedQueriesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDatasetRequest. */ - interface ICreateDatasetRequest { + /** Properties of a GetAnnotationSpecRequest. */ + interface IGetAnnotationSpecRequest { - /** CreateDatasetRequest parent */ - parent?: (string|null); + /** GetAnnotationSpecRequest name */ + name?: (string|null); - /** CreateDatasetRequest dataset */ - dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** GetAnnotationSpecRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CreateDatasetRequest. */ - class CreateDatasetRequest implements ICreateDatasetRequest { + /** Represents a GetAnnotationSpecRequest. */ + class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest { /** - * Constructs a new CreateDatasetRequest. + * Constructs a new GetAnnotationSpecRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest); - /** CreateDatasetRequest parent. */ - public parent: string; + /** GetAnnotationSpecRequest name. */ + public name: string; - /** CreateDatasetRequest dataset. */ - public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** GetAnnotationSpecRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CreateDatasetRequest instance using the specified properties. + * Creates a new GetAnnotationSpecRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDatasetRequest instance + * @returns GetAnnotationSpecRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. - * @param message CreateDatasetRequest message or plain object to encode + * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. + * @param message GetAnnotationSpecRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. - * @param message CreateDatasetRequest message or plain object to encode + * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. + * @param message GetAnnotationSpecRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDatasetRequest message from the specified reader or buffer. + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDatasetRequest + * @returns GetAnnotationSpecRequest * @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.aiplatform.v1beta1.CreateDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDatasetRequest + * @returns GetAnnotationSpecRequest * @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.aiplatform.v1beta1.CreateDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Verifies a CreateDatasetRequest message. + * Verifies a GetAnnotationSpecRequest 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 CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDatasetRequest + * @returns GetAnnotationSpecRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. - * @param message CreateDatasetRequest + * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. + * @param message GetAnnotationSpecRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDatasetRequest to JSON. + * Converts this GetAnnotationSpecRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDatasetRequest + * Gets the default type url for GetAnnotationSpecRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDatasetOperationMetadata. */ - interface ICreateDatasetOperationMetadata { + /** Properties of a ListAnnotationsRequest. */ + interface IListAnnotationsRequest { - /** CreateDatasetOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListAnnotationsRequest parent */ + parent?: (string|null); + + /** ListAnnotationsRequest filter */ + filter?: (string|null); + + /** ListAnnotationsRequest pageSize */ + pageSize?: (number|null); + + /** ListAnnotationsRequest pageToken */ + pageToken?: (string|null); + + /** ListAnnotationsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListAnnotationsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CreateDatasetOperationMetadata. */ - class CreateDatasetOperationMetadata implements ICreateDatasetOperationMetadata { + /** Represents a ListAnnotationsRequest. */ + class ListAnnotationsRequest implements IListAnnotationsRequest { /** - * Constructs a new CreateDatasetOperationMetadata. + * Constructs a new ListAnnotationsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest); - /** CreateDatasetOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListAnnotationsRequest parent. */ + public parent: string; + + /** ListAnnotationsRequest filter. */ + public filter: string; + + /** ListAnnotationsRequest pageSize. */ + public pageSize: number; + + /** ListAnnotationsRequest pageToken. */ + public pageToken: string; + + /** ListAnnotationsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListAnnotationsRequest orderBy. */ + public orderBy: string; /** - * Creates a new CreateDatasetOperationMetadata instance using the specified properties. + * Creates a new ListAnnotationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDatasetOperationMetadata instance + * @returns ListAnnotationsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. - * @param message CreateDatasetOperationMetadata message or plain object to encode + * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. + * @param message ListAnnotationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. - * @param message CreateDatasetOperationMetadata message or plain object to encode + * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. + * @param message ListAnnotationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. + * Decodes a ListAnnotationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDatasetOperationMetadata + * @returns ListAnnotationsRequest * @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.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListAnnotationsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDatasetOperationMetadata + * @returns ListAnnotationsRequest * @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.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Verifies a CreateDatasetOperationMetadata message. + * Verifies a ListAnnotationsRequest 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 CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListAnnotationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDatasetOperationMetadata + * @returns ListAnnotationsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified. - * @param message CreateDatasetOperationMetadata + * Creates a plain object from a ListAnnotationsRequest message. Also converts values to other types if specified. + * @param message ListAnnotationsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDatasetOperationMetadata to JSON. + * Converts this ListAnnotationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDatasetOperationMetadata + * Gets the default type url for ListAnnotationsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDatasetRequest. */ - interface IGetDatasetRequest { + /** Properties of a ListAnnotationsResponse. */ + interface IListAnnotationsResponse { - /** GetDatasetRequest name */ - name?: (string|null); + /** ListAnnotationsResponse annotations */ + annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); - /** GetDatasetRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ListAnnotationsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetDatasetRequest. */ - class GetDatasetRequest implements IGetDatasetRequest { + /** Represents a ListAnnotationsResponse. */ + class ListAnnotationsResponse implements IListAnnotationsResponse { /** - * Constructs a new GetDatasetRequest. + * Constructs a new ListAnnotationsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse); - /** GetDatasetRequest name. */ - public name: string; + /** ListAnnotationsResponse annotations. */ + public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; - /** GetDatasetRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ListAnnotationsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetDatasetRequest instance using the specified properties. + * Creates a new ListAnnotationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetDatasetRequest instance + * @returns ListAnnotationsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. - * @param message GetDatasetRequest message or plain object to encode + * Encodes the specified ListAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. + * @param message ListAnnotationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. - * @param message GetDatasetRequest message or plain object to encode + * Encodes the specified ListAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. + * @param message ListAnnotationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDatasetRequest message from the specified reader or buffer. + * Decodes a ListAnnotationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDatasetRequest + * @returns ListAnnotationsResponse * @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.aiplatform.v1beta1.GetDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAnnotationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDatasetRequest + * @returns ListAnnotationsResponse * @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.aiplatform.v1beta1.GetDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Verifies a GetDatasetRequest message. + * Verifies a ListAnnotationsResponse 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 GetDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAnnotationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDatasetRequest + * @returns ListAnnotationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. - * @param message GetDatasetRequest + * Creates a plain object from a ListAnnotationsResponse message. Also converts values to other types if specified. + * @param message ListAnnotationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDatasetRequest to JSON. + * Converts this ListAnnotationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDatasetRequest + * Gets the default type url for ListAnnotationsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateDatasetRequest. */ - interface IUpdateDatasetRequest { + /** Properties of a GenericOperationMetadata. */ + interface IGenericOperationMetadata { - /** UpdateDatasetRequest dataset */ - dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** GenericOperationMetadata partialFailures */ + partialFailures?: (google.rpc.IStatus[]|null); - /** UpdateDatasetRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** GenericOperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** GenericOperationMetadata updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents an UpdateDatasetRequest. */ - class UpdateDatasetRequest implements IUpdateDatasetRequest { + /** Represents a GenericOperationMetadata. */ + class GenericOperationMetadata implements IGenericOperationMetadata { /** - * Constructs a new UpdateDatasetRequest. + * Constructs a new GenericOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata); - /** UpdateDatasetRequest dataset. */ - public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** GenericOperationMetadata partialFailures. */ + public partialFailures: google.rpc.IStatus[]; - /** UpdateDatasetRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** GenericOperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** GenericOperationMetadata updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new UpdateDatasetRequest instance using the specified properties. + * Creates a new GenericOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDatasetRequest instance + * @returns GenericOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. - * @param message UpdateDatasetRequest message or plain object to encode + * Encodes the specified GenericOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. + * @param message GenericOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. - * @param message UpdateDatasetRequest message or plain object to encode + * Encodes the specified GenericOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. + * @param message GenericOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDatasetRequest message from the specified reader or buffer. + * Decodes a GenericOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDatasetRequest + * @returns GenericOperationMetadata * @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.aiplatform.v1beta1.UpdateDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a GenericOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDatasetRequest + * @returns GenericOperationMetadata * @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.aiplatform.v1beta1.UpdateDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Verifies an UpdateDatasetRequest message. + * Verifies a GenericOperationMetadata 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 an UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GenericOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDatasetRequest + * @returns GenericOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified. - * @param message UpdateDatasetRequest + * Creates a plain object from a GenericOperationMetadata message. Also converts values to other types if specified. + * @param message GenericOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GenericOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDatasetRequest to JSON. + * Converts this GenericOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateDatasetRequest + * Gets the default type url for GenericOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDatasetsRequest. */ - interface IListDatasetsRequest { - - /** ListDatasetsRequest parent */ - parent?: (string|null); - - /** ListDatasetsRequest filter */ - filter?: (string|null); - - /** ListDatasetsRequest pageSize */ - pageSize?: (number|null); - - /** ListDatasetsRequest pageToken */ - pageToken?: (string|null); - - /** ListDatasetsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Properties of a DeleteOperationMetadata. */ + interface IDeleteOperationMetadata { - /** ListDatasetsRequest orderBy */ - orderBy?: (string|null); + /** DeleteOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListDatasetsRequest. */ - class ListDatasetsRequest implements IListDatasetsRequest { + /** Represents a DeleteOperationMetadata. */ + class DeleteOperationMetadata implements IDeleteOperationMetadata { /** - * Constructs a new ListDatasetsRequest. + * Constructs a new DeleteOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest); - - /** ListDatasetsRequest parent. */ - public parent: string; - - /** ListDatasetsRequest filter. */ - public filter: string; - - /** ListDatasetsRequest pageSize. */ - public pageSize: number; - - /** ListDatasetsRequest pageToken. */ - public pageToken: string; - - /** ListDatasetsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata); - /** ListDatasetsRequest orderBy. */ - public orderBy: string; + /** DeleteOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListDatasetsRequest instance using the specified properties. + * Creates a new DeleteOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListDatasetsRequest instance + * @returns DeleteOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. - * @param message ListDatasetsRequest message or plain object to encode + * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * @param message DeleteOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. - * @param message ListDatasetsRequest message or plain object to encode + * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * @param message DeleteOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDatasetsRequest message from the specified reader or buffer. + * Decodes a DeleteOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDatasetsRequest + * @returns DeleteOperationMetadata * @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.aiplatform.v1beta1.ListDatasetsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDatasetsRequest + * @returns DeleteOperationMetadata * @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.aiplatform.v1beta1.ListDatasetsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Verifies a ListDatasetsRequest message. + * Verifies a DeleteOperationMetadata 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 ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDatasetsRequest + * @returns DeleteOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. - * @param message ListDatasetsRequest + * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDatasetsRequest to JSON. + * Converts this DeleteOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDatasetsRequest + * Gets the default type url for DeleteOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDatasetsResponse. */ - interface IListDatasetsResponse { + /** Properties of a DeployedIndexRef. */ + interface IDeployedIndexRef { - /** ListDatasetsResponse datasets */ - datasets?: (google.cloud.aiplatform.v1beta1.IDataset[]|null); + /** DeployedIndexRef indexEndpoint */ + indexEndpoint?: (string|null); - /** ListDatasetsResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeployedIndexRef deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a ListDatasetsResponse. */ - class ListDatasetsResponse implements IListDatasetsResponse { + /** Represents a DeployedIndexRef. */ + class DeployedIndexRef implements IDeployedIndexRef { /** - * Constructs a new ListDatasetsResponse. + * Constructs a new DeployedIndexRef. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef); - /** ListDatasetsResponse datasets. */ - public datasets: google.cloud.aiplatform.v1beta1.IDataset[]; + /** DeployedIndexRef indexEndpoint. */ + public indexEndpoint: string; - /** ListDatasetsResponse nextPageToken. */ - public nextPageToken: string; + /** DeployedIndexRef deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new ListDatasetsResponse instance using the specified properties. + * Creates a new DeployedIndexRef instance using the specified properties. * @param [properties] Properties to set - * @returns ListDatasetsResponse instance + * @returns DeployedIndexRef instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. - * @param message ListDatasetsResponse message or plain object to encode + * Encodes the specified DeployedIndexRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. + * @param message DeployedIndexRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. - * @param message ListDatasetsResponse message or plain object to encode + * Encodes the specified DeployedIndexRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. + * @param message DeployedIndexRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDatasetsResponse message from the specified reader or buffer. + * Decodes a DeployedIndexRef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDatasetsResponse + * @returns DeployedIndexRef * @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.aiplatform.v1beta1.ListDatasetsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeployedIndexRef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDatasetsResponse + * @returns DeployedIndexRef * @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.aiplatform.v1beta1.ListDatasetsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Verifies a ListDatasetsResponse message. + * Verifies a DeployedIndexRef 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 ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedIndexRef message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDatasetsResponse + * @returns DeployedIndexRef */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. - * @param message ListDatasetsResponse + * Creates a plain object from a DeployedIndexRef message. Also converts values to other types if specified. + * @param message DeployedIndexRef * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDatasetsResponse to JSON. + * Converts this DeployedIndexRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDatasetsResponse + * Gets the default type url for DeployedIndexRef * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteDatasetRequest. */ - interface IDeleteDatasetRequest { + /** Properties of a DeploymentResourcePool. */ + interface IDeploymentResourcePool { - /** DeleteDatasetRequest name */ + /** DeploymentResourcePool name */ name?: (string|null); + + /** DeploymentResourcePool dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + + /** DeploymentResourcePool createTime */ + createTime?: (google.protobuf.ITimestamp|null); } - /** Represents a DeleteDatasetRequest. */ - class DeleteDatasetRequest implements IDeleteDatasetRequest { + /** Represents a DeploymentResourcePool. */ + class DeploymentResourcePool implements IDeploymentResourcePool { /** - * Constructs a new DeleteDatasetRequest. + * Constructs a new DeploymentResourcePool. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool); - /** DeleteDatasetRequest name. */ + /** DeploymentResourcePool name. */ public name: string; + /** DeploymentResourcePool dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + + /** DeploymentResourcePool createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + /** - * Creates a new DeleteDatasetRequest instance using the specified properties. + * Creates a new DeploymentResourcePool instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDatasetRequest instance + * @returns DeploymentResourcePool instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; /** - * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. - * @param message DeleteDatasetRequest message or plain object to encode + * Encodes the specified DeploymentResourcePool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePool.verify|verify} messages. + * @param message DeploymentResourcePool message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. - * @param message DeleteDatasetRequest message or plain object to encode + * Encodes the specified DeploymentResourcePool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePool.verify|verify} messages. + * @param message DeploymentResourcePool message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDatasetRequest message from the specified reader or buffer. + * Decodes a DeploymentResourcePool message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDatasetRequest + * @returns DeploymentResourcePool * @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.aiplatform.v1beta1.DeleteDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; /** - * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a DeploymentResourcePool message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDatasetRequest + * @returns DeploymentResourcePool * @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.aiplatform.v1beta1.DeleteDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; /** - * Verifies a DeleteDatasetRequest message. + * Verifies a DeploymentResourcePool 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 DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeploymentResourcePool message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDatasetRequest + * @returns DeploymentResourcePool */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; /** - * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. - * @param message DeleteDatasetRequest + * Creates a plain object from a DeploymentResourcePool message. Also converts values to other types if specified. + * @param message DeploymentResourcePool * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeploymentResourcePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDatasetRequest to JSON. + * Converts this DeploymentResourcePool to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteDatasetRequest + * Gets the default type url for DeploymentResourcePool * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportDataRequest. */ - interface IImportDataRequest { + /** Represents a DeploymentResourcePoolService */ + class DeploymentResourcePoolService extends $protobuf.rpc.Service { - /** ImportDataRequest name */ - name?: (string|null); + /** + * Constructs a new DeploymentResourcePoolService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ImportDataRequest importConfigs */ - importConfigs?: (google.cloud.aiplatform.v1beta1.IImportDataConfig[]|null); - } + /** + * Creates new DeploymentResourcePoolService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DeploymentResourcePoolService; - /** Represents an ImportDataRequest. */ - class ImportDataRequest implements IImportDataRequest { + /** + * Calls CreateDeploymentResourcePool. + * @param request CreateDeploymentResourcePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.CreateDeploymentResourcePoolCallback): void; /** - * Constructs a new ImportDataRequest. - * @param [properties] Properties to set + * Calls CreateDeploymentResourcePool. + * @param request CreateDeploymentResourcePoolRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest); + public createDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest): Promise; - /** ImportDataRequest name. */ - public name: string; + /** + * Calls GetDeploymentResourcePool. + * @param request GetDeploymentResourcePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DeploymentResourcePool + */ + public getDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.GetDeploymentResourcePoolCallback): void; - /** ImportDataRequest importConfigs. */ - public importConfigs: google.cloud.aiplatform.v1beta1.IImportDataConfig[]; + /** + * Calls GetDeploymentResourcePool. + * @param request GetDeploymentResourcePoolRequest message or plain object + * @returns Promise + */ + public getDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest): Promise; /** - * Creates a new ImportDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportDataRequest instance + * Calls ListDeploymentResourcePools. + * @param request ListDeploymentResourcePoolsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDeploymentResourcePoolsResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public listDeploymentResourcePools(request: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.ListDeploymentResourcePoolsCallback): void; /** - * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. - * @param message ImportDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListDeploymentResourcePools. + * @param request ListDeploymentResourcePoolsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listDeploymentResourcePools(request: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest): Promise; /** - * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. - * @param message ImportDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteDeploymentResourcePool. + * @param request DeleteDeploymentResourcePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.DeleteDeploymentResourcePoolCallback): void; /** - * Decodes an ImportDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteDeploymentResourcePool. + * @param request DeleteDeploymentResourcePoolRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public deleteDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest): Promise; /** - * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls QueryDeployedModels. + * @param request QueryDeployedModelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryDeployedModelsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public queryDeployedModels(request: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.QueryDeployedModelsCallback): void; /** - * Verifies an ImportDataRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls QueryDeployedModels. + * @param request QueryDeployedModelsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public queryDeployedModels(request: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest): Promise; + } + + namespace DeploymentResourcePoolService { /** - * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportDataRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|createDeploymentResourcePool}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataRequest; + type CreateDeploymentResourcePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified. - * @param message ImportDataRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|getDeploymentResourcePool}. + * @param error Error, if any + * @param [response] DeploymentResourcePool */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetDeploymentResourcePoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DeploymentResourcePool) => void; /** - * Converts this ImportDataRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|listDeploymentResourcePools}. + * @param error Error, if any + * @param [response] ListDeploymentResourcePoolsResponse */ - public toJSON(): { [k: string]: any }; + type ListDeploymentResourcePoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) => void; /** - * Gets the default type url for ImportDataRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|deleteDeploymentResourcePool}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type DeleteDeploymentResourcePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|queryDeployedModels}. + * @param error Error, if any + * @param [response] QueryDeployedModelsResponse + */ + type QueryDeployedModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) => void; } - /** Properties of an ImportDataResponse. */ - interface IImportDataResponse { + /** Properties of a CreateDeploymentResourcePoolRequest. */ + interface ICreateDeploymentResourcePoolRequest { + + /** CreateDeploymentResourcePoolRequest parent */ + parent?: (string|null); + + /** CreateDeploymentResourcePoolRequest deploymentResourcePool */ + deploymentResourcePool?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool|null); + + /** CreateDeploymentResourcePoolRequest deploymentResourcePoolId */ + deploymentResourcePoolId?: (string|null); } - /** Represents an ImportDataResponse. */ - class ImportDataResponse implements IImportDataResponse { + /** Represents a CreateDeploymentResourcePoolRequest. */ + class CreateDeploymentResourcePoolRequest implements ICreateDeploymentResourcePoolRequest { /** - * Constructs a new ImportDataResponse. + * Constructs a new CreateDeploymentResourcePoolRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest); + + /** CreateDeploymentResourcePoolRequest parent. */ + public parent: string; + + /** CreateDeploymentResourcePoolRequest deploymentResourcePool. */ + public deploymentResourcePool?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool|null); + + /** CreateDeploymentResourcePoolRequest deploymentResourcePoolId. */ + public deploymentResourcePoolId: string; /** - * Creates a new ImportDataResponse instance using the specified properties. + * Creates a new CreateDeploymentResourcePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportDataResponse instance + * @returns CreateDeploymentResourcePoolRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; /** - * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. - * @param message ImportDataResponse message or plain object to encode + * Encodes the specified CreateDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.verify|verify} messages. + * @param message CreateDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. - * @param message ImportDataResponse message or plain object to encode + * Encodes the specified CreateDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.verify|verify} messages. + * @param message CreateDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportDataResponse message from the specified reader or buffer. + * Decodes a CreateDeploymentResourcePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportDataResponse + * @returns CreateDeploymentResourcePoolRequest * @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.aiplatform.v1beta1.ImportDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; /** - * Decodes an ImportDataResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportDataResponse + * @returns CreateDeploymentResourcePoolRequest * @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.aiplatform.v1beta1.ImportDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; /** - * Verifies an ImportDataResponse message. + * Verifies a CreateDeploymentResourcePoolRequest 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 an ImportDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportDataResponse + * @returns CreateDeploymentResourcePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; /** - * Creates a plain object from an ImportDataResponse message. Also converts values to other types if specified. - * @param message ImportDataResponse + * Creates a plain object from a CreateDeploymentResourcePoolRequest message. Also converts values to other types if specified. + * @param message CreateDeploymentResourcePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportDataResponse to JSON. + * Converts this CreateDeploymentResourcePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportDataResponse + * Gets the default type url for CreateDeploymentResourcePoolRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportDataOperationMetadata. */ - interface IImportDataOperationMetadata { + /** Properties of a CreateDeploymentResourcePoolOperationMetadata. */ + interface ICreateDeploymentResourcePoolOperationMetadata { - /** ImportDataOperationMetadata genericMetadata */ + /** CreateDeploymentResourcePoolOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an ImportDataOperationMetadata. */ - class ImportDataOperationMetadata implements IImportDataOperationMetadata { + /** Represents a CreateDeploymentResourcePoolOperationMetadata. */ + class CreateDeploymentResourcePoolOperationMetadata implements ICreateDeploymentResourcePoolOperationMetadata { /** - * Constructs a new ImportDataOperationMetadata. + * Constructs a new CreateDeploymentResourcePoolOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata); - /** ImportDataOperationMetadata genericMetadata. */ + /** CreateDeploymentResourcePoolOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ImportDataOperationMetadata instance using the specified properties. + * Creates a new CreateDeploymentResourcePoolOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ImportDataOperationMetadata instance + * @returns CreateDeploymentResourcePoolOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; /** - * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. - * @param message ImportDataOperationMetadata message or plain object to encode + * Encodes the specified CreateDeploymentResourcePoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.verify|verify} messages. + * @param message CreateDeploymentResourcePoolOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. - * @param message ImportDataOperationMetadata message or plain object to encode + * Encodes the specified CreateDeploymentResourcePoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.verify|verify} messages. + * @param message CreateDeploymentResourcePoolOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. + * Decodes a CreateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportDataOperationMetadata + * @returns CreateDeploymentResourcePoolOperationMetadata * @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.aiplatform.v1beta1.ImportDataOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; /** - * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportDataOperationMetadata + * @returns CreateDeploymentResourcePoolOperationMetadata * @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.aiplatform.v1beta1.ImportDataOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; /** - * Verifies an ImportDataOperationMetadata message. + * Verifies a CreateDeploymentResourcePoolOperationMetadata 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 an ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDeploymentResourcePoolOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportDataOperationMetadata + * @returns CreateDeploymentResourcePoolOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; /** - * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified. - * @param message ImportDataOperationMetadata + * Creates a plain object from a CreateDeploymentResourcePoolOperationMetadata message. Also converts values to other types if specified. + * @param message CreateDeploymentResourcePoolOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportDataOperationMetadata to JSON. + * Converts this CreateDeploymentResourcePoolOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportDataOperationMetadata + * Gets the default type url for CreateDeploymentResourcePoolOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportDataRequest. */ - interface IExportDataRequest { + /** Properties of a GetDeploymentResourcePoolRequest. */ + interface IGetDeploymentResourcePoolRequest { - /** ExportDataRequest name */ + /** GetDeploymentResourcePoolRequest name */ name?: (string|null); - - /** ExportDataRequest exportConfig */ - exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); } - /** Represents an ExportDataRequest. */ - class ExportDataRequest implements IExportDataRequest { + /** Represents a GetDeploymentResourcePoolRequest. */ + class GetDeploymentResourcePoolRequest implements IGetDeploymentResourcePoolRequest { /** - * Constructs a new ExportDataRequest. + * Constructs a new GetDeploymentResourcePoolRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest); - /** ExportDataRequest name. */ + /** GetDeploymentResourcePoolRequest name. */ public name: string; - /** ExportDataRequest exportConfig. */ - public exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); - /** - * Creates a new ExportDataRequest instance using the specified properties. + * Creates a new GetDeploymentResourcePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataRequest instance + * @returns GetDeploymentResourcePoolRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; /** - * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. - * @param message ExportDataRequest message or plain object to encode + * Encodes the specified GetDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.verify|verify} messages. + * @param message GetDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. - * @param message ExportDataRequest message or plain object to encode + * Encodes the specified GetDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.verify|verify} messages. + * @param message GetDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataRequest message from the specified reader or buffer. + * Decodes a GetDeploymentResourcePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataRequest + * @returns GetDeploymentResourcePoolRequest * @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.aiplatform.v1beta1.ExportDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; /** - * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataRequest + * @returns GetDeploymentResourcePoolRequest * @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.aiplatform.v1beta1.ExportDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; /** - * Verifies an ExportDataRequest message. + * Verifies a GetDeploymentResourcePoolRequest 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 an ExportDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataRequest + * @returns GetDeploymentResourcePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; /** - * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified. - * @param message ExportDataRequest + * Creates a plain object from a GetDeploymentResourcePoolRequest message. Also converts values to other types if specified. + * @param message GetDeploymentResourcePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataRequest to JSON. + * Converts this GetDeploymentResourcePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportDataRequest + * Gets the default type url for GetDeploymentResourcePoolRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportDataResponse. */ - interface IExportDataResponse { + /** Properties of a ListDeploymentResourcePoolsRequest. */ + interface IListDeploymentResourcePoolsRequest { - /** ExportDataResponse exportedFiles */ - exportedFiles?: (string[]|null); + /** ListDeploymentResourcePoolsRequest parent */ + parent?: (string|null); + + /** ListDeploymentResourcePoolsRequest pageSize */ + pageSize?: (number|null); + + /** ListDeploymentResourcePoolsRequest pageToken */ + pageToken?: (string|null); } - /** Represents an ExportDataResponse. */ - class ExportDataResponse implements IExportDataResponse { + /** Represents a ListDeploymentResourcePoolsRequest. */ + class ListDeploymentResourcePoolsRequest implements IListDeploymentResourcePoolsRequest { /** - * Constructs a new ExportDataResponse. + * Constructs a new ListDeploymentResourcePoolsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest); - /** ExportDataResponse exportedFiles. */ - public exportedFiles: string[]; + /** ListDeploymentResourcePoolsRequest parent. */ + public parent: string; + + /** ListDeploymentResourcePoolsRequest pageSize. */ + public pageSize: number; + + /** ListDeploymentResourcePoolsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ExportDataResponse instance using the specified properties. + * Creates a new ListDeploymentResourcePoolsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataResponse instance + * @returns ListDeploymentResourcePoolsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; /** - * Encodes the specified ExportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. - * @param message ExportDataResponse message or plain object to encode + * Encodes the specified ListDeploymentResourcePoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.verify|verify} messages. + * @param message ListDeploymentResourcePoolsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. - * @param message ExportDataResponse message or plain object to encode + * Encodes the specified ListDeploymentResourcePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.verify|verify} messages. + * @param message ListDeploymentResourcePoolsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataResponse message from the specified reader or buffer. + * Decodes a ListDeploymentResourcePoolsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataResponse + * @returns ListDeploymentResourcePoolsRequest * @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.aiplatform.v1beta1.ExportDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; /** - * Decodes an ExportDataResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentResourcePoolsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataResponse + * @returns ListDeploymentResourcePoolsRequest * @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.aiplatform.v1beta1.ExportDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; /** - * Verifies an ExportDataResponse message. + * Verifies a ListDeploymentResourcePoolsRequest 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 an ExportDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentResourcePoolsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataResponse + * @returns ListDeploymentResourcePoolsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; /** - * Creates a plain object from an ExportDataResponse message. Also converts values to other types if specified. - * @param message ExportDataResponse + * Creates a plain object from a ListDeploymentResourcePoolsRequest message. Also converts values to other types if specified. + * @param message ListDeploymentResourcePoolsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataResponse to JSON. + * Converts this ListDeploymentResourcePoolsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportDataResponse + * Gets the default type url for ListDeploymentResourcePoolsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportDataOperationMetadata. */ - interface IExportDataOperationMetadata { + /** Properties of a ListDeploymentResourcePoolsResponse. */ + interface IListDeploymentResourcePoolsResponse { - /** ExportDataOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListDeploymentResourcePoolsResponse deploymentResourcePools */ + deploymentResourcePools?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool[]|null); - /** ExportDataOperationMetadata gcsOutputDirectory */ - gcsOutputDirectory?: (string|null); + /** ListDeploymentResourcePoolsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExportDataOperationMetadata. */ - class ExportDataOperationMetadata implements IExportDataOperationMetadata { + /** Represents a ListDeploymentResourcePoolsResponse. */ + class ListDeploymentResourcePoolsResponse implements IListDeploymentResourcePoolsResponse { /** - * Constructs a new ExportDataOperationMetadata. + * Constructs a new ListDeploymentResourcePoolsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse); - /** ExportDataOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListDeploymentResourcePoolsResponse deploymentResourcePools. */ + public deploymentResourcePools: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool[]; - /** ExportDataOperationMetadata gcsOutputDirectory. */ - public gcsOutputDirectory: string; + /** ListDeploymentResourcePoolsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExportDataOperationMetadata instance using the specified properties. + * Creates a new ListDeploymentResourcePoolsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataOperationMetadata instance + * @returns ListDeploymentResourcePoolsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; /** - * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. - * @param message ExportDataOperationMetadata message or plain object to encode + * Encodes the specified ListDeploymentResourcePoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.verify|verify} messages. + * @param message ListDeploymentResourcePoolsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. - * @param message ExportDataOperationMetadata message or plain object to encode + * Encodes the specified ListDeploymentResourcePoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.verify|verify} messages. + * @param message ListDeploymentResourcePoolsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. + * Decodes a ListDeploymentResourcePoolsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataOperationMetadata + * @returns ListDeploymentResourcePoolsResponse * @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.aiplatform.v1beta1.ExportDataOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentResourcePoolsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataOperationMetadata + * @returns ListDeploymentResourcePoolsResponse * @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.aiplatform.v1beta1.ExportDataOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; /** - * Verifies an ExportDataOperationMetadata message. + * Verifies a ListDeploymentResourcePoolsResponse 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 an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentResourcePoolsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataOperationMetadata + * @returns ListDeploymentResourcePoolsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; /** - * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. - * @param message ExportDataOperationMetadata + * Creates a plain object from a ListDeploymentResourcePoolsResponse message. Also converts values to other types if specified. + * @param message ListDeploymentResourcePoolsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataOperationMetadata to JSON. + * Converts this ListDeploymentResourcePoolsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportDataOperationMetadata + * Gets the default type url for ListDeploymentResourcePoolsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataItemsRequest. */ - interface IListDataItemsRequest { - - /** ListDataItemsRequest parent */ - parent?: (string|null); - - /** ListDataItemsRequest filter */ - filter?: (string|null); - - /** ListDataItemsRequest pageSize */ - pageSize?: (number|null); - - /** ListDataItemsRequest pageToken */ - pageToken?: (string|null); - - /** ListDataItemsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Properties of an UpdateDeploymentResourcePoolOperationMetadata. */ + interface IUpdateDeploymentResourcePoolOperationMetadata { - /** ListDataItemsRequest orderBy */ - orderBy?: (string|null); + /** UpdateDeploymentResourcePoolOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListDataItemsRequest. */ - class ListDataItemsRequest implements IListDataItemsRequest { + /** Represents an UpdateDeploymentResourcePoolOperationMetadata. */ + class UpdateDeploymentResourcePoolOperationMetadata implements IUpdateDeploymentResourcePoolOperationMetadata { /** - * Constructs a new ListDataItemsRequest. + * Constructs a new UpdateDeploymentResourcePoolOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest); - - /** ListDataItemsRequest parent. */ - public parent: string; - - /** ListDataItemsRequest filter. */ - public filter: string; - - /** ListDataItemsRequest pageSize. */ - public pageSize: number; - - /** ListDataItemsRequest pageToken. */ - public pageToken: string; - - /** ListDataItemsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata); - /** ListDataItemsRequest orderBy. */ - public orderBy: string; + /** UpdateDeploymentResourcePoolOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListDataItemsRequest instance using the specified properties. + * Creates a new UpdateDeploymentResourcePoolOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataItemsRequest instance + * @returns UpdateDeploymentResourcePoolOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; /** - * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. - * @param message ListDataItemsRequest message or plain object to encode + * Encodes the specified UpdateDeploymentResourcePoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.verify|verify} messages. + * @param message UpdateDeploymentResourcePoolOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. - * @param message ListDataItemsRequest message or plain object to encode + * Encodes the specified UpdateDeploymentResourcePoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.verify|verify} messages. + * @param message UpdateDeploymentResourcePoolOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataItemsRequest message from the specified reader or buffer. + * Decodes an UpdateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataItemsRequest + * @returns UpdateDeploymentResourcePoolOperationMetadata * @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.aiplatform.v1beta1.ListDataItemsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; /** - * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataItemsRequest + * @returns UpdateDeploymentResourcePoolOperationMetadata * @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.aiplatform.v1beta1.ListDataItemsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; /** - * Verifies a ListDataItemsRequest message. + * Verifies an UpdateDeploymentResourcePoolOperationMetadata 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 ListDataItemsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDeploymentResourcePoolOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataItemsRequest + * @returns UpdateDeploymentResourcePoolOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; /** - * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified. - * @param message ListDataItemsRequest + * Creates a plain object from an UpdateDeploymentResourcePoolOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateDeploymentResourcePoolOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataItemsRequest to JSON. + * Converts this UpdateDeploymentResourcePoolOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataItemsRequest + * Gets the default type url for UpdateDeploymentResourcePoolOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataItemsResponse. */ - interface IListDataItemsResponse { - - /** ListDataItemsResponse dataItems */ - dataItems?: (google.cloud.aiplatform.v1beta1.IDataItem[]|null); + /** Properties of a DeleteDeploymentResourcePoolRequest. */ + interface IDeleteDeploymentResourcePoolRequest { - /** ListDataItemsResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteDeploymentResourcePoolRequest name */ + name?: (string|null); } - /** Represents a ListDataItemsResponse. */ - class ListDataItemsResponse implements IListDataItemsResponse { + /** Represents a DeleteDeploymentResourcePoolRequest. */ + class DeleteDeploymentResourcePoolRequest implements IDeleteDeploymentResourcePoolRequest { /** - * Constructs a new ListDataItemsResponse. + * Constructs a new DeleteDeploymentResourcePoolRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse); - - /** ListDataItemsResponse dataItems. */ - public dataItems: google.cloud.aiplatform.v1beta1.IDataItem[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest); - /** ListDataItemsResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteDeploymentResourcePoolRequest name. */ + public name: string; /** - * Creates a new ListDataItemsResponse instance using the specified properties. + * Creates a new DeleteDeploymentResourcePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataItemsResponse instance + * @returns DeleteDeploymentResourcePoolRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; /** - * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. - * @param message ListDataItemsResponse message or plain object to encode + * Encodes the specified DeleteDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.verify|verify} messages. + * @param message DeleteDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. - * @param message ListDataItemsResponse message or plain object to encode + * Encodes the specified DeleteDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.verify|verify} messages. + * @param message DeleteDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataItemsResponse message from the specified reader or buffer. + * Decodes a DeleteDeploymentResourcePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataItemsResponse + * @returns DeleteDeploymentResourcePoolRequest * @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.aiplatform.v1beta1.ListDataItemsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; /** - * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataItemsResponse + * @returns DeleteDeploymentResourcePoolRequest * @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.aiplatform.v1beta1.ListDataItemsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; /** - * Verifies a ListDataItemsResponse message. + * Verifies a DeleteDeploymentResourcePoolRequest 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 ListDataItemsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataItemsResponse + * @returns DeleteDeploymentResourcePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; /** - * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified. - * @param message ListDataItemsResponse + * Creates a plain object from a DeleteDeploymentResourcePoolRequest message. Also converts values to other types if specified. + * @param message DeleteDeploymentResourcePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataItemsResponse to JSON. + * Converts this DeleteDeploymentResourcePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataItemsResponse + * Gets the default type url for DeleteDeploymentResourcePoolRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchDataItemsRequest. */ - interface ISearchDataItemsRequest { - - /** SearchDataItemsRequest orderByDataItem */ - orderByDataItem?: (string|null); - - /** SearchDataItemsRequest orderByAnnotation */ - orderByAnnotation?: (google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation|null); - - /** SearchDataItemsRequest dataset */ - dataset?: (string|null); - - /** SearchDataItemsRequest savedQuery */ - savedQuery?: (string|null); - - /** SearchDataItemsRequest dataLabelingJob */ - dataLabelingJob?: (string|null); - - /** SearchDataItemsRequest dataItemFilter */ - dataItemFilter?: (string|null); - - /** SearchDataItemsRequest annotationsFilter */ - annotationsFilter?: (string|null); - - /** SearchDataItemsRequest annotationFilters */ - annotationFilters?: (string[]|null); - - /** SearchDataItemsRequest fieldMask */ - fieldMask?: (google.protobuf.IFieldMask|null); + /** Properties of a QueryDeployedModelsRequest. */ + interface IQueryDeployedModelsRequest { - /** SearchDataItemsRequest annotationsLimit */ - annotationsLimit?: (number|null); + /** QueryDeployedModelsRequest deploymentResourcePool */ + deploymentResourcePool?: (string|null); - /** SearchDataItemsRequest pageSize */ + /** QueryDeployedModelsRequest pageSize */ pageSize?: (number|null); - /** SearchDataItemsRequest orderBy */ - orderBy?: (string|null); - - /** SearchDataItemsRequest pageToken */ + /** QueryDeployedModelsRequest pageToken */ pageToken?: (string|null); } - /** Represents a SearchDataItemsRequest. */ - class SearchDataItemsRequest implements ISearchDataItemsRequest { + /** Represents a QueryDeployedModelsRequest. */ + class QueryDeployedModelsRequest implements IQueryDeployedModelsRequest { /** - * Constructs a new SearchDataItemsRequest. + * Constructs a new QueryDeployedModelsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest); - - /** SearchDataItemsRequest orderByDataItem. */ - public orderByDataItem?: (string|null); - - /** SearchDataItemsRequest orderByAnnotation. */ - public orderByAnnotation?: (google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation|null); - - /** SearchDataItemsRequest dataset. */ - public dataset: string; - - /** SearchDataItemsRequest savedQuery. */ - public savedQuery: string; - - /** SearchDataItemsRequest dataLabelingJob. */ - public dataLabelingJob: string; - - /** SearchDataItemsRequest dataItemFilter. */ - public dataItemFilter: string; - - /** SearchDataItemsRequest annotationsFilter. */ - public annotationsFilter: string; - - /** SearchDataItemsRequest annotationFilters. */ - public annotationFilters: string[]; - - /** SearchDataItemsRequest fieldMask. */ - public fieldMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest); - /** SearchDataItemsRequest annotationsLimit. */ - public annotationsLimit: number; + /** QueryDeployedModelsRequest deploymentResourcePool. */ + public deploymentResourcePool: string; - /** SearchDataItemsRequest pageSize. */ + /** QueryDeployedModelsRequest pageSize. */ public pageSize: number; - /** SearchDataItemsRequest orderBy. */ - public orderBy: string; - - /** SearchDataItemsRequest pageToken. */ + /** QueryDeployedModelsRequest pageToken. */ public pageToken: string; - /** SearchDataItemsRequest order. */ - public order?: ("orderByDataItem"|"orderByAnnotation"); - /** - * Creates a new SearchDataItemsRequest instance using the specified properties. + * Creates a new QueryDeployedModelsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchDataItemsRequest instance + * @returns QueryDeployedModelsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; /** - * Encodes the specified SearchDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.verify|verify} messages. - * @param message SearchDataItemsRequest message or plain object to encode + * Encodes the specified QueryDeployedModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.verify|verify} messages. + * @param message QueryDeployedModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.verify|verify} messages. - * @param message SearchDataItemsRequest message or plain object to encode + * Encodes the specified QueryDeployedModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.verify|verify} messages. + * @param message QueryDeployedModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchDataItemsRequest message from the specified reader or buffer. + * Decodes a QueryDeployedModelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchDataItemsRequest + * @returns QueryDeployedModelsRequest * @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.aiplatform.v1beta1.SearchDataItemsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; /** - * Decodes a SearchDataItemsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryDeployedModelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchDataItemsRequest + * @returns QueryDeployedModelsRequest * @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.aiplatform.v1beta1.SearchDataItemsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; /** - * Verifies a SearchDataItemsRequest message. + * Verifies a QueryDeployedModelsRequest 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 SearchDataItemsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDeployedModelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchDataItemsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; - - /** - * Creates a plain object from a SearchDataItemsRequest message. Also converts values to other types if specified. - * @param message SearchDataItemsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SearchDataItemsRequest to JSON. - * @returns JSON object + * @returns QueryDeployedModelsRequest */ - public toJSON(): { [k: string]: any }; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; /** - * Gets the default type url for SearchDataItemsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace SearchDataItemsRequest { - - /** Properties of an OrderByAnnotation. */ - interface IOrderByAnnotation { - - /** OrderByAnnotation savedQuery */ - savedQuery?: (string|null); - - /** OrderByAnnotation orderBy */ - orderBy?: (string|null); - } - - /** Represents an OrderByAnnotation. */ - class OrderByAnnotation implements IOrderByAnnotation { - - /** - * Constructs a new OrderByAnnotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation); - - /** OrderByAnnotation savedQuery. */ - public savedQuery: string; - - /** OrderByAnnotation orderBy. */ - public orderBy: string; - - /** - * Creates a new OrderByAnnotation instance using the specified properties. - * @param [properties] Properties to set - * @returns OrderByAnnotation instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - - /** - * Encodes the specified OrderByAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.verify|verify} messages. - * @param message OrderByAnnotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OrderByAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.verify|verify} messages. - * @param message OrderByAnnotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OrderByAnnotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OrderByAnnotation - * @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.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - - /** - * Decodes an OrderByAnnotation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OrderByAnnotation - * @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.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - - /** - * Verifies an OrderByAnnotation 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 an OrderByAnnotation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OrderByAnnotation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - - /** - * Creates a plain object from an OrderByAnnotation message. Also converts values to other types if specified. - * @param message OrderByAnnotation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + * Creates a plain object from a QueryDeployedModelsRequest message. Also converts values to other types if specified. + * @param message QueryDeployedModelsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this OrderByAnnotation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this QueryDeployedModelsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for OrderByAnnotation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for QueryDeployedModelsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchDataItemsResponse. */ - interface ISearchDataItemsResponse { + /** Properties of a QueryDeployedModelsResponse. */ + interface IQueryDeployedModelsResponse { - /** SearchDataItemsResponse dataItemViews */ - dataItemViews?: (google.cloud.aiplatform.v1beta1.IDataItemView[]|null); + /** QueryDeployedModelsResponse deployedModels */ + deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); - /** SearchDataItemsResponse nextPageToken */ + /** QueryDeployedModelsResponse nextPageToken */ nextPageToken?: (string|null); + + /** QueryDeployedModelsResponse deployedModelRefs */ + deployedModelRefs?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); + + /** QueryDeployedModelsResponse totalDeployedModelCount */ + totalDeployedModelCount?: (number|null); + + /** QueryDeployedModelsResponse totalEndpointCount */ + totalEndpointCount?: (number|null); } - /** Represents a SearchDataItemsResponse. */ - class SearchDataItemsResponse implements ISearchDataItemsResponse { + /** Represents a QueryDeployedModelsResponse. */ + class QueryDeployedModelsResponse implements IQueryDeployedModelsResponse { /** - * Constructs a new SearchDataItemsResponse. + * Constructs a new QueryDeployedModelsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse); - /** SearchDataItemsResponse dataItemViews. */ - public dataItemViews: google.cloud.aiplatform.v1beta1.IDataItemView[]; + /** QueryDeployedModelsResponse deployedModels. */ + public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; - /** SearchDataItemsResponse nextPageToken. */ + /** QueryDeployedModelsResponse nextPageToken. */ public nextPageToken: string; + /** QueryDeployedModelsResponse deployedModelRefs. */ + public deployedModelRefs: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + + /** QueryDeployedModelsResponse totalDeployedModelCount. */ + public totalDeployedModelCount: number; + + /** QueryDeployedModelsResponse totalEndpointCount. */ + public totalEndpointCount: number; + /** - * Creates a new SearchDataItemsResponse instance using the specified properties. + * Creates a new QueryDeployedModelsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SearchDataItemsResponse instance + * @returns QueryDeployedModelsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; /** - * Encodes the specified SearchDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.verify|verify} messages. - * @param message SearchDataItemsResponse message or plain object to encode + * Encodes the specified QueryDeployedModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.verify|verify} messages. + * @param message QueryDeployedModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.verify|verify} messages. - * @param message SearchDataItemsResponse message or plain object to encode + * Encodes the specified QueryDeployedModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.verify|verify} messages. + * @param message QueryDeployedModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchDataItemsResponse message from the specified reader or buffer. + * Decodes a QueryDeployedModelsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchDataItemsResponse + * @returns QueryDeployedModelsResponse * @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.aiplatform.v1beta1.SearchDataItemsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; /** - * Decodes a SearchDataItemsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryDeployedModelsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchDataItemsResponse + * @returns QueryDeployedModelsResponse * @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.aiplatform.v1beta1.SearchDataItemsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; /** - * Verifies a SearchDataItemsResponse message. + * Verifies a QueryDeployedModelsResponse 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 SearchDataItemsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDeployedModelsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchDataItemsResponse + * @returns QueryDeployedModelsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; /** - * Creates a plain object from a SearchDataItemsResponse message. Also converts values to other types if specified. - * @param message SearchDataItemsResponse + * Creates a plain object from a QueryDeployedModelsResponse message. Also converts values to other types if specified. + * @param message QueryDeployedModelsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchDataItemsResponse to JSON. + * Converts this QueryDeployedModelsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchDataItemsResponse + * Gets the default type url for QueryDeployedModelsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DataItemView. */ - interface IDataItemView { + /** Properties of an Endpoint. */ + interface IEndpoint { - /** DataItemView dataItem */ - dataItem?: (google.cloud.aiplatform.v1beta1.IDataItem|null); + /** Endpoint name */ + name?: (string|null); - /** DataItemView annotations */ - annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); + /** Endpoint displayName */ + displayName?: (string|null); - /** DataItemView hasTruncatedAnnotations */ - hasTruncatedAnnotations?: (boolean|null); + /** Endpoint description */ + description?: (string|null); + + /** Endpoint deployedModels */ + deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); + + /** Endpoint trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); + + /** Endpoint etag */ + etag?: (string|null); + + /** Endpoint labels */ + labels?: ({ [k: string]: string }|null); + + /** Endpoint createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Endpoint network */ + network?: (string|null); + + /** Endpoint enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); + + /** Endpoint modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (string|null); + + /** Endpoint predictRequestResponseLoggingConfig */ + predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); } - /** Represents a DataItemView. */ - class DataItemView implements IDataItemView { + /** Represents an Endpoint. */ + class Endpoint implements IEndpoint { /** - * Constructs a new DataItemView. + * Constructs a new Endpoint. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItemView); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEndpoint); - /** DataItemView dataItem. */ - public dataItem?: (google.cloud.aiplatform.v1beta1.IDataItem|null); + /** Endpoint name. */ + public name: string; - /** DataItemView annotations. */ - public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; + /** Endpoint displayName. */ + public displayName: string; - /** DataItemView hasTruncatedAnnotations. */ - public hasTruncatedAnnotations: boolean; + /** Endpoint description. */ + public description: string; + + /** Endpoint deployedModels. */ + public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; + + /** Endpoint trafficSplit. */ + public trafficSplit: { [k: string]: number }; + + /** Endpoint etag. */ + public etag: string; + + /** Endpoint labels. */ + public labels: { [k: string]: string }; + + /** Endpoint createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Endpoint network. */ + public network: string; + + /** Endpoint enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; + + /** Endpoint modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob: string; + + /** Endpoint predictRequestResponseLoggingConfig. */ + public predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); /** - * Creates a new DataItemView instance using the specified properties. + * Creates a new Endpoint instance using the specified properties. * @param [properties] Properties to set - * @returns DataItemView instance + * @returns Endpoint instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItemView): google.cloud.aiplatform.v1beta1.DataItemView; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEndpoint): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Encodes the specified DataItemView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItemView.verify|verify} messages. - * @param message DataItemView message or plain object to encode + * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. + * @param message Endpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataItemView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataItemView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItemView.verify|verify} messages. - * @param message DataItemView message or plain object to encode + * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. + * @param message Endpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItemView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataItemView message from the specified reader or buffer. + * Decodes an Endpoint message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataItemView + * @returns Endpoint * @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.aiplatform.v1beta1.DataItemView; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Decodes a DataItemView message from the specified reader or buffer, length delimited. + * Decodes an Endpoint message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataItemView + * @returns Endpoint * @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.aiplatform.v1beta1.DataItemView; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Verifies a DataItemView message. + * Verifies an Endpoint 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 DataItemView message from a plain object. Also converts values to their respective internal types. + * Creates an Endpoint message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataItemView + * @returns Endpoint */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItemView; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Creates a plain object from a DataItemView message. Also converts values to other types if specified. - * @param message DataItemView + * Creates a plain object from an Endpoint message. Also converts values to other types if specified. + * @param message Endpoint * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DataItemView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataItemView to JSON. + * Converts this Endpoint to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataItemView + * Gets the default type url for Endpoint * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSavedQueriesRequest. */ - interface IListSavedQueriesRequest { + /** Properties of a DeployedModel. */ + interface IDeployedModel { - /** ListSavedQueriesRequest parent */ - parent?: (string|null); + /** DeployedModel dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** ListSavedQueriesRequest filter */ - filter?: (string|null); + /** DeployedModel automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** ListSavedQueriesRequest pageSize */ - pageSize?: (number|null); + /** DeployedModel sharedResources */ + sharedResources?: (string|null); - /** ListSavedQueriesRequest pageToken */ - pageToken?: (string|null); + /** DeployedModel id */ + id?: (string|null); - /** ListSavedQueriesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** DeployedModel model */ + model?: (string|null); - /** ListSavedQueriesRequest orderBy */ - orderBy?: (string|null); + /** DeployedModel modelVersionId */ + modelVersionId?: (string|null); + + /** DeployedModel displayName */ + displayName?: (string|null); + + /** DeployedModel createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DeployedModel explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** DeployedModel disableExplanations */ + disableExplanations?: (boolean|null); + + /** DeployedModel serviceAccount */ + serviceAccount?: (string|null); + + /** DeployedModel enableContainerLogging */ + enableContainerLogging?: (boolean|null); + + /** DeployedModel enableAccessLogging */ + enableAccessLogging?: (boolean|null); + + /** DeployedModel privateEndpoints */ + privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); } - /** Represents a ListSavedQueriesRequest. */ - class ListSavedQueriesRequest implements IListSavedQueriesRequest { + /** Represents a DeployedModel. */ + class DeployedModel implements IDeployedModel { /** - * Constructs a new ListSavedQueriesRequest. + * Constructs a new DeployedModel. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel); - /** ListSavedQueriesRequest parent. */ - public parent: string; + /** DeployedModel dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** ListSavedQueriesRequest filter. */ - public filter: string; + /** DeployedModel automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** ListSavedQueriesRequest pageSize. */ - public pageSize: number; + /** DeployedModel sharedResources. */ + public sharedResources?: (string|null); - /** ListSavedQueriesRequest pageToken. */ - public pageToken: string; + /** DeployedModel id. */ + public id: string; - /** ListSavedQueriesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** DeployedModel model. */ + public model: string; - /** ListSavedQueriesRequest orderBy. */ - public orderBy: string; + /** DeployedModel modelVersionId. */ + public modelVersionId: string; + + /** DeployedModel displayName. */ + public displayName: string; + + /** DeployedModel createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** DeployedModel explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** DeployedModel disableExplanations. */ + public disableExplanations: boolean; + + /** DeployedModel serviceAccount. */ + public serviceAccount: string; + + /** DeployedModel enableContainerLogging. */ + public enableContainerLogging: boolean; + + /** DeployedModel enableAccessLogging. */ + public enableAccessLogging: boolean; + + /** DeployedModel privateEndpoints. */ + public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); + + /** DeployedModel predictionResources. */ + public predictionResources?: ("dedicatedResources"|"automaticResources"|"sharedResources"); /** - * Creates a new ListSavedQueriesRequest instance using the specified properties. + * Creates a new DeployedModel instance using the specified properties. * @param [properties] Properties to set - * @returns ListSavedQueriesRequest instance + * @returns DeployedModel instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Encodes the specified ListSavedQueriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. - * @param message ListSavedQueriesRequest message or plain object to encode + * Encodes the specified DeployedModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. + * @param message DeployedModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSavedQueriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. - * @param message ListSavedQueriesRequest message or plain object to encode + * Encodes the specified DeployedModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. + * @param message DeployedModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSavedQueriesRequest message from the specified reader or buffer. + * Decodes a DeployedModel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSavedQueriesRequest + * @returns DeployedModel * @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.aiplatform.v1beta1.ListSavedQueriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Decodes a ListSavedQueriesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployedModel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSavedQueriesRequest + * @returns DeployedModel * @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.aiplatform.v1beta1.ListSavedQueriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Verifies a ListSavedQueriesRequest message. + * Verifies a DeployedModel 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 ListSavedQueriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedModel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSavedQueriesRequest + * @returns DeployedModel */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Creates a plain object from a ListSavedQueriesRequest message. Also converts values to other types if specified. - * @param message ListSavedQueriesRequest + * Creates a plain object from a DeployedModel message. Also converts values to other types if specified. + * @param message DeployedModel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSavedQueriesRequest to JSON. + * Converts this DeployedModel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSavedQueriesRequest + * Gets the default type url for DeployedModel * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSavedQueriesResponse. */ - interface IListSavedQueriesResponse { + /** Properties of a PrivateEndpoints. */ + interface IPrivateEndpoints { - /** ListSavedQueriesResponse savedQueries */ - savedQueries?: (google.cloud.aiplatform.v1beta1.ISavedQuery[]|null); + /** PrivateEndpoints predictHttpUri */ + predictHttpUri?: (string|null); - /** ListSavedQueriesResponse nextPageToken */ - nextPageToken?: (string|null); + /** PrivateEndpoints explainHttpUri */ + explainHttpUri?: (string|null); + + /** PrivateEndpoints healthHttpUri */ + healthHttpUri?: (string|null); + + /** PrivateEndpoints serviceAttachment */ + serviceAttachment?: (string|null); } - /** Represents a ListSavedQueriesResponse. */ - class ListSavedQueriesResponse implements IListSavedQueriesResponse { + /** Represents a PrivateEndpoints. */ + class PrivateEndpoints implements IPrivateEndpoints { /** - * Constructs a new ListSavedQueriesResponse. + * Constructs a new PrivateEndpoints. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints); - /** ListSavedQueriesResponse savedQueries. */ - public savedQueries: google.cloud.aiplatform.v1beta1.ISavedQuery[]; + /** PrivateEndpoints predictHttpUri. */ + public predictHttpUri: string; - /** ListSavedQueriesResponse nextPageToken. */ - public nextPageToken: string; + /** PrivateEndpoints explainHttpUri. */ + public explainHttpUri: string; + + /** PrivateEndpoints healthHttpUri. */ + public healthHttpUri: string; + + /** PrivateEndpoints serviceAttachment. */ + public serviceAttachment: string; /** - * Creates a new ListSavedQueriesResponse instance using the specified properties. + * Creates a new PrivateEndpoints instance using the specified properties. * @param [properties] Properties to set - * @returns ListSavedQueriesResponse instance + * @returns PrivateEndpoints instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Encodes the specified ListSavedQueriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. - * @param message ListSavedQueriesResponse message or plain object to encode + * Encodes the specified PrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. + * @param message PrivateEndpoints message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSavedQueriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. - * @param message ListSavedQueriesResponse message or plain object to encode + * Encodes the specified PrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. + * @param message PrivateEndpoints message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSavedQueriesResponse message from the specified reader or buffer. + * Decodes a PrivateEndpoints message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSavedQueriesResponse + * @returns PrivateEndpoints * @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.aiplatform.v1beta1.ListSavedQueriesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Decodes a ListSavedQueriesResponse message from the specified reader or buffer, length delimited. + * Decodes a PrivateEndpoints message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSavedQueriesResponse + * @returns PrivateEndpoints * @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.aiplatform.v1beta1.ListSavedQueriesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Verifies a ListSavedQueriesResponse message. + * Verifies a PrivateEndpoints 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 ListSavedQueriesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrivateEndpoints message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSavedQueriesResponse + * @returns PrivateEndpoints */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Creates a plain object from a ListSavedQueriesResponse message. Also converts values to other types if specified. - * @param message ListSavedQueriesResponse + * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. + * @param message PrivateEndpoints * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSavedQueriesResponse to JSON. + * Converts this PrivateEndpoints to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSavedQueriesResponse + * Gets the default type url for PrivateEndpoints * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetAnnotationSpecRequest. */ - interface IGetAnnotationSpecRequest { + /** Properties of a PredictRequestResponseLoggingConfig. */ + interface IPredictRequestResponseLoggingConfig { - /** GetAnnotationSpecRequest name */ - name?: (string|null); + /** PredictRequestResponseLoggingConfig enabled */ + enabled?: (boolean|null); - /** GetAnnotationSpecRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** PredictRequestResponseLoggingConfig samplingRate */ + samplingRate?: (number|null); + + /** PredictRequestResponseLoggingConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); } - /** Represents a GetAnnotationSpecRequest. */ - class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest { + /** Represents a PredictRequestResponseLoggingConfig. */ + class PredictRequestResponseLoggingConfig implements IPredictRequestResponseLoggingConfig { /** - * Constructs a new GetAnnotationSpecRequest. + * Constructs a new PredictRequestResponseLoggingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig); - /** GetAnnotationSpecRequest name. */ - public name: string; + /** PredictRequestResponseLoggingConfig enabled. */ + public enabled: boolean; - /** GetAnnotationSpecRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** PredictRequestResponseLoggingConfig samplingRate. */ + public samplingRate: number; + + /** PredictRequestResponseLoggingConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); /** - * Creates a new GetAnnotationSpecRequest instance using the specified properties. + * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GetAnnotationSpecRequest instance + * @returns PredictRequestResponseLoggingConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. - * @param message GetAnnotationSpecRequest message or plain object to encode + * Encodes the specified PredictRequestResponseLoggingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. + * @param message PredictRequestResponseLoggingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. - * @param message GetAnnotationSpecRequest message or plain object to encode + * Encodes the specified PredictRequestResponseLoggingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. + * @param message PredictRequestResponseLoggingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. + * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAnnotationSpecRequest + * @returns PredictRequestResponseLoggingConfig * @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.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. + * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAnnotationSpecRequest + * @returns PredictRequestResponseLoggingConfig * @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.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Verifies a GetAnnotationSpecRequest message. + * Verifies a PredictRequestResponseLoggingConfig 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 GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequestResponseLoggingConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAnnotationSpecRequest + * @returns PredictRequestResponseLoggingConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. - * @param message GetAnnotationSpecRequest + * Creates a plain object from a PredictRequestResponseLoggingConfig message. Also converts values to other types if specified. + * @param message PredictRequestResponseLoggingConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAnnotationSpecRequest to JSON. + * Converts this PredictRequestResponseLoggingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetAnnotationSpecRequest + * Gets the default type url for PredictRequestResponseLoggingConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListAnnotationsRequest. */ - interface IListAnnotationsRequest { - - /** ListAnnotationsRequest parent */ - parent?: (string|null); + /** Represents an EndpointService */ + class EndpointService extends $protobuf.rpc.Service { - /** ListAnnotationsRequest filter */ - filter?: (string|null); + /** + * Constructs a new EndpointService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ListAnnotationsRequest pageSize */ - pageSize?: (number|null); + /** + * Creates new EndpointService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EndpointService; - /** ListAnnotationsRequest pageToken */ - pageToken?: (string|null); + /** + * Calls CreateEndpoint. + * @param request CreateEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpointCallback): void; - /** ListAnnotationsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** + * Calls CreateEndpoint. + * @param request CreateEndpointRequest message or plain object + * @returns Promise + */ + public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): Promise; - /** ListAnnotationsRequest orderBy */ - orderBy?: (string|null); - } + /** + * Calls GetEndpoint. + * @param request GetEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Endpoint + */ + public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.GetEndpointCallback): void; - /** Represents a ListAnnotationsRequest. */ - class ListAnnotationsRequest implements IListAnnotationsRequest { + /** + * Calls GetEndpoint. + * @param request GetEndpointRequest message or plain object + * @returns Promise + */ + public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): Promise; /** - * Constructs a new ListAnnotationsRequest. - * @param [properties] Properties to set + * Calls ListEndpoints. + * @param request ListEndpointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEndpointsResponse */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest); + public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.ListEndpointsCallback): void; - /** ListAnnotationsRequest parent. */ - public parent: string; + /** + * Calls ListEndpoints. + * @param request ListEndpointsRequest message or plain object + * @returns Promise + */ + public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): Promise; - /** ListAnnotationsRequest filter. */ - public filter: string; + /** + * Calls UpdateEndpoint. + * @param request UpdateEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Endpoint + */ + public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointCallback): void; - /** ListAnnotationsRequest pageSize. */ - public pageSize: number; + /** + * Calls UpdateEndpoint. + * @param request UpdateEndpointRequest message or plain object + * @returns Promise + */ + public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): Promise; - /** ListAnnotationsRequest pageToken. */ - public pageToken: string; + /** + * Calls DeleteEndpoint. + * @param request DeleteEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpointCallback): void; - /** ListAnnotationsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Calls DeleteEndpoint. + * @param request DeleteEndpointRequest message or plain object + * @returns Promise + */ + public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): Promise; - /** ListAnnotationsRequest orderBy. */ - public orderBy: string; + /** + * Calls DeployModel. + * @param request DeployModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeployModelCallback): void; /** - * Creates a new ListAnnotationsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListAnnotationsRequest instance + * Calls DeployModel. + * @param request DeployModelRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest): Promise; /** - * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. - * @param message ListAnnotationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UndeployModel. + * @param request UndeployModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback): void; /** - * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. - * @param message ListAnnotationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UndeployModel. + * @param request UndeployModelRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): Promise; + } + + namespace EndpointService { /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListAnnotationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|createEndpoint}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + type CreateEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListAnnotationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|getEndpoint}. + * @param error Error, if any + * @param [response] Endpoint */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + type GetEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; /** - * Verifies a ListAnnotationsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|listEndpoints}. + * @param error Error, if any + * @param [response] ListEndpointsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEndpointsResponse) => void; /** - * Creates a ListAnnotationsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListAnnotationsRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|updateEndpoint}. + * @param error Error, if any + * @param [response] Endpoint */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + type UpdateEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; /** - * Creates a plain object from a ListAnnotationsRequest message. Also converts values to other types if specified. - * @param message ListAnnotationsRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|deleteEndpoint}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListAnnotationsRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|deployModel}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type DeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for ListAnnotationsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|undeployModel}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type UndeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a ListAnnotationsResponse. */ - interface IListAnnotationsResponse { + /** Properties of a CreateEndpointRequest. */ + interface ICreateEndpointRequest { - /** ListAnnotationsResponse annotations */ - annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); + /** CreateEndpointRequest parent */ + parent?: (string|null); - /** ListAnnotationsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateEndpointRequest endpoint */ + endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + + /** CreateEndpointRequest endpointId */ + endpointId?: (string|null); } - /** Represents a ListAnnotationsResponse. */ - class ListAnnotationsResponse implements IListAnnotationsResponse { + /** Represents a CreateEndpointRequest. */ + class CreateEndpointRequest implements ICreateEndpointRequest { /** - * Constructs a new ListAnnotationsResponse. + * Constructs a new CreateEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest); - /** ListAnnotationsResponse annotations. */ - public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; + /** CreateEndpointRequest parent. */ + public parent: string; - /** ListAnnotationsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateEndpointRequest endpoint. */ + public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + + /** CreateEndpointRequest endpointId. */ + public endpointId: string; /** - * Creates a new ListAnnotationsResponse instance using the specified properties. + * Creates a new CreateEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAnnotationsResponse instance + * @returns CreateEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Encodes the specified ListAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. - * @param message ListAnnotationsResponse message or plain object to encode + * Encodes the specified CreateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. + * @param message CreateEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. - * @param message ListAnnotationsResponse message or plain object to encode + * Encodes the specified CreateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. + * @param message CreateEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAnnotationsResponse message from the specified reader or buffer. + * Decodes a CreateEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAnnotationsResponse + * @returns CreateEndpointRequest * @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.aiplatform.v1beta1.ListAnnotationsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Decodes a ListAnnotationsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAnnotationsResponse + * @returns CreateEndpointRequest * @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.aiplatform.v1beta1.ListAnnotationsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Verifies a ListAnnotationsResponse message. + * Verifies a CreateEndpointRequest 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 ListAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAnnotationsResponse + * @returns CreateEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Creates a plain object from a ListAnnotationsResponse message. Also converts values to other types if specified. - * @param message ListAnnotationsResponse + * Creates a plain object from a CreateEndpointRequest message. Also converts values to other types if specified. + * @param message CreateEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAnnotationsResponse to JSON. + * Converts this CreateEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListAnnotationsResponse + * Gets the default type url for CreateEndpointRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GenericOperationMetadata. */ - interface IGenericOperationMetadata { - - /** GenericOperationMetadata partialFailures */ - partialFailures?: (google.rpc.IStatus[]|null); - - /** GenericOperationMetadata createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a CreateEndpointOperationMetadata. */ + interface ICreateEndpointOperationMetadata { - /** GenericOperationMetadata updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** CreateEndpointOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GenericOperationMetadata. */ - class GenericOperationMetadata implements IGenericOperationMetadata { + /** Represents a CreateEndpointOperationMetadata. */ + class CreateEndpointOperationMetadata implements ICreateEndpointOperationMetadata { /** - * Constructs a new GenericOperationMetadata. + * Constructs a new CreateEndpointOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata); - - /** GenericOperationMetadata partialFailures. */ - public partialFailures: google.rpc.IStatus[]; - - /** GenericOperationMetadata createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata); - /** GenericOperationMetadata updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** CreateEndpointOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GenericOperationMetadata instance using the specified properties. + * Creates a new CreateEndpointOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GenericOperationMetadata instance + * @returns CreateEndpointOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Encodes the specified GenericOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. - * @param message GenericOperationMetadata message or plain object to encode + * Encodes the specified CreateEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. + * @param message CreateEndpointOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenericOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. - * @param message GenericOperationMetadata message or plain object to encode + * Encodes the specified CreateEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. + * @param message CreateEndpointOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer. + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenericOperationMetadata + * @returns CreateEndpointOperationMetadata * @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.aiplatform.v1beta1.GenericOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenericOperationMetadata + * @returns CreateEndpointOperationMetadata * @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.aiplatform.v1beta1.GenericOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Verifies a GenericOperationMetadata message. + * Verifies a CreateEndpointOperationMetadata 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 GenericOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenericOperationMetadata + * @returns CreateEndpointOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Creates a plain object from a GenericOperationMetadata message. Also converts values to other types if specified. - * @param message GenericOperationMetadata + * Creates a plain object from a CreateEndpointOperationMetadata message. Also converts values to other types if specified. + * @param message CreateEndpointOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GenericOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenericOperationMetadata to JSON. + * Converts this CreateEndpointOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GenericOperationMetadata + * Gets the default type url for CreateEndpointOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteOperationMetadata. */ - interface IDeleteOperationMetadata { + /** Properties of a GetEndpointRequest. */ + interface IGetEndpointRequest { - /** DeleteOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetEndpointRequest name */ + name?: (string|null); } - /** Represents a DeleteOperationMetadata. */ - class DeleteOperationMetadata implements IDeleteOperationMetadata { + /** Represents a GetEndpointRequest. */ + class GetEndpointRequest implements IGetEndpointRequest { /** - * Constructs a new DeleteOperationMetadata. + * Constructs a new GetEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest); - /** DeleteOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetEndpointRequest name. */ + public name: string; /** - * Creates a new DeleteOperationMetadata instance using the specified properties. + * Creates a new GetEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteOperationMetadata instance + * @returns GetEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. - * @param message DeleteOperationMetadata message or plain object to encode + * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * @param message GetEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. - * @param message DeleteOperationMetadata message or plain object to encode + * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * @param message GetEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer. + * Decodes a GetEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteOperationMetadata + * @returns GetEndpointRequest * @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.aiplatform.v1beta1.DeleteOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteOperationMetadata + * @returns GetEndpointRequest * @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.aiplatform.v1beta1.DeleteOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Verifies a DeleteOperationMetadata message. + * Verifies a GetEndpointRequest 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 DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteOperationMetadata + * @returns GetEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteOperationMetadata + * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified. + * @param message GetEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteOperationMetadata to JSON. + * Converts this GetEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteOperationMetadata + * Gets the default type url for GetEndpointRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployedIndexRef. */ - interface IDeployedIndexRef { + /** Properties of a ListEndpointsRequest. */ + interface IListEndpointsRequest { - /** DeployedIndexRef indexEndpoint */ - indexEndpoint?: (string|null); + /** ListEndpointsRequest parent */ + parent?: (string|null); - /** DeployedIndexRef deployedIndexId */ - deployedIndexId?: (string|null); + /** ListEndpointsRequest filter */ + filter?: (string|null); + + /** ListEndpointsRequest pageSize */ + pageSize?: (number|null); + + /** ListEndpointsRequest pageToken */ + pageToken?: (string|null); + + /** ListEndpointsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeployedIndexRef. */ - class DeployedIndexRef implements IDeployedIndexRef { + /** Represents a ListEndpointsRequest. */ + class ListEndpointsRequest implements IListEndpointsRequest { /** - * Constructs a new DeployedIndexRef. + * Constructs a new ListEndpointsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest); - /** DeployedIndexRef indexEndpoint. */ - public indexEndpoint: string; + /** ListEndpointsRequest parent. */ + public parent: string; - /** DeployedIndexRef deployedIndexId. */ - public deployedIndexId: string; + /** ListEndpointsRequest filter. */ + public filter: string; + + /** ListEndpointsRequest pageSize. */ + public pageSize: number; + + /** ListEndpointsRequest pageToken. */ + public pageToken: string; + + /** ListEndpointsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeployedIndexRef instance using the specified properties. + * Creates a new ListEndpointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndexRef instance + * @returns ListEndpointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Encodes the specified DeployedIndexRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. - * @param message DeployedIndexRef message or plain object to encode + * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. + * @param message ListEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedIndexRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. - * @param message DeployedIndexRef message or plain object to encode + * Encodes the specified ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. + * @param message ListEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer. + * Decodes a ListEndpointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedIndexRef + * @returns ListEndpointsRequest * @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.aiplatform.v1beta1.DeployedIndexRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer, length delimited. + * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedIndexRef + * @returns ListEndpointsRequest * @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.aiplatform.v1beta1.DeployedIndexRef; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Verifies a DeployedIndexRef message. + * Verifies a ListEndpointsRequest 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 DeployedIndexRef message from a plain object. Also converts values to their respective internal types. + * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedIndexRef + * @returns ListEndpointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Creates a plain object from a DeployedIndexRef message. Also converts values to other types if specified. - * @param message DeployedIndexRef + * Creates a plain object from a ListEndpointsRequest message. Also converts values to other types if specified. + * @param message ListEndpointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndexRef to JSON. + * Converts this ListEndpointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedIndexRef + * Gets the default type url for ListEndpointsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeploymentResourcePool. */ - interface IDeploymentResourcePool { - - /** DeploymentResourcePool name */ - name?: (string|null); + /** Properties of a ListEndpointsResponse. */ + interface IListEndpointsResponse { - /** DeploymentResourcePool dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** ListEndpointsResponse endpoints */ + endpoints?: (google.cloud.aiplatform.v1beta1.IEndpoint[]|null); - /** DeploymentResourcePool createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeploymentResourcePool. */ - class DeploymentResourcePool implements IDeploymentResourcePool { + /** Represents a ListEndpointsResponse. */ + class ListEndpointsResponse implements IListEndpointsResponse { /** - * Constructs a new DeploymentResourcePool. + * Constructs a new ListEndpointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool); - - /** DeploymentResourcePool name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse); - /** DeploymentResourcePool dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** ListEndpointsResponse endpoints. */ + public endpoints: google.cloud.aiplatform.v1beta1.IEndpoint[]; - /** DeploymentResourcePool createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeploymentResourcePool instance using the specified properties. + * Creates a new ListEndpointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeploymentResourcePool instance + * @returns ListEndpointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Encodes the specified DeploymentResourcePool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePool.verify|verify} messages. - * @param message DeploymentResourcePool message or plain object to encode + * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * @param message ListEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeploymentResourcePool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePool.verify|verify} messages. - * @param message DeploymentResourcePool message or plain object to encode + * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * @param message ListEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeploymentResourcePool message from the specified reader or buffer. + * Decodes a ListEndpointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeploymentResourcePool + * @returns ListEndpointsResponse * @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.aiplatform.v1beta1.DeploymentResourcePool; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Decodes a DeploymentResourcePool message from the specified reader or buffer, length delimited. + * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeploymentResourcePool + * @returns ListEndpointsResponse * @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.aiplatform.v1beta1.DeploymentResourcePool; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Verifies a DeploymentResourcePool message. + * Verifies a ListEndpointsResponse 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 DeploymentResourcePool message from a plain object. Also converts values to their respective internal types. + * Creates a ListEndpointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeploymentResourcePool + * @returns ListEndpointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Creates a plain object from a DeploymentResourcePool message. Also converts values to other types if specified. - * @param message DeploymentResourcePool + * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified. + * @param message ListEndpointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeploymentResourcePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeploymentResourcePool to JSON. + * Converts this ListEndpointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeploymentResourcePool + * Gets the default type url for ListEndpointsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a DeploymentResourcePoolService */ - class DeploymentResourcePoolService extends $protobuf.rpc.Service { - - /** - * Constructs a new DeploymentResourcePoolService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Properties of an UpdateEndpointRequest. */ + interface IUpdateEndpointRequest { - /** - * Creates new DeploymentResourcePoolService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DeploymentResourcePoolService; + /** UpdateEndpointRequest endpoint */ + endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** - * Calls CreateDeploymentResourcePool. - * @param request CreateDeploymentResourcePoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.CreateDeploymentResourcePoolCallback): void; + /** UpdateEndpointRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Calls CreateDeploymentResourcePool. - * @param request CreateDeploymentResourcePoolRequest message or plain object - * @returns Promise - */ - public createDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest): Promise; + /** Represents an UpdateEndpointRequest. */ + class UpdateEndpointRequest implements IUpdateEndpointRequest { /** - * Calls GetDeploymentResourcePool. - * @param request GetDeploymentResourcePoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeploymentResourcePool + * Constructs a new UpdateEndpointRequest. + * @param [properties] Properties to set */ - public getDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.GetDeploymentResourcePoolCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest); - /** - * Calls GetDeploymentResourcePool. - * @param request GetDeploymentResourcePoolRequest message or plain object - * @returns Promise - */ - public getDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest): Promise; + /** UpdateEndpointRequest endpoint. */ + public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** - * Calls ListDeploymentResourcePools. - * @param request ListDeploymentResourcePoolsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDeploymentResourcePoolsResponse - */ - public listDeploymentResourcePools(request: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.ListDeploymentResourcePoolsCallback): void; + /** UpdateEndpointRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Calls ListDeploymentResourcePools. - * @param request ListDeploymentResourcePoolsRequest message or plain object - * @returns Promise + * Creates a new UpdateEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateEndpointRequest instance */ - public listDeploymentResourcePools(request: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Calls DeleteDeploymentResourcePool. - * @param request DeleteDeploymentResourcePoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified UpdateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. + * @param message UpdateEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.DeleteDeploymentResourcePoolCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteDeploymentResourcePool. - * @param request DeleteDeploymentResourcePoolRequest message or plain object - * @returns Promise + * Encodes the specified UpdateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. + * @param message UpdateEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls QueryDeployedModels. - * @param request QueryDeployedModelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryDeployedModelsResponse + * Decodes an UpdateEndpointRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public queryDeployedModels(request: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.QueryDeployedModelsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Calls QueryDeployedModels. - * @param request QueryDeployedModelsRequest message or plain object - * @returns Promise + * Decodes an UpdateEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public queryDeployedModels(request: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest): Promise; - } - - namespace DeploymentResourcePoolService { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|createDeploymentResourcePool}. - * @param error Error, if any - * @param [response] Operation + * Verifies an UpdateEndpointRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateDeploymentResourcePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|getDeploymentResourcePool}. - * @param error Error, if any - * @param [response] DeploymentResourcePool + * Creates an UpdateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateEndpointRequest */ - type GetDeploymentResourcePoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DeploymentResourcePool) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|listDeploymentResourcePools}. - * @param error Error, if any - * @param [response] ListDeploymentResourcePoolsResponse + * Creates a plain object from an UpdateEndpointRequest message. Also converts values to other types if specified. + * @param message UpdateEndpointRequest + * @param [options] Conversion options + * @returns Plain object */ - type ListDeploymentResourcePoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|deleteDeploymentResourcePool}. - * @param error Error, if any - * @param [response] Operation + * Converts this UpdateEndpointRequest to JSON. + * @returns JSON object */ - type DeleteDeploymentResourcePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|queryDeployedModels}. - * @param error Error, if any - * @param [response] QueryDeployedModelsResponse + * Gets the default type url for UpdateEndpointRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type QueryDeployedModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDeploymentResourcePoolRequest. */ - interface ICreateDeploymentResourcePoolRequest { - - /** CreateDeploymentResourcePoolRequest parent */ - parent?: (string|null); - - /** CreateDeploymentResourcePoolRequest deploymentResourcePool */ - deploymentResourcePool?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool|null); + /** Properties of a DeleteEndpointRequest. */ + interface IDeleteEndpointRequest { - /** CreateDeploymentResourcePoolRequest deploymentResourcePoolId */ - deploymentResourcePoolId?: (string|null); + /** DeleteEndpointRequest name */ + name?: (string|null); } - /** Represents a CreateDeploymentResourcePoolRequest. */ - class CreateDeploymentResourcePoolRequest implements ICreateDeploymentResourcePoolRequest { + /** Represents a DeleteEndpointRequest. */ + class DeleteEndpointRequest implements IDeleteEndpointRequest { /** - * Constructs a new CreateDeploymentResourcePoolRequest. + * Constructs a new DeleteEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest); - - /** CreateDeploymentResourcePoolRequest parent. */ - public parent: string; - - /** CreateDeploymentResourcePoolRequest deploymentResourcePool. */ - public deploymentResourcePool?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest); - /** CreateDeploymentResourcePoolRequest deploymentResourcePoolId. */ - public deploymentResourcePoolId: string; + /** DeleteEndpointRequest name. */ + public name: string; /** - * Creates a new CreateDeploymentResourcePoolRequest instance using the specified properties. + * Creates a new DeleteEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDeploymentResourcePoolRequest instance + * @returns DeleteEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Encodes the specified CreateDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.verify|verify} messages. - * @param message CreateDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified DeleteEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. + * @param message DeleteEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.verify|verify} messages. - * @param message CreateDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified DeleteEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. + * @param message DeleteEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDeploymentResourcePoolRequest message from the specified reader or buffer. + * Decodes a DeleteEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDeploymentResourcePoolRequest + * @returns DeleteEndpointRequest * @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.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Decodes a CreateDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDeploymentResourcePoolRequest + * @returns DeleteEndpointRequest * @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.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Verifies a CreateDeploymentResourcePoolRequest message. + * Verifies a DeleteEndpointRequest 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 CreateDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDeploymentResourcePoolRequest + * @returns DeleteEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Creates a plain object from a CreateDeploymentResourcePoolRequest message. Also converts values to other types if specified. - * @param message CreateDeploymentResourcePoolRequest + * Creates a plain object from a DeleteEndpointRequest message. Also converts values to other types if specified. + * @param message DeleteEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDeploymentResourcePoolRequest to JSON. + * Converts this DeleteEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDeploymentResourcePoolRequest + * Gets the default type url for DeleteEndpointRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDeploymentResourcePoolOperationMetadata. */ - interface ICreateDeploymentResourcePoolOperationMetadata { + /** Properties of a DeployModelRequest. */ + interface IDeployModelRequest { - /** CreateDeploymentResourcePoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeployModelRequest endpoint */ + endpoint?: (string|null); + + /** DeployModelRequest deployedModel */ + deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + + /** DeployModelRequest trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); } - /** Represents a CreateDeploymentResourcePoolOperationMetadata. */ - class CreateDeploymentResourcePoolOperationMetadata implements ICreateDeploymentResourcePoolOperationMetadata { + /** Represents a DeployModelRequest. */ + class DeployModelRequest implements IDeployModelRequest { /** - * Constructs a new CreateDeploymentResourcePoolOperationMetadata. + * Constructs a new DeployModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest); - /** CreateDeploymentResourcePoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeployModelRequest endpoint. */ + public endpoint: string; + + /** DeployModelRequest deployedModel. */ + public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + + /** DeployModelRequest trafficSplit. */ + public trafficSplit: { [k: string]: number }; /** - * Creates a new CreateDeploymentResourcePoolOperationMetadata instance using the specified properties. + * Creates a new DeployModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDeploymentResourcePoolOperationMetadata instance + * @returns DeployModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Encodes the specified CreateDeploymentResourcePoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.verify|verify} messages. - * @param message CreateDeploymentResourcePoolOperationMetadata message or plain object to encode + * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. + * @param message DeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDeploymentResourcePoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.verify|verify} messages. - * @param message CreateDeploymentResourcePoolOperationMetadata message or plain object to encode + * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. + * @param message DeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer. + * Decodes a DeployModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDeploymentResourcePoolOperationMetadata + * @returns DeployModelRequest * @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.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Decodes a CreateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDeploymentResourcePoolOperationMetadata + * @returns DeployModelRequest * @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.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Verifies a CreateDeploymentResourcePoolOperationMetadata message. + * Verifies a DeployModelRequest 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 CreateDeploymentResourcePoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDeploymentResourcePoolOperationMetadata + * @returns DeployModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Creates a plain object from a CreateDeploymentResourcePoolOperationMetadata message. Also converts values to other types if specified. - * @param message CreateDeploymentResourcePoolOperationMetadata + * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified. + * @param message DeployModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDeploymentResourcePoolOperationMetadata to JSON. + * Converts this DeployModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDeploymentResourcePoolOperationMetadata + * Gets the default type url for DeployModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDeploymentResourcePoolRequest. */ - interface IGetDeploymentResourcePoolRequest { + /** Properties of a DeployModelResponse. */ + interface IDeployModelResponse { - /** GetDeploymentResourcePoolRequest name */ - name?: (string|null); + /** DeployModelResponse deployedModel */ + deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); } - /** Represents a GetDeploymentResourcePoolRequest. */ - class GetDeploymentResourcePoolRequest implements IGetDeploymentResourcePoolRequest { + /** Represents a DeployModelResponse. */ + class DeployModelResponse implements IDeployModelResponse { /** - * Constructs a new GetDeploymentResourcePoolRequest. + * Constructs a new DeployModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse); - /** GetDeploymentResourcePoolRequest name. */ - public name: string; + /** DeployModelResponse deployedModel. */ + public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); /** - * Creates a new GetDeploymentResourcePoolRequest instance using the specified properties. + * Creates a new DeployModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetDeploymentResourcePoolRequest instance + * @returns DeployModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Encodes the specified GetDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.verify|verify} messages. - * @param message GetDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * @param message DeployModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.verify|verify} messages. - * @param message GetDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified DeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * @param message DeployModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDeploymentResourcePoolRequest message from the specified reader or buffer. + * Decodes a DeployModelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDeploymentResourcePoolRequest + * @returns DeployModelResponse * @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.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Decodes a GetDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDeploymentResourcePoolRequest + * @returns DeployModelResponse * @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.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Verifies a GetDeploymentResourcePoolRequest message. + * Verifies a DeployModelResponse 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 GetDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDeploymentResourcePoolRequest + * @returns DeployModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Creates a plain object from a GetDeploymentResourcePoolRequest message. Also converts values to other types if specified. - * @param message GetDeploymentResourcePoolRequest + * Creates a plain object from a DeployModelResponse message. Also converts values to other types if specified. + * @param message DeployModelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDeploymentResourcePoolRequest to JSON. + * Converts this DeployModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDeploymentResourcePoolRequest + * Gets the default type url for DeployModelResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDeploymentResourcePoolsRequest. */ - interface IListDeploymentResourcePoolsRequest { - - /** ListDeploymentResourcePoolsRequest parent */ - parent?: (string|null); - - /** ListDeploymentResourcePoolsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a DeployModelOperationMetadata. */ + interface IDeployModelOperationMetadata { - /** ListDeploymentResourcePoolsRequest pageToken */ - pageToken?: (string|null); + /** DeployModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListDeploymentResourcePoolsRequest. */ - class ListDeploymentResourcePoolsRequest implements IListDeploymentResourcePoolsRequest { + /** Represents a DeployModelOperationMetadata. */ + class DeployModelOperationMetadata implements IDeployModelOperationMetadata { /** - * Constructs a new ListDeploymentResourcePoolsRequest. + * Constructs a new DeployModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest); - - /** ListDeploymentResourcePoolsRequest parent. */ - public parent: string; - - /** ListDeploymentResourcePoolsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata); - /** ListDeploymentResourcePoolsRequest pageToken. */ - public pageToken: string; + /** DeployModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListDeploymentResourcePoolsRequest instance using the specified properties. + * Creates a new DeployModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentResourcePoolsRequest instance + * @returns DeployModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Encodes the specified ListDeploymentResourcePoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.verify|verify} messages. - * @param message ListDeploymentResourcePoolsRequest message or plain object to encode + * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. + * @param message DeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentResourcePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.verify|verify} messages. - * @param message ListDeploymentResourcePoolsRequest message or plain object to encode + * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. + * @param message DeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentResourcePoolsRequest message from the specified reader or buffer. + * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentResourcePoolsRequest + * @returns DeployModelOperationMetadata * @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.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Decodes a ListDeploymentResourcePoolsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentResourcePoolsRequest + * @returns DeployModelOperationMetadata * @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.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Verifies a ListDeploymentResourcePoolsRequest message. + * Verifies a DeployModelOperationMetadata 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 ListDeploymentResourcePoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDeploymentResourcePoolsRequest + * @returns DeployModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Creates a plain object from a ListDeploymentResourcePoolsRequest message. Also converts values to other types if specified. - * @param message ListDeploymentResourcePoolsRequest + * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified. + * @param message DeployModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentResourcePoolsRequest to JSON. + * Converts this DeployModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDeploymentResourcePoolsRequest + * Gets the default type url for DeployModelOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDeploymentResourcePoolsResponse. */ - interface IListDeploymentResourcePoolsResponse { + /** Properties of an UndeployModelRequest. */ + interface IUndeployModelRequest { - /** ListDeploymentResourcePoolsResponse deploymentResourcePools */ - deploymentResourcePools?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool[]|null); + /** UndeployModelRequest endpoint */ + endpoint?: (string|null); - /** ListDeploymentResourcePoolsResponse nextPageToken */ - nextPageToken?: (string|null); + /** UndeployModelRequest deployedModelId */ + deployedModelId?: (string|null); + + /** UndeployModelRequest trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); } - /** Represents a ListDeploymentResourcePoolsResponse. */ - class ListDeploymentResourcePoolsResponse implements IListDeploymentResourcePoolsResponse { + /** Represents an UndeployModelRequest. */ + class UndeployModelRequest implements IUndeployModelRequest { /** - * Constructs a new ListDeploymentResourcePoolsResponse. + * Constructs a new UndeployModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest); - /** ListDeploymentResourcePoolsResponse deploymentResourcePools. */ - public deploymentResourcePools: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool[]; + /** UndeployModelRequest endpoint. */ + public endpoint: string; - /** ListDeploymentResourcePoolsResponse nextPageToken. */ - public nextPageToken: string; + /** UndeployModelRequest deployedModelId. */ + public deployedModelId: string; + + /** UndeployModelRequest trafficSplit. */ + public trafficSplit: { [k: string]: number }; /** - * Creates a new ListDeploymentResourcePoolsResponse instance using the specified properties. + * Creates a new UndeployModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentResourcePoolsResponse instance + * @returns UndeployModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Encodes the specified ListDeploymentResourcePoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.verify|verify} messages. - * @param message ListDeploymentResourcePoolsResponse message or plain object to encode + * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. + * @param message UndeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentResourcePoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.verify|verify} messages. - * @param message ListDeploymentResourcePoolsResponse message or plain object to encode + * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. + * @param message UndeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentResourcePoolsResponse message from the specified reader or buffer. + * Decodes an UndeployModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentResourcePoolsResponse + * @returns UndeployModelRequest * @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.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Decodes a ListDeploymentResourcePoolsResponse message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentResourcePoolsResponse + * @returns UndeployModelRequest * @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.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Verifies a ListDeploymentResourcePoolsResponse message. + * Verifies an UndeployModelRequest 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 ListDeploymentResourcePoolsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDeploymentResourcePoolsResponse + * @returns UndeployModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Creates a plain object from a ListDeploymentResourcePoolsResponse message. Also converts values to other types if specified. - * @param message ListDeploymentResourcePoolsResponse + * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified. + * @param message UndeployModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentResourcePoolsResponse to JSON. + * Converts this UndeployModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDeploymentResourcePoolsResponse + * Gets the default type url for UndeployModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateDeploymentResourcePoolOperationMetadata. */ - interface IUpdateDeploymentResourcePoolOperationMetadata { - - /** UpdateDeploymentResourcePoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of an UndeployModelResponse. */ + interface IUndeployModelResponse { } - /** Represents an UpdateDeploymentResourcePoolOperationMetadata. */ - class UpdateDeploymentResourcePoolOperationMetadata implements IUpdateDeploymentResourcePoolOperationMetadata { + /** Represents an UndeployModelResponse. */ + class UndeployModelResponse implements IUndeployModelResponse { /** - * Constructs a new UpdateDeploymentResourcePoolOperationMetadata. + * Constructs a new UndeployModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata); - - /** UpdateDeploymentResourcePoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse); /** - * Creates a new UpdateDeploymentResourcePoolOperationMetadata instance using the specified properties. + * Creates a new UndeployModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDeploymentResourcePoolOperationMetadata instance + * @returns UndeployModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Encodes the specified UpdateDeploymentResourcePoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.verify|verify} messages. - * @param message UpdateDeploymentResourcePoolOperationMetadata message or plain object to encode + * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. + * @param message UndeployModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDeploymentResourcePoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.verify|verify} messages. - * @param message UpdateDeploymentResourcePoolOperationMetadata message or plain object to encode + * Encodes the specified UndeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. + * @param message UndeployModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer. + * Decodes an UndeployModelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDeploymentResourcePoolOperationMetadata + * @returns UndeployModelResponse * @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.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Decodes an UpdateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDeploymentResourcePoolOperationMetadata + * @returns UndeployModelResponse * @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.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Verifies an UpdateDeploymentResourcePoolOperationMetadata message. + * Verifies an UndeployModelResponse 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 an UpdateDeploymentResourcePoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDeploymentResourcePoolOperationMetadata + * @returns UndeployModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Creates a plain object from an UpdateDeploymentResourcePoolOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateDeploymentResourcePoolOperationMetadata + * Creates a plain object from an UndeployModelResponse message. Also converts values to other types if specified. + * @param message UndeployModelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDeploymentResourcePoolOperationMetadata to JSON. + * Converts this UndeployModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateDeploymentResourcePoolOperationMetadata + * Gets the default type url for UndeployModelResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteDeploymentResourcePoolRequest. */ - interface IDeleteDeploymentResourcePoolRequest { + /** Properties of an UndeployModelOperationMetadata. */ + interface IUndeployModelOperationMetadata { - /** DeleteDeploymentResourcePoolRequest name */ - name?: (string|null); + /** UndeployModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeleteDeploymentResourcePoolRequest. */ - class DeleteDeploymentResourcePoolRequest implements IDeleteDeploymentResourcePoolRequest { + /** Represents an UndeployModelOperationMetadata. */ + class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata { /** - * Constructs a new DeleteDeploymentResourcePoolRequest. + * Constructs a new UndeployModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata); - /** DeleteDeploymentResourcePoolRequest name. */ - public name: string; + /** UndeployModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeleteDeploymentResourcePoolRequest instance using the specified properties. + * Creates a new UndeployModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDeploymentResourcePoolRequest instance + * @returns UndeployModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Encodes the specified DeleteDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.verify|verify} messages. - * @param message DeleteDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * @param message UndeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.verify|verify} messages. - * @param message DeleteDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * @param message UndeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDeploymentResourcePoolRequest message from the specified reader or buffer. + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDeploymentResourcePoolRequest + * @returns UndeployModelOperationMetadata * @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.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Decodes a DeleteDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDeploymentResourcePoolRequest + * @returns UndeployModelOperationMetadata * @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.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Verifies a DeleteDeploymentResourcePoolRequest message. + * Verifies an UndeployModelOperationMetadata 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 DeleteDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDeploymentResourcePoolRequest + * @returns UndeployModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Creates a plain object from a DeleteDeploymentResourcePoolRequest message. Also converts values to other types if specified. - * @param message DeleteDeploymentResourcePoolRequest + * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified. + * @param message UndeployModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDeploymentResourcePoolRequest to JSON. + * Converts this UndeployModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteDeploymentResourcePoolRequest + * Gets the default type url for UndeployModelOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryDeployedModelsRequest. */ - interface IQueryDeployedModelsRequest { + /** Properties of an EntityType. */ + interface IEntityType { - /** QueryDeployedModelsRequest deploymentResourcePool */ - deploymentResourcePool?: (string|null); + /** EntityType name */ + name?: (string|null); - /** QueryDeployedModelsRequest pageSize */ - pageSize?: (number|null); + /** EntityType description */ + description?: (string|null); - /** QueryDeployedModelsRequest pageToken */ - pageToken?: (string|null); + /** EntityType createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** EntityType updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** EntityType labels */ + labels?: ({ [k: string]: string }|null); + + /** EntityType etag */ + etag?: (string|null); + + /** EntityType monitoringConfig */ + monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** EntityType offlineStorageTtlDays */ + offlineStorageTtlDays?: (number|null); } - /** Represents a QueryDeployedModelsRequest. */ - class QueryDeployedModelsRequest implements IQueryDeployedModelsRequest { + /** Represents an EntityType. */ + class EntityType implements IEntityType { /** - * Constructs a new QueryDeployedModelsRequest. + * Constructs a new EntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityType); - /** QueryDeployedModelsRequest deploymentResourcePool. */ - public deploymentResourcePool: string; + /** EntityType name. */ + public name: string; - /** QueryDeployedModelsRequest pageSize. */ - public pageSize: number; + /** EntityType description. */ + public description: string; - /** QueryDeployedModelsRequest pageToken. */ - public pageToken: string; + /** EntityType createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** EntityType updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** EntityType labels. */ + public labels: { [k: string]: string }; + + /** EntityType etag. */ + public etag: string; + + /** EntityType monitoringConfig. */ + public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** EntityType offlineStorageTtlDays. */ + public offlineStorageTtlDays: number; /** - * Creates a new QueryDeployedModelsRequest instance using the specified properties. + * Creates a new EntityType instance using the specified properties. * @param [properties] Properties to set - * @returns QueryDeployedModelsRequest instance + * @returns EntityType instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityType): google.cloud.aiplatform.v1beta1.EntityType; /** - * Encodes the specified QueryDeployedModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.verify|verify} messages. - * @param message QueryDeployedModelsRequest message or plain object to encode + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryDeployedModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.verify|verify} messages. - * @param message QueryDeployedModelsRequest message or plain object to encode + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryDeployedModelsRequest message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryDeployedModelsRequest + * @returns EntityType * @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.aiplatform.v1beta1.QueryDeployedModelsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EntityType; /** - * Decodes a QueryDeployedModelsRequest message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryDeployedModelsRequest + * @returns EntityType * @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.aiplatform.v1beta1.QueryDeployedModelsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EntityType; /** - * Verifies a QueryDeployedModelsRequest message. + * Verifies an EntityType 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 QueryDeployedModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EntityType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryDeployedModelsRequest + * @returns EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityType; /** - * Creates a plain object from a QueryDeployedModelsRequest message. Also converts values to other types if specified. - * @param message QueryDeployedModelsRequest + * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * @param message EntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryDeployedModelsRequest to JSON. + * Converts this EntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryDeployedModelsRequest + * Gets the default type url for EntityType * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryDeployedModelsResponse. */ - interface IQueryDeployedModelsResponse { - - /** QueryDeployedModelsResponse deployedModels */ - deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); + /** Properties of a FeaturestoreMonitoringConfig. */ + interface IFeaturestoreMonitoringConfig { - /** QueryDeployedModelsResponse nextPageToken */ - nextPageToken?: (string|null); + /** FeaturestoreMonitoringConfig snapshotAnalysis */ + snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - /** QueryDeployedModelsResponse deployedModelRefs */ - deployedModelRefs?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); + /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ + importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - /** QueryDeployedModelsResponse totalDeployedModelCount */ - totalDeployedModelCount?: (number|null); + /** FeaturestoreMonitoringConfig numericalThresholdConfig */ + numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); - /** QueryDeployedModelsResponse totalEndpointCount */ - totalEndpointCount?: (number|null); + /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ + categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); } - /** Represents a QueryDeployedModelsResponse. */ - class QueryDeployedModelsResponse implements IQueryDeployedModelsResponse { + /** Represents a FeaturestoreMonitoringConfig. */ + class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { /** - * Constructs a new QueryDeployedModelsResponse. + * Constructs a new FeaturestoreMonitoringConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse); - - /** QueryDeployedModelsResponse deployedModels. */ - public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig); - /** QueryDeployedModelsResponse nextPageToken. */ - public nextPageToken: string; + /** FeaturestoreMonitoringConfig snapshotAnalysis. */ + public snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - /** QueryDeployedModelsResponse deployedModelRefs. */ - public deployedModelRefs: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ + public importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - /** QueryDeployedModelsResponse totalDeployedModelCount. */ - public totalDeployedModelCount: number; + /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ + public numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); - /** QueryDeployedModelsResponse totalEndpointCount. */ - public totalEndpointCount: number; + /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ + public categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); /** - * Creates a new QueryDeployedModelsResponse instance using the specified properties. + * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. * @param [properties] Properties to set - * @returns QueryDeployedModelsResponse instance + * @returns FeaturestoreMonitoringConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Encodes the specified QueryDeployedModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.verify|verify} messages. - * @param message QueryDeployedModelsResponse message or plain object to encode + * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. + * @param message FeaturestoreMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryDeployedModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.verify|verify} messages. - * @param message QueryDeployedModelsResponse message or plain object to encode + * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. + * @param message FeaturestoreMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryDeployedModelsResponse message from the specified reader or buffer. + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryDeployedModelsResponse + * @returns FeaturestoreMonitoringConfig * @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.aiplatform.v1beta1.QueryDeployedModelsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Decodes a QueryDeployedModelsResponse message from the specified reader or buffer, length delimited. + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryDeployedModelsResponse + * @returns FeaturestoreMonitoringConfig * @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.aiplatform.v1beta1.QueryDeployedModelsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Verifies a QueryDeployedModelsResponse message. + * Verifies a FeaturestoreMonitoringConfig 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 QueryDeployedModelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryDeployedModelsResponse + * @returns FeaturestoreMonitoringConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Creates a plain object from a QueryDeployedModelsResponse message. Also converts values to other types if specified. - * @param message QueryDeployedModelsResponse + * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. + * @param message FeaturestoreMonitoringConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryDeployedModelsResponse to JSON. + * Converts this FeaturestoreMonitoringConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryDeployedModelsResponse + * Gets the default type url for FeaturestoreMonitoringConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Endpoint. */ - interface IEndpoint { + namespace FeaturestoreMonitoringConfig { - /** Endpoint name */ - name?: (string|null); + /** Properties of a SnapshotAnalysis. */ + interface ISnapshotAnalysis { - /** Endpoint displayName */ - displayName?: (string|null); + /** SnapshotAnalysis disabled */ + disabled?: (boolean|null); - /** Endpoint description */ - description?: (string|null); + /** SnapshotAnalysis monitoringInterval */ + monitoringInterval?: (google.protobuf.IDuration|null); - /** Endpoint deployedModels */ - deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); + /** SnapshotAnalysis monitoringIntervalDays */ + monitoringIntervalDays?: (number|null); - /** Endpoint trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); + /** SnapshotAnalysis stalenessDays */ + stalenessDays?: (number|null); + } - /** Endpoint etag */ - etag?: (string|null); + /** Represents a SnapshotAnalysis. */ + class SnapshotAnalysis implements ISnapshotAnalysis { - /** Endpoint labels */ - labels?: ({ [k: string]: string }|null); + /** + * Constructs a new SnapshotAnalysis. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); - /** Endpoint createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** SnapshotAnalysis disabled. */ + public disabled: boolean; - /** Endpoint updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** SnapshotAnalysis monitoringInterval. */ + public monitoringInterval?: (google.protobuf.IDuration|null); - /** Endpoint encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** SnapshotAnalysis monitoringIntervalDays. */ + public monitoringIntervalDays: number; - /** Endpoint network */ - network?: (string|null); + /** SnapshotAnalysis stalenessDays. */ + public stalenessDays: number; - /** Endpoint enablePrivateServiceConnect */ - enablePrivateServiceConnect?: (boolean|null); + /** + * Creates a new SnapshotAnalysis instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotAnalysis instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - /** Endpoint modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|null); + /** + * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. + * @param message SnapshotAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - /** Endpoint predictRequestResponseLoggingConfig */ - predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); - } + /** + * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. + * @param message SnapshotAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an Endpoint. */ - class Endpoint implements IEndpoint { + /** + * Decodes a SnapshotAnalysis message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotAnalysis + * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - /** - * Constructs a new Endpoint. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEndpoint); + /** + * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotAnalysis + * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - /** Endpoint name. */ - public name: string; + /** + * Verifies a SnapshotAnalysis 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); - /** Endpoint displayName. */ - public displayName: string; + /** + * Creates a SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotAnalysis + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - /** Endpoint description. */ - public description: string; + /** + * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. + * @param message SnapshotAnalysis + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Endpoint deployedModels. */ - public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; + /** + * Converts this SnapshotAnalysis to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Endpoint trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** + * Gets the default type url for SnapshotAnalysis + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Endpoint etag. */ - public etag: string; + /** Properties of an ImportFeaturesAnalysis. */ + interface IImportFeaturesAnalysis { - /** Endpoint labels. */ - public labels: { [k: string]: string }; + /** ImportFeaturesAnalysis state */ + state?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null); - /** Endpoint createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ImportFeaturesAnalysis anomalyDetectionBaseline */ + anomalyDetectionBaseline?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null); + } - /** Endpoint updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Represents an ImportFeaturesAnalysis. */ + class ImportFeaturesAnalysis implements IImportFeaturesAnalysis { - /** Endpoint encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** + * Constructs a new ImportFeaturesAnalysis. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis); - /** Endpoint network. */ - public network: string; + /** ImportFeaturesAnalysis state. */ + public state: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State); - /** Endpoint enablePrivateServiceConnect. */ - public enablePrivateServiceConnect: boolean; + /** ImportFeaturesAnalysis anomalyDetectionBaseline. */ + public anomalyDetectionBaseline: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline); - /** Endpoint modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; + /** + * Creates a new ImportFeaturesAnalysis instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportFeaturesAnalysis instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - /** Endpoint predictRequestResponseLoggingConfig. */ - public predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); + /** + * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @param message ImportFeaturesAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Endpoint instance using the specified properties. - * @param [properties] Properties to set - * @returns Endpoint instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEndpoint): google.cloud.aiplatform.v1beta1.Endpoint; + /** + * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @param message ImportFeaturesAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. - * @param message Endpoint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportFeaturesAnalysis + * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - /** - * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. - * @param message Endpoint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportFeaturesAnalysis + * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - /** - * Decodes an Endpoint message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Endpoint - * @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.aiplatform.v1beta1.Endpoint; + /** + * Verifies an ImportFeaturesAnalysis 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); - /** - * Decodes an Endpoint message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Endpoint - * @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.aiplatform.v1beta1.Endpoint; + /** + * Creates an ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportFeaturesAnalysis + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - /** - * Verifies an Endpoint 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 plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. + * @param message ImportFeaturesAnalysis + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an Endpoint message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Endpoint - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Endpoint; + /** + * Converts this ImportFeaturesAnalysis to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an Endpoint message. Also converts values to other types if specified. - * @param message Endpoint - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ImportFeaturesAnalysis + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this Endpoint to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + namespace ImportFeaturesAnalysis { - /** - * Gets the default type url for Endpoint - * @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, + DEFAULT = 1, + ENABLED = 2, + DISABLED = 3 + } - /** Properties of a DeployedModel. */ - interface IDeployedModel { + /** Baseline enum. */ + enum Baseline { + BASELINE_UNSPECIFIED = 0, + LATEST_STATS = 1, + MOST_RECENT_SNAPSHOT_STATS = 2, + PREVIOUS_IMPORT_FEATURES_STATS = 3 + } + } - /** DeployedModel dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { - /** DeployedModel automaticResources */ - automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + /** ThresholdConfig value */ + value?: (number|null); + } - /** DeployedModel sharedResources */ - sharedResources?: (string|null); + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { - /** DeployedModel id */ - id?: (string|null); + /** + * Constructs a new ThresholdConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig); - /** DeployedModel model */ - model?: (string|null); + /** ThresholdConfig value. */ + public value?: (number|null); - /** DeployedModel modelVersionId */ - modelVersionId?: (string|null); + /** ThresholdConfig threshold. */ + public threshold?: "value"; - /** DeployedModel displayName */ - displayName?: (string|null); + /** + * Creates a new ThresholdConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ThresholdConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - /** DeployedModel createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeployedModel explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + /** + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeployedModel serviceAccount */ - serviceAccount?: (string|null); + /** + * Decodes a ThresholdConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ThresholdConfig + * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - /** DeployedModel enableContainerLogging */ - enableContainerLogging?: (boolean|null); + /** + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ThresholdConfig + * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - /** DeployedModel enableAccessLogging */ - enableAccessLogging?: (boolean|null); + /** + * Verifies a ThresholdConfig 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); - /** DeployedModel privateEndpoints */ - privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); - } + /** + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ThresholdConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - /** Represents a DeployedModel. */ - class DeployedModel implements IDeployedModel { + /** + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new DeployedModel. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel); + /** + * Converts this ThresholdConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DeployedModel dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** + * Gets the default type url for ThresholdConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** DeployedModel automaticResources. */ - public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + /** Properties of an Event. */ + interface IEvent { - /** DeployedModel sharedResources. */ - public sharedResources?: (string|null); + /** Event artifact */ + artifact?: (string|null); - /** DeployedModel id. */ - public id: string; + /** Event execution */ + execution?: (string|null); - /** DeployedModel model. */ - public model: string; + /** Event eventTime */ + eventTime?: (google.protobuf.ITimestamp|null); - /** DeployedModel modelVersionId. */ - public modelVersionId: string; + /** Event type */ + type?: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type|null); - /** DeployedModel displayName. */ - public displayName: string; + /** Event labels */ + labels?: ({ [k: string]: string }|null); + } - /** DeployedModel createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Represents an Event. */ + class Event implements IEvent { - /** DeployedModel explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + /** + * Constructs a new Event. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IEvent); - /** DeployedModel serviceAccount. */ - public serviceAccount: string; + /** Event artifact. */ + public artifact: string; - /** DeployedModel enableContainerLogging. */ - public enableContainerLogging: boolean; + /** Event execution. */ + public execution: string; - /** DeployedModel enableAccessLogging. */ - public enableAccessLogging: boolean; + /** Event eventTime. */ + public eventTime?: (google.protobuf.ITimestamp|null); - /** DeployedModel privateEndpoints. */ - public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); + /** Event type. */ + public type: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type); - /** DeployedModel predictionResources. */ - public predictionResources?: ("dedicatedResources"|"automaticResources"|"sharedResources"); + /** Event labels. */ + public labels: { [k: string]: string }; /** - * Creates a new DeployedModel instance using the specified properties. + * Creates a new Event instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedModel instance + * @returns Event instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel): google.cloud.aiplatform.v1beta1.DeployedModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEvent): google.cloud.aiplatform.v1beta1.Event; /** - * Encodes the specified DeployedModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. - * @param message DeployedModel message or plain object to encode + * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. - * @param message DeployedModel message or plain object to encode + * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedModel message from the specified reader or buffer. + * Decodes an Event message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedModel + * @returns Event * @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.aiplatform.v1beta1.DeployedModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Event; /** - * Decodes a DeployedModel message from the specified reader or buffer, length delimited. + * Decodes an Event message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedModel + * @returns Event * @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.aiplatform.v1beta1.DeployedModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Event; /** - * Verifies a DeployedModel message. + * Verifies an Event 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 DeployedModel message from a plain object. Also converts values to their respective internal types. + * Creates an Event message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedModel + * @returns Event */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Event; /** - * Creates a plain object from a DeployedModel message. Also converts values to other types if specified. - * @param message DeployedModel + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @param message Event * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedModel to JSON. + * Converts this Event to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedModel + * Gets the default type url for Event * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrivateEndpoints. */ - interface IPrivateEndpoints { + namespace Event { - /** PrivateEndpoints predictHttpUri */ - predictHttpUri?: (string|null); + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + INPUT = 1, + OUTPUT = 2 + } + } - /** PrivateEndpoints explainHttpUri */ - explainHttpUri?: (string|null); + /** Properties of an Execution. */ + interface IExecution { - /** PrivateEndpoints healthHttpUri */ - healthHttpUri?: (string|null); + /** Execution name */ + name?: (string|null); - /** PrivateEndpoints serviceAttachment */ - serviceAttachment?: (string|null); + /** Execution displayName */ + displayName?: (string|null); + + /** Execution state */ + state?: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State|null); + + /** Execution etag */ + etag?: (string|null); + + /** Execution labels */ + labels?: ({ [k: string]: string }|null); + + /** Execution createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Execution updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Execution schemaTitle */ + schemaTitle?: (string|null); + + /** Execution schemaVersion */ + schemaVersion?: (string|null); + + /** Execution metadata */ + metadata?: (google.protobuf.IStruct|null); + + /** Execution description */ + description?: (string|null); } - /** Represents a PrivateEndpoints. */ - class PrivateEndpoints implements IPrivateEndpoints { + /** Represents an Execution. */ + class Execution implements IExecution { /** - * Constructs a new PrivateEndpoints. + * Constructs a new Execution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExecution); - /** PrivateEndpoints predictHttpUri. */ - public predictHttpUri: string; + /** Execution name. */ + public name: string; - /** PrivateEndpoints explainHttpUri. */ - public explainHttpUri: string; + /** Execution displayName. */ + public displayName: string; - /** PrivateEndpoints healthHttpUri. */ - public healthHttpUri: string; + /** Execution state. */ + public state: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State); - /** PrivateEndpoints serviceAttachment. */ - public serviceAttachment: string; + /** Execution etag. */ + public etag: string; + + /** Execution labels. */ + public labels: { [k: string]: string }; + + /** Execution createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Execution updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Execution schemaTitle. */ + public schemaTitle: string; + + /** Execution schemaVersion. */ + public schemaVersion: string; + + /** Execution metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** Execution description. */ + public description: string; /** - * Creates a new PrivateEndpoints instance using the specified properties. + * Creates a new Execution instance using the specified properties. * @param [properties] Properties to set - * @returns PrivateEndpoints instance + * @returns Execution instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExecution): google.cloud.aiplatform.v1beta1.Execution; /** - * Encodes the specified PrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. - * @param message PrivateEndpoints message or plain object to encode + * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. + * @param message Execution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. - * @param message PrivateEndpoints message or plain object to encode + * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. + * @param message Execution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateEndpoints message from the specified reader or buffer. + * Decodes an Execution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrivateEndpoints + * @returns Execution * @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.aiplatform.v1beta1.PrivateEndpoints; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Execution; /** - * Decodes a PrivateEndpoints message from the specified reader or buffer, length delimited. + * Decodes an Execution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrivateEndpoints + * @returns Execution * @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.aiplatform.v1beta1.PrivateEndpoints; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Execution; /** - * Verifies a PrivateEndpoints message. + * Verifies an Execution 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 PrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * Creates an Execution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrivateEndpoints + * @returns Execution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Execution; /** - * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. - * @param message PrivateEndpoints + * Creates a plain object from an Execution message. Also converts values to other types if specified. + * @param message Execution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateEndpoints to JSON. + * Converts this Execution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrivateEndpoints + * Gets the default type url for Execution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PredictRequestResponseLoggingConfig. */ - interface IPredictRequestResponseLoggingConfig { + namespace Execution { - /** PredictRequestResponseLoggingConfig enabled */ - enabled?: (boolean|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + NEW = 1, + RUNNING = 2, + COMPLETE = 3, + FAILED = 4, + CACHED = 5, + CANCELLED = 6 + } + } - /** PredictRequestResponseLoggingConfig samplingRate */ - samplingRate?: (number|null); + /** Properties of a Feature. */ + interface IFeature { - /** PredictRequestResponseLoggingConfig bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Feature name */ + name?: (string|null); + + /** Feature description */ + description?: (string|null); + + /** Feature valueType */ + valueType?: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType|null); + + /** Feature createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Feature updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Feature labels */ + labels?: ({ [k: string]: string }|null); + + /** Feature etag */ + etag?: (string|null); + + /** Feature monitoringConfig */ + monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** Feature disableMonitoring */ + disableMonitoring?: (boolean|null); + + /** Feature monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + + /** Feature monitoringStatsAnomalies */ + monitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]|null); } - /** Represents a PredictRequestResponseLoggingConfig. */ - class PredictRequestResponseLoggingConfig implements IPredictRequestResponseLoggingConfig { + /** Represents a Feature. */ + class Feature implements IFeature { /** - * Constructs a new PredictRequestResponseLoggingConfig. + * Constructs a new Feature. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeature); - /** PredictRequestResponseLoggingConfig enabled. */ - public enabled: boolean; + /** Feature name. */ + public name: string; - /** PredictRequestResponseLoggingConfig samplingRate. */ - public samplingRate: number; + /** Feature description. */ + public description: string; - /** PredictRequestResponseLoggingConfig bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Feature valueType. */ + public valueType: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType); + + /** Feature createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Feature updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Feature labels. */ + public labels: { [k: string]: string }; + + /** Feature etag. */ + public etag: string; + + /** Feature monitoringConfig. */ + public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** Feature disableMonitoring. */ + public disableMonitoring: boolean; + + /** Feature monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + + /** Feature monitoringStatsAnomalies. */ + public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; /** - * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. + * Creates a new Feature instance using the specified properties. * @param [properties] Properties to set - * @returns PredictRequestResponseLoggingConfig instance + * @returns Feature instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeature): google.cloud.aiplatform.v1beta1.Feature; /** - * Encodes the specified PredictRequestResponseLoggingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. - * @param message PredictRequestResponseLoggingConfig message or plain object to encode + * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * @param message Feature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredictRequestResponseLoggingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. - * @param message PredictRequestResponseLoggingConfig message or plain object to encode + * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * @param message Feature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer. + * Decodes a Feature message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredictRequestResponseLoggingConfig + * @returns Feature * @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.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature; /** - * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer, length delimited. + * Decodes a Feature message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredictRequestResponseLoggingConfig + * @returns Feature * @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.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature; /** - * Verifies a PredictRequestResponseLoggingConfig message. + * Verifies a Feature 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 PredictRequestResponseLoggingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Feature message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredictRequestResponseLoggingConfig + * @returns Feature */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature; /** - * Creates a plain object from a PredictRequestResponseLoggingConfig message. Also converts values to other types if specified. - * @param message PredictRequestResponseLoggingConfig + * Creates a plain object from a Feature message. Also converts values to other types if specified. + * @param message Feature * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictRequestResponseLoggingConfig to JSON. + * Converts this Feature to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredictRequestResponseLoggingConfig + * Gets the default type url for Feature * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents an EndpointService */ - class EndpointService extends $protobuf.rpc.Service { - - /** - * Constructs a new EndpointService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new EndpointService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EndpointService; - - /** - * Calls CreateEndpoint. - * @param request CreateEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpointCallback): void; - - /** - * Calls CreateEndpoint. - * @param request CreateEndpointRequest message or plain object - * @returns Promise - */ - public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): Promise; + namespace Feature { - /** - * Calls GetEndpoint. - * @param request GetEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Endpoint - */ - public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.GetEndpointCallback): void; + /** Properties of a MonitoringStatsAnomaly. */ + interface IMonitoringStatsAnomaly { - /** - * Calls GetEndpoint. - * @param request GetEndpointRequest message or plain object - * @returns Promise - */ - public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): Promise; + /** MonitoringStatsAnomaly objective */ + objective?: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null); - /** - * Calls ListEndpoints. - * @param request ListEndpointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEndpointsResponse - */ - public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.ListEndpointsCallback): void; + /** MonitoringStatsAnomaly featureStatsAnomaly */ + featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + } - /** - * Calls ListEndpoints. - * @param request ListEndpointsRequest message or plain object - * @returns Promise - */ - public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): Promise; + /** Represents a MonitoringStatsAnomaly. */ + class MonitoringStatsAnomaly implements IMonitoringStatsAnomaly { - /** - * Calls UpdateEndpoint. - * @param request UpdateEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Endpoint - */ - public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointCallback): void; + /** + * Constructs a new MonitoringStatsAnomaly. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly); - /** - * Calls UpdateEndpoint. - * @param request UpdateEndpointRequest message or plain object - * @returns Promise - */ - public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): Promise; + /** MonitoringStatsAnomaly objective. */ + public objective: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective); - /** - * Calls DeleteEndpoint. - * @param request DeleteEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpointCallback): void; + /** MonitoringStatsAnomaly featureStatsAnomaly. */ + public featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - /** - * Calls DeleteEndpoint. - * @param request DeleteEndpointRequest message or plain object - * @returns Promise - */ - public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): Promise; + /** + * Creates a new MonitoringStatsAnomaly instance using the specified properties. + * @param [properties] Properties to set + * @returns MonitoringStatsAnomaly instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - /** - * Calls DeployModel. - * @param request DeployModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeployModelCallback): void; + /** + * Encodes the specified MonitoringStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. + * @param message MonitoringStatsAnomaly message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls DeployModel. - * @param request DeployModelRequest message or plain object - * @returns Promise - */ - public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest): Promise; + /** + * Encodes the specified MonitoringStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. + * @param message MonitoringStatsAnomaly message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls UndeployModel. - * @param request UndeployModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback): void; + /** + * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MonitoringStatsAnomaly + * @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.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - /** - * Calls UndeployModel. - * @param request UndeployModelRequest message or plain object - * @returns Promise - */ - public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): Promise; - } + /** + * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MonitoringStatsAnomaly + * @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.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - namespace EndpointService { + /** + * Verifies a MonitoringStatsAnomaly 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); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|createEndpoint}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Creates a MonitoringStatsAnomaly message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MonitoringStatsAnomaly + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|getEndpoint}. - * @param error Error, if any - * @param [response] Endpoint - */ - type GetEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; + /** + * Creates a plain object from a MonitoringStatsAnomaly message. Also converts values to other types if specified. + * @param message MonitoringStatsAnomaly + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|listEndpoints}. - * @param error Error, if any - * @param [response] ListEndpointsResponse - */ - type ListEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEndpointsResponse) => void; + /** + * Converts this MonitoringStatsAnomaly to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|updateEndpoint}. - * @param error Error, if any - * @param [response] Endpoint - */ - type UpdateEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; + /** + * Gets the default type url for MonitoringStatsAnomaly + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|deleteEndpoint}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + namespace MonitoringStatsAnomaly { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|deployModel}. - * @param error Error, if any - * @param [response] Operation - */ - type DeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Objective enum. */ + enum Objective { + OBJECTIVE_UNSPECIFIED = 0, + IMPORT_FEATURE_ANALYSIS = 1, + SNAPSHOT_ANALYSIS = 2 + } + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|undeployModel}. - * @param error Error, if any - * @param [response] Operation - */ - type UndeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ValueType enum. */ + enum ValueType { + VALUE_TYPE_UNSPECIFIED = 0, + BOOL = 1, + BOOL_ARRAY = 2, + DOUBLE = 3, + DOUBLE_ARRAY = 4, + INT64 = 9, + INT64_ARRAY = 10, + STRING = 11, + STRING_ARRAY = 12, + BYTES = 13 + } } - /** Properties of a CreateEndpointRequest. */ - interface ICreateEndpointRequest { - - /** CreateEndpointRequest parent */ - parent?: (string|null); - - /** CreateEndpointRequest endpoint */ - endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** Properties of an IdMatcher. */ + interface IIdMatcher { - /** CreateEndpointRequest endpointId */ - endpointId?: (string|null); + /** IdMatcher ids */ + ids?: (string[]|null); } - /** Represents a CreateEndpointRequest. */ - class CreateEndpointRequest implements ICreateEndpointRequest { + /** Represents an IdMatcher. */ + class IdMatcher implements IIdMatcher { /** - * Constructs a new CreateEndpointRequest. + * Constructs a new IdMatcher. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest); - - /** CreateEndpointRequest parent. */ - public parent: string; - - /** CreateEndpointRequest endpoint. */ - public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher); - /** CreateEndpointRequest endpointId. */ - public endpointId: string; + /** IdMatcher ids. */ + public ids: string[]; /** - * Creates a new CreateEndpointRequest instance using the specified properties. + * Creates a new IdMatcher instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEndpointRequest instance + * @returns IdMatcher instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Encodes the specified CreateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. - * @param message CreateEndpointRequest message or plain object to encode + * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. + * @param message IdMatcher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. - * @param message CreateEndpointRequest message or plain object to encode + * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. + * @param message IdMatcher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEndpointRequest message from the specified reader or buffer. + * Decodes an IdMatcher message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEndpointRequest + * @returns IdMatcher * @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.aiplatform.v1beta1.CreateEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Decodes a CreateEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes an IdMatcher message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEndpointRequest + * @returns IdMatcher * @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.aiplatform.v1beta1.CreateEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Verifies a CreateEndpointRequest message. + * Verifies an IdMatcher 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 CreateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEndpointRequest + * @returns IdMatcher */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Creates a plain object from a CreateEndpointRequest message. Also converts values to other types if specified. - * @param message CreateEndpointRequest + * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. + * @param message IdMatcher * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEndpointRequest to JSON. + * Converts this IdMatcher to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEndpointRequest + * Gets the default type url for IdMatcher * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateEndpointOperationMetadata. */ - interface ICreateEndpointOperationMetadata { + /** Properties of a FeatureSelector. */ + interface IFeatureSelector { - /** CreateEndpointOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** FeatureSelector idMatcher */ + idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); } - /** Represents a CreateEndpointOperationMetadata. */ - class CreateEndpointOperationMetadata implements ICreateEndpointOperationMetadata { + /** Represents a FeatureSelector. */ + class FeatureSelector implements IFeatureSelector { /** - * Constructs a new CreateEndpointOperationMetadata. + * Constructs a new FeatureSelector. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector); - /** CreateEndpointOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** FeatureSelector idMatcher. */ + public idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); /** - * Creates a new CreateEndpointOperationMetadata instance using the specified properties. + * Creates a new FeatureSelector instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEndpointOperationMetadata instance + * @returns FeatureSelector instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Encodes the specified CreateEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. - * @param message CreateEndpointOperationMetadata message or plain object to encode + * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. + * @param message FeatureSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. - * @param message CreateEndpointOperationMetadata message or plain object to encode + * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. + * @param message FeatureSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. + * Decodes a FeatureSelector message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEndpointOperationMetadata + * @returns FeatureSelector * @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.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEndpointOperationMetadata + * @returns FeatureSelector * @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.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Verifies a CreateEndpointOperationMetadata message. + * Verifies a FeatureSelector 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 CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEndpointOperationMetadata + * @returns FeatureSelector */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Creates a plain object from a CreateEndpointOperationMetadata message. Also converts values to other types if specified. - * @param message CreateEndpointOperationMetadata + * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. + * @param message FeatureSelector * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEndpointOperationMetadata to JSON. + * Converts this FeatureSelector to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEndpointOperationMetadata + * Gets the default type url for FeatureSelector * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEndpointRequest. */ - interface IGetEndpointRequest { + /** Properties of a Featurestore. */ + interface IFeaturestore { - /** GetEndpointRequest name */ + /** Featurestore name */ name?: (string|null); + + /** Featurestore createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore etag */ + etag?: (string|null); + + /** Featurestore labels */ + labels?: ({ [k: string]: string }|null); + + /** Featurestore onlineServingConfig */ + onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + + /** Featurestore state */ + state?: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State|null); + + /** Featurestore onlineStorageTtlDays */ + onlineStorageTtlDays?: (number|null); + + /** Featurestore encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a GetEndpointRequest. */ - class GetEndpointRequest implements IGetEndpointRequest { + /** Represents a Featurestore. */ + class Featurestore implements IFeaturestore { /** - * Constructs a new GetEndpointRequest. + * Constructs a new Featurestore. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore); - /** GetEndpointRequest name. */ + /** Featurestore name. */ public name: string; + /** Featurestore createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore etag. */ + public etag: string; + + /** Featurestore labels. */ + public labels: { [k: string]: string }; + + /** Featurestore onlineServingConfig. */ + public onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + + /** Featurestore state. */ + public state: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State); + + /** Featurestore onlineStorageTtlDays. */ + public onlineStorageTtlDays: number; + + /** Featurestore encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** - * Creates a new GetEndpointRequest instance using the specified properties. + * Creates a new Featurestore instance using the specified properties. * @param [properties] Properties to set - * @returns GetEndpointRequest instance + * @returns Featurestore instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. - * @param message GetEndpointRequest message or plain object to encode + * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. + * @param message Featurestore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. - * @param message GetEndpointRequest message or plain object to encode + * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. + * @param message Featurestore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer. + * Decodes a Featurestore message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEndpointRequest + * @returns Featurestore * @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.aiplatform.v1beta1.GetEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a Featurestore message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEndpointRequest + * @returns Featurestore * @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.aiplatform.v1beta1.GetEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Verifies a GetEndpointRequest message. + * Verifies a Featurestore 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 GetEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetEndpointRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + /** + * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Featurestore + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore; + + /** + * Creates a plain object from a Featurestore message. Also converts values to other types if specified. + * @param message Featurestore + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Featurestore to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Featurestore + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Featurestore { + + /** Properties of an OnlineServingConfig. */ + interface IOnlineServingConfig { + + /** OnlineServingConfig fixedNodeCount */ + fixedNodeCount?: (number|null); + + /** OnlineServingConfig scaling */ + scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); + } + + /** Represents an OnlineServingConfig. */ + class OnlineServingConfig implements IOnlineServingConfig { + + /** + * Constructs a new OnlineServingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig); + + /** OnlineServingConfig fixedNodeCount. */ + public fixedNodeCount: number; + + /** OnlineServingConfig scaling. */ + public scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); + + /** + * Creates a new OnlineServingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns OnlineServingConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @param message OnlineServingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @param message OnlineServingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OnlineServingConfig + * @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.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OnlineServingConfig + * @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.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Verifies an OnlineServingConfig 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 an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OnlineServingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. + * @param message OnlineServingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OnlineServingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OnlineServingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace OnlineServingConfig { + + /** Properties of a Scaling. */ + interface IScaling { + + /** Scaling minNodeCount */ + minNodeCount?: (number|null); + + /** Scaling maxNodeCount */ + maxNodeCount?: (number|null); + } + + /** Represents a Scaling. */ + class Scaling implements IScaling { - /** - * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified. - * @param message GetEndpointRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new Scaling. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling); - /** - * Converts this GetEndpointRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Scaling minNodeCount. */ + public minNodeCount: number; - /** - * Gets the default type url for GetEndpointRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Scaling maxNodeCount. */ + public maxNodeCount: number; - /** Properties of a ListEndpointsRequest. */ - interface IListEndpointsRequest { + /** + * Creates a new Scaling instance using the specified properties. + * @param [properties] Properties to set + * @returns Scaling instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; - /** ListEndpointsRequest parent */ - parent?: (string|null); + /** + * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @param message Scaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListEndpointsRequest filter */ - filter?: (string|null); + /** + * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @param message Scaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListEndpointsRequest pageSize */ - pageSize?: (number|null); + /** + * Decodes a Scaling message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Scaling + * @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.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; - /** ListEndpointsRequest pageToken */ - pageToken?: (string|null); + /** + * Decodes a Scaling message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Scaling + * @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.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; - /** ListEndpointsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** + * Verifies a Scaling 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); - /** Represents a ListEndpointsRequest. */ - class ListEndpointsRequest implements IListEndpointsRequest { + /** + * Creates a Scaling message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Scaling + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; - /** - * Constructs a new ListEndpointsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest); + /** + * Creates a plain object from a Scaling message. Also converts values to other types if specified. + * @param message Scaling + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListEndpointsRequest parent. */ - public parent: string; + /** + * Converts this Scaling to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListEndpointsRequest filter. */ - public filter: string; + /** + * Gets the default type url for Scaling + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** ListEndpointsRequest pageSize. */ - public pageSize: number; + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + STABLE = 1, + UPDATING = 2 + } + } - /** ListEndpointsRequest pageToken. */ - public pageToken: string; + /** Represents a FeaturestoreOnlineServingService */ + class FeaturestoreOnlineServingService extends $protobuf.rpc.Service { - /** ListEndpointsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Constructs a new FeaturestoreOnlineServingService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ListEndpointsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListEndpointsRequest instance + * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; /** - * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. - * @param message ListEndpointsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; /** - * Encodes the specified ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. - * @param message ListEndpointsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): Promise; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListEndpointsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback): void; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListEndpointsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): Promise; /** - * Verifies a ListEndpointsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls WriteFeatureValues. + * @param request WriteFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WriteFeatureValuesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public writeFeatureValues(request: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValuesCallback): void; /** - * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListEndpointsRequest + * Calls WriteFeatureValues. + * @param request WriteFeatureValuesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public writeFeatureValues(request: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest): Promise; + } + + namespace FeaturestoreOnlineServingService { /** - * Creates a plain object from a ListEndpointsRequest message. Also converts values to other types if specified. - * @param message ListEndpointsRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|readFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; /** - * Converts this ListEndpointsRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|streamingReadFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public toJSON(): { [k: string]: any }; + type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; /** - * Gets the default type url for ListEndpointsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|writeFeatureValues}. + * @param error Error, if any + * @param [response] WriteFeatureValuesResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type WriteFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse) => void; } - /** Properties of a ListEndpointsResponse. */ - interface IListEndpointsResponse { + /** Properties of a WriteFeatureValuesRequest. */ + interface IWriteFeatureValuesRequest { - /** ListEndpointsResponse endpoints */ - endpoints?: (google.cloud.aiplatform.v1beta1.IEndpoint[]|null); + /** WriteFeatureValuesRequest entityType */ + entityType?: (string|null); - /** ListEndpointsResponse nextPageToken */ - nextPageToken?: (string|null); + /** WriteFeatureValuesRequest payloads */ + payloads?: (google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload[]|null); } - /** Represents a ListEndpointsResponse. */ - class ListEndpointsResponse implements IListEndpointsResponse { + /** Represents a WriteFeatureValuesRequest. */ + class WriteFeatureValuesRequest implements IWriteFeatureValuesRequest { /** - * Constructs a new ListEndpointsResponse. + * Constructs a new WriteFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest); - /** ListEndpointsResponse endpoints. */ - public endpoints: google.cloud.aiplatform.v1beta1.IEndpoint[]; + /** WriteFeatureValuesRequest entityType. */ + public entityType: string; - /** ListEndpointsResponse nextPageToken. */ - public nextPageToken: string; + /** WriteFeatureValuesRequest payloads. */ + public payloads: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload[]; /** - * Creates a new ListEndpointsResponse instance using the specified properties. + * Creates a new WriteFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEndpointsResponse instance + * @returns WriteFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; /** - * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. - * @param message ListEndpointsResponse message or plain object to encode + * Encodes the specified WriteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.verify|verify} messages. + * @param message WriteFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. - * @param message ListEndpointsResponse message or plain object to encode + * Encodes the specified WriteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.verify|verify} messages. + * @param message WriteFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer. + * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEndpointsResponse + * @returns WriteFeatureValuesRequest * @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.aiplatform.v1beta1.ListEndpointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEndpointsResponse + * @returns WriteFeatureValuesRequest * @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.aiplatform.v1beta1.ListEndpointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; /** - * Verifies a ListEndpointsResponse message. + * Verifies a WriteFeatureValuesRequest 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 ListEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEndpointsResponse + * @returns WriteFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; /** - * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified. - * @param message ListEndpointsResponse + * Creates a plain object from a WriteFeatureValuesRequest message. Also converts values to other types if specified. + * @param message WriteFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEndpointsResponse to JSON. + * Converts this WriteFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEndpointsResponse + * Gets the default type url for WriteFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateEndpointRequest. */ - interface IUpdateEndpointRequest { + /** Properties of a WriteFeatureValuesPayload. */ + interface IWriteFeatureValuesPayload { - /** UpdateEndpointRequest endpoint */ - endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** WriteFeatureValuesPayload entityId */ + entityId?: (string|null); - /** UpdateEndpointRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** WriteFeatureValuesPayload featureValues */ + featureValues?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IFeatureValue }|null); } - /** Represents an UpdateEndpointRequest. */ - class UpdateEndpointRequest implements IUpdateEndpointRequest { + /** Represents a WriteFeatureValuesPayload. */ + class WriteFeatureValuesPayload implements IWriteFeatureValuesPayload { /** - * Constructs a new UpdateEndpointRequest. + * Constructs a new WriteFeatureValuesPayload. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload); - /** UpdateEndpointRequest endpoint. */ - public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** WriteFeatureValuesPayload entityId. */ + public entityId: string; - /** UpdateEndpointRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** WriteFeatureValuesPayload featureValues. */ + public featureValues: { [k: string]: google.cloud.aiplatform.v1beta1.IFeatureValue }; /** - * Creates a new UpdateEndpointRequest instance using the specified properties. + * Creates a new WriteFeatureValuesPayload instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEndpointRequest instance + * @returns WriteFeatureValuesPayload instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; /** - * Encodes the specified UpdateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. - * @param message UpdateEndpointRequest message or plain object to encode + * Encodes the specified WriteFeatureValuesPayload message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.verify|verify} messages. + * @param message WriteFeatureValuesPayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. - * @param message UpdateEndpointRequest message or plain object to encode + * Encodes the specified WriteFeatureValuesPayload message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.verify|verify} messages. + * @param message WriteFeatureValuesPayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer. + * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEndpointRequest + * @returns WriteFeatureValuesPayload * @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.aiplatform.v1beta1.UpdateEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEndpointRequest + * @returns WriteFeatureValuesPayload * @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.aiplatform.v1beta1.UpdateEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; /** - * Verifies an UpdateEndpointRequest message. + * Verifies a WriteFeatureValuesPayload 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 an UpdateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesPayload message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEndpointRequest + * @returns WriteFeatureValuesPayload */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; /** - * Creates a plain object from an UpdateEndpointRequest message. Also converts values to other types if specified. - * @param message UpdateEndpointRequest + * Creates a plain object from a WriteFeatureValuesPayload message. Also converts values to other types if specified. + * @param message WriteFeatureValuesPayload * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEndpointRequest to JSON. + * Converts this WriteFeatureValuesPayload to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateEndpointRequest + * Gets the default type url for WriteFeatureValuesPayload * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteEndpointRequest. */ - interface IDeleteEndpointRequest { - - /** DeleteEndpointRequest name */ - name?: (string|null); + /** Properties of a WriteFeatureValuesResponse. */ + interface IWriteFeatureValuesResponse { } - /** Represents a DeleteEndpointRequest. */ - class DeleteEndpointRequest implements IDeleteEndpointRequest { + /** Represents a WriteFeatureValuesResponse. */ + class WriteFeatureValuesResponse implements IWriteFeatureValuesResponse { /** - * Constructs a new DeleteEndpointRequest. + * Constructs a new WriteFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest); - - /** DeleteEndpointRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse); /** - * Creates a new DeleteEndpointRequest instance using the specified properties. + * Creates a new WriteFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEndpointRequest instance + * @returns WriteFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; /** - * Encodes the specified DeleteEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. - * @param message DeleteEndpointRequest message or plain object to encode + * Encodes the specified WriteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.verify|verify} messages. + * @param message WriteFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. - * @param message DeleteEndpointRequest message or plain object to encode + * Encodes the specified WriteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.verify|verify} messages. + * @param message WriteFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer. + * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEndpointRequest + * @returns WriteFeatureValuesResponse * @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.aiplatform.v1beta1.DeleteEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEndpointRequest + * @returns WriteFeatureValuesResponse * @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.aiplatform.v1beta1.DeleteEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; /** - * Verifies a DeleteEndpointRequest message. + * Verifies a WriteFeatureValuesResponse 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 DeleteEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEndpointRequest + * @returns WriteFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; /** - * Creates a plain object from a DeleteEndpointRequest message. Also converts values to other types if specified. - * @param message DeleteEndpointRequest + * Creates a plain object from a WriteFeatureValuesResponse message. Also converts values to other types if specified. + * @param message WriteFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEndpointRequest to JSON. + * Converts this WriteFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteEndpointRequest + * Gets the default type url for WriteFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployModelRequest. */ - interface IDeployModelRequest { + /** Properties of a ReadFeatureValuesRequest. */ + interface IReadFeatureValuesRequest { - /** DeployModelRequest endpoint */ - endpoint?: (string|null); + /** ReadFeatureValuesRequest entityType */ + entityType?: (string|null); - /** DeployModelRequest deployedModel */ - deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** ReadFeatureValuesRequest entityId */ + entityId?: (string|null); - /** DeployModelRequest trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); + /** ReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); } - /** Represents a DeployModelRequest. */ - class DeployModelRequest implements IDeployModelRequest { + /** Represents a ReadFeatureValuesRequest. */ + class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { /** - * Constructs a new DeployModelRequest. + * Constructs a new ReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest); - /** DeployModelRequest endpoint. */ - public endpoint: string; + /** ReadFeatureValuesRequest entityType. */ + public entityType: string; - /** DeployModelRequest deployedModel. */ - public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** ReadFeatureValuesRequest entityId. */ + public entityId: string; - /** DeployModelRequest trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** ReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); /** - * Creates a new DeployModelRequest instance using the specified properties. + * Creates a new ReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelRequest instance + * @returns ReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest): google.cloud.aiplatform.v1beta1.DeployModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. - * @param message DeployModelRequest message or plain object to encode + * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. + * @param message ReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. - * @param message DeployModelRequest message or plain object to encode + * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. + * @param message ReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelRequest message from the specified reader or buffer. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployModelRequest + * @returns ReadFeatureValuesRequest * @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.aiplatform.v1beta1.DeployModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployModelRequest + * @returns ReadFeatureValuesRequest * @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.aiplatform.v1beta1.DeployModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Verifies a DeployModelRequest message. + * Verifies a ReadFeatureValuesRequest 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 DeployModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployModelRequest + * @returns ReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified. - * @param message DeployModelRequest + * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ReadFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelRequest to JSON. + * Converts this ReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployModelRequest + * Gets the default type url for ReadFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployModelResponse. */ - interface IDeployModelResponse { + /** Properties of a ReadFeatureValuesResponse. */ + interface IReadFeatureValuesResponse { - /** DeployModelResponse deployedModel */ - deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** ReadFeatureValuesResponse header */ + header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + + /** ReadFeatureValuesResponse entityView */ + entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); } - /** Represents a DeployModelResponse. */ - class DeployModelResponse implements IDeployModelResponse { + /** Represents a ReadFeatureValuesResponse. */ + class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { /** - * Constructs a new DeployModelResponse. + * Constructs a new ReadFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse); - /** DeployModelResponse deployedModel. */ - public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** ReadFeatureValuesResponse header. */ + public header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + + /** ReadFeatureValuesResponse entityView. */ + public entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); /** - * Creates a new DeployModelResponse instance using the specified properties. + * Creates a new ReadFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelResponse instance + * @returns ReadFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. - * @param message DeployModelResponse message or plain object to encode + * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. + * @param message ReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. - * @param message DeployModelResponse message or plain object to encode + * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. + * @param message ReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelResponse message from the specified reader or buffer. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployModelResponse + * @returns ReadFeatureValuesResponse * @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.aiplatform.v1beta1.DeployModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployModelResponse + * @returns ReadFeatureValuesResponse * @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.aiplatform.v1beta1.DeployModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Verifies a DeployModelResponse message. + * Verifies a ReadFeatureValuesResponse 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 DeployModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployModelResponse + * @returns ReadFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Creates a plain object from a DeployModelResponse message. Also converts values to other types if specified. - * @param message DeployModelResponse + * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ReadFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelResponse to JSON. + * Converts this ReadFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for DeployModelResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for ReadFeatureValuesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReadFeatureValuesResponse { + + /** Properties of a FeatureDescriptor. */ + interface IFeatureDescriptor { + + /** FeatureDescriptor id */ + id?: (string|null); + } + + /** Represents a FeatureDescriptor. */ + class FeatureDescriptor implements IFeatureDescriptor { + + /** + * Constructs a new FeatureDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor); + + /** FeatureDescriptor id. */ + public id: string; + + /** + * Creates a new FeatureDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureDescriptor instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @param message FeatureDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @param message FeatureDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureDescriptor + * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureDescriptor + * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Verifies a FeatureDescriptor 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 FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. + * @param message FeatureDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Header. */ + interface IHeader { + + /** Header entityType */ + entityType?: (string|null); + + /** Header featureDescriptors */ + featureDescriptors?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); + } + + /** Represents a Header. */ + class Header implements IHeader { + + /** + * Constructs a new Header. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader); + + /** Header entityType. */ + public entityType: string; + + /** Header featureDescriptors. */ + public featureDescriptors: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]; + + /** + * Creates a new Header instance using the specified properties. + * @param [properties] Properties to set + * @returns Header instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + + /** + * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Header message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Header + * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Header + * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + + /** + * Verifies a Header 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 Header message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Header + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @param message Header + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Header to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Header + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EntityView. */ + interface IEntityView { + + /** EntityView entityId */ + entityId?: (string|null); + + /** EntityView data */ + data?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]|null); + } + + /** Represents an EntityView. */ + class EntityView implements IEntityView { + + /** + * Constructs a new EntityView. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView); + + /** EntityView entityId. */ + public entityId: string; + + /** EntityView data. */ + public data: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]; + + /** + * Creates a new EntityView instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityView instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + + /** + * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @param message EntityView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @param message EntityView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EntityView message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityView + * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + + /** + * Decodes an EntityView message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityView + * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + + /** + * Verifies an EntityView 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 an EntityView message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityView + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + + /** + * Creates a plain object from an EntityView message. Also converts values to other types if specified. + * @param message EntityView + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EntityView to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EntityView + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EntityView { + + /** Properties of a Data. */ + interface IData { + + /** Data value */ + value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); + + /** Data values */ + values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); + } + + /** Represents a Data. */ + class Data implements IData { + + /** + * Constructs a new Data. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData); + + /** Data value. */ + public value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); + + /** Data values. */ + public values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); + + /** Data data. */ + public data?: ("value"|"values"); + + /** + * Creates a new Data instance using the specified properties. + * @param [properties] Properties to set + * @returns Data instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @param message Data message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @param message Data message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Data message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Data + * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Decodes a Data message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Data + * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Verifies a Data 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 Data message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Data + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @param message Data + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Data to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Data + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } - /** Properties of a DeployModelOperationMetadata. */ - interface IDeployModelOperationMetadata { + /** Properties of a StreamingReadFeatureValuesRequest. */ + interface IStreamingReadFeatureValuesRequest { - /** DeployModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** StreamingReadFeatureValuesRequest entityType */ + entityType?: (string|null); + + /** StreamingReadFeatureValuesRequest entityIds */ + entityIds?: (string[]|null); + + /** StreamingReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); } - /** Represents a DeployModelOperationMetadata. */ - class DeployModelOperationMetadata implements IDeployModelOperationMetadata { + /** Represents a StreamingReadFeatureValuesRequest. */ + class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { /** - * Constructs a new DeployModelOperationMetadata. + * Constructs a new StreamingReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest); - /** DeployModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** StreamingReadFeatureValuesRequest entityType. */ + public entityType: string; + + /** StreamingReadFeatureValuesRequest entityIds. */ + public entityIds: string[]; + + /** StreamingReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); /** - * Creates a new DeployModelOperationMetadata instance using the specified properties. + * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelOperationMetadata instance + * @returns StreamingReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. - * @param message DeployModelOperationMetadata message or plain object to encode + * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * @param message StreamingReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. - * @param message DeployModelOperationMetadata message or plain object to encode + * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * @param message StreamingReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployModelOperationMetadata + * @returns StreamingReadFeatureValuesRequest * @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.aiplatform.v1beta1.DeployModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployModelOperationMetadata + * @returns StreamingReadFeatureValuesRequest * @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.aiplatform.v1beta1.DeployModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Verifies a DeployModelOperationMetadata message. + * Verifies a StreamingReadFeatureValuesRequest 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 DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployModelOperationMetadata + * @returns StreamingReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified. - * @param message DeployModelOperationMetadata + * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message StreamingReadFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelOperationMetadata to JSON. + * Converts this StreamingReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployModelOperationMetadata + * Gets the default type url for StreamingReadFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployModelRequest. */ - interface IUndeployModelRequest { + /** Properties of a FeatureValue. */ + interface IFeatureValue { - /** UndeployModelRequest endpoint */ - endpoint?: (string|null); + /** FeatureValue boolValue */ + boolValue?: (boolean|null); - /** UndeployModelRequest deployedModelId */ - deployedModelId?: (string|null); + /** FeatureValue doubleValue */ + doubleValue?: (number|null); - /** UndeployModelRequest trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); + /** FeatureValue int64Value */ + int64Value?: (number|Long|string|null); + + /** FeatureValue stringValue */ + stringValue?: (string|null); + + /** FeatureValue boolArrayValue */ + boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + + /** FeatureValue doubleArrayValue */ + doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + + /** FeatureValue int64ArrayValue */ + int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + + /** FeatureValue stringArrayValue */ + stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + + /** FeatureValue bytesValue */ + bytesValue?: (Uint8Array|string|null); + + /** FeatureValue metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); } - /** Represents an UndeployModelRequest. */ - class UndeployModelRequest implements IUndeployModelRequest { + /** Represents a FeatureValue. */ + class FeatureValue implements IFeatureValue { /** - * Constructs a new UndeployModelRequest. + * Constructs a new FeatureValue. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue); - /** UndeployModelRequest endpoint. */ - public endpoint: string; + /** FeatureValue boolValue. */ + public boolValue?: (boolean|null); - /** UndeployModelRequest deployedModelId. */ - public deployedModelId: string; + /** FeatureValue doubleValue. */ + public doubleValue?: (number|null); - /** UndeployModelRequest trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** FeatureValue int64Value. */ + public int64Value?: (number|Long|string|null); + + /** FeatureValue stringValue. */ + public stringValue?: (string|null); + + /** FeatureValue boolArrayValue. */ + public boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + + /** FeatureValue doubleArrayValue. */ + public doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + + /** FeatureValue int64ArrayValue. */ + public int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + + /** FeatureValue stringArrayValue. */ + public stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + + /** FeatureValue bytesValue. */ + public bytesValue?: (Uint8Array|string|null); + + /** FeatureValue metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + + /** FeatureValue value. */ + public value?: ("boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"); /** - * Creates a new UndeployModelRequest instance using the specified properties. + * Creates a new FeatureValue instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelRequest instance + * @returns FeatureValue instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. - * @param message UndeployModelRequest message or plain object to encode + * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. + * @param message FeatureValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. - * @param message UndeployModelRequest message or plain object to encode + * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. + * @param message FeatureValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelRequest message from the specified reader or buffer. + * Decodes a FeatureValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployModelRequest + * @returns FeatureValue * @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.aiplatform.v1beta1.UndeployModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployModelRequest + * @returns FeatureValue * @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.aiplatform.v1beta1.UndeployModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Verifies an UndeployModelRequest message. + * Verifies a FeatureValue 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 an UndeployModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployModelRequest + * @returns FeatureValue */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified. - * @param message UndeployModelRequest + * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. + * @param message FeatureValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelRequest to JSON. + * Converts this FeatureValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployModelRequest + * Gets the default type url for FeatureValue * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployModelResponse. */ - interface IUndeployModelResponse { + namespace FeatureValue { + + /** Properties of a Metadata. */ + interface IMetadata { + + /** Metadata generateTime */ + generateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Metadata. */ + class Metadata implements IMetadata { + + /** + * Constructs a new Metadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata); + + /** Metadata generateTime. */ + public generateTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new Metadata instance using the specified properties. + * @param [properties] Properties to set + * @returns Metadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metadata + * @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.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Decodes a Metadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metadata + * @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.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Verifies a Metadata 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 Metadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @param message Metadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Metadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents an UndeployModelResponse. */ - class UndeployModelResponse implements IUndeployModelResponse { + /** Properties of a FeatureValueList. */ + interface IFeatureValueList { + + /** FeatureValueList values */ + values?: (google.cloud.aiplatform.v1beta1.IFeatureValue[]|null); + } + + /** Represents a FeatureValueList. */ + class FeatureValueList implements IFeatureValueList { /** - * Constructs a new UndeployModelResponse. + * Constructs a new FeatureValueList. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList); + + /** FeatureValueList values. */ + public values: google.cloud.aiplatform.v1beta1.IFeatureValue[]; /** - * Creates a new UndeployModelResponse instance using the specified properties. + * Creates a new FeatureValueList instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelResponse instance + * @returns FeatureValueList instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. - * @param message UndeployModelResponse message or plain object to encode + * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. + * @param message FeatureValueList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. - * @param message UndeployModelResponse message or plain object to encode + * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. + * @param message FeatureValueList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelResponse message from the specified reader or buffer. + * Decodes a FeatureValueList message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployModelResponse + * @returns FeatureValueList * @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.aiplatform.v1beta1.UndeployModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployModelResponse + * @returns FeatureValueList * @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.aiplatform.v1beta1.UndeployModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Verifies an UndeployModelResponse message. + * Verifies a FeatureValueList 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 an UndeployModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployModelResponse + * @returns FeatureValueList */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Creates a plain object from an UndeployModelResponse message. Also converts values to other types if specified. - * @param message UndeployModelResponse + * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. + * @param message FeatureValueList * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelResponse to JSON. + * Converts this FeatureValueList to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployModelResponse + * Gets the default type url for FeatureValueList * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployModelOperationMetadata. */ - interface IUndeployModelOperationMetadata { + /** Properties of a BoolArray. */ + interface IBoolArray { - /** UndeployModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** BoolArray values */ + values?: (boolean[]|null); } - /** Represents an UndeployModelOperationMetadata. */ - class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata { + /** Represents a BoolArray. */ + class BoolArray implements IBoolArray { /** - * Constructs a new UndeployModelOperationMetadata. + * Constructs a new BoolArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBoolArray); - /** UndeployModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** BoolArray values. */ + public values: boolean[]; /** - * Creates a new UndeployModelOperationMetadata instance using the specified properties. + * Creates a new BoolArray instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelOperationMetadata instance + * @returns BoolArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBoolArray): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. - * @param message UndeployModelOperationMetadata message or plain object to encode + * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. + * @param message BoolArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. - * @param message UndeployModelOperationMetadata message or plain object to encode + * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. + * @param message BoolArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. + * Decodes a BoolArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployModelOperationMetadata + * @returns BoolArray * @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.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a BoolArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployModelOperationMetadata + * @returns BoolArray * @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.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Verifies an UndeployModelOperationMetadata message. + * Verifies a BoolArray 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 an UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployModelOperationMetadata + * @returns BoolArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified. - * @param message UndeployModelOperationMetadata + * Creates a plain object from a BoolArray message. Also converts values to other types if specified. + * @param message BoolArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelOperationMetadata to JSON. + * Converts this BoolArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployModelOperationMetadata + * Gets the default type url for BoolArray * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EntityType. */ - interface IEntityType { - - /** EntityType name */ - name?: (string|null); - - /** EntityType description */ - description?: (string|null); - - /** EntityType createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** EntityType updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** EntityType labels */ - labels?: ({ [k: string]: string }|null); - - /** EntityType etag */ - etag?: (string|null); - - /** EntityType monitoringConfig */ - monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); - - /** EntityType offlineStorageTtlDays */ - offlineStorageTtlDays?: (number|null); - } - - /** Represents an EntityType. */ - class EntityType implements IEntityType { - - /** - * Constructs a new EntityType. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityType); - - /** EntityType name. */ - public name: string; - - /** EntityType description. */ - public description: string; - - /** EntityType createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** EntityType updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a DoubleArray. */ + interface IDoubleArray { - /** EntityType labels. */ - public labels: { [k: string]: string }; + /** DoubleArray values */ + values?: (number[]|null); + } - /** EntityType etag. */ - public etag: string; + /** Represents a DoubleArray. */ + class DoubleArray implements IDoubleArray { - /** EntityType monitoringConfig. */ - public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** + * Constructs a new DoubleArray. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray); - /** EntityType offlineStorageTtlDays. */ - public offlineStorageTtlDays: number; + /** DoubleArray values. */ + public values: number[]; /** - * Creates a new EntityType instance using the specified properties. + * Creates a new DoubleArray instance using the specified properties. * @param [properties] Properties to set - * @returns EntityType instance + * @returns DoubleArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityType): google.cloud.aiplatform.v1beta1.EntityType; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. + * @param message DoubleArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. + * @param message DoubleArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes a DoubleArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityType + * @returns DoubleArray * @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.aiplatform.v1beta1.EntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes a DoubleArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityType + * @returns DoubleArray * @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.aiplatform.v1beta1.EntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Verifies an EntityType message. + * Verifies a DoubleArray 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 an EntityType message from a plain object. Also converts values to their respective internal types. + * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityType + * @returns DoubleArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. - * @param message EntityType + * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. + * @param message DoubleArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityType to JSON. + * Converts this DoubleArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EntityType + * Gets the default type url for DoubleArray * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeaturestoreMonitoringConfig. */ - interface IFeaturestoreMonitoringConfig { - - /** FeaturestoreMonitoringConfig snapshotAnalysis */ - snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - - /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ - importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - - /** FeaturestoreMonitoringConfig numericalThresholdConfig */ - numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** Properties of an Int64Array. */ + interface IInt64Array { - /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ - categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** Int64Array values */ + values?: ((number|Long|string)[]|null); } - /** Represents a FeaturestoreMonitoringConfig. */ - class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { + /** Represents an Int64Array. */ + class Int64Array implements IInt64Array { /** - * Constructs a new FeaturestoreMonitoringConfig. + * Constructs a new Int64Array. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig); - - /** FeaturestoreMonitoringConfig snapshotAnalysis. */ - public snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - - /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ - public importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - - /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ - public numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IInt64Array); - /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ - public categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** Int64Array values. */ + public values: (number|Long|string)[]; /** - * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. + * Creates a new Int64Array instance using the specified properties. * @param [properties] Properties to set - * @returns FeaturestoreMonitoringConfig instance + * @returns Int64Array instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IInt64Array): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. - * @param message FeaturestoreMonitoringConfig message or plain object to encode + * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. + * @param message Int64Array message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. - * @param message FeaturestoreMonitoringConfig message or plain object to encode + * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. + * @param message Int64Array message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. + * Decodes an Int64Array message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeaturestoreMonitoringConfig + * @returns Int64Array * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. + * Decodes an Int64Array message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeaturestoreMonitoringConfig + * @returns Int64Array * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Verifies a FeaturestoreMonitoringConfig message. + * Verifies an Int64Array 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 FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeaturestoreMonitoringConfig + * @returns Int64Array */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. - * @param message FeaturestoreMonitoringConfig + * Creates a plain object from an Int64Array message. Also converts values to other types if specified. + * @param message Int64Array * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Int64Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeaturestoreMonitoringConfig to JSON. + * Converts this Int64Array to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeaturestoreMonitoringConfig + * Gets the default type url for Int64Array * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace FeaturestoreMonitoringConfig { - - /** Properties of a SnapshotAnalysis. */ - interface ISnapshotAnalysis { - - /** SnapshotAnalysis disabled */ - disabled?: (boolean|null); - - /** SnapshotAnalysis monitoringInterval */ - monitoringInterval?: (google.protobuf.IDuration|null); - - /** SnapshotAnalysis monitoringIntervalDays */ - monitoringIntervalDays?: (number|null); - - /** SnapshotAnalysis stalenessDays */ - stalenessDays?: (number|null); - } - - /** Represents a SnapshotAnalysis. */ - class SnapshotAnalysis implements ISnapshotAnalysis { - - /** - * Constructs a new SnapshotAnalysis. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); - - /** SnapshotAnalysis disabled. */ - public disabled: boolean; - - /** SnapshotAnalysis monitoringInterval. */ - public monitoringInterval?: (google.protobuf.IDuration|null); - - /** SnapshotAnalysis monitoringIntervalDays. */ - public monitoringIntervalDays: number; - - /** SnapshotAnalysis stalenessDays. */ - public stalenessDays: number; - - /** - * Creates a new SnapshotAnalysis instance using the specified properties. - * @param [properties] Properties to set - * @returns SnapshotAnalysis instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @param message SnapshotAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @param message SnapshotAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnapshotAnalysis - * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotAnalysis - * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Verifies a SnapshotAnalysis 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 SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnapshotAnalysis - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. - * @param message SnapshotAnalysis - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SnapshotAnalysis to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SnapshotAnalysis - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ImportFeaturesAnalysis. */ - interface IImportFeaturesAnalysis { - - /** ImportFeaturesAnalysis state */ - state?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null); - - /** ImportFeaturesAnalysis anomalyDetectionBaseline */ - anomalyDetectionBaseline?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null); - } - - /** Represents an ImportFeaturesAnalysis. */ - class ImportFeaturesAnalysis implements IImportFeaturesAnalysis { - - /** - * Constructs a new ImportFeaturesAnalysis. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis); - - /** ImportFeaturesAnalysis state. */ - public state: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State); - - /** ImportFeaturesAnalysis anomalyDetectionBaseline. */ - public anomalyDetectionBaseline: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline); - - /** - * Creates a new ImportFeaturesAnalysis instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportFeaturesAnalysis instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @param message ImportFeaturesAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @param message ImportFeaturesAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportFeaturesAnalysis - * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportFeaturesAnalysis - * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Verifies an ImportFeaturesAnalysis 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 an ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportFeaturesAnalysis - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Creates a plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. - * @param message ImportFeaturesAnalysis - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImportFeaturesAnalysis to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ImportFeaturesAnalysis - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ImportFeaturesAnalysis { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DEFAULT = 1, - ENABLED = 2, - DISABLED = 3 - } - - /** Baseline enum. */ - enum Baseline { - BASELINE_UNSPECIFIED = 0, - LATEST_STATS = 1, - MOST_RECENT_SNAPSHOT_STATS = 2, - PREVIOUS_IMPORT_FEATURES_STATS = 3 - } - } - - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { - - /** ThresholdConfig value */ - value?: (number|null); - } - - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { - - /** - * Constructs a new ThresholdConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig); - - /** ThresholdConfig value. */ - public value?: (number|null); - - /** ThresholdConfig threshold. */ - public threshold?: "value"; - - /** - * Creates a new ThresholdConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ThresholdConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - - /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ThresholdConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ThresholdConfig - * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - - /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ThresholdConfig - * @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.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - - /** - * Verifies a ThresholdConfig 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 ThresholdConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ThresholdConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - - /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ThresholdConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ThresholdConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of an Event. */ - interface IEvent { - - /** Event artifact */ - artifact?: (string|null); - - /** Event execution */ - execution?: (string|null); - - /** Event eventTime */ - eventTime?: (google.protobuf.ITimestamp|null); + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Event type */ - type?: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type|null); + /** Properties of a StringArray. */ + interface IStringArray { - /** Event labels */ - labels?: ({ [k: string]: string }|null); + /** StringArray values */ + values?: (string[]|null); } - /** Represents an Event. */ - class Event implements IEvent { + /** Represents a StringArray. */ + class StringArray implements IStringArray { /** - * Constructs a new Event. + * Constructs a new StringArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEvent); - - /** Event artifact. */ - public artifact: string; - - /** Event execution. */ - public execution: string; - - /** Event eventTime. */ - public eventTime?: (google.protobuf.ITimestamp|null); - - /** Event type. */ - public type: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStringArray); - /** Event labels. */ - public labels: { [k: string]: string }; + /** StringArray values. */ + public values: string[]; /** - * Creates a new Event instance using the specified properties. + * Creates a new StringArray instance using the specified properties. * @param [properties] Properties to set - * @returns Event instance + * @returns StringArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEvent): google.cloud.aiplatform.v1beta1.Event; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStringArray): google.cloud.aiplatform.v1beta1.StringArray; /** - * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. + * @param message StringArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. + * @param message StringArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a StringArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Event + * @returns StringArray * @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.aiplatform.v1beta1.Event; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StringArray; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a StringArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Event + * @returns StringArray * @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.aiplatform.v1beta1.Event; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StringArray; /** - * Verifies an Event message. + * Verifies a StringArray 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 an Event message from a plain object. Also converts values to their respective internal types. + * Creates a StringArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Event + * @returns StringArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Event; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StringArray; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. - * @param message Event + * Creates a plain object from a StringArray message. Also converts values to other types if specified. + * @param message StringArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Event to JSON. + * Converts this StringArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Event + * Gets the default type url for StringArray * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Event { - - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - INPUT = 1, - OUTPUT = 2 - } - } - - /** Properties of an Execution. */ - interface IExecution { - - /** Execution name */ - name?: (string|null); - - /** Execution displayName */ - displayName?: (string|null); - - /** Execution state */ - state?: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State|null); - - /** Execution etag */ - etag?: (string|null); - - /** Execution labels */ - labels?: ({ [k: string]: string }|null); - - /** Execution createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Execution updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Execution schemaTitle */ - schemaTitle?: (string|null); - - /** Execution schemaVersion */ - schemaVersion?: (string|null); - - /** Execution metadata */ - metadata?: (google.protobuf.IStruct|null); - - /** Execution description */ - description?: (string|null); - } - - /** Represents an Execution. */ - class Execution implements IExecution { + /** Represents a FeaturestoreService */ + class FeaturestoreService extends $protobuf.rpc.Service { /** - * Constructs a new Execution. - * @param [properties] Properties to set + * Constructs a new FeaturestoreService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExecution); - - /** Execution name. */ - public name: string; - - /** Execution displayName. */ - public displayName: string; - - /** Execution state. */ - public state: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State); - - /** Execution etag. */ - public etag: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Execution labels. */ - public labels: { [k: string]: string }; + /** + * Creates new FeaturestoreService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreService; - /** Execution createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback): void; - /** Execution updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @returns Promise + */ + public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): Promise; - /** Execution schemaTitle. */ - public schemaTitle: string; + /** + * Calls GetFeaturestore. + * @param request GetFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Featurestore + */ + public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestoreCallback): void; - /** Execution schemaVersion. */ - public schemaVersion: string; + /** + * Calls GetFeaturestore. + * @param request GetFeaturestoreRequest message or plain object + * @returns Promise + */ + public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): Promise; - /** Execution metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** + * Calls ListFeaturestores. + * @param request ListFeaturestoresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeaturestoresResponse + */ + public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestoresCallback): void; - /** Execution description. */ - public description: string; + /** + * Calls ListFeaturestores. + * @param request ListFeaturestoresRequest message or plain object + * @returns Promise + */ + public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): Promise; /** - * Creates a new Execution instance using the specified properties. - * @param [properties] Properties to set - * @returns Execution instance + * Calls UpdateFeaturestore. + * @param request UpdateFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExecution): google.cloud.aiplatform.v1beta1.Execution; + public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestoreCallback): void; /** - * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. - * @param message Execution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateFeaturestore. + * @param request UpdateFeaturestoreRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): Promise; /** - * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. - * @param message Execution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback): void; /** - * Decodes an Execution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Execution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Execution; + public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): Promise; /** - * Decodes an Execution message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Execution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Execution; + public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback): void; /** - * Verifies an Execution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): Promise; /** - * Creates an Execution message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Execution + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Execution; + public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback): void; /** - * Creates a plain object from an Execution message. Also converts values to other types if specified. - * @param message Execution - * @param [options] Conversion options - * @returns Plain object + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): Promise; /** - * Converts this Execution to JSON. - * @returns JSON object + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse */ - public toJSON(): { [k: string]: any }; + public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback): void; /** - * Gets the default type url for Execution - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): Promise; - namespace Execution { + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType + */ + public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityTypeCallback): void; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - NEW = 1, - RUNNING = 2, - COMPLETE = 3, - FAILED = 4, - CACHED = 5, - CANCELLED = 6 - } - } + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @returns Promise + */ + public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): Promise; - /** Properties of a Feature. */ - interface IFeature { + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityTypeCallback): void; - /** Feature name */ - name?: (string|null); + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @returns Promise + */ + public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): Promise; - /** Feature description */ - description?: (string|null); + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeatureCallback): void; - /** Feature valueType */ - valueType?: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType|null); + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @returns Promise + */ + public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): Promise; - /** Feature createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls BatchCreateFeatures. + * @param request BatchCreateFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeaturesCallback): void; - /** Feature updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls BatchCreateFeatures. + * @param request BatchCreateFeaturesRequest message or plain object + * @returns Promise + */ + public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): Promise; - /** Feature labels */ - labels?: ({ [k: string]: string }|null); + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Feature + */ + public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeatureCallback): void; - /** Feature etag */ - etag?: (string|null); + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @returns Promise + */ + public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): Promise; - /** Feature monitoringConfig */ - monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse + */ + public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturesCallback): void; - /** Feature disableMonitoring */ - disableMonitoring?: (boolean|null); + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @returns Promise + */ + public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): Promise; - /** Feature monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Feature + */ + public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback): void; - /** Feature monitoringStatsAnomalies */ - monitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]|null); - } + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @returns Promise + */ + public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): Promise; - /** Represents a Feature. */ - class Feature implements IFeature { + /** + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback): void; /** - * Constructs a new Feature. - * @param [properties] Properties to set + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeature); + public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): Promise; - /** Feature name. */ - public name: string; + /** + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback): void; - /** Feature description. */ - public description: string; + /** + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @returns Promise + */ + public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): Promise; - /** Feature valueType. */ - public valueType: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType); + /** + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback): void; - /** Feature createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @returns Promise + */ + public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): Promise; - /** Feature updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback): void; - /** Feature labels. */ - public labels: { [k: string]: string }; + /** + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @returns Promise + */ + public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): Promise; - /** Feature etag. */ - public etag: string; + /** + * Calls DeleteFeatureValues. + * @param request DeleteFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeatureValues(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValuesCallback): void; - /** Feature monitoringConfig. */ - public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** + * Calls DeleteFeatureValues. + * @param request DeleteFeatureValuesRequest message or plain object + * @returns Promise + */ + public deleteFeatureValues(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest): Promise; - /** Feature disableMonitoring. */ - public disableMonitoring: boolean; + /** + * Calls SearchFeatures. + * @param request SearchFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchFeaturesResponse + */ + public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeaturesCallback): void; - /** Feature monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + /** + * Calls SearchFeatures. + * @param request SearchFeaturesRequest message or plain object + * @returns Promise + */ + public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): Promise; + } - /** Feature monitoringStatsAnomalies. */ - public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; + namespace FeaturestoreService { /** - * Creates a new Feature instance using the specified properties. - * @param [properties] Properties to set - * @returns Feature instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createFeaturestore}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeature): google.cloud.aiplatform.v1beta1.Feature; + type CreateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. - * @param message Feature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getFeaturestore}. + * @param error Error, if any + * @param [response] Featurestore */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + type GetFeaturestoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Featurestore) => void; /** - * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. - * @param message Feature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listFeaturestores}. + * @param error Error, if any + * @param [response] ListFeaturestoresResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + type ListFeaturestoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) => void; /** - * Decodes a Feature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Feature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateFeaturestore}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature; + type UpdateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a Feature message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Feature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeaturestore}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature; + type DeleteFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies a Feature message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createEntityType}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type CreateEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a Feature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Feature + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature; + type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; /** - * Creates a plain object from a Feature message. Also converts values to other types if specified. - * @param message Feature - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listEntityTypes}. + * @param error Error, if any + * @param [response] ListEntityTypesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) => void; /** - * Converts this Feature to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public toJSON(): { [k: string]: any }; + type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; /** - * Gets the default type url for Feature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteEntityType}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Feature { - - /** Properties of a MonitoringStatsAnomaly. */ - interface IMonitoringStatsAnomaly { - - /** MonitoringStatsAnomaly objective */ - objective?: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null); - - /** MonitoringStatsAnomaly featureStatsAnomaly */ - featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - } - - /** Represents a MonitoringStatsAnomaly. */ - class MonitoringStatsAnomaly implements IMonitoringStatsAnomaly { - - /** - * Constructs a new MonitoringStatsAnomaly. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly); - - /** MonitoringStatsAnomaly objective. */ - public objective: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective); - - /** MonitoringStatsAnomaly featureStatsAnomaly. */ - public featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** - * Creates a new MonitoringStatsAnomaly instance using the specified properties. - * @param [properties] Properties to set - * @returns MonitoringStatsAnomaly instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Encodes the specified MonitoringStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. - * @param message MonitoringStatsAnomaly message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MonitoringStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. - * @param message MonitoringStatsAnomaly message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MonitoringStatsAnomaly - * @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.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MonitoringStatsAnomaly - * @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.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Verifies a MonitoringStatsAnomaly 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 MonitoringStatsAnomaly message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MonitoringStatsAnomaly - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Creates a plain object from a MonitoringStatsAnomaly message. Also converts values to other types if specified. - * @param message MonitoringStatsAnomaly - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MonitoringStatsAnomaly to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MonitoringStatsAnomaly - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MonitoringStatsAnomaly { - - /** Objective enum. */ - enum Objective { - OBJECTIVE_UNSPECIFIED = 0, - IMPORT_FEATURE_ANALYSIS = 1, - SNAPSHOT_ANALYSIS = 2 - } - } - - /** ValueType enum. */ - enum ValueType { - VALUE_TYPE_UNSPECIFIED = 0, - BOOL = 1, - BOOL_ARRAY = 2, - DOUBLE = 3, - DOUBLE_ARRAY = 4, - INT64 = 9, - INT64_ARRAY = 10, - STRING = 11, - STRING_ARRAY = 12, - BYTES = 13 - } - } - - /** Properties of an IdMatcher. */ - interface IIdMatcher { - - /** IdMatcher ids */ - ids?: (string[]|null); - } - - /** Represents an IdMatcher. */ - class IdMatcher implements IIdMatcher { + type DeleteEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Constructs a new IdMatcher. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createFeature}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher); - - /** IdMatcher ids. */ - public ids: string[]; + type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a new IdMatcher instance using the specified properties. - * @param [properties] Properties to set - * @returns IdMatcher instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|batchCreateFeatures}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher): google.cloud.aiplatform.v1beta1.IdMatcher; + type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. - * @param message IdMatcher message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getFeature}. + * @param error Error, if any + * @param [response] Feature */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; /** - * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. - * @param message IdMatcher message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listFeatures}. + * @param error Error, if any + * @param [response] ListFeaturesResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturesResponse) => void; /** - * Decodes an IdMatcher message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IdMatcher - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateFeature}. + * @param error Error, if any + * @param [response] Feature */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IdMatcher; + type UpdateFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; /** - * Decodes an IdMatcher message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IdMatcher - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeature}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IdMatcher; + type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies an IdMatcher message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|importFeatureValues}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type ImportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IdMatcher + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|batchReadFeatureValues}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IdMatcher; + type BatchReadFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. - * @param message IdMatcher - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|exportFeatureValues}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this IdMatcher to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeatureValues}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type DeleteFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for IdMatcher - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|searchFeatures}. + * @param error Error, if any + * @param [response] SearchFeaturesResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type SearchFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) => void; } - /** Properties of a FeatureSelector. */ - interface IFeatureSelector { + /** Properties of a CreateFeaturestoreRequest. */ + interface ICreateFeaturestoreRequest { - /** FeatureSelector idMatcher */ - idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); + /** CreateFeaturestoreRequest parent */ + parent?: (string|null); + + /** CreateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + + /** CreateFeaturestoreRequest featurestoreId */ + featurestoreId?: (string|null); } - /** Represents a FeatureSelector. */ - class FeatureSelector implements IFeatureSelector { + /** Represents a CreateFeaturestoreRequest. */ + class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { /** - * Constructs a new FeatureSelector. + * Constructs a new CreateFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest); - /** FeatureSelector idMatcher. */ - public idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); + /** CreateFeaturestoreRequest parent. */ + public parent: string; + + /** CreateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + + /** CreateFeaturestoreRequest featurestoreId. */ + public featurestoreId: string; /** - * Creates a new FeatureSelector instance using the specified properties. + * Creates a new CreateFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureSelector instance + * @returns CreateFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. - * @param message FeatureSelector message or plain object to encode + * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. + * @param message CreateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. - * @param message FeatureSelector message or plain object to encode + * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. + * @param message CreateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureSelector message from the specified reader or buffer. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureSelector + * @returns CreateFeaturestoreRequest * @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.aiplatform.v1beta1.FeatureSelector; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureSelector + * @returns CreateFeaturestoreRequest * @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.aiplatform.v1beta1.FeatureSelector; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Verifies a FeatureSelector message. + * Verifies a CreateFeaturestoreRequest 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 FeatureSelector message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureSelector + * @returns CreateFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. - * @param message FeatureSelector + * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. + * @param message CreateFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureSelector to JSON. + * Converts this CreateFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureSelector + * Gets the default type url for CreateFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Featurestore. */ - interface IFeaturestore { + /** Properties of a GetFeaturestoreRequest. */ + interface IGetFeaturestoreRequest { - /** Featurestore name */ + /** GetFeaturestoreRequest name */ name?: (string|null); - - /** Featurestore createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Featurestore updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Featurestore etag */ - etag?: (string|null); - - /** Featurestore labels */ - labels?: ({ [k: string]: string }|null); - - /** Featurestore onlineServingConfig */ - onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); - - /** Featurestore state */ - state?: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State|null); - - /** Featurestore onlineStorageTtlDays */ - onlineStorageTtlDays?: (number|null); - - /** Featurestore encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a Featurestore. */ - class Featurestore implements IFeaturestore { + /** Represents a GetFeaturestoreRequest. */ + class GetFeaturestoreRequest implements IGetFeaturestoreRequest { /** - * Constructs a new Featurestore. + * Constructs a new GetFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest); - /** Featurestore name. */ + /** GetFeaturestoreRequest name. */ public name: string; - /** Featurestore createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Featurestore updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Featurestore etag. */ - public etag: string; - - /** Featurestore labels. */ - public labels: { [k: string]: string }; - - /** Featurestore onlineServingConfig. */ - public onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); - - /** Featurestore state. */ - public state: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State); - - /** Featurestore onlineStorageTtlDays. */ - public onlineStorageTtlDays: number; - - /** Featurestore encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** - * Creates a new Featurestore instance using the specified properties. + * Creates a new GetFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Featurestore instance + * @returns GetFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore): google.cloud.aiplatform.v1beta1.Featurestore; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. - * @param message Featurestore message or plain object to encode + * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. + * @param message GetFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. - * @param message Featurestore message or plain object to encode + * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. + * @param message GetFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Featurestore message from the specified reader or buffer. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Featurestore + * @returns GetFeaturestoreRequest * @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.aiplatform.v1beta1.Featurestore; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Decodes a Featurestore message from the specified reader or buffer, length delimited. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Featurestore + * @returns GetFeaturestoreRequest * @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.aiplatform.v1beta1.Featurestore; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Verifies a Featurestore message. + * Verifies a GetFeaturestoreRequest 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 Featurestore message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Featurestore + * @returns GetFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Creates a plain object from a Featurestore message. Also converts values to other types if specified. - * @param message Featurestore + * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. + * @param message GetFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Featurestore to JSON. + * Converts this GetFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Featurestore + * Gets the default type url for GetFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Featurestore { - - /** Properties of an OnlineServingConfig. */ - interface IOnlineServingConfig { - - /** OnlineServingConfig fixedNodeCount */ - fixedNodeCount?: (number|null); - - /** OnlineServingConfig scaling */ - scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); - } - - /** Represents an OnlineServingConfig. */ - class OnlineServingConfig implements IOnlineServingConfig { - - /** - * Constructs a new OnlineServingConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig); - - /** OnlineServingConfig fixedNodeCount. */ - public fixedNodeCount: number; - - /** OnlineServingConfig scaling. */ - public scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); - - /** - * Creates a new OnlineServingConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns OnlineServingConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; - - /** - * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. - * @param message OnlineServingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. - * @param message OnlineServingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OnlineServingConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OnlineServingConfig - * @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.aiplatform.v1beta1.Featurestore.OnlineServingConfig; - - /** - * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OnlineServingConfig - * @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.aiplatform.v1beta1.Featurestore.OnlineServingConfig; - - /** - * Verifies an OnlineServingConfig 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 an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OnlineServingConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; - - /** - * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. - * @param message OnlineServingConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this OnlineServingConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for OnlineServingConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace OnlineServingConfig { - - /** Properties of a Scaling. */ - interface IScaling { - - /** Scaling minNodeCount */ - minNodeCount?: (number|null); - - /** Scaling maxNodeCount */ - maxNodeCount?: (number|null); - } - - /** Represents a Scaling. */ - class Scaling implements IScaling { - - /** - * Constructs a new Scaling. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling); - - /** Scaling minNodeCount. */ - public minNodeCount: number; + /** Properties of a ListFeaturestoresRequest. */ + interface IListFeaturestoresRequest { - /** Scaling maxNodeCount. */ - public maxNodeCount: number; + /** ListFeaturestoresRequest parent */ + parent?: (string|null); - /** - * Creates a new Scaling instance using the specified properties. - * @param [properties] Properties to set - * @returns Scaling instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + /** ListFeaturestoresRequest filter */ + filter?: (string|null); - /** - * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @param message Scaling message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListFeaturestoresRequest pageSize */ + pageSize?: (number|null); - /** - * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @param message Scaling message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListFeaturestoresRequest pageToken */ + pageToken?: (string|null); - /** - * Decodes a Scaling message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Scaling - * @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.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + /** ListFeaturestoresRequest orderBy */ + orderBy?: (string|null); - /** - * Decodes a Scaling message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Scaling - * @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.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + /** ListFeaturestoresRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** - * Verifies a Scaling 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); + /** Represents a ListFeaturestoresRequest. */ + class ListFeaturestoresRequest implements IListFeaturestoresRequest { - /** - * Creates a Scaling message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Scaling - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + /** + * Constructs a new ListFeaturestoresRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest); - /** - * Creates a plain object from a Scaling message. Also converts values to other types if specified. - * @param message Scaling - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListFeaturestoresRequest parent. */ + public parent: string; - /** - * Converts this Scaling to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListFeaturestoresRequest filter. */ + public filter: string; - /** - * Gets the default type url for Scaling - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ListFeaturestoresRequest pageSize. */ + public pageSize: number; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - STABLE = 1, - UPDATING = 2 - } - } + /** ListFeaturestoresRequest pageToken. */ + public pageToken: string; - /** Represents a FeaturestoreOnlineServingService */ - class FeaturestoreOnlineServingService extends $protobuf.rpc.Service { + /** ListFeaturestoresRequest orderBy. */ + public orderBy: string; - /** - * Constructs a new FeaturestoreOnlineServingService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ListFeaturestoresRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new ListFeaturestoresRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeaturestoresRequest instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Calls ReadFeatureValues. - * @param request ReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. + * @param message ListFeaturestoresRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ReadFeatureValues. - * @param request ReadFeatureValuesRequest message or plain object - * @returns Promise + * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. + * @param message ListFeaturestoresRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeaturestoresRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object - * @returns Promise + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeaturestoresRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Calls WriteFeatureValues. - * @param request WriteFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WriteFeatureValuesResponse + * Verifies a ListFeaturestoresRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public writeFeatureValues(request: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValuesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls WriteFeatureValues. - * @param request WriteFeatureValuesRequest message or plain object - * @returns Promise + * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeaturestoresRequest */ - public writeFeatureValues(request: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest): Promise; - } - - namespace FeaturestoreOnlineServingService { + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|readFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. + * @param message ListFeaturestoresRequest + * @param [options] Conversion options + * @returns Plain object */ - type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|streamingReadFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * Converts this ListFeaturestoresRequest to JSON. + * @returns JSON object */ - type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|writeFeatureValues}. - * @param error Error, if any - * @param [response] WriteFeatureValuesResponse + * Gets the default type url for ListFeaturestoresRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type WriteFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteFeatureValuesRequest. */ - interface IWriteFeatureValuesRequest { + /** Properties of a ListFeaturestoresResponse. */ + interface IListFeaturestoresResponse { - /** WriteFeatureValuesRequest entityType */ - entityType?: (string|null); + /** ListFeaturestoresResponse featurestores */ + featurestores?: (google.cloud.aiplatform.v1beta1.IFeaturestore[]|null); - /** WriteFeatureValuesRequest payloads */ - payloads?: (google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload[]|null); + /** ListFeaturestoresResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a WriteFeatureValuesRequest. */ - class WriteFeatureValuesRequest implements IWriteFeatureValuesRequest { + /** Represents a ListFeaturestoresResponse. */ + class ListFeaturestoresResponse implements IListFeaturestoresResponse { /** - * Constructs a new WriteFeatureValuesRequest. + * Constructs a new ListFeaturestoresResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse); - /** WriteFeatureValuesRequest entityType. */ - public entityType: string; + /** ListFeaturestoresResponse featurestores. */ + public featurestores: google.cloud.aiplatform.v1beta1.IFeaturestore[]; - /** WriteFeatureValuesRequest payloads. */ - public payloads: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload[]; + /** ListFeaturestoresResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new WriteFeatureValuesRequest instance using the specified properties. + * Creates a new ListFeaturestoresResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFeatureValuesRequest instance + * @returns ListFeaturestoresResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Encodes the specified WriteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.verify|verify} messages. - * @param message WriteFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. + * @param message ListFeaturestoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.verify|verify} messages. - * @param message WriteFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. + * @param message ListFeaturestoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFeatureValuesRequest + * @returns ListFeaturestoresResponse * @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.aiplatform.v1beta1.WriteFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFeatureValuesRequest + * @returns ListFeaturestoresResponse * @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.aiplatform.v1beta1.WriteFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Verifies a WriteFeatureValuesRequest message. + * Verifies a ListFeaturestoresResponse 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 WriteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFeatureValuesRequest + * @returns ListFeaturestoresResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Creates a plain object from a WriteFeatureValuesRequest message. Also converts values to other types if specified. - * @param message WriteFeatureValuesRequest + * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. + * @param message ListFeaturestoresResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFeatureValuesRequest to JSON. + * Converts this ListFeaturestoresResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFeatureValuesRequest + * Gets the default type url for ListFeaturestoresResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteFeatureValuesPayload. */ - interface IWriteFeatureValuesPayload { + /** Properties of an UpdateFeaturestoreRequest. */ + interface IUpdateFeaturestoreRequest { - /** WriteFeatureValuesPayload entityId */ - entityId?: (string|null); + /** UpdateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** WriteFeatureValuesPayload featureValues */ - featureValues?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IFeatureValue }|null); + /** UpdateFeaturestoreRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a WriteFeatureValuesPayload. */ - class WriteFeatureValuesPayload implements IWriteFeatureValuesPayload { + /** Represents an UpdateFeaturestoreRequest. */ + class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { /** - * Constructs a new WriteFeatureValuesPayload. + * Constructs a new UpdateFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest); - /** WriteFeatureValuesPayload entityId. */ - public entityId: string; + /** UpdateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** WriteFeatureValuesPayload featureValues. */ - public featureValues: { [k: string]: google.cloud.aiplatform.v1beta1.IFeatureValue }; + /** UpdateFeaturestoreRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new WriteFeatureValuesPayload instance using the specified properties. + * Creates a new UpdateFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFeatureValuesPayload instance + * @returns UpdateFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Encodes the specified WriteFeatureValuesPayload message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.verify|verify} messages. - * @param message WriteFeatureValuesPayload message or plain object to encode + * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. + * @param message UpdateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFeatureValuesPayload message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.verify|verify} messages. - * @param message WriteFeatureValuesPayload message or plain object to encode + * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. + * @param message UpdateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer. + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFeatureValuesPayload + * @returns UpdateFeaturestoreRequest * @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.aiplatform.v1beta1.WriteFeatureValuesPayload; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFeatureValuesPayload + * @returns UpdateFeaturestoreRequest * @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.aiplatform.v1beta1.WriteFeatureValuesPayload; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Verifies a WriteFeatureValuesPayload message. + * Verifies an UpdateFeaturestoreRequest 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 WriteFeatureValuesPayload message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFeatureValuesPayload + * @returns UpdateFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Creates a plain object from a WriteFeatureValuesPayload message. Also converts values to other types if specified. - * @param message WriteFeatureValuesPayload + * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. + * @param message UpdateFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFeatureValuesPayload to JSON. + * Converts this UpdateFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFeatureValuesPayload + * Gets the default type url for UpdateFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteFeatureValuesResponse. */ - interface IWriteFeatureValuesResponse { + /** Properties of a DeleteFeaturestoreRequest. */ + interface IDeleteFeaturestoreRequest { + + /** DeleteFeaturestoreRequest name */ + name?: (string|null); + + /** DeleteFeaturestoreRequest force */ + force?: (boolean|null); } - /** Represents a WriteFeatureValuesResponse. */ - class WriteFeatureValuesResponse implements IWriteFeatureValuesResponse { + /** Represents a DeleteFeaturestoreRequest. */ + class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { /** - * Constructs a new WriteFeatureValuesResponse. + * Constructs a new DeleteFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest); + + /** DeleteFeaturestoreRequest name. */ + public name: string; + + /** DeleteFeaturestoreRequest force. */ + public force: boolean; /** - * Creates a new WriteFeatureValuesResponse instance using the specified properties. + * Creates a new DeleteFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFeatureValuesResponse instance + * @returns DeleteFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Encodes the specified WriteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.verify|verify} messages. - * @param message WriteFeatureValuesResponse message or plain object to encode + * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. + * @param message DeleteFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.verify|verify} messages. - * @param message WriteFeatureValuesResponse message or plain object to encode + * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. + * @param message DeleteFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFeatureValuesResponse + * @returns DeleteFeaturestoreRequest * @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.aiplatform.v1beta1.WriteFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFeatureValuesResponse + * @returns DeleteFeaturestoreRequest * @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.aiplatform.v1beta1.WriteFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Verifies a WriteFeatureValuesResponse message. + * Verifies a DeleteFeaturestoreRequest 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 WriteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFeatureValuesResponse + * @returns DeleteFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Creates a plain object from a WriteFeatureValuesResponse message. Also converts values to other types if specified. - * @param message WriteFeatureValuesResponse + * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. + * @param message DeleteFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFeatureValuesResponse to JSON. + * Converts this DeleteFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFeatureValuesResponse + * Gets the default type url for DeleteFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadFeatureValuesRequest. */ - interface IReadFeatureValuesRequest { + /** Properties of an ImportFeatureValuesRequest. */ + interface IImportFeatureValuesRequest { - /** ReadFeatureValuesRequest entityType */ + /** ImportFeatureValuesRequest avroSource */ + avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); + + /** ImportFeatureValuesRequest bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** ImportFeatureValuesRequest csvSource */ + csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** ImportFeatureValuesRequest featureTimeField */ + featureTimeField?: (string|null); + + /** ImportFeatureValuesRequest featureTime */ + featureTime?: (google.protobuf.ITimestamp|null); + + /** ImportFeatureValuesRequest entityType */ entityType?: (string|null); - /** ReadFeatureValuesRequest entityId */ - entityId?: (string|null); + /** ImportFeatureValuesRequest entityIdField */ + entityIdField?: (string|null); - /** ReadFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** ImportFeatureValuesRequest featureSpecs */ + featureSpecs?: (google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]|null); + + /** ImportFeatureValuesRequest disableOnlineServing */ + disableOnlineServing?: (boolean|null); + + /** ImportFeatureValuesRequest workerCount */ + workerCount?: (number|null); + + /** ImportFeatureValuesRequest disableIngestionAnalysis */ + disableIngestionAnalysis?: (boolean|null); } - /** Represents a ReadFeatureValuesRequest. */ - class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { + /** Represents an ImportFeatureValuesRequest. */ + class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { /** - * Constructs a new ReadFeatureValuesRequest. + * Constructs a new ImportFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest); - /** ReadFeatureValuesRequest entityType. */ + /** ImportFeatureValuesRequest avroSource. */ + public avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); + + /** ImportFeatureValuesRequest bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** ImportFeatureValuesRequest csvSource. */ + public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** ImportFeatureValuesRequest featureTimeField. */ + public featureTimeField?: (string|null); + + /** ImportFeatureValuesRequest featureTime. */ + public featureTime?: (google.protobuf.ITimestamp|null); + + /** ImportFeatureValuesRequest entityType. */ public entityType: string; - /** ReadFeatureValuesRequest entityId. */ - public entityId: string; + /** ImportFeatureValuesRequest entityIdField. */ + public entityIdField: string; - /** ReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** ImportFeatureValuesRequest featureSpecs. */ + public featureSpecs: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]; + + /** ImportFeatureValuesRequest disableOnlineServing. */ + public disableOnlineServing: boolean; + + /** ImportFeatureValuesRequest workerCount. */ + public workerCount: number; + + /** ImportFeatureValuesRequest disableIngestionAnalysis. */ + public disableIngestionAnalysis: boolean; + + /** ImportFeatureValuesRequest source. */ + public source?: ("avroSource"|"bigquerySource"|"csvSource"); + + /** ImportFeatureValuesRequest featureTimeSource. */ + public featureTimeSource?: ("featureTimeField"|"featureTime"); /** - * Creates a new ReadFeatureValuesRequest instance using the specified properties. + * Creates a new ImportFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesRequest instance + * @returns ImportFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. - * @param message ReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. + * @param message ImportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. - * @param message ReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. + * @param message ImportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFeatureValuesRequest + * @returns ImportFeatureValuesRequest * @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.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFeatureValuesRequest + * @returns ImportFeatureValuesRequest * @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.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Verifies a ReadFeatureValuesRequest message. + * Verifies an ImportFeatureValuesRequest 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 ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFeatureValuesRequest + * @returns ImportFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ReadFeatureValuesRequest + * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ImportFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesRequest to JSON. + * Converts this ImportFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadFeatureValuesRequest + * Gets the default type url for ImportFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadFeatureValuesResponse. */ - interface IReadFeatureValuesResponse { + namespace ImportFeatureValuesRequest { - /** ReadFeatureValuesResponse header */ - header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + /** Properties of a FeatureSpec. */ + interface IFeatureSpec { - /** ReadFeatureValuesResponse entityView */ - entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); + /** FeatureSpec id */ + id?: (string|null); + + /** FeatureSpec sourceField */ + sourceField?: (string|null); + } + + /** Represents a FeatureSpec. */ + class FeatureSpec implements IFeatureSpec { + + /** + * Constructs a new FeatureSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec); + + /** FeatureSpec id. */ + public id: string; + + /** FeatureSpec sourceField. */ + public sourceField: string; + + /** + * Creates a new FeatureSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; + + /** + * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @param message FeatureSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @param message FeatureSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSpec + * @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.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; + + /** + * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSpec + * @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.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; + + /** + * Verifies a FeatureSpec 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 FeatureSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; + + /** + * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. + * @param message FeatureSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ReadFeatureValuesResponse. */ - class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { + /** Properties of an ImportFeatureValuesResponse. */ + interface IImportFeatureValuesResponse { + + /** ImportFeatureValuesResponse importedEntityCount */ + importedEntityCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse invalidRowCount */ + invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); + } + + /** Represents an ImportFeatureValuesResponse. */ + class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { /** - * Constructs a new ReadFeatureValuesResponse. + * Constructs a new ImportFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse); - /** ReadFeatureValuesResponse header. */ - public header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + /** ImportFeatureValuesResponse importedEntityCount. */ + public importedEntityCount: (number|Long|string); - /** ReadFeatureValuesResponse entityView. */ - public entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); + /** ImportFeatureValuesResponse importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); + + /** ImportFeatureValuesResponse invalidRowCount. */ + public invalidRowCount: (number|Long|string); + + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); /** - * Creates a new ReadFeatureValuesResponse instance using the specified properties. + * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesResponse instance + * @returns ImportFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. - * @param message ReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. + * @param message ImportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. - * @param message ReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. + * @param message ImportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFeatureValuesResponse + * @returns ImportFeatureValuesResponse * @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.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFeatureValuesResponse + * @returns ImportFeatureValuesResponse * @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.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Verifies a ReadFeatureValuesResponse message. + * Verifies an ImportFeatureValuesResponse 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 ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFeatureValuesResponse + * @returns ImportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ReadFeatureValuesResponse + * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ImportFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesResponse to JSON. + * Converts this ImportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadFeatureValuesResponse + * Gets the default type url for ImportFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ReadFeatureValuesResponse { + /** Properties of a BatchReadFeatureValuesRequest. */ + interface IBatchReadFeatureValuesRequest { - /** Properties of a FeatureDescriptor. */ - interface IFeatureDescriptor { + /** BatchReadFeatureValuesRequest csvReadInstances */ + csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - /** FeatureDescriptor id */ - id?: (string|null); - } + /** BatchReadFeatureValuesRequest bigqueryReadInstances */ + bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** Represents a FeatureDescriptor. */ - class FeatureDescriptor implements IFeatureDescriptor { + /** BatchReadFeatureValuesRequest featurestore */ + featurestore?: (string|null); - /** - * Constructs a new FeatureDescriptor. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor); + /** BatchReadFeatureValuesRequest destination */ + destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** FeatureDescriptor id. */ - public id: string; + /** BatchReadFeatureValuesRequest passThroughFields */ + passThroughFields?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]|null); - /** - * Creates a new FeatureDescriptor instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureDescriptor instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + /** BatchReadFeatureValuesRequest entityTypeSpecs */ + entityTypeSpecs?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); - /** - * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @param message FeatureDescriptor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + /** BatchReadFeatureValuesRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); + } - /** - * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @param message FeatureDescriptor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a BatchReadFeatureValuesRequest. */ + class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { - /** - * Decodes a FeatureDescriptor message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureDescriptor - * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + /** + * Constructs a new BatchReadFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest); + + /** BatchReadFeatureValuesRequest csvReadInstances. */ + public csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** BatchReadFeatureValuesRequest bigqueryReadInstances. */ + public bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** BatchReadFeatureValuesRequest featurestore. */ + public featurestore: string; + + /** BatchReadFeatureValuesRequest destination. */ + public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + + /** BatchReadFeatureValuesRequest passThroughFields. */ + public passThroughFields: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]; + + /** BatchReadFeatureValuesRequest entityTypeSpecs. */ + public entityTypeSpecs: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]; + + /** BatchReadFeatureValuesRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** BatchReadFeatureValuesRequest readOption. */ + public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); + + /** + * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchReadFeatureValuesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + + /** + * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. + * @param message BatchReadFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. + * @param message BatchReadFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchReadFeatureValuesRequest + * @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.aiplatform.v1beta1.BatchReadFeatureValuesRequest; - /** - * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureDescriptor - * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + /** + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchReadFeatureValuesRequest + * @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.aiplatform.v1beta1.BatchReadFeatureValuesRequest; - /** - * Verifies a FeatureDescriptor 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); + /** + * Verifies a BatchReadFeatureValuesRequest 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 FeatureDescriptor message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureDescriptor - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + /** + * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchReadFeatureValuesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; - /** - * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. - * @param message FeatureDescriptor - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FeatureDescriptor to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this BatchReadFeatureValuesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FeatureDescriptor - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for BatchReadFeatureValuesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a Header. */ - interface IHeader { + namespace BatchReadFeatureValuesRequest { - /** Header entityType */ - entityType?: (string|null); + /** Properties of a PassThroughField. */ + interface IPassThroughField { - /** Header featureDescriptors */ - featureDescriptors?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); + /** PassThroughField fieldName */ + fieldName?: (string|null); } - /** Represents a Header. */ - class Header implements IHeader { + /** Represents a PassThroughField. */ + class PassThroughField implements IPassThroughField { /** - * Constructs a new Header. + * Constructs a new PassThroughField. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader); - - /** Header entityType. */ - public entityType: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField); - /** Header featureDescriptors. */ - public featureDescriptors: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]; + /** PassThroughField fieldName. */ + public fieldName: string; /** - * Creates a new Header instance using the specified properties. + * Creates a new PassThroughField instance using the specified properties. * @param [properties] Properties to set - * @returns Header instance + * @returns PassThroughField instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @param message PassThroughField message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @param message PassThroughField message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a PassThroughField message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Header + * @returns PassThroughField * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a PassThroughField message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Header + * @returns PassThroughField * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Verifies a Header message. + * Verifies a PassThroughField 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 Header message from a plain object. Also converts values to their respective internal types. + * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Header + * @returns PassThroughField */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. - * @param message Header + * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. + * @param message PassThroughField * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Header to JSON. + * Converts this PassThroughField to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Header + * Gets the default type url for PassThroughField * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EntityView. */ - interface IEntityView { + /** Properties of an EntityTypeSpec. */ + interface IEntityTypeSpec { - /** EntityView entityId */ - entityId?: (string|null); + /** EntityTypeSpec entityTypeId */ + entityTypeId?: (string|null); - /** EntityView data */ - data?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]|null); + /** EntityTypeSpec featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** EntityTypeSpec settings */ + settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); } - /** Represents an EntityView. */ - class EntityView implements IEntityView { + /** Represents an EntityTypeSpec. */ + class EntityTypeSpec implements IEntityTypeSpec { /** - * Constructs a new EntityView. + * Constructs a new EntityTypeSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView); + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec); - /** EntityView entityId. */ - public entityId: string; + /** EntityTypeSpec entityTypeId. */ + public entityTypeId: string; - /** EntityView data. */ - public data: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]; + /** EntityTypeSpec featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** EntityTypeSpec settings. */ + public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; /** - * Creates a new EntityView instance using the specified properties. + * Creates a new EntityTypeSpec instance using the specified properties. * @param [properties] Properties to set - * @returns EntityView instance + * @returns EntityTypeSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @param message EntityView message or plain object to encode + * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @param message EntityTypeSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @param message EntityView message or plain object to encode + * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @param message EntityTypeSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityView message from the specified reader or buffer. + * Decodes an EntityTypeSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityView + * @returns EntityTypeSpec * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Decodes an EntityView message from the specified reader or buffer, length delimited. + * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityView + * @returns EntityTypeSpec * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Verifies an EntityView message. + * Verifies an EntityTypeSpec 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 an EntityView message from a plain object. Also converts values to their respective internal types. + * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityView + * @returns EntityTypeSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Creates a plain object from an EntityView message. Also converts values to other types if specified. - * @param message EntityView + * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. + * @param message EntityTypeSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityView to JSON. + * Converts this EntityTypeSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EntityView + * Gets the default type url for EntityTypeSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace EntityView { - - /** Properties of a Data. */ - interface IData { - - /** Data value */ - value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - - /** Data values */ - values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); - } - - /** Represents a Data. */ - class Data implements IData { - - /** - * Constructs a new Data. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData); - - /** Data value. */ - public value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - - /** Data values. */ - public values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); - - /** Data data. */ - public data?: ("value"|"values"); - - /** - * Creates a new Data instance using the specified properties. - * @param [properties] Properties to set - * @returns Data instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Data message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Data - * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Decodes a Data message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Data - * @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.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Verifies a Data 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 Data message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Data - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Creates a plain object from a Data message. Also converts values to other types if specified. - * @param message Data - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Data to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of an ExportFeatureValuesRequest. */ + interface IExportFeatureValuesRequest { - /** - * Gets the default type url for Data - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** ExportFeatureValuesRequest snapshotExport */ + snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - /** Properties of a StreamingReadFeatureValuesRequest. */ - interface IStreamingReadFeatureValuesRequest { + /** ExportFeatureValuesRequest fullExport */ + fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - /** StreamingReadFeatureValuesRequest entityType */ + /** ExportFeatureValuesRequest entityType */ entityType?: (string|null); - /** StreamingReadFeatureValuesRequest entityIds */ - entityIds?: (string[]|null); + /** ExportFeatureValuesRequest destination */ + destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** StreamingReadFeatureValuesRequest featureSelector */ + /** ExportFeatureValuesRequest featureSelector */ featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - } - - /** Represents a StreamingReadFeatureValuesRequest. */ - class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { - - /** - * Constructs a new StreamingReadFeatureValuesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest); - - /** StreamingReadFeatureValuesRequest entityType. */ - public entityType: string; - - /** StreamingReadFeatureValuesRequest entityIds. */ - public entityIds: string[]; - - /** StreamingReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - /** - * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamingReadFeatureValuesRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; - - /** - * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. - * @param message StreamingReadFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. - * @param message StreamingReadFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamingReadFeatureValuesRequest - * @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.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; - - /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamingReadFeatureValuesRequest - * @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.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; - - /** - * Verifies a StreamingReadFeatureValuesRequest 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 StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamingReadFeatureValuesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; - - /** - * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message StreamingReadFeatureValuesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamingReadFeatureValuesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamingReadFeatureValuesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FeatureValue. */ - interface IFeatureValue { - - /** FeatureValue boolValue */ - boolValue?: (boolean|null); - - /** FeatureValue doubleValue */ - doubleValue?: (number|null); - - /** FeatureValue int64Value */ - int64Value?: (number|Long|string|null); - - /** FeatureValue stringValue */ - stringValue?: (string|null); - - /** FeatureValue boolArrayValue */ - boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); - - /** FeatureValue doubleArrayValue */ - doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); - - /** FeatureValue int64ArrayValue */ - int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); - - /** FeatureValue stringArrayValue */ - stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); - - /** FeatureValue bytesValue */ - bytesValue?: (Uint8Array|string|null); - - /** FeatureValue metadata */ - metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); - } - - /** Represents a FeatureValue. */ - class FeatureValue implements IFeatureValue { - - /** - * Constructs a new FeatureValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue); - - /** FeatureValue boolValue. */ - public boolValue?: (boolean|null); - - /** FeatureValue doubleValue. */ - public doubleValue?: (number|null); + /** ExportFeatureValuesRequest settings */ + settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); + } - /** FeatureValue int64Value. */ - public int64Value?: (number|Long|string|null); + /** Represents an ExportFeatureValuesRequest. */ + class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { - /** FeatureValue stringValue. */ - public stringValue?: (string|null); + /** + * Constructs a new ExportFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest); - /** FeatureValue boolArrayValue. */ - public boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + /** ExportFeatureValuesRequest snapshotExport. */ + public snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - /** FeatureValue doubleArrayValue. */ - public doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + /** ExportFeatureValuesRequest fullExport. */ + public fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - /** FeatureValue int64ArrayValue. */ - public int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + /** ExportFeatureValuesRequest entityType. */ + public entityType: string; - /** FeatureValue stringArrayValue. */ - public stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + /** ExportFeatureValuesRequest destination. */ + public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** FeatureValue bytesValue. */ - public bytesValue?: (Uint8Array|string|null); + /** ExportFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - /** FeatureValue metadata. */ - public metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + /** ExportFeatureValuesRequest settings. */ + public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; - /** FeatureValue value. */ - public value?: ("boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"); + /** ExportFeatureValuesRequest mode. */ + public mode?: ("snapshotExport"|"fullExport"); /** - * Creates a new FeatureValue instance using the specified properties. + * Creates a new ExportFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValue instance + * @returns ExportFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue): google.cloud.aiplatform.v1beta1.FeatureValue; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. - * @param message FeatureValue message or plain object to encode + * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. + * @param message ExportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. - * @param message FeatureValue message or plain object to encode + * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. + * @param message ExportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValue message from the specified reader or buffer. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValue + * @returns ExportFeatureValuesRequest * @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.aiplatform.v1beta1.FeatureValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Decodes a FeatureValue message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValue + * @returns ExportFeatureValuesRequest * @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.aiplatform.v1beta1.FeatureValue; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Verifies a FeatureValue message. + * Verifies an ExportFeatureValuesRequest 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 FeatureValue message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValue + * @returns ExportFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. - * @param message FeatureValue + * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ExportFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValue to JSON. + * Converts this ExportFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureValue + * Gets the default type url for ExportFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FeatureValue { + namespace ExportFeatureValuesRequest { - /** Properties of a Metadata. */ - interface IMetadata { + /** Properties of a SnapshotExport. */ + interface ISnapshotExport { - /** Metadata generateTime */ - generateTime?: (google.protobuf.ITimestamp|null); + /** SnapshotExport snapshotTime */ + snapshotTime?: (google.protobuf.ITimestamp|null); + + /** SnapshotExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); } - /** Represents a Metadata. */ - class Metadata implements IMetadata { + /** Represents a SnapshotExport. */ + class SnapshotExport implements ISnapshotExport { /** - * Constructs a new Metadata. + * Constructs a new SnapshotExport. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport); - /** Metadata generateTime. */ - public generateTime?: (google.protobuf.ITimestamp|null); + /** SnapshotExport snapshotTime. */ + public snapshotTime?: (google.protobuf.ITimestamp|null); + + /** SnapshotExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Metadata instance using the specified properties. + * Creates a new SnapshotExport instance using the specified properties. * @param [properties] Properties to set - * @returns Metadata instance + * @returns SnapshotExport instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode + * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @param message SnapshotExport message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode + * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @param message SnapshotExport message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Metadata message from the specified reader or buffer. + * Decodes a SnapshotExport message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Metadata + * @returns SnapshotExport * @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.aiplatform.v1beta1.FeatureValue.Metadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. + * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Metadata + * @returns SnapshotExport * @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.aiplatform.v1beta1.FeatureValue.Metadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Verifies a Metadata message. + * Verifies a SnapshotExport 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 Metadata message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Metadata + * @returns SnapshotExport */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @param message Metadata + * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. + * @param message SnapshotExport * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Metadata to JSON. + * Converts this SnapshotExport to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Metadata + * Gets the default type url for SnapshotExport * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Properties of a FeatureValueList. */ - interface IFeatureValueList { + /** Properties of a FullExport. */ + interface IFullExport { - /** FeatureValueList values */ - values?: (google.cloud.aiplatform.v1beta1.IFeatureValue[]|null); - } + /** FullExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** Represents a FeatureValueList. */ - class FeatureValueList implements IFeatureValueList { + /** FullExport endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } - /** - * Constructs a new FeatureValueList. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList); + /** Represents a FullExport. */ + class FullExport implements IFullExport { - /** FeatureValueList values. */ - public values: google.cloud.aiplatform.v1beta1.IFeatureValue[]; + /** + * Constructs a new FullExport. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport); - /** - * Creates a new FeatureValueList instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureValueList instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList): google.cloud.aiplatform.v1beta1.FeatureValueList; + /** FullExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. - * @param message FeatureValueList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + /** FullExport endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. - * @param message FeatureValueList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FullExport instance using the specified properties. + * @param [properties] Properties to set + * @returns FullExport instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; - /** - * Decodes a FeatureValueList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureValueList - * @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.aiplatform.v1beta1.FeatureValueList; + /** + * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @param message FullExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureValueList - * @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.aiplatform.v1beta1.FeatureValueList; + /** + * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @param message FullExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a FeatureValueList 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); + /** + * Decodes a FullExport message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FullExport + * @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.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; - /** - * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureValueList - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueList; + /** + * Decodes a FullExport message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FullExport + * @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.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; - /** - * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. - * @param message FeatureValueList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a FullExport 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); - /** - * Converts this FeatureValueList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a FullExport message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FullExport + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; - /** - * Gets the default type url for FeatureValueList - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Creates a plain object from a FullExport message. Also converts values to other types if specified. + * @param message FullExport + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FullExport to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FullExport + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a BoolArray. */ - interface IBoolArray { + /** Properties of a DestinationFeatureSetting. */ + interface IDestinationFeatureSetting { - /** BoolArray values */ - values?: (boolean[]|null); + /** DestinationFeatureSetting featureId */ + featureId?: (string|null); + + /** DestinationFeatureSetting destinationField */ + destinationField?: (string|null); } - /** Represents a BoolArray. */ - class BoolArray implements IBoolArray { + /** Represents a DestinationFeatureSetting. */ + class DestinationFeatureSetting implements IDestinationFeatureSetting { /** - * Constructs a new BoolArray. + * Constructs a new DestinationFeatureSetting. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBoolArray); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting); - /** BoolArray values. */ - public values: boolean[]; + /** DestinationFeatureSetting featureId. */ + public featureId: string; + + /** DestinationFeatureSetting destinationField. */ + public destinationField: string; /** - * Creates a new BoolArray instance using the specified properties. + * Creates a new DestinationFeatureSetting instance using the specified properties. * @param [properties] Properties to set - * @returns BoolArray instance + * @returns DestinationFeatureSetting instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBoolArray): google.cloud.aiplatform.v1beta1.BoolArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. - * @param message BoolArray message or plain object to encode + * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. + * @param message DestinationFeatureSetting message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. - * @param message BoolArray message or plain object to encode + * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. + * @param message DestinationFeatureSetting message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BoolArray message from the specified reader or buffer. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BoolArray + * @returns DestinationFeatureSetting * @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.aiplatform.v1beta1.BoolArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Decodes a BoolArray message from the specified reader or buffer, length delimited. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BoolArray + * @returns DestinationFeatureSetting * @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.aiplatform.v1beta1.BoolArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Verifies a BoolArray message. + * Verifies a DestinationFeatureSetting 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 BoolArray message from a plain object. Also converts values to their respective internal types. + * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BoolArray + * @returns DestinationFeatureSetting */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BoolArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Creates a plain object from a BoolArray message. Also converts values to other types if specified. - * @param message BoolArray + * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. + * @param message DestinationFeatureSetting * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BoolArray to JSON. + * Converts this DestinationFeatureSetting to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BoolArray + * Gets the default type url for DestinationFeatureSetting * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DoubleArray. */ - interface IDoubleArray { + /** Properties of a FeatureValueDestination. */ + interface IFeatureValueDestination { - /** DoubleArray values */ - values?: (number[]|null); + /** FeatureValueDestination bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** FeatureValueDestination tfrecordDestination */ + tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); + + /** FeatureValueDestination csvDestination */ + csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); } - /** Represents a DoubleArray. */ - class DoubleArray implements IDoubleArray { + /** Represents a FeatureValueDestination. */ + class FeatureValueDestination implements IFeatureValueDestination { /** - * Constructs a new DoubleArray. + * Constructs a new FeatureValueDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination); - /** DoubleArray values. */ - public values: number[]; + /** FeatureValueDestination bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** FeatureValueDestination tfrecordDestination. */ + public tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); + + /** FeatureValueDestination csvDestination. */ + public csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + + /** FeatureValueDestination destination. */ + public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); /** - * Creates a new DoubleArray instance using the specified properties. + * Creates a new FeatureValueDestination instance using the specified properties. * @param [properties] Properties to set - * @returns DoubleArray instance + * @returns FeatureValueDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray): google.cloud.aiplatform.v1beta1.DoubleArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. - * @param message DoubleArray message or plain object to encode + * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. + * @param message FeatureValueDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. - * @param message DoubleArray message or plain object to encode + * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. + * @param message FeatureValueDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DoubleArray message from the specified reader or buffer. + * Decodes a FeatureValueDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DoubleArray + * @returns FeatureValueDestination * @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.aiplatform.v1beta1.DoubleArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Decodes a DoubleArray message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DoubleArray + * @returns FeatureValueDestination * @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.aiplatform.v1beta1.DoubleArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Verifies a DoubleArray message. + * Verifies a FeatureValueDestination 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 DoubleArray message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DoubleArray + * @returns FeatureValueDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DoubleArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. - * @param message DoubleArray + * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. + * @param message FeatureValueDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DoubleArray to JSON. + * Converts this FeatureValueDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DoubleArray + * Gets the default type url for FeatureValueDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Int64Array. */ - interface IInt64Array { - - /** Int64Array values */ - values?: ((number|Long|string)[]|null); + /** Properties of an ExportFeatureValuesResponse. */ + interface IExportFeatureValuesResponse { } - /** Represents an Int64Array. */ - class Int64Array implements IInt64Array { + /** Represents an ExportFeatureValuesResponse. */ + class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { /** - * Constructs a new Int64Array. + * Constructs a new ExportFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IInt64Array); - - /** Int64Array values. */ - public values: (number|Long|string)[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse); /** - * Creates a new Int64Array instance using the specified properties. + * Creates a new ExportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Int64Array instance + * @returns ExportFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IInt64Array): google.cloud.aiplatform.v1beta1.Int64Array; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. - * @param message Int64Array message or plain object to encode + * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * @param message ExportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. - * @param message Int64Array message or plain object to encode + * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * @param message ExportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Int64Array message from the specified reader or buffer. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Int64Array + * @returns ExportFeatureValuesResponse * @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.aiplatform.v1beta1.Int64Array; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Decodes an Int64Array message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Int64Array + * @returns ExportFeatureValuesResponse * @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.aiplatform.v1beta1.Int64Array; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Verifies an Int64Array message. + * Verifies an ExportFeatureValuesResponse 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 an Int64Array message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Int64Array + * @returns ExportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Int64Array; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Creates a plain object from an Int64Array message. Also converts values to other types if specified. - * @param message Int64Array + * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ExportFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Int64Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Int64Array to JSON. + * Converts this ExportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Int64Array + * Gets the default type url for ExportFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StringArray. */ - interface IStringArray { - - /** StringArray values */ - values?: (string[]|null); + /** Properties of a BatchReadFeatureValuesResponse. */ + interface IBatchReadFeatureValuesResponse { } - /** Represents a StringArray. */ - class StringArray implements IStringArray { + /** Represents a BatchReadFeatureValuesResponse. */ + class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { /** - * Constructs a new StringArray. + * Constructs a new BatchReadFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStringArray); - - /** StringArray values. */ - public values: string[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse); /** - * Creates a new StringArray instance using the specified properties. + * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StringArray instance + * @returns BatchReadFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStringArray): google.cloud.aiplatform.v1beta1.StringArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. - * @param message StringArray message or plain object to encode + * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @param message BatchReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. - * @param message StringArray message or plain object to encode + * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @param message BatchReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StringArray message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StringArray + * @returns BatchReadFeatureValuesResponse * @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.aiplatform.v1beta1.StringArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Decodes a StringArray message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StringArray + * @returns BatchReadFeatureValuesResponse * @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.aiplatform.v1beta1.StringArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Verifies a StringArray message. + * Verifies a BatchReadFeatureValuesResponse 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 StringArray message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StringArray + * @returns BatchReadFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StringArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Creates a plain object from a StringArray message. Also converts values to other types if specified. - * @param message StringArray + * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StringArray to JSON. + * Converts this BatchReadFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StringArray + * Gets the default type url for BatchReadFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a FeaturestoreService */ - class FeaturestoreService extends $protobuf.rpc.Service { - - /** - * Constructs a new FeaturestoreService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new FeaturestoreService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreService; - - /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback): void; - - /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object - * @returns Promise - */ - public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): Promise; + /** Properties of a CreateEntityTypeRequest. */ + interface ICreateEntityTypeRequest { - /** - * Calls GetFeaturestore. - * @param request GetFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Featurestore - */ - public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestoreCallback): void; + /** CreateEntityTypeRequest parent */ + parent?: (string|null); - /** - * Calls GetFeaturestore. - * @param request GetFeaturestoreRequest message or plain object - * @returns Promise - */ - public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): Promise; + /** CreateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); - /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturestoresResponse - */ - public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestoresCallback): void; + /** CreateEntityTypeRequest entityTypeId */ + entityTypeId?: (string|null); + } - /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @returns Promise - */ - public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): Promise; + /** Represents a CreateEntityTypeRequest. */ + class CreateEntityTypeRequest implements ICreateEntityTypeRequest { /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Constructs a new CreateEntityTypeRequest. + * @param [properties] Properties to set */ - public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestoreCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest); - /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @returns Promise - */ - public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): Promise; + /** CreateEntityTypeRequest parent. */ + public parent: string; - /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback): void; + /** CreateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); - /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @returns Promise - */ - public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): Promise; + /** CreateEntityTypeRequest entityTypeId. */ + public entityTypeId: string; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new CreateEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEntityTypeRequest instance */ - public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @returns Promise + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @returns Promise + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @returns Promise + * Verifies a CreateEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEntityTypeRequest */ - public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityTypeCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this CreateEntityTypeRequest to JSON. + * @returns JSON object */ - public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityTypeCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @returns Promise + * Gets the default type url for CreateEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeatureCallback): void; + /** Properties of a GetEntityTypeRequest. */ + interface IGetEntityTypeRequest { - /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @returns Promise - */ - public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): Promise; + /** GetEntityTypeRequest name */ + name?: (string|null); + } - /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeaturesCallback): void; + /** Represents a GetEntityTypeRequest. */ + class GetEntityTypeRequest implements IGetEntityTypeRequest { /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @returns Promise + * Constructs a new GetEntityTypeRequest. + * @param [properties] Properties to set */ - public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest); - /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature - */ - public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeatureCallback): void; + /** GetEntityTypeRequest name. */ + public name: string; /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @returns Promise + * Creates a new GetEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetEntityTypeRequest instance */ - public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturesCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @returns Promise + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @returns Promise + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a GetEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @returns Promise + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetEntityTypeRequest */ - public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object */ - public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @returns Promise + * Converts this GetEntityTypeRequest to JSON. + * @returns JSON object */ - public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for GetEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @returns Promise - */ - public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): Promise; + /** Properties of a ListEntityTypesRequest. */ + interface IListEntityTypesRequest { - /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback): void; + /** ListEntityTypesRequest parent */ + parent?: (string|null); - /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @returns Promise - */ - public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): Promise; + /** ListEntityTypesRequest filter */ + filter?: (string|null); - /** - * Calls DeleteFeatureValues. - * @param request DeleteFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteFeatureValues(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValuesCallback): void; + /** ListEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** - * Calls DeleteFeatureValues. - * @param request DeleteFeatureValuesRequest message or plain object - * @returns Promise - */ - public deleteFeatureValues(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest): Promise; + /** ListEntityTypesRequest pageToken */ + pageToken?: (string|null); - /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchFeaturesResponse - */ - public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeaturesCallback): void; + /** ListEntityTypesRequest orderBy */ + orderBy?: (string|null); - /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @returns Promise - */ - public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): Promise; + /** ListEntityTypesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - namespace FeaturestoreService { - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createFeaturestore}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getFeaturestore}. - * @param error Error, if any - * @param [response] Featurestore - */ - type GetFeaturestoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Featurestore) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listFeaturestores}. - * @param error Error, if any - * @param [response] ListFeaturestoresResponse - */ - type ListFeaturestoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateFeaturestore}. - * @param error Error, if any - * @param [response] Operation - */ - type UpdateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Represents a ListEntityTypesRequest. */ + class ListEntityTypesRequest implements IListEntityTypesRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeaturestore}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new ListEntityTypesRequest. + * @param [properties] Properties to set */ - type DeleteFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createEntityType}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ListEntityTypesRequest parent. */ + public parent: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getEntityType}. - * @param error Error, if any - * @param [response] EntityType - */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; + /** ListEntityTypesRequest filter. */ + public filter: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listEntityTypes}. - * @param error Error, if any - * @param [response] ListEntityTypesResponse - */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) => void; + /** ListEntityTypesRequest pageSize. */ + public pageSize: number; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateEntityType}. - * @param error Error, if any - * @param [response] EntityType - */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; + /** ListEntityTypesRequest pageToken. */ + public pageToken: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteEntityType}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ListEntityTypesRequest orderBy. */ + public orderBy: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createFeature}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ListEntityTypesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|batchCreateFeatures}. - * @param error Error, if any - * @param [response] Operation + * Creates a new ListEntityTypesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEntityTypesRequest instance */ - type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getFeature}. - * @param error Error, if any - * @param [response] Feature + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listFeatures}. - * @param error Error, if any - * @param [response] ListFeaturesResponse + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateFeature}. - * @param error Error, if any - * @param [response] Feature + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeature}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|importFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Verifies a ListEntityTypesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ImportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|batchReadFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEntityTypesRequest */ - type BatchReadFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|exportFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListEntityTypesRequest + * @param [options] Conversion options + * @returns Plain object */ - type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Converts this ListEntityTypesRequest to JSON. + * @returns JSON object */ - type DeleteFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|searchFeatures}. - * @param error Error, if any - * @param [response] SearchFeaturesResponse + * Gets the default type url for ListEntityTypesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type SearchFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFeaturestoreRequest. */ - interface ICreateFeaturestoreRequest { - - /** CreateFeaturestoreRequest parent */ - parent?: (string|null); + /** Properties of a ListEntityTypesResponse. */ + interface IListEntityTypesResponse { - /** CreateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** ListEntityTypesResponse entityTypes */ + entityTypes?: (google.cloud.aiplatform.v1beta1.IEntityType[]|null); - /** CreateFeaturestoreRequest featurestoreId */ - featurestoreId?: (string|null); + /** ListEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateFeaturestoreRequest. */ - class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { + /** Represents a ListEntityTypesResponse. */ + class ListEntityTypesResponse implements IListEntityTypesResponse { /** - * Constructs a new CreateFeaturestoreRequest. + * Constructs a new ListEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest); - - /** CreateFeaturestoreRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse); - /** CreateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** ListEntityTypesResponse entityTypes. */ + public entityTypes: google.cloud.aiplatform.v1beta1.IEntityType[]; - /** CreateFeaturestoreRequest featurestoreId. */ - public featurestoreId: string; + /** ListEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateFeaturestoreRequest instance using the specified properties. + * Creates a new ListEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeaturestoreRequest instance + * @returns ListEntityTypesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. - * @param message CreateFeaturestoreRequest message or plain object to encode + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. - * @param message CreateFeaturestoreRequest message or plain object to encode + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeaturestoreRequest + * @returns ListEntityTypesResponse * @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.aiplatform.v1beta1.CreateFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeaturestoreRequest + * @returns ListEntityTypesResponse * @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.aiplatform.v1beta1.CreateFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Verifies a CreateFeaturestoreRequest message. + * Verifies a ListEntityTypesResponse 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 CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeaturestoreRequest + * @returns ListEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. - * @param message CreateFeaturestoreRequest + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListEntityTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeaturestoreRequest to JSON. + * Converts this ListEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFeaturestoreRequest + * Gets the default type url for ListEntityTypesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetFeaturestoreRequest. */ - interface IGetFeaturestoreRequest { + /** Properties of an UpdateEntityTypeRequest. */ + interface IUpdateEntityTypeRequest { - /** GetFeaturestoreRequest name */ - name?: (string|null); + /** UpdateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + + /** UpdateEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetFeaturestoreRequest. */ - class GetFeaturestoreRequest implements IGetFeaturestoreRequest { + /** Represents an UpdateEntityTypeRequest. */ + class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { /** - * Constructs a new GetFeaturestoreRequest. + * Constructs a new UpdateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest); - /** GetFeaturestoreRequest name. */ - public name: string; + /** UpdateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + + /** UpdateEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetFeaturestoreRequest instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetFeaturestoreRequest instance + * @returns UpdateEntityTypeRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. - * @param message GetFeaturestoreRequest message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. - * @param message GetFeaturestoreRequest message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFeaturestoreRequest + * @returns UpdateEntityTypeRequest * @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.aiplatform.v1beta1.GetFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFeaturestoreRequest + * @returns UpdateEntityTypeRequest * @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.aiplatform.v1beta1.GetFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Verifies a GetFeaturestoreRequest message. + * Verifies an UpdateEntityTypeRequest 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 GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFeaturestoreRequest + * @returns UpdateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. - * @param message GetFeaturestoreRequest + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFeaturestoreRequest to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFeaturestoreRequest + * Gets the default type url for UpdateEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturestoresRequest. */ - interface IListFeaturestoresRequest { - - /** ListFeaturestoresRequest parent */ - parent?: (string|null); - - /** ListFeaturestoresRequest filter */ - filter?: (string|null); - - /** ListFeaturestoresRequest pageSize */ - pageSize?: (number|null); - - /** ListFeaturestoresRequest pageToken */ - pageToken?: (string|null); + /** Properties of a DeleteEntityTypeRequest. */ + interface IDeleteEntityTypeRequest { - /** ListFeaturestoresRequest orderBy */ - orderBy?: (string|null); + /** DeleteEntityTypeRequest name */ + name?: (string|null); - /** ListFeaturestoresRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** DeleteEntityTypeRequest force */ + force?: (boolean|null); } - /** Represents a ListFeaturestoresRequest. */ - class ListFeaturestoresRequest implements IListFeaturestoresRequest { + /** Represents a DeleteEntityTypeRequest. */ + class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { /** - * Constructs a new ListFeaturestoresRequest. + * Constructs a new DeleteEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest); - - /** ListFeaturestoresRequest parent. */ - public parent: string; - - /** ListFeaturestoresRequest filter. */ - public filter: string; - - /** ListFeaturestoresRequest pageSize. */ - public pageSize: number; - - /** ListFeaturestoresRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest); - /** ListFeaturestoresRequest orderBy. */ - public orderBy: string; + /** DeleteEntityTypeRequest name. */ + public name: string; - /** ListFeaturestoresRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** DeleteEntityTypeRequest force. */ + public force: boolean; /** - * Creates a new ListFeaturestoresRequest instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresRequest instance + * @returns DeleteEntityTypeRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. - * @param message ListFeaturestoresRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. - * @param message ListFeaturestoresRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturestoresRequest + * @returns DeleteEntityTypeRequest * @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.aiplatform.v1beta1.ListFeaturestoresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturestoresRequest + * @returns DeleteEntityTypeRequest * @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.aiplatform.v1beta1.ListFeaturestoresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Verifies a ListFeaturestoresRequest message. + * Verifies a DeleteEntityTypeRequest 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 ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturestoresRequest + * @returns DeleteEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. - * @param message ListFeaturestoresRequest + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturestoresRequest + * Gets the default type url for DeleteEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturestoresResponse. */ - interface IListFeaturestoresResponse { + /** Properties of a CreateFeatureRequest. */ + interface ICreateFeatureRequest { - /** ListFeaturestoresResponse featurestores */ - featurestores?: (google.cloud.aiplatform.v1beta1.IFeaturestore[]|null); + /** CreateFeatureRequest parent */ + parent?: (string|null); - /** ListFeaturestoresResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + + /** CreateFeatureRequest featureId */ + featureId?: (string|null); } - /** Represents a ListFeaturestoresResponse. */ - class ListFeaturestoresResponse implements IListFeaturestoresResponse { + /** Represents a CreateFeatureRequest. */ + class CreateFeatureRequest implements ICreateFeatureRequest { /** - * Constructs a new ListFeaturestoresResponse. + * Constructs a new CreateFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest); - /** ListFeaturestoresResponse featurestores. */ - public featurestores: google.cloud.aiplatform.v1beta1.IFeaturestore[]; + /** CreateFeatureRequest parent. */ + public parent: string; - /** ListFeaturestoresResponse nextPageToken. */ - public nextPageToken: string; + /** CreateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + + /** CreateFeatureRequest featureId. */ + public featureId: string; /** - * Creates a new ListFeaturestoresResponse instance using the specified properties. + * Creates a new CreateFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresResponse instance + * @returns CreateFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. - * @param message ListFeaturestoresResponse message or plain object to encode + * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. + * @param message CreateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. - * @param message ListFeaturestoresResponse message or plain object to encode + * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. + * @param message CreateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * Decodes a CreateFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturestoresResponse + * @returns CreateFeatureRequest * @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.aiplatform.v1beta1.ListFeaturestoresResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturestoresResponse + * @returns CreateFeatureRequest * @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.aiplatform.v1beta1.ListFeaturestoresResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Verifies a ListFeaturestoresResponse message. + * Verifies a CreateFeatureRequest 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 ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturestoresResponse + * @returns CreateFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. - * @param message ListFeaturestoresResponse + * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. + * @param message CreateFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresResponse to JSON. + * Converts this CreateFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturestoresResponse + * Gets the default type url for CreateFeatureRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateFeaturestoreRequest. */ - interface IUpdateFeaturestoreRequest { + /** Properties of a BatchCreateFeaturesRequest. */ + interface IBatchCreateFeaturesRequest { - /** UpdateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** BatchCreateFeaturesRequest parent */ + parent?: (string|null); - /** UpdateFeaturestoreRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** BatchCreateFeaturesRequest requests */ + requests?: (google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]|null); } - /** Represents an UpdateFeaturestoreRequest. */ - class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { + /** Represents a BatchCreateFeaturesRequest. */ + class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { /** - * Constructs a new UpdateFeaturestoreRequest. + * Constructs a new BatchCreateFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest); - /** UpdateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** BatchCreateFeaturesRequest parent. */ + public parent: string; - /** UpdateFeaturestoreRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** BatchCreateFeaturesRequest requests. */ + public requests: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]; /** - * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * Creates a new BatchCreateFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFeaturestoreRequest instance + * @returns BatchCreateFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. - * @param message UpdateFeaturestoreRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * @param message BatchCreateFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. - * @param message UpdateFeaturestoreRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * @param message BatchCreateFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFeaturestoreRequest + * @returns BatchCreateFeaturesRequest * @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.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFeaturestoreRequest + * @returns BatchCreateFeaturesRequest * @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.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Verifies an UpdateFeaturestoreRequest message. + * Verifies a BatchCreateFeaturesRequest 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 an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFeaturestoreRequest + * @returns BatchCreateFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. - * @param message UpdateFeaturestoreRequest + * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFeaturestoreRequest to JSON. + * Converts this BatchCreateFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateFeaturestoreRequest + * Gets the default type url for BatchCreateFeaturesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFeaturestoreRequest. */ - interface IDeleteFeaturestoreRequest { - - /** DeleteFeaturestoreRequest name */ - name?: (string|null); + /** Properties of a BatchCreateFeaturesResponse. */ + interface IBatchCreateFeaturesResponse { - /** DeleteFeaturestoreRequest force */ - force?: (boolean|null); + /** BatchCreateFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); } - /** Represents a DeleteFeaturestoreRequest. */ - class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { + /** Represents a BatchCreateFeaturesResponse. */ + class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { /** - * Constructs a new DeleteFeaturestoreRequest. + * Constructs a new BatchCreateFeaturesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest); - - /** DeleteFeaturestoreRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse); - /** DeleteFeaturestoreRequest force. */ - public force: boolean; + /** BatchCreateFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; /** - * Creates a new DeleteFeaturestoreRequest instance using the specified properties. + * Creates a new BatchCreateFeaturesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeaturestoreRequest instance + * @returns BatchCreateFeaturesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. - * @param message DeleteFeaturestoreRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. + * @param message BatchCreateFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. - * @param message DeleteFeaturestoreRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. + * @param message BatchCreateFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFeaturestoreRequest + * @returns BatchCreateFeaturesResponse * @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.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeaturestoreRequest + * @returns BatchCreateFeaturesResponse * @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.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Verifies a DeleteFeaturestoreRequest message. + * Verifies a BatchCreateFeaturesResponse 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 DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFeaturestoreRequest + * @returns BatchCreateFeaturesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. - * @param message DeleteFeaturestoreRequest + * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeaturestoreRequest to JSON. + * Converts this BatchCreateFeaturesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFeaturestoreRequest + * Gets the default type url for BatchCreateFeaturesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportFeatureValuesRequest. */ - interface IImportFeatureValuesRequest { - - /** ImportFeatureValuesRequest avroSource */ - avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - - /** ImportFeatureValuesRequest bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** ImportFeatureValuesRequest csvSource */ - csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** ImportFeatureValuesRequest featureTimeField */ - featureTimeField?: (string|null); - - /** ImportFeatureValuesRequest featureTime */ - featureTime?: (google.protobuf.ITimestamp|null); - - /** ImportFeatureValuesRequest entityType */ - entityType?: (string|null); - - /** ImportFeatureValuesRequest entityIdField */ - entityIdField?: (string|null); - - /** ImportFeatureValuesRequest featureSpecs */ - featureSpecs?: (google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]|null); - - /** ImportFeatureValuesRequest disableOnlineServing */ - disableOnlineServing?: (boolean|null); - - /** ImportFeatureValuesRequest workerCount */ - workerCount?: (number|null); + /** Properties of a GetFeatureRequest. */ + interface IGetFeatureRequest { - /** ImportFeatureValuesRequest disableIngestionAnalysis */ - disableIngestionAnalysis?: (boolean|null); + /** GetFeatureRequest name */ + name?: (string|null); } - /** Represents an ImportFeatureValuesRequest. */ - class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { + /** Represents a GetFeatureRequest. */ + class GetFeatureRequest implements IGetFeatureRequest { /** - * Constructs a new ImportFeatureValuesRequest. + * Constructs a new GetFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest); - - /** ImportFeatureValuesRequest avroSource. */ - public avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - - /** ImportFeatureValuesRequest bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** ImportFeatureValuesRequest csvSource. */ - public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** ImportFeatureValuesRequest featureTimeField. */ - public featureTimeField?: (string|null); - - /** ImportFeatureValuesRequest featureTime. */ - public featureTime?: (google.protobuf.ITimestamp|null); - - /** ImportFeatureValuesRequest entityType. */ - public entityType: string; - - /** ImportFeatureValuesRequest entityIdField. */ - public entityIdField: string; - - /** ImportFeatureValuesRequest featureSpecs. */ - public featureSpecs: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]; - - /** ImportFeatureValuesRequest disableOnlineServing. */ - public disableOnlineServing: boolean; - - /** ImportFeatureValuesRequest workerCount. */ - public workerCount: number; - - /** ImportFeatureValuesRequest disableIngestionAnalysis. */ - public disableIngestionAnalysis: boolean; - - /** ImportFeatureValuesRequest source. */ - public source?: ("avroSource"|"bigquerySource"|"csvSource"); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest); - /** ImportFeatureValuesRequest featureTimeSource. */ - public featureTimeSource?: ("featureTimeField"|"featureTime"); + /** GetFeatureRequest name. */ + public name: string; /** - * Creates a new ImportFeatureValuesRequest instance using the specified properties. + * Creates a new GetFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesRequest instance + * @returns GetFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. - * @param message ImportFeatureValuesRequest message or plain object to encode + * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. + * @param message GetFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. - * @param message ImportFeatureValuesRequest message or plain object to encode + * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. + * @param message GetFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. + * Decodes a GetFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesRequest + * @returns GetFeatureRequest * @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.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesRequest + * @returns GetFeatureRequest * @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.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Verifies an ImportFeatureValuesRequest message. + * Verifies a GetFeatureRequest 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 an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesRequest + * @returns GetFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ImportFeatureValuesRequest + * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. + * @param message GetFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesRequest to JSON. + * Converts this GetFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFeatureValuesRequest + * Gets the default type url for GetFeatureRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ImportFeatureValuesRequest { - - /** Properties of a FeatureSpec. */ - interface IFeatureSpec { - - /** FeatureSpec id */ - id?: (string|null); - - /** FeatureSpec sourceField */ - sourceField?: (string|null); - } - - /** Represents a FeatureSpec. */ - class FeatureSpec implements IFeatureSpec { - - /** - * Constructs a new FeatureSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec); - - /** FeatureSpec id. */ - public id: string; - - /** FeatureSpec sourceField. */ - public sourceField: string; - - /** - * Creates a new FeatureSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @param message FeatureSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @param message FeatureSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSpec - * @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.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureSpec - * @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.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Verifies a FeatureSpec 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 FeatureSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. - * @param message FeatureSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ListFeaturesRequest. */ + interface IListFeaturesRequest { - /** - * Converts this FeatureSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListFeaturesRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for FeatureSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ListFeaturesRequest filter */ + filter?: (string|null); - /** Properties of an ImportFeatureValuesResponse. */ - interface IImportFeatureValuesResponse { + /** ListFeaturesRequest pageSize */ + pageSize?: (number|null); - /** ImportFeatureValuesResponse importedEntityCount */ - importedEntityCount?: (number|Long|string|null); + /** ListFeaturesRequest pageToken */ + pageToken?: (string|null); - /** ImportFeatureValuesResponse importedFeatureValueCount */ - importedFeatureValueCount?: (number|Long|string|null); + /** ListFeaturesRequest orderBy */ + orderBy?: (string|null); - /** ImportFeatureValuesResponse invalidRowCount */ - invalidRowCount?: (number|Long|string|null); + /** ListFeaturesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ - timestampOutsideRetentionRowsCount?: (number|Long|string|null); + /** ListFeaturesRequest latestStatsCount */ + latestStatsCount?: (number|null); } - /** Represents an ImportFeatureValuesResponse. */ - class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { + /** Represents a ListFeaturesRequest. */ + class ListFeaturesRequest implements IListFeaturesRequest { /** - * Constructs a new ImportFeatureValuesResponse. + * Constructs a new ListFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest); - /** ImportFeatureValuesResponse importedEntityCount. */ - public importedEntityCount: (number|Long|string); + /** ListFeaturesRequest parent. */ + public parent: string; - /** ImportFeatureValuesResponse importedFeatureValueCount. */ - public importedFeatureValueCount: (number|Long|string); + /** ListFeaturesRequest filter. */ + public filter: string; - /** ImportFeatureValuesResponse invalidRowCount. */ - public invalidRowCount: (number|Long|string); + /** ListFeaturesRequest pageSize. */ + public pageSize: number; - /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. */ - public timestampOutsideRetentionRowsCount: (number|Long|string); + /** ListFeaturesRequest pageToken. */ + public pageToken: string; + + /** ListFeaturesRequest orderBy. */ + public orderBy: string; + + /** ListFeaturesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListFeaturesRequest latestStatsCount. */ + public latestStatsCount: number; /** - * Creates a new ImportFeatureValuesResponse instance using the specified properties. + * Creates a new ListFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesResponse instance + * @returns ListFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. - * @param message ImportFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. + * @param message ListFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. - * @param message ImportFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. + * @param message ListFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a ListFeaturesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesResponse + * @returns ListFeaturesRequest * @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.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesResponse + * @returns ListFeaturesRequest * @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.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Verifies an ImportFeatureValuesResponse message. + * Verifies a ListFeaturesRequest 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 an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesResponse + * @returns ListFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ImportFeatureValuesResponse + * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. + * @param message ListFeaturesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesResponse to JSON. + * Converts this ListFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFeatureValuesResponse + * Gets the default type url for ListFeaturesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadFeatureValuesRequest. */ - interface IBatchReadFeatureValuesRequest { - - /** BatchReadFeatureValuesRequest csvReadInstances */ - csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** BatchReadFeatureValuesRequest bigqueryReadInstances */ - bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** BatchReadFeatureValuesRequest featurestore */ - featurestore?: (string|null); - - /** BatchReadFeatureValuesRequest destination */ - destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - - /** BatchReadFeatureValuesRequest passThroughFields */ - passThroughFields?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]|null); - - /** BatchReadFeatureValuesRequest entityTypeSpecs */ - entityTypeSpecs?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); - - /** BatchReadFeatureValuesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a BatchReadFeatureValuesRequest. */ - class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { - - /** - * Constructs a new BatchReadFeatureValuesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest); - - /** BatchReadFeatureValuesRequest csvReadInstances. */ - public csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** BatchReadFeatureValuesRequest bigqueryReadInstances. */ - public bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** Properties of a ListFeaturesResponse. */ + interface IListFeaturesResponse { - /** BatchReadFeatureValuesRequest featurestore. */ - public featurestore: string; + /** ListFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - /** BatchReadFeatureValuesRequest destination. */ - public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + /** ListFeaturesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** BatchReadFeatureValuesRequest passThroughFields. */ - public passThroughFields: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]; + /** Represents a ListFeaturesResponse. */ + class ListFeaturesResponse implements IListFeaturesResponse { - /** BatchReadFeatureValuesRequest entityTypeSpecs. */ - public entityTypeSpecs: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]; + /** + * Constructs a new ListFeaturesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse); - /** BatchReadFeatureValuesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ListFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; - /** BatchReadFeatureValuesRequest readOption. */ - public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); + /** ListFeaturesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * Creates a new ListFeaturesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesRequest instance + * @returns ListFeaturesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. - * @param message BatchReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. + * @param message ListFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. - * @param message BatchReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. + * @param message ListFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a ListFeaturesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesRequest + * @returns ListFeaturesResponse * @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.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesRequest + * @returns ListFeaturesResponse * @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.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Verifies a BatchReadFeatureValuesRequest message. + * Verifies a ListFeaturesResponse 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 BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesRequest + * @returns ListFeaturesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesRequest + * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. + * @param message ListFeaturesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesRequest to JSON. + * Converts this ListFeaturesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadFeatureValuesRequest + * Gets the default type url for ListFeaturesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace BatchReadFeatureValuesRequest { - - /** Properties of a PassThroughField. */ - interface IPassThroughField { - - /** PassThroughField fieldName */ - fieldName?: (string|null); - } - - /** Represents a PassThroughField. */ - class PassThroughField implements IPassThroughField { - - /** - * Constructs a new PassThroughField. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField); - - /** PassThroughField fieldName. */ - public fieldName: string; - - /** - * Creates a new PassThroughField instance using the specified properties. - * @param [properties] Properties to set - * @returns PassThroughField instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @param message PassThroughField message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @param message PassThroughField message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PassThroughField message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PassThroughField - * @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.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Decodes a PassThroughField message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PassThroughField - * @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.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Verifies a PassThroughField 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 PassThroughField message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PassThroughField - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. - * @param message PassThroughField - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PassThroughField to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PassThroughField - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EntityTypeSpec. */ - interface IEntityTypeSpec { - - /** EntityTypeSpec entityTypeId */ - entityTypeId?: (string|null); - - /** EntityTypeSpec featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - - /** EntityTypeSpec settings */ - settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); - } - - /** Represents an EntityTypeSpec. */ - class EntityTypeSpec implements IEntityTypeSpec { - - /** - * Constructs a new EntityTypeSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec); - - /** EntityTypeSpec entityTypeId. */ - public entityTypeId: string; - - /** EntityTypeSpec featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - - /** EntityTypeSpec settings. */ - public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; - - /** - * Creates a new EntityTypeSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns EntityTypeSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @param message EntityTypeSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @param message EntityTypeSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EntityTypeSpec - * @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.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EntityTypeSpec - * @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.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Verifies an EntityTypeSpec 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 an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EntityTypeSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. - * @param message EntityTypeSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EntityTypeSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EntityTypeSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of an ExportFeatureValuesRequest. */ - interface IExportFeatureValuesRequest { - - /** ExportFeatureValuesRequest snapshotExport */ - snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - - /** ExportFeatureValuesRequest fullExport */ - fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); + /** Properties of a SearchFeaturesRequest. */ + interface ISearchFeaturesRequest { - /** ExportFeatureValuesRequest entityType */ - entityType?: (string|null); + /** SearchFeaturesRequest location */ + location?: (string|null); - /** ExportFeatureValuesRequest destination */ - destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + /** SearchFeaturesRequest query */ + query?: (string|null); - /** ExportFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** SearchFeaturesRequest pageSize */ + pageSize?: (number|null); - /** ExportFeatureValuesRequest settings */ - settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); + /** SearchFeaturesRequest pageToken */ + pageToken?: (string|null); } - /** Represents an ExportFeatureValuesRequest. */ - class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { + /** Represents a SearchFeaturesRequest. */ + class SearchFeaturesRequest implements ISearchFeaturesRequest { /** - * Constructs a new ExportFeatureValuesRequest. + * Constructs a new SearchFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest); - - /** ExportFeatureValuesRequest snapshotExport. */ - public snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - - /** ExportFeatureValuesRequest fullExport. */ - public fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - - /** ExportFeatureValuesRequest entityType. */ - public entityType: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest); - /** ExportFeatureValuesRequest destination. */ - public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + /** SearchFeaturesRequest location. */ + public location: string; - /** ExportFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** SearchFeaturesRequest query. */ + public query: string; - /** ExportFeatureValuesRequest settings. */ - public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; + /** SearchFeaturesRequest pageSize. */ + public pageSize: number; - /** ExportFeatureValuesRequest mode. */ - public mode?: ("snapshotExport"|"fullExport"); + /** SearchFeaturesRequest pageToken. */ + public pageToken: string; /** - * Creates a new ExportFeatureValuesRequest instance using the specified properties. + * Creates a new SearchFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesRequest instance + * @returns SearchFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. - * @param message ExportFeatureValuesRequest message or plain object to encode + * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. + * @param message SearchFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. - * @param message ExportFeatureValuesRequest message or plain object to encode + * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. + * @param message SearchFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. + * Decodes a SearchFeaturesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesRequest + * @returns SearchFeaturesRequest * @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.aiplatform.v1beta1.ExportFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesRequest + * @returns SearchFeaturesRequest * @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.aiplatform.v1beta1.ExportFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Verifies an ExportFeatureValuesRequest message. + * Verifies a SearchFeaturesRequest 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 an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFeatureValuesRequest + * @returns SearchFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ExportFeatureValuesRequest + * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. + * @param message SearchFeaturesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesRequest to JSON. + * Converts this SearchFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFeatureValuesRequest + * Gets the default type url for SearchFeaturesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ExportFeatureValuesRequest { - - /** Properties of a SnapshotExport. */ - interface ISnapshotExport { - - /** SnapshotExport snapshotTime */ - snapshotTime?: (google.protobuf.ITimestamp|null); - - /** SnapshotExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a SnapshotExport. */ - class SnapshotExport implements ISnapshotExport { - - /** - * Constructs a new SnapshotExport. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport); - - /** SnapshotExport snapshotTime. */ - public snapshotTime?: (google.protobuf.ITimestamp|null); - - /** SnapshotExport startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new SnapshotExport instance using the specified properties. - * @param [properties] Properties to set - * @returns SnapshotExport instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @param message SnapshotExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @param message SnapshotExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnapshotExport - * @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.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotExport - * @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.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Verifies a SnapshotExport 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 SnapshotExport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnapshotExport - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. - * @param message SnapshotExport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SnapshotExport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SnapshotExport - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FullExport. */ - interface IFullExport { + /** Properties of a SearchFeaturesResponse. */ + interface ISearchFeaturesResponse { - /** FullExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** SearchFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - /** FullExport endTime */ - endTime?: (google.protobuf.ITimestamp|null); - } + /** SearchFeaturesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a FullExport. */ - class FullExport implements IFullExport { + /** Represents a SearchFeaturesResponse. */ + class SearchFeaturesResponse implements ISearchFeaturesResponse { - /** - * Constructs a new FullExport. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport); + /** + * Constructs a new SearchFeaturesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse); - /** FullExport startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** SearchFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; - /** FullExport endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** SearchFeaturesResponse nextPageToken. */ + public nextPageToken: string; - /** - * Creates a new FullExport instance using the specified properties. - * @param [properties] Properties to set - * @returns FullExport instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Creates a new SearchFeaturesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchFeaturesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @param message FullExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. + * @param message SearchFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @param message FullExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. + * @param message SearchFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FullExport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FullExport - * @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.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchFeaturesResponse + * @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.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Decodes a FullExport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FullExport - * @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.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchFeaturesResponse + * @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.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Verifies a FullExport 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); + /** + * Verifies a SearchFeaturesResponse 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 FullExport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FullExport - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchFeaturesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Creates a plain object from a FullExport message. Also converts values to other types if specified. - * @param message FullExport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. + * @param message SearchFeaturesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FullExport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this SearchFeaturesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FullExport - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for SearchFeaturesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DestinationFeatureSetting. */ - interface IDestinationFeatureSetting { + /** Properties of an UpdateFeatureRequest. */ + interface IUpdateFeatureRequest { - /** DestinationFeatureSetting featureId */ - featureId?: (string|null); + /** UpdateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - /** DestinationFeatureSetting destinationField */ - destinationField?: (string|null); + /** UpdateFeatureRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DestinationFeatureSetting. */ - class DestinationFeatureSetting implements IDestinationFeatureSetting { + /** Represents an UpdateFeatureRequest. */ + class UpdateFeatureRequest implements IUpdateFeatureRequest { /** - * Constructs a new DestinationFeatureSetting. + * Constructs a new UpdateFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest); - /** DestinationFeatureSetting featureId. */ - public featureId: string; + /** UpdateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - /** DestinationFeatureSetting destinationField. */ - public destinationField: string; + /** UpdateFeatureRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DestinationFeatureSetting instance using the specified properties. + * Creates a new UpdateFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DestinationFeatureSetting instance + * @returns UpdateFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. - * @param message DestinationFeatureSetting message or plain object to encode + * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. + * @param message UpdateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. - * @param message DestinationFeatureSetting message or plain object to encode + * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. + * @param message UpdateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer. + * Decodes an UpdateFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DestinationFeatureSetting + * @returns UpdateFeatureRequest * @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.aiplatform.v1beta1.DestinationFeatureSetting; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DestinationFeatureSetting + * @returns UpdateFeatureRequest * @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.aiplatform.v1beta1.DestinationFeatureSetting; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Verifies a DestinationFeatureSetting message. + * Verifies an UpdateFeatureRequest 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 DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DestinationFeatureSetting + * @returns UpdateFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. - * @param message DestinationFeatureSetting + * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. + * @param message UpdateFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DestinationFeatureSetting to JSON. + * Converts this UpdateFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DestinationFeatureSetting + * Gets the default type url for UpdateFeatureRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeatureValueDestination. */ - interface IFeatureValueDestination { - - /** FeatureValueDestination bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - - /** FeatureValueDestination tfrecordDestination */ - tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); + /** Properties of a DeleteFeatureRequest. */ + interface IDeleteFeatureRequest { - /** FeatureValueDestination csvDestination */ - csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + /** DeleteFeatureRequest name */ + name?: (string|null); } - /** Represents a FeatureValueDestination. */ - class FeatureValueDestination implements IFeatureValueDestination { + /** Represents a DeleteFeatureRequest. */ + class DeleteFeatureRequest implements IDeleteFeatureRequest { /** - * Constructs a new FeatureValueDestination. + * Constructs a new DeleteFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination); - - /** FeatureValueDestination bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - - /** FeatureValueDestination tfrecordDestination. */ - public tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); - - /** FeatureValueDestination csvDestination. */ - public csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest); - /** FeatureValueDestination destination. */ - public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); + /** DeleteFeatureRequest name. */ + public name: string; /** - * Creates a new FeatureValueDestination instance using the specified properties. + * Creates a new DeleteFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValueDestination instance + * @returns DeleteFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. - * @param message FeatureValueDestination message or plain object to encode + * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. + * @param message DeleteFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. - * @param message FeatureValueDestination message or plain object to encode + * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. + * @param message DeleteFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer. + * Decodes a DeleteFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValueDestination + * @returns DeleteFeatureRequest * @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.aiplatform.v1beta1.FeatureValueDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValueDestination + * @returns DeleteFeatureRequest * @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.aiplatform.v1beta1.FeatureValueDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Verifies a FeatureValueDestination message. + * Verifies a DeleteFeatureRequest 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 FeatureValueDestination message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValueDestination + * @returns DeleteFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. - * @param message FeatureValueDestination + * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValueDestination to JSON. + * Converts this DeleteFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureValueDestination + * Gets the default type url for DeleteFeatureRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFeatureValuesResponse. */ - interface IExportFeatureValuesResponse { + /** Properties of a CreateFeaturestoreOperationMetadata. */ + interface ICreateFeaturestoreOperationMetadata { + + /** CreateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an ExportFeatureValuesResponse. */ - class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { + /** Represents a CreateFeaturestoreOperationMetadata. */ + class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { /** - * Constructs a new ExportFeatureValuesResponse. + * Constructs a new CreateFeaturestoreOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata); + + /** CreateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesResponse instance + * @returns CreateFeaturestoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. - * @param message ExportFeatureValuesResponse message or plain object to encode + * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message CreateFeaturestoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. - * @param message ExportFeatureValuesResponse message or plain object to encode + * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message CreateFeaturestoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesResponse + * @returns CreateFeaturestoreOperationMetadata * @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.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesResponse + * @returns CreateFeaturestoreOperationMetadata * @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.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Verifies an ExportFeatureValuesResponse message. + * Verifies a CreateFeaturestoreOperationMetadata 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 an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFeatureValuesResponse + * @returns CreateFeaturestoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ExportFeatureValuesResponse + * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeaturestoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesResponse to JSON. + * Converts this CreateFeaturestoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFeatureValuesResponse + * Gets the default type url for CreateFeaturestoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadFeatureValuesResponse. */ - interface IBatchReadFeatureValuesResponse { + /** Properties of an UpdateFeaturestoreOperationMetadata. */ + interface IUpdateFeaturestoreOperationMetadata { + + /** UpdateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a BatchReadFeatureValuesResponse. */ - class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { + /** Represents an UpdateFeaturestoreOperationMetadata. */ + class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { /** - * Constructs a new BatchReadFeatureValuesResponse. + * Constructs a new UpdateFeaturestoreOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata); + + /** UpdateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. + * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesResponse instance + * @returns UpdateFeaturestoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; /** - * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @param message BatchReadFeatureValuesResponse message or plain object to encode + * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @param message BatchReadFeatureValuesResponse message or plain object to encode + * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesResponse + * @returns UpdateFeaturestoreOperationMetadata * @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.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesResponse + * @returns UpdateFeaturestoreOperationMetadata * @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.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; /** - * Verifies a BatchReadFeatureValuesResponse message. + * Verifies an UpdateFeaturestoreOperationMetadata 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 BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesResponse + * @returns UpdateFeaturestoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; /** - * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesResponse + * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateFeaturestoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesResponse to JSON. + * Converts this UpdateFeaturestoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadFeatureValuesResponse + * Gets the default type url for UpdateFeaturestoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateEntityTypeRequest. */ - interface ICreateEntityTypeRequest { + /** Properties of an ImportFeatureValuesOperationMetadata. */ + interface IImportFeatureValuesOperationMetadata { - /** CreateEntityTypeRequest parent */ - parent?: (string|null); + /** ImportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** ImportFeatureValuesOperationMetadata importedEntityCount */ + importedEntityCount?: (number|Long|string|null); - /** CreateEntityTypeRequest entityTypeId */ - entityTypeId?: (string|null); + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata sourceUris */ + sourceUris?: (string[]|null); + + /** ImportFeatureValuesOperationMetadata invalidRowCount */ + invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); } - /** Represents a CreateEntityTypeRequest. */ - class CreateEntityTypeRequest implements ICreateEntityTypeRequest { + /** Represents an ImportFeatureValuesOperationMetadata. */ + class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new ImportFeatureValuesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata); - /** CreateEntityTypeRequest parent. */ - public parent: string; + /** ImportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** ImportFeatureValuesOperationMetadata importedEntityCount. */ + public importedEntityCount: (number|Long|string); - /** CreateEntityTypeRequest entityTypeId. */ - public entityTypeId: string; + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); + + /** ImportFeatureValuesOperationMetadata sourceUris. */ + public sourceUris: string[]; + + /** ImportFeatureValuesOperationMetadata invalidRowCount. */ + public invalidRowCount: (number|Long|string); + + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEntityTypeRequest instance + * @returns ImportFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ImportFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ImportFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEntityTypeRequest + * @returns ImportFeatureValuesOperationMetadata * @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.aiplatform.v1beta1.CreateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeRequest + * @returns ImportFeatureValuesOperationMetadata * @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.aiplatform.v1beta1.CreateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies an ImportFeatureValuesOperationMetadata 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 CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEntityTypeRequest + * @returns ImportFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateEntityTypeRequest + * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message ImportFeatureValuesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this ImportFeatureValuesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEntityTypeRequest + * Gets the default type url for ImportFeatureValuesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEntityTypeRequest. */ - interface IGetEntityTypeRequest { + /** Properties of an ExportFeatureValuesOperationMetadata. */ + interface IExportFeatureValuesOperationMetadata { - /** GetEntityTypeRequest name */ - name?: (string|null); + /** ExportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GetEntityTypeRequest. */ - class GetEntityTypeRequest implements IGetEntityTypeRequest { + /** Represents an ExportFeatureValuesOperationMetadata. */ + class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new ExportFeatureValuesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata); - /** GetEntityTypeRequest name. */ - public name: string; + /** ExportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetEntityTypeRequest instance + * @returns ExportFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ExportFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ExportFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEntityTypeRequest + * @returns ExportFeatureValuesOperationMetadata * @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.aiplatform.v1beta1.GetEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEntityTypeRequest + * @returns ExportFeatureValuesOperationMetadata * @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.aiplatform.v1beta1.GetEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Verifies a GetEntityTypeRequest message. + * Verifies an ExportFeatureValuesOperationMetadata 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 GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEntityTypeRequest + * @returns ExportFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetEntityTypeRequest + * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message ExportFeatureValuesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this ExportFeatureValuesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetEntityTypeRequest + * Gets the default type url for ExportFeatureValuesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEntityTypesRequest. */ - interface IListEntityTypesRequest { - - /** ListEntityTypesRequest parent */ - parent?: (string|null); - - /** ListEntityTypesRequest filter */ - filter?: (string|null); - - /** ListEntityTypesRequest pageSize */ - pageSize?: (number|null); - - /** ListEntityTypesRequest pageToken */ - pageToken?: (string|null); - - /** ListEntityTypesRequest orderBy */ - orderBy?: (string|null); + /** Properties of a BatchReadFeatureValuesOperationMetadata. */ + interface IBatchReadFeatureValuesOperationMetadata { - /** ListEntityTypesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** BatchReadFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListEntityTypesRequest. */ - class ListEntityTypesRequest implements IListEntityTypesRequest { + /** Represents a BatchReadFeatureValuesOperationMetadata. */ + class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new BatchReadFeatureValuesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest); - - /** ListEntityTypesRequest parent. */ - public parent: string; - - /** ListEntityTypesRequest filter. */ - public filter: string; - - /** ListEntityTypesRequest pageSize. */ - public pageSize: number; - - /** ListEntityTypesRequest pageToken. */ - public pageToken: string; - - /** ListEntityTypesRequest orderBy. */ - public orderBy: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata); - /** ListEntityTypesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesRequest instance + * @returns BatchReadFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesRequest + * @returns BatchReadFeatureValuesOperationMetadata * @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.aiplatform.v1beta1.ListEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesRequest + * @returns BatchReadFeatureValuesOperationMetadata * @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.aiplatform.v1beta1.ListEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Verifies a ListEntityTypesRequest message. + * Verifies a BatchReadFeatureValuesOperationMetadata 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 ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesRequest + * @returns BatchReadFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListEntityTypesRequest + * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this BatchReadFeatureValuesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEntityTypesRequest + * Gets the default type url for BatchReadFeatureValuesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEntityTypesResponse. */ - interface IListEntityTypesResponse { - - /** ListEntityTypesResponse entityTypes */ - entityTypes?: (google.cloud.aiplatform.v1beta1.IEntityType[]|null); + /** Properties of a DeleteFeatureValuesOperationMetadata. */ + interface IDeleteFeatureValuesOperationMetadata { - /** ListEntityTypesResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListEntityTypesResponse. */ - class ListEntityTypesResponse implements IListEntityTypesResponse { + /** Represents a DeleteFeatureValuesOperationMetadata. */ + class DeleteFeatureValuesOperationMetadata implements IDeleteFeatureValuesOperationMetadata { /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new DeleteFeatureValuesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse); - - /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.aiplatform.v1beta1.IEntityType[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata); - /** ListEntityTypesResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesResponse instance + * @returns DeleteFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesResponse + * @returns DeleteFeatureValuesOperationMetadata * @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.aiplatform.v1beta1.ListEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesResponse + * @returns DeleteFeatureValuesOperationMetadata * @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.aiplatform.v1beta1.ListEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; /** - * Verifies a ListEntityTypesResponse message. + * Verifies a DeleteFeatureValuesOperationMetadata 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 ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesResponse + * @returns DeleteFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListEntityTypesResponse + * Creates a plain object from a DeleteFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteFeatureValuesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesResponse to JSON. + * Converts this DeleteFeatureValuesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEntityTypesResponse + * Gets the default type url for DeleteFeatureValuesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateEntityTypeRequest. */ - interface IUpdateEntityTypeRequest { - - /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** Properties of a CreateEntityTypeOperationMetadata. */ + interface ICreateEntityTypeOperationMetadata { - /** UpdateEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateEntityTypeOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an UpdateEntityTypeRequest. */ - class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { + /** Represents a CreateEntityTypeOperationMetadata. */ + class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new CreateEntityTypeOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest); - - /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata); - /** UpdateEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateEntityTypeOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEntityTypeRequest instance + * @returns CreateEntityTypeOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @param message CreateEntityTypeOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @param message CreateEntityTypeOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEntityTypeRequest + * @returns CreateEntityTypeOperationMetadata * @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.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEntityTypeRequest + * @returns CreateEntityTypeOperationMetadata * @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.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies a CreateEntityTypeOperationMetadata 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 an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEntityTypeRequest + * @returns CreateEntityTypeOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateEntityTypeRequest + * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. + * @param message CreateEntityTypeOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this CreateEntityTypeOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateEntityTypeRequest + * Gets the default type url for CreateEntityTypeOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteEntityTypeRequest. */ - interface IDeleteEntityTypeRequest { - - /** DeleteEntityTypeRequest name */ - name?: (string|null); + /** Properties of a CreateFeatureOperationMetadata. */ + interface ICreateFeatureOperationMetadata { - /** DeleteEntityTypeRequest force */ - force?: (boolean|null); + /** CreateFeatureOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeleteEntityTypeRequest. */ - class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { + /** Represents a CreateFeatureOperationMetadata. */ + class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new CreateFeatureOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest); - - /** DeleteEntityTypeRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata); - /** DeleteEntityTypeRequest force. */ - public force: boolean; + /** CreateFeatureOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new CreateFeatureOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEntityTypeRequest instance + * @returns CreateFeatureOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEntityTypeRequest + * @returns CreateFeatureOperationMetadata * @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.aiplatform.v1beta1.DeleteEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEntityTypeRequest + * @returns CreateFeatureOperationMetadata * @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.aiplatform.v1beta1.DeleteEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a CreateFeatureOperationMetadata 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 DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEntityTypeRequest + * @returns CreateFeatureOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteEntityTypeRequest + * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeatureOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEntityTypeRequest to JSON. + * Converts this CreateFeatureOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteEntityTypeRequest + * Gets the default type url for CreateFeatureOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFeatureRequest. */ - interface ICreateFeatureRequest { - - /** CreateFeatureRequest parent */ - parent?: (string|null); - - /** CreateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** Properties of a BatchCreateFeaturesOperationMetadata. */ + interface IBatchCreateFeaturesOperationMetadata { - /** CreateFeatureRequest featureId */ - featureId?: (string|null); + /** BatchCreateFeaturesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a CreateFeatureRequest. */ - class CreateFeatureRequest implements ICreateFeatureRequest { + /** Represents a BatchCreateFeaturesOperationMetadata. */ + class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { /** - * Constructs a new CreateFeatureRequest. + * Constructs a new BatchCreateFeaturesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest); - - /** CreateFeatureRequest parent. */ - public parent: string; - - /** CreateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata); - /** CreateFeatureRequest featureId. */ - public featureId: string; + /** BatchCreateFeaturesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new CreateFeatureRequest instance using the specified properties. + * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeatureRequest instance + * @returns BatchCreateFeaturesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. - * @param message CreateFeatureRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. - * @param message CreateFeatureRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeatureRequest + * @returns BatchCreateFeaturesOperationMetadata * @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.aiplatform.v1beta1.CreateFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeatureRequest + * @returns BatchCreateFeaturesOperationMetadata * @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.aiplatform.v1beta1.CreateFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Verifies a CreateFeatureRequest message. + * Verifies a BatchCreateFeaturesOperationMetadata 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 CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeatureRequest + * @returns BatchCreateFeaturesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. - * @param message CreateFeatureRequest + * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeatureRequest to JSON. + * Converts this BatchCreateFeaturesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFeatureRequest + * Gets the default type url for BatchCreateFeaturesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateFeaturesRequest. */ - interface IBatchCreateFeaturesRequest { + /** Properties of a DeleteFeatureValuesRequest. */ + interface IDeleteFeatureValuesRequest { - /** BatchCreateFeaturesRequest parent */ - parent?: (string|null); + /** DeleteFeatureValuesRequest selectEntity */ + selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); - /** BatchCreateFeaturesRequest requests */ - requests?: (google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]|null); + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature */ + selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesRequest entityType */ + entityType?: (string|null); } - /** Represents a BatchCreateFeaturesRequest. */ - class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { + /** Represents a DeleteFeatureValuesRequest. */ + class DeleteFeatureValuesRequest implements IDeleteFeatureValuesRequest { /** - * Constructs a new BatchCreateFeaturesRequest. + * Constructs a new DeleteFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest); - /** BatchCreateFeaturesRequest parent. */ - public parent: string; + /** DeleteFeatureValuesRequest selectEntity. */ + public selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); - /** BatchCreateFeaturesRequest requests. */ - public requests: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]; + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature. */ + public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesRequest entityType. */ + public entityType: string; + + /** DeleteFeatureValuesRequest DeleteOption. */ + public DeleteOption?: ("selectEntity"|"selectTimeRangeAndFeature"); /** - * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * Creates a new DeleteFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesRequest instance + * @returns DeleteFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; /** - * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. - * @param message BatchCreateFeaturesRequest message or plain object to encode + * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.verify|verify} messages. + * @param message DeleteFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. - * @param message BatchCreateFeaturesRequest message or plain object to encode + * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.verify|verify} messages. + * @param message DeleteFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesRequest + * @returns DeleteFeatureValuesRequest * @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.aiplatform.v1beta1.BatchCreateFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesRequest + * @returns DeleteFeatureValuesRequest * @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.aiplatform.v1beta1.BatchCreateFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; /** - * Verifies a BatchCreateFeaturesRequest message. + * Verifies a DeleteFeatureValuesRequest 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 BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateFeaturesRequest + * @returns DeleteFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; /** - * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesRequest + * Creates a plain object from a DeleteFeatureValuesRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesRequest to JSON. + * Converts this DeleteFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateFeaturesRequest + * Gets the default type url for DeleteFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateFeaturesResponse. */ - interface IBatchCreateFeaturesResponse { + namespace DeleteFeatureValuesRequest { - /** BatchCreateFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** Properties of a SelectEntity. */ + interface ISelectEntity { + + /** SelectEntity entityIdSelector */ + entityIdSelector?: (google.cloud.aiplatform.v1beta1.IEntityIdSelector|null); + } + + /** Represents a SelectEntity. */ + class SelectEntity implements ISelectEntity { + + /** + * Constructs a new SelectEntity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity); + + /** SelectEntity entityIdSelector. */ + public entityIdSelector?: (google.cloud.aiplatform.v1beta1.IEntityIdSelector|null); + + /** + * Creates a new SelectEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectEntity instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectEntity + * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectEntity + * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Verifies a SelectEntity 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 SelectEntity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectEntity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @param message SelectEntity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectEntity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectEntity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SelectTimeRangeAndFeature. */ + interface ISelectTimeRangeAndFeature { + + /** SelectTimeRangeAndFeature timeRange */ + timeRange?: (google.type.IInterval|null); + + /** SelectTimeRangeAndFeature featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** SelectTimeRangeAndFeature skipOnlineStorageDelete */ + skipOnlineStorageDelete?: (boolean|null); + } + + /** Represents a SelectTimeRangeAndFeature. */ + class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature); + + /** SelectTimeRangeAndFeature timeRange. */ + public timeRange?: (google.type.IInterval|null); + + /** SelectTimeRangeAndFeature featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** SelectTimeRangeAndFeature skipOnlineStorageDelete. */ + public skipOnlineStorageDelete: boolean; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectTimeRangeAndFeature instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectTimeRangeAndFeature + * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectTimeRangeAndFeature + * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Verifies a SelectTimeRangeAndFeature 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 SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectTimeRangeAndFeature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @param message SelectTimeRangeAndFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a BatchCreateFeaturesResponse. */ - class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { + /** Properties of a DeleteFeatureValuesResponse. */ + interface IDeleteFeatureValuesResponse { + } + + /** Represents a DeleteFeatureValuesResponse. */ + class DeleteFeatureValuesResponse implements IDeleteFeatureValuesResponse { /** - * Constructs a new BatchCreateFeaturesResponse. + * Constructs a new DeleteFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse); - - /** BatchCreateFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse); /** - * Creates a new BatchCreateFeaturesResponse instance using the specified properties. + * Creates a new DeleteFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesResponse instance + * @returns DeleteFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; /** - * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. - * @param message BatchCreateFeaturesResponse message or plain object to encode + * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.verify|verify} messages. + * @param message DeleteFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. - * @param message BatchCreateFeaturesResponse message or plain object to encode + * Encodes the specified DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.verify|verify} messages. + * @param message DeleteFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesResponse + * @returns DeleteFeatureValuesResponse * @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.aiplatform.v1beta1.BatchCreateFeaturesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesResponse + * @returns DeleteFeatureValuesResponse * @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.aiplatform.v1beta1.BatchCreateFeaturesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; /** - * Verifies a BatchCreateFeaturesResponse message. + * Verifies a DeleteFeatureValuesResponse 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 BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateFeaturesResponse + * @returns DeleteFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; /** - * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesResponse + * Creates a plain object from a DeleteFeatureValuesResponse message. Also converts values to other types if specified. + * @param message DeleteFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesResponse to JSON. + * Converts this DeleteFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateFeaturesResponse + * Gets the default type url for DeleteFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetFeatureRequest. */ - interface IGetFeatureRequest { + /** Properties of an EntityIdSelector. */ + interface IEntityIdSelector { - /** GetFeatureRequest name */ - name?: (string|null); + /** EntityIdSelector csvSource */ + csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** EntityIdSelector entityIdField */ + entityIdField?: (string|null); } - /** Represents a GetFeatureRequest. */ - class GetFeatureRequest implements IGetFeatureRequest { + /** Represents an EntityIdSelector. */ + class EntityIdSelector implements IEntityIdSelector { /** - * Constructs a new GetFeatureRequest. + * Constructs a new EntityIdSelector. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityIdSelector); - /** GetFeatureRequest name. */ - public name: string; + /** EntityIdSelector csvSource. */ + public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** EntityIdSelector entityIdField. */ + public entityIdField: string; + + /** EntityIdSelector EntityIdsSource. */ + public EntityIdsSource?: "csvSource"; /** - * Creates a new GetFeatureRequest instance using the specified properties. + * Creates a new EntityIdSelector instance using the specified properties. * @param [properties] Properties to set - * @returns GetFeatureRequest instance + * @returns EntityIdSelector instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): google.cloud.aiplatform.v1beta1.GetFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityIdSelector): google.cloud.aiplatform.v1beta1.EntityIdSelector; /** - * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. - * @param message GetFeatureRequest message or plain object to encode + * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityIdSelector.verify|verify} messages. + * @param message EntityIdSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. - * @param message GetFeatureRequest message or plain object to encode + * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityIdSelector.verify|verify} messages. + * @param message EntityIdSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer. + * Decodes an EntityIdSelector message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFeatureRequest + * @returns EntityIdSelector * @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.aiplatform.v1beta1.GetFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EntityIdSelector; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes an EntityIdSelector message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFeatureRequest + * @returns EntityIdSelector * @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.aiplatform.v1beta1.GetFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EntityIdSelector; /** - * Verifies a GetFeatureRequest message. + * Verifies an EntityIdSelector 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 GetFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EntityIdSelector message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFeatureRequest + * @returns EntityIdSelector */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityIdSelector; /** - * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. - * @param message GetFeatureRequest + * Creates a plain object from an EntityIdSelector message. Also converts values to other types if specified. + * @param message EntityIdSelector * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EntityIdSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFeatureRequest to JSON. + * Converts this EntityIdSelector to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFeatureRequest + * Gets the default type url for EntityIdSelector * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturesRequest. */ - interface IListFeaturesRequest { + /** Properties of a HyperparameterTuningJob. */ + interface IHyperparameterTuningJob { - /** ListFeaturesRequest parent */ - parent?: (string|null); + /** HyperparameterTuningJob name */ + name?: (string|null); - /** ListFeaturesRequest filter */ - filter?: (string|null); + /** HyperparameterTuningJob displayName */ + displayName?: (string|null); - /** ListFeaturesRequest pageSize */ - pageSize?: (number|null); + /** HyperparameterTuningJob studySpec */ + studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - /** ListFeaturesRequest pageToken */ - pageToken?: (string|null); + /** HyperparameterTuningJob maxTrialCount */ + maxTrialCount?: (number|null); - /** ListFeaturesRequest orderBy */ - orderBy?: (string|null); + /** HyperparameterTuningJob parallelTrialCount */ + parallelTrialCount?: (number|null); - /** ListFeaturesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** HyperparameterTuningJob maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); - /** ListFeaturesRequest latestStatsCount */ - latestStatsCount?: (number|null); + /** HyperparameterTuningJob trialJobSpec */ + trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** HyperparameterTuningJob trials */ + trials?: (google.cloud.aiplatform.v1beta1.ITrial[]|null); + + /** HyperparameterTuningJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); + + /** HyperparameterTuningJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob error */ + error?: (google.rpc.IStatus|null); + + /** HyperparameterTuningJob labels */ + labels?: ({ [k: string]: string }|null); + + /** HyperparameterTuningJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a ListFeaturesRequest. */ - class ListFeaturesRequest implements IListFeaturesRequest { + /** Represents a HyperparameterTuningJob. */ + class HyperparameterTuningJob implements IHyperparameterTuningJob { /** - * Constructs a new ListFeaturesRequest. + * Constructs a new HyperparameterTuningJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob); + + /** HyperparameterTuningJob name. */ + public name: string; + + /** HyperparameterTuningJob displayName. */ + public displayName: string; + + /** HyperparameterTuningJob studySpec. */ + public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + + /** HyperparameterTuningJob maxTrialCount. */ + public maxTrialCount: number; + + /** HyperparameterTuningJob parallelTrialCount. */ + public parallelTrialCount: number; + + /** HyperparameterTuningJob maxFailedTrialCount. */ + public maxFailedTrialCount: number; + + /** HyperparameterTuningJob trialJobSpec. */ + public trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** HyperparameterTuningJob trials. */ + public trials: google.cloud.aiplatform.v1beta1.ITrial[]; + + /** HyperparameterTuningJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** ListFeaturesRequest parent. */ - public parent: string; + /** HyperparameterTuningJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListFeaturesRequest filter. */ - public filter: string; + /** HyperparameterTuningJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** ListFeaturesRequest pageSize. */ - public pageSize: number; + /** HyperparameterTuningJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** ListFeaturesRequest pageToken. */ - public pageToken: string; + /** HyperparameterTuningJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** ListFeaturesRequest orderBy. */ - public orderBy: string; + /** HyperparameterTuningJob error. */ + public error?: (google.rpc.IStatus|null); - /** ListFeaturesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** HyperparameterTuningJob labels. */ + public labels: { [k: string]: string }; - /** ListFeaturesRequest latestStatsCount. */ - public latestStatsCount: number; + /** HyperparameterTuningJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); /** - * Creates a new ListFeaturesRequest instance using the specified properties. + * Creates a new HyperparameterTuningJob instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturesRequest instance + * @returns HyperparameterTuningJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. - * @param message ListFeaturesRequest message or plain object to encode + * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * @param message HyperparameterTuningJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. - * @param message ListFeaturesRequest message or plain object to encode + * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * @param message HyperparameterTuningJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer. + * Decodes a HyperparameterTuningJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturesRequest + * @returns HyperparameterTuningJob * @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.aiplatform.v1beta1.ListFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturesRequest + * @returns HyperparameterTuningJob * @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.aiplatform.v1beta1.ListFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Verifies a ListFeaturesRequest message. + * Verifies a HyperparameterTuningJob 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 ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturesRequest + * @returns HyperparameterTuningJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. - * @param message ListFeaturesRequest + * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. + * @param message HyperparameterTuningJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturesRequest to JSON. + * Converts this HyperparameterTuningJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturesRequest + * Gets the default type url for HyperparameterTuningJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturesResponse. */ - interface IListFeaturesResponse { + /** Properties of a Study. */ + interface IStudy { - /** ListFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** Study name */ + name?: (string|null); - /** ListFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); + /** Study displayName */ + displayName?: (string|null); + + /** Study studySpec */ + studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + + /** Study state */ + state?: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State|null); + + /** Study createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Study inactiveReason */ + inactiveReason?: (string|null); } - /** Represents a ListFeaturesResponse. */ - class ListFeaturesResponse implements IListFeaturesResponse { + /** Represents a Study. */ + class Study implements IStudy { /** - * Constructs a new ListFeaturesResponse. + * Constructs a new Study. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStudy); - /** ListFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** Study name. */ + public name: string; - /** ListFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** Study displayName. */ + public displayName: string; + + /** Study studySpec. */ + public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + + /** Study state. */ + public state: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State); + + /** Study createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Study inactiveReason. */ + public inactiveReason: string; /** - * Creates a new ListFeaturesResponse instance using the specified properties. + * Creates a new Study instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturesResponse instance + * @returns Study instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStudy): google.cloud.aiplatform.v1beta1.Study; /** - * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. - * @param message ListFeaturesResponse message or plain object to encode + * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * @param message Study message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. - * @param message ListFeaturesResponse message or plain object to encode + * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * @param message Study message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer. + * Decodes a Study message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturesResponse + * @returns Study * @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.aiplatform.v1beta1.ListFeaturesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Study; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a Study message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturesResponse + * @returns Study * @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.aiplatform.v1beta1.ListFeaturesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Study; /** - * Verifies a ListFeaturesResponse message. + * Verifies a Study 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 ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Study message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturesResponse + * @returns Study */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Study; /** - * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. - * @param message ListFeaturesResponse + * Creates a plain object from a Study message. Also converts values to other types if specified. + * @param message Study * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturesResponse to JSON. + * Converts this Study to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturesResponse + * Gets the default type url for Study * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchFeaturesRequest. */ - interface ISearchFeaturesRequest { + namespace Study { - /** SearchFeaturesRequest location */ - location?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + INACTIVE = 2, + COMPLETED = 3 + } + } - /** SearchFeaturesRequest query */ - query?: (string|null); + /** Properties of a Trial. */ + interface ITrial { - /** SearchFeaturesRequest pageSize */ - pageSize?: (number|null); + /** Trial name */ + name?: (string|null); - /** SearchFeaturesRequest pageToken */ - pageToken?: (string|null); + /** Trial id */ + id?: (string|null); + + /** Trial state */ + state?: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State|null); + + /** Trial parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.Trial.IParameter[]|null); + + /** Trial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + + /** Trial measurements */ + measurements?: (google.cloud.aiplatform.v1beta1.IMeasurement[]|null); + + /** Trial startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Trial endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** Trial clientId */ + clientId?: (string|null); + + /** Trial infeasibleReason */ + infeasibleReason?: (string|null); + + /** Trial customJob */ + customJob?: (string|null); + + /** Trial webAccessUris */ + webAccessUris?: ({ [k: string]: string }|null); } - /** Represents a SearchFeaturesRequest. */ - class SearchFeaturesRequest implements ISearchFeaturesRequest { + /** Represents a Trial. */ + class Trial implements ITrial { /** - * Constructs a new SearchFeaturesRequest. + * Constructs a new Trial. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrial); - /** SearchFeaturesRequest location. */ - public location: string; + /** Trial name. */ + public name: string; - /** SearchFeaturesRequest query. */ - public query: string; + /** Trial id. */ + public id: string; - /** SearchFeaturesRequest pageSize. */ - public pageSize: number; + /** Trial state. */ + public state: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State); - /** SearchFeaturesRequest pageToken. */ - public pageToken: string; + /** Trial parameters. */ + public parameters: google.cloud.aiplatform.v1beta1.Trial.IParameter[]; + + /** Trial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + + /** Trial measurements. */ + public measurements: google.cloud.aiplatform.v1beta1.IMeasurement[]; + + /** Trial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Trial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Trial clientId. */ + public clientId: string; + + /** Trial infeasibleReason. */ + public infeasibleReason: string; + + /** Trial customJob. */ + public customJob: string; + + /** Trial webAccessUris. */ + public webAccessUris: { [k: string]: string }; /** - * Creates a new SearchFeaturesRequest instance using the specified properties. + * Creates a new Trial instance using the specified properties. * @param [properties] Properties to set - * @returns SearchFeaturesRequest instance + * @returns Trial instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrial): google.cloud.aiplatform.v1beta1.Trial; /** - * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. - * @param message SearchFeaturesRequest message or plain object to encode + * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * @param message Trial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. - * @param message SearchFeaturesRequest message or plain object to encode + * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * @param message Trial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer. + * Decodes a Trial message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchFeaturesRequest + * @returns Trial * @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.aiplatform.v1beta1.SearchFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Trial; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a Trial message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchFeaturesRequest + * @returns Trial * @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.aiplatform.v1beta1.SearchFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Trial; /** - * Verifies a SearchFeaturesRequest message. + * Verifies a Trial 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 SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Trial message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchFeaturesRequest + * @returns Trial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial; /** - * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. - * @param message SearchFeaturesRequest + * Creates a plain object from a Trial message. Also converts values to other types if specified. + * @param message Trial * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchFeaturesRequest to JSON. + * Converts this Trial to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchFeaturesRequest + * Gets the default type url for Trial * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchFeaturesResponse. */ - interface ISearchFeaturesResponse { + namespace Trial { - /** SearchFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** Properties of a Parameter. */ + interface IParameter { - /** SearchFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); + /** Parameter parameterId */ + parameterId?: (string|null); + + /** Parameter value */ + value?: (google.protobuf.IValue|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter); + + /** Parameter parameterId. */ + public parameterId: string; + + /** Parameter value. */ + public value?: (google.protobuf.IValue|null); + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter): google.cloud.aiplatform.v1beta1.Trial.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @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.aiplatform.v1beta1.Trial.Parameter; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Parameter + * @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.aiplatform.v1beta1.Trial.Parameter; + + /** + * Verifies a Parameter 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 Parameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Parameter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial.Parameter; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Trial.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Parameter + * @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, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } } - /** Represents a SearchFeaturesResponse. */ - class SearchFeaturesResponse implements ISearchFeaturesResponse { + /** Properties of a StudySpec. */ + interface IStudySpec { + + /** StudySpec decayCurveStoppingSpec */ + decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + + /** StudySpec medianAutomatedStoppingSpec */ + medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + + /** StudySpec convexStopConfig */ + convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + + /** StudySpec convexAutomatedStoppingSpec */ + convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); + + /** StudySpec metrics */ + metrics?: (google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]|null); + + /** StudySpec parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]|null); + + /** StudySpec algorithm */ + algorithm?: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null); + + /** StudySpec observationNoise */ + observationNoise?: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null); + + /** StudySpec measurementSelectionType */ + measurementSelectionType?: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null); + + /** StudySpec transferLearningConfig */ + transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + } + + /** Represents a StudySpec. */ + class StudySpec implements IStudySpec { + + /** + * Constructs a new StudySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IStudySpec); + + /** StudySpec decayCurveStoppingSpec. */ + public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + + /** StudySpec medianAutomatedStoppingSpec. */ + public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + + /** StudySpec convexStopConfig. */ + public convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + + /** StudySpec convexAutomatedStoppingSpec. */ + public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); + + /** StudySpec metrics. */ + public metrics: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]; + + /** StudySpec parameters. */ + public parameters: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]; + + /** StudySpec algorithm. */ + public algorithm: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm); - /** - * Constructs a new SearchFeaturesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse); + /** StudySpec observationNoise. */ + public observationNoise: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise); - /** SearchFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** StudySpec measurementSelectionType. */ + public measurementSelectionType: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType); - /** SearchFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** StudySpec transferLearningConfig. */ + public transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + + /** StudySpec automatedStoppingSpec. */ + public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"); /** - * Creates a new SearchFeaturesResponse instance using the specified properties. + * Creates a new StudySpec instance using the specified properties. * @param [properties] Properties to set - * @returns SearchFeaturesResponse instance + * @returns StudySpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStudySpec): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. - * @param message SearchFeaturesResponse message or plain object to encode + * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * @param message StudySpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. - * @param message SearchFeaturesResponse message or plain object to encode + * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * @param message StudySpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * Decodes a StudySpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchFeaturesResponse + * @returns StudySpec * @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.aiplatform.v1beta1.SearchFeaturesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a StudySpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchFeaturesResponse + * @returns StudySpec * @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.aiplatform.v1beta1.SearchFeaturesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Verifies a SearchFeaturesResponse message. + * Verifies a StudySpec 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 SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchFeaturesResponse + * @returns StudySpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. - * @param message SearchFeaturesResponse + * Creates a plain object from a StudySpec message. Also converts values to other types if specified. + * @param message StudySpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchFeaturesResponse to JSON. + * Converts this StudySpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchFeaturesResponse + * Gets the default type url for StudySpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateFeatureRequest. */ - interface IUpdateFeatureRequest { + namespace StudySpec { - /** UpdateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** Properties of a MetricSpec. */ + interface IMetricSpec { - /** UpdateFeatureRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** MetricSpec metricId */ + metricId?: (string|null); - /** Represents an UpdateFeatureRequest. */ - class UpdateFeatureRequest implements IUpdateFeatureRequest { + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null); - /** - * Constructs a new UpdateFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest); + /** MetricSpec safetyConfig */ + safetyConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig|null); + } - /** UpdateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { - /** UpdateFeatureRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * Constructs a new MetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec); - /** - * Creates a new UpdateFeatureRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateFeatureRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; + /** MetricSpec metricId. */ + public metricId: string; - /** - * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. - * @param message UpdateFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType); - /** - * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. - * @param message UpdateFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MetricSpec safetyConfig. */ + public safetyConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig|null); - /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateFeatureRequest - * @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.aiplatform.v1beta1.UpdateFeatureRequest; + /** MetricSpec _safetyConfig. */ + public _safetyConfig?: "safetyConfig"; - /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateFeatureRequest - * @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.aiplatform.v1beta1.UpdateFeatureRequest; + /** + * Creates a new MetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; - /** - * Verifies an UpdateFeatureRequest 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); + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateFeatureRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. - * @param message UpdateFeatureRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricSpec + * @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.aiplatform.v1beta1.StudySpec.MetricSpec; - /** - * Converts this UpdateFeatureRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricSpec + * @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.aiplatform.v1beta1.StudySpec.MetricSpec; - /** - * Gets the default type url for UpdateFeatureRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a MetricSpec 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); - /** Properties of a DeleteFeatureRequest. */ - interface IDeleteFeatureRequest { + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; - /** DeleteFeatureRequest name */ - name?: (string|null); - } + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @param message MetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a DeleteFeatureRequest. */ - class DeleteFeatureRequest implements IDeleteFeatureRequest { + /** + * Converts this MetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new DeleteFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest); + /** + * Gets the default type url for MetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeleteFeatureRequest name. */ - public name: string; + namespace MetricSpec { - /** - * Creates a new DeleteFeatureRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFeatureRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; + /** Properties of a SafetyMetricConfig. */ + interface ISafetyMetricConfig { - /** - * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. - * @param message DeleteFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** SafetyMetricConfig safetyThreshold */ + safetyThreshold?: (number|null); - /** - * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. - * @param message DeleteFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** SafetyMetricConfig desiredMinSafeTrialsFraction */ + desiredMinSafeTrialsFraction?: (number|null); + } - /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteFeatureRequest - * @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.aiplatform.v1beta1.DeleteFeatureRequest; + /** Represents a SafetyMetricConfig. */ + class SafetyMetricConfig implements ISafetyMetricConfig { - /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteFeatureRequest - * @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.aiplatform.v1beta1.DeleteFeatureRequest; + /** + * Constructs a new SafetyMetricConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig); - /** - * Verifies a DeleteFeatureRequest 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); + /** SafetyMetricConfig safetyThreshold. */ + public safetyThreshold: number; - /** - * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteFeatureRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; + /** SafetyMetricConfig desiredMinSafeTrialsFraction. */ + public desiredMinSafeTrialsFraction?: (number|null); - /** - * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. - * @param message DeleteFeatureRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SafetyMetricConfig _desiredMinSafeTrialsFraction. */ + public _desiredMinSafeTrialsFraction?: "desiredMinSafeTrialsFraction"; - /** - * Converts this DeleteFeatureRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new SafetyMetricConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SafetyMetricConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig; - /** - * Gets the default type url for DeleteFeatureRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @param message SafetyMetricConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a CreateFeaturestoreOperationMetadata. */ - interface ICreateFeaturestoreOperationMetadata { + /** + * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @param message SafetyMetricConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** CreateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SafetyMetricConfig + * @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.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig; - /** Represents a CreateFeaturestoreOperationMetadata. */ - class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SafetyMetricConfig + * @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.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig; - /** - * Constructs a new CreateFeaturestoreOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata); + /** + * Verifies a SafetyMetricConfig 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); - /** CreateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Creates a SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SafetyMetricConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig; - /** - * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateFeaturestoreOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + /** + * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. + * @param message SafetyMetricConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message CreateFeaturestoreOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this SafetyMetricConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message CreateFeaturestoreOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for SafetyMetricConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateFeaturestoreOperationMetadata - * @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.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + /** GoalType enum. */ + enum GoalType { + GOAL_TYPE_UNSPECIFIED = 0, + MAXIMIZE = 1, + MINIMIZE = 2 + } + } - /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateFeaturestoreOperationMetadata - * @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.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + /** Properties of a ParameterSpec. */ + interface IParameterSpec { - /** - * Verifies a CreateFeaturestoreOperationMetadata 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); + /** ParameterSpec doubleValueSpec */ + doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); - /** - * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateFeaturestoreOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + /** ParameterSpec integerValueSpec */ + integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); - /** - * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. - * @param message CreateFeaturestoreOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ParameterSpec categoricalValueSpec */ + categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); + + /** ParameterSpec discreteValueSpec */ + discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); + + /** ParameterSpec parameterId */ + parameterId?: (string|null); + + /** ParameterSpec scaleType */ + scaleType?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null); + + /** ParameterSpec conditionalParameterSpecs */ + conditionalParameterSpecs?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]|null); + } + + /** Represents a ParameterSpec. */ + class ParameterSpec implements IParameterSpec { + + /** + * Constructs a new ParameterSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec); + + /** ParameterSpec doubleValueSpec. */ + public doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); + + /** ParameterSpec integerValueSpec. */ + public integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); + + /** ParameterSpec categoricalValueSpec. */ + public categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); + + /** ParameterSpec discreteValueSpec. */ + public discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); + + /** ParameterSpec parameterId. */ + public parameterId: string; + + /** ParameterSpec scaleType. */ + public scaleType: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType); + + /** ParameterSpec conditionalParameterSpecs. */ + public conditionalParameterSpecs: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]; + + /** ParameterSpec parameterValueSpec. */ + public parameterValueSpec?: ("doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"); + + /** + * Creates a new ParameterSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + + /** + * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. + * @param message ParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateFeaturestoreOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. + * @param message ParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for CreateFeaturestoreOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a ParameterSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec; - /** Properties of an UpdateFeaturestoreOperationMetadata. */ - interface IUpdateFeaturestoreOperationMetadata { + /** + * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParameterSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec; - /** UpdateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Verifies a ParameterSpec 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); - /** Represents an UpdateFeaturestoreOperationMetadata. */ - class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { + /** + * Creates a ParameterSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParameterSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; - /** - * Constructs a new UpdateFeaturestoreOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata); + /** + * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. + * @param message ParameterSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UpdateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Converts this ParameterSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateFeaturestoreOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + /** + * Gets the default type url for ParameterSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + namespace ParameterSpec { - /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a DoubleValueSpec. */ + interface IDoubleValueSpec { - /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateFeaturestoreOperationMetadata - * @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.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + /** DoubleValueSpec minValue */ + minValue?: (number|null); - /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateFeaturestoreOperationMetadata - * @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.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + /** DoubleValueSpec maxValue */ + maxValue?: (number|null); - /** - * Verifies an UpdateFeaturestoreOperationMetadata 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); + /** DoubleValueSpec defaultValue */ + defaultValue?: (number|null); + } - /** - * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateFeaturestoreOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + /** Represents a DoubleValueSpec. */ + class DoubleValueSpec implements IDoubleValueSpec { - /** - * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateFeaturestoreOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new DoubleValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec); - /** - * Converts this UpdateFeaturestoreOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DoubleValueSpec minValue. */ + public minValue: number; - /** - * Gets the default type url for UpdateFeaturestoreOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DoubleValueSpec maxValue. */ + public maxValue: number; - /** Properties of an ImportFeatureValuesOperationMetadata. */ - interface IImportFeatureValuesOperationMetadata { + /** DoubleValueSpec defaultValue. */ + public defaultValue?: (number|null); - /** ImportFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DoubleValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** ImportFeatureValuesOperationMetadata importedEntityCount */ - importedEntityCount?: (number|Long|string|null); + /** + * Creates a new DoubleValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DoubleValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ - importedFeatureValueCount?: (number|Long|string|null); + /** + * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @param message DoubleValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** ImportFeatureValuesOperationMetadata sourceUris */ - sourceUris?: (string[]|null); + /** + * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @param message DoubleValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** ImportFeatureValuesOperationMetadata invalidRowCount */ - invalidRowCount?: (number|Long|string|null); + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DoubleValueSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ - timestampOutsideRetentionRowsCount?: (number|Long|string|null); - } + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DoubleValueSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - /** Represents an ImportFeatureValuesOperationMetadata. */ - class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { + /** + * Verifies a DoubleValueSpec 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); - /** - * Constructs a new ImportFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata); + /** + * Creates a DoubleValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DoubleValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - /** ImportFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. + * @param message DoubleValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ImportFeatureValuesOperationMetadata importedEntityCount. */ - public importedEntityCount: (number|Long|string); + /** + * Converts this DoubleValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ - public importedFeatureValueCount: (number|Long|string); + /** + * Gets the default type url for DoubleValueSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ImportFeatureValuesOperationMetadata sourceUris. */ - public sourceUris: string[]; + /** Properties of an IntegerValueSpec. */ + interface IIntegerValueSpec { - /** ImportFeatureValuesOperationMetadata invalidRowCount. */ - public invalidRowCount: (number|Long|string); + /** IntegerValueSpec minValue */ + minValue?: (number|Long|string|null); - /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. */ - public timestampOutsideRetentionRowsCount: (number|Long|string); + /** IntegerValueSpec maxValue */ + maxValue?: (number|Long|string|null); - /** - * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportFeatureValuesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + /** IntegerValueSpec defaultValue */ + defaultValue?: (number|Long|string|null); + } - /** - * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ImportFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an IntegerValueSpec. */ + class IntegerValueSpec implements IIntegerValueSpec { - /** - * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ImportFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new IntegerValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec); - /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesOperationMetadata - * @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.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + /** IntegerValueSpec minValue. */ + public minValue: (number|Long|string); - /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesOperationMetadata - * @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.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + /** IntegerValueSpec maxValue. */ + public maxValue: (number|Long|string); - /** - * Verifies an ImportFeatureValuesOperationMetadata 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); + /** IntegerValueSpec defaultValue. */ + public defaultValue?: (number|Long|string|null); - /** - * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportFeatureValuesOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + /** IntegerValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** - * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message ImportFeatureValuesOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new IntegerValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns IntegerValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - /** - * Converts this ImportFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @param message IntegerValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ImportFeatureValuesOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @param message IntegerValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an ExportFeatureValuesOperationMetadata. */ - interface IExportFeatureValuesOperationMetadata { + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntegerValueSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - /** ExportFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntegerValueSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - /** Represents an ExportFeatureValuesOperationMetadata. */ - class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { + /** + * Verifies an IntegerValueSpec 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); - /** - * Constructs a new ExportFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata); + /** + * Creates an IntegerValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntegerValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - /** ExportFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. + * @param message IntegerValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportFeatureValuesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + /** + * Converts this IntegerValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ExportFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for IntegerValueSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ExportFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a CategoricalValueSpec. */ + interface ICategoricalValueSpec { - /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesOperationMetadata - * @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.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + /** CategoricalValueSpec values */ + values?: (string[]|null); - /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesOperationMetadata - * @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.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + /** CategoricalValueSpec defaultValue */ + defaultValue?: (string|null); + } - /** - * Verifies an ExportFeatureValuesOperationMetadata 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); + /** Represents a CategoricalValueSpec. */ + class CategoricalValueSpec implements ICategoricalValueSpec { - /** - * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportFeatureValuesOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + /** + * Constructs a new CategoricalValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec); - /** - * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message ExportFeatureValuesOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CategoricalValueSpec values. */ + public values: string[]; - /** - * Converts this ExportFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CategoricalValueSpec defaultValue. */ + public defaultValue?: (string|null); - /** - * Gets the default type url for ExportFeatureValuesOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CategoricalValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** Properties of a BatchReadFeatureValuesOperationMetadata. */ - interface IBatchReadFeatureValuesOperationMetadata { + /** + * Creates a new CategoricalValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - /** BatchReadFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @param message CategoricalValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a BatchReadFeatureValuesOperationMetadata. */ - class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { + /** + * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @param message CategoricalValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new BatchReadFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata); + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalValueSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalValueSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - /** - * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchReadFeatureValuesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + /** + * Verifies a CategoricalValueSpec 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); - /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. - * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. - * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. + * @param message CategoricalValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesOperationMetadata - * @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.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + /** + * Converts this CategoricalValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesOperationMetadata - * @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.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + /** + * Gets the default type url for CategoricalValueSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a BatchReadFeatureValuesOperationMetadata 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); + /** Properties of a DiscreteValueSpec. */ + interface IDiscreteValueSpec { - /** - * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchReadFeatureValuesOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + /** DiscreteValueSpec values */ + values?: (number[]|null); - /** - * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DiscreteValueSpec defaultValue */ + defaultValue?: (number|null); + } - /** - * Converts this BatchReadFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a DiscreteValueSpec. */ + class DiscreteValueSpec implements IDiscreteValueSpec { - /** - * Gets the default type url for BatchReadFeatureValuesOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new DiscreteValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec); - /** Properties of a DeleteFeatureValuesOperationMetadata. */ - interface IDeleteFeatureValuesOperationMetadata { + /** DiscreteValueSpec values. */ + public values: number[]; - /** DeleteFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** DiscreteValueSpec defaultValue. */ + public defaultValue?: (number|null); - /** Represents a DeleteFeatureValuesOperationMetadata. */ - class DeleteFeatureValuesOperationMetadata implements IDeleteFeatureValuesOperationMetadata { + /** DiscreteValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** - * Constructs a new DeleteFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata); + /** + * Creates a new DiscreteValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DiscreteValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; - /** DeleteFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @param message DiscreteValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFeatureValuesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; + /** + * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @param message DiscreteValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. - * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DiscreteValueSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; - /** - * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. - * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DiscreteValueSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; - /** - * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteFeatureValuesOperationMetadata - * @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.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; + /** + * Verifies a DiscreteValueSpec 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); - /** - * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteFeatureValuesOperationMetadata - * @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.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; + /** + * Creates a DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DiscreteValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; - /** - * Verifies a DeleteFeatureValuesOperationMetadata 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 plain object from a DiscreteValueSpec message. Also converts values to other types if specified. + * @param message DiscreteValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a DeleteFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteFeatureValuesOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; + /** + * Converts this DiscreteValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a DeleteFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteFeatureValuesOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for DiscreteValueSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this DeleteFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a ConditionalParameterSpec. */ + interface IConditionalParameterSpec { - /** - * Gets the default type url for DeleteFeatureValuesOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ConditionalParameterSpec parentDiscreteValues */ + parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); - /** Properties of a CreateEntityTypeOperationMetadata. */ - interface ICreateEntityTypeOperationMetadata { + /** ConditionalParameterSpec parentIntValues */ + parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); - /** CreateEntityTypeOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** ConditionalParameterSpec parentCategoricalValues */ + parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); - /** Represents a CreateEntityTypeOperationMetadata. */ - class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { + /** ConditionalParameterSpec parameterSpec */ + parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); + } - /** - * Constructs a new CreateEntityTypeOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata); + /** Represents a ConditionalParameterSpec. */ + class ConditionalParameterSpec implements IConditionalParameterSpec { - /** CreateEntityTypeOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Constructs a new ConditionalParameterSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec); - /** - * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateEntityTypeOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + /** ConditionalParameterSpec parentDiscreteValues. */ + public parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); - /** - * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. - * @param message CreateEntityTypeOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConditionalParameterSpec parentIntValues. */ + public parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); - /** - * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. - * @param message CreateEntityTypeOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConditionalParameterSpec parentCategoricalValues. */ + public parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); - /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateEntityTypeOperationMetadata - * @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.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + /** ConditionalParameterSpec parameterSpec. */ + public parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); - /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeOperationMetadata - * @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.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + /** ConditionalParameterSpec parentValueCondition. */ + public parentValueCondition?: ("parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"); - /** - * Verifies a CreateEntityTypeOperationMetadata 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 new ConditionalParameterSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ConditionalParameterSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; - /** - * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateEntityTypeOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + /** + * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @param message ConditionalParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. - * @param message CreateEntityTypeOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @param message ConditionalParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateEntityTypeOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConditionalParameterSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; - /** - * Gets the default type url for CreateEntityTypeOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConditionalParameterSpec + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; - /** Properties of a CreateFeatureOperationMetadata. */ - interface ICreateFeatureOperationMetadata { + /** + * Verifies a ConditionalParameterSpec 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); - /** CreateFeatureOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConditionalParameterSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; - /** Represents a CreateFeatureOperationMetadata. */ - class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { + /** + * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. + * @param message ConditionalParameterSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new CreateFeatureOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata); + /** + * Converts this ConditionalParameterSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CreateFeatureOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Gets the default type url for ConditionalParameterSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new CreateFeatureOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateFeatureOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; + namespace ConditionalParameterSpec { - /** - * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. - * @param message CreateFeatureOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a DiscreteValueCondition. */ + interface IDiscreteValueCondition { - /** - * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. - * @param message CreateFeatureOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** DiscreteValueCondition values */ + values?: (number[]|null); + } - /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateFeatureOperationMetadata - * @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.aiplatform.v1beta1.CreateFeatureOperationMetadata; + /** Represents a DiscreteValueCondition. */ + class DiscreteValueCondition implements IDiscreteValueCondition { - /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateFeatureOperationMetadata - * @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.aiplatform.v1beta1.CreateFeatureOperationMetadata; + /** + * Constructs a new DiscreteValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition); - /** - * Verifies a CreateFeatureOperationMetadata 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); + /** DiscreteValueCondition values. */ + public values: number[]; - /** - * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateFeatureOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; + /** + * Creates a new DiscreteValueCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns DiscreteValueCondition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; - /** - * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. - * @param message CreateFeatureOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @param message DiscreteValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateFeatureOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @param message DiscreteValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for CreateFeatureOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DiscreteValueCondition + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; - /** Properties of a BatchCreateFeaturesOperationMetadata. */ - interface IBatchCreateFeaturesOperationMetadata { + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DiscreteValueCondition + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; - /** BatchCreateFeaturesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Verifies a DiscreteValueCondition 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); - /** Represents a BatchCreateFeaturesOperationMetadata. */ - class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { + /** + * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DiscreteValueCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; - /** - * Constructs a new BatchCreateFeaturesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata); + /** + * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. + * @param message DiscreteValueCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** BatchCreateFeaturesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Converts this DiscreteValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchCreateFeaturesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + /** + * Gets the default type url for DiscreteValueCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an IntValueCondition. */ + interface IIntValueCondition { - /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** IntValueCondition values */ + values?: ((number|Long|string)[]|null); + } - /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesOperationMetadata - * @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.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + /** Represents an IntValueCondition. */ + class IntValueCondition implements IIntValueCondition { - /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesOperationMetadata - * @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.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + /** + * Constructs a new IntValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition); - /** - * Verifies a BatchCreateFeaturesOperationMetadata 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); + /** IntValueCondition values. */ + public values: (number|Long|string)[]; - /** - * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchCreateFeaturesOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + /** + * Creates a new IntValueCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns IntValueCondition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; - /** - * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @param message IntValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this BatchCreateFeaturesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @param message IntValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for BatchCreateFeaturesOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an IntValueCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntValueCondition + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; - /** Properties of a DeleteFeatureValuesRequest. */ - interface IDeleteFeatureValuesRequest { + /** + * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntValueCondition + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; - /** DeleteFeatureValuesRequest selectEntity */ - selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); + /** + * Verifies an IntValueCondition 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); - /** DeleteFeatureValuesRequest selectTimeRangeAndFeature */ - selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + /** + * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntValueCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; - /** DeleteFeatureValuesRequest entityType */ - entityType?: (string|null); - } + /** + * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. + * @param message IntValueCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a DeleteFeatureValuesRequest. */ - class DeleteFeatureValuesRequest implements IDeleteFeatureValuesRequest { + /** + * Converts this IntValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new DeleteFeatureValuesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest); + /** + * Gets the default type url for IntValueCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeleteFeatureValuesRequest selectEntity. */ - public selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); + /** Properties of a CategoricalValueCondition. */ + interface ICategoricalValueCondition { - /** DeleteFeatureValuesRequest selectTimeRangeAndFeature. */ - public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + /** CategoricalValueCondition values */ + values?: (string[]|null); + } - /** DeleteFeatureValuesRequest entityType. */ - public entityType: string; + /** Represents a CategoricalValueCondition. */ + class CategoricalValueCondition implements ICategoricalValueCondition { - /** DeleteFeatureValuesRequest DeleteOption. */ - public DeleteOption?: ("selectEntity"|"selectTimeRangeAndFeature"); + /** + * Constructs a new CategoricalValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition); - /** - * Creates a new DeleteFeatureValuesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFeatureValuesRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; + /** CategoricalValueCondition values. */ + public values: string[]; - /** - * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.verify|verify} messages. - * @param message DeleteFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CategoricalValueCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalValueCondition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; - /** - * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.verify|verify} messages. - * @param message DeleteFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @param message CategoricalValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteFeatureValuesRequest - * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest; + /** + * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @param message CategoricalValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteFeatureValuesRequest - * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest; + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalValueCondition + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; - /** - * Verifies a DeleteFeatureValuesRequest 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); + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalValueCondition + * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; - /** - * Creates a DeleteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteFeatureValuesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; + /** + * Verifies a CategoricalValueCondition 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 plain object from a DeleteFeatureValuesRequest message. Also converts values to other types if specified. - * @param message DeleteFeatureValuesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalValueCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; - /** - * Converts this DeleteFeatureValuesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. + * @param message CategoricalValueCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for DeleteFeatureValuesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this CategoricalValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace DeleteFeatureValuesRequest { + /** + * Gets the default type url for CategoricalValueCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** Properties of a SelectEntity. */ - interface ISelectEntity { + /** ScaleType enum. */ + enum ScaleType { + SCALE_TYPE_UNSPECIFIED = 0, + UNIT_LINEAR_SCALE = 1, + UNIT_LOG_SCALE = 2, + UNIT_REVERSE_LOG_SCALE = 3 + } + } - /** SelectEntity entityIdSelector */ - entityIdSelector?: (google.cloud.aiplatform.v1beta1.IEntityIdSelector|null); + /** Properties of a DecayCurveAutomatedStoppingSpec. */ + interface IDecayCurveAutomatedStoppingSpec { + + /** DecayCurveAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); } - /** Represents a SelectEntity. */ - class SelectEntity implements ISelectEntity { + /** Represents a DecayCurveAutomatedStoppingSpec. */ + class DecayCurveAutomatedStoppingSpec implements IDecayCurveAutomatedStoppingSpec { /** - * Constructs a new SelectEntity. + * Constructs a new DecayCurveAutomatedStoppingSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity); + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec); - /** SelectEntity entityIdSelector. */ - public entityIdSelector?: (google.cloud.aiplatform.v1beta1.IEntityIdSelector|null); + /** DecayCurveAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; /** - * Creates a new SelectEntity instance using the specified properties. + * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. * @param [properties] Properties to set - * @returns SelectEntity instance + * @returns DecayCurveAutomatedStoppingSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; /** - * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. - * @param message SelectEntity message or plain object to encode + * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. - * @param message SelectEntity message or plain object to encode + * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SelectEntity message from the specified reader or buffer. + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SelectEntity + * @returns DecayCurveAutomatedStoppingSpec * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; /** - * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SelectEntity + * @returns DecayCurveAutomatedStoppingSpec * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; /** - * Verifies a SelectEntity message. + * Verifies a DecayCurveAutomatedStoppingSpec 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 SelectEntity message from a plain object. Also converts values to their respective internal types. + * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SelectEntity + * @returns DecayCurveAutomatedStoppingSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; /** - * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. - * @param message SelectEntity + * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. + * @param message DecayCurveAutomatedStoppingSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SelectEntity to JSON. + * Converts this DecayCurveAutomatedStoppingSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SelectEntity + * Gets the default type url for DecayCurveAutomatedStoppingSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SelectTimeRangeAndFeature. */ - interface ISelectTimeRangeAndFeature { - - /** SelectTimeRangeAndFeature timeRange */ - timeRange?: (google.type.IInterval|null); - - /** SelectTimeRangeAndFeature featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** Properties of a MedianAutomatedStoppingSpec. */ + interface IMedianAutomatedStoppingSpec { - /** SelectTimeRangeAndFeature skipOnlineStorageDelete */ - skipOnlineStorageDelete?: (boolean|null); + /** MedianAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); } - /** Represents a SelectTimeRangeAndFeature. */ - class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + /** Represents a MedianAutomatedStoppingSpec. */ + class MedianAutomatedStoppingSpec implements IMedianAutomatedStoppingSpec { /** - * Constructs a new SelectTimeRangeAndFeature. + * Constructs a new MedianAutomatedStoppingSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature); - - /** SelectTimeRangeAndFeature timeRange. */ - public timeRange?: (google.type.IInterval|null); - - /** SelectTimeRangeAndFeature featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec); - /** SelectTimeRangeAndFeature skipOnlineStorageDelete. */ - public skipOnlineStorageDelete: boolean; + /** MedianAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; /** - * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. * @param [properties] Properties to set - * @returns SelectTimeRangeAndFeature instance + * @returns MedianAutomatedStoppingSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; /** - * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. - * @param message SelectTimeRangeAndFeature message or plain object to encode + * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @param message MedianAutomatedStoppingSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. - * @param message SelectTimeRangeAndFeature message or plain object to encode + * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @param message MedianAutomatedStoppingSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SelectTimeRangeAndFeature + * @returns MedianAutomatedStoppingSpec * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SelectTimeRangeAndFeature + * @returns MedianAutomatedStoppingSpec * @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.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; /** - * Verifies a SelectTimeRangeAndFeature message. + * Verifies a MedianAutomatedStoppingSpec 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 SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SelectTimeRangeAndFeature + * @returns MedianAutomatedStoppingSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; /** - * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. - * @param message SelectTimeRangeAndFeature + * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. + * @param message MedianAutomatedStoppingSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SelectTimeRangeAndFeature to JSON. + * Converts this MedianAutomatedStoppingSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SelectTimeRangeAndFeature + * Gets the default type url for MedianAutomatedStoppingSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - - /** Properties of a DeleteFeatureValuesResponse. */ - interface IDeleteFeatureValuesResponse { - } - - /** Represents a DeleteFeatureValuesResponse. */ - class DeleteFeatureValuesResponse implements IDeleteFeatureValuesResponse { - - /** - * Constructs a new DeleteFeatureValuesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse); - - /** - * Creates a new DeleteFeatureValuesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFeatureValuesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; - - /** - * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.verify|verify} messages. - * @param message DeleteFeatureValuesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.verify|verify} messages. - * @param message DeleteFeatureValuesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteFeatureValuesResponse - * @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.aiplatform.v1beta1.DeleteFeatureValuesResponse; - - /** - * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteFeatureValuesResponse - * @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.aiplatform.v1beta1.DeleteFeatureValuesResponse; - - /** - * Verifies a DeleteFeatureValuesResponse 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 DeleteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteFeatureValuesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; - - /** - * Creates a plain object from a DeleteFeatureValuesResponse message. Also converts values to other types if specified. - * @param message DeleteFeatureValuesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteFeatureValuesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteFeatureValuesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EntityIdSelector. */ - interface IEntityIdSelector { - - /** EntityIdSelector csvSource */ - csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** EntityIdSelector entityIdField */ - entityIdField?: (string|null); - } - - /** Represents an EntityIdSelector. */ - class EntityIdSelector implements IEntityIdSelector { - - /** - * Constructs a new EntityIdSelector. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityIdSelector); - - /** EntityIdSelector csvSource. */ - public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** EntityIdSelector entityIdField. */ - public entityIdField: string; - - /** EntityIdSelector EntityIdsSource. */ - public EntityIdsSource?: "csvSource"; - - /** - * Creates a new EntityIdSelector instance using the specified properties. - * @param [properties] Properties to set - * @returns EntityIdSelector instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityIdSelector): google.cloud.aiplatform.v1beta1.EntityIdSelector; - - /** - * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityIdSelector.verify|verify} messages. - * @param message EntityIdSelector message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityIdSelector.verify|verify} messages. - * @param message EntityIdSelector message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EntityIdSelector message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EntityIdSelector - * @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.aiplatform.v1beta1.EntityIdSelector; - - /** - * Decodes an EntityIdSelector message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EntityIdSelector - * @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.aiplatform.v1beta1.EntityIdSelector; - - /** - * Verifies an EntityIdSelector 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 an EntityIdSelector message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EntityIdSelector - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityIdSelector; - - /** - * Creates a plain object from an EntityIdSelector message. Also converts values to other types if specified. - * @param message EntityIdSelector - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.EntityIdSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EntityIdSelector to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EntityIdSelector - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a HyperparameterTuningJob. */ - interface IHyperparameterTuningJob { - - /** HyperparameterTuningJob name */ - name?: (string|null); - - /** HyperparameterTuningJob displayName */ - displayName?: (string|null); - - /** HyperparameterTuningJob studySpec */ - studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - - /** HyperparameterTuningJob maxTrialCount */ - maxTrialCount?: (number|null); - - /** HyperparameterTuningJob parallelTrialCount */ - parallelTrialCount?: (number|null); - - /** HyperparameterTuningJob maxFailedTrialCount */ - maxFailedTrialCount?: (number|null); - - /** HyperparameterTuningJob trialJobSpec */ - trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** HyperparameterTuningJob trials */ - trials?: (google.cloud.aiplatform.v1beta1.ITrial[]|null); - - /** HyperparameterTuningJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** HyperparameterTuningJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob error */ - error?: (google.rpc.IStatus|null); - - /** HyperparameterTuningJob labels */ - labels?: ({ [k: string]: string }|null); - - /** HyperparameterTuningJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - } - /** Represents a HyperparameterTuningJob. */ - class HyperparameterTuningJob implements IHyperparameterTuningJob { - - /** - * Constructs a new HyperparameterTuningJob. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob); - - /** HyperparameterTuningJob name. */ - public name: string; - - /** HyperparameterTuningJob displayName. */ - public displayName: string; - - /** HyperparameterTuningJob studySpec. */ - public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - - /** HyperparameterTuningJob maxTrialCount. */ - public maxTrialCount: number; - - /** HyperparameterTuningJob parallelTrialCount. */ - public parallelTrialCount: number; - - /** HyperparameterTuningJob maxFailedTrialCount. */ - public maxFailedTrialCount: number; - - /** HyperparameterTuningJob trialJobSpec. */ - public trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + /** Properties of a ConvexAutomatedStoppingSpec. */ + interface IConvexAutomatedStoppingSpec { - /** HyperparameterTuningJob trials. */ - public trials: google.cloud.aiplatform.v1beta1.ITrial[]; + /** ConvexAutomatedStoppingSpec maxStepCount */ + maxStepCount?: (number|Long|string|null); - /** HyperparameterTuningJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); + /** ConvexAutomatedStoppingSpec minStepCount */ + minStepCount?: (number|Long|string|null); - /** HyperparameterTuningJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ConvexAutomatedStoppingSpec minMeasurementCount */ + minMeasurementCount?: (number|Long|string|null); - /** HyperparameterTuningJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ConvexAutomatedStoppingSpec learningRateParameterName */ + learningRateParameterName?: (string|null); - /** HyperparameterTuningJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** ConvexAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); - /** HyperparameterTuningJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ConvexAutomatedStoppingSpec updateAllStoppedTrials */ + updateAllStoppedTrials?: (boolean|null); + } - /** HyperparameterTuningJob error. */ - public error?: (google.rpc.IStatus|null); + /** Represents a ConvexAutomatedStoppingSpec. */ + class ConvexAutomatedStoppingSpec implements IConvexAutomatedStoppingSpec { - /** HyperparameterTuningJob labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new ConvexAutomatedStoppingSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec); - /** HyperparameterTuningJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ConvexAutomatedStoppingSpec maxStepCount. */ + public maxStepCount: (number|Long|string); - /** - * Creates a new HyperparameterTuningJob instance using the specified properties. - * @param [properties] Properties to set - * @returns HyperparameterTuningJob instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + /** ConvexAutomatedStoppingSpec minStepCount. */ + public minStepCount: (number|Long|string); - /** - * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. - * @param message HyperparameterTuningJob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexAutomatedStoppingSpec minMeasurementCount. */ + public minMeasurementCount: (number|Long|string); - /** - * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. - * @param message HyperparameterTuningJob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexAutomatedStoppingSpec learningRateParameterName. */ + public learningRateParameterName: string; - /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns HyperparameterTuningJob - * @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.aiplatform.v1beta1.HyperparameterTuningJob; + /** ConvexAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; - /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns HyperparameterTuningJob - * @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.aiplatform.v1beta1.HyperparameterTuningJob; + /** ConvexAutomatedStoppingSpec updateAllStoppedTrials. */ + public updateAllStoppedTrials?: (boolean|null); - /** - * Verifies a HyperparameterTuningJob 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); + /** ConvexAutomatedStoppingSpec _updateAllStoppedTrials. */ + public _updateAllStoppedTrials?: "updateAllStoppedTrials"; - /** - * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns HyperparameterTuningJob - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + /** + * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ConvexAutomatedStoppingSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** - * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. - * @param message HyperparameterTuningJob - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this HyperparameterTuningJob to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for HyperparameterTuningJob - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConvexAutomatedStoppingSpec + * @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.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** Properties of a Study. */ - interface IStudy { + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConvexAutomatedStoppingSpec + * @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.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** Study name */ - name?: (string|null); + /** + * Verifies a ConvexAutomatedStoppingSpec 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); - /** Study displayName */ - displayName?: (string|null); + /** + * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConvexAutomatedStoppingSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** Study studySpec */ - studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + /** + * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. + * @param message ConvexAutomatedStoppingSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Study state */ - state?: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State|null); + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Study createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for ConvexAutomatedStoppingSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Study inactiveReason */ - inactiveReason?: (string|null); - } + /** Properties of a ConvexStopConfig. */ + interface IConvexStopConfig { - /** Represents a Study. */ - class Study implements IStudy { + /** ConvexStopConfig maxNumSteps */ + maxNumSteps?: (number|Long|string|null); - /** - * Constructs a new Study. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStudy); + /** ConvexStopConfig minNumSteps */ + minNumSteps?: (number|Long|string|null); - /** Study name. */ - public name: string; + /** ConvexStopConfig autoregressiveOrder */ + autoregressiveOrder?: (number|Long|string|null); - /** Study displayName. */ - public displayName: string; + /** ConvexStopConfig learningRateParameterName */ + learningRateParameterName?: (string|null); - /** Study studySpec. */ - public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + /** ConvexStopConfig useSeconds */ + useSeconds?: (boolean|null); + } - /** Study state. */ - public state: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State); + /** Represents a ConvexStopConfig. */ + class ConvexStopConfig implements IConvexStopConfig { - /** Study createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new ConvexStopConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig); - /** Study inactiveReason. */ - public inactiveReason: string; + /** ConvexStopConfig maxNumSteps. */ + public maxNumSteps: (number|Long|string); - /** - * Creates a new Study instance using the specified properties. - * @param [properties] Properties to set - * @returns Study instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStudy): google.cloud.aiplatform.v1beta1.Study; + /** ConvexStopConfig minNumSteps. */ + public minNumSteps: (number|Long|string); - /** - * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. - * @param message Study message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexStopConfig autoregressiveOrder. */ + public autoregressiveOrder: (number|Long|string); - /** - * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. - * @param message Study message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexStopConfig learningRateParameterName. */ + public learningRateParameterName: string; - /** - * Decodes a Study message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Study - * @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.aiplatform.v1beta1.Study; + /** ConvexStopConfig useSeconds. */ + public useSeconds: boolean; - /** - * Decodes a Study message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Study - * @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.aiplatform.v1beta1.Study; + /** + * Creates a new ConvexStopConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ConvexStopConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - /** - * Verifies a Study 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); + /** + * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @param message ConvexStopConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a Study message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Study - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Study; + /** + * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @param message ConvexStopConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Study message. Also converts values to other types if specified. - * @param message Study - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConvexStopConfig + * @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.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - /** - * Converts this Study to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConvexStopConfig + * @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.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - /** - * Gets the default type url for Study - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a ConvexStopConfig 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); - namespace Study { + /** + * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConvexStopConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - INACTIVE = 2, - COMPLETED = 3 + /** + * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. + * @param message ConvexStopConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConvexStopConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConvexStopConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Properties of a Trial. */ - interface ITrial { + /** Properties of a TransferLearningConfig. */ + interface ITransferLearningConfig { - /** Trial name */ - name?: (string|null); + /** TransferLearningConfig disableTransferLearning */ + disableTransferLearning?: (boolean|null); - /** Trial id */ - id?: (string|null); + /** TransferLearningConfig priorStudyNames */ + priorStudyNames?: (string[]|null); + } - /** Trial state */ - state?: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State|null); + /** Represents a TransferLearningConfig. */ + class TransferLearningConfig implements ITransferLearningConfig { - /** Trial parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.Trial.IParameter[]|null); + /** + * Constructs a new TransferLearningConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig); - /** Trial finalMeasurement */ - finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + /** TransferLearningConfig disableTransferLearning. */ + public disableTransferLearning: boolean; - /** Trial measurements */ - measurements?: (google.cloud.aiplatform.v1beta1.IMeasurement[]|null); + /** TransferLearningConfig priorStudyNames. */ + public priorStudyNames: string[]; - /** Trial startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new TransferLearningConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TransferLearningConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; - /** Trial endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @param message TransferLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Trial clientId */ - clientId?: (string|null); + /** + * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @param message TransferLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Trial infeasibleReason */ - infeasibleReason?: (string|null); + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TransferLearningConfig + * @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.aiplatform.v1beta1.StudySpec.TransferLearningConfig; - /** Trial customJob */ - customJob?: (string|null); + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TransferLearningConfig + * @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.aiplatform.v1beta1.StudySpec.TransferLearningConfig; - /** Trial webAccessUris */ - webAccessUris?: ({ [k: string]: string }|null); - } + /** + * Verifies a TransferLearningConfig 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); - /** Represents a Trial. */ - class Trial implements ITrial { + /** + * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TransferLearningConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; - /** - * Constructs a new Trial. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrial); + /** + * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. + * @param message TransferLearningConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Trial name. */ - public name: string; + /** + * Converts this TransferLearningConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Trial id. */ - public id: string; + /** + * Gets the default type url for TransferLearningConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Trial state. */ - public state: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State); + /** Algorithm enum. */ + enum Algorithm { + ALGORITHM_UNSPECIFIED = 0, + GRID_SEARCH = 2, + RANDOM_SEARCH = 3 + } - /** Trial parameters. */ - public parameters: google.cloud.aiplatform.v1beta1.Trial.IParameter[]; + /** ObservationNoise enum. */ + enum ObservationNoise { + OBSERVATION_NOISE_UNSPECIFIED = 0, + LOW = 1, + HIGH = 2 + } - /** Trial finalMeasurement. */ - public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + /** MeasurementSelectionType enum. */ + enum MeasurementSelectionType { + MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0, + LAST_MEASUREMENT = 1, + BEST_MEASUREMENT = 2 + } + } - /** Trial measurements. */ - public measurements: google.cloud.aiplatform.v1beta1.IMeasurement[]; + /** Properties of a Measurement. */ + interface IMeasurement { - /** Trial startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** Measurement elapsedDuration */ + elapsedDuration?: (google.protobuf.IDuration|null); - /** Trial endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** Measurement stepCount */ + stepCount?: (number|Long|string|null); - /** Trial clientId. */ - public clientId: string; + /** Measurement metrics */ + metrics?: (google.cloud.aiplatform.v1beta1.Measurement.IMetric[]|null); + } - /** Trial infeasibleReason. */ - public infeasibleReason: string; + /** Represents a Measurement. */ + class Measurement implements IMeasurement { - /** Trial customJob. */ - public customJob: string; + /** + * Constructs a new Measurement. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IMeasurement); + + /** Measurement elapsedDuration. */ + public elapsedDuration?: (google.protobuf.IDuration|null); - /** Trial webAccessUris. */ - public webAccessUris: { [k: string]: string }; + /** Measurement stepCount. */ + public stepCount: (number|Long|string); + + /** Measurement metrics. */ + public metrics: google.cloud.aiplatform.v1beta1.Measurement.IMetric[]; /** - * Creates a new Trial instance using the specified properties. + * Creates a new Measurement instance using the specified properties. * @param [properties] Properties to set - * @returns Trial instance + * @returns Measurement instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrial): google.cloud.aiplatform.v1beta1.Trial; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMeasurement): google.cloud.aiplatform.v1beta1.Measurement; /** - * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. - * @param message Trial message or plain object to encode + * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @param message Measurement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. - * @param message Trial message or plain object to encode + * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @param message Measurement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Trial message from the specified reader or buffer. + * Decodes a Measurement message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Trial + * @returns Measurement * @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.aiplatform.v1beta1.Trial; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Measurement; /** - * Decodes a Trial message from the specified reader or buffer, length delimited. + * Decodes a Measurement message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Trial + * @returns Measurement * @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.aiplatform.v1beta1.Trial; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Measurement; /** - * Verifies a Trial message. + * Verifies a Measurement 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 Trial message from a plain object. Also converts values to their respective internal types. + * Creates a Measurement message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Trial + * @returns Measurement */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement; /** - * Creates a plain object from a Trial message. Also converts values to other types if specified. - * @param message Trial + * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * @param message Measurement * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Trial to JSON. + * Converts this Measurement to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Trial + * Gets the default type url for Measurement * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Trial { + namespace Measurement { - /** Properties of a Parameter. */ - interface IParameter { + /** Properties of a Metric. */ + interface IMetric { - /** Parameter parameterId */ - parameterId?: (string|null); + /** Metric metricId */ + metricId?: (string|null); - /** Parameter value */ - value?: (google.protobuf.IValue|null); + /** Metric value */ + value?: (number|null); } - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** Represents a Metric. */ + class Metric implements IMetric { /** - * Constructs a new Parameter. + * Constructs a new Metric. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter); + constructor(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric); - /** Parameter parameterId. */ - public parameterId: string; + /** Metric metricId. */ + public metricId: string; - /** Parameter value. */ - public value?: (google.protobuf.IValue|null); + /** Metric value. */ + public value: number; /** - * Creates a new Parameter instance using the specified properties. + * Creates a new Metric instance using the specified properties. * @param [properties] Properties to set - * @returns Parameter instance + * @returns Metric instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter): google.cloud.aiplatform.v1beta1.Trial.Parameter; + public static create(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric): google.cloud.aiplatform.v1beta1.Measurement.Metric; /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Parameter message from the specified reader or buffer. + * Decodes a Metric message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Parameter + * @returns Metric * @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.aiplatform.v1beta1.Trial.Parameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Measurement.Metric; /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. + * Decodes a Metric message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Parameter + * @returns Metric * @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.aiplatform.v1beta1.Trial.Parameter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Measurement.Metric; /** - * Verifies a Parameter message. + * Verifies a Metric 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 Parameter message from a plain object. Also converts values to their respective internal types. + * Creates a Metric message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Parameter + * @returns Metric */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial.Parameter; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement.Metric; /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Trial.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Parameter to JSON. + * Converts this Metric to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Parameter + * Gets the default type url for Metric * @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, - REQUESTED = 1, - ACTIVE = 2, - STOPPING = 3, - SUCCEEDED = 4, - INFEASIBLE = 5 - } } - /** Properties of a StudySpec. */ - interface IStudySpec { + /** Properties of an Index. */ + interface IIndex { - /** StudySpec decayCurveStoppingSpec */ - decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + /** Index name */ + name?: (string|null); - /** StudySpec medianAutomatedStoppingSpec */ - medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** Index displayName */ + displayName?: (string|null); - /** StudySpec convexStopConfig */ - convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + /** Index description */ + description?: (string|null); - /** StudySpec convexAutomatedStoppingSpec */ - convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); + /** Index metadataSchemaUri */ + metadataSchemaUri?: (string|null); - /** StudySpec metrics */ - metrics?: (google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]|null); + /** Index metadata */ + metadata?: (google.protobuf.IValue|null); - /** StudySpec parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]|null); + /** Index deployedIndexes */ + deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]|null); - /** StudySpec algorithm */ - algorithm?: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null); + /** Index etag */ + etag?: (string|null); - /** StudySpec observationNoise */ - observationNoise?: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null); + /** Index labels */ + labels?: ({ [k: string]: string }|null); - /** StudySpec measurementSelectionType */ - measurementSelectionType?: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null); + /** Index createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** StudySpec transferLearningConfig */ - transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + /** Index updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Index indexStats */ + indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + + /** Index indexUpdateMethod */ + indexUpdateMethod?: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null); } - /** Represents a StudySpec. */ - class StudySpec implements IStudySpec { + /** Represents an Index. */ + class Index implements IIndex { /** - * Constructs a new StudySpec. + * Constructs a new Index. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStudySpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndex); - /** StudySpec decayCurveStoppingSpec. */ - public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + /** Index name. */ + public name: string; - /** StudySpec medianAutomatedStoppingSpec. */ - public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** Index displayName. */ + public displayName: string; - /** StudySpec convexStopConfig. */ - public convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + /** Index description. */ + public description: string; - /** StudySpec convexAutomatedStoppingSpec. */ - public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); + /** Index metadataSchemaUri. */ + public metadataSchemaUri: string; - /** StudySpec metrics. */ - public metrics: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]; + /** Index metadata. */ + public metadata?: (google.protobuf.IValue|null); - /** StudySpec parameters. */ - public parameters: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]; + /** Index deployedIndexes. */ + public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]; - /** StudySpec algorithm. */ - public algorithm: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm); + /** Index etag. */ + public etag: string; - /** StudySpec observationNoise. */ - public observationNoise: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise); + /** Index labels. */ + public labels: { [k: string]: string }; - /** StudySpec measurementSelectionType. */ - public measurementSelectionType: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType); + /** Index createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** StudySpec transferLearningConfig. */ - public transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + /** Index updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** StudySpec automatedStoppingSpec. */ - public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"); + /** Index indexStats. */ + public indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + + /** Index indexUpdateMethod. */ + public indexUpdateMethod: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod); /** - * Creates a new StudySpec instance using the specified properties. + * Creates a new Index instance using the specified properties. * @param [properties] Properties to set - * @returns StudySpec instance + * @returns Index instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStudySpec): google.cloud.aiplatform.v1beta1.StudySpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndex): google.cloud.aiplatform.v1beta1.Index; /** - * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. - * @param message StudySpec message or plain object to encode + * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @param message Index message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. - * @param message StudySpec message or plain object to encode + * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @param message Index message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StudySpec message from the specified reader or buffer. + * Decodes an Index message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StudySpec + * @returns Index * @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.aiplatform.v1beta1.StudySpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Index; /** - * Decodes a StudySpec message from the specified reader or buffer, length delimited. + * Decodes an Index message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StudySpec + * @returns Index * @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.aiplatform.v1beta1.StudySpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Index; /** - * Verifies a StudySpec message. + * Verifies an Index 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 StudySpec message from a plain object. Also converts values to their respective internal types. + * Creates an Index message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StudySpec + * @returns Index */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Index; /** - * Creates a plain object from a StudySpec message. Also converts values to other types if specified. - * @param message StudySpec + * Creates a plain object from an Index message. Also converts values to other types if specified. + * @param message Index * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Index, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StudySpec to JSON. + * Converts this Index to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StudySpec + * Gets the default type url for Index * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace StudySpec { + namespace Index { - /** Properties of a MetricSpec. */ - interface IMetricSpec { + /** IndexUpdateMethod enum. */ + enum IndexUpdateMethod { + INDEX_UPDATE_METHOD_UNSPECIFIED = 0, + BATCH_UPDATE = 1, + STREAM_UPDATE = 2 + } + } - /** MetricSpec metricId */ - metricId?: (string|null); + /** Properties of an IndexDatapoint. */ + interface IIndexDatapoint { - /** MetricSpec goal */ - goal?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null); - } + /** IndexDatapoint datapointId */ + datapointId?: (string|null); - /** Represents a MetricSpec. */ - class MetricSpec implements IMetricSpec { + /** IndexDatapoint featureVector */ + featureVector?: (number[]|null); - /** - * Constructs a new MetricSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec); + /** IndexDatapoint restricts */ + restricts?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]|null); - /** MetricSpec metricId. */ - public metricId: string; + /** IndexDatapoint crowdingTag */ + crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); + } - /** MetricSpec goal. */ - public goal: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType); + /** Represents an IndexDatapoint. */ + class IndexDatapoint implements IIndexDatapoint { - /** - * Creates a new MetricSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MetricSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; + /** + * Constructs a new IndexDatapoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint); - /** - * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** IndexDatapoint datapointId. */ + public datapointId: string; - /** - * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** IndexDatapoint featureVector. */ + public featureVector: number[]; - /** - * Decodes a MetricSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetricSpec - * @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.aiplatform.v1beta1.StudySpec.MetricSpec; + /** IndexDatapoint restricts. */ + public restricts: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]; - /** - * Decodes a MetricSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetricSpec - * @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.aiplatform.v1beta1.StudySpec.MetricSpec; + /** IndexDatapoint crowdingTag. */ + public crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); - /** - * Verifies a MetricSpec 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 new IndexDatapoint instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexDatapoint instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint): google.cloud.aiplatform.v1beta1.IndexDatapoint; - /** - * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetricSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; + /** + * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @param message IndexDatapoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. - * @param message MetricSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @param message IndexDatapoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this MetricSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an IndexDatapoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexDatapoint + * @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.aiplatform.v1beta1.IndexDatapoint; - /** - * Gets the default type url for MetricSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexDatapoint + * @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.aiplatform.v1beta1.IndexDatapoint; - namespace MetricSpec { + /** + * Verifies an IndexDatapoint 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); - /** GoalType enum. */ - enum GoalType { - GOAL_TYPE_UNSPECIFIED = 0, - MAXIMIZE = 1, - MINIMIZE = 2 - } - } + /** + * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexDatapoint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint; - /** Properties of a ParameterSpec. */ - interface IParameterSpec { + /** + * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * @param message IndexDatapoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ParameterSpec doubleValueSpec */ - doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); + /** + * Converts this IndexDatapoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ParameterSpec integerValueSpec */ - integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); + /** + * Gets the default type url for IndexDatapoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ParameterSpec categoricalValueSpec */ - categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); + namespace IndexDatapoint { - /** ParameterSpec discreteValueSpec */ - discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); + /** Properties of a Restriction. */ + interface IRestriction { - /** ParameterSpec parameterId */ - parameterId?: (string|null); + /** Restriction namespace */ + namespace?: (string|null); - /** ParameterSpec scaleType */ - scaleType?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null); + /** Restriction allowList */ + allowList?: (string[]|null); - /** ParameterSpec conditionalParameterSpecs */ - conditionalParameterSpecs?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]|null); + /** Restriction denyList */ + denyList?: (string[]|null); } - /** Represents a ParameterSpec. */ - class ParameterSpec implements IParameterSpec { + /** Represents a Restriction. */ + class Restriction implements IRestriction { /** - * Constructs a new ParameterSpec. + * Constructs a new Restriction. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec); - - /** ParameterSpec doubleValueSpec. */ - public doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); - - /** ParameterSpec integerValueSpec. */ - public integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); - - /** ParameterSpec categoricalValueSpec. */ - public categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); - - /** ParameterSpec discreteValueSpec. */ - public discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); - - /** ParameterSpec parameterId. */ - public parameterId: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction); - /** ParameterSpec scaleType. */ - public scaleType: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType); + /** Restriction namespace. */ + public namespace: string; - /** ParameterSpec conditionalParameterSpecs. */ - public conditionalParameterSpecs: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]; + /** Restriction allowList. */ + public allowList: string[]; - /** ParameterSpec parameterValueSpec. */ - public parameterValueSpec?: ("doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"); + /** Restriction denyList. */ + public denyList: string[]; /** - * Creates a new ParameterSpec instance using the specified properties. + * Creates a new Restriction instance using the specified properties. * @param [properties] Properties to set - * @returns ParameterSpec instance + * @returns Restriction instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; /** - * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. - * @param message ParameterSpec message or plain object to encode + * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @param message Restriction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. - * @param message ParameterSpec message or plain object to encode + * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @param message Restriction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ParameterSpec message from the specified reader or buffer. + * Decodes a Restriction message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ParameterSpec + * @returns Restriction * @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.aiplatform.v1beta1.StudySpec.ParameterSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; /** - * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. + * Decodes a Restriction message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ParameterSpec + * @returns Restriction * @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.aiplatform.v1beta1.StudySpec.ParameterSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; /** - * Verifies a ParameterSpec message. + * Verifies a Restriction 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 ParameterSpec message from a plain object. Also converts values to their respective internal types. + * Creates a Restriction message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ParameterSpec + * @returns Restriction */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; /** - * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. - * @param message ParameterSpec + * Creates a plain object from a Restriction message. Also converts values to other types if specified. + * @param message Restriction * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ParameterSpec to JSON. + * Converts this Restriction to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ParameterSpec + * Gets the default type url for Restriction * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ParameterSpec { - - /** Properties of a DoubleValueSpec. */ - interface IDoubleValueSpec { - - /** DoubleValueSpec minValue */ - minValue?: (number|null); - - /** DoubleValueSpec maxValue */ - maxValue?: (number|null); - - /** DoubleValueSpec defaultValue */ - defaultValue?: (number|null); - } - - /** Represents a DoubleValueSpec. */ - class DoubleValueSpec implements IDoubleValueSpec { - - /** - * Constructs a new DoubleValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec); - - /** DoubleValueSpec minValue. */ - public minValue: number; - - /** DoubleValueSpec maxValue. */ - public maxValue: number; - - /** DoubleValueSpec defaultValue. */ - public defaultValue?: (number|null); - - /** DoubleValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; - - /** - * Creates a new DoubleValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DoubleValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - - /** - * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @param message DoubleValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @param message DoubleValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DoubleValueSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DoubleValueSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - - /** - * Verifies a DoubleValueSpec 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 DoubleValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DoubleValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - - /** - * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. - * @param message DoubleValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DoubleValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DoubleValueSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an IntegerValueSpec. */ - interface IIntegerValueSpec { - - /** IntegerValueSpec minValue */ - minValue?: (number|Long|string|null); - - /** IntegerValueSpec maxValue */ - maxValue?: (number|Long|string|null); - - /** IntegerValueSpec defaultValue */ - defaultValue?: (number|Long|string|null); - } - - /** Represents an IntegerValueSpec. */ - class IntegerValueSpec implements IIntegerValueSpec { - - /** - * Constructs a new IntegerValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec); - - /** IntegerValueSpec minValue. */ - public minValue: (number|Long|string); - - /** IntegerValueSpec maxValue. */ - public maxValue: (number|Long|string); - - /** IntegerValueSpec defaultValue. */ - public defaultValue?: (number|Long|string|null); - - /** IntegerValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; - - /** - * Creates a new IntegerValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns IntegerValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - - /** - * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @param message IntegerValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @param message IntegerValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntegerValueSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntegerValueSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - - /** - * Verifies an IntegerValueSpec 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 an IntegerValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntegerValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - - /** - * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. - * @param message IntegerValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this IntegerValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for IntegerValueSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CategoricalValueSpec. */ - interface ICategoricalValueSpec { - - /** CategoricalValueSpec values */ - values?: (string[]|null); - - /** CategoricalValueSpec defaultValue */ - defaultValue?: (string|null); - } - - /** Represents a CategoricalValueSpec. */ - class CategoricalValueSpec implements ICategoricalValueSpec { - - /** - * Constructs a new CategoricalValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec); - - /** CategoricalValueSpec values. */ - public values: string[]; - - /** CategoricalValueSpec defaultValue. */ - public defaultValue?: (string|null); - - /** CategoricalValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; - - /** - * Creates a new CategoricalValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - - /** - * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @param message CategoricalValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @param message CategoricalValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalValueSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalValueSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - - /** - * Verifies a CategoricalValueSpec 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 CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - - /** - * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. - * @param message CategoricalValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CategoricalValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CategoricalValueSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DiscreteValueSpec. */ - interface IDiscreteValueSpec { - - /** DiscreteValueSpec values */ - values?: (number[]|null); - - /** DiscreteValueSpec defaultValue */ - defaultValue?: (number|null); - } - - /** Represents a DiscreteValueSpec. */ - class DiscreteValueSpec implements IDiscreteValueSpec { + /** Properties of a CrowdingTag. */ + interface ICrowdingTag { - /** - * Constructs a new DiscreteValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec); + /** CrowdingTag crowdingAttribute */ + crowdingAttribute?: (string|null); + } - /** DiscreteValueSpec values. */ - public values: number[]; + /** Represents a CrowdingTag. */ + class CrowdingTag implements ICrowdingTag { - /** DiscreteValueSpec defaultValue. */ - public defaultValue?: (number|null); + /** + * Constructs a new CrowdingTag. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag); - /** DiscreteValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; + /** CrowdingTag crowdingAttribute. */ + public crowdingAttribute: string; - /** - * Creates a new DiscreteValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DiscreteValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Creates a new CrowdingTag instance using the specified properties. + * @param [properties] Properties to set + * @returns CrowdingTag instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; - /** - * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @param message DiscreteValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @param message CrowdingTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @param message DiscreteValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @param message CrowdingTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DiscreteValueSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Decodes a CrowdingTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CrowdingTag + * @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.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DiscreteValueSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CrowdingTag + * @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.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; - /** - * Verifies a DiscreteValueSpec 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); + /** + * Verifies a CrowdingTag 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 DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DiscreteValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CrowdingTag + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; - /** - * Creates a plain object from a DiscreteValueSpec message. Also converts values to other types if specified. - * @param message DiscreteValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. + * @param message CrowdingTag + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this DiscreteValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this CrowdingTag to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for DiscreteValueSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for CrowdingTag + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** Properties of a ConditionalParameterSpec. */ - interface IConditionalParameterSpec { + /** Properties of an IndexStats. */ + interface IIndexStats { - /** ConditionalParameterSpec parentDiscreteValues */ - parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + /** IndexStats vectorsCount */ + vectorsCount?: (number|Long|string|null); - /** ConditionalParameterSpec parentIntValues */ - parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + /** IndexStats shardsCount */ + shardsCount?: (number|null); + } - /** ConditionalParameterSpec parentCategoricalValues */ - parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + /** Represents an IndexStats. */ + class IndexStats implements IIndexStats { - /** ConditionalParameterSpec parameterSpec */ - parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); - } + /** + * Constructs a new IndexStats. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexStats); - /** Represents a ConditionalParameterSpec. */ - class ConditionalParameterSpec implements IConditionalParameterSpec { + /** IndexStats vectorsCount. */ + public vectorsCount: (number|Long|string); - /** - * Constructs a new ConditionalParameterSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec); + /** IndexStats shardsCount. */ + public shardsCount: number; - /** ConditionalParameterSpec parentDiscreteValues. */ - public parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + /** + * Creates a new IndexStats instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexStats instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexStats): google.cloud.aiplatform.v1beta1.IndexStats; - /** ConditionalParameterSpec parentIntValues. */ - public parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + /** + * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @param message IndexStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; - /** ConditionalParameterSpec parentCategoricalValues. */ - public parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + /** + * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @param message IndexStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; - /** ConditionalParameterSpec parameterSpec. */ - public parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); + /** + * Decodes an IndexStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexStats + * @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.aiplatform.v1beta1.IndexStats; - /** ConditionalParameterSpec parentValueCondition. */ - public parentValueCondition?: ("parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"); + /** + * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexStats + * @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.aiplatform.v1beta1.IndexStats; - /** - * Creates a new ConditionalParameterSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ConditionalParameterSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Verifies an IndexStats 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); - /** - * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @param message ConditionalParameterSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexStats + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexStats; - /** - * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @param message ConditionalParameterSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * @param message IndexStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConditionalParameterSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Converts this IndexStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConditionalParameterSpec - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Gets the default type url for IndexStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a ConditionalParameterSpec 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); + /** Properties of an IndexEndpoint. */ + interface IIndexEndpoint { - /** - * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConditionalParameterSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** IndexEndpoint name */ + name?: (string|null); - /** - * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. - * @param message ConditionalParameterSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** IndexEndpoint displayName */ + displayName?: (string|null); - /** - * Converts this ConditionalParameterSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** IndexEndpoint description */ + description?: (string|null); - /** - * Gets the default type url for ConditionalParameterSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** IndexEndpoint deployedIndexes */ + deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndex[]|null); - namespace ConditionalParameterSpec { + /** IndexEndpoint etag */ + etag?: (string|null); - /** Properties of a DiscreteValueCondition. */ - interface IDiscreteValueCondition { + /** IndexEndpoint labels */ + labels?: ({ [k: string]: string }|null); - /** DiscreteValueCondition values */ - values?: (number[]|null); - } + /** IndexEndpoint createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Represents a DiscreteValueCondition. */ - class DiscreteValueCondition implements IDiscreteValueCondition { + /** IndexEndpoint updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new DiscreteValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition); + /** IndexEndpoint network */ + network?: (string|null); - /** DiscreteValueCondition values. */ - public values: number[]; + /** IndexEndpoint enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); - /** - * Creates a new DiscreteValueCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns DiscreteValueCondition instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** IndexEndpoint privateServiceConnectConfig */ + privateServiceConnectConfig?: (google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig|null); + } - /** - * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @param message DiscreteValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an IndexEndpoint. */ + class IndexEndpoint implements IIndexEndpoint { - /** - * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @param message DiscreteValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new IndexEndpoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint); - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DiscreteValueCondition - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** IndexEndpoint name. */ + public name: string; - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DiscreteValueCondition - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** IndexEndpoint displayName. */ + public displayName: string; - /** - * Verifies a DiscreteValueCondition 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); + /** IndexEndpoint description. */ + public description: string; - /** - * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DiscreteValueCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** IndexEndpoint deployedIndexes. */ + public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndex[]; - /** - * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. - * @param message DiscreteValueCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** IndexEndpoint etag. */ + public etag: string; - /** - * Converts this DiscreteValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** IndexEndpoint labels. */ + public labels: { [k: string]: string }; - /** - * Gets the default type url for DiscreteValueCondition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** IndexEndpoint createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Properties of an IntValueCondition. */ - interface IIntValueCondition { + /** IndexEndpoint updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** IntValueCondition values */ - values?: ((number|Long|string)[]|null); - } + /** IndexEndpoint network. */ + public network: string; - /** Represents an IntValueCondition. */ - class IntValueCondition implements IIntValueCondition { + /** IndexEndpoint enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; - /** - * Constructs a new IntValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition); + /** IndexEndpoint privateServiceConnectConfig. */ + public privateServiceConnectConfig?: (google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig|null); - /** IntValueCondition values. */ - public values: (number|Long|string)[]; + /** + * Creates a new IndexEndpoint instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexEndpoint instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint): google.cloud.aiplatform.v1beta1.IndexEndpoint; - /** - * Creates a new IntValueCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns IntValueCondition instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @param message IndexEndpoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @param message IntValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @param message IndexEndpoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @param message IntValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an IndexEndpoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexEndpoint + * @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.aiplatform.v1beta1.IndexEndpoint; - /** - * Decodes an IntValueCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntValueCondition - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexEndpoint + * @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.aiplatform.v1beta1.IndexEndpoint; - /** - * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntValueCondition - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Verifies an IndexEndpoint 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); - /** - * Verifies an IntValueCondition 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 an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexEndpoint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexEndpoint; + + /** + * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. + * @param message IndexEndpoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntValueCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Converts this IndexEndpoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. - * @param message IntValueCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for IndexEndpoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this IntValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a DeployedIndex. */ + interface IDeployedIndex { - /** - * Gets the default type url for IntValueCondition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DeployedIndex id */ + id?: (string|null); - /** Properties of a CategoricalValueCondition. */ - interface ICategoricalValueCondition { + /** DeployedIndex index */ + index?: (string|null); - /** CategoricalValueCondition values */ - values?: (string[]|null); - } + /** DeployedIndex displayName */ + displayName?: (string|null); - /** Represents a CategoricalValueCondition. */ - class CategoricalValueCondition implements ICategoricalValueCondition { + /** DeployedIndex createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new CategoricalValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition); + /** DeployedIndex privateEndpoints */ + privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - /** CategoricalValueCondition values. */ - public values: string[]; + /** DeployedIndex indexSyncTime */ + indexSyncTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new CategoricalValueCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalValueCondition instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** DeployedIndex automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** - * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @param message CategoricalValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeployedIndex dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** - * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @param message CategoricalValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeployedIndex enableAccessLogging */ + enableAccessLogging?: (boolean|null); - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalValueCondition - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** DeployedIndex deployedIndexAuthConfig */ + deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalValueCondition - * @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.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** DeployedIndex reservedIpRanges */ + reservedIpRanges?: (string[]|null); - /** - * Verifies a CategoricalValueCondition 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); + /** DeployedIndex deploymentGroup */ + deploymentGroup?: (string|null); + } - /** - * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalValueCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** Represents a DeployedIndex. */ + class DeployedIndex implements IDeployedIndex { - /** - * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. - * @param message CategoricalValueCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new DeployedIndex. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex); - /** - * Converts this CategoricalValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DeployedIndex id. */ + public id: string; - /** - * Gets the default type url for CategoricalValueCondition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** DeployedIndex index. */ + public index: string; - /** ScaleType enum. */ - enum ScaleType { - SCALE_TYPE_UNSPECIFIED = 0, - UNIT_LINEAR_SCALE = 1, - UNIT_LOG_SCALE = 2, - UNIT_REVERSE_LOG_SCALE = 3 - } - } + /** DeployedIndex displayName. */ + public displayName: string; - /** Properties of a DecayCurveAutomatedStoppingSpec. */ - interface IDecayCurveAutomatedStoppingSpec { + /** DeployedIndex createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** DecayCurveAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); - } + /** DeployedIndex privateEndpoints. */ + public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - /** Represents a DecayCurveAutomatedStoppingSpec. */ - class DecayCurveAutomatedStoppingSpec implements IDecayCurveAutomatedStoppingSpec { + /** DeployedIndex indexSyncTime. */ + public indexSyncTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new DecayCurveAutomatedStoppingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec); + /** DeployedIndex automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** DecayCurveAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; + /** DeployedIndex dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** - * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DecayCurveAutomatedStoppingSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + /** DeployedIndex enableAccessLogging. */ + public enableAccessLogging: boolean; - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeployedIndex deployedIndexAuthConfig. */ + public deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeployedIndex reservedIpRanges. */ + public reservedIpRanges: string[]; - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DecayCurveAutomatedStoppingSpec - * @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.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + /** DeployedIndex deploymentGroup. */ + public deploymentGroup: string; - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DecayCurveAutomatedStoppingSpec - * @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.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + /** + * Creates a new DeployedIndex instance using the specified properties. + * @param [properties] Properties to set + * @returns DeployedIndex instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex): google.cloud.aiplatform.v1beta1.DeployedIndex; - /** - * Verifies a DecayCurveAutomatedStoppingSpec 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); + /** + * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @param message DeployedIndex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DecayCurveAutomatedStoppingSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + /** + * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @param message DeployedIndex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. - * @param message DecayCurveAutomatedStoppingSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a DeployedIndex message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeployedIndex + * @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.aiplatform.v1beta1.DeployedIndex; - /** - * Converts this DecayCurveAutomatedStoppingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeployedIndex + * @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.aiplatform.v1beta1.DeployedIndex; - /** - * Gets the default type url for DecayCurveAutomatedStoppingSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a DeployedIndex 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); - /** Properties of a MedianAutomatedStoppingSpec. */ - interface IMedianAutomatedStoppingSpec { + /** + * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeployedIndex + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndex; - /** MedianAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); - } + /** + * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. + * @param message DeployedIndex + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndex, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a MedianAutomatedStoppingSpec. */ - class MedianAutomatedStoppingSpec implements IMedianAutomatedStoppingSpec { + /** + * Converts this DeployedIndex to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new MedianAutomatedStoppingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec); + /** + * Gets the default type url for DeployedIndex + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** MedianAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; + /** Properties of a DeployedIndexAuthConfig. */ + interface IDeployedIndexAuthConfig { - /** - * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MedianAutomatedStoppingSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; + /** DeployedIndexAuthConfig authProvider */ + authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + } - /** - * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @param message MedianAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a DeployedIndexAuthConfig. */ + class DeployedIndexAuthConfig implements IDeployedIndexAuthConfig { - /** - * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @param message MedianAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new DeployedIndexAuthConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig); - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MedianAutomatedStoppingSpec - * @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.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; + /** DeployedIndexAuthConfig authProvider. */ + public authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MedianAutomatedStoppingSpec - * @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.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; + /** + * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DeployedIndexAuthConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; - /** - * Verifies a MedianAutomatedStoppingSpec 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); + /** + * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @param message DeployedIndexAuthConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MedianAutomatedStoppingSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; + /** + * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @param message DeployedIndexAuthConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. - * @param message MedianAutomatedStoppingSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeployedIndexAuthConfig + * @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.aiplatform.v1beta1.DeployedIndexAuthConfig; - /** - * Converts this MedianAutomatedStoppingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeployedIndexAuthConfig + * @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.aiplatform.v1beta1.DeployedIndexAuthConfig; - /** - * Gets the default type url for MedianAutomatedStoppingSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a DeployedIndexAuthConfig 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); - /** Properties of a ConvexAutomatedStoppingSpec. */ - interface IConvexAutomatedStoppingSpec { + /** + * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeployedIndexAuthConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; - /** ConvexAutomatedStoppingSpec maxStepCount */ - maxStepCount?: (number|Long|string|null); + /** + * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. + * @param message DeployedIndexAuthConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ConvexAutomatedStoppingSpec minStepCount */ - minStepCount?: (number|Long|string|null); + /** + * Converts this DeployedIndexAuthConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ConvexAutomatedStoppingSpec minMeasurementCount */ - minMeasurementCount?: (number|Long|string|null); + /** + * Gets the default type url for DeployedIndexAuthConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ConvexAutomatedStoppingSpec learningRateParameterName */ - learningRateParameterName?: (string|null); + namespace DeployedIndexAuthConfig { + + /** Properties of an AuthProvider. */ + interface IAuthProvider { - /** ConvexAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); + /** AuthProvider audiences */ + audiences?: (string[]|null); - /** ConvexAutomatedStoppingSpec updateAllStoppedTrials */ - updateAllStoppedTrials?: (boolean|null); + /** AuthProvider allowedIssuers */ + allowedIssuers?: (string[]|null); } - /** Represents a ConvexAutomatedStoppingSpec. */ - class ConvexAutomatedStoppingSpec implements IConvexAutomatedStoppingSpec { + /** Represents an AuthProvider. */ + class AuthProvider implements IAuthProvider { /** - * Constructs a new ConvexAutomatedStoppingSpec. + * Constructs a new AuthProvider. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec); - - /** ConvexAutomatedStoppingSpec maxStepCount. */ - public maxStepCount: (number|Long|string); - - /** ConvexAutomatedStoppingSpec minStepCount. */ - public minStepCount: (number|Long|string); - - /** ConvexAutomatedStoppingSpec minMeasurementCount. */ - public minMeasurementCount: (number|Long|string); - - /** ConvexAutomatedStoppingSpec learningRateParameterName. */ - public learningRateParameterName: string; - - /** ConvexAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; + constructor(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider); - /** ConvexAutomatedStoppingSpec updateAllStoppedTrials. */ - public updateAllStoppedTrials?: (boolean|null); + /** AuthProvider audiences. */ + public audiences: string[]; - /** ConvexAutomatedStoppingSpec _updateAllStoppedTrials. */ - public _updateAllStoppedTrials?: "updateAllStoppedTrials"; + /** AuthProvider allowedIssuers. */ + public allowedIssuers: string[]; /** - * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * Creates a new AuthProvider instance using the specified properties. * @param [properties] Properties to set - * @returns ConvexAutomatedStoppingSpec instance + * @returns AuthProvider instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; /** - * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @param message AuthProvider message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @param message AuthProvider message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * Decodes an AuthProvider message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConvexAutomatedStoppingSpec + * @returns AuthProvider * @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.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * Decodes an AuthProvider message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConvexAutomatedStoppingSpec + * @returns AuthProvider * @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.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; /** - * Verifies a ConvexAutomatedStoppingSpec message. + * Verifies an AuthProvider 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 ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConvexAutomatedStoppingSpec + * @returns AuthProvider */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; /** - * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. - * @param message ConvexAutomatedStoppingSpec + * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. + * @param message AuthProvider * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConvexAutomatedStoppingSpec to JSON. + * Converts this AuthProvider to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConvexAutomatedStoppingSpec + * Gets the default type url for AuthProvider * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of a ConvexStopConfig. */ - interface IConvexStopConfig { + /** Properties of an IndexPrivateEndpoints. */ + interface IIndexPrivateEndpoints { - /** ConvexStopConfig maxNumSteps */ - maxNumSteps?: (number|Long|string|null); + /** IndexPrivateEndpoints matchGrpcAddress */ + matchGrpcAddress?: (string|null); - /** ConvexStopConfig minNumSteps */ - minNumSteps?: (number|Long|string|null); + /** IndexPrivateEndpoints serviceAttachment */ + serviceAttachment?: (string|null); + } - /** ConvexStopConfig autoregressiveOrder */ - autoregressiveOrder?: (number|Long|string|null); + /** Represents an IndexPrivateEndpoints. */ + class IndexPrivateEndpoints implements IIndexPrivateEndpoints { - /** ConvexStopConfig learningRateParameterName */ - learningRateParameterName?: (string|null); + /** + * Constructs a new IndexPrivateEndpoints. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints); - /** ConvexStopConfig useSeconds */ - useSeconds?: (boolean|null); - } + /** IndexPrivateEndpoints matchGrpcAddress. */ + public matchGrpcAddress: string; - /** Represents a ConvexStopConfig. */ - class ConvexStopConfig implements IConvexStopConfig { + /** IndexPrivateEndpoints serviceAttachment. */ + public serviceAttachment: string; - /** - * Constructs a new ConvexStopConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig); + /** + * Creates a new IndexPrivateEndpoints instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexPrivateEndpoints instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; - /** ConvexStopConfig maxNumSteps. */ - public maxNumSteps: (number|Long|string); + /** + * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @param message IndexPrivateEndpoints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; - /** ConvexStopConfig minNumSteps. */ - public minNumSteps: (number|Long|string); + /** + * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @param message IndexPrivateEndpoints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; - /** ConvexStopConfig autoregressiveOrder. */ - public autoregressiveOrder: (number|Long|string); + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexPrivateEndpoints + * @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.aiplatform.v1beta1.IndexPrivateEndpoints; - /** ConvexStopConfig learningRateParameterName. */ - public learningRateParameterName: string; + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexPrivateEndpoints + * @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.aiplatform.v1beta1.IndexPrivateEndpoints; - /** ConvexStopConfig useSeconds. */ - public useSeconds: boolean; + /** + * Verifies an IndexPrivateEndpoints 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 new ConvexStopConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ConvexStopConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + /** + * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexPrivateEndpoints + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; - /** - * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @param message ConvexStopConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. + * @param message IndexPrivateEndpoints + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @param message ConvexStopConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this IndexPrivateEndpoints to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConvexStopConfig - * @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.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + /** + * Gets the default type url for IndexPrivateEndpoints + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConvexStopConfig - * @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.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + /** Properties of a PrivateServiceConnectConfig. */ + interface IPrivateServiceConnectConfig { - /** - * Verifies a ConvexStopConfig 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); + /** PrivateServiceConnectConfig enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); - /** - * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConvexStopConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + /** PrivateServiceConnectConfig projectAllowlist */ + projectAllowlist?: (string[]|null); + } - /** - * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. - * @param message ConvexStopConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a PrivateServiceConnectConfig. */ + class PrivateServiceConnectConfig implements IPrivateServiceConnectConfig { - /** - * Converts this ConvexStopConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new PrivateServiceConnectConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig); - /** - * Gets the default type url for ConvexStopConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PrivateServiceConnectConfig enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; - /** Properties of a TransferLearningConfig. */ - interface ITransferLearningConfig { + /** PrivateServiceConnectConfig projectAllowlist. */ + public projectAllowlist: string[]; - /** TransferLearningConfig disableTransferLearning */ - disableTransferLearning?: (boolean|null); + /** + * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PrivateServiceConnectConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig): google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig; - /** TransferLearningConfig priorStudyNames */ - priorStudyNames?: (string[]|null); - } + /** + * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify|verify} messages. + * @param message PrivateServiceConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a TransferLearningConfig. */ - class TransferLearningConfig implements ITransferLearningConfig { + /** + * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify|verify} messages. + * @param message PrivateServiceConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new TransferLearningConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig); + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrivateServiceConnectConfig + * @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.aiplatform.v1beta1.PrivateServiceConnectConfig; - /** TransferLearningConfig disableTransferLearning. */ - public disableTransferLearning: boolean; + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrivateServiceConnectConfig + * @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.aiplatform.v1beta1.PrivateServiceConnectConfig; - /** TransferLearningConfig priorStudyNames. */ - public priorStudyNames: string[]; + /** + * Verifies a PrivateServiceConnectConfig 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 new TransferLearningConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TransferLearningConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + /** + * Creates a PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrivateServiceConnectConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig; - /** - * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. - * @param message TransferLearningConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * @param message PrivateServiceConnectConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. - * @param message TransferLearningConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this PrivateServiceConnectConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a TransferLearningConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransferLearningConfig - * @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.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + /** + * Gets the default type url for PrivateServiceConnectConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransferLearningConfig - * @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.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + /** Represents an IndexEndpointService */ + class IndexEndpointService extends $protobuf.rpc.Service { + + /** + * Constructs a new IndexEndpointService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new IndexEndpointService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexEndpointService; + + /** + * Calls CreateIndexEndpoint. + * @param request CreateIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback): void; + + /** + * Calls CreateIndexEndpoint. + * @param request CreateIndexEndpointRequest message or plain object + * @returns Promise + */ + public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): Promise; + + /** + * Calls GetIndexEndpoint. + * @param request GetIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and IndexEndpoint + */ + public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback): void; + + /** + * Calls GetIndexEndpoint. + * @param request GetIndexEndpointRequest message or plain object + * @returns Promise + */ + public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): Promise; + + /** + * Calls ListIndexEndpoints. + * @param request ListIndexEndpointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + */ + public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback): void; + + /** + * Calls ListIndexEndpoints. + * @param request ListIndexEndpointsRequest message or plain object + * @returns Promise + */ + public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): Promise; + + /** + * Calls UpdateIndexEndpoint. + * @param request UpdateIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and IndexEndpoint + */ + public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback): void; + + /** + * Calls UpdateIndexEndpoint. + * @param request UpdateIndexEndpointRequest message or plain object + * @returns Promise + */ + public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): Promise; + + /** + * Calls DeleteIndexEndpoint. + * @param request DeleteIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback): void; + + /** + * Calls DeleteIndexEndpoint. + * @param request DeleteIndexEndpointRequest message or plain object + * @returns Promise + */ + public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): Promise; + + /** + * Calls DeployIndex. + * @param request DeployIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback): void; + + /** + * Calls DeployIndex. + * @param request DeployIndexRequest message or plain object + * @returns Promise + */ + public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): Promise; + + /** + * Calls UndeployIndex. + * @param request UndeployIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback): void; + + /** + * Calls UndeployIndex. + * @param request UndeployIndexRequest message or plain object + * @returns Promise + */ + public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): Promise; + + /** + * Calls MutateDeployedIndex. + * @param request MutateDeployedIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback): void; + + /** + * Calls MutateDeployedIndex. + * @param request MutateDeployedIndexRequest message or plain object + * @returns Promise + */ + public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): Promise; + } + + namespace IndexEndpointService { - /** - * Verifies a TransferLearningConfig 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); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|createIndexEndpoint}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransferLearningConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|getIndexEndpoint}. + * @param error Error, if any + * @param [response] IndexEndpoint + */ + type GetIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; - /** - * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. - * @param message TransferLearningConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|listIndexEndpoints}. + * @param error Error, if any + * @param [response] ListIndexEndpointsResponse + */ + type ListIndexEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) => void; - /** - * Converts this TransferLearningConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|updateIndexEndpoint}. + * @param error Error, if any + * @param [response] IndexEndpoint + */ + type UpdateIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; - /** - * Gets the default type url for TransferLearningConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deleteIndexEndpoint}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** Algorithm enum. */ - enum Algorithm { - ALGORITHM_UNSPECIFIED = 0, - GRID_SEARCH = 2, - RANDOM_SEARCH = 3 - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deployIndex}. + * @param error Error, if any + * @param [response] Operation + */ + type DeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** ObservationNoise enum. */ - enum ObservationNoise { - OBSERVATION_NOISE_UNSPECIFIED = 0, - LOW = 1, - HIGH = 2 - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|undeployIndex}. + * @param error Error, if any + * @param [response] Operation + */ + type UndeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** MeasurementSelectionType enum. */ - enum MeasurementSelectionType { - MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0, - LAST_MEASUREMENT = 1, - BEST_MEASUREMENT = 2 - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|mutateDeployedIndex}. + * @param error Error, if any + * @param [response] Operation + */ + type MutateDeployedIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a Measurement. */ - interface IMeasurement { - - /** Measurement elapsedDuration */ - elapsedDuration?: (google.protobuf.IDuration|null); + /** Properties of a CreateIndexEndpointRequest. */ + interface ICreateIndexEndpointRequest { - /** Measurement stepCount */ - stepCount?: (number|Long|string|null); + /** CreateIndexEndpointRequest parent */ + parent?: (string|null); - /** Measurement metrics */ - metrics?: (google.cloud.aiplatform.v1beta1.Measurement.IMetric[]|null); + /** CreateIndexEndpointRequest indexEndpoint */ + indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); } - /** Represents a Measurement. */ - class Measurement implements IMeasurement { + /** Represents a CreateIndexEndpointRequest. */ + class CreateIndexEndpointRequest implements ICreateIndexEndpointRequest { /** - * Constructs a new Measurement. + * Constructs a new CreateIndexEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMeasurement); - - /** Measurement elapsedDuration. */ - public elapsedDuration?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest); - /** Measurement stepCount. */ - public stepCount: (number|Long|string); + /** CreateIndexEndpointRequest parent. */ + public parent: string; - /** Measurement metrics. */ - public metrics: google.cloud.aiplatform.v1beta1.Measurement.IMetric[]; + /** CreateIndexEndpointRequest indexEndpoint. */ + public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); /** - * Creates a new Measurement instance using the specified properties. + * Creates a new CreateIndexEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Measurement instance + * @returns CreateIndexEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMeasurement): google.cloud.aiplatform.v1beta1.Measurement; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. - * @param message Measurement message or plain object to encode + * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @param message CreateIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. - * @param message Measurement message or plain object to encode + * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @param message CreateIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Measurement message from the specified reader or buffer. + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Measurement + * @returns CreateIndexEndpointRequest * @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.aiplatform.v1beta1.Measurement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Decodes a Measurement message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Measurement + * @returns CreateIndexEndpointRequest * @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.aiplatform.v1beta1.Measurement; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Verifies a Measurement message. + * Verifies a CreateIndexEndpointRequest 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 Measurement message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Measurement + * @returns CreateIndexEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Creates a plain object from a Measurement message. Also converts values to other types if specified. - * @param message Measurement + * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. + * @param message CreateIndexEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Measurement to JSON. + * Converts this CreateIndexEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Measurement + * Gets the default type url for CreateIndexEndpointRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Measurement { - - /** Properties of a Metric. */ - interface IMetric { - - /** Metric metricId */ - metricId?: (string|null); - - /** Metric value */ - value?: (number|null); - } + /** Properties of a CreateIndexEndpointOperationMetadata. */ + interface ICreateIndexEndpointOperationMetadata { - /** Represents a Metric. */ - class Metric implements IMetric { + /** CreateIndexEndpointOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric); + /** Represents a CreateIndexEndpointOperationMetadata. */ + class CreateIndexEndpointOperationMetadata implements ICreateIndexEndpointOperationMetadata { - /** Metric metricId. */ - public metricId: string; + /** + * Constructs a new CreateIndexEndpointOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata); - /** Metric value. */ - public value: number; + /** CreateIndexEndpointOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Creates a new Metric instance using the specified properties. - * @param [properties] Properties to set - * @returns Metric instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric): google.cloud.aiplatform.v1beta1.Measurement.Metric; + /** + * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateIndexEndpointOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @param message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @param message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Metric message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metric - * @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.aiplatform.v1beta1.Measurement.Metric; + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateIndexEndpointOperationMetadata + * @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.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metric - * @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.aiplatform.v1beta1.Measurement.Metric; + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateIndexEndpointOperationMetadata + * @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.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; - /** - * Verifies a Metric 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); + /** + * Verifies a CreateIndexEndpointOperationMetadata 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 Metric message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metric - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement.Metric; + /** + * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateIndexEndpointOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @param message Metric - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. + * @param message CreateIndexEndpointOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this CreateIndexEndpointOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Metric - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for CreateIndexEndpointOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Index. */ - interface IIndex { + /** Properties of a GetIndexEndpointRequest. */ + interface IGetIndexEndpointRequest { - /** Index name */ + /** GetIndexEndpointRequest name */ name?: (string|null); + } - /** Index displayName */ - displayName?: (string|null); + /** Represents a GetIndexEndpointRequest. */ + class GetIndexEndpointRequest implements IGetIndexEndpointRequest { - /** Index description */ - description?: (string|null); + /** + * Constructs a new GetIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest); - /** Index metadataSchemaUri */ - metadataSchemaUri?: (string|null); + /** GetIndexEndpointRequest name. */ + public name: string; - /** Index metadata */ - metadata?: (google.protobuf.IValue|null); + /** + * Creates a new GetIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIndexEndpointRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; - /** Index deployedIndexes */ - deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]|null); + /** + * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @param message GetIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Index etag */ - etag?: (string|null); + /** + * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @param message GetIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Index labels */ - labels?: ({ [k: string]: string }|null); + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIndexEndpointRequest + * @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.aiplatform.v1beta1.GetIndexEndpointRequest; - /** Index createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIndexEndpointRequest + * @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.aiplatform.v1beta1.GetIndexEndpointRequest; - /** Index updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Verifies a GetIndexEndpointRequest 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); - /** Index indexStats */ - indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + /** + * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIndexEndpointRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; - /** Index indexUpdateMethod */ - indexUpdateMethod?: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null); - } + /** + * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * @param message GetIndexEndpointRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents an Index. */ - class Index implements IIndex { + /** + * Converts this GetIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; /** - * Constructs a new Index. - * @param [properties] Properties to set + * Gets the default type url for GetIndexEndpointRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndex); + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Index name. */ - public name: string; + /** Properties of a ListIndexEndpointsRequest. */ + interface IListIndexEndpointsRequest { - /** Index displayName. */ - public displayName: string; + /** ListIndexEndpointsRequest parent */ + parent?: (string|null); - /** Index description. */ - public description: string; + /** ListIndexEndpointsRequest filter */ + filter?: (string|null); - /** Index metadataSchemaUri. */ - public metadataSchemaUri: string; + /** ListIndexEndpointsRequest pageSize */ + pageSize?: (number|null); - /** Index metadata. */ - public metadata?: (google.protobuf.IValue|null); + /** ListIndexEndpointsRequest pageToken */ + pageToken?: (string|null); - /** Index deployedIndexes. */ - public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]; + /** ListIndexEndpointsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** Index etag. */ - public etag: string; + /** Represents a ListIndexEndpointsRequest. */ + class ListIndexEndpointsRequest implements IListIndexEndpointsRequest { - /** Index labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new ListIndexEndpointsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest); - /** Index createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListIndexEndpointsRequest parent. */ + public parent: string; - /** Index updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListIndexEndpointsRequest filter. */ + public filter: string; - /** Index indexStats. */ - public indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + /** ListIndexEndpointsRequest pageSize. */ + public pageSize: number; + + /** ListIndexEndpointsRequest pageToken. */ + public pageToken: string; - /** Index indexUpdateMethod. */ - public indexUpdateMethod: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod); + /** ListIndexEndpointsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new Index instance using the specified properties. + * Creates a new ListIndexEndpointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Index instance + * @returns ListIndexEndpointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndex): google.cloud.aiplatform.v1beta1.Index; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. - * @param message Index message or plain object to encode + * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @param message ListIndexEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. - * @param message Index message or plain object to encode + * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @param message ListIndexEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Index message from the specified reader or buffer. + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Index + * @returns ListIndexEndpointsRequest * @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.aiplatform.v1beta1.Index; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Decodes an Index message from the specified reader or buffer, length delimited. + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Index + * @returns ListIndexEndpointsRequest * @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.aiplatform.v1beta1.Index; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Verifies an Index message. + * Verifies a ListIndexEndpointsRequest 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 an Index message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Index + * @returns ListIndexEndpointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Index; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Creates a plain object from an Index message. Also converts values to other types if specified. - * @param message Index + * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * @param message ListIndexEndpointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Index, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Index to JSON. + * Converts this ListIndexEndpointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Index + * Gets the default type url for ListIndexEndpointsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Index { - - /** IndexUpdateMethod enum. */ - enum IndexUpdateMethod { - INDEX_UPDATE_METHOD_UNSPECIFIED = 0, - BATCH_UPDATE = 1, - STREAM_UPDATE = 2 - } - } - - /** Properties of an IndexDatapoint. */ - interface IIndexDatapoint { - - /** IndexDatapoint datapointId */ - datapointId?: (string|null); - - /** IndexDatapoint featureVector */ - featureVector?: (number[]|null); + /** Properties of a ListIndexEndpointsResponse. */ + interface IListIndexEndpointsResponse { - /** IndexDatapoint restricts */ - restricts?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]|null); + /** ListIndexEndpointsResponse indexEndpoints */ + indexEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint[]|null); - /** IndexDatapoint crowdingTag */ - crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); + /** ListIndexEndpointsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an IndexDatapoint. */ - class IndexDatapoint implements IIndexDatapoint { + /** Represents a ListIndexEndpointsResponse. */ + class ListIndexEndpointsResponse implements IListIndexEndpointsResponse { /** - * Constructs a new IndexDatapoint. + * Constructs a new ListIndexEndpointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint); - - /** IndexDatapoint datapointId. */ - public datapointId: string; - - /** IndexDatapoint featureVector. */ - public featureVector: number[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse); - /** IndexDatapoint restricts. */ - public restricts: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]; + /** ListIndexEndpointsResponse indexEndpoints. */ + public indexEndpoints: google.cloud.aiplatform.v1beta1.IIndexEndpoint[]; - /** IndexDatapoint crowdingTag. */ - public crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); + /** ListIndexEndpointsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new IndexDatapoint instance using the specified properties. + * Creates a new ListIndexEndpointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns IndexDatapoint instance + * @returns ListIndexEndpointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint): google.cloud.aiplatform.v1beta1.IndexDatapoint; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. - * @param message IndexDatapoint message or plain object to encode + * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @param message ListIndexEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. - * @param message IndexDatapoint message or plain object to encode + * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @param message ListIndexEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexDatapoint message from the specified reader or buffer. + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IndexDatapoint + * @returns ListIndexEndpointsResponse * @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.aiplatform.v1beta1.IndexDatapoint; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IndexDatapoint + * @returns ListIndexEndpointsResponse * @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.aiplatform.v1beta1.IndexDatapoint; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Verifies an IndexDatapoint message. + * Verifies a ListIndexEndpointsResponse 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 an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IndexDatapoint + * @returns ListIndexEndpointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. - * @param message IndexDatapoint + * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. + * @param message ListIndexEndpointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexDatapoint to JSON. + * Converts this ListIndexEndpointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IndexDatapoint + * Gets the default type url for ListIndexEndpointsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace IndexDatapoint { - - /** Properties of a Restriction. */ - interface IRestriction { - - /** Restriction namespace */ - namespace?: (string|null); - - /** Restriction allowList */ - allowList?: (string[]|null); + /** Properties of an UpdateIndexEndpointRequest. */ + interface IUpdateIndexEndpointRequest { - /** Restriction denyList */ - denyList?: (string[]|null); - } + /** UpdateIndexEndpointRequest indexEndpoint */ + indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); - /** Represents a Restriction. */ - class Restriction implements IRestriction { + /** UpdateIndexEndpointRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Constructs a new Restriction. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction); + /** Represents an UpdateIndexEndpointRequest. */ + class UpdateIndexEndpointRequest implements IUpdateIndexEndpointRequest { - /** Restriction namespace. */ - public namespace: string; + /** + * Constructs a new UpdateIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest); - /** Restriction allowList. */ - public allowList: string[]; + /** UpdateIndexEndpointRequest indexEndpoint. */ + public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); - /** Restriction denyList. */ - public denyList: string[]; + /** UpdateIndexEndpointRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Creates a new Restriction instance using the specified properties. - * @param [properties] Properties to set - * @returns Restriction instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; + /** + * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIndexEndpointRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; - /** - * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. - * @param message Restriction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * @param message UpdateIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. - * @param message Restriction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * @param message UpdateIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Restriction message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Restriction - * @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.aiplatform.v1beta1.IndexDatapoint.Restriction; + /** + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIndexEndpointRequest + * @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.aiplatform.v1beta1.UpdateIndexEndpointRequest; - /** - * Decodes a Restriction message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Restriction - * @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.aiplatform.v1beta1.IndexDatapoint.Restriction; + /** + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIndexEndpointRequest + * @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.aiplatform.v1beta1.UpdateIndexEndpointRequest; - /** - * Verifies a Restriction 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); + /** + * Verifies an UpdateIndexEndpointRequest 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 Restriction message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Restriction - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; + /** + * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIndexEndpointRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; - /** - * Creates a plain object from a Restriction message. Also converts values to other types if specified. - * @param message Restriction - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. + * @param message UpdateIndexEndpointRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Restriction to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Restriction - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateIndexEndpointRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a CrowdingTag. */ - interface ICrowdingTag { + /** Properties of a DeleteIndexEndpointRequest. */ + interface IDeleteIndexEndpointRequest { - /** CrowdingTag crowdingAttribute */ - crowdingAttribute?: (string|null); - } + /** DeleteIndexEndpointRequest name */ + name?: (string|null); + } - /** Represents a CrowdingTag. */ - class CrowdingTag implements ICrowdingTag { + /** Represents a DeleteIndexEndpointRequest. */ + class DeleteIndexEndpointRequest implements IDeleteIndexEndpointRequest { - /** - * Constructs a new CrowdingTag. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag); + /** + * Constructs a new DeleteIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest); - /** CrowdingTag crowdingAttribute. */ - public crowdingAttribute: string; + /** DeleteIndexEndpointRequest name. */ + public name: string; - /** - * Creates a new CrowdingTag instance using the specified properties. - * @param [properties] Properties to set - * @returns CrowdingTag instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + /** + * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteIndexEndpointRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; - /** - * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @param message CrowdingTag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @param message DeleteIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @param message CrowdingTag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @param message DeleteIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CrowdingTag message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CrowdingTag - * @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.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + /** + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteIndexEndpointRequest + * @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.aiplatform.v1beta1.DeleteIndexEndpointRequest; - /** - * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CrowdingTag - * @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.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + /** + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteIndexEndpointRequest + * @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.aiplatform.v1beta1.DeleteIndexEndpointRequest; - /** - * Verifies a CrowdingTag 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); + /** + * Verifies a DeleteIndexEndpointRequest 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 CrowdingTag message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CrowdingTag - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + /** + * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteIndexEndpointRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; - /** - * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. - * @param message CrowdingTag - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * @param message DeleteIndexEndpointRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this CrowdingTag to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this DeleteIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for CrowdingTag - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for DeleteIndexEndpointRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IndexStats. */ - interface IIndexStats { + /** Properties of a DeployIndexRequest. */ + interface IDeployIndexRequest { - /** IndexStats vectorsCount */ - vectorsCount?: (number|Long|string|null); + /** DeployIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** IndexStats shardsCount */ - shardsCount?: (number|null); + /** DeployIndexRequest deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents an IndexStats. */ - class IndexStats implements IIndexStats { + /** Represents a DeployIndexRequest. */ + class DeployIndexRequest implements IDeployIndexRequest { /** - * Constructs a new IndexStats. + * Constructs a new DeployIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexStats); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest); - /** IndexStats vectorsCount. */ - public vectorsCount: (number|Long|string); + /** DeployIndexRequest indexEndpoint. */ + public indexEndpoint: string; - /** IndexStats shardsCount. */ - public shardsCount: number; + /** DeployIndexRequest deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new IndexStats instance using the specified properties. + * Creates a new DeployIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IndexStats instance + * @returns DeployIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexStats): google.cloud.aiplatform.v1beta1.IndexStats; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. - * @param message IndexStats message or plain object to encode + * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * @param message DeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. - * @param message IndexStats message or plain object to encode + * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * @param message DeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexStats message from the specified reader or buffer. + * Decodes a DeployIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IndexStats + * @returns DeployIndexRequest * @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.aiplatform.v1beta1.IndexStats; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IndexStats + * @returns DeployIndexRequest * @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.aiplatform.v1beta1.IndexStats; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Verifies an IndexStats message. + * Verifies a DeployIndexRequest 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 an IndexStats message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IndexStats + * @returns DeployIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexStats; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Creates a plain object from an IndexStats message. Also converts values to other types if specified. - * @param message IndexStats + * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * @param message DeployIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexStats to JSON. + * Converts this DeployIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IndexStats + * Gets the default type url for DeployIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IndexEndpoint. */ - interface IIndexEndpoint { - - /** IndexEndpoint name */ - name?: (string|null); - - /** IndexEndpoint displayName */ - displayName?: (string|null); - - /** IndexEndpoint description */ - description?: (string|null); - - /** IndexEndpoint deployedIndexes */ - deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndex[]|null); - - /** IndexEndpoint etag */ - etag?: (string|null); - - /** IndexEndpoint labels */ - labels?: ({ [k: string]: string }|null); - - /** IndexEndpoint createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** IndexEndpoint updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** IndexEndpoint network */ - network?: (string|null); + /** Properties of a DeployIndexResponse. */ + interface IDeployIndexResponse { - /** IndexEndpoint enablePrivateServiceConnect */ - enablePrivateServiceConnect?: (boolean|null); + /** DeployIndexResponse deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents an IndexEndpoint. */ - class IndexEndpoint implements IIndexEndpoint { + /** Represents a DeployIndexResponse. */ + class DeployIndexResponse implements IDeployIndexResponse { /** - * Constructs a new IndexEndpoint. + * Constructs a new DeployIndexResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint); - - /** IndexEndpoint name. */ - public name: string; - - /** IndexEndpoint displayName. */ - public displayName: string; - - /** IndexEndpoint description. */ - public description: string; - - /** IndexEndpoint deployedIndexes. */ - public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndex[]; - - /** IndexEndpoint etag. */ - public etag: string; - - /** IndexEndpoint labels. */ - public labels: { [k: string]: string }; - - /** IndexEndpoint createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** IndexEndpoint updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** IndexEndpoint network. */ - public network: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse); - /** IndexEndpoint enablePrivateServiceConnect. */ - public enablePrivateServiceConnect: boolean; + /** DeployIndexResponse deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new IndexEndpoint instance using the specified properties. + * Creates a new DeployIndexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns IndexEndpoint instance + * @returns DeployIndexResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. - * @param message IndexEndpoint message or plain object to encode + * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @param message DeployIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. - * @param message IndexEndpoint message or plain object to encode + * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @param message DeployIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexEndpoint message from the specified reader or buffer. + * Decodes a DeployIndexResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IndexEndpoint + * @returns DeployIndexResponse * @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.aiplatform.v1beta1.IndexEndpoint; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IndexEndpoint + * @returns DeployIndexResponse * @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.aiplatform.v1beta1.IndexEndpoint; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Verifies an IndexEndpoint message. + * Verifies a DeployIndexResponse 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 an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IndexEndpoint + * @returns DeployIndexResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. - * @param message IndexEndpoint + * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. + * @param message DeployIndexResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexEndpoint to JSON. + * Converts this DeployIndexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IndexEndpoint + * Gets the default type url for DeployIndexResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployedIndex. */ - interface IDeployedIndex { - - /** DeployedIndex id */ - id?: (string|null); - - /** DeployedIndex index */ - index?: (string|null); - - /** DeployedIndex displayName */ - displayName?: (string|null); - - /** DeployedIndex createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** DeployedIndex privateEndpoints */ - privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - - /** DeployedIndex indexSyncTime */ - indexSyncTime?: (google.protobuf.ITimestamp|null); - - /** DeployedIndex automaticResources */ - automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - - /** DeployedIndex dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - - /** DeployedIndex enableAccessLogging */ - enableAccessLogging?: (boolean|null); - - /** DeployedIndex deployedIndexAuthConfig */ - deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); + /** Properties of a DeployIndexOperationMetadata. */ + interface IDeployIndexOperationMetadata { - /** DeployedIndex reservedIpRanges */ - reservedIpRanges?: (string[]|null); + /** DeployIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** DeployedIndex deploymentGroup */ - deploymentGroup?: (string|null); + /** DeployIndexOperationMetadata deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a DeployedIndex. */ - class DeployedIndex implements IDeployedIndex { + /** Represents a DeployIndexOperationMetadata. */ + class DeployIndexOperationMetadata implements IDeployIndexOperationMetadata { /** - * Constructs a new DeployedIndex. + * Constructs a new DeployIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex); - - /** DeployedIndex id. */ - public id: string; - - /** DeployedIndex index. */ - public index: string; - - /** DeployedIndex displayName. */ - public displayName: string; - - /** DeployedIndex createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DeployedIndex privateEndpoints. */ - public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - - /** DeployedIndex indexSyncTime. */ - public indexSyncTime?: (google.protobuf.ITimestamp|null); - - /** DeployedIndex automaticResources. */ - public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - - /** DeployedIndex dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - - /** DeployedIndex enableAccessLogging. */ - public enableAccessLogging: boolean; - - /** DeployedIndex deployedIndexAuthConfig. */ - public deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata); - /** DeployedIndex reservedIpRanges. */ - public reservedIpRanges: string[]; + /** DeployIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** DeployedIndex deploymentGroup. */ - public deploymentGroup: string; + /** DeployIndexOperationMetadata deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new DeployedIndex instance using the specified properties. + * Creates a new DeployIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndex instance + * @returns DeployIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex): google.cloud.aiplatform.v1beta1.DeployedIndex; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. - * @param message DeployedIndex message or plain object to encode + * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * @param message DeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. - * @param message DeployedIndex message or plain object to encode + * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * @param message DeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndex message from the specified reader or buffer. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedIndex + * @returns DeployIndexOperationMetadata * @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.aiplatform.v1beta1.DeployedIndex; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedIndex + * @returns DeployIndexOperationMetadata * @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.aiplatform.v1beta1.DeployedIndex; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Verifies a DeployedIndex message. + * Verifies a DeployIndexOperationMetadata 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 DeployedIndex message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedIndex + * @returns DeployIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndex; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. - * @param message DeployedIndex + * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. + * @param message DeployIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndex to JSON. + * Converts this DeployIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedIndex + * Gets the default type url for DeployIndexOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployedIndexAuthConfig. */ - interface IDeployedIndexAuthConfig { + /** Properties of an UndeployIndexRequest. */ + interface IUndeployIndexRequest { - /** DeployedIndexAuthConfig authProvider */ - authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + /** UndeployIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); + + /** UndeployIndexRequest deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a DeployedIndexAuthConfig. */ - class DeployedIndexAuthConfig implements IDeployedIndexAuthConfig { + /** Represents an UndeployIndexRequest. */ + class UndeployIndexRequest implements IUndeployIndexRequest { /** - * Constructs a new DeployedIndexAuthConfig. + * Constructs a new UndeployIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest); - /** DeployedIndexAuthConfig authProvider. */ - public authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + /** UndeployIndexRequest indexEndpoint. */ + public indexEndpoint: string; + + /** UndeployIndexRequest deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * Creates a new UndeployIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndexAuthConfig instance + * @returns UndeployIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. - * @param message DeployedIndexAuthConfig message or plain object to encode + * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * @param message UndeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. - * @param message DeployedIndexAuthConfig message or plain object to encode + * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * @param message UndeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * Decodes an UndeployIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedIndexAuthConfig + * @returns UndeployIndexRequest * @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.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedIndexAuthConfig + * @returns UndeployIndexRequest * @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.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Verifies a DeployedIndexAuthConfig message. + * Verifies an UndeployIndexRequest 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 DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedIndexAuthConfig + * @returns UndeployIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. - * @param message DeployedIndexAuthConfig + * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. + * @param message UndeployIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndexAuthConfig to JSON. + * Converts this UndeployIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedIndexAuthConfig + * Gets the default type url for UndeployIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace DeployedIndexAuthConfig { - - /** Properties of an AuthProvider. */ - interface IAuthProvider { - - /** AuthProvider audiences */ - audiences?: (string[]|null); - - /** AuthProvider allowedIssuers */ - allowedIssuers?: (string[]|null); - } - - /** Represents an AuthProvider. */ - class AuthProvider implements IAuthProvider { - - /** - * Constructs a new AuthProvider. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider); - - /** AuthProvider audiences. */ - public audiences: string[]; + /** Properties of an UndeployIndexResponse. */ + interface IUndeployIndexResponse { + } - /** AuthProvider allowedIssuers. */ - public allowedIssuers: string[]; + /** Represents an UndeployIndexResponse. */ + class UndeployIndexResponse implements IUndeployIndexResponse { - /** - * Creates a new AuthProvider instance using the specified properties. - * @param [properties] Properties to set - * @returns AuthProvider instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + /** + * Constructs a new UndeployIndexResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse); - /** - * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @param message AuthProvider message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new UndeployIndexResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UndeployIndexResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; - /** - * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @param message AuthProvider message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @param message UndeployIndexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an AuthProvider message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AuthProvider - * @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.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + /** + * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @param message UndeployIndexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an AuthProvider message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuthProvider - * @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.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + /** + * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UndeployIndexResponse + * @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.aiplatform.v1beta1.UndeployIndexResponse; - /** - * Verifies an AuthProvider 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); + /** + * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UndeployIndexResponse + * @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.aiplatform.v1beta1.UndeployIndexResponse; - /** - * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AuthProvider - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + /** + * Verifies an UndeployIndexResponse 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 plain object from an AuthProvider message. Also converts values to other types if specified. - * @param message AuthProvider - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UndeployIndexResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; - /** - * Converts this AuthProvider to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. + * @param message UndeployIndexResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for AuthProvider - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Converts this UndeployIndexResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of an IndexPrivateEndpoints. */ - interface IIndexPrivateEndpoints { + /** + * Gets the default type url for UndeployIndexResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** IndexPrivateEndpoints matchGrpcAddress */ - matchGrpcAddress?: (string|null); + /** Properties of an UndeployIndexOperationMetadata. */ + interface IUndeployIndexOperationMetadata { - /** IndexPrivateEndpoints serviceAttachment */ - serviceAttachment?: (string|null); + /** UndeployIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an IndexPrivateEndpoints. */ - class IndexPrivateEndpoints implements IIndexPrivateEndpoints { + /** Represents an UndeployIndexOperationMetadata. */ + class UndeployIndexOperationMetadata implements IUndeployIndexOperationMetadata { /** - * Constructs a new IndexPrivateEndpoints. + * Constructs a new UndeployIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints); - - /** IndexPrivateEndpoints matchGrpcAddress. */ - public matchGrpcAddress: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata); - /** IndexPrivateEndpoints serviceAttachment. */ - public serviceAttachment: string; + /** UndeployIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new IndexPrivateEndpoints instance using the specified properties. + * Creates a new UndeployIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns IndexPrivateEndpoints instance + * @returns UndeployIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. - * @param message IndexPrivateEndpoints message or plain object to encode + * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. + * @param message UndeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. - * @param message IndexPrivateEndpoints message or plain object to encode + * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. + * @param message UndeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IndexPrivateEndpoints + * @returns UndeployIndexOperationMetadata * @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.aiplatform.v1beta1.IndexPrivateEndpoints; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IndexPrivateEndpoints + * @returns UndeployIndexOperationMetadata * @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.aiplatform.v1beta1.IndexPrivateEndpoints; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Verifies an IndexPrivateEndpoints message. + * Verifies an UndeployIndexOperationMetadata 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 an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IndexPrivateEndpoints + * @returns UndeployIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. - * @param message IndexPrivateEndpoints + * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. + * @param message UndeployIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexPrivateEndpoints to JSON. + * Converts this UndeployIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IndexPrivateEndpoints + * Gets the default type url for UndeployIndexOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents an IndexEndpointService */ - class IndexEndpointService extends $protobuf.rpc.Service { + /** Properties of a MutateDeployedIndexRequest. */ + interface IMutateDeployedIndexRequest { - /** - * Constructs a new IndexEndpointService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** MutateDeployedIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** - * Creates new IndexEndpointService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexEndpointService; + /** MutateDeployedIndexRequest deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + } - /** - * Calls CreateIndexEndpoint. - * @param request CreateIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback): void; + /** Represents a MutateDeployedIndexRequest. */ + class MutateDeployedIndexRequest implements IMutateDeployedIndexRequest { /** - * Calls CreateIndexEndpoint. - * @param request CreateIndexEndpointRequest message or plain object - * @returns Promise + * Constructs a new MutateDeployedIndexRequest. + * @param [properties] Properties to set */ - public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest); - /** - * Calls GetIndexEndpoint. - * @param request GetIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IndexEndpoint - */ - public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback): void; + /** MutateDeployedIndexRequest indexEndpoint. */ + public indexEndpoint: string; + + /** MutateDeployedIndexRequest deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Calls GetIndexEndpoint. - * @param request GetIndexEndpointRequest message or plain object - * @returns Promise + * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateDeployedIndexRequest instance */ - public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Calls ListIndexEndpoints. - * @param request ListIndexEndpointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @param message MutateDeployedIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListIndexEndpoints. - * @param request ListIndexEndpointsRequest message or plain object - * @returns Promise + * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @param message MutateDeployedIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateIndexEndpoint. - * @param request UpdateIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IndexEndpoint + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutateDeployedIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Calls UpdateIndexEndpoint. - * @param request UpdateIndexEndpointRequest message or plain object - * @returns Promise + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutateDeployedIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Calls DeleteIndexEndpoint. - * @param request DeleteIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a MutateDeployedIndexRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteIndexEndpoint. - * @param request DeleteIndexEndpointRequest message or plain object - * @returns Promise + * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateDeployedIndexRequest */ - public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Calls DeployIndex. - * @param request DeployIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. + * @param message MutateDeployedIndexRequest + * @param [options] Conversion options + * @returns Plain object */ - public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeployIndex. - * @param request DeployIndexRequest message or plain object - * @returns Promise + * Converts this MutateDeployedIndexRequest to JSON. + * @returns JSON object */ - public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls UndeployIndex. - * @param request UndeployIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for MutateDeployedIndexRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MutateDeployedIndexResponse. */ + interface IMutateDeployedIndexResponse { + + /** MutateDeployedIndexResponse deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + } + + /** Represents a MutateDeployedIndexResponse. */ + class MutateDeployedIndexResponse implements IMutateDeployedIndexResponse { /** - * Calls UndeployIndex. - * @param request UndeployIndexRequest message or plain object - * @returns Promise + * Constructs a new MutateDeployedIndexResponse. + * @param [properties] Properties to set */ - public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse); + + /** MutateDeployedIndexResponse deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Calls MutateDeployedIndex. - * @param request MutateDeployedIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new MutateDeployedIndexResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateDeployedIndexResponse instance */ - public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Calls MutateDeployedIndex. - * @param request MutateDeployedIndexRequest message or plain object - * @returns Promise + * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * @param message MutateDeployedIndexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): Promise; - } - - namespace IndexEndpointService { + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|createIndexEndpoint}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * @param message MutateDeployedIndexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|getIndexEndpoint}. - * @param error Error, if any - * @param [response] IndexEndpoint + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutateDeployedIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|listIndexEndpoints}. - * @param error Error, if any - * @param [response] ListIndexEndpointsResponse + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutateDeployedIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListIndexEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|updateIndexEndpoint}. - * @param error Error, if any - * @param [response] IndexEndpoint + * Verifies a MutateDeployedIndexResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type UpdateIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deleteIndexEndpoint}. - * @param error Error, if any - * @param [response] Operation + * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateDeployedIndexResponse */ - type DeleteIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deployIndex}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. + * @param message MutateDeployedIndexResponse + * @param [options] Conversion options + * @returns Plain object */ - type DeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|undeployIndex}. - * @param error Error, if any - * @param [response] Operation + * Converts this MutateDeployedIndexResponse to JSON. + * @returns JSON object */ - type UndeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|mutateDeployedIndex}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for MutateDeployedIndexResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type MutateDeployedIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateIndexEndpointRequest. */ - interface ICreateIndexEndpointRequest { + /** Properties of a MutateDeployedIndexOperationMetadata. */ + interface IMutateDeployedIndexOperationMetadata { - /** CreateIndexEndpointRequest parent */ - parent?: (string|null); + /** MutateDeployedIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CreateIndexEndpointRequest indexEndpoint */ - indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** MutateDeployedIndexOperationMetadata deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a CreateIndexEndpointRequest. */ - class CreateIndexEndpointRequest implements ICreateIndexEndpointRequest { + /** Represents a MutateDeployedIndexOperationMetadata. */ + class MutateDeployedIndexOperationMetadata implements IMutateDeployedIndexOperationMetadata { /** - * Constructs a new CreateIndexEndpointRequest. + * Constructs a new MutateDeployedIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata); - /** CreateIndexEndpointRequest parent. */ - public parent: string; + /** MutateDeployedIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CreateIndexEndpointRequest indexEndpoint. */ - public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** MutateDeployedIndexOperationMetadata deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new CreateIndexEndpointRequest instance using the specified properties. + * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIndexEndpointRequest instance + * @returns MutateDeployedIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; /** - * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. - * @param message CreateIndexEndpointRequest message or plain object to encode + * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. + * @param message MutateDeployedIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. - * @param message CreateIndexEndpointRequest message or plain object to encode + * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. + * @param message MutateDeployedIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateIndexEndpointRequest + * @returns MutateDeployedIndexOperationMetadata * @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.aiplatform.v1beta1.CreateIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIndexEndpointRequest + * @returns MutateDeployedIndexOperationMetadata * @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.aiplatform.v1beta1.CreateIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + + /** + * Verifies a MutateDeployedIndexOperationMetadata 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 MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateDeployedIndexOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + + /** + * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. + * @param message MutateDeployedIndexOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MutateDeployedIndexOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MutateDeployedIndexOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents an IndexService */ + class IndexService extends $protobuf.rpc.Service { + + /** + * Constructs a new IndexService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new IndexService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexService; + + /** + * Calls CreateIndex. + * @param request CreateIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback): void; + + /** + * Calls CreateIndex. + * @param request CreateIndexRequest message or plain object + * @returns Promise + */ + public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): Promise; + + /** + * Calls GetIndex. + * @param request GetIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Index + */ + public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback): void; + + /** + * Calls GetIndex. + * @param request GetIndexRequest message or plain object + * @returns Promise + */ + public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest): Promise; /** - * Verifies a CreateIndexEndpointRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListIndexes. + * @param request ListIndexesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIndexesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback): void; /** - * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexEndpointRequest + * Calls ListIndexes. + * @param request ListIndexesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest): Promise; /** - * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. - * @param message CreateIndexEndpointRequest - * @param [options] Conversion options - * @returns Plain object + * Calls UpdateIndex. + * @param request UpdateIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback): void; /** - * Converts this CreateIndexEndpointRequest to JSON. - * @returns JSON object + * Calls UpdateIndex. + * @param request UpdateIndexRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): Promise; /** - * Gets the default type url for CreateIndexEndpointRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls DeleteIndex. + * @param request DeleteIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateIndexEndpointOperationMetadata. */ - interface ICreateIndexEndpointOperationMetadata { - - /** CreateIndexEndpointOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } - - /** Represents a CreateIndexEndpointOperationMetadata. */ - class CreateIndexEndpointOperationMetadata implements ICreateIndexEndpointOperationMetadata { + public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback): void; /** - * Constructs a new CreateIndexEndpointOperationMetadata. - * @param [properties] Properties to set + * Calls DeleteIndex. + * @param request DeleteIndexRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata); + public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): Promise; - /** CreateIndexEndpointOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Calls UpsertDatapoints. + * @param request UpsertDatapointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + */ + public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback): void; /** - * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateIndexEndpointOperationMetadata instance + * Calls UpsertDatapoints. + * @param request UpsertDatapointsRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): Promise; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. - * @param message CreateIndexEndpointOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RemoveDatapoints. + * @param request RemoveDatapointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveDatapointsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback): void; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. - * @param message CreateIndexEndpointOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RemoveDatapoints. + * @param request RemoveDatapointsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): Promise; + } + + namespace IndexService { /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateIndexEndpointOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|createIndex}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateIndexEndpointOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|getIndex}. + * @param error Error, if any + * @param [response] Index */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + type GetIndexCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Index) => void; /** - * Verifies a CreateIndexEndpointOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|listIndexes}. + * @param error Error, if any + * @param [response] ListIndexesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListIndexesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexesResponse) => void; /** - * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexEndpointOperationMetadata + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|updateIndex}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. - * @param message CreateIndexEndpointOperationMetadata - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this CreateIndexEndpointOperationMetadata to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. + * @param error Error, if any + * @param [response] UpsertDatapointsResponse */ - public toJSON(): { [k: string]: any }; + type UpsertDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) => void; /** - * Gets the default type url for CreateIndexEndpointOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. + * @param error Error, if any + * @param [response] RemoveDatapointsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type RemoveDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) => void; } - /** Properties of a GetIndexEndpointRequest. */ - interface IGetIndexEndpointRequest { + /** Properties of a CreateIndexRequest. */ + interface ICreateIndexRequest { - /** GetIndexEndpointRequest name */ - name?: (string|null); + /** CreateIndexRequest parent */ + parent?: (string|null); + + /** CreateIndexRequest index */ + index?: (google.cloud.aiplatform.v1beta1.IIndex|null); } - /** Represents a GetIndexEndpointRequest. */ - class GetIndexEndpointRequest implements IGetIndexEndpointRequest { + /** Represents a CreateIndexRequest. */ + class CreateIndexRequest implements ICreateIndexRequest { /** - * Constructs a new GetIndexEndpointRequest. + * Constructs a new CreateIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest); - /** GetIndexEndpointRequest name. */ - public name: string; + /** CreateIndexRequest parent. */ + public parent: string; + + /** CreateIndexRequest index. */ + public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); /** - * Creates a new GetIndexEndpointRequest instance using the specified properties. + * Creates a new CreateIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetIndexEndpointRequest instance + * @returns CreateIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. - * @param message GetIndexEndpointRequest message or plain object to encode + * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * @param message CreateIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. - * @param message GetIndexEndpointRequest message or plain object to encode + * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * @param message CreateIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * Decodes a CreateIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetIndexEndpointRequest + * @returns CreateIndexRequest * @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.aiplatform.v1beta1.GetIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIndexEndpointRequest + * @returns CreateIndexRequest * @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.aiplatform.v1beta1.GetIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Verifies a GetIndexEndpointRequest message. + * Verifies a CreateIndexRequest 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 GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIndexEndpointRequest + * @returns CreateIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. - * @param message GetIndexEndpointRequest + * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. + * @param message CreateIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIndexEndpointRequest to JSON. + * Converts this CreateIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetIndexEndpointRequest + * Gets the default type url for CreateIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListIndexEndpointsRequest. */ - interface IListIndexEndpointsRequest { - - /** ListIndexEndpointsRequest parent */ - parent?: (string|null); - - /** ListIndexEndpointsRequest filter */ - filter?: (string|null); - - /** ListIndexEndpointsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a CreateIndexOperationMetadata. */ + interface ICreateIndexOperationMetadata { - /** ListIndexEndpointsRequest pageToken */ - pageToken?: (string|null); + /** CreateIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListIndexEndpointsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ + nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); } - /** Represents a ListIndexEndpointsRequest. */ - class ListIndexEndpointsRequest implements IListIndexEndpointsRequest { + /** Represents a CreateIndexOperationMetadata. */ + class CreateIndexOperationMetadata implements ICreateIndexOperationMetadata { /** - * Constructs a new ListIndexEndpointsRequest. + * Constructs a new CreateIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest); - - /** ListIndexEndpointsRequest parent. */ - public parent: string; - - /** ListIndexEndpointsRequest filter. */ - public filter: string; - - /** ListIndexEndpointsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata); - /** ListIndexEndpointsRequest pageToken. */ - public pageToken: string; + /** CreateIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListIndexEndpointsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ + public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); /** - * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * Creates a new CreateIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexEndpointsRequest instance + * @returns CreateIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. - * @param message ListIndexEndpointsRequest message or plain object to encode + * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @param message CreateIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. - * @param message ListIndexEndpointsRequest message or plain object to encode + * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @param message CreateIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIndexEndpointsRequest + * @returns CreateIndexOperationMetadata * @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.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexEndpointsRequest + * @returns CreateIndexOperationMetadata * @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.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Verifies a ListIndexEndpointsRequest message. + * Verifies a CreateIndexOperationMetadata 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 ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexEndpointsRequest + * @returns CreateIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. - * @param message ListIndexEndpointsRequest + * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. + * @param message CreateIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexEndpointsRequest to JSON. + * Converts this CreateIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListIndexEndpointsRequest + * Gets the default type url for CreateIndexOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListIndexEndpointsResponse. */ - interface IListIndexEndpointsResponse { - - /** ListIndexEndpointsResponse indexEndpoints */ - indexEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint[]|null); + /** Properties of a GetIndexRequest. */ + interface IGetIndexRequest { - /** ListIndexEndpointsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetIndexRequest name */ + name?: (string|null); } - /** Represents a ListIndexEndpointsResponse. */ - class ListIndexEndpointsResponse implements IListIndexEndpointsResponse { + /** Represents a GetIndexRequest. */ + class GetIndexRequest implements IGetIndexRequest { /** - * Constructs a new ListIndexEndpointsResponse. + * Constructs a new GetIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse); - - /** ListIndexEndpointsResponse indexEndpoints. */ - public indexEndpoints: google.cloud.aiplatform.v1beta1.IIndexEndpoint[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest); - /** ListIndexEndpointsResponse nextPageToken. */ - public nextPageToken: string; + /** GetIndexRequest name. */ + public name: string; /** - * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * Creates a new GetIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexEndpointsResponse instance + * @returns GetIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. - * @param message ListIndexEndpointsResponse message or plain object to encode + * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * @param message GetIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. - * @param message ListIndexEndpointsResponse message or plain object to encode + * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * @param message GetIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * Decodes a GetIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIndexEndpointsResponse + * @returns GetIndexRequest * @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.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexEndpointsResponse + * @returns GetIndexRequest * @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.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Verifies a ListIndexEndpointsResponse message. + * Verifies a GetIndexRequest 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 ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexEndpointsResponse + * @returns GetIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. - * @param message ListIndexEndpointsResponse + * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. + * @param message GetIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexEndpointsResponse to JSON. + * Converts this GetIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListIndexEndpointsResponse + * Gets the default type url for GetIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateIndexEndpointRequest. */ - interface IUpdateIndexEndpointRequest { + /** Properties of a ListIndexesRequest. */ + interface IListIndexesRequest { - /** UpdateIndexEndpointRequest indexEndpoint */ - indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** ListIndexesRequest parent */ + parent?: (string|null); - /** UpdateIndexEndpointRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListIndexesRequest filter */ + filter?: (string|null); + + /** ListIndexesRequest pageSize */ + pageSize?: (number|null); + + /** ListIndexesRequest pageToken */ + pageToken?: (string|null); + + /** ListIndexesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an UpdateIndexEndpointRequest. */ - class UpdateIndexEndpointRequest implements IUpdateIndexEndpointRequest { + /** Represents a ListIndexesRequest. */ + class ListIndexesRequest implements IListIndexesRequest { /** - * Constructs a new UpdateIndexEndpointRequest. + * Constructs a new ListIndexesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest); - /** UpdateIndexEndpointRequest indexEndpoint. */ - public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** ListIndexesRequest parent. */ + public parent: string; - /** UpdateIndexEndpointRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListIndexesRequest filter. */ + public filter: string; + + /** ListIndexesRequest pageSize. */ + public pageSize: number; + + /** ListIndexesRequest pageToken. */ + public pageToken: string; + + /** ListIndexesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * Creates a new ListIndexesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexEndpointRequest instance + * @returns ListIndexesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. - * @param message UpdateIndexEndpointRequest message or plain object to encode + * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * @param message ListIndexesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. - * @param message UpdateIndexEndpointRequest message or plain object to encode + * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * @param message ListIndexesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a ListIndexesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIndexEndpointRequest + * @returns ListIndexesRequest * @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.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexEndpointRequest + * @returns ListIndexesRequest * @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.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Verifies an UpdateIndexEndpointRequest message. + * Verifies a ListIndexesRequest 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 an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexEndpointRequest + * @returns ListIndexesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. - * @param message UpdateIndexEndpointRequest + * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. + * @param message ListIndexesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexEndpointRequest to JSON. + * Converts this ListIndexesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateIndexEndpointRequest + * Gets the default type url for ListIndexesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteIndexEndpointRequest. */ - interface IDeleteIndexEndpointRequest { + /** Properties of a ListIndexesResponse. */ + interface IListIndexesResponse { - /** DeleteIndexEndpointRequest name */ - name?: (string|null); + /** ListIndexesResponse indexes */ + indexes?: (google.cloud.aiplatform.v1beta1.IIndex[]|null); + + /** ListIndexesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteIndexEndpointRequest. */ - class DeleteIndexEndpointRequest implements IDeleteIndexEndpointRequest { + /** Represents a ListIndexesResponse. */ + class ListIndexesResponse implements IListIndexesResponse { /** - * Constructs a new DeleteIndexEndpointRequest. + * Constructs a new ListIndexesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse); + + /** ListIndexesResponse indexes. */ + public indexes: google.cloud.aiplatform.v1beta1.IIndex[]; - /** DeleteIndexEndpointRequest name. */ - public name: string; + /** ListIndexesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * Creates a new ListIndexesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIndexEndpointRequest instance + * @returns ListIndexesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. - * @param message DeleteIndexEndpointRequest message or plain object to encode + * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * @param message ListIndexesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. - * @param message DeleteIndexEndpointRequest message or plain object to encode + * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * @param message ListIndexesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * Decodes a ListIndexesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIndexEndpointRequest + * @returns ListIndexesResponse * @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.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIndexEndpointRequest + * @returns ListIndexesResponse * @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.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Verifies a DeleteIndexEndpointRequest message. + * Verifies a ListIndexesResponse 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 DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIndexEndpointRequest + * @returns ListIndexesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. - * @param message DeleteIndexEndpointRequest + * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. + * @param message ListIndexesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIndexEndpointRequest to JSON. + * Converts this ListIndexesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteIndexEndpointRequest + * Gets the default type url for ListIndexesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployIndexRequest. */ - interface IDeployIndexRequest { + /** Properties of an UpdateIndexRequest. */ + interface IUpdateIndexRequest { - /** DeployIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** UpdateIndexRequest index */ + index?: (google.cloud.aiplatform.v1beta1.IIndex|null); - /** DeployIndexRequest deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeployIndexRequest. */ - class DeployIndexRequest implements IDeployIndexRequest { + /** Represents an UpdateIndexRequest. */ + class UpdateIndexRequest implements IUpdateIndexRequest { /** - * Constructs a new DeployIndexRequest. + * Constructs a new UpdateIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest); - /** DeployIndexRequest indexEndpoint. */ - public indexEndpoint: string; + /** UpdateIndexRequest index. */ + public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); - /** DeployIndexRequest deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeployIndexRequest instance using the specified properties. + * Creates a new UpdateIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexRequest instance + * @returns UpdateIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. - * @param message DeployIndexRequest message or plain object to encode + * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * @param message UpdateIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. - * @param message DeployIndexRequest message or plain object to encode + * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * @param message UpdateIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer. + * Decodes an UpdateIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployIndexRequest + * @returns UpdateIndexRequest * @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.aiplatform.v1beta1.DeployIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployIndexRequest + * @returns UpdateIndexRequest * @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.aiplatform.v1beta1.DeployIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Verifies a DeployIndexRequest message. + * Verifies an UpdateIndexRequest 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 DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployIndexRequest + * @returns UpdateIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. - * @param message DeployIndexRequest + * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. + * @param message UpdateIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexRequest to JSON. + * Converts this UpdateIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployIndexRequest + * Gets the default type url for UpdateIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployIndexResponse. */ - interface IDeployIndexResponse { + /** Properties of an UpdateIndexOperationMetadata. */ + interface IUpdateIndexOperationMetadata { - /** DeployIndexResponse deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ + nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); } - /** Represents a DeployIndexResponse. */ - class DeployIndexResponse implements IDeployIndexResponse { + /** Represents an UpdateIndexOperationMetadata. */ + class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { /** - * Constructs a new DeployIndexResponse. + * Constructs a new UpdateIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); - /** DeployIndexResponse deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ + public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); /** - * Creates a new DeployIndexResponse instance using the specified properties. + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexResponse instance + * @returns UpdateIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. - * @param message DeployIndexResponse message or plain object to encode + * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @param message UpdateIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. - * @param message DeployIndexResponse message or plain object to encode + * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @param message UpdateIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployIndexResponse + * @returns UpdateIndexOperationMetadata * @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.aiplatform.v1beta1.DeployIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployIndexResponse + * @returns UpdateIndexOperationMetadata * @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.aiplatform.v1beta1.DeployIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Verifies a DeployIndexResponse message. + * Verifies an UpdateIndexOperationMetadata 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 DeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployIndexResponse + * @returns UpdateIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. - * @param message DeployIndexResponse + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexResponse to JSON. + * Converts this UpdateIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployIndexResponse + * Gets the default type url for UpdateIndexOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployIndexOperationMetadata. */ - interface IDeployIndexOperationMetadata { - - /** DeployIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of a DeleteIndexRequest. */ + interface IDeleteIndexRequest { - /** DeployIndexOperationMetadata deployedIndexId */ - deployedIndexId?: (string|null); + /** DeleteIndexRequest name */ + name?: (string|null); } - /** Represents a DeployIndexOperationMetadata. */ - class DeployIndexOperationMetadata implements IDeployIndexOperationMetadata { + /** Represents a DeleteIndexRequest. */ + class DeleteIndexRequest implements IDeleteIndexRequest { /** - * Constructs a new DeployIndexOperationMetadata. + * Constructs a new DeleteIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata); - - /** DeployIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); - /** DeployIndexOperationMetadata deployedIndexId. */ - public deployedIndexId: string; + /** DeleteIndexRequest name. */ + public name: string; /** - * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * Creates a new DeleteIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexOperationMetadata instance + * @returns DeleteIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. - * @param message DeployIndexOperationMetadata message or plain object to encode + * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @param message DeleteIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. - * @param message DeployIndexOperationMetadata message or plain object to encode + * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @param message DeleteIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployIndexOperationMetadata + * @returns DeleteIndexRequest * @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.aiplatform.v1beta1.DeployIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployIndexOperationMetadata + * @returns DeleteIndexRequest * @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.aiplatform.v1beta1.DeployIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Verifies a DeployIndexOperationMetadata message. + * Verifies a DeleteIndexRequest 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 DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployIndexOperationMetadata + * @returns DeleteIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. - * @param message DeployIndexOperationMetadata + * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * @param message DeleteIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexOperationMetadata to JSON. + * Converts this DeleteIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployIndexOperationMetadata + * Gets the default type url for DeleteIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployIndexRequest. */ - interface IUndeployIndexRequest { + /** Properties of an UpsertDatapointsRequest. */ + interface IUpsertDatapointsRequest { - /** UndeployIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** UpsertDatapointsRequest index */ + index?: (string|null); - /** UndeployIndexRequest deployedIndexId */ - deployedIndexId?: (string|null); + /** UpsertDatapointsRequest datapoints */ + datapoints?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint[]|null); } - /** Represents an UndeployIndexRequest. */ - class UndeployIndexRequest implements IUndeployIndexRequest { + /** Represents an UpsertDatapointsRequest. */ + class UpsertDatapointsRequest implements IUpsertDatapointsRequest { /** - * Constructs a new UndeployIndexRequest. + * Constructs a new UpsertDatapointsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest); - /** UndeployIndexRequest indexEndpoint. */ - public indexEndpoint: string; + /** UpsertDatapointsRequest index. */ + public index: string; - /** UndeployIndexRequest deployedIndexId. */ - public deployedIndexId: string; + /** UpsertDatapointsRequest datapoints. */ + public datapoints: google.cloud.aiplatform.v1beta1.IIndexDatapoint[]; /** - * Creates a new UndeployIndexRequest instance using the specified properties. + * Creates a new UpsertDatapointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployIndexRequest instance + * @returns UpsertDatapointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. - * @param message UndeployIndexRequest message or plain object to encode + * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * @param message UpsertDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. - * @param message UndeployIndexRequest message or plain object to encode + * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * @param message UpsertDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployIndexRequest + * @returns UpsertDatapointsRequest * @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.aiplatform.v1beta1.UndeployIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployIndexRequest + * @returns UpsertDatapointsRequest * @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.aiplatform.v1beta1.UndeployIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Verifies an UndeployIndexRequest message. + * Verifies an UpsertDatapointsRequest 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 an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployIndexRequest + * @returns UpsertDatapointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. - * @param message UndeployIndexRequest + * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. + * @param message UpsertDatapointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployIndexRequest to JSON. + * Converts this UpsertDatapointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployIndexRequest + * Gets the default type url for UpsertDatapointsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployIndexResponse. */ - interface IUndeployIndexResponse { + /** Properties of an UpsertDatapointsResponse. */ + interface IUpsertDatapointsResponse { } - /** Represents an UndeployIndexResponse. */ - class UndeployIndexResponse implements IUndeployIndexResponse { + /** Represents an UpsertDatapointsResponse. */ + class UpsertDatapointsResponse implements IUpsertDatapointsResponse { /** - * Constructs a new UndeployIndexResponse. + * Constructs a new UpsertDatapointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse); /** - * Creates a new UndeployIndexResponse instance using the specified properties. + * Creates a new UpsertDatapointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployIndexResponse instance + * @returns UpsertDatapointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @param message UndeployIndexResponse message or plain object to encode + * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * @param message UpsertDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @param message UndeployIndexResponse message or plain object to encode + * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * @param message UpsertDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployIndexResponse + * @returns UpsertDatapointsResponse * @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.aiplatform.v1beta1.UndeployIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployIndexResponse + * @returns UpsertDatapointsResponse * @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.aiplatform.v1beta1.UndeployIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Verifies an UndeployIndexResponse message. + * Verifies an UpsertDatapointsResponse 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 an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployIndexResponse + * @returns UpsertDatapointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. - * @param message UndeployIndexResponse + * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. + * @param message UpsertDatapointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployIndexResponse to JSON. + * Converts this UpsertDatapointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployIndexResponse + * Gets the default type url for UpsertDatapointsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployIndexOperationMetadata. */ - interface IUndeployIndexOperationMetadata { + /** Properties of a RemoveDatapointsRequest. */ + interface IRemoveDatapointsRequest { - /** UndeployIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** RemoveDatapointsRequest index */ + index?: (string|null); + + /** RemoveDatapointsRequest datapointIds */ + datapointIds?: (string[]|null); } - /** Represents an UndeployIndexOperationMetadata. */ - class UndeployIndexOperationMetadata implements IUndeployIndexOperationMetadata { + /** Represents a RemoveDatapointsRequest. */ + class RemoveDatapointsRequest implements IRemoveDatapointsRequest { /** - * Constructs a new UndeployIndexOperationMetadata. + * Constructs a new RemoveDatapointsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest); - /** UndeployIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** RemoveDatapointsRequest index. */ + public index: string; + + /** RemoveDatapointsRequest datapointIds. */ + public datapointIds: string[]; /** - * Creates a new UndeployIndexOperationMetadata instance using the specified properties. + * Creates a new RemoveDatapointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployIndexOperationMetadata instance + * @returns RemoveDatapointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @param message UndeployIndexOperationMetadata message or plain object to encode + * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * @param message RemoveDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @param message UndeployIndexOperationMetadata message or plain object to encode + * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * @param message RemoveDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployIndexOperationMetadata + * @returns RemoveDatapointsRequest * @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.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployIndexOperationMetadata + * @returns RemoveDatapointsRequest * @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.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Verifies an UndeployIndexOperationMetadata message. + * Verifies a RemoveDatapointsRequest 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 an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployIndexOperationMetadata + * @returns RemoveDatapointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. - * @param message UndeployIndexOperationMetadata + * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. + * @param message RemoveDatapointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployIndexOperationMetadata to JSON. + * Converts this RemoveDatapointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployIndexOperationMetadata + * Gets the default type url for RemoveDatapointsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MutateDeployedIndexRequest. */ - interface IMutateDeployedIndexRequest { - - /** MutateDeployedIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); - - /** MutateDeployedIndexRequest deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** Properties of a RemoveDatapointsResponse. */ + interface IRemoveDatapointsResponse { } - /** Represents a MutateDeployedIndexRequest. */ - class MutateDeployedIndexRequest implements IMutateDeployedIndexRequest { + /** Represents a RemoveDatapointsResponse. */ + class RemoveDatapointsResponse implements IRemoveDatapointsResponse { /** - * Constructs a new MutateDeployedIndexRequest. + * Constructs a new RemoveDatapointsResponse. * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest); - - /** MutateDeployedIndexRequest indexEndpoint. */ - public indexEndpoint: string; - - /** MutateDeployedIndexRequest deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse); /** - * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * Creates a new RemoveDatapointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MutateDeployedIndexRequest instance + * @returns RemoveDatapointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @param message MutateDeployedIndexRequest message or plain object to encode + * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * @param message RemoveDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @param message MutateDeployedIndexRequest message or plain object to encode + * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * @param message RemoveDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateDeployedIndexRequest + * @returns RemoveDatapointsResponse * @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.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexRequest + * @returns RemoveDatapointsResponse * @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.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Verifies a MutateDeployedIndexRequest message. + * Verifies a RemoveDatapointsResponse 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 MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateDeployedIndexRequest + * @returns RemoveDatapointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. - * @param message MutateDeployedIndexRequest + * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. + * @param message RemoveDatapointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateDeployedIndexRequest to JSON. + * Converts this RemoveDatapointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MutateDeployedIndexRequest + * Gets the default type url for RemoveDatapointsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MutateDeployedIndexResponse. */ - interface IMutateDeployedIndexResponse { + /** Properties of a NearestNeighborSearchOperationMetadata. */ + interface INearestNeighborSearchOperationMetadata { - /** MutateDeployedIndexResponse deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** NearestNeighborSearchOperationMetadata contentValidationStats */ + contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); + + /** NearestNeighborSearchOperationMetadata dataBytesCount */ + dataBytesCount?: (number|Long|string|null); } - /** Represents a MutateDeployedIndexResponse. */ - class MutateDeployedIndexResponse implements IMutateDeployedIndexResponse { + /** Represents a NearestNeighborSearchOperationMetadata. */ + class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { /** - * Constructs a new MutateDeployedIndexResponse. + * Constructs a new NearestNeighborSearchOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); - /** MutateDeployedIndexResponse deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** NearestNeighborSearchOperationMetadata contentValidationStats. */ + public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; + + /** NearestNeighborSearchOperationMetadata dataBytesCount. */ + public dataBytesCount: (number|Long|string); /** - * Creates a new MutateDeployedIndexResponse instance using the specified properties. + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns MutateDeployedIndexResponse instance + * @returns NearestNeighborSearchOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @param message MutateDeployedIndexResponse message or plain object to encode + * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * @param message NearestNeighborSearchOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @param message MutateDeployedIndexResponse message or plain object to encode + * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * @param message NearestNeighborSearchOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateDeployedIndexResponse + * @returns NearestNeighborSearchOperationMetadata * @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.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexResponse + * @returns NearestNeighborSearchOperationMetadata * @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.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Verifies a MutateDeployedIndexResponse message. + * Verifies a NearestNeighborSearchOperationMetadata 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 MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateDeployedIndexResponse + * @returns NearestNeighborSearchOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. - * @param message MutateDeployedIndexResponse + * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. + * @param message NearestNeighborSearchOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateDeployedIndexResponse to JSON. + * Converts this NearestNeighborSearchOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MutateDeployedIndexResponse + * Gets the default type url for NearestNeighborSearchOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MutateDeployedIndexOperationMetadata. */ - interface IMutateDeployedIndexOperationMetadata { + namespace NearestNeighborSearchOperationMetadata { - /** MutateDeployedIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of a RecordError. */ + interface IRecordError { - /** MutateDeployedIndexOperationMetadata deployedIndexId */ - deployedIndexId?: (string|null); + /** RecordError errorType */ + errorType?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null); + + /** RecordError errorMessage */ + errorMessage?: (string|null); + + /** RecordError sourceGcsUri */ + sourceGcsUri?: (string|null); + + /** RecordError embeddingId */ + embeddingId?: (string|null); + + /** RecordError rawRecord */ + rawRecord?: (string|null); + } + + /** Represents a RecordError. */ + class RecordError implements IRecordError { + + /** + * Constructs a new RecordError. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError); + + /** RecordError errorType. */ + public errorType: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType); + + /** RecordError errorMessage. */ + public errorMessage: string; + + /** RecordError sourceGcsUri. */ + public sourceGcsUri: string; + + /** RecordError embeddingId. */ + public embeddingId: string; + + /** RecordError rawRecord. */ + public rawRecord: string; + + /** + * Creates a new RecordError instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordError instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @param message RecordError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @param message RecordError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordError + * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Decodes a RecordError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecordError + * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Verifies a RecordError 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 RecordError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordError + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Creates a plain object from a RecordError message. Also converts values to other types if specified. + * @param message RecordError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordError + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RecordError { + + /** RecordErrorType enum. */ + enum RecordErrorType { + ERROR_TYPE_UNSPECIFIED = 0, + EMPTY_LINE = 1, + INVALID_JSON_SYNTAX = 2, + INVALID_CSV_SYNTAX = 3, + INVALID_AVRO_SYNTAX = 4, + INVALID_EMBEDDING_ID = 5, + EMBEDDING_SIZE_MISMATCH = 6, + NAMESPACE_MISSING = 7 + } + } + + /** Properties of a ContentValidationStats. */ + interface IContentValidationStats { + + /** ContentValidationStats sourceGcsUri */ + sourceGcsUri?: (string|null); + + /** ContentValidationStats validRecordCount */ + validRecordCount?: (number|Long|string|null); + + /** ContentValidationStats invalidRecordCount */ + invalidRecordCount?: (number|Long|string|null); + + /** ContentValidationStats partialErrors */ + partialErrors?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]|null); + } + + /** Represents a ContentValidationStats. */ + class ContentValidationStats implements IContentValidationStats { + + /** + * Constructs a new ContentValidationStats. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats); + + /** ContentValidationStats sourceGcsUri. */ + public sourceGcsUri: string; + + /** ContentValidationStats validRecordCount. */ + public validRecordCount: (number|Long|string); + + /** ContentValidationStats invalidRecordCount. */ + public invalidRecordCount: (number|Long|string); + + /** ContentValidationStats partialErrors. */ + public partialErrors: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]; + + /** + * Creates a new ContentValidationStats instance using the specified properties. + * @param [properties] Properties to set + * @returns ContentValidationStats instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @param message ContentValidationStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @param message ContentValidationStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContentValidationStats + * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContentValidationStats + * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Verifies a ContentValidationStats 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 ContentValidationStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContentValidationStats + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. + * @param message ContentValidationStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ContentValidationStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ContentValidationStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a MutateDeployedIndexOperationMetadata. */ - class MutateDeployedIndexOperationMetadata implements IMutateDeployedIndexOperationMetadata { + /** Represents a JobService */ + class JobService extends $protobuf.rpc.Service { /** - * Constructs a new MutateDeployedIndexOperationMetadata. - * @param [properties] Properties to set + * Constructs a new JobService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** MutateDeployedIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Creates new JobService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; - /** MutateDeployedIndexOperationMetadata deployedIndexId. */ - public deployedIndexId: string; + /** + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob + */ + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; /** - * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns MutateDeployedIndexOperationMetadata instance + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @param message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): void; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @param message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): void; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; /** - * Verifies a MutateDeployedIndexOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; /** - * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MutateDeployedIndexOperationMetadata + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; /** - * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. - * @param message MutateDeployedIndexOperationMetadata - * @param [options] Conversion options - * @returns Plain object + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; /** - * Converts this MutateDeployedIndexOperationMetadata to JSON. - * @returns JSON object + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; /** - * Gets the default type url for MutateDeployedIndexOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateDataLabelingJob. + * @param request CreateDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataLabelingJob */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback): void; + + /** + * Calls CreateDataLabelingJob. + * @param request CreateDataLabelingJobRequest message or plain object + * @returns Promise + */ + public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; + + /** + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataLabelingJob + */ + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; - /** Represents an IndexService */ - class IndexService extends $protobuf.rpc.Service { + /** + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @returns Promise + */ + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; /** - * Constructs a new IndexService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; /** - * Creates new IndexService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @returns Promise */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexService; + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; /** - * Calls CreateIndex. - * @param request CreateIndexRequest message or plain object + * Calls DeleteDataLabelingJob. + * @param request DeleteDataLabelingJobRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ - public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback): void; + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; /** - * Calls CreateIndex. - * @param request CreateIndexRequest message or plain object + * Calls DeleteDataLabelingJob. + * @param request DeleteDataLabelingJobRequest message or plain object * @returns Promise */ - public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): Promise; + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; /** - * Calls GetIndex. - * @param request GetIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Index + * Calls CancelDataLabelingJob. + * @param request CancelDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback): void; + public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; /** - * Calls GetIndex. - * @param request GetIndexRequest message or plain object + * Calls CancelDataLabelingJob. + * @param request CancelDataLabelingJobRequest message or plain object * @returns Promise */ - public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest): Promise; + public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): Promise; /** - * Calls ListIndexes. - * @param request ListIndexesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIndexesResponse + * Calls CreateHyperparameterTuningJob. + * @param request CreateHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob */ - public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback): void; + public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback): void; /** - * Calls ListIndexes. - * @param request ListIndexesRequest message or plain object + * Calls CreateHyperparameterTuningJob. + * @param request CreateHyperparameterTuningJobRequest message or plain object * @returns Promise */ - public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest): Promise; + public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; /** - * Calls UpdateIndex. - * @param request UpdateIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob */ - public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback): void; + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; /** - * Calls UpdateIndex. - * @param request UpdateIndexRequest message or plain object + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object * @returns Promise */ - public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): Promise; + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; /** - * Calls DeleteIndex. - * @param request DeleteIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls ListHyperparameterTuningJobs. + * @param request ListHyperparameterTuningJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse */ - public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback): void; + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; /** - * Calls DeleteIndex. - * @param request DeleteIndexRequest message or plain object + * Calls ListHyperparameterTuningJobs. + * @param request ListHyperparameterTuningJobsRequest message or plain object * @returns Promise */ - public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): Promise; + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; /** - * Calls UpsertDatapoints. - * @param request UpsertDatapointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + * Calls DeleteHyperparameterTuningJob. + * @param request DeleteHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback): void; + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; /** - * Calls UpsertDatapoints. - * @param request UpsertDatapointsRequest message or plain object + * Calls DeleteHyperparameterTuningJob. + * @param request DeleteHyperparameterTuningJobRequest message or plain object * @returns Promise */ - public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): Promise; + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; /** - * Calls RemoveDatapoints. - * @param request RemoveDatapointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + * Calls CancelHyperparameterTuningJob. + * @param request CancelHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback): void; + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; /** - * Calls RemoveDatapoints. - * @param request RemoveDatapointsRequest message or plain object + * Calls CancelHyperparameterTuningJob. + * @param request CancelHyperparameterTuningJobRequest message or plain object * @returns Promise */ - public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): Promise; - } - - namespace IndexService { + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|createIndex}. - * @param error Error, if any - * @param [response] Operation + * Calls CreateNasJob. + * @param request CreateNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasJob */ - type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public createNasJob(request: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateNasJobCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|getIndex}. - * @param error Error, if any - * @param [response] Index + * Calls CreateNasJob. + * @param request CreateNasJobRequest message or plain object + * @returns Promise */ - type GetIndexCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Index) => void; + public createNasJob(request: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|listIndexes}. - * @param error Error, if any - * @param [response] ListIndexesResponse + * Calls GetNasJob. + * @param request GetNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasJob */ - type ListIndexesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexesResponse) => void; + public getNasJob(request: google.cloud.aiplatform.v1beta1.IGetNasJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetNasJobCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|updateIndex}. - * @param error Error, if any - * @param [response] Operation + * Calls GetNasJob. + * @param request GetNasJobRequest message or plain object + * @returns Promise */ - type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public getNasJob(request: google.cloud.aiplatform.v1beta1.IGetNasJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. - * @param error Error, if any - * @param [response] Operation + * Calls ListNasJobs. + * @param request ListNasJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNasJobsResponse */ - type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public listNasJobs(request: google.cloud.aiplatform.v1beta1.IListNasJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListNasJobsCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. - * @param error Error, if any - * @param [response] UpsertDatapointsResponse + * Calls ListNasJobs. + * @param request ListNasJobsRequest message or plain object + * @returns Promise */ - type UpsertDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) => void; + public listNasJobs(request: google.cloud.aiplatform.v1beta1.IListNasJobsRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. - * @param error Error, if any - * @param [response] RemoveDatapointsResponse + * Calls DeleteNasJob. + * @param request DeleteNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - type RemoveDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) => void; - } - - /** Properties of a CreateIndexRequest. */ - interface ICreateIndexRequest { - - /** CreateIndexRequest parent */ - parent?: (string|null); - - /** CreateIndexRequest index */ - index?: (google.cloud.aiplatform.v1beta1.IIndex|null); - } - - /** Represents a CreateIndexRequest. */ - class CreateIndexRequest implements ICreateIndexRequest { + public deleteNasJob(request: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteNasJobCallback): void; /** - * Constructs a new CreateIndexRequest. - * @param [properties] Properties to set + * Calls DeleteNasJob. + * @param request DeleteNasJobRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest); - - /** CreateIndexRequest parent. */ - public parent: string; - - /** CreateIndexRequest index. */ - public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + public deleteNasJob(request: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest): Promise; /** - * Creates a new CreateIndexRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateIndexRequest instance + * Calls CancelNasJob. + * @param request CancelNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public cancelNasJob(request: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelNasJobCallback): void; /** - * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @param message CreateIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CancelNasJob. + * @param request CancelNasJobRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelNasJob(request: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest): Promise; /** - * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @param message CreateIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetNasTrialDetail. + * @param request GetNasTrialDetailRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasTrialDetail */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getNasTrialDetail(request: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetailCallback): void; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetNasTrialDetail. + * @param request GetNasTrialDetailRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public getNasTrialDetail(request: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest): Promise; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListNasTrialDetails. + * @param request ListNasTrialDetailsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public listNasTrialDetails(request: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetailsCallback): void; /** - * Verifies a CreateIndexRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListNasTrialDetails. + * @param request ListNasTrialDetailsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public listNasTrialDetails(request: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest): Promise; /** - * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexRequest + * Calls CreateBatchPredictionJob. + * @param request CreateBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchPredictionJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; /** - * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. - * @param message CreateIndexRequest - * @param [options] Conversion options - * @returns Plain object + * Calls CreateBatchPredictionJob. + * @param request CreateBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; /** - * Converts this CreateIndexRequest to JSON. - * @returns JSON object + * Calls GetBatchPredictionJob. + * @param request GetBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchPredictionJob */ - public toJSON(): { [k: string]: any }; + public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback): void; /** - * Gets the default type url for CreateIndexRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetBatchPredictionJob. + * @param request GetBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateIndexOperationMetadata. */ - interface ICreateIndexOperationMetadata { - - /** CreateIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ - nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); - } - - /** Represents a CreateIndexOperationMetadata. */ - class CreateIndexOperationMetadata implements ICreateIndexOperationMetadata { + public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; /** - * Constructs a new CreateIndexOperationMetadata. - * @param [properties] Properties to set + * Calls ListBatchPredictionJobs. + * @param request ListBatchPredictionJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata); - - /** CreateIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ - public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; /** - * Creates a new CreateIndexOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateIndexOperationMetadata instance + * Calls ListBatchPredictionJobs. + * @param request ListBatchPredictionJobsRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; /** - * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @param message CreateIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteBatchPredictionJob. + * @param request DeleteBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; /** - * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @param message CreateIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteBatchPredictionJob. + * @param request DeleteBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelBatchPredictionJob. + * @param request CancelBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelBatchPredictionJob. + * @param request CancelBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): Promise; /** - * Verifies a CreateIndexOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateModelDeploymentMonitoringJob. + * @param request CreateModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob */ - public static verify(message: { [k: string]: any }): (string|null); + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; /** - * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexOperationMetadata + * Calls CreateModelDeploymentMonitoringJob. + * @param request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; /** - * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. - * @param message CreateIndexOperationMetadata - * @param [options] Conversion options - * @returns Plain object + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, callback: google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback): void; /** - * Converts this CreateIndexOperationMetadata to JSON. - * @returns JSON object + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; /** - * Gets the default type url for CreateIndexOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetModelDeploymentMonitoringJob. + * @param request GetModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetIndexRequest. */ - interface IGetIndexRequest { - - /** GetIndexRequest name */ - name?: (string|null); - } - - /** Represents a GetIndexRequest. */ - class GetIndexRequest implements IGetIndexRequest { + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; /** - * Constructs a new GetIndexRequest. - * @param [properties] Properties to set + * Calls GetModelDeploymentMonitoringJob. + * @param request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest); - - /** GetIndexRequest name. */ - public name: string; + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; /** - * Creates a new GetIndexRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetIndexRequest instance + * Calls ListModelDeploymentMonitoringJobs. + * @param request ListModelDeploymentMonitoringJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; /** - * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @param message GetIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListModelDeploymentMonitoringJobs. + * @param request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; /** - * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @param message GetIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateModelDeploymentMonitoringJob. + * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; /** - * Decodes a GetIndexRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateModelDeploymentMonitoringJob. + * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; /** - * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelDeploymentMonitoringJob. + * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; /** - * Verifies a GetIndexRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteModelDeploymentMonitoringJob. + * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; /** - * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetIndexRequest + * Calls PauseModelDeploymentMonitoringJob. + * @param request PauseModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback): void; /** - * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. - * @param message GetIndexRequest - * @param [options] Conversion options - * @returns Plain object + * Calls PauseModelDeploymentMonitoringJob. + * @param request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; /** - * Converts this GetIndexRequest to JSON. - * @returns JSON object + * Calls ResumeModelDeploymentMonitoringJob. + * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public toJSON(): { [k: string]: any }; + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback): void; /** - * Gets the default type url for GetIndexRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ResumeModelDeploymentMonitoringJob. + * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; } - /** Properties of a ListIndexesRequest. */ - interface IListIndexesRequest { - - /** ListIndexesRequest parent */ - parent?: (string|null); - - /** ListIndexesRequest filter */ - filter?: (string|null); + namespace JobService { - /** ListIndexesRequest pageSize */ - pageSize?: (number|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. + * @param error Error, if any + * @param [response] CustomJob + */ + type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; - /** ListIndexesRequest pageToken */ - pageToken?: (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. + * @param error Error, if any + * @param [response] CustomJob + */ + type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; - /** ListIndexesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. + * @param error Error, if any + * @param [response] ListCustomJobsResponse + */ + type ListCustomJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) => void; - /** Represents a ListIndexesRequest. */ - class ListIndexesRequest implements IListIndexesRequest { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCustomJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Constructs a new ListIndexesRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. + * @param error Error, if any + * @param [response] Empty */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest); - - /** ListIndexesRequest parent. */ - public parent: string; - - /** ListIndexesRequest filter. */ - public filter: string; + type CancelCustomJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** ListIndexesRequest pageSize. */ - public pageSize: number; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. + * @param error Error, if any + * @param [response] DataLabelingJob + */ + type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; - /** ListIndexesRequest pageToken. */ - public pageToken: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. + * @param error Error, if any + * @param [response] DataLabelingJob + */ + type GetDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; - /** ListIndexesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. + * @param error Error, if any + * @param [response] ListDataLabelingJobsResponse + */ + type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; /** - * Creates a new ListIndexesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListIndexesRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. - * @param message ListIndexesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. + * @param error Error, if any + * @param [response] Empty */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. - * @param message ListIndexesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] HyperparameterTuningJob */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListIndexesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] HyperparameterTuningJob */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListIndexesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. + * @param error Error, if any + * @param [response] ListHyperparameterTuningJobsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + type ListHyperparameterTuningJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) => void; /** - * Verifies a ListIndexesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type DeleteHyperparameterTuningJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListIndexesRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. - * @param message ListIndexesRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createNasJob}. + * @param error Error, if any + * @param [response] NasJob */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type CreateNasJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.NasJob) => void; /** - * Converts this ListIndexesRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getNasJob}. + * @param error Error, if any + * @param [response] NasJob */ - public toJSON(): { [k: string]: any }; + type GetNasJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.NasJob) => void; /** - * Gets the default type url for ListIndexesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listNasJobs}. + * @param error Error, if any + * @param [response] ListNasJobsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + type ListNasJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListNasJobsResponse) => void; - /** Properties of a ListIndexesResponse. */ - interface IListIndexesResponse { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteNasJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteNasJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** ListIndexesResponse indexes */ - indexes?: (google.cloud.aiplatform.v1beta1.IIndex[]|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelNasJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelNasJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** ListIndexesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getNasTrialDetail}. + * @param error Error, if any + * @param [response] NasTrialDetail + */ + type GetNasTrialDetailCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.NasTrialDetail) => void; - /** Represents a ListIndexesResponse. */ - class ListIndexesResponse implements IListIndexesResponse { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listNasTrialDetails}. + * @param error Error, if any + * @param [response] ListNasTrialDetailsResponse + */ + type ListNasTrialDetailsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse) => void; /** - * Constructs a new ListIndexesResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse); + type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; - /** ListIndexesResponse indexes. */ - public indexes: google.cloud.aiplatform.v1beta1.IIndex[]; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob + */ + type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; - /** ListIndexesResponse nextPageToken. */ - public nextPageToken: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. + * @param error Error, if any + * @param [response] ListBatchPredictionJobsResponse + */ + type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; /** - * Creates a new ListIndexesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListIndexesResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. - * @param message ListIndexesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. + * @param error Error, if any + * @param [response] Empty */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. - * @param message ListIndexesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListIndexesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. + * @param error Error, if any + * @param [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListIndexesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + type GetModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Verifies a ListIndexesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. + * @param error Error, if any + * @param [response] ListModelDeploymentMonitoringJobsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; /** - * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListIndexesResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + type UpdateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. - * @param message ListIndexesResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListIndexesResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; + type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Gets the default type url for ListIndexesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Empty */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ResumeModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of an UpdateIndexRequest. */ - interface IUpdateIndexRequest { + /** Properties of a CreateCustomJobRequest. */ + interface ICreateCustomJobRequest { - /** UpdateIndexRequest index */ - index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + /** CreateCustomJobRequest parent */ + parent?: (string|null); - /** UpdateIndexRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateCustomJobRequest customJob */ + customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); } - /** Represents an UpdateIndexRequest. */ - class UpdateIndexRequest implements IUpdateIndexRequest { + /** Represents a CreateCustomJobRequest. */ + class CreateCustomJobRequest implements ICreateCustomJobRequest { /** - * Constructs a new UpdateIndexRequest. + * Constructs a new CreateCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); - /** UpdateIndexRequest index. */ - public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + /** CreateCustomJobRequest parent. */ + public parent: string; - /** UpdateIndexRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateCustomJobRequest customJob. */ + public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); /** - * Creates a new UpdateIndexRequest instance using the specified properties. + * Creates a new CreateCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexRequest instance + * @returns CreateCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. - * @param message UpdateIndexRequest message or plain object to encode + * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * @param message CreateCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. - * @param message UpdateIndexRequest message or plain object to encode + * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * @param message CreateCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIndexRequest + * @returns CreateCustomJobRequest * @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.aiplatform.v1beta1.UpdateIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexRequest + * @returns CreateCustomJobRequest * @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.aiplatform.v1beta1.UpdateIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Verifies an UpdateIndexRequest message. + * Verifies a CreateCustomJobRequest 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 an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexRequest + * @returns CreateCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. - * @param message UpdateIndexRequest + * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. + * @param message CreateCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexRequest to JSON. + * Converts this CreateCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateIndexRequest + * Gets the default type url for CreateCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateIndexOperationMetadata. */ - interface IUpdateIndexOperationMetadata { - - /** UpdateIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of a GetCustomJobRequest. */ + interface IGetCustomJobRequest { - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ - nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** GetCustomJobRequest name */ + name?: (string|null); } - /** Represents an UpdateIndexOperationMetadata. */ - class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { + /** Represents a GetCustomJobRequest. */ + class GetCustomJobRequest implements IGetCustomJobRequest { /** - * Constructs a new UpdateIndexOperationMetadata. + * Constructs a new GetCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); - - /** UpdateIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ - public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** GetCustomJobRequest name. */ + public name: string; /** - * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexOperationMetadata instance + * @returns GetCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. - * @param message UpdateIndexOperationMetadata message or plain object to encode + * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * @param message GetCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. - * @param message UpdateIndexOperationMetadata message or plain object to encode + * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * @param message GetCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIndexOperationMetadata + * @returns GetCustomJobRequest * @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.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexOperationMetadata + * @returns GetCustomJobRequest * @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.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Verifies an UpdateIndexOperationMetadata message. + * Verifies a GetCustomJobRequest 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 an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexOperationMetadata + * @returns GetCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateIndexOperationMetadata + * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. + * @param message GetCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexOperationMetadata to JSON. + * Converts this GetCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateIndexOperationMetadata + * Gets the default type url for GetCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteIndexRequest. */ - interface IDeleteIndexRequest { + /** Properties of a ListCustomJobsRequest. */ + interface IListCustomJobsRequest { - /** DeleteIndexRequest name */ - name?: (string|null); + /** ListCustomJobsRequest parent */ + parent?: (string|null); + + /** ListCustomJobsRequest filter */ + filter?: (string|null); + + /** ListCustomJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListCustomJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeleteIndexRequest. */ - class DeleteIndexRequest implements IDeleteIndexRequest { + /** Represents a ListCustomJobsRequest. */ + class ListCustomJobsRequest implements IListCustomJobsRequest { /** - * Constructs a new DeleteIndexRequest. + * Constructs a new ListCustomJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); - /** DeleteIndexRequest name. */ - public name: string; + /** ListCustomJobsRequest parent. */ + public parent: string; + + /** ListCustomJobsRequest filter. */ + public filter: string; + + /** ListCustomJobsRequest pageSize. */ + public pageSize: number; + + /** ListCustomJobsRequest pageToken. */ + public pageToken: string; + + /** ListCustomJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeleteIndexRequest instance using the specified properties. + * Creates a new ListCustomJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIndexRequest instance + * @returns ListCustomJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. - * @param message DeleteIndexRequest message or plain object to encode + * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * @param message ListCustomJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. - * @param message DeleteIndexRequest message or plain object to encode + * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * @param message ListCustomJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIndexRequest + * @returns ListCustomJobsRequest * @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.aiplatform.v1beta1.DeleteIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIndexRequest + * @returns ListCustomJobsRequest * @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.aiplatform.v1beta1.DeleteIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Verifies a DeleteIndexRequest message. + * Verifies a ListCustomJobsRequest 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 DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIndexRequest + * @returns ListCustomJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. - * @param message DeleteIndexRequest + * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. + * @param message ListCustomJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIndexRequest to JSON. + * Converts this ListCustomJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteIndexRequest + * Gets the default type url for ListCustomJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpsertDatapointsRequest. */ - interface IUpsertDatapointsRequest { + /** Properties of a ListCustomJobsResponse. */ + interface IListCustomJobsResponse { - /** UpsertDatapointsRequest index */ - index?: (string|null); + /** ListCustomJobsResponse customJobs */ + customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); - /** UpsertDatapointsRequest datapoints */ - datapoints?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint[]|null); + /** ListCustomJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpsertDatapointsRequest. */ - class UpsertDatapointsRequest implements IUpsertDatapointsRequest { + /** Represents a ListCustomJobsResponse. */ + class ListCustomJobsResponse implements IListCustomJobsResponse { /** - * Constructs a new UpsertDatapointsRequest. + * Constructs a new ListCustomJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse); - /** UpsertDatapointsRequest index. */ - public index: string; + /** ListCustomJobsResponse customJobs. */ + public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; - /** UpsertDatapointsRequest datapoints. */ - public datapoints: google.cloud.aiplatform.v1beta1.IIndexDatapoint[]; + /** ListCustomJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpsertDatapointsRequest instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpsertDatapointsRequest instance + * @returns ListCustomJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. - * @param message UpsertDatapointsRequest message or plain object to encode + * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * @param message ListCustomJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. - * @param message UpsertDatapointsRequest message or plain object to encode + * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * @param message ListCustomJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsertDatapointsRequest + * @returns ListCustomJobsResponse * @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.aiplatform.v1beta1.UpsertDatapointsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpsertDatapointsRequest + * @returns ListCustomJobsResponse * @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.aiplatform.v1beta1.UpsertDatapointsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Verifies an UpsertDatapointsRequest message. + * Verifies a ListCustomJobsResponse 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 an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsertDatapointsRequest + * @returns ListCustomJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. - * @param message UpsertDatapointsRequest + * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. + * @param message ListCustomJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsertDatapointsRequest to JSON. + * Converts this ListCustomJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsertDatapointsRequest + * Gets the default type url for ListCustomJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpsertDatapointsResponse. */ - interface IUpsertDatapointsResponse { + /** Properties of a DeleteCustomJobRequest. */ + interface IDeleteCustomJobRequest { + + /** DeleteCustomJobRequest name */ + name?: (string|null); } - /** Represents an UpsertDatapointsResponse. */ - class UpsertDatapointsResponse implements IUpsertDatapointsResponse { + /** Represents a DeleteCustomJobRequest. */ + class DeleteCustomJobRequest implements IDeleteCustomJobRequest { /** - * Constructs a new UpsertDatapointsResponse. + * Constructs a new DeleteCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); + + /** DeleteCustomJobRequest name. */ + public name: string; /** - * Creates a new UpsertDatapointsResponse instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpsertDatapointsResponse instance + * @returns DeleteCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. - * @param message UpsertDatapointsResponse message or plain object to encode + * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * @param message DeleteCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. - * @param message UpsertDatapointsResponse message or plain object to encode + * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * @param message DeleteCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsertDatapointsResponse + * @returns DeleteCustomJobRequest * @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.aiplatform.v1beta1.UpsertDatapointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpsertDatapointsResponse + * @returns DeleteCustomJobRequest * @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.aiplatform.v1beta1.UpsertDatapointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Verifies an UpsertDatapointsResponse message. + * Verifies a DeleteCustomJobRequest 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 an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsertDatapointsResponse + * @returns DeleteCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. - * @param message UpsertDatapointsResponse + * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. + * @param message DeleteCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsertDatapointsResponse to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsertDatapointsResponse + * Gets the default type url for DeleteCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveDatapointsRequest. */ - interface IRemoveDatapointsRequest { - - /** RemoveDatapointsRequest index */ - index?: (string|null); + /** Properties of a CancelCustomJobRequest. */ + interface ICancelCustomJobRequest { - /** RemoveDatapointsRequest datapointIds */ - datapointIds?: (string[]|null); + /** CancelCustomJobRequest name */ + name?: (string|null); } - /** Represents a RemoveDatapointsRequest. */ - class RemoveDatapointsRequest implements IRemoveDatapointsRequest { + /** Represents a CancelCustomJobRequest. */ + class CancelCustomJobRequest implements ICancelCustomJobRequest { /** - * Constructs a new RemoveDatapointsRequest. + * Constructs a new CancelCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest); - - /** RemoveDatapointsRequest index. */ - public index: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); - /** RemoveDatapointsRequest datapointIds. */ - public datapointIds: string[]; + /** CancelCustomJobRequest name. */ + public name: string; /** - * Creates a new RemoveDatapointsRequest instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveDatapointsRequest instance + * @returns CancelCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. - * @param message RemoveDatapointsRequest message or plain object to encode + * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * @param message CancelCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. - * @param message RemoveDatapointsRequest message or plain object to encode + * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * @param message CancelCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveDatapointsRequest + * @returns CancelCustomJobRequest * @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.aiplatform.v1beta1.RemoveDatapointsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveDatapointsRequest + * @returns CancelCustomJobRequest * @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.aiplatform.v1beta1.RemoveDatapointsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Verifies a RemoveDatapointsRequest message. + * Verifies a CancelCustomJobRequest 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 RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveDatapointsRequest + * @returns CancelCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. - * @param message RemoveDatapointsRequest + * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. + * @param message CancelCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveDatapointsRequest to JSON. + * Converts this CancelCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveDatapointsRequest + * Gets the default type url for CancelCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveDatapointsResponse. */ - interface IRemoveDatapointsResponse { + /** Properties of a CreateDataLabelingJobRequest. */ + interface ICreateDataLabelingJobRequest { + + /** CreateDataLabelingJobRequest parent */ + parent?: (string|null); + + /** CreateDataLabelingJobRequest dataLabelingJob */ + dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); } - /** Represents a RemoveDatapointsResponse. */ - class RemoveDatapointsResponse implements IRemoveDatapointsResponse { + /** Represents a CreateDataLabelingJobRequest. */ + class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { /** - * Constructs a new RemoveDatapointsResponse. + * Constructs a new CreateDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); + + /** CreateDataLabelingJobRequest parent. */ + public parent: string; + + /** CreateDataLabelingJobRequest dataLabelingJob. */ + public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); /** - * Creates a new RemoveDatapointsResponse instance using the specified properties. + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveDatapointsResponse instance + * @returns CreateDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. - * @param message RemoveDatapointsResponse message or plain object to encode + * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * @param message CreateDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. - * @param message RemoveDatapointsResponse message or plain object to encode + * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * @param message CreateDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveDatapointsResponse + * @returns CreateDataLabelingJobRequest * @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.aiplatform.v1beta1.RemoveDatapointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveDatapointsResponse + * @returns CreateDataLabelingJobRequest * @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.aiplatform.v1beta1.RemoveDatapointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Verifies a RemoveDatapointsResponse message. + * Verifies a CreateDataLabelingJobRequest 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 RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveDatapointsResponse + * @returns CreateDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. - * @param message RemoveDatapointsResponse + * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message CreateDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveDatapointsResponse to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveDatapointsResponse + * Gets the default type url for CreateDataLabelingJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NearestNeighborSearchOperationMetadata. */ - interface INearestNeighborSearchOperationMetadata { - - /** NearestNeighborSearchOperationMetadata contentValidationStats */ - contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); + /** Properties of a GetDataLabelingJobRequest. */ + interface IGetDataLabelingJobRequest { - /** NearestNeighborSearchOperationMetadata dataBytesCount */ - dataBytesCount?: (number|Long|string|null); + /** GetDataLabelingJobRequest name */ + name?: (string|null); } - /** Represents a NearestNeighborSearchOperationMetadata. */ - class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { + /** Represents a GetDataLabelingJobRequest. */ + class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { /** - * Constructs a new NearestNeighborSearchOperationMetadata. + * Constructs a new GetDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); - - /** NearestNeighborSearchOperationMetadata contentValidationStats. */ - public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); - /** NearestNeighborSearchOperationMetadata dataBytesCount. */ - public dataBytesCount: (number|Long|string); + /** GetDataLabelingJobRequest name. */ + public name: string; /** - * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NearestNeighborSearchOperationMetadata instance + * @returns GetDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. - * @param message NearestNeighborSearchOperationMetadata message or plain object to encode + * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * @param message GetDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. - * @param message NearestNeighborSearchOperationMetadata message or plain object to encode + * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * @param message GetDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NearestNeighborSearchOperationMetadata + * @returns GetDataLabelingJobRequest * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NearestNeighborSearchOperationMetadata + * @returns GetDataLabelingJobRequest * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Verifies a NearestNeighborSearchOperationMetadata message. + * Verifies a GetDataLabelingJobRequest 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 NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NearestNeighborSearchOperationMetadata + * @returns GetDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. - * @param message NearestNeighborSearchOperationMetadata + * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message GetDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NearestNeighborSearchOperationMetadata + * Gets the default type url for GetDataLabelingJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NearestNeighborSearchOperationMetadata { - - /** Properties of a RecordError. */ - interface IRecordError { - - /** RecordError errorType */ - errorType?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null); - - /** RecordError errorMessage */ - errorMessage?: (string|null); - - /** RecordError sourceGcsUri */ - sourceGcsUri?: (string|null); - - /** RecordError embeddingId */ - embeddingId?: (string|null); - - /** RecordError rawRecord */ - rawRecord?: (string|null); - } - - /** Represents a RecordError. */ - class RecordError implements IRecordError { - - /** - * Constructs a new RecordError. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError); - - /** RecordError errorType. */ - public errorType: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType); - - /** RecordError errorMessage. */ - public errorMessage: string; - - /** RecordError sourceGcsUri. */ - public sourceGcsUri: string; - - /** RecordError embeddingId. */ - public embeddingId: string; - - /** RecordError rawRecord. */ - public rawRecord: string; - - /** - * Creates a new RecordError instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordError instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @param message RecordError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @param message RecordError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RecordError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordError - * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Decodes a RecordError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordError - * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Verifies a RecordError 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 RecordError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordError - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Creates a plain object from a RecordError message. Also converts values to other types if specified. - * @param message RecordError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RecordError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RecordError - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace RecordError { - - /** RecordErrorType enum. */ - enum RecordErrorType { - ERROR_TYPE_UNSPECIFIED = 0, - EMPTY_LINE = 1, - INVALID_JSON_SYNTAX = 2, - INVALID_CSV_SYNTAX = 3, - INVALID_AVRO_SYNTAX = 4, - INVALID_EMBEDDING_ID = 5, - EMBEDDING_SIZE_MISMATCH = 6, - NAMESPACE_MISSING = 7 - } - } - - /** Properties of a ContentValidationStats. */ - interface IContentValidationStats { - - /** ContentValidationStats sourceGcsUri */ - sourceGcsUri?: (string|null); - - /** ContentValidationStats validRecordCount */ - validRecordCount?: (number|Long|string|null); - - /** ContentValidationStats invalidRecordCount */ - invalidRecordCount?: (number|Long|string|null); - - /** ContentValidationStats partialErrors */ - partialErrors?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]|null); - } - - /** Represents a ContentValidationStats. */ - class ContentValidationStats implements IContentValidationStats { - - /** - * Constructs a new ContentValidationStats. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats); - - /** ContentValidationStats sourceGcsUri. */ - public sourceGcsUri: string; + /** Properties of a ListDataLabelingJobsRequest. */ + interface IListDataLabelingJobsRequest { - /** ContentValidationStats validRecordCount. */ - public validRecordCount: (number|Long|string); + /** ListDataLabelingJobsRequest parent */ + parent?: (string|null); - /** ContentValidationStats invalidRecordCount. */ - public invalidRecordCount: (number|Long|string); + /** ListDataLabelingJobsRequest filter */ + filter?: (string|null); - /** ContentValidationStats partialErrors. */ - public partialErrors: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]; + /** ListDataLabelingJobsRequest pageSize */ + pageSize?: (number|null); - /** - * Creates a new ContentValidationStats instance using the specified properties. - * @param [properties] Properties to set - * @returns ContentValidationStats instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** ListDataLabelingJobsRequest pageToken */ + pageToken?: (string|null); - /** - * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @param message ContentValidationStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListDataLabelingJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** - * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @param message ContentValidationStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListDataLabelingJobsRequest orderBy */ + orderBy?: (string|null); + } - /** - * Decodes a ContentValidationStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContentValidationStats - * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** Represents a ListDataLabelingJobsRequest. */ + class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { - /** - * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContentValidationStats - * @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.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** + * Constructs a new ListDataLabelingJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); - /** - * Verifies a ContentValidationStats 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); + /** ListDataLabelingJobsRequest parent. */ + public parent: string; - /** - * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContentValidationStats - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** ListDataLabelingJobsRequest filter. */ + public filter: string; - /** - * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. - * @param message ContentValidationStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListDataLabelingJobsRequest pageSize. */ + public pageSize: number; - /** - * Converts this ContentValidationStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListDataLabelingJobsRequest pageToken. */ + public pageToken: string; - /** - * Gets the default type url for ContentValidationStats - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ListDataLabelingJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** Represents a JobService */ - class JobService extends $protobuf.rpc.Service { + /** ListDataLabelingJobsRequest orderBy. */ + public orderBy: string; /** - * Constructs a new JobService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataLabelingJobsRequest instance */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Creates new JobService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * @param message ListDataLabelingJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * @param message ListDataLabelingJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object - * @returns Promise + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDataLabelingJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDataLabelingJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object - * @returns Promise + * Verifies a ListDataLabelingJobsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse + * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataLabelingJobsRequest */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object - * @returns Promise + * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * @param message ListDataLabelingJobsRequest + * @param [options] Conversion options + * @returns Plain object */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this ListDataLabelingJobsRequest to JSON. + * @returns JSON object */ - public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object - * @returns Promise + * Gets the default type url for ListDataLabelingJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; + /** Properties of a ListDataLabelingJobsResponse. */ + interface IListDataLabelingJobsResponse { - /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object - * @returns Promise - */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; + /** ListDataLabelingJobsResponse dataLabelingJobs */ + dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); - /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob - */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback): void; + /** ListDataLabelingJobsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @returns Promise - */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; + /** Represents a ListDataLabelingJobsResponse. */ + class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob + * Constructs a new ListDataLabelingJobsResponse. + * @param [properties] Properties to set */ - public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); + + /** ListDataLabelingJobsResponse dataLabelingJobs. */ + public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; + + /** ListDataLabelingJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @returns Promise + * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataLabelingJobsResponse instance */ - public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * @param message ListDataLabelingJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @returns Promise + * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * @param message ListDataLabelingJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDataLabelingJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @returns Promise + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDataLabelingJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls CancelDataLabelingJob. - * @param request CancelDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Verifies a ListDataLabelingJobsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CancelDataLabelingJob. - * @param request CancelDataLabelingJobRequest message or plain object - * @returns Promise + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataLabelingJobsResponse */ - public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. + * @param message ListDataLabelingJobsResponse + * @param [options] Conversion options + * @returns Plain object */ - public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Converts this ListDataLabelingJobsResponse to JSON. + * @returns JSON object */ - public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * Gets the default type url for ListDataLabelingJobsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteDataLabelingJobRequest. */ + interface IDeleteDataLabelingJobRequest { + + /** DeleteDataLabelingJobRequest name */ + name?: (string|null); + } + + /** Represents a DeleteDataLabelingJobRequest. */ + class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Constructs a new DeleteDataLabelingJobRequest. + * @param [properties] Properties to set */ - public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); + + /** DeleteDataLabelingJobRequest name. */ + public name: string; /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteDataLabelingJobRequest instance */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @returns Promise + * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @param message DeleteDataLabelingJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @param message DeleteDataLabelingJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls CancelHyperparameterTuningJob. - * @param request CancelHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls CancelHyperparameterTuningJob. - * @param request CancelHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Verifies a DeleteDataLabelingJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteDataLabelingJobRequest */ - public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @returns Promise + * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message DeleteDataLabelingJobRequest + * @param [options] Conversion options + * @returns Plain object */ - public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * Converts this DeleteDataLabelingJobRequest to JSON. + * @returns JSON object */ - public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @returns Promise + * Gets the default type url for DeleteDataLabelingJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CancelDataLabelingJobRequest. */ + interface ICancelDataLabelingJobRequest { + + /** CancelDataLabelingJobRequest name */ + name?: (string|null); + } + + /** Represents a CancelDataLabelingJobRequest. */ + class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * Constructs a new CancelDataLabelingJobRequest. + * @param [properties] Properties to set */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); + + /** CancelDataLabelingJobRequest name. */ + public name: string; /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @returns Promise + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelDataLabelingJobRequest instance */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @param message CancelDataLabelingJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @returns Promise + * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @param message CancelDataLabelingJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelBatchPredictionJob. - * @param request CancelBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls CancelBatchPredictionJob. - * @param request CancelBatchPredictionJobRequest message or plain object - * @returns Promise + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * Verifies a CancelDataLabelingJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelDataLabelingJobRequest */ - public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message CancelDataLabelingJobRequest + * @param [options] Conversion options + * @returns Plain object */ - public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, callback: google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns Promise + * Converts this CancelDataLabelingJobRequest to JSON. + * @returns JSON object */ - public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * Gets the default type url for CancelDataLabelingJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateHyperparameterTuningJobRequest. */ + interface ICreateHyperparameterTuningJobRequest { + + /** CreateHyperparameterTuningJobRequest parent */ + parent?: (string|null); + + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ + hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + } + + /** Represents a CreateHyperparameterTuningJobRequest. */ + class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Constructs a new CreateHyperparameterTuningJobRequest. + * @param [properties] Properties to set */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); + + /** CreateHyperparameterTuningJobRequest parent. */ + public parent: string; + + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ + public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateHyperparameterTuningJobRequest instance */ - public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns Promise + * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Verifies a CreateHyperparameterTuningJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateHyperparameterTuningJobRequest */ - public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message CreateHyperparameterTuningJobRequest + * @param [options] Conversion options + * @returns Plain object */ - public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Converts this CreateHyperparameterTuningJobRequest to JSON. + * @returns JSON object */ - public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Gets the default type url for CreateHyperparameterTuningJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace JobService { + /** Properties of a GetHyperparameterTuningJobRequest. */ + interface IGetHyperparameterTuningJobRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. - * @param error Error, if any - * @param [response] CustomJob - */ - type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + /** GetHyperparameterTuningJobRequest name */ + name?: (string|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. - * @param error Error, if any - * @param [response] CustomJob - */ - type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + /** Represents a GetHyperparameterTuningJobRequest. */ + class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. - * @param error Error, if any - * @param [response] ListCustomJobsResponse + * Constructs a new GetHyperparameterTuningJobRequest. + * @param [properties] Properties to set */ - type ListCustomJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteCustomJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** GetHyperparameterTuningJobRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. - * @param error Error, if any - * @param [response] Empty + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetHyperparameterTuningJobRequest instance */ - type CancelCustomJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. - * @param error Error, if any - * @param [response] DataLabelingJob + * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. - * @param error Error, if any - * @param [response] DataLabelingJob + * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. - * @param error Error, if any - * @param [response] ListDataLabelingJobsResponse + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. - * @param error Error, if any - * @param [response] Operation + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. - * @param error Error, if any - * @param [response] Empty + * Verifies a GetHyperparameterTuningJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] HyperparameterTuningJob + * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetHyperparameterTuningJobRequest */ - type CreateHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] HyperparameterTuningJob + * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message GetHyperparameterTuningJobRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. - * @param error Error, if any - * @param [response] ListHyperparameterTuningJobsResponse + * Converts this GetHyperparameterTuningJobRequest to JSON. + * @returns JSON object */ - type ListHyperparameterTuningJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for GetHyperparameterTuningJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type DeleteHyperparameterTuningJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Empty - */ - type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** Properties of a ListHyperparameterTuningJobsRequest. */ + interface IListHyperparameterTuningJobsRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. - * @param error Error, if any - * @param [response] BatchPredictionJob - */ - type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + /** ListHyperparameterTuningJobsRequest parent */ + parent?: (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. - * @param error Error, if any - * @param [response] BatchPredictionJob - */ - type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + /** ListHyperparameterTuningJobsRequest filter */ + filter?: (string|null); + + /** ListHyperparameterTuningJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListHyperparameterTuningJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListHyperparameterTuningJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListHyperparameterTuningJobsRequest. */ + class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. - * @param error Error, if any - * @param [response] ListBatchPredictionJobsResponse + * Constructs a new ListHyperparameterTuningJobsRequest. + * @param [properties] Properties to set */ - type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest); + + /** ListHyperparameterTuningJobsRequest parent. */ + public parent: string; + + /** ListHyperparameterTuningJobsRequest filter. */ + public filter: string; + + /** ListHyperparameterTuningJobsRequest pageSize. */ + public pageSize: number; + + /** ListHyperparameterTuningJobsRequest pageToken. */ + public pageToken: string; + + /** ListHyperparameterTuningJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListHyperparameterTuningJobsRequest instance */ - type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. - * @param error Error, if any - * @param [response] Empty + * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] ModelDeploymentMonitoringJob + * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. - * @param error Error, if any - * @param [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] ModelDeploymentMonitoringJob + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. - * @param error Error, if any - * @param [response] ListModelDeploymentMonitoringJobsResponse + * Verifies a ListHyperparameterTuningJobsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListHyperparameterTuningJobsRequest */ - type UpdateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * @param message ListHyperparameterTuningJobsRequest + * @param [options] Conversion options + * @returns Plain object */ - type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Empty + * Converts this ListHyperparameterTuningJobsRequest to JSON. + * @returns JSON object */ - type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Empty + * Gets the default type url for ListHyperparameterTuningJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ResumeModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateCustomJobRequest. */ - interface ICreateCustomJobRequest { + /** Properties of a ListHyperparameterTuningJobsResponse. */ + interface IListHyperparameterTuningJobsResponse { - /** CreateCustomJobRequest parent */ - parent?: (string|null); + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ + hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); - /** CreateCustomJobRequest customJob */ - customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); + /** ListHyperparameterTuningJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateCustomJobRequest. */ - class CreateCustomJobRequest implements ICreateCustomJobRequest { + /** Represents a ListHyperparameterTuningJobsResponse. */ + class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { /** - * Constructs a new CreateCustomJobRequest. + * Constructs a new ListHyperparameterTuningJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse); - /** CreateCustomJobRequest parent. */ - public parent: string; + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ + public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; - /** CreateCustomJobRequest customJob. */ - public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); + /** ListHyperparameterTuningJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateCustomJobRequest instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomJobRequest instance + * @returns ListHyperparameterTuningJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @param message CreateCustomJobRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @param message ListHyperparameterTuningJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @param message CreateCustomJobRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @param message ListHyperparameterTuningJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCustomJobRequest + * @returns ListHyperparameterTuningJobsResponse * @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.aiplatform.v1beta1.CreateCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCustomJobRequest + * @returns ListHyperparameterTuningJobsResponse * @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.aiplatform.v1beta1.CreateCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Verifies a CreateCustomJobRequest message. + * Verifies a ListHyperparameterTuningJobsResponse 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 CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCustomJobRequest + * @returns ListHyperparameterTuningJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. - * @param message CreateCustomJobRequest + * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * @param message ListHyperparameterTuningJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomJobRequest to JSON. + * Converts this ListHyperparameterTuningJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateCustomJobRequest + * Gets the default type url for ListHyperparameterTuningJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetCustomJobRequest. */ - interface IGetCustomJobRequest { + /** Properties of a DeleteHyperparameterTuningJobRequest. */ + interface IDeleteHyperparameterTuningJobRequest { - /** GetCustomJobRequest name */ + /** DeleteHyperparameterTuningJobRequest name */ name?: (string|null); } - /** Represents a GetCustomJobRequest. */ - class GetCustomJobRequest implements IGetCustomJobRequest { + /** Represents a DeleteHyperparameterTuningJobRequest. */ + class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { /** - * Constructs a new GetCustomJobRequest. + * Constructs a new DeleteHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); - /** GetCustomJobRequest name. */ + /** DeleteHyperparameterTuningJobRequest name. */ public name: string; /** - * Creates a new GetCustomJobRequest instance using the specified properties. + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCustomJobRequest instance + * @returns DeleteHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @param message GetCustomJobRequest message or plain object to encode + * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @param message GetCustomJobRequest message or plain object to encode + * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCustomJobRequest + * @returns DeleteHyperparameterTuningJobRequest * @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.aiplatform.v1beta1.GetCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCustomJobRequest + * @returns DeleteHyperparameterTuningJobRequest * @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.aiplatform.v1beta1.GetCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Verifies a GetCustomJobRequest message. + * Verifies a DeleteHyperparameterTuningJobRequest 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 GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCustomJobRequest + * @returns DeleteHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. - * @param message GetCustomJobRequest + * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message DeleteHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCustomJobRequest to JSON. + * Converts this DeleteHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCustomJobRequest + * Gets the default type url for DeleteHyperparameterTuningJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCustomJobsRequest. */ - interface IListCustomJobsRequest { - - /** ListCustomJobsRequest parent */ - parent?: (string|null); - - /** ListCustomJobsRequest filter */ - filter?: (string|null); - - /** ListCustomJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListCustomJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a CancelHyperparameterTuningJobRequest. */ + interface ICancelHyperparameterTuningJobRequest { - /** ListCustomJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** CancelHyperparameterTuningJobRequest name */ + name?: (string|null); } - /** Represents a ListCustomJobsRequest. */ - class ListCustomJobsRequest implements IListCustomJobsRequest { + /** Represents a CancelHyperparameterTuningJobRequest. */ + class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { /** - * Constructs a new ListCustomJobsRequest. + * Constructs a new CancelHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); - - /** ListCustomJobsRequest parent. */ - public parent: string; - - /** ListCustomJobsRequest filter. */ - public filter: string; - - /** ListCustomJobsRequest pageSize. */ - public pageSize: number; - - /** ListCustomJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); - /** ListCustomJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** CancelHyperparameterTuningJobRequest name. */ + public name: string; /** - * Creates a new ListCustomJobsRequest instance using the specified properties. + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomJobsRequest instance + * @returns CancelHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @param message ListCustomJobsRequest message or plain object to encode + * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CancelHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @param message ListCustomJobsRequest message or plain object to encode + * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CancelHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomJobsRequest + * @returns CancelHyperparameterTuningJobRequest * @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.aiplatform.v1beta1.ListCustomJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomJobsRequest + * @returns CancelHyperparameterTuningJobRequest * @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.aiplatform.v1beta1.ListCustomJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Verifies a ListCustomJobsRequest message. + * Verifies a CancelHyperparameterTuningJobRequest 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 ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomJobsRequest + * @returns CancelHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. - * @param message ListCustomJobsRequest + * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message CancelHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomJobsRequest to JSON. + * Converts this CancelHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCustomJobsRequest + * Gets the default type url for CancelHyperparameterTuningJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCustomJobsResponse. */ - interface IListCustomJobsResponse { + /** Properties of a CreateNasJobRequest. */ + interface ICreateNasJobRequest { - /** ListCustomJobsResponse customJobs */ - customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); + /** CreateNasJobRequest parent */ + parent?: (string|null); - /** ListCustomJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateNasJobRequest nasJob */ + nasJob?: (google.cloud.aiplatform.v1beta1.INasJob|null); } - /** Represents a ListCustomJobsResponse. */ - class ListCustomJobsResponse implements IListCustomJobsResponse { + /** Represents a CreateNasJobRequest. */ + class CreateNasJobRequest implements ICreateNasJobRequest { /** - * Constructs a new ListCustomJobsResponse. + * Constructs a new CreateNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest); - /** ListCustomJobsResponse customJobs. */ - public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; + /** CreateNasJobRequest parent. */ + public parent: string; - /** ListCustomJobsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateNasJobRequest nasJob. */ + public nasJob?: (google.cloud.aiplatform.v1beta1.INasJob|null); /** - * Creates a new ListCustomJobsResponse instance using the specified properties. + * Creates a new CreateNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomJobsResponse instance + * @returns CreateNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest): google.cloud.aiplatform.v1beta1.CreateNasJobRequest; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @param message ListCustomJobsResponse message or plain object to encode + * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateNasJobRequest.verify|verify} messages. + * @param message CreateNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @param message ListCustomJobsResponse message or plain object to encode + * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateNasJobRequest.verify|verify} messages. + * @param message CreateNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. + * Decodes a CreateNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomJobsResponse + * @returns CreateNasJobRequest * @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.aiplatform.v1beta1.ListCustomJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateNasJobRequest; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomJobsResponse + * @returns CreateNasJobRequest * @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.aiplatform.v1beta1.ListCustomJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateNasJobRequest; /** - * Verifies a ListCustomJobsResponse message. + * Verifies a CreateNasJobRequest 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 ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomJobsResponse + * @returns CreateNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateNasJobRequest; /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. - * @param message ListCustomJobsResponse + * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. + * @param message CreateNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomJobsResponse to JSON. + * Converts this CreateNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCustomJobsResponse + * Gets the default type url for CreateNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteCustomJobRequest. */ - interface IDeleteCustomJobRequest { + /** Properties of a GetNasJobRequest. */ + interface IGetNasJobRequest { - /** DeleteCustomJobRequest name */ + /** GetNasJobRequest name */ name?: (string|null); } - /** Represents a DeleteCustomJobRequest. */ - class DeleteCustomJobRequest implements IDeleteCustomJobRequest { + /** Represents a GetNasJobRequest. */ + class GetNasJobRequest implements IGetNasJobRequest { /** - * Constructs a new DeleteCustomJobRequest. + * Constructs a new GetNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetNasJobRequest); - /** DeleteCustomJobRequest name. */ + /** GetNasJobRequest name. */ public name: string; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. + * Creates a new GetNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteCustomJobRequest instance + * @returns GetNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetNasJobRequest): google.cloud.aiplatform.v1beta1.GetNasJobRequest; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @param message DeleteCustomJobRequest message or plain object to encode + * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasJobRequest.verify|verify} messages. + * @param message GetNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @param message DeleteCustomJobRequest message or plain object to encode + * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasJobRequest.verify|verify} messages. + * @param message GetNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. + * Decodes a GetNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteCustomJobRequest + * @returns GetNasJobRequest * @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.aiplatform.v1beta1.DeleteCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetNasJobRequest; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteCustomJobRequest + * @returns GetNasJobRequest * @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.aiplatform.v1beta1.DeleteCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetNasJobRequest; /** - * Verifies a DeleteCustomJobRequest message. + * Verifies a GetNasJobRequest 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 DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteCustomJobRequest + * @returns GetNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetNasJobRequest; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. - * @param message DeleteCustomJobRequest + * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. + * @param message GetNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteCustomJobRequest to JSON. + * Converts this GetNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteCustomJobRequest + * Gets the default type url for GetNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelCustomJobRequest. */ - interface ICancelCustomJobRequest { + /** Properties of a ListNasJobsRequest. */ + interface IListNasJobsRequest { - /** CancelCustomJobRequest name */ - name?: (string|null); + /** ListNasJobsRequest parent */ + parent?: (string|null); + + /** ListNasJobsRequest filter */ + filter?: (string|null); + + /** ListNasJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListNasJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListNasJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CancelCustomJobRequest. */ - class CancelCustomJobRequest implements ICancelCustomJobRequest { + /** Represents a ListNasJobsRequest. */ + class ListNasJobsRequest implements IListNasJobsRequest { /** - * Constructs a new CancelCustomJobRequest. + * Constructs a new ListNasJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListNasJobsRequest); - /** CancelCustomJobRequest name. */ - public name: string; + /** ListNasJobsRequest parent. */ + public parent: string; + + /** ListNasJobsRequest filter. */ + public filter: string; + + /** ListNasJobsRequest pageSize. */ + public pageSize: number; + + /** ListNasJobsRequest pageToken. */ + public pageToken: string; + + /** ListNasJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CancelCustomJobRequest instance using the specified properties. + * Creates a new ListNasJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelCustomJobRequest instance + * @returns ListNasJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListNasJobsRequest): google.cloud.aiplatform.v1beta1.ListNasJobsRequest; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @param message CancelCustomJobRequest message or plain object to encode + * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsRequest.verify|verify} messages. + * @param message ListNasJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListNasJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @param message CancelCustomJobRequest message or plain object to encode + * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsRequest.verify|verify} messages. + * @param message ListNasJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListNasJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. + * Decodes a ListNasJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelCustomJobRequest + * @returns ListNasJobsRequest * @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.aiplatform.v1beta1.CancelCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListNasJobsRequest; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelCustomJobRequest + * @returns ListNasJobsRequest * @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.aiplatform.v1beta1.CancelCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListNasJobsRequest; /** - * Verifies a CancelCustomJobRequest message. + * Verifies a ListNasJobsRequest 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 CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelCustomJobRequest + * @returns ListNasJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListNasJobsRequest; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. - * @param message CancelCustomJobRequest + * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. + * @param message ListNasJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListNasJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelCustomJobRequest to JSON. + * Converts this ListNasJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelCustomJobRequest + * Gets the default type url for ListNasJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDataLabelingJobRequest. */ - interface ICreateDataLabelingJobRequest { + /** Properties of a ListNasJobsResponse. */ + interface IListNasJobsResponse { - /** CreateDataLabelingJobRequest parent */ - parent?: (string|null); + /** ListNasJobsResponse nasJobs */ + nasJobs?: (google.cloud.aiplatform.v1beta1.INasJob[]|null); - /** CreateDataLabelingJobRequest dataLabelingJob */ - dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); + /** ListNasJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateDataLabelingJobRequest. */ - class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { + /** Represents a ListNasJobsResponse. */ + class ListNasJobsResponse implements IListNasJobsResponse { /** - * Constructs a new CreateDataLabelingJobRequest. + * Constructs a new ListNasJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListNasJobsResponse); - /** CreateDataLabelingJobRequest parent. */ - public parent: string; + /** ListNasJobsResponse nasJobs. */ + public nasJobs: google.cloud.aiplatform.v1beta1.INasJob[]; - /** CreateDataLabelingJobRequest dataLabelingJob. */ - public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); + /** ListNasJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. + * Creates a new ListNasJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDataLabelingJobRequest instance + * @returns ListNasJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListNasJobsResponse): google.cloud.aiplatform.v1beta1.ListNasJobsResponse; /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @param message CreateDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.verify|verify} messages. + * @param message ListNasJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListNasJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @param message CreateDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.verify|verify} messages. + * @param message ListNasJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListNasJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListNasJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDataLabelingJobRequest + * @returns ListNasJobsResponse * @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.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListNasJobsResponse; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDataLabelingJobRequest + * @returns ListNasJobsResponse * @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.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListNasJobsResponse; /** - * Verifies a CreateDataLabelingJobRequest message. + * Verifies a ListNasJobsResponse 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 CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDataLabelingJobRequest + * @returns ListNasJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListNasJobsResponse; /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message CreateDataLabelingJobRequest + * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. + * @param message ListNasJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListNasJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDataLabelingJobRequest to JSON. + * Converts this ListNasJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDataLabelingJobRequest + * Gets the default type url for ListNasJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDataLabelingJobRequest. */ - interface IGetDataLabelingJobRequest { + /** Properties of a DeleteNasJobRequest. */ + interface IDeleteNasJobRequest { - /** GetDataLabelingJobRequest name */ + /** DeleteNasJobRequest name */ name?: (string|null); } - /** Represents a GetDataLabelingJobRequest. */ - class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { + /** Represents a DeleteNasJobRequest. */ + class DeleteNasJobRequest implements IDeleteNasJobRequest { /** - * Constructs a new GetDataLabelingJobRequest. + * Constructs a new DeleteNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest); - /** GetDataLabelingJobRequest name. */ + /** DeleteNasJobRequest name. */ public name: string; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. + * Creates a new DeleteNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataLabelingJobRequest instance + * @returns DeleteNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest): google.cloud.aiplatform.v1beta1.DeleteNasJobRequest; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @param message GetDataLabelingJobRequest message or plain object to encode + * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteNasJobRequest.verify|verify} messages. + * @param message DeleteNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @param message GetDataLabelingJobRequest message or plain object to encode + * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteNasJobRequest.verify|verify} messages. + * @param message DeleteNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDataLabelingJobRequest + * @returns DeleteNasJobRequest * @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.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteNasJobRequest; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDataLabelingJobRequest + * @returns DeleteNasJobRequest * @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.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteNasJobRequest; /** - * Verifies a GetDataLabelingJobRequest message. + * Verifies a DeleteNasJobRequest 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 GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDataLabelingJobRequest + * @returns DeleteNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteNasJobRequest; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message GetDataLabelingJobRequest + * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. + * @param message DeleteNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDataLabelingJobRequest to JSON. + * Converts this DeleteNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDataLabelingJobRequest + * Gets the default type url for DeleteNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataLabelingJobsRequest. */ - interface IListDataLabelingJobsRequest { - - /** ListDataLabelingJobsRequest parent */ - parent?: (string|null); - - /** ListDataLabelingJobsRequest filter */ - filter?: (string|null); - - /** ListDataLabelingJobsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a CancelNasJobRequest. */ + interface ICancelNasJobRequest { - /** ListDataLabelingJobsRequest pageToken */ - pageToken?: (string|null); - - /** ListDataLabelingJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - - /** ListDataLabelingJobsRequest orderBy */ - orderBy?: (string|null); + /** CancelNasJobRequest name */ + name?: (string|null); } - /** Represents a ListDataLabelingJobsRequest. */ - class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { + /** Represents a CancelNasJobRequest. */ + class CancelNasJobRequest implements ICancelNasJobRequest { /** - * Constructs a new ListDataLabelingJobsRequest. + * Constructs a new CancelNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); - - /** ListDataLabelingJobsRequest parent. */ - public parent: string; - - /** ListDataLabelingJobsRequest filter. */ - public filter: string; - - /** ListDataLabelingJobsRequest pageSize. */ - public pageSize: number; - - /** ListDataLabelingJobsRequest pageToken. */ - public pageToken: string; - - /** ListDataLabelingJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest); - /** ListDataLabelingJobsRequest orderBy. */ - public orderBy: string; + /** CancelNasJobRequest name. */ + public name: string; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * Creates a new CancelNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataLabelingJobsRequest instance + * @returns CancelNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest): google.cloud.aiplatform.v1beta1.CancelNasJobRequest; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @param message ListDataLabelingJobsRequest message or plain object to encode + * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelNasJobRequest.verify|verify} messages. + * @param message CancelNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @param message ListDataLabelingJobsRequest message or plain object to encode + * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelNasJobRequest.verify|verify} messages. + * @param message CancelNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * Decodes a CancelNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataLabelingJobsRequest + * @returns CancelNasJobRequest * @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.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelNasJobRequest; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataLabelingJobsRequest + * @returns CancelNasJobRequest * @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.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelNasJobRequest; /** - * Verifies a ListDataLabelingJobsRequest message. + * Verifies a CancelNasJobRequest 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 ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataLabelingJobsRequest + * @returns CancelNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelNasJobRequest; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. - * @param message ListDataLabelingJobsRequest + * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. + * @param message CancelNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataLabelingJobsRequest to JSON. + * Converts this CancelNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataLabelingJobsRequest + * Gets the default type url for CancelNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataLabelingJobsResponse. */ - interface IListDataLabelingJobsResponse { - - /** ListDataLabelingJobsResponse dataLabelingJobs */ - dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); + /** Properties of a GetNasTrialDetailRequest. */ + interface IGetNasTrialDetailRequest { - /** ListDataLabelingJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetNasTrialDetailRequest name */ + name?: (string|null); } - /** Represents a ListDataLabelingJobsResponse. */ - class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { + /** Represents a GetNasTrialDetailRequest. */ + class GetNasTrialDetailRequest implements IGetNasTrialDetailRequest { /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new GetNasTrialDetailRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); - - /** ListDataLabelingJobsResponse dataLabelingJobs. */ - public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest); - /** ListDataLabelingJobsResponse nextPageToken. */ - public nextPageToken: string; + /** GetNasTrialDetailRequest name. */ + public name: string; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new GetNasTrialDetailRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataLabelingJobsResponse instance + * @returns GetNasTrialDetailRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest): google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @param message ListDataLabelingJobsResponse message or plain object to encode + * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest.verify|verify} messages. + * @param message GetNasTrialDetailRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @param message ListDataLabelingJobsResponse message or plain object to encode + * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest.verify|verify} messages. + * @param message GetNasTrialDetailRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataLabelingJobsResponse + * @returns GetNasTrialDetailRequest * @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.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataLabelingJobsResponse + * @returns GetNasTrialDetailRequest * @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.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest; /** - * Verifies a ListDataLabelingJobsResponse message. + * Verifies a GetNasTrialDetailRequest 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 ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataLabelingJobsResponse + * @returns GetNasTrialDetailRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest; /** - * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. - * @param message ListDataLabelingJobsResponse + * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. + * @param message GetNasTrialDetailRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataLabelingJobsResponse to JSON. + * Converts this GetNasTrialDetailRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataLabelingJobsResponse + * Gets the default type url for GetNasTrialDetailRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteDataLabelingJobRequest. */ - interface IDeleteDataLabelingJobRequest { + /** Properties of a ListNasTrialDetailsRequest. */ + interface IListNasTrialDetailsRequest { - /** DeleteDataLabelingJobRequest name */ - name?: (string|null); + /** ListNasTrialDetailsRequest parent */ + parent?: (string|null); + + /** ListNasTrialDetailsRequest pageSize */ + pageSize?: (number|null); + + /** ListNasTrialDetailsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a DeleteDataLabelingJobRequest. */ - class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { + /** Represents a ListNasTrialDetailsRequest. */ + class ListNasTrialDetailsRequest implements IListNasTrialDetailsRequest { /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new ListNasTrialDetailsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest); - /** DeleteDataLabelingJobRequest name. */ - public name: string; + /** ListNasTrialDetailsRequest parent. */ + public parent: string; + + /** ListNasTrialDetailsRequest pageSize. */ + public pageSize: number; + + /** ListNasTrialDetailsRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDataLabelingJobRequest instance + * @returns ListNasTrialDetailsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. - * @param message DeleteDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.verify|verify} messages. + * @param message ListNasTrialDetailsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. - * @param message DeleteDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.verify|verify} messages. + * @param message ListNasTrialDetailsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDataLabelingJobRequest + * @returns ListNasTrialDetailsRequest * @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.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDataLabelingJobRequest + * @returns ListNasTrialDetailsRequest * @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.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest; /** - * Verifies a DeleteDataLabelingJobRequest message. + * Verifies a ListNasTrialDetailsRequest 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 DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDataLabelingJobRequest + * @returns ListNasTrialDetailsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest; /** - * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message DeleteDataLabelingJobRequest + * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. + * @param message ListNasTrialDetailsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this ListNasTrialDetailsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteDataLabelingJobRequest + * Gets the default type url for ListNasTrialDetailsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelDataLabelingJobRequest. */ - interface ICancelDataLabelingJobRequest { + /** Properties of a ListNasTrialDetailsResponse. */ + interface IListNasTrialDetailsResponse { - /** CancelDataLabelingJobRequest name */ - name?: (string|null); + /** ListNasTrialDetailsResponse nasTrialDetails */ + nasTrialDetails?: (google.cloud.aiplatform.v1beta1.INasTrialDetail[]|null); + + /** ListNasTrialDetailsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CancelDataLabelingJobRequest. */ - class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { + /** Represents a ListNasTrialDetailsResponse. */ + class ListNasTrialDetailsResponse implements IListNasTrialDetailsResponse { /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new ListNasTrialDetailsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse); - /** CancelDataLabelingJobRequest name. */ - public name: string; + /** ListNasTrialDetailsResponse nasTrialDetails. */ + public nasTrialDetails: google.cloud.aiplatform.v1beta1.INasTrialDetail[]; + + /** ListNasTrialDetailsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelDataLabelingJobRequest instance + * @returns ListNasTrialDetailsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. - * @param message CancelDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.verify|verify} messages. + * @param message ListNasTrialDetailsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. - * @param message CancelDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.verify|verify} messages. + * @param message ListNasTrialDetailsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelDataLabelingJobRequest + * @returns ListNasTrialDetailsResponse * @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.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelDataLabelingJobRequest + * @returns ListNasTrialDetailsResponse * @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.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse; /** - * Verifies a CancelDataLabelingJobRequest message. + * Verifies a ListNasTrialDetailsResponse 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 CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelDataLabelingJobRequest + * @returns ListNasTrialDetailsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse; /** - * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message CancelDataLabelingJobRequest + * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. + * @param message ListNasTrialDetailsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this ListNasTrialDetailsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelDataLabelingJobRequest + * Gets the default type url for ListNasTrialDetailsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateHyperparameterTuningJobRequest. */ - interface ICreateHyperparameterTuningJobRequest { + /** Properties of a CreateBatchPredictionJobRequest. */ + interface ICreateBatchPredictionJobRequest { - /** CreateHyperparameterTuningJobRequest parent */ + /** CreateBatchPredictionJobRequest parent */ parent?: (string|null); - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ - hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** CreateBatchPredictionJobRequest batchPredictionJob */ + batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); } - /** Represents a CreateHyperparameterTuningJobRequest. */ - class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { + /** Represents a CreateBatchPredictionJobRequest. */ + class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); - /** CreateHyperparameterTuningJobRequest parent. */ + /** CreateBatchPredictionJobRequest parent. */ public parent: string; - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ - public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** CreateBatchPredictionJobRequest batchPredictionJob. */ + public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateHyperparameterTuningJobRequest instance + * @returns CreateBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateHyperparameterTuningJobRequest + * @returns CreateBatchPredictionJobRequest * @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.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateHyperparameterTuningJobRequest + * @returns CreateBatchPredictionJobRequest * @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.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Verifies a CreateHyperparameterTuningJobRequest message. + * Verifies a CreateBatchPredictionJobRequest 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 CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateHyperparameterTuningJobRequest + * @returns CreateBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message CreateHyperparameterTuningJobRequest + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CreateBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateHyperparameterTuningJobRequest + * Gets the default type url for CreateBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetHyperparameterTuningJobRequest. */ - interface IGetHyperparameterTuningJobRequest { + /** Properties of a GetBatchPredictionJobRequest. */ + interface IGetBatchPredictionJobRequest { - /** GetHyperparameterTuningJobRequest name */ + /** GetBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a GetHyperparameterTuningJobRequest. */ - class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { + /** Represents a GetBatchPredictionJobRequest. */ + class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); - /** GetHyperparameterTuningJobRequest name. */ + /** GetBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetHyperparameterTuningJobRequest instance + * @returns GetBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. - * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. - * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetHyperparameterTuningJobRequest + * @returns GetBatchPredictionJobRequest * @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.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetHyperparameterTuningJobRequest + * @returns GetBatchPredictionJobRequest * @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.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Verifies a GetHyperparameterTuningJobRequest message. + * Verifies a GetBatchPredictionJobRequest 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 GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetHyperparameterTuningJobRequest + * @returns GetBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message GetHyperparameterTuningJobRequest + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message GetBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetHyperparameterTuningJobRequest + * Gets the default type url for GetBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListHyperparameterTuningJobsRequest. */ - interface IListHyperparameterTuningJobsRequest { + /** Properties of a ListBatchPredictionJobsRequest. */ + interface IListBatchPredictionJobsRequest { - /** ListHyperparameterTuningJobsRequest parent */ + /** ListBatchPredictionJobsRequest parent */ parent?: (string|null); - /** ListHyperparameterTuningJobsRequest filter */ + /** ListBatchPredictionJobsRequest filter */ filter?: (string|null); - /** ListHyperparameterTuningJobsRequest pageSize */ + /** ListBatchPredictionJobsRequest pageSize */ pageSize?: (number|null); - /** ListHyperparameterTuningJobsRequest pageToken */ + /** ListBatchPredictionJobsRequest pageToken */ pageToken?: (string|null); - /** ListHyperparameterTuningJobsRequest readMask */ + /** ListBatchPredictionJobsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListHyperparameterTuningJobsRequest. */ - class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { + /** Represents a ListBatchPredictionJobsRequest. */ + class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest); - /** ListHyperparameterTuningJobsRequest parent. */ + /** ListBatchPredictionJobsRequest parent. */ public parent: string; - /** ListHyperparameterTuningJobsRequest filter. */ + /** ListBatchPredictionJobsRequest filter. */ public filter: string; - /** ListHyperparameterTuningJobsRequest pageSize. */ + /** ListBatchPredictionJobsRequest pageSize. */ public pageSize: number; - /** ListHyperparameterTuningJobsRequest pageToken. */ + /** ListBatchPredictionJobsRequest pageToken. */ public pageToken: string; - /** ListHyperparameterTuningJobsRequest readMask. */ + /** ListBatchPredictionJobsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsRequest instance + * @returns ListBatchPredictionJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. - * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. - * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHyperparameterTuningJobsRequest + * @returns ListBatchPredictionJobsRequest * @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.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHyperparameterTuningJobsRequest + * @returns ListBatchPredictionJobsRequest * @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.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Verifies a ListHyperparameterTuningJobsRequest message. + * Verifies a ListBatchPredictionJobsRequest 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 ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHyperparameterTuningJobsRequest + * @returns ListBatchPredictionJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. - * @param message ListHyperparameterTuningJobsRequest + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHyperparameterTuningJobsRequest + * Gets the default type url for ListBatchPredictionJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListHyperparameterTuningJobsResponse. */ - interface IListHyperparameterTuningJobsResponse { + /** Properties of a ListBatchPredictionJobsResponse. */ + interface IListBatchPredictionJobsResponse { - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ - hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); + /** ListBatchPredictionJobsResponse batchPredictionJobs */ + batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); - /** ListHyperparameterTuningJobsResponse nextPageToken */ + /** ListBatchPredictionJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListHyperparameterTuningJobsResponse. */ - class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { + /** Represents a ListBatchPredictionJobsResponse. */ + class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new ListBatchPredictionJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ - public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; + /** ListBatchPredictionJobsResponse batchPredictionJobs. */ + public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; - /** ListHyperparameterTuningJobsResponse nextPageToken. */ + /** ListBatchPredictionJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsResponse instance + * @returns ListBatchPredictionJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @param message ListHyperparameterTuningJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @param message ListHyperparameterTuningJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHyperparameterTuningJobsResponse + * @returns ListBatchPredictionJobsResponse * @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.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHyperparameterTuningJobsResponse + * @returns ListBatchPredictionJobsResponse * @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.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Verifies a ListHyperparameterTuningJobsResponse message. + * Verifies a ListBatchPredictionJobsResponse 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 ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHyperparameterTuningJobsResponse + * @returns ListBatchPredictionJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. - * @param message ListHyperparameterTuningJobsResponse + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHyperparameterTuningJobsResponse + * Gets the default type url for ListBatchPredictionJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteHyperparameterTuningJobRequest. */ - interface IDeleteHyperparameterTuningJobRequest { + /** Properties of a DeleteBatchPredictionJobRequest. */ + interface IDeleteBatchPredictionJobRequest { - /** DeleteHyperparameterTuningJobRequest name */ + /** DeleteBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a DeleteHyperparameterTuningJobRequest. */ - class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { + /** Represents a DeleteBatchPredictionJobRequest. */ + class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); - /** DeleteHyperparameterTuningJobRequest name. */ + /** DeleteBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteHyperparameterTuningJobRequest instance + * @returns DeleteBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteHyperparameterTuningJobRequest + * @returns DeleteBatchPredictionJobRequest * @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.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteHyperparameterTuningJobRequest + * @returns DeleteBatchPredictionJobRequest * @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.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Verifies a DeleteHyperparameterTuningJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest 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 DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteHyperparameterTuningJobRequest + * @returns DeleteBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message DeleteHyperparameterTuningJobRequest + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message DeleteBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteHyperparameterTuningJobRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelHyperparameterTuningJobRequest. */ - interface ICancelHyperparameterTuningJobRequest { + /** Properties of a CancelBatchPredictionJobRequest. */ + interface ICancelBatchPredictionJobRequest { - /** CancelHyperparameterTuningJobRequest name */ + /** CancelBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a CancelHyperparameterTuningJobRequest. */ - class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { + /** Represents a CancelBatchPredictionJobRequest. */ + class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); - /** CancelHyperparameterTuningJobRequest name. */ + /** CancelBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelHyperparameterTuningJobRequest instance + * @returns CancelBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelHyperparameterTuningJobRequest + * @returns CancelBatchPredictionJobRequest * @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.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelHyperparameterTuningJobRequest + * @returns CancelBatchPredictionJobRequest * @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.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + + /** + * Verifies a CancelBatchPredictionJobRequest 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 CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelBatchPredictionJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + + /** + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CancelBatchPredictionJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelBatchPredictionJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelBatchPredictionJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ + interface ICreateModelDeploymentMonitoringJobRequest { + + /** CreateModelDeploymentMonitoringJobRequest parent */ + parent?: (string|null); + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + } + + /** Represents a CreateModelDeploymentMonitoringJobRequest. */ + class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + + /** + * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); + + /** CreateModelDeploymentMonitoringJobRequest parent. */ + public parent: string; + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + + /** + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + + /** + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateModelDeploymentMonitoringJobRequest + * @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.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + + /** + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateModelDeploymentMonitoringJobRequest + * @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.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Verifies a CancelHyperparameterTuningJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest 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 CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelHyperparameterTuningJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message CancelHyperparameterTuningJobRequest + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message CreateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelHyperparameterTuningJobRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateBatchPredictionJobRequest. */ - interface ICreateBatchPredictionJobRequest { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** CreateBatchPredictionJobRequest parent */ - parent?: (string|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (string|null); - /** CreateBatchPredictionJobRequest batchPredictionJob */ - batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ + deployedModelId?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ + featureDisplayName?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ + objectives?: (google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ + pageSize?: (number|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ + pageToken?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a CreateBatchPredictionJobRequest. */ - class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - /** CreateBatchPredictionJobRequest parent. */ - public parent: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob: string; - /** CreateBatchPredictionJobRequest batchPredictionJob. */ - public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ + public deployedModelId: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ + public featureDisplayName: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ + public objectives: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ + public pageSize: number; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ + public pageToken: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateBatchPredictionJobRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest 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 CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CreateBatchPredictionJobRequest + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetBatchPredictionJobRequest. */ - interface IGetBatchPredictionJobRequest { + namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** GetBatchPredictionJobRequest name */ - name?: (string|null); + /** Properties of a StatsAnomaliesObjective. */ + interface IStatsAnomaliesObjective { + + /** StatsAnomaliesObjective type */ + type?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + + /** StatsAnomaliesObjective topFeatureCount */ + topFeatureCount?: (number|null); + } + + /** Represents a StatsAnomaliesObjective. */ + class StatsAnomaliesObjective implements IStatsAnomaliesObjective { + + /** + * Constructs a new StatsAnomaliesObjective. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); + + /** StatsAnomaliesObjective type. */ + public type: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + + /** StatsAnomaliesObjective topFeatureCount. */ + public topFeatureCount: number; + + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @param [properties] Properties to set + * @returns StatsAnomaliesObjective instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StatsAnomaliesObjective + * @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.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StatsAnomaliesObjective + * @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.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Verifies a StatsAnomaliesObjective 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 StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StatsAnomaliesObjective + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @param message StatsAnomaliesObjective + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StatsAnomaliesObjective to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StatsAnomaliesObjective + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a GetBatchPredictionJobRequest. */ - class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); - /** GetBatchPredictionJobRequest name. */ - public name: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetBatchPredictionJobRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse 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 GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message GetBatchPredictionJobRequest + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsRequest. */ - interface IListBatchPredictionJobsRequest { - - /** ListBatchPredictionJobsRequest parent */ - parent?: (string|null); - - /** ListBatchPredictionJobsRequest filter */ - filter?: (string|null); - - /** ListBatchPredictionJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListBatchPredictionJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a GetModelDeploymentMonitoringJobRequest. */ + interface IGetModelDeploymentMonitoringJobRequest { - /** ListBatchPredictionJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** GetModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ListBatchPredictionJobsRequest. */ - class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { + /** Represents a GetModelDeploymentMonitoringJobRequest. */ + class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest); - - /** ListBatchPredictionJobsRequest parent. */ - public parent: string; - - /** ListBatchPredictionJobsRequest filter. */ - public filter: string; - - /** ListBatchPredictionJobsRequest pageSize. */ - public pageSize: number; - - /** ListBatchPredictionJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); - /** ListBatchPredictionJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** GetModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsRequest instance + * @returns GetModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsRequest + * @returns GetModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsRequest + * @returns GetModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a GetModelDeploymentMonitoringJobRequest 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 ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsRequest + * @returns GetModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsRequest + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message GetModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for GetModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsResponse. */ - interface IListBatchPredictionJobsResponse { + /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ + interface IListModelDeploymentMonitoringJobsRequest { - /** ListBatchPredictionJobsResponse batchPredictionJobs */ - batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); + /** ListModelDeploymentMonitoringJobsRequest parent */ + parent?: (string|null); - /** ListBatchPredictionJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListModelDeploymentMonitoringJobsRequest filter */ + filter?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelDeploymentMonitoringJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListBatchPredictionJobsResponse. */ - class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { + /** Represents a ListModelDeploymentMonitoringJobsRequest. */ + class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); - /** ListBatchPredictionJobsResponse batchPredictionJobs. */ - public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; + /** ListModelDeploymentMonitoringJobsRequest parent. */ + public parent: string; - /** ListBatchPredictionJobsResponse nextPageToken. */ - public nextPageToken: string; + /** ListModelDeploymentMonitoringJobsRequest filter. */ + public filter: string; + + /** ListModelDeploymentMonitoringJobsRequest pageSize. */ + public pageSize: number; + + /** ListModelDeploymentMonitoringJobsRequest pageToken. */ + public pageToken: string; + + /** ListModelDeploymentMonitoringJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsResponse instance + * @returns ListModelDeploymentMonitoringJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsResponse + * @returns ListModelDeploymentMonitoringJobsRequest * @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.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsResponse + * @returns ListModelDeploymentMonitoringJobsRequest * @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.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListModelDeploymentMonitoringJobsRequest 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 ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsResponse + * @returns ListModelDeploymentMonitoringJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsResponse + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteBatchPredictionJobRequest. */ - interface IDeleteBatchPredictionJobRequest { + /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ + interface IListModelDeploymentMonitoringJobsResponse { - /** DeleteBatchPredictionJobRequest name */ - name?: (string|null); + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ + modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); + + /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteBatchPredictionJobRequest. */ - class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { + /** Represents a ListModelDeploymentMonitoringJobsResponse. */ + class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); - /** DeleteBatchPredictionJobRequest name. */ - public name: string; + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ + public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; + + /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteBatchPredictionJobRequest instance + * @returns ListModelDeploymentMonitoringJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteBatchPredictionJobRequest + * @returns ListModelDeploymentMonitoringJobsResponse * @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.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteBatchPredictionJobRequest + * @returns ListModelDeploymentMonitoringJobsResponse * @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.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a ListModelDeploymentMonitoringJobsResponse 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 DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteBatchPredictionJobRequest + * @returns ListModelDeploymentMonitoringJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message DeleteBatchPredictionJobRequest + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelBatchPredictionJobRequest. */ - interface ICancelBatchPredictionJobRequest { + /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ + interface IUpdateModelDeploymentMonitoringJobRequest { - /** CancelBatchPredictionJobRequest name */ - name?: (string|null); + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + + /** UpdateModelDeploymentMonitoringJobRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CancelBatchPredictionJobRequest. */ - class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { + /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ + class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); - /** CancelBatchPredictionJobRequest name. */ - public name: string; + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + + /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelBatchPredictionJobRequest instance + * @returns UpdateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelBatchPredictionJobRequest + * @returns UpdateModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelBatchPredictionJobRequest + * @returns UpdateModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest 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 CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelBatchPredictionJobRequest + * @returns UpdateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CancelBatchPredictionJobRequest + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ - interface ICreateModelDeploymentMonitoringJobRequest { - - /** CreateModelDeploymentMonitoringJobRequest parent */ - parent?: (string|null); + /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ + interface IDeleteModelDeploymentMonitoringJobRequest { - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** DeleteModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a CreateModelDeploymentMonitoringJobRequest. */ - class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ + class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); - - /** CreateModelDeploymentMonitoringJobRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** DeleteModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateModelDeploymentMonitoringJobRequest instance + * @returns DeleteModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns DeleteModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns DeleteModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest 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 CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns DeleteModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message CreateModelDeploymentMonitoringJobRequest + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message DeleteModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ - deployedModelId?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ - featureDisplayName?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ - objectives?: (google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ - pageSize?: (number|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ - pageToken?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ + interface IPauseModelDeploymentMonitoringJobRequest { - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** PauseModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { + /** Represents a PauseModelDeploymentMonitoringJobRequest. */ + class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ - public deployedModelId: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ - public featureDisplayName: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ - public objectives: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ - public pageSize: number; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ - public pageToken: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** PauseModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @returns PauseModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns PauseModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns PauseModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a PauseModelDeploymentMonitoringJobRequest 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 SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns PauseModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message PauseModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** Properties of a StatsAnomaliesObjective. */ - interface IStatsAnomaliesObjective { - - /** StatsAnomaliesObjective type */ - type?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); - - /** StatsAnomaliesObjective topFeatureCount */ - topFeatureCount?: (number|null); - } - - /** Represents a StatsAnomaliesObjective. */ - class StatsAnomaliesObjective implements IStatsAnomaliesObjective { - - /** - * Constructs a new StatsAnomaliesObjective. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); - - /** StatsAnomaliesObjective type. */ - public type: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); - - /** StatsAnomaliesObjective topFeatureCount. */ - public topFeatureCount: number; - - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @param [properties] Properties to set - * @returns StatsAnomaliesObjective instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StatsAnomaliesObjective - * @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.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StatsAnomaliesObjective - * @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.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Verifies a StatsAnomaliesObjective 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 StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StatsAnomaliesObjective - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @param message StatsAnomaliesObjective - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StatsAnomaliesObjective to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StatsAnomaliesObjective - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { - - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ + interface IResumeModelDeploymentMonitoringJobRequest { - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ResumeModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ + class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); - - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ - public nextPageToken: string; + /** ResumeModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @returns ResumeModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ResumeModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ResumeModelDeploymentMonitoringJobRequest * @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.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest 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 SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ResumeModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message ResumeModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetModelDeploymentMonitoringJobRequest. */ - interface IGetModelDeploymentMonitoringJobRequest { + /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + interface IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** GetModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GetModelDeploymentMonitoringJobRequest. */ - class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { + /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); - /** GetModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelDeploymentMonitoringJobRequest instance + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelDeploymentMonitoringJobRequest + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata * @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.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelDeploymentMonitoringJobRequest + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata * @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.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata 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 GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelDeploymentMonitoringJobRequest + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message GetModelDeploymentMonitoringJobRequest + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ - interface IListModelDeploymentMonitoringJobsRequest { + /** Properties of a NasJob. */ + interface INasJob { - /** ListModelDeploymentMonitoringJobsRequest parent */ - parent?: (string|null); + /** NasJob name */ + name?: (string|null); - /** ListModelDeploymentMonitoringJobsRequest filter */ - filter?: (string|null); + /** NasJob displayName */ + displayName?: (string|null); - /** ListModelDeploymentMonitoringJobsRequest pageSize */ - pageSize?: (number|null); + /** NasJob nasJobSpec */ + nasJobSpec?: (google.cloud.aiplatform.v1beta1.INasJobSpec|null); - /** ListModelDeploymentMonitoringJobsRequest pageToken */ - pageToken?: (string|null); + /** NasJob nasJobOutput */ + nasJobOutput?: (google.cloud.aiplatform.v1beta1.INasJobOutput|null); - /** ListModelDeploymentMonitoringJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** NasJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); + + /** NasJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** NasJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** NasJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** NasJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** NasJob error */ + error?: (google.rpc.IStatus|null); + + /** NasJob labels */ + labels?: ({ [k: string]: string }|null); + + /** NasJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** NasJob enableRestrictedImageTraining */ + enableRestrictedImageTraining?: (boolean|null); } - /** Represents a ListModelDeploymentMonitoringJobsRequest. */ - class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { + /** Represents a NasJob. */ + class NasJob implements INasJob { /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new NasJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasJob); - /** ListModelDeploymentMonitoringJobsRequest parent. */ - public parent: string; + /** NasJob name. */ + public name: string; - /** ListModelDeploymentMonitoringJobsRequest filter. */ - public filter: string; + /** NasJob displayName. */ + public displayName: string; - /** ListModelDeploymentMonitoringJobsRequest pageSize. */ - public pageSize: number; + /** NasJob nasJobSpec. */ + public nasJobSpec?: (google.cloud.aiplatform.v1beta1.INasJobSpec|null); - /** ListModelDeploymentMonitoringJobsRequest pageToken. */ - public pageToken: string; + /** NasJob nasJobOutput. */ + public nasJobOutput?: (google.cloud.aiplatform.v1beta1.INasJobOutput|null); - /** ListModelDeploymentMonitoringJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** NasJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); + + /** NasJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** NasJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** NasJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** NasJob error. */ + public error?: (google.rpc.IStatus|null); + + /** NasJob labels. */ + public labels: { [k: string]: string }; + + /** NasJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** NasJob enableRestrictedImageTraining. */ + public enableRestrictedImageTraining: boolean; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new NasJob instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsRequest instance + * @returns NasJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasJob): google.cloud.aiplatform.v1beta1.NasJob; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a NasJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns NasJob * @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.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasJob; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns NasJob * @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.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasJob; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a NasJob 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 ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns NasJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJob; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsRequest + * Creates a plain object from a NasJob message. Also converts values to other types if specified. + * @param message NasJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this NasJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for NasJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ - interface IListModelDeploymentMonitoringJobsResponse { + /** Properties of a NasTrialDetail. */ + interface INasTrialDetail { - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ - modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); + /** NasTrialDetail name */ + name?: (string|null); - /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** NasTrialDetail parameters */ + parameters?: (string|null); + + /** NasTrialDetail searchTrial */ + searchTrial?: (google.cloud.aiplatform.v1beta1.INasTrial|null); + + /** NasTrialDetail trainTrial */ + trainTrial?: (google.cloud.aiplatform.v1beta1.INasTrial|null); } - /** Represents a ListModelDeploymentMonitoringJobsResponse. */ - class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { + /** Represents a NasTrialDetail. */ + class NasTrialDetail implements INasTrialDetail { /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new NasTrialDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasTrialDetail); - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ - public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; + /** NasTrialDetail name. */ + public name: string; - /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ - public nextPageToken: string; + /** NasTrialDetail parameters. */ + public parameters: string; + + /** NasTrialDetail searchTrial. */ + public searchTrial?: (google.cloud.aiplatform.v1beta1.INasTrial|null); + + /** NasTrialDetail trainTrial. */ + public trainTrial?: (google.cloud.aiplatform.v1beta1.INasTrial|null); /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new NasTrialDetail instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsResponse instance + * @returns NasTrialDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasTrialDetail): google.cloud.aiplatform.v1beta1.NasTrialDetail; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a NasTrialDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns NasTrialDetail * @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.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasTrialDetail; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns NasTrialDetail * @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.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasTrialDetail; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a NasTrialDetail 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 ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns NasTrialDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasTrialDetail; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsResponse + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. + * @param message NasTrialDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasTrialDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this NasTrialDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for NasTrialDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ - interface IUpdateModelDeploymentMonitoringJobRequest { + /** Properties of a NasJobSpec. */ + interface INasJobSpec { - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** NasJobSpec multiTrialAlgorithmSpec */ + multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec|null); - /** UpdateModelDeploymentMonitoringJobRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** NasJobSpec resumeNasJobId */ + resumeNasJobId?: (string|null); + + /** NasJobSpec searchSpaceSpec */ + searchSpaceSpec?: (string|null); } - /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ - class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { + /** Represents a NasJobSpec. */ + class NasJobSpec implements INasJobSpec { /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new NasJobSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasJobSpec); - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** NasJobSpec multiTrialAlgorithmSpec. */ + public multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec|null); - /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** NasJobSpec resumeNasJobId. */ + public resumeNasJobId: string; + + /** NasJobSpec searchSpaceSpec. */ + public searchSpaceSpec: string; + + /** NasJobSpec nasAlgorithmSpec. */ + public nasAlgorithmSpec?: "multiTrialAlgorithmSpec"; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new NasJobSpec instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobRequest instance + * @returns NasJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasJobSpec): google.cloud.aiplatform.v1beta1.NasJobSpec; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a NasJobSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns NasJobSpec * @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.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasJobSpec; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns NasJobSpec * @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.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasJobSpec; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a NasJobSpec 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 an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns NasJobSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobRequest + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. + * @param message NasJobSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this NasJobSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * Gets the default type url for NasJobSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ - interface IDeleteModelDeploymentMonitoringJobRequest { + namespace NasJobSpec { - /** DeleteModelDeploymentMonitoringJobRequest name */ - name?: (string|null); - } + /** Properties of a MultiTrialAlgorithmSpec. */ + interface IMultiTrialAlgorithmSpec { - /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ - class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { + /** MultiTrialAlgorithmSpec multiTrialAlgorithm */ + multiTrialAlgorithm?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null); - /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); + /** MultiTrialAlgorithmSpec metric */ + metric?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - /** DeleteModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** MultiTrialAlgorithmSpec searchTrialSpec */ + searchTrialSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteModelDeploymentMonitoringJobRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + /** MultiTrialAlgorithmSpec trainTrialSpec */ + trainTrialSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); + } - /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a MultiTrialAlgorithmSpec. */ + class MultiTrialAlgorithmSpec implements IMultiTrialAlgorithmSpec { - /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new MultiTrialAlgorithmSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec); - /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteModelDeploymentMonitoringJobRequest - * @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.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + /** MultiTrialAlgorithmSpec multiTrialAlgorithm. */ + public multiTrialAlgorithm: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm); - /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteModelDeploymentMonitoringJobRequest - * @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.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + /** MultiTrialAlgorithmSpec metric. */ + public metric?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); + + /** MultiTrialAlgorithmSpec searchTrialSpec. */ + public searchTrialSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); + + /** MultiTrialAlgorithmSpec trainTrialSpec. */ + public trainTrialSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); + + /** + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTrialAlgorithmSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTrialAlgorithmSpec + * @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.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTrialAlgorithmSpec + * @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.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Verifies a MultiTrialAlgorithmSpec 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 MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTrialAlgorithmSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. + * @param message MultiTrialAlgorithmSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTrialAlgorithmSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTrialAlgorithmSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MultiTrialAlgorithmSpec { + + /** Properties of a MetricSpec. */ + interface IMetricSpec { + + /** MetricSpec metricId */ + metricId?: (string|null); + + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null); + } + + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { + + /** + * Constructs a new MetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec); + + /** MetricSpec metricId. */ + public metricId: string; + + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType); + + /** + * Creates a new MetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricSpec + * @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.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricSpec + * @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.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Verifies a MetricSpec 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 MetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @param message MetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MetricSpec { + + /** GoalType enum. */ + enum GoalType { + GOAL_TYPE_UNSPECIFIED = 0, + MAXIMIZE = 1, + MINIMIZE = 2 + } + } + + /** Properties of a SearchTrialSpec. */ + interface ISearchTrialSpec { + + /** SearchTrialSpec searchTrialJobSpec */ + searchTrialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** SearchTrialSpec maxTrialCount */ + maxTrialCount?: (number|null); + + /** SearchTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); + + /** SearchTrialSpec maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); + } + + /** Represents a SearchTrialSpec. */ + class SearchTrialSpec implements ISearchTrialSpec { + + /** + * Constructs a new SearchTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec); + + /** SearchTrialSpec searchTrialJobSpec. */ + public searchTrialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** SearchTrialSpec maxTrialCount. */ + public maxTrialCount: number; + + /** SearchTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; + + /** SearchTrialSpec maxFailedTrialCount. */ + public maxFailedTrialCount: number; + + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchTrialSpec + * @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.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchTrialSpec + * @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.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Verifies a SearchTrialSpec 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 SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @param message SearchTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TrainTrialSpec. */ + interface ITrainTrialSpec { + + /** TrainTrialSpec trainTrialJobSpec */ + trainTrialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); + + /** TrainTrialSpec frequency */ + frequency?: (number|null); + } + + /** Represents a TrainTrialSpec. */ + class TrainTrialSpec implements ITrainTrialSpec { + + /** + * Constructs a new TrainTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec); + + /** TrainTrialSpec trainTrialJobSpec. */ + public trainTrialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; + + /** TrainTrialSpec frequency. */ + public frequency: number; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainTrialSpec + * @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.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainTrialSpec + * @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.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; - /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest 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); + /** + * Verifies a TrainTrialSpec 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 DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteModelDeploymentMonitoringJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + /** + * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; - /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message DeleteModelDeploymentMonitoringJobRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @param message TrainTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this TrainTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for TrainTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MultiTrialAlgorithm enum. */ + enum MultiTrialAlgorithm { + MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0, + REINFORCEMENT_LEARNING = 1, + GRID_SEARCH = 2 + } + } } - /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ - interface IPauseModelDeploymentMonitoringJobRequest { + /** Properties of a NasJobOutput. */ + interface INasJobOutput { - /** PauseModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** NasJobOutput multiTrialJobOutput */ + multiTrialJobOutput?: (google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput|null); } - /** Represents a PauseModelDeploymentMonitoringJobRequest. */ - class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { + /** Represents a NasJobOutput. */ + class NasJobOutput implements INasJobOutput { /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new NasJobOutput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasJobOutput); - /** PauseModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** NasJobOutput multiTrialJobOutput. */ + public multiTrialJobOutput?: (google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput|null); + + /** NasJobOutput output. */ + public output?: "multiTrialJobOutput"; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new NasJobOutput instance using the specified properties. * @param [properties] Properties to set - * @returns PauseModelDeploymentMonitoringJobRequest instance + * @returns NasJobOutput instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasJobOutput): google.cloud.aiplatform.v1beta1.NasJobOutput; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a NasJobOutput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns NasJobOutput * @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.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasJobOutput; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns NasJobOutput * @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.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasJobOutput; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a NasJobOutput 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 PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns NasJobOutput */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobOutput; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message PauseModelDeploymentMonitoringJobRequest + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. + * @param message NasJobOutput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this NasJobOutput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * Gets the default type url for NasJobOutput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ - interface IResumeModelDeploymentMonitoringJobRequest { + namespace NasJobOutput { - /** ResumeModelDeploymentMonitoringJobRequest name */ - name?: (string|null); - } + /** Properties of a MultiTrialJobOutput. */ + interface IMultiTrialJobOutput { - /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ - class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { + /** MultiTrialJobOutput searchTrials */ + searchTrials?: (google.cloud.aiplatform.v1beta1.INasTrial[]|null); - /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); + /** MultiTrialJobOutput trainTrials */ + trainTrials?: (google.cloud.aiplatform.v1beta1.INasTrial[]|null); + } - /** ResumeModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** Represents a MultiTrialJobOutput. */ + class MultiTrialJobOutput implements IMultiTrialJobOutput { - /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ResumeModelDeploymentMonitoringJobRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + /** + * Constructs a new MultiTrialJobOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput); - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MultiTrialJobOutput searchTrials. */ + public searchTrials: google.cloud.aiplatform.v1beta1.INasTrial[]; - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MultiTrialJobOutput trainTrials. */ + public trainTrials: google.cloud.aiplatform.v1beta1.INasTrial[]; - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResumeModelDeploymentMonitoringJobRequest - * @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.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + /** + * Creates a new MultiTrialJobOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTrialJobOutput instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput): google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput; - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResumeModelDeploymentMonitoringJobRequest - * @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.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + /** + * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest 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); + /** + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResumeModelDeploymentMonitoringJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTrialJobOutput + * @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.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput; - /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message ResumeModelDeploymentMonitoringJobRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTrialJobOutput + * @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.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput; - /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a MultiTrialJobOutput 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); - /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTrialJobOutput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput; + + /** + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. + * @param message MultiTrialJobOutput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTrialJobOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTrialJobOutput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - interface IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Properties of a NasTrial. */ + interface INasTrial { - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** NasTrial id */ + id?: (string|null); + + /** NasTrial state */ + state?: (google.cloud.aiplatform.v1beta1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1beta1.NasTrial.State|null); + + /** NasTrial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + + /** NasTrial startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Represents a NasTrial. */ + class NasTrial implements INasTrial { /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new NasTrial. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasTrial); - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** NasTrial id. */ + public id: string; + + /** NasTrial state. */ + public state: (google.cloud.aiplatform.v1beta1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1beta1.NasTrial.State); + + /** NasTrial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + + /** NasTrial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * Creates a new NasTrial instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @returns NasTrial instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasTrial): google.cloud.aiplatform.v1beta1.NasTrial; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a NasTrial message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns NasTrial * @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.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasTrial; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NasTrial message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns NasTrial * @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.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasTrial; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a NasTrial 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 an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns NasTrial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasTrial; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. + * @param message NasTrial * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasTrial, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this NasTrial to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * Gets the default type url for NasTrial * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace NasTrial { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } + } + /** Properties of a LineageSubgraph. */ interface ILineageSubgraph { @@ -118637,6 +124198,20 @@ export namespace google { */ public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest): Promise; + /** + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public copyModel(request: google.cloud.aiplatform.v1beta1.ICopyModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.CopyModelCallback): void; + + /** + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @returns Promise + */ + public copyModel(request: google.cloud.aiplatform.v1beta1.ICopyModelRequest): Promise; + /** * Calls ImportModelEvaluation. * @param request ImportModelEvaluationRequest message or plain object @@ -118794,6 +124369,13 @@ export namespace google { */ type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|copyModel}. + * @param error Error, if any + * @param [response] Operation + */ + type CopyModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|importModelEvaluation}. * @param error Error, if any @@ -120915,6 +126497,330 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CopyModelRequest. */ + interface ICopyModelRequest { + + /** CopyModelRequest modelId */ + modelId?: (string|null); + + /** CopyModelRequest parentModel */ + parentModel?: (string|null); + + /** CopyModelRequest parent */ + parent?: (string|null); + + /** CopyModelRequest sourceModel */ + sourceModel?: (string|null); + + /** CopyModelRequest encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + } + + /** Represents a CopyModelRequest. */ + class CopyModelRequest implements ICopyModelRequest { + + /** + * Constructs a new CopyModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelRequest); + + /** CopyModelRequest modelId. */ + public modelId?: (string|null); + + /** CopyModelRequest parentModel. */ + public parentModel?: (string|null); + + /** CopyModelRequest parent. */ + public parent: string; + + /** CopyModelRequest sourceModel. */ + public sourceModel: string; + + /** CopyModelRequest encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** CopyModelRequest destinationModel. */ + public destinationModel?: ("modelId"|"parentModel"); + + /** + * Creates a new CopyModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelRequest): google.cloud.aiplatform.v1beta1.CopyModelRequest; + + /** + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CopyModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyModelRequest + * @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.aiplatform.v1beta1.CopyModelRequest; + + /** + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyModelRequest + * @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.aiplatform.v1beta1.CopyModelRequest; + + /** + * Verifies a CopyModelRequest 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 CopyModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelRequest; + + /** + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. + * @param message CopyModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CopyModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CopyModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CopyModelOperationMetadata. */ + interface ICopyModelOperationMetadata { + + /** CopyModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } + + /** Represents a CopyModelOperationMetadata. */ + class CopyModelOperationMetadata implements ICopyModelOperationMetadata { + + /** + * Constructs a new CopyModelOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata); + + /** CopyModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** + * Creates a new CopyModelOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyModelOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; + + /** + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyModelOperationMetadata + * @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.aiplatform.v1beta1.CopyModelOperationMetadata; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyModelOperationMetadata + * @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.aiplatform.v1beta1.CopyModelOperationMetadata; + + /** + * Verifies a CopyModelOperationMetadata 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 CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyModelOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; + + /** + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. + * @param message CopyModelOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CopyModelOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CopyModelOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CopyModelResponse. */ + interface ICopyModelResponse { + + /** CopyModelResponse model */ + model?: (string|null); + + /** CopyModelResponse modelVersionId */ + modelVersionId?: (string|null); + } + + /** Represents a CopyModelResponse. */ + class CopyModelResponse implements ICopyModelResponse { + + /** + * Constructs a new CopyModelResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelResponse); + + /** CopyModelResponse model. */ + public model: string; + + /** CopyModelResponse modelVersionId. */ + public modelVersionId: string; + + /** + * Creates a new CopyModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyModelResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelResponse): google.cloud.aiplatform.v1beta1.CopyModelResponse; + + /** + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CopyModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyModelResponse + * @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.aiplatform.v1beta1.CopyModelResponse; + + /** + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyModelResponse + * @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.aiplatform.v1beta1.CopyModelResponse; + + /** + * Verifies a CopyModelResponse 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 CopyModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyModelResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelResponse; + + /** + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @param message CopyModelResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CopyModelResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CopyModelResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an ImportModelEvaluationRequest. */ interface IImportModelEvaluationRequest { @@ -123113,6 +129019,9 @@ export namespace google { /** CustomJobDetail job */ job?: (string|null); + + /** CustomJobDetail failedJobs */ + failedJobs?: (string[]|null); } /** Represents a CustomJobDetail. */ @@ -123127,6 +129036,9 @@ export namespace google { /** CustomJobDetail job. */ public job: string; + /** CustomJobDetail failedJobs. */ + public failedJobs: string[]; + /** * Creates a new CustomJobDetail instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 9abbc2b61d40..9415e413fd43 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -15442,6 +15442,7 @@ * @property {Object.|null} [labels] Model labels * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] Model encryptionSpec * @property {google.cloud.aiplatform.v1.IModelSourceInfo|null} [modelSourceInfo] Model modelSourceInfo + * @property {google.cloud.aiplatform.v1.Model.IOriginalModelInfo|null} [originalModelInfo] Model originalModelInfo * @property {string|null} [metadataArtifact] Model metadataArtifact */ @@ -15675,6 +15676,14 @@ */ Model.prototype.modelSourceInfo = null; + /** + * Model originalModelInfo. + * @member {google.cloud.aiplatform.v1.Model.IOriginalModelInfo|null|undefined} originalModelInfo + * @memberof google.cloud.aiplatform.v1.Model + * @instance + */ + Model.prototype.originalModelInfo = null; + /** * Model metadataArtifact. * @member {string} metadataArtifact @@ -15767,6 +15776,8 @@ $root.google.protobuf.Timestamp.encode(message.versionCreateTime, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); if (message.versionUpdateTime != null && Object.hasOwnProperty.call(message, "versionUpdateTime")) $root.google.protobuf.Timestamp.encode(message.versionUpdateTime, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.originalModelInfo != null && Object.hasOwnProperty.call(message, "originalModelInfo")) + $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.encode(message.originalModelInfo, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); if (message.modelSourceInfo != null && Object.hasOwnProperty.call(message, "modelSourceInfo")) $root.google.cloud.aiplatform.v1.ModelSourceInfo.encode(message.modelSourceInfo, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); if (message.metadataArtifact != null && Object.hasOwnProperty.call(message, "metadataArtifact")) @@ -15945,6 +15956,10 @@ message.modelSourceInfo = $root.google.cloud.aiplatform.v1.ModelSourceInfo.decode(reader, reader.uint32()); break; } + case 34: { + message.originalModelInfo = $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.decode(reader, reader.uint32()); + break; + } case 44: { message.metadataArtifact = reader.string(); break; @@ -16122,6 +16137,11 @@ if (error) return "modelSourceInfo." + error; } + if (message.originalModelInfo != null && message.hasOwnProperty("originalModelInfo")) { + var error = $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify(message.originalModelInfo); + if (error) + return "originalModelInfo." + error; + } if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) if (!$util.isString(message.metadataArtifact)) return "metadataArtifact: string expected"; @@ -16285,6 +16305,11 @@ throw TypeError(".google.cloud.aiplatform.v1.Model.modelSourceInfo: object expected"); message.modelSourceInfo = $root.google.cloud.aiplatform.v1.ModelSourceInfo.fromObject(object.modelSourceInfo); } + if (object.originalModelInfo != null) { + if (typeof object.originalModelInfo !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Model.originalModelInfo: object expected"); + message.originalModelInfo = $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.fromObject(object.originalModelInfo); + } if (object.metadataArtifact != null) message.metadataArtifact = String(object.metadataArtifact); return message; @@ -16332,6 +16357,7 @@ object.versionDescription = ""; object.versionCreateTime = null; object.versionUpdateTime = null; + object.originalModelInfo = null; object.modelSourceInfo = null; object.metadataArtifact = ""; } @@ -16407,6 +16433,8 @@ object.versionCreateTime = $root.google.protobuf.Timestamp.toObject(message.versionCreateTime, options); if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) object.versionUpdateTime = $root.google.protobuf.Timestamp.toObject(message.versionUpdateTime, options); + if (message.originalModelInfo != null && message.hasOwnProperty("originalModelInfo")) + object.originalModelInfo = $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.toObject(message.originalModelInfo, options); if (message.modelSourceInfo != null && message.hasOwnProperty("modelSourceInfo")) object.modelSourceInfo = $root.google.cloud.aiplatform.v1.ModelSourceInfo.toObject(message.modelSourceInfo, options); if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) @@ -16731,6 +16759,209 @@ return ExportFormat; })(); + Model.OriginalModelInfo = (function() { + + /** + * Properties of an OriginalModelInfo. + * @memberof google.cloud.aiplatform.v1.Model + * @interface IOriginalModelInfo + * @property {string|null} [model] OriginalModelInfo model + */ + + /** + * Constructs a new OriginalModelInfo. + * @memberof google.cloud.aiplatform.v1.Model + * @classdesc Represents an OriginalModelInfo. + * @implements IOriginalModelInfo + * @constructor + * @param {google.cloud.aiplatform.v1.Model.IOriginalModelInfo=} [properties] Properties to set + */ + function OriginalModelInfo(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]]; + } + + /** + * OriginalModelInfo model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @instance + */ + OriginalModelInfo.prototype.model = ""; + + /** + * Creates a new OriginalModelInfo instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1.Model.IOriginalModelInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Model.OriginalModelInfo} OriginalModelInfo instance + */ + OriginalModelInfo.create = function create(properties) { + return new OriginalModelInfo(properties); + }; + + /** + * Encodes the specified OriginalModelInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1.Model.IOriginalModelInfo} message OriginalModelInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OriginalModelInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + return writer; + }; + + /** + * Encodes the specified OriginalModelInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1.Model.IOriginalModelInfo} message OriginalModelInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OriginalModelInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Model.OriginalModelInfo} OriginalModelInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OriginalModelInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Model.OriginalModelInfo} OriginalModelInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OriginalModelInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OriginalModelInfo message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OriginalModelInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + return null; + }; + + /** + * Creates an OriginalModelInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Model.OriginalModelInfo} OriginalModelInfo + */ + OriginalModelInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo) + return object; + var message = new $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo(); + if (object.model != null) + message.model = String(object.model); + return message; + }; + + /** + * Creates a plain object from an OriginalModelInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1.Model.OriginalModelInfo} message OriginalModelInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OriginalModelInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.model = ""; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + return object; + }; + + /** + * Converts this OriginalModelInfo to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @instance + * @returns {Object.} JSON object + */ + OriginalModelInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OriginalModelInfo + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OriginalModelInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Model.OriginalModelInfo"; + }; + + return OriginalModelInfo; + })(); + /** * DeploymentResourcesType enum. * @name google.cloud.aiplatform.v1.Model.DeploymentResourcesType @@ -60719,6 +60950,7 @@ * @interface IMetricSpec * @property {string|null} [metricId] MetricSpec metricId * @property {google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + * @property {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null} [safetyConfig] MetricSpec safetyConfig */ /** @@ -60752,6 +60984,28 @@ */ MetricSpec.prototype.goal = 0; + /** + * MetricSpec safetyConfig. + * @member {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null|undefined} safetyConfig + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @instance + */ + MetricSpec.prototype.safetyConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MetricSpec _safetyConfig. + * @member {"safetyConfig"|undefined} _safetyConfig + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @instance + */ + Object.defineProperty(MetricSpec.prototype, "_safetyConfig", { + get: $util.oneOfGetter($oneOfFields = ["safetyConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new MetricSpec instance using the specified properties. * @function create @@ -60780,6 +61034,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + if (message.safetyConfig != null && Object.hasOwnProperty.call(message, "safetyConfig")) + $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.encode(message.safetyConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -60822,6 +61078,10 @@ message.goal = reader.int32(); break; } + case 3: { + message.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -60857,6 +61117,7 @@ MetricSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.metricId != null && message.hasOwnProperty("metricId")) if (!$util.isString(message.metricId)) return "metricId: string expected"; @@ -60869,6 +61130,14 @@ case 2: break; } + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + properties._safetyConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify(message.safetyConfig); + if (error) + return "safetyConfig." + error; + } + } return null; }; @@ -60906,6 +61175,11 @@ message.goal = 2; break; } + if (object.safetyConfig != null) { + if (typeof object.safetyConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.MetricSpec.safetyConfig: object expected"); + message.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.fromObject(object.safetyConfig); + } return message; }; @@ -60930,6 +61204,11 @@ object.metricId = message.metricId; if (message.goal != null && message.hasOwnProperty("goal")) object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType[message.goal] : message.goal; + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + object.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.toObject(message.safetyConfig, options); + if (options.oneofs) + object._safetyConfig = "safetyConfig"; + } return object; }; @@ -60959,6 +61238,251 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MetricSpec"; }; + MetricSpec.SafetyMetricConfig = (function() { + + /** + * Properties of a SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @interface ISafetyMetricConfig + * @property {number|null} [safetyThreshold] SafetyMetricConfig safetyThreshold + * @property {number|null} [desiredMinSafeTrialsFraction] SafetyMetricConfig desiredMinSafeTrialsFraction + */ + + /** + * Constructs a new SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @classdesc Represents a SafetyMetricConfig. + * @implements ISafetyMetricConfig + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + */ + function SafetyMetricConfig(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]]; + } + + /** + * SafetyMetricConfig safetyThreshold. + * @member {number} safetyThreshold + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.safetyThreshold = 0; + + /** + * SafetyMetricConfig desiredMinSafeTrialsFraction. + * @member {number|null|undefined} desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.desiredMinSafeTrialsFraction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SafetyMetricConfig _desiredMinSafeTrialsFraction. + * @member {"desiredMinSafeTrialsFraction"|undefined} _desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + Object.defineProperty(SafetyMetricConfig.prototype, "_desiredMinSafeTrialsFraction", { + get: $util.oneOfGetter($oneOfFields = ["desiredMinSafeTrialsFraction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SafetyMetricConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig instance + */ + SafetyMetricConfig.create = function create(properties) { + return new SafetyMetricConfig(properties); + }; + + /** + * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.safetyThreshold != null && Object.hasOwnProperty.call(message, "safetyThreshold")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.safetyThreshold); + if (message.desiredMinSafeTrialsFraction != null && Object.hasOwnProperty.call(message, "desiredMinSafeTrialsFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.desiredMinSafeTrialsFraction); + return writer; + }; + + /** + * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.safetyThreshold = reader.double(); + break; + } + case 2: { + message.desiredMinSafeTrialsFraction = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyMetricConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyMetricConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + if (typeof message.safetyThreshold !== "number") + return "safetyThreshold: number expected"; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + properties._desiredMinSafeTrialsFraction = 1; + if (typeof message.desiredMinSafeTrialsFraction !== "number") + return "desiredMinSafeTrialsFraction: number expected"; + } + return null; + }; + + /** + * Creates a SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + */ + SafetyMetricConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig(); + if (object.safetyThreshold != null) + message.safetyThreshold = Number(object.safetyThreshold); + if (object.desiredMinSafeTrialsFraction != null) + message.desiredMinSafeTrialsFraction = Number(object.desiredMinSafeTrialsFraction); + return message; + }; + + /** + * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} message SafetyMetricConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyMetricConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.safetyThreshold = 0; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + object.safetyThreshold = options.json && !isFinite(message.safetyThreshold) ? String(message.safetyThreshold) : message.safetyThreshold; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + object.desiredMinSafeTrialsFraction = options.json && !isFinite(message.desiredMinSafeTrialsFraction) ? String(message.desiredMinSafeTrialsFraction) : message.desiredMinSafeTrialsFraction; + if (options.oneofs) + object._desiredMinSafeTrialsFraction = "desiredMinSafeTrialsFraction"; + } + return object; + }; + + /** + * Converts this SafetyMetricConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + * @returns {Object.} JSON object + */ + SafetyMetricConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyMetricConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyMetricConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig"; + }; + + return SafetyMetricConfig; + })(); + /** * GoalType enum. * @name google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType @@ -66563,6 +67087,7 @@ * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime * @property {string|null} [network] IndexEndpoint network * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect + * @property {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null} [privateServiceConnectConfig] IndexEndpoint privateServiceConnectConfig */ /** @@ -66662,6 +67187,14 @@ */ IndexEndpoint.prototype.enablePrivateServiceConnect = false; + /** + * IndexEndpoint privateServiceConnectConfig. + * @member {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null|undefined} privateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.privateServiceConnectConfig = null; + /** * Creates a new IndexEndpoint instance using the specified properties. * @function create @@ -66708,6 +67241,8 @@ writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); + if (message.privateServiceConnectConfig != null && Object.hasOwnProperty.call(message, "privateServiceConnectConfig")) + $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.encode(message.privateServiceConnectConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; @@ -66803,6 +67338,10 @@ message.enablePrivateServiceConnect = reader.bool(); break; } + case 12: { + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -66883,6 +67422,11 @@ if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) if (typeof message.enablePrivateServiceConnect !== "boolean") return "enablePrivateServiceConnect: boolean expected"; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) { + var error = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify(message.privateServiceConnectConfig); + if (error) + return "privateServiceConnectConfig." + error; + } return null; }; @@ -66937,6 +67481,11 @@ message.network = String(object.network); if (object.enablePrivateServiceConnect != null) message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.privateServiceConnectConfig != null) { + if (typeof object.privateServiceConnectConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.privateServiceConnectConfig: object expected"); + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.fromObject(object.privateServiceConnectConfig); + } return message; }; @@ -66966,6 +67515,7 @@ object.updateTime = null; object.network = ""; object.enablePrivateServiceConnect = false; + object.privateServiceConnectConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -66994,6 +67544,8 @@ object.network = message.network; if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) + object.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.toObject(message.privateServiceConnectConfig, options); return object; }; @@ -68224,6 +68776,249 @@ return IndexPrivateEndpoints; })(); + v1.PrivateServiceConnectConfig = (function() { + + /** + * Properties of a PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IPrivateServiceConnectConfig + * @property {boolean|null} [enablePrivateServiceConnect] PrivateServiceConnectConfig enablePrivateServiceConnect + * @property {Array.|null} [projectAllowlist] PrivateServiceConnectConfig projectAllowlist + */ + + /** + * Constructs a new PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PrivateServiceConnectConfig. + * @implements IPrivateServiceConnectConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig=} [properties] Properties to set + */ + function PrivateServiceConnectConfig(properties) { + this.projectAllowlist = []; + 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]]; + } + + /** + * PrivateServiceConnectConfig enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.enablePrivateServiceConnect = false; + + /** + * PrivateServiceConnectConfig projectAllowlist. + * @member {Array.} projectAllowlist + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.projectAllowlist = $util.emptyArray; + + /** + * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig instance + */ + PrivateServiceConnectConfig.create = function create(properties) { + return new PrivateServiceConnectConfig(properties); + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateServiceConnect); + if (message.projectAllowlist != null && message.projectAllowlist.length) + for (var i = 0; i < message.projectAllowlist.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectAllowlist[i]); + return writer; + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enablePrivateServiceConnect = reader.bool(); + break; + } + case 2: { + if (!(message.projectAllowlist && message.projectAllowlist.length)) + message.projectAllowlist = []; + message.projectAllowlist.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateServiceConnectConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrivateServiceConnectConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; + if (message.projectAllowlist != null && message.hasOwnProperty("projectAllowlist")) { + if (!Array.isArray(message.projectAllowlist)) + return "projectAllowlist: array expected"; + for (var i = 0; i < message.projectAllowlist.length; ++i) + if (!$util.isString(message.projectAllowlist[i])) + return "projectAllowlist: string[] expected"; + } + return null; + }; + + /** + * Creates a PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + */ + PrivateServiceConnectConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig(); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.projectAllowlist) { + if (!Array.isArray(object.projectAllowlist)) + throw TypeError(".google.cloud.aiplatform.v1.PrivateServiceConnectConfig.projectAllowlist: array expected"); + message.projectAllowlist = []; + for (var i = 0; i < object.projectAllowlist.length; ++i) + message.projectAllowlist[i] = String(object.projectAllowlist[i]); + } + return message; + }; + + /** + * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} message PrivateServiceConnectConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateServiceConnectConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.projectAllowlist = []; + if (options.defaults) + object.enablePrivateServiceConnect = false; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.projectAllowlist && message.projectAllowlist.length) { + object.projectAllowlist = []; + for (var j = 0; j < message.projectAllowlist.length; ++j) + object.projectAllowlist[j] = message.projectAllowlist[j]; + } + return object; + }; + + /** + * Converts this PrivateServiceConnectConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + * @returns {Object.} JSON object + */ + PrivateServiceConnectConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrivateServiceConnectConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateServiceConnectConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PrivateServiceConnectConfig"; + }; + + return PrivateServiceConnectConfig; + })(); + v1.IndexEndpointService = (function() { /** @@ -76597,6 +77392,237 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CreateNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.NasJob} [response] NasJob + */ + + /** + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CreateNasJobCallback} callback Node-style callback called with the error, if any, and NasJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.createNasJob = function createNasJob(request, callback) { + return this.rpcCall(createNasJob, $root.google.cloud.aiplatform.v1.CreateNasJobRequest, $root.google.cloud.aiplatform.v1.NasJob, request, callback); + }, "name", { value: "CreateNasJob" }); + + /** + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.NasJob} [response] NasJob + */ + + /** + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetNasJobCallback} callback Node-style callback called with the error, if any, and NasJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.getNasJob = function getNasJob(request, callback) { + return this.rpcCall(getNasJob, $root.google.cloud.aiplatform.v1.GetNasJobRequest, $root.google.cloud.aiplatform.v1.NasJob, request, callback); + }, "name", { value: "GetNasJob" }); + + /** + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasJobs}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListNasJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListNasJobsResponse} [response] ListNasJobsResponse + */ + + /** + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListNasJobsCallback} callback Node-style callback called with the error, if any, and ListNasJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listNasJobs = function listNasJobs(request, callback) { + return this.rpcCall(listNasJobs, $root.google.cloud.aiplatform.v1.ListNasJobsRequest, $root.google.cloud.aiplatform.v1.ListNasJobsResponse, request, callback); + }, "name", { value: "ListNasJobs" }); + + /** + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef DeleteNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.DeleteNasJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.deleteNasJob = function deleteNasJob(request, callback) { + return this.rpcCall(deleteNasJob, $root.google.cloud.aiplatform.v1.DeleteNasJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteNasJob" }); + + /** + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CancelNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CancelNasJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.cancelNasJob = function cancelNasJob(request, callback) { + return this.rpcCall(cancelNasJob, $root.google.cloud.aiplatform.v1.CancelNasJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelNasJob" }); + + /** + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasTrialDetail}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetNasTrialDetailCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.NasTrialDetail} [response] NasTrialDetail + */ + + /** + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetNasTrialDetailCallback} callback Node-style callback called with the error, if any, and NasTrialDetail + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.getNasTrialDetail = function getNasTrialDetail(request, callback) { + return this.rpcCall(getNasTrialDetail, $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest, $root.google.cloud.aiplatform.v1.NasTrialDetail, request, callback); + }, "name", { value: "GetNasTrialDetail" }); + + /** + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasTrialDetails}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListNasTrialDetailsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} [response] ListNasTrialDetailsResponse + */ + + /** + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListNasTrialDetailsCallback} callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listNasTrialDetails = function listNasTrialDetails(request, callback) { + return this.rpcCall(listNasTrialDetails, $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest, $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse, request, callback); + }, "name", { value: "ListNasTrialDetails" }); + + /** + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createBatchPredictionJob}. * @memberof google.cloud.aiplatform.v1.JobService @@ -81222,25 +82248,25 @@ return CancelHyperparameterTuningJobRequest; })(); - v1.CreateBatchPredictionJobRequest = (function() { + v1.CreateNasJobRequest = (function() { /** - * Properties of a CreateBatchPredictionJobRequest. + * Properties of a CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateBatchPredictionJobRequest - * @property {string|null} [parent] CreateBatchPredictionJobRequest parent - * @property {google.cloud.aiplatform.v1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob + * @interface ICreateNasJobRequest + * @property {string|null} [parent] CreateNasJobRequest parent + * @property {google.cloud.aiplatform.v1.INasJob|null} [nasJob] CreateNasJobRequest nasJob */ /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateBatchPredictionJobRequest. - * @implements ICreateBatchPredictionJobRequest + * @classdesc Represents a CreateNasJobRequest. + * @implements ICreateNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest=} [properties] Properties to set */ - function CreateBatchPredictionJobRequest(properties) { + function CreateNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81248,80 +82274,80 @@ } /** - * CreateBatchPredictionJobRequest parent. + * CreateNasJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @instance */ - CreateBatchPredictionJobRequest.prototype.parent = ""; + CreateNasJobRequest.prototype.parent = ""; /** - * CreateBatchPredictionJobRequest batchPredictionJob. - * @member {google.cloud.aiplatform.v1.IBatchPredictionJob|null|undefined} batchPredictionJob - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * CreateNasJobRequest nasJob. + * @member {google.cloud.aiplatform.v1.INasJob|null|undefined} nasJob + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @instance */ - CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + CreateNasJobRequest.prototype.nasJob = null; /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new CreateNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest instance */ - CreateBatchPredictionJobRequest.create = function create(properties) { - return new CreateBatchPredictionJobRequest(properties); + CreateNasJobRequest.create = function create(properties) { + return new CreateNasJobRequest(properties); }; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encode = function encode(message, writer) { + CreateNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) - $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nasJob != null && Object.hasOwnProperty.call(message, "nasJob")) + $root.google.cloud.aiplatform.v1.NasJob.encode(message.nasJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CreateNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decode = function decode(reader, length) { + CreateNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -81330,7 +82356,7 @@ break; } case 2: { - message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32()); + message.nasJob = $root.google.cloud.aiplatform.v1.NasJob.decode(reader, reader.uint32()); break; } default: @@ -81342,136 +82368,136 @@ }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a CreateNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateBatchPredictionJobRequest.verify = function verify(message) { + CreateNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { - var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJob); + if (message.nasJob != null && message.hasOwnProperty("nasJob")) { + var error = $root.google.cloud.aiplatform.v1.NasJob.verify(message.nasJob); if (error) - return "batchPredictionJob." + error; + return "nasJob." + error; } return null; }; /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest */ - CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest) + CreateNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateNasJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.batchPredictionJob != null) { - if (typeof object.batchPredictionJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); - message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJob); + if (object.nasJob != null) { + if (typeof object.nasJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateNasJobRequest.nasJob: object expected"); + message.nasJob = $root.google.cloud.aiplatform.v1.NasJob.fromObject(object.nasJob); } return message; }; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.CreateNasJobRequest} message CreateNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { + CreateNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.batchPredictionJob = null; + object.nasJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) - object.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJob, options); + if (message.nasJob != null && message.hasOwnProperty("nasJob")) + object.nasJob = $root.google.cloud.aiplatform.v1.NasJob.toObject(message.nasJob, options); return object; }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this CreateNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @instance * @returns {Object.} JSON object */ - CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + CreateNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for CreateNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateNasJobRequest"; }; - return CreateBatchPredictionJobRequest; + return CreateNasJobRequest; })(); - v1.GetBatchPredictionJobRequest = (function() { + v1.GetNasJobRequest = (function() { /** - * Properties of a GetBatchPredictionJobRequest. + * Properties of a GetNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetBatchPredictionJobRequest - * @property {string|null} [name] GetBatchPredictionJobRequest name + * @interface IGetNasJobRequest + * @property {string|null} [name] GetNasJobRequest name */ /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new GetNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetBatchPredictionJobRequest. - * @implements IGetBatchPredictionJobRequest + * @classdesc Represents a GetNasJobRequest. + * @implements IGetNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest=} [properties] Properties to set */ - function GetBatchPredictionJobRequest(properties) { + function GetNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81479,35 +82505,35 @@ } /** - * GetBatchPredictionJobRequest name. + * GetNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @instance */ - GetBatchPredictionJobRequest.prototype.name = ""; + GetNasJobRequest.prototype.name = ""; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest instance */ - GetBatchPredictionJobRequest.create = function create(properties) { - return new GetBatchPredictionJobRequest(properties); + GetNasJobRequest.create = function create(properties) { + return new GetNasJobRequest(properties); }; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encode = function encode(message, writer) { + GetNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -81516,33 +82542,33 @@ }; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decode = function decode(reader, length) { + GetNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -81559,30 +82585,30 @@ }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a GetNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBatchPredictionJobRequest.verify = function verify(message) { + GetNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -81592,32 +82618,32 @@ }; /** - * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest */ - GetBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest) + GetNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.GetNasJobRequest} message GetNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBatchPredictionJobRequest.toObject = function toObject(message, options) { + GetNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -81629,56 +82655,56 @@ }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this GetNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @instance * @returns {Object.} JSON object */ - GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + GetNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for GetNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetNasJobRequest"; }; - return GetBatchPredictionJobRequest; + return GetNasJobRequest; })(); - v1.ListBatchPredictionJobsRequest = (function() { + v1.ListNasJobsRequest = (function() { /** - * Properties of a ListBatchPredictionJobsRequest. + * Properties of a ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListBatchPredictionJobsRequest - * @property {string|null} [parent] ListBatchPredictionJobsRequest parent - * @property {string|null} [filter] ListBatchPredictionJobsRequest filter - * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize - * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask + * @interface IListNasJobsRequest + * @property {string|null} [parent] ListNasJobsRequest parent + * @property {string|null} [filter] ListNasJobsRequest filter + * @property {number|null} [pageSize] ListNasJobsRequest pageSize + * @property {string|null} [pageToken] ListNasJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListNasJobsRequest readMask */ /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListBatchPredictionJobsRequest. - * @implements IListBatchPredictionJobsRequest + * @classdesc Represents a ListNasJobsRequest. + * @implements IListNasJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest=} [properties] Properties to set */ - function ListBatchPredictionJobsRequest(properties) { + function ListNasJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81686,67 +82712,67 @@ } /** - * ListBatchPredictionJobsRequest parent. + * ListNasJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.parent = ""; + ListNasJobsRequest.prototype.parent = ""; /** - * ListBatchPredictionJobsRequest filter. + * ListNasJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.filter = ""; + ListNasJobsRequest.prototype.filter = ""; /** - * ListBatchPredictionJobsRequest pageSize. + * ListNasJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageSize = 0; + ListNasJobsRequest.prototype.pageSize = 0; /** - * ListBatchPredictionJobsRequest pageToken. + * ListNasJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageToken = ""; + ListNasJobsRequest.prototype.pageToken = ""; /** - * ListBatchPredictionJobsRequest readMask. + * ListNasJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.readMask = null; + ListNasJobsRequest.prototype.readMask = null; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new ListNasJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest instance */ - ListBatchPredictionJobsRequest.create = function create(properties) { - return new ListBatchPredictionJobsRequest(properties); + ListNasJobsRequest.create = function create(properties) { + return new ListNasJobsRequest(properties); }; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encode = function encode(message, writer) { + ListNasJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -81763,33 +82789,33 @@ }; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a ListNasJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decode = function decode(reader, length) { + ListNasJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -81822,30 +82848,30 @@ }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a ListNasJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsRequest.verify = function verify(message) { + ListNasJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -81869,17 +82895,17 @@ }; /** - * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest */ - ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest) + ListNasJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListNasJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -81890,22 +82916,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest + * @param {google.cloud.aiplatform.v1.ListNasJobsRequest} message ListNasJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { + ListNasJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -81930,54 +82956,54 @@ }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this ListNasJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { + ListNasJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for ListNasJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasJobsRequest"; }; - return ListBatchPredictionJobsRequest; + return ListNasJobsRequest; })(); - v1.ListBatchPredictionJobsResponse = (function() { + v1.ListNasJobsResponse = (function() { /** - * Properties of a ListBatchPredictionJobsResponse. + * Properties of a ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListBatchPredictionJobsResponse - * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs - * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken + * @interface IListNasJobsResponse + * @property {Array.|null} [nasJobs] ListNasJobsResponse nasJobs + * @property {string|null} [nextPageToken] ListNasJobsResponse nextPageToken */ /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListBatchPredictionJobsResponse. - * @implements IListBatchPredictionJobsResponse + * @classdesc Represents a ListNasJobsResponse. + * @implements IListNasJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse=} [properties] Properties to set */ - function ListBatchPredictionJobsResponse(properties) { - this.batchPredictionJobs = []; + function ListNasJobsResponse(properties) { + this.nasJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81985,88 +83011,88 @@ } /** - * ListBatchPredictionJobsResponse batchPredictionJobs. - * @member {Array.} batchPredictionJobs - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * ListNasJobsResponse nasJobs. + * @member {Array.} nasJobs + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; + ListNasJobsResponse.prototype.nasJobs = $util.emptyArray; /** - * ListBatchPredictionJobsResponse nextPageToken. + * ListNasJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + ListNasJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListNasJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse instance */ - ListBatchPredictionJobsResponse.create = function create(properties) { - return new ListBatchPredictionJobsResponse(properties); + ListNasJobsResponse.create = function create(properties) { + return new ListNasJobsResponse(properties); }; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encode = function encode(message, writer) { + ListNasJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) - for (var i = 0; i < message.batchPredictionJobs.length; ++i) - $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nasJobs != null && message.nasJobs.length) + for (var i = 0; i < message.nasJobs.length; ++i) + $root.google.cloud.aiplatform.v1.NasJob.encode(message.nasJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListNasJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decode = function decode(reader, length) { + ListNasJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) - message.batchPredictionJobs = []; - message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32())); + if (!(message.nasJobs && message.nasJobs.length)) + message.nasJobs = []; + message.nasJobs.push($root.google.cloud.aiplatform.v1.NasJob.decode(reader, reader.uint32())); break; } case 2: { @@ -82082,39 +83108,39 @@ }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListNasJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsResponse.verify = function verify(message) { + ListNasJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { - if (!Array.isArray(message.batchPredictionJobs)) - return "batchPredictionJobs: array expected"; - for (var i = 0; i < message.batchPredictionJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); + if (message.nasJobs != null && message.hasOwnProperty("nasJobs")) { + if (!Array.isArray(message.nasJobs)) + return "nasJobs: array expected"; + for (var i = 0; i < message.nasJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasJob.verify(message.nasJobs[i]); if (error) - return "batchPredictionJobs." + error; + return "nasJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -82124,25 +83150,25 @@ }; /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse */ - ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse) + ListNasJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); - if (object.batchPredictionJobs) { - if (!Array.isArray(object.batchPredictionJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); - message.batchPredictionJobs = []; - for (var i = 0; i < object.batchPredictionJobs.length; ++i) { - if (typeof object.batchPredictionJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); - message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.ListNasJobsResponse(); + if (object.nasJobs) { + if (!Array.isArray(object.nasJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsResponse.nasJobs: array expected"); + message.nasJobs = []; + for (var i = 0; i < object.nasJobs.length; ++i) { + if (typeof object.nasJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsResponse.nasJobs: object expected"); + message.nasJobs[i] = $root.google.cloud.aiplatform.v1.NasJob.fromObject(object.nasJobs[i]); } } if (object.nextPageToken != null) @@ -82151,26 +83177,26 @@ }; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse + * @param {google.cloud.aiplatform.v1.ListNasJobsResponse} message ListNasJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { + ListNasJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.batchPredictionJobs = []; + object.nasJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.batchPredictionJobs && message.batchPredictionJobs.length) { - object.batchPredictionJobs = []; - for (var j = 0; j < message.batchPredictionJobs.length; ++j) - object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); + if (message.nasJobs && message.nasJobs.length) { + object.nasJobs = []; + for (var j = 0; j < message.nasJobs.length; ++j) + object.nasJobs[j] = $root.google.cloud.aiplatform.v1.NasJob.toObject(message.nasJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -82178,52 +83204,52 @@ }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListNasJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { + ListNasJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListNasJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasJobsResponse"; }; - return ListBatchPredictionJobsResponse; + return ListNasJobsResponse; })(); - v1.DeleteBatchPredictionJobRequest = (function() { + v1.DeleteNasJobRequest = (function() { /** - * Properties of a DeleteBatchPredictionJobRequest. + * Properties of a DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteBatchPredictionJobRequest - * @property {string|null} [name] DeleteBatchPredictionJobRequest name + * @interface IDeleteNasJobRequest + * @property {string|null} [name] DeleteNasJobRequest name */ /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteBatchPredictionJobRequest. - * @implements IDeleteBatchPredictionJobRequest + * @classdesc Represents a DeleteNasJobRequest. + * @implements IDeleteNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest=} [properties] Properties to set */ - function DeleteBatchPredictionJobRequest(properties) { + function DeleteNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82231,35 +83257,35 @@ } /** - * DeleteBatchPredictionJobRequest name. + * DeleteNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @instance */ - DeleteBatchPredictionJobRequest.prototype.name = ""; + DeleteNasJobRequest.prototype.name = ""; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new DeleteNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest instance */ - DeleteBatchPredictionJobRequest.create = function create(properties) { - return new DeleteBatchPredictionJobRequest(properties); + DeleteNasJobRequest.create = function create(properties) { + return new DeleteNasJobRequest(properties); }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { + DeleteNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -82268,33 +83294,33 @@ }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { + DeleteNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -82311,30 +83337,30 @@ }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a DeleteNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteBatchPredictionJobRequest.verify = function verify(message) { + DeleteNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -82344,32 +83370,32 @@ }; /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest */ - DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest) + DeleteNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.DeleteNasJobRequest} message DeleteNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { + DeleteNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -82381,52 +83407,52 @@ }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this DeleteNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @instance * @returns {Object.} JSON object */ - DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + DeleteNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for DeleteNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteNasJobRequest"; }; - return DeleteBatchPredictionJobRequest; + return DeleteNasJobRequest; })(); - v1.CancelBatchPredictionJobRequest = (function() { + v1.CancelNasJobRequest = (function() { /** - * Properties of a CancelBatchPredictionJobRequest. + * Properties of a CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelBatchPredictionJobRequest - * @property {string|null} [name] CancelBatchPredictionJobRequest name + * @interface ICancelNasJobRequest + * @property {string|null} [name] CancelNasJobRequest name */ /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelBatchPredictionJobRequest. - * @implements ICancelBatchPredictionJobRequest + * @classdesc Represents a CancelNasJobRequest. + * @implements ICancelNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest=} [properties] Properties to set */ - function CancelBatchPredictionJobRequest(properties) { + function CancelNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82434,35 +83460,35 @@ } /** - * CancelBatchPredictionJobRequest name. + * CancelNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @instance */ - CancelBatchPredictionJobRequest.prototype.name = ""; + CancelNasJobRequest.prototype.name = ""; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new CancelNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest instance */ - CancelBatchPredictionJobRequest.create = function create(properties) { - return new CancelBatchPredictionJobRequest(properties); + CancelNasJobRequest.create = function create(properties) { + return new CancelNasJobRequest(properties); }; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encode = function encode(message, writer) { + CancelNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -82471,33 +83497,33 @@ }; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CancelNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decode = function decode(reader, length) { + CancelNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -82514,30 +83540,30 @@ }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a CancelNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelBatchPredictionJobRequest.verify = function verify(message) { + CancelNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -82547,32 +83573,32 @@ }; /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest */ - CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest) + CancelNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CancelNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.CancelNasJobRequest} message CancelNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { + CancelNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -82584,53 +83610,52 @@ }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this CancelNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @instance * @returns {Object.} JSON object */ - CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + CancelNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for CancelNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelNasJobRequest"; }; - return CancelBatchPredictionJobRequest; + return CancelNasJobRequest; })(); - v1.CreateModelDeploymentMonitoringJobRequest = (function() { + v1.GetNasTrialDetailRequest = (function() { /** - * Properties of a CreateModelDeploymentMonitoringJobRequest. + * Properties of a GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateModelDeploymentMonitoringJobRequest - * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent - * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @interface IGetNasTrialDetailRequest + * @property {string|null} [name] GetNasTrialDetailRequest name */ /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. - * @implements ICreateModelDeploymentMonitoringJobRequest + * @classdesc Represents a GetNasTrialDetailRequest. + * @implements IGetNasTrialDetailRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest=} [properties] Properties to set */ - function CreateModelDeploymentMonitoringJobRequest(properties) { + function GetNasTrialDetailRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82638,89 +83663,75 @@ } /** - * CreateModelDeploymentMonitoringJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @instance - */ - CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; - - /** - * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * GetNasTrialDetailRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @instance */ - CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + GetNasTrialDetailRequest.prototype.name = ""; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetNasTrialDetailRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest instance */ - CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new CreateModelDeploymentMonitoringJobRequest(properties); + GetNasTrialDetailRequest.create = function create(properties) { + return new GetNasTrialDetailRequest(properties); }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + GetNasTrialDetailRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNasTrialDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + GetNasTrialDetailRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -82732,144 +83743,124 @@ }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetNasTrialDetailRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a GetNasTrialDetailRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + GetNasTrialDetailRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest */ - CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest) + GetNasTrialDetailRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } + var message = new $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} message GetNasTrialDetailRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + GetNasTrialDetailRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelDeploymentMonitoringJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetNasTrialDetailRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @instance * @returns {Object.} JSON object */ - CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + GetNasTrialDetailRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for GetNasTrialDetailRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasTrialDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetNasTrialDetailRequest"; }; - return CreateModelDeploymentMonitoringJobRequest; + return GetNasTrialDetailRequest; })(); - v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { + v1.ListNasTrialDetailsRequest = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Properties of a ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob - * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId - * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName - * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives - * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize - * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken - * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime - * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime + * @interface IListNasTrialDetailsRequest + * @property {string|null} [parent] ListNasTrialDetailsRequest parent + * @property {number|null} [pageSize] ListNasTrialDetailsRequest pageSize + * @property {string|null} [pageToken] ListNasTrialDetailsRequest pageToken */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a ListNasTrialDetailsRequest. + * @implements IListNasTrialDetailsRequest * @constructor - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { - this.objectives = []; + function ListNasTrialDetailsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82877,178 +83868,105 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. - * @member {Array.} objectives - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ListNasTrialDetailsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + ListNasTrialDetailsRequest.prototype.parent = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * ListNasTrialDetailsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + ListNasTrialDetailsRequest.prototype.pageSize = 0; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * ListNasTrialDetailsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + ListNasTrialDetailsRequest.prototype.pageToken = ""; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); + ListNasTrialDetailsRequest.create = function create(properties) { + return new ListNasTrialDetailsRequest(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { + ListNasTrialDetailsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); - if (message.objectives != null && message.objectives.length) - for (var i = 0; i < message.objectives.length; ++i) - $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasTrialDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { + ListNasTrialDetailsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.deployedModelId = reader.string(); - break; - } - case 3: { - message.featureDisplayName = reader.string(); - break; - } - case 4: { - if (!(message.objectives && message.objectives.length)) - message.objectives = []; - message.objectives.push($root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); - break; - } - case 5: { message.pageSize = reader.int32(); break; } - case 6: { + case 3: { message.pageToken = reader.string(); break; } - case 7: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -83058,470 +83976,388 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasTrialDetailsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a ListNasTrialDetailsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { + ListNasTrialDetailsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - if (!$util.isString(message.modelDeploymentMonitoringJob)) - return "modelDeploymentMonitoringJob: string expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.objectives != null && message.hasOwnProperty("objectives")) { - if (!Array.isArray(message.objectives)) - return "objectives: array expected"; - for (var i = 0; i < message.objectives.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); - if (error) - return "objectives." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + ListNasTrialDetailsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); - if (object.modelDeploymentMonitoringJob != null) - message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.objectives) { - if (!Array.isArray(object.objectives)) - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); - message.objectives = []; - for (var i = 0; i < object.objectives.length; ++i) { - if (typeof object.objectives[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); - message.objectives[i] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest(); + if (object.parent != null) + message.parent = String(object.parent); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} message ListNasTrialDetailsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { + ListNasTrialDetailsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.objectives = []; if (options.defaults) { - object.modelDeploymentMonitoringJob = ""; - object.deployedModelId = ""; - object.featureDisplayName = ""; + object.parent = ""; object.pageSize = 0; object.pageToken = ""; - object.startTime = null; - object.endTime = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.objectives && message.objectives.length) { - object.objectives = []; - for (var j = 0; j < message.objectives.length; ++j) - object.objectives[j] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this ListNasTrialDetailsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { + ListNasTrialDetailsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for ListNasTrialDetailsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasTrialDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasTrialDetailsRequest"; }; - SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { - - /** - * Properties of a StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @interface IStatsAnomaliesObjective - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type - * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount - */ + return ListNasTrialDetailsRequest; + })(); - /** - * Constructs a new StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @classdesc Represents a StatsAnomaliesObjective. - * @implements IStatsAnomaliesObjective - * @constructor - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - */ - function StatsAnomaliesObjective(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]]; - } + v1.ListNasTrialDetailsResponse = (function() { - /** - * StatsAnomaliesObjective type. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} type - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.type = 0; + /** + * Properties of a ListNasTrialDetailsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListNasTrialDetailsResponse + * @property {Array.|null} [nasTrialDetails] ListNasTrialDetailsResponse nasTrialDetails + * @property {string|null} [nextPageToken] ListNasTrialDetailsResponse nextPageToken + */ - /** - * StatsAnomaliesObjective topFeatureCount. - * @member {number} topFeatureCount - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.topFeatureCount = 0; + /** + * Constructs a new ListNasTrialDetailsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListNasTrialDetailsResponse. + * @implements IListNasTrialDetailsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse=} [properties] Properties to set + */ + function ListNasTrialDetailsResponse(properties) { + this.nasTrialDetails = []; + 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]]; + } - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance - */ - StatsAnomaliesObjective.create = function create(properties) { - return new StatsAnomaliesObjective(properties); - }; + /** + * ListNasTrialDetailsResponse nasTrialDetails. + * @member {Array.} nasTrialDetails + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @instance + */ + ListNasTrialDetailsResponse.prototype.nasTrialDetails = $util.emptyArray; - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); - return writer; - }; + /** + * ListNasTrialDetailsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @instance + */ + ListNasTrialDetailsResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListNasTrialDetailsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse instance + */ + ListNasTrialDetailsResponse.create = function create(properties) { + return new ListNasTrialDetailsResponse(properties); + }; - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 4: { - message.topFeatureCount = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNasTrialDetailsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nasTrialDetails != null && message.nasTrialDetails.length) + for (var i = 0; i < message.nasTrialDetails.length; ++i) + $root.google.cloud.aiplatform.v1.NasTrialDetail.encode(message.nasTrialDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNasTrialDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a StatsAnomaliesObjective message. - * @function verify - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StatsAnomaliesObjective.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: + /** + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNasTrialDetailsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.nasTrialDetails && message.nasTrialDetails.length)) + message.nasTrialDetails = []; + message.nasTrialDetails.push($root.google.cloud.aiplatform.v1.NasTrialDetail.decode(reader, reader.uint32())); break; } - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - if (!$util.isInteger(message.topFeatureCount)) - return "topFeatureCount: integer expected"; - return null; - }; - - /** - * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - */ - StatsAnomaliesObjective.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) - return object; - var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; + case 2: { + message.nextPageToken = reader.string(); break; } - break; - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.type = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.type = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.type = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.type = 4; + default: + reader.skipType(tag & 7); break; } - if (object.topFeatureCount != null) - message.topFeatureCount = object.topFeatureCount | 0; - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StatsAnomaliesObjective.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.topFeatureCount = 0; + /** + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNasTrialDetailsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListNasTrialDetailsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListNasTrialDetailsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nasTrialDetails != null && message.hasOwnProperty("nasTrialDetails")) { + if (!Array.isArray(message.nasTrialDetails)) + return "nasTrialDetails: array expected"; + for (var i = 0; i < message.nasTrialDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasTrialDetail.verify(message.nasTrialDetails[i]); + if (error) + return "nasTrialDetails." + error; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - object.topFeatureCount = message.topFeatureCount; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse + */ + ListNasTrialDetailsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse(); + if (object.nasTrialDetails) { + if (!Array.isArray(object.nasTrialDetails)) + throw TypeError(".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.nasTrialDetails: array expected"); + message.nasTrialDetails = []; + for (var i = 0; i < object.nasTrialDetails.length; ++i) { + if (typeof object.nasTrialDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.nasTrialDetails: object expected"); + message.nasTrialDetails[i] = $root.google.cloud.aiplatform.v1.NasTrialDetail.fromObject(object.nasTrialDetails[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; - /** - * Converts this StatsAnomaliesObjective to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - * @returns {Object.} JSON object - */ - StatsAnomaliesObjective.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} message ListNasTrialDetailsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListNasTrialDetailsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.nasTrialDetails = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.nasTrialDetails && message.nasTrialDetails.length) { + object.nasTrialDetails = []; + for (var j = 0; j < message.nasTrialDetails.length; ++j) + object.nasTrialDetails[j] = $root.google.cloud.aiplatform.v1.NasTrialDetail.toObject(message.nasTrialDetails[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - /** - * Gets the default type url for StatsAnomaliesObjective - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; - }; + /** + * Converts this ListNasTrialDetailsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @instance + * @returns {Object.} JSON object + */ + ListNasTrialDetailsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return StatsAnomaliesObjective; - })(); + /** + * Gets the default type url for ListNasTrialDetailsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNasTrialDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasTrialDetailsResponse"; + }; - return SearchModelDeploymentMonitoringStatsAnomaliesRequest; + return ListNasTrialDetailsResponse; })(); - v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { + v1.CreateBatchPredictionJobRequest = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Properties of a CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse - * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats - * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken + * @interface ICreateBatchPredictionJobRequest + * @property {string|null} [parent] CreateBatchPredictionJobRequest parent + * @property {google.cloud.aiplatform.v1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @classdesc Represents a CreateBatchPredictionJobRequest. + * @implements ICreateBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { - this.monitoringStats = []; + function CreateBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83529,92 +84365,89 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. - * @member {Array.} monitoringStats - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * CreateBatchPredictionJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; + CreateBatchPredictionJobRequest.prototype.parent = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * CreateBatchPredictionJobRequest batchPredictionJob. + * @member {google.cloud.aiplatform.v1.IBatchPredictionJob|null|undefined} batchPredictionJob + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); + CreateBatchPredictionJobRequest.create = function create(properties) { + return new CreateBatchPredictionJobRequest(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { + CreateBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitoringStats != null && message.monitoringStats.length) - for (var i = 0; i < message.monitoringStats.length; ++i) - $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) + $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { + CreateBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.monitoringStats && message.monitoringStats.length)) - message.monitoringStats = []; - message.monitoringStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32()); break; } default: @@ -83626,148 +84459,136 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { + CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a CreateBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { + CreateBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { - if (!Array.isArray(message.monitoringStats)) - return "monitoringStats: array expected"; - for (var i = 0; i < message.monitoringStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); - if (error) - return "monitoringStats." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { + var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJob); + if (error) + return "batchPredictionJob." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); - if (object.monitoringStats) { - if (!Array.isArray(object.monitoringStats)) - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); - message.monitoringStats = []; - for (var i = 0; i < object.monitoringStats.length; ++i) { - if (typeof object.monitoringStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); - message.monitoringStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.batchPredictionJob != null) { + if (typeof object.batchPredictionJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJob); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @param {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { + CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.monitoringStats = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.monitoringStats && message.monitoringStats.length) { - object.monitoringStats = []; - for (var j = 0; j < message.monitoringStats.length; ++j) - object.monitoringStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); + if (options.defaults) { + object.parent = ""; + object.batchPredictionJob = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) + object.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJob, options); return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { + CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for CreateBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest"; }; - return SearchModelDeploymentMonitoringStatsAnomaliesResponse; + return CreateBatchPredictionJobRequest; })(); - v1.GetModelDeploymentMonitoringJobRequest = (function() { + v1.GetBatchPredictionJobRequest = (function() { /** - * Properties of a GetModelDeploymentMonitoringJobRequest. + * Properties of a GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelDeploymentMonitoringJobRequest - * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name + * @interface IGetBatchPredictionJobRequest + * @property {string|null} [name] GetBatchPredictionJobRequest name */ /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. - * @implements IGetModelDeploymentMonitoringJobRequest + * @classdesc Represents a GetBatchPredictionJobRequest. + * @implements IGetBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set */ - function GetModelDeploymentMonitoringJobRequest(properties) { + function GetBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83775,35 +84596,35 @@ } /** - * GetModelDeploymentMonitoringJobRequest name. + * GetBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @instance */ - GetModelDeploymentMonitoringJobRequest.prototype.name = ""; + GetBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance */ - GetModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new GetModelDeploymentMonitoringJobRequest(properties); + GetBatchPredictionJobRequest.create = function create(properties) { + return new GetBatchPredictionJobRequest(properties); }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + GetBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -83812,33 +84633,33 @@ }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + GetBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -83855,30 +84676,30 @@ }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a GetBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { + GetBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -83888,32 +84709,32 @@ }; /** - * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest */ - GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest) + GetBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + GetBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -83925,56 +84746,56 @@ }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for GetBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetBatchPredictionJobRequest"; }; - return GetModelDeploymentMonitoringJobRequest; + return GetBatchPredictionJobRequest; })(); - v1.ListModelDeploymentMonitoringJobsRequest = (function() { + v1.ListBatchPredictionJobsRequest = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsRequest. + * Properties of a ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelDeploymentMonitoringJobsRequest - * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent - * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter - * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize - * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask + * @interface IListBatchPredictionJobsRequest + * @property {string|null} [parent] ListBatchPredictionJobsRequest parent + * @property {string|null} [filter] ListBatchPredictionJobsRequest filter + * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize + * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask */ /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. - * @implements IListModelDeploymentMonitoringJobsRequest + * @classdesc Represents a ListBatchPredictionJobsRequest. + * @implements IListBatchPredictionJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsRequest(properties) { + function ListBatchPredictionJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83982,67 +84803,67 @@ } /** - * ListModelDeploymentMonitoringJobsRequest parent. + * ListBatchPredictionJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; + ListBatchPredictionJobsRequest.prototype.parent = ""; /** - * ListModelDeploymentMonitoringJobsRequest filter. + * ListBatchPredictionJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; + ListBatchPredictionJobsRequest.prototype.filter = ""; /** - * ListModelDeploymentMonitoringJobsRequest pageSize. + * ListBatchPredictionJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; + ListBatchPredictionJobsRequest.prototype.pageSize = 0; /** - * ListModelDeploymentMonitoringJobsRequest pageToken. + * ListBatchPredictionJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; + ListBatchPredictionJobsRequest.prototype.pageToken = ""; /** - * ListModelDeploymentMonitoringJobsRequest readMask. + * ListBatchPredictionJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + ListBatchPredictionJobsRequest.prototype.readMask = null; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance */ - ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsRequest(properties); + ListBatchPredictionJobsRequest.create = function create(properties) { + return new ListBatchPredictionJobsRequest(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -84059,33 +84880,33 @@ }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84118,30 +84939,30 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a ListBatchPredictionJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { + ListBatchPredictionJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -84165,17 +84986,17 @@ }; /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest */ - ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest) + ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -84186,22 +85007,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest + * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -84226,54 +85047,54 @@ }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for ListBatchPredictionJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest"; }; - return ListModelDeploymentMonitoringJobsRequest; + return ListBatchPredictionJobsRequest; })(); - v1.ListModelDeploymentMonitoringJobsResponse = (function() { + v1.ListBatchPredictionJobsResponse = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsResponse. + * Properties of a ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelDeploymentMonitoringJobsResponse - * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs - * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + * @interface IListBatchPredictionJobsResponse + * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs + * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken */ /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. - * @implements IListModelDeploymentMonitoringJobsResponse + * @classdesc Represents a ListBatchPredictionJobsResponse. + * @implements IListBatchPredictionJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsResponse(properties) { - this.modelDeploymentMonitoringJobs = []; + function ListBatchPredictionJobsResponse(properties) { + this.batchPredictionJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84281,88 +85102,88 @@ } /** - * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. - * @member {Array.} modelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * ListBatchPredictionJobsResponse batchPredictionJobs. + * @member {Array.} batchPredictionJobs + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; + ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; /** - * ListModelDeploymentMonitoringJobsResponse nextPageToken. + * ListBatchPredictionJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance */ - ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsResponse(properties); + ListBatchPredictionJobsResponse.create = function create(properties) { + return new ListBatchPredictionJobsResponse(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { + ListBatchPredictionJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) + for (var i = 0; i < message.batchPredictionJobs.length; ++i) + $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { + ListBatchPredictionJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) - message.modelDeploymentMonitoringJobs = []; - message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); + if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) + message.batchPredictionJobs = []; + message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32())); break; } case 2: { @@ -84378,39 +85199,39 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a ListBatchPredictionJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { + ListBatchPredictionJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { - if (!Array.isArray(message.modelDeploymentMonitoringJobs)) - return "modelDeploymentMonitoringJobs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); + if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { + if (!Array.isArray(message.batchPredictionJobs)) + return "batchPredictionJobs: array expected"; + for (var i = 0; i < message.batchPredictionJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); if (error) - return "modelDeploymentMonitoringJobs." + error; + return "batchPredictionJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -84420,25 +85241,25 @@ }; /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse */ - ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse) + ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); - if (object.modelDeploymentMonitoringJobs) { - if (!Array.isArray(object.modelDeploymentMonitoringJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); - message.modelDeploymentMonitoringJobs = []; - for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { - if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); - message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); + if (object.batchPredictionJobs) { + if (!Array.isArray(object.batchPredictionJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); + message.batchPredictionJobs = []; + for (var i = 0; i < object.batchPredictionJobs.length; ++i) { + if (typeof object.batchPredictionJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); + message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); } } if (object.nextPageToken != null) @@ -84447,26 +85268,26 @@ }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { + ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.modelDeploymentMonitoringJobs = []; + object.batchPredictionJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { - object.modelDeploymentMonitoringJobs = []; - for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) - object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); + if (message.batchPredictionJobs && message.batchPredictionJobs.length) { + object.batchPredictionJobs = []; + for (var j = 0; j < message.batchPredictionJobs.length; ++j) + object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -84474,53 +85295,52 @@ }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for ListBatchPredictionJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse"; }; - return ListModelDeploymentMonitoringJobsResponse; + return ListBatchPredictionJobsResponse; })(); - v1.UpdateModelDeploymentMonitoringJobRequest = (function() { + v1.DeleteBatchPredictionJobRequest = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobRequest. + * Properties of a DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateModelDeploymentMonitoringJobRequest - * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask + * @interface IDeleteBatchPredictionJobRequest + * @property {string|null} [name] DeleteBatchPredictionJobRequest name */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. - * @implements IUpdateModelDeploymentMonitoringJobRequest + * @classdesc Represents a DeleteBatchPredictionJobRequest. + * @implements IDeleteBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobRequest(properties) { + function DeleteBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84528,89 +85348,75 @@ } /** - * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest - * @instance - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; - - /** - * UpdateModelDeploymentMonitoringJobRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * DeleteBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @instance */ - UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + DeleteBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance */ - UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobRequest(properties); + DeleteBatchPredictionJobRequest.create = function create(properties) { + return new DeleteBatchPredictionJobRequest(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -84622,141 +85428,122 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + DeleteBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest */ - UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest) + DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.modelDeploymentMonitoringJob = null; - object.updateMask = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest"; }; - return UpdateModelDeploymentMonitoringJobRequest; + return DeleteBatchPredictionJobRequest; })(); - v1.DeleteModelDeploymentMonitoringJobRequest = (function() { + v1.CancelBatchPredictionJobRequest = (function() { /** - * Properties of a DeleteModelDeploymentMonitoringJobRequest. + * Properties of a CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteModelDeploymentMonitoringJobRequest - * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name + * @interface ICancelBatchPredictionJobRequest + * @property {string|null} [name] CancelBatchPredictionJobRequest name */ /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. - * @implements IDeleteModelDeploymentMonitoringJobRequest + * @classdesc Represents a CancelBatchPredictionJobRequest. + * @implements ICancelBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set */ - function DeleteModelDeploymentMonitoringJobRequest(properties) { + function CancelBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84764,35 +85551,35 @@ } /** - * DeleteModelDeploymentMonitoringJobRequest name. + * CancelBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @instance */ - DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; + CancelBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance */ - DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new DeleteModelDeploymentMonitoringJobRequest(properties); + CancelBatchPredictionJobRequest.create = function create(properties) { + return new CancelBatchPredictionJobRequest(properties); }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + CancelBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -84801,33 +85588,33 @@ }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + CancelBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84844,30 +85631,30 @@ }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a CancelBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { + CancelBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -84877,32 +85664,32 @@ }; /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest */ - DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest) + CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -84914,52 +85701,53 @@ }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * Gets the default type url for CancelBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest"; }; - return DeleteModelDeploymentMonitoringJobRequest; + return CancelBatchPredictionJobRequest; })(); - v1.PauseModelDeploymentMonitoringJobRequest = (function() { + v1.CreateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a PauseModelDeploymentMonitoringJobRequest. + * Properties of a CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPauseModelDeploymentMonitoringJobRequest - * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name - */ - + * @interface ICreateModelDeploymentMonitoringJobRequest + * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent + * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + */ + /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. - * @implements IPauseModelDeploymentMonitoringJobRequest + * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. + * @implements ICreateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function PauseModelDeploymentMonitoringJobRequest(properties) { + function CreateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84967,75 +85755,89 @@ } /** - * PauseModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * CreateModelDeploymentMonitoringJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @instance */ - PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; + CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @instance + */ + CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + + /** + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance */ - PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new PauseModelDeploymentMonitoringJobRequest(properties); + CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new CreateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; } default: @@ -85047,122 +85849,144 @@ }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { + CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (error) + return "modelDeploymentMonitoringJob." + error; + } return null; }; /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest */ - PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest) + CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } return message; }; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.modelDeploymentMonitoringJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); return object; }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest"; }; - return PauseModelDeploymentMonitoringJobRequest; + return CreateModelDeploymentMonitoringJobRequest; })(); - v1.ResumeModelDeploymentMonitoringJobRequest = (function() { + v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { /** - * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IResumeModelDeploymentMonitoringJobRequest - * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob + * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId + * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName + * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives + * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize + * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken + * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime + * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. - * @implements IResumeModelDeploymentMonitoringJobRequest + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set */ - function ResumeModelDeploymentMonitoringJobRequest(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { + this.objectives = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85170,75 +85994,176 @@ } /** - * ResumeModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. + * @member {Array.} objectives + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new ResumeModelDeploymentMonitoringJobRequest(properties); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); }; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); + if (message.objectives != null && message.objectives.length) + for (var i = 0; i < message.objectives.length; ++i) + $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelDeploymentMonitoringJob = reader.string(); + break; + } + case 2: { + message.deployedModelId = reader.string(); + break; + } + case 3: { + message.featureDisplayName = reader.string(); + break; + } + case 4: { + if (!(message.objectives && message.objectives.length)) + message.objectives = []; + message.objectives.push($root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); + break; + } + case 5: { + message.pageSize = reader.int32(); + break; + } + case 6: { + message.pageToken = reader.string(); + break; + } + case 7: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -85250,122 +86175,470 @@ }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + if (!$util.isString(message.modelDeploymentMonitoringJob)) + return "modelDeploymentMonitoringJob: string expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.objectives != null && message.hasOwnProperty("objectives")) { + if (!Array.isArray(message.objectives)) + return "objectives: array expected"; + for (var i = 0; i < message.objectives.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); + if (error) + return "objectives." + error; + } + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } return null; }; /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest) + SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + if (object.modelDeploymentMonitoringJob != null) + message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.objectives) { + if (!Array.isArray(object.objectives)) + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); + message.objectives = []; + for (var i = 0; i < object.objectives.length; ++i) { + if (typeof object.objectives[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); + message.objectives[i] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); + } + } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } return message; }; /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.objectives = []; + if (options.defaults) { + object.modelDeploymentMonitoringJob = ""; + object.deployedModelId = ""; + object.featureDisplayName = ""; + object.pageSize = 0; + object.pageToken = ""; + object.startTime = null; + object.endTime = null; + } + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.objectives && message.objectives.length) { + object.objectives = []; + for (var j = 0; j < message.objectives.length; ++j) + object.objectives[j] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance * @returns {Object.} JSON object */ - ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; }; - return ResumeModelDeploymentMonitoringJobRequest; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { + + /** + * Properties of a StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @interface IStatsAnomaliesObjective + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type + * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount + */ + + /** + * Constructs a new StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a StatsAnomaliesObjective. + * @implements IStatsAnomaliesObjective + * @constructor + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + */ + function StatsAnomaliesObjective(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]]; + } + + /** + * StatsAnomaliesObjective type. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} type + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.type = 0; + + /** + * StatsAnomaliesObjective topFeatureCount. + * @member {number} topFeatureCount + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.topFeatureCount = 0; + + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance + */ + StatsAnomaliesObjective.create = function create(properties) { + return new StatsAnomaliesObjective(properties); + }; + + /** + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); + return writer; + }; + + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 4: { + message.topFeatureCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StatsAnomaliesObjective message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StatsAnomaliesObjective.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + if (!$util.isInteger(message.topFeatureCount)) + return "topFeatureCount: integer expected"; + return null; + }; + + /** + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + */ + StatsAnomaliesObjective.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + return object; + var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.type = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.type = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.type = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.type = 4; + break; + } + if (object.topFeatureCount != null) + message.topFeatureCount = object.topFeatureCount | 0; + return message; + }; + + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StatsAnomaliesObjective.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.topFeatureCount = 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + object.topFeatureCount = message.topFeatureCount; + return object; + }; + + /** + * Converts this StatsAnomaliesObjective to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + * @returns {Object.} JSON object + */ + StatsAnomaliesObjective.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StatsAnomaliesObjective + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; + }; + + return StatsAnomaliesObjective; + })(); + + return SearchModelDeploymentMonitoringStatsAnomaliesRequest; })(); - v1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { + v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats + * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { + this.monitoringStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85373,75 +86646,92 @@ } /** - * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); + SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.monitoringStats != null && message.monitoringStats.length) + for (var i = 0; i < message.monitoringStats.length; ++i) + $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.monitoringStats && message.monitoringStats.length)) + message.monitoringStats = []; + message.monitoringStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -85453,172 +86743,148 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; + if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { + if (!Array.isArray(message.monitoringStats)) + return "monitoringStats: array expected"; + for (var i = 0; i < message.monitoringStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); + if (error) + return "monitoringStats." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata) + SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + if (object.monitoringStats) { + if (!Array.isArray(object.monitoringStats)) + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); + message.monitoringStats = []; + for (var i = 0; i < object.monitoringStats.length; ++i) { + if (typeof object.monitoringStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); + message.monitoringStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.monitoringStats = []; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.nextPageToken = ""; + if (message.monitoringStats && message.monitoringStats.length) { + object.monitoringStats = []; + for (var j = 0; j < message.monitoringStats.length; ++j) + object.monitoringStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; }; - return UpdateModelDeploymentMonitoringJobOperationMetadata; - })(); - - /** - * ModelDeploymentMonitoringObjectiveType enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType - * @enum {number} - * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value - * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value - * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value - * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value - * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value - */ - v1.ModelDeploymentMonitoringObjectiveType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; - values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; - values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; - values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; - return values; + return SearchModelDeploymentMonitoringStatsAnomaliesResponse; })(); - v1.ModelDeploymentMonitoringJob = (function() { + v1.GetModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringJob. + * Properties of a GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringJob - * @property {string|null} [name] ModelDeploymentMonitoringJob name - * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName - * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint - * @property {google.cloud.aiplatform.v1.JobState|null} [state] ModelDeploymentMonitoringJob state - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata - * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs - * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig - * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy - * @property {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig - * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri - * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance - * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri - * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables - * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl - * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels - * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime - * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec - * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs - * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error + * @interface IGetModelDeploymentMonitoringJobRequest + * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringJob. - * @implements IModelDeploymentMonitoringJob + * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. + * @implements IGetModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringJob(properties) { - this.modelDeploymentMonitoringObjectiveConfigs = []; - this.bigqueryTables = []; - this.labels = {}; + function GetModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85626,409 +86892,338 @@ } /** - * ModelDeploymentMonitoringJob name. + * GetModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.name = ""; + GetModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * ModelDeploymentMonitoringJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringJob.prototype.displayName = ""; + GetModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new GetModelDeploymentMonitoringJobRequest(properties); + }; /** - * ModelDeploymentMonitoringJob endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.endpoint = ""; - - /** - * ModelDeploymentMonitoringJob state. - * @member {google.cloud.aiplatform.v1.JobState} state - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.state = 0; - - /** - * ModelDeploymentMonitoringJob scheduleState. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.scheduleState = 0; - - /** - * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; + GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. - * @member {Array.} modelDeploymentMonitoringObjectiveConfigs - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; + GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. - * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; + GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * ModelDeploymentMonitoringJob loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; + GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. - * @member {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Verifies a GetModelDeploymentMonitoringJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; + GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * ModelDeploymentMonitoringJob predictInstanceSchemaUri. - * @member {string} predictInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; + GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * ModelDeploymentMonitoringJob samplePredictInstance. - * @member {google.protobuf.IValue|null|undefined} samplePredictInstance - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; + GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. - * @member {string} analysisInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @instance + * @returns {Object.} JSON object */ - ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; + GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ModelDeploymentMonitoringJob bigqueryTables. - * @member {Array.} bigqueryTables - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; + GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest"; + }; - /** - * ModelDeploymentMonitoringJob logTtl. - * @member {google.protobuf.IDuration|null|undefined} logTtl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.logTtl = null; + return GetModelDeploymentMonitoringJobRequest; + })(); - /** - * ModelDeploymentMonitoringJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; + v1.ListModelDeploymentMonitoringJobsRequest = (function() { /** - * ModelDeploymentMonitoringJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Properties of a ListModelDeploymentMonitoringJobsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListModelDeploymentMonitoringJobsRequest + * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent + * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter + * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize + * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask */ - ModelDeploymentMonitoringJob.prototype.createTime = null; /** - * ModelDeploymentMonitoringJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. + * @implements IListModelDeploymentMonitoringJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set */ - ModelDeploymentMonitoringJob.prototype.updateTime = null; + function ListModelDeploymentMonitoringJobsRequest(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]]; + } /** - * ModelDeploymentMonitoringJob nextScheduleTime. - * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; + ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; /** - * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; + ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; /** - * ModelDeploymentMonitoringJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; + ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; /** - * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. - * @member {boolean} enableMonitoringPipelineLogs - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; + ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; /** - * ModelDeploymentMonitoringJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.error = null; + ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance */ - ModelDeploymentMonitoringJob.create = function create(properties) { - return new ModelDeploymentMonitoringJob(properties); + ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); - if (message.bigqueryTables != null && message.bigqueryTables.length) - for (var i = 0; i < message.bigqueryTables.length; ++i) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) - $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); - if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) - $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) - $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.displayName = reader.string(); + message.filter = reader.string(); break; } case 3: { - message.endpoint = reader.string(); + message.pageSize = reader.int32(); break; } case 4: { - message.state = reader.int32(); + message.pageToken = reader.string(); break; } case 5: { - message.scheduleState = reader.int32(); - break; - } - case 25: { - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) - message.modelDeploymentMonitoringObjectiveConfigs = []; - message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); - break; - } - case 7: { - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); - break; - } - case 8: { - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); - break; - } - case 15: { - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); - break; - } - case 9: { - message.predictInstanceSchemaUri = reader.string(); - break; - } - case 19: { - message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 16: { - message.analysisInstanceSchemaUri = reader.string(); - break; - } - case 10: { - if (!(message.bigqueryTables && message.bigqueryTables.length)) - message.bigqueryTables = []; - message.bigqueryTables.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); - break; - } - case 17: { - message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 11: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 12: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 20: { - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 21: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 22: { - message.enableMonitoringPipelineLogs = reader.bool(); - break; - } - case 23: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -86040,864 +87235,255 @@ }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a ListModelDeploymentMonitoringJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringJob.verify = function verify(message) { + ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - switch (message.scheduleState) { - default: - return "scheduleState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); - if (error) - return "latestMonitoringPipelineMetadata." + error; - } - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { - if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) - return "modelDeploymentMonitoringObjectiveConfigs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); - if (error) - return "modelDeploymentMonitoringObjectiveConfigs." + error; - } - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); - if (error) - return "modelDeploymentMonitoringScheduleConfig." + error; - } - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); - if (error) - return "loggingSamplingStrategy." + error; - } - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); - if (error) - return "modelMonitoringAlertConfig." + error; - } - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - if (!$util.isString(message.predictInstanceSchemaUri)) - return "predictInstanceSchemaUri: string expected"; - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { - var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); - if (error) - return "samplePredictInstance." + error; - } - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - if (!$util.isString(message.analysisInstanceSchemaUri)) - return "analysisInstanceSchemaUri: string expected"; - if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { - if (!Array.isArray(message.bigqueryTables)) - return "bigqueryTables: array expected"; - for (var i = 0; i < message.bigqueryTables.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); - if (error) - return "bigqueryTables." + error; - } - } - if (message.logTtl != null && message.hasOwnProperty("logTtl")) { - var error = $root.google.protobuf.Duration.verify(message.logTtl); - if (error) - return "logTtl." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); - if (error) - return "nextScheduleTime." + error; - } - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); - if (error) - return "statsAnomaliesBaseDirectory." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - if (typeof message.enableMonitoringPipelineLogs !== "boolean") - return "enableMonitoringPipelineLogs: boolean expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "error." + error; + return "readMask." + error; } return null; }; /** - * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest */ - ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob) + ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "JOB_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "JOB_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "JOB_STATE_PENDING": - case 2: - message.state = 2; - break; - case "JOB_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "JOB_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "JOB_STATE_FAILED": - case 5: - message.state = 5; - break; - case "JOB_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "JOB_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "JOB_STATE_PAUSED": - case 8: - message.state = 8; - break; - case "JOB_STATE_EXPIRED": - case 9: - message.state = 9; - break; - case "JOB_STATE_UPDATING": - case 10: - message.state = 10; - break; - } - switch (object.scheduleState) { - default: - if (typeof object.scheduleState === "number") { - message.scheduleState = object.scheduleState; - break; - } - break; - case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": - case 0: - message.scheduleState = 0; - break; - case "PENDING": - case 1: - message.scheduleState = 1; - break; - case "OFFLINE": - case 2: - message.scheduleState = 2; - break; - case "RUNNING": - case 3: - message.scheduleState = 3; - break; - } - if (object.latestMonitoringPipelineMetadata != null) { - if (typeof object.latestMonitoringPipelineMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); - } - if (object.modelDeploymentMonitoringObjectiveConfigs) { - if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); - message.modelDeploymentMonitoringObjectiveConfigs = []; - for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); - message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); - } - } - if (object.modelDeploymentMonitoringScheduleConfig != null) { - if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); - } - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); - } - if (object.modelMonitoringAlertConfig != null) { - if (typeof object.modelMonitoringAlertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); - } - if (object.predictInstanceSchemaUri != null) - message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); - if (object.samplePredictInstance != null) { - if (typeof object.samplePredictInstance !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); - message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); - } - if (object.analysisInstanceSchemaUri != null) - message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); - if (object.bigqueryTables) { - if (!Array.isArray(object.bigqueryTables)) - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); - message.bigqueryTables = []; - for (var i = 0; i < object.bigqueryTables.length; ++i) { - if (typeof object.bigqueryTables[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); - message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); - } - } - if (object.logTtl != null) { - if (typeof object.logTtl !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.logTtl: object expected"); - message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.nextScheduleTime != null) { - if (typeof object.nextScheduleTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); - message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); - } - if (object.statsAnomaliesBaseDirectory != null) { - if (typeof object.statsAnomaliesBaseDirectory !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } - if (object.enableMonitoringPipelineLogs != null) - message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); + var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob + * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - object.bigqueryTables = []; - } - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.endpoint = ""; - object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; - object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; - object.modelDeploymentMonitoringScheduleConfig = null; - object.loggingSamplingStrategy = null; - object.predictInstanceSchemaUri = ""; - object.createTime = null; - object.updateTime = null; - object.nextScheduleTime = null; - object.modelMonitoringAlertConfig = null; - object.analysisInstanceSchemaUri = ""; - object.logTtl = null; - object.samplePredictInstance = null; - object.statsAnomaliesBaseDirectory = null; - object.encryptionSpec = null; - object.enableMonitoringPipelineLogs = false; - object.error = null; - object.latestMonitoringPipelineMetadata = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] === undefined ? message.scheduleState : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; - if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) - object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) - object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; - if (message.bigqueryTables && message.bigqueryTables.length) { - object.bigqueryTables = []; - for (var j = 0; j < message.bigqueryTables.length; ++j) - object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); - } - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) - object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) - object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; - if (message.logTtl != null && message.hasOwnProperty("logTtl")) - object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) - object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) - object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) - object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest"; }; - ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { - - /** - * Properties of a LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @interface ILatestMonitoringPipelineMetadata - * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime - * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status - */ + return ListModelDeploymentMonitoringJobsRequest; + })(); - /** - * Constructs a new LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @classdesc Represents a LatestMonitoringPipelineMetadata. - * @implements ILatestMonitoringPipelineMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set - */ - function LatestMonitoringPipelineMetadata(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]]; - } + v1.ListModelDeploymentMonitoringJobsResponse = (function() { - /** - * LatestMonitoringPipelineMetadata runTime. - * @member {google.protobuf.ITimestamp|null|undefined} runTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - */ - LatestMonitoringPipelineMetadata.prototype.runTime = null; + /** + * Properties of a ListModelDeploymentMonitoringJobsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListModelDeploymentMonitoringJobsResponse + * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs + * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + */ - /** - * LatestMonitoringPipelineMetadata status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - */ - LatestMonitoringPipelineMetadata.prototype.status = null; - - /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance - */ - LatestMonitoringPipelineMetadata.create = function create(properties) { - return new LatestMonitoringPipelineMetadata(properties); - }; - - /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) - $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LatestMonitoringPipelineMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LatestMonitoringPipelineMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LatestMonitoringPipelineMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.runTime != null && message.hasOwnProperty("runTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.runTime); - if (error) - return "runTime." + error; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata - */ - LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); - if (object.runTime != null) { - if (typeof object.runTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); - message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.runTime = null; - object.status = null; - } - if (message.runTime != null && message.hasOwnProperty("runTime")) - object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this LatestMonitoringPipelineMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - * @returns {Object.} JSON object - */ - LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LatestMonitoringPipelineMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LatestMonitoringPipelineMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata"; - }; - - return LatestMonitoringPipelineMetadata; - })(); - - /** - * MonitoringScheduleState enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState - * @enum {number} - * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} OFFLINE=2 OFFLINE value - * @property {number} RUNNING=3 RUNNING value - */ - ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "OFFLINE"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - return values; - })(); - - return ModelDeploymentMonitoringJob; - })(); - - v1.ModelDeploymentMonitoringBigQueryTable = (function() { - - /** - * Properties of a ModelDeploymentMonitoringBigQueryTable. - * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringBigQueryTable - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType - * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath - */ - - /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. - * @implements IModelDeploymentMonitoringBigQueryTable - * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set - */ - function ModelDeploymentMonitoringBigQueryTable(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]]; - } - - /** - * ModelDeploymentMonitoringBigQueryTable logSource. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable - * @instance - */ - ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; + /** + * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. + * @implements IListModelDeploymentMonitoringJobsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + */ + function ListModelDeploymentMonitoringJobsResponse(properties) { + this.modelDeploymentMonitoringJobs = []; + 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]]; + } /** - * ModelDeploymentMonitoringBigQueryTable logType. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType} logType - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. + * @member {Array.} modelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; + ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; /** - * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. - * @member {string} bigqueryTablePath - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * ListModelDeploymentMonitoringJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; + ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance */ - ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { - return new ModelDeploymentMonitoringBigQueryTable(properties); + ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsResponse(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); - if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); - if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); + if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.logSource = reader.int32(); + if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) + message.modelDeploymentMonitoringJobs = []; + message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); break; } case 2: { - message.logType = reader.int32(); - break; - } - case 3: { - message.bigqueryTablePath = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -86909,220 +87495,149 @@ }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a ListModelDeploymentMonitoringJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { + ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.logSource != null && message.hasOwnProperty("logSource")) - switch (message.logSource) { - default: - return "logSource: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.logType != null && message.hasOwnProperty("logType")) - switch (message.logType) { - default: - return "logType: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { + if (!Array.isArray(message.modelDeploymentMonitoringJobs)) + return "modelDeploymentMonitoringJobs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); + if (error) + return "modelDeploymentMonitoringJobs." + error; } - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - if (!$util.isString(message.bigqueryTablePath)) - return "bigqueryTablePath: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse */ - ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable) + ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); - switch (object.logSource) { - default: - if (typeof object.logSource === "number") { - message.logSource = object.logSource; - break; - } - break; - case "LOG_SOURCE_UNSPECIFIED": - case 0: - message.logSource = 0; - break; - case "TRAINING": - case 1: - message.logSource = 1; - break; - case "SERVING": - case 2: - message.logSource = 2; - break; - } - switch (object.logType) { - default: - if (typeof object.logType === "number") { - message.logType = object.logType; - break; + var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); + if (object.modelDeploymentMonitoringJobs) { + if (!Array.isArray(object.modelDeploymentMonitoringJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); + message.modelDeploymentMonitoringJobs = []; + for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { + if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); + message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); } - break; - case "LOG_TYPE_UNSPECIFIED": - case 0: - message.logType = 0; - break; - case "PREDICT": - case 1: - message.logType = 1; - break; - case "EXPLAIN": - case 2: - message.logType = 2; - break; } - if (object.bigqueryTablePath != null) - message.bigqueryTablePath = String(object.bigqueryTablePath); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; - object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; - object.bigqueryTablePath = ""; + if (options.arrays || options.defaults) + object.modelDeploymentMonitoringJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { + object.modelDeploymentMonitoringJobs = []; + for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) + object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); } - if (message.logSource != null && message.hasOwnProperty("logSource")) - object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] === undefined ? message.logSource : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; - if (message.logType != null && message.hasOwnProperty("logType")) - object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] === undefined ? message.logType : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - object.bigqueryTablePath = message.bigqueryTablePath; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringBigQueryTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse"; }; - /** - * LogSource enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource - * @enum {number} - * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value - * @property {number} TRAINING=1 TRAINING value - * @property {number} SERVING=2 SERVING value - */ - ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TRAINING"] = 1; - values[valuesById[2] = "SERVING"] = 2; - return values; - })(); - - /** - * LogType enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType - * @enum {number} - * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value - * @property {number} PREDICT=1 PREDICT value - * @property {number} EXPLAIN=2 EXPLAIN value - */ - ModelDeploymentMonitoringBigQueryTable.LogType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PREDICT"] = 1; - values[valuesById[2] = "EXPLAIN"] = 2; - return values; - })(); - - return ModelDeploymentMonitoringBigQueryTable; + return ListModelDeploymentMonitoringJobsResponse; })(); - v1.ModelDeploymentMonitoringObjectiveConfig = (function() { + v1.UpdateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringObjectiveConfig. + * Properties of an UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringObjectiveConfig - * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId - * @property {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig + * @interface IUpdateModelDeploymentMonitoringJobRequest + * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask */ /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. - * @implements IModelDeploymentMonitoringObjectiveConfig + * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. + * @implements IUpdateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringObjectiveConfig(properties) { + function UpdateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87130,89 +87645,89 @@ } /** - * ModelDeploymentMonitoringObjectiveConfig deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; + UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. - * @member {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * UpdateModelDeploymentMonitoringJobRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; + UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { - return new ModelDeploymentMonitoringObjectiveConfig(properties); + UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); - if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.deployedModelId = reader.string(); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; } case 2: { - message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -87224,137 +87739,141 @@ }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringObjectiveConfig.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); if (error) - return "objectiveConfig." + error; + return "modelDeploymentMonitoringJob." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig) + UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.objectiveConfig != null) { - if (typeof object.objectiveConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); - message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); + var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.deployedModelId = ""; - object.objectiveConfig = null; + object.modelDeploymentMonitoringJob = null; + object.updateMask = null; } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) - object.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest"; }; - return ModelDeploymentMonitoringObjectiveConfig; + return UpdateModelDeploymentMonitoringJobRequest; })(); - v1.ModelDeploymentMonitoringScheduleConfig = (function() { + v1.DeleteModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringScheduleConfig. + * Properties of a DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringScheduleConfig - * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval - * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow + * @interface IDeleteModelDeploymentMonitoringJobRequest + * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. - * @implements IModelDeploymentMonitoringScheduleConfig + * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. + * @implements IDeleteModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringScheduleConfig(properties) { + function DeleteModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87362,89 +87881,75 @@ } /** - * ModelDeploymentMonitoringScheduleConfig monitorInterval. - * @member {google.protobuf.IDuration|null|undefined} monitorInterval - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig - * @instance - */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; - - /** - * ModelDeploymentMonitoringScheduleConfig monitorWindow. - * @member {google.protobuf.IDuration|null|undefined} monitorWindow - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * DeleteModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; + DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { - return new ModelDeploymentMonitoringScheduleConfig(properties); + DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new DeleteModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) - $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) - $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { + DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 2: { - message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -87456,145 +87961,122 @@ }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { + DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { + DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { - var error = $root.google.protobuf.Duration.verify(message.monitorInterval); - if (error) - return "monitorInterval." + error; - } - if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { - var error = $root.google.protobuf.Duration.verify(message.monitorWindow); - if (error) - return "monitorWindow." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig) + DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); - if (object.monitorInterval != null) { - if (typeof object.monitorInterval !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); - message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); - } - if (object.monitorWindow != null) { - if (typeof object.monitorWindow !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); - message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig + * @param {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { + DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.monitorInterval = null; - object.monitorWindow = null; - } - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) - object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); - if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) - object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { + DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringScheduleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest"; }; - return ModelDeploymentMonitoringScheduleConfig; + return DeleteModelDeploymentMonitoringJobRequest; })(); - v1.ModelMonitoringStatsAnomalies = (function() { + v1.PauseModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelMonitoringStatsAnomalies. + * Properties of a PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IModelMonitoringStatsAnomalies - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective - * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId - * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount - * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats + * @interface IPauseModelDeploymentMonitoringJobRequest + * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelMonitoringStatsAnomalies. - * @implements IModelMonitoringStatsAnomalies + * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. + * @implements IPauseModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelMonitoringStatsAnomalies(properties) { - this.featureStats = []; + function PauseModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87602,120 +88084,75 @@ } /** - * ModelMonitoringStatsAnomalies objective. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} objective - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.objective = 0; - - /** - * ModelMonitoringStatsAnomalies deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; - - /** - * ModelMonitoringStatsAnomalies anomalyCount. - * @member {number} anomalyCount - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; - - /** - * ModelMonitoringStatsAnomalies featureStats. - * @member {Array.} featureStats - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * PauseModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @instance */ - ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance */ - ModelMonitoringStatsAnomalies.create = function create(properties) { - return new ModelMonitoringStatsAnomalies(properties); + PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new PauseModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); - if (message.featureStats != null && message.featureStats.length) - for (var i = 0; i < message.featureStats.length; ++i) - $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decode = function decode(reader, length) { + PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.objective = reader.int32(); - break; - } - case 2: { - message.deployedModelId = reader.string(); - break; - } - case 3: { - message.anomalyCount = reader.int32(); - break; - } - case 4: { - if (!(message.featureStats && message.featureStats.length)) - message.featureStats = []; - message.featureStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); + message.name = reader.string(); break; } default: @@ -87727,507 +88164,325 @@ }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a PauseModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringStatsAnomalies.verify = function verify(message) { + PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.objective != null && message.hasOwnProperty("objective")) - switch (message.objective) { - default: - return "objective: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - if (!$util.isInteger(message.anomalyCount)) - return "anomalyCount: integer expected"; - if (message.featureStats != null && message.hasOwnProperty("featureStats")) { - if (!Array.isArray(message.featureStats)) - return "featureStats: array expected"; - for (var i = 0; i < message.featureStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); - if (error) - return "featureStats." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest */ - ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); - switch (object.objective) { - default: - if (typeof object.objective === "number") { - message.objective = object.objective; - break; - } - break; - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.objective = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.objective = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.objective = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.objective = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.objective = 4; - break; - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.anomalyCount != null) - message.anomalyCount = object.anomalyCount | 0; - if (object.featureStats) { - if (!Array.isArray(object.featureStats)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: array expected"); - message.featureStats = []; - for (var i = 0; i < object.featureStats.length; ++i) { - if (typeof object.featureStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: object expected"); - message.featureStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); - } - } + PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies + * @param {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { + PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.featureStats = []; - if (options.defaults) { - object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.deployedModelId = ""; - object.anomalyCount = 0; - } - if (message.objective != null && message.hasOwnProperty("objective")) - object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] === undefined ? message.objective : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - object.anomalyCount = message.anomalyCount; - if (message.featureStats && message.featureStats.length) { - object.featureStats = []; - for (var j = 0; j < message.featureStats.length; ++j) - object.featureStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { + PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringStatsAnomalies + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest"; }; - ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { - - /** - * Properties of a FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @interface IFeatureHistoricStatsAnomalies - * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName - * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold - * @property {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats - * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats - */ - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @classdesc Represents a FeatureHistoricStatsAnomalies. - * @implements IFeatureHistoricStatsAnomalies - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - */ - function FeatureHistoricStatsAnomalies(properties) { - this.predictionStats = []; - 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]]; - } + return PauseModelDeploymentMonitoringJobRequest; + })(); - /** - * FeatureHistoricStatsAnomalies featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; + v1.ResumeModelDeploymentMonitoringJobRequest = (function() { - /** - * FeatureHistoricStatsAnomalies threshold. - * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} threshold - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.threshold = null; + /** + * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IResumeModelDeploymentMonitoringJobRequest + * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + */ - /** - * FeatureHistoricStatsAnomalies trainingStats. - * @member {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null|undefined} trainingStats - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.trainingStats = null; + /** + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. + * @implements IResumeModelDeploymentMonitoringJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + */ + function ResumeModelDeploymentMonitoringJobRequest(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]]; + } - /** - * FeatureHistoricStatsAnomalies predictionStats. - * @member {Array.} predictionStats - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; + /** + * ResumeModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @instance + */ + ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance - */ - FeatureHistoricStatsAnomalies.create = function create(properties) { - return new FeatureHistoricStatsAnomalies(properties); - }; + /** + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance + */ + ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new ResumeModelDeploymentMonitoringJobRequest(properties); + }; - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) - $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.predictionStats != null && message.predictionStats.length) - for (var i = 0; i < message.predictionStats.length; ++i) - $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.featureDisplayName = reader.string(); - break; - } - case 3: { - message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.predictionStats && message.predictionStats.length)) - message.predictionStats = []; - message.predictionStats.push($root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a FeatureHistoricStatsAnomalies message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureHistoricStatsAnomalies.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.threshold); - if (error) - return "threshold." + error; - } - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { - var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.trainingStats); - if (error) - return "trainingStats." + error; - } - if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { - if (!Array.isArray(message.predictionStats)) - return "predictionStats: array expected"; - for (var i = 0; i < message.predictionStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.predictionStats[i]); - if (error) - return "predictionStats." + error; - } - } - return null; - }; + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - */ - FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.threshold != null) { - if (typeof object.threshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); - message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.threshold); - } - if (object.trainingStats != null) { - if (typeof object.trainingStats !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); - message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.trainingStats); - } - if (object.predictionStats) { - if (!Array.isArray(object.predictionStats)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); - message.predictionStats = []; - for (var i = 0; i < object.predictionStats.length; ++i) { - if (typeof object.predictionStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); - message.predictionStats[i] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); - } - } - return message; - }; + /** + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.predictionStats = []; - if (options.defaults) { - object.featureDisplayName = ""; - object.threshold = null; - object.trainingStats = null; - } - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.threshold, options); - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) - object.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.trainingStats, options); - if (message.predictionStats && message.predictionStats.length) { - object.predictionStats = []; - for (var j = 0; j < message.predictionStats.length; ++j) - object.predictionStats[j] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); - } + /** + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + */ + ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - * @returns {Object.} JSON object - */ - FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureHistoricStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies"; - }; + /** + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @instance + * @returns {Object.} JSON object + */ + ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return FeatureHistoricStatsAnomalies; - })(); + /** + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest"; + }; - return ModelMonitoringStatsAnomalies; + return ResumeModelDeploymentMonitoringJobRequest; })(); - v1.ModelMonitoringObjectiveConfig = (function() { + v1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { /** - * Properties of a ModelMonitoringObjectiveConfig. + * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IModelMonitoringObjectiveConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig + * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelMonitoringObjectiveConfig. - * @implements IModelMonitoringObjectiveConfig + * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. + * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set */ - function ModelMonitoringObjectiveConfig(properties) { + function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88235,117 +88490,75 @@ } /** - * ModelMonitoringObjectiveConfig trainingDataset. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @instance - */ - ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; - - /** - * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @instance - */ - ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; - - /** - * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @instance - */ - ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; - - /** - * ModelMonitoringObjectiveConfig explanationConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance */ - ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - ModelMonitoringObjectiveConfig.create = function create(properties) { - return new ModelMonitoringObjectiveConfig(properties); + UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); - break; - } - case 2: { - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); - break; - } - case 3: { - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); - break; - } - case 5: { - message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -88357,329 +88570,1178 @@ }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringObjectiveConfig.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); - if (error) - return "trainingDataset." + error; - } - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); - if (error) - return "trainingPredictionSkewDetectionConfig." + error; - } - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); - if (error) - return "predictionDriftDetectionConfig." + error; - } - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "explanationConfig." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata */ - ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig) + UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); - if (object.trainingDataset != null) { - if (typeof object.trainingDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); - message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); - } - if (object.trainingPredictionSkewDetectionConfig != null) { - if (typeof object.trainingPredictionSkewDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); - } - if (object.predictionDriftDetectionConfig != null) { - if (typeof object.predictionDriftDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); - } - if (object.explanationConfig != null) { - if (typeof object.explanationConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); - message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); + var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingDataset = null; - object.trainingPredictionSkewDetectionConfig = null; - object.predictionDriftDetectionConfig = null; - object.explanationConfig = null; - } - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) - object.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) - object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) - object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) - object.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance * @returns {Object.} JSON object */ - ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata"; }; - ModelMonitoringObjectiveConfig.TrainingDataset = (function() { - - /** - * Properties of a TrainingDataset. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface ITrainingDataset - * @property {string|null} [dataset] TrainingDataset dataset - * @property {google.cloud.aiplatform.v1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource - * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource - * @property {string|null} [dataFormat] TrainingDataset dataFormat - * @property {string|null} [targetField] TrainingDataset targetField - * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy - */ + return UpdateModelDeploymentMonitoringJobOperationMetadata; + })(); - /** - * Constructs a new TrainingDataset. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingDataset. - * @implements ITrainingDataset - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set - */ - function TrainingDataset(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]]; - } + /** + * ModelDeploymentMonitoringObjectiveType enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType + * @enum {number} + * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value + * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value + * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value + * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value + * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value + */ + v1.ModelDeploymentMonitoringObjectiveType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; + values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; + values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; + values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; + return values; + })(); - /** - * TrainingDataset dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataset = null; + v1.ModelDeploymentMonitoringJob = (function() { - /** - * TrainingDataset gcsSource. - * @member {google.cloud.aiplatform.v1.IGcsSource|null|undefined} gcsSource - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.gcsSource = null; + /** + * Properties of a ModelDeploymentMonitoringJob. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelDeploymentMonitoringJob + * @property {string|null} [name] ModelDeploymentMonitoringJob name + * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName + * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint + * @property {google.cloud.aiplatform.v1.JobState|null} [state] ModelDeploymentMonitoringJob state + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata + * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs + * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig + * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy + * @property {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig + * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri + * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance + * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri + * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables + * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl + * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels + * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime + * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec + * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs + * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error + */ - /** - * TrainingDataset bigquerySource. - * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigquerySource - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.bigquerySource = null; + /** + * Constructs a new ModelDeploymentMonitoringJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelDeploymentMonitoringJob. + * @implements IModelDeploymentMonitoringJob + * @constructor + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set + */ + function ModelDeploymentMonitoringJob(properties) { + this.modelDeploymentMonitoringObjectiveConfigs = []; + this.bigqueryTables = []; + this.labels = {}; + 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]]; + } - /** - * TrainingDataset dataFormat. - * @member {string} dataFormat - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataFormat = ""; + /** + * ModelDeploymentMonitoringJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.name = ""; - /** - * TrainingDataset targetField. - * @member {string} targetField - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.targetField = ""; + /** + * ModelDeploymentMonitoringJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.displayName = ""; - /** - * TrainingDataset loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.loggingSamplingStrategy = null; + /** + * ModelDeploymentMonitoringJob endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.endpoint = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ModelDeploymentMonitoringJob state. + * @member {google.cloud.aiplatform.v1.JobState} state + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.state = 0; - /** - * TrainingDataset dataSource. - * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - Object.defineProperty(TrainingDataset.prototype, "dataSource", { - get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ModelDeploymentMonitoringJob scheduleState. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.scheduleState = 0; - /** - * Creates a new TrainingDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance - */ - TrainingDataset.create = function create(properties) { - return new TrainingDataset(properties); - }; + /** + * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; - /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); - if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) - $root.google.cloud.aiplatform.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) - $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; + /** + * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. + * @member {Array.} modelDeploymentMonitoringObjectiveConfigs + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; + + /** + * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. + * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; + + /** + * ModelDeploymentMonitoringJob loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; + + /** + * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. + * @member {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; + + /** + * ModelDeploymentMonitoringJob predictInstanceSchemaUri. + * @member {string} predictInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; + + /** + * ModelDeploymentMonitoringJob samplePredictInstance. + * @member {google.protobuf.IValue|null|undefined} samplePredictInstance + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; + + /** + * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. + * @member {string} analysisInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; + + /** + * ModelDeploymentMonitoringJob bigqueryTables. + * @member {Array.} bigqueryTables + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; + + /** + * ModelDeploymentMonitoringJob logTtl. + * @member {google.protobuf.IDuration|null|undefined} logTtl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.logTtl = null; + + /** + * ModelDeploymentMonitoringJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; + + /** + * ModelDeploymentMonitoringJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.createTime = null; + + /** + * ModelDeploymentMonitoringJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.updateTime = null; + + /** + * ModelDeploymentMonitoringJob nextScheduleTime. + * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; + + /** + * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; + + /** + * ModelDeploymentMonitoringJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; + + /** + * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. + * @member {boolean} enableMonitoringPipelineLogs + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; + + /** + * ModelDeploymentMonitoringJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.error = null; + + /** + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance + */ + ModelDeploymentMonitoringJob.create = function create(properties) { + return new ModelDeploymentMonitoringJob(properties); + }; + + /** + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringJob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); + if (message.bigqueryTables != null && message.bigqueryTables.length) + for (var i = 0; i < message.bigqueryTables.length; ++i) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) + $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); + if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) + $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) + $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringJob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.endpoint = reader.string(); + break; + } + case 4: { + message.state = reader.int32(); + break; + } + case 5: { + message.scheduleState = reader.int32(); + break; + } + case 25: { + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) + message.modelDeploymentMonitoringObjectiveConfigs = []; + message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); + break; + } + case 7: { + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); + break; + } + case 8: { + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); + break; + } + case 15: { + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); + break; + } + case 9: { + message.predictInstanceSchemaUri = reader.string(); + break; + } + case 19: { + message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 16: { + message.analysisInstanceSchemaUri = reader.string(); + break; + } + case 10: { + if (!(message.bigqueryTables && message.bigqueryTables.length)) + message.bigqueryTables = []; + message.bigqueryTables.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); + break; + } + case 17: { + message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 11: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 12: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 20: { + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 21: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 22: { + message.enableMonitoringPipelineLogs = reader.bool(); + break; + } + case 23: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelDeploymentMonitoringJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringJob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + switch (message.scheduleState) { + default: + return "scheduleState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); + if (error) + return "latestMonitoringPipelineMetadata." + error; + } + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { + if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) + return "modelDeploymentMonitoringObjectiveConfigs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); + if (error) + return "modelDeploymentMonitoringObjectiveConfigs." + error; + } + } + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); + if (error) + return "modelDeploymentMonitoringScheduleConfig." + error; + } + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (error) + return "loggingSamplingStrategy." + error; + } + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); + if (error) + return "modelMonitoringAlertConfig." + error; + } + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + if (!$util.isString(message.predictInstanceSchemaUri)) + return "predictInstanceSchemaUri: string expected"; + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { + var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); + if (error) + return "samplePredictInstance." + error; + } + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + if (!$util.isString(message.analysisInstanceSchemaUri)) + return "analysisInstanceSchemaUri: string expected"; + if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { + if (!Array.isArray(message.bigqueryTables)) + return "bigqueryTables: array expected"; + for (var i = 0; i < message.bigqueryTables.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); + if (error) + return "bigqueryTables." + error; + } + } + if (message.logTtl != null && message.hasOwnProperty("logTtl")) { + var error = $root.google.protobuf.Duration.verify(message.logTtl); + if (error) + return "logTtl." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); + if (error) + return "nextScheduleTime." + error; + } + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); + if (error) + return "statsAnomaliesBaseDirectory." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + if (typeof message.enableMonitoringPipelineLogs !== "boolean") + return "enableMonitoringPipelineLogs: boolean expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + return null; + }; + + /** + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + */ + ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + } + switch (object.scheduleState) { + default: + if (typeof object.scheduleState === "number") { + message.scheduleState = object.scheduleState; + break; + } + break; + case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": + case 0: + message.scheduleState = 0; + break; + case "PENDING": + case 1: + message.scheduleState = 1; + break; + case "OFFLINE": + case 2: + message.scheduleState = 2; + break; + case "RUNNING": + case 3: + message.scheduleState = 3; + break; + } + if (object.latestMonitoringPipelineMetadata != null) { + if (typeof object.latestMonitoringPipelineMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); + } + if (object.modelDeploymentMonitoringObjectiveConfigs) { + if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); + message.modelDeploymentMonitoringObjectiveConfigs = []; + for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); + message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); + } + } + if (object.modelDeploymentMonitoringScheduleConfig != null) { + if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); + } + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + } + if (object.modelMonitoringAlertConfig != null) { + if (typeof object.modelMonitoringAlertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); + } + if (object.predictInstanceSchemaUri != null) + message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); + if (object.samplePredictInstance != null) { + if (typeof object.samplePredictInstance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); + message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); + } + if (object.analysisInstanceSchemaUri != null) + message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); + if (object.bigqueryTables) { + if (!Array.isArray(object.bigqueryTables)) + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); + message.bigqueryTables = []; + for (var i = 0; i < object.bigqueryTables.length; ++i) { + if (typeof object.bigqueryTables[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); + message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); + } + } + if (object.logTtl != null) { + if (typeof object.logTtl !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.logTtl: object expected"); + message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.nextScheduleTime != null) { + if (typeof object.nextScheduleTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); + message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); + } + if (object.statsAnomaliesBaseDirectory != null) { + if (typeof object.statsAnomaliesBaseDirectory !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.enableMonitoringPipelineLogs != null) + message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + return message; + }; + + /** + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + object.bigqueryTables = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.endpoint = ""; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; + object.modelDeploymentMonitoringScheduleConfig = null; + object.loggingSamplingStrategy = null; + object.predictInstanceSchemaUri = ""; + object.createTime = null; + object.updateTime = null; + object.nextScheduleTime = null; + object.modelMonitoringAlertConfig = null; + object.analysisInstanceSchemaUri = ""; + object.logTtl = null; + object.samplePredictInstance = null; + object.statsAnomaliesBaseDirectory = null; + object.encryptionSpec = null; + object.enableMonitoringPipelineLogs = false; + object.error = null; + object.latestMonitoringPipelineMetadata = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] === undefined ? message.scheduleState : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; + if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) + object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); + } + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) + object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; + if (message.bigqueryTables && message.bigqueryTables.length) { + object.bigqueryTables = []; + for (var j = 0; j < message.bigqueryTables.length; ++j) + object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); + } + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) + object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) + object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; + if (message.logTtl != null && message.hasOwnProperty("logTtl")) + object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) + object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) + object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) + object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); + return object; + }; + + /** + * Converts this ModelDeploymentMonitoringJob to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelDeploymentMonitoringJob + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob"; + }; + + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * Properties of a LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @interface ILatestMonitoringPipelineMetadata + * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime + * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status + */ + + /** + * Constructs a new LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @classdesc Represents a LatestMonitoringPipelineMetadata. + * @implements ILatestMonitoringPipelineMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + */ + function LatestMonitoringPipelineMetadata(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]]; + } + + /** + * LatestMonitoringPipelineMetadata runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + */ + LatestMonitoringPipelineMetadata.prototype.runTime = null; + + /** + * LatestMonitoringPipelineMetadata status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + */ + LatestMonitoringPipelineMetadata.prototype.status = null; + + /** + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance + */ + LatestMonitoringPipelineMetadata.create = function create(properties) { + return new LatestMonitoringPipelineMetadata(properties); + }; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) + $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { + LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingDataset message from the specified reader or buffer. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingDataset.decode = function decode(reader, length) { + LatestMonitoringPipelineMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.dataset = reader.string(); - break; - } - case 4: { - message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.decode(reader, reader.uint32()); - break; - } - case 5: { - message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); + case 1: { + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 2: { - message.dataFormat = reader.string(); - break; - } - case 6: { - message.targetField = reader.string(); - break; - } - case 7: { - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -88691,876 +89753,1291 @@ }; /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingDataset.decodeDelimited = function decodeDelimited(reader) { + LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingDataset message. + * Verifies a LatestMonitoringPipelineMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingDataset.verify = function verify(message) { + LatestMonitoringPipelineMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - properties.dataSource = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1.GcsSource.verify(message.gcsSource); - if (error) - return "gcsSource." + error; - } - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigquerySource); - if (error) - return "bigquerySource." + error; - } + if (message.runTime != null && message.hasOwnProperty("runTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.runTime); + if (error) + return "runTime." + error; } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - if (!$util.isString(message.dataFormat)) - return "dataFormat: string expected"; - if (message.targetField != null && message.hasOwnProperty("targetField")) - if (!$util.isString(message.targetField)) - return "targetField: string expected"; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); if (error) - return "loggingSamplingStrategy." + error; + return "status." + error; } return null; }; /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata */ - TrainingDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset) + LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.gcsSource != null) { - if (typeof object.gcsSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); - message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.fromObject(object.gcsSource); + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); + message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); } - if (object.bigquerySource != null) { - if (typeof object.bigquerySource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); - message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigquerySource); - } - if (object.dataFormat != null) - message.dataFormat = String(object.dataFormat); - if (object.targetField != null) - message.targetField = String(object.targetField); - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); } return message; }; /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingDataset.toObject = function toObject(message, options) { + LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dataFormat = ""; - object.targetField = ""; - object.loggingSamplingStrategy = null; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = message.dataFormat; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.dataSource = "dataset"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - object.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.toObject(message.gcsSource, options); - if (options.oneofs) - object.dataSource = "gcsSource"; - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - object.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigquerySource, options); - if (options.oneofs) - object.dataSource = "bigquerySource"; + object.runTime = null; + object.status = null; } - if (message.targetField != null && message.hasOwnProperty("targetField")) - object.targetField = message.targetField; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + if (message.runTime != null && message.hasOwnProperty("runTime")) + object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); return object; }; /** - * Converts this TrainingDataset to JSON. + * Converts this LatestMonitoringPipelineMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance * @returns {Object.} JSON object */ - TrainingDataset.prototype.toJSON = function toJSON() { + LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainingDataset + * Gets the default type url for LatestMonitoringPipelineMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LatestMonitoringPipelineMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata"; }; - return TrainingDataset; + return LatestMonitoringPipelineMetadata; })(); - ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { + /** + * MonitoringScheduleState enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState + * @enum {number} + * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} OFFLINE=2 OFFLINE value + * @property {number} RUNNING=3 RUNNING value + */ + ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "OFFLINE"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + return values; + })(); - /** - * Properties of a TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface ITrainingPredictionSkewDetectionConfig - * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds - * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds - * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold - */ + return ModelDeploymentMonitoringJob; + })(); - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingPredictionSkewDetectionConfig. - * @implements ITrainingPredictionSkewDetectionConfig - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - */ - function TrainingPredictionSkewDetectionConfig(properties) { - this.skewThresholds = {}; - this.attributionScoreSkewThresholds = {}; - 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]]; - } + v1.ModelDeploymentMonitoringBigQueryTable = (function() { - /** - * TrainingPredictionSkewDetectionConfig skewThresholds. - * @member {Object.} skewThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; + /** + * Properties of a ModelDeploymentMonitoringBigQueryTable. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelDeploymentMonitoringBigQueryTable + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType + * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath + */ - /** - * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. - * @member {Object.} attributionScoreSkewThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; + /** + * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. + * @implements IModelDeploymentMonitoringBigQueryTable + * @constructor + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + */ + function ModelDeploymentMonitoringBigQueryTable(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]]; + } - /** - * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. - * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultSkewThreshold - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; + /** + * ModelDeploymentMonitoringBigQueryTable logSource. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance - */ - TrainingPredictionSkewDetectionConfig.create = function create(properties) { - return new TrainingPredictionSkewDetectionConfig(properties); - }; + /** + * ModelDeploymentMonitoringBigQueryTable logType. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType} logType + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) - for (var keys = Object.keys(message.skewThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) - for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. + * @member {string} bigqueryTablePath + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance + */ + ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { + return new ModelDeploymentMonitoringBigQueryTable(properties); + }; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.skewThresholds === $util.emptyObject) - message.skewThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.skewThresholds[key] = value; - break; - } - case 2: { - if (message.attributionScoreSkewThresholds === $util.emptyObject) - message.attributionScoreSkewThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.attributionScoreSkewThresholds[key] = value; - break; - } - case 6: { - message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); + if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); + if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); + return writer; + }; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a TrainingPredictionSkewDetectionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPredictionSkewDetectionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { - if (!$util.isObject(message.skewThresholds)) - return "skewThresholds: object expected"; - var key = Object.keys(message.skewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.skewThresholds[key[i]]); - if (error) - return "skewThresholds." + error; + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringBigQueryTable.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.logSource = reader.int32(); + break; } - } - if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { - if (!$util.isObject(message.attributionScoreSkewThresholds)) - return "attributionScoreSkewThresholds: object expected"; - var key = Object.keys(message.attributionScoreSkewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); - if (error) - return "attributionScoreSkewThresholds." + error; + case 2: { + message.logType = reader.int32(); + break; } - } - if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultSkewThreshold); - if (error) - return "defaultSkewThreshold." + error; - } - return null; - }; - - /** - * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - */ - TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); - if (object.skewThresholds) { - if (typeof object.skewThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); - message.skewThresholds = {}; - for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.skewThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); - message.skewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.skewThresholds[keys[i]]); + case 3: { + message.bigqueryTablePath = reader.string(); + break; } + default: + reader.skipType(tag & 7); + break; } - if (object.attributionScoreSkewThresholds) { - if (typeof object.attributionScoreSkewThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); - message.attributionScoreSkewThresholds = {}; - for (var keys = Object.keys(object.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.attributionScoreSkewThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); - message.attributionScoreSkewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreSkewThresholds[keys[i]]); - } + } + return message; + }; + + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.logSource != null && message.hasOwnProperty("logSource")) + switch (message.logSource) { + default: + return "logSource: enum value expected"; + case 0: + case 1: + case 2: + break; } - if (object.defaultSkewThreshold != null) { - if (typeof object.defaultSkewThreshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.defaultSkewThreshold: object expected"); - message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultSkewThreshold); + if (message.logType != null && message.hasOwnProperty("logType")) + switch (message.logType) { + default: + return "logType: enum value expected"; + case 0: + case 1: + case 2: + break; } - return message; - }; + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + if (!$util.isString(message.bigqueryTablePath)) + return "bigqueryTablePath: string expected"; + return null; + }; - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPredictionSkewDetectionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.skewThresholds = {}; - object.attributionScoreSkewThresholds = {}; - } - if (options.defaults) - object.defaultSkewThreshold = null; - var keys2; - if (message.skewThresholds && (keys2 = Object.keys(message.skewThresholds)).length) { - object.skewThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.skewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.skewThresholds[keys2[j]], options); + /** + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + */ + ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); + switch (object.logSource) { + default: + if (typeof object.logSource === "number") { + message.logSource = object.logSource; + break; } - if (message.attributionScoreSkewThresholds && (keys2 = Object.keys(message.attributionScoreSkewThresholds)).length) { - object.attributionScoreSkewThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.attributionScoreSkewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreSkewThresholds[keys2[j]], options); + break; + case "LOG_SOURCE_UNSPECIFIED": + case 0: + message.logSource = 0; + break; + case "TRAINING": + case 1: + message.logSource = 1; + break; + case "SERVING": + case 2: + message.logSource = 2; + break; + } + switch (object.logType) { + default: + if (typeof object.logType === "number") { + message.logType = object.logType; + break; } - if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) - object.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultSkewThreshold, options); - return object; - }; + break; + case "LOG_TYPE_UNSPECIFIED": + case 0: + message.logType = 0; + break; + case "PREDICT": + case 1: + message.logType = 1; + break; + case "EXPLAIN": + case 2: + message.logType = 2; + break; + } + if (object.bigqueryTablePath != null) + message.bigqueryTablePath = String(object.bigqueryTablePath); + return message; + }; - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - * @returns {Object.} JSON object - */ - TrainingPredictionSkewDetectionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; + object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; + object.bigqueryTablePath = ""; + } + if (message.logSource != null && message.hasOwnProperty("logSource")) + object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] === undefined ? message.logSource : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; + if (message.logType != null && message.hasOwnProperty("logType")) + object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] === undefined ? message.logType : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + object.bigqueryTablePath = message.bigqueryTablePath; + return object; + }; - /** - * Gets the default type url for TrainingPredictionSkewDetectionConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TrainingPredictionSkewDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig"; - }; + /** + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TrainingPredictionSkewDetectionConfig; + /** + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringBigQueryTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable"; + }; + + /** + * LogSource enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource + * @enum {number} + * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value + * @property {number} TRAINING=1 TRAINING value + * @property {number} SERVING=2 SERVING value + */ + ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRAINING"] = 1; + values[valuesById[2] = "SERVING"] = 2; + return values; })(); - ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { + /** + * LogType enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType + * @enum {number} + * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value + * @property {number} PREDICT=1 PREDICT value + * @property {number} EXPLAIN=2 EXPLAIN value + */ + ModelDeploymentMonitoringBigQueryTable.LogType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PREDICT"] = 1; + values[valuesById[2] = "EXPLAIN"] = 2; + return values; + })(); - /** - * Properties of a PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface IPredictionDriftDetectionConfig - * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds - * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds - * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultDriftThreshold] PredictionDriftDetectionConfig defaultDriftThreshold - */ + return ModelDeploymentMonitoringBigQueryTable; + })(); - /** - * Constructs a new PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents a PredictionDriftDetectionConfig. - * @implements IPredictionDriftDetectionConfig - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set - */ - function PredictionDriftDetectionConfig(properties) { - this.driftThresholds = {}; - this.attributionScoreDriftThresholds = {}; - 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]]; - } + v1.ModelDeploymentMonitoringObjectiveConfig = (function() { - /** - * PredictionDriftDetectionConfig driftThresholds. - * @member {Object.} driftThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; + /** + * Properties of a ModelDeploymentMonitoringObjectiveConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelDeploymentMonitoringObjectiveConfig + * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId + * @property {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig + */ - /** - * PredictionDriftDetectionConfig attributionScoreDriftThresholds. - * @member {Object.} attributionScoreDriftThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; + /** + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. + * @implements IModelDeploymentMonitoringObjectiveConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + */ + function ModelDeploymentMonitoringObjectiveConfig(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]]; + } - /** - * PredictionDriftDetectionConfig defaultDriftThreshold. - * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultDriftThreshold - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.defaultDriftThreshold = null; + /** + * ModelDeploymentMonitoringObjectiveConfig deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @instance + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig instance - */ - PredictionDriftDetectionConfig.create = function create(properties) { - return new PredictionDriftDetectionConfig(properties); - }; + /** + * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. + * @member {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @instance + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictionDriftDetectionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.driftThresholds != null && Object.hasOwnProperty.call(message, "driftThresholds")) - for (var keys = Object.keys(message.driftThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.driftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.attributionScoreDriftThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreDriftThresholds")) - for (var keys = Object.keys(message.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreDriftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.defaultDriftThreshold != null && Object.hasOwnProperty.call(message, "defaultDriftThreshold")) - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultDriftThreshold, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + /** + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance + */ + ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { + return new ModelDeploymentMonitoringObjectiveConfig(properties); + }; - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictionDriftDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringObjectiveConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); + if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictionDriftDetectionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.driftThresholds === $util.emptyObject) - message.driftThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.driftThresholds[key] = value; - break; - } - case 2: { - if (message.attributionScoreDriftThresholds === $util.emptyObject) - message.attributionScoreDriftThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.attributionScoreDriftThresholds[key] = value; - break; - } - case 5: { - message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringObjectiveConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deployedModelId = reader.string(); + break; + } + case 2: { + message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictionDriftDetectionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PredictionDriftDetectionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PredictionDriftDetectionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.driftThresholds != null && message.hasOwnProperty("driftThresholds")) { - if (!$util.isObject(message.driftThresholds)) - return "driftThresholds: object expected"; - var key = Object.keys(message.driftThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.driftThresholds[key[i]]); - if (error) - return "driftThresholds." + error; + /** + * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringObjectiveConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); + if (error) + return "objectiveConfig." + error; + } + return null; + }; + + /** + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + */ + ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.objectiveConfig != null) { + if (typeof object.objectiveConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); + message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); + } + return message; + }; + + /** + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.deployedModelId = ""; + object.objectiveConfig = null; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) + object.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); + return object; + }; + + /** + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig"; + }; + + return ModelDeploymentMonitoringObjectiveConfig; + })(); + + v1.ModelDeploymentMonitoringScheduleConfig = (function() { + + /** + * Properties of a ModelDeploymentMonitoringScheduleConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelDeploymentMonitoringScheduleConfig + * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval + * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow + */ + + /** + * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. + * @implements IModelDeploymentMonitoringScheduleConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + */ + function ModelDeploymentMonitoringScheduleConfig(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]]; + } + + /** + * ModelDeploymentMonitoringScheduleConfig monitorInterval. + * @member {google.protobuf.IDuration|null|undefined} monitorInterval + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @instance + */ + ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; + + /** + * ModelDeploymentMonitoringScheduleConfig monitorWindow. + * @member {google.protobuf.IDuration|null|undefined} monitorWindow + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @instance + */ + ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; + + /** + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance + */ + ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { + return new ModelDeploymentMonitoringScheduleConfig(properties); + }; + + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) + $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) + $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; } - } - if (message.attributionScoreDriftThresholds != null && message.hasOwnProperty("attributionScoreDriftThresholds")) { - if (!$util.isObject(message.attributionScoreDriftThresholds)) - return "attributionScoreDriftThresholds: object expected"; - var key = Object.keys(message.attributionScoreDriftThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreDriftThresholds[key[i]]); - if (error) - return "attributionScoreDriftThresholds." + error; + case 2: { + message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; } + default: + reader.skipType(tag & 7); + break; } - if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultDriftThreshold); - if (error) - return "defaultDriftThreshold." + error; - } - return null; - }; + } + return message; + }; - /** - * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - */ - PredictionDriftDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(); - if (object.driftThresholds) { - if (typeof object.driftThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); - message.driftThresholds = {}; - for (var keys = Object.keys(object.driftThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.driftThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); - message.driftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.driftThresholds[keys[i]]); + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { + var error = $root.google.protobuf.Duration.verify(message.monitorInterval); + if (error) + return "monitorInterval." + error; + } + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { + var error = $root.google.protobuf.Duration.verify(message.monitorWindow); + if (error) + return "monitorWindow." + error; + } + return null; + }; + + /** + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + */ + ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); + if (object.monitorInterval != null) { + if (typeof object.monitorInterval !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); + message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); + } + if (object.monitorWindow != null) { + if (typeof object.monitorWindow !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); + message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); + } + return message; + }; + + /** + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.monitorInterval = null; + object.monitorWindow = null; + } + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) + object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) + object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); + return object; + }; + + /** + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringScheduleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig"; + }; + + return ModelDeploymentMonitoringScheduleConfig; + })(); + + v1.ModelMonitoringStatsAnomalies = (function() { + + /** + * Properties of a ModelMonitoringStatsAnomalies. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelMonitoringStatsAnomalies + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective + * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId + * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount + * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats + */ + + /** + * Constructs a new ModelMonitoringStatsAnomalies. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelMonitoringStatsAnomalies. + * @implements IModelMonitoringStatsAnomalies + * @constructor + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + */ + function ModelMonitoringStatsAnomalies(properties) { + this.featureStats = []; + 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]]; + } + + /** + * ModelMonitoringStatsAnomalies objective. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} objective + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.objective = 0; + + /** + * ModelMonitoringStatsAnomalies deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; + + /** + * ModelMonitoringStatsAnomalies anomalyCount. + * @member {number} anomalyCount + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; + + /** + * ModelMonitoringStatsAnomalies featureStats. + * @member {Array.} featureStats + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + + /** + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance + */ + ModelMonitoringStatsAnomalies.create = function create(properties) { + return new ModelMonitoringStatsAnomalies(properties); + }; + + /** + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); + if (message.featureStats != null && message.featureStats.length) + for (var i = 0; i < message.featureStats.length; ++i) + $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringStatsAnomalies.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.objective = reader.int32(); + break; } - } - if (object.attributionScoreDriftThresholds) { - if (typeof object.attributionScoreDriftThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); - message.attributionScoreDriftThresholds = {}; - for (var keys = Object.keys(object.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.attributionScoreDriftThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); - message.attributionScoreDriftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreDriftThresholds[keys[i]]); + case 2: { + message.deployedModelId = reader.string(); + break; } + case 3: { + message.anomalyCount = reader.int32(); + break; + } + case 4: { + if (!(message.featureStats && message.featureStats.length)) + message.featureStats = []; + message.featureStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (object.defaultDriftThreshold != null) { - if (typeof object.defaultDriftThreshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.defaultDriftThreshold: object expected"); - message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultDriftThreshold); - } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} message PredictionDriftDetectionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PredictionDriftDetectionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.driftThresholds = {}; - object.attributionScoreDriftThresholds = {}; - } - if (options.defaults) - object.defaultDriftThreshold = null; - var keys2; - if (message.driftThresholds && (keys2 = Object.keys(message.driftThresholds)).length) { - object.driftThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.driftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.driftThresholds[keys2[j]], options); + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelMonitoringStatsAnomalies message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelMonitoringStatsAnomalies.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.objective != null && message.hasOwnProperty("objective")) + switch (message.objective) { + default: + return "objective: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.attributionScoreDriftThresholds && (keys2 = Object.keys(message.attributionScoreDriftThresholds)).length) { - object.attributionScoreDriftThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.attributionScoreDriftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreDriftThresholds[keys2[j]], options); + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + if (!$util.isInteger(message.anomalyCount)) + return "anomalyCount: integer expected"; + if (message.featureStats != null && message.hasOwnProperty("featureStats")) { + if (!Array.isArray(message.featureStats)) + return "featureStats: array expected"; + for (var i = 0; i < message.featureStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); + if (error) + return "featureStats." + error; } - if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) - object.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultDriftThreshold, options); + } + return null; + }; + + /** + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + */ + ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); + switch (object.objective) { + default: + if (typeof object.objective === "number") { + message.objective = object.objective; + break; + } + break; + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.objective = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.objective = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.objective = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.objective = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.objective = 4; + break; + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.anomalyCount != null) + message.anomalyCount = object.anomalyCount | 0; + if (object.featureStats) { + if (!Array.isArray(object.featureStats)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: array expected"); + message.featureStats = []; + for (var i = 0; i < object.featureStats.length; ++i) { + if (typeof object.featureStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: object expected"); + message.featureStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); + } + } + return message; + }; - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - * @returns {Object.} JSON object - */ - PredictionDriftDetectionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureStats = []; + if (options.defaults) { + object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.deployedModelId = ""; + object.anomalyCount = 0; + } + if (message.objective != null && message.hasOwnProperty("objective")) + object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] === undefined ? message.objective : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + object.anomalyCount = message.anomalyCount; + if (message.featureStats && message.featureStats.length) { + object.featureStats = []; + for (var j = 0; j < message.featureStats.length; ++j) + object.featureStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); + } + return object; + }; - /** - * Gets the default type url for PredictionDriftDetectionConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PredictionDriftDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig"; - }; + /** + * Converts this ModelMonitoringStatsAnomalies to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + * @returns {Object.} JSON object + */ + ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PredictionDriftDetectionConfig; - })(); + /** + * Gets the default type url for ModelMonitoringStatsAnomalies + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelMonitoringStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies"; + }; - ModelMonitoringObjectiveConfig.ExplanationConfig = (function() { + ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { /** - * Properties of an ExplanationConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface IExplanationConfig - * @property {boolean|null} [enableFeatureAttributes] ExplanationConfig enableFeatureAttributes - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null} [explanationBaseline] ExplanationConfig explanationBaseline + * Properties of a FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @interface IFeatureHistoricStatsAnomalies + * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold + * @property {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats + * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats */ /** - * Constructs a new ExplanationConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents an ExplanationConfig. - * @implements IExplanationConfig + * Constructs a new FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @classdesc Represents a FeatureHistoricStatsAnomalies. + * @implements IFeatureHistoricStatsAnomalies * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set */ - function ExplanationConfig(properties) { + function FeatureHistoricStatsAnomalies(properties) { + this.predictionStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89568,89 +91045,120 @@ } /** - * ExplanationConfig enableFeatureAttributes. - * @member {boolean} enableFeatureAttributes - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * FeatureHistoricStatsAnomalies featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @instance */ - ExplanationConfig.prototype.enableFeatureAttributes = false; + FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; /** - * ExplanationConfig explanationBaseline. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null|undefined} explanationBaseline - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * FeatureHistoricStatsAnomalies threshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} threshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @instance */ - ExplanationConfig.prototype.explanationBaseline = null; + FeatureHistoricStatsAnomalies.prototype.threshold = null; /** - * Creates a new ExplanationConfig instance using the specified properties. + * FeatureHistoricStatsAnomalies trainingStats. + * @member {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null|undefined} trainingStats + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.trainingStats = null; + + /** + * FeatureHistoricStatsAnomalies predictionStats. + * @member {Array.} predictionStats + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; + + /** + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig instance + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance */ - ExplanationConfig.create = function create(properties) { - return new ExplanationConfig(properties); + FeatureHistoricStatsAnomalies.create = function create(properties) { + return new FeatureHistoricStatsAnomalies(properties); }; /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplanationConfig.encode = function encode(message, writer) { + FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableFeatureAttributes != null && Object.hasOwnProperty.call(message, "enableFeatureAttributes")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableFeatureAttributes); - if (message.explanationBaseline != null && Object.hasOwnProperty.call(message, "explanationBaseline")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.encode(message.explanationBaseline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) + $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.predictionStats != null && message.predictionStats.length) + for (var i = 0; i < message.predictionStats.length; ++i) + $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplanationConfig.encodeDelimited = function encodeDelimited(message, writer) { + FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplanationConfig message from the specified reader or buffer. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplanationConfig.decode = function decode(reader, length) { + FeatureHistoricStatsAnomalies.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enableFeatureAttributes = reader.bool(); + message.featureDisplayName = reader.string(); break; } - case 2: { - message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.decode(reader, reader.uint32()); + case 3: { + message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.predictionStats && message.predictionStats.length)) + message.predictionStats = []; + message.predictionStats.push($root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32())); break; } default: @@ -89662,466 +91170,181 @@ }; /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplanationConfig.decodeDelimited = function decodeDelimited(reader) { + FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplanationConfig message. + * Verifies a FeatureHistoricStatsAnomalies message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplanationConfig.verify = function verify(message) { + FeatureHistoricStatsAnomalies.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) - if (typeof message.enableFeatureAttributes !== "boolean") - return "enableFeatureAttributes: boolean expected"; - if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify(message.explanationBaseline); + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.threshold); if (error) - return "explanationBaseline." + error; + return "threshold." + error; + } + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { + var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.trainingStats); + if (error) + return "trainingStats." + error; + } + if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { + if (!Array.isArray(message.predictionStats)) + return "predictionStats: array expected"; + for (var i = 0; i < message.predictionStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.predictionStats[i]); + if (error) + return "predictionStats." + error; + } } return null; }; /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies */ - ExplanationConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig) + FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); - if (object.enableFeatureAttributes != null) - message.enableFeatureAttributes = Boolean(object.enableFeatureAttributes); - if (object.explanationBaseline != null) { - if (typeof object.explanationBaseline !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.explanationBaseline: object expected"); - message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.fromObject(object.explanationBaseline); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.threshold != null) { + if (typeof object.threshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); + message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.threshold); + } + if (object.trainingStats != null) { + if (typeof object.trainingStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); + message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.trainingStats); + } + if (object.predictionStats) { + if (!Array.isArray(object.predictionStats)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); + message.predictionStats = []; + for (var i = 0; i < object.predictionStats.length; ++i) { + if (typeof object.predictionStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); + message.predictionStats[i] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); + } } return message; }; /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} message ExplanationConfig + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplanationConfig.toObject = function toObject(message, options) { + FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.predictionStats = []; if (options.defaults) { - object.enableFeatureAttributes = false; - object.explanationBaseline = null; + object.featureDisplayName = ""; + object.threshold = null; + object.trainingStats = null; + } + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.threshold, options); + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) + object.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.trainingStats, options); + if (message.predictionStats && message.predictionStats.length) { + object.predictionStats = []; + for (var j = 0; j < message.predictionStats.length; ++j) + object.predictionStats[j] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); } - if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) - object.enableFeatureAttributes = message.enableFeatureAttributes; - if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) - object.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.toObject(message.explanationBaseline, options); return object; }; /** - * Converts this ExplanationConfig to JSON. + * Converts this FeatureHistoricStatsAnomalies to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @instance * @returns {Object.} JSON object */ - ExplanationConfig.prototype.toJSON = function toJSON() { + FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExplanationConfig + * Gets the default type url for FeatureHistoricStatsAnomalies * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExplanationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureHistoricStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies"; }; - ExplanationConfig.ExplanationBaseline = (function() { - - /** - * Properties of an ExplanationBaseline. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - * @interface IExplanationBaseline - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcs] ExplanationBaseline gcs - * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigquery] ExplanationBaseline bigquery - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null} [predictionFormat] ExplanationBaseline predictionFormat - */ + return FeatureHistoricStatsAnomalies; + })(); - /** - * Constructs a new ExplanationBaseline. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - * @classdesc Represents an ExplanationBaseline. - * @implements IExplanationBaseline - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set - */ - function ExplanationBaseline(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]]; - } - - /** - * ExplanationBaseline gcs. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcs - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.gcs = null; - - /** - * ExplanationBaseline bigquery. - * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigquery - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.bigquery = null; - - /** - * ExplanationBaseline predictionFormat. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat} predictionFormat - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.predictionFormat = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExplanationBaseline destination. - * @member {"gcs"|"bigquery"|undefined} destination - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - Object.defineProperty(ExplanationBaseline.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcs", "bigquery"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline instance - */ - ExplanationBaseline.create = function create(properties) { - return new ExplanationBaseline(properties); - }; - - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExplanationBaseline.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.predictionFormat != null && Object.hasOwnProperty.call(message, "predictionFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.predictionFormat); - if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.bigquery != null && Object.hasOwnProperty.call(message, "bigquery")) - $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigquery, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExplanationBaseline.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExplanationBaseline.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 3: { - message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); - break; - } - case 1: { - message.predictionFormat = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExplanationBaseline.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExplanationBaseline message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExplanationBaseline.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.gcs != null && message.hasOwnProperty("gcs")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcs); - if (error) - return "gcs." + error; - } - } - if (message.bigquery != null && message.hasOwnProperty("bigquery")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigquery); - if (error) - return "bigquery." + error; - } - } - if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) - switch (message.predictionFormat) { - default: - return "predictionFormat: enum value expected"; - case 0: - case 2: - case 3: - break; - } - return null; - }; - - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - */ - ExplanationBaseline.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); - if (object.gcs != null) { - if (typeof object.gcs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.gcs: object expected"); - message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcs); - } - if (object.bigquery != null) { - if (typeof object.bigquery !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.bigquery: object expected"); - message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigquery); - } - switch (object.predictionFormat) { - default: - if (typeof object.predictionFormat === "number") { - message.predictionFormat = object.predictionFormat; - break; - } - break; - case "PREDICTION_FORMAT_UNSPECIFIED": - case 0: - message.predictionFormat = 0; - break; - case "JSONL": - case 2: - message.predictionFormat = 2; - break; - case "BIGQUERY": - case 3: - message.predictionFormat = 3; - break; - } - return message; - }; - - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} message ExplanationBaseline - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExplanationBaseline.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.predictionFormat = options.enums === String ? "PREDICTION_FORMAT_UNSPECIFIED" : 0; - if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) - object.predictionFormat = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] === undefined ? message.predictionFormat : $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] : message.predictionFormat; - if (message.gcs != null && message.hasOwnProperty("gcs")) { - object.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcs, options); - if (options.oneofs) - object.destination = "gcs"; - } - if (message.bigquery != null && message.hasOwnProperty("bigquery")) { - object.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigquery, options); - if (options.oneofs) - object.destination = "bigquery"; - } - return object; - }; - - /** - * Converts this ExplanationBaseline to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - * @returns {Object.} JSON object - */ - ExplanationBaseline.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ExplanationBaseline - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExplanationBaseline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline"; - }; - - /** - * PredictionFormat enum. - * @name google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat - * @enum {number} - * @property {number} PREDICTION_FORMAT_UNSPECIFIED=0 PREDICTION_FORMAT_UNSPECIFIED value - * @property {number} JSONL=2 JSONL value - * @property {number} BIGQUERY=3 BIGQUERY value - */ - ExplanationBaseline.PredictionFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PREDICTION_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[2] = "JSONL"] = 2; - values[valuesById[3] = "BIGQUERY"] = 3; - return values; - })(); - - return ExplanationBaseline; - })(); - - return ExplanationConfig; - })(); - - return ModelMonitoringObjectiveConfig; + return ModelMonitoringStatsAnomalies; })(); - v1.ModelMonitoringAlertConfig = (function() { + v1.ModelMonitoringObjectiveConfig = (function() { /** - * Properties of a ModelMonitoringAlertConfig. + * Properties of a ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IModelMonitoringAlertConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null} [emailAlertConfig] ModelMonitoringAlertConfig emailAlertConfig - * @property {boolean|null} [enableLogging] ModelMonitoringAlertConfig enableLogging + * @interface IModelMonitoringObjectiveConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig */ /** - * Constructs a new ModelMonitoringAlertConfig. + * Constructs a new ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelMonitoringAlertConfig. - * @implements IModelMonitoringAlertConfig + * @classdesc Represents a ModelMonitoringObjectiveConfig. + * @implements IModelMonitoringObjectiveConfig * @constructor - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set */ - function ModelMonitoringAlertConfig(properties) { + function ModelMonitoringObjectiveConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90129,103 +91352,117 @@ } /** - * ModelMonitoringAlertConfig emailAlertConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * ModelMonitoringObjectiveConfig trainingDataset. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance */ - ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; + ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; /** - * ModelMonitoringAlertConfig enableLogging. - * @member {boolean} enableLogging - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance */ - ModelMonitoringAlertConfig.prototype.enableLogging = false; + ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @instance + */ + ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; /** - * ModelMonitoringAlertConfig alert. - * @member {"emailAlertConfig"|undefined} alert - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * ModelMonitoringObjectiveConfig explanationConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance */ - Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { - get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance */ - ModelMonitoringAlertConfig.create = function create(properties) { - return new ModelMonitoringAlertConfig(properties); + ModelMonitoringObjectiveConfig.create = function create(properties) { + return new ModelMonitoringObjectiveConfig(properties); }; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringAlertConfig.encode = function encode(message, writer) { + ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.emailAlertConfig != null && Object.hasOwnProperty.call(message, "emailAlertConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.encode(message.emailAlertConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.enableLogging != null && Object.hasOwnProperty.call(message, "enableLogging")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableLogging); + if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringAlertConfig.decode = function decode(reader, length) { + ModelMonitoringObjectiveConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); + message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); break; } case 2: { - message.enableLogging = reader.bool(); + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); + break; + } + case 5: { + message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); break; } default: @@ -90237,139 +91474,169 @@ }; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringAlertConfig.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a ModelMonitoringObjectiveConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringAlertConfig.verify = function verify(message) { + ModelMonitoringObjectiveConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { - properties.alert = 1; - { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify(message.emailAlertConfig); - if (error) - return "emailAlertConfig." + error; - } + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); + if (error) + return "trainingDataset." + error; + } + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); + if (error) + return "trainingPredictionSkewDetectionConfig." + error; + } + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); + if (error) + return "predictionDriftDetectionConfig." + error; + } + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); + if (error) + return "explanationConfig." + error; } - if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) - if (typeof message.enableLogging !== "boolean") - return "enableLogging: boolean expected"; return null; }; /** - * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig */ - ModelMonitoringAlertConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig) + ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); - if (object.emailAlertConfig != null) { - if (typeof object.emailAlertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.emailAlertConfig: object expected"); - message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.fromObject(object.emailAlertConfig); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); + if (object.trainingDataset != null) { + if (typeof object.trainingDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); + message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); + } + if (object.trainingPredictionSkewDetectionConfig != null) { + if (typeof object.trainingPredictionSkewDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); + } + if (object.predictionDriftDetectionConfig != null) { + if (typeof object.predictionDriftDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); + } + if (object.explanationConfig != null) { + if (typeof object.explanationConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); + message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); } - if (object.enableLogging != null) - message.enableLogging = Boolean(object.enableLogging); return message; }; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringAlertConfig.toObject = function toObject(message, options) { + ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.enableLogging = false; - if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { - object.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.toObject(message.emailAlertConfig, options); - if (options.oneofs) - object.alert = "emailAlertConfig"; + if (options.defaults) { + object.trainingDataset = null; + object.trainingPredictionSkewDetectionConfig = null; + object.predictionDriftDetectionConfig = null; + object.explanationConfig = null; } - if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) - object.enableLogging = message.enableLogging; + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) + object.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) + object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) + object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) + object.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); return object; }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance * @returns {Object.} JSON object */ - ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { + ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringAlertConfig + * Gets the default type url for ModelMonitoringObjectiveConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig"; }; - ModelMonitoringAlertConfig.EmailAlertConfig = (function() { + ModelMonitoringObjectiveConfig.TrainingDataset = (function() { /** - * Properties of an EmailAlertConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig - * @interface IEmailAlertConfig - * @property {Array.|null} [userEmails] EmailAlertConfig userEmails + * Properties of a TrainingDataset. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface ITrainingDataset + * @property {string|null} [dataset] TrainingDataset dataset + * @property {google.cloud.aiplatform.v1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource + * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource + * @property {string|null} [dataFormat] TrainingDataset dataFormat + * @property {string|null} [targetField] TrainingDataset targetField + * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy */ /** - * Constructs a new EmailAlertConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig - * @classdesc Represents an EmailAlertConfig. - * @implements IEmailAlertConfig + * Constructs a new TrainingDataset. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingDataset. + * @implements ITrainingDataset * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set */ - function EmailAlertConfig(properties) { - this.userEmails = []; + function TrainingDataset(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90377,78 +91644,159 @@ } /** - * EmailAlertConfig userEmails. - * @member {Array.} userEmails - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * TrainingDataset dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @instance */ - EmailAlertConfig.prototype.userEmails = $util.emptyArray; + TrainingDataset.prototype.dataset = null; /** - * Creates a new EmailAlertConfig instance using the specified properties. + * TrainingDataset gcsSource. + * @member {google.cloud.aiplatform.v1.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.gcsSource = null; + + /** + * TrainingDataset bigquerySource. + * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.bigquerySource = null; + + /** + * TrainingDataset dataFormat. + * @member {string} dataFormat + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.dataFormat = ""; + + /** + * TrainingDataset targetField. + * @member {string} targetField + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.targetField = ""; + + /** + * TrainingDataset loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.loggingSamplingStrategy = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TrainingDataset dataSource. + * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + Object.defineProperty(TrainingDataset.prototype, "dataSource", { + get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TrainingDataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig instance + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance */ - EmailAlertConfig.create = function create(properties) { - return new EmailAlertConfig(properties); + TrainingDataset.create = function create(properties) { + return new TrainingDataset(properties); }; /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmailAlertConfig.encode = function encode(message, writer) { + TrainingDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userEmails != null && message.userEmails.length) - for (var i = 0; i < message.userEmails.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.userEmails[i]); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); + if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) + $root.google.cloud.aiplatform.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) + $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmailAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. + * Decodes a TrainingDataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmailAlertConfig.decode = function decode(reader, length) { + TrainingDataset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.userEmails && message.userEmails.length)) - message.userEmails = []; - message.userEmails.push(reader.string()); + case 3: { + message.dataset = reader.string(); + break; + } + case 4: { + message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); + break; + } + case 2: { + message.dataFormat = reader.string(); + break; + } + case 6: { + message.targetField = reader.string(); + break; + } + case 7: { + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); break; } default: @@ -90460,563 +91808,540 @@ }; /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmailAlertConfig.decodeDelimited = function decodeDelimited(reader) { + TrainingDataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EmailAlertConfig message. + * Verifies a TrainingDataset message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EmailAlertConfig.verify = function verify(message) { + TrainingDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userEmails != null && message.hasOwnProperty("userEmails")) { - if (!Array.isArray(message.userEmails)) - return "userEmails: array expected"; - for (var i = 0; i < message.userEmails.length; ++i) - if (!$util.isString(message.userEmails[i])) - return "userEmails: string[] expected"; + var properties = {}; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + properties.dataSource = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1.GcsSource.verify(message.gcsSource); + if (error) + return "gcsSource." + error; + } + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigquerySource); + if (error) + return "bigquerySource." + error; + } + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + if (!$util.isString(message.dataFormat)) + return "dataFormat: string expected"; + if (message.targetField != null && message.hasOwnProperty("targetField")) + if (!$util.isString(message.targetField)) + return "targetField: string expected"; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (error) + return "loggingSamplingStrategy." + error; } return null; }; /** - * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset */ - EmailAlertConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig) + TrainingDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); - if (object.userEmails) { - if (!Array.isArray(object.userEmails)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.userEmails: array expected"); - message.userEmails = []; - for (var i = 0; i < object.userEmails.length; ++i) - message.userEmails[i] = String(object.userEmails[i]); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.gcsSource != null) { + if (typeof object.gcsSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); + message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.fromObject(object.gcsSource); + } + if (object.bigquerySource != null) { + if (typeof object.bigquerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); + message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigquerySource); + } + if (object.dataFormat != null) + message.dataFormat = String(object.dataFormat); + if (object.targetField != null) + message.targetField = String(object.targetField); + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); } return message; }; /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} message EmailAlertConfig + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmailAlertConfig.toObject = function toObject(message, options) { + TrainingDataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.userEmails = []; - if (message.userEmails && message.userEmails.length) { - object.userEmails = []; - for (var j = 0; j < message.userEmails.length; ++j) - object.userEmails[j] = message.userEmails[j]; + if (options.defaults) { + object.dataFormat = ""; + object.targetField = ""; + object.loggingSamplingStrategy = null; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = message.dataFormat; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.dataSource = "dataset"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + object.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.toObject(message.gcsSource, options); + if (options.oneofs) + object.dataSource = "gcsSource"; + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + object.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigquerySource, options); + if (options.oneofs) + object.dataSource = "bigquerySource"; } + if (message.targetField != null && message.hasOwnProperty("targetField")) + object.targetField = message.targetField; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); return object; }; /** - * Converts this EmailAlertConfig to JSON. + * Converts this TrainingDataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @instance * @returns {Object.} JSON object */ - EmailAlertConfig.prototype.toJSON = function toJSON() { + TrainingDataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EmailAlertConfig + * Gets the default type url for TrainingDataset * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EmailAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TrainingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset"; }; - return EmailAlertConfig; + return TrainingDataset; })(); - return ModelMonitoringAlertConfig; - })(); + ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { - v1.ThresholdConfig = (function() { + /** + * Properties of a TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface ITrainingPredictionSkewDetectionConfig + * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds + * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold + */ - /** - * Properties of a ThresholdConfig. - * @memberof google.cloud.aiplatform.v1 - * @interface IThresholdConfig - * @property {number|null} [value] ThresholdConfig value - */ + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingPredictionSkewDetectionConfig. + * @implements ITrainingPredictionSkewDetectionConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + */ + function TrainingPredictionSkewDetectionConfig(properties) { + this.skewThresholds = {}; + this.attributionScoreSkewThresholds = {}; + 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]]; + } - /** - * Constructs a new ThresholdConfig. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ThresholdConfig. - * @implements IThresholdConfig - * @constructor - * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set - */ - function ThresholdConfig(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]]; - } + /** + * TrainingPredictionSkewDetectionConfig skewThresholds. + * @member {Object.} skewThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; - /** - * ThresholdConfig value. - * @member {number|null|undefined} value - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @instance - */ - ThresholdConfig.prototype.value = null; + /** + * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. + * @member {Object.} attributionScoreSkewThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultSkewThreshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; - /** - * ThresholdConfig threshold. - * @member {"value"|undefined} threshold - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @instance - */ - Object.defineProperty(ThresholdConfig.prototype, "threshold", { - get: $util.oneOfGetter($oneOfFields = ["value"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance + */ + TrainingPredictionSkewDetectionConfig.create = function create(properties) { + return new TrainingPredictionSkewDetectionConfig(properties); + }; - /** - * Creates a new ThresholdConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig instance - */ - ThresholdConfig.create = function create(properties) { - return new ThresholdConfig(properties); - }; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) + for (var keys = Object.keys(message.skewThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) + for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThresholdConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); - return writer; - }; - - /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ThresholdConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThresholdConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.value = reader.double(); + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.skewThresholds === $util.emptyObject) + message.skewThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.skewThresholds[key] = value; + break; + } + case 2: { + if (message.attributionScoreSkewThresholds === $util.emptyObject) + message.attributionScoreSkewThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributionScoreSkewThresholds[key] = value; + break; + } + case 6: { + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ThresholdConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ThresholdConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.threshold = 1; - if (typeof message.value !== "number") - return "value: number expected"; - } - return null; - }; - - /** - * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig - */ - ThresholdConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ThresholdConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); - if (object.value != null) - message.value = Number(object.value); - return message; - }; - - /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1.ThresholdConfig} message ThresholdConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ThresholdConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (options.oneofs) - object.threshold = "value"; - } - return object; - }; - - /** - * Converts this ThresholdConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @instance - * @returns {Object.} JSON object - */ - ThresholdConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ThresholdConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ThresholdConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ThresholdConfig"; - }; - - return ThresholdConfig; - })(); - - v1.SamplingStrategy = (function() { - - /** - * Properties of a SamplingStrategy. - * @memberof google.cloud.aiplatform.v1 - * @interface ISamplingStrategy - * @property {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig - */ - - /** - * Constructs a new SamplingStrategy. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SamplingStrategy. - * @implements ISamplingStrategy - * @constructor - * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set - */ - function SamplingStrategy(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]]; - } - - /** - * SamplingStrategy randomSampleConfig. - * @member {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @instance - */ - SamplingStrategy.prototype.randomSampleConfig = null; - - /** - * Creates a new SamplingStrategy instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy instance - */ - SamplingStrategy.create = function create(properties) { - return new SamplingStrategy(properties); - }; - - /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SamplingStrategy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.randomSampleConfig != null && Object.hasOwnProperty.call(message, "randomSampleConfig")) - $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.encode(message.randomSampleConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + return message; + }; - /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a SamplingStrategy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SamplingStrategy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); - break; + /** + * Verifies a TrainingPredictionSkewDetectionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPredictionSkewDetectionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { + if (!$util.isObject(message.skewThresholds)) + return "skewThresholds: object expected"; + var key = Object.keys(message.skewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.skewThresholds[key[i]]); + if (error) + return "skewThresholds." + error; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SamplingStrategy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { + if (!$util.isObject(message.attributionScoreSkewThresholds)) + return "attributionScoreSkewThresholds: object expected"; + var key = Object.keys(message.attributionScoreSkewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); + if (error) + return "attributionScoreSkewThresholds." + error; + } + } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultSkewThreshold); + if (error) + return "defaultSkewThreshold." + error; + } + return null; + }; - /** - * Verifies a SamplingStrategy message. - * @function verify - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SamplingStrategy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) { - var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify(message.randomSampleConfig); - if (error) - return "randomSampleConfig." + error; - } - return null; - }; + /** + * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + */ + TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); + if (object.skewThresholds) { + if (typeof object.skewThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); + message.skewThresholds = {}; + for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.skewThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); + message.skewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.skewThresholds[keys[i]]); + } + } + if (object.attributionScoreSkewThresholds) { + if (typeof object.attributionScoreSkewThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); + message.attributionScoreSkewThresholds = {}; + for (var keys = Object.keys(object.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.attributionScoreSkewThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); + message.attributionScoreSkewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreSkewThresholds[keys[i]]); + } + } + if (object.defaultSkewThreshold != null) { + if (typeof object.defaultSkewThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.defaultSkewThreshold: object expected"); + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultSkewThreshold); + } + return message; + }; - /** - * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy - */ - SamplingStrategy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy) + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingPredictionSkewDetectionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.skewThresholds = {}; + object.attributionScoreSkewThresholds = {}; + } + if (options.defaults) + object.defaultSkewThreshold = null; + var keys2; + if (message.skewThresholds && (keys2 = Object.keys(message.skewThresholds)).length) { + object.skewThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.skewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.skewThresholds[keys2[j]], options); + } + if (message.attributionScoreSkewThresholds && (keys2 = Object.keys(message.attributionScoreSkewThresholds)).length) { + object.attributionScoreSkewThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributionScoreSkewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreSkewThresholds[keys2[j]], options); + } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) + object.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultSkewThreshold, options); return object; - var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); - if (object.randomSampleConfig != null) { - if (typeof object.randomSampleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SamplingStrategy.randomSampleConfig: object expected"); - message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.fromObject(object.randomSampleConfig); - } - return message; - }; + }; - /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy} message SamplingStrategy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SamplingStrategy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.randomSampleConfig = null; - if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) - object.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.toObject(message.randomSampleConfig, options); - return object; - }; + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + * @returns {Object.} JSON object + */ + TrainingPredictionSkewDetectionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this SamplingStrategy to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @instance - * @returns {Object.} JSON object - */ - SamplingStrategy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for TrainingPredictionSkewDetectionConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainingPredictionSkewDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig"; + }; - /** - * Gets the default type url for SamplingStrategy - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SamplingStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy"; - }; + return TrainingPredictionSkewDetectionConfig; + })(); - SamplingStrategy.RandomSampleConfig = (function() { + ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { /** - * Properties of a RandomSampleConfig. - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @interface IRandomSampleConfig - * @property {number|null} [sampleRate] RandomSampleConfig sampleRate + * Properties of a PredictionDriftDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface IPredictionDriftDetectionConfig + * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds + * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultDriftThreshold] PredictionDriftDetectionConfig defaultDriftThreshold */ /** - * Constructs a new RandomSampleConfig. - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @classdesc Represents a RandomSampleConfig. - * @implements IRandomSampleConfig + * Constructs a new PredictionDriftDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents a PredictionDriftDetectionConfig. + * @implements IPredictionDriftDetectionConfig * @constructor - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set */ - function RandomSampleConfig(properties) { + function PredictionDriftDetectionConfig(properties) { + this.driftThresholds = {}; + this.attributionScoreDriftThresholds = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91024,75 +92349,147 @@ } /** - * RandomSampleConfig sampleRate. - * @member {number} sampleRate - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * PredictionDriftDetectionConfig driftThresholds. + * @member {Object.} driftThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @instance */ - RandomSampleConfig.prototype.sampleRate = 0; + PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; /** - * Creates a new RandomSampleConfig instance using the specified properties. + * PredictionDriftDetectionConfig attributionScoreDriftThresholds. + * @member {Object.} attributionScoreDriftThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; + + /** + * PredictionDriftDetectionConfig defaultDriftThreshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultDriftThreshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.defaultDriftThreshold = null; + + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig instance + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig instance */ - RandomSampleConfig.create = function create(properties) { - return new RandomSampleConfig(properties); + PredictionDriftDetectionConfig.create = function create(properties) { + return new PredictionDriftDetectionConfig(properties); }; /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RandomSampleConfig.encode = function encode(message, writer) { + PredictionDriftDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.sampleRate); + if (message.driftThresholds != null && Object.hasOwnProperty.call(message, "driftThresholds")) + for (var keys = Object.keys(message.driftThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.driftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.attributionScoreDriftThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreDriftThresholds")) + for (var keys = Object.keys(message.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreDriftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.defaultDriftThreshold != null && Object.hasOwnProperty.call(message, "defaultDriftThreshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultDriftThreshold, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RandomSampleConfig.encodeDelimited = function encodeDelimited(message, writer) { + PredictionDriftDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RandomSampleConfig.decode = function decode(reader, length) { + PredictionDriftDetectionConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sampleRate = reader.double(); + if (message.driftThresholds === $util.emptyObject) + message.driftThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.driftThresholds[key] = value; + break; + } + case 2: { + if (message.attributionScoreDriftThresholds === $util.emptyObject) + message.attributionScoreDriftThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributionScoreDriftThresholds[key] = value; + break; + } + case 5: { + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); break; } default: @@ -91104,443 +92501,744 @@ }; /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RandomSampleConfig.decodeDelimited = function decodeDelimited(reader) { + PredictionDriftDetectionConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RandomSampleConfig message. + * Verifies a PredictionDriftDetectionConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RandomSampleConfig.verify = function verify(message) { + PredictionDriftDetectionConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - if (typeof message.sampleRate !== "number") - return "sampleRate: number expected"; + if (message.driftThresholds != null && message.hasOwnProperty("driftThresholds")) { + if (!$util.isObject(message.driftThresholds)) + return "driftThresholds: object expected"; + var key = Object.keys(message.driftThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.driftThresholds[key[i]]); + if (error) + return "driftThresholds." + error; + } + } + if (message.attributionScoreDriftThresholds != null && message.hasOwnProperty("attributionScoreDriftThresholds")) { + if (!$util.isObject(message.attributionScoreDriftThresholds)) + return "attributionScoreDriftThresholds: object expected"; + var key = Object.keys(message.attributionScoreDriftThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreDriftThresholds[key[i]]); + if (error) + return "attributionScoreDriftThresholds." + error; + } + } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultDriftThreshold); + if (error) + return "defaultDriftThreshold." + error; + } return null; }; /** - * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig */ - RandomSampleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig) + PredictionDriftDetectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); - if (object.sampleRate != null) - message.sampleRate = Number(object.sampleRate); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(); + if (object.driftThresholds) { + if (typeof object.driftThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); + message.driftThresholds = {}; + for (var keys = Object.keys(object.driftThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.driftThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); + message.driftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.driftThresholds[keys[i]]); + } + } + if (object.attributionScoreDriftThresholds) { + if (typeof object.attributionScoreDriftThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); + message.attributionScoreDriftThresholds = {}; + for (var keys = Object.keys(object.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.attributionScoreDriftThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); + message.attributionScoreDriftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreDriftThresholds[keys[i]]); + } + } + if (object.defaultDriftThreshold != null) { + if (typeof object.defaultDriftThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.defaultDriftThreshold: object expected"); + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultDriftThreshold); + } return message; }; /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} message RandomSampleConfig + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} message PredictionDriftDetectionConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RandomSampleConfig.toObject = function toObject(message, options) { + PredictionDriftDetectionConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) { + object.driftThresholds = {}; + object.attributionScoreDriftThresholds = {}; + } if (options.defaults) - object.sampleRate = 0; - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - object.sampleRate = options.json && !isFinite(message.sampleRate) ? String(message.sampleRate) : message.sampleRate; + object.defaultDriftThreshold = null; + var keys2; + if (message.driftThresholds && (keys2 = Object.keys(message.driftThresholds)).length) { + object.driftThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.driftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.driftThresholds[keys2[j]], options); + } + if (message.attributionScoreDriftThresholds && (keys2 = Object.keys(message.attributionScoreDriftThresholds)).length) { + object.attributionScoreDriftThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributionScoreDriftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreDriftThresholds[keys2[j]], options); + } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) + object.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultDriftThreshold, options); return object; }; /** - * Converts this RandomSampleConfig to JSON. + * Converts this PredictionDriftDetectionConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @instance * @returns {Object.} JSON object */ - RandomSampleConfig.prototype.toJSON = function toJSON() { + PredictionDriftDetectionConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RandomSampleConfig + * Gets the default type url for PredictionDriftDetectionConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RandomSampleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredictionDriftDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig"; }; - return RandomSampleConfig; + return PredictionDriftDetectionConfig; })(); - return SamplingStrategy; - })(); - - v1.LineageSubgraph = (function() { + ModelMonitoringObjectiveConfig.ExplanationConfig = (function() { - /** - * Properties of a LineageSubgraph. - * @memberof google.cloud.aiplatform.v1 - * @interface ILineageSubgraph - * @property {Array.|null} [artifacts] LineageSubgraph artifacts - * @property {Array.|null} [executions] LineageSubgraph executions - * @property {Array.|null} [events] LineageSubgraph events - */ + /** + * Properties of an ExplanationConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface IExplanationConfig + * @property {boolean|null} [enableFeatureAttributes] ExplanationConfig enableFeatureAttributes + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null} [explanationBaseline] ExplanationConfig explanationBaseline + */ - /** - * Constructs a new LineageSubgraph. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a LineageSubgraph. - * @implements ILineageSubgraph - * @constructor - * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set - */ - function LineageSubgraph(properties) { - this.artifacts = []; - this.executions = []; - this.events = []; - 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]]; - } + /** + * Constructs a new ExplanationConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents an ExplanationConfig. + * @implements IExplanationConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + */ + function ExplanationConfig(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]]; + } - /** - * LineageSubgraph artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @instance - */ - LineageSubgraph.prototype.artifacts = $util.emptyArray; + /** + * ExplanationConfig enableFeatureAttributes. + * @member {boolean} enableFeatureAttributes + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + */ + ExplanationConfig.prototype.enableFeatureAttributes = false; - /** - * LineageSubgraph executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @instance - */ - LineageSubgraph.prototype.executions = $util.emptyArray; + /** + * ExplanationConfig explanationBaseline. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null|undefined} explanationBaseline + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + */ + ExplanationConfig.prototype.explanationBaseline = null; - /** - * LineageSubgraph events. - * @member {Array.} events - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @instance - */ - LineageSubgraph.prototype.events = $util.emptyArray; + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig instance + */ + ExplanationConfig.create = function create(properties) { + return new ExplanationConfig(properties); + }; - /** - * Creates a new LineageSubgraph instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph instance - */ - LineageSubgraph.create = function create(properties) { - return new LineageSubgraph(properties); - }; + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enableFeatureAttributes != null && Object.hasOwnProperty.call(message, "enableFeatureAttributes")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableFeatureAttributes); + if (message.explanationBaseline != null && Object.hasOwnProperty.call(message, "explanationBaseline")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.encode(message.explanationBaseline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LineageSubgraph.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LineageSubgraph.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LineageSubgraph message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LineageSubgraph.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enableFeatureAttributes = reader.bool(); + break; + } + case 2: { + message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LineageSubgraph.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a LineageSubgraph message. - * @function verify - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LineageSubgraph.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; - } - } - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); + /** + * Verifies an ExplanationConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplanationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) + if (typeof message.enableFeatureAttributes !== "boolean") + return "enableFeatureAttributes: boolean expected"; + if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify(message.explanationBaseline); if (error) - return "executions." + error; + return "explanationBaseline." + error; } - } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); - if (error) - return "events." + error; + return null; + }; + + /** + * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + */ + ExplanationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + if (object.enableFeatureAttributes != null) + message.enableFeatureAttributes = Boolean(object.enableFeatureAttributes); + if (object.explanationBaseline != null) { + if (typeof object.explanationBaseline !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.explanationBaseline: object expected"); + message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.fromObject(object.explanationBaseline); } - } - return null; - }; + return message; + }; - /** - * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph - */ - LineageSubgraph.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.LineageSubgraph) - return object; - var message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} message ExplanationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplanationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enableFeatureAttributes = false; + object.explanationBaseline = null; } - } - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) { - if (typeof object.executions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: object expected"); - message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); + if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) + object.enableFeatureAttributes = message.enableFeatureAttributes; + if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) + object.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.toObject(message.explanationBaseline, options); + return object; + }; + + /** + * Converts this ExplanationConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + * @returns {Object.} JSON object + */ + ExplanationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExplanationConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExplanationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: object expected"); - message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig"; + }; + + ExplanationConfig.ExplanationBaseline = (function() { + + /** + * Properties of an ExplanationBaseline. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @interface IExplanationBaseline + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcs] ExplanationBaseline gcs + * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigquery] ExplanationBaseline bigquery + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null} [predictionFormat] ExplanationBaseline predictionFormat + */ + + /** + * Constructs a new ExplanationBaseline. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @classdesc Represents an ExplanationBaseline. + * @implements IExplanationBaseline + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set + */ + function ExplanationBaseline(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]]; } - } - return message; - }; - /** - * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {google.cloud.aiplatform.v1.LineageSubgraph} message LineageSubgraph - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LineageSubgraph.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.artifacts = []; - object.executions = []; - object.events = []; - } - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); - } - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); - } - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); - } - return object; - }; + /** + * ExplanationBaseline gcs. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcs + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.gcs = null; - /** - * Converts this LineageSubgraph to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @instance - * @returns {Object.} JSON object - */ - LineageSubgraph.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ExplanationBaseline bigquery. + * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigquery + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.bigquery = null; - /** - * Gets the default type url for LineageSubgraph - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LineageSubgraph.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.LineageSubgraph"; - }; + /** + * ExplanationBaseline predictionFormat. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat} predictionFormat + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.predictionFormat = 0; - return LineageSubgraph; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExplanationBaseline destination. + * @member {"gcs"|"bigquery"|undefined} destination + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + Object.defineProperty(ExplanationBaseline.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcs", "bigquery"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline instance + */ + ExplanationBaseline.create = function create(properties) { + return new ExplanationBaseline(properties); + }; + + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationBaseline.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.predictionFormat != null && Object.hasOwnProperty.call(message, "predictionFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.predictionFormat); + if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.bigquery != null && Object.hasOwnProperty.call(message, "bigquery")) + $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigquery, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationBaseline.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationBaseline.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 3: { + message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 1: { + message.predictionFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationBaseline.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExplanationBaseline message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplanationBaseline.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.gcs != null && message.hasOwnProperty("gcs")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcs); + if (error) + return "gcs." + error; + } + } + if (message.bigquery != null && message.hasOwnProperty("bigquery")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigquery); + if (error) + return "bigquery." + error; + } + } + if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) + switch (message.predictionFormat) { + default: + return "predictionFormat: enum value expected"; + case 0: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + */ + ExplanationBaseline.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); + if (object.gcs != null) { + if (typeof object.gcs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.gcs: object expected"); + message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcs); + } + if (object.bigquery != null) { + if (typeof object.bigquery !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.bigquery: object expected"); + message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigquery); + } + switch (object.predictionFormat) { + default: + if (typeof object.predictionFormat === "number") { + message.predictionFormat = object.predictionFormat; + break; + } + break; + case "PREDICTION_FORMAT_UNSPECIFIED": + case 0: + message.predictionFormat = 0; + break; + case "JSONL": + case 2: + message.predictionFormat = 2; + break; + case "BIGQUERY": + case 3: + message.predictionFormat = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} message ExplanationBaseline + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplanationBaseline.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.predictionFormat = options.enums === String ? "PREDICTION_FORMAT_UNSPECIFIED" : 0; + if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) + object.predictionFormat = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] === undefined ? message.predictionFormat : $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] : message.predictionFormat; + if (message.gcs != null && message.hasOwnProperty("gcs")) { + object.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcs, options); + if (options.oneofs) + object.destination = "gcs"; + } + if (message.bigquery != null && message.hasOwnProperty("bigquery")) { + object.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigquery, options); + if (options.oneofs) + object.destination = "bigquery"; + } + return object; + }; + + /** + * Converts this ExplanationBaseline to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + * @returns {Object.} JSON object + */ + ExplanationBaseline.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExplanationBaseline + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExplanationBaseline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline"; + }; + + /** + * PredictionFormat enum. + * @name google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat + * @enum {number} + * @property {number} PREDICTION_FORMAT_UNSPECIFIED=0 PREDICTION_FORMAT_UNSPECIFIED value + * @property {number} JSONL=2 JSONL value + * @property {number} BIGQUERY=3 BIGQUERY value + */ + ExplanationBaseline.PredictionFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PREDICTION_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[2] = "JSONL"] = 2; + values[valuesById[3] = "BIGQUERY"] = 3; + return values; + })(); + + return ExplanationBaseline; + })(); + + return ExplanationConfig; + })(); + + return ModelMonitoringObjectiveConfig; })(); - v1.MetadataSchema = (function() { + v1.ModelMonitoringAlertConfig = (function() { /** - * Properties of a MetadataSchema. + * Properties of a ModelMonitoringAlertConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IMetadataSchema - * @property {string|null} [name] MetadataSchema name - * @property {string|null} [schemaVersion] MetadataSchema schemaVersion - * @property {string|null} [schema] MetadataSchema schema - * @property {google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|null} [schemaType] MetadataSchema schemaType - * @property {google.protobuf.ITimestamp|null} [createTime] MetadataSchema createTime - * @property {string|null} [description] MetadataSchema description + * @interface IModelMonitoringAlertConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null} [emailAlertConfig] ModelMonitoringAlertConfig emailAlertConfig + * @property {boolean|null} [enableLogging] ModelMonitoringAlertConfig enableLogging */ /** - * Constructs a new MetadataSchema. + * Constructs a new ModelMonitoringAlertConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MetadataSchema. - * @implements IMetadataSchema + * @classdesc Represents a ModelMonitoringAlertConfig. + * @implements IModelMonitoringAlertConfig * @constructor - * @param {google.cloud.aiplatform.v1.IMetadataSchema=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set */ - function MetadataSchema(properties) { + function ModelMonitoringAlertConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91548,145 +93246,103 @@ } /** - * MetadataSchema name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.name = ""; - - /** - * MetadataSchema schemaVersion. - * @member {string} schemaVersion - * @memberof google.cloud.aiplatform.v1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.schemaVersion = ""; - - /** - * MetadataSchema schema. - * @member {string} schema - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * ModelMonitoringAlertConfig emailAlertConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - MetadataSchema.prototype.schema = ""; + ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; /** - * MetadataSchema schemaType. - * @member {google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType} schemaType - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * ModelMonitoringAlertConfig enableLogging. + * @member {boolean} enableLogging + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - MetadataSchema.prototype.schemaType = 0; + ModelMonitoringAlertConfig.prototype.enableLogging = false; - /** - * MetadataSchema createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.createTime = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * MetadataSchema description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * ModelMonitoringAlertConfig alert. + * @member {"emailAlertConfig"|undefined} alert + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - MetadataSchema.prototype.description = ""; + Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { + get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new MetadataSchema instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.IMetadataSchema=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema instance + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance */ - MetadataSchema.create = function create(properties) { - return new MetadataSchema(properties); + ModelMonitoringAlertConfig.create = function create(properties) { + return new ModelMonitoringAlertConfig(properties); }; /** - * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.IMetadataSchema} message MetadataSchema message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataSchema.encode = function encode(message, writer) { + ModelMonitoringAlertConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaVersion); - if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.schema); - if (message.schemaType != null && Object.hasOwnProperty.call(message, "schemaType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.schemaType); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.emailAlertConfig != null && Object.hasOwnProperty.call(message, "emailAlertConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.encode(message.emailAlertConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.enableLogging != null && Object.hasOwnProperty.call(message, "enableLogging")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableLogging); return writer; }; /** - * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.IMetadataSchema} message MetadataSchema message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataSchema.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetadataSchema message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataSchema.decode = function decode(reader, length) { + ModelMonitoringAlertConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MetadataSchema(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); break; } case 2: { - message.schemaVersion = reader.string(); - break; - } - case 3: { - message.schema = reader.string(); - break; - } - case 4: { - message.schemaType = reader.int32(); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.description = reader.string(); + message.enableLogging = reader.bool(); break; } default: @@ -91698,1308 +93354,3298 @@ }; /** - * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataSchema.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringAlertConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetadataSchema message. + * Verifies a ModelMonitoringAlertConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetadataSchema.verify = function verify(message) { + ModelMonitoringAlertConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - if (!$util.isString(message.schemaVersion)) - return "schemaVersion: string expected"; - if (message.schema != null && message.hasOwnProperty("schema")) - if (!$util.isString(message.schema)) - return "schema: string expected"; - if (message.schemaType != null && message.hasOwnProperty("schemaType")) - switch (message.schemaType) { - default: - return "schemaType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + var properties = {}; + if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { + properties.alert = 1; + { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify(message.emailAlertConfig); + if (error) + return "emailAlertConfig." + error; } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) + if (typeof message.enableLogging !== "boolean") + return "enableLogging: boolean expected"; return null; }; /** - * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig */ - MetadataSchema.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MetadataSchema) + ModelMonitoringAlertConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.MetadataSchema(); - if (object.name != null) - message.name = String(object.name); - if (object.schemaVersion != null) - message.schemaVersion = String(object.schemaVersion); - if (object.schema != null) - message.schema = String(object.schema); - switch (object.schemaType) { - default: - if (typeof object.schemaType === "number") { - message.schemaType = object.schemaType; - break; - } - break; - case "METADATA_SCHEMA_TYPE_UNSPECIFIED": - case 0: - message.schemaType = 0; - break; - case "ARTIFACT_TYPE": - case 1: - message.schemaType = 1; - break; - case "EXECUTION_TYPE": - case 2: - message.schemaType = 2; - break; - case "CONTEXT_TYPE": - case 3: - message.schemaType = 3; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataSchema.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); + if (object.emailAlertConfig != null) { + if (typeof object.emailAlertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.emailAlertConfig: object expected"); + message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.fromObject(object.emailAlertConfig); } - if (object.description != null) - message.description = String(object.description); + if (object.enableLogging != null) + message.enableLogging = Boolean(object.enableLogging); return message; }; /** - * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.MetadataSchema} message MetadataSchema + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetadataSchema.toObject = function toObject(message, options) { + ModelMonitoringAlertConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.schemaVersion = ""; - object.schema = ""; - object.schemaType = options.enums === String ? "METADATA_SCHEMA_TYPE_UNSPECIFIED" : 0; - object.createTime = null; - object.description = ""; + if (options.defaults) + object.enableLogging = false; + if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { + object.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.toObject(message.emailAlertConfig, options); + if (options.oneofs) + object.alert = "emailAlertConfig"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - object.schemaVersion = message.schemaVersion; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = message.schema; - if (message.schemaType != null && message.hasOwnProperty("schemaType")) - object.schemaType = options.enums === String ? $root.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType[message.schemaType] === undefined ? message.schemaType : $root.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType[message.schemaType] : message.schemaType; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) + object.enableLogging = message.enableLogging; return object; }; /** - * Converts this MetadataSchema to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance * @returns {Object.} JSON object */ - MetadataSchema.prototype.toJSON = function toJSON() { + ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MetadataSchema + * Gets the default type url for ModelMonitoringAlertConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MetadataSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelMonitoringAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataSchema"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig"; }; - /** - * MetadataSchemaType enum. - * @name google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType - * @enum {number} - * @property {number} METADATA_SCHEMA_TYPE_UNSPECIFIED=0 METADATA_SCHEMA_TYPE_UNSPECIFIED value - * @property {number} ARTIFACT_TYPE=1 ARTIFACT_TYPE value - * @property {number} EXECUTION_TYPE=2 EXECUTION_TYPE value - * @property {number} CONTEXT_TYPE=3 CONTEXT_TYPE value - */ - MetadataSchema.MetadataSchemaType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METADATA_SCHEMA_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ARTIFACT_TYPE"] = 1; - values[valuesById[2] = "EXECUTION_TYPE"] = 2; - values[valuesById[3] = "CONTEXT_TYPE"] = 3; - return values; - })(); - - return MetadataSchema; - })(); + ModelMonitoringAlertConfig.EmailAlertConfig = (function() { - v1.MetadataService = (function() { + /** + * Properties of an EmailAlertConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @interface IEmailAlertConfig + * @property {Array.|null} [userEmails] EmailAlertConfig userEmails + */ - /** - * Constructs a new MetadataService service. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MetadataService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function MetadataService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Constructs a new EmailAlertConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @classdesc Represents an EmailAlertConfig. + * @implements IEmailAlertConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set + */ + function EmailAlertConfig(properties) { + this.userEmails = []; + 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]]; + } - (MetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetadataService; + /** + * EmailAlertConfig userEmails. + * @member {Array.} userEmails + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @instance + */ + EmailAlertConfig.prototype.userEmails = $util.emptyArray; - /** - * Creates new MetadataService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.MetadataService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {MetadataService} RPC service. Useful where requests and/or responses are streamed. + /** + * Creates a new EmailAlertConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig instance + */ + EmailAlertConfig.create = function create(properties) { + return new EmailAlertConfig(properties); + }; + + /** + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailAlertConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userEmails != null && message.userEmails.length) + for (var i = 0; i < message.userEmails.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.userEmails[i]); + return writer; + }; + + /** + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailAlertConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.userEmails && message.userEmails.length)) + message.userEmails = []; + message.userEmails.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailAlertConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EmailAlertConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EmailAlertConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userEmails != null && message.hasOwnProperty("userEmails")) { + if (!Array.isArray(message.userEmails)) + return "userEmails: array expected"; + for (var i = 0; i < message.userEmails.length; ++i) + if (!$util.isString(message.userEmails[i])) + return "userEmails: string[] expected"; + } + return null; + }; + + /** + * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + */ + EmailAlertConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); + if (object.userEmails) { + if (!Array.isArray(object.userEmails)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.userEmails: array expected"); + message.userEmails = []; + for (var i = 0; i < object.userEmails.length; ++i) + message.userEmails[i] = String(object.userEmails[i]); + } + return message; + }; + + /** + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} message EmailAlertConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EmailAlertConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.userEmails = []; + if (message.userEmails && message.userEmails.length) { + object.userEmails = []; + for (var j = 0; j < message.userEmails.length; ++j) + object.userEmails[j] = message.userEmails[j]; + } + return object; + }; + + /** + * Converts this EmailAlertConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @instance + * @returns {Object.} JSON object + */ + EmailAlertConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EmailAlertConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EmailAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig"; + }; + + return EmailAlertConfig; + })(); + + return ModelMonitoringAlertConfig; + })(); + + v1.ThresholdConfig = (function() { + + /** + * Properties of a ThresholdConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IThresholdConfig + * @property {number|null} [value] ThresholdConfig value */ - MetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataStore}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Constructs a new ThresholdConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ThresholdConfig. + * @implements IThresholdConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set */ + function ThresholdConfig(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]]; + } /** - * Calls CreateMetadataStore. - * @function createMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService + * ThresholdConfig value. + * @member {number|null|undefined} value + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @instance - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.createMetadataStore = function createMetadataStore(request, callback) { - return this.rpcCall(createMetadataStore, $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateMetadataStore" }); + ThresholdConfig.prototype.value = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Calls CreateMetadataStore. - * @function createMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService + * ThresholdConfig threshold. + * @member {"value"|undefined} threshold + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @instance - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + Object.defineProperty(ThresholdConfig.prototype, "threshold", { + get: $util.oneOfGetter($oneOfFields = ["value"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataStore}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.MetadataStore} [response] MetadataStore + * Creates a new ThresholdConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig instance */ + ThresholdConfig.create = function create(properties) { + return new ThresholdConfig(properties); + }; /** - * Calls GetMetadataStore. - * @function getMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetMetadataStoreCallback} callback Node-style callback called with the error, if any, and MetadataStore - * @returns {undefined} - * @variation 1 + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.getMetadataStore = function getMetadataStore(request, callback) { - return this.rpcCall(getMetadataStore, $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest, $root.google.cloud.aiplatform.v1.MetadataStore, request, callback); - }, "name", { value: "GetMetadataStore" }); + ThresholdConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + return writer; + }; /** - * Calls GetMetadataStore. - * @function getMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataStores}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListMetadataStoresCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListMetadataStoresResponse} [response] ListMetadataStoresResponse + * Decodes a ThresholdConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ThresholdConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListMetadataStores. - * @function listMetadataStores - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListMetadataStoresCallback} callback Node-style callback called with the error, if any, and ListMetadataStoresResponse - * @returns {undefined} - * @variation 1 + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.listMetadataStores = function listMetadataStores(request, callback) { - return this.rpcCall(listMetadataStores, $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest, $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse, request, callback); - }, "name", { value: "ListMetadataStores" }); + ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListMetadataStores. - * @function listMetadataStores - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ThresholdConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ThresholdConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.threshold = 1; + if (typeof message.value !== "number") + return "value: number expected"; + } + return null; + }; + + /** + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig */ + ThresholdConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ThresholdConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); + if (object.value != null) + message.value = Number(object.value); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteMetadataStore}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef DeleteMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1.ThresholdConfig} message ThresholdConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + ThresholdConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (options.oneofs) + object.threshold = "value"; + } + return object; + }; /** - * Calls DeleteMetadataStore. - * @function deleteMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this ThresholdConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @instance - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(MetadataService.prototype.deleteMetadataStore = function deleteMetadataStore(request, callback) { - return this.rpcCall(deleteMetadataStore, $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteMetadataStore" }); + ThresholdConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeleteMetadataStore. - * @function deleteMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for ThresholdConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ThresholdConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ThresholdConfig"; + }; + + return ThresholdConfig; + })(); + + v1.SamplingStrategy = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createArtifact}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact + * Properties of a SamplingStrategy. + * @memberof google.cloud.aiplatform.v1 + * @interface ISamplingStrategy + * @property {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig */ /** - * Calls CreateArtifact. - * @function createArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 + * Constructs a new SamplingStrategy. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SamplingStrategy. + * @implements ISamplingStrategy + * @constructor + * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set */ - Object.defineProperty(MetadataService.prototype.createArtifact = function createArtifact(request, callback) { - return this.rpcCall(createArtifact, $root.google.cloud.aiplatform.v1.CreateArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); - }, "name", { value: "CreateArtifact" }); + function SamplingStrategy(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]]; + } /** - * Calls CreateArtifact. - * @function createArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService + * SamplingStrategy randomSampleConfig. + * @member {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @instance - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + SamplingStrategy.prototype.randomSampleConfig = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getArtifact}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact + * Creates a new SamplingStrategy instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy instance */ + SamplingStrategy.create = function create(properties) { + return new SamplingStrategy(properties); + }; /** - * Calls GetArtifact. - * @function getArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.getArtifact = function getArtifact(request, callback) { - return this.rpcCall(getArtifact, $root.google.cloud.aiplatform.v1.GetArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); - }, "name", { value: "GetArtifact" }); + SamplingStrategy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.randomSampleConfig != null && Object.hasOwnProperty.call(message, "randomSampleConfig")) + $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.encode(message.randomSampleConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * Calls GetArtifact. - * @function getArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listArtifacts}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListArtifactsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListArtifactsResponse} [response] ListArtifactsResponse + * Decodes a SamplingStrategy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + SamplingStrategy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListArtifacts. - * @function listArtifacts - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListArtifactsCallback} callback Node-style callback called with the error, if any, and ListArtifactsResponse - * @returns {undefined} - * @variation 1 + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.listArtifacts = function listArtifacts(request, callback) { - return this.rpcCall(listArtifacts, $root.google.cloud.aiplatform.v1.ListArtifactsRequest, $root.google.cloud.aiplatform.v1.ListArtifactsResponse, request, callback); - }, "name", { value: "ListArtifacts" }); + SamplingStrategy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListArtifacts. - * @function listArtifacts - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a SamplingStrategy message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + SamplingStrategy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) { + var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify(message.randomSampleConfig); + if (error) + return "randomSampleConfig." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateArtifact}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef UpdateArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy */ + SamplingStrategy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy) + return object; + var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); + if (object.randomSampleConfig != null) { + if (typeof object.randomSampleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SamplingStrategy.randomSampleConfig: object expected"); + message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.fromObject(object.randomSampleConfig); + } + return message; + }; /** - * Calls UpdateArtifact. - * @function updateArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.UpdateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy} message SamplingStrategy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.updateArtifact = function updateArtifact(request, callback) { - return this.rpcCall(updateArtifact, $root.google.cloud.aiplatform.v1.UpdateArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); - }, "name", { value: "UpdateArtifact" }); + SamplingStrategy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.randomSampleConfig = null; + if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) + object.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.toObject(message.randomSampleConfig, options); + return object; + }; /** - * Calls UpdateArtifact. - * @function updateArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this SamplingStrategy to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @instance - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + SamplingStrategy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteArtifact}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef DeleteArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Gets the default type url for SamplingStrategy + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SamplingStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy"; + }; + + SamplingStrategy.RandomSampleConfig = (function() { + + /** + * Properties of a RandomSampleConfig. + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @interface IRandomSampleConfig + * @property {number|null} [sampleRate] RandomSampleConfig sampleRate + */ + + /** + * Constructs a new RandomSampleConfig. + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @classdesc Represents a RandomSampleConfig. + * @implements IRandomSampleConfig + * @constructor + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + */ + function RandomSampleConfig(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]]; + } + + /** + * RandomSampleConfig sampleRate. + * @member {number} sampleRate + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @instance + */ + RandomSampleConfig.prototype.sampleRate = 0; + + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig instance + */ + RandomSampleConfig.create = function create(properties) { + return new RandomSampleConfig(properties); + }; + + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RandomSampleConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.sampleRate); + return writer; + }; + + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RandomSampleConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RandomSampleConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sampleRate = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RandomSampleConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RandomSampleConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RandomSampleConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + if (typeof message.sampleRate !== "number") + return "sampleRate: number expected"; + return null; + }; + + /** + * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + */ + RandomSampleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); + if (object.sampleRate != null) + message.sampleRate = Number(object.sampleRate); + return message; + }; + + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} message RandomSampleConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RandomSampleConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.sampleRate = 0; + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + object.sampleRate = options.json && !isFinite(message.sampleRate) ? String(message.sampleRate) : message.sampleRate; + return object; + }; + + /** + * Converts this RandomSampleConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @instance + * @returns {Object.} JSON object + */ + RandomSampleConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RandomSampleConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RandomSampleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig"; + }; + + return RandomSampleConfig; + })(); + + return SamplingStrategy; + })(); + + v1.NasJob = (function() { + + /** + * Properties of a NasJob. + * @memberof google.cloud.aiplatform.v1 + * @interface INasJob + * @property {string|null} [name] NasJob name + * @property {string|null} [displayName] NasJob displayName + * @property {google.cloud.aiplatform.v1.INasJobSpec|null} [nasJobSpec] NasJob nasJobSpec + * @property {google.cloud.aiplatform.v1.INasJobOutput|null} [nasJobOutput] NasJob nasJobOutput + * @property {google.cloud.aiplatform.v1.JobState|null} [state] NasJob state + * @property {google.protobuf.ITimestamp|null} [createTime] NasJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] NasJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] NasJob updateTime + * @property {google.rpc.IStatus|null} [error] NasJob error + * @property {Object.|null} [labels] NasJob labels + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] NasJob encryptionSpec + * @property {boolean|null} [enableRestrictedImageTraining] NasJob enableRestrictedImageTraining + */ + + /** + * Constructs a new NasJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a NasJob. + * @implements INasJob + * @constructor + * @param {google.cloud.aiplatform.v1.INasJob=} [properties] Properties to set */ + function NasJob(properties) { + this.labels = {}; + 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]]; + } /** - * Calls DeleteArtifact. - * @function deleteArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.DeleteArtifactCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.deleteArtifact = function deleteArtifact(request, callback) { - return this.rpcCall(deleteArtifact, $root.google.cloud.aiplatform.v1.DeleteArtifactRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteArtifact" }); + NasJob.prototype.name = ""; /** - * Calls DeleteArtifact. - * @function deleteArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.displayName = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeArtifacts}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef PurgeArtifactsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * NasJob nasJobSpec. + * @member {google.cloud.aiplatform.v1.INasJobSpec|null|undefined} nasJobSpec + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance */ + NasJob.prototype.nasJobSpec = null; /** - * Calls PurgeArtifacts. - * @function purgeArtifacts - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob nasJobOutput. + * @member {google.cloud.aiplatform.v1.INasJobOutput|null|undefined} nasJobOutput + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.PurgeArtifactsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.purgeArtifacts = function purgeArtifacts(request, callback) { - return this.rpcCall(purgeArtifacts, $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeArtifacts" }); + NasJob.prototype.nasJobOutput = null; /** - * Calls PurgeArtifacts. - * @function purgeArtifacts - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob state. + * @member {google.cloud.aiplatform.v1.JobState} state + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.state = 0; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createContext}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Context} [response] Context + * NasJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance */ + NasJob.prototype.createTime = null; /** - * Calls CreateContext. - * @function createContext - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.ICreateContextRequest} request CreateContextRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.createContext = function createContext(request, callback) { - return this.rpcCall(createContext, $root.google.cloud.aiplatform.v1.CreateContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); - }, "name", { value: "CreateContext" }); + NasJob.prototype.startTime = null; /** - * Calls CreateContext. - * @function createContext - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.ICreateContextRequest} request CreateContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.endTime = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getContext}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Context} [response] Context - */ - - /** - * Calls GetContext. - * @function getContext - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IGetContextRequest} request GetContextRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.getContext = function getContext(request, callback) { - return this.rpcCall(getContext, $root.google.cloud.aiplatform.v1.GetContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); - }, "name", { value: "GetContext" }); + NasJob.prototype.updateTime = null; /** - * Calls GetContext. - * @function getContext - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IGetContextRequest} request GetContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.error = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listContexts}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListContextsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListContextsResponse} [response] ListContextsResponse + * NasJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance */ + NasJob.prototype.labels = $util.emptyObject; /** - * Calls ListContexts. - * @function listContexts - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IListContextsRequest} request ListContextsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListContextsCallback} callback Node-style callback called with the error, if any, and ListContextsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.listContexts = function listContexts(request, callback) { - return this.rpcCall(listContexts, $root.google.cloud.aiplatform.v1.ListContextsRequest, $root.google.cloud.aiplatform.v1.ListContextsResponse, request, callback); - }, "name", { value: "ListContexts" }); + NasJob.prototype.encryptionSpec = null; /** - * Calls ListContexts. - * @function listContexts - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob enableRestrictedImageTraining. + * @member {boolean} enableRestrictedImageTraining + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IListContextsRequest} request ListContextsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.enableRestrictedImageTraining = false; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateContext}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef UpdateContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Context} [response] Context + * Creates a new NasJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {google.cloud.aiplatform.v1.INasJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob instance */ + NasJob.create = function create(properties) { + return new NasJob(properties); + }; /** - * Calls UpdateContext. - * @function updateContext - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} request UpdateContextRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.UpdateContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {google.cloud.aiplatform.v1.INasJob} message NasJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.updateContext = function updateContext(request, callback) { - return this.rpcCall(updateContext, $root.google.cloud.aiplatform.v1.UpdateContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); - }, "name", { value: "UpdateContext" }); + NasJob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.nasJobSpec != null && Object.hasOwnProperty.call(message, "nasJobSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.encode(message.nasJobSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.nasJobOutput != null && Object.hasOwnProperty.call(message, "nasJobOutput")) + $root.google.cloud.aiplatform.v1.NasJobOutput.encode(message.nasJobOutput, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.enableRestrictedImageTraining != null && Object.hasOwnProperty.call(message, "enableRestrictedImageTraining")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableRestrictedImageTraining); + return writer; + }; /** - * Calls UpdateContext. - * @function updateContext - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} request UpdateContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {google.cloud.aiplatform.v1.INasJob} message NasJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + NasJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteContext}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef DeleteContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a NasJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NasJob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJob(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 4: { + message.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.decode(reader, reader.uint32()); + break; + } + case 5: { + message.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.decode(reader, reader.uint32()); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 10: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 12: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 13: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 14: { + message.enableRestrictedImageTraining = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DeleteContext. - * @function deleteContext - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} request DeleteContextRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.DeleteContextCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes a NasJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.deleteContext = function deleteContext(request, callback) { - return this.rpcCall(deleteContext, $root.google.cloud.aiplatform.v1.DeleteContextRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteContext" }); + NasJob.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteContext. - * @function deleteContext - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} request DeleteContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a NasJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + NasJob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.verify(message.nasJobSpec); + if (error) + return "nasJobSpec." + error; + } + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) { + var error = $root.google.cloud.aiplatform.v1.NasJobOutput.verify(message.nasJobOutput); + if (error) + return "nasJobOutput." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + if (typeof message.enableRestrictedImageTraining !== "boolean") + return "enableRestrictedImageTraining: boolean expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeContexts}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef PurgeContextsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob */ + NasJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJob) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.nasJobSpec != null) { + if (typeof object.nasJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.nasJobSpec: object expected"); + message.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.fromObject(object.nasJobSpec); + } + if (object.nasJobOutput != null) { + if (typeof object.nasJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.nasJobOutput: object expected"); + message.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.fromObject(object.nasJobOutput); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.enableRestrictedImageTraining != null) + message.enableRestrictedImageTraining = Boolean(object.enableRestrictedImageTraining); + return message; + }; /** - * Calls PurgeContexts. - * @function purgeContexts - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.PurgeContextsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a NasJob message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {google.cloud.aiplatform.v1.NasJob} message NasJob + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.purgeContexts = function purgeContexts(request, callback) { - return this.rpcCall(purgeContexts, $root.google.cloud.aiplatform.v1.PurgeContextsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeContexts" }); + NasJob.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.nasJobSpec = null; + object.nasJobOutput = null; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.error = null; + object.encryptionSpec = null; + object.enableRestrictedImageTraining = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) + object.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.toObject(message.nasJobSpec, options); + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) + object.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.toObject(message.nasJobOutput, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + object.enableRestrictedImageTraining = message.enableRestrictedImageTraining; + return object; + }; /** - * Calls PurgeContexts. - * @function purgeContexts - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this NasJob to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + NasJob.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextArtifactsAndExecutions}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef AddContextArtifactsAndExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} [response] AddContextArtifactsAndExecutionsResponse + * Gets the default type url for NasJob + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + NasJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJob"; + }; - /** - * Calls AddContextArtifactsAndExecutions. - * @function addContextArtifactsAndExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutionsCallback} callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.addContextArtifactsAndExecutions = function addContextArtifactsAndExecutions(request, callback) { - return this.rpcCall(addContextArtifactsAndExecutions, $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest, $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse, request, callback); - }, "name", { value: "AddContextArtifactsAndExecutions" }); + return NasJob; + })(); - /** - * Calls AddContextArtifactsAndExecutions. - * @function addContextArtifactsAndExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1.NasTrialDetail = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextChildren}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef AddContextChildrenCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.AddContextChildrenResponse} [response] AddContextChildrenResponse + * Properties of a NasTrialDetail. + * @memberof google.cloud.aiplatform.v1 + * @interface INasTrialDetail + * @property {string|null} [name] NasTrialDetail name + * @property {string|null} [parameters] NasTrialDetail parameters + * @property {google.cloud.aiplatform.v1.INasTrial|null} [searchTrial] NasTrialDetail searchTrial + * @property {google.cloud.aiplatform.v1.INasTrial|null} [trainTrial] NasTrialDetail trainTrial */ /** - * Calls AddContextChildren. - * @function addContextChildren - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.AddContextChildrenCallback} callback Node-style callback called with the error, if any, and AddContextChildrenResponse - * @returns {undefined} - * @variation 1 + * Constructs a new NasTrialDetail. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a NasTrialDetail. + * @implements INasTrialDetail + * @constructor + * @param {google.cloud.aiplatform.v1.INasTrialDetail=} [properties] Properties to set */ - Object.defineProperty(MetadataService.prototype.addContextChildren = function addContextChildren(request, callback) { - return this.rpcCall(addContextChildren, $root.google.cloud.aiplatform.v1.AddContextChildrenRequest, $root.google.cloud.aiplatform.v1.AddContextChildrenResponse, request, callback); - }, "name", { value: "AddContextChildren" }); + function NasTrialDetail(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]]; + } /** - * Calls AddContextChildren. - * @function addContextChildren - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasTrialDetail name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasTrialDetail.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef RemoveContextChildrenCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} [response] RemoveContextChildrenResponse + * NasTrialDetail parameters. + * @member {string} parameters + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @instance */ + NasTrialDetail.prototype.parameters = ""; /** - * Calls RemoveContextChildren. - * @function removeContextChildren - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasTrialDetail searchTrial. + * @member {google.cloud.aiplatform.v1.INasTrial|null|undefined} searchTrial + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback} callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.removeContextChildren = function removeContextChildren(request, callback) { - return this.rpcCall(removeContextChildren, $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest, $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse, request, callback); - }, "name", { value: "RemoveContextChildren" }); + NasTrialDetail.prototype.searchTrial = null; /** - * Calls RemoveContextChildren. - * @function removeContextChildren - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasTrialDetail trainTrial. + * @member {google.cloud.aiplatform.v1.INasTrial|null|undefined} trainTrial + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasTrialDetail.prototype.trainTrial = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef QueryContextLineageSubgraphCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph + * Creates a new NasTrialDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {google.cloud.aiplatform.v1.INasTrialDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail instance */ + NasTrialDetail.create = function create(properties) { + return new NasTrialDetail(properties); + }; /** - * Calls QueryContextLineageSubgraph. - * @function queryContextLineageSubgraph - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {google.cloud.aiplatform.v1.INasTrialDetail} message NasTrialDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.queryContextLineageSubgraph = function queryContextLineageSubgraph(request, callback) { - return this.rpcCall(queryContextLineageSubgraph, $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); - }, "name", { value: "QueryContextLineageSubgraph" }); + NasTrialDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameters); + if (message.searchTrial != null && Object.hasOwnProperty.call(message, "searchTrial")) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.searchTrial, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrial != null && Object.hasOwnProperty.call(message, "trainTrial")) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.trainTrial, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; /** - * Calls QueryContextLineageSubgraph. - * @function queryContextLineageSubgraph - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {google.cloud.aiplatform.v1.INasTrialDetail} message NasTrialDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + NasTrialDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createExecution}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Execution} [response] Execution + * Decodes a NasTrialDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NasTrialDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasTrialDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.parameters = reader.string(); + break; + } + case 3: { + message.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls CreateExecution. - * @function createExecution - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.createExecution = function createExecution(request, callback) { - return this.rpcCall(createExecution, $root.google.cloud.aiplatform.v1.CreateExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); - }, "name", { value: "CreateExecution" }); + NasTrialDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CreateExecution. - * @function createExecution - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a NasTrialDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + NasTrialDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) + if (!$util.isString(message.parameters)) + return "parameters: string expected"; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.searchTrial); + if (error) + return "searchTrial." + error; + } + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.trainTrial); + if (error) + return "trainTrial." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getExecution}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Execution} [response] Execution + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail */ + NasTrialDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasTrialDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasTrialDetail(); + if (object.name != null) + message.name = String(object.name); + if (object.parameters != null) + message.parameters = String(object.parameters); + if (object.searchTrial != null) { + if (typeof object.searchTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrialDetail.searchTrial: object expected"); + message.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.searchTrial); + } + if (object.trainTrial != null) { + if (typeof object.trainTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrialDetail.trainTrial: object expected"); + message.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.trainTrial); + } + return message; + }; /** - * Calls GetExecution. - * @function getExecution - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} request GetExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {google.cloud.aiplatform.v1.NasTrialDetail} message NasTrialDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.getExecution = function getExecution(request, callback) { - return this.rpcCall(getExecution, $root.google.cloud.aiplatform.v1.GetExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); - }, "name", { value: "GetExecution" }); + NasTrialDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parameters = ""; + object.searchTrial = null; + object.trainTrial = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = message.parameters; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) + object.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.searchTrial, options); + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) + object.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.trainTrial, options); + return object; + }; /** - * Calls GetExecution. - * @function getExecution - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this NasTrialDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} request GetExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + NasTrialDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listExecutions}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListExecutionsResponse} [response] ListExecutionsResponse + * Gets the default type url for NasTrialDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + NasTrialDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasTrialDetail"; + }; - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} request ListExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ListExecutionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.listExecutions = function listExecutions(request, callback) { - return this.rpcCall(listExecutions, $root.google.cloud.aiplatform.v1.ListExecutionsRequest, $root.google.cloud.aiplatform.v1.ListExecutionsResponse, request, callback); - }, "name", { value: "ListExecutions" }); + return NasTrialDetail; + })(); - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} request ListExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1.NasJobSpec = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateExecution}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef UpdateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Execution} [response] Execution + * Properties of a NasJobSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface INasJobSpec + * @property {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null} [multiTrialAlgorithmSpec] NasJobSpec multiTrialAlgorithmSpec + * @property {string|null} [resumeNasJobId] NasJobSpec resumeNasJobId + * @property {string|null} [searchSpaceSpec] NasJobSpec searchSpaceSpec */ /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 + * Constructs a new NasJobSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a NasJobSpec. + * @implements INasJobSpec + * @constructor + * @param {google.cloud.aiplatform.v1.INasJobSpec=} [properties] Properties to set */ - Object.defineProperty(MetadataService.prototype.updateExecution = function updateExecution(request, callback) { - return this.rpcCall(updateExecution, $root.google.cloud.aiplatform.v1.UpdateExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); - }, "name", { value: "UpdateExecution" }); + function NasJobSpec(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]]; + } /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJobSpec multiTrialAlgorithmSpec. + * @member {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null|undefined} multiTrialAlgorithmSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteExecution}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef DeleteExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + NasJobSpec.prototype.multiTrialAlgorithmSpec = null; /** - * Calls DeleteExecution. - * @function deleteExecution - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJobSpec resumeNasJobId. + * @member {string} resumeNasJobId + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.DeleteExecutionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.deleteExecution = function deleteExecution(request, callback) { - return this.rpcCall(deleteExecution, $root.google.cloud.aiplatform.v1.DeleteExecutionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteExecution" }); + NasJobSpec.prototype.resumeNasJobId = ""; /** - * Calls DeleteExecution. - * @function deleteExecution - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJobSpec searchSpaceSpec. + * @member {string} searchSpaceSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJobSpec.prototype.searchSpaceSpec = ""; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeExecutions}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef PurgeExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Calls PurgeExecutions. - * @function purgeExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJobSpec nasAlgorithmSpec. + * @member {"multiTrialAlgorithmSpec"|undefined} nasAlgorithmSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.PurgeExecutionsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.purgeExecutions = function purgeExecutions(request, callback) { - return this.rpcCall(purgeExecutions, $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeExecutions" }); + Object.defineProperty(NasJobSpec.prototype, "nasAlgorithmSpec", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialAlgorithmSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Calls PurgeExecutions. - * @function purgeExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new NasJobSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {google.cloud.aiplatform.v1.INasJobSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec instance */ + NasJobSpec.create = function create(properties) { + return new NasJobSpec(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addExecutionEvents}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef AddExecutionEventsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.AddExecutionEventsResponse} [response] AddExecutionEventsResponse + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {google.cloud.aiplatform.v1.INasJobSpec} message NasJobSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + NasJobSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchSpaceSpec != null && Object.hasOwnProperty.call(message, "searchSpaceSpec")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.searchSpaceSpec); + if (message.multiTrialAlgorithmSpec != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithmSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.encode(message.multiTrialAlgorithmSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resumeNasJobId != null && Object.hasOwnProperty.call(message, "resumeNasJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resumeNasJobId); + return writer; + }; /** - * Calls AddExecutionEvents. - * @function addExecutionEvents - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.AddExecutionEventsCallback} callback Node-style callback called with the error, if any, and AddExecutionEventsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {google.cloud.aiplatform.v1.INasJobSpec} message NasJobSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.addExecutionEvents = function addExecutionEvents(request, callback) { - return this.rpcCall(addExecutionEvents, $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest, $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse, request, callback); - }, "name", { value: "AddExecutionEvents" }); + NasJobSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls AddExecutionEvents. - * @function addExecutionEvents - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a NasJobSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NasJobSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.decode(reader, reader.uint32()); + break; + } + case 3: { + message.resumeNasJobId = reader.string(); + break; + } + case 1: { + message.searchSpaceSpec = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryExecutionInputsAndOutputs}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef QueryExecutionInputsAndOutputsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NasJobSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls QueryExecutionInputsAndOutputs. - * @function queryExecutionInputsAndOutputs - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputsCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 + * Verifies a NasJobSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(MetadataService.prototype.queryExecutionInputsAndOutputs = function queryExecutionInputsAndOutputs(request, callback) { - return this.rpcCall(queryExecutionInputsAndOutputs, $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); - }, "name", { value: "QueryExecutionInputsAndOutputs" }); + NasJobSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + properties.nasAlgorithmSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify(message.multiTrialAlgorithmSpec); + if (error) + return "multiTrialAlgorithmSpec." + error; + } + } + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + if (!$util.isString(message.resumeNasJobId)) + return "resumeNasJobId: string expected"; + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + if (!$util.isString(message.searchSpaceSpec)) + return "searchSpaceSpec: string expected"; + return null; + }; /** - * Calls QueryExecutionInputsAndOutputs. - * @function queryExecutionInputsAndOutputs - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec */ + NasJobSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec(); + if (object.multiTrialAlgorithmSpec != null) { + if (typeof object.multiTrialAlgorithmSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.multiTrialAlgorithmSpec: object expected"); + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.fromObject(object.multiTrialAlgorithmSpec); + } + if (object.resumeNasJobId != null) + message.resumeNasJobId = String(object.resumeNasJobId); + if (object.searchSpaceSpec != null) + message.searchSpaceSpec = String(object.searchSpaceSpec); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataSchema}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateMetadataSchemaCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.MetadataSchema} [response] MetadataSchema + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec} message NasJobSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + NasJobSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.searchSpaceSpec = ""; + object.resumeNasJobId = ""; + } + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + object.searchSpaceSpec = message.searchSpaceSpec; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + object.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.toObject(message.multiTrialAlgorithmSpec, options); + if (options.oneofs) + object.nasAlgorithmSpec = "multiTrialAlgorithmSpec"; + } + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + object.resumeNasJobId = message.resumeNasJobId; + return object; + }; /** - * Calls CreateMetadataSchema. - * @function createMetadataSchema - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this NasJobSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(MetadataService.prototype.createMetadataSchema = function createMetadataSchema(request, callback) { - return this.rpcCall(createMetadataSchema, $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest, $root.google.cloud.aiplatform.v1.MetadataSchema, request, callback); - }, "name", { value: "CreateMetadataSchema" }); + NasJobSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls CreateMetadataSchema. - * @function createMetadataSchema - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for NasJobSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + NasJobSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec"; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataSchema}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetMetadataSchemaCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.MetadataSchema} [response] MetadataSchema - */ + NasJobSpec.MultiTrialAlgorithmSpec = (function() { - /** - * Calls GetMetadataSchema. - * @function getMetadataSchema - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.getMetadataSchema = function getMetadataSchema(request, callback) { - return this.rpcCall(getMetadataSchema, $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest, $root.google.cloud.aiplatform.v1.MetadataSchema, request, callback); - }, "name", { value: "GetMetadataSchema" }); + /** + * Properties of a MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @interface IMultiTrialAlgorithmSpec + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null} [multiTrialAlgorithm] MultiTrialAlgorithmSpec multiTrialAlgorithm + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null} [metric] MultiTrialAlgorithmSpec metric + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null} [searchTrialSpec] MultiTrialAlgorithmSpec searchTrialSpec + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null} [trainTrialSpec] MultiTrialAlgorithmSpec trainTrialSpec + */ - /** - * Calls GetMetadataSchema. - * @function getMetadataSchema - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Constructs a new MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @classdesc Represents a MultiTrialAlgorithmSpec. + * @implements IMultiTrialAlgorithmSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set + */ + function MultiTrialAlgorithmSpec(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]]; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataSchemas}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListMetadataSchemasCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} [response] ListMetadataSchemasResponse - */ + /** + * MultiTrialAlgorithmSpec multiTrialAlgorithm. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm} multiTrialAlgorithm + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.multiTrialAlgorithm = 0; - /** - * Calls ListMetadataSchemas. - * @function listMetadataSchemas - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemasCallback} callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.listMetadataSchemas = function listMetadataSchemas(request, callback) { - return this.rpcCall(listMetadataSchemas, $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest, $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse, request, callback); - }, "name", { value: "ListMetadataSchemas" }); + /** + * MultiTrialAlgorithmSpec metric. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null|undefined} metric + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.metric = null; - /** - * Calls ListMetadataSchemas. - * @function listMetadataSchemas - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * MultiTrialAlgorithmSpec searchTrialSpec. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null|undefined} searchTrialSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.searchTrialSpec = null; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryArtifactLineageSubgraph}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef QueryArtifactLineageSubgraphCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph - */ + /** + * MultiTrialAlgorithmSpec trainTrialSpec. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null|undefined} trainTrialSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.trainTrialSpec = null; - /** - * Calls QueryArtifactLineageSubgraph. - * @function queryArtifactLineageSubgraph - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.queryArtifactLineageSubgraph = function queryArtifactLineageSubgraph(request, callback) { - return this.rpcCall(queryArtifactLineageSubgraph, $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); - }, "name", { value: "QueryArtifactLineageSubgraph" }); + /** + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec instance + */ + MultiTrialAlgorithmSpec.create = function create(properties) { + return new MultiTrialAlgorithmSpec(properties); + }; - /** - * Calls QueryArtifactLineageSubgraph. - * @function queryArtifactLineageSubgraph - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialAlgorithmSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.multiTrialAlgorithm != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithm")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.multiTrialAlgorithm); + if (message.metric != null && Object.hasOwnProperty.call(message, "metric")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.encode(message.metric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.searchTrialSpec != null && Object.hasOwnProperty.call(message, "searchTrialSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.encode(message.searchTrialSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrialSpec != null && Object.hasOwnProperty.call(message, "trainTrialSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.encode(message.trainTrialSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - return MetadataService; + /** + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialAlgorithmSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialAlgorithmSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.multiTrialAlgorithm = reader.int32(); + break; + } + case 2: { + message.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.decode(reader, reader.uint32()); + break; + } + case 3: { + message.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialAlgorithmSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MultiTrialAlgorithmSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiTrialAlgorithmSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + switch (message.multiTrialAlgorithm) { + default: + return "multiTrialAlgorithm: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.metric != null && message.hasOwnProperty("metric")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify(message.metric); + if (error) + return "metric." + error; + } + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify(message.searchTrialSpec); + if (error) + return "searchTrialSpec." + error; + } + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify(message.trainTrialSpec); + if (error) + return "trainTrialSpec." + error; + } + return null; + }; + + /** + * Creates a MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + */ + MultiTrialAlgorithmSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec(); + switch (object.multiTrialAlgorithm) { + default: + if (typeof object.multiTrialAlgorithm === "number") { + message.multiTrialAlgorithm = object.multiTrialAlgorithm; + break; + } + break; + case "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": + case 0: + message.multiTrialAlgorithm = 0; + break; + case "REINFORCEMENT_LEARNING": + case 1: + message.multiTrialAlgorithm = 1; + break; + case "GRID_SEARCH": + case 2: + message.multiTrialAlgorithm = 2; + break; + } + if (object.metric != null) { + if (typeof object.metric !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.metric: object expected"); + message.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.fromObject(object.metric); + } + if (object.searchTrialSpec != null) { + if (typeof object.searchTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.searchTrialSpec: object expected"); + message.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.fromObject(object.searchTrialSpec); + } + if (object.trainTrialSpec != null) { + if (typeof object.trainTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.trainTrialSpec: object expected"); + message.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.fromObject(object.trainTrialSpec); + } + return message; + }; + + /** + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiTrialAlgorithmSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.multiTrialAlgorithm = options.enums === String ? "MULTI_TRIAL_ALGORITHM_UNSPECIFIED" : 0; + object.metric = null; + object.searchTrialSpec = null; + object.trainTrialSpec = null; + } + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + object.multiTrialAlgorithm = options.enums === String ? $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] === undefined ? message.multiTrialAlgorithm : $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] : message.multiTrialAlgorithm; + if (message.metric != null && message.hasOwnProperty("metric")) + object.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.toObject(message.metric, options); + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) + object.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.toObject(message.searchTrialSpec, options); + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) + object.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.toObject(message.trainTrialSpec, options); + return object; + }; + + /** + * Converts this MultiTrialAlgorithmSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + * @returns {Object.} JSON object + */ + MultiTrialAlgorithmSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MultiTrialAlgorithmSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiTrialAlgorithmSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec"; + }; + + MultiTrialAlgorithmSpec.MetricSpec = (function() { + + /** + * Properties of a MetricSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface IMetricSpec + * @property {string|null} [metricId] MetricSpec metricId + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + */ + + /** + * Constructs a new MetricSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a MetricSpec. + * @implements IMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + */ + function MetricSpec(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]]; + } + + /** + * MetricSpec metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.metricId = ""; + + /** + * MetricSpec goal. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType} goal + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.goal = 0; + + /** + * Creates a new MetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec instance + */ + MetricSpec.create = function create(properties) { + return new MetricSpec(properties); + }; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + return writer; + }; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricId = reader.string(); + break; + } + case 2: { + message.goal = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.goal != null && message.hasOwnProperty("goal")) + switch (message.goal) { + default: + return "goal: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + */ + MetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + if (object.metricId != null) + message.metricId = String(object.metricId); + switch (object.goal) { + default: + if (typeof object.goal === "number") { + message.goal = object.goal; + break; + } + break; + case "GOAL_TYPE_UNSPECIFIED": + case 0: + message.goal = 0; + break; + case "MAXIMIZE": + case 1: + message.goal = 1; + break; + case "MINIMIZE": + case 2: + message.goal = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} message MetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.goal != null && message.hasOwnProperty("goal")) + object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] : message.goal; + return object; + }; + + /** + * Converts this MetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + * @returns {Object.} JSON object + */ + MetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec"; + }; + + /** + * GoalType enum. + * @name google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType + * @enum {number} + * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value + * @property {number} MAXIMIZE=1 MAXIMIZE value + * @property {number} MINIMIZE=2 MINIMIZE value + */ + MetricSpec.GoalType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MAXIMIZE"] = 1; + values[valuesById[2] = "MINIMIZE"] = 2; + return values; + })(); + + return MetricSpec; + })(); + + MultiTrialAlgorithmSpec.SearchTrialSpec = (function() { + + /** + * Properties of a SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ISearchTrialSpec + * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [searchTrialJobSpec] SearchTrialSpec searchTrialJobSpec + * @property {number|null} [maxTrialCount] SearchTrialSpec maxTrialCount + * @property {number|null} [maxParallelTrialCount] SearchTrialSpec maxParallelTrialCount + * @property {number|null} [maxFailedTrialCount] SearchTrialSpec maxFailedTrialCount + */ + + /** + * Constructs a new SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a SearchTrialSpec. + * @implements ISearchTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + */ + function SearchTrialSpec(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]]; + } + + /** + * SearchTrialSpec searchTrialJobSpec. + * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} searchTrialJobSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.searchTrialJobSpec = null; + + /** + * SearchTrialSpec maxTrialCount. + * @member {number} maxTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxTrialCount = 0; + + /** + * SearchTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * SearchTrialSpec maxFailedTrialCount. + * @member {number} maxFailedTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxFailedTrialCount = 0; + + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec instance + */ + SearchTrialSpec.create = function create(properties) { + return new SearchTrialSpec(properties); + }; + + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchTrialJobSpec != null && Object.hasOwnProperty.call(message, "searchTrialJobSpec")) + $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.searchTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxTrialCount); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxParallelTrialCount); + if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxFailedTrialCount); + return writer; + }; + + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maxTrialCount = reader.int32(); + break; + } + case 3: { + message.maxParallelTrialCount = reader.int32(); + break; + } + case 4: { + message.maxFailedTrialCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.searchTrialJobSpec); + if (error) + return "searchTrialJobSpec." + error; + } + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + if (!$util.isInteger(message.maxTrialCount)) + return "maxTrialCount: integer expected"; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + if (!$util.isInteger(message.maxFailedTrialCount)) + return "maxFailedTrialCount: integer expected"; + return null; + }; + + /** + * Creates a SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + */ + SearchTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + if (object.searchTrialJobSpec != null) { + if (typeof object.searchTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.searchTrialJobSpec: object expected"); + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.searchTrialJobSpec); + } + if (object.maxTrialCount != null) + message.maxTrialCount = object.maxTrialCount | 0; + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.maxFailedTrialCount != null) + message.maxFailedTrialCount = object.maxFailedTrialCount | 0; + return message; + }; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} message SearchTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.searchTrialJobSpec = null; + object.maxTrialCount = 0; + object.maxParallelTrialCount = 0; + object.maxFailedTrialCount = 0; + } + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) + object.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.searchTrialJobSpec, options); + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + object.maxTrialCount = message.maxTrialCount; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + object.maxFailedTrialCount = message.maxFailedTrialCount; + return object; + }; + + /** + * Converts this SearchTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + * @returns {Object.} JSON object + */ + SearchTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec"; + }; + + return SearchTrialSpec; + })(); + + MultiTrialAlgorithmSpec.TrainTrialSpec = (function() { + + /** + * Properties of a TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ITrainTrialSpec + * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [trainTrialJobSpec] TrainTrialSpec trainTrialJobSpec + * @property {number|null} [maxParallelTrialCount] TrainTrialSpec maxParallelTrialCount + * @property {number|null} [frequency] TrainTrialSpec frequency + */ + + /** + * Constructs a new TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a TrainTrialSpec. + * @implements ITrainTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + */ + function TrainTrialSpec(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]]; + } + + /** + * TrainTrialSpec trainTrialJobSpec. + * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} trainTrialJobSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.trainTrialJobSpec = null; + + /** + * TrainTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * TrainTrialSpec frequency. + * @member {number} frequency + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.frequency = 0; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec instance + */ + TrainTrialSpec.create = function create(properties) { + return new TrainTrialSpec(properties); + }; + + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainTrialJobSpec != null && Object.hasOwnProperty.call(message, "trainTrialJobSpec")) + $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.trainTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxParallelTrialCount); + if (message.frequency != null && Object.hasOwnProperty.call(message, "frequency")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.frequency); + return writer; + }; + + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maxParallelTrialCount = reader.int32(); + break; + } + case 3: { + message.frequency = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TrainTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.trainTrialJobSpec); + if (error) + return "trainTrialJobSpec." + error; + } + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.frequency != null && message.hasOwnProperty("frequency")) + if (!$util.isInteger(message.frequency)) + return "frequency: integer expected"; + return null; + }; + + /** + * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + */ + TrainTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + if (object.trainTrialJobSpec != null) { + if (typeof object.trainTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.trainTrialJobSpec: object expected"); + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.trainTrialJobSpec); + } + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.frequency != null) + message.frequency = object.frequency | 0; + return message; + }; + + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} message TrainTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainTrialJobSpec = null; + object.maxParallelTrialCount = 0; + object.frequency = 0; + } + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) + object.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.trainTrialJobSpec, options); + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.frequency != null && message.hasOwnProperty("frequency")) + object.frequency = message.frequency; + return object; + }; + + /** + * Converts this TrainTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + * @returns {Object.} JSON object + */ + TrainTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TrainTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec"; + }; + + return TrainTrialSpec; + })(); + + /** + * MultiTrialAlgorithm enum. + * @name google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm + * @enum {number} + * @property {number} MULTI_TRIAL_ALGORITHM_UNSPECIFIED=0 MULTI_TRIAL_ALGORITHM_UNSPECIFIED value + * @property {number} REINFORCEMENT_LEARNING=1 REINFORCEMENT_LEARNING value + * @property {number} GRID_SEARCH=2 GRID_SEARCH value + */ + MultiTrialAlgorithmSpec.MultiTrialAlgorithm = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MULTI_TRIAL_ALGORITHM_UNSPECIFIED"] = 0; + values[valuesById[1] = "REINFORCEMENT_LEARNING"] = 1; + values[valuesById[2] = "GRID_SEARCH"] = 2; + return values; + })(); + + return MultiTrialAlgorithmSpec; + })(); + + return NasJobSpec; })(); - v1.CreateMetadataStoreRequest = (function() { + v1.NasJobOutput = (function() { /** - * Properties of a CreateMetadataStoreRequest. + * Properties of a NasJobOutput. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateMetadataStoreRequest - * @property {string|null} [parent] CreateMetadataStoreRequest parent - * @property {google.cloud.aiplatform.v1.IMetadataStore|null} [metadataStore] CreateMetadataStoreRequest metadataStore - * @property {string|null} [metadataStoreId] CreateMetadataStoreRequest metadataStoreId + * @interface INasJobOutput + * @property {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null} [multiTrialJobOutput] NasJobOutput multiTrialJobOutput */ /** - * Constructs a new CreateMetadataStoreRequest. + * Constructs a new NasJobOutput. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateMetadataStoreRequest. - * @implements ICreateMetadataStoreRequest + * @classdesc Represents a NasJobOutput. + * @implements INasJobOutput * @constructor - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.INasJobOutput=} [properties] Properties to set */ - function CreateMetadataStoreRequest(properties) { + function NasJobOutput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93007,103 +96653,89 @@ } /** - * CreateMetadataStoreRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * NasJobOutput multiTrialJobOutput. + * @member {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null|undefined} multiTrialJobOutput + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @instance */ - CreateMetadataStoreRequest.prototype.parent = ""; + NasJobOutput.prototype.multiTrialJobOutput = null; - /** - * CreateMetadataStoreRequest metadataStore. - * @member {google.cloud.aiplatform.v1.IMetadataStore|null|undefined} metadataStore - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest - * @instance - */ - CreateMetadataStoreRequest.prototype.metadataStore = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CreateMetadataStoreRequest metadataStoreId. - * @member {string} metadataStoreId - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * NasJobOutput output. + * @member {"multiTrialJobOutput"|undefined} output + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @instance */ - CreateMetadataStoreRequest.prototype.metadataStoreId = ""; + Object.defineProperty(NasJobOutput.prototype, "output", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialJobOutput"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CreateMetadataStoreRequest instance using the specified properties. + * Creates a new NasJobOutput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1.INasJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput instance */ - CreateMetadataStoreRequest.create = function create(properties) { - return new CreateMetadataStoreRequest(properties); + NasJobOutput.create = function create(properties) { + return new NasJobOutput(properties); }; /** - * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasJobOutput} message NasJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreRequest.encode = function encode(message, writer) { + NasJobOutput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.metadataStore != null && Object.hasOwnProperty.call(message, "metadataStore")) - $root.google.cloud.aiplatform.v1.MetadataStore.encode(message.metadataStore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadataStoreId != null && Object.hasOwnProperty.call(message, "metadataStoreId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataStoreId); + if (message.multiTrialJobOutput != null && Object.hasOwnProperty.call(message, "multiTrialJobOutput")) + $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.encode(message.multiTrialJobOutput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasJobOutput} message NasJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + NasJobOutput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. + * Decodes a NasJobOutput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreRequest.decode = function decode(reader, length) { + NasJobOutput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobOutput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.decode(reader, reader.uint32()); - break; - } - case 3: { - message.metadataStoreId = reader.string(); + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.decode(reader, reader.uint32()); break; } default: @@ -93115,144 +96747,405 @@ }; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + NasJobOutput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataStoreRequest message. + * Verifies a NasJobOutput message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataStoreRequest.verify = function verify(message) { + NasJobOutput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) { - var error = $root.google.cloud.aiplatform.v1.MetadataStore.verify(message.metadataStore); - if (error) - return "metadataStore." + error; + var properties = {}; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + properties.output = 1; + { + var error = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify(message.multiTrialJobOutput); + if (error) + return "multiTrialJobOutput." + error; + } } - if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) - if (!$util.isString(message.metadataStoreId)) - return "metadataStoreId: string expected"; return null; }; /** - * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput */ - CreateMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest) + NasJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobOutput) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.metadataStore != null) { - if (typeof object.metadataStore !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataStoreRequest.metadataStore: object expected"); - message.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.fromObject(object.metadataStore); + var message = new $root.google.cloud.aiplatform.v1.NasJobOutput(); + if (object.multiTrialJobOutput != null) { + if (typeof object.multiTrialJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.multiTrialJobOutput: object expected"); + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.fromObject(object.multiTrialJobOutput); } - if (object.metadataStoreId != null) - message.metadataStoreId = String(object.metadataStoreId); return message; }; /** - * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} message CreateMetadataStoreRequest + * @param {google.cloud.aiplatform.v1.NasJobOutput} message NasJobOutput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataStoreRequest.toObject = function toObject(message, options) { + NasJobOutput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.metadataStore = null; - object.metadataStoreId = ""; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + object.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.toObject(message.multiTrialJobOutput, options); + if (options.oneofs) + object.output = "multiTrialJobOutput"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) - object.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.toObject(message.metadataStore, options); - if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) - object.metadataStoreId = message.metadataStoreId; return object; }; /** - * Converts this CreateMetadataStoreRequest to JSON. + * Converts this NasJobOutput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @instance * @returns {Object.} JSON object */ - CreateMetadataStoreRequest.prototype.toJSON = function toJSON() { + NasJobOutput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMetadataStoreRequest + * Gets the default type url for NasJobOutput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataStoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobOutput"; }; - return CreateMetadataStoreRequest; + NasJobOutput.MultiTrialJobOutput = (function() { + + /** + * Properties of a MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @interface IMultiTrialJobOutput + * @property {Array.|null} [searchTrials] MultiTrialJobOutput searchTrials + * @property {Array.|null} [trainTrials] MultiTrialJobOutput trainTrials + */ + + /** + * Constructs a new MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @classdesc Represents a MultiTrialJobOutput. + * @implements IMultiTrialJobOutput + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set + */ + function MultiTrialJobOutput(properties) { + this.searchTrials = []; + this.trainTrials = []; + 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]]; + } + + /** + * MultiTrialJobOutput searchTrials. + * @member {Array.} searchTrials + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @instance + */ + MultiTrialJobOutput.prototype.searchTrials = $util.emptyArray; + + /** + * MultiTrialJobOutput trainTrials. + * @member {Array.} trainTrials + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @instance + */ + MultiTrialJobOutput.prototype.trainTrials = $util.emptyArray; + + /** + * Creates a new MultiTrialJobOutput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput instance + */ + MultiTrialJobOutput.create = function create(properties) { + return new MultiTrialJobOutput(properties); + }; + + /** + * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialJobOutput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchTrials != null && message.searchTrials.length) + for (var i = 0; i < message.searchTrials.length; ++i) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.searchTrials[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainTrials != null && message.trainTrials.length) + for (var i = 0; i < message.trainTrials.length; ++i) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.trainTrials[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialJobOutput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialJobOutput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.searchTrials && message.searchTrials.length)) + message.searchTrials = []; + message.searchTrials.push($root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.trainTrials && message.trainTrials.length)) + message.trainTrials = []; + message.trainTrials.push($root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialJobOutput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MultiTrialJobOutput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiTrialJobOutput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchTrials != null && message.hasOwnProperty("searchTrials")) { + if (!Array.isArray(message.searchTrials)) + return "searchTrials: array expected"; + for (var i = 0; i < message.searchTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.searchTrials[i]); + if (error) + return "searchTrials." + error; + } + } + if (message.trainTrials != null && message.hasOwnProperty("trainTrials")) { + if (!Array.isArray(message.trainTrials)) + return "trainTrials: array expected"; + for (var i = 0; i < message.trainTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.trainTrials[i]); + if (error) + return "trainTrials." + error; + } + } + return null; + }; + + /** + * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + */ + MultiTrialJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput(); + if (object.searchTrials) { + if (!Array.isArray(object.searchTrials)) + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.searchTrials: array expected"); + message.searchTrials = []; + for (var i = 0; i < object.searchTrials.length; ++i) { + if (typeof object.searchTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.searchTrials: object expected"); + message.searchTrials[i] = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.searchTrials[i]); + } + } + if (object.trainTrials) { + if (!Array.isArray(object.trainTrials)) + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.trainTrials: array expected"); + message.trainTrials = []; + for (var i = 0; i < object.trainTrials.length; ++i) { + if (typeof object.trainTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.trainTrials: object expected"); + message.trainTrials[i] = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.trainTrials[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} message MultiTrialJobOutput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiTrialJobOutput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.searchTrials = []; + object.trainTrials = []; + } + if (message.searchTrials && message.searchTrials.length) { + object.searchTrials = []; + for (var j = 0; j < message.searchTrials.length; ++j) + object.searchTrials[j] = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.searchTrials[j], options); + } + if (message.trainTrials && message.trainTrials.length) { + object.trainTrials = []; + for (var j = 0; j < message.trainTrials.length; ++j) + object.trainTrials[j] = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.trainTrials[j], options); + } + return object; + }; + + /** + * Converts this MultiTrialJobOutput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @instance + * @returns {Object.} JSON object + */ + MultiTrialJobOutput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MultiTrialJobOutput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiTrialJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput"; + }; + + return MultiTrialJobOutput; + })(); + + return NasJobOutput; })(); - v1.CreateMetadataStoreOperationMetadata = (function() { + v1.NasTrial = (function() { /** - * Properties of a CreateMetadataStoreOperationMetadata. + * Properties of a NasTrial. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateMetadataStoreOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateMetadataStoreOperationMetadata genericMetadata + * @interface INasTrial + * @property {string|null} [id] NasTrial id + * @property {google.cloud.aiplatform.v1.NasTrial.State|null} [state] NasTrial state + * @property {google.cloud.aiplatform.v1.IMeasurement|null} [finalMeasurement] NasTrial finalMeasurement + * @property {google.protobuf.ITimestamp|null} [startTime] NasTrial startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasTrial endTime */ /** - * Constructs a new CreateMetadataStoreOperationMetadata. + * Constructs a new NasTrial. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateMetadataStoreOperationMetadata. - * @implements ICreateMetadataStoreOperationMetadata + * @classdesc Represents a NasTrial. + * @implements INasTrial * @constructor - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.INasTrial=} [properties] Properties to set */ - function CreateMetadataStoreOperationMetadata(properties) { + function NasTrial(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93260,75 +97153,131 @@ } /** - * CreateMetadataStoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * NasTrial id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1.NasTrial * @instance */ - CreateMetadataStoreOperationMetadata.prototype.genericMetadata = null; + NasTrial.prototype.id = ""; /** - * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. + * NasTrial state. + * @member {google.cloud.aiplatform.v1.NasTrial.State} state + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.state = 0; + + /** + * NasTrial finalMeasurement. + * @member {google.cloud.aiplatform.v1.IMeasurement|null|undefined} finalMeasurement + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.finalMeasurement = null; + + /** + * NasTrial startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.startTime = null; + + /** + * NasTrial endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.endTime = null; + + /** + * Creates a new NasTrial instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1.INasTrial=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial instance */ - CreateMetadataStoreOperationMetadata.create = function create(properties) { - return new CreateMetadataStoreOperationMetadata(properties); + NasTrial.create = function create(properties) { + return new NasTrial(properties); }; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasTrial} message NasTrial message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreOperationMetadata.encode = function encode(message, writer) { + NasTrial.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) + $root.google.cloud.aiplatform.v1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasTrial} message NasTrial message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + NasTrial.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a NasTrial message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreOperationMetadata.decode = function decode(reader, length) { + NasTrial.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasTrial(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.id = reader.string(); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + case 3: { + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -93340,127 +97289,236 @@ }; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NasTrial message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + NasTrial.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataStoreOperationMetadata message. + * Verifies a NasTrial message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataStoreOperationMetadata.verify = function verify(message) { + NasTrial.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { + var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.finalMeasurement); if (error) - return "genericMetadata." + error; + return "finalMeasurement." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } return null; }; /** - * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial */ - CreateMetadataStoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata) + NasTrial.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasTrial) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1.NasTrial(); + if (object.id != null) + message.id = String(object.id); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "REQUESTED": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "STOPPING": + case 3: + message.state = 3; + break; + case "SUCCEEDED": + case 4: + message.state = 4; + break; + case "INFEASIBLE": + case 5: + message.state = 5; + break; + } + if (object.finalMeasurement != null) { + if (typeof object.finalMeasurement !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrial.finalMeasurement: object expected"); + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.finalMeasurement); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrial.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrial.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static - * @param {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata + * @param {google.cloud.aiplatform.v1.NasTrial} message NasTrial * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataStoreOperationMetadata.toObject = function toObject(message, options) { + NasTrial.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.id = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.finalMeasurement = null; + object.startTime = null; + object.endTime = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.NasTrial.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.NasTrial.State[message.state] : message.state; + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) + object.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.finalMeasurement, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this CreateMetadataStoreOperationMetadata to JSON. + * Converts this NasTrial to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @instance * @returns {Object.} JSON object */ - CreateMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { + NasTrial.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMetadataStoreOperationMetadata + * Gets the default type url for NasTrial * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasTrial.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasTrial"; }; - return CreateMetadataStoreOperationMetadata; + /** + * State enum. + * @name google.cloud.aiplatform.v1.NasTrial.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} REQUESTED=1 REQUESTED value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} STOPPING=3 STOPPING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} INFEASIBLE=5 INFEASIBLE value + */ + NasTrial.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "REQUESTED"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "STOPPING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "INFEASIBLE"] = 5; + return values; + })(); + + return NasTrial; })(); - v1.GetMetadataStoreRequest = (function() { + v1.LineageSubgraph = (function() { /** - * Properties of a GetMetadataStoreRequest. + * Properties of a LineageSubgraph. * @memberof google.cloud.aiplatform.v1 - * @interface IGetMetadataStoreRequest - * @property {string|null} [name] GetMetadataStoreRequest name + * @interface ILineageSubgraph + * @property {Array.|null} [artifacts] LineageSubgraph artifacts + * @property {Array.|null} [executions] LineageSubgraph executions + * @property {Array.|null} [events] LineageSubgraph events */ /** - * Constructs a new GetMetadataStoreRequest. + * Constructs a new LineageSubgraph. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetMetadataStoreRequest. - * @implements IGetMetadataStoreRequest + * @classdesc Represents a LineageSubgraph. + * @implements ILineageSubgraph * @constructor - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set */ - function GetMetadataStoreRequest(properties) { + function LineageSubgraph(properties) { + this.artifacts = []; + this.executions = []; + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93468,75 +97526,112 @@ } /** - * GetMetadataStoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * LineageSubgraph artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @instance */ - GetMetadataStoreRequest.prototype.name = ""; + LineageSubgraph.prototype.artifacts = $util.emptyArray; /** - * Creates a new GetMetadataStoreRequest instance using the specified properties. + * LineageSubgraph executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @instance + */ + LineageSubgraph.prototype.executions = $util.emptyArray; + + /** + * LineageSubgraph events. + * @member {Array.} events + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @instance + */ + LineageSubgraph.prototype.events = $util.emptyArray; + + /** + * Creates a new LineageSubgraph instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph instance */ - GetMetadataStoreRequest.create = function create(properties) { - return new GetMetadataStoreRequest(properties); + LineageSubgraph.create = function create(properties) { + return new LineageSubgraph(properties); }; /** - * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. + * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataStoreRequest.encode = function encode(message, writer) { + LineageSubgraph.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. + * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + LineageSubgraph.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. + * Decodes a LineageSubgraph message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataStoreRequest.decode = function decode(reader, length) { + LineageSubgraph.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); break; } default: @@ -93548,124 +97643,195 @@ }; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + LineageSubgraph.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMetadataStoreRequest message. + * Verifies a LineageSubgraph message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMetadataStoreRequest.verify = function verify(message) { + LineageSubgraph.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } + } + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } + } + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } return null; }; /** - * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph */ - GetMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest) + LineageSubgraph.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.LineageSubgraph) return object; - var message = new $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + } + } + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) { + if (typeof object.executions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: object expected"); + message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); + } + } + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: object expected"); + message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); + } + } return message; }; /** - * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1.GetMetadataStoreRequest} message GetMetadataStoreRequest + * @param {google.cloud.aiplatform.v1.LineageSubgraph} message LineageSubgraph * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMetadataStoreRequest.toObject = function toObject(message, options) { + LineageSubgraph.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) { + object.artifacts = []; + object.executions = []; + object.events = []; + } + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); + } + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); + } + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); + } return object; }; /** - * Converts this GetMetadataStoreRequest to JSON. + * Converts this LineageSubgraph to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @instance * @returns {Object.} JSON object */ - GetMetadataStoreRequest.prototype.toJSON = function toJSON() { + LineageSubgraph.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetMetadataStoreRequest + * Gets the default type url for LineageSubgraph * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LineageSubgraph.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetMetadataStoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.LineageSubgraph"; }; - return GetMetadataStoreRequest; + return LineageSubgraph; })(); - v1.ListMetadataStoresRequest = (function() { + v1.MetadataSchema = (function() { /** - * Properties of a ListMetadataStoresRequest. + * Properties of a MetadataSchema. * @memberof google.cloud.aiplatform.v1 - * @interface IListMetadataStoresRequest - * @property {string|null} [parent] ListMetadataStoresRequest parent - * @property {number|null} [pageSize] ListMetadataStoresRequest pageSize - * @property {string|null} [pageToken] ListMetadataStoresRequest pageToken + * @interface IMetadataSchema + * @property {string|null} [name] MetadataSchema name + * @property {string|null} [schemaVersion] MetadataSchema schemaVersion + * @property {string|null} [schema] MetadataSchema schema + * @property {google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|null} [schemaType] MetadataSchema schemaType + * @property {google.protobuf.ITimestamp|null} [createTime] MetadataSchema createTime + * @property {string|null} [description] MetadataSchema description */ /** - * Constructs a new ListMetadataStoresRequest. + * Constructs a new MetadataSchema. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListMetadataStoresRequest. - * @implements IListMetadataStoresRequest + * @classdesc Represents a MetadataSchema. + * @implements IMetadataSchema * @constructor - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMetadataSchema=} [properties] Properties to set */ - function ListMetadataStoresRequest(properties) { + function MetadataSchema(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93673,103 +97839,145 @@ } /** - * ListMetadataStoresRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * MetadataSchema name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @instance */ - ListMetadataStoresRequest.prototype.parent = ""; + MetadataSchema.prototype.name = ""; /** - * ListMetadataStoresRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * MetadataSchema schemaVersion. + * @member {string} schemaVersion + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @instance */ - ListMetadataStoresRequest.prototype.pageSize = 0; + MetadataSchema.prototype.schemaVersion = ""; /** - * ListMetadataStoresRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * MetadataSchema schema. + * @member {string} schema + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @instance */ - ListMetadataStoresRequest.prototype.pageToken = ""; + MetadataSchema.prototype.schema = ""; /** - * Creates a new ListMetadataStoresRequest instance using the specified properties. + * MetadataSchema schemaType. + * @member {google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType} schemaType + * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.schemaType = 0; + + /** + * MetadataSchema createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.createTime = null; + + /** + * MetadataSchema description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.description = ""; + + /** + * Creates a new MetadataSchema instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest instance + * @param {google.cloud.aiplatform.v1.IMetadataSchema=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema instance */ - ListMetadataStoresRequest.create = function create(properties) { - return new ListMetadataStoresRequest(properties); + MetadataSchema.create = function create(properties) { + return new MetadataSchema(properties); }; /** - * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. + * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMetadataSchema} message MetadataSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresRequest.encode = function encode(message, writer) { + MetadataSchema.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaVersion); + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.schema); + if (message.schemaType != null && Object.hasOwnProperty.call(message, "schemaType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.schemaType); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); return writer; }; /** - * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. + * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMetadataSchema} message MetadataSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresRequest.encodeDelimited = function encodeDelimited(message, writer) { + MetadataSchema.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. + * Decodes a MetadataSchema message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresRequest.decode = function decode(reader, length) { + MetadataSchema.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MetadataSchema(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.schemaVersion = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + message.schema = reader.string(); + break; + } + case 4: { + message.schemaType = reader.int32(); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.description = reader.string(); break; } default: @@ -93781,1284 +97989,1308 @@ }; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresRequest.decodeDelimited = function decodeDelimited(reader) { + MetadataSchema.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataStoresRequest message. + * Verifies a MetadataSchema message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataStoresRequest.verify = function verify(message) { + MetadataSchema.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + if (!$util.isString(message.schemaVersion)) + return "schemaVersion: string expected"; + if (message.schema != null && message.hasOwnProperty("schema")) + if (!$util.isString(message.schema)) + return "schema: string expected"; + if (message.schemaType != null && message.hasOwnProperty("schemaType")) + switch (message.schemaType) { + default: + return "schemaType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema */ - ListMetadataStoresRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest) + MetadataSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetadataSchema) return object; - var message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.aiplatform.v1.MetadataSchema(); + if (object.name != null) + message.name = String(object.name); + if (object.schemaVersion != null) + message.schemaVersion = String(object.schemaVersion); + if (object.schema != null) + message.schema = String(object.schema); + switch (object.schemaType) { + default: + if (typeof object.schemaType === "number") { + message.schemaType = object.schemaType; + break; + } + break; + case "METADATA_SCHEMA_TYPE_UNSPECIFIED": + case 0: + message.schemaType = 0; + break; + case "ARTIFACT_TYPE": + case 1: + message.schemaType = 1; + break; + case "EXECUTION_TYPE": + case 2: + message.schemaType = 2; + break; + case "CONTEXT_TYPE": + case 3: + message.schemaType = 3; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataSchema.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. + * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1.ListMetadataStoresRequest} message ListMetadataStoresRequest + * @param {google.cloud.aiplatform.v1.MetadataSchema} message MetadataSchema * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataStoresRequest.toObject = function toObject(message, options) { + MetadataSchema.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.schemaVersion = ""; + object.schema = ""; + object.schemaType = options.enums === String ? "METADATA_SCHEMA_TYPE_UNSPECIFIED" : 0; + object.createTime = null; + object.description = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + object.schemaVersion = message.schemaVersion; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = message.schema; + if (message.schemaType != null && message.hasOwnProperty("schemaType")) + object.schemaType = options.enums === String ? $root.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType[message.schemaType] === undefined ? message.schemaType : $root.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType[message.schemaType] : message.schemaType; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this ListMetadataStoresRequest to JSON. + * Converts this MetadataSchema to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @instance * @returns {Object.} JSON object */ - ListMetadataStoresRequest.prototype.toJSON = function toJSON() { + MetadataSchema.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMetadataStoresRequest + * Gets the default type url for MetadataSchema * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMetadataStoresRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MetadataSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataStoresRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataSchema"; }; - return ListMetadataStoresRequest; + /** + * MetadataSchemaType enum. + * @name google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType + * @enum {number} + * @property {number} METADATA_SCHEMA_TYPE_UNSPECIFIED=0 METADATA_SCHEMA_TYPE_UNSPECIFIED value + * @property {number} ARTIFACT_TYPE=1 ARTIFACT_TYPE value + * @property {number} EXECUTION_TYPE=2 EXECUTION_TYPE value + * @property {number} CONTEXT_TYPE=3 CONTEXT_TYPE value + */ + MetadataSchema.MetadataSchemaType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METADATA_SCHEMA_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ARTIFACT_TYPE"] = 1; + values[valuesById[2] = "EXECUTION_TYPE"] = 2; + values[valuesById[3] = "CONTEXT_TYPE"] = 3; + return values; + })(); + + return MetadataSchema; })(); - v1.ListMetadataStoresResponse = (function() { + v1.MetadataService = (function() { /** - * Properties of a ListMetadataStoresResponse. + * Constructs a new MetadataService service. * @memberof google.cloud.aiplatform.v1 - * @interface IListMetadataStoresResponse - * @property {Array.|null} [metadataStores] ListMetadataStoresResponse metadataStores - * @property {string|null} [nextPageToken] ListMetadataStoresResponse nextPageToken + * @classdesc Represents a MetadataService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function MetadataService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (MetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetadataService; /** - * Constructs a new ListMetadataStoresResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListMetadataStoresResponse. - * @implements IListMetadataStoresResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse=} [properties] Properties to set + * Creates new MetadataService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.MetadataService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {MetadataService} RPC service. Useful where requests and/or responses are streamed. */ - function ListMetadataStoresResponse(properties) { - this.metadataStores = []; - 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]]; - } + MetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ListMetadataStoresResponse metadataStores. - * @member {Array.} metadataStores - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataStore}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListMetadataStoresResponse.prototype.metadataStores = $util.emptyArray; /** - * ListMetadataStoresResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse + * Calls CreateMetadataStore. + * @function createMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListMetadataStoresResponse.prototype.nextPageToken = ""; + Object.defineProperty(MetadataService.prototype.createMetadataStore = function createMetadataStore(request, callback) { + return this.rpcCall(createMetadataStore, $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateMetadataStore" }); /** - * Creates a new ListMetadataStoresResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse instance + * Calls CreateMetadataStore. + * @function createMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListMetadataStoresResponse.create = function create(properties) { - return new ListMetadataStoresResponse(properties); - }; /** - * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataStore}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.MetadataStore} [response] MetadataStore */ - ListMetadataStoresResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadataStores != null && message.metadataStores.length) - for (var i = 0; i < message.metadataStores.length; ++i) - $root.google.cloud.aiplatform.v1.MetadataStore.encode(message.metadataStores[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; /** - * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetMetadataStore. + * @function getMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetMetadataStoreCallback} callback Node-style callback called with the error, if any, and MetadataStore + * @returns {undefined} + * @variation 1 */ - ListMetadataStoresResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(MetadataService.prototype.getMetadataStore = function getMetadataStore(request, callback) { + return this.rpcCall(getMetadataStore, $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest, $root.google.cloud.aiplatform.v1.MetadataStore, request, callback); + }, "name", { value: "GetMetadataStore" }); /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataStore. + * @function getMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListMetadataStoresResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.metadataStores && message.metadataStores.length)) - message.metadataStores = []; - message.metadataStores.push($root.google.cloud.aiplatform.v1.MetadataStore.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataStores}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListMetadataStoresCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListMetadataStoresResponse} [response] ListMetadataStoresResponse */ - ListMetadataStoresResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ListMetadataStoresResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListMetadataStores. + * @function listMetadataStores + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListMetadataStoresCallback} callback Node-style callback called with the error, if any, and ListMetadataStoresResponse + * @returns {undefined} + * @variation 1 */ - ListMetadataStoresResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadataStores != null && message.hasOwnProperty("metadataStores")) { - if (!Array.isArray(message.metadataStores)) - return "metadataStores: array expected"; - for (var i = 0; i < message.metadataStores.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MetadataStore.verify(message.metadataStores[i]); - if (error) - return "metadataStores." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + Object.defineProperty(MetadataService.prototype.listMetadataStores = function listMetadataStores(request, callback) { + return this.rpcCall(listMetadataStores, $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest, $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse, request, callback); + }, "name", { value: "ListMetadataStores" }); /** - * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse + * Calls ListMetadataStores. + * @function listMetadataStores + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListMetadataStoresResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse(); - if (object.metadataStores) { - if (!Array.isArray(object.metadataStores)) - throw TypeError(".google.cloud.aiplatform.v1.ListMetadataStoresResponse.metadataStores: array expected"); - message.metadataStores = []; - for (var i = 0; i < object.metadataStores.length; ++i) { - if (typeof object.metadataStores[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListMetadataStoresResponse.metadataStores: object expected"); - message.metadataStores[i] = $root.google.cloud.aiplatform.v1.MetadataStore.fromObject(object.metadataStores[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {google.cloud.aiplatform.v1.ListMetadataStoresResponse} message ListMetadataStoresResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteMetadataStore}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef DeleteMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListMetadataStoresResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metadataStores = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.metadataStores && message.metadataStores.length) { - object.metadataStores = []; - for (var j = 0; j < message.metadataStores.length; ++j) - object.metadataStores[j] = $root.google.cloud.aiplatform.v1.MetadataStore.toObject(message.metadataStores[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; /** - * Converts this ListMetadataStoresResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse + * Calls DeleteMetadataStore. + * @function deleteMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListMetadataStoresResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(MetadataService.prototype.deleteMetadataStore = function deleteMetadataStore(request, callback) { + return this.rpcCall(deleteMetadataStore, $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteMetadataStore" }); /** - * Gets the default type url for ListMetadataStoresResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls DeleteMetadataStore. + * @function deleteMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListMetadataStoresResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataStoresResponse"; - }; - - return ListMetadataStoresResponse; - })(); - - v1.DeleteMetadataStoreRequest = (function() { /** - * Properties of a DeleteMetadataStoreRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteMetadataStoreRequest - * @property {string|null} [name] DeleteMetadataStoreRequest name - * @property {boolean|null} [force] DeleteMetadataStoreRequest force + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createArtifact}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact */ /** - * Constructs a new DeleteMetadataStoreRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteMetadataStoreRequest. - * @implements IDeleteMetadataStoreRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest=} [properties] Properties to set + * Calls CreateArtifact. + * @function createArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - function DeleteMetadataStoreRequest(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]]; - } + Object.defineProperty(MetadataService.prototype.createArtifact = function createArtifact(request, callback) { + return this.rpcCall(createArtifact, $root.google.cloud.aiplatform.v1.CreateArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); + }, "name", { value: "CreateArtifact" }); /** - * DeleteMetadataStoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest + * Calls CreateArtifact. + * @function createArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.prototype.name = ""; /** - * DeleteMetadataStoreRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getArtifact}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact + */ + + /** + * Calls GetArtifact. + * @function getArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreRequest.prototype.force = false; + Object.defineProperty(MetadataService.prototype.getArtifact = function getArtifact(request, callback) { + return this.rpcCall(getArtifact, $root.google.cloud.aiplatform.v1.GetArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); + }, "name", { value: "GetArtifact" }); /** - * Creates a new DeleteMetadataStoreRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest instance + * Calls GetArtifact. + * @function getArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.create = function create(properties) { - return new DeleteMetadataStoreRequest(properties); - }; /** - * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listArtifacts}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListArtifactsResponse} [response] ListArtifactsResponse */ - DeleteMetadataStoreRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); - return writer; - }; /** - * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListArtifacts. + * @function listArtifacts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListArtifactsCallback} callback Node-style callback called with the error, if any, and ListArtifactsResponse + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(MetadataService.prototype.listArtifacts = function listArtifacts(request, callback) { + return this.rpcCall(listArtifacts, $root.google.cloud.aiplatform.v1.ListArtifactsRequest, $root.google.cloud.aiplatform.v1.ListArtifactsResponse, request, callback); + }, "name", { value: "ListArtifacts" }); /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListArtifacts. + * @function listArtifacts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.force = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateArtifact}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef UpdateArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact */ - DeleteMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a DeleteMetadataStoreRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UpdateArtifact. + * @function updateArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.UpdateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - return null; - }; + Object.defineProperty(MetadataService.prototype.updateArtifact = function updateArtifact(request, callback) { + return this.rpcCall(updateArtifact, $root.google.cloud.aiplatform.v1.UpdateArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); + }, "name", { value: "UpdateArtifact" }); /** - * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest + * Calls UpdateArtifact. + * @function updateArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); - return message; - }; /** - * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} message DeleteMetadataStoreRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteArtifact}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef DeleteArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - DeleteMetadataStoreRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - return object; - }; /** - * Converts this DeleteMetadataStoreRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest + * Calls DeleteArtifact. + * @function deleteArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.DeleteArtifactCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(MetadataService.prototype.deleteArtifact = function deleteArtifact(request, callback) { + return this.rpcCall(deleteArtifact, $root.google.cloud.aiplatform.v1.DeleteArtifactRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteArtifact" }); /** - * Gets the default type url for DeleteMetadataStoreRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls DeleteArtifact. + * @function deleteArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteMetadataStoreRequest"; - }; - - return DeleteMetadataStoreRequest; - })(); - - v1.DeleteMetadataStoreOperationMetadata = (function() { /** - * Properties of a DeleteMetadataStoreOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteMetadataStoreOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] DeleteMetadataStoreOperationMetadata genericMetadata + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeArtifacts}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef PurgeArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new DeleteMetadataStoreOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteMetadataStoreOperationMetadata. - * @implements IDeleteMetadataStoreOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set + * Calls PurgeArtifacts. + * @function purgeArtifacts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.PurgeArtifactsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function DeleteMetadataStoreOperationMetadata(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]]; - } + Object.defineProperty(MetadataService.prototype.purgeArtifacts = function purgeArtifacts(request, callback) { + return this.rpcCall(purgeArtifacts, $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeArtifacts" }); /** - * DeleteMetadataStoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata + * Calls PurgeArtifacts. + * @function purgeArtifacts + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createContext}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Context} [response] Context */ - DeleteMetadataStoreOperationMetadata.create = function create(properties) { - return new DeleteMetadataStoreOperationMetadata(properties); - }; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateContext. + * @function createContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateContextRequest} request CreateContextRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + Object.defineProperty(MetadataService.prototype.createContext = function createContext(request, callback) { + return this.rpcCall(createContext, $root.google.cloud.aiplatform.v1.CreateContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); + }, "name", { value: "CreateContext" }); /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateContext. + * @function createContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateContextRequest} request CreateContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getContext}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Context} [response] Context */ - DeleteMetadataStoreOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetContext. + * @function getContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetContextRequest} request GetContextRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MetadataService.prototype.getContext = function getContext(request, callback) { + return this.rpcCall(getContext, $root.google.cloud.aiplatform.v1.GetContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); + }, "name", { value: "GetContext" }); /** - * Verifies a DeleteMetadataStoreOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetContext. + * @function getContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetContextRequest} request GetContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - return null; - }; /** - * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listContexts}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListContextsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListContextsResponse} [response] ListContextsResponse */ - DeleteMetadataStoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; /** - * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListContexts. + * @function listContexts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListContextsRequest} request ListContextsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListContextsCallback} callback Node-style callback called with the error, if any, and ListContextsResponse + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; - }; + Object.defineProperty(MetadataService.prototype.listContexts = function listContexts(request, callback) { + return this.rpcCall(listContexts, $root.google.cloud.aiplatform.v1.ListContextsRequest, $root.google.cloud.aiplatform.v1.ListContextsResponse, request, callback); + }, "name", { value: "ListContexts" }); /** - * Converts this DeleteMetadataStoreOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata + * Calls ListContexts. + * @function listContexts + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IListContextsRequest} request ListContextsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for DeleteMetadataStoreOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateContext}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef UpdateContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Context} [response] Context */ - DeleteMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata"; - }; - - return DeleteMetadataStoreOperationMetadata; - })(); - - v1.CreateArtifactRequest = (function() { /** - * Properties of a CreateArtifactRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateArtifactRequest - * @property {string|null} [parent] CreateArtifactRequest parent - * @property {google.cloud.aiplatform.v1.IArtifact|null} [artifact] CreateArtifactRequest artifact - * @property {string|null} [artifactId] CreateArtifactRequest artifactId + * Calls UpdateContext. + * @function updateContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} request UpdateContextRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.UpdateContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(MetadataService.prototype.updateContext = function updateContext(request, callback) { + return this.rpcCall(updateContext, $root.google.cloud.aiplatform.v1.UpdateContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); + }, "name", { value: "UpdateContext" }); /** - * Constructs a new CreateArtifactRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateArtifactRequest. - * @implements ICreateArtifactRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest=} [properties] Properties to set + * Calls UpdateContext. + * @function updateContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} request UpdateContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - function CreateArtifactRequest(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]]; - } /** - * CreateArtifactRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteContext}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef DeleteContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateArtifactRequest.prototype.parent = ""; /** - * CreateArtifactRequest artifact. - * @member {google.cloud.aiplatform.v1.IArtifact|null|undefined} artifact - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest + * Calls DeleteContext. + * @function deleteContext + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} request DeleteContextRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.DeleteContextCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateArtifactRequest.prototype.artifact = null; + Object.defineProperty(MetadataService.prototype.deleteContext = function deleteContext(request, callback) { + return this.rpcCall(deleteContext, $root.google.cloud.aiplatform.v1.DeleteContextRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteContext" }); /** - * CreateArtifactRequest artifactId. - * @member {string} artifactId - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest + * Calls DeleteContext. + * @function deleteContext + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} request DeleteContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateArtifactRequest.prototype.artifactId = ""; /** - * Creates a new CreateArtifactRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeContexts}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef PurgeContextsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateArtifactRequest.create = function create(properties) { - return new CreateArtifactRequest(properties); - }; /** - * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls PurgeContexts. + * @function purgeContexts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.PurgeContextsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateArtifactRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifact, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.artifactId); - return writer; - }; + Object.defineProperty(MetadataService.prototype.purgeContexts = function purgeContexts(request, callback) { + return this.rpcCall(purgeContexts, $root.google.cloud.aiplatform.v1.PurgeContextsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeContexts" }); /** - * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls PurgeContexts. + * @function purgeContexts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextArtifactsAndExecutions}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef AddContextArtifactsAndExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} [response] AddContextArtifactsAndExecutionsResponse */ - CreateArtifactRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateArtifactRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.artifact = $root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32()); - break; - } - case 3: { - message.artifactId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls AddContextArtifactsAndExecutions. + * @function addContextArtifactsAndExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutionsCallback} callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse + * @returns {undefined} + * @variation 1 */ - CreateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MetadataService.prototype.addContextArtifactsAndExecutions = function addContextArtifactsAndExecutions(request, callback) { + return this.rpcCall(addContextArtifactsAndExecutions, $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest, $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse, request, callback); + }, "name", { value: "AddContextArtifactsAndExecutions" }); /** - * Verifies a CreateArtifactRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls AddContextArtifactsAndExecutions. + * @function addContextArtifactsAndExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateArtifactRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifact); - if (error) - return "artifact." + error; - } - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - if (!$util.isString(message.artifactId)) - return "artifactId: string expected"; - return null; - }; /** - * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextChildren}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef AddContextChildrenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.AddContextChildrenResponse} [response] AddContextChildrenResponse */ - CreateArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateArtifactRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.CreateArtifactRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.artifact != null) { - if (typeof object.artifact !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateArtifactRequest.artifact: object expected"); - message.artifact = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifact); - } - if (object.artifactId != null) - message.artifactId = String(object.artifactId); - return message; - }; /** - * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.CreateArtifactRequest} message CreateArtifactRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls AddContextChildren. + * @function addContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.AddContextChildrenCallback} callback Node-style callback called with the error, if any, and AddContextChildrenResponse + * @returns {undefined} + * @variation 1 */ - CreateArtifactRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.artifact = null; - object.artifactId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifact, options); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - object.artifactId = message.artifactId; - return object; - }; + Object.defineProperty(MetadataService.prototype.addContextChildren = function addContextChildren(request, callback) { + return this.rpcCall(addContextChildren, $root.google.cloud.aiplatform.v1.AddContextChildrenRequest, $root.google.cloud.aiplatform.v1.AddContextChildrenResponse, request, callback); + }, "name", { value: "AddContextChildren" }); /** - * Converts this CreateArtifactRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest + * Calls AddContextChildren. + * @function addContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateArtifactRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for CreateArtifactRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef RemoveContextChildrenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} [response] RemoveContextChildrenResponse */ - CreateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateArtifactRequest"; - }; - - return CreateArtifactRequest; - })(); - - v1.GetArtifactRequest = (function() { /** - * Properties of a GetArtifactRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IGetArtifactRequest - * @property {string|null} [name] GetArtifactRequest name + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback} callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(MetadataService.prototype.removeContextChildren = function removeContextChildren(request, callback) { + return this.rpcCall(removeContextChildren, $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest, $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse, request, callback); + }, "name", { value: "RemoveContextChildren" }); /** - * Constructs a new GetArtifactRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetArtifactRequest. - * @implements IGetArtifactRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest=} [properties] Properties to set + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - function GetArtifactRequest(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]]; - } /** - * GetArtifactRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef QueryContextLineageSubgraphCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph */ - GetArtifactRequest.prototype.name = ""; /** - * Creates a new GetArtifactRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest instance + * Calls QueryContextLineageSubgraph. + * @function queryContextLineageSubgraph + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 */ - GetArtifactRequest.create = function create(properties) { - return new GetArtifactRequest(properties); - }; + Object.defineProperty(MetadataService.prototype.queryContextLineageSubgraph = function queryContextLineageSubgraph(request, callback) { + return this.rpcCall(queryContextLineageSubgraph, $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); + }, "name", { value: "QueryContextLineageSubgraph" }); /** - * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls QueryContextLineageSubgraph. + * @function queryContextLineageSubgraph + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetArtifactRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; /** - * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createExecution}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Execution} [response] Execution */ - GetArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateExecution. + * @function createExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 */ - GetArtifactRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetArtifactRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Object.defineProperty(MetadataService.prototype.createExecution = function createExecution(request, callback) { + return this.rpcCall(createExecution, $root.google.cloud.aiplatform.v1.CreateExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); + }, "name", { value: "CreateExecution" }); /** - * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateExecution. + * @function createExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetArtifactRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a GetArtifactRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getExecution}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Execution} [response] Execution */ - GetArtifactRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; /** - * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest + * Calls GetExecution. + * @function getExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} request GetExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 */ - GetArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetArtifactRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.GetArtifactRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + Object.defineProperty(MetadataService.prototype.getExecution = function getExecution(request, callback) { + return this.rpcCall(getExecution, $root.google.cloud.aiplatform.v1.GetExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); + }, "name", { value: "GetExecution" }); /** - * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.GetArtifactRequest} message GetArtifactRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetExecution. + * @function getExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} request GetExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetArtifactRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; /** - * Converts this GetArtifactRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listExecutions}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListExecutionsResponse} [response] ListExecutionsResponse + */ + + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} request ListExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ListExecutionsResponse + * @returns {undefined} + * @variation 1 */ - GetArtifactRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(MetadataService.prototype.listExecutions = function listExecutions(request, callback) { + return this.rpcCall(listExecutions, $root.google.cloud.aiplatform.v1.ListExecutionsRequest, $root.google.cloud.aiplatform.v1.ListExecutionsResponse, request, callback); + }, "name", { value: "ListExecutions" }); /** - * Gets the default type url for GetArtifactRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListExecutions. + * @function listExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} request ListExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetArtifactRequest"; - }; - return GetArtifactRequest; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateExecution}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef UpdateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Execution} [response] Execution + */ + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.updateExecution = function updateExecution(request, callback) { + return this.rpcCall(updateExecution, $root.google.cloud.aiplatform.v1.UpdateExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); + }, "name", { value: "UpdateExecution" }); + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteExecution}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef DeleteExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteExecution. + * @function deleteExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.DeleteExecutionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.deleteExecution = function deleteExecution(request, callback) { + return this.rpcCall(deleteExecution, $root.google.cloud.aiplatform.v1.DeleteExecutionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteExecution" }); + + /** + * Calls DeleteExecution. + * @function deleteExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeExecutions}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef PurgeExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls PurgeExecutions. + * @function purgeExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.PurgeExecutionsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.purgeExecutions = function purgeExecutions(request, callback) { + return this.rpcCall(purgeExecutions, $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeExecutions" }); + + /** + * Calls PurgeExecutions. + * @function purgeExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addExecutionEvents}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef AddExecutionEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.AddExecutionEventsResponse} [response] AddExecutionEventsResponse + */ + + /** + * Calls AddExecutionEvents. + * @function addExecutionEvents + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.AddExecutionEventsCallback} callback Node-style callback called with the error, if any, and AddExecutionEventsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.addExecutionEvents = function addExecutionEvents(request, callback) { + return this.rpcCall(addExecutionEvents, $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest, $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse, request, callback); + }, "name", { value: "AddExecutionEvents" }); + + /** + * Calls AddExecutionEvents. + * @function addExecutionEvents + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryExecutionInputsAndOutputs}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef QueryExecutionInputsAndOutputsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph + */ + + /** + * Calls QueryExecutionInputsAndOutputs. + * @function queryExecutionInputsAndOutputs + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputsCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.queryExecutionInputsAndOutputs = function queryExecutionInputsAndOutputs(request, callback) { + return this.rpcCall(queryExecutionInputsAndOutputs, $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); + }, "name", { value: "QueryExecutionInputsAndOutputs" }); + + /** + * Calls QueryExecutionInputsAndOutputs. + * @function queryExecutionInputsAndOutputs + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataSchema}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateMetadataSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.MetadataSchema} [response] MetadataSchema + */ + + /** + * Calls CreateMetadataSchema. + * @function createMetadataSchema + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.createMetadataSchema = function createMetadataSchema(request, callback) { + return this.rpcCall(createMetadataSchema, $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest, $root.google.cloud.aiplatform.v1.MetadataSchema, request, callback); + }, "name", { value: "CreateMetadataSchema" }); + + /** + * Calls CreateMetadataSchema. + * @function createMetadataSchema + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataSchema}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetMetadataSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.MetadataSchema} [response] MetadataSchema + */ + + /** + * Calls GetMetadataSchema. + * @function getMetadataSchema + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.getMetadataSchema = function getMetadataSchema(request, callback) { + return this.rpcCall(getMetadataSchema, $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest, $root.google.cloud.aiplatform.v1.MetadataSchema, request, callback); + }, "name", { value: "GetMetadataSchema" }); + + /** + * Calls GetMetadataSchema. + * @function getMetadataSchema + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataSchemas}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListMetadataSchemasCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} [response] ListMetadataSchemasResponse + */ + + /** + * Calls ListMetadataSchemas. + * @function listMetadataSchemas + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemasCallback} callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.listMetadataSchemas = function listMetadataSchemas(request, callback) { + return this.rpcCall(listMetadataSchemas, $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest, $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse, request, callback); + }, "name", { value: "ListMetadataSchemas" }); + + /** + * Calls ListMetadataSchemas. + * @function listMetadataSchemas + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryArtifactLineageSubgraph}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef QueryArtifactLineageSubgraphCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph + */ + + /** + * Calls QueryArtifactLineageSubgraph. + * @function queryArtifactLineageSubgraph + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.queryArtifactLineageSubgraph = function queryArtifactLineageSubgraph(request, callback) { + return this.rpcCall(queryArtifactLineageSubgraph, $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); + }, "name", { value: "QueryArtifactLineageSubgraph" }); + + /** + * Calls QueryArtifactLineageSubgraph. + * @function queryArtifactLineageSubgraph + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return MetadataService; })(); - v1.ListArtifactsRequest = (function() { + v1.CreateMetadataStoreRequest = (function() { /** - * Properties of a ListArtifactsRequest. + * Properties of a CreateMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListArtifactsRequest - * @property {string|null} [parent] ListArtifactsRequest parent - * @property {number|null} [pageSize] ListArtifactsRequest pageSize - * @property {string|null} [pageToken] ListArtifactsRequest pageToken - * @property {string|null} [filter] ListArtifactsRequest filter - * @property {string|null} [orderBy] ListArtifactsRequest orderBy + * @interface ICreateMetadataStoreRequest + * @property {string|null} [parent] CreateMetadataStoreRequest parent + * @property {google.cloud.aiplatform.v1.IMetadataStore|null} [metadataStore] CreateMetadataStoreRequest metadataStore + * @property {string|null} [metadataStoreId] CreateMetadataStoreRequest metadataStoreId */ /** - * Constructs a new ListArtifactsRequest. + * Constructs a new CreateMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListArtifactsRequest. - * @implements IListArtifactsRequest + * @classdesc Represents a CreateMetadataStoreRequest. + * @implements ICreateMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest=} [properties] Properties to set */ - function ListArtifactsRequest(properties) { + function CreateMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95066,110 +99298,90 @@ } /** - * ListArtifactsRequest parent. + * CreateMetadataStoreRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest - * @instance - */ - ListArtifactsRequest.prototype.parent = ""; - - /** - * ListArtifactsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest - * @instance - */ - ListArtifactsRequest.prototype.pageSize = 0; - - /** - * ListArtifactsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @instance */ - ListArtifactsRequest.prototype.pageToken = ""; + CreateMetadataStoreRequest.prototype.parent = ""; /** - * ListArtifactsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * CreateMetadataStoreRequest metadataStore. + * @member {google.cloud.aiplatform.v1.IMetadataStore|null|undefined} metadataStore + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @instance */ - ListArtifactsRequest.prototype.filter = ""; + CreateMetadataStoreRequest.prototype.metadataStore = null; /** - * ListArtifactsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * CreateMetadataStoreRequest metadataStoreId. + * @member {string} metadataStoreId + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @instance */ - ListArtifactsRequest.prototype.orderBy = ""; + CreateMetadataStoreRequest.prototype.metadataStoreId = ""; /** - * Creates a new ListArtifactsRequest instance using the specified properties. + * Creates a new CreateMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest instance */ - ListArtifactsRequest.create = function create(properties) { - return new ListArtifactsRequest(properties); + CreateMetadataStoreRequest.create = function create(properties) { + return new CreateMetadataStoreRequest(properties); }; /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. + * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsRequest.encode = function encode(message, writer) { + CreateMetadataStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.metadataStore != null && Object.hasOwnProperty.call(message, "metadataStore")) + $root.google.cloud.aiplatform.v1.MetadataStore.encode(message.metadataStore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadataStoreId != null && Object.hasOwnProperty.call(message, "metadataStoreId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataStoreId); return writer; }; /** - * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. + * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsRequest.decode = function decode(reader, length) { + CreateMetadataStoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListArtifactsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -95178,19 +99390,11 @@ break; } case 2: { - message.pageSize = reader.int32(); + message.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.metadataStoreId = reader.string(); break; } default: @@ -95202,157 +99406,144 @@ }; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListArtifactsRequest message. + * Verifies a CreateMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListArtifactsRequest.verify = function verify(message) { + CreateMetadataStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) { + var error = $root.google.cloud.aiplatform.v1.MetadataStore.verify(message.metadataStore); + if (error) + return "metadataStore." + error; + } + if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) + if (!$util.isString(message.metadataStoreId)) + return "metadataStoreId: string expected"; return null; }; /** - * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest */ - ListArtifactsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListArtifactsRequest) + CreateMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListArtifactsRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + if (object.metadataStore != null) { + if (typeof object.metadataStore !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataStoreRequest.metadataStore: object expected"); + message.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.fromObject(object.metadataStore); + } + if (object.metadataStoreId != null) + message.metadataStoreId = String(object.metadataStoreId); return message; }; /** - * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.ListArtifactsRequest} message ListArtifactsRequest + * @param {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} message CreateMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListArtifactsRequest.toObject = function toObject(message, options) { + CreateMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + object.metadataStore = null; + object.metadataStoreId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) + object.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.toObject(message.metadataStore, options); + if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) + object.metadataStoreId = message.metadataStoreId; return object; }; /** - * Converts this ListArtifactsRequest to JSON. + * Converts this CreateMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - ListArtifactsRequest.prototype.toJSON = function toJSON() { + CreateMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListArtifactsRequest + * Gets the default type url for CreateMetadataStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListArtifactsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataStoreRequest"; }; - return ListArtifactsRequest; + return CreateMetadataStoreRequest; })(); - v1.ListArtifactsResponse = (function() { + v1.CreateMetadataStoreOperationMetadata = (function() { /** - * Properties of a ListArtifactsResponse. + * Properties of a CreateMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IListArtifactsResponse - * @property {Array.|null} [artifacts] ListArtifactsResponse artifacts - * @property {string|null} [nextPageToken] ListArtifactsResponse nextPageToken + * @interface ICreateMetadataStoreOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateMetadataStoreOperationMetadata genericMetadata */ /** - * Constructs a new ListArtifactsResponse. + * Constructs a new CreateMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListArtifactsResponse. - * @implements IListArtifactsResponse + * @classdesc Represents a CreateMetadataStoreOperationMetadata. + * @implements ICreateMetadataStoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IListArtifactsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set */ - function ListArtifactsResponse(properties) { - this.artifacts = []; + function CreateMetadataStoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95360,92 +99551,75 @@ } /** - * ListArtifactsResponse artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse - * @instance - */ - ListArtifactsResponse.prototype.artifacts = $util.emptyArray; - - /** - * ListArtifactsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * CreateMetadataStoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @instance */ - ListArtifactsResponse.prototype.nextPageToken = ""; + CreateMetadataStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata instance */ - ListArtifactsResponse.create = function create(properties) { - return new ListArtifactsResponse(properties); + CreateMetadataStoreOperationMetadata.create = function create(properties) { + return new CreateMetadataStoreOperationMetadata(properties); }; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. + * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsResponse.encode = function encode(message, writer) { + CreateMetadataStoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. + * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsResponse.decode = function decode(reader, length) { + CreateMetadataStoreOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListArtifactsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -95457,150 +99631,127 @@ }; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListArtifactsResponse message. + * Verifies a CreateMetadataStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListArtifactsResponse.verify = function verify(message) { + CreateMetadataStoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata */ - ListArtifactsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListArtifactsResponse) + CreateMetadataStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.ListArtifactsResponse(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.ListArtifactsResponse.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListArtifactsResponse.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ListArtifactsResponse} message ListArtifactsResponse + * @param {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListArtifactsResponse.toObject = function toObject(message, options) { + CreateMetadataStoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.artifacts = []; if (options.defaults) - object.nextPageToken = ""; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this ListArtifactsResponse to JSON. + * Converts this CreateMetadataStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - ListArtifactsResponse.prototype.toJSON = function toJSON() { + CreateMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListArtifactsResponse + * Gets the default type url for CreateMetadataStoreOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListArtifactsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata"; }; - return ListArtifactsResponse; + return CreateMetadataStoreOperationMetadata; })(); - v1.UpdateArtifactRequest = (function() { + v1.GetMetadataStoreRequest = (function() { /** - * Properties of an UpdateArtifactRequest. + * Properties of a GetMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateArtifactRequest - * @property {google.cloud.aiplatform.v1.IArtifact|null} [artifact] UpdateArtifactRequest artifact - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateArtifactRequest updateMask - * @property {boolean|null} [allowMissing] UpdateArtifactRequest allowMissing + * @interface IGetMetadataStoreRequest + * @property {string|null} [name] GetMetadataStoreRequest name */ /** - * Constructs a new UpdateArtifactRequest. + * Constructs a new GetMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateArtifactRequest. - * @implements IUpdateArtifactRequest + * @classdesc Represents a GetMetadataStoreRequest. + * @implements IGetMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest=} [properties] Properties to set */ - function UpdateArtifactRequest(properties) { + function GetMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95608,103 +99759,75 @@ } /** - * UpdateArtifactRequest artifact. - * @member {google.cloud.aiplatform.v1.IArtifact|null|undefined} artifact - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest - * @instance - */ - UpdateArtifactRequest.prototype.artifact = null; - - /** - * UpdateArtifactRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest - * @instance - */ - UpdateArtifactRequest.prototype.updateMask = null; - - /** - * UpdateArtifactRequest allowMissing. - * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * GetMetadataStoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @instance */ - UpdateArtifactRequest.prototype.allowMissing = false; + GetMetadataStoreRequest.prototype.name = ""; /** - * Creates a new UpdateArtifactRequest instance using the specified properties. + * Creates a new GetMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest instance + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest instance */ - UpdateArtifactRequest.create = function create(properties) { - return new UpdateArtifactRequest(properties); + GetMetadataStoreRequest.create = function create(properties) { + return new GetMetadataStoreRequest(properties); }; /** - * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. + * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateArtifactRequest.encode = function encode(message, writer) { + GetMetadataStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifact, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. + * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateArtifactRequest.decode = function decode(reader, length) { + GetMetadataStoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.artifact = $root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 3: { - message.allowMissing = reader.bool(); + message.name = reader.string(); break; } default: @@ -95716,150 +99839,124 @@ }; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + GetMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateArtifactRequest message. + * Verifies a GetMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateArtifactRequest.verify = function verify(message) { + GetMetadataStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifact); - if (error) - return "artifact." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - if (typeof message.allowMissing !== "boolean") - return "allowMissing: boolean expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest */ - UpdateArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateArtifactRequest) + GetMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateArtifactRequest(); - if (object.artifact != null) { - if (typeof object.artifact !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateArtifactRequest.artifact: object expected"); - message.artifact = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifact); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateArtifactRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.allowMissing != null) - message.allowMissing = Boolean(object.allowMissing); + var message = new $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateArtifactRequest} message UpdateArtifactRequest + * @param {google.cloud.aiplatform.v1.GetMetadataStoreRequest} message GetMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateArtifactRequest.toObject = function toObject(message, options) { + GetMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.artifact = null; - object.updateMask = null; - object.allowMissing = false; - } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifact, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - object.allowMissing = message.allowMissing; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateArtifactRequest to JSON. + * Converts this GetMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - UpdateArtifactRequest.prototype.toJSON = function toJSON() { + GetMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateArtifactRequest + * Gets the default type url for GetMetadataStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateArtifactRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetMetadataStoreRequest"; }; - return UpdateArtifactRequest; + return GetMetadataStoreRequest; })(); - v1.DeleteArtifactRequest = (function() { + v1.ListMetadataStoresRequest = (function() { /** - * Properties of a DeleteArtifactRequest. + * Properties of a ListMetadataStoresRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteArtifactRequest - * @property {string|null} [name] DeleteArtifactRequest name - * @property {string|null} [etag] DeleteArtifactRequest etag + * @interface IListMetadataStoresRequest + * @property {string|null} [parent] ListMetadataStoresRequest parent + * @property {number|null} [pageSize] ListMetadataStoresRequest pageSize + * @property {string|null} [pageToken] ListMetadataStoresRequest pageToken */ /** - * Constructs a new DeleteArtifactRequest. + * Constructs a new ListMetadataStoresRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteArtifactRequest. - * @implements IDeleteArtifactRequest + * @classdesc Represents a ListMetadataStoresRequest. + * @implements IListMetadataStoresRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest=} [properties] Properties to set */ - function DeleteArtifactRequest(properties) { + function ListMetadataStoresRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95867,89 +99964,103 @@ } /** - * DeleteArtifactRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * ListMetadataStoresRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @instance */ - DeleteArtifactRequest.prototype.name = ""; + ListMetadataStoresRequest.prototype.parent = ""; /** - * DeleteArtifactRequest etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * ListMetadataStoresRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @instance */ - DeleteArtifactRequest.prototype.etag = ""; + ListMetadataStoresRequest.prototype.pageSize = 0; /** - * Creates a new DeleteArtifactRequest instance using the specified properties. + * ListMetadataStoresRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @instance + */ + ListMetadataStoresRequest.prototype.pageToken = ""; + + /** + * Creates a new ListMetadataStoresRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest instance + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest instance */ - DeleteArtifactRequest.create = function create(properties) { - return new DeleteArtifactRequest(properties); + ListMetadataStoresRequest.create = function create(properties) { + return new ListMetadataStoresRequest(properties); }; /** - * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteArtifactRequest.encode = function encode(message, writer) { + ListMetadataStoresRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataStoresRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteArtifactRequest.decode = function decode(reader, length) { + ListMetadataStoresRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.etag = reader.string(); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -95961,133 +100072,141 @@ }; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataStoresRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteArtifactRequest message. + * Verifies a ListMetadataStoresRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteArtifactRequest.verify = function verify(message) { + ListMetadataStoresRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest */ - DeleteArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteArtifactRequest) + ListMetadataStoresRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteArtifactRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.etag != null) - message.etag = String(object.etag); + var message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteArtifactRequest} message DeleteArtifactRequest + * @param {google.cloud.aiplatform.v1.ListMetadataStoresRequest} message ListMetadataStoresRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteArtifactRequest.toObject = function toObject(message, options) { + ListMetadataStoresRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.etag = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this DeleteArtifactRequest to JSON. + * Converts this ListMetadataStoresRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @instance * @returns {Object.} JSON object */ - DeleteArtifactRequest.prototype.toJSON = function toJSON() { + ListMetadataStoresRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteArtifactRequest + * Gets the default type url for ListMetadataStoresRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataStoresRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteArtifactRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataStoresRequest"; }; - return DeleteArtifactRequest; + return ListMetadataStoresRequest; })(); - v1.PurgeArtifactsRequest = (function() { + v1.ListMetadataStoresResponse = (function() { /** - * Properties of a PurgeArtifactsRequest. + * Properties of a ListMetadataStoresResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeArtifactsRequest - * @property {string|null} [parent] PurgeArtifactsRequest parent - * @property {string|null} [filter] PurgeArtifactsRequest filter - * @property {boolean|null} [force] PurgeArtifactsRequest force + * @interface IListMetadataStoresResponse + * @property {Array.|null} [metadataStores] ListMetadataStoresResponse metadataStores + * @property {string|null} [nextPageToken] ListMetadataStoresResponse nextPageToken */ /** - * Constructs a new PurgeArtifactsRequest. + * Constructs a new ListMetadataStoresResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeArtifactsRequest. - * @implements IPurgeArtifactsRequest + * @classdesc Represents a ListMetadataStoresResponse. + * @implements IListMetadataStoresResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse=} [properties] Properties to set */ - function PurgeArtifactsRequest(properties) { + function ListMetadataStoresResponse(properties) { + this.metadataStores = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96095,103 +100214,92 @@ } /** - * PurgeArtifactsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest - * @instance - */ - PurgeArtifactsRequest.prototype.parent = ""; - - /** - * PurgeArtifactsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * ListMetadataStoresResponse metadataStores. + * @member {Array.} metadataStores + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @instance */ - PurgeArtifactsRequest.prototype.filter = ""; + ListMetadataStoresResponse.prototype.metadataStores = $util.emptyArray; /** - * PurgeArtifactsRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * ListMetadataStoresResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @instance */ - PurgeArtifactsRequest.prototype.force = false; + ListMetadataStoresResponse.prototype.nextPageToken = ""; /** - * Creates a new PurgeArtifactsRequest instance using the specified properties. + * Creates a new ListMetadataStoresResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest instance + * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse instance */ - PurgeArtifactsRequest.create = function create(properties) { - return new PurgeArtifactsRequest(properties); + ListMetadataStoresResponse.create = function create(properties) { + return new ListMetadataStoresResponse(properties); }; /** - * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsRequest.encode = function encode(message, writer) { + ListMetadataStoresResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.metadataStores != null && message.metadataStores.length) + for (var i = 0; i < message.metadataStores.length; ++i) + $root.google.cloud.aiplatform.v1.MetadataStore.encode(message.metadataStores[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataStoresResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsRequest.decode = function decode(reader, length) { + ListMetadataStoresResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.metadataStores && message.metadataStores.length)) + message.metadataStores = []; + message.metadataStores.push($root.google.cloud.aiplatform.v1.MetadataStore.decode(reader, reader.uint32())); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.force = reader.bool(); + message.nextPageToken = reader.string(); break; } default: @@ -96203,141 +100311,149 @@ }; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataStoresResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsRequest message. + * Verifies a ListMetadataStoresResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsRequest.verify = function verify(message) { + ListMetadataStoresResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.metadataStores != null && message.hasOwnProperty("metadataStores")) { + if (!Array.isArray(message.metadataStores)) + return "metadataStores: array expected"; + for (var i = 0; i < message.metadataStores.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MetadataStore.verify(message.metadataStores[i]); + if (error) + return "metadataStores." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse */ - PurgeArtifactsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest) + ListMetadataStoresResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse(); + if (object.metadataStores) { + if (!Array.isArray(object.metadataStores)) + throw TypeError(".google.cloud.aiplatform.v1.ListMetadataStoresResponse.metadataStores: array expected"); + message.metadataStores = []; + for (var i = 0; i < object.metadataStores.length; ++i) { + if (typeof object.metadataStores[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListMetadataStoresResponse.metadataStores: object expected"); + message.metadataStores[i] = $root.google.cloud.aiplatform.v1.MetadataStore.fromObject(object.metadataStores[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1.PurgeArtifactsRequest} message PurgeArtifactsRequest + * @param {google.cloud.aiplatform.v1.ListMetadataStoresResponse} message ListMetadataStoresResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsRequest.toObject = function toObject(message, options) { + ListMetadataStoresResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.force = false; + if (options.arrays || options.defaults) + object.metadataStores = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.metadataStores && message.metadataStores.length) { + object.metadataStores = []; + for (var j = 0; j < message.metadataStores.length; ++j) + object.metadataStores[j] = $root.google.cloud.aiplatform.v1.MetadataStore.toObject(message.metadataStores[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PurgeArtifactsRequest to JSON. + * Converts this ListMetadataStoresResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @instance * @returns {Object.} JSON object */ - PurgeArtifactsRequest.prototype.toJSON = function toJSON() { + ListMetadataStoresResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeArtifactsRequest + * Gets the default type url for ListMetadataStoresResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataStoresResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataStoresResponse"; }; - return PurgeArtifactsRequest; + return ListMetadataStoresResponse; })(); - v1.PurgeArtifactsResponse = (function() { + v1.DeleteMetadataStoreRequest = (function() { /** - * Properties of a PurgeArtifactsResponse. + * Properties of a DeleteMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeArtifactsResponse - * @property {number|Long|null} [purgeCount] PurgeArtifactsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeArtifactsResponse purgeSample + * @interface IDeleteMetadataStoreRequest + * @property {string|null} [name] DeleteMetadataStoreRequest name + * @property {boolean|null} [force] DeleteMetadataStoreRequest force */ /** - * Constructs a new PurgeArtifactsResponse. + * Constructs a new DeleteMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeArtifactsResponse. - * @implements IPurgeArtifactsResponse + * @classdesc Represents a DeleteMetadataStoreRequest. + * @implements IDeleteMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest=} [properties] Properties to set */ - function PurgeArtifactsResponse(properties) { - this.purgeSample = []; + function DeleteMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96345,92 +100461,89 @@ } /** - * PurgeArtifactsResponse purgeCount. - * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * DeleteMetadataStoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @instance */ - PurgeArtifactsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeleteMetadataStoreRequest.prototype.name = ""; /** - * PurgeArtifactsResponse purgeSample. - * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * DeleteMetadataStoreRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @instance */ - PurgeArtifactsResponse.prototype.purgeSample = $util.emptyArray; + DeleteMetadataStoreRequest.prototype.force = false; /** - * Creates a new PurgeArtifactsResponse instance using the specified properties. + * Creates a new DeleteMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse instance + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest instance */ - PurgeArtifactsResponse.create = function create(properties) { - return new PurgeArtifactsResponse(properties); + DeleteMetadataStoreRequest.create = function create(properties) { + return new DeleteMetadataStoreRequest(properties); }; /** - * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsResponse.encode = function encode(message, writer) { + DeleteMetadataStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); - if (message.purgeSample != null && message.purgeSample.length) - for (var i = 0; i < message.purgeSample.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsResponse.decode = function decode(reader, length) { + DeleteMetadataStoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.purgeCount = reader.int64(); + message.name = reader.string(); break; } case 2: { - if (!(message.purgeSample && message.purgeSample.length)) - message.purgeSample = []; - message.purgeSample.push(reader.string()); + message.force = reader.bool(); break; } default: @@ -96442,157 +100555,131 @@ }; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsResponse message. + * Verifies a DeleteMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsResponse.verify = function verify(message) { + DeleteMetadataStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) - return "purgeCount: integer|Long expected"; - if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { - if (!Array.isArray(message.purgeSample)) - return "purgeSample: array expected"; - for (var i = 0; i < message.purgeSample.length; ++i) - if (!$util.isString(message.purgeSample[i])) - return "purgeSample: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest */ - PurgeArtifactsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse) + DeleteMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse(); - if (object.purgeCount != null) - if ($util.Long) - (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; - else if (typeof object.purgeCount === "string") - message.purgeCount = parseInt(object.purgeCount, 10); - else if (typeof object.purgeCount === "number") - message.purgeCount = object.purgeCount; - else if (typeof object.purgeCount === "object") - message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); - if (object.purgeSample) { - if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1.PurgeArtifactsResponse.purgeSample: array expected"); - message.purgeSample = []; - for (var i = 0; i < object.purgeSample.length; ++i) - message.purgeSample[i] = String(object.purgeSample[i]); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.PurgeArtifactsResponse} message PurgeArtifactsResponse + * @param {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} message DeleteMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsResponse.toObject = function toObject(message, options) { + DeleteMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.purgeSample = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.purgeCount = options.longs === String ? "0" : 0; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (typeof message.purgeCount === "number") - object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; - else - object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; - if (message.purgeSample && message.purgeSample.length) { - object.purgeSample = []; - for (var j = 0; j < message.purgeSample.length; ++j) - object.purgeSample[j] = message.purgeSample[j]; + if (options.defaults) { + object.name = ""; + object.force = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this PurgeArtifactsResponse to JSON. + * Converts this DeleteMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - PurgeArtifactsResponse.prototype.toJSON = function toJSON() { + DeleteMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeArtifactsResponse + * Gets the default type url for DeleteMetadataStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteMetadataStoreRequest"; }; - return PurgeArtifactsResponse; + return DeleteMetadataStoreRequest; })(); - v1.PurgeArtifactsMetadata = (function() { + v1.DeleteMetadataStoreOperationMetadata = (function() { /** - * Properties of a PurgeArtifactsMetadata. + * Properties of a DeleteMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeArtifactsMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeArtifactsMetadata genericMetadata + * @interface IDeleteMetadataStoreOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] DeleteMetadataStoreOperationMetadata genericMetadata */ /** - * Constructs a new PurgeArtifactsMetadata. + * Constructs a new DeleteMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeArtifactsMetadata. - * @implements IPurgeArtifactsMetadata + * @classdesc Represents a DeleteMetadataStoreOperationMetadata. + * @implements IDeleteMetadataStoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set */ - function PurgeArtifactsMetadata(properties) { + function DeleteMetadataStoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96600,35 +100687,35 @@ } /** - * PurgeArtifactsMetadata genericMetadata. + * DeleteMetadataStoreOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @instance */ - PurgeArtifactsMetadata.prototype.genericMetadata = null; + DeleteMetadataStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new PurgeArtifactsMetadata instance using the specified properties. + * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata instance + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata instance */ - PurgeArtifactsMetadata.create = function create(properties) { - return new PurgeArtifactsMetadata(properties); + DeleteMetadataStoreOperationMetadata.create = function create(properties) { + return new DeleteMetadataStoreOperationMetadata(properties); }; /** - * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsMetadata.encode = function encode(message, writer) { + DeleteMetadataStoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -96637,33 +100724,33 @@ }; /** - * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsMetadata.decode = function decode(reader, length) { + DeleteMetadataStoreOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -96680,30 +100767,30 @@ }; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsMetadata message. + * Verifies a DeleteMetadataStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsMetadata.verify = function verify(message) { + DeleteMetadataStoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -96715,35 +100802,35 @@ }; /** - * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata */ - PurgeArtifactsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata) + DeleteMetadataStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata(); + var message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PurgeArtifactsMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} message PurgeArtifactsMetadata + * @param {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsMetadata.toObject = function toObject(message, options) { + DeleteMetadataStoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -96755,54 +100842,54 @@ }; /** - * Converts this PurgeArtifactsMetadata to JSON. + * Converts this DeleteMetadataStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - PurgeArtifactsMetadata.prototype.toJSON = function toJSON() { + DeleteMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeArtifactsMetadata + * Gets the default type url for DeleteMetadataStoreOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeArtifactsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata"; }; - return PurgeArtifactsMetadata; + return DeleteMetadataStoreOperationMetadata; })(); - v1.CreateContextRequest = (function() { + v1.CreateArtifactRequest = (function() { /** - * Properties of a CreateContextRequest. + * Properties of a CreateArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateContextRequest - * @property {string|null} [parent] CreateContextRequest parent - * @property {google.cloud.aiplatform.v1.IContext|null} [context] CreateContextRequest context - * @property {string|null} [contextId] CreateContextRequest contextId + * @interface ICreateArtifactRequest + * @property {string|null} [parent] CreateArtifactRequest parent + * @property {google.cloud.aiplatform.v1.IArtifact|null} [artifact] CreateArtifactRequest artifact + * @property {string|null} [artifactId] CreateArtifactRequest artifactId */ /** - * Constructs a new CreateContextRequest. + * Constructs a new CreateArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateContextRequest. - * @implements ICreateContextRequest + * @classdesc Represents a CreateArtifactRequest. + * @implements ICreateArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest=} [properties] Properties to set */ - function CreateContextRequest(properties) { + function CreateArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96810,90 +100897,90 @@ } /** - * CreateContextRequest parent. + * CreateArtifactRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @instance */ - CreateContextRequest.prototype.parent = ""; + CreateArtifactRequest.prototype.parent = ""; /** - * CreateContextRequest context. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} context - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * CreateArtifactRequest artifact. + * @member {google.cloud.aiplatform.v1.IArtifact|null|undefined} artifact + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @instance */ - CreateContextRequest.prototype.context = null; + CreateArtifactRequest.prototype.artifact = null; /** - * CreateContextRequest contextId. - * @member {string} contextId - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * CreateArtifactRequest artifactId. + * @member {string} artifactId + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @instance */ - CreateContextRequest.prototype.contextId = ""; + CreateArtifactRequest.prototype.artifactId = ""; /** - * Creates a new CreateContextRequest instance using the specified properties. + * Creates a new CreateArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest instance + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest instance */ - CreateContextRequest.create = function create(properties) { - return new CreateContextRequest(properties); + CreateArtifactRequest.create = function create(properties) { + return new CreateArtifactRequest(properties); }; /** - * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. + * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateContextRequest} message CreateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateContextRequest.encode = function encode(message, writer) { + CreateArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - $root.google.cloud.aiplatform.v1.Context.encode(message.context, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.contextId != null && Object.hasOwnProperty.call(message, "contextId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.contextId); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifact, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.artifactId); return writer; }; /** - * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. + * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateContextRequest} message CreateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateContextRequest message from the specified reader or buffer. + * Decodes a CreateArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateContextRequest.decode = function decode(reader, length) { + CreateArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -96902,11 +100989,11 @@ break; } case 2: { - message.context = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + message.artifact = $root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32()); break; } case 3: { - message.contextId = reader.string(); + message.artifactId = reader.string(); break; } default: @@ -96918,144 +101005,144 @@ }; /** - * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateContextRequest.decodeDelimited = function decodeDelimited(reader) { + CreateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateContextRequest message. + * Verifies a CreateArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateContextRequest.verify = function verify(message) { + CreateArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.context != null && message.hasOwnProperty("context")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.context); + if (message.artifact != null && message.hasOwnProperty("artifact")) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifact); if (error) - return "context." + error; + return "artifact." + error; } - if (message.contextId != null && message.hasOwnProperty("contextId")) - if (!$util.isString(message.contextId)) - return "contextId: string expected"; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; return null; }; /** - * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest */ - CreateContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateContextRequest) + CreateArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateContextRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateArtifactRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.context != null) { - if (typeof object.context !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateContextRequest.context: object expected"); - message.context = $root.google.cloud.aiplatform.v1.Context.fromObject(object.context); + if (object.artifact != null) { + if (typeof object.artifact !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateArtifactRequest.artifact: object expected"); + message.artifact = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifact); } - if (object.contextId != null) - message.contextId = String(object.contextId); + if (object.artifactId != null) + message.artifactId = String(object.artifactId); return message; }; /** - * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.CreateContextRequest} message CreateContextRequest + * @param {google.cloud.aiplatform.v1.CreateArtifactRequest} message CreateArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateContextRequest.toObject = function toObject(message, options) { + CreateArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.context = null; - object.contextId = ""; + object.artifact = null; + object.artifactId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.context != null && message.hasOwnProperty("context")) - object.context = $root.google.cloud.aiplatform.v1.Context.toObject(message.context, options); - if (message.contextId != null && message.hasOwnProperty("contextId")) - object.contextId = message.contextId; + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifact, options); + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + object.artifactId = message.artifactId; return object; }; /** - * Converts this CreateContextRequest to JSON. + * Converts this CreateArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @instance * @returns {Object.} JSON object */ - CreateContextRequest.prototype.toJSON = function toJSON() { + CreateArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateContextRequest + * Gets the default type url for CreateArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateArtifactRequest"; }; - return CreateContextRequest; + return CreateArtifactRequest; })(); - v1.GetContextRequest = (function() { + v1.GetArtifactRequest = (function() { /** - * Properties of a GetContextRequest. + * Properties of a GetArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetContextRequest - * @property {string|null} [name] GetContextRequest name + * @interface IGetArtifactRequest + * @property {string|null} [name] GetArtifactRequest name */ /** - * Constructs a new GetContextRequest. + * Constructs a new GetArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetContextRequest. - * @implements IGetContextRequest + * @classdesc Represents a GetArtifactRequest. + * @implements IGetArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest=} [properties] Properties to set */ - function GetContextRequest(properties) { + function GetArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97063,35 +101150,35 @@ } /** - * GetContextRequest name. + * GetArtifactRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @instance */ - GetContextRequest.prototype.name = ""; + GetArtifactRequest.prototype.name = ""; /** - * Creates a new GetContextRequest instance using the specified properties. + * Creates a new GetArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IGetContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest instance + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest instance */ - GetContextRequest.create = function create(properties) { - return new GetContextRequest(properties); + GetArtifactRequest.create = function create(properties) { + return new GetArtifactRequest(properties); }; /** - * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. + * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetContextRequest.encode = function encode(message, writer) { + GetArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -97100,33 +101187,33 @@ }; /** - * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. + * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetContextRequest message from the specified reader or buffer. + * Decodes a GetArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetContextRequest.decode = function decode(reader, length) { + GetArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -97143,30 +101230,30 @@ }; /** - * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. + * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetContextRequest.decodeDelimited = function decodeDelimited(reader) { + GetArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetContextRequest message. + * Verifies a GetArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetContextRequest.verify = function verify(message) { + GetArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -97176,32 +101263,32 @@ }; /** - * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest */ - GetContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetContextRequest) + GetArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetContextRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetArtifactRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.GetContextRequest} message GetContextRequest + * @param {google.cloud.aiplatform.v1.GetArtifactRequest} message GetArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetContextRequest.toObject = function toObject(message, options) { + GetArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -97213,56 +101300,56 @@ }; /** - * Converts this GetContextRequest to JSON. + * Converts this GetArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @instance * @returns {Object.} JSON object */ - GetContextRequest.prototype.toJSON = function toJSON() { + GetArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetContextRequest + * Gets the default type url for GetArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetArtifactRequest"; }; - return GetContextRequest; + return GetArtifactRequest; })(); - v1.ListContextsRequest = (function() { + v1.ListArtifactsRequest = (function() { /** - * Properties of a ListContextsRequest. + * Properties of a ListArtifactsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListContextsRequest - * @property {string|null} [parent] ListContextsRequest parent - * @property {number|null} [pageSize] ListContextsRequest pageSize - * @property {string|null} [pageToken] ListContextsRequest pageToken - * @property {string|null} [filter] ListContextsRequest filter - * @property {string|null} [orderBy] ListContextsRequest orderBy + * @interface IListArtifactsRequest + * @property {string|null} [parent] ListArtifactsRequest parent + * @property {number|null} [pageSize] ListArtifactsRequest pageSize + * @property {string|null} [pageToken] ListArtifactsRequest pageToken + * @property {string|null} [filter] ListArtifactsRequest filter + * @property {string|null} [orderBy] ListArtifactsRequest orderBy */ /** - * Constructs a new ListContextsRequest. + * Constructs a new ListArtifactsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListContextsRequest. - * @implements IListContextsRequest + * @classdesc Represents a ListArtifactsRequest. + * @implements IListArtifactsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListContextsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest=} [properties] Properties to set */ - function ListContextsRequest(properties) { + function ListArtifactsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97270,67 +101357,67 @@ } /** - * ListContextsRequest parent. + * ListArtifactsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.parent = ""; + ListArtifactsRequest.prototype.parent = ""; /** - * ListContextsRequest pageSize. + * ListArtifactsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.pageSize = 0; + ListArtifactsRequest.prototype.pageSize = 0; /** - * ListContextsRequest pageToken. + * ListArtifactsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.pageToken = ""; + ListArtifactsRequest.prototype.pageToken = ""; /** - * ListContextsRequest filter. + * ListArtifactsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.filter = ""; + ListArtifactsRequest.prototype.filter = ""; /** - * ListContextsRequest orderBy. + * ListArtifactsRequest orderBy. * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.orderBy = ""; + ListArtifactsRequest.prototype.orderBy = ""; /** - * Creates a new ListContextsRequest instance using the specified properties. + * Creates a new ListArtifactsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IListContextsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest instance + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest instance */ - ListContextsRequest.create = function create(properties) { - return new ListContextsRequest(properties); + ListArtifactsRequest.create = function create(properties) { + return new ListArtifactsRequest(properties); }; /** - * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. + * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsRequest.encode = function encode(message, writer) { + ListArtifactsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -97347,33 +101434,33 @@ }; /** - * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. + * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContextsRequest message from the specified reader or buffer. + * Decodes a ListArtifactsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsRequest.decode = function decode(reader, length) { + ListArtifactsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListContextsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListArtifactsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -97406,30 +101493,30 @@ }; /** - * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsRequest.decodeDelimited = function decodeDelimited(reader) { + ListArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContextsRequest message. + * Verifies a ListArtifactsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContextsRequest.verify = function verify(message) { + ListArtifactsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -97451,17 +101538,17 @@ }; /** - * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest */ - ListContextsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListContextsRequest) + ListArtifactsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListArtifactsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListContextsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListArtifactsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -97476,15 +101563,15 @@ }; /** - * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.ListContextsRequest} message ListContextsRequest + * @param {google.cloud.aiplatform.v1.ListArtifactsRequest} message ListArtifactsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContextsRequest.toObject = function toObject(message, options) { + ListArtifactsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -97509,54 +101596,54 @@ }; /** - * Converts this ListContextsRequest to JSON. + * Converts this ListArtifactsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance * @returns {Object.} JSON object */ - ListContextsRequest.prototype.toJSON = function toJSON() { + ListArtifactsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListContextsRequest + * Gets the default type url for ListArtifactsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListContextsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListArtifactsRequest"; }; - return ListContextsRequest; + return ListArtifactsRequest; })(); - v1.ListContextsResponse = (function() { + v1.ListArtifactsResponse = (function() { /** - * Properties of a ListContextsResponse. + * Properties of a ListArtifactsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListContextsResponse - * @property {Array.|null} [contexts] ListContextsResponse contexts - * @property {string|null} [nextPageToken] ListContextsResponse nextPageToken + * @interface IListArtifactsResponse + * @property {Array.|null} [artifacts] ListArtifactsResponse artifacts + * @property {string|null} [nextPageToken] ListArtifactsResponse nextPageToken */ /** - * Constructs a new ListContextsResponse. + * Constructs a new ListArtifactsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListContextsResponse. - * @implements IListContextsResponse + * @classdesc Represents a ListArtifactsResponse. + * @implements IListArtifactsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListContextsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListArtifactsResponse=} [properties] Properties to set */ - function ListContextsResponse(properties) { - this.contexts = []; + function ListArtifactsResponse(properties) { + this.artifacts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97564,88 +101651,88 @@ } /** - * ListContextsResponse contexts. - * @member {Array.} contexts - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * ListArtifactsResponse artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @instance */ - ListContextsResponse.prototype.contexts = $util.emptyArray; + ListArtifactsResponse.prototype.artifacts = $util.emptyArray; /** - * ListContextsResponse nextPageToken. + * ListArtifactsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @instance */ - ListContextsResponse.prototype.nextPageToken = ""; + ListArtifactsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListContextsResponse instance using the specified properties. + * Creates a new ListArtifactsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IListContextsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse instance + * @param {google.cloud.aiplatform.v1.IListArtifactsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse instance */ - ListContextsResponse.create = function create(properties) { - return new ListContextsResponse(properties); + ListArtifactsResponse.create = function create(properties) { + return new ListArtifactsResponse(properties); }; /** - * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. + * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsResponse.encode = function encode(message, writer) { + ListArtifactsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contexts != null && message.contexts.length) - for (var i = 0; i < message.contexts.length; ++i) - $root.google.cloud.aiplatform.v1.Context.encode(message.contexts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. + * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContextsResponse message from the specified reader or buffer. + * Decodes a ListArtifactsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsResponse.decode = function decode(reader, length) { + ListArtifactsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListContextsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListArtifactsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.contexts && message.contexts.length)) - message.contexts = []; - message.contexts.push($root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32())); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); break; } case 2: { @@ -97661,39 +101748,39 @@ }; /** - * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsResponse.decodeDelimited = function decodeDelimited(reader) { + ListArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContextsResponse message. + * Verifies a ListArtifactsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContextsResponse.verify = function verify(message) { + ListArtifactsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.contexts != null && message.hasOwnProperty("contexts")) { - if (!Array.isArray(message.contexts)) - return "contexts: array expected"; - for (var i = 0; i < message.contexts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.contexts[i]); + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); if (error) - return "contexts." + error; + return "artifacts." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -97703,25 +101790,25 @@ }; /** - * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse */ - ListContextsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListContextsResponse) + ListArtifactsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListArtifactsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListContextsResponse(); - if (object.contexts) { - if (!Array.isArray(object.contexts)) - throw TypeError(".google.cloud.aiplatform.v1.ListContextsResponse.contexts: array expected"); - message.contexts = []; - for (var i = 0; i < object.contexts.length; ++i) { - if (typeof object.contexts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListContextsResponse.contexts: object expected"); - message.contexts[i] = $root.google.cloud.aiplatform.v1.Context.fromObject(object.contexts[i]); + var message = new $root.google.cloud.aiplatform.v1.ListArtifactsResponse(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.ListArtifactsResponse.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListArtifactsResponse.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); } } if (object.nextPageToken != null) @@ -97730,26 +101817,26 @@ }; /** - * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.ListContextsResponse} message ListContextsResponse + * @param {google.cloud.aiplatform.v1.ListArtifactsResponse} message ListArtifactsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContextsResponse.toObject = function toObject(message, options) { + ListArtifactsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.contexts = []; + object.artifacts = []; if (options.defaults) object.nextPageToken = ""; - if (message.contexts && message.contexts.length) { - object.contexts = []; - for (var j = 0; j < message.contexts.length; ++j) - object.contexts[j] = $root.google.cloud.aiplatform.v1.Context.toObject(message.contexts[j], options); + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -97757,54 +101844,54 @@ }; /** - * Converts this ListContextsResponse to JSON. + * Converts this ListArtifactsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @instance * @returns {Object.} JSON object */ - ListContextsResponse.prototype.toJSON = function toJSON() { + ListArtifactsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListContextsResponse + * Gets the default type url for ListArtifactsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListContextsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListArtifactsResponse"; }; - return ListContextsResponse; + return ListArtifactsResponse; })(); - v1.UpdateContextRequest = (function() { + v1.UpdateArtifactRequest = (function() { /** - * Properties of an UpdateContextRequest. + * Properties of an UpdateArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateContextRequest - * @property {google.cloud.aiplatform.v1.IContext|null} [context] UpdateContextRequest context - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateContextRequest updateMask - * @property {boolean|null} [allowMissing] UpdateContextRequest allowMissing + * @interface IUpdateArtifactRequest + * @property {google.cloud.aiplatform.v1.IArtifact|null} [artifact] UpdateArtifactRequest artifact + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateArtifactRequest updateMask + * @property {boolean|null} [allowMissing] UpdateArtifactRequest allowMissing */ /** - * Constructs a new UpdateContextRequest. + * Constructs a new UpdateArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateContextRequest. - * @implements IUpdateContextRequest + * @classdesc Represents an UpdateArtifactRequest. + * @implements IUpdateArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest=} [properties] Properties to set */ - function UpdateContextRequest(properties) { + function UpdateArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97812,55 +101899,55 @@ } /** - * UpdateContextRequest context. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} context - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * UpdateArtifactRequest artifact. + * @member {google.cloud.aiplatform.v1.IArtifact|null|undefined} artifact + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @instance */ - UpdateContextRequest.prototype.context = null; + UpdateArtifactRequest.prototype.artifact = null; /** - * UpdateContextRequest updateMask. + * UpdateArtifactRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @instance */ - UpdateContextRequest.prototype.updateMask = null; + UpdateArtifactRequest.prototype.updateMask = null; /** - * UpdateContextRequest allowMissing. + * UpdateArtifactRequest allowMissing. * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @instance */ - UpdateContextRequest.prototype.allowMissing = false; + UpdateArtifactRequest.prototype.allowMissing = false; /** - * Creates a new UpdateContextRequest instance using the specified properties. + * Creates a new UpdateArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest instance */ - UpdateContextRequest.create = function create(properties) { - return new UpdateContextRequest(properties); + UpdateArtifactRequest.create = function create(properties) { + return new UpdateArtifactRequest(properties); }; /** - * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. + * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateContextRequest.encode = function encode(message, writer) { + UpdateArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - $root.google.cloud.aiplatform.v1.Context.encode(message.context, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifact, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) @@ -97869,38 +101956,38 @@ }; /** - * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. + * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateContextRequest.decode = function decode(reader, length) { + UpdateArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + message.artifact = $root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32()); break; } case 2: { @@ -97920,36 +102007,36 @@ }; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateContextRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateContextRequest message. + * Verifies an UpdateArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateContextRequest.verify = function verify(message) { + UpdateArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.context); + if (message.artifact != null && message.hasOwnProperty("artifact")) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifact); if (error) - return "context." + error; + return "artifact." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); @@ -97963,25 +102050,25 @@ }; /** - * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest */ - UpdateContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateContextRequest) + UpdateArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateContextRequest(); - if (object.context != null) { - if (typeof object.context !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateContextRequest.context: object expected"); - message.context = $root.google.cloud.aiplatform.v1.Context.fromObject(object.context); + var message = new $root.google.cloud.aiplatform.v1.UpdateArtifactRequest(); + if (object.artifact != null) { + if (typeof object.artifact !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateArtifactRequest.artifact: object expected"); + message.artifact = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifact); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateContextRequest.updateMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.UpdateArtifactRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } if (object.allowMissing != null) @@ -97990,25 +102077,25 @@ }; /** - * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateContextRequest} message UpdateContextRequest + * @param {google.cloud.aiplatform.v1.UpdateArtifactRequest} message UpdateArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateContextRequest.toObject = function toObject(message, options) { + UpdateArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.context = null; + object.artifact = null; object.updateMask = null; object.allowMissing = false; } - if (message.context != null && message.hasOwnProperty("context")) - object.context = $root.google.cloud.aiplatform.v1.Context.toObject(message.context, options); + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifact, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) @@ -98017,54 +102104,53 @@ }; /** - * Converts this UpdateContextRequest to JSON. + * Converts this UpdateArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @instance * @returns {Object.} JSON object */ - UpdateContextRequest.prototype.toJSON = function toJSON() { + UpdateArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateContextRequest + * Gets the default type url for UpdateArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateArtifactRequest"; }; - return UpdateContextRequest; + return UpdateArtifactRequest; })(); - v1.DeleteContextRequest = (function() { + v1.DeleteArtifactRequest = (function() { /** - * Properties of a DeleteContextRequest. + * Properties of a DeleteArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteContextRequest - * @property {string|null} [name] DeleteContextRequest name - * @property {boolean|null} [force] DeleteContextRequest force - * @property {string|null} [etag] DeleteContextRequest etag + * @interface IDeleteArtifactRequest + * @property {string|null} [name] DeleteArtifactRequest name + * @property {string|null} [etag] DeleteArtifactRequest etag */ /** - * Constructs a new DeleteContextRequest. + * Constructs a new DeleteArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteContextRequest. - * @implements IDeleteContextRequest + * @classdesc Represents a DeleteArtifactRequest. + * @implements IDeleteArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest=} [properties] Properties to set */ - function DeleteContextRequest(properties) { + function DeleteArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98072,90 +102158,80 @@ } /** - * DeleteContextRequest name. + * DeleteArtifactRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest - * @instance - */ - DeleteContextRequest.prototype.name = ""; - - /** - * DeleteContextRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @instance */ - DeleteContextRequest.prototype.force = false; + DeleteArtifactRequest.prototype.name = ""; /** - * DeleteContextRequest etag. + * DeleteArtifactRequest etag. * @member {string} etag - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @instance */ - DeleteContextRequest.prototype.etag = ""; + DeleteArtifactRequest.prototype.etag = ""; /** - * Creates a new DeleteContextRequest instance using the specified properties. + * Creates a new DeleteArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest instance */ - DeleteContextRequest.create = function create(properties) { - return new DeleteContextRequest(properties); + DeleteArtifactRequest.create = function create(properties) { + return new DeleteArtifactRequest(properties); }; /** - * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. + * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteContextRequest.encode = function encode(message, writer) { + DeleteArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. + * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteContextRequest.decode = function decode(reader, length) { + DeleteArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -98164,10 +102240,6 @@ break; } case 2: { - message.force = reader.bool(); - break; - } - case 3: { message.etag = reader.string(); break; } @@ -98180,38 +102252,35 @@ }; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteContextRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteContextRequest message. + * Verifies a DeleteArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteContextRequest.verify = function verify(message) { + DeleteArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; if (message.etag != null && message.hasOwnProperty("etag")) if (!$util.isString(message.etag)) return "etag: string expected"; @@ -98219,102 +102288,97 @@ }; /** - * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest */ - DeleteContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteContextRequest) + DeleteArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteContextRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteArtifactRequest(); if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); if (object.etag != null) message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteContextRequest} message DeleteContextRequest + * @param {google.cloud.aiplatform.v1.DeleteArtifactRequest} message DeleteArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteContextRequest.toObject = function toObject(message, options) { + DeleteArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.force = false; object.etag = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; if (message.etag != null && message.hasOwnProperty("etag")) object.etag = message.etag; return object; }; /** - * Converts this DeleteContextRequest to JSON. + * Converts this DeleteArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @instance * @returns {Object.} JSON object */ - DeleteContextRequest.prototype.toJSON = function toJSON() { + DeleteArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteContextRequest + * Gets the default type url for DeleteArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteArtifactRequest"; }; - return DeleteContextRequest; + return DeleteArtifactRequest; })(); - v1.PurgeContextsRequest = (function() { + v1.PurgeArtifactsRequest = (function() { /** - * Properties of a PurgeContextsRequest. + * Properties of a PurgeArtifactsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeContextsRequest - * @property {string|null} [parent] PurgeContextsRequest parent - * @property {string|null} [filter] PurgeContextsRequest filter - * @property {boolean|null} [force] PurgeContextsRequest force + * @interface IPurgeArtifactsRequest + * @property {string|null} [parent] PurgeArtifactsRequest parent + * @property {string|null} [filter] PurgeArtifactsRequest filter + * @property {boolean|null} [force] PurgeArtifactsRequest force */ /** - * Constructs a new PurgeContextsRequest. + * Constructs a new PurgeArtifactsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeContextsRequest. - * @implements IPurgeContextsRequest + * @classdesc Represents a PurgeArtifactsRequest. + * @implements IPurgeArtifactsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest=} [properties] Properties to set */ - function PurgeContextsRequest(properties) { + function PurgeArtifactsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98322,51 +102386,51 @@ } /** - * PurgeContextsRequest parent. + * PurgeArtifactsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @instance */ - PurgeContextsRequest.prototype.parent = ""; + PurgeArtifactsRequest.prototype.parent = ""; /** - * PurgeContextsRequest filter. + * PurgeArtifactsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @instance */ - PurgeContextsRequest.prototype.filter = ""; + PurgeArtifactsRequest.prototype.filter = ""; /** - * PurgeContextsRequest force. + * PurgeArtifactsRequest force. * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @instance */ - PurgeContextsRequest.prototype.force = false; + PurgeArtifactsRequest.prototype.force = false; /** - * Creates a new PurgeContextsRequest instance using the specified properties. + * Creates a new PurgeArtifactsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest instance */ - PurgeContextsRequest.create = function create(properties) { - return new PurgeContextsRequest(properties); + PurgeArtifactsRequest.create = function create(properties) { + return new PurgeArtifactsRequest(properties); }; /** - * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsRequest.encode = function encode(message, writer) { + PurgeArtifactsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -98379,33 +102443,33 @@ }; /** - * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsRequest.decode = function decode(reader, length) { + PurgeArtifactsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeContextsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -98430,30 +102494,30 @@ }; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsRequest message. + * Verifies a PurgeArtifactsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsRequest.verify = function verify(message) { + PurgeArtifactsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -98469,17 +102533,17 @@ }; /** - * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest */ - PurgeContextsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsRequest) + PurgeArtifactsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeContextsRequest(); + var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -98490,15 +102554,15 @@ }; /** - * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.PurgeContextsRequest} message PurgeContextsRequest + * @param {google.cloud.aiplatform.v1.PurgeArtifactsRequest} message PurgeArtifactsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsRequest.toObject = function toObject(message, options) { + PurgeArtifactsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -98517,53 +102581,53 @@ }; /** - * Converts this PurgeContextsRequest to JSON. + * Converts this PurgeArtifactsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @instance * @returns {Object.} JSON object */ - PurgeContextsRequest.prototype.toJSON = function toJSON() { + PurgeArtifactsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeContextsRequest + * Gets the default type url for PurgeArtifactsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsRequest"; }; - return PurgeContextsRequest; + return PurgeArtifactsRequest; })(); - v1.PurgeContextsResponse = (function() { + v1.PurgeArtifactsResponse = (function() { /** - * Properties of a PurgeContextsResponse. + * Properties of a PurgeArtifactsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeContextsResponse - * @property {number|Long|null} [purgeCount] PurgeContextsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeContextsResponse purgeSample + * @interface IPurgeArtifactsResponse + * @property {number|Long|null} [purgeCount] PurgeArtifactsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeArtifactsResponse purgeSample */ /** - * Constructs a new PurgeContextsResponse. + * Constructs a new PurgeArtifactsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeContextsResponse. - * @implements IPurgeContextsResponse + * @classdesc Represents a PurgeArtifactsResponse. + * @implements IPurgeArtifactsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse=} [properties] Properties to set */ - function PurgeContextsResponse(properties) { + function PurgeArtifactsResponse(properties) { this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -98572,43 +102636,43 @@ } /** - * PurgeContextsResponse purgeCount. + * PurgeArtifactsResponse purgeCount. * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @instance */ - PurgeContextsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PurgeArtifactsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * PurgeContextsResponse purgeSample. + * PurgeArtifactsResponse purgeSample. * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @instance */ - PurgeContextsResponse.prototype.purgeSample = $util.emptyArray; + PurgeArtifactsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new PurgeContextsResponse instance using the specified properties. + * Creates a new PurgeArtifactsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse instance */ - PurgeContextsResponse.create = function create(properties) { - return new PurgeContextsResponse(properties); + PurgeArtifactsResponse.create = function create(properties) { + return new PurgeArtifactsResponse(properties); }; /** - * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. + * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsResponse.encode = function encode(message, writer) { + PurgeArtifactsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) @@ -98620,33 +102684,33 @@ }; /** - * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. + * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsResponse.decode = function decode(reader, length) { + PurgeArtifactsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeContextsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -98669,30 +102733,30 @@ }; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsResponse.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsResponse message. + * Verifies a PurgeArtifactsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsResponse.verify = function verify(message) { + PurgeArtifactsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) @@ -98709,17 +102773,17 @@ }; /** - * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse */ - PurgeContextsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsResponse) + PurgeArtifactsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeContextsResponse(); + var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse(); if (object.purgeCount != null) if ($util.Long) (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; @@ -98731,7 +102795,7 @@ message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); if (object.purgeSample) { if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1.PurgeContextsResponse.purgeSample: array expected"); + throw TypeError(".google.cloud.aiplatform.v1.PurgeArtifactsResponse.purgeSample: array expected"); message.purgeSample = []; for (var i = 0; i < object.purgeSample.length; ++i) message.purgeSample[i] = String(object.purgeSample[i]); @@ -98740,15 +102804,15 @@ }; /** - * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.PurgeContextsResponse} message PurgeContextsResponse + * @param {google.cloud.aiplatform.v1.PurgeArtifactsResponse} message PurgeArtifactsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsResponse.toObject = function toObject(message, options) { + PurgeArtifactsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -98774,52 +102838,52 @@ }; /** - * Converts this PurgeContextsResponse to JSON. + * Converts this PurgeArtifactsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @instance * @returns {Object.} JSON object */ - PurgeContextsResponse.prototype.toJSON = function toJSON() { + PurgeArtifactsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeContextsResponse + * Gets the default type url for PurgeArtifactsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsResponse"; }; - return PurgeContextsResponse; + return PurgeArtifactsResponse; })(); - v1.PurgeContextsMetadata = (function() { + v1.PurgeArtifactsMetadata = (function() { /** - * Properties of a PurgeContextsMetadata. + * Properties of a PurgeArtifactsMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeContextsMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeContextsMetadata genericMetadata + * @interface IPurgeArtifactsMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeArtifactsMetadata genericMetadata */ /** - * Constructs a new PurgeContextsMetadata. + * Constructs a new PurgeArtifactsMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeContextsMetadata. - * @implements IPurgeContextsMetadata + * @classdesc Represents a PurgeArtifactsMetadata. + * @implements IPurgeArtifactsMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata=} [properties] Properties to set */ - function PurgeContextsMetadata(properties) { + function PurgeArtifactsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98827,35 +102891,35 @@ } /** - * PurgeContextsMetadata genericMetadata. + * PurgeArtifactsMetadata genericMetadata. * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @instance */ - PurgeContextsMetadata.prototype.genericMetadata = null; + PurgeArtifactsMetadata.prototype.genericMetadata = null; /** - * Creates a new PurgeContextsMetadata instance using the specified properties. + * Creates a new PurgeArtifactsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata instance */ - PurgeContextsMetadata.create = function create(properties) { - return new PurgeContextsMetadata(properties); + PurgeArtifactsMetadata.create = function create(properties) { + return new PurgeArtifactsMetadata(properties); }; /** - * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. + * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsMetadata.encode = function encode(message, writer) { + PurgeArtifactsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -98864,33 +102928,33 @@ }; /** - * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. + * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsMetadata.decode = function decode(reader, length) { + PurgeArtifactsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeContextsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -98907,30 +102971,30 @@ }; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsMetadata.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsMetadata message. + * Verifies a PurgeArtifactsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsMetadata.verify = function verify(message) { + PurgeArtifactsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -98942,35 +103006,35 @@ }; /** - * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata */ - PurgeContextsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsMetadata) + PurgeArtifactsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeContextsMetadata(); + var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PurgeContextsMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PurgeArtifactsMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1.PurgeContextsMetadata} message PurgeContextsMetadata + * @param {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} message PurgeArtifactsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsMetadata.toObject = function toObject(message, options) { + PurgeArtifactsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -98982,56 +103046,54 @@ }; /** - * Converts this PurgeContextsMetadata to JSON. + * Converts this PurgeArtifactsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @instance * @returns {Object.} JSON object */ - PurgeContextsMetadata.prototype.toJSON = function toJSON() { + PurgeArtifactsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeContextsMetadata + * Gets the default type url for PurgeArtifactsMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeContextsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeArtifactsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsMetadata"; }; - return PurgeContextsMetadata; + return PurgeArtifactsMetadata; })(); - v1.AddContextArtifactsAndExecutionsRequest = (function() { + v1.CreateContextRequest = (function() { /** - * Properties of an AddContextArtifactsAndExecutionsRequest. + * Properties of a CreateContextRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddContextArtifactsAndExecutionsRequest - * @property {string|null} [context] AddContextArtifactsAndExecutionsRequest context - * @property {Array.|null} [artifacts] AddContextArtifactsAndExecutionsRequest artifacts - * @property {Array.|null} [executions] AddContextArtifactsAndExecutionsRequest executions + * @interface ICreateContextRequest + * @property {string|null} [parent] CreateContextRequest parent + * @property {google.cloud.aiplatform.v1.IContext|null} [context] CreateContextRequest context + * @property {string|null} [contextId] CreateContextRequest contextId */ /** - * Constructs a new AddContextArtifactsAndExecutionsRequest. + * Constructs a new CreateContextRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddContextArtifactsAndExecutionsRequest. - * @implements IAddContextArtifactsAndExecutionsRequest + * @classdesc Represents a CreateContextRequest. + * @implements ICreateContextRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateContextRequest=} [properties] Properties to set */ - function AddContextArtifactsAndExecutionsRequest(properties) { - this.artifacts = []; - this.executions = []; + function CreateContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99039,109 +103101,103 @@ } /** - * AddContextArtifactsAndExecutionsRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * CreateContextRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @instance */ - AddContextArtifactsAndExecutionsRequest.prototype.context = ""; + CreateContextRequest.prototype.parent = ""; /** - * AddContextArtifactsAndExecutionsRequest artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * CreateContextRequest context. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} context + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @instance */ - AddContextArtifactsAndExecutionsRequest.prototype.artifacts = $util.emptyArray; + CreateContextRequest.prototype.context = null; /** - * AddContextArtifactsAndExecutionsRequest executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * CreateContextRequest contextId. + * @member {string} contextId + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @instance */ - AddContextArtifactsAndExecutionsRequest.prototype.executions = $util.emptyArray; + CreateContextRequest.prototype.contextId = ""; /** - * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. + * Creates a new CreateContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest instance + * @param {google.cloud.aiplatform.v1.ICreateContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest instance */ - AddContextArtifactsAndExecutionsRequest.create = function create(properties) { - return new AddContextArtifactsAndExecutionsRequest(properties); + CreateContextRequest.create = function create(properties) { + return new CreateContextRequest(properties); }; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateContextRequest} message CreateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsRequest.encode = function encode(message, writer) { + CreateContextRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifacts[i]); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.executions[i]); + $root.google.cloud.aiplatform.v1.Context.encode(message.context, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.contextId != null && Object.hasOwnProperty.call(message, "contextId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.contextId); return writer; }; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateContextRequest} message CreateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. + * Decodes a CreateContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsRequest.decode = function decode(reader, length) { + CreateContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + message.parent = reader.string(); break; } case 2: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push(reader.string()); + message.context = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push(reader.string()); + message.contextId = reader.string(); break; } default: @@ -99153,163 +103209,144 @@ }; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextArtifactsAndExecutionsRequest message. + * Verifies a CreateContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextArtifactsAndExecutionsRequest.verify = function verify(message) { + CreateContextRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) - if (!$util.isString(message.artifacts[i])) - return "artifacts: string[] expected"; - } - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) - if (!$util.isString(message.executions[i])) - return "executions: string[] expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.context != null && message.hasOwnProperty("context")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.context); + if (error) + return "context." + error; } + if (message.contextId != null && message.hasOwnProperty("contextId")) + if (!$util.isString(message.contextId)) + return "contextId: string expected"; return null; }; /** - * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest */ - AddContextArtifactsAndExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest) + CreateContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) - message.artifacts[i] = String(object.artifacts[i]); - } - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) - message.executions[i] = String(object.executions[i]); + var message = new $root.google.cloud.aiplatform.v1.CreateContextRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.context != null) { + if (typeof object.context !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateContextRequest.context: object expected"); + message.context = $root.google.cloud.aiplatform.v1.Context.fromObject(object.context); } + if (object.contextId != null) + message.contextId = String(object.contextId); return message; }; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest + * @param {google.cloud.aiplatform.v1.CreateContextRequest} message CreateContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextArtifactsAndExecutionsRequest.toObject = function toObject(message, options) { + CreateContextRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.artifacts = []; - object.executions = []; + if (options.defaults) { + object.parent = ""; + object.context = null; + object.contextId = ""; } - if (options.defaults) - object.context = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = message.artifacts[j]; - } - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = message.executions[j]; - } + object.context = $root.google.cloud.aiplatform.v1.Context.toObject(message.context, options); + if (message.contextId != null && message.hasOwnProperty("contextId")) + object.contextId = message.contextId; return object; }; /** - * Converts this AddContextArtifactsAndExecutionsRequest to JSON. + * Converts this CreateContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @instance * @returns {Object.} JSON object */ - AddContextArtifactsAndExecutionsRequest.prototype.toJSON = function toJSON() { + CreateContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsRequest + * Gets the default type url for CreateContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextArtifactsAndExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateContextRequest"; }; - return AddContextArtifactsAndExecutionsRequest; + return CreateContextRequest; })(); - v1.AddContextArtifactsAndExecutionsResponse = (function() { + v1.GetContextRequest = (function() { /** - * Properties of an AddContextArtifactsAndExecutionsResponse. + * Properties of a GetContextRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddContextArtifactsAndExecutionsResponse + * @interface IGetContextRequest + * @property {string|null} [name] GetContextRequest name */ /** - * Constructs a new AddContextArtifactsAndExecutionsResponse. + * Constructs a new GetContextRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddContextArtifactsAndExecutionsResponse. - * @implements IAddContextArtifactsAndExecutionsResponse + * @classdesc Represents a GetContextRequest. + * @implements IGetContextRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetContextRequest=} [properties] Properties to set */ - function AddContextArtifactsAndExecutionsResponse(properties) { + function GetContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99317,63 +103354,77 @@ } /** - * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. + * GetContextRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @instance + */ + GetContextRequest.prototype.name = ""; + + /** + * Creates a new GetContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse instance + * @param {google.cloud.aiplatform.v1.IGetContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest instance */ - AddContextArtifactsAndExecutionsResponse.create = function create(properties) { - return new AddContextArtifactsAndExecutionsResponse(properties); + GetContextRequest.create = function create(properties) { + return new GetContextRequest(properties); }; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetContextRequest} message GetContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsResponse.encode = function encode(message, writer) { + GetContextRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetContextRequest} message GetContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. + * Decodes a GetContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsResponse.decode = function decode(reader, length) { + GetContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -99383,111 +103434,126 @@ }; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + GetContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextArtifactsAndExecutionsResponse message. + * Verifies a GetContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextArtifactsAndExecutionsResponse.verify = function verify(message) { + GetContextRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest */ - AddContextArtifactsAndExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse) + GetContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetContextRequest) return object; - return new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse(); + var message = new $root.google.cloud.aiplatform.v1.GetContextRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static - * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse + * @param {google.cloud.aiplatform.v1.GetContextRequest} message GetContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextArtifactsAndExecutionsResponse.toObject = function toObject() { - return {}; + GetContextRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; }; /** - * Converts this AddContextArtifactsAndExecutionsResponse to JSON. + * Converts this GetContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @instance * @returns {Object.} JSON object */ - AddContextArtifactsAndExecutionsResponse.prototype.toJSON = function toJSON() { + GetContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsResponse + * Gets the default type url for GetContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextArtifactsAndExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetContextRequest"; }; - return AddContextArtifactsAndExecutionsResponse; + return GetContextRequest; })(); - v1.AddContextChildrenRequest = (function() { + v1.ListContextsRequest = (function() { /** - * Properties of an AddContextChildrenRequest. + * Properties of a ListContextsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddContextChildrenRequest - * @property {string|null} [context] AddContextChildrenRequest context - * @property {Array.|null} [childContexts] AddContextChildrenRequest childContexts + * @interface IListContextsRequest + * @property {string|null} [parent] ListContextsRequest parent + * @property {number|null} [pageSize] ListContextsRequest pageSize + * @property {string|null} [pageToken] ListContextsRequest pageToken + * @property {string|null} [filter] ListContextsRequest filter + * @property {string|null} [orderBy] ListContextsRequest orderBy */ /** - * Constructs a new AddContextChildrenRequest. + * Constructs a new ListContextsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddContextChildrenRequest. - * @implements IAddContextChildrenRequest + * @classdesc Represents a ListContextsRequest. + * @implements IListContextsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListContextsRequest=} [properties] Properties to set */ - function AddContextChildrenRequest(properties) { - this.childContexts = []; + function ListContextsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99495,92 +103561,131 @@ } /** - * AddContextChildrenRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * ListContextsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @instance */ - AddContextChildrenRequest.prototype.context = ""; + ListContextsRequest.prototype.parent = ""; /** - * AddContextChildrenRequest childContexts. - * @member {Array.} childContexts - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * ListContextsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @instance */ - AddContextChildrenRequest.prototype.childContexts = $util.emptyArray; + ListContextsRequest.prototype.pageSize = 0; /** - * Creates a new AddContextChildrenRequest instance using the specified properties. + * ListContextsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.pageToken = ""; + + /** + * ListContextsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.filter = ""; + + /** + * ListContextsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListContextsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest instance + * @param {google.cloud.aiplatform.v1.IListContextsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest instance */ - AddContextChildrenRequest.create = function create(properties) { - return new AddContextChildrenRequest(properties); + ListContextsRequest.create = function create(properties) { + return new ListContextsRequest(properties); }; /** - * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. + * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListContextsRequest} message ListContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenRequest.encode = function encode(message, writer) { + ListContextsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.childContexts != null && message.childContexts.length) - for (var i = 0; i < message.childContexts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. + * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListContextsRequest} message ListContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer. + * Decodes a ListContextsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenRequest.decode = function decode(reader, length) { + ListContextsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextChildrenRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListContextsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + message.parent = reader.string(); break; } case 2: { - if (!(message.childContexts && message.childContexts.length)) - message.childContexts = []; - message.childContexts.push(reader.string()); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -99592,142 +103697,157 @@ }; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { + ListContextsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextChildrenRequest message. + * Verifies a ListContextsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextChildrenRequest.verify = function verify(message) { + ListContextsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.childContexts != null && message.hasOwnProperty("childContexts")) { - if (!Array.isArray(message.childContexts)) - return "childContexts: array expected"; - for (var i = 0; i < message.childContexts.length; ++i) - if (!$util.isString(message.childContexts[i])) - return "childContexts: string[] expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest */ - AddContextChildrenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddContextChildrenRequest) + ListContextsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListContextsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.AddContextChildrenRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.childContexts) { - if (!Array.isArray(object.childContexts)) - throw TypeError(".google.cloud.aiplatform.v1.AddContextChildrenRequest.childContexts: array expected"); - message.childContexts = []; - for (var i = 0; i < object.childContexts.length; ++i) - message.childContexts[i] = String(object.childContexts[i]); - } + var message = new $root.google.cloud.aiplatform.v1.ListContextsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1.AddContextChildrenRequest} message AddContextChildrenRequest + * @param {google.cloud.aiplatform.v1.ListContextsRequest} message ListContextsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextChildrenRequest.toObject = function toObject(message, options) { + ListContextsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.childContexts = []; - if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.childContexts && message.childContexts.length) { - object.childContexts = []; - for (var j = 0; j < message.childContexts.length; ++j) - object.childContexts[j] = message.childContexts[j]; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this AddContextChildrenRequest to JSON. + * Converts this ListContextsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @instance * @returns {Object.} JSON object */ - AddContextChildrenRequest.prototype.toJSON = function toJSON() { + ListContextsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextChildrenRequest + * Gets the default type url for ListContextsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextChildrenRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListContextsRequest"; }; - return AddContextChildrenRequest; + return ListContextsRequest; })(); - v1.AddContextChildrenResponse = (function() { + v1.ListContextsResponse = (function() { /** - * Properties of an AddContextChildrenResponse. + * Properties of a ListContextsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IAddContextChildrenResponse + * @interface IListContextsResponse + * @property {Array.|null} [contexts] ListContextsResponse contexts + * @property {string|null} [nextPageToken] ListContextsResponse nextPageToken */ /** - * Constructs a new AddContextChildrenResponse. + * Constructs a new ListContextsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddContextChildrenResponse. - * @implements IAddContextChildrenResponse + * @classdesc Represents a ListContextsResponse. + * @implements IListContextsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListContextsResponse=} [properties] Properties to set */ - function AddContextChildrenResponse(properties) { + function ListContextsResponse(properties) { + this.contexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99735,63 +103855,94 @@ } /** - * Creates a new AddContextChildrenResponse instance using the specified properties. + * ListContextsResponse contexts. + * @member {Array.} contexts + * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @instance + */ + ListContextsResponse.prototype.contexts = $util.emptyArray; + + /** + * ListContextsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @instance + */ + ListContextsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListContextsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse instance + * @param {google.cloud.aiplatform.v1.IListContextsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse instance */ - AddContextChildrenResponse.create = function create(properties) { - return new AddContextChildrenResponse(properties); + ListContextsResponse.create = function create(properties) { + return new ListContextsResponse(properties); }; /** - * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. + * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListContextsResponse} message ListContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenResponse.encode = function encode(message, writer) { + ListContextsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.contexts != null && message.contexts.length) + for (var i = 0; i < message.contexts.length; ++i) + $root.google.cloud.aiplatform.v1.Context.encode(message.contexts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. + * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListContextsResponse} message ListContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer. + * Decodes a ListContextsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenResponse.decode = function decode(reader, length) { + ListContextsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextChildrenResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListContextsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.contexts && message.contexts.length)) + message.contexts = []; + message.contexts.push($root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -99801,111 +103952,150 @@ }; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { + ListContextsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextChildrenResponse message. + * Verifies a ListContextsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextChildrenResponse.verify = function verify(message) { + ListContextsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.contexts != null && message.hasOwnProperty("contexts")) { + if (!Array.isArray(message.contexts)) + return "contexts: array expected"; + for (var i = 0; i < message.contexts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.contexts[i]); + if (error) + return "contexts." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse */ - AddContextChildrenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddContextChildrenResponse) + ListContextsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListContextsResponse) return object; - return new $root.google.cloud.aiplatform.v1.AddContextChildrenResponse(); + var message = new $root.google.cloud.aiplatform.v1.ListContextsResponse(); + if (object.contexts) { + if (!Array.isArray(object.contexts)) + throw TypeError(".google.cloud.aiplatform.v1.ListContextsResponse.contexts: array expected"); + message.contexts = []; + for (var i = 0; i < object.contexts.length; ++i) { + if (typeof object.contexts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListContextsResponse.contexts: object expected"); + message.contexts[i] = $root.google.cloud.aiplatform.v1.Context.fromObject(object.contexts[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; }; /** - * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1.AddContextChildrenResponse} message AddContextChildrenResponse + * @param {google.cloud.aiplatform.v1.ListContextsResponse} message ListContextsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextChildrenResponse.toObject = function toObject() { - return {}; + ListContextsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.contexts = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.contexts && message.contexts.length) { + object.contexts = []; + for (var j = 0; j < message.contexts.length; ++j) + object.contexts[j] = $root.google.cloud.aiplatform.v1.Context.toObject(message.contexts[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; }; /** - * Converts this AddContextChildrenResponse to JSON. + * Converts this ListContextsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @instance * @returns {Object.} JSON object */ - AddContextChildrenResponse.prototype.toJSON = function toJSON() { + ListContextsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextChildrenResponse + * Gets the default type url for ListContextsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextChildrenResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListContextsResponse"; }; - return AddContextChildrenResponse; + return ListContextsResponse; })(); - v1.RemoveContextChildrenRequest = (function() { + v1.UpdateContextRequest = (function() { /** - * Properties of a RemoveContextChildrenRequest. + * Properties of an UpdateContextRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IRemoveContextChildrenRequest - * @property {string|null} [context] RemoveContextChildrenRequest context - * @property {Array.|null} [childContexts] RemoveContextChildrenRequest childContexts + * @interface IUpdateContextRequest + * @property {google.cloud.aiplatform.v1.IContext|null} [context] UpdateContextRequest context + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateContextRequest updateMask + * @property {boolean|null} [allowMissing] UpdateContextRequest allowMissing */ /** - * Constructs a new RemoveContextChildrenRequest. + * Constructs a new UpdateContextRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a RemoveContextChildrenRequest. - * @implements IRemoveContextChildrenRequest + * @classdesc Represents an UpdateContextRequest. + * @implements IUpdateContextRequest * @constructor - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest=} [properties] Properties to set */ - function RemoveContextChildrenRequest(properties) { - this.childContexts = []; + function UpdateContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99913,92 +104103,103 @@ } /** - * RemoveContextChildrenRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * UpdateContextRequest context. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} context + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @instance */ - RemoveContextChildrenRequest.prototype.context = ""; + UpdateContextRequest.prototype.context = null; /** - * RemoveContextChildrenRequest childContexts. - * @member {Array.} childContexts - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * UpdateContextRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @instance */ - RemoveContextChildrenRequest.prototype.childContexts = $util.emptyArray; + UpdateContextRequest.prototype.updateMask = null; /** - * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * UpdateContextRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @instance + */ + UpdateContextRequest.prototype.allowMissing = false; + + /** + * Creates a new UpdateContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest instance */ - RemoveContextChildrenRequest.create = function create(properties) { - return new RemoveContextChildrenRequest(properties); + UpdateContextRequest.create = function create(properties) { + return new UpdateContextRequest(properties); }; /** - * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenRequest.encode = function encode(message, writer) { + UpdateContextRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.childContexts != null && message.childContexts.length) - for (var i = 0; i < message.childContexts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + $root.google.cloud.aiplatform.v1.Context.encode(message.context, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); return writer; }; /** - * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * Decodes an UpdateContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenRequest.decode = function decode(reader, length) { + UpdateContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + message.context = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.childContexts && message.childContexts.length)) - message.childContexts = []; - message.childContexts.push(reader.string()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.allowMissing = reader.bool(); break; } default: @@ -100010,142 +104211,151 @@ }; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveContextChildrenRequest message. + * Verifies an UpdateContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveContextChildrenRequest.verify = function verify(message) { + UpdateContextRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.childContexts != null && message.hasOwnProperty("childContexts")) { - if (!Array.isArray(message.childContexts)) - return "childContexts: array expected"; - for (var i = 0; i < message.childContexts.length; ++i) - if (!$util.isString(message.childContexts[i])) - return "childContexts: string[] expected"; + if (message.context != null && message.hasOwnProperty("context")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.context); + if (error) + return "context." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; return null; }; /** - * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest */ - RemoveContextChildrenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest) + UpdateContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.childContexts) { - if (!Array.isArray(object.childContexts)) - throw TypeError(".google.cloud.aiplatform.v1.RemoveContextChildrenRequest.childContexts: array expected"); - message.childContexts = []; - for (var i = 0; i < object.childContexts.length; ++i) - message.childContexts[i] = String(object.childContexts[i]); + var message = new $root.google.cloud.aiplatform.v1.UpdateContextRequest(); + if (object.context != null) { + if (typeof object.context !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateContextRequest.context: object expected"); + message.context = $root.google.cloud.aiplatform.v1.Context.fromObject(object.context); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateContextRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} message RemoveContextChildrenRequest + * @param {google.cloud.aiplatform.v1.UpdateContextRequest} message UpdateContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveContextChildrenRequest.toObject = function toObject(message, options) { + UpdateContextRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.childContexts = []; - if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.childContexts && message.childContexts.length) { - object.childContexts = []; - for (var j = 0; j < message.childContexts.length; ++j) - object.childContexts[j] = message.childContexts[j]; + if (options.defaults) { + object.context = null; + object.updateMask = null; + object.allowMissing = false; } + if (message.context != null && message.hasOwnProperty("context")) + object.context = $root.google.cloud.aiplatform.v1.Context.toObject(message.context, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; return object; }; /** - * Converts this RemoveContextChildrenRequest to JSON. + * Converts this UpdateContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @instance * @returns {Object.} JSON object */ - RemoveContextChildrenRequest.prototype.toJSON = function toJSON() { + UpdateContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveContextChildrenRequest + * Gets the default type url for UpdateContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateContextRequest"; }; - return RemoveContextChildrenRequest; + return UpdateContextRequest; })(); - v1.RemoveContextChildrenResponse = (function() { + v1.DeleteContextRequest = (function() { /** - * Properties of a RemoveContextChildrenResponse. + * Properties of a DeleteContextRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IRemoveContextChildrenResponse + * @interface IDeleteContextRequest + * @property {string|null} [name] DeleteContextRequest name + * @property {boolean|null} [force] DeleteContextRequest force + * @property {string|null} [etag] DeleteContextRequest etag */ /** - * Constructs a new RemoveContextChildrenResponse. + * Constructs a new DeleteContextRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a RemoveContextChildrenResponse. - * @implements IRemoveContextChildrenResponse + * @classdesc Represents a DeleteContextRequest. + * @implements IDeleteContextRequest * @constructor - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest=} [properties] Properties to set */ - function RemoveContextChildrenResponse(properties) { + function DeleteContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100153,63 +104363,105 @@ } /** - * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * DeleteContextRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @instance + */ + DeleteContextRequest.prototype.name = ""; + + /** + * DeleteContextRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @instance + */ + DeleteContextRequest.prototype.force = false; + + /** + * DeleteContextRequest etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @instance + */ + DeleteContextRequest.prototype.etag = ""; + + /** + * Creates a new DeleteContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse instance + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest instance */ - RemoveContextChildrenResponse.create = function create(properties) { - return new RemoveContextChildrenResponse(properties); + DeleteContextRequest.create = function create(properties) { + return new DeleteContextRequest(properties); }; /** - * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenResponse.encode = function encode(message, writer) { + DeleteContextRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); return writer; }; /** - * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * Decodes a DeleteContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenResponse.decode = function decode(reader, length) { + DeleteContextRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.force = reader.bool(); + break; + } + case 3: { + message.etag = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -100219,109 +104471,141 @@ }; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveContextChildrenResponse message. + * Verifies a DeleteContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveContextChildrenResponse.verify = function verify(message) { + DeleteContextRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest */ - RemoveContextChildrenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse) + DeleteContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteContextRequest) return object; - return new $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse(); + var message = new $root.google.cloud.aiplatform.v1.DeleteContextRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + if (object.etag != null) + message.etag = String(object.etag); + return message; }; /** - * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} message RemoveContextChildrenResponse + * @param {google.cloud.aiplatform.v1.DeleteContextRequest} message DeleteContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveContextChildrenResponse.toObject = function toObject() { - return {}; + DeleteContextRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.force = false; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; }; /** - * Converts this RemoveContextChildrenResponse to JSON. + * Converts this DeleteContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @instance * @returns {Object.} JSON object */ - RemoveContextChildrenResponse.prototype.toJSON = function toJSON() { + DeleteContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveContextChildrenResponse + * Gets the default type url for DeleteContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteContextRequest"; }; - return RemoveContextChildrenResponse; + return DeleteContextRequest; })(); - v1.QueryContextLineageSubgraphRequest = (function() { + v1.PurgeContextsRequest = (function() { /** - * Properties of a QueryContextLineageSubgraphRequest. + * Properties of a PurgeContextsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IQueryContextLineageSubgraphRequest - * @property {string|null} [context] QueryContextLineageSubgraphRequest context + * @interface IPurgeContextsRequest + * @property {string|null} [parent] PurgeContextsRequest parent + * @property {string|null} [filter] PurgeContextsRequest filter + * @property {boolean|null} [force] PurgeContextsRequest force */ /** - * Constructs a new QueryContextLineageSubgraphRequest. + * Constructs a new PurgeContextsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a QueryContextLineageSubgraphRequest. - * @implements IQueryContextLineageSubgraphRequest + * @classdesc Represents a PurgeContextsRequest. + * @implements IPurgeContextsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest=} [properties] Properties to set */ - function QueryContextLineageSubgraphRequest(properties) { + function PurgeContextsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100329,75 +104613,103 @@ } /** - * QueryContextLineageSubgraphRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * PurgeContextsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @instance */ - QueryContextLineageSubgraphRequest.prototype.context = ""; + PurgeContextsRequest.prototype.parent = ""; /** - * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. + * PurgeContextsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @instance + */ + PurgeContextsRequest.prototype.filter = ""; + + /** + * PurgeContextsRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @instance + */ + PurgeContextsRequest.prototype.force = false; + + /** + * Creates a new PurgeContextsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest instance */ - QueryContextLineageSubgraphRequest.create = function create(properties) { - return new QueryContextLineageSubgraphRequest(properties); + PurgeContextsRequest.create = function create(properties) { + return new PurgeContextsRequest(properties); }; /** - * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryContextLineageSubgraphRequest.encode = function encode(message, writer) { + PurgeContextsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryContextLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a PurgeContextsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryContextLineageSubgraphRequest.decode = function decode(reader, length) { + PurgeContextsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeContextsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.force = reader.bool(); break; } default: @@ -100409,124 +104721,141 @@ }; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryContextLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryContextLineageSubgraphRequest message. + * Verifies a PurgeContextsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryContextLineageSubgraphRequest.verify = function verify(message) { + PurgeContextsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest */ - QueryContextLineageSubgraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest) + PurgeContextsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest(); - if (object.context != null) - message.context = String(object.context); + var message = new $root.google.cloud.aiplatform.v1.PurgeContextsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest + * @param {google.cloud.aiplatform.v1.PurgeContextsRequest} message PurgeContextsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryContextLineageSubgraphRequest.toObject = function toObject(message, options) { + PurgeContextsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.force = false; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this QueryContextLineageSubgraphRequest to JSON. + * Converts this PurgeContextsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @instance * @returns {Object.} JSON object */ - QueryContextLineageSubgraphRequest.prototype.toJSON = function toJSON() { + PurgeContextsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryContextLineageSubgraphRequest + * Gets the default type url for PurgeContextsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryContextLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsRequest"; }; - return QueryContextLineageSubgraphRequest; + return PurgeContextsRequest; })(); - v1.CreateExecutionRequest = (function() { + v1.PurgeContextsResponse = (function() { /** - * Properties of a CreateExecutionRequest. + * Properties of a PurgeContextsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateExecutionRequest - * @property {string|null} [parent] CreateExecutionRequest parent - * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] CreateExecutionRequest execution - * @property {string|null} [executionId] CreateExecutionRequest executionId + * @interface IPurgeContextsResponse + * @property {number|Long|null} [purgeCount] PurgeContextsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeContextsResponse purgeSample */ /** - * Constructs a new CreateExecutionRequest. + * Constructs a new PurgeContextsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateExecutionRequest. - * @implements ICreateExecutionRequest + * @classdesc Represents a PurgeContextsResponse. + * @implements IPurgeContextsResponse * @constructor - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse=} [properties] Properties to set */ - function CreateExecutionRequest(properties) { + function PurgeContextsResponse(properties) { + this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100534,103 +104863,92 @@ } /** - * CreateExecutionRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest - * @instance - */ - CreateExecutionRequest.prototype.parent = ""; - - /** - * CreateExecutionRequest execution. - * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * PurgeContextsResponse purgeCount. + * @member {number|Long} purgeCount + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @instance */ - CreateExecutionRequest.prototype.execution = null; + PurgeContextsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * CreateExecutionRequest executionId. - * @member {string} executionId - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * PurgeContextsResponse purgeSample. + * @member {Array.} purgeSample + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @instance */ - CreateExecutionRequest.prototype.executionId = ""; + PurgeContextsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new CreateExecutionRequest instance using the specified properties. + * Creates a new PurgeContextsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse instance */ - CreateExecutionRequest.create = function create(properties) { - return new CreateExecutionRequest(properties); + PurgeContextsResponse.create = function create(properties) { + return new PurgeContextsResponse(properties); }; /** - * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. + * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExecutionRequest.encode = function encode(message, writer) { + PurgeContextsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.executionId); + if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); + if (message.purgeSample != null && message.purgeSample.length) + for (var i = 0; i < message.purgeSample.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. + * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeContextsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExecutionRequest.decode = function decode(reader, length) { + PurgeContextsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeContextsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.purgeCount = reader.int64(); break; } case 2: { - message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); - break; - } - case 3: { - message.executionId = reader.string(); + if (!(message.purgeSample && message.purgeSample.length)) + message.purgeSample = []; + message.purgeSample.push(reader.string()); break; } default: @@ -100642,144 +104960,157 @@ }; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateExecutionRequest message. + * Verifies a PurgeContextsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateExecutionRequest.verify = function verify(message) { + PurgeContextsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); - if (error) - return "execution." + error; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) + return "purgeCount: integer|Long expected"; + if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { + if (!Array.isArray(message.purgeSample)) + return "purgeSample: array expected"; + for (var i = 0; i < message.purgeSample.length; ++i) + if (!$util.isString(message.purgeSample[i])) + return "purgeSample: string[] expected"; } - if (message.executionId != null && message.hasOwnProperty("executionId")) - if (!$util.isString(message.executionId)) - return "executionId: string expected"; return null; }; /** - * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse */ - CreateExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateExecutionRequest) + PurgeContextsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateExecutionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateExecutionRequest.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); + var message = new $root.google.cloud.aiplatform.v1.PurgeContextsResponse(); + if (object.purgeCount != null) + if ($util.Long) + (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; + else if (typeof object.purgeCount === "string") + message.purgeCount = parseInt(object.purgeCount, 10); + else if (typeof object.purgeCount === "number") + message.purgeCount = object.purgeCount; + else if (typeof object.purgeCount === "object") + message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); + if (object.purgeSample) { + if (!Array.isArray(object.purgeSample)) + throw TypeError(".google.cloud.aiplatform.v1.PurgeContextsResponse.purgeSample: array expected"); + message.purgeSample = []; + for (var i = 0; i < object.purgeSample.length; ++i) + message.purgeSample[i] = String(object.purgeSample[i]); } - if (object.executionId != null) - message.executionId = String(object.executionId); return message; }; /** - * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1.CreateExecutionRequest} message CreateExecutionRequest + * @param {google.cloud.aiplatform.v1.PurgeContextsResponse} message PurgeContextsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateExecutionRequest.toObject = function toObject(message, options) { + PurgeContextsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.execution = null; - object.executionId = ""; + if (options.arrays || options.defaults) + object.purgeSample = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.purgeCount = options.longs === String ? "0" : 0; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (typeof message.purgeCount === "number") + object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; + else + object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; + if (message.purgeSample && message.purgeSample.length) { + object.purgeSample = []; + for (var j = 0; j < message.purgeSample.length; ++j) + object.purgeSample[j] = message.purgeSample[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); - if (message.executionId != null && message.hasOwnProperty("executionId")) - object.executionId = message.executionId; return object; }; /** - * Converts this CreateExecutionRequest to JSON. + * Converts this PurgeContextsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @instance * @returns {Object.} JSON object */ - CreateExecutionRequest.prototype.toJSON = function toJSON() { + PurgeContextsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateExecutionRequest + * Gets the default type url for PurgeContextsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateExecutionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsResponse"; }; - return CreateExecutionRequest; + return PurgeContextsResponse; })(); - v1.GetExecutionRequest = (function() { + v1.PurgeContextsMetadata = (function() { /** - * Properties of a GetExecutionRequest. + * Properties of a PurgeContextsMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IGetExecutionRequest - * @property {string|null} [name] GetExecutionRequest name + * @interface IPurgeContextsMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeContextsMetadata genericMetadata */ /** - * Constructs a new GetExecutionRequest. + * Constructs a new PurgeContextsMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetExecutionRequest. - * @implements IGetExecutionRequest + * @classdesc Represents a PurgeContextsMetadata. + * @implements IPurgeContextsMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata=} [properties] Properties to set */ - function GetExecutionRequest(properties) { + function PurgeContextsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100787,75 +105118,75 @@ } /** - * GetExecutionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * PurgeContextsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @instance */ - GetExecutionRequest.prototype.name = ""; + PurgeContextsMetadata.prototype.genericMetadata = null; /** - * Creates a new GetExecutionRequest instance using the specified properties. + * Creates a new PurgeContextsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata instance */ - GetExecutionRequest.create = function create(properties) { - return new GetExecutionRequest(properties); + PurgeContextsMetadata.create = function create(properties) { + return new PurgeContextsMetadata(properties); }; /** - * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. + * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExecutionRequest.encode = function encode(message, writer) { + PurgeContextsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. + * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExecutionRequest.decode = function decode(reader, length) { + PurgeContextsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeContextsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -100867,126 +105198,131 @@ }; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetExecutionRequest message. + * Verifies a PurgeContextsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetExecutionRequest.verify = function verify(message) { + PurgeContextsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } return null; }; /** - * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata */ - GetExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetExecutionRequest) + PurgeContextsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.GetExecutionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.PurgeContextsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PurgeContextsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1.GetExecutionRequest} message GetExecutionRequest + * @param {google.cloud.aiplatform.v1.PurgeContextsMetadata} message PurgeContextsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetExecutionRequest.toObject = function toObject(message, options) { + PurgeContextsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this GetExecutionRequest to JSON. + * Converts this PurgeContextsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @instance * @returns {Object.} JSON object */ - GetExecutionRequest.prototype.toJSON = function toJSON() { + PurgeContextsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetExecutionRequest + * Gets the default type url for PurgeContextsMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeContextsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetExecutionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsMetadata"; }; - return GetExecutionRequest; + return PurgeContextsMetadata; })(); - v1.ListExecutionsRequest = (function() { + v1.AddContextArtifactsAndExecutionsRequest = (function() { /** - * Properties of a ListExecutionsRequest. + * Properties of an AddContextArtifactsAndExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListExecutionsRequest - * @property {string|null} [parent] ListExecutionsRequest parent - * @property {number|null} [pageSize] ListExecutionsRequest pageSize - * @property {string|null} [pageToken] ListExecutionsRequest pageToken - * @property {string|null} [filter] ListExecutionsRequest filter - * @property {string|null} [orderBy] ListExecutionsRequest orderBy + * @interface IAddContextArtifactsAndExecutionsRequest + * @property {string|null} [context] AddContextArtifactsAndExecutionsRequest context + * @property {Array.|null} [artifacts] AddContextArtifactsAndExecutionsRequest artifacts + * @property {Array.|null} [executions] AddContextArtifactsAndExecutionsRequest executions */ /** - * Constructs a new ListExecutionsRequest. + * Constructs a new AddContextArtifactsAndExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListExecutionsRequest. - * @implements IListExecutionsRequest + * @classdesc Represents an AddContextArtifactsAndExecutionsRequest. + * @implements IAddContextArtifactsAndExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set */ - function ListExecutionsRequest(properties) { + function AddContextArtifactsAndExecutionsRequest(properties) { + this.artifacts = []; + this.executions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100994,131 +105330,109 @@ } /** - * ListExecutionsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest - * @instance - */ - ListExecutionsRequest.prototype.parent = ""; - - /** - * ListExecutionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest - * @instance - */ - ListExecutionsRequest.prototype.pageSize = 0; - - /** - * ListExecutionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * AddContextArtifactsAndExecutionsRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @instance */ - ListExecutionsRequest.prototype.pageToken = ""; + AddContextArtifactsAndExecutionsRequest.prototype.context = ""; /** - * ListExecutionsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * AddContextArtifactsAndExecutionsRequest artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @instance */ - ListExecutionsRequest.prototype.filter = ""; + AddContextArtifactsAndExecutionsRequest.prototype.artifacts = $util.emptyArray; /** - * ListExecutionsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * AddContextArtifactsAndExecutionsRequest executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @instance */ - ListExecutionsRequest.prototype.orderBy = ""; + AddContextArtifactsAndExecutionsRequest.prototype.executions = $util.emptyArray; /** - * Creates a new ListExecutionsRequest instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest instance + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest instance */ - ListExecutionsRequest.create = function create(properties) { - return new ListExecutionsRequest(properties); + AddContextArtifactsAndExecutionsRequest.create = function create(properties) { + return new AddContextArtifactsAndExecutionsRequest(properties); }; /** - * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsRequest.encode = function encode(message, writer) { + AddContextArtifactsAndExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifacts[i]); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.executions[i]); return writer; }; /** - * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextArtifactsAndExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsRequest.decode = function decode(reader, length) { + AddContextArtifactsAndExecutionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.context = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push(reader.string()); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push(reader.string()); break; } default: @@ -101130,157 +105444,163 @@ }; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextArtifactsAndExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExecutionsRequest message. + * Verifies an AddContextArtifactsAndExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExecutionsRequest.verify = function verify(message) { + AddContextArtifactsAndExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) + if (!$util.isString(message.artifacts[i])) + return "artifacts: string[] expected"; + } + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) + if (!$util.isString(message.executions[i])) + return "executions: string[] expected"; + } return null; }; /** - * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest */ - ListExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListExecutionsRequest) + AddContextArtifactsAndExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListExecutionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) + message.artifacts[i] = String(object.artifacts[i]); + } + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) + message.executions[i] = String(object.executions[i]); + } return message; }; /** - * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.ListExecutionsRequest} message ListExecutionsRequest + * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExecutionsRequest.toObject = function toObject(message, options) { + AddContextArtifactsAndExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + if (options.arrays || options.defaults) { + object.artifacts = []; + object.executions = []; + } + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = message.artifacts[j]; + } + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = message.executions[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListExecutionsRequest to JSON. + * Converts this AddContextArtifactsAndExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @instance * @returns {Object.} JSON object */ - ListExecutionsRequest.prototype.toJSON = function toJSON() { + AddContextArtifactsAndExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListExecutionsRequest + * Gets the default type url for AddContextArtifactsAndExecutionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextArtifactsAndExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListExecutionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest"; }; - return ListExecutionsRequest; + return AddContextArtifactsAndExecutionsRequest; })(); - v1.ListExecutionsResponse = (function() { + v1.AddContextArtifactsAndExecutionsResponse = (function() { /** - * Properties of a ListExecutionsResponse. + * Properties of an AddContextArtifactsAndExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListExecutionsResponse - * @property {Array.|null} [executions] ListExecutionsResponse executions - * @property {string|null} [nextPageToken] ListExecutionsResponse nextPageToken + * @interface IAddContextArtifactsAndExecutionsResponse */ /** - * Constructs a new ListExecutionsResponse. + * Constructs a new AddContextArtifactsAndExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListExecutionsResponse. - * @implements IListExecutionsResponse + * @classdesc Represents an AddContextArtifactsAndExecutionsResponse. + * @implements IAddContextArtifactsAndExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set */ - function ListExecutionsResponse(properties) { - this.executions = []; + function AddContextArtifactsAndExecutionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101288,94 +105608,63 @@ } /** - * ListExecutionsResponse executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse - * @instance - */ - ListExecutionsResponse.prototype.executions = $util.emptyArray; - - /** - * ListExecutionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse - * @instance - */ - ListExecutionsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListExecutionsResponse instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse instance + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse instance */ - ListExecutionsResponse.create = function create(properties) { - return new ListExecutionsResponse(properties); + AddContextArtifactsAndExecutionsResponse.create = function create(properties) { + return new AddContextArtifactsAndExecutionsResponse(properties); }; /** - * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsResponse.encode = function encode(message, writer) { + AddContextArtifactsAndExecutionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + AddContextArtifactsAndExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsResponse.decode = function decode(reader, length) { + AddContextArtifactsAndExecutionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -101385,150 +105674,111 @@ }; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + AddContextArtifactsAndExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExecutionsResponse message. + * Verifies an AddContextArtifactsAndExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExecutionsResponse.verify = function verify(message) { + AddContextArtifactsAndExecutionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); - if (error) - return "executions." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse */ - ListExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListExecutionsResponse) + AddContextArtifactsAndExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListExecutionsResponse(); - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1.ListExecutionsResponse.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) { - if (typeof object.executions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListExecutionsResponse.executions: object expected"); - message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; + return new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse(); }; /** - * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. + * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.ListExecutionsResponse} message ListExecutionsResponse + * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExecutionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.executions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; + AddContextArtifactsAndExecutionsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ListExecutionsResponse to JSON. + * Converts this AddContextArtifactsAndExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @instance * @returns {Object.} JSON object */ - ListExecutionsResponse.prototype.toJSON = function toJSON() { + AddContextArtifactsAndExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListExecutionsResponse + * Gets the default type url for AddContextArtifactsAndExecutionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextArtifactsAndExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListExecutionsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse"; }; - return ListExecutionsResponse; + return AddContextArtifactsAndExecutionsResponse; })(); - v1.UpdateExecutionRequest = (function() { + v1.AddContextChildrenRequest = (function() { /** - * Properties of an UpdateExecutionRequest. + * Properties of an AddContextChildrenRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateExecutionRequest - * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] UpdateExecutionRequest execution - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExecutionRequest updateMask - * @property {boolean|null} [allowMissing] UpdateExecutionRequest allowMissing + * @interface IAddContextChildrenRequest + * @property {string|null} [context] AddContextChildrenRequest context + * @property {Array.|null} [childContexts] AddContextChildrenRequest childContexts */ /** - * Constructs a new UpdateExecutionRequest. + * Constructs a new AddContextChildrenRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateExecutionRequest. - * @implements IUpdateExecutionRequest + * @classdesc Represents an AddContextChildrenRequest. + * @implements IAddContextChildrenRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest=} [properties] Properties to set */ - function UpdateExecutionRequest(properties) { + function AddContextChildrenRequest(properties) { + this.childContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101536,103 +105786,92 @@ } /** - * UpdateExecutionRequest execution. - * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest - * @instance - */ - UpdateExecutionRequest.prototype.execution = null; - - /** - * UpdateExecutionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * AddContextChildrenRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @instance */ - UpdateExecutionRequest.prototype.updateMask = null; + AddContextChildrenRequest.prototype.context = ""; /** - * UpdateExecutionRequest allowMissing. - * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * AddContextChildrenRequest childContexts. + * @member {Array.} childContexts + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @instance */ - UpdateExecutionRequest.prototype.allowMissing = false; + AddContextChildrenRequest.prototype.childContexts = $util.emptyArray; /** - * Creates a new UpdateExecutionRequest instance using the specified properties. + * Creates a new AddContextChildrenRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest instance + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest instance */ - UpdateExecutionRequest.create = function create(properties) { - return new UpdateExecutionRequest(properties); + AddContextChildrenRequest.create = function create(properties) { + return new AddContextChildrenRequest(properties); }; /** - * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExecutionRequest.encode = function encode(message, writer) { + AddContextChildrenRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.childContexts != null && message.childContexts.length) + for (var i = 0; i < message.childContexts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); return writer; }; /** - * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExecutionRequest.decode = function decode(reader, length) { + AddContextChildrenRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextChildrenRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + message.context = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 3: { - message.allowMissing = reader.bool(); + if (!(message.childContexts && message.childContexts.length)) + message.childContexts = []; + message.childContexts.push(reader.string()); break; } default: @@ -101644,150 +105883,142 @@ }; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExecutionRequest message. + * Verifies an AddContextChildrenRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExecutionRequest.verify = function verify(message) { + AddContextChildrenRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); - if (error) - return "execution." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.childContexts != null && message.hasOwnProperty("childContexts")) { + if (!Array.isArray(message.childContexts)) + return "childContexts: array expected"; + for (var i = 0; i < message.childContexts.length; ++i) + if (!$util.isString(message.childContexts[i])) + return "childContexts: string[] expected"; } - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - if (typeof message.allowMissing !== "boolean") - return "allowMissing: boolean expected"; return null; }; /** - * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest */ - UpdateExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateExecutionRequest) + AddContextChildrenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddContextChildrenRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateExecutionRequest(); - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateExecutionRequest.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateExecutionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1.AddContextChildrenRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.childContexts) { + if (!Array.isArray(object.childContexts)) + throw TypeError(".google.cloud.aiplatform.v1.AddContextChildrenRequest.childContexts: array expected"); + message.childContexts = []; + for (var i = 0; i < object.childContexts.length; ++i) + message.childContexts[i] = String(object.childContexts[i]); } - if (object.allowMissing != null) - message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateExecutionRequest} message UpdateExecutionRequest + * @param {google.cloud.aiplatform.v1.AddContextChildrenRequest} message AddContextChildrenRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExecutionRequest.toObject = function toObject(message, options) { + AddContextChildrenRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.execution = null; - object.updateMask = null; - object.allowMissing = false; + if (options.arrays || options.defaults) + object.childContexts = []; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.childContexts && message.childContexts.length) { + object.childContexts = []; + for (var j = 0; j < message.childContexts.length; ++j) + object.childContexts[j] = message.childContexts[j]; } - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - object.allowMissing = message.allowMissing; return object; }; /** - * Converts this UpdateExecutionRequest to JSON. + * Converts this AddContextChildrenRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @instance * @returns {Object.} JSON object */ - UpdateExecutionRequest.prototype.toJSON = function toJSON() { + AddContextChildrenRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateExecutionRequest + * Gets the default type url for AddContextChildrenRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateExecutionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextChildrenRequest"; }; - return UpdateExecutionRequest; + return AddContextChildrenRequest; })(); - v1.DeleteExecutionRequest = (function() { + v1.AddContextChildrenResponse = (function() { /** - * Properties of a DeleteExecutionRequest. + * Properties of an AddContextChildrenResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteExecutionRequest - * @property {string|null} [name] DeleteExecutionRequest name - * @property {string|null} [etag] DeleteExecutionRequest etag + * @interface IAddContextChildrenResponse */ /** - * Constructs a new DeleteExecutionRequest. + * Constructs a new AddContextChildrenResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteExecutionRequest. - * @implements IDeleteExecutionRequest + * @classdesc Represents an AddContextChildrenResponse. + * @implements IAddContextChildrenResponse * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse=} [properties] Properties to set */ - function DeleteExecutionRequest(properties) { + function AddContextChildrenResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101795,91 +106026,63 @@ } /** - * DeleteExecutionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest - * @instance - */ - DeleteExecutionRequest.prototype.name = ""; - - /** - * DeleteExecutionRequest etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest - * @instance - */ - DeleteExecutionRequest.prototype.etag = ""; - - /** - * Creates a new DeleteExecutionRequest instance using the specified properties. + * Creates a new AddContextChildrenResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest instance + * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse instance */ - DeleteExecutionRequest.create = function create(properties) { - return new DeleteExecutionRequest(properties); + AddContextChildrenResponse.create = function create(properties) { + return new AddContextChildrenResponse(properties); }; /** - * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteExecutionRequest.encode = function encode(message, writer) { + AddContextChildrenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteExecutionRequest.decode = function decode(reader, length) { + AddContextChildrenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextChildrenResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.etag = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -101889,133 +106092,111 @@ }; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteExecutionRequest message. + * Verifies an AddContextChildrenResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteExecutionRequest.verify = function verify(message) { + AddContextChildrenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; return null; }; /** - * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse */ - DeleteExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteExecutionRequest) + AddContextChildrenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddContextChildrenResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteExecutionRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.etag != null) - message.etag = String(object.etag); - return message; + return new $root.google.cloud.aiplatform.v1.AddContextChildrenResponse(); }; /** - * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.DeleteExecutionRequest} message DeleteExecutionRequest + * @param {google.cloud.aiplatform.v1.AddContextChildrenResponse} message AddContextChildrenResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteExecutionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - return object; + AddContextChildrenResponse.toObject = function toObject() { + return {}; }; /** - * Converts this DeleteExecutionRequest to JSON. + * Converts this AddContextChildrenResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @instance * @returns {Object.} JSON object */ - DeleteExecutionRequest.prototype.toJSON = function toJSON() { + AddContextChildrenResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteExecutionRequest + * Gets the default type url for AddContextChildrenResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteExecutionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextChildrenResponse"; }; - return DeleteExecutionRequest; + return AddContextChildrenResponse; })(); - v1.PurgeExecutionsRequest = (function() { + v1.RemoveContextChildrenRequest = (function() { /** - * Properties of a PurgeExecutionsRequest. + * Properties of a RemoveContextChildrenRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeExecutionsRequest - * @property {string|null} [parent] PurgeExecutionsRequest parent - * @property {string|null} [filter] PurgeExecutionsRequest filter - * @property {boolean|null} [force] PurgeExecutionsRequest force + * @interface IRemoveContextChildrenRequest + * @property {string|null} [context] RemoveContextChildrenRequest context + * @property {Array.|null} [childContexts] RemoveContextChildrenRequest childContexts */ /** - * Constructs a new PurgeExecutionsRequest. + * Constructs a new RemoveContextChildrenRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeExecutionsRequest. - * @implements IPurgeExecutionsRequest + * @classdesc Represents a RemoveContextChildrenRequest. + * @implements IRemoveContextChildrenRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set */ - function PurgeExecutionsRequest(properties) { + function RemoveContextChildrenRequest(properties) { + this.childContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102023,103 +106204,92 @@ } /** - * PurgeExecutionsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest - * @instance - */ - PurgeExecutionsRequest.prototype.parent = ""; - - /** - * PurgeExecutionsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * RemoveContextChildrenRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @instance */ - PurgeExecutionsRequest.prototype.filter = ""; + RemoveContextChildrenRequest.prototype.context = ""; /** - * PurgeExecutionsRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * RemoveContextChildrenRequest childContexts. + * @member {Array.} childContexts + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @instance */ - PurgeExecutionsRequest.prototype.force = false; + RemoveContextChildrenRequest.prototype.childContexts = $util.emptyArray; /** - * Creates a new PurgeExecutionsRequest instance using the specified properties. + * Creates a new RemoveContextChildrenRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest instance */ - PurgeExecutionsRequest.create = function create(properties) { - return new PurgeExecutionsRequest(properties); + RemoveContextChildrenRequest.create = function create(properties) { + return new RemoveContextChildrenRequest(properties); }; /** - * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsRequest.encode = function encode(message, writer) { + RemoveContextChildrenRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.childContexts != null && message.childContexts.length) + for (var i = 0; i < message.childContexts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); return writer; }; /** - * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsRequest.decode = function decode(reader, length) { + RemoveContextChildrenRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.context = reader.string(); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.force = reader.bool(); + if (!(message.childContexts && message.childContexts.length)) + message.childContexts = []; + message.childContexts.push(reader.string()); break; } default: @@ -102131,141 +106301,142 @@ }; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeExecutionsRequest message. + * Verifies a RemoveContextChildrenRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeExecutionsRequest.verify = function verify(message) { + RemoveContextChildrenRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.childContexts != null && message.hasOwnProperty("childContexts")) { + if (!Array.isArray(message.childContexts)) + return "childContexts: array expected"; + for (var i = 0; i < message.childContexts.length; ++i) + if (!$util.isString(message.childContexts[i])) + return "childContexts: string[] expected"; + } return null; }; /** - * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest */ - PurgeExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest) + RemoveContextChildrenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.childContexts) { + if (!Array.isArray(object.childContexts)) + throw TypeError(".google.cloud.aiplatform.v1.RemoveContextChildrenRequest.childContexts: array expected"); + message.childContexts = []; + for (var i = 0; i < object.childContexts.length; ++i) + message.childContexts[i] = String(object.childContexts[i]); + } return message; }; /** - * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.PurgeExecutionsRequest} message PurgeExecutionsRequest + * @param {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} message RemoveContextChildrenRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeExecutionsRequest.toObject = function toObject(message, options) { + RemoveContextChildrenRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.force = false; + if (options.arrays || options.defaults) + object.childContexts = []; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.childContexts && message.childContexts.length) { + object.childContexts = []; + for (var j = 0; j < message.childContexts.length; ++j) + object.childContexts[j] = message.childContexts[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this PurgeExecutionsRequest to JSON. + * Converts this RemoveContextChildrenRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @instance * @returns {Object.} JSON object */ - PurgeExecutionsRequest.prototype.toJSON = function toJSON() { + RemoveContextChildrenRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeExecutionsRequest + * Gets the default type url for RemoveContextChildrenRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenRequest"; }; - return PurgeExecutionsRequest; + return RemoveContextChildrenRequest; })(); - v1.PurgeExecutionsResponse = (function() { + v1.RemoveContextChildrenResponse = (function() { /** - * Properties of a PurgeExecutionsResponse. + * Properties of a RemoveContextChildrenResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeExecutionsResponse - * @property {number|Long|null} [purgeCount] PurgeExecutionsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeExecutionsResponse purgeSample + * @interface IRemoveContextChildrenResponse */ /** - * Constructs a new PurgeExecutionsResponse. + * Constructs a new RemoveContextChildrenResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeExecutionsResponse. - * @implements IPurgeExecutionsResponse + * @classdesc Represents a RemoveContextChildrenResponse. + * @implements IRemoveContextChildrenResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set */ - function PurgeExecutionsResponse(properties) { - this.purgeSample = []; + function RemoveContextChildrenResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102273,94 +106444,63 @@ } /** - * PurgeExecutionsResponse purgeCount. - * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse - * @instance - */ - PurgeExecutionsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PurgeExecutionsResponse purgeSample. - * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse - * @instance - */ - PurgeExecutionsResponse.prototype.purgeSample = $util.emptyArray; - - /** - * Creates a new PurgeExecutionsResponse instance using the specified properties. + * Creates a new RemoveContextChildrenResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse instance */ - PurgeExecutionsResponse.create = function create(properties) { - return new PurgeExecutionsResponse(properties); + RemoveContextChildrenResponse.create = function create(properties) { + return new RemoveContextChildrenResponse(properties); }; /** - * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsResponse.encode = function encode(message, writer) { + RemoveContextChildrenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); - if (message.purgeSample != null && message.purgeSample.length) - for (var i = 0; i < message.purgeSample.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsResponse.decode = function decode(reader, length) { + RemoveContextChildrenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.purgeCount = reader.int64(); - break; - } - case 2: { - if (!(message.purgeSample && message.purgeSample.length)) - message.purgeSample = []; - message.purgeSample.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -102370,157 +106510,109 @@ }; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + RemoveContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeExecutionsResponse message. + * Verifies a RemoveContextChildrenResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeExecutionsResponse.verify = function verify(message) { + RemoveContextChildrenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) - return "purgeCount: integer|Long expected"; - if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { - if (!Array.isArray(message.purgeSample)) - return "purgeSample: array expected"; - for (var i = 0; i < message.purgeSample.length; ++i) - if (!$util.isString(message.purgeSample[i])) - return "purgeSample: string[] expected"; - } return null; }; /** - * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse */ - PurgeExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse) + RemoveContextChildrenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse(); - if (object.purgeCount != null) - if ($util.Long) - (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; - else if (typeof object.purgeCount === "string") - message.purgeCount = parseInt(object.purgeCount, 10); - else if (typeof object.purgeCount === "number") - message.purgeCount = object.purgeCount; - else if (typeof object.purgeCount === "object") - message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); - if (object.purgeSample) { - if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1.PurgeExecutionsResponse.purgeSample: array expected"); - message.purgeSample = []; - for (var i = 0; i < object.purgeSample.length; ++i) - message.purgeSample[i] = String(object.purgeSample[i]); - } - return message; + return new $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse(); }; /** - * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.PurgeExecutionsResponse} message PurgeExecutionsResponse + * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} message RemoveContextChildrenResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeExecutionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.purgeSample = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.purgeCount = options.longs === String ? "0" : 0; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (typeof message.purgeCount === "number") - object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; - else - object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; - if (message.purgeSample && message.purgeSample.length) { - object.purgeSample = []; - for (var j = 0; j < message.purgeSample.length; ++j) - object.purgeSample[j] = message.purgeSample[j]; - } - return object; + RemoveContextChildrenResponse.toObject = function toObject() { + return {}; }; /** - * Converts this PurgeExecutionsResponse to JSON. + * Converts this RemoveContextChildrenResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @instance * @returns {Object.} JSON object */ - PurgeExecutionsResponse.prototype.toJSON = function toJSON() { + RemoveContextChildrenResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeExecutionsResponse + * Gets the default type url for RemoveContextChildrenResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenResponse"; }; - return PurgeExecutionsResponse; + return RemoveContextChildrenResponse; })(); - v1.PurgeExecutionsMetadata = (function() { + v1.QueryContextLineageSubgraphRequest = (function() { /** - * Properties of a PurgeExecutionsMetadata. + * Properties of a QueryContextLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeExecutionsMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeExecutionsMetadata genericMetadata + * @interface IQueryContextLineageSubgraphRequest + * @property {string|null} [context] QueryContextLineageSubgraphRequest context */ /** - * Constructs a new PurgeExecutionsMetadata. + * Constructs a new QueryContextLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeExecutionsMetadata. - * @implements IPurgeExecutionsMetadata + * @classdesc Represents a QueryContextLineageSubgraphRequest. + * @implements IQueryContextLineageSubgraphRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set */ - function PurgeExecutionsMetadata(properties) { + function QueryContextLineageSubgraphRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102528,75 +106620,75 @@ } /** - * PurgeExecutionsMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * QueryContextLineageSubgraphRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @instance */ - PurgeExecutionsMetadata.prototype.genericMetadata = null; + QueryContextLineageSubgraphRequest.prototype.context = ""; /** - * Creates a new PurgeExecutionsMetadata instance using the specified properties. + * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata instance + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest instance */ - PurgeExecutionsMetadata.create = function create(properties) { - return new PurgeExecutionsMetadata(properties); + QueryContextLineageSubgraphRequest.create = function create(properties) { + return new QueryContextLineageSubgraphRequest(properties); }; /** - * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. + * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsMetadata.encode = function encode(message, writer) { + QueryContextLineageSubgraphRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); return writer; }; /** - * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. + * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryContextLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata + * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsMetadata.decode = function decode(reader, length) { + QueryContextLineageSubgraphRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.context = reader.string(); break; } default: @@ -102608,129 +106700,124 @@ }; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata + * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsMetadata.decodeDelimited = function decodeDelimited(reader) { + QueryContextLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeExecutionsMetadata message. + * Verifies a QueryContextLineageSubgraphRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeExecutionsMetadata.verify = function verify(message) { + QueryContextLineageSubgraphRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; return null; }; /** - * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata + * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest */ - PurgeExecutionsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata) + QueryContextLineageSubgraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PurgeExecutionsMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest(); + if (object.context != null) + message.context = String(object.context); return message; }; /** - * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} message PurgeExecutionsMetadata + * @param {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeExecutionsMetadata.toObject = function toObject(message, options) { + QueryContextLineageSubgraphRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; return object; }; /** - * Converts this PurgeExecutionsMetadata to JSON. + * Converts this QueryContextLineageSubgraphRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @instance * @returns {Object.} JSON object */ - PurgeExecutionsMetadata.prototype.toJSON = function toJSON() { + QueryContextLineageSubgraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeExecutionsMetadata + * Gets the default type url for QueryContextLineageSubgraphRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeExecutionsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryContextLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest"; }; - return PurgeExecutionsMetadata; + return QueryContextLineageSubgraphRequest; })(); - v1.AddExecutionEventsRequest = (function() { + v1.CreateExecutionRequest = (function() { /** - * Properties of an AddExecutionEventsRequest. + * Properties of a CreateExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddExecutionEventsRequest - * @property {string|null} [execution] AddExecutionEventsRequest execution - * @property {Array.|null} [events] AddExecutionEventsRequest events + * @interface ICreateExecutionRequest + * @property {string|null} [parent] CreateExecutionRequest parent + * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] CreateExecutionRequest execution + * @property {string|null} [executionId] CreateExecutionRequest executionId */ /** - * Constructs a new AddExecutionEventsRequest. + * Constructs a new CreateExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddExecutionEventsRequest. - * @implements IAddExecutionEventsRequest + * @classdesc Represents a CreateExecutionRequest. + * @implements ICreateExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest=} [properties] Properties to set */ - function AddExecutionEventsRequest(properties) { - this.events = []; + function CreateExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102738,92 +106825,103 @@ } /** - * AddExecutionEventsRequest execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * CreateExecutionRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @instance */ - AddExecutionEventsRequest.prototype.execution = ""; + CreateExecutionRequest.prototype.parent = ""; /** - * AddExecutionEventsRequest events. - * @member {Array.} events - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * CreateExecutionRequest execution. + * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @instance */ - AddExecutionEventsRequest.prototype.events = $util.emptyArray; + CreateExecutionRequest.prototype.execution = null; /** - * Creates a new AddExecutionEventsRequest instance using the specified properties. + * CreateExecutionRequest executionId. + * @member {string} executionId + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @instance + */ + CreateExecutionRequest.prototype.executionId = ""; + + /** + * Creates a new CreateExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest instance + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest instance */ - AddExecutionEventsRequest.create = function create(properties) { - return new AddExecutionEventsRequest(properties); + CreateExecutionRequest.create = function create(properties) { + return new CreateExecutionRequest(properties); }; /** - * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsRequest.encode = function encode(message, writer) { + CreateExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.executionId); return writer; }; /** - * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. + * Decodes a CreateExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsRequest.decode = function decode(reader, length) { + CreateExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.execution = reader.string(); + message.parent = reader.string(); break; } case 2: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); + message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + break; + } + case 3: { + message.executionId = reader.string(); break; } default: @@ -102835,147 +106933,144 @@ }; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddExecutionEventsRequest message. + * Verifies a CreateExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddExecutionEventsRequest.verify = function verify(message) { + CreateExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); + if (error) + return "execution." + error; } + if (message.executionId != null && message.hasOwnProperty("executionId")) + if (!$util.isString(message.executionId)) + return "executionId: string expected"; return null; }; /** - * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest */ - AddExecutionEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest) + CreateExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest(); - if (object.execution != null) - message.execution = String(object.execution); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".google.cloud.aiplatform.v1.AddExecutionEventsRequest.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.AddExecutionEventsRequest.events: object expected"); - message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CreateExecutionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateExecutionRequest.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); } + if (object.executionId != null) + message.executionId = String(object.executionId); return message; }; /** - * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.AddExecutionEventsRequest} message AddExecutionEventsRequest + * @param {google.cloud.aiplatform.v1.CreateExecutionRequest} message CreateExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddExecutionEventsRequest.toObject = function toObject(message, options) { + CreateExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (options.defaults) - object.execution = ""; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); + if (options.defaults) { + object.parent = ""; + object.execution = null; + object.executionId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); + if (message.executionId != null && message.hasOwnProperty("executionId")) + object.executionId = message.executionId; return object; }; /** - * Converts this AddExecutionEventsRequest to JSON. + * Converts this CreateExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @instance * @returns {Object.} JSON object */ - AddExecutionEventsRequest.prototype.toJSON = function toJSON() { + CreateExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddExecutionEventsRequest + * Gets the default type url for CreateExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddExecutionEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddExecutionEventsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateExecutionRequest"; }; - return AddExecutionEventsRequest; + return CreateExecutionRequest; })(); - v1.AddExecutionEventsResponse = (function() { + v1.GetExecutionRequest = (function() { /** - * Properties of an AddExecutionEventsResponse. + * Properties of a GetExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddExecutionEventsResponse + * @interface IGetExecutionRequest + * @property {string|null} [name] GetExecutionRequest name */ /** - * Constructs a new AddExecutionEventsResponse. + * Constructs a new GetExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddExecutionEventsResponse. - * @implements IAddExecutionEventsResponse + * @classdesc Represents a GetExecutionRequest. + * @implements IGetExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest=} [properties] Properties to set */ - function AddExecutionEventsResponse(properties) { + function GetExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102983,63 +107078,77 @@ } /** - * Creates a new AddExecutionEventsResponse instance using the specified properties. + * GetExecutionRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @instance + */ + GetExecutionRequest.prototype.name = ""; + + /** + * Creates a new GetExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse instance + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest instance */ - AddExecutionEventsResponse.create = function create(properties) { - return new AddExecutionEventsResponse(properties); + GetExecutionRequest.create = function create(properties) { + return new GetExecutionRequest(properties); }; /** - * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsResponse.encode = function encode(message, writer) { + GetExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. + * Decodes a GetExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsResponse.decode = function decode(reader, length) { + GetExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -103049,109 +107158,126 @@ }; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsResponse.decodeDelimited = function decodeDelimited(reader) { + GetExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddExecutionEventsResponse message. + * Verifies a GetExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddExecutionEventsResponse.verify = function verify(message) { + GetExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest */ - AddExecutionEventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse) + GetExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetExecutionRequest) return object; - return new $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse(); + var message = new $root.google.cloud.aiplatform.v1.GetExecutionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.AddExecutionEventsResponse} message AddExecutionEventsResponse + * @param {google.cloud.aiplatform.v1.GetExecutionRequest} message GetExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddExecutionEventsResponse.toObject = function toObject() { - return {}; + GetExecutionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; }; /** - * Converts this AddExecutionEventsResponse to JSON. + * Converts this GetExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @instance * @returns {Object.} JSON object */ - AddExecutionEventsResponse.prototype.toJSON = function toJSON() { + GetExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddExecutionEventsResponse + * Gets the default type url for GetExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddExecutionEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddExecutionEventsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetExecutionRequest"; }; - return AddExecutionEventsResponse; + return GetExecutionRequest; })(); - v1.QueryExecutionInputsAndOutputsRequest = (function() { + v1.ListExecutionsRequest = (function() { /** - * Properties of a QueryExecutionInputsAndOutputsRequest. + * Properties of a ListExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IQueryExecutionInputsAndOutputsRequest - * @property {string|null} [execution] QueryExecutionInputsAndOutputsRequest execution + * @interface IListExecutionsRequest + * @property {string|null} [parent] ListExecutionsRequest parent + * @property {number|null} [pageSize] ListExecutionsRequest pageSize + * @property {string|null} [pageToken] ListExecutionsRequest pageToken + * @property {string|null} [filter] ListExecutionsRequest filter + * @property {string|null} [orderBy] ListExecutionsRequest orderBy */ /** - * Constructs a new QueryExecutionInputsAndOutputsRequest. + * Constructs a new ListExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a QueryExecutionInputsAndOutputsRequest. - * @implements IQueryExecutionInputsAndOutputsRequest + * @classdesc Represents a ListExecutionsRequest. + * @implements IListExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest=} [properties] Properties to set */ - function QueryExecutionInputsAndOutputsRequest(properties) { + function ListExecutionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103159,75 +107285,131 @@ } /** - * QueryExecutionInputsAndOutputsRequest execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * ListExecutionsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @instance */ - QueryExecutionInputsAndOutputsRequest.prototype.execution = ""; + ListExecutionsRequest.prototype.parent = ""; /** - * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. + * ListExecutionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.pageSize = 0; + + /** + * ListExecutionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.pageToken = ""; + + /** + * ListExecutionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.filter = ""; + + /** + * ListExecutionsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest instance + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest instance */ - QueryExecutionInputsAndOutputsRequest.create = function create(properties) { - return new QueryExecutionInputsAndOutputsRequest(properties); + ListExecutionsRequest.create = function create(properties) { + return new ListExecutionsRequest(properties); }; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryExecutionInputsAndOutputsRequest.encode = function encode(message, writer) { + ListExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryExecutionInputsAndOutputsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. + * Decodes a ListExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryExecutionInputsAndOutputsRequest.decode = function decode(reader, length) { + ListExecutionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.execution = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -103239,124 +107421,157 @@ }; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryExecutionInputsAndOutputsRequest.decodeDelimited = function decodeDelimited(reader) { + ListExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryExecutionInputsAndOutputsRequest message. + * Verifies a ListExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryExecutionInputsAndOutputsRequest.verify = function verify(message) { + ListExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest */ - QueryExecutionInputsAndOutputsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest) + ListExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest(); - if (object.execution != null) - message.execution = String(object.execution); + var message = new $root.google.cloud.aiplatform.v1.ListExecutionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest + * @param {google.cloud.aiplatform.v1.ListExecutionsRequest} message ListExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryExecutionInputsAndOutputsRequest.toObject = function toObject(message, options) { + ListExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.execution = ""; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this QueryExecutionInputsAndOutputsRequest to JSON. + * Converts this ListExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @instance * @returns {Object.} JSON object */ - QueryExecutionInputsAndOutputsRequest.prototype.toJSON = function toJSON() { + ListExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryExecutionInputsAndOutputsRequest + * Gets the default type url for ListExecutionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryExecutionInputsAndOutputsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListExecutionsRequest"; }; - return QueryExecutionInputsAndOutputsRequest; + return ListExecutionsRequest; })(); - v1.CreateMetadataSchemaRequest = (function() { + v1.ListExecutionsResponse = (function() { /** - * Properties of a CreateMetadataSchemaRequest. + * Properties of a ListExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateMetadataSchemaRequest - * @property {string|null} [parent] CreateMetadataSchemaRequest parent - * @property {google.cloud.aiplatform.v1.IMetadataSchema|null} [metadataSchema] CreateMetadataSchemaRequest metadataSchema - * @property {string|null} [metadataSchemaId] CreateMetadataSchemaRequest metadataSchemaId + * @interface IListExecutionsResponse + * @property {Array.|null} [executions] ListExecutionsResponse executions + * @property {string|null} [nextPageToken] ListExecutionsResponse nextPageToken */ /** - * Constructs a new CreateMetadataSchemaRequest. + * Constructs a new ListExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateMetadataSchemaRequest. - * @implements ICreateMetadataSchemaRequest + * @classdesc Represents a ListExecutionsResponse. + * @implements IListExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListExecutionsResponse=} [properties] Properties to set */ - function CreateMetadataSchemaRequest(properties) { + function ListExecutionsResponse(properties) { + this.executions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103364,103 +107579,92 @@ } /** - * CreateMetadataSchemaRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest - * @instance - */ - CreateMetadataSchemaRequest.prototype.parent = ""; - - /** - * CreateMetadataSchemaRequest metadataSchema. - * @member {google.cloud.aiplatform.v1.IMetadataSchema|null|undefined} metadataSchema - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * ListExecutionsResponse executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @instance */ - CreateMetadataSchemaRequest.prototype.metadataSchema = null; + ListExecutionsResponse.prototype.executions = $util.emptyArray; /** - * CreateMetadataSchemaRequest metadataSchemaId. - * @member {string} metadataSchemaId - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * ListExecutionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @instance */ - CreateMetadataSchemaRequest.prototype.metadataSchemaId = ""; + ListExecutionsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * Creates a new ListExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest instance + * @param {google.cloud.aiplatform.v1.IListExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse instance */ - CreateMetadataSchemaRequest.create = function create(properties) { - return new CreateMetadataSchemaRequest(properties); + ListExecutionsResponse.create = function create(properties) { + return new ListExecutionsResponse(properties); }; /** - * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataSchemaRequest.encode = function encode(message, writer) { + ListExecutionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.metadataSchema != null && Object.hasOwnProperty.call(message, "metadataSchema")) - $root.google.cloud.aiplatform.v1.MetadataSchema.encode(message.metadataSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadataSchemaId != null && Object.hasOwnProperty.call(message, "metadataSchemaId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaId); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * Decodes a ListExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataSchemaRequest.decode = function decode(reader, length) { + ListExecutionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); break; } case 2: { - message.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.decode(reader, reader.uint32()); - break; - } - case 3: { - message.metadataSchemaId = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -103472,144 +107676,150 @@ }; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + ListExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataSchemaRequest message. + * Verifies a ListExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataSchemaRequest.verify = function verify(message) { + ListExecutionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) { - var error = $root.google.cloud.aiplatform.v1.MetadataSchema.verify(message.metadataSchema); - if (error) - return "metadataSchema." + error; + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } } - if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) - if (!$util.isString(message.metadataSchemaId)) - return "metadataSchemaId: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse */ - CreateMetadataSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest) + ListExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.metadataSchema != null) { - if (typeof object.metadataSchema !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.metadataSchema: object expected"); - message.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.fromObject(object.metadataSchema); + var message = new $root.google.cloud.aiplatform.v1.ListExecutionsResponse(); + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1.ListExecutionsResponse.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) { + if (typeof object.executions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListExecutionsResponse.executions: object expected"); + message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); + } } - if (object.metadataSchemaId != null) - message.metadataSchemaId = String(object.metadataSchemaId); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} message CreateMetadataSchemaRequest + * @param {google.cloud.aiplatform.v1.ListExecutionsResponse} message ListExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataSchemaRequest.toObject = function toObject(message, options) { + ListExecutionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.metadataSchema = null; - object.metadataSchemaId = ""; + if (options.arrays || options.defaults) + object.executions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) - object.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.toObject(message.metadataSchema, options); - if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) - object.metadataSchemaId = message.metadataSchemaId; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateMetadataSchemaRequest to JSON. + * Converts this ListExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @instance * @returns {Object.} JSON object */ - CreateMetadataSchemaRequest.prototype.toJSON = function toJSON() { + ListExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMetadataSchemaRequest + * Gets the default type url for ListExecutionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataSchemaRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListExecutionsResponse"; }; - return CreateMetadataSchemaRequest; + return ListExecutionsResponse; })(); - v1.GetMetadataSchemaRequest = (function() { + v1.UpdateExecutionRequest = (function() { /** - * Properties of a GetMetadataSchemaRequest. + * Properties of an UpdateExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetMetadataSchemaRequest - * @property {string|null} [name] GetMetadataSchemaRequest name + * @interface IUpdateExecutionRequest + * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] UpdateExecutionRequest execution + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExecutionRequest updateMask + * @property {boolean|null} [allowMissing] UpdateExecutionRequest allowMissing */ /** - * Constructs a new GetMetadataSchemaRequest. + * Constructs a new UpdateExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetMetadataSchemaRequest. - * @implements IGetMetadataSchemaRequest + * @classdesc Represents an UpdateExecutionRequest. + * @implements IUpdateExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest=} [properties] Properties to set */ - function GetMetadataSchemaRequest(properties) { + function UpdateExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103617,75 +107827,103 @@ } /** - * GetMetadataSchemaRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * UpdateExecutionRequest execution. + * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @instance */ - GetMetadataSchemaRequest.prototype.name = ""; + UpdateExecutionRequest.prototype.execution = null; /** - * Creates a new GetMetadataSchemaRequest instance using the specified properties. + * UpdateExecutionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @instance + */ + UpdateExecutionRequest.prototype.updateMask = null; + + /** + * UpdateExecutionRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @instance + */ + UpdateExecutionRequest.prototype.allowMissing = false; + + /** + * Creates a new UpdateExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest instance */ - GetMetadataSchemaRequest.create = function create(properties) { - return new GetMetadataSchemaRequest(properties); + UpdateExecutionRequest.create = function create(properties) { + return new UpdateExecutionRequest(properties); }; /** - * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataSchemaRequest.encode = function encode(message, writer) { + UpdateExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); return writer; }; /** - * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataSchemaRequest.decode = function decode(reader, length) { + UpdateExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.allowMissing = reader.bool(); break; } default: @@ -103697,125 +107935,150 @@ }; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMetadataSchemaRequest message. + * Verifies an UpdateExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMetadataSchemaRequest.verify = function verify(message) { + UpdateExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); + if (error) + return "execution." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; return null; }; /** - * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest */ - GetMetadataSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest) + UpdateExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.UpdateExecutionRequest(); + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateExecutionRequest.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateExecutionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} message GetMetadataSchemaRequest + * @param {google.cloud.aiplatform.v1.UpdateExecutionRequest} message UpdateExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMetadataSchemaRequest.toObject = function toObject(message, options) { + UpdateExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.execution = null; + object.updateMask = null; + object.allowMissing = false; + } + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; return object; }; /** - * Converts this GetMetadataSchemaRequest to JSON. + * Converts this UpdateExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @instance * @returns {Object.} JSON object */ - GetMetadataSchemaRequest.prototype.toJSON = function toJSON() { + UpdateExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetMetadataSchemaRequest + * Gets the default type url for UpdateExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetMetadataSchemaRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateExecutionRequest"; }; - return GetMetadataSchemaRequest; + return UpdateExecutionRequest; })(); - v1.ListMetadataSchemasRequest = (function() { + v1.DeleteExecutionRequest = (function() { /** - * Properties of a ListMetadataSchemasRequest. + * Properties of a DeleteExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListMetadataSchemasRequest - * @property {string|null} [parent] ListMetadataSchemasRequest parent - * @property {number|null} [pageSize] ListMetadataSchemasRequest pageSize - * @property {string|null} [pageToken] ListMetadataSchemasRequest pageToken - * @property {string|null} [filter] ListMetadataSchemasRequest filter + * @interface IDeleteExecutionRequest + * @property {string|null} [name] DeleteExecutionRequest name + * @property {string|null} [etag] DeleteExecutionRequest etag */ /** - * Constructs a new ListMetadataSchemasRequest. + * Constructs a new DeleteExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListMetadataSchemasRequest. - * @implements IListMetadataSchemasRequest + * @classdesc Represents a DeleteExecutionRequest. + * @implements IDeleteExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest=} [properties] Properties to set */ - function ListMetadataSchemasRequest(properties) { + function DeleteExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103823,117 +108086,89 @@ } /** - * ListMetadataSchemasRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest - * @instance - */ - ListMetadataSchemasRequest.prototype.parent = ""; - - /** - * ListMetadataSchemasRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest - * @instance - */ - ListMetadataSchemasRequest.prototype.pageSize = 0; - - /** - * ListMetadataSchemasRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * DeleteExecutionRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @instance */ - ListMetadataSchemasRequest.prototype.pageToken = ""; + DeleteExecutionRequest.prototype.name = ""; /** - * ListMetadataSchemasRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * DeleteExecutionRequest etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @instance */ - ListMetadataSchemasRequest.prototype.filter = ""; + DeleteExecutionRequest.prototype.etag = ""; /** - * Creates a new ListMetadataSchemasRequest instance using the specified properties. + * Creates a new DeleteExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest instance */ - ListMetadataSchemasRequest.create = function create(properties) { - return new ListMetadataSchemasRequest(properties); + DeleteExecutionRequest.create = function create(properties) { + return new DeleteExecutionRequest(properties); }; /** - * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasRequest.encode = function encode(message, writer) { + DeleteExecutionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasRequest.decode = function decode(reader, length) { + DeleteExecutionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + message.etag = reader.string(); break; } default: @@ -103945,149 +108180,133 @@ }; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataSchemasRequest message. + * Verifies a DeleteExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataSchemasRequest.verify = function verify(message) { + DeleteExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest */ - ListMetadataSchemasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest) + DeleteExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.aiplatform.v1.DeleteExecutionRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} message ListMetadataSchemasRequest + * @param {google.cloud.aiplatform.v1.DeleteExecutionRequest} message DeleteExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataSchemasRequest.toObject = function toObject(message, options) { + DeleteExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.name = ""; + object.etag = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this ListMetadataSchemasRequest to JSON. + * Converts this DeleteExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @instance * @returns {Object.} JSON object */ - ListMetadataSchemasRequest.prototype.toJSON = function toJSON() { + DeleteExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMetadataSchemasRequest + * Gets the default type url for DeleteExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMetadataSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataSchemasRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteExecutionRequest"; }; - return ListMetadataSchemasRequest; + return DeleteExecutionRequest; })(); - v1.ListMetadataSchemasResponse = (function() { + v1.PurgeExecutionsRequest = (function() { /** - * Properties of a ListMetadataSchemasResponse. + * Properties of a PurgeExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListMetadataSchemasResponse - * @property {Array.|null} [metadataSchemas] ListMetadataSchemasResponse metadataSchemas - * @property {string|null} [nextPageToken] ListMetadataSchemasResponse nextPageToken + * @interface IPurgeExecutionsRequest + * @property {string|null} [parent] PurgeExecutionsRequest parent + * @property {string|null} [filter] PurgeExecutionsRequest filter + * @property {boolean|null} [force] PurgeExecutionsRequest force */ /** - * Constructs a new ListMetadataSchemasResponse. + * Constructs a new PurgeExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListMetadataSchemasResponse. - * @implements IListMetadataSchemasResponse + * @classdesc Represents a PurgeExecutionsRequest. + * @implements IPurgeExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest=} [properties] Properties to set */ - function ListMetadataSchemasResponse(properties) { - this.metadataSchemas = []; + function PurgeExecutionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104095,92 +108314,103 @@ } /** - * ListMetadataSchemasResponse metadataSchemas. - * @member {Array.} metadataSchemas - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * PurgeExecutionsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @instance */ - ListMetadataSchemasResponse.prototype.metadataSchemas = $util.emptyArray; + PurgeExecutionsRequest.prototype.parent = ""; /** - * ListMetadataSchemasResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * PurgeExecutionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @instance */ - ListMetadataSchemasResponse.prototype.nextPageToken = ""; + PurgeExecutionsRequest.prototype.filter = ""; /** - * Creates a new ListMetadataSchemasResponse instance using the specified properties. + * PurgeExecutionsRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @instance + */ + PurgeExecutionsRequest.prototype.force = false; + + /** + * Creates a new PurgeExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest instance */ - ListMetadataSchemasResponse.create = function create(properties) { - return new ListMetadataSchemasResponse(properties); + PurgeExecutionsRequest.create = function create(properties) { + return new PurgeExecutionsRequest(properties); }; /** - * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. + * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasResponse.encode = function encode(message, writer) { + PurgeExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadataSchemas != null && message.metadataSchemas.length) - for (var i = 0; i < message.metadataSchemas.length; ++i) - $root.google.cloud.aiplatform.v1.MetadataSchema.encode(message.metadataSchemas[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. + * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasResponse.decode = function decode(reader, length) { + PurgeExecutionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.metadataSchemas && message.metadataSchemas.length)) - message.metadataSchemas = []; - message.metadataSchemas.push($root.google.cloud.aiplatform.v1.MetadataSchema.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.filter = reader.string(); + break; + } + case 3: { + message.force = reader.bool(); break; } default: @@ -104192,150 +108422,141 @@ }; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasResponse.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataSchemasResponse message. + * Verifies a PurgeExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataSchemasResponse.verify = function verify(message) { + PurgeExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadataSchemas != null && message.hasOwnProperty("metadataSchemas")) { - if (!Array.isArray(message.metadataSchemas)) - return "metadataSchemas: array expected"; - for (var i = 0; i < message.metadataSchemas.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MetadataSchema.verify(message.metadataSchemas[i]); - if (error) - return "metadataSchemas." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest */ - ListMetadataSchemasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse) + PurgeExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse(); - if (object.metadataSchemas) { - if (!Array.isArray(object.metadataSchemas)) - throw TypeError(".google.cloud.aiplatform.v1.ListMetadataSchemasResponse.metadataSchemas: array expected"); - message.metadataSchemas = []; - for (var i = 0; i < object.metadataSchemas.length; ++i) { - if (typeof object.metadataSchemas[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListMetadataSchemasResponse.metadataSchemas: object expected"); - message.metadataSchemas[i] = $root.google.cloud.aiplatform.v1.MetadataSchema.fromObject(object.metadataSchemas[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} message ListMetadataSchemasResponse + * @param {google.cloud.aiplatform.v1.PurgeExecutionsRequest} message PurgeExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataSchemasResponse.toObject = function toObject(message, options) { + PurgeExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.metadataSchemas = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.metadataSchemas && message.metadataSchemas.length) { - object.metadataSchemas = []; - for (var j = 0; j < message.metadataSchemas.length; ++j) - object.metadataSchemas[j] = $root.google.cloud.aiplatform.v1.MetadataSchema.toObject(message.metadataSchemas[j], options); + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.force = false; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ListMetadataSchemasResponse to JSON. + * Converts this PurgeExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @instance * @returns {Object.} JSON object */ - ListMetadataSchemasResponse.prototype.toJSON = function toJSON() { + PurgeExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMetadataSchemasResponse + * Gets the default type url for PurgeExecutionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMetadataSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataSchemasResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsRequest"; }; - return ListMetadataSchemasResponse; + return PurgeExecutionsRequest; })(); - v1.QueryArtifactLineageSubgraphRequest = (function() { + v1.PurgeExecutionsResponse = (function() { /** - * Properties of a QueryArtifactLineageSubgraphRequest. + * Properties of a PurgeExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IQueryArtifactLineageSubgraphRequest - * @property {string|null} [artifact] QueryArtifactLineageSubgraphRequest artifact - * @property {number|null} [maxHops] QueryArtifactLineageSubgraphRequest maxHops - * @property {string|null} [filter] QueryArtifactLineageSubgraphRequest filter + * @interface IPurgeExecutionsResponse + * @property {number|Long|null} [purgeCount] PurgeExecutionsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeExecutionsResponse purgeSample */ /** - * Constructs a new QueryArtifactLineageSubgraphRequest. + * Constructs a new PurgeExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a QueryArtifactLineageSubgraphRequest. - * @implements IQueryArtifactLineageSubgraphRequest + * @classdesc Represents a PurgeExecutionsResponse. + * @implements IPurgeExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse=} [properties] Properties to set */ - function QueryArtifactLineageSubgraphRequest(properties) { + function PurgeExecutionsResponse(properties) { + this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104343,103 +108564,92 @@ } /** - * QueryArtifactLineageSubgraphRequest artifact. - * @member {string} artifact - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest - * @instance - */ - QueryArtifactLineageSubgraphRequest.prototype.artifact = ""; - - /** - * QueryArtifactLineageSubgraphRequest maxHops. - * @member {number} maxHops - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * PurgeExecutionsResponse purgeCount. + * @member {number|Long} purgeCount + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @instance */ - QueryArtifactLineageSubgraphRequest.prototype.maxHops = 0; + PurgeExecutionsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * QueryArtifactLineageSubgraphRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * PurgeExecutionsResponse purgeSample. + * @member {Array.} purgeSample + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @instance */ - QueryArtifactLineageSubgraphRequest.prototype.filter = ""; + PurgeExecutionsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. + * Creates a new PurgeExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse instance */ - QueryArtifactLineageSubgraphRequest.create = function create(properties) { - return new QueryArtifactLineageSubgraphRequest(properties); + PurgeExecutionsResponse.create = function create(properties) { + return new PurgeExecutionsResponse(properties); }; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryArtifactLineageSubgraphRequest.encode = function encode(message, writer) { + PurgeExecutionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); - if (message.maxHops != null && Object.hasOwnProperty.call(message, "maxHops")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxHops); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter); + if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); + if (message.purgeSample != null && message.purgeSample.length) + for (var i = 0; i < message.purgeSample.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryArtifactLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryArtifactLineageSubgraphRequest.decode = function decode(reader, length) { + PurgeExecutionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.artifact = reader.string(); + message.purgeCount = reader.int64(); break; } case 2: { - message.maxHops = reader.int32(); - break; - } - case 3: { - message.filter = reader.string(); + if (!(message.purgeSample && message.purgeSample.length)) + message.purgeSample = []; + message.purgeSample.push(reader.string()); break; } default: @@ -104451,144 +108661,157 @@ }; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryArtifactLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryArtifactLineageSubgraphRequest message. + * Verifies a PurgeExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryArtifactLineageSubgraphRequest.verify = function verify(message) { + PurgeExecutionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) - if (!$util.isString(message.artifact)) - return "artifact: string expected"; - if (message.maxHops != null && message.hasOwnProperty("maxHops")) - if (!$util.isInteger(message.maxHops)) - return "maxHops: integer expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) + return "purgeCount: integer|Long expected"; + if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { + if (!Array.isArray(message.purgeSample)) + return "purgeSample: array expected"; + for (var i = 0; i < message.purgeSample.length; ++i) + if (!$util.isString(message.purgeSample[i])) + return "purgeSample: string[] expected"; + } return null; }; /** - * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse */ - QueryArtifactLineageSubgraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest) + PurgeExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest(); - if (object.artifact != null) - message.artifact = String(object.artifact); - if (object.maxHops != null) - message.maxHops = object.maxHops | 0; - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse(); + if (object.purgeCount != null) + if ($util.Long) + (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; + else if (typeof object.purgeCount === "string") + message.purgeCount = parseInt(object.purgeCount, 10); + else if (typeof object.purgeCount === "number") + message.purgeCount = object.purgeCount; + else if (typeof object.purgeCount === "object") + message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); + if (object.purgeSample) { + if (!Array.isArray(object.purgeSample)) + throw TypeError(".google.cloud.aiplatform.v1.PurgeExecutionsResponse.purgeSample: array expected"); + message.purgeSample = []; + for (var i = 0; i < object.purgeSample.length; ++i) + message.purgeSample[i] = String(object.purgeSample[i]); + } return message; }; /** - * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest + * @param {google.cloud.aiplatform.v1.PurgeExecutionsResponse} message PurgeExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryArtifactLineageSubgraphRequest.toObject = function toObject(message, options) { + PurgeExecutionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.artifact = ""; - object.maxHops = 0; - object.filter = ""; + if (options.arrays || options.defaults) + object.purgeSample = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.purgeCount = options.longs === String ? "0" : 0; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (typeof message.purgeCount === "number") + object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; + else + object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; + if (message.purgeSample && message.purgeSample.length) { + object.purgeSample = []; + for (var j = 0; j < message.purgeSample.length; ++j) + object.purgeSample[j] = message.purgeSample[j]; } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = message.artifact; - if (message.maxHops != null && message.hasOwnProperty("maxHops")) - object.maxHops = message.maxHops; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; return object; }; /** - * Converts this QueryArtifactLineageSubgraphRequest to JSON. + * Converts this PurgeExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @instance * @returns {Object.} JSON object */ - QueryArtifactLineageSubgraphRequest.prototype.toJSON = function toJSON() { + PurgeExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryArtifactLineageSubgraphRequest + * Gets the default type url for PurgeExecutionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryArtifactLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsResponse"; }; - return QueryArtifactLineageSubgraphRequest; + return PurgeExecutionsResponse; })(); - v1.MetadataStore = (function() { + v1.PurgeExecutionsMetadata = (function() { /** - * Properties of a MetadataStore. + * Properties of a PurgeExecutionsMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IMetadataStore - * @property {string|null} [name] MetadataStore name - * @property {google.protobuf.ITimestamp|null} [createTime] MetadataStore createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] MetadataStore updateTime - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] MetadataStore encryptionSpec - * @property {string|null} [description] MetadataStore description - * @property {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null} [state] MetadataStore state + * @interface IPurgeExecutionsMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeExecutionsMetadata genericMetadata */ /** - * Constructs a new MetadataStore. + * Constructs a new PurgeExecutionsMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MetadataStore. - * @implements IMetadataStore + * @classdesc Represents a PurgeExecutionsMetadata. + * @implements IPurgeExecutionsMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IMetadataStore=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata=} [properties] Properties to set */ - function MetadataStore(properties) { + function PurgeExecutionsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104596,145 +108819,75 @@ } /** - * MetadataStore name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.name = ""; - - /** - * MetadataStore createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.createTime = null; - - /** - * MetadataStore updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.updateTime = null; - - /** - * MetadataStore encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.encryptionSpec = null; - - /** - * MetadataStore description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.description = ""; - - /** - * MetadataStore state. - * @member {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null|undefined} state - * @memberof google.cloud.aiplatform.v1.MetadataStore + * PurgeExecutionsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @instance */ - MetadataStore.prototype.state = null; + PurgeExecutionsMetadata.prototype.genericMetadata = null; /** - * Creates a new MetadataStore instance using the specified properties. + * Creates a new PurgeExecutionsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1.IMetadataStore=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata instance */ - MetadataStore.create = function create(properties) { - return new MetadataStore(properties); + PurgeExecutionsMetadata.create = function create(properties) { + return new PurgeExecutionsMetadata(properties); }; /** - * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. + * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1.IMetadataStore} message MetadataStore message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataStore.encode = function encode(message, writer) { + PurgeExecutionsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.encode(message.state, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. + * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1.IMetadataStore} message MetadataStore message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataStore.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetadataStore message from the specified reader or buffer. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataStore.decode = function decode(reader, length) { + PurgeExecutionsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MetadataStore(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 6: { - message.description = reader.string(); - break; - } - case 7: { - message.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -104746,405 +108899,374 @@ }; /** - * Decodes a MetadataStore message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataStore.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetadataStore message. + * Verifies a PurgeExecutionsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetadataStore.verify = function verify(message) { + PurgeExecutionsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) { - var error = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify(message.state); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "state." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata */ - MetadataStore.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MetadataStore) + PurgeExecutionsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.MetadataStore(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } - if (object.description != null) - message.description = String(object.description); - if (object.state != null) { - if (typeof object.state !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.state: object expected"); - message.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.fromObject(object.state); + var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PurgeExecutionsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1.MetadataStore} message MetadataStore + * @param {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} message PurgeExecutionsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetadataStore.toObject = function toObject(message, options) { + PurgeExecutionsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.encryptionSpec = null; - object.description = ""; - object.state = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.state != null && message.hasOwnProperty("state")) - object.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.toObject(message.state, options); + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this MetadataStore to JSON. + * Converts this PurgeExecutionsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @instance * @returns {Object.} JSON object */ - MetadataStore.prototype.toJSON = function toJSON() { + PurgeExecutionsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MetadataStore + * Gets the default type url for PurgeExecutionsMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MetadataStore.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeExecutionsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataStore"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsMetadata"; }; - MetadataStore.MetadataStoreState = (function() { - - /** - * Properties of a MetadataStoreState. - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @interface IMetadataStoreState - * @property {number|Long|null} [diskUtilizationBytes] MetadataStoreState diskUtilizationBytes - */ + return PurgeExecutionsMetadata; + })(); - /** - * Constructs a new MetadataStoreState. - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @classdesc Represents a MetadataStoreState. - * @implements IMetadataStoreState - * @constructor - * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState=} [properties] Properties to set - */ - function MetadataStoreState(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]]; - } + v1.AddExecutionEventsRequest = (function() { - /** - * MetadataStoreState diskUtilizationBytes. - * @member {number|Long} diskUtilizationBytes - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @instance - */ - MetadataStoreState.prototype.diskUtilizationBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Properties of an AddExecutionEventsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IAddExecutionEventsRequest + * @property {string|null} [execution] AddExecutionEventsRequest execution + * @property {Array.|null} [events] AddExecutionEventsRequest events + */ - /** - * Creates a new MetadataStoreState instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState instance - */ - MetadataStoreState.create = function create(properties) { - return new MetadataStoreState(properties); - }; + /** + * Constructs a new AddExecutionEventsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an AddExecutionEventsRequest. + * @implements IAddExecutionEventsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest=} [properties] Properties to set + */ + function AddExecutionEventsRequest(properties) { + this.events = []; + 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]]; + } - /** - * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataStoreState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.diskUtilizationBytes != null && Object.hasOwnProperty.call(message, "diskUtilizationBytes")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.diskUtilizationBytes); - return writer; - }; + /** + * AddExecutionEventsRequest execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @instance + */ + AddExecutionEventsRequest.prototype.execution = ""; - /** - * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataStoreState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * AddExecutionEventsRequest events. + * @member {Array.} events + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @instance + */ + AddExecutionEventsRequest.prototype.events = $util.emptyArray; - /** - * Decodes a MetadataStoreState message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataStoreState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.diskUtilizationBytes = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Creates a new AddExecutionEventsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest instance + */ + AddExecutionEventsRequest.create = function create(properties) { + return new AddExecutionEventsRequest(properties); + }; + + /** + * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddExecutionEventsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddExecutionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddExecutionEventsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.execution = reader.string(); + break; + } + case 2: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataStoreState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a MetadataStoreState message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetadataStoreState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) - if (!$util.isInteger(message.diskUtilizationBytes) && !(message.diskUtilizationBytes && $util.isInteger(message.diskUtilizationBytes.low) && $util.isInteger(message.diskUtilizationBytes.high))) - return "diskUtilizationBytes: integer|Long expected"; - return null; - }; + /** + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddExecutionEventsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState - */ - MetadataStoreState.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState) - return object; - var message = new $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState(); - if (object.diskUtilizationBytes != null) - if ($util.Long) - (message.diskUtilizationBytes = $util.Long.fromValue(object.diskUtilizationBytes)).unsigned = false; - else if (typeof object.diskUtilizationBytes === "string") - message.diskUtilizationBytes = parseInt(object.diskUtilizationBytes, 10); - else if (typeof object.diskUtilizationBytes === "number") - message.diskUtilizationBytes = object.diskUtilizationBytes; - else if (typeof object.diskUtilizationBytes === "object") - message.diskUtilizationBytes = new $util.LongBits(object.diskUtilizationBytes.low >>> 0, object.diskUtilizationBytes.high >>> 0).toNumber(); - return message; - }; + /** + * Verifies an AddExecutionEventsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddExecutionEventsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } + return null; + }; - /** - * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} message MetadataStoreState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetadataStoreState.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.diskUtilizationBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.diskUtilizationBytes = options.longs === String ? "0" : 0; - if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) - if (typeof message.diskUtilizationBytes === "number") - object.diskUtilizationBytes = options.longs === String ? String(message.diskUtilizationBytes) : message.diskUtilizationBytes; - else - object.diskUtilizationBytes = options.longs === String ? $util.Long.prototype.toString.call(message.diskUtilizationBytes) : options.longs === Number ? new $util.LongBits(message.diskUtilizationBytes.low >>> 0, message.diskUtilizationBytes.high >>> 0).toNumber() : message.diskUtilizationBytes; + /** + * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + */ + AddExecutionEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest(); + if (object.execution != null) + message.execution = String(object.execution); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".google.cloud.aiplatform.v1.AddExecutionEventsRequest.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.AddExecutionEventsRequest.events: object expected"); + message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); + } + } + return message; + }; - /** - * Converts this MetadataStoreState to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @instance - * @returns {Object.} JSON object - */ - MetadataStoreState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {google.cloud.aiplatform.v1.AddExecutionEventsRequest} message AddExecutionEventsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddExecutionEventsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.events = []; + if (options.defaults) + object.execution = ""; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); + } + return object; + }; - /** - * Gets the default type url for MetadataStoreState - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MetadataStoreState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState"; - }; + /** + * Converts this AddExecutionEventsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @instance + * @returns {Object.} JSON object + */ + AddExecutionEventsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return MetadataStoreState; - })(); + /** + * Gets the default type url for AddExecutionEventsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddExecutionEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddExecutionEventsRequest"; + }; - return MetadataStore; + return AddExecutionEventsRequest; })(); - v1.MigratableResource = (function() { + v1.AddExecutionEventsResponse = (function() { /** - * Properties of a MigratableResource. + * Properties of an AddExecutionEventsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IMigratableResource - * @property {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null} [mlEngineModelVersion] MigratableResource mlEngineModelVersion - * @property {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null} [automlModel] MigratableResource automlModel - * @property {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null} [automlDataset] MigratableResource automlDataset - * @property {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null} [dataLabelingDataset] MigratableResource dataLabelingDataset - * @property {google.protobuf.ITimestamp|null} [lastMigrateTime] MigratableResource lastMigrateTime - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] MigratableResource lastUpdateTime + * @interface IAddExecutionEventsResponse */ /** - * Constructs a new MigratableResource. + * Constructs a new AddExecutionEventsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MigratableResource. - * @implements IMigratableResource + * @classdesc Represents an AddExecutionEventsResponse. + * @implements IAddExecutionEventsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IMigratableResource=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse=} [properties] Properties to set */ - function MigratableResource(properties) { + function AddExecutionEventsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105152,159 +109274,251 @@ } /** - * MigratableResource mlEngineModelVersion. - * @member {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null|undefined} mlEngineModelVersion - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Creates a new AddExecutionEventsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse instance */ - MigratableResource.prototype.mlEngineModelVersion = null; + AddExecutionEventsResponse.create = function create(properties) { + return new AddExecutionEventsResponse(properties); + }; /** - * MigratableResource automlModel. - * @member {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null|undefined} automlModel - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MigratableResource.prototype.automlModel = null; + AddExecutionEventsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * MigratableResource automlDataset. - * @member {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null|undefined} automlDataset - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MigratableResource.prototype.automlDataset = null; + AddExecutionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MigratableResource dataLabelingDataset. - * @member {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null|undefined} dataLabelingDataset - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.prototype.dataLabelingDataset = null; + AddExecutionEventsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MigratableResource lastMigrateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastMigrateTime - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.prototype.lastMigrateTime = null; + AddExecutionEventsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * MigratableResource lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.aiplatform.v1.MigratableResource + * Verifies an AddExecutionEventsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddExecutionEventsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + */ + AddExecutionEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse) + return object; + return new $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse(); + }; + + /** + * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {google.cloud.aiplatform.v1.AddExecutionEventsResponse} message AddExecutionEventsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddExecutionEventsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this AddExecutionEventsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse * @instance + * @returns {Object.} JSON object */ - MigratableResource.prototype.lastUpdateTime = null; + AddExecutionEventsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Gets the default type url for AddExecutionEventsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddExecutionEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddExecutionEventsResponse"; + }; + + return AddExecutionEventsResponse; + })(); + + v1.QueryExecutionInputsAndOutputsRequest = (function() { /** - * MigratableResource resource. - * @member {"mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"|undefined} resource - * @memberof google.cloud.aiplatform.v1.MigratableResource + * Properties of a QueryExecutionInputsAndOutputsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IQueryExecutionInputsAndOutputsRequest + * @property {string|null} [execution] QueryExecutionInputsAndOutputsRequest execution + */ + + /** + * Constructs a new QueryExecutionInputsAndOutputsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QueryExecutionInputsAndOutputsRequest. + * @implements IQueryExecutionInputsAndOutputsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set + */ + function QueryExecutionInputsAndOutputsRequest(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]]; + } + + /** + * QueryExecutionInputsAndOutputsRequest execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @instance */ - Object.defineProperty(MigratableResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["mlEngineModelVersion", "automlModel", "automlDataset", "dataLabelingDataset"]), - set: $util.oneOfSetter($oneOfFields) - }); + QueryExecutionInputsAndOutputsRequest.prototype.execution = ""; /** - * Creates a new MigratableResource instance using the specified properties. + * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1.IMigratableResource=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource instance + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest instance */ - MigratableResource.create = function create(properties) { - return new MigratableResource(properties); + QueryExecutionInputsAndOutputsRequest.create = function create(properties) { + return new QueryExecutionInputsAndOutputsRequest(properties); }; /** - * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigratableResource.encode = function encode(message, writer) { + QueryExecutionInputsAndOutputsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.mlEngineModelVersion != null && Object.hasOwnProperty.call(message, "mlEngineModelVersion")) - $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.encode(message.mlEngineModelVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.automlModel != null && Object.hasOwnProperty.call(message, "automlModel")) - $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.encode(message.automlModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.automlDataset != null && Object.hasOwnProperty.call(message, "automlDataset")) - $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.encode(message.automlDataset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dataLabelingDataset != null && Object.hasOwnProperty.call(message, "dataLabelingDataset")) - $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.encode(message.dataLabelingDataset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.lastMigrateTime != null && Object.hasOwnProperty.call(message, "lastMigrateTime")) - $root.google.protobuf.Timestamp.encode(message.lastMigrateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); return writer; }; /** - * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigratableResource.encodeDelimited = function encodeDelimited(message, writer) { + QueryExecutionInputsAndOutputsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigratableResource message from the specified reader or buffer. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.decode = function decode(reader, length) { + QueryExecutionInputsAndOutputsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.decode(reader, reader.uint32()); - break; - } - case 2: { - message.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.decode(reader, reader.uint32()); - break; - } - case 3: { - message.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.decode(reader, reader.uint32()); - break; - } - case 4: { - message.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.decode(reader, reader.uint32()); - break; - } - case 5: { - message.lastMigrateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.execution = reader.string(); break; } default: @@ -105316,1657 +109530,736 @@ }; /** - * Decodes a MigratableResource message from the specified reader or buffer, length delimited. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.decodeDelimited = function decodeDelimited(reader) { + QueryExecutionInputsAndOutputsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigratableResource message. + * Verifies a QueryExecutionInputsAndOutputsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigratableResource.verify = function verify(message) { + QueryExecutionInputsAndOutputsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify(message.mlEngineModelVersion); - if (error) - return "mlEngineModelVersion." + error; - } - } - if (message.automlModel != null && message.hasOwnProperty("automlModel")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify(message.automlModel); - if (error) - return "automlModel." + error; - } - } - if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify(message.automlDataset); - if (error) - return "automlDataset." + error; - } - } - if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify(message.dataLabelingDataset); - if (error) - return "dataLabelingDataset." + error; - } - } - if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastMigrateTime); - if (error) - return "lastMigrateTime." + error; - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; - } + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; return null; }; /** - * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. + * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest */ - MigratableResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource) + QueryExecutionInputsAndOutputsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource(); - if (object.mlEngineModelVersion != null) { - if (typeof object.mlEngineModelVersion !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.mlEngineModelVersion: object expected"); - message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.fromObject(object.mlEngineModelVersion); - } - if (object.automlModel != null) { - if (typeof object.automlModel !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.automlModel: object expected"); - message.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.fromObject(object.automlModel); - } - if (object.automlDataset != null) { - if (typeof object.automlDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.automlDataset: object expected"); - message.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.fromObject(object.automlDataset); - } - if (object.dataLabelingDataset != null) { - if (typeof object.dataLabelingDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.dataLabelingDataset: object expected"); - message.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.fromObject(object.dataLabelingDataset); - } - if (object.lastMigrateTime != null) { - if (typeof object.lastMigrateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.lastMigrateTime: object expected"); - message.lastMigrateTime = $root.google.protobuf.Timestamp.fromObject(object.lastMigrateTime); - } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); - } + var message = new $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest(); + if (object.execution != null) + message.execution = String(object.execution); return message; }; /** - * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. + * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1.MigratableResource} message MigratableResource + * @param {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigratableResource.toObject = function toObject(message, options) { + QueryExecutionInputsAndOutputsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.lastMigrateTime = null; - object.lastUpdateTime = null; - } - if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { - object.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.toObject(message.mlEngineModelVersion, options); - if (options.oneofs) - object.resource = "mlEngineModelVersion"; - } - if (message.automlModel != null && message.hasOwnProperty("automlModel")) { - object.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.toObject(message.automlModel, options); - if (options.oneofs) - object.resource = "automlModel"; - } - if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { - object.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.toObject(message.automlDataset, options); - if (options.oneofs) - object.resource = "automlDataset"; - } - if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { - object.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.toObject(message.dataLabelingDataset, options); - if (options.oneofs) - object.resource = "dataLabelingDataset"; - } - if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) - object.lastMigrateTime = $root.google.protobuf.Timestamp.toObject(message.lastMigrateTime, options); - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + if (options.defaults) + object.execution = ""; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; return object; }; /** - * Converts this MigratableResource to JSON. + * Converts this QueryExecutionInputsAndOutputsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @instance * @returns {Object.} JSON object */ - MigratableResource.prototype.toJSON = function toJSON() { + QueryExecutionInputsAndOutputsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigratableResource + * Gets the default type url for QueryExecutionInputsAndOutputsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigratableResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryExecutionInputsAndOutputsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest"; }; - MigratableResource.MlEngineModelVersion = (function() { - - /** - * Properties of a MlEngineModelVersion. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @interface IMlEngineModelVersion - * @property {string|null} [endpoint] MlEngineModelVersion endpoint - * @property {string|null} [version] MlEngineModelVersion version - */ + return QueryExecutionInputsAndOutputsRequest; + })(); - /** - * Constructs a new MlEngineModelVersion. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @classdesc Represents a MlEngineModelVersion. - * @implements IMlEngineModelVersion - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set - */ - function MlEngineModelVersion(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]]; - } + v1.CreateMetadataSchemaRequest = (function() { - /** - * MlEngineModelVersion endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @instance - */ - MlEngineModelVersion.prototype.endpoint = ""; + /** + * Properties of a CreateMetadataSchemaRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateMetadataSchemaRequest + * @property {string|null} [parent] CreateMetadataSchemaRequest parent + * @property {google.cloud.aiplatform.v1.IMetadataSchema|null} [metadataSchema] CreateMetadataSchemaRequest metadataSchema + * @property {string|null} [metadataSchemaId] CreateMetadataSchemaRequest metadataSchemaId + */ - /** - * MlEngineModelVersion version. - * @member {string} version - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @instance - */ - MlEngineModelVersion.prototype.version = ""; + /** + * Constructs a new CreateMetadataSchemaRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateMetadataSchemaRequest. + * @implements ICreateMetadataSchemaRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest=} [properties] Properties to set + */ + function CreateMetadataSchemaRequest(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]]; + } - /** - * Creates a new MlEngineModelVersion instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion instance - */ - MlEngineModelVersion.create = function create(properties) { - return new MlEngineModelVersion(properties); - }; + /** + * CreateMetadataSchemaRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.parent = ""; - /** - * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MlEngineModelVersion.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); - return writer; - }; + /** + * CreateMetadataSchemaRequest metadataSchema. + * @member {google.cloud.aiplatform.v1.IMetadataSchema|null|undefined} metadataSchema + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.metadataSchema = null; - /** - * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MlEngineModelVersion.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CreateMetadataSchemaRequest metadataSchemaId. + * @member {string} metadataSchemaId + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.metadataSchemaId = ""; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MlEngineModelVersion.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - message.version = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest instance + */ + CreateMetadataSchemaRequest.create = function create(properties) { + return new CreateMetadataSchemaRequest(properties); + }; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MlEngineModelVersion.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MlEngineModelVersion message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MlEngineModelVersion.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - return null; - }; + /** + * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateMetadataSchemaRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.metadataSchema != null && Object.hasOwnProperty.call(message, "metadataSchema")) + $root.google.cloud.aiplatform.v1.MetadataSchema.encode(message.metadataSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadataSchemaId != null && Object.hasOwnProperty.call(message, "metadataSchemaId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaId); + return writer; + }; - /** - * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - */ - MlEngineModelVersion.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.version != null) - message.version = String(object.version); - return message; - }; + /** + * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} message MlEngineModelVersion - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MlEngineModelVersion.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.version = ""; + /** + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateMetadataSchemaRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.decode(reader, reader.uint32()); + break; + } + case 3: { + message.metadataSchemaId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - return object; - }; + } + return message; + }; - /** - * Converts this MlEngineModelVersion to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @instance - * @returns {Object.} JSON object - */ - MlEngineModelVersion.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for MlEngineModelVersion - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MlEngineModelVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion"; - }; + /** + * Verifies a CreateMetadataSchemaRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateMetadataSchemaRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) { + var error = $root.google.cloud.aiplatform.v1.MetadataSchema.verify(message.metadataSchema); + if (error) + return "metadataSchema." + error; + } + if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) + if (!$util.isString(message.metadataSchemaId)) + return "metadataSchemaId: string expected"; + return null; + }; - return MlEngineModelVersion; - })(); + /** + * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + */ + CreateMetadataSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.metadataSchema != null) { + if (typeof object.metadataSchema !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.metadataSchema: object expected"); + message.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.fromObject(object.metadataSchema); + } + if (object.metadataSchemaId != null) + message.metadataSchemaId = String(object.metadataSchemaId); + return message; + }; - MigratableResource.AutomlModel = (function() { + /** + * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} message CreateMetadataSchemaRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateMetadataSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.metadataSchema = null; + object.metadataSchemaId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) + object.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.toObject(message.metadataSchema, options); + if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) + object.metadataSchemaId = message.metadataSchemaId; + return object; + }; - /** - * Properties of an AutomlModel. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @interface IAutomlModel - * @property {string|null} [model] AutomlModel model - * @property {string|null} [modelDisplayName] AutomlModel modelDisplayName - */ + /** + * Converts this CreateMetadataSchemaRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @instance + * @returns {Object.} JSON object + */ + CreateMetadataSchemaRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new AutomlModel. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @classdesc Represents an AutomlModel. - * @implements IAutomlModel - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel=} [properties] Properties to set - */ - function AutomlModel(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]]; + /** + * Gets the default type url for CreateMetadataSchemaRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataSchemaRequest"; + }; - /** - * AutomlModel model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @instance - */ - AutomlModel.prototype.model = ""; - - /** - * AutomlModel modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @instance - */ - AutomlModel.prototype.modelDisplayName = ""; + return CreateMetadataSchemaRequest; + })(); - /** - * Creates a new AutomlModel instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel instance - */ - AutomlModel.create = function create(properties) { - return new AutomlModel(properties); - }; + v1.GetMetadataSchemaRequest = (function() { - /** - * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlModel.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); - return writer; - }; + /** + * Properties of a GetMetadataSchemaRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetMetadataSchemaRequest + * @property {string|null} [name] GetMetadataSchemaRequest name + */ - /** - * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlModel.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new GetMetadataSchemaRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetMetadataSchemaRequest. + * @implements IGetMetadataSchemaRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest=} [properties] Properties to set + */ + function GetMetadataSchemaRequest(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]]; + } - /** - * Decodes an AutomlModel message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlModel.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.model = reader.string(); - break; - } - case 3: { - message.modelDisplayName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * GetMetadataSchemaRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @instance + */ + GetMetadataSchemaRequest.prototype.name = ""; - /** - * Decodes an AutomlModel message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlModel.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new GetMetadataSchemaRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest instance + */ + GetMetadataSchemaRequest.create = function create(properties) { + return new GetMetadataSchemaRequest(properties); + }; - /** - * Verifies an AutomlModel message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AutomlModel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - return null; - }; + /** + * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetMetadataSchemaRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel - */ - AutomlModel.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel(); - if (object.model != null) - message.model = String(object.model); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - return message; - }; + /** + * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} message AutomlModel - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AutomlModel.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.model = ""; - object.modelDisplayName = ""; + /** + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetMetadataSchemaRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - return object; - }; + } + return message; + }; - /** - * Converts this AutomlModel to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @instance - * @returns {Object.} JSON object - */ - AutomlModel.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for AutomlModel - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AutomlModel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.AutomlModel"; - }; + /** + * Verifies a GetMetadataSchemaRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetMetadataSchemaRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - return AutomlModel; - })(); + /** + * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + */ + GetMetadataSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - MigratableResource.AutomlDataset = (function() { + /** + * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} message GetMetadataSchemaRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetMetadataSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Properties of an AutomlDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @interface IAutomlDataset - * @property {string|null} [dataset] AutomlDataset dataset - * @property {string|null} [datasetDisplayName] AutomlDataset datasetDisplayName - */ + /** + * Converts this GetMetadataSchemaRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @instance + * @returns {Object.} JSON object + */ + GetMetadataSchemaRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new AutomlDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @classdesc Represents an AutomlDataset. - * @implements IAutomlDataset - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset=} [properties] Properties to set - */ - function AutomlDataset(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]]; + /** + * Gets the default type url for GetMetadataSchemaRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetMetadataSchemaRequest"; + }; - /** - * AutomlDataset dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @instance - */ - AutomlDataset.prototype.dataset = ""; + return GetMetadataSchemaRequest; + })(); - /** - * AutomlDataset datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @instance - */ - AutomlDataset.prototype.datasetDisplayName = ""; + v1.ListMetadataSchemasRequest = (function() { - /** - * Creates a new AutomlDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset instance - */ - AutomlDataset.create = function create(properties) { - return new AutomlDataset(properties); - }; + /** + * Properties of a ListMetadataSchemasRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListMetadataSchemasRequest + * @property {string|null} [parent] ListMetadataSchemasRequest parent + * @property {number|null} [pageSize] ListMetadataSchemasRequest pageSize + * @property {string|null} [pageToken] ListMetadataSchemasRequest pageToken + * @property {string|null} [filter] ListMetadataSchemasRequest filter + */ - /** - * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); - return writer; - }; + /** + * Constructs a new ListMetadataSchemasRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListMetadataSchemasRequest. + * @implements IListMetadataSchemasRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest=} [properties] Properties to set + */ + function ListMetadataSchemasRequest(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]]; + } - /** - * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListMetadataSchemasRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.parent = ""; - /** - * Decodes an AutomlDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.dataset = reader.string(); - break; - } - case 4: { - message.datasetDisplayName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListMetadataSchemasRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.pageSize = 0; - /** - * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ListMetadataSchemasRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.pageToken = ""; - /** - * Verifies an AutomlDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AutomlDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - return null; - }; + /** + * ListMetadataSchemasRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.filter = ""; - /** - * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset - */ - AutomlDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - return message; - }; + /** + * Creates a new ListMetadataSchemasRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @static + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest instance + */ + ListMetadataSchemasRequest.create = function create(properties) { + return new ListMetadataSchemasRequest(properties); + }; - /** - * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} message AutomlDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AutomlDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; - return object; - }; + /** + * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @static + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMetadataSchemasRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + return writer; + }; - /** - * Converts this AutomlDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @instance - * @returns {Object.} JSON object - */ - AutomlDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @static + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMetadataSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for AutomlDataset - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AutomlDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMetadataSchemasRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.AutomlDataset"; - }; - - return AutomlDataset; - })(); - - MigratableResource.DataLabelingDataset = (function() { - - /** - * Properties of a DataLabelingDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @interface IDataLabelingDataset - * @property {string|null} [dataset] DataLabelingDataset dataset - * @property {string|null} [datasetDisplayName] DataLabelingDataset datasetDisplayName - * @property {Array.|null} [dataLabelingAnnotatedDatasets] DataLabelingDataset dataLabelingAnnotatedDatasets - */ - - /** - * Constructs a new DataLabelingDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @classdesc Represents a DataLabelingDataset. - * @implements IDataLabelingDataset - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set - */ - function DataLabelingDataset(properties) { - this.dataLabelingAnnotatedDatasets = []; - 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]]; - } - - /** - * DataLabelingDataset dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.dataset = ""; - - /** - * DataLabelingDataset datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.datasetDisplayName = ""; - - /** - * DataLabelingDataset dataLabelingAnnotatedDatasets. - * @member {Array.} dataLabelingAnnotatedDatasets - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.dataLabelingAnnotatedDatasets = $util.emptyArray; - - /** - * Creates a new DataLabelingDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset instance - */ - DataLabelingDataset.create = function create(properties) { - return new DataLabelingDataset(properties); - }; - - /** - * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.dataLabelingAnnotatedDatasets != null && message.dataLabelingAnnotatedDatasets.length) - for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) - $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.encode(message.dataLabelingAnnotatedDatasets[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); - return writer; - }; - - /** - * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.dataset = reader.string(); - break; - } - case 4: { - message.datasetDisplayName = reader.string(); - break; - } - case 3: { - if (!(message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length)) - message.dataLabelingAnnotatedDatasets = []; - message.dataLabelingAnnotatedDatasets.push($root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataLabelingDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataLabelingDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - if (message.dataLabelingAnnotatedDatasets != null && message.hasOwnProperty("dataLabelingAnnotatedDatasets")) { - if (!Array.isArray(message.dataLabelingAnnotatedDatasets)) - return "dataLabelingAnnotatedDatasets: array expected"; - for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify(message.dataLabelingAnnotatedDatasets[i]); - if (error) - return "dataLabelingAnnotatedDatasets." + error; - } - } - return null; - }; - - /** - * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset - */ - DataLabelingDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - if (object.dataLabelingAnnotatedDatasets) { - if (!Array.isArray(object.dataLabelingAnnotatedDatasets)) - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: array expected"); - message.dataLabelingAnnotatedDatasets = []; - for (var i = 0; i < object.dataLabelingAnnotatedDatasets.length; ++i) { - if (typeof object.dataLabelingAnnotatedDatasets[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: object expected"); - message.dataLabelingAnnotatedDatasets[i] = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.fromObject(object.dataLabelingAnnotatedDatasets[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} message DataLabelingDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataLabelingDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.dataLabelingAnnotatedDatasets = []; - if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length) { - object.dataLabelingAnnotatedDatasets = []; - for (var j = 0; j < message.dataLabelingAnnotatedDatasets.length; ++j) - object.dataLabelingAnnotatedDatasets[j] = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.toObject(message.dataLabelingAnnotatedDatasets[j], options); - } - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; - return object; - }; - - /** - * Converts this DataLabelingDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @instance - * @returns {Object.} JSON object - */ - DataLabelingDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DataLabelingDataset - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DataLabelingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset"; - }; - - DataLabelingDataset.DataLabelingAnnotatedDataset = (function() { - - /** - * Properties of a DataLabelingAnnotatedDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @interface IDataLabelingAnnotatedDataset - * @property {string|null} [annotatedDataset] DataLabelingAnnotatedDataset annotatedDataset - * @property {string|null} [annotatedDatasetDisplayName] DataLabelingAnnotatedDataset annotatedDatasetDisplayName - */ - - /** - * Constructs a new DataLabelingAnnotatedDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @classdesc Represents a DataLabelingAnnotatedDataset. - * @implements IDataLabelingAnnotatedDataset - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set - */ - function DataLabelingAnnotatedDataset(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]]; - } - - /** - * DataLabelingAnnotatedDataset annotatedDataset. - * @member {string} annotatedDataset - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - */ - DataLabelingAnnotatedDataset.prototype.annotatedDataset = ""; - - /** - * DataLabelingAnnotatedDataset annotatedDatasetDisplayName. - * @member {string} annotatedDatasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - */ - DataLabelingAnnotatedDataset.prototype.annotatedDatasetDisplayName = ""; - - /** - * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset instance - */ - DataLabelingAnnotatedDataset.create = function create(properties) { - return new DataLabelingAnnotatedDataset(properties); - }; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingAnnotatedDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); - if (message.annotatedDatasetDisplayName != null && Object.hasOwnProperty.call(message, "annotatedDatasetDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotatedDatasetDisplayName); - return writer; - }; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingAnnotatedDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingAnnotatedDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.annotatedDataset = reader.string(); - break; - } - case 3: { - message.annotatedDatasetDisplayName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingAnnotatedDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataLabelingAnnotatedDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataLabelingAnnotatedDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - if (!$util.isString(message.annotatedDataset)) - return "annotatedDataset: string expected"; - if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) - if (!$util.isString(message.annotatedDatasetDisplayName)) - return "annotatedDatasetDisplayName: string expected"; - return null; - }; - - /** - * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - */ - DataLabelingAnnotatedDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); - if (object.annotatedDataset != null) - message.annotatedDataset = String(object.annotatedDataset); - if (object.annotatedDatasetDisplayName != null) - message.annotatedDatasetDisplayName = String(object.annotatedDatasetDisplayName); - return message; - }; - - /** - * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataLabelingAnnotatedDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.annotatedDataset = ""; - object.annotatedDatasetDisplayName = ""; - } - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - object.annotatedDataset = message.annotatedDataset; - if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) - object.annotatedDatasetDisplayName = message.annotatedDatasetDisplayName; - return object; - }; - - /** - * Converts this DataLabelingAnnotatedDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - * @returns {Object.} JSON object - */ - DataLabelingAnnotatedDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DataLabelingAnnotatedDataset - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DataLabelingAnnotatedDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset"; - }; - - return DataLabelingAnnotatedDataset; - })(); - - return DataLabelingDataset; - })(); - - return MigratableResource; - })(); - - v1.MigrationService = (function() { - - /** - * Constructs a new MigrationService service. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MigrationService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function MigrationService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (MigrationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MigrationService; - - /** - * Creates new MigrationService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.MigrationService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {MigrationService} RPC service. Useful where requests and/or responses are streamed. - */ - MigrationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|searchMigratableResources}. - * @memberof google.cloud.aiplatform.v1.MigrationService - * @typedef SearchMigratableResourcesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} [response] SearchMigratableResourcesResponse - */ - - /** - * Calls SearchMigratableResources. - * @function searchMigratableResources - * @memberof google.cloud.aiplatform.v1.MigrationService - * @instance - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object - * @param {google.cloud.aiplatform.v1.MigrationService.SearchMigratableResourcesCallback} callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MigrationService.prototype.searchMigratableResources = function searchMigratableResources(request, callback) { - return this.rpcCall(searchMigratableResources, $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest, $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse, request, callback); - }, "name", { value: "SearchMigratableResources" }); - - /** - * Calls SearchMigratableResources. - * @function searchMigratableResources - * @memberof google.cloud.aiplatform.v1.MigrationService - * @instance - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|batchMigrateResources}. - * @memberof google.cloud.aiplatform.v1.MigrationService - * @typedef BatchMigrateResourcesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls BatchMigrateResources. - * @function batchMigrateResources - * @memberof google.cloud.aiplatform.v1.MigrationService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object - * @param {google.cloud.aiplatform.v1.MigrationService.BatchMigrateResourcesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MigrationService.prototype.batchMigrateResources = function batchMigrateResources(request, callback) { - return this.rpcCall(batchMigrateResources, $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchMigrateResources" }); - - /** - * Calls BatchMigrateResources. - * @function batchMigrateResources - * @memberof google.cloud.aiplatform.v1.MigrationService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return MigrationService; - })(); - - v1.SearchMigratableResourcesRequest = (function() { - - /** - * Properties of a SearchMigratableResourcesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ISearchMigratableResourcesRequest - * @property {string|null} [parent] SearchMigratableResourcesRequest parent - * @property {number|null} [pageSize] SearchMigratableResourcesRequest pageSize - * @property {string|null} [pageToken] SearchMigratableResourcesRequest pageToken - * @property {string|null} [filter] SearchMigratableResourcesRequest filter - */ - - /** - * Constructs a new SearchMigratableResourcesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchMigratableResourcesRequest. - * @implements ISearchMigratableResourcesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest=} [properties] Properties to set - */ - function SearchMigratableResourcesRequest(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]]; - } - - /** - * SearchMigratableResourcesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @instance - */ - SearchMigratableResourcesRequest.prototype.parent = ""; - - /** - * SearchMigratableResourcesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @instance - */ - SearchMigratableResourcesRequest.prototype.pageSize = 0; + } + return message; + }; /** - * SearchMigratableResourcesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @instance - */ - SearchMigratableResourcesRequest.prototype.pageToken = ""; - - /** - * SearchMigratableResourcesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @instance - */ - SearchMigratableResourcesRequest.prototype.filter = ""; - - /** - * Creates a new SearchMigratableResourcesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest instance - */ - SearchMigratableResourcesRequest.create = function create(properties) { - return new SearchMigratableResourcesRequest(properties); - }; - - /** - * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SearchMigratableResourcesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - return writer; - }; - - /** - * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SearchMigratableResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SearchMigratableResourcesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataSchemasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchMigratableResourcesRequest message. + * Verifies a ListMetadataSchemasRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchMigratableResourcesRequest.verify = function verify(message) { + ListMetadataSchemasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -106985,17 +110278,17 @@ }; /** - * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest */ - SearchMigratableResourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest) + ListMetadataSchemasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -107008,15 +110301,15 @@ }; /** - * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} message SearchMigratableResourcesRequest + * @param {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} message ListMetadataSchemasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchMigratableResourcesRequest.toObject = function toObject(message, options) { + ListMetadataSchemasRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -107038,54 +110331,54 @@ }; /** - * Converts this SearchMigratableResourcesRequest to JSON. + * Converts this ListMetadataSchemasRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @instance * @returns {Object.} JSON object */ - SearchMigratableResourcesRequest.prototype.toJSON = function toJSON() { + ListMetadataSchemasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchMigratableResourcesRequest + * Gets the default type url for ListMetadataSchemasRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchMigratableResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchMigratableResourcesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataSchemasRequest"; }; - return SearchMigratableResourcesRequest; + return ListMetadataSchemasRequest; })(); - v1.SearchMigratableResourcesResponse = (function() { + v1.ListMetadataSchemasResponse = (function() { /** - * Properties of a SearchMigratableResourcesResponse. + * Properties of a ListMetadataSchemasResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ISearchMigratableResourcesResponse - * @property {Array.|null} [migratableResources] SearchMigratableResourcesResponse migratableResources - * @property {string|null} [nextPageToken] SearchMigratableResourcesResponse nextPageToken + * @interface IListMetadataSchemasResponse + * @property {Array.|null} [metadataSchemas] ListMetadataSchemasResponse metadataSchemas + * @property {string|null} [nextPageToken] ListMetadataSchemasResponse nextPageToken */ /** - * Constructs a new SearchMigratableResourcesResponse. + * Constructs a new ListMetadataSchemasResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchMigratableResourcesResponse. - * @implements ISearchMigratableResourcesResponse + * @classdesc Represents a ListMetadataSchemasResponse. + * @implements IListMetadataSchemasResponse * @constructor - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse=} [properties] Properties to set */ - function SearchMigratableResourcesResponse(properties) { - this.migratableResources = []; + function ListMetadataSchemasResponse(properties) { + this.metadataSchemas = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107093,88 +110386,88 @@ } /** - * SearchMigratableResourcesResponse migratableResources. - * @member {Array.} migratableResources - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * ListMetadataSchemasResponse metadataSchemas. + * @member {Array.} metadataSchemas + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @instance */ - SearchMigratableResourcesResponse.prototype.migratableResources = $util.emptyArray; + ListMetadataSchemasResponse.prototype.metadataSchemas = $util.emptyArray; /** - * SearchMigratableResourcesResponse nextPageToken. + * ListMetadataSchemasResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @instance */ - SearchMigratableResourcesResponse.prototype.nextPageToken = ""; + ListMetadataSchemasResponse.prototype.nextPageToken = ""; /** - * Creates a new SearchMigratableResourcesResponse instance using the specified properties. + * Creates a new ListMetadataSchemasResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse instance + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse instance */ - SearchMigratableResourcesResponse.create = function create(properties) { - return new SearchMigratableResourcesResponse(properties); + ListMetadataSchemasResponse.create = function create(properties) { + return new ListMetadataSchemasResponse(properties); }; /** - * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. + * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesResponse.encode = function encode(message, writer) { + ListMetadataSchemasResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migratableResources != null && message.migratableResources.length) - for (var i = 0; i < message.migratableResources.length; ++i) - $root.google.cloud.aiplatform.v1.MigratableResource.encode(message.migratableResources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadataSchemas != null && message.metadataSchemas.length) + for (var i = 0; i < message.metadataSchemas.length; ++i) + $root.google.cloud.aiplatform.v1.MetadataSchema.encode(message.metadataSchemas[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. + * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesResponse.decode = function decode(reader, length) { + ListMetadataSchemasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.migratableResources && message.migratableResources.length)) - message.migratableResources = []; - message.migratableResources.push($root.google.cloud.aiplatform.v1.MigratableResource.decode(reader, reader.uint32())); + if (!(message.metadataSchemas && message.metadataSchemas.length)) + message.metadataSchemas = []; + message.metadataSchemas.push($root.google.cloud.aiplatform.v1.MetadataSchema.decode(reader, reader.uint32())); break; } case 2: { @@ -107190,39 +110483,39 @@ }; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesResponse.decodeDelimited = function decodeDelimited(reader) { + ListMetadataSchemasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchMigratableResourcesResponse message. + * Verifies a ListMetadataSchemasResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchMigratableResourcesResponse.verify = function verify(message) { + ListMetadataSchemasResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.migratableResources != null && message.hasOwnProperty("migratableResources")) { - if (!Array.isArray(message.migratableResources)) - return "migratableResources: array expected"; - for (var i = 0; i < message.migratableResources.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.verify(message.migratableResources[i]); + if (message.metadataSchemas != null && message.hasOwnProperty("metadataSchemas")) { + if (!Array.isArray(message.metadataSchemas)) + return "metadataSchemas: array expected"; + for (var i = 0; i < message.metadataSchemas.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MetadataSchema.verify(message.metadataSchemas[i]); if (error) - return "migratableResources." + error; + return "metadataSchemas." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -107232,25 +110525,25 @@ }; /** - * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse */ - SearchMigratableResourcesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse) + ListMetadataSchemasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse(); - if (object.migratableResources) { - if (!Array.isArray(object.migratableResources)) - throw TypeError(".google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.migratableResources: array expected"); - message.migratableResources = []; - for (var i = 0; i < object.migratableResources.length; ++i) { - if (typeof object.migratableResources[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.migratableResources: object expected"); - message.migratableResources[i] = $root.google.cloud.aiplatform.v1.MigratableResource.fromObject(object.migratableResources[i]); + var message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse(); + if (object.metadataSchemas) { + if (!Array.isArray(object.metadataSchemas)) + throw TypeError(".google.cloud.aiplatform.v1.ListMetadataSchemasResponse.metadataSchemas: array expected"); + message.metadataSchemas = []; + for (var i = 0; i < object.metadataSchemas.length; ++i) { + if (typeof object.metadataSchemas[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListMetadataSchemasResponse.metadataSchemas: object expected"); + message.metadataSchemas[i] = $root.google.cloud.aiplatform.v1.MetadataSchema.fromObject(object.metadataSchemas[i]); } } if (object.nextPageToken != null) @@ -107259,26 +110552,26 @@ }; /** - * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} message SearchMigratableResourcesResponse + * @param {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} message ListMetadataSchemasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchMigratableResourcesResponse.toObject = function toObject(message, options) { + ListMetadataSchemasResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.migratableResources = []; + object.metadataSchemas = []; if (options.defaults) object.nextPageToken = ""; - if (message.migratableResources && message.migratableResources.length) { - object.migratableResources = []; - for (var j = 0; j < message.migratableResources.length; ++j) - object.migratableResources[j] = $root.google.cloud.aiplatform.v1.MigratableResource.toObject(message.migratableResources[j], options); + if (message.metadataSchemas && message.metadataSchemas.length) { + object.metadataSchemas = []; + for (var j = 0; j < message.metadataSchemas.length; ++j) + object.metadataSchemas[j] = $root.google.cloud.aiplatform.v1.MetadataSchema.toObject(message.metadataSchemas[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -107286,54 +110579,54 @@ }; /** - * Converts this SearchMigratableResourcesResponse to JSON. + * Converts this ListMetadataSchemasResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @instance * @returns {Object.} JSON object */ - SearchMigratableResourcesResponse.prototype.toJSON = function toJSON() { + ListMetadataSchemasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchMigratableResourcesResponse + * Gets the default type url for ListMetadataSchemasResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchMigratableResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchMigratableResourcesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataSchemasResponse"; }; - return SearchMigratableResourcesResponse; + return ListMetadataSchemasResponse; })(); - v1.BatchMigrateResourcesRequest = (function() { + v1.QueryArtifactLineageSubgraphRequest = (function() { /** - * Properties of a BatchMigrateResourcesRequest. + * Properties of a QueryArtifactLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchMigrateResourcesRequest - * @property {string|null} [parent] BatchMigrateResourcesRequest parent - * @property {Array.|null} [migrateResourceRequests] BatchMigrateResourcesRequest migrateResourceRequests + * @interface IQueryArtifactLineageSubgraphRequest + * @property {string|null} [artifact] QueryArtifactLineageSubgraphRequest artifact + * @property {number|null} [maxHops] QueryArtifactLineageSubgraphRequest maxHops + * @property {string|null} [filter] QueryArtifactLineageSubgraphRequest filter */ /** - * Constructs a new BatchMigrateResourcesRequest. + * Constructs a new QueryArtifactLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchMigrateResourcesRequest. - * @implements IBatchMigrateResourcesRequest + * @classdesc Represents a QueryArtifactLineageSubgraphRequest. + * @implements IQueryArtifactLineageSubgraphRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set */ - function BatchMigrateResourcesRequest(properties) { - this.migrateResourceRequests = []; + function QueryArtifactLineageSubgraphRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107341,92 +110634,103 @@ } /** - * BatchMigrateResourcesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * QueryArtifactLineageSubgraphRequest artifact. + * @member {string} artifact + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @instance */ - BatchMigrateResourcesRequest.prototype.parent = ""; + QueryArtifactLineageSubgraphRequest.prototype.artifact = ""; /** - * BatchMigrateResourcesRequest migrateResourceRequests. - * @member {Array.} migrateResourceRequests - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * QueryArtifactLineageSubgraphRequest maxHops. + * @member {number} maxHops + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @instance */ - BatchMigrateResourcesRequest.prototype.migrateResourceRequests = $util.emptyArray; + QueryArtifactLineageSubgraphRequest.prototype.maxHops = 0; /** - * Creates a new BatchMigrateResourcesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest instance + * QueryArtifactLineageSubgraphRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @instance */ - BatchMigrateResourcesRequest.create = function create(properties) { - return new BatchMigrateResourcesRequest(properties); - }; + QueryArtifactLineageSubgraphRequest.prototype.filter = ""; /** - * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest instance + */ + QueryArtifactLineageSubgraphRequest.create = function create(properties) { + return new QueryArtifactLineageSubgraphRequest(properties); + }; + + /** + * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @static + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesRequest.encode = function encode(message, writer) { + QueryArtifactLineageSubgraphRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.migrateResourceRequests != null && message.migrateResourceRequests.length) - for (var i = 0; i < message.migrateResourceRequests.length; ++i) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.encode(message.migrateResourceRequests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); + if (message.maxHops != null && Object.hasOwnProperty.call(message, "maxHops")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxHops); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter); return writer; }; /** - * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. + * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryArtifactLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesRequest.decode = function decode(reader, length) { + QueryArtifactLineageSubgraphRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.artifact = reader.string(); break; } case 2: { - if (!(message.migrateResourceRequests && message.migrateResourceRequests.length)) - message.migrateResourceRequests = []; - message.migrateResourceRequests.push($root.google.cloud.aiplatform.v1.MigrateResourceRequest.decode(reader, reader.uint32())); + message.maxHops = reader.int32(); + break; + } + case 3: { + message.filter = reader.string(); break; } default: @@ -107438,151 +110742,144 @@ }; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesRequest.decodeDelimited = function decodeDelimited(reader) { + QueryArtifactLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesRequest message. + * Verifies a QueryArtifactLineageSubgraphRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesRequest.verify = function verify(message) { + QueryArtifactLineageSubgraphRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.migrateResourceRequests != null && message.hasOwnProperty("migrateResourceRequests")) { - if (!Array.isArray(message.migrateResourceRequests)) - return "migrateResourceRequests: array expected"; - for (var i = 0; i < message.migrateResourceRequests.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.verify(message.migrateResourceRequests[i]); - if (error) - return "migrateResourceRequests." + error; - } - } + if (message.artifact != null && message.hasOwnProperty("artifact")) + if (!$util.isString(message.artifact)) + return "artifact: string expected"; + if (message.maxHops != null && message.hasOwnProperty("maxHops")) + if (!$util.isInteger(message.maxHops)) + return "maxHops: integer expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest */ - BatchMigrateResourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest) + QueryArtifactLineageSubgraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.migrateResourceRequests) { - if (!Array.isArray(object.migrateResourceRequests)) - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrateResourceRequests: array expected"); - message.migrateResourceRequests = []; - for (var i = 0; i < object.migrateResourceRequests.length; ++i) { - if (typeof object.migrateResourceRequests[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrateResourceRequests: object expected"); - message.migrateResourceRequests[i] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.fromObject(object.migrateResourceRequests[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest(); + if (object.artifact != null) + message.artifact = String(object.artifact); + if (object.maxHops != null) + message.maxHops = object.maxHops | 0; + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} message BatchMigrateResourcesRequest + * @param {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesRequest.toObject = function toObject(message, options) { + QueryArtifactLineageSubgraphRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.migrateResourceRequests = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.migrateResourceRequests && message.migrateResourceRequests.length) { - object.migrateResourceRequests = []; - for (var j = 0; j < message.migrateResourceRequests.length; ++j) - object.migrateResourceRequests[j] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.toObject(message.migrateResourceRequests[j], options); + if (options.defaults) { + object.artifact = ""; + object.maxHops = 0; + object.filter = ""; } + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = message.artifact; + if (message.maxHops != null && message.hasOwnProperty("maxHops")) + object.maxHops = message.maxHops; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this BatchMigrateResourcesRequest to JSON. + * Converts this QueryArtifactLineageSubgraphRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesRequest.prototype.toJSON = function toJSON() { + QueryArtifactLineageSubgraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchMigrateResourcesRequest + * Gets the default type url for QueryArtifactLineageSubgraphRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchMigrateResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryArtifactLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest"; }; - return BatchMigrateResourcesRequest; + return QueryArtifactLineageSubgraphRequest; })(); - v1.MigrateResourceRequest = (function() { + v1.MetadataStore = (function() { /** - * Properties of a MigrateResourceRequest. + * Properties of a MetadataStore. * @memberof google.cloud.aiplatform.v1 - * @interface IMigrateResourceRequest - * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null} [migrateMlEngineModelVersionConfig] MigrateResourceRequest migrateMlEngineModelVersionConfig - * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null} [migrateAutomlModelConfig] MigrateResourceRequest migrateAutomlModelConfig - * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null} [migrateAutomlDatasetConfig] MigrateResourceRequest migrateAutomlDatasetConfig - * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null} [migrateDataLabelingDatasetConfig] MigrateResourceRequest migrateDataLabelingDatasetConfig + * @interface IMetadataStore + * @property {string|null} [name] MetadataStore name + * @property {google.protobuf.ITimestamp|null} [createTime] MetadataStore createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] MetadataStore updateTime + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] MetadataStore encryptionSpec + * @property {string|null} [description] MetadataStore description + * @property {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null} [state] MetadataStore state */ /** - * Constructs a new MigrateResourceRequest. + * Constructs a new MetadataStore. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MigrateResourceRequest. - * @implements IMigrateResourceRequest + * @classdesc Represents a MetadataStore. + * @implements IMetadataStore * @constructor - * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMetadataStore=} [properties] Properties to set */ - function MigrateResourceRequest(properties) { + function MetadataStore(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107590,131 +110887,145 @@ } /** - * MigrateResourceRequest migrateMlEngineModelVersionConfig. - * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null|undefined} migrateMlEngineModelVersionConfig - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - MigrateResourceRequest.prototype.migrateMlEngineModelVersionConfig = null; + MetadataStore.prototype.name = ""; /** - * MigrateResourceRequest migrateAutomlModelConfig. - * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null|undefined} migrateAutomlModelConfig - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - MigrateResourceRequest.prototype.migrateAutomlModelConfig = null; + MetadataStore.prototype.createTime = null; /** - * MigrateResourceRequest migrateAutomlDatasetConfig. - * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null|undefined} migrateAutomlDatasetConfig - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - MigrateResourceRequest.prototype.migrateAutomlDatasetConfig = null; + MetadataStore.prototype.updateTime = null; /** - * MigrateResourceRequest migrateDataLabelingDatasetConfig. - * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null|undefined} migrateDataLabelingDatasetConfig - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - MigrateResourceRequest.prototype.migrateDataLabelingDatasetConfig = null; + MetadataStore.prototype.encryptionSpec = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * MetadataStore description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.MetadataStore + * @instance + */ + MetadataStore.prototype.description = ""; /** - * MigrateResourceRequest request. - * @member {"migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"|undefined} request - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore state. + * @member {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null|undefined} state + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - Object.defineProperty(MigrateResourceRequest.prototype, "request", { - get: $util.oneOfGetter($oneOfFields = ["migrateMlEngineModelVersionConfig", "migrateAutomlModelConfig", "migrateAutomlDatasetConfig", "migrateDataLabelingDatasetConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + MetadataStore.prototype.state = null; /** - * Creates a new MigrateResourceRequest instance using the specified properties. + * Creates a new MetadataStore instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest instance + * @param {google.cloud.aiplatform.v1.IMetadataStore=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore instance */ - MigrateResourceRequest.create = function create(properties) { - return new MigrateResourceRequest(properties); + MetadataStore.create = function create(properties) { + return new MetadataStore(properties); }; /** - * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. + * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMetadataStore} message MetadataStore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceRequest.encode = function encode(message, writer) { + MetadataStore.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migrateMlEngineModelVersionConfig != null && Object.hasOwnProperty.call(message, "migrateMlEngineModelVersionConfig")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.encode(message.migrateMlEngineModelVersionConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.migrateAutomlModelConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlModelConfig")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.encode(message.migrateAutomlModelConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.migrateAutomlDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlDatasetConfig")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.encode(message.migrateAutomlDatasetConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.migrateDataLabelingDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateDataLabelingDatasetConfig")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.encode(message.migrateDataLabelingDatasetConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.encode(message.state, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. + * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMetadataStore} message MetadataStore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + MetadataStore.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer. + * Decodes a MetadataStore message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceRequest.decode = function decode(reader, length) { + MetadataStore.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MetadataStore(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.decode(reader, reader.uint32()); - break; - } - case 2: { - message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 3: { - message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.decode(reader, reader.uint32()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 4: { - message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 6: { + message.description = reader.string(); + break; + } + case 7: { + message.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.decode(reader, reader.uint32()); break; } default: @@ -107726,191 +111037,180 @@ }; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataStore message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceRequest.decodeDelimited = function decodeDelimited(reader) { + MetadataStore.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateResourceRequest message. + * Verifies a MetadataStore message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateResourceRequest.verify = function verify(message) { + MetadataStore.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify(message.migrateMlEngineModelVersionConfig); - if (error) - return "migrateMlEngineModelVersionConfig." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify(message.migrateAutomlModelConfig); - if (error) - return "migrateAutomlModelConfig." + error; - } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; } - if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify(message.migrateAutomlDatasetConfig); - if (error) - return "migrateAutomlDatasetConfig." + error; - } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; } - if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify(message.migrateDataLabelingDatasetConfig); - if (error) - return "migrateDataLabelingDatasetConfig." + error; - } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) { + var error = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify(message.state); + if (error) + return "state." + error; } return null; }; /** - * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore */ - MigrateResourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest) + MetadataStore.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetadataStore) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest(); - if (object.migrateMlEngineModelVersionConfig != null) { - if (typeof object.migrateMlEngineModelVersionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateMlEngineModelVersionConfig: object expected"); - message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.fromObject(object.migrateMlEngineModelVersionConfig); + var message = new $root.google.cloud.aiplatform.v1.MetadataStore(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.migrateAutomlModelConfig != null) { - if (typeof object.migrateAutomlModelConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateAutomlModelConfig: object expected"); - message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.fromObject(object.migrateAutomlModelConfig); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.migrateAutomlDatasetConfig != null) { - if (typeof object.migrateAutomlDatasetConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateAutomlDatasetConfig: object expected"); - message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.fromObject(object.migrateAutomlDatasetConfig); + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } - if (object.migrateDataLabelingDatasetConfig != null) { - if (typeof object.migrateDataLabelingDatasetConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateDataLabelingDatasetConfig: object expected"); - message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.fromObject(object.migrateDataLabelingDatasetConfig); + if (object.description != null) + message.description = String(object.description); + if (object.state != null) { + if (typeof object.state !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.state: object expected"); + message.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.fromObject(object.state); } return message; }; /** - * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest} message MigrateResourceRequest + * @param {google.cloud.aiplatform.v1.MetadataStore} message MetadataStore * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateResourceRequest.toObject = function toObject(message, options) { + MetadataStore.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { - object.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.toObject(message.migrateMlEngineModelVersionConfig, options); - if (options.oneofs) - object.request = "migrateMlEngineModelVersionConfig"; - } - if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { - object.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.toObject(message.migrateAutomlModelConfig, options); - if (options.oneofs) - object.request = "migrateAutomlModelConfig"; - } - if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { - object.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.toObject(message.migrateAutomlDatasetConfig, options); - if (options.oneofs) - object.request = "migrateAutomlDatasetConfig"; - } - if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { - object.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.toObject(message.migrateDataLabelingDatasetConfig, options); - if (options.oneofs) - object.request = "migrateDataLabelingDatasetConfig"; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.description = ""; + object.state = null; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.state != null && message.hasOwnProperty("state")) + object.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.toObject(message.state, options); return object; }; /** - * Converts this MigrateResourceRequest to JSON. + * Converts this MetadataStore to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance * @returns {Object.} JSON object */ - MigrateResourceRequest.prototype.toJSON = function toJSON() { + MetadataStore.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateResourceRequest + * Gets the default type url for MetadataStore * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MetadataStore.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataStore"; }; - MigrateResourceRequest.MigrateMlEngineModelVersionConfig = (function() { + MetadataStore.MetadataStoreState = (function() { /** - * Properties of a MigrateMlEngineModelVersionConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @interface IMigrateMlEngineModelVersionConfig - * @property {string|null} [endpoint] MigrateMlEngineModelVersionConfig endpoint - * @property {string|null} [modelVersion] MigrateMlEngineModelVersionConfig modelVersion - * @property {string|null} [modelDisplayName] MigrateMlEngineModelVersionConfig modelDisplayName + * Properties of a MetadataStoreState. + * @memberof google.cloud.aiplatform.v1.MetadataStore + * @interface IMetadataStoreState + * @property {number|Long|null} [diskUtilizationBytes] MetadataStoreState diskUtilizationBytes */ /** - * Constructs a new MigrateMlEngineModelVersionConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @classdesc Represents a MigrateMlEngineModelVersionConfig. - * @implements IMigrateMlEngineModelVersionConfig + * Constructs a new MetadataStoreState. + * @memberof google.cloud.aiplatform.v1.MetadataStore + * @classdesc Represents a MetadataStoreState. + * @implements IMetadataStoreState * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState=} [properties] Properties to set */ - function MigrateMlEngineModelVersionConfig(properties) { + function MetadataStoreState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107918,103 +111218,75 @@ } /** - * MigrateMlEngineModelVersionConfig endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @instance - */ - MigrateMlEngineModelVersionConfig.prototype.endpoint = ""; - - /** - * MigrateMlEngineModelVersionConfig modelVersion. - * @member {string} modelVersion - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @instance - */ - MigrateMlEngineModelVersionConfig.prototype.modelVersion = ""; - - /** - * MigrateMlEngineModelVersionConfig modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * MetadataStoreState diskUtilizationBytes. + * @member {number|Long} diskUtilizationBytes + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @instance */ - MigrateMlEngineModelVersionConfig.prototype.modelDisplayName = ""; + MetadataStoreState.prototype.diskUtilizationBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * Creates a new MetadataStoreState instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig instance + * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState instance */ - MigrateMlEngineModelVersionConfig.create = function create(properties) { - return new MigrateMlEngineModelVersionConfig(properties); + MetadataStoreState.create = function create(properties) { + return new MetadataStoreState(properties); }; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateMlEngineModelVersionConfig.encode = function encode(message, writer) { + MetadataStoreState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersion); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + if (message.diskUtilizationBytes != null && Object.hasOwnProperty.call(message, "diskUtilizationBytes")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.diskUtilizationBytes); return writer; }; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateMlEngineModelVersionConfig.encodeDelimited = function encodeDelimited(message, writer) { + MetadataStoreState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * Decodes a MetadataStoreState message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateMlEngineModelVersionConfig.decode = function decode(reader, length) { + MetadataStoreState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - message.modelVersion = reader.string(); - break; - } - case 3: { - message.modelDisplayName = reader.string(); + message.diskUtilizationBytes = reader.int64(); break; } default: @@ -108026,367 +111298,754 @@ }; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateMlEngineModelVersionConfig.decodeDelimited = function decodeDelimited(reader) { + MetadataStoreState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateMlEngineModelVersionConfig message. + * Verifies a MetadataStoreState message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateMlEngineModelVersionConfig.verify = function verify(message) { + MetadataStoreState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) - if (!$util.isString(message.modelVersion)) - return "modelVersion: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; + if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) + if (!$util.isInteger(message.diskUtilizationBytes) && !(message.diskUtilizationBytes && $util.isInteger(message.diskUtilizationBytes.low) && $util.isInteger(message.diskUtilizationBytes.high))) + return "diskUtilizationBytes: integer|Long expected"; return null; }; /** - * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState */ - MigrateMlEngineModelVersionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig) + MetadataStoreState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.modelVersion != null) - message.modelVersion = String(object.modelVersion); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); + var message = new $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState(); + if (object.diskUtilizationBytes != null) + if ($util.Long) + (message.diskUtilizationBytes = $util.Long.fromValue(object.diskUtilizationBytes)).unsigned = false; + else if (typeof object.diskUtilizationBytes === "string") + message.diskUtilizationBytes = parseInt(object.diskUtilizationBytes, 10); + else if (typeof object.diskUtilizationBytes === "number") + message.diskUtilizationBytes = object.diskUtilizationBytes; + else if (typeof object.diskUtilizationBytes === "object") + message.diskUtilizationBytes = new $util.LongBits(object.diskUtilizationBytes.low >>> 0, object.diskUtilizationBytes.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. + * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig + * @param {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} message MetadataStoreState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateMlEngineModelVersionConfig.toObject = function toObject(message, options) { + MetadataStoreState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.modelVersion = ""; - object.modelDisplayName = ""; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) - object.modelVersion = message.modelVersion; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.diskUtilizationBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.diskUtilizationBytes = options.longs === String ? "0" : 0; + if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) + if (typeof message.diskUtilizationBytes === "number") + object.diskUtilizationBytes = options.longs === String ? String(message.diskUtilizationBytes) : message.diskUtilizationBytes; + else + object.diskUtilizationBytes = options.longs === String ? $util.Long.prototype.toString.call(message.diskUtilizationBytes) : options.longs === Number ? new $util.LongBits(message.diskUtilizationBytes.low >>> 0, message.diskUtilizationBytes.high >>> 0).toNumber() : message.diskUtilizationBytes; return object; }; /** - * Converts this MigrateMlEngineModelVersionConfig to JSON. + * Converts this MetadataStoreState to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @instance * @returns {Object.} JSON object */ - MigrateMlEngineModelVersionConfig.prototype.toJSON = function toJSON() { + MetadataStoreState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateMlEngineModelVersionConfig + * Gets the default type url for MetadataStoreState * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateMlEngineModelVersionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MetadataStoreState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState"; }; - return MigrateMlEngineModelVersionConfig; + return MetadataStoreState; })(); - MigrateResourceRequest.MigrateAutomlModelConfig = (function() { + return MetadataStore; + })(); - /** - * Properties of a MigrateAutomlModelConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @interface IMigrateAutomlModelConfig - * @property {string|null} [model] MigrateAutomlModelConfig model - * @property {string|null} [modelDisplayName] MigrateAutomlModelConfig modelDisplayName - */ + v1.MigratableResource = (function() { - /** - * Constructs a new MigrateAutomlModelConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @classdesc Represents a MigrateAutomlModelConfig. - * @implements IMigrateAutomlModelConfig - * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set - */ - function MigrateAutomlModelConfig(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]]; - } + /** + * Properties of a MigratableResource. + * @memberof google.cloud.aiplatform.v1 + * @interface IMigratableResource + * @property {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null} [mlEngineModelVersion] MigratableResource mlEngineModelVersion + * @property {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null} [automlModel] MigratableResource automlModel + * @property {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null} [automlDataset] MigratableResource automlDataset + * @property {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null} [dataLabelingDataset] MigratableResource dataLabelingDataset + * @property {google.protobuf.ITimestamp|null} [lastMigrateTime] MigratableResource lastMigrateTime + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] MigratableResource lastUpdateTime + */ - /** - * MigrateAutomlModelConfig model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @instance - */ - MigrateAutomlModelConfig.prototype.model = ""; + /** + * Constructs a new MigratableResource. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MigratableResource. + * @implements IMigratableResource + * @constructor + * @param {google.cloud.aiplatform.v1.IMigratableResource=} [properties] Properties to set + */ + function MigratableResource(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]]; + } - /** - * MigrateAutomlModelConfig modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @instance - */ - MigrateAutomlModelConfig.prototype.modelDisplayName = ""; + /** + * MigratableResource mlEngineModelVersion. + * @member {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null|undefined} mlEngineModelVersion + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.mlEngineModelVersion = null; - /** - * Creates a new MigrateAutomlModelConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig instance - */ - MigrateAutomlModelConfig.create = function create(properties) { - return new MigrateAutomlModelConfig(properties); - }; + /** + * MigratableResource automlModel. + * @member {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null|undefined} automlModel + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.automlModel = null; - /** - * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateAutomlModelConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelDisplayName); - return writer; - }; + /** + * MigratableResource automlDataset. + * @member {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null|undefined} automlDataset + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.automlDataset = null; - /** - * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateAutomlModelConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * MigratableResource dataLabelingDataset. + * @member {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null|undefined} dataLabelingDataset + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.dataLabelingDataset = null; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateAutomlModelConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.model = reader.string(); - break; - } - case 2: { - message.modelDisplayName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * MigratableResource lastMigrateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastMigrateTime + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.lastMigrateTime = null; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateAutomlModelConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * MigratableResource lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.lastUpdateTime = null; - /** - * Verifies a MigrateAutomlModelConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MigrateAutomlModelConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - return null; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig - */ - MigrateAutomlModelConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig(); - if (object.model != null) - message.model = String(object.model); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - return message; - }; + /** + * MigratableResource resource. + * @member {"mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"|undefined} resource + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + Object.defineProperty(MigratableResource.prototype, "resource", { + get: $util.oneOfGetter($oneOfFields = ["mlEngineModelVersion", "automlModel", "automlDataset", "dataLabelingDataset"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} message MigrateAutomlModelConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MigrateAutomlModelConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.model = ""; - object.modelDisplayName = ""; - } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - return object; - }; + /** + * Creates a new MigratableResource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {google.cloud.aiplatform.v1.IMigratableResource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource instance + */ + MigratableResource.create = function create(properties) { + return new MigratableResource(properties); + }; - /** - * Converts this MigrateAutomlModelConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @instance - * @returns {Object.} JSON object - */ - MigrateAutomlModelConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {google.cloud.aiplatform.v1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigratableResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mlEngineModelVersion != null && Object.hasOwnProperty.call(message, "mlEngineModelVersion")) + $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.encode(message.mlEngineModelVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.automlModel != null && Object.hasOwnProperty.call(message, "automlModel")) + $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.encode(message.automlModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.automlDataset != null && Object.hasOwnProperty.call(message, "automlDataset")) + $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.encode(message.automlDataset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dataLabelingDataset != null && Object.hasOwnProperty.call(message, "dataLabelingDataset")) + $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.encode(message.dataLabelingDataset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.lastMigrateTime != null && Object.hasOwnProperty.call(message, "lastMigrateTime")) + $root.google.protobuf.Timestamp.encode(message.lastMigrateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * Gets the default type url for MigrateAutomlModelConfig + /** + * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {google.cloud.aiplatform.v1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigratableResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MigratableResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigratableResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.decode(reader, reader.uint32()); + break; + } + case 2: { + message.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.decode(reader, reader.uint32()); + break; + } + case 3: { + message.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.decode(reader, reader.uint32()); + break; + } + case 4: { + message.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.decode(reader, reader.uint32()); + break; + } + case 5: { + message.lastMigrateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MigratableResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigratableResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MigratableResource message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigratableResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify(message.mlEngineModelVersion); + if (error) + return "mlEngineModelVersion." + error; + } + } + if (message.automlModel != null && message.hasOwnProperty("automlModel")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify(message.automlModel); + if (error) + return "automlModel." + error; + } + } + if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify(message.automlDataset); + if (error) + return "automlDataset." + error; + } + } + if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify(message.dataLabelingDataset); + if (error) + return "dataLabelingDataset." + error; + } + } + if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastMigrateTime); + if (error) + return "lastMigrateTime." + error; + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + return null; + }; + + /** + * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + */ + MigratableResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigratableResource(); + if (object.mlEngineModelVersion != null) { + if (typeof object.mlEngineModelVersion !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.mlEngineModelVersion: object expected"); + message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.fromObject(object.mlEngineModelVersion); + } + if (object.automlModel != null) { + if (typeof object.automlModel !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.automlModel: object expected"); + message.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.fromObject(object.automlModel); + } + if (object.automlDataset != null) { + if (typeof object.automlDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.automlDataset: object expected"); + message.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.fromObject(object.automlDataset); + } + if (object.dataLabelingDataset != null) { + if (typeof object.dataLabelingDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.dataLabelingDataset: object expected"); + message.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.fromObject(object.dataLabelingDataset); + } + if (object.lastMigrateTime != null) { + if (typeof object.lastMigrateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.lastMigrateTime: object expected"); + message.lastMigrateTime = $root.google.protobuf.Timestamp.fromObject(object.lastMigrateTime); + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + return message; + }; + + /** + * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource} message MigratableResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigratableResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.lastMigrateTime = null; + object.lastUpdateTime = null; + } + if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { + object.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.toObject(message.mlEngineModelVersion, options); + if (options.oneofs) + object.resource = "mlEngineModelVersion"; + } + if (message.automlModel != null && message.hasOwnProperty("automlModel")) { + object.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.toObject(message.automlModel, options); + if (options.oneofs) + object.resource = "automlModel"; + } + if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { + object.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.toObject(message.automlDataset, options); + if (options.oneofs) + object.resource = "automlDataset"; + } + if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { + object.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.toObject(message.dataLabelingDataset, options); + if (options.oneofs) + object.resource = "dataLabelingDataset"; + } + if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) + object.lastMigrateTime = $root.google.protobuf.Timestamp.toObject(message.lastMigrateTime, options); + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + return object; + }; + + /** + * Converts this MigratableResource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + * @returns {Object.} JSON object + */ + MigratableResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MigratableResource + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigratableResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource"; + }; + + MigratableResource.MlEngineModelVersion = (function() { + + /** + * Properties of a MlEngineModelVersion. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @interface IMlEngineModelVersion + * @property {string|null} [endpoint] MlEngineModelVersion endpoint + * @property {string|null} [version] MlEngineModelVersion version + */ + + /** + * Constructs a new MlEngineModelVersion. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @classdesc Represents a MlEngineModelVersion. + * @implements IMlEngineModelVersion + * @constructor + * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set + */ + function MlEngineModelVersion(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]]; + } + + /** + * MlEngineModelVersion endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @instance + */ + MlEngineModelVersion.prototype.endpoint = ""; + + /** + * MlEngineModelVersion version. + * @member {string} version + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @instance + */ + MlEngineModelVersion.prototype.version = ""; + + /** + * Creates a new MlEngineModelVersion instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion instance + */ + MlEngineModelVersion.create = function create(properties) { + return new MlEngineModelVersion(properties); + }; + + /** + * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MlEngineModelVersion.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + return writer; + }; + + /** + * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MlEngineModelVersion.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MlEngineModelVersion.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + message.version = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MlEngineModelVersion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MlEngineModelVersion message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MlEngineModelVersion.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + */ + MlEngineModelVersion.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} message MlEngineModelVersion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MlEngineModelVersion.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endpoint = ""; + object.version = ""; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this MlEngineModelVersion to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @instance + * @returns {Object.} JSON object + */ + MlEngineModelVersion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MlEngineModelVersion * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateAutomlModelConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MlEngineModelVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion"; }; - return MigrateAutomlModelConfig; + return MlEngineModelVersion; })(); - MigrateResourceRequest.MigrateAutomlDatasetConfig = (function() { + MigratableResource.AutomlModel = (function() { /** - * Properties of a MigrateAutomlDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @interface IMigrateAutomlDatasetConfig - * @property {string|null} [dataset] MigrateAutomlDatasetConfig dataset - * @property {string|null} [datasetDisplayName] MigrateAutomlDatasetConfig datasetDisplayName + * Properties of an AutomlModel. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @interface IAutomlModel + * @property {string|null} [model] AutomlModel model + * @property {string|null} [modelDisplayName] AutomlModel modelDisplayName */ /** - * Constructs a new MigrateAutomlDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @classdesc Represents a MigrateAutomlDatasetConfig. - * @implements IMigrateAutomlDatasetConfig + * Constructs a new AutomlModel. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @classdesc Represents an AutomlModel. + * @implements IAutomlModel * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel=} [properties] Properties to set */ - function MigrateAutomlDatasetConfig(properties) { + function AutomlModel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108394,80 +112053,307 @@ } /** - * MigrateAutomlDatasetConfig dataset. + * AutomlModel model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @instance + */ + AutomlModel.prototype.model = ""; + + /** + * AutomlModel modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @instance + */ + AutomlModel.prototype.modelDisplayName = ""; + + /** + * Creates a new AutomlModel instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel instance + */ + AutomlModel.create = function create(properties) { + return new AutomlModel(properties); + }; + + /** + * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlModel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + return writer; + }; + + /** + * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlModel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutomlModel message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlModel.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 3: { + message.modelDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlModel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutomlModel message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutomlModel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; + + /** + * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel + */ + AutomlModel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel(); + if (object.model != null) + message.model = String(object.model); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; + + /** + * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} message AutomlModel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutomlModel.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelDisplayName = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + return object; + }; + + /** + * Converts this AutomlModel to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @instance + * @returns {Object.} JSON object + */ + AutomlModel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutomlModel + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutomlModel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.AutomlModel"; + }; + + return AutomlModel; + })(); + + MigratableResource.AutomlDataset = (function() { + + /** + * Properties of an AutomlDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @interface IAutomlDataset + * @property {string|null} [dataset] AutomlDataset dataset + * @property {string|null} [datasetDisplayName] AutomlDataset datasetDisplayName + */ + + /** + * Constructs a new AutomlDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @classdesc Represents an AutomlDataset. + * @implements IAutomlDataset + * @constructor + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset=} [properties] Properties to set + */ + function AutomlDataset(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]]; + } + + /** + * AutomlDataset dataset. * @member {string} dataset - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @instance */ - MigrateAutomlDatasetConfig.prototype.dataset = ""; + AutomlDataset.prototype.dataset = ""; /** - * MigrateAutomlDatasetConfig datasetDisplayName. + * AutomlDataset datasetDisplayName. * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @instance */ - MigrateAutomlDatasetConfig.prototype.datasetDisplayName = ""; + AutomlDataset.prototype.datasetDisplayName = ""; /** - * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * Creates a new AutomlDataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig instance + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset instance */ - MigrateAutomlDatasetConfig.create = function create(properties) { - return new MigrateAutomlDatasetConfig(properties); + AutomlDataset.create = function create(properties) { + return new AutomlDataset(properties); }; /** - * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateAutomlDatasetConfig.encode = function encode(message, writer) { + AutomlDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); return writer; }; /** - * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateAutomlDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + AutomlDataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * Decodes an AutomlDataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateAutomlDatasetConfig.decode = function decode(reader, length) { + AutomlDataset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -108475,7 +112361,7 @@ message.dataset = reader.string(); break; } - case 2: { + case 4: { message.datasetDisplayName = reader.string(); break; } @@ -108488,30 +112374,30 @@ }; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateAutomlDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + AutomlDataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateAutomlDatasetConfig message. + * Verifies an AutomlDataset message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateAutomlDatasetConfig.verify = function verify(message) { + AutomlDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.dataset != null && message.hasOwnProperty("dataset")) @@ -108524,17 +112410,17 @@ }; /** - * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset */ - MigrateAutomlDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig) + AutomlDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset(); if (object.dataset != null) message.dataset = String(object.dataset); if (object.datasetDisplayName != null) @@ -108543,15 +112429,15 @@ }; /** - * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. + * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig + * @param {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} message AutomlDataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateAutomlDatasetConfig.toObject = function toObject(message, options) { + AutomlDataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -108567,55 +112453,55 @@ }; /** - * Converts this MigrateAutomlDatasetConfig to JSON. + * Converts this AutomlDataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @instance * @returns {Object.} JSON object */ - MigrateAutomlDatasetConfig.prototype.toJSON = function toJSON() { + AutomlDataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateAutomlDatasetConfig + * Gets the default type url for AutomlDataset * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateAutomlDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AutomlDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.AutomlDataset"; }; - return MigrateAutomlDatasetConfig; + return AutomlDataset; })(); - MigrateResourceRequest.MigrateDataLabelingDatasetConfig = (function() { + MigratableResource.DataLabelingDataset = (function() { /** - * Properties of a MigrateDataLabelingDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @interface IMigrateDataLabelingDatasetConfig - * @property {string|null} [dataset] MigrateDataLabelingDatasetConfig dataset - * @property {string|null} [datasetDisplayName] MigrateDataLabelingDatasetConfig datasetDisplayName - * @property {Array.|null} [migrateDataLabelingAnnotatedDatasetConfigs] MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs + * Properties of a DataLabelingDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @interface IDataLabelingDataset + * @property {string|null} [dataset] DataLabelingDataset dataset + * @property {string|null} [datasetDisplayName] DataLabelingDataset datasetDisplayName + * @property {Array.|null} [dataLabelingAnnotatedDatasets] DataLabelingDataset dataLabelingAnnotatedDatasets */ /** - * Constructs a new MigrateDataLabelingDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @classdesc Represents a MigrateDataLabelingDatasetConfig. - * @implements IMigrateDataLabelingDatasetConfig + * Constructs a new DataLabelingDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @classdesc Represents a DataLabelingDataset. + * @implements IDataLabelingDataset * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set */ - function MigrateDataLabelingDatasetConfig(properties) { - this.migrateDataLabelingAnnotatedDatasetConfigs = []; + function DataLabelingDataset(properties) { + this.dataLabelingAnnotatedDatasets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108623,91 +112509,91 @@ } /** - * MigrateDataLabelingDatasetConfig dataset. + * DataLabelingDataset dataset. * @member {string} dataset - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @instance */ - MigrateDataLabelingDatasetConfig.prototype.dataset = ""; + DataLabelingDataset.prototype.dataset = ""; /** - * MigrateDataLabelingDatasetConfig datasetDisplayName. + * DataLabelingDataset datasetDisplayName. * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @instance */ - MigrateDataLabelingDatasetConfig.prototype.datasetDisplayName = ""; + DataLabelingDataset.prototype.datasetDisplayName = ""; /** - * MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. - * @member {Array.} migrateDataLabelingAnnotatedDatasetConfigs - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * DataLabelingDataset dataLabelingAnnotatedDatasets. + * @member {Array.} dataLabelingAnnotatedDatasets + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @instance */ - MigrateDataLabelingDatasetConfig.prototype.migrateDataLabelingAnnotatedDatasetConfigs = $util.emptyArray; + DataLabelingDataset.prototype.dataLabelingAnnotatedDatasets = $util.emptyArray; /** - * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. + * Creates a new DataLabelingDataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig instance + * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset instance */ - MigrateDataLabelingDatasetConfig.create = function create(properties) { - return new MigrateDataLabelingDatasetConfig(properties); + DataLabelingDataset.create = function create(properties) { + return new DataLabelingDataset(properties); }; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingDatasetConfig.encode = function encode(message, writer) { + DataLabelingDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.dataLabelingAnnotatedDatasets != null && message.dataLabelingAnnotatedDatasets.length) + for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) + $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.encode(message.dataLabelingAnnotatedDatasets[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); - if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.migrateDataLabelingAnnotatedDatasetConfigs.length) - for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.encode(message.migrateDataLabelingAnnotatedDatasetConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); return writer; }; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + DataLabelingDataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. + * Decodes a DataLabelingDataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingDatasetConfig.decode = function decode(reader, length) { + DataLabelingDataset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -108715,14 +112601,14 @@ message.dataset = reader.string(); break; } - case 2: { + case 4: { message.datasetDisplayName = reader.string(); break; } case 3: { - if (!(message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length)) - message.migrateDataLabelingAnnotatedDatasetConfigs = []; - message.migrateDataLabelingAnnotatedDatasetConfigs.push($root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.decode(reader, reader.uint32())); + if (!(message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length)) + message.dataLabelingAnnotatedDatasets = []; + message.dataLabelingAnnotatedDatasets.push($root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.decode(reader, reader.uint32())); break; } default: @@ -108734,30 +112620,30 @@ }; /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + DataLabelingDataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateDataLabelingDatasetConfig message. + * Verifies a DataLabelingDataset message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateDataLabelingDatasetConfig.verify = function verify(message) { + DataLabelingDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.dataset != null && message.hasOwnProperty("dataset")) @@ -108766,122 +112652,123 @@ if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) if (!$util.isString(message.datasetDisplayName)) return "datasetDisplayName: string expected"; - if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.hasOwnProperty("migrateDataLabelingAnnotatedDatasetConfigs")) { - if (!Array.isArray(message.migrateDataLabelingAnnotatedDatasetConfigs)) - return "migrateDataLabelingAnnotatedDatasetConfigs: array expected"; - for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify(message.migrateDataLabelingAnnotatedDatasetConfigs[i]); + if (message.dataLabelingAnnotatedDatasets != null && message.hasOwnProperty("dataLabelingAnnotatedDatasets")) { + if (!Array.isArray(message.dataLabelingAnnotatedDatasets)) + return "dataLabelingAnnotatedDatasets: array expected"; + for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify(message.dataLabelingAnnotatedDatasets[i]); if (error) - return "migrateDataLabelingAnnotatedDatasetConfigs." + error; + return "dataLabelingAnnotatedDatasets." + error; } } return null; }; /** - * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset */ - MigrateDataLabelingDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig) + DataLabelingDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset(); if (object.dataset != null) message.dataset = String(object.dataset); if (object.datasetDisplayName != null) message.datasetDisplayName = String(object.datasetDisplayName); - if (object.migrateDataLabelingAnnotatedDatasetConfigs) { - if (!Array.isArray(object.migrateDataLabelingAnnotatedDatasetConfigs)) - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: array expected"); - message.migrateDataLabelingAnnotatedDatasetConfigs = []; - for (var i = 0; i < object.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { - if (typeof object.migrateDataLabelingAnnotatedDatasetConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: object expected"); - message.migrateDataLabelingAnnotatedDatasetConfigs[i] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.fromObject(object.migrateDataLabelingAnnotatedDatasetConfigs[i]); + if (object.dataLabelingAnnotatedDatasets) { + if (!Array.isArray(object.dataLabelingAnnotatedDatasets)) + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: array expected"); + message.dataLabelingAnnotatedDatasets = []; + for (var i = 0; i < object.dataLabelingAnnotatedDatasets.length; ++i) { + if (typeof object.dataLabelingAnnotatedDatasets[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: object expected"); + message.dataLabelingAnnotatedDatasets[i] = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.fromObject(object.dataLabelingAnnotatedDatasets[i]); } } return message; }; /** - * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} message DataLabelingDataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateDataLabelingDatasetConfig.toObject = function toObject(message, options) { + DataLabelingDataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.migrateDataLabelingAnnotatedDatasetConfigs = []; + object.dataLabelingAnnotatedDatasets = []; if (options.defaults) { object.dataset = ""; object.datasetDisplayName = ""; } if (message.dataset != null && message.hasOwnProperty("dataset")) object.dataset = message.dataset; + if (message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length) { + object.dataLabelingAnnotatedDatasets = []; + for (var j = 0; j < message.dataLabelingAnnotatedDatasets.length; ++j) + object.dataLabelingAnnotatedDatasets[j] = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.toObject(message.dataLabelingAnnotatedDatasets[j], options); + } if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) object.datasetDisplayName = message.datasetDisplayName; - if (message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length) { - object.migrateDataLabelingAnnotatedDatasetConfigs = []; - for (var j = 0; j < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++j) - object.migrateDataLabelingAnnotatedDatasetConfigs[j] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.toObject(message.migrateDataLabelingAnnotatedDatasetConfigs[j], options); - } return object; }; /** - * Converts this MigrateDataLabelingDatasetConfig to JSON. + * Converts this DataLabelingDataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @instance * @returns {Object.} JSON object */ - MigrateDataLabelingDatasetConfig.prototype.toJSON = function toJSON() { + DataLabelingDataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateDataLabelingDatasetConfig + * Gets the default type url for DataLabelingDataset * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateDataLabelingDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DataLabelingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset"; }; - MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig = (function() { + DataLabelingDataset.DataLabelingAnnotatedDataset = (function() { /** - * Properties of a MigrateDataLabelingAnnotatedDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @interface IMigrateDataLabelingAnnotatedDatasetConfig - * @property {string|null} [annotatedDataset] MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset + * Properties of a DataLabelingAnnotatedDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset + * @interface IDataLabelingAnnotatedDataset + * @property {string|null} [annotatedDataset] DataLabelingAnnotatedDataset annotatedDataset + * @property {string|null} [annotatedDatasetDisplayName] DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ /** - * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @classdesc Represents a MigrateDataLabelingAnnotatedDatasetConfig. - * @implements IMigrateDataLabelingAnnotatedDatasetConfig + * Constructs a new DataLabelingAnnotatedDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset + * @classdesc Represents a DataLabelingAnnotatedDataset. + * @implements IDataLabelingAnnotatedDataset * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set */ - function MigrateDataLabelingAnnotatedDatasetConfig(properties) { + function DataLabelingAnnotatedDataset(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108889,70 +112776,80 @@ } /** - * MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. + * DataLabelingAnnotatedDataset annotatedDataset. * @member {string} annotatedDataset - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @instance */ - MigrateDataLabelingAnnotatedDatasetConfig.prototype.annotatedDataset = ""; + DataLabelingAnnotatedDataset.prototype.annotatedDataset = ""; /** - * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * DataLabelingAnnotatedDataset annotatedDatasetDisplayName. + * @member {string} annotatedDatasetDisplayName + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @instance + */ + DataLabelingAnnotatedDataset.prototype.annotatedDatasetDisplayName = ""; + + /** + * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig instance + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset instance */ - MigrateDataLabelingAnnotatedDatasetConfig.create = function create(properties) { - return new MigrateDataLabelingAnnotatedDatasetConfig(properties); + DataLabelingAnnotatedDataset.create = function create(properties) { + return new DataLabelingAnnotatedDataset(properties); }; /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingAnnotatedDatasetConfig.encode = function encode(message, writer) { + DataLabelingAnnotatedDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); + if (message.annotatedDatasetDisplayName != null && Object.hasOwnProperty.call(message, "annotatedDatasetDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotatedDatasetDisplayName); return writer; }; /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingAnnotatedDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + DataLabelingAnnotatedDataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingAnnotatedDatasetConfig.decode = function decode(reader, length) { + DataLabelingAnnotatedDataset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -108960,6 +112857,10 @@ message.annotatedDataset = reader.string(); break; } + case 3: { + message.annotatedDatasetDisplayName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -108969,129 +112870,241 @@ }; /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingAnnotatedDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + DataLabelingAnnotatedDataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. + * Verifies a DataLabelingAnnotatedDataset message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateDataLabelingAnnotatedDatasetConfig.verify = function verify(message) { + DataLabelingAnnotatedDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) if (!$util.isString(message.annotatedDataset)) return "annotatedDataset: string expected"; + if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) + if (!$util.isString(message.annotatedDatasetDisplayName)) + return "annotatedDatasetDisplayName: string expected"; return null; }; /** - * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset */ - MigrateDataLabelingAnnotatedDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig) + DataLabelingAnnotatedDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); if (object.annotatedDataset != null) message.annotatedDataset = String(object.annotatedDataset); + if (object.annotatedDatasetDisplayName != null) + message.annotatedDatasetDisplayName = String(object.annotatedDatasetDisplayName); return message; }; /** - * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateDataLabelingAnnotatedDatasetConfig.toObject = function toObject(message, options) { + DataLabelingAnnotatedDataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.annotatedDataset = ""; + object.annotatedDatasetDisplayName = ""; + } if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) object.annotatedDataset = message.annotatedDataset; + if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) + object.annotatedDatasetDisplayName = message.annotatedDatasetDisplayName; return object; }; /** - * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * Converts this DataLabelingAnnotatedDataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @instance * @returns {Object.} JSON object */ - MigrateDataLabelingAnnotatedDatasetConfig.prototype.toJSON = function toJSON() { + DataLabelingAnnotatedDataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * Gets the default type url for DataLabelingAnnotatedDataset * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateDataLabelingAnnotatedDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DataLabelingAnnotatedDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset"; }; - return MigrateDataLabelingAnnotatedDatasetConfig; + return DataLabelingAnnotatedDataset; })(); - return MigrateDataLabelingDatasetConfig; + return DataLabelingDataset; })(); - return MigrateResourceRequest; + return MigratableResource; })(); - v1.BatchMigrateResourcesResponse = (function() { + v1.MigrationService = (function() { /** - * Properties of a BatchMigrateResourcesResponse. + * Constructs a new MigrationService service. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchMigrateResourcesResponse - * @property {Array.|null} [migrateResourceResponses] BatchMigrateResourcesResponse migrateResourceResponses + * @classdesc Represents a MigrationService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function MigrationService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (MigrationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MigrationService; + + /** + * Creates new MigrationService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.MigrationService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {MigrationService} RPC service. Useful where requests and/or responses are streamed. */ + MigrationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Constructs a new BatchMigrateResourcesResponse. + * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|searchMigratableResources}. + * @memberof google.cloud.aiplatform.v1.MigrationService + * @typedef SearchMigratableResourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} [response] SearchMigratableResourcesResponse + */ + + /** + * Calls SearchMigratableResources. + * @function searchMigratableResources + * @memberof google.cloud.aiplatform.v1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1.MigrationService.SearchMigratableResourcesCallback} callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MigrationService.prototype.searchMigratableResources = function searchMigratableResources(request, callback) { + return this.rpcCall(searchMigratableResources, $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest, $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse, request, callback); + }, "name", { value: "SearchMigratableResources" }); + + /** + * Calls SearchMigratableResources. + * @function searchMigratableResources + * @memberof google.cloud.aiplatform.v1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|batchMigrateResources}. + * @memberof google.cloud.aiplatform.v1.MigrationService + * @typedef BatchMigrateResourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchMigrateResources. + * @function batchMigrateResources + * @memberof google.cloud.aiplatform.v1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1.MigrationService.BatchMigrateResourcesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MigrationService.prototype.batchMigrateResources = function batchMigrateResources(request, callback) { + return this.rpcCall(batchMigrateResources, $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchMigrateResources" }); + + /** + * Calls BatchMigrateResources. + * @function batchMigrateResources + * @memberof google.cloud.aiplatform.v1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return MigrationService; + })(); + + v1.SearchMigratableResourcesRequest = (function() { + + /** + * Properties of a SearchMigratableResourcesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchMigrateResourcesResponse. - * @implements IBatchMigrateResourcesResponse + * @interface ISearchMigratableResourcesRequest + * @property {string|null} [parent] SearchMigratableResourcesRequest parent + * @property {number|null} [pageSize] SearchMigratableResourcesRequest pageSize + * @property {string|null} [pageToken] SearchMigratableResourcesRequest pageToken + * @property {string|null} [filter] SearchMigratableResourcesRequest filter + */ + + /** + * Constructs a new SearchMigratableResourcesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SearchMigratableResourcesRequest. + * @implements ISearchMigratableResourcesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest=} [properties] Properties to set */ - function BatchMigrateResourcesResponse(properties) { - this.migrateResourceResponses = []; + function SearchMigratableResourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109099,78 +113112,117 @@ } /** - * BatchMigrateResourcesResponse migrateResourceResponses. - * @member {Array.} migrateResourceResponses - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * SearchMigratableResourcesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @instance */ - BatchMigrateResourcesResponse.prototype.migrateResourceResponses = $util.emptyArray; + SearchMigratableResourcesRequest.prototype.parent = ""; /** - * Creates a new BatchMigrateResourcesResponse instance using the specified properties. + * SearchMigratableResourcesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @instance + */ + SearchMigratableResourcesRequest.prototype.pageSize = 0; + + /** + * SearchMigratableResourcesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @instance + */ + SearchMigratableResourcesRequest.prototype.pageToken = ""; + + /** + * SearchMigratableResourcesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @instance + */ + SearchMigratableResourcesRequest.prototype.filter = ""; + + /** + * Creates a new SearchMigratableResourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse instance + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest instance */ - BatchMigrateResourcesResponse.create = function create(properties) { - return new BatchMigrateResourcesResponse(properties); + SearchMigratableResourcesRequest.create = function create(properties) { + return new SearchMigratableResourcesRequest(properties); }; /** - * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesResponse.encode = function encode(message, writer) { + SearchMigratableResourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migrateResourceResponses != null && message.migrateResourceResponses.length) - for (var i = 0; i < message.migrateResourceResponses.length; ++i) - $root.google.cloud.aiplatform.v1.MigrateResourceResponse.encode(message.migrateResourceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { + SearchMigratableResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesResponse.decode = function decode(reader, length) { + SearchMigratableResourcesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.migrateResourceResponses && message.migrateResourceResponses.length)) - message.migrateResourceResponses = []; - message.migrateResourceResponses.push($root.google.cloud.aiplatform.v1.MigrateResourceResponse.decode(reader, reader.uint32())); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); break; } default: @@ -109182,141 +113234,149 @@ }; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesResponse.decodeDelimited = function decodeDelimited(reader) { + SearchMigratableResourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesResponse message. + * Verifies a SearchMigratableResourcesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesResponse.verify = function verify(message) { + SearchMigratableResourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.migrateResourceResponses != null && message.hasOwnProperty("migrateResourceResponses")) { - if (!Array.isArray(message.migrateResourceResponses)) - return "migrateResourceResponses: array expected"; - for (var i = 0; i < message.migrateResourceResponses.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.verify(message.migrateResourceResponses[i]); - if (error) - return "migrateResourceResponses." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest */ - BatchMigrateResourcesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse) + SearchMigratableResourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse(); - if (object.migrateResourceResponses) { - if (!Array.isArray(object.migrateResourceResponses)) - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.migrateResourceResponses: array expected"); - message.migrateResourceResponses = []; - for (var i = 0; i < object.migrateResourceResponses.length; ++i) { - if (typeof object.migrateResourceResponses[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.migrateResourceResponses: object expected"); - message.migrateResourceResponses[i] = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.fromObject(object.migrateResourceResponses[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. + * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} message BatchMigrateResourcesResponse + * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} message SearchMigratableResourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesResponse.toObject = function toObject(message, options) { + SearchMigratableResourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.migrateResourceResponses = []; - if (message.migrateResourceResponses && message.migrateResourceResponses.length) { - object.migrateResourceResponses = []; - for (var j = 0; j < message.migrateResourceResponses.length; ++j) - object.migrateResourceResponses[j] = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.toObject(message.migrateResourceResponses[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this BatchMigrateResourcesResponse to JSON. + * Converts this SearchMigratableResourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesResponse.prototype.toJSON = function toJSON() { + SearchMigratableResourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchMigrateResourcesResponse + * Gets the default type url for SearchMigratableResourcesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchMigrateResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchMigratableResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchMigratableResourcesRequest"; }; - return BatchMigrateResourcesResponse; + return SearchMigratableResourcesRequest; })(); - v1.MigrateResourceResponse = (function() { + v1.SearchMigratableResourcesResponse = (function() { /** - * Properties of a MigrateResourceResponse. + * Properties of a SearchMigratableResourcesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IMigrateResourceResponse - * @property {string|null} [dataset] MigrateResourceResponse dataset - * @property {string|null} [model] MigrateResourceResponse model - * @property {google.cloud.aiplatform.v1.IMigratableResource|null} [migratableResource] MigrateResourceResponse migratableResource + * @interface ISearchMigratableResourcesResponse + * @property {Array.|null} [migratableResources] SearchMigratableResourcesResponse migratableResources + * @property {string|null} [nextPageToken] SearchMigratableResourcesResponse nextPageToken */ /** - * Constructs a new MigrateResourceResponse. + * Constructs a new SearchMigratableResourcesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MigrateResourceResponse. - * @implements IMigrateResourceResponse + * @classdesc Represents a SearchMigratableResourcesResponse. + * @implements ISearchMigratableResourcesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse=} [properties] Properties to set */ - function MigrateResourceResponse(properties) { + function SearchMigratableResourcesResponse(properties) { + this.migratableResources = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109324,117 +113384,92 @@ } /** - * MigrateResourceResponse dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse - * @instance - */ - MigrateResourceResponse.prototype.dataset = null; - - /** - * MigrateResourceResponse model. - * @member {string|null|undefined} model - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse - * @instance - */ - MigrateResourceResponse.prototype.model = null; - - /** - * MigrateResourceResponse migratableResource. - * @member {google.cloud.aiplatform.v1.IMigratableResource|null|undefined} migratableResource - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * SearchMigratableResourcesResponse migratableResources. + * @member {Array.} migratableResources + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @instance */ - MigrateResourceResponse.prototype.migratableResource = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + SearchMigratableResourcesResponse.prototype.migratableResources = $util.emptyArray; /** - * MigrateResourceResponse migratedResource. - * @member {"dataset"|"model"|undefined} migratedResource - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * SearchMigratableResourcesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @instance */ - Object.defineProperty(MigrateResourceResponse.prototype, "migratedResource", { - get: $util.oneOfGetter($oneOfFields = ["dataset", "model"]), - set: $util.oneOfSetter($oneOfFields) - }); + SearchMigratableResourcesResponse.prototype.nextPageToken = ""; /** - * Creates a new MigrateResourceResponse instance using the specified properties. + * Creates a new SearchMigratableResourcesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse instance + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse instance */ - MigrateResourceResponse.create = function create(properties) { - return new MigrateResourceResponse(properties); + SearchMigratableResourcesResponse.create = function create(properties) { + return new SearchMigratableResourcesResponse(properties); }; /** - * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceResponse.encode = function encode(message, writer) { + SearchMigratableResourcesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); - if (message.migratableResource != null && Object.hasOwnProperty.call(message, "migratableResource")) - $root.google.cloud.aiplatform.v1.MigratableResource.encode(message.migratableResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.migratableResources != null && message.migratableResources.length) + for (var i = 0; i < message.migratableResources.length; ++i) + $root.google.cloud.aiplatform.v1.MigratableResource.encode(message.migratableResources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceResponse.encodeDelimited = function encodeDelimited(message, writer) { + SearchMigratableResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceResponse.decode = function decode(reader, length) { + SearchMigratableResourcesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dataset = reader.string(); + if (!(message.migratableResources && message.migratableResources.length)) + message.migratableResources = []; + message.migratableResources.push($root.google.cloud.aiplatform.v1.MigratableResource.decode(reader, reader.uint32())); break; } case 2: { - message.model = reader.string(); - break; - } - case 3: { - message.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -109446,156 +113481,150 @@ }; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceResponse.decodeDelimited = function decodeDelimited(reader) { + SearchMigratableResourcesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateResourceResponse message. + * Verifies a SearchMigratableResourcesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateResourceResponse.verify = function verify(message) { + SearchMigratableResourcesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - properties.migratedResource = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.model != null && message.hasOwnProperty("model")) { - if (properties.migratedResource === 1) - return "migratedResource: multiple values"; - properties.migratedResource = 1; - if (!$util.isString(message.model)) - return "model: string expected"; - } - if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.verify(message.migratableResource); - if (error) - return "migratableResource." + error; + if (message.migratableResources != null && message.hasOwnProperty("migratableResources")) { + if (!Array.isArray(message.migratableResources)) + return "migratableResources: array expected"; + for (var i = 0; i < message.migratableResources.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.verify(message.migratableResources[i]); + if (error) + return "migratableResources." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse */ - MigrateResourceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceResponse) + SearchMigratableResourcesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceResponse(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.model != null) - message.model = String(object.model); - if (object.migratableResource != null) { - if (typeof object.migratableResource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceResponse.migratableResource: object expected"); - message.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.fromObject(object.migratableResource); + var message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse(); + if (object.migratableResources) { + if (!Array.isArray(object.migratableResources)) + throw TypeError(".google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.migratableResources: array expected"); + message.migratableResources = []; + for (var i = 0; i < object.migratableResources.length; ++i) { + if (typeof object.migratableResources[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.migratableResources: object expected"); + message.migratableResources[i] = $root.google.cloud.aiplatform.v1.MigratableResource.fromObject(object.migratableResources[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. + * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceResponse} message MigrateResourceResponse + * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} message SearchMigratableResourcesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateResourceResponse.toObject = function toObject(message, options) { + SearchMigratableResourcesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.migratableResources = []; if (options.defaults) - object.migratableResource = null; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.migratedResource = "dataset"; - } - if (message.model != null && message.hasOwnProperty("model")) { - object.model = message.model; - if (options.oneofs) - object.migratedResource = "model"; + object.nextPageToken = ""; + if (message.migratableResources && message.migratableResources.length) { + object.migratableResources = []; + for (var j = 0; j < message.migratableResources.length; ++j) + object.migratableResources[j] = $root.google.cloud.aiplatform.v1.MigratableResource.toObject(message.migratableResources[j], options); } - if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) - object.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.toObject(message.migratableResource, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this MigrateResourceResponse to JSON. + * Converts this SearchMigratableResourcesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @instance * @returns {Object.} JSON object */ - MigrateResourceResponse.prototype.toJSON = function toJSON() { + SearchMigratableResourcesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateResourceResponse + * Gets the default type url for SearchMigratableResourcesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateResourceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchMigratableResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchMigratableResourcesResponse"; }; - return MigrateResourceResponse; + return SearchMigratableResourcesResponse; })(); - v1.BatchMigrateResourcesOperationMetadata = (function() { + v1.BatchMigrateResourcesRequest = (function() { /** - * Properties of a BatchMigrateResourcesOperationMetadata. + * Properties of a BatchMigrateResourcesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchMigrateResourcesOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] BatchMigrateResourcesOperationMetadata genericMetadata - * @property {Array.|null} [partialResults] BatchMigrateResourcesOperationMetadata partialResults + * @interface IBatchMigrateResourcesRequest + * @property {string|null} [parent] BatchMigrateResourcesRequest parent + * @property {Array.|null} [migrateResourceRequests] BatchMigrateResourcesRequest migrateResourceRequests */ /** - * Constructs a new BatchMigrateResourcesOperationMetadata. + * Constructs a new BatchMigrateResourcesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchMigrateResourcesOperationMetadata. - * @implements IBatchMigrateResourcesOperationMetadata + * @classdesc Represents a BatchMigrateResourcesRequest. + * @implements IBatchMigrateResourcesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest=} [properties] Properties to set */ - function BatchMigrateResourcesOperationMetadata(properties) { - this.partialResults = []; + function BatchMigrateResourcesRequest(properties) { + this.migrateResourceRequests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109603,92 +113632,92 @@ } /** - * BatchMigrateResourcesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * BatchMigrateResourcesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @instance */ - BatchMigrateResourcesOperationMetadata.prototype.genericMetadata = null; + BatchMigrateResourcesRequest.prototype.parent = ""; /** - * BatchMigrateResourcesOperationMetadata partialResults. - * @member {Array.} partialResults - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * BatchMigrateResourcesRequest migrateResourceRequests. + * @member {Array.} migrateResourceRequests + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @instance */ - BatchMigrateResourcesOperationMetadata.prototype.partialResults = $util.emptyArray; + BatchMigrateResourcesRequest.prototype.migrateResourceRequests = $util.emptyArray; /** - * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. + * Creates a new BatchMigrateResourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest instance */ - BatchMigrateResourcesOperationMetadata.create = function create(properties) { - return new BatchMigrateResourcesOperationMetadata(properties); + BatchMigrateResourcesRequest.create = function create(properties) { + return new BatchMigrateResourcesRequest(properties); }; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesOperationMetadata.encode = function encode(message, writer) { + BatchMigrateResourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.partialResults != null && message.partialResults.length) - for (var i = 0; i < message.partialResults.length; ++i) - $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.encode(message.partialResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.migrateResourceRequests != null && message.migrateResourceRequests.length) + for (var i = 0; i < message.migrateResourceRequests.length; ++i) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.encode(message.migrateResourceRequests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesOperationMetadata.decode = function decode(reader, length) { + BatchMigrateResourcesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - if (!(message.partialResults && message.partialResults.length)) - message.partialResults = []; - message.partialResults.push($root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.decode(reader, reader.uint32())); + if (!(message.migrateResourceRequests && message.migrateResourceRequests.length)) + message.migrateResourceRequests = []; + message.migrateResourceRequests.push($root.google.cloud.aiplatform.v1.MigrateResourceRequest.decode(reader, reader.uint32())); break; } default: @@ -109700,701 +113729,283 @@ }; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesOperationMetadata message. + * Verifies a BatchMigrateResourcesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesOperationMetadata.verify = function verify(message) { + BatchMigrateResourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.partialResults != null && message.hasOwnProperty("partialResults")) { - if (!Array.isArray(message.partialResults)) - return "partialResults: array expected"; - for (var i = 0; i < message.partialResults.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify(message.partialResults[i]); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.migrateResourceRequests != null && message.hasOwnProperty("migrateResourceRequests")) { + if (!Array.isArray(message.migrateResourceRequests)) + return "migrateResourceRequests: array expected"; + for (var i = 0; i < message.migrateResourceRequests.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.verify(message.migrateResourceRequests[i]); if (error) - return "partialResults." + error; + return "migrateResourceRequests." + error; } } return null; }; /** - * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest */ - BatchMigrateResourcesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata) + BatchMigrateResourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.partialResults) { - if (!Array.isArray(object.partialResults)) - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.partialResults: array expected"); - message.partialResults = []; - for (var i = 0; i < object.partialResults.length; ++i) { - if (typeof object.partialResults[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.partialResults: object expected"); - message.partialResults[i] = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.fromObject(object.partialResults[i]); + var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.migrateResourceRequests) { + if (!Array.isArray(object.migrateResourceRequests)) + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrateResourceRequests: array expected"); + message.migrateResourceRequests = []; + for (var i = 0; i < object.migrateResourceRequests.length; ++i) { + if (typeof object.migrateResourceRequests[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrateResourceRequests: object expected"); + message.migrateResourceRequests[i] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.fromObject(object.migrateResourceRequests[i]); } } return message; }; /** - * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} message BatchMigrateResourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesOperationMetadata.toObject = function toObject(message, options) { + BatchMigrateResourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.partialResults = []; + object.migrateResourceRequests = []; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.partialResults && message.partialResults.length) { - object.partialResults = []; - for (var j = 0; j < message.partialResults.length; ++j) - object.partialResults[j] = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.toObject(message.partialResults[j], options); + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.migrateResourceRequests && message.migrateResourceRequests.length) { + object.migrateResourceRequests = []; + for (var j = 0; j < message.migrateResourceRequests.length; ++j) + object.migrateResourceRequests[j] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.toObject(message.migrateResourceRequests[j], options); } return object; }; /** - * Converts this BatchMigrateResourcesOperationMetadata to JSON. + * Converts this BatchMigrateResourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesOperationMetadata.prototype.toJSON = function toJSON() { + BatchMigrateResourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchMigrateResourcesOperationMetadata + * Gets the default type url for BatchMigrateResourcesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchMigrateResourcesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchMigrateResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesRequest"; }; - BatchMigrateResourcesOperationMetadata.PartialResult = (function() { + return BatchMigrateResourcesRequest; + })(); - /** - * Properties of a PartialResult. - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata - * @interface IPartialResult - * @property {google.rpc.IStatus|null} [error] PartialResult error - * @property {string|null} [model] PartialResult model - * @property {string|null} [dataset] PartialResult dataset - * @property {google.cloud.aiplatform.v1.IMigrateResourceRequest|null} [request] PartialResult request - */ + v1.MigrateResourceRequest = (function() { - /** - * Constructs a new PartialResult. - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata - * @classdesc Represents a PartialResult. - * @implements IPartialResult - * @constructor - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set - */ - function PartialResult(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]]; - } + /** + * Properties of a MigrateResourceRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IMigrateResourceRequest + * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null} [migrateMlEngineModelVersionConfig] MigrateResourceRequest migrateMlEngineModelVersionConfig + * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null} [migrateAutomlModelConfig] MigrateResourceRequest migrateAutomlModelConfig + * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null} [migrateAutomlDatasetConfig] MigrateResourceRequest migrateAutomlDatasetConfig + * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null} [migrateDataLabelingDatasetConfig] MigrateResourceRequest migrateDataLabelingDatasetConfig + */ - /** - * PartialResult error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.error = null; + /** + * Constructs a new MigrateResourceRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MigrateResourceRequest. + * @implements IMigrateResourceRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest=} [properties] Properties to set + */ + function MigrateResourceRequest(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]]; + } - /** - * PartialResult model. - * @member {string|null|undefined} model - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.model = null; + /** + * MigrateResourceRequest migrateMlEngineModelVersionConfig. + * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null|undefined} migrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateMlEngineModelVersionConfig = null; - /** - * PartialResult dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.dataset = null; + /** + * MigrateResourceRequest migrateAutomlModelConfig. + * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null|undefined} migrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateAutomlModelConfig = null; - /** - * PartialResult request. - * @member {google.cloud.aiplatform.v1.IMigrateResourceRequest|null|undefined} request - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.request = null; + /** + * MigrateResourceRequest migrateAutomlDatasetConfig. + * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null|undefined} migrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateAutomlDatasetConfig = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * MigrateResourceRequest migrateDataLabelingDatasetConfig. + * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null|undefined} migrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateDataLabelingDatasetConfig = null; - /** - * PartialResult result. - * @member {"error"|"model"|"dataset"|undefined} result - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - Object.defineProperty(PartialResult.prototype, "result", { - get: $util.oneOfGetter($oneOfFields = ["error", "model", "dataset"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new PartialResult instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult instance - */ - PartialResult.create = function create(properties) { - return new PartialResult(properties); - }; - - /** - * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.request != null && Object.hasOwnProperty.call(message, "request")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataset); - return writer; - }; - - /** - * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PartialResult message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 3: { - message.model = reader.string(); - break; - } - case 4: { - message.dataset = reader.string(); - break; - } - case 1: { - message.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PartialResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PartialResult message. - * @function verify - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PartialResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.error != null && message.hasOwnProperty("error")) { - properties.result = 1; - { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.model != null && message.hasOwnProperty("model")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - if (!$util.isString(message.model)) - return "model: string expected"; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.request != null && message.hasOwnProperty("request")) { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.verify(message.request); - if (error) - return "request." + error; - } - return null; - }; - - /** - * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - */ - PartialResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult) - return object; - var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.model != null) - message.model = String(object.model); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.request != null) { - if (typeof object.request !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.request: object expected"); - message.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.fromObject(object.request); - } - return message; - }; - - /** - * Creates a plain object from a PartialResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} message PartialResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PartialResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.request = null; - if (message.request != null && message.hasOwnProperty("request")) - object.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.toObject(message.request, options); - if (message.error != null && message.hasOwnProperty("error")) { - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (options.oneofs) - object.result = "error"; - } - if (message.model != null && message.hasOwnProperty("model")) { - object.model = message.model; - if (options.oneofs) - object.result = "model"; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.result = "dataset"; - } - return object; - }; - - /** - * Converts this PartialResult to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - * @returns {Object.} JSON object - */ - PartialResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PartialResult - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PartialResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult"; - }; - - return PartialResult; - })(); - - return BatchMigrateResourcesOperationMetadata; - })(); - - v1.ModelEvaluation = (function() { - - /** - * Properties of a ModelEvaluation. - * @memberof google.cloud.aiplatform.v1 - * @interface IModelEvaluation - * @property {string|null} [name] ModelEvaluation name - * @property {string|null} [displayName] ModelEvaluation displayName - * @property {string|null} [metricsSchemaUri] ModelEvaluation metricsSchemaUri - * @property {google.protobuf.IValue|null} [metrics] ModelEvaluation metrics - * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluation createTime - * @property {Array.|null} [sliceDimensions] ModelEvaluation sliceDimensions - * @property {string|null} [dataItemSchemaUri] ModelEvaluation dataItemSchemaUri - * @property {string|null} [annotationSchemaUri] ModelEvaluation annotationSchemaUri - * @property {google.cloud.aiplatform.v1.IModelExplanation|null} [modelExplanation] ModelEvaluation modelExplanation - * @property {Array.|null} [explanationSpecs] ModelEvaluation explanationSpecs - * @property {google.protobuf.IValue|null} [metadata] ModelEvaluation metadata - */ - - /** - * Constructs a new ModelEvaluation. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelEvaluation. - * @implements IModelEvaluation - * @constructor - * @param {google.cloud.aiplatform.v1.IModelEvaluation=} [properties] Properties to set - */ - function ModelEvaluation(properties) { - this.sliceDimensions = []; - this.explanationSpecs = []; - 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]]; - } - - /** - * ModelEvaluation name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.name = ""; - - /** - * ModelEvaluation displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.displayName = ""; - - /** - * ModelEvaluation metricsSchemaUri. - * @member {string} metricsSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.metricsSchemaUri = ""; - - /** - * ModelEvaluation metrics. - * @member {google.protobuf.IValue|null|undefined} metrics - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.metrics = null; - - /** - * ModelEvaluation createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.createTime = null; - - /** - * ModelEvaluation sliceDimensions. - * @member {Array.} sliceDimensions - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.sliceDimensions = $util.emptyArray; - - /** - * ModelEvaluation dataItemSchemaUri. - * @member {string} dataItemSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.dataItemSchemaUri = ""; - - /** - * ModelEvaluation annotationSchemaUri. - * @member {string} annotationSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.annotationSchemaUri = ""; - - /** - * ModelEvaluation modelExplanation. - * @member {google.cloud.aiplatform.v1.IModelExplanation|null|undefined} modelExplanation - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.modelExplanation = null; - - /** - * ModelEvaluation explanationSpecs. - * @member {Array.} explanationSpecs - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.explanationSpecs = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ModelEvaluation metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * MigrateResourceRequest request. + * @member {"migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"|undefined} request + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @instance */ - ModelEvaluation.prototype.metadata = null; + Object.defineProperty(MigrateResourceRequest.prototype, "request", { + get: $util.oneOfGetter($oneOfFields = ["migrateMlEngineModelVersionConfig", "migrateAutomlModelConfig", "migrateAutomlDatasetConfig", "migrateDataLabelingDatasetConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ModelEvaluation instance using the specified properties. + * Creates a new MigrateResourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluation=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation instance + * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest instance */ - ModelEvaluation.create = function create(properties) { - return new ModelEvaluation(properties); + MigrateResourceRequest.create = function create(properties) { + return new MigrateResourceRequest(properties); }; /** - * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. + * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluation} message ModelEvaluation message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluation.encode = function encode(message, writer) { + MigrateResourceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.metricsSchemaUri); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.sliceDimensions != null && message.sliceDimensions.length) - for (var i = 0; i < message.sliceDimensions.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.sliceDimensions[i]); - if (message.dataItemSchemaUri != null && Object.hasOwnProperty.call(message, "dataItemSchemaUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.dataItemSchemaUri); - if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.annotationSchemaUri); - if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) - $root.google.cloud.aiplatform.v1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.explanationSpecs != null && message.explanationSpecs.length) - for (var i = 0; i < message.explanationSpecs.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.encode(message.explanationSpecs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.displayName); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.migrateMlEngineModelVersionConfig != null && Object.hasOwnProperty.call(message, "migrateMlEngineModelVersionConfig")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.encode(message.migrateMlEngineModelVersionConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.migrateAutomlModelConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlModelConfig")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.encode(message.migrateAutomlModelConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.migrateAutomlDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlDatasetConfig")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.encode(message.migrateAutomlDatasetConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.migrateDataLabelingDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateDataLabelingDatasetConfig")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.encode(message.migrateDataLabelingDatasetConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. + * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluation} message ModelEvaluation message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluation.encodeDelimited = function encodeDelimited(message, writer) { + MigrateResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelEvaluation message from the specified reader or buffer. + * Decodes a MigrateResourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluation.decode = function decode(reader, length) { + MigrateResourceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 10: { - message.displayName = reader.string(); + message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.decode(reader, reader.uint32()); break; } case 2: { - message.metricsSchemaUri = reader.string(); + message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.decode(reader, reader.uint32()); break; } case 3: { - message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.decode(reader, reader.uint32()); break; } case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.sliceDimensions && message.sliceDimensions.length)) - message.sliceDimensions = []; - message.sliceDimensions.push(reader.string()); - break; - } - case 6: { - message.dataItemSchemaUri = reader.string(); - break; - } - case 7: { - message.annotationSchemaUri = reader.string(); - break; - } - case 8: { - message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.decode(reader, reader.uint32()); - break; - } - case 9: { - if (!(message.explanationSpecs && message.explanationSpecs.length)) - message.explanationSpecs = []; - message.explanationSpecs.push($root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.decode(reader, reader.uint32())); - break; - } - case 11: { - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.decode(reader, reader.uint32()); break; } default: @@ -110406,252 +114017,191 @@ }; /** - * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluation.decodeDelimited = function decodeDelimited(reader) { + MigrateResourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelEvaluation message. + * Verifies a MigrateResourceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelEvaluation.verify = function verify(message) { + MigrateResourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - if (!$util.isString(message.metricsSchemaUri)) - return "metricsSchemaUri: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - var error = $root.google.protobuf.Value.verify(message.metrics); - if (error) - return "metrics." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.sliceDimensions != null && message.hasOwnProperty("sliceDimensions")) { - if (!Array.isArray(message.sliceDimensions)) - return "sliceDimensions: array expected"; - for (var i = 0; i < message.sliceDimensions.length; ++i) - if (!$util.isString(message.sliceDimensions[i])) - return "sliceDimensions: string[] expected"; + var properties = {}; + if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify(message.migrateMlEngineModelVersionConfig); + if (error) + return "migrateMlEngineModelVersionConfig." + error; + } } - if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) - if (!$util.isString(message.dataItemSchemaUri)) - return "dataItemSchemaUri: string expected"; - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - if (!$util.isString(message.annotationSchemaUri)) - return "annotationSchemaUri: string expected"; - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { - var error = $root.google.cloud.aiplatform.v1.ModelExplanation.verify(message.modelExplanation); - if (error) - return "modelExplanation." + error; + if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify(message.migrateAutomlModelConfig); + if (error) + return "migrateAutomlModelConfig." + error; + } } - if (message.explanationSpecs != null && message.hasOwnProperty("explanationSpecs")) { - if (!Array.isArray(message.explanationSpecs)) - return "explanationSpecs: array expected"; - for (var i = 0; i < message.explanationSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify(message.explanationSpecs[i]); + if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify(message.migrateAutomlDatasetConfig); if (error) - return "explanationSpecs." + error; + return "migrateAutomlDatasetConfig." + error; } } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; + if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify(message.migrateDataLabelingDatasetConfig); + if (error) + return "migrateDataLabelingDatasetConfig." + error; + } } return null; }; /** - * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest */ - ModelEvaluation.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluation) + MigrateResourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelEvaluation(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.metricsSchemaUri != null) - message.metricsSchemaUri = String(object.metricsSchemaUri); - if (object.metrics != null) { - if (typeof object.metrics !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.metrics: object expected"); - message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.sliceDimensions) { - if (!Array.isArray(object.sliceDimensions)) - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.sliceDimensions: array expected"); - message.sliceDimensions = []; - for (var i = 0; i < object.sliceDimensions.length; ++i) - message.sliceDimensions[i] = String(object.sliceDimensions[i]); + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest(); + if (object.migrateMlEngineModelVersionConfig != null) { + if (typeof object.migrateMlEngineModelVersionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateMlEngineModelVersionConfig: object expected"); + message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.fromObject(object.migrateMlEngineModelVersionConfig); } - if (object.dataItemSchemaUri != null) - message.dataItemSchemaUri = String(object.dataItemSchemaUri); - if (object.annotationSchemaUri != null) - message.annotationSchemaUri = String(object.annotationSchemaUri); - if (object.modelExplanation != null) { - if (typeof object.modelExplanation !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.modelExplanation: object expected"); - message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.fromObject(object.modelExplanation); + if (object.migrateAutomlModelConfig != null) { + if (typeof object.migrateAutomlModelConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateAutomlModelConfig: object expected"); + message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.fromObject(object.migrateAutomlModelConfig); } - if (object.explanationSpecs) { - if (!Array.isArray(object.explanationSpecs)) - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.explanationSpecs: array expected"); - message.explanationSpecs = []; - for (var i = 0; i < object.explanationSpecs.length; ++i) { - if (typeof object.explanationSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.explanationSpecs: object expected"); - message.explanationSpecs[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.fromObject(object.explanationSpecs[i]); - } + if (object.migrateAutomlDatasetConfig != null) { + if (typeof object.migrateAutomlDatasetConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateAutomlDatasetConfig: object expected"); + message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.fromObject(object.migrateAutomlDatasetConfig); } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + if (object.migrateDataLabelingDatasetConfig != null) { + if (typeof object.migrateDataLabelingDatasetConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateDataLabelingDatasetConfig: object expected"); + message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.fromObject(object.migrateDataLabelingDatasetConfig); } return message; }; /** - * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. + * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation} message ModelEvaluation + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest} message MigrateResourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelEvaluation.toObject = function toObject(message, options) { + MigrateResourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sliceDimensions = []; - object.explanationSpecs = []; + if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { + object.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.toObject(message.migrateMlEngineModelVersionConfig, options); + if (options.oneofs) + object.request = "migrateMlEngineModelVersionConfig"; } - if (options.defaults) { - object.name = ""; - object.metricsSchemaUri = ""; - object.metrics = null; - object.createTime = null; - object.dataItemSchemaUri = ""; - object.annotationSchemaUri = ""; - object.modelExplanation = null; - object.displayName = ""; - object.metadata = null; + if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { + object.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.toObject(message.migrateAutomlModelConfig, options); + if (options.oneofs) + object.request = "migrateAutomlModelConfig"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - object.metricsSchemaUri = message.metricsSchemaUri; - if (message.metrics != null && message.hasOwnProperty("metrics")) - object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.sliceDimensions && message.sliceDimensions.length) { - object.sliceDimensions = []; - for (var j = 0; j < message.sliceDimensions.length; ++j) - object.sliceDimensions[j] = message.sliceDimensions[j]; + if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { + object.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.toObject(message.migrateAutomlDatasetConfig, options); + if (options.oneofs) + object.request = "migrateAutomlDatasetConfig"; } - if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) - object.dataItemSchemaUri = message.dataItemSchemaUri; - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - object.annotationSchemaUri = message.annotationSchemaUri; - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) - object.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.toObject(message.modelExplanation, options); - if (message.explanationSpecs && message.explanationSpecs.length) { - object.explanationSpecs = []; - for (var j = 0; j < message.explanationSpecs.length; ++j) - object.explanationSpecs[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.toObject(message.explanationSpecs[j], options); + if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { + object.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.toObject(message.migrateDataLabelingDatasetConfig, options); + if (options.oneofs) + object.request = "migrateDataLabelingDatasetConfig"; } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); return object; }; /** - * Converts this ModelEvaluation to JSON. + * Converts this MigrateResourceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @instance * @returns {Object.} JSON object */ - ModelEvaluation.prototype.toJSON = function toJSON() { + MigrateResourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelEvaluation + * Gets the default type url for MigrateResourceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelEvaluation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluation"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest"; }; - ModelEvaluation.ModelEvaluationExplanationSpec = (function() { + MigrateResourceRequest.MigrateMlEngineModelVersionConfig = (function() { /** - * Properties of a ModelEvaluationExplanationSpec. - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @interface IModelEvaluationExplanationSpec - * @property {string|null} [explanationType] ModelEvaluationExplanationSpec explanationType - * @property {google.cloud.aiplatform.v1.IExplanationSpec|null} [explanationSpec] ModelEvaluationExplanationSpec explanationSpec + * Properties of a MigrateMlEngineModelVersionConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @interface IMigrateMlEngineModelVersionConfig + * @property {string|null} [endpoint] MigrateMlEngineModelVersionConfig endpoint + * @property {string|null} [modelVersion] MigrateMlEngineModelVersionConfig modelVersion + * @property {string|null} [modelDisplayName] MigrateMlEngineModelVersionConfig modelDisplayName */ /** - * Constructs a new ModelEvaluationExplanationSpec. - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @classdesc Represents a ModelEvaluationExplanationSpec. - * @implements IModelEvaluationExplanationSpec + * Constructs a new MigrateMlEngineModelVersionConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @classdesc Represents a MigrateMlEngineModelVersionConfig. + * @implements IMigrateMlEngineModelVersionConfig * @constructor - * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set */ - function ModelEvaluationExplanationSpec(properties) { + function MigrateMlEngineModelVersionConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -110659,89 +114209,103 @@ } /** - * ModelEvaluationExplanationSpec explanationType. - * @member {string} explanationType - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * MigrateMlEngineModelVersionConfig endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @instance */ - ModelEvaluationExplanationSpec.prototype.explanationType = ""; + MigrateMlEngineModelVersionConfig.prototype.endpoint = ""; /** - * ModelEvaluationExplanationSpec explanationSpec. - * @member {google.cloud.aiplatform.v1.IExplanationSpec|null|undefined} explanationSpec - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * MigrateMlEngineModelVersionConfig modelVersion. + * @member {string} modelVersion + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @instance */ - ModelEvaluationExplanationSpec.prototype.explanationSpec = null; + MigrateMlEngineModelVersionConfig.prototype.modelVersion = ""; /** - * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. + * MigrateMlEngineModelVersionConfig modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + */ + MigrateMlEngineModelVersionConfig.prototype.modelDisplayName = ""; + + /** + * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec instance + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig instance */ - ModelEvaluationExplanationSpec.create = function create(properties) { - return new ModelEvaluationExplanationSpec(properties); + MigrateMlEngineModelVersionConfig.create = function create(properties) { + return new MigrateMlEngineModelVersionConfig(properties); }; /** - * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationExplanationSpec.encode = function encode(message, writer) { + MigrateMlEngineModelVersionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.explanationType != null && Object.hasOwnProperty.call(message, "explanationType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.explanationType); - if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) - $root.google.cloud.aiplatform.v1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersion); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); return writer; }; /** - * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationExplanationSpec.encodeDelimited = function encodeDelimited(message, writer) { + MigrateMlEngineModelVersionConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationExplanationSpec.decode = function decode(reader, length) { + MigrateMlEngineModelVersionConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.explanationType = reader.string(); + message.endpoint = reader.string(); break; } case 2: { - message.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.decode(reader, reader.uint32()); + message.modelVersion = reader.string(); + break; + } + case 3: { + message.modelDisplayName = reader.string(); break; } default: @@ -110753,448 +114317,367 @@ }; /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationExplanationSpec.decodeDelimited = function decodeDelimited(reader) { + MigrateMlEngineModelVersionConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelEvaluationExplanationSpec message. + * Verifies a MigrateMlEngineModelVersionConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelEvaluationExplanationSpec.verify = function verify(message) { + MigrateMlEngineModelVersionConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.explanationType != null && message.hasOwnProperty("explanationType")) - if (!$util.isString(message.explanationType)) - return "explanationType: string expected"; - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { - var error = $root.google.cloud.aiplatform.v1.ExplanationSpec.verify(message.explanationSpec); - if (error) - return "explanationSpec." + error; - } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + if (!$util.isString(message.modelVersion)) + return "modelVersion: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; return null; }; /** - * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig */ - ModelEvaluationExplanationSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) + MigrateMlEngineModelVersionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec(); - if (object.explanationType != null) - message.explanationType = String(object.explanationType); - if (object.explanationSpec != null) { - if (typeof object.explanationSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.explanationSpec: object expected"); - message.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.fromObject(object.explanationSpec); - } + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.modelVersion != null) + message.modelVersion = String(object.modelVersion); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); return message; }; /** - * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelEvaluationExplanationSpec.toObject = function toObject(message, options) { + MigrateMlEngineModelVersionConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.explanationType = ""; - object.explanationSpec = null; + object.endpoint = ""; + object.modelVersion = ""; + object.modelDisplayName = ""; } - if (message.explanationType != null && message.hasOwnProperty("explanationType")) - object.explanationType = message.explanationType; - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) - object.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.toObject(message.explanationSpec, options); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + object.modelVersion = message.modelVersion; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; return object; }; /** - * Converts this ModelEvaluationExplanationSpec to JSON. + * Converts this MigrateMlEngineModelVersionConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @instance * @returns {Object.} JSON object */ - ModelEvaluationExplanationSpec.prototype.toJSON = function toJSON() { + MigrateMlEngineModelVersionConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelEvaluationExplanationSpec + * Gets the default type url for MigrateMlEngineModelVersionConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelEvaluationExplanationSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateMlEngineModelVersionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig"; }; - return ModelEvaluationExplanationSpec; + return MigrateMlEngineModelVersionConfig; })(); - return ModelEvaluation; - })(); - - v1.ModelEvaluationSlice = (function() { + MigrateResourceRequest.MigrateAutomlModelConfig = (function() { - /** - * Properties of a ModelEvaluationSlice. - * @memberof google.cloud.aiplatform.v1 - * @interface IModelEvaluationSlice - * @property {string|null} [name] ModelEvaluationSlice name - * @property {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null} [slice] ModelEvaluationSlice slice - * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri - * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics - * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime - */ + /** + * Properties of a MigrateAutomlModelConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @interface IMigrateAutomlModelConfig + * @property {string|null} [model] MigrateAutomlModelConfig model + * @property {string|null} [modelDisplayName] MigrateAutomlModelConfig modelDisplayName + */ - /** - * Constructs a new ModelEvaluationSlice. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelEvaluationSlice. - * @implements IModelEvaluationSlice - * @constructor - * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice=} [properties] Properties to set - */ - function ModelEvaluationSlice(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]]; - } + /** + * Constructs a new MigrateAutomlModelConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @classdesc Represents a MigrateAutomlModelConfig. + * @implements IMigrateAutomlModelConfig + * @constructor + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set + */ + function MigrateAutomlModelConfig(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]]; + } - /** - * ModelEvaluationSlice name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.name = ""; + /** + * MigrateAutomlModelConfig model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + */ + MigrateAutomlModelConfig.prototype.model = ""; - /** - * ModelEvaluationSlice slice. - * @member {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null|undefined} slice - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.slice = null; + /** + * MigrateAutomlModelConfig modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + */ + MigrateAutomlModelConfig.prototype.modelDisplayName = ""; - /** - * ModelEvaluationSlice metricsSchemaUri. - * @member {string} metricsSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.metricsSchemaUri = ""; + /** + * Creates a new MigrateAutomlModelConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig instance + */ + MigrateAutomlModelConfig.create = function create(properties) { + return new MigrateAutomlModelConfig(properties); + }; - /** - * ModelEvaluationSlice metrics. - * @member {google.protobuf.IValue|null|undefined} metrics - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.metrics = null; - - /** - * ModelEvaluationSlice createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.createTime = null; - - /** - * Creates a new ModelEvaluationSlice instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice instance - */ - ModelEvaluationSlice.create = function create(properties) { - return new ModelEvaluationSlice(properties); - }; - - /** - * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ModelEvaluationSlice.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.slice != null && Object.hasOwnProperty.call(message, "slice")) - $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.encode(message.slice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metricsSchemaUri); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlModelConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelDisplayName); + return writer; + }; - /** - * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ModelEvaluationSlice.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlModelConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ModelEvaluationSlice.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.decode(reader, reader.uint32()); - break; - } - case 3: { - message.metricsSchemaUri = reader.string(); - break; - } - case 4: { - message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlModelConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 2: { + message.modelDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ModelEvaluationSlice.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlModelConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ModelEvaluationSlice message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ModelEvaluationSlice.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.slice != null && message.hasOwnProperty("slice")) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify(message.slice); - if (error) - return "slice." + error; - } - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - if (!$util.isString(message.metricsSchemaUri)) - return "metricsSchemaUri: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - var error = $root.google.protobuf.Value.verify(message.metrics); - if (error) - return "metrics." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - return null; - }; + /** + * Verifies a MigrateAutomlModelConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateAutomlModelConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; - /** - * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice - */ - ModelEvaluationSlice.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice) + /** + * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + */ + MigrateAutomlModelConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig(); + if (object.model != null) + message.model = String(object.model); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; + + /** + * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} message MigrateAutomlModelConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateAutomlModelConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelDisplayName = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; return object; - var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice(); - if (object.name != null) - message.name = String(object.name); - if (object.slice != null) { - if (typeof object.slice !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.slice: object expected"); - message.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.fromObject(object.slice); - } - if (object.metricsSchemaUri != null) - message.metricsSchemaUri = String(object.metricsSchemaUri); - if (object.metrics != null) { - if (typeof object.metrics !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics: object expected"); - message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - return message; - }; + }; - /** - * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice} message ModelEvaluationSlice - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ModelEvaluationSlice.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.slice = null; - object.metricsSchemaUri = ""; - object.metrics = null; - object.createTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.slice != null && message.hasOwnProperty("slice")) - object.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.toObject(message.slice, options); - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - object.metricsSchemaUri = message.metricsSchemaUri; - if (message.metrics != null && message.hasOwnProperty("metrics")) - object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - return object; - }; + /** + * Converts this MigrateAutomlModelConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateAutomlModelConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ModelEvaluationSlice to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - * @returns {Object.} JSON object - */ - ModelEvaluationSlice.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for MigrateAutomlModelConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateAutomlModelConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig"; + }; - /** - * Gets the default type url for ModelEvaluationSlice - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ModelEvaluationSlice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice"; - }; + return MigrateAutomlModelConfig; + })(); - ModelEvaluationSlice.Slice = (function() { + MigrateResourceRequest.MigrateAutomlDatasetConfig = (function() { /** - * Properties of a Slice. - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @interface ISlice - * @property {string|null} [dimension] Slice dimension - * @property {string|null} [value] Slice value + * Properties of a MigrateAutomlDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @interface IMigrateAutomlDatasetConfig + * @property {string|null} [dataset] MigrateAutomlDatasetConfig dataset + * @property {string|null} [datasetDisplayName] MigrateAutomlDatasetConfig datasetDisplayName */ /** - * Constructs a new Slice. - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @classdesc Represents a Slice. - * @implements ISlice + * Constructs a new MigrateAutomlDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @classdesc Represents a MigrateAutomlDatasetConfig. + * @implements IMigrateAutomlDatasetConfig * @constructor - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set */ - function Slice(properties) { + function MigrateAutomlDatasetConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111202,89 +114685,89 @@ } /** - * Slice dimension. - * @member {string} dimension - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * MigrateAutomlDatasetConfig dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @instance */ - Slice.prototype.dimension = ""; + MigrateAutomlDatasetConfig.prototype.dataset = ""; /** - * Slice value. - * @member {string} value - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * MigrateAutomlDatasetConfig datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @instance */ - Slice.prototype.value = ""; + MigrateAutomlDatasetConfig.prototype.datasetDisplayName = ""; /** - * Creates a new Slice instance using the specified properties. + * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice instance + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig instance */ - Slice.create = function create(properties) { - return new Slice(properties); + MigrateAutomlDatasetConfig.create = function create(properties) { + return new MigrateAutomlDatasetConfig(properties); }; /** - * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Slice.encode = function encode(message, writer) { + MigrateAutomlDatasetConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimension); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); return writer; }; /** - * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Slice.encodeDelimited = function encodeDelimited(message, writer) { + MigrateAutomlDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Slice message from the specified reader or buffer. + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Slice.decode = function decode(reader, length) { + MigrateAutomlDatasetConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dimension = reader.string(); + message.dataset = reader.string(); break; } case 2: { - message.value = reader.string(); + message.datasetDisplayName = reader.string(); break; } default: @@ -111296,668 +114779,610 @@ }; /** - * Decodes a Slice message from the specified reader or buffer, length delimited. + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Slice.decodeDelimited = function decodeDelimited(reader) { + MigrateAutomlDatasetConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Slice message. + * Verifies a MigrateAutomlDatasetConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Slice.verify = function verify(message) { + MigrateAutomlDatasetConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dimension != null && message.hasOwnProperty("dimension")) - if (!$util.isString(message.dimension)) - return "dimension: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; return null; }; /** - * Creates a Slice message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig */ - Slice.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice) + MigrateAutomlDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice(); - if (object.dimension != null) - message.dimension = String(object.dimension); - if (object.value != null) - message.value = String(object.value); + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); return message; }; /** - * Creates a plain object from a Slice message. Also converts values to other types if specified. + * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} message Slice + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Slice.toObject = function toObject(message, options) { + MigrateAutomlDatasetConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dimension = ""; - object.value = ""; + object.dataset = ""; + object.datasetDisplayName = ""; } - if (message.dimension != null && message.hasOwnProperty("dimension")) - object.dimension = message.dimension; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; return object; }; /** - * Converts this Slice to JSON. + * Converts this MigrateAutomlDatasetConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @instance * @returns {Object.} JSON object */ - Slice.prototype.toJSON = function toJSON() { + MigrateAutomlDatasetConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Slice + * Gets the default type url for MigrateAutomlDatasetConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Slice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateAutomlDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig"; }; - return Slice; + return MigrateAutomlDatasetConfig; })(); - return ModelEvaluationSlice; - })(); + MigrateResourceRequest.MigrateDataLabelingDatasetConfig = (function() { - v1.ModelService = (function() { + /** + * Properties of a MigrateDataLabelingDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @interface IMigrateDataLabelingDatasetConfig + * @property {string|null} [dataset] MigrateDataLabelingDatasetConfig dataset + * @property {string|null} [datasetDisplayName] MigrateDataLabelingDatasetConfig datasetDisplayName + * @property {Array.|null} [migrateDataLabelingAnnotatedDatasetConfigs] MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs + */ - /** - * Constructs a new ModelService service. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function ModelService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Constructs a new MigrateDataLabelingDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @classdesc Represents a MigrateDataLabelingDatasetConfig. + * @implements IMigrateDataLabelingDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + */ + function MigrateDataLabelingDatasetConfig(properties) { + this.migrateDataLabelingAnnotatedDatasetConfigs = []; + 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]]; + } - (ModelService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelService; + /** + * MigrateDataLabelingDatasetConfig dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.dataset = ""; - /** - * Creates new ModelService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {ModelService} RPC service. Useful where requests and/or responses are streamed. - */ - ModelService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + /** + * MigrateDataLabelingDatasetConfig datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.datasetDisplayName = ""; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|uploadModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef UploadModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. + * @member {Array.} migrateDataLabelingAnnotatedDatasetConfigs + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.migrateDataLabelingAnnotatedDatasetConfigs = $util.emptyArray; - /** - * Calls UploadModel. - * @function uploadModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IUploadModelRequest} request UploadModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.UploadModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.uploadModel = function uploadModel(request, callback) { - return this.rpcCall(uploadModel, $root.google.cloud.aiplatform.v1.UploadModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UploadModel" }); + /** + * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig instance + */ + MigrateDataLabelingDatasetConfig.create = function create(properties) { + return new MigrateDataLabelingDatasetConfig(properties); + }; - /** - * Calls UploadModel. - * @function uploadModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IUploadModelRequest} request UploadModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); + if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.migrateDataLabelingAnnotatedDatasetConfigs.length) + for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.encode(message.migrateDataLabelingAnnotatedDatasetConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef GetModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Model} [response] Model - */ + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls GetModel. - * @function getModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelRequest} request GetModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.GetModelCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.getModel = function getModel(request, callback) { - return this.rpcCall(getModel, $root.google.cloud.aiplatform.v1.GetModelRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); - }, "name", { value: "GetModel" }); + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingDatasetConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataset = reader.string(); + break; + } + case 2: { + message.datasetDisplayName = reader.string(); + break; + } + case 3: { + if (!(message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length)) + message.migrateDataLabelingAnnotatedDatasetConfigs = []; + message.migrateDataLabelingAnnotatedDatasetConfigs.push($root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls GetModel. - * @function getModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelRequest} request GetModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModels}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ListModelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListModelsResponse} [response] ListModelsResponse - */ + /** + * Verifies a MigrateDataLabelingDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateDataLabelingDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.hasOwnProperty("migrateDataLabelingAnnotatedDatasetConfigs")) { + if (!Array.isArray(message.migrateDataLabelingAnnotatedDatasetConfigs)) + return "migrateDataLabelingAnnotatedDatasetConfigs: array expected"; + for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify(message.migrateDataLabelingAnnotatedDatasetConfigs[i]); + if (error) + return "migrateDataLabelingAnnotatedDatasetConfigs." + error; + } + } + return null; + }; - /** - * Calls ListModels. - * @function listModels - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelsRequest} request ListModelsRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ListModelsCallback} callback Node-style callback called with the error, if any, and ListModelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.listModels = function listModels(request, callback) { - return this.rpcCall(listModels, $root.google.cloud.aiplatform.v1.ListModelsRequest, $root.google.cloud.aiplatform.v1.ListModelsResponse, request, callback); - }, "name", { value: "ListModels" }); + /** + * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + */ + MigrateDataLabelingDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + if (object.migrateDataLabelingAnnotatedDatasetConfigs) { + if (!Array.isArray(object.migrateDataLabelingAnnotatedDatasetConfigs)) + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: array expected"); + message.migrateDataLabelingAnnotatedDatasetConfigs = []; + for (var i = 0; i < object.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { + if (typeof object.migrateDataLabelingAnnotatedDatasetConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: object expected"); + message.migrateDataLabelingAnnotatedDatasetConfigs[i] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.fromObject(object.migrateDataLabelingAnnotatedDatasetConfigs[i]); + } + } + return message; + }; - /** - * Calls ListModels. - * @function listModels - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelsRequest} request ListModelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateDataLabelingDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.migrateDataLabelingAnnotatedDatasetConfigs = []; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + if (message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length) { + object.migrateDataLabelingAnnotatedDatasetConfigs = []; + for (var j = 0; j < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++j) + object.migrateDataLabelingAnnotatedDatasetConfigs[j] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.toObject(message.migrateDataLabelingAnnotatedDatasetConfigs[j], options); + } + return object; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelVersions}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ListModelVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} [response] ListModelVersionsResponse - */ + /** + * Converts this MigrateDataLabelingDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateDataLabelingDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls ListModelVersions. - * @function listModelVersions - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback} callback Node-style callback called with the error, if any, and ListModelVersionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.listModelVersions = function listModelVersions(request, callback) { - return this.rpcCall(listModelVersions, $root.google.cloud.aiplatform.v1.ListModelVersionsRequest, $root.google.cloud.aiplatform.v1.ListModelVersionsResponse, request, callback); - }, "name", { value: "ListModelVersions" }); + /** + * Gets the default type url for MigrateDataLabelingDatasetConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateDataLabelingDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig"; + }; - /** - * Calls ListModelVersions. - * @function listModelVersions - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig = (function() { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|updateModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef UpdateModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Model} [response] Model - */ + /** + * Properties of a MigrateDataLabelingAnnotatedDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @interface IMigrateDataLabelingAnnotatedDatasetConfig + * @property {string|null} [annotatedDataset] MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset + */ - /** - * Calls UpdateModel. - * @function updateModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} request UpdateModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.UpdateModelCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.updateModel = function updateModel(request, callback) { - return this.rpcCall(updateModel, $root.google.cloud.aiplatform.v1.UpdateModelRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); - }, "name", { value: "UpdateModel" }); + /** + * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @classdesc Represents a MigrateDataLabelingAnnotatedDatasetConfig. + * @implements IMigrateDataLabelingAnnotatedDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + */ + function MigrateDataLabelingAnnotatedDatasetConfig(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]]; + } - /** - * Calls UpdateModel. - * @function updateModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} request UpdateModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef DeleteModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteModel. - * @function deleteModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} request DeleteModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.DeleteModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.deleteModel = function deleteModel(request, callback) { - return this.rpcCall(deleteModel, $root.google.cloud.aiplatform.v1.DeleteModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModel" }); - - /** - * Calls DeleteModel. - * @function deleteModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} request DeleteModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModelVersion}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef DeleteModelVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteModelVersion. - * @function deleteModelVersion - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.deleteModelVersion = function deleteModelVersion(request, callback) { - return this.rpcCall(deleteModelVersion, $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModelVersion" }); - - /** - * Calls DeleteModelVersion. - * @function deleteModelVersion - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|mergeVersionAliases}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef MergeVersionAliasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Model} [response] Model - */ - - /** - * Calls MergeVersionAliases. - * @function mergeVersionAliases - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.mergeVersionAliases = function mergeVersionAliases(request, callback) { - return this.rpcCall(mergeVersionAliases, $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); - }, "name", { value: "MergeVersionAliases" }); - - /** - * Calls MergeVersionAliases. - * @function mergeVersionAliases - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|exportModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ExportModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ExportModel. - * @function exportModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IExportModelRequest} request ExportModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ExportModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.exportModel = function exportModel(request, callback) { - return this.rpcCall(exportModel, $root.google.cloud.aiplatform.v1.ExportModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportModel" }); - - /** - * Calls ExportModel. - * @function exportModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IExportModelRequest} request ExportModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|importModelEvaluation}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ImportModelEvaluationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ModelEvaluation} [response] ModelEvaluation - */ - - /** - * Calls ImportModelEvaluation. - * @function importModelEvaluation - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ImportModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.importModelEvaluation = function importModelEvaluation(request, callback) { - return this.rpcCall(importModelEvaluation, $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest, $root.google.cloud.aiplatform.v1.ModelEvaluation, request, callback); - }, "name", { value: "ImportModelEvaluation" }); - - /** - * Calls ImportModelEvaluation. - * @function importModelEvaluation - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportModelEvaluationSlices}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef BatchImportModelEvaluationSlicesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} [response] BatchImportModelEvaluationSlicesResponse - */ - - /** - * Calls BatchImportModelEvaluationSlices. - * @function batchImportModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.batchImportModelEvaluationSlices = function batchImportModelEvaluationSlices(request, callback) { - return this.rpcCall(batchImportModelEvaluationSlices, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, request, callback); - }, "name", { value: "BatchImportModelEvaluationSlices" }); - - /** - * Calls BatchImportModelEvaluationSlices. - * @function batchImportModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. + * @member {string} annotatedDataset + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @instance + */ + MigrateDataLabelingAnnotatedDatasetConfig.prototype.annotatedDataset = ""; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluation}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef GetModelEvaluationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ModelEvaluation} [response] ModelEvaluation - */ + /** + * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig instance + */ + MigrateDataLabelingAnnotatedDatasetConfig.create = function create(properties) { + return new MigrateDataLabelingAnnotatedDatasetConfig(properties); + }; - /** - * Calls GetModelEvaluation. - * @function getModelEvaluation - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.GetModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.getModelEvaluation = function getModelEvaluation(request, callback) { - return this.rpcCall(getModelEvaluation, $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest, $root.google.cloud.aiplatform.v1.ModelEvaluation, request, callback); - }, "name", { value: "GetModelEvaluation" }); + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingAnnotatedDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); + return writer; + }; - /** - * Calls GetModelEvaluation. - * @function getModelEvaluation - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingAnnotatedDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluations}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ListModelEvaluationsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} [response] ListModelEvaluationsResponse - */ + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingAnnotatedDatasetConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.annotatedDataset = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls ListModelEvaluations. - * @function listModelEvaluations - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ListModelEvaluationsCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.listModelEvaluations = function listModelEvaluations(request, callback) { - return this.rpcCall(listModelEvaluations, $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse, request, callback); - }, "name", { value: "ListModelEvaluations" }); + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingAnnotatedDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls ListModelEvaluations. - * @function listModelEvaluations - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateDataLabelingAnnotatedDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + if (!$util.isString(message.annotatedDataset)) + return "annotatedDataset: string expected"; + return null; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluationSlice}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef GetModelEvaluationSliceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice} [response] ModelEvaluationSlice - */ + /** + * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + */ + MigrateDataLabelingAnnotatedDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + if (object.annotatedDataset != null) + message.annotatedDataset = String(object.annotatedDataset); + return message; + }; - /** - * Calls GetModelEvaluationSlice. - * @function getModelEvaluationSlice - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSliceCallback} callback Node-style callback called with the error, if any, and ModelEvaluationSlice - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.getModelEvaluationSlice = function getModelEvaluationSlice(request, callback) { - return this.rpcCall(getModelEvaluationSlice, $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, $root.google.cloud.aiplatform.v1.ModelEvaluationSlice, request, callback); - }, "name", { value: "GetModelEvaluationSlice" }); + /** + * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateDataLabelingAnnotatedDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.annotatedDataset = ""; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + object.annotatedDataset = message.annotatedDataset; + return object; + }; - /** - * Calls GetModelEvaluationSlice. - * @function getModelEvaluationSlice - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateDataLabelingAnnotatedDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluationSlices}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ListModelEvaluationSlicesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} [response] ListModelEvaluationSlicesResponse - */ + /** + * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateDataLabelingAnnotatedDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig"; + }; - /** - * Calls ListModelEvaluationSlices. - * @function listModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.listModelEvaluationSlices = function listModelEvaluationSlices(request, callback) { - return this.rpcCall(listModelEvaluationSlices, $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse, request, callback); - }, "name", { value: "ListModelEvaluationSlices" }); + return MigrateDataLabelingAnnotatedDatasetConfig; + })(); - /** - * Calls ListModelEvaluationSlices. - * @function listModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return MigrateDataLabelingDatasetConfig; + })(); - return ModelService; + return MigrateResourceRequest; })(); - v1.UploadModelRequest = (function() { + v1.BatchMigrateResourcesResponse = (function() { /** - * Properties of an UploadModelRequest. + * Properties of a BatchMigrateResourcesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IUploadModelRequest - * @property {string|null} [parent] UploadModelRequest parent - * @property {string|null} [parentModel] UploadModelRequest parentModel - * @property {string|null} [modelId] UploadModelRequest modelId - * @property {google.cloud.aiplatform.v1.IModel|null} [model] UploadModelRequest model - * @property {string|null} [serviceAccount] UploadModelRequest serviceAccount + * @interface IBatchMigrateResourcesResponse + * @property {Array.|null} [migrateResourceResponses] BatchMigrateResourcesResponse migrateResourceResponses */ /** - * Constructs a new UploadModelRequest. + * Constructs a new BatchMigrateResourcesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UploadModelRequest. - * @implements IUploadModelRequest + * @classdesc Represents a BatchMigrateResourcesResponse. + * @implements IBatchMigrateResourcesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IUploadModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse=} [properties] Properties to set */ - function UploadModelRequest(properties) { + function BatchMigrateResourcesResponse(properties) { + this.migrateResourceResponses = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111965,131 +115390,78 @@ } /** - * UploadModelRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.parent = ""; - - /** - * UploadModelRequest parentModel. - * @member {string} parentModel - * @memberof google.cloud.aiplatform.v1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.parentModel = ""; - - /** - * UploadModelRequest modelId. - * @member {string} modelId - * @memberof google.cloud.aiplatform.v1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.modelId = ""; - - /** - * UploadModelRequest model. - * @member {google.cloud.aiplatform.v1.IModel|null|undefined} model - * @memberof google.cloud.aiplatform.v1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.model = null; - - /** - * UploadModelRequest serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * BatchMigrateResourcesResponse migrateResourceResponses. + * @member {Array.} migrateResourceResponses + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @instance */ - UploadModelRequest.prototype.serviceAccount = ""; + BatchMigrateResourcesResponse.prototype.migrateResourceResponses = $util.emptyArray; /** - * Creates a new UploadModelRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse instance */ - UploadModelRequest.create = function create(properties) { - return new UploadModelRequest(properties); + BatchMigrateResourcesResponse.create = function create(properties) { + return new BatchMigrateResourcesResponse(properties); }; /** - * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelRequest.encode = function encode(message, writer) { + BatchMigrateResourcesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - $root.google.cloud.aiplatform.v1.Model.encode(message.model, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parentModel); - if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelId); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceAccount); + if (message.migrateResourceResponses != null && message.migrateResourceResponses.length) + for (var i = 0; i < message.migrateResourceResponses.length; ++i) + $root.google.cloud.aiplatform.v1.MigrateResourceResponse.encode(message.migrateResourceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelRequest.decode = function decode(reader, length) { + BatchMigrateResourcesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UploadModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 4: { - message.parentModel = reader.string(); - break; - } - case 5: { - message.modelId = reader.string(); - break; - } - case 2: { - message.model = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); - break; - } - case 6: { - message.serviceAccount = reader.string(); + if (!(message.migrateResourceResponses && message.migrateResourceResponses.length)) + message.migrateResourceResponses = []; + message.migrateResourceResponses.push($root.google.cloud.aiplatform.v1.MigrateResourceResponse.decode(reader, reader.uint32())); break; } default: @@ -112101,160 +115473,141 @@ }; /** - * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelRequest.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelRequest message. + * Verifies a BatchMigrateResourcesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelRequest.verify = function verify(message) { + BatchMigrateResourcesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - if (!$util.isString(message.parentModel)) - return "parentModel: string expected"; - if (message.modelId != null && message.hasOwnProperty("modelId")) - if (!$util.isString(message.modelId)) - return "modelId: string expected"; - if (message.model != null && message.hasOwnProperty("model")) { - var error = $root.google.cloud.aiplatform.v1.Model.verify(message.model); - if (error) - return "model." + error; + if (message.migrateResourceResponses != null && message.hasOwnProperty("migrateResourceResponses")) { + if (!Array.isArray(message.migrateResourceResponses)) + return "migrateResourceResponses: array expected"; + for (var i = 0; i < message.migrateResourceResponses.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.verify(message.migrateResourceResponses[i]); + if (error) + return "migrateResourceResponses." + error; + } } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; return null; }; /** - * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse */ - UploadModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelRequest) + BatchMigrateResourcesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.UploadModelRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.parentModel != null) - message.parentModel = String(object.parentModel); - if (object.modelId != null) - message.modelId = String(object.modelId); - if (object.model != null) { - if (typeof object.model !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UploadModelRequest.model: object expected"); - message.model = $root.google.cloud.aiplatform.v1.Model.fromObject(object.model); + var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse(); + if (object.migrateResourceResponses) { + if (!Array.isArray(object.migrateResourceResponses)) + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.migrateResourceResponses: array expected"); + message.migrateResourceResponses = []; + for (var i = 0; i < object.migrateResourceResponses.length; ++i) { + if (typeof object.migrateResourceResponses[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.migrateResourceResponses: object expected"); + message.migrateResourceResponses[i] = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.fromObject(object.migrateResourceResponses[i]); + } } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); return message; }; /** - * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.UploadModelRequest} message UploadModelRequest + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} message BatchMigrateResourcesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelRequest.toObject = function toObject(message, options) { + BatchMigrateResourcesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.model = null; - object.parentModel = ""; - object.modelId = ""; - object.serviceAccount = ""; + if (options.arrays || options.defaults) + object.migrateResourceResponses = []; + if (message.migrateResourceResponses && message.migrateResourceResponses.length) { + object.migrateResourceResponses = []; + for (var j = 0; j < message.migrateResourceResponses.length; ++j) + object.migrateResourceResponses[j] = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.toObject(message.migrateResourceResponses[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.model != null && message.hasOwnProperty("model")) - object.model = $root.google.cloud.aiplatform.v1.Model.toObject(message.model, options); - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - object.parentModel = message.parentModel; - if (message.modelId != null && message.hasOwnProperty("modelId")) - object.modelId = message.modelId; - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; return object; }; /** - * Converts this UploadModelRequest to JSON. + * Converts this BatchMigrateResourcesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @instance * @returns {Object.} JSON object */ - UploadModelRequest.prototype.toJSON = function toJSON() { + BatchMigrateResourcesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UploadModelRequest + * Gets the default type url for BatchMigrateResourcesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UploadModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchMigrateResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesResponse"; }; - return UploadModelRequest; + return BatchMigrateResourcesResponse; })(); - v1.UploadModelOperationMetadata = (function() { + v1.MigrateResourceResponse = (function() { /** - * Properties of an UploadModelOperationMetadata. + * Properties of a MigrateResourceResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IUploadModelOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UploadModelOperationMetadata genericMetadata + * @interface IMigrateResourceResponse + * @property {string|null} [dataset] MigrateResourceResponse dataset + * @property {string|null} [model] MigrateResourceResponse model + * @property {google.cloud.aiplatform.v1.IMigratableResource|null} [migratableResource] MigrateResourceResponse migratableResource */ /** - * Constructs a new UploadModelOperationMetadata. + * Constructs a new MigrateResourceResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UploadModelOperationMetadata. - * @implements IUploadModelOperationMetadata + * @classdesc Represents a MigrateResourceResponse. + * @implements IMigrateResourceResponse * @constructor - * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse=} [properties] Properties to set */ - function UploadModelOperationMetadata(properties) { + function MigrateResourceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112262,75 +115615,117 @@ } /** - * UploadModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * MigrateResourceResponse dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @instance */ - UploadModelOperationMetadata.prototype.genericMetadata = null; + MigrateResourceResponse.prototype.dataset = null; /** - * Creates a new UploadModelOperationMetadata instance using the specified properties. + * MigrateResourceResponse model. + * @member {string|null|undefined} model + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @instance + */ + MigrateResourceResponse.prototype.model = null; + + /** + * MigrateResourceResponse migratableResource. + * @member {google.cloud.aiplatform.v1.IMigratableResource|null|undefined} migratableResource + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @instance + */ + MigrateResourceResponse.prototype.migratableResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MigrateResourceResponse migratedResource. + * @member {"dataset"|"model"|undefined} migratedResource + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @instance + */ + Object.defineProperty(MigrateResourceResponse.prototype, "migratedResource", { + get: $util.oneOfGetter($oneOfFields = ["dataset", "model"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MigrateResourceResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse instance */ - UploadModelOperationMetadata.create = function create(properties) { - return new UploadModelOperationMetadata(properties); + MigrateResourceResponse.create = function create(properties) { + return new MigrateResourceResponse(properties); }; /** - * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. + * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelOperationMetadata.encode = function encode(message, writer) { + MigrateResourceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); + if (message.migratableResource != null && Object.hasOwnProperty.call(message, "migratableResource")) + $root.google.cloud.aiplatform.v1.MigratableResource.encode(message.migratableResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. + * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + MigrateResourceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * Decodes a MigrateResourceResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelOperationMetadata.decode = function decode(reader, length) { + MigrateResourceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.dataset = reader.string(); + break; + } + case 2: { + message.model = reader.string(); + break; + } + case 3: { + message.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.decode(reader, reader.uint32()); break; } default: @@ -112342,128 +115737,156 @@ }; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + MigrateResourceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelOperationMetadata message. + * Verifies a MigrateResourceResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelOperationMetadata.verify = function verify(message) { + MigrateResourceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + var properties = {}; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + properties.migratedResource = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.model != null && message.hasOwnProperty("model")) { + if (properties.migratedResource === 1) + return "migratedResource: multiple values"; + properties.migratedResource = 1; + if (!$util.isString(message.model)) + return "model: string expected"; + } + if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.verify(message.migratableResource); if (error) - return "genericMetadata." + error; + return "migratableResource." + error; } return null; }; /** - * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse */ - UploadModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata) + MigrateResourceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UploadModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceResponse(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.model != null) + message.model = String(object.model); + if (object.migratableResource != null) { + if (typeof object.migratableResource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceResponse.migratableResource: object expected"); + message.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.fromObject(object.migratableResource); } return message; }; /** - * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1.UploadModelOperationMetadata} message UploadModelOperationMetadata + * @param {google.cloud.aiplatform.v1.MigrateResourceResponse} message MigrateResourceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelOperationMetadata.toObject = function toObject(message, options) { + MigrateResourceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.migratableResource = null; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.migratedResource = "dataset"; + } + if (message.model != null && message.hasOwnProperty("model")) { + object.model = message.model; + if (options.oneofs) + object.migratedResource = "model"; + } + if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) + object.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.toObject(message.migratableResource, options); return object; }; /** - * Converts this UploadModelOperationMetadata to JSON. + * Converts this MigrateResourceResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @instance * @returns {Object.} JSON object */ - UploadModelOperationMetadata.prototype.toJSON = function toJSON() { + MigrateResourceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UploadModelOperationMetadata + * Gets the default type url for MigrateResourceResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UploadModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateResourceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceResponse"; }; - return UploadModelOperationMetadata; + return MigrateResourceResponse; })(); - v1.UploadModelResponse = (function() { + v1.BatchMigrateResourcesOperationMetadata = (function() { /** - * Properties of an UploadModelResponse. + * Properties of a BatchMigrateResourcesOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IUploadModelResponse - * @property {string|null} [model] UploadModelResponse model - * @property {string|null} [modelVersionId] UploadModelResponse modelVersionId + * @interface IBatchMigrateResourcesOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] BatchMigrateResourcesOperationMetadata genericMetadata + * @property {Array.|null} [partialResults] BatchMigrateResourcesOperationMetadata partialResults */ /** - * Constructs a new UploadModelResponse. + * Constructs a new BatchMigrateResourcesOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UploadModelResponse. - * @implements IUploadModelResponse + * @classdesc Represents a BatchMigrateResourcesOperationMetadata. + * @implements IBatchMigrateResourcesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IUploadModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set */ - function UploadModelResponse(properties) { + function BatchMigrateResourcesOperationMetadata(properties) { + this.partialResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112471,89 +115894,92 @@ } /** - * UploadModelResponse model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * BatchMigrateResourcesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @instance */ - UploadModelResponse.prototype.model = ""; + BatchMigrateResourcesOperationMetadata.prototype.genericMetadata = null; /** - * UploadModelResponse modelVersionId. - * @member {string} modelVersionId - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * BatchMigrateResourcesOperationMetadata partialResults. + * @member {Array.} partialResults + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @instance */ - UploadModelResponse.prototype.modelVersionId = ""; + BatchMigrateResourcesOperationMetadata.prototype.partialResults = $util.emptyArray; /** - * Creates a new UploadModelResponse instance using the specified properties. + * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IUploadModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata instance */ - UploadModelResponse.create = function create(properties) { - return new UploadModelResponse(properties); + BatchMigrateResourcesOperationMetadata.create = function create(properties) { + return new BatchMigrateResourcesOperationMetadata(properties); }; /** - * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelResponse.encode = function encode(message, writer) { + BatchMigrateResourcesOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.partialResults != null && message.partialResults.length) + for (var i = 0; i < message.partialResults.length; ++i) + $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.encode(message.partialResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelResponse message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelResponse.decode = function decode(reader, length) { + BatchMigrateResourcesOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UploadModelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.model = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } case 2: { - message.modelVersionId = reader.string(); + if (!(message.partialResults && message.partialResults.length)) + message.partialResults = []; + message.partialResults.push($root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.decode(reader, reader.uint32())); break; } default: @@ -112565,339 +115991,479 @@ }; /** - * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelResponse.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelResponse message. + * Verifies a BatchMigrateResourcesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelResponse.verify = function verify(message) { + BatchMigrateResourcesOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - if (!$util.isString(message.modelVersionId)) - return "modelVersionId: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.partialResults != null && message.hasOwnProperty("partialResults")) { + if (!Array.isArray(message.partialResults)) + return "partialResults: array expected"; + for (var i = 0; i < message.partialResults.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify(message.partialResults[i]); + if (error) + return "partialResults." + error; + } + } return null; }; /** - * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata */ - UploadModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelResponse) + BatchMigrateResourcesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.UploadModelResponse(); - if (object.model != null) - message.model = String(object.model); - if (object.modelVersionId != null) - message.modelVersionId = String(object.modelVersionId); + var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.partialResults) { + if (!Array.isArray(object.partialResults)) + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.partialResults: array expected"); + message.partialResults = []; + for (var i = 0; i < object.partialResults.length; ++i) { + if (typeof object.partialResults[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.partialResults: object expected"); + message.partialResults[i] = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.fromObject(object.partialResults[i]); + } + } return message; }; /** - * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.UploadModelResponse} message UploadModelResponse + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelResponse.toObject = function toObject(message, options) { + BatchMigrateResourcesOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.model = ""; - object.modelVersionId = ""; + if (options.arrays || options.defaults) + object.partialResults = []; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.partialResults && message.partialResults.length) { + object.partialResults = []; + for (var j = 0; j < message.partialResults.length; ++j) + object.partialResults[j] = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.toObject(message.partialResults[j], options); } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - object.modelVersionId = message.modelVersionId; return object; }; /** - * Converts this UploadModelResponse to JSON. + * Converts this BatchMigrateResourcesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @instance * @returns {Object.} JSON object */ - UploadModelResponse.prototype.toJSON = function toJSON() { + BatchMigrateResourcesOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UploadModelResponse + * Gets the default type url for BatchMigrateResourcesOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UploadModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchMigrateResourcesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata"; }; - return UploadModelResponse; - })(); + BatchMigrateResourcesOperationMetadata.PartialResult = (function() { - v1.GetModelRequest = (function() { + /** + * Properties of a PartialResult. + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @interface IPartialResult + * @property {google.rpc.IStatus|null} [error] PartialResult error + * @property {string|null} [model] PartialResult model + * @property {string|null} [dataset] PartialResult dataset + * @property {google.cloud.aiplatform.v1.IMigrateResourceRequest|null} [request] PartialResult request + */ - /** - * Properties of a GetModelRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelRequest - * @property {string|null} [name] GetModelRequest name - */ + /** + * Constructs a new PartialResult. + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @classdesc Represents a PartialResult. + * @implements IPartialResult + * @constructor + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set + */ + function PartialResult(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]]; + } - /** - * Constructs a new GetModelRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelRequest. - * @implements IGetModelRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelRequest=} [properties] Properties to set - */ - function GetModelRequest(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]]; - } + /** + * PartialResult error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.error = null; - /** - * GetModelRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @instance - */ - GetModelRequest.prototype.name = ""; + /** + * PartialResult model. + * @member {string|null|undefined} model + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.model = null; - /** - * Creates a new GetModelRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest instance - */ - GetModelRequest.create = function create(properties) { - return new GetModelRequest(properties); - }; + /** + * PartialResult dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.dataset = null; - /** - * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelRequest} message GetModelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * PartialResult request. + * @member {google.cloud.aiplatform.v1.IMigrateResourceRequest|null|undefined} request + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.request = null; - /** - * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelRequest} message GetModelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes a GetModelRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * PartialResult result. + * @member {"error"|"model"|"dataset"|undefined} result + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + Object.defineProperty(PartialResult.prototype, "result", { + get: $util.oneOfGetter($oneOfFields = ["error", "model", "dataset"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PartialResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult instance + */ + PartialResult.create = function create(properties) { + return new PartialResult(properties); + }; + + /** + * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PartialResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataset); + return writer; + }; + + /** + * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PartialResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PartialResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PartialResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 3: { + message.model = reader.string(); + break; + } + case 4: { + message.dataset = reader.string(); + break; + } + case 1: { + message.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a PartialResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PartialResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a GetModelRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetModelRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a PartialResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PartialResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.error != null && message.hasOwnProperty("error")) { + properties.result = 1; + { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.model != null && message.hasOwnProperty("model")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + if (!$util.isString(message.model)) + return "model: string expected"; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.request != null && message.hasOwnProperty("request")) { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.verify(message.request); + if (error) + return "request." + error; + } + return null; + }; - /** - * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest - */ - GetModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelRequest) + /** + * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult + */ + PartialResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.model != null) + message.model = String(object.model); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.request: object expected"); + message.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.fromObject(object.request); + } + return message; + }; + + /** + * Creates a plain object from a PartialResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} message PartialResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PartialResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.request = null; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.toObject(message.request, options); + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (options.oneofs) + object.result = "error"; + } + if (message.model != null && message.hasOwnProperty("model")) { + object.model = message.model; + if (options.oneofs) + object.result = "model"; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.result = "dataset"; + } return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {google.cloud.aiplatform.v1.GetModelRequest} message GetModelRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetModelRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this PartialResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + * @returns {Object.} JSON object + */ + PartialResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GetModelRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @instance - * @returns {Object.} JSON object - */ - GetModelRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for PartialResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PartialResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult"; + }; - /** - * Gets the default type url for GetModelRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelRequest"; - }; + return PartialResult; + })(); - return GetModelRequest; + return BatchMigrateResourcesOperationMetadata; })(); - v1.ListModelsRequest = (function() { + v1.ModelEvaluation = (function() { /** - * Properties of a ListModelsRequest. + * Properties of a ModelEvaluation. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelsRequest - * @property {string|null} [parent] ListModelsRequest parent - * @property {string|null} [filter] ListModelsRequest filter - * @property {number|null} [pageSize] ListModelsRequest pageSize - * @property {string|null} [pageToken] ListModelsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelsRequest readMask - * @property {string|null} [orderBy] ListModelsRequest orderBy + * @interface IModelEvaluation + * @property {string|null} [name] ModelEvaluation name + * @property {string|null} [displayName] ModelEvaluation displayName + * @property {string|null} [metricsSchemaUri] ModelEvaluation metricsSchemaUri + * @property {google.protobuf.IValue|null} [metrics] ModelEvaluation metrics + * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluation createTime + * @property {Array.|null} [sliceDimensions] ModelEvaluation sliceDimensions + * @property {string|null} [dataItemSchemaUri] ModelEvaluation dataItemSchemaUri + * @property {string|null} [annotationSchemaUri] ModelEvaluation annotationSchemaUri + * @property {google.cloud.aiplatform.v1.IModelExplanation|null} [modelExplanation] ModelEvaluation modelExplanation + * @property {Array.|null} [explanationSpecs] ModelEvaluation explanationSpecs + * @property {google.protobuf.IValue|null} [metadata] ModelEvaluation metadata */ /** - * Constructs a new ListModelsRequest. + * Constructs a new ModelEvaluation. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelsRequest. - * @implements IListModelsRequest + * @classdesc Represents a ModelEvaluation. + * @implements IModelEvaluation * @constructor - * @param {google.cloud.aiplatform.v1.IListModelsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelEvaluation=} [properties] Properties to set */ - function ListModelsRequest(properties) { + function ModelEvaluation(properties) { + this.sliceDimensions = []; + this.explanationSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112905,145 +116471,221 @@ } /** - * ListModelsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.parent = ""; + ModelEvaluation.prototype.name = ""; /** - * ListModelsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.filter = ""; + ModelEvaluation.prototype.displayName = ""; /** - * ListModelsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation metricsSchemaUri. + * @member {string} metricsSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.pageSize = 0; + ModelEvaluation.prototype.metricsSchemaUri = ""; /** - * ListModelsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation metrics. + * @member {google.protobuf.IValue|null|undefined} metrics + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.pageToken = ""; + ModelEvaluation.prototype.metrics = null; /** - * ListModelsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.readMask = null; + ModelEvaluation.prototype.createTime = null; /** - * ListModelsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation sliceDimensions. + * @member {Array.} sliceDimensions + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.orderBy = ""; + ModelEvaluation.prototype.sliceDimensions = $util.emptyArray; /** - * Creates a new ListModelsRequest instance using the specified properties. + * ModelEvaluation dataItemSchemaUri. + * @member {string} dataItemSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.dataItemSchemaUri = ""; + + /** + * ModelEvaluation annotationSchemaUri. + * @member {string} annotationSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.annotationSchemaUri = ""; + + /** + * ModelEvaluation modelExplanation. + * @member {google.cloud.aiplatform.v1.IModelExplanation|null|undefined} modelExplanation + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.modelExplanation = null; + + /** + * ModelEvaluation explanationSpecs. + * @member {Array.} explanationSpecs + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.explanationSpecs = $util.emptyArray; + + /** + * ModelEvaluation metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.metadata = null; + + /** + * Creates a new ModelEvaluation instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1.IListModelsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest instance + * @param {google.cloud.aiplatform.v1.IModelEvaluation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation instance */ - ListModelsRequest.create = function create(properties) { - return new ListModelsRequest(properties); + ModelEvaluation.create = function create(properties) { + return new ModelEvaluation(properties); }; /** - * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. + * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelEvaluation} message ModelEvaluation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsRequest.encode = function encode(message, writer) { + ModelEvaluation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.metricsSchemaUri); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sliceDimensions != null && message.sliceDimensions.length) + for (var i = 0; i < message.sliceDimensions.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sliceDimensions[i]); + if (message.dataItemSchemaUri != null && Object.hasOwnProperty.call(message, "dataItemSchemaUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.dataItemSchemaUri); + if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.annotationSchemaUri); + if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) + $root.google.cloud.aiplatform.v1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.explanationSpecs != null && message.explanationSpecs.length) + for (var i = 0; i < message.explanationSpecs.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.encode(message.explanationSpecs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.displayName); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. + * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelEvaluation} message ModelEvaluation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelEvaluation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelsRequest message from the specified reader or buffer. + * Decodes a ModelEvaluation message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsRequest.decode = function decode(reader, length) { + ModelEvaluation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); + break; + } + case 10: { + message.displayName = reader.string(); break; } case 2: { - message.filter = reader.string(); + message.metricsSchemaUri = reader.string(); break; } case 3: { - message.pageSize = reader.int32(); + message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } case 4: { - message.pageToken = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.sliceDimensions && message.sliceDimensions.length)) + message.sliceDimensions = []; + message.sliceDimensions.push(reader.string()); break; } case 6: { - message.orderBy = reader.string(); + message.dataItemSchemaUri = reader.string(); + break; + } + case 7: { + message.annotationSchemaUri = reader.string(); + break; + } + case 8: { + message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.explanationSpecs && message.explanationSpecs.length)) + message.explanationSpecs = []; + message.explanationSpecs.push($root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.decode(reader, reader.uint32())); + break; + } + case 11: { + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } default: @@ -113055,421 +116697,490 @@ }; /** - * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsRequest.decodeDelimited = function decodeDelimited(reader) { + ModelEvaluation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelsRequest message. + * Verifies a ModelEvaluation message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelsRequest.verify = function verify(message) { + ModelEvaluation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + if (!$util.isString(message.metricsSchemaUri)) + return "metricsSchemaUri: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + var error = $root.google.protobuf.Value.verify(message.metrics); if (error) - return "readMask." + error; + return "metrics." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.sliceDimensions != null && message.hasOwnProperty("sliceDimensions")) { + if (!Array.isArray(message.sliceDimensions)) + return "sliceDimensions: array expected"; + for (var i = 0; i < message.sliceDimensions.length; ++i) + if (!$util.isString(message.sliceDimensions[i])) + return "sliceDimensions: string[] expected"; + } + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + if (!$util.isString(message.dataItemSchemaUri)) + return "dataItemSchemaUri: string expected"; + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + if (!$util.isString(message.annotationSchemaUri)) + return "annotationSchemaUri: string expected"; + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { + var error = $root.google.cloud.aiplatform.v1.ModelExplanation.verify(message.modelExplanation); + if (error) + return "modelExplanation." + error; + } + if (message.explanationSpecs != null && message.hasOwnProperty("explanationSpecs")) { + if (!Array.isArray(message.explanationSpecs)) + return "explanationSpecs: array expected"; + for (var i = 0; i < message.explanationSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify(message.explanationSpecs[i]); + if (error) + return "explanationSpecs." + error; + } + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); + if (error) + return "metadata." + error; } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation */ - ListModelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelsRequest) + ModelEvaluation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluation) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluation(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.metricsSchemaUri != null) + message.metricsSchemaUri = String(object.metricsSchemaUri); + if (object.metrics != null) { + if (typeof object.metrics !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.metrics: object expected"); + message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.sliceDimensions) { + if (!Array.isArray(object.sliceDimensions)) + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.sliceDimensions: array expected"); + message.sliceDimensions = []; + for (var i = 0; i < object.sliceDimensions.length; ++i) + message.sliceDimensions[i] = String(object.sliceDimensions[i]); + } + if (object.dataItemSchemaUri != null) + message.dataItemSchemaUri = String(object.dataItemSchemaUri); + if (object.annotationSchemaUri != null) + message.annotationSchemaUri = String(object.annotationSchemaUri); + if (object.modelExplanation != null) { + if (typeof object.modelExplanation !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.modelExplanation: object expected"); + message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.fromObject(object.modelExplanation); + } + if (object.explanationSpecs) { + if (!Array.isArray(object.explanationSpecs)) + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.explanationSpecs: array expected"); + message.explanationSpecs = []; + for (var i = 0; i < object.explanationSpecs.length; ++i) { + if (typeof object.explanationSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.explanationSpecs: object expected"); + message.explanationSpecs[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.fromObject(object.explanationSpecs[i]); + } + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1.ListModelsRequest} message ListModelsRequest + * @param {google.cloud.aiplatform.v1.ModelEvaluation} message ModelEvaluation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelsRequest.toObject = function toObject(message, options) { + ModelEvaluation.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.sliceDimensions = []; + object.explanationSpecs = []; + } if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; + object.name = ""; + object.metricsSchemaUri = ""; + object.metrics = null; + object.createTime = null; + object.dataItemSchemaUri = ""; + object.annotationSchemaUri = ""; + object.modelExplanation = null; + object.displayName = ""; + object.metadata = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + object.metricsSchemaUri = message.metricsSchemaUri; + if (message.metrics != null && message.hasOwnProperty("metrics")) + object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.sliceDimensions && message.sliceDimensions.length) { + object.sliceDimensions = []; + for (var j = 0; j < message.sliceDimensions.length; ++j) + object.sliceDimensions[j] = message.sliceDimensions[j]; + } + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + object.dataItemSchemaUri = message.dataItemSchemaUri; + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + object.annotationSchemaUri = message.annotationSchemaUri; + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) + object.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.toObject(message.modelExplanation, options); + if (message.explanationSpecs && message.explanationSpecs.length) { + object.explanationSpecs = []; + for (var j = 0; j < message.explanationSpecs.length; ++j) + object.explanationSpecs[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.toObject(message.explanationSpecs[j], options); + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); return object; }; /** - * Converts this ListModelsRequest to JSON. + * Converts this ModelEvaluation to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance * @returns {Object.} JSON object */ - ListModelsRequest.prototype.toJSON = function toJSON() { + ModelEvaluation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelsRequest + * Gets the default type url for ModelEvaluation * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelEvaluation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluation"; }; - return ListModelsRequest; - })(); - - v1.ListModelsResponse = (function() { + ModelEvaluation.ModelEvaluationExplanationSpec = (function() { - /** - * Properties of a ListModelsResponse. - * @memberof google.cloud.aiplatform.v1 - * @interface IListModelsResponse - * @property {Array.|null} [models] ListModelsResponse models - * @property {string|null} [nextPageToken] ListModelsResponse nextPageToken - */ + /** + * Properties of a ModelEvaluationExplanationSpec. + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @interface IModelEvaluationExplanationSpec + * @property {string|null} [explanationType] ModelEvaluationExplanationSpec explanationType + * @property {google.cloud.aiplatform.v1.IExplanationSpec|null} [explanationSpec] ModelEvaluationExplanationSpec explanationSpec + */ - /** - * Constructs a new ListModelsResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelsResponse. - * @implements IListModelsResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IListModelsResponse=} [properties] Properties to set - */ - function ListModelsResponse(properties) { - this.models = []; - 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]]; - } + /** + * Constructs a new ModelEvaluationExplanationSpec. + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @classdesc Represents a ModelEvaluationExplanationSpec. + * @implements IModelEvaluationExplanationSpec + * @constructor + * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + */ + function ModelEvaluationExplanationSpec(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]]; + } - /** - * ListModelsResponse models. - * @member {Array.} models - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @instance - */ - ListModelsResponse.prototype.models = $util.emptyArray; + /** + * ModelEvaluationExplanationSpec explanationType. + * @member {string} explanationType + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @instance + */ + ModelEvaluationExplanationSpec.prototype.explanationType = ""; - /** - * ListModelsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @instance - */ - ListModelsResponse.prototype.nextPageToken = ""; + /** + * ModelEvaluationExplanationSpec explanationSpec. + * @member {google.cloud.aiplatform.v1.IExplanationSpec|null|undefined} explanationSpec + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @instance + */ + ModelEvaluationExplanationSpec.prototype.explanationSpec = null; - /** - * Creates a new ListModelsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse instance - */ - ListModelsResponse.create = function create(properties) { - return new ListModelsResponse(properties); - }; + /** + * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec instance + */ + ModelEvaluationExplanationSpec.create = function create(properties) { + return new ModelEvaluationExplanationSpec(properties); + }; - /** - * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelsResponse} message ListModelsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.models != null && message.models.length) - for (var i = 0; i < message.models.length; ++i) - $root.google.cloud.aiplatform.v1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluationExplanationSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.explanationType != null && Object.hasOwnProperty.call(message, "explanationType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.explanationType); + if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) + $root.google.cloud.aiplatform.v1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelsResponse} message ListModelsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluationExplanationSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListModelsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.models && message.models.length)) - message.models = []; - message.models.push($root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluationExplanationSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.explanationType = reader.string(); + break; + } + case 2: { + message.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluationExplanationSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListModelsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListModelsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.models != null && message.hasOwnProperty("models")) { - if (!Array.isArray(message.models)) - return "models: array expected"; - for (var i = 0; i < message.models.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Model.verify(message.models[i]); + /** + * Verifies a ModelEvaluationExplanationSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelEvaluationExplanationSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + if (!$util.isString(message.explanationType)) + return "explanationType: string expected"; + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { + var error = $root.google.cloud.aiplatform.v1.ExplanationSpec.verify(message.explanationSpec); if (error) - return "models." + error; + return "explanationSpec." + error; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + return null; + }; - /** - * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse - */ - ListModelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelsResponse(); - if (object.models) { - if (!Array.isArray(object.models)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelsResponse.models: array expected"); - message.models = []; - for (var i = 0; i < object.models.length; ++i) { - if (typeof object.models[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelsResponse.models: object expected"); - message.models[i] = $root.google.cloud.aiplatform.v1.Model.fromObject(object.models[i]); + /** + * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + */ + ModelEvaluationExplanationSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec(); + if (object.explanationType != null) + message.explanationType = String(object.explanationType); + if (object.explanationSpec != null) { + if (typeof object.explanationSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.explanationSpec: object expected"); + message.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.fromObject(object.explanationSpec); } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + return message; + }; - /** - * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1.ListModelsResponse} message ListModelsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListModelsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.models = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.models && message.models.length) { - object.models = []; - for (var j = 0; j < message.models.length; ++j) - object.models[j] = $root.google.cloud.aiplatform.v1.Model.toObject(message.models[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelEvaluationExplanationSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.explanationType = ""; + object.explanationSpec = null; + } + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + object.explanationType = message.explanationType; + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) + object.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.toObject(message.explanationSpec, options); + return object; + }; - /** - * Converts this ListModelsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @instance - * @returns {Object.} JSON object - */ - ListModelsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ModelEvaluationExplanationSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @instance + * @returns {Object.} JSON object + */ + ModelEvaluationExplanationSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for ListModelsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListModelsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelsResponse"; - }; + /** + * Gets the default type url for ModelEvaluationExplanationSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelEvaluationExplanationSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec"; + }; - return ListModelsResponse; + return ModelEvaluationExplanationSpec; + })(); + + return ModelEvaluation; })(); - v1.ListModelVersionsRequest = (function() { + v1.ModelEvaluationSlice = (function() { /** - * Properties of a ListModelVersionsRequest. + * Properties of a ModelEvaluationSlice. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelVersionsRequest - * @property {string|null} [name] ListModelVersionsRequest name - * @property {number|null} [pageSize] ListModelVersionsRequest pageSize - * @property {string|null} [pageToken] ListModelVersionsRequest pageToken - * @property {string|null} [filter] ListModelVersionsRequest filter - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelVersionsRequest readMask - * @property {string|null} [orderBy] ListModelVersionsRequest orderBy + * @interface IModelEvaluationSlice + * @property {string|null} [name] ModelEvaluationSlice name + * @property {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null} [slice] ModelEvaluationSlice slice + * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri + * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics + * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime */ /** - * Constructs a new ListModelVersionsRequest. + * Constructs a new ModelEvaluationSlice. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelVersionsRequest. - * @implements IListModelVersionsRequest + * @classdesc Represents a ModelEvaluationSlice. + * @implements IModelEvaluationSlice * @constructor - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice=} [properties] Properties to set */ - function ListModelVersionsRequest(properties) { + function ModelEvaluationSlice(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113477,120 +117188,110 @@ } /** - * ListModelVersionsRequest name. + * ModelEvaluationSlice name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest - * @instance - */ - ListModelVersionsRequest.prototype.name = ""; - - /** - * ListModelVersionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.pageSize = 0; + ModelEvaluationSlice.prototype.name = ""; /** - * ListModelVersionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * ModelEvaluationSlice slice. + * @member {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null|undefined} slice + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.pageToken = ""; + ModelEvaluationSlice.prototype.slice = null; /** - * ListModelVersionsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * ModelEvaluationSlice metricsSchemaUri. + * @member {string} metricsSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.filter = ""; + ModelEvaluationSlice.prototype.metricsSchemaUri = ""; /** - * ListModelVersionsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * ModelEvaluationSlice metrics. + * @member {google.protobuf.IValue|null|undefined} metrics + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.readMask = null; + ModelEvaluationSlice.prototype.metrics = null; /** - * ListModelVersionsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * ModelEvaluationSlice createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.orderBy = ""; + ModelEvaluationSlice.prototype.createTime = null; /** - * Creates a new ListModelVersionsRequest instance using the specified properties. + * Creates a new ModelEvaluationSlice instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest instance + * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice instance */ - ListModelVersionsRequest.create = function create(properties) { - return new ListModelVersionsRequest(properties); + ModelEvaluationSlice.create = function create(properties) { + return new ModelEvaluationSlice(properties); }; /** - * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelVersionsRequest.encode = function encode(message, writer) { + ModelEvaluationSlice.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.slice != null && Object.hasOwnProperty.call(message, "slice")) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.encode(message.slice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metricsSchemaUri); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelEvaluationSlice.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelVersionsRequest.decode = function decode(reader, length) { + ModelEvaluationSlice.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelVersionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -113599,23 +117300,19 @@ break; } case 2: { - message.pageSize = reader.int32(); + message.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); + message.metricsSchemaUri = reader.string(); break; } case 4: { - message.filter = reader.string(); + message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 6: { - message.orderBy = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -113627,417 +117324,964 @@ }; /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + ModelEvaluationSlice.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelVersionsRequest message. + * Verifies a ModelEvaluationSlice message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelVersionsRequest.verify = function verify(message) { + ModelEvaluationSlice.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.slice != null && message.hasOwnProperty("slice")) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify(message.slice); if (error) - return "readMask." + error; + return "slice." + error; + } + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + if (!$util.isString(message.metricsSchemaUri)) + return "metricsSchemaUri: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + var error = $root.google.protobuf.Value.verify(message.metrics); + if (error) + return "metrics." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice */ - ListModelVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsRequest) + ModelEvaluationSlice.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice(); if (object.name != null) message.name = String(object.name); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + if (object.slice != null) { + if (typeof object.slice !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.slice: object expected"); + message.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.fromObject(object.slice); + } + if (object.metricsSchemaUri != null) + message.metricsSchemaUri = String(object.metricsSchemaUri); + if (object.metrics != null) { + if (typeof object.metrics !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics: object expected"); + message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1.ListModelVersionsRequest} message ListModelVersionsRequest + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice} message ModelEvaluationSlice * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelVersionsRequest.toObject = function toObject(message, options) { + ModelEvaluationSlice.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.readMask = null; - object.orderBy = ""; + object.slice = null; + object.metricsSchemaUri = ""; + object.metrics = null; + object.createTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.slice != null && message.hasOwnProperty("slice")) + object.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.toObject(message.slice, options); + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + object.metricsSchemaUri = message.metricsSchemaUri; + if (message.metrics != null && message.hasOwnProperty("metrics")) + object.metrics = $root.google.protobuf.Value.toObject(message.metrics, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); return object; }; /** - * Converts this ListModelVersionsRequest to JSON. + * Converts this ModelEvaluationSlice to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance * @returns {Object.} JSON object */ - ListModelVersionsRequest.prototype.toJSON = function toJSON() { + ModelEvaluationSlice.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelVersionsRequest + * Gets the default type url for ModelEvaluationSlice * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelEvaluationSlice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelVersionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice"; }; - return ListModelVersionsRequest; - })(); - - v1.ListModelVersionsResponse = (function() { + ModelEvaluationSlice.Slice = (function() { - /** - * Properties of a ListModelVersionsResponse. - * @memberof google.cloud.aiplatform.v1 - * @interface IListModelVersionsResponse - * @property {Array.|null} [models] ListModelVersionsResponse models - * @property {string|null} [nextPageToken] ListModelVersionsResponse nextPageToken - */ + /** + * Properties of a Slice. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice + * @interface ISlice + * @property {string|null} [dimension] Slice dimension + * @property {string|null} [value] Slice value + */ - /** - * Constructs a new ListModelVersionsResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelVersionsResponse. - * @implements IListModelVersionsResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set - */ - function ListModelVersionsResponse(properties) { - this.models = []; - 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]]; - } + /** + * Constructs a new Slice. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice + * @classdesc Represents a Slice. + * @implements ISlice + * @constructor + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + */ + function Slice(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]]; + } - /** - * ListModelVersionsResponse models. - * @member {Array.} models - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @instance - */ - ListModelVersionsResponse.prototype.models = $util.emptyArray; + /** + * Slice dimension. + * @member {string} dimension + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @instance + */ + Slice.prototype.dimension = ""; - /** - * ListModelVersionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @instance - */ - ListModelVersionsResponse.prototype.nextPageToken = ""; + /** + * Slice value. + * @member {string} value + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @instance + */ + Slice.prototype.value = ""; - /** - * Creates a new ListModelVersionsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse instance - */ - ListModelVersionsResponse.create = function create(properties) { - return new ListModelVersionsResponse(properties); - }; + /** + * Creates a new Slice instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice instance + */ + Slice.create = function create(properties) { + return new Slice(properties); + }; - /** - * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelVersionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.models != null && message.models.length) - for (var i = 0; i < message.models.length; ++i) - $root.google.cloud.aiplatform.v1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Slice.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dimension); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + return writer; + }; - /** - * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Slice.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelVersionsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelVersionsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.models && message.models.length)) - message.models = []; - message.models.push($root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + /** + * Decodes a Slice message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Slice.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dimension = reader.string(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelVersionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Slice message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Slice.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListModelVersionsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListModelVersionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.models != null && message.hasOwnProperty("models")) { - if (!Array.isArray(message.models)) - return "models: array expected"; - for (var i = 0; i < message.models.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Model.verify(message.models[i]); - if (error) - return "models." + error; + /** + * Verifies a Slice message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Slice.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dimension != null && message.hasOwnProperty("dimension")) + if (!$util.isString(message.dimension)) + return "dimension: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates a Slice message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + */ + Slice.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice(); + if (object.dimension != null) + message.dimension = String(object.dimension); + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from a Slice message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} message Slice + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Slice.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dimension = ""; + object.value = ""; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + if (message.dimension != null && message.hasOwnProperty("dimension")) + object.dimension = message.dimension; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this Slice to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @instance + * @returns {Object.} JSON object + */ + Slice.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Slice + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Slice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice"; + }; + + return Slice; + })(); + + return ModelEvaluationSlice; + })(); + + v1.ModelService = (function() { /** - * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse + * Constructs a new ModelService service. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - ListModelVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsResponse(); - if (object.models) { - if (!Array.isArray(object.models)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: array expected"); - message.models = []; - for (var i = 0; i < object.models.length; ++i) { - if (typeof object.models[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: object expected"); - message.models[i] = $root.google.cloud.aiplatform.v1.Model.fromObject(object.models[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + function ModelService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ModelService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelService; /** - * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * Creates new ModelService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelService * @static - * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} message ListModelVersionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ModelService} RPC service. Useful where requests and/or responses are streamed. */ - ListModelVersionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.models = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.models && message.models.length) { - object.models = []; - for (var j = 0; j < message.models.length; ++j) - object.models[j] = $root.google.cloud.aiplatform.v1.Model.toObject(message.models[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; + ModelService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Converts this ListModelVersionsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|uploadModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef UploadModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UploadModel. + * @function uploadModel + * @memberof google.cloud.aiplatform.v1.ModelService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IUploadModelRequest} request UploadModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.UploadModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListModelVersionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(ModelService.prototype.uploadModel = function uploadModel(request, callback) { + return this.rpcCall(uploadModel, $root.google.cloud.aiplatform.v1.UploadModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UploadModel" }); /** - * Gets the default type url for ListModelVersionsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls UploadModel. + * @function uploadModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IUploadModelRequest} request UploadModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListModelVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelVersionsResponse"; - }; - return ListModelVersionsResponse; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef GetModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Model} [response] Model + */ + + /** + * Calls GetModel. + * @function getModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelRequest} request GetModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.GetModelCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModel = function getModel(request, callback) { + return this.rpcCall(getModel, $root.google.cloud.aiplatform.v1.GetModelRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); + }, "name", { value: "GetModel" }); + + /** + * Calls GetModel. + * @function getModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelRequest} request GetModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModels}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ListModelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelsResponse} [response] ListModelsResponse + */ + + /** + * Calls ListModels. + * @function listModels + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelsRequest} request ListModelsRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ListModelsCallback} callback Node-style callback called with the error, if any, and ListModelsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModels = function listModels(request, callback) { + return this.rpcCall(listModels, $root.google.cloud.aiplatform.v1.ListModelsRequest, $root.google.cloud.aiplatform.v1.ListModelsResponse, request, callback); + }, "name", { value: "ListModels" }); + + /** + * Calls ListModels. + * @function listModels + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelsRequest} request ListModelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelVersions}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ListModelVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} [response] ListModelVersionsResponse + */ + + /** + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback} callback Node-style callback called with the error, if any, and ListModelVersionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelVersions = function listModelVersions(request, callback) { + return this.rpcCall(listModelVersions, $root.google.cloud.aiplatform.v1.ListModelVersionsRequest, $root.google.cloud.aiplatform.v1.ListModelVersionsResponse, request, callback); + }, "name", { value: "ListModelVersions" }); + + /** + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|updateModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef UpdateModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Model} [response] Model + */ + + /** + * Calls UpdateModel. + * @function updateModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} request UpdateModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.UpdateModelCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.updateModel = function updateModel(request, callback) { + return this.rpcCall(updateModel, $root.google.cloud.aiplatform.v1.UpdateModelRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); + }, "name", { value: "UpdateModel" }); + + /** + * Calls UpdateModel. + * @function updateModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} request UpdateModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef DeleteModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteModel. + * @function deleteModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} request DeleteModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.DeleteModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.deleteModel = function deleteModel(request, callback) { + return this.rpcCall(deleteModel, $root.google.cloud.aiplatform.v1.DeleteModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModel" }); + + /** + * Calls DeleteModel. + * @function deleteModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} request DeleteModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModelVersion}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef DeleteModelVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.deleteModelVersion = function deleteModelVersion(request, callback) { + return this.rpcCall(deleteModelVersion, $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelVersion" }); + + /** + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|mergeVersionAliases}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef MergeVersionAliasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Model} [response] Model + */ + + /** + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.mergeVersionAliases = function mergeVersionAliases(request, callback) { + return this.rpcCall(mergeVersionAliases, $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); + }, "name", { value: "MergeVersionAliases" }); + + /** + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|exportModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ExportModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportModel. + * @function exportModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IExportModelRequest} request ExportModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ExportModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.exportModel = function exportModel(request, callback) { + return this.rpcCall(exportModel, $root.google.cloud.aiplatform.v1.ExportModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportModel" }); + + /** + * Calls ExportModel. + * @function exportModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IExportModelRequest} request ExportModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|copyModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef CopyModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.ICopyModelRequest} request CopyModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.CopyModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.copyModel = function copyModel(request, callback) { + return this.rpcCall(copyModel, $root.google.cloud.aiplatform.v1.CopyModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CopyModel" }); + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.ICopyModelRequest} request CopyModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|importModelEvaluation}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ImportModelEvaluationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ModelEvaluation} [response] ModelEvaluation + */ + + /** + * Calls ImportModelEvaluation. + * @function importModelEvaluation + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ImportModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.importModelEvaluation = function importModelEvaluation(request, callback) { + return this.rpcCall(importModelEvaluation, $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest, $root.google.cloud.aiplatform.v1.ModelEvaluation, request, callback); + }, "name", { value: "ImportModelEvaluation" }); + + /** + * Calls ImportModelEvaluation. + * @function importModelEvaluation + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportModelEvaluationSlices}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef BatchImportModelEvaluationSlicesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} [response] BatchImportModelEvaluationSlicesResponse + */ + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.batchImportModelEvaluationSlices = function batchImportModelEvaluationSlices(request, callback) { + return this.rpcCall(batchImportModelEvaluationSlices, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, request, callback); + }, "name", { value: "BatchImportModelEvaluationSlices" }); + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluation}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef GetModelEvaluationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ModelEvaluation} [response] ModelEvaluation + */ + + /** + * Calls GetModelEvaluation. + * @function getModelEvaluation + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.GetModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModelEvaluation = function getModelEvaluation(request, callback) { + return this.rpcCall(getModelEvaluation, $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest, $root.google.cloud.aiplatform.v1.ModelEvaluation, request, callback); + }, "name", { value: "GetModelEvaluation" }); + + /** + * Calls GetModelEvaluation. + * @function getModelEvaluation + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluations}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ListModelEvaluationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} [response] ListModelEvaluationsResponse + */ + + /** + * Calls ListModelEvaluations. + * @function listModelEvaluations + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ListModelEvaluationsCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelEvaluations = function listModelEvaluations(request, callback) { + return this.rpcCall(listModelEvaluations, $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse, request, callback); + }, "name", { value: "ListModelEvaluations" }); + + /** + * Calls ListModelEvaluations. + * @function listModelEvaluations + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluationSlice}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef GetModelEvaluationSliceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice} [response] ModelEvaluationSlice + */ + + /** + * Calls GetModelEvaluationSlice. + * @function getModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSliceCallback} callback Node-style callback called with the error, if any, and ModelEvaluationSlice + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModelEvaluationSlice = function getModelEvaluationSlice(request, callback) { + return this.rpcCall(getModelEvaluationSlice, $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, $root.google.cloud.aiplatform.v1.ModelEvaluationSlice, request, callback); + }, "name", { value: "GetModelEvaluationSlice" }); + + /** + * Calls GetModelEvaluationSlice. + * @function getModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluationSlices}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ListModelEvaluationSlicesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} [response] ListModelEvaluationSlicesResponse + */ + + /** + * Calls ListModelEvaluationSlices. + * @function listModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelEvaluationSlices = function listModelEvaluationSlices(request, callback) { + return this.rpcCall(listModelEvaluationSlices, $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse, request, callback); + }, "name", { value: "ListModelEvaluationSlices" }); + + /** + * Calls ListModelEvaluationSlices. + * @function listModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ModelService; })(); - v1.UpdateModelRequest = (function() { + v1.UploadModelRequest = (function() { /** - * Properties of an UpdateModelRequest. + * Properties of an UploadModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateModelRequest - * @property {google.cloud.aiplatform.v1.IModel|null} [model] UpdateModelRequest model - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelRequest updateMask + * @interface IUploadModelRequest + * @property {string|null} [parent] UploadModelRequest parent + * @property {string|null} [parentModel] UploadModelRequest parentModel + * @property {string|null} [modelId] UploadModelRequest modelId + * @property {google.cloud.aiplatform.v1.IModel|null} [model] UploadModelRequest model + * @property {string|null} [serviceAccount] UploadModelRequest serviceAccount */ /** - * Constructs a new UpdateModelRequest. + * Constructs a new UploadModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateModelRequest. - * @implements IUpdateModelRequest + * @classdesc Represents an UploadModelRequest. + * @implements IUploadModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUploadModelRequest=} [properties] Properties to set */ - function UpdateModelRequest(properties) { + function UploadModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114045,89 +118289,131 @@ } /** - * UpdateModelRequest model. + * UploadModelRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.parent = ""; + + /** + * UploadModelRequest parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.parentModel = ""; + + /** + * UploadModelRequest modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.modelId = ""; + + /** + * UploadModelRequest model. * @member {google.cloud.aiplatform.v1.IModel|null|undefined} model - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @instance */ - UpdateModelRequest.prototype.model = null; + UploadModelRequest.prototype.model = null; /** - * UpdateModelRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * UploadModelRequest serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @instance */ - UpdateModelRequest.prototype.updateMask = null; + UploadModelRequest.prototype.serviceAccount = ""; /** - * Creates a new UpdateModelRequest instance using the specified properties. + * Creates a new UploadModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest instance + * @param {google.cloud.aiplatform.v1.IUploadModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest instance */ - UpdateModelRequest.create = function create(properties) { - return new UpdateModelRequest(properties); + UploadModelRequest.create = function create(properties) { + return new UploadModelRequest(properties); }; /** - * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. + * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelRequest} message UploadModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelRequest.encode = function encode(message, writer) { + UploadModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.model != null && Object.hasOwnProperty.call(message, "model")) - $root.google.cloud.aiplatform.v1.Model.encode(message.model, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1.Model.encode(message.model, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parentModel); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelId); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceAccount); return writer; }; /** - * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. + * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelRequest} message UploadModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + UploadModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer. + * Decodes an UploadModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelRequest.decode = function decode(reader, length) { + UploadModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UploadModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.model = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + } + case 4: { + message.parentModel = reader.string(); + break; + } + case 5: { + message.modelId = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.model = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); + break; + } + case 6: { + message.serviceAccount = reader.string(); break; } default: @@ -114139,141 +118425,160 @@ }; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelRequest.decodeDelimited = function decodeDelimited(reader) { + UploadModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelRequest message. + * Verifies an UploadModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelRequest.verify = function verify(message) { + UploadModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + if (message.modelId != null && message.hasOwnProperty("modelId")) + if (!$util.isString(message.modelId)) + return "modelId: string expected"; if (message.model != null && message.hasOwnProperty("model")) { var error = $root.google.cloud.aiplatform.v1.Model.verify(message.model); if (error) return "model." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; return null; }; /** - * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest */ - UpdateModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelRequest) + UploadModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateModelRequest(); + var message = new $root.google.cloud.aiplatform.v1.UploadModelRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + if (object.modelId != null) + message.modelId = String(object.modelId); if (object.model != null) { if (typeof object.model !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelRequest.model: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.UploadModelRequest.model: object expected"); message.model = $root.google.cloud.aiplatform.v1.Model.fromObject(object.model); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); return message; }; /** - * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateModelRequest} message UpdateModelRequest + * @param {google.cloud.aiplatform.v1.UploadModelRequest} message UploadModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelRequest.toObject = function toObject(message, options) { + UploadModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.parent = ""; object.model = null; - object.updateMask = null; + object.parentModel = ""; + object.modelId = ""; + object.serviceAccount = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.model != null && message.hasOwnProperty("model")) object.model = $root.google.cloud.aiplatform.v1.Model.toObject(message.model, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; return object; }; /** - * Converts this UpdateModelRequest to JSON. + * Converts this UploadModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @instance * @returns {Object.} JSON object */ - UpdateModelRequest.prototype.toJSON = function toJSON() { + UploadModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelRequest + * Gets the default type url for UploadModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UploadModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelRequest"; }; - return UpdateModelRequest; + return UploadModelRequest; })(); - v1.DeleteModelRequest = (function() { + v1.UploadModelOperationMetadata = (function() { /** - * Properties of a DeleteModelRequest. + * Properties of an UploadModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteModelRequest - * @property {string|null} [name] DeleteModelRequest name + * @interface IUploadModelOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UploadModelOperationMetadata genericMetadata */ /** - * Constructs a new DeleteModelRequest. + * Constructs a new UploadModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteModelRequest. - * @implements IDeleteModelRequest + * @classdesc Represents an UploadModelOperationMetadata. + * @implements IUploadModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata=} [properties] Properties to set */ - function DeleteModelRequest(properties) { + function UploadModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114281,75 +118586,75 @@ } /** - * DeleteModelRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * UploadModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @instance */ - DeleteModelRequest.prototype.name = ""; + UploadModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeleteModelRequest instance using the specified properties. + * Creates a new UploadModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest instance + * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata instance */ - DeleteModelRequest.create = function create(properties) { - return new DeleteModelRequest(properties); + UploadModelOperationMetadata.create = function create(properties) { + return new UploadModelOperationMetadata(properties); }; /** - * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. + * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelRequest.encode = function encode(message, writer) { + UploadModelOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. + * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + UploadModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelRequest.decode = function decode(reader, length) { + UploadModelOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -114361,122 +118666,128 @@ }; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelRequest.decodeDelimited = function decodeDelimited(reader) { + UploadModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelRequest message. + * Verifies an UploadModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelRequest.verify = function verify(message) { + UploadModelOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } return null; }; /** - * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata */ - DeleteModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelRequest) + UploadModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteModelRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UploadModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.DeleteModelRequest} message DeleteModelRequest + * @param {google.cloud.aiplatform.v1.UploadModelOperationMetadata} message UploadModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelRequest.toObject = function toObject(message, options) { + UploadModelOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this DeleteModelRequest to JSON. + * Converts this UploadModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @instance * @returns {Object.} JSON object */ - DeleteModelRequest.prototype.toJSON = function toJSON() { + UploadModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelRequest + * Gets the default type url for UploadModelOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UploadModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelOperationMetadata"; }; - return DeleteModelRequest; + return UploadModelOperationMetadata; })(); - v1.DeleteModelVersionRequest = (function() { + v1.UploadModelResponse = (function() { /** - * Properties of a DeleteModelVersionRequest. + * Properties of an UploadModelResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteModelVersionRequest - * @property {string|null} [name] DeleteModelVersionRequest name + * @interface IUploadModelResponse + * @property {string|null} [model] UploadModelResponse model + * @property {string|null} [modelVersionId] UploadModelResponse modelVersionId */ /** - * Constructs a new DeleteModelVersionRequest. + * Constructs a new UploadModelResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteModelVersionRequest. - * @implements IDeleteModelVersionRequest + * @classdesc Represents an UploadModelResponse. + * @implements IUploadModelResponse * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUploadModelResponse=} [properties] Properties to set */ - function DeleteModelVersionRequest(properties) { + function UploadModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114484,75 +118795,89 @@ } /** - * DeleteModelVersionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * UploadModelResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @instance */ - DeleteModelVersionRequest.prototype.name = ""; + UploadModelResponse.prototype.model = ""; /** - * Creates a new DeleteModelVersionRequest instance using the specified properties. + * UploadModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @instance + */ + UploadModelResponse.prototype.modelVersionId = ""; + + /** + * Creates a new UploadModelResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest instance + * @param {google.cloud.aiplatform.v1.IUploadModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse instance */ - DeleteModelVersionRequest.create = function create(properties) { - return new DeleteModelVersionRequest(properties); + UploadModelResponse.create = function create(properties) { + return new UploadModelResponse(properties); }; /** - * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelResponse} message UploadModelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelVersionRequest.encode = function encode(message, writer) { + UploadModelResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); return writer; }; /** - * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelResponse} message UploadModelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + UploadModelResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. + * Decodes an UploadModelResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelVersionRequest.decode = function decode(reader, length) { + UploadModelResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UploadModelResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.model = reader.string(); + break; + } + case 2: { + message.modelVersionId = reader.string(); break; } default: @@ -114564,124 +118889,131 @@ }; /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. + * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelVersionRequest.decodeDelimited = function decodeDelimited(reader) { + UploadModelResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelVersionRequest message. + * Verifies an UploadModelResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelVersionRequest.verify = function verify(message) { + UploadModelResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; return null; }; /** - * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse */ - DeleteModelVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest) + UploadModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.UploadModelResponse(); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); return message; }; /** - * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1.DeleteModelVersionRequest} message DeleteModelVersionRequest + * @param {google.cloud.aiplatform.v1.UploadModelResponse} message UploadModelResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelVersionRequest.toObject = function toObject(message, options) { + UploadModelResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.model = ""; + object.modelVersionId = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; return object; }; /** - * Converts this DeleteModelVersionRequest to JSON. + * Converts this UploadModelResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @instance * @returns {Object.} JSON object */ - DeleteModelVersionRequest.prototype.toJSON = function toJSON() { + UploadModelResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelVersionRequest + * Gets the default type url for UploadModelResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UploadModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelVersionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelResponse"; }; - return DeleteModelVersionRequest; + return UploadModelResponse; })(); - v1.MergeVersionAliasesRequest = (function() { + v1.GetModelRequest = (function() { /** - * Properties of a MergeVersionAliasesRequest. + * Properties of a GetModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IMergeVersionAliasesRequest - * @property {string|null} [name] MergeVersionAliasesRequest name - * @property {Array.|null} [versionAliases] MergeVersionAliasesRequest versionAliases + * @interface IGetModelRequest + * @property {string|null} [name] GetModelRequest name */ /** - * Constructs a new MergeVersionAliasesRequest. + * Constructs a new GetModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MergeVersionAliasesRequest. - * @implements IMergeVersionAliasesRequest + * @classdesc Represents a GetModelRequest. + * @implements IGetModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetModelRequest=} [properties] Properties to set */ - function MergeVersionAliasesRequest(properties) { - this.versionAliases = []; + function GetModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114689,81 +119021,70 @@ } /** - * MergeVersionAliasesRequest name. + * GetModelRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest - * @instance - */ - MergeVersionAliasesRequest.prototype.name = ""; - - /** - * MergeVersionAliasesRequest versionAliases. - * @member {Array.} versionAliases - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @instance */ - MergeVersionAliasesRequest.prototype.versionAliases = $util.emptyArray; + GetModelRequest.prototype.name = ""; /** - * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * Creates a new GetModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest instance + * @param {google.cloud.aiplatform.v1.IGetModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest instance */ - MergeVersionAliasesRequest.create = function create(properties) { - return new MergeVersionAliasesRequest(properties); + GetModelRequest.create = function create(properties) { + return new GetModelRequest(properties); }; /** - * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelRequest} message GetModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MergeVersionAliasesRequest.encode = function encode(message, writer) { + GetModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.versionAliases != null && message.versionAliases.length) - for (var i = 0; i < message.versionAliases.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.versionAliases[i]); return writer; }; /** - * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelRequest} message GetModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MergeVersionAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * Decodes a GetModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MergeVersionAliasesRequest.decode = function decode(reader, length) { + GetModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -114771,12 +119092,6 @@ message.name = reader.string(); break; } - case 2: { - if (!(message.versionAliases && message.versionAliases.length)) - message.versionAliases = []; - message.versionAliases.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -114786,144 +119101,127 @@ }; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MergeVersionAliasesRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MergeVersionAliasesRequest message. + * Verifies a GetModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MergeVersionAliasesRequest.verify = function verify(message) { + GetModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { - if (!Array.isArray(message.versionAliases)) - return "versionAliases: array expected"; - for (var i = 0; i < message.versionAliases.length; ++i) - if (!$util.isString(message.versionAliases[i])) - return "versionAliases: string[] expected"; - } return null; }; /** - * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest */ - MergeVersionAliasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) + GetModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetModelRequest(); if (object.name != null) message.name = String(object.name); - if (object.versionAliases) { - if (!Array.isArray(object.versionAliases)) - throw TypeError(".google.cloud.aiplatform.v1.MergeVersionAliasesRequest.versionAliases: array expected"); - message.versionAliases = []; - for (var i = 0; i < object.versionAliases.length; ++i) - message.versionAliases[i] = String(object.versionAliases[i]); - } return message; }; /** - * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} message MergeVersionAliasesRequest + * @param {google.cloud.aiplatform.v1.GetModelRequest} message GetModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MergeVersionAliasesRequest.toObject = function toObject(message, options) { + GetModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionAliases = []; if (options.defaults) object.name = ""; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.versionAliases && message.versionAliases.length) { - object.versionAliases = []; - for (var j = 0; j < message.versionAliases.length; ++j) - object.versionAliases[j] = message.versionAliases[j]; - } return object; }; /** - * Converts this MergeVersionAliasesRequest to JSON. + * Converts this GetModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @instance * @returns {Object.} JSON object */ - MergeVersionAliasesRequest.prototype.toJSON = function toJSON() { + GetModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MergeVersionAliasesRequest + * Gets the default type url for GetModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MergeVersionAliasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MergeVersionAliasesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelRequest"; }; - return MergeVersionAliasesRequest; + return GetModelRequest; })(); - v1.ExportModelRequest = (function() { + v1.ListModelsRequest = (function() { /** - * Properties of an ExportModelRequest. + * Properties of a ListModelsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IExportModelRequest - * @property {string|null} [name] ExportModelRequest name - * @property {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null} [outputConfig] ExportModelRequest outputConfig + * @interface IListModelsRequest + * @property {string|null} [parent] ListModelsRequest parent + * @property {string|null} [filter] ListModelsRequest filter + * @property {number|null} [pageSize] ListModelsRequest pageSize + * @property {string|null} [pageToken] ListModelsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelsRequest readMask + * @property {string|null} [orderBy] ListModelsRequest orderBy */ /** - * Constructs a new ExportModelRequest. + * Constructs a new ListModelsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExportModelRequest. - * @implements IExportModelRequest + * @classdesc Represents a ListModelsRequest. + * @implements IListModelsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IExportModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelsRequest=} [properties] Properties to set */ - function ExportModelRequest(properties) { + function ListModelsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114931,89 +119229,145 @@ } /** - * ExportModelRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * ListModelsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @instance */ - ExportModelRequest.prototype.name = ""; + ListModelsRequest.prototype.parent = ""; /** - * ExportModelRequest outputConfig. - * @member {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null|undefined} outputConfig - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * ListModelsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @instance */ - ExportModelRequest.prototype.outputConfig = null; + ListModelsRequest.prototype.filter = ""; /** - * Creates a new ExportModelRequest instance using the specified properties. + * ListModelsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.pageSize = 0; + + /** + * ListModelsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.pageToken = ""; + + /** + * ListModelsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.readMask = null; + + /** + * ListModelsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListModelsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest instance + * @param {google.cloud.aiplatform.v1.IListModelsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest instance */ - ExportModelRequest.create = function create(properties) { - return new ExportModelRequest(properties); + ListModelsRequest.create = function create(properties) { + return new ListModelsRequest(properties); }; /** - * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. + * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelsRequest} message ListModelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelRequest.encode = function encode(message, writer) { + ListModelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) - $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. + * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelsRequest} message ListModelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelRequest message from the specified reader or buffer. + * Decodes a ListModelsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelRequest.decode = function decode(reader, length) { + ListModelsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 6: { + message.orderBy = reader.string(); break; } default: @@ -115025,397 +119379,170 @@ }; /** - * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelRequest message. + * Verifies a ListModelsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelRequest.verify = function verify(message) { + ListModelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) { - var error = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify(message.outputConfig); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "outputConfig." + error; + return "readMask." + error; } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest */ - ExportModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelRequest) + ListModelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ExportModelRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.outputConfig != null) { - if (typeof object.outputConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.outputConfig: object expected"); - message.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.fromObject(object.outputConfig); + var message = new $root.google.cloud.aiplatform.v1.ListModelsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest} message ExportModelRequest + * @param {google.cloud.aiplatform.v1.ListModelsRequest} message ListModelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelRequest.toObject = function toObject(message, options) { + ListModelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.outputConfig = null; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) - object.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.toObject(message.outputConfig, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this ExportModelRequest to JSON. + * Converts this ListModelsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @instance * @returns {Object.} JSON object */ - ExportModelRequest.prototype.toJSON = function toJSON() { + ListModelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportModelRequest + * Gets the default type url for ListModelsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelsRequest"; }; - ExportModelRequest.OutputConfig = (function() { - - /** - * Properties of an OutputConfig. - * @memberof google.cloud.aiplatform.v1.ExportModelRequest - * @interface IOutputConfig - * @property {string|null} [exportFormatId] OutputConfig exportFormatId - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [artifactDestination] OutputConfig artifactDestination - * @property {google.cloud.aiplatform.v1.IContainerRegistryDestination|null} [imageDestination] OutputConfig imageDestination - */ - - /** - * Constructs a new OutputConfig. - * @memberof google.cloud.aiplatform.v1.ExportModelRequest - * @classdesc Represents an OutputConfig. - * @implements IOutputConfig - * @constructor - * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig=} [properties] Properties to set - */ - function OutputConfig(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]]; - } - - /** - * OutputConfig exportFormatId. - * @member {string} exportFormatId - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.exportFormatId = ""; - - /** - * OutputConfig artifactDestination. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} artifactDestination - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.artifactDestination = null; - - /** - * OutputConfig imageDestination. - * @member {google.cloud.aiplatform.v1.IContainerRegistryDestination|null|undefined} imageDestination - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.imageDestination = null; - - /** - * Creates a new OutputConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig instance - */ - OutputConfig.create = function create(properties) { - return new OutputConfig(properties); - }; - - /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exportFormatId != null && Object.hasOwnProperty.call(message, "exportFormatId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportFormatId); - if (message.artifactDestination != null && Object.hasOwnProperty.call(message, "artifactDestination")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.artifactDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.imageDestination != null && Object.hasOwnProperty.call(message, "imageDestination")) - $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.encode(message.imageDestination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OutputConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.exportFormatId = reader.string(); - break; - } - case 3: { - message.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 4: { - message.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OutputConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) - if (!$util.isString(message.exportFormatId)) - return "exportFormatId: string expected"; - if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.artifactDestination); - if (error) - return "artifactDestination." + error; - } - if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) { - var error = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.verify(message.imageDestination); - if (error) - return "imageDestination." + error; - } - return null; - }; - - /** - * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig - */ - OutputConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig(); - if (object.exportFormatId != null) - message.exportFormatId = String(object.exportFormatId); - if (object.artifactDestination != null) { - if (typeof object.artifactDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.artifactDestination: object expected"); - message.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.artifactDestination); - } - if (object.imageDestination != null) { - if (typeof object.imageDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.imageDestination: object expected"); - message.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.fromObject(object.imageDestination); - } - return message; - }; - - /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} message OutputConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OutputConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.exportFormatId = ""; - object.artifactDestination = null; - object.imageDestination = null; - } - if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) - object.exportFormatId = message.exportFormatId; - if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) - object.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.artifactDestination, options); - if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) - object.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.toObject(message.imageDestination, options); - return object; - }; - - /** - * Converts this OutputConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @instance - * @returns {Object.} JSON object - */ - OutputConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OutputConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig"; - }; - - return OutputConfig; - })(); - - return ExportModelRequest; + return ListModelsRequest; })(); - v1.ExportModelOperationMetadata = (function() { + v1.ListModelsResponse = (function() { /** - * Properties of an ExportModelOperationMetadata. + * Properties of a ListModelsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IExportModelOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] ExportModelOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null} [outputInfo] ExportModelOperationMetadata outputInfo + * @interface IListModelsResponse + * @property {Array.|null} [models] ListModelsResponse models + * @property {string|null} [nextPageToken] ListModelsResponse nextPageToken */ /** - * Constructs a new ExportModelOperationMetadata. + * Constructs a new ListModelsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExportModelOperationMetadata. - * @implements IExportModelOperationMetadata + * @classdesc Represents a ListModelsResponse. + * @implements IListModelsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelsResponse=} [properties] Properties to set */ - function ExportModelOperationMetadata(properties) { + function ListModelsResponse(properties) { + this.models = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115423,89 +119550,92 @@ } /** - * ExportModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * ListModelsResponse models. + * @member {Array.} models + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @instance */ - ExportModelOperationMetadata.prototype.genericMetadata = null; + ListModelsResponse.prototype.models = $util.emptyArray; /** - * ExportModelOperationMetadata outputInfo. - * @member {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null|undefined} outputInfo - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * ListModelsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @instance */ - ExportModelOperationMetadata.prototype.outputInfo = null; + ListModelsResponse.prototype.nextPageToken = ""; /** - * Creates a new ExportModelOperationMetadata instance using the specified properties. + * Creates a new ListModelsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static - * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IListModelsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse instance */ - ExportModelOperationMetadata.create = function create(properties) { - return new ExportModelOperationMetadata(properties); + ListModelsResponse.create = function create(properties) { + return new ListModelsResponse(properties); }; /** - * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static - * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelsResponse} message ListModelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelOperationMetadata.encode = function encode(message, writer) { + ListModelsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) - $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.encode(message.outputInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.models != null && message.models.length) + for (var i = 0; i < message.models.length; ++i) + $root.google.cloud.aiplatform.v1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static - * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelsResponse} message ListModelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. + * Decodes a ListModelsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelOperationMetadata.decode = function decode(reader, length) { + ListModelsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.models && message.models.length)) + message.models = []; + message.models.push($root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32())); break; } case 2: { - message.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -115517,367 +119647,153 @@ }; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListModelsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelOperationMetadata message. + * Verifies a ListModelsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelOperationMetadata.verify = function verify(message) { + ListModelsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) { - var error = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify(message.outputInfo); - if (error) - return "outputInfo." + error; + if (message.models != null && message.hasOwnProperty("models")) { + if (!Array.isArray(message.models)) + return "models: array expected"; + for (var i = 0; i < message.models.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.models[i]); + if (error) + return "models." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse */ - ExportModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata) + ListModelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.outputInfo != null) { - if (typeof object.outputInfo !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelOperationMetadata.outputInfo: object expected"); - message.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.fromObject(object.outputInfo); + var message = new $root.google.cloud.aiplatform.v1.ListModelsResponse(); + if (object.models) { + if (!Array.isArray(object.models)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelsResponse.models: array expected"); + message.models = []; + for (var i = 0; i < object.models.length; ++i) { + if (typeof object.models[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelsResponse.models: object expected"); + message.models[i] = $root.google.cloud.aiplatform.v1.Model.fromObject(object.models[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata} message ExportModelOperationMetadata + * @param {google.cloud.aiplatform.v1.ListModelsResponse} message ListModelsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelOperationMetadata.toObject = function toObject(message, options) { + ListModelsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.outputInfo = null; + if (options.arrays || options.defaults) + object.models = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.models && message.models.length) { + object.models = []; + for (var j = 0; j < message.models.length; ++j) + object.models[j] = $root.google.cloud.aiplatform.v1.Model.toObject(message.models[j], options); } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) - object.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.toObject(message.outputInfo, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ExportModelOperationMetadata to JSON. + * Converts this ListModelsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @instance * @returns {Object.} JSON object */ - ExportModelOperationMetadata.prototype.toJSON = function toJSON() { + ListModelsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportModelOperationMetadata + * Gets the default type url for ListModelsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelsResponse"; }; - ExportModelOperationMetadata.OutputInfo = (function() { - - /** - * Properties of an OutputInfo. - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata - * @interface IOutputInfo - * @property {string|null} [artifactOutputUri] OutputInfo artifactOutputUri - * @property {string|null} [imageOutputUri] OutputInfo imageOutputUri - */ - - /** - * Constructs a new OutputInfo. - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata - * @classdesc Represents an OutputInfo. - * @implements IOutputInfo - * @constructor - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set - */ - function OutputInfo(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]]; - } - - /** - * OutputInfo artifactOutputUri. - * @member {string} artifactOutputUri - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @instance - */ - OutputInfo.prototype.artifactOutputUri = ""; - - /** - * OutputInfo imageOutputUri. - * @member {string} imageOutputUri - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @instance - */ - OutputInfo.prototype.imageOutputUri = ""; - - /** - * Creates a new OutputInfo instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo instance - */ - OutputInfo.create = function create(properties) { - return new OutputInfo(properties); - }; - - /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactOutputUri != null && Object.hasOwnProperty.call(message, "artifactOutputUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifactOutputUri); - if (message.imageOutputUri != null && Object.hasOwnProperty.call(message, "imageOutputUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.imageOutputUri); - return writer; - }; - - /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OutputInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.artifactOutputUri = reader.string(); - break; - } - case 3: { - message.imageOutputUri = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OutputInfo message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) - if (!$util.isString(message.artifactOutputUri)) - return "artifactOutputUri: string expected"; - if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) - if (!$util.isString(message.imageOutputUri)) - return "imageOutputUri: string expected"; - return null; - }; - - /** - * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo - */ - OutputInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo) - return object; - var message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo(); - if (object.artifactOutputUri != null) - message.artifactOutputUri = String(object.artifactOutputUri); - if (object.imageOutputUri != null) - message.imageOutputUri = String(object.imageOutputUri); - return message; - }; - - /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} message OutputInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OutputInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.artifactOutputUri = ""; - object.imageOutputUri = ""; - } - if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) - object.artifactOutputUri = message.artifactOutputUri; - if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) - object.imageOutputUri = message.imageOutputUri; - return object; - }; - - /** - * Converts this OutputInfo to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @instance - * @returns {Object.} JSON object - */ - OutputInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OutputInfo - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OutputInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo"; - }; - - return OutputInfo; - })(); - - return ExportModelOperationMetadata; + return ListModelsResponse; })(); - v1.ExportModelResponse = (function() { + v1.ListModelVersionsRequest = (function() { /** - * Properties of an ExportModelResponse. + * Properties of a ListModelVersionsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IExportModelResponse + * @interface IListModelVersionsRequest + * @property {string|null} [name] ListModelVersionsRequest name + * @property {number|null} [pageSize] ListModelVersionsRequest pageSize + * @property {string|null} [pageToken] ListModelVersionsRequest pageToken + * @property {string|null} [filter] ListModelVersionsRequest filter + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelVersionsRequest readMask + * @property {string|null} [orderBy] ListModelVersionsRequest orderBy */ /** - * Constructs a new ExportModelResponse. + * Constructs a new ListModelVersionsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExportModelResponse. - * @implements IExportModelResponse + * @classdesc Represents a ListModelVersionsRequest. + * @implements IListModelVersionsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IExportModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set */ - function ExportModelResponse(properties) { + function ListModelVersionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115885,63 +119801,147 @@ } /** - * Creates a new ExportModelResponse instance using the specified properties. + * ListModelVersionsRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.name = ""; + + /** + * ListModelVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageSize = 0; + + /** + * ListModelVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageToken = ""; + + /** + * ListModelVersionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.filter = ""; + + /** + * ListModelVersionsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.readMask = null; + + /** + * ListModelVersionsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListModelVersionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest instance */ - ExportModelResponse.create = function create(properties) { - return new ExportModelResponse(properties); + ListModelVersionsRequest.create = function create(properties) { + return new ListModelVersionsRequest(properties); }; /** - * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelResponse.encode = function encode(message, writer) { + ListModelVersionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelResponse message from the specified reader or buffer. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelResponse.decode = function decode(reader, length) { + ListModelVersionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelVersionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 6: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -115951,110 +119951,170 @@ }; /** - * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelVersionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelResponse message. + * Verifies a ListModelVersionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelResponse.verify = function verify(message) { + ListModelVersionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest */ - ExportModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelResponse) + ListModelVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsRequest) return object; - return new $root.google.cloud.aiplatform.v1.ExportModelResponse(); + var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; }; /** - * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1.ExportModelResponse} message ExportModelResponse + * @param {google.cloud.aiplatform.v1.ListModelVersionsRequest} message ListModelVersionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelResponse.toObject = function toObject() { - return {}; + ListModelVersionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.readMask = null; + object.orderBy = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; }; /** - * Converts this ExportModelResponse to JSON. + * Converts this ListModelVersionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @instance * @returns {Object.} JSON object */ - ExportModelResponse.prototype.toJSON = function toJSON() { + ListModelVersionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportModelResponse + * Gets the default type url for ListModelVersionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelVersionsRequest"; }; - return ExportModelResponse; + return ListModelVersionsRequest; })(); - v1.ImportModelEvaluationRequest = (function() { + v1.ListModelVersionsResponse = (function() { /** - * Properties of an ImportModelEvaluationRequest. + * Properties of a ListModelVersionsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IImportModelEvaluationRequest - * @property {string|null} [parent] ImportModelEvaluationRequest parent - * @property {google.cloud.aiplatform.v1.IModelEvaluation|null} [modelEvaluation] ImportModelEvaluationRequest modelEvaluation + * @interface IListModelVersionsResponse + * @property {Array.|null} [models] ListModelVersionsResponse models + * @property {string|null} [nextPageToken] ListModelVersionsResponse nextPageToken */ /** - * Constructs a new ImportModelEvaluationRequest. + * Constructs a new ListModelVersionsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ImportModelEvaluationRequest. - * @implements IImportModelEvaluationRequest + * @classdesc Represents a ListModelVersionsResponse. + * @implements IListModelVersionsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set */ - function ImportModelEvaluationRequest(properties) { + function ListModelVersionsResponse(properties) { + this.models = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116062,89 +120122,92 @@ } /** - * ImportModelEvaluationRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * ListModelVersionsResponse models. + * @member {Array.} models + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @instance */ - ImportModelEvaluationRequest.prototype.parent = ""; + ListModelVersionsResponse.prototype.models = $util.emptyArray; /** - * ImportModelEvaluationRequest modelEvaluation. - * @member {google.cloud.aiplatform.v1.IModelEvaluation|null|undefined} modelEvaluation - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * ListModelVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @instance */ - ImportModelEvaluationRequest.prototype.modelEvaluation = null; + ListModelVersionsResponse.prototype.nextPageToken = ""; /** - * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * Creates a new ListModelVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse instance */ - ImportModelEvaluationRequest.create = function create(properties) { - return new ImportModelEvaluationRequest(properties); + ListModelVersionsResponse.create = function create(properties) { + return new ListModelVersionsResponse(properties); }; /** - * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportModelEvaluationRequest.encode = function encode(message, writer) { + ListModelVersionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.modelEvaluation != null && Object.hasOwnProperty.call(message, "modelEvaluation")) - $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.models != null && message.models.length) + for (var i = 0; i < message.models.length; ++i) + $root.google.cloud.aiplatform.v1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * Decodes a ListModelVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportModelEvaluationRequest.decode = function decode(reader, length) { + ListModelVersionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.models && message.models.length)) + message.models = []; + message.models.push($root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32())); break; } case 2: { - message.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -116156,138 +120219,149 @@ }; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportModelEvaluationRequest message. + * Verifies a ListModelVersionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportModelEvaluationRequest.verify = function verify(message) { + ListModelVersionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluation); - if (error) - return "modelEvaluation." + error; + if (message.models != null && message.hasOwnProperty("models")) { + if (!Array.isArray(message.models)) + return "models: array expected"; + for (var i = 0; i < message.models.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.models[i]); + if (error) + return "models." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse */ - ImportModelEvaluationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest) + ListModelVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelEvaluation != null) { - if (typeof object.modelEvaluation !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ImportModelEvaluationRequest.modelEvaluation: object expected"); - message.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluation); + var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsResponse(); + if (object.models) { + if (!Array.isArray(object.models)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: array expected"); + message.models = []; + for (var i = 0; i < object.models.length; ++i) { + if (typeof object.models[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: object expected"); + message.models[i] = $root.google.cloud.aiplatform.v1.Model.fromObject(object.models[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} message ImportModelEvaluationRequest + * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} message ListModelVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportModelEvaluationRequest.toObject = function toObject(message, options) { + ListModelVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelEvaluation = null; + if (options.arrays || options.defaults) + object.models = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.models && message.models.length) { + object.models = []; + for (var j = 0; j < message.models.length; ++j) + object.models[j] = $root.google.cloud.aiplatform.v1.Model.toObject(message.models[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) - object.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluation, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ImportModelEvaluationRequest to JSON. + * Converts this ListModelVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @instance * @returns {Object.} JSON object */ - ImportModelEvaluationRequest.prototype.toJSON = function toJSON() { + ListModelVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportModelEvaluationRequest + * Gets the default type url for ListModelVersionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportModelEvaluationRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelVersionsResponse"; }; - return ImportModelEvaluationRequest; + return ListModelVersionsResponse; })(); - v1.BatchImportModelEvaluationSlicesRequest = (function() { + v1.UpdateModelRequest = (function() { /** - * Properties of a BatchImportModelEvaluationSlicesRequest. + * Properties of an UpdateModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchImportModelEvaluationSlicesRequest - * @property {string|null} [parent] BatchImportModelEvaluationSlicesRequest parent - * @property {Array.|null} [modelEvaluationSlices] BatchImportModelEvaluationSlicesRequest modelEvaluationSlices + * @interface IUpdateModelRequest + * @property {google.cloud.aiplatform.v1.IModel|null} [model] UpdateModelRequest model + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelRequest updateMask */ /** - * Constructs a new BatchImportModelEvaluationSlicesRequest. + * Constructs a new UpdateModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchImportModelEvaluationSlicesRequest. - * @implements IBatchImportModelEvaluationSlicesRequest + * @classdesc Represents an UpdateModelRequest. + * @implements IUpdateModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest=} [properties] Properties to set */ - function BatchImportModelEvaluationSlicesRequest(properties) { - this.modelEvaluationSlices = []; + function UpdateModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116295,92 +120369,89 @@ } /** - * BatchImportModelEvaluationSlicesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * UpdateModelRequest model. + * @member {google.cloud.aiplatform.v1.IModel|null|undefined} model + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @instance */ - BatchImportModelEvaluationSlicesRequest.prototype.parent = ""; + UpdateModelRequest.prototype.model = null; /** - * BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. - * @member {Array.} modelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * UpdateModelRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @instance */ - BatchImportModelEvaluationSlicesRequest.prototype.modelEvaluationSlices = $util.emptyArray; + UpdateModelRequest.prototype.updateMask = null; /** - * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * Creates a new UpdateModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest instance */ - BatchImportModelEvaluationSlicesRequest.create = function create(properties) { - return new BatchImportModelEvaluationSlicesRequest(properties); + UpdateModelRequest.create = function create(properties) { + return new UpdateModelRequest(properties); }; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesRequest.encode = function encode(message, writer) { + UpdateModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + $root.google.cloud.aiplatform.v1.Model.encode(message.model, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes an UpdateModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesRequest.decode = function decode(reader, length) { + UpdateModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.model = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) - message.modelEvaluationSlices = []; - message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -116392,149 +120463,141 @@ }; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchImportModelEvaluationSlicesRequest message. + * Verifies an UpdateModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchImportModelEvaluationSlicesRequest.verify = function verify(message) { + UpdateModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { - if (!Array.isArray(message.modelEvaluationSlices)) - return "modelEvaluationSlices: array expected"; - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); - if (error) - return "modelEvaluationSlices." + error; - } + if (message.model != null && message.hasOwnProperty("model")) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.model); + if (error) + return "model." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest */ - BatchImportModelEvaluationSlicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest) + UpdateModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelEvaluationSlices) { - if (!Array.isArray(object.modelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: array expected"); - message.modelEvaluationSlices = []; - for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { - if (typeof object.modelEvaluationSlices[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: object expected"); - message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); - } + var message = new $root.google.cloud.aiplatform.v1.UpdateModelRequest(); + if (object.model != null) { + if (typeof object.model !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelRequest.model: object expected"); + message.model = $root.google.cloud.aiplatform.v1.Model.fromObject(object.model); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest + * @param {google.cloud.aiplatform.v1.UpdateModelRequest} message UpdateModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchImportModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + UpdateModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluationSlices = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { - object.modelEvaluationSlices = []; - for (var j = 0; j < message.modelEvaluationSlices.length; ++j) - object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); + if (options.defaults) { + object.model = null; + object.updateMask = null; } + if (message.model != null && message.hasOwnProperty("model")) + object.model = $root.google.cloud.aiplatform.v1.Model.toObject(message.model, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * Converts this UpdateModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @instance * @returns {Object.} JSON object */ - BatchImportModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + UpdateModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchImportModelEvaluationSlicesRequest + * Gets the default type url for UpdateModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchImportModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelRequest"; }; - return BatchImportModelEvaluationSlicesRequest; + return UpdateModelRequest; })(); - v1.BatchImportModelEvaluationSlicesResponse = (function() { + v1.DeleteModelRequest = (function() { /** - * Properties of a BatchImportModelEvaluationSlicesResponse. + * Properties of a DeleteModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchImportModelEvaluationSlicesResponse - * @property {Array.|null} [importedModelEvaluationSlices] BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices + * @interface IDeleteModelRequest + * @property {string|null} [name] DeleteModelRequest name */ /** - * Constructs a new BatchImportModelEvaluationSlicesResponse. + * Constructs a new DeleteModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchImportModelEvaluationSlicesResponse. - * @implements IBatchImportModelEvaluationSlicesResponse + * @classdesc Represents a DeleteModelRequest. + * @implements IDeleteModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest=} [properties] Properties to set */ - function BatchImportModelEvaluationSlicesResponse(properties) { - this.importedModelEvaluationSlices = []; + function DeleteModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116542,78 +120605,75 @@ } /** - * BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. - * @member {Array.} importedModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * DeleteModelRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @instance */ - BatchImportModelEvaluationSlicesResponse.prototype.importedModelEvaluationSlices = $util.emptyArray; + DeleteModelRequest.prototype.name = ""; /** - * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * Creates a new DeleteModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse instance + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest instance */ - BatchImportModelEvaluationSlicesResponse.create = function create(properties) { - return new BatchImportModelEvaluationSlicesResponse(properties); + DeleteModelRequest.create = function create(properties) { + return new DeleteModelRequest(properties); }; /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesResponse.encode = function encode(message, writer) { + DeleteModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.importedModelEvaluationSlices != null && message.importedModelEvaluationSlices.length) - for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.importedModelEvaluationSlices[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * Decodes a DeleteModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesResponse.decode = function decode(reader, length) { + DeleteModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length)) - message.importedModelEvaluationSlices = []; - message.importedModelEvaluationSlices.push(reader.string()); + message.name = reader.string(); break; } default: @@ -116625,134 +120685,122 @@ }; /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchImportModelEvaluationSlicesResponse message. + * Verifies a DeleteModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchImportModelEvaluationSlicesResponse.verify = function verify(message) { + DeleteModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.importedModelEvaluationSlices != null && message.hasOwnProperty("importedModelEvaluationSlices")) { - if (!Array.isArray(message.importedModelEvaluationSlices)) - return "importedModelEvaluationSlices: array expected"; - for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) - if (!$util.isString(message.importedModelEvaluationSlices[i])) - return "importedModelEvaluationSlices: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest */ - BatchImportModelEvaluationSlicesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) + DeleteModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse(); - if (object.importedModelEvaluationSlices) { - if (!Array.isArray(object.importedModelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.importedModelEvaluationSlices: array expected"); - message.importedModelEvaluationSlices = []; - for (var i = 0; i < object.importedModelEvaluationSlices.length; ++i) - message.importedModelEvaluationSlices[i] = String(object.importedModelEvaluationSlices[i]); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteModelRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse + * @param {google.cloud.aiplatform.v1.DeleteModelRequest} message DeleteModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchImportModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + DeleteModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.importedModelEvaluationSlices = []; - if (message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length) { - object.importedModelEvaluationSlices = []; - for (var j = 0; j < message.importedModelEvaluationSlices.length; ++j) - object.importedModelEvaluationSlices[j] = message.importedModelEvaluationSlices[j]; - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * Converts this DeleteModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @instance * @returns {Object.} JSON object */ - BatchImportModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + DeleteModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchImportModelEvaluationSlicesResponse + * Gets the default type url for DeleteModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchImportModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelRequest"; }; - return BatchImportModelEvaluationSlicesResponse; + return DeleteModelRequest; })(); - v1.GetModelEvaluationRequest = (function() { + v1.DeleteModelVersionRequest = (function() { /** - * Properties of a GetModelEvaluationRequest. + * Properties of a DeleteModelVersionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelEvaluationRequest - * @property {string|null} [name] GetModelEvaluationRequest name + * @interface IDeleteModelVersionRequest + * @property {string|null} [name] DeleteModelVersionRequest name */ /** - * Constructs a new GetModelEvaluationRequest. + * Constructs a new DeleteModelVersionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelEvaluationRequest. - * @implements IGetModelEvaluationRequest + * @classdesc Represents a DeleteModelVersionRequest. + * @implements IDeleteModelVersionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set */ - function GetModelEvaluationRequest(properties) { + function DeleteModelVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116760,35 +120808,35 @@ } /** - * GetModelEvaluationRequest name. + * DeleteModelVersionRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @instance */ - GetModelEvaluationRequest.prototype.name = ""; + DeleteModelVersionRequest.prototype.name = ""; /** - * Creates a new GetModelEvaluationRequest instance using the specified properties. + * Creates a new DeleteModelVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest instance */ - GetModelEvaluationRequest.create = function create(properties) { - return new GetModelEvaluationRequest(properties); + DeleteModelVersionRequest.create = function create(properties) { + return new DeleteModelVersionRequest(properties); }; /** - * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationRequest.encode = function encode(message, writer) { + DeleteModelVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -116797,33 +120845,33 @@ }; /** - * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationRequest.decode = function decode(reader, length) { + DeleteModelVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -116840,30 +120888,30 @@ }; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteModelVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelEvaluationRequest message. + * Verifies a DeleteModelVersionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelEvaluationRequest.verify = function verify(message) { + DeleteModelVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -116873,32 +120921,32 @@ }; /** - * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest */ - GetModelEvaluationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest) + DeleteModelVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1.GetModelEvaluationRequest} message GetModelEvaluationRequest + * @param {google.cloud.aiplatform.v1.DeleteModelVersionRequest} message DeleteModelVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelEvaluationRequest.toObject = function toObject(message, options) { + DeleteModelVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -116910,56 +120958,54 @@ }; /** - * Converts this GetModelEvaluationRequest to JSON. + * Converts this DeleteModelVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @instance * @returns {Object.} JSON object */ - GetModelEvaluationRequest.prototype.toJSON = function toJSON() { + DeleteModelVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelEvaluationRequest + * Gets the default type url for DeleteModelVersionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelVersionRequest"; }; - return GetModelEvaluationRequest; + return DeleteModelVersionRequest; })(); - v1.ListModelEvaluationsRequest = (function() { + v1.MergeVersionAliasesRequest = (function() { /** - * Properties of a ListModelEvaluationsRequest. + * Properties of a MergeVersionAliasesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationsRequest - * @property {string|null} [parent] ListModelEvaluationsRequest parent - * @property {string|null} [filter] ListModelEvaluationsRequest filter - * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask + * @interface IMergeVersionAliasesRequest + * @property {string|null} [name] MergeVersionAliasesRequest name + * @property {Array.|null} [versionAliases] MergeVersionAliasesRequest versionAliases */ /** - * Constructs a new ListModelEvaluationsRequest. + * Constructs a new MergeVersionAliasesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationsRequest. - * @implements IListModelEvaluationsRequest + * @classdesc Represents a MergeVersionAliasesRequest. + * @implements IMergeVersionAliasesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set */ - function ListModelEvaluationsRequest(properties) { + function MergeVersionAliasesRequest(properties) { + this.versionAliases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116967,131 +121013,92 @@ } /** - * ListModelEvaluationsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.parent = ""; - - /** - * ListModelEvaluationsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.filter = ""; - - /** - * ListModelEvaluationsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.pageSize = 0; - - /** - * ListModelEvaluationsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * MergeVersionAliasesRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @instance */ - ListModelEvaluationsRequest.prototype.pageToken = ""; + MergeVersionAliasesRequest.prototype.name = ""; /** - * ListModelEvaluationsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * MergeVersionAliasesRequest versionAliases. + * @member {Array.} versionAliases + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @instance */ - ListModelEvaluationsRequest.prototype.readMask = null; + MergeVersionAliasesRequest.prototype.versionAliases = $util.emptyArray; /** - * Creates a new ListModelEvaluationsRequest instance using the specified properties. + * Creates a new MergeVersionAliasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest instance */ - ListModelEvaluationsRequest.create = function create(properties) { - return new ListModelEvaluationsRequest(properties); + MergeVersionAliasesRequest.create = function create(properties) { + return new MergeVersionAliasesRequest(properties); }; /** - * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsRequest.encode = function encode(message, writer) { + MergeVersionAliasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.versionAliases != null && message.versionAliases.length) + for (var i = 0; i < message.versionAliases.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.versionAliases[i]); return writer; }; /** - * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MergeVersionAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsRequest.decode = function decode(reader, length) { + MergeVersionAliasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.versionAliases && message.versionAliases.length)) + message.versionAliases = []; + message.versionAliases.push(reader.string()); break; } default: @@ -117103,162 +121110,144 @@ }; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { + MergeVersionAliasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationsRequest message. + * Verifies a MergeVersionAliasesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationsRequest.verify = function verify(message) { + MergeVersionAliasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { + if (!Array.isArray(message.versionAliases)) + return "versionAliases: array expected"; + for (var i = 0; i < message.versionAliases.length; ++i) + if (!$util.isString(message.versionAliases[i])) + return "versionAliases: string[] expected"; } return null; }; /** - * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest */ - ListModelEvaluationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest) + MergeVersionAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.versionAliases) { + if (!Array.isArray(object.versionAliases)) + throw TypeError(".google.cloud.aiplatform.v1.MergeVersionAliasesRequest.versionAliases: array expected"); + message.versionAliases = []; + for (var i = 0; i < object.versionAliases.length; ++i) + message.versionAliases[i] = String(object.versionAliases[i]); } return message; }; /** - * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest + * @param {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} message MergeVersionAliasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationsRequest.toObject = function toObject(message, options) { + MergeVersionAliasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + if (options.arrays || options.defaults) + object.versionAliases = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.versionAliases && message.versionAliases.length) { + object.versionAliases = []; + for (var j = 0; j < message.versionAliases.length; ++j) + object.versionAliases[j] = message.versionAliases[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListModelEvaluationsRequest to JSON. + * Converts this MergeVersionAliasesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @instance * @returns {Object.} JSON object */ - ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { + MergeVersionAliasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationsRequest + * Gets the default type url for MergeVersionAliasesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MergeVersionAliasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MergeVersionAliasesRequest"; }; - return ListModelEvaluationsRequest; + return MergeVersionAliasesRequest; })(); - v1.ListModelEvaluationsResponse = (function() { + v1.ExportModelRequest = (function() { /** - * Properties of a ListModelEvaluationsResponse. + * Properties of an ExportModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationsResponse - * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations - * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken + * @interface IExportModelRequest + * @property {string|null} [name] ExportModelRequest name + * @property {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null} [outputConfig] ExportModelRequest outputConfig */ /** - * Constructs a new ListModelEvaluationsResponse. + * Constructs a new ExportModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationsResponse. - * @implements IListModelEvaluationsResponse + * @classdesc Represents an ExportModelRequest. + * @implements IExportModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IExportModelRequest=} [properties] Properties to set */ - function ListModelEvaluationsResponse(properties) { - this.modelEvaluations = []; + function ExportModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117266,92 +121255,89 @@ } /** - * ListModelEvaluationsResponse modelEvaluations. - * @member {Array.} modelEvaluations - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * ExportModelRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @instance */ - ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; + ExportModelRequest.prototype.name = ""; /** - * ListModelEvaluationsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * ExportModelRequest outputConfig. + * @member {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null|undefined} outputConfig + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @instance */ - ListModelEvaluationsResponse.prototype.nextPageToken = ""; + ExportModelRequest.prototype.outputConfig = null; /** - * Creates a new ListModelEvaluationsResponse instance using the specified properties. + * Creates a new ExportModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance + * @param {google.cloud.aiplatform.v1.IExportModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest instance */ - ListModelEvaluationsResponse.create = function create(properties) { - return new ListModelEvaluationsResponse(properties); + ExportModelRequest.create = function create(properties) { + return new ExportModelRequest(properties); }; /** - * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportModelRequest} message ExportModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsResponse.encode = function encode(message, writer) { + ExportModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelEvaluations != null && message.modelEvaluations.length) - for (var i = 0; i < message.modelEvaluations.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) + $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportModelRequest} message ExportModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. + * Decodes an ExportModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsResponse.decode = function decode(reader, length) { + ExportModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelEvaluations && message.modelEvaluations.length)) - message.modelEvaluations = []; - message.modelEvaluations.push($root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.decode(reader, reader.uint32()); break; } default: @@ -117363,148 +121349,397 @@ }; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { + ExportModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationsResponse message. + * Verifies an ExportModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationsResponse.verify = function verify(message) { + ExportModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { - if (!Array.isArray(message.modelEvaluations)) - return "modelEvaluations: array expected"; - for (var i = 0; i < message.modelEvaluations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluations[i]); - if (error) - return "modelEvaluations." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) { + var error = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify(message.outputConfig); + if (error) + return "outputConfig." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest */ - ListModelEvaluationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse) + ExportModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); - if (object.modelEvaluations) { - if (!Array.isArray(object.modelEvaluations)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: array expected"); - message.modelEvaluations = []; - for (var i = 0; i < object.modelEvaluations.length; ++i) { - if (typeof object.modelEvaluations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: object expected"); - message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluations[i]); - } + var message = new $root.google.cloud.aiplatform.v1.ExportModelRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.outputConfig != null) { + if (typeof object.outputConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.outputConfig: object expected"); + message.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.fromObject(object.outputConfig); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse + * @param {google.cloud.aiplatform.v1.ExportModelRequest} message ExportModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationsResponse.toObject = function toObject(message, options) { + ExportModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluations = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.modelEvaluations && message.modelEvaluations.length) { - object.modelEvaluations = []; - for (var j = 0; j < message.modelEvaluations.length; ++j) - object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluations[j], options); + if (options.defaults) { + object.name = ""; + object.outputConfig = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) + object.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.toObject(message.outputConfig, options); return object; }; /** - * Converts this ListModelEvaluationsResponse to JSON. + * Converts this ExportModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @instance * @returns {Object.} JSON object */ - ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { + ExportModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationsResponse + * Gets the default type url for ExportModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelRequest"; }; - return ListModelEvaluationsResponse; + ExportModelRequest.OutputConfig = (function() { + + /** + * Properties of an OutputConfig. + * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @interface IOutputConfig + * @property {string|null} [exportFormatId] OutputConfig exportFormatId + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [artifactDestination] OutputConfig artifactDestination + * @property {google.cloud.aiplatform.v1.IContainerRegistryDestination|null} [imageDestination] OutputConfig imageDestination + */ + + /** + * Constructs a new OutputConfig. + * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @classdesc Represents an OutputConfig. + * @implements IOutputConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig=} [properties] Properties to set + */ + function OutputConfig(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]]; + } + + /** + * OutputConfig exportFormatId. + * @member {string} exportFormatId + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @instance + */ + OutputConfig.prototype.exportFormatId = ""; + + /** + * OutputConfig artifactDestination. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} artifactDestination + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @instance + */ + OutputConfig.prototype.artifactDestination = null; + + /** + * OutputConfig imageDestination. + * @member {google.cloud.aiplatform.v1.IContainerRegistryDestination|null|undefined} imageDestination + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @instance + */ + OutputConfig.prototype.imageDestination = null; + + /** + * Creates a new OutputConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig instance + */ + OutputConfig.create = function create(properties) { + return new OutputConfig(properties); + }; + + /** + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exportFormatId != null && Object.hasOwnProperty.call(message, "exportFormatId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportFormatId); + if (message.artifactDestination != null && Object.hasOwnProperty.call(message, "artifactDestination")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.artifactDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.imageDestination != null && Object.hasOwnProperty.call(message, "imageDestination")) + $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.encode(message.imageDestination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OutputConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.exportFormatId = reader.string(); + break; + } + case 3: { + message.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 4: { + message.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OutputConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) + if (!$util.isString(message.exportFormatId)) + return "exportFormatId: string expected"; + if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.artifactDestination); + if (error) + return "artifactDestination." + error; + } + if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) { + var error = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.verify(message.imageDestination); + if (error) + return "imageDestination." + error; + } + return null; + }; + + /** + * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig + */ + OutputConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig(); + if (object.exportFormatId != null) + message.exportFormatId = String(object.exportFormatId); + if (object.artifactDestination != null) { + if (typeof object.artifactDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.artifactDestination: object expected"); + message.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.artifactDestination); + } + if (object.imageDestination != null) { + if (typeof object.imageDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.imageDestination: object expected"); + message.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.fromObject(object.imageDestination); + } + return message; + }; + + /** + * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} message OutputConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OutputConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.exportFormatId = ""; + object.artifactDestination = null; + object.imageDestination = null; + } + if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) + object.exportFormatId = message.exportFormatId; + if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) + object.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.artifactDestination, options); + if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) + object.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.toObject(message.imageDestination, options); + return object; + }; + + /** + * Converts this OutputConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @instance + * @returns {Object.} JSON object + */ + OutputConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OutputConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig"; + }; + + return OutputConfig; + })(); + + return ExportModelRequest; })(); - v1.GetModelEvaluationSliceRequest = (function() { + v1.ExportModelOperationMetadata = (function() { /** - * Properties of a GetModelEvaluationSliceRequest. + * Properties of an ExportModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelEvaluationSliceRequest - * @property {string|null} [name] GetModelEvaluationSliceRequest name + * @interface IExportModelOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] ExportModelOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null} [outputInfo] ExportModelOperationMetadata outputInfo */ /** - * Constructs a new GetModelEvaluationSliceRequest. + * Constructs a new ExportModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelEvaluationSliceRequest. - * @implements IGetModelEvaluationSliceRequest + * @classdesc Represents an ExportModelOperationMetadata. + * @implements IExportModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata=} [properties] Properties to set */ - function GetModelEvaluationSliceRequest(properties) { + function ExportModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117512,75 +121747,89 @@ } /** - * GetModelEvaluationSliceRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * ExportModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @instance */ - GetModelEvaluationSliceRequest.prototype.name = ""; + ExportModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. + * ExportModelOperationMetadata outputInfo. + * @member {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null|undefined} outputInfo + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @instance + */ + ExportModelOperationMetadata.prototype.outputInfo = null; + + /** + * Creates a new ExportModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance + * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata instance */ - GetModelEvaluationSliceRequest.create = function create(properties) { - return new GetModelEvaluationSliceRequest(properties); + ExportModelOperationMetadata.create = function create(properties) { + return new ExportModelOperationMetadata(properties); }; /** - * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationSliceRequest.encode = function encode(message, writer) { + ExportModelOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) + $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.encode(message.outputInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationSliceRequest.decode = function decode(reader, length) { + ExportModelOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + message.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.decode(reader, reader.uint32()); break; } default: @@ -117592,126 +121841,367 @@ }; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { + ExportModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelEvaluationSliceRequest message. + * Verifies an ExportModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelEvaluationSliceRequest.verify = function verify(message) { + ExportModelOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) { + var error = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify(message.outputInfo); + if (error) + return "outputInfo." + error; + } return null; }; /** - * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata */ - GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest) + ExportModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.outputInfo != null) { + if (typeof object.outputInfo !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelOperationMetadata.outputInfo: object expected"); + message.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.fromObject(object.outputInfo); + } return message; }; /** - * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata} message ExportModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelEvaluationSliceRequest.toObject = function toObject(message, options) { + ExportModelOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.genericMetadata = null; + object.outputInfo = null; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) + object.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.toObject(message.outputInfo, options); return object; }; /** - * Converts this GetModelEvaluationSliceRequest to JSON. + * Converts this ExportModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @instance * @returns {Object.} JSON object */ - GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { + ExportModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelEvaluationSliceRequest + * Gets the default type url for ExportModelOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelEvaluationSliceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelOperationMetadata"; }; - return GetModelEvaluationSliceRequest; + ExportModelOperationMetadata.OutputInfo = (function() { + + /** + * Properties of an OutputInfo. + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @interface IOutputInfo + * @property {string|null} [artifactOutputUri] OutputInfo artifactOutputUri + * @property {string|null} [imageOutputUri] OutputInfo imageOutputUri + */ + + /** + * Constructs a new OutputInfo. + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @classdesc Represents an OutputInfo. + * @implements IOutputInfo + * @constructor + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set + */ + function OutputInfo(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]]; + } + + /** + * OutputInfo artifactOutputUri. + * @member {string} artifactOutputUri + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @instance + */ + OutputInfo.prototype.artifactOutputUri = ""; + + /** + * OutputInfo imageOutputUri. + * @member {string} imageOutputUri + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @instance + */ + OutputInfo.prototype.imageOutputUri = ""; + + /** + * Creates a new OutputInfo instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo instance + */ + OutputInfo.create = function create(properties) { + return new OutputInfo(properties); + }; + + /** + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactOutputUri != null && Object.hasOwnProperty.call(message, "artifactOutputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifactOutputUri); + if (message.imageOutputUri != null && Object.hasOwnProperty.call(message, "imageOutputUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.imageOutputUri); + return writer; + }; + + /** + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OutputInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.artifactOutputUri = reader.string(); + break; + } + case 3: { + message.imageOutputUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OutputInfo message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) + if (!$util.isString(message.artifactOutputUri)) + return "artifactOutputUri: string expected"; + if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) + if (!$util.isString(message.imageOutputUri)) + return "imageOutputUri: string expected"; + return null; + }; + + /** + * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo + */ + OutputInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo(); + if (object.artifactOutputUri != null) + message.artifactOutputUri = String(object.artifactOutputUri); + if (object.imageOutputUri != null) + message.imageOutputUri = String(object.imageOutputUri); + return message; + }; + + /** + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} message OutputInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OutputInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.artifactOutputUri = ""; + object.imageOutputUri = ""; + } + if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) + object.artifactOutputUri = message.artifactOutputUri; + if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) + object.imageOutputUri = message.imageOutputUri; + return object; + }; + + /** + * Converts this OutputInfo to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @instance + * @returns {Object.} JSON object + */ + OutputInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OutputInfo + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OutputInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo"; + }; + + return OutputInfo; + })(); + + return ExportModelOperationMetadata; })(); - v1.ListModelEvaluationSlicesRequest = (function() { + v1.ExportModelResponse = (function() { /** - * Properties of a ListModelEvaluationSlicesRequest. + * Properties of an ExportModelResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationSlicesRequest - * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent - * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter - * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask + * @interface IExportModelResponse */ /** - * Constructs a new ListModelEvaluationSlicesRequest. + * Constructs a new ExportModelResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationSlicesRequest. - * @implements IListModelEvaluationSlicesRequest + * @classdesc Represents an ExportModelResponse. + * @implements IExportModelResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IExportModelResponse=} [properties] Properties to set */ - function ListModelEvaluationSlicesRequest(properties) { + function ExportModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117719,131 +122209,325 @@ } /** - * ListModelEvaluationSlicesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * Creates a new ExportModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1.IExportModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse instance + */ + ExportModelResponse.create = function create(properties) { + return new ExportModelResponse(properties); + }; + + /** + * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + */ + ExportModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelResponse) + return object; + return new $root.google.cloud.aiplatform.v1.ExportModelResponse(); + }; + + /** + * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1.ExportModelResponse} message ExportModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportModelResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ExportModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExportModelResponse * @instance + * @returns {Object.} JSON object */ - ListModelEvaluationSlicesRequest.prototype.parent = ""; + ExportModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ListModelEvaluationSlicesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * Gets the default type url for ExportModelResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelResponse"; + }; + + return ExportModelResponse; + })(); + + v1.CopyModelRequest = (function() { + + /** + * Properties of a CopyModelRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICopyModelRequest + * @property {string|null} [modelId] CopyModelRequest modelId + * @property {string|null} [parentModel] CopyModelRequest parentModel + * @property {string|null} [parent] CopyModelRequest parent + * @property {string|null} [sourceModel] CopyModelRequest sourceModel + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] CopyModelRequest encryptionSpec + */ + + /** + * Constructs a new CopyModelRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CopyModelRequest. + * @implements ICopyModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICopyModelRequest=} [properties] Properties to set + */ + function CopyModelRequest(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]]; + } + + /** + * CopyModelRequest modelId. + * @member {string|null|undefined} modelId + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.filter = ""; + CopyModelRequest.prototype.modelId = null; /** - * ListModelEvaluationSlicesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * CopyModelRequest parentModel. + * @member {string|null|undefined} parentModel + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.pageSize = 0; + CopyModelRequest.prototype.parentModel = null; /** - * ListModelEvaluationSlicesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * CopyModelRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.pageToken = ""; + CopyModelRequest.prototype.parent = ""; /** - * ListModelEvaluationSlicesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * CopyModelRequest sourceModel. + * @member {string} sourceModel + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.readMask = null; + CopyModelRequest.prototype.sourceModel = ""; /** - * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. + * CopyModelRequest encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.encryptionSpec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CopyModelRequest destinationModel. + * @member {"modelId"|"parentModel"|undefined} destinationModel + * @memberof google.cloud.aiplatform.v1.CopyModelRequest + * @instance + */ + Object.defineProperty(CopyModelRequest.prototype, "destinationModel", { + get: $util.oneOfGetter($oneOfFields = ["modelId", "parentModel"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CopyModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance + * @param {google.cloud.aiplatform.v1.ICopyModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CopyModelRequest} CopyModelRequest instance */ - ListModelEvaluationSlicesRequest.create = function create(properties) { - return new ListModelEvaluationSlicesRequest(properties); + CopyModelRequest.create = function create(properties) { + return new CopyModelRequest(properties); }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICopyModelRequest} message CopyModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encode = function encode(message, writer) { + CopyModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.sourceModel != null && Object.hasOwnProperty.call(message, "sourceModel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceModel); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelId); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parentModel); return writer; }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICopyModelRequest} message CopyModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CopyModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a CopyModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.CopyModelRequest} CopyModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decode = function decode(reader, length) { + CopyModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CopyModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); + case 4: { + message.modelId = reader.string(); break; } - case 2: { - message.filter = reader.string(); + case 5: { + message.parentModel = reader.string(); break; } - case 3: { - message.pageSize = reader.int32(); + case 1: { + message.parent = reader.string(); break; } - case 4: { - message.pageToken = reader.string(); + case 2: { + message.sourceModel = reader.string(); break; } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 3: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } default: @@ -117855,162 +122539,171 @@ }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.CopyModelRequest} CopyModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + CopyModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationSlicesRequest message. + * Verifies a CopyModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationSlicesRequest.verify = function verify(message) { + CopyModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.modelId != null && message.hasOwnProperty("modelId")) { + properties.destinationModel = 1; + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + if (properties.destinationModel === 1) + return "destinationModel: multiple values"; + properties.destinationModel = 1; + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + } if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + if (!$util.isString(message.sourceModel)) + return "sourceModel: string expected"; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); if (error) - return "readMask." + error; + return "encryptionSpec." + error; } return null; }; /** - * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.CopyModelRequest} CopyModelRequest */ - ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest) + CopyModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CopyModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); + var message = new $root.google.cloud.aiplatform.v1.CopyModelRequest(); + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + if (object.sourceModel != null) + message.sourceModel = String(object.sourceModel); + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CopyModelRequest.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } return message; }; /** - * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest + * @param {google.cloud.aiplatform.v1.CopyModelRequest} message CopyModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + CopyModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.sourceModel = ""; + object.encryptionSpec = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + object.sourceModel = message.sourceModel; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.modelId != null && message.hasOwnProperty("modelId")) { + object.modelId = message.modelId; + if (options.oneofs) + object.destinationModel = "modelId"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + object.parentModel = message.parentModel; + if (options.oneofs) + object.destinationModel = "parentModel"; + } return object; }; /** - * Converts this ListModelEvaluationSlicesRequest to JSON. + * Converts this CopyModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance * @returns {Object.} JSON object */ - ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + CopyModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationSlicesRequest + * Gets the default type url for CopyModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CopyModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CopyModelRequest"; }; - return ListModelEvaluationSlicesRequest; + return CopyModelRequest; })(); - v1.ListModelEvaluationSlicesResponse = (function() { + v1.CopyModelOperationMetadata = (function() { /** - * Properties of a ListModelEvaluationSlicesResponse. + * Properties of a CopyModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationSlicesResponse - * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices - * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken + * @interface ICopyModelOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CopyModelOperationMetadata genericMetadata */ /** - * Constructs a new ListModelEvaluationSlicesResponse. + * Constructs a new CopyModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationSlicesResponse. - * @implements IListModelEvaluationSlicesResponse + * @classdesc Represents a CopyModelOperationMetadata. + * @implements ICopyModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICopyModelOperationMetadata=} [properties] Properties to set */ - function ListModelEvaluationSlicesResponse(properties) { - this.modelEvaluationSlices = []; + function CopyModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118018,92 +122711,75 @@ } /** - * ListModelEvaluationSlicesResponse modelEvaluationSlices. - * @member {Array.} modelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse - * @instance - */ - ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; - - /** - * ListModelEvaluationSlicesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * CopyModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @instance */ - ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; + CopyModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. + * Creates a new CopyModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance + * @param {google.cloud.aiplatform.v1.ICopyModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CopyModelOperationMetadata} CopyModelOperationMetadata instance */ - ListModelEvaluationSlicesResponse.create = function create(properties) { - return new ListModelEvaluationSlicesResponse(properties); + CopyModelOperationMetadata.create = function create(properties) { + return new CopyModelOperationMetadata(properties); }; /** - * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { + CopyModelOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CopyModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.CopyModelOperationMetadata} CopyModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesResponse.decode = function decode(reader, length) { + CopyModelOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CopyModelOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) - message.modelEvaluationSlices = []; - message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -118115,181 +122791,128 @@ }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.CopyModelOperationMetadata} CopyModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + CopyModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationSlicesResponse message. + * Verifies a CopyModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationSlicesResponse.verify = function verify(message) { + CopyModelOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { - if (!Array.isArray(message.modelEvaluationSlices)) - return "modelEvaluationSlices: array expected"; - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); - if (error) - return "modelEvaluationSlices." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.CopyModelOperationMetadata} CopyModelOperationMetadata */ - ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) + CopyModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CopyModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); - if (object.modelEvaluationSlices) { - if (!Array.isArray(object.modelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: array expected"); - message.modelEvaluationSlices = []; - for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { - if (typeof object.modelEvaluationSlices[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); - message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CopyModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CopyModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse + * @param {google.cloud.aiplatform.v1.CopyModelOperationMetadata} message CopyModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + CopyModelOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluationSlices = []; if (options.defaults) - object.nextPageToken = ""; - if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { - object.modelEvaluationSlices = []; - for (var j = 0; j < message.modelEvaluationSlices.length; ++j) - object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this ListModelEvaluationSlicesResponse to JSON. + * Converts this CopyModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @instance * @returns {Object.} JSON object */ - ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + CopyModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationSlicesResponse + * Gets the default type url for CopyModelOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CopyModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CopyModelOperationMetadata"; }; - return ListModelEvaluationSlicesResponse; - })(); - - /** - * PipelineFailurePolicy enum. - * @name google.cloud.aiplatform.v1.PipelineFailurePolicy - * @enum {number} - * @property {number} PIPELINE_FAILURE_POLICY_UNSPECIFIED=0 PIPELINE_FAILURE_POLICY_UNSPECIFIED value - * @property {number} PIPELINE_FAILURE_POLICY_FAIL_SLOW=1 PIPELINE_FAILURE_POLICY_FAIL_SLOW value - * @property {number} PIPELINE_FAILURE_POLICY_FAIL_FAST=2 PIPELINE_FAILURE_POLICY_FAIL_FAST value - */ - v1.PipelineFailurePolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PIPELINE_FAILURE_POLICY_UNSPECIFIED"] = 0; - values[valuesById[1] = "PIPELINE_FAILURE_POLICY_FAIL_SLOW"] = 1; - values[valuesById[2] = "PIPELINE_FAILURE_POLICY_FAIL_FAST"] = 2; - return values; + return CopyModelOperationMetadata; })(); - v1.PipelineJob = (function() { + v1.CopyModelResponse = (function() { /** - * Properties of a PipelineJob. + * Properties of a CopyModelResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineJob - * @property {string|null} [name] PipelineJob name - * @property {string|null} [displayName] PipelineJob displayName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime - * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec - * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] PipelineJob state - * @property {google.cloud.aiplatform.v1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail - * @property {google.rpc.IStatus|null} [error] PipelineJob error - * @property {Object.|null} [labels] PipelineJob labels - * @property {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec - * @property {string|null} [serviceAccount] PipelineJob serviceAccount - * @property {string|null} [network] PipelineJob network - * @property {string|null} [templateUri] PipelineJob templateUri - * @property {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null} [templateMetadata] PipelineJob templateMetadata + * @interface ICopyModelResponse + * @property {string|null} [model] CopyModelResponse model + * @property {string|null} [modelVersionId] CopyModelResponse modelVersionId */ /** - * Constructs a new PipelineJob. + * Constructs a new CopyModelResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineJob. - * @implements IPipelineJob + * @classdesc Represents a CopyModelResponse. + * @implements ICopyModelResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICopyModelResponse=} [properties] Properties to set */ - function PipelineJob(properties) { - this.labels = {}; + function CopyModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118297,319 +122920,316 @@ } /** - * PipelineJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.PipelineJob + * CopyModelResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.CopyModelResponse * @instance */ - PipelineJob.prototype.name = ""; + CopyModelResponse.prototype.model = ""; /** - * PipelineJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.PipelineJob + * CopyModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.CopyModelResponse * @instance */ - PipelineJob.prototype.displayName = ""; + CopyModelResponse.prototype.modelVersionId = ""; /** - * PipelineJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Creates a new CopyModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1.ICopyModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CopyModelResponse} CopyModelResponse instance */ - PipelineJob.prototype.createTime = null; + CopyModelResponse.create = function create(properties) { + return new CopyModelResponse(properties); + }; /** - * PipelineJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PipelineJob.prototype.startTime = null; + CopyModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); + return writer; + }; /** - * PipelineJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PipelineJob.prototype.endTime = null; + CopyModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * PipelineJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Decodes a CopyModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.prototype.updateTime = null; + CopyModelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CopyModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 2: { + message.modelVersionId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * PipelineJob pipelineSpec. - * @member {google.protobuf.IStruct|null|undefined} pipelineSpec - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.prototype.pipelineSpec = null; + CopyModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * PipelineJob state. - * @member {google.cloud.aiplatform.v1.PipelineState} state - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Verifies a CopyModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJob.prototype.state = 0; + CopyModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + return null; + }; /** - * PipelineJob jobDetail. - * @member {google.cloud.aiplatform.v1.IPipelineJobDetail|null|undefined} jobDetail - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CopyModelResponse} CopyModelResponse */ - PipelineJob.prototype.jobDetail = null; + CopyModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CopyModelResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.CopyModelResponse(); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + return message; + }; /** - * PipelineJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1.CopyModelResponse} message CopyModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - PipelineJob.prototype.error = null; + CopyModelResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelVersionId = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + return object; + }; /** - * PipelineJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.PipelineJob + * Converts this CopyModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CopyModelResponse * @instance + * @returns {Object.} JSON object */ - PipelineJob.prototype.labels = $util.emptyObject; + CopyModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * PipelineJob runtimeConfig. - * @member {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Gets the default type url for CopyModelResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - PipelineJob.prototype.runtimeConfig = null; + CopyModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CopyModelResponse"; + }; - /** - * PipelineJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.encryptionSpec = null; + return CopyModelResponse; + })(); + + v1.ImportModelEvaluationRequest = (function() { /** - * PipelineJob serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Properties of an ImportModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IImportModelEvaluationRequest + * @property {string|null} [parent] ImportModelEvaluationRequest parent + * @property {google.cloud.aiplatform.v1.IModelEvaluation|null} [modelEvaluation] ImportModelEvaluationRequest modelEvaluation */ - PipelineJob.prototype.serviceAccount = ""; /** - * PipelineJob network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Constructs a new ImportModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ImportModelEvaluationRequest. + * @implements IImportModelEvaluationRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest=} [properties] Properties to set */ - PipelineJob.prototype.network = ""; + function ImportModelEvaluationRequest(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]]; + } /** - * PipelineJob templateUri. - * @member {string} templateUri - * @memberof google.cloud.aiplatform.v1.PipelineJob + * ImportModelEvaluationRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @instance */ - PipelineJob.prototype.templateUri = ""; + ImportModelEvaluationRequest.prototype.parent = ""; /** - * PipelineJob templateMetadata. - * @member {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null|undefined} templateMetadata - * @memberof google.cloud.aiplatform.v1.PipelineJob + * ImportModelEvaluationRequest modelEvaluation. + * @member {google.cloud.aiplatform.v1.IModelEvaluation|null|undefined} modelEvaluation + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @instance */ - PipelineJob.prototype.templateMetadata = null; + ImportModelEvaluationRequest.prototype.modelEvaluation = null; /** - * Creates a new PipelineJob instance using the specified properties. + * Creates a new ImportModelEvaluationRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob instance + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest instance */ - PipelineJob.create = function create(properties) { - return new PipelineJob(properties); + ImportModelEvaluationRequest.create = function create(properties) { + return new ImportModelEvaluationRequest(properties); }; /** - * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encode = function encode(message, writer) { + ImportModelEvaluationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) - $root.google.protobuf.Struct.encode(message.pipelineSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); - if (message.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) - $root.google.cloud.aiplatform.v1.PipelineJobDetail.encode(message.jobDetail, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) - $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); - if (message.templateUri != null && Object.hasOwnProperty.call(message, "templateUri")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.templateUri); - if (message.templateMetadata != null && Object.hasOwnProperty.call(message, "templateMetadata")) - $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.encode(message.templateMetadata, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelEvaluation != null && Object.hasOwnProperty.call(message, "modelEvaluation")) + $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { + ImportModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJob message from the specified reader or buffer. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.decode = function decode(reader, length) { + ImportModelEvaluationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - } - case 8: { - message.state = reader.int32(); - break; - } - case 9: { - message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.decode(reader, reader.uint32()); - break; - } - case 10: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 11: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 12: { - message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); - break; - } - case 16: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 17: { - message.serviceAccount = reader.string(); - break; - } - case 18: { - message.network = reader.string(); - break; - } - case 19: { - message.templateUri = reader.string(); - break; - } - case 20: { - message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.decode(reader, reader.uint32()); + message.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32()); break; } default: @@ -118621,1113 +123241,679 @@ }; /** - * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.decodeDelimited = function decodeDelimited(reader) { + ImportModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJob message. + * Verifies an ImportModelEvaluationRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJob.verify = function verify(message) { + ImportModelEvaluationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluation); if (error) - return "startTime." + error; + return "modelEvaluation." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; + return null; + }; + + /** + * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + */ + ImportModelEvaluationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelEvaluation != null) { + if (typeof object.modelEvaluation !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ImportModelEvaluationRequest.modelEvaluation: object expected"); + message.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluation); } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + return message; + }; + + /** + * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} message ImportModelEvaluationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImportModelEvaluationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.modelEvaluation = null; } - if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { - var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); - if (error) - return "pipelineSpec." + error; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) + object.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluation, options); + return object; + }; + + /** + * Converts this ImportModelEvaluationRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @instance + * @returns {Object.} JSON object + */ + ImportModelEvaluationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ImportModelEvaluationRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImportModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportModelEvaluationRequest"; + }; + + return ImportModelEvaluationRequest; + })(); + + v1.BatchImportModelEvaluationSlicesRequest = (function() { + + /** + * Properties of a BatchImportModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchImportModelEvaluationSlicesRequest + * @property {string|null} [parent] BatchImportModelEvaluationSlicesRequest parent + * @property {Array.|null} [modelEvaluationSlices] BatchImportModelEvaluationSlicesRequest modelEvaluationSlices + */ + + /** + * Constructs a new BatchImportModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchImportModelEvaluationSlicesRequest. + * @implements IBatchImportModelEvaluationSlicesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + */ + function BatchImportModelEvaluationSlicesRequest(properties) { + this.modelEvaluationSlices = []; + 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]]; + } + + /** + * BatchImportModelEvaluationSlicesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @instance + */ + BatchImportModelEvaluationSlicesRequest.prototype.parent = ""; + + /** + * BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @instance + */ + BatchImportModelEvaluationSlicesRequest.prototype.modelEvaluationSlices = $util.emptyArray; + + /** + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest instance + */ + BatchImportModelEvaluationSlicesRequest.create = function create(properties) { + return new BatchImportModelEvaluationSlicesRequest(properties); + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); + break; + } default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: + reader.skipType(tag & 7); break; } - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { - var error = $root.google.cloud.aiplatform.v1.PipelineJobDetail.verify(message.jobDetail); - if (error) - return "jobDetail." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); - if (error) - return "runtimeConfig." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.templateUri != null && message.hasOwnProperty("templateUri")) - if (!$util.isString(message.templateUri)) - return "templateUri: string expected"; - if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) { - var error = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify(message.templateMetadata); - if (error) - return "templateMetadata." + error; + return message; + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportModelEvaluationSlicesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportModelEvaluationSlicesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { + if (!Array.isArray(message.modelEvaluationSlices)) + return "modelEvaluationSlices: array expected"; + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); + if (error) + return "modelEvaluationSlices." + error; + } } return null; }; /** - * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest */ - PipelineJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob) + BatchImportModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: array expected"); + message.modelEvaluationSlices = []; + for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { + if (typeof object.modelEvaluationSlices[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); + } } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + return message; + }; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.modelEvaluationSlices = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { + object.modelEvaluationSlices = []; + for (var j = 0; j < message.modelEvaluationSlices.length; ++j) + object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); } - if (object.pipelineSpec != null) { - if (typeof object.pipelineSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.pipelineSpec: object expected"); - message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); + return object; + }; + + /** + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @instance + * @returns {Object.} JSON object + */ + BatchImportModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchImportModelEvaluationSlicesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchImportModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest"; + }; + + return BatchImportModelEvaluationSlicesRequest; + })(); + + v1.BatchImportModelEvaluationSlicesResponse = (function() { + + /** + * Properties of a BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchImportModelEvaluationSlicesResponse + * @property {Array.|null} [importedModelEvaluationSlices] BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices + */ + + /** + * Constructs a new BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchImportModelEvaluationSlicesResponse. + * @implements IBatchImportModelEvaluationSlicesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + */ + function BatchImportModelEvaluationSlicesResponse(properties) { + this.importedModelEvaluationSlices = []; + 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]]; + } + + /** + * BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. + * @member {Array.} importedModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @instance + */ + BatchImportModelEvaluationSlicesResponse.prototype.importedModelEvaluationSlices = $util.emptyArray; + + /** + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse instance + */ + BatchImportModelEvaluationSlicesResponse.create = function create(properties) { + return new BatchImportModelEvaluationSlicesResponse(properties); + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.importedModelEvaluationSlices != null && message.importedModelEvaluationSlices.length) + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.importedModelEvaluationSlices[i]); + return writer; + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length)) + message.importedModelEvaluationSlices = []; + message.importedModelEvaluationSlices.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - break; - case "PIPELINE_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PIPELINE_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "PIPELINE_STATE_PENDING": - case 2: - message.state = 2; - break; - case "PIPELINE_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "PIPELINE_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "PIPELINE_STATE_FAILED": - case 5: - message.state = 5; - break; - case "PIPELINE_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "PIPELINE_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "PIPELINE_STATE_PAUSED": - case 8: - message.state = 8; - break; - } - if (object.jobDetail != null) { - if (typeof object.jobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.jobDetail: object expected"); - message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.fromObject(object.jobDetail); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.runtimeConfig != null) { - if (typeof object.runtimeConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.runtimeConfig: object expected"); - message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + return message; + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportModelEvaluationSlicesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportModelEvaluationSlicesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.importedModelEvaluationSlices != null && message.hasOwnProperty("importedModelEvaluationSlices")) { + if (!Array.isArray(message.importedModelEvaluationSlices)) + return "importedModelEvaluationSlices: array expected"; + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + if (!$util.isString(message.importedModelEvaluationSlices[i])) + return "importedModelEvaluationSlices: string[] expected"; } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); - if (object.network != null) - message.network = String(object.network); - if (object.templateUri != null) - message.templateUri = String(object.templateUri); - if (object.templateMetadata != null) { - if (typeof object.templateMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.templateMetadata: object expected"); - message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.fromObject(object.templateMetadata); + return null; + }; + + /** + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + */ + BatchImportModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse(); + if (object.importedModelEvaluationSlices) { + if (!Array.isArray(object.importedModelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.importedModelEvaluationSlices: array expected"); + message.importedModelEvaluationSlices = []; + for (var i = 0; i < object.importedModelEvaluationSlices.length; ++i) + message.importedModelEvaluationSlices[i] = String(object.importedModelEvaluationSlices[i]); } return message; }; /** - * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.PipelineJob} message PipelineJob + * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJob.toObject = function toObject(message, options) { + BatchImportModelEvaluationSlicesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.pipelineSpec = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.jobDetail = null; - object.error = null; - object.runtimeConfig = null; - object.encryptionSpec = null; - object.serviceAccount = ""; - object.network = ""; - object.templateUri = ""; - object.templateMetadata = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) - object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) - object.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.toObject(message.jobDetail, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + if (options.arrays || options.defaults) + object.importedModelEvaluationSlices = []; + if (message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length) { + object.importedModelEvaluationSlices = []; + for (var j = 0; j < message.importedModelEvaluationSlices.length; ++j) + object.importedModelEvaluationSlices[j] = message.importedModelEvaluationSlices[j]; } - if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) - object.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.templateUri != null && message.hasOwnProperty("templateUri")) - object.templateUri = message.templateUri; - if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) - object.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.toObject(message.templateMetadata, options); return object; }; /** - * Converts this PipelineJob to JSON. + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse * @instance * @returns {Object.} JSON object */ - PipelineJob.prototype.toJSON = function toJSON() { + BatchImportModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineJob + * Gets the default type url for BatchImportModelEvaluationSlicesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchImportModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse"; }; - PipelineJob.RuntimeConfig = (function() { + return BatchImportModelEvaluationSlicesResponse; + })(); - /** - * Properties of a RuntimeConfig. - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @interface IRuntimeConfig - * @property {Object.|null} [parameters] RuntimeConfig parameters - * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory - * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues - * @property {google.cloud.aiplatform.v1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy - * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts - */ + v1.GetModelEvaluationRequest = (function() { - /** - * Constructs a new RuntimeConfig. - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @classdesc Represents a RuntimeConfig. - * @implements IRuntimeConfig - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - */ - function RuntimeConfig(properties) { - this.parameters = {}; - this.parameterValues = {}; - this.inputArtifacts = {}; - 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]]; - } + /** + * Properties of a GetModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetModelEvaluationRequest + * @property {string|null} [name] GetModelEvaluationRequest name + */ - /** - * RuntimeConfig parameters. - * @member {Object.} parameters - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameters = $util.emptyObject; + /** + * Constructs a new GetModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetModelEvaluationRequest. + * @implements IGetModelEvaluationRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set + */ + function GetModelEvaluationRequest(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]]; + } - /** - * RuntimeConfig gcsOutputDirectory. - * @member {string} gcsOutputDirectory - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.gcsOutputDirectory = ""; + /** + * GetModelEvaluationRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @instance + */ + GetModelEvaluationRequest.prototype.name = ""; - /** - * RuntimeConfig parameterValues. - * @member {Object.} parameterValues - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameterValues = $util.emptyObject; + /** + * Creates a new GetModelEvaluationRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest instance + */ + GetModelEvaluationRequest.create = function create(properties) { + return new GetModelEvaluationRequest(properties); + }; - /** - * RuntimeConfig failurePolicy. - * @member {google.cloud.aiplatform.v1.PipelineFailurePolicy} failurePolicy - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.failurePolicy = 0; + /** + * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetModelEvaluationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * RuntimeConfig inputArtifacts. - * @member {Object.} inputArtifacts - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; - - /** - * Creates a new RuntimeConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig instance - */ - RuntimeConfig.create = function create(properties) { - return new RuntimeConfig(properties); - }; - - /** - * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); - if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) - for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failurePolicy); - if (message.inputArtifacts != null && Object.hasOwnProperty.call(message, "inputArtifacts")) - for (var keys = Object.keys(message.inputArtifacts), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.parameters === $util.emptyObject) - message.parameters = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; - break; - } - case 2: { - message.gcsOutputDirectory = reader.string(); - break; - } - case 3: { - if (message.parameterValues === $util.emptyObject) - message.parameterValues = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameterValues[key] = value; - break; - } - case 4: { - message.failurePolicy = reader.int32(); - break; - } - case 5: { - if (message.inputArtifacts === $util.emptyObject) - message.inputArtifacts = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.inputArtifacts[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RuntimeConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RuntimeConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Value.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - if (!$util.isString(message.gcsOutputDirectory)) - return "gcsOutputDirectory: string expected"; - if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { - if (!$util.isObject(message.parameterValues)) - return "parameterValues: object expected"; - var key = Object.keys(message.parameterValues); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); - if (error) - return "parameterValues." + error; - } - } - if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) - switch (message.failurePolicy) { - default: - return "failurePolicy: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.inputArtifacts != null && message.hasOwnProperty("inputArtifacts")) { - if (!$util.isObject(message.inputArtifacts)) - return "inputArtifacts: object expected"; - var key = Object.keys(message.inputArtifacts); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); - if (error) - return "inputArtifacts." + error; - } - } - return null; - }; - - /** - * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig - */ - RuntimeConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1.Value.fromObject(object.parameters[keys[i]]); - } - } - if (object.gcsOutputDirectory != null) - message.gcsOutputDirectory = String(object.gcsOutputDirectory); - if (object.parameterValues) { - if (typeof object.parameterValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues = {}; - for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { - if (typeof object.parameterValues[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); - } - } - switch (object.failurePolicy) { - default: - if (typeof object.failurePolicy === "number") { - message.failurePolicy = object.failurePolicy; - break; - } - break; - case "PIPELINE_FAILURE_POLICY_UNSPECIFIED": - case 0: - message.failurePolicy = 0; - break; - case "PIPELINE_FAILURE_POLICY_FAIL_SLOW": - case 1: - message.failurePolicy = 1; - break; - case "PIPELINE_FAILURE_POLICY_FAIL_FAST": - case 2: - message.failurePolicy = 2; - break; - } - if (object.inputArtifacts) { - if (typeof object.inputArtifacts !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); - message.inputArtifacts = {}; - for (var keys = Object.keys(object.inputArtifacts), i = 0; i < keys.length; ++i) { - if (typeof object.inputArtifacts[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); - message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} message RuntimeConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RuntimeConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.parameters = {}; - object.parameterValues = {}; - object.inputArtifacts = {}; - } - if (options.defaults) { - object.gcsOutputDirectory = ""; - object.failurePolicy = options.enums === String ? "PIPELINE_FAILURE_POLICY_UNSPECIFIED" : 0; - } - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1.Value.toObject(message.parameters[keys2[j]], options); - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - object.gcsOutputDirectory = message.gcsOutputDirectory; - if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { - object.parameterValues = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); - } - if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) - object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] === undefined ? message.failurePolicy : $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] : message.failurePolicy; - if (message.inputArtifacts && (keys2 = Object.keys(message.inputArtifacts)).length) { - object.inputArtifacts = {}; - for (var j = 0; j < keys2.length; ++j) - object.inputArtifacts[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); - } - return object; - }; - - /** - * Converts this RuntimeConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - * @returns {Object.} JSON object - */ - RuntimeConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RuntimeConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RuntimeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig"; - }; - - RuntimeConfig.InputArtifact = (function() { - - /** - * Properties of an InputArtifact. - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @interface IInputArtifact - * @property {string|null} [artifactId] InputArtifact artifactId - */ - - /** - * Constructs a new InputArtifact. - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @classdesc Represents an InputArtifact. - * @implements IInputArtifact - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set - */ - function InputArtifact(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]]; - } - - /** - * InputArtifact artifactId. - * @member {string|null|undefined} artifactId - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - */ - InputArtifact.prototype.artifactId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * InputArtifact kind. - * @member {"artifactId"|undefined} kind - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - */ - Object.defineProperty(InputArtifact.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["artifactId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new InputArtifact instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact instance - */ - InputArtifact.create = function create(properties) { - return new InputArtifact(properties); - }; - - /** - * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputArtifact.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); - return writer; - }; - - /** - * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputArtifact.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InputArtifact message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputArtifact.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.artifactId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InputArtifact message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputArtifact.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InputArtifact message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InputArtifact.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - properties.kind = 1; - if (!$util.isString(message.artifactId)) - return "artifactId: string expected"; - } - return null; - }; - - /** - * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - */ - InputArtifact.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); - if (object.artifactId != null) - message.artifactId = String(object.artifactId); - return message; - }; - - /** - * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} message InputArtifact - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InputArtifact.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - object.artifactId = message.artifactId; - if (options.oneofs) - object.kind = "artifactId"; - } - return object; - }; - - /** - * Converts this InputArtifact to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - * @returns {Object.} JSON object - */ - InputArtifact.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InputArtifact - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InputArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact"; - }; - - return InputArtifact; - })(); - - return RuntimeConfig; - })(); - - return PipelineJob; - })(); - - v1.PipelineTemplateMetadata = (function() { - - /** - * Properties of a PipelineTemplateMetadata. - * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineTemplateMetadata - * @property {string|null} [version] PipelineTemplateMetadata version - */ - - /** - * Constructs a new PipelineTemplateMetadata. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineTemplateMetadata. - * @implements IPipelineTemplateMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set - */ - function PipelineTemplateMetadata(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]]; - } - - /** - * PipelineTemplateMetadata version. - * @member {string} version - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata - * @instance - */ - PipelineTemplateMetadata.prototype.version = ""; - - /** - * Creates a new PipelineTemplateMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata - * @static - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata instance - */ - PipelineTemplateMetadata.create = function create(properties) { - return new PipelineTemplateMetadata(properties); - }; - - /** - * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata - * @static - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTemplateMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); - return writer; - }; - - /** - * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata - * @static - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTemplateMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTemplateMetadata.decode = function decode(reader, length) { + GetModelEvaluationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.version = reader.string(); + case 1: { + message.name = reader.string(); break; } default: @@ -119739,125 +123925,126 @@ }; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTemplateMetadata.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTemplateMetadata message. + * Verifies a GetModelEvaluationRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTemplateMetadata.verify = function verify(message) { + GetModelEvaluationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest */ - PipelineTemplateMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata) + GetModelEvaluationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); - if (object.version != null) - message.version = String(object.version); + var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.PipelineTemplateMetadata} message PipelineTemplateMetadata + * @param {google.cloud.aiplatform.v1.GetModelEvaluationRequest} message GetModelEvaluationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTemplateMetadata.toObject = function toObject(message, options) { + GetModelEvaluationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PipelineTemplateMetadata to JSON. + * Converts this GetModelEvaluationRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @instance * @returns {Object.} JSON object */ - PipelineTemplateMetadata.prototype.toJSON = function toJSON() { + GetModelEvaluationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTemplateMetadata + * Gets the default type url for GetModelEvaluationRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTemplateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTemplateMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationRequest"; }; - return PipelineTemplateMetadata; + return GetModelEvaluationRequest; })(); - v1.PipelineJobDetail = (function() { + v1.ListModelEvaluationsRequest = (function() { /** - * Properties of a PipelineJobDetail. + * Properties of a ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineJobDetail - * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext - * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext - * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails + * @interface IListModelEvaluationsRequest + * @property {string|null} [parent] ListModelEvaluationsRequest parent + * @property {string|null} [filter] ListModelEvaluationsRequest filter + * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask */ /** - * Constructs a new PipelineJobDetail. + * Constructs a new ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineJobDetail. - * @implements IPipelineJobDetail + * @classdesc Represents a ListModelEvaluationsRequest. + * @implements IListModelEvaluationsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set */ - function PipelineJobDetail(properties) { - this.taskDetails = []; + function ListModelEvaluationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119865,106 +124052,131 @@ } /** - * PipelineJobDetail pipelineContext. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineContext - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * ListModelEvaluationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - PipelineJobDetail.prototype.pipelineContext = null; + ListModelEvaluationsRequest.prototype.parent = ""; /** - * PipelineJobDetail pipelineRunContext. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineRunContext - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * ListModelEvaluationsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - PipelineJobDetail.prototype.pipelineRunContext = null; + ListModelEvaluationsRequest.prototype.filter = ""; /** - * PipelineJobDetail taskDetails. - * @member {Array.} taskDetails - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * ListModelEvaluationsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - PipelineJobDetail.prototype.taskDetails = $util.emptyArray; + ListModelEvaluationsRequest.prototype.pageSize = 0; /** - * Creates a new PipelineJobDetail instance using the specified properties. + * ListModelEvaluationsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.pageToken = ""; + + /** + * ListModelEvaluationsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.readMask = null; + + /** + * Creates a new ListModelEvaluationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance */ - PipelineJobDetail.create = function create(properties) { - return new PipelineJobDetail(properties); + ListModelEvaluationsRequest.create = function create(properties) { + return new ListModelEvaluationsRequest(properties); }; /** - * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encode = function encode(message, writer) { + ListModelEvaluationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) - $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) - $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.taskDetails != null && message.taskDetails.length) - for (var i = 0; i < message.taskDetails.length; ++i) - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decode = function decode(reader, length) { + ListModelEvaluationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + message.filter = reader.string(); break; } case 3: { - if (!(message.taskDetails && message.taskDetails.length)) - message.taskDetails = []; - message.taskDetails.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.decode(reader, reader.uint32())); + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -119976,182 +124188,162 @@ }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJobDetail message. + * Verifies a ListModelEvaluationsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJobDetail.verify = function verify(message) { + ListModelEvaluationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineContext); - if (error) - return "pipelineContext." + error; - } - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineRunContext); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "pipelineRunContext." + error; - } - if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { - if (!Array.isArray(message.taskDetails)) - return "taskDetails: array expected"; - for (var i = 0; i < message.taskDetails.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.verify(message.taskDetails[i]); - if (error) - return "taskDetails." + error; - } + return "readMask." + error; } return null; }; /** - * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest */ - PipelineJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJobDetail) + ListModelEvaluationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); - if (object.pipelineContext != null) { - if (typeof object.pipelineContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineContext: object expected"); - message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineContext); - } - if (object.pipelineRunContext != null) { - if (typeof object.pipelineRunContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineRunContext: object expected"); - message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineRunContext); - } - if (object.taskDetails) { - if (!Array.isArray(object.taskDetails)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: array expected"); - message.taskDetails = []; - for (var i = 0; i < object.taskDetails.length; ++i) { - if (typeof object.taskDetails[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: object expected"); - message.taskDetails[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.fromObject(object.taskDetails[i]); - } + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.PipelineJobDetail} message PipelineJobDetail + * @param {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJobDetail.toObject = function toObject(message, options) { + ListModelEvaluationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.taskDetails = []; if (options.defaults) { - object.pipelineContext = null; - object.pipelineRunContext = null; - } - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) - object.pipelineContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineContext, options); - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) - object.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineRunContext, options); - if (message.taskDetails && message.taskDetails.length) { - object.taskDetails = []; - for (var j = 0; j < message.taskDetails.length; ++j) - object.taskDetails[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.toObject(message.taskDetails[j], options); + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this PipelineJobDetail to JSON. + * Converts this ListModelEvaluationsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance * @returns {Object.} JSON object */ - PipelineJobDetail.prototype.toJSON = function toJSON() { + ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineJobDetail + * Gets the default type url for ListModelEvaluationsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJobDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsRequest"; }; - return PipelineJobDetail; + return ListModelEvaluationsRequest; })(); - v1.PipelineTaskDetail = (function() { + v1.ListModelEvaluationsResponse = (function() { /** - * Properties of a PipelineTaskDetail. + * Properties of a ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineTaskDetail - * @property {number|Long|null} [taskId] PipelineTaskDetail taskId - * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId - * @property {string|null} [taskName] PipelineTaskDetail taskName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime - * @property {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail - * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state - * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] PipelineTaskDetail execution - * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error - * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus - * @property {Object.|null} [inputs] PipelineTaskDetail inputs - * @property {Object.|null} [outputs] PipelineTaskDetail outputs + * @interface IListModelEvaluationsResponse + * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations + * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken */ /** - * Constructs a new PipelineTaskDetail. + * Constructs a new ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineTaskDetail. - * @implements IPipelineTaskDetail + * @classdesc Represents a ListModelEvaluationsResponse. + * @implements IListModelEvaluationsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set */ - function PipelineTaskDetail(properties) { - this.pipelineTaskStatus = []; - this.inputs = {}; - this.outputs = {}; + function ListModelEvaluationsResponse(properties) { + this.modelEvaluations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -120159,290 +124351,321 @@ } /** - * PipelineTaskDetail taskId. - * @member {number|Long} taskId - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * ListModelEvaluationsResponse modelEvaluations. + * @member {Array.} modelEvaluations + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @instance */ - PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; /** - * PipelineTaskDetail parentTaskId. - * @member {number|Long} parentTaskId - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * ListModelEvaluationsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @instance */ - PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListModelEvaluationsResponse.prototype.nextPageToken = ""; /** - * PipelineTaskDetail taskName. - * @member {string} taskName - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Creates a new ListModelEvaluationsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance */ - PipelineTaskDetail.prototype.taskName = ""; + ListModelEvaluationsResponse.create = function create(properties) { + return new ListModelEvaluationsResponse(properties); + }; /** - * PipelineTaskDetail createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.prototype.createTime = null; + ListModelEvaluationsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelEvaluations != null && message.modelEvaluations.length) + for (var i = 0; i < message.modelEvaluations.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * PipelineTaskDetail startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.prototype.startTime = null; + ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * PipelineTaskDetail endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.prototype.endTime = null; + ListModelEvaluationsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.modelEvaluations && message.modelEvaluations.length)) + message.modelEvaluations = []; + message.modelEvaluations.push($root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * PipelineTaskDetail executorDetail. - * @member {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null|undefined} executorDetail - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.prototype.executorDetail = null; + ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * PipelineTaskDetail state. - * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Verifies a ListModelEvaluationsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskDetail.prototype.state = 0; + ListModelEvaluationsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { + if (!Array.isArray(message.modelEvaluations)) + return "modelEvaluations: array expected"; + for (var i = 0; i < message.modelEvaluations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluations[i]); + if (error) + return "modelEvaluations." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * PipelineTaskDetail execution. - * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse */ - PipelineTaskDetail.prototype.execution = null; + ListModelEvaluationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); + if (object.modelEvaluations) { + if (!Array.isArray(object.modelEvaluations)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: array expected"); + message.modelEvaluations = []; + for (var i = 0; i < object.modelEvaluations.length; ++i) { + if (typeof object.modelEvaluations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: object expected"); + message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluations[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * PipelineTaskDetail error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - PipelineTaskDetail.prototype.error = null; + ListModelEvaluationsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.modelEvaluations = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.modelEvaluations && message.modelEvaluations.length) { + object.modelEvaluations = []; + for (var j = 0; j < message.modelEvaluations.length; ++j) + object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluations[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * PipelineTaskDetail pipelineTaskStatus. - * @member {Array.} pipelineTaskStatus - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * Converts this ListModelEvaluationsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @instance + * @returns {Object.} JSON object */ - PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; + ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * PipelineTaskDetail inputs. - * @member {Object.} inputs - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Gets the default type url for ListModelEvaluationsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - PipelineTaskDetail.prototype.inputs = $util.emptyObject; + ListModelEvaluationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsResponse"; + }; + + return ListModelEvaluationsResponse; + })(); + + v1.GetModelEvaluationSliceRequest = (function() { /** - * PipelineTaskDetail outputs. - * @member {Object.} outputs - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * Properties of a GetModelEvaluationSliceRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetModelEvaluationSliceRequest + * @property {string|null} [name] GetModelEvaluationSliceRequest name + */ + + /** + * Constructs a new GetModelEvaluationSliceRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetModelEvaluationSliceRequest. + * @implements IGetModelEvaluationSliceRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + */ + function GetModelEvaluationSliceRequest(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]]; + } + + /** + * GetModelEvaluationSliceRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @instance */ - PipelineTaskDetail.prototype.outputs = $util.emptyObject; + GetModelEvaluationSliceRequest.prototype.name = ""; /** - * Creates a new PipelineTaskDetail instance using the specified properties. + * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance */ - PipelineTaskDetail.create = function create(properties) { - return new PipelineTaskDetail(properties); + GetModelEvaluationSliceRequest.create = function create(properties) { + return new GetModelEvaluationSliceRequest(properties); }; /** - * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.encode = function encode(message, writer) { + GetModelEvaluationSliceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); - if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) - $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) - for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) - for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) - writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); - if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { + GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decode = function decode(reader, length) { + GetModelEvaluationSliceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.taskId = reader.int64(); - break; - } - case 12: { - message.parentTaskId = reader.int64(); - break; - } - case 2: { - message.taskName = reader.string(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); - break; - } - case 7: { - message.state = reader.int32(); - break; - } - case 8: { - message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); - break; - } - case 9: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 13: { - if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) - message.pipelineTaskStatus = []; - message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); - break; - } - case 10: { - if (message.inputs === $util.emptyObject) - message.inputs = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.inputs[key] = value; - break; - } - case 11: { - if (message.outputs === $util.emptyObject) - message.outputs = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.outputs[key] = value; + message.name = reader.string(); break; } default: @@ -120454,967 +124677,425 @@ }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskDetail message. + * Verifies a GetModelEvaluationSliceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskDetail.verify = function verify(message) { + GetModelEvaluationSliceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) - return "taskId: integer|Long expected"; - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) - return "parentTaskId: integer|Long expected"; - if (message.taskName != null && message.hasOwnProperty("taskName")) - if (!$util.isString(message.taskName)) - return "taskName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify(message.executorDetail); - if (error) - return "executorDetail." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); - if (error) - return "execution." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { - if (!Array.isArray(message.pipelineTaskStatus)) - return "pipelineTaskStatus: array expected"; - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); - if (error) - return "pipelineTaskStatus." + error; - } - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!$util.isObject(message.inputs)) - return "inputs: object expected"; - var key = Object.keys(message.inputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); - if (error) - return "inputs." + error; - } - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!$util.isObject(message.outputs)) - return "outputs: object expected"; - var key = Object.keys(message.outputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); - if (error) - return "outputs." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest */ - PipelineTaskDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail) + GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(); - if (object.taskId != null) - if ($util.Long) - (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; - else if (typeof object.taskId === "string") - message.taskId = parseInt(object.taskId, 10); - else if (typeof object.taskId === "number") - message.taskId = object.taskId; - else if (typeof object.taskId === "object") - message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); - if (object.parentTaskId != null) - if ($util.Long) - (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; - else if (typeof object.parentTaskId === "string") - message.parentTaskId = parseInt(object.parentTaskId, 10); - else if (typeof object.parentTaskId === "number") - message.parentTaskId = object.parentTaskId; - else if (typeof object.parentTaskId === "object") - message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); - if (object.taskName != null) - message.taskName = String(object.taskName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.executorDetail != null) { - if (typeof object.executorDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.executorDetail: object expected"); - message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "CANCEL_PENDING": - case 4: - message.state = 4; - break; - case "CANCELLING": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - case "FAILED": - case 7: - message.state = 7; - break; - case "SKIPPED": - case 8: - message.state = 8; - break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; - break; - } - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.pipelineTaskStatus) { - if (!Array.isArray(object.pipelineTaskStatus)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: array expected"); - message.pipelineTaskStatus = []; - for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { - if (typeof object.pipelineTaskStatus[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: object expected"); - message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); - } - } - if (object.inputs) { - if (typeof object.inputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); - message.inputs = {}; - for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { - if (typeof object.inputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); - message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); - } - } - if (object.outputs) { - if (typeof object.outputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); - message.outputs = {}; - for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { - if (typeof object.outputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); - message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); - } - } + var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail} message PipelineTaskDetail + * @param {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskDetail.toObject = function toObject(message, options) { + GetModelEvaluationSliceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pipelineTaskStatus = []; - if (options.objects || options.defaults) { - object.inputs = {}; - object.outputs = {}; - } - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskId = options.longs === String ? "0" : 0; - object.taskName = ""; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.executorDetail = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.execution = null; - object.error = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.parentTaskId = options.longs === String ? "0" : 0; - } - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (typeof message.taskId === "number") - object.taskId = options.longs === String ? String(message.taskId) : message.taskId; - else - object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; - if (message.taskName != null && message.hasOwnProperty("taskName")) - object.taskName = message.taskName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) - object.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { - object.inputs = {}; - for (var j = 0; j < keys2.length; ++j) - object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); - } - if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { - object.outputs = {}; - for (var j = 0; j < keys2.length; ++j) - object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); - } - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (typeof message.parentTaskId === "number") - object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; - else - object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; - if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { - object.pipelineTaskStatus = []; - for (var j = 0; j < message.pipelineTaskStatus.length; ++j) - object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PipelineTaskDetail to JSON. + * Converts this GetModelEvaluationSliceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @instance * @returns {Object.} JSON object */ - PipelineTaskDetail.prototype.toJSON = function toJSON() { + GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTaskDetail + * Gets the default type url for GetModelEvaluationSliceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTaskDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelEvaluationSliceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest"; }; - PipelineTaskDetail.PipelineTaskStatus = (function() { - - /** - * Properties of a PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @interface IPipelineTaskStatus - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime - * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state - * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error - */ + return GetModelEvaluationSliceRequest; + })(); - /** - * Constructs a new PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @classdesc Represents a PipelineTaskStatus. - * @implements IPipelineTaskStatus - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set - */ - function PipelineTaskStatus(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]]; - } + v1.ListModelEvaluationSlicesRequest = (function() { - /** - * PipelineTaskStatus updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.updateTime = null; + /** + * Properties of a ListModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListModelEvaluationSlicesRequest + * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent + * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter + * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask + */ - /** - * PipelineTaskStatus state. - * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.state = 0; + /** + * Constructs a new ListModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListModelEvaluationSlicesRequest. + * @implements IListModelEvaluationSlicesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + */ + function ListModelEvaluationSlicesRequest(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]]; + } - /** - * PipelineTaskStatus error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.error = null; + /** + * ListModelEvaluationSlicesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.parent = ""; - /** - * Creates a new PipelineTaskStatus instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance - */ - PipelineTaskStatus.create = function create(properties) { - return new PipelineTaskStatus(properties); - }; + /** + * ListModelEvaluationSlicesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.filter = ""; - /** - * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTaskStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * ListModelEvaluationSlicesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.pageSize = 0; - /** - * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListModelEvaluationSlicesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.pageToken = ""; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PipelineTaskStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.state = reader.int32(); - break; - } - case 3: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListModelEvaluationSlicesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.readMask = null; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance + */ + ListModelEvaluationSlicesRequest.create = function create(properties) { + return new ListModelEvaluationSlicesRequest(properties); + }; - /** - * Verifies a PipelineTaskStatus message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PipelineTaskStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: + /** + * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelEvaluationSlicesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelEvaluationSlicesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); break; } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - return null; - }; - - /** - * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - */ - PipelineTaskStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; + case 2: { + message.filter = reader.string(); break; } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "CANCEL_PENDING": - case 4: - message.state = 4; - break; - case "CANCELLING": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - case "FAILED": - case 7: - message.state = 7; - break; - case "SKIPPED": - case 8: - message.state = 8; - break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - return message; - }; - - /** - * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PipelineTaskStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.updateTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.error = null; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - return object; - }; - - /** - * Converts this PipelineTaskStatus to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @instance - * @returns {Object.} JSON object - */ - PipelineTaskStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PipelineTaskStatus - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PipelineTaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus"; - }; - - return PipelineTaskStatus; - })(); - - PipelineTaskDetail.ArtifactList = (function() { - - /** - * Properties of an ArtifactList. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @interface IArtifactList - * @property {Array.|null} [artifacts] ArtifactList artifacts - */ - - /** - * Constructs a new ArtifactList. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @classdesc Represents an ArtifactList. - * @implements IArtifactList - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - */ - function ArtifactList(properties) { - this.artifacts = []; - 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]]; - } - - /** - * ArtifactList artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @instance - */ - ArtifactList.prototype.artifacts = $util.emptyArray; - - /** - * Creates a new ArtifactList instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList instance - */ - ArtifactList.create = function create(properties) { - return new ArtifactList(properties); - }; - - /** - * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ArtifactList message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + case 3: { + message.pageSize = reader.int32(); break; } - } - return message; - }; - - /** - * Decodes an ArtifactList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ArtifactList message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; + case 4: { + message.pageToken = reader.string(); + break; } - } - return null; - }; - - /** - * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList - */ - ArtifactList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} message ArtifactList - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ArtifactList.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.artifacts = []; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); - } - return object; - }; + /** + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this ArtifactList to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @instance - * @returns {Object.} JSON object - */ - ArtifactList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a ListModelEvaluationSlicesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListModelEvaluationSlicesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; - /** - * Gets the default type url for ArtifactList - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ArtifactList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList"; - }; + /** + * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + */ + ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; - return ArtifactList; - })(); + /** + * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; /** - * State enum. - * @name google.cloud.aiplatform.v1.PipelineTaskDetail.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value - * @property {number} CANCELLING=5 CANCELLING value - * @property {number} CANCELLED=6 CANCELLED value - * @property {number} FAILED=7 FAILED value - * @property {number} SKIPPED=8 SKIPPED value - * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value + * Converts this ListModelEvaluationSlicesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + * @returns {Object.} JSON object */ - PipelineTaskDetail.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "CANCEL_PENDING"] = 4; - values[valuesById[5] = "CANCELLING"] = 5; - values[valuesById[6] = "CANCELLED"] = 6; - values[valuesById[7] = "FAILED"] = 7; - values[valuesById[8] = "SKIPPED"] = 8; - values[valuesById[9] = "NOT_TRIGGERED"] = 9; - return values; - })(); + ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PipelineTaskDetail; + /** + * Gets the default type url for ListModelEvaluationSlicesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest"; + }; + + return ListModelEvaluationSlicesRequest; })(); - v1.PipelineTaskExecutorDetail = (function() { + v1.ListModelEvaluationSlicesResponse = (function() { /** - * Properties of a PipelineTaskExecutorDetail. + * Properties of a ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineTaskExecutorDetail - * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail - * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail + * @interface IListModelEvaluationSlicesResponse + * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices + * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken */ /** - * Constructs a new PipelineTaskExecutorDetail. + * Constructs a new ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineTaskExecutorDetail. - * @implements IPipelineTaskExecutorDetail + * @classdesc Represents a ListModelEvaluationSlicesResponse. + * @implements IListModelEvaluationSlicesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set */ - function PipelineTaskExecutorDetail(properties) { + function ListModelEvaluationSlicesResponse(properties) { + this.modelEvaluationSlices = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -121422,103 +125103,92 @@ } /** - * PipelineTaskExecutorDetail containerDetail. - * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @instance - */ - PipelineTaskExecutorDetail.prototype.containerDetail = null; - - /** - * PipelineTaskExecutorDetail customJobDetail. - * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * ListModelEvaluationSlicesResponse modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @instance */ - PipelineTaskExecutorDetail.prototype.customJobDetail = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; /** - * PipelineTaskExecutorDetail details. - * @member {"containerDetail"|"customJobDetail"|undefined} details - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * ListModelEvaluationSlicesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @instance */ - Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { - get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; /** - * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance */ - PipelineTaskExecutorDetail.create = function create(properties) { - return new PipelineTaskExecutorDetail(properties); + ListModelEvaluationSlicesResponse.create = function create(properties) { + return new ListModelEvaluationSlicesResponse(properties); }; /** - * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encode = function encode(message, writer) { + ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) - $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) - $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decode = function decode(reader, length) { + ListModelEvaluationSlicesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); break; } case 2: { - message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -121530,810 +125200,501 @@ }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskExecutorDetail message. + * Verifies a ListModelEvaluationSlicesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskExecutorDetail.verify = function verify(message) { + ListModelEvaluationSlicesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); - if (error) - return "containerDetail." + error; - } - } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - if (properties.details === 1) - return "details: multiple values"; - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { + if (!Array.isArray(message.modelEvaluationSlices)) + return "modelEvaluationSlices: array expected"; + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); if (error) - return "customJobDetail." + error; + return "modelEvaluationSlices." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse */ - PipelineTaskExecutorDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) + ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); - if (object.containerDetail != null) { - if (typeof object.containerDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.containerDetail: object expected"); - message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); - } - if (object.customJobDetail != null) { - if (typeof object.customJobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.customJobDetail: object expected"); - message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: array expected"); + message.modelEvaluationSlices = []; + for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { + if (typeof object.modelEvaluationSlices[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail + * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskExecutorDetail.toObject = function toObject(message, options) { + ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - object.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); - if (options.oneofs) - object.details = "containerDetail"; - } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - object.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); - if (options.oneofs) - object.details = "customJobDetail"; + if (options.arrays || options.defaults) + object.modelEvaluationSlices = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { + object.modelEvaluationSlices = []; + for (var j = 0; j < message.modelEvaluationSlices.length; ++j) + object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PipelineTaskExecutorDetail to JSON. + * Converts this ListModelEvaluationSlicesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @instance * @returns {Object.} JSON object */ - PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { + ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTaskExecutorDetail + * Gets the default type url for ListModelEvaluationSlicesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTaskExecutorDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse"; }; - PipelineTaskExecutorDetail.ContainerDetail = (function() { + return ListModelEvaluationSlicesResponse; + })(); - /** - * Properties of a ContainerDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @interface IContainerDetail - * @property {string|null} [mainJob] ContainerDetail mainJob - * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob - * @property {Array.|null} [failedMainJobs] ContainerDetail failedMainJobs - * @property {Array.|null} [failedPreCachingCheckJobs] ContainerDetail failedPreCachingCheckJobs - */ + /** + * PipelineFailurePolicy enum. + * @name google.cloud.aiplatform.v1.PipelineFailurePolicy + * @enum {number} + * @property {number} PIPELINE_FAILURE_POLICY_UNSPECIFIED=0 PIPELINE_FAILURE_POLICY_UNSPECIFIED value + * @property {number} PIPELINE_FAILURE_POLICY_FAIL_SLOW=1 PIPELINE_FAILURE_POLICY_FAIL_SLOW value + * @property {number} PIPELINE_FAILURE_POLICY_FAIL_FAST=2 PIPELINE_FAILURE_POLICY_FAIL_FAST value + */ + v1.PipelineFailurePolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PIPELINE_FAILURE_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "PIPELINE_FAILURE_POLICY_FAIL_SLOW"] = 1; + values[valuesById[2] = "PIPELINE_FAILURE_POLICY_FAIL_FAST"] = 2; + return values; + })(); - /** - * Constructs a new ContainerDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @classdesc Represents a ContainerDetail. - * @implements IContainerDetail - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - */ - function ContainerDetail(properties) { - this.failedMainJobs = []; - this.failedPreCachingCheckJobs = []; - 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]]; - } + v1.PipelineJob = (function() { - /** - * ContainerDetail mainJob. - * @member {string} mainJob - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.mainJob = ""; + /** + * Properties of a PipelineJob. + * @memberof google.cloud.aiplatform.v1 + * @interface IPipelineJob + * @property {string|null} [name] PipelineJob name + * @property {string|null} [displayName] PipelineJob displayName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime + * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec + * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] PipelineJob state + * @property {google.cloud.aiplatform.v1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail + * @property {google.rpc.IStatus|null} [error] PipelineJob error + * @property {Object.|null} [labels] PipelineJob labels + * @property {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec + * @property {string|null} [serviceAccount] PipelineJob serviceAccount + * @property {string|null} [network] PipelineJob network + * @property {string|null} [templateUri] PipelineJob templateUri + * @property {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null} [templateMetadata] PipelineJob templateMetadata + */ - /** - * ContainerDetail preCachingCheckJob. - * @member {string} preCachingCheckJob - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.preCachingCheckJob = ""; + /** + * Constructs a new PipelineJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineJob. + * @implements IPipelineJob + * @constructor + * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set + */ + function PipelineJob(properties) { + this.labels = {}; + 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]]; + } - /** - * ContainerDetail failedMainJobs. - * @member {Array.} failedMainJobs - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.failedMainJobs = $util.emptyArray; + /** + * PipelineJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.name = ""; - /** - * ContainerDetail failedPreCachingCheckJobs. - * @member {Array.} failedPreCachingCheckJobs - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.failedPreCachingCheckJobs = $util.emptyArray; + /** + * PipelineJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.displayName = ""; - /** - * Creates a new ContainerDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance - */ - ContainerDetail.create = function create(properties) { - return new ContainerDetail(properties); - }; + /** + * PipelineJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.createTime = null; - /** - * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); - if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); - if (message.failedMainJobs != null && message.failedMainJobs.length) - for (var i = 0; i < message.failedMainJobs.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedMainJobs[i]); - if (message.failedPreCachingCheckJobs != null && message.failedPreCachingCheckJobs.length) - for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.failedPreCachingCheckJobs[i]); - return writer; - }; + /** + * PipelineJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.startTime = null; - /** - * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * PipelineJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.endTime = null; - /** - * Decodes a ContainerDetail message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.mainJob = reader.string(); - break; - } - case 2: { - message.preCachingCheckJob = reader.string(); - break; - } - case 3: { - if (!(message.failedMainJobs && message.failedMainJobs.length)) - message.failedMainJobs = []; - message.failedMainJobs.push(reader.string()); - break; - } - case 4: { - if (!(message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length)) - message.failedPreCachingCheckJobs = []; - message.failedPreCachingCheckJobs.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ContainerDetail message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContainerDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - if (!$util.isString(message.mainJob)) - return "mainJob: string expected"; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - if (!$util.isString(message.preCachingCheckJob)) - return "preCachingCheckJob: string expected"; - if (message.failedMainJobs != null && message.hasOwnProperty("failedMainJobs")) { - if (!Array.isArray(message.failedMainJobs)) - return "failedMainJobs: array expected"; - for (var i = 0; i < message.failedMainJobs.length; ++i) - if (!$util.isString(message.failedMainJobs[i])) - return "failedMainJobs: string[] expected"; - } - if (message.failedPreCachingCheckJobs != null && message.hasOwnProperty("failedPreCachingCheckJobs")) { - if (!Array.isArray(message.failedPreCachingCheckJobs)) - return "failedPreCachingCheckJobs: array expected"; - for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) - if (!$util.isString(message.failedPreCachingCheckJobs[i])) - return "failedPreCachingCheckJobs: string[] expected"; - } - return null; - }; - - /** - * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - */ - ContainerDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); - if (object.mainJob != null) - message.mainJob = String(object.mainJob); - if (object.preCachingCheckJob != null) - message.preCachingCheckJob = String(object.preCachingCheckJob); - if (object.failedMainJobs) { - if (!Array.isArray(object.failedMainJobs)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedMainJobs: array expected"); - message.failedMainJobs = []; - for (var i = 0; i < object.failedMainJobs.length; ++i) - message.failedMainJobs[i] = String(object.failedMainJobs[i]); - } - if (object.failedPreCachingCheckJobs) { - if (!Array.isArray(object.failedPreCachingCheckJobs)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedPreCachingCheckJobs: array expected"); - message.failedPreCachingCheckJobs = []; - for (var i = 0; i < object.failedPreCachingCheckJobs.length; ++i) - message.failedPreCachingCheckJobs[i] = String(object.failedPreCachingCheckJobs[i]); - } - return message; - }; - - /** - * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContainerDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.failedMainJobs = []; - object.failedPreCachingCheckJobs = []; - } - if (options.defaults) { - object.mainJob = ""; - object.preCachingCheckJob = ""; - } - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - object.mainJob = message.mainJob; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - object.preCachingCheckJob = message.preCachingCheckJob; - if (message.failedMainJobs && message.failedMainJobs.length) { - object.failedMainJobs = []; - for (var j = 0; j < message.failedMainJobs.length; ++j) - object.failedMainJobs[j] = message.failedMainJobs[j]; - } - if (message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length) { - object.failedPreCachingCheckJobs = []; - for (var j = 0; j < message.failedPreCachingCheckJobs.length; ++j) - object.failedPreCachingCheckJobs[j] = message.failedPreCachingCheckJobs[j]; - } - return object; - }; - - /** - * Converts this ContainerDetail to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - * @returns {Object.} JSON object - */ - ContainerDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ContainerDetail - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ContainerDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail"; - }; - - return ContainerDetail; - })(); - - PipelineTaskExecutorDetail.CustomJobDetail = (function() { - - /** - * Properties of a CustomJobDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @interface ICustomJobDetail - * @property {string|null} [job] CustomJobDetail job - */ - - /** - * Constructs a new CustomJobDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @classdesc Represents a CustomJobDetail. - * @implements ICustomJobDetail - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set - */ - function CustomJobDetail(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]]; - } - - /** - * CustomJobDetail job. - * @member {string} job - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @instance - */ - CustomJobDetail.prototype.job = ""; - - /** - * Creates a new CustomJobDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance - */ - CustomJobDetail.create = function create(properties) { - return new CustomJobDetail(properties); - }; - - /** - * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomJobDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.job != null && Object.hasOwnProperty.call(message, "job")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); - return writer; - }; - - /** - * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CustomJobDetail message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomJobDetail.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.job = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CustomJobDetail message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomJobDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.job != null && message.hasOwnProperty("job")) - if (!$util.isString(message.job)) - return "job: string expected"; - return null; - }; - - /** - * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - */ - CustomJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); - if (object.job != null) - message.job = String(object.job); - return message; - }; - - /** - * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomJobDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.job = ""; - if (message.job != null && message.hasOwnProperty("job")) - object.job = message.job; - return object; - }; - - /** - * Converts this CustomJobDetail to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @instance - * @returns {Object.} JSON object - */ - CustomJobDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CustomJobDetail - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CustomJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail"; - }; + /** + * PipelineJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.updateTime = null; - return CustomJobDetail; - })(); + /** + * PipelineJob pipelineSpec. + * @member {google.protobuf.IStruct|null|undefined} pipelineSpec + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.pipelineSpec = null; - return PipelineTaskExecutorDetail; - })(); + /** + * PipelineJob state. + * @member {google.cloud.aiplatform.v1.PipelineState} state + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.state = 0; - /** - * PipelineState enum. - * @name google.cloud.aiplatform.v1.PipelineState - * @enum {number} - * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value - * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value - * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value - * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value - * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value - * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value - * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value - * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value - * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value - */ - v1.PipelineState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; - values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; - values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; - values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; - values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; - values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; - values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; - values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; - return values; - })(); + /** + * PipelineJob jobDetail. + * @member {google.cloud.aiplatform.v1.IPipelineJobDetail|null|undefined} jobDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.jobDetail = null; - v1.Value = (function() { + /** + * PipelineJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.error = null; /** - * Properties of a Value. - * @memberof google.cloud.aiplatform.v1 - * @interface IValue - * @property {number|Long|null} [intValue] Value intValue - * @property {number|null} [doubleValue] Value doubleValue - * @property {string|null} [stringValue] Value stringValue + * PipelineJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance */ + PipelineJob.prototype.labels = $util.emptyObject; /** - * Constructs a new Value. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set + * PipelineJob runtimeConfig. + * @member {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance */ - function Value(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]]; - } + PipelineJob.prototype.runtimeConfig = null; /** - * Value intValue. - * @member {number|Long|null|undefined} intValue - * @memberof google.cloud.aiplatform.v1.Value + * PipelineJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - Value.prototype.intValue = null; + PipelineJob.prototype.encryptionSpec = null; /** - * Value doubleValue. - * @member {number|null|undefined} doubleValue - * @memberof google.cloud.aiplatform.v1.Value + * PipelineJob serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - Value.prototype.doubleValue = null; + PipelineJob.prototype.serviceAccount = ""; /** - * Value stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.cloud.aiplatform.v1.Value + * PipelineJob network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - Value.prototype.stringValue = null; + PipelineJob.prototype.network = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * PipelineJob templateUri. + * @member {string} templateUri + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.templateUri = ""; /** - * Value value. - * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value - * @memberof google.cloud.aiplatform.v1.Value + * PipelineJob templateMetadata. + * @member {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null|undefined} templateMetadata + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - Object.defineProperty(Value.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + PipelineJob.prototype.templateMetadata = null; /** - * Creates a new Value instance using the specified properties. + * Creates a new PipelineJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Value} Value instance + * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob instance */ - Value.create = function create(properties) { - return new Value(properties); + PipelineJob.create = function create(properties) { + return new PipelineJob(properties); }; /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encode = function encode(message, writer) { + PipelineJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) + $root.google.protobuf.Struct.encode(message.pipelineSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) + $root.google.cloud.aiplatform.v1.PipelineJobDetail.encode(message.jobDetail, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) + $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); + if (message.templateUri != null && Object.hasOwnProperty.call(message, "templateUri")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.templateUri); + if (message.templateMetadata != null && Object.hasOwnProperty.call(message, "templateMetadata")) + $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.encode(message.templateMetadata, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); return writer; }; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes a PipelineJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Value} Value + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decode = function decode(reader, length) { + PipelineJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Value(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.intValue = reader.int64(); + message.name = reader.string(); break; } case 2: { - message.doubleValue = reader.double(); + message.displayName = reader.string(); break; } case 3: { - message.stringValue = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 8: { + message.state = reader.int32(); + break; + } + case 9: { + message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.decode(reader, reader.uint32()); + break; + } + case 10: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 11: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 12: { + message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); + break; + } + case 16: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 17: { + message.serviceAccount = reader.string(); + break; + } + case 18: { + message.network = reader.string(); + break; + } + case 19: { + message.templateUri = reader.string(); + break; + } + case 20: { + message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.decode(reader, reader.uint32()); break; } default: @@ -122345,620 +125706,1350 @@ }; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Value} Value + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decodeDelimited = function decodeDelimited(reader) { + PipelineJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Value message. + * Verifies a PipelineJob message. * @function verify - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Value.verify = function verify(message) { + PipelineJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - properties.value = 1; - if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) - return "intValue: integer|Long expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { + var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); + if (error) + return "pipelineSpec." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { + var error = $root.google.cloud.aiplatform.v1.PipelineJobDetail.verify(message.jobDetail); + if (error) + return "jobDetail." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); + if (error) + return "runtimeConfig." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.templateUri != null && message.hasOwnProperty("templateUri")) + if (!$util.isString(message.templateUri)) + return "templateUri: string expected"; + if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) { + var error = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify(message.templateMetadata); + if (error) + return "templateMetadata." + error; } return null; }; /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Value} Value + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Value) + PipelineJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob) return object; - var message = new $root.google.cloud.aiplatform.v1.Value(); - if (object.intValue != null) - if ($util.Long) - (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; - else if (typeof object.intValue === "string") - message.intValue = parseInt(object.intValue, 10); - else if (typeof object.intValue === "number") - message.intValue = object.intValue; - else if (typeof object.intValue === "object") - message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); + var message = new $root.google.cloud.aiplatform.v1.PipelineJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.pipelineSpec != null) { + if (typeof object.pipelineSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.pipelineSpec: object expected"); + message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "PIPELINE_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PIPELINE_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "PIPELINE_STATE_PENDING": + case 2: + message.state = 2; + break; + case "PIPELINE_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "PIPELINE_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "PIPELINE_STATE_FAILED": + case 5: + message.state = 5; + break; + case "PIPELINE_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "PIPELINE_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "PIPELINE_STATE_PAUSED": + case 8: + message.state = 8; + break; + } + if (object.jobDetail != null) { + if (typeof object.jobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.jobDetail: object expected"); + message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.fromObject(object.jobDetail); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.runtimeConfig != null) { + if (typeof object.runtimeConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.runtimeConfig: object expected"); + message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.network != null) + message.network = String(object.network); + if (object.templateUri != null) + message.templateUri = String(object.templateUri); + if (object.templateMetadata != null) { + if (typeof object.templateMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.templateMetadata: object expected"); + message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.fromObject(object.templateMetadata); + } return message; }; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.Value} message Value + * @param {google.cloud.aiplatform.v1.PipelineJob} message PipelineJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Value.toObject = function toObject(message, options) { + PipelineJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (typeof message.intValue === "number") - object.intValue = options.longs === String ? String(message.intValue) : message.intValue; - else - object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; - if (options.oneofs) - object.value = "intValue"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (options.oneofs) - object.value = "doubleValue"; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.pipelineSpec = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.jobDetail = null; + object.error = null; + object.runtimeConfig = null; + object.encryptionSpec = null; + object.serviceAccount = ""; + object.network = ""; + object.templateUri = ""; + object.templateMetadata = null; } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.value = "stringValue"; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) + object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) + object.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.toObject(message.jobDetail, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) + object.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.templateUri != null && message.hasOwnProperty("templateUri")) + object.templateUri = message.templateUri; + if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) + object.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.toObject(message.templateMetadata, options); return object; }; /** - * Converts this Value to JSON. + * Converts this PipelineJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance * @returns {Object.} JSON object */ - Value.prototype.toJSON = function toJSON() { + PipelineJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Value + * Gets the default type url for PipelineJob * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Value"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob"; }; - return Value; + PipelineJob.RuntimeConfig = (function() { + + /** + * Properties of a RuntimeConfig. + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @interface IRuntimeConfig + * @property {Object.|null} [parameters] RuntimeConfig parameters + * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory + * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues + * @property {google.cloud.aiplatform.v1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy + * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts + */ + + /** + * Constructs a new RuntimeConfig. + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @classdesc Represents a RuntimeConfig. + * @implements IRuntimeConfig + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + */ + function RuntimeConfig(properties) { + this.parameters = {}; + this.parameterValues = {}; + this.inputArtifacts = {}; + 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]]; + } + + /** + * RuntimeConfig parameters. + * @member {Object.} parameters + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.parameters = $util.emptyObject; + + /** + * RuntimeConfig gcsOutputDirectory. + * @member {string} gcsOutputDirectory + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.gcsOutputDirectory = ""; + + /** + * RuntimeConfig parameterValues. + * @member {Object.} parameterValues + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.parameterValues = $util.emptyObject; + + /** + * RuntimeConfig failurePolicy. + * @member {google.cloud.aiplatform.v1.PipelineFailurePolicy} failurePolicy + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.failurePolicy = 0; + + /** + * RuntimeConfig inputArtifacts. + * @member {Object.} inputArtifacts + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; + + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig instance + */ + RuntimeConfig.create = function create(properties) { + return new RuntimeConfig(properties); + }; + + /** + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); + if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) + for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failurePolicy); + if (message.inputArtifacts != null && Object.hasOwnProperty.call(message, "inputArtifacts")) + for (var keys = Object.keys(message.inputArtifacts), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.parameters === $util.emptyObject) + message.parameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; + break; + } + case 2: { + message.gcsOutputDirectory = reader.string(); + break; + } + case 3: { + if (message.parameterValues === $util.emptyObject) + message.parameterValues = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameterValues[key] = value; + break; + } + case 4: { + message.failurePolicy = reader.int32(); + break; + } + case 5: { + if (message.inputArtifacts === $util.emptyObject) + message.inputArtifacts = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inputArtifacts[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RuntimeConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RuntimeConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Value.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + if (!$util.isString(message.gcsOutputDirectory)) + return "gcsOutputDirectory: string expected"; + if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { + if (!$util.isObject(message.parameterValues)) + return "parameterValues: object expected"; + var key = Object.keys(message.parameterValues); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); + if (error) + return "parameterValues." + error; + } + } + if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) + switch (message.failurePolicy) { + default: + return "failurePolicy: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.inputArtifacts != null && message.hasOwnProperty("inputArtifacts")) { + if (!$util.isObject(message.inputArtifacts)) + return "inputArtifacts: object expected"; + var key = Object.keys(message.inputArtifacts); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); + if (error) + return "inputArtifacts." + error; + } + } + return null; + }; + + /** + * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig + */ + RuntimeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1.Value.fromObject(object.parameters[keys[i]]); + } + } + if (object.gcsOutputDirectory != null) + message.gcsOutputDirectory = String(object.gcsOutputDirectory); + if (object.parameterValues) { + if (typeof object.parameterValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues = {}; + for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { + if (typeof object.parameterValues[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); + } + } + switch (object.failurePolicy) { + default: + if (typeof object.failurePolicy === "number") { + message.failurePolicy = object.failurePolicy; + break; + } + break; + case "PIPELINE_FAILURE_POLICY_UNSPECIFIED": + case 0: + message.failurePolicy = 0; + break; + case "PIPELINE_FAILURE_POLICY_FAIL_SLOW": + case 1: + message.failurePolicy = 1; + break; + case "PIPELINE_FAILURE_POLICY_FAIL_FAST": + case 2: + message.failurePolicy = 2; + break; + } + if (object.inputArtifacts) { + if (typeof object.inputArtifacts !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts = {}; + for (var keys = Object.keys(object.inputArtifacts), i = 0; i < keys.length; ++i) { + if (typeof object.inputArtifacts[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} message RuntimeConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RuntimeConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.parameters = {}; + object.parameterValues = {}; + object.inputArtifacts = {}; + } + if (options.defaults) { + object.gcsOutputDirectory = ""; + object.failurePolicy = options.enums === String ? "PIPELINE_FAILURE_POLICY_UNSPECIFIED" : 0; + } + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1.Value.toObject(message.parameters[keys2[j]], options); + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + object.gcsOutputDirectory = message.gcsOutputDirectory; + if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { + object.parameterValues = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); + } + if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) + object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] === undefined ? message.failurePolicy : $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] : message.failurePolicy; + if (message.inputArtifacts && (keys2 = Object.keys(message.inputArtifacts)).length) { + object.inputArtifacts = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputArtifacts[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); + } + return object; + }; + + /** + * Converts this RuntimeConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + * @returns {Object.} JSON object + */ + RuntimeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RuntimeConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RuntimeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig"; + }; + + RuntimeConfig.InputArtifact = (function() { + + /** + * Properties of an InputArtifact. + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @interface IInputArtifact + * @property {string|null} [artifactId] InputArtifact artifactId + */ + + /** + * Constructs a new InputArtifact. + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @classdesc Represents an InputArtifact. + * @implements IInputArtifact + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + */ + function InputArtifact(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]]; + } + + /** + * InputArtifact artifactId. + * @member {string|null|undefined} artifactId + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + InputArtifact.prototype.artifactId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputArtifact kind. + * @member {"artifactId"|undefined} kind + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + Object.defineProperty(InputArtifact.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["artifactId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputArtifact instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact instance + */ + InputArtifact.create = function create(properties) { + return new InputArtifact(properties); + }; + + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); + return writer; + }; + + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InputArtifact message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.artifactId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InputArtifact message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InputArtifact message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InputArtifact.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + properties.kind = 1; + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; + } + return null; + }; + + /** + * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + */ + InputArtifact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); + if (object.artifactId != null) + message.artifactId = String(object.artifactId); + return message; + }; + + /** + * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} message InputArtifact + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InputArtifact.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + object.artifactId = message.artifactId; + if (options.oneofs) + object.kind = "artifactId"; + } + return object; + }; + + /** + * Converts this InputArtifact to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + * @returns {Object.} JSON object + */ + InputArtifact.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InputArtifact + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InputArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact"; + }; + + return InputArtifact; + })(); + + return RuntimeConfig; + })(); + + return PipelineJob; })(); - v1.PipelineService = (function() { + v1.PipelineTemplateMetadata = (function() { /** - * Constructs a new PipelineService service. + * Properties of a PipelineTemplateMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineService - * @extends $protobuf.rpc.Service + * @interface IPipelineTemplateMetadata + * @property {string|null} [version] PipelineTemplateMetadata version + */ + + /** + * Constructs a new PipelineTemplateMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineTemplateMetadata. + * @implements IPipelineTemplateMetadata * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set */ - function PipelineService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function PipelineTemplateMetadata(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]]; } - (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; + /** + * PipelineTemplateMetadata version. + * @member {string} version + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @instance + */ + PipelineTemplateMetadata.prototype.version = ""; /** - * Creates new PipelineService service using the specified rpc implementation. + * Creates a new PipelineTemplateMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineService + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {PipelineService} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata instance */ - PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + PipelineTemplateMetadata.create = function create(properties) { + return new PipelineTemplateMetadata(properties); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CreateTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline + * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + PipelineTemplateMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); + return writer; + }; /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 + * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { - return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); - }, "name", { value: "CreateTrainingPipeline" }); + PipelineTemplateMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + PipelineTemplateMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.version = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef GetTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + PipelineTemplateMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 + * Verifies a PipelineTemplateMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { - return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); - }, "name", { value: "GetTrainingPipeline" }); + PipelineTemplateMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata */ + PipelineTemplateMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); + if (object.version != null) + message.version = String(object.version); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef ListTrainingPipelinesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse + * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.PipelineTemplateMetadata} message PipelineTemplateMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + PipelineTemplateMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1.PipelineService + * Converts this PipelineTemplateMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata * @instance - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { - return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, request, callback); - }, "name", { value: "ListTrainingPipelines" }); + PipelineTemplateMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for PipelineTemplateMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + PipelineTemplateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTemplateMetadata"; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef DeleteTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + return PipelineTemplateMetadata; + })(); + + v1.PipelineJobDetail = (function() { /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Properties of a PipelineJobDetail. + * @memberof google.cloud.aiplatform.v1 + * @interface IPipelineJobDetail + * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext + * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext + * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails */ - Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { - return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteTrainingPipeline" }); /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Constructs a new PipelineJobDetail. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineJobDetail. + * @implements IPipelineJobDetail + * @constructor + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set */ + function PipelineJobDetail(properties) { + this.taskDetails = []; + 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]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CancelTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * PipelineJobDetail pipelineContext. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineContext + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @instance */ + PipelineJobDetail.prototype.pipelineContext = null; /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService + * PipelineJobDetail pipelineRunContext. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineRunContext + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { - return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelTrainingPipeline" }); + PipelineJobDetail.prototype.pipelineRunContext = null; /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService + * PipelineJobDetail taskDetails. + * @member {Array.} taskDetails + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + PipelineJobDetail.prototype.taskDetails = $util.emptyArray; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CreatePipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob + * Creates a new PipelineJobDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail instance */ + PipelineJobDetail.create = function create(properties) { + return new PipelineJobDetail(properties); + }; /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { - return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); - }, "name", { value: "CreatePipelineJob" }); - - /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef GetPipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob - */ - - /** - * Calls GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { - return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); - }, "name", { value: "GetPipelineJob" }); - - /** - * Calls GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef ListPipelineJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse - */ - - /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { - return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse, request, callback); - }, "name", { value: "ListPipelineJobs" }); - - /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef DeletePipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { - return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeletePipelineJob" }); - - /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CancelPipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { - return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelPipelineJob" }); - - /** - * Calls CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return PipelineService; - })(); - - v1.CreateTrainingPipelineRequest = (function() { - - /** - * Properties of a CreateTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateTrainingPipelineRequest - * @property {string|null} [parent] CreateTrainingPipelineRequest parent - * @property {google.cloud.aiplatform.v1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline - */ - - /** - * Constructs a new CreateTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateTrainingPipelineRequest. - * @implements ICreateTrainingPipelineRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set - */ - function CreateTrainingPipelineRequest(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]]; - } - - /** - * CreateTrainingPipelineRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest - * @instance - */ - CreateTrainingPipelineRequest.prototype.parent = ""; - - /** - * CreateTrainingPipelineRequest trainingPipeline. - * @member {google.cloud.aiplatform.v1.ITrainingPipeline|null|undefined} trainingPipeline - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest - * @instance - */ - CreateTrainingPipelineRequest.prototype.trainingPipeline = null; - - /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance - */ - CreateTrainingPipelineRequest.create = function create(properties) { - return new CreateTrainingPipelineRequest(properties); - }; - - /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encode = function encode(message, writer) { + PipelineJobDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) - $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) + $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) + $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.taskDetails != null && message.taskDetails.length) + for (var i = 0; i < message.taskDetails.length; ++i) + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a PipelineJobDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decode = function decode(reader, length) { + PipelineJobDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); break; } case 2: { - message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32()); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.taskDetails && message.taskDetails.length)) + message.taskDetails = []; + message.taskDetails.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.decode(reader, reader.uint32())); break; } default: @@ -122970,136 +127061,182 @@ }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTrainingPipelineRequest message. + * Verifies a PipelineJobDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTrainingPipelineRequest.verify = function verify(message) { + PipelineJobDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { - var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipeline); + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineContext); if (error) - return "trainingPipeline." + error; + return "pipelineContext." + error; + } + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineRunContext); + if (error) + return "pipelineRunContext." + error; + } + if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { + if (!Array.isArray(message.taskDetails)) + return "taskDetails: array expected"; + for (var i = 0; i < message.taskDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.verify(message.taskDetails[i]); + if (error) + return "taskDetails." + error; + } } return null; }; /** - * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail */ - CreateTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest) + PipelineJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJobDetail) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.trainingPipeline != null) { - if (typeof object.trainingPipeline !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); - message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipeline); + var message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); + if (object.pipelineContext != null) { + if (typeof object.pipelineContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineContext: object expected"); + message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineContext); + } + if (object.pipelineRunContext != null) { + if (typeof object.pipelineRunContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineRunContext: object expected"); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineRunContext); + } + if (object.taskDetails) { + if (!Array.isArray(object.taskDetails)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: array expected"); + message.taskDetails = []; + for (var i = 0; i < object.taskDetails.length; ++i) { + if (typeof object.taskDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: object expected"); + message.taskDetails[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.fromObject(object.taskDetails[i]); + } } return message; }; /** - * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1.PipelineJobDetail} message PipelineJobDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTrainingPipelineRequest.toObject = function toObject(message, options) { + PipelineJobDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.taskDetails = []; if (options.defaults) { - object.parent = ""; - object.trainingPipeline = null; + object.pipelineContext = null; + object.pipelineRunContext = null; + } + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) + object.pipelineContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineContext, options); + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) + object.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineRunContext, options); + if (message.taskDetails && message.taskDetails.length) { + object.taskDetails = []; + for (var j = 0; j < message.taskDetails.length; ++j) + object.taskDetails[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.toObject(message.taskDetails[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) - object.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipeline, options); return object; }; /** - * Converts this CreateTrainingPipelineRequest to JSON. + * Converts this PipelineJobDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance * @returns {Object.} JSON object */ - CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { + PipelineJobDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateTrainingPipelineRequest + * Gets the default type url for PipelineJobDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateTrainingPipelineRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJobDetail"; }; - return CreateTrainingPipelineRequest; + return PipelineJobDetail; })(); - v1.GetTrainingPipelineRequest = (function() { + v1.PipelineTaskDetail = (function() { /** - * Properties of a GetTrainingPipelineRequest. + * Properties of a PipelineTaskDetail. * @memberof google.cloud.aiplatform.v1 - * @interface IGetTrainingPipelineRequest - * @property {string|null} [name] GetTrainingPipelineRequest name + * @interface IPipelineTaskDetail + * @property {number|Long|null} [taskId] PipelineTaskDetail taskId + * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId + * @property {string|null} [taskName] PipelineTaskDetail taskName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime + * @property {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state + * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] PipelineTaskDetail execution + * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error + * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus + * @property {Object.|null} [inputs] PipelineTaskDetail inputs + * @property {Object.|null} [outputs] PipelineTaskDetail outputs */ /** - * Constructs a new GetTrainingPipelineRequest. + * Constructs a new PipelineTaskDetail. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetTrainingPipelineRequest. - * @implements IGetTrainingPipelineRequest + * @classdesc Represents a PipelineTaskDetail. + * @implements IPipelineTaskDetail * @constructor - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set */ - function GetTrainingPipelineRequest(properties) { + function PipelineTaskDetail(properties) { + this.pipelineTaskStatus = []; + this.inputs = {}; + this.outputs = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123107,338 +127244,290 @@ } /** - * GetTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * PipelineTaskDetail taskId. + * @member {number|Long} taskId + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - GetTrainingPipelineRequest.prototype.name = ""; - - /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance - */ - GetTrainingPipelineRequest.create = function create(properties) { - return new GetTrainingPipelineRequest(properties); - }; - - /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTrainingPipelineRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTrainingPipelineRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Verifies a GetTrainingPipelineRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * PipelineTaskDetail parentTaskId. + * @member {number|Long} parentTaskId + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - GetTrainingPipelineRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * PipelineTaskDetail taskName. + * @member {string} taskName + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - GetTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + PipelineTaskDetail.prototype.taskName = ""; /** - * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * PipelineTaskDetail createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - GetTrainingPipelineRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + PipelineTaskDetail.prototype.createTime = null; /** - * Converts this GetTrainingPipelineRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * PipelineTaskDetail startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance - * @returns {Object.} JSON object */ - GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + PipelineTaskDetail.prototype.startTime = null; /** - * Gets the default type url for GetTrainingPipelineRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * PipelineTaskDetail endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - GetTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetTrainingPipelineRequest"; - }; - - return GetTrainingPipelineRequest; - })(); - - v1.ListTrainingPipelinesRequest = (function() { + PipelineTaskDetail.prototype.endTime = null; /** - * Properties of a ListTrainingPipelinesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IListTrainingPipelinesRequest - * @property {string|null} [parent] ListTrainingPipelinesRequest parent - * @property {string|null} [filter] ListTrainingPipelinesRequest filter - * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize - * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask + * PipelineTaskDetail executorDetail. + * @member {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null|undefined} executorDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ + PipelineTaskDetail.prototype.executorDetail = null; /** - * Constructs a new ListTrainingPipelinesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListTrainingPipelinesRequest. - * @implements IListTrainingPipelinesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set + * PipelineTaskDetail state. + * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - function ListTrainingPipelinesRequest(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]]; - } + PipelineTaskDetail.prototype.state = 0; /** - * ListTrainingPipelinesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail execution. + * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.parent = ""; + PipelineTaskDetail.prototype.execution = null; /** - * ListTrainingPipelinesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.filter = ""; + PipelineTaskDetail.prototype.error = null; /** - * ListTrainingPipelinesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail pipelineTaskStatus. + * @member {Array.} pipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.pageSize = 0; + PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; /** - * ListTrainingPipelinesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail inputs. + * @member {Object.} inputs + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.pageToken = ""; + PipelineTaskDetail.prototype.inputs = $util.emptyObject; /** - * ListTrainingPipelinesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail outputs. + * @member {Object.} outputs + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.readMask = null; + PipelineTaskDetail.prototype.outputs = $util.emptyObject; /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new PipelineTaskDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail instance */ - ListTrainingPipelinesRequest.create = function create(properties) { - return new ListTrainingPipelinesRequest(properties); + PipelineTaskDetail.create = function create(properties) { + return new PipelineTaskDetail(properties); }; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encode = function encode(message, writer) { + PipelineTaskDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); + if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) + $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) + for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) + writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); + if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * Decodes a PipelineTaskDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decode = function decode(reader, length) { + PipelineTaskDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.taskId = reader.int64(); + break; + } + case 12: { + message.parentTaskId = reader.int64(); break; } case 2: { - message.filter = reader.string(); + message.taskName = reader.string(); break; } case 3: { - message.pageSize = reader.int32(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 4: { - message.pageToken = reader.string(); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); + break; + } + case 7: { + message.state = reader.int32(); + break; + } + case 8: { + message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + break; + } + case 9: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 13: { + if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) + message.pipelineTaskStatus = []; + message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); + break; + } + case 10: { + if (message.inputs === $util.emptyObject) + message.inputs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inputs[key] = value; + break; + } + case 11: { + if (message.outputs === $util.emptyObject) + message.outputs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.outputs[key] = value; break; } default: @@ -123450,162 +127539,967 @@ }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTrainingPipelinesRequest message. + * Verifies a PipelineTaskDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTrainingPipelinesRequest.verify = function verify(message) { + PipelineTaskDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) + return "taskId: integer|Long expected"; + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) + return "parentTaskId: integer|Long expected"; + if (message.taskName != null && message.hasOwnProperty("taskName")) + if (!$util.isString(message.taskName)) + return "taskName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "readMask." + error; + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify(message.executorDetail); + if (error) + return "executorDetail." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); + if (error) + return "execution." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { + if (!Array.isArray(message.pipelineTaskStatus)) + return "pipelineTaskStatus: array expected"; + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); + if (error) + return "pipelineTaskStatus." + error; + } + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!$util.isObject(message.inputs)) + return "inputs: object expected"; + var key = Object.keys(message.inputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); + if (error) + return "inputs." + error; + } + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!$util.isObject(message.outputs)) + return "outputs: object expected"; + var key = Object.keys(message.outputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); + if (error) + return "outputs." + error; + } } return null; }; /** - * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail */ - ListTrainingPipelinesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest) + PipelineTaskDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail) return object; - var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(); + if (object.taskId != null) + if ($util.Long) + (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; + else if (typeof object.taskId === "string") + message.taskId = parseInt(object.taskId, 10); + else if (typeof object.taskId === "number") + message.taskId = object.taskId; + else if (typeof object.taskId === "object") + message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); + if (object.parentTaskId != null) + if ($util.Long) + (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; + else if (typeof object.parentTaskId === "string") + message.parentTaskId = parseInt(object.parentTaskId, 10); + else if (typeof object.parentTaskId === "number") + message.parentTaskId = object.parentTaskId; + else if (typeof object.parentTaskId === "object") + message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); + if (object.taskName != null) + message.taskName = String(object.taskName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - return message; - }; - - /** - * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest - * @static - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListTrainingPipelinesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.executorDetail != null) { + if (typeof object.executorDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.executorDetail: object expected"); + message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; + break; + } + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.pipelineTaskStatus) { + if (!Array.isArray(object.pipelineTaskStatus)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: array expected"); + message.pipelineTaskStatus = []; + for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { + if (typeof object.pipelineTaskStatus[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: object expected"); + message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); + } + } + if (object.inputs) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); + message.inputs = {}; + for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { + if (typeof object.inputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); + message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); + } + } + if (object.outputs) { + if (typeof object.outputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); + message.outputs = {}; + for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { + if (typeof object.outputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); + message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail} message PipelineTaskDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineTaskDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pipelineTaskStatus = []; + if (options.objects || options.defaults) { + object.inputs = {}; + object.outputs = {}; + } + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskId = options.longs === String ? "0" : 0; + object.taskName = ""; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.executorDetail = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.execution = null; + object.error = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.parentTaskId = options.longs === String ? "0" : 0; + } + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (typeof message.taskId === "number") + object.taskId = options.longs === String ? String(message.taskId) : message.taskId; + else + object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; + if (message.taskName != null && message.hasOwnProperty("taskName")) + object.taskName = message.taskName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) + object.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { + object.inputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); + } + if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { + object.outputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); + } + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (typeof message.parentTaskId === "number") + object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; + else + object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; + if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { + object.pipelineTaskStatus = []; + for (var j = 0; j < message.pipelineTaskStatus.length; ++j) + object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListTrainingPipelinesRequest to JSON. + * Converts this PipelineTaskDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance * @returns {Object.} JSON object */ - ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { + PipelineTaskDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTrainingPipelinesRequest + * Gets the default type url for PipelineTaskDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTrainingPipelinesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineTaskDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail"; }; - return ListTrainingPipelinesRequest; + PipelineTaskDetail.PipelineTaskStatus = (function() { + + /** + * Properties of a PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @interface IPipelineTaskStatus + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime + * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state + * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error + */ + + /** + * Constructs a new PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @classdesc Represents a PipelineTaskStatus. + * @implements IPipelineTaskStatus + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set + */ + function PipelineTaskStatus(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]]; + } + + /** + * PipelineTaskStatus updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.updateTime = null; + + /** + * PipelineTaskStatus state. + * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.state = 0; + + /** + * PipelineTaskStatus error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.error = null; + + /** + * Creates a new PipelineTaskStatus instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance + */ + PipelineTaskStatus.create = function create(properties) { + return new PipelineTaskStatus(properties); + }; + + /** + * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + case 3: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PipelineTaskStatus message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PipelineTaskStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + return null; + }; + + /** + * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + */ + PipelineTaskStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; + break; + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + return message; + }; + + /** + * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineTaskStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.updateTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.error = null; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + return object; + }; + + /** + * Converts this PipelineTaskStatus to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @instance + * @returns {Object.} JSON object + */ + PipelineTaskStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PipelineTaskStatus + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PipelineTaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus"; + }; + + return PipelineTaskStatus; + })(); + + PipelineTaskDetail.ArtifactList = (function() { + + /** + * Properties of an ArtifactList. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @interface IArtifactList + * @property {Array.|null} [artifacts] ArtifactList artifacts + */ + + /** + * Constructs a new ArtifactList. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @classdesc Represents an ArtifactList. + * @implements IArtifactList + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + */ + function ArtifactList(properties) { + this.artifacts = []; + 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]]; + } + + /** + * ArtifactList artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @instance + */ + ArtifactList.prototype.artifacts = $util.emptyArray; + + /** + * Creates a new ArtifactList instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList instance + */ + ArtifactList.create = function create(properties) { + return new ArtifactList(properties); + }; + + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArtifactList message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } + } + return null; + }; + + /** + * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList + */ + ArtifactList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} message ArtifactList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArtifactList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.artifacts = []; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); + } + return object; + }; + + /** + * Converts this ArtifactList to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @instance + * @returns {Object.} JSON object + */ + ArtifactList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ArtifactList + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArtifactList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList"; + }; + + return ArtifactList; + })(); + + /** + * State enum. + * @name google.cloud.aiplatform.v1.PipelineTaskDetail.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value + * @property {number} CANCELLING=5 CANCELLING value + * @property {number} CANCELLED=6 CANCELLED value + * @property {number} FAILED=7 FAILED value + * @property {number} SKIPPED=8 SKIPPED value + * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value + */ + PipelineTaskDetail.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "CANCEL_PENDING"] = 4; + values[valuesById[5] = "CANCELLING"] = 5; + values[valuesById[6] = "CANCELLED"] = 6; + values[valuesById[7] = "FAILED"] = 7; + values[valuesById[8] = "SKIPPED"] = 8; + values[valuesById[9] = "NOT_TRIGGERED"] = 9; + return values; + })(); + + return PipelineTaskDetail; })(); - v1.ListTrainingPipelinesResponse = (function() { + v1.PipelineTaskExecutorDetail = (function() { /** - * Properties of a ListTrainingPipelinesResponse. + * Properties of a PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1 - * @interface IListTrainingPipelinesResponse - * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines - * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken + * @interface IPipelineTaskExecutorDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail */ /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListTrainingPipelinesResponse. - * @implements IListTrainingPipelinesResponse + * @classdesc Represents a PipelineTaskExecutorDetail. + * @implements IPipelineTaskExecutorDetail * @constructor - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set */ - function ListTrainingPipelinesResponse(properties) { - this.trainingPipelines = []; + function PipelineTaskExecutorDetail(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123613,92 +128507,103 @@ } /** - * ListTrainingPipelinesResponse trainingPipelines. - * @member {Array.} trainingPipelines - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * PipelineTaskExecutorDetail containerDetail. + * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @instance */ - ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; + PipelineTaskExecutorDetail.prototype.containerDetail = null; /** - * ListTrainingPipelinesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * PipelineTaskExecutorDetail customJobDetail. + * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @instance */ - ListTrainingPipelinesResponse.prototype.nextPageToken = ""; + PipelineTaskExecutorDetail.prototype.customJobDetail = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * PipelineTaskExecutorDetail details. + * @member {"containerDetail"|"customJobDetail"|undefined} details + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @instance + */ + Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { + get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance */ - ListTrainingPipelinesResponse.create = function create(properties) { - return new ListTrainingPipelinesResponse(properties); + PipelineTaskExecutorDetail.create = function create(properties) { + return new PipelineTaskExecutorDetail(properties); }; /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesResponse.encode = function encode(message, writer) { + PipelineTaskExecutorDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingPipelines != null && message.trainingPipelines.length) - for (var i = 0; i < message.trainingPipelines.length; ++i) - $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) + $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) + $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesResponse.decode = function decode(reader, length) { + PipelineTaskExecutorDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.trainingPipelines && message.trainingPipelines.length)) - message.trainingPipelines = []; - message.trainingPipelines.push($root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32())); + message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); + message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); break; } default: @@ -123710,351 +128615,732 @@ }; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTrainingPipelinesResponse message. + * Verifies a PipelineTaskExecutorDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTrainingPipelinesResponse.verify = function verify(message) { + PipelineTaskExecutorDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { - if (!Array.isArray(message.trainingPipelines)) - return "trainingPipelines: array expected"; - for (var i = 0; i < message.trainingPipelines.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipelines[i]); + var properties = {}; + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); if (error) - return "trainingPipelines." + error; + return "containerDetail." + error; + } + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + if (properties.details === 1) + return "details: multiple values"; + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (error) + return "customJobDetail." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail */ - ListTrainingPipelinesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) + PipelineTaskExecutorDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) return object; - var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); - if (object.trainingPipelines) { - if (!Array.isArray(object.trainingPipelines)) - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); - message.trainingPipelines = []; - for (var i = 0; i < object.trainingPipelines.length; ++i) { - if (typeof object.trainingPipelines[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); - message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipelines[i]); - } + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); + if (object.containerDetail != null) { + if (typeof object.containerDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.containerDetail: object expected"); + message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); + } + if (object.customJobDetail != null) { + if (typeof object.customJobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.customJobDetail: object expected"); + message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTrainingPipelinesResponse.toObject = function toObject(message, options) { + PipelineTaskExecutorDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.trainingPipelines = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.trainingPipelines && message.trainingPipelines.length) { - object.trainingPipelines = []; - for (var j = 0; j < message.trainingPipelines.length; ++j) - object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipelines[j], options); + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + object.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); + if (options.oneofs) + object.details = "containerDetail"; + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + object.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); + if (options.oneofs) + object.details = "customJobDetail"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this PipelineTaskExecutorDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @instance * @returns {Object.} JSON object */ - ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { + PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTrainingPipelinesResponse + * Gets the default type url for PipelineTaskExecutorDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTrainingPipelinesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineTaskExecutorDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail"; }; - return ListTrainingPipelinesResponse; - })(); + PipelineTaskExecutorDetail.ContainerDetail = (function() { - v1.DeleteTrainingPipelineRequest = (function() { + /** + * Properties of a ContainerDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @interface IContainerDetail + * @property {string|null} [mainJob] ContainerDetail mainJob + * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob + * @property {Array.|null} [failedMainJobs] ContainerDetail failedMainJobs + * @property {Array.|null} [failedPreCachingCheckJobs] ContainerDetail failedPreCachingCheckJobs + */ - /** - * Properties of a DeleteTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteTrainingPipelineRequest - * @property {string|null} [name] DeleteTrainingPipelineRequest name - */ + /** + * Constructs a new ContainerDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @classdesc Represents a ContainerDetail. + * @implements IContainerDetail + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + */ + function ContainerDetail(properties) { + this.failedMainJobs = []; + this.failedPreCachingCheckJobs = []; + 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]]; + } - /** - * Constructs a new DeleteTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteTrainingPipelineRequest. - * @implements IDeleteTrainingPipelineRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set - */ - function DeleteTrainingPipelineRequest(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]]; - } + /** + * ContainerDetail mainJob. + * @member {string} mainJob + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.mainJob = ""; - /** - * DeleteTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @instance - */ - DeleteTrainingPipelineRequest.prototype.name = ""; + /** + * ContainerDetail preCachingCheckJob. + * @member {string} preCachingCheckJob + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.preCachingCheckJob = ""; - /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance - */ - DeleteTrainingPipelineRequest.create = function create(properties) { - return new DeleteTrainingPipelineRequest(properties); - }; + /** + * ContainerDetail failedMainJobs. + * @member {Array.} failedMainJobs + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.failedMainJobs = $util.emptyArray; - /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTrainingPipelineRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * ContainerDetail failedPreCachingCheckJobs. + * @member {Array.} failedPreCachingCheckJobs + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.failedPreCachingCheckJobs = $util.emptyArray; - /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ContainerDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance + */ + ContainerDetail.create = function create(properties) { + return new ContainerDetail(properties); + }; - /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTrainingPipelineRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); + if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); + if (message.failedMainJobs != null && message.failedMainJobs.length) + for (var i = 0; i < message.failedMainJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedMainJobs[i]); + if (message.failedPreCachingCheckJobs != null && message.failedPreCachingCheckJobs.length) + for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.failedPreCachingCheckJobs[i]); + return writer; + }; + + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ContainerDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.mainJob = reader.string(); + break; + } + case 2: { + message.preCachingCheckJob = reader.string(); + break; + } + case 3: { + if (!(message.failedMainJobs && message.failedMainJobs.length)) + message.failedMainJobs = []; + message.failedMainJobs.push(reader.string()); + break; + } + case 4: { + if (!(message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length)) + message.failedPreCachingCheckJobs = []; + message.failedPreCachingCheckJobs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a DeleteTrainingPipelineRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTrainingPipelineRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a ContainerDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + if (!$util.isString(message.mainJob)) + return "mainJob: string expected"; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + if (!$util.isString(message.preCachingCheckJob)) + return "preCachingCheckJob: string expected"; + if (message.failedMainJobs != null && message.hasOwnProperty("failedMainJobs")) { + if (!Array.isArray(message.failedMainJobs)) + return "failedMainJobs: array expected"; + for (var i = 0; i < message.failedMainJobs.length; ++i) + if (!$util.isString(message.failedMainJobs[i])) + return "failedMainJobs: string[] expected"; + } + if (message.failedPreCachingCheckJobs != null && message.hasOwnProperty("failedPreCachingCheckJobs")) { + if (!Array.isArray(message.failedPreCachingCheckJobs)) + return "failedPreCachingCheckJobs: array expected"; + for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) + if (!$util.isString(message.failedPreCachingCheckJobs[i])) + return "failedPreCachingCheckJobs: string[] expected"; + } + return null; + }; - /** - * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest - */ - DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest) + /** + * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + */ + ContainerDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); + if (object.mainJob != null) + message.mainJob = String(object.mainJob); + if (object.preCachingCheckJob != null) + message.preCachingCheckJob = String(object.preCachingCheckJob); + if (object.failedMainJobs) { + if (!Array.isArray(object.failedMainJobs)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedMainJobs: array expected"); + message.failedMainJobs = []; + for (var i = 0; i < object.failedMainJobs.length; ++i) + message.failedMainJobs[i] = String(object.failedMainJobs[i]); + } + if (object.failedPreCachingCheckJobs) { + if (!Array.isArray(object.failedPreCachingCheckJobs)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedPreCachingCheckJobs: array expected"); + message.failedPreCachingCheckJobs = []; + for (var i = 0; i < object.failedPreCachingCheckJobs.length; ++i) + message.failedPreCachingCheckJobs[i] = String(object.failedPreCachingCheckJobs[i]); + } + return message; + }; + + /** + * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContainerDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.failedMainJobs = []; + object.failedPreCachingCheckJobs = []; + } + if (options.defaults) { + object.mainJob = ""; + object.preCachingCheckJob = ""; + } + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + object.mainJob = message.mainJob; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + object.preCachingCheckJob = message.preCachingCheckJob; + if (message.failedMainJobs && message.failedMainJobs.length) { + object.failedMainJobs = []; + for (var j = 0; j < message.failedMainJobs.length; ++j) + object.failedMainJobs[j] = message.failedMainJobs[j]; + } + if (message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length) { + object.failedPreCachingCheckJobs = []; + for (var j = 0; j < message.failedPreCachingCheckJobs.length; ++j) + object.failedPreCachingCheckJobs[j] = message.failedPreCachingCheckJobs[j]; + } return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteTrainingPipelineRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this ContainerDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + * @returns {Object.} JSON object + */ + ContainerDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DeleteTrainingPipelineRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ContainerDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContainerDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail"; + }; - /** - * Gets the default type url for DeleteTrainingPipelineRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + return ContainerDetail; + })(); + + PipelineTaskExecutorDetail.CustomJobDetail = (function() { + + /** + * Properties of a CustomJobDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @interface ICustomJobDetail + * @property {string|null} [job] CustomJobDetail job + * @property {Array.|null} [failedJobs] CustomJobDetail failedJobs + */ + + /** + * Constructs a new CustomJobDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @classdesc Represents a CustomJobDetail. + * @implements ICustomJobDetail + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + */ + function CustomJobDetail(properties) { + this.failedJobs = []; + 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]]; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest"; - }; - return DeleteTrainingPipelineRequest; + /** + * CustomJobDetail job. + * @member {string} job + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.job = ""; + + /** + * CustomJobDetail failedJobs. + * @member {Array.} failedJobs + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.failedJobs = $util.emptyArray; + + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance + */ + CustomJobDetail.create = function create(properties) { + return new CustomJobDetail(properties); + }; + + /** + * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.job != null && Object.hasOwnProperty.call(message, "job")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); + if (message.failedJobs != null && message.failedJobs.length) + for (var i = 0; i < message.failedJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedJobs[i]); + return writer; + }; + + /** + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomJobDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.job = reader.string(); + break; + } + case 3: { + if (!(message.failedJobs && message.failedJobs.length)) + message.failedJobs = []; + message.failedJobs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomJobDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomJobDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.job != null && message.hasOwnProperty("job")) + if (!$util.isString(message.job)) + return "job: string expected"; + if (message.failedJobs != null && message.hasOwnProperty("failedJobs")) { + if (!Array.isArray(message.failedJobs)) + return "failedJobs: array expected"; + for (var i = 0; i < message.failedJobs.length; ++i) + if (!$util.isString(message.failedJobs[i])) + return "failedJobs: string[] expected"; + } + return null; + }; + + /** + * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + */ + CustomJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); + if (object.job != null) + message.job = String(object.job); + if (object.failedJobs) { + if (!Array.isArray(object.failedJobs)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.failedJobs: array expected"); + message.failedJobs = []; + for (var i = 0; i < object.failedJobs.length; ++i) + message.failedJobs[i] = String(object.failedJobs[i]); + } + return message; + }; + + /** + * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomJobDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.failedJobs = []; + if (options.defaults) + object.job = ""; + if (message.job != null && message.hasOwnProperty("job")) + object.job = message.job; + if (message.failedJobs && message.failedJobs.length) { + object.failedJobs = []; + for (var j = 0; j < message.failedJobs.length; ++j) + object.failedJobs[j] = message.failedJobs[j]; + } + return object; + }; + + /** + * Converts this CustomJobDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + * @returns {Object.} JSON object + */ + CustomJobDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomJobDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail"; + }; + + return CustomJobDetail; + })(); + + return PipelineTaskExecutorDetail; })(); - v1.CancelTrainingPipelineRequest = (function() { + /** + * PipelineState enum. + * @name google.cloud.aiplatform.v1.PipelineState + * @enum {number} + * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value + * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value + * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value + * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value + * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value + * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value + * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value + * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value + * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value + */ + v1.PipelineState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; + values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; + values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; + values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; + values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; + values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; + values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; + values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; + return values; + })(); + + v1.Value = (function() { /** - * Properties of a CancelTrainingPipelineRequest. + * Properties of a Value. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelTrainingPipelineRequest - * @property {string|null} [name] CancelTrainingPipelineRequest name + * @interface IValue + * @property {number|Long|null} [intValue] Value intValue + * @property {number|null} [doubleValue] Value doubleValue + * @property {string|null} [stringValue] Value stringValue */ /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new Value. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelTrainingPipelineRequest. - * @implements ICancelTrainingPipelineRequest + * @classdesc Represents a Value. + * @implements IValue * @constructor - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set */ - function CancelTrainingPipelineRequest(properties) { + function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124062,75 +129348,117 @@ } /** - * CancelTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * Value intValue. + * @member {number|Long|null|undefined} intValue + * @memberof google.cloud.aiplatform.v1.Value * @instance */ - CancelTrainingPipelineRequest.prototype.name = ""; + Value.prototype.intValue = null; /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * Value doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.cloud.aiplatform.v1.Value + * @instance + */ + Value.prototype.doubleValue = null; + + /** + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1.Value + * @instance + */ + Value.prototype.stringValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Value value. + * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value + * @memberof google.cloud.aiplatform.v1.Value + * @instance + */ + Object.defineProperty(Value.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Value} Value instance */ - CancelTrainingPipelineRequest.create = function create(properties) { - return new CancelTrainingPipelineRequest(properties); + Value.create = function create(properties) { + return new Value(properties); }; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encode = function encode(message, writer) { + Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); return writer; }; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelTrainingPipelineRequest.decode = function decode(reader, length) { + Value.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.intValue = reader.int64(); + break; + } + case 2: { + message.doubleValue = reader.double(); + break; + } + case 3: { + message.stringValue = reader.string(); break; } default: @@ -124142,215 +129470,611 @@ }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelTrainingPipelineRequest message. + * Verifies a Value message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelTrainingPipelineRequest.verify = function verify(message) { + Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + properties.value = 1; + if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) + return "intValue: integer|Long expected"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } return null; }; /** - * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.Value} Value */ - CancelTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Value) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.Value(); + if (object.intValue != null) + if ($util.Long) + (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; + else if (typeof object.intValue === "string") + message.intValue = parseInt(object.intValue, 10); + else if (typeof object.intValue === "number") + message.intValue = object.intValue; + else if (typeof object.intValue === "object") + message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); return message; }; /** - * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelTrainingPipelineRequest.toObject = function toObject(message, options) { + Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + if (typeof message.intValue === "number") + object.intValue = options.longs === String ? String(message.intValue) : message.intValue; + else + object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; + if (options.oneofs) + object.value = "intValue"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.value = "doubleValue"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.value = "stringValue"; + } return object; }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @instance * @returns {Object.} JSON object */ - CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelTrainingPipelineRequest + * Gets the default type url for Value * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelTrainingPipelineRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Value"; }; - return CancelTrainingPipelineRequest; + return Value; })(); - v1.CreatePipelineJobRequest = (function() { + v1.PipelineService = (function() { /** - * Properties of a CreatePipelineJobRequest. + * Constructs a new PipelineService service. * @memberof google.cloud.aiplatform.v1 - * @interface ICreatePipelineJobRequest - * @property {string|null} [parent] CreatePipelineJobRequest parent - * @property {google.cloud.aiplatform.v1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob - * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId + * @classdesc Represents a PipelineService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function PipelineService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; /** - * Constructs a new CreatePipelineJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreatePipelineJobRequest. - * @implements ICreatePipelineJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set + * Creates new PipelineService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {PipelineService} RPC service. Useful where requests and/or responses are streamed. */ - function CreatePipelineJobRequest(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]]; - } + PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * CreatePipelineJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CreateTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline */ - CreatePipelineJobRequest.prototype.parent = ""; /** - * CreatePipelineJobRequest pipelineJob. - * @member {google.cloud.aiplatform.v1.IPipelineJob|null|undefined} pipelineJob - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 */ - CreatePipelineJobRequest.prototype.pipelineJob = null; + Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { + return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); + }, "name", { value: "CreateTrainingPipeline" }); /** - * CreatePipelineJobRequest pipelineJobId. - * @member {string} pipelineJobId - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePipelineJobRequest.prototype.pipelineJobId = ""; /** - * Creates a new CreatePipelineJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef GetTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline */ - CreatePipelineJobRequest.create = function create(properties) { - return new CreatePipelineJobRequest(properties); - }; /** - * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 */ - CreatePipelineJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) - $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); - return writer; - }; + Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { + return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); + }, "name", { value: "GetTrainingPipeline" }); /** - * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef ListTrainingPipelinesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse + */ + + /** + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { + return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, request, callback); + }, "name", { value: "ListTrainingPipelines" }); + + /** + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef DeleteTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { + return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteTrainingPipeline" }); + + /** + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CancelTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { + return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelTrainingPipeline" }); + + /** + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CreatePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob + */ + + /** + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { + return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); + }, "name", { value: "CreatePipelineJob" }); + + /** + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef GetPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob + */ + + /** + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { + return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); + }, "name", { value: "GetPipelineJob" }); + + /** + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef ListPipelineJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse + */ + + /** + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { + return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse, request, callback); + }, "name", { value: "ListPipelineJobs" }); + + /** + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef DeletePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { + return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeletePipelineJob" }); + + /** + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CancelPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { + return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelPipelineJob" }); + + /** + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return PipelineService; + })(); + + v1.CreateTrainingPipelineRequest = (function() { + + /** + * Properties of a CreateTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateTrainingPipelineRequest + * @property {string|null} [parent] CreateTrainingPipelineRequest parent + * @property {google.cloud.aiplatform.v1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline + */ + + /** + * Constructs a new CreateTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateTrainingPipelineRequest. + * @implements ICreateTrainingPipelineRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set + */ + function CreateTrainingPipelineRequest(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]]; + } + + /** + * CreateTrainingPipelineRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @instance + */ + CreateTrainingPipelineRequest.prototype.parent = ""; + + /** + * CreateTrainingPipelineRequest trainingPipeline. + * @member {google.cloud.aiplatform.v1.ITrainingPipeline|null|undefined} trainingPipeline + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @instance + */ + CreateTrainingPipelineRequest.prototype.trainingPipeline = null; + + /** + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance + */ + CreateTrainingPipelineRequest.create = function create(properties) { + return new CreateTrainingPipelineRequest(properties); + }; + + /** + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTrainingPipelineRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) + $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decode = function decode(reader, length) { + CreateTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -124359,11 +130083,7 @@ break; } case 2: { - message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32()); - break; - } - case 3: { - message.pipelineJobId = reader.string(); + message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32()); break; } default: @@ -124375,144 +130095,136 @@ }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePipelineJobRequest message. + * Verifies a CreateTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePipelineJobRequest.verify = function verify(message) { + CreateTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJob); + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { + var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipeline); if (error) - return "pipelineJob." + error; + return "trainingPipeline." + error; } - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - if (!$util.isString(message.pipelineJobId)) - return "pipelineJobId: string expected"; return null; }; /** - * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest */ - CreatePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest) + CreateTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pipelineJob != null) { - if (typeof object.pipelineJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreatePipelineJobRequest.pipelineJob: object expected"); - message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJob); + if (object.trainingPipeline != null) { + if (typeof object.trainingPipeline !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); + message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipeline); } - if (object.pipelineJobId != null) - message.pipelineJobId = String(object.pipelineJobId); return message; }; /** - * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.CreatePipelineJobRequest} message CreatePipelineJobRequest + * @param {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePipelineJobRequest.toObject = function toObject(message, options) { + CreateTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pipelineJob = null; - object.pipelineJobId = ""; + object.trainingPipeline = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) - object.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJob, options); - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - object.pipelineJobId = message.pipelineJobId; + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) + object.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipeline, options); return object; }; /** - * Converts this CreatePipelineJobRequest to JSON. + * Converts this CreateTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - CreatePipelineJobRequest.prototype.toJSON = function toJSON() { + CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePipelineJobRequest + * Gets the default type url for CreateTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreatePipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateTrainingPipelineRequest"; }; - return CreatePipelineJobRequest; + return CreateTrainingPipelineRequest; })(); - v1.GetPipelineJobRequest = (function() { + v1.GetTrainingPipelineRequest = (function() { /** - * Properties of a GetPipelineJobRequest. + * Properties of a GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetPipelineJobRequest - * @property {string|null} [name] GetPipelineJobRequest name + * @interface IGetTrainingPipelineRequest + * @property {string|null} [name] GetTrainingPipelineRequest name */ /** - * Constructs a new GetPipelineJobRequest. + * Constructs a new GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetPipelineJobRequest. - * @implements IGetPipelineJobRequest + * @classdesc Represents a GetTrainingPipelineRequest. + * @implements IGetTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set */ - function GetPipelineJobRequest(properties) { + function GetTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124520,35 +130232,35 @@ } /** - * GetPipelineJobRequest name. + * GetTrainingPipelineRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @instance */ - GetPipelineJobRequest.prototype.name = ""; + GetTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new GetPipelineJobRequest instance using the specified properties. + * Creates a new GetTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance */ - GetPipelineJobRequest.create = function create(properties) { - return new GetPipelineJobRequest(properties); + GetTrainingPipelineRequest.create = function create(properties) { + return new GetTrainingPipelineRequest(properties); }; /** - * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encode = function encode(message, writer) { + GetTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -124557,33 +130269,33 @@ }; /** - * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decode = function decode(reader, length) { + GetTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -124600,30 +130312,30 @@ }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPipelineJobRequest message. + * Verifies a GetTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPipelineJobRequest.verify = function verify(message) { + GetTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -124633,32 +130345,32 @@ }; /** - * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest */ - GetPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetPipelineJobRequest) + GetTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.GetPipelineJobRequest} message GetPipelineJobRequest + * @param {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPipelineJobRequest.toObject = function toObject(message, options) { + GetTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -124670,57 +130382,56 @@ }; /** - * Converts this GetPipelineJobRequest to JSON. + * Converts this GetTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - GetPipelineJobRequest.prototype.toJSON = function toJSON() { + GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPipelineJobRequest + * Gets the default type url for GetTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetPipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetTrainingPipelineRequest"; }; - return GetPipelineJobRequest; + return GetTrainingPipelineRequest; })(); - v1.ListPipelineJobsRequest = (function() { + v1.ListTrainingPipelinesRequest = (function() { /** - * Properties of a ListPipelineJobsRequest. + * Properties of a ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListPipelineJobsRequest - * @property {string|null} [parent] ListPipelineJobsRequest parent - * @property {string|null} [filter] ListPipelineJobsRequest filter - * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize - * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken - * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListPipelineJobsRequest readMask + * @interface IListTrainingPipelinesRequest + * @property {string|null} [parent] ListTrainingPipelinesRequest parent + * @property {string|null} [filter] ListTrainingPipelinesRequest filter + * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize + * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask */ /** - * Constructs a new ListPipelineJobsRequest. + * Constructs a new ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListPipelineJobsRequest. - * @implements IListPipelineJobsRequest + * @classdesc Represents a ListTrainingPipelinesRequest. + * @implements IListTrainingPipelinesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set */ - function ListPipelineJobsRequest(properties) { + function ListTrainingPipelinesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124728,75 +130439,67 @@ } /** - * ListPipelineJobsRequest parent. + * ListTrainingPipelinesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.parent = ""; + ListTrainingPipelinesRequest.prototype.parent = ""; /** - * ListPipelineJobsRequest filter. + * ListTrainingPipelinesRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.filter = ""; + ListTrainingPipelinesRequest.prototype.filter = ""; /** - * ListPipelineJobsRequest pageSize. + * ListTrainingPipelinesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.pageSize = 0; + ListTrainingPipelinesRequest.prototype.pageSize = 0; /** - * ListPipelineJobsRequest pageToken. + * ListTrainingPipelinesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest - * @instance - */ - ListPipelineJobsRequest.prototype.pageToken = ""; - - /** - * ListPipelineJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.orderBy = ""; + ListTrainingPipelinesRequest.prototype.pageToken = ""; /** - * ListPipelineJobsRequest readMask. + * ListTrainingPipelinesRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.readMask = null; + ListTrainingPipelinesRequest.prototype.readMask = null; /** - * Creates a new ListPipelineJobsRequest instance using the specified properties. + * Creates a new ListTrainingPipelinesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance */ - ListPipelineJobsRequest.create = function create(properties) { - return new ListPipelineJobsRequest(properties); + ListTrainingPipelinesRequest.create = function create(properties) { + return new ListTrainingPipelinesRequest(properties); }; /** - * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encode = function encode(message, writer) { + ListTrainingPipelinesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -124807,41 +130510,39 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decode = function decode(reader, length) { + ListTrainingPipelinesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -124861,11 +130562,7 @@ message.pageToken = reader.string(); break; } - case 6: { - message.orderBy = reader.string(); - break; - } - case 7: { + case 5: { message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } @@ -124878,30 +130575,30 @@ }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPipelineJobsRequest message. + * Verifies a ListTrainingPipelinesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPipelineJobsRequest.verify = function verify(message) { + ListTrainingPipelinesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -124916,9 +130613,6 @@ if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; if (message.readMask != null && message.hasOwnProperty("readMask")) { var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) @@ -124928,17 +130622,17 @@ }; /** - * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest */ - ListPipelineJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest) + ListTrainingPipelinesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -124947,26 +130641,24 @@ message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.ListPipelineJobsRequest} message ListPipelineJobsRequest + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPipelineJobsRequest.toObject = function toObject(message, options) { + ListTrainingPipelinesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -124975,7 +130667,6 @@ object.filter = ""; object.pageSize = 0; object.pageToken = ""; - object.orderBy = ""; object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) @@ -124986,62 +130677,60 @@ object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; if (message.readMask != null && message.hasOwnProperty("readMask")) object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListPipelineJobsRequest to JSON. + * Converts this ListTrainingPipelinesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance * @returns {Object.} JSON object */ - ListPipelineJobsRequest.prototype.toJSON = function toJSON() { + ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPipelineJobsRequest + * Gets the default type url for ListTrainingPipelinesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTrainingPipelinesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesRequest"; }; - return ListPipelineJobsRequest; + return ListTrainingPipelinesRequest; })(); - v1.ListPipelineJobsResponse = (function() { + v1.ListTrainingPipelinesResponse = (function() { /** - * Properties of a ListPipelineJobsResponse. + * Properties of a ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListPipelineJobsResponse - * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs - * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken + * @interface IListTrainingPipelinesResponse + * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines + * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken */ /** - * Constructs a new ListPipelineJobsResponse. + * Constructs a new ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListPipelineJobsResponse. - * @implements IListPipelineJobsResponse + * @classdesc Represents a ListTrainingPipelinesResponse. + * @implements IListTrainingPipelinesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set */ - function ListPipelineJobsResponse(properties) { - this.pipelineJobs = []; + function ListTrainingPipelinesResponse(properties) { + this.trainingPipelines = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125049,88 +130738,88 @@ } /** - * ListPipelineJobsResponse pipelineJobs. - * @member {Array.} pipelineJobs - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * ListTrainingPipelinesResponse trainingPipelines. + * @member {Array.} trainingPipelines + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @instance */ - ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; + ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; /** - * ListPipelineJobsResponse nextPageToken. + * ListTrainingPipelinesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @instance */ - ListPipelineJobsResponse.prototype.nextPageToken = ""; + ListTrainingPipelinesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListPipelineJobsResponse instance using the specified properties. + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance */ - ListPipelineJobsResponse.create = function create(properties) { - return new ListPipelineJobsResponse(properties); + ListTrainingPipelinesResponse.create = function create(properties) { + return new ListTrainingPipelinesResponse(properties); }; /** - * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsResponse.encode = function encode(message, writer) { + ListTrainingPipelinesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineJobs != null && message.pipelineJobs.length) - for (var i = 0; i < message.pipelineJobs.length; ++i) - $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainingPipelines != null && message.trainingPipelines.length) + for (var i = 0; i < message.trainingPipelines.length; ++i) + $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsResponse.decode = function decode(reader, length) { + ListTrainingPipelinesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.pipelineJobs && message.pipelineJobs.length)) - message.pipelineJobs = []; - message.pipelineJobs.push($root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32())); + if (!(message.trainingPipelines && message.trainingPipelines.length)) + message.trainingPipelines = []; + message.trainingPipelines.push($root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32())); break; } case 2: { @@ -125146,39 +130835,39 @@ }; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPipelineJobsResponse message. + * Verifies a ListTrainingPipelinesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPipelineJobsResponse.verify = function verify(message) { + ListTrainingPipelinesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { - if (!Array.isArray(message.pipelineJobs)) - return "pipelineJobs: array expected"; - for (var i = 0; i < message.pipelineJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJobs[i]); + if (message.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { + if (!Array.isArray(message.trainingPipelines)) + return "trainingPipelines: array expected"; + for (var i = 0; i < message.trainingPipelines.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipelines[i]); if (error) - return "pipelineJobs." + error; + return "trainingPipelines." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -125188,25 +130877,25 @@ }; /** - * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse */ - ListPipelineJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse) + ListTrainingPipelinesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); - if (object.pipelineJobs) { - if (!Array.isArray(object.pipelineJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: array expected"); - message.pipelineJobs = []; - for (var i = 0; i < object.pipelineJobs.length; ++i) { - if (typeof object.pipelineJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: object expected"); - message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); + if (object.trainingPipelines) { + if (!Array.isArray(object.trainingPipelines)) + throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); + message.trainingPipelines = []; + for (var i = 0; i < object.trainingPipelines.length; ++i) { + if (typeof object.trainingPipelines[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); + message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipelines[i]); } } if (object.nextPageToken != null) @@ -125215,26 +130904,26 @@ }; /** - * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} message ListPipelineJobsResponse + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPipelineJobsResponse.toObject = function toObject(message, options) { + ListTrainingPipelinesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.pipelineJobs = []; + object.trainingPipelines = []; if (options.defaults) object.nextPageToken = ""; - if (message.pipelineJobs && message.pipelineJobs.length) { - object.pipelineJobs = []; - for (var j = 0; j < message.pipelineJobs.length; ++j) - object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJobs[j], options); + if (message.trainingPipelines && message.trainingPipelines.length) { + object.trainingPipelines = []; + for (var j = 0; j < message.trainingPipelines.length; ++j) + object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipelines[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -125242,52 +130931,52 @@ }; /** - * Converts this ListPipelineJobsResponse to JSON. + * Converts this ListTrainingPipelinesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @instance * @returns {Object.} JSON object */ - ListPipelineJobsResponse.prototype.toJSON = function toJSON() { + ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPipelineJobsResponse + * Gets the default type url for ListTrainingPipelinesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTrainingPipelinesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesResponse"; }; - return ListPipelineJobsResponse; + return ListTrainingPipelinesResponse; })(); - v1.DeletePipelineJobRequest = (function() { + v1.DeleteTrainingPipelineRequest = (function() { /** - * Properties of a DeletePipelineJobRequest. + * Properties of a DeleteTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeletePipelineJobRequest - * @property {string|null} [name] DeletePipelineJobRequest name + * @interface IDeleteTrainingPipelineRequest + * @property {string|null} [name] DeleteTrainingPipelineRequest name */ /** - * Constructs a new DeletePipelineJobRequest. + * Constructs a new DeleteTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeletePipelineJobRequest. - * @implements IDeletePipelineJobRequest + * @classdesc Represents a DeleteTrainingPipelineRequest. + * @implements IDeleteTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set */ - function DeletePipelineJobRequest(properties) { + function DeleteTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125295,35 +130984,35 @@ } /** - * DeletePipelineJobRequest name. + * DeleteTrainingPipelineRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @instance */ - DeletePipelineJobRequest.prototype.name = ""; + DeleteTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new DeletePipelineJobRequest instance using the specified properties. + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance */ - DeletePipelineJobRequest.create = function create(properties) { - return new DeletePipelineJobRequest(properties); + DeleteTrainingPipelineRequest.create = function create(properties) { + return new DeleteTrainingPipelineRequest(properties); }; /** - * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encode = function encode(message, writer) { + DeleteTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -125332,33 +131021,33 @@ }; /** - * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decode = function decode(reader, length) { + DeleteTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -125375,30 +131064,30 @@ }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePipelineJobRequest message. + * Verifies a DeleteTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePipelineJobRequest.verify = function verify(message) { + DeleteTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -125408,32 +131097,32 @@ }; /** - * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest */ - DeletePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest) + DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.DeletePipelineJobRequest} message DeletePipelineJobRequest + * @param {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePipelineJobRequest.toObject = function toObject(message, options) { + DeleteTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -125445,52 +131134,52 @@ }; /** - * Converts this DeletePipelineJobRequest to JSON. + * Converts this DeleteTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - DeletePipelineJobRequest.prototype.toJSON = function toJSON() { + DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePipelineJobRequest + * Gets the default type url for DeleteTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeletePipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest"; }; - return DeletePipelineJobRequest; + return DeleteTrainingPipelineRequest; })(); - v1.CancelPipelineJobRequest = (function() { + v1.CancelTrainingPipelineRequest = (function() { /** - * Properties of a CancelPipelineJobRequest. + * Properties of a CancelTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelPipelineJobRequest - * @property {string|null} [name] CancelPipelineJobRequest name + * @interface ICancelTrainingPipelineRequest + * @property {string|null} [name] CancelTrainingPipelineRequest name */ /** - * Constructs a new CancelPipelineJobRequest. + * Constructs a new CancelTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelPipelineJobRequest. - * @implements ICancelPipelineJobRequest + * @classdesc Represents a CancelTrainingPipelineRequest. + * @implements ICancelTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set */ - function CancelPipelineJobRequest(properties) { + function CancelTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125498,35 +131187,35 @@ } /** - * CancelPipelineJobRequest name. + * CancelTrainingPipelineRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @instance */ - CancelPipelineJobRequest.prototype.name = ""; + CancelTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new CancelPipelineJobRequest instance using the specified properties. + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance */ - CancelPipelineJobRequest.create = function create(properties) { - return new CancelPipelineJobRequest(properties); + CancelTrainingPipelineRequest.create = function create(properties) { + return new CancelTrainingPipelineRequest(properties); }; /** - * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encode = function encode(message, writer) { + CancelTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -125535,33 +131224,33 @@ }; /** - * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decode = function decode(reader, length) { + CancelTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -125578,30 +131267,30 @@ }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelPipelineJobRequest message. + * Verifies a CancelTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelPipelineJobRequest.verify = function verify(message) { + CancelTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -125611,32 +131300,32 @@ }; /** - * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest */ - CancelPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest) + CancelTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.CancelPipelineJobRequest} message CancelPipelineJobRequest + * @param {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelPipelineJobRequest.toObject = function toObject(message, options) { + CancelTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -125648,69 +131337,54 @@ }; /** - * Converts this CancelPipelineJobRequest to JSON. + * Converts this CancelTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - CancelPipelineJobRequest.prototype.toJSON = function toJSON() { + CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelPipelineJobRequest + * Gets the default type url for CancelTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelPipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelTrainingPipelineRequest"; }; - return CancelPipelineJobRequest; + return CancelTrainingPipelineRequest; })(); - v1.TrainingPipeline = (function() { + v1.CreatePipelineJobRequest = (function() { /** - * Properties of a TrainingPipeline. + * Properties of a CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ITrainingPipeline - * @property {string|null} [name] TrainingPipeline name - * @property {string|null} [displayName] TrainingPipeline displayName - * @property {google.cloud.aiplatform.v1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig - * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition - * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs - * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata - * @property {google.cloud.aiplatform.v1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload - * @property {string|null} [modelId] TrainingPipeline modelId - * @property {string|null} [parentModel] TrainingPipeline parentModel - * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] TrainingPipeline state - * @property {google.rpc.IStatus|null} [error] TrainingPipeline error - * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime - * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime - * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime - * @property {Object.|null} [labels] TrainingPipeline labels - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec + * @interface ICreatePipelineJobRequest + * @property {string|null} [parent] CreatePipelineJobRequest parent + * @property {google.cloud.aiplatform.v1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob + * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId */ /** - * Constructs a new TrainingPipeline. + * Constructs a new CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a TrainingPipeline. - * @implements ITrainingPipeline + * @classdesc Represents a CreatePipelineJobRequest. + * @implements ICreatePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set */ - function TrainingPipeline(properties) { - this.labels = {}; + function CreatePipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125718,231 +131392,323 @@ } /** - * TrainingPipeline name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * CreatePipelineJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - TrainingPipeline.prototype.name = ""; + CreatePipelineJobRequest.prototype.parent = ""; /** - * TrainingPipeline displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * CreatePipelineJobRequest pipelineJob. + * @member {google.cloud.aiplatform.v1.IPipelineJob|null|undefined} pipelineJob + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - TrainingPipeline.prototype.displayName = ""; + CreatePipelineJobRequest.prototype.pipelineJob = null; /** - * TrainingPipeline inputDataConfig. - * @member {google.cloud.aiplatform.v1.IInputDataConfig|null|undefined} inputDataConfig - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * CreatePipelineJobRequest pipelineJobId. + * @member {string} pipelineJobId + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - TrainingPipeline.prototype.inputDataConfig = null; + CreatePipelineJobRequest.prototype.pipelineJobId = ""; /** - * TrainingPipeline trainingTaskDefinition. - * @member {string} trainingTaskDefinition - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Creates a new CreatePipelineJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest instance */ - TrainingPipeline.prototype.trainingTaskDefinition = ""; + CreatePipelineJobRequest.create = function create(properties) { + return new CreatePipelineJobRequest(properties); + }; /** - * TrainingPipeline trainingTaskInputs. - * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.prototype.trainingTaskInputs = null; + CreatePipelineJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) + $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); + return writer; + }; /** - * TrainingPipeline trainingTaskMetadata. - * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.prototype.trainingTaskMetadata = null; + CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * TrainingPipeline modelToUpload. - * @member {google.cloud.aiplatform.v1.IModel|null|undefined} modelToUpload - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.prototype.modelToUpload = null; + CreatePipelineJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32()); + break; + } + case 3: { + message.pipelineJobId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * TrainingPipeline modelId. - * @member {string} modelId - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.prototype.modelId = ""; + CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * TrainingPipeline parentModel. - * @member {string} parentModel - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Verifies a CreatePipelineJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingPipeline.prototype.parentModel = ""; + CreatePipelineJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJob); + if (error) + return "pipelineJob." + error; + } + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + if (!$util.isString(message.pipelineJobId)) + return "pipelineJobId: string expected"; + return null; + }; /** - * TrainingPipeline state. - * @member {google.cloud.aiplatform.v1.PipelineState} state - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest */ - TrainingPipeline.prototype.state = 0; + CreatePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pipelineJob != null) { + if (typeof object.pipelineJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreatePipelineJobRequest.pipelineJob: object expected"); + message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJob); + } + if (object.pipelineJobId != null) + message.pipelineJobId = String(object.pipelineJobId); + return message; + }; /** - * TrainingPipeline error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1.CreatePipelineJobRequest} message CreatePipelineJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - TrainingPipeline.prototype.error = null; + CreatePipelineJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pipelineJob = null; + object.pipelineJobId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) + object.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJob, options); + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + object.pipelineJobId = message.pipelineJobId; + return object; + }; /** - * TrainingPipeline createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * Converts this CreatePipelineJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance + * @returns {Object.} JSON object */ - TrainingPipeline.prototype.createTime = null; + CreatePipelineJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * TrainingPipeline startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Gets the default type url for CreatePipelineJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - TrainingPipeline.prototype.startTime = null; + CreatePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreatePipelineJobRequest"; + }; - /** - * TrainingPipeline endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.endTime = null; + return CreatePipelineJobRequest; + })(); + + v1.GetPipelineJobRequest = (function() { /** - * TrainingPipeline updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Properties of a GetPipelineJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetPipelineJobRequest + * @property {string|null} [name] GetPipelineJobRequest name */ - TrainingPipeline.prototype.updateTime = null; /** - * TrainingPipeline labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Constructs a new GetPipelineJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetPipelineJobRequest. + * @implements IGetPipelineJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set */ - TrainingPipeline.prototype.labels = $util.emptyObject; + function GetPipelineJobRequest(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]]; + } /** - * TrainingPipeline encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * GetPipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @instance */ - TrainingPipeline.prototype.encryptionSpec = null; + GetPipelineJobRequest.prototype.name = ""; /** - * Creates a new TrainingPipeline instance using the specified properties. + * Creates a new GetPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest instance */ - TrainingPipeline.create = function create(properties) { - return new TrainingPipeline(properties); + GetPipelineJobRequest.create = function create(properties) { + return new GetPipelineJobRequest(properties); }; /** - * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.encode = function encode(message, writer) { + GetPipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) - $root.google.cloud.aiplatform.v1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); - if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) - $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) - $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) - $root.google.cloud.aiplatform.v1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.parentModel); - if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.modelId); return writer; }; /** - * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { + GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingPipeline message from the specified reader or buffer. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.decode = function decode(reader, length) { + GetPipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -125950,89 +131716,6 @@ message.name = reader.string(); break; } - case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainingTaskDefinition = reader.string(); - break; - } - case 5: { - message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 6: { - message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 7: { - message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); - break; - } - case 22: { - message.modelId = reader.string(); - break; - } - case 21: { - message.parentModel = reader.string(); - break; - } - case 9: { - message.state = reader.int32(); - break; - } - case 10: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 11: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 12: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 15: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 18: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -126042,381 +131725,127 @@ }; /** - * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { + GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingPipeline message. + * Verifies a GetPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingPipeline.verify = function verify(message) { + GetPipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { - var error = $root.google.cloud.aiplatform.v1.InputDataConfig.verify(message.inputDataConfig); - if (error) - return "inputDataConfig." + error; - } - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - if (!$util.isString(message.trainingTaskDefinition)) - return "trainingTaskDefinition: string expected"; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); - if (error) - return "trainingTaskInputs." + error; - } - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); - if (error) - return "trainingTaskMetadata." + error; - } - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { - var error = $root.google.cloud.aiplatform.v1.Model.verify(message.modelToUpload); - if (error) - return "modelToUpload." + error; - } - if (message.modelId != null && message.hasOwnProperty("modelId")) - if (!$util.isString(message.modelId)) - return "modelId: string expected"; - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - if (!$util.isString(message.parentModel)) - return "parentModel: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } return null; }; /** - * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. + * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest */ - TrainingPipeline.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.TrainingPipeline) + GetPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(); + var message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.inputDataConfig != null) { - if (typeof object.inputDataConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.inputDataConfig: object expected"); - message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.fromObject(object.inputDataConfig); - } - if (object.trainingTaskDefinition != null) - message.trainingTaskDefinition = String(object.trainingTaskDefinition); - if (object.trainingTaskInputs != null) { - if (typeof object.trainingTaskInputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskInputs: object expected"); - message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); - } - if (object.trainingTaskMetadata != null) { - if (typeof object.trainingTaskMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskMetadata: object expected"); - message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); - } - if (object.modelToUpload != null) { - if (typeof object.modelToUpload !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.modelToUpload: object expected"); - message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.fromObject(object.modelToUpload); - } - if (object.modelId != null) - message.modelId = String(object.modelId); - if (object.parentModel != null) - message.parentModel = String(object.parentModel); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "PIPELINE_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PIPELINE_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "PIPELINE_STATE_PENDING": - case 2: - message.state = 2; - break; - case "PIPELINE_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "PIPELINE_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "PIPELINE_STATE_FAILED": - case 5: - message.state = 5; - break; - case "PIPELINE_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "PIPELINE_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "PIPELINE_STATE_PAUSED": - case 8: - message.state = 8; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } return message; }; /** - * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. + * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.TrainingPipeline} message TrainingPipeline + * @param {google.cloud.aiplatform.v1.GetPipelineJobRequest} message GetPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingPipeline.toObject = function toObject(message, options) { + GetPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.displayName = ""; - object.inputDataConfig = null; - object.trainingTaskDefinition = ""; - object.trainingTaskInputs = null; - object.trainingTaskMetadata = null; - object.modelToUpload = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.error = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.encryptionSpec = null; - object.parentModel = ""; - object.modelId = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) - object.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.toObject(message.inputDataConfig, options); - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - object.trainingTaskDefinition = message.trainingTaskDefinition; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) - object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) - object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) - object.modelToUpload = $root.google.cloud.aiplatform.v1.Model.toObject(message.modelToUpload, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - object.parentModel = message.parentModel; - if (message.modelId != null && message.hasOwnProperty("modelId")) - object.modelId = message.modelId; return object; }; /** - * Converts this TrainingPipeline to JSON. + * Converts this GetPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @instance * @returns {Object.} JSON object */ - TrainingPipeline.prototype.toJSON = function toJSON() { + GetPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainingPipeline + * Gets the default type url for GetPipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainingPipeline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.TrainingPipeline"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetPipelineJobRequest"; }; - return TrainingPipeline; + return GetPipelineJobRequest; })(); - v1.InputDataConfig = (function() { + v1.ListPipelineJobsRequest = (function() { /** - * Properties of an InputDataConfig. + * Properties of a ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IInputDataConfig - * @property {google.cloud.aiplatform.v1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit - * @property {google.cloud.aiplatform.v1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit - * @property {google.cloud.aiplatform.v1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit - * @property {google.cloud.aiplatform.v1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit - * @property {google.cloud.aiplatform.v1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination - * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination - * @property {string|null} [datasetId] InputDataConfig datasetId - * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter - * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri - * @property {string|null} [savedQueryId] InputDataConfig savedQueryId - * @property {boolean|null} [persistMlUseAssignment] InputDataConfig persistMlUseAssignment + * @interface IListPipelineJobsRequest + * @property {string|null} [parent] ListPipelineJobsRequest parent + * @property {string|null} [filter] ListPipelineJobsRequest filter + * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize + * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken + * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListPipelineJobsRequest readMask */ /** - * Constructs a new InputDataConfig. + * Constructs a new ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an InputDataConfig. - * @implements IInputDataConfig + * @classdesc Represents a ListPipelineJobsRequest. + * @implements IListPipelineJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set */ - function InputDataConfig(properties) { + function ListPipelineJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -126424,254 +131853,145 @@ } /** - * InputDataConfig fractionSplit. - * @member {google.cloud.aiplatform.v1.IFractionSplit|null|undefined} fractionSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.fractionSplit = null; - - /** - * InputDataConfig filterSplit. - * @member {google.cloud.aiplatform.v1.IFilterSplit|null|undefined} filterSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.filterSplit = null; + ListPipelineJobsRequest.prototype.parent = ""; /** - * InputDataConfig predefinedSplit. - * @member {google.cloud.aiplatform.v1.IPredefinedSplit|null|undefined} predefinedSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.predefinedSplit = null; + ListPipelineJobsRequest.prototype.filter = ""; /** - * InputDataConfig timestampSplit. - * @member {google.cloud.aiplatform.v1.ITimestampSplit|null|undefined} timestampSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.timestampSplit = null; + ListPipelineJobsRequest.prototype.pageSize = 0; /** - * InputDataConfig stratifiedSplit. - * @member {google.cloud.aiplatform.v1.IStratifiedSplit|null|undefined} stratifiedSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.stratifiedSplit = null; + ListPipelineJobsRequest.prototype.pageToken = ""; /** - * InputDataConfig gcsDestination. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcsDestination - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.gcsDestination = null; + ListPipelineJobsRequest.prototype.orderBy = ""; /** - * InputDataConfig bigqueryDestination. - * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigqueryDestination - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.bigqueryDestination = null; + ListPipelineJobsRequest.prototype.readMask = null; /** - * InputDataConfig datasetId. - * @member {string} datasetId - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance + * Creates a new ListPipelineJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest instance */ - InputDataConfig.prototype.datasetId = ""; + ListPipelineJobsRequest.create = function create(properties) { + return new ListPipelineJobsRequest(properties); + }; /** - * InputDataConfig annotationsFilter. - * @member {string} annotationsFilter - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - InputDataConfig.prototype.annotationsFilter = ""; + ListPipelineJobsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; /** - * InputDataConfig annotationSchemaUri. - * @member {string} annotationSchemaUri - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.annotationSchemaUri = ""; - - /** - * InputDataConfig savedQueryId. - * @member {string} savedQueryId - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.savedQueryId = ""; - - /** - * InputDataConfig persistMlUseAssignment. - * @member {boolean} persistMlUseAssignment - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.persistMlUseAssignment = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * InputDataConfig split. - * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - Object.defineProperty(InputDataConfig.prototype, "split", { - get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * InputDataConfig destination. - * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - Object.defineProperty(InputDataConfig.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new InputDataConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @static - * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig instance - */ - InputDataConfig.create = function create(properties) { - return new InputDataConfig(properties); - }; - - /** - * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @static - * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputDataConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); - if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) - $root.google.cloud.aiplatform.v1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) - $root.google.cloud.aiplatform.v1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) - $root.google.cloud.aiplatform.v1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) - $root.google.cloud.aiplatform.v1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); - if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); - if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); - if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) - $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.persistMlUseAssignment != null && Object.hasOwnProperty.call(message, "persistMlUseAssignment")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.persistMlUseAssignment); - if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) - $root.google.cloud.aiplatform.v1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InputDataConfig message from the specified reader or buffer. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputDataConfig.decode = function decode(reader, length) { + ListPipelineJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } case 2: { - message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.decode(reader, reader.uint32()); + message.filter = reader.string(); break; } case 3: { - message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } case 4: { - message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.decode(reader, reader.uint32()); - break; - } - case 5: { - message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.decode(reader, reader.uint32()); - break; - } - case 12: { - message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.decode(reader, reader.uint32()); - break; - } - case 8: { - message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 10: { - message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); - break; - } - case 1: { - message.datasetId = reader.string(); + message.pageToken = reader.string(); break; } case 6: { - message.annotationsFilter = reader.string(); - break; - } - case 9: { - message.annotationSchemaUri = reader.string(); + message.orderBy = reader.string(); break; } case 7: { - message.savedQueryId = reader.string(); - break; - } - case 11: { - message.persistMlUseAssignment = reader.bool(); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -126683,294 +132003,170 @@ }; /** - * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputDataConfig.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InputDataConfig message. + * Verifies a ListPipelineJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InputDataConfig.verify = function verify(message) { + ListPipelineJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.FractionSplit.verify(message.fractionSplit); - if (error) - return "fractionSplit." + error; - } - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.FilterSplit.verify(message.filterSplit); - if (error) - return "filterSplit." + error; - } - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.PredefinedSplit.verify(message.predefinedSplit); - if (error) - return "predefinedSplit." + error; - } - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.TimestampSplit.verify(message.timestampSplit); - if (error) - return "timestampSplit." + error; - } - } - if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.StratifiedSplit.verify(message.stratifiedSplit); - if (error) - return "stratifiedSplit." + error; - } - } - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcsDestination); - if (error) - return "gcsDestination." + error; - } - } - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigqueryDestination); - if (error) - return "bigqueryDestination." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - if (!$util.isString(message.datasetId)) - return "datasetId: string expected"; - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - if (!$util.isString(message.annotationsFilter)) - return "annotationsFilter: string expected"; - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - if (!$util.isString(message.annotationSchemaUri)) - return "annotationSchemaUri: string expected"; - if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) - if (!$util.isString(message.savedQueryId)) - return "savedQueryId: string expected"; - if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) - if (typeof message.persistMlUseAssignment !== "boolean") - return "persistMlUseAssignment: boolean expected"; return null; }; /** - * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest */ - InputDataConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.InputDataConfig) + ListPipelineJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); - if (object.fractionSplit != null) { - if (typeof object.fractionSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.fractionSplit: object expected"); - message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.fromObject(object.fractionSplit); - } - if (object.filterSplit != null) { - if (typeof object.filterSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.filterSplit: object expected"); - message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.fromObject(object.filterSplit); - } - if (object.predefinedSplit != null) { - if (typeof object.predefinedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.predefinedSplit: object expected"); - message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.fromObject(object.predefinedSplit); - } - if (object.timestampSplit != null) { - if (typeof object.timestampSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.timestampSplit: object expected"); - message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.fromObject(object.timestampSplit); - } - if (object.stratifiedSplit != null) { - if (typeof object.stratifiedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.stratifiedSplit: object expected"); - message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.fromObject(object.stratifiedSplit); - } - if (object.gcsDestination != null) { - if (typeof object.gcsDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.gcsDestination: object expected"); - message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcsDestination); - } - if (object.bigqueryDestination != null) { - if (typeof object.bigqueryDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.bigqueryDestination: object expected"); - message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); + var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } - if (object.datasetId != null) - message.datasetId = String(object.datasetId); - if (object.annotationsFilter != null) - message.annotationsFilter = String(object.annotationsFilter); - if (object.annotationSchemaUri != null) - message.annotationSchemaUri = String(object.annotationSchemaUri); - if (object.savedQueryId != null) - message.savedQueryId = String(object.savedQueryId); - if (object.persistMlUseAssignment != null) - message.persistMlUseAssignment = Boolean(object.persistMlUseAssignment); return message; }; /** - * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.InputDataConfig} message InputDataConfig + * @param {google.cloud.aiplatform.v1.ListPipelineJobsRequest} message ListPipelineJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InputDataConfig.toObject = function toObject(message, options) { + ListPipelineJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.datasetId = ""; - object.annotationsFilter = ""; - object.savedQueryId = ""; - object.annotationSchemaUri = ""; - object.persistMlUseAssignment = false; - } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - object.datasetId = message.datasetId; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - object.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.toObject(message.fractionSplit, options); - if (options.oneofs) - object.split = "fractionSplit"; - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - object.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.toObject(message.filterSplit, options); - if (options.oneofs) - object.split = "filterSplit"; - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - object.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.toObject(message.predefinedSplit, options); - if (options.oneofs) - object.split = "predefinedSplit"; - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - object.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.toObject(message.timestampSplit, options); - if (options.oneofs) - object.split = "timestampSplit"; - } - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - object.annotationsFilter = message.annotationsFilter; - if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) - object.savedQueryId = message.savedQueryId; - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - object.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcsDestination, options); - if (options.oneofs) - object.destination = "gcsDestination"; - } - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - object.annotationSchemaUri = message.annotationSchemaUri; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - object.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigqueryDestination, options); - if (options.oneofs) - object.destination = "bigqueryDestination"; - } - if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) - object.persistMlUseAssignment = message.persistMlUseAssignment; - if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - object.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.toObject(message.stratifiedSplit, options); - if (options.oneofs) - object.split = "stratifiedSplit"; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this InputDataConfig to JSON. + * Converts this ListPipelineJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance * @returns {Object.} JSON object */ - InputDataConfig.prototype.toJSON = function toJSON() { + ListPipelineJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InputDataConfig + * Gets the default type url for ListPipelineJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InputDataConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.InputDataConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsRequest"; }; - return InputDataConfig; + return ListPipelineJobsRequest; })(); - v1.FractionSplit = (function() { + v1.ListPipelineJobsResponse = (function() { /** - * Properties of a FractionSplit. + * Properties of a ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IFractionSplit - * @property {number|null} [trainingFraction] FractionSplit trainingFraction - * @property {number|null} [validationFraction] FractionSplit validationFraction - * @property {number|null} [testFraction] FractionSplit testFraction + * @interface IListPipelineJobsResponse + * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs + * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken */ /** - * Constructs a new FractionSplit. + * Constructs a new ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FractionSplit. - * @implements IFractionSplit + * @classdesc Represents a ListPipelineJobsResponse. + * @implements IListPipelineJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set */ - function FractionSplit(properties) { + function ListPipelineJobsResponse(properties) { + this.pipelineJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -126978,103 +132174,92 @@ } /** - * FractionSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1.FractionSplit - * @instance - */ - FractionSplit.prototype.trainingFraction = 0; - - /** - * FractionSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1.FractionSplit + * ListPipelineJobsResponse pipelineJobs. + * @member {Array.} pipelineJobs + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @instance */ - FractionSplit.prototype.validationFraction = 0; + ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; /** - * FractionSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1.FractionSplit + * ListPipelineJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @instance */ - FractionSplit.prototype.testFraction = 0; + ListPipelineJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new FractionSplit instance using the specified properties. + * Creates a new ListPipelineJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse instance */ - FractionSplit.create = function create(properties) { - return new FractionSplit(properties); + ListPipelineJobsResponse.create = function create(properties) { + return new ListPipelineJobsResponse(properties); }; /** - * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FractionSplit.encode = function encode(message, writer) { + ListPipelineJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.pipelineJobs != null && message.pipelineJobs.length) + for (var i = 0; i < message.pipelineJobs.length; ++i) + $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FractionSplit message from the specified reader or buffer. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FractionSplit.decode = function decode(reader, length) { + ListPipelineJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FractionSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFraction = reader.double(); + if (!(message.pipelineJobs && message.pipelineJobs.length)) + message.pipelineJobs = []; + message.pipelineJobs.push($root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32())); break; } case 2: { - message.validationFraction = reader.double(); - break; - } - case 3: { - message.testFraction = reader.double(); + message.nextPageToken = reader.string(); break; } default: @@ -127086,141 +132271,148 @@ }; /** - * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FractionSplit.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FractionSplit message. + * Verifies a ListPipelineJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FractionSplit.verify = function verify(message) { + ListPipelineJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; + if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { + if (!Array.isArray(message.pipelineJobs)) + return "pipelineJobs: array expected"; + for (var i = 0; i < message.pipelineJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJobs[i]); + if (error) + return "pipelineJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse */ - FractionSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FractionSplit) + ListPipelineJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.FractionSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); + var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); + if (object.pipelineJobs) { + if (!Array.isArray(object.pipelineJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: array expected"); + message.pipelineJobs = []; + for (var i = 0; i < object.pipelineJobs.length; ++i) { + if (typeof object.pipelineJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: object expected"); + message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.FractionSplit} message FractionSplit + * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} message ListPipelineJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FractionSplit.toObject = function toObject(message, options) { + ListPipelineJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; + if (options.arrays || options.defaults) + object.pipelineJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.pipelineJobs && message.pipelineJobs.length) { + object.pipelineJobs = []; + for (var j = 0; j < message.pipelineJobs.length; ++j) + object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJobs[j], options); } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this FractionSplit to JSON. + * Converts this ListPipelineJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @instance * @returns {Object.} JSON object */ - FractionSplit.prototype.toJSON = function toJSON() { + ListPipelineJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FractionSplit + * Gets the default type url for ListPipelineJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FractionSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsResponse"; }; - return FractionSplit; + return ListPipelineJobsResponse; })(); - v1.FilterSplit = (function() { + v1.DeletePipelineJobRequest = (function() { /** - * Properties of a FilterSplit. + * Properties of a DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IFilterSplit - * @property {string|null} [trainingFilter] FilterSplit trainingFilter - * @property {string|null} [validationFilter] FilterSplit validationFilter - * @property {string|null} [testFilter] FilterSplit testFilter + * @interface IDeletePipelineJobRequest + * @property {string|null} [name] DeletePipelineJobRequest name */ /** - * Constructs a new FilterSplit. + * Constructs a new DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FilterSplit. - * @implements IFilterSplit + * @classdesc Represents a DeletePipelineJobRequest. + * @implements IDeletePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set */ - function FilterSplit(properties) { + function DeletePipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127228,103 +132420,75 @@ } /** - * FilterSplit trainingFilter. - * @member {string} trainingFilter - * @memberof google.cloud.aiplatform.v1.FilterSplit - * @instance - */ - FilterSplit.prototype.trainingFilter = ""; - - /** - * FilterSplit validationFilter. - * @member {string} validationFilter - * @memberof google.cloud.aiplatform.v1.FilterSplit - * @instance - */ - FilterSplit.prototype.validationFilter = ""; - - /** - * FilterSplit testFilter. - * @member {string} testFilter - * @memberof google.cloud.aiplatform.v1.FilterSplit + * DeletePipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @instance */ - FilterSplit.prototype.testFilter = ""; + DeletePipelineJobRequest.prototype.name = ""; /** - * Creates a new FilterSplit instance using the specified properties. + * Creates a new DeletePipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest instance */ - FilterSplit.create = function create(properties) { - return new FilterSplit(properties); + DeletePipelineJobRequest.create = function create(properties) { + return new DeletePipelineJobRequest(properties); }; /** - * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilterSplit.encode = function encode(message, writer) { + DeletePipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); - if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); - if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { + DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilterSplit message from the specified reader or buffer. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilterSplit.decode = function decode(reader, length) { + DeletePipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FilterSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFilter = reader.string(); - break; - } - case 2: { - message.validationFilter = reader.string(); - break; - } - case 3: { - message.testFilter = reader.string(); + message.name = reader.string(); break; } default: @@ -127336,139 +132500,122 @@ }; /** - * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilterSplit.decodeDelimited = function decodeDelimited(reader) { + DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilterSplit message. + * Verifies a DeletePipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FilterSplit.verify = function verify(message) { + DeletePipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - if (!$util.isString(message.trainingFilter)) - return "trainingFilter: string expected"; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - if (!$util.isString(message.validationFilter)) - return "validationFilter: string expected"; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - if (!$util.isString(message.testFilter)) - return "testFilter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest */ - FilterSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FilterSplit) + DeletePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.FilterSplit(); - if (object.trainingFilter != null) - message.trainingFilter = String(object.trainingFilter); - if (object.validationFilter != null) - message.validationFilter = String(object.validationFilter); - if (object.testFilter != null) - message.testFilter = String(object.testFilter); + var message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. + * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.FilterSplit} message FilterSplit + * @param {google.cloud.aiplatform.v1.DeletePipelineJobRequest} message DeletePipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilterSplit.toObject = function toObject(message, options) { + DeletePipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFilter = ""; - object.validationFilter = ""; - object.testFilter = ""; - } - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - object.trainingFilter = message.trainingFilter; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - object.validationFilter = message.validationFilter; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - object.testFilter = message.testFilter; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FilterSplit to JSON. + * Converts this DeletePipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @instance * @returns {Object.} JSON object */ - FilterSplit.prototype.toJSON = function toJSON() { + DeletePipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FilterSplit + * Gets the default type url for DeletePipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FilterSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeletePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FilterSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeletePipelineJobRequest"; }; - return FilterSplit; + return DeletePipelineJobRequest; })(); - v1.PredefinedSplit = (function() { + v1.CancelPipelineJobRequest = (function() { /** - * Properties of a PredefinedSplit. + * Properties of a CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPredefinedSplit - * @property {string|null} [key] PredefinedSplit key + * @interface ICancelPipelineJobRequest + * @property {string|null} [name] CancelPipelineJobRequest name */ /** - * Constructs a new PredefinedSplit. + * Constructs a new CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredefinedSplit. - * @implements IPredefinedSplit + * @classdesc Represents a CancelPipelineJobRequest. + * @implements ICancelPipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set */ - function PredefinedSplit(properties) { + function CancelPipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127476,75 +132623,75 @@ } /** - * PredefinedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * CancelPipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @instance */ - PredefinedSplit.prototype.key = ""; + CancelPipelineJobRequest.prototype.name = ""; /** - * Creates a new PredefinedSplit instance using the specified properties. + * Creates a new CancelPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest instance */ - PredefinedSplit.create = function create(properties) { - return new PredefinedSplit(properties); + CancelPipelineJobRequest.create = function create(properties) { + return new CancelPipelineJobRequest(properties); }; /** - * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredefinedSplit.encode = function encode(message, writer) { + CancelPipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { + CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredefinedSplit message from the specified reader or buffer. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredefinedSplit.decode = function decode(reader, length) { + CancelPipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.key = reader.string(); + message.name = reader.string(); break; } default: @@ -127556,125 +132703,139 @@ }; /** - * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { + CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredefinedSplit message. + * Verifies a CancelPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredefinedSplit.verify = function verify(message) { + CancelPipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest */ - PredefinedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PredefinedSplit) + CancelPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. + * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.PredefinedSplit} message PredefinedSplit + * @param {google.cloud.aiplatform.v1.CancelPipelineJobRequest} message CancelPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredefinedSplit.toObject = function toObject(message, options) { + CancelPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.key = ""; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PredefinedSplit to JSON. + * Converts this CancelPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @instance * @returns {Object.} JSON object */ - PredefinedSplit.prototype.toJSON = function toJSON() { + CancelPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredefinedSplit + * Gets the default type url for CancelPipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredefinedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredefinedSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelPipelineJobRequest"; }; - return PredefinedSplit; + return CancelPipelineJobRequest; })(); - v1.TimestampSplit = (function() { + v1.TrainingPipeline = (function() { /** - * Properties of a TimestampSplit. + * Properties of a TrainingPipeline. * @memberof google.cloud.aiplatform.v1 - * @interface ITimestampSplit - * @property {number|null} [trainingFraction] TimestampSplit trainingFraction - * @property {number|null} [validationFraction] TimestampSplit validationFraction - * @property {number|null} [testFraction] TimestampSplit testFraction - * @property {string|null} [key] TimestampSplit key + * @interface ITrainingPipeline + * @property {string|null} [name] TrainingPipeline name + * @property {string|null} [displayName] TrainingPipeline displayName + * @property {google.cloud.aiplatform.v1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig + * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition + * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs + * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata + * @property {google.cloud.aiplatform.v1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload + * @property {string|null} [modelId] TrainingPipeline modelId + * @property {string|null} [parentModel] TrainingPipeline parentModel + * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] TrainingPipeline state + * @property {google.rpc.IStatus|null} [error] TrainingPipeline error + * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime + * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime + * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime + * @property {Object.|null} [labels] TrainingPipeline labels + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec */ /** - * Constructs a new TimestampSplit. + * Constructs a new TrainingPipeline. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a TimestampSplit. - * @implements ITimestampSplit + * @classdesc Represents a TrainingPipeline. + * @implements ITrainingPipeline * @constructor - * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set */ - function TimestampSplit(properties) { + function TrainingPipeline(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127682,117 +132843,319 @@ } /** - * TimestampSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * TrainingPipeline name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - TimestampSplit.prototype.trainingFraction = 0; + TrainingPipeline.prototype.name = ""; /** - * TimestampSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * TrainingPipeline displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - TimestampSplit.prototype.validationFraction = 0; + TrainingPipeline.prototype.displayName = ""; /** - * TimestampSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * TrainingPipeline inputDataConfig. + * @member {google.cloud.aiplatform.v1.IInputDataConfig|null|undefined} inputDataConfig + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - TimestampSplit.prototype.testFraction = 0; + TrainingPipeline.prototype.inputDataConfig = null; /** - * TimestampSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * TrainingPipeline trainingTaskDefinition. + * @member {string} trainingTaskDefinition + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - TimestampSplit.prototype.key = ""; + TrainingPipeline.prototype.trainingTaskDefinition = ""; /** - * Creates a new TimestampSplit instance using the specified properties. + * TrainingPipeline trainingTaskInputs. + * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.trainingTaskInputs = null; + + /** + * TrainingPipeline trainingTaskMetadata. + * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.trainingTaskMetadata = null; + + /** + * TrainingPipeline modelToUpload. + * @member {google.cloud.aiplatform.v1.IModel|null|undefined} modelToUpload + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.modelToUpload = null; + + /** + * TrainingPipeline modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.modelId = ""; + + /** + * TrainingPipeline parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.parentModel = ""; + + /** + * TrainingPipeline state. + * @member {google.cloud.aiplatform.v1.PipelineState} state + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.state = 0; + + /** + * TrainingPipeline error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.error = null; + + /** + * TrainingPipeline createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.createTime = null; + + /** + * TrainingPipeline startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.startTime = null; + + /** + * TrainingPipeline endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.endTime = null; + + /** + * TrainingPipeline updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.updateTime = null; + + /** + * TrainingPipeline labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.labels = $util.emptyObject; + + /** + * TrainingPipeline encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.encryptionSpec = null; + + /** + * Creates a new TrainingPipeline instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit instance + * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline instance */ - TimestampSplit.create = function create(properties) { - return new TimestampSplit(properties); + TrainingPipeline.create = function create(properties) { + return new TrainingPipeline(properties); }; /** - * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampSplit.encode = function encode(message, writer) { + TrainingPipeline.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) + $root.google.cloud.aiplatform.v1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); + if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) + $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) + $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) + $root.google.cloud.aiplatform.v1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 21, wireType 2 =*/170).string(message.parentModel); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.modelId); return writer; }; /** - * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { + TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampSplit message from the specified reader or buffer. + * Decodes a TrainingPipeline message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampSplit.decode = function decode(reader, length) { + TrainingPipeline.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFraction = reader.double(); + message.name = reader.string(); break; } case 2: { - message.validationFraction = reader.double(); + message.displayName = reader.string(); break; } case 3: { - message.testFraction = reader.double(); + message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.decode(reader, reader.uint32()); break; } case 4: { - message.key = reader.string(); + message.trainingTaskDefinition = reader.string(); + break; + } + case 5: { + message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 6: { + message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 7: { + message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); + break; + } + case 22: { + message.modelId = reader.string(); + break; + } + case 21: { + message.parentModel = reader.string(); + break; + } + case 9: { + message.state = reader.int32(); + break; + } + case 10: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 11: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 15: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 18: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } default: @@ -127804,150 +133167,381 @@ }; /** - * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampSplit.decodeDelimited = function decodeDelimited(reader) { + TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampSplit message. + * Verifies a TrainingPipeline message. * @function verify - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimestampSplit.verify = function verify(message) { + TrainingPipeline.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { + var error = $root.google.cloud.aiplatform.v1.InputDataConfig.verify(message.inputDataConfig); + if (error) + return "inputDataConfig." + error; + } + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + if (!$util.isString(message.trainingTaskDefinition)) + return "trainingTaskDefinition: string expected"; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); + if (error) + return "trainingTaskInputs." + error; + } + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); + if (error) + return "trainingTaskMetadata." + error; + } + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.modelToUpload); + if (error) + return "modelToUpload." + error; + } + if (message.modelId != null && message.hasOwnProperty("modelId")) + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } return null; }; /** - * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline */ - TimestampSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.TimestampSplit) + TrainingPipeline.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.TrainingPipeline) return object; - var message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.inputDataConfig != null) { + if (typeof object.inputDataConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.inputDataConfig: object expected"); + message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.fromObject(object.inputDataConfig); + } + if (object.trainingTaskDefinition != null) + message.trainingTaskDefinition = String(object.trainingTaskDefinition); + if (object.trainingTaskInputs != null) { + if (typeof object.trainingTaskInputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskInputs: object expected"); + message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); + } + if (object.trainingTaskMetadata != null) { + if (typeof object.trainingTaskMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskMetadata: object expected"); + message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); + } + if (object.modelToUpload != null) { + if (typeof object.modelToUpload !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.modelToUpload: object expected"); + message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.fromObject(object.modelToUpload); + } + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "PIPELINE_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PIPELINE_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "PIPELINE_STATE_PENDING": + case 2: + message.state = 2; + break; + case "PIPELINE_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "PIPELINE_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "PIPELINE_STATE_FAILED": + case 5: + message.state = 5; + break; + case "PIPELINE_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "PIPELINE_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "PIPELINE_STATE_PAUSED": + case 8: + message.state = 8; + break; + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } return message; }; /** - * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.TimestampSplit} message TimestampSplit + * @param {google.cloud.aiplatform.v1.TrainingPipeline} message TrainingPipeline * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampSplit.toObject = function toObject(message, options) { + TrainingPipeline.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; + object.name = ""; + object.displayName = ""; + object.inputDataConfig = null; + object.trainingTaskDefinition = ""; + object.trainingTaskInputs = null; + object.trainingTaskMetadata = null; + object.modelToUpload = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.error = null; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.parentModel = ""; + object.modelId = ""; } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) + object.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.toObject(message.inputDataConfig, options); + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + object.trainingTaskDefinition = message.trainingTaskDefinition; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) + object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) + object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) + object.modelToUpload = $root.google.cloud.aiplatform.v1.Model.toObject(message.modelToUpload, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; return object; }; /** - * Converts this TimestampSplit to JSON. + * Converts this TrainingPipeline to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance * @returns {Object.} JSON object */ - TimestampSplit.prototype.toJSON = function toJSON() { + TrainingPipeline.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TimestampSplit + * Gets the default type url for TrainingPipeline * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TimestampSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TrainingPipeline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.TimestampSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.TrainingPipeline"; }; - return TimestampSplit; + return TrainingPipeline; })(); - v1.StratifiedSplit = (function() { + v1.InputDataConfig = (function() { /** - * Properties of a StratifiedSplit. + * Properties of an InputDataConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IStratifiedSplit - * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction - * @property {number|null} [validationFraction] StratifiedSplit validationFraction - * @property {number|null} [testFraction] StratifiedSplit testFraction - * @property {string|null} [key] StratifiedSplit key + * @interface IInputDataConfig + * @property {google.cloud.aiplatform.v1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit + * @property {google.cloud.aiplatform.v1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit + * @property {google.cloud.aiplatform.v1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit + * @property {google.cloud.aiplatform.v1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit + * @property {google.cloud.aiplatform.v1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination + * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination + * @property {string|null} [datasetId] InputDataConfig datasetId + * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter + * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri + * @property {string|null} [savedQueryId] InputDataConfig savedQueryId + * @property {boolean|null} [persistMlUseAssignment] InputDataConfig persistMlUseAssignment */ /** - * Constructs a new StratifiedSplit. + * Constructs a new InputDataConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a StratifiedSplit. - * @implements IStratifiedSplit + * @classdesc Represents an InputDataConfig. + * @implements IInputDataConfig * @constructor - * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set */ - function StratifiedSplit(properties) { + function InputDataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127955,117 +133549,254 @@ } /** - * StratifiedSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * InputDataConfig fractionSplit. + * @member {google.cloud.aiplatform.v1.IFractionSplit|null|undefined} fractionSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - StratifiedSplit.prototype.trainingFraction = 0; + InputDataConfig.prototype.fractionSplit = null; /** - * StratifiedSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * InputDataConfig filterSplit. + * @member {google.cloud.aiplatform.v1.IFilterSplit|null|undefined} filterSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - StratifiedSplit.prototype.validationFraction = 0; + InputDataConfig.prototype.filterSplit = null; /** - * StratifiedSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * InputDataConfig predefinedSplit. + * @member {google.cloud.aiplatform.v1.IPredefinedSplit|null|undefined} predefinedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - StratifiedSplit.prototype.testFraction = 0; + InputDataConfig.prototype.predefinedSplit = null; /** - * StratifiedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * InputDataConfig timestampSplit. + * @member {google.cloud.aiplatform.v1.ITimestampSplit|null|undefined} timestampSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - StratifiedSplit.prototype.key = ""; + InputDataConfig.prototype.timestampSplit = null; /** - * Creates a new StratifiedSplit instance using the specified properties. + * InputDataConfig stratifiedSplit. + * @member {google.cloud.aiplatform.v1.IStratifiedSplit|null|undefined} stratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.stratifiedSplit = null; + + /** + * InputDataConfig gcsDestination. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcsDestination + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.gcsDestination = null; + + /** + * InputDataConfig bigqueryDestination. + * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.bigqueryDestination = null; + + /** + * InputDataConfig datasetId. + * @member {string} datasetId + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.datasetId = ""; + + /** + * InputDataConfig annotationsFilter. + * @member {string} annotationsFilter + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationsFilter = ""; + + /** + * InputDataConfig annotationSchemaUri. + * @member {string} annotationSchemaUri + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationSchemaUri = ""; + + /** + * InputDataConfig savedQueryId. + * @member {string} savedQueryId + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.savedQueryId = ""; + + /** + * InputDataConfig persistMlUseAssignment. + * @member {boolean} persistMlUseAssignment + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.persistMlUseAssignment = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputDataConfig split. + * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "split", { + get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InputDataConfig destination. + * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputDataConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit instance + * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig instance */ - StratifiedSplit.create = function create(properties) { - return new StratifiedSplit(properties); + InputDataConfig.create = function create(properties) { + return new InputDataConfig(properties); }; /** - * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StratifiedSplit.encode = function encode(message, writer) { + InputDataConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) + $root.google.cloud.aiplatform.v1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) + $root.google.cloud.aiplatform.v1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) + $root.google.cloud.aiplatform.v1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) + $root.google.cloud.aiplatform.v1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); + if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); + if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.persistMlUseAssignment != null && Object.hasOwnProperty.call(message, "persistMlUseAssignment")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.persistMlUseAssignment); + if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) + $root.google.cloud.aiplatform.v1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { + InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StratifiedSplit message from the specified reader or buffer. + * Decodes an InputDataConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StratifiedSplit.decode = function decode(reader, length) { + InputDataConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.trainingFraction = reader.double(); - break; - } case 2: { - message.validationFraction = reader.double(); + message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.decode(reader, reader.uint32()); break; } case 3: { - message.testFraction = reader.double(); + message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.decode(reader, reader.uint32()); break; } case 4: { - message.key = reader.string(); + message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.decode(reader, reader.uint32()); + break; + } + case 5: { + message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.decode(reader, reader.uint32()); + break; + } + case 12: { + message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.decode(reader, reader.uint32()); + break; + } + case 8: { + message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 10: { + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 1: { + message.datasetId = reader.string(); + break; + } + case 6: { + message.annotationsFilter = reader.string(); + break; + } + case 9: { + message.annotationSchemaUri = reader.string(); + break; + } + case 7: { + message.savedQueryId = reader.string(); + break; + } + case 11: { + message.persistMlUseAssignment = reader.bool(); break; } default: @@ -128077,284 +133808,294 @@ }; /** - * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. + * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { + InputDataConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StratifiedSplit message. + * Verifies an InputDataConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StratifiedSplit.verify = function verify(message) { + InputDataConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + var properties = {}; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.FractionSplit.verify(message.fractionSplit); + if (error) + return "fractionSplit." + error; + } + } + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.FilterSplit.verify(message.filterSplit); + if (error) + return "filterSplit." + error; + } + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.PredefinedSplit.verify(message.predefinedSplit); + if (error) + return "predefinedSplit." + error; + } + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.TimestampSplit.verify(message.timestampSplit); + if (error) + return "timestampSplit." + error; + } + } + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.StratifiedSplit.verify(message.stratifiedSplit); + if (error) + return "stratifiedSplit." + error; + } + } + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcsDestination); + if (error) + return "gcsDestination." + error; + } + } + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } + } + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (!$util.isString(message.datasetId)) + return "datasetId: string expected"; + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + if (!$util.isString(message.annotationsFilter)) + return "annotationsFilter: string expected"; + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + if (!$util.isString(message.annotationSchemaUri)) + return "annotationSchemaUri: string expected"; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + if (!$util.isString(message.savedQueryId)) + return "savedQueryId: string expected"; + if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) + if (typeof message.persistMlUseAssignment !== "boolean") + return "persistMlUseAssignment: boolean expected"; return null; }; /** - * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig */ - StratifiedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StratifiedSplit) + InputDataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.InputDataConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); - if (object.key != null) - message.key = String(object.key); - return message; - }; - - /** - * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StratifiedSplit - * @static - * @param {google.cloud.aiplatform.v1.StratifiedSplit} message StratifiedSplit - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + var message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); + if (object.fractionSplit != null) { + if (typeof object.fractionSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.fractionSplit: object expected"); + message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.fromObject(object.fractionSplit); + } + if (object.filterSplit != null) { + if (typeof object.filterSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.filterSplit: object expected"); + message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.fromObject(object.filterSplit); + } + if (object.predefinedSplit != null) { + if (typeof object.predefinedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.predefinedSplit: object expected"); + message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.fromObject(object.predefinedSplit); + } + if (object.timestampSplit != null) { + if (typeof object.timestampSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.timestampSplit: object expected"); + message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.fromObject(object.timestampSplit); + } + if (object.stratifiedSplit != null) { + if (typeof object.stratifiedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.stratifiedSplit: object expected"); + message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.fromObject(object.stratifiedSplit); + } + if (object.gcsDestination != null) { + if (typeof object.gcsDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.gcsDestination: object expected"); + message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcsDestination); + } + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); + } + if (object.datasetId != null) + message.datasetId = String(object.datasetId); + if (object.annotationsFilter != null) + message.annotationsFilter = String(object.annotationsFilter); + if (object.annotationSchemaUri != null) + message.annotationSchemaUri = String(object.annotationSchemaUri); + if (object.savedQueryId != null) + message.savedQueryId = String(object.savedQueryId); + if (object.persistMlUseAssignment != null) + message.persistMlUseAssignment = Boolean(object.persistMlUseAssignment); + return message; + }; + + /** + * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @static + * @param {google.cloud.aiplatform.v1.InputDataConfig} message InputDataConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - StratifiedSplit.toObject = function toObject(message, options) { + InputDataConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; + object.datasetId = ""; + object.annotationsFilter = ""; + object.savedQueryId = ""; + object.annotationSchemaUri = ""; + object.persistMlUseAssignment = false; + } + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + object.datasetId = message.datasetId; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + object.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.toObject(message.fractionSplit, options); + if (options.oneofs) + object.split = "fractionSplit"; + } + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + object.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.toObject(message.filterSplit, options); + if (options.oneofs) + object.split = "filterSplit"; + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + object.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.toObject(message.predefinedSplit, options); + if (options.oneofs) + object.split = "predefinedSplit"; + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + object.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.toObject(message.timestampSplit, options); + if (options.oneofs) + object.split = "timestampSplit"; + } + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + object.annotationsFilter = message.annotationsFilter; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + object.savedQueryId = message.savedQueryId; + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + object.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcsDestination, options); + if (options.oneofs) + object.destination = "gcsDestination"; + } + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + object.annotationSchemaUri = message.annotationSchemaUri; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + object.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (options.oneofs) + object.destination = "bigqueryDestination"; + } + if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) + object.persistMlUseAssignment = message.persistMlUseAssignment; + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + object.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.toObject(message.stratifiedSplit, options); + if (options.oneofs) + object.split = "stratifiedSplit"; } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; return object; }; /** - * Converts this StratifiedSplit to JSON. + * Converts this InputDataConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance * @returns {Object.} JSON object */ - StratifiedSplit.prototype.toJSON = function toJSON() { + InputDataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StratifiedSplit + * Gets the default type url for InputDataConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StratifiedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InputDataConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StratifiedSplit"; - }; - - return StratifiedSplit; - })(); - - v1.PredictionService = (function() { - - /** - * Constructs a new PredictionService service. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredictionService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function PredictionService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (PredictionService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PredictionService; - - /** - * Creates new PredictionService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.PredictionService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {PredictionService} RPC service. Useful where requests and/or responses are streamed. - */ - PredictionService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + return typeUrlPrefix + "/google.cloud.aiplatform.v1.InputDataConfig"; }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef PredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.PredictResponse} [response] PredictResponse - */ - - /** - * Calls Predict. - * @function predict - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.PredictCallback} callback Node-style callback called with the error, if any, and PredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.predict = function predict(request, callback) { - return this.rpcCall(predict, $root.google.cloud.aiplatform.v1.PredictRequest, $root.google.cloud.aiplatform.v1.PredictResponse, request, callback); - }, "name", { value: "Predict" }); - - /** - * Calls Predict. - * @function predict - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef RawPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.api.HttpBody} [response] HttpBody - */ - - /** - * Calls RawPredict. - * @function rawPredict - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.RawPredictCallback} callback Node-style callback called with the error, if any, and HttpBody - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.rawPredict = function rawPredict(request, callback) { - return this.rpcCall(rawPredict, $root.google.cloud.aiplatform.v1.RawPredictRequest, $root.google.api.HttpBody, request, callback); - }, "name", { value: "RawPredict" }); - - /** - * Calls RawPredict. - * @function rawPredict - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef ExplainCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ExplainResponse} [response] ExplainResponse - */ - - /** - * Calls Explain. - * @function explain - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.ExplainCallback} callback Node-style callback called with the error, if any, and ExplainResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.explain = function explain(request, callback) { - return this.rpcCall(explain, $root.google.cloud.aiplatform.v1.ExplainRequest, $root.google.cloud.aiplatform.v1.ExplainResponse, request, callback); - }, "name", { value: "Explain" }); - - /** - * Calls Explain. - * @function explain - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return PredictionService; + return InputDataConfig; })(); - v1.PredictRequest = (function() { + v1.FractionSplit = (function() { /** - * Properties of a PredictRequest. + * Properties of a FractionSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IPredictRequest - * @property {string|null} [endpoint] PredictRequest endpoint - * @property {Array.|null} [instances] PredictRequest instances - * @property {google.protobuf.IValue|null} [parameters] PredictRequest parameters + * @interface IFractionSplit + * @property {number|null} [trainingFraction] FractionSplit trainingFraction + * @property {number|null} [validationFraction] FractionSplit validationFraction + * @property {number|null} [testFraction] FractionSplit testFraction */ /** - * Constructs a new PredictRequest. + * Constructs a new FractionSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredictRequest. - * @implements IPredictRequest + * @classdesc Represents a FractionSplit. + * @implements IFractionSplit * @constructor - * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set */ - function PredictRequest(properties) { - this.instances = []; + function FractionSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -128362,106 +134103,103 @@ } /** - * PredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.PredictRequest + * FractionSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance */ - PredictRequest.prototype.endpoint = ""; + FractionSplit.prototype.trainingFraction = 0; /** - * PredictRequest instances. - * @member {Array.} instances - * @memberof google.cloud.aiplatform.v1.PredictRequest + * FractionSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance */ - PredictRequest.prototype.instances = $util.emptyArray; + FractionSplit.prototype.validationFraction = 0; /** - * PredictRequest parameters. - * @member {google.protobuf.IValue|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1.PredictRequest + * FractionSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance */ - PredictRequest.prototype.parameters = null; + FractionSplit.prototype.testFraction = 0; /** - * Creates a new PredictRequest instance using the specified properties. + * Creates a new FractionSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest instance + * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit instance */ - PredictRequest.create = function create(properties) { - return new PredictRequest(properties); + FractionSplit.create = function create(properties) { + return new FractionSplit(properties); }; /** - * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequest.encode = function encode(message, writer) { + FractionSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); return writer; }; /** - * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictRequest message from the specified reader or buffer. + * Decodes a FractionSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequest.decode = function decode(reader, length) { + FractionSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FractionSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.trainingFraction = reader.double(); break; } case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.validationFraction = reader.double(); break; } case 3: { - message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.testFraction = reader.double(); break; } default: @@ -128473,167 +134211,141 @@ }; /** - * Decodes a PredictRequest message from the specified reader or buffer, length delimited. + * Decodes a FractionSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequest.decodeDelimited = function decodeDelimited(reader) { + FractionSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredictRequest message. + * Verifies a FractionSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredictRequest.verify = function verify(message) { + FractionSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.instances[i]); - if (error) - return "instances." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Value.verify(message.parameters); - if (error) - return "parameters." + error; - } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; return null; }; /** - * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit */ - PredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PredictRequest) + FractionSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FractionSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.PredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: object expected"); - message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.parameters: object expected"); - message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); - } + var message = new $root.google.cloud.aiplatform.v1.FractionSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); return message; }; /** - * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.PredictRequest} message PredictRequest + * @param {google.cloud.aiplatform.v1.FractionSplit} message FractionSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictRequest.toObject = function toObject(message, options) { + FractionSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.instances = []; if (options.defaults) { - object.endpoint = ""; - object.parameters = null; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; return object; }; /** - * Converts this PredictRequest to JSON. + * Converts this FractionSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance * @returns {Object.} JSON object */ - PredictRequest.prototype.toJSON = function toJSON() { + FractionSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredictRequest + * Gets the default type url for FractionSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FractionSplit"; }; - return PredictRequest; + return FractionSplit; })(); - v1.PredictResponse = (function() { + v1.FilterSplit = (function() { /** - * Properties of a PredictResponse. + * Properties of a FilterSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IPredictResponse - * @property {Array.|null} [predictions] PredictResponse predictions - * @property {string|null} [deployedModelId] PredictResponse deployedModelId - * @property {string|null} [model] PredictResponse model - * @property {string|null} [modelVersionId] PredictResponse modelVersionId - * @property {string|null} [modelDisplayName] PredictResponse modelDisplayName + * @interface IFilterSplit + * @property {string|null} [trainingFilter] FilterSplit trainingFilter + * @property {string|null} [validationFilter] FilterSplit validationFilter + * @property {string|null} [testFilter] FilterSplit testFilter */ /** - * Constructs a new PredictResponse. + * Constructs a new FilterSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredictResponse. - * @implements IPredictResponse + * @classdesc Represents a FilterSplit. + * @implements IFilterSplit * @constructor - * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set */ - function PredictResponse(properties) { - this.predictions = []; + function FilterSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -128641,134 +134353,103 @@ } /** - * PredictResponse predictions. - * @member {Array.} predictions - * @memberof google.cloud.aiplatform.v1.PredictResponse - * @instance - */ - PredictResponse.prototype.predictions = $util.emptyArray; - - /** - * PredictResponse deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.PredictResponse - * @instance - */ - PredictResponse.prototype.deployedModelId = ""; - - /** - * PredictResponse model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.PredictResponse + * FilterSplit trainingFilter. + * @member {string} trainingFilter + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance */ - PredictResponse.prototype.model = ""; + FilterSplit.prototype.trainingFilter = ""; /** - * PredictResponse modelVersionId. - * @member {string} modelVersionId - * @memberof google.cloud.aiplatform.v1.PredictResponse + * FilterSplit validationFilter. + * @member {string} validationFilter + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance */ - PredictResponse.prototype.modelVersionId = ""; + FilterSplit.prototype.validationFilter = ""; /** - * PredictResponse modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1.PredictResponse + * FilterSplit testFilter. + * @member {string} testFilter + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance */ - PredictResponse.prototype.modelDisplayName = ""; + FilterSplit.prototype.testFilter = ""; /** - * Creates a new PredictResponse instance using the specified properties. + * Creates a new FilterSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse instance + * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit instance */ - PredictResponse.create = function create(properties) { - return new PredictResponse(properties); + FilterSplit.create = function create(properties) { + return new FilterSplit(properties); }; /** - * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictResponse.encode = function encode(message, writer) { + FilterSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.predictions != null && message.predictions.length) - for (var i = 0; i < message.predictions.length; ++i) - $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelDisplayName); - if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelVersionId); + if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); + if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); + if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); return writer; }; /** - * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictResponse.encodeDelimited = function encodeDelimited(message, writer) { + FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictResponse message from the specified reader or buffer. + * Decodes a FilterSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictResponse.decode = function decode(reader, length) { + FilterSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredictResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FilterSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.predictions && message.predictions.length)) - message.predictions = []; - message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.trainingFilter = reader.string(); break; } case 2: { - message.deployedModelId = reader.string(); + message.validationFilter = reader.string(); break; } case 3: { - message.model = reader.string(); - break; - } - case 5: { - message.modelVersionId = reader.string(); - break; - } - case 4: { - message.modelDisplayName = reader.string(); + message.testFilter = reader.string(); break; } default: @@ -128780,174 +134461,139 @@ }; /** - * Decodes a PredictResponse message from the specified reader or buffer, length delimited. + * Decodes a FilterSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictResponse.decodeDelimited = function decodeDelimited(reader) { + FilterSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredictResponse message. + * Verifies a FilterSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredictResponse.verify = function verify(message) { + FilterSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.predictions != null && message.hasOwnProperty("predictions")) { - if (!Array.isArray(message.predictions)) - return "predictions: array expected"; - for (var i = 0; i < message.predictions.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.predictions[i]); - if (error) - return "predictions." + error; - } - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - if (!$util.isString(message.modelVersionId)) - return "modelVersionId: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; + if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + if (!$util.isString(message.trainingFilter)) + return "trainingFilter: string expected"; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + if (!$util.isString(message.validationFilter)) + return "validationFilter: string expected"; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + if (!$util.isString(message.testFilter)) + return "testFilter: string expected"; return null; }; /** - * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit */ - PredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PredictResponse) + FilterSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FilterSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.PredictResponse(); - if (object.predictions) { - if (!Array.isArray(object.predictions)) - throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.predictions: array expected"); - message.predictions = []; - for (var i = 0; i < object.predictions.length; ++i) { - if (typeof object.predictions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.predictions: object expected"); - message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); - } - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.model != null) - message.model = String(object.model); - if (object.modelVersionId != null) - message.modelVersionId = String(object.modelVersionId); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); + var message = new $root.google.cloud.aiplatform.v1.FilterSplit(); + if (object.trainingFilter != null) + message.trainingFilter = String(object.trainingFilter); + if (object.validationFilter != null) + message.validationFilter = String(object.validationFilter); + if (object.testFilter != null) + message.testFilter = String(object.testFilter); return message; }; /** - * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. + * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.PredictResponse} message PredictResponse + * @param {google.cloud.aiplatform.v1.FilterSplit} message FilterSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictResponse.toObject = function toObject(message, options) { + FilterSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.predictions = []; if (options.defaults) { - object.deployedModelId = ""; - object.model = ""; - object.modelDisplayName = ""; - object.modelVersionId = ""; - } - if (message.predictions && message.predictions.length) { - object.predictions = []; - for (var j = 0; j < message.predictions.length; ++j) - object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); + object.trainingFilter = ""; + object.validationFilter = ""; + object.testFilter = ""; } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - object.modelVersionId = message.modelVersionId; + if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + object.trainingFilter = message.trainingFilter; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + object.validationFilter = message.validationFilter; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + object.testFilter = message.testFilter; return object; }; /** - * Converts this PredictResponse to JSON. + * Converts this FilterSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance * @returns {Object.} JSON object */ - PredictResponse.prototype.toJSON = function toJSON() { + FilterSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredictResponse + * Gets the default type url for FilterSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FilterSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FilterSplit"; }; - return PredictResponse; + return FilterSplit; })(); - v1.RawPredictRequest = (function() { + v1.PredefinedSplit = (function() { /** - * Properties of a RawPredictRequest. + * Properties of a PredefinedSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IRawPredictRequest - * @property {string|null} [endpoint] RawPredictRequest endpoint - * @property {google.api.IHttpBody|null} [httpBody] RawPredictRequest httpBody + * @interface IPredefinedSplit + * @property {string|null} [key] PredefinedSplit key */ /** - * Constructs a new RawPredictRequest. + * Constructs a new PredefinedSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a RawPredictRequest. - * @implements IRawPredictRequest + * @classdesc Represents a PredefinedSplit. + * @implements IPredefinedSplit * @constructor - * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set */ - function RawPredictRequest(properties) { + function PredefinedSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -128955,89 +134601,75 @@ } /** - * RawPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.RawPredictRequest - * @instance - */ - RawPredictRequest.prototype.endpoint = ""; - - /** - * RawPredictRequest httpBody. - * @member {google.api.IHttpBody|null|undefined} httpBody - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * PredefinedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @instance */ - RawPredictRequest.prototype.httpBody = null; + PredefinedSplit.prototype.key = ""; /** - * Creates a new RawPredictRequest instance using the specified properties. + * Creates a new PredefinedSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest instance + * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit instance */ - RawPredictRequest.create = function create(properties) { - return new RawPredictRequest(properties); + PredefinedSplit.create = function create(properties) { + return new PredefinedSplit(properties); }; /** - * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RawPredictRequest.encode = function encode(message, writer) { + PredefinedSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.httpBody != null && Object.hasOwnProperty.call(message, "httpBody")) - $root.google.api.HttpBody.encode(message.httpBody, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); return writer; }; /** - * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RawPredictRequest message from the specified reader or buffer. + * Decodes a PredefinedSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RawPredictRequest.decode = function decode(reader, length) { + PredefinedSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - message.httpBody = $root.google.api.HttpBody.decode(reader, reader.uint32()); + message.key = reader.string(); break; } default: @@ -129049,141 +134681,125 @@ }; /** - * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RawPredictRequest.decodeDelimited = function decodeDelimited(reader) { + PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RawPredictRequest message. + * Verifies a PredefinedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RawPredictRequest.verify = function verify(message) { + PredefinedSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.httpBody != null && message.hasOwnProperty("httpBody")) { - var error = $root.google.api.HttpBody.verify(message.httpBody); - if (error) - return "httpBody." + error; - } + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit */ - RawPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.RawPredictRequest) + PredefinedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PredefinedSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.httpBody != null) { - if (typeof object.httpBody !== "object") - throw TypeError(".google.cloud.aiplatform.v1.RawPredictRequest.httpBody: object expected"); - message.httpBody = $root.google.api.HttpBody.fromObject(object.httpBody); - } + var message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.RawPredictRequest} message RawPredictRequest + * @param {google.cloud.aiplatform.v1.PredefinedSplit} message PredefinedSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RawPredictRequest.toObject = function toObject(message, options) { + PredefinedSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.httpBody = null; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.httpBody != null && message.hasOwnProperty("httpBody")) - object.httpBody = $root.google.api.HttpBody.toObject(message.httpBody, options); + if (options.defaults) + object.key = ""; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this RawPredictRequest to JSON. + * Converts this PredefinedSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @instance * @returns {Object.} JSON object */ - RawPredictRequest.prototype.toJSON = function toJSON() { + PredefinedSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RawPredictRequest + * Gets the default type url for PredefinedSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredefinedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.RawPredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredefinedSplit"; }; - return RawPredictRequest; + return PredefinedSplit; })(); - v1.ExplainRequest = (function() { + v1.TimestampSplit = (function() { /** - * Properties of an ExplainRequest. + * Properties of a TimestampSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IExplainRequest - * @property {string|null} [endpoint] ExplainRequest endpoint - * @property {Array.|null} [instances] ExplainRequest instances - * @property {google.protobuf.IValue|null} [parameters] ExplainRequest parameters - * @property {google.cloud.aiplatform.v1.IExplanationSpecOverride|null} [explanationSpecOverride] ExplainRequest explanationSpecOverride - * @property {string|null} [deployedModelId] ExplainRequest deployedModelId + * @interface ITimestampSplit + * @property {number|null} [trainingFraction] TimestampSplit trainingFraction + * @property {number|null} [validationFraction] TimestampSplit validationFraction + * @property {number|null} [testFraction] TimestampSplit testFraction + * @property {string|null} [key] TimestampSplit key */ /** - * Constructs a new ExplainRequest. + * Constructs a new TimestampSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExplainRequest. - * @implements IExplainRequest + * @classdesc Represents a TimestampSplit. + * @implements ITimestampSplit * @constructor - * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set */ - function ExplainRequest(properties) { - this.instances = []; + function TimestampSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -129191,134 +134807,390 @@ } /** - * ExplainRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.ExplainRequest - * @instance - */ - ExplainRequest.prototype.endpoint = ""; - - /** - * ExplainRequest instances. - * @member {Array.} instances - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.instances = $util.emptyArray; + TimestampSplit.prototype.trainingFraction = 0; /** - * ExplainRequest parameters. - * @member {google.protobuf.IValue|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.parameters = null; + TimestampSplit.prototype.validationFraction = 0; /** - * ExplainRequest explanationSpecOverride. - * @member {google.cloud.aiplatform.v1.IExplanationSpecOverride|null|undefined} explanationSpecOverride - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.explanationSpecOverride = null; + TimestampSplit.prototype.testFraction = 0; /** - * ExplainRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.deployedModelId = ""; + TimestampSplit.prototype.key = ""; /** - * Creates a new ExplainRequest instance using the specified properties. + * Creates a new TimestampSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest instance + * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit instance */ - ExplainRequest.create = function create(properties) { - return new ExplainRequest(properties); + TimestampSplit.create = function create(properties) { + return new TimestampSplit(properties); }; /** - * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainRequest.encode = function encode(message, writer) { + TimestampSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deployedModelId); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.explanationSpecOverride != null && Object.hasOwnProperty.call(message, "explanationSpecOverride")) - $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.encode(message.explanationSpecOverride, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); return writer; }; /** - * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { + TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplainRequest message from the specified reader or buffer. + * Decodes a TimestampSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainRequest.decode = function decode(reader, length) { + TimestampSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.trainingFraction = reader.double(); break; } case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.validationFraction = reader.double(); + break; + } + case 3: { + message.testFraction = reader.double(); break; } case 4: { - message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.key = reader.string(); break; } - case 5: { - message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.decode(reader, reader.uint32()); + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampSplit.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TimestampSplit message. + * @function verify + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimestampSplit.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + return null; + }; + + /** + * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + */ + TimestampSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.TimestampSplit) + return object; + var message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + if (object.key != null) + message.key = String(object.key); + return message; + }; + + /** + * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {google.cloud.aiplatform.v1.TimestampSplit} message TimestampSplit + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimestampSplit.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; + } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + return object; + }; + + /** + * Converts this TimestampSplit to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @instance + * @returns {Object.} JSON object + */ + TimestampSplit.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TimestampSplit + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TimestampSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.TimestampSplit"; + }; + + return TimestampSplit; + })(); + + v1.StratifiedSplit = (function() { + + /** + * Properties of a StratifiedSplit. + * @memberof google.cloud.aiplatform.v1 + * @interface IStratifiedSplit + * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction + * @property {number|null} [validationFraction] StratifiedSplit validationFraction + * @property {number|null} [testFraction] StratifiedSplit testFraction + * @property {string|null} [key] StratifiedSplit key + */ + + /** + * Constructs a new StratifiedSplit. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a StratifiedSplit. + * @implements IStratifiedSplit + * @constructor + * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set + */ + function StratifiedSplit(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]]; + } + + /** + * StratifiedSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.trainingFraction = 0; + + /** + * StratifiedSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.validationFraction = 0; + + /** + * StratifiedSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.testFraction = 0; + + /** + * StratifiedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.key = ""; + + /** + * Creates a new StratifiedSplit instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit instance + */ + StratifiedSplit.create = function create(properties) { + return new StratifiedSplit(properties); + }; + + /** + * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StratifiedSplit.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + return writer; + }; + + /** + * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StratifiedSplit message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StratifiedSplit.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainingFraction = reader.double(); + break; + } + case 2: { + message.validationFraction = reader.double(); break; } case 3: { - message.deployedModelId = reader.string(); + message.testFraction = reader.double(); + break; + } + case 4: { + message.key = reader.string(); break; } default: @@ -129330,30 +135202,426 @@ }; /** - * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainRequest.decodeDelimited = function decodeDelimited(reader) { + StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplainRequest message. + * Verifies a StratifiedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplainRequest.verify = function verify(message) { + StratifiedSplit.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + return null; + }; + + /** + * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + */ + StratifiedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StratifiedSplit) + return object; + var message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + if (object.key != null) + message.key = String(object.key); + return message; + }; + + /** + * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {google.cloud.aiplatform.v1.StratifiedSplit} message StratifiedSplit + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StratifiedSplit.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; + } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + return object; + }; + + /** + * Converts this StratifiedSplit to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + * @returns {Object.} JSON object + */ + StratifiedSplit.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StratifiedSplit + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StratifiedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StratifiedSplit"; + }; + + return StratifiedSplit; + })(); + + v1.PredictionService = (function() { + + /** + * Constructs a new PredictionService service. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PredictionService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function PredictionService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (PredictionService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PredictionService; + + /** + * Creates new PredictionService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.PredictionService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {PredictionService} RPC service. Useful where requests and/or responses are streamed. + */ + PredictionService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef PredictCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PredictResponse} [response] PredictResponse + */ + + /** + * Calls Predict. + * @function predict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.PredictCallback} callback Node-style callback called with the error, if any, and PredictResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.predict = function predict(request, callback) { + return this.rpcCall(predict, $root.google.cloud.aiplatform.v1.PredictRequest, $root.google.cloud.aiplatform.v1.PredictResponse, request, callback); + }, "name", { value: "Predict" }); + + /** + * Calls Predict. + * @function predict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef RawPredictCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.api.HttpBody} [response] HttpBody + */ + + /** + * Calls RawPredict. + * @function rawPredict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.RawPredictCallback} callback Node-style callback called with the error, if any, and HttpBody + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.rawPredict = function rawPredict(request, callback) { + return this.rpcCall(rawPredict, $root.google.cloud.aiplatform.v1.RawPredictRequest, $root.google.api.HttpBody, request, callback); + }, "name", { value: "RawPredict" }); + + /** + * Calls RawPredict. + * @function rawPredict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef ExplainCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ExplainResponse} [response] ExplainResponse + */ + + /** + * Calls Explain. + * @function explain + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.ExplainCallback} callback Node-style callback called with the error, if any, and ExplainResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.explain = function explain(request, callback) { + return this.rpcCall(explain, $root.google.cloud.aiplatform.v1.ExplainRequest, $root.google.cloud.aiplatform.v1.ExplainResponse, request, callback); + }, "name", { value: "Explain" }); + + /** + * Calls Explain. + * @function explain + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return PredictionService; + })(); + + v1.PredictRequest = (function() { + + /** + * Properties of a PredictRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IPredictRequest + * @property {string|null} [endpoint] PredictRequest endpoint + * @property {Array.|null} [instances] PredictRequest instances + * @property {google.protobuf.IValue|null} [parameters] PredictRequest parameters + */ + + /** + * Constructs a new PredictRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PredictRequest. + * @implements IPredictRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set + */ + function PredictRequest(properties) { + this.instances = []; + 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]]; + } + + /** + * PredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @instance + */ + PredictRequest.prototype.endpoint = ""; + + /** + * PredictRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @instance + */ + PredictRequest.prototype.instances = $util.emptyArray; + + /** + * PredictRequest parameters. + * @member {google.protobuf.IValue|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @instance + */ + PredictRequest.prototype.parameters = null; + + /** + * Creates a new PredictRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest instance + */ + PredictRequest.create = function create(properties) { + return new PredictRequest(properties); + }; + + /** + * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PredictRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredictRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 3: { + message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PredictRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PredictRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PredictRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.endpoint != null && message.hasOwnProperty("endpoint")) @@ -129373,66 +135641,51 @@ if (error) return "parameters." + error; } - if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) { - var error = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.verify(message.explanationSpecOverride); - if (error) - return "explanationSpecOverride." + error; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; return null; }; /** - * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest */ - ExplainRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExplainRequest) + PredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); + var message = new $root.google.cloud.aiplatform.v1.PredictRequest(); if (object.endpoint != null) message.endpoint = String(object.endpoint); if (object.instances) { if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: array expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: array expected"); message.instances = []; for (var i = 0; i < object.instances.length; ++i) { if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: object expected"); message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); } } if (object.parameters != null) { if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.parameters: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.parameters: object expected"); message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); } - if (object.explanationSpecOverride != null) { - if (typeof object.explanationSpecOverride !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.explanationSpecOverride: object expected"); - message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.fromObject(object.explanationSpecOverride); - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); return message; }; /** - * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1.ExplainRequest} message ExplainRequest + * @param {google.cloud.aiplatform.v1.PredictRequest} message PredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplainRequest.toObject = function toObject(message, options) { + PredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -129440,9 +135693,7 @@ object.instances = []; if (options.defaults) { object.endpoint = ""; - object.deployedModelId = ""; object.parameters = null; - object.explanationSpecOverride = null; } if (message.endpoint != null && message.hasOwnProperty("endpoint")) object.endpoint = message.endpoint; @@ -129451,65 +135702,62 @@ for (var j = 0; j < message.instances.length; ++j) object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; if (message.parameters != null && message.hasOwnProperty("parameters")) object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); - if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) - object.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.toObject(message.explanationSpecOverride, options); return object; }; /** - * Converts this ExplainRequest to JSON. + * Converts this PredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.PredictRequest * @instance * @returns {Object.} JSON object */ - ExplainRequest.prototype.toJSON = function toJSON() { + PredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExplainRequest + * Gets the default type url for PredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExplainRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExplainRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictRequest"; }; - return ExplainRequest; + return PredictRequest; })(); - v1.ExplainResponse = (function() { + v1.PredictResponse = (function() { /** - * Properties of an ExplainResponse. + * Properties of a PredictResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IExplainResponse - * @property {Array.|null} [explanations] ExplainResponse explanations - * @property {string|null} [deployedModelId] ExplainResponse deployedModelId - * @property {Array.|null} [predictions] ExplainResponse predictions + * @interface IPredictResponse + * @property {Array.|null} [predictions] PredictResponse predictions + * @property {string|null} [deployedModelId] PredictResponse deployedModelId + * @property {string|null} [model] PredictResponse model + * @property {string|null} [modelVersionId] PredictResponse modelVersionId + * @property {string|null} [modelDisplayName] PredictResponse modelDisplayName */ /** - * Constructs a new ExplainResponse. + * Constructs a new PredictResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExplainResponse. - * @implements IExplainResponse + * @classdesc Represents a PredictResponse. + * @implements IPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set */ - function ExplainResponse(properties) { - this.explanations = []; + function PredictResponse(properties) { this.predictions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -129518,99 +135766,118 @@ } /** - * ExplainResponse explanations. - * @member {Array.} explanations - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * PredictResponse predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - ExplainResponse.prototype.explanations = $util.emptyArray; + PredictResponse.prototype.predictions = $util.emptyArray; /** - * ExplainResponse deployedModelId. + * PredictResponse deployedModelId. * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - ExplainResponse.prototype.deployedModelId = ""; + PredictResponse.prototype.deployedModelId = ""; /** - * ExplainResponse predictions. - * @member {Array.} predictions - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * PredictResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - ExplainResponse.prototype.predictions = $util.emptyArray; + PredictResponse.prototype.model = ""; /** - * Creates a new ExplainResponse instance using the specified properties. + * PredictResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.PredictResponse + * @instance + */ + PredictResponse.prototype.modelVersionId = ""; + + /** + * PredictResponse modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1.PredictResponse + * @instance + */ + PredictResponse.prototype.modelDisplayName = ""; + + /** + * Creates a new PredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse instance + * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse instance */ - ExplainResponse.create = function create(properties) { - return new ExplainResponse(properties); + PredictResponse.create = function create(properties) { + return new PredictResponse(properties); }; /** - * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainResponse.encode = function encode(message, writer) { + PredictResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.explanations != null && message.explanations.length) - for (var i = 0; i < message.explanations.length; ++i) - $root.google.cloud.aiplatform.v1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); if (message.predictions != null && message.predictions.length) for (var i = 0; i < message.predictions.length; ++i) - $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelDisplayName); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelVersionId); return writer; }; /** - * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { + PredictResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplainResponse message from the specified reader or buffer. + * Decodes a PredictResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainResponse.decode = function decode(reader, length) { + PredictResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredictResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.explanations && message.explanations.length)) - message.explanations = []; - message.explanations.push($root.google.cloud.aiplatform.v1.Explanation.decode(reader, reader.uint32())); + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } case 2: { @@ -129618,9 +135885,15 @@ break; } case 3: { - if (!(message.predictions && message.predictions.length)) - message.predictions = []; - message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.model = reader.string(); + break; + } + case 5: { + message.modelVersionId = reader.string(); + break; + } + case 4: { + message.modelDisplayName = reader.string(); break; } default: @@ -129632,44 +135905,32 @@ }; /** - * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * Decodes a PredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainResponse.decodeDelimited = function decodeDelimited(reader) { + PredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplainResponse message. + * Verifies a PredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplainResponse.verify = function verify(message) { + PredictResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.explanations != null && message.hasOwnProperty("explanations")) { - if (!Array.isArray(message.explanations)) - return "explanations: array expected"; - for (var i = 0; i < message.explanations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Explanation.verify(message.explanations[i]); - if (error) - return "explanations." + error; - } - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; if (message.predictions != null && message.hasOwnProperty("predictions")) { if (!Array.isArray(message.predictions)) return "predictions: array expected"; @@ -129679,82 +135940,946 @@ return "predictions." + error; } } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; return null; }; /** - * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse */ - ExplainResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExplainResponse) + PredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); - if (object.explanations) { - if (!Array.isArray(object.explanations)) - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.explanations: array expected"); - message.explanations = []; - for (var i = 0; i < object.explanations.length; ++i) { - if (typeof object.explanations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.explanations: object expected"); - message.explanations[i] = $root.google.cloud.aiplatform.v1.Explanation.fromObject(object.explanations[i]); - } - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); + var message = new $root.google.cloud.aiplatform.v1.PredictResponse(); if (object.predictions) { if (!Array.isArray(object.predictions)) - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.predictions: array expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.predictions: array expected"); message.predictions = []; for (var i = 0; i < object.predictions.length; ++i) { if (typeof object.predictions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.predictions: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.predictions: object expected"); message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); } } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); return message; }; /** - * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.ExplainResponse} message ExplainResponse + * @param {google.cloud.aiplatform.v1.PredictResponse} message PredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplainResponse.toObject = function toObject(message, options) { + PredictResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.explanations = []; + if (options.arrays || options.defaults) object.predictions = []; - } - if (options.defaults) + if (options.defaults) { object.deployedModelId = ""; - if (message.explanations && message.explanations.length) { - object.explanations = []; - for (var j = 0; j < message.explanations.length; ++j) - object.explanations[j] = $root.google.cloud.aiplatform.v1.Explanation.toObject(message.explanations[j], options); + object.model = ""; + object.modelDisplayName = ""; + object.modelVersionId = ""; } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; if (message.predictions && message.predictions.length) { object.predictions = []; for (var j = 0; j < message.predictions.length; ++j) object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); } - return object; - }; - - /** - * Converts this ExplainResponse to JSON. + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + return object; + }; + + /** + * Converts this PredictResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PredictResponse + * @instance + * @returns {Object.} JSON object + */ + PredictResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PredictResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PredictResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictResponse"; + }; + + return PredictResponse; + })(); + + v1.RawPredictRequest = (function() { + + /** + * Properties of a RawPredictRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IRawPredictRequest + * @property {string|null} [endpoint] RawPredictRequest endpoint + * @property {google.api.IHttpBody|null} [httpBody] RawPredictRequest httpBody + */ + + /** + * Constructs a new RawPredictRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RawPredictRequest. + * @implements IRawPredictRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set + */ + function RawPredictRequest(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]]; + } + + /** + * RawPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @instance + */ + RawPredictRequest.prototype.endpoint = ""; + + /** + * RawPredictRequest httpBody. + * @member {google.api.IHttpBody|null|undefined} httpBody + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @instance + */ + RawPredictRequest.prototype.httpBody = null; + + /** + * Creates a new RawPredictRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest instance + */ + RawPredictRequest.create = function create(properties) { + return new RawPredictRequest(properties); + }; + + /** + * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RawPredictRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.httpBody != null && Object.hasOwnProperty.call(message, "httpBody")) + $root.google.api.HttpBody.encode(message.httpBody, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RawPredictRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RawPredictRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + message.httpBody = $root.google.api.HttpBody.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RawPredictRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RawPredictRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RawPredictRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) { + var error = $root.google.api.HttpBody.verify(message.httpBody); + if (error) + return "httpBody." + error; + } + return null; + }; + + /** + * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + */ + RawPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RawPredictRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.httpBody != null) { + if (typeof object.httpBody !== "object") + throw TypeError(".google.cloud.aiplatform.v1.RawPredictRequest.httpBody: object expected"); + message.httpBody = $root.google.api.HttpBody.fromObject(object.httpBody); + } + return message; + }; + + /** + * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1.RawPredictRequest} message RawPredictRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RawPredictRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endpoint = ""; + object.httpBody = null; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) + object.httpBody = $root.google.api.HttpBody.toObject(message.httpBody, options); + return object; + }; + + /** + * Converts this RawPredictRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @instance + * @returns {Object.} JSON object + */ + RawPredictRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RawPredictRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RawPredictRequest"; + }; + + return RawPredictRequest; + })(); + + v1.ExplainRequest = (function() { + + /** + * Properties of an ExplainRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IExplainRequest + * @property {string|null} [endpoint] ExplainRequest endpoint + * @property {Array.|null} [instances] ExplainRequest instances + * @property {google.protobuf.IValue|null} [parameters] ExplainRequest parameters + * @property {google.cloud.aiplatform.v1.IExplanationSpecOverride|null} [explanationSpecOverride] ExplainRequest explanationSpecOverride + * @property {string|null} [deployedModelId] ExplainRequest deployedModelId + */ + + /** + * Constructs a new ExplainRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExplainRequest. + * @implements IExplainRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set + */ + function ExplainRequest(properties) { + this.instances = []; + 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]]; + } + + /** + * ExplainRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.endpoint = ""; + + /** + * ExplainRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.instances = $util.emptyArray; + + /** + * ExplainRequest parameters. + * @member {google.protobuf.IValue|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.parameters = null; + + /** + * ExplainRequest explanationSpecOverride. + * @member {google.cloud.aiplatform.v1.IExplanationSpecOverride|null|undefined} explanationSpecOverride + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.explanationSpecOverride = null; + + /** + * ExplainRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.deployedModelId = ""; + + /** + * Creates a new ExplainRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest instance + */ + ExplainRequest.create = function create(properties) { + return new ExplainRequest(properties); + }; + + /** + * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deployedModelId); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.explanationSpecOverride != null && Object.hasOwnProperty.call(message, "explanationSpecOverride")) + $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.encode(message.explanationSpecOverride, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExplainRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 4: { + message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 5: { + message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.decode(reader, reader.uint32()); + break; + } + case 3: { + message.deployedModelId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExplainRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplainRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Value.verify(message.parameters); + if (error) + return "parameters." + error; + } + if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) { + var error = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.verify(message.explanationSpecOverride); + if (error) + return "explanationSpecOverride." + error; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + return null; + }; + + /** + * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + */ + ExplainRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExplainRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.parameters: object expected"); + message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); + } + if (object.explanationSpecOverride != null) { + if (typeof object.explanationSpecOverride !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.explanationSpecOverride: object expected"); + message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.fromObject(object.explanationSpecOverride); + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + return message; + }; + + /** + * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.ExplainRequest} message ExplainRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplainRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) { + object.endpoint = ""; + object.deployedModelId = ""; + object.parameters = null; + object.explanationSpecOverride = null; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); + if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) + object.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.toObject(message.explanationSpecOverride, options); + return object; + }; + + /** + * Converts this ExplainRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + * @returns {Object.} JSON object + */ + ExplainRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExplainRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExplainRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExplainRequest"; + }; + + return ExplainRequest; + })(); + + v1.ExplainResponse = (function() { + + /** + * Properties of an ExplainResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IExplainResponse + * @property {Array.|null} [explanations] ExplainResponse explanations + * @property {string|null} [deployedModelId] ExplainResponse deployedModelId + * @property {Array.|null} [predictions] ExplainResponse predictions + */ + + /** + * Constructs a new ExplainResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExplainResponse. + * @implements IExplainResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set + */ + function ExplainResponse(properties) { + this.explanations = []; + this.predictions = []; + 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]]; + } + + /** + * ExplainResponse explanations. + * @member {Array.} explanations + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @instance + */ + ExplainResponse.prototype.explanations = $util.emptyArray; + + /** + * ExplainResponse deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @instance + */ + ExplainResponse.prototype.deployedModelId = ""; + + /** + * ExplainResponse predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @instance + */ + ExplainResponse.prototype.predictions = $util.emptyArray; + + /** + * Creates a new ExplainResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse instance + */ + ExplainResponse.create = function create(properties) { + return new ExplainResponse(properties); + }; + + /** + * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.explanations != null && message.explanations.length) + for (var i = 0; i < message.explanations.length; ++i) + $root.google.cloud.aiplatform.v1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.predictions != null && message.predictions.length) + for (var i = 0; i < message.predictions.length; ++i) + $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExplainResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.explanations && message.explanations.length)) + message.explanations = []; + message.explanations.push($root.google.cloud.aiplatform.v1.Explanation.decode(reader, reader.uint32())); + break; + } + case 2: { + message.deployedModelId = reader.string(); + break; + } + case 3: { + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExplainResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplainResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.explanations != null && message.hasOwnProperty("explanations")) { + if (!Array.isArray(message.explanations)) + return "explanations: array expected"; + for (var i = 0; i < message.explanations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Explanation.verify(message.explanations[i]); + if (error) + return "explanations." + error; + } + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.predictions != null && message.hasOwnProperty("predictions")) { + if (!Array.isArray(message.predictions)) + return "predictions: array expected"; + for (var i = 0; i < message.predictions.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.predictions[i]); + if (error) + return "predictions." + error; + } + } + return null; + }; + + /** + * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + */ + ExplainResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExplainResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); + if (object.explanations) { + if (!Array.isArray(object.explanations)) + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.explanations: array expected"); + message.explanations = []; + for (var i = 0; i < object.explanations.length; ++i) { + if (typeof object.explanations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.explanations: object expected"); + message.explanations[i] = $root.google.cloud.aiplatform.v1.Explanation.fromObject(object.explanations[i]); + } + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.predictions) { + if (!Array.isArray(object.predictions)) + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.predictions: array expected"); + message.predictions = []; + for (var i = 0; i < object.predictions.length; ++i) { + if (typeof object.predictions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.predictions: object expected"); + message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {google.cloud.aiplatform.v1.ExplainResponse} message ExplainResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplainResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.explanations = []; + object.predictions = []; + } + if (options.defaults) + object.deployedModelId = ""; + if (message.explanations && message.explanations.length) { + object.explanations = []; + for (var j = 0; j < message.explanations.length; ++j) + object.explanations[j] = $root.google.cloud.aiplatform.v1.Explanation.toObject(message.explanations[j], options); + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.predictions && message.predictions.length) { + object.predictions = []; + for (var j = 0; j < message.predictions.length; ++j) + object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); + } + return object; + }; + + /** + * Converts this ExplainResponse to JSON. * @function toJSON * @memberof google.cloud.aiplatform.v1.ExplainResponse * @instance @@ -191500,6 +198625,7 @@ * @property {Object.|null} [labels] Model labels * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Model encryptionSpec * @property {google.cloud.aiplatform.v1beta1.IModelSourceInfo|null} [modelSourceInfo] Model modelSourceInfo + * @property {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo|null} [originalModelInfo] Model originalModelInfo * @property {string|null} [metadataArtifact] Model metadataArtifact */ @@ -191733,6 +198859,14 @@ */ Model.prototype.modelSourceInfo = null; + /** + * Model originalModelInfo. + * @member {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo|null|undefined} originalModelInfo + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.originalModelInfo = null; + /** * Model metadataArtifact. * @member {string} metadataArtifact @@ -191825,6 +198959,8 @@ $root.google.protobuf.Timestamp.encode(message.versionCreateTime, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); if (message.versionUpdateTime != null && Object.hasOwnProperty.call(message, "versionUpdateTime")) $root.google.protobuf.Timestamp.encode(message.versionUpdateTime, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.originalModelInfo != null && Object.hasOwnProperty.call(message, "originalModelInfo")) + $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.encode(message.originalModelInfo, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); if (message.modelSourceInfo != null && Object.hasOwnProperty.call(message, "modelSourceInfo")) $root.google.cloud.aiplatform.v1beta1.ModelSourceInfo.encode(message.modelSourceInfo, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); if (message.metadataArtifact != null && Object.hasOwnProperty.call(message, "metadataArtifact")) @@ -192003,6 +199139,10 @@ message.modelSourceInfo = $root.google.cloud.aiplatform.v1beta1.ModelSourceInfo.decode(reader, reader.uint32()); break; } + case 34: { + message.originalModelInfo = $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.decode(reader, reader.uint32()); + break; + } case 44: { message.metadataArtifact = reader.string(); break; @@ -192180,6 +199320,11 @@ if (error) return "modelSourceInfo." + error; } + if (message.originalModelInfo != null && message.hasOwnProperty("originalModelInfo")) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify(message.originalModelInfo); + if (error) + return "originalModelInfo." + error; + } if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) if (!$util.isString(message.metadataArtifact)) return "metadataArtifact: string expected"; @@ -192343,6 +199488,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.Model.modelSourceInfo: object expected"); message.modelSourceInfo = $root.google.cloud.aiplatform.v1beta1.ModelSourceInfo.fromObject(object.modelSourceInfo); } + if (object.originalModelInfo != null) { + if (typeof object.originalModelInfo !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.originalModelInfo: object expected"); + message.originalModelInfo = $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.fromObject(object.originalModelInfo); + } if (object.metadataArtifact != null) message.metadataArtifact = String(object.metadataArtifact); return message; @@ -192390,6 +199540,7 @@ object.versionDescription = ""; object.versionCreateTime = null; object.versionUpdateTime = null; + object.originalModelInfo = null; object.modelSourceInfo = null; object.metadataArtifact = ""; } @@ -192465,6 +199616,8 @@ object.versionCreateTime = $root.google.protobuf.Timestamp.toObject(message.versionCreateTime, options); if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) object.versionUpdateTime = $root.google.protobuf.Timestamp.toObject(message.versionUpdateTime, options); + if (message.originalModelInfo != null && message.hasOwnProperty("originalModelInfo")) + object.originalModelInfo = $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.toObject(message.originalModelInfo, options); if (message.modelSourceInfo != null && message.hasOwnProperty("modelSourceInfo")) object.modelSourceInfo = $root.google.cloud.aiplatform.v1beta1.ModelSourceInfo.toObject(message.modelSourceInfo, options); if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) @@ -192789,6 +199942,209 @@ return ExportFormat; })(); + Model.OriginalModelInfo = (function() { + + /** + * Properties of an OriginalModelInfo. + * @memberof google.cloud.aiplatform.v1beta1.Model + * @interface IOriginalModelInfo + * @property {string|null} [model] OriginalModelInfo model + */ + + /** + * Constructs a new OriginalModelInfo. + * @memberof google.cloud.aiplatform.v1beta1.Model + * @classdesc Represents an OriginalModelInfo. + * @implements IOriginalModelInfo + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo=} [properties] Properties to set + */ + function OriginalModelInfo(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]]; + } + + /** + * OriginalModelInfo model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @instance + */ + OriginalModelInfo.prototype.model = ""; + + /** + * Creates a new OriginalModelInfo instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo} OriginalModelInfo instance + */ + OriginalModelInfo.create = function create(properties) { + return new OriginalModelInfo(properties); + }; + + /** + * Encodes the specified OriginalModelInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo} message OriginalModelInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OriginalModelInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + return writer; + }; + + /** + * Encodes the specified OriginalModelInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo} message OriginalModelInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OriginalModelInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo} OriginalModelInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OriginalModelInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo} OriginalModelInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OriginalModelInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OriginalModelInfo message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OriginalModelInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + return null; + }; + + /** + * Creates an OriginalModelInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo} OriginalModelInfo + */ + OriginalModelInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo(); + if (object.model != null) + message.model = String(object.model); + return message; + }; + + /** + * Creates a plain object from an OriginalModelInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo} message OriginalModelInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OriginalModelInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.model = ""; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + return object; + }; + + /** + * Converts this OriginalModelInfo to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @instance + * @returns {Object.} JSON object + */ + OriginalModelInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OriginalModelInfo + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OriginalModelInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo"; + }; + + return OriginalModelInfo; + })(); + /** * DeploymentResourcesType enum. * @name google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType @@ -211498,6 +218854,7 @@ * @property {string|null} [displayName] DeployedModel displayName * @property {google.protobuf.ITimestamp|null} [createTime] DeployedModel createTime * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] DeployedModel explanationSpec + * @property {boolean|null} [disableExplanations] DeployedModel disableExplanations * @property {string|null} [serviceAccount] DeployedModel serviceAccount * @property {boolean|null} [enableContainerLogging] DeployedModel enableContainerLogging * @property {boolean|null} [enableAccessLogging] DeployedModel enableAccessLogging @@ -211591,6 +218948,14 @@ */ DeployedModel.prototype.explanationSpec = null; + /** + * DeployedModel disableExplanations. + * @member {boolean} disableExplanations + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.disableExplanations = false; + /** * DeployedModel serviceAccount. * @member {string} serviceAccount @@ -211687,6 +219052,8 @@ writer.uint32(/* id 17, wireType 2 =*/138).string(message.sharedResources); if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) writer.uint32(/* id 18, wireType 2 =*/146).string(message.modelVersionId); + if (message.disableExplanations != null && Object.hasOwnProperty.call(message, "disableExplanations")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.disableExplanations); return writer; }; @@ -211757,6 +219124,10 @@ message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); break; } + case 19: { + message.disableExplanations = reader.bool(); + break; + } case 11: { message.serviceAccount = reader.string(); break; @@ -211856,6 +219227,9 @@ if (error) return "explanationSpec." + error; } + if (message.disableExplanations != null && message.hasOwnProperty("disableExplanations")) + if (typeof message.disableExplanations !== "boolean") + return "disableExplanations: boolean expected"; if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) if (!$util.isString(message.serviceAccount)) return "serviceAccount: string expected"; @@ -211915,6 +219289,8 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.explanationSpec: object expected"); message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); } + if (object.disableExplanations != null) + message.disableExplanations = Boolean(object.disableExplanations); if (object.serviceAccount != null) message.serviceAccount = String(object.serviceAccount); if (object.enableContainerLogging != null) @@ -211953,6 +219329,7 @@ object.enableAccessLogging = false; object.privateEndpoints = null; object.modelVersionId = ""; + object.disableExplanations = false; } if (message.id != null && message.hasOwnProperty("id")) object.id = message.id; @@ -211989,6 +219366,8 @@ } if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) object.modelVersionId = message.modelVersionId; + if (message.disableExplanations != null && message.hasOwnProperty("disableExplanations")) + object.disableExplanations = message.disableExplanations; return object; }; @@ -240687,6 +248066,7 @@ * @interface IMetricSpec * @property {string|null} [metricId] MetricSpec metricId * @property {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + * @property {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig|null} [safetyConfig] MetricSpec safetyConfig */ /** @@ -240720,6 +248100,28 @@ */ MetricSpec.prototype.goal = 0; + /** + * MetricSpec safetyConfig. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig|null|undefined} safetyConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @instance + */ + MetricSpec.prototype.safetyConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MetricSpec _safetyConfig. + * @member {"safetyConfig"|undefined} _safetyConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @instance + */ + Object.defineProperty(MetricSpec.prototype, "_safetyConfig", { + get: $util.oneOfGetter($oneOfFields = ["safetyConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new MetricSpec instance using the specified properties. * @function create @@ -240748,6 +248150,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + if (message.safetyConfig != null && Object.hasOwnProperty.call(message, "safetyConfig")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.encode(message.safetyConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -240790,6 +248194,10 @@ message.goal = reader.int32(); break; } + case 3: { + message.safetyConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -240825,6 +248233,7 @@ MetricSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.metricId != null && message.hasOwnProperty("metricId")) if (!$util.isString(message.metricId)) return "metricId: string expected"; @@ -240837,6 +248246,14 @@ case 2: break; } + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + properties._safetyConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify(message.safetyConfig); + if (error) + return "safetyConfig." + error; + } + } return null; }; @@ -240874,6 +248291,11 @@ message.goal = 2; break; } + if (object.safetyConfig != null) { + if (typeof object.safetyConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.safetyConfig: object expected"); + message.safetyConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.fromObject(object.safetyConfig); + } return message; }; @@ -240898,6 +248320,11 @@ object.metricId = message.metricId; if (message.goal != null && message.hasOwnProperty("goal")) object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType[message.goal] : message.goal; + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + object.safetyConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.toObject(message.safetyConfig, options); + if (options.oneofs) + object._safetyConfig = "safetyConfig"; + } return object; }; @@ -240927,6 +248354,251 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec"; }; + MetricSpec.SafetyMetricConfig = (function() { + + /** + * Properties of a SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @interface ISafetyMetricConfig + * @property {number|null} [safetyThreshold] SafetyMetricConfig safetyThreshold + * @property {number|null} [desiredMinSafeTrialsFraction] SafetyMetricConfig desiredMinSafeTrialsFraction + */ + + /** + * Constructs a new SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @classdesc Represents a SafetyMetricConfig. + * @implements ISafetyMetricConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + */ + function SafetyMetricConfig(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]]; + } + + /** + * SafetyMetricConfig safetyThreshold. + * @member {number} safetyThreshold + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.safetyThreshold = 0; + + /** + * SafetyMetricConfig desiredMinSafeTrialsFraction. + * @member {number|null|undefined} desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.desiredMinSafeTrialsFraction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SafetyMetricConfig _desiredMinSafeTrialsFraction. + * @member {"desiredMinSafeTrialsFraction"|undefined} _desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + Object.defineProperty(SafetyMetricConfig.prototype, "_desiredMinSafeTrialsFraction", { + get: $util.oneOfGetter($oneOfFields = ["desiredMinSafeTrialsFraction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SafetyMetricConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig instance + */ + SafetyMetricConfig.create = function create(properties) { + return new SafetyMetricConfig(properties); + }; + + /** + * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.safetyThreshold != null && Object.hasOwnProperty.call(message, "safetyThreshold")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.safetyThreshold); + if (message.desiredMinSafeTrialsFraction != null && Object.hasOwnProperty.call(message, "desiredMinSafeTrialsFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.desiredMinSafeTrialsFraction); + return writer; + }; + + /** + * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.safetyThreshold = reader.double(); + break; + } + case 2: { + message.desiredMinSafeTrialsFraction = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyMetricConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyMetricConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + if (typeof message.safetyThreshold !== "number") + return "safetyThreshold: number expected"; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + properties._desiredMinSafeTrialsFraction = 1; + if (typeof message.desiredMinSafeTrialsFraction !== "number") + return "desiredMinSafeTrialsFraction: number expected"; + } + return null; + }; + + /** + * Creates a SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + */ + SafetyMetricConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig(); + if (object.safetyThreshold != null) + message.safetyThreshold = Number(object.safetyThreshold); + if (object.desiredMinSafeTrialsFraction != null) + message.desiredMinSafeTrialsFraction = Number(object.desiredMinSafeTrialsFraction); + return message; + }; + + /** + * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig} message SafetyMetricConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyMetricConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.safetyThreshold = 0; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + object.safetyThreshold = options.json && !isFinite(message.safetyThreshold) ? String(message.safetyThreshold) : message.safetyThreshold; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + object.desiredMinSafeTrialsFraction = options.json && !isFinite(message.desiredMinSafeTrialsFraction) ? String(message.desiredMinSafeTrialsFraction) : message.desiredMinSafeTrialsFraction; + if (options.oneofs) + object._desiredMinSafeTrialsFraction = "desiredMinSafeTrialsFraction"; + } + return object; + }; + + /** + * Converts this SafetyMetricConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + * @returns {Object.} JSON object + */ + SafetyMetricConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyMetricConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyMetricConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig"; + }; + + return SafetyMetricConfig; + })(); + /** * GoalType enum. * @name google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType @@ -243169,388 +250841,5170 @@ return message; }; - /** - * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IntValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) + return "values: integer|Long[] expected"; + } + return null; + }; + + /** + * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + */ + IntValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + if ($util.Long) + (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; + else if (typeof object.values[i] === "string") + message.values[i] = parseInt(object.values[i], 10); + else if (typeof object.values[i] === "number") + message.values[i] = object.values[i]; + else if (typeof object.values[i] === "object") + message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); + } + return message; + }; + + /** + * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} message IntValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + if (typeof message.values[j] === "number") + object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; + else + object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; + } + return object; + }; + + /** + * Converts this IntValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @instance + * @returns {Object.} JSON object + */ + IntValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IntValueCondition + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IntValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition"; + }; + + return IntValueCondition; + })(); + + ConditionalParameterSpec.CategoricalValueCondition = (function() { + + /** + * Properties of a CategoricalValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface ICategoricalValueCondition + * @property {Array.|null} [values] CategoricalValueCondition values + */ + + /** + * Constructs a new CategoricalValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @classdesc Represents a CategoricalValueCondition. + * @implements ICategoricalValueCondition + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set + */ + function CategoricalValueCondition(properties) { + this.values = []; + 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]]; + } + + /** + * CategoricalValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @instance + */ + CategoricalValueCondition.prototype.values = $util.emptyArray; + + /** + * Creates a new CategoricalValueCondition instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition instance + */ + CategoricalValueCondition.create = function create(properties) { + return new CategoricalValueCondition(properties); + }; + + /** + * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + return writer; + }; + + /** + * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CategoricalValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + return null; + }; + + /** + * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + */ + CategoricalValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + return message; + }; + + /** + * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} message CategoricalValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + return object; + }; + + /** + * Converts this CategoricalValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @instance + * @returns {Object.} JSON object + */ + CategoricalValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CategoricalValueCondition + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CategoricalValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition"; + }; + + return CategoricalValueCondition; + })(); + + return ConditionalParameterSpec; + })(); + + /** + * ScaleType enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType + * @enum {number} + * @property {number} SCALE_TYPE_UNSPECIFIED=0 SCALE_TYPE_UNSPECIFIED value + * @property {number} UNIT_LINEAR_SCALE=1 UNIT_LINEAR_SCALE value + * @property {number} UNIT_LOG_SCALE=2 UNIT_LOG_SCALE value + * @property {number} UNIT_REVERSE_LOG_SCALE=3 UNIT_REVERSE_LOG_SCALE value + */ + ParameterSpec.ScaleType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SCALE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "UNIT_LINEAR_SCALE"] = 1; + values[valuesById[2] = "UNIT_LOG_SCALE"] = 2; + values[valuesById[3] = "UNIT_REVERSE_LOG_SCALE"] = 3; + return values; + })(); + + return ParameterSpec; + })(); + + StudySpec.DecayCurveAutomatedStoppingSpec = (function() { + + /** + * Properties of a DecayCurveAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IDecayCurveAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration + */ + + /** + * Constructs a new DecayCurveAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a DecayCurveAutomatedStoppingSpec. + * @implements IDecayCurveAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set + */ + function DecayCurveAutomatedStoppingSpec(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]]; + } + + /** + * DecayCurveAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @instance + */ + DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec instance + */ + DecayCurveAutomatedStoppingSpec.create = function create(properties) { + return new DecayCurveAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecayCurveAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + return writer; + }; + + /** + * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecayCurveAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecayCurveAutomatedStoppingSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useElapsedDuration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecayCurveAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DecayCurveAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DecayCurveAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + return null; + }; + + /** + * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + */ + DecayCurveAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + return message; + }; + + /** + * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DecayCurveAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useElapsedDuration = false; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + return object; + }; + + /** + * Converts this DecayCurveAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + DecayCurveAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DecayCurveAutomatedStoppingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DecayCurveAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec"; + }; + + return DecayCurveAutomatedStoppingSpec; + })(); + + StudySpec.MedianAutomatedStoppingSpec = (function() { + + /** + * Properties of a MedianAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IMedianAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration + */ + + /** + * Constructs a new MedianAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a MedianAutomatedStoppingSpec. + * @implements IMedianAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set + */ + function MedianAutomatedStoppingSpec(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]]; + } + + /** + * MedianAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @instance + */ + MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec instance + */ + MedianAutomatedStoppingSpec.create = function create(properties) { + return new MedianAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MedianAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + return writer; + }; + + /** + * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MedianAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MedianAutomatedStoppingSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useElapsedDuration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MedianAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MedianAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MedianAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + return null; + }; + + /** + * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + */ + MedianAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + return message; + }; + + /** + * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MedianAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useElapsedDuration = false; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + return object; + }; + + /** + * Converts this MedianAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + MedianAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MedianAutomatedStoppingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MedianAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec"; + }; + + return MedianAutomatedStoppingSpec; + })(); + + StudySpec.ConvexAutomatedStoppingSpec = (function() { + + /** + * Properties of a ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IConvexAutomatedStoppingSpec + * @property {number|Long|null} [maxStepCount] ConvexAutomatedStoppingSpec maxStepCount + * @property {number|Long|null} [minStepCount] ConvexAutomatedStoppingSpec minStepCount + * @property {number|Long|null} [minMeasurementCount] ConvexAutomatedStoppingSpec minMeasurementCount + * @property {string|null} [learningRateParameterName] ConvexAutomatedStoppingSpec learningRateParameterName + * @property {boolean|null} [useElapsedDuration] ConvexAutomatedStoppingSpec useElapsedDuration + * @property {boolean|null} [updateAllStoppedTrials] ConvexAutomatedStoppingSpec updateAllStoppedTrials + */ + + /** + * Constructs a new ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a ConvexAutomatedStoppingSpec. + * @implements IConvexAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + */ + function ConvexAutomatedStoppingSpec(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]]; + } + + /** + * ConvexAutomatedStoppingSpec maxStepCount. + * @member {number|Long} maxStepCount + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.maxStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec minStepCount. + * @member {number|Long} minStepCount + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.minStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec minMeasurementCount. + * @member {number|Long} minMeasurementCount + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.minMeasurementCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec learningRateParameterName. + * @member {string} learningRateParameterName + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; + + /** + * ConvexAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * ConvexAutomatedStoppingSpec updateAllStoppedTrials. + * @member {boolean|null|undefined} updateAllStoppedTrials + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.updateAllStoppedTrials = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ConvexAutomatedStoppingSpec _updateAllStoppedTrials. + * @member {"updateAllStoppedTrials"|undefined} _updateAllStoppedTrials + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + Object.defineProperty(ConvexAutomatedStoppingSpec.prototype, "_updateAllStoppedTrials", { + get: $util.oneOfGetter($oneOfFields = ["updateAllStoppedTrials"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec instance + */ + ConvexAutomatedStoppingSpec.create = function create(properties) { + return new ConvexAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxStepCount != null && Object.hasOwnProperty.call(message, "maxStepCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxStepCount); + if (message.minStepCount != null && Object.hasOwnProperty.call(message, "minStepCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minStepCount); + if (message.minMeasurementCount != null && Object.hasOwnProperty.call(message, "minMeasurementCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.minMeasurementCount); + if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useElapsedDuration); + if (message.updateAllStoppedTrials != null && Object.hasOwnProperty.call(message, "updateAllStoppedTrials")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.updateAllStoppedTrials); + return writer; + }; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexAutomatedStoppingSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.maxStepCount = reader.int64(); + break; + } + case 2: { + message.minStepCount = reader.int64(); + break; + } + case 3: { + message.minMeasurementCount = reader.int64(); + break; + } + case 4: { + message.learningRateParameterName = reader.string(); + break; + } + case 5: { + message.useElapsedDuration = reader.bool(); + break; + } + case 6: { + message.updateAllStoppedTrials = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConvexAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConvexAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) + if (!$util.isInteger(message.maxStepCount) && !(message.maxStepCount && $util.isInteger(message.maxStepCount.low) && $util.isInteger(message.maxStepCount.high))) + return "maxStepCount: integer|Long expected"; + if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) + if (!$util.isInteger(message.minStepCount) && !(message.minStepCount && $util.isInteger(message.minStepCount.low) && $util.isInteger(message.minStepCount.high))) + return "minStepCount: integer|Long expected"; + if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) + if (!$util.isInteger(message.minMeasurementCount) && !(message.minMeasurementCount && $util.isInteger(message.minMeasurementCount.low) && $util.isInteger(message.minMeasurementCount.high))) + return "minMeasurementCount: integer|Long expected"; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + if (!$util.isString(message.learningRateParameterName)) + return "learningRateParameterName: string expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { + properties._updateAllStoppedTrials = 1; + if (typeof message.updateAllStoppedTrials !== "boolean") + return "updateAllStoppedTrials: boolean expected"; + } + return null; + }; + + /** + * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + */ + ConvexAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); + if (object.maxStepCount != null) + if ($util.Long) + (message.maxStepCount = $util.Long.fromValue(object.maxStepCount)).unsigned = false; + else if (typeof object.maxStepCount === "string") + message.maxStepCount = parseInt(object.maxStepCount, 10); + else if (typeof object.maxStepCount === "number") + message.maxStepCount = object.maxStepCount; + else if (typeof object.maxStepCount === "object") + message.maxStepCount = new $util.LongBits(object.maxStepCount.low >>> 0, object.maxStepCount.high >>> 0).toNumber(); + if (object.minStepCount != null) + if ($util.Long) + (message.minStepCount = $util.Long.fromValue(object.minStepCount)).unsigned = false; + else if (typeof object.minStepCount === "string") + message.minStepCount = parseInt(object.minStepCount, 10); + else if (typeof object.minStepCount === "number") + message.minStepCount = object.minStepCount; + else if (typeof object.minStepCount === "object") + message.minStepCount = new $util.LongBits(object.minStepCount.low >>> 0, object.minStepCount.high >>> 0).toNumber(); + if (object.minMeasurementCount != null) + if ($util.Long) + (message.minMeasurementCount = $util.Long.fromValue(object.minMeasurementCount)).unsigned = false; + else if (typeof object.minMeasurementCount === "string") + message.minMeasurementCount = parseInt(object.minMeasurementCount, 10); + else if (typeof object.minMeasurementCount === "number") + message.minMeasurementCount = object.minMeasurementCount; + else if (typeof object.minMeasurementCount === "object") + message.minMeasurementCount = new $util.LongBits(object.minMeasurementCount.low >>> 0, object.minMeasurementCount.high >>> 0).toNumber(); + if (object.learningRateParameterName != null) + message.learningRateParameterName = String(object.learningRateParameterName); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + if (object.updateAllStoppedTrials != null) + message.updateAllStoppedTrials = Boolean(object.updateAllStoppedTrials); + return message; + }; + + /** + * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConvexAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxStepCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minStepCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minMeasurementCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minMeasurementCount = options.longs === String ? "0" : 0; + object.learningRateParameterName = ""; + object.useElapsedDuration = false; + } + if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) + if (typeof message.maxStepCount === "number") + object.maxStepCount = options.longs === String ? String(message.maxStepCount) : message.maxStepCount; + else + object.maxStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxStepCount) : options.longs === Number ? new $util.LongBits(message.maxStepCount.low >>> 0, message.maxStepCount.high >>> 0).toNumber() : message.maxStepCount; + if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) + if (typeof message.minStepCount === "number") + object.minStepCount = options.longs === String ? String(message.minStepCount) : message.minStepCount; + else + object.minStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.minStepCount) : options.longs === Number ? new $util.LongBits(message.minStepCount.low >>> 0, message.minStepCount.high >>> 0).toNumber() : message.minStepCount; + if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) + if (typeof message.minMeasurementCount === "number") + object.minMeasurementCount = options.longs === String ? String(message.minMeasurementCount) : message.minMeasurementCount; + else + object.minMeasurementCount = options.longs === String ? $util.Long.prototype.toString.call(message.minMeasurementCount) : options.longs === Number ? new $util.LongBits(message.minMeasurementCount.low >>> 0, message.minMeasurementCount.high >>> 0).toNumber() : message.minMeasurementCount; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + object.learningRateParameterName = message.learningRateParameterName; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { + object.updateAllStoppedTrials = message.updateAllStoppedTrials; + if (options.oneofs) + object._updateAllStoppedTrials = "updateAllStoppedTrials"; + } + return object; + }; + + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + ConvexAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConvexAutomatedStoppingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConvexAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec"; + }; + + return ConvexAutomatedStoppingSpec; + })(); + + StudySpec.ConvexStopConfig = (function() { + + /** + * Properties of a ConvexStopConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IConvexStopConfig + * @property {number|Long|null} [maxNumSteps] ConvexStopConfig maxNumSteps + * @property {number|Long|null} [minNumSteps] ConvexStopConfig minNumSteps + * @property {number|Long|null} [autoregressiveOrder] ConvexStopConfig autoregressiveOrder + * @property {string|null} [learningRateParameterName] ConvexStopConfig learningRateParameterName + * @property {boolean|null} [useSeconds] ConvexStopConfig useSeconds + */ + + /** + * Constructs a new ConvexStopConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a ConvexStopConfig. + * @implements IConvexStopConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set + */ + function ConvexStopConfig(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]]; + } + + /** + * ConvexStopConfig maxNumSteps. + * @member {number|Long} maxNumSteps + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.maxNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexStopConfig minNumSteps. + * @member {number|Long} minNumSteps + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.minNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexStopConfig autoregressiveOrder. + * @member {number|Long} autoregressiveOrder + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.autoregressiveOrder = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexStopConfig learningRateParameterName. + * @member {string} learningRateParameterName + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.learningRateParameterName = ""; + + /** + * ConvexStopConfig useSeconds. + * @member {boolean} useSeconds + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.useSeconds = false; + + /** + * Creates a new ConvexStopConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig instance + */ + ConvexStopConfig.create = function create(properties) { + return new ConvexStopConfig(properties); + }; + + /** + * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexStopConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxNumSteps != null && Object.hasOwnProperty.call(message, "maxNumSteps")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxNumSteps); + if (message.minNumSteps != null && Object.hasOwnProperty.call(message, "minNumSteps")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minNumSteps); + if (message.autoregressiveOrder != null && Object.hasOwnProperty.call(message, "autoregressiveOrder")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.autoregressiveOrder); + if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); + if (message.useSeconds != null && Object.hasOwnProperty.call(message, "useSeconds")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useSeconds); + return writer; + }; + + /** + * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexStopConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexStopConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.maxNumSteps = reader.int64(); + break; + } + case 2: { + message.minNumSteps = reader.int64(); + break; + } + case 3: { + message.autoregressiveOrder = reader.int64(); + break; + } + case 4: { + message.learningRateParameterName = reader.string(); + break; + } + case 5: { + message.useSeconds = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexStopConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConvexStopConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConvexStopConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) + if (!$util.isInteger(message.maxNumSteps) && !(message.maxNumSteps && $util.isInteger(message.maxNumSteps.low) && $util.isInteger(message.maxNumSteps.high))) + return "maxNumSteps: integer|Long expected"; + if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) + if (!$util.isInteger(message.minNumSteps) && !(message.minNumSteps && $util.isInteger(message.minNumSteps.low) && $util.isInteger(message.minNumSteps.high))) + return "minNumSteps: integer|Long expected"; + if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) + if (!$util.isInteger(message.autoregressiveOrder) && !(message.autoregressiveOrder && $util.isInteger(message.autoregressiveOrder.low) && $util.isInteger(message.autoregressiveOrder.high))) + return "autoregressiveOrder: integer|Long expected"; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + if (!$util.isString(message.learningRateParameterName)) + return "learningRateParameterName: string expected"; + if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) + if (typeof message.useSeconds !== "boolean") + return "useSeconds: boolean expected"; + return null; + }; + + /** + * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + */ + ConvexStopConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); + if (object.maxNumSteps != null) + if ($util.Long) + (message.maxNumSteps = $util.Long.fromValue(object.maxNumSteps)).unsigned = false; + else if (typeof object.maxNumSteps === "string") + message.maxNumSteps = parseInt(object.maxNumSteps, 10); + else if (typeof object.maxNumSteps === "number") + message.maxNumSteps = object.maxNumSteps; + else if (typeof object.maxNumSteps === "object") + message.maxNumSteps = new $util.LongBits(object.maxNumSteps.low >>> 0, object.maxNumSteps.high >>> 0).toNumber(); + if (object.minNumSteps != null) + if ($util.Long) + (message.minNumSteps = $util.Long.fromValue(object.minNumSteps)).unsigned = false; + else if (typeof object.minNumSteps === "string") + message.minNumSteps = parseInt(object.minNumSteps, 10); + else if (typeof object.minNumSteps === "number") + message.minNumSteps = object.minNumSteps; + else if (typeof object.minNumSteps === "object") + message.minNumSteps = new $util.LongBits(object.minNumSteps.low >>> 0, object.minNumSteps.high >>> 0).toNumber(); + if (object.autoregressiveOrder != null) + if ($util.Long) + (message.autoregressiveOrder = $util.Long.fromValue(object.autoregressiveOrder)).unsigned = false; + else if (typeof object.autoregressiveOrder === "string") + message.autoregressiveOrder = parseInt(object.autoregressiveOrder, 10); + else if (typeof object.autoregressiveOrder === "number") + message.autoregressiveOrder = object.autoregressiveOrder; + else if (typeof object.autoregressiveOrder === "object") + message.autoregressiveOrder = new $util.LongBits(object.autoregressiveOrder.low >>> 0, object.autoregressiveOrder.high >>> 0).toNumber(); + if (object.learningRateParameterName != null) + message.learningRateParameterName = String(object.learningRateParameterName); + if (object.useSeconds != null) + message.useSeconds = Boolean(object.useSeconds); + return message; + }; + + /** + * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} message ConvexStopConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConvexStopConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxNumSteps = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minNumSteps = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.autoregressiveOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.autoregressiveOrder = options.longs === String ? "0" : 0; + object.learningRateParameterName = ""; + object.useSeconds = false; + } + if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) + if (typeof message.maxNumSteps === "number") + object.maxNumSteps = options.longs === String ? String(message.maxNumSteps) : message.maxNumSteps; + else + object.maxNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumSteps) : options.longs === Number ? new $util.LongBits(message.maxNumSteps.low >>> 0, message.maxNumSteps.high >>> 0).toNumber() : message.maxNumSteps; + if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) + if (typeof message.minNumSteps === "number") + object.minNumSteps = options.longs === String ? String(message.minNumSteps) : message.minNumSteps; + else + object.minNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.minNumSteps) : options.longs === Number ? new $util.LongBits(message.minNumSteps.low >>> 0, message.minNumSteps.high >>> 0).toNumber() : message.minNumSteps; + if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) + if (typeof message.autoregressiveOrder === "number") + object.autoregressiveOrder = options.longs === String ? String(message.autoregressiveOrder) : message.autoregressiveOrder; + else + object.autoregressiveOrder = options.longs === String ? $util.Long.prototype.toString.call(message.autoregressiveOrder) : options.longs === Number ? new $util.LongBits(message.autoregressiveOrder.low >>> 0, message.autoregressiveOrder.high >>> 0).toNumber() : message.autoregressiveOrder; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + object.learningRateParameterName = message.learningRateParameterName; + if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) + object.useSeconds = message.useSeconds; + return object; + }; + + /** + * Converts this ConvexStopConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + * @returns {Object.} JSON object + */ + ConvexStopConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConvexStopConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConvexStopConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig"; + }; + + return ConvexStopConfig; + })(); + + StudySpec.TransferLearningConfig = (function() { + + /** + * Properties of a TransferLearningConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface ITransferLearningConfig + * @property {boolean|null} [disableTransferLearning] TransferLearningConfig disableTransferLearning + * @property {Array.|null} [priorStudyNames] TransferLearningConfig priorStudyNames + */ + + /** + * Constructs a new TransferLearningConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a TransferLearningConfig. + * @implements ITransferLearningConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set + */ + function TransferLearningConfig(properties) { + this.priorStudyNames = []; + 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]]; + } + + /** + * TransferLearningConfig disableTransferLearning. + * @member {boolean} disableTransferLearning + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @instance + */ + TransferLearningConfig.prototype.disableTransferLearning = false; + + /** + * TransferLearningConfig priorStudyNames. + * @member {Array.} priorStudyNames + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @instance + */ + TransferLearningConfig.prototype.priorStudyNames = $util.emptyArray; + + /** + * Creates a new TransferLearningConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig instance + */ + TransferLearningConfig.create = function create(properties) { + return new TransferLearningConfig(properties); + }; + + /** + * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransferLearningConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disableTransferLearning != null && Object.hasOwnProperty.call(message, "disableTransferLearning")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableTransferLearning); + if (message.priorStudyNames != null && message.priorStudyNames.length) + for (var i = 0; i < message.priorStudyNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.priorStudyNames[i]); + return writer; + }; + + /** + * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransferLearningConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransferLearningConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.disableTransferLearning = reader.bool(); + break; + } + case 2: { + if (!(message.priorStudyNames && message.priorStudyNames.length)) + message.priorStudyNames = []; + message.priorStudyNames.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransferLearningConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TransferLearningConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TransferLearningConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) + if (typeof message.disableTransferLearning !== "boolean") + return "disableTransferLearning: boolean expected"; + if (message.priorStudyNames != null && message.hasOwnProperty("priorStudyNames")) { + if (!Array.isArray(message.priorStudyNames)) + return "priorStudyNames: array expected"; + for (var i = 0; i < message.priorStudyNames.length; ++i) + if (!$util.isString(message.priorStudyNames[i])) + return "priorStudyNames: string[] expected"; + } + return null; + }; + + /** + * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig + */ + TransferLearningConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig(); + if (object.disableTransferLearning != null) + message.disableTransferLearning = Boolean(object.disableTransferLearning); + if (object.priorStudyNames) { + if (!Array.isArray(object.priorStudyNames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.priorStudyNames: array expected"); + message.priorStudyNames = []; + for (var i = 0; i < object.priorStudyNames.length; ++i) + message.priorStudyNames[i] = String(object.priorStudyNames[i]); + } + return message; + }; + + /** + * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} message TransferLearningConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransferLearningConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.priorStudyNames = []; + if (options.defaults) + object.disableTransferLearning = false; + if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) + object.disableTransferLearning = message.disableTransferLearning; + if (message.priorStudyNames && message.priorStudyNames.length) { + object.priorStudyNames = []; + for (var j = 0; j < message.priorStudyNames.length; ++j) + object.priorStudyNames[j] = message.priorStudyNames[j]; + } + return object; + }; + + /** + * Converts this TransferLearningConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @instance + * @returns {Object.} JSON object + */ + TransferLearningConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TransferLearningConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransferLearningConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig"; + }; + + return TransferLearningConfig; + })(); + + /** + * Algorithm enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.Algorithm + * @enum {number} + * @property {number} ALGORITHM_UNSPECIFIED=0 ALGORITHM_UNSPECIFIED value + * @property {number} GRID_SEARCH=2 GRID_SEARCH value + * @property {number} RANDOM_SEARCH=3 RANDOM_SEARCH value + */ + StudySpec.Algorithm = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ALGORITHM_UNSPECIFIED"] = 0; + values[valuesById[2] = "GRID_SEARCH"] = 2; + values[valuesById[3] = "RANDOM_SEARCH"] = 3; + return values; + })(); + + /** + * ObservationNoise enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise + * @enum {number} + * @property {number} OBSERVATION_NOISE_UNSPECIFIED=0 OBSERVATION_NOISE_UNSPECIFIED value + * @property {number} LOW=1 LOW value + * @property {number} HIGH=2 HIGH value + */ + StudySpec.ObservationNoise = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OBSERVATION_NOISE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LOW"] = 1; + values[valuesById[2] = "HIGH"] = 2; + return values; + })(); + + /** + * MeasurementSelectionType enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType + * @enum {number} + * @property {number} MEASUREMENT_SELECTION_TYPE_UNSPECIFIED=0 MEASUREMENT_SELECTION_TYPE_UNSPECIFIED value + * @property {number} LAST_MEASUREMENT=1 LAST_MEASUREMENT value + * @property {number} BEST_MEASUREMENT=2 BEST_MEASUREMENT value + */ + StudySpec.MeasurementSelectionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LAST_MEASUREMENT"] = 1; + values[valuesById[2] = "BEST_MEASUREMENT"] = 2; + return values; + })(); + + return StudySpec; + })(); + + v1beta1.Measurement = (function() { + + /** + * Properties of a Measurement. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMeasurement + * @property {google.protobuf.IDuration|null} [elapsedDuration] Measurement elapsedDuration + * @property {number|Long|null} [stepCount] Measurement stepCount + * @property {Array.|null} [metrics] Measurement metrics + */ + + /** + * Constructs a new Measurement. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Measurement. + * @implements IMeasurement + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set + */ + function Measurement(properties) { + this.metrics = []; + 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]]; + } + + /** + * Measurement elapsedDuration. + * @member {google.protobuf.IDuration|null|undefined} elapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @instance + */ + Measurement.prototype.elapsedDuration = null; + + /** + * Measurement stepCount. + * @member {number|Long} stepCount + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @instance + */ + Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Measurement metrics. + * @member {Array.} metrics + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @instance + */ + Measurement.prototype.metrics = $util.emptyArray; + + /** + * Creates a new Measurement instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement instance + */ + Measurement.create = function create(properties) { + return new Measurement(properties); + }; + + /** + * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Measurement.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.elapsedDuration != null && Object.hasOwnProperty.call(message, "elapsedDuration")) + $root.google.protobuf.Duration.encode(message.elapsedDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.stepCount != null && Object.hasOwnProperty.call(message, "stepCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stepCount); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Measurement.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Measurement message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Measurement.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.stepCount = reader.int64(); + break; + } + case 3: { + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.aiplatform.v1beta1.Measurement.Metric.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Measurement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Measurement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Measurement message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Measurement.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) { + var error = $root.google.protobuf.Duration.verify(message.elapsedDuration); + if (error) + return "elapsedDuration." + error; + } + if (message.stepCount != null && message.hasOwnProperty("stepCount")) + if (!$util.isInteger(message.stepCount) && !(message.stepCount && $util.isInteger(message.stepCount.low) && $util.isInteger(message.stepCount.high))) + return "stepCount: integer|Long expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + return null; + }; + + /** + * Creates a Measurement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + */ + Measurement.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); + if (object.elapsedDuration != null) { + if (typeof object.elapsedDuration !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.elapsedDuration: object expected"); + message.elapsedDuration = $root.google.protobuf.Duration.fromObject(object.elapsedDuration); + } + if (object.stepCount != null) + if ($util.Long) + (message.stepCount = $util.Long.fromValue(object.stepCount)).unsigned = false; + else if (typeof object.stepCount === "string") + message.stepCount = parseInt(object.stepCount, 10); + else if (typeof object.stepCount === "number") + message.stepCount = object.stepCount; + else if (typeof object.stepCount === "object") + message.stepCount = new $util.LongBits(object.stepCount.low >>> 0, object.stepCount.high >>> 0).toNumber(); + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: object expected"); + message.metrics[i] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.fromObject(object.metrics[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement} message Measurement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Measurement.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.metrics = []; + if (options.defaults) { + object.elapsedDuration = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.stepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.stepCount = options.longs === String ? "0" : 0; + } + if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) + object.elapsedDuration = $root.google.protobuf.Duration.toObject(message.elapsedDuration, options); + if (message.stepCount != null && message.hasOwnProperty("stepCount")) + if (typeof message.stepCount === "number") + object.stepCount = options.longs === String ? String(message.stepCount) : message.stepCount; + else + object.stepCount = options.longs === String ? $util.Long.prototype.toString.call(message.stepCount) : options.longs === Number ? new $util.LongBits(message.stepCount.low >>> 0, message.stepCount.high >>> 0).toNumber() : message.stepCount; + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.toObject(message.metrics[j], options); + } + return object; + }; + + /** + * Converts this Measurement to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @instance + * @returns {Object.} JSON object + */ + Measurement.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Measurement + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Measurement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Measurement"; + }; + + Measurement.Metric = (function() { + + /** + * Properties of a Metric. + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @interface IMetric + * @property {string|null} [metricId] Metric metricId + * @property {number|null} [value] Metric value + */ + + /** + * Constructs a new Metric. + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set + */ + function Metric(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]]; + } + + /** + * Metric metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + */ + Metric.prototype.metricId = ""; + + /** + * Metric value. + * @member {number} value + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + */ + Metric.prototype.value = 0; + + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; + + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); + return writer; + }; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricId = reader.string(); + break; + } + case 2: { + message.value = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metric message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement.Metric) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); + if (object.metricId != null) + message.metricId = String(object.metricId); + if (object.value != null) + message.value = Number(object.value); + return message; + }; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.value = 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + return object; + }; + + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Metric + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Measurement.Metric"; + }; + + return Metric; + })(); + + return Measurement; + })(); + + v1beta1.Index = (function() { + + /** + * Properties of an Index. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndex + * @property {string|null} [name] Index name + * @property {string|null} [displayName] Index displayName + * @property {string|null} [description] Index description + * @property {string|null} [metadataSchemaUri] Index metadataSchemaUri + * @property {google.protobuf.IValue|null} [metadata] Index metadata + * @property {Array.|null} [deployedIndexes] Index deployedIndexes + * @property {string|null} [etag] Index etag + * @property {Object.|null} [labels] Index labels + * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime + * @property {google.cloud.aiplatform.v1beta1.IIndexStats|null} [indexStats] Index indexStats + * @property {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod + */ + + /** + * Constructs a new Index. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an Index. + * @implements IIndex + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set + */ + function Index(properties) { + this.deployedIndexes = []; + this.labels = {}; + 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]]; + } + + /** + * Index name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.name = ""; + + /** + * Index displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.displayName = ""; + + /** + * Index description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.description = ""; + + /** + * Index metadataSchemaUri. + * @member {string} metadataSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.metadataSchemaUri = ""; + + /** + * Index metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.metadata = null; + + /** + * Index deployedIndexes. + * @member {Array.} deployedIndexes + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.deployedIndexes = $util.emptyArray; + + /** + * Index etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.etag = ""; + + /** + * Index labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.labels = $util.emptyObject; + + /** + * Index createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.createTime = null; + + /** + * Index updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.updateTime = null; + + /** + * Index indexStats. + * @member {google.cloud.aiplatform.v1beta1.IIndexStats|null|undefined} indexStats + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.indexStats = null; + + /** + * Index indexUpdateMethod. + * @member {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod} indexUpdateMethod + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.indexUpdateMethod = 0; + + /** + * Creates a new Index instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Index} Index instance + */ + Index.create = function create(properties) { + return new Index(properties); + }; + + /** + * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Index.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.metadataSchemaUri); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.deployedIndexes != null && message.deployedIndexes.length) + for (var i = 0; i < message.deployedIndexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.encode(message.deployedIndexes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.indexStats != null && Object.hasOwnProperty.call(message, "indexStats")) + $root.google.cloud.aiplatform.v1beta1.IndexStats.encode(message.indexStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.indexUpdateMethod != null && Object.hasOwnProperty.call(message, "indexUpdateMethod")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); + return writer; + }; + + /** + * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Index.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Index message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Index.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Index(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + message.metadataSchemaUri = reader.string(); + break; + } + case 6: { + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 7: { + if (!(message.deployedIndexes && message.deployedIndexes.length)) + message.deployedIndexes = []; + message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.decode(reader, reader.uint32())); + break; + } + case 8: { + message.etag = reader.string(); + break; + } + case 9: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 10: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.decode(reader, reader.uint32()); + break; + } + case 16: { + message.indexUpdateMethod = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Index message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Index.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Index message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Index.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + if (!$util.isString(message.metadataSchemaUri)) + return "metadataSchemaUri: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { + if (!Array.isArray(message.deployedIndexes)) + return "deployedIndexes: array expected"; + for (var i = 0; i < message.deployedIndexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify(message.deployedIndexes[i]); + if (error) + return "deployedIndexes." + error; + } + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.indexStats != null && message.hasOwnProperty("indexStats")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexStats.verify(message.indexStats); + if (error) + return "indexStats." + error; + } + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + switch (message.indexUpdateMethod) { + default: + return "indexUpdateMethod: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an Index message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Index} Index + */ + Index.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Index) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Index(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.metadataSchemaUri != null) + message.metadataSchemaUri = String(object.metadataSchemaUri); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + } + if (object.deployedIndexes) { + if (!Array.isArray(object.deployedIndexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: array expected"); + message.deployedIndexes = []; + for (var i = 0; i < object.deployedIndexes.length; ++i) { + if (typeof object.deployedIndexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: object expected"); + message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.fromObject(object.deployedIndexes[i]); + } + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.indexStats != null) { + if (typeof object.indexStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.indexStats: object expected"); + message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.fromObject(object.indexStats); + } + switch (object.indexUpdateMethod) { + default: + if (typeof object.indexUpdateMethod === "number") { + message.indexUpdateMethod = object.indexUpdateMethod; + break; + } + break; + case "INDEX_UPDATE_METHOD_UNSPECIFIED": + case 0: + message.indexUpdateMethod = 0; + break; + case "BATCH_UPDATE": + case 1: + message.indexUpdateMethod = 1; + break; + case "STREAM_UPDATE": + case 2: + message.indexUpdateMethod = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an Index message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {google.cloud.aiplatform.v1beta1.Index} message Index + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Index.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.deployedIndexes = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.metadataSchemaUri = ""; + object.metadata = null; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.indexStats = null; + object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + object.metadataSchemaUri = message.metadataSchemaUri; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); + if (message.deployedIndexes && message.deployedIndexes.length) { + object.deployedIndexes = []; + for (var j = 0; j < message.deployedIndexes.length; ++j) + object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.toObject(message.deployedIndexes[j], options); + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.indexStats != null && message.hasOwnProperty("indexStats")) + object.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.toObject(message.indexStats, options); + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] === undefined ? message.indexUpdateMethod : $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; + return object; + }; + + /** + * Converts this Index to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + * @returns {Object.} JSON object + */ + Index.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Index + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Index.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Index"; + }; + + /** + * IndexUpdateMethod enum. + * @name google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod + * @enum {number} + * @property {number} INDEX_UPDATE_METHOD_UNSPECIFIED=0 INDEX_UPDATE_METHOD_UNSPECIFIED value + * @property {number} BATCH_UPDATE=1 BATCH_UPDATE value + * @property {number} STREAM_UPDATE=2 STREAM_UPDATE value + */ + Index.IndexUpdateMethod = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDEX_UPDATE_METHOD_UNSPECIFIED"] = 0; + values[valuesById[1] = "BATCH_UPDATE"] = 1; + values[valuesById[2] = "STREAM_UPDATE"] = 2; + return values; + })(); + + return Index; + })(); + + v1beta1.IndexDatapoint = (function() { + + /** + * Properties of an IndexDatapoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexDatapoint + * @property {string|null} [datapointId] IndexDatapoint datapointId + * @property {Array.|null} [featureVector] IndexDatapoint featureVector + * @property {Array.|null} [restricts] IndexDatapoint restricts + * @property {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null} [crowdingTag] IndexDatapoint crowdingTag + */ + + /** + * Constructs a new IndexDatapoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexDatapoint. + * @implements IIndexDatapoint + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set + */ + function IndexDatapoint(properties) { + this.featureVector = []; + this.restricts = []; + 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]]; + } + + /** + * IndexDatapoint datapointId. + * @member {string} datapointId + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.datapointId = ""; + + /** + * IndexDatapoint featureVector. + * @member {Array.} featureVector + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.featureVector = $util.emptyArray; + + /** + * IndexDatapoint restricts. + * @member {Array.} restricts + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.restricts = $util.emptyArray; + + /** + * IndexDatapoint crowdingTag. + * @member {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null|undefined} crowdingTag + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.crowdingTag = null; + + /** + * Creates a new IndexDatapoint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint instance + */ + IndexDatapoint.create = function create(properties) { + return new IndexDatapoint(properties); + }; + + /** + * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datapointId != null && Object.hasOwnProperty.call(message, "datapointId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datapointId); + if (message.featureVector != null && message.featureVector.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.featureVector.length; ++i) + writer.float(message.featureVector[i]); + writer.ldelim(); + } + if (message.restricts != null && message.restricts.length) + for (var i = 0; i < message.restricts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.encode(message.restricts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.crowdingTag != null && Object.hasOwnProperty.call(message, "crowdingTag")) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.encode(message.crowdingTag, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.datapointId = reader.string(); + break; + } + case 2: { + if (!(message.featureVector && message.featureVector.length)) + message.featureVector = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.featureVector.push(reader.float()); + } else + message.featureVector.push(reader.float()); + break; + } + case 4: { + if (!(message.restricts && message.restricts.length)) + message.restricts = []; + message.restricts.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.decode(reader, reader.uint32())); + break; + } + case 5: { + message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexDatapoint message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexDatapoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + if (!$util.isString(message.datapointId)) + return "datapointId: string expected"; + if (message.featureVector != null && message.hasOwnProperty("featureVector")) { + if (!Array.isArray(message.featureVector)) + return "featureVector: array expected"; + for (var i = 0; i < message.featureVector.length; ++i) + if (typeof message.featureVector[i] !== "number") + return "featureVector: number[] expected"; + } + if (message.restricts != null && message.hasOwnProperty("restricts")) { + if (!Array.isArray(message.restricts)) + return "restricts: array expected"; + for (var i = 0; i < message.restricts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify(message.restricts[i]); + if (error) + return "restricts." + error; + } + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify(message.crowdingTag); + if (error) + return "crowdingTag." + error; + } + return null; + }; + + /** + * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + */ + IndexDatapoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint(); + if (object.datapointId != null) + message.datapointId = String(object.datapointId); + if (object.featureVector) { + if (!Array.isArray(object.featureVector)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.featureVector: array expected"); + message.featureVector = []; + for (var i = 0; i < object.featureVector.length; ++i) + message.featureVector[i] = Number(object.featureVector[i]); + } + if (object.restricts) { + if (!Array.isArray(object.restricts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: array expected"); + message.restricts = []; + for (var i = 0; i < object.restricts.length; ++i) { + if (typeof object.restricts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: object expected"); + message.restricts[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.fromObject(object.restricts[i]); + } + } + if (object.crowdingTag != null) { + if (typeof object.crowdingTag !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.crowdingTag: object expected"); + message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.fromObject(object.crowdingTag); + } + return message; + }; + + /** + * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint} message IndexDatapoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexDatapoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.featureVector = []; + object.restricts = []; + } + if (options.defaults) { + object.datapointId = ""; + object.crowdingTag = null; + } + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + object.datapointId = message.datapointId; + if (message.featureVector && message.featureVector.length) { + object.featureVector = []; + for (var j = 0; j < message.featureVector.length; ++j) + object.featureVector[j] = options.json && !isFinite(message.featureVector[j]) ? String(message.featureVector[j]) : message.featureVector[j]; + } + if (message.restricts && message.restricts.length) { + object.restricts = []; + for (var j = 0; j < message.restricts.length; ++j) + object.restricts[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.toObject(message.restricts[j], options); + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) + object.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.toObject(message.crowdingTag, options); + return object; + }; + + /** + * Converts this IndexDatapoint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + * @returns {Object.} JSON object + */ + IndexDatapoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexDatapoint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexDatapoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint"; + }; + + IndexDatapoint.Restriction = (function() { + + /** + * Properties of a Restriction. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @interface IRestriction + * @property {string|null} [namespace] Restriction namespace + * @property {Array.|null} [allowList] Restriction allowList + * @property {Array.|null} [denyList] Restriction denyList + */ + + /** + * Constructs a new Restriction. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @classdesc Represents a Restriction. + * @implements IRestriction + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set + */ + function Restriction(properties) { + this.allowList = []; + this.denyList = []; + 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]]; + } + + /** + * Restriction namespace. + * @member {string} namespace + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.namespace = ""; + + /** + * Restriction allowList. + * @member {Array.} allowList + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.allowList = $util.emptyArray; + + /** + * Restriction denyList. + * @member {Array.} denyList + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.denyList = $util.emptyArray; + + /** + * Creates a new Restriction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction instance + */ + Restriction.create = function create(properties) { + return new Restriction(properties); + }; + + /** + * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); + if (message.allowList != null && message.allowList.length) + for (var i = 0; i < message.allowList.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowList[i]); + if (message.denyList != null && message.denyList.length) + for (var i = 0; i < message.denyList.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.denyList[i]); + return writer; + }; + + /** + * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Restriction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namespace = reader.string(); + break; + } + case 2: { + if (!(message.allowList && message.allowList.length)) + message.allowList = []; + message.allowList.push(reader.string()); + break; + } + case 3: { + if (!(message.denyList && message.denyList.length)) + message.denyList = []; + message.denyList.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Restriction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Restriction message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Restriction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + if (message.allowList != null && message.hasOwnProperty("allowList")) { + if (!Array.isArray(message.allowList)) + return "allowList: array expected"; + for (var i = 0; i < message.allowList.length; ++i) + if (!$util.isString(message.allowList[i])) + return "allowList: string[] expected"; + } + if (message.denyList != null && message.hasOwnProperty("denyList")) { + if (!Array.isArray(message.denyList)) + return "denyList: array expected"; + for (var i = 0; i < message.denyList.length; ++i) + if (!$util.isString(message.denyList[i])) + return "denyList: string[] expected"; + } + return null; + }; + + /** + * Creates a Restriction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction + */ + Restriction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction(); + if (object.namespace != null) + message.namespace = String(object.namespace); + if (object.allowList) { + if (!Array.isArray(object.allowList)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.allowList: array expected"); + message.allowList = []; + for (var i = 0; i < object.allowList.length; ++i) + message.allowList[i] = String(object.allowList[i]); + } + if (object.denyList) { + if (!Array.isArray(object.denyList)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.denyList: array expected"); + message.denyList = []; + for (var i = 0; i < object.denyList.length; ++i) + message.denyList[i] = String(object.denyList[i]); + } + return message; + }; + + /** + * Creates a plain object from a Restriction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} message Restriction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Restriction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.allowList = []; + object.denyList = []; + } + if (options.defaults) + object.namespace = ""; + if (message.namespace != null && message.hasOwnProperty("namespace")) + object.namespace = message.namespace; + if (message.allowList && message.allowList.length) { + object.allowList = []; + for (var j = 0; j < message.allowList.length; ++j) + object.allowList[j] = message.allowList[j]; + } + if (message.denyList && message.denyList.length) { + object.denyList = []; + for (var j = 0; j < message.denyList.length; ++j) + object.denyList[j] = message.denyList[j]; + } + return object; + }; + + /** + * Converts this Restriction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + * @returns {Object.} JSON object + */ + Restriction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Restriction + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Restriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction"; + }; + + return Restriction; + })(); + + IndexDatapoint.CrowdingTag = (function() { + + /** + * Properties of a CrowdingTag. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @interface ICrowdingTag + * @property {string|null} [crowdingAttribute] CrowdingTag crowdingAttribute + */ + + /** + * Constructs a new CrowdingTag. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @classdesc Represents a CrowdingTag. + * @implements ICrowdingTag + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + */ + function CrowdingTag(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]]; + } + + /** + * CrowdingTag crowdingAttribute. + * @member {string} crowdingAttribute + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @instance + */ + CrowdingTag.prototype.crowdingAttribute = ""; + + /** + * Creates a new CrowdingTag instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag instance + */ + CrowdingTag.create = function create(properties) { + return new CrowdingTag(properties); + }; + + /** + * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.crowdingAttribute != null && Object.hasOwnProperty.call(message, "crowdingAttribute")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.crowdingAttribute); + return writer; + }; + + /** + * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.crowdingAttribute = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CrowdingTag message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CrowdingTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + if (!$util.isString(message.crowdingAttribute)) + return "crowdingAttribute: string expected"; + return null; + }; + + /** + * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag + */ + CrowdingTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag(); + if (object.crowdingAttribute != null) + message.crowdingAttribute = String(object.crowdingAttribute); + return message; + }; + + /** + * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} message CrowdingTag + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CrowdingTag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.crowdingAttribute = ""; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + object.crowdingAttribute = message.crowdingAttribute; + return object; + }; + + /** + * Converts this CrowdingTag to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @instance + * @returns {Object.} JSON object + */ + CrowdingTag.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CrowdingTag + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CrowdingTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag"; + }; + + return CrowdingTag; + })(); + + return IndexDatapoint; + })(); + + v1beta1.IndexStats = (function() { + + /** + * Properties of an IndexStats. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexStats + * @property {number|Long|null} [vectorsCount] IndexStats vectorsCount + * @property {number|null} [shardsCount] IndexStats shardsCount + */ + + /** + * Constructs a new IndexStats. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexStats. + * @implements IIndexStats + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set + */ + function IndexStats(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]]; + } + + /** + * IndexStats vectorsCount. + * @member {number|Long} vectorsCount + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @instance + */ + IndexStats.prototype.vectorsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * IndexStats shardsCount. + * @member {number} shardsCount + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @instance + */ + IndexStats.prototype.shardsCount = 0; + + /** + * Creates a new IndexStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats instance + */ + IndexStats.create = function create(properties) { + return new IndexStats(properties); + }; + + /** + * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vectorsCount != null && Object.hasOwnProperty.call(message, "vectorsCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.vectorsCount); + if (message.shardsCount != null && Object.hasOwnProperty.call(message, "shardsCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shardsCount); + return writer; + }; + + /** + * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.vectorsCount = reader.int64(); + break; + } + case 2: { + message.shardsCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (!$util.isInteger(message.vectorsCount) && !(message.vectorsCount && $util.isInteger(message.vectorsCount.low) && $util.isInteger(message.vectorsCount.high))) + return "vectorsCount: integer|Long expected"; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + if (!$util.isInteger(message.shardsCount)) + return "shardsCount: integer expected"; + return null; + }; + + /** + * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + */ + IndexStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexStats) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexStats(); + if (object.vectorsCount != null) + if ($util.Long) + (message.vectorsCount = $util.Long.fromValue(object.vectorsCount)).unsigned = false; + else if (typeof object.vectorsCount === "string") + message.vectorsCount = parseInt(object.vectorsCount, 10); + else if (typeof object.vectorsCount === "number") + message.vectorsCount = object.vectorsCount; + else if (typeof object.vectorsCount === "object") + message.vectorsCount = new $util.LongBits(object.vectorsCount.low >>> 0, object.vectorsCount.high >>> 0).toNumber(); + if (object.shardsCount != null) + message.shardsCount = object.shardsCount | 0; + return message; + }; + + /** + * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexStats} message IndexStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.vectorsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.vectorsCount = options.longs === String ? "0" : 0; + object.shardsCount = 0; + } + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (typeof message.vectorsCount === "number") + object.vectorsCount = options.longs === String ? String(message.vectorsCount) : message.vectorsCount; + else + object.vectorsCount = options.longs === String ? $util.Long.prototype.toString.call(message.vectorsCount) : options.longs === Number ? new $util.LongBits(message.vectorsCount.low >>> 0, message.vectorsCount.high >>> 0).toNumber() : message.vectorsCount; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + object.shardsCount = message.shardsCount; + return object; + }; + + /** + * Converts this IndexStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @instance + * @returns {Object.} JSON object + */ + IndexStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexStats + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexStats"; + }; + + return IndexStats; + })(); + + v1beta1.IndexEndpoint = (function() { + + /** + * Properties of an IndexEndpoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexEndpoint + * @property {string|null} [name] IndexEndpoint name + * @property {string|null} [displayName] IndexEndpoint displayName + * @property {string|null} [description] IndexEndpoint description + * @property {Array.|null} [deployedIndexes] IndexEndpoint deployedIndexes + * @property {string|null} [etag] IndexEndpoint etag + * @property {Object.|null} [labels] IndexEndpoint labels + * @property {google.protobuf.ITimestamp|null} [createTime] IndexEndpoint createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime + * @property {string|null} [network] IndexEndpoint network + * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect + * @property {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig|null} [privateServiceConnectConfig] IndexEndpoint privateServiceConnectConfig + */ + + /** + * Constructs a new IndexEndpoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexEndpoint. + * @implements IIndexEndpoint + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set + */ + function IndexEndpoint(properties) { + this.deployedIndexes = []; + this.labels = {}; + 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]]; + } + + /** + * IndexEndpoint name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.name = ""; + + /** + * IndexEndpoint displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.displayName = ""; + + /** + * IndexEndpoint description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.description = ""; + + /** + * IndexEndpoint deployedIndexes. + * @member {Array.} deployedIndexes + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.deployedIndexes = $util.emptyArray; + + /** + * IndexEndpoint etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.etag = ""; + + /** + * IndexEndpoint labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.labels = $util.emptyObject; + + /** + * IndexEndpoint createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.createTime = null; + + /** + * IndexEndpoint updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.updateTime = null; + + /** + * IndexEndpoint network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.network = ""; + + /** + * IndexEndpoint enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.enablePrivateServiceConnect = false; + + /** + * IndexEndpoint privateServiceConnectConfig. + * @member {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig|null|undefined} privateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.privateServiceConnectConfig = null; + + /** + * Creates a new IndexEndpoint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint instance + */ + IndexEndpoint.create = function create(properties) { + return new IndexEndpoint(properties); + }; + + /** + * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexEndpoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.deployedIndexes != null && message.deployedIndexes.length) + for (var i = 0; i < message.deployedIndexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); + if (message.privateServiceConnectConfig != null && Object.hasOwnProperty.call(message, "privateServiceConnectConfig")) + $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.encode(message.privateServiceConnectConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexEndpoint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexEndpoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + if (!(message.deployedIndexes && message.deployedIndexes.length)) + message.deployedIndexes = []; + message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32())); + break; + } + case 5: { + message.etag = reader.string(); + break; + } + case 6: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.network = reader.string(); + break; + } + case 10: { + message.enablePrivateServiceConnect = reader.bool(); + break; + } + case 12: { + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexEndpoint message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexEndpoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { + if (!Array.isArray(message.deployedIndexes)) + return "deployedIndexes: array expected"; + for (var i = 0; i < message.deployedIndexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndexes[i]); + if (error) + return "deployedIndexes." + error; + } + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify(message.privateServiceConnectConfig); + if (error) + return "privateServiceConnectConfig." + error; + } + return null; + }; + + /** + * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + */ + IndexEndpoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexEndpoint) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.deployedIndexes) { + if (!Array.isArray(object.deployedIndexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: array expected"); + message.deployedIndexes = []; + for (var i = 0; i < object.deployedIndexes.length; ++i) { + if (typeof object.deployedIndexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: object expected"); + message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndexes[i]); + } + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.network != null) + message.network = String(object.network); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.privateServiceConnectConfig != null) { + if (typeof object.privateServiceConnectConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.privateServiceConnectConfig: object expected"); + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.fromObject(object.privateServiceConnectConfig); + } + return message; + }; + + /** + * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} message IndexEndpoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexEndpoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.deployedIndexes = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.network = ""; + object.enablePrivateServiceConnect = false; + object.privateServiceConnectConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.deployedIndexes && message.deployedIndexes.length) { + object.deployedIndexes = []; + for (var j = 0; j < message.deployedIndexes.length; ++j) + object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndexes[j], options); + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) + object.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.toObject(message.privateServiceConnectConfig, options); + return object; + }; + + /** + * Converts this IndexEndpoint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + * @returns {Object.} JSON object + */ + IndexEndpoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexEndpoint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexEndpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexEndpoint"; + }; + + return IndexEndpoint; + })(); + + v1beta1.DeployedIndex = (function() { + + /** + * Properties of a DeployedIndex. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployedIndex + * @property {string|null} [id] DeployedIndex id + * @property {string|null} [index] DeployedIndex index + * @property {string|null} [displayName] DeployedIndex displayName + * @property {google.protobuf.ITimestamp|null} [createTime] DeployedIndex createTime + * @property {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null} [privateEndpoints] DeployedIndex privateEndpoints + * @property {google.protobuf.ITimestamp|null} [indexSyncTime] DeployedIndex indexSyncTime + * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] DeployedIndex automaticResources + * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] DeployedIndex dedicatedResources + * @property {boolean|null} [enableAccessLogging] DeployedIndex enableAccessLogging + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null} [deployedIndexAuthConfig] DeployedIndex deployedIndexAuthConfig + * @property {Array.|null} [reservedIpRanges] DeployedIndex reservedIpRanges + * @property {string|null} [deploymentGroup] DeployedIndex deploymentGroup + */ + + /** + * Constructs a new DeployedIndex. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployedIndex. + * @implements IDeployedIndex + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set + */ + function DeployedIndex(properties) { + this.reservedIpRanges = []; + 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]]; + } + + /** + * DeployedIndex id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.id = ""; + + /** + * DeployedIndex index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.index = ""; + + /** + * DeployedIndex displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.displayName = ""; + + /** + * DeployedIndex createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.createTime = null; + + /** + * DeployedIndex privateEndpoints. + * @member {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null|undefined} privateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.privateEndpoints = null; + + /** + * DeployedIndex indexSyncTime. + * @member {google.protobuf.ITimestamp|null|undefined} indexSyncTime + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.indexSyncTime = null; - /** - * Verifies an IntValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) - return "values: integer|Long[] expected"; - } - return null; - }; + /** + * DeployedIndex automaticResources. + * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.automaticResources = null; - /** - * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - */ - IntValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - if ($util.Long) - (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; - else if (typeof object.values[i] === "string") - message.values[i] = parseInt(object.values[i], 10); - else if (typeof object.values[i] === "number") - message.values[i] = object.values[i]; - else if (typeof object.values[i] === "object") - message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); - } - return message; - }; + /** + * DeployedIndex dedicatedResources. + * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.dedicatedResources = null; - /** - * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} message IntValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - if (typeof message.values[j] === "number") - object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; - else - object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; - } - return object; - }; + /** + * DeployedIndex enableAccessLogging. + * @member {boolean} enableAccessLogging + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.enableAccessLogging = false; - /** - * Converts this IntValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @instance - * @returns {Object.} JSON object - */ - IntValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * DeployedIndex deployedIndexAuthConfig. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null|undefined} deployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.deployedIndexAuthConfig = null; - /** - * Gets the default type url for IntValueCondition - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IntValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition"; - }; + /** + * DeployedIndex reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.reservedIpRanges = $util.emptyArray; - return IntValueCondition; - })(); + /** + * DeployedIndex deploymentGroup. + * @member {string} deploymentGroup + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.deploymentGroup = ""; - ConditionalParameterSpec.CategoricalValueCondition = (function() { + /** + * Creates a new DeployedIndex instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex instance + */ + DeployedIndex.create = function create(properties) { + return new DeployedIndex(properties); + }; - /** - * Properties of a CategoricalValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface ICategoricalValueCondition - * @property {Array.|null} [values] CategoricalValueCondition values - */ + /** + * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndex.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.index); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) + $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.indexSyncTime != null && Object.hasOwnProperty.call(message, "indexSyncTime")) + $root.google.protobuf.Timestamp.encode(message.indexSyncTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) + $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableAccessLogging); + if (message.deployedIndexAuthConfig != null && Object.hasOwnProperty.call(message, "deployedIndexAuthConfig")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.encode(message.deployedIndexAuthConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedIpRanges != null && message.reservedIpRanges.length) + for (var i = 0; i < message.reservedIpRanges.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedIpRanges[i]); + if (message.deploymentGroup != null && Object.hasOwnProperty.call(message, "deploymentGroup")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.deploymentGroup); + if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) + $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + return writer; + }; - /** - * Constructs a new CategoricalValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @classdesc Represents a CategoricalValueCondition. - * @implements ICategoricalValueCondition - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set - */ - function CategoricalValueCondition(properties) { - this.values = []; - 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]]; + /** + * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeployedIndex message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndex.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.string(); + break; + } + case 2: { + message.index = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.decode(reader, reader.uint32()); + break; + } + case 6: { + message.indexSyncTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); + break; + } + case 16: { + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); + break; + } + case 8: { + message.enableAccessLogging = reader.bool(); + break; + } + case 9: { + message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.decode(reader, reader.uint32()); + break; + } + case 10: { + if (!(message.reservedIpRanges && message.reservedIpRanges.length)) + message.reservedIpRanges = []; + message.reservedIpRanges.push(reader.string()); + break; + } + case 11: { + message.deploymentGroup = reader.string(); + break; } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * CategoricalValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @instance - */ - CategoricalValueCondition.prototype.values = $util.emptyArray; + /** + * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndex.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new CategoricalValueCondition instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition instance - */ - CategoricalValueCondition.create = function create(properties) { - return new CategoricalValueCondition(properties); - }; + /** + * Verifies a DeployedIndex message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployedIndex.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify(message.privateEndpoints); + if (error) + return "privateEndpoints." + error; + } + if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.indexSyncTime); + if (error) + return "indexSyncTime." + error; + } + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { + var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); + if (error) + return "automaticResources." + error; + } + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { + var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); + if (error) + return "dedicatedResources." + error; + } + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + if (typeof message.enableAccessLogging !== "boolean") + return "enableAccessLogging: boolean expected"; + if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify(message.deployedIndexAuthConfig); + if (error) + return "deployedIndexAuthConfig." + error; + } + if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { + if (!Array.isArray(message.reservedIpRanges)) + return "reservedIpRanges: array expected"; + for (var i = 0; i < message.reservedIpRanges.length; ++i) + if (!$util.isString(message.reservedIpRanges[i])) + return "reservedIpRanges: string[] expected"; + } + if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) + if (!$util.isString(message.deploymentGroup)) + return "deploymentGroup: string expected"; + return null; + }; - /** - * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - return writer; - }; + /** + * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + */ + DeployedIndex.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndex) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); + if (object.id != null) + message.id = String(object.id); + if (object.index != null) + message.index = String(object.index); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.privateEndpoints != null) { + if (typeof object.privateEndpoints !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.privateEndpoints: object expected"); + message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.fromObject(object.privateEndpoints); + } + if (object.indexSyncTime != null) { + if (typeof object.indexSyncTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.indexSyncTime: object expected"); + message.indexSyncTime = $root.google.protobuf.Timestamp.fromObject(object.indexSyncTime); + } + if (object.automaticResources != null) { + if (typeof object.automaticResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.automaticResources: object expected"); + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); + } + if (object.dedicatedResources != null) { + if (typeof object.dedicatedResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.dedicatedResources: object expected"); + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); + } + if (object.enableAccessLogging != null) + message.enableAccessLogging = Boolean(object.enableAccessLogging); + if (object.deployedIndexAuthConfig != null) { + if (typeof object.deployedIndexAuthConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.deployedIndexAuthConfig: object expected"); + message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.fromObject(object.deployedIndexAuthConfig); + } + if (object.reservedIpRanges) { + if (!Array.isArray(object.reservedIpRanges)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.reservedIpRanges: array expected"); + message.reservedIpRanges = []; + for (var i = 0; i < object.reservedIpRanges.length; ++i) + message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + } + if (object.deploymentGroup != null) + message.deploymentGroup = String(object.deploymentGroup); + return message; + }; - /** - * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueCondition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployedIndex} message DeployedIndex + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployedIndex.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.reservedIpRanges = []; + if (options.defaults) { + object.id = ""; + object.index = ""; + object.displayName = ""; + object.createTime = null; + object.privateEndpoints = null; + object.indexSyncTime = null; + object.automaticResources = null; + object.enableAccessLogging = false; + object.deployedIndexAuthConfig = null; + object.deploymentGroup = ""; + object.dedicatedResources = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) + object.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.toObject(message.privateEndpoints, options); + if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) + object.indexSyncTime = $root.google.protobuf.Timestamp.toObject(message.indexSyncTime, options); + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) + object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + object.enableAccessLogging = message.enableAccessLogging; + if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) + object.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.toObject(message.deployedIndexAuthConfig, options); + if (message.reservedIpRanges && message.reservedIpRanges.length) { + object.reservedIpRanges = []; + for (var j = 0; j < message.reservedIpRanges.length; ++j) + object.reservedIpRanges[j] = message.reservedIpRanges[j]; + } + if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) + object.deploymentGroup = message.deploymentGroup; + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) + object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); + return object; + }; - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Converts this DeployedIndex to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + * @returns {Object.} JSON object + */ + DeployedIndex.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Gets the default type url for DeployedIndex + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployedIndex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndex"; + }; - /** - * Verifies a CategoricalValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CategoricalValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - return null; - }; + return DeployedIndex; + })(); - /** - * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - */ - CategoricalValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); - } - return message; - }; + v1beta1.DeployedIndexAuthConfig = (function() { - /** - * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} message CategoricalValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CategoricalValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } - return object; - }; + /** + * Properties of a DeployedIndexAuthConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployedIndexAuthConfig + * @property {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider + */ - /** - * Converts this CategoricalValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @instance - * @returns {Object.} JSON object - */ - CategoricalValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new DeployedIndexAuthConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployedIndexAuthConfig. + * @implements IDeployedIndexAuthConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set + */ + function DeployedIndexAuthConfig(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]]; + } - /** - * Gets the default type url for CategoricalValueCondition - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CategoricalValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition"; - }; + /** + * DeployedIndexAuthConfig authProvider. + * @member {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @instance + */ + DeployedIndexAuthConfig.prototype.authProvider = null; - return CategoricalValueCondition; - })(); + /** + * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance + */ + DeployedIndexAuthConfig.create = function create(properties) { + return new DeployedIndexAuthConfig(properties); + }; - return ConditionalParameterSpec; - })(); + /** + * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndexAuthConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.encode(message.authProvider, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * ScaleType enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType - * @enum {number} - * @property {number} SCALE_TYPE_UNSPECIFIED=0 SCALE_TYPE_UNSPECIFIED value - * @property {number} UNIT_LINEAR_SCALE=1 UNIT_LINEAR_SCALE value - * @property {number} UNIT_LOG_SCALE=2 UNIT_LOG_SCALE value - * @property {number} UNIT_REVERSE_LOG_SCALE=3 UNIT_REVERSE_LOG_SCALE value - */ - ParameterSpec.ScaleType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SCALE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "UNIT_LINEAR_SCALE"] = 1; - values[valuesById[2] = "UNIT_LOG_SCALE"] = 2; - values[valuesById[3] = "UNIT_REVERSE_LOG_SCALE"] = 3; - return values; - })(); + /** + * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return ParameterSpec; - })(); + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndexAuthConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - StudySpec.DecayCurveAutomatedStoppingSpec = (function() { + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndexAuthConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeployedIndexAuthConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployedIndexAuthConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.authProvider != null && message.hasOwnProperty("authProvider")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify(message.authProvider); + if (error) + return "authProvider." + error; + } + return null; + }; + + /** + * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + */ + DeployedIndexAuthConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); + if (object.authProvider != null) { + if (typeof object.authProvider !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.authProvider: object expected"); + message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.fromObject(object.authProvider); + } + return message; + }; + + /** + * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployedIndexAuthConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.authProvider = null; + if (message.authProvider != null && message.hasOwnProperty("authProvider")) + object.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.toObject(message.authProvider, options); + return object; + }; + + /** + * Converts this DeployedIndexAuthConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @instance + * @returns {Object.} JSON object + */ + DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeployedIndexAuthConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployedIndexAuthConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig"; + }; + + DeployedIndexAuthConfig.AuthProvider = (function() { /** - * Properties of a DecayCurveAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IDecayCurveAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration + * Properties of an AuthProvider. + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @interface IAuthProvider + * @property {Array.|null} [audiences] AuthProvider audiences + * @property {Array.|null} [allowedIssuers] AuthProvider allowedIssuers */ /** - * Constructs a new DecayCurveAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a DecayCurveAutomatedStoppingSpec. - * @implements IDecayCurveAutomatedStoppingSpec + * Constructs a new AuthProvider. + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @classdesc Represents an AuthProvider. + * @implements IAuthProvider * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set */ - function DecayCurveAutomatedStoppingSpec(properties) { + function AuthProvider(properties) { + this.audiences = []; + this.allowedIssuers = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243558,75 +256012,95 @@ } /** - * DecayCurveAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * AuthProvider audiences. + * @member {Array.} audiences + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @instance */ - DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; + AuthProvider.prototype.audiences = $util.emptyArray; /** - * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. + * AuthProvider allowedIssuers. + * @member {Array.} allowedIssuers + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @instance + */ + AuthProvider.prototype.allowedIssuers = $util.emptyArray; + + /** + * Creates a new AuthProvider instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec instance + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider instance */ - DecayCurveAutomatedStoppingSpec.create = function create(properties) { - return new DecayCurveAutomatedStoppingSpec(properties); + AuthProvider.create = function create(properties) { + return new AuthProvider(properties); }; /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecayCurveAutomatedStoppingSpec.encode = function encode(message, writer) { + AuthProvider.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + if (message.audiences != null && message.audiences.length) + for (var i = 0; i < message.audiences.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.audiences[i]); + if (message.allowedIssuers != null && message.allowedIssuers.length) + for (var i = 0; i < message.allowedIssuers.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowedIssuers[i]); return writer; }; /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecayCurveAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + AuthProvider.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. + * Decodes an AuthProvider message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecayCurveAutomatedStoppingSpec.decode = function decode(reader, length) { + AuthProvider.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.useElapsedDuration = reader.bool(); + if (!(message.audiences && message.audiences.length)) + message.audiences = []; + message.audiences.push(reader.string()); + break; + } + case 2: { + if (!(message.allowedIssuers && message.allowedIssuers.length)) + message.allowedIssuers = []; + message.allowedIssuers.push(reader.string()); break; } default: @@ -243638,1340 +256112,2120 @@ }; /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * Decodes an AuthProvider message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecayCurveAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + AuthProvider.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DecayCurveAutomatedStoppingSpec message. + * Verifies an AuthProvider message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DecayCurveAutomatedStoppingSpec.verify = function verify(message) { + AuthProvider.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; + if (message.audiences != null && message.hasOwnProperty("audiences")) { + if (!Array.isArray(message.audiences)) + return "audiences: array expected"; + for (var i = 0; i < message.audiences.length; ++i) + if (!$util.isString(message.audiences[i])) + return "audiences: string[] expected"; + } + if (message.allowedIssuers != null && message.hasOwnProperty("allowedIssuers")) { + if (!Array.isArray(message.allowedIssuers)) + return "allowedIssuers: array expected"; + for (var i = 0; i < message.allowedIssuers.length; ++i) + if (!$util.isString(message.allowedIssuers[i])) + return "allowedIssuers: string[] expected"; + } return null; }; /** - * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider */ - DecayCurveAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + AuthProvider.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); + if (object.audiences) { + if (!Array.isArray(object.audiences)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.audiences: array expected"); + message.audiences = []; + for (var i = 0; i < object.audiences.length; ++i) + message.audiences[i] = String(object.audiences[i]); + } + if (object.allowedIssuers) { + if (!Array.isArray(object.allowedIssuers)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.allowedIssuers: array expected"); + message.allowedIssuers = []; + for (var i = 0; i < object.allowedIssuers.length; ++i) + message.allowedIssuers[i] = String(object.allowedIssuers[i]); + } return message; }; /** - * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. + * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} message AuthProvider * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DecayCurveAutomatedStoppingSpec.toObject = function toObject(message, options) { + AuthProvider.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.useElapsedDuration = false; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; + if (options.arrays || options.defaults) { + object.audiences = []; + object.allowedIssuers = []; + } + if (message.audiences && message.audiences.length) { + object.audiences = []; + for (var j = 0; j < message.audiences.length; ++j) + object.audiences[j] = message.audiences[j]; + } + if (message.allowedIssuers && message.allowedIssuers.length) { + object.allowedIssuers = []; + for (var j = 0; j < message.allowedIssuers.length; ++j) + object.allowedIssuers[j] = message.allowedIssuers[j]; + } return object; }; /** - * Converts this DecayCurveAutomatedStoppingSpec to JSON. + * Converts this AuthProvider to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @instance * @returns {Object.} JSON object */ - DecayCurveAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + AuthProvider.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for DecayCurveAutomatedStoppingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DecayCurveAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec"; - }; + /** + * Gets the default type url for AuthProvider + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AuthProvider.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider"; + }; + + return AuthProvider; + })(); + + return DeployedIndexAuthConfig; + })(); + + v1beta1.IndexPrivateEndpoints = (function() { + + /** + * Properties of an IndexPrivateEndpoints. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexPrivateEndpoints + * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress + * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment + */ + + /** + * Constructs a new IndexPrivateEndpoints. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexPrivateEndpoints. + * @implements IIndexPrivateEndpoints + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set + */ + function IndexPrivateEndpoints(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]]; + } + + /** + * IndexPrivateEndpoints matchGrpcAddress. + * @member {string} matchGrpcAddress + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @instance + */ + IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; + + /** + * IndexPrivateEndpoints serviceAttachment. + * @member {string} serviceAttachment + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @instance + */ + IndexPrivateEndpoints.prototype.serviceAttachment = ""; + + /** + * Creates a new IndexPrivateEndpoints instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints instance + */ + IndexPrivateEndpoints.create = function create(properties) { + return new IndexPrivateEndpoints(properties); + }; + + /** + * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexPrivateEndpoints.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchGrpcAddress != null && Object.hasOwnProperty.call(message, "matchGrpcAddress")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); + if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); + return writer; + }; + + /** + * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexPrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexPrivateEndpoints.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.matchGrpcAddress = reader.string(); + break; + } + case 2: { + message.serviceAttachment = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexPrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexPrivateEndpoints message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexPrivateEndpoints.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) + if (!$util.isString(message.matchGrpcAddress)) + return "matchGrpcAddress: string expected"; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + if (!$util.isString(message.serviceAttachment)) + return "serviceAttachment: string expected"; + return null; + }; + + /** + * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + */ + IndexPrivateEndpoints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); + if (object.matchGrpcAddress != null) + message.matchGrpcAddress = String(object.matchGrpcAddress); + if (object.serviceAttachment != null) + message.serviceAttachment = String(object.serviceAttachment); + return message; + }; + + /** + * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} message IndexPrivateEndpoints + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexPrivateEndpoints.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchGrpcAddress = ""; + object.serviceAttachment = ""; + } + if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) + object.matchGrpcAddress = message.matchGrpcAddress; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + object.serviceAttachment = message.serviceAttachment; + return object; + }; + + /** + * Converts this IndexPrivateEndpoints to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @instance + * @returns {Object.} JSON object + */ + IndexPrivateEndpoints.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexPrivateEndpoints + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexPrivateEndpoints.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints"; + }; + + return IndexPrivateEndpoints; + })(); + + v1beta1.PrivateServiceConnectConfig = (function() { + + /** + * Properties of a PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPrivateServiceConnectConfig + * @property {boolean|null} [enablePrivateServiceConnect] PrivateServiceConnectConfig enablePrivateServiceConnect + * @property {Array.|null} [projectAllowlist] PrivateServiceConnectConfig projectAllowlist + */ + + /** + * Constructs a new PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a PrivateServiceConnectConfig. + * @implements IPrivateServiceConnectConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig=} [properties] Properties to set + */ + function PrivateServiceConnectConfig(properties) { + this.projectAllowlist = []; + 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]]; + } + + /** + * PrivateServiceConnectConfig enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.enablePrivateServiceConnect = false; + + /** + * PrivateServiceConnectConfig projectAllowlist. + * @member {Array.} projectAllowlist + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.projectAllowlist = $util.emptyArray; + + /** + * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig} PrivateServiceConnectConfig instance + */ + PrivateServiceConnectConfig.create = function create(properties) { + return new PrivateServiceConnectConfig(properties); + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateServiceConnect); + if (message.projectAllowlist != null && message.projectAllowlist.length) + for (var i = 0; i < message.projectAllowlist.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectAllowlist[i]); + return writer; + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enablePrivateServiceConnect = reader.bool(); + break; + } + case 2: { + if (!(message.projectAllowlist && message.projectAllowlist.length)) + message.projectAllowlist = []; + message.projectAllowlist.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateServiceConnectConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrivateServiceConnectConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; + if (message.projectAllowlist != null && message.hasOwnProperty("projectAllowlist")) { + if (!Array.isArray(message.projectAllowlist)) + return "projectAllowlist: array expected"; + for (var i = 0; i < message.projectAllowlist.length; ++i) + if (!$util.isString(message.projectAllowlist[i])) + return "projectAllowlist: string[] expected"; + } + return null; + }; + + /** + * Creates a PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + */ + PrivateServiceConnectConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig(); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.projectAllowlist) { + if (!Array.isArray(object.projectAllowlist)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.projectAllowlist: array expected"); + message.projectAllowlist = []; + for (var i = 0; i < object.projectAllowlist.length; ++i) + message.projectAllowlist[i] = String(object.projectAllowlist[i]); + } + return message; + }; + + /** + * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig} message PrivateServiceConnectConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateServiceConnectConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.projectAllowlist = []; + if (options.defaults) + object.enablePrivateServiceConnect = false; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.projectAllowlist && message.projectAllowlist.length) { + object.projectAllowlist = []; + for (var j = 0; j < message.projectAllowlist.length; ++j) + object.projectAllowlist[j] = message.projectAllowlist[j]; + } + return object; + }; + + /** + * Converts this PrivateServiceConnectConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @instance + * @returns {Object.} JSON object + */ + PrivateServiceConnectConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrivateServiceConnectConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateServiceConnectConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig"; + }; + + return PrivateServiceConnectConfig; + })(); + + v1beta1.IndexEndpointService = (function() { + + /** + * Constructs a new IndexEndpointService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexEndpointService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IndexEndpointService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (IndexEndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexEndpointService; + + /** + * Creates new IndexEndpointService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IndexEndpointService} RPC service. Useful where requests and/or responses are streamed. + */ + IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|createIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef CreateIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateIndexEndpoint. + * @function createIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.createIndexEndpoint = function createIndexEndpoint(request, callback) { + return this.rpcCall(createIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateIndexEndpoint" }); + + /** + * Calls CreateIndexEndpoint. + * @function createIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|getIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef GetIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint + */ + + /** + * Calls GetIndexEndpoint. + * @function getIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.getIndexEndpoint = function getIndexEndpoint(request, callback) { + return this.rpcCall(getIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); + }, "name", { value: "GetIndexEndpoint" }); + + /** + * Calls GetIndexEndpoint. + * @function getIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|listIndexEndpoints}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef ListIndexEndpointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} [response] ListIndexEndpointsResponse + */ + + /** + * Calls ListIndexEndpoints. + * @function listIndexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback} callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.listIndexEndpoints = function listIndexEndpoints(request, callback) { + return this.rpcCall(listIndexEndpoints, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, request, callback); + }, "name", { value: "ListIndexEndpoints" }); + + /** + * Calls ListIndexEndpoints. + * @function listIndexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|updateIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef UpdateIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint + */ + + /** + * Calls UpdateIndexEndpoint. + * @function updateIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.updateIndexEndpoint = function updateIndexEndpoint(request, callback) { + return this.rpcCall(updateIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); + }, "name", { value: "UpdateIndexEndpoint" }); + + /** + * Calls UpdateIndexEndpoint. + * @function updateIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deleteIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef DeleteIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteIndexEndpoint. + * @function deleteIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.deleteIndexEndpoint = function deleteIndexEndpoint(request, callback) { + return this.rpcCall(deleteIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteIndexEndpoint" }); + + /** + * Calls DeleteIndexEndpoint. + * @function deleteIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deployIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef DeployIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeployIndex. + * @function deployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.deployIndex = function deployIndex(request, callback) { + return this.rpcCall(deployIndex, $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeployIndex" }); + + /** + * Calls DeployIndex. + * @function deployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|undeployIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef UndeployIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UndeployIndex. + * @function undeployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.undeployIndex = function undeployIndex(request, callback) { + return this.rpcCall(undeployIndex, $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UndeployIndex" }); + + /** + * Calls UndeployIndex. + * @function undeployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|mutateDeployedIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef MutateDeployedIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls MutateDeployedIndex. + * @function mutateDeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.mutateDeployedIndex = function mutateDeployedIndex(request, callback) { + return this.rpcCall(mutateDeployedIndex, $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "MutateDeployedIndex" }); + + /** + * Calls MutateDeployedIndex. + * @function mutateDeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return IndexEndpointService; + })(); + + v1beta1.CreateIndexEndpointRequest = (function() { + + /** + * Properties of a CreateIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateIndexEndpointRequest + * @property {string|null} [parent] CreateIndexEndpointRequest parent + * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] CreateIndexEndpointRequest indexEndpoint + */ + + /** + * Constructs a new CreateIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateIndexEndpointRequest. + * @implements ICreateIndexEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set + */ + function CreateIndexEndpointRequest(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]]; + } + + /** + * CreateIndexEndpointRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @instance + */ + CreateIndexEndpointRequest.prototype.parent = ""; + + /** + * CreateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @instance + */ + CreateIndexEndpointRequest.prototype.indexEndpoint = null; + + /** + * Creates a new CreateIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest instance + */ + CreateIndexEndpointRequest.create = function create(properties) { + return new CreateIndexEndpointRequest(properties); + }; + + /** + * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateIndexEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateIndexEndpointRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); + if (error) + return "indexEndpoint." + error; + } + return null; + }; + + /** + * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + */ + CreateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.indexEndpoint != null) { + if (typeof object.indexEndpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.indexEndpoint: object expected"); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); + } + return message; + }; + + /** + * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} message CreateIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateIndexEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.indexEndpoint = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); + return object; + }; + + /** + * Converts this CreateIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @instance + * @returns {Object.} JSON object + */ + CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateIndexEndpointRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest"; + }; - return DecayCurveAutomatedStoppingSpec; - })(); + return CreateIndexEndpointRequest; + })(); - StudySpec.MedianAutomatedStoppingSpec = (function() { + v1beta1.CreateIndexEndpointOperationMetadata = (function() { - /** - * Properties of a MedianAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IMedianAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration - */ + /** + * Properties of a CreateIndexEndpointOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateIndexEndpointOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata + */ - /** - * Constructs a new MedianAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a MedianAutomatedStoppingSpec. - * @implements IMedianAutomatedStoppingSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set - */ - function MedianAutomatedStoppingSpec(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]]; - } + /** + * Constructs a new CreateIndexEndpointOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateIndexEndpointOperationMetadata. + * @implements ICreateIndexEndpointOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + */ + function CreateIndexEndpointOperationMetadata(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]]; + } - /** - * MedianAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @instance - */ - MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; + /** + * CreateIndexEndpointOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @instance + */ + CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; - /** - * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec instance - */ - MedianAutomatedStoppingSpec.create = function create(properties) { - return new MedianAutomatedStoppingSpec(properties); - }; + /** + * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance + */ + CreateIndexEndpointOperationMetadata.create = function create(properties) { + return new CreateIndexEndpointOperationMetadata(properties); + }; - /** - * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MedianAutomatedStoppingSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); - return writer; - }; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MedianAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MedianAutomatedStoppingSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.useElapsedDuration = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MedianAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a MedianAutomatedStoppingSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MedianAutomatedStoppingSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; - return null; - }; + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec - */ - MedianAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); - return message; - }; + /** + * Verifies a CreateIndexEndpointOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateIndexEndpointOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; - /** - * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MedianAutomatedStoppingSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.useElapsedDuration = false; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; + /** + * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + */ + CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) return object; - }; - - /** - * Converts this MedianAutomatedStoppingSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @instance - * @returns {Object.} JSON object - */ - MedianAutomatedStoppingSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MedianAutomatedStoppingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MedianAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec"; - }; - - return MedianAutomatedStoppingSpec; - })(); - - StudySpec.ConvexAutomatedStoppingSpec = (function() { - - /** - * Properties of a ConvexAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IConvexAutomatedStoppingSpec - * @property {number|Long|null} [maxStepCount] ConvexAutomatedStoppingSpec maxStepCount - * @property {number|Long|null} [minStepCount] ConvexAutomatedStoppingSpec minStepCount - * @property {number|Long|null} [minMeasurementCount] ConvexAutomatedStoppingSpec minMeasurementCount - * @property {string|null} [learningRateParameterName] ConvexAutomatedStoppingSpec learningRateParameterName - * @property {boolean|null} [useElapsedDuration] ConvexAutomatedStoppingSpec useElapsedDuration - * @property {boolean|null} [updateAllStoppedTrials] ConvexAutomatedStoppingSpec updateAllStoppedTrials - */ - - /** - * Constructs a new ConvexAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a ConvexAutomatedStoppingSpec. - * @implements IConvexAutomatedStoppingSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set - */ - function ConvexAutomatedStoppingSpec(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]]; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } + return message; + }; - /** - * ConvexAutomatedStoppingSpec maxStepCount. - * @member {number|Long} maxStepCount - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.maxStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateIndexEndpointOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; - /** - * ConvexAutomatedStoppingSpec minStepCount. - * @member {number|Long} minStepCount - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.minStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Converts this CreateIndexEndpointOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ConvexAutomatedStoppingSpec minMeasurementCount. - * @member {number|Long} minMeasurementCount - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.minMeasurementCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Gets the default type url for CreateIndexEndpointOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateIndexEndpointOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata"; + }; - /** - * ConvexAutomatedStoppingSpec learningRateParameterName. - * @member {string} learningRateParameterName - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; + return CreateIndexEndpointOperationMetadata; + })(); - /** - * ConvexAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; + v1beta1.GetIndexEndpointRequest = (function() { - /** - * ConvexAutomatedStoppingSpec updateAllStoppedTrials. - * @member {boolean|null|undefined} updateAllStoppedTrials - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.updateAllStoppedTrials = null; + /** + * Properties of a GetIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetIndexEndpointRequest + * @property {string|null} [name] GetIndexEndpointRequest name + */ - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Constructs a new GetIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetIndexEndpointRequest. + * @implements IGetIndexEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set + */ + function GetIndexEndpointRequest(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]]; + } - /** - * ConvexAutomatedStoppingSpec _updateAllStoppedTrials. - * @member {"updateAllStoppedTrials"|undefined} _updateAllStoppedTrials - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - Object.defineProperty(ConvexAutomatedStoppingSpec.prototype, "_updateAllStoppedTrials", { - get: $util.oneOfGetter($oneOfFields = ["updateAllStoppedTrials"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * GetIndexEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @instance + */ + GetIndexEndpointRequest.prototype.name = ""; - /** - * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec instance - */ - ConvexAutomatedStoppingSpec.create = function create(properties) { - return new ConvexAutomatedStoppingSpec(properties); - }; + /** + * Creates a new GetIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest instance + */ + GetIndexEndpointRequest.create = function create(properties) { + return new GetIndexEndpointRequest(properties); + }; - /** - * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexAutomatedStoppingSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.maxStepCount != null && Object.hasOwnProperty.call(message, "maxStepCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxStepCount); - if (message.minStepCount != null && Object.hasOwnProperty.call(message, "minStepCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minStepCount); - if (message.minMeasurementCount != null && Object.hasOwnProperty.call(message, "minMeasurementCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.minMeasurementCount); - if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useElapsedDuration); - if (message.updateAllStoppedTrials != null && Object.hasOwnProperty.call(message, "updateAllStoppedTrials")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.updateAllStoppedTrials); - return writer; - }; + /** + * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIndexEndpointRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexAutomatedStoppingSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.maxStepCount = reader.int64(); - break; - } - case 2: { - message.minStepCount = reader.int64(); - break; - } - case 3: { - message.minMeasurementCount = reader.int64(); - break; - } - case 4: { - message.learningRateParameterName = reader.string(); - break; - } - case 5: { - message.useElapsedDuration = reader.bool(); - break; - } - case 6: { - message.updateAllStoppedTrials = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIndexEndpointRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ConvexAutomatedStoppingSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConvexAutomatedStoppingSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) - if (!$util.isInteger(message.maxStepCount) && !(message.maxStepCount && $util.isInteger(message.maxStepCount.low) && $util.isInteger(message.maxStepCount.high))) - return "maxStepCount: integer|Long expected"; - if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) - if (!$util.isInteger(message.minStepCount) && !(message.minStepCount && $util.isInteger(message.minStepCount.low) && $util.isInteger(message.minStepCount.high))) - return "minStepCount: integer|Long expected"; - if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) - if (!$util.isInteger(message.minMeasurementCount) && !(message.minMeasurementCount && $util.isInteger(message.minMeasurementCount.low) && $util.isInteger(message.minMeasurementCount.high))) - return "minMeasurementCount: integer|Long expected"; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - if (!$util.isString(message.learningRateParameterName)) - return "learningRateParameterName: string expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; - if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { - properties._updateAllStoppedTrials = 1; - if (typeof message.updateAllStoppedTrials !== "boolean") - return "updateAllStoppedTrials: boolean expected"; - } - return null; - }; + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec - */ - ConvexAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); - if (object.maxStepCount != null) - if ($util.Long) - (message.maxStepCount = $util.Long.fromValue(object.maxStepCount)).unsigned = false; - else if (typeof object.maxStepCount === "string") - message.maxStepCount = parseInt(object.maxStepCount, 10); - else if (typeof object.maxStepCount === "number") - message.maxStepCount = object.maxStepCount; - else if (typeof object.maxStepCount === "object") - message.maxStepCount = new $util.LongBits(object.maxStepCount.low >>> 0, object.maxStepCount.high >>> 0).toNumber(); - if (object.minStepCount != null) - if ($util.Long) - (message.minStepCount = $util.Long.fromValue(object.minStepCount)).unsigned = false; - else if (typeof object.minStepCount === "string") - message.minStepCount = parseInt(object.minStepCount, 10); - else if (typeof object.minStepCount === "number") - message.minStepCount = object.minStepCount; - else if (typeof object.minStepCount === "object") - message.minStepCount = new $util.LongBits(object.minStepCount.low >>> 0, object.minStepCount.high >>> 0).toNumber(); - if (object.minMeasurementCount != null) - if ($util.Long) - (message.minMeasurementCount = $util.Long.fromValue(object.minMeasurementCount)).unsigned = false; - else if (typeof object.minMeasurementCount === "string") - message.minMeasurementCount = parseInt(object.minMeasurementCount, 10); - else if (typeof object.minMeasurementCount === "number") - message.minMeasurementCount = object.minMeasurementCount; - else if (typeof object.minMeasurementCount === "object") - message.minMeasurementCount = new $util.LongBits(object.minMeasurementCount.low >>> 0, object.minMeasurementCount.high >>> 0).toNumber(); - if (object.learningRateParameterName != null) - message.learningRateParameterName = String(object.learningRateParameterName); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); - if (object.updateAllStoppedTrials != null) - message.updateAllStoppedTrials = Boolean(object.updateAllStoppedTrials); - return message; - }; + /** + * Verifies a GetIndexEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIndexEndpointRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConvexAutomatedStoppingSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxStepCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minStepCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minMeasurementCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minMeasurementCount = options.longs === String ? "0" : 0; - object.learningRateParameterName = ""; - object.useElapsedDuration = false; - } - if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) - if (typeof message.maxStepCount === "number") - object.maxStepCount = options.longs === String ? String(message.maxStepCount) : message.maxStepCount; - else - object.maxStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxStepCount) : options.longs === Number ? new $util.LongBits(message.maxStepCount.low >>> 0, message.maxStepCount.high >>> 0).toNumber() : message.maxStepCount; - if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) - if (typeof message.minStepCount === "number") - object.minStepCount = options.longs === String ? String(message.minStepCount) : message.minStepCount; - else - object.minStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.minStepCount) : options.longs === Number ? new $util.LongBits(message.minStepCount.low >>> 0, message.minStepCount.high >>> 0).toNumber() : message.minStepCount; - if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) - if (typeof message.minMeasurementCount === "number") - object.minMeasurementCount = options.longs === String ? String(message.minMeasurementCount) : message.minMeasurementCount; - else - object.minMeasurementCount = options.longs === String ? $util.Long.prototype.toString.call(message.minMeasurementCount) : options.longs === Number ? new $util.LongBits(message.minMeasurementCount.low >>> 0, message.minMeasurementCount.high >>> 0).toNumber() : message.minMeasurementCount; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - object.learningRateParameterName = message.learningRateParameterName; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; - if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { - object.updateAllStoppedTrials = message.updateAllStoppedTrials; - if (options.oneofs) - object._updateAllStoppedTrials = "updateAllStoppedTrials"; - } + /** + * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + */ + GetIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this ConvexAutomatedStoppingSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - * @returns {Object.} JSON object - */ - ConvexAutomatedStoppingSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} message GetIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIndexEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Gets the default type url for ConvexAutomatedStoppingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConvexAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec"; - }; + /** + * Converts this GetIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @instance + * @returns {Object.} JSON object + */ + GetIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ConvexAutomatedStoppingSpec; - })(); + /** + * Gets the default type url for GetIndexEndpointRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest"; + }; - StudySpec.ConvexStopConfig = (function() { + return GetIndexEndpointRequest; + })(); - /** - * Properties of a ConvexStopConfig. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IConvexStopConfig - * @property {number|Long|null} [maxNumSteps] ConvexStopConfig maxNumSteps - * @property {number|Long|null} [minNumSteps] ConvexStopConfig minNumSteps - * @property {number|Long|null} [autoregressiveOrder] ConvexStopConfig autoregressiveOrder - * @property {string|null} [learningRateParameterName] ConvexStopConfig learningRateParameterName - * @property {boolean|null} [useSeconds] ConvexStopConfig useSeconds - */ + v1beta1.ListIndexEndpointsRequest = (function() { - /** - * Constructs a new ConvexStopConfig. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a ConvexStopConfig. - * @implements IConvexStopConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set - */ - function ConvexStopConfig(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]]; - } + /** + * Properties of a ListIndexEndpointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListIndexEndpointsRequest + * @property {string|null} [parent] ListIndexEndpointsRequest parent + * @property {string|null} [filter] ListIndexEndpointsRequest filter + * @property {number|null} [pageSize] ListIndexEndpointsRequest pageSize + * @property {string|null} [pageToken] ListIndexEndpointsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexEndpointsRequest readMask + */ - /** - * ConvexStopConfig maxNumSteps. - * @member {number|Long} maxNumSteps - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.maxNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Constructs a new ListIndexEndpointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListIndexEndpointsRequest. + * @implements IListIndexEndpointsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + */ + function ListIndexEndpointsRequest(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]]; + } - /** - * ConvexStopConfig minNumSteps. - * @member {number|Long} minNumSteps - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.minNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ListIndexEndpointsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.parent = ""; - /** - * ConvexStopConfig autoregressiveOrder. - * @member {number|Long} autoregressiveOrder - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.autoregressiveOrder = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ListIndexEndpointsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.filter = ""; - /** - * ConvexStopConfig learningRateParameterName. - * @member {string} learningRateParameterName - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.learningRateParameterName = ""; + /** + * ListIndexEndpointsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.pageSize = 0; - /** - * ConvexStopConfig useSeconds. - * @member {boolean} useSeconds - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.useSeconds = false; + /** + * ListIndexEndpointsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.pageToken = ""; - /** - * Creates a new ConvexStopConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig instance - */ - ConvexStopConfig.create = function create(properties) { - return new ConvexStopConfig(properties); - }; + /** + * ListIndexEndpointsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.readMask = null; - /** - * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexStopConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.maxNumSteps != null && Object.hasOwnProperty.call(message, "maxNumSteps")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxNumSteps); - if (message.minNumSteps != null && Object.hasOwnProperty.call(message, "minNumSteps")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minNumSteps); - if (message.autoregressiveOrder != null && Object.hasOwnProperty.call(message, "autoregressiveOrder")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.autoregressiveOrder); - if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); - if (message.useSeconds != null && Object.hasOwnProperty.call(message, "useSeconds")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useSeconds); - return writer; - }; + /** + * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance + */ + ListIndexEndpointsRequest.create = function create(properties) { + return new ListIndexEndpointsRequest(properties); + }; - /** - * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexStopConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexStopConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.maxNumSteps = reader.int64(); - break; - } - case 2: { - message.minNumSteps = reader.int64(); - break; - } - case 3: { - message.autoregressiveOrder = reader.int64(); - break; - } - case 4: { - message.learningRateParameterName = reader.string(); - break; - } - case 5: { - message.useSeconds = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexStopConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ConvexStopConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConvexStopConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) - if (!$util.isInteger(message.maxNumSteps) && !(message.maxNumSteps && $util.isInteger(message.maxNumSteps.low) && $util.isInteger(message.maxNumSteps.high))) - return "maxNumSteps: integer|Long expected"; - if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) - if (!$util.isInteger(message.minNumSteps) && !(message.minNumSteps && $util.isInteger(message.minNumSteps.low) && $util.isInteger(message.minNumSteps.high))) - return "minNumSteps: integer|Long expected"; - if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) - if (!$util.isInteger(message.autoregressiveOrder) && !(message.autoregressiveOrder && $util.isInteger(message.autoregressiveOrder.low) && $util.isInteger(message.autoregressiveOrder.high))) - return "autoregressiveOrder: integer|Long expected"; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - if (!$util.isString(message.learningRateParameterName)) - return "learningRateParameterName: string expected"; - if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) - if (typeof message.useSeconds !== "boolean") - return "useSeconds: boolean expected"; - return null; - }; + /** + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig - */ - ConvexStopConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); - if (object.maxNumSteps != null) - if ($util.Long) - (message.maxNumSteps = $util.Long.fromValue(object.maxNumSteps)).unsigned = false; - else if (typeof object.maxNumSteps === "string") - message.maxNumSteps = parseInt(object.maxNumSteps, 10); - else if (typeof object.maxNumSteps === "number") - message.maxNumSteps = object.maxNumSteps; - else if (typeof object.maxNumSteps === "object") - message.maxNumSteps = new $util.LongBits(object.maxNumSteps.low >>> 0, object.maxNumSteps.high >>> 0).toNumber(); - if (object.minNumSteps != null) - if ($util.Long) - (message.minNumSteps = $util.Long.fromValue(object.minNumSteps)).unsigned = false; - else if (typeof object.minNumSteps === "string") - message.minNumSteps = parseInt(object.minNumSteps, 10); - else if (typeof object.minNumSteps === "number") - message.minNumSteps = object.minNumSteps; - else if (typeof object.minNumSteps === "object") - message.minNumSteps = new $util.LongBits(object.minNumSteps.low >>> 0, object.minNumSteps.high >>> 0).toNumber(); - if (object.autoregressiveOrder != null) - if ($util.Long) - (message.autoregressiveOrder = $util.Long.fromValue(object.autoregressiveOrder)).unsigned = false; - else if (typeof object.autoregressiveOrder === "string") - message.autoregressiveOrder = parseInt(object.autoregressiveOrder, 10); - else if (typeof object.autoregressiveOrder === "number") - message.autoregressiveOrder = object.autoregressiveOrder; - else if (typeof object.autoregressiveOrder === "object") - message.autoregressiveOrder = new $util.LongBits(object.autoregressiveOrder.low >>> 0, object.autoregressiveOrder.high >>> 0).toNumber(); - if (object.learningRateParameterName != null) - message.learningRateParameterName = String(object.learningRateParameterName); - if (object.useSeconds != null) - message.useSeconds = Boolean(object.useSeconds); - return message; - }; + /** + * Verifies a ListIndexEndpointsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListIndexEndpointsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; - /** - * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} message ConvexStopConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConvexStopConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxNumSteps = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minNumSteps = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.autoregressiveOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.autoregressiveOrder = options.longs === String ? "0" : 0; - object.learningRateParameterName = ""; - object.useSeconds = false; - } - if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) - if (typeof message.maxNumSteps === "number") - object.maxNumSteps = options.longs === String ? String(message.maxNumSteps) : message.maxNumSteps; - else - object.maxNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumSteps) : options.longs === Number ? new $util.LongBits(message.maxNumSteps.low >>> 0, message.maxNumSteps.high >>> 0).toNumber() : message.maxNumSteps; - if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) - if (typeof message.minNumSteps === "number") - object.minNumSteps = options.longs === String ? String(message.minNumSteps) : message.minNumSteps; - else - object.minNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.minNumSteps) : options.longs === Number ? new $util.LongBits(message.minNumSteps.low >>> 0, message.minNumSteps.high >>> 0).toNumber() : message.minNumSteps; - if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) - if (typeof message.autoregressiveOrder === "number") - object.autoregressiveOrder = options.longs === String ? String(message.autoregressiveOrder) : message.autoregressiveOrder; - else - object.autoregressiveOrder = options.longs === String ? $util.Long.prototype.toString.call(message.autoregressiveOrder) : options.longs === Number ? new $util.LongBits(message.autoregressiveOrder.low >>> 0, message.autoregressiveOrder.high >>> 0).toNumber() : message.autoregressiveOrder; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - object.learningRateParameterName = message.learningRateParameterName; - if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) - object.useSeconds = message.useSeconds; + /** + * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + */ + ListIndexEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; - /** - * Converts this ConvexStopConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - * @returns {Object.} JSON object - */ - ConvexStopConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListIndexEndpointsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; - /** - * Gets the default type url for ConvexStopConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConvexStopConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig"; - }; + /** + * Converts this ListIndexEndpointsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + * @returns {Object.} JSON object + */ + ListIndexEndpointsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ConvexStopConfig; - })(); + /** + * Gets the default type url for ListIndexEndpointsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListIndexEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest"; + }; - StudySpec.TransferLearningConfig = (function() { + return ListIndexEndpointsRequest; + })(); - /** - * Properties of a TransferLearningConfig. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface ITransferLearningConfig - * @property {boolean|null} [disableTransferLearning] TransferLearningConfig disableTransferLearning - * @property {Array.|null} [priorStudyNames] TransferLearningConfig priorStudyNames - */ + v1beta1.ListIndexEndpointsResponse = (function() { - /** - * Constructs a new TransferLearningConfig. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a TransferLearningConfig. - * @implements ITransferLearningConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set - */ - function TransferLearningConfig(properties) { - this.priorStudyNames = []; - 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]]; - } + /** + * Properties of a ListIndexEndpointsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListIndexEndpointsResponse + * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints + * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken + */ - /** - * TransferLearningConfig disableTransferLearning. - * @member {boolean} disableTransferLearning - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @instance - */ - TransferLearningConfig.prototype.disableTransferLearning = false; + /** + * Constructs a new ListIndexEndpointsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListIndexEndpointsResponse. + * @implements IListIndexEndpointsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + */ + function ListIndexEndpointsResponse(properties) { + this.indexEndpoints = []; + 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]]; + } - /** - * TransferLearningConfig priorStudyNames. - * @member {Array.} priorStudyNames - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @instance - */ - TransferLearningConfig.prototype.priorStudyNames = $util.emptyArray; + /** + * ListIndexEndpointsResponse indexEndpoints. + * @member {Array.} indexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @instance + */ + ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; - /** - * Creates a new TransferLearningConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig instance - */ - TransferLearningConfig.create = function create(properties) { - return new TransferLearningConfig(properties); - }; + /** + * ListIndexEndpointsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @instance + */ + ListIndexEndpointsResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransferLearningConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.disableTransferLearning != null && Object.hasOwnProperty.call(message, "disableTransferLearning")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableTransferLearning); - if (message.priorStudyNames != null && message.priorStudyNames.length) - for (var i = 0; i < message.priorStudyNames.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.priorStudyNames[i]); - return writer; - }; + /** + * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance + */ + ListIndexEndpointsResponse.create = function create(properties) { + return new ListIndexEndpointsResponse(properties); + }; - /** - * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransferLearningConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.indexEndpoints != null && message.indexEndpoints.length) + for (var i = 0; i < message.indexEndpoints.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Decodes a TransferLearningConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransferLearningConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.disableTransferLearning = reader.bool(); - break; - } - case 2: { - if (!(message.priorStudyNames && message.priorStudyNames.length)) - message.priorStudyNames = []; - message.priorStudyNames.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.indexEndpoints && message.indexEndpoints.length)) + message.indexEndpoints = []; + message.indexEndpoints.push($root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransferLearningConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a TransferLearningConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TransferLearningConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) - if (typeof message.disableTransferLearning !== "boolean") - return "disableTransferLearning: boolean expected"; - if (message.priorStudyNames != null && message.hasOwnProperty("priorStudyNames")) { - if (!Array.isArray(message.priorStudyNames)) - return "priorStudyNames: array expected"; - for (var i = 0; i < message.priorStudyNames.length; ++i) - if (!$util.isString(message.priorStudyNames[i])) - return "priorStudyNames: string[] expected"; - } - return null; - }; + /** + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig - */ - TransferLearningConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig(); - if (object.disableTransferLearning != null) - message.disableTransferLearning = Boolean(object.disableTransferLearning); - if (object.priorStudyNames) { - if (!Array.isArray(object.priorStudyNames)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.priorStudyNames: array expected"); - message.priorStudyNames = []; - for (var i = 0; i < object.priorStudyNames.length; ++i) - message.priorStudyNames[i] = String(object.priorStudyNames[i]); + /** + * Verifies a ListIndexEndpointsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListIndexEndpointsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexEndpoints != null && message.hasOwnProperty("indexEndpoints")) { + if (!Array.isArray(message.indexEndpoints)) + return "indexEndpoints: array expected"; + for (var i = 0; i < message.indexEndpoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoints[i]); + if (error) + return "indexEndpoints." + error; } - return message; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; - /** - * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} message TransferLearningConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TransferLearningConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.priorStudyNames = []; - if (options.defaults) - object.disableTransferLearning = false; - if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) - object.disableTransferLearning = message.disableTransferLearning; - if (message.priorStudyNames && message.priorStudyNames.length) { - object.priorStudyNames = []; - for (var j = 0; j < message.priorStudyNames.length; ++j) - object.priorStudyNames[j] = message.priorStudyNames[j]; - } + /** + * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + */ + ListIndexEndpointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) return object; - }; - - /** - * Converts this TransferLearningConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @instance - * @returns {Object.} JSON object - */ - TransferLearningConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for TransferLearningConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TransferLearningConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); + if (object.indexEndpoints) { + if (!Array.isArray(object.indexEndpoints)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: array expected"); + message.indexEndpoints = []; + for (var i = 0; i < object.indexEndpoints.length; ++i) { + if (typeof object.indexEndpoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: object expected"); + message.indexEndpoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoints[i]); } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig"; - }; - - return TransferLearningConfig; - })(); + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Algorithm enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.Algorithm - * @enum {number} - * @property {number} ALGORITHM_UNSPECIFIED=0 ALGORITHM_UNSPECIFIED value - * @property {number} GRID_SEARCH=2 GRID_SEARCH value - * @property {number} RANDOM_SEARCH=3 RANDOM_SEARCH value + * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - StudySpec.Algorithm = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ALGORITHM_UNSPECIFIED"] = 0; - values[valuesById[2] = "GRID_SEARCH"] = 2; - values[valuesById[3] = "RANDOM_SEARCH"] = 3; - return values; - })(); + ListIndexEndpointsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.indexEndpoints = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.indexEndpoints && message.indexEndpoints.length) { + object.indexEndpoints = []; + for (var j = 0; j < message.indexEndpoints.length; ++j) + object.indexEndpoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoints[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * ObservationNoise enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise - * @enum {number} - * @property {number} OBSERVATION_NOISE_UNSPECIFIED=0 OBSERVATION_NOISE_UNSPECIFIED value - * @property {number} LOW=1 LOW value - * @property {number} HIGH=2 HIGH value + * Converts this ListIndexEndpointsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @instance + * @returns {Object.} JSON object */ - StudySpec.ObservationNoise = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OBSERVATION_NOISE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LOW"] = 1; - values[valuesById[2] = "HIGH"] = 2; - return values; - })(); + ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * MeasurementSelectionType enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType - * @enum {number} - * @property {number} MEASUREMENT_SELECTION_TYPE_UNSPECIFIED=0 MEASUREMENT_SELECTION_TYPE_UNSPECIFIED value - * @property {number} LAST_MEASUREMENT=1 LAST_MEASUREMENT value - * @property {number} BEST_MEASUREMENT=2 BEST_MEASUREMENT value + * Gets the default type url for ListIndexEndpointsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - StudySpec.MeasurementSelectionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LAST_MEASUREMENT"] = 1; - values[valuesById[2] = "BEST_MEASUREMENT"] = 2; - return values; - })(); + ListIndexEndpointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse"; + }; - return StudySpec; + return ListIndexEndpointsResponse; })(); - v1beta1.Measurement = (function() { + v1beta1.UpdateIndexEndpointRequest = (function() { /** - * Properties of a Measurement. + * Properties of an UpdateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMeasurement - * @property {google.protobuf.IDuration|null} [elapsedDuration] Measurement elapsedDuration - * @property {number|Long|null} [stepCount] Measurement stepCount - * @property {Array.|null} [metrics] Measurement metrics + * @interface IUpdateIndexEndpointRequest + * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] UpdateIndexEndpointRequest indexEndpoint + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexEndpointRequest updateMask */ /** - * Constructs a new Measurement. + * Constructs a new UpdateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Measurement. - * @implements IMeasurement + * @classdesc Represents an UpdateIndexEndpointRequest. + * @implements IUpdateIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set */ - function Measurement(properties) { - this.metrics = []; + function UpdateIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244979,106 +258233,89 @@ } /** - * Measurement elapsedDuration. - * @member {google.protobuf.IDuration|null|undefined} elapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @instance - */ - Measurement.prototype.elapsedDuration = null; - - /** - * Measurement stepCount. - * @member {number|Long} stepCount - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * UpdateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance */ - Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UpdateIndexEndpointRequest.prototype.indexEndpoint = null; /** - * Measurement metrics. - * @member {Array.} metrics - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * UpdateIndexEndpointRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance */ - Measurement.prototype.metrics = $util.emptyArray; + UpdateIndexEndpointRequest.prototype.updateMask = null; /** - * Creates a new Measurement instance using the specified properties. + * Creates a new UpdateIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance */ - Measurement.create = function create(properties) { - return new Measurement(properties); + UpdateIndexEndpointRequest.create = function create(properties) { + return new UpdateIndexEndpointRequest(properties); }; /** - * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Measurement.encode = function encode(message, writer) { + UpdateIndexEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.elapsedDuration != null && Object.hasOwnProperty.call(message, "elapsedDuration")) - $root.google.protobuf.Duration.encode(message.elapsedDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.stepCount != null && Object.hasOwnProperty.call(message, "stepCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stepCount); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Measurement.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Measurement message from the specified reader or buffer. + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Measurement.decode = function decode(reader, length) { + UpdateIndexEndpointRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); break; } case 2: { - message.stepCount = reader.int64(); - break; - } - case 3: { - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.aiplatform.v1beta1.Measurement.Metric.decode(reader, reader.uint32())); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -245090,416 +258327,141 @@ }; /** - * Decodes a Measurement message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Measurement.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Measurement message. + * Verifies an UpdateIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Measurement.verify = function verify(message) { + UpdateIndexEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) { - var error = $root.google.protobuf.Duration.verify(message.elapsedDuration); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); if (error) - return "elapsedDuration." + error; + return "indexEndpoint." + error; } - if (message.stepCount != null && message.hasOwnProperty("stepCount")) - if (!$util.isInteger(message.stepCount) && !(message.stepCount && $util.isInteger(message.stepCount.low) && $util.isInteger(message.stepCount.high))) - return "stepCount: integer|Long expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a Measurement message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest */ - Measurement.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement) + UpdateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); - if (object.elapsedDuration != null) { - if (typeof object.elapsedDuration !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.elapsedDuration: object expected"); - message.elapsedDuration = $root.google.protobuf.Duration.fromObject(object.elapsedDuration); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); + if (object.indexEndpoint != null) { + if (typeof object.indexEndpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.indexEndpoint: object expected"); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); } - if (object.stepCount != null) - if ($util.Long) - (message.stepCount = $util.Long.fromValue(object.stepCount)).unsigned = false; - else if (typeof object.stepCount === "string") - message.stepCount = parseInt(object.stepCount, 10); - else if (typeof object.stepCount === "number") - message.stepCount = object.stepCount; - else if (typeof object.stepCount === "object") - message.stepCount = new $util.LongBits(object.stepCount.low >>> 0, object.stepCount.high >>> 0).toNumber(); - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: object expected"); - message.metrics[i] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.fromObject(object.metrics[i]); - } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement} message Measurement + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Measurement.toObject = function toObject(message, options) { + UpdateIndexEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.metrics = []; if (options.defaults) { - object.elapsedDuration = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.stepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.stepCount = options.longs === String ? "0" : 0; - } - if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) - object.elapsedDuration = $root.google.protobuf.Duration.toObject(message.elapsedDuration, options); - if (message.stepCount != null && message.hasOwnProperty("stepCount")) - if (typeof message.stepCount === "number") - object.stepCount = options.longs === String ? String(message.stepCount) : message.stepCount; - else - object.stepCount = options.longs === String ? $util.Long.prototype.toString.call(message.stepCount) : options.longs === Number ? new $util.LongBits(message.stepCount.low >>> 0, message.stepCount.high >>> 0).toNumber() : message.stepCount; - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.toObject(message.metrics[j], options); + object.indexEndpoint = null; + object.updateMask = null; } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this Measurement to JSON. + * Converts this UpdateIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - Measurement.prototype.toJSON = function toJSON() { + UpdateIndexEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Measurement + * Gets the default type url for UpdateIndexEndpointRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Measurement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Measurement"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest"; }; - Measurement.Metric = (function() { - - /** - * Properties of a Metric. - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @interface IMetric - * @property {string|null} [metricId] Metric metricId - * @property {number|null} [value] Metric value - */ - - /** - * Constructs a new Metric. - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set - */ - function Metric(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]]; - } - - /** - * Metric metricId. - * @member {string} metricId - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @instance - */ - Metric.prototype.metricId = ""; - - /** - * Metric value. - * @member {number} value - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @instance - */ - Metric.prototype.value = 0; - - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; - - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); - return writer; - }; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.metricId = reader.string(); - break; - } - case 2: { - message.value = reader.double(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Metric message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metricId != null && message.hasOwnProperty("metricId")) - if (!$util.isString(message.metricId)) - return "metricId: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - return null; - }; - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement.Metric) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); - if (object.metricId != null) - message.metricId = String(object.metricId); - if (object.value != null) - message.value = Number(object.value); - return message; - }; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.metricId = ""; - object.value = 0; - } - if (message.metricId != null && message.hasOwnProperty("metricId")) - object.metricId = message.metricId; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - return object; - }; - - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Metric - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Measurement.Metric"; - }; - - return Metric; - })(); - - return Measurement; + return UpdateIndexEndpointRequest; })(); - v1beta1.Index = (function() { + v1beta1.DeleteIndexEndpointRequest = (function() { /** - * Properties of an Index. + * Properties of a DeleteIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndex - * @property {string|null} [name] Index name - * @property {string|null} [displayName] Index displayName - * @property {string|null} [description] Index description - * @property {string|null} [metadataSchemaUri] Index metadataSchemaUri - * @property {google.protobuf.IValue|null} [metadata] Index metadata - * @property {Array.|null} [deployedIndexes] Index deployedIndexes - * @property {string|null} [etag] Index etag - * @property {Object.|null} [labels] Index labels - * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime - * @property {google.cloud.aiplatform.v1beta1.IIndexStats|null} [indexStats] Index indexStats - * @property {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod + * @interface IDeleteIndexEndpointRequest + * @property {string|null} [name] DeleteIndexEndpointRequest name */ /** - * Constructs a new Index. + * Constructs a new DeleteIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Index. - * @implements IIndex + * @classdesc Represents a DeleteIndexEndpointRequest. + * @implements IDeleteIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set */ - function Index(properties) { - this.deployedIndexes = []; - this.labels = {}; + function DeleteIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245507,252 +258469,510 @@ } /** - * Index name. + * DeleteIndexEndpointRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @instance */ - Index.prototype.name = ""; + DeleteIndexEndpointRequest.prototype.name = ""; /** - * Index displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance */ - Index.prototype.displayName = ""; + DeleteIndexEndpointRequest.create = function create(properties) { + return new DeleteIndexEndpointRequest(properties); + }; /** - * Index description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Index.prototype.description = ""; + DeleteIndexEndpointRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Index metadataSchemaUri. - * @member {string} metadataSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Index.prototype.metadataSchemaUri = ""; + DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Index metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.prototype.metadata = null; + DeleteIndexEndpointRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Index deployedIndexes. - * @member {Array.} deployedIndexes - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.prototype.deployedIndexes = $util.emptyArray; + DeleteIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Index etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Verifies a DeleteIndexEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Index.prototype.etag = ""; + DeleteIndexEndpointRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Index labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest */ - Index.prototype.labels = $util.emptyObject; + DeleteIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Index createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Index.prototype.createTime = null; + DeleteIndexEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Index updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Index + * Converts this DeleteIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @instance + * @returns {Object.} JSON object */ - Index.prototype.updateTime = null; + DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Index indexStats. - * @member {google.cloud.aiplatform.v1beta1.IIndexStats|null|undefined} indexStats - * @memberof google.cloud.aiplatform.v1beta1.Index + * Gets the default type url for DeleteIndexEndpointRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest"; + }; + + return DeleteIndexEndpointRequest; + })(); + + v1beta1.DeployIndexRequest = (function() { + + /** + * Properties of a DeployIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployIndexRequest + * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex + */ + + /** + * Constructs a new DeployIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployIndexRequest. + * @implements IDeployIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + */ + function DeployIndexRequest(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]]; + } + + /** + * DeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @instance */ - Index.prototype.indexStats = null; + DeployIndexRequest.prototype.indexEndpoint = ""; /** - * Index indexUpdateMethod. - * @member {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod} indexUpdateMethod - * @memberof google.cloud.aiplatform.v1beta1.Index + * DeployIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @instance */ - Index.prototype.indexUpdateMethod = 0; + DeployIndexRequest.prototype.deployedIndex = null; /** - * Creates a new Index instance using the specified properties. + * Creates a new DeployIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Index} Index instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest instance */ - Index.create = function create(properties) { - return new Index(properties); + DeployIndexRequest.create = function create(properties) { + return new DeployIndexRequest(properties); }; /** - * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Index.encode = function encode(message, writer) { + DeployIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.metadataSchemaUri); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.deployedIndexes != null && message.deployedIndexes.length) - for (var i = 0; i < message.deployedIndexes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.encode(message.deployedIndexes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.indexStats != null && Object.hasOwnProperty.call(message, "indexStats")) - $root.google.cloud.aiplatform.v1beta1.IndexStats.encode(message.indexStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.indexUpdateMethod != null && Object.hasOwnProperty.call(message, "indexUpdateMethod")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Index.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Index message from the specified reader or buffer. + * Decodes a DeployIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.decode = function decode(reader, length) { + DeployIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Index(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.indexEndpoint = reader.string(); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - message.metadataSchemaUri = reader.string(); - break; - } - case 6: { - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 7: { - if (!(message.deployedIndexes && message.deployedIndexes.length)) - message.deployedIndexes = []; - message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.decode(reader, reader.uint32())); - break; - } - case 8: { - message.etag = reader.string(); - break; - } - case 9: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 10: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 11: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.decode(reader, reader.uint32()); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; } - case 16: { - message.indexUpdateMethod = reader.int32(); + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeployIndexRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployIndexRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); + if (error) + return "deployedIndex." + error; + } + return null; + }; + + /** + * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + */ + DeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexRequest.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); + } + return message; + }; + + /** + * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployIndexRequest} message DeployIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.indexEndpoint = ""; + object.deployedIndex = null; + } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); + return object; + }; + + /** + * Converts this DeployIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @instance + * @returns {Object.} JSON object + */ + DeployIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeployIndexRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexRequest"; + }; + + return DeployIndexRequest; + })(); + + v1beta1.DeployIndexResponse = (function() { + + /** + * Properties of a DeployIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployIndexResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex + */ + + /** + * Constructs a new DeployIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployIndexResponse. + * @implements IDeployIndexResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set + */ + function DeployIndexResponse(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]]; + } + + /** + * DeployIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @instance + */ + DeployIndexResponse.prototype.deployedIndex = null; + + /** + * Creates a new DeployIndexResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse instance + */ + DeployIndexResponse.create = function create(properties) { + return new DeployIndexResponse(properties); + }; + + /** + * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployIndexResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeployIndexResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployIndexResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; } default: @@ -245764,309 +258984,128 @@ }; /** - * Decodes an Index message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.decodeDelimited = function decodeDelimited(reader) { + DeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Index message. + * Verifies a DeployIndexResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Index.verify = function verify(message) { + DeployIndexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - if (!$util.isString(message.metadataSchemaUri)) - return "metadataSchemaUri: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { - if (!Array.isArray(message.deployedIndexes)) - return "deployedIndexes: array expected"; - for (var i = 0; i < message.deployedIndexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify(message.deployedIndexes[i]); - if (error) - return "deployedIndexes." + error; - } - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.indexStats != null && message.hasOwnProperty("indexStats")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexStats.verify(message.indexStats); + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); if (error) - return "indexStats." + error; + return "deployedIndex." + error; } - if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) - switch (message.indexUpdateMethod) { - default: - return "indexUpdateMethod: enum value expected"; - case 0: - case 1: - case 2: - break; - } return null; }; /** - * Creates an Index message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse */ - Index.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Index) + DeployIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Index(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.metadataSchemaUri != null) - message.metadataSchemaUri = String(object.metadataSchemaUri); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); - } - if (object.deployedIndexes) { - if (!Array.isArray(object.deployedIndexes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: array expected"); - message.deployedIndexes = []; - for (var i = 0; i < object.deployedIndexes.length; ++i) { - if (typeof object.deployedIndexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: object expected"); - message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.fromObject(object.deployedIndexes[i]); - } - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.indexStats != null) { - if (typeof object.indexStats !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.indexStats: object expected"); - message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.fromObject(object.indexStats); - } - switch (object.indexUpdateMethod) { - default: - if (typeof object.indexUpdateMethod === "number") { - message.indexUpdateMethod = object.indexUpdateMethod; - break; - } - break; - case "INDEX_UPDATE_METHOD_UNSPECIFIED": - case 0: - message.indexUpdateMethod = 0; - break; - case "BATCH_UPDATE": - case 1: - message.indexUpdateMethod = 1; - break; - case "STREAM_UPDATE": - case 2: - message.indexUpdateMethod = 2; - break; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexResponse.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); } return message; }; /** - * Creates a plain object from an Index message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.Index} message Index + * @param {google.cloud.aiplatform.v1beta1.DeployIndexResponse} message DeployIndexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Index.toObject = function toObject(message, options) { + DeployIndexResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.deployedIndexes = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.metadataSchemaUri = ""; - object.metadata = null; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.indexStats = null; - object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - object.metadataSchemaUri = message.metadataSchemaUri; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); - if (message.deployedIndexes && message.deployedIndexes.length) { - object.deployedIndexes = []; - for (var j = 0; j < message.deployedIndexes.length; ++j) - object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.toObject(message.deployedIndexes[j], options); - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.indexStats != null && message.hasOwnProperty("indexStats")) - object.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.toObject(message.indexStats, options); - if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) - object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] === undefined ? message.indexUpdateMethod : $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; + if (options.defaults) + object.deployedIndex = null; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this Index to JSON. + * Converts this DeployIndexResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @instance * @returns {Object.} JSON object */ - Index.prototype.toJSON = function toJSON() { + DeployIndexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Index + * Gets the default type url for DeployIndexResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Index.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Index"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexResponse"; }; - /** - * IndexUpdateMethod enum. - * @name google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod - * @enum {number} - * @property {number} INDEX_UPDATE_METHOD_UNSPECIFIED=0 INDEX_UPDATE_METHOD_UNSPECIFIED value - * @property {number} BATCH_UPDATE=1 BATCH_UPDATE value - * @property {number} STREAM_UPDATE=2 STREAM_UPDATE value - */ - Index.IndexUpdateMethod = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDEX_UPDATE_METHOD_UNSPECIFIED"] = 0; - values[valuesById[1] = "BATCH_UPDATE"] = 1; - values[valuesById[2] = "STREAM_UPDATE"] = 2; - return values; - })(); - - return Index; + return DeployIndexResponse; })(); - v1beta1.IndexDatapoint = (function() { + v1beta1.DeployIndexOperationMetadata = (function() { /** - * Properties of an IndexDatapoint. + * Properties of a DeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexDatapoint - * @property {string|null} [datapointId] IndexDatapoint datapointId - * @property {Array.|null} [featureVector] IndexDatapoint featureVector - * @property {Array.|null} [restricts] IndexDatapoint restricts - * @property {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null} [crowdingTag] IndexDatapoint crowdingTag + * @interface IDeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId */ /** - * Constructs a new IndexDatapoint. + * Constructs a new DeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexDatapoint. - * @implements IIndexDatapoint + * @classdesc Represents a DeployIndexOperationMetadata. + * @implements IDeployIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set */ - function IndexDatapoint(properties) { - this.featureVector = []; - this.restricts = []; + function DeployIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246074,131 +259113,89 @@ } /** - * IndexDatapoint datapointId. - * @member {string} datapointId - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @instance - */ - IndexDatapoint.prototype.datapointId = ""; - - /** - * IndexDatapoint featureVector. - * @member {Array.} featureVector - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @instance - */ - IndexDatapoint.prototype.featureVector = $util.emptyArray; - - /** - * IndexDatapoint restricts. - * @member {Array.} restricts - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * DeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @instance */ - IndexDatapoint.prototype.restricts = $util.emptyArray; + DeployIndexOperationMetadata.prototype.genericMetadata = null; /** - * IndexDatapoint crowdingTag. - * @member {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null|undefined} crowdingTag - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * DeployIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @instance */ - IndexDatapoint.prototype.crowdingTag = null; + DeployIndexOperationMetadata.prototype.deployedIndexId = ""; /** - * Creates a new IndexDatapoint instance using the specified properties. + * Creates a new DeployIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance */ - IndexDatapoint.create = function create(properties) { - return new IndexDatapoint(properties); + DeployIndexOperationMetadata.create = function create(properties) { + return new DeployIndexOperationMetadata(properties); }; /** - * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexDatapoint.encode = function encode(message, writer) { + DeployIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datapointId != null && Object.hasOwnProperty.call(message, "datapointId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datapointId); - if (message.featureVector != null && message.featureVector.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.featureVector.length; ++i) - writer.float(message.featureVector[i]); - writer.ldelim(); - } - if (message.restricts != null && message.restricts.length) - for (var i = 0; i < message.restricts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.encode(message.restricts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.crowdingTag != null && Object.hasOwnProperty.call(message, "crowdingTag")) - $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.encode(message.crowdingTag, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexDatapoint.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexDatapoint message from the specified reader or buffer. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexDatapoint.decode = function decode(reader, length) { + DeployIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.datapointId = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.featureVector && message.featureVector.length)) - message.featureVector = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.featureVector.push(reader.float()); - } else - message.featureVector.push(reader.float()); - break; - } - case 4: { - if (!(message.restricts && message.restricts.length)) - message.restricts = []; - message.restricts.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.decode(reader, reader.uint32())); - break; - } - case 5: { - message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.decode(reader, reader.uint32()); + message.deployedIndexId = reader.string(); break; } default: @@ -246210,670 +259207,137 @@ }; /** - * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexDatapoint.decodeDelimited = function decodeDelimited(reader) { + DeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexDatapoint message. + * Verifies a DeployIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexDatapoint.verify = function verify(message) { + DeployIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.datapointId != null && message.hasOwnProperty("datapointId")) - if (!$util.isString(message.datapointId)) - return "datapointId: string expected"; - if (message.featureVector != null && message.hasOwnProperty("featureVector")) { - if (!Array.isArray(message.featureVector)) - return "featureVector: array expected"; - for (var i = 0; i < message.featureVector.length; ++i) - if (typeof message.featureVector[i] !== "number") - return "featureVector: number[] expected"; - } - if (message.restricts != null && message.hasOwnProperty("restricts")) { - if (!Array.isArray(message.restricts)) - return "restricts: array expected"; - for (var i = 0; i < message.restricts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify(message.restricts[i]); - if (error) - return "restricts." + error; - } - } - if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify(message.crowdingTag); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "crowdingTag." + error; + return "genericMetadata." + error; } + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata */ - IndexDatapoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint) + DeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint(); - if (object.datapointId != null) - message.datapointId = String(object.datapointId); - if (object.featureVector) { - if (!Array.isArray(object.featureVector)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.featureVector: array expected"); - message.featureVector = []; - for (var i = 0; i < object.featureVector.length; ++i) - message.featureVector[i] = Number(object.featureVector[i]); - } - if (object.restricts) { - if (!Array.isArray(object.restricts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: array expected"); - message.restricts = []; - for (var i = 0; i < object.restricts.length; ++i) { - if (typeof object.restricts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: object expected"); - message.restricts[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.fromObject(object.restricts[i]); - } - } - if (object.crowdingTag != null) { - if (typeof object.crowdingTag !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.crowdingTag: object expected"); - message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.fromObject(object.crowdingTag); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint} message IndexDatapoint + * @param {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexDatapoint.toObject = function toObject(message, options) { + DeployIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.featureVector = []; - object.restricts = []; - } if (options.defaults) { - object.datapointId = ""; - object.crowdingTag = null; - } - if (message.datapointId != null && message.hasOwnProperty("datapointId")) - object.datapointId = message.datapointId; - if (message.featureVector && message.featureVector.length) { - object.featureVector = []; - for (var j = 0; j < message.featureVector.length; ++j) - object.featureVector[j] = options.json && !isFinite(message.featureVector[j]) ? String(message.featureVector[j]) : message.featureVector[j]; - } - if (message.restricts && message.restricts.length) { - object.restricts = []; - for (var j = 0; j < message.restricts.length; ++j) - object.restricts[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.toObject(message.restricts[j], options); - } - if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) - object.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.toObject(message.crowdingTag, options); - return object; - }; - - /** - * Converts this IndexDatapoint to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @instance - * @returns {Object.} JSON object - */ - IndexDatapoint.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for IndexDatapoint - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IndexDatapoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint"; - }; - - IndexDatapoint.Restriction = (function() { - - /** - * Properties of a Restriction. - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @interface IRestriction - * @property {string|null} [namespace] Restriction namespace - * @property {Array.|null} [allowList] Restriction allowList - * @property {Array.|null} [denyList] Restriction denyList - */ - - /** - * Constructs a new Restriction. - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @classdesc Represents a Restriction. - * @implements IRestriction - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set - */ - function Restriction(properties) { - this.allowList = []; - this.denyList = []; - 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]]; - } - - /** - * Restriction namespace. - * @member {string} namespace - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @instance - */ - Restriction.prototype.namespace = ""; - - /** - * Restriction allowList. - * @member {Array.} allowList - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @instance - */ - Restriction.prototype.allowList = $util.emptyArray; - - /** - * Restriction denyList. - * @member {Array.} denyList - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @instance - */ - Restriction.prototype.denyList = $util.emptyArray; - - /** - * Creates a new Restriction instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction instance - */ - Restriction.create = function create(properties) { - return new Restriction(properties); - }; - - /** - * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Restriction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); - if (message.allowList != null && message.allowList.length) - for (var i = 0; i < message.allowList.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowList[i]); - if (message.denyList != null && message.denyList.length) - for (var i = 0; i < message.denyList.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.denyList[i]); - return writer; - }; - - /** - * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Restriction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Restriction message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Restriction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.namespace = reader.string(); - break; - } - case 2: { - if (!(message.allowList && message.allowList.length)) - message.allowList = []; - message.allowList.push(reader.string()); - break; - } - case 3: { - if (!(message.denyList && message.denyList.length)) - message.denyList = []; - message.denyList.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Restriction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Restriction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Restriction message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Restriction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.namespace != null && message.hasOwnProperty("namespace")) - if (!$util.isString(message.namespace)) - return "namespace: string expected"; - if (message.allowList != null && message.hasOwnProperty("allowList")) { - if (!Array.isArray(message.allowList)) - return "allowList: array expected"; - for (var i = 0; i < message.allowList.length; ++i) - if (!$util.isString(message.allowList[i])) - return "allowList: string[] expected"; - } - if (message.denyList != null && message.hasOwnProperty("denyList")) { - if (!Array.isArray(message.denyList)) - return "denyList: array expected"; - for (var i = 0; i < message.denyList.length; ++i) - if (!$util.isString(message.denyList[i])) - return "denyList: string[] expected"; - } - return null; - }; - - /** - * Creates a Restriction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction - */ - Restriction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction(); - if (object.namespace != null) - message.namespace = String(object.namespace); - if (object.allowList) { - if (!Array.isArray(object.allowList)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.allowList: array expected"); - message.allowList = []; - for (var i = 0; i < object.allowList.length; ++i) - message.allowList[i] = String(object.allowList[i]); - } - if (object.denyList) { - if (!Array.isArray(object.denyList)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.denyList: array expected"); - message.denyList = []; - for (var i = 0; i < object.denyList.length; ++i) - message.denyList[i] = String(object.denyList[i]); - } - return message; - }; - - /** - * Creates a plain object from a Restriction message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} message Restriction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Restriction.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.allowList = []; - object.denyList = []; - } - if (options.defaults) - object.namespace = ""; - if (message.namespace != null && message.hasOwnProperty("namespace")) - object.namespace = message.namespace; - if (message.allowList && message.allowList.length) { - object.allowList = []; - for (var j = 0; j < message.allowList.length; ++j) - object.allowList[j] = message.allowList[j]; - } - if (message.denyList && message.denyList.length) { - object.denyList = []; - for (var j = 0; j < message.denyList.length; ++j) - object.denyList[j] = message.denyList[j]; - } - return object; - }; - - /** - * Converts this Restriction to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @instance - * @returns {Object.} JSON object - */ - Restriction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Restriction - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Restriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction"; - }; - - return Restriction; - })(); - - IndexDatapoint.CrowdingTag = (function() { - - /** - * Properties of a CrowdingTag. - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @interface ICrowdingTag - * @property {string|null} [crowdingAttribute] CrowdingTag crowdingAttribute - */ - - /** - * Constructs a new CrowdingTag. - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @classdesc Represents a CrowdingTag. - * @implements ICrowdingTag - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set - */ - function CrowdingTag(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]]; - } - - /** - * CrowdingTag crowdingAttribute. - * @member {string} crowdingAttribute - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @instance - */ - CrowdingTag.prototype.crowdingAttribute = ""; - - /** - * Creates a new CrowdingTag instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag instance - */ - CrowdingTag.create = function create(properties) { - return new CrowdingTag(properties); - }; - - /** - * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CrowdingTag.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.crowdingAttribute != null && Object.hasOwnProperty.call(message, "crowdingAttribute")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.crowdingAttribute); - return writer; - }; - - /** - * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CrowdingTag.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CrowdingTag message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CrowdingTag.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.crowdingAttribute = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CrowdingTag.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CrowdingTag message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CrowdingTag.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) - if (!$util.isString(message.crowdingAttribute)) - return "crowdingAttribute: string expected"; - return null; - }; - - /** - * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag - */ - CrowdingTag.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag(); - if (object.crowdingAttribute != null) - message.crowdingAttribute = String(object.crowdingAttribute); - return message; - }; - - /** - * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} message CrowdingTag - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CrowdingTag.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.crowdingAttribute = ""; - if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) - object.crowdingAttribute = message.crowdingAttribute; - return object; - }; - - /** - * Converts this CrowdingTag to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @instance - * @returns {Object.} JSON object - */ - CrowdingTag.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + object.genericMetadata = null; + object.deployedIndexId = ""; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; + return object; + }; - /** - * Gets the default type url for CrowdingTag - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CrowdingTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag"; - }; + /** + * Converts this DeployIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CrowdingTag; - })(); + /** + * Gets the default type url for DeployIndexOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata"; + }; - return IndexDatapoint; + return DeployIndexOperationMetadata; })(); - v1beta1.IndexStats = (function() { + v1beta1.UndeployIndexRequest = (function() { /** - * Properties of an IndexStats. + * Properties of an UndeployIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexStats - * @property {number|Long|null} [vectorsCount] IndexStats vectorsCount - * @property {number|null} [shardsCount] IndexStats shardsCount + * @interface IUndeployIndexRequest + * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint + * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId */ /** - * Constructs a new IndexStats. + * Constructs a new UndeployIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexStats. - * @implements IIndexStats + * @classdesc Represents an UndeployIndexRequest. + * @implements IUndeployIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set */ - function IndexStats(properties) { + function UndeployIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246881,89 +259345,89 @@ } /** - * IndexStats vectorsCount. - * @member {number|Long} vectorsCount - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * UndeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @instance */ - IndexStats.prototype.vectorsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UndeployIndexRequest.prototype.indexEndpoint = ""; /** - * IndexStats shardsCount. - * @member {number} shardsCount - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * UndeployIndexRequest deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @instance */ - IndexStats.prototype.shardsCount = 0; + UndeployIndexRequest.prototype.deployedIndexId = ""; /** - * Creates a new IndexStats instance using the specified properties. + * Creates a new UndeployIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest instance */ - IndexStats.create = function create(properties) { - return new IndexStats(properties); + UndeployIndexRequest.create = function create(properties) { + return new UndeployIndexRequest(properties); }; /** - * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexStats.encode = function encode(message, writer) { + UndeployIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vectorsCount != null && Object.hasOwnProperty.call(message, "vectorsCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.vectorsCount); - if (message.shardsCount != null && Object.hasOwnProperty.call(message, "shardsCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shardsCount); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexStats.encodeDelimited = function encodeDelimited(message, writer) { + UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexStats message from the specified reader or buffer. + * Decodes an UndeployIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexStats.decode = function decode(reader, length) { + UndeployIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexStats(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.vectorsCount = reader.int64(); + message.indexEndpoint = reader.string(); break; } case 2: { - message.shardsCount = reader.int32(); + message.deployedIndexId = reader.string(); break; } default: @@ -246975,156 +259439,130 @@ }; /** - * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexStats.decodeDelimited = function decodeDelimited(reader) { + UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexStats message. + * Verifies an UndeployIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexStats.verify = function verify(message) { + UndeployIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) - if (!$util.isInteger(message.vectorsCount) && !(message.vectorsCount && $util.isInteger(message.vectorsCount.low) && $util.isInteger(message.vectorsCount.high))) - return "vectorsCount: integer|Long expected"; - if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) - if (!$util.isInteger(message.shardsCount)) - return "shardsCount: integer expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest */ - IndexStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexStats) + UndeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexStats(); - if (object.vectorsCount != null) - if ($util.Long) - (message.vectorsCount = $util.Long.fromValue(object.vectorsCount)).unsigned = false; - else if (typeof object.vectorsCount === "string") - message.vectorsCount = parseInt(object.vectorsCount, 10); - else if (typeof object.vectorsCount === "number") - message.vectorsCount = object.vectorsCount; - else if (typeof object.vectorsCount === "object") - message.vectorsCount = new $util.LongBits(object.vectorsCount.low >>> 0, object.vectorsCount.high >>> 0).toNumber(); - if (object.shardsCount != null) - message.shardsCount = object.shardsCount | 0; + var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IndexStats} message IndexStats + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} message UndeployIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexStats.toObject = function toObject(message, options) { + UndeployIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.vectorsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.vectorsCount = options.longs === String ? "0" : 0; - object.shardsCount = 0; + object.indexEndpoint = ""; + object.deployedIndexId = ""; } - if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) - if (typeof message.vectorsCount === "number") - object.vectorsCount = options.longs === String ? String(message.vectorsCount) : message.vectorsCount; - else - object.vectorsCount = options.longs === String ? $util.Long.prototype.toString.call(message.vectorsCount) : options.longs === Number ? new $util.LongBits(message.vectorsCount.low >>> 0, message.vectorsCount.high >>> 0).toNumber() : message.vectorsCount; - if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) - object.shardsCount = message.shardsCount; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this IndexStats to JSON. + * Converts this UndeployIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @instance * @returns {Object.} JSON object */ - IndexStats.prototype.toJSON = function toJSON() { + UndeployIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexStats + * Gets the default type url for UndeployIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexStats"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexRequest"; }; - return IndexStats; + return UndeployIndexRequest; })(); - v1beta1.IndexEndpoint = (function() { + v1beta1.UndeployIndexResponse = (function() { /** - * Properties of an IndexEndpoint. + * Properties of an UndeployIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexEndpoint - * @property {string|null} [name] IndexEndpoint name - * @property {string|null} [displayName] IndexEndpoint displayName - * @property {string|null} [description] IndexEndpoint description - * @property {Array.|null} [deployedIndexes] IndexEndpoint deployedIndexes - * @property {string|null} [etag] IndexEndpoint etag - * @property {Object.|null} [labels] IndexEndpoint labels - * @property {google.protobuf.ITimestamp|null} [createTime] IndexEndpoint createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime - * @property {string|null} [network] IndexEndpoint network - * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect + * @interface IUndeployIndexResponse */ /** - * Constructs a new IndexEndpoint. + * Constructs a new UndeployIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexEndpoint. - * @implements IIndexEndpoint + * @classdesc Represents an UndeployIndexResponse. + * @implements IUndeployIndexResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set */ - function IndexEndpoint(properties) { - this.deployedIndexes = []; - this.labels = {}; + function UndeployIndexResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247132,224 +259570,251 @@ } /** - * IndexEndpoint name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Creates a new UndeployIndexResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse instance */ - IndexEndpoint.prototype.name = ""; + UndeployIndexResponse.create = function create(properties) { + return new UndeployIndexResponse(properties); + }; /** - * IndexEndpoint displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.prototype.displayName = ""; + UndeployIndexResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * IndexEndpoint description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.prototype.description = ""; + UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * IndexEndpoint deployedIndexes. - * @member {Array.} deployedIndexes - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.prototype.deployedIndexes = $util.emptyArray; + UndeployIndexResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * IndexEndpoint etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.prototype.etag = ""; + UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * IndexEndpoint labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Verifies an UndeployIndexResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexEndpoint.prototype.labels = $util.emptyObject; + UndeployIndexResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * IndexEndpoint createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse */ - IndexEndpoint.prototype.createTime = null; + UndeployIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); + }; /** - * IndexEndpoint updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} message UndeployIndexResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - IndexEndpoint.prototype.updateTime = null; + UndeployIndexResponse.toObject = function toObject() { + return {}; + }; /** - * IndexEndpoint network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * Converts this UndeployIndexResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @instance + * @returns {Object.} JSON object */ - IndexEndpoint.prototype.network = ""; + UndeployIndexResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * IndexEndpoint enablePrivateServiceConnect. - * @member {boolean} enablePrivateServiceConnect - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * Gets the default type url for UndeployIndexResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UndeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexResponse"; + }; + + return UndeployIndexResponse; + })(); + + v1beta1.UndeployIndexOperationMetadata = (function() { + + /** + * Properties of an UndeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUndeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata + */ + + /** + * Constructs a new UndeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UndeployIndexOperationMetadata. + * @implements IUndeployIndexOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set + */ + function UndeployIndexOperationMetadata(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]]; + } + + /** + * UndeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @instance */ - IndexEndpoint.prototype.enablePrivateServiceConnect = false; + UndeployIndexOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new IndexEndpoint instance using the specified properties. + * Creates a new UndeployIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance */ - IndexEndpoint.create = function create(properties) { - return new IndexEndpoint(properties); + UndeployIndexOperationMetadata.create = function create(properties) { + return new UndeployIndexOperationMetadata(properties); }; /** - * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.encode = function encode(message, writer) { + UndeployIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.deployedIndexes != null && message.deployedIndexes.length) - for (var i = 0; i < message.deployedIndexes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); - if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { + UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexEndpoint message from the specified reader or buffer. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.decode = function decode(reader, length) { + UndeployIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - if (!(message.deployedIndexes && message.deployedIndexes.length)) - message.deployedIndexes = []; - message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32())); - break; - } - case 5: { - message.etag = reader.string(); - break; - } - case 6: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 7: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 9: { - message.network = reader.string(); - break; - } - case 10: { - message.enablePrivateServiceConnect = reader.bool(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -247361,250 +259826,128 @@ }; /** - * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { + UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexEndpoint message. + * Verifies an UndeployIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexEndpoint.verify = function verify(message) { + UndeployIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { - if (!Array.isArray(message.deployedIndexes)) - return "deployedIndexes: array expected"; - for (var i = 0; i < message.deployedIndexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndexes[i]); - if (error) - return "deployedIndexes." + error; - } - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "updateTime." + error; + return "genericMetadata." + error; } - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - if (typeof message.enablePrivateServiceConnect !== "boolean") - return "enablePrivateServiceConnect: boolean expected"; return null; }; /** - * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata */ - IndexEndpoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexEndpoint) + UndeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.deployedIndexes) { - if (!Array.isArray(object.deployedIndexes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: array expected"); - message.deployedIndexes = []; - for (var i = 0; i < object.deployedIndexes.length; ++i) { - if (typeof object.deployedIndexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: object expected"); - message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndexes[i]); - } - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.network != null) - message.network = String(object.network); - if (object.enablePrivateServiceConnect != null) - message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); return message; }; /** - * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. + * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} message IndexEndpoint + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexEndpoint.toObject = function toObject(message, options) { + UndeployIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.deployedIndexes = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.network = ""; - object.enablePrivateServiceConnect = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.deployedIndexes && message.deployedIndexes.length) { - object.deployedIndexes = []; - for (var j = 0; j < message.deployedIndexes.length; ++j) - object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndexes[j], options); - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this IndexEndpoint to JSON. + * Converts this UndeployIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - IndexEndpoint.prototype.toJSON = function toJSON() { + UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexEndpoint + * Gets the default type url for UndeployIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexEndpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexEndpoint"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata"; }; - return IndexEndpoint; + return UndeployIndexOperationMetadata; })(); - v1beta1.DeployedIndex = (function() { + v1beta1.MutateDeployedIndexRequest = (function() { /** - * Properties of a DeployedIndex. + * Properties of a MutateDeployedIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedIndex - * @property {string|null} [id] DeployedIndex id - * @property {string|null} [index] DeployedIndex index - * @property {string|null} [displayName] DeployedIndex displayName - * @property {google.protobuf.ITimestamp|null} [createTime] DeployedIndex createTime - * @property {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null} [privateEndpoints] DeployedIndex privateEndpoints - * @property {google.protobuf.ITimestamp|null} [indexSyncTime] DeployedIndex indexSyncTime - * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] DeployedIndex automaticResources - * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] DeployedIndex dedicatedResources - * @property {boolean|null} [enableAccessLogging] DeployedIndex enableAccessLogging - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null} [deployedIndexAuthConfig] DeployedIndex deployedIndexAuthConfig - * @property {Array.|null} [reservedIpRanges] DeployedIndex reservedIpRanges - * @property {string|null} [deploymentGroup] DeployedIndex deploymentGroup + * @interface IMutateDeployedIndexRequest + * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex */ /** - * Constructs a new DeployedIndex. + * Constructs a new MutateDeployedIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndex. - * @implements IDeployedIndex + * @classdesc Represents a MutateDeployedIndexRequest. + * @implements IMutateDeployedIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set */ - function DeployedIndex(properties) { - this.reservedIpRanges = []; + function MutateDeployedIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247612,232 +259955,306 @@ } /** - * DeployedIndex id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * MutateDeployedIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @instance */ - DeployedIndex.prototype.id = ""; + MutateDeployedIndexRequest.prototype.indexEndpoint = ""; /** - * DeployedIndex index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * MutateDeployedIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @instance */ - DeployedIndex.prototype.index = ""; + MutateDeployedIndexRequest.prototype.deployedIndex = null; /** - * DeployedIndex displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance */ - DeployedIndex.prototype.displayName = ""; + MutateDeployedIndexRequest.create = function create(properties) { + return new MutateDeployedIndexRequest(properties); + }; /** - * DeployedIndex createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - DeployedIndex.prototype.createTime = null; + MutateDeployedIndexRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * DeployedIndex privateEndpoints. - * @member {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null|undefined} privateEndpoints - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - DeployedIndex.prototype.privateEndpoints = null; + MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * DeployedIndex indexSyncTime. - * @member {google.protobuf.ITimestamp|null|undefined} indexSyncTime - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.prototype.indexSyncTime = null; + MutateDeployedIndexRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.indexEndpoint = reader.string(); + break; + } + case 2: { + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * DeployedIndex automaticResources. - * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.prototype.automaticResources = null; + MutateDeployedIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * DeployedIndex dedicatedResources. - * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Verifies a MutateDeployedIndexRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndex.prototype.dedicatedResources = null; + MutateDeployedIndexRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); + if (error) + return "deployedIndex." + error; + } + return null; + }; /** - * DeployedIndex enableAccessLogging. - * @member {boolean} enableAccessLogging - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest */ - DeployedIndex.prototype.enableAccessLogging = false; + MutateDeployedIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); + } + return message; + }; /** - * DeployedIndex deployedIndexAuthConfig. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null|undefined} deployedIndexAuthConfig - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MutateDeployedIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.indexEndpoint = ""; + object.deployedIndex = null; + } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); + return object; + }; + + /** + * Converts this MutateDeployedIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @instance + * @returns {Object.} JSON object + */ + MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MutateDeployedIndexRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MutateDeployedIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest"; + }; + + return MutateDeployedIndexRequest; + })(); + + v1beta1.MutateDeployedIndexResponse = (function() { + + /** + * Properties of a MutateDeployedIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMutateDeployedIndexResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex */ - DeployedIndex.prototype.deployedIndexAuthConfig = null; /** - * DeployedIndex reservedIpRanges. - * @member {Array.} reservedIpRanges - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Constructs a new MutateDeployedIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MutateDeployedIndexResponse. + * @implements IMutateDeployedIndexResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set */ - DeployedIndex.prototype.reservedIpRanges = $util.emptyArray; + function MutateDeployedIndexResponse(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]]; + } /** - * DeployedIndex deploymentGroup. - * @member {string} deploymentGroup - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * MutateDeployedIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @instance */ - DeployedIndex.prototype.deploymentGroup = ""; + MutateDeployedIndexResponse.prototype.deployedIndex = null; /** - * Creates a new DeployedIndex instance using the specified properties. + * Creates a new MutateDeployedIndexResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance */ - DeployedIndex.create = function create(properties) { - return new DeployedIndex(properties); + MutateDeployedIndexResponse.create = function create(properties) { + return new MutateDeployedIndexResponse(properties); }; /** - * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndex.encode = function encode(message, writer) { + MutateDeployedIndexResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.index); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) - $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.indexSyncTime != null && Object.hasOwnProperty.call(message, "indexSyncTime")) - $root.google.protobuf.Timestamp.encode(message.indexSyncTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) - $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableAccessLogging); - if (message.deployedIndexAuthConfig != null && Object.hasOwnProperty.call(message, "deployedIndexAuthConfig")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.encode(message.deployedIndexAuthConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedIpRanges != null && message.reservedIpRanges.length) - for (var i = 0; i < message.reservedIpRanges.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedIpRanges[i]); - if (message.deploymentGroup != null && Object.hasOwnProperty.call(message, "deploymentGroup")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.deploymentGroup); - if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) - $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndex message from the specified reader or buffer. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.decode = function decode(reader, length) { + MutateDeployedIndexResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.string(); - break; - } - case 2: { - message.index = reader.string(); - break; - } - case 3: { - message.displayName = reader.string(); - break; - } - case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.decode(reader, reader.uint32()); - break; - } - case 6: { - message.indexSyncTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); - break; - } - case 16: { - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); - break; - } - case 8: { - message.enableAccessLogging = reader.bool(); - break; - } - case 9: { - message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - if (!(message.reservedIpRanges && message.reservedIpRanges.length)) - message.reservedIpRanges = []; - message.reservedIpRanges.push(reader.string()); - break; - } - case 11: { - message.deploymentGroup = reader.string(); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; } default: @@ -247849,254 +260266,128 @@ }; /** - * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployedIndex message. + * Verifies a MutateDeployedIndexResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndex.verify = function verify(message) { + MutateDeployedIndexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify(message.privateEndpoints); - if (error) - return "privateEndpoints." + error; - } - if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.indexSyncTime); - if (error) - return "indexSyncTime." + error; - } - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { - var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); - if (error) - return "automaticResources." + error; - } - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { - var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); - if (error) - return "dedicatedResources." + error; - } - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - if (typeof message.enableAccessLogging !== "boolean") - return "enableAccessLogging: boolean expected"; - if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify(message.deployedIndexAuthConfig); + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); if (error) - return "deployedIndexAuthConfig." + error; - } - if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { - if (!Array.isArray(message.reservedIpRanges)) - return "reservedIpRanges: array expected"; - for (var i = 0; i < message.reservedIpRanges.length; ++i) - if (!$util.isString(message.reservedIpRanges[i])) - return "reservedIpRanges: string[] expected"; + return "deployedIndex." + error; } - if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) - if (!$util.isString(message.deploymentGroup)) - return "deploymentGroup: string expected"; return null; }; /** - * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse */ - DeployedIndex.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndex) + MutateDeployedIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); - if (object.id != null) - message.id = String(object.id); - if (object.index != null) - message.index = String(object.index); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.privateEndpoints != null) { - if (typeof object.privateEndpoints !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.privateEndpoints: object expected"); - message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.fromObject(object.privateEndpoints); - } - if (object.indexSyncTime != null) { - if (typeof object.indexSyncTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.indexSyncTime: object expected"); - message.indexSyncTime = $root.google.protobuf.Timestamp.fromObject(object.indexSyncTime); - } - if (object.automaticResources != null) { - if (typeof object.automaticResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.automaticResources: object expected"); - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); - } - if (object.dedicatedResources != null) { - if (typeof object.dedicatedResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.dedicatedResources: object expected"); - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); - } - if (object.enableAccessLogging != null) - message.enableAccessLogging = Boolean(object.enableAccessLogging); - if (object.deployedIndexAuthConfig != null) { - if (typeof object.deployedIndexAuthConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.deployedIndexAuthConfig: object expected"); - message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.fromObject(object.deployedIndexAuthConfig); - } - if (object.reservedIpRanges) { - if (!Array.isArray(object.reservedIpRanges)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.reservedIpRanges: array expected"); - message.reservedIpRanges = []; - for (var i = 0; i < object.reservedIpRanges.length; ++i) - message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); } - if (object.deploymentGroup != null) - message.deploymentGroup = String(object.deploymentGroup); return message; }; /** - * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndex} message DeployedIndex + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndex.toObject = function toObject(message, options) { + MutateDeployedIndexResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.reservedIpRanges = []; - if (options.defaults) { - object.id = ""; - object.index = ""; - object.displayName = ""; - object.createTime = null; - object.privateEndpoints = null; - object.indexSyncTime = null; - object.automaticResources = null; - object.enableAccessLogging = false; - object.deployedIndexAuthConfig = null; - object.deploymentGroup = ""; - object.dedicatedResources = null; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) - object.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.toObject(message.privateEndpoints, options); - if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) - object.indexSyncTime = $root.google.protobuf.Timestamp.toObject(message.indexSyncTime, options); - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) - object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - object.enableAccessLogging = message.enableAccessLogging; - if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) - object.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.toObject(message.deployedIndexAuthConfig, options); - if (message.reservedIpRanges && message.reservedIpRanges.length) { - object.reservedIpRanges = []; - for (var j = 0; j < message.reservedIpRanges.length; ++j) - object.reservedIpRanges[j] = message.reservedIpRanges[j]; - } - if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) - object.deploymentGroup = message.deploymentGroup; - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) - object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); + if (options.defaults) + object.deployedIndex = null; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this DeployedIndex to JSON. + * Converts this MutateDeployedIndexResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @instance * @returns {Object.} JSON object */ - DeployedIndex.prototype.toJSON = function toJSON() { + MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployedIndex + * Gets the default type url for MutateDeployedIndexResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployedIndex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateDeployedIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndex"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse"; }; - return DeployedIndex; + return MutateDeployedIndexResponse; })(); - v1beta1.DeployedIndexAuthConfig = (function() { + v1beta1.MutateDeployedIndexOperationMetadata = (function() { /** - * Properties of a DeployedIndexAuthConfig. + * Properties of a MutateDeployedIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedIndexAuthConfig - * @property {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider + * @interface IMutateDeployedIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId */ /** - * Constructs a new DeployedIndexAuthConfig. + * Constructs a new MutateDeployedIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndexAuthConfig. - * @implements IDeployedIndexAuthConfig + * @classdesc Represents a MutateDeployedIndexOperationMetadata. + * @implements IMutateDeployedIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set */ - function DeployedIndexAuthConfig(properties) { + function MutateDeployedIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248104,75 +260395,89 @@ } /** - * DeployedIndexAuthConfig authProvider. - * @member {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * MutateDeployedIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @instance */ - DeployedIndexAuthConfig.prototype.authProvider = null; + MutateDeployedIndexOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * MutateDeployedIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @instance + */ + MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; + + /** + * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance */ - DeployedIndexAuthConfig.create = function create(properties) { - return new DeployedIndexAuthConfig(properties); + MutateDeployedIndexOperationMetadata.create = function create(properties) { + return new MutateDeployedIndexOperationMetadata(properties); }; /** - * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndexAuthConfig.encode = function encode(message, writer) { + MutateDeployedIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.encode(message.authProvider, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndexAuthConfig.decode = function decode(reader, length) { + MutateDeployedIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + message.deployedIndexId = reader.string(); break; } default: @@ -248184,387 +260489,403 @@ }; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndexAuthConfig.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployedIndexAuthConfig message. + * Verifies a MutateDeployedIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndexAuthConfig.verify = function verify(message) { + MutateDeployedIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.authProvider != null && message.hasOwnProperty("authProvider")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify(message.authProvider); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "authProvider." + error; + return "genericMetadata." + error; } + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata */ - DeployedIndexAuthConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) + MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); - if (object.authProvider != null) { - if (typeof object.authProvider !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.authProvider: object expected"); - message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.fromObject(object.authProvider); + var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndexAuthConfig.toObject = function toObject(message, options) { + MutateDeployedIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.authProvider = null; - if (message.authProvider != null && message.hasOwnProperty("authProvider")) - object.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.toObject(message.authProvider, options); + if (options.defaults) { + object.genericMetadata = null; + object.deployedIndexId = ""; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this DeployedIndexAuthConfig to JSON. + * Converts this MutateDeployedIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { + MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployedIndexAuthConfig + * Gets the default type url for MutateDeployedIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployedIndexAuthConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateDeployedIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata"; }; - DeployedIndexAuthConfig.AuthProvider = (function() { + return MutateDeployedIndexOperationMetadata; + })(); - /** - * Properties of an AuthProvider. - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @interface IAuthProvider - * @property {Array.|null} [audiences] AuthProvider audiences - * @property {Array.|null} [allowedIssuers] AuthProvider allowedIssuers - */ + v1beta1.IndexService = (function() { - /** - * Constructs a new AuthProvider. - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @classdesc Represents an AuthProvider. - * @implements IAuthProvider - * @constructor - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set - */ - function AuthProvider(properties) { - this.audiences = []; - this.allowedIssuers = []; - 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]]; - } + /** + * Constructs a new IndexService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IndexService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * AuthProvider audiences. - * @member {Array.} audiences - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @instance - */ - AuthProvider.prototype.audiences = $util.emptyArray; + (IndexService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexService; - /** - * AuthProvider allowedIssuers. - * @member {Array.} allowedIssuers - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @instance - */ - AuthProvider.prototype.allowedIssuers = $util.emptyArray; + /** + * Creates new IndexService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IndexService} RPC service. Useful where requests and/or responses are streamed. + */ + IndexService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Creates a new AuthProvider instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider instance - */ - AuthProvider.create = function create(properties) { - return new AuthProvider(properties); - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|createIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef CreateIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthProvider.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.audiences != null && message.audiences.length) - for (var i = 0; i < message.audiences.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.audiences[i]); - if (message.allowedIssuers != null && message.allowedIssuers.length) - for (var i = 0; i < message.allowedIssuers.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowedIssuers[i]); - return writer; - }; + /** + * Calls CreateIndex. + * @function createIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.createIndex = function createIndex(request, callback) { + return this.rpcCall(createIndex, $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateIndex" }); - /** - * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthProvider.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls CreateIndex. + * @function createIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes an AuthProvider message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthProvider.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.audiences && message.audiences.length)) - message.audiences = []; - message.audiences.push(reader.string()); - break; - } - case 2: { - if (!(message.allowedIssuers && message.allowedIssuers.length)) - message.allowedIssuers = []; - message.allowedIssuers.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|getIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef GetIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Index} [response] Index + */ - /** - * Decodes an AuthProvider message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthProvider.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls GetIndex. + * @function getIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback} callback Node-style callback called with the error, if any, and Index + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.getIndex = function getIndex(request, callback) { + return this.rpcCall(getIndex, $root.google.cloud.aiplatform.v1beta1.GetIndexRequest, $root.google.cloud.aiplatform.v1beta1.Index, request, callback); + }, "name", { value: "GetIndex" }); - /** - * Verifies an AuthProvider message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuthProvider.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.audiences != null && message.hasOwnProperty("audiences")) { - if (!Array.isArray(message.audiences)) - return "audiences: array expected"; - for (var i = 0; i < message.audiences.length; ++i) - if (!$util.isString(message.audiences[i])) - return "audiences: string[] expected"; - } - if (message.allowedIssuers != null && message.hasOwnProperty("allowedIssuers")) { - if (!Array.isArray(message.allowedIssuers)) - return "allowedIssuers: array expected"; - for (var i = 0; i < message.allowedIssuers.length; ++i) - if (!$util.isString(message.allowedIssuers[i])) - return "allowedIssuers: string[] expected"; - } - return null; - }; + /** + * Calls GetIndex. + * @function getIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider - */ - AuthProvider.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); - if (object.audiences) { - if (!Array.isArray(object.audiences)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.audiences: array expected"); - message.audiences = []; - for (var i = 0; i < object.audiences.length; ++i) - message.audiences[i] = String(object.audiences[i]); - } - if (object.allowedIssuers) { - if (!Array.isArray(object.allowedIssuers)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.allowedIssuers: array expected"); - message.allowedIssuers = []; - for (var i = 0; i < object.allowedIssuers.length; ++i) - message.allowedIssuers[i] = String(object.allowedIssuers[i]); - } - return message; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|listIndexes}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef ListIndexesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} [response] ListIndexesResponse + */ - /** - * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} message AuthProvider - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AuthProvider.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.audiences = []; - object.allowedIssuers = []; - } - if (message.audiences && message.audiences.length) { - object.audiences = []; - for (var j = 0; j < message.audiences.length; ++j) - object.audiences[j] = message.audiences[j]; - } - if (message.allowedIssuers && message.allowedIssuers.length) { - object.allowedIssuers = []; - for (var j = 0; j < message.allowedIssuers.length; ++j) - object.allowedIssuers[j] = message.allowedIssuers[j]; - } - return object; - }; + /** + * Calls ListIndexes. + * @function listIndexes + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback} callback Node-style callback called with the error, if any, and ListIndexesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.listIndexes = function listIndexes(request, callback) { + return this.rpcCall(listIndexes, $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse, request, callback); + }, "name", { value: "ListIndexes" }); - /** - * Converts this AuthProvider to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @instance - * @returns {Object.} JSON object - */ - AuthProvider.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls ListIndexes. + * @function listIndexes + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Gets the default type url for AuthProvider - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AuthProvider.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider"; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|updateIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef UpdateIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - return AuthProvider; - })(); + /** + * Calls UpdateIndex. + * @function updateIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.updateIndex = function updateIndex(request, callback) { + return this.rpcCall(updateIndex, $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateIndex" }); - return DeployedIndexAuthConfig; + /** + * Calls UpdateIndex. + * @function updateIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef DeleteIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteIndex. + * @function deleteIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.deleteIndex = function deleteIndex(request, callback) { + return this.rpcCall(deleteIndex, $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteIndex" }); + + /** + * Calls DeleteIndex. + * @function deleteIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef UpsertDatapointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} [response] UpsertDatapointsResponse + */ + + /** + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback} callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.upsertDatapoints = function upsertDatapoints(request, callback) { + return this.rpcCall(upsertDatapoints, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, request, callback); + }, "name", { value: "UpsertDatapoints" }); + + /** + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef RemoveDatapointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} [response] RemoveDatapointsResponse + */ + + /** + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback} callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.removeDatapoints = function removeDatapoints(request, callback) { + return this.rpcCall(removeDatapoints, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, request, callback); + }, "name", { value: "RemoveDatapoints" }); + + /** + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return IndexService; })(); - v1beta1.IndexPrivateEndpoints = (function() { + v1beta1.CreateIndexRequest = (function() { /** - * Properties of an IndexPrivateEndpoints. + * Properties of a CreateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexPrivateEndpoints - * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress - * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment + * @interface ICreateIndexRequest + * @property {string|null} [parent] CreateIndexRequest parent + * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] CreateIndexRequest index */ /** - * Constructs a new IndexPrivateEndpoints. + * Constructs a new CreateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexPrivateEndpoints. - * @implements IIndexPrivateEndpoints + * @classdesc Represents a CreateIndexRequest. + * @implements ICreateIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set */ - function IndexPrivateEndpoints(properties) { + function CreateIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248572,89 +260893,89 @@ } /** - * IndexPrivateEndpoints matchGrpcAddress. - * @member {string} matchGrpcAddress - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * CreateIndexRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @instance */ - IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; + CreateIndexRequest.prototype.parent = ""; /** - * IndexPrivateEndpoints serviceAttachment. - * @member {string} serviceAttachment - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * CreateIndexRequest index. + * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @instance */ - IndexPrivateEndpoints.prototype.serviceAttachment = ""; + CreateIndexRequest.prototype.index = null; /** - * Creates a new IndexPrivateEndpoints instance using the specified properties. + * Creates a new CreateIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest instance */ - IndexPrivateEndpoints.create = function create(properties) { - return new IndexPrivateEndpoints(properties); + CreateIndexRequest.create = function create(properties) { + return new CreateIndexRequest(properties); }; /** - * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexPrivateEndpoints.encode = function encode(message, writer) { + CreateIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.matchGrpcAddress != null && Object.hasOwnProperty.call(message, "matchGrpcAddress")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); - if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexPrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { + CreateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * Decodes a CreateIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexPrivateEndpoints.decode = function decode(reader, length) { + CreateIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.matchGrpcAddress = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.serviceAttachment = reader.string(); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); break; } default: @@ -248666,431 +260987,373 @@ }; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexPrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { + CreateIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexPrivateEndpoints message. + * Verifies a CreateIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexPrivateEndpoints.verify = function verify(message) { + CreateIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) - if (!$util.isString(message.matchGrpcAddress)) - return "matchGrpcAddress: string expected"; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - if (!$util.isString(message.serviceAttachment)) - return "serviceAttachment: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.index != null && message.hasOwnProperty("index")) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); + if (error) + return "index." + error; + } return null; }; /** - * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest */ - IndexPrivateEndpoints.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) + CreateIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); - if (object.matchGrpcAddress != null) - message.matchGrpcAddress = String(object.matchGrpcAddress); - if (object.serviceAttachment != null) - message.serviceAttachment = String(object.serviceAttachment); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.index != null) { + if (typeof object.index !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexRequest.index: object expected"); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); + } return message; }; /** - * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. + * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} message IndexPrivateEndpoints + * @param {google.cloud.aiplatform.v1beta1.CreateIndexRequest} message CreateIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexPrivateEndpoints.toObject = function toObject(message, options) { + CreateIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.matchGrpcAddress = ""; - object.serviceAttachment = ""; + object.parent = ""; + object.index = null; } - if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) - object.matchGrpcAddress = message.matchGrpcAddress; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - object.serviceAttachment = message.serviceAttachment; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.index != null && message.hasOwnProperty("index")) + object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); return object; }; /** - * Converts this IndexPrivateEndpoints to JSON. + * Converts this CreateIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @instance * @returns {Object.} JSON object */ - IndexPrivateEndpoints.prototype.toJSON = function toJSON() { + CreateIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexPrivateEndpoints + * Gets the default type url for CreateIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexPrivateEndpoints.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexRequest"; }; - return IndexPrivateEndpoints; + return CreateIndexRequest; })(); - v1beta1.IndexEndpointService = (function() { + v1beta1.CreateIndexOperationMetadata = (function() { /** - * Constructs a new IndexEndpointService service. + * Properties of a CreateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexEndpointService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function IndexEndpointService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (IndexEndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexEndpointService; - - /** - * Creates new IndexEndpointService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IndexEndpointService} RPC service. Useful where requests and/or responses are streamed. - */ - IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|createIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef CreateIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.createIndexEndpoint = function createIndexEndpoint(request, callback) { - return this.rpcCall(createIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateIndexEndpoint" }); - - /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|getIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef GetIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint - */ - - /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.getIndexEndpoint = function getIndexEndpoint(request, callback) { - return this.rpcCall(getIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); - }, "name", { value: "GetIndexEndpoint" }); - - /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|listIndexEndpoints}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef ListIndexEndpointsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} [response] ListIndexEndpointsResponse - */ - - /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback} callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.listIndexEndpoints = function listIndexEndpoints(request, callback) { - return this.rpcCall(listIndexEndpoints, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, request, callback); - }, "name", { value: "ListIndexEndpoints" }); - - /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|updateIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef UpdateIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint + * @interface ICreateIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint - * @returns {undefined} - * @variation 1 + * Constructs a new CreateIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateIndexOperationMetadata. + * @implements ICreateIndexOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set */ - Object.defineProperty(IndexEndpointService.prototype.updateIndexEndpoint = function updateIndexEndpoint(request, callback) { - return this.rpcCall(updateIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); - }, "name", { value: "UpdateIndexEndpoint" }); + function CreateIndexOperationMetadata(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]]; + } /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * CreateIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deleteIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef DeleteIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + CreateIndexOperationMetadata.prototype.genericMetadata = null; /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(IndexEndpointService.prototype.deleteIndexEndpoint = function deleteIndexEndpoint(request, callback) { - return this.rpcCall(deleteIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteIndexEndpoint" }); + CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new CreateIndexOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata instance */ + CreateIndexOperationMetadata.create = function create(properties) { + return new CreateIndexOperationMetadata(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deployIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef DeployIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateIndexOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(IndexEndpointService.prototype.deployIndex = function deployIndex(request, callback) { - return this.rpcCall(deployIndex, $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeployIndex" }); + CreateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateIndexOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|undeployIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef UndeployIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Verifies a CreateIndexOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(IndexEndpointService.prototype.undeployIndex = function undeployIndex(request, callback) { - return this.rpcCall(undeployIndex, $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UndeployIndex" }); + CreateIndexOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (error) + return "nearestNeighborSearchOperationMetadata." + error; + } + return null; + }; /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata */ + CreateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.nearestNeighborSearchOperationMetadata != null) { + if (typeof object.nearestNeighborSearchOperationMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|mutateDeployedIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef MutateDeployedIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} message CreateIndexOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CreateIndexOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) + object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + return object; + }; /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Converts this CreateIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata * @instance - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(IndexEndpointService.prototype.mutateDeployedIndex = function mutateDeployedIndex(request, callback) { - return this.rpcCall(mutateDeployedIndex, $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "MutateDeployedIndex" }); + CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for CreateIndexOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CreateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata"; + }; - return IndexEndpointService; + return CreateIndexOperationMetadata; })(); - v1beta1.CreateIndexEndpointRequest = (function() { + v1beta1.GetIndexRequest = (function() { /** - * Properties of a CreateIndexEndpointRequest. + * Properties of a GetIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexEndpointRequest - * @property {string|null} [parent] CreateIndexEndpointRequest parent - * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] CreateIndexEndpointRequest indexEndpoint + * @interface IGetIndexRequest + * @property {string|null} [name] GetIndexRequest name */ /** - * Constructs a new CreateIndexEndpointRequest. + * Constructs a new GetIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexEndpointRequest. - * @implements ICreateIndexEndpointRequest + * @classdesc Represents a GetIndexRequest. + * @implements IGetIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set */ - function CreateIndexEndpointRequest(properties) { + function GetIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249098,89 +261361,75 @@ } /** - * CreateIndexEndpointRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @instance - */ - CreateIndexEndpointRequest.prototype.parent = ""; - - /** - * CreateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * GetIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @instance */ - CreateIndexEndpointRequest.prototype.indexEndpoint = null; + GetIndexRequest.prototype.name = ""; /** - * Creates a new CreateIndexEndpointRequest instance using the specified properties. + * Creates a new GetIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest instance */ - CreateIndexEndpointRequest.create = function create(properties) { - return new CreateIndexEndpointRequest(properties); + GetIndexRequest.create = function create(properties) { + return new GetIndexRequest(properties); }; /** - * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointRequest.encode = function encode(message, writer) { + GetIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a GetIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointRequest.decode = function decode(reader, length) { + GetIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -249192,136 +261441,126 @@ }; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIndexEndpointRequest message. + * Verifies a GetIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIndexEndpointRequest.verify = function verify(message) { + GetIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); - if (error) - return "indexEndpoint." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest */ - CreateIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) + GetIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.indexEndpoint != null) { - if (typeof object.indexEndpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.indexEndpoint: object expected"); - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} message CreateIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.GetIndexRequest} message GetIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexEndpointRequest.toObject = function toObject(message, options) { + GetIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.indexEndpoint = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateIndexEndpointRequest to JSON. + * Converts this GetIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @instance * @returns {Object.} JSON object */ - CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { + GetIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateIndexEndpointRequest + * Gets the default type url for GetIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetIndexRequest"; }; - return CreateIndexEndpointRequest; + return GetIndexRequest; })(); - v1beta1.CreateIndexEndpointOperationMetadata = (function() { + v1beta1.ListIndexesRequest = (function() { /** - * Properties of a CreateIndexEndpointOperationMetadata. + * Properties of a ListIndexesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexEndpointOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata + * @interface IListIndexesRequest + * @property {string|null} [parent] ListIndexesRequest parent + * @property {string|null} [filter] ListIndexesRequest filter + * @property {number|null} [pageSize] ListIndexesRequest pageSize + * @property {string|null} [pageToken] ListIndexesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexesRequest readMask */ /** - * Constructs a new CreateIndexEndpointOperationMetadata. + * Constructs a new ListIndexesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexEndpointOperationMetadata. - * @implements ICreateIndexEndpointOperationMetadata + * @classdesc Represents a ListIndexesRequest. + * @implements IListIndexesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set */ - function CreateIndexEndpointOperationMetadata(properties) { + function ListIndexesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249329,75 +261568,131 @@ } /** - * CreateIndexEndpointOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * ListIndexesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance */ - CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; + ListIndexesRequest.prototype.parent = ""; /** - * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. + * ListIndexesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.filter = ""; + + /** + * ListIndexesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.pageSize = 0; + + /** + * ListIndexesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.pageToken = ""; + + /** + * ListIndexesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.readMask = null; + + /** + * Creates a new ListIndexesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest instance */ - CreateIndexEndpointOperationMetadata.create = function create(properties) { - return new CreateIndexEndpointOperationMetadata(properties); + ListIndexesRequest.create = function create(properties) { + return new ListIndexesRequest(properties); }; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { + ListIndexesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. + * Decodes a ListIndexesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointOperationMetadata.decode = function decode(reader, length) { + ListIndexesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -249409,127 +261704,162 @@ }; /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListIndexesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIndexEndpointOperationMetadata message. + * Verifies a ListIndexesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIndexEndpointOperationMetadata.verify = function verify(message) { + ListIndexesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "genericMetadata." + error; + return "readMask." + error; } return null; }; /** - * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest */ - CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) + ListIndexesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListIndexesRequest} message ListIndexesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexEndpointOperationMetadata.toObject = function toObject(message, options) { + ListIndexesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this CreateIndexEndpointOperationMetadata to JSON. + * Converts this ListIndexesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance * @returns {Object.} JSON object */ - CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { + ListIndexesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateIndexEndpointOperationMetadata + * Gets the default type url for ListIndexesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateIndexEndpointOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListIndexesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexesRequest"; }; - return CreateIndexEndpointOperationMetadata; + return ListIndexesRequest; })(); - v1beta1.GetIndexEndpointRequest = (function() { + v1beta1.ListIndexesResponse = (function() { /** - * Properties of a GetIndexEndpointRequest. + * Properties of a ListIndexesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetIndexEndpointRequest - * @property {string|null} [name] GetIndexEndpointRequest name + * @interface IListIndexesResponse + * @property {Array.|null} [indexes] ListIndexesResponse indexes + * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken */ /** - * Constructs a new GetIndexEndpointRequest. + * Constructs a new ListIndexesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetIndexEndpointRequest. - * @implements IGetIndexEndpointRequest + * @classdesc Represents a ListIndexesResponse. + * @implements IListIndexesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set */ - function GetIndexEndpointRequest(properties) { + function ListIndexesResponse(properties) { + this.indexes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249537,75 +261867,92 @@ } /** - * GetIndexEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * ListIndexesResponse indexes. + * @member {Array.} indexes + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance */ - GetIndexEndpointRequest.prototype.name = ""; + ListIndexesResponse.prototype.indexes = $util.emptyArray; /** - * Creates a new GetIndexEndpointRequest instance using the specified properties. + * ListIndexesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @instance + */ + ListIndexesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListIndexesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse instance */ - GetIndexEndpointRequest.create = function create(properties) { - return new GetIndexEndpointRequest(properties); + ListIndexesResponse.create = function create(properties) { + return new ListIndexesResponse(properties); }; /** - * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexEndpointRequest.encode = function encode(message, writer) { + ListIndexesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.indexes != null && message.indexes.length) + for (var i = 0; i < message.indexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Index.encode(message.indexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * Decodes a ListIndexesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexEndpointRequest.decode = function decode(reader, length) { + ListIndexesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.indexes && message.indexes.length)) + message.indexes = []; + message.indexes.push($root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -249617,126 +261964,149 @@ }; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + ListIndexesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIndexEndpointRequest message. + * Verifies a ListIndexesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIndexEndpointRequest.verify = function verify(message) { + ListIndexesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.indexes != null && message.hasOwnProperty("indexes")) { + if (!Array.isArray(message.indexes)) + return "indexes: array expected"; + for (var i = 0; i < message.indexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.indexes[i]); + if (error) + return "indexes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse */ - GetIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) + ListIndexesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); + if (object.indexes) { + if (!Array.isArray(object.indexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: array expected"); + message.indexes = []; + for (var i = 0; i < object.indexes.length; ++i) { + if (typeof object.indexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: object expected"); + message.indexes[i] = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.indexes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} message GetIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} message ListIndexesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIndexEndpointRequest.toObject = function toObject(message, options) { + ListIndexesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.indexes = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.indexes && message.indexes.length) { + object.indexes = []; + for (var j = 0; j < message.indexes.length; ++j) + object.indexes[j] = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.indexes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetIndexEndpointRequest to JSON. + * Converts this ListIndexesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance * @returns {Object.} JSON object */ - GetIndexEndpointRequest.prototype.toJSON = function toJSON() { + ListIndexesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIndexEndpointRequest + * Gets the default type url for ListIndexesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListIndexesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexesResponse"; }; - return GetIndexEndpointRequest; + return ListIndexesResponse; })(); - v1beta1.ListIndexEndpointsRequest = (function() { + v1beta1.UpdateIndexRequest = (function() { /** - * Properties of a ListIndexEndpointsRequest. + * Properties of an UpdateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexEndpointsRequest - * @property {string|null} [parent] ListIndexEndpointsRequest parent - * @property {string|null} [filter] ListIndexEndpointsRequest filter - * @property {number|null} [pageSize] ListIndexEndpointsRequest pageSize - * @property {string|null} [pageToken] ListIndexEndpointsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexEndpointsRequest readMask + * @interface IUpdateIndexRequest + * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] UpdateIndexRequest index + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexRequest updateMask */ /** - * Constructs a new ListIndexEndpointsRequest. + * Constructs a new UpdateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexEndpointsRequest. - * @implements IListIndexEndpointsRequest + * @classdesc Represents an UpdateIndexRequest. + * @implements IUpdateIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set */ - function ListIndexEndpointsRequest(properties) { + function UpdateIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249744,131 +262114,89 @@ } /** - * ListIndexEndpointsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest - * @instance - */ - ListIndexEndpointsRequest.prototype.parent = ""; - - /** - * ListIndexEndpointsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest - * @instance - */ - ListIndexEndpointsRequest.prototype.filter = ""; - - /** - * ListIndexEndpointsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest - * @instance - */ - ListIndexEndpointsRequest.prototype.pageSize = 0; - - /** - * ListIndexEndpointsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * UpdateIndexRequest index. + * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance */ - ListIndexEndpointsRequest.prototype.pageToken = ""; + UpdateIndexRequest.prototype.index = null; /** - * ListIndexEndpointsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * UpdateIndexRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance */ - ListIndexEndpointsRequest.prototype.readMask = null; + UpdateIndexRequest.prototype.updateMask = null; /** - * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * Creates a new UpdateIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest instance */ - ListIndexEndpointsRequest.create = function create(properties) { - return new ListIndexEndpointsRequest(properties); + UpdateIndexRequest.create = function create(properties) { + return new UpdateIndexRequest(properties); }; /** - * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsRequest.encode = function encode(message, writer) { + UpdateIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * Decodes an UpdateIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsRequest.decode = function decode(reader, length) { + UpdateIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -249880,162 +262208,142 @@ }; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexEndpointsRequest message. + * Verifies an UpdateIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexEndpointsRequest.verify = function verify(message) { + UpdateIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.index != null && message.hasOwnProperty("index")) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); if (error) - return "readMask." + error; + return "index." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest */ - ListIndexEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + UpdateIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); + if (object.index != null) { + if (typeof object.index !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.index: object expected"); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} message UpdateIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexEndpointsRequest.toObject = function toObject(message, options) { + UpdateIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.index = null; + object.updateMask = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.index != null && message.hasOwnProperty("index")) + object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListIndexEndpointsRequest to JSON. + * Converts this UpdateIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance * @returns {Object.} JSON object */ - ListIndexEndpointsRequest.prototype.toJSON = function toJSON() { + UpdateIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIndexEndpointsRequest + * Gets the default type url for UpdateIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIndexEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexRequest"; }; - return ListIndexEndpointsRequest; + return UpdateIndexRequest; })(); - v1beta1.ListIndexEndpointsResponse = (function() { + v1beta1.UpdateIndexOperationMetadata = (function() { /** - * Properties of a ListIndexEndpointsResponse. + * Properties of an UpdateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexEndpointsResponse - * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints - * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken + * @interface IUpdateIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateIndexOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ /** - * Constructs a new ListIndexEndpointsResponse. + * Constructs a new UpdateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexEndpointsResponse. - * @implements IListIndexEndpointsResponse + * @classdesc Represents an UpdateIndexOperationMetadata. + * @implements IUpdateIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set */ - function ListIndexEndpointsResponse(properties) { - this.indexEndpoints = []; + function UpdateIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250043,92 +262351,89 @@ } /** - * ListIndexEndpointsResponse indexEndpoints. - * @member {Array.} indexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * UpdateIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance */ - ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; + UpdateIndexOperationMetadata.prototype.genericMetadata = null; /** - * ListIndexEndpointsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance */ - ListIndexEndpointsResponse.prototype.nextPageToken = ""; + UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; /** - * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance */ - ListIndexEndpointsResponse.create = function create(properties) { - return new ListIndexEndpointsResponse(properties); + UpdateIndexOperationMetadata.create = function create(properties) { + return new UpdateIndexOperationMetadata(properties); }; /** - * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsResponse.encode = function encode(message, writer) { + UpdateIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoints != null && message.indexEndpoints.length) - for (var i = 0; i < message.indexEndpoints.length; ++i) - $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsResponse.decode = function decode(reader, length) { + UpdateIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.indexEndpoints && message.indexEndpoints.length)) - message.indexEndpoints = []; - message.indexEndpoints.push($root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32())); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -250140,149 +262445,141 @@ }; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexEndpointsResponse message. + * Verifies an UpdateIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexEndpointsResponse.verify = function verify(message) { + UpdateIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoints != null && message.hasOwnProperty("indexEndpoints")) { - if (!Array.isArray(message.indexEndpoints)) - return "indexEndpoints: array expected"; - for (var i = 0; i < message.indexEndpoints.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoints[i]); - if (error) - return "indexEndpoints." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (error) + return "nearestNeighborSearchOperationMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata */ - ListIndexEndpointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) + UpdateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); - if (object.indexEndpoints) { - if (!Array.isArray(object.indexEndpoints)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: array expected"); - message.indexEndpoints = []; - for (var i = 0; i < object.indexEndpoints.length; ++i) { - if (typeof object.indexEndpoints[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: object expected"); - message.indexEndpoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoints[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.nearestNeighborSearchOperationMetadata != null) { + if (typeof object.nearestNeighborSearchOperationMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexEndpointsResponse.toObject = function toObject(message, options) { + UpdateIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.indexEndpoints = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.indexEndpoints && message.indexEndpoints.length) { - object.indexEndpoints = []; - for (var j = 0; j < message.indexEndpoints.length; ++j) - object.indexEndpoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoints[j], options); + if (options.defaults) { + object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) + object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); return object; }; /** - * Converts this ListIndexEndpointsResponse to JSON. + * Converts this UpdateIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { + UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIndexEndpointsResponse + * Gets the default type url for UpdateIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIndexEndpointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata"; }; - return ListIndexEndpointsResponse; + return UpdateIndexOperationMetadata; })(); - v1beta1.UpdateIndexEndpointRequest = (function() { + v1beta1.DeleteIndexRequest = (function() { /** - * Properties of an UpdateIndexEndpointRequest. + * Properties of a DeleteIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateIndexEndpointRequest - * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] UpdateIndexEndpointRequest indexEndpoint - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexEndpointRequest updateMask + * @interface IDeleteIndexRequest + * @property {string|null} [name] DeleteIndexRequest name */ /** - * Constructs a new UpdateIndexEndpointRequest. + * Constructs a new DeleteIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexEndpointRequest. - * @implements IUpdateIndexEndpointRequest + * @classdesc Represents a DeleteIndexRequest. + * @implements IDeleteIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set */ - function UpdateIndexEndpointRequest(properties) { + function DeleteIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250290,89 +262587,75 @@ } /** - * UpdateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest - * @instance - */ - UpdateIndexEndpointRequest.prototype.indexEndpoint = null; - - /** - * UpdateIndexEndpointRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * DeleteIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @instance */ - UpdateIndexEndpointRequest.prototype.updateMask = null; + DeleteIndexRequest.prototype.name = ""; /** - * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * Creates a new DeleteIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance */ - UpdateIndexEndpointRequest.create = function create(properties) { - return new UpdateIndexEndpointRequest(properties); + DeleteIndexRequest.create = function create(properties) { + return new DeleteIndexRequest(properties); }; /** - * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexEndpointRequest.encode = function encode(message, writer) { + DeleteIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a DeleteIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexEndpointRequest.decode = function decode(reader, length) { + DeleteIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -250384,141 +262667,124 @@ }; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexEndpointRequest message. + * Verifies a DeleteIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexEndpointRequest.verify = function verify(message) { + DeleteIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); - if (error) - return "indexEndpoint." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest */ - UpdateIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) + DeleteIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); - if (object.indexEndpoint != null) { - if (typeof object.indexEndpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.indexEndpoint: object expected"); - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexEndpointRequest.toObject = function toObject(message, options) { + DeleteIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.indexEndpoint = null; - object.updateMask = null; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateIndexEndpointRequest to JSON. + * Converts this DeleteIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @instance * @returns {Object.} JSON object */ - UpdateIndexEndpointRequest.prototype.toJSON = function toJSON() { + DeleteIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateIndexEndpointRequest + * Gets the default type url for DeleteIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexRequest"; }; - return UpdateIndexEndpointRequest; + return DeleteIndexRequest; })(); - v1beta1.DeleteIndexEndpointRequest = (function() { + v1beta1.UpsertDatapointsRequest = (function() { /** - * Properties of a DeleteIndexEndpointRequest. + * Properties of an UpsertDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteIndexEndpointRequest - * @property {string|null} [name] DeleteIndexEndpointRequest name + * @interface IUpsertDatapointsRequest + * @property {string|null} [index] UpsertDatapointsRequest index + * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints */ /** - * Constructs a new DeleteIndexEndpointRequest. + * Constructs a new UpsertDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteIndexEndpointRequest. - * @implements IDeleteIndexEndpointRequest + * @classdesc Represents an UpsertDatapointsRequest. + * @implements IUpsertDatapointsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set */ - function DeleteIndexEndpointRequest(properties) { + function UpsertDatapointsRequest(properties) { + this.datapoints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250526,75 +262792,92 @@ } /** - * DeleteIndexEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * UpsertDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @instance */ - DeleteIndexEndpointRequest.prototype.name = ""; + UpsertDatapointsRequest.prototype.index = ""; /** - * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * UpsertDatapointsRequest datapoints. + * @member {Array.} datapoints + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @instance + */ + UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; + + /** + * Creates a new UpsertDatapointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest instance */ - DeleteIndexEndpointRequest.create = function create(properties) { - return new DeleteIndexEndpointRequest(properties); + UpsertDatapointsRequest.create = function create(properties) { + return new UpsertDatapointsRequest(properties); }; /** - * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexEndpointRequest.encode = function encode(message, writer) { + UpsertDatapointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapoints != null && message.datapoints.length) + for (var i = 0; i < message.datapoints.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.encode(message.datapoints[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpsertDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexEndpointRequest.decode = function decode(reader, length) { + UpsertDatapointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.index = reader.string(); + break; + } + case 2: { + if (!(message.datapoints && message.datapoints.length)) + message.datapoints = []; + message.datapoints.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32())); break; } default: @@ -250606,123 +262889,147 @@ }; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + UpsertDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIndexEndpointRequest message. + * Verifies an UpsertDatapointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIndexEndpointRequest.verify = function verify(message) { + UpsertDatapointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapoints != null && message.hasOwnProperty("datapoints")) { + if (!Array.isArray(message.datapoints)) + return "datapoints: array expected"; + for (var i = 0; i < message.datapoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.verify(message.datapoints[i]); + if (error) + return "datapoints." + error; + } + } return null; }; /** - * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest */ - DeleteIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + UpsertDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapoints) { + if (!Array.isArray(object.datapoints)) + throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: array expected"); + message.datapoints = []; + for (var i = 0; i < object.datapoints.length; ++i) { + if (typeof object.datapoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: object expected"); + message.datapoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoints[i]); + } + } return message; }; /** - * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} message UpsertDatapointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexEndpointRequest.toObject = function toObject(message, options) { + UpsertDatapointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.datapoints = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapoints && message.datapoints.length) { + object.datapoints = []; + for (var j = 0; j < message.datapoints.length; ++j) + object.datapoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoints[j], options); + } return object; }; /** - * Converts this DeleteIndexEndpointRequest to JSON. + * Converts this UpsertDatapointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @instance * @returns {Object.} JSON object */ - DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { + UpsertDatapointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteIndexEndpointRequest + * Gets the default type url for UpsertDatapointsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpsertDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest"; }; - return DeleteIndexEndpointRequest; + return UpsertDatapointsRequest; })(); - v1beta1.DeployIndexRequest = (function() { + v1beta1.UpsertDatapointsResponse = (function() { /** - * Properties of a DeployIndexRequest. + * Properties of an UpsertDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexRequest - * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex + * @interface IUpsertDatapointsResponse */ /** - * Constructs a new DeployIndexRequest. + * Constructs a new UpsertDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexRequest. - * @implements IDeployIndexRequest + * @classdesc Represents an UpsertDatapointsResponse. + * @implements IUpsertDatapointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set */ - function DeployIndexRequest(properties) { + function UpsertDatapointsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250730,91 +263037,63 @@ } /** - * DeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest - * @instance - */ - DeployIndexRequest.prototype.indexEndpoint = ""; - - /** - * DeployIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest - * @instance - */ - DeployIndexRequest.prototype.deployedIndex = null; - - /** - * Creates a new DeployIndexRequest instance using the specified properties. + * Creates a new UpsertDatapointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse instance */ - DeployIndexRequest.create = function create(properties) { - return new DeployIndexRequest(properties); + UpsertDatapointsResponse.create = function create(properties) { + return new UpsertDatapointsResponse(properties); }; /** - * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexRequest.encode = function encode(message, writer) { + UpsertDatapointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpsertDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexRequest.decode = function decode(reader, length) { + UpsertDatapointsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse(); while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.indexEndpoint = reader.string(); - break; - } - case 2: { - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); - break; - } + var tag = reader.uint32(); + switch (tag >>> 3) { default: reader.skipType(tag & 7); break; @@ -250824,136 +263103,111 @@ }; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + UpsertDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexRequest message. + * Verifies an UpsertDatapointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexRequest.verify = function verify(message) { + UpsertDatapointsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; - } return null; }; /** - * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse */ - DeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest) + UpsertDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexRequest.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse(); }; /** - * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexRequest} message DeployIndexRequest + * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} message UpsertDatapointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); - return object; + UpsertDatapointsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this DeployIndexRequest to JSON. + * Converts this UpsertDatapointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @instance * @returns {Object.} JSON object */ - DeployIndexRequest.prototype.toJSON = function toJSON() { + UpsertDatapointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployIndexRequest + * Gets the default type url for UpsertDatapointsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpsertDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse"; }; - return DeployIndexRequest; + return UpsertDatapointsResponse; })(); - v1beta1.DeployIndexResponse = (function() { + v1beta1.RemoveDatapointsRequest = (function() { /** - * Properties of a DeployIndexResponse. + * Properties of a RemoveDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex + * @interface IRemoveDatapointsRequest + * @property {string|null} [index] RemoveDatapointsRequest index + * @property {Array.|null} [datapointIds] RemoveDatapointsRequest datapointIds */ /** - * Constructs a new DeployIndexResponse. + * Constructs a new RemoveDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexResponse. - * @implements IDeployIndexResponse + * @classdesc Represents a RemoveDatapointsRequest. + * @implements IRemoveDatapointsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set */ - function DeployIndexResponse(properties) { + function RemoveDatapointsRequest(properties) { + this.datapointIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250961,75 +263215,92 @@ } /** - * DeployIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * RemoveDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @instance */ - DeployIndexResponse.prototype.deployedIndex = null; + RemoveDatapointsRequest.prototype.index = ""; /** - * Creates a new DeployIndexResponse instance using the specified properties. + * RemoveDatapointsRequest datapointIds. + * @member {Array.} datapointIds + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @instance + */ + RemoveDatapointsRequest.prototype.datapointIds = $util.emptyArray; + + /** + * Creates a new RemoveDatapointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest instance */ - DeployIndexResponse.create = function create(properties) { - return new DeployIndexResponse(properties); + RemoveDatapointsRequest.create = function create(properties) { + return new RemoveDatapointsRequest(properties); }; /** - * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexResponse.encode = function encode(message, writer) { + RemoveDatapointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapointIds != null && message.datapointIds.length) + for (var i = 0; i < message.datapointIds.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datapointIds[i]); return writer; }; /** - * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexResponse.decode = function decode(reader, length) { + RemoveDatapointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + message.index = reader.string(); + break; + } + case 2: { + if (!(message.datapointIds && message.datapointIds.length)) + message.datapointIds = []; + message.datapointIds.push(reader.string()); break; } default: @@ -251041,128 +263312,142 @@ }; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + RemoveDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexResponse message. + * Verifies a RemoveDatapointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexResponse.verify = function verify(message) { + RemoveDatapointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapointIds != null && message.hasOwnProperty("datapointIds")) { + if (!Array.isArray(message.datapointIds)) + return "datapointIds: array expected"; + for (var i = 0; i < message.datapointIds.length; ++i) + if (!$util.isString(message.datapointIds[i])) + return "datapointIds: string[] expected"; } return null; }; /** - * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest */ - DeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse) + RemoveDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexResponse.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); + var message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapointIds) { + if (!Array.isArray(object.datapointIds)) + throw TypeError(".google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.datapointIds: array expected"); + message.datapointIds = []; + for (var i = 0; i < object.datapointIds.length; ++i) + message.datapointIds[i] = String(object.datapointIds[i]); } return message; }; /** - * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. + * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexResponse} message DeployIndexResponse + * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} message RemoveDatapointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexResponse.toObject = function toObject(message, options) { + RemoveDatapointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.datapointIds = []; if (options.defaults) - object.deployedIndex = null; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapointIds && message.datapointIds.length) { + object.datapointIds = []; + for (var j = 0; j < message.datapointIds.length; ++j) + object.datapointIds[j] = message.datapointIds[j]; + } return object; }; /** - * Converts this DeployIndexResponse to JSON. + * Converts this RemoveDatapointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @instance * @returns {Object.} JSON object */ - DeployIndexResponse.prototype.toJSON = function toJSON() { + RemoveDatapointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployIndexResponse + * Gets the default type url for RemoveDatapointsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest"; }; - return DeployIndexResponse; + return RemoveDatapointsRequest; })(); - v1beta1.DeployIndexOperationMetadata = (function() { + v1beta1.RemoveDatapointsResponse = (function() { /** - * Properties of a DeployIndexOperationMetadata. + * Properties of a RemoveDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId + * @interface IRemoveDatapointsResponse */ /** - * Constructs a new DeployIndexOperationMetadata. + * Constructs a new RemoveDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexOperationMetadata. - * @implements IDeployIndexOperationMetadata + * @classdesc Represents a RemoveDatapointsResponse. + * @implements IRemoveDatapointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set */ - function DeployIndexOperationMetadata(properties) { + function RemoveDatapointsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251170,91 +263455,63 @@ } /** - * DeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata - * @instance - */ - DeployIndexOperationMetadata.prototype.genericMetadata = null; - - /** - * DeployIndexOperationMetadata deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata - * @instance - */ - DeployIndexOperationMetadata.prototype.deployedIndexId = ""; - - /** - * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * Creates a new RemoveDatapointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse instance */ - DeployIndexOperationMetadata.create = function create(properties) { - return new DeployIndexOperationMetadata(properties); + RemoveDatapointsResponse.create = function create(properties) { + return new RemoveDatapointsResponse(properties); }; /** - * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexOperationMetadata.encode = function encode(message, writer) { + RemoveDatapointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + RemoveDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexOperationMetadata.decode = function decode(reader, length) { + RemoveDatapointsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - case 2: { - message.deployedIndexId = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -251264,137 +263521,111 @@ }; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + RemoveDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexOperationMetadata message. + * Verifies a RemoveDatapointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexOperationMetadata.verify = function verify(message) { + RemoveDatapointsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; return null; }; /** - * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse */ - DeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + RemoveDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); - return message; + return new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse(); }; /** - * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} message RemoveDatapointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.deployedIndexId = ""; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; - return object; + RemoveDatapointsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this DeployIndexOperationMetadata to JSON. + * Converts this RemoveDatapointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @instance * @returns {Object.} JSON object */ - DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + RemoveDatapointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployIndexOperationMetadata + * Gets the default type url for RemoveDatapointsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse"; }; - return DeployIndexOperationMetadata; + return RemoveDatapointsResponse; })(); - v1beta1.UndeployIndexRequest = (function() { + v1beta1.NearestNeighborSearchOperationMetadata = (function() { /** - * Properties of an UndeployIndexRequest. + * Properties of a NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexRequest - * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint - * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId + * @interface INearestNeighborSearchOperationMetadata + * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats + * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount */ /** - * Constructs a new UndeployIndexRequest. + * Constructs a new NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexRequest. - * @implements IUndeployIndexRequest + * @classdesc Represents a NearestNeighborSearchOperationMetadata. + * @implements INearestNeighborSearchOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set */ - function UndeployIndexRequest(properties) { + function NearestNeighborSearchOperationMetadata(properties) { + this.contentValidationStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251402,89 +263633,92 @@ } /** - * UndeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * NearestNeighborSearchOperationMetadata contentValidationStats. + * @member {Array.} contentValidationStats + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance */ - UndeployIndexRequest.prototype.indexEndpoint = ""; + NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; /** - * UndeployIndexRequest deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * NearestNeighborSearchOperationMetadata dataBytesCount. + * @member {number|Long} dataBytesCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance */ - UndeployIndexRequest.prototype.deployedIndexId = ""; + NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new UndeployIndexRequest instance using the specified properties. + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance */ - UndeployIndexRequest.create = function create(properties) { - return new UndeployIndexRequest(properties); + NearestNeighborSearchOperationMetadata.create = function create(properties) { + return new NearestNeighborSearchOperationMetadata(properties); }; /** - * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexRequest.encode = function encode(message, writer) { + NearestNeighborSearchOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.contentValidationStats != null && message.contentValidationStats.length) + for (var i = 0; i < message.contentValidationStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.encode(message.contentValidationStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dataBytesCount != null && Object.hasOwnProperty.call(message, "dataBytesCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dataBytesCount); return writer; }; /** - * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexRequest.decode = function decode(reader, length) { + NearestNeighborSearchOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.indexEndpoint = reader.string(); + if (!(message.contentValidationStats && message.contentValidationStats.length)) + message.contentValidationStats = []; + message.contentValidationStats.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.decode(reader, reader.uint32())); break; } case 2: { - message.deployedIndexId = reader.string(); + message.dataBytesCount = reader.int64(); break; } default: @@ -251496,2128 +263730,2047 @@ }; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + NearestNeighborSearchOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexRequest message. + * Verifies a NearestNeighborSearchOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployIndexRequest.verify = function verify(message) { + NearestNeighborSearchOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; + if (message.contentValidationStats != null && message.hasOwnProperty("contentValidationStats")) { + if (!Array.isArray(message.contentValidationStats)) + return "contentValidationStats: array expected"; + for (var i = 0; i < message.contentValidationStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify(message.contentValidationStats[i]); + if (error) + return "contentValidationStats." + error; + } + } + if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) + if (!$util.isInteger(message.dataBytesCount) && !(message.dataBytesCount && $util.isInteger(message.dataBytesCount.low) && $util.isInteger(message.dataBytesCount.high))) + return "dataBytesCount: integer|Long expected"; return null; }; /** - * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata */ - UndeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) + NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); + if (object.contentValidationStats) { + if (!Array.isArray(object.contentValidationStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: array expected"); + message.contentValidationStats = []; + for (var i = 0; i < object.contentValidationStats.length; ++i) { + if (typeof object.contentValidationStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: object expected"); + message.contentValidationStats[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.fromObject(object.contentValidationStats[i]); + } + } + if (object.dataBytesCount != null) + if ($util.Long) + (message.dataBytesCount = $util.Long.fromValue(object.dataBytesCount)).unsigned = false; + else if (typeof object.dataBytesCount === "string") + message.dataBytesCount = parseInt(object.dataBytesCount, 10); + else if (typeof object.dataBytesCount === "number") + message.dataBytesCount = object.dataBytesCount; + else if (typeof object.dataBytesCount === "object") + message.dataBytesCount = new $util.LongBits(object.dataBytesCount.low >>> 0, object.dataBytesCount.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} message UndeployIndexRequest + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexRequest.toObject = function toObject(message, options) { + NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndexId = ""; + if (options.arrays || options.defaults) + object.contentValidationStats = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.dataBytesCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.dataBytesCount = options.longs === String ? "0" : 0; + if (message.contentValidationStats && message.contentValidationStats.length) { + object.contentValidationStats = []; + for (var j = 0; j < message.contentValidationStats.length; ++j) + object.contentValidationStats[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.toObject(message.contentValidationStats[j], options); } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; + if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) + if (typeof message.dataBytesCount === "number") + object.dataBytesCount = options.longs === String ? String(message.dataBytesCount) : message.dataBytesCount; + else + object.dataBytesCount = options.longs === String ? $util.Long.prototype.toString.call(message.dataBytesCount) : options.longs === Number ? new $util.LongBits(message.dataBytesCount.low >>> 0, message.dataBytesCount.high >>> 0).toNumber() : message.dataBytesCount; return object; }; /** - * Converts this UndeployIndexRequest to JSON. + * Converts this NearestNeighborSearchOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance * @returns {Object.} JSON object */ - UndeployIndexRequest.prototype.toJSON = function toJSON() { + NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UndeployIndexRequest + * Gets the default type url for NearestNeighborSearchOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UndeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NearestNeighborSearchOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata"; }; - return UndeployIndexRequest; - })(); + NearestNeighborSearchOperationMetadata.RecordError = (function() { - v1beta1.UndeployIndexResponse = (function() { + /** + * Properties of a RecordError. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @interface IRecordError + * @property {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null} [errorType] RecordError errorType + * @property {string|null} [errorMessage] RecordError errorMessage + * @property {string|null} [sourceGcsUri] RecordError sourceGcsUri + * @property {string|null} [embeddingId] RecordError embeddingId + * @property {string|null} [rawRecord] RecordError rawRecord + */ - /** - * Properties of an UndeployIndexResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexResponse - */ + /** + * Constructs a new RecordError. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a RecordError. + * @implements IRecordError + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set + */ + function RecordError(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]]; + } - /** - * Constructs a new UndeployIndexResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexResponse. - * @implements IUndeployIndexResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set - */ - function UndeployIndexResponse(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]]; - } + /** + * RecordError errorType. + * @member {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} errorType + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.errorType = 0; - /** - * Creates a new UndeployIndexResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse instance - */ - UndeployIndexResponse.create = function create(properties) { - return new UndeployIndexResponse(properties); - }; + /** + * RecordError errorMessage. + * @member {string} errorMessage + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.errorMessage = ""; - /** - * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UndeployIndexResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * RecordError sourceGcsUri. + * @member {string} sourceGcsUri + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.sourceGcsUri = ""; - /** - * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * RecordError embeddingId. + * @member {string} embeddingId + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.embeddingId = ""; - /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UndeployIndexResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * RecordError rawRecord. + * @member {string} rawRecord + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.rawRecord = ""; + + /** + * Creates a new RecordError instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError instance + */ + RecordError.create = function create(properties) { + return new RecordError(properties); + }; + + /** + * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.errorType != null && Object.hasOwnProperty.call(message, "errorType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.errorType); + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); + if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceGcsUri); + if (message.embeddingId != null && Object.hasOwnProperty.call(message, "embeddingId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.embeddingId); + if (message.rawRecord != null && Object.hasOwnProperty.call(message, "rawRecord")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.rawRecord); + return writer; + }; + + /** + * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordError.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecordError message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.errorType = reader.int32(); + break; + } + case 2: { + message.errorMessage = reader.string(); + break; + } + case 3: { + message.sourceGcsUri = reader.string(); + break; + } + case 4: { + message.embeddingId = reader.string(); + break; + } + case 5: { + message.rawRecord = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecordError message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordError.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecordError message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecordError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.errorType != null && message.hasOwnProperty("errorType")) + switch (message.errorType) { + default: + return "errorType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (!$util.isString(message.errorMessage)) + return "errorMessage: string expected"; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + if (!$util.isString(message.sourceGcsUri)) + return "sourceGcsUri: string expected"; + if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) + if (!$util.isString(message.embeddingId)) + return "embeddingId: string expected"; + if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) + if (!$util.isString(message.rawRecord)) + return "rawRecord: string expected"; + return null; + }; + + /** + * Creates a RecordError message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + */ + RecordError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); + switch (object.errorType) { default: - reader.skipType(tag & 7); + if (typeof object.errorType === "number") { + message.errorType = object.errorType; + break; + } + break; + case "ERROR_TYPE_UNSPECIFIED": + case 0: + message.errorType = 0; + break; + case "EMPTY_LINE": + case 1: + message.errorType = 1; + break; + case "INVALID_JSON_SYNTAX": + case 2: + message.errorType = 2; + break; + case "INVALID_CSV_SYNTAX": + case 3: + message.errorType = 3; + break; + case "INVALID_AVRO_SYNTAX": + case 4: + message.errorType = 4; + break; + case "INVALID_EMBEDDING_ID": + case 5: + message.errorType = 5; + break; + case "EMBEDDING_SIZE_MISMATCH": + case 6: + message.errorType = 6; break; + case "NAMESPACE_MISSING": + case 7: + message.errorType = 7; + break; + } + if (object.errorMessage != null) + message.errorMessage = String(object.errorMessage); + if (object.sourceGcsUri != null) + message.sourceGcsUri = String(object.sourceGcsUri); + if (object.embeddingId != null) + message.embeddingId = String(object.embeddingId); + if (object.rawRecord != null) + message.rawRecord = String(object.rawRecord); + return message; + }; + + /** + * Creates a plain object from a RecordError message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} message RecordError + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordError.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.errorType = options.enums === String ? "ERROR_TYPE_UNSPECIFIED" : 0; + object.errorMessage = ""; + object.sourceGcsUri = ""; + object.embeddingId = ""; + object.rawRecord = ""; + } + if (message.errorType != null && message.hasOwnProperty("errorType")) + object.errorType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] === undefined ? message.errorType : $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] : message.errorType; + if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + object.errorMessage = message.errorMessage; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + object.sourceGcsUri = message.sourceGcsUri; + if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) + object.embeddingId = message.embeddingId; + if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) + object.rawRecord = message.rawRecord; + return object; + }; + + /** + * Converts this RecordError to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + * @returns {Object.} JSON object + */ + RecordError.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordError + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - return message; - }; - - /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError"; + }; - /** - * Verifies an UndeployIndexResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UndeployIndexResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * RecordErrorType enum. + * @name google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType + * @enum {number} + * @property {number} ERROR_TYPE_UNSPECIFIED=0 ERROR_TYPE_UNSPECIFIED value + * @property {number} EMPTY_LINE=1 EMPTY_LINE value + * @property {number} INVALID_JSON_SYNTAX=2 INVALID_JSON_SYNTAX value + * @property {number} INVALID_CSV_SYNTAX=3 INVALID_CSV_SYNTAX value + * @property {number} INVALID_AVRO_SYNTAX=4 INVALID_AVRO_SYNTAX value + * @property {number} INVALID_EMBEDDING_ID=5 INVALID_EMBEDDING_ID value + * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value + * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value + */ + RecordError.RecordErrorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EMPTY_LINE"] = 1; + values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; + values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; + values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; + values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; + values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; + values[valuesById[7] = "NAMESPACE_MISSING"] = 7; + return values; + })(); - /** - * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse - */ - UndeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) - return object; - return new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); - }; + return RecordError; + })(); - /** - * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} message UndeployIndexResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UndeployIndexResponse.toObject = function toObject() { - return {}; - }; + NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { - /** - * Converts this UndeployIndexResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @instance - * @returns {Object.} JSON object - */ - UndeployIndexResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a ContentValidationStats. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @interface IContentValidationStats + * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri + * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount + * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount + * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors + */ - /** - * Gets the default type url for UndeployIndexResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UndeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Constructs a new ContentValidationStats. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a ContentValidationStats. + * @implements IContentValidationStats + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + */ + function ContentValidationStats(properties) { + this.partialErrors = []; + 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]]; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexResponse"; - }; - return UndeployIndexResponse; - })(); - - v1beta1.UndeployIndexOperationMetadata = (function() { + /** + * ContentValidationStats sourceGcsUri. + * @member {string} sourceGcsUri + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.sourceGcsUri = ""; - /** - * Properties of an UndeployIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata - */ + /** + * ContentValidationStats validRecordCount. + * @member {number|Long} validRecordCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Constructs a new UndeployIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexOperationMetadata. - * @implements IUndeployIndexOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set - */ - function UndeployIndexOperationMetadata(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]]; - } + /** + * ContentValidationStats invalidRecordCount. + * @member {number|Long} invalidRecordCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * UndeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @instance - */ - UndeployIndexOperationMetadata.prototype.genericMetadata = null; + /** + * ContentValidationStats partialErrors. + * @member {Array.} partialErrors + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.partialErrors = $util.emptyArray; - /** - * Creates a new UndeployIndexOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance - */ - UndeployIndexOperationMetadata.create = function create(properties) { - return new UndeployIndexOperationMetadata(properties); - }; + /** + * Creates a new ContentValidationStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance + */ + ContentValidationStats.create = function create(properties) { + return new ContentValidationStats(properties); + }; - /** - * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UndeployIndexOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); + if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); + if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); + if (message.partialErrors != null && message.partialErrors.length) + for (var i = 0; i < message.partialErrors.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UndeployIndexOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + /** + * Decodes a ContentValidationStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sourceGcsUri = reader.string(); + break; + } + case 2: { + message.validRecordCount = reader.int64(); + break; + } + case 3: { + message.invalidRecordCount = reader.int64(); + break; + } + case 4: { + if (!(message.partialErrors && message.partialErrors.length)) + message.partialErrors = []; + message.partialErrors.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an UndeployIndexOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UndeployIndexOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - return null; - }; + /** + * Verifies a ContentValidationStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContentValidationStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + if (!$util.isString(message.sourceGcsUri)) + return "sourceGcsUri: string expected"; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) + return "validRecordCount: integer|Long expected"; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) + return "invalidRecordCount: integer|Long expected"; + if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { + if (!Array.isArray(message.partialErrors)) + return "partialErrors: array expected"; + for (var i = 0; i < message.partialErrors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); + if (error) + return "partialErrors." + error; + } + } + return null; + }; - /** - * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata - */ - UndeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + /** + * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + */ + ContentValidationStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + if (object.sourceGcsUri != null) + message.sourceGcsUri = String(object.sourceGcsUri); + if (object.validRecordCount != null) + if ($util.Long) + (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; + else if (typeof object.validRecordCount === "string") + message.validRecordCount = parseInt(object.validRecordCount, 10); + else if (typeof object.validRecordCount === "number") + message.validRecordCount = object.validRecordCount; + else if (typeof object.validRecordCount === "object") + message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); + if (object.invalidRecordCount != null) + if ($util.Long) + (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; + else if (typeof object.invalidRecordCount === "string") + message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); + else if (typeof object.invalidRecordCount === "number") + message.invalidRecordCount = object.invalidRecordCount; + else if (typeof object.invalidRecordCount === "object") + message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); + if (object.partialErrors) { + if (!Array.isArray(object.partialErrors)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); + message.partialErrors = []; + for (var i = 0; i < object.partialErrors.length; ++i) { + if (typeof object.partialErrors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); + message.partialErrors[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContentValidationStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.partialErrors = []; + if (options.defaults) { + object.sourceGcsUri = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.validRecordCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invalidRecordCount = options.longs === String ? "0" : 0; + } + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + object.sourceGcsUri = message.sourceGcsUri; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (typeof message.validRecordCount === "number") + object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; + else + object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (typeof message.invalidRecordCount === "number") + object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; + else + object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; + if (message.partialErrors && message.partialErrors.length) { + object.partialErrors = []; + for (var j = 0; j < message.partialErrors.length; ++j) + object.partialErrors[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); + } return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; + }; - /** - * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UndeployIndexOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; - }; + /** + * Converts this ContentValidationStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + * @returns {Object.} JSON object + */ + ContentValidationStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this UndeployIndexOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @instance - * @returns {Object.} JSON object - */ - UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ContentValidationStats + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContentValidationStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats"; + }; - /** - * Gets the default type url for UndeployIndexOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UndeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata"; - }; + return ContentValidationStats; + })(); - return UndeployIndexOperationMetadata; + return NearestNeighborSearchOperationMetadata; })(); - v1beta1.MutateDeployedIndexRequest = (function() { - - /** - * Properties of a MutateDeployedIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexRequest - * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex - */ + v1beta1.JobService = (function() { /** - * Constructs a new MutateDeployedIndexRequest. + * Constructs a new JobService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexRequest. - * @implements IMutateDeployedIndexRequest + * @classdesc Represents a JobService + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function MutateDeployedIndexRequest(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]]; + function JobService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * MutateDeployedIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @instance - */ - MutateDeployedIndexRequest.prototype.indexEndpoint = ""; - - /** - * MutateDeployedIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @instance - */ - MutateDeployedIndexRequest.prototype.deployedIndex = null; + (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; /** - * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * Creates new JobService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.JobService * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. */ - MutateDeployedIndexRequest.create = function create(properties) { - return new MutateDeployedIndexRequest(properties); + JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob */ - MutateDeployedIndexRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateCustomJob. + * @function createCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { + return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); + }, "name", { value: "CreateCustomJob" }); /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateCustomJob. + * @function createCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.indexEndpoint = reader.string(); - break; - } - case 2: { - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob */ - MutateDeployedIndexRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a MutateDeployedIndexRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetCustomJob. + * @function getCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; - } - return null; - }; + Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { + return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); + }, "name", { value: "GetCustomJob" }); /** - * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * Calls GetCustomJob. + * @function getCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); - } - return message; - }; /** - * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListCustomJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} [response] ListCustomJobsResponse */ - MutateDeployedIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); - return object; - }; /** - * Converts this MutateDeployedIndexRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * Calls ListCustomJobs. + * @function listCustomJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { + return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, request, callback); + }, "name", { value: "ListCustomJobs" }); /** - * Gets the default type url for MutateDeployedIndexRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListCustomJobs. + * @function listCustomJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest"; - }; - - return MutateDeployedIndexRequest; - })(); - - v1beta1.MutateDeployedIndexResponse = (function() { /** - * Properties of a MutateDeployedIndexResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new MutateDeployedIndexResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexResponse. - * @implements IMutateDeployedIndexResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set + * Calls DeleteCustomJob. + * @function deleteCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function MutateDeployedIndexResponse(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]]; - } + Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { + return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteCustomJob" }); /** - * MutateDeployedIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * Calls DeleteCustomJob. + * @function deleteCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexResponse.prototype.deployedIndex = null; /** - * Creates a new MutateDeployedIndexResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - MutateDeployedIndexResponse.create = function create(properties) { - return new MutateDeployedIndexResponse(properties); - }; /** - * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelCustomJob. + * @function cancelCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { + return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelCustomJob" }); /** - * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelCustomJob. + * @function cancelCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateDeployedIndexResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob + */ /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { + return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); + }, "name", { value: "CreateDataLabelingJob" }); /** - * Verifies a MutateDeployedIndexResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; - } - return null; - }; /** - * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob */ - MutateDeployedIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); - } - return message; - }; /** - * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.deployedIndex = null; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); - return object; - }; + Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { + return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); + }, "name", { value: "GetDataLabelingJob" }); /** - * Converts this MutateDeployedIndexResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for MutateDeployedIndexResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListDataLabelingJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse */ - MutateDeployedIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse"; - }; - - return MutateDeployedIndexResponse; - })(); - v1beta1.MutateDeployedIndexOperationMetadata = (function() { + /** + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { + return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, request, callback); + }, "name", { value: "ListDataLabelingJobs" }); /** - * Properties of a MutateDeployedIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new MutateDeployedIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexOperationMetadata. - * @implements IMutateDeployedIndexOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function MutateDeployedIndexOperationMetadata(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]]; - } /** - * MutateDeployedIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexOperationMetadata.prototype.genericMetadata = null; + Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { + return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteDataLabelingJob" }); /** - * MutateDeployedIndexOperationMetadata deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; /** - * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - MutateDeployedIndexOperationMetadata.create = function create(properties) { - return new MutateDeployedIndexOperationMetadata(properties); - }; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); - return writer; - }; + Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { + return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelDataLabelingJob" }); /** - * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - MutateDeployedIndexOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - case 2: { - message.deployedIndexId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { + return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); + }, "name", { value: "CreateHyperparameterTuningJob" }); /** - * Verifies a MutateDeployedIndexOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; - return null; - }; /** - * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); - return message; - }; /** - * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.deployedIndexId = ""; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; - return object; - }; + Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { + return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); + }, "name", { value: "GetHyperparameterTuningJob" }); /** - * Converts this MutateDeployedIndexOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for MutateDeployedIndexOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListHyperparameterTuningJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse */ - MutateDeployedIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata"; - }; - - return MutateDeployedIndexOperationMetadata; - })(); - - v1beta1.IndexService = (function() { /** - * Constructs a new IndexService service. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * @returns {undefined} + * @variation 1 */ - function IndexService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (IndexService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexService; + Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { + return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, request, callback); + }, "name", { value: "ListHyperparameterTuningJobs" }); /** - * Creates new IndexService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IndexService} RPC service. Useful where requests and/or responses are streamed. + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - IndexService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|createIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef CreateIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteHyperparameterTuningJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls CreateIndex. - * @function createIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.createIndex = function createIndex(request, callback) { - return this.rpcCall(createIndex, $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateIndex" }); + Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { + return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteHyperparameterTuningJob" }); /** - * Calls CreateIndex. - * @function createIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|getIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef GetIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelHyperparameterTuningJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Index} [response] Index + * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls GetIndex. - * @function getIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback} callback Node-style callback called with the error, if any, and Index + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.getIndex = function getIndex(request, callback) { - return this.rpcCall(getIndex, $root.google.cloud.aiplatform.v1beta1.GetIndexRequest, $root.google.cloud.aiplatform.v1beta1.Index, request, callback); - }, "name", { value: "GetIndex" }); + Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { + return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelHyperparameterTuningJob" }); /** - * Calls GetIndex. - * @function getIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|listIndexes}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef ListIndexesCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createNasJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateNasJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} [response] ListIndexesResponse + * @param {google.cloud.aiplatform.v1beta1.NasJob} [response] NasJob */ /** - * Calls ListIndexes. - * @function listIndexes - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback} callback Node-style callback called with the error, if any, and ListIndexesResponse + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateNasJobCallback} callback Node-style callback called with the error, if any, and NasJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.listIndexes = function listIndexes(request, callback) { - return this.rpcCall(listIndexes, $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse, request, callback); - }, "name", { value: "ListIndexes" }); + Object.defineProperty(JobService.prototype.createNasJob = function createNasJob(request, callback) { + return this.rpcCall(createNasJob, $root.google.cloud.aiplatform.v1beta1.CreateNasJobRequest, $root.google.cloud.aiplatform.v1beta1.NasJob, request, callback); + }, "name", { value: "CreateNasJob" }); /** - * Calls ListIndexes. - * @function listIndexes - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|updateIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef UpdateIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getNasJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetNasJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.NasJob} [response] NasJob */ /** - * Calls UpdateIndex. - * @function updateIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetNasJobCallback} callback Node-style callback called with the error, if any, and NasJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.updateIndex = function updateIndex(request, callback) { - return this.rpcCall(updateIndex, $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateIndex" }); + Object.defineProperty(JobService.prototype.getNasJob = function getNasJob(request, callback) { + return this.rpcCall(getNasJob, $root.google.cloud.aiplatform.v1beta1.GetNasJobRequest, $root.google.cloud.aiplatform.v1beta1.NasJob, request, callback); + }, "name", { value: "GetNasJob" }); /** - * Calls UpdateIndex. - * @function updateIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef DeleteIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listNasJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListNasJobsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} [response] ListNasJobsResponse */ /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListNasJobsCallback} callback Node-style callback called with the error, if any, and ListNasJobsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.deleteIndex = function deleteIndex(request, callback) { - return this.rpcCall(deleteIndex, $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteIndex" }); + Object.defineProperty(JobService.prototype.listNasJobs = function listNasJobs(request, callback) { + return this.rpcCall(listNasJobs, $root.google.cloud.aiplatform.v1beta1.ListNasJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListNasJobsResponse, request, callback); + }, "name", { value: "ListNasJobs" }); /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef UpsertDatapointsCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteNasJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteNasJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} [response] UpsertDatapointsResponse + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls UpsertDatapoints. - * @function upsertDatapoints - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback} callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteNasJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.upsertDatapoints = function upsertDatapoints(request, callback) { - return this.rpcCall(upsertDatapoints, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, request, callback); - }, "name", { value: "UpsertDatapoints" }); + Object.defineProperty(JobService.prototype.deleteNasJob = function deleteNasJob(request, callback) { + return this.rpcCall(deleteNasJob, $root.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteNasJob" }); /** - * Calls UpsertDatapoints. - * @function upsertDatapoints - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef RemoveDatapointsCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelNasJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelNasJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} [response] RemoveDatapointsResponse + * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls RemoveDatapoints. - * @function removeDatapoints - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback} callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelNasJobCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.removeDatapoints = function removeDatapoints(request, callback) { - return this.rpcCall(removeDatapoints, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, request, callback); - }, "name", { value: "RemoveDatapoints" }); + Object.defineProperty(JobService.prototype.cancelNasJob = function cancelNasJob(request, callback) { + return this.rpcCall(cancelNasJob, $root.google.cloud.aiplatform.v1beta1.CancelNasJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelNasJob" }); /** - * Calls RemoveDatapoints. - * @function removeDatapoints - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return IndexService; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getNasTrialDetail}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetNasTrialDetailCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.NasTrialDetail} [response] NasTrialDetail + */ - v1beta1.CreateIndexRequest = (function() { + /** + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetailCallback} callback Node-style callback called with the error, if any, and NasTrialDetail + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.getNasTrialDetail = function getNasTrialDetail(request, callback) { + return this.rpcCall(getNasTrialDetail, $root.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest, $root.google.cloud.aiplatform.v1beta1.NasTrialDetail, request, callback); + }, "name", { value: "GetNasTrialDetail" }); /** - * Properties of a CreateIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexRequest - * @property {string|null} [parent] CreateIndexRequest parent - * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] CreateIndexRequest index + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CreateIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexRequest. - * @implements ICreateIndexRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listNasTrialDetails}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListNasTrialDetailsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} [response] ListNasTrialDetailsResponse */ - function CreateIndexRequest(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]]; - } /** - * CreateIndexRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetailsCallback} callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.prototype.parent = ""; + Object.defineProperty(JobService.prototype.listNasTrialDetails = function listNasTrialDetails(request, callback) { + return this.rpcCall(listNasTrialDetails, $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest, $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse, request, callback); + }, "name", { value: "ListNasTrialDetails" }); /** - * CreateIndexRequest index. - * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexRequest.prototype.index = null; /** - * Creates a new CreateIndexRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob */ - CreateIndexRequest.create = function create(properties) { - return new CreateIndexRequest(properties); - }; /** - * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { + return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); + }, "name", { value: "CreateBatchPredictionJob" }); /** - * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob */ - CreateIndexRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { + return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); + }, "name", { value: "GetBatchPredictionJob" }); /** - * Verifies a CreateIndexRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.index != null && message.hasOwnProperty("index")) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); - if (error) - return "index." + error; - } - return null; - }; /** - * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListBatchPredictionJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse */ - CreateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.index != null) { - if (typeof object.index !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexRequest.index: object expected"); - message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); - } - return message; - }; /** - * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexRequest} message CreateIndexRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.index = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.index != null && message.hasOwnProperty("index")) - object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); - return object; - }; + Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { + return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, request, callback); + }, "name", { value: "ListBatchPredictionJobs" }); /** - * Converts this CreateIndexRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for CreateIndexRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexRequest"; - }; - - return CreateIndexRequest; - })(); - - v1beta1.CreateIndexOperationMetadata = (function() { /** - * Properties of a CreateIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { + return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteBatchPredictionJob" }); /** - * Constructs a new CreateIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexOperationMetadata. - * @implements ICreateIndexOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - function CreateIndexOperationMetadata(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]]; - } /** - * CreateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - CreateIndexOperationMetadata.prototype.genericMetadata = null; /** - * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { + return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelBatchPredictionJob" }); /** - * Creates a new CreateIndexOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata instance + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.create = function create(properties) { - return new CreateIndexOperationMetadata(properties); - }; /** - * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - CreateIndexOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "CreateModelDeploymentMonitoringJob" }); /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - case 2: { - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - CreateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a CreateIndexOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); - if (error) - return "nearestNeighborSearchOperationMetadata." + error; - } - return null; - }; + Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { + return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); + }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); /** - * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.nearestNeighborSearchOperationMetadata != null) { - if (typeof object.nearestNeighborSearchOperationMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); - } - return message; - }; /** - * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} message CreateIndexOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - CreateIndexOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) - object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); - return object; - }; /** - * Converts this CreateIndexOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "GetModelDeploymentMonitoringJob" }); /** - * Gets the default type url for CreateIndexOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata"; - }; - return CreateIndexOperationMetadata; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListModelDeploymentMonitoringJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse + */ - v1beta1.GetIndexRequest = (function() { + /** + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { + return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, request, callback); + }, "name", { value: "ListModelDeploymentMonitoringJobs" }); /** - * Properties of a GetIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetIndexRequest - * @property {string|null} [name] GetIndexRequest name + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new GetIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetIndexRequest. - * @implements IGetIndexRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef UpdateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function GetIndexRequest(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]]; - } /** - * GetIndexRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.prototype.name = ""; + Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); /** - * Creates a new GetIndexRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest instance + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.create = function create(properties) { - return new GetIndexRequest(properties); - }; /** - * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - GetIndexRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; /** - * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); /** - * Decodes a GetIndexRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef PauseModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a GetIndexRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "PauseModelDeploymentMonitoringJob" }); /** - * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetIndexRequest} message GetIndexRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ResumeModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - GetIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; /** - * Converts this GetIndexRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); /** - * Gets the default type url for GetIndexRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetIndexRequest"; - }; - return GetIndexRequest; + return JobService; })(); - v1beta1.ListIndexesRequest = (function() { + v1beta1.CreateCustomJobRequest = (function() { /** - * Properties of a ListIndexesRequest. + * Properties of a CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexesRequest - * @property {string|null} [parent] ListIndexesRequest parent - * @property {string|null} [filter] ListIndexesRequest filter - * @property {number|null} [pageSize] ListIndexesRequest pageSize - * @property {string|null} [pageToken] ListIndexesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexesRequest readMask + * @interface ICreateCustomJobRequest + * @property {string|null} [parent] CreateCustomJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob */ /** - * Constructs a new ListIndexesRequest. + * Constructs a new CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexesRequest. - * @implements IListIndexesRequest + * @classdesc Represents a CreateCustomJobRequest. + * @implements ICreateCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set */ - function ListIndexesRequest(properties) { + function CreateCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253625,110 +265778,80 @@ } /** - * ListIndexesRequest parent. + * CreateCustomJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest - * @instance - */ - ListIndexesRequest.prototype.parent = ""; - - /** - * ListIndexesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest - * @instance - */ - ListIndexesRequest.prototype.filter = ""; - - /** - * ListIndexesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest - * @instance - */ - ListIndexesRequest.prototype.pageSize = 0; - - /** - * ListIndexesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance */ - ListIndexesRequest.prototype.pageToken = ""; + CreateCustomJobRequest.prototype.parent = ""; /** - * ListIndexesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * CreateCustomJobRequest customJob. + * @member {google.cloud.aiplatform.v1beta1.ICustomJob|null|undefined} customJob + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance */ - ListIndexesRequest.prototype.readMask = null; + CreateCustomJobRequest.prototype.customJob = null; /** - * Creates a new ListIndexesRequest instance using the specified properties. + * Creates a new CreateCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance */ - ListIndexesRequest.create = function create(properties) { - return new ListIndexesRequest(properties); + CreateCustomJobRequest.create = function create(properties) { + return new CreateCustomJobRequest(properties); }; /** - * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesRequest.encode = function encode(message, writer) { + CreateCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) + $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesRequest.decode = function decode(reader, length) { + CreateCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -253737,19 +265860,7 @@ break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32()); break; } default: @@ -253761,162 +265872,136 @@ }; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesRequest.decodeDelimited = function decodeDelimited(reader) { + CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexesRequest message. + * Verifies a CreateCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexesRequest.verify = function verify(message) { + CreateCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.customJob != null && message.hasOwnProperty("customJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); if (error) - return "readMask." + error; + return "customJob." + error; } return null; }; /** - * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest */ - ListIndexesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest) + CreateCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + if (object.customJob != null) { + if (typeof object.customJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.customJob: object expected"); + message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJob); } return message; }; /** - * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexesRequest} message ListIndexesRequest + * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexesRequest.toObject = function toObject(message, options) { + CreateCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.customJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.customJob != null && message.hasOwnProperty("customJob")) + object.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJob, options); return object; }; /** - * Converts this ListIndexesRequest to JSON. + * Converts this CreateCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance * @returns {Object.} JSON object */ - ListIndexesRequest.prototype.toJSON = function toJSON() { + CreateCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIndexesRequest + * Gets the default type url for CreateCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIndexesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateCustomJobRequest"; }; - return ListIndexesRequest; + return CreateCustomJobRequest; })(); - v1beta1.ListIndexesResponse = (function() { + v1beta1.GetCustomJobRequest = (function() { /** - * Properties of a ListIndexesResponse. + * Properties of a GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexesResponse - * @property {Array.|null} [indexes] ListIndexesResponse indexes - * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken + * @interface IGetCustomJobRequest + * @property {string|null} [name] GetCustomJobRequest name */ /** - * Constructs a new ListIndexesResponse. + * Constructs a new GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexesResponse. - * @implements IListIndexesResponse + * @classdesc Represents a GetCustomJobRequest. + * @implements IGetCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set */ - function ListIndexesResponse(properties) { - this.indexes = []; + function GetCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253924,92 +266009,75 @@ } /** - * ListIndexesResponse indexes. - * @member {Array.} indexes - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse - * @instance - */ - ListIndexesResponse.prototype.indexes = $util.emptyArray; - - /** - * ListIndexesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * GetCustomJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance */ - ListIndexesResponse.prototype.nextPageToken = ""; + GetCustomJobRequest.prototype.name = ""; /** - * Creates a new ListIndexesResponse instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance */ - ListIndexesResponse.create = function create(properties) { - return new ListIndexesResponse(properties); + GetCustomJobRequest.create = function create(properties) { + return new GetCustomJobRequest(properties); }; /** - * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesResponse.encode = function encode(message, writer) { + GetCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexes != null && message.indexes.length) - for (var i = 0; i < message.indexes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Index.encode(message.indexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesResponse.decode = function decode(reader, length) { + GetCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.indexes && message.indexes.length)) - message.indexes = []; - message.indexes.push($root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -254021,149 +266089,126 @@ }; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesResponse.decodeDelimited = function decodeDelimited(reader) { + GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexesResponse message. + * Verifies a GetCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexesResponse.verify = function verify(message) { + GetCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexes != null && message.hasOwnProperty("indexes")) { - if (!Array.isArray(message.indexes)) - return "indexes: array expected"; - for (var i = 0; i < message.indexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.indexes[i]); - if (error) - return "indexes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest */ - ListIndexesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse) + GetCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); - if (object.indexes) { - if (!Array.isArray(object.indexes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: array expected"); - message.indexes = []; - for (var i = 0; i < object.indexes.length; ++i) { - if (typeof object.indexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: object expected"); - message.indexes[i] = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.indexes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} message ListIndexesResponse + * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexesResponse.toObject = function toObject(message, options) { + GetCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.indexes = []; if (options.defaults) - object.nextPageToken = ""; - if (message.indexes && message.indexes.length) { - object.indexes = []; - for (var j = 0; j < message.indexes.length; ++j) - object.indexes[j] = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.indexes[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListIndexesResponse to JSON. + * Converts this GetCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance * @returns {Object.} JSON object */ - ListIndexesResponse.prototype.toJSON = function toJSON() { + GetCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIndexesResponse + * Gets the default type url for GetCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIndexesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetCustomJobRequest"; }; - return ListIndexesResponse; + return GetCustomJobRequest; })(); - v1beta1.UpdateIndexRequest = (function() { + v1beta1.ListCustomJobsRequest = (function() { /** - * Properties of an UpdateIndexRequest. + * Properties of a ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateIndexRequest - * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] UpdateIndexRequest index - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexRequest updateMask + * @interface IListCustomJobsRequest + * @property {string|null} [parent] ListCustomJobsRequest parent + * @property {string|null} [filter] ListCustomJobsRequest filter + * @property {number|null} [pageSize] ListCustomJobsRequest pageSize + * @property {string|null} [pageToken] ListCustomJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask */ /** - * Constructs a new UpdateIndexRequest. + * Constructs a new ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexRequest. - * @implements IUpdateIndexRequest + * @classdesc Represents a ListCustomJobsRequest. + * @implements IListCustomJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set */ - function UpdateIndexRequest(properties) { + function ListCustomJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254171,89 +266216,131 @@ } /** - * UpdateIndexRequest index. - * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * ListCustomJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - UpdateIndexRequest.prototype.index = null; + ListCustomJobsRequest.prototype.parent = ""; /** - * UpdateIndexRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * ListCustomJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - UpdateIndexRequest.prototype.updateMask = null; + ListCustomJobsRequest.prototype.filter = ""; /** - * Creates a new UpdateIndexRequest instance using the specified properties. + * ListCustomJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @instance + */ + ListCustomJobsRequest.prototype.pageSize = 0; + + /** + * ListCustomJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @instance + */ + ListCustomJobsRequest.prototype.pageToken = ""; + + /** + * ListCustomJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @instance + */ + ListCustomJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListCustomJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance */ - UpdateIndexRequest.create = function create(properties) { - return new UpdateIndexRequest(properties); + ListCustomJobsRequest.create = function create(properties) { + return new ListCustomJobsRequest(properties); }; /** - * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexRequest.encode = function encode(message, writer) { + ListCustomJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexRequest.decode = function decode(reader, length) { + ListCustomJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); break; } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -254265,142 +266352,162 @@ }; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexRequest message. + * Verifies a ListCustomJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexRequest.verify = function verify(message) { + ListCustomJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); - if (error) - return "index." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "updateMask." + error; + return "readMask." + error; } return null; }; /** - * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest */ - UpdateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) + ListCustomJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); - if (object.index != null) { - if (typeof object.index !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.index: object expected"); - message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} message UpdateIndexRequest + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexRequest.toObject = function toObject(message, options) { + ListCustomJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.index = null; - object.updateMask = null; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } - if (message.index != null && message.hasOwnProperty("index")) - object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this UpdateIndexRequest to JSON. + * Converts this ListCustomJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance * @returns {Object.} JSON object */ - UpdateIndexRequest.prototype.toJSON = function toJSON() { + ListCustomJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateIndexRequest + * Gets the default type url for ListCustomJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsRequest"; }; - return UpdateIndexRequest; + return ListCustomJobsRequest; })(); - v1beta1.UpdateIndexOperationMetadata = (function() { + v1beta1.ListCustomJobsResponse = (function() { /** - * Properties of an UpdateIndexOperationMetadata. + * Properties of a ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateIndexOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata + * @interface IListCustomJobsResponse + * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs + * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken */ /** - * Constructs a new UpdateIndexOperationMetadata. + * Constructs a new ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexOperationMetadata. - * @implements IUpdateIndexOperationMetadata + * @classdesc Represents a ListCustomJobsResponse. + * @implements IListCustomJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set */ - function UpdateIndexOperationMetadata(properties) { + function ListCustomJobsResponse(properties) { + this.customJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254408,89 +266515,92 @@ } /** - * UpdateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * ListCustomJobsResponse customJobs. + * @member {Array.} customJobs + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance */ - UpdateIndexOperationMetadata.prototype.genericMetadata = null; + ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; /** - * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * ListCustomJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance */ - UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + ListCustomJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance */ - UpdateIndexOperationMetadata.create = function create(properties) { - return new UpdateIndexOperationMetadata(properties); + ListCustomJobsResponse.create = function create(properties) { + return new ListCustomJobsResponse(properties); }; /** - * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexOperationMetadata.encode = function encode(message, writer) { + ListCustomJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.customJobs != null && message.customJobs.length) + for (var i = 0; i < message.customJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decode = function decode(reader, length) { + ListCustomJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.customJobs && message.customJobs.length)) + message.customJobs = []; + message.customJobs.push($root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32())); break; } case 2: { - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -254502,141 +266612,148 @@ }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexOperationMetadata message. + * Verifies a ListCustomJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexOperationMetadata.verify = function verify(message) { + ListCustomJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); - if (error) - return "nearestNeighborSearchOperationMetadata." + error; + if (message.customJobs != null && message.hasOwnProperty("customJobs")) { + if (!Array.isArray(message.customJobs)) + return "customJobs: array expected"; + for (var i = 0; i < message.customJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJobs[i]); + if (error) + return "customJobs." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse */ - UpdateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + ListCustomJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.nearestNeighborSearchOperationMetadata != null) { - if (typeof object.nearestNeighborSearchOperationMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); + if (object.customJobs) { + if (!Array.isArray(object.customJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: array expected"); + message.customJobs = []; + for (var i = 0; i < object.customJobs.length; ++i) { + if (typeof object.customJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: object expected"); + message.customJobs[i] = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJobs[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexOperationMetadata.toObject = function toObject(message, options) { + ListCustomJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; + if (options.arrays || options.defaults) + object.customJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customJobs && message.customJobs.length) { + object.customJobs = []; + for (var j = 0; j < message.customJobs.length; ++j) + object.customJobs[j] = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJobs[j], options); } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) - object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateIndexOperationMetadata to JSON. + * Converts this ListCustomJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance * @returns {Object.} JSON object */ - UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { + ListCustomJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateIndexOperationMetadata + * Gets the default type url for ListCustomJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsResponse"; }; - return UpdateIndexOperationMetadata; + return ListCustomJobsResponse; })(); - v1beta1.DeleteIndexRequest = (function() { + v1beta1.DeleteCustomJobRequest = (function() { /** - * Properties of a DeleteIndexRequest. + * Properties of a DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteIndexRequest - * @property {string|null} [name] DeleteIndexRequest name + * @interface IDeleteCustomJobRequest + * @property {string|null} [name] DeleteCustomJobRequest name */ /** - * Constructs a new DeleteIndexRequest. + * Constructs a new DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteIndexRequest. - * @implements IDeleteIndexRequest + * @classdesc Represents a DeleteCustomJobRequest. + * @implements IDeleteCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set */ - function DeleteIndexRequest(properties) { + function DeleteCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254644,35 +266761,35 @@ } /** - * DeleteIndexRequest name. + * DeleteCustomJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance */ - DeleteIndexRequest.prototype.name = ""; + DeleteCustomJobRequest.prototype.name = ""; /** - * Creates a new DeleteIndexRequest instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance */ - DeleteIndexRequest.create = function create(properties) { - return new DeleteIndexRequest(properties); + DeleteCustomJobRequest.create = function create(properties) { + return new DeleteCustomJobRequest(properties); }; /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encode = function encode(message, writer) { + DeleteCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -254681,33 +266798,33 @@ }; /** - * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decode = function decode(reader, length) { + DeleteCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -254724,30 +266841,30 @@ }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIndexRequest message. + * Verifies a DeleteCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIndexRequest.verify = function verify(message) { + DeleteCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -254757,32 +266874,32 @@ }; /** - * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest */ - DeleteIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + DeleteCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexRequest.toObject = function toObject(message, options) { + DeleteCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -254794,54 +266911,52 @@ }; /** - * Converts this DeleteIndexRequest to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance * @returns {Object.} JSON object */ - DeleteIndexRequest.prototype.toJSON = function toJSON() { + DeleteCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteIndexRequest + * Gets the default type url for DeleteCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest"; }; - return DeleteIndexRequest; + return DeleteCustomJobRequest; })(); - v1beta1.UpsertDatapointsRequest = (function() { + v1beta1.CancelCustomJobRequest = (function() { /** - * Properties of an UpsertDatapointsRequest. + * Properties of a CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpsertDatapointsRequest - * @property {string|null} [index] UpsertDatapointsRequest index - * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints + * @interface ICancelCustomJobRequest + * @property {string|null} [name] CancelCustomJobRequest name */ /** - * Constructs a new UpsertDatapointsRequest. + * Constructs a new CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpsertDatapointsRequest. - * @implements IUpsertDatapointsRequest + * @classdesc Represents a CancelCustomJobRequest. + * @implements ICancelCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set */ - function UpsertDatapointsRequest(properties) { - this.datapoints = []; + function CancelCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254849,92 +266964,75 @@ } /** - * UpsertDatapointsRequest index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest - * @instance - */ - UpsertDatapointsRequest.prototype.index = ""; - - /** - * UpsertDatapointsRequest datapoints. - * @member {Array.} datapoints - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * CancelCustomJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance */ - UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; + CancelCustomJobRequest.prototype.name = ""; /** - * Creates a new UpsertDatapointsRequest instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance */ - UpsertDatapointsRequest.create = function create(properties) { - return new UpsertDatapointsRequest(properties); + CancelCustomJobRequest.create = function create(properties) { + return new CancelCustomJobRequest(properties); }; /** - * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsRequest.encode = function encode(message, writer) { + CancelCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); - if (message.datapoints != null && message.datapoints.length) - for (var i = 0; i < message.datapoints.length; ++i) - $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.encode(message.datapoints[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsRequest.decode = function decode(reader, length) { + CancelCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.index = reader.string(); - break; - } - case 2: { - if (!(message.datapoints && message.datapoints.length)) - message.datapoints = []; - message.datapoints.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32())); + message.name = reader.string(); break; } default: @@ -254946,147 +267044,123 @@ }; /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { + CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpsertDatapointsRequest message. + * Verifies a CancelCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpsertDatapointsRequest.verify = function verify(message) { + CancelCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.datapoints != null && message.hasOwnProperty("datapoints")) { - if (!Array.isArray(message.datapoints)) - return "datapoints: array expected"; - for (var i = 0; i < message.datapoints.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.verify(message.datapoints[i]); - if (error) - return "datapoints." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest */ - UpsertDatapointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest) + CancelCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(); - if (object.index != null) - message.index = String(object.index); - if (object.datapoints) { - if (!Array.isArray(object.datapoints)) - throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: array expected"); - message.datapoints = []; - for (var i = 0; i < object.datapoints.length; ++i) { - if (typeof object.datapoints[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: object expected"); - message.datapoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoints[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} message UpsertDatapointsRequest + * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsertDatapointsRequest.toObject = function toObject(message, options) { + CancelCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.datapoints = []; if (options.defaults) - object.index = ""; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.datapoints && message.datapoints.length) { - object.datapoints = []; - for (var j = 0; j < message.datapoints.length; ++j) - object.datapoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoints[j], options); - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpsertDatapointsRequest to JSON. + * Converts this CancelCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance * @returns {Object.} JSON object */ - UpsertDatapointsRequest.prototype.toJSON = function toJSON() { + CancelCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpsertDatapointsRequest + * Gets the default type url for CancelCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpsertDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelCustomJobRequest"; }; - return UpsertDatapointsRequest; + return CancelCustomJobRequest; })(); - v1beta1.UpsertDatapointsResponse = (function() { + v1beta1.CreateDataLabelingJobRequest = (function() { /** - * Properties of an UpsertDatapointsResponse. + * Properties of a CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpsertDatapointsResponse + * @interface ICreateDataLabelingJobRequest + * @property {string|null} [parent] CreateDataLabelingJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob */ /** - * Constructs a new UpsertDatapointsResponse. + * Constructs a new CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpsertDatapointsResponse. - * @implements IUpsertDatapointsResponse + * @classdesc Represents a CreateDataLabelingJobRequest. + * @implements ICreateDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set */ - function UpsertDatapointsResponse(properties) { + function CreateDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255094,63 +267168,91 @@ } /** - * Creates a new UpsertDatapointsResponse instance using the specified properties. + * CreateDataLabelingJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @instance + */ + CreateDataLabelingJobRequest.prototype.parent = ""; + + /** + * CreateDataLabelingJobRequest dataLabelingJob. + * @member {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null|undefined} dataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @instance + */ + CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; + + /** + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance */ - UpsertDatapointsResponse.create = function create(properties) { - return new UpsertDatapointsResponse(properties); + CreateDataLabelingJobRequest.create = function create(properties) { + return new CreateDataLabelingJobRequest(properties); }; /** - * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsResponse.encode = function encode(message, writer) { + CreateDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) + $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsResponse.decode = function decode(reader, length) { + CreateDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -255160,111 +267262,136 @@ }; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpsertDatapointsResponse message. + * Verifies a CreateDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpsertDatapointsResponse.verify = function verify(message) { + CreateDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJob); + if (error) + return "dataLabelingJob." + error; + } return null; }; /** - * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest */ - UpsertDatapointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) + CreateDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataLabelingJob != null) { + if (typeof object.dataLabelingJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); + message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJob); + } + return message; }; /** - * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} message UpsertDatapointsResponse + * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsertDatapointsResponse.toObject = function toObject() { - return {}; + CreateDataLabelingJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.dataLabelingJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) + object.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJob, options); + return object; }; /** - * Converts this UpsertDatapointsResponse to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - UpsertDatapointsResponse.prototype.toJSON = function toJSON() { + CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpsertDatapointsResponse + * Gets the default type url for CreateDataLabelingJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpsertDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest"; }; - return UpsertDatapointsResponse; + return CreateDataLabelingJobRequest; })(); - v1beta1.RemoveDatapointsRequest = (function() { + v1beta1.GetDataLabelingJobRequest = (function() { /** - * Properties of a RemoveDatapointsRequest. + * Properties of a GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IRemoveDatapointsRequest - * @property {string|null} [index] RemoveDatapointsRequest index - * @property {Array.|null} [datapointIds] RemoveDatapointsRequest datapointIds + * @interface IGetDataLabelingJobRequest + * @property {string|null} [name] GetDataLabelingJobRequest name */ /** - * Constructs a new RemoveDatapointsRequest. + * Constructs a new GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a RemoveDatapointsRequest. - * @implements IRemoveDatapointsRequest + * @classdesc Represents a GetDataLabelingJobRequest. + * @implements IGetDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set */ - function RemoveDatapointsRequest(properties) { - this.datapointIds = []; + function GetDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255272,92 +267399,75 @@ } /** - * RemoveDatapointsRequest index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest - * @instance - */ - RemoveDatapointsRequest.prototype.index = ""; - - /** - * RemoveDatapointsRequest datapointIds. - * @member {Array.} datapointIds - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * GetDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance */ - RemoveDatapointsRequest.prototype.datapointIds = $util.emptyArray; + GetDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new RemoveDatapointsRequest instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance */ - RemoveDatapointsRequest.create = function create(properties) { - return new RemoveDatapointsRequest(properties); + GetDataLabelingJobRequest.create = function create(properties) { + return new GetDataLabelingJobRequest(properties); }; /** - * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsRequest.encode = function encode(message, writer) { + GetDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); - if (message.datapointIds != null && message.datapointIds.length) - for (var i = 0; i < message.datapointIds.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datapointIds[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsRequest.decode = function decode(reader, length) { + GetDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.index = reader.string(); - break; - } - case 2: { - if (!(message.datapointIds && message.datapointIds.length)) - message.datapointIds = []; - message.datapointIds.push(reader.string()); + message.name = reader.string(); break; } default: @@ -255369,142 +267479,127 @@ }; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { + GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveDatapointsRequest message. + * Verifies a GetDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveDatapointsRequest.verify = function verify(message) { + GetDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.datapointIds != null && message.hasOwnProperty("datapointIds")) { - if (!Array.isArray(message.datapointIds)) - return "datapointIds: array expected"; - for (var i = 0; i < message.datapointIds.length; ++i) - if (!$util.isString(message.datapointIds[i])) - return "datapointIds: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest */ - RemoveDatapointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest) + GetDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(); - if (object.index != null) - message.index = String(object.index); - if (object.datapointIds) { - if (!Array.isArray(object.datapointIds)) - throw TypeError(".google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.datapointIds: array expected"); - message.datapointIds = []; - for (var i = 0; i < object.datapointIds.length; ++i) - message.datapointIds[i] = String(object.datapointIds[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} message RemoveDatapointsRequest + * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveDatapointsRequest.toObject = function toObject(message, options) { + GetDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.datapointIds = []; if (options.defaults) - object.index = ""; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.datapointIds && message.datapointIds.length) { - object.datapointIds = []; - for (var j = 0; j < message.datapointIds.length; ++j) - object.datapointIds[j] = message.datapointIds[j]; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this RemoveDatapointsRequest to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - RemoveDatapointsRequest.prototype.toJSON = function toJSON() { + GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveDatapointsRequest + * Gets the default type url for GetDataLabelingJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest"; }; - return RemoveDatapointsRequest; + return GetDataLabelingJobRequest; })(); - v1beta1.RemoveDatapointsResponse = (function() { + v1beta1.ListDataLabelingJobsRequest = (function() { /** - * Properties of a RemoveDatapointsResponse. + * Properties of a ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IRemoveDatapointsResponse + * @interface IListDataLabelingJobsRequest + * @property {string|null} [parent] ListDataLabelingJobsRequest parent + * @property {string|null} [filter] ListDataLabelingJobsRequest filter + * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize + * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask + * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy */ /** - * Constructs a new RemoveDatapointsResponse. + * Constructs a new ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a RemoveDatapointsResponse. - * @implements IRemoveDatapointsResponse + * @classdesc Represents a ListDataLabelingJobsRequest. + * @implements IListDataLabelingJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set */ - function RemoveDatapointsResponse(properties) { + function ListDataLabelingJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255512,63 +267607,147 @@ } /** - * Creates a new RemoveDatapointsResponse instance using the specified properties. + * ListDataLabelingJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.parent = ""; + + /** + * ListDataLabelingJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.filter = ""; + + /** + * ListDataLabelingJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.pageSize = 0; + + /** + * ListDataLabelingJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.pageToken = ""; + + /** + * ListDataLabelingJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.readMask = null; + + /** + * ListDataLabelingJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance */ - RemoveDatapointsResponse.create = function create(properties) { - return new RemoveDatapointsResponse(properties); + ListDataLabelingJobsRequest.create = function create(properties) { + return new ListDataLabelingJobsRequest(properties); }; /** - * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsResponse.encode = function encode(message, writer) { + ListDataLabelingJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsResponse.decode = function decode(reader, length) { + ListDataLabelingJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 6: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -255578,111 +267757,170 @@ }; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveDatapointsResponse message. + * Verifies a ListDataLabelingJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveDatapointsResponse.verify = function verify(message) { + ListDataLabelingJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest */ - RemoveDatapointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) + ListDataLabelingJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; }; /** - * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} message RemoveDatapointsResponse + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveDatapointsResponse.toObject = function toObject() { - return {}; + ListDataLabelingJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; }; /** - * Converts this RemoveDatapointsResponse to JSON. + * Converts this ListDataLabelingJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance * @returns {Object.} JSON object */ - RemoveDatapointsResponse.prototype.toJSON = function toJSON() { + ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveDatapointsResponse + * Gets the default type url for ListDataLabelingJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDataLabelingJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest"; }; - return RemoveDatapointsResponse; + return ListDataLabelingJobsRequest; })(); - v1beta1.NearestNeighborSearchOperationMetadata = (function() { + v1beta1.ListDataLabelingJobsResponse = (function() { /** - * Properties of a NearestNeighborSearchOperationMetadata. + * Properties of a ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface INearestNeighborSearchOperationMetadata - * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats - * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount + * @interface IListDataLabelingJobsResponse + * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs + * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken */ /** - * Constructs a new NearestNeighborSearchOperationMetadata. + * Constructs a new ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a NearestNeighborSearchOperationMetadata. - * @implements INearestNeighborSearchOperationMetadata + * @classdesc Represents a ListDataLabelingJobsResponse. + * @implements IListDataLabelingJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set */ - function NearestNeighborSearchOperationMetadata(properties) { - this.contentValidationStats = []; + function ListDataLabelingJobsResponse(properties) { + this.dataLabelingJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255690,92 +267928,92 @@ } /** - * NearestNeighborSearchOperationMetadata contentValidationStats. - * @member {Array.} contentValidationStats - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * ListDataLabelingJobsResponse dataLabelingJobs. + * @member {Array.} dataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance */ - NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; + ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; /** - * NearestNeighborSearchOperationMetadata dataBytesCount. - * @member {number|Long} dataBytesCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * ListDataLabelingJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance */ - NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListDataLabelingJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. + * Creates a new ListDataLabelingJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance */ - NearestNeighborSearchOperationMetadata.create = function create(properties) { - return new NearestNeighborSearchOperationMetadata(properties); + ListDataLabelingJobsResponse.create = function create(properties) { + return new ListDataLabelingJobsResponse(properties); }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NearestNeighborSearchOperationMetadata.encode = function encode(message, writer) { + ListDataLabelingJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contentValidationStats != null && message.contentValidationStats.length) - for (var i = 0; i < message.contentValidationStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.encode(message.contentValidationStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.dataBytesCount != null && Object.hasOwnProperty.call(message, "dataBytesCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dataBytesCount); + if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) + for (var i = 0; i < message.dataLabelingJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NearestNeighborSearchOperationMetadata.decode = function decode(reader, length) { + ListDataLabelingJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.contentValidationStats && message.contentValidationStats.length)) - message.contentValidationStats = []; - message.contentValidationStats.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.decode(reader, reader.uint32())); + if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) + message.dataLabelingJobs = []; + message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32())); break; } case 2: { - message.dataBytesCount = reader.int64(); + message.nextPageToken = reader.string(); break; } default: @@ -255787,1816 +268025,1945 @@ }; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NearestNeighborSearchOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NearestNeighborSearchOperationMetadata message. + * Verifies a ListDataLabelingJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NearestNeighborSearchOperationMetadata.verify = function verify(message) { + ListDataLabelingJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.contentValidationStats != null && message.hasOwnProperty("contentValidationStats")) { - if (!Array.isArray(message.contentValidationStats)) - return "contentValidationStats: array expected"; - for (var i = 0; i < message.contentValidationStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify(message.contentValidationStats[i]); + if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { + if (!Array.isArray(message.dataLabelingJobs)) + return "dataLabelingJobs: array expected"; + for (var i = 0; i < message.dataLabelingJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJobs[i]); if (error) - return "contentValidationStats." + error; + return "dataLabelingJobs." + error; } } - if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) - if (!$util.isInteger(message.dataBytesCount) && !(message.dataBytesCount && $util.isInteger(message.dataBytesCount.low) && $util.isInteger(message.dataBytesCount.high))) - return "dataBytesCount: integer|Long expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse */ - NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + ListDataLabelingJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); - if (object.contentValidationStats) { - if (!Array.isArray(object.contentValidationStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: array expected"); - message.contentValidationStats = []; - for (var i = 0; i < object.contentValidationStats.length; ++i) { - if (typeof object.contentValidationStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: object expected"); - message.contentValidationStats[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.fromObject(object.contentValidationStats[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); + if (object.dataLabelingJobs) { + if (!Array.isArray(object.dataLabelingJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); + message.dataLabelingJobs = []; + for (var i = 0; i < object.dataLabelingJobs.length; ++i) { + if (typeof object.dataLabelingJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); + message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); } } - if (object.dataBytesCount != null) - if ($util.Long) - (message.dataBytesCount = $util.Long.fromValue(object.dataBytesCount)).unsigned = false; - else if (typeof object.dataBytesCount === "string") - message.dataBytesCount = parseInt(object.dataBytesCount, 10); - else if (typeof object.dataBytesCount === "number") - message.dataBytesCount = object.dataBytesCount; - else if (typeof object.dataBytesCount === "object") - message.dataBytesCount = new $util.LongBits(object.dataBytesCount.low >>> 0, object.dataBytesCount.high >>> 0).toNumber(); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { + ListDataLabelingJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.contentValidationStats = []; + object.dataLabelingJobs = []; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.dataBytesCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dataBytesCount = options.longs === String ? "0" : 0; - if (message.contentValidationStats && message.contentValidationStats.length) { - object.contentValidationStats = []; - for (var j = 0; j < message.contentValidationStats.length; ++j) - object.contentValidationStats[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.toObject(message.contentValidationStats[j], options); + object.nextPageToken = ""; + if (message.dataLabelingJobs && message.dataLabelingJobs.length) { + object.dataLabelingJobs = []; + for (var j = 0; j < message.dataLabelingJobs.length; ++j) + object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); } - if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) - if (typeof message.dataBytesCount === "number") - object.dataBytesCount = options.longs === String ? String(message.dataBytesCount) : message.dataBytesCount; - else - object.dataBytesCount = options.longs === String ? $util.Long.prototype.toString.call(message.dataBytesCount) : options.longs === Number ? new $util.LongBits(message.dataBytesCount.low >>> 0, message.dataBytesCount.high >>> 0).toNumber() : message.dataBytesCount; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. + * Converts this ListDataLabelingJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance * @returns {Object.} JSON object */ - NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { + ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NearestNeighborSearchOperationMetadata + * Gets the default type url for ListDataLabelingJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NearestNeighborSearchOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDataLabelingJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse"; }; - NearestNeighborSearchOperationMetadata.RecordError = (function() { - - /** - * Properties of a RecordError. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @interface IRecordError - * @property {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null} [errorType] RecordError errorType - * @property {string|null} [errorMessage] RecordError errorMessage - * @property {string|null} [sourceGcsUri] RecordError sourceGcsUri - * @property {string|null} [embeddingId] RecordError embeddingId - * @property {string|null} [rawRecord] RecordError rawRecord - */ - - /** - * Constructs a new RecordError. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @classdesc Represents a RecordError. - * @implements IRecordError - * @constructor - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set - */ - function RecordError(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]]; - } - - /** - * RecordError errorType. - * @member {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} errorType - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.errorType = 0; - - /** - * RecordError errorMessage. - * @member {string} errorMessage - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.errorMessage = ""; - - /** - * RecordError sourceGcsUri. - * @member {string} sourceGcsUri - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.sourceGcsUri = ""; - - /** - * RecordError embeddingId. - * @member {string} embeddingId - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.embeddingId = ""; - - /** - * RecordError rawRecord. - * @member {string} rawRecord - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.rawRecord = ""; - - /** - * Creates a new RecordError instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError instance - */ - RecordError.create = function create(properties) { - return new RecordError(properties); - }; - - /** - * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.errorType != null && Object.hasOwnProperty.call(message, "errorType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.errorType); - if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); - if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceGcsUri); - if (message.embeddingId != null && Object.hasOwnProperty.call(message, "embeddingId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.embeddingId); - if (message.rawRecord != null && Object.hasOwnProperty.call(message, "rawRecord")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.rawRecord); - return writer; - }; - - /** - * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RecordError message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.errorType = reader.int32(); - break; - } - case 2: { - message.errorMessage = reader.string(); - break; - } - case 3: { - message.sourceGcsUri = reader.string(); - break; - } - case 4: { - message.embeddingId = reader.string(); - break; - } - case 5: { - message.rawRecord = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RecordError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordError message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecordError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.errorType != null && message.hasOwnProperty("errorType")) - switch (message.errorType) { - default: - return "errorType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - if (!$util.isString(message.sourceGcsUri)) - return "sourceGcsUri: string expected"; - if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) - if (!$util.isString(message.embeddingId)) - return "embeddingId: string expected"; - if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) - if (!$util.isString(message.rawRecord)) - return "rawRecord: string expected"; - return null; - }; - - /** - * Creates a RecordError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - */ - RecordError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); - switch (object.errorType) { - default: - if (typeof object.errorType === "number") { - message.errorType = object.errorType; - break; - } - break; - case "ERROR_TYPE_UNSPECIFIED": - case 0: - message.errorType = 0; - break; - case "EMPTY_LINE": - case 1: - message.errorType = 1; - break; - case "INVALID_JSON_SYNTAX": - case 2: - message.errorType = 2; - break; - case "INVALID_CSV_SYNTAX": - case 3: - message.errorType = 3; - break; - case "INVALID_AVRO_SYNTAX": - case 4: - message.errorType = 4; - break; - case "INVALID_EMBEDDING_ID": - case 5: - message.errorType = 5; - break; - case "EMBEDDING_SIZE_MISMATCH": - case 6: - message.errorType = 6; - break; - case "NAMESPACE_MISSING": - case 7: - message.errorType = 7; - break; - } - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); - if (object.sourceGcsUri != null) - message.sourceGcsUri = String(object.sourceGcsUri); - if (object.embeddingId != null) - message.embeddingId = String(object.embeddingId); - if (object.rawRecord != null) - message.rawRecord = String(object.rawRecord); - return message; - }; - - /** - * Creates a plain object from a RecordError message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} message RecordError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RecordError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.errorType = options.enums === String ? "ERROR_TYPE_UNSPECIFIED" : 0; - object.errorMessage = ""; - object.sourceGcsUri = ""; - object.embeddingId = ""; - object.rawRecord = ""; - } - if (message.errorType != null && message.hasOwnProperty("errorType")) - object.errorType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] === undefined ? message.errorType : $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] : message.errorType; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - object.errorMessage = message.errorMessage; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - object.sourceGcsUri = message.sourceGcsUri; - if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) - object.embeddingId = message.embeddingId; - if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) - object.rawRecord = message.rawRecord; - return object; - }; - - /** - * Converts this RecordError to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - * @returns {Object.} JSON object - */ - RecordError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RecordError - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RecordError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError"; - }; - - /** - * RecordErrorType enum. - * @name google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType - * @enum {number} - * @property {number} ERROR_TYPE_UNSPECIFIED=0 ERROR_TYPE_UNSPECIFIED value - * @property {number} EMPTY_LINE=1 EMPTY_LINE value - * @property {number} INVALID_JSON_SYNTAX=2 INVALID_JSON_SYNTAX value - * @property {number} INVALID_CSV_SYNTAX=3 INVALID_CSV_SYNTAX value - * @property {number} INVALID_AVRO_SYNTAX=4 INVALID_AVRO_SYNTAX value - * @property {number} INVALID_EMBEDDING_ID=5 INVALID_EMBEDDING_ID value - * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value - * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value - */ - RecordError.RecordErrorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EMPTY_LINE"] = 1; - values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; - values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; - values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; - values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; - values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; - values[valuesById[7] = "NAMESPACE_MISSING"] = 7; - return values; - })(); - - return RecordError; - })(); - - NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { - - /** - * Properties of a ContentValidationStats. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @interface IContentValidationStats - * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri - * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount - * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount - * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors - */ - - /** - * Constructs a new ContentValidationStats. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @classdesc Represents a ContentValidationStats. - * @implements IContentValidationStats - * @constructor - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - */ - function ContentValidationStats(properties) { - this.partialErrors = []; - 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]]; - } - - /** - * ContentValidationStats sourceGcsUri. - * @member {string} sourceGcsUri - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.sourceGcsUri = ""; - - /** - * ContentValidationStats validRecordCount. - * @member {number|Long} validRecordCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ContentValidationStats invalidRecordCount. - * @member {number|Long} invalidRecordCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + return ListDataLabelingJobsResponse; + })(); - /** - * ContentValidationStats partialErrors. - * @member {Array.} partialErrors - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.partialErrors = $util.emptyArray; + v1beta1.DeleteDataLabelingJobRequest = (function() { - /** - * Creates a new ContentValidationStats instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance - */ - ContentValidationStats.create = function create(properties) { - return new ContentValidationStats(properties); - }; + /** + * Properties of a DeleteDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteDataLabelingJobRequest + * @property {string|null} [name] DeleteDataLabelingJobRequest name + */ - /** - * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); - if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); - if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); - if (message.partialErrors != null && message.partialErrors.length) - for (var i = 0; i < message.partialErrors.length; ++i) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new DeleteDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteDataLabelingJobRequest. + * @implements IDeleteDataLabelingJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + */ + function DeleteDataLabelingJobRequest(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]]; + } - /** - * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * DeleteDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @instance + */ + DeleteDataLabelingJobRequest.prototype.name = ""; - /** - * Decodes a ContentValidationStats message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.sourceGcsUri = reader.string(); - break; - } - case 2: { - message.validRecordCount = reader.int64(); - break; - } - case 3: { - message.invalidRecordCount = reader.int64(); - break; - } - case 4: { - if (!(message.partialErrors && message.partialErrors.length)) - message.partialErrors = []; - message.partialErrors.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance + */ + DeleteDataLabelingJobRequest.create = function create(properties) { + return new DeleteDataLabelingJobRequest(properties); + }; - /** - * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDataLabelingJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Verifies a ContentValidationStats message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContentValidationStats.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - if (!$util.isString(message.sourceGcsUri)) - return "sourceGcsUri: string expected"; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) - return "validRecordCount: integer|Long expected"; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) - return "invalidRecordCount: integer|Long expected"; - if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { - if (!Array.isArray(message.partialErrors)) - return "partialErrors: array expected"; - for (var i = 0; i < message.partialErrors.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); - if (error) - return "partialErrors." + error; - } - } - return null; - }; + /** + * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - */ - ContentValidationStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - if (object.sourceGcsUri != null) - message.sourceGcsUri = String(object.sourceGcsUri); - if (object.validRecordCount != null) - if ($util.Long) - (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; - else if (typeof object.validRecordCount === "string") - message.validRecordCount = parseInt(object.validRecordCount, 10); - else if (typeof object.validRecordCount === "number") - message.validRecordCount = object.validRecordCount; - else if (typeof object.validRecordCount === "object") - message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); - if (object.invalidRecordCount != null) - if ($util.Long) - (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; - else if (typeof object.invalidRecordCount === "string") - message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); - else if (typeof object.invalidRecordCount === "number") - message.invalidRecordCount = object.invalidRecordCount; - else if (typeof object.invalidRecordCount === "object") - message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); - if (object.partialErrors) { - if (!Array.isArray(object.partialErrors)) - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); - message.partialErrors = []; - for (var i = 0; i < object.partialErrors.length; ++i) { - if (typeof object.partialErrors[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); - message.partialErrors[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); + /** + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDataLabelingJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContentValidationStats.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.partialErrors = []; - if (options.defaults) { - object.sourceGcsUri = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.validRecordCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invalidRecordCount = options.longs === String ? "0" : 0; - } - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - object.sourceGcsUri = message.sourceGcsUri; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (typeof message.validRecordCount === "number") - object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; - else - object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (typeof message.invalidRecordCount === "number") - object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; - else - object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; - if (message.partialErrors && message.partialErrors.length) { - object.partialErrors = []; - for (var j = 0; j < message.partialErrors.length; ++j) - object.partialErrors[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); - } + /** + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDataLabelingJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteDataLabelingJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + */ + DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this ContentValidationStats to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - * @returns {Object.} JSON object - */ - ContentValidationStats.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Gets the default type url for ContentValidationStats - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ContentValidationStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats"; - }; + /** + * Converts this DeleteDataLabelingJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ContentValidationStats; - })(); + /** + * Gets the default type url for DeleteDataLabelingJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest"; + }; - return NearestNeighborSearchOperationMetadata; + return DeleteDataLabelingJobRequest; })(); - v1beta1.JobService = (function() { + v1beta1.CancelDataLabelingJobRequest = (function() { /** - * Constructs a new JobService service. + * Properties of a CancelDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a JobService - * @extends $protobuf.rpc.Service + * @interface ICancelDataLabelingJobRequest + * @property {string|null} [name] CancelDataLabelingJobRequest name + */ + + /** + * Constructs a new CancelDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CancelDataLabelingJobRequest. + * @implements ICancelDataLabelingJobRequest * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set */ - function JobService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function CancelDataLabelingJobRequest(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]]; } - (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; + /** + * CancelDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @instance + */ + CancelDataLabelingJobRequest.prototype.name = ""; /** - * Creates new JobService service using the specified rpc implementation. + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.JobService + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance */ - JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + CancelDataLabelingJobRequest.create = function create(properties) { + return new CancelDataLabelingJobRequest(properties); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob + * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CancelDataLabelingJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 + * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { - return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); - }, "name", { value: "CreateCustomJob" }); + CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelDataLabelingJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 + * Verifies a CancelDataLabelingJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { - return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); - }, "name", { value: "GetCustomJob" }); + CancelDataLabelingJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest */ + CancelDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListCustomJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} [response] ListCustomJobsResponse + * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CancelDataLabelingJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CancelDataLabelingJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { - return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, request, callback); - }, "name", { value: "ListCustomJobs" }); + CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for CancelDataLabelingJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CancelDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest"; + }; + + return CancelDataLabelingJobRequest; + })(); + + v1beta1.CreateHyperparameterTuningJobRequest = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Properties of a CreateHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateHyperparameterTuningJobRequest + * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Constructs a new CreateHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateHyperparameterTuningJobRequest. + * @implements ICreateHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + */ + function CreateHyperparameterTuningJobRequest(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]]; + } + + /** + * CreateHyperparameterTuningJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { - return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteCustomJob" }); + CreateHyperparameterTuningJobRequest.prototype.parent = ""; /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. + * @member {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance */ + CreateHyperparameterTuningJobRequest.create = function create(properties) { + return new CreateHyperparameterTuningJobRequest(properties); + }; /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { - return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelCustomJob" }); + CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) + $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateHyperparameterTuningJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob - * @returns {undefined} - * @variation 1 + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { - return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); - }, "name", { value: "CreateDataLabelingJob" }); + CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CreateHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CreateHyperparameterTuningJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); + if (error) + return "hyperparameterTuningJob." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest */ + CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.hyperparameterTuningJob != null) { + if (typeof object.hyperparameterTuningJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); + } + return message; + }; /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { - return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); - }, "name", { value: "GetDataLabelingJob" }); + CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.hyperparameterTuningJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) + object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); + return object; + }; /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CreateHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListDataLabelingJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse + * Gets the default type url for CreateHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest"; + }; + + return CreateHyperparameterTuningJobRequest; + })(); + + v1beta1.GetHyperparameterTuningJobRequest = (function() { + + /** + * Properties of a GetHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetHyperparameterTuningJobRequest + * @property {string|null} [name] GetHyperparameterTuningJobRequest name */ /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new GetHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetHyperparameterTuningJobRequest. + * @implements IGetHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set */ - Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { - return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, request, callback); - }, "name", { value: "ListDataLabelingJobs" }); + function GetHyperparameterTuningJobRequest(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]]; + } /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * GetHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + GetHyperparameterTuningJobRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance */ + GetHyperparameterTuningJobRequest.create = function create(properties) { + return new GetHyperparameterTuningJobRequest(properties); + }; /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { - return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteDataLabelingJob" }); + GetHyperparameterTuningJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHyperparameterTuningJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetHyperparameterTuningJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + */ + GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Gets the default type url for GetHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest"; + }; + + return GetHyperparameterTuningJobRequest; + })(); + + v1beta1.ListHyperparameterTuningJobsRequest = (function() { + + /** + * Properties of a ListHyperparameterTuningJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListHyperparameterTuningJobsRequest + * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent + * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter + * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize + * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask + */ + + /** + * Constructs a new ListHyperparameterTuningJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListHyperparameterTuningJobsRequest. + * @implements IListHyperparameterTuningJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set */ + function ListHyperparameterTuningJobsRequest(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]]; + } /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { - return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelDataLabelingJob" }); + ListHyperparameterTuningJobsRequest.prototype.parent = ""; /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListHyperparameterTuningJobsRequest.prototype.filter = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob + * ListHyperparameterTuningJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @instance */ + ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { - return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); - }, "name", { value: "CreateHyperparameterTuningJob" }); + ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListHyperparameterTuningJobsRequest.prototype.readMask = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance */ + ListHyperparameterTuningJobsRequest.create = function create(properties) { + return new ListHyperparameterTuningJobsRequest(properties); + }; /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 + * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { - return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); - }, "name", { value: "GetHyperparameterTuningJob" }); + ListHyperparameterTuningJobsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListHyperparameterTuningJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListHyperparameterTuningJobsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse - * @returns {undefined} - * @variation 1 + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { - return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, request, callback); - }, "name", { value: "ListHyperparameterTuningJobs" }); + ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListHyperparameterTuningJobsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListHyperparameterTuningJobsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest */ + ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { - return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteHyperparameterTuningJob" }); + ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this ListHyperparameterTuningJobsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Gets the default type url for ListHyperparameterTuningJobsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListHyperparameterTuningJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest"; + }; + + return ListHyperparameterTuningJobsRequest; + })(); + + v1beta1.ListHyperparameterTuningJobsResponse = (function() { /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Properties of a ListHyperparameterTuningJobsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListHyperparameterTuningJobsResponse + * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs + * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken */ - Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { - return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelHyperparameterTuningJob" }); /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Constructs a new ListHyperparameterTuningJobsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListHyperparameterTuningJobsResponse. + * @implements IListHyperparameterTuningJobsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set */ + function ListHyperparameterTuningJobsResponse(properties) { + this.hyperparameterTuningJobs = []; + 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]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob + * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. + * @member {Array.} hyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @instance */ + ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { - return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); - }, "name", { value: "CreateBatchPredictionJob" }); + ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance */ + ListHyperparameterTuningJobsResponse.create = function create(properties) { + return new ListHyperparameterTuningJobsResponse(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob + * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 + * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { - return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); - }, "name", { value: "GetBatchPredictionJob" }); + ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListHyperparameterTuningJobsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) + message.hyperparameterTuningJobs = []; + message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListBatchPredictionJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse - * @returns {undefined} - * @variation 1 + * Verifies a ListHyperparameterTuningJobsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { - return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, request, callback); - }, "name", { value: "ListBatchPredictionJobs" }); + ListHyperparameterTuningJobsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { + if (!Array.isArray(message.hyperparameterTuningJobs)) + return "hyperparameterTuningJobs: array expected"; + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); + if (error) + return "hyperparameterTuningJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse */ + ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); + if (object.hyperparameterTuningJobs) { + if (!Array.isArray(object.hyperparameterTuningJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); + message.hyperparameterTuningJobs = []; + for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { + if (typeof object.hyperparameterTuningJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); + message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.hyperparameterTuningJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { + object.hyperparameterTuningJobs = []; + for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) + object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this ListHyperparameterTuningJobsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { - return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteBatchPredictionJob" }); + ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for ListHyperparameterTuningJobsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListHyperparameterTuningJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse"; + }; + + return ListHyperparameterTuningJobsResponse; + })(); + + v1beta1.DeleteHyperparameterTuningJobRequest = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Properties of a DeleteHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteHyperparameterTuningJobRequest + * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name */ /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Constructs a new DeleteHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteHyperparameterTuningJobRequest. + * @implements IDeleteHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set */ - Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { - return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelBatchPredictionJob" }); + function DeleteHyperparameterTuningJobRequest(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]]; + } /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * DeleteHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DeleteHyperparameterTuningJobRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance */ + DeleteHyperparameterTuningJobRequest.create = function create(properties) { + return new DeleteHyperparameterTuningJobRequest(properties); + }; /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 + * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "CreateModelDeploymentMonitoringJob" }); + DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteHyperparameterTuningJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse - * @returns {undefined} - * @variation 1 + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { - return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); - }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); + DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a DeleteHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + DeleteHyperparameterTuningJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob + * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest */ + DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 + * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "GetModelDeploymentMonitoringJob" }); + DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListModelDeploymentMonitoringJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for DeleteHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + DeleteHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest"; + }; - /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { - return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, request, callback); - }, "name", { value: "ListModelDeploymentMonitoringJobs" }); + return DeleteHyperparameterTuningJobRequest; + })(); + + v1beta1.CancelHyperparameterTuningJobRequest = (function() { /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a CancelHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICancelHyperparameterTuningJobRequest + * @property {string|null} [name] CancelHyperparameterTuningJobRequest name */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef UpdateModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Constructs a new CancelHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CancelHyperparameterTuningJobRequest. + * @implements ICancelHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set */ + function CancelHyperparameterTuningJobRequest(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]]; + } /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CancelHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); + CancelHyperparameterTuningJobRequest.prototype.name = ""; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance */ + CancelHyperparameterTuningJobRequest.create = function create(properties) { + return new CancelHyperparameterTuningJobRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); + CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelHyperparameterTuningJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef PauseModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Verifies a CancelHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "PauseModelDeploymentMonitoringJob" }); + CancelHyperparameterTuningJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest */ + CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ResumeModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CancelHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); + CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for CancelHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CancelHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest"; + }; - return JobService; + return CancelHyperparameterTuningJobRequest; })(); - v1beta1.CreateCustomJobRequest = (function() { + v1beta1.CreateNasJobRequest = (function() { /** - * Properties of a CreateCustomJobRequest. + * Properties of a CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateCustomJobRequest - * @property {string|null} [parent] CreateCustomJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob + * @interface ICreateNasJobRequest + * @property {string|null} [parent] CreateNasJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.INasJob|null} [nasJob] CreateNasJobRequest nasJob */ /** - * Constructs a new CreateCustomJobRequest. + * Constructs a new CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateCustomJobRequest. - * @implements ICreateCustomJobRequest + * @classdesc Represents a CreateNasJobRequest. + * @implements ICreateNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest=} [properties] Properties to set */ - function CreateCustomJobRequest(properties) { + function CreateNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -257604,80 +269971,80 @@ } /** - * CreateCustomJobRequest parent. + * CreateNasJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @instance */ - CreateCustomJobRequest.prototype.parent = ""; + CreateNasJobRequest.prototype.parent = ""; /** - * CreateCustomJobRequest customJob. - * @member {google.cloud.aiplatform.v1beta1.ICustomJob|null|undefined} customJob - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * CreateNasJobRequest nasJob. + * @member {google.cloud.aiplatform.v1beta1.INasJob|null|undefined} nasJob + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @instance */ - CreateCustomJobRequest.prototype.customJob = null; + CreateNasJobRequest.prototype.nasJob = null; /** - * Creates a new CreateCustomJobRequest instance using the specified properties. + * Creates a new CreateNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} CreateNasJobRequest instance */ - CreateCustomJobRequest.create = function create(properties) { - return new CreateCustomJobRequest(properties); + CreateNasJobRequest.create = function create(properties) { + return new CreateNasJobRequest(properties); }; /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomJobRequest.encode = function encode(message, writer) { + CreateNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) - $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nasJob != null && Object.hasOwnProperty.call(message, "nasJob")) + $root.google.cloud.aiplatform.v1beta1.NasJob.encode(message.nasJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. + * Decodes a CreateNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomJobRequest.decode = function decode(reader, length) { + CreateNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -257686,7 +270053,7 @@ break; } case 2: { - message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32()); + message.nasJob = $root.google.cloud.aiplatform.v1beta1.NasJob.decode(reader, reader.uint32()); break; } default: @@ -257698,136 +270065,136 @@ }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomJobRequest message. + * Verifies a CreateNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomJobRequest.verify = function verify(message) { + CreateNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.customJob != null && message.hasOwnProperty("customJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); + if (message.nasJob != null && message.hasOwnProperty("nasJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJob.verify(message.nasJob); if (error) - return "customJob." + error; + return "nasJob." + error; } return null; }; /** - * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} CreateNasJobRequest */ - CreateCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) + CreateNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateNasJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.customJob != null) { - if (typeof object.customJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.customJob: object expected"); - message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJob); + if (object.nasJob != null) { + if (typeof object.nasJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateNasJobRequest.nasJob: object expected"); + message.nasJob = $root.google.cloud.aiplatform.v1beta1.NasJob.fromObject(object.nasJob); } return message; }; /** - * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} message CreateNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomJobRequest.toObject = function toObject(message, options) { + CreateNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.customJob = null; + object.nasJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.customJob != null && message.hasOwnProperty("customJob")) - object.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJob, options); + if (message.nasJob != null && message.hasOwnProperty("nasJob")) + object.nasJob = $root.google.cloud.aiplatform.v1beta1.NasJob.toObject(message.nasJob, options); return object; }; /** - * Converts this CreateCustomJobRequest to JSON. + * Converts this CreateNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @instance * @returns {Object.} JSON object */ - CreateCustomJobRequest.prototype.toJSON = function toJSON() { + CreateNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateCustomJobRequest + * Gets the default type url for CreateNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateNasJobRequest"; }; - return CreateCustomJobRequest; + return CreateNasJobRequest; })(); - v1beta1.GetCustomJobRequest = (function() { + v1beta1.GetNasJobRequest = (function() { /** - * Properties of a GetCustomJobRequest. + * Properties of a GetNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetCustomJobRequest - * @property {string|null} [name] GetCustomJobRequest name + * @interface IGetNasJobRequest + * @property {string|null} [name] GetNasJobRequest name */ /** - * Constructs a new GetCustomJobRequest. + * Constructs a new GetNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetCustomJobRequest. - * @implements IGetCustomJobRequest + * @classdesc Represents a GetNasJobRequest. + * @implements IGetNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest=} [properties] Properties to set */ - function GetCustomJobRequest(properties) { + function GetNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -257835,35 +270202,35 @@ } /** - * GetCustomJobRequest name. + * GetNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @instance */ - GetCustomJobRequest.prototype.name = ""; + GetNasJobRequest.prototype.name = ""; /** - * Creates a new GetCustomJobRequest instance using the specified properties. + * Creates a new GetNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetNasJobRequest} GetNasJobRequest instance */ - GetCustomJobRequest.create = function create(properties) { - return new GetCustomJobRequest(properties); + GetNasJobRequest.create = function create(properties) { + return new GetNasJobRequest(properties); }; /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomJobRequest.encode = function encode(message, writer) { + GetNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -257872,33 +270239,33 @@ }; /** - * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. + * Decodes a GetNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomJobRequest.decode = function decode(reader, length) { + GetNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -257915,30 +270282,30 @@ }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomJobRequest message. + * Verifies a GetNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomJobRequest.verify = function verify(message) { + GetNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -257948,32 +270315,32 @@ }; /** - * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasJobRequest} GetNasJobRequest */ - GetCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) + GetNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetNasJobRequest} message GetNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomJobRequest.toObject = function toObject(message, options) { + GetNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -257985,56 +270352,56 @@ }; /** - * Converts this GetCustomJobRequest to JSON. + * Converts this GetNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @instance * @returns {Object.} JSON object */ - GetCustomJobRequest.prototype.toJSON = function toJSON() { + GetNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCustomJobRequest + * Gets the default type url for GetNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetNasJobRequest"; }; - return GetCustomJobRequest; + return GetNasJobRequest; })(); - v1beta1.ListCustomJobsRequest = (function() { + v1beta1.ListNasJobsRequest = (function() { /** - * Properties of a ListCustomJobsRequest. + * Properties of a ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListCustomJobsRequest - * @property {string|null} [parent] ListCustomJobsRequest parent - * @property {string|null} [filter] ListCustomJobsRequest filter - * @property {number|null} [pageSize] ListCustomJobsRequest pageSize - * @property {string|null} [pageToken] ListCustomJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask + * @interface IListNasJobsRequest + * @property {string|null} [parent] ListNasJobsRequest parent + * @property {string|null} [filter] ListNasJobsRequest filter + * @property {number|null} [pageSize] ListNasJobsRequest pageSize + * @property {string|null} [pageToken] ListNasJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListNasJobsRequest readMask */ /** - * Constructs a new ListCustomJobsRequest. + * Constructs a new ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsRequest. - * @implements IListCustomJobsRequest + * @classdesc Represents a ListNasJobsRequest. + * @implements IListNasJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest=} [properties] Properties to set */ - function ListCustomJobsRequest(properties) { + function ListNasJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258042,67 +270409,67 @@ } /** - * ListCustomJobsRequest parent. + * ListNasJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.parent = ""; + ListNasJobsRequest.prototype.parent = ""; /** - * ListCustomJobsRequest filter. + * ListNasJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.filter = ""; + ListNasJobsRequest.prototype.filter = ""; /** - * ListCustomJobsRequest pageSize. + * ListNasJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.pageSize = 0; + ListNasJobsRequest.prototype.pageSize = 0; /** - * ListCustomJobsRequest pageToken. + * ListNasJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.pageToken = ""; + ListNasJobsRequest.prototype.pageToken = ""; /** - * ListCustomJobsRequest readMask. + * ListNasJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.readMask = null; + ListNasJobsRequest.prototype.readMask = null; /** - * Creates a new ListCustomJobsRequest instance using the specified properties. + * Creates a new ListNasJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} ListNasJobsRequest instance */ - ListCustomJobsRequest.create = function create(properties) { - return new ListCustomJobsRequest(properties); + ListNasJobsRequest.create = function create(properties) { + return new ListNasJobsRequest(properties); }; /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsRequest.encode = function encode(message, writer) { + ListNasJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -258119,33 +270486,33 @@ }; /** - * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. + * Decodes a ListNasJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsRequest.decode = function decode(reader, length) { + ListNasJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListNasJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -258178,30 +270545,30 @@ }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomJobsRequest message. + * Verifies a ListNasJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomJobsRequest.verify = function verify(message) { + ListNasJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -258225,17 +270592,17 @@ }; /** - * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} ListNasJobsRequest */ - ListCustomJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) + ListNasJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListNasJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListNasJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -258246,22 +270613,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} message ListNasJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomJobsRequest.toObject = function toObject(message, options) { + ListNasJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -258286,54 +270653,54 @@ }; /** - * Converts this ListCustomJobsRequest to JSON. + * Converts this ListNasJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance * @returns {Object.} JSON object */ - ListCustomJobsRequest.prototype.toJSON = function toJSON() { + ListNasJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomJobsRequest + * Gets the default type url for ListNasJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListNasJobsRequest"; }; - return ListCustomJobsRequest; + return ListNasJobsRequest; })(); - v1beta1.ListCustomJobsResponse = (function() { + v1beta1.ListNasJobsResponse = (function() { /** - * Properties of a ListCustomJobsResponse. + * Properties of a ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListCustomJobsResponse - * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs - * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken + * @interface IListNasJobsResponse + * @property {Array.|null} [nasJobs] ListNasJobsResponse nasJobs + * @property {string|null} [nextPageToken] ListNasJobsResponse nextPageToken */ /** - * Constructs a new ListCustomJobsResponse. + * Constructs a new ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsResponse. - * @implements IListCustomJobsResponse + * @classdesc Represents a ListNasJobsResponse. + * @implements IListNasJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsResponse=} [properties] Properties to set */ - function ListCustomJobsResponse(properties) { - this.customJobs = []; + function ListNasJobsResponse(properties) { + this.nasJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258341,88 +270708,88 @@ } /** - * ListCustomJobsResponse customJobs. - * @member {Array.} customJobs - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * ListNasJobsResponse nasJobs. + * @member {Array.} nasJobs + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @instance */ - ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; + ListNasJobsResponse.prototype.nasJobs = $util.emptyArray; /** - * ListCustomJobsResponse nextPageToken. + * ListNasJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @instance */ - ListCustomJobsResponse.prototype.nextPageToken = ""; + ListNasJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListCustomJobsResponse instance using the specified properties. + * Creates a new ListNasJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} ListNasJobsResponse instance */ - ListCustomJobsResponse.create = function create(properties) { - return new ListCustomJobsResponse(properties); + ListNasJobsResponse.create = function create(properties) { + return new ListNasJobsResponse(properties); }; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsResponse.encode = function encode(message, writer) { + ListNasJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customJobs != null && message.customJobs.length) - for (var i = 0; i < message.customJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nasJobs != null && message.nasJobs.length) + for (var i = 0; i < message.nasJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NasJob.encode(message.nasJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. + * Decodes a ListNasJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsResponse.decode = function decode(reader, length) { + ListNasJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListNasJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.customJobs && message.customJobs.length)) - message.customJobs = []; - message.customJobs.push($root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32())); + if (!(message.nasJobs && message.nasJobs.length)) + message.nasJobs = []; + message.nasJobs.push($root.google.cloud.aiplatform.v1beta1.NasJob.decode(reader, reader.uint32())); break; } case 2: { @@ -258438,39 +270805,39 @@ }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomJobsResponse message. + * Verifies a ListNasJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomJobsResponse.verify = function verify(message) { + ListNasJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customJobs != null && message.hasOwnProperty("customJobs")) { - if (!Array.isArray(message.customJobs)) - return "customJobs: array expected"; - for (var i = 0; i < message.customJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJobs[i]); + if (message.nasJobs != null && message.hasOwnProperty("nasJobs")) { + if (!Array.isArray(message.nasJobs)) + return "nasJobs: array expected"; + for (var i = 0; i < message.nasJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJob.verify(message.nasJobs[i]); if (error) - return "customJobs." + error; + return "nasJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -258480,25 +270847,25 @@ }; /** - * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} ListNasJobsResponse */ - ListCustomJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) + ListNasJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListNasJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); - if (object.customJobs) { - if (!Array.isArray(object.customJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: array expected"); - message.customJobs = []; - for (var i = 0; i < object.customJobs.length; ++i) { - if (typeof object.customJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: object expected"); - message.customJobs[i] = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListNasJobsResponse(); + if (object.nasJobs) { + if (!Array.isArray(object.nasJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasJobsResponse.nasJobs: array expected"); + message.nasJobs = []; + for (var i = 0; i < object.nasJobs.length; ++i) { + if (typeof object.nasJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasJobsResponse.nasJobs: object expected"); + message.nasJobs[i] = $root.google.cloud.aiplatform.v1beta1.NasJob.fromObject(object.nasJobs[i]); } } if (object.nextPageToken != null) @@ -258507,26 +270874,26 @@ }; /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} message ListNasJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomJobsResponse.toObject = function toObject(message, options) { + ListNasJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.customJobs = []; + object.nasJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.customJobs && message.customJobs.length) { - object.customJobs = []; - for (var j = 0; j < message.customJobs.length; ++j) - object.customJobs[j] = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJobs[j], options); + if (message.nasJobs && message.nasJobs.length) { + object.nasJobs = []; + for (var j = 0; j < message.nasJobs.length; ++j) + object.nasJobs[j] = $root.google.cloud.aiplatform.v1beta1.NasJob.toObject(message.nasJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -258534,52 +270901,52 @@ }; /** - * Converts this ListCustomJobsResponse to JSON. + * Converts this ListNasJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @instance * @returns {Object.} JSON object */ - ListCustomJobsResponse.prototype.toJSON = function toJSON() { + ListNasJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomJobsResponse + * Gets the default type url for ListNasJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListNasJobsResponse"; }; - return ListCustomJobsResponse; + return ListNasJobsResponse; })(); - v1beta1.DeleteCustomJobRequest = (function() { + v1beta1.DeleteNasJobRequest = (function() { /** - * Properties of a DeleteCustomJobRequest. + * Properties of a DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteCustomJobRequest - * @property {string|null} [name] DeleteCustomJobRequest name + * @interface IDeleteNasJobRequest + * @property {string|null} [name] DeleteNasJobRequest name */ /** - * Constructs a new DeleteCustomJobRequest. + * Constructs a new DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteCustomJobRequest. - * @implements IDeleteCustomJobRequest + * @classdesc Represents a DeleteNasJobRequest. + * @implements IDeleteNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest=} [properties] Properties to set */ - function DeleteCustomJobRequest(properties) { + function DeleteNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258587,35 +270954,35 @@ } /** - * DeleteCustomJobRequest name. + * DeleteNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @instance */ - DeleteCustomJobRequest.prototype.name = ""; + DeleteNasJobRequest.prototype.name = ""; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. + * Creates a new DeleteNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} DeleteNasJobRequest instance */ - DeleteCustomJobRequest.create = function create(properties) { - return new DeleteCustomJobRequest(properties); + DeleteNasJobRequest.create = function create(properties) { + return new DeleteNasJobRequest(properties); }; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCustomJobRequest.encode = function encode(message, writer) { + DeleteNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -258624,33 +270991,33 @@ }; /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCustomJobRequest.decode = function decode(reader, length) { + DeleteNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -258667,30 +271034,30 @@ }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteCustomJobRequest message. + * Verifies a DeleteNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteCustomJobRequest.verify = function verify(message) { + DeleteNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -258700,32 +271067,32 @@ }; /** - * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} DeleteNasJobRequest */ - DeleteCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) + DeleteNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} message DeleteNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteCustomJobRequest.toObject = function toObject(message, options) { + DeleteNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -258737,52 +271104,52 @@ }; /** - * Converts this DeleteCustomJobRequest to JSON. + * Converts this DeleteNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @instance * @returns {Object.} JSON object */ - DeleteCustomJobRequest.prototype.toJSON = function toJSON() { + DeleteNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteCustomJobRequest + * Gets the default type url for DeleteNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteNasJobRequest"; }; - return DeleteCustomJobRequest; + return DeleteNasJobRequest; })(); - v1beta1.CancelCustomJobRequest = (function() { + v1beta1.CancelNasJobRequest = (function() { /** - * Properties of a CancelCustomJobRequest. + * Properties of a CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelCustomJobRequest - * @property {string|null} [name] CancelCustomJobRequest name + * @interface ICancelNasJobRequest + * @property {string|null} [name] CancelNasJobRequest name */ /** - * Constructs a new CancelCustomJobRequest. + * Constructs a new CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelCustomJobRequest. - * @implements ICancelCustomJobRequest + * @classdesc Represents a CancelNasJobRequest. + * @implements ICancelNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest=} [properties] Properties to set */ - function CancelCustomJobRequest(properties) { + function CancelNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258790,35 +271157,35 @@ } /** - * CancelCustomJobRequest name. + * CancelNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @instance */ - CancelCustomJobRequest.prototype.name = ""; + CancelNasJobRequest.prototype.name = ""; /** - * Creates a new CancelCustomJobRequest instance using the specified properties. + * Creates a new CancelNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} CancelNasJobRequest instance */ - CancelCustomJobRequest.create = function create(properties) { - return new CancelCustomJobRequest(properties); + CancelNasJobRequest.create = function create(properties) { + return new CancelNasJobRequest(properties); }; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelCustomJobRequest.encode = function encode(message, writer) { + CancelNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -258827,33 +271194,33 @@ }; /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. + * Decodes a CancelNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelCustomJobRequest.decode = function decode(reader, length) { + CancelNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -258870,30 +271237,30 @@ }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelCustomJobRequest message. + * Verifies a CancelNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelCustomJobRequest.verify = function verify(message) { + CancelNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -258903,32 +271270,32 @@ }; /** - * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} CancelNasJobRequest */ - CancelCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) + CancelNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} message CancelNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelCustomJobRequest.toObject = function toObject(message, options) { + CancelNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -258940,284 +271307,52 @@ }; /** - * Converts this CancelCustomJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @instance - * @returns {Object.} JSON object - */ - CancelCustomJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CancelCustomJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CancelCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelCustomJobRequest"; - }; - - return CancelCustomJobRequest; - })(); - - v1beta1.CreateDataLabelingJobRequest = (function() { - - /** - * Properties of a CreateDataLabelingJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateDataLabelingJobRequest - * @property {string|null} [parent] CreateDataLabelingJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob - */ - - /** - * Constructs a new CreateDataLabelingJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateDataLabelingJobRequest. - * @implements ICreateDataLabelingJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set - */ - function CreateDataLabelingJobRequest(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]]; - } - - /** - * CreateDataLabelingJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @instance - */ - CreateDataLabelingJobRequest.prototype.parent = ""; - - /** - * CreateDataLabelingJobRequest dataLabelingJob. - * @member {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null|undefined} dataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @instance - */ - CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; - - /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance - */ - CreateDataLabelingJobRequest.create = function create(properties) { - return new CreateDataLabelingJobRequest(properties); - }; - - /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDataLabelingJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) - $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDataLabelingJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateDataLabelingJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDataLabelingJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJob); - if (error) - return "dataLabelingJob." + error; - } - return null; - }; - - /** - * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest - */ - CreateDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.dataLabelingJob != null) { - if (typeof object.dataLabelingJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); - message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJob); - } - return message; - }; - - /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateDataLabelingJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.dataLabelingJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) - object.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJob, options); - return object; - }; - - /** - * Converts this CreateDataLabelingJobRequest to JSON. + * Converts this CancelNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @instance * @returns {Object.} JSON object */ - CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { + CancelNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateDataLabelingJobRequest + * Gets the default type url for CancelNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelNasJobRequest"; }; - return CreateDataLabelingJobRequest; + return CancelNasJobRequest; })(); - v1beta1.GetDataLabelingJobRequest = (function() { + v1beta1.GetNasTrialDetailRequest = (function() { /** - * Properties of a GetDataLabelingJobRequest. + * Properties of a GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetDataLabelingJobRequest - * @property {string|null} [name] GetDataLabelingJobRequest name + * @interface IGetNasTrialDetailRequest + * @property {string|null} [name] GetNasTrialDetailRequest name */ /** - * Constructs a new GetDataLabelingJobRequest. + * Constructs a new GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetDataLabelingJobRequest. - * @implements IGetDataLabelingJobRequest + * @classdesc Represents a GetNasTrialDetailRequest. + * @implements IGetNasTrialDetailRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest=} [properties] Properties to set */ - function GetDataLabelingJobRequest(properties) { + function GetNasTrialDetailRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -259225,35 +271360,35 @@ } /** - * GetDataLabelingJobRequest name. + * GetNasTrialDetailRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @instance */ - GetDataLabelingJobRequest.prototype.name = ""; + GetNasTrialDetailRequest.prototype.name = ""; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. + * Creates a new GetNasTrialDetailRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} GetNasTrialDetailRequest instance */ - GetDataLabelingJobRequest.create = function create(properties) { - return new GetDataLabelingJobRequest(properties); + GetNasTrialDetailRequest.create = function create(properties) { + return new GetNasTrialDetailRequest(properties); }; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataLabelingJobRequest.encode = function encode(message, writer) { + GetNasTrialDetailRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -259262,33 +271397,33 @@ }; /** - * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNasTrialDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataLabelingJobRequest.decode = function decode(reader, length) { + GetNasTrialDetailRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -259305,30 +271440,30 @@ }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetNasTrialDetailRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataLabelingJobRequest message. + * Verifies a GetNasTrialDetailRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataLabelingJobRequest.verify = function verify(message) { + GetNasTrialDetailRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -259338,32 +271473,32 @@ }; /** - * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} GetNasTrialDetailRequest */ - GetDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) + GetNasTrialDetailRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} message GetNasTrialDetailRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataLabelingJobRequest.toObject = function toObject(message, options) { + GetNasTrialDetailRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -259375,57 +271510,54 @@ }; /** - * Converts this GetDataLabelingJobRequest to JSON. + * Converts this GetNasTrialDetailRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @instance * @returns {Object.} JSON object */ - GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { + GetNasTrialDetailRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetDataLabelingJobRequest + * Gets the default type url for GetNasTrialDetailRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasTrialDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest"; }; - return GetDataLabelingJobRequest; + return GetNasTrialDetailRequest; })(); - v1beta1.ListDataLabelingJobsRequest = (function() { + v1beta1.ListNasTrialDetailsRequest = (function() { /** - * Properties of a ListDataLabelingJobsRequest. + * Properties of a ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataLabelingJobsRequest - * @property {string|null} [parent] ListDataLabelingJobsRequest parent - * @property {string|null} [filter] ListDataLabelingJobsRequest filter - * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize - * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask - * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy + * @interface IListNasTrialDetailsRequest + * @property {string|null} [parent] ListNasTrialDetailsRequest parent + * @property {number|null} [pageSize] ListNasTrialDetailsRequest pageSize + * @property {string|null} [pageToken] ListNasTrialDetailsRequest pageToken */ /** - * Constructs a new ListDataLabelingJobsRequest. + * Constructs a new ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsRequest. - * @implements IListDataLabelingJobsRequest + * @classdesc Represents a ListNasTrialDetailsRequest. + * @implements IListNasTrialDetailsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest=} [properties] Properties to set */ - function ListDataLabelingJobsRequest(properties) { + function ListNasTrialDetailsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -259433,120 +271565,90 @@ } /** - * ListDataLabelingJobsRequest parent. + * ListNasTrialDetailsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.parent = ""; - - /** - * ListDataLabelingJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.filter = ""; + ListNasTrialDetailsRequest.prototype.parent = ""; /** - * ListDataLabelingJobsRequest pageSize. + * ListNasTrialDetailsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.pageSize = 0; + ListNasTrialDetailsRequest.prototype.pageSize = 0; /** - * ListDataLabelingJobsRequest pageToken. + * ListNasTrialDetailsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.pageToken = ""; - - /** - * ListDataLabelingJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.readMask = null; - - /** - * ListDataLabelingJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.orderBy = ""; + ListNasTrialDetailsRequest.prototype.pageToken = ""; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest instance */ - ListDataLabelingJobsRequest.create = function create(properties) { - return new ListDataLabelingJobsRequest(properties); + ListNasTrialDetailsRequest.create = function create(properties) { + return new ListNasTrialDetailsRequest(properties); }; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsRequest.encode = function encode(message, writer) { + ListNasTrialDetailsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasTrialDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsRequest.decode = function decode(reader, length) { + ListNasTrialDetailsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -259555,25 +271657,13 @@ break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { message.pageSize = reader.int32(); break; } - case 4: { + case 3: { message.pageToken = reader.string(); break; } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 6: { - message.orderBy = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -259583,170 +271673,141 @@ }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasTrialDetailsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataLabelingJobsRequest message. + * Verifies a ListNasTrialDetailsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataLabelingJobsRequest.verify = function verify(message) { + ListNasTrialDetailsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest */ - ListDataLabelingJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) + ListNasTrialDetailsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} message ListNasTrialDetailsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsRequest.toObject = function toObject(message, options) { + ListNasTrialDetailsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; object.pageSize = 0; object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListDataLabelingJobsRequest to JSON. + * Converts this ListNasTrialDetailsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { + ListNasTrialDetailsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataLabelingJobsRequest + * Gets the default type url for ListNasTrialDetailsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataLabelingJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasTrialDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest"; }; - return ListDataLabelingJobsRequest; + return ListNasTrialDetailsRequest; })(); - v1beta1.ListDataLabelingJobsResponse = (function() { + v1beta1.ListNasTrialDetailsResponse = (function() { /** - * Properties of a ListDataLabelingJobsResponse. + * Properties of a ListNasTrialDetailsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataLabelingJobsResponse - * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs - * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken + * @interface IListNasTrialDetailsResponse + * @property {Array.|null} [nasTrialDetails] ListNasTrialDetailsResponse nasTrialDetails + * @property {string|null} [nextPageToken] ListNasTrialDetailsResponse nextPageToken */ /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new ListNasTrialDetailsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsResponse. - * @implements IListDataLabelingJobsResponse + * @classdesc Represents a ListNasTrialDetailsResponse. + * @implements IListNasTrialDetailsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse=} [properties] Properties to set */ - function ListDataLabelingJobsResponse(properties) { - this.dataLabelingJobs = []; + function ListNasTrialDetailsResponse(properties) { + this.nasTrialDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -259754,88 +271815,88 @@ } /** - * ListDataLabelingJobsResponse dataLabelingJobs. - * @member {Array.} dataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * ListNasTrialDetailsResponse nasTrialDetails. + * @member {Array.} nasTrialDetails + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @instance */ - ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; + ListNasTrialDetailsResponse.prototype.nasTrialDetails = $util.emptyArray; /** - * ListDataLabelingJobsResponse nextPageToken. + * ListNasTrialDetailsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @instance */ - ListDataLabelingJobsResponse.prototype.nextPageToken = ""; + ListNasTrialDetailsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new ListNasTrialDetailsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse instance */ - ListDataLabelingJobsResponse.create = function create(properties) { - return new ListDataLabelingJobsResponse(properties); + ListNasTrialDetailsResponse.create = function create(properties) { + return new ListNasTrialDetailsResponse(properties); }; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsResponse.encode = function encode(message, writer) { + ListNasTrialDetailsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) - for (var i = 0; i < message.dataLabelingJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nasTrialDetails != null && message.nasTrialDetails.length) + for (var i = 0; i < message.nasTrialDetails.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NasTrialDetail.encode(message.nasTrialDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListNasTrialDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsResponse.decode = function decode(reader, length) { + ListNasTrialDetailsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) - message.dataLabelingJobs = []; - message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32())); + if (!(message.nasTrialDetails && message.nasTrialDetails.length)) + message.nasTrialDetails = []; + message.nasTrialDetails.push($root.google.cloud.aiplatform.v1beta1.NasTrialDetail.decode(reader, reader.uint32())); break; } case 2: { @@ -259851,39 +271912,39 @@ }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListNasTrialDetailsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataLabelingJobsResponse message. + * Verifies a ListNasTrialDetailsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataLabelingJobsResponse.verify = function verify(message) { + ListNasTrialDetailsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { - if (!Array.isArray(message.dataLabelingJobs)) - return "dataLabelingJobs: array expected"; - for (var i = 0; i < message.dataLabelingJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJobs[i]); + if (message.nasTrialDetails != null && message.hasOwnProperty("nasTrialDetails")) { + if (!Array.isArray(message.nasTrialDetails)) + return "nasTrialDetails: array expected"; + for (var i = 0; i < message.nasTrialDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrialDetail.verify(message.nasTrialDetails[i]); if (error) - return "dataLabelingJobs." + error; + return "nasTrialDetails." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -259893,25 +271954,25 @@ }; /** - * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse */ - ListDataLabelingJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) + ListNasTrialDetailsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); - if (object.dataLabelingJobs) { - if (!Array.isArray(object.dataLabelingJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); - message.dataLabelingJobs = []; - for (var i = 0; i < object.dataLabelingJobs.length; ++i) { - if (typeof object.dataLabelingJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); - message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse(); + if (object.nasTrialDetails) { + if (!Array.isArray(object.nasTrialDetails)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.nasTrialDetails: array expected"); + message.nasTrialDetails = []; + for (var i = 0; i < object.nasTrialDetails.length; ++i) { + if (typeof object.nasTrialDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.nasTrialDetails: object expected"); + message.nasTrialDetails[i] = $root.google.cloud.aiplatform.v1beta1.NasTrialDetail.fromObject(object.nasTrialDetails[i]); } } if (object.nextPageToken != null) @@ -259920,26 +271981,26 @@ }; /** - * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} message ListNasTrialDetailsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsResponse.toObject = function toObject(message, options) { + ListNasTrialDetailsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.dataLabelingJobs = []; + object.nasTrialDetails = []; if (options.defaults) object.nextPageToken = ""; - if (message.dataLabelingJobs && message.dataLabelingJobs.length) { - object.dataLabelingJobs = []; - for (var j = 0; j < message.dataLabelingJobs.length; ++j) - object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); + if (message.nasTrialDetails && message.nasTrialDetails.length) { + object.nasTrialDetails = []; + for (var j = 0; j < message.nasTrialDetails.length; ++j) + object.nasTrialDetails[j] = $root.google.cloud.aiplatform.v1beta1.NasTrialDetail.toObject(message.nasTrialDetails[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -259947,52 +272008,53 @@ }; /** - * Converts this ListDataLabelingJobsResponse to JSON. + * Converts this ListNasTrialDetailsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { + ListNasTrialDetailsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataLabelingJobsResponse + * Gets the default type url for ListNasTrialDetailsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataLabelingJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasTrialDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse"; }; - return ListDataLabelingJobsResponse; + return ListNasTrialDetailsResponse; })(); - v1beta1.DeleteDataLabelingJobRequest = (function() { + v1beta1.CreateBatchPredictionJobRequest = (function() { /** - * Properties of a DeleteDataLabelingJobRequest. + * Properties of a CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteDataLabelingJobRequest - * @property {string|null} [name] DeleteDataLabelingJobRequest name + * @interface ICreateBatchPredictionJobRequest + * @property {string|null} [parent] CreateBatchPredictionJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob */ /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteDataLabelingJobRequest. - * @implements IDeleteDataLabelingJobRequest + * @classdesc Represents a CreateBatchPredictionJobRequest. + * @implements ICreateBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set */ - function DeleteDataLabelingJobRequest(properties) { + function CreateBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260000,75 +272062,89 @@ } /** - * DeleteDataLabelingJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * CreateBatchPredictionJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance */ - DeleteDataLabelingJobRequest.prototype.name = ""; + CreateBatchPredictionJobRequest.prototype.parent = ""; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * CreateBatchPredictionJobRequest batchPredictionJob. + * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @instance + */ + CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + + /** + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance */ - DeleteDataLabelingJobRequest.create = function create(properties) { - return new DeleteDataLabelingJobRequest(properties); + CreateBatchPredictionJobRequest.create = function create(properties) { + return new CreateBatchPredictionJobRequest(properties); }; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encode = function encode(message, writer) { + CreateBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) + $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decode = function decode(reader, length) { + CreateBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); break; } default: @@ -260080,122 +272156,136 @@ }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDataLabelingJobRequest message. + * Verifies a CreateBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDataLabelingJobRequest.verify = function verify(message) { + CreateBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJob); + if (error) + return "batchPredictionJob." + error; + } return null; }; /** - * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest */ - DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) + CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.batchPredictionJob != null) { + if (typeof object.batchPredictionJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJob); + } return message; }; /** - * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { + CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.batchPredictionJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) + object.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJob, options); return object; }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { + CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteDataLabelingJobRequest + * Gets the default type url for CreateBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest"; }; - return DeleteDataLabelingJobRequest; + return CreateBatchPredictionJobRequest; })(); - v1beta1.CancelDataLabelingJobRequest = (function() { + v1beta1.GetBatchPredictionJobRequest = (function() { /** - * Properties of a CancelDataLabelingJobRequest. + * Properties of a GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelDataLabelingJobRequest - * @property {string|null} [name] CancelDataLabelingJobRequest name + * @interface IGetBatchPredictionJobRequest + * @property {string|null} [name] GetBatchPredictionJobRequest name */ /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelDataLabelingJobRequest. - * @implements ICancelDataLabelingJobRequest + * @classdesc Represents a GetBatchPredictionJobRequest. + * @implements IGetBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set */ - function CancelDataLabelingJobRequest(properties) { + function GetBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260203,35 +272293,35 @@ } /** - * CancelDataLabelingJobRequest name. + * GetBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance */ - CancelDataLabelingJobRequest.prototype.name = ""; + GetBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance */ - CancelDataLabelingJobRequest.create = function create(properties) { - return new CancelDataLabelingJobRequest(properties); + GetBatchPredictionJobRequest.create = function create(properties) { + return new GetBatchPredictionJobRequest(properties); }; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encode = function encode(message, writer) { + GetBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -260240,33 +272330,33 @@ }; /** - * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decode = function decode(reader, length) { + GetBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -260283,30 +272373,30 @@ }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelDataLabelingJobRequest message. + * Verifies a GetBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelDataLabelingJobRequest.verify = function verify(message) { + GetBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -260316,32 +272406,32 @@ }; /** - * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest */ - CancelDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) + GetBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelDataLabelingJobRequest.toObject = function toObject(message, options) { + GetBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -260353,53 +272443,56 @@ }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { + GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelDataLabelingJobRequest + * Gets the default type url for GetBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest"; }; - return CancelDataLabelingJobRequest; + return GetBatchPredictionJobRequest; })(); - v1beta1.CreateHyperparameterTuningJobRequest = (function() { + v1beta1.ListBatchPredictionJobsRequest = (function() { /** - * Properties of a CreateHyperparameterTuningJobRequest. + * Properties of a ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateHyperparameterTuningJobRequest - * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob + * @interface IListBatchPredictionJobsRequest + * @property {string|null} [parent] ListBatchPredictionJobsRequest parent + * @property {string|null} [filter] ListBatchPredictionJobsRequest filter + * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize + * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask */ /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateHyperparameterTuningJobRequest. - * @implements ICreateHyperparameterTuningJobRequest + * @classdesc Represents a ListBatchPredictionJobsRequest. + * @implements IListBatchPredictionJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set */ - function CreateHyperparameterTuningJobRequest(properties) { + function ListBatchPredictionJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260407,80 +272500,110 @@ } /** - * CreateHyperparameterTuningJobRequest parent. + * ListBatchPredictionJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.parent = ""; + ListBatchPredictionJobsRequest.prototype.parent = ""; /** - * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. - * @member {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * ListBatchPredictionJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; + ListBatchPredictionJobsRequest.prototype.filter = ""; /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * ListBatchPredictionJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @instance + */ + ListBatchPredictionJobsRequest.prototype.pageSize = 0; + + /** + * ListBatchPredictionJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @instance + */ + ListBatchPredictionJobsRequest.prototype.pageToken = ""; + + /** + * ListBatchPredictionJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @instance + */ + ListBatchPredictionJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance */ - CreateHyperparameterTuningJobRequest.create = function create(properties) { - return new CreateHyperparameterTuningJobRequest(properties); + ListBatchPredictionJobsRequest.create = function create(properties) { + return new ListBatchPredictionJobsRequest(properties); }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) - $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -260489,7 +272612,19 @@ break; } case 2: { - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -260501,136 +272636,162 @@ }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateHyperparameterTuningJobRequest message. + * Verifies a ListBatchPredictionJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateHyperparameterTuningJobRequest.verify = function verify(message) { + ListBatchPredictionJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "hyperparameterTuningJob." + error; + return "readMask." + error; } return null; }; /** - * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest */ - CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) + ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.hyperparameterTuningJob != null) { - if (typeof object.hyperparameterTuningJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.hyperparameterTuningJob = null; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) - object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance * @returns {Object.} JSON object */ - CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateHyperparameterTuningJobRequest + * Gets the default type url for ListBatchPredictionJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest"; }; - return CreateHyperparameterTuningJobRequest; + return ListBatchPredictionJobsRequest; })(); - v1beta1.GetHyperparameterTuningJobRequest = (function() { + v1beta1.ListBatchPredictionJobsResponse = (function() { /** - * Properties of a GetHyperparameterTuningJobRequest. + * Properties of a ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetHyperparameterTuningJobRequest - * @property {string|null} [name] GetHyperparameterTuningJobRequest name + * @interface IListBatchPredictionJobsResponse + * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs + * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken */ /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetHyperparameterTuningJobRequest. - * @implements IGetHyperparameterTuningJobRequest + * @classdesc Represents a ListBatchPredictionJobsResponse. + * @implements IListBatchPredictionJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set */ - function GetHyperparameterTuningJobRequest(properties) { + function ListBatchPredictionJobsResponse(properties) { + this.batchPredictionJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260638,75 +272799,92 @@ } /** - * GetHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * ListBatchPredictionJobsResponse batchPredictionJobs. + * @member {Array.} batchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance */ - GetHyperparameterTuningJobRequest.prototype.name = ""; + ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * ListBatchPredictionJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @instance + */ + ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance */ - GetHyperparameterTuningJobRequest.create = function create(properties) { - return new GetHyperparameterTuningJobRequest(properties); + ListBatchPredictionJobsResponse.create = function create(properties) { + return new ListBatchPredictionJobsResponse(properties); }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) + for (var i = 0; i < message.batchPredictionJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) + message.batchPredictionJobs = []; + message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -260718,126 +272896,148 @@ }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetHyperparameterTuningJobRequest message. + * Verifies a ListBatchPredictionJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetHyperparameterTuningJobRequest.verify = function verify(message) { + ListBatchPredictionJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { + if (!Array.isArray(message.batchPredictionJobs)) + return "batchPredictionJobs: array expected"; + for (var i = 0; i < message.batchPredictionJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); + if (error) + return "batchPredictionJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse */ - GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) + ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); + if (object.batchPredictionJobs) { + if (!Array.isArray(object.batchPredictionJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); + message.batchPredictionJobs = []; + for (var i = 0; i < object.batchPredictionJobs.length; ++i) { + if (typeof object.batchPredictionJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); + message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.batchPredictionJobs = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.batchPredictionJobs && message.batchPredictionJobs.length) { + object.batchPredictionJobs = []; + for (var j = 0; j < message.batchPredictionJobs.length; ++j) + object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance * @returns {Object.} JSON object */ - GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetHyperparameterTuningJobRequest + * Gets the default type url for ListBatchPredictionJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse"; }; - return GetHyperparameterTuningJobRequest; + return ListBatchPredictionJobsResponse; })(); - v1beta1.ListHyperparameterTuningJobsRequest = (function() { + v1beta1.DeleteBatchPredictionJobRequest = (function() { /** - * Properties of a ListHyperparameterTuningJobsRequest. + * Properties of a DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListHyperparameterTuningJobsRequest - * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent - * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter - * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize - * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask + * @interface IDeleteBatchPredictionJobRequest + * @property {string|null} [name] DeleteBatchPredictionJobRequest name */ /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsRequest. - * @implements IListHyperparameterTuningJobsRequest + * @classdesc Represents a DeleteBatchPredictionJobRequest. + * @implements IDeleteBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set */ - function ListHyperparameterTuningJobsRequest(properties) { + function DeleteBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260845,131 +273045,75 @@ } /** - * ListHyperparameterTuningJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.parent = ""; - - /** - * ListHyperparameterTuningJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.filter = ""; - - /** - * ListHyperparameterTuningJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; - - /** - * ListHyperparameterTuningJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; - - /** - * ListHyperparameterTuningJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * DeleteBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.readMask = null; + DeleteBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance */ - ListHyperparameterTuningJobsRequest.create = function create(properties) { - return new ListHyperparameterTuningJobsRequest(properties); + DeleteBatchPredictionJobRequest.create = function create(properties) { + return new DeleteBatchPredictionJobRequest(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encode = function encode(message, writer) { + DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decode = function decode(reader, length) { + DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -260981,162 +273125,122 @@ }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsRequest message. + * Verifies a DeleteBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsRequest.verify = function verify(message) { + DeleteBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest */ - ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) + DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { + DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { + DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHyperparameterTuningJobsRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHyperparameterTuningJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest"; }; - return ListHyperparameterTuningJobsRequest; + return DeleteBatchPredictionJobRequest; })(); - v1beta1.ListHyperparameterTuningJobsResponse = (function() { + v1beta1.CancelBatchPredictionJobRequest = (function() { /** - * Properties of a ListHyperparameterTuningJobsResponse. + * Properties of a CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListHyperparameterTuningJobsResponse - * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs - * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken + * @interface ICancelBatchPredictionJobRequest + * @property {string|null} [name] CancelBatchPredictionJobRequest name */ /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsResponse. - * @implements IListHyperparameterTuningJobsResponse + * @classdesc Represents a CancelBatchPredictionJobRequest. + * @implements ICancelBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set */ - function ListHyperparameterTuningJobsResponse(properties) { - this.hyperparameterTuningJobs = []; + function CancelBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261144,92 +273248,75 @@ } /** - * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. - * @member {Array.} hyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @instance - */ - ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; - - /** - * ListHyperparameterTuningJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * CancelBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @instance */ - ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; + CancelBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance */ - ListHyperparameterTuningJobsResponse.create = function create(properties) { - return new ListHyperparameterTuningJobsResponse(properties); + CancelBatchPredictionJobRequest.create = function create(properties) { + return new CancelBatchPredictionJobRequest(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { + CancelBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decode = function decode(reader, length) { + CancelBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) - message.hyperparameterTuningJobs = []; - message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -261241,148 +273328,123 @@ }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { + CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsResponse message. + * Verifies a CancelBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsResponse.verify = function verify(message) { + CancelBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { - if (!Array.isArray(message.hyperparameterTuningJobs)) - return "hyperparameterTuningJobs: array expected"; - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); - if (error) - return "hyperparameterTuningJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest */ - ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) + CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); - if (object.hyperparameterTuningJobs) { - if (!Array.isArray(object.hyperparameterTuningJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); - message.hyperparameterTuningJobs = []; - for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { - if (typeof object.hyperparameterTuningJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); - message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse + * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { + CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.hyperparameterTuningJobs = []; if (options.defaults) - object.nextPageToken = ""; - if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { - object.hyperparameterTuningJobs = []; - for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) - object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { + CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHyperparameterTuningJobsResponse + * Gets the default type url for CancelBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHyperparameterTuningJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest"; }; - return ListHyperparameterTuningJobsResponse; + return CancelBatchPredictionJobRequest; })(); - v1beta1.DeleteHyperparameterTuningJobRequest = (function() { + v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a DeleteHyperparameterTuningJobRequest. + * Properties of a CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteHyperparameterTuningJobRequest - * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name + * @interface ICreateModelDeploymentMonitoringJobRequest + * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteHyperparameterTuningJobRequest. - * @implements IDeleteHyperparameterTuningJobRequest + * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. + * @implements ICreateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function DeleteHyperparameterTuningJobRequest(properties) { + function CreateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261390,75 +273452,89 @@ } /** - * DeleteHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * CreateModelDeploymentMonitoringJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance */ - DeleteHyperparameterTuningJobRequest.prototype.name = ""; + CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @instance + */ + CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + + /** + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance */ - DeleteHyperparameterTuningJobRequest.create = function create(properties) { - return new DeleteHyperparameterTuningJobRequest(properties); + CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new CreateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteHyperparameterTuningJobRequest.decode = function decode(reader, length) { + CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; } default: @@ -261470,122 +273546,144 @@ }; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteHyperparameterTuningJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteHyperparameterTuningJobRequest.verify = function verify(message) { + CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (error) + return "modelDeploymentMonitoringJob." + error; + } return null; }; /** - * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest */ - DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) + CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } return message; }; /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.modelDeploymentMonitoringJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); return object; }; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteHyperparameterTuningJobRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest"; }; - return DeleteHyperparameterTuningJobRequest; + return CreateModelDeploymentMonitoringJobRequest; })(); - v1beta1.CancelHyperparameterTuningJobRequest = (function() { + v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { /** - * Properties of a CancelHyperparameterTuningJobRequest. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelHyperparameterTuningJobRequest - * @property {string|null} [name] CancelHyperparameterTuningJobRequest name + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob + * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId + * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName + * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives + * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize + * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken + * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime + * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelHyperparameterTuningJobRequest. - * @implements ICancelHyperparameterTuningJobRequest + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set */ - function CancelHyperparameterTuningJobRequest(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { + this.objectives = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261593,75 +273691,176 @@ } /** - * CancelHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - CancelHyperparameterTuningJobRequest.prototype.name = ""; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. + * @member {Array.} objectives + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - CancelHyperparameterTuningJobRequest.create = function create(properties) { - return new CancelHyperparameterTuningJobRequest(properties); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); + if (message.objectives != null && message.objectives.length) + for (var i = 0; i < message.objectives.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelHyperparameterTuningJobRequest.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelDeploymentMonitoringJob = reader.string(); + break; + } + case 2: { + message.deployedModelId = reader.string(); + break; + } + case 3: { + message.featureDisplayName = reader.string(); + break; + } + case 4: { + if (!(message.objectives && message.objectives.length)) + message.objectives = []; + message.objectives.push($root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); + break; + } + case 5: { + message.pageSize = reader.int32(); + break; + } + case 6: { + message.pageToken = reader.string(); + break; + } + case 7: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -261673,123 +273872,470 @@ }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelHyperparameterTuningJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelHyperparameterTuningJobRequest.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + if (!$util.isString(message.modelDeploymentMonitoringJob)) + return "modelDeploymentMonitoringJob: string expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.objectives != null && message.hasOwnProperty("objectives")) { + if (!Array.isArray(message.objectives)) + return "objectives: array expected"; + for (var i = 0; i < message.objectives.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); + if (error) + return "objectives." + error; + } + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } return null; }; /** - * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) + SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + if (object.modelDeploymentMonitoringJob != null) + message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.objectives) { + if (!Array.isArray(object.objectives)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); + message.objectives = []; + for (var i = 0; i < object.objectives.length; ++i) { + if (typeof object.objectives[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); + message.objectives[i] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); + } + } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } return message; }; /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.objectives = []; + if (options.defaults) { + object.modelDeploymentMonitoringJob = ""; + object.deployedModelId = ""; + object.featureDisplayName = ""; + object.pageSize = 0; + object.pageToken = ""; + object.startTime = null; + object.endTime = null; + } + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.objectives && message.objectives.length) { + object.objectives = []; + for (var j = 0; j < message.objectives.length; ++j) + object.objectives[j] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance * @returns {Object.} JSON object */ - CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelHyperparameterTuningJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; }; - return CancelHyperparameterTuningJobRequest; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { + + /** + * Properties of a StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @interface IStatsAnomaliesObjective + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type + * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount + */ + + /** + * Constructs a new StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a StatsAnomaliesObjective. + * @implements IStatsAnomaliesObjective + * @constructor + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + */ + function StatsAnomaliesObjective(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]]; + } + + /** + * StatsAnomaliesObjective type. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} type + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.type = 0; + + /** + * StatsAnomaliesObjective topFeatureCount. + * @member {number} topFeatureCount + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.topFeatureCount = 0; + + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance + */ + StatsAnomaliesObjective.create = function create(properties) { + return new StatsAnomaliesObjective(properties); + }; + + /** + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); + return writer; + }; + + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 4: { + message.topFeatureCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StatsAnomaliesObjective message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StatsAnomaliesObjective.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + if (!$util.isInteger(message.topFeatureCount)) + return "topFeatureCount: integer expected"; + return null; + }; + + /** + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + */ + StatsAnomaliesObjective.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.type = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.type = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.type = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.type = 4; + break; + } + if (object.topFeatureCount != null) + message.topFeatureCount = object.topFeatureCount | 0; + return message; + }; + + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StatsAnomaliesObjective.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.topFeatureCount = 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + object.topFeatureCount = message.topFeatureCount; + return object; + }; + + /** + * Converts this StatsAnomaliesObjective to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + * @returns {Object.} JSON object + */ + StatsAnomaliesObjective.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StatsAnomaliesObjective + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; + }; + + return StatsAnomaliesObjective; + })(); + + return SearchModelDeploymentMonitoringStatsAnomaliesRequest; })(); - v1beta1.CreateBatchPredictionJobRequest = (function() { + v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { /** - * Properties of a CreateBatchPredictionJobRequest. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateBatchPredictionJobRequest - * @property {string|null} [parent] CreateBatchPredictionJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats + * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateBatchPredictionJobRequest. - * @implements ICreateBatchPredictionJobRequest + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set */ - function CreateBatchPredictionJobRequest(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { + this.monitoringStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261797,89 +274343,92 @@ } /** - * CreateBatchPredictionJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance */ - CreateBatchPredictionJobRequest.prototype.parent = ""; + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; /** - * CreateBatchPredictionJobRequest batchPredictionJob. - * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance */ - CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - CreateBatchPredictionJobRequest.create = function create(properties) { - return new CreateBatchPredictionJobRequest(properties); + SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); }; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) - $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.monitoringStats != null && message.monitoringStats.length) + for (var i = 0; i < message.monitoringStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.monitoringStats && message.monitoringStats.length)) + message.monitoringStats = []; + message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); break; } case 2: { - message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -261891,136 +274440,148 @@ }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateBatchPredictionJobRequest.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJob); - if (error) - return "batchPredictionJob." + error; + if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { + if (!Array.isArray(message.monitoringStats)) + return "monitoringStats: array expected"; + for (var i = 0; i < message.monitoringStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); + if (error) + return "monitoringStats." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) + SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.batchPredictionJob != null) { - if (typeof object.batchPredictionJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); - message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJob); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + if (object.monitoringStats) { + if (!Array.isArray(object.monitoringStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); + message.monitoringStats = []; + for (var i = 0; i < object.monitoringStats.length; ++i) { + if (typeof object.monitoringStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); + message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.batchPredictionJob = null; + if (options.arrays || options.defaults) + object.monitoringStats = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.monitoringStats && message.monitoringStats.length) { + object.monitoringStats = []; + for (var j = 0; j < message.monitoringStats.length; ++j) + object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) - object.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJob, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance * @returns {Object.} JSON object */ - CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; }; - return CreateBatchPredictionJobRequest; + return SearchModelDeploymentMonitoringStatsAnomaliesResponse; })(); - v1beta1.GetBatchPredictionJobRequest = (function() { + v1beta1.GetModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a GetBatchPredictionJobRequest. + * Properties of a GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetBatchPredictionJobRequest - * @property {string|null} [name] GetBatchPredictionJobRequest name + * @interface IGetModelDeploymentMonitoringJobRequest + * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetBatchPredictionJobRequest. - * @implements IGetBatchPredictionJobRequest + * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. + * @implements IGetModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function GetBatchPredictionJobRequest(properties) { + function GetModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262028,35 +274589,35 @@ } /** - * GetBatchPredictionJobRequest name. + * GetModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @instance */ - GetBatchPredictionJobRequest.prototype.name = ""; + GetModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance */ - GetBatchPredictionJobRequest.create = function create(properties) { - return new GetBatchPredictionJobRequest(properties); + GetModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new GetModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encode = function encode(message, writer) { + GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -262065,33 +274626,33 @@ }; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decode = function decode(reader, length) { + GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -262108,30 +274669,30 @@ }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a GetModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBatchPredictionJobRequest.verify = function verify(message) { + GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -262141,32 +274702,32 @@ }; /** - * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest */ - GetBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) + GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBatchPredictionJobRequest.toObject = function toObject(message, options) { + GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -262178,56 +274739,56 @@ }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for GetModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest"; }; - return GetBatchPredictionJobRequest; + return GetModelDeploymentMonitoringJobRequest; })(); - v1beta1.ListBatchPredictionJobsRequest = (function() { + v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { /** - * Properties of a ListBatchPredictionJobsRequest. + * Properties of a ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListBatchPredictionJobsRequest - * @property {string|null} [parent] ListBatchPredictionJobsRequest parent - * @property {string|null} [filter] ListBatchPredictionJobsRequest filter - * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize - * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask + * @interface IListModelDeploymentMonitoringJobsRequest + * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent + * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter + * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize + * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask */ /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsRequest. - * @implements IListBatchPredictionJobsRequest + * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. + * @implements IListModelDeploymentMonitoringJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set */ - function ListBatchPredictionJobsRequest(properties) { + function ListModelDeploymentMonitoringJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262235,67 +274796,67 @@ } /** - * ListBatchPredictionJobsRequest parent. + * ListModelDeploymentMonitoringJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.parent = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; /** - * ListBatchPredictionJobsRequest filter. + * ListModelDeploymentMonitoringJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.filter = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; /** - * ListBatchPredictionJobsRequest pageSize. + * ListModelDeploymentMonitoringJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageSize = 0; + ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; /** - * ListBatchPredictionJobsRequest pageToken. + * ListModelDeploymentMonitoringJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageToken = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; /** - * ListBatchPredictionJobsRequest readMask. + * ListModelDeploymentMonitoringJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.readMask = null; + ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance */ - ListBatchPredictionJobsRequest.create = function create(properties) { - return new ListBatchPredictionJobsRequest(properties); + ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsRequest(properties); }; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -262312,33 +274873,33 @@ }; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -262371,30 +274932,30 @@ }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a ListModelDeploymentMonitoringJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsRequest.verify = function verify(message) { + ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -262418,17 +274979,17 @@ }; /** - * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest */ - ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) + ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -262439,22 +275000,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -262479,54 +275040,54 @@ }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest"; }; - return ListBatchPredictionJobsRequest; + return ListModelDeploymentMonitoringJobsRequest; })(); - v1beta1.ListBatchPredictionJobsResponse = (function() { + v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { /** - * Properties of a ListBatchPredictionJobsResponse. + * Properties of a ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListBatchPredictionJobsResponse - * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs - * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken + * @interface IListModelDeploymentMonitoringJobsResponse + * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs + * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken */ /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsResponse. - * @implements IListBatchPredictionJobsResponse + * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. + * @implements IListModelDeploymentMonitoringJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set */ - function ListBatchPredictionJobsResponse(properties) { - this.batchPredictionJobs = []; + function ListModelDeploymentMonitoringJobsResponse(properties) { + this.modelDeploymentMonitoringJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262534,88 +275095,88 @@ } /** - * ListBatchPredictionJobsResponse batchPredictionJobs. - * @member {Array.} batchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. + * @member {Array.} modelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; + ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; /** - * ListBatchPredictionJobsResponse nextPageToken. + * ListModelDeploymentMonitoringJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance */ - ListBatchPredictionJobsResponse.create = function create(properties) { - return new ListBatchPredictionJobsResponse(properties); + ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsResponse(properties); }; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) - for (var i = 0; i < message.batchPredictionJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) - message.batchPredictionJobs = []; - message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32())); + if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) + message.modelDeploymentMonitoringJobs = []; + message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); break; } case 2: { @@ -262631,39 +275192,39 @@ }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListModelDeploymentMonitoringJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsResponse.verify = function verify(message) { + ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { - if (!Array.isArray(message.batchPredictionJobs)) - return "batchPredictionJobs: array expected"; - for (var i = 0; i < message.batchPredictionJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); + if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { + if (!Array.isArray(message.modelDeploymentMonitoringJobs)) + return "modelDeploymentMonitoringJobs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); if (error) - return "batchPredictionJobs." + error; + return "modelDeploymentMonitoringJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -262673,25 +275234,25 @@ }; /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse */ - ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) + ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); - if (object.batchPredictionJobs) { - if (!Array.isArray(object.batchPredictionJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); - message.batchPredictionJobs = []; - for (var i = 0; i < object.batchPredictionJobs.length; ++i) { - if (typeof object.batchPredictionJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); - message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); + if (object.modelDeploymentMonitoringJobs) { + if (!Array.isArray(object.modelDeploymentMonitoringJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); + message.modelDeploymentMonitoringJobs = []; + for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { + if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); + message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); } } if (object.nextPageToken != null) @@ -262700,26 +275261,26 @@ }; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.batchPredictionJobs = []; + object.modelDeploymentMonitoringJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.batchPredictionJobs && message.batchPredictionJobs.length) { - object.batchPredictionJobs = []; - for (var j = 0; j < message.batchPredictionJobs.length; ++j) - object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); + if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { + object.modelDeploymentMonitoringJobs = []; + for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) + object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -262727,52 +275288,53 @@ }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse"; }; - return ListBatchPredictionJobsResponse; + return ListModelDeploymentMonitoringJobsResponse; })(); - v1beta1.DeleteBatchPredictionJobRequest = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a DeleteBatchPredictionJobRequest. + * Properties of an UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteBatchPredictionJobRequest - * @property {string|null} [name] DeleteBatchPredictionJobRequest name + * @interface IUpdateModelDeploymentMonitoringJobRequest + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask */ /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteBatchPredictionJobRequest. - * @implements IDeleteBatchPredictionJobRequest + * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. + * @implements IUpdateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function DeleteBatchPredictionJobRequest(properties) { + function UpdateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262780,75 +275342,89 @@ } /** - * DeleteBatchPredictionJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - DeleteBatchPredictionJobRequest.prototype.name = ""; + UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * UpdateModelDeploymentMonitoringJobRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @instance + */ + UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance */ - DeleteBatchPredictionJobRequest.create = function create(properties) { - return new DeleteBatchPredictionJobRequest(properties); + UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -262860,122 +275436,141 @@ }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteBatchPredictionJobRequest.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (error) + return "modelDeploymentMonitoringJob." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest */ - DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) + UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.modelDeploymentMonitoringJob = null; + object.updateMask = null; + } + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest"; }; - return DeleteBatchPredictionJobRequest; + return UpdateModelDeploymentMonitoringJobRequest; })(); - v1beta1.CancelBatchPredictionJobRequest = (function() { + v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a CancelBatchPredictionJobRequest. + * Properties of a DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelBatchPredictionJobRequest - * @property {string|null} [name] CancelBatchPredictionJobRequest name + * @interface IDeleteModelDeploymentMonitoringJobRequest + * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelBatchPredictionJobRequest. - * @implements ICancelBatchPredictionJobRequest + * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. + * @implements IDeleteModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function CancelBatchPredictionJobRequest(properties) { + function DeleteModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262983,35 +275578,35 @@ } /** - * CancelBatchPredictionJobRequest name. + * DeleteModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance */ - CancelBatchPredictionJobRequest.prototype.name = ""; + DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance */ - CancelBatchPredictionJobRequest.create = function create(properties) { - return new CancelBatchPredictionJobRequest(properties); + DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new DeleteModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encode = function encode(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -263020,33 +275615,33 @@ }; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decode = function decode(reader, length) { + DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -263063,30 +275658,30 @@ }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelBatchPredictionJobRequest.verify = function verify(message) { + DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -263096,32 +275691,32 @@ }; /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest */ - CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) + DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { + DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -263133,53 +275728,52 @@ }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest"; }; - return CancelBatchPredictionJobRequest; + return DeleteModelDeploymentMonitoringJobRequest; })(); - v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { + v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a CreateModelDeploymentMonitoringJobRequest. + * Properties of a PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateModelDeploymentMonitoringJobRequest - * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @interface IPauseModelDeploymentMonitoringJobRequest + * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. - * @implements ICreateModelDeploymentMonitoringJobRequest + * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. + * @implements IPauseModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function CreateModelDeploymentMonitoringJobRequest(properties) { + function PauseModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -263187,89 +275781,75 @@ } /** - * CreateModelDeploymentMonitoringJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest - * @instance - */ - CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; - - /** - * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * PauseModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance */ - CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance */ - CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new CreateModelDeploymentMonitoringJobRequest(properties); + PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new PauseModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -263281,321 +275861,198 @@ }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a PauseModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest */ - CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelDeploymentMonitoringJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest"; - }; - - return CreateModelDeploymentMonitoringJobRequest; - })(); - - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { - - /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob - * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId - * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName - * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives - * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize - * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken - * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime - * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime - */ - - /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - */ - function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { - this.objectives = []; - 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]]; - } - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. - * @member {Array.} objectives - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest"; + }; + + return PauseModelDeploymentMonitoringJobRequest; + })(); + + v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance + * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IResumeModelDeploymentMonitoringJobRequest + * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. + * @implements IResumeModelDeploymentMonitoringJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + function ResumeModelDeploymentMonitoringJobRequest(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]]; + } /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ResumeModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); + ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new ResumeModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); - if (message.objectives != null && message.objectives.length) - for (var i = 0; i < message.objectives.length; ++i) - $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { + ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = reader.string(); - break; - } - case 2: { - message.deployedModelId = reader.string(); - break; - } - case 3: { - message.featureDisplayName = reader.string(); - break; - } - case 4: { - if (!(message.objectives && message.objectives.length)) - message.objectives = []; - message.objectives.push($root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); - break; - } - case 5: { - message.pageSize = reader.int32(); - break; - } - case 6: { - message.pageToken = reader.string(); - break; - } - case 7: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -263607,470 +276064,122 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { + ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { + ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - if (!$util.isString(message.modelDeploymentMonitoringJob)) - return "modelDeploymentMonitoringJob: string expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.objectives != null && message.hasOwnProperty("objectives")) { - if (!Array.isArray(message.objectives)) - return "objectives: array expected"; - for (var i = 0; i < message.objectives.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); - if (error) - return "objectives." + error; - } - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); - if (object.modelDeploymentMonitoringJob != null) - message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.objectives) { - if (!Array.isArray(object.objectives)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); - message.objectives = []; - for (var i = 0; i < object.objectives.length; ++i) { - if (typeof object.objectives[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); - message.objectives[i] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); - } - } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { + ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.objectives = []; - if (options.defaults) { - object.modelDeploymentMonitoringJob = ""; - object.deployedModelId = ""; - object.featureDisplayName = ""; - object.pageSize = 0; - object.pageToken = ""; - object.startTime = null; - object.endTime = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.objectives && message.objectives.length) { - object.objectives = []; - for (var j = 0; j < message.objectives.length; ++j) - object.objectives[j] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { + ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest"; }; - SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { - - /** - * Properties of a StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @interface IStatsAnomaliesObjective - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type - * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount - */ - - /** - * Constructs a new StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @classdesc Represents a StatsAnomaliesObjective. - * @implements IStatsAnomaliesObjective - * @constructor - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - */ - function StatsAnomaliesObjective(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]]; - } - - /** - * StatsAnomaliesObjective type. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} type - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.type = 0; - - /** - * StatsAnomaliesObjective topFeatureCount. - * @member {number} topFeatureCount - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.topFeatureCount = 0; - - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance - */ - StatsAnomaliesObjective.create = function create(properties) { - return new StatsAnomaliesObjective(properties); - }; - - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); - return writer; - }; - - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 4: { - message.topFeatureCount = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StatsAnomaliesObjective message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StatsAnomaliesObjective.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - if (!$util.isInteger(message.topFeatureCount)) - return "topFeatureCount: integer expected"; - return null; - }; - - /** - * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - */ - StatsAnomaliesObjective.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.type = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.type = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.type = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.type = 4; - break; - } - if (object.topFeatureCount != null) - message.topFeatureCount = object.topFeatureCount | 0; - return message; - }; - - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StatsAnomaliesObjective.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.topFeatureCount = 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - object.topFeatureCount = message.topFeatureCount; - return object; - }; - - /** - * Converts this StatsAnomaliesObjective to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - * @returns {Object.} JSON object - */ - StatsAnomaliesObjective.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for StatsAnomaliesObjective - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; - }; - - return StatsAnomaliesObjective; - })(); - - return SearchModelDeploymentMonitoringStatsAnomaliesRequest; + return ResumeModelDeploymentMonitoringJobRequest; })(); - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse - * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats - * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken + * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. + * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { - this.monitoringStats = []; + function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264078,92 +276187,75 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. - * @member {Array.} monitoringStats - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); + UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitoringStats != null && message.monitoringStats.length) - for (var i = 0; i < message.monitoringStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.monitoringStats && message.monitoringStats.length)) - message.monitoringStats = []; - message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -264175,148 +276267,140 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { - if (!Array.isArray(message.monitoringStats)) - return "monitoringStats: array expected"; - for (var i = 0; i < message.monitoringStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); - if (error) - return "monitoringStats." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); - if (object.monitoringStats) { - if (!Array.isArray(object.monitoringStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); - message.monitoringStats = []; - for (var i = 0; i < object.monitoringStats.length; ++i) { - if (typeof object.monitoringStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); - message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.monitoringStats = []; if (options.defaults) - object.nextPageToken = ""; - if (message.monitoringStats && message.monitoringStats.length) { - object.monitoringStats = []; - for (var j = 0; j < message.monitoringStats.length; ++j) - object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata"; }; - return SearchModelDeploymentMonitoringStatsAnomaliesResponse; + return UpdateModelDeploymentMonitoringJobOperationMetadata; })(); - v1beta1.GetModelDeploymentMonitoringJobRequest = (function() { + v1beta1.NasJob = (function() { /** - * Properties of a GetModelDeploymentMonitoringJobRequest. + * Properties of a NasJob. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelDeploymentMonitoringJobRequest - * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name - */ - - /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * @interface INasJob + * @property {string|null} [name] NasJob name + * @property {string|null} [displayName] NasJob displayName + * @property {google.cloud.aiplatform.v1beta1.INasJobSpec|null} [nasJobSpec] NasJob nasJobSpec + * @property {google.cloud.aiplatform.v1beta1.INasJobOutput|null} [nasJobOutput] NasJob nasJobOutput + * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] NasJob state + * @property {google.protobuf.ITimestamp|null} [createTime] NasJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] NasJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] NasJob updateTime + * @property {google.rpc.IStatus|null} [error] NasJob error + * @property {Object.|null} [labels] NasJob labels + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] NasJob encryptionSpec + * @property {boolean|null} [enableRestrictedImageTraining] NasJob enableRestrictedImageTraining + */ + + /** + * Constructs a new NasJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. - * @implements IGetModelDeploymentMonitoringJobRequest + * @classdesc Represents a NasJob. + * @implements INasJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasJob=} [properties] Properties to set */ - function GetModelDeploymentMonitoringJobRequest(properties) { + function NasJob(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264324,70 +276408,191 @@ } /** - * GetModelDeploymentMonitoringJobRequest name. + * NasJob name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @instance */ - GetModelDeploymentMonitoringJobRequest.prototype.name = ""; + NasJob.prototype.name = ""; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * NasJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.displayName = ""; + + /** + * NasJob nasJobSpec. + * @member {google.cloud.aiplatform.v1beta1.INasJobSpec|null|undefined} nasJobSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.nasJobSpec = null; + + /** + * NasJob nasJobOutput. + * @member {google.cloud.aiplatform.v1beta1.INasJobOutput|null|undefined} nasJobOutput + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.nasJobOutput = null; + + /** + * NasJob state. + * @member {google.cloud.aiplatform.v1beta1.JobState} state + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.state = 0; + + /** + * NasJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.createTime = null; + + /** + * NasJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.startTime = null; + + /** + * NasJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.endTime = null; + + /** + * NasJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.updateTime = null; + + /** + * NasJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.error = null; + + /** + * NasJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.labels = $util.emptyObject; + + /** + * NasJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.encryptionSpec = null; + + /** + * NasJob enableRestrictedImageTraining. + * @member {boolean} enableRestrictedImageTraining + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.enableRestrictedImageTraining = false; + + /** + * Creates a new NasJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.INasJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJob} NasJob instance */ - GetModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new GetModelDeploymentMonitoringJobRequest(properties); + NasJob.create = function create(properties) { + return new NasJob(properties); }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJob} message NasJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + NasJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.nasJobSpec != null && Object.hasOwnProperty.call(message, "nasJobSpec")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.encode(message.nasJobSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.nasJobOutput != null && Object.hasOwnProperty.call(message, "nasJobOutput")) + $root.google.cloud.aiplatform.v1beta1.NasJobOutput.encode(message.nasJobOutput, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.enableRestrictedImageTraining != null && Object.hasOwnProperty.call(message, "enableRestrictedImageTraining")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableRestrictedImageTraining); return writer; }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJob} message NasJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + NasJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a NasJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJob} NasJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + NasJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -264395,6 +276600,73 @@ message.name = reader.string(); break; } + case 2: { + message.displayName = reader.string(); + break; + } + case 4: { + message.nasJobSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.decode(reader, reader.uint32()); + break; + } + case 5: { + message.nasJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.decode(reader, reader.uint32()); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 10: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 12: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 13: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 14: { + message.enableRestrictedImageTraining = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -264404,126 +276676,341 @@ }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJob} NasJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + NasJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a NasJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { + NasJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.verify(message.nasJobSpec); + if (error) + return "nasJobSpec." + error; + } + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.verify(message.nasJobOutput); + if (error) + return "nasJobOutput." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + if (typeof message.enableRestrictedImageTraining !== "boolean") + return "enableRestrictedImageTraining: boolean expected"; return null; }; /** - * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJob} NasJob */ - GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + NasJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.NasJob(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.nasJobSpec != null) { + if (typeof object.nasJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.nasJobSpec: object expected"); + message.nasJobSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.fromObject(object.nasJobSpec); + } + if (object.nasJobOutput != null) { + if (typeof object.nasJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.nasJobOutput: object expected"); + message.nasJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.fromObject(object.nasJobOutput); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.enableRestrictedImageTraining != null) + message.enableRestrictedImageTraining = Boolean(object.enableRestrictedImageTraining); return message; }; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a NasJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.NasJob} message NasJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + NasJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { object.name = ""; + object.displayName = ""; + object.nasJobSpec = null; + object.nasJobOutput = null; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.error = null; + object.encryptionSpec = null; + object.enableRestrictedImageTraining = false; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) + object.nasJobSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.toObject(message.nasJobSpec, options); + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) + object.nasJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.toObject(message.nasJobOutput, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + object.enableRestrictedImageTraining = message.enableRestrictedImageTraining; return object; }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this NasJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @instance * @returns {Object.} JSON object */ - GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + NasJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for NasJob * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJob"; }; - return GetModelDeploymentMonitoringJobRequest; + return NasJob; })(); - v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { + v1beta1.NasTrialDetail = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsRequest. + * Properties of a NasTrialDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelDeploymentMonitoringJobsRequest - * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent - * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter - * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize - * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask + * @interface INasTrialDetail + * @property {string|null} [name] NasTrialDetail name + * @property {string|null} [parameters] NasTrialDetail parameters + * @property {google.cloud.aiplatform.v1beta1.INasTrial|null} [searchTrial] NasTrialDetail searchTrial + * @property {google.cloud.aiplatform.v1beta1.INasTrial|null} [trainTrial] NasTrialDetail trainTrial */ /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new NasTrialDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. - * @implements IListModelDeploymentMonitoringJobsRequest + * @classdesc Represents a NasTrialDetail. + * @implements INasTrialDetail * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasTrialDetail=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsRequest(properties) { + function NasTrialDetail(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264531,131 +277018,117 @@ } /** - * ListModelDeploymentMonitoringJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; - - /** - * ListModelDeploymentMonitoringJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * NasTrialDetail name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; + NasTrialDetail.prototype.name = ""; /** - * ListModelDeploymentMonitoringJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * NasTrialDetail parameters. + * @member {string} parameters + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; + NasTrialDetail.prototype.parameters = ""; /** - * ListModelDeploymentMonitoringJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * NasTrialDetail searchTrial. + * @member {google.cloud.aiplatform.v1beta1.INasTrial|null|undefined} searchTrial + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; + NasTrialDetail.prototype.searchTrial = null; /** - * ListModelDeploymentMonitoringJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * NasTrialDetail trainTrial. + * @member {google.cloud.aiplatform.v1beta1.INasTrial|null|undefined} trainTrial + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + NasTrialDetail.prototype.trainTrial = null; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new NasTrialDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.INasTrialDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasTrialDetail} NasTrialDetail instance */ - ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsRequest(properties); + NasTrialDetail.create = function create(properties) { + return new NasTrialDetail(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrialDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasTrialDetail} message NasTrialDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { + NasTrialDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameters); + if (message.searchTrial != null && Object.hasOwnProperty.call(message, "searchTrial")) + $root.google.cloud.aiplatform.v1beta1.NasTrial.encode(message.searchTrial, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrial != null && Object.hasOwnProperty.call(message, "trainTrial")) + $root.google.cloud.aiplatform.v1beta1.NasTrial.encode(message.trainTrial, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrialDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasTrialDetail} message NasTrialDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + NasTrialDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a NasTrialDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.NasTrialDetail} NasTrialDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { + NasTrialDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasTrialDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.filter = reader.string(); + message.parameters = reader.string(); break; } case 3: { - message.pageSize = reader.int32(); + message.searchTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.decode(reader, reader.uint32()); break; } case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.trainTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.decode(reader, reader.uint32()); break; } default: @@ -264667,162 +277140,159 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.NasTrialDetail} NasTrialDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { + NasTrialDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a NasTrialDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { + NasTrialDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) + if (!$util.isString(message.parameters)) + return "parameters: string expected"; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrial.verify(message.searchTrial); if (error) - return "readMask." + error; + return "searchTrial." + error; + } + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrial.verify(message.trainTrial); + if (error) + return "trainTrial." + error; } return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.NasTrialDetail} NasTrialDetail */ - ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + NasTrialDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasTrialDetail) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.NasTrialDetail(); + if (object.name != null) + message.name = String(object.name); + if (object.parameters != null) + message.parameters = String(object.parameters); + if (object.searchTrial != null) { + if (typeof object.searchTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrialDetail.searchTrial: object expected"); + message.searchTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.fromObject(object.searchTrial); + } + if (object.trainTrial != null) { + if (typeof object.trainTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrialDetail.trainTrial: object expected"); + message.trainTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.fromObject(object.trainTrial); } return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest + * @param {google.cloud.aiplatform.v1beta1.NasTrialDetail} message NasTrialDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { + NasTrialDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.name = ""; + object.parameters = ""; + object.searchTrial = null; + object.trainTrial = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = message.parameters; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) + object.searchTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.toObject(message.searchTrial, options); + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) + object.trainTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.toObject(message.trainTrial, options); return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this NasTrialDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { + NasTrialDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for NasTrialDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasTrialDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasTrialDetail"; }; - return ListModelDeploymentMonitoringJobsRequest; + return NasTrialDetail; })(); - v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { + v1beta1.NasJobSpec = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsResponse. + * Properties of a NasJobSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelDeploymentMonitoringJobsResponse - * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs - * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + * @interface INasJobSpec + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec|null} [multiTrialAlgorithmSpec] NasJobSpec multiTrialAlgorithmSpec + * @property {string|null} [resumeNasJobId] NasJobSpec resumeNasJobId + * @property {string|null} [searchSpaceSpec] NasJobSpec searchSpaceSpec */ /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new NasJobSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. - * @implements IListModelDeploymentMonitoringJobsResponse + * @classdesc Represents a NasJobSpec. + * @implements INasJobSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasJobSpec=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsResponse(properties) { - this.modelDeploymentMonitoringJobs = []; + function NasJobSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264830,92 +277300,117 @@ } /** - * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. - * @member {Array.} modelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * NasJobSpec multiTrialAlgorithmSpec. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec|null|undefined} multiTrialAlgorithmSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; + NasJobSpec.prototype.multiTrialAlgorithmSpec = null; /** - * ListModelDeploymentMonitoringJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * NasJobSpec resumeNasJobId. + * @member {string} resumeNasJobId + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + NasJobSpec.prototype.resumeNasJobId = ""; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * NasJobSpec searchSpaceSpec. + * @member {string} searchSpaceSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec + * @instance + */ + NasJobSpec.prototype.searchSpaceSpec = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NasJobSpec nasAlgorithmSpec. + * @member {"multiTrialAlgorithmSpec"|undefined} nasAlgorithmSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec + * @instance + */ + Object.defineProperty(NasJobSpec.prototype, "nasAlgorithmSpec", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialAlgorithmSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NasJobSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.INasJobSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec} NasJobSpec instance */ - ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsResponse(properties); + NasJobSpec.create = function create(properties) { + return new NasJobSpec(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJobSpec} message NasJobSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { + NasJobSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.searchSpaceSpec != null && Object.hasOwnProperty.call(message, "searchSpaceSpec")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.searchSpaceSpec); + if (message.multiTrialAlgorithmSpec != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithmSpec")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.encode(message.multiTrialAlgorithmSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resumeNasJobId != null && Object.hasOwnProperty.call(message, "resumeNasJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resumeNasJobId); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJobSpec} message NasJobSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + NasJobSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a NasJobSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec} NasJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { + NasJobSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) - message.modelDeploymentMonitoringJobs = []; - message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); + case 2: { + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.decode(reader, reader.uint32()); break; } - case 2: { - message.nextPageToken = reader.string(); + case 3: { + message.resumeNasJobId = reader.string(); + break; + } + case 1: { + message.searchSpaceSpec = reader.string(); break; } default: @@ -264927,385 +277422,1278 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec} NasJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { + NasJobSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a NasJobSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { + NasJobSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { - if (!Array.isArray(message.modelDeploymentMonitoringJobs)) - return "modelDeploymentMonitoringJobs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); + var properties = {}; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + properties.nasAlgorithmSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify(message.multiTrialAlgorithmSpec); if (error) - return "modelDeploymentMonitoringJobs." + error; + return "multiTrialAlgorithmSpec." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + if (!$util.isString(message.resumeNasJobId)) + return "resumeNasJobId: string expected"; + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + if (!$util.isString(message.searchSpaceSpec)) + return "searchSpaceSpec: string expected"; return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec} NasJobSpec */ - ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + NasJobSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); - if (object.modelDeploymentMonitoringJobs) { - if (!Array.isArray(object.modelDeploymentMonitoringJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); - message.modelDeploymentMonitoringJobs = []; - for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { - if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); - message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec(); + if (object.multiTrialAlgorithmSpec != null) { + if (typeof object.multiTrialAlgorithmSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.multiTrialAlgorithmSpec: object expected"); + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.fromObject(object.multiTrialAlgorithmSpec); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.resumeNasJobId != null) + message.resumeNasJobId = String(object.resumeNasJobId); + if (object.searchSpaceSpec != null) + message.searchSpaceSpec = String(object.searchSpaceSpec); return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec} message NasJobSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { + NasJobSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelDeploymentMonitoringJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { - object.modelDeploymentMonitoringJobs = []; - for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) - object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); + if (options.defaults) { + object.searchSpaceSpec = ""; + object.resumeNasJobId = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + object.searchSpaceSpec = message.searchSpaceSpec; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + object.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.toObject(message.multiTrialAlgorithmSpec, options); + if (options.oneofs) + object.nasAlgorithmSpec = "multiTrialAlgorithmSpec"; + } + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + object.resumeNasJobId = message.resumeNasJobId; return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this NasJobSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { + NasJobSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for NasJobSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJobSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec"; }; - return ListModelDeploymentMonitoringJobsResponse; - })(); + NasJobSpec.MultiTrialAlgorithmSpec = (function() { - v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { + /** + * Properties of a MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec + * @interface IMultiTrialAlgorithmSpec + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null} [multiTrialAlgorithm] MultiTrialAlgorithmSpec multiTrialAlgorithm + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null} [metric] MultiTrialAlgorithmSpec metric + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null} [searchTrialSpec] MultiTrialAlgorithmSpec searchTrialSpec + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null} [trainTrialSpec] MultiTrialAlgorithmSpec trainTrialSpec + */ - /** - * Properties of an UpdateModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelDeploymentMonitoringJobRequest - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask - */ + /** + * Constructs a new MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec + * @classdesc Represents a MultiTrialAlgorithmSpec. + * @implements IMultiTrialAlgorithmSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set + */ + function MultiTrialAlgorithmSpec(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]]; + } - /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. - * @implements IUpdateModelDeploymentMonitoringJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - */ - function UpdateModelDeploymentMonitoringJobRequest(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]]; - } + /** + * MultiTrialAlgorithmSpec multiTrialAlgorithm. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm} multiTrialAlgorithm + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.multiTrialAlgorithm = 0; - /** - * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @instance - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + /** + * MultiTrialAlgorithmSpec metric. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null|undefined} metric + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.metric = null; - /** - * UpdateModelDeploymentMonitoringJobRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @instance - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + /** + * MultiTrialAlgorithmSpec searchTrialSpec. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null|undefined} searchTrialSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.searchTrialSpec = null; - /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance - */ - UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobRequest(properties); - }; + /** + * MultiTrialAlgorithmSpec trainTrialSpec. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null|undefined} trainTrialSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.trainTrialSpec = null; - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec instance + */ + MultiTrialAlgorithmSpec.create = function create(properties) { + return new MultiTrialAlgorithmSpec(properties); + }; - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialAlgorithmSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.multiTrialAlgorithm != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithm")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.multiTrialAlgorithm); + if (message.metric != null && Object.hasOwnProperty.call(message, "metric")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.encode(message.metric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.searchTrialSpec != null && Object.hasOwnProperty.call(message, "searchTrialSpec")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.encode(message.searchTrialSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrialSpec != null && Object.hasOwnProperty.call(message, "trainTrialSpec")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.encode(message.trainTrialSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + /** + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialAlgorithmSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialAlgorithmSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.multiTrialAlgorithm = reader.int32(); + break; + } + case 2: { + message.metric = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.decode(reader, reader.uint32()); + break; + } + case 3: { + message.searchTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + } + return message; + }; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialAlgorithmSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MultiTrialAlgorithmSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiTrialAlgorithmSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + switch (message.multiTrialAlgorithm) { + default: + return "multiTrialAlgorithm: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.metric != null && message.hasOwnProperty("metric")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify(message.metric); + if (error) + return "metric." + error; + } + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify(message.searchTrialSpec); + if (error) + return "searchTrialSpec." + error; + } + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify(message.trainTrialSpec); + if (error) + return "trainTrialSpec." + error; + } + return null; + }; + + /** + * Creates a MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + */ + MultiTrialAlgorithmSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec(); + switch (object.multiTrialAlgorithm) { + default: + if (typeof object.multiTrialAlgorithm === "number") { + message.multiTrialAlgorithm = object.multiTrialAlgorithm; + break; + } + break; + case "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": + case 0: + message.multiTrialAlgorithm = 0; + break; + case "REINFORCEMENT_LEARNING": + case 1: + message.multiTrialAlgorithm = 1; + break; + case "GRID_SEARCH": + case 2: + message.multiTrialAlgorithm = 2; + break; + } + if (object.metric != null) { + if (typeof object.metric !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.metric: object expected"); + message.metric = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.fromObject(object.metric); + } + if (object.searchTrialSpec != null) { + if (typeof object.searchTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.searchTrialSpec: object expected"); + message.searchTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.fromObject(object.searchTrialSpec); + } + if (object.trainTrialSpec != null) { + if (typeof object.trainTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.trainTrialSpec: object expected"); + message.trainTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.fromObject(object.trainTrialSpec); + } + return message; + }; + + /** + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiTrialAlgorithmSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.multiTrialAlgorithm = options.enums === String ? "MULTI_TRIAL_ALGORITHM_UNSPECIFIED" : 0; + object.metric = null; + object.searchTrialSpec = null; + object.trainTrialSpec = null; + } + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + object.multiTrialAlgorithm = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] === undefined ? message.multiTrialAlgorithm : $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] : message.multiTrialAlgorithm; + if (message.metric != null && message.hasOwnProperty("metric")) + object.metric = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.toObject(message.metric, options); + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) + object.searchTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.toObject(message.searchTrialSpec, options); + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) + object.trainTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.toObject(message.trainTrialSpec, options); + return object; + }; + + /** + * Converts this MultiTrialAlgorithmSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + * @returns {Object.} JSON object + */ + MultiTrialAlgorithmSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MultiTrialAlgorithmSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiTrialAlgorithmSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec"; + }; + + MultiTrialAlgorithmSpec.MetricSpec = (function() { + + /** + * Properties of a MetricSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface IMetricSpec + * @property {string|null} [metricId] MetricSpec metricId + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + */ + + /** + * Constructs a new MetricSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a MetricSpec. + * @implements IMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + */ + function MetricSpec(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]]; + } + + /** + * MetricSpec metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.metricId = ""; + + /** + * MetricSpec goal. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType} goal + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.goal = 0; + + /** + * Creates a new MetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec instance + */ + MetricSpec.create = function create(properties) { + return new MetricSpec(properties); + }; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + return writer; + }; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricId = reader.string(); + break; + } + case 2: { + message.goal = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.goal != null && message.hasOwnProperty("goal")) + switch (message.goal) { + default: + return "goal: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + */ + MetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + if (object.metricId != null) + message.metricId = String(object.metricId); + switch (object.goal) { + default: + if (typeof object.goal === "number") { + message.goal = object.goal; + break; + } break; + case "GOAL_TYPE_UNSPECIFIED": + case 0: + message.goal = 0; + break; + case "MAXIMIZE": + case 1: + message.goal = 1; + break; + case "MINIMIZE": + case 2: + message.goal = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} message MetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.goal != null && message.hasOwnProperty("goal")) + object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] : message.goal; + return object; + }; + + /** + * Converts this MetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + * @returns {Object.} JSON object + */ + MetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec"; + }; + + /** + * GoalType enum. + * @name google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType + * @enum {number} + * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value + * @property {number} MAXIMIZE=1 MAXIMIZE value + * @property {number} MINIMIZE=2 MINIMIZE value + */ + MetricSpec.GoalType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MAXIMIZE"] = 1; + values[valuesById[2] = "MINIMIZE"] = 2; + return values; + })(); + + return MetricSpec; + })(); + + MultiTrialAlgorithmSpec.SearchTrialSpec = (function() { + + /** + * Properties of a SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ISearchTrialSpec + * @property {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null} [searchTrialJobSpec] SearchTrialSpec searchTrialJobSpec + * @property {number|null} [maxTrialCount] SearchTrialSpec maxTrialCount + * @property {number|null} [maxParallelTrialCount] SearchTrialSpec maxParallelTrialCount + * @property {number|null} [maxFailedTrialCount] SearchTrialSpec maxFailedTrialCount + */ + + /** + * Constructs a new SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a SearchTrialSpec. + * @implements ISearchTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + */ + function SearchTrialSpec(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]]; + } + + /** + * SearchTrialSpec searchTrialJobSpec. + * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} searchTrialJobSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.searchTrialJobSpec = null; + + /** + * SearchTrialSpec maxTrialCount. + * @member {number} maxTrialCount + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxTrialCount = 0; + + /** + * SearchTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * SearchTrialSpec maxFailedTrialCount. + * @member {number} maxFailedTrialCount + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxFailedTrialCount = 0; + + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec instance + */ + SearchTrialSpec.create = function create(properties) { + return new SearchTrialSpec(properties); + }; + + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchTrialJobSpec != null && Object.hasOwnProperty.call(message, "searchTrialJobSpec")) + $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.encode(message.searchTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxTrialCount); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxParallelTrialCount); + if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxFailedTrialCount); + return writer; + }; + + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maxTrialCount = reader.int32(); + break; + } + case 3: { + message.maxParallelTrialCount = reader.int32(); + break; + } + case 4: { + message.maxFailedTrialCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.searchTrialJobSpec); + if (error) + return "searchTrialJobSpec." + error; + } + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + if (!$util.isInteger(message.maxTrialCount)) + return "maxTrialCount: integer expected"; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + if (!$util.isInteger(message.maxFailedTrialCount)) + return "maxFailedTrialCount: integer expected"; + return null; + }; + + /** + * Creates a SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + */ + SearchTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + if (object.searchTrialJobSpec != null) { + if (typeof object.searchTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.searchTrialJobSpec: object expected"); + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.fromObject(object.searchTrialJobSpec); + } + if (object.maxTrialCount != null) + message.maxTrialCount = object.maxTrialCount | 0; + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.maxFailedTrialCount != null) + message.maxFailedTrialCount = object.maxFailedTrialCount | 0; + return message; + }; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} message SearchTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.searchTrialJobSpec = null; + object.maxTrialCount = 0; + object.maxParallelTrialCount = 0; + object.maxFailedTrialCount = 0; + } + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) + object.searchTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.toObject(message.searchTrialJobSpec, options); + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + object.maxTrialCount = message.maxTrialCount; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + object.maxFailedTrialCount = message.maxFailedTrialCount; + return object; + }; + + /** + * Converts this SearchTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + * @returns {Object.} JSON object + */ + SearchTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec"; + }; + + return SearchTrialSpec; + })(); + + MultiTrialAlgorithmSpec.TrainTrialSpec = (function() { + + /** + * Properties of a TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ITrainTrialSpec + * @property {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null} [trainTrialJobSpec] TrainTrialSpec trainTrialJobSpec + * @property {number|null} [maxParallelTrialCount] TrainTrialSpec maxParallelTrialCount + * @property {number|null} [frequency] TrainTrialSpec frequency + */ + + /** + * Constructs a new TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a TrainTrialSpec. + * @implements ITrainTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + */ + function TrainTrialSpec(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]]; + } + + /** + * TrainTrialSpec trainTrialJobSpec. + * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} trainTrialJobSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.trainTrialJobSpec = null; + + /** + * TrainTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * TrainTrialSpec frequency. + * @member {number} frequency + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.frequency = 0; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec instance + */ + TrainTrialSpec.create = function create(properties) { + return new TrainTrialSpec(properties); + }; + + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainTrialJobSpec != null && Object.hasOwnProperty.call(message, "trainTrialJobSpec")) + $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.encode(message.trainTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxParallelTrialCount); + if (message.frequency != null && Object.hasOwnProperty.call(message, "frequency")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.frequency); + return writer; + }; + + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maxParallelTrialCount = reader.int32(); + break; + } + case 3: { + message.frequency = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return message; + }; - /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; + /** + * Verifies a TrainTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.trainTrialJobSpec); + if (error) + return "trainTrialJobSpec." + error; + } + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.frequency != null && message.hasOwnProperty("frequency")) + if (!$util.isInteger(message.frequency)) + return "frequency: integer expected"; + return null; + }; - /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest - */ - UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + /** + * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + */ + TrainTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + if (object.trainTrialJobSpec != null) { + if (typeof object.trainTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.trainTrialJobSpec: object expected"); + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.fromObject(object.trainTrialJobSpec); + } + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.frequency != null) + message.frequency = object.frequency | 0; + return message; + }; - /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.modelDeploymentMonitoringJob = null; - object.updateMask = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} message TrainTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainTrialJobSpec = null; + object.maxParallelTrialCount = 0; + object.frequency = 0; + } + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) + object.trainTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.toObject(message.trainTrialJobSpec, options); + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.frequency != null && message.hasOwnProperty("frequency")) + object.frequency = message.frequency; + return object; + }; - /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this TrainTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + * @returns {Object.} JSON object + */ + TrainTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest"; - }; + /** + * Gets the default type url for TrainTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec"; + }; - return UpdateModelDeploymentMonitoringJobRequest; + return TrainTrialSpec; + })(); + + /** + * MultiTrialAlgorithm enum. + * @name google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm + * @enum {number} + * @property {number} MULTI_TRIAL_ALGORITHM_UNSPECIFIED=0 MULTI_TRIAL_ALGORITHM_UNSPECIFIED value + * @property {number} REINFORCEMENT_LEARNING=1 REINFORCEMENT_LEARNING value + * @property {number} GRID_SEARCH=2 GRID_SEARCH value + */ + MultiTrialAlgorithmSpec.MultiTrialAlgorithm = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MULTI_TRIAL_ALGORITHM_UNSPECIFIED"] = 0; + values[valuesById[1] = "REINFORCEMENT_LEARNING"] = 1; + values[valuesById[2] = "GRID_SEARCH"] = 2; + return values; + })(); + + return MultiTrialAlgorithmSpec; + })(); + + return NasJobSpec; })(); - v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { + v1beta1.NasJobOutput = (function() { /** - * Properties of a DeleteModelDeploymentMonitoringJobRequest. + * Properties of a NasJobOutput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteModelDeploymentMonitoringJobRequest - * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name + * @interface INasJobOutput + * @property {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput|null} [multiTrialJobOutput] NasJobOutput multiTrialJobOutput */ /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new NasJobOutput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. - * @implements IDeleteModelDeploymentMonitoringJobRequest + * @classdesc Represents a NasJobOutput. + * @implements INasJobOutput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasJobOutput=} [properties] Properties to set */ - function DeleteModelDeploymentMonitoringJobRequest(properties) { + function NasJobOutput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -265313,75 +278701,89 @@ } /** - * DeleteModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * NasJobOutput multiTrialJobOutput. + * @member {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput|null|undefined} multiTrialJobOutput + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @instance */ - DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; + NasJobOutput.prototype.multiTrialJobOutput = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * NasJobOutput output. + * @member {"multiTrialJobOutput"|undefined} output + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput + * @instance + */ + Object.defineProperty(NasJobOutput.prototype, "output", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialJobOutput"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NasJobOutput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.INasJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput} NasJobOutput instance */ - DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new DeleteModelDeploymentMonitoringJobRequest(properties); + NasJobOutput.create = function create(properties) { + return new NasJobOutput(properties); }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJobOutput} message NasJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + NasJobOutput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.multiTrialJobOutput != null && Object.hasOwnProperty.call(message, "multiTrialJobOutput")) + $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.encode(message.multiTrialJobOutput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJobOutput} message NasJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + NasJobOutput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a NasJobOutput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput} NasJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + NasJobOutput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJobOutput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.decode(reader, reader.uint32()); break; } default: @@ -265393,325 +278795,405 @@ }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput} NasJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + NasJobOutput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a NasJobOutput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { + NasJobOutput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + properties.output = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify(message.multiTrialJobOutput); + if (error) + return "multiTrialJobOutput." + error; + } + } return null; }; /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput} NasJobOutput */ - DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + NasJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobOutput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobOutput(); + if (object.multiTrialJobOutput != null) { + if (typeof object.multiTrialJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.multiTrialJobOutput: object expected"); + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.fromObject(object.multiTrialJobOutput); + } return message; }; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput} message NasJobOutput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + NasJobOutput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + object.multiTrialJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.toObject(message.multiTrialJobOutput, options); + if (options.oneofs) + object.output = "multiTrialJobOutput"; + } return object; }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this NasJobOutput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @instance * @returns {Object.} JSON object */ - DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + NasJobOutput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * Gets the default type url for NasJobOutput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobOutput"; }; - return DeleteModelDeploymentMonitoringJobRequest; - })(); + NasJobOutput.MultiTrialJobOutput = (function() { - v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { + /** + * Properties of a MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput + * @interface IMultiTrialJobOutput + * @property {Array.|null} [searchTrials] MultiTrialJobOutput searchTrials + * @property {Array.|null} [trainTrials] MultiTrialJobOutput trainTrials + */ - /** - * Properties of a PauseModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPauseModelDeploymentMonitoringJobRequest - * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name - */ + /** + * Constructs a new MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput + * @classdesc Represents a MultiTrialJobOutput. + * @implements IMultiTrialJobOutput + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set + */ + function MultiTrialJobOutput(properties) { + this.searchTrials = []; + this.trainTrials = []; + 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]]; + } - /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. - * @implements IPauseModelDeploymentMonitoringJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - */ - function PauseModelDeploymentMonitoringJobRequest(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]]; - } + /** + * MultiTrialJobOutput searchTrials. + * @member {Array.} searchTrials + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @instance + */ + MultiTrialJobOutput.prototype.searchTrials = $util.emptyArray; - /** - * PauseModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @instance - */ - PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; + /** + * MultiTrialJobOutput trainTrials. + * @member {Array.} trainTrials + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @instance + */ + MultiTrialJobOutput.prototype.trainTrials = $util.emptyArray; - /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance - */ - PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new PauseModelDeploymentMonitoringJobRequest(properties); - }; + /** + * Creates a new MultiTrialJobOutput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput instance + */ + MultiTrialJobOutput.create = function create(properties) { + return new MultiTrialJobOutput(properties); + }; - /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialJobOutput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchTrials != null && message.searchTrials.length) + for (var i = 0; i < message.searchTrials.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NasTrial.encode(message.searchTrials[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainTrials != null && message.trainTrials.length) + for (var i = 0; i < message.trainTrials.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NasTrial.encode(message.trainTrials[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialJobOutput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialJobOutput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.searchTrials && message.searchTrials.length)) + message.searchTrials = []; + message.searchTrials.push($root.google.cloud.aiplatform.v1beta1.NasTrial.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.trainTrials && message.trainTrials.length)) + message.trainTrials = []; + message.trainTrials.push($root.google.cloud.aiplatform.v1beta1.NasTrial.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialJobOutput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a MultiTrialJobOutput message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiTrialJobOutput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchTrials != null && message.hasOwnProperty("searchTrials")) { + if (!Array.isArray(message.searchTrials)) + return "searchTrials: array expected"; + for (var i = 0; i < message.searchTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrial.verify(message.searchTrials[i]); + if (error) + return "searchTrials." + error; + } + } + if (message.trainTrials != null && message.hasOwnProperty("trainTrials")) { + if (!Array.isArray(message.trainTrials)) + return "trainTrials: array expected"; + for (var i = 0; i < message.trainTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrial.verify(message.trainTrials[i]); + if (error) + return "trainTrials." + error; + } + } + return null; + }; - /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest - */ - PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + /** + * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + */ + MultiTrialJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput(); + if (object.searchTrials) { + if (!Array.isArray(object.searchTrials)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.searchTrials: array expected"); + message.searchTrials = []; + for (var i = 0; i < object.searchTrials.length; ++i) { + if (typeof object.searchTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.searchTrials: object expected"); + message.searchTrials[i] = $root.google.cloud.aiplatform.v1beta1.NasTrial.fromObject(object.searchTrials[i]); + } + } + if (object.trainTrials) { + if (!Array.isArray(object.trainTrials)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.trainTrials: array expected"); + message.trainTrials = []; + for (var i = 0; i < object.trainTrials.length; ++i) { + if (typeof object.trainTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.trainTrials: object expected"); + message.trainTrials[i] = $root.google.cloud.aiplatform.v1beta1.NasTrial.fromObject(object.trainTrials[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput} message MultiTrialJobOutput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiTrialJobOutput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.searchTrials = []; + object.trainTrials = []; + } + if (message.searchTrials && message.searchTrials.length) { + object.searchTrials = []; + for (var j = 0; j < message.searchTrials.length; ++j) + object.searchTrials[j] = $root.google.cloud.aiplatform.v1beta1.NasTrial.toObject(message.searchTrials[j], options); + } + if (message.trainTrials && message.trainTrials.length) { + object.trainTrials = []; + for (var j = 0; j < message.trainTrials.length; ++j) + object.trainTrials[j] = $root.google.cloud.aiplatform.v1beta1.NasTrial.toObject(message.trainTrials[j], options); + } return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this MultiTrialJobOutput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @instance + * @returns {Object.} JSON object + */ + MultiTrialJobOutput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @instance - * @returns {Object.} JSON object - */ - PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for MultiTrialJobOutput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiTrialJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput"; + }; - /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest"; - }; + return MultiTrialJobOutput; + })(); - return PauseModelDeploymentMonitoringJobRequest; + return NasJobOutput; })(); - v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { + v1beta1.NasTrial = (function() { /** - * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * Properties of a NasTrial. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IResumeModelDeploymentMonitoringJobRequest - * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + * @interface INasTrial + * @property {string|null} [id] NasTrial id + * @property {google.cloud.aiplatform.v1beta1.NasTrial.State|null} [state] NasTrial state + * @property {google.cloud.aiplatform.v1beta1.IMeasurement|null} [finalMeasurement] NasTrial finalMeasurement + * @property {google.protobuf.ITimestamp|null} [startTime] NasTrial startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasTrial endTime */ /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new NasTrial. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. - * @implements IResumeModelDeploymentMonitoringJobRequest + * @classdesc Represents a NasTrial. + * @implements INasTrial * @constructor - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasTrial=} [properties] Properties to set */ - function ResumeModelDeploymentMonitoringJobRequest(properties) { + function NasTrial(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -265719,278 +279201,131 @@ } /** - * ResumeModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * NasTrial id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @instance */ - ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; - - /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance - */ - ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new ResumeModelDeploymentMonitoringJobRequest(properties); - }; - - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest - */ - ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + NasTrial.prototype.id = ""; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * NasTrial state. + * @member {google.cloud.aiplatform.v1beta1.NasTrial.State} state + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @instance - * @returns {Object.} JSON object - */ - ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url */ - ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest"; - }; - - return ResumeModelDeploymentMonitoringJobRequest; - })(); - - v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { + NasTrial.prototype.state = 0; /** - * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata + * NasTrial finalMeasurement. + * @member {google.cloud.aiplatform.v1beta1.IMeasurement|null|undefined} finalMeasurement + * @memberof google.cloud.aiplatform.v1beta1.NasTrial + * @instance */ + NasTrial.prototype.finalMeasurement = null; /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * NasTrial startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.NasTrial + * @instance */ - function UpdateModelDeploymentMonitoringJobOperationMetadata(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]]; - } + NasTrial.prototype.startTime = null; /** - * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * NasTrial endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; + NasTrial.prototype.endTime = null; /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * Creates a new NasTrial instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.INasTrial=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasTrial} NasTrial instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); + NasTrial.create = function create(properties) { + return new NasTrial(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrial.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasTrial} message NasTrial message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { + NasTrial.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) + $root.google.cloud.aiplatform.v1beta1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrial.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasTrial} message NasTrial message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + NasTrial.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a NasTrial message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.NasTrial} NasTrial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { + NasTrial.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasTrial(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.id = reader.string(); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + case 3: { + message.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -266002,107 +279337,211 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NasTrial message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.NasTrial} NasTrial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + NasTrial.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a NasTrial message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { + NasTrial.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { + var error = $root.google.cloud.aiplatform.v1beta1.Measurement.verify(message.finalMeasurement); if (error) - return "genericMetadata." + error; + return "finalMeasurement." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.NasTrial} NasTrial */ - UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + NasTrial.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasTrial) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.NasTrial(); + if (object.id != null) + message.id = String(object.id); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "REQUESTED": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "STOPPING": + case 3: + message.state = 3; + break; + case "SUCCEEDED": + case 4: + message.state = 4; + break; + case "INFEASIBLE": + case 5: + message.state = 5; + break; + } + if (object.finalMeasurement != null) { + if (typeof object.finalMeasurement !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrial.finalMeasurement: object expected"); + message.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.fromObject(object.finalMeasurement); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrial.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrial.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.NasTrial} message NasTrial * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { + NasTrial.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.id = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.finalMeasurement = null; + object.startTime = null; + object.endTime = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NasTrial.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.NasTrial.State[message.state] : message.state; + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) + object.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.toObject(message.finalMeasurement, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this NasTrial to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { + NasTrial.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * Gets the default type url for NasTrial * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasTrial.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasTrial"; }; - return UpdateModelDeploymentMonitoringJobOperationMetadata; + /** + * State enum. + * @name google.cloud.aiplatform.v1beta1.NasTrial.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} REQUESTED=1 REQUESTED value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} STOPPING=3 STOPPING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} INFEASIBLE=5 INFEASIBLE value + */ + NasTrial.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "REQUESTED"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "STOPPING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "INFEASIBLE"] = 5; + return values; + })(); + + return NasTrial; })(); v1beta1.LineageSubgraph = (function() { @@ -286622,6 +300061,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|copyModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef CopyModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} request CopyModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.CopyModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.copyModel = function copyModel(request, callback) { + return this.rpcCall(copyModel, $root.google.cloud.aiplatform.v1beta1.CopyModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CopyModel" }); + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} request CopyModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|importModelEvaluation}. * @memberof google.cloud.aiplatform.v1beta1.ModelService @@ -291515,6 +304987,767 @@ return ExportModelResponse; })(); + v1beta1.CopyModelRequest = (function() { + + /** + * Properties of a CopyModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICopyModelRequest + * @property {string|null} [modelId] CopyModelRequest modelId + * @property {string|null} [parentModel] CopyModelRequest parentModel + * @property {string|null} [parent] CopyModelRequest parent + * @property {string|null} [sourceModel] CopyModelRequest sourceModel + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] CopyModelRequest encryptionSpec + */ + + /** + * Constructs a new CopyModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CopyModelRequest. + * @implements ICopyModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest=} [properties] Properties to set + */ + function CopyModelRequest(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]]; + } + + /** + * CopyModelRequest modelId. + * @member {string|null|undefined} modelId + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.modelId = null; + + /** + * CopyModelRequest parentModel. + * @member {string|null|undefined} parentModel + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.parentModel = null; + + /** + * CopyModelRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.parent = ""; + + /** + * CopyModelRequest sourceModel. + * @member {string} sourceModel + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.sourceModel = ""; + + /** + * CopyModelRequest encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.encryptionSpec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CopyModelRequest destinationModel. + * @member {"modelId"|"parentModel"|undefined} destinationModel + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + Object.defineProperty(CopyModelRequest.prototype, "destinationModel", { + get: $util.oneOfGetter($oneOfFields = ["modelId", "parentModel"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CopyModelRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest instance + */ + CopyModelRequest.create = function create(properties) { + return new CopyModelRequest(properties); + }; + + /** + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} message CopyModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.sourceModel != null && Object.hasOwnProperty.call(message, "sourceModel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceModel); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelId); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parentModel); + return writer; + }; + + /** + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} message CopyModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyModelRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CopyModelRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: { + message.modelId = reader.string(); + break; + } + case 5: { + message.parentModel = reader.string(); + break; + } + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.sourceModel = reader.string(); + break; + } + case 3: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyModelRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyModelRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.modelId != null && message.hasOwnProperty("modelId")) { + properties.destinationModel = 1; + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + if (properties.destinationModel === 1) + return "destinationModel: multiple values"; + properties.destinationModel = 1; + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + if (!$util.isString(message.sourceModel)) + return "sourceModel: string expected"; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + return null; + }; + + /** + * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + */ + CopyModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelRequest(); + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + if (object.parent != null) + message.parent = String(object.parent); + if (object.sourceModel != null) + message.sourceModel = String(object.sourceModel); + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CopyModelRequest.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + return message; + }; + + /** + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CopyModelRequest} message CopyModelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyModelRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.sourceModel = ""; + object.encryptionSpec = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + object.sourceModel = message.sourceModel; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.modelId != null && message.hasOwnProperty("modelId")) { + object.modelId = message.modelId; + if (options.oneofs) + object.destinationModel = "modelId"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + object.parentModel = message.parentModel; + if (options.oneofs) + object.destinationModel = "parentModel"; + } + return object; + }; + + /** + * Converts this CopyModelRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + * @returns {Object.} JSON object + */ + CopyModelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyModelRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelRequest"; + }; + + return CopyModelRequest; + })(); + + v1beta1.CopyModelOperationMetadata = (function() { + + /** + * Properties of a CopyModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICopyModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CopyModelOperationMetadata genericMetadata + */ + + /** + * Constructs a new CopyModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CopyModelOperationMetadata. + * @implements ICopyModelOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata=} [properties] Properties to set + */ + function CopyModelOperationMetadata(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]]; + } + + /** + * CopyModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @instance + */ + CopyModelOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CopyModelOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata instance + */ + CopyModelOperationMetadata.create = function create(properties) { + return new CopyModelOperationMetadata(properties); + }; + + /** + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyModelOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyModelOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + */ + CopyModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} message CopyModelOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyModelOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this CopyModelOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CopyModelOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyModelOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata"; + }; + + return CopyModelOperationMetadata; + })(); + + v1beta1.CopyModelResponse = (function() { + + /** + * Properties of a CopyModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICopyModelResponse + * @property {string|null} [model] CopyModelResponse model + * @property {string|null} [modelVersionId] CopyModelResponse modelVersionId + */ + + /** + * Constructs a new CopyModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CopyModelResponse. + * @implements ICopyModelResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse=} [properties] Properties to set + */ + function CopyModelResponse(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]]; + } + + /** + * CopyModelResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @instance + */ + CopyModelResponse.prototype.model = ""; + + /** + * CopyModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @instance + */ + CopyModelResponse.prototype.modelVersionId = ""; + + /** + * Creates a new CopyModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse instance + */ + CopyModelResponse.create = function create(properties) { + return new CopyModelResponse(properties); + }; + + /** + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); + return writer; + }; + + /** + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CopyModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 2: { + message.modelVersionId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + return null; + }; + + /** + * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse + */ + CopyModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelResponse(); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + return message; + }; + + /** + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.CopyModelResponse} message CopyModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyModelResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelVersionId = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + return object; + }; + + /** + * Converts this CopyModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @instance + * @returns {Object.} JSON object + */ + CopyModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyModelResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelResponse"; + }; + + return CopyModelResponse; + })(); + v1beta1.ImportModelEvaluationRequest = (function() { /** @@ -297448,6 +311681,7 @@ * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @interface ICustomJobDetail * @property {string|null} [job] CustomJobDetail job + * @property {Array.|null} [failedJobs] CustomJobDetail failedJobs */ /** @@ -297459,6 +311693,7 @@ * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set */ function CustomJobDetail(properties) { + this.failedJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -297473,6 +311708,14 @@ */ CustomJobDetail.prototype.job = ""; + /** + * CustomJobDetail failedJobs. + * @member {Array.} failedJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.failedJobs = $util.emptyArray; + /** * Creates a new CustomJobDetail instance using the specified properties. * @function create @@ -297499,6 +311742,9 @@ writer = $Writer.create(); if (message.job != null && Object.hasOwnProperty.call(message, "job")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); + if (message.failedJobs != null && message.failedJobs.length) + for (var i = 0; i < message.failedJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedJobs[i]); return writer; }; @@ -297537,6 +311783,12 @@ message.job = reader.string(); break; } + case 3: { + if (!(message.failedJobs && message.failedJobs.length)) + message.failedJobs = []; + message.failedJobs.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -297575,6 +311827,13 @@ if (message.job != null && message.hasOwnProperty("job")) if (!$util.isString(message.job)) return "job: string expected"; + if (message.failedJobs != null && message.hasOwnProperty("failedJobs")) { + if (!Array.isArray(message.failedJobs)) + return "failedJobs: array expected"; + for (var i = 0; i < message.failedJobs.length; ++i) + if (!$util.isString(message.failedJobs[i])) + return "failedJobs: string[] expected"; + } return null; }; @@ -297592,6 +311851,13 @@ var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); if (object.job != null) message.job = String(object.job); + if (object.failedJobs) { + if (!Array.isArray(object.failedJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.failedJobs: array expected"); + message.failedJobs = []; + for (var i = 0; i < object.failedJobs.length; ++i) + message.failedJobs[i] = String(object.failedJobs[i]); + } return message; }; @@ -297608,10 +311874,17 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.failedJobs = []; if (options.defaults) object.job = ""; if (message.job != null && message.hasOwnProperty("job")) object.job = message.job; + if (message.failedJobs && message.failedJobs.length) { + object.failedJobs = []; + for (var j = 0; j < message.failedJobs.length; ++j) + object.failedJobs[j] = message.failedJobs[j]; + } return object; }; diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 3250254e6c8c..8e726d9de512 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -1590,6 +1590,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "originalModelInfo": { + "type": "OriginalModelInfo", + "id": 34, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "metadataArtifact": { "type": "string", "id": 44, @@ -1627,6 +1634,18 @@ } } }, + "OriginalModelInfo": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + } + } + }, "DeploymentResourcesType": { "values": { "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED": 0, @@ -3415,6 +3434,7 @@ "type": "string", "id": 13, "options": { + "(google.api.field_behavior)": "OPTIONAL", "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, @@ -6486,6 +6506,13 @@ }, "nested": { "MetricSpec": { + "oneofs": { + "_safetyConfig": { + "oneof": [ + "safetyConfig" + ] + } + }, "fields": { "metricId": { "type": "string", @@ -6500,9 +6527,38 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "safetyConfig": { + "type": "SafetyMetricConfig", + "id": 3, + "options": { + "proto3_optional": true + } } }, "nested": { + "SafetyMetricConfig": { + "oneofs": { + "_desiredMinSafeTrialsFraction": { + "oneof": [ + "desiredMinSafeTrialsFraction" + ] + } + }, + "fields": { + "safetyThreshold": { + "type": "double", + "id": 1 + }, + "desiredMinSafeTrialsFraction": { + "type": "double", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, "GoalType": { "values": { "GOAL_TYPE_UNSPECIFIED": 0, @@ -7117,6 +7173,13 @@ "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } + }, + "privateServiceConnectConfig": { + "type": "PrivateServiceConnectConfig", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -7249,6 +7312,22 @@ } } }, + "PrivateServiceConnectConfig": { + "fields": { + "enablePrivateServiceConnect": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "projectAllowlist": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, "IndexEndpointService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -8079,7 +8158,7 @@ "JobService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only" }, "methods": { "CreateCustomJob": { @@ -8388,6 +8467,144 @@ } ] }, + "CreateNasJob": { + "requestType": "CreateNasJobRequest", + "responseType": "NasJob", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/nasJobs", + "(google.api.http).body": "nas_job", + "(google.api.method_signature)": "parent,nas_job" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/nasJobs", + "body": "nas_job" + } + }, + { + "(google.api.method_signature)": "parent,nas_job" + } + ] + }, + "GetNasJob": { + "requestType": "GetNasJobRequest", + "responseType": "NasJob", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/nasJobs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/nasJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListNasJobs": { + "requestType": "ListNasJobsRequest", + "responseType": "ListNasJobsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/nasJobs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/nasJobs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteNasJob": { + "requestType": "DeleteNasJobRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/nasJobs/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/nasJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "CancelNasJob": { + "requestType": "CancelNasJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/nasJobs/*}:cancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/nasJobs/*}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetNasTrialDetail": { + "requestType": "GetNasTrialDetailRequest", + "responseType": "NasTrialDetail", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListNasTrialDetails": { + "requestType": "ListNasTrialDetailsRequest", + "responseType": "ListNasTrialDetailsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, "CreateBatchPredictionJob": { "requestType": "CreateBatchPredictionJobRequest", "responseType": "BatchPredictionJob", @@ -8954,7 +9171,7 @@ } } }, - "CreateBatchPredictionJobRequest": { + "CreateNasJobRequest": { "fields": { "parent": { "type": "string", @@ -8964,8 +9181,8 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "batchPredictionJob": { - "type": "BatchPredictionJob", + "nasJob": { + "type": "NasJob", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -8973,19 +9190,19 @@ } } }, - "GetBatchPredictionJobRequest": { + "GetNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "ListBatchPredictionJobsRequest": { + "ListNasJobsRequest": { "fields": { "parent": { "type": "string", @@ -9013,11 +9230,11 @@ } } }, - "ListBatchPredictionJobsResponse": { + "ListNasJobsResponse": { "fields": { - "batchPredictionJobs": { + "nasJobs": { "rule": "repeated", - "type": "BatchPredictionJob", + "type": "NasJob", "id": 1 }, "nextPageToken": { @@ -9026,115 +9243,67 @@ } } }, - "DeleteBatchPredictionJobRequest": { + "DeleteNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "CancelBatchPredictionJobRequest": { + "CancelNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "CreateModelDeploymentMonitoringJobRequest": { + "GetNasTrialDetailRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } - }, - "modelDeploymentMonitoringJob": { - "type": "ModelDeploymentMonitoringJob", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasTrialDetail" } } } }, - "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { + "ListNasTrialDetailsRequest": { "fields": { - "modelDeploymentMonitoringJob": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" - } - }, - "deployedModelId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "featureDisplayName": { - "type": "string", - "id": 3 - }, - "objectives": { - "rule": "repeated", - "type": "StatsAnomaliesObjective", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } }, "pageSize": { "type": "int32", - "id": 5 + "id": 2 }, "pageToken": { "type": "string", - "id": 6 - }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 7 - }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 8 - } - }, - "nested": { - "StatsAnomaliesObjective": { - "fields": { - "type": { - "type": "ModelDeploymentMonitoringObjectiveType", - "id": 1 - }, - "topFeatureCount": { - "type": "int32", - "id": 4 - } - } + "id": 3 } } }, - "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { + "ListNasTrialDetailsResponse": { "fields": { - "monitoringStats": { + "nasTrialDetails": { "rule": "repeated", - "type": "ModelMonitoringStatsAnomalies", + "type": "NasTrialDetail", "id": 1 }, "nextPageToken": { @@ -9143,19 +9312,208 @@ } } }, - "GetModelDeploymentMonitoringJobRequest": { + "CreateBatchPredictionJobRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "batchPredictionJob": { + "type": "BatchPredictionJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" } } } }, - "ListModelDeploymentMonitoringJobsRequest": { + "GetBatchPredictionJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + } + } + } + }, + "ListBatchPredictionJobsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + } + } + }, + "ListBatchPredictionJobsResponse": { + "fields": { + "batchPredictionJobs": { + "rule": "repeated", + "type": "BatchPredictionJob", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteBatchPredictionJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + } + } + } + }, + "CancelBatchPredictionJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + } + } + } + }, + "CreateModelDeploymentMonitoringJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "modelDeploymentMonitoringJob": { + "type": "ModelDeploymentMonitoringJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { + "fields": { + "modelDeploymentMonitoringJob": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + }, + "deployedModelId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureDisplayName": { + "type": "string", + "id": 3 + }, + "objectives": { + "rule": "repeated", + "type": "StatsAnomaliesObjective", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pageSize": { + "type": "int32", + "id": 5 + }, + "pageToken": { + "type": "string", + "id": 6 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 7 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 8 + } + }, + "nested": { + "StatsAnomaliesObjective": { + "fields": { + "type": { + "type": "ModelDeploymentMonitoringObjectiveType", + "id": 1 + }, + "topFeatureCount": { + "type": "int32", + "id": 4 + } + } + } + } + }, + "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { + "fields": { + "monitoringStats": { + "rule": "repeated", + "type": "ModelMonitoringStatsAnomalies", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetModelDeploymentMonitoringJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + } + } + }, + "ListModelDeploymentMonitoringJobsRequest": { "fields": { "parent": { "type": "string", @@ -9746,29 +10104,10 @@ } } }, - "LineageSubgraph": { - "fields": { - "artifacts": { - "rule": "repeated", - "type": "Artifact", - "id": 1 - }, - "executions": { - "rule": "repeated", - "type": "Execution", - "id": 2 - }, - "events": { - "rule": "repeated", - "type": "Event", - "id": 3 - } - } - }, - "MetadataSchema": { + "NasJob": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/MetadataSchema", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}" + "(google.api.resource).type": "aiplatform.googleapis.com/NasJob", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/nasJobs/{nas_job}" }, "fields": { "name": { @@ -9778,49 +10117,418 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "schemaVersion": { + "displayName": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "schema": { - "type": "string", - "id": 3, + "nasJobSpec": { + "type": "NasJobSpec", + "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "schemaType": { - "type": "MetadataSchemaType", - "id": 4 + "nasJobOutput": { + "type": "NasJobOutput", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "JobState", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "createTime": { "type": "google.protobuf.Timestamp", - "id": 5, + "id": 7, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "description": { - "type": "string", - "id": 6 - } - }, - "nested": { - "MetadataSchemaType": { - "values": { - "METADATA_SCHEMA_TYPE_UNSPECIFIED": 0, - "ARTIFACT_TYPE": 1, - "EXECUTION_TYPE": 2, - "CONTEXT_TYPE": 3 + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "MetadataService": { - "options": { - "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" - }, + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "error": { + "type": "google.rpc.Status", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 12 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 13 + }, + "enableRestrictedImageTraining": { + "type": "bool", + "id": 14, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "NasTrialDetail": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/NasTrialDetail", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parameters": { + "type": "string", + "id": 2 + }, + "searchTrial": { + "type": "NasTrial", + "id": 3 + }, + "trainTrial": { + "type": "NasTrial", + "id": 4 + } + } + }, + "NasJobSpec": { + "oneofs": { + "nasAlgorithmSpec": { + "oneof": [ + "multiTrialAlgorithmSpec" + ] + } + }, + "fields": { + "multiTrialAlgorithmSpec": { + "type": "MultiTrialAlgorithmSpec", + "id": 2 + }, + "resumeNasJobId": { + "type": "string", + "id": 3 + }, + "searchSpaceSpec": { + "type": "string", + "id": 1 + } + }, + "nested": { + "MultiTrialAlgorithmSpec": { + "fields": { + "multiTrialAlgorithm": { + "type": "MultiTrialAlgorithm", + "id": 1 + }, + "metric": { + "type": "MetricSpec", + "id": 2 + }, + "searchTrialSpec": { + "type": "SearchTrialSpec", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "trainTrialSpec": { + "type": "TrainTrialSpec", + "id": 4 + } + }, + "nested": { + "MetricSpec": { + "fields": { + "metricId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "goal": { + "type": "GoalType", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "GoalType": { + "values": { + "GOAL_TYPE_UNSPECIFIED": 0, + "MAXIMIZE": 1, + "MINIMIZE": 2 + } + } + } + }, + "SearchTrialSpec": { + "fields": { + "searchTrialJobSpec": { + "type": "CustomJobSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxTrialCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxParallelTrialCount": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxFailedTrialCount": { + "type": "int32", + "id": 4 + } + } + }, + "TrainTrialSpec": { + "fields": { + "trainTrialJobSpec": { + "type": "CustomJobSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxParallelTrialCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "frequency": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "MultiTrialAlgorithm": { + "values": { + "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": 0, + "REINFORCEMENT_LEARNING": 1, + "GRID_SEARCH": 2 + } + } + } + } + } + }, + "NasJobOutput": { + "oneofs": { + "output": { + "oneof": [ + "multiTrialJobOutput" + ] + } + }, + "fields": { + "multiTrialJobOutput": { + "type": "MultiTrialJobOutput", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "MultiTrialJobOutput": { + "fields": { + "searchTrials": { + "rule": "repeated", + "type": "NasTrial", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "trainTrials": { + "rule": "repeated", + "type": "NasTrial", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + } + } + }, + "NasTrial": { + "fields": { + "id": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "finalMeasurement": { + "type": "Measurement", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "REQUESTED": 1, + "ACTIVE": 2, + "STOPPING": 3, + "SUCCEEDED": 4, + "INFEASIBLE": 5 + } + } + } + }, + "LineageSubgraph": { + "fields": { + "artifacts": { + "rule": "repeated", + "type": "Artifact", + "id": 1 + }, + "executions": { + "rule": "repeated", + "type": "Execution", + "id": 2 + }, + "events": { + "rule": "repeated", + "type": "Event", + "id": 3 + } + } + }, + "MetadataSchema": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/MetadataSchema", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "schemaVersion": { + "type": "string", + "id": 2 + }, + "schema": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "schemaType": { + "type": "MetadataSchemaType", + "id": 4 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "description": { + "type": "string", + "id": 6 + } + }, + "nested": { + "MetadataSchemaType": { + "values": { + "METADATA_SCHEMA_TYPE_UNSPECIFIED": 0, + "ARTIFACT_TYPE": 1, + "EXECUTION_TYPE": 2, + "CONTEXT_TYPE": 3 + } + } + } + }, + "MetadataService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, "methods": { "CreateMetadataStore": { "requestType": "CreateMetadataStoreRequest", @@ -12165,30 +12873,58 @@ } ] }, - "ExportModel": { - "requestType": "ExportModelRequest", + "ExportModel": { + "requestType": "ExportModelRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/models/*}:export", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name,output_config", + "(google.longrunning.operation_info).response_type": "ExportModelResponse", + "(google.longrunning.operation_info).metadata_type": "ExportModelOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/models/*}:export", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name,output_config" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ExportModelResponse", + "metadata_type": "ExportModelOperationMetadata" + } + } + ] + }, + "CopyModel": { + "requestType": "CopyModelRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1/{name=projects/*/locations/*/models/*}:export", + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/models:copy", "(google.api.http).body": "*", - "(google.api.method_signature)": "name,output_config", - "(google.longrunning.operation_info).response_type": "ExportModelResponse", - "(google.longrunning.operation_info).metadata_type": "ExportModelOperationMetadata" + "(google.api.method_signature)": "parent,source_model", + "(google.longrunning.operation_info).response_type": "CopyModelResponse", + "(google.longrunning.operation_info).metadata_type": "CopyModelOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{name=projects/*/locations/*/models/*}:export", + "post": "/v1/{parent=projects/*/locations/*}/models:copy", "body": "*" } }, { - "(google.api.method_signature)": "name,output_config" + "(google.api.method_signature)": "parent,source_model" }, { "(google.longrunning.operation_info)": { - "response_type": "ExportModelResponse", - "metadata_type": "ExportModelOperationMetadata" + "response_type": "CopyModelResponse", + "metadata_type": "CopyModelOperationMetadata" } } ] @@ -12612,6 +13348,79 @@ "ExportModelResponse": { "fields": {} }, + "CopyModelRequest": { + "oneofs": { + "destinationModel": { + "oneof": [ + "modelId", + "parentModel" + ] + } + }, + "fields": { + "modelId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "parentModel": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "sourceModel": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 3 + } + } + }, + "CopyModelOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "CopyModelResponse": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "modelVersionId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "ImportModelEvaluationRequest": { "fields": { "parent": { @@ -13141,7 +13950,6 @@ "type": "CustomJobDetail", "id": 2, "options": { - "deprecated": true, "(google.api.field_behavior)": "OUTPUT_ONLY" } } @@ -13184,9 +13992,6 @@ } }, "CustomJobDetail": { - "options": { - "deprecated": true - }, "fields": { "job": { "type": "string", @@ -13195,6 +14000,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" } + }, + "failedJobs": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } } @@ -20069,6 +20882,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "originalModelInfo": { + "type": "OriginalModelInfo", + "id": 34, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "metadataArtifact": { "type": "string", "id": 44, @@ -20106,6 +20926,18 @@ } } }, + "OriginalModelInfo": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + } + } + }, "DeploymentResourcesType": { "values": { "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED": 0, @@ -22186,6 +23018,7 @@ "type": "string", "id": 13, "options": { + "(google.api.field_behavior)": "OPTIONAL", "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, @@ -22273,6 +23106,10 @@ "type": "ExplanationSpec", "id": 9 }, + "disableExplanations": { + "type": "bool", + "id": 19 + }, "serviceAccount": { "type": "string", "id": 11 @@ -25399,6 +26236,13 @@ }, "nested": { "MetricSpec": { + "oneofs": { + "_safetyConfig": { + "oneof": [ + "safetyConfig" + ] + } + }, "fields": { "metricId": { "type": "string", @@ -25413,9 +26257,38 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "safetyConfig": { + "type": "SafetyMetricConfig", + "id": 3, + "options": { + "proto3_optional": true + } } }, "nested": { + "SafetyMetricConfig": { + "oneofs": { + "_desiredMinSafeTrialsFraction": { + "oneof": [ + "desiredMinSafeTrialsFraction" + ] + } + }, + "fields": { + "safetyThreshold": { + "type": "double", + "id": 1 + }, + "desiredMinSafeTrialsFraction": { + "type": "double", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, "GoalType": { "values": { "GOAL_TYPE_UNSPECIFIED": 0, @@ -26073,6 +26946,13 @@ "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } + }, + "privateServiceConnectConfig": { + "type": "PrivateServiceConnectConfig", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -26205,6 +27085,22 @@ } } }, + "PrivateServiceConnectConfig": { + "fields": { + "enablePrivateServiceConnect": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "projectAllowlist": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, "IndexEndpointService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -27035,7 +27931,7 @@ "JobService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only" }, "methods": { "CreateCustomJob": { @@ -27226,14 +28122,116 @@ "requestType": "CancelDataLabelingJobRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel", + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateHyperparameterTuningJob": { + "requestType": "CreateHyperparameterTuningJobRequest", + "responseType": "HyperparameterTuningJob", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", + "(google.api.http).body": "hyperparameter_tuning_job", + "(google.api.method_signature)": "parent,hyperparameter_tuning_job" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", + "body": "hyperparameter_tuning_job" + } + }, + { + "(google.api.method_signature)": "parent,hyperparameter_tuning_job" + } + ] + }, + "GetHyperparameterTuningJob": { + "requestType": "GetHyperparameterTuningJobRequest", + "responseType": "HyperparameterTuningJob", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListHyperparameterTuningJobs": { + "requestType": "ListHyperparameterTuningJobsRequest", + "responseType": "ListHyperparameterTuningJobsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteHyperparameterTuningJob": { + "requestType": "DeleteHyperparameterTuningJobRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "CancelHyperparameterTuningJob": { + "requestType": "CancelHyperparameterTuningJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel", "(google.api.http).body": "*", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel", + "post": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel", "body": "*" } }, @@ -27242,37 +28240,37 @@ } ] }, - "CreateHyperparameterTuningJob": { - "requestType": "CreateHyperparameterTuningJobRequest", - "responseType": "HyperparameterTuningJob", + "CreateNasJob": { + "requestType": "CreateNasJobRequest", + "responseType": "NasJob", "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", - "(google.api.http).body": "hyperparameter_tuning_job", - "(google.api.method_signature)": "parent,hyperparameter_tuning_job" + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/nasJobs", + "(google.api.http).body": "nas_job", + "(google.api.method_signature)": "parent,nas_job" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", - "body": "hyperparameter_tuning_job" + "post": "/v1beta1/{parent=projects/*/locations/*}/nasJobs", + "body": "nas_job" } }, { - "(google.api.method_signature)": "parent,hyperparameter_tuning_job" + "(google.api.method_signature)": "parent,nas_job" } ] }, - "GetHyperparameterTuningJob": { - "requestType": "GetHyperparameterTuningJobRequest", - "responseType": "HyperparameterTuningJob", + "GetNasJob": { + "requestType": "GetNasJobRequest", + "responseType": "NasJob", "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}", + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + "get": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}" } }, { @@ -27280,17 +28278,17 @@ } ] }, - "ListHyperparameterTuningJobs": { - "requestType": "ListHyperparameterTuningJobsRequest", - "responseType": "ListHyperparameterTuningJobsResponse", + "ListNasJobs": { + "requestType": "ListNasJobsRequest", + "responseType": "ListNasJobsResponse", "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/nasJobs", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs" + "get": "/v1beta1/{parent=projects/*/locations/*}/nasJobs" } }, { @@ -27298,11 +28296,11 @@ } ] }, - "DeleteHyperparameterTuningJob": { - "requestType": "DeleteHyperparameterTuningJobRequest", + "DeleteNasJob": { + "requestType": "DeleteNasJobRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}", + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" @@ -27310,7 +28308,7 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + "delete": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}" } }, { @@ -27324,18 +28322,18 @@ } ] }, - "CancelHyperparameterTuningJob": { - "requestType": "CancelHyperparameterTuningJobRequest", + "CancelNasJob": { + "requestType": "CancelNasJobRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel", + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}:cancel", "(google.api.http).body": "*", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel", + "post": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}:cancel", "body": "*" } }, @@ -27344,6 +28342,42 @@ } ] }, + "GetNasTrialDetail": { + "requestType": "GetNasTrialDetailRequest", + "responseType": "NasTrialDetail", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListNasTrialDetails": { + "requestType": "ListNasTrialDetailsRequest", + "responseType": "ListNasTrialDetailsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, "CreateBatchPredictionJob": { "requestType": "CreateBatchPredictionJobRequest", "responseType": "BatchPredictionJob", @@ -27576,49 +28610,245 @@ } ] }, - "PauseModelDeploymentMonitoringJob": { - "requestType": "PauseModelDeploymentMonitoringJobRequest", - "responseType": "google.protobuf.Empty", + "PauseModelDeploymentMonitoringJob": { + "requestType": "PauseModelDeploymentMonitoringJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ResumeModelDeploymentMonitoringJob": { + "requestType": "ResumeModelDeploymentMonitoringJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + } + } + }, + "CreateCustomJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "customJob": { + "type": "CustomJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetCustomJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + } + } + }, + "ListCustomJobsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + } + } + }, + "ListCustomJobsResponse": { + "fields": { + "customJobs": { + "rule": "repeated", + "type": "CustomJob", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteCustomJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + } + } + }, + "CancelCustomJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + } + } + }, + "CreateDataLabelingJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "dataLabelingJob": { + "type": "DataLabelingJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetDataLabelingJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + } + } + } + }, + "ListDataLabelingJobsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + }, + "orderBy": { + "type": "string", + "id": 6 + } + } + }, + "ListDataLabelingJobsResponse": { + "fields": { + "dataLabelingJobs": { + "rule": "repeated", + "type": "DataLabelingJob", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteDataLabelingJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "ResumeModelDeploymentMonitoringJob": { - "requestType": "ResumeModelDeploymentMonitoringJobRequest", - "responseType": "google.protobuf.Empty", + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + } + } + } + }, + "CancelDataLabelingJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + } } } }, - "CreateCustomJobRequest": { + "CreateHyperparameterTuningJobRequest": { "fields": { "parent": { "type": "string", @@ -27628,8 +28858,8 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "customJob": { - "type": "CustomJob", + "hyperparameterTuningJob": { + "type": "HyperparameterTuningJob", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -27637,19 +28867,19 @@ } } }, - "GetCustomJobRequest": { + "GetHyperparameterTuningJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" } } } }, - "ListCustomJobsRequest": { + "ListHyperparameterTuningJobsRequest": { "fields": { "parent": { "type": "string", @@ -27677,11 +28907,11 @@ } } }, - "ListCustomJobsResponse": { + "ListHyperparameterTuningJobsResponse": { "fields": { - "customJobs": { + "hyperparameterTuningJobs": { "rule": "repeated", - "type": "CustomJob", + "type": "HyperparameterTuningJob", "id": 1 }, "nextPageToken": { @@ -27690,31 +28920,31 @@ } } }, - "DeleteCustomJobRequest": { + "DeleteHyperparameterTuningJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" } } } }, - "CancelCustomJobRequest": { + "CancelHyperparameterTuningJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" } } } }, - "CreateDataLabelingJobRequest": { + "CreateNasJobRequest": { "fields": { "parent": { "type": "string", @@ -27724,8 +28954,8 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "dataLabelingJob": { - "type": "DataLabelingJob", + "nasJob": { + "type": "NasJob", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -27733,19 +28963,19 @@ } } }, - "GetDataLabelingJobRequest": { + "GetNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "ListDataLabelingJobsRequest": { + "ListNasJobsRequest": { "fields": { "parent": { "type": "string", @@ -27770,18 +29000,14 @@ "readMask": { "type": "google.protobuf.FieldMask", "id": 5 - }, - "orderBy": { - "type": "string", - "id": 6 } } }, - "ListDataLabelingJobsResponse": { + "ListNasJobsResponse": { "fields": { - "dataLabelingJobs": { + "nasJobs": { "rule": "repeated", - "type": "DataLabelingJob", + "type": "NasJob", "id": 1 }, "nextPageToken": { @@ -27790,31 +29016,76 @@ } } }, - "DeleteDataLabelingJobRequest": { + "DeleteNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "CancelDataLabelingJobRequest": { + "CancelNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "CreateHyperparameterTuningJobRequest": { + "GetNasTrialDetailRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasTrialDetail" + } + } + } + }, + "ListNasTrialDetailsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListNasTrialDetailsResponse": { + "fields": { + "nasTrialDetails": { + "rule": "repeated", + "type": "NasTrialDetail", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateBatchPredictionJobRequest": { "fields": { "parent": { "type": "string", @@ -27824,8 +29095,8 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "hyperparameterTuningJob": { - "type": "HyperparameterTuningJob", + "batchPredictionJob": { + "type": "BatchPredictionJob", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -27833,19 +29104,19 @@ } } }, - "GetHyperparameterTuningJobRequest": { + "GetBatchPredictionJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" } } } }, - "ListHyperparameterTuningJobsRequest": { + "ListBatchPredictionJobsRequest": { "fields": { "parent": { "type": "string", @@ -27873,11 +29144,11 @@ } } }, - "ListHyperparameterTuningJobsResponse": { + "ListBatchPredictionJobsResponse": { "fields": { - "hyperparameterTuningJobs": { + "batchPredictionJobs": { "rule": "repeated", - "type": "HyperparameterTuningJob", + "type": "BatchPredictionJob", "id": 1 }, "nextPageToken": { @@ -27886,31 +29157,31 @@ } } }, - "DeleteHyperparameterTuningJobRequest": { + "DeleteBatchPredictionJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" } } } }, - "CancelHyperparameterTuningJobRequest": { + "CancelBatchPredictionJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" } } } }, - "CreateBatchPredictionJobRequest": { + "CreateModelDeploymentMonitoringJobRequest": { "fields": { "parent": { "type": "string", @@ -27920,28 +29191,102 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "batchPredictionJob": { - "type": "BatchPredictionJob", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "modelDeploymentMonitoringJob": { + "type": "ModelDeploymentMonitoringJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { + "fields": { + "modelDeploymentMonitoringJob": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + }, + "deployedModelId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureDisplayName": { + "type": "string", + "id": 3 + }, + "objectives": { + "rule": "repeated", + "type": "StatsAnomaliesObjective", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pageSize": { + "type": "int32", + "id": 5 + }, + "pageToken": { + "type": "string", + "id": 6 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 7 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 8 + } + }, + "nested": { + "StatsAnomaliesObjective": { + "fields": { + "type": { + "type": "ModelDeploymentMonitoringObjectiveType", + "id": 1 + }, + "topFeatureCount": { + "type": "int32", + "id": 4 + } + } + } + } + }, + "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { + "fields": { + "monitoringStats": { + "rule": "repeated", + "type": "ModelMonitoringStatsAnomalies", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 } } }, - "GetBatchPredictionJobRequest": { + "GetModelDeploymentMonitoringJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } } } }, - "ListBatchPredictionJobsRequest": { + "ListModelDeploymentMonitoringJobsRequest": { "fields": { "parent": { "type": "string", @@ -27969,11 +29314,11 @@ } } }, - "ListBatchPredictionJobsResponse": { + "ListModelDeploymentMonitoringJobsResponse": { "fields": { - "batchPredictionJobs": { + "modelDeploymentMonitoringJobs": { "rule": "repeated", - "type": "BatchPredictionJob", + "type": "ModelDeploymentMonitoringJob", "id": 1 }, "nextPageToken": { @@ -27982,235 +29327,415 @@ } } }, - "DeleteBatchPredictionJobRequest": { + "UpdateModelDeploymentMonitoringJobRequest": { + "fields": { + "modelDeploymentMonitoringJob": { + "type": "ModelDeploymentMonitoringJob", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteModelDeploymentMonitoringJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } } } }, - "CancelBatchPredictionJobRequest": { + "PauseModelDeploymentMonitoringJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } } } }, - "CreateModelDeploymentMonitoringJobRequest": { + "ResumeModelDeploymentMonitoringJobRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } - }, - "modelDeploymentMonitoringJob": { - "type": "ModelDeploymentMonitoringJob", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } } } }, - "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { + "UpdateModelDeploymentMonitoringJobOperationMetadata": { "fields": { - "modelDeploymentMonitoringJob": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "NasJob": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/NasJob", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/nasJobs/{nas_job}" + }, + "fields": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "deployedModelId": { + "displayName": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "featureDisplayName": { - "type": "string", - "id": 3 - }, - "objectives": { - "rule": "repeated", - "type": "StatsAnomaliesObjective", + "nasJobSpec": { + "type": "NasJobSpec", "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "pageSize": { - "type": "int32", - "id": 5 + "nasJobOutput": { + "type": "NasJobOutput", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "pageToken": { - "type": "string", - "id": 6 + "state": { + "type": "JobState", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "startTime": { "type": "google.protobuf.Timestamp", - "id": 7 + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "endTime": { "type": "google.protobuf.Timestamp", - "id": 8 + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "error": { + "type": "google.rpc.Status", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 12 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 13 + }, + "enableRestrictedImageTraining": { + "type": "bool", + "id": 14, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "NasTrialDetail": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/NasTrialDetail", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parameters": { + "type": "string", + "id": 2 + }, + "searchTrial": { + "type": "NasTrial", + "id": 3 + }, + "trainTrial": { + "type": "NasTrial", + "id": 4 + } + } + }, + "NasJobSpec": { + "oneofs": { + "nasAlgorithmSpec": { + "oneof": [ + "multiTrialAlgorithmSpec" + ] + } + }, + "fields": { + "multiTrialAlgorithmSpec": { + "type": "MultiTrialAlgorithmSpec", + "id": 2 + }, + "resumeNasJobId": { + "type": "string", + "id": 3 + }, + "searchSpaceSpec": { + "type": "string", + "id": 1 } }, "nested": { - "StatsAnomaliesObjective": { + "MultiTrialAlgorithmSpec": { "fields": { - "type": { - "type": "ModelDeploymentMonitoringObjectiveType", + "multiTrialAlgorithm": { + "type": "MultiTrialAlgorithm", "id": 1 }, - "topFeatureCount": { - "type": "int32", - "id": 4 + "metric": { + "type": "MetricSpec", + "id": 2 + }, + "searchTrialSpec": { + "type": "SearchTrialSpec", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "trainTrialSpec": { + "type": "TrainTrialSpec", + "id": 4 + } + }, + "nested": { + "MetricSpec": { + "fields": { + "metricId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "goal": { + "type": "GoalType", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "GoalType": { + "values": { + "GOAL_TYPE_UNSPECIFIED": 0, + "MAXIMIZE": 1, + "MINIMIZE": 2 + } + } + } + }, + "SearchTrialSpec": { + "fields": { + "searchTrialJobSpec": { + "type": "CustomJobSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxTrialCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxParallelTrialCount": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxFailedTrialCount": { + "type": "int32", + "id": 4 + } + } + }, + "TrainTrialSpec": { + "fields": { + "trainTrialJobSpec": { + "type": "CustomJobSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxParallelTrialCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "frequency": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "MultiTrialAlgorithm": { + "values": { + "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": 0, + "REINFORCEMENT_LEARNING": 1, + "GRID_SEARCH": 2 + } } } } } }, - "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { - "fields": { - "monitoringStats": { - "rule": "repeated", - "type": "ModelMonitoringStatsAnomalies", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 + "NasJobOutput": { + "oneofs": { + "output": { + "oneof": [ + "multiTrialJobOutput" + ] } - } - }, - "GetModelDeploymentMonitoringJobRequest": { + }, "fields": { - "name": { - "type": "string", + "multiTrialJobOutput": { + "type": "MultiTrialJobOutput", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } - } - }, - "ListModelDeploymentMonitoringJobsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + }, + "nested": { + "MultiTrialJobOutput": { + "fields": { + "searchTrials": { + "rule": "repeated", + "type": "NasTrial", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "trainTrials": { + "rule": "repeated", + "type": "NasTrial", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } } - }, - "filter": { - "type": "string", - "id": 2 - }, - "pageSize": { - "type": "int32", - "id": 3 - }, - "pageToken": { - "type": "string", - "id": 4 - }, - "readMask": { - "type": "google.protobuf.FieldMask", - "id": 5 } } }, - "ListModelDeploymentMonitoringJobsResponse": { + "NasTrial": { "fields": { - "modelDeploymentMonitoringJobs": { - "rule": "repeated", - "type": "ModelDeploymentMonitoringJob", - "id": 1 - }, - "nextPageToken": { + "id": { "type": "string", - "id": 2 - } - } - }, - "UpdateModelDeploymentMonitoringJobRequest": { - "fields": { - "modelDeploymentMonitoringJob": { - "type": "ModelDeploymentMonitoringJob", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "state": { + "type": "State", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "DeleteModelDeploymentMonitoringJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "finalMeasurement": { + "type": "Measurement", + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "PauseModelDeploymentMonitoringJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "ResumeModelDeploymentMonitoringJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } - } - }, - "UpdateModelDeploymentMonitoringJobOperationMetadata": { - "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "REQUESTED": 1, + "ACTIVE": 2, + "STOPPING": 3, + "SUCCEEDED": 4, + "INFEASIBLE": 5 + } } } }, @@ -30681,6 +32206,34 @@ } ] }, + "CopyModel": { + "requestType": "CopyModelRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/models:copy", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,source_model", + "(google.longrunning.operation_info).response_type": "CopyModelResponse", + "(google.longrunning.operation_info).metadata_type": "CopyModelOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/models:copy", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,source_model" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "CopyModelResponse", + "metadata_type": "CopyModelOperationMetadata" + } + } + ] + }, "ImportModelEvaluation": { "requestType": "ImportModelEvaluationRequest", "responseType": "ModelEvaluation", @@ -31123,6 +32676,79 @@ "ExportModelResponse": { "fields": {} }, + "CopyModelRequest": { + "oneofs": { + "destinationModel": { + "oneof": [ + "modelId", + "parentModel" + ] + } + }, + "fields": { + "modelId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "parentModel": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "sourceModel": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 3 + } + } + }, + "CopyModelOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "CopyModelResponse": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "modelVersionId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "ImportModelEvaluationRequest": { "fields": { "parent": { @@ -31652,7 +33278,6 @@ "type": "CustomJobDetail", "id": 2, "options": { - "deprecated": true, "(google.api.field_behavior)": "OUTPUT_ONLY" } } @@ -31695,9 +33320,6 @@ } }, "CustomJobDetail": { - "options": { - "deprecated": true - }, "fields": { "job": { "type": "string", @@ -31706,6 +33328,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" } + }, + "failedJobs": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } } diff --git a/packages/google-cloud-aiplatform/samples/README.md b/packages/google-cloud-aiplatform/samples/README.md index 9b0846140031..16f54ddf6e11 100644 --- a/packages/google-cloud-aiplatform/samples/README.md +++ b/packages/google-cloud-aiplatform/samples/README.md @@ -73,26 +73,33 @@ * [Job_service.cancel_custom_job](#job_service.cancel_custom_job) * [Job_service.cancel_data_labeling_job](#job_service.cancel_data_labeling_job) * [Job_service.cancel_hyperparameter_tuning_job](#job_service.cancel_hyperparameter_tuning_job) + * [Job_service.cancel_nas_job](#job_service.cancel_nas_job) * [Job_service.create_batch_prediction_job](#job_service.create_batch_prediction_job) * [Job_service.create_custom_job](#job_service.create_custom_job) * [Job_service.create_data_labeling_job](#job_service.create_data_labeling_job) * [Job_service.create_hyperparameter_tuning_job](#job_service.create_hyperparameter_tuning_job) * [Job_service.create_model_deployment_monitoring_job](#job_service.create_model_deployment_monitoring_job) + * [Job_service.create_nas_job](#job_service.create_nas_job) * [Job_service.delete_batch_prediction_job](#job_service.delete_batch_prediction_job) * [Job_service.delete_custom_job](#job_service.delete_custom_job) * [Job_service.delete_data_labeling_job](#job_service.delete_data_labeling_job) * [Job_service.delete_hyperparameter_tuning_job](#job_service.delete_hyperparameter_tuning_job) * [Job_service.delete_model_deployment_monitoring_job](#job_service.delete_model_deployment_monitoring_job) + * [Job_service.delete_nas_job](#job_service.delete_nas_job) * [Job_service.get_batch_prediction_job](#job_service.get_batch_prediction_job) * [Job_service.get_custom_job](#job_service.get_custom_job) * [Job_service.get_data_labeling_job](#job_service.get_data_labeling_job) * [Job_service.get_hyperparameter_tuning_job](#job_service.get_hyperparameter_tuning_job) * [Job_service.get_model_deployment_monitoring_job](#job_service.get_model_deployment_monitoring_job) + * [Job_service.get_nas_job](#job_service.get_nas_job) + * [Job_service.get_nas_trial_detail](#job_service.get_nas_trial_detail) * [Job_service.list_batch_prediction_jobs](#job_service.list_batch_prediction_jobs) * [Job_service.list_custom_jobs](#job_service.list_custom_jobs) * [Job_service.list_data_labeling_jobs](#job_service.list_data_labeling_jobs) * [Job_service.list_hyperparameter_tuning_jobs](#job_service.list_hyperparameter_tuning_jobs) * [Job_service.list_model_deployment_monitoring_jobs](#job_service.list_model_deployment_monitoring_jobs) + * [Job_service.list_nas_jobs](#job_service.list_nas_jobs) + * [Job_service.list_nas_trial_details](#job_service.list_nas_trial_details) * [Job_service.pause_model_deployment_monitoring_job](#job_service.pause_model_deployment_monitoring_job) * [Job_service.resume_model_deployment_monitoring_job](#job_service.resume_model_deployment_monitoring_job) * [Job_service.search_model_deployment_monitoring_stats_anomalies](#job_service.search_model_deployment_monitoring_stats_anomalies) @@ -132,6 +139,7 @@ * [Migration_service.batch_migrate_resources](#migration_service.batch_migrate_resources) * [Migration_service.search_migratable_resources](#migration_service.search_migratable_resources) * [Model_service.batch_import_model_evaluation_slices](#model_service.batch_import_model_evaluation_slices) + * [Model_service.copy_model](#model_service.copy_model) * [Model_service.delete_model](#model_service.delete_model) * [Model_service.delete_model_version](#model_service.delete_model_version) * [Model_service.export_model](#model_service.export_model) @@ -275,26 +283,33 @@ * [Job_service.cancel_custom_job](#job_service.cancel_custom_job) * [Job_service.cancel_data_labeling_job](#job_service.cancel_data_labeling_job) * [Job_service.cancel_hyperparameter_tuning_job](#job_service.cancel_hyperparameter_tuning_job) + * [Job_service.cancel_nas_job](#job_service.cancel_nas_job) * [Job_service.create_batch_prediction_job](#job_service.create_batch_prediction_job) * [Job_service.create_custom_job](#job_service.create_custom_job) * [Job_service.create_data_labeling_job](#job_service.create_data_labeling_job) * [Job_service.create_hyperparameter_tuning_job](#job_service.create_hyperparameter_tuning_job) * [Job_service.create_model_deployment_monitoring_job](#job_service.create_model_deployment_monitoring_job) + * [Job_service.create_nas_job](#job_service.create_nas_job) * [Job_service.delete_batch_prediction_job](#job_service.delete_batch_prediction_job) * [Job_service.delete_custom_job](#job_service.delete_custom_job) * [Job_service.delete_data_labeling_job](#job_service.delete_data_labeling_job) * [Job_service.delete_hyperparameter_tuning_job](#job_service.delete_hyperparameter_tuning_job) * [Job_service.delete_model_deployment_monitoring_job](#job_service.delete_model_deployment_monitoring_job) + * [Job_service.delete_nas_job](#job_service.delete_nas_job) * [Job_service.get_batch_prediction_job](#job_service.get_batch_prediction_job) * [Job_service.get_custom_job](#job_service.get_custom_job) * [Job_service.get_data_labeling_job](#job_service.get_data_labeling_job) * [Job_service.get_hyperparameter_tuning_job](#job_service.get_hyperparameter_tuning_job) * [Job_service.get_model_deployment_monitoring_job](#job_service.get_model_deployment_monitoring_job) + * [Job_service.get_nas_job](#job_service.get_nas_job) + * [Job_service.get_nas_trial_detail](#job_service.get_nas_trial_detail) * [Job_service.list_batch_prediction_jobs](#job_service.list_batch_prediction_jobs) * [Job_service.list_custom_jobs](#job_service.list_custom_jobs) * [Job_service.list_data_labeling_jobs](#job_service.list_data_labeling_jobs) * [Job_service.list_hyperparameter_tuning_jobs](#job_service.list_hyperparameter_tuning_jobs) * [Job_service.list_model_deployment_monitoring_jobs](#job_service.list_model_deployment_monitoring_jobs) + * [Job_service.list_nas_jobs](#job_service.list_nas_jobs) + * [Job_service.list_nas_trial_details](#job_service.list_nas_trial_details) * [Job_service.pause_model_deployment_monitoring_job](#job_service.pause_model_deployment_monitoring_job) * [Job_service.resume_model_deployment_monitoring_job](#job_service.resume_model_deployment_monitoring_job) * [Job_service.search_model_deployment_monitoring_stats_anomalies](#job_service.search_model_deployment_monitoring_stats_anomalies) @@ -334,6 +349,7 @@ * [Migration_service.batch_migrate_resources](#migration_service.batch_migrate_resources) * [Migration_service.search_migratable_resources](#migration_service.search_migratable_resources) * [Model_service.batch_import_model_evaluation_slices](#model_service.batch_import_model_evaluation_slices) + * [Model_service.copy_model](#model_service.copy_model) * [Model_service.delete_model](#model_service.delete_model) * [Model_service.delete_model_version](#model_service.delete_model_version) * [Model_service.export_model](#model_service.export_model) @@ -1466,6 +1482,23 @@ __Usage:__ +### Job_service.cancel_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js` + + +----- + + + + ### Job_service.create_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_batch_prediction_job.js). @@ -1551,6 +1584,23 @@ __Usage:__ +### Job_service.create_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js` + + +----- + + + + ### Job_service.delete_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_batch_prediction_job.js). @@ -1636,6 +1686,23 @@ __Usage:__ +### Job_service.delete_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js` + + +----- + + + + ### Job_service.get_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_batch_prediction_job.js). @@ -1721,6 +1788,40 @@ __Usage:__ +### Job_service.get_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js` + + +----- + + + + +### Job_service.get_nas_trial_detail + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js` + + +----- + + + + ### Job_service.list_batch_prediction_jobs View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js). @@ -1806,6 +1907,40 @@ __Usage:__ +### Job_service.list_nas_jobs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js` + + +----- + + + + +### Job_service.list_nas_trial_details + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js` + + +----- + + + + ### Job_service.pause_model_deployment_monitoring_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js). @@ -2469,6 +2604,23 @@ __Usage:__ +### Model_service.copy_model + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js` + + +----- + + + + ### Model_service.delete_model View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js). @@ -4900,6 +5052,23 @@ __Usage:__ +### Job_service.cancel_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js` + + +----- + + + + ### Job_service.create_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_batch_prediction_job.js). @@ -4985,6 +5154,23 @@ __Usage:__ +### Job_service.create_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js` + + +----- + + + + ### Job_service.delete_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js). @@ -5070,6 +5256,23 @@ __Usage:__ +### Job_service.delete_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js` + + +----- + + + + ### Job_service.get_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_batch_prediction_job.js). @@ -5155,6 +5358,40 @@ __Usage:__ +### Job_service.get_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js` + + +----- + + + + +### Job_service.get_nas_trial_detail + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js` + + +----- + + + + ### Job_service.list_batch_prediction_jobs View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js). @@ -5240,6 +5477,40 @@ __Usage:__ +### Job_service.list_nas_jobs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js` + + +----- + + + + +### Job_service.list_nas_trial_details + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js` + + +----- + + + + ### Job_service.pause_model_deployment_monitoring_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js). @@ -5903,6 +6174,23 @@ __Usage:__ +### Model_service.copy_model + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js` + + +----- + + + + ### Model_service.delete_model View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js). diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js new file mode 100644 index 000000000000..548f98a1715c --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_JobService_CancelNasJob_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasJob to cancel. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callCancelNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.cancelNasJob(request); + console.log(response); + } + + callCancelNasJob(); + // [END aiplatform_v1_generated_JobService_CancelNasJob_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js new file mode 100644 index 000000000000..4f32ae2dc940 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js @@ -0,0 +1,67 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, nasJob) { + // [START aiplatform_v1_generated_JobService_CreateNasJob_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The NasJob to create. + */ + // const nasJob = {} + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callCreateNasJob() { + // Construct request + const request = { + parent, + nasJob, + }; + + // Run request + const response = await aiplatformClient.createNasJob(request); + console.log(response); + } + + callCreateNasJob(); + // [END aiplatform_v1_generated_JobService_CreateNasJob_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js new file mode 100644 index 000000000000..2058f9d5c881 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js @@ -0,0 +1,64 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_JobService_DeleteNasJob_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callDeleteNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteNasJob(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteNasJob(); + // [END aiplatform_v1_generated_JobService_DeleteNasJob_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js new file mode 100644 index 000000000000..e036438f2157 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_JobService_GetNasJob_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callGetNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getNasJob(request); + console.log(response); + } + + callGetNasJob(); + // [END aiplatform_v1_generated_JobService_GetNasJob_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js new file mode 100644 index 000000000000..2a523f74b231 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_JobService_GetNasTrialDetail_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callGetNasTrialDetail() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getNasTrialDetail(request); + console.log(response); + } + + callGetNasTrialDetail(); + // [END aiplatform_v1_generated_JobService_GetNasTrialDetail_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js new file mode 100644 index 000000000000..85465e89e381 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js @@ -0,0 +1,100 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_JobService_ListNasJobs_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * The standard list filter. + * Supported fields: + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * Some examples of using the filter are: + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + */ + // const filter = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + * Typically obtained via + * ListNasJobsResponse.next_page_token google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token + * of the previous + * JobService.ListNasJobs google.cloud.aiplatform.v1.JobService.ListNasJobs + * call. + */ + // const pageToken = 'abc123' + /** + * Mask specifying which fields to read. + */ + // const readMask = {} + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callListNasJobs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listNasJobsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNasJobs(); + // [END aiplatform_v1_generated_JobService_ListNasJobs_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js new file mode 100644 index 000000000000..fe30d2bcdc96 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_JobService_ListNasTrialDetails_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const parent = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + * Typically obtained via + * ListNasTrialDetailsResponse.next_page_token google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token + * of the previous + * JobService.ListNasTrialDetails google.cloud.aiplatform.v1.JobService.ListNasTrialDetails + * call. + */ + // const pageToken = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callListNasTrialDetails() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listNasTrialDetailsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNasTrialDetails(); + // [END aiplatform_v1_generated_JobService_ListNasTrialDetails_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js new file mode 100644 index 000000000000..bf986522f5b6 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js @@ -0,0 +1,88 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, sourceModel) { + // [START aiplatform_v1_generated_ModelService_CopyModel_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + */ + // const modelId = 'abc123' + /** + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + // const parentModel = 'abc123' + /** + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + // const sourceModel = 'abc123' + /** + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + */ + // const encryptionSpec = {} + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callCopyModel() { + // Construct request + const request = { + parent, + sourceModel, + }; + + // Run request + const [operation] = await aiplatformClient.copyModel(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCopyModel(); + // [END aiplatform_v1_generated_ModelService_CopyModel_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json index 7445286f1aea..bf82ad27f41b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -3451,6 +3451,314 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_JobService_CreateNasJob_async", + "title": "DatasetService createNasJob Sample", + "origin": "API_DEFINITION", + "description": " Creates a NasJob", + "canonical": true, + "file": "job_service.create_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.CreateNasJob", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "nas_job", + "type": ".google.cloud.aiplatform.v1.NasJob" + } + ], + "resultType": ".google.cloud.aiplatform.v1.NasJob", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "CreateNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.CreateNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_GetNasJob_async", + "title": "DatasetService getNasJob Sample", + "origin": "API_DEFINITION", + "description": " Gets a NasJob", + "canonical": true, + "file": "job_service.get_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.GetNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.NasJob", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "GetNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.GetNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_ListNasJobs_async", + "title": "DatasetService listNasJobs Sample", + "origin": "API_DEFINITION", + "description": " Lists NasJobs in a Location.", + "canonical": true, + "file": "job_service.list_nas_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 92, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNasJobs", + "fullName": "google.cloud.aiplatform.v1.JobService.ListNasJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.aiplatform.v1.ListNasJobsResponse", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "ListNasJobs", + "fullName": "google.cloud.aiplatform.v1.JobService.ListNasJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_DeleteNasJob_async", + "title": "DatasetService deleteNasJob Sample", + "origin": "API_DEFINITION", + "description": " Deletes a NasJob.", + "canonical": true, + "file": "job_service.delete_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.DeleteNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "DeleteNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.DeleteNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_CancelNasJob_async", + "title": "DatasetService cancelNasJob Sample", + "origin": "API_DEFINITION", + "description": " Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the NasJob is not deleted; instead it becomes a job with a [NasJob.error][google.cloud.aiplatform.v1.NasJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [NasJob.state][google.cloud.aiplatform.v1.NasJob.state] is set to `CANCELLED`.", + "canonical": true, + "file": "job_service.cancel_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.CancelNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "CancelNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.CancelNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_GetNasTrialDetail_async", + "title": "DatasetService getNasTrialDetail Sample", + "origin": "API_DEFINITION", + "description": " Gets a NasTrialDetail.", + "canonical": true, + "file": "job_service.get_nas_trial_detail.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNasTrialDetail", + "fullName": "google.cloud.aiplatform.v1.JobService.GetNasTrialDetail", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.NasTrialDetail", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "GetNasTrialDetail", + "fullName": "google.cloud.aiplatform.v1.JobService.GetNasTrialDetail", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_ListNasTrialDetails_async", + "title": "DatasetService listNasTrialDetails Sample", + "origin": "API_DEFINITION", + "description": " List top NasTrialDetails of a NasJob.", + "canonical": true, + "file": "job_service.list_nas_trial_details.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNasTrialDetails", + "fullName": "google.cloud.aiplatform.v1.JobService.ListNasTrialDetails", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "ListNasTrialDetails", + "fullName": "google.cloud.aiplatform.v1.JobService.ListNasTrialDetails", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async", "title": "DatasetService createBatchPredictionJob Sample", @@ -6051,6 +6359,62 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_ModelService_CopyModel_async", + "title": "DatasetService copyModel Sample", + "origin": "API_DEFINITION", + "description": " Copies an already existing Vertex AI Model into the specified Location. The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.", + "canonical": true, + "file": "model_service.copy_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CopyModel", + "fullName": "google.cloud.aiplatform.v1.ModelService.CopyModel", + "async": true, + "parameters": [ + { + "name": "model_id", + "type": "TYPE_STRING" + }, + { + "name": "parent_model", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "source_model", + "type": "TYPE_STRING" + }, + { + "name": "encryption_spec", + "type": ".google.cloud.aiplatform.v1.EncryptionSpec" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" + }, + "method": { + "shortName": "CopyModel", + "fullName": "google.cloud.aiplatform.v1.ModelService.CopyModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_ModelService_ImportModelEvaluation_async", "title": "DatasetService importModelEvaluation Sample", diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js new file mode 100644 index 000000000000..bae9b3dbd728 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1beta1_generated_JobService_CancelNasJob_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasJob to cancel. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callCancelNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.cancelNasJob(request); + console.log(response); + } + + callCancelNasJob(); + // [END aiplatform_v1beta1_generated_JobService_CancelNasJob_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js new file mode 100644 index 000000000000..f615ea3bfa71 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js @@ -0,0 +1,67 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, nasJob) { + // [START aiplatform_v1beta1_generated_JobService_CreateNasJob_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The NasJob to create. + */ + // const nasJob = {} + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callCreateNasJob() { + // Construct request + const request = { + parent, + nasJob, + }; + + // Run request + const response = await aiplatformClient.createNasJob(request); + console.log(response); + } + + callCreateNasJob(); + // [END aiplatform_v1beta1_generated_JobService_CreateNasJob_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js new file mode 100644 index 000000000000..b46633706a57 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js @@ -0,0 +1,64 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1beta1_generated_JobService_DeleteNasJob_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callDeleteNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteNasJob(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteNasJob(); + // [END aiplatform_v1beta1_generated_JobService_DeleteNasJob_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js new file mode 100644 index 000000000000..f6e064700dd3 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1beta1_generated_JobService_GetNasJob_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callGetNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getNasJob(request); + console.log(response); + } + + callGetNasJob(); + // [END aiplatform_v1beta1_generated_JobService_GetNasJob_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js new file mode 100644 index 000000000000..d87f1ee1a9ef --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1beta1_generated_JobService_GetNasTrialDetail_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callGetNasTrialDetail() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getNasTrialDetail(request); + console.log(response); + } + + callGetNasTrialDetail(); + // [END aiplatform_v1beta1_generated_JobService_GetNasTrialDetail_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js new file mode 100644 index 000000000000..46ead708cc3b --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js @@ -0,0 +1,100 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1beta1_generated_JobService_ListNasJobs_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * The standard list filter. + * Supported fields: + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * Some examples of using the filter are: + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + */ + // const filter = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + * Typically obtained via + * ListNasJobsResponse.next_page_token google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token + * of the previous + * JobService.ListNasJobs google.cloud.aiplatform.v1beta1.JobService.ListNasJobs + * call. + */ + // const pageToken = 'abc123' + /** + * Mask specifying which fields to read. + */ + // const readMask = {} + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callListNasJobs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listNasJobsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNasJobs(); + // [END aiplatform_v1beta1_generated_JobService_ListNasJobs_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js new file mode 100644 index 000000000000..7a957d48caf3 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1beta1_generated_JobService_ListNasTrialDetails_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const parent = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + * Typically obtained via + * ListNasTrialDetailsResponse.next_page_token google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token + * of the previous + * JobService.ListNasTrialDetails google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails + * call. + */ + // const pageToken = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callListNasTrialDetails() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listNasTrialDetailsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNasTrialDetails(); + // [END aiplatform_v1beta1_generated_JobService_ListNasTrialDetails_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js new file mode 100644 index 000000000000..05dab3403134 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js @@ -0,0 +1,88 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, sourceModel) { + // [START aiplatform_v1beta1_generated_ModelService_CopyModel_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + */ + // const modelId = 'abc123' + /** + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + // const parentModel = 'abc123' + /** + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + // const sourceModel = 'abc123' + /** + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + */ + // const encryptionSpec = {} + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callCopyModel() { + // Construct request + const request = { + parent, + sourceModel, + }; + + // Run request + const [operation] = await aiplatformClient.copyModel(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCopyModel(); + // [END aiplatform_v1beta1_generated_ModelService_CopyModel_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index d1dc57a2f17b..2e8ffa5b5d9a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -3719,6 +3719,314 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_CreateNasJob_async", + "title": "DatasetService createNasJob Sample", + "origin": "API_DEFINITION", + "description": " Creates a NasJob", + "canonical": true, + "file": "job_service.create_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateNasJob", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "nas_job", + "type": ".google.cloud.aiplatform.v1beta1.NasJob" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.NasJob", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "CreateNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_GetNasJob_async", + "title": "DatasetService getNasJob Sample", + "origin": "API_DEFINITION", + "description": " Gets a NasJob", + "canonical": true, + "file": "job_service.get_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.NasJob", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "GetNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_ListNasJobs_async", + "title": "DatasetService listNasJobs Sample", + "origin": "API_DEFINITION", + "description": " Lists NasJobs in a Location.", + "canonical": true, + "file": "job_service.list_nas_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 92, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNasJobs", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.ListNasJobsResponse", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "ListNasJobs", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_DeleteNasJob_async", + "title": "DatasetService deleteNasJob Sample", + "origin": "API_DEFINITION", + "description": " Deletes a NasJob.", + "canonical": true, + "file": "job_service.delete_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "DeleteNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_CancelNasJob_async", + "title": "DatasetService cancelNasJob Sample", + "origin": "API_DEFINITION", + "description": " Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetNasJob][google.cloud.aiplatform.v1beta1.JobService.GetNasJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the NasJob is not deleted; instead it becomes a job with a [NasJob.error][google.cloud.aiplatform.v1beta1.NasJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [NasJob.state][google.cloud.aiplatform.v1beta1.NasJob.state] is set to `CANCELLED`.", + "canonical": true, + "file": "job_service.cancel_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "CancelNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_GetNasTrialDetail_async", + "title": "DatasetService getNasTrialDetail Sample", + "origin": "API_DEFINITION", + "description": " Gets a NasTrialDetail.", + "canonical": true, + "file": "job_service.get_nas_trial_detail.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNasTrialDetail", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetail", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.NasTrialDetail", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "GetNasTrialDetail", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetail", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_ListNasTrialDetails_async", + "title": "DatasetService listNasTrialDetails Sample", + "origin": "API_DEFINITION", + "description": " List top NasTrialDetails of a NasJob.", + "canonical": true, + "file": "job_service.list_nas_trial_details.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNasTrialDetails", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "ListNasTrialDetails", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async", "title": "DatasetService createBatchPredictionJob Sample", @@ -6359,6 +6667,62 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_ModelService_CopyModel_async", + "title": "DatasetService copyModel Sample", + "origin": "API_DEFINITION", + "description": " Copies an already existing Vertex AI Model into the specified Location. The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for [Model.metadata][google.cloud.aiplatform.v1beta1.Model.metadata] content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.", + "canonical": true, + "file": "model_service.copy_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CopyModel", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.CopyModel", + "async": true, + "parameters": [ + { + "name": "model_id", + "type": "TYPE_STRING" + }, + { + "name": "parent_model", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "source_model", + "type": "TYPE_STRING" + }, + { + "name": "encryption_spec", + "type": ".google.cloud.aiplatform.v1beta1.EncryptionSpec" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" + }, + "method": { + "shortName": "CopyModel", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.CopyModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_ModelService_ImportModelEvaluation_async", "title": "DatasetService importModelEvaluation Sample", diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts index cea58dfc27d8..5549c79372d7 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -264,6 +264,12 @@ export class DatasetServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5543,6 +5549,130 @@ export class DatasetServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts index 3b0e57e81781..c1436a4184eb 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts @@ -263,6 +263,12 @@ export class EndpointServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4468,6 +4474,130 @@ export class EndpointServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts index 1aafccd6e4f4..37908392b9c4 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts @@ -256,6 +256,12 @@ export class FeaturestoreOnlineServingServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -2411,6 +2417,130 @@ export class FeaturestoreOnlineServingServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts index c81949c74f10..8e6b504d7af1 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts @@ -263,6 +263,12 @@ export class FeaturestoreServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -7081,6 +7087,130 @@ export class FeaturestoreServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json index 6797724fbe11..15ee64fb9e95 100644 --- a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json @@ -752,6 +752,26 @@ "cancelHyperparameterTuningJob" ] }, + "CreateNasJob": { + "methods": [ + "createNasJob" + ] + }, + "GetNasJob": { + "methods": [ + "getNasJob" + ] + }, + "CancelNasJob": { + "methods": [ + "cancelNasJob" + ] + }, + "GetNasTrialDetail": { + "methods": [ + "getNasTrialDetail" + ] + }, "CreateBatchPredictionJob": { "methods": [ "createBatchPredictionJob" @@ -802,6 +822,11 @@ "deleteHyperparameterTuningJob" ] }, + "DeleteNasJob": { + "methods": [ + "deleteNasJob" + ] + }, "DeleteBatchPredictionJob": { "methods": [ "deleteBatchPredictionJob" @@ -838,6 +863,20 @@ "listHyperparameterTuningJobsAsync" ] }, + "ListNasJobs": { + "methods": [ + "listNasJobs", + "listNasJobsStream", + "listNasJobsAsync" + ] + }, + "ListNasTrialDetails": { + "methods": [ + "listNasTrialDetails", + "listNasTrialDetailsStream", + "listNasTrialDetailsAsync" + ] + }, "ListBatchPredictionJobs": { "methods": [ "listBatchPredictionJobs", @@ -909,6 +948,26 @@ "cancelHyperparameterTuningJob" ] }, + "CreateNasJob": { + "methods": [ + "createNasJob" + ] + }, + "GetNasJob": { + "methods": [ + "getNasJob" + ] + }, + "CancelNasJob": { + "methods": [ + "cancelNasJob" + ] + }, + "GetNasTrialDetail": { + "methods": [ + "getNasTrialDetail" + ] + }, "CreateBatchPredictionJob": { "methods": [ "createBatchPredictionJob" @@ -959,6 +1018,11 @@ "deleteHyperparameterTuningJob" ] }, + "DeleteNasJob": { + "methods": [ + "deleteNasJob" + ] + }, "DeleteBatchPredictionJob": { "methods": [ "deleteBatchPredictionJob" @@ -995,6 +1059,20 @@ "listHyperparameterTuningJobsAsync" ] }, + "ListNasJobs": { + "methods": [ + "listNasJobs", + "listNasJobsStream", + "listNasJobsAsync" + ] + }, + "ListNasTrialDetails": { + "methods": [ + "listNasTrialDetails", + "listNasTrialDetailsStream", + "listNasTrialDetailsAsync" + ] + }, "ListBatchPredictionJobs": { "methods": [ "listBatchPredictionJobs", @@ -1472,6 +1550,11 @@ "exportModel" ] }, + "CopyModel": { + "methods": [ + "copyModel" + ] + }, "ListModels": { "methods": [ "listModels", @@ -1560,6 +1643,11 @@ "exportModel" ] }, + "CopyModel": { + "methods": [ + "copyModel" + ] + }, "ListModels": { "methods": [ "listModels", diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts index bf60beb7684e..f1b5a5877d51 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts @@ -263,6 +263,12 @@ export class IndexEndpointServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4577,6 +4583,130 @@ export class IndexEndpointServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts index e3f052483352..213ea48d2009 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts @@ -263,6 +263,12 @@ export class IndexServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4298,6 +4304,130 @@ export class IndexServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts index 99dc8ba806c1..b34dfda7e129 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts @@ -263,6 +263,12 @@ export class JobServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -314,6 +320,16 @@ export class JobServiceClient { 'nextPageToken', 'hyperparameterTuningJobs' ), + listNasJobs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'nasJobs' + ), + listNasTrialDetails: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'nasTrialDetails' + ), listBatchPredictionJobs: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -1323,6 +1339,12 @@ export class JobServiceClient { const deleteHyperparameterTuningJobMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const deleteNasJobResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteNasJobMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteOperationMetadata' + ) as gax.protobuf.Type; const deleteBatchPredictionJobResponse = protoFilesRoot.lookup( '.google.protobuf.Empty' ) as gax.protobuf.Type; @@ -1364,6 +1386,11 @@ export class JobServiceClient { deleteHyperparameterTuningJobMetadata ) ), + deleteNasJob: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteNasJobResponse.decode.bind(deleteNasJobResponse), + deleteNasJobMetadata.decode.bind(deleteNasJobMetadata) + ), deleteBatchPredictionJob: new this._gaxModule.LongrunningDescriptor( this.operationsClient, deleteBatchPredictionJobResponse.decode.bind( @@ -1460,6 +1487,13 @@ export class JobServiceClient { 'listHyperparameterTuningJobs', 'deleteHyperparameterTuningJob', 'cancelHyperparameterTuningJob', + 'createNasJob', + 'getNasJob', + 'listNasJobs', + 'deleteNasJob', + 'cancelNasJob', + 'getNasTrialDetail', + 'listNasTrialDetails', 'createBatchPredictionJob', 'getBatchPredictionJob', 'listBatchPredictionJobs', @@ -1537,7 +1571,10 @@ export class JobServiceClient { * @returns {string[]} List of default scopes. */ static get scopes() { - return ['https://www.googleapis.com/auth/cloud-platform']; + return [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + ]; } getProjectId(): Promise; @@ -2463,85 +2500,72 @@ export class JobServiceClient { ); } /** - * Creates a BatchPredictionJob. A BatchPredictionJob once created will - * right away be attempted to start. + * Creates a NasJob * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to create the - * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` - * @param {google.cloud.aiplatform.v1.BatchPredictionJob} request.batchPredictionJob - * Required. The BatchPredictionJob to create. + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1.NasJob} request.nasJob + * Required. The NasJob to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1.BatchPredictionJob}. + * The first element of the array is an object representing [NasJob]{@link google.cloud.aiplatform.v1.NasJob}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.create_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.create_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_CreateNasJob_async */ - createBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, + createNasJob( + request?: protos.google.cloud.aiplatform.v1.ICreateNasJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | undefined, {} | undefined ] >; - createBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, + createNasJob( + request: protos.google.cloud.aiplatform.v1.ICreateNasJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): void; - createBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, + createNasJob( + request: protos.google.cloud.aiplatform.v1.ICreateNasJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): void; - createBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, + createNasJob( + request?: protos.google.cloud.aiplatform.v1.ICreateNasJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1.INasJob, + | protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | undefined, {} | undefined ] > | void { @@ -2561,90 +2585,74 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.createBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.createNasJob(request, options, callback); } /** - * Gets a BatchPredictionJob + * Gets a NasJob * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob resource. + * Required. The name of the NasJob resource. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1.BatchPredictionJob}. + * The first element of the array is an object representing [NasJob]{@link google.cloud.aiplatform.v1.NasJob}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.get_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_GetBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.get_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_GetNasJob_async */ - getBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, + getNasJob( + request?: protos.google.cloud.aiplatform.v1.IGetNasJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | undefined, {} | undefined ] >; - getBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, + getNasJob( + request: protos.google.cloud.aiplatform.v1.IGetNasJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): void; - getBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, + getNasJob( + request: protos.google.cloud.aiplatform.v1.IGetNasJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): void; - getBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, + getNasJob( + request?: protos.google.cloud.aiplatform.v1.IGetNasJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1.INasJob, + | protos.google.cloud.aiplatform.v1.IGetNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | undefined, {} | undefined ] > | void { @@ -2664,28 +2672,29 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getBatchPredictionJob(request, options, callback); + return this.innerApiCalls.getNasJob(request, options, callback); } /** - * Cancels a BatchPredictionJob. - * - * Starts asynchronous cancellation on the BatchPredictionJob. The server - * makes the best effort to cancel the job, but success is not + * Cancels a NasJob. + * Starts asynchronous cancellation on the NasJob. The server + * makes a best effort to cancel the job, but success is not * guaranteed. Clients can use - * {@link google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob|JobService.GetBatchPredictionJob} - * or other methods to check whether the cancellation succeeded or whether the - * job completed despite cancellation. On a successful cancellation, - * the BatchPredictionJob is not deleted;instead its - * {@link google.cloud.aiplatform.v1.BatchPredictionJob.state|BatchPredictionJob.state} - * is set to `CANCELLED`. Any files already outputted by the job are not - * deleted. + * {@link google.cloud.aiplatform.v1.JobService.GetNasJob|JobService.GetNasJob} or + * other methods to check whether the cancellation succeeded or whether the + * job completed despite cancellation. On successful cancellation, + * the NasJob is not deleted; instead it becomes a job with + * a {@link google.cloud.aiplatform.v1.NasJob.error|NasJob.error} value with a + * {@link google.rpc.Status.code|google.rpc.Status.code} of 1, corresponding to + * `Code.CANCELLED`, and + * {@link google.cloud.aiplatform.v1.NasJob.state|NasJob.state} is set to + * `CANCELLED`. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob to cancel. + * Required. The name of the NasJob to cancel. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2693,68 +2702,56 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.cancel_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_CancelBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.cancel_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_CancelNasJob_async */ - cancelBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request?: protos.google.cloud.aiplatform.v1.ICancelNasJobRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | undefined, {} | undefined ] >; - cancelBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request: protos.google.cloud.aiplatform.v1.ICancelNasJobRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): void; - cancelBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request: protos.google.cloud.aiplatform.v1.ICancelNasJobRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): void; - cancelBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request?: protos.google.cloud.aiplatform.v1.ICancelNasJobRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | undefined, {} | undefined ] > | void { @@ -2774,92 +2771,80 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.cancelBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.cancelNasJob(request, options, callback); } /** - * Creates a ModelDeploymentMonitoringJob. It will run periodically on a - * configured interval. + * Gets a NasTrialDetail. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The parent of the ModelDeploymentMonitoringJob. - * Format: `projects/{project}/locations/{location}` - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob - * Required. The ModelDeploymentMonitoringJob to create + * @param {string} request.name + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob}. + * The first element of the array is an object representing [NasTrialDetail]{@link google.cloud.aiplatform.v1.NasTrialDetail}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.create_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_CreateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.get_nas_trial_detail.js + * region_tag:aiplatform_v1_generated_JobService_GetNasTrialDetail_async */ - createModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request?: protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - ( - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasTrialDetail, + protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | undefined, {} | undefined ] >; - createModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request: protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): void; - createModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request: protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, callback: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): void; - createModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request?: protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - ( - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasTrialDetail, + protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | undefined, {} | undefined ] > | void { @@ -2876,91 +2861,89 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.getNasTrialDetail(request, options, callback); } /** - * Gets a ModelDeploymentMonitoringJob. + * Creates a BatchPredictionJob. A BatchPredictionJob once created will + * right away be attempted to start. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob. - * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param {string} request.parent + * Required. The resource name of the Location to create the + * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1.BatchPredictionJob} request.batchPredictionJob + * Required. The BatchPredictionJob to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob}. + * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1.BatchPredictionJob}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.get_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_GetModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.create_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async */ - getModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | undefined ), {} | undefined ] >; - getModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - getModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - getModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | undefined ), {} | undefined @@ -2979,94 +2962,91 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.getModelDeploymentMonitoringJob( + return this.innerApiCalls.createBatchPredictionJob( request, options, callback ); } /** - * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server - * makes a best effort to cancel the job. Will mark - * {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state|ModelDeploymentMonitoringJob.state} - * to 'PAUSED'. + * Gets a BatchPredictionJob * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob to pause. + * Required. The name of the BatchPredictionJob resource. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1.BatchPredictionJob}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_PauseModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.get_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_GetBatchPredictionJob_async */ - pauseModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | undefined ), {} | undefined ] >; - pauseModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - pauseModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - pauseModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | undefined ), {} | undefined @@ -3088,23 +3068,28 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.pauseModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.getBatchPredictionJob(request, options, callback); } /** - * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from - * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be - * resumed. + * Cancels a BatchPredictionJob. + * + * Starts asynchronous cancellation on the BatchPredictionJob. The server + * makes the best effort to cancel the job, but success is not + * guaranteed. Clients can use + * {@link google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob|JobService.GetBatchPredictionJob} + * or other methods to check whether the cancellation succeeded or whether the + * job completed despite cancellation. On a successful cancellation, + * the BatchPredictionJob is not deleted;instead its + * {@link google.cloud.aiplatform.v1.BatchPredictionJob.state|BatchPredictionJob.state} + * is set to `CANCELLED`. Any files already outputted by the job are not + * deleted. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob to resume. + * Required. The name of the BatchPredictionJob to cancel. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3112,57 +3097,57 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_ResumeModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.cancel_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_CancelBatchPredictionJob_async */ - resumeModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | undefined ), {} | undefined ] >; - resumeModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - resumeModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - resumeModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined @@ -3171,7 +3156,7 @@ export class JobServiceClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | undefined ), {} | undefined @@ -3193,97 +3178,92 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.resumeModelDeploymentMonitoringJob( + return this.innerApiCalls.cancelBatchPredictionJob( request, options, callback ); } - /** - * Deletes a CustomJob. + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a + * configured interval. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomJob resource to be deleted. - * Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @param {string} request.parent + * Required. The parent of the ModelDeploymentMonitoringJob. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob + * Required. The ModelDeploymentMonitoringJob to create * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. + * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_custom_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteCustomJob_async + * @example include:samples/generated/v1/job_service.create_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_CreateModelDeploymentMonitoringJob_async */ - deleteCustomJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteCustomJob( - request: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCustomJob( - request: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCustomJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3300,130 +3280,93 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.deleteCustomJob(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteCustomJob()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_custom_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteCustomJob_async - */ - async checkDeleteCustomJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteCustomJob, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.createModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - >; } /** - * Deletes a DataLabelingJob. + * Gets a ModelDeploymentMonitoringJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the DataLabelingJob to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob. * Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. + * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async + * @example include:samples/generated/v1/job_service.get_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_GetModelDeploymentMonitoringJob_async */ - deleteDataLabelingJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteDataLabelingJob( - request: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteDataLabelingJob( - request: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteDataLabelingJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3443,127 +3386,93 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteDataLabelingJob(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteDataLabelingJob()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async - */ - async checkDeleteDataLabelingJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteDataLabelingJob, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.getModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - >; } /** - * Deletes a HyperparameterTuningJob. + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server + * makes a best effort to cancel the job. Will mark + * {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state|ModelDeploymentMonitoringJob.state} + * to 'PAUSED'. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob to pause. * Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async + * @example include:samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_PauseModelDeploymentMonitoringJob_async */ - deleteHyperparameterTuningJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteHyperparameterTuningJob( - request: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteHyperparameterTuningJob( - request: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteHyperparameterTuningJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3583,57 +3492,127 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteHyperparameterTuningJob( + return this.innerApiCalls.pauseModelDeploymentMonitoringJob( request, options, callback ); } /** - * Check the status of the long running operation returned by `deleteHyperparameterTuningJob()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from + * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be + * resumed. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the ModelDeploymentMonitoringJob to resume. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async + * @example include:samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_ResumeModelDeploymentMonitoringJob_async */ - async checkDeleteHyperparameterTuningJobProgress( - name: string + resumeModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + options?: CallOptions ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteHyperparameterTuningJob, - this._gaxModule.createDefaultBackoffSettings() + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | undefined + ), + {} | undefined + ] + >; + resumeModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + resumeModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + resumeModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.resumeModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - >; } + /** - * Deletes a BatchPredictionJob. Can only be called on jobs that already - * finished. + * Deletes a CustomJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob resource to be deleted. + * Required. The name of the CustomJob resource to be deleted. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/customJobs/{custom_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3643,11 +3622,11 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.delete_custom_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteCustomJob_async */ - deleteBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + deleteCustomJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, options?: CallOptions ): Promise< [ @@ -3659,8 +3638,8 @@ export class JobServiceClient { {} | undefined ] >; - deleteBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + deleteCustomJob( + request: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, options: CallOptions, callback: Callback< LROperation< @@ -3671,8 +3650,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + deleteCustomJob( + request: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -3682,8 +3661,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + deleteCustomJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3728,14 +3707,10 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.deleteCustomJob(request, options, callback); } /** - * Check the status of the long running operation returned by `deleteBatchPredictionJob()`. + * Check the status of the long running operation returned by `deleteCustomJob()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. @@ -3743,10 +3718,10 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.delete_custom_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteCustomJob_async */ - async checkDeleteBatchPredictionJobProgress( + async checkDeleteCustomJobProgress( name: string ): Promise< LROperation< @@ -3761,7 +3736,7 @@ export class JobServiceClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.deleteBatchPredictionJob, + this.descriptors.longrunning.deleteCustomJob, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< @@ -3770,40 +3745,14 @@ export class JobServiceClient { >; } /** - * Updates a ModelDeploymentMonitoringJob. + * Deletes a DataLabelingJob. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob - * Required. The model monitoring configuration which replaces the resource on - * the server. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The update mask is used to specify the fields to be overwritten - * in the ModelDeploymentMonitoringJob resource by the update. The fields - * specified in the update_mask are relative to the resource, not the full - * request. A field will be overwritten if it is in the mask. If the user does - * not provide a mask then only the non-empty fields present in the request - * will be overwritten. Set the update_mask to `*` to override all fields. For - * the objective config, the user can either provide the update mask for - * model_deployment_monitoring_objective_configs or any combination of its - * nested fields, such as: - * model_deployment_monitoring_objective_configs.objective_config.training_dataset. - * - * Updatable fields: - * - * * `display_name` - * * `model_deployment_monitoring_schedule_config` - * * `model_monitoring_alert_config` - * * `logging_sampling_strategy` - * * `labels` - * * `log_ttl` - * * `enable_monitoring_pipeline_logs` - * . and - * * `model_deployment_monitoring_objective_configs` - * . or - * * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` - * * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` - * * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` + * @param {string} request.name + * Required. The name of the DataLabelingJob to be deleted. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3813,61 +3762,61 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.delete_data_labeling_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async */ - updateModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined ] >; - updateModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined >, callback?: Callback< LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined @@ -3875,8 +3824,8 @@ export class JobServiceClient { ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined @@ -3895,18 +3844,13 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'model_deployment_monitoring_job.name': - request.modelDeploymentMonitoringJob!.name ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.updateModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.deleteDataLabelingJob(request, options, callback); } /** - * Check the status of the long running operation returned by `updateModelDeploymentMonitoringJob()`. + * Check the status of the long running operation returned by `deleteDataLabelingJob()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. @@ -3914,15 +3858,15 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.delete_data_labeling_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async */ - async checkUpdateModelDeploymentMonitoringJobProgress( + async checkDeleteDataLabelingJobProgress( name: string ): Promise< LROperation< - protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { const request = @@ -3932,23 +3876,23 @@ export class JobServiceClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.updateModelDeploymentMonitoringJob, + this.descriptors.longrunning.deleteDataLabelingJob, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata >; } /** - * Deletes a ModelDeploymentMonitoringJob. + * Deletes a HyperparameterTuningJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the model monitoring job to delete. + * Required. The name of the HyperparameterTuningJob resource to be deleted. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3958,11 +3902,11 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async */ - deleteModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + deleteHyperparameterTuningJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, options?: CallOptions ): Promise< [ @@ -3974,8 +3918,8 @@ export class JobServiceClient { {} | undefined ] >; - deleteModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + deleteHyperparameterTuningJob( + request: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, options: CallOptions, callback: Callback< LROperation< @@ -3986,8 +3930,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + deleteHyperparameterTuningJob( + request: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -3997,8 +3941,152 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + deleteHyperparameterTuningJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteHyperparameterTuningJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteHyperparameterTuningJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async + */ + async checkDeleteHyperparameterTuningJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteHyperparameterTuningJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Deletes a NasJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/job_service.delete_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteNasJob_async + */ + deleteNasJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteNasJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteNasJob( + request: protos.google.cloud.aiplatform.v1.IDeleteNasJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNasJob( + request: protos.google.cloud.aiplatform.v1.IDeleteNasJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNasJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteNasJobRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4028,70 +4116,1085 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteNasJob(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteNasJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/job_service.delete_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteNasJob_async + */ + async checkDeleteNasJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteNasJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Deletes a BatchPredictionJob. Can only be called on jobs that already + * finished. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the BatchPredictionJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/job_service.delete_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async + */ + deleteBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteBatchPredictionJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteBatchPredictionJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/job_service.delete_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async + */ + async checkDeleteBatchPredictionJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteBatchPredictionJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Updates a ModelDeploymentMonitoringJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob + * Required. The model monitoring configuration which replaces the resource on + * the server. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The update mask is used to specify the fields to be overwritten + * in the ModelDeploymentMonitoringJob resource by the update. The fields + * specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. If the user does + * not provide a mask then only the non-empty fields present in the request + * will be overwritten. Set the update_mask to `*` to override all fields. For + * the objective config, the user can either provide the update mask for + * model_deployment_monitoring_objective_configs or any combination of its + * nested fields, such as: + * model_deployment_monitoring_objective_configs.objective_config.training_dataset. + * + * Updatable fields: + * + * * `display_name` + * * `model_deployment_monitoring_schedule_config` + * * `model_monitoring_alert_config` + * * `logging_sampling_strategy` + * * `labels` + * * `log_ttl` + * * `enable_monitoring_pipeline_logs` + * . and + * * `model_deployment_monitoring_objective_configs` + * . or + * * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` + * * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` + * * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/job_service.update_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + */ + updateModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + updateModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'model_deployment_monitoring_job.name': + request.modelDeploymentMonitoringJob!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateModelDeploymentMonitoringJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `updateModelDeploymentMonitoringJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/job_service.update_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + */ + async checkUpdateModelDeploymentMonitoringJobProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateModelDeploymentMonitoringJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + >; + } + /** + * Deletes a ModelDeploymentMonitoringJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the model monitoring job to delete. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + */ + deleteModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteModelDeploymentMonitoringJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteModelDeploymentMonitoringJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + */ + async checkDeleteModelDeploymentMonitoringJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteModelDeploymentMonitoringJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Lists CustomJobs in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listCustomJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomJobs( + request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ICustomJob[], + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + ] + >; + listCustomJobs( + request: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ICustomJob + > + ): void; + listCustomJobs( + request: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ICustomJob + > + ): void; + listCustomJobs( + request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ICustomJob + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ICustomJob + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ICustomJob[], + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listCustomJobs(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listCustomJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomJobsStream( + request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listCustomJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomJobs.createStream( + this.innerApiCalls.listCustomJobs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listCustomJobs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/job_service.list_custom_jobs.js + * region_tag:aiplatform_v1_generated_JobService_ListCustomJobs_async + */ + listCustomJobsAsync( + request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listCustomJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomJobs.asyncIterate( + this.innerApiCalls['listCustomJobs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists DataLabelingJobs in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDataLabelingJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataLabelingJobs( + request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IDataLabelingJob[], + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + ] + >; + listDataLabelingJobs( + request: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IDataLabelingJob + > + ): void; + listDataLabelingJobs( + request: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IDataLabelingJob + > + ): void; + listDataLabelingJobs( + request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IDataLabelingJob + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IDataLabelingJob + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IDataLabelingJob[], + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listDataLabelingJobs(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDataLabelingJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataLabelingJobsStream( + request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDataLabelingJobs.createStream( + this.innerApiCalls.listDataLabelingJobs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDataLabelingJobs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/job_service.list_data_labeling_jobs.js + * region_tag:aiplatform_v1_generated_JobService_ListDataLabelingJobs_async + */ + listDataLabelingJobsAsync( + request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); + const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.innerApiCalls.deleteModelDeploymentMonitoringJob( - request, - options, - callback - ); - } - /** - * Check the status of the long running operation returned by `deleteModelDeploymentMonitoringJob()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async - */ - async checkDeleteModelDeploymentMonitoringJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteModelDeploymentMonitoringJob, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - >; + return this.descriptors.page.listDataLabelingJobs.asyncIterate( + this.innerApiCalls['listDataLabelingJobs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; } /** - * Lists CustomJobs in a Location. + * Lists HyperparameterTuningJobs in a Location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4118,79 +5221,79 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob}. + * The first element of the array is Array of [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listCustomJobsAsync()` + * We recommend using `listHyperparameterTuningJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomJobs( - request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.ICustomJob[], - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[], + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse ] >; - listCustomJobs( - request: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ICustomJob + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob > ): void; - listCustomJobs( - request: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ICustomJob + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob > ): void; - listCustomJobs( - request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ICustomJob + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ICustomJob + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob > ): Promise< [ - protos.google.cloud.aiplatform.v1.ICustomJob[], - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[], + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse ] > | void { request = request || {}; @@ -4209,7 +5312,11 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listCustomJobs(request, options, callback); + return this.innerApiCalls.listHyperparameterTuningJobs( + request, + options, + callback + ); } /** @@ -4217,8 +5324,9 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4245,26 +5353,26 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob} on 'data' event. + * An object stream which emits an object representing [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listCustomJobsAsync()` + * We recommend using `listHyperparameterTuningJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomJobsStream( - request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobsStream( + request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4275,25 +5383,26 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomJobs']; + const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomJobs.createStream( - this.innerApiCalls.listCustomJobs as GaxCall, + return this.descriptors.page.listHyperparameterTuningJobs.createStream( + this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, request, callSettings ); } /** - * Equivalent to `listCustomJobs`, but returns an iterable object. + * Equivalent to `listHyperparameterTuningJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4320,9 +5429,9 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. @@ -4331,18 +5440,18 @@ export class JobServiceClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob}. The API will be called under the hood as needed, once per the page, + * [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1/job_service.list_custom_jobs.js - * region_tag:aiplatform_v1_generated_JobService_ListCustomJobs_async + * @example include:samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js + * region_tag:aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_async */ - listCustomJobsAsync( - request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobsAsync( + request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4351,23 +5460,23 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomJobs']; + const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomJobs.asyncIterate( - this.innerApiCalls['listCustomJobs'] as GaxCall, + return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( + this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists DataLabelingJobs in a Location. + * Lists NasJobs in a Location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4393,82 +5502,74 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob}. + * The first element of the array is Array of [NasJob]{@link google.cloud.aiplatform.v1.NasJob}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDataLabelingJobsAsync()` + * We recommend using `listNasJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataLabelingJobs( - request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobs( + request?: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IDataLabelingJob[], - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1.INasJob[], + protos.google.cloud.aiplatform.v1.IListNasJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse ] >; - listDataLabelingJobs( - request: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobs( + request: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1.IDataLabelingJob + protos.google.cloud.aiplatform.v1.IListNasJobsRequest, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.INasJob > ): void; - listDataLabelingJobs( - request: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobs( + request: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1.IDataLabelingJob + protos.google.cloud.aiplatform.v1.IListNasJobsRequest, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.INasJob > ): void; - listDataLabelingJobs( - request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobs( + request?: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IDataLabelingJob + protos.google.cloud.aiplatform.v1.INasJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1.IDataLabelingJob + protos.google.cloud.aiplatform.v1.IListNasJobsRequest, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.INasJob > - ): Promise< - [ - protos.google.cloud.aiplatform.v1.IDataLabelingJob[], - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + ): Promise< + [ + protos.google.cloud.aiplatform.v1.INasJob[], + protos.google.cloud.aiplatform.v1.IListNasJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse ] > | void { request = request || {}; @@ -4487,7 +5588,7 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDataLabelingJobs(request, options, callback); + return this.innerApiCalls.listNasJobs(request, options, callback); } /** @@ -4495,8 +5596,8 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4522,29 +5623,27 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob} on 'data' event. + * An object stream which emits an object representing [NasJob]{@link google.cloud.aiplatform.v1.NasJob} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDataLabelingJobsAsync()` + * We recommend using `listNasJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataLabelingJobsStream( - request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobsStream( + request?: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4555,25 +5654,25 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const defaultCallSettings = this._defaults['listNasJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataLabelingJobs.createStream( - this.innerApiCalls.listDataLabelingJobs as GaxCall, + return this.descriptors.page.listNasJobs.createStream( + this.innerApiCalls.listNasJobs as GaxCall, request, callSettings ); } /** - * Equivalent to `listDataLabelingJobs`, but returns an iterable object. + * Equivalent to `listNasJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4599,32 +5698,30 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob}. The API will be called under the hood as needed, once per the page, + * [NasJob]{@link google.cloud.aiplatform.v1.NasJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_v1_generated_JobService_ListDataLabelingJobs_async + * @example include:samples/generated/v1/job_service.list_nas_jobs.js + * region_tag:aiplatform_v1_generated_JobService_ListNasJobs_async */ - listDataLabelingJobsAsync( - request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobsAsync( + request?: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4633,123 +5730,100 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const defaultCallSettings = this._defaults['listNasJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataLabelingJobs.asyncIterate( - this.innerApiCalls['listDataLabelingJobs'] as GaxCall, + return this.descriptors.page.listNasJobs.asyncIterate( + this.innerApiCalls['listNasJobs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists HyperparameterTuningJobs in a Location. + * List top NasTrialDetails of a NasJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob}. + * The first element of the array is Array of [NasTrialDetail]{@link google.cloud.aiplatform.v1.NasTrialDetail}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listHyperparameterTuningJobsAsync()` + * We recommend using `listNasTrialDetailsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listHyperparameterTuningJobs( - request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request?: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[], - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.INasTrialDetail[], + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest | null, + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse ] >; - listHyperparameterTuningJobs( - request: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1.INasTrialDetail > ): void; - listHyperparameterTuningJobs( - request: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1.INasTrialDetail > ): void; - listHyperparameterTuningJobs( - request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request?: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1.INasTrialDetail >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1.INasTrialDetail > ): Promise< [ - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[], - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.INasTrialDetail[], + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest | null, + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse ] > | void { request = request || {}; @@ -4768,11 +5842,7 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listHyperparameterTuningJobs( - request, - options, - callback - ); + return this.innerApiCalls.listNasTrialDetails(request, options, callback); } /** @@ -4780,55 +5850,32 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob} on 'data' event. + * An object stream which emits an object representing [NasTrialDetail]{@link google.cloud.aiplatform.v1.NasTrialDetail} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listHyperparameterTuningJobsAsync()` + * We recommend using `listNasTrialDetailsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listHyperparameterTuningJobsStream( - request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetailsStream( + request?: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4839,75 +5886,52 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; + const defaultCallSettings = this._defaults['listNasTrialDetails']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHyperparameterTuningJobs.createStream( - this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, + return this.descriptors.page.listNasTrialDetails.createStream( + this.innerApiCalls.listNasTrialDetails as GaxCall, request, callSettings ); } /** - * Equivalent to `listHyperparameterTuningJobs`, but returns an iterable object. + * Equivalent to `listNasTrialDetails`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob}. The API will be called under the hood as needed, once per the page, + * [NasTrialDetail]{@link google.cloud.aiplatform.v1.NasTrialDetail}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_async + * @example include:samples/generated/v1/job_service.list_nas_trial_details.js + * region_tag:aiplatform_v1_generated_JobService_ListNasTrialDetails_async */ - listHyperparameterTuningJobsAsync( - request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetailsAsync( + request?: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4916,14 +5940,14 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; + const defaultCallSettings = this._defaults['listNasTrialDetails']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( - this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, + return this.descriptors.page.listNasTrialDetails.asyncIterate( + this.innerApiCalls['listNasTrialDetails'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Lists BatchPredictionJobs in a Location. @@ -7660,6 +8684,130 @@ export class JobServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/job_service_client_config.json index 0d72482c7027..32e7535ad87b 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client_config.json @@ -80,6 +80,34 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CreateNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListNasJobs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CancelNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNasTrialDetail": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListNasTrialDetails": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CreateBatchPredictionJob": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts index 7835902f5c78..639944bd16e8 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts @@ -263,6 +263,12 @@ export class MetadataServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -8026,6 +8032,130 @@ export class MetadataServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts index b37f8f2dbdb8..49e3b79d350e 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts @@ -264,6 +264,12 @@ export class MigrationServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -3750,6 +3756,130 @@ export class MigrationServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts index 6dc04c5d9a3f..5dac4b83f742 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts @@ -263,6 +263,12 @@ export class ModelServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -1318,6 +1324,12 @@ export class ModelServiceClient { const exportModelMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.ExportModelOperationMetadata' ) as gax.protobuf.Type; + const copyModelResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CopyModelResponse' + ) as gax.protobuf.Type; + const copyModelMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CopyModelOperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { uploadModel: new this._gaxModule.LongrunningDescriptor( @@ -1340,6 +1352,11 @@ export class ModelServiceClient { exportModelResponse.decode.bind(exportModelResponse), exportModelMetadata.decode.bind(exportModelMetadata) ), + copyModel: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + copyModelResponse.decode.bind(copyModelResponse), + copyModelMetadata.decode.bind(copyModelMetadata) + ), }; // Put together the default options sent with requests. @@ -1401,6 +1418,7 @@ export class ModelServiceClient { 'deleteModelVersion', 'mergeVersionAliases', 'exportModel', + 'copyModel', 'importModelEvaluation', 'batchImportModelEvaluationSlices', 'getModelEvaluation', @@ -2797,6 +2815,167 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1.ExportModelOperationMetadata >; } + /** + * Copies an already existing Vertex AI Model into the specified Location. + * The source Model must exist in the same Project. + * When copying custom Models, the users themselves are responsible for + * {@link google.cloud.aiplatform.v1.Model.metadata|Model.metadata} content to be + * region-agnostic, as well as making sure that any resources (e.g. files) it + * depends on remain accessible. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} [request.modelId] + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + * @param {string} [request.parentModel] + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param {string} request.parent + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.sourceModel + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param {google.cloud.aiplatform.v1.EncryptionSpec} request.encryptionSpec + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/model_service.copy_model.js + * region_tag:aiplatform_v1_generated_ModelService_CopyModel_async + */ + copyModel( + request?: protos.google.cloud.aiplatform.v1.ICopyModelRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + copyModel( + request: protos.google.cloud.aiplatform.v1.ICopyModelRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + copyModel( + request: protos.google.cloud.aiplatform.v1.ICopyModelRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + copyModel( + request?: protos.google.cloud.aiplatform.v1.ICopyModelRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.copyModel(request, options, callback); + } + /** + * Check the status of the long running operation returned by `copyModel()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/model_service.copy_model.js + * region_tag:aiplatform_v1_generated_ModelService_CopyModel_async + */ + async checkCopyModelProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.CopyModelResponse, + protos.google.cloud.aiplatform.v1.CopyModelOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.copyModel, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.CopyModelResponse, + protos.google.cloud.aiplatform.v1.CopyModelOperationMetadata + >; + } /** * Lists Models in a Location. * @@ -5730,6 +5909,130 @@ export class ModelServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/model_service_client_config.json index c067ea1433ef..1f3e41c0e930 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client_config.json @@ -56,6 +56,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CopyModel": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ImportModelEvaluation": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts index 4ba198c3aabf..bd53cd56e95d 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -265,6 +265,12 @@ export class PipelineServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4920,6 +4926,130 @@ export class PipelineServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts index f19f38cc5824..9caef2eae8c0 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts @@ -255,6 +255,12 @@ export class PredictionServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -2470,6 +2476,130 @@ export class PredictionServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts index 2a8ffdafdbf6..ca7495109589 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts @@ -269,6 +269,12 @@ export class SpecialistPoolServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4119,6 +4125,130 @@ export class SpecialistPoolServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts index 3dc7d83c7b2d..fbdb52699939 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts @@ -263,6 +263,12 @@ export class TensorboardServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -7414,6 +7420,130 @@ export class TensorboardServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts index 084a3323c5ad..42ed367f7c70 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts @@ -267,6 +267,12 @@ export class VizierServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5064,6 +5070,130 @@ export class VizierServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json index d82a7a8b4137..44918848766f 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts index 5513e78f9e93..00a57e51319e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts @@ -267,6 +267,12 @@ export class DatasetServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5700,6 +5706,130 @@ export class DatasetServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts index 68482cc47871..891ba62eece2 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_client.ts @@ -267,6 +267,12 @@ export class DeploymentResourcePoolServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4360,6 +4366,130 @@ export class DeploymentResourcePoolServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts index 24334929640e..05e4250d3d73 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts @@ -266,6 +266,12 @@ export class EndpointServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4592,6 +4598,130 @@ export class EndpointServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts index 0c596380408c..fa1dd48e39f7 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts @@ -259,6 +259,12 @@ export class FeaturestoreOnlineServingServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -2491,6 +2497,130 @@ export class FeaturestoreOnlineServingServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts index c0da42d46dfa..7a9d80a7dfab 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts @@ -266,6 +266,12 @@ export class FeaturestoreServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -7411,6 +7417,130 @@ export class FeaturestoreServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json index 69243ea4e5e4..46c4a0d08011 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json @@ -834,6 +834,26 @@ "cancelHyperparameterTuningJob" ] }, + "CreateNasJob": { + "methods": [ + "createNasJob" + ] + }, + "GetNasJob": { + "methods": [ + "getNasJob" + ] + }, + "CancelNasJob": { + "methods": [ + "cancelNasJob" + ] + }, + "GetNasTrialDetail": { + "methods": [ + "getNasTrialDetail" + ] + }, "CreateBatchPredictionJob": { "methods": [ "createBatchPredictionJob" @@ -884,6 +904,11 @@ "deleteHyperparameterTuningJob" ] }, + "DeleteNasJob": { + "methods": [ + "deleteNasJob" + ] + }, "DeleteBatchPredictionJob": { "methods": [ "deleteBatchPredictionJob" @@ -920,6 +945,20 @@ "listHyperparameterTuningJobsAsync" ] }, + "ListNasJobs": { + "methods": [ + "listNasJobs", + "listNasJobsStream", + "listNasJobsAsync" + ] + }, + "ListNasTrialDetails": { + "methods": [ + "listNasTrialDetails", + "listNasTrialDetailsStream", + "listNasTrialDetailsAsync" + ] + }, "ListBatchPredictionJobs": { "methods": [ "listBatchPredictionJobs", @@ -991,6 +1030,26 @@ "cancelHyperparameterTuningJob" ] }, + "CreateNasJob": { + "methods": [ + "createNasJob" + ] + }, + "GetNasJob": { + "methods": [ + "getNasJob" + ] + }, + "CancelNasJob": { + "methods": [ + "cancelNasJob" + ] + }, + "GetNasTrialDetail": { + "methods": [ + "getNasTrialDetail" + ] + }, "CreateBatchPredictionJob": { "methods": [ "createBatchPredictionJob" @@ -1041,6 +1100,11 @@ "deleteHyperparameterTuningJob" ] }, + "DeleteNasJob": { + "methods": [ + "deleteNasJob" + ] + }, "DeleteBatchPredictionJob": { "methods": [ "deleteBatchPredictionJob" @@ -1077,6 +1141,20 @@ "listHyperparameterTuningJobsAsync" ] }, + "ListNasJobs": { + "methods": [ + "listNasJobs", + "listNasJobsStream", + "listNasJobsAsync" + ] + }, + "ListNasTrialDetails": { + "methods": [ + "listNasTrialDetails", + "listNasTrialDetailsStream", + "listNasTrialDetailsAsync" + ] + }, "ListBatchPredictionJobs": { "methods": [ "listBatchPredictionJobs", @@ -1559,6 +1637,11 @@ "exportModel" ] }, + "CopyModel": { + "methods": [ + "copyModel" + ] + }, "ListModels": { "methods": [ "listModels", @@ -1652,6 +1735,11 @@ "exportModel" ] }, + "CopyModel": { + "methods": [ + "copyModel" + ] + }, "ListModels": { "methods": [ "listModels", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts index 70f6cfa68f5b..3af3fb14f335 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_client.ts @@ -266,6 +266,12 @@ export class IndexEndpointServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4735,6 +4741,130 @@ export class IndexEndpointServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts index aaceaca57f35..d8b5f7731e73 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts @@ -266,6 +266,12 @@ export class IndexServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4469,6 +4475,130 @@ export class IndexServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts index 288adb5dfcb3..28c78c8d915c 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts @@ -266,6 +266,12 @@ export class JobServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -317,6 +323,16 @@ export class JobServiceClient { 'nextPageToken', 'hyperparameterTuningJobs' ), + listNasJobs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'nasJobs' + ), + listNasTrialDetails: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'nasTrialDetails' + ), listBatchPredictionJobs: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -1403,6 +1419,12 @@ export class JobServiceClient { const deleteHyperparameterTuningJobMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const deleteNasJobResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteNasJobMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' + ) as gax.protobuf.Type; const deleteBatchPredictionJobResponse = protoFilesRoot.lookup( '.google.protobuf.Empty' ) as gax.protobuf.Type; @@ -1444,6 +1466,11 @@ export class JobServiceClient { deleteHyperparameterTuningJobMetadata ) ), + deleteNasJob: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteNasJobResponse.decode.bind(deleteNasJobResponse), + deleteNasJobMetadata.decode.bind(deleteNasJobMetadata) + ), deleteBatchPredictionJob: new this._gaxModule.LongrunningDescriptor( this.operationsClient, deleteBatchPredictionJobResponse.decode.bind( @@ -1540,6 +1567,13 @@ export class JobServiceClient { 'listHyperparameterTuningJobs', 'deleteHyperparameterTuningJob', 'cancelHyperparameterTuningJob', + 'createNasJob', + 'getNasJob', + 'listNasJobs', + 'deleteNasJob', + 'cancelNasJob', + 'getNasTrialDetail', + 'listNasTrialDetails', 'createBatchPredictionJob', 'getBatchPredictionJob', 'listBatchPredictionJobs', @@ -1617,7 +1651,10 @@ export class JobServiceClient { * @returns {string[]} List of default scopes. */ static get scopes() { - return ['https://www.googleapis.com/auth/cloud-platform']; + return [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + ]; } getProjectId(): Promise; @@ -2567,85 +2604,78 @@ export class JobServiceClient { ); } /** - * Creates a BatchPredictionJob. A BatchPredictionJob once created will - * right away be attempted to start. + * Creates a NasJob * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to create the - * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} request.batchPredictionJob - * Required. The BatchPredictionJob to create. + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1beta1.NasJob} request.nasJob + * Required. The NasJob to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1beta1.BatchPredictionJob}. + * The first element of the array is an object representing [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.create_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async + * @example include:samples/generated/v1beta1/job_service.create_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CreateNasJob_async */ - createBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, + createNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.INasJob, + protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | undefined, {} | undefined ] >; - createBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, + createNasJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): void; - createBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, + createNasJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): void; - createBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, + createNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.INasJob, + protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | undefined, {} | undefined ] > | void { @@ -2665,90 +2695,80 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.createBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.createNasJob(request, options, callback); } /** - * Gets a BatchPredictionJob + * Gets a NasJob * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob resource. + * Required. The name of the NasJob resource. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1beta1.BatchPredictionJob}. + * The first element of the array is an object representing [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.get_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_GetBatchPredictionJob_async + * @example include:samples/generated/v1beta1/job_service.get_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_GetNasJob_async */ - getBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, + getNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.INasJob, + protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | undefined, {} | undefined ] >; - getBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, + getNasJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): void; - getBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, + getNasJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): void; - getBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, + getNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.INasJob, + protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | undefined, {} | undefined ] > | void { @@ -2768,28 +2788,29 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getBatchPredictionJob(request, options, callback); + return this.innerApiCalls.getNasJob(request, options, callback); } /** - * Cancels a BatchPredictionJob. - * - * Starts asynchronous cancellation on the BatchPredictionJob. The server - * makes the best effort to cancel the job, but success is not + * Cancels a NasJob. + * Starts asynchronous cancellation on the NasJob. The server + * makes a best effort to cancel the job, but success is not * guaranteed. Clients can use - * {@link google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob|JobService.GetBatchPredictionJob} + * {@link google.cloud.aiplatform.v1beta1.JobService.GetNasJob|JobService.GetNasJob} * or other methods to check whether the cancellation succeeded or whether the - * job completed despite cancellation. On a successful cancellation, - * the BatchPredictionJob is not deleted;instead its - * {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.state|BatchPredictionJob.state} - * is set to `CANCELLED`. Any files already outputted by the job are not - * deleted. + * job completed despite cancellation. On successful cancellation, + * the NasJob is not deleted; instead it becomes a job with + * a {@link google.cloud.aiplatform.v1beta1.NasJob.error|NasJob.error} value with a + * {@link google.rpc.Status.code|google.rpc.Status.code} of 1, corresponding to + * `Code.CANCELLED`, and + * {@link google.cloud.aiplatform.v1beta1.NasJob.state|NasJob.state} is set to + * `CANCELLED`. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob to cancel. + * Required. The name of the NasJob to cancel. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2797,57 +2818,54 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_CancelBatchPredictionJob_async + * @example include:samples/generated/v1beta1/job_service.cancel_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CancelNasJob_async */ - cancelBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | undefined, {} | undefined ] >; - cancelBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request: protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): void; - cancelBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request: protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): void; - cancelBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | null | undefined, {} | null | undefined @@ -2855,10 +2873,7 @@ export class JobServiceClient { ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | undefined, {} | undefined ] > | void { @@ -2878,90 +2893,84 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.cancelBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.cancelNasJob(request, options, callback); } /** - * Creates a ModelDeploymentMonitoringJob. It will run periodically on a - * configured interval. + * Gets a NasTrialDetail. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The parent of the ModelDeploymentMonitoringJob. - * Format: `projects/{project}/locations/{location}` - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob - * Required. The ModelDeploymentMonitoringJob to create + * @param {string} request.name + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob}. + * The first element of the array is an object representing [NasTrialDetail]{@link google.cloud.aiplatform.v1beta1.NasTrialDetail}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_CreateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.get_nas_trial_detail.js + * region_tag:aiplatform_v1beta1_generated_JobService_GetNasTrialDetail_async */ - createModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request?: protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, ( - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | undefined ), {} | undefined ] >; - createModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request: protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): void; - createModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request: protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): void; - createModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request?: protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, ( - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | undefined ), {} | undefined @@ -2980,91 +2989,89 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.getNasTrialDetail(request, options, callback); } /** - * Gets a ModelDeploymentMonitoringJob. + * Creates a BatchPredictionJob. A BatchPredictionJob once created will + * right away be attempted to start. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob. - * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param {string} request.parent + * Required. The resource name of the Location to create the + * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} request.batchPredictionJob + * Required. The BatchPredictionJob to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob}. + * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1beta1.BatchPredictionJob}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_GetModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.create_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async */ - getModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | undefined ), {} | undefined ] >; - getModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - getModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - getModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | undefined ), {} | undefined @@ -3083,94 +3090,91 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.getModelDeploymentMonitoringJob( + return this.innerApiCalls.createBatchPredictionJob( request, options, callback ); } /** - * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server - * makes a best effort to cancel the job. Will mark - * {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state|ModelDeploymentMonitoringJob.state} - * to 'PAUSED'. + * Gets a BatchPredictionJob * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob to pause. + * Required. The name of the BatchPredictionJob resource. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1beta1.BatchPredictionJob}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_PauseModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.get_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_GetBatchPredictionJob_async */ - pauseModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | undefined ), {} | undefined ] >; - pauseModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - pauseModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - pauseModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | undefined ), {} | undefined @@ -3192,23 +3196,28 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.pauseModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.getBatchPredictionJob(request, options, callback); } /** - * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from - * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be - * resumed. + * Cancels a BatchPredictionJob. + * + * Starts asynchronous cancellation on the BatchPredictionJob. The server + * makes the best effort to cancel the job, but success is not + * guaranteed. Clients can use + * {@link google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob|JobService.GetBatchPredictionJob} + * or other methods to check whether the cancellation succeeded or whether the + * job completed despite cancellation. On a successful cancellation, + * the BatchPredictionJob is not deleted;instead its + * {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.state|BatchPredictionJob.state} + * is set to `CANCELLED`. Any files already outputted by the job are not + * deleted. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob to resume. + * Required. The name of the BatchPredictionJob to cancel. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3216,57 +3225,57 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_ResumeModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CancelBatchPredictionJob_async */ - resumeModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | undefined ), {} | undefined ] >; - resumeModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - resumeModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - resumeModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined @@ -3275,7 +3284,7 @@ export class JobServiceClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | undefined ), {} | undefined @@ -3297,97 +3306,92 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.resumeModelDeploymentMonitoringJob( + return this.innerApiCalls.cancelBatchPredictionJob( request, options, callback ); } - /** - * Deletes a CustomJob. + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a + * configured interval. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomJob resource to be deleted. - * Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @param {string} request.parent + * Required. The parent of the ModelDeploymentMonitoringJob. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob + * Required. The ModelDeploymentMonitoringJob to create * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. + * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_custom_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async + * @example include:samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CreateModelDeploymentMonitoringJob_async */ - deleteCustomJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteCustomJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCustomJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCustomJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3404,130 +3408,93 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.deleteCustomJob(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteCustomJob()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_custom_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async - */ - async checkDeleteCustomJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteCustomJob, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.createModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; } /** - * Deletes a DataLabelingJob. + * Gets a ModelDeploymentMonitoringJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the DataLabelingJob to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob. * Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. + * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async + * @example include:samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_GetModelDeploymentMonitoringJob_async */ - deleteDataLabelingJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteDataLabelingJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteDataLabelingJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteDataLabelingJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3547,127 +3514,93 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteDataLabelingJob(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteDataLabelingJob()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async - */ - async checkDeleteDataLabelingJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteDataLabelingJob, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.getModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; } /** - * Deletes a HyperparameterTuningJob. + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server + * makes a best effort to cancel the job. Will mark + * {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state|ModelDeploymentMonitoringJob.state} + * to 'PAUSED'. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob to pause. * Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async + * @example include:samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_PauseModelDeploymentMonitoringJob_async */ - deleteHyperparameterTuningJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteHyperparameterTuningJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteHyperparameterTuningJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteHyperparameterTuningJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3687,132 +3620,92 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteHyperparameterTuningJob( + return this.innerApiCalls.pauseModelDeploymentMonitoringJob( request, options, callback ); } /** - * Check the status of the long running operation returned by `deleteHyperparameterTuningJob()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async - */ - async checkDeleteHyperparameterTuningJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteHyperparameterTuningJob, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; - } - /** - * Deletes a BatchPredictionJob. Can only be called on jobs that already - * finished. + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from + * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be + * resumed. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob resource to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob to resume. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async + * @example include:samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_ResumeModelDeploymentMonitoringJob_async */ - deleteBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + resumeModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, - {} | undefined - ] - >; - deleteBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | undefined + ), + {} | undefined + ] + >; + resumeModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + resumeModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + resumeModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3832,82 +3725,22 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteBatchPredictionJob( + return this.innerApiCalls.resumeModelDeploymentMonitoringJob( request, options, callback ); } + /** - * Check the status of the long running operation returned by `deleteBatchPredictionJob()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async - */ - async checkDeleteBatchPredictionJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteBatchPredictionJob, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; - } - /** - * Updates a ModelDeploymentMonitoringJob. + * Deletes a CustomJob. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob - * Required. The model monitoring configuration which replaces the resource on - * the server. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The update mask is used to specify the fields to be overwritten - * in the ModelDeploymentMonitoringJob resource by the update. The fields - * specified in the update_mask are relative to the resource, not the full - * request. A field will be overwritten if it is in the mask. If the user does - * not provide a mask then only the non-empty fields present in the request - * will be overwritten. Set the update_mask to `*` to override all fields. For - * the objective config, the user can either provide the update mask for - * model_deployment_monitoring_objective_configs or any combination of its - * nested fields, such as: - * model_deployment_monitoring_objective_configs.objective_config.training_dataset. - * - * Updatable fields: - * - * * `display_name` - * * `model_deployment_monitoring_schedule_config` - * * `model_monitoring_alert_config` - * * `logging_sampling_strategy` - * * `labels` - * * `log_ttl` - * * `enable_monitoring_pipeline_logs` - * . and - * * `model_deployment_monitoring_objective_configs` - * . or - * * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` - * * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` - * * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` + * @param {string} request.name + * Required. The name of the CustomJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3917,61 +3750,61 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.delete_custom_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async */ - updateModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + deleteCustomJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined ] >; - updateModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + deleteCustomJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + deleteCustomJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + deleteCustomJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined >, callback?: Callback< LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined @@ -3979,8 +3812,8 @@ export class JobServiceClient { ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined @@ -3999,18 +3832,13 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'model_deployment_monitoring_job.name': - request.modelDeploymentMonitoringJob!.name ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.updateModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.deleteCustomJob(request, options, callback); } /** - * Check the status of the long running operation returned by `updateModelDeploymentMonitoringJob()`. + * Check the status of the long running operation returned by `deleteCustomJob()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. @@ -4018,15 +3846,15 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.delete_custom_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async */ - async checkUpdateModelDeploymentMonitoringJobProgress( + async checkDeleteCustomJobProgress( name: string ): Promise< LROperation< - protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { const request = @@ -4036,23 +3864,23 @@ export class JobServiceClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.updateModelDeploymentMonitoringJob, + this.descriptors.longrunning.deleteCustomJob, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata >; } /** - * Deletes a ModelDeploymentMonitoringJob. + * Deletes a DataLabelingJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the model monitoring job to delete. + * Required. The name of the DataLabelingJob to be deleted. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4062,11 +3890,11 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.delete_data_labeling_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async */ - deleteModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, options?: CallOptions ): Promise< [ @@ -4078,8 +3906,8 @@ export class JobServiceClient { {} | undefined ] >; - deleteModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, options: CallOptions, callback: Callback< LROperation< @@ -4090,8 +3918,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -4101,8 +3929,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4132,70 +3960,1369 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteDataLabelingJob(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteDataLabelingJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.delete_data_labeling_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async + */ + async checkDeleteDataLabelingJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteDataLabelingJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Deletes a HyperparameterTuningJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async + */ + deleteHyperparameterTuningJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteHyperparameterTuningJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteHyperparameterTuningJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteHyperparameterTuningJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteHyperparameterTuningJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteHyperparameterTuningJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async + */ + async checkDeleteHyperparameterTuningJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteHyperparameterTuningJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Deletes a NasJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.delete_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteNasJob_async + */ + deleteNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteNasJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNasJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteNasJob(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteNasJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.delete_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteNasJob_async + */ + async checkDeleteNasJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteNasJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Deletes a BatchPredictionJob. Can only be called on jobs that already + * finished. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the BatchPredictionJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.delete_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async + */ + deleteBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteBatchPredictionJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteBatchPredictionJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.delete_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async + */ + async checkDeleteBatchPredictionJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteBatchPredictionJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Updates a ModelDeploymentMonitoringJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob + * Required. The model monitoring configuration which replaces the resource on + * the server. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The update mask is used to specify the fields to be overwritten + * in the ModelDeploymentMonitoringJob resource by the update. The fields + * specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. If the user does + * not provide a mask then only the non-empty fields present in the request + * will be overwritten. Set the update_mask to `*` to override all fields. For + * the objective config, the user can either provide the update mask for + * model_deployment_monitoring_objective_configs or any combination of its + * nested fields, such as: + * model_deployment_monitoring_objective_configs.objective_config.training_dataset. + * + * Updatable fields: + * + * * `display_name` + * * `model_deployment_monitoring_schedule_config` + * * `model_monitoring_alert_config` + * * `logging_sampling_strategy` + * * `labels` + * * `log_ttl` + * * `enable_monitoring_pipeline_logs` + * . and + * * `model_deployment_monitoring_objective_configs` + * . or + * * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` + * * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` + * * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + */ + updateModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + updateModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'model_deployment_monitoring_job.name': + request.modelDeploymentMonitoringJob!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateModelDeploymentMonitoringJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `updateModelDeploymentMonitoringJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + */ + async checkUpdateModelDeploymentMonitoringJobProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateModelDeploymentMonitoringJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + >; + } + /** + * Deletes a ModelDeploymentMonitoringJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the model monitoring job to delete. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + */ + deleteModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteModelDeploymentMonitoringJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteModelDeploymentMonitoringJob()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + */ + async checkDeleteModelDeploymentMonitoringJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteModelDeploymentMonitoringJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Lists CustomJobs in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listCustomJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.ICustomJob[], + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + ] + >; + listCustomJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ICustomJob + > + ): void; + listCustomJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ICustomJob + > + ): void; + listCustomJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ICustomJob + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ICustomJob + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.ICustomJob[], + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listCustomJobs(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listCustomJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomJobsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listCustomJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomJobs.createStream( + this.innerApiCalls.listCustomJobs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listCustomJobs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.list_custom_jobs.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListCustomJobs_async + */ + listCustomJobsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listCustomJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomJobs.asyncIterate( + this.innerApiCalls['listCustomJobs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists DataLabelingJobs in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDataLabelingJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataLabelingJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[], + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + ] + >; + listDataLabelingJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + > + ): void; + listDataLabelingJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + > + ): void; + listDataLabelingJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[], + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listDataLabelingJobs(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDataLabelingJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataLabelingJobsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDataLabelingJobs.createStream( + this.innerApiCalls.listDataLabelingJobs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDataLabelingJobs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.list_data_labeling_jobs.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListDataLabelingJobs_async + */ + listDataLabelingJobsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); + const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.innerApiCalls.deleteModelDeploymentMonitoringJob( - request, - options, - callback - ); - } - /** - * Check the status of the long running operation returned by `deleteModelDeploymentMonitoringJob()`. - * @param {String} name - * The operation name that will be passed. - * @returns {Promise} - The promise which resolves to an object. - * The decoded operation object has result and metadata field to get information from. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async - */ - async checkDeleteModelDeploymentMonitoringJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - const request = - new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( - {name} - ); - const [operation] = await this.operationsClient.getOperation(request); - const decodeOperation = new this._gaxModule.Operation( - operation, - this.descriptors.longrunning.deleteModelDeploymentMonitoringJob, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; + return this.descriptors.page.listDataLabelingJobs.asyncIterate( + this.innerApiCalls['listDataLabelingJobs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; } /** - * Lists CustomJobs in a Location. + * Lists HyperparameterTuningJobs in a Location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4222,79 +5349,79 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob}. + * The first element of the array is Array of [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listCustomJobsAsync()` + * We recommend using `listHyperparameterTuningJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.ICustomJob[], - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[], + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse ] >; - listCustomJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.ICustomJob + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob > ): void; - listCustomJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.ICustomJob + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob > ): void; - listCustomJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.ICustomJob + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.ICustomJob + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.ICustomJob[], - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[], + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse ] > | void { request = request || {}; @@ -4313,7 +5440,11 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listCustomJobs(request, options, callback); + return this.innerApiCalls.listHyperparameterTuningJobs( + request, + options, + callback + ); } /** @@ -4321,8 +5452,9 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4349,26 +5481,26 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob} on 'data' event. + * An object stream which emits an object representing [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listCustomJobsAsync()` + * We recommend using `listHyperparameterTuningJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomJobsStream( - request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4379,25 +5511,26 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomJobs']; + const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomJobs.createStream( - this.innerApiCalls.listCustomJobs as GaxCall, + return this.descriptors.page.listHyperparameterTuningJobs.createStream( + this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, request, callSettings ); } /** - * Equivalent to `listCustomJobs`, but returns an iterable object. + * Equivalent to `listHyperparameterTuningJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4424,9 +5557,9 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. @@ -4435,18 +5568,18 @@ export class JobServiceClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob}. The API will be called under the hood as needed, once per the page, + * [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.list_custom_jobs.js - * region_tag:aiplatform_v1beta1_generated_JobService_ListCustomJobs_async + * @example include:samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListHyperparameterTuningJobs_async */ - listCustomJobsAsync( - request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4455,23 +5588,23 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomJobs']; + const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomJobs.asyncIterate( - this.innerApiCalls['listCustomJobs'] as GaxCall, + return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( + this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists DataLabelingJobs in a Location. + * Lists NasJobs in a Location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4497,82 +5630,80 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob}. + * The first element of the array is Array of [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDataLabelingJobsAsync()` + * We recommend using `listNasJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataLabelingJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[], - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.INasJob[], + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse ] >; - listDataLabelingJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + protos.google.cloud.aiplatform.v1beta1.INasJob > ): void; - listDataLabelingJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + protos.google.cloud.aiplatform.v1beta1.INasJob > ): void; - listDataLabelingJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + protos.google.cloud.aiplatform.v1beta1.INasJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + protos.google.cloud.aiplatform.v1beta1.INasJob > - ): Promise< - [ - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[], - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.INasJob[], + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse ] > | void { request = request || {}; @@ -4591,7 +5722,7 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDataLabelingJobs(request, options, callback); + return this.innerApiCalls.listNasJobs(request, options, callback); } /** @@ -4599,8 +5730,8 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4626,29 +5757,27 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob} on 'data' event. + * An object stream which emits an object representing [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDataLabelingJobsAsync()` + * We recommend using `listNasJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataLabelingJobsStream( - request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4659,25 +5788,25 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const defaultCallSettings = this._defaults['listNasJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataLabelingJobs.createStream( - this.innerApiCalls.listDataLabelingJobs as GaxCall, + return this.descriptors.page.listNasJobs.createStream( + this.innerApiCalls.listNasJobs as GaxCall, request, callSettings ); } /** - * Equivalent to `listDataLabelingJobs`, but returns an iterable object. + * Equivalent to `listNasJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4703,32 +5832,30 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob}. The API will be called under the hood as needed, once per the page, + * [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_v1beta1_generated_JobService_ListDataLabelingJobs_async + * @example include:samples/generated/v1beta1/job_service.list_nas_jobs.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListNasJobs_async */ - listDataLabelingJobsAsync( - request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4737,123 +5864,100 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const defaultCallSettings = this._defaults['listNasJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataLabelingJobs.asyncIterate( - this.innerApiCalls['listDataLabelingJobs'] as GaxCall, + return this.descriptors.page.listNasJobs.asyncIterate( + this.innerApiCalls['listNasJobs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists HyperparameterTuningJobs in a Location. + * List top NasTrialDetails of a NasJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}. + * The first element of the array is Array of [NasTrialDetail]{@link google.cloud.aiplatform.v1beta1.NasTrialDetail}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listHyperparameterTuningJobsAsync()` + * We recommend using `listNasTrialDetailsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listHyperparameterTuningJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[], - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[], + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse ] >; - listHyperparameterTuningJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail > ): void; - listHyperparameterTuningJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail > ): void; - listHyperparameterTuningJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[], - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[], + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse ] > | void { request = request || {}; @@ -4872,11 +5976,7 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listHyperparameterTuningJobs( - request, - options, - callback - ); + return this.innerApiCalls.listNasTrialDetails(request, options, callback); } /** @@ -4884,55 +5984,32 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} on 'data' event. + * An object stream which emits an object representing [NasTrialDetail]{@link google.cloud.aiplatform.v1beta1.NasTrialDetail} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listHyperparameterTuningJobsAsync()` + * We recommend using `listNasTrialDetailsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listHyperparameterTuningJobsStream( - request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetailsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4943,75 +6020,52 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; + const defaultCallSettings = this._defaults['listNasTrialDetails']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHyperparameterTuningJobs.createStream( - this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, + return this.descriptors.page.listNasTrialDetails.createStream( + this.innerApiCalls.listNasTrialDetails as GaxCall, request, callSettings ); } /** - * Equivalent to `listHyperparameterTuningJobs`, but returns an iterable object. + * Equivalent to `listNasTrialDetails`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}. The API will be called under the hood as needed, once per the page, + * [NasTrialDetail]{@link google.cloud.aiplatform.v1beta1.NasTrialDetail}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_v1beta1_generated_JobService_ListHyperparameterTuningJobs_async + * @example include:samples/generated/v1beta1/job_service.list_nas_trial_details.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListNasTrialDetails_async */ - listHyperparameterTuningJobsAsync( - request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetailsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5020,14 +6074,14 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; + const defaultCallSettings = this._defaults['listNasTrialDetails']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( - this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, + return this.descriptors.page.listNasTrialDetails.asyncIterate( + this.innerApiCalls['listNasTrialDetails'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Lists BatchPredictionJobs in a Location. @@ -7829,6 +8883,130 @@ export class JobServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client_config.json index 8c3c6dd47e54..4e60f4b5ff8e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client_config.json @@ -95,6 +95,34 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CreateNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListNasJobs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CancelNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNasTrialDetail": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListNasTrialDetails": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CreateBatchPredictionJob": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts index 558e262b0c32..cdb9f69c69fc 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts @@ -266,6 +266,12 @@ export class MetadataServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -8228,6 +8234,130 @@ export class MetadataServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts index c14264c57a56..b3d60c419891 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts @@ -267,6 +267,12 @@ export class MigrationServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -3899,6 +3905,130 @@ export class MigrationServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts index e1836c8ebeec..ac8358af6350 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts @@ -266,6 +266,12 @@ export class ModelServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -1404,6 +1410,12 @@ export class ModelServiceClient { const exportModelMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata' ) as gax.protobuf.Type; + const copyModelResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.CopyModelResponse' + ) as gax.protobuf.Type; + const copyModelMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { uploadModel: new this._gaxModule.LongrunningDescriptor( @@ -1435,6 +1447,11 @@ export class ModelServiceClient { exportModelResponse.decode.bind(exportModelResponse), exportModelMetadata.decode.bind(exportModelMetadata) ), + copyModel: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + copyModelResponse.decode.bind(copyModelResponse), + copyModelMetadata.decode.bind(copyModelMetadata) + ), }; // Put together the default options sent with requests. @@ -1497,6 +1514,7 @@ export class ModelServiceClient { 'deleteModelVersion', 'mergeVersionAliases', 'exportModel', + 'copyModel', 'importModelEvaluation', 'batchImportModelEvaluationSlices', 'getModelEvaluation', @@ -3064,6 +3082,167 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata >; } + /** + * Copies an already existing Vertex AI Model into the specified Location. + * The source Model must exist in the same Project. + * When copying custom Models, the users themselves are responsible for + * {@link google.cloud.aiplatform.v1beta1.Model.metadata|Model.metadata} content to + * be region-agnostic, as well as making sure that any resources (e.g. files) + * it depends on remain accessible. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} [request.modelId] + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + * @param {string} [request.parentModel] + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param {string} request.parent + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.sourceModel + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param {google.cloud.aiplatform.v1beta1.EncryptionSpec} request.encryptionSpec + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/model_service.copy_model.js + * region_tag:aiplatform_v1beta1_generated_ModelService_CopyModel_async + */ + copyModel( + request?: protos.google.cloud.aiplatform.v1beta1.ICopyModelRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + copyModel( + request: protos.google.cloud.aiplatform.v1beta1.ICopyModelRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + copyModel( + request: protos.google.cloud.aiplatform.v1beta1.ICopyModelRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + copyModel( + request?: protos.google.cloud.aiplatform.v1beta1.ICopyModelRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.copyModel(request, options, callback); + } + /** + * Check the status of the long running operation returned by `copyModel()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1beta1/model_service.copy_model.js + * region_tag:aiplatform_v1beta1_generated_ModelService_CopyModel_async + */ + async checkCopyModelProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1beta1.CopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.copyModel, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1beta1.CopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + >; + } /** * Lists Models in a Location. * @@ -6038,6 +6217,130 @@ export class ModelServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json index e467c45b9b0d..adb9f8150315 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client_config.json @@ -66,6 +66,11 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CopyModel": { + "timeout_millis": 5000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ImportModelEvaluation": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts index 66d925df593c..f8509e909cd4 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -268,6 +268,12 @@ export class PipelineServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5083,6 +5089,130 @@ export class PipelineServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts index b4fc7c194462..51422ec4d497 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts @@ -258,6 +258,12 @@ export class PredictionServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -2551,6 +2557,130 @@ export class PredictionServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts index 3c442e2a31b8..8970c28f644e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_client.ts @@ -272,6 +272,12 @@ export class SpecialistPoolServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4270,6 +4276,130 @@ export class SpecialistPoolServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts index cbba2f5875f9..2a55d6420730 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts @@ -266,6 +266,12 @@ export class TensorboardServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -7563,6 +7569,130 @@ export class TensorboardServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts index 7bfa1a807b6b..b94a51116dd2 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts @@ -270,6 +270,12 @@ export class VizierServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5285,6 +5291,130 @@ export class VizierServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json index 574e74be7e5e..9bd0ad172e5e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts index 752e010af9a6..2240aceedc33 100644 --- a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts @@ -5593,6 +5593,147 @@ describe('v1.DatasetServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts index 45930386df4c..6fb8226fe028 100644 --- a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts @@ -5737,6 +5737,147 @@ describe('v1beta1.DatasetServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts index 3aae22614e3b..33b1f89b0928 100644 --- a/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts @@ -4420,6 +4420,153 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts index 1182cf36dc59..48cb5ff11e32 100644 --- a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts @@ -4189,6 +4189,147 @@ describe('v1.EndpointServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts index 5188a097bdb8..b29fedcb69cb 100644 --- a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts @@ -4295,6 +4295,147 @@ describe('v1beta1.EndpointServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts index 9e7d0549d6dc..a36817e10051 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts @@ -3003,6 +3003,153 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts index f17c7f213481..4060c80d35f0 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts @@ -3087,6 +3087,153 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts index 782c306f4aff..fb6aa73addd5 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts @@ -7244,6 +7244,151 @@ describe('v1.FeaturestoreServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts index 7de3d5bd9c71..ce218b151fad 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts @@ -7416,6 +7416,149 @@ describe('v1beta1.FeaturestoreServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts index 8dfc689d72d6..dda6d47bd058 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts @@ -4512,6 +4512,149 @@ describe('v1.IndexEndpointServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts index d2d74b2431b9..b22cc82d9a39 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts @@ -4601,6 +4601,149 @@ describe('v1beta1.IndexEndpointServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts index 18907fd42e3c..4a8b430c650f 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts @@ -4116,6 +4116,147 @@ describe('v1.IndexServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts index 661d87a6863b..096675f6ab62 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts @@ -4223,6 +4223,147 @@ describe('v1beta1.IndexServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts index ff6cae173bc7..79e1d5d14b5e 100644 --- a/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts @@ -1469,65 +1469,64 @@ describe('v1.JobServiceClient', () => { }); }); - describe('createBatchPredictionJob', () => { - it('invokes createBatchPredictionJob without error', async () => { + describe('createNasJob', () => { + it('invokes createNasJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1.NasJob() ); - client.innerApiCalls.createBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.createBatchPredictionJob(request); + client.innerApiCalls.createNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.createNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob without error using callback', async () => { + it('invokes createNasJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1.NasJob() ); - client.innerApiCalls.createBatchPredictionJob = + client.innerApiCalls.createNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createBatchPredictionJob( + client.createNasJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IBatchPredictionJob | null + result?: protos.google.cloud.aiplatform.v1.INasJob | null ) => { if (err) { reject(err); @@ -1540,131 +1539,124 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob with error', async () => { + it('invokes createNasJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createBatchPredictionJob = stubSimpleCall( + client.innerApiCalls.createNasJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.createNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob with closed client', async () => { + it('invokes createNasJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.createNasJob(request), expectedError); }); }); - describe('getBatchPredictionJob', () => { - it('invokes getBatchPredictionJob without error', async () => { + describe('getNasJob', () => { + it('invokes getNasJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1.NasJob() ); - client.innerApiCalls.getBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.getBatchPredictionJob(request); + client.innerApiCalls.getNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.getNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob without error using callback', async () => { + it('invokes getNasJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1.NasJob() ); - client.innerApiCalls.getBatchPredictionJob = + client.innerApiCalls.getNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getBatchPredictionJob( + client.getNasJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IBatchPredictionJob | null + result?: protos.google.cloud.aiplatform.v1.INasJob | null ) => { if (err) { reject(err); @@ -1677,84 +1669,75 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob with error', async () => { + it('invokes getNasJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getBatchPredictionJob = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.getBatchPredictionJob(request), - expectedError - ); + client.innerApiCalls.getNasJob = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob with closed client', async () => { + it('invokes getNasJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.getBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.getNasJob(request), expectedError); }); }); - describe('cancelBatchPredictionJob', () => { - it('invokes cancelBatchPredictionJob without error', async () => { + describe('cancelNasJob', () => { + it('invokes cancelNasJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; @@ -1762,31 +1745,30 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.cancelBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.cancelBatchPredictionJob(request); + client.innerApiCalls.cancelNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.cancelNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob without error using callback', async () => { + it('invokes cancelNasJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; @@ -1794,10 +1776,10 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.cancelBatchPredictionJob = + client.innerApiCalls.cancelNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.cancelBatchPredictionJob( + client.cancelNasJob( request, ( err?: Error | null, @@ -1814,133 +1796,124 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob with error', async () => { + it('invokes cancelNasJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall( + client.innerApiCalls.cancelNasJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.cancelBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.cancelNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob with closed client', async () => { + it('invokes cancelNasJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.cancelBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.cancelNasJob(request), expectedError); }); }); - describe('createModelDeploymentMonitoringJob', () => { - it('invokes createModelDeploymentMonitoringJob without error', async () => { + describe('getNasTrialDetail', () => { + it('invokes getNasTrialDetail without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() - ); - client.innerApiCalls.createModelDeploymentMonitoringJob = - stubSimpleCall(expectedResponse); - const [response] = await client.createModelDeploymentMonitoringJob( - request + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ); + client.innerApiCalls.getNasTrialDetail = stubSimpleCall(expectedResponse); + const [response] = await client.getNasTrialDetail(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes getNasTrialDetail without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ); - client.innerApiCalls.createModelDeploymentMonitoringJob = + client.innerApiCalls.getNasTrialDetail = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createModelDeploymentMonitoringJob( + client.getNasTrialDetail( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob | null + result?: protos.google.cloud.aiplatform.v1.INasTrialDetail | null ) => { if (err) { reject(err); @@ -1953,131 +1926,125 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob with error', async () => { + it('invokes getNasTrialDetail with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.getNasTrialDetail = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createModelDeploymentMonitoringJob(request), - expectedError - ); + await assert.rejects(client.getNasTrialDetail(request), expectedError); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob with closed client', async () => { + it('invokes getNasTrialDetail with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createModelDeploymentMonitoringJob(request), - expectedError - ); + await assert.rejects(client.getNasTrialDetail(request), expectedError); }); }); - describe('getModelDeploymentMonitoringJob', () => { - it('invokes getModelDeploymentMonitoringJob without error', async () => { + describe('createBatchPredictionJob', () => { + it('invokes createBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1.BatchPredictionJob() ); - client.innerApiCalls.getModelDeploymentMonitoringJob = + client.innerApiCalls.createBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.getModelDeploymentMonitoringJob(request); + const [response] = await client.createBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes createBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1.BatchPredictionJob() ); - client.innerApiCalls.getModelDeploymentMonitoringJob = + client.innerApiCalls.createBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getModelDeploymentMonitoringJob( + client.createBatchPredictionJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob | null + result?: protos.google.cloud.aiplatform.v1.IBatchPredictionJob | null ) => { if (err) { reject(err); @@ -2090,133 +2057,131 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob with error', async () => { + it('invokes createBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.createBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.getModelDeploymentMonitoringJob(request), + client.createBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob with closed client', async () => { + it('invokes createBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.getModelDeploymentMonitoringJob(request), + client.createBatchPredictionJob(request), expectedError ); }); }); - describe('pauseModelDeploymentMonitoringJob', () => { - it('invokes pauseModelDeploymentMonitoringJob without error', async () => { + describe('getBatchPredictionJob', () => { + it('invokes getBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.aiplatform.v1.BatchPredictionJob() ); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = + client.innerApiCalls.getBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.pauseModelDeploymentMonitoringJob( - request - ); + const [response] = await client.getBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes getBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.aiplatform.v1.BatchPredictionJob() ); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = + client.innerApiCalls.getBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.pauseModelDeploymentMonitoringJob( + client.getBatchPredictionJob( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.cloud.aiplatform.v1.IBatchPredictionJob | null ) => { if (err) { reject(err); @@ -2229,84 +2194,84 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob with error', async () => { + it('invokes getBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.getBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.pauseModelDeploymentMonitoringJob(request), + client.getBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob with closed client', async () => { + it('invokes getBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.pauseModelDeploymentMonitoringJob(request), + client.getBatchPredictionJob(request), expectedError ); }); }); - describe('resumeModelDeploymentMonitoringJob', () => { - it('invokes resumeModelDeploymentMonitoringJob without error', async () => { + describe('cancelBatchPredictionJob', () => { + it('invokes cancelBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -2314,33 +2279,31 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.resumeModelDeploymentMonitoringJob( - request - ); + const [response] = await client.cancelBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes cancelBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -2348,10 +2311,10 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.resumeModelDeploymentMonitoringJob( + client.cancelBatchPredictionJob( request, ( err?: Error | null, @@ -2368,135 +2331,133 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob with error', async () => { + it('invokes cancelBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.resumeModelDeploymentMonitoringJob(request), + client.cancelBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob with closed client', async () => { + it('invokes cancelBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.resumeModelDeploymentMonitoringJob(request), + client.cancelBatchPredictionJob(request), expectedError ); }); }); - describe('deleteCustomJob', () => { - it('invokes deleteCustomJob without error', async () => { + describe('createModelDeploymentMonitoringJob', () => { + it('invokes createModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + ); + client.innerApiCalls.createModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.createModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteCustomJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteCustomJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob without error using callback', async () => { + it('invokes createModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() ); - client.innerApiCalls.deleteCustomJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.createModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteCustomJob( + client.createModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - > | null + result?: protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob | null ) => { if (err) { reject(err); @@ -2506,191 +2467,273 @@ describe('v1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob with call error', async () => { + it('invokes createModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteCustomJob = stubLongRunningCall( + client.innerApiCalls.createModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteCustomJob(request), expectedError); + await assert.rejects( + client.createModelDeploymentMonitoringJob(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob with LRO error', async () => { + it('invokes createModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createModelDeploymentMonitoringJob(request), + expectedError + ); + }); + }); + + describe('getModelDeploymentMonitoringJob', () => { + it('invokes getModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteCustomJob = stubLongRunningCall( - undefined, - undefined, - expectedError + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() ); - const [operation] = await client.deleteCustomJob(request); - await assert.rejects(operation.promise(), expectedError); + client.innerApiCalls.getModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.getModelDeploymentMonitoringJob(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteCustomJobProgress without error', async () => { + it('invokes getModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteCustomJobProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', + ['name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + ); + client.innerApiCalls.getModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteCustomJobProgress with error', async () => { + it('invokes getModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.getModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.checkDeleteCustomJobProgress(''), + client.getModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getModelDeploymentMonitoringJob with closed client', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteDataLabelingJob', () => { - it('invokes deleteDataLabelingJob without error', async () => { + describe('pauseModelDeploymentMonitoringJob', () => { + it('invokes pauseModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.pauseModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.pauseModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteDataLabelingJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteDataLabelingJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob without error using callback', async () => { + it('invokes pauseModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteDataLabelingJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.pauseModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteDataLabelingJob( + client.pauseModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2700,194 +2743,136 @@ describe('v1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob with call error', async () => { + it('invokes pauseModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + client.innerApiCalls.pauseModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteDataLabelingJob(request), + client.pauseModelDeploymentMonitoringJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob with LRO error', async () => { + it('invokes pauseModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteDataLabelingJob(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeleteDataLabelingJobProgress without error', async () => { - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteDataLabelingJobProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteDataLabelingJobProgress with error', async () => { - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteDataLabelingJobProgress(''), + client.pauseModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteHyperparameterTuningJob', () => { - it('invokes deleteHyperparameterTuningJob without error', async () => { + describe('resumeModelDeploymentMonitoringJob', () => { + it('invokes resumeModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.resumeModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.resumeModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteHyperparameterTuningJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteHyperparameterTuningJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob without error using callback', async () => { + it('invokes resumeModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteHyperparameterTuningJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.resumeModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteHyperparameterTuningJob( + client.resumeModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2897,144 +2882,87 @@ describe('v1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob with call error', async () => { + it('invokes resumeModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + client.innerApiCalls.resumeModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteHyperparameterTuningJob(request), + client.resumeModelDeploymentMonitoringJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob with LRO error', async () => { + it('invokes resumeModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteHyperparameterTuningJob(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeleteHyperparameterTuningJobProgress without error', async () => { - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkDeleteHyperparameterTuningJobProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteHyperparameterTuningJobProgress with error', async () => { - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteHyperparameterTuningJobProgress(''), + client.resumeModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteBatchPredictionJob', () => { - it('invokes deleteBatchPredictionJob without error', async () => { + describe('deleteCustomJob', () => { + it('invokes deleteCustomJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; @@ -3042,32 +2970,32 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteBatchPredictionJob = + client.innerApiCalls.deleteCustomJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteBatchPredictionJob(request); + const [operation] = await client.deleteCustomJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob without error using callback', async () => { + it('invokes deleteCustomJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; @@ -3075,10 +3003,10 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteBatchPredictionJob = + client.innerApiCalls.deleteCustomJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteBatchPredictionJob( + client.deleteCustomJob( request, ( err?: Error | null, @@ -3102,83 +3030,80 @@ describe('v1.JobServiceClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob with call error', async () => { + it('invokes deleteCustomJob with call error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + client.innerApiCalls.deleteCustomJob = stubLongRunningCall( undefined, expectedError ); - await assert.rejects( - client.deleteBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.deleteCustomJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob with LRO error', async () => { + it('invokes deleteCustomJob with LRO error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + client.innerApiCalls.deleteCustomJob = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.deleteBatchPredictionJob(request); + const [operation] = await client.deleteCustomJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteBatchPredictionJobProgress without error', async () => { + it('invokes checkDeleteCustomJobProgress without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3192,16 +3117,15 @@ describe('v1.JobServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkDeleteBatchPredictionJobProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeleteCustomJobProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteBatchPredictionJobProgress with error', async () => { + it('invokes checkDeleteCustomJobProgress with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3214,79 +3138,75 @@ describe('v1.JobServiceClient', () => { expectedError ); await assert.rejects( - client.checkDeleteBatchPredictionJobProgress(''), + client.checkDeleteCustomJobProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateModelDeploymentMonitoringJob', () => { - it('invokes updateModelDeploymentMonitoringJob without error', async () => { + describe('deleteDataLabelingJob', () => { + it('invokes deleteDataLabelingJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateModelDeploymentMonitoringJob = + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.updateModelDeploymentMonitoringJob( - request - ); + const [operation] = await client.deleteDataLabelingJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes deleteDataLabelingJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateModelDeploymentMonitoringJob = + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateModelDeploymentMonitoringJob( + client.deleteDataLabelingJob( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata > | null ) => { if (err) { @@ -3298,88 +3218,89 @@ describe('v1.JobServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob with call error', async () => { + it('invokes deleteDataLabelingJob with call error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, expectedError); + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + undefined, + expectedError + ); await assert.rejects( - client.updateModelDeploymentMonitoringJob(request), + client.deleteDataLabelingJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob with LRO error', async () => { + it('invokes deleteDataLabelingJob with LRO error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, undefined, expectedError); - const [operation] = await client.updateModelDeploymentMonitoringJob( - request + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + undefined, + undefined, + expectedError ); + const [operation] = await client.deleteDataLabelingJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateModelDeploymentMonitoringJobProgress without error', async () => { + it('invokes checkDeleteDataLabelingJobProgress without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3393,16 +3314,15 @@ describe('v1.JobServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkUpdateModelDeploymentMonitoringJobProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeleteDataLabelingJobProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkUpdateModelDeploymentMonitoringJobProgress with error', async () => { + it('invokes checkDeleteDataLabelingJobProgress with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3415,25 +3335,25 @@ describe('v1.JobServiceClient', () => { expectedError ); await assert.rejects( - client.checkUpdateModelDeploymentMonitoringJobProgress(''), + client.checkDeleteDataLabelingJobProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteModelDeploymentMonitoringJob', () => { - it('invokes deleteModelDeploymentMonitoringJob without error', async () => { + describe('deleteHyperparameterTuningJob', () => { + it('invokes deleteHyperparameterTuningJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3441,34 +3361,32 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteModelDeploymentMonitoringJob( - request - ); + const [operation] = await client.deleteHyperparameterTuningJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes deleteHyperparameterTuningJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3476,10 +3394,10 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteModelDeploymentMonitoringJob( + client.deleteHyperparameterTuningJob( request, ( err?: Error | null, @@ -3503,80 +3421,83 @@ describe('v1.JobServiceClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob with call error', async () => { + it('invokes deleteHyperparameterTuningJob with call error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, expectedError); + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + undefined, + expectedError + ); await assert.rejects( - client.deleteModelDeploymentMonitoringJob(request), + client.deleteHyperparameterTuningJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob with LRO error', async () => { + it('invokes deleteHyperparameterTuningJob with LRO error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, undefined, expectedError); - const [operation] = await client.deleteModelDeploymentMonitoringJob( - request + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + undefined, + undefined, + expectedError ); + const [operation] = await client.deleteHyperparameterTuningJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteModelDeploymentMonitoringJobProgress without error', async () => { + it('invokes checkDeleteHyperparameterTuningJobProgress without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3591,7 +3512,7 @@ describe('v1.JobServiceClient', () => { client.operationsClient.getOperation = stubSimpleCall(expectedResponse); const decodedOperation = - await client.checkDeleteModelDeploymentMonitoringJobProgress( + await client.checkDeleteHyperparameterTuningJobProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -3599,7 +3520,7 @@ describe('v1.JobServiceClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteModelDeploymentMonitoringJobProgress with error', async () => { + it('invokes checkDeleteHyperparameterTuningJobProgress with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3611,88 +3532,1532 @@ describe('v1.JobServiceClient', () => { undefined, expectedError ); - await assert.rejects( - client.checkDeleteModelDeploymentMonitoringJobProgress(''), - expectedError + await assert.rejects( + client.checkDeleteHyperparameterTuningJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteNasJob', () => { + it('invokes deleteNasJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNasJob = stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteNasJob(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNasJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteNasJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob with call error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNasJob = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteNasJob(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob with LRO error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNasJob = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteNasJob(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteNasJobProgress without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteNasJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteNasJobProgress with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkDeleteNasJobProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteBatchPredictionJob', () => { + it('invokes deleteBatchPredictionJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteBatchPredictionJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteBatchPredictionJob(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteBatchPredictionJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteBatchPredictionJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob with call error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteBatchPredictionJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob with LRO error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteBatchPredictionJob(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteBatchPredictionJobProgress without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkDeleteBatchPredictionJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteBatchPredictionJobProgress with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteBatchPredictionJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateModelDeploymentMonitoringJob', () => { + it('invokes updateModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateModelDeploymentMonitoringJob( + request + ); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob with call error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, expectedError); + await assert.rejects( + client.updateModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob with LRO error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, undefined, expectedError); + const [operation] = await client.updateModelDeploymentMonitoringJob( + request + ); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateModelDeploymentMonitoringJobProgress without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkUpdateModelDeploymentMonitoringJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateModelDeploymentMonitoringJobProgress with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateModelDeploymentMonitoringJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteModelDeploymentMonitoringJob', () => { + it('invokes deleteModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteModelDeploymentMonitoringJob( + request + ); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob with call error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, expectedError); + await assert.rejects( + client.deleteModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob with LRO error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, undefined, expectedError); + const [operation] = await client.deleteModelDeploymentMonitoringJob( + request + ); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteModelDeploymentMonitoringJobProgress without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkDeleteModelDeploymentMonitoringJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteModelDeploymentMonitoringJobProgress with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteModelDeploymentMonitoringJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listCustomJobs', () => { + it('invokes listCustomJobs without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + ]; + client.innerApiCalls.listCustomJobs = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomJobs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobs without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + ]; + client.innerApiCalls.listCustomJobs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listCustomJobs( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ICustomJob[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobs with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listCustomJobs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listCustomJobs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobsStream without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + ]; + client.descriptors.page.listCustomJobs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listCustomJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.CustomJob[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.CustomJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomJobs, request) + ); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listCustomJobsStream with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomJobs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listCustomJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.CustomJob[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.CustomJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomJobs, request) + ); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listCustomJobs without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + ]; + client.descriptors.page.listCustomJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.ICustomJob[] = []; + const iterable = client.listCustomJobsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listCustomJobs with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomJobs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listCustomJobsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.ICustomJob[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listDataLabelingJobs', () => { + it('invokes listDataLabelingJobs without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + ]; + client.innerApiCalls.listDataLabelingJobs = + stubSimpleCall(expectedResponse); + const [response] = await client.listDataLabelingJobs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobs without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + ]; + client.innerApiCalls.listDataLabelingJobs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDataLabelingJobs( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobs with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listDataLabelingJobs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listDataLabelingJobs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobsStream without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + ]; + client.descriptors.page.listDataLabelingJobs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listDataLabelingJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.DataLabelingJob[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.DataLabelingJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + ); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listDataLabelingJobsStream with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDataLabelingJobs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listDataLabelingJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.DataLabelingJob[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.DataLabelingJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + ); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataLabelingJobs without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + ]; + client.descriptors.page.listDataLabelingJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] = + []; + const iterable = client.listDataLabelingJobsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataLabelingJobs with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDataLabelingJobs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDataLabelingJobsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listCustomJobs', () => { - it('invokes listCustomJobs without error', async () => { + describe('listHyperparameterTuningJobs', () => { + it('invokes listHyperparameterTuningJobs without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), ]; - client.innerApiCalls.listCustomJobs = stubSimpleCall(expectedResponse); - const [response] = await client.listCustomJobs(request); + client.innerApiCalls.listHyperparameterTuningJobs = + stubSimpleCall(expectedResponse); + const [response] = await client.listHyperparameterTuningJobs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobs without error using callback', async () => { + it('invokes listHyperparameterTuningJobs without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), ]; - client.innerApiCalls.listCustomJobs = + client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomJobs( + client.listHyperparameterTuningJobs( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.ICustomJob[] | null + result?: + | protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] + | null ) => { if (err) { reject(err); @@ -3705,80 +5070,86 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobs with error', async () => { + it('invokes listHyperparameterTuningJobs with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomJobs = stubSimpleCall( + client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomJobs(request), expectedError); + await assert.rejects( + client.listHyperparameterTuningJobs(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobsStream without error', async () => { + it('invokes listHyperparameterTuningJobsStream without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), ]; - client.descriptors.page.listCustomJobs.createStream = + client.descriptors.page.listHyperparameterTuningJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomJobsStream(request); + const stream = client.listHyperparameterTuningJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.CustomJob[] = []; + const responses: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob[] = + []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.CustomJob) => { + ( + response: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob + ) => { responses.push(response); } ); @@ -3792,12 +5163,21 @@ describe('v1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listCustomJobs, request) + .calledWith( + client.innerApiCalls.listHyperparameterTuningJobs, + request + ) ); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3805,30 +5185,33 @@ describe('v1.JobServiceClient', () => { ); }); - it('invokes listCustomJobsStream with error', async () => { + it('invokes listHyperparameterTuningJobsStream with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomJobs.createStream = + client.descriptors.page.listHyperparameterTuningJobs.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomJobsStream(request); + const stream = client.listHyperparameterTuningJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.CustomJob[] = []; + const responses: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob[] = + []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.CustomJob) => { + ( + response: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob + ) => { responses.push(response); } ); @@ -3841,12 +5224,21 @@ describe('v1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listCustomJobs, request) + .calledWith( + client.innerApiCalls.listHyperparameterTuningJobs, + request + ) ); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3854,48 +5246,53 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listCustomJobs without error', async () => { + it('uses async iteration with listHyperparameterTuningJobs without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), ]; - client.descriptors.page.listCustomJobs.asyncIterate = + client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.ICustomJob[] = []; - const iterable = client.listCustomJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] = + []; + const iterable = client.listHyperparameterTuningJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3903,39 +5300,44 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listCustomJobs with error', async () => { + it('uses async iteration with listHyperparameterTuningJobs with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomJobs.asyncIterate = + client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomJobsAsync(request); + const iterable = client.listHyperparameterTuningJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.ICustomJob[] = []; + const responses: protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3944,81 +5346,68 @@ describe('v1.JobServiceClient', () => { }); }); - describe('listDataLabelingJobs', () => { - it('invokes listDataLabelingJobs without error', async () => { + describe('listNasJobs', () => { + it('invokes listNasJobs without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), ]; - client.innerApiCalls.listDataLabelingJobs = - stubSimpleCall(expectedResponse); - const [response] = await client.listDataLabelingJobs(request); + client.innerApiCalls.listNasJobs = stubSimpleCall(expectedResponse); + const [response] = await client.listNasJobs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobs without error using callback', async () => { + it('invokes listNasJobs without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), ]; - client.innerApiCalls.listDataLabelingJobs = + client.innerApiCalls.listNasJobs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDataLabelingJobs( + client.listNasJobs( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] | null + result?: protos.google.cloud.aiplatform.v1.INasJob[] | null ) => { if (err) { reject(err); @@ -4031,81 +5420,74 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobs with error', async () => { + it('invokes listNasJobs with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDataLabelingJobs = stubSimpleCall( + client.innerApiCalls.listNasJobs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listDataLabelingJobs(request), expectedError); + await assert.rejects(client.listNasJobs(request), expectedError); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobsStream without error', async () => { + it('invokes listNasJobsStream without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), ]; - client.descriptors.page.listDataLabelingJobs.createStream = + client.descriptors.page.listNasJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDataLabelingJobsStream(request); + const stream = client.listNasJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.DataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1.NasJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.DataLabelingJob) => { + (response: protos.google.cloud.aiplatform.v1.NasJob) => { responses.push(response); } ); @@ -4119,12 +5501,12 @@ describe('v1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + .calledWith(client.innerApiCalls.listNasJobs, request) ); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4132,31 +5514,32 @@ describe('v1.JobServiceClient', () => { ); }); - it('invokes listDataLabelingJobsStream with error', async () => { + it('invokes listNasJobsStream with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataLabelingJobs.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listDataLabelingJobsStream(request); + client.descriptors.page.listNasJobs.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listNasJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.DataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1.NasJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.DataLabelingJob) => { + (response: protos.google.cloud.aiplatform.v1.NasJob) => { responses.push(response); } ); @@ -4169,12 +5552,12 @@ describe('v1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + .calledWith(client.innerApiCalls.listNasJobs, request) ); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4182,49 +5565,42 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listDataLabelingJobs without error', async () => { + it('uses async iteration with listNasJobs without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), ]; - client.descriptors.page.listDataLabelingJobs.asyncIterate = + client.descriptors.page.listNasJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] = - []; - const iterable = client.listDataLabelingJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1.INasJob[] = []; + const iterable = client.listNasJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - ( - client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4232,40 +5608,41 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listDataLabelingJobs with error', async () => { + it('uses async iteration with listNasJobs with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataLabelingJobs.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDataLabelingJobsAsync(request); + client.descriptors.page.listNasJobs.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listNasJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1.INasJob[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - ( - client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4274,83 +5651,81 @@ describe('v1.JobServiceClient', () => { }); }); - describe('listHyperparameterTuningJobs', () => { - it('invokes listHyperparameterTuningJobs without error', async () => { + describe('listNasTrialDetails', () => { + it('invokes listNasTrialDetails without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), ]; - client.innerApiCalls.listHyperparameterTuningJobs = + client.innerApiCalls.listNasTrialDetails = stubSimpleCall(expectedResponse); - const [response] = await client.listHyperparameterTuningJobs(request); + const [response] = await client.listNasTrialDetails(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobs without error using callback', async () => { + it('invokes listNasTrialDetails without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), ]; - client.innerApiCalls.listHyperparameterTuningJobs = + client.innerApiCalls.listNasTrialDetails = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listHyperparameterTuningJobs( + client.listNasTrialDetails( request, ( err?: Error | null, - result?: - | protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] - | null + result?: protos.google.cloud.aiplatform.v1.INasTrialDetail[] | null ) => { if (err) { reject(err); @@ -4363,86 +5738,81 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobs with error', async () => { + it('invokes listNasTrialDetails with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCall( + client.innerApiCalls.listNasTrialDetails = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listHyperparameterTuningJobs(request), - expectedError - ); + await assert.rejects(client.listNasTrialDetails(request), expectedError); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobsStream without error', async () => { + it('invokes listNasTrialDetailsStream without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), ]; - client.descriptors.page.listHyperparameterTuningJobs.createStream = + client.descriptors.page.listNasTrialDetails.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listHyperparameterTuningJobsStream(request); + const stream = client.listNasTrialDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1.NasTrialDetail[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob - ) => { + (response: protos.google.cloud.aiplatform.v1.NasTrialDetail) => { responses.push(response); } ); @@ -4456,21 +5826,12 @@ describe('v1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listHyperparameterTuningJobs, - request - ) + .calledWith(client.innerApiCalls.listNasTrialDetails, request) ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4478,33 +5839,31 @@ describe('v1.JobServiceClient', () => { ); }); - it('invokes listHyperparameterTuningJobsStream with error', async () => { + it('invokes listNasTrialDetailsStream with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHyperparameterTuningJobs.createStream = + client.descriptors.page.listNasTrialDetails.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listHyperparameterTuningJobsStream(request); + const stream = client.listNasTrialDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1.NasTrialDetail[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob - ) => { + (response: protos.google.cloud.aiplatform.v1.NasTrialDetail) => { responses.push(response); } ); @@ -4517,21 +5876,12 @@ describe('v1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listHyperparameterTuningJobs, - request - ) + .calledWith(client.innerApiCalls.listNasTrialDetails, request) ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4539,53 +5889,48 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listHyperparameterTuningJobs without error', async () => { + it('uses async iteration with listNasTrialDetails without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), ]; - client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = + client.descriptors.page.listNasTrialDetails.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] = - []; - const iterable = client.listHyperparameterTuningJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1.INasTrialDetail[] = []; + const iterable = client.listNasTrialDetailsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub + client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4593,27 +5938,27 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listHyperparameterTuningJobs with error', async () => { + it('uses async iteration with listNasTrialDetails with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = + client.descriptors.page.listNasTrialDetails.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listHyperparameterTuningJobsAsync(request); + const iterable = client.listNasTrialDetailsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1.INasTrialDetail[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -4621,16 +5966,12 @@ describe('v1.JobServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub + client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -8322,6 +9663,147 @@ describe('v1.JobServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts index e48659eb07eb..5a5005799ca3 100644 --- a/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts @@ -1469,65 +1469,64 @@ describe('v1beta1.JobServiceClient', () => { }); }); - describe('createBatchPredictionJob', () => { - it('invokes createBatchPredictionJob without error', async () => { + describe('createNasJob', () => { + it('invokes createNasJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ); - client.innerApiCalls.createBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.createBatchPredictionJob(request); + client.innerApiCalls.createNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.createNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob without error using callback', async () => { + it('invokes createNasJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ); - client.innerApiCalls.createBatchPredictionJob = + client.innerApiCalls.createNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createBatchPredictionJob( + client.createNasJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob | null + result?: protos.google.cloud.aiplatform.v1beta1.INasJob | null ) => { if (err) { reject(err); @@ -1540,131 +1539,124 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob with error', async () => { + it('invokes createNasJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createBatchPredictionJob = stubSimpleCall( + client.innerApiCalls.createNasJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.createNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob with closed client', async () => { + it('invokes createNasJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.createNasJob(request), expectedError); }); }); - describe('getBatchPredictionJob', () => { - it('invokes getBatchPredictionJob without error', async () => { + describe('getNasJob', () => { + it('invokes getNasJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ); - client.innerApiCalls.getBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.getBatchPredictionJob(request); + client.innerApiCalls.getNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.getNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob without error using callback', async () => { + it('invokes getNasJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ); - client.innerApiCalls.getBatchPredictionJob = + client.innerApiCalls.getNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getBatchPredictionJob( + client.getNasJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob | null + result?: protos.google.cloud.aiplatform.v1beta1.INasJob | null ) => { if (err) { reject(err); @@ -1677,84 +1669,75 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob with error', async () => { + it('invokes getNasJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getBatchPredictionJob = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.getBatchPredictionJob(request), - expectedError - ); + client.innerApiCalls.getNasJob = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob with closed client', async () => { + it('invokes getNasJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.getBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.getNasJob(request), expectedError); }); }); - describe('cancelBatchPredictionJob', () => { - it('invokes cancelBatchPredictionJob without error', async () => { + describe('cancelNasJob', () => { + it('invokes cancelNasJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; @@ -1762,31 +1745,30 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.cancelBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.cancelBatchPredictionJob(request); + client.innerApiCalls.cancelNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.cancelNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob without error using callback', async () => { + it('invokes cancelNasJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; @@ -1794,10 +1776,10 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.cancelBatchPredictionJob = + client.innerApiCalls.cancelNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.cancelBatchPredictionJob( + client.cancelNasJob( request, ( err?: Error | null, @@ -1814,133 +1796,124 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob with error', async () => { + it('invokes cancelNasJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall( + client.innerApiCalls.cancelNasJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.cancelBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.cancelNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob with closed client', async () => { + it('invokes cancelNasJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.cancelBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.cancelNasJob(request), expectedError); }); }); - describe('createModelDeploymentMonitoringJob', () => { - it('invokes createModelDeploymentMonitoringJob without error', async () => { + describe('getNasTrialDetail', () => { + it('invokes getNasTrialDetail without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() - ); - client.innerApiCalls.createModelDeploymentMonitoringJob = - stubSimpleCall(expectedResponse); - const [response] = await client.createModelDeploymentMonitoringJob( - request + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ); + client.innerApiCalls.getNasTrialDetail = stubSimpleCall(expectedResponse); + const [response] = await client.getNasTrialDetail(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes getNasTrialDetail without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ); - client.innerApiCalls.createModelDeploymentMonitoringJob = + client.innerApiCalls.getNasTrialDetail = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createModelDeploymentMonitoringJob( + client.getNasTrialDetail( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob | null + result?: protos.google.cloud.aiplatform.v1beta1.INasTrialDetail | null ) => { if (err) { reject(err); @@ -1953,131 +1926,125 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob with error', async () => { + it('invokes getNasTrialDetail with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.getNasTrialDetail = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createModelDeploymentMonitoringJob(request), - expectedError - ); + await assert.rejects(client.getNasTrialDetail(request), expectedError); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob with closed client', async () => { + it('invokes getNasTrialDetail with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createModelDeploymentMonitoringJob(request), - expectedError - ); + await assert.rejects(client.getNasTrialDetail(request), expectedError); }); }); - describe('getModelDeploymentMonitoringJob', () => { - it('invokes getModelDeploymentMonitoringJob without error', async () => { + describe('createBatchPredictionJob', () => { + it('invokes createBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() ); - client.innerApiCalls.getModelDeploymentMonitoringJob = + client.innerApiCalls.createBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.getModelDeploymentMonitoringJob(request); + const [response] = await client.createBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes createBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() ); - client.innerApiCalls.getModelDeploymentMonitoringJob = + client.innerApiCalls.createBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getModelDeploymentMonitoringJob( + client.createBatchPredictionJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob | null + result?: protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob | null ) => { if (err) { reject(err); @@ -2090,133 +2057,131 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob with error', async () => { + it('invokes createBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.createBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.getModelDeploymentMonitoringJob(request), + client.createBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob with closed client', async () => { + it('invokes createBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.getModelDeploymentMonitoringJob(request), + client.createBatchPredictionJob(request), expectedError ); }); }); - describe('pauseModelDeploymentMonitoringJob', () => { - it('invokes pauseModelDeploymentMonitoringJob without error', async () => { + describe('getBatchPredictionJob', () => { + it('invokes getBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() ); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = + client.innerApiCalls.getBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.pauseModelDeploymentMonitoringJob( - request - ); + const [response] = await client.getBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes getBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() ); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = + client.innerApiCalls.getBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.pauseModelDeploymentMonitoringJob( + client.getBatchPredictionJob( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob | null ) => { if (err) { reject(err); @@ -2229,84 +2194,84 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob with error', async () => { + it('invokes getBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.getBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.pauseModelDeploymentMonitoringJob(request), + client.getBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob with closed client', async () => { + it('invokes getBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.pauseModelDeploymentMonitoringJob(request), + client.getBatchPredictionJob(request), expectedError ); }); }); - describe('resumeModelDeploymentMonitoringJob', () => { - it('invokes resumeModelDeploymentMonitoringJob without error', async () => { + describe('cancelBatchPredictionJob', () => { + it('invokes cancelBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -2314,33 +2279,31 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.resumeModelDeploymentMonitoringJob( - request - ); + const [response] = await client.cancelBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes cancelBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -2348,10 +2311,10 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.resumeModelDeploymentMonitoringJob( + client.cancelBatchPredictionJob( request, ( err?: Error | null, @@ -2368,135 +2331,133 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob with error', async () => { + it('invokes cancelBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.resumeModelDeploymentMonitoringJob(request), + client.cancelBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob with closed client', async () => { + it('invokes cancelBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.resumeModelDeploymentMonitoringJob(request), + client.cancelBatchPredictionJob(request), expectedError ); }); }); - describe('deleteCustomJob', () => { - it('invokes deleteCustomJob without error', async () => { + describe('createModelDeploymentMonitoringJob', () => { + it('invokes createModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + ); + client.innerApiCalls.createModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.createModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteCustomJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteCustomJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob without error using callback', async () => { + it('invokes createModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() ); - client.innerApiCalls.deleteCustomJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.createModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteCustomJob( + client.createModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - > | null + result?: protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob | null ) => { if (err) { reject(err); @@ -2506,191 +2467,273 @@ describe('v1beta1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob with call error', async () => { + it('invokes createModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteCustomJob = stubLongRunningCall( + client.innerApiCalls.createModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteCustomJob(request), expectedError); + await assert.rejects( + client.createModelDeploymentMonitoringJob(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob with LRO error', async () => { + it('invokes createModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createModelDeploymentMonitoringJob(request), + expectedError + ); + }); + }); + + describe('getModelDeploymentMonitoringJob', () => { + it('invokes getModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteCustomJob = stubLongRunningCall( - undefined, - undefined, - expectedError + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() ); - const [operation] = await client.deleteCustomJob(request); - await assert.rejects(operation.promise(), expectedError); + client.innerApiCalls.getModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.getModelDeploymentMonitoringJob(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteCustomJobProgress without error', async () => { + it('invokes getModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteCustomJobProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', + ['name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + ); + client.innerApiCalls.getModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteCustomJobProgress with error', async () => { + it('invokes getModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.getModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.checkDeleteCustomJobProgress(''), + client.getModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getModelDeploymentMonitoringJob with closed client', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteDataLabelingJob', () => { - it('invokes deleteDataLabelingJob without error', async () => { + describe('pauseModelDeploymentMonitoringJob', () => { + it('invokes pauseModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.pauseModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.pauseModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteDataLabelingJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteDataLabelingJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob without error using callback', async () => { + it('invokes pauseModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteDataLabelingJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.pauseModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteDataLabelingJob( + client.pauseModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2700,194 +2743,136 @@ describe('v1beta1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob with call error', async () => { + it('invokes pauseModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + client.innerApiCalls.pauseModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteDataLabelingJob(request), + client.pauseModelDeploymentMonitoringJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob with LRO error', async () => { + it('invokes pauseModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteDataLabelingJob(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeleteDataLabelingJobProgress without error', async () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteDataLabelingJobProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteDataLabelingJobProgress with error', async () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteDataLabelingJobProgress(''), + client.pauseModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteHyperparameterTuningJob', () => { - it('invokes deleteHyperparameterTuningJob without error', async () => { + describe('resumeModelDeploymentMonitoringJob', () => { + it('invokes resumeModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.resumeModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.resumeModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteHyperparameterTuningJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteHyperparameterTuningJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob without error using callback', async () => { + it('invokes resumeModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteHyperparameterTuningJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.resumeModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteHyperparameterTuningJob( + client.resumeModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2897,144 +2882,87 @@ describe('v1beta1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob with call error', async () => { + it('invokes resumeModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + client.innerApiCalls.resumeModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteHyperparameterTuningJob(request), + client.resumeModelDeploymentMonitoringJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob with LRO error', async () => { + it('invokes resumeModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteHyperparameterTuningJob(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeleteHyperparameterTuningJobProgress without error', async () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkDeleteHyperparameterTuningJobProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteHyperparameterTuningJobProgress with error', async () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteHyperparameterTuningJobProgress(''), + client.resumeModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteBatchPredictionJob', () => { - it('invokes deleteBatchPredictionJob without error', async () => { + describe('deleteCustomJob', () => { + it('invokes deleteCustomJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; @@ -3042,32 +2970,32 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteBatchPredictionJob = + client.innerApiCalls.deleteCustomJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteBatchPredictionJob(request); + const [operation] = await client.deleteCustomJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob without error using callback', async () => { + it('invokes deleteCustomJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; @@ -3075,10 +3003,10 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteBatchPredictionJob = + client.innerApiCalls.deleteCustomJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteBatchPredictionJob( + client.deleteCustomJob( request, ( err?: Error | null, @@ -3102,83 +3030,80 @@ describe('v1beta1.JobServiceClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob with call error', async () => { + it('invokes deleteCustomJob with call error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + client.innerApiCalls.deleteCustomJob = stubLongRunningCall( undefined, expectedError ); - await assert.rejects( - client.deleteBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.deleteCustomJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob with LRO error', async () => { + it('invokes deleteCustomJob with LRO error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + client.innerApiCalls.deleteCustomJob = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.deleteBatchPredictionJob(request); + const [operation] = await client.deleteCustomJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteBatchPredictionJobProgress without error', async () => { + it('invokes checkDeleteCustomJobProgress without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3192,16 +3117,15 @@ describe('v1beta1.JobServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkDeleteBatchPredictionJobProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeleteCustomJobProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteBatchPredictionJobProgress with error', async () => { + it('invokes checkDeleteCustomJobProgress with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3214,79 +3138,75 @@ describe('v1beta1.JobServiceClient', () => { expectedError ); await assert.rejects( - client.checkDeleteBatchPredictionJobProgress(''), + client.checkDeleteCustomJobProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateModelDeploymentMonitoringJob', () => { - it('invokes updateModelDeploymentMonitoringJob without error', async () => { + describe('deleteDataLabelingJob', () => { + it('invokes deleteDataLabelingJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateModelDeploymentMonitoringJob = + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.updateModelDeploymentMonitoringJob( - request - ); + const [operation] = await client.deleteDataLabelingJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes deleteDataLabelingJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateModelDeploymentMonitoringJob = + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateModelDeploymentMonitoringJob( + client.deleteDataLabelingJob( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata > | null ) => { if (err) { @@ -3298,88 +3218,89 @@ describe('v1beta1.JobServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob with call error', async () => { + it('invokes deleteDataLabelingJob with call error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, expectedError); + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + undefined, + expectedError + ); await assert.rejects( - client.updateModelDeploymentMonitoringJob(request), + client.deleteDataLabelingJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob with LRO error', async () => { + it('invokes deleteDataLabelingJob with LRO error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, undefined, expectedError); - const [operation] = await client.updateModelDeploymentMonitoringJob( - request + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + undefined, + undefined, + expectedError ); + const [operation] = await client.deleteDataLabelingJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateModelDeploymentMonitoringJobProgress without error', async () => { + it('invokes checkDeleteDataLabelingJobProgress without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3393,16 +3314,15 @@ describe('v1beta1.JobServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkUpdateModelDeploymentMonitoringJobProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeleteDataLabelingJobProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkUpdateModelDeploymentMonitoringJobProgress with error', async () => { + it('invokes checkDeleteDataLabelingJobProgress with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3415,25 +3335,25 @@ describe('v1beta1.JobServiceClient', () => { expectedError ); await assert.rejects( - client.checkUpdateModelDeploymentMonitoringJobProgress(''), + client.checkDeleteDataLabelingJobProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteModelDeploymentMonitoringJob', () => { - it('invokes deleteModelDeploymentMonitoringJob without error', async () => { + describe('deleteHyperparameterTuningJob', () => { + it('invokes deleteHyperparameterTuningJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3441,34 +3361,32 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteModelDeploymentMonitoringJob( - request - ); + const [operation] = await client.deleteHyperparameterTuningJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes deleteHyperparameterTuningJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3476,10 +3394,10 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteModelDeploymentMonitoringJob( + client.deleteHyperparameterTuningJob( request, ( err?: Error | null, @@ -3503,80 +3421,83 @@ describe('v1beta1.JobServiceClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob with call error', async () => { + it('invokes deleteHyperparameterTuningJob with call error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, expectedError); + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + undefined, + expectedError + ); await assert.rejects( - client.deleteModelDeploymentMonitoringJob(request), + client.deleteHyperparameterTuningJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob with LRO error', async () => { + it('invokes deleteHyperparameterTuningJob with LRO error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, undefined, expectedError); - const [operation] = await client.deleteModelDeploymentMonitoringJob( - request + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + undefined, + undefined, + expectedError ); + const [operation] = await client.deleteHyperparameterTuningJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteModelDeploymentMonitoringJobProgress without error', async () => { + it('invokes checkDeleteHyperparameterTuningJobProgress without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3591,7 +3512,7 @@ describe('v1beta1.JobServiceClient', () => { client.operationsClient.getOperation = stubSimpleCall(expectedResponse); const decodedOperation = - await client.checkDeleteModelDeploymentMonitoringJobProgress( + await client.checkDeleteHyperparameterTuningJobProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -3599,100 +3520,1553 @@ describe('v1beta1.JobServiceClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteModelDeploymentMonitoringJobProgress with error', async () => { + it('invokes checkDeleteHyperparameterTuningJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteHyperparameterTuningJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteNasJob', () => { + it('invokes deleteNasJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNasJob = stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteNasJob(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNasJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteNasJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob with call error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNasJob = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteNasJob(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob with LRO error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNasJob = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteNasJob(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteNasJobProgress without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteNasJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteNasJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkDeleteNasJobProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteBatchPredictionJob', () => { + it('invokes deleteBatchPredictionJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteBatchPredictionJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteBatchPredictionJob(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteBatchPredictionJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteBatchPredictionJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob with call error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteBatchPredictionJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob with LRO error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteBatchPredictionJob(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteBatchPredictionJobProgress without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkDeleteBatchPredictionJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteBatchPredictionJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteBatchPredictionJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateModelDeploymentMonitoringJob', () => { + it('invokes updateModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateModelDeploymentMonitoringJob( + request + ); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob with call error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, expectedError); + await assert.rejects( + client.updateModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob with LRO error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, undefined, expectedError); + const [operation] = await client.updateModelDeploymentMonitoringJob( + request + ); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateModelDeploymentMonitoringJobProgress without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkUpdateModelDeploymentMonitoringJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateModelDeploymentMonitoringJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkUpdateModelDeploymentMonitoringJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteModelDeploymentMonitoringJob', () => { + it('invokes deleteModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteModelDeploymentMonitoringJob( + request + ); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob with call error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, expectedError); + await assert.rejects( + client.deleteModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob with LRO error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, undefined, expectedError); + const [operation] = await client.deleteModelDeploymentMonitoringJob( + request + ); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteModelDeploymentMonitoringJobProgress without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = + await client.checkDeleteModelDeploymentMonitoringJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteModelDeploymentMonitoringJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteModelDeploymentMonitoringJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listCustomJobs', () => { + it('invokes listCustomJobs without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + ]; + client.innerApiCalls.listCustomJobs = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomJobs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobs without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + ]; + client.innerApiCalls.listCustomJobs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listCustomJobs( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobs with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listCustomJobs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listCustomJobs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobsStream without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + ]; + client.descriptors.page.listCustomJobs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listCustomJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.CustomJob[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.CustomJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomJobs, request) + ); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listCustomJobsStream with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomJobs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listCustomJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.CustomJob[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.CustomJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomJobs, request) + ); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listCustomJobs without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + ]; + client.descriptors.page.listCustomJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] = []; + const iterable = client.listCustomJobsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listCustomJobs with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomJobs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listCustomJobsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listDataLabelingJobs', () => { + it('invokes listDataLabelingJobs without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + ]; + client.innerApiCalls.listDataLabelingJobs = + stubSimpleCall(expectedResponse); + const [response] = await client.listDataLabelingJobs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobs without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + ]; + client.innerApiCalls.listDataLabelingJobs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDataLabelingJobs( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobs with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listDataLabelingJobs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listDataLabelingJobs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobsStream without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + ]; + client.descriptors.page.listDataLabelingJobs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listDataLabelingJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + ); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listDataLabelingJobsStream with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDataLabelingJobs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listDataLabelingJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + ); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataLabelingJobs without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + ]; + client.descriptors.page.listDataLabelingJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] = + []; + const iterable = client.listDataLabelingJobsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataLabelingJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + client.descriptors.page.listDataLabelingJobs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDataLabelingJobsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request ); - await assert.rejects( - client.checkDeleteModelDeploymentMonitoringJobProgress(''), - expectedError + assert( + (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listCustomJobs', () => { - it('invokes listCustomJobs without error', async () => { + describe('listHyperparameterTuningJobs', () => { + it('invokes listHyperparameterTuningJobs without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), ]; - client.innerApiCalls.listCustomJobs = stubSimpleCall(expectedResponse); - const [response] = await client.listCustomJobs(request); + client.innerApiCalls.listHyperparameterTuningJobs = + stubSimpleCall(expectedResponse); + const [response] = await client.listHyperparameterTuningJobs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobs without error using callback', async () => { + it('invokes listHyperparameterTuningJobs without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), ]; - client.innerApiCalls.listCustomJobs = + client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomJobs( + client.listHyperparameterTuningJobs( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] | null + result?: + | protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] + | null ) => { if (err) { reject(err); @@ -3705,81 +5079,86 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobs with error', async () => { + it('invokes listHyperparameterTuningJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomJobs = stubSimpleCall( + client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomJobs(request), expectedError); + await assert.rejects( + client.listHyperparameterTuningJobs(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobsStream without error', async () => { + it('invokes listHyperparameterTuningJobsStream without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), ]; - client.descriptors.page.listCustomJobs.createStream = + client.descriptors.page.listHyperparameterTuningJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomJobsStream(request); + const stream = client.listHyperparameterTuningJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.CustomJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1beta1.CustomJob) => { + ( + response: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + ) => { responses.push(response); } ); @@ -3793,12 +5172,21 @@ describe('v1beta1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listCustomJobs, request) + .calledWith( + client.innerApiCalls.listHyperparameterTuningJobs, + request + ) ); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3806,31 +5194,33 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('invokes listCustomJobsStream with error', async () => { + it('invokes listHyperparameterTuningJobsStream with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomJobs.createStream = + client.descriptors.page.listHyperparameterTuningJobs.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomJobsStream(request); + const stream = client.listHyperparameterTuningJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.CustomJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1beta1.CustomJob) => { + ( + response: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + ) => { responses.push(response); } ); @@ -3843,12 +5233,21 @@ describe('v1beta1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listCustomJobs, request) + .calledWith( + client.innerApiCalls.listHyperparameterTuningJobs, + request + ) ); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3856,48 +5255,53 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listCustomJobs without error', async () => { + it('uses async iteration with listHyperparameterTuningJobs without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), ]; - client.descriptors.page.listCustomJobs.asyncIterate = + client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] = []; - const iterable = client.listCustomJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] = + []; + const iterable = client.listHyperparameterTuningJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3905,27 +5309,27 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listCustomJobs with error', async () => { + it('uses async iteration with listHyperparameterTuningJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomJobs.asyncIterate = + client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomJobsAsync(request); + const iterable = client.listHyperparameterTuningJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -3933,12 +5337,16 @@ describe('v1beta1.JobServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3947,83 +5355,80 @@ describe('v1beta1.JobServiceClient', () => { }); }); - describe('listDataLabelingJobs', () => { - it('invokes listDataLabelingJobs without error', async () => { + describe('listNasJobs', () => { + it('invokes listNasJobs without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), ]; - client.innerApiCalls.listDataLabelingJobs = - stubSimpleCall(expectedResponse); - const [response] = await client.listDataLabelingJobs(request); + client.innerApiCalls.listNasJobs = stubSimpleCall(expectedResponse); + const [response] = await client.listNasJobs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobs without error using callback', async () => { + it('invokes listNasJobs without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), ]; - client.innerApiCalls.listDataLabelingJobs = + client.innerApiCalls.listNasJobs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDataLabelingJobs( + client.listNasJobs( request, ( err?: Error | null, - result?: - | protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] - | null + result?: protos.google.cloud.aiplatform.v1beta1.INasJob[] | null ) => { if (err) { reject(err); @@ -4036,83 +5441,80 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobs with error', async () => { + it('invokes listNasJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDataLabelingJobs = stubSimpleCall( + client.innerApiCalls.listNasJobs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listDataLabelingJobs(request), expectedError); + await assert.rejects(client.listNasJobs(request), expectedError); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobsStream without error', async () => { + it('invokes listNasJobsStream without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), ]; - client.descriptors.page.listDataLabelingJobs.createStream = + client.descriptors.page.listNasJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDataLabelingJobsStream(request); + const stream = client.listNasJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1beta1.NasJob[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob - ) => { + (response: protos.google.cloud.aiplatform.v1beta1.NasJob) => { responses.push(response); } ); @@ -4126,12 +5528,12 @@ describe('v1beta1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + .calledWith(client.innerApiCalls.listNasJobs, request) ); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4139,33 +5541,32 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('invokes listDataLabelingJobsStream with error', async () => { + it('invokes listNasJobsStream with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataLabelingJobs.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listDataLabelingJobsStream(request); + client.descriptors.page.listNasJobs.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listNasJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1beta1.NasJob[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob - ) => { + (response: protos.google.cloud.aiplatform.v1beta1.NasJob) => { responses.push(response); } ); @@ -4178,12 +5579,12 @@ describe('v1beta1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + .calledWith(client.innerApiCalls.listNasJobs, request) ); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4191,49 +5592,48 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listDataLabelingJobs without error', async () => { + it('uses async iteration with listNasJobs without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), ]; - client.descriptors.page.listDataLabelingJobs.asyncIterate = + client.descriptors.page.listNasJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] = - []; - const iterable = client.listDataLabelingJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1beta1.INasJob[] = []; + const iterable = client.listNasJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - ( - client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4241,40 +5641,41 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listDataLabelingJobs with error', async () => { + it('uses async iteration with listNasJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataLabelingJobs.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDataLabelingJobsAsync(request); + client.descriptors.page.listNasJobs.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listNasJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1beta1.INasJob[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - ( - client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4283,82 +5684,82 @@ describe('v1beta1.JobServiceClient', () => { }); }); - describe('listHyperparameterTuningJobs', () => { - it('invokes listHyperparameterTuningJobs without error', async () => { + describe('listNasTrialDetails', () => { + it('invokes listNasTrialDetails without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), ]; - client.innerApiCalls.listHyperparameterTuningJobs = + client.innerApiCalls.listNasTrialDetails = stubSimpleCall(expectedResponse); - const [response] = await client.listHyperparameterTuningJobs(request); + const [response] = await client.listNasTrialDetails(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobs without error using callback', async () => { + it('invokes listNasTrialDetails without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), ]; - client.innerApiCalls.listHyperparameterTuningJobs = + client.innerApiCalls.listNasTrialDetails = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listHyperparameterTuningJobs( + client.listNasTrialDetails( request, ( err?: Error | null, result?: - | protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] + | protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[] | null ) => { if (err) { @@ -4372,86 +5773,81 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobs with error', async () => { + it('invokes listNasTrialDetails with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCall( + client.innerApiCalls.listNasTrialDetails = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listHyperparameterTuningJobs(request), - expectedError - ); + await assert.rejects(client.listNasTrialDetails(request), expectedError); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobsStream without error', async () => { + it('invokes listNasTrialDetailsStream without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), ]; - client.descriptors.page.listHyperparameterTuningJobs.createStream = + client.descriptors.page.listNasTrialDetails.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listHyperparameterTuningJobsStream(request); + const stream = client.listNasTrialDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.NasTrialDetail[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - ) => { + (response: protos.google.cloud.aiplatform.v1beta1.NasTrialDetail) => { responses.push(response); } ); @@ -4465,21 +5861,12 @@ describe('v1beta1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listHyperparameterTuningJobs, - request - ) + .calledWith(client.innerApiCalls.listNasTrialDetails, request) ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4487,33 +5874,31 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('invokes listHyperparameterTuningJobsStream with error', async () => { + it('invokes listNasTrialDetailsStream with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHyperparameterTuningJobs.createStream = + client.descriptors.page.listNasTrialDetails.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listHyperparameterTuningJobsStream(request); + const stream = client.listNasTrialDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.NasTrialDetail[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - ) => { + (response: protos.google.cloud.aiplatform.v1beta1.NasTrialDetail) => { responses.push(response); } ); @@ -4526,21 +5911,12 @@ describe('v1beta1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listHyperparameterTuningJobs, - request - ) + .calledWith(client.innerApiCalls.listNasTrialDetails, request) ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4548,53 +5924,49 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listHyperparameterTuningJobs without error', async () => { + it('uses async iteration with listNasTrialDetails without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), ]; - client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = + client.descriptors.page.listNasTrialDetails.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[] = []; - const iterable = client.listHyperparameterTuningJobsAsync(request); + const iterable = client.listNasTrialDetailsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub + client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4602,27 +5974,27 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listHyperparameterTuningJobs with error', async () => { + it('uses async iteration with listNasTrialDetails with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = + client.descriptors.page.listNasTrialDetails.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listHyperparameterTuningJobsAsync(request); + const iterable = client.listNasTrialDetailsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -4630,16 +6002,12 @@ describe('v1beta1.JobServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub + client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -8416,6 +9784,147 @@ describe('v1beta1.JobServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts index e14f0184ccf5..9a3c5d32f9fe 100644 --- a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts @@ -8509,6 +8509,147 @@ describe('v1.MetadataServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts index 8ad599a0c09d..0c9a13adfaf7 100644 --- a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts @@ -8650,6 +8650,147 @@ describe('v1beta1.MetadataServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts index 9a88853b7709..0a903f9889af 100644 --- a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts @@ -3404,6 +3404,147 @@ describe('v1.MigrationServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts index 65049fdf9dc0..6683ce39ae39 100644 --- a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts @@ -3490,6 +3490,147 @@ describe('v1beta1.MigrationServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts index 43afd6ae1045..416b13c42cb8 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts @@ -1961,6 +1961,196 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('copyModel', () => { + it('invokes copyModel without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.copyModel = stubLongRunningCall(expectedResponse); + const [operation] = await client.copyModel(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.copyModel = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.copyModel( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel with call error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.copyModel = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.copyModel(request), expectedError); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel with LRO error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.copyModel = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.copyModel(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCopyModelProgress without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCopyModelProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCopyModelProgress with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkCopyModelProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listModels', () => { it('invokes listModels without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ @@ -5843,6 +6033,147 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts index 49e1bb4551ce..6a099986884e 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts @@ -2161,6 +2161,196 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('copyModel', () => { + it('invokes copyModel without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.copyModel = stubLongRunningCall(expectedResponse); + const [operation] = await client.copyModel(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel without error using callback', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.copyModel = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.copyModel( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel with call error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.copyModel = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.copyModel(request), expectedError); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel with LRO error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.copyModel = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.copyModel(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCopyModelProgress without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCopyModelProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCopyModelProgress with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkCopyModelProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listModels', () => { it('invokes listModels without error', async () => { const client = new modelserviceModule.v1beta1.ModelServiceClient({ @@ -6178,6 +6368,147 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts index 5393114b02e4..a8f1cd8812b6 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts @@ -4718,6 +4718,147 @@ describe('v1.PipelineServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts index e156d17cf2b1..072bc3bf66e9 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts @@ -4809,6 +4809,147 @@ describe('v1beta1.PipelineServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts index d290db674dd4..104a4ca0c44b 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts @@ -2801,6 +2801,147 @@ describe('v1.PredictionServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts index 45c0ce2e9c88..43d8051423f9 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts @@ -2939,6 +2939,149 @@ describe('v1beta1.PredictionServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts index 6d52146da736..0c61b51e9f92 100644 --- a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts @@ -3983,6 +3983,149 @@ describe('v1.SpecialistPoolServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts index b727ba22eefe..cb03f349e35a 100644 --- a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts @@ -4070,6 +4070,149 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts index db37fdeb0644..7071e9acb930 100644 --- a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts @@ -8219,6 +8219,147 @@ describe('v1.TensorboardServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts index 43ce533242ab..a74e510dd936 100644 --- a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts @@ -8513,6 +8513,149 @@ describe('v1beta1.TensorboardServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts index 036860b56aa8..0fe87b2a791a 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts @@ -5276,6 +5276,147 @@ describe('v1.VizierServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts index 21323ddcb465..31a34db895b4 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts @@ -5405,6 +5405,147 @@ describe('v1beta1.VizierServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { From fadd502bd91d470528abec33871776ab1875929d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 16:52:19 -0800 Subject: [PATCH 26/38] feat: add format-specific resources MavenArtifact, NpmPackage, `KfpArtifact` and `PythonPackage` (#3940) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add format-specific resources `MavenArtifact`, `NpmPackage`, `KfpArtifact` and `PythonPackage` feat: add `order_by` to `ListDockerImages` feat: add an API to get and update VPCSC config feat: add `BatchDeleteVersionMetadata` to return version that failed to delete fix: make `GetFileRequest.name` and `ListFilesRequest.parent` required fix: make `Package` a resource fix: deprecate `REDIRECTION_FROM_GCR_IO_FINALIZED` PiperOrigin-RevId: 506935629 Source-Link: https://github.com/googleapis/googleapis/commit/c807b741ff0687cb002897e0c92ef8f74f5d0049 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d43260cabeeceeb06fb9f275d907454a67945486 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWRldnRvb2xzLWFydGlmYWN0cmVnaXN0cnkvLk93bEJvdC55YW1sIiwiaCI6ImQ0MzI2MGNhYmVlY2VlYjA2ZmI5ZjI3NWQ5MDc0NTRhNjc5NDU0ODYifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update .gitignore to always include protos folder Use gapic-generator-typescript v3.0.0. PiperOrigin-RevId: 507004755 Source-Link: https://github.com/googleapis/googleapis/commit/d784f3c1043616fc0646e9ce7afa1b9161cc02de Source-Link: https://github.com/googleapis/googleapis-gen/commit/5e64ba8615f65fdedb1fcd6ac792e5ea621027e4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWRldnRvb2xzLWFydGlmYWN0cmVnaXN0cnkvLk93bEJvdC55YW1sIiwiaCI6IjVlNjRiYTg2MTVmNjVmZGVkYjFmY2Q2YWM3OTJlNWVhNjIxMDI3ZTQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWRldnRvb2xzLWFydGlmYWN0cmVnaXN0cnkvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../.gitignore | 12 +- .../README.md | 8 + .../artifactregistry/v1/apt_artifact.proto | 4 +- .../artifactregistry/v1/artifact.proto | 245 +- .../devtools/artifactregistry/v1/file.proto | 36 +- .../artifactregistry/v1/package.proto | 20 +- .../artifactregistry/v1/service.proto | 109 +- .../artifactregistry/v1/settings.proto | 2 +- .../artifactregistry/v1/version.proto | 12 +- .../artifactregistry/v1/vpcsc_config.proto | 86 + .../artifactregistry/v1/yum_artifact.proto | 4 +- .../protos/protos.d.ts | 5602 ++++-- .../protos/protos.js | 14283 ++++++++++------ .../protos/protos.json | 531 +- .../samples/README.md | 144 + .../v1/artifact_registry.get_file.js | 5 +- .../artifact_registry.get_maven_artifact.js | 61 + .../v1/artifact_registry.get_npm_package.js | 61 + .../artifact_registry.get_python_package.js | 61 + .../artifact_registry.get_v_p_c_s_c_config.js | 61 + .../artifact_registry.list_docker_images.js | 7 +- .../v1/artifact_registry.list_files.js | 7 +- .../artifact_registry.list_maven_artifacts.js | 72 + .../v1/artifact_registry.list_npm_packages.js | 72 + .../artifact_registry.list_python_packages.js | 72 + ...tifact_registry.update_v_p_c_s_c_config.js | 64 + ...a.google.devtools.artifactregistry.v1.json | 358 +- .../src/v1/artifact_registry_client.ts | 1935 ++- .../v1/artifact_registry_client_config.json | 40 + .../src/v1/artifact_registry_proto_list.json | 1 + .../src/v1/gapic_metadata.json | 92 + .../test/gapic_artifact_registry_v1.ts | 4629 +++-- 32 files changed, 20525 insertions(+), 8171 deletions(-) create mode 100644 packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/vpcsc_config.proto create mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_maven_artifact.js create mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_npm_package.js create mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_python_package.js create mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js create mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_maven_artifacts.js create mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_npm_packages.js create mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_python_packages.js create mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js diff --git a/packages/google-devtools-artifactregistry/.gitignore b/packages/google-devtools-artifactregistry/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-devtools-artifactregistry/.gitignore +++ b/packages/google-devtools-artifactregistry/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-devtools-artifactregistry/README.md b/packages/google-devtools-artifactregistry/README.md index 397ef8c76ea5..e4d841bd10c7 100644 --- a/packages/google-devtools-artifactregistry/README.md +++ b/packages/google-devtools-artifactregistry/README.md @@ -97,16 +97,23 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Artifact_registry.get_docker_image | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_docker_image.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_docker_image.js,samples/README.md) | | Artifact_registry.get_file | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js,samples/README.md) | | Artifact_registry.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_iam_policy.js,samples/README.md) | +| Artifact_registry.get_maven_artifact | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_maven_artifact.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_maven_artifact.js,samples/README.md) | +| Artifact_registry.get_npm_package | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_npm_package.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_npm_package.js,samples/README.md) | | Artifact_registry.get_package | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_package.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_package.js,samples/README.md) | | Artifact_registry.get_project_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_project_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_project_settings.js,samples/README.md) | +| Artifact_registry.get_python_package | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_python_package.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_python_package.js,samples/README.md) | | Artifact_registry.get_repository | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_repository.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_repository.js,samples/README.md) | | Artifact_registry.get_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_tag.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_tag.js,samples/README.md) | +| Artifact_registry.get_v_p_c_s_c_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js,samples/README.md) | | Artifact_registry.get_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_version.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_version.js,samples/README.md) | | Artifact_registry.import_apt_artifacts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_apt_artifacts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_apt_artifacts.js,samples/README.md) | | Artifact_registry.import_yum_artifacts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_yum_artifacts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_yum_artifacts.js,samples/README.md) | | Artifact_registry.list_docker_images | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js,samples/README.md) | | Artifact_registry.list_files | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js,samples/README.md) | +| Artifact_registry.list_maven_artifacts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_maven_artifacts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_maven_artifacts.js,samples/README.md) | +| Artifact_registry.list_npm_packages | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_npm_packages.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_npm_packages.js,samples/README.md) | | Artifact_registry.list_packages | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_packages.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_packages.js,samples/README.md) | +| Artifact_registry.list_python_packages | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_python_packages.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_python_packages.js,samples/README.md) | | Artifact_registry.list_repositories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_repositories.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_repositories.js,samples/README.md) | | Artifact_registry.list_tags | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_tags.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_tags.js,samples/README.md) | | Artifact_registry.list_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_versions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_versions.js,samples/README.md) | @@ -115,6 +122,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Artifact_registry.update_project_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_project_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_project_settings.js,samples/README.md) | | Artifact_registry.update_repository | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_repository.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_repository.js,samples/README.md) | | Artifact_registry.update_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_tag.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_tag.js,samples/README.md) | +| Artifact_registry.update_v_p_c_s_c_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js,samples/README.md) | | Artifact_registry.create_repository | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_repository.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_repository.js,samples/README.md) | | Artifact_registry.create_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_tag.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_tag.js,samples/README.md) | | Artifact_registry.delete_package | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_package.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_package.js,samples/README.md) | diff --git a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/apt_artifact.proto b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/apt_artifact.proto index c8fcb10c4e85..9e6fa09eecf9 100644 --- a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/apt_artifact.proto +++ b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/apt_artifact.proto @@ -111,6 +111,4 @@ message ImportAptArtifactsResponse { } // The operation metadata for importing artifacts. -message ImportAptArtifactsMetadata { - -} +message ImportAptArtifactsMetadata {} diff --git a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/artifact.proto b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/artifact.proto index 14173d57a26c..f5c1fa11ca40 100644 --- a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/artifact.proto +++ b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/artifact.proto @@ -40,8 +40,8 @@ message DockerImage { pattern: "projects/{project}/locations/{location}/repositories/{repository}/dockerImages/{docker_image}" }; - // Required. registry_location, project_id, repository_name and image id forms a unique - // image + // Required. registry_location, project_id, repository_name and image id forms + // a unique image // name:`projects//locations//repository//dockerImages/`. // For example, // "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ @@ -80,11 +80,16 @@ message DockerImage { // The build time is returned to the client as an RFC 3339 string, which can // be easily used with the JavaScript Date constructor. google.protobuf.Timestamp build_time = 7; + + // Output only. The time when the docker image was last updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request to list docker images. message ListDockerImagesRequest { - // Required. The name of the parent resource whose docker images will be listed. + // Required. The name of the parent resource whose docker images will be + // listed. string parent = 1 [(google.api.field_behavior) = REQUIRED]; // The maximum number of artifacts to return. @@ -92,6 +97,9 @@ message ListDockerImagesRequest { // The next_page_token value returned from a previous list request, if any. string page_token = 3; + + // The field to order the results by. + string order_by = 4; } // The response from listing docker images. @@ -114,3 +122,234 @@ message GetDockerImageRequest { } ]; } + +// MavenArtifact represents a maven artifact. +message MavenArtifact { + option (google.api.resource) = { + type: "artifactregistry.googleapis.com/MavenArtifact" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/mavenArtifacts/{maven_artifact}" + }; + + // Required. registry_location, project_id, repository_name and maven_artifact + // forms a unique artifact For example, + // "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ + // com.google.guava:guava:31.0-jre", + // where "us-west4" is the registry_location, "test-project" is the + // project_id, "test-repo" is the repository_name and + // "com.google.guava:guava:31.0-jre" + // is the maven artifact. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. URL to access the pom file of the artifact. + // Example: + // us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom + string pom_uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Group ID for the artifact. + // Example: + // com.google.guava + string group_id = 3; + + // Artifact ID for the artifact. + string artifact_id = 4; + + // Version of this artifact. + string version = 5; + + // Output only. Time the artifact was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time the artifact was updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request to list maven artifacts. +message ListMavenArtifactsRequest { + // Required. The name of the parent resource whose maven artifacts will be + // listed. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "artifactregistry.googleapis.com/MavenArtifact" + } + ]; + + // The maximum number of artifacts to return. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request, if any. + string page_token = 3; +} + +// The response from listing maven artifacts. +message ListMavenArtifactsResponse { + // The maven artifacts returned. + repeated MavenArtifact maven_artifacts = 1; + + // The token to retrieve the next page of artifacts, or empty if there are no + // more artifacts to return. + string next_page_token = 2; +} + +// The request to get maven artifacts. +message GetMavenArtifactRequest { + // Required. The name of the maven artifact. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/MavenArtifact" + } + ]; +} + +// NpmPackage represents an npm artifact. +message NpmPackage { + option (google.api.resource) = { + type: "artifactregistry.googleapis.com/NpmPackage" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/npmPackages/{npm_package}" + }; + + // Required. registry_location, project_id, repository_name and npm_package + // forms a unique package For example, + // "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ + // npm_test:1.0.0", + // where "us-west4" is the registry_location, "test-project" is the + // project_id, "test-repo" is the repository_name and + // npm_test:1.0.0" is the npm package. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Package for the artifact. + string package_name = 3; + + // Version of this package. + string version = 4; + + // Tags attached to this package. + repeated string tags = 5; + + // Output only. Time the package was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time the package was updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request to list npm packages. +message ListNpmPackagesRequest { + // Required. The name of the parent resource whose npm packages will be + // listed. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "artifactregistry.googleapis.com/NpmPackage" + } + ]; + + // The maximum number of artifacts to return. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request, if any. + string page_token = 3; +} + +// The response from listing npm packages. +message ListNpmPackagesResponse { + // The npm packages returned. + repeated NpmPackage npm_packages = 1; + + // The token to retrieve the next page of artifacts, or empty if there are no + // more artifacts to return. + string next_page_token = 2; +} + +// The request to get npm packages. +message GetNpmPackageRequest { + // Required. The name of the npm package. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/NpmPackage" + } + ]; +} + +// PythonPackage represents a python artifact. +message PythonPackage { + option (google.api.resource) = { + type: "artifactregistry.googleapis.com/PythonPackage" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/pythonPackages/{python_package}" + }; + + // Required. registry_location, project_id, repository_name and python_package + // forms a unique package + // name:`projects//locations//repository//pythonPackages/`. + // For example, + // "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ + // python_package:1.0.0", + // where "us-west4" is the registry_location, "test-project" is the + // project_id, "test-repo" is the repository_name and + // python_package:1.0.0" is the python package. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. URL to access the package. + // Example: + // us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz + string uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Package for the artifact. + string package_name = 3; + + // Version of this package. + string version = 4; + + // Output only. Time the package was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time the package was updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request to list python packages. +message ListPythonPackagesRequest { + // Required. The name of the parent resource whose python packages will be + // listed. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "artifactregistry.googleapis.com/PythonPackage" + } + ]; + + // The maximum number of artifacts to return. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request, if any. + string page_token = 3; +} + +// The response from listing python packages. +message ListPythonPackagesResponse { + // The python packages returned. + repeated PythonPackage python_packages = 1; + + // The token to retrieve the next page of artifacts, or empty if there are no + // more artifacts to return. + string next_page_token = 2; +} + +// The request to get python packages. +message GetPythonPackageRequest { + // Required. The name of the python package. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/PythonPackage" + } + ]; +} diff --git a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/file.proto b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/file.proto index a6b284a927aa..e62a72ea74ec 100644 --- a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/file.proto +++ b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/file.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.devtools.artifactregistry.v1; +import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; @@ -66,21 +67,33 @@ message File { // The hashes of the file content. repeated Hash hashes = 4; - // The time when the File was created. - google.protobuf.Timestamp create_time = 5; + // Output only. The time when the File was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // The time when the File was last updated. - google.protobuf.Timestamp update_time = 6; + // Output only. The time when the File was last updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The name of the Package or Version that owns this file, if any. string owner = 7; + + // Output only. The time when the last attempt to refresh the file's data was + // made. Only set when the repository is remote. + google.protobuf.Timestamp fetch_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request to list files. message ListFilesRequest { - // The name of the repository whose files will be listed. For example: - // "projects/p1/locations/us-central1/repositories/repo1 - string parent = 1; + // Required. The name of the repository whose files will be listed. For + // example: "projects/p1/locations/us-central1/repositories/repo1 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "artifactregistry.googleapis.com/File" + } + ]; // An expression for filtering the results of the request. Filter rules are // case insensitive. The fields eligible for filtering are: @@ -118,6 +131,11 @@ message ListFilesResponse { // The request to retrieve a file. message GetFileRequest { - // The name of the file to retrieve. - string name = 1; + // Required. The name of the file to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/File" + } + ]; } diff --git a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/package.proto b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/package.proto index e1b0129d393d..58de095ab53d 100644 --- a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/package.proto +++ b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/package.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.devtools.artifactregistry.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; @@ -29,6 +30,10 @@ option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; // Packages are named collections of versions. message Package { + option (google.api.resource) = { + type: "artifactregistry.googleapis.com/Package" + pattern: "projects/{project}/locations/{location}/repositories/{repository}/packages/{package}" + }; // The name of the package, for example: // "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". @@ -50,7 +55,10 @@ message Package { message ListPackagesRequest { // Required. The name of the parent resource whose packages will be listed. string parent = 1 [ - (google.api.field_behavior) = REQUIRED + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "artifactregistry.googleapis.com/Package" + } ]; // The maximum number of packages to return. Maximum page size is 1,000. @@ -74,7 +82,10 @@ message ListPackagesResponse { message GetPackageRequest { // Required. The name of the package to retrieve. string name = 1 [ - (google.api.field_behavior) = REQUIRED + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Package" + } ]; } @@ -82,6 +93,9 @@ message GetPackageRequest { message DeletePackageRequest { // Required. The name of the package to delete. string name = 1 [ - (google.api.field_behavior) = REQUIRED + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Package" + } ]; } diff --git a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/service.proto b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/service.proto index ed1cee05e1ad..ec8d3a9667a4 100644 --- a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/service.proto +++ b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/service.proto @@ -26,6 +26,7 @@ import "google/devtools/artifactregistry/v1/repository.proto"; import "google/devtools/artifactregistry/v1/settings.proto"; import "google/devtools/artifactregistry/v1/tag.proto"; import "google/devtools/artifactregistry/v1/version.proto"; +import "google/devtools/artifactregistry/v1/vpcsc_config.proto"; import "google/devtools/artifactregistry/v1/yum_artifact.proto"; import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; @@ -60,7 +61,8 @@ service ArtifactRegistry { "https://www.googleapis.com/auth/cloud-platform.read-only"; // Lists docker images. - rpc ListDockerImages(ListDockerImagesRequest) returns (ListDockerImagesResponse) { + rpc ListDockerImages(ListDockerImagesRequest) + returns (ListDockerImagesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/repositories/*}/dockerImages" }; @@ -75,11 +77,63 @@ service ArtifactRegistry { option (google.api.method_signature) = "name"; } + // Lists maven artifacts. + rpc ListMavenArtifacts(ListMavenArtifactsRequest) + returns (ListMavenArtifactsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/repositories/*}/mavenArtifacts" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a maven artifact. + rpc GetMavenArtifact(GetMavenArtifactRequest) returns (MavenArtifact) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/repositories/*/mavenArtifacts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists npm packages. + rpc ListNpmPackages(ListNpmPackagesRequest) + returns (ListNpmPackagesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/repositories/*}/npmPackages" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a npm package. + rpc GetNpmPackage(GetNpmPackageRequest) returns (NpmPackage) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/repositories/*/npmPackages/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists python packages. + rpc ListPythonPackages(ListPythonPackagesRequest) + returns (ListPythonPackagesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/repositories/*}/pythonPackages" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a python package. + rpc GetPythonPackage(GetPythonPackageRequest) returns (PythonPackage) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/repositories/*/pythonPackages/*}" + }; + option (google.api.method_signature) = "name"; + } + // Imports Apt artifacts. The returned Operation will complete once the // resources are imported. Package, Version, and File resources are created // based on the imported artifacts. Imported artifacts that conflict with // existing resources are ignored. - rpc ImportAptArtifacts(ImportAptArtifactsRequest) returns (google.longrunning.Operation) { + rpc ImportAptArtifacts(ImportAptArtifactsRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/repositories/*}/aptArtifacts:import" body: "*" @@ -94,7 +148,8 @@ service ArtifactRegistry { // resources are imported. Package, Version, and File resources are created // based on the imported artifacts. Imported artifacts that conflict with // existing resources are ignored. - rpc ImportYumArtifacts(ImportYumArtifactsRequest) returns (google.longrunning.Operation) { + rpc ImportYumArtifacts(ImportYumArtifactsRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/repositories/*}/yumArtifacts:import" body: "*" @@ -106,7 +161,8 @@ service ArtifactRegistry { } // Lists repositories. - rpc ListRepositories(ListRepositoriesRequest) returns (ListRepositoriesResponse) { + rpc ListRepositories(ListRepositoriesRequest) + returns (ListRepositoriesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/repositories" }; @@ -123,7 +179,8 @@ service ArtifactRegistry { // Creates a repository. The returned Operation will finish once the // repository has been created. Its response will be the created Repository. - rpc CreateRepository(CreateRepositoryRequest) returns (google.longrunning.Operation) { + rpc CreateRepository(CreateRepositoryRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/repositories" body: "repository" @@ -147,7 +204,8 @@ service ArtifactRegistry { // Deletes a repository and all of its contents. The returned Operation will // finish once the repository has been deleted. It will not have any Operation // metadata and will return a google.protobuf.Empty response. - rpc DeleteRepository(DeleteRepositoryRequest) returns (google.longrunning.Operation) { + rpc DeleteRepository(DeleteRepositoryRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/repositories/*}" }; @@ -176,7 +234,8 @@ service ArtifactRegistry { // Deletes a package and all of its versions and tags. The returned operation // will complete once the package has been deleted. - rpc DeletePackage(DeletePackageRequest) returns (google.longrunning.Operation) { + rpc DeletePackage(DeletePackageRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/repositories/*/packages/*}" }; @@ -205,7 +264,8 @@ service ArtifactRegistry { // Deletes a version and all of its content. The returned operation will // complete once the version has been deleted. - rpc DeleteVersion(DeleteVersionRequest) returns (google.longrunning.Operation) { + rpc DeleteVersion(DeleteVersionRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}" }; @@ -275,7 +335,8 @@ service ArtifactRegistry { } // Updates the IAM policy for a given resource. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy" body: "*" @@ -283,14 +344,16 @@ service ArtifactRegistry { } // Gets the IAM policy for a given resource. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { get: "/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy" }; } // Tests if the caller has a list of permissions on a resource. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions" body: "*" @@ -306,16 +369,32 @@ service ArtifactRegistry { } // Updates the Settings for the Project. - rpc UpdateProjectSettings(UpdateProjectSettingsRequest) returns (ProjectSettings) { + rpc UpdateProjectSettings(UpdateProjectSettingsRequest) + returns (ProjectSettings) { option (google.api.http) = { patch: "/v1/{project_settings.name=projects/*/projectSettings}" body: "project_settings" }; option (google.api.method_signature) = "project_settings,update_mask"; } -} -// Metadata type for longrunning-operations, currently empty. -message OperationMetadata { + // Retrieves the VPCSC Config for the Project. + rpc GetVPCSCConfig(GetVPCSCConfigRequest) returns (VPCSCConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/vpcscConfig}" + }; + option (google.api.method_signature) = "name"; + } + // Updates the VPCSC Config for the Project. + rpc UpdateVPCSCConfig(UpdateVPCSCConfigRequest) returns (VPCSCConfig) { + option (google.api.http) = { + patch: "/v1/{vpcsc_config.name=projects/*/locations/*/vpcscConfig}" + body: "vpcsc_config" + }; + option (google.api.method_signature) = "vpcsc_config,update_mask"; + } } + +// Metadata type for longrunning-operations, currently empty. +message OperationMetadata {} diff --git a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/settings.proto b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/settings.proto index 5c4e18c10519..d5602085d592 100644 --- a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/settings.proto +++ b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/settings.proto @@ -47,7 +47,7 @@ message ProjectSettings { REDIRECTION_FROM_GCR_IO_ENABLED = 2; // Redirection is enabled, and has been finalized so cannot be reverted. - REDIRECTION_FROM_GCR_IO_FINALIZED = 3; + REDIRECTION_FROM_GCR_IO_FINALIZED = 3 [deprecated = true]; } // The name of the project's settings. diff --git a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/version.proto b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/version.proto index f4ac0a92a003..25b11ed73e45 100644 --- a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/version.proto +++ b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/version.proto @@ -74,9 +74,11 @@ message Version { // Output only. Repository-specific Metadata stored against this version. // The fields returned are defined by the underlying repository-specific - // resource. Currently, the only resource in use is + // resource. Currently, the resources could be: // [DockerImage][google.devtools.artifactregistry.v1.DockerImage] - google.protobuf.Struct metadata = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + // [MavenArtifact][google.devtools.artifactregistry.v1.MavenArtifact] + google.protobuf.Struct metadata = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request to list versions. @@ -125,3 +127,9 @@ message DeleteVersionRequest { // version and any tags pointing to the version are deleted. bool force = 2; } + +// The metadata of an LRO from deleting multiple versions. +message BatchDeleteVersionsMetadata { + // The versions the operation failed to delete. + repeated string failed_versions = 2; +} diff --git a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/vpcsc_config.proto b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/vpcsc_config.proto new file mode 100644 index 000000000000..852413a7aba8 --- /dev/null +++ b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/vpcsc_config.proto @@ -0,0 +1,86 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.devtools.artifactregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; +option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry"; +option java_multiple_files = true; +option java_outer_classname = "VPCSCConfigProto"; +option java_package = "com.google.devtools.artifactregistry.v1"; +option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; + +// The Artifact Registry VPC SC config that apply to a Project. +message VPCSCConfig { + option (google.api.resource) = { + type: "artifactregistry.googleapis.com/VpcscConfig" + pattern: "projects/{project}/locations/{location}/vpcscConfig" + }; + + // VPCSCPolicy is the VPC SC policy for project and location. + enum VPCSCPolicy { + // VPCSC_POLICY_UNSPECIFIED - the VPS SC policy is not defined. + // When VPS SC policy is not defined - the Service will use the default + // behavior (VPCSC_DENY). + VPCSC_POLICY_UNSPECIFIED = 0; + + // VPCSC_DENY - repository will block the requests to the Upstreams for the + // Remote Repositories if the resource is in the perimeter. + DENY = 1; + + // VPCSC_ALLOW - repository will allow the requests to the Upstreams for the + // Remote Repositories if the resource is in the perimeter. + ALLOW = 2; + } + + // The name of the project's VPC SC Config. + // + // Always of the form: + // projects/{projectID}/locations/{location}/vpcscConfig + // + // In update request: never set + // In response: always set + string name = 1; + + // The project per location VPC SC policy that defines the VPC SC behavior for + // the Remote Repository (Allow/Deny). + VPCSCPolicy vpcsc_policy = 2; +} + +// Gets the VPC SC config for a project. +message GetVPCSCConfigRequest { + // Required. The name of the VPCSCConfig resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/VpcscConfig" + } + ]; +} + +// Sets the VPCSC config of the project. +message UpdateVPCSCConfigRequest { + // The project config. + VPCSCConfig vpcsc_config = 1; + + // Field mask to support partial updates. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/yum_artifact.proto b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/yum_artifact.proto index 0d1faafe9740..4e7870d407f6 100644 --- a/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/yum_artifact.proto +++ b/packages/google-devtools-artifactregistry/protos/google/devtools/artifactregistry/v1/yum_artifact.proto @@ -103,6 +103,4 @@ message ImportYumArtifactsResponse { } // The operation metadata for importing artifacts. -message ImportYumArtifactsMetadata { - -} +message ImportYumArtifactsMetadata {} diff --git a/packages/google-devtools-artifactregistry/protos/protos.d.ts b/packages/google-devtools-artifactregistry/protos/protos.d.ts index 65d7527c8f43..22086fd146d8 100644 --- a/packages/google-devtools-artifactregistry/protos/protos.d.ts +++ b/packages/google-devtools-artifactregistry/protos/protos.d.ts @@ -695,6 +695,9 @@ export namespace google { /** DockerImage buildTime */ buildTime?: (google.protobuf.ITimestamp|null); + + /** DockerImage updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } /** Represents a DockerImage. */ @@ -727,6 +730,9 @@ export namespace google { /** DockerImage buildTime. */ public buildTime?: (google.protobuf.ITimestamp|null); + /** DockerImage updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + /** * Creates a new DockerImage instance using the specified properties. * @param [properties] Properties to set @@ -816,6 +822,9 @@ export namespace google { /** ListDockerImagesRequest pageToken */ pageToken?: (string|null); + + /** ListDockerImagesRequest orderBy */ + orderBy?: (string|null); } /** Represents a ListDockerImagesRequest. */ @@ -836,6 +845,9 @@ export namespace google { /** ListDockerImagesRequest pageToken. */ public pageToken: string; + /** ListDockerImagesRequest orderBy. */ + public orderBy: string; + /** * Creates a new ListDockerImagesRequest instance using the specified properties. * @param [properties] Properties to set @@ -1114,4256 +1126,6154 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Hash. */ - interface IHash { + /** Properties of a MavenArtifact. */ + interface IMavenArtifact { - /** Hash type */ - type?: (google.devtools.artifactregistry.v1.Hash.HashType|keyof typeof google.devtools.artifactregistry.v1.Hash.HashType|null); + /** MavenArtifact name */ + name?: (string|null); - /** Hash value */ - value?: (Uint8Array|string|null); + /** MavenArtifact pomUri */ + pomUri?: (string|null); + + /** MavenArtifact groupId */ + groupId?: (string|null); + + /** MavenArtifact artifactId */ + artifactId?: (string|null); + + /** MavenArtifact version */ + version?: (string|null); + + /** MavenArtifact createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MavenArtifact updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a Hash. */ - class Hash implements IHash { + /** Represents a MavenArtifact. */ + class MavenArtifact implements IMavenArtifact { /** - * Constructs a new Hash. + * Constructs a new MavenArtifact. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IHash); + constructor(properties?: google.devtools.artifactregistry.v1.IMavenArtifact); - /** Hash type. */ - public type: (google.devtools.artifactregistry.v1.Hash.HashType|keyof typeof google.devtools.artifactregistry.v1.Hash.HashType); + /** MavenArtifact name. */ + public name: string; - /** Hash value. */ - public value: (Uint8Array|string); + /** MavenArtifact pomUri. */ + public pomUri: string; + + /** MavenArtifact groupId. */ + public groupId: string; + + /** MavenArtifact artifactId. */ + public artifactId: string; + + /** MavenArtifact version. */ + public version: string; + + /** MavenArtifact createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MavenArtifact updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Hash instance using the specified properties. + * Creates a new MavenArtifact instance using the specified properties. * @param [properties] Properties to set - * @returns Hash instance + * @returns MavenArtifact instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IHash): google.devtools.artifactregistry.v1.Hash; + public static create(properties?: google.devtools.artifactregistry.v1.IMavenArtifact): google.devtools.artifactregistry.v1.MavenArtifact; /** - * Encodes the specified Hash message. Does not implicitly {@link google.devtools.artifactregistry.v1.Hash.verify|verify} messages. - * @param message Hash message or plain object to encode + * Encodes the specified MavenArtifact message. Does not implicitly {@link google.devtools.artifactregistry.v1.MavenArtifact.verify|verify} messages. + * @param message MavenArtifact message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IHash, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IMavenArtifact, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Hash message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Hash.verify|verify} messages. - * @param message Hash message or plain object to encode + * Encodes the specified MavenArtifact message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.MavenArtifact.verify|verify} messages. + * @param message MavenArtifact message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IHash, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IMavenArtifact, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Hash message from the specified reader or buffer. + * Decodes a MavenArtifact message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Hash + * @returns MavenArtifact * @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.devtools.artifactregistry.v1.Hash; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.MavenArtifact; /** - * Decodes a Hash message from the specified reader or buffer, length delimited. + * Decodes a MavenArtifact message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Hash + * @returns MavenArtifact * @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.devtools.artifactregistry.v1.Hash; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.MavenArtifact; /** - * Verifies a Hash message. + * Verifies a MavenArtifact 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 Hash message from a plain object. Also converts values to their respective internal types. + * Creates a MavenArtifact message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Hash + * @returns MavenArtifact */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Hash; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.MavenArtifact; /** - * Creates a plain object from a Hash message. Also converts values to other types if specified. - * @param message Hash + * Creates a plain object from a MavenArtifact message. Also converts values to other types if specified. + * @param message MavenArtifact * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.Hash, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.MavenArtifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Hash to JSON. + * Converts this MavenArtifact to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Hash + * Gets the default type url for MavenArtifact * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Hash { - - /** HashType enum. */ - enum HashType { - HASH_TYPE_UNSPECIFIED = 0, - SHA256 = 1, - MD5 = 2 - } - } - - /** Properties of a File. */ - interface IFile { - - /** File name */ - name?: (string|null); - - /** File sizeBytes */ - sizeBytes?: (number|Long|string|null); - - /** File hashes */ - hashes?: (google.devtools.artifactregistry.v1.IHash[]|null); + /** Properties of a ListMavenArtifactsRequest. */ + interface IListMavenArtifactsRequest { - /** File createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListMavenArtifactsRequest parent */ + parent?: (string|null); - /** File updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListMavenArtifactsRequest pageSize */ + pageSize?: (number|null); - /** File owner */ - owner?: (string|null); + /** ListMavenArtifactsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a File. */ - class File implements IFile { + /** Represents a ListMavenArtifactsRequest. */ + class ListMavenArtifactsRequest implements IListMavenArtifactsRequest { /** - * Constructs a new File. + * Constructs a new ListMavenArtifactsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IFile); - - /** File name. */ - public name: string; - - /** File sizeBytes. */ - public sizeBytes: (number|Long|string); + constructor(properties?: google.devtools.artifactregistry.v1.IListMavenArtifactsRequest); - /** File hashes. */ - public hashes: google.devtools.artifactregistry.v1.IHash[]; - - /** File createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListMavenArtifactsRequest parent. */ + public parent: string; - /** File updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListMavenArtifactsRequest pageSize. */ + public pageSize: number; - /** File owner. */ - public owner: string; + /** ListMavenArtifactsRequest pageToken. */ + public pageToken: string; /** - * Creates a new File instance using the specified properties. + * Creates a new ListMavenArtifactsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns File instance + * @returns ListMavenArtifactsRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IFile): google.devtools.artifactregistry.v1.File; + public static create(properties?: google.devtools.artifactregistry.v1.IListMavenArtifactsRequest): google.devtools.artifactregistry.v1.ListMavenArtifactsRequest; /** - * Encodes the specified File message. Does not implicitly {@link google.devtools.artifactregistry.v1.File.verify|verify} messages. - * @param message File message or plain object to encode + * Encodes the specified ListMavenArtifactsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListMavenArtifactsRequest.verify|verify} messages. + * @param message ListMavenArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified File message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.File.verify|verify} messages. - * @param message File message or plain object to encode + * Encodes the specified ListMavenArtifactsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListMavenArtifactsRequest.verify|verify} messages. + * @param message ListMavenArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a File message from the specified reader or buffer. + * Decodes a ListMavenArtifactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns File + * @returns ListMavenArtifactsRequest * @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.devtools.artifactregistry.v1.File; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListMavenArtifactsRequest; /** - * Decodes a File message from the specified reader or buffer, length delimited. + * Decodes a ListMavenArtifactsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns File + * @returns ListMavenArtifactsRequest * @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.devtools.artifactregistry.v1.File; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListMavenArtifactsRequest; /** - * Verifies a File message. + * Verifies a ListMavenArtifactsRequest 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 File message from a plain object. Also converts values to their respective internal types. + * Creates a ListMavenArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns File + * @returns ListMavenArtifactsRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.File; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListMavenArtifactsRequest; /** - * Creates a plain object from a File message. Also converts values to other types if specified. - * @param message File + * Creates a plain object from a ListMavenArtifactsRequest message. Also converts values to other types if specified. + * @param message ListMavenArtifactsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.File, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListMavenArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this File to JSON. + * Converts this ListMavenArtifactsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for File + * Gets the default type url for ListMavenArtifactsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFilesRequest. */ - interface IListFilesRequest { - - /** ListFilesRequest parent */ - parent?: (string|null); - - /** ListFilesRequest filter */ - filter?: (string|null); - - /** ListFilesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ListMavenArtifactsResponse. */ + interface IListMavenArtifactsResponse { - /** ListFilesRequest pageToken */ - pageToken?: (string|null); + /** ListMavenArtifactsResponse mavenArtifacts */ + mavenArtifacts?: (google.devtools.artifactregistry.v1.IMavenArtifact[]|null); - /** ListFilesRequest orderBy */ - orderBy?: (string|null); + /** ListMavenArtifactsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListFilesRequest. */ - class ListFilesRequest implements IListFilesRequest { + /** Represents a ListMavenArtifactsResponse. */ + class ListMavenArtifactsResponse implements IListMavenArtifactsResponse { /** - * Constructs a new ListFilesRequest. + * Constructs a new ListMavenArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListFilesRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IListMavenArtifactsResponse); - /** ListFilesRequest parent. */ - public parent: string; - - /** ListFilesRequest filter. */ - public filter: string; - - /** ListFilesRequest pageSize. */ - public pageSize: number; + /** ListMavenArtifactsResponse mavenArtifacts. */ + public mavenArtifacts: google.devtools.artifactregistry.v1.IMavenArtifact[]; - /** ListFilesRequest pageToken. */ - public pageToken: string; - - /** ListFilesRequest orderBy. */ - public orderBy: string; + /** ListMavenArtifactsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListFilesRequest instance using the specified properties. + * Creates a new ListMavenArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListFilesRequest instance + * @returns ListMavenArtifactsResponse instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListFilesRequest): google.devtools.artifactregistry.v1.ListFilesRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IListMavenArtifactsResponse): google.devtools.artifactregistry.v1.ListMavenArtifactsResponse; /** - * Encodes the specified ListFilesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesRequest.verify|verify} messages. - * @param message ListFilesRequest message or plain object to encode + * Encodes the specified ListMavenArtifactsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListMavenArtifactsResponse.verify|verify} messages. + * @param message ListMavenArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListFilesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListMavenArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFilesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesRequest.verify|verify} messages. - * @param message ListFilesRequest message or plain object to encode + * Encodes the specified ListMavenArtifactsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListMavenArtifactsResponse.verify|verify} messages. + * @param message ListMavenArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListFilesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListMavenArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFilesRequest message from the specified reader or buffer. + * Decodes a ListMavenArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFilesRequest + * @returns ListMavenArtifactsResponse * @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.devtools.artifactregistry.v1.ListFilesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListMavenArtifactsResponse; /** - * Decodes a ListFilesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMavenArtifactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFilesRequest + * @returns ListMavenArtifactsResponse * @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.devtools.artifactregistry.v1.ListFilesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListMavenArtifactsResponse; /** - * Verifies a ListFilesRequest message. + * Verifies a ListMavenArtifactsResponse 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 ListFilesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMavenArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFilesRequest + * @returns ListMavenArtifactsResponse */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListFilesRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListMavenArtifactsResponse; /** - * Creates a plain object from a ListFilesRequest message. Also converts values to other types if specified. - * @param message ListFilesRequest + * Creates a plain object from a ListMavenArtifactsResponse message. Also converts values to other types if specified. + * @param message ListMavenArtifactsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListFilesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListMavenArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFilesRequest to JSON. + * Converts this ListMavenArtifactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFilesRequest + * Gets the default type url for ListMavenArtifactsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFilesResponse. */ - interface IListFilesResponse { - - /** ListFilesResponse files */ - files?: (google.devtools.artifactregistry.v1.IFile[]|null); + /** Properties of a GetMavenArtifactRequest. */ + interface IGetMavenArtifactRequest { - /** ListFilesResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetMavenArtifactRequest name */ + name?: (string|null); } - /** Represents a ListFilesResponse. */ - class ListFilesResponse implements IListFilesResponse { + /** Represents a GetMavenArtifactRequest. */ + class GetMavenArtifactRequest implements IGetMavenArtifactRequest { /** - * Constructs a new ListFilesResponse. + * Constructs a new GetMavenArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListFilesResponse); - - /** ListFilesResponse files. */ - public files: google.devtools.artifactregistry.v1.IFile[]; + constructor(properties?: google.devtools.artifactregistry.v1.IGetMavenArtifactRequest); - /** ListFilesResponse nextPageToken. */ - public nextPageToken: string; + /** GetMavenArtifactRequest name. */ + public name: string; /** - * Creates a new ListFilesResponse instance using the specified properties. + * Creates a new GetMavenArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFilesResponse instance + * @returns GetMavenArtifactRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListFilesResponse): google.devtools.artifactregistry.v1.ListFilesResponse; + public static create(properties?: google.devtools.artifactregistry.v1.IGetMavenArtifactRequest): google.devtools.artifactregistry.v1.GetMavenArtifactRequest; /** - * Encodes the specified ListFilesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesResponse.verify|verify} messages. - * @param message ListFilesResponse message or plain object to encode + * Encodes the specified GetMavenArtifactRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetMavenArtifactRequest.verify|verify} messages. + * @param message GetMavenArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListFilesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFilesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesResponse.verify|verify} messages. - * @param message ListFilesResponse message or plain object to encode + * Encodes the specified GetMavenArtifactRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetMavenArtifactRequest.verify|verify} messages. + * @param message GetMavenArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListFilesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFilesResponse message from the specified reader or buffer. + * Decodes a GetMavenArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFilesResponse + * @returns GetMavenArtifactRequest * @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.devtools.artifactregistry.v1.ListFilesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.GetMavenArtifactRequest; /** - * Decodes a ListFilesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetMavenArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFilesResponse + * @returns GetMavenArtifactRequest * @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.devtools.artifactregistry.v1.ListFilesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.GetMavenArtifactRequest; /** - * Verifies a ListFilesResponse message. + * Verifies a GetMavenArtifactRequest 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 ListFilesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetMavenArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFilesResponse + * @returns GetMavenArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListFilesResponse; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetMavenArtifactRequest; /** - * Creates a plain object from a ListFilesResponse message. Also converts values to other types if specified. - * @param message ListFilesResponse + * Creates a plain object from a GetMavenArtifactRequest message. Also converts values to other types if specified. + * @param message GetMavenArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListFilesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.GetMavenArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFilesResponse to JSON. + * Converts this GetMavenArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFilesResponse + * Gets the default type url for GetMavenArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetFileRequest. */ - interface IGetFileRequest { + /** Properties of a NpmPackage. */ + interface INpmPackage { - /** GetFileRequest name */ + /** NpmPackage name */ name?: (string|null); + + /** NpmPackage packageName */ + packageName?: (string|null); + + /** NpmPackage version */ + version?: (string|null); + + /** NpmPackage tags */ + tags?: (string[]|null); + + /** NpmPackage createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** NpmPackage updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a GetFileRequest. */ - class GetFileRequest implements IGetFileRequest { + /** Represents a NpmPackage. */ + class NpmPackage implements INpmPackage { /** - * Constructs a new GetFileRequest. + * Constructs a new NpmPackage. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IGetFileRequest); + constructor(properties?: google.devtools.artifactregistry.v1.INpmPackage); - /** GetFileRequest name. */ + /** NpmPackage name. */ public name: string; + /** NpmPackage packageName. */ + public packageName: string; + + /** NpmPackage version. */ + public version: string; + + /** NpmPackage tags. */ + public tags: string[]; + + /** NpmPackage createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** NpmPackage updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + /** - * Creates a new GetFileRequest instance using the specified properties. + * Creates a new NpmPackage instance using the specified properties. * @param [properties] Properties to set - * @returns GetFileRequest instance + * @returns NpmPackage instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IGetFileRequest): google.devtools.artifactregistry.v1.GetFileRequest; + public static create(properties?: google.devtools.artifactregistry.v1.INpmPackage): google.devtools.artifactregistry.v1.NpmPackage; /** - * Encodes the specified GetFileRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetFileRequest.verify|verify} messages. - * @param message GetFileRequest message or plain object to encode + * Encodes the specified NpmPackage message. Does not implicitly {@link google.devtools.artifactregistry.v1.NpmPackage.verify|verify} messages. + * @param message NpmPackage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IGetFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.INpmPackage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFileRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetFileRequest.verify|verify} messages. - * @param message GetFileRequest message or plain object to encode + * Encodes the specified NpmPackage message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.NpmPackage.verify|verify} messages. + * @param message NpmPackage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.INpmPackage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFileRequest message from the specified reader or buffer. + * Decodes a NpmPackage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFileRequest + * @returns NpmPackage * @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.devtools.artifactregistry.v1.GetFileRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.NpmPackage; /** - * Decodes a GetFileRequest message from the specified reader or buffer, length delimited. + * Decodes a NpmPackage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFileRequest + * @returns NpmPackage * @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.devtools.artifactregistry.v1.GetFileRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.NpmPackage; /** - * Verifies a GetFileRequest message. + * Verifies a NpmPackage 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 GetFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NpmPackage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFileRequest + * @returns NpmPackage */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetFileRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.NpmPackage; /** - * Creates a plain object from a GetFileRequest message. Also converts values to other types if specified. - * @param message GetFileRequest + * Creates a plain object from a NpmPackage message. Also converts values to other types if specified. + * @param message NpmPackage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.GetFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.NpmPackage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFileRequest to JSON. + * Converts this NpmPackage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFileRequest + * Gets the default type url for NpmPackage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Package. */ - interface IPackage { - - /** Package name */ - name?: (string|null); + /** Properties of a ListNpmPackagesRequest. */ + interface IListNpmPackagesRequest { - /** Package displayName */ - displayName?: (string|null); + /** ListNpmPackagesRequest parent */ + parent?: (string|null); - /** Package createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListNpmPackagesRequest pageSize */ + pageSize?: (number|null); - /** Package updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListNpmPackagesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a Package. */ - class Package implements IPackage { + /** Represents a ListNpmPackagesRequest. */ + class ListNpmPackagesRequest implements IListNpmPackagesRequest { /** - * Constructs a new Package. + * Constructs a new ListNpmPackagesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IPackage); - - /** Package name. */ - public name: string; + constructor(properties?: google.devtools.artifactregistry.v1.IListNpmPackagesRequest); - /** Package displayName. */ - public displayName: string; + /** ListNpmPackagesRequest parent. */ + public parent: string; - /** Package createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListNpmPackagesRequest pageSize. */ + public pageSize: number; - /** Package updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListNpmPackagesRequest pageToken. */ + public pageToken: string; /** - * Creates a new Package instance using the specified properties. + * Creates a new ListNpmPackagesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Package instance + * @returns ListNpmPackagesRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IPackage): google.devtools.artifactregistry.v1.Package; + public static create(properties?: google.devtools.artifactregistry.v1.IListNpmPackagesRequest): google.devtools.artifactregistry.v1.ListNpmPackagesRequest; /** - * Encodes the specified Package message. Does not implicitly {@link google.devtools.artifactregistry.v1.Package.verify|verify} messages. - * @param message Package message or plain object to encode + * Encodes the specified ListNpmPackagesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListNpmPackagesRequest.verify|verify} messages. + * @param message ListNpmPackagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IPackage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListNpmPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Package message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Package.verify|verify} messages. - * @param message Package message or plain object to encode + * Encodes the specified ListNpmPackagesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListNpmPackagesRequest.verify|verify} messages. + * @param message ListNpmPackagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IPackage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListNpmPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Package message from the specified reader or buffer. + * Decodes a ListNpmPackagesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Package + * @returns ListNpmPackagesRequest * @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.devtools.artifactregistry.v1.Package; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListNpmPackagesRequest; /** - * Decodes a Package message from the specified reader or buffer, length delimited. + * Decodes a ListNpmPackagesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Package + * @returns ListNpmPackagesRequest * @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.devtools.artifactregistry.v1.Package; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListNpmPackagesRequest; /** - * Verifies a Package message. + * Verifies a ListNpmPackagesRequest 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 Package message from a plain object. Also converts values to their respective internal types. + * Creates a ListNpmPackagesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Package + * @returns ListNpmPackagesRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Package; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListNpmPackagesRequest; /** - * Creates a plain object from a Package message. Also converts values to other types if specified. - * @param message Package + * Creates a plain object from a ListNpmPackagesRequest message. Also converts values to other types if specified. + * @param message ListNpmPackagesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.Package, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListNpmPackagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Package to JSON. + * Converts this ListNpmPackagesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Package + * Gets the default type url for ListNpmPackagesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPackagesRequest. */ - interface IListPackagesRequest { - - /** ListPackagesRequest parent */ - parent?: (string|null); + /** Properties of a ListNpmPackagesResponse. */ + interface IListNpmPackagesResponse { - /** ListPackagesRequest pageSize */ - pageSize?: (number|null); + /** ListNpmPackagesResponse npmPackages */ + npmPackages?: (google.devtools.artifactregistry.v1.INpmPackage[]|null); - /** ListPackagesRequest pageToken */ - pageToken?: (string|null); + /** ListNpmPackagesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListPackagesRequest. */ - class ListPackagesRequest implements IListPackagesRequest { + /** Represents a ListNpmPackagesResponse. */ + class ListNpmPackagesResponse implements IListNpmPackagesResponse { /** - * Constructs a new ListPackagesRequest. + * Constructs a new ListNpmPackagesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListPackagesRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IListNpmPackagesResponse); - /** ListPackagesRequest parent. */ - public parent: string; - - /** ListPackagesRequest pageSize. */ - public pageSize: number; + /** ListNpmPackagesResponse npmPackages. */ + public npmPackages: google.devtools.artifactregistry.v1.INpmPackage[]; - /** ListPackagesRequest pageToken. */ - public pageToken: string; + /** ListNpmPackagesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListPackagesRequest instance using the specified properties. + * Creates a new ListNpmPackagesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListPackagesRequest instance + * @returns ListNpmPackagesResponse instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListPackagesRequest): google.devtools.artifactregistry.v1.ListPackagesRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IListNpmPackagesResponse): google.devtools.artifactregistry.v1.ListNpmPackagesResponse; /** - * Encodes the specified ListPackagesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesRequest.verify|verify} messages. - * @param message ListPackagesRequest message or plain object to encode + * Encodes the specified ListNpmPackagesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListNpmPackagesResponse.verify|verify} messages. + * @param message ListNpmPackagesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListNpmPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPackagesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesRequest.verify|verify} messages. - * @param message ListPackagesRequest message or plain object to encode + * Encodes the specified ListNpmPackagesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListNpmPackagesResponse.verify|verify} messages. + * @param message ListNpmPackagesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListNpmPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPackagesRequest message from the specified reader or buffer. + * Decodes a ListNpmPackagesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPackagesRequest + * @returns ListNpmPackagesResponse * @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.devtools.artifactregistry.v1.ListPackagesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListNpmPackagesResponse; /** - * Decodes a ListPackagesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNpmPackagesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPackagesRequest + * @returns ListNpmPackagesResponse * @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.devtools.artifactregistry.v1.ListPackagesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListNpmPackagesResponse; /** - * Verifies a ListPackagesRequest message. + * Verifies a ListNpmPackagesResponse 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 ListPackagesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNpmPackagesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPackagesRequest + * @returns ListNpmPackagesResponse */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListPackagesRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListNpmPackagesResponse; /** - * Creates a plain object from a ListPackagesRequest message. Also converts values to other types if specified. - * @param message ListPackagesRequest + * Creates a plain object from a ListNpmPackagesResponse message. Also converts values to other types if specified. + * @param message ListNpmPackagesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListPackagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListNpmPackagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPackagesRequest to JSON. + * Converts this ListNpmPackagesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPackagesRequest + * Gets the default type url for ListNpmPackagesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPackagesResponse. */ - interface IListPackagesResponse { - - /** ListPackagesResponse packages */ - packages?: (google.devtools.artifactregistry.v1.IPackage[]|null); + /** Properties of a GetNpmPackageRequest. */ + interface IGetNpmPackageRequest { - /** ListPackagesResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetNpmPackageRequest name */ + name?: (string|null); } - /** Represents a ListPackagesResponse. */ - class ListPackagesResponse implements IListPackagesResponse { + /** Represents a GetNpmPackageRequest. */ + class GetNpmPackageRequest implements IGetNpmPackageRequest { /** - * Constructs a new ListPackagesResponse. + * Constructs a new GetNpmPackageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListPackagesResponse); + constructor(properties?: google.devtools.artifactregistry.v1.IGetNpmPackageRequest); - /** ListPackagesResponse packages. */ - public packages: google.devtools.artifactregistry.v1.IPackage[]; - - /** ListPackagesResponse nextPageToken. */ - public nextPageToken: string; + /** GetNpmPackageRequest name. */ + public name: string; /** - * Creates a new ListPackagesResponse instance using the specified properties. + * Creates a new GetNpmPackageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPackagesResponse instance + * @returns GetNpmPackageRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListPackagesResponse): google.devtools.artifactregistry.v1.ListPackagesResponse; + public static create(properties?: google.devtools.artifactregistry.v1.IGetNpmPackageRequest): google.devtools.artifactregistry.v1.GetNpmPackageRequest; /** - * Encodes the specified ListPackagesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesResponse.verify|verify} messages. - * @param message ListPackagesResponse message or plain object to encode + * Encodes the specified GetNpmPackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetNpmPackageRequest.verify|verify} messages. + * @param message GetNpmPackageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IGetNpmPackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPackagesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesResponse.verify|verify} messages. - * @param message ListPackagesResponse message or plain object to encode + * Encodes the specified GetNpmPackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetNpmPackageRequest.verify|verify} messages. + * @param message GetNpmPackageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetNpmPackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPackagesResponse message from the specified reader or buffer. + * Decodes a GetNpmPackageRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPackagesResponse + * @returns GetNpmPackageRequest * @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.devtools.artifactregistry.v1.ListPackagesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.GetNpmPackageRequest; /** - * Decodes a ListPackagesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetNpmPackageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPackagesResponse + * @returns GetNpmPackageRequest * @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.devtools.artifactregistry.v1.ListPackagesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.GetNpmPackageRequest; /** - * Verifies a ListPackagesResponse message. + * Verifies a GetNpmPackageRequest 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 ListPackagesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetNpmPackageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPackagesResponse + * @returns GetNpmPackageRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListPackagesResponse; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetNpmPackageRequest; /** - * Creates a plain object from a ListPackagesResponse message. Also converts values to other types if specified. - * @param message ListPackagesResponse + * Creates a plain object from a GetNpmPackageRequest message. Also converts values to other types if specified. + * @param message GetNpmPackageRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListPackagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.GetNpmPackageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPackagesResponse to JSON. + * Converts this GetNpmPackageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPackagesResponse + * Gets the default type url for GetNpmPackageRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPackageRequest. */ - interface IGetPackageRequest { + /** Properties of a PythonPackage. */ + interface IPythonPackage { - /** GetPackageRequest name */ + /** PythonPackage name */ name?: (string|null); + + /** PythonPackage uri */ + uri?: (string|null); + + /** PythonPackage packageName */ + packageName?: (string|null); + + /** PythonPackage version */ + version?: (string|null); + + /** PythonPackage createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** PythonPackage updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a GetPackageRequest. */ - class GetPackageRequest implements IGetPackageRequest { + /** Represents a PythonPackage. */ + class PythonPackage implements IPythonPackage { /** - * Constructs a new GetPackageRequest. + * Constructs a new PythonPackage. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IGetPackageRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IPythonPackage); - /** GetPackageRequest name. */ + /** PythonPackage name. */ public name: string; + /** PythonPackage uri. */ + public uri: string; + + /** PythonPackage packageName. */ + public packageName: string; + + /** PythonPackage version. */ + public version: string; + + /** PythonPackage createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** PythonPackage updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + /** - * Creates a new GetPackageRequest instance using the specified properties. + * Creates a new PythonPackage instance using the specified properties. * @param [properties] Properties to set - * @returns GetPackageRequest instance + * @returns PythonPackage instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IGetPackageRequest): google.devtools.artifactregistry.v1.GetPackageRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IPythonPackage): google.devtools.artifactregistry.v1.PythonPackage; /** - * Encodes the specified GetPackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPackageRequest.verify|verify} messages. - * @param message GetPackageRequest message or plain object to encode + * Encodes the specified PythonPackage message. Does not implicitly {@link google.devtools.artifactregistry.v1.PythonPackage.verify|verify} messages. + * @param message PythonPackage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IGetPackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IPythonPackage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPackageRequest.verify|verify} messages. - * @param message GetPackageRequest message or plain object to encode + * Encodes the specified PythonPackage message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.PythonPackage.verify|verify} messages. + * @param message PythonPackage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetPackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IPythonPackage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPackageRequest message from the specified reader or buffer. + * Decodes a PythonPackage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPackageRequest + * @returns PythonPackage * @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.devtools.artifactregistry.v1.GetPackageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.PythonPackage; /** - * Decodes a GetPackageRequest message from the specified reader or buffer, length delimited. + * Decodes a PythonPackage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPackageRequest + * @returns PythonPackage * @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.devtools.artifactregistry.v1.GetPackageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.PythonPackage; /** - * Verifies a GetPackageRequest message. + * Verifies a PythonPackage 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 GetPackageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PythonPackage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPackageRequest + * @returns PythonPackage */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetPackageRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.PythonPackage; /** - * Creates a plain object from a GetPackageRequest message. Also converts values to other types if specified. - * @param message GetPackageRequest + * Creates a plain object from a PythonPackage message. Also converts values to other types if specified. + * @param message PythonPackage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.GetPackageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.PythonPackage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPackageRequest to JSON. + * Converts this PythonPackage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPackageRequest + * Gets the default type url for PythonPackage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeletePackageRequest. */ - interface IDeletePackageRequest { + /** Properties of a ListPythonPackagesRequest. */ + interface IListPythonPackagesRequest { - /** DeletePackageRequest name */ - name?: (string|null); + /** ListPythonPackagesRequest parent */ + parent?: (string|null); + + /** ListPythonPackagesRequest pageSize */ + pageSize?: (number|null); + + /** ListPythonPackagesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a DeletePackageRequest. */ - class DeletePackageRequest implements IDeletePackageRequest { + /** Represents a ListPythonPackagesRequest. */ + class ListPythonPackagesRequest implements IListPythonPackagesRequest { /** - * Constructs a new DeletePackageRequest. + * Constructs a new ListPythonPackagesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IDeletePackageRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IListPythonPackagesRequest); - /** DeletePackageRequest name. */ - public name: string; + /** ListPythonPackagesRequest parent. */ + public parent: string; + + /** ListPythonPackagesRequest pageSize. */ + public pageSize: number; + + /** ListPythonPackagesRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeletePackageRequest instance using the specified properties. + * Creates a new ListPythonPackagesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeletePackageRequest instance + * @returns ListPythonPackagesRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IDeletePackageRequest): google.devtools.artifactregistry.v1.DeletePackageRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IListPythonPackagesRequest): google.devtools.artifactregistry.v1.ListPythonPackagesRequest; /** - * Encodes the specified DeletePackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeletePackageRequest.verify|verify} messages. - * @param message DeletePackageRequest message or plain object to encode + * Encodes the specified ListPythonPackagesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPythonPackagesRequest.verify|verify} messages. + * @param message ListPythonPackagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IDeletePackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListPythonPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeletePackageRequest.verify|verify} messages. - * @param message DeletePackageRequest message or plain object to encode + * Encodes the specified ListPythonPackagesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPythonPackagesRequest.verify|verify} messages. + * @param message ListPythonPackagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IDeletePackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListPythonPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeletePackageRequest message from the specified reader or buffer. + * Decodes a ListPythonPackagesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeletePackageRequest + * @returns ListPythonPackagesRequest * @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.devtools.artifactregistry.v1.DeletePackageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListPythonPackagesRequest; /** - * Decodes a DeletePackageRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPythonPackagesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeletePackageRequest + * @returns ListPythonPackagesRequest * @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.devtools.artifactregistry.v1.DeletePackageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListPythonPackagesRequest; /** - * Verifies a DeletePackageRequest message. + * Verifies a ListPythonPackagesRequest 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 DeletePackageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPythonPackagesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeletePackageRequest + * @returns ListPythonPackagesRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.DeletePackageRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListPythonPackagesRequest; /** - * Creates a plain object from a DeletePackageRequest message. Also converts values to other types if specified. - * @param message DeletePackageRequest + * Creates a plain object from a ListPythonPackagesRequest message. Also converts values to other types if specified. + * @param message ListPythonPackagesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.DeletePackageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListPythonPackagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeletePackageRequest to JSON. + * Converts this ListPythonPackagesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeletePackageRequest + * Gets the default type url for ListPythonPackagesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Repository. */ - interface IRepository { + /** Properties of a ListPythonPackagesResponse. */ + interface IListPythonPackagesResponse { - /** Repository mavenConfig */ - mavenConfig?: (google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig|null); + /** ListPythonPackagesResponse pythonPackages */ + pythonPackages?: (google.devtools.artifactregistry.v1.IPythonPackage[]|null); - /** Repository name */ - name?: (string|null); + /** ListPythonPackagesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Repository format */ - format?: (google.devtools.artifactregistry.v1.Repository.Format|keyof typeof google.devtools.artifactregistry.v1.Repository.Format|null); + /** Represents a ListPythonPackagesResponse. */ + class ListPythonPackagesResponse implements IListPythonPackagesResponse { - /** Repository description */ - description?: (string|null); + /** + * Constructs a new ListPythonPackagesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.IListPythonPackagesResponse); - /** Repository labels */ - labels?: ({ [k: string]: string }|null); + /** ListPythonPackagesResponse pythonPackages. */ + public pythonPackages: google.devtools.artifactregistry.v1.IPythonPackage[]; - /** Repository createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListPythonPackagesResponse nextPageToken. */ + public nextPageToken: string; - /** Repository updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new ListPythonPackagesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPythonPackagesResponse instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IListPythonPackagesResponse): google.devtools.artifactregistry.v1.ListPythonPackagesResponse; - /** Repository kmsKeyName */ - kmsKeyName?: (string|null); - } + /** + * Encodes the specified ListPythonPackagesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPythonPackagesResponse.verify|verify} messages. + * @param message ListPythonPackagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.IListPythonPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Repository. */ - class Repository implements IRepository { + /** + * Encodes the specified ListPythonPackagesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPythonPackagesResponse.verify|verify} messages. + * @param message ListPythonPackagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListPythonPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Constructs a new Repository. - * @param [properties] Properties to set + * Decodes a ListPythonPackagesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPythonPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(properties?: google.devtools.artifactregistry.v1.IRepository); + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListPythonPackagesResponse; - /** Repository mavenConfig. */ - public mavenConfig?: (google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig|null); + /** + * Decodes a ListPythonPackagesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPythonPackagesResponse + * @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.devtools.artifactregistry.v1.ListPythonPackagesResponse; - /** Repository name. */ - public name: string; + /** + * Verifies a ListPythonPackagesResponse 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); - /** Repository format. */ - public format: (google.devtools.artifactregistry.v1.Repository.Format|keyof typeof google.devtools.artifactregistry.v1.Repository.Format); + /** + * Creates a ListPythonPackagesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPythonPackagesResponse + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListPythonPackagesResponse; - /** Repository description. */ - public description: string; + /** + * Creates a plain object from a ListPythonPackagesResponse message. Also converts values to other types if specified. + * @param message ListPythonPackagesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.ListPythonPackagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Repository labels. */ - public labels: { [k: string]: string }; + /** + * Converts this ListPythonPackagesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Repository createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for ListPythonPackagesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Repository updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a GetPythonPackageRequest. */ + interface IGetPythonPackageRequest { - /** Repository kmsKeyName. */ - public kmsKeyName: string; + /** GetPythonPackageRequest name */ + name?: (string|null); + } - /** Repository formatConfig. */ - public formatConfig?: "mavenConfig"; + /** Represents a GetPythonPackageRequest. */ + class GetPythonPackageRequest implements IGetPythonPackageRequest { /** - * Creates a new Repository instance using the specified properties. + * Constructs a new GetPythonPackageRequest. * @param [properties] Properties to set - * @returns Repository instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IRepository): google.devtools.artifactregistry.v1.Repository; + constructor(properties?: google.devtools.artifactregistry.v1.IGetPythonPackageRequest); + + /** GetPythonPackageRequest name. */ + public name: string; /** - * Encodes the specified Repository message. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.verify|verify} messages. - * @param message Repository message or plain object to encode + * Creates a new GetPythonPackageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPythonPackageRequest instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IGetPythonPackageRequest): google.devtools.artifactregistry.v1.GetPythonPackageRequest; + + /** + * Encodes the specified GetPythonPackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPythonPackageRequest.verify|verify} messages. + * @param message GetPythonPackageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IRepository, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IGetPythonPackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Repository message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.verify|verify} messages. - * @param message Repository message or plain object to encode + * Encodes the specified GetPythonPackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPythonPackageRequest.verify|verify} messages. + * @param message GetPythonPackageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IRepository, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetPythonPackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Repository message from the specified reader or buffer. + * Decodes a GetPythonPackageRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Repository + * @returns GetPythonPackageRequest * @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.devtools.artifactregistry.v1.Repository; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.GetPythonPackageRequest; /** - * Decodes a Repository message from the specified reader or buffer, length delimited. + * Decodes a GetPythonPackageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Repository + * @returns GetPythonPackageRequest * @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.devtools.artifactregistry.v1.Repository; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.GetPythonPackageRequest; /** - * Verifies a Repository message. + * Verifies a GetPythonPackageRequest 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 Repository message from a plain object. Also converts values to their respective internal types. + * Creates a GetPythonPackageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Repository + * @returns GetPythonPackageRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Repository; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetPythonPackageRequest; /** - * Creates a plain object from a Repository message. Also converts values to other types if specified. - * @param message Repository + * Creates a plain object from a GetPythonPackageRequest message. Also converts values to other types if specified. + * @param message GetPythonPackageRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.Repository, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.GetPythonPackageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Repository to JSON. + * Converts this GetPythonPackageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Repository + * Gets the default type url for GetPythonPackageRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Repository { - - /** Properties of a MavenRepositoryConfig. */ - interface IMavenRepositoryConfig { + /** Properties of a Hash. */ + interface IHash { - /** MavenRepositoryConfig allowSnapshotOverwrites */ - allowSnapshotOverwrites?: (boolean|null); + /** Hash type */ + type?: (google.devtools.artifactregistry.v1.Hash.HashType|keyof typeof google.devtools.artifactregistry.v1.Hash.HashType|null); - /** MavenRepositoryConfig versionPolicy */ - versionPolicy?: (google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy|keyof typeof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy|null); - } + /** Hash value */ + value?: (Uint8Array|string|null); + } - /** Represents a MavenRepositoryConfig. */ - class MavenRepositoryConfig implements IMavenRepositoryConfig { + /** Represents a Hash. */ + class Hash implements IHash { - /** - * Constructs a new MavenRepositoryConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig); + /** + * Constructs a new Hash. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.IHash); - /** MavenRepositoryConfig allowSnapshotOverwrites. */ - public allowSnapshotOverwrites: boolean; + /** Hash type. */ + public type: (google.devtools.artifactregistry.v1.Hash.HashType|keyof typeof google.devtools.artifactregistry.v1.Hash.HashType); - /** MavenRepositoryConfig versionPolicy. */ - public versionPolicy: (google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy|keyof typeof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy); + /** Hash value. */ + public value: (Uint8Array|string); - /** - * Creates a new MavenRepositoryConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MavenRepositoryConfig instance - */ - public static create(properties?: google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig): google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig; + /** + * Creates a new Hash instance using the specified properties. + * @param [properties] Properties to set + * @returns Hash instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IHash): google.devtools.artifactregistry.v1.Hash; - /** - * Encodes the specified MavenRepositoryConfig message. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify|verify} messages. - * @param message MavenRepositoryConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Hash message. Does not implicitly {@link google.devtools.artifactregistry.v1.Hash.verify|verify} messages. + * @param message Hash message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.IHash, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MavenRepositoryConfig message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify|verify} messages. - * @param message MavenRepositoryConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Hash message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Hash.verify|verify} messages. + * @param message Hash message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IHash, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MavenRepositoryConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MavenRepositoryConfig - * @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.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig; + /** + * Decodes a Hash message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Hash + * @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.devtools.artifactregistry.v1.Hash; - /** - * Decodes a MavenRepositoryConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MavenRepositoryConfig - * @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.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig; + /** + * Decodes a Hash message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Hash + * @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.devtools.artifactregistry.v1.Hash; - /** - * Verifies a MavenRepositoryConfig 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 MavenRepositoryConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MavenRepositoryConfig - */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig; + /** + * Verifies a Hash 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 plain object from a MavenRepositoryConfig message. Also converts values to other types if specified. - * @param message MavenRepositoryConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a Hash message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Hash + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Hash; - /** - * Converts this MavenRepositoryConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a Hash message. Also converts values to other types if specified. + * @param message Hash + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.Hash, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for MavenRepositoryConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this Hash to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace MavenRepositoryConfig { + /** + * Gets the default type url for Hash + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** VersionPolicy enum. */ - enum VersionPolicy { - VERSION_POLICY_UNSPECIFIED = 0, - RELEASE = 1, - SNAPSHOT = 2 - } - } + namespace Hash { - /** Format enum. */ - enum Format { - FORMAT_UNSPECIFIED = 0, - DOCKER = 1, - MAVEN = 2, - NPM = 3, - APT = 5, - YUM = 6, - PYTHON = 8 + /** HashType enum. */ + enum HashType { + HASH_TYPE_UNSPECIFIED = 0, + SHA256 = 1, + MD5 = 2 } } - /** Properties of a ListRepositoriesRequest. */ - interface IListRepositoriesRequest { + /** Properties of a File. */ + interface IFile { - /** ListRepositoriesRequest parent */ - parent?: (string|null); + /** File name */ + name?: (string|null); - /** ListRepositoriesRequest pageSize */ - pageSize?: (number|null); + /** File sizeBytes */ + sizeBytes?: (number|Long|string|null); - /** ListRepositoriesRequest pageToken */ - pageToken?: (string|null); + /** File hashes */ + hashes?: (google.devtools.artifactregistry.v1.IHash[]|null); + + /** File createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** File updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** File owner */ + owner?: (string|null); + + /** File fetchTime */ + fetchTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ListRepositoriesRequest. */ - class ListRepositoriesRequest implements IListRepositoriesRequest { + /** Represents a File. */ + class File implements IFile { /** - * Constructs a new ListRepositoriesRequest. + * Constructs a new File. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListRepositoriesRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IFile); - /** ListRepositoriesRequest parent. */ - public parent: string; + /** File name. */ + public name: string; - /** ListRepositoriesRequest pageSize. */ - public pageSize: number; + /** File sizeBytes. */ + public sizeBytes: (number|Long|string); - /** ListRepositoriesRequest pageToken. */ - public pageToken: string; + /** File hashes. */ + public hashes: google.devtools.artifactregistry.v1.IHash[]; + + /** File createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** File updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** File owner. */ + public owner: string; + + /** File fetchTime. */ + public fetchTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListRepositoriesRequest instance using the specified properties. + * Creates a new File instance using the specified properties. * @param [properties] Properties to set - * @returns ListRepositoriesRequest instance + * @returns File instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListRepositoriesRequest): google.devtools.artifactregistry.v1.ListRepositoriesRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IFile): google.devtools.artifactregistry.v1.File; /** - * Encodes the specified ListRepositoriesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesRequest.verify|verify} messages. - * @param message ListRepositoriesRequest message or plain object to encode + * Encodes the specified File message. Does not implicitly {@link google.devtools.artifactregistry.v1.File.verify|verify} messages. + * @param message File message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListRepositoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IFile, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListRepositoriesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesRequest.verify|verify} messages. - * @param message ListRepositoriesRequest message or plain object to encode + * Encodes the specified File message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.File.verify|verify} messages. + * @param message File message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListRepositoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IFile, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListRepositoriesRequest message from the specified reader or buffer. + * Decodes a File message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListRepositoriesRequest + * @returns File * @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.devtools.artifactregistry.v1.ListRepositoriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.File; /** - * Decodes a ListRepositoriesRequest message from the specified reader or buffer, length delimited. + * Decodes a File message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListRepositoriesRequest + * @returns File * @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.devtools.artifactregistry.v1.ListRepositoriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.File; /** - * Verifies a ListRepositoriesRequest message. + * Verifies a File 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 ListRepositoriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a File message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListRepositoriesRequest + * @returns File */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListRepositoriesRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.File; /** - * Creates a plain object from a ListRepositoriesRequest message. Also converts values to other types if specified. - * @param message ListRepositoriesRequest + * Creates a plain object from a File message. Also converts values to other types if specified. + * @param message File * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListRepositoriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.File, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListRepositoriesRequest to JSON. + * Converts this File to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListRepositoriesRequest + * Gets the default type url for File * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListRepositoriesResponse. */ - interface IListRepositoriesResponse { + /** Properties of a ListFilesRequest. */ + interface IListFilesRequest { - /** ListRepositoriesResponse repositories */ - repositories?: (google.devtools.artifactregistry.v1.IRepository[]|null); + /** ListFilesRequest parent */ + parent?: (string|null); - /** ListRepositoriesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListFilesRequest filter */ + filter?: (string|null); + + /** ListFilesRequest pageSize */ + pageSize?: (number|null); + + /** ListFilesRequest pageToken */ + pageToken?: (string|null); + + /** ListFilesRequest orderBy */ + orderBy?: (string|null); } - /** Represents a ListRepositoriesResponse. */ - class ListRepositoriesResponse implements IListRepositoriesResponse { + /** Represents a ListFilesRequest. */ + class ListFilesRequest implements IListFilesRequest { /** - * Constructs a new ListRepositoriesResponse. + * Constructs a new ListFilesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListRepositoriesResponse); + constructor(properties?: google.devtools.artifactregistry.v1.IListFilesRequest); - /** ListRepositoriesResponse repositories. */ - public repositories: google.devtools.artifactregistry.v1.IRepository[]; + /** ListFilesRequest parent. */ + public parent: string; - /** ListRepositoriesResponse nextPageToken. */ - public nextPageToken: string; + /** ListFilesRequest filter. */ + public filter: string; + + /** ListFilesRequest pageSize. */ + public pageSize: number; + + /** ListFilesRequest pageToken. */ + public pageToken: string; + + /** ListFilesRequest orderBy. */ + public orderBy: string; /** - * Creates a new ListRepositoriesResponse instance using the specified properties. + * Creates a new ListFilesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListRepositoriesResponse instance + * @returns ListFilesRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListRepositoriesResponse): google.devtools.artifactregistry.v1.ListRepositoriesResponse; + public static create(properties?: google.devtools.artifactregistry.v1.IListFilesRequest): google.devtools.artifactregistry.v1.ListFilesRequest; /** - * Encodes the specified ListRepositoriesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesResponse.verify|verify} messages. - * @param message ListRepositoriesResponse message or plain object to encode + * Encodes the specified ListFilesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesRequest.verify|verify} messages. + * @param message ListFilesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListRepositoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListFilesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListRepositoriesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesResponse.verify|verify} messages. - * @param message ListRepositoriesResponse message or plain object to encode + * Encodes the specified ListFilesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesRequest.verify|verify} messages. + * @param message ListFilesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListRepositoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListFilesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListRepositoriesResponse message from the specified reader or buffer. + * Decodes a ListFilesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListRepositoriesResponse + * @returns ListFilesRequest * @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.devtools.artifactregistry.v1.ListRepositoriesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListFilesRequest; /** - * Decodes a ListRepositoriesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFilesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListRepositoriesResponse + * @returns ListFilesRequest * @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.devtools.artifactregistry.v1.ListRepositoriesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListFilesRequest; /** - * Verifies a ListRepositoriesResponse message. + * Verifies a ListFilesRequest 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 ListRepositoriesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFilesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListRepositoriesResponse + * @returns ListFilesRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListRepositoriesResponse; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListFilesRequest; /** - * Creates a plain object from a ListRepositoriesResponse message. Also converts values to other types if specified. - * @param message ListRepositoriesResponse + * Creates a plain object from a ListFilesRequest message. Also converts values to other types if specified. + * @param message ListFilesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListRepositoriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListFilesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListRepositoriesResponse to JSON. + * Converts this ListFilesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListRepositoriesResponse + * Gets the default type url for ListFilesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetRepositoryRequest. */ - interface IGetRepositoryRequest { + /** Properties of a ListFilesResponse. */ + interface IListFilesResponse { - /** GetRepositoryRequest name */ - name?: (string|null); + /** ListFilesResponse files */ + files?: (google.devtools.artifactregistry.v1.IFile[]|null); + + /** ListFilesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetRepositoryRequest. */ - class GetRepositoryRequest implements IGetRepositoryRequest { + /** Represents a ListFilesResponse. */ + class ListFilesResponse implements IListFilesResponse { /** - * Constructs a new GetRepositoryRequest. + * Constructs a new ListFilesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IGetRepositoryRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IListFilesResponse); - /** GetRepositoryRequest name. */ - public name: string; + /** ListFilesResponse files. */ + public files: google.devtools.artifactregistry.v1.IFile[]; + + /** ListFilesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetRepositoryRequest instance using the specified properties. + * Creates a new ListFilesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetRepositoryRequest instance + * @returns ListFilesResponse instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IGetRepositoryRequest): google.devtools.artifactregistry.v1.GetRepositoryRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IListFilesResponse): google.devtools.artifactregistry.v1.ListFilesResponse; /** - * Encodes the specified GetRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetRepositoryRequest.verify|verify} messages. - * @param message GetRepositoryRequest message or plain object to encode + * Encodes the specified ListFilesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesResponse.verify|verify} messages. + * @param message ListFilesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IGetRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListFilesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetRepositoryRequest.verify|verify} messages. - * @param message GetRepositoryRequest message or plain object to encode + * Encodes the specified ListFilesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesResponse.verify|verify} messages. + * @param message ListFilesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListFilesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRepositoryRequest message from the specified reader or buffer. + * Decodes a ListFilesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetRepositoryRequest + * @returns ListFilesResponse * @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.devtools.artifactregistry.v1.GetRepositoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListFilesResponse; /** - * Decodes a GetRepositoryRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFilesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRepositoryRequest + * @returns ListFilesResponse * @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.devtools.artifactregistry.v1.GetRepositoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListFilesResponse; /** - * Verifies a GetRepositoryRequest message. + * Verifies a ListFilesResponse 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 GetRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFilesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRepositoryRequest + * @returns ListFilesResponse */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetRepositoryRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListFilesResponse; /** - * Creates a plain object from a GetRepositoryRequest message. Also converts values to other types if specified. - * @param message GetRepositoryRequest + * Creates a plain object from a ListFilesResponse message. Also converts values to other types if specified. + * @param message ListFilesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.GetRepositoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListFilesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRepositoryRequest to JSON. + * Converts this ListFilesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetRepositoryRequest + * Gets the default type url for ListFilesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateRepositoryRequest. */ - interface ICreateRepositoryRequest { - - /** CreateRepositoryRequest parent */ - parent?: (string|null); - - /** CreateRepositoryRequest repositoryId */ - repositoryId?: (string|null); + /** Properties of a GetFileRequest. */ + interface IGetFileRequest { - /** CreateRepositoryRequest repository */ - repository?: (google.devtools.artifactregistry.v1.IRepository|null); + /** GetFileRequest name */ + name?: (string|null); } - /** Represents a CreateRepositoryRequest. */ - class CreateRepositoryRequest implements ICreateRepositoryRequest { + /** Represents a GetFileRequest. */ + class GetFileRequest implements IGetFileRequest { /** - * Constructs a new CreateRepositoryRequest. + * Constructs a new GetFileRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.ICreateRepositoryRequest); - - /** CreateRepositoryRequest parent. */ - public parent: string; - - /** CreateRepositoryRequest repositoryId. */ - public repositoryId: string; + constructor(properties?: google.devtools.artifactregistry.v1.IGetFileRequest); - /** CreateRepositoryRequest repository. */ - public repository?: (google.devtools.artifactregistry.v1.IRepository|null); + /** GetFileRequest name. */ + public name: string; /** - * Creates a new CreateRepositoryRequest instance using the specified properties. + * Creates a new GetFileRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateRepositoryRequest instance + * @returns GetFileRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.ICreateRepositoryRequest): google.devtools.artifactregistry.v1.CreateRepositoryRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IGetFileRequest): google.devtools.artifactregistry.v1.GetFileRequest; /** - * Encodes the specified CreateRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateRepositoryRequest.verify|verify} messages. - * @param message CreateRepositoryRequest message or plain object to encode + * Encodes the specified GetFileRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetFileRequest.verify|verify} messages. + * @param message GetFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.ICreateRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IGetFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateRepositoryRequest.verify|verify} messages. - * @param message CreateRepositoryRequest message or plain object to encode + * Encodes the specified GetFileRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetFileRequest.verify|verify} messages. + * @param message GetFileRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.ICreateRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateRepositoryRequest message from the specified reader or buffer. + * Decodes a GetFileRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateRepositoryRequest + * @returns GetFileRequest * @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.devtools.artifactregistry.v1.CreateRepositoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.GetFileRequest; /** - * Decodes a CreateRepositoryRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFileRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateRepositoryRequest + * @returns GetFileRequest * @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.devtools.artifactregistry.v1.CreateRepositoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.GetFileRequest; /** - * Verifies a CreateRepositoryRequest message. + * Verifies a GetFileRequest 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 CreateRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFileRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateRepositoryRequest + * @returns GetFileRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.CreateRepositoryRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetFileRequest; /** - * Creates a plain object from a CreateRepositoryRequest message. Also converts values to other types if specified. - * @param message CreateRepositoryRequest + * Creates a plain object from a GetFileRequest message. Also converts values to other types if specified. + * @param message GetFileRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.CreateRepositoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.GetFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateRepositoryRequest to JSON. + * Converts this GetFileRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateRepositoryRequest + * Gets the default type url for GetFileRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateRepositoryRequest. */ - interface IUpdateRepositoryRequest { + /** Properties of a Package. */ + interface IPackage { - /** UpdateRepositoryRequest repository */ - repository?: (google.devtools.artifactregistry.v1.IRepository|null); + /** Package name */ + name?: (string|null); - /** UpdateRepositoryRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Package displayName */ + displayName?: (string|null); + + /** Package createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Package updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents an UpdateRepositoryRequest. */ - class UpdateRepositoryRequest implements IUpdateRepositoryRequest { + /** Represents a Package. */ + class Package implements IPackage { /** - * Constructs a new UpdateRepositoryRequest. + * Constructs a new Package. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IPackage); - /** UpdateRepositoryRequest repository. */ - public repository?: (google.devtools.artifactregistry.v1.IRepository|null); + /** Package name. */ + public name: string; - /** UpdateRepositoryRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** Package displayName. */ + public displayName: string; + + /** Package createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Package updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new UpdateRepositoryRequest instance using the specified properties. + * Creates a new Package instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateRepositoryRequest instance + * @returns Package instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest): google.devtools.artifactregistry.v1.UpdateRepositoryRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IPackage): google.devtools.artifactregistry.v1.Package; /** - * Encodes the specified UpdateRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateRepositoryRequest.verify|verify} messages. - * @param message UpdateRepositoryRequest message or plain object to encode + * Encodes the specified Package message. Does not implicitly {@link google.devtools.artifactregistry.v1.Package.verify|verify} messages. + * @param message Package message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IPackage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateRepositoryRequest.verify|verify} messages. - * @param message UpdateRepositoryRequest message or plain object to encode + * Encodes the specified Package message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Package.verify|verify} messages. + * @param message Package message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IPackage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateRepositoryRequest message from the specified reader or buffer. + * Decodes a Package message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateRepositoryRequest + * @returns Package * @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.devtools.artifactregistry.v1.UpdateRepositoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.Package; /** - * Decodes an UpdateRepositoryRequest message from the specified reader or buffer, length delimited. + * Decodes a Package message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateRepositoryRequest + * @returns Package * @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.devtools.artifactregistry.v1.UpdateRepositoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.Package; /** - * Verifies an UpdateRepositoryRequest message. + * Verifies a Package 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 an UpdateRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Package message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateRepositoryRequest + * @returns Package */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.UpdateRepositoryRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Package; /** - * Creates a plain object from an UpdateRepositoryRequest message. Also converts values to other types if specified. - * @param message UpdateRepositoryRequest + * Creates a plain object from a Package message. Also converts values to other types if specified. + * @param message Package * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.UpdateRepositoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.Package, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateRepositoryRequest to JSON. + * Converts this Package to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateRepositoryRequest + * Gets the default type url for Package * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteRepositoryRequest. */ - interface IDeleteRepositoryRequest { + /** Properties of a ListPackagesRequest. */ + interface IListPackagesRequest { - /** DeleteRepositoryRequest name */ - name?: (string|null); + /** ListPackagesRequest parent */ + parent?: (string|null); + + /** ListPackagesRequest pageSize */ + pageSize?: (number|null); + + /** ListPackagesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a DeleteRepositoryRequest. */ - class DeleteRepositoryRequest implements IDeleteRepositoryRequest { + /** Represents a ListPackagesRequest. */ + class ListPackagesRequest implements IListPackagesRequest { /** - * Constructs a new DeleteRepositoryRequest. + * Constructs a new ListPackagesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IListPackagesRequest); - /** DeleteRepositoryRequest name. */ - public name: string; + /** ListPackagesRequest parent. */ + public parent: string; + + /** ListPackagesRequest pageSize. */ + public pageSize: number; + + /** ListPackagesRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeleteRepositoryRequest instance using the specified properties. + * Creates a new ListPackagesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteRepositoryRequest instance + * @returns ListPackagesRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest): google.devtools.artifactregistry.v1.DeleteRepositoryRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IListPackagesRequest): google.devtools.artifactregistry.v1.ListPackagesRequest; /** - * Encodes the specified DeleteRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteRepositoryRequest.verify|verify} messages. - * @param message DeleteRepositoryRequest message or plain object to encode + * Encodes the specified ListPackagesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesRequest.verify|verify} messages. + * @param message ListPackagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteRepositoryRequest.verify|verify} messages. - * @param message DeleteRepositoryRequest message or plain object to encode + * Encodes the specified ListPackagesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesRequest.verify|verify} messages. + * @param message ListPackagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListPackagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteRepositoryRequest message from the specified reader or buffer. + * Decodes a ListPackagesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteRepositoryRequest + * @returns ListPackagesRequest * @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.devtools.artifactregistry.v1.DeleteRepositoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListPackagesRequest; /** - * Decodes a DeleteRepositoryRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPackagesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteRepositoryRequest + * @returns ListPackagesRequest * @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.devtools.artifactregistry.v1.DeleteRepositoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListPackagesRequest; /** - * Verifies a DeleteRepositoryRequest message. + * Verifies a ListPackagesRequest 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 DeleteRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPackagesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteRepositoryRequest + * @returns ListPackagesRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.DeleteRepositoryRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListPackagesRequest; /** - * Creates a plain object from a DeleteRepositoryRequest message. Also converts values to other types if specified. - * @param message DeleteRepositoryRequest + * Creates a plain object from a ListPackagesRequest message. Also converts values to other types if specified. + * @param message ListPackagesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.DeleteRepositoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListPackagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteRepositoryRequest to JSON. + * Converts this ListPackagesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteRepositoryRequest + * Gets the default type url for ListPackagesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents an ArtifactRegistry */ - class ArtifactRegistry extends $protobuf.rpc.Service { + /** Properties of a ListPackagesResponse. */ + interface IListPackagesResponse { + + /** ListPackagesResponse packages */ + packages?: (google.devtools.artifactregistry.v1.IPackage[]|null); + + /** ListPackagesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListPackagesResponse. */ + class ListPackagesResponse implements IListPackagesResponse { /** - * Constructs a new ArtifactRegistry service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new ListPackagesResponse. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.devtools.artifactregistry.v1.IListPackagesResponse); + + /** ListPackagesResponse packages. */ + public packages: google.devtools.artifactregistry.v1.IPackage[]; + + /** ListPackagesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates new ArtifactRegistry service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new ListPackagesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPackagesResponse instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ArtifactRegistry; + public static create(properties?: google.devtools.artifactregistry.v1.IListPackagesResponse): google.devtools.artifactregistry.v1.ListPackagesResponse; /** - * Calls ListDockerImages. - * @param request ListDockerImagesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDockerImagesResponse + * Encodes the specified ListPackagesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesResponse.verify|verify} messages. + * @param message ListPackagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDockerImages(request: google.devtools.artifactregistry.v1.IListDockerImagesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListDockerImagesCallback): void; + public static encode(message: google.devtools.artifactregistry.v1.IListPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDockerImages. - * @param request ListDockerImagesRequest message or plain object - * @returns Promise + * Encodes the specified ListPackagesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesResponse.verify|verify} messages. + * @param message ListPackagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDockerImages(request: google.devtools.artifactregistry.v1.IListDockerImagesRequest): Promise; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListPackagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetDockerImage. - * @param request GetDockerImageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DockerImage + * Decodes a ListPackagesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getDockerImage(request: google.devtools.artifactregistry.v1.IGetDockerImageRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetDockerImageCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListPackagesResponse; /** - * Calls GetDockerImage. - * @param request GetDockerImageRequest message or plain object - * @returns Promise + * Decodes a ListPackagesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getDockerImage(request: google.devtools.artifactregistry.v1.IGetDockerImageRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListPackagesResponse; /** - * Calls ImportAptArtifacts. - * @param request ImportAptArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a ListPackagesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public importAptArtifacts(request: google.devtools.artifactregistry.v1.IImportAptArtifactsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ImportAptArtifactsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ImportAptArtifacts. - * @param request ImportAptArtifactsRequest message or plain object - * @returns Promise + * Creates a ListPackagesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPackagesResponse */ - public importAptArtifacts(request: google.devtools.artifactregistry.v1.IImportAptArtifactsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListPackagesResponse; /** - * Calls ImportYumArtifacts. - * @param request ImportYumArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a ListPackagesResponse message. Also converts values to other types if specified. + * @param message ListPackagesResponse + * @param [options] Conversion options + * @returns Plain object */ - public importYumArtifacts(request: google.devtools.artifactregistry.v1.IImportYumArtifactsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ImportYumArtifactsCallback): void; + public static toObject(message: google.devtools.artifactregistry.v1.ListPackagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ImportYumArtifacts. - * @param request ImportYumArtifactsRequest message or plain object - * @returns Promise + * Converts this ListPackagesResponse to JSON. + * @returns JSON object */ - public importYumArtifacts(request: google.devtools.artifactregistry.v1.IImportYumArtifactsRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls ListRepositories. - * @param request ListRepositoriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListRepositoriesResponse + * Gets the default type url for ListPackagesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listRepositories(request: google.devtools.artifactregistry.v1.IListRepositoriesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListRepositoriesCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetPackageRequest. */ + interface IGetPackageRequest { + + /** GetPackageRequest name */ + name?: (string|null); + } + + /** Represents a GetPackageRequest. */ + class GetPackageRequest implements IGetPackageRequest { /** - * Calls ListRepositories. - * @param request ListRepositoriesRequest message or plain object - * @returns Promise + * Constructs a new GetPackageRequest. + * @param [properties] Properties to set */ - public listRepositories(request: google.devtools.artifactregistry.v1.IListRepositoriesRequest): Promise; + constructor(properties?: google.devtools.artifactregistry.v1.IGetPackageRequest); + + /** GetPackageRequest name. */ + public name: string; /** - * Calls GetRepository. - * @param request GetRepositoryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Repository + * Creates a new GetPackageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPackageRequest instance */ - public getRepository(request: google.devtools.artifactregistry.v1.IGetRepositoryRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetRepositoryCallback): void; + public static create(properties?: google.devtools.artifactregistry.v1.IGetPackageRequest): google.devtools.artifactregistry.v1.GetPackageRequest; /** - * Calls GetRepository. - * @param request GetRepositoryRequest message or plain object - * @returns Promise + * Encodes the specified GetPackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPackageRequest.verify|verify} messages. + * @param message GetPackageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getRepository(request: google.devtools.artifactregistry.v1.IGetRepositoryRequest): Promise; + public static encode(message: google.devtools.artifactregistry.v1.IGetPackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateRepository. - * @param request CreateRepositoryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified GetPackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPackageRequest.verify|verify} messages. + * @param message GetPackageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createRepository(request: google.devtools.artifactregistry.v1.ICreateRepositoryRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRepositoryCallback): void; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetPackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateRepository. - * @param request CreateRepositoryRequest message or plain object + * Decodes a GetPackageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPackageRequest + * @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.devtools.artifactregistry.v1.GetPackageRequest; + + /** + * Decodes a GetPackageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPackageRequest + * @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.devtools.artifactregistry.v1.GetPackageRequest; + + /** + * Verifies a GetPackageRequest 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 GetPackageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPackageRequest + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetPackageRequest; + + /** + * Creates a plain object from a GetPackageRequest message. Also converts values to other types if specified. + * @param message GetPackageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.GetPackageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPackageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPackageRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeletePackageRequest. */ + interface IDeletePackageRequest { + + /** DeletePackageRequest name */ + name?: (string|null); + } + + /** Represents a DeletePackageRequest. */ + class DeletePackageRequest implements IDeletePackageRequest { + + /** + * Constructs a new DeletePackageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.IDeletePackageRequest); + + /** DeletePackageRequest name. */ + public name: string; + + /** + * Creates a new DeletePackageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeletePackageRequest instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IDeletePackageRequest): google.devtools.artifactregistry.v1.DeletePackageRequest; + + /** + * Encodes the specified DeletePackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeletePackageRequest.verify|verify} messages. + * @param message DeletePackageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.IDeletePackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeletePackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeletePackageRequest.verify|verify} messages. + * @param message DeletePackageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IDeletePackageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeletePackageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeletePackageRequest + * @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.devtools.artifactregistry.v1.DeletePackageRequest; + + /** + * Decodes a DeletePackageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeletePackageRequest + * @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.devtools.artifactregistry.v1.DeletePackageRequest; + + /** + * Verifies a DeletePackageRequest 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 DeletePackageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeletePackageRequest + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.DeletePackageRequest; + + /** + * Creates a plain object from a DeletePackageRequest message. Also converts values to other types if specified. + * @param message DeletePackageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.DeletePackageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeletePackageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeletePackageRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Repository. */ + interface IRepository { + + /** Repository mavenConfig */ + mavenConfig?: (google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig|null); + + /** Repository name */ + name?: (string|null); + + /** Repository format */ + format?: (google.devtools.artifactregistry.v1.Repository.Format|keyof typeof google.devtools.artifactregistry.v1.Repository.Format|null); + + /** Repository description */ + description?: (string|null); + + /** Repository labels */ + labels?: ({ [k: string]: string }|null); + + /** Repository createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Repository updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Repository kmsKeyName */ + kmsKeyName?: (string|null); + } + + /** Represents a Repository. */ + class Repository implements IRepository { + + /** + * Constructs a new Repository. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.IRepository); + + /** Repository mavenConfig. */ + public mavenConfig?: (google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig|null); + + /** Repository name. */ + public name: string; + + /** Repository format. */ + public format: (google.devtools.artifactregistry.v1.Repository.Format|keyof typeof google.devtools.artifactregistry.v1.Repository.Format); + + /** Repository description. */ + public description: string; + + /** Repository labels. */ + public labels: { [k: string]: string }; + + /** Repository createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Repository updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Repository kmsKeyName. */ + public kmsKeyName: string; + + /** Repository formatConfig. */ + public formatConfig?: "mavenConfig"; + + /** + * Creates a new Repository instance using the specified properties. + * @param [properties] Properties to set + * @returns Repository instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IRepository): google.devtools.artifactregistry.v1.Repository; + + /** + * Encodes the specified Repository message. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.verify|verify} messages. + * @param message Repository message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.IRepository, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Repository message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.verify|verify} messages. + * @param message Repository message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IRepository, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Repository message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Repository + * @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.devtools.artifactregistry.v1.Repository; + + /** + * Decodes a Repository message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Repository + * @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.devtools.artifactregistry.v1.Repository; + + /** + * Verifies a Repository 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 Repository message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Repository + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Repository; + + /** + * Creates a plain object from a Repository message. Also converts values to other types if specified. + * @param message Repository + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.Repository, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Repository to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Repository + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Repository { + + /** Properties of a MavenRepositoryConfig. */ + interface IMavenRepositoryConfig { + + /** MavenRepositoryConfig allowSnapshotOverwrites */ + allowSnapshotOverwrites?: (boolean|null); + + /** MavenRepositoryConfig versionPolicy */ + versionPolicy?: (google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy|keyof typeof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy|null); + } + + /** Represents a MavenRepositoryConfig. */ + class MavenRepositoryConfig implements IMavenRepositoryConfig { + + /** + * Constructs a new MavenRepositoryConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig); + + /** MavenRepositoryConfig allowSnapshotOverwrites. */ + public allowSnapshotOverwrites: boolean; + + /** MavenRepositoryConfig versionPolicy. */ + public versionPolicy: (google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy|keyof typeof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy); + + /** + * Creates a new MavenRepositoryConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MavenRepositoryConfig instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig): google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig; + + /** + * Encodes the specified MavenRepositoryConfig message. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify|verify} messages. + * @param message MavenRepositoryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MavenRepositoryConfig message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify|verify} messages. + * @param message MavenRepositoryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MavenRepositoryConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MavenRepositoryConfig + * @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.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig; + + /** + * Decodes a MavenRepositoryConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MavenRepositoryConfig + * @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.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig; + + /** + * Verifies a MavenRepositoryConfig 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 MavenRepositoryConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MavenRepositoryConfig + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig; + + /** + * Creates a plain object from a MavenRepositoryConfig message. Also converts values to other types if specified. + * @param message MavenRepositoryConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MavenRepositoryConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MavenRepositoryConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MavenRepositoryConfig { + + /** VersionPolicy enum. */ + enum VersionPolicy { + VERSION_POLICY_UNSPECIFIED = 0, + RELEASE = 1, + SNAPSHOT = 2 + } + } + + /** Format enum. */ + enum Format { + FORMAT_UNSPECIFIED = 0, + DOCKER = 1, + MAVEN = 2, + NPM = 3, + APT = 5, + YUM = 6, + PYTHON = 8 + } + } + + /** Properties of a ListRepositoriesRequest. */ + interface IListRepositoriesRequest { + + /** ListRepositoriesRequest parent */ + parent?: (string|null); + + /** ListRepositoriesRequest pageSize */ + pageSize?: (number|null); + + /** ListRepositoriesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListRepositoriesRequest. */ + class ListRepositoriesRequest implements IListRepositoriesRequest { + + /** + * Constructs a new ListRepositoriesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.IListRepositoriesRequest); + + /** ListRepositoriesRequest parent. */ + public parent: string; + + /** ListRepositoriesRequest pageSize. */ + public pageSize: number; + + /** ListRepositoriesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListRepositoriesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRepositoriesRequest instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IListRepositoriesRequest): google.devtools.artifactregistry.v1.ListRepositoriesRequest; + + /** + * Encodes the specified ListRepositoriesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesRequest.verify|verify} messages. + * @param message ListRepositoriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.IListRepositoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRepositoriesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesRequest.verify|verify} messages. + * @param message ListRepositoriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListRepositoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRepositoriesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRepositoriesRequest + * @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.devtools.artifactregistry.v1.ListRepositoriesRequest; + + /** + * Decodes a ListRepositoriesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRepositoriesRequest + * @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.devtools.artifactregistry.v1.ListRepositoriesRequest; + + /** + * Verifies a ListRepositoriesRequest 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 ListRepositoriesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRepositoriesRequest + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListRepositoriesRequest; + + /** + * Creates a plain object from a ListRepositoriesRequest message. Also converts values to other types if specified. + * @param message ListRepositoriesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.ListRepositoriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRepositoriesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRepositoriesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListRepositoriesResponse. */ + interface IListRepositoriesResponse { + + /** ListRepositoriesResponse repositories */ + repositories?: (google.devtools.artifactregistry.v1.IRepository[]|null); + + /** ListRepositoriesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListRepositoriesResponse. */ + class ListRepositoriesResponse implements IListRepositoriesResponse { + + /** + * Constructs a new ListRepositoriesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.IListRepositoriesResponse); + + /** ListRepositoriesResponse repositories. */ + public repositories: google.devtools.artifactregistry.v1.IRepository[]; + + /** ListRepositoriesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListRepositoriesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRepositoriesResponse instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IListRepositoriesResponse): google.devtools.artifactregistry.v1.ListRepositoriesResponse; + + /** + * Encodes the specified ListRepositoriesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesResponse.verify|verify} messages. + * @param message ListRepositoriesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.IListRepositoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRepositoriesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesResponse.verify|verify} messages. + * @param message ListRepositoriesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListRepositoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRepositoriesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRepositoriesResponse + * @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.devtools.artifactregistry.v1.ListRepositoriesResponse; + + /** + * Decodes a ListRepositoriesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRepositoriesResponse + * @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.devtools.artifactregistry.v1.ListRepositoriesResponse; + + /** + * Verifies a ListRepositoriesResponse 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 ListRepositoriesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRepositoriesResponse + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListRepositoriesResponse; + + /** + * Creates a plain object from a ListRepositoriesResponse message. Also converts values to other types if specified. + * @param message ListRepositoriesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.ListRepositoriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRepositoriesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRepositoriesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRepositoryRequest. */ + interface IGetRepositoryRequest { + + /** GetRepositoryRequest name */ + name?: (string|null); + } + + /** Represents a GetRepositoryRequest. */ + class GetRepositoryRequest implements IGetRepositoryRequest { + + /** + * Constructs a new GetRepositoryRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.IGetRepositoryRequest); + + /** GetRepositoryRequest name. */ + public name: string; + + /** + * Creates a new GetRepositoryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRepositoryRequest instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IGetRepositoryRequest): google.devtools.artifactregistry.v1.GetRepositoryRequest; + + /** + * Encodes the specified GetRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetRepositoryRequest.verify|verify} messages. + * @param message GetRepositoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.IGetRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetRepositoryRequest.verify|verify} messages. + * @param message GetRepositoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRepositoryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRepositoryRequest + * @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.devtools.artifactregistry.v1.GetRepositoryRequest; + + /** + * Decodes a GetRepositoryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRepositoryRequest + * @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.devtools.artifactregistry.v1.GetRepositoryRequest; + + /** + * Verifies a GetRepositoryRequest 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 GetRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRepositoryRequest + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetRepositoryRequest; + + /** + * Creates a plain object from a GetRepositoryRequest message. Also converts values to other types if specified. + * @param message GetRepositoryRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.GetRepositoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRepositoryRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRepositoryRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateRepositoryRequest. */ + interface ICreateRepositoryRequest { + + /** CreateRepositoryRequest parent */ + parent?: (string|null); + + /** CreateRepositoryRequest repositoryId */ + repositoryId?: (string|null); + + /** CreateRepositoryRequest repository */ + repository?: (google.devtools.artifactregistry.v1.IRepository|null); + } + + /** Represents a CreateRepositoryRequest. */ + class CreateRepositoryRequest implements ICreateRepositoryRequest { + + /** + * Constructs a new CreateRepositoryRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.ICreateRepositoryRequest); + + /** CreateRepositoryRequest parent. */ + public parent: string; + + /** CreateRepositoryRequest repositoryId. */ + public repositoryId: string; + + /** CreateRepositoryRequest repository. */ + public repository?: (google.devtools.artifactregistry.v1.IRepository|null); + + /** + * Creates a new CreateRepositoryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateRepositoryRequest instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.ICreateRepositoryRequest): google.devtools.artifactregistry.v1.CreateRepositoryRequest; + + /** + * Encodes the specified CreateRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateRepositoryRequest.verify|verify} messages. + * @param message CreateRepositoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.ICreateRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateRepositoryRequest.verify|verify} messages. + * @param message CreateRepositoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.ICreateRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateRepositoryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateRepositoryRequest + * @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.devtools.artifactregistry.v1.CreateRepositoryRequest; + + /** + * Decodes a CreateRepositoryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateRepositoryRequest + * @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.devtools.artifactregistry.v1.CreateRepositoryRequest; + + /** + * Verifies a CreateRepositoryRequest 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 CreateRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateRepositoryRequest + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.CreateRepositoryRequest; + + /** + * Creates a plain object from a CreateRepositoryRequest message. Also converts values to other types if specified. + * @param message CreateRepositoryRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.CreateRepositoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateRepositoryRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateRepositoryRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateRepositoryRequest. */ + interface IUpdateRepositoryRequest { + + /** UpdateRepositoryRequest repository */ + repository?: (google.devtools.artifactregistry.v1.IRepository|null); + + /** UpdateRepositoryRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateRepositoryRequest. */ + class UpdateRepositoryRequest implements IUpdateRepositoryRequest { + + /** + * Constructs a new UpdateRepositoryRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest); + + /** UpdateRepositoryRequest repository. */ + public repository?: (google.devtools.artifactregistry.v1.IRepository|null); + + /** UpdateRepositoryRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateRepositoryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateRepositoryRequest instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest): google.devtools.artifactregistry.v1.UpdateRepositoryRequest; + + /** + * Encodes the specified UpdateRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateRepositoryRequest.verify|verify} messages. + * @param message UpdateRepositoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateRepositoryRequest.verify|verify} messages. + * @param message UpdateRepositoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateRepositoryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateRepositoryRequest + * @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.devtools.artifactregistry.v1.UpdateRepositoryRequest; + + /** + * Decodes an UpdateRepositoryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateRepositoryRequest + * @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.devtools.artifactregistry.v1.UpdateRepositoryRequest; + + /** + * Verifies an UpdateRepositoryRequest 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 an UpdateRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateRepositoryRequest + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.UpdateRepositoryRequest; + + /** + * Creates a plain object from an UpdateRepositoryRequest message. Also converts values to other types if specified. + * @param message UpdateRepositoryRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.UpdateRepositoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateRepositoryRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateRepositoryRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteRepositoryRequest. */ + interface IDeleteRepositoryRequest { + + /** DeleteRepositoryRequest name */ + name?: (string|null); + } + + /** Represents a DeleteRepositoryRequest. */ + class DeleteRepositoryRequest implements IDeleteRepositoryRequest { + + /** + * Constructs a new DeleteRepositoryRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest); + + /** DeleteRepositoryRequest name. */ + public name: string; + + /** + * Creates a new DeleteRepositoryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRepositoryRequest instance + */ + public static create(properties?: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest): google.devtools.artifactregistry.v1.DeleteRepositoryRequest; + + /** + * Encodes the specified DeleteRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteRepositoryRequest.verify|verify} messages. + * @param message DeleteRepositoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteRepositoryRequest.verify|verify} messages. + * @param message DeleteRepositoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRepositoryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRepositoryRequest + * @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.devtools.artifactregistry.v1.DeleteRepositoryRequest; + + /** + * Decodes a DeleteRepositoryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRepositoryRequest + * @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.devtools.artifactregistry.v1.DeleteRepositoryRequest; + + /** + * Verifies a DeleteRepositoryRequest 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 DeleteRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRepositoryRequest + */ + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.DeleteRepositoryRequest; + + /** + * Creates a plain object from a DeleteRepositoryRequest message. Also converts values to other types if specified. + * @param message DeleteRepositoryRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.devtools.artifactregistry.v1.DeleteRepositoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRepositoryRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRepositoryRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents an ArtifactRegistry */ + class ArtifactRegistry extends $protobuf.rpc.Service { + + /** + * Constructs a new ArtifactRegistry service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ArtifactRegistry service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ArtifactRegistry; + + /** + * Calls ListDockerImages. + * @param request ListDockerImagesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDockerImagesResponse + */ + public listDockerImages(request: google.devtools.artifactregistry.v1.IListDockerImagesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListDockerImagesCallback): void; + + /** + * Calls ListDockerImages. + * @param request ListDockerImagesRequest message or plain object + * @returns Promise + */ + public listDockerImages(request: google.devtools.artifactregistry.v1.IListDockerImagesRequest): Promise; + + /** + * Calls GetDockerImage. + * @param request GetDockerImageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DockerImage + */ + public getDockerImage(request: google.devtools.artifactregistry.v1.IGetDockerImageRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetDockerImageCallback): void; + + /** + * Calls GetDockerImage. + * @param request GetDockerImageRequest message or plain object + * @returns Promise + */ + public getDockerImage(request: google.devtools.artifactregistry.v1.IGetDockerImageRequest): Promise; + + /** + * Calls ListMavenArtifacts. + * @param request ListMavenArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMavenArtifactsResponse + */ + public listMavenArtifacts(request: google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListMavenArtifactsCallback): void; + + /** + * Calls ListMavenArtifacts. + * @param request ListMavenArtifactsRequest message or plain object + * @returns Promise + */ + public listMavenArtifacts(request: google.devtools.artifactregistry.v1.IListMavenArtifactsRequest): Promise; + + /** + * Calls GetMavenArtifact. + * @param request GetMavenArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MavenArtifact + */ + public getMavenArtifact(request: google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetMavenArtifactCallback): void; + + /** + * Calls GetMavenArtifact. + * @param request GetMavenArtifactRequest message or plain object + * @returns Promise + */ + public getMavenArtifact(request: google.devtools.artifactregistry.v1.IGetMavenArtifactRequest): Promise; + + /** + * Calls ListNpmPackages. + * @param request ListNpmPackagesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNpmPackagesResponse + */ + public listNpmPackages(request: google.devtools.artifactregistry.v1.IListNpmPackagesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListNpmPackagesCallback): void; + + /** + * Calls ListNpmPackages. + * @param request ListNpmPackagesRequest message or plain object + * @returns Promise + */ + public listNpmPackages(request: google.devtools.artifactregistry.v1.IListNpmPackagesRequest): Promise; + + /** + * Calls GetNpmPackage. + * @param request GetNpmPackageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NpmPackage + */ + public getNpmPackage(request: google.devtools.artifactregistry.v1.IGetNpmPackageRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetNpmPackageCallback): void; + + /** + * Calls GetNpmPackage. + * @param request GetNpmPackageRequest message or plain object + * @returns Promise + */ + public getNpmPackage(request: google.devtools.artifactregistry.v1.IGetNpmPackageRequest): Promise; + + /** + * Calls ListPythonPackages. + * @param request ListPythonPackagesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPythonPackagesResponse + */ + public listPythonPackages(request: google.devtools.artifactregistry.v1.IListPythonPackagesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListPythonPackagesCallback): void; + + /** + * Calls ListPythonPackages. + * @param request ListPythonPackagesRequest message or plain object + * @returns Promise + */ + public listPythonPackages(request: google.devtools.artifactregistry.v1.IListPythonPackagesRequest): Promise; + + /** + * Calls GetPythonPackage. + * @param request GetPythonPackageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PythonPackage + */ + public getPythonPackage(request: google.devtools.artifactregistry.v1.IGetPythonPackageRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetPythonPackageCallback): void; + + /** + * Calls GetPythonPackage. + * @param request GetPythonPackageRequest message or plain object + * @returns Promise + */ + public getPythonPackage(request: google.devtools.artifactregistry.v1.IGetPythonPackageRequest): Promise; + + /** + * Calls ImportAptArtifacts. + * @param request ImportAptArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importAptArtifacts(request: google.devtools.artifactregistry.v1.IImportAptArtifactsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ImportAptArtifactsCallback): void; + + /** + * Calls ImportAptArtifacts. + * @param request ImportAptArtifactsRequest message or plain object + * @returns Promise + */ + public importAptArtifacts(request: google.devtools.artifactregistry.v1.IImportAptArtifactsRequest): Promise; + + /** + * Calls ImportYumArtifacts. + * @param request ImportYumArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importYumArtifacts(request: google.devtools.artifactregistry.v1.IImportYumArtifactsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ImportYumArtifactsCallback): void; + + /** + * Calls ImportYumArtifacts. + * @param request ImportYumArtifactsRequest message or plain object + * @returns Promise + */ + public importYumArtifacts(request: google.devtools.artifactregistry.v1.IImportYumArtifactsRequest): Promise; + + /** + * Calls ListRepositories. + * @param request ListRepositoriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListRepositoriesResponse + */ + public listRepositories(request: google.devtools.artifactregistry.v1.IListRepositoriesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListRepositoriesCallback): void; + + /** + * Calls ListRepositories. + * @param request ListRepositoriesRequest message or plain object + * @returns Promise + */ + public listRepositories(request: google.devtools.artifactregistry.v1.IListRepositoriesRequest): Promise; + + /** + * Calls GetRepository. + * @param request GetRepositoryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Repository + */ + public getRepository(request: google.devtools.artifactregistry.v1.IGetRepositoryRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetRepositoryCallback): void; + + /** + * Calls GetRepository. + * @param request GetRepositoryRequest message or plain object + * @returns Promise + */ + public getRepository(request: google.devtools.artifactregistry.v1.IGetRepositoryRequest): Promise; + + /** + * Calls CreateRepository. + * @param request CreateRepositoryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createRepository(request: google.devtools.artifactregistry.v1.ICreateRepositoryRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRepositoryCallback): void; + + /** + * Calls CreateRepository. + * @param request CreateRepositoryRequest message or plain object + * @returns Promise + */ + public createRepository(request: google.devtools.artifactregistry.v1.ICreateRepositoryRequest): Promise; + + /** + * Calls UpdateRepository. + * @param request UpdateRepositoryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Repository + */ + public updateRepository(request: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRepositoryCallback): void; + + /** + * Calls UpdateRepository. + * @param request UpdateRepositoryRequest message or plain object + * @returns Promise + */ + public updateRepository(request: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest): Promise; + + /** + * Calls DeleteRepository. + * @param request DeleteRepositoryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteRepository(request: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRepositoryCallback): void; + + /** + * Calls DeleteRepository. + * @param request DeleteRepositoryRequest message or plain object + * @returns Promise + */ + public deleteRepository(request: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest): Promise; + + /** + * Calls ListPackages. + * @param request ListPackagesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPackagesResponse + */ + public listPackages(request: google.devtools.artifactregistry.v1.IListPackagesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListPackagesCallback): void; + + /** + * Calls ListPackages. + * @param request ListPackagesRequest message or plain object + * @returns Promise + */ + public listPackages(request: google.devtools.artifactregistry.v1.IListPackagesRequest): Promise; + + /** + * Calls GetPackage. + * @param request GetPackageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Package + */ + public getPackage(request: google.devtools.artifactregistry.v1.IGetPackageRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetPackageCallback): void; + + /** + * Calls GetPackage. + * @param request GetPackageRequest message or plain object + * @returns Promise + */ + public getPackage(request: google.devtools.artifactregistry.v1.IGetPackageRequest): Promise; + + /** + * Calls DeletePackage. + * @param request DeletePackageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deletePackage(request: google.devtools.artifactregistry.v1.IDeletePackageRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.DeletePackageCallback): void; + + /** + * Calls DeletePackage. + * @param request DeletePackageRequest message or plain object + * @returns Promise + */ + public deletePackage(request: google.devtools.artifactregistry.v1.IDeletePackageRequest): Promise; + + /** + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListVersionsResponse + */ + public listVersions(request: google.devtools.artifactregistry.v1.IListVersionsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListVersionsCallback): void; + + /** + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @returns Promise + */ + public listVersions(request: google.devtools.artifactregistry.v1.IListVersionsRequest): Promise; + + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version + */ + public getVersion(request: google.devtools.artifactregistry.v1.IGetVersionRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetVersionCallback): void; + + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @returns Promise + */ + public getVersion(request: google.devtools.artifactregistry.v1.IGetVersionRequest): Promise; + + /** + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteVersion(request: google.devtools.artifactregistry.v1.IDeleteVersionRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteVersionCallback): void; + + /** + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @returns Promise + */ + public deleteVersion(request: google.devtools.artifactregistry.v1.IDeleteVersionRequest): Promise; + + /** + * Calls ListFiles. + * @param request ListFilesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFilesResponse + */ + public listFiles(request: google.devtools.artifactregistry.v1.IListFilesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListFilesCallback): void; + + /** + * Calls ListFiles. + * @param request ListFilesRequest message or plain object + * @returns Promise + */ + public listFiles(request: google.devtools.artifactregistry.v1.IListFilesRequest): Promise; + + /** + * Calls GetFile. + * @param request GetFileRequest message or plain object + * @param callback Node-style callback called with the error, if any, and File + */ + public getFile(request: google.devtools.artifactregistry.v1.IGetFileRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetFileCallback): void; + + /** + * Calls GetFile. + * @param request GetFileRequest message or plain object + * @returns Promise + */ + public getFile(request: google.devtools.artifactregistry.v1.IGetFileRequest): Promise; + + /** + * Calls ListTags. + * @param request ListTagsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTagsResponse + */ + public listTags(request: google.devtools.artifactregistry.v1.IListTagsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListTagsCallback): void; + + /** + * Calls ListTags. + * @param request ListTagsRequest message or plain object * @returns Promise */ - public createRepository(request: google.devtools.artifactregistry.v1.ICreateRepositoryRequest): Promise; + public listTags(request: google.devtools.artifactregistry.v1.IListTagsRequest): Promise; /** - * Calls UpdateRepository. - * @param request UpdateRepositoryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Repository + * Calls GetTag. + * @param request GetTagRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Tag + */ + public getTag(request: google.devtools.artifactregistry.v1.IGetTagRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetTagCallback): void; + + /** + * Calls GetTag. + * @param request GetTagRequest message or plain object + * @returns Promise + */ + public getTag(request: google.devtools.artifactregistry.v1.IGetTagRequest): Promise; + + /** + * Calls CreateTag. + * @param request CreateTagRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Tag + */ + public createTag(request: google.devtools.artifactregistry.v1.ICreateTagRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateTagCallback): void; + + /** + * Calls CreateTag. + * @param request CreateTagRequest message or plain object + * @returns Promise + */ + public createTag(request: google.devtools.artifactregistry.v1.ICreateTagRequest): Promise; + + /** + * Calls UpdateTag. + * @param request UpdateTagRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Tag + */ + public updateTag(request: google.devtools.artifactregistry.v1.IUpdateTagRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateTagCallback): void; + + /** + * Calls UpdateTag. + * @param request UpdateTagRequest message or plain object + * @returns Promise + */ + public updateTag(request: google.devtools.artifactregistry.v1.IUpdateTagRequest): Promise; + + /** + * Calls DeleteTag. + * @param request DeleteTagRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteTag(request: google.devtools.artifactregistry.v1.IDeleteTagRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteTagCallback): void; + + /** + * Calls DeleteTag. + * @param request DeleteTagRequest message or plain object + * @returns Promise + */ + public deleteTag(request: google.devtools.artifactregistry.v1.IDeleteTagRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse + */ + public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise; + + /** + * Calls GetProjectSettings. + * @param request GetProjectSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectSettings + */ + public getProjectSettings(request: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetProjectSettingsCallback): void; + + /** + * Calls GetProjectSettings. + * @param request GetProjectSettingsRequest message or plain object + * @returns Promise + */ + public getProjectSettings(request: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest): Promise; + + /** + * Calls UpdateProjectSettings. + * @param request UpdateProjectSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectSettings + */ + public updateProjectSettings(request: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateProjectSettingsCallback): void; + + /** + * Calls UpdateProjectSettings. + * @param request UpdateProjectSettingsRequest message or plain object + * @returns Promise + */ + public updateProjectSettings(request: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest): Promise; + + /** + * Calls GetVPCSCConfig. + * @param request GetVPCSCConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VPCSCConfig + */ + public getVPCSCConfig(request: google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetVPCSCConfigCallback): void; + + /** + * Calls GetVPCSCConfig. + * @param request GetVPCSCConfigRequest message or plain object + * @returns Promise + */ + public getVPCSCConfig(request: google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest): Promise; + + /** + * Calls UpdateVPCSCConfig. + * @param request UpdateVPCSCConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VPCSCConfig + */ + public updateVPCSCConfig(request: google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateVPCSCConfigCallback): void; + + /** + * Calls UpdateVPCSCConfig. + * @param request UpdateVPCSCConfigRequest message or plain object + * @returns Promise + */ + public updateVPCSCConfig(request: google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest): Promise; + } + + namespace ArtifactRegistry { + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listDockerImages}. + * @param error Error, if any + * @param [response] ListDockerImagesResponse + */ + type ListDockerImagesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListDockerImagesResponse) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getDockerImage}. + * @param error Error, if any + * @param [response] DockerImage + */ + type GetDockerImageCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.DockerImage) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listMavenArtifacts}. + * @param error Error, if any + * @param [response] ListMavenArtifactsResponse + */ + type ListMavenArtifactsCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListMavenArtifactsResponse) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getMavenArtifact}. + * @param error Error, if any + * @param [response] MavenArtifact + */ + type GetMavenArtifactCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.MavenArtifact) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listNpmPackages}. + * @param error Error, if any + * @param [response] ListNpmPackagesResponse + */ + type ListNpmPackagesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListNpmPackagesResponse) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getNpmPackage}. + * @param error Error, if any + * @param [response] NpmPackage + */ + type GetNpmPackageCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.NpmPackage) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listPythonPackages}. + * @param error Error, if any + * @param [response] ListPythonPackagesResponse + */ + type ListPythonPackagesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListPythonPackagesResponse) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getPythonPackage}. + * @param error Error, if any + * @param [response] PythonPackage + */ + type GetPythonPackageCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.PythonPackage) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|importAptArtifacts}. + * @param error Error, if any + * @param [response] Operation + */ + type ImportAptArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|importYumArtifacts}. + * @param error Error, if any + * @param [response] Operation + */ + type ImportYumArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listRepositories}. + * @param error Error, if any + * @param [response] ListRepositoriesResponse + */ + type ListRepositoriesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListRepositoriesResponse) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getRepository}. + * @param error Error, if any + * @param [response] Repository + */ + type GetRepositoryCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Repository) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|createRepository}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateRepositoryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateRepository}. + * @param error Error, if any + * @param [response] Repository + */ + type UpdateRepositoryCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Repository) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteRepository}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteRepositoryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listPackages}. + * @param error Error, if any + * @param [response] ListPackagesResponse + */ + type ListPackagesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListPackagesResponse) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getPackage}. + * @param error Error, if any + * @param [response] Package + */ + type GetPackageCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Package) => void; + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deletePackage}. + * @param error Error, if any + * @param [response] Operation */ - public updateRepository(request: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRepositoryCallback): void; + type DeletePackageCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls UpdateRepository. - * @param request UpdateRepositoryRequest message or plain object - * @returns Promise + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listVersions}. + * @param error Error, if any + * @param [response] ListVersionsResponse */ - public updateRepository(request: google.devtools.artifactregistry.v1.IUpdateRepositoryRequest): Promise; + type ListVersionsCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListVersionsResponse) => void; /** - * Calls DeleteRepository. - * @param request DeleteRepositoryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getVersion}. + * @param error Error, if any + * @param [response] Version */ - public deleteRepository(request: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRepositoryCallback): void; + type GetVersionCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Version) => void; /** - * Calls DeleteRepository. - * @param request DeleteRepositoryRequest message or plain object - * @returns Promise + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteVersion}. + * @param error Error, if any + * @param [response] Operation */ - public deleteRepository(request: google.devtools.artifactregistry.v1.IDeleteRepositoryRequest): Promise; + type DeleteVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls ListPackages. - * @param request ListPackagesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPackagesResponse + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listFiles}. + * @param error Error, if any + * @param [response] ListFilesResponse */ - public listPackages(request: google.devtools.artifactregistry.v1.IListPackagesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListPackagesCallback): void; + type ListFilesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListFilesResponse) => void; /** - * Calls ListPackages. - * @param request ListPackagesRequest message or plain object - * @returns Promise + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getFile}. + * @param error Error, if any + * @param [response] File */ - public listPackages(request: google.devtools.artifactregistry.v1.IListPackagesRequest): Promise; + type GetFileCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.File) => void; /** - * Calls GetPackage. - * @param request GetPackageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Package + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listTags}. + * @param error Error, if any + * @param [response] ListTagsResponse */ - public getPackage(request: google.devtools.artifactregistry.v1.IGetPackageRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetPackageCallback): void; + type ListTagsCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListTagsResponse) => void; /** - * Calls GetPackage. - * @param request GetPackageRequest message or plain object - * @returns Promise + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getTag}. + * @param error Error, if any + * @param [response] Tag */ - public getPackage(request: google.devtools.artifactregistry.v1.IGetPackageRequest): Promise; + type GetTagCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Tag) => void; /** - * Calls DeletePackage. - * @param request DeletePackageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|createTag}. + * @param error Error, if any + * @param [response] Tag */ - public deletePackage(request: google.devtools.artifactregistry.v1.IDeletePackageRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.DeletePackageCallback): void; + type CreateTagCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Tag) => void; /** - * Calls DeletePackage. - * @param request DeletePackageRequest message or plain object - * @returns Promise + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateTag}. + * @param error Error, if any + * @param [response] Tag */ - public deletePackage(request: google.devtools.artifactregistry.v1.IDeletePackageRequest): Promise; + type UpdateTagCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Tag) => void; /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListVersionsResponse + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteTag}. + * @param error Error, if any + * @param [response] Empty */ - public listVersions(request: google.devtools.artifactregistry.v1.IListVersionsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListVersionsCallback): void; + type DeleteTagCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @returns Promise + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy */ - public listVersions(request: google.devtools.artifactregistry.v1.IListVersionsRequest): Promise; + type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy */ - public getVersion(request: google.devtools.artifactregistry.v1.IGetVersionRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetVersionCallback): void; + type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @returns Promise + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|testIamPermissions}. + * @param error Error, if any + * @param [response] TestIamPermissionsResponse */ - public getVersion(request: google.devtools.artifactregistry.v1.IGetVersionRequest): Promise; + type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getProjectSettings}. + * @param error Error, if any + * @param [response] ProjectSettings */ - public deleteVersion(request: google.devtools.artifactregistry.v1.IDeleteVersionRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteVersionCallback): void; + type GetProjectSettingsCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ProjectSettings) => void; /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @returns Promise + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateProjectSettings}. + * @param error Error, if any + * @param [response] ProjectSettings */ - public deleteVersion(request: google.devtools.artifactregistry.v1.IDeleteVersionRequest): Promise; + type UpdateProjectSettingsCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ProjectSettings) => void; /** - * Calls ListFiles. - * @param request ListFilesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFilesResponse + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getVPCSCConfig}. + * @param error Error, if any + * @param [response] VPCSCConfig */ - public listFiles(request: google.devtools.artifactregistry.v1.IListFilesRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListFilesCallback): void; + type GetVPCSCConfigCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.VPCSCConfig) => void; /** - * Calls ListFiles. - * @param request ListFilesRequest message or plain object - * @returns Promise + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateVPCSCConfig}. + * @param error Error, if any + * @param [response] VPCSCConfig */ - public listFiles(request: google.devtools.artifactregistry.v1.IListFilesRequest): Promise; + type UpdateVPCSCConfigCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.VPCSCConfig) => void; + } + + /** Properties of an OperationMetadata. */ + interface IOperationMetadata { + } + + /** Represents an OperationMetadata. */ + class OperationMetadata implements IOperationMetadata { /** - * Calls GetFile. - * @param request GetFileRequest message or plain object - * @param callback Node-style callback called with the error, if any, and File + * Constructs a new OperationMetadata. + * @param [properties] Properties to set */ - public getFile(request: google.devtools.artifactregistry.v1.IGetFileRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetFileCallback): void; + constructor(properties?: google.devtools.artifactregistry.v1.IOperationMetadata); /** - * Calls GetFile. - * @param request GetFileRequest message or plain object - * @returns Promise + * Creates a new OperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationMetadata instance */ - public getFile(request: google.devtools.artifactregistry.v1.IGetFileRequest): Promise; + public static create(properties?: google.devtools.artifactregistry.v1.IOperationMetadata): google.devtools.artifactregistry.v1.OperationMetadata; /** - * Calls ListTags. - * @param request ListTagsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTagsResponse + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.devtools.artifactregistry.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listTags(request: google.devtools.artifactregistry.v1.IListTagsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.ListTagsCallback): void; + public static encode(message: google.devtools.artifactregistry.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListTags. - * @param request ListTagsRequest message or plain object - * @returns Promise + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listTags(request: google.devtools.artifactregistry.v1.IListTagsRequest): Promise; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetTag. - * @param request GetTagRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Tag + * Decodes an OperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getTag(request: google.devtools.artifactregistry.v1.IGetTagRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetTagCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.OperationMetadata; /** - * Calls GetTag. - * @param request GetTagRequest message or plain object - * @returns Promise + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getTag(request: google.devtools.artifactregistry.v1.IGetTagRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.OperationMetadata; /** - * Calls CreateTag. - * @param request CreateTagRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Tag + * Verifies an OperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createTag(request: google.devtools.artifactregistry.v1.ICreateTagRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.CreateTagCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateTag. - * @param request CreateTagRequest message or plain object - * @returns Promise + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OperationMetadata */ - public createTag(request: google.devtools.artifactregistry.v1.ICreateTagRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.OperationMetadata; /** - * Calls UpdateTag. - * @param request UpdateTagRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Tag + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @param message OperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - public updateTag(request: google.devtools.artifactregistry.v1.IUpdateTagRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateTagCallback): void; + public static toObject(message: google.devtools.artifactregistry.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateTag. - * @param request UpdateTagRequest message or plain object - * @returns Promise + * Converts this OperationMetadata to JSON. + * @returns JSON object */ - public updateTag(request: google.devtools.artifactregistry.v1.IUpdateTagRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteTag. - * @param request DeleteTagRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Gets the default type url for OperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteTag(request: google.devtools.artifactregistry.v1.IDeleteTagRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteTagCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ProjectSettings. */ + interface IProjectSettings { + + /** ProjectSettings name */ + name?: (string|null); + + /** ProjectSettings legacyRedirectionState */ + legacyRedirectionState?: (google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState|keyof typeof google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState|null); + } + + /** Represents a ProjectSettings. */ + class ProjectSettings implements IProjectSettings { /** - * Calls DeleteTag. - * @param request DeleteTagRequest message or plain object - * @returns Promise + * Constructs a new ProjectSettings. + * @param [properties] Properties to set */ - public deleteTag(request: google.devtools.artifactregistry.v1.IDeleteTagRequest): Promise; + constructor(properties?: google.devtools.artifactregistry.v1.IProjectSettings); + + /** ProjectSettings name. */ + public name: string; + + /** ProjectSettings legacyRedirectionState. */ + public legacyRedirectionState: (google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState|keyof typeof google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState); /** - * Calls SetIamPolicy. - * @param request SetIamPolicyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Policy + * Creates a new ProjectSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectSettings instance */ - public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.SetIamPolicyCallback): void; + public static create(properties?: google.devtools.artifactregistry.v1.IProjectSettings): google.devtools.artifactregistry.v1.ProjectSettings; /** - * Calls SetIamPolicy. - * @param request SetIamPolicyRequest message or plain object - * @returns Promise + * Encodes the specified ProjectSettings message. Does not implicitly {@link google.devtools.artifactregistry.v1.ProjectSettings.verify|verify} messages. + * @param message ProjectSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise; + public static encode(message: google.devtools.artifactregistry.v1.IProjectSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetIamPolicy. - * @param request GetIamPolicyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Policy + * Encodes the specified ProjectSettings message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ProjectSettings.verify|verify} messages. + * @param message ProjectSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetIamPolicyCallback): void; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IProjectSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetIamPolicy. - * @param request GetIamPolicyRequest message or plain object - * @returns Promise + * Decodes a ProjectSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ProjectSettings; /** - * Calls TestIamPermissions. - * @param request TestIamPermissionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse + * Decodes a ProjectSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProjectSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.TestIamPermissionsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ProjectSettings; /** - * Calls TestIamPermissions. - * @param request TestIamPermissionsRequest message or plain object - * @returns Promise + * Verifies a ProjectSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetProjectSettings. - * @param request GetProjectSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectSettings + * Creates a ProjectSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProjectSettings */ - public getProjectSettings(request: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.GetProjectSettingsCallback): void; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ProjectSettings; /** - * Calls GetProjectSettings. - * @param request GetProjectSettingsRequest message or plain object - * @returns Promise + * Creates a plain object from a ProjectSettings message. Also converts values to other types if specified. + * @param message ProjectSettings + * @param [options] Conversion options + * @returns Plain object */ - public getProjectSettings(request: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest): Promise; + public static toObject(message: google.devtools.artifactregistry.v1.ProjectSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateProjectSettings. - * @param request UpdateProjectSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectSettings + * Converts this ProjectSettings to JSON. + * @returns JSON object */ - public updateProjectSettings(request: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest, callback: google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateProjectSettingsCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls UpdateProjectSettings. - * @param request UpdateProjectSettingsRequest message or plain object - * @returns Promise + * Gets the default type url for ProjectSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public updateProjectSettings(request: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ArtifactRegistry { + namespace ProjectSettings { - /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listDockerImages}. - * @param error Error, if any - * @param [response] ListDockerImagesResponse - */ - type ListDockerImagesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListDockerImagesResponse) => void; + /** RedirectionState enum. */ + enum RedirectionState { + REDIRECTION_STATE_UNSPECIFIED = 0, + REDIRECTION_FROM_GCR_IO_DISABLED = 1, + REDIRECTION_FROM_GCR_IO_ENABLED = 2, + REDIRECTION_FROM_GCR_IO_FINALIZED = 3 + } + } - /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getDockerImage}. - * @param error Error, if any - * @param [response] DockerImage - */ - type GetDockerImageCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.DockerImage) => void; + /** Properties of a GetProjectSettingsRequest. */ + interface IGetProjectSettingsRequest { - /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|importAptArtifacts}. - * @param error Error, if any - * @param [response] Operation - */ - type ImportAptArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** GetProjectSettingsRequest name */ + name?: (string|null); + } - /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|importYumArtifacts}. - * @param error Error, if any - * @param [response] Operation - */ - type ImportYumArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Represents a GetProjectSettingsRequest. */ + class GetProjectSettingsRequest implements IGetProjectSettingsRequest { /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listRepositories}. - * @param error Error, if any - * @param [response] ListRepositoriesResponse + * Constructs a new GetProjectSettingsRequest. + * @param [properties] Properties to set */ - type ListRepositoriesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListRepositoriesResponse) => void; + constructor(properties?: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest); - /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getRepository}. - * @param error Error, if any - * @param [response] Repository - */ - type GetRepositoryCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Repository) => void; + /** GetProjectSettingsRequest name. */ + public name: string; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|createRepository}. - * @param error Error, if any - * @param [response] Operation + * Creates a new GetProjectSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetProjectSettingsRequest instance */ - type CreateRepositoryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest): google.devtools.artifactregistry.v1.GetProjectSettingsRequest; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateRepository}. - * @param error Error, if any - * @param [response] Repository + * Encodes the specified GetProjectSettingsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetProjectSettingsRequest.verify|verify} messages. + * @param message GetProjectSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateRepositoryCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Repository) => void; + public static encode(message: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteRepository}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified GetProjectSettingsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetProjectSettingsRequest.verify|verify} messages. + * @param message GetProjectSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteRepositoryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listPackages}. - * @param error Error, if any - * @param [response] ListPackagesResponse + * Decodes a GetProjectSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetProjectSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListPackagesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListPackagesResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.GetProjectSettingsRequest; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getPackage}. - * @param error Error, if any - * @param [response] Package + * Decodes a GetProjectSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetProjectSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetPackageCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Package) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.GetProjectSettingsRequest; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deletePackage}. - * @param error Error, if any - * @param [response] Operation + * Verifies a GetProjectSettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type DeletePackageCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listVersions}. - * @param error Error, if any - * @param [response] ListVersionsResponse + * Creates a GetProjectSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetProjectSettingsRequest */ - type ListVersionsCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListVersionsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetProjectSettingsRequest; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getVersion}. - * @param error Error, if any - * @param [response] Version + * Creates a plain object from a GetProjectSettingsRequest message. Also converts values to other types if specified. + * @param message GetProjectSettingsRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetVersionCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Version) => void; + public static toObject(message: google.devtools.artifactregistry.v1.GetProjectSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteVersion}. - * @param error Error, if any - * @param [response] Operation + * Converts this GetProjectSettingsRequest to JSON. + * @returns JSON object */ - type DeleteVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listFiles}. - * @param error Error, if any - * @param [response] ListFilesResponse + * Gets the default type url for GetProjectSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListFilesCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListFilesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateProjectSettingsRequest. */ + interface IUpdateProjectSettingsRequest { + + /** UpdateProjectSettingsRequest projectSettings */ + projectSettings?: (google.devtools.artifactregistry.v1.IProjectSettings|null); + + /** UpdateProjectSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateProjectSettingsRequest. */ + class UpdateProjectSettingsRequest implements IUpdateProjectSettingsRequest { /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getFile}. - * @param error Error, if any - * @param [response] File + * Constructs a new UpdateProjectSettingsRequest. + * @param [properties] Properties to set */ - type GetFileCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.File) => void; + constructor(properties?: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest); + + /** UpdateProjectSettingsRequest projectSettings. */ + public projectSettings?: (google.devtools.artifactregistry.v1.IProjectSettings|null); + + /** UpdateProjectSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listTags}. - * @param error Error, if any - * @param [response] ListTagsResponse + * Creates a new UpdateProjectSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateProjectSettingsRequest instance */ - type ListTagsCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ListTagsResponse) => void; + public static create(properties?: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest): google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getTag}. - * @param error Error, if any - * @param [response] Tag + * Encodes the specified UpdateProjectSettingsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.verify|verify} messages. + * @param message UpdateProjectSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetTagCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Tag) => void; + public static encode(message: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|createTag}. - * @param error Error, if any - * @param [response] Tag + * Encodes the specified UpdateProjectSettingsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.verify|verify} messages. + * @param message UpdateProjectSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateTagCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Tag) => void; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateTag}. - * @param error Error, if any - * @param [response] Tag + * Decodes an UpdateProjectSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateProjectSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateTagCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.Tag) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteTag}. - * @param error Error, if any - * @param [response] Empty + * Decodes an UpdateProjectSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateProjectSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteTagCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|setIamPolicy}. - * @param error Error, if any - * @param [response] Policy + * Verifies an UpdateProjectSettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getIamPolicy}. - * @param error Error, if any - * @param [response] Policy + * Creates an UpdateProjectSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateProjectSettingsRequest */ - type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|testIamPermissions}. - * @param error Error, if any - * @param [response] TestIamPermissionsResponse + * Creates a plain object from an UpdateProjectSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateProjectSettingsRequest + * @param [options] Conversion options + * @returns Plain object */ - type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; + public static toObject(message: google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getProjectSettings}. - * @param error Error, if any - * @param [response] ProjectSettings + * Converts this UpdateProjectSettingsRequest to JSON. + * @returns JSON object */ - type GetProjectSettingsCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ProjectSettings) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateProjectSettings}. - * @param error Error, if any - * @param [response] ProjectSettings + * Gets the default type url for UpdateProjectSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type UpdateProjectSettingsCallback = (error: (Error|null), response?: google.devtools.artifactregistry.v1.ProjectSettings) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an OperationMetadata. */ - interface IOperationMetadata { + /** Properties of a Tag. */ + interface ITag { + + /** Tag name */ + name?: (string|null); + + /** Tag version */ + version?: (string|null); } - /** Represents an OperationMetadata. */ - class OperationMetadata implements IOperationMetadata { + /** Represents a Tag. */ + class Tag implements ITag { /** - * Constructs a new OperationMetadata. + * Constructs a new Tag. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IOperationMetadata); + constructor(properties?: google.devtools.artifactregistry.v1.ITag); + + /** Tag name. */ + public name: string; + + /** Tag version. */ + public version: string; /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new Tag instance using the specified properties. * @param [properties] Properties to set - * @returns OperationMetadata instance + * @returns Tag instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IOperationMetadata): google.devtools.artifactregistry.v1.OperationMetadata; + public static create(properties?: google.devtools.artifactregistry.v1.ITag): google.devtools.artifactregistry.v1.Tag; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.devtools.artifactregistry.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified Tag message. Does not implicitly {@link google.devtools.artifactregistry.v1.Tag.verify|verify} messages. + * @param message Tag message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.ITag, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified Tag message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Tag.verify|verify} messages. + * @param message Tag message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.ITag, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes a Tag message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OperationMetadata + * @returns Tag * @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.devtools.artifactregistry.v1.OperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.Tag; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a Tag message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OperationMetadata + * @returns Tag * @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.devtools.artifactregistry.v1.OperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.Tag; /** - * Verifies an OperationMetadata message. + * Verifies a Tag 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 an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a Tag message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OperationMetadata + * @returns Tag */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.OperationMetadata; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Tag; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. - * @param message OperationMetadata + * Creates a plain object from a Tag message. Also converts values to other types if specified. + * @param message Tag * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.Tag, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OperationMetadata to JSON. + * Converts this Tag to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for Tag * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ProjectSettings. */ - interface IProjectSettings { + /** Properties of a ListTagsRequest. */ + interface IListTagsRequest { - /** ProjectSettings name */ - name?: (string|null); + /** ListTagsRequest parent */ + parent?: (string|null); - /** ProjectSettings legacyRedirectionState */ - legacyRedirectionState?: (google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState|keyof typeof google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState|null); + /** ListTagsRequest filter */ + filter?: (string|null); + + /** ListTagsRequest pageSize */ + pageSize?: (number|null); + + /** ListTagsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ProjectSettings. */ - class ProjectSettings implements IProjectSettings { + /** Represents a ListTagsRequest. */ + class ListTagsRequest implements IListTagsRequest { /** - * Constructs a new ProjectSettings. + * Constructs a new ListTagsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IProjectSettings); + constructor(properties?: google.devtools.artifactregistry.v1.IListTagsRequest); - /** ProjectSettings name. */ - public name: string; + /** ListTagsRequest parent. */ + public parent: string; - /** ProjectSettings legacyRedirectionState. */ - public legacyRedirectionState: (google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState|keyof typeof google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState); + /** ListTagsRequest filter. */ + public filter: string; + + /** ListTagsRequest pageSize. */ + public pageSize: number; + + /** ListTagsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ProjectSettings instance using the specified properties. + * Creates a new ListTagsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ProjectSettings instance + * @returns ListTagsRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IProjectSettings): google.devtools.artifactregistry.v1.ProjectSettings; + public static create(properties?: google.devtools.artifactregistry.v1.IListTagsRequest): google.devtools.artifactregistry.v1.ListTagsRequest; /** - * Encodes the specified ProjectSettings message. Does not implicitly {@link google.devtools.artifactregistry.v1.ProjectSettings.verify|verify} messages. - * @param message ProjectSettings message or plain object to encode + * Encodes the specified ListTagsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsRequest.verify|verify} messages. + * @param message ListTagsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IProjectSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ProjectSettings message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ProjectSettings.verify|verify} messages. - * @param message ProjectSettings message or plain object to encode + * Encodes the specified ListTagsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsRequest.verify|verify} messages. + * @param message ListTagsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IProjectSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProjectSettings message from the specified reader or buffer. + * Decodes a ListTagsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ProjectSettings + * @returns ListTagsRequest * @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.devtools.artifactregistry.v1.ProjectSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListTagsRequest; /** - * Decodes a ProjectSettings message from the specified reader or buffer, length delimited. + * Decodes a ListTagsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ProjectSettings + * @returns ListTagsRequest * @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.devtools.artifactregistry.v1.ProjectSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListTagsRequest; /** - * Verifies a ProjectSettings message. + * Verifies a ListTagsRequest 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 ProjectSettings message from a plain object. Also converts values to their respective internal types. + * Creates a ListTagsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ProjectSettings + * @returns ListTagsRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ProjectSettings; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListTagsRequest; /** - * Creates a plain object from a ProjectSettings message. Also converts values to other types if specified. - * @param message ProjectSettings + * Creates a plain object from a ListTagsRequest message. Also converts values to other types if specified. + * @param message ListTagsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ProjectSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ProjectSettings to JSON. + * Converts this ListTagsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ProjectSettings + * Gets the default type url for ListTagsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ProjectSettings { - - /** RedirectionState enum. */ - enum RedirectionState { - REDIRECTION_STATE_UNSPECIFIED = 0, - REDIRECTION_FROM_GCR_IO_DISABLED = 1, - REDIRECTION_FROM_GCR_IO_ENABLED = 2, - REDIRECTION_FROM_GCR_IO_FINALIZED = 3 - } - } + /** Properties of a ListTagsResponse. */ + interface IListTagsResponse { - /** Properties of a GetProjectSettingsRequest. */ - interface IGetProjectSettingsRequest { + /** ListTagsResponse tags */ + tags?: (google.devtools.artifactregistry.v1.ITag[]|null); - /** GetProjectSettingsRequest name */ - name?: (string|null); + /** ListTagsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetProjectSettingsRequest. */ - class GetProjectSettingsRequest implements IGetProjectSettingsRequest { + /** Represents a ListTagsResponse. */ + class ListTagsResponse implements IListTagsResponse { /** - * Constructs a new GetProjectSettingsRequest. + * Constructs a new ListTagsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IListTagsResponse); - /** GetProjectSettingsRequest name. */ - public name: string; + /** ListTagsResponse tags. */ + public tags: google.devtools.artifactregistry.v1.ITag[]; + + /** ListTagsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetProjectSettingsRequest instance using the specified properties. + * Creates a new ListTagsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetProjectSettingsRequest instance + * @returns ListTagsResponse instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest): google.devtools.artifactregistry.v1.GetProjectSettingsRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IListTagsResponse): google.devtools.artifactregistry.v1.ListTagsResponse; /** - * Encodes the specified GetProjectSettingsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetProjectSettingsRequest.verify|verify} messages. - * @param message GetProjectSettingsRequest message or plain object to encode + * Encodes the specified ListTagsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsResponse.verify|verify} messages. + * @param message ListTagsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetProjectSettingsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetProjectSettingsRequest.verify|verify} messages. - * @param message GetProjectSettingsRequest message or plain object to encode + * Encodes the specified ListTagsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsResponse.verify|verify} messages. + * @param message ListTagsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetProjectSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetProjectSettingsRequest message from the specified reader or buffer. + * Decodes a ListTagsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetProjectSettingsRequest + * @returns ListTagsResponse * @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.devtools.artifactregistry.v1.GetProjectSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListTagsResponse; /** - * Decodes a GetProjectSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTagsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetProjectSettingsRequest + * @returns ListTagsResponse * @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.devtools.artifactregistry.v1.GetProjectSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListTagsResponse; /** - * Verifies a GetProjectSettingsRequest message. + * Verifies a ListTagsResponse 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 GetProjectSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTagsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetProjectSettingsRequest + * @returns ListTagsResponse */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetProjectSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListTagsResponse; /** - * Creates a plain object from a GetProjectSettingsRequest message. Also converts values to other types if specified. - * @param message GetProjectSettingsRequest + * Creates a plain object from a ListTagsResponse message. Also converts values to other types if specified. + * @param message ListTagsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.GetProjectSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetProjectSettingsRequest to JSON. + * Converts this ListTagsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetProjectSettingsRequest + * Gets the default type url for ListTagsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateProjectSettingsRequest. */ - interface IUpdateProjectSettingsRequest { - - /** UpdateProjectSettingsRequest projectSettings */ - projectSettings?: (google.devtools.artifactregistry.v1.IProjectSettings|null); + /** Properties of a GetTagRequest. */ + interface IGetTagRequest { - /** UpdateProjectSettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** GetTagRequest name */ + name?: (string|null); } - /** Represents an UpdateProjectSettingsRequest. */ - class UpdateProjectSettingsRequest implements IUpdateProjectSettingsRequest { + /** Represents a GetTagRequest. */ + class GetTagRequest implements IGetTagRequest { /** - * Constructs a new UpdateProjectSettingsRequest. + * Constructs a new GetTagRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest); - - /** UpdateProjectSettingsRequest projectSettings. */ - public projectSettings?: (google.devtools.artifactregistry.v1.IProjectSettings|null); + constructor(properties?: google.devtools.artifactregistry.v1.IGetTagRequest); - /** UpdateProjectSettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** GetTagRequest name. */ + public name: string; /** - * Creates a new UpdateProjectSettingsRequest instance using the specified properties. + * Creates a new GetTagRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateProjectSettingsRequest instance + * @returns GetTagRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest): google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IGetTagRequest): google.devtools.artifactregistry.v1.GetTagRequest; /** - * Encodes the specified UpdateProjectSettingsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.verify|verify} messages. - * @param message UpdateProjectSettingsRequest message or plain object to encode + * Encodes the specified GetTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetTagRequest.verify|verify} messages. + * @param message GetTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IGetTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateProjectSettingsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.verify|verify} messages. - * @param message UpdateProjectSettingsRequest message or plain object to encode + * Encodes the specified GetTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetTagRequest.verify|verify} messages. + * @param message GetTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateProjectSettingsRequest message from the specified reader or buffer. + * Decodes a GetTagRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateProjectSettingsRequest + * @returns GetTagRequest * @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.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.GetTagRequest; /** - * Decodes an UpdateProjectSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTagRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateProjectSettingsRequest + * @returns GetTagRequest * @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.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.GetTagRequest; /** - * Verifies an UpdateProjectSettingsRequest message. + * Verifies a GetTagRequest 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 an UpdateProjectSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTagRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateProjectSettingsRequest + * @returns GetTagRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetTagRequest; /** - * Creates a plain object from an UpdateProjectSettingsRequest message. Also converts values to other types if specified. - * @param message UpdateProjectSettingsRequest + * Creates a plain object from a GetTagRequest message. Also converts values to other types if specified. + * @param message GetTagRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.GetTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateProjectSettingsRequest to JSON. + * Converts this GetTagRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateProjectSettingsRequest + * Gets the default type url for GetTagRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Tag. */ - interface ITag { + /** Properties of a CreateTagRequest. */ + interface ICreateTagRequest { - /** Tag name */ - name?: (string|null); + /** CreateTagRequest parent */ + parent?: (string|null); - /** Tag version */ - version?: (string|null); + /** CreateTagRequest tagId */ + tagId?: (string|null); + + /** CreateTagRequest tag */ + tag?: (google.devtools.artifactregistry.v1.ITag|null); } - /** Represents a Tag. */ - class Tag implements ITag { + /** Represents a CreateTagRequest. */ + class CreateTagRequest implements ICreateTagRequest { /** - * Constructs a new Tag. + * Constructs a new CreateTagRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.ITag); + constructor(properties?: google.devtools.artifactregistry.v1.ICreateTagRequest); - /** Tag name. */ - public name: string; + /** CreateTagRequest parent. */ + public parent: string; - /** Tag version. */ - public version: string; + /** CreateTagRequest tagId. */ + public tagId: string; + + /** CreateTagRequest tag. */ + public tag?: (google.devtools.artifactregistry.v1.ITag|null); /** - * Creates a new Tag instance using the specified properties. + * Creates a new CreateTagRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Tag instance + * @returns CreateTagRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.ITag): google.devtools.artifactregistry.v1.Tag; + public static create(properties?: google.devtools.artifactregistry.v1.ICreateTagRequest): google.devtools.artifactregistry.v1.CreateTagRequest; /** - * Encodes the specified Tag message. Does not implicitly {@link google.devtools.artifactregistry.v1.Tag.verify|verify} messages. - * @param message Tag message or plain object to encode + * Encodes the specified CreateTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateTagRequest.verify|verify} messages. + * @param message CreateTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.ITag, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.ICreateTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Tag message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Tag.verify|verify} messages. - * @param message Tag message or plain object to encode + * Encodes the specified CreateTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateTagRequest.verify|verify} messages. + * @param message CreateTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.ITag, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.ICreateTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Tag message from the specified reader or buffer. + * Decodes a CreateTagRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Tag + * @returns CreateTagRequest * @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.devtools.artifactregistry.v1.Tag; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.CreateTagRequest; /** - * Decodes a Tag message from the specified reader or buffer, length delimited. + * Decodes a CreateTagRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Tag + * @returns CreateTagRequest * @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.devtools.artifactregistry.v1.Tag; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.CreateTagRequest; /** - * Verifies a Tag message. + * Verifies a CreateTagRequest 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 Tag message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTagRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Tag + * @returns CreateTagRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Tag; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.CreateTagRequest; /** - * Creates a plain object from a Tag message. Also converts values to other types if specified. - * @param message Tag + * Creates a plain object from a CreateTagRequest message. Also converts values to other types if specified. + * @param message CreateTagRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.Tag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.CreateTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Tag to JSON. + * Converts this CreateTagRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Tag + * Gets the default type url for CreateTagRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTagsRequest. */ - interface IListTagsRequest { - - /** ListTagsRequest parent */ - parent?: (string|null); - - /** ListTagsRequest filter */ - filter?: (string|null); + /** Properties of an UpdateTagRequest. */ + interface IUpdateTagRequest { - /** ListTagsRequest pageSize */ - pageSize?: (number|null); + /** UpdateTagRequest tag */ + tag?: (google.devtools.artifactregistry.v1.ITag|null); - /** ListTagsRequest pageToken */ - pageToken?: (string|null); + /** UpdateTagRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListTagsRequest. */ - class ListTagsRequest implements IListTagsRequest { + /** Represents an UpdateTagRequest. */ + class UpdateTagRequest implements IUpdateTagRequest { /** - * Constructs a new ListTagsRequest. + * Constructs a new UpdateTagRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListTagsRequest); - - /** ListTagsRequest parent. */ - public parent: string; - - /** ListTagsRequest filter. */ - public filter: string; + constructor(properties?: google.devtools.artifactregistry.v1.IUpdateTagRequest); - /** ListTagsRequest pageSize. */ - public pageSize: number; + /** UpdateTagRequest tag. */ + public tag?: (google.devtools.artifactregistry.v1.ITag|null); - /** ListTagsRequest pageToken. */ - public pageToken: string; + /** UpdateTagRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListTagsRequest instance using the specified properties. + * Creates a new UpdateTagRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTagsRequest instance + * @returns UpdateTagRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListTagsRequest): google.devtools.artifactregistry.v1.ListTagsRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IUpdateTagRequest): google.devtools.artifactregistry.v1.UpdateTagRequest; /** - * Encodes the specified ListTagsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsRequest.verify|verify} messages. - * @param message ListTagsRequest message or plain object to encode + * Encodes the specified UpdateTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateTagRequest.verify|verify} messages. + * @param message UpdateTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IUpdateTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTagsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsRequest.verify|verify} messages. - * @param message ListTagsRequest message or plain object to encode + * Encodes the specified UpdateTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateTagRequest.verify|verify} messages. + * @param message UpdateTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IUpdateTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTagsRequest message from the specified reader or buffer. + * Decodes an UpdateTagRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTagsRequest + * @returns UpdateTagRequest * @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.devtools.artifactregistry.v1.ListTagsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.UpdateTagRequest; /** - * Decodes a ListTagsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateTagRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTagsRequest + * @returns UpdateTagRequest * @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.devtools.artifactregistry.v1.ListTagsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.UpdateTagRequest; /** - * Verifies a ListTagsRequest message. + * Verifies an UpdateTagRequest 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 ListTagsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTagRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTagsRequest + * @returns UpdateTagRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListTagsRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.UpdateTagRequest; /** - * Creates a plain object from a ListTagsRequest message. Also converts values to other types if specified. - * @param message ListTagsRequest + * Creates a plain object from an UpdateTagRequest message. Also converts values to other types if specified. + * @param message UpdateTagRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.UpdateTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTagsRequest to JSON. + * Converts this UpdateTagRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTagsRequest + * Gets the default type url for UpdateTagRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTagsResponse. */ - interface IListTagsResponse { - - /** ListTagsResponse tags */ - tags?: (google.devtools.artifactregistry.v1.ITag[]|null); + /** Properties of a DeleteTagRequest. */ + interface IDeleteTagRequest { - /** ListTagsResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteTagRequest name */ + name?: (string|null); } - /** Represents a ListTagsResponse. */ - class ListTagsResponse implements IListTagsResponse { + /** Represents a DeleteTagRequest. */ + class DeleteTagRequest implements IDeleteTagRequest { /** - * Constructs a new ListTagsResponse. + * Constructs a new DeleteTagRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListTagsResponse); - - /** ListTagsResponse tags. */ - public tags: google.devtools.artifactregistry.v1.ITag[]; + constructor(properties?: google.devtools.artifactregistry.v1.IDeleteTagRequest); - /** ListTagsResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteTagRequest name. */ + public name: string; /** - * Creates a new ListTagsResponse instance using the specified properties. + * Creates a new DeleteTagRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTagsResponse instance + * @returns DeleteTagRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListTagsResponse): google.devtools.artifactregistry.v1.ListTagsResponse; + public static create(properties?: google.devtools.artifactregistry.v1.IDeleteTagRequest): google.devtools.artifactregistry.v1.DeleteTagRequest; /** - * Encodes the specified ListTagsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsResponse.verify|verify} messages. - * @param message ListTagsResponse message or plain object to encode + * Encodes the specified DeleteTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteTagRequest.verify|verify} messages. + * @param message DeleteTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IDeleteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTagsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsResponse.verify|verify} messages. - * @param message ListTagsResponse message or plain object to encode + * Encodes the specified DeleteTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteTagRequest.verify|verify} messages. + * @param message DeleteTagRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IDeleteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTagsResponse message from the specified reader or buffer. + * Decodes a DeleteTagRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTagsResponse + * @returns DeleteTagRequest * @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.devtools.artifactregistry.v1.ListTagsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.DeleteTagRequest; /** - * Decodes a ListTagsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteTagRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTagsResponse + * @returns DeleteTagRequest * @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.devtools.artifactregistry.v1.ListTagsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.DeleteTagRequest; /** - * Verifies a ListTagsResponse message. + * Verifies a DeleteTagRequest 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 ListTagsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTagRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTagsResponse + * @returns DeleteTagRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListTagsResponse; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.DeleteTagRequest; /** - * Creates a plain object from a ListTagsResponse message. Also converts values to other types if specified. - * @param message ListTagsResponse + * Creates a plain object from a DeleteTagRequest message. Also converts values to other types if specified. + * @param message DeleteTagRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.DeleteTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTagsResponse to JSON. + * Converts this DeleteTagRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTagsResponse + * Gets the default type url for DeleteTagRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTagRequest. */ - interface IGetTagRequest { + /** VersionView enum. */ + enum VersionView { + VERSION_VIEW_UNSPECIFIED = 0, + BASIC = 1, + FULL = 2 + } - /** GetTagRequest name */ + /** Properties of a Version. */ + interface IVersion { + + /** Version name */ name?: (string|null); + + /** Version description */ + description?: (string|null); + + /** Version createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Version updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Version relatedTags */ + relatedTags?: (google.devtools.artifactregistry.v1.ITag[]|null); + + /** Version metadata */ + metadata?: (google.protobuf.IStruct|null); } - /** Represents a GetTagRequest. */ - class GetTagRequest implements IGetTagRequest { + /** Represents a Version. */ + class Version implements IVersion { /** - * Constructs a new GetTagRequest. + * Constructs a new Version. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IGetTagRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IVersion); - /** GetTagRequest name. */ + /** Version name. */ public name: string; + /** Version description. */ + public description: string; + + /** Version createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Version updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Version relatedTags. */ + public relatedTags: google.devtools.artifactregistry.v1.ITag[]; + + /** Version metadata. */ + public metadata?: (google.protobuf.IStruct|null); + /** - * Creates a new GetTagRequest instance using the specified properties. + * Creates a new Version instance using the specified properties. * @param [properties] Properties to set - * @returns GetTagRequest instance + * @returns Version instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IGetTagRequest): google.devtools.artifactregistry.v1.GetTagRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IVersion): google.devtools.artifactregistry.v1.Version; /** - * Encodes the specified GetTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetTagRequest.verify|verify} messages. - * @param message GetTagRequest message or plain object to encode + * Encodes the specified Version message. Does not implicitly {@link google.devtools.artifactregistry.v1.Version.verify|verify} messages. + * @param message Version message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IGetTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetTagRequest.verify|verify} messages. - * @param message GetTagRequest message or plain object to encode + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Version.verify|verify} messages. + * @param message Version message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTagRequest message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTagRequest + * @returns Version * @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.devtools.artifactregistry.v1.GetTagRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.Version; /** - * Decodes a GetTagRequest message from the specified reader or buffer, length delimited. + * Decodes a Version message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTagRequest + * @returns Version * @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.devtools.artifactregistry.v1.GetTagRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.Version; /** - * Verifies a GetTagRequest message. + * Verifies a Version 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 GetTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Version message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTagRequest + * @returns Version */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetTagRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Version; /** - * Creates a plain object from a GetTagRequest message. Also converts values to other types if specified. - * @param message GetTagRequest + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @param message Version * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.GetTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTagRequest to JSON. + * Converts this Version to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTagRequest + * Gets the default type url for Version * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTagRequest. */ - interface ICreateTagRequest { + /** Properties of a ListVersionsRequest. */ + interface IListVersionsRequest { - /** CreateTagRequest parent */ + /** ListVersionsRequest parent */ parent?: (string|null); - /** CreateTagRequest tagId */ - tagId?: (string|null); + /** ListVersionsRequest pageSize */ + pageSize?: (number|null); + + /** ListVersionsRequest pageToken */ + pageToken?: (string|null); - /** CreateTagRequest tag */ - tag?: (google.devtools.artifactregistry.v1.ITag|null); + /** ListVersionsRequest view */ + view?: (google.devtools.artifactregistry.v1.VersionView|keyof typeof google.devtools.artifactregistry.v1.VersionView|null); + + /** ListVersionsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CreateTagRequest. */ - class CreateTagRequest implements ICreateTagRequest { + /** Represents a ListVersionsRequest. */ + class ListVersionsRequest implements IListVersionsRequest { /** - * Constructs a new CreateTagRequest. + * Constructs a new ListVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.ICreateTagRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IListVersionsRequest); - /** CreateTagRequest parent. */ + /** ListVersionsRequest parent. */ public parent: string; - /** CreateTagRequest tagId. */ - public tagId: string; + /** ListVersionsRequest pageSize. */ + public pageSize: number; - /** CreateTagRequest tag. */ - public tag?: (google.devtools.artifactregistry.v1.ITag|null); + /** ListVersionsRequest pageToken. */ + public pageToken: string; + + /** ListVersionsRequest view. */ + public view: (google.devtools.artifactregistry.v1.VersionView|keyof typeof google.devtools.artifactregistry.v1.VersionView); + + /** ListVersionsRequest orderBy. */ + public orderBy: string; /** - * Creates a new CreateTagRequest instance using the specified properties. + * Creates a new ListVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTagRequest instance + * @returns ListVersionsRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.ICreateTagRequest): google.devtools.artifactregistry.v1.CreateTagRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IListVersionsRequest): google.devtools.artifactregistry.v1.ListVersionsRequest; /** - * Encodes the specified CreateTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateTagRequest.verify|verify} messages. - * @param message CreateTagRequest message or plain object to encode + * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsRequest.verify|verify} messages. + * @param message ListVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.ICreateTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateTagRequest.verify|verify} messages. - * @param message CreateTagRequest message or plain object to encode + * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsRequest.verify|verify} messages. + * @param message ListVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.ICreateTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTagRequest message from the specified reader or buffer. + * Decodes a ListVersionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTagRequest + * @returns ListVersionsRequest * @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.devtools.artifactregistry.v1.CreateTagRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListVersionsRequest; /** - * Decodes a CreateTagRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTagRequest + * @returns ListVersionsRequest * @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.devtools.artifactregistry.v1.CreateTagRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListVersionsRequest; /** - * Verifies a CreateTagRequest message. + * Verifies a ListVersionsRequest 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 CreateTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTagRequest + * @returns ListVersionsRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.CreateTagRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListVersionsRequest; /** - * Creates a plain object from a CreateTagRequest message. Also converts values to other types if specified. - * @param message CreateTagRequest + * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * @param message ListVersionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.CreateTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTagRequest to JSON. + * Converts this ListVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTagRequest + * Gets the default type url for ListVersionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTagRequest. */ - interface IUpdateTagRequest { + /** Properties of a ListVersionsResponse. */ + interface IListVersionsResponse { - /** UpdateTagRequest tag */ - tag?: (google.devtools.artifactregistry.v1.ITag|null); + /** ListVersionsResponse versions */ + versions?: (google.devtools.artifactregistry.v1.IVersion[]|null); - /** UpdateTagRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListVersionsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateTagRequest. */ - class UpdateTagRequest implements IUpdateTagRequest { + /** Represents a ListVersionsResponse. */ + class ListVersionsResponse implements IListVersionsResponse { /** - * Constructs a new UpdateTagRequest. + * Constructs a new ListVersionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IUpdateTagRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IListVersionsResponse); - /** UpdateTagRequest tag. */ - public tag?: (google.devtools.artifactregistry.v1.ITag|null); + /** ListVersionsResponse versions. */ + public versions: google.devtools.artifactregistry.v1.IVersion[]; - /** UpdateTagRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListVersionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateTagRequest instance using the specified properties. + * Creates a new ListVersionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTagRequest instance + * @returns ListVersionsResponse instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IUpdateTagRequest): google.devtools.artifactregistry.v1.UpdateTagRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IListVersionsResponse): google.devtools.artifactregistry.v1.ListVersionsResponse; /** - * Encodes the specified UpdateTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateTagRequest.verify|verify} messages. - * @param message UpdateTagRequest message or plain object to encode + * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsResponse.verify|verify} messages. + * @param message ListVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IUpdateTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateTagRequest.verify|verify} messages. - * @param message UpdateTagRequest message or plain object to encode + * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsResponse.verify|verify} messages. + * @param message ListVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IUpdateTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTagRequest message from the specified reader or buffer. + * Decodes a ListVersionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTagRequest + * @returns ListVersionsResponse * @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.devtools.artifactregistry.v1.UpdateTagRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.ListVersionsResponse; /** - * Decodes an UpdateTagRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTagRequest + * @returns ListVersionsResponse * @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.devtools.artifactregistry.v1.UpdateTagRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.ListVersionsResponse; /** - * Verifies an UpdateTagRequest message. + * Verifies a ListVersionsResponse 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 an UpdateTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTagRequest + * @returns ListVersionsResponse */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.UpdateTagRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListVersionsResponse; /** - * Creates a plain object from an UpdateTagRequest message. Also converts values to other types if specified. - * @param message UpdateTagRequest + * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. + * @param message ListVersionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.UpdateTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTagRequest to JSON. + * Converts this ListVersionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTagRequest + * Gets the default type url for ListVersionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTagRequest. */ - interface IDeleteTagRequest { + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { - /** DeleteTagRequest name */ + /** GetVersionRequest name */ name?: (string|null); + + /** GetVersionRequest view */ + view?: (google.devtools.artifactregistry.v1.VersionView|keyof typeof google.devtools.artifactregistry.v1.VersionView|null); } - /** Represents a DeleteTagRequest. */ - class DeleteTagRequest implements IDeleteTagRequest { + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { /** - * Constructs a new DeleteTagRequest. + * Constructs a new GetVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IDeleteTagRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IGetVersionRequest); - /** DeleteTagRequest name. */ + /** GetVersionRequest name. */ public name: string; + /** GetVersionRequest view. */ + public view: (google.devtools.artifactregistry.v1.VersionView|keyof typeof google.devtools.artifactregistry.v1.VersionView); + /** - * Creates a new DeleteTagRequest instance using the specified properties. + * Creates a new GetVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTagRequest instance + * @returns GetVersionRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IDeleteTagRequest): google.devtools.artifactregistry.v1.DeleteTagRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IGetVersionRequest): google.devtools.artifactregistry.v1.GetVersionRequest; /** - * Encodes the specified DeleteTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteTagRequest.verify|verify} messages. - * @param message DeleteTagRequest message or plain object to encode + * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IDeleteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteTagRequest.verify|verify} messages. - * @param message DeleteTagRequest message or plain object to encode + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IDeleteTagRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTagRequest message from the specified reader or buffer. + * Decodes a GetVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTagRequest + * @returns GetVersionRequest * @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.devtools.artifactregistry.v1.DeleteTagRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.GetVersionRequest; /** - * Decodes a DeleteTagRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTagRequest + * @returns GetVersionRequest * @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.devtools.artifactregistry.v1.DeleteTagRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.GetVersionRequest; /** - * Verifies a DeleteTagRequest message. + * Verifies a GetVersionRequest 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 DeleteTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTagRequest + * @returns GetVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.DeleteTagRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetVersionRequest; /** - * Creates a plain object from a DeleteTagRequest message. Also converts values to other types if specified. - * @param message DeleteTagRequest + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. + * @param message GetVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.DeleteTagRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTagRequest to JSON. + * Converts this GetVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTagRequest + * Gets the default type url for GetVersionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** VersionView enum. */ - enum VersionView { - VERSION_VIEW_UNSPECIFIED = 0, - BASIC = 1, - FULL = 2 - } - - /** Properties of a Version. */ - interface IVersion { + /** Properties of a DeleteVersionRequest. */ + interface IDeleteVersionRequest { - /** Version name */ + /** DeleteVersionRequest name */ name?: (string|null); - /** Version description */ - description?: (string|null); - - /** Version createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Version updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Version relatedTags */ - relatedTags?: (google.devtools.artifactregistry.v1.ITag[]|null); - - /** Version metadata */ - metadata?: (google.protobuf.IStruct|null); + /** DeleteVersionRequest force */ + force?: (boolean|null); } - /** Represents a Version. */ - class Version implements IVersion { + /** Represents a DeleteVersionRequest. */ + class DeleteVersionRequest implements IDeleteVersionRequest { /** - * Constructs a new Version. + * Constructs a new DeleteVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IVersion); + constructor(properties?: google.devtools.artifactregistry.v1.IDeleteVersionRequest); - /** Version name. */ + /** DeleteVersionRequest name. */ public name: string; - /** Version description. */ - public description: string; - - /** Version createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Version updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Version relatedTags. */ - public relatedTags: google.devtools.artifactregistry.v1.ITag[]; - - /** Version metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** DeleteVersionRequest force. */ + public force: boolean; /** - * Creates a new Version instance using the specified properties. + * Creates a new DeleteVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Version instance + * @returns DeleteVersionRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IVersion): google.devtools.artifactregistry.v1.Version; + public static create(properties?: google.devtools.artifactregistry.v1.IDeleteVersionRequest): google.devtools.artifactregistry.v1.DeleteVersionRequest; /** - * Encodes the specified Version message. Does not implicitly {@link google.devtools.artifactregistry.v1.Version.verify|verify} messages. - * @param message Version message or plain object to encode + * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteVersionRequest.verify|verify} messages. + * @param message DeleteVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Version.verify|verify} messages. - * @param message Version message or plain object to encode + * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteVersionRequest.verify|verify} messages. + * @param message DeleteVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Version message from the specified reader or buffer. + * Decodes a DeleteVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Version + * @returns DeleteVersionRequest * @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.devtools.artifactregistry.v1.Version; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.DeleteVersionRequest; /** - * Decodes a Version message from the specified reader or buffer, length delimited. + * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Version + * @returns DeleteVersionRequest * @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.devtools.artifactregistry.v1.Version; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.DeleteVersionRequest; /** - * Verifies a Version message. + * Verifies a DeleteVersionRequest 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 Version message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Version + * @returns DeleteVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.Version; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.DeleteVersionRequest; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. - * @param message Version + * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. + * @param message DeleteVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Version to JSON. + * Converts this DeleteVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Version + * Gets the default type url for DeleteVersionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListVersionsRequest. */ - interface IListVersionsRequest { - - /** ListVersionsRequest parent */ - parent?: (string|null); - - /** ListVersionsRequest pageSize */ - pageSize?: (number|null); - - /** ListVersionsRequest pageToken */ - pageToken?: (string|null); - - /** ListVersionsRequest view */ - view?: (google.devtools.artifactregistry.v1.VersionView|keyof typeof google.devtools.artifactregistry.v1.VersionView|null); + /** Properties of a BatchDeleteVersionsMetadata. */ + interface IBatchDeleteVersionsMetadata { - /** ListVersionsRequest orderBy */ - orderBy?: (string|null); + /** BatchDeleteVersionsMetadata failedVersions */ + failedVersions?: (string[]|null); } - /** Represents a ListVersionsRequest. */ - class ListVersionsRequest implements IListVersionsRequest { + /** Represents a BatchDeleteVersionsMetadata. */ + class BatchDeleteVersionsMetadata implements IBatchDeleteVersionsMetadata { /** - * Constructs a new ListVersionsRequest. + * Constructs a new BatchDeleteVersionsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListVersionsRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata); - /** ListVersionsRequest parent. */ - public parent: string; - - /** ListVersionsRequest pageSize. */ - public pageSize: number; - - /** ListVersionsRequest pageToken. */ - public pageToken: string; - - /** ListVersionsRequest view. */ - public view: (google.devtools.artifactregistry.v1.VersionView|keyof typeof google.devtools.artifactregistry.v1.VersionView); - - /** ListVersionsRequest orderBy. */ - public orderBy: string; + /** BatchDeleteVersionsMetadata failedVersions. */ + public failedVersions: string[]; /** - * Creates a new ListVersionsRequest instance using the specified properties. + * Creates a new BatchDeleteVersionsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsRequest instance + * @returns BatchDeleteVersionsMetadata instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListVersionsRequest): google.devtools.artifactregistry.v1.ListVersionsRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata): google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata; /** - * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsRequest.verify|verify} messages. - * @param message ListVersionsRequest message or plain object to encode + * Encodes the specified BatchDeleteVersionsMetadata message. Does not implicitly {@link google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata.verify|verify} messages. + * @param message BatchDeleteVersionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsRequest.verify|verify} messages. - * @param message ListVersionsRequest message or plain object to encode + * Encodes the specified BatchDeleteVersionsMetadata message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata.verify|verify} messages. + * @param message BatchDeleteVersionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer. + * Decodes a BatchDeleteVersionsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVersionsRequest + * @returns BatchDeleteVersionsMetadata * @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.devtools.artifactregistry.v1.ListVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteVersionsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsRequest + * @returns BatchDeleteVersionsMetadata * @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.devtools.artifactregistry.v1.ListVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata; /** - * Verifies a ListVersionsRequest message. + * Verifies a BatchDeleteVersionsMetadata 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 ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteVersionsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsRequest + * @returns BatchDeleteVersionsMetadata */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListVersionsRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata; /** - * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. - * @param message ListVersionsRequest + * Creates a plain object from a BatchDeleteVersionsMetadata message. Also converts values to other types if specified. + * @param message BatchDeleteVersionsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this BatchDeleteVersionsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListVersionsRequest + * Gets the default type url for BatchDeleteVersionsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListVersionsResponse. */ - interface IListVersionsResponse { + /** Properties of a VPCSCConfig. */ + interface IVPCSCConfig { - /** ListVersionsResponse versions */ - versions?: (google.devtools.artifactregistry.v1.IVersion[]|null); + /** VPCSCConfig name */ + name?: (string|null); - /** ListVersionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** VPCSCConfig vpcscPolicy */ + vpcscPolicy?: (google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy|keyof typeof google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy|null); } - /** Represents a ListVersionsResponse. */ - class ListVersionsResponse implements IListVersionsResponse { + /** Represents a VPCSCConfig. */ + class VPCSCConfig implements IVPCSCConfig { /** - * Constructs a new ListVersionsResponse. + * Constructs a new VPCSCConfig. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IListVersionsResponse); + constructor(properties?: google.devtools.artifactregistry.v1.IVPCSCConfig); - /** ListVersionsResponse versions. */ - public versions: google.devtools.artifactregistry.v1.IVersion[]; + /** VPCSCConfig name. */ + public name: string; - /** ListVersionsResponse nextPageToken. */ - public nextPageToken: string; + /** VPCSCConfig vpcscPolicy. */ + public vpcscPolicy: (google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy|keyof typeof google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy); /** - * Creates a new ListVersionsResponse instance using the specified properties. + * Creates a new VPCSCConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsResponse instance + * @returns VPCSCConfig instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IListVersionsResponse): google.devtools.artifactregistry.v1.ListVersionsResponse; + public static create(properties?: google.devtools.artifactregistry.v1.IVPCSCConfig): google.devtools.artifactregistry.v1.VPCSCConfig; /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsResponse.verify|verify} messages. - * @param message ListVersionsResponse message or plain object to encode + * Encodes the specified VPCSCConfig message. Does not implicitly {@link google.devtools.artifactregistry.v1.VPCSCConfig.verify|verify} messages. + * @param message VPCSCConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IVPCSCConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsResponse.verify|verify} messages. - * @param message ListVersionsResponse message or plain object to encode + * Encodes the specified VPCSCConfig message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.VPCSCConfig.verify|verify} messages. + * @param message VPCSCConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IVPCSCConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer. + * Decodes a VPCSCConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVersionsResponse + * @returns VPCSCConfig * @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.devtools.artifactregistry.v1.ListVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.VPCSCConfig; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a VPCSCConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsResponse + * @returns VPCSCConfig * @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.devtools.artifactregistry.v1.ListVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.VPCSCConfig; /** - * Verifies a ListVersionsResponse message. + * Verifies a VPCSCConfig 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 ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VPCSCConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsResponse + * @returns VPCSCConfig */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.ListVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.VPCSCConfig; /** - * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. - * @param message ListVersionsResponse + * Creates a plain object from a VPCSCConfig message. Also converts values to other types if specified. + * @param message VPCSCConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.VPCSCConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsResponse to JSON. + * Converts this VPCSCConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListVersionsResponse + * Gets the default type url for VPCSCConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetVersionRequest. */ - interface IGetVersionRequest { + namespace VPCSCConfig { - /** GetVersionRequest name */ - name?: (string|null); + /** VPCSCPolicy enum. */ + enum VPCSCPolicy { + VPCSC_POLICY_UNSPECIFIED = 0, + DENY = 1, + ALLOW = 2 + } + } - /** GetVersionRequest view */ - view?: (google.devtools.artifactregistry.v1.VersionView|keyof typeof google.devtools.artifactregistry.v1.VersionView|null); + /** Properties of a GetVPCSCConfigRequest. */ + interface IGetVPCSCConfigRequest { + + /** GetVPCSCConfigRequest name */ + name?: (string|null); } - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { + /** Represents a GetVPCSCConfigRequest. */ + class GetVPCSCConfigRequest implements IGetVPCSCConfigRequest { /** - * Constructs a new GetVersionRequest. + * Constructs a new GetVPCSCConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IGetVersionRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest); - /** GetVersionRequest name. */ + /** GetVPCSCConfigRequest name. */ public name: string; - /** GetVersionRequest view. */ - public view: (google.devtools.artifactregistry.v1.VersionView|keyof typeof google.devtools.artifactregistry.v1.VersionView); - /** - * Creates a new GetVersionRequest instance using the specified properties. + * Creates a new GetVPCSCConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetVersionRequest instance + * @returns GetVPCSCConfigRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IGetVersionRequest): google.devtools.artifactregistry.v1.GetVersionRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest): google.devtools.artifactregistry.v1.GetVPCSCConfigRequest; /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode + * Encodes the specified GetVPCSCConfigRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVPCSCConfigRequest.verify|verify} messages. + * @param message GetVPCSCConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode + * Encodes the specified GetVPCSCConfigRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVPCSCConfigRequest.verify|verify} messages. + * @param message GetVPCSCConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVersionRequest message from the specified reader or buffer. + * Decodes a GetVPCSCConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetVersionRequest + * @returns GetVPCSCConfigRequest * @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.devtools.artifactregistry.v1.GetVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.GetVPCSCConfigRequest; /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVPCSCConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVersionRequest + * @returns GetVPCSCConfigRequest * @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.devtools.artifactregistry.v1.GetVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.GetVPCSCConfigRequest; /** - * Verifies a GetVersionRequest message. + * Verifies a GetVPCSCConfigRequest 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 GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVPCSCConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVersionRequest + * @returns GetVPCSCConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetVersionRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.GetVPCSCConfigRequest; /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @param message GetVersionRequest + * Creates a plain object from a GetVPCSCConfigRequest message. Also converts values to other types if specified. + * @param message GetVPCSCConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.GetVPCSCConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVersionRequest to JSON. + * Converts this GetVPCSCConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetVersionRequest + * Gets the default type url for GetVPCSCConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteVersionRequest. */ - interface IDeleteVersionRequest { + /** Properties of an UpdateVPCSCConfigRequest. */ + interface IUpdateVPCSCConfigRequest { - /** DeleteVersionRequest name */ - name?: (string|null); + /** UpdateVPCSCConfigRequest vpcscConfig */ + vpcscConfig?: (google.devtools.artifactregistry.v1.IVPCSCConfig|null); - /** DeleteVersionRequest force */ - force?: (boolean|null); + /** UpdateVPCSCConfigRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeleteVersionRequest. */ - class DeleteVersionRequest implements IDeleteVersionRequest { + /** Represents an UpdateVPCSCConfigRequest. */ + class UpdateVPCSCConfigRequest implements IUpdateVPCSCConfigRequest { /** - * Constructs a new DeleteVersionRequest. + * Constructs a new UpdateVPCSCConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.devtools.artifactregistry.v1.IDeleteVersionRequest); + constructor(properties?: google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest); - /** DeleteVersionRequest name. */ - public name: string; + /** UpdateVPCSCConfigRequest vpcscConfig. */ + public vpcscConfig?: (google.devtools.artifactregistry.v1.IVPCSCConfig|null); - /** DeleteVersionRequest force. */ - public force: boolean; + /** UpdateVPCSCConfigRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeleteVersionRequest instance using the specified properties. + * Creates a new UpdateVPCSCConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteVersionRequest instance + * @returns UpdateVPCSCConfigRequest instance */ - public static create(properties?: google.devtools.artifactregistry.v1.IDeleteVersionRequest): google.devtools.artifactregistry.v1.DeleteVersionRequest; + public static create(properties?: google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest): google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest; /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteVersionRequest.verify|verify} messages. - * @param message DeleteVersionRequest message or plain object to encode + * Encodes the specified UpdateVPCSCConfigRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest.verify|verify} messages. + * @param message UpdateVPCSCConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.devtools.artifactregistry.v1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteVersionRequest.verify|verify} messages. - * @param message DeleteVersionRequest message or plain object to encode + * Encodes the specified UpdateVPCSCConfigRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest.verify|verify} messages. + * @param message UpdateVPCSCConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.devtools.artifactregistry.v1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer. + * Decodes an UpdateVPCSCConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteVersionRequest + * @returns UpdateVPCSCConfigRequest * @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.devtools.artifactregistry.v1.DeleteVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVPCSCConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteVersionRequest + * @returns UpdateVPCSCConfigRequest * @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.devtools.artifactregistry.v1.DeleteVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest; /** - * Verifies a DeleteVersionRequest message. + * Verifies an UpdateVPCSCConfigRequest 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 DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVPCSCConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteVersionRequest + * @returns UpdateVPCSCConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.DeleteVersionRequest; + public static fromObject(object: { [k: string]: any }): google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest; /** - * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. - * @param message DeleteVersionRequest + * Creates a plain object from an UpdateVPCSCConfigRequest message. Also converts values to other types if specified. + * @param message UpdateVPCSCConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.devtools.artifactregistry.v1.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteVersionRequest to JSON. + * Converts this UpdateVPCSCConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteVersionRequest + * Gets the default type url for UpdateVPCSCConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ diff --git a/packages/google-devtools-artifactregistry/protos/protos.js b/packages/google-devtools-artifactregistry/protos/protos.js index ecc361623794..bce18e9ea65b 100644 --- a/packages/google-devtools-artifactregistry/protos/protos.js +++ b/packages/google-devtools-artifactregistry/protos/protos.js @@ -1641,6 +1641,7 @@ * @property {google.protobuf.ITimestamp|null} [uploadTime] DockerImage uploadTime * @property {string|null} [mediaType] DockerImage mediaType * @property {google.protobuf.ITimestamp|null} [buildTime] DockerImage buildTime + * @property {google.protobuf.ITimestamp|null} [updateTime] DockerImage updateTime */ /** @@ -1715,6 +1716,14 @@ */ DockerImage.prototype.buildTime = null; + /** + * DockerImage updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.devtools.artifactregistry.v1.DockerImage + * @instance + */ + DockerImage.prototype.updateTime = null; + /** * Creates a new DockerImage instance using the specified properties. * @function create @@ -1754,6 +1763,8 @@ writer.uint32(/* id 6, wireType 2 =*/50).string(message.mediaType); if (message.buildTime != null && Object.hasOwnProperty.call(message, "buildTime")) $root.google.protobuf.Timestamp.encode(message.buildTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; @@ -1818,6 +1829,10 @@ message.buildTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 8: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -1882,6 +1897,11 @@ if (error) return "buildTime." + error; } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; @@ -1929,6 +1949,11 @@ throw TypeError(".google.devtools.artifactregistry.v1.DockerImage.buildTime: object expected"); message.buildTime = $root.google.protobuf.Timestamp.fromObject(object.buildTime); } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.DockerImage.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } return message; }; @@ -1958,6 +1983,7 @@ object.uploadTime = null; object.mediaType = ""; object.buildTime = null; + object.updateTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -1979,6 +2005,8 @@ object.mediaType = message.mediaType; if (message.buildTime != null && message.hasOwnProperty("buildTime")) object.buildTime = $root.google.protobuf.Timestamp.toObject(message.buildTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; @@ -2020,6 +2048,7 @@ * @property {string|null} [parent] ListDockerImagesRequest parent * @property {number|null} [pageSize] ListDockerImagesRequest pageSize * @property {string|null} [pageToken] ListDockerImagesRequest pageToken + * @property {string|null} [orderBy] ListDockerImagesRequest orderBy */ /** @@ -2061,6 +2090,14 @@ */ ListDockerImagesRequest.prototype.pageToken = ""; + /** + * ListDockerImagesRequest orderBy. + * @member {string} orderBy + * @memberof google.devtools.artifactregistry.v1.ListDockerImagesRequest + * @instance + */ + ListDockerImagesRequest.prototype.orderBy = ""; + /** * Creates a new ListDockerImagesRequest instance using the specified properties. * @function create @@ -2091,6 +2128,8 @@ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy); return writer; }; @@ -2137,6 +2176,10 @@ message.pageToken = reader.string(); break; } + case 4: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -2181,6 +2224,9 @@ if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; @@ -2202,6 +2248,8 @@ message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; @@ -2222,6 +2270,7 @@ object.parent = ""; object.pageSize = 0; object.pageToken = ""; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -2229,6 +2278,8 @@ object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; @@ -2712,25 +2763,30 @@ return GetDockerImageRequest; })(); - v1.Hash = (function() { + v1.MavenArtifact = (function() { /** - * Properties of a Hash. + * Properties of a MavenArtifact. * @memberof google.devtools.artifactregistry.v1 - * @interface IHash - * @property {google.devtools.artifactregistry.v1.Hash.HashType|null} [type] Hash type - * @property {Uint8Array|null} [value] Hash value + * @interface IMavenArtifact + * @property {string|null} [name] MavenArtifact name + * @property {string|null} [pomUri] MavenArtifact pomUri + * @property {string|null} [groupId] MavenArtifact groupId + * @property {string|null} [artifactId] MavenArtifact artifactId + * @property {string|null} [version] MavenArtifact version + * @property {google.protobuf.ITimestamp|null} [createTime] MavenArtifact createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] MavenArtifact updateTime */ /** - * Constructs a new Hash. + * Constructs a new MavenArtifact. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a Hash. - * @implements IHash + * @classdesc Represents a MavenArtifact. + * @implements IMavenArtifact * @constructor - * @param {google.devtools.artifactregistry.v1.IHash=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IMavenArtifact=} [properties] Properties to set */ - function Hash(properties) { + function MavenArtifact(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2738,89 +2794,159 @@ } /** - * Hash type. - * @member {google.devtools.artifactregistry.v1.Hash.HashType} type - * @memberof google.devtools.artifactregistry.v1.Hash + * MavenArtifact name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @instance */ - Hash.prototype.type = 0; + MavenArtifact.prototype.name = ""; /** - * Hash value. - * @member {Uint8Array} value - * @memberof google.devtools.artifactregistry.v1.Hash + * MavenArtifact pomUri. + * @member {string} pomUri + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @instance */ - Hash.prototype.value = $util.newBuffer([]); + MavenArtifact.prototype.pomUri = ""; /** - * Creates a new Hash instance using the specified properties. + * MavenArtifact groupId. + * @member {string} groupId + * @memberof google.devtools.artifactregistry.v1.MavenArtifact + * @instance + */ + MavenArtifact.prototype.groupId = ""; + + /** + * MavenArtifact artifactId. + * @member {string} artifactId + * @memberof google.devtools.artifactregistry.v1.MavenArtifact + * @instance + */ + MavenArtifact.prototype.artifactId = ""; + + /** + * MavenArtifact version. + * @member {string} version + * @memberof google.devtools.artifactregistry.v1.MavenArtifact + * @instance + */ + MavenArtifact.prototype.version = ""; + + /** + * MavenArtifact createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.devtools.artifactregistry.v1.MavenArtifact + * @instance + */ + MavenArtifact.prototype.createTime = null; + + /** + * MavenArtifact updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.devtools.artifactregistry.v1.MavenArtifact + * @instance + */ + MavenArtifact.prototype.updateTime = null; + + /** + * Creates a new MavenArtifact instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @static - * @param {google.devtools.artifactregistry.v1.IHash=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.Hash} Hash instance + * @param {google.devtools.artifactregistry.v1.IMavenArtifact=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.MavenArtifact} MavenArtifact instance */ - Hash.create = function create(properties) { - return new Hash(properties); + MavenArtifact.create = function create(properties) { + return new MavenArtifact(properties); }; /** - * Encodes the specified Hash message. Does not implicitly {@link google.devtools.artifactregistry.v1.Hash.verify|verify} messages. + * Encodes the specified MavenArtifact message. Does not implicitly {@link google.devtools.artifactregistry.v1.MavenArtifact.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @static - * @param {google.devtools.artifactregistry.v1.IHash} message Hash message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IMavenArtifact} message MavenArtifact message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Hash.encode = function encode(message, writer) { + MavenArtifact.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pomUri != null && Object.hasOwnProperty.call(message, "pomUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pomUri); + if (message.groupId != null && Object.hasOwnProperty.call(message, "groupId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.groupId); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.artifactId); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified Hash message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Hash.verify|verify} messages. + * Encodes the specified MavenArtifact message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.MavenArtifact.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @static - * @param {google.devtools.artifactregistry.v1.IHash} message Hash message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IMavenArtifact} message MavenArtifact message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Hash.encodeDelimited = function encodeDelimited(message, writer) { + MavenArtifact.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Hash message from the specified reader or buffer. + * Decodes a MavenArtifact message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.Hash} Hash + * @returns {google.devtools.artifactregistry.v1.MavenArtifact} MavenArtifact * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Hash.decode = function decode(reader, length) { + MavenArtifact.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Hash(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.MavenArtifact(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); + message.name = reader.string(); break; } case 2: { - message.value = reader.bytes(); + message.pomUri = reader.string(); + break; + } + case 3: { + message.groupId = reader.string(); + break; + } + case 4: { + message.artifactId = reader.string(); + break; + } + case 5: { + message.version = reader.string(); + break; + } + case 6: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -2832,186 +2958,183 @@ }; /** - * Decodes a Hash message from the specified reader or buffer, length delimited. + * Decodes a MavenArtifact message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.Hash} Hash + * @returns {google.devtools.artifactregistry.v1.MavenArtifact} MavenArtifact * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Hash.decodeDelimited = function decodeDelimited(reader) { + MavenArtifact.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Hash message. + * Verifies a MavenArtifact message. * @function verify - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Hash.verify = function verify(message) { + MavenArtifact.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.pomUri != null && message.hasOwnProperty("pomUri")) + if (!$util.isString(message.pomUri)) + return "pomUri: string expected"; + if (message.groupId != null && message.hasOwnProperty("groupId")) + if (!$util.isString(message.groupId)) + return "groupId: string expected"; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; /** - * Creates a Hash message from a plain object. Also converts values to their respective internal types. + * Creates a MavenArtifact message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.Hash} Hash + * @returns {google.devtools.artifactregistry.v1.MavenArtifact} MavenArtifact */ - Hash.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.Hash) + MavenArtifact.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.MavenArtifact) return object; - var message = new $root.google.devtools.artifactregistry.v1.Hash(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "HASH_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "SHA256": - case 1: - message.type = 1; - break; - case "MD5": - case 2: - message.type = 2; - break; + var message = new $root.google.devtools.artifactregistry.v1.MavenArtifact(); + if (object.name != null) + message.name = String(object.name); + if (object.pomUri != null) + message.pomUri = String(object.pomUri); + if (object.groupId != null) + message.groupId = String(object.groupId); + if (object.artifactId != null) + message.artifactId = String(object.artifactId); + if (object.version != null) + message.version = String(object.version); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.MavenArtifact.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.MavenArtifact.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length >= 0) - message.value = object.value; return message; }; /** - * Creates a plain object from a Hash message. Also converts values to other types if specified. + * Creates a plain object from a MavenArtifact message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @static - * @param {google.devtools.artifactregistry.v1.Hash} message Hash + * @param {google.devtools.artifactregistry.v1.MavenArtifact} message MavenArtifact * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Hash.toObject = function toObject(message, options) { + MavenArtifact.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "HASH_TYPE_UNSPECIFIED" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } + object.name = ""; + object.pomUri = ""; + object.groupId = ""; + object.artifactId = ""; + object.version = ""; + object.createTime = null; + object.updateTime = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.devtools.artifactregistry.v1.Hash.HashType[message.type] === undefined ? message.type : $root.google.devtools.artifactregistry.v1.Hash.HashType[message.type] : message.type; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pomUri != null && message.hasOwnProperty("pomUri")) + object.pomUri = message.pomUri; + if (message.groupId != null && message.hasOwnProperty("groupId")) + object.groupId = message.groupId; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + object.artifactId = message.artifactId; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this Hash to JSON. + * Converts this MavenArtifact to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @instance * @returns {Object.} JSON object */ - Hash.prototype.toJSON = function toJSON() { + MavenArtifact.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Hash + * Gets the default type url for MavenArtifact * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.Hash + * @memberof google.devtools.artifactregistry.v1.MavenArtifact * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Hash.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MavenArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Hash"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.MavenArtifact"; }; + return MavenArtifact; + })(); + + v1.ListMavenArtifactsRequest = (function() { + /** - * HashType enum. - * @name google.devtools.artifactregistry.v1.Hash.HashType - * @enum {number} - * @property {number} HASH_TYPE_UNSPECIFIED=0 HASH_TYPE_UNSPECIFIED value - * @property {number} SHA256=1 SHA256 value - * @property {number} MD5=2 MD5 value - */ - Hash.HashType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "HASH_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "SHA256"] = 1; - values[valuesById[2] = "MD5"] = 2; - return values; - })(); - - return Hash; - })(); - - v1.File = (function() { - - /** - * Properties of a File. - * @memberof google.devtools.artifactregistry.v1 - * @interface IFile - * @property {string|null} [name] File name - * @property {number|Long|null} [sizeBytes] File sizeBytes - * @property {Array.|null} [hashes] File hashes - * @property {google.protobuf.ITimestamp|null} [createTime] File createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] File updateTime - * @property {string|null} [owner] File owner + * Properties of a ListMavenArtifactsRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IListMavenArtifactsRequest + * @property {string|null} [parent] ListMavenArtifactsRequest parent + * @property {number|null} [pageSize] ListMavenArtifactsRequest pageSize + * @property {string|null} [pageToken] ListMavenArtifactsRequest pageToken */ /** - * Constructs a new File. + * Constructs a new ListMavenArtifactsRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a File. - * @implements IFile + * @classdesc Represents a ListMavenArtifactsRequest. + * @implements IListMavenArtifactsRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IFile=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsRequest=} [properties] Properties to set */ - function File(properties) { - this.hashes = []; + function ListMavenArtifactsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3019,148 +3142,103 @@ } /** - * File name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.File - * @instance - */ - File.prototype.name = ""; - - /** - * File sizeBytes. - * @member {number|Long} sizeBytes - * @memberof google.devtools.artifactregistry.v1.File - * @instance - */ - File.prototype.sizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * File hashes. - * @member {Array.} hashes - * @memberof google.devtools.artifactregistry.v1.File - * @instance - */ - File.prototype.hashes = $util.emptyArray; - - /** - * File createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.devtools.artifactregistry.v1.File + * ListMavenArtifactsRequest parent. + * @member {string} parent + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @instance */ - File.prototype.createTime = null; + ListMavenArtifactsRequest.prototype.parent = ""; /** - * File updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.devtools.artifactregistry.v1.File + * ListMavenArtifactsRequest pageSize. + * @member {number} pageSize + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @instance */ - File.prototype.updateTime = null; + ListMavenArtifactsRequest.prototype.pageSize = 0; /** - * File owner. - * @member {string} owner - * @memberof google.devtools.artifactregistry.v1.File + * ListMavenArtifactsRequest pageToken. + * @member {string} pageToken + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @instance */ - File.prototype.owner = ""; + ListMavenArtifactsRequest.prototype.pageToken = ""; /** - * Creates a new File instance using the specified properties. + * Creates a new ListMavenArtifactsRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @static - * @param {google.devtools.artifactregistry.v1.IFile=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.File} File instance + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListMavenArtifactsRequest} ListMavenArtifactsRequest instance */ - File.create = function create(properties) { - return new File(properties); + ListMavenArtifactsRequest.create = function create(properties) { + return new ListMavenArtifactsRequest(properties); }; /** - * Encodes the specified File message. Does not implicitly {@link google.devtools.artifactregistry.v1.File.verify|verify} messages. + * Encodes the specified ListMavenArtifactsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListMavenArtifactsRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @static - * @param {google.devtools.artifactregistry.v1.IFile} message File message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsRequest} message ListMavenArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - File.encode = function encode(message, writer) { + ListMavenArtifactsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.sizeBytes != null && Object.hasOwnProperty.call(message, "sizeBytes")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sizeBytes); - if (message.hashes != null && message.hashes.length) - for (var i = 0; i < message.hashes.length; ++i) - $root.google.devtools.artifactregistry.v1.Hash.encode(message.hashes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.owner); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified File message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.File.verify|verify} messages. + * Encodes the specified ListMavenArtifactsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListMavenArtifactsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @static - * @param {google.devtools.artifactregistry.v1.IFile} message File message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsRequest} message ListMavenArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - File.encodeDelimited = function encodeDelimited(message, writer) { + ListMavenArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a File message from the specified reader or buffer. + * Decodes a ListMavenArtifactsRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.File} File + * @returns {google.devtools.artifactregistry.v1.ListMavenArtifactsRequest} ListMavenArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - File.decode = function decode(reader, length) { + ListMavenArtifactsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.File(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.sizeBytes = reader.int64(); - break; - } - case 4: { - if (!(message.hashes && message.hashes.length)) - message.hashes = []; - message.hashes.push($root.google.devtools.artifactregistry.v1.Hash.decode(reader, reader.uint32())); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } - case 6: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 2: { + message.pageSize = reader.int32(); break; } - case 7: { - message.owner = reader.string(); + case 3: { + message.pageToken = reader.string(); break; } default: @@ -3172,209 +3250,141 @@ }; /** - * Decodes a File message from the specified reader or buffer, length delimited. + * Decodes a ListMavenArtifactsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.File} File + * @returns {google.devtools.artifactregistry.v1.ListMavenArtifactsRequest} ListMavenArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - File.decodeDelimited = function decodeDelimited(reader) { + ListMavenArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a File message. + * Verifies a ListMavenArtifactsRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - File.verify = function verify(message) { + ListMavenArtifactsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes")) - if (!$util.isInteger(message.sizeBytes) && !(message.sizeBytes && $util.isInteger(message.sizeBytes.low) && $util.isInteger(message.sizeBytes.high))) - return "sizeBytes: integer|Long expected"; - if (message.hashes != null && message.hasOwnProperty("hashes")) { - if (!Array.isArray(message.hashes)) - return "hashes: array expected"; - for (var i = 0; i < message.hashes.length; ++i) { - var error = $root.google.devtools.artifactregistry.v1.Hash.verify(message.hashes[i]); - if (error) - return "hashes." + error; - } - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a File message from a plain object. Also converts values to their respective internal types. + * Creates a ListMavenArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.File} File + * @returns {google.devtools.artifactregistry.v1.ListMavenArtifactsRequest} ListMavenArtifactsRequest */ - File.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.File) + ListMavenArtifactsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.File(); - if (object.name != null) - message.name = String(object.name); - if (object.sizeBytes != null) - if ($util.Long) - (message.sizeBytes = $util.Long.fromValue(object.sizeBytes)).unsigned = false; - else if (typeof object.sizeBytes === "string") - message.sizeBytes = parseInt(object.sizeBytes, 10); - else if (typeof object.sizeBytes === "number") - message.sizeBytes = object.sizeBytes; - else if (typeof object.sizeBytes === "object") - message.sizeBytes = new $util.LongBits(object.sizeBytes.low >>> 0, object.sizeBytes.high >>> 0).toNumber(); - if (object.hashes) { - if (!Array.isArray(object.hashes)) - throw TypeError(".google.devtools.artifactregistry.v1.File.hashes: array expected"); - message.hashes = []; - for (var i = 0; i < object.hashes.length; ++i) { - if (typeof object.hashes[i] !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.File.hashes: object expected"); - message.hashes[i] = $root.google.devtools.artifactregistry.v1.Hash.fromObject(object.hashes[i]); - } - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.File.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.File.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.owner != null) - message.owner = String(object.owner); + var message = new $root.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a File message. Also converts values to other types if specified. + * Creates a plain object from a ListMavenArtifactsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @static - * @param {google.devtools.artifactregistry.v1.File} message File + * @param {google.devtools.artifactregistry.v1.ListMavenArtifactsRequest} message ListMavenArtifactsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - File.toObject = function toObject(message, options) { + ListMavenArtifactsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.hashes = []; if (options.defaults) { - object.name = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.sizeBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sizeBytes = options.longs === String ? "0" : 0; - object.createTime = null; - object.updateTime = null; - object.owner = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes")) - if (typeof message.sizeBytes === "number") - object.sizeBytes = options.longs === String ? String(message.sizeBytes) : message.sizeBytes; - else - object.sizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.sizeBytes) : options.longs === Number ? new $util.LongBits(message.sizeBytes.low >>> 0, message.sizeBytes.high >>> 0).toNumber() : message.sizeBytes; - if (message.hashes && message.hashes.length) { - object.hashes = []; - for (var j = 0; j < message.hashes.length; ++j) - object.hashes[j] = $root.google.devtools.artifactregistry.v1.Hash.toObject(message.hashes[j], options); + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - return object; - }; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; /** - * Converts this File to JSON. + * Converts this ListMavenArtifactsRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @instance * @returns {Object.} JSON object */ - File.prototype.toJSON = function toJSON() { + ListMavenArtifactsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for File + * Gets the default type url for ListMavenArtifactsRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.File + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - File.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMavenArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.File"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListMavenArtifactsRequest"; }; - return File; + return ListMavenArtifactsRequest; })(); - v1.ListFilesRequest = (function() { + v1.ListMavenArtifactsResponse = (function() { /** - * Properties of a ListFilesRequest. + * Properties of a ListMavenArtifactsResponse. * @memberof google.devtools.artifactregistry.v1 - * @interface IListFilesRequest - * @property {string|null} [parent] ListFilesRequest parent - * @property {string|null} [filter] ListFilesRequest filter - * @property {number|null} [pageSize] ListFilesRequest pageSize - * @property {string|null} [pageToken] ListFilesRequest pageToken - * @property {string|null} [orderBy] ListFilesRequest orderBy + * @interface IListMavenArtifactsResponse + * @property {Array.|null} [mavenArtifacts] ListMavenArtifactsResponse mavenArtifacts + * @property {string|null} [nextPageToken] ListMavenArtifactsResponse nextPageToken */ /** - * Constructs a new ListFilesRequest. + * Constructs a new ListMavenArtifactsResponse. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListFilesRequest. - * @implements IListFilesRequest + * @classdesc Represents a ListMavenArtifactsResponse. + * @implements IListMavenArtifactsResponse * @constructor - * @param {google.devtools.artifactregistry.v1.IListFilesRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsResponse=} [properties] Properties to set */ - function ListFilesRequest(properties) { + function ListMavenArtifactsResponse(properties) { + this.mavenArtifacts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3382,131 +3392,92 @@ } /** - * ListFilesRequest parent. - * @member {string} parent - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest - * @instance - */ - ListFilesRequest.prototype.parent = ""; - - /** - * ListFilesRequest filter. - * @member {string} filter - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest - * @instance - */ - ListFilesRequest.prototype.filter = ""; - - /** - * ListFilesRequest pageSize. - * @member {number} pageSize - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest - * @instance - */ - ListFilesRequest.prototype.pageSize = 0; - - /** - * ListFilesRequest pageToken. - * @member {string} pageToken - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * ListMavenArtifactsResponse mavenArtifacts. + * @member {Array.} mavenArtifacts + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @instance */ - ListFilesRequest.prototype.pageToken = ""; + ListMavenArtifactsResponse.prototype.mavenArtifacts = $util.emptyArray; /** - * ListFilesRequest orderBy. - * @member {string} orderBy - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * ListMavenArtifactsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @instance */ - ListFilesRequest.prototype.orderBy = ""; + ListMavenArtifactsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListFilesRequest instance using the specified properties. + * Creates a new ListMavenArtifactsResponse instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @static - * @param {google.devtools.artifactregistry.v1.IListFilesRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListFilesRequest} ListFilesRequest instance + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsResponse=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListMavenArtifactsResponse} ListMavenArtifactsResponse instance */ - ListFilesRequest.create = function create(properties) { - return new ListFilesRequest(properties); + ListMavenArtifactsResponse.create = function create(properties) { + return new ListMavenArtifactsResponse(properties); }; /** - * Encodes the specified ListFilesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesRequest.verify|verify} messages. + * Encodes the specified ListMavenArtifactsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListMavenArtifactsResponse.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @static - * @param {google.devtools.artifactregistry.v1.IListFilesRequest} message ListFilesRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsResponse} message ListMavenArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFilesRequest.encode = function encode(message, writer) { + ListMavenArtifactsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.mavenArtifacts != null && message.mavenArtifacts.length) + for (var i = 0; i < message.mavenArtifacts.length; ++i) + $root.google.devtools.artifactregistry.v1.MavenArtifact.encode(message.mavenArtifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListFilesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesRequest.verify|verify} messages. + * Encodes the specified ListMavenArtifactsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListMavenArtifactsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @static - * @param {google.devtools.artifactregistry.v1.IListFilesRequest} message ListFilesRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsResponse} message ListMavenArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFilesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMavenArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFilesRequest message from the specified reader or buffer. + * Decodes a ListMavenArtifactsResponse message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListFilesRequest} ListFilesRequest + * @returns {google.devtools.artifactregistry.v1.ListMavenArtifactsResponse} ListMavenArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFilesRequest.decode = function decode(reader, length) { + ListMavenArtifactsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListFilesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + if (!(message.mavenArtifacts && message.mavenArtifacts.length)) + message.mavenArtifacts = []; + message.mavenArtifacts.push($root.google.devtools.artifactregistry.v1.MavenArtifact.decode(reader, reader.uint32())); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -3518,157 +3489,148 @@ }; /** - * Decodes a ListFilesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMavenArtifactsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListFilesRequest} ListFilesRequest + * @returns {google.devtools.artifactregistry.v1.ListMavenArtifactsResponse} ListMavenArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFilesRequest.decodeDelimited = function decodeDelimited(reader) { + ListMavenArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFilesRequest message. + * Verifies a ListMavenArtifactsResponse message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFilesRequest.verify = function verify(message) { + ListMavenArtifactsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.mavenArtifacts != null && message.hasOwnProperty("mavenArtifacts")) { + if (!Array.isArray(message.mavenArtifacts)) + return "mavenArtifacts: array expected"; + for (var i = 0; i < message.mavenArtifacts.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.MavenArtifact.verify(message.mavenArtifacts[i]); + if (error) + return "mavenArtifacts." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListFilesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMavenArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListFilesRequest} ListFilesRequest + * @returns {google.devtools.artifactregistry.v1.ListMavenArtifactsResponse} ListMavenArtifactsResponse */ - ListFilesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListFilesRequest) + ListMavenArtifactsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse) return object; - var message = new $root.google.devtools.artifactregistry.v1.ListFilesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse(); + if (object.mavenArtifacts) { + if (!Array.isArray(object.mavenArtifacts)) + throw TypeError(".google.devtools.artifactregistry.v1.ListMavenArtifactsResponse.mavenArtifacts: array expected"); + message.mavenArtifacts = []; + for (var i = 0; i < object.mavenArtifacts.length; ++i) { + if (typeof object.mavenArtifacts[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.ListMavenArtifactsResponse.mavenArtifacts: object expected"); + message.mavenArtifacts[i] = $root.google.devtools.artifactregistry.v1.MavenArtifact.fromObject(object.mavenArtifacts[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListFilesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMavenArtifactsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @static - * @param {google.devtools.artifactregistry.v1.ListFilesRequest} message ListFilesRequest + * @param {google.devtools.artifactregistry.v1.ListMavenArtifactsResponse} message ListMavenArtifactsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFilesRequest.toObject = function toObject(message, options) { + ListMavenArtifactsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + if (options.arrays || options.defaults) + object.mavenArtifacts = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.mavenArtifacts && message.mavenArtifacts.length) { + object.mavenArtifacts = []; + for (var j = 0; j < message.mavenArtifacts.length; ++j) + object.mavenArtifacts[j] = $root.google.devtools.artifactregistry.v1.MavenArtifact.toObject(message.mavenArtifacts[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListFilesRequest to JSON. + * Converts this ListMavenArtifactsResponse to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @instance * @returns {Object.} JSON object */ - ListFilesRequest.prototype.toJSON = function toJSON() { + ListMavenArtifactsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFilesRequest + * Gets the default type url for ListMavenArtifactsResponse * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @memberof google.devtools.artifactregistry.v1.ListMavenArtifactsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFilesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMavenArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListFilesRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListMavenArtifactsResponse"; }; - return ListFilesRequest; + return ListMavenArtifactsResponse; })(); - v1.ListFilesResponse = (function() { + v1.GetMavenArtifactRequest = (function() { /** - * Properties of a ListFilesResponse. + * Properties of a GetMavenArtifactRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IListFilesResponse - * @property {Array.|null} [files] ListFilesResponse files - * @property {string|null} [nextPageToken] ListFilesResponse nextPageToken + * @interface IGetMavenArtifactRequest + * @property {string|null} [name] GetMavenArtifactRequest name */ /** - * Constructs a new ListFilesResponse. + * Constructs a new GetMavenArtifactRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListFilesResponse. - * @implements IListFilesResponse + * @classdesc Represents a GetMavenArtifactRequest. + * @implements IGetMavenArtifactRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IListFilesResponse=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IGetMavenArtifactRequest=} [properties] Properties to set */ - function ListFilesResponse(properties) { - this.files = []; + function GetMavenArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3676,92 +3638,75 @@ } /** - * ListFilesResponse files. - * @member {Array.} files - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse - * @instance - */ - ListFilesResponse.prototype.files = $util.emptyArray; - - /** - * ListFilesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * GetMavenArtifactRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @instance */ - ListFilesResponse.prototype.nextPageToken = ""; + GetMavenArtifactRequest.prototype.name = ""; /** - * Creates a new ListFilesResponse instance using the specified properties. + * Creates a new GetMavenArtifactRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @static - * @param {google.devtools.artifactregistry.v1.IListFilesResponse=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListFilesResponse} ListFilesResponse instance + * @param {google.devtools.artifactregistry.v1.IGetMavenArtifactRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetMavenArtifactRequest} GetMavenArtifactRequest instance */ - ListFilesResponse.create = function create(properties) { - return new ListFilesResponse(properties); + GetMavenArtifactRequest.create = function create(properties) { + return new GetMavenArtifactRequest(properties); }; /** - * Encodes the specified ListFilesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesResponse.verify|verify} messages. + * Encodes the specified GetMavenArtifactRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetMavenArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @static - * @param {google.devtools.artifactregistry.v1.IListFilesResponse} message ListFilesResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetMavenArtifactRequest} message GetMavenArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFilesResponse.encode = function encode(message, writer) { + GetMavenArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.files != null && message.files.length) - for (var i = 0; i < message.files.length; ++i) - $root.google.devtools.artifactregistry.v1.File.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListFilesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesResponse.verify|verify} messages. + * Encodes the specified GetMavenArtifactRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetMavenArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @static - * @param {google.devtools.artifactregistry.v1.IListFilesResponse} message ListFilesResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetMavenArtifactRequest} message GetMavenArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFilesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetMavenArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFilesResponse message from the specified reader or buffer. + * Decodes a GetMavenArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListFilesResponse} ListFilesResponse + * @returns {google.devtools.artifactregistry.v1.GetMavenArtifactRequest} GetMavenArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFilesResponse.decode = function decode(reader, length) { + GetMavenArtifactRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListFilesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetMavenArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.files && message.files.length)) - message.files = []; - message.files.push($root.google.devtools.artifactregistry.v1.File.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -3773,148 +3718,128 @@ }; /** - * Decodes a ListFilesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetMavenArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListFilesResponse} ListFilesResponse + * @returns {google.devtools.artifactregistry.v1.GetMavenArtifactRequest} GetMavenArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFilesResponse.decodeDelimited = function decodeDelimited(reader) { + GetMavenArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFilesResponse message. + * Verifies a GetMavenArtifactRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFilesResponse.verify = function verify(message) { + GetMavenArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.files != null && message.hasOwnProperty("files")) { - if (!Array.isArray(message.files)) - return "files: array expected"; - for (var i = 0; i < message.files.length; ++i) { - var error = $root.google.devtools.artifactregistry.v1.File.verify(message.files[i]); - if (error) - return "files." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListFilesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetMavenArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListFilesResponse} ListFilesResponse + * @returns {google.devtools.artifactregistry.v1.GetMavenArtifactRequest} GetMavenArtifactRequest */ - ListFilesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListFilesResponse) + GetMavenArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetMavenArtifactRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.ListFilesResponse(); - if (object.files) { - if (!Array.isArray(object.files)) - throw TypeError(".google.devtools.artifactregistry.v1.ListFilesResponse.files: array expected"); - message.files = []; - for (var i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.ListFilesResponse.files: object expected"); - message.files[i] = $root.google.devtools.artifactregistry.v1.File.fromObject(object.files[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.devtools.artifactregistry.v1.GetMavenArtifactRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListFilesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetMavenArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @static - * @param {google.devtools.artifactregistry.v1.ListFilesResponse} message ListFilesResponse + * @param {google.devtools.artifactregistry.v1.GetMavenArtifactRequest} message GetMavenArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFilesResponse.toObject = function toObject(message, options) { + GetMavenArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.files = []; if (options.defaults) - object.nextPageToken = ""; - if (message.files && message.files.length) { - object.files = []; - for (var j = 0; j < message.files.length; ++j) - object.files[j] = $root.google.devtools.artifactregistry.v1.File.toObject(message.files[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListFilesResponse to JSON. + * Converts this GetMavenArtifactRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @instance * @returns {Object.} JSON object */ - ListFilesResponse.prototype.toJSON = function toJSON() { + GetMavenArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFilesResponse + * Gets the default type url for GetMavenArtifactRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @memberof google.devtools.artifactregistry.v1.GetMavenArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFilesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetMavenArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListFilesResponse"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetMavenArtifactRequest"; }; - return ListFilesResponse; + return GetMavenArtifactRequest; })(); - v1.GetFileRequest = (function() { + v1.NpmPackage = (function() { /** - * Properties of a GetFileRequest. + * Properties of a NpmPackage. * @memberof google.devtools.artifactregistry.v1 - * @interface IGetFileRequest - * @property {string|null} [name] GetFileRequest name + * @interface INpmPackage + * @property {string|null} [name] NpmPackage name + * @property {string|null} [packageName] NpmPackage packageName + * @property {string|null} [version] NpmPackage version + * @property {Array.|null} [tags] NpmPackage tags + * @property {google.protobuf.ITimestamp|null} [createTime] NpmPackage createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] NpmPackage updateTime */ /** - * Constructs a new GetFileRequest. + * Constructs a new NpmPackage. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a GetFileRequest. - * @implements IGetFileRequest + * @classdesc Represents a NpmPackage. + * @implements INpmPackage * @constructor - * @param {google.devtools.artifactregistry.v1.IGetFileRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.INpmPackage=} [properties] Properties to set */ - function GetFileRequest(properties) { + function NpmPackage(properties) { + this.tags = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3922,70 +3847,121 @@ } /** - * GetFileRequest name. + * NpmPackage name. * @member {string} name - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @instance */ - GetFileRequest.prototype.name = ""; + NpmPackage.prototype.name = ""; /** - * Creates a new GetFileRequest instance using the specified properties. + * NpmPackage packageName. + * @member {string} packageName + * @memberof google.devtools.artifactregistry.v1.NpmPackage + * @instance + */ + NpmPackage.prototype.packageName = ""; + + /** + * NpmPackage version. + * @member {string} version + * @memberof google.devtools.artifactregistry.v1.NpmPackage + * @instance + */ + NpmPackage.prototype.version = ""; + + /** + * NpmPackage tags. + * @member {Array.} tags + * @memberof google.devtools.artifactregistry.v1.NpmPackage + * @instance + */ + NpmPackage.prototype.tags = $util.emptyArray; + + /** + * NpmPackage createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.devtools.artifactregistry.v1.NpmPackage + * @instance + */ + NpmPackage.prototype.createTime = null; + + /** + * NpmPackage updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.devtools.artifactregistry.v1.NpmPackage + * @instance + */ + NpmPackage.prototype.updateTime = null; + + /** + * Creates a new NpmPackage instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @static - * @param {google.devtools.artifactregistry.v1.IGetFileRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.GetFileRequest} GetFileRequest instance + * @param {google.devtools.artifactregistry.v1.INpmPackage=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.NpmPackage} NpmPackage instance */ - GetFileRequest.create = function create(properties) { - return new GetFileRequest(properties); + NpmPackage.create = function create(properties) { + return new NpmPackage(properties); }; /** - * Encodes the specified GetFileRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetFileRequest.verify|verify} messages. + * Encodes the specified NpmPackage message. Does not implicitly {@link google.devtools.artifactregistry.v1.NpmPackage.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @static - * @param {google.devtools.artifactregistry.v1.IGetFileRequest} message GetFileRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.INpmPackage} message NpmPackage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFileRequest.encode = function encode(message, writer) { + NpmPackage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.packageName); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.tags[i]); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetFileRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetFileRequest.verify|verify} messages. + * Encodes the specified NpmPackage message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.NpmPackage.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @static - * @param {google.devtools.artifactregistry.v1.IGetFileRequest} message GetFileRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.INpmPackage} message NpmPackage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFileRequest.encodeDelimited = function encodeDelimited(message, writer) { + NpmPackage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFileRequest message from the specified reader or buffer. + * Decodes a NpmPackage message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.GetFileRequest} GetFileRequest + * @returns {google.devtools.artifactregistry.v1.NpmPackage} NpmPackage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFileRequest.decode = function decode(reader, length) { + NpmPackage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetFileRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.NpmPackage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -3993,6 +3969,28 @@ message.name = reader.string(); break; } + case 3: { + message.packageName = reader.string(); + break; + } + case 4: { + message.version = reader.string(); + break; + } + case 5: { + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + } + case 6: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -4002,125 +4000,188 @@ }; /** - * Decodes a GetFileRequest message from the specified reader or buffer, length delimited. + * Decodes a NpmPackage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.GetFileRequest} GetFileRequest + * @returns {google.devtools.artifactregistry.v1.NpmPackage} NpmPackage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFileRequest.decodeDelimited = function decodeDelimited(reader) { + NpmPackage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFileRequest message. + * Verifies a NpmPackage message. * @function verify - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFileRequest.verify = function verify(message) { + NpmPackage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; /** - * Creates a GetFileRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NpmPackage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.GetFileRequest} GetFileRequest + * @returns {google.devtools.artifactregistry.v1.NpmPackage} NpmPackage */ - GetFileRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.GetFileRequest) + NpmPackage.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.NpmPackage) return object; - var message = new $root.google.devtools.artifactregistry.v1.GetFileRequest(); + var message = new $root.google.devtools.artifactregistry.v1.NpmPackage(); if (object.name != null) message.name = String(object.name); + if (object.packageName != null) + message.packageName = String(object.packageName); + if (object.version != null) + message.version = String(object.version); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.devtools.artifactregistry.v1.NpmPackage.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.NpmPackage.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.NpmPackage.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } return message; }; /** - * Creates a plain object from a GetFileRequest message. Also converts values to other types if specified. + * Creates a plain object from a NpmPackage message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @static - * @param {google.devtools.artifactregistry.v1.GetFileRequest} message GetFileRequest + * @param {google.devtools.artifactregistry.v1.NpmPackage} message NpmPackage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFileRequest.toObject = function toObject(message, options) { + NpmPackage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.tags = []; + if (options.defaults) { object.name = ""; + object.packageName = ""; + object.version = ""; + object.createTime = null; + object.updateTime = null; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this GetFileRequest to JSON. + * Converts this NpmPackage to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @instance * @returns {Object.} JSON object */ - GetFileRequest.prototype.toJSON = function toJSON() { + NpmPackage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFileRequest + * Gets the default type url for NpmPackage * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @memberof google.devtools.artifactregistry.v1.NpmPackage * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NpmPackage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetFileRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.NpmPackage"; }; - return GetFileRequest; + return NpmPackage; })(); - v1.Package = (function() { + v1.ListNpmPackagesRequest = (function() { /** - * Properties of a Package. + * Properties of a ListNpmPackagesRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IPackage - * @property {string|null} [name] Package name - * @property {string|null} [displayName] Package displayName - * @property {google.protobuf.ITimestamp|null} [createTime] Package createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Package updateTime + * @interface IListNpmPackagesRequest + * @property {string|null} [parent] ListNpmPackagesRequest parent + * @property {number|null} [pageSize] ListNpmPackagesRequest pageSize + * @property {string|null} [pageToken] ListNpmPackagesRequest pageToken */ /** - * Constructs a new Package. + * Constructs a new ListNpmPackagesRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a Package. - * @implements IPackage + * @classdesc Represents a ListNpmPackagesRequest. + * @implements IListNpmPackagesRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IPackage=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesRequest=} [properties] Properties to set */ - function Package(properties) { + function ListNpmPackagesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4128,117 +4189,103 @@ } /** - * Package name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.Package + * ListNpmPackagesRequest parent. + * @member {string} parent + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @instance */ - Package.prototype.name = ""; + ListNpmPackagesRequest.prototype.parent = ""; /** - * Package displayName. - * @member {string} displayName - * @memberof google.devtools.artifactregistry.v1.Package + * ListNpmPackagesRequest pageSize. + * @member {number} pageSize + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @instance */ - Package.prototype.displayName = ""; + ListNpmPackagesRequest.prototype.pageSize = 0; /** - * Package createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.devtools.artifactregistry.v1.Package - * @instance - */ - Package.prototype.createTime = null; - - /** - * Package updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.devtools.artifactregistry.v1.Package + * ListNpmPackagesRequest pageToken. + * @member {string} pageToken + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @instance */ - Package.prototype.updateTime = null; + ListNpmPackagesRequest.prototype.pageToken = ""; /** - * Creates a new Package instance using the specified properties. + * Creates a new ListNpmPackagesRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @static - * @param {google.devtools.artifactregistry.v1.IPackage=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.Package} Package instance + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListNpmPackagesRequest} ListNpmPackagesRequest instance */ - Package.create = function create(properties) { - return new Package(properties); + ListNpmPackagesRequest.create = function create(properties) { + return new ListNpmPackagesRequest(properties); }; /** - * Encodes the specified Package message. Does not implicitly {@link google.devtools.artifactregistry.v1.Package.verify|verify} messages. + * Encodes the specified ListNpmPackagesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListNpmPackagesRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @static - * @param {google.devtools.artifactregistry.v1.IPackage} message Package message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesRequest} message ListNpmPackagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Package.encode = function encode(message, writer) { + ListNpmPackagesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified Package message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Package.verify|verify} messages. + * Encodes the specified ListNpmPackagesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListNpmPackagesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @static - * @param {google.devtools.artifactregistry.v1.IPackage} message Package message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesRequest} message ListNpmPackagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Package.encodeDelimited = function encodeDelimited(message, writer) { + ListNpmPackagesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Package message from the specified reader or buffer. + * Decodes a ListNpmPackagesRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.Package} Package + * @returns {google.devtools.artifactregistry.v1.ListNpmPackagesRequest} ListNpmPackagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Package.decode = function decode(reader, length) { + ListNpmPackagesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Package(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListNpmPackagesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } - case 6: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 3: { + message.pageToken = reader.string(); break; } default: @@ -4250,159 +4297,141 @@ }; /** - * Decodes a Package message from the specified reader or buffer, length delimited. + * Decodes a ListNpmPackagesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.Package} Package + * @returns {google.devtools.artifactregistry.v1.ListNpmPackagesRequest} ListNpmPackagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Package.decodeDelimited = function decodeDelimited(reader) { + ListNpmPackagesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Package message. + * Verifies a ListNpmPackagesRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Package.verify = function verify(message) { + ListNpmPackagesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a Package message from a plain object. Also converts values to their respective internal types. + * Creates a ListNpmPackagesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.Package} Package + * @returns {google.devtools.artifactregistry.v1.ListNpmPackagesRequest} ListNpmPackagesRequest */ - Package.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.Package) + ListNpmPackagesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListNpmPackagesRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.Package(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Package.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Package.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } + var message = new $root.google.devtools.artifactregistry.v1.ListNpmPackagesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a Package message. Also converts values to other types if specified. + * Creates a plain object from a ListNpmPackagesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @static - * @param {google.devtools.artifactregistry.v1.Package} message Package + * @param {google.devtools.artifactregistry.v1.ListNpmPackagesRequest} message ListNpmPackagesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Package.toObject = function toObject(message, options) { + ListNpmPackagesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.createTime = null; - object.updateTime = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this Package to JSON. + * Converts this ListNpmPackagesRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @instance * @returns {Object.} JSON object */ - Package.prototype.toJSON = function toJSON() { + ListNpmPackagesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Package + * Gets the default type url for ListNpmPackagesRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.Package + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Package.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNpmPackagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Package"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListNpmPackagesRequest"; }; - return Package; + return ListNpmPackagesRequest; })(); - v1.ListPackagesRequest = (function() { + v1.ListNpmPackagesResponse = (function() { /** - * Properties of a ListPackagesRequest. + * Properties of a ListNpmPackagesResponse. * @memberof google.devtools.artifactregistry.v1 - * @interface IListPackagesRequest - * @property {string|null} [parent] ListPackagesRequest parent - * @property {number|null} [pageSize] ListPackagesRequest pageSize - * @property {string|null} [pageToken] ListPackagesRequest pageToken + * @interface IListNpmPackagesResponse + * @property {Array.|null} [npmPackages] ListNpmPackagesResponse npmPackages + * @property {string|null} [nextPageToken] ListNpmPackagesResponse nextPageToken */ /** - * Constructs a new ListPackagesRequest. + * Constructs a new ListNpmPackagesResponse. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListPackagesRequest. - * @implements IListPackagesRequest + * @classdesc Represents a ListNpmPackagesResponse. + * @implements IListNpmPackagesResponse * @constructor - * @param {google.devtools.artifactregistry.v1.IListPackagesRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesResponse=} [properties] Properties to set */ - function ListPackagesRequest(properties) { + function ListNpmPackagesResponse(properties) { + this.npmPackages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4410,103 +4439,92 @@ } /** - * ListPackagesRequest parent. - * @member {string} parent - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest - * @instance - */ - ListPackagesRequest.prototype.parent = ""; - - /** - * ListPackagesRequest pageSize. - * @member {number} pageSize - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * ListNpmPackagesResponse npmPackages. + * @member {Array.} npmPackages + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @instance */ - ListPackagesRequest.prototype.pageSize = 0; + ListNpmPackagesResponse.prototype.npmPackages = $util.emptyArray; /** - * ListPackagesRequest pageToken. - * @member {string} pageToken - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * ListNpmPackagesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @instance */ - ListPackagesRequest.prototype.pageToken = ""; + ListNpmPackagesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListPackagesRequest instance using the specified properties. + * Creates a new ListNpmPackagesResponse instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @static - * @param {google.devtools.artifactregistry.v1.IListPackagesRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListPackagesRequest} ListPackagesRequest instance + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesResponse=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListNpmPackagesResponse} ListNpmPackagesResponse instance */ - ListPackagesRequest.create = function create(properties) { - return new ListPackagesRequest(properties); + ListNpmPackagesResponse.create = function create(properties) { + return new ListNpmPackagesResponse(properties); }; /** - * Encodes the specified ListPackagesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesRequest.verify|verify} messages. + * Encodes the specified ListNpmPackagesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListNpmPackagesResponse.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @static - * @param {google.devtools.artifactregistry.v1.IListPackagesRequest} message ListPackagesRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesResponse} message ListNpmPackagesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPackagesRequest.encode = function encode(message, writer) { + ListNpmPackagesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.npmPackages != null && message.npmPackages.length) + for (var i = 0; i < message.npmPackages.length; ++i) + $root.google.devtools.artifactregistry.v1.NpmPackage.encode(message.npmPackages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListPackagesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesRequest.verify|verify} messages. + * Encodes the specified ListNpmPackagesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListNpmPackagesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @static - * @param {google.devtools.artifactregistry.v1.IListPackagesRequest} message ListPackagesRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesResponse} message ListNpmPackagesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPackagesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNpmPackagesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPackagesRequest message from the specified reader or buffer. + * Decodes a ListNpmPackagesResponse message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListPackagesRequest} ListPackagesRequest + * @returns {google.devtools.artifactregistry.v1.ListNpmPackagesResponse} ListNpmPackagesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPackagesRequest.decode = function decode(reader, length) { + ListNpmPackagesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListPackagesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListNpmPackagesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.npmPackages && message.npmPackages.length)) + message.npmPackages = []; + message.npmPackages.push($root.google.devtools.artifactregistry.v1.NpmPackage.decode(reader, reader.uint32())); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -4518,141 +4536,148 @@ }; /** - * Decodes a ListPackagesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNpmPackagesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListPackagesRequest} ListPackagesRequest + * @returns {google.devtools.artifactregistry.v1.ListNpmPackagesResponse} ListNpmPackagesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPackagesRequest.decodeDelimited = function decodeDelimited(reader) { + ListNpmPackagesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPackagesRequest message. + * Verifies a ListNpmPackagesResponse message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPackagesRequest.verify = function verify(message) { + ListNpmPackagesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.npmPackages != null && message.hasOwnProperty("npmPackages")) { + if (!Array.isArray(message.npmPackages)) + return "npmPackages: array expected"; + for (var i = 0; i < message.npmPackages.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.NpmPackage.verify(message.npmPackages[i]); + if (error) + return "npmPackages." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListPackagesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNpmPackagesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListPackagesRequest} ListPackagesRequest + * @returns {google.devtools.artifactregistry.v1.ListNpmPackagesResponse} ListNpmPackagesResponse */ - ListPackagesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListPackagesRequest) + ListNpmPackagesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListNpmPackagesResponse) return object; - var message = new $root.google.devtools.artifactregistry.v1.ListPackagesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.devtools.artifactregistry.v1.ListNpmPackagesResponse(); + if (object.npmPackages) { + if (!Array.isArray(object.npmPackages)) + throw TypeError(".google.devtools.artifactregistry.v1.ListNpmPackagesResponse.npmPackages: array expected"); + message.npmPackages = []; + for (var i = 0; i < object.npmPackages.length; ++i) { + if (typeof object.npmPackages[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.ListNpmPackagesResponse.npmPackages: object expected"); + message.npmPackages[i] = $root.google.devtools.artifactregistry.v1.NpmPackage.fromObject(object.npmPackages[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListPackagesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNpmPackagesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @static - * @param {google.devtools.artifactregistry.v1.ListPackagesRequest} message ListPackagesRequest + * @param {google.devtools.artifactregistry.v1.ListNpmPackagesResponse} message ListNpmPackagesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPackagesRequest.toObject = function toObject(message, options) { + ListNpmPackagesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (options.arrays || options.defaults) + object.npmPackages = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.npmPackages && message.npmPackages.length) { + object.npmPackages = []; + for (var j = 0; j < message.npmPackages.length; ++j) + object.npmPackages[j] = $root.google.devtools.artifactregistry.v1.NpmPackage.toObject(message.npmPackages[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListPackagesRequest to JSON. + * Converts this ListNpmPackagesResponse to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @instance * @returns {Object.} JSON object */ - ListPackagesRequest.prototype.toJSON = function toJSON() { + ListNpmPackagesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPackagesRequest + * Gets the default type url for ListNpmPackagesResponse * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @memberof google.devtools.artifactregistry.v1.ListNpmPackagesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPackagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNpmPackagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListPackagesRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListNpmPackagesResponse"; }; - return ListPackagesRequest; + return ListNpmPackagesResponse; })(); - v1.ListPackagesResponse = (function() { + v1.GetNpmPackageRequest = (function() { /** - * Properties of a ListPackagesResponse. + * Properties of a GetNpmPackageRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IListPackagesResponse - * @property {Array.|null} [packages] ListPackagesResponse packages - * @property {string|null} [nextPageToken] ListPackagesResponse nextPageToken + * @interface IGetNpmPackageRequest + * @property {string|null} [name] GetNpmPackageRequest name */ /** - * Constructs a new ListPackagesResponse. + * Constructs a new GetNpmPackageRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListPackagesResponse. - * @implements IListPackagesResponse + * @classdesc Represents a GetNpmPackageRequest. + * @implements IGetNpmPackageRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IListPackagesResponse=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IGetNpmPackageRequest=} [properties] Properties to set */ - function ListPackagesResponse(properties) { - this.packages = []; + function GetNpmPackageRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4660,92 +4685,75 @@ } /** - * ListPackagesResponse packages. - * @member {Array.} packages - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse - * @instance - */ - ListPackagesResponse.prototype.packages = $util.emptyArray; - - /** - * ListPackagesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * GetNpmPackageRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @instance */ - ListPackagesResponse.prototype.nextPageToken = ""; + GetNpmPackageRequest.prototype.name = ""; /** - * Creates a new ListPackagesResponse instance using the specified properties. + * Creates a new GetNpmPackageRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @static - * @param {google.devtools.artifactregistry.v1.IListPackagesResponse=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListPackagesResponse} ListPackagesResponse instance + * @param {google.devtools.artifactregistry.v1.IGetNpmPackageRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetNpmPackageRequest} GetNpmPackageRequest instance */ - ListPackagesResponse.create = function create(properties) { - return new ListPackagesResponse(properties); + GetNpmPackageRequest.create = function create(properties) { + return new GetNpmPackageRequest(properties); }; /** - * Encodes the specified ListPackagesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesResponse.verify|verify} messages. + * Encodes the specified GetNpmPackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetNpmPackageRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @static - * @param {google.devtools.artifactregistry.v1.IListPackagesResponse} message ListPackagesResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetNpmPackageRequest} message GetNpmPackageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPackagesResponse.encode = function encode(message, writer) { + GetNpmPackageRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packages != null && message.packages.length) - for (var i = 0; i < message.packages.length; ++i) - $root.google.devtools.artifactregistry.v1.Package.encode(message.packages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListPackagesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesResponse.verify|verify} messages. + * Encodes the specified GetNpmPackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetNpmPackageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @static - * @param {google.devtools.artifactregistry.v1.IListPackagesResponse} message ListPackagesResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetNpmPackageRequest} message GetNpmPackageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPackagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetNpmPackageRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPackagesResponse message from the specified reader or buffer. + * Decodes a GetNpmPackageRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListPackagesResponse} ListPackagesResponse + * @returns {google.devtools.artifactregistry.v1.GetNpmPackageRequest} GetNpmPackageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPackagesResponse.decode = function decode(reader, length) { + GetNpmPackageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListPackagesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetNpmPackageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.packages && message.packages.length)) - message.packages = []; - message.packages.push($root.google.devtools.artifactregistry.v1.Package.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -4757,148 +4765,127 @@ }; /** - * Decodes a ListPackagesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetNpmPackageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListPackagesResponse} ListPackagesResponse + * @returns {google.devtools.artifactregistry.v1.GetNpmPackageRequest} GetNpmPackageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPackagesResponse.decodeDelimited = function decodeDelimited(reader) { + GetNpmPackageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPackagesResponse message. + * Verifies a GetNpmPackageRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPackagesResponse.verify = function verify(message) { + GetNpmPackageRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packages != null && message.hasOwnProperty("packages")) { - if (!Array.isArray(message.packages)) - return "packages: array expected"; - for (var i = 0; i < message.packages.length; ++i) { - var error = $root.google.devtools.artifactregistry.v1.Package.verify(message.packages[i]); - if (error) - return "packages." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListPackagesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetNpmPackageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListPackagesResponse} ListPackagesResponse + * @returns {google.devtools.artifactregistry.v1.GetNpmPackageRequest} GetNpmPackageRequest */ - ListPackagesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListPackagesResponse) + GetNpmPackageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetNpmPackageRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.ListPackagesResponse(); - if (object.packages) { - if (!Array.isArray(object.packages)) - throw TypeError(".google.devtools.artifactregistry.v1.ListPackagesResponse.packages: array expected"); - message.packages = []; - for (var i = 0; i < object.packages.length; ++i) { - if (typeof object.packages[i] !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.ListPackagesResponse.packages: object expected"); - message.packages[i] = $root.google.devtools.artifactregistry.v1.Package.fromObject(object.packages[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.devtools.artifactregistry.v1.GetNpmPackageRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListPackagesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetNpmPackageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @static - * @param {google.devtools.artifactregistry.v1.ListPackagesResponse} message ListPackagesResponse + * @param {google.devtools.artifactregistry.v1.GetNpmPackageRequest} message GetNpmPackageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPackagesResponse.toObject = function toObject(message, options) { + GetNpmPackageRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.packages = []; if (options.defaults) - object.nextPageToken = ""; - if (message.packages && message.packages.length) { - object.packages = []; - for (var j = 0; j < message.packages.length; ++j) - object.packages[j] = $root.google.devtools.artifactregistry.v1.Package.toObject(message.packages[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListPackagesResponse to JSON. + * Converts this GetNpmPackageRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @instance * @returns {Object.} JSON object */ - ListPackagesResponse.prototype.toJSON = function toJSON() { + GetNpmPackageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPackagesResponse + * Gets the default type url for GetNpmPackageRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @memberof google.devtools.artifactregistry.v1.GetNpmPackageRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPackagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNpmPackageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListPackagesResponse"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetNpmPackageRequest"; }; - return ListPackagesResponse; + return GetNpmPackageRequest; })(); - v1.GetPackageRequest = (function() { + v1.PythonPackage = (function() { /** - * Properties of a GetPackageRequest. + * Properties of a PythonPackage. * @memberof google.devtools.artifactregistry.v1 - * @interface IGetPackageRequest - * @property {string|null} [name] GetPackageRequest name + * @interface IPythonPackage + * @property {string|null} [name] PythonPackage name + * @property {string|null} [uri] PythonPackage uri + * @property {string|null} [packageName] PythonPackage packageName + * @property {string|null} [version] PythonPackage version + * @property {google.protobuf.ITimestamp|null} [createTime] PythonPackage createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PythonPackage updateTime */ /** - * Constructs a new GetPackageRequest. + * Constructs a new PythonPackage. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a GetPackageRequest. - * @implements IGetPackageRequest + * @classdesc Represents a PythonPackage. + * @implements IPythonPackage * @constructor - * @param {google.devtools.artifactregistry.v1.IGetPackageRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IPythonPackage=} [properties] Properties to set */ - function GetPackageRequest(properties) { + function PythonPackage(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4906,70 +4893,120 @@ } /** - * GetPackageRequest name. + * PythonPackage name. * @member {string} name - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @instance */ - GetPackageRequest.prototype.name = ""; + PythonPackage.prototype.name = ""; /** - * Creates a new GetPackageRequest instance using the specified properties. + * PythonPackage uri. + * @member {string} uri + * @memberof google.devtools.artifactregistry.v1.PythonPackage + * @instance + */ + PythonPackage.prototype.uri = ""; + + /** + * PythonPackage packageName. + * @member {string} packageName + * @memberof google.devtools.artifactregistry.v1.PythonPackage + * @instance + */ + PythonPackage.prototype.packageName = ""; + + /** + * PythonPackage version. + * @member {string} version + * @memberof google.devtools.artifactregistry.v1.PythonPackage + * @instance + */ + PythonPackage.prototype.version = ""; + + /** + * PythonPackage createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.devtools.artifactregistry.v1.PythonPackage + * @instance + */ + PythonPackage.prototype.createTime = null; + + /** + * PythonPackage updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.devtools.artifactregistry.v1.PythonPackage + * @instance + */ + PythonPackage.prototype.updateTime = null; + + /** + * Creates a new PythonPackage instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @static - * @param {google.devtools.artifactregistry.v1.IGetPackageRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.GetPackageRequest} GetPackageRequest instance + * @param {google.devtools.artifactregistry.v1.IPythonPackage=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.PythonPackage} PythonPackage instance */ - GetPackageRequest.create = function create(properties) { - return new GetPackageRequest(properties); + PythonPackage.create = function create(properties) { + return new PythonPackage(properties); }; /** - * Encodes the specified GetPackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPackageRequest.verify|verify} messages. + * Encodes the specified PythonPackage message. Does not implicitly {@link google.devtools.artifactregistry.v1.PythonPackage.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @static - * @param {google.devtools.artifactregistry.v1.IGetPackageRequest} message GetPackageRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IPythonPackage} message PythonPackage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPackageRequest.encode = function encode(message, writer) { + PythonPackage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.packageName); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetPackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPackageRequest.verify|verify} messages. + * Encodes the specified PythonPackage message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.PythonPackage.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @static - * @param {google.devtools.artifactregistry.v1.IGetPackageRequest} message GetPackageRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IPythonPackage} message PythonPackage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPackageRequest.encodeDelimited = function encodeDelimited(message, writer) { + PythonPackage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPackageRequest message from the specified reader or buffer. + * Decodes a PythonPackage message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.GetPackageRequest} GetPackageRequest + * @returns {google.devtools.artifactregistry.v1.PythonPackage} PythonPackage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPackageRequest.decode = function decode(reader, length) { + PythonPackage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetPackageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.PythonPackage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -4977,6 +5014,26 @@ message.name = reader.string(); break; } + case 2: { + message.uri = reader.string(); + break; + } + case 3: { + message.packageName = reader.string(); + break; + } + case 4: { + message.version = reader.string(); + break; + } + case 6: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -4986,122 +5043,175 @@ }; /** - * Decodes a GetPackageRequest message from the specified reader or buffer, length delimited. + * Decodes a PythonPackage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.GetPackageRequest} GetPackageRequest + * @returns {google.devtools.artifactregistry.v1.PythonPackage} PythonPackage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPackageRequest.decodeDelimited = function decodeDelimited(reader) { + PythonPackage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPackageRequest message. + * Verifies a PythonPackage message. * @function verify - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPackageRequest.verify = function verify(message) { + PythonPackage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; /** - * Creates a GetPackageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PythonPackage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.GetPackageRequest} GetPackageRequest + * @returns {google.devtools.artifactregistry.v1.PythonPackage} PythonPackage */ - GetPackageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.GetPackageRequest) + PythonPackage.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.PythonPackage) return object; - var message = new $root.google.devtools.artifactregistry.v1.GetPackageRequest(); + var message = new $root.google.devtools.artifactregistry.v1.PythonPackage(); if (object.name != null) message.name = String(object.name); + if (object.uri != null) + message.uri = String(object.uri); + if (object.packageName != null) + message.packageName = String(object.packageName); + if (object.version != null) + message.version = String(object.version); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.PythonPackage.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.PythonPackage.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } return message; }; /** - * Creates a plain object from a GetPackageRequest message. Also converts values to other types if specified. + * Creates a plain object from a PythonPackage message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @static - * @param {google.devtools.artifactregistry.v1.GetPackageRequest} message GetPackageRequest + * @param {google.devtools.artifactregistry.v1.PythonPackage} message PythonPackage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPackageRequest.toObject = function toObject(message, options) { + PythonPackage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.uri = ""; + object.packageName = ""; + object.version = ""; + object.createTime = null; + object.updateTime = null; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this GetPackageRequest to JSON. + * Converts this PythonPackage to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @instance * @returns {Object.} JSON object */ - GetPackageRequest.prototype.toJSON = function toJSON() { + PythonPackage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPackageRequest + * Gets the default type url for PythonPackage * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @memberof google.devtools.artifactregistry.v1.PythonPackage * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPackageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PythonPackage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetPackageRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.PythonPackage"; }; - return GetPackageRequest; + return PythonPackage; })(); - v1.DeletePackageRequest = (function() { + v1.ListPythonPackagesRequest = (function() { /** - * Properties of a DeletePackageRequest. + * Properties of a ListPythonPackagesRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IDeletePackageRequest - * @property {string|null} [name] DeletePackageRequest name + * @interface IListPythonPackagesRequest + * @property {string|null} [parent] ListPythonPackagesRequest parent + * @property {number|null} [pageSize] ListPythonPackagesRequest pageSize + * @property {string|null} [pageToken] ListPythonPackagesRequest pageToken */ /** - * Constructs a new DeletePackageRequest. + * Constructs a new ListPythonPackagesRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a DeletePackageRequest. - * @implements IDeletePackageRequest + * @classdesc Represents a ListPythonPackagesRequest. + * @implements IListPythonPackagesRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesRequest=} [properties] Properties to set */ - function DeletePackageRequest(properties) { + function ListPythonPackagesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5109,75 +5219,103 @@ } /** - * DeletePackageRequest name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * ListPythonPackagesRequest parent. + * @member {string} parent + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @instance */ - DeletePackageRequest.prototype.name = ""; + ListPythonPackagesRequest.prototype.parent = ""; /** - * Creates a new DeletePackageRequest instance using the specified properties. + * ListPythonPackagesRequest pageSize. + * @member {number} pageSize + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest + * @instance + */ + ListPythonPackagesRequest.prototype.pageSize = 0; + + /** + * ListPythonPackagesRequest pageToken. + * @member {string} pageToken + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest + * @instance + */ + ListPythonPackagesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListPythonPackagesRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @static - * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.DeletePackageRequest} DeletePackageRequest instance + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListPythonPackagesRequest} ListPythonPackagesRequest instance */ - DeletePackageRequest.create = function create(properties) { - return new DeletePackageRequest(properties); + ListPythonPackagesRequest.create = function create(properties) { + return new ListPythonPackagesRequest(properties); }; /** - * Encodes the specified DeletePackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeletePackageRequest.verify|verify} messages. + * Encodes the specified ListPythonPackagesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPythonPackagesRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @static - * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest} message DeletePackageRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesRequest} message ListPythonPackagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePackageRequest.encode = function encode(message, writer) { + ListPythonPackagesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified DeletePackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeletePackageRequest.verify|verify} messages. + * Encodes the specified ListPythonPackagesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPythonPackagesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @static - * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest} message DeletePackageRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesRequest} message ListPythonPackagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePackageRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPythonPackagesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePackageRequest message from the specified reader or buffer. + * Decodes a ListPythonPackagesRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.DeletePackageRequest} DeletePackageRequest + * @returns {google.devtools.artifactregistry.v1.ListPythonPackagesRequest} ListPythonPackagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePackageRequest.decode = function decode(reader, length) { + ListPythonPackagesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.DeletePackageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListPythonPackagesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -5189,130 +5327,141 @@ }; /** - * Decodes a DeletePackageRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPythonPackagesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.DeletePackageRequest} DeletePackageRequest + * @returns {google.devtools.artifactregistry.v1.ListPythonPackagesRequest} ListPythonPackagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePackageRequest.decodeDelimited = function decodeDelimited(reader) { + ListPythonPackagesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePackageRequest message. + * Verifies a ListPythonPackagesRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePackageRequest.verify = function verify(message) { + ListPythonPackagesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a DeletePackageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPythonPackagesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.DeletePackageRequest} DeletePackageRequest + * @returns {google.devtools.artifactregistry.v1.ListPythonPackagesRequest} ListPythonPackagesRequest */ - DeletePackageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.DeletePackageRequest) + ListPythonPackagesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListPythonPackagesRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.DeletePackageRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.devtools.artifactregistry.v1.ListPythonPackagesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a DeletePackageRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPythonPackagesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @static - * @param {google.devtools.artifactregistry.v1.DeletePackageRequest} message DeletePackageRequest + * @param {google.devtools.artifactregistry.v1.ListPythonPackagesRequest} message ListPythonPackagesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePackageRequest.toObject = function toObject(message, options) { + ListPythonPackagesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this DeletePackageRequest to JSON. + * Converts this ListPythonPackagesRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @instance * @returns {Object.} JSON object */ - DeletePackageRequest.prototype.toJSON = function toJSON() { + ListPythonPackagesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePackageRequest + * Gets the default type url for ListPythonPackagesRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePackageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPythonPackagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.DeletePackageRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListPythonPackagesRequest"; }; - return DeletePackageRequest; + return ListPythonPackagesRequest; })(); - v1.Repository = (function() { + v1.ListPythonPackagesResponse = (function() { /** - * Properties of a Repository. + * Properties of a ListPythonPackagesResponse. * @memberof google.devtools.artifactregistry.v1 - * @interface IRepository - * @property {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig|null} [mavenConfig] Repository mavenConfig - * @property {string|null} [name] Repository name - * @property {google.devtools.artifactregistry.v1.Repository.Format|null} [format] Repository format - * @property {string|null} [description] Repository description - * @property {Object.|null} [labels] Repository labels - * @property {google.protobuf.ITimestamp|null} [createTime] Repository createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Repository updateTime - * @property {string|null} [kmsKeyName] Repository kmsKeyName + * @interface IListPythonPackagesResponse + * @property {Array.|null} [pythonPackages] ListPythonPackagesResponse pythonPackages + * @property {string|null} [nextPageToken] ListPythonPackagesResponse nextPageToken */ /** - * Constructs a new Repository. + * Constructs a new ListPythonPackagesResponse. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a Repository. - * @implements IRepository + * @classdesc Represents a ListPythonPackagesResponse. + * @implements IListPythonPackagesResponse * @constructor - * @param {google.devtools.artifactregistry.v1.IRepository=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesResponse=} [properties] Properties to set */ - function Repository(properties) { - this.labels = {}; + function ListPythonPackagesResponse(properties) { + this.pythonPackages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5320,209 +5469,323 @@ } /** - * Repository mavenConfig. - * @member {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig|null|undefined} mavenConfig - * @memberof google.devtools.artifactregistry.v1.Repository - * @instance - */ - Repository.prototype.mavenConfig = null; - - /** - * Repository name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.Repository - * @instance - */ - Repository.prototype.name = ""; - - /** - * Repository format. - * @member {google.devtools.artifactregistry.v1.Repository.Format} format - * @memberof google.devtools.artifactregistry.v1.Repository + * ListPythonPackagesResponse pythonPackages. + * @member {Array.} pythonPackages + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse * @instance */ - Repository.prototype.format = 0; + ListPythonPackagesResponse.prototype.pythonPackages = $util.emptyArray; /** - * Repository description. - * @member {string} description - * @memberof google.devtools.artifactregistry.v1.Repository + * ListPythonPackagesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse * @instance */ - Repository.prototype.description = ""; + ListPythonPackagesResponse.prototype.nextPageToken = ""; /** - * Repository labels. - * @member {Object.} labels - * @memberof google.devtools.artifactregistry.v1.Repository - * @instance + * Creates a new ListPythonPackagesResponse instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesResponse=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListPythonPackagesResponse} ListPythonPackagesResponse instance */ - Repository.prototype.labels = $util.emptyObject; + ListPythonPackagesResponse.create = function create(properties) { + return new ListPythonPackagesResponse(properties); + }; /** - * Repository createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.devtools.artifactregistry.v1.Repository - * @instance + * Encodes the specified ListPythonPackagesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPythonPackagesResponse.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesResponse} message ListPythonPackagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Repository.prototype.createTime = null; + ListPythonPackagesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pythonPackages != null && message.pythonPackages.length) + for (var i = 0; i < message.pythonPackages.length; ++i) + $root.google.devtools.artifactregistry.v1.PythonPackage.encode(message.pythonPackages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * Repository updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.devtools.artifactregistry.v1.Repository - * @instance + * Encodes the specified ListPythonPackagesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPythonPackagesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesResponse} message ListPythonPackagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Repository.prototype.updateTime = null; + ListPythonPackagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Repository kmsKeyName. - * @member {string} kmsKeyName - * @memberof google.devtools.artifactregistry.v1.Repository - * @instance + * Decodes a ListPythonPackagesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.ListPythonPackagesResponse} ListPythonPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Repository.prototype.kmsKeyName = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListPythonPackagesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListPythonPackagesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.pythonPackages && message.pythonPackages.length)) + message.pythonPackages = []; + message.pythonPackages.push($root.google.devtools.artifactregistry.v1.PythonPackage.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Repository formatConfig. - * @member {"mavenConfig"|undefined} formatConfig - * @memberof google.devtools.artifactregistry.v1.Repository + * Decodes a ListPythonPackagesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.ListPythonPackagesResponse} ListPythonPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPythonPackagesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPythonPackagesResponse message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPythonPackagesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pythonPackages != null && message.hasOwnProperty("pythonPackages")) { + if (!Array.isArray(message.pythonPackages)) + return "pythonPackages: array expected"; + for (var i = 0; i < message.pythonPackages.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.PythonPackage.verify(message.pythonPackages[i]); + if (error) + return "pythonPackages." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListPythonPackagesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.ListPythonPackagesResponse} ListPythonPackagesResponse + */ + ListPythonPackagesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListPythonPackagesResponse) + return object; + var message = new $root.google.devtools.artifactregistry.v1.ListPythonPackagesResponse(); + if (object.pythonPackages) { + if (!Array.isArray(object.pythonPackages)) + throw TypeError(".google.devtools.artifactregistry.v1.ListPythonPackagesResponse.pythonPackages: array expected"); + message.pythonPackages = []; + for (var i = 0; i < object.pythonPackages.length; ++i) { + if (typeof object.pythonPackages[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.ListPythonPackagesResponse.pythonPackages: object expected"); + message.pythonPackages[i] = $root.google.devtools.artifactregistry.v1.PythonPackage.fromObject(object.pythonPackages[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListPythonPackagesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse + * @static + * @param {google.devtools.artifactregistry.v1.ListPythonPackagesResponse} message ListPythonPackagesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPythonPackagesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pythonPackages = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.pythonPackages && message.pythonPackages.length) { + object.pythonPackages = []; + for (var j = 0; j < message.pythonPackages.length; ++j) + object.pythonPackages[j] = $root.google.devtools.artifactregistry.v1.PythonPackage.toObject(message.pythonPackages[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListPythonPackagesResponse to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse * @instance + * @returns {Object.} JSON object */ - Object.defineProperty(Repository.prototype, "formatConfig", { - get: $util.oneOfGetter($oneOfFields = ["mavenConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListPythonPackagesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Creates a new Repository instance using the specified properties. + * Gets the default type url for ListPythonPackagesResponse + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.ListPythonPackagesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPythonPackagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListPythonPackagesResponse"; + }; + + return ListPythonPackagesResponse; + })(); + + v1.GetPythonPackageRequest = (function() { + + /** + * Properties of a GetPythonPackageRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IGetPythonPackageRequest + * @property {string|null} [name] GetPythonPackageRequest name + */ + + /** + * Constructs a new GetPythonPackageRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a GetPythonPackageRequest. + * @implements IGetPythonPackageRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IGetPythonPackageRequest=} [properties] Properties to set + */ + function GetPythonPackageRequest(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]]; + } + + /** + * GetPythonPackageRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest + * @instance + */ + GetPythonPackageRequest.prototype.name = ""; + + /** + * Creates a new GetPythonPackageRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @static - * @param {google.devtools.artifactregistry.v1.IRepository=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.Repository} Repository instance + * @param {google.devtools.artifactregistry.v1.IGetPythonPackageRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetPythonPackageRequest} GetPythonPackageRequest instance */ - Repository.create = function create(properties) { - return new Repository(properties); + GetPythonPackageRequest.create = function create(properties) { + return new GetPythonPackageRequest(properties); }; /** - * Encodes the specified Repository message. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.verify|verify} messages. + * Encodes the specified GetPythonPackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPythonPackageRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @static - * @param {google.devtools.artifactregistry.v1.IRepository} message Repository message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetPythonPackageRequest} message GetPythonPackageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Repository.encode = function encode(message, writer) { + GetPythonPackageRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.format != null && Object.hasOwnProperty.call(message, "format")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.format); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.kmsKeyName); - if (message.mavenConfig != null && Object.hasOwnProperty.call(message, "mavenConfig")) - $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.encode(message.mavenConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; /** - * Encodes the specified Repository message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.verify|verify} messages. + * Encodes the specified GetPythonPackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPythonPackageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @static - * @param {google.devtools.artifactregistry.v1.IRepository} message Repository message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetPythonPackageRequest} message GetPythonPackageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Repository.encodeDelimited = function encodeDelimited(message, writer) { + GetPythonPackageRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Repository message from the specified reader or buffer. + * Decodes a GetPythonPackageRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.Repository} Repository + * @returns {google.devtools.artifactregistry.v1.GetPythonPackageRequest} GetPythonPackageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Repository.decode = function decode(reader, length) { + GetPythonPackageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Repository(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetPythonPackageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 9: { - message.mavenConfig = $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.decode(reader, reader.uint32()); - break; - } case 1: { message.name = reader.string(); break; } - case 2: { - message.format = reader.int32(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.kmsKeyName = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -5532,552 +5795,4453 @@ }; /** - * Decodes a Repository message from the specified reader or buffer, length delimited. + * Decodes a GetPythonPackageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.Repository} Repository + * @returns {google.devtools.artifactregistry.v1.GetPythonPackageRequest} GetPythonPackageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Repository.decodeDelimited = function decodeDelimited(reader) { + GetPythonPackageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Repository message. + * Verifies a GetPythonPackageRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Repository.verify = function verify(message) { + GetPythonPackageRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.mavenConfig != null && message.hasOwnProperty("mavenConfig")) { - properties.formatConfig = 1; - { - var error = $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify(message.mavenConfig); - if (error) - return "mavenConfig." + error; - } - } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.format != null && message.hasOwnProperty("format")) - switch (message.format) { - default: - return "format: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 5: - case 6: - case 8: - break; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) - if (!$util.isString(message.kmsKeyName)) - return "kmsKeyName: string expected"; return null; }; /** - * Creates a Repository message from a plain object. Also converts values to their respective internal types. + * Creates a GetPythonPackageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.Repository} Repository + * @returns {google.devtools.artifactregistry.v1.GetPythonPackageRequest} GetPythonPackageRequest */ - Repository.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.Repository) + GetPythonPackageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetPythonPackageRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.Repository(); - if (object.mavenConfig != null) { - if (typeof object.mavenConfig !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Repository.mavenConfig: object expected"); - message.mavenConfig = $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.fromObject(object.mavenConfig); - } + var message = new $root.google.devtools.artifactregistry.v1.GetPythonPackageRequest(); if (object.name != null) message.name = String(object.name); - switch (object.format) { - default: - if (typeof object.format === "number") { - message.format = object.format; - break; - } - break; - case "FORMAT_UNSPECIFIED": - case 0: - message.format = 0; - break; - case "DOCKER": - case 1: - message.format = 1; - break; - case "MAVEN": - case 2: - message.format = 2; - break; - case "NPM": - case 3: - message.format = 3; - break; - case "APT": - case 5: - message.format = 5; - break; - case "YUM": - case 6: - message.format = 6; - break; - case "PYTHON": - case 8: - message.format = 8; - break; - } - if (object.description != null) - message.description = String(object.description); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Repository.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Repository.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Repository.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.kmsKeyName != null) - message.kmsKeyName = String(object.kmsKeyName); return message; }; /** - * Creates a plain object from a Repository message. Also converts values to other types if specified. + * Creates a plain object from a GetPythonPackageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @static - * @param {google.devtools.artifactregistry.v1.Repository} message Repository + * @param {google.devtools.artifactregistry.v1.GetPythonPackageRequest} message GetPythonPackageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Repository.toObject = function toObject(message, options) { + GetPythonPackageRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0; - object.description = ""; - object.createTime = null; - object.updateTime = null; - object.kmsKeyName = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.format != null && message.hasOwnProperty("format")) - object.format = options.enums === String ? $root.google.devtools.artifactregistry.v1.Repository.Format[message.format] === undefined ? message.format : $root.google.devtools.artifactregistry.v1.Repository.Format[message.format] : message.format; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) - object.kmsKeyName = message.kmsKeyName; - if (message.mavenConfig != null && message.hasOwnProperty("mavenConfig")) { - object.mavenConfig = $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.toObject(message.mavenConfig, options); - if (options.oneofs) - object.formatConfig = "mavenConfig"; - } return object; }; /** - * Converts this Repository to JSON. + * Converts this GetPythonPackageRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @instance * @returns {Object.} JSON object */ - Repository.prototype.toJSON = function toJSON() { + GetPythonPackageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Repository + * Gets the default type url for GetPythonPackageRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.Repository + * @memberof google.devtools.artifactregistry.v1.GetPythonPackageRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Repository.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPythonPackageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Repository"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetPythonPackageRequest"; }; - Repository.MavenRepositoryConfig = (function() { + return GetPythonPackageRequest; + })(); - /** - * Properties of a MavenRepositoryConfig. - * @memberof google.devtools.artifactregistry.v1.Repository - * @interface IMavenRepositoryConfig - * @property {boolean|null} [allowSnapshotOverwrites] MavenRepositoryConfig allowSnapshotOverwrites - * @property {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy|null} [versionPolicy] MavenRepositoryConfig versionPolicy - */ + v1.Hash = (function() { - /** - * Constructs a new MavenRepositoryConfig. - * @memberof google.devtools.artifactregistry.v1.Repository - * @classdesc Represents a MavenRepositoryConfig. - * @implements IMavenRepositoryConfig - * @constructor - * @param {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig=} [properties] Properties to set - */ - function MavenRepositoryConfig(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]]; - } + /** + * Properties of a Hash. + * @memberof google.devtools.artifactregistry.v1 + * @interface IHash + * @property {google.devtools.artifactregistry.v1.Hash.HashType|null} [type] Hash type + * @property {Uint8Array|null} [value] Hash value + */ - /** - * MavenRepositoryConfig allowSnapshotOverwrites. - * @member {boolean} allowSnapshotOverwrites - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @instance - */ - MavenRepositoryConfig.prototype.allowSnapshotOverwrites = false; + /** + * Constructs a new Hash. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a Hash. + * @implements IHash + * @constructor + * @param {google.devtools.artifactregistry.v1.IHash=} [properties] Properties to set + */ + function Hash(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]]; + } - /** - * MavenRepositoryConfig versionPolicy. - * @member {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy} versionPolicy - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @instance - */ - MavenRepositoryConfig.prototype.versionPolicy = 0; + /** + * Hash type. + * @member {google.devtools.artifactregistry.v1.Hash.HashType} type + * @memberof google.devtools.artifactregistry.v1.Hash + * @instance + */ + Hash.prototype.type = 0; - /** - * Creates a new MavenRepositoryConfig instance using the specified properties. - * @function create - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @static - * @param {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} MavenRepositoryConfig instance - */ - MavenRepositoryConfig.create = function create(properties) { - return new MavenRepositoryConfig(properties); - }; + /** + * Hash value. + * @member {Uint8Array} value + * @memberof google.devtools.artifactregistry.v1.Hash + * @instance + */ + Hash.prototype.value = $util.newBuffer([]); - /** - * Encodes the specified MavenRepositoryConfig message. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify|verify} messages. - * @function encode - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @static - * @param {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig} message MavenRepositoryConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MavenRepositoryConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allowSnapshotOverwrites != null && Object.hasOwnProperty.call(message, "allowSnapshotOverwrites")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.allowSnapshotOverwrites); - if (message.versionPolicy != null && Object.hasOwnProperty.call(message, "versionPolicy")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.versionPolicy); - return writer; - }; + /** + * Creates a new Hash instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.Hash + * @static + * @param {google.devtools.artifactregistry.v1.IHash=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.Hash} Hash instance + */ + Hash.create = function create(properties) { + return new Hash(properties); + }; - /** - * Encodes the specified MavenRepositoryConfig message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @static - * @param {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig} message MavenRepositoryConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MavenRepositoryConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Hash message. Does not implicitly {@link google.devtools.artifactregistry.v1.Hash.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.Hash + * @static + * @param {google.devtools.artifactregistry.v1.IHash} message Hash message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Hash.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + return writer; + }; - /** - * Decodes a MavenRepositoryConfig message from the specified reader or buffer. - * @function decode - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} MavenRepositoryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MavenRepositoryConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.allowSnapshotOverwrites = reader.bool(); - break; - } - case 2: { - message.versionPolicy = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MavenRepositoryConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} MavenRepositoryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MavenRepositoryConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified Hash message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Hash.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.Hash + * @static + * @param {google.devtools.artifactregistry.v1.IHash} message Hash message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Hash.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a MavenRepositoryConfig message. - * @function verify - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MavenRepositoryConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allowSnapshotOverwrites != null && message.hasOwnProperty("allowSnapshotOverwrites")) - if (typeof message.allowSnapshotOverwrites !== "boolean") - return "allowSnapshotOverwrites: boolean expected"; - if (message.versionPolicy != null && message.hasOwnProperty("versionPolicy")) - switch (message.versionPolicy) { - default: - return "versionPolicy: enum value expected"; - case 0: - case 1: - case 2: + /** + * Decodes a Hash message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.Hash + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.Hash} Hash + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Hash.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Hash(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); break; } - return null; - }; - - /** - * Creates a MavenRepositoryConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @static - * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} MavenRepositoryConfig - */ - MavenRepositoryConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig) - return object; - var message = new $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig(); - if (object.allowSnapshotOverwrites != null) - message.allowSnapshotOverwrites = Boolean(object.allowSnapshotOverwrites); - switch (object.versionPolicy) { - default: - if (typeof object.versionPolicy === "number") { - message.versionPolicy = object.versionPolicy; + case 2: { + message.value = reader.bytes(); break; } + default: + reader.skipType(tag & 7); break; - case "VERSION_POLICY_UNSPECIFIED": + } + } + return message; + }; + + /** + * Decodes a Hash message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.Hash + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.Hash} Hash + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Hash.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Hash message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.Hash + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Hash.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; case 0: - message.versionPolicy = 0; - break; - case "RELEASE": case 1: - message.versionPolicy = 1; - break; - case "SNAPSHOT": case 2: - message.versionPolicy = 2; break; } - return message; - }; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; - /** - * Creates a plain object from a MavenRepositoryConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @static - * @param {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} message MavenRepositoryConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MavenRepositoryConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.allowSnapshotOverwrites = false; - object.versionPolicy = options.enums === String ? "VERSION_POLICY_UNSPECIFIED" : 0; - } - if (message.allowSnapshotOverwrites != null && message.hasOwnProperty("allowSnapshotOverwrites")) - object.allowSnapshotOverwrites = message.allowSnapshotOverwrites; - if (message.versionPolicy != null && message.hasOwnProperty("versionPolicy")) - object.versionPolicy = options.enums === String ? $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy[message.versionPolicy] === undefined ? message.versionPolicy : $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy[message.versionPolicy] : message.versionPolicy; + /** + * Creates a Hash message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.Hash + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.Hash} Hash + */ + Hash.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.Hash) return object; - }; + var message = new $root.google.devtools.artifactregistry.v1.Hash(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "HASH_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "SHA256": + case 1: + message.type = 1; + break; + case "MD5": + case 2: + message.type = 2; + break; + } + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + return message; + }; + + /** + * Creates a plain object from a Hash message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.Hash + * @static + * @param {google.devtools.artifactregistry.v1.Hash} message Hash + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Hash.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "HASH_TYPE_UNSPECIFIED" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.devtools.artifactregistry.v1.Hash.HashType[message.type] === undefined ? message.type : $root.google.devtools.artifactregistry.v1.Hash.HashType[message.type] : message.type; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; + }; + + /** + * Converts this Hash to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.Hash + * @instance + * @returns {Object.} JSON object + */ + Hash.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Hash + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.Hash + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Hash.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Hash"; + }; + + /** + * HashType enum. + * @name google.devtools.artifactregistry.v1.Hash.HashType + * @enum {number} + * @property {number} HASH_TYPE_UNSPECIFIED=0 HASH_TYPE_UNSPECIFIED value + * @property {number} SHA256=1 SHA256 value + * @property {number} MD5=2 MD5 value + */ + Hash.HashType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HASH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "SHA256"] = 1; + values[valuesById[2] = "MD5"] = 2; + return values; + })(); + + return Hash; + })(); + + v1.File = (function() { + + /** + * Properties of a File. + * @memberof google.devtools.artifactregistry.v1 + * @interface IFile + * @property {string|null} [name] File name + * @property {number|Long|null} [sizeBytes] File sizeBytes + * @property {Array.|null} [hashes] File hashes + * @property {google.protobuf.ITimestamp|null} [createTime] File createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] File updateTime + * @property {string|null} [owner] File owner + * @property {google.protobuf.ITimestamp|null} [fetchTime] File fetchTime + */ + + /** + * Constructs a new File. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a File. + * @implements IFile + * @constructor + * @param {google.devtools.artifactregistry.v1.IFile=} [properties] Properties to set + */ + function File(properties) { + this.hashes = []; + 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]]; + } + + /** + * File name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.File + * @instance + */ + File.prototype.name = ""; + + /** + * File sizeBytes. + * @member {number|Long} sizeBytes + * @memberof google.devtools.artifactregistry.v1.File + * @instance + */ + File.prototype.sizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * File hashes. + * @member {Array.} hashes + * @memberof google.devtools.artifactregistry.v1.File + * @instance + */ + File.prototype.hashes = $util.emptyArray; + + /** + * File createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.devtools.artifactregistry.v1.File + * @instance + */ + File.prototype.createTime = null; + + /** + * File updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.devtools.artifactregistry.v1.File + * @instance + */ + File.prototype.updateTime = null; + + /** + * File owner. + * @member {string} owner + * @memberof google.devtools.artifactregistry.v1.File + * @instance + */ + File.prototype.owner = ""; + + /** + * File fetchTime. + * @member {google.protobuf.ITimestamp|null|undefined} fetchTime + * @memberof google.devtools.artifactregistry.v1.File + * @instance + */ + File.prototype.fetchTime = null; + + /** + * Creates a new File instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.File + * @static + * @param {google.devtools.artifactregistry.v1.IFile=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.File} File instance + */ + File.create = function create(properties) { + return new File(properties); + }; + + /** + * Encodes the specified File message. Does not implicitly {@link google.devtools.artifactregistry.v1.File.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.File + * @static + * @param {google.devtools.artifactregistry.v1.IFile} message File message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + File.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.sizeBytes != null && Object.hasOwnProperty.call(message, "sizeBytes")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sizeBytes); + if (message.hashes != null && message.hashes.length) + for (var i = 0; i < message.hashes.length; ++i) + $root.google.devtools.artifactregistry.v1.Hash.encode(message.hashes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.owner); + if (message.fetchTime != null && Object.hasOwnProperty.call(message, "fetchTime")) + $root.google.protobuf.Timestamp.encode(message.fetchTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified File message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.File.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.File + * @static + * @param {google.devtools.artifactregistry.v1.IFile} message File message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + File.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a File message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.File + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.File} File + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + File.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.File(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.sizeBytes = reader.int64(); + break; + } + case 4: { + if (!(message.hashes && message.hashes.length)) + message.hashes = []; + message.hashes.push($root.google.devtools.artifactregistry.v1.Hash.decode(reader, reader.uint32())); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.owner = reader.string(); + break; + } + case 8: { + message.fetchTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a File message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.File + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.File} File + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + File.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a File message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.File + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + File.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes")) + if (!$util.isInteger(message.sizeBytes) && !(message.sizeBytes && $util.isInteger(message.sizeBytes.low) && $util.isInteger(message.sizeBytes.high))) + return "sizeBytes: integer|Long expected"; + if (message.hashes != null && message.hasOwnProperty("hashes")) { + if (!Array.isArray(message.hashes)) + return "hashes: array expected"; + for (var i = 0; i < message.hashes.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.Hash.verify(message.hashes[i]); + if (error) + return "hashes." + error; + } + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + if (message.fetchTime != null && message.hasOwnProperty("fetchTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.fetchTime); + if (error) + return "fetchTime." + error; + } + return null; + }; + + /** + * Creates a File message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.File + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.File} File + */ + File.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.File) + return object; + var message = new $root.google.devtools.artifactregistry.v1.File(); + if (object.name != null) + message.name = String(object.name); + if (object.sizeBytes != null) + if ($util.Long) + (message.sizeBytes = $util.Long.fromValue(object.sizeBytes)).unsigned = false; + else if (typeof object.sizeBytes === "string") + message.sizeBytes = parseInt(object.sizeBytes, 10); + else if (typeof object.sizeBytes === "number") + message.sizeBytes = object.sizeBytes; + else if (typeof object.sizeBytes === "object") + message.sizeBytes = new $util.LongBits(object.sizeBytes.low >>> 0, object.sizeBytes.high >>> 0).toNumber(); + if (object.hashes) { + if (!Array.isArray(object.hashes)) + throw TypeError(".google.devtools.artifactregistry.v1.File.hashes: array expected"); + message.hashes = []; + for (var i = 0; i < object.hashes.length; ++i) { + if (typeof object.hashes[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.File.hashes: object expected"); + message.hashes[i] = $root.google.devtools.artifactregistry.v1.Hash.fromObject(object.hashes[i]); + } + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.File.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.File.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.owner != null) + message.owner = String(object.owner); + if (object.fetchTime != null) { + if (typeof object.fetchTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.File.fetchTime: object expected"); + message.fetchTime = $root.google.protobuf.Timestamp.fromObject(object.fetchTime); + } + return message; + }; + + /** + * Creates a plain object from a File message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.File + * @static + * @param {google.devtools.artifactregistry.v1.File} message File + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + File.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.hashes = []; + if (options.defaults) { + object.name = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.sizeBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sizeBytes = options.longs === String ? "0" : 0; + object.createTime = null; + object.updateTime = null; + object.owner = ""; + object.fetchTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes")) + if (typeof message.sizeBytes === "number") + object.sizeBytes = options.longs === String ? String(message.sizeBytes) : message.sizeBytes; + else + object.sizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.sizeBytes) : options.longs === Number ? new $util.LongBits(message.sizeBytes.low >>> 0, message.sizeBytes.high >>> 0).toNumber() : message.sizeBytes; + if (message.hashes && message.hashes.length) { + object.hashes = []; + for (var j = 0; j < message.hashes.length; ++j) + object.hashes[j] = $root.google.devtools.artifactregistry.v1.Hash.toObject(message.hashes[j], options); + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.fetchTime != null && message.hasOwnProperty("fetchTime")) + object.fetchTime = $root.google.protobuf.Timestamp.toObject(message.fetchTime, options); + return object; + }; + + /** + * Converts this File to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.File + * @instance + * @returns {Object.} JSON object + */ + File.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for File + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.File + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + File.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.File"; + }; + + return File; + })(); + + v1.ListFilesRequest = (function() { + + /** + * Properties of a ListFilesRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IListFilesRequest + * @property {string|null} [parent] ListFilesRequest parent + * @property {string|null} [filter] ListFilesRequest filter + * @property {number|null} [pageSize] ListFilesRequest pageSize + * @property {string|null} [pageToken] ListFilesRequest pageToken + * @property {string|null} [orderBy] ListFilesRequest orderBy + */ + + /** + * Constructs a new ListFilesRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a ListFilesRequest. + * @implements IListFilesRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IListFilesRequest=} [properties] Properties to set + */ + function ListFilesRequest(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]]; + } + + /** + * ListFilesRequest parent. + * @member {string} parent + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @instance + */ + ListFilesRequest.prototype.parent = ""; + + /** + * ListFilesRequest filter. + * @member {string} filter + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @instance + */ + ListFilesRequest.prototype.filter = ""; + + /** + * ListFilesRequest pageSize. + * @member {number} pageSize + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @instance + */ + ListFilesRequest.prototype.pageSize = 0; + + /** + * ListFilesRequest pageToken. + * @member {string} pageToken + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @instance + */ + ListFilesRequest.prototype.pageToken = ""; + + /** + * ListFilesRequest orderBy. + * @member {string} orderBy + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @instance + */ + ListFilesRequest.prototype.orderBy = ""; + + /** + * Creates a new ListFilesRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @static + * @param {google.devtools.artifactregistry.v1.IListFilesRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListFilesRequest} ListFilesRequest instance + */ + ListFilesRequest.create = function create(properties) { + return new ListFilesRequest(properties); + }; + + /** + * Encodes the specified ListFilesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @static + * @param {google.devtools.artifactregistry.v1.IListFilesRequest} message ListFilesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFilesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListFilesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @static + * @param {google.devtools.artifactregistry.v1.IListFilesRequest} message ListFilesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFilesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFilesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.ListFilesRequest} ListFilesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFilesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListFilesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFilesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.ListFilesRequest} ListFilesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFilesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFilesRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFilesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListFilesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.ListFilesRequest} ListFilesRequest + */ + ListFilesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListFilesRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.ListFilesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; + + /** + * Creates a plain object from a ListFilesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @static + * @param {google.devtools.artifactregistry.v1.ListFilesRequest} message ListFilesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFilesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListFilesRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @instance + * @returns {Object.} JSON object + */ + ListFilesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListFilesRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.ListFilesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFilesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListFilesRequest"; + }; + + return ListFilesRequest; + })(); + + v1.ListFilesResponse = (function() { + + /** + * Properties of a ListFilesResponse. + * @memberof google.devtools.artifactregistry.v1 + * @interface IListFilesResponse + * @property {Array.|null} [files] ListFilesResponse files + * @property {string|null} [nextPageToken] ListFilesResponse nextPageToken + */ + + /** + * Constructs a new ListFilesResponse. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a ListFilesResponse. + * @implements IListFilesResponse + * @constructor + * @param {google.devtools.artifactregistry.v1.IListFilesResponse=} [properties] Properties to set + */ + function ListFilesResponse(properties) { + this.files = []; + 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]]; + } + + /** + * ListFilesResponse files. + * @member {Array.} files + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @instance + */ + ListFilesResponse.prototype.files = $util.emptyArray; + + /** + * ListFilesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @instance + */ + ListFilesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListFilesResponse instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListFilesResponse=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListFilesResponse} ListFilesResponse instance + */ + ListFilesResponse.create = function create(properties) { + return new ListFilesResponse(properties); + }; + + /** + * Encodes the specified ListFilesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesResponse.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListFilesResponse} message ListFilesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFilesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.files != null && message.files.length) + for (var i = 0; i < message.files.length; ++i) + $root.google.devtools.artifactregistry.v1.File.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListFilesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListFilesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListFilesResponse} message ListFilesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFilesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFilesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.ListFilesResponse} ListFilesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFilesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListFilesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.files && message.files.length)) + message.files = []; + message.files.push($root.google.devtools.artifactregistry.v1.File.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFilesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.ListFilesResponse} ListFilesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFilesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFilesResponse message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFilesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.files != null && message.hasOwnProperty("files")) { + if (!Array.isArray(message.files)) + return "files: array expected"; + for (var i = 0; i < message.files.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.File.verify(message.files[i]); + if (error) + return "files." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListFilesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.ListFilesResponse} ListFilesResponse + */ + ListFilesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListFilesResponse) + return object; + var message = new $root.google.devtools.artifactregistry.v1.ListFilesResponse(); + if (object.files) { + if (!Array.isArray(object.files)) + throw TypeError(".google.devtools.artifactregistry.v1.ListFilesResponse.files: array expected"); + message.files = []; + for (var i = 0; i < object.files.length; ++i) { + if (typeof object.files[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.ListFilesResponse.files: object expected"); + message.files[i] = $root.google.devtools.artifactregistry.v1.File.fromObject(object.files[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListFilesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @static + * @param {google.devtools.artifactregistry.v1.ListFilesResponse} message ListFilesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFilesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.files = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.files && message.files.length) { + object.files = []; + for (var j = 0; j < message.files.length; ++j) + object.files[j] = $root.google.devtools.artifactregistry.v1.File.toObject(message.files[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListFilesResponse to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @instance + * @returns {Object.} JSON object + */ + ListFilesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListFilesResponse + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.ListFilesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFilesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListFilesResponse"; + }; + + return ListFilesResponse; + })(); + + v1.GetFileRequest = (function() { + + /** + * Properties of a GetFileRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IGetFileRequest + * @property {string|null} [name] GetFileRequest name + */ + + /** + * Constructs a new GetFileRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a GetFileRequest. + * @implements IGetFileRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IGetFileRequest=} [properties] Properties to set + */ + function GetFileRequest(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]]; + } + + /** + * GetFileRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @instance + */ + GetFileRequest.prototype.name = ""; + + /** + * Creates a new GetFileRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetFileRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetFileRequest} GetFileRequest instance + */ + GetFileRequest.create = function create(properties) { + return new GetFileRequest(properties); + }; + + /** + * Encodes the specified GetFileRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetFileRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetFileRequest} message GetFileRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFileRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetFileRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetFileRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetFileRequest} message GetFileRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFileRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetFileRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.GetFileRequest} GetFileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFileRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetFileRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetFileRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.GetFileRequest} GetFileRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFileRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetFileRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetFileRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetFileRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.GetFileRequest} GetFileRequest + */ + GetFileRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetFileRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.GetFileRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetFileRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @static + * @param {google.devtools.artifactregistry.v1.GetFileRequest} message GetFileRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFileRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetFileRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @instance + * @returns {Object.} JSON object + */ + GetFileRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetFileRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.GetFileRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFileRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetFileRequest"; + }; + + return GetFileRequest; + })(); + + v1.Package = (function() { + + /** + * Properties of a Package. + * @memberof google.devtools.artifactregistry.v1 + * @interface IPackage + * @property {string|null} [name] Package name + * @property {string|null} [displayName] Package displayName + * @property {google.protobuf.ITimestamp|null} [createTime] Package createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Package updateTime + */ + + /** + * Constructs a new Package. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a Package. + * @implements IPackage + * @constructor + * @param {google.devtools.artifactregistry.v1.IPackage=} [properties] Properties to set + */ + function Package(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]]; + } + + /** + * Package name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.Package + * @instance + */ + Package.prototype.name = ""; + + /** + * Package displayName. + * @member {string} displayName + * @memberof google.devtools.artifactregistry.v1.Package + * @instance + */ + Package.prototype.displayName = ""; + + /** + * Package createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.devtools.artifactregistry.v1.Package + * @instance + */ + Package.prototype.createTime = null; + + /** + * Package updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.devtools.artifactregistry.v1.Package + * @instance + */ + Package.prototype.updateTime = null; + + /** + * Creates a new Package instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.Package + * @static + * @param {google.devtools.artifactregistry.v1.IPackage=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.Package} Package instance + */ + Package.create = function create(properties) { + return new Package(properties); + }; + + /** + * Encodes the specified Package message. Does not implicitly {@link google.devtools.artifactregistry.v1.Package.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.Package + * @static + * @param {google.devtools.artifactregistry.v1.IPackage} message Package message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Package.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Package message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Package.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.Package + * @static + * @param {google.devtools.artifactregistry.v1.IPackage} message Package message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Package.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Package message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.Package + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.Package} Package + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Package.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Package(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Package message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.Package + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.Package} Package + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Package.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Package message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.Package + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Package.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + return null; + }; + + /** + * Creates a Package message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.Package + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.Package} Package + */ + Package.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.Package) + return object; + var message = new $root.google.devtools.artifactregistry.v1.Package(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Package.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Package.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + return message; + }; + + /** + * Creates a plain object from a Package message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.Package + * @static + * @param {google.devtools.artifactregistry.v1.Package} message Package + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Package.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.createTime = null; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + return object; + }; + + /** + * Converts this Package to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.Package + * @instance + * @returns {Object.} JSON object + */ + Package.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Package + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.Package + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Package.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Package"; + }; + + return Package; + })(); + + v1.ListPackagesRequest = (function() { + + /** + * Properties of a ListPackagesRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IListPackagesRequest + * @property {string|null} [parent] ListPackagesRequest parent + * @property {number|null} [pageSize] ListPackagesRequest pageSize + * @property {string|null} [pageToken] ListPackagesRequest pageToken + */ + + /** + * Constructs a new ListPackagesRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a ListPackagesRequest. + * @implements IListPackagesRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IListPackagesRequest=} [properties] Properties to set + */ + function ListPackagesRequest(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]]; + } + + /** + * ListPackagesRequest parent. + * @member {string} parent + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @instance + */ + ListPackagesRequest.prototype.parent = ""; + + /** + * ListPackagesRequest pageSize. + * @member {number} pageSize + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @instance + */ + ListPackagesRequest.prototype.pageSize = 0; + + /** + * ListPackagesRequest pageToken. + * @member {string} pageToken + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @instance + */ + ListPackagesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListPackagesRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @static + * @param {google.devtools.artifactregistry.v1.IListPackagesRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListPackagesRequest} ListPackagesRequest instance + */ + ListPackagesRequest.create = function create(properties) { + return new ListPackagesRequest(properties); + }; + + /** + * Encodes the specified ListPackagesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @static + * @param {google.devtools.artifactregistry.v1.IListPackagesRequest} message ListPackagesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPackagesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListPackagesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @static + * @param {google.devtools.artifactregistry.v1.IListPackagesRequest} message ListPackagesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPackagesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPackagesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.ListPackagesRequest} ListPackagesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPackagesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListPackagesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPackagesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.ListPackagesRequest} ListPackagesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPackagesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPackagesRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPackagesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListPackagesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.ListPackagesRequest} ListPackagesRequest + */ + ListPackagesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListPackagesRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.ListPackagesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListPackagesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @static + * @param {google.devtools.artifactregistry.v1.ListPackagesRequest} message ListPackagesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPackagesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListPackagesRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @instance + * @returns {Object.} JSON object + */ + ListPackagesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPackagesRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.ListPackagesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPackagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListPackagesRequest"; + }; + + return ListPackagesRequest; + })(); + + v1.ListPackagesResponse = (function() { + + /** + * Properties of a ListPackagesResponse. + * @memberof google.devtools.artifactregistry.v1 + * @interface IListPackagesResponse + * @property {Array.|null} [packages] ListPackagesResponse packages + * @property {string|null} [nextPageToken] ListPackagesResponse nextPageToken + */ + + /** + * Constructs a new ListPackagesResponse. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a ListPackagesResponse. + * @implements IListPackagesResponse + * @constructor + * @param {google.devtools.artifactregistry.v1.IListPackagesResponse=} [properties] Properties to set + */ + function ListPackagesResponse(properties) { + this.packages = []; + 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]]; + } + + /** + * ListPackagesResponse packages. + * @member {Array.} packages + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @instance + */ + ListPackagesResponse.prototype.packages = $util.emptyArray; + + /** + * ListPackagesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @instance + */ + ListPackagesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListPackagesResponse instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListPackagesResponse=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListPackagesResponse} ListPackagesResponse instance + */ + ListPackagesResponse.create = function create(properties) { + return new ListPackagesResponse(properties); + }; + + /** + * Encodes the specified ListPackagesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesResponse.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListPackagesResponse} message ListPackagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPackagesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.packages != null && message.packages.length) + for (var i = 0; i < message.packages.length; ++i) + $root.google.devtools.artifactregistry.v1.Package.encode(message.packages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListPackagesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListPackagesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListPackagesResponse} message ListPackagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPackagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPackagesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.ListPackagesResponse} ListPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPackagesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListPackagesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.packages && message.packages.length)) + message.packages = []; + message.packages.push($root.google.devtools.artifactregistry.v1.Package.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPackagesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.ListPackagesResponse} ListPackagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPackagesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPackagesResponse message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPackagesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.packages != null && message.hasOwnProperty("packages")) { + if (!Array.isArray(message.packages)) + return "packages: array expected"; + for (var i = 0; i < message.packages.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.Package.verify(message.packages[i]); + if (error) + return "packages." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListPackagesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.ListPackagesResponse} ListPackagesResponse + */ + ListPackagesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListPackagesResponse) + return object; + var message = new $root.google.devtools.artifactregistry.v1.ListPackagesResponse(); + if (object.packages) { + if (!Array.isArray(object.packages)) + throw TypeError(".google.devtools.artifactregistry.v1.ListPackagesResponse.packages: array expected"); + message.packages = []; + for (var i = 0; i < object.packages.length; ++i) { + if (typeof object.packages[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.ListPackagesResponse.packages: object expected"); + message.packages[i] = $root.google.devtools.artifactregistry.v1.Package.fromObject(object.packages[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListPackagesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @static + * @param {google.devtools.artifactregistry.v1.ListPackagesResponse} message ListPackagesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPackagesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.packages = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.packages && message.packages.length) { + object.packages = []; + for (var j = 0; j < message.packages.length; ++j) + object.packages[j] = $root.google.devtools.artifactregistry.v1.Package.toObject(message.packages[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListPackagesResponse to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @instance + * @returns {Object.} JSON object + */ + ListPackagesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPackagesResponse + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.ListPackagesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPackagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListPackagesResponse"; + }; + + return ListPackagesResponse; + })(); + + v1.GetPackageRequest = (function() { + + /** + * Properties of a GetPackageRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IGetPackageRequest + * @property {string|null} [name] GetPackageRequest name + */ + + /** + * Constructs a new GetPackageRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a GetPackageRequest. + * @implements IGetPackageRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IGetPackageRequest=} [properties] Properties to set + */ + function GetPackageRequest(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]]; + } + + /** + * GetPackageRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @instance + */ + GetPackageRequest.prototype.name = ""; + + /** + * Creates a new GetPackageRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetPackageRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetPackageRequest} GetPackageRequest instance + */ + GetPackageRequest.create = function create(properties) { + return new GetPackageRequest(properties); + }; + + /** + * Encodes the specified GetPackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPackageRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetPackageRequest} message GetPackageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPackageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetPackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetPackageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetPackageRequest} message GetPackageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPackageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetPackageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.GetPackageRequest} GetPackageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPackageRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetPackageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetPackageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.GetPackageRequest} GetPackageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPackageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetPackageRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetPackageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetPackageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.GetPackageRequest} GetPackageRequest + */ + GetPackageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetPackageRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.GetPackageRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetPackageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @static + * @param {google.devtools.artifactregistry.v1.GetPackageRequest} message GetPackageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetPackageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetPackageRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @instance + * @returns {Object.} JSON object + */ + GetPackageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetPackageRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.GetPackageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetPackageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetPackageRequest"; + }; + + return GetPackageRequest; + })(); + + v1.DeletePackageRequest = (function() { + + /** + * Properties of a DeletePackageRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IDeletePackageRequest + * @property {string|null} [name] DeletePackageRequest name + */ + + /** + * Constructs a new DeletePackageRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a DeletePackageRequest. + * @implements IDeletePackageRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest=} [properties] Properties to set + */ + function DeletePackageRequest(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]]; + } + + /** + * DeletePackageRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @instance + */ + DeletePackageRequest.prototype.name = ""; + + /** + * Creates a new DeletePackageRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @static + * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.DeletePackageRequest} DeletePackageRequest instance + */ + DeletePackageRequest.create = function create(properties) { + return new DeletePackageRequest(properties); + }; + + /** + * Encodes the specified DeletePackageRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeletePackageRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @static + * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest} message DeletePackageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePackageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeletePackageRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeletePackageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @static + * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest} message DeletePackageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePackageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeletePackageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.DeletePackageRequest} DeletePackageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePackageRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.DeletePackageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeletePackageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.DeletePackageRequest} DeletePackageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePackageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeletePackageRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeletePackageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeletePackageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.DeletePackageRequest} DeletePackageRequest + */ + DeletePackageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.DeletePackageRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.DeletePackageRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeletePackageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @static + * @param {google.devtools.artifactregistry.v1.DeletePackageRequest} message DeletePackageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeletePackageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeletePackageRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @instance + * @returns {Object.} JSON object + */ + DeletePackageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeletePackageRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.DeletePackageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeletePackageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.DeletePackageRequest"; + }; + + return DeletePackageRequest; + })(); + + v1.Repository = (function() { + + /** + * Properties of a Repository. + * @memberof google.devtools.artifactregistry.v1 + * @interface IRepository + * @property {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig|null} [mavenConfig] Repository mavenConfig + * @property {string|null} [name] Repository name + * @property {google.devtools.artifactregistry.v1.Repository.Format|null} [format] Repository format + * @property {string|null} [description] Repository description + * @property {Object.|null} [labels] Repository labels + * @property {google.protobuf.ITimestamp|null} [createTime] Repository createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Repository updateTime + * @property {string|null} [kmsKeyName] Repository kmsKeyName + */ + + /** + * Constructs a new Repository. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a Repository. + * @implements IRepository + * @constructor + * @param {google.devtools.artifactregistry.v1.IRepository=} [properties] Properties to set + */ + function Repository(properties) { + this.labels = {}; + 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]]; + } + + /** + * Repository mavenConfig. + * @member {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig|null|undefined} mavenConfig + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + */ + Repository.prototype.mavenConfig = null; + + /** + * Repository name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + */ + Repository.prototype.name = ""; + + /** + * Repository format. + * @member {google.devtools.artifactregistry.v1.Repository.Format} format + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + */ + Repository.prototype.format = 0; + + /** + * Repository description. + * @member {string} description + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + */ + Repository.prototype.description = ""; + + /** + * Repository labels. + * @member {Object.} labels + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + */ + Repository.prototype.labels = $util.emptyObject; + + /** + * Repository createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + */ + Repository.prototype.createTime = null; + + /** + * Repository updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + */ + Repository.prototype.updateTime = null; + + /** + * Repository kmsKeyName. + * @member {string} kmsKeyName + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + */ + Repository.prototype.kmsKeyName = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Repository formatConfig. + * @member {"mavenConfig"|undefined} formatConfig + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + */ + Object.defineProperty(Repository.prototype, "formatConfig", { + get: $util.oneOfGetter($oneOfFields = ["mavenConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Repository instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.Repository + * @static + * @param {google.devtools.artifactregistry.v1.IRepository=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.Repository} Repository instance + */ + Repository.create = function create(properties) { + return new Repository(properties); + }; + + /** + * Encodes the specified Repository message. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.Repository + * @static + * @param {google.devtools.artifactregistry.v1.IRepository} message Repository message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Repository.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.format != null && Object.hasOwnProperty.call(message, "format")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.format); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.kmsKeyName); + if (message.mavenConfig != null && Object.hasOwnProperty.call(message, "mavenConfig")) + $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.encode(message.mavenConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Repository message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.Repository + * @static + * @param {google.devtools.artifactregistry.v1.IRepository} message Repository message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Repository.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Repository message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.Repository + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.Repository} Repository + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Repository.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Repository(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + message.mavenConfig = $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.decode(reader, reader.uint32()); + break; + } + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.format = reader.int32(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.kmsKeyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Repository message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.Repository + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.Repository} Repository + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Repository.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Repository message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.Repository + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Repository.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.mavenConfig != null && message.hasOwnProperty("mavenConfig")) { + properties.formatConfig = 1; + { + var error = $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify(message.mavenConfig); + if (error) + return "mavenConfig." + error; + } + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.format != null && message.hasOwnProperty("format")) + switch (message.format) { + default: + return "format: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 5: + case 6: + case 8: + break; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) + if (!$util.isString(message.kmsKeyName)) + return "kmsKeyName: string expected"; + return null; + }; + + /** + * Creates a Repository message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.Repository + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.Repository} Repository + */ + Repository.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.Repository) + return object; + var message = new $root.google.devtools.artifactregistry.v1.Repository(); + if (object.mavenConfig != null) { + if (typeof object.mavenConfig !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Repository.mavenConfig: object expected"); + message.mavenConfig = $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.fromObject(object.mavenConfig); + } + if (object.name != null) + message.name = String(object.name); + switch (object.format) { + default: + if (typeof object.format === "number") { + message.format = object.format; + break; + } + break; + case "FORMAT_UNSPECIFIED": + case 0: + message.format = 0; + break; + case "DOCKER": + case 1: + message.format = 1; + break; + case "MAVEN": + case 2: + message.format = 2; + break; + case "NPM": + case 3: + message.format = 3; + break; + case "APT": + case 5: + message.format = 5; + break; + case "YUM": + case 6: + message.format = 6; + break; + case "PYTHON": + case 8: + message.format = 8; + break; + } + if (object.description != null) + message.description = String(object.description); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Repository.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Repository.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Repository.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.kmsKeyName != null) + message.kmsKeyName = String(object.kmsKeyName); + return message; + }; + + /** + * Creates a plain object from a Repository message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.Repository + * @static + * @param {google.devtools.artifactregistry.v1.Repository} message Repository + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Repository.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0; + object.description = ""; + object.createTime = null; + object.updateTime = null; + object.kmsKeyName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.format != null && message.hasOwnProperty("format")) + object.format = options.enums === String ? $root.google.devtools.artifactregistry.v1.Repository.Format[message.format] === undefined ? message.format : $root.google.devtools.artifactregistry.v1.Repository.Format[message.format] : message.format; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) + object.kmsKeyName = message.kmsKeyName; + if (message.mavenConfig != null && message.hasOwnProperty("mavenConfig")) { + object.mavenConfig = $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.toObject(message.mavenConfig, options); + if (options.oneofs) + object.formatConfig = "mavenConfig"; + } + return object; + }; + + /** + * Converts this Repository to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.Repository + * @instance + * @returns {Object.} JSON object + */ + Repository.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Repository + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.Repository + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Repository.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Repository"; + }; + + Repository.MavenRepositoryConfig = (function() { + + /** + * Properties of a MavenRepositoryConfig. + * @memberof google.devtools.artifactregistry.v1.Repository + * @interface IMavenRepositoryConfig + * @property {boolean|null} [allowSnapshotOverwrites] MavenRepositoryConfig allowSnapshotOverwrites + * @property {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy|null} [versionPolicy] MavenRepositoryConfig versionPolicy + */ + + /** + * Constructs a new MavenRepositoryConfig. + * @memberof google.devtools.artifactregistry.v1.Repository + * @classdesc Represents a MavenRepositoryConfig. + * @implements IMavenRepositoryConfig + * @constructor + * @param {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig=} [properties] Properties to set + */ + function MavenRepositoryConfig(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]]; + } + + /** + * MavenRepositoryConfig allowSnapshotOverwrites. + * @member {boolean} allowSnapshotOverwrites + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @instance + */ + MavenRepositoryConfig.prototype.allowSnapshotOverwrites = false; + + /** + * MavenRepositoryConfig versionPolicy. + * @member {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy} versionPolicy + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @instance + */ + MavenRepositoryConfig.prototype.versionPolicy = 0; + + /** + * Creates a new MavenRepositoryConfig instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @static + * @param {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} MavenRepositoryConfig instance + */ + MavenRepositoryConfig.create = function create(properties) { + return new MavenRepositoryConfig(properties); + }; + + /** + * Encodes the specified MavenRepositoryConfig message. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @static + * @param {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig} message MavenRepositoryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MavenRepositoryConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowSnapshotOverwrites != null && Object.hasOwnProperty.call(message, "allowSnapshotOverwrites")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.allowSnapshotOverwrites); + if (message.versionPolicy != null && Object.hasOwnProperty.call(message, "versionPolicy")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.versionPolicy); + return writer; + }; + + /** + * Encodes the specified MavenRepositoryConfig message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @static + * @param {google.devtools.artifactregistry.v1.Repository.IMavenRepositoryConfig} message MavenRepositoryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MavenRepositoryConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MavenRepositoryConfig message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} MavenRepositoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MavenRepositoryConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.allowSnapshotOverwrites = reader.bool(); + break; + } + case 2: { + message.versionPolicy = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MavenRepositoryConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} MavenRepositoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MavenRepositoryConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MavenRepositoryConfig message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MavenRepositoryConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowSnapshotOverwrites != null && message.hasOwnProperty("allowSnapshotOverwrites")) + if (typeof message.allowSnapshotOverwrites !== "boolean") + return "allowSnapshotOverwrites: boolean expected"; + if (message.versionPolicy != null && message.hasOwnProperty("versionPolicy")) + switch (message.versionPolicy) { + default: + return "versionPolicy: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a MavenRepositoryConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} MavenRepositoryConfig + */ + MavenRepositoryConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig) + return object; + var message = new $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig(); + if (object.allowSnapshotOverwrites != null) + message.allowSnapshotOverwrites = Boolean(object.allowSnapshotOverwrites); + switch (object.versionPolicy) { + default: + if (typeof object.versionPolicy === "number") { + message.versionPolicy = object.versionPolicy; + break; + } + break; + case "VERSION_POLICY_UNSPECIFIED": + case 0: + message.versionPolicy = 0; + break; + case "RELEASE": + case 1: + message.versionPolicy = 1; + break; + case "SNAPSHOT": + case 2: + message.versionPolicy = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a MavenRepositoryConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @static + * @param {google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig} message MavenRepositoryConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MavenRepositoryConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.allowSnapshotOverwrites = false; + object.versionPolicy = options.enums === String ? "VERSION_POLICY_UNSPECIFIED" : 0; + } + if (message.allowSnapshotOverwrites != null && message.hasOwnProperty("allowSnapshotOverwrites")) + object.allowSnapshotOverwrites = message.allowSnapshotOverwrites; + if (message.versionPolicy != null && message.hasOwnProperty("versionPolicy")) + object.versionPolicy = options.enums === String ? $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy[message.versionPolicy] === undefined ? message.versionPolicy : $root.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy[message.versionPolicy] : message.versionPolicy; + return object; + }; + + /** + * Converts this MavenRepositoryConfig to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @instance + * @returns {Object.} JSON object + */ + MavenRepositoryConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MavenRepositoryConfig + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MavenRepositoryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig"; + }; + + /** + * VersionPolicy enum. + * @name google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy + * @enum {number} + * @property {number} VERSION_POLICY_UNSPECIFIED=0 VERSION_POLICY_UNSPECIFIED value + * @property {number} RELEASE=1 RELEASE value + * @property {number} SNAPSHOT=2 SNAPSHOT value + */ + MavenRepositoryConfig.VersionPolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VERSION_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "RELEASE"] = 1; + values[valuesById[2] = "SNAPSHOT"] = 2; + return values; + })(); + + return MavenRepositoryConfig; + })(); + + /** + * Format enum. + * @name google.devtools.artifactregistry.v1.Repository.Format + * @enum {number} + * @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value + * @property {number} DOCKER=1 DOCKER value + * @property {number} MAVEN=2 MAVEN value + * @property {number} NPM=3 NPM value + * @property {number} APT=5 APT value + * @property {number} YUM=6 YUM value + * @property {number} PYTHON=8 PYTHON value + */ + Repository.Format = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "DOCKER"] = 1; + values[valuesById[2] = "MAVEN"] = 2; + values[valuesById[3] = "NPM"] = 3; + values[valuesById[5] = "APT"] = 5; + values[valuesById[6] = "YUM"] = 6; + values[valuesById[8] = "PYTHON"] = 8; + return values; + })(); + + return Repository; + })(); + + v1.ListRepositoriesRequest = (function() { + + /** + * Properties of a ListRepositoriesRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IListRepositoriesRequest + * @property {string|null} [parent] ListRepositoriesRequest parent + * @property {number|null} [pageSize] ListRepositoriesRequest pageSize + * @property {string|null} [pageToken] ListRepositoriesRequest pageToken + */ + + /** + * Constructs a new ListRepositoriesRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a ListRepositoriesRequest. + * @implements IListRepositoriesRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest=} [properties] Properties to set + */ + function ListRepositoriesRequest(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]]; + } + + /** + * ListRepositoriesRequest parent. + * @member {string} parent + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @instance + */ + ListRepositoriesRequest.prototype.parent = ""; + + /** + * ListRepositoriesRequest pageSize. + * @member {number} pageSize + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @instance + */ + ListRepositoriesRequest.prototype.pageSize = 0; + + /** + * ListRepositoriesRequest pageToken. + * @member {string} pageToken + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @instance + */ + ListRepositoriesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListRepositoriesRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @static + * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListRepositoriesRequest} ListRepositoriesRequest instance + */ + ListRepositoriesRequest.create = function create(properties) { + return new ListRepositoriesRequest(properties); + }; + + /** + * Encodes the specified ListRepositoriesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @static + * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest} message ListRepositoriesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRepositoriesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListRepositoriesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @static + * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest} message ListRepositoriesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRepositoriesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRepositoriesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.ListRepositoriesRequest} ListRepositoriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRepositoriesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListRepositoriesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRepositoriesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.ListRepositoriesRequest} ListRepositoriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRepositoriesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRepositoriesRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRepositoriesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListRepositoriesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.ListRepositoriesRequest} ListRepositoriesRequest + */ + ListRepositoriesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListRepositoriesRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.ListRepositoriesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListRepositoriesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @static + * @param {google.devtools.artifactregistry.v1.ListRepositoriesRequest} message ListRepositoriesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRepositoriesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListRepositoriesRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @instance + * @returns {Object.} JSON object + */ + ListRepositoriesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRepositoriesRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRepositoriesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListRepositoriesRequest"; + }; + + return ListRepositoriesRequest; + })(); + + v1.ListRepositoriesResponse = (function() { + + /** + * Properties of a ListRepositoriesResponse. + * @memberof google.devtools.artifactregistry.v1 + * @interface IListRepositoriesResponse + * @property {Array.|null} [repositories] ListRepositoriesResponse repositories + * @property {string|null} [nextPageToken] ListRepositoriesResponse nextPageToken + */ + + /** + * Constructs a new ListRepositoriesResponse. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a ListRepositoriesResponse. + * @implements IListRepositoriesResponse + * @constructor + * @param {google.devtools.artifactregistry.v1.IListRepositoriesResponse=} [properties] Properties to set + */ + function ListRepositoriesResponse(properties) { + this.repositories = []; + 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]]; + } + + /** + * ListRepositoriesResponse repositories. + * @member {Array.} repositories + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @instance + */ + ListRepositoriesResponse.prototype.repositories = $util.emptyArray; + + /** + * ListRepositoriesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @instance + */ + ListRepositoriesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListRepositoriesResponse instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListRepositoriesResponse=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListRepositoriesResponse} ListRepositoriesResponse instance + */ + ListRepositoriesResponse.create = function create(properties) { + return new ListRepositoriesResponse(properties); + }; + + /** + * Encodes the specified ListRepositoriesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesResponse.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListRepositoriesResponse} message ListRepositoriesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRepositoriesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.repositories != null && message.repositories.length) + for (var i = 0; i < message.repositories.length; ++i) + $root.google.devtools.artifactregistry.v1.Repository.encode(message.repositories[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListRepositoriesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @static + * @param {google.devtools.artifactregistry.v1.IListRepositoriesResponse} message ListRepositoriesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRepositoriesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRepositoriesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.ListRepositoriesResponse} ListRepositoriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRepositoriesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListRepositoriesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.repositories && message.repositories.length)) + message.repositories = []; + message.repositories.push($root.google.devtools.artifactregistry.v1.Repository.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRepositoriesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.ListRepositoriesResponse} ListRepositoriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRepositoriesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRepositoriesResponse message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRepositoriesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.repositories != null && message.hasOwnProperty("repositories")) { + if (!Array.isArray(message.repositories)) + return "repositories: array expected"; + for (var i = 0; i < message.repositories.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.Repository.verify(message.repositories[i]); + if (error) + return "repositories." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListRepositoriesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.ListRepositoriesResponse} ListRepositoriesResponse + */ + ListRepositoriesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListRepositoriesResponse) + return object; + var message = new $root.google.devtools.artifactregistry.v1.ListRepositoriesResponse(); + if (object.repositories) { + if (!Array.isArray(object.repositories)) + throw TypeError(".google.devtools.artifactregistry.v1.ListRepositoriesResponse.repositories: array expected"); + message.repositories = []; + for (var i = 0; i < object.repositories.length; ++i) { + if (typeof object.repositories[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.ListRepositoriesResponse.repositories: object expected"); + message.repositories[i] = $root.google.devtools.artifactregistry.v1.Repository.fromObject(object.repositories[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListRepositoriesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @static + * @param {google.devtools.artifactregistry.v1.ListRepositoriesResponse} message ListRepositoriesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRepositoriesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.repositories = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.repositories && message.repositories.length) { + object.repositories = []; + for (var j = 0; j < message.repositories.length; ++j) + object.repositories[j] = $root.google.devtools.artifactregistry.v1.Repository.toObject(message.repositories[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListRepositoriesResponse to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @instance + * @returns {Object.} JSON object + */ + ListRepositoriesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRepositoriesResponse + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRepositoriesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListRepositoriesResponse"; + }; + + return ListRepositoriesResponse; + })(); + + v1.GetRepositoryRequest = (function() { + + /** + * Properties of a GetRepositoryRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IGetRepositoryRequest + * @property {string|null} [name] GetRepositoryRequest name + */ + + /** + * Constructs a new GetRepositoryRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a GetRepositoryRequest. + * @implements IGetRepositoryRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest=} [properties] Properties to set + */ + function GetRepositoryRequest(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]]; + } + + /** + * GetRepositoryRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @instance + */ + GetRepositoryRequest.prototype.name = ""; + + /** + * Creates a new GetRepositoryRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetRepositoryRequest} GetRepositoryRequest instance + */ + GetRepositoryRequest.create = function create(properties) { + return new GetRepositoryRequest(properties); + }; + + /** + * Encodes the specified GetRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetRepositoryRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest} message GetRepositoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRepositoryRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetRepositoryRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest} message GetRepositoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRepositoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRepositoryRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.GetRepositoryRequest} GetRepositoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRepositoryRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetRepositoryRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRepositoryRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.GetRepositoryRequest} GetRepositoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRepositoryRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRepositoryRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRepositoryRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.GetRepositoryRequest} GetRepositoryRequest + */ + GetRepositoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetRepositoryRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.GetRepositoryRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetRepositoryRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @static + * @param {google.devtools.artifactregistry.v1.GetRepositoryRequest} message GetRepositoryRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRepositoryRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetRepositoryRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @instance + * @returns {Object.} JSON object + */ + GetRepositoryRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRepositoryRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRepositoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetRepositoryRequest"; + }; + + return GetRepositoryRequest; + })(); + + v1.CreateRepositoryRequest = (function() { + + /** + * Properties of a CreateRepositoryRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface ICreateRepositoryRequest + * @property {string|null} [parent] CreateRepositoryRequest parent + * @property {string|null} [repositoryId] CreateRepositoryRequest repositoryId + * @property {google.devtools.artifactregistry.v1.IRepository|null} [repository] CreateRepositoryRequest repository + */ + + /** + * Constructs a new CreateRepositoryRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a CreateRepositoryRequest. + * @implements ICreateRepositoryRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest=} [properties] Properties to set + */ + function CreateRepositoryRequest(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]]; + } + + /** + * CreateRepositoryRequest parent. + * @member {string} parent + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @instance + */ + CreateRepositoryRequest.prototype.parent = ""; + + /** + * CreateRepositoryRequest repositoryId. + * @member {string} repositoryId + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @instance + */ + CreateRepositoryRequest.prototype.repositoryId = ""; + + /** + * CreateRepositoryRequest repository. + * @member {google.devtools.artifactregistry.v1.IRepository|null|undefined} repository + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @instance + */ + CreateRepositoryRequest.prototype.repository = null; + + /** + * Creates a new CreateRepositoryRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @static + * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.CreateRepositoryRequest} CreateRepositoryRequest instance + */ + CreateRepositoryRequest.create = function create(properties) { + return new CreateRepositoryRequest(properties); + }; + + /** + * Encodes the specified CreateRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateRepositoryRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @static + * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest} message CreateRepositoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateRepositoryRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.repositoryId != null && Object.hasOwnProperty.call(message, "repositoryId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.repositoryId); + if (message.repository != null && Object.hasOwnProperty.call(message, "repository")) + $root.google.devtools.artifactregistry.v1.Repository.encode(message.repository, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateRepositoryRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @static + * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest} message CreateRepositoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateRepositoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateRepositoryRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.CreateRepositoryRequest} CreateRepositoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateRepositoryRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.CreateRepositoryRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.repositoryId = reader.string(); + break; + } + case 3: { + message.repository = $root.google.devtools.artifactregistry.v1.Repository.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateRepositoryRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.CreateRepositoryRequest} CreateRepositoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateRepositoryRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this MavenRepositoryConfig to JSON. - * @function toJSON - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @instance - * @returns {Object.} JSON object - */ - MavenRepositoryConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a CreateRepositoryRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateRepositoryRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.repositoryId != null && message.hasOwnProperty("repositoryId")) + if (!$util.isString(message.repositoryId)) + return "repositoryId: string expected"; + if (message.repository != null && message.hasOwnProperty("repository")) { + var error = $root.google.devtools.artifactregistry.v1.Repository.verify(message.repository); + if (error) + return "repository." + error; + } + return null; + }; - /** - * Gets the default type url for MavenRepositoryConfig - * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MavenRepositoryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig"; - }; + /** + * Creates a CreateRepositoryRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.CreateRepositoryRequest} CreateRepositoryRequest + */ + CreateRepositoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.CreateRepositoryRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.CreateRepositoryRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.repositoryId != null) + message.repositoryId = String(object.repositoryId); + if (object.repository != null) { + if (typeof object.repository !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.CreateRepositoryRequest.repository: object expected"); + message.repository = $root.google.devtools.artifactregistry.v1.Repository.fromObject(object.repository); + } + return message; + }; - /** - * VersionPolicy enum. - * @name google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy - * @enum {number} - * @property {number} VERSION_POLICY_UNSPECIFIED=0 VERSION_POLICY_UNSPECIFIED value - * @property {number} RELEASE=1 RELEASE value - * @property {number} SNAPSHOT=2 SNAPSHOT value - */ - MavenRepositoryConfig.VersionPolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VERSION_POLICY_UNSPECIFIED"] = 0; - values[valuesById[1] = "RELEASE"] = 1; - values[valuesById[2] = "SNAPSHOT"] = 2; - return values; - })(); + /** + * Creates a plain object from a CreateRepositoryRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @static + * @param {google.devtools.artifactregistry.v1.CreateRepositoryRequest} message CreateRepositoryRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateRepositoryRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.repositoryId = ""; + object.repository = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.repositoryId != null && message.hasOwnProperty("repositoryId")) + object.repositoryId = message.repositoryId; + if (message.repository != null && message.hasOwnProperty("repository")) + object.repository = $root.google.devtools.artifactregistry.v1.Repository.toObject(message.repository, options); + return object; + }; - return MavenRepositoryConfig; - })(); + /** + * Converts this CreateRepositoryRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @instance + * @returns {Object.} JSON object + */ + CreateRepositoryRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Format enum. - * @name google.devtools.artifactregistry.v1.Repository.Format - * @enum {number} - * @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value - * @property {number} DOCKER=1 DOCKER value - * @property {number} MAVEN=2 MAVEN value - * @property {number} NPM=3 NPM value - * @property {number} APT=5 APT value - * @property {number} YUM=6 YUM value - * @property {number} PYTHON=8 PYTHON value + * Gets the default type url for CreateRepositoryRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Repository.Format = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0; - values[valuesById[1] = "DOCKER"] = 1; - values[valuesById[2] = "MAVEN"] = 2; - values[valuesById[3] = "NPM"] = 3; - values[valuesById[5] = "APT"] = 5; - values[valuesById[6] = "YUM"] = 6; - values[valuesById[8] = "PYTHON"] = 8; - return values; - })(); + CreateRepositoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.CreateRepositoryRequest"; + }; - return Repository; + return CreateRepositoryRequest; })(); - v1.ListRepositoriesRequest = (function() { + v1.UpdateRepositoryRequest = (function() { /** - * Properties of a ListRepositoriesRequest. + * Properties of an UpdateRepositoryRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IListRepositoriesRequest - * @property {string|null} [parent] ListRepositoriesRequest parent - * @property {number|null} [pageSize] ListRepositoriesRequest pageSize - * @property {string|null} [pageToken] ListRepositoriesRequest pageToken + * @interface IUpdateRepositoryRequest + * @property {google.devtools.artifactregistry.v1.IRepository|null} [repository] UpdateRepositoryRequest repository + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateRepositoryRequest updateMask */ /** - * Constructs a new ListRepositoriesRequest. + * Constructs a new UpdateRepositoryRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListRepositoriesRequest. - * @implements IListRepositoriesRequest + * @classdesc Represents an UpdateRepositoryRequest. + * @implements IUpdateRepositoryRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest=} [properties] Properties to set */ - function ListRepositoriesRequest(properties) { + function UpdateRepositoryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6085,103 +10249,89 @@ } /** - * ListRepositoriesRequest parent. - * @member {string} parent - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest - * @instance - */ - ListRepositoriesRequest.prototype.parent = ""; - - /** - * ListRepositoriesRequest pageSize. - * @member {number} pageSize - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * UpdateRepositoryRequest repository. + * @member {google.devtools.artifactregistry.v1.IRepository|null|undefined} repository + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @instance */ - ListRepositoriesRequest.prototype.pageSize = 0; + UpdateRepositoryRequest.prototype.repository = null; /** - * ListRepositoriesRequest pageToken. - * @member {string} pageToken - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * UpdateRepositoryRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @instance */ - ListRepositoriesRequest.prototype.pageToken = ""; + UpdateRepositoryRequest.prototype.updateMask = null; /** - * Creates a new ListRepositoriesRequest instance using the specified properties. + * Creates a new UpdateRepositoryRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @static - * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListRepositoriesRequest} ListRepositoriesRequest instance + * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} UpdateRepositoryRequest instance */ - ListRepositoriesRequest.create = function create(properties) { - return new ListRepositoriesRequest(properties); + UpdateRepositoryRequest.create = function create(properties) { + return new UpdateRepositoryRequest(properties); }; /** - * Encodes the specified ListRepositoriesRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesRequest.verify|verify} messages. + * Encodes the specified UpdateRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateRepositoryRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @static - * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest} message ListRepositoriesRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest} message UpdateRepositoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRepositoriesRequest.encode = function encode(message, writer) { + UpdateRepositoryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.repository != null && Object.hasOwnProperty.call(message, "repository")) + $root.google.devtools.artifactregistry.v1.Repository.encode(message.repository, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListRepositoriesRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesRequest.verify|verify} messages. + * Encodes the specified UpdateRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateRepositoryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @static - * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest} message ListRepositoriesRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest} message UpdateRepositoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRepositoriesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateRepositoryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRepositoriesRequest message from the specified reader or buffer. + * Decodes an UpdateRepositoryRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListRepositoriesRequest} ListRepositoriesRequest + * @returns {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} UpdateRepositoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRepositoriesRequest.decode = function decode(reader, length) { + UpdateRepositoryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListRepositoriesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.UpdateRepositoryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.repository = $root.google.devtools.artifactregistry.v1.Repository.decode(reader, reader.uint32()); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -6193,141 +10343,141 @@ }; /** - * Decodes a ListRepositoriesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateRepositoryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListRepositoriesRequest} ListRepositoriesRequest + * @returns {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} UpdateRepositoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRepositoriesRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateRepositoryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRepositoriesRequest message. + * Verifies an UpdateRepositoryRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRepositoriesRequest.verify = function verify(message) { + UpdateRepositoryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.repository != null && message.hasOwnProperty("repository")) { + var error = $root.google.devtools.artifactregistry.v1.Repository.verify(message.repository); + if (error) + return "repository." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a ListRepositoriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateRepositoryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListRepositoriesRequest} ListRepositoriesRequest + * @returns {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} UpdateRepositoryRequest */ - ListRepositoriesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListRepositoriesRequest) + UpdateRepositoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.UpdateRepositoryRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.ListRepositoriesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.devtools.artifactregistry.v1.UpdateRepositoryRequest(); + if (object.repository != null) { + if (typeof object.repository !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.UpdateRepositoryRequest.repository: object expected"); + message.repository = $root.google.devtools.artifactregistry.v1.Repository.fromObject(object.repository); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.UpdateRepositoryRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a ListRepositoriesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateRepositoryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @static - * @param {google.devtools.artifactregistry.v1.ListRepositoriesRequest} message ListRepositoriesRequest + * @param {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} message UpdateRepositoryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRepositoriesRequest.toObject = function toObject(message, options) { + UpdateRepositoryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.repository = null; + object.updateMask = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.repository != null && message.hasOwnProperty("repository")) + object.repository = $root.google.devtools.artifactregistry.v1.Repository.toObject(message.repository, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListRepositoriesRequest to JSON. + * Converts this UpdateRepositoryRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @instance * @returns {Object.} JSON object */ - ListRepositoriesRequest.prototype.toJSON = function toJSON() { + UpdateRepositoryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRepositoriesRequest + * Gets the default type url for UpdateRepositoryRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesRequest + * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRepositoriesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateRepositoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListRepositoriesRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.UpdateRepositoryRequest"; }; - return ListRepositoriesRequest; + return UpdateRepositoryRequest; })(); - v1.ListRepositoriesResponse = (function() { + v1.DeleteRepositoryRequest = (function() { /** - * Properties of a ListRepositoriesResponse. + * Properties of a DeleteRepositoryRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IListRepositoriesResponse - * @property {Array.|null} [repositories] ListRepositoriesResponse repositories - * @property {string|null} [nextPageToken] ListRepositoriesResponse nextPageToken + * @interface IDeleteRepositoryRequest + * @property {string|null} [name] DeleteRepositoryRequest name */ /** - * Constructs a new ListRepositoriesResponse. + * Constructs a new DeleteRepositoryRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListRepositoriesResponse. - * @implements IListRepositoriesResponse + * @classdesc Represents a DeleteRepositoryRequest. + * @implements IDeleteRepositoryRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IListRepositoriesResponse=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest=} [properties] Properties to set */ - function ListRepositoriesResponse(properties) { - this.repositories = []; + function DeleteRepositoryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6335,92 +10485,75 @@ } /** - * ListRepositoriesResponse repositories. - * @member {Array.} repositories - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse - * @instance - */ - ListRepositoriesResponse.prototype.repositories = $util.emptyArray; - - /** - * ListRepositoriesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * DeleteRepositoryRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @instance */ - ListRepositoriesResponse.prototype.nextPageToken = ""; + DeleteRepositoryRequest.prototype.name = ""; /** - * Creates a new ListRepositoriesResponse instance using the specified properties. + * Creates a new DeleteRepositoryRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @static - * @param {google.devtools.artifactregistry.v1.IListRepositoriesResponse=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListRepositoriesResponse} ListRepositoriesResponse instance + * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} DeleteRepositoryRequest instance */ - ListRepositoriesResponse.create = function create(properties) { - return new ListRepositoriesResponse(properties); + DeleteRepositoryRequest.create = function create(properties) { + return new DeleteRepositoryRequest(properties); }; /** - * Encodes the specified ListRepositoriesResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesResponse.verify|verify} messages. + * Encodes the specified DeleteRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteRepositoryRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @static - * @param {google.devtools.artifactregistry.v1.IListRepositoriesResponse} message ListRepositoriesResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest} message DeleteRepositoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRepositoriesResponse.encode = function encode(message, writer) { + DeleteRepositoryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.repositories != null && message.repositories.length) - for (var i = 0; i < message.repositories.length; ++i) - $root.google.devtools.artifactregistry.v1.Repository.encode(message.repositories[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListRepositoriesResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListRepositoriesResponse.verify|verify} messages. + * Encodes the specified DeleteRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteRepositoryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @static - * @param {google.devtools.artifactregistry.v1.IListRepositoriesResponse} message ListRepositoriesResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest} message DeleteRepositoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRepositoriesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteRepositoryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRepositoriesResponse message from the specified reader or buffer. + * Decodes a DeleteRepositoryRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListRepositoriesResponse} ListRepositoriesResponse + * @returns {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} DeleteRepositoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRepositoriesResponse.decode = function decode(reader, length) { + DeleteRepositoryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListRepositoriesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.DeleteRepositoryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.repositories && message.repositories.length)) - message.repositories = []; - message.repositories.push($root.google.devtools.artifactregistry.v1.Repository.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -6432,1971 +10565,2202 @@ }; /** - * Decodes a ListRepositoriesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteRepositoryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListRepositoriesResponse} ListRepositoriesResponse + * @returns {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} DeleteRepositoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRepositoriesResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteRepositoryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRepositoriesResponse message. + * Verifies a DeleteRepositoryRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRepositoriesResponse.verify = function verify(message) { + DeleteRepositoryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.repositories != null && message.hasOwnProperty("repositories")) { - if (!Array.isArray(message.repositories)) - return "repositories: array expected"; - for (var i = 0; i < message.repositories.length; ++i) { - var error = $root.google.devtools.artifactregistry.v1.Repository.verify(message.repositories[i]); - if (error) - return "repositories." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListRepositoriesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteRepositoryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListRepositoriesResponse} ListRepositoriesResponse - */ - ListRepositoriesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListRepositoriesResponse) - return object; - var message = new $root.google.devtools.artifactregistry.v1.ListRepositoriesResponse(); - if (object.repositories) { - if (!Array.isArray(object.repositories)) - throw TypeError(".google.devtools.artifactregistry.v1.ListRepositoriesResponse.repositories: array expected"); - message.repositories = []; - for (var i = 0; i < object.repositories.length; ++i) { - if (typeof object.repositories[i] !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.ListRepositoriesResponse.repositories: object expected"); - message.repositories[i] = $root.google.devtools.artifactregistry.v1.Repository.fromObject(object.repositories[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + * @returns {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} DeleteRepositoryRequest + */ + DeleteRepositoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.DeleteRepositoryRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.DeleteRepositoryRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListRepositoriesResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteRepositoryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @static - * @param {google.devtools.artifactregistry.v1.ListRepositoriesResponse} message ListRepositoriesResponse + * @param {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} message DeleteRepositoryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRepositoriesResponse.toObject = function toObject(message, options) { + DeleteRepositoryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.repositories = []; if (options.defaults) - object.nextPageToken = ""; - if (message.repositories && message.repositories.length) { - object.repositories = []; - for (var j = 0; j < message.repositories.length; ++j) - object.repositories[j] = $root.google.devtools.artifactregistry.v1.Repository.toObject(message.repositories[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListRepositoriesResponse to JSON. + * Converts this DeleteRepositoryRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @instance * @returns {Object.} JSON object */ - ListRepositoriesResponse.prototype.toJSON = function toJSON() { + DeleteRepositoryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRepositoriesResponse + * Gets the default type url for DeleteRepositoryRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListRepositoriesResponse + * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRepositoriesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteRepositoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListRepositoriesResponse"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.DeleteRepositoryRequest"; }; - return ListRepositoriesResponse; + return DeleteRepositoryRequest; })(); - v1.GetRepositoryRequest = (function() { + v1.ArtifactRegistry = (function() { /** - * Properties of a GetRepositoryRequest. + * Constructs a new ArtifactRegistry service. * @memberof google.devtools.artifactregistry.v1 - * @interface IGetRepositoryRequest - * @property {string|null} [name] GetRepositoryRequest name + * @classdesc Represents an ArtifactRegistry + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function ArtifactRegistry(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ArtifactRegistry.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ArtifactRegistry; /** - * Constructs a new GetRepositoryRequest. - * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a GetRepositoryRequest. - * @implements IGetRepositoryRequest - * @constructor - * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest=} [properties] Properties to set + * Creates new ArtifactRegistry service using the specified rpc implementation. + * @function create + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ArtifactRegistry} RPC service. Useful where requests and/or responses are streamed. */ - function GetRepositoryRequest(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]]; - } + ArtifactRegistry.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * GetRepositoryRequest name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listDockerImages}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ListDockerImagesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.ListDockerImagesResponse} [response] ListDockerImagesResponse + */ + + /** + * Calls ListDockerImages. + * @function listDockerImages + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance + * @param {google.devtools.artifactregistry.v1.IListDockerImagesRequest} request ListDockerImagesRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListDockerImagesCallback} callback Node-style callback called with the error, if any, and ListDockerImagesResponse + * @returns {undefined} + * @variation 1 */ - GetRepositoryRequest.prototype.name = ""; + Object.defineProperty(ArtifactRegistry.prototype.listDockerImages = function listDockerImages(request, callback) { + return this.rpcCall(listDockerImages, $root.google.devtools.artifactregistry.v1.ListDockerImagesRequest, $root.google.devtools.artifactregistry.v1.ListDockerImagesResponse, request, callback); + }, "name", { value: "ListDockerImages" }); /** - * Creates a new GetRepositoryRequest instance using the specified properties. - * @function create - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.GetRepositoryRequest} GetRepositoryRequest instance + * Calls ListDockerImages. + * @function listDockerImages + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListDockerImagesRequest} request ListDockerImagesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetRepositoryRequest.create = function create(properties) { - return new GetRepositoryRequest(properties); - }; /** - * Encodes the specified GetRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetRepositoryRequest.verify|verify} messages. - * @function encode - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest} message GetRepositoryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getDockerImage}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef GetDockerImageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.DockerImage} [response] DockerImage */ - GetRepositoryRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; /** - * Encodes the specified GetRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetRepositoryRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest} message GetRepositoryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetDockerImage. + * @function getDockerImage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetDockerImageRequest} request GetDockerImageRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetDockerImageCallback} callback Node-style callback called with the error, if any, and DockerImage + * @returns {undefined} + * @variation 1 */ - GetRepositoryRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(ArtifactRegistry.prototype.getDockerImage = function getDockerImage(request, callback) { + return this.rpcCall(getDockerImage, $root.google.devtools.artifactregistry.v1.GetDockerImageRequest, $root.google.devtools.artifactregistry.v1.DockerImage, request, callback); + }, "name", { value: "GetDockerImage" }); /** - * Decodes a GetRepositoryRequest message from the specified reader or buffer. - * @function decode - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.GetRepositoryRequest} GetRepositoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetDockerImage. + * @function getDockerImage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetDockerImageRequest} request GetDockerImageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listMavenArtifacts}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ListMavenArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.ListMavenArtifactsResponse} [response] ListMavenArtifactsResponse + */ + + /** + * Calls ListMavenArtifacts. + * @function listMavenArtifacts + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsRequest} request ListMavenArtifactsRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListMavenArtifactsCallback} callback Node-style callback called with the error, if any, and ListMavenArtifactsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ArtifactRegistry.prototype.listMavenArtifacts = function listMavenArtifacts(request, callback) { + return this.rpcCall(listMavenArtifacts, $root.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest, $root.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse, request, callback); + }, "name", { value: "ListMavenArtifacts" }); + + /** + * Calls ListMavenArtifacts. + * @function listMavenArtifacts + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListMavenArtifactsRequest} request ListMavenArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getMavenArtifact}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef GetMavenArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.MavenArtifact} [response] MavenArtifact + */ + + /** + * Calls GetMavenArtifact. + * @function getMavenArtifact + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetMavenArtifactRequest} request GetMavenArtifactRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetMavenArtifactCallback} callback Node-style callback called with the error, if any, and MavenArtifact + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ArtifactRegistry.prototype.getMavenArtifact = function getMavenArtifact(request, callback) { + return this.rpcCall(getMavenArtifact, $root.google.devtools.artifactregistry.v1.GetMavenArtifactRequest, $root.google.devtools.artifactregistry.v1.MavenArtifact, request, callback); + }, "name", { value: "GetMavenArtifact" }); + + /** + * Calls GetMavenArtifact. + * @function getMavenArtifact + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetMavenArtifactRequest} request GetMavenArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listNpmPackages}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ListNpmPackagesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.ListNpmPackagesResponse} [response] ListNpmPackagesResponse + */ + + /** + * Calls ListNpmPackages. + * @function listNpmPackages + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesRequest} request ListNpmPackagesRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListNpmPackagesCallback} callback Node-style callback called with the error, if any, and ListNpmPackagesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ArtifactRegistry.prototype.listNpmPackages = function listNpmPackages(request, callback) { + return this.rpcCall(listNpmPackages, $root.google.devtools.artifactregistry.v1.ListNpmPackagesRequest, $root.google.devtools.artifactregistry.v1.ListNpmPackagesResponse, request, callback); + }, "name", { value: "ListNpmPackages" }); + + /** + * Calls ListNpmPackages. + * @function listNpmPackages + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListNpmPackagesRequest} request ListNpmPackagesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getNpmPackage}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef GetNpmPackageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.NpmPackage} [response] NpmPackage + */ + + /** + * Calls GetNpmPackage. + * @function getNpmPackage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetNpmPackageRequest} request GetNpmPackageRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetNpmPackageCallback} callback Node-style callback called with the error, if any, and NpmPackage + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ArtifactRegistry.prototype.getNpmPackage = function getNpmPackage(request, callback) { + return this.rpcCall(getNpmPackage, $root.google.devtools.artifactregistry.v1.GetNpmPackageRequest, $root.google.devtools.artifactregistry.v1.NpmPackage, request, callback); + }, "name", { value: "GetNpmPackage" }); + + /** + * Calls GetNpmPackage. + * @function getNpmPackage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetNpmPackageRequest} request GetNpmPackageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetRepositoryRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetRepositoryRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a GetRepositoryRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.GetRepositoryRequest} GetRepositoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listPythonPackages}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ListPythonPackagesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.ListPythonPackagesResponse} [response] ListPythonPackagesResponse */ - GetRepositoryRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a GetRepositoryRequest message. - * @function verify - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListPythonPackages. + * @function listPythonPackages + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesRequest} request ListPythonPackagesRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListPythonPackagesCallback} callback Node-style callback called with the error, if any, and ListPythonPackagesResponse + * @returns {undefined} + * @variation 1 */ - GetRepositoryRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Object.defineProperty(ArtifactRegistry.prototype.listPythonPackages = function listPythonPackages(request, callback) { + return this.rpcCall(listPythonPackages, $root.google.devtools.artifactregistry.v1.ListPythonPackagesRequest, $root.google.devtools.artifactregistry.v1.ListPythonPackagesResponse, request, callback); + }, "name", { value: "ListPythonPackages" }); /** - * Creates a GetRepositoryRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest - * @static - * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.GetRepositoryRequest} GetRepositoryRequest + * Calls ListPythonPackages. + * @function listPythonPackages + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListPythonPackagesRequest} request ListPythonPackagesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetRepositoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.GetRepositoryRequest) - return object; - var message = new $root.google.devtools.artifactregistry.v1.GetRepositoryRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetRepositoryRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.GetRepositoryRequest} message GetRepositoryRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getPythonPackage}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef GetPythonPackageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.PythonPackage} [response] PythonPackage */ - GetRepositoryRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; /** - * Converts this GetRepositoryRequest to JSON. - * @function toJSON - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest + * Calls GetPythonPackage. + * @function getPythonPackage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @returns {Object.} JSON object + * @param {google.devtools.artifactregistry.v1.IGetPythonPackageRequest} request GetPythonPackageRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetPythonPackageCallback} callback Node-style callback called with the error, if any, and PythonPackage + * @returns {undefined} + * @variation 1 */ - GetRepositoryRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(ArtifactRegistry.prototype.getPythonPackage = function getPythonPackage(request, callback) { + return this.rpcCall(getPythonPackage, $root.google.devtools.artifactregistry.v1.GetPythonPackageRequest, $root.google.devtools.artifactregistry.v1.PythonPackage, request, callback); + }, "name", { value: "GetPythonPackage" }); /** - * Gets the default type url for GetRepositoryRequest - * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.GetRepositoryRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls GetPythonPackage. + * @function getPythonPackage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetPythonPackageRequest} request GetPythonPackageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetRepositoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetRepositoryRequest"; - }; - return GetRepositoryRequest; - })(); + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|importAptArtifacts}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ImportAptArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - v1.CreateRepositoryRequest = (function() { + /** + * Calls ImportAptArtifacts. + * @function importAptArtifacts + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IImportAptArtifactsRequest} request ImportAptArtifactsRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ImportAptArtifactsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ArtifactRegistry.prototype.importAptArtifacts = function importAptArtifacts(request, callback) { + return this.rpcCall(importAptArtifacts, $root.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportAptArtifacts" }); /** - * Properties of a CreateRepositoryRequest. - * @memberof google.devtools.artifactregistry.v1 - * @interface ICreateRepositoryRequest - * @property {string|null} [parent] CreateRepositoryRequest parent - * @property {string|null} [repositoryId] CreateRepositoryRequest repositoryId - * @property {google.devtools.artifactregistry.v1.IRepository|null} [repository] CreateRepositoryRequest repository + * Calls ImportAptArtifacts. + * @function importAptArtifacts + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IImportAptArtifactsRequest} request ImportAptArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CreateRepositoryRequest. - * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a CreateRepositoryRequest. - * @implements ICreateRepositoryRequest - * @constructor - * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest=} [properties] Properties to set + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|importYumArtifacts}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ImportYumArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function CreateRepositoryRequest(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]]; - } /** - * CreateRepositoryRequest parent. - * @member {string} parent - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * Calls ImportYumArtifacts. + * @function importYumArtifacts + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance + * @param {google.devtools.artifactregistry.v1.IImportYumArtifactsRequest} request ImportYumArtifactsRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ImportYumArtifactsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateRepositoryRequest.prototype.parent = ""; + Object.defineProperty(ArtifactRegistry.prototype.importYumArtifacts = function importYumArtifacts(request, callback) { + return this.rpcCall(importYumArtifacts, $root.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportYumArtifacts" }); /** - * CreateRepositoryRequest repositoryId. - * @member {string} repositoryId - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * Calls ImportYumArtifacts. + * @function importYumArtifacts + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance + * @param {google.devtools.artifactregistry.v1.IImportYumArtifactsRequest} request ImportYumArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateRepositoryRequest.prototype.repositoryId = ""; /** - * CreateRepositoryRequest repository. - * @member {google.devtools.artifactregistry.v1.IRepository|null|undefined} repository - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listRepositories}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ListRepositoriesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.ListRepositoriesResponse} [response] ListRepositoriesResponse + */ + + /** + * Calls ListRepositories. + * @function listRepositories + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance + * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest} request ListRepositoriesRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListRepositoriesCallback} callback Node-style callback called with the error, if any, and ListRepositoriesResponse + * @returns {undefined} + * @variation 1 */ - CreateRepositoryRequest.prototype.repository = null; + Object.defineProperty(ArtifactRegistry.prototype.listRepositories = function listRepositories(request, callback) { + return this.rpcCall(listRepositories, $root.google.devtools.artifactregistry.v1.ListRepositoriesRequest, $root.google.devtools.artifactregistry.v1.ListRepositoriesResponse, request, callback); + }, "name", { value: "ListRepositories" }); /** - * Creates a new CreateRepositoryRequest instance using the specified properties. - * @function create - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.CreateRepositoryRequest} CreateRepositoryRequest instance + * Calls ListRepositories. + * @function listRepositories + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest} request ListRepositoriesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateRepositoryRequest.create = function create(properties) { - return new CreateRepositoryRequest(properties); - }; /** - * Encodes the specified CreateRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateRepositoryRequest.verify|verify} messages. - * @function encode - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest} message CreateRepositoryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getRepository}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef GetRepositoryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.Repository} [response] Repository */ - CreateRepositoryRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.repositoryId != null && Object.hasOwnProperty.call(message, "repositoryId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.repositoryId); - if (message.repository != null && Object.hasOwnProperty.call(message, "repository")) - $root.google.devtools.artifactregistry.v1.Repository.encode(message.repository, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified CreateRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateRepositoryRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest} message CreateRepositoryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetRepository. + * @function getRepository + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest} request GetRepositoryRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetRepositoryCallback} callback Node-style callback called with the error, if any, and Repository + * @returns {undefined} + * @variation 1 */ - CreateRepositoryRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(ArtifactRegistry.prototype.getRepository = function getRepository(request, callback) { + return this.rpcCall(getRepository, $root.google.devtools.artifactregistry.v1.GetRepositoryRequest, $root.google.devtools.artifactregistry.v1.Repository, request, callback); + }, "name", { value: "GetRepository" }); /** - * Decodes a CreateRepositoryRequest message from the specified reader or buffer. - * @function decode - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.CreateRepositoryRequest} CreateRepositoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetRepository. + * @function getRepository + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest} request GetRepositoryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateRepositoryRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.CreateRepositoryRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.repositoryId = reader.string(); - break; - } - case 3: { - message.repository = $root.google.devtools.artifactregistry.v1.Repository.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreateRepositoryRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.CreateRepositoryRequest} CreateRepositoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|createRepository}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef CreateRepositoryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateRepositoryRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a CreateRepositoryRequest message. - * @function verify - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateRepository. + * @function createRepository + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest} request CreateRepositoryRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRepositoryCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateRepositoryRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.repositoryId != null && message.hasOwnProperty("repositoryId")) - if (!$util.isString(message.repositoryId)) - return "repositoryId: string expected"; - if (message.repository != null && message.hasOwnProperty("repository")) { - var error = $root.google.devtools.artifactregistry.v1.Repository.verify(message.repository); - if (error) - return "repository." + error; - } - return null; - }; + Object.defineProperty(ArtifactRegistry.prototype.createRepository = function createRepository(request, callback) { + return this.rpcCall(createRepository, $root.google.devtools.artifactregistry.v1.CreateRepositoryRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateRepository" }); /** - * Creates a CreateRepositoryRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest - * @static - * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.CreateRepositoryRequest} CreateRepositoryRequest + * Calls CreateRepository. + * @function createRepository + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest} request CreateRepositoryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateRepositoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.CreateRepositoryRequest) - return object; - var message = new $root.google.devtools.artifactregistry.v1.CreateRepositoryRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.repositoryId != null) - message.repositoryId = String(object.repositoryId); - if (object.repository != null) { - if (typeof object.repository !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.CreateRepositoryRequest.repository: object expected"); - message.repository = $root.google.devtools.artifactregistry.v1.Repository.fromObject(object.repository); - } - return message; - }; /** - * Creates a plain object from a CreateRepositoryRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.CreateRepositoryRequest} message CreateRepositoryRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateRepository}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef UpdateRepositoryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.Repository} [response] Repository */ - CreateRepositoryRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.repositoryId = ""; - object.repository = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.repositoryId != null && message.hasOwnProperty("repositoryId")) - object.repositoryId = message.repositoryId; - if (message.repository != null && message.hasOwnProperty("repository")) - object.repository = $root.google.devtools.artifactregistry.v1.Repository.toObject(message.repository, options); - return object; - }; /** - * Converts this CreateRepositoryRequest to JSON. - * @function toJSON - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest + * Calls UpdateRepository. + * @function updateRepository + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @returns {Object.} JSON object + * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest} request UpdateRepositoryRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRepositoryCallback} callback Node-style callback called with the error, if any, and Repository + * @returns {undefined} + * @variation 1 */ - CreateRepositoryRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(ArtifactRegistry.prototype.updateRepository = function updateRepository(request, callback) { + return this.rpcCall(updateRepository, $root.google.devtools.artifactregistry.v1.UpdateRepositoryRequest, $root.google.devtools.artifactregistry.v1.Repository, request, callback); + }, "name", { value: "UpdateRepository" }); /** - * Gets the default type url for CreateRepositoryRequest - * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.CreateRepositoryRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls UpdateRepository. + * @function updateRepository + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest} request UpdateRepositoryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateRepositoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.CreateRepositoryRequest"; - }; - return CreateRepositoryRequest; - })(); + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteRepository}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef DeleteRepositoryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - v1.UpdateRepositoryRequest = (function() { + /** + * Calls DeleteRepository. + * @function deleteRepository + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest} request DeleteRepositoryRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRepositoryCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ArtifactRegistry.prototype.deleteRepository = function deleteRepository(request, callback) { + return this.rpcCall(deleteRepository, $root.google.devtools.artifactregistry.v1.DeleteRepositoryRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteRepository" }); /** - * Properties of an UpdateRepositoryRequest. - * @memberof google.devtools.artifactregistry.v1 - * @interface IUpdateRepositoryRequest - * @property {google.devtools.artifactregistry.v1.IRepository|null} [repository] UpdateRepositoryRequest repository - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateRepositoryRequest updateMask + * Calls DeleteRepository. + * @function deleteRepository + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest} request DeleteRepositoryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new UpdateRepositoryRequest. - * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents an UpdateRepositoryRequest. - * @implements IUpdateRepositoryRequest - * @constructor - * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest=} [properties] Properties to set + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listPackages}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ListPackagesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.ListPackagesResponse} [response] ListPackagesResponse */ - function UpdateRepositoryRequest(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]]; - } /** - * UpdateRepositoryRequest repository. - * @member {google.devtools.artifactregistry.v1.IRepository|null|undefined} repository - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest + * Calls ListPackages. + * @function listPackages + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance + * @param {google.devtools.artifactregistry.v1.IListPackagesRequest} request ListPackagesRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListPackagesCallback} callback Node-style callback called with the error, if any, and ListPackagesResponse + * @returns {undefined} + * @variation 1 */ - UpdateRepositoryRequest.prototype.repository = null; + Object.defineProperty(ArtifactRegistry.prototype.listPackages = function listPackages(request, callback) { + return this.rpcCall(listPackages, $root.google.devtools.artifactregistry.v1.ListPackagesRequest, $root.google.devtools.artifactregistry.v1.ListPackagesResponse, request, callback); + }, "name", { value: "ListPackages" }); /** - * UpdateRepositoryRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest + * Calls ListPackages. + * @function listPackages + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance + * @param {google.devtools.artifactregistry.v1.IListPackagesRequest} request ListPackagesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateRepositoryRequest.prototype.updateMask = null; /** - * Creates a new UpdateRepositoryRequest instance using the specified properties. - * @function create - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} UpdateRepositoryRequest instance + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getPackage}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef GetPackageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.Package} [response] Package */ - UpdateRepositoryRequest.create = function create(properties) { - return new UpdateRepositoryRequest(properties); - }; /** - * Encodes the specified UpdateRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateRepositoryRequest.verify|verify} messages. - * @function encode - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest} message UpdateRepositoryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetPackage. + * @function getPackage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetPackageRequest} request GetPackageRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetPackageCallback} callback Node-style callback called with the error, if any, and Package + * @returns {undefined} + * @variation 1 */ - UpdateRepositoryRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.repository != null && Object.hasOwnProperty.call(message, "repository")) - $root.google.devtools.artifactregistry.v1.Repository.encode(message.repository, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Object.defineProperty(ArtifactRegistry.prototype.getPackage = function getPackage(request, callback) { + return this.rpcCall(getPackage, $root.google.devtools.artifactregistry.v1.GetPackageRequest, $root.google.devtools.artifactregistry.v1.Package, request, callback); + }, "name", { value: "GetPackage" }); /** - * Encodes the specified UpdateRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateRepositoryRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest} message UpdateRepositoryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetPackage. + * @function getPackage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetPackageRequest} request GetPackageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateRepositoryRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes an UpdateRepositoryRequest message from the specified reader or buffer. - * @function decode - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} UpdateRepositoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deletePackage}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef DeletePackageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - UpdateRepositoryRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.UpdateRepositoryRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.repository = $root.google.devtools.artifactregistry.v1.Repository.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an UpdateRepositoryRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} UpdateRepositoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeletePackage. + * @function deletePackage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest} request DeletePackageRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.DeletePackageCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - UpdateRepositoryRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(ArtifactRegistry.prototype.deletePackage = function deletePackage(request, callback) { + return this.rpcCall(deletePackage, $root.google.devtools.artifactregistry.v1.DeletePackageRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeletePackage" }); /** - * Verifies an UpdateRepositoryRequest message. - * @function verify - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls DeletePackage. + * @function deletePackage + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest} request DeletePackageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateRepositoryRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.repository != null && message.hasOwnProperty("repository")) { - var error = $root.google.devtools.artifactregistry.v1.Repository.verify(message.repository); - if (error) - return "repository." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; /** - * Creates an UpdateRepositoryRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest - * @static - * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} UpdateRepositoryRequest + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listVersions}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ListVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.ListVersionsResponse} [response] ListVersionsResponse */ - UpdateRepositoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.UpdateRepositoryRequest) - return object; - var message = new $root.google.devtools.artifactregistry.v1.UpdateRepositoryRequest(); - if (object.repository != null) { - if (typeof object.repository !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.UpdateRepositoryRequest.repository: object expected"); - message.repository = $root.google.devtools.artifactregistry.v1.Repository.fromObject(object.repository); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.UpdateRepositoryRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; /** - * Creates a plain object from an UpdateRepositoryRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.UpdateRepositoryRequest} message UpdateRepositoryRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListVersions. + * @function listVersions + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListVersionsRequest} request ListVersionsRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListVersionsCallback} callback Node-style callback called with the error, if any, and ListVersionsResponse + * @returns {undefined} + * @variation 1 */ - UpdateRepositoryRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.repository = null; - object.updateMask = null; - } - if (message.repository != null && message.hasOwnProperty("repository")) - object.repository = $root.google.devtools.artifactregistry.v1.Repository.toObject(message.repository, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + Object.defineProperty(ArtifactRegistry.prototype.listVersions = function listVersions(request, callback) { + return this.rpcCall(listVersions, $root.google.devtools.artifactregistry.v1.ListVersionsRequest, $root.google.devtools.artifactregistry.v1.ListVersionsResponse, request, callback); + }, "name", { value: "ListVersions" }); /** - * Converts this UpdateRepositoryRequest to JSON. - * @function toJSON - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest + * Calls ListVersions. + * @function listVersions + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @returns {Object.} JSON object + * @param {google.devtools.artifactregistry.v1.IListVersionsRequest} request ListVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getVersion}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef GetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.Version} [response] Version */ - UpdateRepositoryRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for UpdateRepositoryRequest - * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.UpdateRepositoryRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls GetVersion. + * @function getVersion + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetVersionRequest} request GetVersionRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetVersionCallback} callback Node-style callback called with the error, if any, and Version + * @returns {undefined} + * @variation 1 */ - UpdateRepositoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.UpdateRepositoryRequest"; - }; - - return UpdateRepositoryRequest; - })(); - - v1.DeleteRepositoryRequest = (function() { + Object.defineProperty(ArtifactRegistry.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.google.devtools.artifactregistry.v1.GetVersionRequest, $root.google.devtools.artifactregistry.v1.Version, request, callback); + }, "name", { value: "GetVersion" }); /** - * Properties of a DeleteRepositoryRequest. - * @memberof google.devtools.artifactregistry.v1 - * @interface IDeleteRepositoryRequest - * @property {string|null} [name] DeleteRepositoryRequest name + * Calls GetVersion. + * @function getVersion + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetVersionRequest} request GetVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new DeleteRepositoryRequest. - * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a DeleteRepositoryRequest. - * @implements IDeleteRepositoryRequest - * @constructor - * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest=} [properties] Properties to set + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteVersion}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef DeleteVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function DeleteRepositoryRequest(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]]; - } /** - * DeleteRepositoryRequest name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest + * Calls DeleteVersion. + * @function deleteVersion + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance + * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - DeleteRepositoryRequest.prototype.name = ""; + Object.defineProperty(ArtifactRegistry.prototype.deleteVersion = function deleteVersion(request, callback) { + return this.rpcCall(deleteVersion, $root.google.devtools.artifactregistry.v1.DeleteVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteVersion" }); /** - * Creates a new DeleteRepositoryRequest instance using the specified properties. - * @function create - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} DeleteRepositoryRequest instance + * Calls DeleteVersion. + * @function deleteVersion + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteRepositoryRequest.create = function create(properties) { - return new DeleteRepositoryRequest(properties); - }; /** - * Encodes the specified DeleteRepositoryRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteRepositoryRequest.verify|verify} messages. - * @function encode - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest} message DeleteRepositoryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listFiles}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ListFilesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.ListFilesResponse} [response] ListFilesResponse */ - DeleteRepositoryRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; /** - * Encodes the specified DeleteRepositoryRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteRepositoryRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest} message DeleteRepositoryRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListFiles. + * @function listFiles + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListFilesRequest} request ListFilesRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListFilesCallback} callback Node-style callback called with the error, if any, and ListFilesResponse + * @returns {undefined} + * @variation 1 */ - DeleteRepositoryRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(ArtifactRegistry.prototype.listFiles = function listFiles(request, callback) { + return this.rpcCall(listFiles, $root.google.devtools.artifactregistry.v1.ListFilesRequest, $root.google.devtools.artifactregistry.v1.ListFilesResponse, request, callback); + }, "name", { value: "ListFiles" }); /** - * Decodes a DeleteRepositoryRequest message from the specified reader or buffer. - * @function decode - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} DeleteRepositoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListFiles. + * @function listFiles + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListFilesRequest} request ListFilesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteRepositoryRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.DeleteRepositoryRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DeleteRepositoryRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} DeleteRepositoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getFile}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef GetFileCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.File} [response] File */ - DeleteRepositoryRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a DeleteRepositoryRequest message. - * @function verify - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetFile. + * @function getFile + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetFileRequest} request GetFileRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetFileCallback} callback Node-style callback called with the error, if any, and File + * @returns {undefined} + * @variation 1 */ - DeleteRepositoryRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Object.defineProperty(ArtifactRegistry.prototype.getFile = function getFile(request, callback) { + return this.rpcCall(getFile, $root.google.devtools.artifactregistry.v1.GetFileRequest, $root.google.devtools.artifactregistry.v1.File, request, callback); + }, "name", { value: "GetFile" }); /** - * Creates a DeleteRepositoryRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest - * @static - * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} DeleteRepositoryRequest + * Calls GetFile. + * @function getFile + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetFileRequest} request GetFileRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteRepositoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.DeleteRepositoryRequest) - return object; - var message = new $root.google.devtools.artifactregistry.v1.DeleteRepositoryRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a DeleteRepositoryRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest - * @static - * @param {google.devtools.artifactregistry.v1.DeleteRepositoryRequest} message DeleteRepositoryRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteRepositoryRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listTags}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef ListTagsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.ListTagsResponse} [response] ListTagsResponse + */ /** - * Converts this DeleteRepositoryRequest to JSON. - * @function toJSON - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest + * Calls ListTags. + * @function listTags + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @returns {Object.} JSON object + * @param {google.devtools.artifactregistry.v1.IListTagsRequest} request ListTagsRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListTagsCallback} callback Node-style callback called with the error, if any, and ListTagsResponse + * @returns {undefined} + * @variation 1 */ - DeleteRepositoryRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(ArtifactRegistry.prototype.listTags = function listTags(request, callback) { + return this.rpcCall(listTags, $root.google.devtools.artifactregistry.v1.ListTagsRequest, $root.google.devtools.artifactregistry.v1.ListTagsResponse, request, callback); + }, "name", { value: "ListTags" }); /** - * Gets the default type url for DeleteRepositoryRequest - * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.DeleteRepositoryRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListTags. + * @function listTags + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IListTagsRequest} request ListTagsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteRepositoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.DeleteRepositoryRequest"; - }; - - return DeleteRepositoryRequest; - })(); - - v1.ArtifactRegistry = (function() { /** - * Constructs a new ArtifactRegistry service. - * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents an ArtifactRegistry - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getTag}. + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @typedef GetTagCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.devtools.artifactregistry.v1.Tag} [response] Tag */ - function ArtifactRegistry(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - (ArtifactRegistry.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ArtifactRegistry; + /** + * Calls GetTag. + * @function getTag + * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * @instance + * @param {google.devtools.artifactregistry.v1.IGetTagRequest} request GetTagRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetTagCallback} callback Node-style callback called with the error, if any, and Tag + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ArtifactRegistry.prototype.getTag = function getTag(request, callback) { + return this.rpcCall(getTag, $root.google.devtools.artifactregistry.v1.GetTagRequest, $root.google.devtools.artifactregistry.v1.Tag, request, callback); + }, "name", { value: "GetTag" }); /** - * Creates new ArtifactRegistry service using the specified rpc implementation. - * @function create + * Calls GetTag. + * @function getTag * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {ArtifactRegistry} RPC service. Useful where requests and/or responses are streamed. + * @instance + * @param {google.devtools.artifactregistry.v1.IGetTagRequest} request GetTagRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ArtifactRegistry.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listDockerImages}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|createTag}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef ListDockerImagesCallback + * @typedef CreateTagCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.ListDockerImagesResponse} [response] ListDockerImagesResponse + * @param {google.devtools.artifactregistry.v1.Tag} [response] Tag */ /** - * Calls ListDockerImages. - * @function listDockerImages + * Calls CreateTag. + * @function createTag * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IListDockerImagesRequest} request ListDockerImagesRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListDockerImagesCallback} callback Node-style callback called with the error, if any, and ListDockerImagesResponse + * @param {google.devtools.artifactregistry.v1.ICreateTagRequest} request CreateTagRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.CreateTagCallback} callback Node-style callback called with the error, if any, and Tag * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.listDockerImages = function listDockerImages(request, callback) { - return this.rpcCall(listDockerImages, $root.google.devtools.artifactregistry.v1.ListDockerImagesRequest, $root.google.devtools.artifactregistry.v1.ListDockerImagesResponse, request, callback); - }, "name", { value: "ListDockerImages" }); + Object.defineProperty(ArtifactRegistry.prototype.createTag = function createTag(request, callback) { + return this.rpcCall(createTag, $root.google.devtools.artifactregistry.v1.CreateTagRequest, $root.google.devtools.artifactregistry.v1.Tag, request, callback); + }, "name", { value: "CreateTag" }); /** - * Calls ListDockerImages. - * @function listDockerImages + * Calls CreateTag. + * @function createTag * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IListDockerImagesRequest} request ListDockerImagesRequest message or plain object - * @returns {Promise} Promise + * @param {google.devtools.artifactregistry.v1.ICreateTagRequest} request CreateTagRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getDockerImage}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateTag}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef GetDockerImageCallback + * @typedef UpdateTagCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.DockerImage} [response] DockerImage + * @param {google.devtools.artifactregistry.v1.Tag} [response] Tag */ /** - * Calls GetDockerImage. - * @function getDockerImage + * Calls UpdateTag. + * @function updateTag * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IGetDockerImageRequest} request GetDockerImageRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetDockerImageCallback} callback Node-style callback called with the error, if any, and DockerImage + * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest} request UpdateTagRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateTagCallback} callback Node-style callback called with the error, if any, and Tag * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.getDockerImage = function getDockerImage(request, callback) { - return this.rpcCall(getDockerImage, $root.google.devtools.artifactregistry.v1.GetDockerImageRequest, $root.google.devtools.artifactregistry.v1.DockerImage, request, callback); - }, "name", { value: "GetDockerImage" }); + Object.defineProperty(ArtifactRegistry.prototype.updateTag = function updateTag(request, callback) { + return this.rpcCall(updateTag, $root.google.devtools.artifactregistry.v1.UpdateTagRequest, $root.google.devtools.artifactregistry.v1.Tag, request, callback); + }, "name", { value: "UpdateTag" }); /** - * Calls GetDockerImage. - * @function getDockerImage + * Calls UpdateTag. + * @function updateTag * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IGetDockerImageRequest} request GetDockerImageRequest message or plain object - * @returns {Promise} Promise + * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest} request UpdateTagRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|importAptArtifacts}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteTag}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef ImportAptArtifactsCallback + * @typedef DeleteTagCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls ImportAptArtifacts. - * @function importAptArtifacts + * Calls DeleteTag. + * @function deleteTag * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IImportAptArtifactsRequest} request ImportAptArtifactsRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ImportAptArtifactsCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest} request DeleteTagRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteTagCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.importAptArtifacts = function importAptArtifacts(request, callback) { - return this.rpcCall(importAptArtifacts, $root.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportAptArtifacts" }); + Object.defineProperty(ArtifactRegistry.prototype.deleteTag = function deleteTag(request, callback) { + return this.rpcCall(deleteTag, $root.google.devtools.artifactregistry.v1.DeleteTagRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteTag" }); /** - * Calls ImportAptArtifacts. - * @function importAptArtifacts + * Calls DeleteTag. + * @function deleteTag * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IImportAptArtifactsRequest} request ImportAptArtifactsRequest message or plain object - * @returns {Promise} Promise + * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest} request DeleteTagRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|importYumArtifacts}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|setIamPolicy}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef ImportYumArtifactsCallback + * @typedef SetIamPolicyCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.iam.v1.Policy} [response] Policy */ /** - * Calls ImportYumArtifacts. - * @function importYumArtifacts + * Calls SetIamPolicy. + * @function setIamPolicy * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IImportYumArtifactsRequest} request ImportYumArtifactsRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ImportYumArtifactsCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.importYumArtifacts = function importYumArtifacts(request, callback) { - return this.rpcCall(importYumArtifacts, $root.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportYumArtifacts" }); + Object.defineProperty(ArtifactRegistry.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.iam.v1.SetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); /** - * Calls ImportYumArtifacts. - * @function importYumArtifacts + * Calls SetIamPolicy. + * @function setIamPolicy * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IImportYumArtifactsRequest} request ImportYumArtifactsRequest message or plain object - * @returns {Promise} Promise + * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listRepositories}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getIamPolicy}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef ListRepositoriesCallback + * @typedef GetIamPolicyCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.ListRepositoriesResponse} [response] ListRepositoriesResponse + * @param {google.iam.v1.Policy} [response] Policy */ /** - * Calls ListRepositories. - * @function listRepositories + * Calls GetIamPolicy. + * @function getIamPolicy * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest} request ListRepositoriesRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListRepositoriesCallback} callback Node-style callback called with the error, if any, and ListRepositoriesResponse + * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.listRepositories = function listRepositories(request, callback) { - return this.rpcCall(listRepositories, $root.google.devtools.artifactregistry.v1.ListRepositoriesRequest, $root.google.devtools.artifactregistry.v1.ListRepositoriesResponse, request, callback); - }, "name", { value: "ListRepositories" }); + Object.defineProperty(ArtifactRegistry.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.iam.v1.GetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); /** - * Calls ListRepositories. - * @function listRepositories + * Calls GetIamPolicy. + * @function getIamPolicy * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IListRepositoriesRequest} request ListRepositoriesRequest message or plain object - * @returns {Promise} Promise + * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getRepository}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|testIamPermissions}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef GetRepositoryCallback + * @typedef TestIamPermissionsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.Repository} [response] Repository + * @param {google.iam.v1.TestIamPermissionsResponse} [response] TestIamPermissionsResponse */ /** - * Calls GetRepository. - * @function getRepository + * Calls TestIamPermissions. + * @function testIamPermissions * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest} request GetRepositoryRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetRepositoryCallback} callback Node-style callback called with the error, if any, and Repository + * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestIamPermissionsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.getRepository = function getRepository(request, callback) { - return this.rpcCall(getRepository, $root.google.devtools.artifactregistry.v1.GetRepositoryRequest, $root.google.devtools.artifactregistry.v1.Repository, request, callback); - }, "name", { value: "GetRepository" }); + Object.defineProperty(ArtifactRegistry.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.iam.v1.TestIamPermissionsRequest, $root.google.iam.v1.TestIamPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); /** - * Calls GetRepository. - * @function getRepository + * Calls TestIamPermissions. + * @function testIamPermissions * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IGetRepositoryRequest} request GetRepositoryRequest message or plain object - * @returns {Promise} Promise + * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|createRepository}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getProjectSettings}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef CreateRepositoryCallback + * @typedef GetProjectSettingsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.devtools.artifactregistry.v1.ProjectSettings} [response] ProjectSettings */ /** - * Calls CreateRepository. - * @function createRepository + * Calls GetProjectSettings. + * @function getProjectSettings * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest} request CreateRepositoryRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRepositoryCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest} request GetProjectSettingsRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetProjectSettingsCallback} callback Node-style callback called with the error, if any, and ProjectSettings * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.createRepository = function createRepository(request, callback) { - return this.rpcCall(createRepository, $root.google.devtools.artifactregistry.v1.CreateRepositoryRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateRepository" }); + Object.defineProperty(ArtifactRegistry.prototype.getProjectSettings = function getProjectSettings(request, callback) { + return this.rpcCall(getProjectSettings, $root.google.devtools.artifactregistry.v1.GetProjectSettingsRequest, $root.google.devtools.artifactregistry.v1.ProjectSettings, request, callback); + }, "name", { value: "GetProjectSettings" }); /** - * Calls CreateRepository. - * @function createRepository + * Calls GetProjectSettings. + * @function getProjectSettings * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.ICreateRepositoryRequest} request CreateRepositoryRequest message or plain object - * @returns {Promise} Promise + * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest} request GetProjectSettingsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateRepository}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateProjectSettings}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef UpdateRepositoryCallback + * @typedef UpdateProjectSettingsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.Repository} [response] Repository + * @param {google.devtools.artifactregistry.v1.ProjectSettings} [response] ProjectSettings */ /** - * Calls UpdateRepository. - * @function updateRepository + * Calls UpdateProjectSettings. + * @function updateProjectSettings * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest} request UpdateRepositoryRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRepositoryCallback} callback Node-style callback called with the error, if any, and Repository + * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest} request UpdateProjectSettingsRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateProjectSettingsCallback} callback Node-style callback called with the error, if any, and ProjectSettings * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.updateRepository = function updateRepository(request, callback) { - return this.rpcCall(updateRepository, $root.google.devtools.artifactregistry.v1.UpdateRepositoryRequest, $root.google.devtools.artifactregistry.v1.Repository, request, callback); - }, "name", { value: "UpdateRepository" }); + Object.defineProperty(ArtifactRegistry.prototype.updateProjectSettings = function updateProjectSettings(request, callback) { + return this.rpcCall(updateProjectSettings, $root.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest, $root.google.devtools.artifactregistry.v1.ProjectSettings, request, callback); + }, "name", { value: "UpdateProjectSettings" }); /** - * Calls UpdateRepository. - * @function updateRepository + * Calls UpdateProjectSettings. + * @function updateProjectSettings * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IUpdateRepositoryRequest} request UpdateRepositoryRequest message or plain object - * @returns {Promise} Promise + * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest} request UpdateProjectSettingsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteRepository}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getVPCSCConfig}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef DeleteRepositoryCallback + * @typedef GetVPCSCConfigCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.devtools.artifactregistry.v1.VPCSCConfig} [response] VPCSCConfig */ /** - * Calls DeleteRepository. - * @function deleteRepository + * Calls GetVPCSCConfig. + * @function getVPCSCConfig * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest} request DeleteRepositoryRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRepositoryCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest} request GetVPCSCConfigRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetVPCSCConfigCallback} callback Node-style callback called with the error, if any, and VPCSCConfig * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.deleteRepository = function deleteRepository(request, callback) { - return this.rpcCall(deleteRepository, $root.google.devtools.artifactregistry.v1.DeleteRepositoryRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteRepository" }); + Object.defineProperty(ArtifactRegistry.prototype.getVPCSCConfig = function getVPCSCConfig(request, callback) { + return this.rpcCall(getVPCSCConfig, $root.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest, $root.google.devtools.artifactregistry.v1.VPCSCConfig, request, callback); + }, "name", { value: "GetVPCSCConfig" }); /** - * Calls DeleteRepository. - * @function deleteRepository + * Calls GetVPCSCConfig. + * @function getVPCSCConfig * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IDeleteRepositoryRequest} request DeleteRepositoryRequest message or plain object - * @returns {Promise} Promise + * @param {google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest} request GetVPCSCConfigRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listPackages}. + * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateVPCSCConfig}. * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef ListPackagesCallback + * @typedef UpdateVPCSCConfigCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.ListPackagesResponse} [response] ListPackagesResponse + * @param {google.devtools.artifactregistry.v1.VPCSCConfig} [response] VPCSCConfig */ /** - * Calls ListPackages. - * @function listPackages + * Calls UpdateVPCSCConfig. + * @function updateVPCSCConfig * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IListPackagesRequest} request ListPackagesRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListPackagesCallback} callback Node-style callback called with the error, if any, and ListPackagesResponse + * @param {google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest} request UpdateVPCSCConfigRequest message or plain object + * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateVPCSCConfigCallback} callback Node-style callback called with the error, if any, and VPCSCConfig * @returns {undefined} * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.listPackages = function listPackages(request, callback) { - return this.rpcCall(listPackages, $root.google.devtools.artifactregistry.v1.ListPackagesRequest, $root.google.devtools.artifactregistry.v1.ListPackagesResponse, request, callback); - }, "name", { value: "ListPackages" }); + Object.defineProperty(ArtifactRegistry.prototype.updateVPCSCConfig = function updateVPCSCConfig(request, callback) { + return this.rpcCall(updateVPCSCConfig, $root.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest, $root.google.devtools.artifactregistry.v1.VPCSCConfig, request, callback); + }, "name", { value: "UpdateVPCSCConfig" }); /** - * Calls ListPackages. - * @function listPackages + * Calls UpdateVPCSCConfig. + * @function updateVPCSCConfig * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry * @instance - * @param {google.devtools.artifactregistry.v1.IListPackagesRequest} request ListPackagesRequest message or plain object - * @returns {Promise} Promise + * @param {google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest} request UpdateVPCSCConfigRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ + return ArtifactRegistry; + })(); + + v1.OperationMetadata = (function() { + /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getPackage}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef GetPackageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.Package} [response] Package + * Properties of an OperationMetadata. + * @memberof google.devtools.artifactregistry.v1 + * @interface IOperationMetadata */ /** - * Calls GetPackage. - * @function getPackage - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IGetPackageRequest} request GetPackageRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetPackageCallback} callback Node-style callback called with the error, if any, and Package - * @returns {undefined} - * @variation 1 + * Constructs a new OperationMetadata. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents an OperationMetadata. + * @implements IOperationMetadata + * @constructor + * @param {google.devtools.artifactregistry.v1.IOperationMetadata=} [properties] Properties to set */ - Object.defineProperty(ArtifactRegistry.prototype.getPackage = function getPackage(request, callback) { - return this.rpcCall(getPackage, $root.google.devtools.artifactregistry.v1.GetPackageRequest, $root.google.devtools.artifactregistry.v1.Package, request, callback); - }, "name", { value: "GetPackage" }); + function OperationMetadata(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]]; + } /** - * Calls GetPackage. - * @function getPackage - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IGetPackageRequest} request GetPackageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new OperationMetadata instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @static + * @param {google.devtools.artifactregistry.v1.IOperationMetadata=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.OperationMetadata} OperationMetadata instance */ + OperationMetadata.create = function create(properties) { + return new OperationMetadata(properties); + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deletePackage}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef DeletePackageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.devtools.artifactregistry.v1.OperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @static + * @param {google.devtools.artifactregistry.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + OperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Calls DeletePackage. - * @function deletePackage - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest} request DeletePackageRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.DeletePackageCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.OperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @static + * @param {google.devtools.artifactregistry.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ArtifactRegistry.prototype.deletePackage = function deletePackage(request, callback) { - return this.rpcCall(deletePackage, $root.google.devtools.artifactregistry.v1.DeletePackageRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeletePackage" }); + OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.OperationMetadata} OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.OperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.OperationMetadata} OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OperationMetadata message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.OperationMetadata} OperationMetadata + */ + OperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.OperationMetadata) + return object; + return new $root.google.devtools.artifactregistry.v1.OperationMetadata(); + }; + + /** + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @static + * @param {google.devtools.artifactregistry.v1.OperationMetadata} message OperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OperationMetadata.toObject = function toObject() { + return {}; + }; /** - * Calls DeletePackage. - * @function deletePackage - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * Converts this OperationMetadata to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.OperationMetadata * @instance - * @param {google.devtools.artifactregistry.v1.IDeletePackageRequest} request DeletePackageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + OperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listVersions}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef ListVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.ListVersionsResponse} [response] ListVersionsResponse + * Gets the default type url for OperationMetadata + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.OperationMetadata"; + }; - /** - * Calls ListVersions. - * @function listVersions - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IListVersionsRequest} request ListVersionsRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListVersionsCallback} callback Node-style callback called with the error, if any, and ListVersionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ArtifactRegistry.prototype.listVersions = function listVersions(request, callback) { - return this.rpcCall(listVersions, $root.google.devtools.artifactregistry.v1.ListVersionsRequest, $root.google.devtools.artifactregistry.v1.ListVersionsResponse, request, callback); - }, "name", { value: "ListVersions" }); + return OperationMetadata; + })(); + + v1.ProjectSettings = (function() { /** - * Calls ListVersions. - * @function listVersions - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IListVersionsRequest} request ListVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a ProjectSettings. + * @memberof google.devtools.artifactregistry.v1 + * @interface IProjectSettings + * @property {string|null} [name] ProjectSettings name + * @property {google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState|null} [legacyRedirectionState] ProjectSettings legacyRedirectionState */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getVersion}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef GetVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.Version} [response] Version + * Constructs a new ProjectSettings. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a ProjectSettings. + * @implements IProjectSettings + * @constructor + * @param {google.devtools.artifactregistry.v1.IProjectSettings=} [properties] Properties to set */ + function ProjectSettings(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]]; + } /** - * Calls GetVersion. - * @function getVersion - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * ProjectSettings name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.ProjectSettings * @instance - * @param {google.devtools.artifactregistry.v1.IGetVersionRequest} request GetVersionRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetVersionCallback} callback Node-style callback called with the error, if any, and Version - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.getVersion = function getVersion(request, callback) { - return this.rpcCall(getVersion, $root.google.devtools.artifactregistry.v1.GetVersionRequest, $root.google.devtools.artifactregistry.v1.Version, request, callback); - }, "name", { value: "GetVersion" }); + ProjectSettings.prototype.name = ""; /** - * Calls GetVersion. - * @function getVersion - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * ProjectSettings legacyRedirectionState. + * @member {google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState} legacyRedirectionState + * @memberof google.devtools.artifactregistry.v1.ProjectSettings * @instance - * @param {google.devtools.artifactregistry.v1.IGetVersionRequest} request GetVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ProjectSettings.prototype.legacyRedirectionState = 0; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteVersion}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef DeleteVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a new ProjectSettings instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @static + * @param {google.devtools.artifactregistry.v1.IProjectSettings=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ProjectSettings} ProjectSettings instance */ + ProjectSettings.create = function create(properties) { + return new ProjectSettings(properties); + }; /** - * Calls DeleteVersion. - * @function deleteVersion - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified ProjectSettings message. Does not implicitly {@link google.devtools.artifactregistry.v1.ProjectSettings.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @static + * @param {google.devtools.artifactregistry.v1.IProjectSettings} message ProjectSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ArtifactRegistry.prototype.deleteVersion = function deleteVersion(request, callback) { - return this.rpcCall(deleteVersion, $root.google.devtools.artifactregistry.v1.DeleteVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteVersion" }); + ProjectSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.legacyRedirectionState != null && Object.hasOwnProperty.call(message, "legacyRedirectionState")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.legacyRedirectionState); + return writer; + }; /** - * Calls DeleteVersion. - * @function deleteVersion - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ProjectSettings message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ProjectSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @static + * @param {google.devtools.artifactregistry.v1.IProjectSettings} message ProjectSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ProjectSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listFiles}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef ListFilesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.ListFilesResponse} [response] ListFilesResponse + * Decodes a ProjectSettings message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.ProjectSettings} ProjectSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ProjectSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ProjectSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.legacyRedirectionState = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListFiles. - * @function listFiles - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IListFilesRequest} request ListFilesRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListFilesCallback} callback Node-style callback called with the error, if any, and ListFilesResponse - * @returns {undefined} - * @variation 1 + * Decodes a ProjectSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.ProjectSettings} ProjectSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(ArtifactRegistry.prototype.listFiles = function listFiles(request, callback) { - return this.rpcCall(listFiles, $root.google.devtools.artifactregistry.v1.ListFilesRequest, $root.google.devtools.artifactregistry.v1.ListFilesResponse, request, callback); - }, "name", { value: "ListFiles" }); + ProjectSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListFiles. - * @function listFiles - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IListFilesRequest} request ListFilesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ProjectSettings message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ProjectSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.legacyRedirectionState != null && message.hasOwnProperty("legacyRedirectionState")) + switch (message.legacyRedirectionState) { + default: + return "legacyRedirectionState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getFile}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef GetFileCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.File} [response] File + * Creates a ProjectSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.ProjectSettings} ProjectSettings */ + ProjectSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ProjectSettings) + return object; + var message = new $root.google.devtools.artifactregistry.v1.ProjectSettings(); + if (object.name != null) + message.name = String(object.name); + switch (object.legacyRedirectionState) { + default: + if (typeof object.legacyRedirectionState === "number") { + message.legacyRedirectionState = object.legacyRedirectionState; + break; + } + break; + case "REDIRECTION_STATE_UNSPECIFIED": + case 0: + message.legacyRedirectionState = 0; + break; + case "REDIRECTION_FROM_GCR_IO_DISABLED": + case 1: + message.legacyRedirectionState = 1; + break; + case "REDIRECTION_FROM_GCR_IO_ENABLED": + case 2: + message.legacyRedirectionState = 2; + break; + case "REDIRECTION_FROM_GCR_IO_FINALIZED": + case 3: + message.legacyRedirectionState = 3; + break; + } + return message; + }; /** - * Calls GetFile. - * @function getFile - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IGetFileRequest} request GetFileRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetFileCallback} callback Node-style callback called with the error, if any, and File - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ProjectSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @static + * @param {google.devtools.artifactregistry.v1.ProjectSettings} message ProjectSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(ArtifactRegistry.prototype.getFile = function getFile(request, callback) { - return this.rpcCall(getFile, $root.google.devtools.artifactregistry.v1.GetFileRequest, $root.google.devtools.artifactregistry.v1.File, request, callback); - }, "name", { value: "GetFile" }); + ProjectSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.legacyRedirectionState = options.enums === String ? "REDIRECTION_STATE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.legacyRedirectionState != null && message.hasOwnProperty("legacyRedirectionState")) + object.legacyRedirectionState = options.enums === String ? $root.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState[message.legacyRedirectionState] === undefined ? message.legacyRedirectionState : $root.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState[message.legacyRedirectionState] : message.legacyRedirectionState; + return object; + }; /** - * Calls GetFile. - * @function getFile - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * Converts this ProjectSettings to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.ProjectSettings * @instance - * @param {google.devtools.artifactregistry.v1.IGetFileRequest} request GetFileRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ProjectSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|listTags}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef ListTagsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.ListTagsResponse} [response] ListTagsResponse + * Gets the default type url for ProjectSettings + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ProjectSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ProjectSettings"; + }; /** - * Calls ListTags. - * @function listTags - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IListTagsRequest} request ListTagsRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.ListTagsCallback} callback Node-style callback called with the error, if any, and ListTagsResponse - * @returns {undefined} - * @variation 1 + * RedirectionState enum. + * @name google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState + * @enum {number} + * @property {number} REDIRECTION_STATE_UNSPECIFIED=0 REDIRECTION_STATE_UNSPECIFIED value + * @property {number} REDIRECTION_FROM_GCR_IO_DISABLED=1 REDIRECTION_FROM_GCR_IO_DISABLED value + * @property {number} REDIRECTION_FROM_GCR_IO_ENABLED=2 REDIRECTION_FROM_GCR_IO_ENABLED value + * @property {number} REDIRECTION_FROM_GCR_IO_FINALIZED=3 REDIRECTION_FROM_GCR_IO_FINALIZED value */ - Object.defineProperty(ArtifactRegistry.prototype.listTags = function listTags(request, callback) { - return this.rpcCall(listTags, $root.google.devtools.artifactregistry.v1.ListTagsRequest, $root.google.devtools.artifactregistry.v1.ListTagsResponse, request, callback); - }, "name", { value: "ListTags" }); + ProjectSettings.RedirectionState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REDIRECTION_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "REDIRECTION_FROM_GCR_IO_DISABLED"] = 1; + values[valuesById[2] = "REDIRECTION_FROM_GCR_IO_ENABLED"] = 2; + values[valuesById[3] = "REDIRECTION_FROM_GCR_IO_FINALIZED"] = 3; + return values; + })(); - /** - * Calls ListTags. - * @function listTags - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IListTagsRequest} request ListTagsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return ProjectSettings; + })(); + + v1.GetProjectSettingsRequest = (function() { /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getTag}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef GetTagCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.Tag} [response] Tag + * Properties of a GetProjectSettingsRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IGetProjectSettingsRequest + * @property {string|null} [name] GetProjectSettingsRequest name */ /** - * Calls GetTag. - * @function getTag - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IGetTagRequest} request GetTagRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetTagCallback} callback Node-style callback called with the error, if any, and Tag - * @returns {undefined} - * @variation 1 + * Constructs a new GetProjectSettingsRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a GetProjectSettingsRequest. + * @implements IGetProjectSettingsRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest=} [properties] Properties to set */ - Object.defineProperty(ArtifactRegistry.prototype.getTag = function getTag(request, callback) { - return this.rpcCall(getTag, $root.google.devtools.artifactregistry.v1.GetTagRequest, $root.google.devtools.artifactregistry.v1.Tag, request, callback); - }, "name", { value: "GetTag" }); + function GetProjectSettingsRequest(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]]; + } /** - * Calls GetTag. - * @function getTag - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * GetProjectSettingsRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest * @instance - * @param {google.devtools.artifactregistry.v1.IGetTagRequest} request GetTagRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + GetProjectSettingsRequest.prototype.name = ""; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|createTag}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef CreateTagCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.Tag} [response] Tag + * Creates a new GetProjectSettingsRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} GetProjectSettingsRequest instance */ + GetProjectSettingsRequest.create = function create(properties) { + return new GetProjectSettingsRequest(properties); + }; /** - * Calls CreateTag. - * @function createTag - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.ICreateTagRequest} request CreateTagRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.CreateTagCallback} callback Node-style callback called with the error, if any, and Tag - * @returns {undefined} - * @variation 1 + * Encodes the specified GetProjectSettingsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetProjectSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest} message GetProjectSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ArtifactRegistry.prototype.createTag = function createTag(request, callback) { - return this.rpcCall(createTag, $root.google.devtools.artifactregistry.v1.CreateTagRequest, $root.google.devtools.artifactregistry.v1.Tag, request, callback); - }, "name", { value: "CreateTag" }); + GetProjectSettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls CreateTag. - * @function createTag - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.ICreateTagRequest} request CreateTagRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified GetProjectSettingsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetProjectSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @static + * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest} message GetProjectSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + GetProjectSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateTag}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef UpdateTagCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.Tag} [response] Tag + * Decodes a GetProjectSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} GetProjectSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetProjectSettingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetProjectSettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls UpdateTag. - * @function updateTag - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest} request UpdateTagRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateTagCallback} callback Node-style callback called with the error, if any, and Tag - * @returns {undefined} - * @variation 1 + * Decodes a GetProjectSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} GetProjectSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(ArtifactRegistry.prototype.updateTag = function updateTag(request, callback) { - return this.rpcCall(updateTag, $root.google.devtools.artifactregistry.v1.UpdateTagRequest, $root.google.devtools.artifactregistry.v1.Tag, request, callback); - }, "name", { value: "UpdateTag" }); + GetProjectSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdateTag. - * @function updateTag - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest} request UpdateTagRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a GetProjectSettingsRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + GetProjectSettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|deleteTag}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef DeleteTagCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a GetProjectSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} GetProjectSettingsRequest */ + GetProjectSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetProjectSettingsRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.GetProjectSettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls DeleteTag. - * @function deleteTag - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest} request DeleteTagRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteTagCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a GetProjectSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @static + * @param {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} message GetProjectSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(ArtifactRegistry.prototype.deleteTag = function deleteTag(request, callback) { - return this.rpcCall(deleteTag, $root.google.devtools.artifactregistry.v1.DeleteTagRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteTag" }); + GetProjectSettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls DeleteTag. - * @function deleteTag - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * Converts this GetProjectSettingsRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest * @instance - * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest} request DeleteTagRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + GetProjectSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|setIamPolicy}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef SetIamPolicyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.iam.v1.Policy} [response] Policy + * Gets the default type url for GetProjectSettingsRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + GetProjectSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetProjectSettingsRequest"; + }; - /** - * Calls SetIamPolicy. - * @function setIamPolicy - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ArtifactRegistry.prototype.setIamPolicy = function setIamPolicy(request, callback) { - return this.rpcCall(setIamPolicy, $root.google.iam.v1.SetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback); - }, "name", { value: "SetIamPolicy" }); + return GetProjectSettingsRequest; + })(); + + v1.UpdateProjectSettingsRequest = (function() { /** - * Calls SetIamPolicy. - * @function setIamPolicy - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of an UpdateProjectSettingsRequest. + * @memberof google.devtools.artifactregistry.v1 + * @interface IUpdateProjectSettingsRequest + * @property {google.devtools.artifactregistry.v1.IProjectSettings|null} [projectSettings] UpdateProjectSettingsRequest projectSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateProjectSettingsRequest updateMask */ /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getIamPolicy}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef GetIamPolicyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.iam.v1.Policy} [response] Policy + * Constructs a new UpdateProjectSettingsRequest. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents an UpdateProjectSettingsRequest. + * @implements IUpdateProjectSettingsRequest + * @constructor + * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest=} [properties] Properties to set */ + function UpdateProjectSettingsRequest(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]]; + } /** - * Calls GetIamPolicy. - * @function getIamPolicy - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * UpdateProjectSettingsRequest projectSettings. + * @member {google.devtools.artifactregistry.v1.IProjectSettings|null|undefined} projectSettings + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest * @instance - * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(ArtifactRegistry.prototype.getIamPolicy = function getIamPolicy(request, callback) { - return this.rpcCall(getIamPolicy, $root.google.iam.v1.GetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback); - }, "name", { value: "GetIamPolicy" }); + UpdateProjectSettingsRequest.prototype.projectSettings = null; /** - * Calls GetIamPolicy. - * @function getIamPolicy - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * UpdateProjectSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest * @instance - * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + UpdateProjectSettingsRequest.prototype.updateMask = null; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|testIamPermissions}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef TestIamPermissionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.iam.v1.TestIamPermissionsResponse} [response] TestIamPermissionsResponse + * Creates a new UpdateProjectSettingsRequest instance using the specified properties. + * @function create + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @static + * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} UpdateProjectSettingsRequest instance */ + UpdateProjectSettingsRequest.create = function create(properties) { + return new UpdateProjectSettingsRequest(properties); + }; /** - * Calls TestIamPermissions. - * @function testIamPermissions - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestIamPermissionsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified UpdateProjectSettingsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @static + * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest} message UpdateProjectSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateProjectSettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectSettings != null && Object.hasOwnProperty.call(message, "projectSettings")) + $root.google.devtools.artifactregistry.v1.ProjectSettings.encode(message.projectSettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateProjectSettingsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @static + * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest} message UpdateProjectSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ArtifactRegistry.prototype.testIamPermissions = function testIamPermissions(request, callback) { - return this.rpcCall(testIamPermissions, $root.google.iam.v1.TestIamPermissionsRequest, $root.google.iam.v1.TestIamPermissionsResponse, request, callback); - }, "name", { value: "TestIamPermissions" }); + UpdateProjectSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls TestIamPermissions. - * @function testIamPermissions - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes an UpdateProjectSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} UpdateProjectSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + UpdateProjectSettingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.projectSettings = $root.google.devtools.artifactregistry.v1.ProjectSettings.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|getProjectSettings}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef GetProjectSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.ProjectSettings} [response] ProjectSettings + * Decodes an UpdateProjectSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} UpdateProjectSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + UpdateProjectSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetProjectSettings. - * @function getProjectSettings - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest} request GetProjectSettingsRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.GetProjectSettingsCallback} callback Node-style callback called with the error, if any, and ProjectSettings - * @returns {undefined} - * @variation 1 + * Verifies an UpdateProjectSettingsRequest message. + * @function verify + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(ArtifactRegistry.prototype.getProjectSettings = function getProjectSettings(request, callback) { - return this.rpcCall(getProjectSettings, $root.google.devtools.artifactregistry.v1.GetProjectSettingsRequest, $root.google.devtools.artifactregistry.v1.ProjectSettings, request, callback); - }, "name", { value: "GetProjectSettings" }); + UpdateProjectSettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectSettings != null && message.hasOwnProperty("projectSettings")) { + var error = $root.google.devtools.artifactregistry.v1.ProjectSettings.verify(message.projectSettings); + if (error) + return "projectSettings." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; /** - * Calls GetProjectSettings. - * @function getProjectSettings - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest} request GetProjectSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates an UpdateProjectSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} UpdateProjectSettingsRequest */ + UpdateProjectSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest(); + if (object.projectSettings != null) { + if (typeof object.projectSettings !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.projectSettings: object expected"); + message.projectSettings = $root.google.devtools.artifactregistry.v1.ProjectSettings.fromObject(object.projectSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; /** - * Callback as used by {@link google.devtools.artifactregistry.v1.ArtifactRegistry|updateProjectSettings}. - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @typedef UpdateProjectSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.devtools.artifactregistry.v1.ProjectSettings} [response] ProjectSettings + * Creates a plain object from an UpdateProjectSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @static + * @param {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} message UpdateProjectSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + UpdateProjectSettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectSettings = null; + object.updateMask = null; + } + if (message.projectSettings != null && message.hasOwnProperty("projectSettings")) + object.projectSettings = $root.google.devtools.artifactregistry.v1.ProjectSettings.toObject(message.projectSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; /** - * Calls UpdateProjectSettings. - * @function updateProjectSettings - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry + * Converts this UpdateProjectSettingsRequest to JSON. + * @function toJSON + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest * @instance - * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest} request UpdateProjectSettingsRequest message or plain object - * @param {google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateProjectSettingsCallback} callback Node-style callback called with the error, if any, and ProjectSettings - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(ArtifactRegistry.prototype.updateProjectSettings = function updateProjectSettings(request, callback) { - return this.rpcCall(updateProjectSettings, $root.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest, $root.google.devtools.artifactregistry.v1.ProjectSettings, request, callback); - }, "name", { value: "UpdateProjectSettings" }); + UpdateProjectSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls UpdateProjectSettings. - * @function updateProjectSettings - * @memberof google.devtools.artifactregistry.v1.ArtifactRegistry - * @instance - * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest} request UpdateProjectSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for UpdateProjectSettingsRequest + * @function getTypeUrl + * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + UpdateProjectSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest"; + }; - return ArtifactRegistry; + return UpdateProjectSettingsRequest; })(); - v1.OperationMetadata = (function() { + v1.Tag = (function() { /** - * Properties of an OperationMetadata. + * Properties of a Tag. * @memberof google.devtools.artifactregistry.v1 - * @interface IOperationMetadata + * @interface ITag + * @property {string|null} [name] Tag name + * @property {string|null} [version] Tag version */ /** - * Constructs a new OperationMetadata. + * Constructs a new Tag. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents an OperationMetadata. - * @implements IOperationMetadata + * @classdesc Represents a Tag. + * @implements ITag * @constructor - * @param {google.devtools.artifactregistry.v1.IOperationMetadata=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.ITag=} [properties] Properties to set */ - function OperationMetadata(properties) { + function Tag(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8404,63 +12768,91 @@ } /** - * Creates a new OperationMetadata instance using the specified properties. + * Tag name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.Tag + * @instance + */ + Tag.prototype.name = ""; + + /** + * Tag version. + * @member {string} version + * @memberof google.devtools.artifactregistry.v1.Tag + * @instance + */ + Tag.prototype.version = ""; + + /** + * Creates a new Tag instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @static - * @param {google.devtools.artifactregistry.v1.IOperationMetadata=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.OperationMetadata} OperationMetadata instance + * @param {google.devtools.artifactregistry.v1.ITag=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.Tag} Tag instance */ - OperationMetadata.create = function create(properties) { - return new OperationMetadata(properties); + Tag.create = function create(properties) { + return new Tag(properties); }; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.devtools.artifactregistry.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified Tag message. Does not implicitly {@link google.devtools.artifactregistry.v1.Tag.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @static - * @param {google.devtools.artifactregistry.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.devtools.artifactregistry.v1.ITag} message Tag message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encode = function encode(message, writer) { + Tag.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); return writer; }; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified Tag message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Tag.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @static - * @param {google.devtools.artifactregistry.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.devtools.artifactregistry.v1.ITag} message Tag message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + Tag.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes a Tag message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.OperationMetadata} OperationMetadata + * @returns {google.devtools.artifactregistry.v1.Tag} Tag * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decode = function decode(reader, length) { + Tag.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.OperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Tag(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.version = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -8470,110 +12862,134 @@ }; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a Tag message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.OperationMetadata} OperationMetadata + * @returns {google.devtools.artifactregistry.v1.Tag} Tag * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + Tag.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OperationMetadata message. + * Verifies a Tag message. * @function verify - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OperationMetadata.verify = function verify(message) { + Tag.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a Tag message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.OperationMetadata} OperationMetadata + * @returns {google.devtools.artifactregistry.v1.Tag} Tag */ - OperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.OperationMetadata) + Tag.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.Tag) return object; - return new $root.google.devtools.artifactregistry.v1.OperationMetadata(); + var message = new $root.google.devtools.artifactregistry.v1.Tag(); + if (object.name != null) + message.name = String(object.name); + if (object.version != null) + message.version = String(object.version); + return message; }; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a Tag message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @static - * @param {google.devtools.artifactregistry.v1.OperationMetadata} message OperationMetadata + * @param {google.devtools.artifactregistry.v1.Tag} message Tag * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OperationMetadata.toObject = function toObject() { - return {}; + Tag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.version = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; }; /** - * Converts this OperationMetadata to JSON. + * Converts this Tag to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @instance * @returns {Object.} JSON object */ - OperationMetadata.prototype.toJSON = function toJSON() { + Tag.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for Tag * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.OperationMetadata + * @memberof google.devtools.artifactregistry.v1.Tag * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Tag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.OperationMetadata"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Tag"; }; - return OperationMetadata; + return Tag; })(); - v1.ProjectSettings = (function() { + v1.ListTagsRequest = (function() { /** - * Properties of a ProjectSettings. + * Properties of a ListTagsRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IProjectSettings - * @property {string|null} [name] ProjectSettings name - * @property {google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState|null} [legacyRedirectionState] ProjectSettings legacyRedirectionState + * @interface IListTagsRequest + * @property {string|null} [parent] ListTagsRequest parent + * @property {string|null} [filter] ListTagsRequest filter + * @property {number|null} [pageSize] ListTagsRequest pageSize + * @property {string|null} [pageToken] ListTagsRequest pageToken */ /** - * Constructs a new ProjectSettings. + * Constructs a new ListTagsRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ProjectSettings. - * @implements IProjectSettings + * @classdesc Represents a ListTagsRequest. + * @implements IListTagsRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IProjectSettings=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListTagsRequest=} [properties] Properties to set */ - function ProjectSettings(properties) { + function ListTagsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8581,89 +12997,117 @@ } /** - * ProjectSettings name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * ListTagsRequest parent. + * @member {string} parent + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @instance */ - ProjectSettings.prototype.name = ""; + ListTagsRequest.prototype.parent = ""; /** - * ProjectSettings legacyRedirectionState. - * @member {google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState} legacyRedirectionState - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * ListTagsRequest filter. + * @member {string} filter + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @instance */ - ProjectSettings.prototype.legacyRedirectionState = 0; + ListTagsRequest.prototype.filter = ""; /** - * Creates a new ProjectSettings instance using the specified properties. + * ListTagsRequest pageSize. + * @member {number} pageSize + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @instance + */ + ListTagsRequest.prototype.pageSize = 0; + + /** + * ListTagsRequest pageToken. + * @member {string} pageToken + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @instance + */ + ListTagsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListTagsRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @static - * @param {google.devtools.artifactregistry.v1.IProjectSettings=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ProjectSettings} ProjectSettings instance + * @param {google.devtools.artifactregistry.v1.IListTagsRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListTagsRequest} ListTagsRequest instance */ - ProjectSettings.create = function create(properties) { - return new ProjectSettings(properties); + ListTagsRequest.create = function create(properties) { + return new ListTagsRequest(properties); }; /** - * Encodes the specified ProjectSettings message. Does not implicitly {@link google.devtools.artifactregistry.v1.ProjectSettings.verify|verify} messages. + * Encodes the specified ListTagsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @static - * @param {google.devtools.artifactregistry.v1.IProjectSettings} message ProjectSettings message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListTagsRequest} message ListTagsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectSettings.encode = function encode(message, writer) { + ListTagsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.legacyRedirectionState != null && Object.hasOwnProperty.call(message, "legacyRedirectionState")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.legacyRedirectionState); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified ProjectSettings message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ProjectSettings.verify|verify} messages. + * Encodes the specified ListTagsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @static - * @param {google.devtools.artifactregistry.v1.IProjectSettings} message ProjectSettings message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListTagsRequest} message ListTagsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProjectSettings.encodeDelimited = function encodeDelimited(message, writer) { + ListTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ProjectSettings message from the specified reader or buffer. + * Decodes a ListTagsRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ProjectSettings} ProjectSettings + * @returns {google.devtools.artifactregistry.v1.ListTagsRequest} ListTagsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProjectSettings.decode = function decode(reader, length) { + ListTagsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ProjectSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListTagsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); break; } case 2: { - message.legacyRedirectionState = reader.int32(); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -8675,178 +13119,149 @@ }; /** - * Decodes a ProjectSettings message from the specified reader or buffer, length delimited. + * Decodes a ListTagsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ProjectSettings} ProjectSettings + * @returns {google.devtools.artifactregistry.v1.ListTagsRequest} ListTagsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProjectSettings.decodeDelimited = function decodeDelimited(reader) { + ListTagsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ProjectSettings message. + * Verifies a ListTagsRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ProjectSettings.verify = function verify(message) { + ListTagsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.legacyRedirectionState != null && message.hasOwnProperty("legacyRedirectionState")) - switch (message.legacyRedirectionState) { - default: - return "legacyRedirectionState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ProjectSettings message from a plain object. Also converts values to their respective internal types. + * Creates a ListTagsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ProjectSettings} ProjectSettings + * @returns {google.devtools.artifactregistry.v1.ListTagsRequest} ListTagsRequest */ - ProjectSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ProjectSettings) + ListTagsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListTagsRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.ProjectSettings(); - if (object.name != null) - message.name = String(object.name); - switch (object.legacyRedirectionState) { - default: - if (typeof object.legacyRedirectionState === "number") { - message.legacyRedirectionState = object.legacyRedirectionState; - break; - } - break; - case "REDIRECTION_STATE_UNSPECIFIED": - case 0: - message.legacyRedirectionState = 0; - break; - case "REDIRECTION_FROM_GCR_IO_DISABLED": - case 1: - message.legacyRedirectionState = 1; - break; - case "REDIRECTION_FROM_GCR_IO_ENABLED": - case 2: - message.legacyRedirectionState = 2; - break; - case "REDIRECTION_FROM_GCR_IO_FINALIZED": - case 3: - message.legacyRedirectionState = 3; - break; - } + var message = new $root.google.devtools.artifactregistry.v1.ListTagsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ProjectSettings message. Also converts values to other types if specified. + * Creates a plain object from a ListTagsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @static - * @param {google.devtools.artifactregistry.v1.ProjectSettings} message ProjectSettings + * @param {google.devtools.artifactregistry.v1.ListTagsRequest} message ListTagsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProjectSettings.toObject = function toObject(message, options) { + ListTagsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.legacyRedirectionState = options.enums === String ? "REDIRECTION_STATE_UNSPECIFIED" : 0; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.legacyRedirectionState != null && message.hasOwnProperty("legacyRedirectionState")) - object.legacyRedirectionState = options.enums === String ? $root.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState[message.legacyRedirectionState] === undefined ? message.legacyRedirectionState : $root.google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState[message.legacyRedirectionState] : message.legacyRedirectionState; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this ProjectSettings to JSON. + * Converts this ListTagsRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @instance * @returns {Object.} JSON object */ - ProjectSettings.prototype.toJSON = function toJSON() { + ListTagsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ProjectSettings + * Gets the default type url for ListTagsRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ProjectSettings + * @memberof google.devtools.artifactregistry.v1.ListTagsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ProjectSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ProjectSettings"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListTagsRequest"; }; - /** - * RedirectionState enum. - * @name google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState - * @enum {number} - * @property {number} REDIRECTION_STATE_UNSPECIFIED=0 REDIRECTION_STATE_UNSPECIFIED value - * @property {number} REDIRECTION_FROM_GCR_IO_DISABLED=1 REDIRECTION_FROM_GCR_IO_DISABLED value - * @property {number} REDIRECTION_FROM_GCR_IO_ENABLED=2 REDIRECTION_FROM_GCR_IO_ENABLED value - * @property {number} REDIRECTION_FROM_GCR_IO_FINALIZED=3 REDIRECTION_FROM_GCR_IO_FINALIZED value - */ - ProjectSettings.RedirectionState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REDIRECTION_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "REDIRECTION_FROM_GCR_IO_DISABLED"] = 1; - values[valuesById[2] = "REDIRECTION_FROM_GCR_IO_ENABLED"] = 2; - values[valuesById[3] = "REDIRECTION_FROM_GCR_IO_FINALIZED"] = 3; - return values; - })(); - - return ProjectSettings; + return ListTagsRequest; })(); - v1.GetProjectSettingsRequest = (function() { + v1.ListTagsResponse = (function() { /** - * Properties of a GetProjectSettingsRequest. + * Properties of a ListTagsResponse. * @memberof google.devtools.artifactregistry.v1 - * @interface IGetProjectSettingsRequest - * @property {string|null} [name] GetProjectSettingsRequest name + * @interface IListTagsResponse + * @property {Array.|null} [tags] ListTagsResponse tags + * @property {string|null} [nextPageToken] ListTagsResponse nextPageToken */ /** - * Constructs a new GetProjectSettingsRequest. + * Constructs a new ListTagsResponse. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a GetProjectSettingsRequest. - * @implements IGetProjectSettingsRequest + * @classdesc Represents a ListTagsResponse. + * @implements IListTagsResponse * @constructor - * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListTagsResponse=} [properties] Properties to set */ - function GetProjectSettingsRequest(properties) { + function ListTagsResponse(properties) { + this.tags = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8854,75 +13269,92 @@ } /** - * GetProjectSettingsRequest name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * ListTagsResponse tags. + * @member {Array.} tags + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @instance */ - GetProjectSettingsRequest.prototype.name = ""; + ListTagsResponse.prototype.tags = $util.emptyArray; /** - * Creates a new GetProjectSettingsRequest instance using the specified properties. + * ListTagsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @instance + */ + ListTagsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListTagsResponse instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @static - * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} GetProjectSettingsRequest instance + * @param {google.devtools.artifactregistry.v1.IListTagsResponse=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListTagsResponse} ListTagsResponse instance */ - GetProjectSettingsRequest.create = function create(properties) { - return new GetProjectSettingsRequest(properties); + ListTagsResponse.create = function create(properties) { + return new ListTagsResponse(properties); }; /** - * Encodes the specified GetProjectSettingsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetProjectSettingsRequest.verify|verify} messages. + * Encodes the specified ListTagsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsResponse.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @static - * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest} message GetProjectSettingsRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListTagsResponse} message ListTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetProjectSettingsRequest.encode = function encode(message, writer) { + ListTagsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + $root.google.devtools.artifactregistry.v1.Tag.encode(message.tags[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetProjectSettingsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetProjectSettingsRequest.verify|verify} messages. + * Encodes the specified ListTagsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @static - * @param {google.devtools.artifactregistry.v1.IGetProjectSettingsRequest} message GetProjectSettingsRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListTagsResponse} message ListTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetProjectSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetProjectSettingsRequest message from the specified reader or buffer. + * Decodes a ListTagsResponse message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} GetProjectSettingsRequest + * @returns {google.devtools.artifactregistry.v1.ListTagsResponse} ListTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetProjectSettingsRequest.decode = function decode(reader, length) { + ListTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetProjectSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListTagsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push($root.google.devtools.artifactregistry.v1.Tag.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -8934,123 +13366,148 @@ }; /** - * Decodes a GetProjectSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTagsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} GetProjectSettingsRequest + * @returns {google.devtools.artifactregistry.v1.ListTagsResponse} ListTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetProjectSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ListTagsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetProjectSettingsRequest message. + * Verifies a ListTagsResponse message. * @function verify - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetProjectSettingsRequest.verify = function verify(message) { + ListTagsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.Tag.verify(message.tags[i]); + if (error) + return "tags." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetProjectSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTagsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} GetProjectSettingsRequest + * @returns {google.devtools.artifactregistry.v1.ListTagsResponse} ListTagsResponse */ - GetProjectSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.GetProjectSettingsRequest) + ListTagsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListTagsResponse) return object; - var message = new $root.google.devtools.artifactregistry.v1.GetProjectSettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.devtools.artifactregistry.v1.ListTagsResponse(); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.devtools.artifactregistry.v1.ListTagsResponse.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) { + if (typeof object.tags[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.ListTagsResponse.tags: object expected"); + message.tags[i] = $root.google.devtools.artifactregistry.v1.Tag.fromObject(object.tags[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetProjectSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTagsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @static - * @param {google.devtools.artifactregistry.v1.GetProjectSettingsRequest} message GetProjectSettingsRequest + * @param {google.devtools.artifactregistry.v1.ListTagsResponse} message ListTagsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetProjectSettingsRequest.toObject = function toObject(message, options) { + ListTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.tags = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = $root.google.devtools.artifactregistry.v1.Tag.toObject(message.tags[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetProjectSettingsRequest to JSON. + * Converts this ListTagsResponse to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @instance * @returns {Object.} JSON object */ - GetProjectSettingsRequest.prototype.toJSON = function toJSON() { + ListTagsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetProjectSettingsRequest + * Gets the default type url for ListTagsResponse * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.GetProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.ListTagsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetProjectSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetProjectSettingsRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListTagsResponse"; }; - return GetProjectSettingsRequest; + return ListTagsResponse; })(); - v1.UpdateProjectSettingsRequest = (function() { + v1.GetTagRequest = (function() { /** - * Properties of an UpdateProjectSettingsRequest. + * Properties of a GetTagRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IUpdateProjectSettingsRequest - * @property {google.devtools.artifactregistry.v1.IProjectSettings|null} [projectSettings] UpdateProjectSettingsRequest projectSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateProjectSettingsRequest updateMask + * @interface IGetTagRequest + * @property {string|null} [name] GetTagRequest name */ /** - * Constructs a new UpdateProjectSettingsRequest. + * Constructs a new GetTagRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents an UpdateProjectSettingsRequest. - * @implements IUpdateProjectSettingsRequest + * @classdesc Represents a GetTagRequest. + * @implements IGetTagRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IGetTagRequest=} [properties] Properties to set */ - function UpdateProjectSettingsRequest(properties) { + function GetTagRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9058,89 +13515,75 @@ } /** - * UpdateProjectSettingsRequest projectSettings. - * @member {google.devtools.artifactregistry.v1.IProjectSettings|null|undefined} projectSettings - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest - * @instance - */ - UpdateProjectSettingsRequest.prototype.projectSettings = null; - - /** - * UpdateProjectSettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * GetTagRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @instance */ - UpdateProjectSettingsRequest.prototype.updateMask = null; + GetTagRequest.prototype.name = ""; /** - * Creates a new UpdateProjectSettingsRequest instance using the specified properties. + * Creates a new GetTagRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @static - * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} UpdateProjectSettingsRequest instance + * @param {google.devtools.artifactregistry.v1.IGetTagRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetTagRequest} GetTagRequest instance */ - UpdateProjectSettingsRequest.create = function create(properties) { - return new UpdateProjectSettingsRequest(properties); + GetTagRequest.create = function create(properties) { + return new GetTagRequest(properties); }; /** - * Encodes the specified UpdateProjectSettingsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.verify|verify} messages. + * Encodes the specified GetTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetTagRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @static - * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest} message UpdateProjectSettingsRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetTagRequest} message GetTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateProjectSettingsRequest.encode = function encode(message, writer) { + GetTagRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectSettings != null && Object.hasOwnProperty.call(message, "projectSettings")) - $root.google.devtools.artifactregistry.v1.ProjectSettings.encode(message.projectSettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateProjectSettingsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.verify|verify} messages. + * Encodes the specified GetTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetTagRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @static - * @param {google.devtools.artifactregistry.v1.IUpdateProjectSettingsRequest} message UpdateProjectSettingsRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetTagRequest} message GetTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateProjectSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTagRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateProjectSettingsRequest message from the specified reader or buffer. + * Decodes a GetTagRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} UpdateProjectSettingsRequest + * @returns {google.devtools.artifactregistry.v1.GetTagRequest} GetTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateProjectSettingsRequest.decode = function decode(reader, length) { + GetTagRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetTagRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.projectSettings = $root.google.devtools.artifactregistry.v1.ProjectSettings.decode(reader, reader.uint32()); - break; - } - case 3: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 1: { + message.name = reader.string(); break; } default: @@ -9152,142 +13595,124 @@ }; /** - * Decodes an UpdateProjectSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTagRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} UpdateProjectSettingsRequest + * @returns {google.devtools.artifactregistry.v1.GetTagRequest} GetTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateProjectSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + GetTagRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateProjectSettingsRequest message. + * Verifies a GetTagRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateProjectSettingsRequest.verify = function verify(message) { + GetTagRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectSettings != null && message.hasOwnProperty("projectSettings")) { - var error = $root.google.devtools.artifactregistry.v1.ProjectSettings.verify(message.projectSettings); - if (error) - return "projectSettings." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateProjectSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTagRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} UpdateProjectSettingsRequest + * @returns {google.devtools.artifactregistry.v1.GetTagRequest} GetTagRequest */ - UpdateProjectSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest) + GetTagRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetTagRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest(); - if (object.projectSettings != null) { - if (typeof object.projectSettings !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.projectSettings: object expected"); - message.projectSettings = $root.google.devtools.artifactregistry.v1.ProjectSettings.fromObject(object.projectSettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.devtools.artifactregistry.v1.GetTagRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateProjectSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTagRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @static - * @param {google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest} message UpdateProjectSettingsRequest + * @param {google.devtools.artifactregistry.v1.GetTagRequest} message GetTagRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateProjectSettingsRequest.toObject = function toObject(message, options) { + GetTagRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectSettings = null; - object.updateMask = null; - } - if (message.projectSettings != null && message.hasOwnProperty("projectSettings")) - object.projectSettings = $root.google.devtools.artifactregistry.v1.ProjectSettings.toObject(message.projectSettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateProjectSettingsRequest to JSON. + * Converts this GetTagRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @instance * @returns {Object.} JSON object */ - UpdateProjectSettingsRequest.prototype.toJSON = function toJSON() { + GetTagRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateProjectSettingsRequest + * Gets the default type url for GetTagRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest + * @memberof google.devtools.artifactregistry.v1.GetTagRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateProjectSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTagRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetTagRequest"; }; - return UpdateProjectSettingsRequest; + return GetTagRequest; })(); - v1.Tag = (function() { + v1.CreateTagRequest = (function() { /** - * Properties of a Tag. + * Properties of a CreateTagRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface ITag - * @property {string|null} [name] Tag name - * @property {string|null} [version] Tag version + * @interface ICreateTagRequest + * @property {string|null} [parent] CreateTagRequest parent + * @property {string|null} [tagId] CreateTagRequest tagId + * @property {google.devtools.artifactregistry.v1.ITag|null} [tag] CreateTagRequest tag */ /** - * Constructs a new Tag. + * Constructs a new CreateTagRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a Tag. - * @implements ITag + * @classdesc Represents a CreateTagRequest. + * @implements ICreateTagRequest * @constructor - * @param {google.devtools.artifactregistry.v1.ITag=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.ICreateTagRequest=} [properties] Properties to set */ - function Tag(properties) { + function CreateTagRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9295,89 +13720,103 @@ } /** - * Tag name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.Tag + * CreateTagRequest parent. + * @member {string} parent + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @instance */ - Tag.prototype.name = ""; + CreateTagRequest.prototype.parent = ""; /** - * Tag version. - * @member {string} version - * @memberof google.devtools.artifactregistry.v1.Tag + * CreateTagRequest tagId. + * @member {string} tagId + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @instance */ - Tag.prototype.version = ""; + CreateTagRequest.prototype.tagId = ""; /** - * Creates a new Tag instance using the specified properties. + * CreateTagRequest tag. + * @member {google.devtools.artifactregistry.v1.ITag|null|undefined} tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @instance + */ + CreateTagRequest.prototype.tag = null; + + /** + * Creates a new CreateTagRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @static - * @param {google.devtools.artifactregistry.v1.ITag=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.Tag} Tag instance + * @param {google.devtools.artifactregistry.v1.ICreateTagRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.CreateTagRequest} CreateTagRequest instance */ - Tag.create = function create(properties) { - return new Tag(properties); + CreateTagRequest.create = function create(properties) { + return new CreateTagRequest(properties); }; /** - * Encodes the specified Tag message. Does not implicitly {@link google.devtools.artifactregistry.v1.Tag.verify|verify} messages. + * Encodes the specified CreateTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateTagRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @static - * @param {google.devtools.artifactregistry.v1.ITag} message Tag message or plain object to encode + * @param {google.devtools.artifactregistry.v1.ICreateTagRequest} message CreateTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Tag.encode = function encode(message, writer) { + CreateTagRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.tagId != null && Object.hasOwnProperty.call(message, "tagId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tagId); + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) + $root.google.devtools.artifactregistry.v1.Tag.encode(message.tag, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Tag message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Tag.verify|verify} messages. + * Encodes the specified CreateTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateTagRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @static - * @param {google.devtools.artifactregistry.v1.ITag} message Tag message or plain object to encode + * @param {google.devtools.artifactregistry.v1.ICreateTagRequest} message CreateTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Tag.encodeDelimited = function encodeDelimited(message, writer) { + CreateTagRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Tag message from the specified reader or buffer. + * Decodes a CreateTagRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.Tag} Tag + * @returns {google.devtools.artifactregistry.v1.CreateTagRequest} CreateTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tag.decode = function decode(reader, length) { + CreateTagRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Tag(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.CreateTagRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.version = reader.string(); + message.tagId = reader.string(); + break; + } + case 3: { + message.tag = $root.google.devtools.artifactregistry.v1.Tag.decode(reader, reader.uint32()); break; } default: @@ -9389,134 +13828,145 @@ }; /** - * Decodes a Tag message from the specified reader or buffer, length delimited. + * Decodes a CreateTagRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.Tag} Tag + * @returns {google.devtools.artifactregistry.v1.CreateTagRequest} CreateTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tag.decodeDelimited = function decodeDelimited(reader) { + CreateTagRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Tag message. + * Verifies a CreateTagRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Tag.verify = function verify(message) { + CreateTagRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.tagId != null && message.hasOwnProperty("tagId")) + if (!$util.isString(message.tagId)) + return "tagId: string expected"; + if (message.tag != null && message.hasOwnProperty("tag")) { + var error = $root.google.devtools.artifactregistry.v1.Tag.verify(message.tag); + if (error) + return "tag." + error; + } return null; }; /** - * Creates a Tag message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTagRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.Tag} Tag + * @returns {google.devtools.artifactregistry.v1.CreateTagRequest} CreateTagRequest */ - Tag.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.Tag) + CreateTagRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.CreateTagRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.Tag(); - if (object.name != null) - message.name = String(object.name); - if (object.version != null) - message.version = String(object.version); + var message = new $root.google.devtools.artifactregistry.v1.CreateTagRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.tagId != null) + message.tagId = String(object.tagId); + if (object.tag != null) { + if (typeof object.tag !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.CreateTagRequest.tag: object expected"); + message.tag = $root.google.devtools.artifactregistry.v1.Tag.fromObject(object.tag); + } return message; }; /** - * Creates a plain object from a Tag message. Also converts values to other types if specified. + * Creates a plain object from a CreateTagRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @static - * @param {google.devtools.artifactregistry.v1.Tag} message Tag + * @param {google.devtools.artifactregistry.v1.CreateTagRequest} message CreateTagRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Tag.toObject = function toObject(message, options) { + CreateTagRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.version = ""; + object.parent = ""; + object.tagId = ""; + object.tag = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.tagId != null && message.hasOwnProperty("tagId")) + object.tagId = message.tagId; + if (message.tag != null && message.hasOwnProperty("tag")) + object.tag = $root.google.devtools.artifactregistry.v1.Tag.toObject(message.tag, options); return object; }; /** - * Converts this Tag to JSON. + * Converts this CreateTagRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @instance * @returns {Object.} JSON object */ - Tag.prototype.toJSON = function toJSON() { + CreateTagRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Tag + * Gets the default type url for CreateTagRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.Tag + * @memberof google.devtools.artifactregistry.v1.CreateTagRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Tag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateTagRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Tag"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.CreateTagRequest"; }; - return Tag; + return CreateTagRequest; })(); - v1.ListTagsRequest = (function() { + v1.UpdateTagRequest = (function() { /** - * Properties of a ListTagsRequest. + * Properties of an UpdateTagRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IListTagsRequest - * @property {string|null} [parent] ListTagsRequest parent - * @property {string|null} [filter] ListTagsRequest filter - * @property {number|null} [pageSize] ListTagsRequest pageSize - * @property {string|null} [pageToken] ListTagsRequest pageToken + * @interface IUpdateTagRequest + * @property {google.devtools.artifactregistry.v1.ITag|null} [tag] UpdateTagRequest tag + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTagRequest updateMask */ /** - * Constructs a new ListTagsRequest. + * Constructs a new UpdateTagRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListTagsRequest. - * @implements IListTagsRequest + * @classdesc Represents an UpdateTagRequest. + * @implements IUpdateTagRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IListTagsRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest=} [properties] Properties to set */ - function ListTagsRequest(properties) { + function UpdateTagRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9524,117 +13974,89 @@ } /** - * ListTagsRequest parent. - * @member {string} parent - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest - * @instance - */ - ListTagsRequest.prototype.parent = ""; - - /** - * ListTagsRequest filter. - * @member {string} filter - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest - * @instance - */ - ListTagsRequest.prototype.filter = ""; - - /** - * ListTagsRequest pageSize. - * @member {number} pageSize - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * UpdateTagRequest tag. + * @member {google.devtools.artifactregistry.v1.ITag|null|undefined} tag + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @instance */ - ListTagsRequest.prototype.pageSize = 0; + UpdateTagRequest.prototype.tag = null; /** - * ListTagsRequest pageToken. - * @member {string} pageToken - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * UpdateTagRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @instance */ - ListTagsRequest.prototype.pageToken = ""; + UpdateTagRequest.prototype.updateMask = null; /** - * Creates a new ListTagsRequest instance using the specified properties. + * Creates a new UpdateTagRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @static - * @param {google.devtools.artifactregistry.v1.IListTagsRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListTagsRequest} ListTagsRequest instance + * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.UpdateTagRequest} UpdateTagRequest instance */ - ListTagsRequest.create = function create(properties) { - return new ListTagsRequest(properties); + UpdateTagRequest.create = function create(properties) { + return new UpdateTagRequest(properties); }; /** - * Encodes the specified ListTagsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsRequest.verify|verify} messages. + * Encodes the specified UpdateTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateTagRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @static - * @param {google.devtools.artifactregistry.v1.IListTagsRequest} message ListTagsRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest} message UpdateTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTagsRequest.encode = function encode(message, writer) { + UpdateTagRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) + $root.google.devtools.artifactregistry.v1.Tag.encode(message.tag, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTagsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsRequest.verify|verify} messages. + * Encodes the specified UpdateTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateTagRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @static - * @param {google.devtools.artifactregistry.v1.IListTagsRequest} message ListTagsRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest} message UpdateTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateTagRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTagsRequest message from the specified reader or buffer. + * Decodes an UpdateTagRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListTagsRequest} ListTagsRequest + * @returns {google.devtools.artifactregistry.v1.UpdateTagRequest} UpdateTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTagsRequest.decode = function decode(reader, length) { + UpdateTagRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListTagsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.UpdateTagRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + message.tag = $root.google.devtools.artifactregistry.v1.Tag.decode(reader, reader.uint32()); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -9646,149 +14068,141 @@ }; /** - * Decodes a ListTagsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateTagRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListTagsRequest} ListTagsRequest + * @returns {google.devtools.artifactregistry.v1.UpdateTagRequest} UpdateTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTagsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateTagRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTagsRequest message. + * Verifies an UpdateTagRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTagsRequest.verify = function verify(message) { + UpdateTagRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.tag != null && message.hasOwnProperty("tag")) { + var error = $root.google.devtools.artifactregistry.v1.Tag.verify(message.tag); + if (error) + return "tag." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a ListTagsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTagRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListTagsRequest} ListTagsRequest + * @returns {google.devtools.artifactregistry.v1.UpdateTagRequest} UpdateTagRequest */ - ListTagsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListTagsRequest) + UpdateTagRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.UpdateTagRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.ListTagsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.devtools.artifactregistry.v1.UpdateTagRequest(); + if (object.tag != null) { + if (typeof object.tag !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.UpdateTagRequest.tag: object expected"); + message.tag = $root.google.devtools.artifactregistry.v1.Tag.fromObject(object.tag); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.UpdateTagRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a ListTagsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateTagRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @static - * @param {google.devtools.artifactregistry.v1.ListTagsRequest} message ListTagsRequest + * @param {google.devtools.artifactregistry.v1.UpdateTagRequest} message UpdateTagRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTagsRequest.toObject = function toObject(message, options) { + UpdateTagRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.tag = null; + object.updateMask = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.tag != null && message.hasOwnProperty("tag")) + object.tag = $root.google.devtools.artifactregistry.v1.Tag.toObject(message.tag, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListTagsRequest to JSON. + * Converts this UpdateTagRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @instance * @returns {Object.} JSON object */ - ListTagsRequest.prototype.toJSON = function toJSON() { + UpdateTagRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTagsRequest + * Gets the default type url for UpdateTagRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListTagsRequest + * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateTagRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListTagsRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.UpdateTagRequest"; }; - return ListTagsRequest; + return UpdateTagRequest; })(); - v1.ListTagsResponse = (function() { + v1.DeleteTagRequest = (function() { /** - * Properties of a ListTagsResponse. + * Properties of a DeleteTagRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IListTagsResponse - * @property {Array.|null} [tags] ListTagsResponse tags - * @property {string|null} [nextPageToken] ListTagsResponse nextPageToken + * @interface IDeleteTagRequest + * @property {string|null} [name] DeleteTagRequest name */ /** - * Constructs a new ListTagsResponse. + * Constructs a new DeleteTagRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListTagsResponse. - * @implements IListTagsResponse + * @classdesc Represents a DeleteTagRequest. + * @implements IDeleteTagRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IListTagsResponse=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest=} [properties] Properties to set */ - function ListTagsResponse(properties) { - this.tags = []; + function DeleteTagRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9796,92 +14210,75 @@ } /** - * ListTagsResponse tags. - * @member {Array.} tags - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse - * @instance - */ - ListTagsResponse.prototype.tags = $util.emptyArray; - - /** - * ListTagsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * DeleteTagRequest name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @instance */ - ListTagsResponse.prototype.nextPageToken = ""; + DeleteTagRequest.prototype.name = ""; /** - * Creates a new ListTagsResponse instance using the specified properties. + * Creates a new DeleteTagRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @static - * @param {google.devtools.artifactregistry.v1.IListTagsResponse=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListTagsResponse} ListTagsResponse instance + * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.DeleteTagRequest} DeleteTagRequest instance */ - ListTagsResponse.create = function create(properties) { - return new ListTagsResponse(properties); + DeleteTagRequest.create = function create(properties) { + return new DeleteTagRequest(properties); }; /** - * Encodes the specified ListTagsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsResponse.verify|verify} messages. + * Encodes the specified DeleteTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteTagRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @static - * @param {google.devtools.artifactregistry.v1.IListTagsResponse} message ListTagsResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest} message DeleteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTagsResponse.encode = function encode(message, writer) { + DeleteTagRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - $root.google.devtools.artifactregistry.v1.Tag.encode(message.tags[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListTagsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListTagsResponse.verify|verify} messages. + * Encodes the specified DeleteTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteTagRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @static - * @param {google.devtools.artifactregistry.v1.IListTagsResponse} message ListTagsResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest} message DeleteTagRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTagsResponse message from the specified reader or buffer. + * Decodes a DeleteTagRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListTagsResponse} ListTagsResponse + * @returns {google.devtools.artifactregistry.v1.DeleteTagRequest} DeleteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTagsResponse.decode = function decode(reader, length) { + DeleteTagRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListTagsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.DeleteTagRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push($root.google.devtools.artifactregistry.v1.Tag.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -9893,148 +14290,144 @@ }; /** - * Decodes a ListTagsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteTagRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListTagsResponse} ListTagsResponse + * @returns {google.devtools.artifactregistry.v1.DeleteTagRequest} DeleteTagRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTagsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteTagRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTagsResponse message. + * Verifies a DeleteTagRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTagsResponse.verify = function verify(message) { + DeleteTagRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) { - var error = $root.google.devtools.artifactregistry.v1.Tag.verify(message.tags[i]); - if (error) - return "tags." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListTagsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTagRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @static - * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListTagsResponse} ListTagsResponse - */ - ListTagsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListTagsResponse) - return object; - var message = new $root.google.devtools.artifactregistry.v1.ListTagsResponse(); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".google.devtools.artifactregistry.v1.ListTagsResponse.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) { - if (typeof object.tags[i] !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.ListTagsResponse.tags: object expected"); - message.tags[i] = $root.google.devtools.artifactregistry.v1.Tag.fromObject(object.tags[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + * @param {Object.} object Plain object + * @returns {google.devtools.artifactregistry.v1.DeleteTagRequest} DeleteTagRequest + */ + DeleteTagRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.DeleteTagRequest) + return object; + var message = new $root.google.devtools.artifactregistry.v1.DeleteTagRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListTagsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTagRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @static - * @param {google.devtools.artifactregistry.v1.ListTagsResponse} message ListTagsResponse + * @param {google.devtools.artifactregistry.v1.DeleteTagRequest} message DeleteTagRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTagsResponse.toObject = function toObject(message, options) { + DeleteTagRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.tags = []; if (options.defaults) - object.nextPageToken = ""; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = $root.google.devtools.artifactregistry.v1.Tag.toObject(message.tags[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListTagsResponse to JSON. + * Converts this DeleteTagRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @instance * @returns {Object.} JSON object */ - ListTagsResponse.prototype.toJSON = function toJSON() { + DeleteTagRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTagsResponse + * Gets the default type url for DeleteTagRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListTagsResponse + * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteTagRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListTagsResponse"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.DeleteTagRequest"; }; - return ListTagsResponse; + return DeleteTagRequest; })(); - v1.GetTagRequest = (function() { + /** + * VersionView enum. + * @name google.devtools.artifactregistry.v1.VersionView + * @enum {number} + * @property {number} VERSION_VIEW_UNSPECIFIED=0 VERSION_VIEW_UNSPECIFIED value + * @property {number} BASIC=1 BASIC value + * @property {number} FULL=2 FULL value + */ + v1.VersionView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VERSION_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "BASIC"] = 1; + values[valuesById[2] = "FULL"] = 2; + return values; + })(); + + v1.Version = (function() { /** - * Properties of a GetTagRequest. + * Properties of a Version. * @memberof google.devtools.artifactregistry.v1 - * @interface IGetTagRequest - * @property {string|null} [name] GetTagRequest name + * @interface IVersion + * @property {string|null} [name] Version name + * @property {string|null} [description] Version description + * @property {google.protobuf.ITimestamp|null} [createTime] Version createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Version updateTime + * @property {Array.|null} [relatedTags] Version relatedTags + * @property {google.protobuf.IStruct|null} [metadata] Version metadata */ /** - * Constructs a new GetTagRequest. + * Constructs a new Version. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a GetTagRequest. - * @implements IGetTagRequest + * @classdesc Represents a Version. + * @implements IVersion * @constructor - * @param {google.devtools.artifactregistry.v1.IGetTagRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IVersion=} [properties] Properties to set */ - function GetTagRequest(properties) { + function Version(properties) { + this.relatedTags = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10042,70 +14435,121 @@ } /** - * GetTagRequest name. + * Version name. * @member {string} name - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @instance */ - GetTagRequest.prototype.name = ""; + Version.prototype.name = ""; /** - * Creates a new GetTagRequest instance using the specified properties. + * Version description. + * @member {string} description + * @memberof google.devtools.artifactregistry.v1.Version + * @instance + */ + Version.prototype.description = ""; + + /** + * Version createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.devtools.artifactregistry.v1.Version + * @instance + */ + Version.prototype.createTime = null; + + /** + * Version updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.devtools.artifactregistry.v1.Version + * @instance + */ + Version.prototype.updateTime = null; + + /** + * Version relatedTags. + * @member {Array.} relatedTags + * @memberof google.devtools.artifactregistry.v1.Version + * @instance + */ + Version.prototype.relatedTags = $util.emptyArray; + + /** + * Version metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.devtools.artifactregistry.v1.Version + * @instance + */ + Version.prototype.metadata = null; + + /** + * Creates a new Version instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @static - * @param {google.devtools.artifactregistry.v1.IGetTagRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.GetTagRequest} GetTagRequest instance + * @param {google.devtools.artifactregistry.v1.IVersion=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.Version} Version instance */ - GetTagRequest.create = function create(properties) { - return new GetTagRequest(properties); + Version.create = function create(properties) { + return new Version(properties); }; /** - * Encodes the specified GetTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetTagRequest.verify|verify} messages. + * Encodes the specified Version message. Does not implicitly {@link google.devtools.artifactregistry.v1.Version.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @static - * @param {google.devtools.artifactregistry.v1.IGetTagRequest} message GetTagRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IVersion} message Version message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTagRequest.encode = function encode(message, writer) { + Version.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.relatedTags != null && message.relatedTags.length) + for (var i = 0; i < message.relatedTags.length; ++i) + $root.google.devtools.artifactregistry.v1.Tag.encode(message.relatedTags[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetTagRequest.verify|verify} messages. + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Version.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @static - * @param {google.devtools.artifactregistry.v1.IGetTagRequest} message GetTagRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IVersion} message Version message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTagRequest.encodeDelimited = function encodeDelimited(message, writer) { + Version.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTagRequest message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.GetTagRequest} GetTagRequest + * @returns {google.devtools.artifactregistry.v1.Version} Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTagRequest.decode = function decode(reader, length) { + Version.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetTagRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Version(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10113,6 +14557,28 @@ message.name = reader.string(); break; } + case 3: { + message.description = reader.string(); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + if (!(message.relatedTags && message.relatedTags.length)) + message.relatedTags = []; + message.relatedTags.push($root.google.devtools.artifactregistry.v1.Tag.decode(reader, reader.uint32())); + break; + } + case 8: { + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -10122,124 +14588,200 @@ }; /** - * Decodes a GetTagRequest message from the specified reader or buffer, length delimited. + * Decodes a Version message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.GetTagRequest} GetTagRequest + * @returns {google.devtools.artifactregistry.v1.Version} Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTagRequest.decodeDelimited = function decodeDelimited(reader) { + Version.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTagRequest message. + * Verifies a Version message. * @function verify - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTagRequest.verify = function verify(message) { + Version.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.relatedTags != null && message.hasOwnProperty("relatedTags")) { + if (!Array.isArray(message.relatedTags)) + return "relatedTags: array expected"; + for (var i = 0; i < message.relatedTags.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.Tag.verify(message.relatedTags[i]); + if (error) + return "relatedTags." + error; + } + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } return null; }; /** - * Creates a GetTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Version message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.GetTagRequest} GetTagRequest + * @returns {google.devtools.artifactregistry.v1.Version} Version */ - GetTagRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.GetTagRequest) + Version.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.Version) return object; - var message = new $root.google.devtools.artifactregistry.v1.GetTagRequest(); + var message = new $root.google.devtools.artifactregistry.v1.Version(); if (object.name != null) message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Version.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Version.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.relatedTags) { + if (!Array.isArray(object.relatedTags)) + throw TypeError(".google.devtools.artifactregistry.v1.Version.relatedTags: array expected"); + message.relatedTags = []; + for (var i = 0; i < object.relatedTags.length; ++i) { + if (typeof object.relatedTags[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Version.relatedTags: object expected"); + message.relatedTags[i] = $root.google.devtools.artifactregistry.v1.Tag.fromObject(object.relatedTags[i]); + } + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.Version.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + } return message; }; /** - * Creates a plain object from a GetTagRequest message. Also converts values to other types if specified. + * Creates a plain object from a Version message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @static - * @param {google.devtools.artifactregistry.v1.GetTagRequest} message GetTagRequest + * @param {google.devtools.artifactregistry.v1.Version} message Version * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTagRequest.toObject = function toObject(message, options) { + Version.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.relatedTags = []; + if (options.defaults) { object.name = ""; + object.description = ""; + object.createTime = null; + object.updateTime = null; + object.metadata = null; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.relatedTags && message.relatedTags.length) { + object.relatedTags = []; + for (var j = 0; j < message.relatedTags.length; ++j) + object.relatedTags[j] = $root.google.devtools.artifactregistry.v1.Tag.toObject(message.relatedTags[j], options); + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); return object; }; /** - * Converts this GetTagRequest to JSON. + * Converts this Version to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @instance * @returns {Object.} JSON object */ - GetTagRequest.prototype.toJSON = function toJSON() { + Version.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTagRequest + * Gets the default type url for Version * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.GetTagRequest + * @memberof google.devtools.artifactregistry.v1.Version * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTagRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Version.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetTagRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Version"; }; - return GetTagRequest; + return Version; })(); - v1.CreateTagRequest = (function() { + v1.ListVersionsRequest = (function() { /** - * Properties of a CreateTagRequest. + * Properties of a ListVersionsRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface ICreateTagRequest - * @property {string|null} [parent] CreateTagRequest parent - * @property {string|null} [tagId] CreateTagRequest tagId - * @property {google.devtools.artifactregistry.v1.ITag|null} [tag] CreateTagRequest tag + * @interface IListVersionsRequest + * @property {string|null} [parent] ListVersionsRequest parent + * @property {number|null} [pageSize] ListVersionsRequest pageSize + * @property {string|null} [pageToken] ListVersionsRequest pageToken + * @property {google.devtools.artifactregistry.v1.VersionView|null} [view] ListVersionsRequest view + * @property {string|null} [orderBy] ListVersionsRequest orderBy */ /** - * Constructs a new CreateTagRequest. + * Constructs a new ListVersionsRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a CreateTagRequest. - * @implements ICreateTagRequest + * @classdesc Represents a ListVersionsRequest. + * @implements IListVersionsRequest * @constructor - * @param {google.devtools.artifactregistry.v1.ICreateTagRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListVersionsRequest=} [properties] Properties to set */ - function CreateTagRequest(properties) { + function ListVersionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10247,90 +14789,110 @@ } /** - * CreateTagRequest parent. + * ListVersionsRequest parent. * @member {string} parent - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @instance */ - CreateTagRequest.prototype.parent = ""; + ListVersionsRequest.prototype.parent = ""; /** - * CreateTagRequest tagId. - * @member {string} tagId - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * ListVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @instance */ - CreateTagRequest.prototype.tagId = ""; + ListVersionsRequest.prototype.pageSize = 0; /** - * CreateTagRequest tag. - * @member {google.devtools.artifactregistry.v1.ITag|null|undefined} tag - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * ListVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @instance */ - CreateTagRequest.prototype.tag = null; + ListVersionsRequest.prototype.pageToken = ""; /** - * Creates a new CreateTagRequest instance using the specified properties. + * ListVersionsRequest view. + * @member {google.devtools.artifactregistry.v1.VersionView} view + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.view = 0; + + /** + * ListVersionsRequest orderBy. + * @member {string} orderBy + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListVersionsRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @static - * @param {google.devtools.artifactregistry.v1.ICreateTagRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.CreateTagRequest} CreateTagRequest instance + * @param {google.devtools.artifactregistry.v1.IListVersionsRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListVersionsRequest} ListVersionsRequest instance */ - CreateTagRequest.create = function create(properties) { - return new CreateTagRequest(properties); + ListVersionsRequest.create = function create(properties) { + return new ListVersionsRequest(properties); }; /** - * Encodes the specified CreateTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateTagRequest.verify|verify} messages. + * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @static - * @param {google.devtools.artifactregistry.v1.ICreateTagRequest} message CreateTagRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTagRequest.encode = function encode(message, writer) { + ListVersionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.tagId != null && Object.hasOwnProperty.call(message, "tagId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tagId); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - $root.google.devtools.artifactregistry.v1.Tag.encode(message.tag, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified CreateTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.CreateTagRequest.verify|verify} messages. + * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @static - * @param {google.devtools.artifactregistry.v1.ICreateTagRequest} message CreateTagRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTagRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTagRequest message from the specified reader or buffer. + * Decodes a ListVersionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.CreateTagRequest} CreateTagRequest + * @returns {google.devtools.artifactregistry.v1.ListVersionsRequest} ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTagRequest.decode = function decode(reader, length) { + ListVersionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.CreateTagRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListVersionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10339,11 +14901,19 @@ break; } case 2: { - message.tagId = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.tag = $root.google.devtools.artifactregistry.v1.Tag.decode(reader, reader.uint32()); + message.pageToken = reader.string(); + break; + } + case 4: { + message.view = reader.int32(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -10355,145 +14925,181 @@ }; /** - * Decodes a CreateTagRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.CreateTagRequest} CreateTagRequest + * @returns {google.devtools.artifactregistry.v1.ListVersionsRequest} ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTagRequest.decodeDelimited = function decodeDelimited(reader) { + ListVersionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTagRequest message. + * Verifies a ListVersionsRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTagRequest.verify = function verify(message) { + ListVersionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.tagId != null && message.hasOwnProperty("tagId")) - if (!$util.isString(message.tagId)) - return "tagId: string expected"; - if (message.tag != null && message.hasOwnProperty("tag")) { - var error = $root.google.devtools.artifactregistry.v1.Tag.verify(message.tag); - if (error) - return "tag." + error; - } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.view != null && message.hasOwnProperty("view")) + switch (message.view) { + default: + return "view: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a CreateTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.CreateTagRequest} CreateTagRequest + * @returns {google.devtools.artifactregistry.v1.ListVersionsRequest} ListVersionsRequest */ - CreateTagRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.CreateTagRequest) + ListVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListVersionsRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.CreateTagRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.tagId != null) - message.tagId = String(object.tagId); - if (object.tag != null) { - if (typeof object.tag !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.CreateTagRequest.tag: object expected"); - message.tag = $root.google.devtools.artifactregistry.v1.Tag.fromObject(object.tag); + var message = new $root.google.devtools.artifactregistry.v1.ListVersionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + switch (object.view) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; + } + break; + case "VERSION_VIEW_UNSPECIFIED": + case 0: + message.view = 0; + break; + case "BASIC": + case 1: + message.view = 1; + break; + case "FULL": + case 2: + message.view = 2; + break; } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a CreateTagRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @static - * @param {google.devtools.artifactregistry.v1.CreateTagRequest} message CreateTagRequest + * @param {google.devtools.artifactregistry.v1.ListVersionsRequest} message ListVersionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTagRequest.toObject = function toObject(message, options) { + ListVersionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.tagId = ""; - object.tag = null; + object.pageSize = 0; + object.pageToken = ""; + object.view = options.enums === String ? "VERSION_VIEW_UNSPECIFIED" : 0; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.tagId != null && message.hasOwnProperty("tagId")) - object.tagId = message.tagId; - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = $root.google.devtools.artifactregistry.v1.Tag.toObject(message.tag, options); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.view != null && message.hasOwnProperty("view")) + object.view = options.enums === String ? $root.google.devtools.artifactregistry.v1.VersionView[message.view] === undefined ? message.view : $root.google.devtools.artifactregistry.v1.VersionView[message.view] : message.view; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this CreateTagRequest to JSON. + * Converts this ListVersionsRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @instance * @returns {Object.} JSON object */ - CreateTagRequest.prototype.toJSON = function toJSON() { + ListVersionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateTagRequest + * Gets the default type url for ListVersionsRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.CreateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateTagRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.CreateTagRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListVersionsRequest"; }; - return CreateTagRequest; + return ListVersionsRequest; })(); - v1.UpdateTagRequest = (function() { + v1.ListVersionsResponse = (function() { /** - * Properties of an UpdateTagRequest. + * Properties of a ListVersionsResponse. * @memberof google.devtools.artifactregistry.v1 - * @interface IUpdateTagRequest - * @property {google.devtools.artifactregistry.v1.ITag|null} [tag] UpdateTagRequest tag - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTagRequest updateMask + * @interface IListVersionsResponse + * @property {Array.|null} [versions] ListVersionsResponse versions + * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken */ /** - * Constructs a new UpdateTagRequest. + * Constructs a new ListVersionsResponse. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents an UpdateTagRequest. - * @implements IUpdateTagRequest + * @classdesc Represents a ListVersionsResponse. + * @implements IListVersionsResponse * @constructor - * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IListVersionsResponse=} [properties] Properties to set */ - function UpdateTagRequest(properties) { + function ListVersionsResponse(properties) { + this.versions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10501,89 +15107,92 @@ } /** - * UpdateTagRequest tag. - * @member {google.devtools.artifactregistry.v1.ITag|null|undefined} tag - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * ListVersionsResponse versions. + * @member {Array.} versions + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @instance */ - UpdateTagRequest.prototype.tag = null; + ListVersionsResponse.prototype.versions = $util.emptyArray; /** - * UpdateTagRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * ListVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @instance */ - UpdateTagRequest.prototype.updateMask = null; + ListVersionsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateTagRequest instance using the specified properties. + * Creates a new ListVersionsResponse instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @static - * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.UpdateTagRequest} UpdateTagRequest instance + * @param {google.devtools.artifactregistry.v1.IListVersionsResponse=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.ListVersionsResponse} ListVersionsResponse instance */ - UpdateTagRequest.create = function create(properties) { - return new UpdateTagRequest(properties); + ListVersionsResponse.create = function create(properties) { + return new ListVersionsResponse(properties); }; /** - * Encodes the specified UpdateTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateTagRequest.verify|verify} messages. + * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @static - * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest} message UpdateTagRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTagRequest.encode = function encode(message, writer) { + ListVersionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - $root.google.devtools.artifactregistry.v1.Tag.encode(message.tag, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.versions != null && message.versions.length) + for (var i = 0; i < message.versions.length; ++i) + $root.google.devtools.artifactregistry.v1.Version.encode(message.versions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateTagRequest.verify|verify} messages. + * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @static - * @param {google.devtools.artifactregistry.v1.IUpdateTagRequest} message UpdateTagRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTagRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateTagRequest message from the specified reader or buffer. + * Decodes a ListVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.UpdateTagRequest} UpdateTagRequest + * @returns {google.devtools.artifactregistry.v1.ListVersionsResponse} ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTagRequest.decode = function decode(reader, length) { + ListVersionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.UpdateTagRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tag = $root.google.devtools.artifactregistry.v1.Tag.decode(reader, reader.uint32()); + if (!(message.versions && message.versions.length)) + message.versions = []; + message.versions.push($root.google.devtools.artifactregistry.v1.Version.decode(reader, reader.uint32())); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -10595,141 +15204,149 @@ }; /** - * Decodes an UpdateTagRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.UpdateTagRequest} UpdateTagRequest + * @returns {google.devtools.artifactregistry.v1.ListVersionsResponse} ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTagRequest.decodeDelimited = function decodeDelimited(reader) { + ListVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateTagRequest message. + * Verifies a ListVersionsResponse message. * @function verify - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateTagRequest.verify = function verify(message) { + ListVersionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tag != null && message.hasOwnProperty("tag")) { - var error = $root.google.devtools.artifactregistry.v1.Tag.verify(message.tag); - if (error) - return "tag." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.versions != null && message.hasOwnProperty("versions")) { + if (!Array.isArray(message.versions)) + return "versions: array expected"; + for (var i = 0; i < message.versions.length; ++i) { + var error = $root.google.devtools.artifactregistry.v1.Version.verify(message.versions[i]); + if (error) + return "versions." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.UpdateTagRequest} UpdateTagRequest + * @returns {google.devtools.artifactregistry.v1.ListVersionsResponse} ListVersionsResponse */ - UpdateTagRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.UpdateTagRequest) + ListVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.ListVersionsResponse) return object; - var message = new $root.google.devtools.artifactregistry.v1.UpdateTagRequest(); - if (object.tag != null) { - if (typeof object.tag !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.UpdateTagRequest.tag: object expected"); - message.tag = $root.google.devtools.artifactregistry.v1.Tag.fromObject(object.tag); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.UpdateTagRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.devtools.artifactregistry.v1.ListVersionsResponse(); + if (object.versions) { + if (!Array.isArray(object.versions)) + throw TypeError(".google.devtools.artifactregistry.v1.ListVersionsResponse.versions: array expected"); + message.versions = []; + for (var i = 0; i < object.versions.length; ++i) { + if (typeof object.versions[i] !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.ListVersionsResponse.versions: object expected"); + message.versions[i] = $root.google.devtools.artifactregistry.v1.Version.fromObject(object.versions[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateTagRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @static - * @param {google.devtools.artifactregistry.v1.UpdateTagRequest} message UpdateTagRequest + * @param {google.devtools.artifactregistry.v1.ListVersionsResponse} message ListVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateTagRequest.toObject = function toObject(message, options) { + ListVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.tag = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.versions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.versions && message.versions.length) { + object.versions = []; + for (var j = 0; j < message.versions.length; ++j) + object.versions[j] = $root.google.devtools.artifactregistry.v1.Version.toObject(message.versions[j], options); } - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = $root.google.devtools.artifactregistry.v1.Tag.toObject(message.tag, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateTagRequest to JSON. + * Converts this ListVersionsResponse to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @instance * @returns {Object.} JSON object */ - UpdateTagRequest.prototype.toJSON = function toJSON() { + ListVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateTagRequest + * Gets the default type url for ListVersionsResponse * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.UpdateTagRequest + * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateTagRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.UpdateTagRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListVersionsResponse"; }; - return UpdateTagRequest; + return ListVersionsResponse; })(); - v1.DeleteTagRequest = (function() { + v1.GetVersionRequest = (function() { /** - * Properties of a DeleteTagRequest. + * Properties of a GetVersionRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IDeleteTagRequest - * @property {string|null} [name] DeleteTagRequest name + * @interface IGetVersionRequest + * @property {string|null} [name] GetVersionRequest name + * @property {google.devtools.artifactregistry.v1.VersionView|null} [view] GetVersionRequest view */ /** - * Constructs a new DeleteTagRequest. + * Constructs a new GetVersionRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a DeleteTagRequest. - * @implements IDeleteTagRequest + * @classdesc Represents a GetVersionRequest. + * @implements IGetVersionRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IGetVersionRequest=} [properties] Properties to set */ - function DeleteTagRequest(properties) { + function GetVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10737,70 +15354,80 @@ } /** - * DeleteTagRequest name. + * GetVersionRequest name. * @member {string} name - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @instance */ - DeleteTagRequest.prototype.name = ""; + GetVersionRequest.prototype.name = ""; /** - * Creates a new DeleteTagRequest instance using the specified properties. + * GetVersionRequest view. + * @member {google.devtools.artifactregistry.v1.VersionView} view + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @instance + */ + GetVersionRequest.prototype.view = 0; + + /** + * Creates a new GetVersionRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @static - * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.DeleteTagRequest} DeleteTagRequest instance + * @param {google.devtools.artifactregistry.v1.IGetVersionRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetVersionRequest} GetVersionRequest instance */ - DeleteTagRequest.create = function create(properties) { - return new DeleteTagRequest(properties); + GetVersionRequest.create = function create(properties) { + return new GetVersionRequest(properties); }; /** - * Encodes the specified DeleteTagRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteTagRequest.verify|verify} messages. + * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVersionRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @static - * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest} message DeleteTagRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTagRequest.encode = function encode(message, writer) { + GetVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.view); return writer; }; /** - * Encodes the specified DeleteTagRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteTagRequest.verify|verify} messages. + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @static - * @param {google.devtools.artifactregistry.v1.IDeleteTagRequest} message DeleteTagRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTagRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTagRequest message from the specified reader or buffer. + * Decodes a GetVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.DeleteTagRequest} DeleteTagRequest + * @returns {google.devtools.artifactregistry.v1.GetVersionRequest} GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTagRequest.decode = function decode(reader, length) { + GetVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.DeleteTagRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10808,6 +15435,10 @@ message.name = reader.string(); break; } + case 2: { + message.view = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -10817,144 +15448,156 @@ }; /** - * Decodes a DeleteTagRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.DeleteTagRequest} DeleteTagRequest + * @returns {google.devtools.artifactregistry.v1.GetVersionRequest} GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTagRequest.decodeDelimited = function decodeDelimited(reader) { + GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTagRequest message. + * Verifies a GetVersionRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTagRequest.verify = function verify(message) { + GetVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.view != null && message.hasOwnProperty("view")) + switch (message.view) { + default: + return "view: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a DeleteTagRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.DeleteTagRequest} DeleteTagRequest + * @returns {google.devtools.artifactregistry.v1.GetVersionRequest} GetVersionRequest */ - DeleteTagRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.DeleteTagRequest) + GetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetVersionRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.DeleteTagRequest(); + var message = new $root.google.devtools.artifactregistry.v1.GetVersionRequest(); if (object.name != null) message.name = String(object.name); + switch (object.view) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; + } + break; + case "VERSION_VIEW_UNSPECIFIED": + case 0: + message.view = 0; + break; + case "BASIC": + case 1: + message.view = 1; + break; + case "FULL": + case 2: + message.view = 2; + break; + } return message; }; /** - * Creates a plain object from a DeleteTagRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @static - * @param {google.devtools.artifactregistry.v1.DeleteTagRequest} message DeleteTagRequest + * @param {google.devtools.artifactregistry.v1.GetVersionRequest} message GetVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTagRequest.toObject = function toObject(message, options) { + GetVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.view = options.enums === String ? "VERSION_VIEW_UNSPECIFIED" : 0; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.view != null && message.hasOwnProperty("view")) + object.view = options.enums === String ? $root.google.devtools.artifactregistry.v1.VersionView[message.view] === undefined ? message.view : $root.google.devtools.artifactregistry.v1.VersionView[message.view] : message.view; return object; }; /** - * Converts this DeleteTagRequest to JSON. + * Converts this GetVersionRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @instance * @returns {Object.} JSON object */ - DeleteTagRequest.prototype.toJSON = function toJSON() { + GetVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteTagRequest + * Gets the default type url for GetVersionRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.DeleteTagRequest + * @memberof google.devtools.artifactregistry.v1.GetVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteTagRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.DeleteTagRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetVersionRequest"; }; - return DeleteTagRequest; - })(); - - /** - * VersionView enum. - * @name google.devtools.artifactregistry.v1.VersionView - * @enum {number} - * @property {number} VERSION_VIEW_UNSPECIFIED=0 VERSION_VIEW_UNSPECIFIED value - * @property {number} BASIC=1 BASIC value - * @property {number} FULL=2 FULL value - */ - v1.VersionView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VERSION_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "BASIC"] = 1; - values[valuesById[2] = "FULL"] = 2; - return values; + return GetVersionRequest; })(); - v1.Version = (function() { + v1.DeleteVersionRequest = (function() { /** - * Properties of a Version. + * Properties of a DeleteVersionRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IVersion - * @property {string|null} [name] Version name - * @property {string|null} [description] Version description - * @property {google.protobuf.ITimestamp|null} [createTime] Version createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Version updateTime - * @property {Array.|null} [relatedTags] Version relatedTags - * @property {google.protobuf.IStruct|null} [metadata] Version metadata + * @interface IDeleteVersionRequest + * @property {string|null} [name] DeleteVersionRequest name + * @property {boolean|null} [force] DeleteVersionRequest force */ /** - * Constructs a new Version. + * Constructs a new DeleteVersionRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a Version. - * @implements IVersion + * @classdesc Represents a DeleteVersionRequest. + * @implements IDeleteVersionRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IVersion=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest=} [properties] Properties to set */ - function Version(properties) { - this.relatedTags = []; + function DeleteVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10962,121 +15605,80 @@ } /** - * Version name. + * DeleteVersionRequest name. * @member {string} name - * @memberof google.devtools.artifactregistry.v1.Version - * @instance - */ - Version.prototype.name = ""; - - /** - * Version description. - * @member {string} description - * @memberof google.devtools.artifactregistry.v1.Version - * @instance - */ - Version.prototype.description = ""; - - /** - * Version createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.devtools.artifactregistry.v1.Version - * @instance - */ - Version.prototype.createTime = null; - - /** - * Version updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.devtools.artifactregistry.v1.Version - * @instance - */ - Version.prototype.updateTime = null; - - /** - * Version relatedTags. - * @member {Array.} relatedTags - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @instance */ - Version.prototype.relatedTags = $util.emptyArray; + DeleteVersionRequest.prototype.name = ""; - /** - * Version metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.devtools.artifactregistry.v1.Version + /** + * DeleteVersionRequest force. + * @member {boolean} force + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @instance */ - Version.prototype.metadata = null; + DeleteVersionRequest.prototype.force = false; /** - * Creates a new Version instance using the specified properties. + * Creates a new DeleteVersionRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @static - * @param {google.devtools.artifactregistry.v1.IVersion=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.Version} Version instance + * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.DeleteVersionRequest} DeleteVersionRequest instance */ - Version.create = function create(properties) { - return new Version(properties); + DeleteVersionRequest.create = function create(properties) { + return new DeleteVersionRequest(properties); }; /** - * Encodes the specified Version message. Does not implicitly {@link google.devtools.artifactregistry.v1.Version.verify|verify} messages. + * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteVersionRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @static - * @param {google.devtools.artifactregistry.v1.IVersion} message Version message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encode = function encode(message, writer) { + DeleteVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.relatedTags != null && message.relatedTags.length) - for (var i = 0; i < message.relatedTags.length; ++i) - $root.google.devtools.artifactregistry.v1.Tag.encode(message.relatedTags[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.Version.verify|verify} messages. + * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @static - * @param {google.devtools.artifactregistry.v1.IVersion} message Version message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encodeDelimited = function encodeDelimited(message, writer) { + DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Version message from the specified reader or buffer. + * Decodes a DeleteVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.Version} Version + * @returns {google.devtools.artifactregistry.v1.DeleteVersionRequest} DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decode = function decode(reader, length) { + DeleteVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.Version(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.DeleteVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11084,26 +15686,8 @@ message.name = reader.string(); break; } - case 3: { - message.description = reader.string(); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - if (!(message.relatedTags && message.relatedTags.length)) - message.relatedTags = []; - message.relatedTags.push($root.google.devtools.artifactregistry.v1.Tag.decode(reader, reader.uint32())); - break; - } - case 8: { - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + case 2: { + message.force = reader.bool(); break; } default: @@ -11115,332 +15699,211 @@ }; /** - * Decodes a Version message from the specified reader or buffer, length delimited. + * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.Version} Version + * @returns {google.devtools.artifactregistry.v1.DeleteVersionRequest} DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decodeDelimited = function decodeDelimited(reader) { + DeleteVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Version message. + * Verifies a DeleteVersionRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Version.verify = function verify(message) { + DeleteVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.relatedTags != null && message.hasOwnProperty("relatedTags")) { - if (!Array.isArray(message.relatedTags)) - return "relatedTags: array expected"; - for (var i = 0; i < message.relatedTags.length; ++i) { - var error = $root.google.devtools.artifactregistry.v1.Tag.verify(message.relatedTags[i]); - if (error) - return "relatedTags." + error; - } - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; - } + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.Version} Version + * @returns {google.devtools.artifactregistry.v1.DeleteVersionRequest} DeleteVersionRequest */ - Version.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.Version) + DeleteVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.DeleteVersionRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.Version(); + var message = new $root.google.devtools.artifactregistry.v1.DeleteVersionRequest(); if (object.name != null) message.name = String(object.name); - if (object.description != null) - message.description = String(object.description); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Version.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Version.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.relatedTags) { - if (!Array.isArray(object.relatedTags)) - throw TypeError(".google.devtools.artifactregistry.v1.Version.relatedTags: array expected"); - message.relatedTags = []; - for (var i = 0; i < object.relatedTags.length; ++i) { - if (typeof object.relatedTags[i] !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Version.relatedTags: object expected"); - message.relatedTags[i] = $root.google.devtools.artifactregistry.v1.Tag.fromObject(object.relatedTags[i]); - } - } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.Version.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); - } + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. + * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @static - * @param {google.devtools.artifactregistry.v1.Version} message Version + * @param {google.devtools.artifactregistry.v1.DeleteVersionRequest} message DeleteVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Version.toObject = function toObject(message, options) { + DeleteVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.relatedTags = []; if (options.defaults) { object.name = ""; - object.description = ""; - object.createTime = null; - object.updateTime = null; - object.metadata = null; + object.force = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.relatedTags && message.relatedTags.length) { - object.relatedTags = []; - for (var j = 0; j < message.relatedTags.length; ++j) - object.relatedTags[j] = $root.google.devtools.artifactregistry.v1.Tag.toObject(message.relatedTags[j], options); - } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this Version to JSON. + * Converts this DeleteVersionRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @instance * @returns {Object.} JSON object */ - Version.prototype.toJSON = function toJSON() { + DeleteVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Version + * Gets the default type url for DeleteVersionRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.Version + * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Version.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.Version"; - }; - - return Version; - })(); - - v1.ListVersionsRequest = (function() { - - /** - * Properties of a ListVersionsRequest. - * @memberof google.devtools.artifactregistry.v1 - * @interface IListVersionsRequest - * @property {string|null} [parent] ListVersionsRequest parent - * @property {number|null} [pageSize] ListVersionsRequest pageSize - * @property {string|null} [pageToken] ListVersionsRequest pageToken - * @property {google.devtools.artifactregistry.v1.VersionView|null} [view] ListVersionsRequest view - * @property {string|null} [orderBy] ListVersionsRequest orderBy - */ - - /** - * Constructs a new ListVersionsRequest. - * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListVersionsRequest. - * @implements IListVersionsRequest - * @constructor - * @param {google.devtools.artifactregistry.v1.IListVersionsRequest=} [properties] Properties to set - */ - function ListVersionsRequest(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]]; - } - - /** - * ListVersionsRequest parent. - * @member {string} parent - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest - * @instance - */ - ListVersionsRequest.prototype.parent = ""; - - /** - * ListVersionsRequest pageSize. - * @member {number} pageSize - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest - * @instance - */ - ListVersionsRequest.prototype.pageSize = 0; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.DeleteVersionRequest"; + }; + + return DeleteVersionRequest; + })(); + + v1.BatchDeleteVersionsMetadata = (function() { /** - * ListVersionsRequest pageToken. - * @member {string} pageToken - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest - * @instance + * Properties of a BatchDeleteVersionsMetadata. + * @memberof google.devtools.artifactregistry.v1 + * @interface IBatchDeleteVersionsMetadata + * @property {Array.|null} [failedVersions] BatchDeleteVersionsMetadata failedVersions */ - ListVersionsRequest.prototype.pageToken = ""; /** - * ListVersionsRequest view. - * @member {google.devtools.artifactregistry.v1.VersionView} view - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest - * @instance + * Constructs a new BatchDeleteVersionsMetadata. + * @memberof google.devtools.artifactregistry.v1 + * @classdesc Represents a BatchDeleteVersionsMetadata. + * @implements IBatchDeleteVersionsMetadata + * @constructor + * @param {google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata=} [properties] Properties to set */ - ListVersionsRequest.prototype.view = 0; + function BatchDeleteVersionsMetadata(properties) { + this.failedVersions = []; + 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]]; + } /** - * ListVersionsRequest orderBy. - * @member {string} orderBy - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * BatchDeleteVersionsMetadata failedVersions. + * @member {Array.} failedVersions + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @instance */ - ListVersionsRequest.prototype.orderBy = ""; + BatchDeleteVersionsMetadata.prototype.failedVersions = $util.emptyArray; /** - * Creates a new ListVersionsRequest instance using the specified properties. + * Creates a new BatchDeleteVersionsMetadata instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @static - * @param {google.devtools.artifactregistry.v1.IListVersionsRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListVersionsRequest} ListVersionsRequest instance + * @param {google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata} BatchDeleteVersionsMetadata instance */ - ListVersionsRequest.create = function create(properties) { - return new ListVersionsRequest(properties); + BatchDeleteVersionsMetadata.create = function create(properties) { + return new BatchDeleteVersionsMetadata(properties); }; /** - * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsRequest.verify|verify} messages. + * Encodes the specified BatchDeleteVersionsMetadata message. Does not implicitly {@link google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @static - * @param {google.devtools.artifactregistry.v1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata} message BatchDeleteVersionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsRequest.encode = function encode(message, writer) { + BatchDeleteVersionsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.view != null && Object.hasOwnProperty.call(message, "view")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.failedVersions != null && message.failedVersions.length) + for (var i = 0; i < message.failedVersions.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.failedVersions[i]); return writer; }; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsRequest.verify|verify} messages. + * Encodes the specified BatchDeleteVersionsMetadata message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @static - * @param {google.devtools.artifactregistry.v1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IBatchDeleteVersionsMetadata} message BatchDeleteVersionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchDeleteVersionsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer. + * Decodes a BatchDeleteVersionsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListVersionsRequest} ListVersionsRequest + * @returns {google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata} BatchDeleteVersionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsRequest.decode = function decode(reader, length) { + BatchDeleteVersionsMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListVersionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.view = reader.int32(); - break; - } - case 5: { - message.orderBy = reader.string(); + if (!(message.failedVersions && message.failedVersions.length)) + message.failedVersions = []; + message.failedVersions.push(reader.string()); break; } default: @@ -11452,181 +15915,135 @@ }; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteVersionsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListVersionsRequest} ListVersionsRequest + * @returns {google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata} BatchDeleteVersionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + BatchDeleteVersionsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVersionsRequest message. + * Verifies a BatchDeleteVersionsMetadata message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVersionsRequest.verify = function verify(message) { + BatchDeleteVersionsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.view != null && message.hasOwnProperty("view")) - switch (message.view) { - default: - return "view: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.failedVersions != null && message.hasOwnProperty("failedVersions")) { + if (!Array.isArray(message.failedVersions)) + return "failedVersions: array expected"; + for (var i = 0; i < message.failedVersions.length; ++i) + if (!$util.isString(message.failedVersions[i])) + return "failedVersions: string[] expected"; + } return null; }; /** - * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteVersionsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListVersionsRequest} ListVersionsRequest + * @returns {google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata} BatchDeleteVersionsMetadata */ - ListVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListVersionsRequest) + BatchDeleteVersionsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata) return object; - var message = new $root.google.devtools.artifactregistry.v1.ListVersionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - switch (object.view) { - default: - if (typeof object.view === "number") { - message.view = object.view; - break; - } - break; - case "VERSION_VIEW_UNSPECIFIED": - case 0: - message.view = 0; - break; - case "BASIC": - case 1: - message.view = 1; - break; - case "FULL": - case 2: - message.view = 2; - break; + var message = new $root.google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata(); + if (object.failedVersions) { + if (!Array.isArray(object.failedVersions)) + throw TypeError(".google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata.failedVersions: array expected"); + message.failedVersions = []; + for (var i = 0; i < object.failedVersions.length; ++i) + message.failedVersions[i] = String(object.failedVersions[i]); } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchDeleteVersionsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @static - * @param {google.devtools.artifactregistry.v1.ListVersionsRequest} message ListVersionsRequest + * @param {google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata} message BatchDeleteVersionsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVersionsRequest.toObject = function toObject(message, options) { + BatchDeleteVersionsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.view = options.enums === String ? "VERSION_VIEW_UNSPECIFIED" : 0; - object.orderBy = ""; + if (options.arrays || options.defaults) + object.failedVersions = []; + if (message.failedVersions && message.failedVersions.length) { + object.failedVersions = []; + for (var j = 0; j < message.failedVersions.length; ++j) + object.failedVersions[j] = message.failedVersions[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.devtools.artifactregistry.v1.VersionView[message.view] === undefined ? message.view : $root.google.devtools.artifactregistry.v1.VersionView[message.view] : message.view; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this BatchDeleteVersionsMetadata to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @instance * @returns {Object.} JSON object */ - ListVersionsRequest.prototype.toJSON = function toJSON() { + BatchDeleteVersionsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVersionsRequest + * Gets the default type url for BatchDeleteVersionsMetadata * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListVersionsRequest + * @memberof google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchDeleteVersionsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListVersionsRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata"; }; - return ListVersionsRequest; + return BatchDeleteVersionsMetadata; })(); - v1.ListVersionsResponse = (function() { + v1.VPCSCConfig = (function() { /** - * Properties of a ListVersionsResponse. + * Properties of a VPCSCConfig. * @memberof google.devtools.artifactregistry.v1 - * @interface IListVersionsResponse - * @property {Array.|null} [versions] ListVersionsResponse versions - * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken + * @interface IVPCSCConfig + * @property {string|null} [name] VPCSCConfig name + * @property {google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy|null} [vpcscPolicy] VPCSCConfig vpcscPolicy */ /** - * Constructs a new ListVersionsResponse. + * Constructs a new VPCSCConfig. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a ListVersionsResponse. - * @implements IListVersionsResponse + * @classdesc Represents a VPCSCConfig. + * @implements IVPCSCConfig * @constructor - * @param {google.devtools.artifactregistry.v1.IListVersionsResponse=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IVPCSCConfig=} [properties] Properties to set */ - function ListVersionsResponse(properties) { - this.versions = []; + function VPCSCConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11634,92 +16051,89 @@ } /** - * ListVersionsResponse versions. - * @member {Array.} versions - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * VPCSCConfig name. + * @member {string} name + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @instance */ - ListVersionsResponse.prototype.versions = $util.emptyArray; + VPCSCConfig.prototype.name = ""; /** - * ListVersionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * VPCSCConfig vpcscPolicy. + * @member {google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy} vpcscPolicy + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @instance */ - ListVersionsResponse.prototype.nextPageToken = ""; + VPCSCConfig.prototype.vpcscPolicy = 0; /** - * Creates a new ListVersionsResponse instance using the specified properties. + * Creates a new VPCSCConfig instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @static - * @param {google.devtools.artifactregistry.v1.IListVersionsResponse=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.ListVersionsResponse} ListVersionsResponse instance + * @param {google.devtools.artifactregistry.v1.IVPCSCConfig=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.VPCSCConfig} VPCSCConfig instance */ - ListVersionsResponse.create = function create(properties) { - return new ListVersionsResponse(properties); + VPCSCConfig.create = function create(properties) { + return new VPCSCConfig(properties); }; /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsResponse.verify|verify} messages. + * Encodes the specified VPCSCConfig message. Does not implicitly {@link google.devtools.artifactregistry.v1.VPCSCConfig.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @static - * @param {google.devtools.artifactregistry.v1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IVPCSCConfig} message VPCSCConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsResponse.encode = function encode(message, writer) { + VPCSCConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versions != null && message.versions.length) - for (var i = 0; i < message.versions.length; ++i) - $root.google.devtools.artifactregistry.v1.Version.encode(message.versions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.vpcscPolicy != null && Object.hasOwnProperty.call(message, "vpcscPolicy")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.vpcscPolicy); return writer; }; /** - * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.ListVersionsResponse.verify|verify} messages. + * Encodes the specified VPCSCConfig message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.VPCSCConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @static - * @param {google.devtools.artifactregistry.v1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IVPCSCConfig} message VPCSCConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + VPCSCConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer. + * Decodes a VPCSCConfig message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.ListVersionsResponse} ListVersionsResponse + * @returns {google.devtools.artifactregistry.v1.VPCSCConfig} VPCSCConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsResponse.decode = function decode(reader, length) { + VPCSCConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.ListVersionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.VPCSCConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.versions && message.versions.length)) - message.versions = []; - message.versions.push($root.google.devtools.artifactregistry.v1.Version.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.vpcscPolicy = reader.int32(); break; } default: @@ -11731,149 +16145,171 @@ }; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a VPCSCConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.ListVersionsResponse} ListVersionsResponse + * @returns {google.devtools.artifactregistry.v1.VPCSCConfig} VPCSCConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + VPCSCConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVersionsResponse message. + * Verifies a VPCSCConfig message. * @function verify - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVersionsResponse.verify = function verify(message) { + VPCSCConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.versions != null && message.hasOwnProperty("versions")) { - if (!Array.isArray(message.versions)) - return "versions: array expected"; - for (var i = 0; i < message.versions.length; ++i) { - var error = $root.google.devtools.artifactregistry.v1.Version.verify(message.versions[i]); - if (error) - return "versions." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.vpcscPolicy != null && message.hasOwnProperty("vpcscPolicy")) + switch (message.vpcscPolicy) { + default: + return "vpcscPolicy: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VPCSCConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.ListVersionsResponse} ListVersionsResponse + * @returns {google.devtools.artifactregistry.v1.VPCSCConfig} VPCSCConfig */ - ListVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.ListVersionsResponse) - return object; - var message = new $root.google.devtools.artifactregistry.v1.ListVersionsResponse(); - if (object.versions) { - if (!Array.isArray(object.versions)) - throw TypeError(".google.devtools.artifactregistry.v1.ListVersionsResponse.versions: array expected"); - message.versions = []; - for (var i = 0; i < object.versions.length; ++i) { - if (typeof object.versions[i] !== "object") - throw TypeError(".google.devtools.artifactregistry.v1.ListVersionsResponse.versions: object expected"); - message.versions[i] = $root.google.devtools.artifactregistry.v1.Version.fromObject(object.versions[i]); + VPCSCConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.VPCSCConfig) + return object; + var message = new $root.google.devtools.artifactregistry.v1.VPCSCConfig(); + if (object.name != null) + message.name = String(object.name); + switch (object.vpcscPolicy) { + default: + if (typeof object.vpcscPolicy === "number") { + message.vpcscPolicy = object.vpcscPolicy; + break; } + break; + case "VPCSC_POLICY_UNSPECIFIED": + case 0: + message.vpcscPolicy = 0; + break; + case "DENY": + case 1: + message.vpcscPolicy = 1; + break; + case "ALLOW": + case 2: + message.vpcscPolicy = 2; + break; } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a VPCSCConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @static - * @param {google.devtools.artifactregistry.v1.ListVersionsResponse} message ListVersionsResponse + * @param {google.devtools.artifactregistry.v1.VPCSCConfig} message VPCSCConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVersionsResponse.toObject = function toObject(message, options) { + VPCSCConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.versions && message.versions.length) { - object.versions = []; - for (var j = 0; j < message.versions.length; ++j) - object.versions[j] = $root.google.devtools.artifactregistry.v1.Version.toObject(message.versions[j], options); + if (options.defaults) { + object.name = ""; + object.vpcscPolicy = options.enums === String ? "VPCSC_POLICY_UNSPECIFIED" : 0; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.vpcscPolicy != null && message.hasOwnProperty("vpcscPolicy")) + object.vpcscPolicy = options.enums === String ? $root.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy[message.vpcscPolicy] === undefined ? message.vpcscPolicy : $root.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy[message.vpcscPolicy] : message.vpcscPolicy; return object; }; /** - * Converts this ListVersionsResponse to JSON. + * Converts this VPCSCConfig to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @instance * @returns {Object.} JSON object */ - ListVersionsResponse.prototype.toJSON = function toJSON() { + VPCSCConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVersionsResponse + * Gets the default type url for VPCSCConfig * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.ListVersionsResponse + * @memberof google.devtools.artifactregistry.v1.VPCSCConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VPCSCConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.ListVersionsResponse"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.VPCSCConfig"; }; - return ListVersionsResponse; + /** + * VPCSCPolicy enum. + * @name google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy + * @enum {number} + * @property {number} VPCSC_POLICY_UNSPECIFIED=0 VPCSC_POLICY_UNSPECIFIED value + * @property {number} DENY=1 DENY value + * @property {number} ALLOW=2 ALLOW value + */ + VPCSCConfig.VPCSCPolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VPCSC_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "DENY"] = 1; + values[valuesById[2] = "ALLOW"] = 2; + return values; + })(); + + return VPCSCConfig; })(); - v1.GetVersionRequest = (function() { + v1.GetVPCSCConfigRequest = (function() { /** - * Properties of a GetVersionRequest. + * Properties of a GetVPCSCConfigRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IGetVersionRequest - * @property {string|null} [name] GetVersionRequest name - * @property {google.devtools.artifactregistry.v1.VersionView|null} [view] GetVersionRequest view + * @interface IGetVPCSCConfigRequest + * @property {string|null} [name] GetVPCSCConfigRequest name */ /** - * Constructs a new GetVersionRequest. + * Constructs a new GetVPCSCConfigRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a GetVersionRequest. - * @implements IGetVersionRequest + * @classdesc Represents a GetVPCSCConfigRequest. + * @implements IGetVPCSCConfigRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IGetVersionRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest=} [properties] Properties to set */ - function GetVersionRequest(properties) { + function GetVPCSCConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11881,80 +16317,70 @@ } /** - * GetVersionRequest name. + * GetVPCSCConfigRequest name. * @member {string} name - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest - * @instance - */ - GetVersionRequest.prototype.name = ""; - - /** - * GetVersionRequest view. - * @member {google.devtools.artifactregistry.v1.VersionView} view - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @instance */ - GetVersionRequest.prototype.view = 0; + GetVPCSCConfigRequest.prototype.name = ""; /** - * Creates a new GetVersionRequest instance using the specified properties. + * Creates a new GetVPCSCConfigRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @static - * @param {google.devtools.artifactregistry.v1.IGetVersionRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.GetVersionRequest} GetVersionRequest instance + * @param {google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.GetVPCSCConfigRequest} GetVPCSCConfigRequest instance */ - GetVersionRequest.create = function create(properties) { - return new GetVersionRequest(properties); + GetVPCSCConfigRequest.create = function create(properties) { + return new GetVPCSCConfigRequest(properties); }; /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVersionRequest.verify|verify} messages. + * Encodes the specified GetVPCSCConfigRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVPCSCConfigRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @static - * @param {google.devtools.artifactregistry.v1.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest} message GetVPCSCConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVersionRequest.encode = function encode(message, writer) { + GetVPCSCConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.view != null && Object.hasOwnProperty.call(message, "view")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.view); return writer; }; /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVersionRequest.verify|verify} messages. + * Encodes the specified GetVPCSCConfigRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.GetVPCSCConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @static - * @param {google.devtools.artifactregistry.v1.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest} message GetVPCSCConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVPCSCConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVersionRequest message from the specified reader or buffer. + * Decodes a GetVPCSCConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.GetVersionRequest} GetVersionRequest + * @returns {google.devtools.artifactregistry.v1.GetVPCSCConfigRequest} GetVPCSCConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVersionRequest.decode = function decode(reader, length) { + GetVPCSCConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetVersionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11962,10 +16388,6 @@ message.name = reader.string(); break; } - case 2: { - message.view = reader.int32(); - break; - } default: reader.skipType(tag & 7); break; @@ -11975,156 +16397,123 @@ }; /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVPCSCConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.GetVersionRequest} GetVersionRequest + * @returns {google.devtools.artifactregistry.v1.GetVPCSCConfigRequest} GetVPCSCConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { + GetVPCSCConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVersionRequest message. + * Verifies a GetVPCSCConfigRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVersionRequest.verify = function verify(message) { + GetVPCSCConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.view != null && message.hasOwnProperty("view")) - switch (message.view) { - default: - return "view: enum value expected"; - case 0: - case 1: - case 2: - break; - } return null; }; /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVPCSCConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.GetVersionRequest} GetVersionRequest + * @returns {google.devtools.artifactregistry.v1.GetVPCSCConfigRequest} GetVPCSCConfigRequest */ - GetVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.GetVersionRequest) + GetVPCSCConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.GetVersionRequest(); + var message = new $root.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest(); if (object.name != null) message.name = String(object.name); - switch (object.view) { - default: - if (typeof object.view === "number") { - message.view = object.view; - break; - } - break; - case "VERSION_VIEW_UNSPECIFIED": - case 0: - message.view = 0; - break; - case "BASIC": - case 1: - message.view = 1; - break; - case "FULL": - case 2: - message.view = 2; - break; - } return message; }; /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVPCSCConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @static - * @param {google.devtools.artifactregistry.v1.GetVersionRequest} message GetVersionRequest + * @param {google.devtools.artifactregistry.v1.GetVPCSCConfigRequest} message GetVPCSCConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVersionRequest.toObject = function toObject(message, options) { + GetVPCSCConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.view = options.enums === String ? "VERSION_VIEW_UNSPECIFIED" : 0; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.devtools.artifactregistry.v1.VersionView[message.view] === undefined ? message.view : $root.google.devtools.artifactregistry.v1.VersionView[message.view] : message.view; return object; }; /** - * Converts this GetVersionRequest to JSON. + * Converts this GetVPCSCConfigRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @instance * @returns {Object.} JSON object */ - GetVersionRequest.prototype.toJSON = function toJSON() { + GetVPCSCConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVersionRequest + * Gets the default type url for GetVPCSCConfigRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.GetVersionRequest + * @memberof google.devtools.artifactregistry.v1.GetVPCSCConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVPCSCConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetVersionRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.GetVPCSCConfigRequest"; }; - return GetVersionRequest; + return GetVPCSCConfigRequest; })(); - v1.DeleteVersionRequest = (function() { + v1.UpdateVPCSCConfigRequest = (function() { /** - * Properties of a DeleteVersionRequest. + * Properties of an UpdateVPCSCConfigRequest. * @memberof google.devtools.artifactregistry.v1 - * @interface IDeleteVersionRequest - * @property {string|null} [name] DeleteVersionRequest name - * @property {boolean|null} [force] DeleteVersionRequest force + * @interface IUpdateVPCSCConfigRequest + * @property {google.devtools.artifactregistry.v1.IVPCSCConfig|null} [vpcscConfig] UpdateVPCSCConfigRequest vpcscConfig + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVPCSCConfigRequest updateMask */ /** - * Constructs a new DeleteVersionRequest. + * Constructs a new UpdateVPCSCConfigRequest. * @memberof google.devtools.artifactregistry.v1 - * @classdesc Represents a DeleteVersionRequest. - * @implements IDeleteVersionRequest + * @classdesc Represents an UpdateVPCSCConfigRequest. + * @implements IUpdateVPCSCConfigRequest * @constructor - * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest=} [properties] Properties to set + * @param {google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest=} [properties] Properties to set */ - function DeleteVersionRequest(properties) { + function UpdateVPCSCConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12132,89 +16521,89 @@ } /** - * DeleteVersionRequest name. - * @member {string} name - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * UpdateVPCSCConfigRequest vpcscConfig. + * @member {google.devtools.artifactregistry.v1.IVPCSCConfig|null|undefined} vpcscConfig + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @instance */ - DeleteVersionRequest.prototype.name = ""; + UpdateVPCSCConfigRequest.prototype.vpcscConfig = null; /** - * DeleteVersionRequest force. - * @member {boolean} force - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * UpdateVPCSCConfigRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @instance */ - DeleteVersionRequest.prototype.force = false; + UpdateVPCSCConfigRequest.prototype.updateMask = null; /** - * Creates a new DeleteVersionRequest instance using the specified properties. + * Creates a new UpdateVPCSCConfigRequest instance using the specified properties. * @function create - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @static - * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest=} [properties] Properties to set - * @returns {google.devtools.artifactregistry.v1.DeleteVersionRequest} DeleteVersionRequest instance + * @param {google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest=} [properties] Properties to set + * @returns {google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest} UpdateVPCSCConfigRequest instance */ - DeleteVersionRequest.create = function create(properties) { - return new DeleteVersionRequest(properties); + UpdateVPCSCConfigRequest.create = function create(properties) { + return new UpdateVPCSCConfigRequest(properties); }; /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteVersionRequest.verify|verify} messages. + * Encodes the specified UpdateVPCSCConfigRequest message. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest.verify|verify} messages. * @function encode - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @static - * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest} message UpdateVPCSCConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVersionRequest.encode = function encode(message, writer) { + UpdateVPCSCConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.vpcscConfig != null && Object.hasOwnProperty.call(message, "vpcscConfig")) + $root.google.devtools.artifactregistry.v1.VPCSCConfig.encode(message.vpcscConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.DeleteVersionRequest.verify|verify} messages. + * Encodes the specified UpdateVPCSCConfigRequest message, length delimited. Does not implicitly {@link google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @static - * @param {google.devtools.artifactregistry.v1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode + * @param {google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest} message UpdateVPCSCConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVPCSCConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer. + * Decodes an UpdateVPCSCConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.devtools.artifactregistry.v1.DeleteVersionRequest} DeleteVersionRequest + * @returns {google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest} UpdateVPCSCConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVersionRequest.decode = function decode(reader, length) { + UpdateVPCSCConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.DeleteVersionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.vpcscConfig = $root.google.devtools.artifactregistry.v1.VPCSCConfig.decode(reader, reader.uint32()); break; } case 2: { - message.force = reader.bool(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -12226,111 +16615,121 @@ }; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVPCSCConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.devtools.artifactregistry.v1.DeleteVersionRequest} DeleteVersionRequest + * @returns {google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest} UpdateVPCSCConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVersionRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateVPCSCConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteVersionRequest message. + * Verifies an UpdateVPCSCConfigRequest message. * @function verify - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteVersionRequest.verify = function verify(message) { + UpdateVPCSCConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.vpcscConfig != null && message.hasOwnProperty("vpcscConfig")) { + var error = $root.google.devtools.artifactregistry.v1.VPCSCConfig.verify(message.vpcscConfig); + if (error) + return "vpcscConfig." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVPCSCConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.devtools.artifactregistry.v1.DeleteVersionRequest} DeleteVersionRequest + * @returns {google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest} UpdateVPCSCConfigRequest */ - DeleteVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.devtools.artifactregistry.v1.DeleteVersionRequest) + UpdateVPCSCConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest) return object; - var message = new $root.google.devtools.artifactregistry.v1.DeleteVersionRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest(); + if (object.vpcscConfig != null) { + if (typeof object.vpcscConfig !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest.vpcscConfig: object expected"); + message.vpcscConfig = $root.google.devtools.artifactregistry.v1.VPCSCConfig.fromObject(object.vpcscConfig); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVPCSCConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @static - * @param {google.devtools.artifactregistry.v1.DeleteVersionRequest} message DeleteVersionRequest + * @param {google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest} message UpdateVPCSCConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteVersionRequest.toObject = function toObject(message, options) { + UpdateVPCSCConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.force = false; + object.vpcscConfig = null; + object.updateMask = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.vpcscConfig != null && message.hasOwnProperty("vpcscConfig")) + object.vpcscConfig = $root.google.devtools.artifactregistry.v1.VPCSCConfig.toObject(message.vpcscConfig, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this DeleteVersionRequest to JSON. + * Converts this UpdateVPCSCConfigRequest to JSON. * @function toJSON - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @instance * @returns {Object.} JSON object */ - DeleteVersionRequest.prototype.toJSON = function toJSON() { + UpdateVPCSCConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteVersionRequest + * Gets the default type url for UpdateVPCSCConfigRequest * @function getTypeUrl - * @memberof google.devtools.artifactregistry.v1.DeleteVersionRequest + * @memberof google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateVPCSCConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.devtools.artifactregistry.v1.DeleteVersionRequest"; + return typeUrlPrefix + "/google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest"; }; - return DeleteVersionRequest; + return UpdateVPCSCConfigRequest; })(); v1.YumArtifact = (function() { diff --git a/packages/google-devtools-artifactregistry/protos/protos.json b/packages/google-devtools-artifactregistry/protos/protos.json index 32b97dcc878d..e62448dc83ed 100644 --- a/packages/google-devtools-artifactregistry/protos/protos.json +++ b/packages/google-devtools-artifactregistry/protos/protos.json @@ -184,6 +184,13 @@ "buildTime": { "type": "google.protobuf.Timestamp", "id": 7 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -203,6 +210,10 @@ "pageToken": { "type": "string", "id": 3 + }, + "orderBy": { + "type": "string", + "id": 4 } } }, @@ -231,6 +242,275 @@ } } }, + "MavenArtifact": { + "options": { + "(google.api.resource).type": "artifactregistry.googleapis.com/MavenArtifact", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/repositories/{repository}/mavenArtifacts/{maven_artifact}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pomUri": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "groupId": { + "type": "string", + "id": 3 + }, + "artifactId": { + "type": "string", + "id": 4 + }, + "version": { + "type": "string", + "id": 5 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ListMavenArtifactsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "artifactregistry.googleapis.com/MavenArtifact" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListMavenArtifactsResponse": { + "fields": { + "mavenArtifacts": { + "rule": "repeated", + "type": "MavenArtifact", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetMavenArtifactRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "artifactregistry.googleapis.com/MavenArtifact" + } + } + } + }, + "NpmPackage": { + "options": { + "(google.api.resource).type": "artifactregistry.googleapis.com/NpmPackage", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/repositories/{repository}/npmPackages/{npm_package}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "packageName": { + "type": "string", + "id": 3 + }, + "version": { + "type": "string", + "id": 4 + }, + "tags": { + "rule": "repeated", + "type": "string", + "id": 5 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ListNpmPackagesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "artifactregistry.googleapis.com/NpmPackage" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListNpmPackagesResponse": { + "fields": { + "npmPackages": { + "rule": "repeated", + "type": "NpmPackage", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetNpmPackageRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "artifactregistry.googleapis.com/NpmPackage" + } + } + } + }, + "PythonPackage": { + "options": { + "(google.api.resource).type": "artifactregistry.googleapis.com/PythonPackage", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/repositories/{repository}/pythonPackages/{python_package}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "uri": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "packageName": { + "type": "string", + "id": 3 + }, + "version": { + "type": "string", + "id": 4 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ListPythonPackagesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "artifactregistry.googleapis.com/PythonPackage" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListPythonPackagesResponse": { + "fields": { + "pythonPackages": { + "rule": "repeated", + "type": "PythonPackage", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetPythonPackageRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "artifactregistry.googleapis.com/PythonPackage" + } + } + } + }, "Hash": { "fields": { "type": { @@ -273,15 +553,28 @@ }, "createTime": { "type": "google.protobuf.Timestamp", - "id": 5 + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "updateTime": { "type": "google.protobuf.Timestamp", - "id": 6 + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "owner": { "type": "string", "id": 7 + }, + "fetchTime": { + "type": "google.protobuf.Timestamp", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -289,7 +582,11 @@ "fields": { "parent": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "artifactregistry.googleapis.com/File" + } }, "filter": { "type": "string", @@ -326,11 +623,19 @@ "fields": { "name": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "artifactregistry.googleapis.com/File" + } } } }, "Package": { + "options": { + "(google.api.resource).type": "artifactregistry.googleapis.com/Package", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/repositories/{repository}/packages/{package}" + }, "fields": { "name": { "type": "string", @@ -356,7 +661,8 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "artifactregistry.googleapis.com/Package" } }, "pageSize": { @@ -388,7 +694,8 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "artifactregistry.googleapis.com/Package" } } } @@ -399,7 +706,8 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "artifactregistry.googleapis.com/Package" } } } @@ -617,6 +925,114 @@ } ] }, + "ListMavenArtifacts": { + "requestType": "ListMavenArtifactsRequest", + "responseType": "ListMavenArtifactsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/repositories/*}/mavenArtifacts", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/repositories/*}/mavenArtifacts" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetMavenArtifact": { + "requestType": "GetMavenArtifactRequest", + "responseType": "MavenArtifact", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/repositories/*/mavenArtifacts/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/repositories/*/mavenArtifacts/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListNpmPackages": { + "requestType": "ListNpmPackagesRequest", + "responseType": "ListNpmPackagesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/repositories/*}/npmPackages", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/repositories/*}/npmPackages" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetNpmPackage": { + "requestType": "GetNpmPackageRequest", + "responseType": "NpmPackage", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/repositories/*/npmPackages/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/repositories/*/npmPackages/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListPythonPackages": { + "requestType": "ListPythonPackagesRequest", + "responseType": "ListPythonPackagesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/repositories/*}/pythonPackages", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/repositories/*}/pythonPackages" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetPythonPackage": { + "requestType": "GetPythonPackageRequest", + "responseType": "PythonPackage", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/repositories/*/pythonPackages/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/repositories/*/pythonPackages/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "ImportAptArtifacts": { "requestType": "ImportAptArtifactsRequest", "responseType": "google.longrunning.Operation", @@ -1112,6 +1528,44 @@ "(google.api.method_signature)": "project_settings,update_mask" } ] + }, + "GetVPCSCConfig": { + "requestType": "GetVPCSCConfigRequest", + "responseType": "VPCSCConfig", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/vpcscConfig}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/vpcscConfig}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateVPCSCConfig": { + "requestType": "UpdateVPCSCConfigRequest", + "responseType": "VPCSCConfig", + "options": { + "(google.api.http).patch": "/v1/{vpcsc_config.name=projects/*/locations/*/vpcscConfig}", + "(google.api.http).body": "vpcsc_config", + "(google.api.method_signature)": "vpcsc_config,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{vpcsc_config.name=projects/*/locations/*/vpcscConfig}", + "body": "vpcsc_config" + } + }, + { + "(google.api.method_signature)": "vpcsc_config,update_mask" + } + ] } } }, @@ -1135,6 +1589,11 @@ }, "nested": { "RedirectionState": { + "valuesOptions": { + "REDIRECTION_FROM_GCR_IO_FINALIZED": { + "deprecated": true + } + }, "values": { "REDIRECTION_STATE_UNSPECIFIED": 0, "REDIRECTION_FROM_GCR_IO_DISABLED": 1, @@ -1368,6 +1827,64 @@ } } }, + "BatchDeleteVersionsMetadata": { + "fields": { + "failedVersions": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, + "VPCSCConfig": { + "options": { + "(google.api.resource).type": "artifactregistry.googleapis.com/VpcscConfig", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/vpcscConfig" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "vpcscPolicy": { + "type": "VPCSCPolicy", + "id": 2 + } + }, + "nested": { + "VPCSCPolicy": { + "values": { + "VPCSC_POLICY_UNSPECIFIED": 0, + "DENY": 1, + "ALLOW": 2 + } + } + } + }, + "GetVPCSCConfigRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "artifactregistry.googleapis.com/VpcscConfig" + } + } + } + }, + "UpdateVPCSCConfigRequest": { + "fields": { + "vpcscConfig": { + "type": "VPCSCConfig", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, "YumArtifact": { "options": { "(google.api.resource).type": "artifactregistry.googleapis.com/YumArtifact", diff --git a/packages/google-devtools-artifactregistry/samples/README.md b/packages/google-devtools-artifactregistry/samples/README.md index 767b77008ae4..2e1aeba52b07 100644 --- a/packages/google-devtools-artifactregistry/samples/README.md +++ b/packages/google-devtools-artifactregistry/samples/README.md @@ -21,16 +21,23 @@ * [Artifact_registry.get_docker_image](#artifact_registry.get_docker_image) * [Artifact_registry.get_file](#artifact_registry.get_file) * [Artifact_registry.get_iam_policy](#artifact_registry.get_iam_policy) + * [Artifact_registry.get_maven_artifact](#artifact_registry.get_maven_artifact) + * [Artifact_registry.get_npm_package](#artifact_registry.get_npm_package) * [Artifact_registry.get_package](#artifact_registry.get_package) * [Artifact_registry.get_project_settings](#artifact_registry.get_project_settings) + * [Artifact_registry.get_python_package](#artifact_registry.get_python_package) * [Artifact_registry.get_repository](#artifact_registry.get_repository) * [Artifact_registry.get_tag](#artifact_registry.get_tag) + * [Artifact_registry.get_v_p_c_s_c_config](#artifact_registry.get_v_p_c_s_c_config) * [Artifact_registry.get_version](#artifact_registry.get_version) * [Artifact_registry.import_apt_artifacts](#artifact_registry.import_apt_artifacts) * [Artifact_registry.import_yum_artifacts](#artifact_registry.import_yum_artifacts) * [Artifact_registry.list_docker_images](#artifact_registry.list_docker_images) * [Artifact_registry.list_files](#artifact_registry.list_files) + * [Artifact_registry.list_maven_artifacts](#artifact_registry.list_maven_artifacts) + * [Artifact_registry.list_npm_packages](#artifact_registry.list_npm_packages) * [Artifact_registry.list_packages](#artifact_registry.list_packages) + * [Artifact_registry.list_python_packages](#artifact_registry.list_python_packages) * [Artifact_registry.list_repositories](#artifact_registry.list_repositories) * [Artifact_registry.list_tags](#artifact_registry.list_tags) * [Artifact_registry.list_versions](#artifact_registry.list_versions) @@ -39,6 +46,7 @@ * [Artifact_registry.update_project_settings](#artifact_registry.update_project_settings) * [Artifact_registry.update_repository](#artifact_registry.update_repository) * [Artifact_registry.update_tag](#artifact_registry.update_tag) + * [Artifact_registry.update_v_p_c_s_c_config](#artifact_registry.update_v_p_c_s_c_config) * [Artifact_registry.create_repository](#artifact_registry.create_repository) * [Artifact_registry.create_tag](#artifact_registry.create_tag) * [Artifact_registry.delete_package](#artifact_registry.delete_package) @@ -235,6 +243,40 @@ __Usage:__ +### Artifact_registry.get_maven_artifact + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_maven_artifact.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_maven_artifact.js,samples/README.md) + +__Usage:__ + + +`node packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_maven_artifact.js` + + +----- + + + + +### Artifact_registry.get_npm_package + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_npm_package.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_npm_package.js,samples/README.md) + +__Usage:__ + + +`node packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_npm_package.js` + + +----- + + + + ### Artifact_registry.get_package View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_package.js). @@ -269,6 +311,23 @@ __Usage:__ +### Artifact_registry.get_python_package + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_python_package.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_python_package.js,samples/README.md) + +__Usage:__ + + +`node packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_python_package.js` + + +----- + + + + ### Artifact_registry.get_repository View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_repository.js). @@ -303,6 +362,23 @@ __Usage:__ +### Artifact_registry.get_v_p_c_s_c_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js` + + +----- + + + + ### Artifact_registry.get_version View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_version.js). @@ -388,6 +464,40 @@ __Usage:__ +### Artifact_registry.list_maven_artifacts + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_maven_artifacts.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_maven_artifacts.js,samples/README.md) + +__Usage:__ + + +`node packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_maven_artifacts.js` + + +----- + + + + +### Artifact_registry.list_npm_packages + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_npm_packages.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_npm_packages.js,samples/README.md) + +__Usage:__ + + +`node packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_npm_packages.js` + + +----- + + + + ### Artifact_registry.list_packages View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_packages.js). @@ -405,6 +515,23 @@ __Usage:__ +### Artifact_registry.list_python_packages + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_python_packages.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_python_packages.js,samples/README.md) + +__Usage:__ + + +`node packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_python_packages.js` + + +----- + + + + ### Artifact_registry.list_repositories View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_repositories.js). @@ -541,6 +668,23 @@ __Usage:__ +### Artifact_registry.update_v_p_c_s_c_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js,samples/README.md) + +__Usage:__ + + +`node packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js` + + +----- + + + + ### Artifact_registry.create_repository View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_repository.js). diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js index 947a76e4a3f9..3b743520431b 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js @@ -20,7 +20,7 @@ 'use strict'; -function main() { +function main(name) { // [START artifactregistry_v1_generated_ArtifactRegistry_GetFile_async] /** * This snippet has been automatically generated and should be regarded as a code template only. @@ -29,7 +29,7 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the file to retrieve. + * Required. The name of the file to retrieve. */ // const name = 'abc123' @@ -42,6 +42,7 @@ function main() { async function callGetFile() { // Construct request const request = { + name, }; // Run request diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_maven_artifact.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_maven_artifact.js new file mode 100644 index 000000000000..235629b118ff --- /dev/null +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_maven_artifact.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START artifactregistry_v1_generated_ArtifactRegistry_GetMavenArtifact_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the maven artifact. + */ + // const name = 'abc123' + + // Imports the Artifactregistry library + const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1; + + // Instantiates a client + const artifactregistryClient = new ArtifactRegistryClient(); + + async function callGetMavenArtifact() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await artifactregistryClient.getMavenArtifact(request); + console.log(response); + } + + callGetMavenArtifact(); + // [END artifactregistry_v1_generated_ArtifactRegistry_GetMavenArtifact_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_npm_package.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_npm_package.js new file mode 100644 index 000000000000..8bc36d342c8b --- /dev/null +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_npm_package.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START artifactregistry_v1_generated_ArtifactRegistry_GetNpmPackage_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the npm package. + */ + // const name = 'abc123' + + // Imports the Artifactregistry library + const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1; + + // Instantiates a client + const artifactregistryClient = new ArtifactRegistryClient(); + + async function callGetNpmPackage() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await artifactregistryClient.getNpmPackage(request); + console.log(response); + } + + callGetNpmPackage(); + // [END artifactregistry_v1_generated_ArtifactRegistry_GetNpmPackage_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_python_package.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_python_package.js new file mode 100644 index 000000000000..6faa0e3bb4bb --- /dev/null +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_python_package.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START artifactregistry_v1_generated_ArtifactRegistry_GetPythonPackage_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the python package. + */ + // const name = 'abc123' + + // Imports the Artifactregistry library + const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1; + + // Instantiates a client + const artifactregistryClient = new ArtifactRegistryClient(); + + async function callGetPythonPackage() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await artifactregistryClient.getPythonPackage(request); + console.log(response); + } + + callGetPythonPackage(); + // [END artifactregistry_v1_generated_ArtifactRegistry_GetPythonPackage_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js new file mode 100644 index 000000000000..04bc879360b7 --- /dev/null +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START artifactregistry_v1_generated_ArtifactRegistry_GetVPCSCConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the VPCSCConfig resource. + */ + // const name = 'abc123' + + // Imports the Artifactregistry library + const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1; + + // Instantiates a client + const artifactregistryClient = new ArtifactRegistryClient(); + + async function callGetVPCSCConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await artifactregistryClient.getVPCSCConfig(request); + console.log(response); + } + + callGetVPCSCConfig(); + // [END artifactregistry_v1_generated_ArtifactRegistry_GetVPCSCConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js index 94a5cc964607..2ac1b2509902 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js @@ -29,7 +29,8 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The name of the parent resource whose docker images will be listed. + * Required. The name of the parent resource whose docker images will be + * listed. */ // const parent = 'abc123' /** @@ -40,6 +41,10 @@ function main(parent) { * The next_page_token value returned from a previous list request, if any. */ // const pageToken = 'abc123' + /** + * The field to order the results by. + */ + // const orderBy = 'abc123' // Imports the Artifactregistry library const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1; diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js index 18d08865caa8..2cb4afca10f5 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js @@ -20,7 +20,7 @@ 'use strict'; -function main() { +function main(parent) { // [START artifactregistry_v1_generated_ArtifactRegistry_ListFiles_async] /** * This snippet has been automatically generated and should be regarded as a code template only. @@ -29,8 +29,8 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name of the repository whose files will be listed. For example: - * "projects/p1/locations/us-central1/repositories/repo1 + * Required. The name of the repository whose files will be listed. For + * example: "projects/p1/locations/us-central1/repositories/repo1 */ // const parent = 'abc123' /** @@ -67,6 +67,7 @@ function main() { async function callListFiles() { // Construct request const request = { + parent, }; // Run request diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_maven_artifacts.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_maven_artifacts.js new file mode 100644 index 000000000000..6255484ab262 --- /dev/null +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_maven_artifacts.js @@ -0,0 +1,72 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START artifactregistry_v1_generated_ArtifactRegistry_ListMavenArtifacts_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent resource whose maven artifacts will be + * listed. + */ + // const parent = 'abc123' + /** + * The maximum number of artifacts to return. + */ + // const pageSize = 1234 + /** + * The next_page_token value returned from a previous list request, if any. + */ + // const pageToken = 'abc123' + + // Imports the Artifactregistry library + const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1; + + // Instantiates a client + const artifactregistryClient = new ArtifactRegistryClient(); + + async function callListMavenArtifacts() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await artifactregistryClient.listMavenArtifactsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListMavenArtifacts(); + // [END artifactregistry_v1_generated_ArtifactRegistry_ListMavenArtifacts_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_npm_packages.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_npm_packages.js new file mode 100644 index 000000000000..64046e6bf3f6 --- /dev/null +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_npm_packages.js @@ -0,0 +1,72 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START artifactregistry_v1_generated_ArtifactRegistry_ListNpmPackages_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent resource whose npm packages will be + * listed. + */ + // const parent = 'abc123' + /** + * The maximum number of artifacts to return. + */ + // const pageSize = 1234 + /** + * The next_page_token value returned from a previous list request, if any. + */ + // const pageToken = 'abc123' + + // Imports the Artifactregistry library + const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1; + + // Instantiates a client + const artifactregistryClient = new ArtifactRegistryClient(); + + async function callListNpmPackages() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await artifactregistryClient.listNpmPackagesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNpmPackages(); + // [END artifactregistry_v1_generated_ArtifactRegistry_ListNpmPackages_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_python_packages.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_python_packages.js new file mode 100644 index 000000000000..704b4e59d6d0 --- /dev/null +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_python_packages.js @@ -0,0 +1,72 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START artifactregistry_v1_generated_ArtifactRegistry_ListPythonPackages_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent resource whose python packages will be + * listed. + */ + // const parent = 'abc123' + /** + * The maximum number of artifacts to return. + */ + // const pageSize = 1234 + /** + * The next_page_token value returned from a previous list request, if any. + */ + // const pageToken = 'abc123' + + // Imports the Artifactregistry library + const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1; + + // Instantiates a client + const artifactregistryClient = new ArtifactRegistryClient(); + + async function callListPythonPackages() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await artifactregistryClient.listPythonPackagesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListPythonPackages(); + // [END artifactregistry_v1_generated_ArtifactRegistry_ListPythonPackages_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js new file mode 100644 index 000000000000..c81183879983 --- /dev/null +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js @@ -0,0 +1,64 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main() { + // [START artifactregistry_v1_generated_ArtifactRegistry_UpdateVPCSCConfig_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The project config. + */ + // const vpcscConfig = {} + /** + * Field mask to support partial updates. + */ + // const updateMask = {} + + // Imports the Artifactregistry library + const {ArtifactRegistryClient} = require('@google-cloud/artifact-registry').v1; + + // Instantiates a client + const artifactregistryClient = new ArtifactRegistryClient(); + + async function callUpdateVPCSCConfig() { + // Construct request + const request = { + }; + + // Run request + const response = await artifactregistryClient.updateVPCSCConfig(request); + console.log(response); + } + + callUpdateVPCSCConfig(); + // [END artifactregistry_v1_generated_ArtifactRegistry_UpdateVPCSCConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json b/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json index 09ff5a19412c..953f8a1dfb92 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 68, "type": "FULL" } ], @@ -42,6 +42,10 @@ { "name": "page_token", "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" } ], "resultType": ".google.devtools.artifactregistry.v1.ListDockerImagesResponse", @@ -99,6 +103,270 @@ } } }, + { + "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListMavenArtifacts_async", + "title": "ArtifactRegistry listMavenArtifacts Sample", + "origin": "API_DEFINITION", + "description": " Lists maven artifacts.", + "canonical": true, + "file": "artifact_registry.list_maven_artifacts.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListMavenArtifacts", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListMavenArtifacts", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.artifactregistry.v1.ListMavenArtifactsResponse", + "client": { + "shortName": "ArtifactRegistryClient", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" + }, + "method": { + "shortName": "ListMavenArtifacts", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListMavenArtifacts", + "service": { + "shortName": "ArtifactRegistry", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" + } + } + } + }, + { + "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetMavenArtifact_async", + "title": "ArtifactRegistry getMavenArtifact Sample", + "origin": "API_DEFINITION", + "description": " Gets a maven artifact.", + "canonical": true, + "file": "artifact_registry.get_maven_artifact.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetMavenArtifact", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetMavenArtifact", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.artifactregistry.v1.MavenArtifact", + "client": { + "shortName": "ArtifactRegistryClient", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" + }, + "method": { + "shortName": "GetMavenArtifact", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetMavenArtifact", + "service": { + "shortName": "ArtifactRegistry", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" + } + } + } + }, + { + "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListNpmPackages_async", + "title": "ArtifactRegistry listNpmPackages Sample", + "origin": "API_DEFINITION", + "description": " Lists npm packages.", + "canonical": true, + "file": "artifact_registry.list_npm_packages.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNpmPackages", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListNpmPackages", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.artifactregistry.v1.ListNpmPackagesResponse", + "client": { + "shortName": "ArtifactRegistryClient", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" + }, + "method": { + "shortName": "ListNpmPackages", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListNpmPackages", + "service": { + "shortName": "ArtifactRegistry", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" + } + } + } + }, + { + "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetNpmPackage_async", + "title": "ArtifactRegistry getNpmPackage Sample", + "origin": "API_DEFINITION", + "description": " Gets a npm package.", + "canonical": true, + "file": "artifact_registry.get_npm_package.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNpmPackage", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetNpmPackage", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.artifactregistry.v1.NpmPackage", + "client": { + "shortName": "ArtifactRegistryClient", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" + }, + "method": { + "shortName": "GetNpmPackage", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetNpmPackage", + "service": { + "shortName": "ArtifactRegistry", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" + } + } + } + }, + { + "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListPythonPackages_async", + "title": "ArtifactRegistry listPythonPackages Sample", + "origin": "API_DEFINITION", + "description": " Lists python packages.", + "canonical": true, + "file": "artifact_registry.list_python_packages.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListPythonPackages", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListPythonPackages", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.artifactregistry.v1.ListPythonPackagesResponse", + "client": { + "shortName": "ArtifactRegistryClient", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" + }, + "method": { + "shortName": "ListPythonPackages", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListPythonPackages", + "service": { + "shortName": "ArtifactRegistry", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" + } + } + } + }, + { + "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetPythonPackage_async", + "title": "ArtifactRegistry getPythonPackage Sample", + "origin": "API_DEFINITION", + "description": " Gets a python package.", + "canonical": true, + "file": "artifact_registry.get_python_package.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetPythonPackage", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetPythonPackage", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.artifactregistry.v1.PythonPackage", + "client": { + "shortName": "ArtifactRegistryClient", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" + }, + "method": { + "shortName": "GetPythonPackage", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetPythonPackage", + "service": { + "shortName": "ArtifactRegistry", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" + } + } + } + }, { "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ImportAptArtifacts_async", "title": "ArtifactRegistry importAptArtifacts Sample", @@ -690,7 +958,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 80, "type": "FULL" } ], @@ -746,7 +1014,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 53, "type": "FULL" } ], @@ -1218,6 +1486,90 @@ } } } + }, + { + "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetVPCSCConfig_async", + "title": "ArtifactRegistry getVPCSCConfig Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the VPCSC Config for the Project.", + "canonical": true, + "file": "artifact_registry.get_v_p_c_s_c_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetVPCSCConfig", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetVPCSCConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.artifactregistry.v1.VPCSCConfig", + "client": { + "shortName": "ArtifactRegistryClient", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" + }, + "method": { + "shortName": "GetVPCSCConfig", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetVPCSCConfig", + "service": { + "shortName": "ArtifactRegistry", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" + } + } + } + }, + { + "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_UpdateVPCSCConfig_async", + "title": "ArtifactRegistry updateVPCSCConfig Sample", + "origin": "API_DEFINITION", + "description": " Updates the VPCSC Config for the Project.", + "canonical": true, + "file": "artifact_registry.update_v_p_c_s_c_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateVPCSCConfig", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateVPCSCConfig", + "async": true, + "parameters": [ + { + "name": "vpcsc_config", + "type": ".google.devtools.artifactregistry.v1.VPCSCConfig" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.devtools.artifactregistry.v1.VPCSCConfig", + "client": { + "shortName": "ArtifactRegistryClient", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" + }, + "method": { + "shortName": "UpdateVPCSCConfig", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateVPCSCConfig", + "service": { + "shortName": "ArtifactRegistry", + "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" + } + } + } } ] } \ No newline at end of file diff --git a/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client.ts b/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client.ts index bd2bec557397..83c8c6416042 100644 --- a/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client.ts +++ b/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client.ts @@ -209,9 +209,21 @@ export class ArtifactRegistryClient { filePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/repositories/{repository}/files/{file}' ), + mavenArtifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/repositories/{repository}/mavenArtifacts/{maven_artifact}' + ), + npmPackagePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/repositories/{repository}/npmPackages/{npm_package}' + ), + packagePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/repositories/{repository}/packages/{package}' + ), projectSettingsPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/projectSettings' ), + pythonPackagePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/repositories/{repository}/pythonPackages/{python_package}' + ), repositoryPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/repositories/{repository}' ), @@ -221,6 +233,9 @@ export class ArtifactRegistryClient { versionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}' ), + vpcscConfigPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/vpcscConfig' + ), yumArtifactPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/repositories/{repository}/yumArtifacts/{yum_artifact}' ), @@ -235,6 +250,21 @@ export class ArtifactRegistryClient { 'nextPageToken', 'dockerImages' ), + listMavenArtifacts: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'mavenArtifacts' + ), + listNpmPackages: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'npmPackages' + ), + listPythonPackages: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'pythonPackages' + ), listRepositories: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -413,6 +443,12 @@ export class ArtifactRegistryClient { const artifactRegistryStubMethods = [ 'listDockerImages', 'getDockerImage', + 'listMavenArtifacts', + 'getMavenArtifact', + 'listNpmPackages', + 'getNpmPackage', + 'listPythonPackages', + 'getPythonPackage', 'importAptArtifacts', 'importYumArtifacts', 'listRepositories', @@ -438,6 +474,8 @@ export class ArtifactRegistryClient { 'testIamPermissions', 'getProjectSettings', 'updateProjectSettings', + 'getVpcscConfig', + 'updateVpcscConfig', ]; for (const methodName of artifactRegistryStubMethods) { const callPromise = this.artifactRegistryStub.then( @@ -624,6 +662,297 @@ export class ArtifactRegistryClient { this.initialize(); return this.innerApiCalls.getDockerImage(request, options, callback); } + /** + * Gets a maven artifact. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the maven artifact. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [MavenArtifact]{@link google.devtools.artifactregistry.v1.MavenArtifact}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/artifact_registry.get_maven_artifact.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_GetMavenArtifact_async + */ + getMavenArtifact( + request?: protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, + options?: CallOptions + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IMavenArtifact, + ( + | protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest + | undefined + ), + {} | undefined + ] + >; + getMavenArtifact( + request: protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, + options: CallOptions, + callback: Callback< + protos.google.devtools.artifactregistry.v1.IMavenArtifact, + | protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getMavenArtifact( + request: protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, + callback: Callback< + protos.google.devtools.artifactregistry.v1.IMavenArtifact, + | protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getMavenArtifact( + request?: protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.devtools.artifactregistry.v1.IMavenArtifact, + | protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.devtools.artifactregistry.v1.IMavenArtifact, + | protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IMavenArtifact, + ( + | protos.google.devtools.artifactregistry.v1.IGetMavenArtifactRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getMavenArtifact(request, options, callback); + } + /** + * Gets a npm package. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the npm package. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [NpmPackage]{@link google.devtools.artifactregistry.v1.NpmPackage}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/artifact_registry.get_npm_package.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_GetNpmPackage_async + */ + getNpmPackage( + request?: protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest, + options?: CallOptions + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.INpmPackage, + ( + | protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest + | undefined + ), + {} | undefined + ] + >; + getNpmPackage( + request: protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest, + options: CallOptions, + callback: Callback< + protos.google.devtools.artifactregistry.v1.INpmPackage, + | protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getNpmPackage( + request: protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest, + callback: Callback< + protos.google.devtools.artifactregistry.v1.INpmPackage, + | protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getNpmPackage( + request?: protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.devtools.artifactregistry.v1.INpmPackage, + | protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.devtools.artifactregistry.v1.INpmPackage, + | protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.INpmPackage, + ( + | protos.google.devtools.artifactregistry.v1.IGetNpmPackageRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getNpmPackage(request, options, callback); + } + /** + * Gets a python package. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the python package. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [PythonPackage]{@link google.devtools.artifactregistry.v1.PythonPackage}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/artifact_registry.get_python_package.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_GetPythonPackage_async + */ + getPythonPackage( + request?: protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest, + options?: CallOptions + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IPythonPackage, + ( + | protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest + | undefined + ), + {} | undefined + ] + >; + getPythonPackage( + request: protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest, + options: CallOptions, + callback: Callback< + protos.google.devtools.artifactregistry.v1.IPythonPackage, + | protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getPythonPackage( + request: protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest, + callback: Callback< + protos.google.devtools.artifactregistry.v1.IPythonPackage, + | protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getPythonPackage( + request?: protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.devtools.artifactregistry.v1.IPythonPackage, + | protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.devtools.artifactregistry.v1.IPythonPackage, + | protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IPythonPackage, + ( + | protos.google.devtools.artifactregistry.v1.IGetPythonPackageRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getPythonPackage(request, options, callback); + } /** * Gets a repository. * @@ -1012,7 +1341,7 @@ export class ArtifactRegistryClient { * @param {Object} request * The request object that will be sent. * @param {string} request.name - * The name of the file to retrieve. + * Required. The name of the file to retrieve. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1936,46 +2265,242 @@ export class ArtifactRegistryClient { this.initialize(); return this.innerApiCalls.updateProjectSettings(request, options, callback); } - /** - * Imports Apt artifacts. The returned Operation will complete once the - * resources are imported. Package, Version, and File resources are created - * based on the imported artifacts. Imported artifacts that conflict with - * existing resources are ignored. + * Retrieves the VPCSC Config for the Project. * * @param {Object} request * The request object that will be sent. - * @param {google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource} request.gcsSource - * Google Cloud Storage location where input content is located. - * @param {string} request.parent - * The name of the parent resource where the artifacts will be imported. + * @param {string} request.name + * Required. The name of the VPCSCConfig resource. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. + * The first element of the array is an object representing [VPCSCConfig]{@link google.devtools.artifactregistry.v1.VPCSCConfig}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/artifact_registry.import_apt_artifacts.js - * region_tag:artifactregistry_v1_generated_ArtifactRegistry_ImportAptArtifacts_async + * @example include:samples/generated/v1/artifact_registry.get_v_p_c_s_c_config.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_GetVPCSCConfig_async */ - importAptArtifacts( - request?: protos.google.devtools.artifactregistry.v1.IImportAptArtifactsRequest, + getVPCSCConfig( + request?: protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, - protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + ( + | protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest + | undefined + ), {} | undefined ] >; - importAptArtifacts( - request: protos.google.devtools.artifactregistry.v1.IImportAptArtifactsRequest, + getVPCSCConfig( + request: protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + | protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getVPCSCConfig( + request: protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, + callback: Callback< + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + | protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getVPCSCConfig( + request?: protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + | protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + | protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + ( + | protos.google.devtools.artifactregistry.v1.IGetVPCSCConfigRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getVpcscConfig(request, options, callback); + } + /** + * Updates the VPCSC Config for the Project. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.devtools.artifactregistry.v1.VPCSCConfig} request.vpcscConfig + * The project config. + * @param {google.protobuf.FieldMask} request.updateMask + * Field mask to support partial updates. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [VPCSCConfig]{@link google.devtools.artifactregistry.v1.VPCSCConfig}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/artifact_registry.update_v_p_c_s_c_config.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_UpdateVPCSCConfig_async + */ + updateVPCSCConfig( + request?: protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, + options?: CallOptions + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + ( + | protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest + | undefined + ), + {} | undefined + ] + >; + updateVPCSCConfig( + request: protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + | protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateVPCSCConfig( + request: protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, + callback: Callback< + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + | protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateVPCSCConfig( + request?: protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + | protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + | protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IVPCSCConfig, + ( + | protos.google.devtools.artifactregistry.v1.IUpdateVPCSCConfigRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'vpcsc_config.name': request.vpcscConfig!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateVpcscConfig(request, options, callback); + } + + /** + * Imports Apt artifacts. The returned Operation will complete once the + * resources are imported. Package, Version, and File resources are created + * based on the imported artifacts. Imported artifacts that conflict with + * existing resources are ignored. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource} request.gcsSource + * Google Cloud Storage location where input content is located. + * @param {string} request.parent + * The name of the parent resource where the artifacts will be imported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/artifact_registry.import_apt_artifacts.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_ImportAptArtifacts_async + */ + importAptArtifacts( + request?: protos.google.devtools.artifactregistry.v1.IImportAptArtifactsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, + protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + importAptArtifacts( + request: protos.google.devtools.artifactregistry.v1.IImportAptArtifactsRequest, options: CallOptions, callback: Callback< LROperation< @@ -2793,11 +3318,14 @@ export class ArtifactRegistryClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent resource whose docker images will be listed. + * Required. The name of the parent resource whose docker images will be + * listed. * @param {number} request.pageSize * The maximum number of artifacts to return. * @param {string} request.pageToken * The next_page_token value returned from a previous list request, if any. + * @param {string} request.orderBy + * The field to order the results by. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2891,11 +3419,14 @@ export class ArtifactRegistryClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent resource whose docker images will be listed. + * Required. The name of the parent resource whose docker images will be + * listed. * @param {number} request.pageSize * The maximum number of artifacts to return. * @param {string} request.pageToken * The next_page_token value returned from a previous list request, if any. + * @param {string} request.orderBy + * The field to order the results by. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2937,11 +3468,14 @@ export class ArtifactRegistryClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent resource whose docker images will be listed. + * Required. The name of the parent resource whose docker images will be + * listed. * @param {number} request.pageSize * The maximum number of artifacts to return. * @param {string} request.pageToken * The next_page_token value returned from a previous list request, if any. + * @param {string} request.orderBy + * The field to order the results by. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -2977,83 +3511,84 @@ export class ArtifactRegistryClient { ) as AsyncIterable; } /** - * Lists repositories. + * Lists maven artifacts. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent resource whose repositories will be listed. + * Required. The name of the parent resource whose maven artifacts will be + * listed. * @param {number} request.pageSize - * The maximum number of repositories to return. Maximum page size is 1,000. + * The maximum number of artifacts to return. * @param {string} request.pageToken * The next_page_token value returned from a previous list request, if any. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Repository]{@link google.devtools.artifactregistry.v1.Repository}. + * The first element of the array is Array of [MavenArtifact]{@link google.devtools.artifactregistry.v1.MavenArtifact}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listRepositoriesAsync()` + * We recommend using `listMavenArtifactsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listRepositories( - request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + listMavenArtifacts( + request?: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, options?: CallOptions ): Promise< [ - protos.google.devtools.artifactregistry.v1.IRepository[], - protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest | null, - protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + protos.google.devtools.artifactregistry.v1.IMavenArtifact[], + protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest | null, + protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse ] >; - listRepositories( - request: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + listMavenArtifacts( + request: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, - | protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, + | protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse | null | undefined, - protos.google.devtools.artifactregistry.v1.IRepository + protos.google.devtools.artifactregistry.v1.IMavenArtifact > ): void; - listRepositories( - request: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + listMavenArtifacts( + request: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, callback: PaginationCallback< - protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, - | protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, + | protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse | null | undefined, - protos.google.devtools.artifactregistry.v1.IRepository + protos.google.devtools.artifactregistry.v1.IMavenArtifact > ): void; - listRepositories( - request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + listMavenArtifacts( + request?: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, - | protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, + | protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse | null | undefined, - protos.google.devtools.artifactregistry.v1.IRepository + protos.google.devtools.artifactregistry.v1.IMavenArtifact >, callback?: PaginationCallback< - protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, - | protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, + | protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse | null | undefined, - protos.google.devtools.artifactregistry.v1.IRepository + protos.google.devtools.artifactregistry.v1.IMavenArtifact > ): Promise< [ - protos.google.devtools.artifactregistry.v1.IRepository[], - protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest | null, - protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + protos.google.devtools.artifactregistry.v1.IMavenArtifact[], + protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest | null, + protos.google.devtools.artifactregistry.v1.IListMavenArtifactsResponse ] > | void { request = request || {}; @@ -3072,7 +3607,7 @@ export class ArtifactRegistryClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listRepositories(request, options, callback); + return this.innerApiCalls.listMavenArtifacts(request, options, callback); } /** @@ -3080,25 +3615,26 @@ export class ArtifactRegistryClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent resource whose repositories will be listed. + * Required. The name of the parent resource whose maven artifacts will be + * listed. * @param {number} request.pageSize - * The maximum number of repositories to return. Maximum page size is 1,000. + * The maximum number of artifacts to return. * @param {string} request.pageToken * The next_page_token value returned from a previous list request, if any. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Repository]{@link google.devtools.artifactregistry.v1.Repository} on 'data' event. + * An object stream which emits an object representing [MavenArtifact]{@link google.devtools.artifactregistry.v1.MavenArtifact} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listRepositoriesAsync()` + * We recommend using `listMavenArtifactsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listRepositoriesStream( - request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + listMavenArtifactsStream( + request?: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -3109,26 +3645,27 @@ export class ArtifactRegistryClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listRepositories']; + const defaultCallSettings = this._defaults['listMavenArtifacts']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listRepositories.createStream( - this.innerApiCalls.listRepositories as GaxCall, + return this.descriptors.page.listMavenArtifacts.createStream( + this.innerApiCalls.listMavenArtifacts as GaxCall, request, callSettings ); } /** - * Equivalent to `listRepositories`, but returns an iterable object. + * Equivalent to `listMavenArtifacts`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent resource whose repositories will be listed. + * Required. The name of the parent resource whose maven artifacts will be + * listed. * @param {number} request.pageSize - * The maximum number of repositories to return. Maximum page size is 1,000. + * The maximum number of artifacts to return. * @param {string} request.pageToken * The next_page_token value returned from a previous list request, if any. * @param {object} [options] @@ -3136,18 +3673,18 @@ export class ArtifactRegistryClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Repository]{@link google.devtools.artifactregistry.v1.Repository}. The API will be called under the hood as needed, once per the page, + * [MavenArtifact]{@link google.devtools.artifactregistry.v1.MavenArtifact}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1/artifact_registry.list_repositories.js - * region_tag:artifactregistry_v1_generated_ArtifactRegistry_ListRepositories_async + * @example include:samples/generated/v1/artifact_registry.list_maven_artifacts.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_ListMavenArtifacts_async */ - listRepositoriesAsync( - request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + listMavenArtifactsAsync( + request?: protos.google.devtools.artifactregistry.v1.IListMavenArtifactsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3156,93 +3693,666 @@ export class ArtifactRegistryClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listRepositories']; + const defaultCallSettings = this._defaults['listMavenArtifacts']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listRepositories.asyncIterate( - this.innerApiCalls['listRepositories'] as GaxCall, + return this.descriptors.page.listMavenArtifacts.asyncIterate( + this.innerApiCalls['listMavenArtifacts'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists packages. + * Lists npm packages. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent resource whose packages will be listed. + * Required. The name of the parent resource whose npm packages will be + * listed. * @param {number} request.pageSize - * The maximum number of packages to return. Maximum page size is 1,000. + * The maximum number of artifacts to return. * @param {string} request.pageToken * The next_page_token value returned from a previous list request, if any. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Package]{@link google.devtools.artifactregistry.v1.Package}. + * The first element of the array is Array of [NpmPackage]{@link google.devtools.artifactregistry.v1.NpmPackage}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listPackagesAsync()` + * We recommend using `listNpmPackagesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listPackages( - request?: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + listNpmPackages( + request?: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, options?: CallOptions ): Promise< [ - protos.google.devtools.artifactregistry.v1.IPackage[], - protos.google.devtools.artifactregistry.v1.IListPackagesRequest | null, - protos.google.devtools.artifactregistry.v1.IListPackagesResponse + protos.google.devtools.artifactregistry.v1.INpmPackage[], + protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest | null, + protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse ] >; - listPackages( - request: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + listNpmPackages( + request: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.devtools.artifactregistry.v1.IListPackagesRequest, - | protos.google.devtools.artifactregistry.v1.IListPackagesResponse + protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse | null | undefined, - protos.google.devtools.artifactregistry.v1.IPackage + protos.google.devtools.artifactregistry.v1.INpmPackage > ): void; - listPackages( - request: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + listNpmPackages( + request: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, callback: PaginationCallback< - protos.google.devtools.artifactregistry.v1.IListPackagesRequest, - | protos.google.devtools.artifactregistry.v1.IListPackagesResponse + protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse | null | undefined, - protos.google.devtools.artifactregistry.v1.IPackage + protos.google.devtools.artifactregistry.v1.INpmPackage > ): void; - listPackages( - request?: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + listNpmPackages( + request?: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.devtools.artifactregistry.v1.IListPackagesRequest, - | protos.google.devtools.artifactregistry.v1.IListPackagesResponse + protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse | null | undefined, - protos.google.devtools.artifactregistry.v1.IPackage + protos.google.devtools.artifactregistry.v1.INpmPackage >, callback?: PaginationCallback< - protos.google.devtools.artifactregistry.v1.IListPackagesRequest, - | protos.google.devtools.artifactregistry.v1.IListPackagesResponse + protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse | null | undefined, - protos.google.devtools.artifactregistry.v1.IPackage + protos.google.devtools.artifactregistry.v1.INpmPackage > ): Promise< [ - protos.google.devtools.artifactregistry.v1.IPackage[], - protos.google.devtools.artifactregistry.v1.IListPackagesRequest | null, - protos.google.devtools.artifactregistry.v1.IListPackagesResponse + protos.google.devtools.artifactregistry.v1.INpmPackage[], + protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest | null, + protos.google.devtools.artifactregistry.v1.IListNpmPackagesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listNpmPackages(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent resource whose npm packages will be + * listed. + * @param {number} request.pageSize + * The maximum number of artifacts to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [NpmPackage]{@link google.devtools.artifactregistry.v1.NpmPackage} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listNpmPackagesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listNpmPackagesStream( + request?: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listNpmPackages']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listNpmPackages.createStream( + this.innerApiCalls.listNpmPackages as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listNpmPackages`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent resource whose npm packages will be + * listed. + * @param {number} request.pageSize + * The maximum number of artifacts to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [NpmPackage]{@link google.devtools.artifactregistry.v1.NpmPackage}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/artifact_registry.list_npm_packages.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_ListNpmPackages_async + */ + listNpmPackagesAsync( + request?: protos.google.devtools.artifactregistry.v1.IListNpmPackagesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listNpmPackages']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listNpmPackages.asyncIterate( + this.innerApiCalls['listNpmPackages'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists python packages. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent resource whose python packages will be + * listed. + * @param {number} request.pageSize + * The maximum number of artifacts to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [PythonPackage]{@link google.devtools.artifactregistry.v1.PythonPackage}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listPythonPackagesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listPythonPackages( + request?: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IPythonPackage[], + protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest | null, + protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse + ] + >; + listPythonPackages( + request: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IPythonPackage + > + ): void; + listPythonPackages( + request: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + callback: PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IPythonPackage + > + ): void; + listPythonPackages( + request?: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IPythonPackage + >, + callback?: PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IPythonPackage + > + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IPythonPackage[], + protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest | null, + protos.google.devtools.artifactregistry.v1.IListPythonPackagesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listPythonPackages(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent resource whose python packages will be + * listed. + * @param {number} request.pageSize + * The maximum number of artifacts to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [PythonPackage]{@link google.devtools.artifactregistry.v1.PythonPackage} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listPythonPackagesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listPythonPackagesStream( + request?: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listPythonPackages']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listPythonPackages.createStream( + this.innerApiCalls.listPythonPackages as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listPythonPackages`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent resource whose python packages will be + * listed. + * @param {number} request.pageSize + * The maximum number of artifacts to return. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [PythonPackage]{@link google.devtools.artifactregistry.v1.PythonPackage}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/artifact_registry.list_python_packages.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_ListPythonPackages_async + */ + listPythonPackagesAsync( + request?: protos.google.devtools.artifactregistry.v1.IListPythonPackagesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listPythonPackages']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listPythonPackages.asyncIterate( + this.innerApiCalls['listPythonPackages'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists repositories. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent resource whose repositories will be listed. + * @param {number} request.pageSize + * The maximum number of repositories to return. Maximum page size is 1,000. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Repository]{@link google.devtools.artifactregistry.v1.Repository}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listRepositoriesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listRepositories( + request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IRepository[], + protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest | null, + protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + ] + >; + listRepositories( + request: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + | protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IRepository + > + ): void; + listRepositories( + request: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + callback: PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + | protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IRepository + > + ): void; + listRepositories( + request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + | protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IRepository + >, + callback?: PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + | protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IRepository + > + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IRepository[], + protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest | null, + protos.google.devtools.artifactregistry.v1.IListRepositoriesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listRepositories(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent resource whose repositories will be listed. + * @param {number} request.pageSize + * The maximum number of repositories to return. Maximum page size is 1,000. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Repository]{@link google.devtools.artifactregistry.v1.Repository} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listRepositoriesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listRepositoriesStream( + request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listRepositories']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listRepositories.createStream( + this.innerApiCalls.listRepositories as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listRepositories`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent resource whose repositories will be listed. + * @param {number} request.pageSize + * The maximum number of repositories to return. Maximum page size is 1,000. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Repository]{@link google.devtools.artifactregistry.v1.Repository}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/artifact_registry.list_repositories.js + * region_tag:artifactregistry_v1_generated_ArtifactRegistry_ListRepositories_async + */ + listRepositoriesAsync( + request?: protos.google.devtools.artifactregistry.v1.IListRepositoriesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listRepositories']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listRepositories.asyncIterate( + this.innerApiCalls['listRepositories'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists packages. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent resource whose packages will be listed. + * @param {number} request.pageSize + * The maximum number of packages to return. Maximum page size is 1,000. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request, if any. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Package]{@link google.devtools.artifactregistry.v1.Package}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listPackagesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listPackages( + request?: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IPackage[], + protos.google.devtools.artifactregistry.v1.IListPackagesRequest | null, + protos.google.devtools.artifactregistry.v1.IListPackagesResponse + ] + >; + listPackages( + request: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListPackagesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IPackage + > + ): void; + listPackages( + request: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + callback: PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListPackagesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IPackage + > + ): void; + listPackages( + request?: protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListPackagesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IPackage + >, + callback?: PaginationCallback< + protos.google.devtools.artifactregistry.v1.IListPackagesRequest, + | protos.google.devtools.artifactregistry.v1.IListPackagesResponse + | null + | undefined, + protos.google.devtools.artifactregistry.v1.IPackage + > + ): Promise< + [ + protos.google.devtools.artifactregistry.v1.IPackage[], + protos.google.devtools.artifactregistry.v1.IListPackagesRequest | null, + protos.google.devtools.artifactregistry.v1.IListPackagesResponse ] > | void { request = request || {}; @@ -3561,8 +4671,8 @@ export class ArtifactRegistryClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * The name of the repository whose files will be listed. For example: - * "projects/p1/locations/us-central1/repositories/repo1 + * Required. The name of the repository whose files will be listed. For + * example: "projects/p1/locations/us-central1/repositories/repo1 * @param {string} request.filter * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -3675,8 +4785,8 @@ export class ArtifactRegistryClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * The name of the repository whose files will be listed. For example: - * "projects/p1/locations/us-central1/repositories/repo1 + * Required. The name of the repository whose files will be listed. For + * example: "projects/p1/locations/us-central1/repositories/repo1 * @param {string} request.filter * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -3737,8 +4847,8 @@ export class ArtifactRegistryClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * The name of the repository whose files will be listed. For example: - * "projects/p1/locations/us-central1/repositories/repo1 + * Required. The name of the repository whose files will be listed. For + * example: "projects/p1/locations/us-central1/repositories/repo1 * @param {string} request.filter * An expression for filtering the results of the request. Filter rules are * case insensitive. The fields eligible for filtering are: @@ -4027,68 +5137,245 @@ export class ArtifactRegistryClient { * for more details and examples. * @example * ``` - * const [response] = await client.getLocation(request); + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); * ``` */ - getLocation( - request: LocationProtos.google.cloud.location.IGetLocationRequest, + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, options?: | gax.CallOptions | Callback< - LocationProtos.google.cloud.location.ILocation, - | LocationProtos.google.cloud.location.IGetLocationRequest - | null - | undefined, - {} | null | undefined + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null >, callback?: Callback< - LocationProtos.google.cloud.location.ILocation, - | LocationProtos.google.cloud.location.IGetLocationRequest - | null - | undefined, - {} | null | undefined + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null > - ): Promise { - return this.locationsClient.getLocation(request, options, callback); + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); } /** - * Lists information about the supported locations for this service. Returns an iterable object. + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. * - * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * The resource that owns the locations collection, if applicable. - * @param {string} request.filter - * The standard list filter. - * @param {number} request.pageSize - * The standard list page size. - * @param {string} request.pageToken - * The standard list page token. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Object} - * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). - * When you iterate the returned iterable, each element will be an object representing - * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, - * so you can stop the iteration when you don't need more results. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. * @example * ``` - * const iterable = client.listLocationsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); * ``` */ - listLocationsAsync( - request: LocationProtos.google.cloud.location.IListLocationsRequest, - options?: CallOptions - ): AsyncIterable { - return this.locationsClient.listLocationsAsync(request, options); + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); } // -------------------- @@ -4304,6 +5591,215 @@ export class ArtifactRegistryClient { return this.pathTemplates.filePathTemplate.match(fileName).file; } + /** + * Return a fully-qualified mavenArtifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} repository + * @param {string} maven_artifact + * @returns {string} Resource name string. + */ + mavenArtifactPath( + project: string, + location: string, + repository: string, + mavenArtifact: string + ) { + return this.pathTemplates.mavenArtifactPathTemplate.render({ + project: project, + location: location, + repository: repository, + maven_artifact: mavenArtifact, + }); + } + + /** + * Parse the project from MavenArtifact resource. + * + * @param {string} mavenArtifactName + * A fully-qualified path representing MavenArtifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMavenArtifactName(mavenArtifactName: string) { + return this.pathTemplates.mavenArtifactPathTemplate.match(mavenArtifactName) + .project; + } + + /** + * Parse the location from MavenArtifact resource. + * + * @param {string} mavenArtifactName + * A fully-qualified path representing MavenArtifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMavenArtifactName(mavenArtifactName: string) { + return this.pathTemplates.mavenArtifactPathTemplate.match(mavenArtifactName) + .location; + } + + /** + * Parse the repository from MavenArtifact resource. + * + * @param {string} mavenArtifactName + * A fully-qualified path representing MavenArtifact resource. + * @returns {string} A string representing the repository. + */ + matchRepositoryFromMavenArtifactName(mavenArtifactName: string) { + return this.pathTemplates.mavenArtifactPathTemplate.match(mavenArtifactName) + .repository; + } + + /** + * Parse the maven_artifact from MavenArtifact resource. + * + * @param {string} mavenArtifactName + * A fully-qualified path representing MavenArtifact resource. + * @returns {string} A string representing the maven_artifact. + */ + matchMavenArtifactFromMavenArtifactName(mavenArtifactName: string) { + return this.pathTemplates.mavenArtifactPathTemplate.match(mavenArtifactName) + .maven_artifact; + } + + /** + * Return a fully-qualified npmPackage resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} repository + * @param {string} npm_package + * @returns {string} Resource name string. + */ + npmPackagePath( + project: string, + location: string, + repository: string, + npmPackage: string + ) { + return this.pathTemplates.npmPackagePathTemplate.render({ + project: project, + location: location, + repository: repository, + npm_package: npmPackage, + }); + } + + /** + * Parse the project from NpmPackage resource. + * + * @param {string} npmPackageName + * A fully-qualified path representing NpmPackage resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNpmPackageName(npmPackageName: string) { + return this.pathTemplates.npmPackagePathTemplate.match(npmPackageName) + .project; + } + + /** + * Parse the location from NpmPackage resource. + * + * @param {string} npmPackageName + * A fully-qualified path representing NpmPackage resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNpmPackageName(npmPackageName: string) { + return this.pathTemplates.npmPackagePathTemplate.match(npmPackageName) + .location; + } + + /** + * Parse the repository from NpmPackage resource. + * + * @param {string} npmPackageName + * A fully-qualified path representing NpmPackage resource. + * @returns {string} A string representing the repository. + */ + matchRepositoryFromNpmPackageName(npmPackageName: string) { + return this.pathTemplates.npmPackagePathTemplate.match(npmPackageName) + .repository; + } + + /** + * Parse the npm_package from NpmPackage resource. + * + * @param {string} npmPackageName + * A fully-qualified path representing NpmPackage resource. + * @returns {string} A string representing the npm_package. + */ + matchNpmPackageFromNpmPackageName(npmPackageName: string) { + return this.pathTemplates.npmPackagePathTemplate.match(npmPackageName) + .npm_package; + } + + /** + * Return a fully-qualified package resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} repository + * @param {string} packageParam + * @returns {string} Resource name string. + */ + packagePath( + project: string, + location: string, + repository: string, + packageParam: string + ) { + return this.pathTemplates.packagePathTemplate.render({ + project: project, + location: location, + repository: repository, + package: packageParam, + }); + } + + /** + * Parse the project from Package resource. + * + * @param {string} packageName + * A fully-qualified path representing Package resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPackageName(packageName: string) { + return this.pathTemplates.packagePathTemplate.match(packageName).project; + } + + /** + * Parse the location from Package resource. + * + * @param {string} packageName + * A fully-qualified path representing Package resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPackageName(packageName: string) { + return this.pathTemplates.packagePathTemplate.match(packageName).location; + } + + /** + * Parse the repository from Package resource. + * + * @param {string} packageName + * A fully-qualified path representing Package resource. + * @returns {string} A string representing the repository. + */ + matchRepositoryFromPackageName(packageName: string) { + return this.pathTemplates.packagePathTemplate.match(packageName).repository; + } + + /** + * Parse the package from Package resource. + * + * @param {string} packageName + * A fully-qualified path representing Package resource. + * @returns {string} A string representing the package. + */ + matchPackageFromPackageName(packageName: string) { + return this.pathTemplates.packagePathTemplate.match(packageName).package; + } + /** * Return a fully-qualified projectSettings resource name string. * @@ -4329,6 +5825,77 @@ export class ArtifactRegistryClient { ).project; } + /** + * Return a fully-qualified pythonPackage resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} repository + * @param {string} python_package + * @returns {string} Resource name string. + */ + pythonPackagePath( + project: string, + location: string, + repository: string, + pythonPackage: string + ) { + return this.pathTemplates.pythonPackagePathTemplate.render({ + project: project, + location: location, + repository: repository, + python_package: pythonPackage, + }); + } + + /** + * Parse the project from PythonPackage resource. + * + * @param {string} pythonPackageName + * A fully-qualified path representing PythonPackage resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPythonPackageName(pythonPackageName: string) { + return this.pathTemplates.pythonPackagePathTemplate.match(pythonPackageName) + .project; + } + + /** + * Parse the location from PythonPackage resource. + * + * @param {string} pythonPackageName + * A fully-qualified path representing PythonPackage resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPythonPackageName(pythonPackageName: string) { + return this.pathTemplates.pythonPackagePathTemplate.match(pythonPackageName) + .location; + } + + /** + * Parse the repository from PythonPackage resource. + * + * @param {string} pythonPackageName + * A fully-qualified path representing PythonPackage resource. + * @returns {string} A string representing the repository. + */ + matchRepositoryFromPythonPackageName(pythonPackageName: string) { + return this.pathTemplates.pythonPackagePathTemplate.match(pythonPackageName) + .repository; + } + + /** + * Parse the python_package from PythonPackage resource. + * + * @param {string} pythonPackageName + * A fully-qualified path representing PythonPackage resource. + * @returns {string} A string representing the python_package. + */ + matchPythonPackageFromPythonPackageName(pythonPackageName: string) { + return this.pathTemplates.pythonPackagePathTemplate.match(pythonPackageName) + .python_package; + } + /** * Return a fully-qualified repository resource name string. * @@ -4543,6 +6110,44 @@ export class ArtifactRegistryClient { return this.pathTemplates.versionPathTemplate.match(versionName).version; } + /** + * Return a fully-qualified vpcscConfig resource name string. + * + * @param {string} project + * @param {string} location + * @returns {string} Resource name string. + */ + vpcscConfigPath(project: string, location: string) { + return this.pathTemplates.vpcscConfigPathTemplate.render({ + project: project, + location: location, + }); + } + + /** + * Parse the project from VpcscConfig resource. + * + * @param {string} vpcscConfigName + * A fully-qualified path representing VpcscConfig resource. + * @returns {string} A string representing the project. + */ + matchProjectFromVpcscConfigName(vpcscConfigName: string) { + return this.pathTemplates.vpcscConfigPathTemplate.match(vpcscConfigName) + .project; + } + + /** + * Parse the location from VpcscConfig resource. + * + * @param {string} vpcscConfigName + * A fully-qualified path representing VpcscConfig resource. + * @returns {string} A string representing the location. + */ + matchLocationFromVpcscConfigName(vpcscConfigName: string) { + return this.pathTemplates.vpcscConfigPathTemplate.match(vpcscConfigName) + .location; + } + /** * Return a fully-qualified yumArtifact resource name string. * diff --git a/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client_config.json b/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client_config.json index 7dcb4e8a540c..c37497cdfbe9 100644 --- a/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client_config.json +++ b/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client_config.json @@ -30,6 +30,36 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListMavenArtifacts": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetMavenArtifact": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListNpmPackages": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNpmPackage": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListPythonPackages": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetPythonPackage": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ImportAptArtifacts": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -154,6 +184,16 @@ "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "GetVPCSCConfig": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateVPCSCConfig": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-devtools-artifactregistry/src/v1/artifact_registry_proto_list.json b/packages/google-devtools-artifactregistry/src/v1/artifact_registry_proto_list.json index 8ebf6dc0c06c..9d786848a4a2 100644 --- a/packages/google-devtools-artifactregistry/src/v1/artifact_registry_proto_list.json +++ b/packages/google-devtools-artifactregistry/src/v1/artifact_registry_proto_list.json @@ -8,5 +8,6 @@ "../../protos/google/devtools/artifactregistry/v1/settings.proto", "../../protos/google/devtools/artifactregistry/v1/tag.proto", "../../protos/google/devtools/artifactregistry/v1/version.proto", + "../../protos/google/devtools/artifactregistry/v1/vpcsc_config.proto", "../../protos/google/devtools/artifactregistry/v1/yum_artifact.proto" ] diff --git a/packages/google-devtools-artifactregistry/src/v1/gapic_metadata.json b/packages/google-devtools-artifactregistry/src/v1/gapic_metadata.json index 3d669d5364c9..e4b40dec5c29 100644 --- a/packages/google-devtools-artifactregistry/src/v1/gapic_metadata.json +++ b/packages/google-devtools-artifactregistry/src/v1/gapic_metadata.json @@ -15,6 +15,21 @@ "getDockerImage" ] }, + "GetMavenArtifact": { + "methods": [ + "getMavenArtifact" + ] + }, + "GetNpmPackage": { + "methods": [ + "getNpmPackage" + ] + }, + "GetPythonPackage": { + "methods": [ + "getPythonPackage" + ] + }, "GetRepository": { "methods": [ "getRepository" @@ -85,6 +100,16 @@ "updateProjectSettings" ] }, + "GetVPCSCConfig": { + "methods": [ + "getVPCSCConfig" + ] + }, + "UpdateVPCSCConfig": { + "methods": [ + "updateVPCSCConfig" + ] + }, "ImportAptArtifacts": { "methods": [ "importAptArtifacts" @@ -122,6 +147,27 @@ "listDockerImagesAsync" ] }, + "ListMavenArtifacts": { + "methods": [ + "listMavenArtifacts", + "listMavenArtifactsStream", + "listMavenArtifactsAsync" + ] + }, + "ListNpmPackages": { + "methods": [ + "listNpmPackages", + "listNpmPackagesStream", + "listNpmPackagesAsync" + ] + }, + "ListPythonPackages": { + "methods": [ + "listPythonPackages", + "listPythonPackagesStream", + "listPythonPackagesAsync" + ] + }, "ListRepositories": { "methods": [ "listRepositories", @@ -167,6 +213,21 @@ "getDockerImage" ] }, + "GetMavenArtifact": { + "methods": [ + "getMavenArtifact" + ] + }, + "GetNpmPackage": { + "methods": [ + "getNpmPackage" + ] + }, + "GetPythonPackage": { + "methods": [ + "getPythonPackage" + ] + }, "GetRepository": { "methods": [ "getRepository" @@ -237,6 +298,16 @@ "updateProjectSettings" ] }, + "GetVPCSCConfig": { + "methods": [ + "getVPCSCConfig" + ] + }, + "UpdateVPCSCConfig": { + "methods": [ + "updateVPCSCConfig" + ] + }, "ImportAptArtifacts": { "methods": [ "importAptArtifacts" @@ -274,6 +345,27 @@ "listDockerImagesAsync" ] }, + "ListMavenArtifacts": { + "methods": [ + "listMavenArtifacts", + "listMavenArtifactsStream", + "listMavenArtifactsAsync" + ] + }, + "ListNpmPackages": { + "methods": [ + "listNpmPackages", + "listNpmPackagesStream", + "listNpmPackagesAsync" + ] + }, + "ListPythonPackages": { + "methods": [ + "listPythonPackages", + "listPythonPackagesStream", + "listPythonPackagesAsync" + ] + }, "ListRepositories": { "methods": [ "listRepositories", diff --git a/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1.ts b/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1.ts index 906e191b3da9..2a81debebe5f 100644 --- a/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1.ts +++ b/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1.ts @@ -394,64 +394,64 @@ describe('v1.ArtifactRegistryClient', () => { }); }); - describe('getRepository', () => { - it('invokes getRepository without error', async () => { + describe('getMavenArtifact', () => { + it('invokes getMavenArtifact without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetMavenArtifactRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetRepositoryRequest', + '.google.devtools.artifactregistry.v1.GetMavenArtifactRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Repository() + new protos.google.devtools.artifactregistry.v1.MavenArtifact() ); - client.innerApiCalls.getRepository = stubSimpleCall(expectedResponse); - const [response] = await client.getRepository(request); + client.innerApiCalls.getMavenArtifact = stubSimpleCall(expectedResponse); + const [response] = await client.getMavenArtifact(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getRepository as SinonStub + client.innerApiCalls.getMavenArtifact as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getRepository as SinonStub + client.innerApiCalls.getMavenArtifact as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getRepository without error using callback', async () => { + it('invokes getMavenArtifact without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetMavenArtifactRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetRepositoryRequest', + '.google.devtools.artifactregistry.v1.GetMavenArtifactRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Repository() + new protos.google.devtools.artifactregistry.v1.MavenArtifact() ); - client.innerApiCalls.getRepository = + client.innerApiCalls.getMavenArtifact = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getRepository( + client.getMavenArtifact( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.IRepository | null + result?: protos.google.devtools.artifactregistry.v1.IMavenArtifact | null ) => { if (err) { reject(err); @@ -464,126 +464,124 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getRepository as SinonStub + client.innerApiCalls.getMavenArtifact as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getRepository as SinonStub + client.innerApiCalls.getMavenArtifact as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getRepository with error', async () => { + it('invokes getMavenArtifact with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetMavenArtifactRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetRepositoryRequest', + '.google.devtools.artifactregistry.v1.GetMavenArtifactRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getRepository = stubSimpleCall( + client.innerApiCalls.getMavenArtifact = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getRepository(request), expectedError); + await assert.rejects(client.getMavenArtifact(request), expectedError); const actualRequest = ( - client.innerApiCalls.getRepository as SinonStub + client.innerApiCalls.getMavenArtifact as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getRepository as SinonStub + client.innerApiCalls.getMavenArtifact as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getRepository with closed client', async () => { + it('invokes getMavenArtifact with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetMavenArtifactRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetRepositoryRequest', + '.google.devtools.artifactregistry.v1.GetMavenArtifactRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getRepository(request), expectedError); + await assert.rejects(client.getMavenArtifact(request), expectedError); }); }); - describe('updateRepository', () => { - it('invokes updateRepository without error', async () => { + describe('getNpmPackage', () => { + it('invokes getNpmPackage without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetNpmPackageRequest() ); - request.repository ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateRepositoryRequest', - ['repository', 'name'] + '.google.devtools.artifactregistry.v1.GetNpmPackageRequest', + ['name'] ); - request.repository.name = defaultValue1; - const expectedHeaderRequestParams = `repository.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Repository() + new protos.google.devtools.artifactregistry.v1.NpmPackage() ); - client.innerApiCalls.updateRepository = stubSimpleCall(expectedResponse); - const [response] = await client.updateRepository(request); + client.innerApiCalls.getNpmPackage = stubSimpleCall(expectedResponse); + const [response] = await client.getNpmPackage(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateRepository as SinonStub + client.innerApiCalls.getNpmPackage as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateRepository as SinonStub + client.innerApiCalls.getNpmPackage as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateRepository without error using callback', async () => { + it('invokes getNpmPackage without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetNpmPackageRequest() ); - request.repository ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateRepositoryRequest', - ['repository', 'name'] + '.google.devtools.artifactregistry.v1.GetNpmPackageRequest', + ['name'] ); - request.repository.name = defaultValue1; - const expectedHeaderRequestParams = `repository.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Repository() + new protos.google.devtools.artifactregistry.v1.NpmPackage() ); - client.innerApiCalls.updateRepository = + client.innerApiCalls.getNpmPackage = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateRepository( + client.getNpmPackage( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.IRepository | null + result?: protos.google.devtools.artifactregistry.v1.INpmPackage | null ) => { if (err) { reject(err); @@ -596,126 +594,124 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateRepository as SinonStub + client.innerApiCalls.getNpmPackage as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateRepository as SinonStub + client.innerApiCalls.getNpmPackage as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateRepository with error', async () => { + it('invokes getNpmPackage with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetNpmPackageRequest() ); - request.repository ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateRepositoryRequest', - ['repository', 'name'] + '.google.devtools.artifactregistry.v1.GetNpmPackageRequest', + ['name'] ); - request.repository.name = defaultValue1; - const expectedHeaderRequestParams = `repository.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateRepository = stubSimpleCall( + client.innerApiCalls.getNpmPackage = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.updateRepository(request), expectedError); + await assert.rejects(client.getNpmPackage(request), expectedError); const actualRequest = ( - client.innerApiCalls.updateRepository as SinonStub + client.innerApiCalls.getNpmPackage as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateRepository as SinonStub + client.innerApiCalls.getNpmPackage as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateRepository with closed client', async () => { + it('invokes getNpmPackage with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetNpmPackageRequest() ); - request.repository ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateRepositoryRequest', - ['repository', 'name'] + '.google.devtools.artifactregistry.v1.GetNpmPackageRequest', + ['name'] ); - request.repository.name = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.updateRepository(request), expectedError); + await assert.rejects(client.getNpmPackage(request), expectedError); }); }); - describe('getPackage', () => { - it('invokes getPackage without error', async () => { + describe('getPythonPackage', () => { + it('invokes getPythonPackage without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetPackageRequest() + new protos.google.devtools.artifactregistry.v1.GetPythonPackageRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetPackageRequest', + '.google.devtools.artifactregistry.v1.GetPythonPackageRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Package() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ); - client.innerApiCalls.getPackage = stubSimpleCall(expectedResponse); - const [response] = await client.getPackage(request); + client.innerApiCalls.getPythonPackage = stubSimpleCall(expectedResponse); + const [response] = await client.getPythonPackage(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getPackage as SinonStub + client.innerApiCalls.getPythonPackage as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getPackage as SinonStub + client.innerApiCalls.getPythonPackage as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getPackage without error using callback', async () => { + it('invokes getPythonPackage without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetPackageRequest() + new protos.google.devtools.artifactregistry.v1.GetPythonPackageRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetPackageRequest', + '.google.devtools.artifactregistry.v1.GetPythonPackageRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Package() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ); - client.innerApiCalls.getPackage = + client.innerApiCalls.getPythonPackage = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getPackage( + client.getPythonPackage( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.IPackage | null + result?: protos.google.devtools.artifactregistry.v1.IPythonPackage | null ) => { if (err) { reject(err); @@ -728,124 +724,124 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getPackage as SinonStub + client.innerApiCalls.getPythonPackage as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getPackage as SinonStub + client.innerApiCalls.getPythonPackage as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getPackage with error', async () => { + it('invokes getPythonPackage with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetPackageRequest() + new protos.google.devtools.artifactregistry.v1.GetPythonPackageRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetPackageRequest', + '.google.devtools.artifactregistry.v1.GetPythonPackageRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getPackage = stubSimpleCall( + client.innerApiCalls.getPythonPackage = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getPackage(request), expectedError); + await assert.rejects(client.getPythonPackage(request), expectedError); const actualRequest = ( - client.innerApiCalls.getPackage as SinonStub + client.innerApiCalls.getPythonPackage as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getPackage as SinonStub + client.innerApiCalls.getPythonPackage as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getPackage with closed client', async () => { + it('invokes getPythonPackage with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetPackageRequest() + new protos.google.devtools.artifactregistry.v1.GetPythonPackageRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetPackageRequest', + '.google.devtools.artifactregistry.v1.GetPythonPackageRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getPackage(request), expectedError); + await assert.rejects(client.getPythonPackage(request), expectedError); }); }); - describe('getVersion', () => { - it('invokes getVersion without error', async () => { + describe('getRepository', () => { + it('invokes getRepository without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetVersionRequest() + new protos.google.devtools.artifactregistry.v1.GetRepositoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetVersionRequest', + '.google.devtools.artifactregistry.v1.GetRepositoryRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Version() + new protos.google.devtools.artifactregistry.v1.Repository() ); - client.innerApiCalls.getVersion = stubSimpleCall(expectedResponse); - const [response] = await client.getVersion(request); + client.innerApiCalls.getRepository = stubSimpleCall(expectedResponse); + const [response] = await client.getRepository(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getVersion as SinonStub + client.innerApiCalls.getRepository as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getVersion as SinonStub + client.innerApiCalls.getRepository as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getVersion without error using callback', async () => { + it('invokes getRepository without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetVersionRequest() + new protos.google.devtools.artifactregistry.v1.GetRepositoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetVersionRequest', + '.google.devtools.artifactregistry.v1.GetRepositoryRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Version() + new protos.google.devtools.artifactregistry.v1.Repository() ); - client.innerApiCalls.getVersion = + client.innerApiCalls.getRepository = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getVersion( + client.getRepository( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.IVersion | null + result?: protos.google.devtools.artifactregistry.v1.IRepository | null ) => { if (err) { reject(err); @@ -858,124 +854,126 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getVersion as SinonStub + client.innerApiCalls.getRepository as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getVersion as SinonStub + client.innerApiCalls.getRepository as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getVersion with error', async () => { + it('invokes getRepository with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetVersionRequest() + new protos.google.devtools.artifactregistry.v1.GetRepositoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetVersionRequest', + '.google.devtools.artifactregistry.v1.GetRepositoryRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getVersion = stubSimpleCall( + client.innerApiCalls.getRepository = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getVersion(request), expectedError); + await assert.rejects(client.getRepository(request), expectedError); const actualRequest = ( - client.innerApiCalls.getVersion as SinonStub + client.innerApiCalls.getRepository as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getVersion as SinonStub + client.innerApiCalls.getRepository as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getVersion with closed client', async () => { + it('invokes getRepository with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetVersionRequest() + new protos.google.devtools.artifactregistry.v1.GetRepositoryRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetVersionRequest', + '.google.devtools.artifactregistry.v1.GetRepositoryRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getVersion(request), expectedError); + await assert.rejects(client.getRepository(request), expectedError); }); }); - describe('getFile', () => { - it('invokes getFile without error', async () => { + describe('updateRepository', () => { + it('invokes updateRepository without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetFileRequest() + new protos.google.devtools.artifactregistry.v1.UpdateRepositoryRequest() ); + request.repository ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetFileRequest', - ['name'] + '.google.devtools.artifactregistry.v1.UpdateRepositoryRequest', + ['repository', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.repository.name = defaultValue1; + const expectedHeaderRequestParams = `repository.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.File() + new protos.google.devtools.artifactregistry.v1.Repository() ); - client.innerApiCalls.getFile = stubSimpleCall(expectedResponse); - const [response] = await client.getFile(request); + client.innerApiCalls.updateRepository = stubSimpleCall(expectedResponse); + const [response] = await client.updateRepository(request); assert.deepStrictEqual(response, expectedResponse); - const actualRequest = (client.innerApiCalls.getFile as SinonStub).getCall( - 0 - ).args[0]; + const actualRequest = ( + client.innerApiCalls.updateRepository as SinonStub + ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getFile as SinonStub + client.innerApiCalls.updateRepository as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getFile without error using callback', async () => { + it('invokes updateRepository without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetFileRequest() + new protos.google.devtools.artifactregistry.v1.UpdateRepositoryRequest() ); + request.repository ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetFileRequest', - ['name'] + '.google.devtools.artifactregistry.v1.UpdateRepositoryRequest', + ['repository', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.repository.name = defaultValue1; + const expectedHeaderRequestParams = `repository.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.File() + new protos.google.devtools.artifactregistry.v1.Repository() ); - client.innerApiCalls.getFile = + client.innerApiCalls.updateRepository = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getFile( + client.updateRepository( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.IFile | null + result?: protos.google.devtools.artifactregistry.v1.IRepository | null ) => { if (err) { reject(err); @@ -987,122 +985,127 @@ describe('v1.ArtifactRegistryClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - const actualRequest = (client.innerApiCalls.getFile as SinonStub).getCall( - 0 - ).args[0]; + const actualRequest = ( + client.innerApiCalls.updateRepository as SinonStub + ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getFile as SinonStub + client.innerApiCalls.updateRepository as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getFile with error', async () => { + it('invokes updateRepository with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetFileRequest() + new protos.google.devtools.artifactregistry.v1.UpdateRepositoryRequest() ); + request.repository ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetFileRequest', - ['name'] + '.google.devtools.artifactregistry.v1.UpdateRepositoryRequest', + ['repository', 'name'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.repository.name = defaultValue1; + const expectedHeaderRequestParams = `repository.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getFile = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.getFile(request), expectedError); - const actualRequest = (client.innerApiCalls.getFile as SinonStub).getCall( - 0 - ).args[0]; + client.innerApiCalls.updateRepository = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.updateRepository(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateRepository as SinonStub + ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getFile as SinonStub + client.innerApiCalls.updateRepository as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getFile with closed client', async () => { + it('invokes updateRepository with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetFileRequest() + new protos.google.devtools.artifactregistry.v1.UpdateRepositoryRequest() ); + request.repository ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetFileRequest', - ['name'] + '.google.devtools.artifactregistry.v1.UpdateRepositoryRequest', + ['repository', 'name'] ); - request.name = defaultValue1; + request.repository.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getFile(request), expectedError); + await assert.rejects(client.updateRepository(request), expectedError); }); }); - describe('getTag', () => { - it('invokes getTag without error', async () => { + describe('getPackage', () => { + it('invokes getPackage without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetTagRequest() + new protos.google.devtools.artifactregistry.v1.GetPackageRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetTagRequest', + '.google.devtools.artifactregistry.v1.GetPackageRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Tag() + new protos.google.devtools.artifactregistry.v1.Package() ); - client.innerApiCalls.getTag = stubSimpleCall(expectedResponse); - const [response] = await client.getTag(request); + client.innerApiCalls.getPackage = stubSimpleCall(expectedResponse); + const [response] = await client.getPackage(request); assert.deepStrictEqual(response, expectedResponse); - const actualRequest = (client.innerApiCalls.getTag as SinonStub).getCall( - 0 - ).args[0]; + const actualRequest = ( + client.innerApiCalls.getPackage as SinonStub + ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getTag as SinonStub + client.innerApiCalls.getPackage as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getTag without error using callback', async () => { + it('invokes getPackage without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetTagRequest() + new protos.google.devtools.artifactregistry.v1.GetPackageRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetTagRequest', + '.google.devtools.artifactregistry.v1.GetPackageRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Tag() + new protos.google.devtools.artifactregistry.v1.Package() ); - client.innerApiCalls.getTag = + client.innerApiCalls.getPackage = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getTag( + client.getPackage( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.ITag | null + result?: protos.google.devtools.artifactregistry.v1.IPackage | null ) => { if (err) { reject(err); @@ -1114,122 +1117,125 @@ describe('v1.ArtifactRegistryClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - const actualRequest = (client.innerApiCalls.getTag as SinonStub).getCall( - 0 - ).args[0]; + const actualRequest = ( + client.innerApiCalls.getPackage as SinonStub + ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getTag as SinonStub + client.innerApiCalls.getPackage as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getTag with error', async () => { + it('invokes getPackage with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetTagRequest() + new protos.google.devtools.artifactregistry.v1.GetPackageRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetTagRequest', + '.google.devtools.artifactregistry.v1.GetPackageRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getTag = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.getTag(request), expectedError); - const actualRequest = (client.innerApiCalls.getTag as SinonStub).getCall( - 0 - ).args[0]; + client.innerApiCalls.getPackage = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getPackage(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getPackage as SinonStub + ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getTag as SinonStub + client.innerApiCalls.getPackage as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getTag with closed client', async () => { + it('invokes getPackage with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetTagRequest() + new protos.google.devtools.artifactregistry.v1.GetPackageRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetTagRequest', + '.google.devtools.artifactregistry.v1.GetPackageRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getTag(request), expectedError); + await assert.rejects(client.getPackage(request), expectedError); }); }); - describe('createTag', () => { - it('invokes createTag without error', async () => { + describe('getVersion', () => { + it('invokes getVersion without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.CreateTagRequest() + new protos.google.devtools.artifactregistry.v1.GetVersionRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.CreateTagRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.GetVersionRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Tag() + new protos.google.devtools.artifactregistry.v1.Version() ); - client.innerApiCalls.createTag = stubSimpleCall(expectedResponse); - const [response] = await client.createTag(request); + client.innerApiCalls.getVersion = stubSimpleCall(expectedResponse); + const [response] = await client.getVersion(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createTag as SinonStub + client.innerApiCalls.getVersion as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createTag as SinonStub + client.innerApiCalls.getVersion as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createTag without error using callback', async () => { + it('invokes getVersion without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.CreateTagRequest() + new protos.google.devtools.artifactregistry.v1.GetVersionRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.CreateTagRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.GetVersionRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Tag() + new protos.google.devtools.artifactregistry.v1.Version() ); - client.innerApiCalls.createTag = + client.innerApiCalls.getVersion = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createTag( + client.getVersion( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.ITag | null + result?: protos.google.devtools.artifactregistry.v1.IVersion | null ) => { if (err) { reject(err); @@ -1242,123 +1248,124 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createTag as SinonStub + client.innerApiCalls.getVersion as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createTag as SinonStub + client.innerApiCalls.getVersion as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createTag with error', async () => { + it('invokes getVersion with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.CreateTagRequest() + new protos.google.devtools.artifactregistry.v1.GetVersionRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.CreateTagRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.GetVersionRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createTag = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.createTag(request), expectedError); + client.innerApiCalls.getVersion = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getVersion(request), expectedError); const actualRequest = ( - client.innerApiCalls.createTag as SinonStub + client.innerApiCalls.getVersion as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createTag as SinonStub + client.innerApiCalls.getVersion as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createTag with closed client', async () => { + it('invokes getVersion with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.CreateTagRequest() + new protos.google.devtools.artifactregistry.v1.GetVersionRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.CreateTagRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.GetVersionRequest', + ['name'] ); - request.parent = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.createTag(request), expectedError); + await assert.rejects(client.getVersion(request), expectedError); }); }); - describe('updateTag', () => { - it('invokes updateTag without error', async () => { + describe('getFile', () => { + it('invokes getFile without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateTagRequest() + new protos.google.devtools.artifactregistry.v1.GetFileRequest() ); - request.tag ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateTagRequest', - ['tag', 'name'] + '.google.devtools.artifactregistry.v1.GetFileRequest', + ['name'] ); - request.tag.name = defaultValue1; - const expectedHeaderRequestParams = `tag.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Tag() + new protos.google.devtools.artifactregistry.v1.File() ); - client.innerApiCalls.updateTag = stubSimpleCall(expectedResponse); - const [response] = await client.updateTag(request); + client.innerApiCalls.getFile = stubSimpleCall(expectedResponse); + const [response] = await client.getFile(request); assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.updateTag as SinonStub - ).getCall(0).args[0]; + const actualRequest = (client.innerApiCalls.getFile as SinonStub).getCall( + 0 + ).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateTag as SinonStub + client.innerApiCalls.getFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateTag without error using callback', async () => { + it('invokes getFile without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateTagRequest() + new protos.google.devtools.artifactregistry.v1.GetFileRequest() ); - request.tag ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateTagRequest', - ['tag', 'name'] + '.google.devtools.artifactregistry.v1.GetFileRequest', + ['name'] ); - request.tag.name = defaultValue1; - const expectedHeaderRequestParams = `tag.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.Tag() + new protos.google.devtools.artifactregistry.v1.File() ); - client.innerApiCalls.updateTag = + client.innerApiCalls.getFile = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateTag( + client.getFile( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.ITag | null + result?: protos.google.devtools.artifactregistry.v1.IFile | null ) => { if (err) { reject(err); @@ -1370,124 +1377,122 @@ describe('v1.ArtifactRegistryClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.updateTag as SinonStub - ).getCall(0).args[0]; + const actualRequest = (client.innerApiCalls.getFile as SinonStub).getCall( + 0 + ).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateTag as SinonStub + client.innerApiCalls.getFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateTag with error', async () => { + it('invokes getFile with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateTagRequest() + new protos.google.devtools.artifactregistry.v1.GetFileRequest() ); - request.tag ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateTagRequest', - ['tag', 'name'] + '.google.devtools.artifactregistry.v1.GetFileRequest', + ['name'] ); - request.tag.name = defaultValue1; - const expectedHeaderRequestParams = `tag.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateTag = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.updateTag(request), expectedError); - const actualRequest = ( - client.innerApiCalls.updateTag as SinonStub - ).getCall(0).args[0]; + client.innerApiCalls.getFile = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getFile(request), expectedError); + const actualRequest = (client.innerApiCalls.getFile as SinonStub).getCall( + 0 + ).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateTag as SinonStub + client.innerApiCalls.getFile as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateTag with closed client', async () => { + it('invokes getFile with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateTagRequest() + new protos.google.devtools.artifactregistry.v1.GetFileRequest() ); - request.tag ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateTagRequest', - ['tag', 'name'] + '.google.devtools.artifactregistry.v1.GetFileRequest', + ['name'] ); - request.tag.name = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.updateTag(request), expectedError); + await assert.rejects(client.getFile(request), expectedError); }); }); - describe('deleteTag', () => { - it('invokes deleteTag without error', async () => { + describe('getTag', () => { + it('invokes getTag without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteTagRequest() + new protos.google.devtools.artifactregistry.v1.GetTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteTagRequest', + '.google.devtools.artifactregistry.v1.GetTagRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.devtools.artifactregistry.v1.Tag() ); - client.innerApiCalls.deleteTag = stubSimpleCall(expectedResponse); - const [response] = await client.deleteTag(request); + client.innerApiCalls.getTag = stubSimpleCall(expectedResponse); + const [response] = await client.getTag(request); assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.deleteTag as SinonStub - ).getCall(0).args[0]; + const actualRequest = (client.innerApiCalls.getTag as SinonStub).getCall( + 0 + ).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteTag as SinonStub + client.innerApiCalls.getTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteTag without error using callback', async () => { + it('invokes getTag without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteTagRequest() + new protos.google.devtools.artifactregistry.v1.GetTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteTagRequest', + '.google.devtools.artifactregistry.v1.GetTagRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.devtools.artifactregistry.v1.Tag() ); - client.innerApiCalls.deleteTag = + client.innerApiCalls.getTag = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteTag( + client.getTag( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.devtools.artifactregistry.v1.ITag | null ) => { if (err) { reject(err); @@ -1499,122 +1504,122 @@ describe('v1.ArtifactRegistryClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - const actualRequest = ( - client.innerApiCalls.deleteTag as SinonStub - ).getCall(0).args[0]; + const actualRequest = (client.innerApiCalls.getTag as SinonStub).getCall( + 0 + ).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteTag as SinonStub + client.innerApiCalls.getTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteTag with error', async () => { + it('invokes getTag with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteTagRequest() + new protos.google.devtools.artifactregistry.v1.GetTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteTagRequest', + '.google.devtools.artifactregistry.v1.GetTagRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteTag = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.deleteTag(request), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteTag as SinonStub - ).getCall(0).args[0]; + client.innerApiCalls.getTag = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getTag(request), expectedError); + const actualRequest = (client.innerApiCalls.getTag as SinonStub).getCall( + 0 + ).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteTag as SinonStub + client.innerApiCalls.getTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteTag with closed client', async () => { + it('invokes getTag with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteTagRequest() + new protos.google.devtools.artifactregistry.v1.GetTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteTagRequest', + '.google.devtools.artifactregistry.v1.GetTagRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.deleteTag(request), expectedError); + await assert.rejects(client.getTag(request), expectedError); }); }); - describe('setIamPolicy', () => { - it('invokes setIamPolicy without error', async () => { + describe('createTag', () => { + it('invokes createTag without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.SetIamPolicyRequest() + new protos.google.devtools.artifactregistry.v1.CreateTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.SetIamPolicyRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.CreateTagRequest', + ['parent'] ); - request.resource = defaultValue1; - const expectedHeaderRequestParams = `resource=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.iam.v1.Policy() + new protos.google.devtools.artifactregistry.v1.Tag() ); - client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); - const [response] = await client.setIamPolicy(request); + client.innerApiCalls.createTag = stubSimpleCall(expectedResponse); + const [response] = await client.createTag(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.setIamPolicy as SinonStub + client.innerApiCalls.createTag as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.setIamPolicy as SinonStub + client.innerApiCalls.createTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes setIamPolicy without error using callback', async () => { + it('invokes createTag without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.SetIamPolicyRequest() + new protos.google.devtools.artifactregistry.v1.CreateTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.SetIamPolicyRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.CreateTagRequest', + ['parent'] ); - request.resource = defaultValue1; - const expectedHeaderRequestParams = `resource=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.iam.v1.Policy() + new protos.google.devtools.artifactregistry.v1.Tag() ); - client.innerApiCalls.setIamPolicy = + client.innerApiCalls.createTag = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.setIamPolicy( + client.createTag( request, ( err?: Error | null, - result?: protos.google.iam.v1.IPolicy | null + result?: protos.google.devtools.artifactregistry.v1.ITag | null ) => { if (err) { reject(err); @@ -1627,124 +1632,123 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.setIamPolicy as SinonStub + client.innerApiCalls.createTag as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.setIamPolicy as SinonStub + client.innerApiCalls.createTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes setIamPolicy with error', async () => { + it('invokes createTag with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.SetIamPolicyRequest() + new protos.google.devtools.artifactregistry.v1.CreateTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.SetIamPolicyRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.CreateTagRequest', + ['parent'] ); - request.resource = defaultValue1; - const expectedHeaderRequestParams = `resource=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.setIamPolicy = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.setIamPolicy(request), expectedError); + client.innerApiCalls.createTag = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.createTag(request), expectedError); const actualRequest = ( - client.innerApiCalls.setIamPolicy as SinonStub + client.innerApiCalls.createTag as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.setIamPolicy as SinonStub + client.innerApiCalls.createTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes setIamPolicy with closed client', async () => { + it('invokes createTag with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.SetIamPolicyRequest() + new protos.google.devtools.artifactregistry.v1.CreateTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.SetIamPolicyRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.CreateTagRequest', + ['parent'] ); - request.resource = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.setIamPolicy(request), expectedError); + await assert.rejects(client.createTag(request), expectedError); }); }); - describe('getIamPolicy', () => { - it('invokes getIamPolicy without error', async () => { + describe('updateTag', () => { + it('invokes updateTag without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.GetIamPolicyRequest() + new protos.google.devtools.artifactregistry.v1.UpdateTagRequest() ); + request.tag ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.GetIamPolicyRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.UpdateTagRequest', + ['tag', 'name'] ); - request.resource = defaultValue1; - const expectedHeaderRequestParams = `resource=${defaultValue1}`; + request.tag.name = defaultValue1; + const expectedHeaderRequestParams = `tag.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.iam.v1.Policy() + new protos.google.devtools.artifactregistry.v1.Tag() ); - client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); - const [response] = await client.getIamPolicy(request); + client.innerApiCalls.updateTag = stubSimpleCall(expectedResponse); + const [response] = await client.updateTag(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getIamPolicy as SinonStub + client.innerApiCalls.updateTag as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getIamPolicy as SinonStub + client.innerApiCalls.updateTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getIamPolicy without error using callback', async () => { + it('invokes updateTag without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.GetIamPolicyRequest() + new protos.google.devtools.artifactregistry.v1.UpdateTagRequest() ); + request.tag ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.GetIamPolicyRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.UpdateTagRequest', + ['tag', 'name'] ); - request.resource = defaultValue1; - const expectedHeaderRequestParams = `resource=${defaultValue1}`; + request.tag.name = defaultValue1; + const expectedHeaderRequestParams = `tag.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.iam.v1.Policy() + new protos.google.devtools.artifactregistry.v1.Tag() ); - client.innerApiCalls.getIamPolicy = + client.innerApiCalls.updateTag = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getIamPolicy( + client.updateTag( request, ( err?: Error | null, - result?: protos.google.iam.v1.IPolicy | null + result?: protos.google.devtools.artifactregistry.v1.ITag | null ) => { if (err) { reject(err); @@ -1757,125 +1761,123 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getIamPolicy as SinonStub + client.innerApiCalls.updateTag as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getIamPolicy as SinonStub + client.innerApiCalls.updateTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getIamPolicy with error', async () => { + it('invokes updateTag with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.GetIamPolicyRequest() + new protos.google.devtools.artifactregistry.v1.UpdateTagRequest() ); + request.tag ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.GetIamPolicyRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.UpdateTagRequest', + ['tag', 'name'] ); - request.resource = defaultValue1; - const expectedHeaderRequestParams = `resource=${defaultValue1}`; + request.tag.name = defaultValue1; + const expectedHeaderRequestParams = `tag.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getIamPolicy = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.getIamPolicy(request), expectedError); + client.innerApiCalls.updateTag = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.updateTag(request), expectedError); const actualRequest = ( - client.innerApiCalls.getIamPolicy as SinonStub + client.innerApiCalls.updateTag as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getIamPolicy as SinonStub + client.innerApiCalls.updateTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getIamPolicy with closed client', async () => { + it('invokes updateTag with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.GetIamPolicyRequest() + new protos.google.devtools.artifactregistry.v1.UpdateTagRequest() ); + request.tag ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.GetIamPolicyRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.UpdateTagRequest', + ['tag', 'name'] ); - request.resource = defaultValue1; + request.tag.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getIamPolicy(request), expectedError); + await assert.rejects(client.updateTag(request), expectedError); }); }); - describe('testIamPermissions', () => { - it('invokes testIamPermissions without error', async () => { + describe('deleteTag', () => { + it('invokes deleteTag without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.TestIamPermissionsRequest() + new protos.google.devtools.artifactregistry.v1.DeleteTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.TestIamPermissionsRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.DeleteTagRequest', + ['name'] ); - request.resource = defaultValue1; - const expectedHeaderRequestParams = `resource=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.iam.v1.TestIamPermissionsResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.testIamPermissions = - stubSimpleCall(expectedResponse); - const [response] = await client.testIamPermissions(request); + client.innerApiCalls.deleteTag = stubSimpleCall(expectedResponse); + const [response] = await client.deleteTag(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.testIamPermissions as SinonStub + client.innerApiCalls.deleteTag as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.testIamPermissions as SinonStub + client.innerApiCalls.deleteTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes testIamPermissions without error using callback', async () => { + it('invokes deleteTag without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.TestIamPermissionsRequest() + new protos.google.devtools.artifactregistry.v1.DeleteTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.TestIamPermissionsRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.DeleteTagRequest', + ['name'] ); - request.resource = defaultValue1; - const expectedHeaderRequestParams = `resource=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.iam.v1.TestIamPermissionsResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.testIamPermissions = + client.innerApiCalls.deleteTag = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.testIamPermissions( + client.deleteTag( request, ( err?: Error | null, - result?: protos.google.iam.v1.ITestIamPermissionsResponse | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -1888,125 +1890,121 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.testIamPermissions as SinonStub + client.innerApiCalls.deleteTag as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.testIamPermissions as SinonStub + client.innerApiCalls.deleteTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes testIamPermissions with error', async () => { + it('invokes deleteTag with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.TestIamPermissionsRequest() + new protos.google.devtools.artifactregistry.v1.DeleteTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.TestIamPermissionsRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.DeleteTagRequest', + ['name'] ); - request.resource = defaultValue1; - const expectedHeaderRequestParams = `resource=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.testIamPermissions = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects(client.testIamPermissions(request), expectedError); + client.innerApiCalls.deleteTag = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.deleteTag(request), expectedError); const actualRequest = ( - client.innerApiCalls.testIamPermissions as SinonStub + client.innerApiCalls.deleteTag as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.testIamPermissions as SinonStub + client.innerApiCalls.deleteTag as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes testIamPermissions with closed client', async () => { + it('invokes deleteTag with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.iam.v1.TestIamPermissionsRequest() + new protos.google.devtools.artifactregistry.v1.DeleteTagRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.iam.v1.TestIamPermissionsRequest', - ['resource'] + '.google.devtools.artifactregistry.v1.DeleteTagRequest', + ['name'] ); - request.resource = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.testIamPermissions(request), expectedError); + await assert.rejects(client.deleteTag(request), expectedError); }); }); - describe('getProjectSettings', () => { - it('invokes getProjectSettings without error', async () => { + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetProjectSettingsRequest() + new protos.google.iam.v1.SetIamPolicyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetProjectSettingsRequest', - ['name'] + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.resource = defaultValue1; + const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ProjectSettings() + new protos.google.iam.v1.Policy() ); - client.innerApiCalls.getProjectSettings = - stubSimpleCall(expectedResponse); - const [response] = await client.getProjectSettings(request); + client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setIamPolicy(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getProjectSettings as SinonStub + client.innerApiCalls.setIamPolicy as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getProjectSettings as SinonStub + client.innerApiCalls.setIamPolicy as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getProjectSettings without error using callback', async () => { + it('invokes setIamPolicy without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetProjectSettingsRequest() + new protos.google.iam.v1.SetIamPolicyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetProjectSettingsRequest', - ['name'] + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.resource = defaultValue1; + const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ProjectSettings() + new protos.google.iam.v1.Policy() ); - client.innerApiCalls.getProjectSettings = + client.innerApiCalls.setIamPolicy = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getProjectSettings( + client.setIamPolicy( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.IProjectSettings | null + result?: protos.google.iam.v1.IPolicy | null ) => { if (err) { reject(err); @@ -2019,127 +2017,124 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getProjectSettings as SinonStub + client.innerApiCalls.setIamPolicy as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getProjectSettings as SinonStub + client.innerApiCalls.setIamPolicy as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getProjectSettings with error', async () => { + it('invokes setIamPolicy with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetProjectSettingsRequest() + new protos.google.iam.v1.SetIamPolicyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetProjectSettingsRequest', - ['name'] + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.resource = defaultValue1; + const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getProjectSettings = stubSimpleCall( + client.innerApiCalls.setIamPolicy = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.getProjectSettings(request), expectedError); + await assert.rejects(client.setIamPolicy(request), expectedError); const actualRequest = ( - client.innerApiCalls.getProjectSettings as SinonStub + client.innerApiCalls.setIamPolicy as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getProjectSettings as SinonStub + client.innerApiCalls.setIamPolicy as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getProjectSettings with closed client', async () => { + it('invokes setIamPolicy with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.GetProjectSettingsRequest() + new protos.google.iam.v1.SetIamPolicyRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.GetProjectSettingsRequest', - ['name'] + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] ); - request.name = defaultValue1; + request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getProjectSettings(request), expectedError); + await assert.rejects(client.setIamPolicy(request), expectedError); }); }); - describe('updateProjectSettings', () => { - it('invokes updateProjectSettings without error', async () => { + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest() + new protos.google.iam.v1.GetIamPolicyRequest() ); - request.projectSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest', - ['projectSettings', 'name'] + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] ); - request.projectSettings.name = defaultValue1; - const expectedHeaderRequestParams = `project_settings.name=${defaultValue1}`; + request.resource = defaultValue1; + const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ProjectSettings() + new protos.google.iam.v1.Policy() ); - client.innerApiCalls.updateProjectSettings = - stubSimpleCall(expectedResponse); - const [response] = await client.updateProjectSettings(request); + client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getIamPolicy(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateProjectSettings as SinonStub + client.innerApiCalls.getIamPolicy as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateProjectSettings as SinonStub + client.innerApiCalls.getIamPolicy as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateProjectSettings without error using callback', async () => { + it('invokes getIamPolicy without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest() + new protos.google.iam.v1.GetIamPolicyRequest() ); - request.projectSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest', - ['projectSettings', 'name'] + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] ); - request.projectSettings.name = defaultValue1; - const expectedHeaderRequestParams = `project_settings.name=${defaultValue1}`; + request.resource = defaultValue1; + const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ProjectSettings() + new protos.google.iam.v1.Policy() ); - client.innerApiCalls.updateProjectSettings = + client.innerApiCalls.getIamPolicy = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateProjectSettings( + client.getIamPolicy( request, ( err?: Error | null, - result?: protos.google.devtools.artifactregistry.v1.IProjectSettings | null + result?: protos.google.iam.v1.IPolicy | null ) => { if (err) { reject(err); @@ -2152,137 +2147,125 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateProjectSettings as SinonStub + client.innerApiCalls.getIamPolicy as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateProjectSettings as SinonStub + client.innerApiCalls.getIamPolicy as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateProjectSettings with error', async () => { + it('invokes getIamPolicy with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest() + new protos.google.iam.v1.GetIamPolicyRequest() ); - request.projectSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest', - ['projectSettings', 'name'] + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] ); - request.projectSettings.name = defaultValue1; - const expectedHeaderRequestParams = `project_settings.name=${defaultValue1}`; + request.resource = defaultValue1; + const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateProjectSettings = stubSimpleCall( + client.innerApiCalls.getIamPolicy = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.updateProjectSettings(request), - expectedError - ); + await assert.rejects(client.getIamPolicy(request), expectedError); const actualRequest = ( - client.innerApiCalls.updateProjectSettings as SinonStub + client.innerApiCalls.getIamPolicy as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateProjectSettings as SinonStub + client.innerApiCalls.getIamPolicy as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateProjectSettings with closed client', async () => { + it('invokes getIamPolicy with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest() + new protos.google.iam.v1.GetIamPolicyRequest() ); - request.projectSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest', - ['projectSettings', 'name'] + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] ); - request.projectSettings.name = defaultValue1; + request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.updateProjectSettings(request), - expectedError - ); + await assert.rejects(client.getIamPolicy(request), expectedError); }); }); - describe('importAptArtifacts', () => { - it('invokes importAptArtifacts without error', async () => { + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest() + new protos.google.iam.v1.TestIamPermissionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest', - ['parent'] + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.resource = defaultValue1; + const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.iam.v1.TestIamPermissionsResponse() ); - client.innerApiCalls.importAptArtifacts = - stubLongRunningCall(expectedResponse); - const [operation] = await client.importAptArtifacts(request); - const [response] = await operation.promise(); + client.innerApiCalls.testIamPermissions = + stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.importAptArtifacts as SinonStub + client.innerApiCalls.testIamPermissions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.importAptArtifacts as SinonStub + client.innerApiCalls.testIamPermissions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes importAptArtifacts without error using callback', async () => { + it('invokes testIamPermissions without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest() + new protos.google.iam.v1.TestIamPermissionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest', - ['parent'] + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.resource = defaultValue1; + const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.iam.v1.TestIamPermissionsResponse() ); - client.innerApiCalls.importAptArtifacts = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.testIamPermissions = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.importAptArtifacts( + client.testIamPermissions( request, ( err?: Error | null, - result?: LROperation< - protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, - protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata - > | null + result?: protos.google.iam.v1.ITestIamPermissionsResponse | null ) => { if (err) { reject(err); @@ -2292,191 +2275,128 @@ describe('v1.ArtifactRegistryClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, - protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.importAptArtifacts as SinonStub + client.innerApiCalls.testIamPermissions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.importAptArtifacts as SinonStub + client.innerApiCalls.testIamPermissions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes importAptArtifacts with call error', async () => { + it('invokes testIamPermissions with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest() + new protos.google.iam.v1.TestIamPermissionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest', - ['parent'] + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.resource = defaultValue1; + const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.importAptArtifacts = stubLongRunningCall( + client.innerApiCalls.testIamPermissions = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.importAptArtifacts(request), expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); const actualRequest = ( - client.innerApiCalls.importAptArtifacts as SinonStub + client.innerApiCalls.testIamPermissions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.importAptArtifacts as SinonStub + client.innerApiCalls.testIamPermissions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes importAptArtifacts with LRO error', async () => { + it('invokes testIamPermissions with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest() + new protos.google.iam.v1.TestIamPermissionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.importAptArtifacts = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.importAptArtifacts(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.importAptArtifacts as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.importAptArtifacts as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkImportAptArtifactsProgress without error', async () => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkImportAptArtifactsProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkImportAptArtifactsProgress with error', async () => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.checkImportAptArtifactsProgress(''), - expectedError + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.resource = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.testIamPermissions(request), expectedError); }); }); - describe('importYumArtifacts', () => { - it('invokes importYumArtifacts without error', async () => { + describe('getProjectSettings', () => { + it('invokes getProjectSettings without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest() + new protos.google.devtools.artifactregistry.v1.GetProjectSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.GetProjectSettingsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.devtools.artifactregistry.v1.ProjectSettings() ); - client.innerApiCalls.importYumArtifacts = - stubLongRunningCall(expectedResponse); - const [operation] = await client.importYumArtifacts(request); - const [response] = await operation.promise(); + client.innerApiCalls.getProjectSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.getProjectSettings(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.importYumArtifacts as SinonStub + client.innerApiCalls.getProjectSettings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.importYumArtifacts as SinonStub + client.innerApiCalls.getProjectSettings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes importYumArtifacts without error using callback', async () => { + it('invokes getProjectSettings without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest() + new protos.google.devtools.artifactregistry.v1.GetProjectSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.GetProjectSettingsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.devtools.artifactregistry.v1.ProjectSettings() ); - client.innerApiCalls.importYumArtifacts = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getProjectSettings = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.importYumArtifacts( + client.getProjectSettings( request, ( err?: Error | null, - result?: LROperation< - protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, - protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata - > | null + result?: protos.google.devtools.artifactregistry.v1.IProjectSettings | null ) => { if (err) { reject(err); @@ -2486,191 +2406,130 @@ describe('v1.ArtifactRegistryClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, - protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.importYumArtifacts as SinonStub + client.innerApiCalls.getProjectSettings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.importYumArtifacts as SinonStub + client.innerApiCalls.getProjectSettings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes importYumArtifacts with call error', async () => { + it('invokes getProjectSettings with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest() + new protos.google.devtools.artifactregistry.v1.GetProjectSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.GetProjectSettingsRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.importYumArtifacts = stubLongRunningCall( + client.innerApiCalls.getProjectSettings = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.importYumArtifacts(request), expectedError); + await assert.rejects(client.getProjectSettings(request), expectedError); const actualRequest = ( - client.innerApiCalls.importYumArtifacts as SinonStub + client.innerApiCalls.getProjectSettings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.importYumArtifacts as SinonStub + client.innerApiCalls.getProjectSettings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes importYumArtifacts with LRO error', async () => { + it('invokes getProjectSettings with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest() + new protos.google.devtools.artifactregistry.v1.GetProjectSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.importYumArtifacts = stubLongRunningCall( - undefined, - undefined, - expectedError + '.google.devtools.artifactregistry.v1.GetProjectSettingsRequest', + ['name'] ); - const [operation] = await client.importYumArtifacts(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.importYumArtifacts as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.importYumArtifacts as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkImportYumArtifactsProgress without error', async () => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkImportYumArtifactsProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkImportYumArtifactsProgress with error', async () => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.checkImportYumArtifactsProgress(''), - expectedError - ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getProjectSettings(request), expectedError); }); }); - describe('createRepository', () => { - it('invokes createRepository without error', async () => { + describe('updateProjectSettings', () => { + it('invokes updateProjectSettings without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.CreateRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest() ); + request.projectSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.CreateRepositoryRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest', + ['projectSettings', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.projectSettings.name = defaultValue1; + const expectedHeaderRequestParams = `project_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.devtools.artifactregistry.v1.ProjectSettings() ); - client.innerApiCalls.createRepository = - stubLongRunningCall(expectedResponse); - const [operation] = await client.createRepository(request); - const [response] = await operation.promise(); + client.innerApiCalls.updateProjectSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.updateProjectSettings(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createRepository as SinonStub + client.innerApiCalls.updateProjectSettings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createRepository as SinonStub + client.innerApiCalls.updateProjectSettings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createRepository without error using callback', async () => { + it('invokes updateProjectSettings without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.CreateRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest() ); + request.projectSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.CreateRepositoryRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest', + ['projectSettings', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.projectSettings.name = defaultValue1; + const expectedHeaderRequestParams = `project_settings.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.devtools.artifactregistry.v1.ProjectSettings() ); - client.innerApiCalls.createRepository = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.updateProjectSettings = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createRepository( + client.updateProjectSettings( request, ( err?: Error | null, - result?: LROperation< - protos.google.devtools.artifactregistry.v1.IRepository, - protos.google.devtools.artifactregistry.v1.IOperationMetadata - > | null + result?: protos.google.devtools.artifactregistry.v1.IProjectSettings | null ) => { if (err) { reject(err); @@ -2680,191 +2539,135 @@ describe('v1.ArtifactRegistryClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.devtools.artifactregistry.v1.IRepository, - protos.google.devtools.artifactregistry.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createRepository as SinonStub + client.innerApiCalls.updateProjectSettings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createRepository as SinonStub + client.innerApiCalls.updateProjectSettings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createRepository with call error', async () => { + it('invokes updateProjectSettings with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.CreateRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest() ); + request.projectSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.CreateRepositoryRequest', - ['parent'] + '.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest', + ['projectSettings', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.projectSettings.name = defaultValue1; + const expectedHeaderRequestParams = `project_settings.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createRepository = stubLongRunningCall( + client.innerApiCalls.updateProjectSettings = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createRepository(request), expectedError); - const actualRequest = ( - client.innerApiCalls.createRepository as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.createRepository as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes createRepository with LRO error', async () => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.CreateRepositoryRequest() - ); - const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.CreateRepositoryRequest', - ['parent'] - ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.createRepository = stubLongRunningCall( - undefined, - undefined, + await assert.rejects( + client.updateProjectSettings(request), expectedError ); - const [operation] = await client.createRepository(request); - await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.createRepository as SinonStub + client.innerApiCalls.updateProjectSettings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createRepository as SinonStub + client.innerApiCalls.updateProjectSettings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateRepositoryProgress without error', async () => { + it('invokes updateProjectSettings with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() - ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; - - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCreateRepositoryProgress( - expectedResponse.name + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest() ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkCreateRepositoryProgress with error', async () => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + request.projectSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest', + ['projectSettings', 'name'] ); + request.projectSettings.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkCreateRepositoryProgress(''), + client.updateProjectSettings(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteRepository', () => { - it('invokes deleteRepository without error', async () => { + describe('getVPCSCConfig', () => { + it('invokes getVPCSCConfig without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteRepositoryRequest', + '.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.devtools.artifactregistry.v1.VPCSCConfig() ); - client.innerApiCalls.deleteRepository = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteRepository(request); - const [response] = await operation.promise(); + client.innerApiCalls.getVpcscConfig = stubSimpleCall(expectedResponse); + const [response] = await client.getVPCSCConfig(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteRepository as SinonStub + client.innerApiCalls.getVpcscConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteRepository as SinonStub + client.innerApiCalls.getVpcscConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteRepository without error using callback', async () => { + it('invokes getVPCSCConfig without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteRepositoryRequest', + '.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.devtools.artifactregistry.v1.VPCSCConfig() ); - client.innerApiCalls.deleteRepository = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getVpcscConfig = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteRepository( + client.getVPCSCConfig( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.devtools.artifactregistry.v1.IOperationMetadata - > | null + result?: protos.google.devtools.artifactregistry.v1.IVPCSCConfig | null ) => { if (err) { reject(err); @@ -2874,190 +2677,265 @@ describe('v1.ArtifactRegistryClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.devtools.artifactregistry.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteRepository as SinonStub + client.innerApiCalls.getVpcscConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteRepository as SinonStub + client.innerApiCalls.getVpcscConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteRepository with call error', async () => { + it('invokes getVPCSCConfig with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteRepositoryRequest', + '.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteRepository = stubLongRunningCall( + client.innerApiCalls.getVpcscConfig = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteRepository(request), expectedError); + await assert.rejects(client.getVPCSCConfig(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteRepository as SinonStub + client.innerApiCalls.getVpcscConfig as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteRepository as SinonStub + client.innerApiCalls.getVpcscConfig as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteRepository with LRO error', async () => { + it('invokes getVPCSCConfig with closed client', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteRepositoryRequest() + new protos.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteRepositoryRequest', + '.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteRepository = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteRepository(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteRepository as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteRepository as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getVPCSCConfig(request), expectedError); }); + }); - it('invokes checkDeleteRepositoryProgress without error', async () => { + describe('updateVPCSCConfig', () => { + it('invokes updateVPCSCConfig without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest() + ); + request.vpcscConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest', + ['vpcscConfig', 'name'] + ); + request.vpcscConfig.name = defaultValue1; + const expectedHeaderRequestParams = `vpcsc_config.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + new protos.google.devtools.artifactregistry.v1.VPCSCConfig() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + client.innerApiCalls.updateVpcscConfig = stubSimpleCall(expectedResponse); + const [response] = await client.updateVPCSCConfig(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateVpcscConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVpcscConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteRepositoryProgress( - expectedResponse.name + it('invokes updateVPCSCConfig without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest() ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.vpcscConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest', + ['vpcscConfig', 'name'] + ); + request.vpcscConfig.name = defaultValue1; + const expectedHeaderRequestParams = `vpcsc_config.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.VPCSCConfig() + ); + client.innerApiCalls.updateVpcscConfig = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateVPCSCConfig( + request, + ( + err?: Error | null, + result?: protos.google.devtools.artifactregistry.v1.IVPCSCConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateVpcscConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVpcscConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteRepositoryProgress with error', async () => { + it('invokes updateVPCSCConfig with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest() + ); + request.vpcscConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest', + ['vpcscConfig', 'name'] + ); + request.vpcscConfig.name = defaultValue1; + const expectedHeaderRequestParams = `vpcsc_config.name=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.updateVpcscConfig = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.checkDeleteRepositoryProgress(''), - expectedError + await assert.rejects(client.updateVPCSCConfig(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateVpcscConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateVpcscConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateVPCSCConfig with closed client', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest() ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.vpcscConfig ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest', + ['vpcscConfig', 'name'] + ); + request.vpcscConfig.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateVPCSCConfig(request), expectedError); }); }); - describe('deletePackage', () => { - it('invokes deletePackage without error', async () => { + describe('importAptArtifacts', () => { + it('invokes importAptArtifacts without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeletePackageRequest() + new protos.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeletePackageRequest', - ['name'] + '.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deletePackage = + client.innerApiCalls.importAptArtifacts = stubLongRunningCall(expectedResponse); - const [operation] = await client.deletePackage(request); + const [operation] = await client.importAptArtifacts(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deletePackage as SinonStub + client.innerApiCalls.importAptArtifacts as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePackage as SinonStub + client.innerApiCalls.importAptArtifacts as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deletePackage without error using callback', async () => { + it('invokes importAptArtifacts without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeletePackageRequest() + new protos.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeletePackageRequest', - ['name'] + '.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deletePackage = + client.innerApiCalls.importAptArtifacts = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deletePackage( + client.importAptArtifacts( request, ( err?: Error | null, result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.devtools.artifactregistry.v1.IOperationMetadata + protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, + protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata > | null ) => { if (err) { @@ -3069,86 +2947,86 @@ describe('v1.ArtifactRegistryClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.devtools.artifactregistry.v1.IOperationMetadata + protos.google.devtools.artifactregistry.v1.IImportAptArtifactsResponse, + protos.google.devtools.artifactregistry.v1.IImportAptArtifactsMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deletePackage as SinonStub + client.innerApiCalls.importAptArtifacts as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePackage as SinonStub + client.innerApiCalls.importAptArtifacts as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deletePackage with call error', async () => { + it('invokes importAptArtifacts with call error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeletePackageRequest() + new protos.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeletePackageRequest', - ['name'] + '.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deletePackage = stubLongRunningCall( + client.innerApiCalls.importAptArtifacts = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.deletePackage(request), expectedError); + await assert.rejects(client.importAptArtifacts(request), expectedError); const actualRequest = ( - client.innerApiCalls.deletePackage as SinonStub + client.innerApiCalls.importAptArtifacts as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePackage as SinonStub + client.innerApiCalls.importAptArtifacts as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deletePackage with LRO error', async () => { + it('invokes importAptArtifacts with LRO error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeletePackageRequest() + new protos.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeletePackageRequest', - ['name'] + '.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deletePackage = stubLongRunningCall( + client.innerApiCalls.importAptArtifacts = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.deletePackage(request); + const [operation] = await client.importAptArtifacts(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deletePackage as SinonStub + client.innerApiCalls.importAptArtifacts as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deletePackage as SinonStub + client.innerApiCalls.importAptArtifacts as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeletePackageProgress without error', async () => { + it('invokes checkImportAptArtifactsProgress without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3162,7 +3040,7 @@ describe('v1.ArtifactRegistryClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeletePackageProgress( + const decodedOperation = await client.checkImportAptArtifactsProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -3170,7 +3048,7 @@ describe('v1.ArtifactRegistryClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeletePackageProgress with error', async () => { + it('invokes checkImportAptArtifactsProgress with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3183,76 +3061,1730 @@ describe('v1.ArtifactRegistryClient', () => { expectedError ); await assert.rejects( - client.checkDeletePackageProgress(''), + client.checkImportAptArtifactsProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteVersion', () => { - it('invokes deleteVersion without error', async () => { + describe('importYumArtifacts', () => { + it('invokes importYumArtifacts without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteVersionRequest() + new protos.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteVersionRequest', - ['name'] + '.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteVersion = + client.innerApiCalls.importYumArtifacts = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteVersion(request); + const [operation] = await client.importYumArtifacts(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteVersion as SinonStub + client.innerApiCalls.importYumArtifacts as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteVersion as SinonStub + client.innerApiCalls.importYumArtifacts as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteVersion without error using callback', async () => { + it('invokes importYumArtifacts without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteVersionRequest() + new protos.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteVersionRequest', - ['name'] + '.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteVersion = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.importYumArtifacts = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.importYumArtifacts( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, + protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.devtools.artifactregistry.v1.IImportYumArtifactsResponse, + protos.google.devtools.artifactregistry.v1.IImportYumArtifactsMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.importYumArtifacts as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importYumArtifacts as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes importYumArtifacts with call error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.importYumArtifacts = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.importYumArtifacts(request), expectedError); + const actualRequest = ( + client.innerApiCalls.importYumArtifacts as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importYumArtifacts as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes importYumArtifacts with LRO error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.importYumArtifacts = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.importYumArtifacts(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.importYumArtifacts as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importYumArtifacts as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkImportYumArtifactsProgress without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkImportYumArtifactsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkImportYumArtifactsProgress with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkImportYumArtifactsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createRepository', () => { + it('invokes createRepository without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.CreateRepositoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.CreateRepositoryRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createRepository = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createRepository(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createRepository as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createRepository as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createRepository without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.CreateRepositoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.CreateRepositoryRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createRepository = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createRepository( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.devtools.artifactregistry.v1.IRepository, + protos.google.devtools.artifactregistry.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.devtools.artifactregistry.v1.IRepository, + protos.google.devtools.artifactregistry.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createRepository as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createRepository as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createRepository with call error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.CreateRepositoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.CreateRepositoryRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createRepository = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createRepository(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createRepository as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createRepository as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createRepository with LRO error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.CreateRepositoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.CreateRepositoryRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createRepository = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createRepository(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createRepository as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createRepository as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateRepositoryProgress without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCreateRepositoryProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateRepositoryProgress with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkCreateRepositoryProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteRepository', () => { + it('invokes deleteRepository without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeleteRepositoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeleteRepositoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteRepository = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteRepository(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteRepository as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteRepository as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteRepository without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeleteRepositoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeleteRepositoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteRepository = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteRepository( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.devtools.artifactregistry.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.devtools.artifactregistry.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteRepository as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteRepository as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteRepository with call error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeleteRepositoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeleteRepositoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteRepository = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteRepository(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteRepository as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteRepository as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteRepository with LRO error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeleteRepositoryRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeleteRepositoryRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteRepository = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteRepository(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteRepository as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteRepository as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteRepositoryProgress without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteRepositoryProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteRepositoryProgress with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteRepositoryProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deletePackage', () => { + it('invokes deletePackage without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeletePackageRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeletePackageRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deletePackage = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deletePackage(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deletePackage as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deletePackage as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deletePackage without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeletePackageRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeletePackageRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deletePackage = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deletePackage( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.devtools.artifactregistry.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.devtools.artifactregistry.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deletePackage as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deletePackage as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deletePackage with call error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeletePackageRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeletePackageRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deletePackage = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deletePackage(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deletePackage as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deletePackage as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deletePackage with LRO error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeletePackageRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeletePackageRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deletePackage = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deletePackage(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deletePackage as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deletePackage as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeletePackageProgress without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeletePackageProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeletePackageProgress with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeletePackageProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteVersion', () => { + it('invokes deleteVersion without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeleteVersionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeleteVersionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteVersion = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteVersion(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteVersion as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVersion as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteVersion without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeleteVersionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeleteVersionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteVersion = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteVersion( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.devtools.artifactregistry.v1.IOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.devtools.artifactregistry.v1.IOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteVersion as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVersion as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteVersion with call error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeleteVersionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeleteVersionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteVersion = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteVersion(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteVersion as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVersion as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteVersion with LRO error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DeleteVersionRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.DeleteVersionRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteVersion = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteVersion(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteVersion as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteVersion as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteVersionProgress without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkDeleteVersionProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteVersionProgress with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkDeleteVersionProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listDockerImages', () => { + it('invokes listDockerImages without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + ]; + client.innerApiCalls.listDockerImages = stubSimpleCall(expectedResponse); + const [response] = await client.listDockerImages(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDockerImages as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDockerImages as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDockerImages without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + ]; + client.innerApiCalls.listDockerImages = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDockerImages( + request, + ( + err?: Error | null, + result?: + | protos.google.devtools.artifactregistry.v1.IDockerImage[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDockerImages as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDockerImages as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDockerImages with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listDockerImages = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listDockerImages(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listDockerImages as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDockerImages as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDockerImagesStream without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + ]; + client.descriptors.page.listDockerImages.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listDockerImagesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.devtools.artifactregistry.v1.DockerImage[] = + []; + stream.on( + 'data', + ( + response: protos.google.devtools.artifactregistry.v1.DockerImage + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listDockerImages.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDockerImages, request) + ); + assert( + (client.descriptors.page.listDockerImages.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listDockerImagesStream with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDockerImages.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listDockerImagesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.devtools.artifactregistry.v1.DockerImage[] = + []; + stream.on( + 'data', + ( + response: protos.google.devtools.artifactregistry.v1.DockerImage + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listDockerImages.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDockerImages, request) + ); + assert( + (client.descriptors.page.listDockerImages.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDockerImages without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.DockerImage() + ), + ]; + client.descriptors.page.listDockerImages.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.devtools.artifactregistry.v1.IDockerImage[] = + []; + const iterable = client.listDockerImagesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listDockerImages.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDockerImages.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDockerImages with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDockerImages.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDockerImagesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.devtools.artifactregistry.v1.IDockerImage[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listDockerImages.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDockerImages.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listMavenArtifacts', () => { + it('invokes listMavenArtifacts without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + ]; + client.innerApiCalls.listMavenArtifacts = + stubSimpleCall(expectedResponse); + const [response] = await client.listMavenArtifacts(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listMavenArtifacts as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMavenArtifacts as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listMavenArtifacts without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + ]; + client.innerApiCalls.listMavenArtifacts = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listMavenArtifacts( + request, + ( + err?: Error | null, + result?: + | protos.google.devtools.artifactregistry.v1.IMavenArtifact[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listMavenArtifacts as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMavenArtifacts as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listMavenArtifacts with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listMavenArtifacts = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listMavenArtifacts(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listMavenArtifacts as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMavenArtifacts as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listMavenArtifactsStream without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + ]; + client.descriptors.page.listMavenArtifacts.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listMavenArtifactsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.devtools.artifactregistry.v1.MavenArtifact[] = + []; + stream.on( + 'data', + ( + response: protos.google.devtools.artifactregistry.v1.MavenArtifact + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listMavenArtifacts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listMavenArtifacts, request) + ); + assert( + (client.descriptors.page.listMavenArtifacts.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listMavenArtifactsStream with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listMavenArtifacts.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listMavenArtifactsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.devtools.artifactregistry.v1.MavenArtifact[] = + []; + stream.on( + 'data', + ( + response: protos.google.devtools.artifactregistry.v1.MavenArtifact + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listMavenArtifacts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listMavenArtifacts, request) + ); + assert( + (client.descriptors.page.listMavenArtifacts.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listMavenArtifacts without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.MavenArtifact() + ), + ]; + client.descriptors.page.listMavenArtifacts.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.devtools.artifactregistry.v1.IMavenArtifact[] = + []; + const iterable = client.listMavenArtifactsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listMavenArtifacts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listMavenArtifacts.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listMavenArtifacts with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listMavenArtifacts.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listMavenArtifactsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.devtools.artifactregistry.v1.IMavenArtifact[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listMavenArtifacts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listMavenArtifacts.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listNpmPackages', () => { + it('invokes listNpmPackages without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListNpmPackagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListNpmPackagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + ]; + client.innerApiCalls.listNpmPackages = stubSimpleCall(expectedResponse); + const [response] = await client.listNpmPackages(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listNpmPackages as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNpmPackages as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNpmPackages without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListNpmPackagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListNpmPackagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + ]; + client.innerApiCalls.listNpmPackages = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteVersion( + client.listNpmPackages( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.devtools.artifactregistry.v1.IOperationMetadata - > | null + result?: + | protos.google.devtools.artifactregistry.v1.INpmPackage[] + | null ) => { if (err) { reject(err); @@ -3262,203 +4794,328 @@ describe('v1.ArtifactRegistryClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.devtools.artifactregistry.v1.IOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteVersion as SinonStub + client.innerApiCalls.listNpmPackages as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteVersion as SinonStub + client.innerApiCalls.listNpmPackages as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteVersion with call error', async () => { + it('invokes listNpmPackages with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteVersionRequest() + new protos.google.devtools.artifactregistry.v1.ListNpmPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteVersionRequest', - ['name'] + '.google.devtools.artifactregistry.v1.ListNpmPackagesRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteVersion = stubLongRunningCall( + client.innerApiCalls.listNpmPackages = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteVersion(request), expectedError); + await assert.rejects(client.listNpmPackages(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteVersion as SinonStub + client.innerApiCalls.listNpmPackages as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteVersion as SinonStub + client.innerApiCalls.listNpmPackages as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteVersion with LRO error', async () => { + it('invokes listNpmPackagesStream without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DeleteVersionRequest() + new protos.google.devtools.artifactregistry.v1.ListNpmPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.DeleteVersionRequest', - ['name'] + '.google.devtools.artifactregistry.v1.ListNpmPackagesRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteVersion = stubLongRunningCall( - undefined, - undefined, - expectedError + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + ]; + client.descriptors.page.listNpmPackages.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listNpmPackagesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.devtools.artifactregistry.v1.NpmPackage[] = + []; + stream.on( + 'data', + (response: protos.google.devtools.artifactregistry.v1.NpmPackage) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listNpmPackages.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listNpmPackages, request) + ); + assert( + (client.descriptors.page.listNpmPackages.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); - const [operation] = await client.deleteVersion(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteVersion as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteVersion as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteVersionProgress without error', async () => { + it('invokes listNpmPackagesStream with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListNpmPackagesRequest() ); - expectedResponse.name = 'test'; - expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; - expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListNpmPackagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listNpmPackages.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listNpmPackagesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.devtools.artifactregistry.v1.NpmPackage[] = + []; + stream.on( + 'data', + (response: protos.google.devtools.artifactregistry.v1.NpmPackage) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listNpmPackages.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listNpmPackages, request) + ); + assert( + (client.descriptors.page.listNpmPackages.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); - client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteVersionProgress( - expectedResponse.name + it('uses async iteration with listNpmPackages without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListNpmPackagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListNpmPackagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.NpmPackage() + ), + ]; + client.descriptors.page.listNpmPackages.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.devtools.artifactregistry.v1.INpmPackage[] = + []; + const iterable = client.listNpmPackagesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listNpmPackages.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listNpmPackages.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteVersionProgress with error', async () => { + it('uses async iteration with listNpmPackages with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.devtools.artifactregistry.v1.ListNpmPackagesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.devtools.artifactregistry.v1.ListNpmPackagesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + client.descriptors.page.listNpmPackages.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listNpmPackagesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.devtools.artifactregistry.v1.INpmPackage[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listNpmPackages.asyncIterate as SinonStub + ).getCall(0).args[1], + request ); - await assert.rejects( - client.checkDeleteVersionProgress(''), - expectedError + assert( + (client.descriptors.page.listNpmPackages.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listDockerImages', () => { - it('invokes listDockerImages without error', async () => { + describe('listPythonPackages', () => { + it('invokes listPythonPackages without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + new protos.google.devtools.artifactregistry.v1.ListPythonPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + '.google.devtools.artifactregistry.v1.ListPythonPackagesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), ]; - client.innerApiCalls.listDockerImages = stubSimpleCall(expectedResponse); - const [response] = await client.listDockerImages(request); + client.innerApiCalls.listPythonPackages = + stubSimpleCall(expectedResponse); + const [response] = await client.listPythonPackages(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDockerImages as SinonStub + client.innerApiCalls.listPythonPackages as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDockerImages as SinonStub + client.innerApiCalls.listPythonPackages as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDockerImages without error using callback', async () => { + it('invokes listPythonPackages without error using callback', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + new protos.google.devtools.artifactregistry.v1.ListPythonPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + '.google.devtools.artifactregistry.v1.ListPythonPackagesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), ]; - client.innerApiCalls.listDockerImages = + client.innerApiCalls.listPythonPackages = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDockerImages( + client.listPythonPackages( request, ( err?: Error | null, result?: - | protos.google.devtools.artifactregistry.v1.IDockerImage[] + | protos.google.devtools.artifactregistry.v1.IPythonPackage[] | null ) => { if (err) { @@ -3472,82 +5129,82 @@ describe('v1.ArtifactRegistryClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDockerImages as SinonStub + client.innerApiCalls.listPythonPackages as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDockerImages as SinonStub + client.innerApiCalls.listPythonPackages as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDockerImages with error', async () => { + it('invokes listPythonPackages with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + new protos.google.devtools.artifactregistry.v1.ListPythonPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + '.google.devtools.artifactregistry.v1.ListPythonPackagesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDockerImages = stubSimpleCall( + client.innerApiCalls.listPythonPackages = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listDockerImages(request), expectedError); + await assert.rejects(client.listPythonPackages(request), expectedError); const actualRequest = ( - client.innerApiCalls.listDockerImages as SinonStub + client.innerApiCalls.listPythonPackages as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDockerImages as SinonStub + client.innerApiCalls.listPythonPackages as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDockerImagesStream without error', async () => { + it('invokes listPythonPackagesStream without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + new protos.google.devtools.artifactregistry.v1.ListPythonPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + '.google.devtools.artifactregistry.v1.ListPythonPackagesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), ]; - client.descriptors.page.listDockerImages.createStream = + client.descriptors.page.listPythonPackages.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDockerImagesStream(request); + const stream = client.listPythonPackagesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.devtools.artifactregistry.v1.DockerImage[] = + const responses: protos.google.devtools.artifactregistry.v1.PythonPackage[] = []; stream.on( 'data', ( - response: protos.google.devtools.artifactregistry.v1.DockerImage + response: protos.google.devtools.artifactregistry.v1.PythonPackage ) => { responses.push(response); } @@ -3562,12 +5219,12 @@ describe('v1.ArtifactRegistryClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listDockerImages.createStream as SinonStub) + (client.descriptors.page.listPythonPackages.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDockerImages, request) + .calledWith(client.innerApiCalls.listPythonPackages, request) ); assert( - (client.descriptors.page.listDockerImages.createStream as SinonStub) + (client.descriptors.page.listPythonPackages.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3575,32 +5232,32 @@ describe('v1.ArtifactRegistryClient', () => { ); }); - it('invokes listDockerImagesStream with error', async () => { + it('invokes listPythonPackagesStream with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + new protos.google.devtools.artifactregistry.v1.ListPythonPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + '.google.devtools.artifactregistry.v1.ListPythonPackagesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDockerImages.createStream = + client.descriptors.page.listPythonPackages.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listDockerImagesStream(request); + const stream = client.listPythonPackagesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.devtools.artifactregistry.v1.DockerImage[] = + const responses: protos.google.devtools.artifactregistry.v1.PythonPackage[] = []; stream.on( 'data', ( - response: protos.google.devtools.artifactregistry.v1.DockerImage + response: protos.google.devtools.artifactregistry.v1.PythonPackage ) => { responses.push(response); } @@ -3614,12 +5271,12 @@ describe('v1.ArtifactRegistryClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listDockerImages.createStream as SinonStub) + (client.descriptors.page.listPythonPackages.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDockerImages, request) + .calledWith(client.innerApiCalls.listPythonPackages, request) ); assert( - (client.descriptors.page.listDockerImages.createStream as SinonStub) + (client.descriptors.page.listPythonPackages.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3627,49 +5284,49 @@ describe('v1.ArtifactRegistryClient', () => { ); }); - it('uses async iteration with listDockerImages without error', async () => { + it('uses async iteration with listPythonPackages without error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + new protos.google.devtools.artifactregistry.v1.ListPythonPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + '.google.devtools.artifactregistry.v1.ListPythonPackagesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.DockerImage() + new protos.google.devtools.artifactregistry.v1.PythonPackage() ), ]; - client.descriptors.page.listDockerImages.asyncIterate = + client.descriptors.page.listPythonPackages.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.devtools.artifactregistry.v1.IDockerImage[] = + const responses: protos.google.devtools.artifactregistry.v1.IPythonPackage[] = []; - const iterable = client.listDockerImagesAsync(request); + const iterable = client.listPythonPackagesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDockerImages.asyncIterate as SinonStub + client.descriptors.page.listPythonPackages.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listDockerImages.asyncIterate as SinonStub) + (client.descriptors.page.listPythonPackages.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3677,27 +5334,27 @@ describe('v1.ArtifactRegistryClient', () => { ); }); - it('uses async iteration with listDockerImages with error', async () => { + it('uses async iteration with listPythonPackages with error', async () => { const client = new artifactregistryModule.v1.ArtifactRegistryClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.devtools.artifactregistry.v1.ListDockerImagesRequest() + new protos.google.devtools.artifactregistry.v1.ListPythonPackagesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.devtools.artifactregistry.v1.ListDockerImagesRequest', + '.google.devtools.artifactregistry.v1.ListPythonPackagesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDockerImages.asyncIterate = + client.descriptors.page.listPythonPackages.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDockerImagesAsync(request); + const iterable = client.listPythonPackagesAsync(request); await assert.rejects(async () => { - const responses: protos.google.devtools.artifactregistry.v1.IDockerImage[] = + const responses: protos.google.devtools.artifactregistry.v1.IPythonPackage[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -3705,12 +5362,12 @@ describe('v1.ArtifactRegistryClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDockerImages.asyncIterate as SinonStub + client.descriptors.page.listPythonPackages.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listDockerImages.asyncIterate as SinonStub) + (client.descriptors.page.listPythonPackages.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5562,6 +7219,311 @@ describe('v1.ArtifactRegistryClient', () => { ); }); }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('aptArtifact', () => { @@ -5792,6 +7754,234 @@ describe('v1.ArtifactRegistryClient', () => { }); }); + describe('mavenArtifact', () => { + const fakePath = '/rendered/path/mavenArtifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + repository: 'repositoryValue', + maven_artifact: 'mavenArtifactValue', + }; + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.mavenArtifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.mavenArtifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('mavenArtifactPath', () => { + const result = client.mavenArtifactPath( + 'projectValue', + 'locationValue', + 'repositoryValue', + 'mavenArtifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.mavenArtifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMavenArtifactName', () => { + const result = client.matchProjectFromMavenArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.mavenArtifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMavenArtifactName', () => { + const result = client.matchLocationFromMavenArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.mavenArtifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRepositoryFromMavenArtifactName', () => { + const result = client.matchRepositoryFromMavenArtifactName(fakePath); + assert.strictEqual(result, 'repositoryValue'); + assert( + (client.pathTemplates.mavenArtifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMavenArtifactFromMavenArtifactName', () => { + const result = client.matchMavenArtifactFromMavenArtifactName(fakePath); + assert.strictEqual(result, 'mavenArtifactValue'); + assert( + (client.pathTemplates.mavenArtifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('npmPackage', () => { + const fakePath = '/rendered/path/npmPackage'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + repository: 'repositoryValue', + npm_package: 'npmPackageValue', + }; + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.npmPackagePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.npmPackagePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('npmPackagePath', () => { + const result = client.npmPackagePath( + 'projectValue', + 'locationValue', + 'repositoryValue', + 'npmPackageValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.npmPackagePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNpmPackageName', () => { + const result = client.matchProjectFromNpmPackageName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.npmPackagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNpmPackageName', () => { + const result = client.matchLocationFromNpmPackageName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.npmPackagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRepositoryFromNpmPackageName', () => { + const result = client.matchRepositoryFromNpmPackageName(fakePath); + assert.strictEqual(result, 'repositoryValue'); + assert( + (client.pathTemplates.npmPackagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNpmPackageFromNpmPackageName', () => { + const result = client.matchNpmPackageFromNpmPackageName(fakePath); + assert.strictEqual(result, 'npmPackageValue'); + assert( + (client.pathTemplates.npmPackagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('package', () => { + const fakePath = '/rendered/path/package'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + repository: 'repositoryValue', + package: 'packageValue', + }; + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.packagePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.packagePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('packagePath', () => { + const result = client.packagePath( + 'projectValue', + 'locationValue', + 'repositoryValue', + 'packageValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.packagePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPackageName', () => { + const result = client.matchProjectFromPackageName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.packagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPackageName', () => { + const result = client.matchLocationFromPackageName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.packagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRepositoryFromPackageName', () => { + const result = client.matchRepositoryFromPackageName(fakePath); + assert.strictEqual(result, 'repositoryValue'); + assert( + (client.pathTemplates.packagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPackageFromPackageName', () => { + const result = client.matchPackageFromPackageName(fakePath); + assert.strictEqual(result, 'packageValue'); + assert( + (client.pathTemplates.packagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectSettings', () => { const fakePath = '/rendered/path/projectSettings'; const expectedParameters = { @@ -5830,6 +8020,82 @@ describe('v1.ArtifactRegistryClient', () => { }); }); + describe('pythonPackage', () => { + const fakePath = '/rendered/path/pythonPackage'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + repository: 'repositoryValue', + python_package: 'pythonPackageValue', + }; + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pythonPackagePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pythonPackagePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pythonPackagePath', () => { + const result = client.pythonPackagePath( + 'projectValue', + 'locationValue', + 'repositoryValue', + 'pythonPackageValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pythonPackagePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPythonPackageName', () => { + const result = client.matchProjectFromPythonPackageName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pythonPackagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPythonPackageName', () => { + const result = client.matchLocationFromPythonPackageName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pythonPackagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRepositoryFromPythonPackageName', () => { + const result = client.matchRepositoryFromPythonPackageName(fakePath); + assert.strictEqual(result, 'repositoryValue'); + assert( + (client.pathTemplates.pythonPackagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPythonPackageFromPythonPackageName', () => { + const result = client.matchPythonPackageFromPythonPackageName(fakePath); + assert.strictEqual(result, 'pythonPackageValue'); + assert( + (client.pathTemplates.pythonPackagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('repository', () => { const fakePath = '/rendered/path/repository'; const expectedParameters = { @@ -6070,6 +8336,55 @@ describe('v1.ArtifactRegistryClient', () => { }); }); + describe('vpcscConfig', () => { + const fakePath = '/rendered/path/vpcscConfig'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + }; + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.vpcscConfigPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.vpcscConfigPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('vpcscConfigPath', () => { + const result = client.vpcscConfigPath('projectValue', 'locationValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.vpcscConfigPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromVpcscConfigName', () => { + const result = client.matchProjectFromVpcscConfigName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.vpcscConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromVpcscConfigName', () => { + const result = client.matchLocationFromVpcscConfigName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.vpcscConfigPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('yumArtifact', () => { const fakePath = '/rendered/path/yumArtifact'; const expectedParameters = { From 7d98066e5335f8e089a9f193a2ec907b99b3e042 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 17:02:49 -0800 Subject: [PATCH 27/38] feat: Add IngestConversationsStats (#3941) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add IngestConversationsStats docs: Reformat some lines of code PiperOrigin-RevId: 506985378 Source-Link: https://github.com/googleapis/googleapis/commit/cfed8e603c649178f2bf20eca6bcf530bfa064f6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/13ec51989f7be48f9e889d827daf9707e3182613 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhY3RjZW50ZXJpbnNpZ2h0cy8uT3dsQm90LnlhbWwiLCJoIjoiMTNlYzUxOTg5ZjdiZTQ4ZjllODg5ZDgyN2RhZjk3MDdlMzE4MjYxMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update .gitignore to always include protos folder Use gapic-generator-typescript v3.0.0. PiperOrigin-RevId: 507004755 Source-Link: https://github.com/googleapis/googleapis/commit/d784f3c1043616fc0646e9ce7afa1b9161cc02de Source-Link: https://github.com/googleapis/googleapis-gen/commit/5e64ba8615f65fdedb1fcd6ac792e5ea621027e4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhY3RjZW50ZXJpbnNpZ2h0cy8uT3dsQm90LnlhbWwiLCJoIjoiNWU2NGJhODYxNWY2NWZkZWRiMWZjZDZhYzc5MmU1ZWE2MjEwMjdlNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhY3RjZW50ZXJpbnNpZ2h0cy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../.gitignore | 12 +- .../v1/contact_center_insights.proto | 161 ++++++--- .../contactcenterinsights/v1/resources.proto | 143 ++++---- .../protos/protos.d.ts | 130 +++++++ .../protos/protos.js | 338 ++++++++++++++++++ .../protos/protos.json | 48 +++ ...t_center_insights.create_phrase_matcher.js | 8 +- .../src/v1/contact_center_insights_client.ts | 8 +- 8 files changed, 719 insertions(+), 129 deletions(-) diff --git a/packages/google-cloud-contactcenterinsights/.gitignore b/packages/google-cloud-contactcenterinsights/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-contactcenterinsights/.gitignore +++ b/packages/google-cloud-contactcenterinsights/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto index 273bd0d42f13..b9f611b787d8 100644 --- a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto +++ b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto @@ -39,7 +39,8 @@ option ruby_package = "Google::Cloud::ContactCenterInsights::V1"; // An API that lets users analyze and explore their business conversation data. service ContactCenterInsights { option (google.api.default_host) = "contactcenterinsights.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates a conversation. rpc CreateConversation(CreateConversationRequest) returns (Conversation) { @@ -47,7 +48,8 @@ service ContactCenterInsights { post: "/v1/{parent=projects/*/locations/*}/conversations" body: "conversation" }; - option (google.api.method_signature) = "parent,conversation,conversation_id"; + option (google.api.method_signature) = + "parent,conversation,conversation_id"; } // Updates a conversation. @@ -68,7 +70,8 @@ service ContactCenterInsights { } // Lists conversations. - rpc ListConversations(ListConversationsRequest) returns (ListConversationsResponse) { + rpc ListConversations(ListConversationsRequest) + returns (ListConversationsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/conversations" }; @@ -76,7 +79,8 @@ service ContactCenterInsights { } // Deletes a conversation. - rpc DeleteConversation(DeleteConversationRequest) returns (google.protobuf.Empty) { + rpc DeleteConversation(DeleteConversationRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/conversations/*}" }; @@ -85,7 +89,8 @@ service ContactCenterInsights { // Creates an analysis. The long running operation is done when the analysis // has completed. - rpc CreateAnalysis(CreateAnalysisRequest) returns (google.longrunning.Operation) { + rpc CreateAnalysis(CreateAnalysisRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/conversations/*}/analyses" body: "analysis" @@ -122,7 +127,8 @@ service ContactCenterInsights { } // Analyzes multiple conversations in a single request. - rpc BulkAnalyzeConversations(BulkAnalyzeConversationsRequest) returns (google.longrunning.Operation) { + rpc BulkAnalyzeConversations(BulkAnalyzeConversationsRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/conversations:bulkAnalyze" body: "*" @@ -136,7 +142,8 @@ service ContactCenterInsights { // Imports conversations and processes them according to the user's // configuration. - rpc IngestConversations(IngestConversationsRequest) returns (google.longrunning.Operation) { + rpc IngestConversations(IngestConversationsRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/conversations:ingest" body: "*" @@ -149,7 +156,8 @@ service ContactCenterInsights { } // Export insights data to a destination defined in the request body. - rpc ExportInsightsData(ExportInsightsDataRequest) returns (google.longrunning.Operation) { + rpc ExportInsightsData(ExportInsightsDataRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/insightsdata:export" body: "*" @@ -162,7 +170,8 @@ service ContactCenterInsights { } // Creates an issue model. - rpc CreateIssueModel(CreateIssueModelRequest) returns (google.longrunning.Operation) { + rpc CreateIssueModel(CreateIssueModelRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/issueModels" body: "issue_model" @@ -192,7 +201,8 @@ service ContactCenterInsights { } // Lists issue models. - rpc ListIssueModels(ListIssueModelsRequest) returns (ListIssueModelsResponse) { + rpc ListIssueModels(ListIssueModelsRequest) + returns (ListIssueModelsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/issueModels" }; @@ -200,7 +210,8 @@ service ContactCenterInsights { } // Deletes an issue model. - rpc DeleteIssueModel(DeleteIssueModelRequest) returns (google.longrunning.Operation) { + rpc DeleteIssueModel(DeleteIssueModelRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/issueModels/*}" }; @@ -213,7 +224,8 @@ service ContactCenterInsights { // Deploys an issue model. Returns an error if a model is already deployed. // An issue model can only be used in analysis after it has been deployed. - rpc DeployIssueModel(DeployIssueModelRequest) returns (google.longrunning.Operation) { + rpc DeployIssueModel(DeployIssueModelRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/issueModels/*}:deploy" body: "*" @@ -227,7 +239,8 @@ service ContactCenterInsights { // Undeploys an issue model. // An issue model can not be used in analysis after it has been undeployed. - rpc UndeployIssueModel(UndeployIssueModelRequest) returns (google.longrunning.Operation) { + rpc UndeployIssueModel(UndeployIssueModelRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/issueModels/*}:undeploy" body: "*" @@ -273,7 +286,8 @@ service ContactCenterInsights { } // Gets an issue model's statistics. - rpc CalculateIssueModelStats(CalculateIssueModelStatsRequest) returns (CalculateIssueModelStatsResponse) { + rpc CalculateIssueModelStats(CalculateIssueModelStatsRequest) + returns (CalculateIssueModelStatsResponse) { option (google.api.http) = { get: "/v1/{issue_model=projects/*/locations/*/issueModels/*}:calculateIssueModelStats" }; @@ -298,7 +312,8 @@ service ContactCenterInsights { } // Lists phrase matchers. - rpc ListPhraseMatchers(ListPhraseMatchersRequest) returns (ListPhraseMatchersResponse) { + rpc ListPhraseMatchers(ListPhraseMatchersRequest) + returns (ListPhraseMatchersResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/phraseMatchers" }; @@ -306,7 +321,8 @@ service ContactCenterInsights { } // Deletes a phrase matcher. - rpc DeletePhraseMatcher(DeletePhraseMatcherRequest) returns (google.protobuf.Empty) { + rpc DeletePhraseMatcher(DeletePhraseMatcherRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/phraseMatchers/*}" }; @@ -479,10 +495,12 @@ message CalculateStatsResponse { // Metadata for a create analysis operation. message CreateAnalysisOperationMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The Conversation that this Analysis Operation belongs to. string conversation = 3 [ @@ -493,7 +511,8 @@ message CreateAnalysisOperationMetadata { ]; // Output only. The annotator selector used for the analysis (if any). - AnnotatorSelector annotator_selector = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + AnnotatorSelector annotator_selector = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request to create a conversation. @@ -645,24 +664,51 @@ message IngestConversationsRequest { // The metadata for an IngestConversations operation. message IngestConversationsMetadata { + // Statistics for IngestConversations operation. + message IngestConversationsStats { + // Output only. The number of objects processed during the ingest operation. + int32 processed_object_count = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of objects skipped because another conversation + // with the same transcript uri had already been ingested. + int32 duplicates_skipped_count = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of new conversations added during this ingest + // operation. + int32 successful_ingest_count = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of objects which were unable to be ingested due + // to errors. The errors are populated in the partial_errors field. + int32 failed_ingest_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The original request for ingest. - IngestConversationsRequest request = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + IngestConversationsRequest request = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Partial errors during ingest operation that might cause the operation - // output to be incomplete. - repeated google.rpc.Status partial_errors = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Partial errors during ingest operation that might cause the + // operation output to be incomplete. + repeated google.rpc.Status partial_errors = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Statistics for IngestConversations operation. + IngestConversationsStats ingest_conversations_stats = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The response to an IngestConversations operation. -message IngestConversationsResponse { - -} +message IngestConversationsResponse {} // The request to create an analysis. message CreateAnalysisRequest { @@ -798,9 +844,9 @@ message ExportInsightsDataRequest { // the resource project will be used. string project_id = 3; - // Required. The name of the BigQuery dataset that the snapshot result should be - // exported to. If this dataset does not exist, the export call returns an - // INVALID_ARGUMENT error. + // Required. The name of the BigQuery dataset that the snapshot result + // should be exported to. If this dataset does not exist, the export call + // returns an INVALID_ARGUMENT error. string dataset = 1 [(google.api.field_behavior) = REQUIRED]; // The BigQuery table name to which the insights data should be written. @@ -852,10 +898,12 @@ message ExportInsightsDataRequest { // Metadata for an export insights operation. message ExportInsightsDataMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The original request for export. ExportInsightsDataRequest request = 3; @@ -866,9 +914,7 @@ message ExportInsightsDataMetadata { } // Response for an export insights operation. -message ExportInsightsDataResponse { - -} +message ExportInsightsDataResponse {} // The request to create an issue model. message CreateIssueModelRequest { @@ -887,10 +933,12 @@ message CreateIssueModelRequest { // Metadata for creating an issue model. message CreateIssueModelMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The original request for creation. CreateIssueModelRequest request = 3; @@ -947,10 +995,12 @@ message DeleteIssueModelRequest { // Metadata for deleting an issue model. message DeleteIssueModelMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The original request for deletion. DeleteIssueModelRequest request = 3; @@ -968,17 +1018,17 @@ message DeployIssueModelRequest { } // The response to deploy an issue model. -message DeployIssueModelResponse { - -} +message DeployIssueModelResponse {} // Metadata for deploying an issue model. message DeployIssueModelMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The original request for deployment. DeployIssueModelRequest request = 3; @@ -996,17 +1046,17 @@ message UndeployIssueModelRequest { } // The response to undeploy an issue model. -message UndeployIssueModelResponse { - -} +message UndeployIssueModelResponse {} // Metadata for undeploying an issue model. message UndeployIssueModelMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The original request for undeployment. UndeployIssueModelRequest request = 3; @@ -1080,10 +1130,10 @@ message CalculateIssueModelStatsResponse { // Request to create a phrase matcher. message CreatePhraseMatcherRequest { - // Required. The parent resource of the phrase matcher. Required. The location to create - // a phrase matcher for. - // Format: `projects//locations/` or - // `projects//locations/` + // Required. The parent resource of the phrase matcher. Required. The location + // to create a phrase matcher for. Format: `projects//locations/` or `projects//locations/` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1179,7 +1229,8 @@ message UpdateSettingsRequest { Settings settings = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The list of fields to be updated. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // The request to create a view. diff --git a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto index a78ce3f81903..9c0802b77f17 100644 --- a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto +++ b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto @@ -146,7 +146,8 @@ message Conversation { // Input only. The TTL for this resource. If specified, then this TTL will // be used to calculate the expire time. - google.protobuf.Duration ttl = 16 [(google.api.field_behavior) = INPUT_ONLY]; + google.protobuf.Duration ttl = 16 + [(google.api.field_behavior) = INPUT_ONLY]; } // Immutable. The resource name of the conversation. @@ -158,10 +159,12 @@ message Conversation { ConversationDataSource data_source = 2; // Output only. The time at which the conversation was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The most recent time at which the conversation was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The time at which the conversation started. google.protobuf.Timestamp start_time = 17; @@ -180,11 +183,13 @@ message Conversation { // Output only. The conversation transcript. Transcript transcript = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. The conversation medium, if unspecified will default to PHONE_CALL. + // Immutable. The conversation medium, if unspecified will default to + // PHONE_CALL. Medium medium = 9 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The duration of the conversation. - google.protobuf.Duration duration = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Duration duration = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The number of turns in the conversation. int32 turn_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -192,14 +197,16 @@ message Conversation { // Output only. The conversation's latest analysis, if one exists. Analysis latest_analysis = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The annotations that were generated during the customer and agent - // interaction. - repeated RuntimeAnnotation runtime_annotations = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The annotations that were generated during the customer and + // agent interaction. + repeated RuntimeAnnotation runtime_annotations = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. All the matched Dialogflow intents in the call. The key corresponds to a - // Dialogflow intent, format: + // Output only. All the matched Dialogflow intents in the call. The key + // corresponds to a Dialogflow intent, format: // projects/{project}/agent/{agent}/intents/{intent} - map dialogflow_intents = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + map dialogflow_intents = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Obfuscated user ID which the customer sent to us. string obfuscated_user_id = 21; @@ -218,15 +225,18 @@ message Analysis { string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The time at which the analysis was requested. - google.protobuf.Timestamp request_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp request_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The time at which the analysis was created, which occurs when the - // long-running operation completes. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The time at which the analysis was created, which occurs when + // the long-running operation completes. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The result of the analysis, which is populated when the analysis - // finishes. - AnalysisResult analysis_result = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The result of the analysis, which is populated when the + // analysis finishes. + AnalysisResult analysis_result = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // To select the annotators to run and the phrase matchers to use // (if any). If not specified, all annotators will be run. @@ -251,8 +261,8 @@ message GcsSource { // audio. string audio_uri = 1; - // Immutable. Cloud Storage URI that points to a file that contains the conversation - // transcript. + // Immutable. Cloud Storage URI that points to a file that contains the + // conversation transcript. string transcript_uri = 2 [(google.api.field_behavior) = IMMUTABLE]; } @@ -261,7 +271,8 @@ message DialogflowSource { // Output only. The name of the Dialogflow conversation that this conversation // resource is derived from. Format: // projects/{project}/locations/{location}/conversations/{conversation} - string dialogflow_conversation = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string dialogflow_conversation = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Cloud Storage URI that points to a file that contains the conversation // audio. @@ -306,8 +317,8 @@ message IssueModelResult { // Issue model that generates the result. // Format: projects/{project}/locations/{location}/issueModels/{issue_model} string issue_model = 1 [(google.api.resource_reference) = { - type: "contactcenterinsights.googleapis.com/IssueModel" - }]; + type: "contactcenterinsights.googleapis.com/IssueModel" + }]; // All the matched issues. repeated IssueAssignment issues = 2; @@ -331,8 +342,8 @@ message IssueAssignment { // currently bounded on [0,1]. double score = 2; - // Immutable. Display name of the assigned issue. This field is set at time of analyis - // and immutable since then. + // Immutable. Display name of the assigned issue. This field is set at time of + // analyis and immutable since then. string display_name = 3 [(google.api.field_behavior) = IMMUTABLE]; } @@ -526,19 +537,13 @@ message DialogflowIntent { } // The data for an interruption annotation. -message InterruptionData { - -} +message InterruptionData {} // The data for a silence annotation. -message SilenceData { - -} +message SilenceData {} // The data for a hold annotation. -message HoldData { - -} +message HoldData {} // The data for an entity mention annotation. // This represents a mention of an `Entity` in the conversation. @@ -607,7 +612,8 @@ message IssueModel { Conversation.Medium medium = 1 [deprecated = true]; // Output only. Number of conversations used in training. Output only. - int64 training_conversations_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + int64 training_conversations_count = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // A filter to reduce the conversations used for training the model to a // specific subset. @@ -645,10 +651,15 @@ message IssueModel { string display_name = 2; // Output only. The time at which this issue model was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The most recent time at which the issue model was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of issues in this issue model. + int64 issue_count = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. State of the model. State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -656,7 +667,8 @@ message IssueModel { // Configs for the input data that used to create the issue model. InputDataConfig input_data_config = 6; - // Output only. Immutable. The issue model's label statistics on its training data. + // Output only. Immutable. The issue model's label statistics on its training + // data. IssueModelLabelStats training_stats = 7 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.field_behavior) = IMMUTABLE @@ -679,14 +691,17 @@ message Issue { string display_name = 2; // Output only. The time at which this issue was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The most recent time that this issue was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Resource names of the sample representative utterances that match to this - // issue. - repeated string sample_utterances = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Resource names of the sample representative utterances that + // match to this issue. + repeated string sample_utterances = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Aggregated statistics about an issue model. @@ -754,9 +769,10 @@ message PhraseMatcher { // it will default to `revision_id`. string version_tag = 3; - // Output only. The timestamp of when the revision was created. It is also the create time - // when a new matcher is added. - google.protobuf.Timestamp revision_create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The timestamp of when the revision was created. It is also the + // create time when a new matcher is added. + google.protobuf.Timestamp revision_create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The human-readable name of the phrase matcher. string display_name = 5; @@ -770,8 +786,10 @@ message PhraseMatcher { // A list of phase match rule groups that are included in this matcher. repeated PhraseMatchRuleGroup phrase_match_rule_groups = 8; - // Output only. The most recent time at which the activation status was updated. - google.protobuf.Timestamp activation_update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The most recent time at which the activation status was + // updated. + google.protobuf.Timestamp activation_update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The role whose utterances the phrase matcher should be matched // against. If the role is ROLE_UNSPECIFIED it will be matched against any @@ -779,7 +797,8 @@ message PhraseMatcher { ConversationParticipant.Role role_match = 10; // Output only. The most recent time at which the phrase matcher was updated. - google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A message representing a rule in the phrase matcher. @@ -857,10 +876,12 @@ message Settings { string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The time at which the settings was created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which the settings were last updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // A language code to be applied to each transcript segment unless the segment // already specifies a language code. Language code defaults to "en-US" if it @@ -1092,8 +1113,8 @@ message ConversationParticipant { // The name of the participant provided by Dialogflow. Format: // projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} string dialogflow_participant_name = 5 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Participant" - }]; + type: "dialogflow.googleapis.com/Participant" + }]; // A user-specified ID representing the participant. string user_id = 6; @@ -1127,12 +1148,14 @@ message View { string display_name = 2; // Output only. The time at which this view was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The most recent time at which the view was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // String with specific view properties. + // String with specific view properties, must be non-empty. string value = 5; } @@ -1153,8 +1176,8 @@ message AnnotatorSelector { // run_phrase_matcher_annotator is set to true. Format: // projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} repeated string phrase_matchers = 4 [(google.api.resource_reference) = { - type: "contactcenterinsights.googleapis.com/PhraseMatcher" - }]; + type: "contactcenterinsights.googleapis.com/PhraseMatcher" + }]; // Whether to run the sentiment annotator. bool run_sentiment_annotator = 5; @@ -1175,6 +1198,6 @@ message AnnotatorSelector { // is set to true. If more than one issue model is provided, only the first // provided issue model will be used for inference. repeated string issue_models = 10 [(google.api.resource_reference) = { - type: "contactcenterinsights.googleapis.com/IssueModel" - }]; + type: "contactcenterinsights.googleapis.com/IssueModel" + }]; } diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.d.ts b/packages/google-cloud-contactcenterinsights/protos/protos.d.ts index 4eb25e6dd619..85f57b366abd 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.d.ts +++ b/packages/google-cloud-contactcenterinsights/protos/protos.d.ts @@ -2474,6 +2474,9 @@ export namespace google { /** IngestConversationsMetadata partialErrors */ partialErrors?: (google.rpc.IStatus[]|null); + + /** IngestConversationsMetadata ingestConversationsStats */ + ingestConversationsStats?: (google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats|null); } /** Represents an IngestConversationsMetadata. */ @@ -2497,6 +2500,9 @@ export namespace google { /** IngestConversationsMetadata partialErrors. */ public partialErrors: google.rpc.IStatus[]; + /** IngestConversationsMetadata ingestConversationsStats. */ + public ingestConversationsStats?: (google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats|null); + /** * Creates a new IngestConversationsMetadata instance using the specified properties. * @param [properties] Properties to set @@ -2575,6 +2581,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace IngestConversationsMetadata { + + /** Properties of an IngestConversationsStats. */ + interface IIngestConversationsStats { + + /** IngestConversationsStats processedObjectCount */ + processedObjectCount?: (number|null); + + /** IngestConversationsStats duplicatesSkippedCount */ + duplicatesSkippedCount?: (number|null); + + /** IngestConversationsStats successfulIngestCount */ + successfulIngestCount?: (number|null); + + /** IngestConversationsStats failedIngestCount */ + failedIngestCount?: (number|null); + } + + /** Represents an IngestConversationsStats. */ + class IngestConversationsStats implements IIngestConversationsStats { + + /** + * Constructs a new IngestConversationsStats. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats); + + /** IngestConversationsStats processedObjectCount. */ + public processedObjectCount: number; + + /** IngestConversationsStats duplicatesSkippedCount. */ + public duplicatesSkippedCount: number; + + /** IngestConversationsStats successfulIngestCount. */ + public successfulIngestCount: number; + + /** IngestConversationsStats failedIngestCount. */ + public failedIngestCount: number; + + /** + * Creates a new IngestConversationsStats instance using the specified properties. + * @param [properties] Properties to set + * @returns IngestConversationsStats instance + */ + public static create(properties?: google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats): google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats; + + /** + * Encodes the specified IngestConversationsStats message. Does not implicitly {@link google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats.verify|verify} messages. + * @param message IngestConversationsStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IngestConversationsStats message, length delimited. Does not implicitly {@link google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats.verify|verify} messages. + * @param message IngestConversationsStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IngestConversationsStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IngestConversationsStats + * @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.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats; + + /** + * Decodes an IngestConversationsStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IngestConversationsStats + * @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.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats; + + /** + * Verifies an IngestConversationsStats 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 an IngestConversationsStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IngestConversationsStats + */ + public static fromObject(object: { [k: string]: any }): google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats; + + /** + * Creates a plain object from an IngestConversationsStats message. Also converts values to other types if specified. + * @param message IngestConversationsStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IngestConversationsStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IngestConversationsStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of an IngestConversationsResponse. */ interface IIngestConversationsResponse { } @@ -10678,6 +10802,9 @@ export namespace google { /** IssueModel updateTime */ updateTime?: (google.protobuf.ITimestamp|null); + /** IssueModel issueCount */ + issueCount?: (number|Long|string|null); + /** IssueModel state */ state?: (google.cloud.contactcenterinsights.v1.IssueModel.State|keyof typeof google.cloud.contactcenterinsights.v1.IssueModel.State|null); @@ -10709,6 +10836,9 @@ export namespace google { /** IssueModel updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); + /** IssueModel issueCount. */ + public issueCount: (number|Long|string); + /** IssueModel state. */ public state: (google.cloud.contactcenterinsights.v1.IssueModel.State|keyof typeof google.cloud.contactcenterinsights.v1.IssueModel.State); diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.js b/packages/google-cloud-contactcenterinsights/protos/protos.js index 0ef53c158165..635c9d964354 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.js +++ b/packages/google-cloud-contactcenterinsights/protos/protos.js @@ -5364,6 +5364,7 @@ * @property {google.protobuf.ITimestamp|null} [endTime] IngestConversationsMetadata endTime * @property {google.cloud.contactcenterinsights.v1.IIngestConversationsRequest|null} [request] IngestConversationsMetadata request * @property {Array.|null} [partialErrors] IngestConversationsMetadata partialErrors + * @property {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats|null} [ingestConversationsStats] IngestConversationsMetadata ingestConversationsStats */ /** @@ -5414,6 +5415,14 @@ */ IngestConversationsMetadata.prototype.partialErrors = $util.emptyArray; + /** + * IngestConversationsMetadata ingestConversationsStats. + * @member {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats|null|undefined} ingestConversationsStats + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + * @instance + */ + IngestConversationsMetadata.prototype.ingestConversationsStats = null; + /** * Creates a new IngestConversationsMetadata instance using the specified properties. * @function create @@ -5447,6 +5456,8 @@ if (message.partialErrors != null && message.partialErrors.length) for (var i = 0; i < message.partialErrors.length; ++i) $root.google.rpc.Status.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.ingestConversationsStats != null && Object.hasOwnProperty.call(message, "ingestConversationsStats")) + $root.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats.encode(message.ingestConversationsStats, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -5499,6 +5510,10 @@ message.partialErrors.push($root.google.rpc.Status.decode(reader, reader.uint32())); break; } + case 5: { + message.ingestConversationsStats = $root.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -5558,6 +5573,11 @@ return "partialErrors." + error; } } + if (message.ingestConversationsStats != null && message.hasOwnProperty("ingestConversationsStats")) { + var error = $root.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats.verify(message.ingestConversationsStats); + if (error) + return "ingestConversationsStats." + error; + } return null; }; @@ -5598,6 +5618,11 @@ message.partialErrors[i] = $root.google.rpc.Status.fromObject(object.partialErrors[i]); } } + if (object.ingestConversationsStats != null) { + if (typeof object.ingestConversationsStats !== "object") + throw TypeError(".google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.ingestConversationsStats: object expected"); + message.ingestConversationsStats = $root.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats.fromObject(object.ingestConversationsStats); + } return message; }; @@ -5620,6 +5645,7 @@ object.createTime = null; object.endTime = null; object.request = null; + object.ingestConversationsStats = null; } if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); @@ -5632,6 +5658,8 @@ for (var j = 0; j < message.partialErrors.length; ++j) object.partialErrors[j] = $root.google.rpc.Status.toObject(message.partialErrors[j], options); } + if (message.ingestConversationsStats != null && message.hasOwnProperty("ingestConversationsStats")) + object.ingestConversationsStats = $root.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats.toObject(message.ingestConversationsStats, options); return object; }; @@ -5661,6 +5689,279 @@ return typeUrlPrefix + "/google.cloud.contactcenterinsights.v1.IngestConversationsMetadata"; }; + IngestConversationsMetadata.IngestConversationsStats = (function() { + + /** + * Properties of an IngestConversationsStats. + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + * @interface IIngestConversationsStats + * @property {number|null} [processedObjectCount] IngestConversationsStats processedObjectCount + * @property {number|null} [duplicatesSkippedCount] IngestConversationsStats duplicatesSkippedCount + * @property {number|null} [successfulIngestCount] IngestConversationsStats successfulIngestCount + * @property {number|null} [failedIngestCount] IngestConversationsStats failedIngestCount + */ + + /** + * Constructs a new IngestConversationsStats. + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + * @classdesc Represents an IngestConversationsStats. + * @implements IIngestConversationsStats + * @constructor + * @param {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats=} [properties] Properties to set + */ + function IngestConversationsStats(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]]; + } + + /** + * IngestConversationsStats processedObjectCount. + * @member {number} processedObjectCount + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @instance + */ + IngestConversationsStats.prototype.processedObjectCount = 0; + + /** + * IngestConversationsStats duplicatesSkippedCount. + * @member {number} duplicatesSkippedCount + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @instance + */ + IngestConversationsStats.prototype.duplicatesSkippedCount = 0; + + /** + * IngestConversationsStats successfulIngestCount. + * @member {number} successfulIngestCount + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @instance + */ + IngestConversationsStats.prototype.successfulIngestCount = 0; + + /** + * IngestConversationsStats failedIngestCount. + * @member {number} failedIngestCount + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @instance + */ + IngestConversationsStats.prototype.failedIngestCount = 0; + + /** + * Creates a new IngestConversationsStats instance using the specified properties. + * @function create + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @static + * @param {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats=} [properties] Properties to set + * @returns {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats} IngestConversationsStats instance + */ + IngestConversationsStats.create = function create(properties) { + return new IngestConversationsStats(properties); + }; + + /** + * Encodes the specified IngestConversationsStats message. Does not implicitly {@link google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @static + * @param {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats} message IngestConversationsStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IngestConversationsStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.processedObjectCount != null && Object.hasOwnProperty.call(message, "processedObjectCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.processedObjectCount); + if (message.duplicatesSkippedCount != null && Object.hasOwnProperty.call(message, "duplicatesSkippedCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.duplicatesSkippedCount); + if (message.successfulIngestCount != null && Object.hasOwnProperty.call(message, "successfulIngestCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.successfulIngestCount); + if (message.failedIngestCount != null && Object.hasOwnProperty.call(message, "failedIngestCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failedIngestCount); + return writer; + }; + + /** + * Encodes the specified IngestConversationsStats message, length delimited. Does not implicitly {@link google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @static + * @param {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IIngestConversationsStats} message IngestConversationsStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IngestConversationsStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IngestConversationsStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats} IngestConversationsStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IngestConversationsStats.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.processedObjectCount = reader.int32(); + break; + } + case 2: { + message.duplicatesSkippedCount = reader.int32(); + break; + } + case 3: { + message.successfulIngestCount = reader.int32(); + break; + } + case 4: { + message.failedIngestCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IngestConversationsStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats} IngestConversationsStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IngestConversationsStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IngestConversationsStats message. + * @function verify + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IngestConversationsStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.processedObjectCount != null && message.hasOwnProperty("processedObjectCount")) + if (!$util.isInteger(message.processedObjectCount)) + return "processedObjectCount: integer expected"; + if (message.duplicatesSkippedCount != null && message.hasOwnProperty("duplicatesSkippedCount")) + if (!$util.isInteger(message.duplicatesSkippedCount)) + return "duplicatesSkippedCount: integer expected"; + if (message.successfulIngestCount != null && message.hasOwnProperty("successfulIngestCount")) + if (!$util.isInteger(message.successfulIngestCount)) + return "successfulIngestCount: integer expected"; + if (message.failedIngestCount != null && message.hasOwnProperty("failedIngestCount")) + if (!$util.isInteger(message.failedIngestCount)) + return "failedIngestCount: integer expected"; + return null; + }; + + /** + * Creates an IngestConversationsStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats} IngestConversationsStats + */ + IngestConversationsStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats) + return object; + var message = new $root.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats(); + if (object.processedObjectCount != null) + message.processedObjectCount = object.processedObjectCount | 0; + if (object.duplicatesSkippedCount != null) + message.duplicatesSkippedCount = object.duplicatesSkippedCount | 0; + if (object.successfulIngestCount != null) + message.successfulIngestCount = object.successfulIngestCount | 0; + if (object.failedIngestCount != null) + message.failedIngestCount = object.failedIngestCount | 0; + return message; + }; + + /** + * Creates a plain object from an IngestConversationsStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @static + * @param {google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats} message IngestConversationsStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IngestConversationsStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.processedObjectCount = 0; + object.duplicatesSkippedCount = 0; + object.successfulIngestCount = 0; + object.failedIngestCount = 0; + } + if (message.processedObjectCount != null && message.hasOwnProperty("processedObjectCount")) + object.processedObjectCount = message.processedObjectCount; + if (message.duplicatesSkippedCount != null && message.hasOwnProperty("duplicatesSkippedCount")) + object.duplicatesSkippedCount = message.duplicatesSkippedCount; + if (message.successfulIngestCount != null && message.hasOwnProperty("successfulIngestCount")) + object.successfulIngestCount = message.successfulIngestCount; + if (message.failedIngestCount != null && message.hasOwnProperty("failedIngestCount")) + object.failedIngestCount = message.failedIngestCount; + return object; + }; + + /** + * Converts this IngestConversationsStats to JSON. + * @function toJSON + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @instance + * @returns {Object.} JSON object + */ + IngestConversationsStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IngestConversationsStats + * @function getTypeUrl + * @memberof google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IngestConversationsStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats"; + }; + + return IngestConversationsStats; + })(); + return IngestConversationsMetadata; })(); @@ -24840,6 +25141,7 @@ * @property {string|null} [displayName] IssueModel displayName * @property {google.protobuf.ITimestamp|null} [createTime] IssueModel createTime * @property {google.protobuf.ITimestamp|null} [updateTime] IssueModel updateTime + * @property {number|Long|null} [issueCount] IssueModel issueCount * @property {google.cloud.contactcenterinsights.v1.IssueModel.State|null} [state] IssueModel state * @property {google.cloud.contactcenterinsights.v1.IssueModel.IInputDataConfig|null} [inputDataConfig] IssueModel inputDataConfig * @property {google.cloud.contactcenterinsights.v1.IIssueModelLabelStats|null} [trainingStats] IssueModel trainingStats @@ -24892,6 +25194,14 @@ */ IssueModel.prototype.updateTime = null; + /** + * IssueModel issueCount. + * @member {number|Long} issueCount + * @memberof google.cloud.contactcenterinsights.v1.IssueModel + * @instance + */ + IssueModel.prototype.issueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * IssueModel state. * @member {google.cloud.contactcenterinsights.v1.IssueModel.State} state @@ -24954,6 +25264,8 @@ $root.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) $root.google.cloud.contactcenterinsights.v1.IssueModelLabelStats.encode(message.trainingStats, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.issueCount != null && Object.hasOwnProperty.call(message, "issueCount")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.issueCount); return writer; }; @@ -25004,6 +25316,10 @@ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 8: { + message.issueCount = reader.int64(); + break; + } case 5: { message.state = reader.int32(); break; @@ -25067,6 +25383,9 @@ if (error) return "updateTime." + error; } + if (message.issueCount != null && message.hasOwnProperty("issueCount")) + if (!$util.isInteger(message.issueCount) && !(message.issueCount && $util.isInteger(message.issueCount.low) && $util.isInteger(message.issueCount.high))) + return "issueCount: integer|Long expected"; if (message.state != null && message.hasOwnProperty("state")) switch (message.state) { default: @@ -25118,6 +25437,15 @@ throw TypeError(".google.cloud.contactcenterinsights.v1.IssueModel.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } + if (object.issueCount != null) + if ($util.Long) + (message.issueCount = $util.Long.fromValue(object.issueCount)).unsigned = false; + else if (typeof object.issueCount === "string") + message.issueCount = parseInt(object.issueCount, 10); + else if (typeof object.issueCount === "number") + message.issueCount = object.issueCount; + else if (typeof object.issueCount === "object") + message.issueCount = new $util.LongBits(object.issueCount.low >>> 0, object.issueCount.high >>> 0).toNumber(); switch (object.state) { default: if (typeof object.state === "number") { @@ -25184,6 +25512,11 @@ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; object.inputDataConfig = null; object.trainingStats = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.issueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.issueCount = options.longs === String ? "0" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -25199,6 +25532,11 @@ object.inputDataConfig = $root.google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.toObject(message.inputDataConfig, options); if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) object.trainingStats = $root.google.cloud.contactcenterinsights.v1.IssueModelLabelStats.toObject(message.trainingStats, options); + if (message.issueCount != null && message.hasOwnProperty("issueCount")) + if (typeof message.issueCount === "number") + object.issueCount = options.longs === String ? String(message.issueCount) : message.issueCount; + else + object.issueCount = options.longs === String ? $util.Long.prototype.toString.call(message.issueCount) : options.longs === Number ? new $util.LongBits(message.issueCount.low >>> 0, message.issueCount.high >>> 0).toNumber() : message.issueCount; return object; }; diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.json b/packages/google-cloud-contactcenterinsights/protos/protos.json index 56af16f7cc2a..d7cc1d18d168 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.json +++ b/packages/google-cloud-contactcenterinsights/protos/protos.json @@ -1126,6 +1126,47 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "ingestConversationsStats": { + "type": "IngestConversationsStats", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "IngestConversationsStats": { + "fields": { + "processedObjectCount": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "duplicatesSkippedCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "successfulIngestCount": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "failedIngestCount": { + "type": "int32", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } } } }, @@ -2545,6 +2586,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "issueCount": { + "type": "int64", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "state": { "type": "State", "id": 5, diff --git a/packages/google-cloud-contactcenterinsights/samples/generated/v1/contact_center_insights.create_phrase_matcher.js b/packages/google-cloud-contactcenterinsights/samples/generated/v1/contact_center_insights.create_phrase_matcher.js index d6bfd0937289..f61dc268053b 100644 --- a/packages/google-cloud-contactcenterinsights/samples/generated/v1/contact_center_insights.create_phrase_matcher.js +++ b/packages/google-cloud-contactcenterinsights/samples/generated/v1/contact_center_insights.create_phrase_matcher.js @@ -29,10 +29,10 @@ function main(parent, phraseMatcher) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The parent resource of the phrase matcher. Required. The location to create - * a phrase matcher for. - * Format: `projects//locations/` or - * `projects//locations/` + * Required. The parent resource of the phrase matcher. Required. The location + * to create a phrase matcher for. Format: `projects//locations/` or `projects//locations/` */ // const parent = 'abc123' /** diff --git a/packages/google-cloud-contactcenterinsights/src/v1/contact_center_insights_client.ts b/packages/google-cloud-contactcenterinsights/src/v1/contact_center_insights_client.ts index 2f3ecf01fe18..b0af5f839256 100644 --- a/packages/google-cloud-contactcenterinsights/src/v1/contact_center_insights_client.ts +++ b/packages/google-cloud-contactcenterinsights/src/v1/contact_center_insights_client.ts @@ -1915,10 +1915,10 @@ export class ContactCenterInsightsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent resource of the phrase matcher. Required. The location to create - * a phrase matcher for. - * Format: `projects//locations/` or - * `projects//locations/` + * Required. The parent resource of the phrase matcher. Required. The location + * to create a phrase matcher for. Format: `projects//locations/` or `projects//locations/` * @param {google.cloud.contactcenterinsights.v1.PhraseMatcher} request.phraseMatcher * Required. The phrase matcher resource to create. * @param {object} [options] From 6373e3354dffb8712490c3a29a1debf6eb5ad7e0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 17:12:19 -0800 Subject: [PATCH 28/38] chore(gitignore): [Many APIs] only ignore folders in the top level (#3958) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFuYWx5dGljcy1hZG1pbi8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFuYWx5dGljcy1kYXRhLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1hcGlrZXlzLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1zZXJ2aWNlY29udHJvbC8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1zZXJ2aWNlbWFuYWdlbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwaS1zZXJ2aWNldXNhZ2UvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwcGVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFyZWExMjAtdGFibGVzLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFjY2Vzc2FwcHJvdmFsLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFwaWdhdGV3YXkvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFwaWdlZWNvbm5lY3QvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc2V0Ly5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFzc3VyZWR3b3JrbG9hZHMvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhcmVtZXRhbHNvbHV0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdG9ycy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwZ2F0ZXdheXMvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtY2xpZW50Y29ubmVjdG9yc2VydmljZXMvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtY2xpZW50Z2F0ZXdheXMvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWFuYWx5dGljc2h1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- packages/google-analytics-admin/.gitignore | 12 ++++++------ packages/google-analytics-data/.gitignore | 12 ++++++------ packages/google-api-apikeys/.gitignore | 12 ++++++------ packages/google-api-servicecontrol/.gitignore | 12 ++++++------ packages/google-api-servicemanagement/.gitignore | 12 ++++++------ packages/google-api-serviceusage/.gitignore | 12 ++++++------ packages/google-appengine/.gitignore | 12 ++++++------ packages/google-area120-tables/.gitignore | 12 ++++++------ packages/google-cloud-accessapproval/.gitignore | 12 ++++++------ packages/google-cloud-apigateway/.gitignore | 12 ++++++------ packages/google-cloud-apigeeconnect/.gitignore | 12 ++++++------ packages/google-cloud-asset/.gitignore | 12 ++++++------ packages/google-cloud-assuredworkloads/.gitignore | 12 ++++++------ packages/google-cloud-baremetalsolution/.gitignore | 12 ++++++------ .../.gitignore | 12 ++++++------ .../google-cloud-beyondcorp-appconnectors/.gitignore | 12 ++++++------ .../google-cloud-beyondcorp-appgateways/.gitignore | 12 ++++++------ .../.gitignore | 12 ++++++------ .../.gitignore | 12 ++++++------ .../google-cloud-bigquery-analyticshub/.gitignore | 12 ++++++------ 20 files changed, 120 insertions(+), 120 deletions(-) diff --git a/packages/google-analytics-admin/.gitignore b/packages/google-analytics-admin/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-analytics-admin/.gitignore +++ b/packages/google-analytics-admin/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-analytics-data/.gitignore b/packages/google-analytics-data/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-analytics-data/.gitignore +++ b/packages/google-analytics-data/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-api-apikeys/.gitignore b/packages/google-api-apikeys/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-api-apikeys/.gitignore +++ b/packages/google-api-apikeys/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-api-servicecontrol/.gitignore b/packages/google-api-servicecontrol/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-api-servicecontrol/.gitignore +++ b/packages/google-api-servicecontrol/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-api-servicemanagement/.gitignore b/packages/google-api-servicemanagement/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-api-servicemanagement/.gitignore +++ b/packages/google-api-servicemanagement/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-api-serviceusage/.gitignore b/packages/google-api-serviceusage/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-api-serviceusage/.gitignore +++ b/packages/google-api-serviceusage/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-appengine/.gitignore b/packages/google-appengine/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-appengine/.gitignore +++ b/packages/google-appengine/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-area120-tables/.gitignore b/packages/google-area120-tables/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-area120-tables/.gitignore +++ b/packages/google-area120-tables/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-accessapproval/.gitignore b/packages/google-cloud-accessapproval/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-accessapproval/.gitignore +++ b/packages/google-cloud-accessapproval/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-apigateway/.gitignore b/packages/google-cloud-apigateway/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-apigateway/.gitignore +++ b/packages/google-cloud-apigateway/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-apigeeconnect/.gitignore b/packages/google-cloud-apigeeconnect/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-apigeeconnect/.gitignore +++ b/packages/google-cloud-apigeeconnect/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-asset/.gitignore b/packages/google-cloud-asset/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-asset/.gitignore +++ b/packages/google-cloud-asset/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-assuredworkloads/.gitignore b/packages/google-cloud-assuredworkloads/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-assuredworkloads/.gitignore +++ b/packages/google-cloud-assuredworkloads/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-baremetalsolution/.gitignore b/packages/google-cloud-baremetalsolution/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-baremetalsolution/.gitignore +++ b/packages/google-cloud-baremetalsolution/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-beyondcorp-appconnections/.gitignore b/packages/google-cloud-beyondcorp-appconnections/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-beyondcorp-appconnections/.gitignore +++ b/packages/google-cloud-beyondcorp-appconnections/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-beyondcorp-appconnectors/.gitignore b/packages/google-cloud-beyondcorp-appconnectors/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-beyondcorp-appconnectors/.gitignore +++ b/packages/google-cloud-beyondcorp-appconnectors/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-beyondcorp-appgateways/.gitignore b/packages/google-cloud-beyondcorp-appgateways/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-beyondcorp-appgateways/.gitignore +++ b/packages/google-cloud-beyondcorp-appgateways/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/.gitignore b/packages/google-cloud-beyondcorp-clientconnectorservices/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/.gitignore +++ b/packages/google-cloud-beyondcorp-clientconnectorservices/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-beyondcorp-clientgateways/.gitignore b/packages/google-cloud-beyondcorp-clientgateways/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-beyondcorp-clientgateways/.gitignore +++ b/packages/google-cloud-beyondcorp-clientgateways/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-bigquery-analyticshub/.gitignore b/packages/google-cloud-bigquery-analyticshub/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-bigquery-analyticshub/.gitignore +++ b/packages/google-cloud-bigquery-analyticshub/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock From 6b2939ecfa6c58a8a0ef44367fe64db84b6b1311 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 17:12:54 -0800 Subject: [PATCH 29/38] chore(gitignore): [Many APIs] only ignore folders in the top level (#3959) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWRhdGFleGNoYW5nZS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWRhdGFwb2xpY2llcy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWRhdGF0cmFuc2Zlci8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LXJlc2VydmF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbGxpbmctYnVkZ2V0cy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbGxpbmcvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbmFyeWF1dGhvcml6YXRpb24vLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNlcnRpZmljYXRlbWFuYWdlci8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNoYW5uZWwvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNsb3VkZG1zLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRlbnR3YXJlaG91c2UvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFjYXRhbG9nLWxpbmVhZ2UvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFjYXRhbG9nLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFmdXNpb24vLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFsYWJlbGluZy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwbGV4Ly5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwcm9jLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFxbmEvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFzdHJlYW0vLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google-cloud-bigquery-dataexchange/.gitignore | 12 ++++++------ .../google-cloud-bigquery-datapolicies/.gitignore | 12 ++++++------ .../google-cloud-bigquery-datatransfer/.gitignore | 12 ++++++------ .../google-cloud-bigquery-reservation/.gitignore | 12 ++++++------ packages/google-cloud-billing-budgets/.gitignore | 12 ++++++------ packages/google-cloud-billing/.gitignore | 12 ++++++------ packages/google-cloud-binaryauthorization/.gitignore | 12 ++++++------ packages/google-cloud-certificatemanager/.gitignore | 12 ++++++------ packages/google-cloud-channel/.gitignore | 12 ++++++------ packages/google-cloud-clouddms/.gitignore | 12 ++++++------ packages/google-cloud-compute/.gitignore | 12 ++++++------ packages/google-cloud-contentwarehouse/.gitignore | 12 ++++++------ packages/google-cloud-datacatalog-lineage/.gitignore | 12 ++++++------ packages/google-cloud-datacatalog/.gitignore | 12 ++++++------ packages/google-cloud-datafusion/.gitignore | 12 ++++++------ packages/google-cloud-datalabeling/.gitignore | 12 ++++++------ packages/google-cloud-dataplex/.gitignore | 12 ++++++------ packages/google-cloud-dataproc/.gitignore | 12 ++++++------ packages/google-cloud-dataqna/.gitignore | 12 ++++++------ packages/google-cloud-datastream/.gitignore | 12 ++++++------ 20 files changed, 120 insertions(+), 120 deletions(-) diff --git a/packages/google-cloud-bigquery-dataexchange/.gitignore b/packages/google-cloud-bigquery-dataexchange/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-bigquery-dataexchange/.gitignore +++ b/packages/google-cloud-bigquery-dataexchange/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-bigquery-datapolicies/.gitignore b/packages/google-cloud-bigquery-datapolicies/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-bigquery-datapolicies/.gitignore +++ b/packages/google-cloud-bigquery-datapolicies/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-bigquery-datatransfer/.gitignore b/packages/google-cloud-bigquery-datatransfer/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-bigquery-datatransfer/.gitignore +++ b/packages/google-cloud-bigquery-datatransfer/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-bigquery-reservation/.gitignore b/packages/google-cloud-bigquery-reservation/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-bigquery-reservation/.gitignore +++ b/packages/google-cloud-bigquery-reservation/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-billing-budgets/.gitignore b/packages/google-cloud-billing-budgets/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-billing-budgets/.gitignore +++ b/packages/google-cloud-billing-budgets/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-billing/.gitignore b/packages/google-cloud-billing/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-billing/.gitignore +++ b/packages/google-cloud-billing/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-binaryauthorization/.gitignore b/packages/google-cloud-binaryauthorization/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-binaryauthorization/.gitignore +++ b/packages/google-cloud-binaryauthorization/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-certificatemanager/.gitignore b/packages/google-cloud-certificatemanager/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-certificatemanager/.gitignore +++ b/packages/google-cloud-certificatemanager/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-channel/.gitignore b/packages/google-cloud-channel/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-channel/.gitignore +++ b/packages/google-cloud-channel/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-clouddms/.gitignore b/packages/google-cloud-clouddms/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-clouddms/.gitignore +++ b/packages/google-cloud-clouddms/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-compute/.gitignore b/packages/google-cloud-compute/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-compute/.gitignore +++ b/packages/google-cloud-compute/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-contentwarehouse/.gitignore b/packages/google-cloud-contentwarehouse/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-contentwarehouse/.gitignore +++ b/packages/google-cloud-contentwarehouse/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-datacatalog-lineage/.gitignore b/packages/google-cloud-datacatalog-lineage/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-datacatalog-lineage/.gitignore +++ b/packages/google-cloud-datacatalog-lineage/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-datacatalog/.gitignore b/packages/google-cloud-datacatalog/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-datacatalog/.gitignore +++ b/packages/google-cloud-datacatalog/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-datafusion/.gitignore b/packages/google-cloud-datafusion/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-datafusion/.gitignore +++ b/packages/google-cloud-datafusion/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-datalabeling/.gitignore b/packages/google-cloud-datalabeling/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-datalabeling/.gitignore +++ b/packages/google-cloud-datalabeling/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-dataplex/.gitignore b/packages/google-cloud-dataplex/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-dataplex/.gitignore +++ b/packages/google-cloud-dataplex/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-dataproc/.gitignore b/packages/google-cloud-dataproc/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-dataproc/.gitignore +++ b/packages/google-cloud-dataproc/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-dataqna/.gitignore b/packages/google-cloud-dataqna/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-dataqna/.gitignore +++ b/packages/google-cloud-dataqna/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-datastream/.gitignore b/packages/google-cloud-datastream/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-datastream/.gitignore +++ b/packages/google-cloud-datastream/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock From 32128f4fe8a5533f1d67b91d43629229012dbab8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 17:14:06 -0800 Subject: [PATCH 30/38] chore(gitignore): [Many APIs] only ignore folders in the top level (#3960) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRlcGxveS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpc2NvdmVyeWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvbWFpbnMvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVzc2VudGlhbGNvbnRhY3RzLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLXB1Ymxpc2hpbmcvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWZpbGVzdG9yZS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWZ1bmN0aW9ucy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdhbWluZy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZWJhY2t1cC8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZWNvbm5lY3QtZ2F0ZXdheS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZWh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZW11bHRpY2xvdWQvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlhcC8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlkcy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlvdC8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWttcy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWxhbmd1YWdlLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-deploy/.gitignore | 12 ++++++------ packages/google-cloud-dialogflow-cx/.gitignore | 12 ++++++------ packages/google-cloud-dialogflow/.gitignore | 12 ++++++------ packages/google-cloud-discoveryengine/.gitignore | 12 ++++++------ packages/google-cloud-domains/.gitignore | 12 ++++++------ packages/google-cloud-essentialcontacts/.gitignore | 12 ++++++------ packages/google-cloud-eventarc-publishing/.gitignore | 12 ++++++------ packages/google-cloud-eventarc/.gitignore | 12 ++++++------ packages/google-cloud-filestore/.gitignore | 12 ++++++------ packages/google-cloud-functions/.gitignore | 12 ++++++------ packages/google-cloud-gaming/.gitignore | 12 ++++++------ packages/google-cloud-gkebackup/.gitignore | 12 ++++++------ packages/google-cloud-gkeconnect-gateway/.gitignore | 12 ++++++------ packages/google-cloud-gkehub/.gitignore | 12 ++++++------ packages/google-cloud-gkemulticloud/.gitignore | 12 ++++++------ packages/google-cloud-iap/.gitignore | 12 ++++++------ packages/google-cloud-ids/.gitignore | 12 ++++++------ packages/google-cloud-iot/.gitignore | 12 ++++++------ packages/google-cloud-kms/.gitignore | 12 ++++++------ packages/google-cloud-language/.gitignore | 12 ++++++------ 20 files changed, 120 insertions(+), 120 deletions(-) diff --git a/packages/google-cloud-deploy/.gitignore b/packages/google-cloud-deploy/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-deploy/.gitignore +++ b/packages/google-cloud-deploy/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-dialogflow-cx/.gitignore b/packages/google-cloud-dialogflow-cx/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-dialogflow-cx/.gitignore +++ b/packages/google-cloud-dialogflow-cx/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-dialogflow/.gitignore b/packages/google-cloud-dialogflow/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-dialogflow/.gitignore +++ b/packages/google-cloud-dialogflow/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-discoveryengine/.gitignore b/packages/google-cloud-discoveryengine/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-discoveryengine/.gitignore +++ b/packages/google-cloud-discoveryengine/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-domains/.gitignore b/packages/google-cloud-domains/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-domains/.gitignore +++ b/packages/google-cloud-domains/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-essentialcontacts/.gitignore b/packages/google-cloud-essentialcontacts/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-essentialcontacts/.gitignore +++ b/packages/google-cloud-essentialcontacts/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-eventarc-publishing/.gitignore b/packages/google-cloud-eventarc-publishing/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-eventarc-publishing/.gitignore +++ b/packages/google-cloud-eventarc-publishing/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-eventarc/.gitignore b/packages/google-cloud-eventarc/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-eventarc/.gitignore +++ b/packages/google-cloud-eventarc/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-filestore/.gitignore b/packages/google-cloud-filestore/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-filestore/.gitignore +++ b/packages/google-cloud-filestore/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-functions/.gitignore b/packages/google-cloud-functions/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-functions/.gitignore +++ b/packages/google-cloud-functions/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-gaming/.gitignore b/packages/google-cloud-gaming/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-gaming/.gitignore +++ b/packages/google-cloud-gaming/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-gkebackup/.gitignore b/packages/google-cloud-gkebackup/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-gkebackup/.gitignore +++ b/packages/google-cloud-gkebackup/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-gkeconnect-gateway/.gitignore b/packages/google-cloud-gkeconnect-gateway/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-gkeconnect-gateway/.gitignore +++ b/packages/google-cloud-gkeconnect-gateway/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-gkehub/.gitignore b/packages/google-cloud-gkehub/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-gkehub/.gitignore +++ b/packages/google-cloud-gkehub/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-gkemulticloud/.gitignore b/packages/google-cloud-gkemulticloud/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-gkemulticloud/.gitignore +++ b/packages/google-cloud-gkemulticloud/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-iap/.gitignore b/packages/google-cloud-iap/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-iap/.gitignore +++ b/packages/google-cloud-iap/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-ids/.gitignore b/packages/google-cloud-ids/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-ids/.gitignore +++ b/packages/google-cloud-ids/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-iot/.gitignore b/packages/google-cloud-iot/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-iot/.gitignore +++ b/packages/google-cloud-iot/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-kms/.gitignore b/packages/google-cloud-kms/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-kms/.gitignore +++ b/packages/google-cloud-kms/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-language/.gitignore b/packages/google-cloud-language/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-language/.gitignore +++ b/packages/google-cloud-language/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock From 403f3a99e7ca9b40206d2287175cbd5118e178c4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 17:32:34 -0800 Subject: [PATCH 31/38] chore(gitignore): [Many APIs] only ignore folders in the top level (#3961) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWxpZmVzY2llbmNlcy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1hbmFnZWRpZGVudGl0aWVzLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lZGlhdHJhbnNsYXRpb24vLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lbWNhY2hlLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1ldGFzdG9yZS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmtjb25uZWN0aXZpdHkvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmttYW5hZ2VtZW50Ly5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmtzZWN1cml0eS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5vdGVib29rcy8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9wdGltaXphdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9yY2hlc3RyYXRpb24tYWlyZmxvdy1zZXJ2aWNlLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9yZ3BvbGljeS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9zY29uZmlnLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9zbG9naW4vLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBoaXNoaW5ncHJvdGVjdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBvbGljeXRyb3VibGVzaG9vdGVyLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXByaXZhdGVjYXRhbG9nLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYWVudGVycHJpc2UvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY29tbWVuZGVyLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlZGlzLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-lifesciences/.gitignore | 12 ++++++------ packages/google-cloud-managedidentities/.gitignore | 12 ++++++------ packages/google-cloud-mediatranslation/.gitignore | 12 ++++++------ packages/google-cloud-memcache/.gitignore | 12 ++++++------ packages/google-cloud-metastore/.gitignore | 12 ++++++------ packages/google-cloud-networkconnectivity/.gitignore | 12 ++++++------ packages/google-cloud-networkmanagement/.gitignore | 12 ++++++------ packages/google-cloud-networksecurity/.gitignore | 12 ++++++------ packages/google-cloud-notebooks/.gitignore | 12 ++++++------ packages/google-cloud-optimization/.gitignore | 12 ++++++------ .../.gitignore | 12 ++++++------ packages/google-cloud-orgpolicy/.gitignore | 12 ++++++------ packages/google-cloud-osconfig/.gitignore | 12 ++++++------ packages/google-cloud-oslogin/.gitignore | 12 ++++++------ packages/google-cloud-phishingprotection/.gitignore | 12 ++++++------ .../google-cloud-policytroubleshooter/.gitignore | 12 ++++++------ packages/google-cloud-privatecatalog/.gitignore | 12 ++++++------ packages/google-cloud-recaptchaenterprise/.gitignore | 12 ++++++------ packages/google-cloud-recommender/.gitignore | 12 ++++++------ packages/google-cloud-redis/.gitignore | 12 ++++++------ 20 files changed, 120 insertions(+), 120 deletions(-) diff --git a/packages/google-cloud-lifesciences/.gitignore b/packages/google-cloud-lifesciences/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-lifesciences/.gitignore +++ b/packages/google-cloud-lifesciences/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-managedidentities/.gitignore b/packages/google-cloud-managedidentities/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-managedidentities/.gitignore +++ b/packages/google-cloud-managedidentities/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-mediatranslation/.gitignore b/packages/google-cloud-mediatranslation/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-mediatranslation/.gitignore +++ b/packages/google-cloud-mediatranslation/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-memcache/.gitignore b/packages/google-cloud-memcache/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-memcache/.gitignore +++ b/packages/google-cloud-memcache/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-metastore/.gitignore b/packages/google-cloud-metastore/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-metastore/.gitignore +++ b/packages/google-cloud-metastore/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-networkconnectivity/.gitignore b/packages/google-cloud-networkconnectivity/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-networkconnectivity/.gitignore +++ b/packages/google-cloud-networkconnectivity/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-networkmanagement/.gitignore b/packages/google-cloud-networkmanagement/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-networkmanagement/.gitignore +++ b/packages/google-cloud-networkmanagement/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-networksecurity/.gitignore b/packages/google-cloud-networksecurity/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-networksecurity/.gitignore +++ b/packages/google-cloud-networksecurity/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-notebooks/.gitignore b/packages/google-cloud-notebooks/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-notebooks/.gitignore +++ b/packages/google-cloud-notebooks/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-optimization/.gitignore b/packages/google-cloud-optimization/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-optimization/.gitignore +++ b/packages/google-cloud-optimization/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-orchestration-airflow-service/.gitignore b/packages/google-cloud-orchestration-airflow-service/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-orchestration-airflow-service/.gitignore +++ b/packages/google-cloud-orchestration-airflow-service/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-orgpolicy/.gitignore b/packages/google-cloud-orgpolicy/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-orgpolicy/.gitignore +++ b/packages/google-cloud-orgpolicy/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-osconfig/.gitignore b/packages/google-cloud-osconfig/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-osconfig/.gitignore +++ b/packages/google-cloud-osconfig/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-oslogin/.gitignore b/packages/google-cloud-oslogin/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-oslogin/.gitignore +++ b/packages/google-cloud-oslogin/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-phishingprotection/.gitignore b/packages/google-cloud-phishingprotection/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-phishingprotection/.gitignore +++ b/packages/google-cloud-phishingprotection/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-policytroubleshooter/.gitignore b/packages/google-cloud-policytroubleshooter/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-policytroubleshooter/.gitignore +++ b/packages/google-cloud-policytroubleshooter/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-privatecatalog/.gitignore b/packages/google-cloud-privatecatalog/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-privatecatalog/.gitignore +++ b/packages/google-cloud-privatecatalog/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-recaptchaenterprise/.gitignore b/packages/google-cloud-recaptchaenterprise/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-recaptchaenterprise/.gitignore +++ b/packages/google-cloud-recaptchaenterprise/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-recommender/.gitignore b/packages/google-cloud-recommender/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-recommender/.gitignore +++ b/packages/google-cloud-recommender/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-redis/.gitignore b/packages/google-cloud-redis/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-redis/.gitignore +++ b/packages/google-cloud-redis/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock From 5e7f09b283d399e5c39f7be0959967f4cd3d6cbd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 17:37:18 -0800 Subject: [PATCH 32/38] chore(gitignore): [Many APIs] only ignore folders in the top level (#3962) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlc291cmNlbWFuYWdlci8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlc291cmNlc2V0dGluZ3MvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJldGFpbC8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJ1bi8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNjaGVkdWxlci8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3JldG1hbmFnZXIvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5LXByaXZhdGVjYS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5LXB1YmxpY2NhLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVyLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2VkaXJlY3RvcnkvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNoZWxsLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRhbGVudC8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRhc2tzLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRleHR0b3NwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRwdS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRyYW5zbGF0ZS8uT3dsQm90LnlhbWwiLCJoIjoiZGNmODgyMTU0ZTdjNzEwZWNmMmExYWJjNzdiMzVjOTVmOTA2MjM3MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvLWxpdmVzdHJlYW0vLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvLXN0aXRjaGVyLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvLXRyYW5zY29kZXIvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-resourcemanager/.gitignore | 12 ++++++------ packages/google-cloud-resourcesettings/.gitignore | 12 ++++++------ packages/google-cloud-retail/.gitignore | 12 ++++++------ packages/google-cloud-run/.gitignore | 12 ++++++------ packages/google-cloud-scheduler/.gitignore | 12 ++++++------ packages/google-cloud-secretmanager/.gitignore | 12 ++++++------ packages/google-cloud-security-privateca/.gitignore | 12 ++++++------ packages/google-cloud-security-publicca/.gitignore | 12 ++++++------ packages/google-cloud-securitycenter/.gitignore | 12 ++++++------ packages/google-cloud-servicedirectory/.gitignore | 12 ++++++------ packages/google-cloud-shell/.gitignore | 12 ++++++------ packages/google-cloud-speech/.gitignore | 12 ++++++------ packages/google-cloud-talent/.gitignore | 12 ++++++------ packages/google-cloud-tasks/.gitignore | 12 ++++++------ packages/google-cloud-texttospeech/.gitignore | 12 ++++++------ packages/google-cloud-tpu/.gitignore | 12 ++++++------ packages/google-cloud-translate/.gitignore | 12 ++++++------ packages/google-cloud-video-livestream/.gitignore | 12 ++++++------ packages/google-cloud-video-stitcher/.gitignore | 12 ++++++------ packages/google-cloud-video-transcoder/.gitignore | 12 ++++++------ 20 files changed, 120 insertions(+), 120 deletions(-) diff --git a/packages/google-cloud-resourcemanager/.gitignore b/packages/google-cloud-resourcemanager/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-resourcemanager/.gitignore +++ b/packages/google-cloud-resourcemanager/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-resourcesettings/.gitignore b/packages/google-cloud-resourcesettings/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-resourcesettings/.gitignore +++ b/packages/google-cloud-resourcesettings/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-retail/.gitignore b/packages/google-cloud-retail/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-retail/.gitignore +++ b/packages/google-cloud-retail/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-run/.gitignore b/packages/google-cloud-run/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-run/.gitignore +++ b/packages/google-cloud-run/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-scheduler/.gitignore b/packages/google-cloud-scheduler/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-scheduler/.gitignore +++ b/packages/google-cloud-scheduler/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-secretmanager/.gitignore b/packages/google-cloud-secretmanager/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-secretmanager/.gitignore +++ b/packages/google-cloud-secretmanager/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-security-privateca/.gitignore b/packages/google-cloud-security-privateca/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-security-privateca/.gitignore +++ b/packages/google-cloud-security-privateca/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-security-publicca/.gitignore b/packages/google-cloud-security-publicca/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-security-publicca/.gitignore +++ b/packages/google-cloud-security-publicca/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-securitycenter/.gitignore b/packages/google-cloud-securitycenter/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-securitycenter/.gitignore +++ b/packages/google-cloud-securitycenter/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-servicedirectory/.gitignore b/packages/google-cloud-servicedirectory/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-servicedirectory/.gitignore +++ b/packages/google-cloud-servicedirectory/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-shell/.gitignore b/packages/google-cloud-shell/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-shell/.gitignore +++ b/packages/google-cloud-shell/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-speech/.gitignore b/packages/google-cloud-speech/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-speech/.gitignore +++ b/packages/google-cloud-speech/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-talent/.gitignore b/packages/google-cloud-talent/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-talent/.gitignore +++ b/packages/google-cloud-talent/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-tasks/.gitignore b/packages/google-cloud-tasks/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-tasks/.gitignore +++ b/packages/google-cloud-tasks/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-texttospeech/.gitignore b/packages/google-cloud-texttospeech/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-texttospeech/.gitignore +++ b/packages/google-cloud-texttospeech/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-tpu/.gitignore b/packages/google-cloud-tpu/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-tpu/.gitignore +++ b/packages/google-cloud-tpu/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-translate/.gitignore b/packages/google-cloud-translate/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-translate/.gitignore +++ b/packages/google-cloud-translate/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-video-livestream/.gitignore b/packages/google-cloud-video-livestream/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-video-livestream/.gitignore +++ b/packages/google-cloud-video-livestream/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-video-stitcher/.gitignore b/packages/google-cloud-video-stitcher/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-video-stitcher/.gitignore +++ b/packages/google-cloud-video-stitcher/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-video-transcoder/.gitignore b/packages/google-cloud-video-transcoder/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-video-transcoder/.gitignore +++ b/packages/google-cloud-video-transcoder/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock From b12d7761c38c5c30b2e7cc8321ad7bf304cc002b Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:38:45 -0800 Subject: [PATCH 33/38] docs: update the list of available APIs (#3949) --- README.md | 1 + libraries.json | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/README.md b/README.md index c9421272083e..eea1e2d4e799 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ applications that interact with individual Google Cloud services: | [BeyondCorp API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-beyondcorp-clientgateways) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/clientgateways)](https://npm.im/@google-cloud/clientgateways) | | [BigQuery Migration API](https://github.com/googleapis/nodejs-bigquery-migration) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/bigquery-migration)](https://npm.im/@google-cloud/bigquery-migration) | | [Data Labeling](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datalabeling) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/datalabeling)](https://npm.im/@google-cloud/datalabeling) | +| [Data Lineage API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datacatalog-lineage) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/lineage)](https://npm.im/@google-cloud/lineage) | | [Data QnA](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-dataqna) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/data-qna)](https://npm.im/@google-cloud/data-qna) | | [Dataflow](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-dataflow) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/dataflow)](https://npm.im/@google-cloud/dataflow) | | [Dataform API](https://github.com/googleapis/nodejs-dataform) | [![Preview][preview-stability]][launch-stages] | [![npm](https://img.shields.io/npm/v/@google-cloud/dataform)](https://npm.im/@google-cloud/dataform) | diff --git a/libraries.json b/libraries.json index c4800535cabd..22a5cbb85d64 100644 --- a/libraries.json +++ b/libraries.json @@ -2369,6 +2369,22 @@ "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datalabeling", "support_documentation": "https://cloud.google.com/data-labeling/docs/getting-support" }, + { + "name": "lineage", + "name_pretty": "Data Lineage API", + "product_documentation": "", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/lineage/latest", + "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues", + "release_level": "beta", + "language": "nodejs", + "repo": "googleapis/google-cloud-node", + "distribution_name": "@google-cloud/lineage", + "api_id": "datalineage.googleapis.com", + "default_version": "v1", + "requires_billing": true, + "library_type": "GAPIC_AUTO", + "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-datacatalog-lineage" + }, { "language": "nodejs", "requires_billing": true, From f72de2714e5bb69ecd792397dac6d2acc66277e8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:56:34 -0800 Subject: [PATCH 34/38] feat: [batch] support custom scopes for service account in v1 (#3950) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: support custom scopes for service account in v1 --- feat: Add boot disk field in InstanceStatus --- feat: Add boot disk and image source fields to v1 InstancePolicy PiperOrigin-RevId: 507014714 Source-Link: https://github.com/googleapis/googleapis/commit/12b32ef4a7602f7f6700125007c50a05ab130196 Source-Link: https://github.com/googleapis/googleapis-gen/commit/547061f90bc7e6706395ae372e0f61010bb4949e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI1NDcwNjFmOTBiYzdlNjcwNjM5NWFlMzcyZTBmNjEwMTBiYjQ5NDllIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: support custom scopes for service account in v1 --- feat: Add boot disk field in InstanceStatus --- feat: Add boot disk and image source fields to v1 InstancePolicy PiperOrigin-RevId: 507014772 Source-Link: https://github.com/googleapis/googleapis/commit/9d6497f0f81f000562fc4fc5df8c4fcc8e09e864 Source-Link: https://github.com/googleapis/googleapis-gen/commit/13ef8a3b7efeb45866ebcea380dfd6a43ee5d486 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiIxM2VmOGEzYjdlZmViNDU4NjZlYmNlYTM4MGRmZDZhNDNlZTVkNDg2In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiJkY2Y4ODIxNTRlN2M3MTBlY2YyYTFhYmM3N2IzNWM5NWY5MDYyMzcxIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-batch/.gitignore | 12 +- .../protos/google/cloud/batch/v1/batch.proto | 2 - .../protos/google/cloud/batch/v1/job.proto | 36 +- .../google/cloud/batch/v1alpha/batch.proto | 2 - .../google/cloud/batch/v1alpha/job.proto | 28 +- .../google-cloud-batch/protos/protos.d.ts | 21300 ++--- packages/google-cloud-batch/protos/protos.js | 64750 ++++++++-------- .../google-cloud-batch/protos/protos.json | 2359 +- 8 files changed, 44349 insertions(+), 44140 deletions(-) diff --git a/packages/google-cloud-batch/.gitignore b/packages/google-cloud-batch/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-batch/.gitignore +++ b/packages/google-cloud-batch/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1/batch.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1/batch.proto index 9eb8770b8339..c6bad651548c 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1/batch.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1/batch.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.batch.v1; -import public "google/protobuf/empty.proto"; - import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto index c531b4979c55..d43f229dd6f1 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto @@ -123,6 +123,9 @@ message JobStatus { // The max number of tasks can be assigned to this instance type. int64 task_pack = 3; + + // The VM boot disk. + AllocationPolicy.Disk boot_disk = 4; } // Aggregated task status for a TaskGroup. @@ -243,20 +246,37 @@ message AllocationPolicy { // A data source from which a PD will be created. oneof data_source { // Name of a public or custom image used as the data source. + // For example, the following are all valid URLs: + // (1) Specify the image by its family name: + // projects/{project}/global/images/family/{image_family} + // (2) Specify the image version: + // projects/{project}/global/images/{image_version} + // You can also use Batch customized image in short names. + // The following image values are supported for a boot disk: + // "batch-debian": use Batch Debian images. + // "batch-centos": use Batch CentOS images. + // "batch-cos": use Batch Container-Optimized images. string image = 4; // Name of a snapshot used as the data source. string snapshot = 5; } - // Disk type as shown in `gcloud compute disk-types list` - // For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd". + // Disk type as shown in `gcloud compute disk-types list`. + // For example, local SSD uses type "local-ssd". + // Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" + // or "pd-standard". string type = 1; // Disk size in GB. - // This field is ignored if `data_source` is `disk` or `image`. - // If `type` is `local-ssd`, size_gb should be a multiple of 375GB, + // For persistent disk, this field is ignored if `data_source` is `image` or + // `snapshot`. + // For local SSD, size_gb should be a multiple of 375GB, // otherwise, the final size will be the next greater multiple of 375 GB. + // For boot disk, Batch will calculate the boot disk size based on source + // image and task requirements if you do not speicify the size. + // If both this field and the boot_disk_mib field in task spec's + // compute_resource are defined, Batch will only honor this field. int64 size_gb = 2; // Local SSDs are available through both "SCSI" and "NVMe" interfaces. @@ -313,6 +333,10 @@ message AllocationPolicy { // The accelerators attached to each VM instance. repeated Accelerator accelerators = 5; + // Book disk to be created and attached to each VM by this InstancePolicy. + // Boot disk will be deleted when the VM is deleted. + Disk boot_disk = 8; + // Non-boot disks to be attached for each VM created by this InstancePolicy. // New disks will be deleted when the VM is deleted. repeated AttachedDisk disks = 6; @@ -474,4 +498,8 @@ message ServiceAccount { // template is being used, the service account has to be specified in the // instance template and it has to match the email field here. string email = 1; + + // List of scopes to be enabled for this service account on the VM, in + // addition to the cloud-platform API scope that will be added by default. + repeated string scopes = 2; } diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/batch.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/batch.proto index 3897c112ac81..c92e60e18d9e 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/batch.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/batch.proto @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.batch.v1alpha; -import public "google/protobuf/empty.proto"; - import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; diff --git a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto index 5fe0b1c76503..d8fc803e8525 100644 --- a/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto +++ b/packages/google-cloud-batch/protos/google/cloud/batch/v1alpha/job.proto @@ -173,6 +173,9 @@ message JobStatus { // The max number of tasks can be assigned to this instance type. int64 task_pack = 3; + + // The VM boot disk. + AllocationPolicy.Disk boot_disk = 4; } // Aggregated task status for a TaskGroup. @@ -298,20 +301,37 @@ message AllocationPolicy { // A data source from which a PD will be created. oneof data_source { // Name of a public or custom image used as the data source. + // For example, the following are all valid URLs: + // (1) Specify the image by its family name: + // projects/{project}/global/images/family/{image_family} + // (2) Specify the image version: + // projects/{project}/global/images/{image_version} + // You can also use Batch customized image in short names. + // The following image values are supported for a boot disk: + // "batch-debian": use Batch Debian images. + // "batch-centos": use Batch CentOS images. + // "batch-cos": use Batch Container-Optimized images. string image = 4; // Name of a snapshot used as the data source. string snapshot = 5; } - // Disk type as shown in `gcloud compute disk-types list` - // For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd". + // Disk type as shown in `gcloud compute disk-types list`. + // For example, local SSD uses type "local-ssd". + // Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" + // or "pd-standard". string type = 1; // Disk size in GB. - // This field is ignored if `data_source` is `disk` or `image`. - // If `type` is `local-ssd`, size_gb should be a multiple of 375GB, + // For persistent disk, this field is ignored if `data_source` is `image` or + // `snapshot`. + // For local SSD, size_gb should be a multiple of 375GB, // otherwise, the final size will be the next greater multiple of 375 GB. + // For boot disk, Batch will calculate the boot disk size based on source + // image and task requirements if you do not speicify the size. + // If both this field and the boot_disk_mib field in task spec's + // compute_resource are defined, Batch will only honor this field. int64 size_gb = 2; // Local SSDs are available through both "SCSI" and "NVMe" interfaces. diff --git a/packages/google-cloud-batch/protos/protos.d.ts b/packages/google-cloud-batch/protos/protos.d.ts index cd3f9016d8f7..d2885d444126 100644 --- a/packages/google-cloud-batch/protos/protos.d.ts +++ b/packages/google-cloud-batch/protos/protos.d.ts @@ -17,15028 +17,15052 @@ import Long = require("long"); /** Namespace google. */ export namespace google { - /** Namespace protobuf. */ - namespace protobuf { - - /** Properties of an Empty. */ - interface IEmpty { - } - - /** Represents an Empty. */ - class Empty implements IEmpty { - - /** - * Constructs a new Empty. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEmpty); - - /** - * Creates a new Empty instance using the specified properties. - * @param [properties] Properties to set - * @returns Empty instance - */ - public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; - - /** - * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. - * @param message Empty message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. - * @param message Empty message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Empty message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Empty - * @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.protobuf.Empty; - - /** - * Decodes an Empty message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Empty - * @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.protobuf.Empty; - - /** - * Verifies an Empty 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 an Empty message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Empty - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; - - /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. - * @param message Empty - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Empty to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Empty - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { - - /** FileDescriptorSet file */ - file?: (google.protobuf.IFileDescriptorProto[]|null); - } - - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { - - /** - * Constructs a new FileDescriptorSet. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorSet); - - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; - - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorSet instance - */ - public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; - - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorSet - * @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.protobuf.FileDescriptorSet; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileDescriptorSet - * @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.protobuf.FileDescriptorSet; - - /** - * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileDescriptorSet - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; - - /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @param message FileDescriptorSet - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FileDescriptorSet to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FileDescriptorSet - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { - - /** FileDescriptorProto name */ - name?: (string|null); - - /** FileDescriptorProto package */ - "package"?: (string|null); - - /** FileDescriptorProto dependency */ - dependency?: (string[]|null); - - /** FileDescriptorProto publicDependency */ - publicDependency?: (number[]|null); - - /** FileDescriptorProto weakDependency */ - weakDependency?: (number[]|null); - - /** FileDescriptorProto messageType */ - messageType?: (google.protobuf.IDescriptorProto[]|null); - - /** FileDescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** FileDescriptorProto service */ - service?: (google.protobuf.IServiceDescriptorProto[]|null); - - /** FileDescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** FileDescriptorProto options */ - options?: (google.protobuf.IFileOptions|null); - - /** FileDescriptorProto sourceCodeInfo */ - sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - - /** FileDescriptorProto syntax */ - syntax?: (string|null); - - /** FileDescriptorProto edition */ - edition?: (string|null); - } - - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { - - /** - * Constructs a new FileDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorProto); - - /** FileDescriptorProto name. */ - public name: string; - - /** FileDescriptorProto package. */ - public package: string; - - /** FileDescriptorProto dependency. */ - public dependency: string[]; - - /** FileDescriptorProto publicDependency. */ - public publicDependency: number[]; - - /** FileDescriptorProto weakDependency. */ - public weakDependency: number[]; - - /** FileDescriptorProto messageType. */ - public messageType: google.protobuf.IDescriptorProto[]; - - /** FileDescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** FileDescriptorProto service. */ - public service: google.protobuf.IServiceDescriptorProto[]; - - /** FileDescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** FileDescriptorProto options. */ - public options?: (google.protobuf.IFileOptions|null); - - /** FileDescriptorProto sourceCodeInfo. */ - public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - - /** FileDescriptorProto syntax. */ - public syntax: string; - - /** FileDescriptorProto edition. */ - public edition: string; - - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorProto instance - */ - public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; - - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorProto - * @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.protobuf.FileDescriptorProto; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileDescriptorProto - * @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.protobuf.FileDescriptorProto; - - /** - * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; - - /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @param message FileDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FileDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FileDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { - - /** DescriptorProto name */ - name?: (string|null); - - /** DescriptorProto field */ - field?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto nestedType */ - nestedType?: (google.protobuf.IDescriptorProto[]|null); - - /** DescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** DescriptorProto extensionRange */ - extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); - - /** DescriptorProto oneofDecl */ - oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); - - /** DescriptorProto options */ - options?: (google.protobuf.IMessageOptions|null); - - /** DescriptorProto reservedRange */ - reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); - - /** DescriptorProto reservedName */ - reservedName?: (string[]|null); - } - - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { - - /** - * Constructs a new DescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDescriptorProto); - - /** DescriptorProto name. */ - public name: string; - - /** DescriptorProto field. */ - public field: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto nestedType. */ - public nestedType: google.protobuf.IDescriptorProto[]; + /** Namespace cloud. */ + namespace cloud { - /** DescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; + /** Namespace batch. */ + namespace batch { - /** DescriptorProto extensionRange. */ - public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + /** Namespace v1. */ + namespace v1 { - /** DescriptorProto oneofDecl. */ - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + /** Represents a BatchService */ + class BatchService extends $protobuf.rpc.Service { - /** DescriptorProto options. */ - public options?: (google.protobuf.IMessageOptions|null); + /** + * Constructs a new BatchService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** DescriptorProto reservedRange. */ - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + /** + * Creates new BatchService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): BatchService; - /** DescriptorProto reservedName. */ - public reservedName: string[]; + /** + * Calls CreateJob. + * @param request CreateJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Job + */ + public createJob(request: google.cloud.batch.v1.ICreateJobRequest, callback: google.cloud.batch.v1.BatchService.CreateJobCallback): void; - /** - * Creates a new DescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptorProto instance - */ - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + /** + * Calls CreateJob. + * @param request CreateJobRequest message or plain object + * @returns Promise + */ + public createJob(request: google.cloud.batch.v1.ICreateJobRequest): Promise; - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls GetJob. + * @param request GetJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Job + */ + public getJob(request: google.cloud.batch.v1.IGetJobRequest, callback: google.cloud.batch.v1.BatchService.GetJobCallback): void; - /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls GetJob. + * @param request GetJobRequest message or plain object + * @returns Promise + */ + public getJob(request: google.cloud.batch.v1.IGetJobRequest): Promise; - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptorProto - * @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.protobuf.DescriptorProto; + /** + * Calls DeleteJob. + * @param request DeleteJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteJob(request: google.cloud.batch.v1.IDeleteJobRequest, callback: google.cloud.batch.v1.BatchService.DeleteJobCallback): void; - /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DescriptorProto - * @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.protobuf.DescriptorProto; + /** + * Calls DeleteJob. + * @param request DeleteJobRequest message or plain object + * @returns Promise + */ + public deleteJob(request: google.cloud.batch.v1.IDeleteJobRequest): Promise; - /** - * Verifies a DescriptorProto 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); + /** + * Calls ListJobs. + * @param request ListJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListJobsResponse + */ + public listJobs(request: google.cloud.batch.v1.IListJobsRequest, callback: google.cloud.batch.v1.BatchService.ListJobsCallback): void; - /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + /** + * Calls ListJobs. + * @param request ListJobsRequest message or plain object + * @returns Promise + */ + public listJobs(request: google.cloud.batch.v1.IListJobsRequest): Promise; - /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @param message DescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Calls GetTask. + * @param request GetTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Task + */ + public getTask(request: google.cloud.batch.v1.IGetTaskRequest, callback: google.cloud.batch.v1.BatchService.GetTaskCallback): void; - /** - * Converts this DescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Calls GetTask. + * @param request GetTaskRequest message or plain object + * @returns Promise + */ + public getTask(request: google.cloud.batch.v1.IGetTaskRequest): Promise; - /** - * Gets the default type url for DescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Calls ListTasks. + * @param request ListTasksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTasksResponse + */ + public listTasks(request: google.cloud.batch.v1.IListTasksRequest, callback: google.cloud.batch.v1.BatchService.ListTasksCallback): void; - namespace DescriptorProto { + /** + * Calls ListTasks. + * @param request ListTasksRequest message or plain object + * @returns Promise + */ + public listTasks(request: google.cloud.batch.v1.IListTasksRequest): Promise; + } - /** Properties of an ExtensionRange. */ - interface IExtensionRange { + namespace BatchService { - /** ExtensionRange start */ - start?: (number|null); + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|createJob}. + * @param error Error, if any + * @param [response] Job + */ + type CreateJobCallback = (error: (Error|null), response?: google.cloud.batch.v1.Job) => void; - /** ExtensionRange end */ - end?: (number|null); + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|getJob}. + * @param error Error, if any + * @param [response] Job + */ + type GetJobCallback = (error: (Error|null), response?: google.cloud.batch.v1.Job) => void; - /** ExtensionRange options */ - options?: (google.protobuf.IExtensionRangeOptions|null); - } + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|deleteJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|listJobs}. + * @param error Error, if any + * @param [response] ListJobsResponse + */ + type ListJobsCallback = (error: (Error|null), response?: google.cloud.batch.v1.ListJobsResponse) => void; - /** - * Constructs a new ExtensionRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|getTask}. + * @param error Error, if any + * @param [response] Task + */ + type GetTaskCallback = (error: (Error|null), response?: google.cloud.batch.v1.Task) => void; - /** ExtensionRange start. */ - public start: number; + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|listTasks}. + * @param error Error, if any + * @param [response] ListTasksResponse + */ + type ListTasksCallback = (error: (Error|null), response?: google.cloud.batch.v1.ListTasksResponse) => void; + } - /** ExtensionRange end. */ - public end: number; + /** Properties of a CreateJobRequest. */ + interface ICreateJobRequest { - /** ExtensionRange options. */ - public options?: (google.protobuf.IExtensionRangeOptions|null); + /** CreateJobRequest parent */ + parent?: (string|null); - /** - * Creates a new ExtensionRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + /** CreateJobRequest jobId */ + jobId?: (string|null); - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateJobRequest job */ + job?: (google.cloud.batch.v1.IJob|null); - /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateJobRequest requestId */ + requestId?: (string|null); + } - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtensionRange - * @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.protobuf.DescriptorProto.ExtensionRange; + /** Represents a CreateJobRequest. */ + class CreateJobRequest implements ICreateJobRequest { - /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExtensionRange - * @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.protobuf.DescriptorProto.ExtensionRange; + /** + * Constructs a new CreateJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.ICreateJobRequest); - /** - * Verifies an ExtensionRange 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); + /** CreateJobRequest parent. */ + public parent: string; - /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExtensionRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + /** CreateJobRequest jobId. */ + public jobId: string; - /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @param message ExtensionRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CreateJobRequest job. */ + public job?: (google.cloud.batch.v1.IJob|null); - /** - * Converts this ExtensionRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CreateJobRequest requestId. */ + public requestId: string; - /** - * Gets the default type url for ExtensionRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new CreateJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateJobRequest instance + */ + public static create(properties?: google.cloud.batch.v1.ICreateJobRequest): google.cloud.batch.v1.CreateJobRequest; - /** Properties of a ReservedRange. */ - interface IReservedRange { + /** + * Encodes the specified CreateJobRequest message. Does not implicitly {@link google.cloud.batch.v1.CreateJobRequest.verify|verify} messages. + * @param message CreateJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.ICreateJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ReservedRange start */ - start?: (number|null); + /** + * Encodes the specified CreateJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.CreateJobRequest.verify|verify} messages. + * @param message CreateJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.ICreateJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ReservedRange end */ - end?: (number|null); - } + /** + * Decodes a CreateJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateJobRequest + * @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.batch.v1.CreateJobRequest; - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { + /** + * Decodes a CreateJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateJobRequest + * @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.batch.v1.CreateJobRequest; - /** - * Constructs a new ReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + /** + * Verifies a CreateJobRequest 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); - /** ReservedRange start. */ - public start: number; + /** + * Creates a CreateJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.CreateJobRequest; - /** ReservedRange end. */ - public end: number; + /** + * Creates a plain object from a CreateJobRequest message. Also converts values to other types if specified. + * @param message CreateJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.CreateJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new ReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ReservedRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + /** + * Converts this CreateJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for CreateJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a GetJobRequest. */ + interface IGetJobRequest { - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReservedRange - * @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.protobuf.DescriptorProto.ReservedRange; + /** GetJobRequest name */ + name?: (string|null); + } - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReservedRange - * @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.protobuf.DescriptorProto.ReservedRange; + /** Represents a GetJobRequest. */ + class GetJobRequest implements IGetJobRequest { - /** - * Verifies a ReservedRange 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); + /** + * Constructs a new GetJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IGetJobRequest); - /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReservedRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + /** GetJobRequest name. */ + public name: string; - /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @param message ReservedRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new GetJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetJobRequest instance + */ + public static create(properties?: google.cloud.batch.v1.IGetJobRequest): google.cloud.batch.v1.GetJobRequest; - /** - * Converts this ReservedRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified GetJobRequest message. Does not implicitly {@link google.cloud.batch.v1.GetJobRequest.verify|verify} messages. + * @param message GetJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ReservedRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Encodes the specified GetJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GetJobRequest.verify|verify} messages. + * @param message GetJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an ExtensionRangeOptions. */ - interface IExtensionRangeOptions { + /** + * Decodes a GetJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetJobRequest + * @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.batch.v1.GetJobRequest; - /** ExtensionRangeOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } + /** + * Decodes a GetJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetJobRequest + * @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.batch.v1.GetJobRequest; - /** Represents an ExtensionRangeOptions. */ - class ExtensionRangeOptions implements IExtensionRangeOptions { + /** + * Verifies a GetJobRequest 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); - /** - * Constructs a new ExtensionRangeOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IExtensionRangeOptions); + /** + * Creates a GetJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.GetJobRequest; - /** ExtensionRangeOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** + * Creates a plain object from a GetJobRequest message. Also converts values to other types if specified. + * @param message GetJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.GetJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new ExtensionRangeOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRangeOptions instance - */ - public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + /** + * Converts this GetJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for GetJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a DeleteJobRequest. */ + interface IDeleteJobRequest { - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtensionRangeOptions - * @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.protobuf.ExtensionRangeOptions; + /** DeleteJobRequest name */ + name?: (string|null); - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExtensionRangeOptions - * @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.protobuf.ExtensionRangeOptions; + /** DeleteJobRequest reason */ + reason?: (string|null); - /** - * Verifies an ExtensionRangeOptions 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); + /** DeleteJobRequest requestId */ + requestId?: (string|null); + } - /** - * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExtensionRangeOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + /** Represents a DeleteJobRequest. */ + class DeleteJobRequest implements IDeleteJobRequest { - /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. - * @param message ExtensionRangeOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new DeleteJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IDeleteJobRequest); - /** - * Converts this ExtensionRangeOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DeleteJobRequest name. */ + public name: string; - /** - * Gets the default type url for ExtensionRangeOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DeleteJobRequest reason. */ + public reason: string; - /** Properties of a FieldDescriptorProto. */ - interface IFieldDescriptorProto { + /** DeleteJobRequest requestId. */ + public requestId: string; - /** FieldDescriptorProto name */ - name?: (string|null); + /** + * Creates a new DeleteJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteJobRequest instance + */ + public static create(properties?: google.cloud.batch.v1.IDeleteJobRequest): google.cloud.batch.v1.DeleteJobRequest; - /** FieldDescriptorProto number */ - number?: (number|null); + /** + * Encodes the specified DeleteJobRequest message. Does not implicitly {@link google.cloud.batch.v1.DeleteJobRequest.verify|verify} messages. + * @param message DeleteJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); + /** + * Encodes the specified DeleteJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.DeleteJobRequest.verify|verify} messages. + * @param message DeleteJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); + /** + * Decodes a DeleteJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteJobRequest + * @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.batch.v1.DeleteJobRequest; - /** FieldDescriptorProto typeName */ - typeName?: (string|null); + /** + * Decodes a DeleteJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteJobRequest + * @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.batch.v1.DeleteJobRequest; - /** FieldDescriptorProto extendee */ - extendee?: (string|null); + /** + * Verifies a DeleteJobRequest 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); - /** FieldDescriptorProto defaultValue */ - defaultValue?: (string|null); + /** + * Creates a DeleteJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.DeleteJobRequest; - /** FieldDescriptorProto oneofIndex */ - oneofIndex?: (number|null); + /** + * Creates a plain object from a DeleteJobRequest message. Also converts values to other types if specified. + * @param message DeleteJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.DeleteJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FieldDescriptorProto jsonName */ - jsonName?: (string|null); + /** + * Converts this DeleteJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FieldDescriptorProto options */ - options?: (google.protobuf.IFieldOptions|null); + /** + * Gets the default type url for DeleteJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** FieldDescriptorProto proto3Optional */ - proto3Optional?: (boolean|null); - } + /** Properties of a ListJobsRequest. */ + interface IListJobsRequest { - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { + /** ListJobsRequest parent */ + parent?: (string|null); - /** - * Constructs a new FieldDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldDescriptorProto); + /** ListJobsRequest filter */ + filter?: (string|null); - /** FieldDescriptorProto name. */ - public name: string; + /** ListJobsRequest pageSize */ + pageSize?: (number|null); - /** FieldDescriptorProto number. */ - public number: number; + /** ListJobsRequest pageToken */ + pageToken?: (string|null); + } - /** FieldDescriptorProto label. */ - public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); + /** Represents a ListJobsRequest. */ + class ListJobsRequest implements IListJobsRequest { - /** FieldDescriptorProto type. */ - public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); + /** + * Constructs a new ListJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IListJobsRequest); - /** FieldDescriptorProto typeName. */ - public typeName: string; + /** ListJobsRequest parent. */ + public parent: string; - /** FieldDescriptorProto extendee. */ - public extendee: string; + /** ListJobsRequest filter. */ + public filter: string; - /** FieldDescriptorProto defaultValue. */ - public defaultValue: string; + /** ListJobsRequest pageSize. */ + public pageSize: number; - /** FieldDescriptorProto oneofIndex. */ - public oneofIndex: number; + /** ListJobsRequest pageToken. */ + public pageToken: string; - /** FieldDescriptorProto jsonName. */ - public jsonName: string; + /** + * Creates a new ListJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListJobsRequest instance + */ + public static create(properties?: google.cloud.batch.v1.IListJobsRequest): google.cloud.batch.v1.ListJobsRequest; - /** FieldDescriptorProto options. */ - public options?: (google.protobuf.IFieldOptions|null); + /** + * Encodes the specified ListJobsRequest message. Does not implicitly {@link google.cloud.batch.v1.ListJobsRequest.verify|verify} messages. + * @param message ListJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldDescriptorProto proto3Optional. */ - public proto3Optional: boolean; + /** + * Encodes the specified ListJobsRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListJobsRequest.verify|verify} messages. + * @param message ListJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldDescriptorProto instance - */ - public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + /** + * Decodes a ListJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListJobsRequest + * @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.batch.v1.ListJobsRequest; - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListJobsRequest + * @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.batch.v1.ListJobsRequest; - /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a ListJobsRequest 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); - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldDescriptorProto - * @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.protobuf.FieldDescriptorProto; + /** + * Creates a ListJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListJobsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ListJobsRequest; + + /** + * Creates a plain object from a ListJobsRequest message. Also converts values to other types if specified. + * @param message ListJobsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.ListJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListJobsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldDescriptorProto - * @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.protobuf.FieldDescriptorProto; + /** + * Gets the default type url for ListJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a FieldDescriptorProto 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); + /** Properties of a ListJobsResponse. */ + interface IListJobsResponse { - /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FieldDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + /** ListJobsResponse jobs */ + jobs?: (google.cloud.batch.v1.IJob[]|null); - /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @param message FieldDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListJobsResponse nextPageToken */ + nextPageToken?: (string|null); - /** - * Converts this FieldDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListJobsResponse unreachable */ + unreachable?: (string[]|null); + } - /** - * Gets the default type url for FieldDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a ListJobsResponse. */ + class ListJobsResponse implements IListJobsResponse { - namespace FieldDescriptorProto { + /** + * Constructs a new ListJobsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IListJobsResponse); - /** Type enum. */ - enum Type { - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - TYPE_SINT32 = 17, - TYPE_SINT64 = 18 - } + /** ListJobsResponse jobs. */ + public jobs: google.cloud.batch.v1.IJob[]; - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 - } - } + /** ListJobsResponse nextPageToken. */ + public nextPageToken: string; - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { + /** ListJobsResponse unreachable. */ + public unreachable: string[]; - /** OneofDescriptorProto name */ - name?: (string|null); + /** + * Creates a new ListJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListJobsResponse instance + */ + public static create(properties?: google.cloud.batch.v1.IListJobsResponse): google.cloud.batch.v1.ListJobsResponse; - /** OneofDescriptorProto options */ - options?: (google.protobuf.IOneofOptions|null); - } + /** + * Encodes the specified ListJobsResponse message. Does not implicitly {@link google.cloud.batch.v1.ListJobsResponse.verify|verify} messages. + * @param message ListJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IListJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { + /** + * Encodes the specified ListJobsResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListJobsResponse.verify|verify} messages. + * @param message ListJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IListJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new OneofDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IOneofDescriptorProto); + /** + * Decodes a ListJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListJobsResponse + * @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.batch.v1.ListJobsResponse; - /** OneofDescriptorProto name. */ - public name: string; + /** + * Decodes a ListJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListJobsResponse + * @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.batch.v1.ListJobsResponse; - /** OneofDescriptorProto options. */ - public options?: (google.protobuf.IOneofOptions|null); + /** + * Verifies a ListJobsResponse 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 new OneofDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofDescriptorProto instance - */ - public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + /** + * Creates a ListJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListJobsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ListJobsResponse; - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a ListJobsResponse message. Also converts values to other types if specified. + * @param message ListJobsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.ListJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ListJobsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OneofDescriptorProto - * @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.protobuf.OneofDescriptorProto; + /** + * Gets the default type url for ListJobsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OneofDescriptorProto - * @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.protobuf.OneofDescriptorProto; + /** Properties of a ListTasksRequest. */ + interface IListTasksRequest { - /** - * Verifies an OneofDescriptorProto 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); + /** ListTasksRequest parent */ + parent?: (string|null); - /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OneofDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + /** ListTasksRequest filter */ + filter?: (string|null); - /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @param message OneofDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListTasksRequest pageSize */ + pageSize?: (number|null); - /** - * Converts this OneofDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListTasksRequest pageToken */ + pageToken?: (string|null); + } - /** - * Gets the default type url for OneofDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a ListTasksRequest. */ + class ListTasksRequest implements IListTasksRequest { - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { + /** + * Constructs a new ListTasksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IListTasksRequest); - /** EnumDescriptorProto name */ - name?: (string|null); + /** ListTasksRequest parent. */ + public parent: string; - /** EnumDescriptorProto value */ - value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + /** ListTasksRequest filter. */ + public filter: string; - /** EnumDescriptorProto options */ - options?: (google.protobuf.IEnumOptions|null); + /** ListTasksRequest pageSize. */ + public pageSize: number; - /** EnumDescriptorProto reservedRange */ - reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + /** ListTasksRequest pageToken. */ + public pageToken: string; - /** EnumDescriptorProto reservedName */ - reservedName?: (string[]|null); - } + /** + * Creates a new ListTasksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTasksRequest instance + */ + public static create(properties?: google.cloud.batch.v1.IListTasksRequest): google.cloud.batch.v1.ListTasksRequest; - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { + /** + * Encodes the specified ListTasksRequest message. Does not implicitly {@link google.cloud.batch.v1.ListTasksRequest.verify|verify} messages. + * @param message ListTasksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IListTasksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new EnumDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumDescriptorProto); + /** + * Encodes the specified ListTasksRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListTasksRequest.verify|verify} messages. + * @param message ListTasksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IListTasksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnumDescriptorProto name. */ - public name: string; + /** + * Decodes a ListTasksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTasksRequest + * @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.batch.v1.ListTasksRequest; - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; + /** + * Decodes a ListTasksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTasksRequest + * @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.batch.v1.ListTasksRequest; - /** EnumDescriptorProto options. */ - public options?: (google.protobuf.IEnumOptions|null); + /** + * Verifies a ListTasksRequest 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); - /** EnumDescriptorProto reservedRange. */ - public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + /** + * Creates a ListTasksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTasksRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ListTasksRequest; - /** EnumDescriptorProto reservedName. */ - public reservedName: string[]; + /** + * Creates a plain object from a ListTasksRequest message. Also converts values to other types if specified. + * @param message ListTasksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.ListTasksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumDescriptorProto instance - */ - public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + /** + * Converts this ListTasksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ListTasksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a ListTasksResponse. */ + interface IListTasksResponse { - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumDescriptorProto - * @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.protobuf.EnumDescriptorProto; + /** ListTasksResponse tasks */ + tasks?: (google.cloud.batch.v1.ITask[]|null); - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumDescriptorProto - * @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.protobuf.EnumDescriptorProto; + /** ListTasksResponse nextPageToken */ + nextPageToken?: (string|null); - /** - * Verifies an EnumDescriptorProto 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); + /** ListTasksResponse unreachable */ + unreachable?: (string[]|null); + } - /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + /** Represents a ListTasksResponse. */ + class ListTasksResponse implements IListTasksResponse { - /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. - * @param message EnumDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new ListTasksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IListTasksResponse); - /** - * Converts this EnumDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListTasksResponse tasks. */ + public tasks: google.cloud.batch.v1.ITask[]; - /** - * Gets the default type url for EnumDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListTasksResponse nextPageToken. */ + public nextPageToken: string; - namespace EnumDescriptorProto { + /** ListTasksResponse unreachable. */ + public unreachable: string[]; - /** Properties of an EnumReservedRange. */ - interface IEnumReservedRange { + /** + * Creates a new ListTasksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTasksResponse instance + */ + public static create(properties?: google.cloud.batch.v1.IListTasksResponse): google.cloud.batch.v1.ListTasksResponse; - /** EnumReservedRange start */ - start?: (number|null); + /** + * Encodes the specified ListTasksResponse message. Does not implicitly {@link google.cloud.batch.v1.ListTasksResponse.verify|verify} messages. + * @param message ListTasksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IListTasksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnumReservedRange end */ - end?: (number|null); - } + /** + * Encodes the specified ListTasksResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListTasksResponse.verify|verify} messages. + * @param message ListTasksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IListTasksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an EnumReservedRange. */ - class EnumReservedRange implements IEnumReservedRange { + /** + * Decodes a ListTasksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTasksResponse + * @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.batch.v1.ListTasksResponse; + + /** + * Decodes a ListTasksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTasksResponse + * @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.batch.v1.ListTasksResponse; - /** - * Constructs a new EnumReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + /** + * Verifies a ListTasksResponse 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); - /** EnumReservedRange start. */ - public start: number; + /** + * Creates a ListTasksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTasksResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ListTasksResponse; - /** EnumReservedRange end. */ - public end: number; + /** + * Creates a plain object from a ListTasksResponse message. Also converts values to other types if specified. + * @param message ListTasksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.ListTasksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumReservedRange instance - */ - public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + /** + * Converts this ListTasksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @param message EnumReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ListTasksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @param message EnumReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a GetTaskRequest. */ + interface IGetTaskRequest { - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumReservedRange - * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + /** GetTaskRequest name */ + name?: (string|null); + } - /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumReservedRange - * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + /** Represents a GetTaskRequest. */ + class GetTaskRequest implements IGetTaskRequest { - /** - * Verifies an EnumReservedRange 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); + /** + * Constructs a new GetTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IGetTaskRequest); - /** - * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumReservedRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + /** GetTaskRequest name. */ + public name: string; - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @param message EnumReservedRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new GetTaskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskRequest instance + */ + public static create(properties?: google.cloud.batch.v1.IGetTaskRequest): google.cloud.batch.v1.GetTaskRequest; - /** - * Converts this EnumReservedRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified GetTaskRequest message. Does not implicitly {@link google.cloud.batch.v1.GetTaskRequest.verify|verify} messages. + * @param message GetTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for EnumReservedRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Encodes the specified GetTaskRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GetTaskRequest.verify|verify} messages. + * @param message GetTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { + /** + * Decodes a GetTaskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskRequest + * @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.batch.v1.GetTaskRequest; - /** EnumValueDescriptorProto name */ - name?: (string|null); + /** + * Decodes a GetTaskRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTaskRequest + * @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.batch.v1.GetTaskRequest; - /** EnumValueDescriptorProto number */ - number?: (number|null); + /** + * Verifies a GetTaskRequest 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); - /** EnumValueDescriptorProto options */ - options?: (google.protobuf.IEnumValueOptions|null); - } + /** + * Creates a GetTaskRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTaskRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.GetTaskRequest; - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + /** + * Creates a plain object from a GetTaskRequest message. Also converts values to other types if specified. + * @param message GetTaskRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.GetTaskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new EnumValueDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + /** + * Converts this GetTaskRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** EnumValueDescriptorProto name. */ - public name: string; + /** + * Gets the default type url for GetTaskRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** EnumValueDescriptorProto number. */ - public number: number; + /** Properties of an OperationMetadata. */ + interface IOperationMetadata { - /** EnumValueDescriptorProto options. */ - public options?: (google.protobuf.IEnumValueOptions|null); + /** OperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueDescriptorProto instance - */ - public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + /** OperationMetadata endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** OperationMetadata target */ + target?: (string|null); - /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** OperationMetadata verb */ + verb?: (string|null); - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumValueDescriptorProto - * @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.protobuf.EnumValueDescriptorProto; + /** OperationMetadata statusMessage */ + statusMessage?: (string|null); - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumValueDescriptorProto - * @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.protobuf.EnumValueDescriptorProto; + /** OperationMetadata requestedCancellation */ + requestedCancellation?: (boolean|null); - /** - * Verifies an EnumValueDescriptorProto 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); + /** OperationMetadata apiVersion */ + apiVersion?: (string|null); + } - /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumValueDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + /** Represents an OperationMetadata. */ + class OperationMetadata implements IOperationMetadata { - /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @param message EnumValueDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new OperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IOperationMetadata); - /** - * Converts this EnumValueDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** OperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Gets the default type url for EnumValueDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** OperationMetadata endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { + /** OperationMetadata target. */ + public target: string; - /** ServiceDescriptorProto name */ - name?: (string|null); + /** OperationMetadata verb. */ + public verb: string; - /** ServiceDescriptorProto method */ - method?: (google.protobuf.IMethodDescriptorProto[]|null); + /** OperationMetadata statusMessage. */ + public statusMessage: string; - /** ServiceDescriptorProto options */ - options?: (google.protobuf.IServiceOptions|null); - } + /** OperationMetadata requestedCancellation. */ + public requestedCancellation: boolean; - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { + /** OperationMetadata apiVersion. */ + public apiVersion: string; - /** - * Constructs a new ServiceDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IServiceDescriptorProto); + /** + * Creates a new OperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationMetadata instance + */ + public static create(properties?: google.cloud.batch.v1.IOperationMetadata): google.cloud.batch.v1.OperationMetadata; - /** ServiceDescriptorProto name. */ - public name: string; + /** + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.batch.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; + /** + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.batch.v1.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** ServiceDescriptorProto options. */ - public options?: (google.protobuf.IServiceOptions|null); + /** + * Decodes an OperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationMetadata + * @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.batch.v1.OperationMetadata; - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceDescriptorProto instance - */ - public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + /** + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OperationMetadata + * @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.batch.v1.OperationMetadata; - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies an OperationMetadata 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); - /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.OperationMetadata; - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceDescriptorProto - * @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.protobuf.ServiceDescriptorProto; + /** + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @param message OperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceDescriptorProto - * @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.protobuf.ServiceDescriptorProto; + /** + * Converts this OperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies a ServiceDescriptorProto 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); + /** + * Gets the default type url for OperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + /** Properties of a Job. */ + interface IJob { - /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. - * @param message ServiceDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Job name */ + name?: (string|null); - /** - * Converts this ServiceDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Job uid */ + uid?: (string|null); - /** - * Gets the default type url for ServiceDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Job priority */ + priority?: (number|Long|string|null); - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { + /** Job taskGroups */ + taskGroups?: (google.cloud.batch.v1.ITaskGroup[]|null); - /** MethodDescriptorProto name */ - name?: (string|null); + /** Job allocationPolicy */ + allocationPolicy?: (google.cloud.batch.v1.IAllocationPolicy|null); - /** MethodDescriptorProto inputType */ - inputType?: (string|null); + /** Job labels */ + labels?: ({ [k: string]: string }|null); - /** MethodDescriptorProto outputType */ - outputType?: (string|null); + /** Job status */ + status?: (google.cloud.batch.v1.IJobStatus|null); - /** MethodDescriptorProto options */ - options?: (google.protobuf.IMethodOptions|null); + /** Job createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** MethodDescriptorProto clientStreaming */ - clientStreaming?: (boolean|null); + /** Job updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** MethodDescriptorProto serverStreaming */ - serverStreaming?: (boolean|null); - } + /** Job logsPolicy */ + logsPolicy?: (google.cloud.batch.v1.ILogsPolicy|null); - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { + /** Job notifications */ + notifications?: (google.cloud.batch.v1.IJobNotification[]|null); + } - /** - * Constructs a new MethodDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMethodDescriptorProto); + /** Represents a Job. */ + class Job implements IJob { - /** MethodDescriptorProto name. */ - public name: string; + /** + * Constructs a new Job. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IJob); - /** MethodDescriptorProto inputType. */ - public inputType: string; + /** Job name. */ + public name: string; - /** MethodDescriptorProto outputType. */ - public outputType: string; + /** Job uid. */ + public uid: string; - /** MethodDescriptorProto options. */ - public options?: (google.protobuf.IMethodOptions|null); + /** Job priority. */ + public priority: (number|Long|string); - /** MethodDescriptorProto clientStreaming. */ - public clientStreaming: boolean; + /** Job taskGroups. */ + public taskGroups: google.cloud.batch.v1.ITaskGroup[]; - /** MethodDescriptorProto serverStreaming. */ - public serverStreaming: boolean; + /** Job allocationPolicy. */ + public allocationPolicy?: (google.cloud.batch.v1.IAllocationPolicy|null); - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodDescriptorProto instance - */ - public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + /** Job labels. */ + public labels: { [k: string]: string }; - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Job status. */ + public status?: (google.cloud.batch.v1.IJobStatus|null); - /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Job createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MethodDescriptorProto - * @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.protobuf.MethodDescriptorProto; + /** Job updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MethodDescriptorProto - * @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.protobuf.MethodDescriptorProto; + /** Job logsPolicy. */ + public logsPolicy?: (google.cloud.batch.v1.ILogsPolicy|null); - /** - * Verifies a MethodDescriptorProto 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); + /** Job notifications. */ + public notifications: google.cloud.batch.v1.IJobNotification[]; - /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MethodDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + /** + * Creates a new Job instance using the specified properties. + * @param [properties] Properties to set + * @returns Job instance + */ + public static create(properties?: google.cloud.batch.v1.IJob): google.cloud.batch.v1.Job; - /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @param message MethodDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Job message. Does not implicitly {@link google.cloud.batch.v1.Job.verify|verify} messages. + * @param message Job message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IJob, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this MethodDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Job.verify|verify} messages. + * @param message Job message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IJob, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for MethodDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a Job message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Job + * @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.batch.v1.Job; - /** Properties of a FileOptions. */ - interface IFileOptions { + /** + * Decodes a Job message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Job + * @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.batch.v1.Job; - /** FileOptions javaPackage */ - javaPackage?: (string|null); + /** + * Verifies a Job 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); - /** FileOptions javaOuterClassname */ - javaOuterClassname?: (string|null); + /** + * Creates a Job message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Job + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Job; - /** FileOptions javaMultipleFiles */ - javaMultipleFiles?: (boolean|null); + /** + * Creates a plain object from a Job message. Also converts values to other types if specified. + * @param message Job + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.Job, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions javaGenerateEqualsAndHash */ - javaGenerateEqualsAndHash?: (boolean|null); + /** + * Converts this Job to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FileOptions javaStringCheckUtf8 */ - javaStringCheckUtf8?: (boolean|null); + /** + * Gets the default type url for Job + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** FileOptions optimizeFor */ - optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); + /** Properties of a LogsPolicy. */ + interface ILogsPolicy { - /** FileOptions goPackage */ - goPackage?: (string|null); + /** LogsPolicy destination */ + destination?: (google.cloud.batch.v1.LogsPolicy.Destination|keyof typeof google.cloud.batch.v1.LogsPolicy.Destination|null); - /** FileOptions ccGenericServices */ - ccGenericServices?: (boolean|null); + /** LogsPolicy logsPath */ + logsPath?: (string|null); + } - /** FileOptions javaGenericServices */ - javaGenericServices?: (boolean|null); + /** Represents a LogsPolicy. */ + class LogsPolicy implements ILogsPolicy { - /** FileOptions pyGenericServices */ - pyGenericServices?: (boolean|null); + /** + * Constructs a new LogsPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.ILogsPolicy); - /** FileOptions phpGenericServices */ - phpGenericServices?: (boolean|null); + /** LogsPolicy destination. */ + public destination: (google.cloud.batch.v1.LogsPolicy.Destination|keyof typeof google.cloud.batch.v1.LogsPolicy.Destination); - /** FileOptions deprecated */ - deprecated?: (boolean|null); + /** LogsPolicy logsPath. */ + public logsPath: string; - /** FileOptions ccEnableArenas */ - ccEnableArenas?: (boolean|null); + /** + * Creates a new LogsPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns LogsPolicy instance + */ + public static create(properties?: google.cloud.batch.v1.ILogsPolicy): google.cloud.batch.v1.LogsPolicy; - /** FileOptions objcClassPrefix */ - objcClassPrefix?: (string|null); + /** + * Encodes the specified LogsPolicy message. Does not implicitly {@link google.cloud.batch.v1.LogsPolicy.verify|verify} messages. + * @param message LogsPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.ILogsPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions csharpNamespace */ - csharpNamespace?: (string|null); + /** + * Encodes the specified LogsPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LogsPolicy.verify|verify} messages. + * @param message LogsPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.ILogsPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions swiftPrefix */ - swiftPrefix?: (string|null); + /** + * Decodes a LogsPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LogsPolicy + * @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.batch.v1.LogsPolicy; - /** FileOptions phpClassPrefix */ - phpClassPrefix?: (string|null); + /** + * Decodes a LogsPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LogsPolicy + * @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.batch.v1.LogsPolicy; - /** FileOptions phpNamespace */ - phpNamespace?: (string|null); + /** + * Verifies a LogsPolicy 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); - /** FileOptions phpMetadataNamespace */ - phpMetadataNamespace?: (string|null); + /** + * Creates a LogsPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LogsPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.LogsPolicy; - /** FileOptions rubyPackage */ - rubyPackage?: (string|null); + /** + * Creates a plain object from a LogsPolicy message. Also converts values to other types if specified. + * @param message LogsPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.LogsPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** + * Converts this LogsPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FileOptions .google.api.resourceDefinition */ - ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); - } + /** + * Gets the default type url for LogsPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { + namespace LogsPolicy { - /** - * Constructs a new FileOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileOptions); + /** Destination enum. */ + enum Destination { + DESTINATION_UNSPECIFIED = 0, + CLOUD_LOGGING = 1, + PATH = 2 + } + } - /** FileOptions javaPackage. */ - public javaPackage: string; + /** Properties of a JobStatus. */ + interface IJobStatus { - /** FileOptions javaOuterClassname. */ - public javaOuterClassname: string; + /** JobStatus state */ + state?: (google.cloud.batch.v1.JobStatus.State|keyof typeof google.cloud.batch.v1.JobStatus.State|null); - /** FileOptions javaMultipleFiles. */ - public javaMultipleFiles: boolean; + /** JobStatus statusEvents */ + statusEvents?: (google.cloud.batch.v1.IStatusEvent[]|null); - /** FileOptions javaGenerateEqualsAndHash. */ - public javaGenerateEqualsAndHash: boolean; + /** JobStatus taskGroups */ + taskGroups?: ({ [k: string]: google.cloud.batch.v1.JobStatus.ITaskGroupStatus }|null); - /** FileOptions javaStringCheckUtf8. */ - public javaStringCheckUtf8: boolean; + /** JobStatus runDuration */ + runDuration?: (google.protobuf.IDuration|null); + } - /** FileOptions optimizeFor. */ - public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); + /** Represents a JobStatus. */ + class JobStatus implements IJobStatus { - /** FileOptions goPackage. */ - public goPackage: string; + /** + * Constructs a new JobStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IJobStatus); - /** FileOptions ccGenericServices. */ - public ccGenericServices: boolean; + /** JobStatus state. */ + public state: (google.cloud.batch.v1.JobStatus.State|keyof typeof google.cloud.batch.v1.JobStatus.State); - /** FileOptions javaGenericServices. */ - public javaGenericServices: boolean; + /** JobStatus statusEvents. */ + public statusEvents: google.cloud.batch.v1.IStatusEvent[]; - /** FileOptions pyGenericServices. */ - public pyGenericServices: boolean; + /** JobStatus taskGroups. */ + public taskGroups: { [k: string]: google.cloud.batch.v1.JobStatus.ITaskGroupStatus }; - /** FileOptions phpGenericServices. */ - public phpGenericServices: boolean; + /** JobStatus runDuration. */ + public runDuration?: (google.protobuf.IDuration|null); - /** FileOptions deprecated. */ - public deprecated: boolean; + /** + * Creates a new JobStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns JobStatus instance + */ + public static create(properties?: google.cloud.batch.v1.IJobStatus): google.cloud.batch.v1.JobStatus; - /** FileOptions ccEnableArenas. */ - public ccEnableArenas: boolean; + /** + * Encodes the specified JobStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.verify|verify} messages. + * @param message JobStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions objcClassPrefix. */ - public objcClassPrefix: string; + /** + * Encodes the specified JobStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.verify|verify} messages. + * @param message JobStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions csharpNamespace. */ - public csharpNamespace: string; + /** + * Decodes a JobStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns JobStatus + * @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.batch.v1.JobStatus; - /** FileOptions swiftPrefix. */ - public swiftPrefix: string; + /** + * Decodes a JobStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns JobStatus + * @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.batch.v1.JobStatus; - /** FileOptions phpClassPrefix. */ - public phpClassPrefix: string; + /** + * Verifies a JobStatus 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); - /** FileOptions phpNamespace. */ - public phpNamespace: string; + /** + * Creates a JobStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns JobStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobStatus; - /** FileOptions phpMetadataNamespace. */ - public phpMetadataNamespace: string; + /** + * Creates a plain object from a JobStatus message. Also converts values to other types if specified. + * @param message JobStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.JobStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions rubyPackage. */ - public rubyPackage: string; + /** + * Converts this JobStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FileOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** + * Gets the default type url for JobStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new FileOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FileOptions instance - */ - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + namespace JobStatus { - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an InstanceStatus. */ + interface IInstanceStatus { - /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstanceStatus machineType */ + machineType?: (string|null); - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileOptions - * @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.protobuf.FileOptions; + /** InstanceStatus provisioningModel */ + provisioningModel?: (google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|null); - /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileOptions - * @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.protobuf.FileOptions; + /** InstanceStatus taskPack */ + taskPack?: (number|Long|string|null); - /** - * Verifies a FileOptions 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); + /** InstanceStatus bootDisk */ + bootDisk?: (google.cloud.batch.v1.AllocationPolicy.IDisk|null); + } - /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + /** Represents an InstanceStatus. */ + class InstanceStatus implements IInstanceStatus { - /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @param message FileOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new InstanceStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.JobStatus.IInstanceStatus); - /** - * Converts this FileOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** InstanceStatus machineType. */ + public machineType: string; - /** - * Gets the default type url for FileOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** InstanceStatus provisioningModel. */ + public provisioningModel: (google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1.AllocationPolicy.ProvisioningModel); - namespace FileOptions { + /** InstanceStatus taskPack. */ + public taskPack: (number|Long|string); - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3 - } - } + /** InstanceStatus bootDisk. */ + public bootDisk?: (google.cloud.batch.v1.AllocationPolicy.IDisk|null); - /** Properties of a MessageOptions. */ - interface IMessageOptions { + /** + * Creates a new InstanceStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceStatus instance + */ + public static create(properties?: google.cloud.batch.v1.JobStatus.IInstanceStatus): google.cloud.batch.v1.JobStatus.InstanceStatus; - /** MessageOptions messageSetWireFormat */ - messageSetWireFormat?: (boolean|null); + /** + * Encodes the specified InstanceStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.InstanceStatus.verify|verify} messages. + * @param message InstanceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.JobStatus.IInstanceStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** MessageOptions noStandardDescriptorAccessor */ - noStandardDescriptorAccessor?: (boolean|null); + /** + * Encodes the specified InstanceStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.InstanceStatus.verify|verify} messages. + * @param message InstanceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.JobStatus.IInstanceStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** MessageOptions deprecated */ - deprecated?: (boolean|null); + /** + * Decodes an InstanceStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceStatus + * @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.batch.v1.JobStatus.InstanceStatus; - /** MessageOptions mapEntry */ - mapEntry?: (boolean|null); + /** + * Decodes an InstanceStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceStatus + * @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.batch.v1.JobStatus.InstanceStatus; - /** MessageOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** + * Verifies an InstanceStatus 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); - /** MessageOptions .google.api.resource */ - ".google.api.resource"?: (google.api.IResourceDescriptor|null); - } + /** + * Creates an InstanceStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobStatus.InstanceStatus; - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { + /** + * Creates a plain object from an InstanceStatus message. Also converts values to other types if specified. + * @param message InstanceStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.JobStatus.InstanceStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new MessageOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMessageOptions); + /** + * Converts this InstanceStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** MessageOptions messageSetWireFormat. */ - public messageSetWireFormat: boolean; + /** + * Gets the default type url for InstanceStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** MessageOptions noStandardDescriptorAccessor. */ - public noStandardDescriptorAccessor: boolean; + /** Properties of a TaskGroupStatus. */ + interface ITaskGroupStatus { - /** MessageOptions deprecated. */ - public deprecated: boolean; + /** TaskGroupStatus counts */ + counts?: ({ [k: string]: (number|Long|string) }|null); - /** MessageOptions mapEntry. */ - public mapEntry: boolean; + /** TaskGroupStatus instances */ + instances?: (google.cloud.batch.v1.JobStatus.IInstanceStatus[]|null); + } - /** MessageOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Represents a TaskGroupStatus. */ + class TaskGroupStatus implements ITaskGroupStatus { - /** - * Creates a new MessageOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageOptions instance - */ - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + /** + * Constructs a new TaskGroupStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.JobStatus.ITaskGroupStatus); - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** TaskGroupStatus counts. */ + public counts: { [k: string]: (number|Long|string) }; - /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** TaskGroupStatus instances. */ + public instances: google.cloud.batch.v1.JobStatus.IInstanceStatus[]; - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageOptions - * @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.protobuf.MessageOptions; + /** + * Creates a new TaskGroupStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskGroupStatus instance + */ + public static create(properties?: google.cloud.batch.v1.JobStatus.ITaskGroupStatus): google.cloud.batch.v1.JobStatus.TaskGroupStatus; - /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageOptions - * @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.protobuf.MessageOptions; + /** + * Encodes the specified TaskGroupStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify|verify} messages. + * @param message TaskGroupStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.JobStatus.ITaskGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TaskGroupStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify|verify} messages. + * @param message TaskGroupStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.JobStatus.ITaskGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskGroupStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskGroupStatus + * @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.batch.v1.JobStatus.TaskGroupStatus; + + /** + * Decodes a TaskGroupStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TaskGroupStatus + * @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.batch.v1.JobStatus.TaskGroupStatus; - /** - * Verifies a MessageOptions 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); + /** + * Verifies a TaskGroupStatus 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 MessageOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + /** + * Creates a TaskGroupStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TaskGroupStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobStatus.TaskGroupStatus; - /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @param message MessageOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a TaskGroupStatus message. Also converts values to other types if specified. + * @param message TaskGroupStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.JobStatus.TaskGroupStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this MessageOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this TaskGroupStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for MessageOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for TaskGroupStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a FieldOptions. */ - interface IFieldOptions { + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + QUEUED = 1, + SCHEDULED = 2, + RUNNING = 3, + SUCCEEDED = 4, + FAILED = 5, + DELETION_IN_PROGRESS = 6 + } + } - /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); + /** Properties of a JobNotification. */ + interface IJobNotification { - /** FieldOptions packed */ - packed?: (boolean|null); + /** JobNotification pubsubTopic */ + pubsubTopic?: (string|null); - /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); + /** JobNotification message */ + message?: (google.cloud.batch.v1.JobNotification.IMessage|null); + } - /** FieldOptions lazy */ - lazy?: (boolean|null); + /** Represents a JobNotification. */ + class JobNotification implements IJobNotification { - /** FieldOptions unverifiedLazy */ - unverifiedLazy?: (boolean|null); + /** + * Constructs a new JobNotification. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IJobNotification); - /** FieldOptions deprecated */ - deprecated?: (boolean|null); + /** JobNotification pubsubTopic. */ + public pubsubTopic: string; - /** FieldOptions weak */ - weak?: (boolean|null); + /** JobNotification message. */ + public message?: (google.cloud.batch.v1.JobNotification.IMessage|null); - /** FieldOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** + * Creates a new JobNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns JobNotification instance + */ + public static create(properties?: google.cloud.batch.v1.IJobNotification): google.cloud.batch.v1.JobNotification; - /** FieldOptions .google.api.fieldBehavior */ - ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); + /** + * Encodes the specified JobNotification message. Does not implicitly {@link google.cloud.batch.v1.JobNotification.verify|verify} messages. + * @param message JobNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IJobNotification, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldOptions .google.api.resourceReference */ - ".google.api.resourceReference"?: (google.api.IResourceReference|null); - } + /** + * Encodes the specified JobNotification message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobNotification.verify|verify} messages. + * @param message JobNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IJobNotification, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { + /** + * Decodes a JobNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns JobNotification + * @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.batch.v1.JobNotification; - /** - * Constructs a new FieldOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldOptions); + /** + * Decodes a JobNotification message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns JobNotification + * @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.batch.v1.JobNotification; - /** FieldOptions ctype. */ - public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); + /** + * Verifies a JobNotification 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); - /** FieldOptions packed. */ - public packed: boolean; + /** + * Creates a JobNotification message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns JobNotification + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobNotification; - /** FieldOptions jstype. */ - public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); + /** + * Creates a plain object from a JobNotification message. Also converts values to other types if specified. + * @param message JobNotification + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.JobNotification, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FieldOptions lazy. */ - public lazy: boolean; + /** + * Converts this JobNotification to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FieldOptions unverifiedLazy. */ - public unverifiedLazy: boolean; + /** + * Gets the default type url for JobNotification + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** FieldOptions deprecated. */ - public deprecated: boolean; + namespace JobNotification { - /** FieldOptions weak. */ - public weak: boolean; + /** Properties of a Message. */ + interface IMessage { - /** FieldOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Message type */ + type?: (google.cloud.batch.v1.JobNotification.Type|keyof typeof google.cloud.batch.v1.JobNotification.Type|null); - /** - * Creates a new FieldOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldOptions instance - */ - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + /** Message newJobState */ + newJobState?: (google.cloud.batch.v1.JobStatus.State|keyof typeof google.cloud.batch.v1.JobStatus.State|null); - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** Message newTaskState */ + newTaskState?: (google.cloud.batch.v1.TaskStatus.State|keyof typeof google.cloud.batch.v1.TaskStatus.State|null); + } - /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a Message. */ + class Message implements IMessage { - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldOptions - * @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.protobuf.FieldOptions; + /** + * Constructs a new Message. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.JobNotification.IMessage); + + /** Message type. */ + public type: (google.cloud.batch.v1.JobNotification.Type|keyof typeof google.cloud.batch.v1.JobNotification.Type); - /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldOptions - * @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.protobuf.FieldOptions; + /** Message newJobState. */ + public newJobState: (google.cloud.batch.v1.JobStatus.State|keyof typeof google.cloud.batch.v1.JobStatus.State); - /** - * Verifies a FieldOptions 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); + /** Message newTaskState. */ + public newTaskState: (google.cloud.batch.v1.TaskStatus.State|keyof typeof google.cloud.batch.v1.TaskStatus.State); - /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FieldOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + /** + * Creates a new Message instance using the specified properties. + * @param [properties] Properties to set + * @returns Message instance + */ + public static create(properties?: google.cloud.batch.v1.JobNotification.IMessage): google.cloud.batch.v1.JobNotification.Message; - /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. - * @param message FieldOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Message message. Does not implicitly {@link google.cloud.batch.v1.JobNotification.Message.verify|verify} messages. + * @param message Message message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.JobNotification.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this FieldOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Message message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobNotification.Message.verify|verify} messages. + * @param message Message message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.JobNotification.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for FieldOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a Message message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Message + * @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.batch.v1.JobNotification.Message; - namespace FieldOptions { + /** + * Decodes a Message message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Message + * @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.batch.v1.JobNotification.Message; - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2 - } + /** + * Verifies a Message 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); - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2 - } - } + /** + * Creates a Message message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Message + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobNotification.Message; - /** Properties of an OneofOptions. */ - interface IOneofOptions { + /** + * Creates a plain object from a Message message. Also converts values to other types if specified. + * @param message Message + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.JobNotification.Message, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** OneofOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } + /** + * Converts this Message to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { + /** + * Gets the default type url for Message + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new OneofOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IOneofOptions); + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + JOB_STATE_CHANGED = 1, + TASK_STATE_CHANGED = 2 + } + } - /** OneofOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Properties of an AllocationPolicy. */ + interface IAllocationPolicy { - /** - * Creates a new OneofOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofOptions instance - */ - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + /** AllocationPolicy location */ + location?: (google.cloud.batch.v1.AllocationPolicy.ILocationPolicy|null); - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** AllocationPolicy instances */ + instances?: (google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate[]|null); - /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** AllocationPolicy serviceAccount */ + serviceAccount?: (google.cloud.batch.v1.IServiceAccount|null); - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OneofOptions - * @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.protobuf.OneofOptions; + /** AllocationPolicy labels */ + labels?: ({ [k: string]: string }|null); - /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OneofOptions - * @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.protobuf.OneofOptions; + /** AllocationPolicy network */ + network?: (google.cloud.batch.v1.AllocationPolicy.INetworkPolicy|null); + } - /** - * Verifies an OneofOptions 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); + /** Represents an AllocationPolicy. */ + class AllocationPolicy implements IAllocationPolicy { - /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OneofOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + /** + * Constructs a new AllocationPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IAllocationPolicy); - /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @param message OneofOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** AllocationPolicy location. */ + public location?: (google.cloud.batch.v1.AllocationPolicy.ILocationPolicy|null); - /** - * Converts this OneofOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AllocationPolicy instances. */ + public instances: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate[]; - /** - * Gets the default type url for OneofOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** AllocationPolicy serviceAccount. */ + public serviceAccount?: (google.cloud.batch.v1.IServiceAccount|null); - /** Properties of an EnumOptions. */ - interface IEnumOptions { + /** AllocationPolicy labels. */ + public labels: { [k: string]: string }; - /** EnumOptions allowAlias */ - allowAlias?: (boolean|null); + /** AllocationPolicy network. */ + public network?: (google.cloud.batch.v1.AllocationPolicy.INetworkPolicy|null); - /** EnumOptions deprecated */ - deprecated?: (boolean|null); + /** + * Creates a new AllocationPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns AllocationPolicy instance + */ + public static create(properties?: google.cloud.batch.v1.IAllocationPolicy): google.cloud.batch.v1.AllocationPolicy; - /** EnumOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } + /** + * Encodes the specified AllocationPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.verify|verify} messages. + * @param message AllocationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { + /** + * Encodes the specified AllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.verify|verify} messages. + * @param message AllocationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new EnumOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumOptions); + /** + * Decodes an AllocationPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AllocationPolicy + * @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.batch.v1.AllocationPolicy; - /** EnumOptions allowAlias. */ - public allowAlias: boolean; + /** + * Decodes an AllocationPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AllocationPolicy + * @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.batch.v1.AllocationPolicy; - /** EnumOptions deprecated. */ - public deprecated: boolean; + /** + * Verifies an AllocationPolicy 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); - /** EnumOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** + * Creates an AllocationPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AllocationPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy; - /** - * Creates a new EnumOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumOptions instance - */ - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + /** + * Creates a plain object from an AllocationPolicy message. Also converts values to other types if specified. + * @param message AllocationPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.AllocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this AllocationPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for AllocationPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumOptions - * @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.protobuf.EnumOptions; + namespace AllocationPolicy { - /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumOptions - * @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.protobuf.EnumOptions; + /** Properties of a LocationPolicy. */ + interface ILocationPolicy { - /** - * Verifies an EnumOptions 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); + /** LocationPolicy allowedLocations */ + allowedLocations?: (string[]|null); + } - /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + /** Represents a LocationPolicy. */ + class LocationPolicy implements ILocationPolicy { - /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @param message EnumOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new LocationPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.AllocationPolicy.ILocationPolicy); - /** - * Converts this EnumOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** LocationPolicy allowedLocations. */ + public allowedLocations: string[]; - /** - * Gets the default type url for EnumOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new LocationPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns LocationPolicy instance + */ + public static create(properties?: google.cloud.batch.v1.AllocationPolicy.ILocationPolicy): google.cloud.batch.v1.AllocationPolicy.LocationPolicy; - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { + /** + * Encodes the specified LocationPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify|verify} messages. + * @param message LocationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.AllocationPolicy.ILocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnumValueOptions deprecated */ - deprecated?: (boolean|null); + /** + * Encodes the specified LocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify|verify} messages. + * @param message LocationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.ILocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnumValueOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } + /** + * Decodes a LocationPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocationPolicy + * @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.batch.v1.AllocationPolicy.LocationPolicy; - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { + /** + * Decodes a LocationPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocationPolicy + * @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.batch.v1.AllocationPolicy.LocationPolicy; - /** - * Constructs a new EnumValueOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumValueOptions); + /** + * Verifies a LocationPolicy 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); - /** EnumValueOptions deprecated. */ - public deprecated: boolean; + /** + * Creates a LocationPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocationPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.LocationPolicy; - /** EnumValueOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** + * Creates a plain object from a LocationPolicy message. Also converts values to other types if specified. + * @param message LocationPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.AllocationPolicy.LocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueOptions instance - */ - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + /** + * Converts this LocationPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for LocationPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a Disk. */ + interface IDisk { - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumValueOptions - * @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.protobuf.EnumValueOptions; + /** Disk image */ + image?: (string|null); - /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumValueOptions - * @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.protobuf.EnumValueOptions; + /** Disk snapshot */ + snapshot?: (string|null); - /** - * Verifies an EnumValueOptions 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); + /** Disk type */ + type?: (string|null); - /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumValueOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + /** Disk sizeGb */ + sizeGb?: (number|Long|string|null); - /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @param message EnumValueOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Disk diskInterface */ + diskInterface?: (string|null); + } - /** - * Converts this EnumValueOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a Disk. */ + class Disk implements IDisk { - /** - * Gets the default type url for EnumValueOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new Disk. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IDisk); - /** Properties of a ServiceOptions. */ - interface IServiceOptions { + /** Disk image. */ + public image?: (string|null); - /** ServiceOptions deprecated */ - deprecated?: (boolean|null); + /** Disk snapshot. */ + public snapshot?: (string|null); - /** ServiceOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** Disk type. */ + public type: string; - /** ServiceOptions .google.api.defaultHost */ - ".google.api.defaultHost"?: (string|null); + /** Disk sizeGb. */ + public sizeGb: (number|Long|string); - /** ServiceOptions .google.api.oauthScopes */ - ".google.api.oauthScopes"?: (string|null); - } + /** Disk diskInterface. */ + public diskInterface: string; - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { + /** Disk dataSource. */ + public dataSource?: ("image"|"snapshot"); - /** - * Constructs a new ServiceOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IServiceOptions); + /** + * Creates a new Disk instance using the specified properties. + * @param [properties] Properties to set + * @returns Disk instance + */ + public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IDisk): google.cloud.batch.v1.AllocationPolicy.Disk; - /** ServiceOptions deprecated. */ - public deprecated: boolean; + /** + * Encodes the specified Disk message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Disk.verify|verify} messages. + * @param message Disk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.AllocationPolicy.IDisk, writer?: $protobuf.Writer): $protobuf.Writer; - /** ServiceOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** + * Encodes the specified Disk message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Disk.verify|verify} messages. + * @param message Disk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IDisk, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ServiceOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceOptions instance - */ - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + /** + * Decodes a Disk message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Disk + * @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.batch.v1.AllocationPolicy.Disk; - /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Disk message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Disk + * @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.batch.v1.AllocationPolicy.Disk; - /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a Disk 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); - /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceOptions - * @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.protobuf.ServiceOptions; + /** + * Creates a Disk message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Disk + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.Disk; - /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceOptions - * @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.protobuf.ServiceOptions; + /** + * Creates a plain object from a Disk message. Also converts values to other types if specified. + * @param message Disk + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.AllocationPolicy.Disk, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a ServiceOptions 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); + /** + * Converts this Disk to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + /** + * Gets the default type url for Disk + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @param message ServiceOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an AttachedDisk. */ + interface IAttachedDisk { - /** - * Converts this ServiceOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AttachedDisk newDisk */ + newDisk?: (google.cloud.batch.v1.AllocationPolicy.IDisk|null); - /** - * Gets the default type url for ServiceOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** AttachedDisk existingDisk */ + existingDisk?: (string|null); + + /** AttachedDisk deviceName */ + deviceName?: (string|null); + } - /** Properties of a MethodOptions. */ - interface IMethodOptions { + /** Represents an AttachedDisk. */ + class AttachedDisk implements IAttachedDisk { - /** MethodOptions deprecated */ - deprecated?: (boolean|null); + /** + * Constructs a new AttachedDisk. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk); - /** MethodOptions idempotencyLevel */ - idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); + /** AttachedDisk newDisk. */ + public newDisk?: (google.cloud.batch.v1.AllocationPolicy.IDisk|null); - /** MethodOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** AttachedDisk existingDisk. */ + public existingDisk?: (string|null); - /** MethodOptions .google.api.http */ - ".google.api.http"?: (google.api.IHttpRule|null); + /** AttachedDisk deviceName. */ + public deviceName: string; - /** MethodOptions .google.api.methodSignature */ - ".google.api.methodSignature"?: (string[]|null); + /** AttachedDisk attached. */ + public attached?: ("newDisk"|"existingDisk"); - /** MethodOptions .google.longrunning.operationInfo */ - ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null); - } + /** + * Creates a new AttachedDisk instance using the specified properties. + * @param [properties] Properties to set + * @returns AttachedDisk instance + */ + public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk): google.cloud.batch.v1.AllocationPolicy.AttachedDisk; - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { + /** + * Encodes the specified AttachedDisk message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify|verify} messages. + * @param message AttachedDisk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new MethodOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMethodOptions); + /** + * Encodes the specified AttachedDisk message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify|verify} messages. + * @param message AttachedDisk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; - /** MethodOptions deprecated. */ - public deprecated: boolean; + /** + * Decodes an AttachedDisk message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AttachedDisk + * @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.batch.v1.AllocationPolicy.AttachedDisk; - /** MethodOptions idempotencyLevel. */ - public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + /** + * Decodes an AttachedDisk message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AttachedDisk + * @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.batch.v1.AllocationPolicy.AttachedDisk; - /** MethodOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** + * Verifies an AttachedDisk 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 new MethodOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodOptions instance - */ - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + /** + * Creates an AttachedDisk message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AttachedDisk + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.AttachedDisk; - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an AttachedDisk message. Also converts values to other types if specified. + * @param message AttachedDisk + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.AllocationPolicy.AttachedDisk, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this AttachedDisk to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MethodOptions - * @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.protobuf.MethodOptions; + /** + * Gets the default type url for AttachedDisk + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MethodOptions - * @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.protobuf.MethodOptions; + /** Properties of an Accelerator. */ + interface IAccelerator { - /** - * Verifies a MethodOptions 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); + /** Accelerator type */ + type?: (string|null); - /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MethodOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + /** Accelerator count */ + count?: (number|Long|string|null); - /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @param message MethodOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Accelerator installGpuDrivers */ + installGpuDrivers?: (boolean|null); + } - /** - * Converts this MethodOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents an Accelerator. */ + class Accelerator implements IAccelerator { - /** - * Gets the default type url for MethodOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new Accelerator. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IAccelerator); - namespace MethodOptions { + /** Accelerator type. */ + public type: string; - /** IdempotencyLevel enum. */ - enum IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - NO_SIDE_EFFECTS = 1, - IDEMPOTENT = 2 - } - } + /** Accelerator count. */ + public count: (number|Long|string); - /** Properties of an UninterpretedOption. */ - interface IUninterpretedOption { + /** Accelerator installGpuDrivers. */ + public installGpuDrivers: boolean; - /** UninterpretedOption name */ - name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + /** + * Creates a new Accelerator instance using the specified properties. + * @param [properties] Properties to set + * @returns Accelerator instance + */ + public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IAccelerator): google.cloud.batch.v1.AllocationPolicy.Accelerator; - /** UninterpretedOption identifierValue */ - identifierValue?: (string|null); + /** + * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Accelerator.verify|verify} messages. + * @param message Accelerator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.AllocationPolicy.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; - /** UninterpretedOption positiveIntValue */ - positiveIntValue?: (number|Long|string|null); + /** + * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Accelerator.verify|verify} messages. + * @param message Accelerator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; - /** UninterpretedOption negativeIntValue */ - negativeIntValue?: (number|Long|string|null); + /** + * Decodes an Accelerator message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Accelerator + * @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.batch.v1.AllocationPolicy.Accelerator; + + /** + * Decodes an Accelerator message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Accelerator + * @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.batch.v1.AllocationPolicy.Accelerator; - /** UninterpretedOption doubleValue */ - doubleValue?: (number|null); + /** + * Verifies an Accelerator 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); - /** UninterpretedOption stringValue */ - stringValue?: (Uint8Array|string|null); + /** + * Creates an Accelerator message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Accelerator + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.Accelerator; - /** UninterpretedOption aggregateValue */ - aggregateValue?: (string|null); - } + /** + * Creates a plain object from an Accelerator message. Also converts values to other types if specified. + * @param message Accelerator + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.AllocationPolicy.Accelerator, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { + /** + * Converts this Accelerator to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new UninterpretedOption. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IUninterpretedOption); + /** + * Gets the default type url for Accelerator + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; + /** Properties of an InstancePolicy. */ + interface IInstancePolicy { - /** UninterpretedOption identifierValue. */ - public identifierValue: string; + /** InstancePolicy machineType */ + machineType?: (string|null); - /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: (number|Long|string); + /** InstancePolicy minCpuPlatform */ + minCpuPlatform?: (string|null); - /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: (number|Long|string); + /** InstancePolicy provisioningModel */ + provisioningModel?: (google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|null); - /** UninterpretedOption doubleValue. */ - public doubleValue: number; + /** InstancePolicy accelerators */ + accelerators?: (google.cloud.batch.v1.AllocationPolicy.IAccelerator[]|null); - /** UninterpretedOption stringValue. */ - public stringValue: (Uint8Array|string); + /** InstancePolicy bootDisk */ + bootDisk?: (google.cloud.batch.v1.AllocationPolicy.IDisk|null); - /** UninterpretedOption aggregateValue. */ - public aggregateValue: string; + /** InstancePolicy disks */ + disks?: (google.cloud.batch.v1.AllocationPolicy.IAttachedDisk[]|null); + } - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @param [properties] Properties to set - * @returns UninterpretedOption instance - */ - public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + /** Represents an InstancePolicy. */ + class InstancePolicy implements IInstancePolicy { - /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new InstancePolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IInstancePolicy); - /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstancePolicy machineType. */ + public machineType: string; - /** - * Decodes an UninterpretedOption message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UninterpretedOption - * @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.protobuf.UninterpretedOption; + /** InstancePolicy minCpuPlatform. */ + public minCpuPlatform: string; - /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UninterpretedOption - * @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.protobuf.UninterpretedOption; + /** InstancePolicy provisioningModel. */ + public provisioningModel: (google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1.AllocationPolicy.ProvisioningModel); - /** - * Verifies an UninterpretedOption 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); + /** InstancePolicy accelerators. */ + public accelerators: google.cloud.batch.v1.AllocationPolicy.IAccelerator[]; - /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UninterpretedOption - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + /** InstancePolicy bootDisk. */ + public bootDisk?: (google.cloud.batch.v1.AllocationPolicy.IDisk|null); - /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. - * @param message UninterpretedOption - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** InstancePolicy disks. */ + public disks: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk[]; - /** - * Converts this UninterpretedOption to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new InstancePolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns InstancePolicy instance + */ + public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IInstancePolicy): google.cloud.batch.v1.AllocationPolicy.InstancePolicy; - /** - * Gets the default type url for UninterpretedOption - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified InstancePolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify|verify} messages. + * @param message InstancePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.AllocationPolicy.IInstancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; - namespace UninterpretedOption { + /** + * Encodes the specified InstancePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify|verify} messages. + * @param message InstancePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IInstancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a NamePart. */ - interface INamePart { + /** + * Decodes an InstancePolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstancePolicy + * @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.batch.v1.AllocationPolicy.InstancePolicy; - /** NamePart namePart */ - namePart: string; + /** + * Decodes an InstancePolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstancePolicy + * @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.batch.v1.AllocationPolicy.InstancePolicy; - /** NamePart isExtension */ - isExtension: boolean; - } + /** + * Verifies an InstancePolicy 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); - /** Represents a NamePart. */ - class NamePart implements INamePart { + /** + * Creates an InstancePolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstancePolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.InstancePolicy; - /** - * Constructs a new NamePart. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + /** + * Creates a plain object from an InstancePolicy message. Also converts values to other types if specified. + * @param message InstancePolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.AllocationPolicy.InstancePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** NamePart namePart. */ - public namePart: string; + /** + * Converts this InstancePolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** NamePart isExtension. */ - public isExtension: boolean; + /** + * Gets the default type url for InstancePolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new NamePart instance using the specified properties. - * @param [properties] Properties to set - * @returns NamePart instance - */ - public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + /** Properties of an InstancePolicyOrTemplate. */ + interface IInstancePolicyOrTemplate { - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstancePolicyOrTemplate policy */ + policy?: (google.cloud.batch.v1.AllocationPolicy.IInstancePolicy|null); - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstancePolicyOrTemplate instanceTemplate */ + instanceTemplate?: (string|null); - /** - * Decodes a NamePart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamePart - * @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.protobuf.UninterpretedOption.NamePart; + /** InstancePolicyOrTemplate installGpuDrivers */ + installGpuDrivers?: (boolean|null); + } - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NamePart - * @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.protobuf.UninterpretedOption.NamePart; + /** Represents an InstancePolicyOrTemplate. */ + class InstancePolicyOrTemplate implements IInstancePolicyOrTemplate { - /** - * Verifies a NamePart 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); + /** + * Constructs a new InstancePolicyOrTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate); - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NamePart - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + /** InstancePolicyOrTemplate policy. */ + public policy?: (google.cloud.batch.v1.AllocationPolicy.IInstancePolicy|null); - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @param message NamePart - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** InstancePolicyOrTemplate instanceTemplate. */ + public instanceTemplate?: (string|null); - /** - * Converts this NamePart to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** InstancePolicyOrTemplate installGpuDrivers. */ + public installGpuDrivers: boolean; - /** - * Gets the default type url for NamePart - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** InstancePolicyOrTemplate policyTemplate. */ + public policyTemplate?: ("policy"|"instanceTemplate"); - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { + /** + * Creates a new InstancePolicyOrTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns InstancePolicyOrTemplate instance + */ + public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate): google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate; - /** SourceCodeInfo location */ - location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); - } + /** + * Encodes the specified InstancePolicyOrTemplate message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. + * @param message InstancePolicyOrTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { + /** + * Encodes the specified InstancePolicyOrTemplate message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. + * @param message InstancePolicyOrTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new SourceCodeInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ISourceCodeInfo); + /** + * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstancePolicyOrTemplate + * @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.batch.v1.AllocationPolicy.InstancePolicyOrTemplate; - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; + /** + * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstancePolicyOrTemplate + * @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.batch.v1.AllocationPolicy.InstancePolicyOrTemplate; - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceCodeInfo instance - */ - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + /** + * Verifies an InstancePolicyOrTemplate 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); - /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an InstancePolicyOrTemplate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstancePolicyOrTemplate + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate; - /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an InstancePolicyOrTemplate message. Also converts values to other types if specified. + * @param message InstancePolicyOrTemplate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceCodeInfo - * @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.protobuf.SourceCodeInfo; + /** + * Converts this InstancePolicyOrTemplate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceCodeInfo - * @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.protobuf.SourceCodeInfo; + /** + * Gets the default type url for InstancePolicyOrTemplate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a SourceCodeInfo 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); + /** Properties of a NetworkInterface. */ + interface INetworkInterface { - /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SourceCodeInfo - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + /** NetworkInterface network */ + network?: (string|null); - /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @param message SourceCodeInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NetworkInterface subnetwork */ + subnetwork?: (string|null); - /** - * Converts this SourceCodeInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** NetworkInterface noExternalIpAddress */ + noExternalIpAddress?: (boolean|null); + } - /** - * Gets the default type url for SourceCodeInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a NetworkInterface. */ + class NetworkInterface implements INetworkInterface { - namespace SourceCodeInfo { + /** + * Constructs a new NetworkInterface. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.AllocationPolicy.INetworkInterface); - /** Properties of a Location. */ - interface ILocation { + /** NetworkInterface network. */ + public network: string; - /** Location path */ - path?: (number[]|null); + /** NetworkInterface subnetwork. */ + public subnetwork: string; - /** Location span */ - span?: (number[]|null); + /** NetworkInterface noExternalIpAddress. */ + public noExternalIpAddress: boolean; - /** Location leadingComments */ - leadingComments?: (string|null); + /** + * Creates a new NetworkInterface instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkInterface instance + */ + public static create(properties?: google.cloud.batch.v1.AllocationPolicy.INetworkInterface): google.cloud.batch.v1.AllocationPolicy.NetworkInterface; - /** Location trailingComments */ - trailingComments?: (string|null); + /** + * Encodes the specified NetworkInterface message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify|verify} messages. + * @param message NetworkInterface message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.AllocationPolicy.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer; - /** Location leadingDetachedComments */ - leadingDetachedComments?: (string[]|null); - } + /** + * Encodes the specified NetworkInterface message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify|verify} messages. + * @param message NetworkInterface message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Location. */ - class Location implements ILocation { + /** + * Decodes a NetworkInterface message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkInterface + * @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.batch.v1.AllocationPolicy.NetworkInterface; - /** - * Constructs a new Location. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + /** + * Decodes a NetworkInterface message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkInterface + * @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.batch.v1.AllocationPolicy.NetworkInterface; - /** Location path. */ - public path: number[]; + /** + * Verifies a NetworkInterface 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); - /** Location span. */ - public span: number[]; + /** + * Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkInterface + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.NetworkInterface; - /** Location leadingComments. */ - public leadingComments: string; + /** + * Creates a plain object from a NetworkInterface message. Also converts values to other types if specified. + * @param message NetworkInterface + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.AllocationPolicy.NetworkInterface, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Location trailingComments. */ - public trailingComments: string; + /** + * Converts this NetworkInterface to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Location leadingDetachedComments. */ - public leadingDetachedComments: string[]; + /** + * Gets the default type url for NetworkInterface + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new Location instance using the specified properties. - * @param [properties] Properties to set - * @returns Location instance - */ - public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + /** Properties of a NetworkPolicy. */ + interface INetworkPolicy { - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** NetworkPolicy networkInterfaces */ + networkInterfaces?: (google.cloud.batch.v1.AllocationPolicy.INetworkInterface[]|null); + } - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a NetworkPolicy. */ + class NetworkPolicy implements INetworkPolicy { - /** - * Decodes a Location message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Location - * @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.protobuf.SourceCodeInfo.Location; + /** + * Constructs a new NetworkPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.AllocationPolicy.INetworkPolicy); - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Location - * @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.protobuf.SourceCodeInfo.Location; + /** NetworkPolicy networkInterfaces. */ + public networkInterfaces: google.cloud.batch.v1.AllocationPolicy.INetworkInterface[]; - /** - * Verifies a Location 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 new NetworkPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkPolicy instance + */ + public static create(properties?: google.cloud.batch.v1.AllocationPolicy.INetworkPolicy): google.cloud.batch.v1.AllocationPolicy.NetworkPolicy; - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Location - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + /** + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.AllocationPolicy.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @param message Location - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this Location to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a NetworkPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkPolicy + * @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.batch.v1.AllocationPolicy.NetworkPolicy; - /** - * Gets the default type url for Location - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkPolicy + * @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.batch.v1.AllocationPolicy.NetworkPolicy; - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { + /** + * Verifies a NetworkPolicy 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); - /** GeneratedCodeInfo annotation */ - annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); - } + /** + * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.NetworkPolicy; - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { + /** + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * @param message NetworkPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.AllocationPolicy.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new GeneratedCodeInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IGeneratedCodeInfo); + /** + * Converts this NetworkPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + /** + * Gets the default type url for NetworkPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns GeneratedCodeInfo instance - */ - public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + /** ProvisioningModel enum. */ + enum ProvisioningModel { + PROVISIONING_MODEL_UNSPECIFIED = 0, + STANDARD = 1, + SPOT = 2, + PREEMPTIBLE = 3 + } + } - /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a TaskGroup. */ + interface ITaskGroup { - /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** TaskGroup name */ + name?: (string|null); - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GeneratedCodeInfo - * @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.protobuf.GeneratedCodeInfo; + /** TaskGroup taskSpec */ + taskSpec?: (google.cloud.batch.v1.ITaskSpec|null); - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GeneratedCodeInfo - * @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.protobuf.GeneratedCodeInfo; + /** TaskGroup taskCount */ + taskCount?: (number|Long|string|null); - /** - * Verifies a GeneratedCodeInfo 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); + /** TaskGroup parallelism */ + parallelism?: (number|Long|string|null); - /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GeneratedCodeInfo - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + /** TaskGroup taskEnvironments */ + taskEnvironments?: (google.cloud.batch.v1.IEnvironment[]|null); - /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. - * @param message GeneratedCodeInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TaskGroup taskCountPerNode */ + taskCountPerNode?: (number|Long|string|null); - /** - * Converts this GeneratedCodeInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TaskGroup requireHostsFile */ + requireHostsFile?: (boolean|null); - /** - * Gets the default type url for GeneratedCodeInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TaskGroup permissiveSsh */ + permissiveSsh?: (boolean|null); + } - namespace GeneratedCodeInfo { + /** Represents a TaskGroup. */ + class TaskGroup implements ITaskGroup { - /** Properties of an Annotation. */ - interface IAnnotation { + /** + * Constructs a new TaskGroup. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.ITaskGroup); - /** Annotation path */ - path?: (number[]|null); + /** TaskGroup name. */ + public name: string; - /** Annotation sourceFile */ - sourceFile?: (string|null); + /** TaskGroup taskSpec. */ + public taskSpec?: (google.cloud.batch.v1.ITaskSpec|null); - /** Annotation begin */ - begin?: (number|null); + /** TaskGroup taskCount. */ + public taskCount: (number|Long|string); - /** Annotation end */ - end?: (number|null); + /** TaskGroup parallelism. */ + public parallelism: (number|Long|string); - /** Annotation semantic */ - semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); - } + /** TaskGroup taskEnvironments. */ + public taskEnvironments: google.cloud.batch.v1.IEnvironment[]; - /** Represents an Annotation. */ - class Annotation implements IAnnotation { + /** TaskGroup taskCountPerNode. */ + public taskCountPerNode: (number|Long|string); - /** - * Constructs a new Annotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + /** TaskGroup requireHostsFile. */ + public requireHostsFile: boolean; - /** Annotation path. */ - public path: number[]; + /** TaskGroup permissiveSsh. */ + public permissiveSsh: boolean; - /** Annotation sourceFile. */ - public sourceFile: string; + /** + * Creates a new TaskGroup instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskGroup instance + */ + public static create(properties?: google.cloud.batch.v1.ITaskGroup): google.cloud.batch.v1.TaskGroup; - /** Annotation begin. */ - public begin: number; + /** + * Encodes the specified TaskGroup message. Does not implicitly {@link google.cloud.batch.v1.TaskGroup.verify|verify} messages. + * @param message TaskGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.ITaskGroup, writer?: $protobuf.Writer): $protobuf.Writer; - /** Annotation end. */ - public end: number; + /** + * Encodes the specified TaskGroup message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskGroup.verify|verify} messages. + * @param message TaskGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.ITaskGroup, writer?: $protobuf.Writer): $protobuf.Writer; - /** Annotation semantic. */ - public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic); + /** + * Decodes a TaskGroup message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskGroup + * @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.batch.v1.TaskGroup; - /** - * Creates a new Annotation instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotation instance - */ - public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + /** + * Decodes a TaskGroup message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TaskGroup + * @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.batch.v1.TaskGroup; - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a TaskGroup 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); - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a TaskGroup message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TaskGroup + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.TaskGroup; - /** - * Decodes an Annotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Annotation - * @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.protobuf.GeneratedCodeInfo.Annotation; + /** + * Creates a plain object from a TaskGroup message. Also converts values to other types if specified. + * @param message TaskGroup + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.TaskGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Annotation - * @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.protobuf.GeneratedCodeInfo.Annotation; + /** + * Converts this TaskGroup to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies an Annotation 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); + /** + * Gets the default type url for TaskGroup + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Annotation - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + /** Properties of a ServiceAccount. */ + interface IServiceAccount { - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @param message Annotation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ServiceAccount email */ + email?: (string|null); - /** - * Converts this Annotation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ServiceAccount scopes */ + scopes?: (string[]|null); + } - /** - * Gets the default type url for Annotation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a ServiceAccount. */ + class ServiceAccount implements IServiceAccount { - namespace Annotation { + /** + * Constructs a new ServiceAccount. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IServiceAccount); - /** Semantic enum. */ - enum Semantic { - NONE = 0, - SET = 1, - ALIAS = 2 - } - } - } + /** ServiceAccount email. */ + public email: string; - /** Properties of a Duration. */ - interface IDuration { + /** ServiceAccount scopes. */ + public scopes: string[]; - /** Duration seconds */ - seconds?: (number|Long|string|null); + /** + * Creates a new ServiceAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceAccount instance + */ + public static create(properties?: google.cloud.batch.v1.IServiceAccount): google.cloud.batch.v1.ServiceAccount; - /** Duration nanos */ - nanos?: (number|null); - } + /** + * Encodes the specified ServiceAccount message. Does not implicitly {@link google.cloud.batch.v1.ServiceAccount.verify|verify} messages. + * @param message ServiceAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IServiceAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Duration. */ - class Duration implements IDuration { + /** + * Encodes the specified ServiceAccount message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ServiceAccount.verify|verify} messages. + * @param message ServiceAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IServiceAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Duration. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDuration); + /** + * Decodes a ServiceAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceAccount + * @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.batch.v1.ServiceAccount; - /** Duration seconds. */ - public seconds: (number|Long|string); + /** + * Decodes a ServiceAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceAccount + * @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.batch.v1.ServiceAccount; - /** Duration nanos. */ - public nanos: number; + /** + * Verifies a ServiceAccount 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 new Duration instance using the specified properties. - * @param [properties] Properties to set - * @returns Duration instance - */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + /** + * Creates a ServiceAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceAccount + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ServiceAccount; - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a ServiceAccount message. Also converts values to other types if specified. + * @param message ServiceAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.ServiceAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ServiceAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a Duration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Duration - * @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.protobuf.Duration; + /** + * Gets the default type url for ServiceAccount + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a Duration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Duration - * @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.protobuf.Duration; + /** Properties of a ComputeResource. */ + interface IComputeResource { - /** - * Verifies a Duration 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); + /** ComputeResource cpuMilli */ + cpuMilli?: (number|Long|string|null); - /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Duration - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + /** ComputeResource memoryMib */ + memoryMib?: (number|Long|string|null); - /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @param message Duration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ComputeResource bootDiskMib */ + bootDiskMib?: (number|Long|string|null); + } - /** - * Converts this Duration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a ComputeResource. */ + class ComputeResource implements IComputeResource { - /** - * Gets the default type url for Duration - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new ComputeResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IComputeResource); - /** Properties of a Timestamp. */ - interface ITimestamp { + /** ComputeResource cpuMilli. */ + public cpuMilli: (number|Long|string); - /** Timestamp seconds */ - seconds?: (number|Long|string|null); + /** ComputeResource memoryMib. */ + public memoryMib: (number|Long|string); - /** Timestamp nanos */ - nanos?: (number|null); - } + /** ComputeResource bootDiskMib. */ + public bootDiskMib: (number|Long|string); - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** + * Creates a new ComputeResource instance using the specified properties. + * @param [properties] Properties to set + * @returns ComputeResource instance + */ + public static create(properties?: google.cloud.batch.v1.IComputeResource): google.cloud.batch.v1.ComputeResource; - /** - * Constructs a new Timestamp. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ITimestamp); + /** + * Encodes the specified ComputeResource message. Does not implicitly {@link google.cloud.batch.v1.ComputeResource.verify|verify} messages. + * @param message ComputeResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IComputeResource, writer?: $protobuf.Writer): $protobuf.Writer; - /** Timestamp seconds. */ - public seconds: (number|Long|string); + /** + * Encodes the specified ComputeResource message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ComputeResource.verify|verify} messages. + * @param message ComputeResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IComputeResource, writer?: $protobuf.Writer): $protobuf.Writer; - /** Timestamp nanos. */ - public nanos: number; + /** + * Decodes a ComputeResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComputeResource + * @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.batch.v1.ComputeResource; - /** - * Creates a new Timestamp instance using the specified properties. - * @param [properties] Properties to set - * @returns Timestamp instance - */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + /** + * Decodes a ComputeResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ComputeResource + * @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.batch.v1.ComputeResource; - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a ComputeResource 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); - /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a ComputeResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ComputeResource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ComputeResource; - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Timestamp - * @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.protobuf.Timestamp; + /** + * Creates a plain object from a ComputeResource message. Also converts values to other types if specified. + * @param message ComputeResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.ComputeResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Timestamp - * @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.protobuf.Timestamp; + /** + * Converts this ComputeResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies a Timestamp 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); + /** + * Gets the default type url for ComputeResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Timestamp - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + /** Properties of a StatusEvent. */ + interface IStatusEvent { - /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @param message Timestamp - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** StatusEvent type */ + type?: (string|null); - /** - * Converts this Timestamp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** StatusEvent description */ + description?: (string|null); - /** - * Gets the default type url for Timestamp - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** StatusEvent eventTime */ + eventTime?: (google.protobuf.ITimestamp|null); - /** Properties of an Any. */ - interface IAny { + /** StatusEvent taskExecution */ + taskExecution?: (google.cloud.batch.v1.ITaskExecution|null); + } - /** Any type_url */ - type_url?: (string|null); + /** Represents a StatusEvent. */ + class StatusEvent implements IStatusEvent { - /** Any value */ - value?: (Uint8Array|string|null); - } + /** + * Constructs a new StatusEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IStatusEvent); - /** Represents an Any. */ - class Any implements IAny { + /** StatusEvent type. */ + public type: string; - /** - * Constructs a new Any. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IAny); + /** StatusEvent description. */ + public description: string; - /** Any type_url. */ - public type_url: string; + /** StatusEvent eventTime. */ + public eventTime?: (google.protobuf.ITimestamp|null); - /** Any value. */ - public value: (Uint8Array|string); + /** StatusEvent taskExecution. */ + public taskExecution?: (google.cloud.batch.v1.ITaskExecution|null); - /** - * Creates a new Any instance using the specified properties. - * @param [properties] Properties to set - * @returns Any instance - */ - public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + /** + * Creates a new StatusEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns StatusEvent instance + */ + public static create(properties?: google.cloud.batch.v1.IStatusEvent): google.cloud.batch.v1.StatusEvent; - /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified StatusEvent message. Does not implicitly {@link google.cloud.batch.v1.StatusEvent.verify|verify} messages. + * @param message StatusEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.IStatusEvent, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified StatusEvent message, length delimited. Does not implicitly {@link google.cloud.batch.v1.StatusEvent.verify|verify} messages. + * @param message StatusEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.IStatusEvent, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an Any message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Any - * @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.protobuf.Any; + /** + * Decodes a StatusEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StatusEvent + * @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.batch.v1.StatusEvent; - /** - * Decodes an Any message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Any - * @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.protobuf.Any; + /** + * Decodes a StatusEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StatusEvent + * @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.batch.v1.StatusEvent; - /** - * Verifies an Any 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); + /** + * Verifies a StatusEvent 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 an Any message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Any - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + /** + * Creates a StatusEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StatusEvent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.StatusEvent; - /** - * Creates a plain object from an Any message. Also converts values to other types if specified. - * @param message Any - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a StatusEvent message. Also converts values to other types if specified. + * @param message StatusEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.StatusEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Any to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this StatusEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Any - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Gets the default type url for StatusEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Namespace cloud. */ - namespace cloud { + /** Properties of a TaskExecution. */ + interface ITaskExecution { - /** Namespace batch. */ - namespace batch { + /** TaskExecution exitCode */ + exitCode?: (number|null); + } - /** Namespace v1. */ - namespace v1 { + /** Represents a TaskExecution. */ + class TaskExecution implements ITaskExecution { - /** Represents a BatchService */ - class BatchService extends $protobuf.rpc.Service { + /** + * Constructs a new TaskExecution. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.ITaskExecution); + + /** TaskExecution exitCode. */ + public exitCode: number; /** - * Constructs a new BatchService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a new TaskExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecution instance */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(properties?: google.cloud.batch.v1.ITaskExecution): google.cloud.batch.v1.TaskExecution; /** - * Creates new BatchService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified TaskExecution message. Does not implicitly {@link google.cloud.batch.v1.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): BatchService; + public static encode(message: google.cloud.batch.v1.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateJob. - * @param request CreateJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Job + * Encodes the specified TaskExecution message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createJob(request: google.cloud.batch.v1.ICreateJobRequest, callback: google.cloud.batch.v1.BatchService.CreateJobCallback): void; + public static encodeDelimited(message: google.cloud.batch.v1.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateJob. - * @param request CreateJobRequest message or plain object - * @returns Promise + * Decodes a TaskExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createJob(request: google.cloud.batch.v1.ICreateJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1.TaskExecution; /** - * Calls GetJob. - * @param request GetJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Job + * Decodes a TaskExecution message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getJob(request: google.cloud.batch.v1.IGetJobRequest, callback: google.cloud.batch.v1.BatchService.GetJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.TaskExecution; /** - * Calls GetJob. - * @param request GetJobRequest message or plain object - * @returns Promise + * Verifies a TaskExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getJob(request: google.cloud.batch.v1.IGetJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteJob. - * @param request DeleteJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a TaskExecution message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TaskExecution */ - public deleteJob(request: google.cloud.batch.v1.IDeleteJobRequest, callback: google.cloud.batch.v1.BatchService.DeleteJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.TaskExecution; /** - * Calls DeleteJob. - * @param request DeleteJobRequest message or plain object - * @returns Promise + * Creates a plain object from a TaskExecution message. Also converts values to other types if specified. + * @param message TaskExecution + * @param [options] Conversion options + * @returns Plain object */ - public deleteJob(request: google.cloud.batch.v1.IDeleteJobRequest): Promise; + public static toObject(message: google.cloud.batch.v1.TaskExecution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListJobs. - * @param request ListJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListJobsResponse + * Converts this TaskExecution to JSON. + * @returns JSON object */ - public listJobs(request: google.cloud.batch.v1.IListJobsRequest, callback: google.cloud.batch.v1.BatchService.ListJobsCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ListJobs. - * @param request ListJobsRequest message or plain object - * @returns Promise + * Gets the default type url for TaskExecution + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listJobs(request: google.cloud.batch.v1.IListJobsRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TaskStatus. */ + interface ITaskStatus { + + /** TaskStatus state */ + state?: (google.cloud.batch.v1.TaskStatus.State|keyof typeof google.cloud.batch.v1.TaskStatus.State|null); + + /** TaskStatus statusEvents */ + statusEvents?: (google.cloud.batch.v1.IStatusEvent[]|null); + } + + /** Represents a TaskStatus. */ + class TaskStatus implements ITaskStatus { /** - * Calls GetTask. - * @param request GetTaskRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Task + * Constructs a new TaskStatus. + * @param [properties] Properties to set */ - public getTask(request: google.cloud.batch.v1.IGetTaskRequest, callback: google.cloud.batch.v1.BatchService.GetTaskCallback): void; + constructor(properties?: google.cloud.batch.v1.ITaskStatus); + + /** TaskStatus state. */ + public state: (google.cloud.batch.v1.TaskStatus.State|keyof typeof google.cloud.batch.v1.TaskStatus.State); + + /** TaskStatus statusEvents. */ + public statusEvents: google.cloud.batch.v1.IStatusEvent[]; /** - * Calls GetTask. - * @param request GetTaskRequest message or plain object - * @returns Promise + * Creates a new TaskStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskStatus instance */ - public getTask(request: google.cloud.batch.v1.IGetTaskRequest): Promise; + public static create(properties?: google.cloud.batch.v1.ITaskStatus): google.cloud.batch.v1.TaskStatus; /** - * Calls ListTasks. - * @param request ListTasksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTasksResponse + * Encodes the specified TaskStatus message. Does not implicitly {@link google.cloud.batch.v1.TaskStatus.verify|verify} messages. + * @param message TaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listTasks(request: google.cloud.batch.v1.IListTasksRequest, callback: google.cloud.batch.v1.BatchService.ListTasksCallback): void; + public static encode(message: google.cloud.batch.v1.ITaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListTasks. - * @param request ListTasksRequest message or plain object - * @returns Promise + * Encodes the specified TaskStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskStatus.verify|verify} messages. + * @param message TaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listTasks(request: google.cloud.batch.v1.IListTasksRequest): Promise; - } + public static encodeDelimited(message: google.cloud.batch.v1.ITaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - namespace BatchService { + /** + * Decodes a TaskStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskStatus + * @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.batch.v1.TaskStatus; /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|createJob}. - * @param error Error, if any - * @param [response] Job + * Decodes a TaskStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateJobCallback = (error: (Error|null), response?: google.cloud.batch.v1.Job) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.TaskStatus; /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|getJob}. - * @param error Error, if any - * @param [response] Job + * Verifies a TaskStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetJobCallback = (error: (Error|null), response?: google.cloud.batch.v1.Job) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|deleteJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a TaskStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TaskStatus */ - type DeleteJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.TaskStatus; /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|listJobs}. - * @param error Error, if any - * @param [response] ListJobsResponse + * Creates a plain object from a TaskStatus message. Also converts values to other types if specified. + * @param message TaskStatus + * @param [options] Conversion options + * @returns Plain object */ - type ListJobsCallback = (error: (Error|null), response?: google.cloud.batch.v1.ListJobsResponse) => void; + public static toObject(message: google.cloud.batch.v1.TaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|getTask}. - * @param error Error, if any - * @param [response] Task + * Converts this TaskStatus to JSON. + * @returns JSON object */ - type GetTaskCallback = (error: (Error|null), response?: google.cloud.batch.v1.Task) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|listTasks}. - * @param error Error, if any - * @param [response] ListTasksResponse + * Gets the default type url for TaskStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListTasksCallback = (error: (Error|null), response?: google.cloud.batch.v1.ListTasksResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateJobRequest. */ - interface ICreateJobRequest { + namespace TaskStatus { - /** CreateJobRequest parent */ - parent?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + ASSIGNED = 2, + RUNNING = 3, + FAILED = 4, + SUCCEEDED = 5 + } + } - /** CreateJobRequest jobId */ - jobId?: (string|null); + /** Properties of a Runnable. */ + interface IRunnable { - /** CreateJobRequest job */ - job?: (google.cloud.batch.v1.IJob|null); + /** Runnable container */ + container?: (google.cloud.batch.v1.Runnable.IContainer|null); - /** CreateJobRequest requestId */ - requestId?: (string|null); + /** Runnable script */ + script?: (google.cloud.batch.v1.Runnable.IScript|null); + + /** Runnable barrier */ + barrier?: (google.cloud.batch.v1.Runnable.IBarrier|null); + + /** Runnable ignoreExitStatus */ + ignoreExitStatus?: (boolean|null); + + /** Runnable background */ + background?: (boolean|null); + + /** Runnable alwaysRun */ + alwaysRun?: (boolean|null); + + /** Runnable environment */ + environment?: (google.cloud.batch.v1.IEnvironment|null); + + /** Runnable timeout */ + timeout?: (google.protobuf.IDuration|null); } - /** Represents a CreateJobRequest. */ - class CreateJobRequest implements ICreateJobRequest { + /** Represents a Runnable. */ + class Runnable implements IRunnable { /** - * Constructs a new CreateJobRequest. + * Constructs a new Runnable. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.ICreateJobRequest); + constructor(properties?: google.cloud.batch.v1.IRunnable); - /** CreateJobRequest parent. */ - public parent: string; + /** Runnable container. */ + public container?: (google.cloud.batch.v1.Runnable.IContainer|null); - /** CreateJobRequest jobId. */ - public jobId: string; + /** Runnable script. */ + public script?: (google.cloud.batch.v1.Runnable.IScript|null); - /** CreateJobRequest job. */ - public job?: (google.cloud.batch.v1.IJob|null); + /** Runnable barrier. */ + public barrier?: (google.cloud.batch.v1.Runnable.IBarrier|null); - /** CreateJobRequest requestId. */ - public requestId: string; + /** Runnable ignoreExitStatus. */ + public ignoreExitStatus: boolean; + + /** Runnable background. */ + public background: boolean; + + /** Runnable alwaysRun. */ + public alwaysRun: boolean; + + /** Runnable environment. */ + public environment?: (google.cloud.batch.v1.IEnvironment|null); + + /** Runnable timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** Runnable executable. */ + public executable?: ("container"|"script"|"barrier"); /** - * Creates a new CreateJobRequest instance using the specified properties. + * Creates a new Runnable instance using the specified properties. * @param [properties] Properties to set - * @returns CreateJobRequest instance + * @returns Runnable instance */ - public static create(properties?: google.cloud.batch.v1.ICreateJobRequest): google.cloud.batch.v1.CreateJobRequest; + public static create(properties?: google.cloud.batch.v1.IRunnable): google.cloud.batch.v1.Runnable; /** - * Encodes the specified CreateJobRequest message. Does not implicitly {@link google.cloud.batch.v1.CreateJobRequest.verify|verify} messages. - * @param message CreateJobRequest message or plain object to encode + * Encodes the specified Runnable message. Does not implicitly {@link google.cloud.batch.v1.Runnable.verify|verify} messages. + * @param message Runnable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.ICreateJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1.IRunnable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.CreateJobRequest.verify|verify} messages. - * @param message CreateJobRequest message or plain object to encode + * Encodes the specified Runnable message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.verify|verify} messages. + * @param message Runnable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.ICreateJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1.IRunnable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateJobRequest message from the specified reader or buffer. + * Decodes a Runnable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateJobRequest + * @returns Runnable * @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.batch.v1.CreateJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1.Runnable; /** - * Decodes a CreateJobRequest message from the specified reader or buffer, length delimited. + * Decodes a Runnable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateJobRequest + * @returns Runnable * @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.batch.v1.CreateJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.Runnable; /** - * Verifies a CreateJobRequest message. + * Verifies a Runnable 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 CreateJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Runnable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateJobRequest + * @returns Runnable */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.CreateJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Runnable; /** - * Creates a plain object from a CreateJobRequest message. Also converts values to other types if specified. - * @param message CreateJobRequest + * Creates a plain object from a Runnable message. Also converts values to other types if specified. + * @param message Runnable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.CreateJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1.Runnable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateJobRequest to JSON. + * Converts this Runnable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateJobRequest + * Gets the default type url for Runnable * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetJobRequest. */ - interface IGetJobRequest { + namespace Runnable { - /** GetJobRequest name */ - name?: (string|null); - } + /** Properties of a Container. */ + interface IContainer { - /** Represents a GetJobRequest. */ - class GetJobRequest implements IGetJobRequest { + /** Container imageUri */ + imageUri?: (string|null); - /** - * Constructs a new GetJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.IGetJobRequest); + /** Container commands */ + commands?: (string[]|null); + + /** Container entrypoint */ + entrypoint?: (string|null); + + /** Container volumes */ + volumes?: (string[]|null); + + /** Container options */ + options?: (string|null); + + /** Container blockExternalNetwork */ + blockExternalNetwork?: (boolean|null); + + /** Container username */ + username?: (string|null); + + /** Container password */ + password?: (string|null); + } + + /** Represents a Container. */ + class Container implements IContainer { + + /** + * Constructs a new Container. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.Runnable.IContainer); + + /** Container imageUri. */ + public imageUri: string; + + /** Container commands. */ + public commands: string[]; + + /** Container entrypoint. */ + public entrypoint: string; + + /** Container volumes. */ + public volumes: string[]; + + /** Container options. */ + public options: string; + + /** Container blockExternalNetwork. */ + public blockExternalNetwork: boolean; + + /** Container username. */ + public username: string; + + /** Container password. */ + public password: string; + + /** + * Creates a new Container instance using the specified properties. + * @param [properties] Properties to set + * @returns Container instance + */ + public static create(properties?: google.cloud.batch.v1.Runnable.IContainer): google.cloud.batch.v1.Runnable.Container; + + /** + * Encodes the specified Container message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Container.verify|verify} messages. + * @param message Container message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.Runnable.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Container message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Container.verify|verify} messages. + * @param message Container message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.Runnable.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; - /** GetJobRequest name. */ - public name: string; + /** + * Decodes a Container message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Container + * @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.batch.v1.Runnable.Container; - /** - * Creates a new GetJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetJobRequest instance - */ - public static create(properties?: google.cloud.batch.v1.IGetJobRequest): google.cloud.batch.v1.GetJobRequest; + /** + * Decodes a Container message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Container + * @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.batch.v1.Runnable.Container; - /** - * Encodes the specified GetJobRequest message. Does not implicitly {@link google.cloud.batch.v1.GetJobRequest.verify|verify} messages. - * @param message GetJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a Container 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); - /** - * Encodes the specified GetJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GetJobRequest.verify|verify} messages. - * @param message GetJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a Container message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Container + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Runnable.Container; - /** - * Decodes a GetJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetJobRequest - * @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.batch.v1.GetJobRequest; + /** + * Creates a plain object from a Container message. Also converts values to other types if specified. + * @param message Container + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.Runnable.Container, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a GetJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetJobRequest - * @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.batch.v1.GetJobRequest; + /** + * Converts this Container to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies a GetJobRequest 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); + /** + * Gets the default type url for Container + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a GetJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.GetJobRequest; + /** Properties of a Script. */ + interface IScript { - /** - * Creates a plain object from a GetJobRequest message. Also converts values to other types if specified. - * @param message GetJobRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.GetJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Script path */ + path?: (string|null); - /** - * Converts this GetJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Script text */ + text?: (string|null); + } - /** - * Gets the default type url for GetJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a Script. */ + class Script implements IScript { - /** Properties of a DeleteJobRequest. */ - interface IDeleteJobRequest { + /** + * Constructs a new Script. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.Runnable.IScript); - /** DeleteJobRequest name */ - name?: (string|null); + /** Script path. */ + public path?: (string|null); - /** DeleteJobRequest reason */ - reason?: (string|null); + /** Script text. */ + public text?: (string|null); - /** DeleteJobRequest requestId */ - requestId?: (string|null); - } + /** Script command. */ + public command?: ("path"|"text"); - /** Represents a DeleteJobRequest. */ - class DeleteJobRequest implements IDeleteJobRequest { + /** + * Creates a new Script instance using the specified properties. + * @param [properties] Properties to set + * @returns Script instance + */ + public static create(properties?: google.cloud.batch.v1.Runnable.IScript): google.cloud.batch.v1.Runnable.Script; - /** - * Constructs a new DeleteJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.IDeleteJobRequest); + /** + * Encodes the specified Script message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Script.verify|verify} messages. + * @param message Script message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.Runnable.IScript, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeleteJobRequest name. */ - public name: string; + /** + * Encodes the specified Script message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Script.verify|verify} messages. + * @param message Script message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.Runnable.IScript, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeleteJobRequest reason. */ - public reason: string; + /** + * Decodes a Script message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Script + * @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.batch.v1.Runnable.Script; - /** DeleteJobRequest requestId. */ - public requestId: string; + /** + * Decodes a Script message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Script + * @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.batch.v1.Runnable.Script; - /** - * Creates a new DeleteJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteJobRequest instance - */ - public static create(properties?: google.cloud.batch.v1.IDeleteJobRequest): google.cloud.batch.v1.DeleteJobRequest; + /** + * Verifies a Script 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); - /** - * Encodes the specified DeleteJobRequest message. Does not implicitly {@link google.cloud.batch.v1.DeleteJobRequest.verify|verify} messages. - * @param message DeleteJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a Script message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Script + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Runnable.Script; - /** - * Encodes the specified DeleteJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.DeleteJobRequest.verify|verify} messages. - * @param message DeleteJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a Script message. Also converts values to other types if specified. + * @param message Script + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.Runnable.Script, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a DeleteJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteJobRequest - * @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.batch.v1.DeleteJobRequest; + /** + * Converts this Script to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a DeleteJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteJobRequest - * @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.batch.v1.DeleteJobRequest; + /** + * Gets the default type url for Script + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a DeleteJobRequest 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); + /** Properties of a Barrier. */ + interface IBarrier { - /** - * Creates a DeleteJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.DeleteJobRequest; + /** Barrier name */ + name?: (string|null); + } - /** - * Creates a plain object from a DeleteJobRequest message. Also converts values to other types if specified. - * @param message DeleteJobRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.DeleteJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a Barrier. */ + class Barrier implements IBarrier { - /** - * Converts this DeleteJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new Barrier. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.Runnable.IBarrier); - /** - * Gets the default type url for DeleteJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Barrier name. */ + public name: string; - /** Properties of a ListJobsRequest. */ - interface IListJobsRequest { + /** + * Creates a new Barrier instance using the specified properties. + * @param [properties] Properties to set + * @returns Barrier instance + */ + public static create(properties?: google.cloud.batch.v1.Runnable.IBarrier): google.cloud.batch.v1.Runnable.Barrier; - /** ListJobsRequest parent */ - parent?: (string|null); + /** + * Encodes the specified Barrier message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Barrier.verify|verify} messages. + * @param message Barrier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.Runnable.IBarrier, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListJobsRequest filter */ - filter?: (string|null); + /** + * Encodes the specified Barrier message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Barrier.verify|verify} messages. + * @param message Barrier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.Runnable.IBarrier, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListJobsRequest pageSize */ - pageSize?: (number|null); + /** + * Decodes a Barrier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Barrier + * @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.batch.v1.Runnable.Barrier; - /** ListJobsRequest pageToken */ - pageToken?: (string|null); - } + /** + * Decodes a Barrier message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Barrier + * @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.batch.v1.Runnable.Barrier; - /** Represents a ListJobsRequest. */ - class ListJobsRequest implements IListJobsRequest { + /** + * Verifies a Barrier 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); - /** - * Constructs a new ListJobsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.IListJobsRequest); + /** + * Creates a Barrier message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Barrier + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Runnable.Barrier; - /** ListJobsRequest parent. */ - public parent: string; + /** + * Creates a plain object from a Barrier message. Also converts values to other types if specified. + * @param message Barrier + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.Runnable.Barrier, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListJobsRequest filter. */ - public filter: string; + /** + * Converts this Barrier to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListJobsRequest pageSize. */ - public pageSize: number; + /** + * Gets the default type url for Barrier + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** ListJobsRequest pageToken. */ - public pageToken: string; + /** Properties of a TaskSpec. */ + interface ITaskSpec { - /** - * Creates a new ListJobsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListJobsRequest instance - */ - public static create(properties?: google.cloud.batch.v1.IListJobsRequest): google.cloud.batch.v1.ListJobsRequest; + /** TaskSpec runnables */ + runnables?: (google.cloud.batch.v1.IRunnable[]|null); - /** - * Encodes the specified ListJobsRequest message. Does not implicitly {@link google.cloud.batch.v1.ListJobsRequest.verify|verify} messages. - * @param message ListJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** TaskSpec computeResource */ + computeResource?: (google.cloud.batch.v1.IComputeResource|null); - /** - * Encodes the specified ListJobsRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListJobsRequest.verify|verify} messages. - * @param message ListJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** TaskSpec maxRunDuration */ + maxRunDuration?: (google.protobuf.IDuration|null); - /** - * Decodes a ListJobsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListJobsRequest - * @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.batch.v1.ListJobsRequest; + /** TaskSpec maxRetryCount */ + maxRetryCount?: (number|null); - /** - * Decodes a ListJobsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListJobsRequest - * @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.batch.v1.ListJobsRequest; + /** TaskSpec lifecyclePolicies */ + lifecyclePolicies?: (google.cloud.batch.v1.ILifecyclePolicy[]|null); - /** - * Verifies a ListJobsRequest 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); + /** TaskSpec environments */ + environments?: ({ [k: string]: string }|null); - /** - * Creates a ListJobsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListJobsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ListJobsRequest; + /** TaskSpec volumes */ + volumes?: (google.cloud.batch.v1.IVolume[]|null); - /** - * Creates a plain object from a ListJobsRequest message. Also converts values to other types if specified. - * @param message ListJobsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.ListJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TaskSpec environment */ + environment?: (google.cloud.batch.v1.IEnvironment|null); + } - /** - * Converts this ListJobsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a TaskSpec. */ + class TaskSpec implements ITaskSpec { /** - * Gets the default type url for ListJobsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Constructs a new TaskSpec. + * @param [properties] Properties to set */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListJobsResponse. */ - interface IListJobsResponse { + constructor(properties?: google.cloud.batch.v1.ITaskSpec); - /** ListJobsResponse jobs */ - jobs?: (google.cloud.batch.v1.IJob[]|null); + /** TaskSpec runnables. */ + public runnables: google.cloud.batch.v1.IRunnable[]; - /** ListJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** TaskSpec computeResource. */ + public computeResource?: (google.cloud.batch.v1.IComputeResource|null); - /** ListJobsResponse unreachable */ - unreachable?: (string[]|null); - } + /** TaskSpec maxRunDuration. */ + public maxRunDuration?: (google.protobuf.IDuration|null); - /** Represents a ListJobsResponse. */ - class ListJobsResponse implements IListJobsResponse { + /** TaskSpec maxRetryCount. */ + public maxRetryCount: number; - /** - * Constructs a new ListJobsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.IListJobsResponse); + /** TaskSpec lifecyclePolicies. */ + public lifecyclePolicies: google.cloud.batch.v1.ILifecyclePolicy[]; - /** ListJobsResponse jobs. */ - public jobs: google.cloud.batch.v1.IJob[]; + /** TaskSpec environments. */ + public environments: { [k: string]: string }; - /** ListJobsResponse nextPageToken. */ - public nextPageToken: string; + /** TaskSpec volumes. */ + public volumes: google.cloud.batch.v1.IVolume[]; - /** ListJobsResponse unreachable. */ - public unreachable: string[]; + /** TaskSpec environment. */ + public environment?: (google.cloud.batch.v1.IEnvironment|null); /** - * Creates a new ListJobsResponse instance using the specified properties. + * Creates a new TaskSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ListJobsResponse instance + * @returns TaskSpec instance */ - public static create(properties?: google.cloud.batch.v1.IListJobsResponse): google.cloud.batch.v1.ListJobsResponse; + public static create(properties?: google.cloud.batch.v1.ITaskSpec): google.cloud.batch.v1.TaskSpec; /** - * Encodes the specified ListJobsResponse message. Does not implicitly {@link google.cloud.batch.v1.ListJobsResponse.verify|verify} messages. - * @param message ListJobsResponse message or plain object to encode + * Encodes the specified TaskSpec message. Does not implicitly {@link google.cloud.batch.v1.TaskSpec.verify|verify} messages. + * @param message TaskSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IListJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListJobsResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListJobsResponse.verify|verify} messages. - * @param message ListJobsResponse message or plain object to encode + * Encodes the specified TaskSpec message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskSpec.verify|verify} messages. + * @param message TaskSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IListJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListJobsResponse message from the specified reader or buffer. + * Decodes a TaskSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListJobsResponse + * @returns TaskSpec * @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.batch.v1.ListJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1.TaskSpec; /** - * Decodes a ListJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a TaskSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListJobsResponse + * @returns TaskSpec * @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.batch.v1.ListJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.TaskSpec; /** - * Verifies a ListJobsResponse message. + * Verifies a TaskSpec 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 ListJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TaskSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListJobsResponse + * @returns TaskSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ListJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.TaskSpec; /** - * Creates a plain object from a ListJobsResponse message. Also converts values to other types if specified. - * @param message ListJobsResponse + * Creates a plain object from a TaskSpec message. Also converts values to other types if specified. + * @param message TaskSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.ListJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1.TaskSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListJobsResponse to JSON. + * Converts this TaskSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListJobsResponse + * Gets the default type url for TaskSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTasksRequest. */ - interface IListTasksRequest { - - /** ListTasksRequest parent */ - parent?: (string|null); - - /** ListTasksRequest filter */ - filter?: (string|null); + /** Properties of a LifecyclePolicy. */ + interface ILifecyclePolicy { - /** ListTasksRequest pageSize */ - pageSize?: (number|null); + /** LifecyclePolicy action */ + action?: (google.cloud.batch.v1.LifecyclePolicy.Action|keyof typeof google.cloud.batch.v1.LifecyclePolicy.Action|null); - /** ListTasksRequest pageToken */ - pageToken?: (string|null); + /** LifecyclePolicy actionCondition */ + actionCondition?: (google.cloud.batch.v1.LifecyclePolicy.IActionCondition|null); } - /** Represents a ListTasksRequest. */ - class ListTasksRequest implements IListTasksRequest { + /** Represents a LifecyclePolicy. */ + class LifecyclePolicy implements ILifecyclePolicy { /** - * Constructs a new ListTasksRequest. + * Constructs a new LifecyclePolicy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IListTasksRequest); - - /** ListTasksRequest parent. */ - public parent: string; - - /** ListTasksRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.batch.v1.ILifecyclePolicy); - /** ListTasksRequest pageSize. */ - public pageSize: number; + /** LifecyclePolicy action. */ + public action: (google.cloud.batch.v1.LifecyclePolicy.Action|keyof typeof google.cloud.batch.v1.LifecyclePolicy.Action); - /** ListTasksRequest pageToken. */ - public pageToken: string; + /** LifecyclePolicy actionCondition. */ + public actionCondition?: (google.cloud.batch.v1.LifecyclePolicy.IActionCondition|null); /** - * Creates a new ListTasksRequest instance using the specified properties. + * Creates a new LifecyclePolicy instance using the specified properties. * @param [properties] Properties to set - * @returns ListTasksRequest instance + * @returns LifecyclePolicy instance */ - public static create(properties?: google.cloud.batch.v1.IListTasksRequest): google.cloud.batch.v1.ListTasksRequest; + public static create(properties?: google.cloud.batch.v1.ILifecyclePolicy): google.cloud.batch.v1.LifecyclePolicy; /** - * Encodes the specified ListTasksRequest message. Does not implicitly {@link google.cloud.batch.v1.ListTasksRequest.verify|verify} messages. - * @param message ListTasksRequest message or plain object to encode + * Encodes the specified LifecyclePolicy message. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.verify|verify} messages. + * @param message LifecyclePolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IListTasksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1.ILifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTasksRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListTasksRequest.verify|verify} messages. - * @param message ListTasksRequest message or plain object to encode + * Encodes the specified LifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.verify|verify} messages. + * @param message LifecyclePolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IListTasksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1.ILifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTasksRequest message from the specified reader or buffer. + * Decodes a LifecyclePolicy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTasksRequest + * @returns LifecyclePolicy * @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.batch.v1.ListTasksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1.LifecyclePolicy; /** - * Decodes a ListTasksRequest message from the specified reader or buffer, length delimited. + * Decodes a LifecyclePolicy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTasksRequest + * @returns LifecyclePolicy * @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.batch.v1.ListTasksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.LifecyclePolicy; /** - * Verifies a ListTasksRequest message. + * Verifies a LifecyclePolicy 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 ListTasksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LifecyclePolicy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTasksRequest + * @returns LifecyclePolicy */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ListTasksRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.LifecyclePolicy; /** - * Creates a plain object from a ListTasksRequest message. Also converts values to other types if specified. - * @param message ListTasksRequest + * Creates a plain object from a LifecyclePolicy message. Also converts values to other types if specified. + * @param message LifecyclePolicy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.ListTasksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1.LifecyclePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTasksRequest to JSON. + * Converts this LifecyclePolicy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTasksRequest + * Gets the default type url for LifecyclePolicy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTasksResponse. */ - interface IListTasksResponse { - - /** ListTasksResponse tasks */ - tasks?: (google.cloud.batch.v1.ITask[]|null); - - /** ListTasksResponse nextPageToken */ - nextPageToken?: (string|null); - - /** ListTasksResponse unreachable */ - unreachable?: (string[]|null); - } + namespace LifecyclePolicy { - /** Represents a ListTasksResponse. */ - class ListTasksResponse implements IListTasksResponse { + /** Properties of an ActionCondition. */ + interface IActionCondition { - /** - * Constructs a new ListTasksResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.IListTasksResponse); + /** ActionCondition exitCodes */ + exitCodes?: (number[]|null); + } - /** ListTasksResponse tasks. */ - public tasks: google.cloud.batch.v1.ITask[]; + /** Represents an ActionCondition. */ + class ActionCondition implements IActionCondition { - /** ListTasksResponse nextPageToken. */ - public nextPageToken: string; + /** + * Constructs a new ActionCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.LifecyclePolicy.IActionCondition); - /** ListTasksResponse unreachable. */ - public unreachable: string[]; + /** ActionCondition exitCodes. */ + public exitCodes: number[]; - /** - * Creates a new ListTasksResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListTasksResponse instance - */ - public static create(properties?: google.cloud.batch.v1.IListTasksResponse): google.cloud.batch.v1.ListTasksResponse; + /** + * Creates a new ActionCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns ActionCondition instance + */ + public static create(properties?: google.cloud.batch.v1.LifecyclePolicy.IActionCondition): google.cloud.batch.v1.LifecyclePolicy.ActionCondition; - /** - * Encodes the specified ListTasksResponse message. Does not implicitly {@link google.cloud.batch.v1.ListTasksResponse.verify|verify} messages. - * @param message ListTasksResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.IListTasksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ActionCondition message. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify|verify} messages. + * @param message ActionCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.LifecyclePolicy.IActionCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListTasksResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListTasksResponse.verify|verify} messages. - * @param message ListTasksResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.IListTasksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ActionCondition message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify|verify} messages. + * @param message ActionCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.LifecyclePolicy.IActionCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListTasksResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListTasksResponse - * @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.batch.v1.ListTasksResponse; + /** + * Decodes an ActionCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActionCondition + * @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.batch.v1.LifecyclePolicy.ActionCondition; - /** - * Decodes a ListTasksResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListTasksResponse - * @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.batch.v1.ListTasksResponse; + /** + * Decodes an ActionCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ActionCondition + * @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.batch.v1.LifecyclePolicy.ActionCondition; - /** - * Verifies a ListTasksResponse 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); + /** + * Verifies an ActionCondition 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 ListTasksResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListTasksResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ListTasksResponse; + /** + * Creates an ActionCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ActionCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.LifecyclePolicy.ActionCondition; - /** - * Creates a plain object from a ListTasksResponse message. Also converts values to other types if specified. - * @param message ListTasksResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.ListTasksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an ActionCondition message. Also converts values to other types if specified. + * @param message ActionCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.LifecyclePolicy.ActionCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ListTasksResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this ActionCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ListTasksResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for ActionCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Action enum. */ + enum Action { + ACTION_UNSPECIFIED = 0, + RETRY_TASK = 1, + FAIL_TASK = 2 + } } - /** Properties of a GetTaskRequest. */ - interface IGetTaskRequest { + /** Properties of a Task. */ + interface ITask { - /** GetTaskRequest name */ + /** Task name */ name?: (string|null); + + /** Task status */ + status?: (google.cloud.batch.v1.ITaskStatus|null); } - /** Represents a GetTaskRequest. */ - class GetTaskRequest implements IGetTaskRequest { + /** Represents a Task. */ + class Task implements ITask { /** - * Constructs a new GetTaskRequest. + * Constructs a new Task. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IGetTaskRequest); + constructor(properties?: google.cloud.batch.v1.ITask); - /** GetTaskRequest name. */ + /** Task name. */ public name: string; + /** Task status. */ + public status?: (google.cloud.batch.v1.ITaskStatus|null); + /** - * Creates a new GetTaskRequest instance using the specified properties. + * Creates a new Task instance using the specified properties. * @param [properties] Properties to set - * @returns GetTaskRequest instance + * @returns Task instance */ - public static create(properties?: google.cloud.batch.v1.IGetTaskRequest): google.cloud.batch.v1.GetTaskRequest; + public static create(properties?: google.cloud.batch.v1.ITask): google.cloud.batch.v1.Task; /** - * Encodes the specified GetTaskRequest message. Does not implicitly {@link google.cloud.batch.v1.GetTaskRequest.verify|verify} messages. - * @param message GetTaskRequest message or plain object to encode + * Encodes the specified Task message. Does not implicitly {@link google.cloud.batch.v1.Task.verify|verify} messages. + * @param message Task message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1.ITask, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTaskRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GetTaskRequest.verify|verify} messages. - * @param message GetTaskRequest message or plain object to encode + * Encodes the specified Task message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Task.verify|verify} messages. + * @param message Task message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1.ITask, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTaskRequest message from the specified reader or buffer. + * Decodes a Task message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTaskRequest + * @returns Task * @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.batch.v1.GetTaskRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1.Task; /** - * Decodes a GetTaskRequest message from the specified reader or buffer, length delimited. + * Decodes a Task message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTaskRequest + * @returns Task * @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.batch.v1.GetTaskRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.Task; /** - * Verifies a GetTaskRequest message. + * Verifies a Task 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 GetTaskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Task message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTaskRequest + * @returns Task */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.GetTaskRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Task; /** - * Creates a plain object from a GetTaskRequest message. Also converts values to other types if specified. - * @param message GetTaskRequest + * Creates a plain object from a Task message. Also converts values to other types if specified. + * @param message Task * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.GetTaskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1.Task, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTaskRequest to JSON. + * Converts this Task to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTaskRequest + * Gets the default type url for Task * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an OperationMetadata. */ - interface IOperationMetadata { - - /** OperationMetadata createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata target */ - target?: (string|null); - - /** OperationMetadata verb */ - verb?: (string|null); + /** Properties of an Environment. */ + interface IEnvironment { - /** OperationMetadata statusMessage */ - statusMessage?: (string|null); + /** Environment variables */ + variables?: ({ [k: string]: string }|null); - /** OperationMetadata requestedCancellation */ - requestedCancellation?: (boolean|null); + /** Environment secretVariables */ + secretVariables?: ({ [k: string]: string }|null); - /** OperationMetadata apiVersion */ - apiVersion?: (string|null); + /** Environment encryptedVariables */ + encryptedVariables?: (google.cloud.batch.v1.Environment.IKMSEnvMap|null); } - /** Represents an OperationMetadata. */ - class OperationMetadata implements IOperationMetadata { + /** Represents an Environment. */ + class Environment implements IEnvironment { /** - * Constructs a new OperationMetadata. + * Constructs a new Environment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IOperationMetadata); - - /** OperationMetadata createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata target. */ - public target: string; - - /** OperationMetadata verb. */ - public verb: string; + constructor(properties?: google.cloud.batch.v1.IEnvironment); - /** OperationMetadata statusMessage. */ - public statusMessage: string; + /** Environment variables. */ + public variables: { [k: string]: string }; - /** OperationMetadata requestedCancellation. */ - public requestedCancellation: boolean; + /** Environment secretVariables. */ + public secretVariables: { [k: string]: string }; - /** OperationMetadata apiVersion. */ - public apiVersion: string; + /** Environment encryptedVariables. */ + public encryptedVariables?: (google.cloud.batch.v1.Environment.IKMSEnvMap|null); /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @param [properties] Properties to set - * @returns OperationMetadata instance + * @returns Environment instance */ - public static create(properties?: google.cloud.batch.v1.IOperationMetadata): google.cloud.batch.v1.OperationMetadata; + public static create(properties?: google.cloud.batch.v1.IEnvironment): google.cloud.batch.v1.Environment; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.batch.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.batch.v1.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.batch.v1.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OperationMetadata + * @returns Environment * @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.batch.v1.OperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1.Environment; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OperationMetadata + * @returns Environment * @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.batch.v1.OperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.Environment; /** - * Verifies an OperationMetadata message. + * Verifies an Environment 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 an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OperationMetadata + * @returns Environment */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.OperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Environment; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. - * @param message OperationMetadata + * Creates a plain object from an Environment message. Also converts values to other types if specified. + * @param message Environment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OperationMetadata to JSON. + * Converts this Environment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for Environment * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Job. */ - interface IJob { + namespace Environment { - /** Job name */ - name?: (string|null); + /** Properties of a KMSEnvMap. */ + interface IKMSEnvMap { - /** Job uid */ - uid?: (string|null); + /** KMSEnvMap keyName */ + keyName?: (string|null); - /** Job priority */ - priority?: (number|Long|string|null); + /** KMSEnvMap cipherText */ + cipherText?: (string|null); + } - /** Job taskGroups */ - taskGroups?: (google.cloud.batch.v1.ITaskGroup[]|null); + /** Represents a KMSEnvMap. */ + class KMSEnvMap implements IKMSEnvMap { - /** Job allocationPolicy */ - allocationPolicy?: (google.cloud.batch.v1.IAllocationPolicy|null); + /** + * Constructs a new KMSEnvMap. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.Environment.IKMSEnvMap); - /** Job labels */ - labels?: ({ [k: string]: string }|null); + /** KMSEnvMap keyName. */ + public keyName: string; - /** Job status */ - status?: (google.cloud.batch.v1.IJobStatus|null); + /** KMSEnvMap cipherText. */ + public cipherText: string; - /** Job createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new KMSEnvMap instance using the specified properties. + * @param [properties] Properties to set + * @returns KMSEnvMap instance + */ + public static create(properties?: google.cloud.batch.v1.Environment.IKMSEnvMap): google.cloud.batch.v1.Environment.KMSEnvMap; - /** Job updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified KMSEnvMap message. Does not implicitly {@link google.cloud.batch.v1.Environment.KMSEnvMap.verify|verify} messages. + * @param message KMSEnvMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1.Environment.IKMSEnvMap, writer?: $protobuf.Writer): $protobuf.Writer; - /** Job logsPolicy */ - logsPolicy?: (google.cloud.batch.v1.ILogsPolicy|null); + /** + * Encodes the specified KMSEnvMap message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Environment.KMSEnvMap.verify|verify} messages. + * @param message KMSEnvMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1.Environment.IKMSEnvMap, writer?: $protobuf.Writer): $protobuf.Writer; - /** Job notifications */ - notifications?: (google.cloud.batch.v1.IJobNotification[]|null); + /** + * Decodes a KMSEnvMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KMSEnvMap + * @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.batch.v1.Environment.KMSEnvMap; + + /** + * Decodes a KMSEnvMap message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KMSEnvMap + * @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.batch.v1.Environment.KMSEnvMap; + + /** + * Verifies a KMSEnvMap 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 KMSEnvMap message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KMSEnvMap + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Environment.KMSEnvMap; + + /** + * Creates a plain object from a KMSEnvMap message. Also converts values to other types if specified. + * @param message KMSEnvMap + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1.Environment.KMSEnvMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KMSEnvMap to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KMSEnvMap + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a Job. */ - class Job implements IJob { + /** Properties of a Volume. */ + interface IVolume { - /** - * Constructs a new Job. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.IJob); + /** Volume nfs */ + nfs?: (google.cloud.batch.v1.INFS|null); - /** Job name. */ - public name: string; + /** Volume gcs */ + gcs?: (google.cloud.batch.v1.IGCS|null); - /** Job uid. */ - public uid: string; + /** Volume deviceName */ + deviceName?: (string|null); - /** Job priority. */ - public priority: (number|Long|string); + /** Volume mountPath */ + mountPath?: (string|null); - /** Job taskGroups. */ - public taskGroups: google.cloud.batch.v1.ITaskGroup[]; + /** Volume mountOptions */ + mountOptions?: (string[]|null); + } - /** Job allocationPolicy. */ - public allocationPolicy?: (google.cloud.batch.v1.IAllocationPolicy|null); + /** Represents a Volume. */ + class Volume implements IVolume { - /** Job labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new Volume. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1.IVolume); - /** Job status. */ - public status?: (google.cloud.batch.v1.IJobStatus|null); + /** Volume nfs. */ + public nfs?: (google.cloud.batch.v1.INFS|null); - /** Job createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Volume gcs. */ + public gcs?: (google.cloud.batch.v1.IGCS|null); - /** Job updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Volume deviceName. */ + public deviceName?: (string|null); - /** Job logsPolicy. */ - public logsPolicy?: (google.cloud.batch.v1.ILogsPolicy|null); + /** Volume mountPath. */ + public mountPath: string; - /** Job notifications. */ - public notifications: google.cloud.batch.v1.IJobNotification[]; + /** Volume mountOptions. */ + public mountOptions: string[]; + + /** Volume source. */ + public source?: ("nfs"|"gcs"|"deviceName"); /** - * Creates a new Job instance using the specified properties. + * Creates a new Volume instance using the specified properties. * @param [properties] Properties to set - * @returns Job instance + * @returns Volume instance */ - public static create(properties?: google.cloud.batch.v1.IJob): google.cloud.batch.v1.Job; + public static create(properties?: google.cloud.batch.v1.IVolume): google.cloud.batch.v1.Volume; /** - * Encodes the specified Job message. Does not implicitly {@link google.cloud.batch.v1.Job.verify|verify} messages. - * @param message Job message or plain object to encode + * Encodes the specified Volume message. Does not implicitly {@link google.cloud.batch.v1.Volume.verify|verify} messages. + * @param message Volume message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Job.verify|verify} messages. - * @param message Job message or plain object to encode + * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Volume.verify|verify} messages. + * @param message Volume message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Job message from the specified reader or buffer. + * Decodes a Volume message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Job + * @returns Volume * @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.batch.v1.Job; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1.Volume; /** - * Decodes a Job message from the specified reader or buffer, length delimited. + * Decodes a Volume message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Job + * @returns Volume * @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.batch.v1.Job; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.Volume; /** - * Verifies a Job message. + * Verifies a Volume 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 Job message from a plain object. Also converts values to their respective internal types. + * Creates a Volume message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Job + * @returns Volume */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Job; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Volume; /** - * Creates a plain object from a Job message. Also converts values to other types if specified. - * @param message Job + * Creates a plain object from a Volume message. Also converts values to other types if specified. + * @param message Volume * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.Job, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1.Volume, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Job to JSON. + * Converts this Volume to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Job + * Gets the default type url for Volume * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LogsPolicy. */ - interface ILogsPolicy { + /** Properties of a NFS. */ + interface INFS { - /** LogsPolicy destination */ - destination?: (google.cloud.batch.v1.LogsPolicy.Destination|keyof typeof google.cloud.batch.v1.LogsPolicy.Destination|null); + /** NFS server */ + server?: (string|null); - /** LogsPolicy logsPath */ - logsPath?: (string|null); + /** NFS remotePath */ + remotePath?: (string|null); } - /** Represents a LogsPolicy. */ - class LogsPolicy implements ILogsPolicy { + /** Represents a NFS. */ + class NFS implements INFS { /** - * Constructs a new LogsPolicy. + * Constructs a new NFS. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.ILogsPolicy); + constructor(properties?: google.cloud.batch.v1.INFS); - /** LogsPolicy destination. */ - public destination: (google.cloud.batch.v1.LogsPolicy.Destination|keyof typeof google.cloud.batch.v1.LogsPolicy.Destination); + /** NFS server. */ + public server: string; - /** LogsPolicy logsPath. */ - public logsPath: string; + /** NFS remotePath. */ + public remotePath: string; /** - * Creates a new LogsPolicy instance using the specified properties. + * Creates a new NFS instance using the specified properties. * @param [properties] Properties to set - * @returns LogsPolicy instance + * @returns NFS instance */ - public static create(properties?: google.cloud.batch.v1.ILogsPolicy): google.cloud.batch.v1.LogsPolicy; + public static create(properties?: google.cloud.batch.v1.INFS): google.cloud.batch.v1.NFS; /** - * Encodes the specified LogsPolicy message. Does not implicitly {@link google.cloud.batch.v1.LogsPolicy.verify|verify} messages. - * @param message LogsPolicy message or plain object to encode + * Encodes the specified NFS message. Does not implicitly {@link google.cloud.batch.v1.NFS.verify|verify} messages. + * @param message NFS message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.ILogsPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1.INFS, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LogsPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LogsPolicy.verify|verify} messages. - * @param message LogsPolicy message or plain object to encode + * Encodes the specified NFS message, length delimited. Does not implicitly {@link google.cloud.batch.v1.NFS.verify|verify} messages. + * @param message NFS message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.ILogsPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1.INFS, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LogsPolicy message from the specified reader or buffer. + * Decodes a NFS message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LogsPolicy + * @returns NFS * @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.batch.v1.LogsPolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1.NFS; /** - * Decodes a LogsPolicy message from the specified reader or buffer, length delimited. + * Decodes a NFS message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LogsPolicy + * @returns NFS * @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.batch.v1.LogsPolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.NFS; /** - * Verifies a LogsPolicy message. + * Verifies a NFS 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 LogsPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a NFS message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LogsPolicy + * @returns NFS */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.LogsPolicy; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.NFS; /** - * Creates a plain object from a LogsPolicy message. Also converts values to other types if specified. - * @param message LogsPolicy + * Creates a plain object from a NFS message. Also converts values to other types if specified. + * @param message NFS * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.LogsPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1.NFS, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LogsPolicy to JSON. + * Converts this NFS to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LogsPolicy + * Gets the default type url for NFS * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace LogsPolicy { - - /** Destination enum. */ - enum Destination { - DESTINATION_UNSPECIFIED = 0, - CLOUD_LOGGING = 1, - PATH = 2 - } - } - - /** Properties of a JobStatus. */ - interface IJobStatus { - - /** JobStatus state */ - state?: (google.cloud.batch.v1.JobStatus.State|keyof typeof google.cloud.batch.v1.JobStatus.State|null); - - /** JobStatus statusEvents */ - statusEvents?: (google.cloud.batch.v1.IStatusEvent[]|null); - - /** JobStatus taskGroups */ - taskGroups?: ({ [k: string]: google.cloud.batch.v1.JobStatus.ITaskGroupStatus }|null); + /** Properties of a GCS. */ + interface IGCS { - /** JobStatus runDuration */ - runDuration?: (google.protobuf.IDuration|null); + /** GCS remotePath */ + remotePath?: (string|null); } - /** Represents a JobStatus. */ - class JobStatus implements IJobStatus { + /** Represents a GCS. */ + class GCS implements IGCS { /** - * Constructs a new JobStatus. + * Constructs a new GCS. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IJobStatus); - - /** JobStatus state. */ - public state: (google.cloud.batch.v1.JobStatus.State|keyof typeof google.cloud.batch.v1.JobStatus.State); - - /** JobStatus statusEvents. */ - public statusEvents: google.cloud.batch.v1.IStatusEvent[]; - - /** JobStatus taskGroups. */ - public taskGroups: { [k: string]: google.cloud.batch.v1.JobStatus.ITaskGroupStatus }; + constructor(properties?: google.cloud.batch.v1.IGCS); - /** JobStatus runDuration. */ - public runDuration?: (google.protobuf.IDuration|null); + /** GCS remotePath. */ + public remotePath: string; /** - * Creates a new JobStatus instance using the specified properties. + * Creates a new GCS instance using the specified properties. * @param [properties] Properties to set - * @returns JobStatus instance + * @returns GCS instance */ - public static create(properties?: google.cloud.batch.v1.IJobStatus): google.cloud.batch.v1.JobStatus; + public static create(properties?: google.cloud.batch.v1.IGCS): google.cloud.batch.v1.GCS; /** - * Encodes the specified JobStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.verify|verify} messages. - * @param message JobStatus message or plain object to encode + * Encodes the specified GCS message. Does not implicitly {@link google.cloud.batch.v1.GCS.verify|verify} messages. + * @param message GCS message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1.IGCS, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified JobStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.verify|verify} messages. - * @param message JobStatus message or plain object to encode + * Encodes the specified GCS message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GCS.verify|verify} messages. + * @param message GCS message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1.IGCS, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a JobStatus message from the specified reader or buffer. + * Decodes a GCS message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns JobStatus + * @returns GCS * @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.batch.v1.JobStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1.GCS; /** - * Decodes a JobStatus message from the specified reader or buffer, length delimited. + * Decodes a GCS message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns JobStatus + * @returns GCS * @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.batch.v1.JobStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1.GCS; /** - * Verifies a JobStatus message. + * Verifies a GCS 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 JobStatus message from a plain object. Also converts values to their respective internal types. + * Creates a GCS message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns JobStatus + * @returns GCS */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobStatus; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.GCS; /** - * Creates a plain object from a JobStatus message. Also converts values to other types if specified. - * @param message JobStatus + * Creates a plain object from a GCS message. Also converts values to other types if specified. + * @param message GCS * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.JobStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1.GCS, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this JobStatus to JSON. + * Converts this GCS to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for JobStatus + * Gets the default type url for GCS * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace JobStatus { - - /** Properties of an InstanceStatus. */ - interface IInstanceStatus { - - /** InstanceStatus machineType */ - machineType?: (string|null); - - /** InstanceStatus provisioningModel */ - provisioningModel?: (google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|null); - - /** InstanceStatus taskPack */ - taskPack?: (number|Long|string|null); - } - - /** Represents an InstanceStatus. */ - class InstanceStatus implements IInstanceStatus { - - /** - * Constructs a new InstanceStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.JobStatus.IInstanceStatus); - - /** InstanceStatus machineType. */ - public machineType: string; - - /** InstanceStatus provisioningModel. */ - public provisioningModel: (google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1.AllocationPolicy.ProvisioningModel); - - /** InstanceStatus taskPack. */ - public taskPack: (number|Long|string); - - /** - * Creates a new InstanceStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns InstanceStatus instance - */ - public static create(properties?: google.cloud.batch.v1.JobStatus.IInstanceStatus): google.cloud.batch.v1.JobStatus.InstanceStatus; - - /** - * Encodes the specified InstanceStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.InstanceStatus.verify|verify} messages. - * @param message InstanceStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.JobStatus.IInstanceStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InstanceStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.InstanceStatus.verify|verify} messages. - * @param message InstanceStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.JobStatus.IInstanceStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InstanceStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InstanceStatus - * @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.batch.v1.JobStatus.InstanceStatus; - - /** - * Decodes an InstanceStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InstanceStatus - * @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.batch.v1.JobStatus.InstanceStatus; - - /** - * Verifies an InstanceStatus 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); + /** Namespace v1alpha. */ + namespace v1alpha { - /** - * Creates an InstanceStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InstanceStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobStatus.InstanceStatus; + /** Represents a BatchService */ + class BatchService extends $protobuf.rpc.Service { - /** - * Creates a plain object from an InstanceStatus message. Also converts values to other types if specified. - * @param message InstanceStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.JobStatus.InstanceStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new BatchService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** - * Converts this InstanceStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates new BatchService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): BatchService; - /** - * Gets the default type url for InstanceStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Calls CreateJob. + * @param request CreateJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Job + */ + public createJob(request: google.cloud.batch.v1alpha.ICreateJobRequest, callback: google.cloud.batch.v1alpha.BatchService.CreateJobCallback): void; - /** Properties of a TaskGroupStatus. */ - interface ITaskGroupStatus { + /** + * Calls CreateJob. + * @param request CreateJobRequest message or plain object + * @returns Promise + */ + public createJob(request: google.cloud.batch.v1alpha.ICreateJobRequest): Promise; - /** TaskGroupStatus counts */ - counts?: ({ [k: string]: (number|Long|string) }|null); + /** + * Calls GetJob. + * @param request GetJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Job + */ + public getJob(request: google.cloud.batch.v1alpha.IGetJobRequest, callback: google.cloud.batch.v1alpha.BatchService.GetJobCallback): void; - /** TaskGroupStatus instances */ - instances?: (google.cloud.batch.v1.JobStatus.IInstanceStatus[]|null); - } + /** + * Calls GetJob. + * @param request GetJobRequest message or plain object + * @returns Promise + */ + public getJob(request: google.cloud.batch.v1alpha.IGetJobRequest): Promise; - /** Represents a TaskGroupStatus. */ - class TaskGroupStatus implements ITaskGroupStatus { + /** + * Calls DeleteJob. + * @param request DeleteJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteJob(request: google.cloud.batch.v1alpha.IDeleteJobRequest, callback: google.cloud.batch.v1alpha.BatchService.DeleteJobCallback): void; - /** - * Constructs a new TaskGroupStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.JobStatus.ITaskGroupStatus); + /** + * Calls DeleteJob. + * @param request DeleteJobRequest message or plain object + * @returns Promise + */ + public deleteJob(request: google.cloud.batch.v1alpha.IDeleteJobRequest): Promise; - /** TaskGroupStatus counts. */ - public counts: { [k: string]: (number|Long|string) }; + /** + * Calls ListJobs. + * @param request ListJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListJobsResponse + */ + public listJobs(request: google.cloud.batch.v1alpha.IListJobsRequest, callback: google.cloud.batch.v1alpha.BatchService.ListJobsCallback): void; - /** TaskGroupStatus instances. */ - public instances: google.cloud.batch.v1.JobStatus.IInstanceStatus[]; + /** + * Calls ListJobs. + * @param request ListJobsRequest message or plain object + * @returns Promise + */ + public listJobs(request: google.cloud.batch.v1alpha.IListJobsRequest): Promise; - /** - * Creates a new TaskGroupStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskGroupStatus instance - */ - public static create(properties?: google.cloud.batch.v1.JobStatus.ITaskGroupStatus): google.cloud.batch.v1.JobStatus.TaskGroupStatus; + /** + * Calls GetTask. + * @param request GetTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Task + */ + public getTask(request: google.cloud.batch.v1alpha.IGetTaskRequest, callback: google.cloud.batch.v1alpha.BatchService.GetTaskCallback): void; - /** - * Encodes the specified TaskGroupStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify|verify} messages. - * @param message TaskGroupStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.JobStatus.ITaskGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls GetTask. + * @param request GetTaskRequest message or plain object + * @returns Promise + */ + public getTask(request: google.cloud.batch.v1alpha.IGetTaskRequest): Promise; - /** - * Encodes the specified TaskGroupStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify|verify} messages. - * @param message TaskGroupStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.JobStatus.ITaskGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls ListTasks. + * @param request ListTasksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTasksResponse + */ + public listTasks(request: google.cloud.batch.v1alpha.IListTasksRequest, callback: google.cloud.batch.v1alpha.BatchService.ListTasksCallback): void; - /** - * Decodes a TaskGroupStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskGroupStatus - * @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.batch.v1.JobStatus.TaskGroupStatus; + /** + * Calls ListTasks. + * @param request ListTasksRequest message or plain object + * @returns Promise + */ + public listTasks(request: google.cloud.batch.v1alpha.IListTasksRequest): Promise; + } - /** - * Decodes a TaskGroupStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TaskGroupStatus - * @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.batch.v1.JobStatus.TaskGroupStatus; + namespace BatchService { - /** - * Verifies a TaskGroupStatus 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); + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|createJob}. + * @param error Error, if any + * @param [response] Job + */ + type CreateJobCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.Job) => void; - /** - * Creates a TaskGroupStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TaskGroupStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobStatus.TaskGroupStatus; + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|getJob}. + * @param error Error, if any + * @param [response] Job + */ + type GetJobCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.Job) => void; - /** - * Creates a plain object from a TaskGroupStatus message. Also converts values to other types if specified. - * @param message TaskGroupStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.JobStatus.TaskGroupStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|deleteJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Converts this TaskGroupStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|listJobs}. + * @param error Error, if any + * @param [response] ListJobsResponse + */ + type ListJobsCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.ListJobsResponse) => void; - /** - * Gets the default type url for TaskGroupStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|getTask}. + * @param error Error, if any + * @param [response] Task + */ + type GetTaskCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.Task) => void; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - QUEUED = 1, - SCHEDULED = 2, - RUNNING = 3, - SUCCEEDED = 4, - FAILED = 5, - DELETION_IN_PROGRESS = 6 - } + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|listTasks}. + * @param error Error, if any + * @param [response] ListTasksResponse + */ + type ListTasksCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.ListTasksResponse) => void; } - /** Properties of a JobNotification. */ - interface IJobNotification { + /** Properties of a CreateJobRequest. */ + interface ICreateJobRequest { - /** JobNotification pubsubTopic */ - pubsubTopic?: (string|null); + /** CreateJobRequest parent */ + parent?: (string|null); - /** JobNotification message */ - message?: (google.cloud.batch.v1.JobNotification.IMessage|null); + /** CreateJobRequest jobId */ + jobId?: (string|null); + + /** CreateJobRequest job */ + job?: (google.cloud.batch.v1alpha.IJob|null); + + /** CreateJobRequest requestId */ + requestId?: (string|null); } - /** Represents a JobNotification. */ - class JobNotification implements IJobNotification { + /** Represents a CreateJobRequest. */ + class CreateJobRequest implements ICreateJobRequest { /** - * Constructs a new JobNotification. + * Constructs a new CreateJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IJobNotification); + constructor(properties?: google.cloud.batch.v1alpha.ICreateJobRequest); - /** JobNotification pubsubTopic. */ - public pubsubTopic: string; + /** CreateJobRequest parent. */ + public parent: string; - /** JobNotification message. */ - public message?: (google.cloud.batch.v1.JobNotification.IMessage|null); + /** CreateJobRequest jobId. */ + public jobId: string; + + /** CreateJobRequest job. */ + public job?: (google.cloud.batch.v1alpha.IJob|null); + + /** CreateJobRequest requestId. */ + public requestId: string; /** - * Creates a new JobNotification instance using the specified properties. + * Creates a new CreateJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns JobNotification instance + * @returns CreateJobRequest instance */ - public static create(properties?: google.cloud.batch.v1.IJobNotification): google.cloud.batch.v1.JobNotification; + public static create(properties?: google.cloud.batch.v1alpha.ICreateJobRequest): google.cloud.batch.v1alpha.CreateJobRequest; /** - * Encodes the specified JobNotification message. Does not implicitly {@link google.cloud.batch.v1.JobNotification.verify|verify} messages. - * @param message JobNotification message or plain object to encode + * Encodes the specified CreateJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.CreateJobRequest.verify|verify} messages. + * @param message CreateJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IJobNotification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.ICreateJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified JobNotification message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobNotification.verify|verify} messages. - * @param message JobNotification message or plain object to encode + * Encodes the specified CreateJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.CreateJobRequest.verify|verify} messages. + * @param message CreateJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IJobNotification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.ICreateJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a JobNotification message from the specified reader or buffer. + * Decodes a CreateJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns JobNotification + * @returns CreateJobRequest * @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.batch.v1.JobNotification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.CreateJobRequest; /** - * Decodes a JobNotification message from the specified reader or buffer, length delimited. + * Decodes a CreateJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns JobNotification + * @returns CreateJobRequest * @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.batch.v1.JobNotification; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.CreateJobRequest; /** - * Verifies a JobNotification message. + * Verifies a CreateJobRequest 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 JobNotification message from a plain object. Also converts values to their respective internal types. + * Creates a CreateJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns JobNotification + * @returns CreateJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobNotification; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.CreateJobRequest; /** - * Creates a plain object from a JobNotification message. Also converts values to other types if specified. - * @param message JobNotification + * Creates a plain object from a CreateJobRequest message. Also converts values to other types if specified. + * @param message CreateJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.JobNotification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.CreateJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this JobNotification to JSON. + * Converts this CreateJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for JobNotification + * Gets the default type url for CreateJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace JobNotification { - - /** Properties of a Message. */ - interface IMessage { - - /** Message type */ - type?: (google.cloud.batch.v1.JobNotification.Type|keyof typeof google.cloud.batch.v1.JobNotification.Type|null); - - /** Message newJobState */ - newJobState?: (google.cloud.batch.v1.JobStatus.State|keyof typeof google.cloud.batch.v1.JobStatus.State|null); - - /** Message newTaskState */ - newTaskState?: (google.cloud.batch.v1.TaskStatus.State|keyof typeof google.cloud.batch.v1.TaskStatus.State|null); - } - - /** Represents a Message. */ - class Message implements IMessage { - - /** - * Constructs a new Message. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.JobNotification.IMessage); + /** Properties of a GetJobRequest. */ + interface IGetJobRequest { - /** Message type. */ - public type: (google.cloud.batch.v1.JobNotification.Type|keyof typeof google.cloud.batch.v1.JobNotification.Type); + /** GetJobRequest name */ + name?: (string|null); + } - /** Message newJobState. */ - public newJobState: (google.cloud.batch.v1.JobStatus.State|keyof typeof google.cloud.batch.v1.JobStatus.State); + /** Represents a GetJobRequest. */ + class GetJobRequest implements IGetJobRequest { - /** Message newTaskState. */ - public newTaskState: (google.cloud.batch.v1.TaskStatus.State|keyof typeof google.cloud.batch.v1.TaskStatus.State); + /** + * Constructs a new GetJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.IGetJobRequest); - /** - * Creates a new Message instance using the specified properties. - * @param [properties] Properties to set - * @returns Message instance - */ - public static create(properties?: google.cloud.batch.v1.JobNotification.IMessage): google.cloud.batch.v1.JobNotification.Message; + /** GetJobRequest name. */ + public name: string; - /** - * Encodes the specified Message message. Does not implicitly {@link google.cloud.batch.v1.JobNotification.Message.verify|verify} messages. - * @param message Message message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.JobNotification.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new GetJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetJobRequest instance + */ + public static create(properties?: google.cloud.batch.v1alpha.IGetJobRequest): google.cloud.batch.v1alpha.GetJobRequest; - /** - * Encodes the specified Message message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobNotification.Message.verify|verify} messages. - * @param message Message message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.JobNotification.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GetJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.GetJobRequest.verify|verify} messages. + * @param message GetJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Message message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Message - * @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.batch.v1.JobNotification.Message; + /** + * Encodes the specified GetJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GetJobRequest.verify|verify} messages. + * @param message GetJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Message message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Message - * @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.batch.v1.JobNotification.Message; + /** + * Decodes a GetJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetJobRequest + * @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.batch.v1alpha.GetJobRequest; - /** - * Verifies a Message 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); + /** + * Decodes a GetJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetJobRequest + * @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.batch.v1alpha.GetJobRequest; - /** - * Creates a Message message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Message - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.JobNotification.Message; + /** + * Verifies a GetJobRequest 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 plain object from a Message message. Also converts values to other types if specified. - * @param message Message - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.JobNotification.Message, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a GetJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.GetJobRequest; - /** - * Converts this Message to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a GetJobRequest message. Also converts values to other types if specified. + * @param message GetJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.GetJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for Message - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this GetJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - JOB_STATE_CHANGED = 1, - TASK_STATE_CHANGED = 2 - } + /** + * Gets the default type url for GetJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AllocationPolicy. */ - interface IAllocationPolicy { - - /** AllocationPolicy location */ - location?: (google.cloud.batch.v1.AllocationPolicy.ILocationPolicy|null); - - /** AllocationPolicy instances */ - instances?: (google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate[]|null); + /** Properties of a DeleteJobRequest. */ + interface IDeleteJobRequest { - /** AllocationPolicy serviceAccount */ - serviceAccount?: (google.cloud.batch.v1.IServiceAccount|null); + /** DeleteJobRequest name */ + name?: (string|null); - /** AllocationPolicy labels */ - labels?: ({ [k: string]: string }|null); + /** DeleteJobRequest reason */ + reason?: (string|null); - /** AllocationPolicy network */ - network?: (google.cloud.batch.v1.AllocationPolicy.INetworkPolicy|null); + /** DeleteJobRequest requestId */ + requestId?: (string|null); } - /** Represents an AllocationPolicy. */ - class AllocationPolicy implements IAllocationPolicy { + /** Represents a DeleteJobRequest. */ + class DeleteJobRequest implements IDeleteJobRequest { /** - * Constructs a new AllocationPolicy. + * Constructs a new DeleteJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IAllocationPolicy); - - /** AllocationPolicy location. */ - public location?: (google.cloud.batch.v1.AllocationPolicy.ILocationPolicy|null); - - /** AllocationPolicy instances. */ - public instances: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate[]; + constructor(properties?: google.cloud.batch.v1alpha.IDeleteJobRequest); - /** AllocationPolicy serviceAccount. */ - public serviceAccount?: (google.cloud.batch.v1.IServiceAccount|null); + /** DeleteJobRequest name. */ + public name: string; - /** AllocationPolicy labels. */ - public labels: { [k: string]: string }; + /** DeleteJobRequest reason. */ + public reason: string; - /** AllocationPolicy network. */ - public network?: (google.cloud.batch.v1.AllocationPolicy.INetworkPolicy|null); + /** DeleteJobRequest requestId. */ + public requestId: string; /** - * Creates a new AllocationPolicy instance using the specified properties. + * Creates a new DeleteJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AllocationPolicy instance + * @returns DeleteJobRequest instance */ - public static create(properties?: google.cloud.batch.v1.IAllocationPolicy): google.cloud.batch.v1.AllocationPolicy; + public static create(properties?: google.cloud.batch.v1alpha.IDeleteJobRequest): google.cloud.batch.v1alpha.DeleteJobRequest; /** - * Encodes the specified AllocationPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.verify|verify} messages. - * @param message AllocationPolicy message or plain object to encode + * Encodes the specified DeleteJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.DeleteJobRequest.verify|verify} messages. + * @param message DeleteJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.verify|verify} messages. - * @param message AllocationPolicy message or plain object to encode + * Encodes the specified DeleteJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.DeleteJobRequest.verify|verify} messages. + * @param message DeleteJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AllocationPolicy message from the specified reader or buffer. + * Decodes a DeleteJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AllocationPolicy + * @returns DeleteJobRequest * @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.batch.v1.AllocationPolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.DeleteJobRequest; /** - * Decodes an AllocationPolicy message from the specified reader or buffer, length delimited. + * Decodes a DeleteJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AllocationPolicy + * @returns DeleteJobRequest * @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.batch.v1.AllocationPolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.DeleteJobRequest; /** - * Verifies an AllocationPolicy message. + * Verifies a DeleteJobRequest 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 an AllocationPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AllocationPolicy + * @returns DeleteJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.DeleteJobRequest; /** - * Creates a plain object from an AllocationPolicy message. Also converts values to other types if specified. - * @param message AllocationPolicy + * Creates a plain object from a DeleteJobRequest message. Also converts values to other types if specified. + * @param message DeleteJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.AllocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.DeleteJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AllocationPolicy to JSON. + * Converts this DeleteJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AllocationPolicy + * Gets the default type url for DeleteJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AllocationPolicy { - - /** Properties of a LocationPolicy. */ - interface ILocationPolicy { - - /** LocationPolicy allowedLocations */ - allowedLocations?: (string[]|null); - } - - /** Represents a LocationPolicy. */ - class LocationPolicy implements ILocationPolicy { - - /** - * Constructs a new LocationPolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.AllocationPolicy.ILocationPolicy); - - /** LocationPolicy allowedLocations. */ - public allowedLocations: string[]; - - /** - * Creates a new LocationPolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns LocationPolicy instance - */ - public static create(properties?: google.cloud.batch.v1.AllocationPolicy.ILocationPolicy): google.cloud.batch.v1.AllocationPolicy.LocationPolicy; - - /** - * Encodes the specified LocationPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify|verify} messages. - * @param message LocationPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.AllocationPolicy.ILocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify|verify} messages. - * @param message LocationPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.ILocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LocationPolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LocationPolicy - * @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.batch.v1.AllocationPolicy.LocationPolicy; - - /** - * Decodes a LocationPolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationPolicy - * @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.batch.v1.AllocationPolicy.LocationPolicy; - - /** - * Verifies a LocationPolicy 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 LocationPolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LocationPolicy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.LocationPolicy; - - /** - * Creates a plain object from a LocationPolicy message. Also converts values to other types if specified. - * @param message LocationPolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.AllocationPolicy.LocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LocationPolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LocationPolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Disk. */ - interface IDisk { - - /** Disk image */ - image?: (string|null); - - /** Disk snapshot */ - snapshot?: (string|null); - - /** Disk type */ - type?: (string|null); - - /** Disk sizeGb */ - sizeGb?: (number|Long|string|null); - - /** Disk diskInterface */ - diskInterface?: (string|null); - } - - /** Represents a Disk. */ - class Disk implements IDisk { - - /** - * Constructs a new Disk. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IDisk); - - /** Disk image. */ - public image?: (string|null); - - /** Disk snapshot. */ - public snapshot?: (string|null); - - /** Disk type. */ - public type: string; - - /** Disk sizeGb. */ - public sizeGb: (number|Long|string); - - /** Disk diskInterface. */ - public diskInterface: string; - - /** Disk dataSource. */ - public dataSource?: ("image"|"snapshot"); - - /** - * Creates a new Disk instance using the specified properties. - * @param [properties] Properties to set - * @returns Disk instance - */ - public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IDisk): google.cloud.batch.v1.AllocationPolicy.Disk; - - /** - * Encodes the specified Disk message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Disk.verify|verify} messages. - * @param message Disk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.AllocationPolicy.IDisk, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Disk message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Disk.verify|verify} messages. - * @param message Disk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IDisk, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a ListJobsRequest. */ + interface IListJobsRequest { - /** - * Decodes a Disk message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Disk - * @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.batch.v1.AllocationPolicy.Disk; + /** ListJobsRequest parent */ + parent?: (string|null); - /** - * Decodes a Disk message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Disk - * @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.batch.v1.AllocationPolicy.Disk; + /** ListJobsRequest filter */ + filter?: (string|null); - /** - * Verifies a Disk 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); + /** ListJobsRequest pageSize */ + pageSize?: (number|null); - /** - * Creates a Disk message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Disk - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.Disk; + /** ListJobsRequest pageToken */ + pageToken?: (string|null); + } - /** - * Creates a plain object from a Disk message. Also converts values to other types if specified. - * @param message Disk - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.AllocationPolicy.Disk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a ListJobsRequest. */ + class ListJobsRequest implements IListJobsRequest { - /** - * Converts this Disk to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new ListJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.IListJobsRequest); - /** - * Gets the default type url for Disk - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListJobsRequest parent. */ + public parent: string; - /** Properties of an AttachedDisk. */ - interface IAttachedDisk { + /** ListJobsRequest filter. */ + public filter: string; - /** AttachedDisk newDisk */ - newDisk?: (google.cloud.batch.v1.AllocationPolicy.IDisk|null); + /** ListJobsRequest pageSize. */ + public pageSize: number; - /** AttachedDisk existingDisk */ - existingDisk?: (string|null); + /** ListJobsRequest pageToken. */ + public pageToken: string; - /** AttachedDisk deviceName */ - deviceName?: (string|null); - } + /** + * Creates a new ListJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListJobsRequest instance + */ + public static create(properties?: google.cloud.batch.v1alpha.IListJobsRequest): google.cloud.batch.v1alpha.ListJobsRequest; - /** Represents an AttachedDisk. */ - class AttachedDisk implements IAttachedDisk { + /** + * Encodes the specified ListJobsRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsRequest.verify|verify} messages. + * @param message ListJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new AttachedDisk. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk); + /** + * Encodes the specified ListJobsRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsRequest.verify|verify} messages. + * @param message ListJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** AttachedDisk newDisk. */ - public newDisk?: (google.cloud.batch.v1.AllocationPolicy.IDisk|null); + /** + * Decodes a ListJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListJobsRequest + * @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.batch.v1alpha.ListJobsRequest; - /** AttachedDisk existingDisk. */ - public existingDisk?: (string|null); + /** + * Decodes a ListJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListJobsRequest + * @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.batch.v1alpha.ListJobsRequest; - /** AttachedDisk deviceName. */ - public deviceName: string; + /** + * Verifies a ListJobsRequest 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); - /** AttachedDisk attached. */ - public attached?: ("newDisk"|"existingDisk"); + /** + * Creates a ListJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListJobsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ListJobsRequest; - /** - * Creates a new AttachedDisk instance using the specified properties. - * @param [properties] Properties to set - * @returns AttachedDisk instance - */ - public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk): google.cloud.batch.v1.AllocationPolicy.AttachedDisk; + /** + * Creates a plain object from a ListJobsRequest message. Also converts values to other types if specified. + * @param message ListJobsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.ListJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified AttachedDisk message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify|verify} messages. - * @param message AttachedDisk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ListJobsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified AttachedDisk message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify|verify} messages. - * @param message AttachedDisk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ListJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes an AttachedDisk message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AttachedDisk - * @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.batch.v1.AllocationPolicy.AttachedDisk; + /** Properties of a ListJobsResponse. */ + interface IListJobsResponse { - /** - * Decodes an AttachedDisk message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AttachedDisk - * @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.batch.v1.AllocationPolicy.AttachedDisk; + /** ListJobsResponse jobs */ + jobs?: (google.cloud.batch.v1alpha.IJob[]|null); - /** - * Verifies an AttachedDisk 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); + /** ListJobsResponse nextPageToken */ + nextPageToken?: (string|null); - /** - * Creates an AttachedDisk message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AttachedDisk - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.AttachedDisk; + /** ListJobsResponse unreachable */ + unreachable?: (string[]|null); + } - /** - * Creates a plain object from an AttachedDisk message. Also converts values to other types if specified. - * @param message AttachedDisk - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.AllocationPolicy.AttachedDisk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a ListJobsResponse. */ + class ListJobsResponse implements IListJobsResponse { - /** - * Converts this AttachedDisk to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new ListJobsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.IListJobsResponse); - /** - * Gets the default type url for AttachedDisk - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListJobsResponse jobs. */ + public jobs: google.cloud.batch.v1alpha.IJob[]; + + /** ListJobsResponse nextPageToken. */ + public nextPageToken: string; + + /** ListJobsResponse unreachable. */ + public unreachable: string[]; - /** Properties of an Accelerator. */ - interface IAccelerator { + /** + * Creates a new ListJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListJobsResponse instance + */ + public static create(properties?: google.cloud.batch.v1alpha.IListJobsResponse): google.cloud.batch.v1alpha.ListJobsResponse; - /** Accelerator type */ - type?: (string|null); + /** + * Encodes the specified ListJobsResponse message. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsResponse.verify|verify} messages. + * @param message ListJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.IListJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Accelerator count */ - count?: (number|Long|string|null); + /** + * Encodes the specified ListJobsResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsResponse.verify|verify} messages. + * @param message ListJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.IListJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Accelerator installGpuDrivers */ - installGpuDrivers?: (boolean|null); - } + /** + * Decodes a ListJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListJobsResponse + * @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.batch.v1alpha.ListJobsResponse; - /** Represents an Accelerator. */ - class Accelerator implements IAccelerator { + /** + * Decodes a ListJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListJobsResponse + * @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.batch.v1alpha.ListJobsResponse; - /** - * Constructs a new Accelerator. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IAccelerator); + /** + * Verifies a ListJobsResponse 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); - /** Accelerator type. */ - public type: string; + /** + * Creates a ListJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListJobsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ListJobsResponse; - /** Accelerator count. */ - public count: (number|Long|string); + /** + * Creates a plain object from a ListJobsResponse message. Also converts values to other types if specified. + * @param message ListJobsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.ListJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Accelerator installGpuDrivers. */ - public installGpuDrivers: boolean; + /** + * Converts this ListJobsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new Accelerator instance using the specified properties. - * @param [properties] Properties to set - * @returns Accelerator instance - */ - public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IAccelerator): google.cloud.batch.v1.AllocationPolicy.Accelerator; + /** + * Gets the default type url for ListJobsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Accelerator.verify|verify} messages. - * @param message Accelerator message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.AllocationPolicy.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a ListTasksRequest. */ + interface IListTasksRequest { - /** - * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Accelerator.verify|verify} messages. - * @param message Accelerator message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTasksRequest parent */ + parent?: (string|null); - /** - * Decodes an Accelerator message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Accelerator - * @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.batch.v1.AllocationPolicy.Accelerator; + /** ListTasksRequest filter */ + filter?: (string|null); - /** - * Decodes an Accelerator message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Accelerator - * @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.batch.v1.AllocationPolicy.Accelerator; + /** ListTasksRequest pageSize */ + pageSize?: (number|null); - /** - * Verifies an Accelerator 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); + /** ListTasksRequest pageToken */ + pageToken?: (string|null); + } - /** - * Creates an Accelerator message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Accelerator - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.Accelerator; + /** Represents a ListTasksRequest. */ + class ListTasksRequest implements IListTasksRequest { - /** - * Creates a plain object from an Accelerator message. Also converts values to other types if specified. - * @param message Accelerator - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.AllocationPolicy.Accelerator, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new ListTasksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.IListTasksRequest); - /** - * Converts this Accelerator to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListTasksRequest parent. */ + public parent: string; - /** - * Gets the default type url for Accelerator - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListTasksRequest filter. */ + public filter: string; - /** Properties of an InstancePolicy. */ - interface IInstancePolicy { + /** ListTasksRequest pageSize. */ + public pageSize: number; - /** InstancePolicy machineType */ - machineType?: (string|null); + /** ListTasksRequest pageToken. */ + public pageToken: string; - /** InstancePolicy minCpuPlatform */ - minCpuPlatform?: (string|null); + /** + * Creates a new ListTasksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTasksRequest instance + */ + public static create(properties?: google.cloud.batch.v1alpha.IListTasksRequest): google.cloud.batch.v1alpha.ListTasksRequest; - /** InstancePolicy provisioningModel */ - provisioningModel?: (google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|null); + /** + * Encodes the specified ListTasksRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksRequest.verify|verify} messages. + * @param message ListTasksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.IListTasksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** InstancePolicy accelerators */ - accelerators?: (google.cloud.batch.v1.AllocationPolicy.IAccelerator[]|null); + /** + * Encodes the specified ListTasksRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksRequest.verify|verify} messages. + * @param message ListTasksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.IListTasksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** InstancePolicy disks */ - disks?: (google.cloud.batch.v1.AllocationPolicy.IAttachedDisk[]|null); - } + /** + * Decodes a ListTasksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTasksRequest + * @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.batch.v1alpha.ListTasksRequest; - /** Represents an InstancePolicy. */ - class InstancePolicy implements IInstancePolicy { + /** + * Decodes a ListTasksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTasksRequest + * @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.batch.v1alpha.ListTasksRequest; - /** - * Constructs a new InstancePolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IInstancePolicy); + /** + * Verifies a ListTasksRequest 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); - /** InstancePolicy machineType. */ - public machineType: string; + /** + * Creates a ListTasksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTasksRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ListTasksRequest; - /** InstancePolicy minCpuPlatform. */ - public minCpuPlatform: string; + /** + * Creates a plain object from a ListTasksRequest message. Also converts values to other types if specified. + * @param message ListTasksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.ListTasksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** InstancePolicy provisioningModel. */ - public provisioningModel: (google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1.AllocationPolicy.ProvisioningModel); + /** + * Converts this ListTasksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** InstancePolicy accelerators. */ - public accelerators: google.cloud.batch.v1.AllocationPolicy.IAccelerator[]; + /** + * Gets the default type url for ListTasksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** InstancePolicy disks. */ - public disks: google.cloud.batch.v1.AllocationPolicy.IAttachedDisk[]; + /** Properties of a ListTasksResponse. */ + interface IListTasksResponse { - /** - * Creates a new InstancePolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns InstancePolicy instance - */ - public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IInstancePolicy): google.cloud.batch.v1.AllocationPolicy.InstancePolicy; + /** ListTasksResponse tasks */ + tasks?: (google.cloud.batch.v1alpha.ITask[]|null); - /** - * Encodes the specified InstancePolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify|verify} messages. - * @param message InstancePolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.AllocationPolicy.IInstancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTasksResponse nextPageToken */ + nextPageToken?: (string|null); - /** - * Encodes the specified InstancePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify|verify} messages. - * @param message InstancePolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IInstancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTasksResponse unreachable */ + unreachable?: (string[]|null); + } - /** - * Decodes an InstancePolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InstancePolicy - * @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.batch.v1.AllocationPolicy.InstancePolicy; + /** Represents a ListTasksResponse. */ + class ListTasksResponse implements IListTasksResponse { - /** - * Decodes an InstancePolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InstancePolicy - * @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.batch.v1.AllocationPolicy.InstancePolicy; + /** + * Constructs a new ListTasksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.IListTasksResponse); - /** - * Verifies an InstancePolicy 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); + /** ListTasksResponse tasks. */ + public tasks: google.cloud.batch.v1alpha.ITask[]; - /** - * Creates an InstancePolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InstancePolicy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.InstancePolicy; + /** ListTasksResponse nextPageToken. */ + public nextPageToken: string; - /** - * Creates a plain object from an InstancePolicy message. Also converts values to other types if specified. - * @param message InstancePolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.AllocationPolicy.InstancePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListTasksResponse unreachable. */ + public unreachable: string[]; - /** - * Converts this InstancePolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new ListTasksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTasksResponse instance + */ + public static create(properties?: google.cloud.batch.v1alpha.IListTasksResponse): google.cloud.batch.v1alpha.ListTasksResponse; - /** - * Gets the default type url for InstancePolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified ListTasksResponse message. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksResponse.verify|verify} messages. + * @param message ListTasksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.IListTasksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an InstancePolicyOrTemplate. */ - interface IInstancePolicyOrTemplate { + /** + * Encodes the specified ListTasksResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksResponse.verify|verify} messages. + * @param message ListTasksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.IListTasksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** InstancePolicyOrTemplate policy */ - policy?: (google.cloud.batch.v1.AllocationPolicy.IInstancePolicy|null); + /** + * Decodes a ListTasksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTasksResponse + * @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.batch.v1alpha.ListTasksResponse; - /** InstancePolicyOrTemplate instanceTemplate */ - instanceTemplate?: (string|null); + /** + * Decodes a ListTasksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTasksResponse + * @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.batch.v1alpha.ListTasksResponse; - /** InstancePolicyOrTemplate installGpuDrivers */ - installGpuDrivers?: (boolean|null); - } + /** + * Verifies a ListTasksResponse 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); - /** Represents an InstancePolicyOrTemplate. */ - class InstancePolicyOrTemplate implements IInstancePolicyOrTemplate { + /** + * Creates a ListTasksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTasksResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ListTasksResponse; - /** - * Constructs a new InstancePolicyOrTemplate. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate); + /** + * Creates a plain object from a ListTasksResponse message. Also converts values to other types if specified. + * @param message ListTasksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.ListTasksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** InstancePolicyOrTemplate policy. */ - public policy?: (google.cloud.batch.v1.AllocationPolicy.IInstancePolicy|null); + /** + * Converts this ListTasksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** InstancePolicyOrTemplate instanceTemplate. */ - public instanceTemplate?: (string|null); + /** + * Gets the default type url for ListTasksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** InstancePolicyOrTemplate installGpuDrivers. */ - public installGpuDrivers: boolean; + /** Properties of a GetTaskRequest. */ + interface IGetTaskRequest { - /** InstancePolicyOrTemplate policyTemplate. */ - public policyTemplate?: ("policy"|"instanceTemplate"); + /** GetTaskRequest name */ + name?: (string|null); + } - /** - * Creates a new InstancePolicyOrTemplate instance using the specified properties. - * @param [properties] Properties to set - * @returns InstancePolicyOrTemplate instance - */ - public static create(properties?: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate): google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate; + /** Represents a GetTaskRequest. */ + class GetTaskRequest implements IGetTaskRequest { - /** - * Encodes the specified InstancePolicyOrTemplate message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. - * @param message InstancePolicyOrTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new GetTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.IGetTaskRequest); - /** - * Encodes the specified InstancePolicyOrTemplate message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. - * @param message InstancePolicyOrTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + /** GetTaskRequest name. */ + public name: string; - /** - * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InstancePolicyOrTemplate - * @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.batch.v1.AllocationPolicy.InstancePolicyOrTemplate; + /** + * Creates a new GetTaskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskRequest instance + */ + public static create(properties?: google.cloud.batch.v1alpha.IGetTaskRequest): google.cloud.batch.v1alpha.GetTaskRequest; - /** - * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InstancePolicyOrTemplate - * @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.batch.v1.AllocationPolicy.InstancePolicyOrTemplate; + /** + * Encodes the specified GetTaskRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.GetTaskRequest.verify|verify} messages. + * @param message GetTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an InstancePolicyOrTemplate 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); + /** + * Encodes the specified GetTaskRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GetTaskRequest.verify|verify} messages. + * @param message GetTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an InstancePolicyOrTemplate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InstancePolicyOrTemplate - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate; + /** + * Decodes a GetTaskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskRequest + * @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.batch.v1alpha.GetTaskRequest; - /** - * Creates a plain object from an InstancePolicyOrTemplate message. Also converts values to other types if specified. - * @param message InstancePolicyOrTemplate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a GetTaskRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTaskRequest + * @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.batch.v1alpha.GetTaskRequest; - /** - * Converts this InstancePolicyOrTemplate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a GetTaskRequest 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); - /** - * Gets the default type url for InstancePolicyOrTemplate - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a GetTaskRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTaskRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.GetTaskRequest; - /** Properties of a NetworkInterface. */ - interface INetworkInterface { + /** + * Creates a plain object from a GetTaskRequest message. Also converts values to other types if specified. + * @param message GetTaskRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.GetTaskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** NetworkInterface network */ - network?: (string|null); + /** + * Converts this GetTaskRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** NetworkInterface subnetwork */ - subnetwork?: (string|null); + /** + * Gets the default type url for GetTaskRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NetworkInterface noExternalIpAddress */ - noExternalIpAddress?: (boolean|null); - } + /** Properties of an OperationMetadata. */ + interface IOperationMetadata { - /** Represents a NetworkInterface. */ - class NetworkInterface implements INetworkInterface { + /** OperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new NetworkInterface. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.AllocationPolicy.INetworkInterface); + /** OperationMetadata endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** NetworkInterface network. */ - public network: string; + /** OperationMetadata target */ + target?: (string|null); - /** NetworkInterface subnetwork. */ - public subnetwork: string; + /** OperationMetadata verb */ + verb?: (string|null); - /** NetworkInterface noExternalIpAddress. */ - public noExternalIpAddress: boolean; + /** OperationMetadata statusMessage */ + statusMessage?: (string|null); - /** - * Creates a new NetworkInterface instance using the specified properties. - * @param [properties] Properties to set - * @returns NetworkInterface instance - */ - public static create(properties?: google.cloud.batch.v1.AllocationPolicy.INetworkInterface): google.cloud.batch.v1.AllocationPolicy.NetworkInterface; + /** OperationMetadata requestedCancellation */ + requestedCancellation?: (boolean|null); - /** - * Encodes the specified NetworkInterface message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify|verify} messages. - * @param message NetworkInterface message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.AllocationPolicy.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer; + /** OperationMetadata apiVersion */ + apiVersion?: (string|null); + } - /** - * Encodes the specified NetworkInterface message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify|verify} messages. - * @param message NetworkInterface message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an OperationMetadata. */ + class OperationMetadata implements IOperationMetadata { - /** - * Decodes a NetworkInterface message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NetworkInterface - * @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.batch.v1.AllocationPolicy.NetworkInterface; + /** + * Constructs a new OperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.IOperationMetadata); - /** - * Decodes a NetworkInterface message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetworkInterface - * @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.batch.v1.AllocationPolicy.NetworkInterface; + /** OperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies a NetworkInterface 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); + /** OperationMetadata endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NetworkInterface - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.NetworkInterface; + /** OperationMetadata target. */ + public target: string; - /** - * Creates a plain object from a NetworkInterface message. Also converts values to other types if specified. - * @param message NetworkInterface - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.AllocationPolicy.NetworkInterface, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** OperationMetadata verb. */ + public verb: string; - /** - * Converts this NetworkInterface to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** OperationMetadata statusMessage. */ + public statusMessage: string; - /** - * Gets the default type url for NetworkInterface - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** OperationMetadata requestedCancellation. */ + public requestedCancellation: boolean; - /** Properties of a NetworkPolicy. */ - interface INetworkPolicy { + /** OperationMetadata apiVersion. */ + public apiVersion: string; - /** NetworkPolicy networkInterfaces */ - networkInterfaces?: (google.cloud.batch.v1.AllocationPolicy.INetworkInterface[]|null); - } + /** + * Creates a new OperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationMetadata instance + */ + public static create(properties?: google.cloud.batch.v1alpha.IOperationMetadata): google.cloud.batch.v1alpha.OperationMetadata; - /** Represents a NetworkPolicy. */ - class NetworkPolicy implements INetworkPolicy { + /** + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.batch.v1alpha.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.OperationMetadata.verify|verify} messages. + * @param message OperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new NetworkPolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.AllocationPolicy.INetworkPolicy); + /** + * Decodes an OperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationMetadata + * @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.batch.v1alpha.OperationMetadata; - /** NetworkPolicy networkInterfaces. */ - public networkInterfaces: google.cloud.batch.v1.AllocationPolicy.INetworkInterface[]; + /** + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OperationMetadata + * @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.batch.v1alpha.OperationMetadata; - /** - * Creates a new NetworkPolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns NetworkPolicy instance - */ - public static create(properties?: google.cloud.batch.v1.AllocationPolicy.INetworkPolicy): google.cloud.batch.v1.AllocationPolicy.NetworkPolicy; + /** + * Verifies an OperationMetadata 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); - /** - * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify|verify} messages. - * @param message NetworkPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.AllocationPolicy.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.OperationMetadata; - /** - * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify|verify} messages. - * @param message NetworkPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.AllocationPolicy.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @param message OperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a NetworkPolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NetworkPolicy - * @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.batch.v1.AllocationPolicy.NetworkPolicy; + /** + * Converts this OperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetworkPolicy - * @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.batch.v1.AllocationPolicy.NetworkPolicy; + /** + * Gets the default type url for OperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a NetworkPolicy 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); + /** Properties of a Job. */ + interface IJob { - /** - * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NetworkPolicy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.AllocationPolicy.NetworkPolicy; + /** Job name */ + name?: (string|null); - /** - * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. - * @param message NetworkPolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.AllocationPolicy.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Job uid */ + uid?: (string|null); - /** - * Converts this NetworkPolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Job priority */ + priority?: (number|Long|string|null); - /** - * Gets the default type url for NetworkPolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Job taskGroups */ + taskGroups?: (google.cloud.batch.v1alpha.ITaskGroup[]|null); - /** ProvisioningModel enum. */ - enum ProvisioningModel { - PROVISIONING_MODEL_UNSPECIFIED = 0, - STANDARD = 1, - SPOT = 2, - PREEMPTIBLE = 3 - } - } + /** Job schedulingPolicy */ + schedulingPolicy?: (google.cloud.batch.v1alpha.Job.SchedulingPolicy|keyof typeof google.cloud.batch.v1alpha.Job.SchedulingPolicy|null); - /** Properties of a TaskGroup. */ - interface ITaskGroup { + /** Job dependencies */ + dependencies?: (google.cloud.batch.v1alpha.IJobDependency[]|null); - /** TaskGroup name */ - name?: (string|null); + /** Job allocationPolicy */ + allocationPolicy?: (google.cloud.batch.v1alpha.IAllocationPolicy|null); - /** TaskGroup taskSpec */ - taskSpec?: (google.cloud.batch.v1.ITaskSpec|null); + /** Job labels */ + labels?: ({ [k: string]: string }|null); - /** TaskGroup taskCount */ - taskCount?: (number|Long|string|null); + /** Job status */ + status?: (google.cloud.batch.v1alpha.IJobStatus|null); - /** TaskGroup parallelism */ - parallelism?: (number|Long|string|null); + /** Job notification */ + notification?: (google.cloud.batch.v1alpha.IJobNotification|null); - /** TaskGroup taskEnvironments */ - taskEnvironments?: (google.cloud.batch.v1.IEnvironment[]|null); + /** Job createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** TaskGroup taskCountPerNode */ - taskCountPerNode?: (number|Long|string|null); + /** Job updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** TaskGroup requireHostsFile */ - requireHostsFile?: (boolean|null); + /** Job logsPolicy */ + logsPolicy?: (google.cloud.batch.v1alpha.ILogsPolicy|null); - /** TaskGroup permissiveSsh */ - permissiveSsh?: (boolean|null); + /** Job notifications */ + notifications?: (google.cloud.batch.v1alpha.IJobNotification[]|null); } - /** Represents a TaskGroup. */ - class TaskGroup implements ITaskGroup { + /** Represents a Job. */ + class Job implements IJob { /** - * Constructs a new TaskGroup. + * Constructs a new Job. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.ITaskGroup); + constructor(properties?: google.cloud.batch.v1alpha.IJob); - /** TaskGroup name. */ + /** Job name. */ public name: string; - /** TaskGroup taskSpec. */ - public taskSpec?: (google.cloud.batch.v1.ITaskSpec|null); + /** Job uid. */ + public uid: string; - /** TaskGroup taskCount. */ - public taskCount: (number|Long|string); + /** Job priority. */ + public priority: (number|Long|string); - /** TaskGroup parallelism. */ - public parallelism: (number|Long|string); + /** Job taskGroups. */ + public taskGroups: google.cloud.batch.v1alpha.ITaskGroup[]; - /** TaskGroup taskEnvironments. */ - public taskEnvironments: google.cloud.batch.v1.IEnvironment[]; + /** Job schedulingPolicy. */ + public schedulingPolicy: (google.cloud.batch.v1alpha.Job.SchedulingPolicy|keyof typeof google.cloud.batch.v1alpha.Job.SchedulingPolicy); - /** TaskGroup taskCountPerNode. */ - public taskCountPerNode: (number|Long|string); + /** Job dependencies. */ + public dependencies: google.cloud.batch.v1alpha.IJobDependency[]; - /** TaskGroup requireHostsFile. */ - public requireHostsFile: boolean; + /** Job allocationPolicy. */ + public allocationPolicy?: (google.cloud.batch.v1alpha.IAllocationPolicy|null); - /** TaskGroup permissiveSsh. */ - public permissiveSsh: boolean; + /** Job labels. */ + public labels: { [k: string]: string }; + + /** Job status. */ + public status?: (google.cloud.batch.v1alpha.IJobStatus|null); + + /** Job notification. */ + public notification?: (google.cloud.batch.v1alpha.IJobNotification|null); + + /** Job createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Job updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Job logsPolicy. */ + public logsPolicy?: (google.cloud.batch.v1alpha.ILogsPolicy|null); + + /** Job notifications. */ + public notifications: google.cloud.batch.v1alpha.IJobNotification[]; /** - * Creates a new TaskGroup instance using the specified properties. + * Creates a new Job instance using the specified properties. * @param [properties] Properties to set - * @returns TaskGroup instance + * @returns Job instance */ - public static create(properties?: google.cloud.batch.v1.ITaskGroup): google.cloud.batch.v1.TaskGroup; + public static create(properties?: google.cloud.batch.v1alpha.IJob): google.cloud.batch.v1alpha.Job; /** - * Encodes the specified TaskGroup message. Does not implicitly {@link google.cloud.batch.v1.TaskGroup.verify|verify} messages. - * @param message TaskGroup message or plain object to encode + * Encodes the specified Job message. Does not implicitly {@link google.cloud.batch.v1alpha.Job.verify|verify} messages. + * @param message Job message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.ITaskGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TaskGroup message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskGroup.verify|verify} messages. - * @param message TaskGroup message or plain object to encode + * Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Job.verify|verify} messages. + * @param message Job message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.ITaskGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskGroup message from the specified reader or buffer. + * Decodes a Job message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TaskGroup + * @returns Job * @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.batch.v1.TaskGroup; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.Job; /** - * Decodes a TaskGroup message from the specified reader or buffer, length delimited. + * Decodes a Job message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TaskGroup + * @returns Job * @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.batch.v1.TaskGroup; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.Job; /** - * Verifies a TaskGroup message. + * Verifies a Job 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 TaskGroup message from a plain object. Also converts values to their respective internal types. + * Creates a Job message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TaskGroup + * @returns Job */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.TaskGroup; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Job; /** - * Creates a plain object from a TaskGroup message. Also converts values to other types if specified. - * @param message TaskGroup + * Creates a plain object from a Job message. Also converts values to other types if specified. + * @param message Job * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.TaskGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.Job, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TaskGroup to JSON. + * Converts this Job to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TaskGroup + * Gets the default type url for Job * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceAccount. */ - interface IServiceAccount { + namespace Job { - /** ServiceAccount email */ - email?: (string|null); + /** SchedulingPolicy enum. */ + enum SchedulingPolicy { + SCHEDULING_POLICY_UNSPECIFIED = 0, + AS_SOON_AS_POSSIBLE = 1 + } } - /** Represents a ServiceAccount. */ - class ServiceAccount implements IServiceAccount { + /** Properties of a LogsPolicy. */ + interface ILogsPolicy { + + /** LogsPolicy destination */ + destination?: (google.cloud.batch.v1alpha.LogsPolicy.Destination|keyof typeof google.cloud.batch.v1alpha.LogsPolicy.Destination|null); + + /** LogsPolicy logsPath */ + logsPath?: (string|null); + } + + /** Represents a LogsPolicy. */ + class LogsPolicy implements ILogsPolicy { /** - * Constructs a new ServiceAccount. + * Constructs a new LogsPolicy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IServiceAccount); + constructor(properties?: google.cloud.batch.v1alpha.ILogsPolicy); - /** ServiceAccount email. */ - public email: string; + /** LogsPolicy destination. */ + public destination: (google.cloud.batch.v1alpha.LogsPolicy.Destination|keyof typeof google.cloud.batch.v1alpha.LogsPolicy.Destination); + + /** LogsPolicy logsPath. */ + public logsPath: string; /** - * Creates a new ServiceAccount instance using the specified properties. + * Creates a new LogsPolicy instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceAccount instance + * @returns LogsPolicy instance */ - public static create(properties?: google.cloud.batch.v1.IServiceAccount): google.cloud.batch.v1.ServiceAccount; + public static create(properties?: google.cloud.batch.v1alpha.ILogsPolicy): google.cloud.batch.v1alpha.LogsPolicy; /** - * Encodes the specified ServiceAccount message. Does not implicitly {@link google.cloud.batch.v1.ServiceAccount.verify|verify} messages. - * @param message ServiceAccount message or plain object to encode + * Encodes the specified LogsPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.LogsPolicy.verify|verify} messages. + * @param message LogsPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IServiceAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.ILogsPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ServiceAccount message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ServiceAccount.verify|verify} messages. - * @param message ServiceAccount message or plain object to encode + * Encodes the specified LogsPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LogsPolicy.verify|verify} messages. + * @param message LogsPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IServiceAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.ILogsPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceAccount message from the specified reader or buffer. + * Decodes a LogsPolicy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceAccount + * @returns LogsPolicy * @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.batch.v1.ServiceAccount; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.LogsPolicy; /** - * Decodes a ServiceAccount message from the specified reader or buffer, length delimited. + * Decodes a LogsPolicy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceAccount + * @returns LogsPolicy * @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.batch.v1.ServiceAccount; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.LogsPolicy; /** - * Verifies a ServiceAccount message. + * Verifies a LogsPolicy 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 ServiceAccount message from a plain object. Also converts values to their respective internal types. + * Creates a LogsPolicy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceAccount + * @returns LogsPolicy */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ServiceAccount; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.LogsPolicy; /** - * Creates a plain object from a ServiceAccount message. Also converts values to other types if specified. - * @param message ServiceAccount + * Creates a plain object from a LogsPolicy message. Also converts values to other types if specified. + * @param message LogsPolicy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.ServiceAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.LogsPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceAccount to JSON. + * Converts this LogsPolicy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceAccount + * Gets the default type url for LogsPolicy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ComputeResource. */ - interface IComputeResource { + namespace LogsPolicy { - /** ComputeResource cpuMilli */ - cpuMilli?: (number|Long|string|null); + /** Destination enum. */ + enum Destination { + DESTINATION_UNSPECIFIED = 0, + CLOUD_LOGGING = 1, + PATH = 2 + } + } - /** ComputeResource memoryMib */ - memoryMib?: (number|Long|string|null); + /** Properties of a JobDependency. */ + interface IJobDependency { - /** ComputeResource bootDiskMib */ - bootDiskMib?: (number|Long|string|null); + /** JobDependency items */ + items?: ({ [k: string]: google.cloud.batch.v1alpha.JobDependency.Type }|null); } - /** Represents a ComputeResource. */ - class ComputeResource implements IComputeResource { + /** Represents a JobDependency. */ + class JobDependency implements IJobDependency { /** - * Constructs a new ComputeResource. + * Constructs a new JobDependency. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IComputeResource); - - /** ComputeResource cpuMilli. */ - public cpuMilli: (number|Long|string); - - /** ComputeResource memoryMib. */ - public memoryMib: (number|Long|string); + constructor(properties?: google.cloud.batch.v1alpha.IJobDependency); - /** ComputeResource bootDiskMib. */ - public bootDiskMib: (number|Long|string); + /** JobDependency items. */ + public items: { [k: string]: google.cloud.batch.v1alpha.JobDependency.Type }; /** - * Creates a new ComputeResource instance using the specified properties. + * Creates a new JobDependency instance using the specified properties. * @param [properties] Properties to set - * @returns ComputeResource instance + * @returns JobDependency instance */ - public static create(properties?: google.cloud.batch.v1.IComputeResource): google.cloud.batch.v1.ComputeResource; + public static create(properties?: google.cloud.batch.v1alpha.IJobDependency): google.cloud.batch.v1alpha.JobDependency; /** - * Encodes the specified ComputeResource message. Does not implicitly {@link google.cloud.batch.v1.ComputeResource.verify|verify} messages. - * @param message ComputeResource message or plain object to encode + * Encodes the specified JobDependency message. Does not implicitly {@link google.cloud.batch.v1alpha.JobDependency.verify|verify} messages. + * @param message JobDependency message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IComputeResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IJobDependency, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ComputeResource message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ComputeResource.verify|verify} messages. - * @param message ComputeResource message or plain object to encode + * Encodes the specified JobDependency message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobDependency.verify|verify} messages. + * @param message JobDependency message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IComputeResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IJobDependency, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ComputeResource message from the specified reader or buffer. + * Decodes a JobDependency message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ComputeResource + * @returns JobDependency * @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.batch.v1.ComputeResource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.JobDependency; /** - * Decodes a ComputeResource message from the specified reader or buffer, length delimited. + * Decodes a JobDependency message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ComputeResource + * @returns JobDependency * @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.batch.v1.ComputeResource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.JobDependency; /** - * Verifies a ComputeResource message. + * Verifies a JobDependency 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 ComputeResource message from a plain object. Also converts values to their respective internal types. + * Creates a JobDependency message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ComputeResource + * @returns JobDependency */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.ComputeResource; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobDependency; /** - * Creates a plain object from a ComputeResource message. Also converts values to other types if specified. - * @param message ComputeResource + * Creates a plain object from a JobDependency message. Also converts values to other types if specified. + * @param message JobDependency * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.ComputeResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.JobDependency, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ComputeResource to JSON. + * Converts this JobDependency to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ComputeResource + * Gets the default type url for JobDependency * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StatusEvent. */ - interface IStatusEvent { + namespace JobDependency { - /** StatusEvent type */ - type?: (string|null); + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + SUCCEEDED = 1, + FAILED = 2, + FINISHED = 3 + } + } - /** StatusEvent description */ - description?: (string|null); + /** Properties of a JobStatus. */ + interface IJobStatus { - /** StatusEvent eventTime */ - eventTime?: (google.protobuf.ITimestamp|null); + /** JobStatus state */ + state?: (google.cloud.batch.v1alpha.JobStatus.State|keyof typeof google.cloud.batch.v1alpha.JobStatus.State|null); - /** StatusEvent taskExecution */ - taskExecution?: (google.cloud.batch.v1.ITaskExecution|null); + /** JobStatus statusEvents */ + statusEvents?: (google.cloud.batch.v1alpha.IStatusEvent[]|null); + + /** JobStatus taskGroups */ + taskGroups?: ({ [k: string]: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus }|null); + + /** JobStatus runDuration */ + runDuration?: (google.protobuf.IDuration|null); } - /** Represents a StatusEvent. */ - class StatusEvent implements IStatusEvent { + /** Represents a JobStatus. */ + class JobStatus implements IJobStatus { /** - * Constructs a new StatusEvent. + * Constructs a new JobStatus. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IStatusEvent); + constructor(properties?: google.cloud.batch.v1alpha.IJobStatus); - /** StatusEvent type. */ - public type: string; + /** JobStatus state. */ + public state: (google.cloud.batch.v1alpha.JobStatus.State|keyof typeof google.cloud.batch.v1alpha.JobStatus.State); - /** StatusEvent description. */ - public description: string; + /** JobStatus statusEvents. */ + public statusEvents: google.cloud.batch.v1alpha.IStatusEvent[]; - /** StatusEvent eventTime. */ - public eventTime?: (google.protobuf.ITimestamp|null); + /** JobStatus taskGroups. */ + public taskGroups: { [k: string]: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus }; - /** StatusEvent taskExecution. */ - public taskExecution?: (google.cloud.batch.v1.ITaskExecution|null); + /** JobStatus runDuration. */ + public runDuration?: (google.protobuf.IDuration|null); /** - * Creates a new StatusEvent instance using the specified properties. + * Creates a new JobStatus instance using the specified properties. * @param [properties] Properties to set - * @returns StatusEvent instance + * @returns JobStatus instance */ - public static create(properties?: google.cloud.batch.v1.IStatusEvent): google.cloud.batch.v1.StatusEvent; + public static create(properties?: google.cloud.batch.v1alpha.IJobStatus): google.cloud.batch.v1alpha.JobStatus; /** - * Encodes the specified StatusEvent message. Does not implicitly {@link google.cloud.batch.v1.StatusEvent.verify|verify} messages. - * @param message StatusEvent message or plain object to encode + * Encodes the specified JobStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.verify|verify} messages. + * @param message JobStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IStatusEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StatusEvent message, length delimited. Does not implicitly {@link google.cloud.batch.v1.StatusEvent.verify|verify} messages. - * @param message StatusEvent message or plain object to encode + * Encodes the specified JobStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.verify|verify} messages. + * @param message JobStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IStatusEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StatusEvent message from the specified reader or buffer. + * Decodes a JobStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StatusEvent + * @returns JobStatus * @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.batch.v1.StatusEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.JobStatus; /** - * Decodes a StatusEvent message from the specified reader or buffer, length delimited. + * Decodes a JobStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StatusEvent + * @returns JobStatus * @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.batch.v1.StatusEvent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.JobStatus; /** - * Verifies a StatusEvent message. + * Verifies a JobStatus 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 StatusEvent message from a plain object. Also converts values to their respective internal types. + * Creates a JobStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StatusEvent + * @returns JobStatus */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.StatusEvent; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobStatus; + + /** + * Creates a plain object from a JobStatus message. Also converts values to other types if specified. + * @param message JobStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.JobStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this JobStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for JobStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace JobStatus { + + /** Properties of an InstanceStatus. */ + interface IInstanceStatus { + + /** InstanceStatus machineType */ + machineType?: (string|null); + + /** InstanceStatus provisioningModel */ + provisioningModel?: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|null); + + /** InstanceStatus taskPack */ + taskPack?: (number|Long|string|null); + + /** InstanceStatus bootDisk */ + bootDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); + } + + /** Represents an InstanceStatus. */ + class InstanceStatus implements IInstanceStatus { + + /** + * Constructs a new InstanceStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus); + + /** InstanceStatus machineType. */ + public machineType: string; + + /** InstanceStatus provisioningModel. */ + public provisioningModel: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel); + + /** InstanceStatus taskPack. */ + public taskPack: (number|Long|string); + + /** InstanceStatus bootDisk. */ + public bootDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); + + /** + * Creates a new InstanceStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceStatus instance + */ + public static create(properties?: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus): google.cloud.batch.v1alpha.JobStatus.InstanceStatus; + + /** + * Encodes the specified InstanceStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify|verify} messages. + * @param message InstanceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify|verify} messages. + * @param message InstanceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceStatus + * @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.batch.v1alpha.JobStatus.InstanceStatus; + + /** + * Decodes an InstanceStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceStatus + * @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.batch.v1alpha.JobStatus.InstanceStatus; + + /** + * Verifies an InstanceStatus 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 an InstanceStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobStatus.InstanceStatus; + + /** + * Creates a plain object from an InstanceStatus message. Also converts values to other types if specified. + * @param message InstanceStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.JobStatus.InstanceStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TaskGroupStatus. */ + interface ITaskGroupStatus { + + /** TaskGroupStatus counts */ + counts?: ({ [k: string]: (number|Long|string) }|null); + + /** TaskGroupStatus instances */ + instances?: (google.cloud.batch.v1alpha.JobStatus.IInstanceStatus[]|null); + } + + /** Represents a TaskGroupStatus. */ + class TaskGroupStatus implements ITaskGroupStatus { + + /** + * Constructs a new TaskGroupStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus); + + /** TaskGroupStatus counts. */ + public counts: { [k: string]: (number|Long|string) }; + + /** TaskGroupStatus instances. */ + public instances: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus[]; + + /** + * Creates a new TaskGroupStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskGroupStatus instance + */ + public static create(properties?: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus): google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus; + + /** + * Encodes the specified TaskGroupStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify|verify} messages. + * @param message TaskGroupStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TaskGroupStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify|verify} messages. + * @param message TaskGroupStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskGroupStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskGroupStatus + * @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.batch.v1alpha.JobStatus.TaskGroupStatus; + + /** + * Decodes a TaskGroupStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TaskGroupStatus + * @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.batch.v1alpha.JobStatus.TaskGroupStatus; + + /** + * Verifies a TaskGroupStatus 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 TaskGroupStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TaskGroupStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus; + + /** + * Creates a plain object from a TaskGroupStatus message. Also converts values to other types if specified. + * @param message TaskGroupStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a StatusEvent message. Also converts values to other types if specified. - * @param message StatusEvent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.StatusEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this TaskGroupStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this StatusEvent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for TaskGroupStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for StatusEvent - * @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, + QUEUED = 1, + SCHEDULED = 2, + RUNNING = 3, + SUCCEEDED = 4, + FAILED = 5, + DELETION_IN_PROGRESS = 6 + } } - /** Properties of a TaskExecution. */ - interface ITaskExecution { + /** Properties of a JobNotification. */ + interface IJobNotification { - /** TaskExecution exitCode */ - exitCode?: (number|null); + /** JobNotification pubsubTopic */ + pubsubTopic?: (string|null); + + /** JobNotification message */ + message?: (google.cloud.batch.v1alpha.JobNotification.IMessage|null); } - /** Represents a TaskExecution. */ - class TaskExecution implements ITaskExecution { + /** Represents a JobNotification. */ + class JobNotification implements IJobNotification { /** - * Constructs a new TaskExecution. + * Constructs a new JobNotification. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.ITaskExecution); + constructor(properties?: google.cloud.batch.v1alpha.IJobNotification); - /** TaskExecution exitCode. */ - public exitCode: number; + /** JobNotification pubsubTopic. */ + public pubsubTopic: string; + + /** JobNotification message. */ + public message?: (google.cloud.batch.v1alpha.JobNotification.IMessage|null); /** - * Creates a new TaskExecution instance using the specified properties. + * Creates a new JobNotification instance using the specified properties. * @param [properties] Properties to set - * @returns TaskExecution instance + * @returns JobNotification instance */ - public static create(properties?: google.cloud.batch.v1.ITaskExecution): google.cloud.batch.v1.TaskExecution; + public static create(properties?: google.cloud.batch.v1alpha.IJobNotification): google.cloud.batch.v1alpha.JobNotification; /** - * Encodes the specified TaskExecution message. Does not implicitly {@link google.cloud.batch.v1.TaskExecution.verify|verify} messages. - * @param message TaskExecution message or plain object to encode + * Encodes the specified JobNotification message. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.verify|verify} messages. + * @param message JobNotification message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IJobNotification, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TaskExecution message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskExecution.verify|verify} messages. - * @param message TaskExecution message or plain object to encode + * Encodes the specified JobNotification message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.verify|verify} messages. + * @param message JobNotification message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IJobNotification, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskExecution message from the specified reader or buffer. + * Decodes a JobNotification message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TaskExecution + * @returns JobNotification * @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.batch.v1.TaskExecution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.JobNotification; /** - * Decodes a TaskExecution message from the specified reader or buffer, length delimited. + * Decodes a JobNotification message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TaskExecution + * @returns JobNotification * @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.batch.v1.TaskExecution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.JobNotification; /** - * Verifies a TaskExecution message. + * Verifies a JobNotification 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 TaskExecution message from a plain object. Also converts values to their respective internal types. + * Creates a JobNotification message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TaskExecution + * @returns JobNotification */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.TaskExecution; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobNotification; /** - * Creates a plain object from a TaskExecution message. Also converts values to other types if specified. - * @param message TaskExecution + * Creates a plain object from a JobNotification message. Also converts values to other types if specified. + * @param message JobNotification * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.TaskExecution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.JobNotification, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TaskExecution to JSON. + * Converts this JobNotification to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TaskExecution + * Gets the default type url for JobNotification * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TaskStatus. */ - interface ITaskStatus { + namespace JobNotification { - /** TaskStatus state */ - state?: (google.cloud.batch.v1.TaskStatus.State|keyof typeof google.cloud.batch.v1.TaskStatus.State|null); + /** Properties of a Message. */ + interface IMessage { - /** TaskStatus statusEvents */ - statusEvents?: (google.cloud.batch.v1.IStatusEvent[]|null); - } + /** Message type */ + type?: (google.cloud.batch.v1alpha.JobNotification.Type|keyof typeof google.cloud.batch.v1alpha.JobNotification.Type|null); - /** Represents a TaskStatus. */ - class TaskStatus implements ITaskStatus { + /** Message newJobState */ + newJobState?: (google.cloud.batch.v1alpha.JobStatus.State|keyof typeof google.cloud.batch.v1alpha.JobStatus.State|null); - /** - * Constructs a new TaskStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.ITaskStatus); + /** Message newTaskState */ + newTaskState?: (google.cloud.batch.v1alpha.TaskStatus.State|keyof typeof google.cloud.batch.v1alpha.TaskStatus.State|null); + } - /** TaskStatus state. */ - public state: (google.cloud.batch.v1.TaskStatus.State|keyof typeof google.cloud.batch.v1.TaskStatus.State); + /** Represents a Message. */ + class Message implements IMessage { - /** TaskStatus statusEvents. */ - public statusEvents: google.cloud.batch.v1.IStatusEvent[]; + /** + * Constructs a new Message. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.JobNotification.IMessage); - /** - * Creates a new TaskStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskStatus instance - */ - public static create(properties?: google.cloud.batch.v1.ITaskStatus): google.cloud.batch.v1.TaskStatus; + /** Message type. */ + public type: (google.cloud.batch.v1alpha.JobNotification.Type|keyof typeof google.cloud.batch.v1alpha.JobNotification.Type); - /** - * Encodes the specified TaskStatus message. Does not implicitly {@link google.cloud.batch.v1.TaskStatus.verify|verify} messages. - * @param message TaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.ITaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** Message newJobState. */ + public newJobState: (google.cloud.batch.v1alpha.JobStatus.State|keyof typeof google.cloud.batch.v1alpha.JobStatus.State); - /** - * Encodes the specified TaskStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskStatus.verify|verify} messages. - * @param message TaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.ITaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** Message newTaskState. */ + public newTaskState: (google.cloud.batch.v1alpha.TaskStatus.State|keyof typeof google.cloud.batch.v1alpha.TaskStatus.State); - /** - * Decodes a TaskStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskStatus - * @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.batch.v1.TaskStatus; + /** + * Creates a new Message instance using the specified properties. + * @param [properties] Properties to set + * @returns Message instance + */ + public static create(properties?: google.cloud.batch.v1alpha.JobNotification.IMessage): google.cloud.batch.v1alpha.JobNotification.Message; - /** - * Decodes a TaskStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TaskStatus - * @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.batch.v1.TaskStatus; + /** + * Encodes the specified Message message. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.Message.verify|verify} messages. + * @param message Message message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.JobNotification.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a TaskStatus 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); + /** + * Encodes the specified Message message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.Message.verify|verify} messages. + * @param message Message message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.JobNotification.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a TaskStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TaskStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.TaskStatus; + /** + * Decodes a Message message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Message + * @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.batch.v1alpha.JobNotification.Message; - /** - * Creates a plain object from a TaskStatus message. Also converts values to other types if specified. - * @param message TaskStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.TaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Message message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Message + * @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.batch.v1alpha.JobNotification.Message; + + /** + * Verifies a Message 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); - /** - * Converts this TaskStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a Message message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Message + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobNotification.Message; - /** - * Gets the default type url for TaskStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a Message message. Also converts values to other types if specified. + * @param message Message + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.JobNotification.Message, options?: $protobuf.IConversionOptions): { [k: string]: any }; - namespace TaskStatus { + /** + * Converts this Message to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - ASSIGNED = 2, - RUNNING = 3, - FAILED = 4, - SUCCEEDED = 5 + /** + * Gets the default type url for Message + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + JOB_STATE_CHANGED = 1, + TASK_STATE_CHANGED = 2 } } - /** Properties of a Runnable. */ - interface IRunnable { + /** Properties of an AllocationPolicy. */ + interface IAllocationPolicy { - /** Runnable container */ - container?: (google.cloud.batch.v1.Runnable.IContainer|null); + /** AllocationPolicy location */ + location?: (google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy|null); - /** Runnable script */ - script?: (google.cloud.batch.v1.Runnable.IScript|null); + /** AllocationPolicy instance */ + instance?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null); - /** Runnable barrier */ - barrier?: (google.cloud.batch.v1.Runnable.IBarrier|null); + /** AllocationPolicy instances */ + instances?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate[]|null); - /** Runnable ignoreExitStatus */ - ignoreExitStatus?: (boolean|null); + /** AllocationPolicy instanceTemplates */ + instanceTemplates?: (string[]|null); - /** Runnable background */ - background?: (boolean|null); + /** AllocationPolicy provisioningModels */ + provisioningModels?: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[]|null); - /** Runnable alwaysRun */ - alwaysRun?: (boolean|null); + /** AllocationPolicy serviceAccountEmail */ + serviceAccountEmail?: (string|null); - /** Runnable environment */ - environment?: (google.cloud.batch.v1.IEnvironment|null); + /** AllocationPolicy serviceAccount */ + serviceAccount?: (google.cloud.batch.v1alpha.IServiceAccount|null); - /** Runnable timeout */ - timeout?: (google.protobuf.IDuration|null); + /** AllocationPolicy labels */ + labels?: ({ [k: string]: string }|null); + + /** AllocationPolicy network */ + network?: (google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy|null); } - /** Represents a Runnable. */ - class Runnable implements IRunnable { + /** Represents an AllocationPolicy. */ + class AllocationPolicy implements IAllocationPolicy { /** - * Constructs a new Runnable. + * Constructs a new AllocationPolicy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IRunnable); + constructor(properties?: google.cloud.batch.v1alpha.IAllocationPolicy); - /** Runnable container. */ - public container?: (google.cloud.batch.v1.Runnable.IContainer|null); + /** AllocationPolicy location. */ + public location?: (google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy|null); - /** Runnable script. */ - public script?: (google.cloud.batch.v1.Runnable.IScript|null); + /** AllocationPolicy instance. */ + public instance?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null); - /** Runnable barrier. */ - public barrier?: (google.cloud.batch.v1.Runnable.IBarrier|null); + /** AllocationPolicy instances. */ + public instances: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate[]; - /** Runnable ignoreExitStatus. */ - public ignoreExitStatus: boolean; + /** AllocationPolicy instanceTemplates. */ + public instanceTemplates: string[]; - /** Runnable background. */ - public background: boolean; + /** AllocationPolicy provisioningModels. */ + public provisioningModels: google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[]; - /** Runnable alwaysRun. */ - public alwaysRun: boolean; + /** AllocationPolicy serviceAccountEmail. */ + public serviceAccountEmail: string; - /** Runnable environment. */ - public environment?: (google.cloud.batch.v1.IEnvironment|null); + /** AllocationPolicy serviceAccount. */ + public serviceAccount?: (google.cloud.batch.v1alpha.IServiceAccount|null); - /** Runnable timeout. */ - public timeout?: (google.protobuf.IDuration|null); + /** AllocationPolicy labels. */ + public labels: { [k: string]: string }; - /** Runnable executable. */ - public executable?: ("container"|"script"|"barrier"); + /** AllocationPolicy network. */ + public network?: (google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy|null); /** - * Creates a new Runnable instance using the specified properties. + * Creates a new AllocationPolicy instance using the specified properties. * @param [properties] Properties to set - * @returns Runnable instance + * @returns AllocationPolicy instance */ - public static create(properties?: google.cloud.batch.v1.IRunnable): google.cloud.batch.v1.Runnable; + public static create(properties?: google.cloud.batch.v1alpha.IAllocationPolicy): google.cloud.batch.v1alpha.AllocationPolicy; /** - * Encodes the specified Runnable message. Does not implicitly {@link google.cloud.batch.v1.Runnable.verify|verify} messages. - * @param message Runnable message or plain object to encode + * Encodes the specified AllocationPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.verify|verify} messages. + * @param message AllocationPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IRunnable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Runnable message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.verify|verify} messages. - * @param message Runnable message or plain object to encode + * Encodes the specified AllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.verify|verify} messages. + * @param message AllocationPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IRunnable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Runnable message from the specified reader or buffer. + * Decodes an AllocationPolicy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Runnable + * @returns AllocationPolicy * @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.batch.v1.Runnable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.AllocationPolicy; /** - * Decodes a Runnable message from the specified reader or buffer, length delimited. + * Decodes an AllocationPolicy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Runnable + * @returns AllocationPolicy * @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.batch.v1.Runnable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.AllocationPolicy; /** - * Verifies a Runnable message. + * Verifies an AllocationPolicy 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 Runnable message from a plain object. Also converts values to their respective internal types. + * Creates an AllocationPolicy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Runnable + * @returns AllocationPolicy */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Runnable; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy; /** - * Creates a plain object from a Runnable message. Also converts values to other types if specified. - * @param message Runnable + * Creates a plain object from an AllocationPolicy message. Also converts values to other types if specified. + * @param message AllocationPolicy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.Runnable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Runnable to JSON. + * Converts this AllocationPolicy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Runnable + * Gets the default type url for AllocationPolicy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Runnable { + namespace AllocationPolicy { + + /** Properties of a LocationPolicy. */ + interface ILocationPolicy { + + /** LocationPolicy allowedLocations */ + allowedLocations?: (string[]|null); + + /** LocationPolicy deniedLocations */ + deniedLocations?: (string[]|null); + } + + /** Represents a LocationPolicy. */ + class LocationPolicy implements ILocationPolicy { + + /** + * Constructs a new LocationPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy); + + /** LocationPolicy allowedLocations. */ + public allowedLocations: string[]; + + /** LocationPolicy deniedLocations. */ + public deniedLocations: string[]; + + /** + * Creates a new LocationPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns LocationPolicy instance + */ + public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy): google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy; + + /** + * Encodes the specified LocationPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify|verify} messages. + * @param message LocationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify|verify} messages. + * @param message LocationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LocationPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocationPolicy + * @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.batch.v1alpha.AllocationPolicy.LocationPolicy; + + /** + * Decodes a LocationPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocationPolicy + * @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.batch.v1alpha.AllocationPolicy.LocationPolicy; + + /** + * Verifies a LocationPolicy 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); - /** Properties of a Container. */ - interface IContainer { + /** + * Creates a LocationPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocationPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy; - /** Container imageUri */ - imageUri?: (string|null); + /** + * Creates a plain object from a LocationPolicy message. Also converts values to other types if specified. + * @param message LocationPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Container commands */ - commands?: (string[]|null); + /** + * Converts this LocationPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Container entrypoint */ - entrypoint?: (string|null); + /** + * Gets the default type url for LocationPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Container volumes */ - volumes?: (string[]|null); + /** Properties of a Disk. */ + interface IDisk { - /** Container options */ - options?: (string|null); + /** Disk image */ + image?: (string|null); - /** Container blockExternalNetwork */ - blockExternalNetwork?: (boolean|null); + /** Disk snapshot */ + snapshot?: (string|null); - /** Container username */ - username?: (string|null); + /** Disk type */ + type?: (string|null); - /** Container password */ - password?: (string|null); + /** Disk sizeGb */ + sizeGb?: (number|Long|string|null); + + /** Disk diskInterface */ + diskInterface?: (string|null); } - /** Represents a Container. */ - class Container implements IContainer { + /** Represents a Disk. */ + class Disk implements IDisk { /** - * Constructs a new Container. + * Constructs a new Disk. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.Runnable.IContainer); - - /** Container imageUri. */ - public imageUri: string; - - /** Container commands. */ - public commands: string[]; + constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IDisk); - /** Container entrypoint. */ - public entrypoint: string; + /** Disk image. */ + public image?: (string|null); - /** Container volumes. */ - public volumes: string[]; + /** Disk snapshot. */ + public snapshot?: (string|null); - /** Container options. */ - public options: string; + /** Disk type. */ + public type: string; - /** Container blockExternalNetwork. */ - public blockExternalNetwork: boolean; + /** Disk sizeGb. */ + public sizeGb: (number|Long|string); - /** Container username. */ - public username: string; + /** Disk diskInterface. */ + public diskInterface: string; - /** Container password. */ - public password: string; + /** Disk dataSource. */ + public dataSource?: ("image"|"snapshot"); /** - * Creates a new Container instance using the specified properties. + * Creates a new Disk instance using the specified properties. * @param [properties] Properties to set - * @returns Container instance + * @returns Disk instance */ - public static create(properties?: google.cloud.batch.v1.Runnable.IContainer): google.cloud.batch.v1.Runnable.Container; + public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IDisk): google.cloud.batch.v1alpha.AllocationPolicy.Disk; /** - * Encodes the specified Container message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Container.verify|verify} messages. - * @param message Container message or plain object to encode + * Encodes the specified Disk message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify|verify} messages. + * @param message Disk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.Runnable.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IDisk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Container message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Container.verify|verify} messages. - * @param message Container message or plain object to encode + * Encodes the specified Disk message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify|verify} messages. + * @param message Disk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.Runnable.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IDisk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Container message from the specified reader or buffer. + * Decodes a Disk message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Container + * @returns Disk * @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.batch.v1.Runnable.Container; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.AllocationPolicy.Disk; /** - * Decodes a Container message from the specified reader or buffer, length delimited. + * Decodes a Disk message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Container + * @returns Disk * @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.batch.v1.Runnable.Container; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.AllocationPolicy.Disk; /** - * Verifies a Container message. + * Verifies a Disk 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 Container message from a plain object. Also converts values to their respective internal types. + * Creates a Disk message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Container + * @returns Disk */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Runnable.Container; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.Disk; /** - * Creates a plain object from a Container message. Also converts values to other types if specified. - * @param message Container + * Creates a plain object from a Disk message. Also converts values to other types if specified. + * @param message Disk * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.Runnable.Container, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.Disk, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Container to JSON. + * Converts this Disk to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Container + * Gets the default type url for Disk * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Script. */ - interface IScript { + /** Properties of an AttachedDisk. */ + interface IAttachedDisk { - /** Script path */ - path?: (string|null); + /** AttachedDisk newDisk */ + newDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); - /** Script text */ - text?: (string|null); + /** AttachedDisk existingDisk */ + existingDisk?: (string|null); + + /** AttachedDisk deviceName */ + deviceName?: (string|null); } - /** Represents a Script. */ - class Script implements IScript { + /** Represents an AttachedDisk. */ + class AttachedDisk implements IAttachedDisk { /** - * Constructs a new Script. + * Constructs a new AttachedDisk. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.Runnable.IScript); + constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk); - /** Script path. */ - public path?: (string|null); + /** AttachedDisk newDisk. */ + public newDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); - /** Script text. */ - public text?: (string|null); + /** AttachedDisk existingDisk. */ + public existingDisk?: (string|null); - /** Script command. */ - public command?: ("path"|"text"); + /** AttachedDisk deviceName. */ + public deviceName: string; + + /** AttachedDisk attached. */ + public attached?: ("newDisk"|"existingDisk"); /** - * Creates a new Script instance using the specified properties. + * Creates a new AttachedDisk instance using the specified properties. * @param [properties] Properties to set - * @returns Script instance + * @returns AttachedDisk instance */ - public static create(properties?: google.cloud.batch.v1.Runnable.IScript): google.cloud.batch.v1.Runnable.Script; + public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk): google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk; /** - * Encodes the specified Script message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Script.verify|verify} messages. - * @param message Script message or plain object to encode + * Encodes the specified AttachedDisk message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify|verify} messages. + * @param message AttachedDisk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.Runnable.IScript, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Script message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Script.verify|verify} messages. - * @param message Script message or plain object to encode + * Encodes the specified AttachedDisk message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify|verify} messages. + * @param message AttachedDisk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.Runnable.IScript, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Script message from the specified reader or buffer. + * Decodes an AttachedDisk message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Script + * @returns AttachedDisk * @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.batch.v1.Runnable.Script; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk; /** - * Decodes a Script message from the specified reader or buffer, length delimited. + * Decodes an AttachedDisk message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Script + * @returns AttachedDisk * @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.batch.v1.Runnable.Script; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk; /** - * Verifies a Script message. + * Verifies an AttachedDisk 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 Script message from a plain object. Also converts values to their respective internal types. + * Creates an AttachedDisk message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Script + * @returns AttachedDisk */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Runnable.Script; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk; /** - * Creates a plain object from a Script message. Also converts values to other types if specified. - * @param message Script + * Creates a plain object from an AttachedDisk message. Also converts values to other types if specified. + * @param message AttachedDisk * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.Runnable.Script, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Script to JSON. + * Converts this AttachedDisk to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Script + * Gets the default type url for AttachedDisk * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Barrier. */ - interface IBarrier { + /** Properties of an Accelerator. */ + interface IAccelerator { - /** Barrier name */ - name?: (string|null); + /** Accelerator type */ + type?: (string|null); + + /** Accelerator count */ + count?: (number|Long|string|null); + + /** Accelerator installGpuDrivers */ + installGpuDrivers?: (boolean|null); } - /** Represents a Barrier. */ - class Barrier implements IBarrier { + /** Represents an Accelerator. */ + class Accelerator implements IAccelerator { /** - * Constructs a new Barrier. + * Constructs a new Accelerator. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.Runnable.IBarrier); + constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator); - /** Barrier name. */ - public name: string; + /** Accelerator type. */ + public type: string; + + /** Accelerator count. */ + public count: (number|Long|string); + + /** Accelerator installGpuDrivers. */ + public installGpuDrivers: boolean; /** - * Creates a new Barrier instance using the specified properties. + * Creates a new Accelerator instance using the specified properties. * @param [properties] Properties to set - * @returns Barrier instance + * @returns Accelerator instance */ - public static create(properties?: google.cloud.batch.v1.Runnable.IBarrier): google.cloud.batch.v1.Runnable.Barrier; + public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator): google.cloud.batch.v1alpha.AllocationPolicy.Accelerator; /** - * Encodes the specified Barrier message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Barrier.verify|verify} messages. - * @param message Barrier message or plain object to encode + * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify|verify} messages. + * @param message Accelerator message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.Runnable.IBarrier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Barrier message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Barrier.verify|verify} messages. - * @param message Barrier message or plain object to encode + * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify|verify} messages. + * @param message Accelerator message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.Runnable.IBarrier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Barrier message from the specified reader or buffer. + * Decodes an Accelerator message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Barrier + * @returns Accelerator * @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.batch.v1.Runnable.Barrier; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.AllocationPolicy.Accelerator; /** - * Decodes a Barrier message from the specified reader or buffer, length delimited. + * Decodes an Accelerator message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Barrier + * @returns Accelerator * @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.batch.v1.Runnable.Barrier; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.AllocationPolicy.Accelerator; /** - * Verifies a Barrier message. + * Verifies an Accelerator 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 Barrier message from a plain object. Also converts values to their respective internal types. + * Creates an Accelerator message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Barrier + * @returns Accelerator */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Runnable.Barrier; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.Accelerator; /** - * Creates a plain object from a Barrier message. Also converts values to other types if specified. - * @param message Barrier + * Creates a plain object from an Accelerator message. Also converts values to other types if specified. + * @param message Accelerator * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.Runnable.Barrier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.Accelerator, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Barrier to JSON. + * Converts this Accelerator to JSON. * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Barrier - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a TaskSpec. */ - interface ITaskSpec { - - /** TaskSpec runnables */ - runnables?: (google.cloud.batch.v1.IRunnable[]|null); - - /** TaskSpec computeResource */ - computeResource?: (google.cloud.batch.v1.IComputeResource|null); - - /** TaskSpec maxRunDuration */ - maxRunDuration?: (google.protobuf.IDuration|null); - - /** TaskSpec maxRetryCount */ - maxRetryCount?: (number|null); - - /** TaskSpec lifecyclePolicies */ - lifecyclePolicies?: (google.cloud.batch.v1.ILifecyclePolicy[]|null); - - /** TaskSpec environments */ - environments?: ({ [k: string]: string }|null); - - /** TaskSpec volumes */ - volumes?: (google.cloud.batch.v1.IVolume[]|null); - - /** TaskSpec environment */ - environment?: (google.cloud.batch.v1.IEnvironment|null); - } - - /** Represents a TaskSpec. */ - class TaskSpec implements ITaskSpec { - - /** - * Constructs a new TaskSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.ITaskSpec); - - /** TaskSpec runnables. */ - public runnables: google.cloud.batch.v1.IRunnable[]; - - /** TaskSpec computeResource. */ - public computeResource?: (google.cloud.batch.v1.IComputeResource|null); - - /** TaskSpec maxRunDuration. */ - public maxRunDuration?: (google.protobuf.IDuration|null); - - /** TaskSpec maxRetryCount. */ - public maxRetryCount: number; - - /** TaskSpec lifecyclePolicies. */ - public lifecyclePolicies: google.cloud.batch.v1.ILifecyclePolicy[]; - - /** TaskSpec environments. */ - public environments: { [k: string]: string }; - - /** TaskSpec volumes. */ - public volumes: google.cloud.batch.v1.IVolume[]; - - /** TaskSpec environment. */ - public environment?: (google.cloud.batch.v1.IEnvironment|null); - - /** - * Creates a new TaskSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskSpec instance - */ - public static create(properties?: google.cloud.batch.v1.ITaskSpec): google.cloud.batch.v1.TaskSpec; - - /** - * Encodes the specified TaskSpec message. Does not implicitly {@link google.cloud.batch.v1.TaskSpec.verify|verify} messages. - * @param message TaskSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TaskSpec message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskSpec.verify|verify} messages. - * @param message TaskSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskSpec - * @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.batch.v1.TaskSpec; - - /** - * Decodes a TaskSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TaskSpec - * @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.batch.v1.TaskSpec; - - /** - * Verifies a TaskSpec 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 TaskSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TaskSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.TaskSpec; - - /** - * Creates a plain object from a TaskSpec message. Also converts values to other types if specified. - * @param message TaskSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.TaskSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TaskSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TaskSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LifecyclePolicy. */ - interface ILifecyclePolicy { - - /** LifecyclePolicy action */ - action?: (google.cloud.batch.v1.LifecyclePolicy.Action|keyof typeof google.cloud.batch.v1.LifecyclePolicy.Action|null); - - /** LifecyclePolicy actionCondition */ - actionCondition?: (google.cloud.batch.v1.LifecyclePolicy.IActionCondition|null); - } - - /** Represents a LifecyclePolicy. */ - class LifecyclePolicy implements ILifecyclePolicy { - - /** - * Constructs a new LifecyclePolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.ILifecyclePolicy); - - /** LifecyclePolicy action. */ - public action: (google.cloud.batch.v1.LifecyclePolicy.Action|keyof typeof google.cloud.batch.v1.LifecyclePolicy.Action); - - /** LifecyclePolicy actionCondition. */ - public actionCondition?: (google.cloud.batch.v1.LifecyclePolicy.IActionCondition|null); - - /** - * Creates a new LifecyclePolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns LifecyclePolicy instance - */ - public static create(properties?: google.cloud.batch.v1.ILifecyclePolicy): google.cloud.batch.v1.LifecyclePolicy; - - /** - * Encodes the specified LifecyclePolicy message. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.verify|verify} messages. - * @param message LifecyclePolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.ILifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.verify|verify} messages. - * @param message LifecyclePolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.ILifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a LifecyclePolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LifecyclePolicy - * @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.batch.v1.LifecyclePolicy; + /** + * Gets the default type url for Accelerator + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a LifecyclePolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LifecyclePolicy - * @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.batch.v1.LifecyclePolicy; + /** Properties of an InstancePolicy. */ + interface IInstancePolicy { - /** - * Verifies a LifecyclePolicy 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); + /** InstancePolicy allowedMachineTypes */ + allowedMachineTypes?: (string[]|null); - /** - * Creates a LifecyclePolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LifecyclePolicy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.LifecyclePolicy; + /** InstancePolicy machineType */ + machineType?: (string|null); - /** - * Creates a plain object from a LifecyclePolicy message. Also converts values to other types if specified. - * @param message LifecyclePolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.LifecyclePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** InstancePolicy minCpuPlatform */ + minCpuPlatform?: (string|null); - /** - * Converts this LifecyclePolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** InstancePolicy provisioningModel */ + provisioningModel?: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|null); - /** - * Gets the default type url for LifecyclePolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** InstancePolicy accelerators */ + accelerators?: (google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator[]|null); - namespace LifecyclePolicy { + /** InstancePolicy bootDisk */ + bootDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); - /** Properties of an ActionCondition. */ - interface IActionCondition { + /** InstancePolicy disks */ + disks?: (google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk[]|null); - /** ActionCondition exitCodes */ - exitCodes?: (number[]|null); + /** InstancePolicy reservation */ + reservation?: (string|null); } - /** Represents an ActionCondition. */ - class ActionCondition implements IActionCondition { + /** Represents an InstancePolicy. */ + class InstancePolicy implements IInstancePolicy { /** - * Constructs a new ActionCondition. + * Constructs a new InstancePolicy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.LifecyclePolicy.IActionCondition); + constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy); - /** ActionCondition exitCodes. */ - public exitCodes: number[]; + /** InstancePolicy allowedMachineTypes. */ + public allowedMachineTypes: string[]; + + /** InstancePolicy machineType. */ + public machineType: string; + + /** InstancePolicy minCpuPlatform. */ + public minCpuPlatform: string; + + /** InstancePolicy provisioningModel. */ + public provisioningModel: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel); + + /** InstancePolicy accelerators. */ + public accelerators: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator[]; + + /** InstancePolicy bootDisk. */ + public bootDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); + + /** InstancePolicy disks. */ + public disks: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk[]; + + /** InstancePolicy reservation. */ + public reservation: string; /** - * Creates a new ActionCondition instance using the specified properties. + * Creates a new InstancePolicy instance using the specified properties. * @param [properties] Properties to set - * @returns ActionCondition instance + * @returns InstancePolicy instance */ - public static create(properties?: google.cloud.batch.v1.LifecyclePolicy.IActionCondition): google.cloud.batch.v1.LifecyclePolicy.ActionCondition; + public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy; /** - * Encodes the specified ActionCondition message. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify|verify} messages. - * @param message ActionCondition message or plain object to encode + * Encodes the specified InstancePolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify|verify} messages. + * @param message InstancePolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.LifecyclePolicy.IActionCondition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ActionCondition message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify|verify} messages. - * @param message ActionCondition message or plain object to encode + * Encodes the specified InstancePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify|verify} messages. + * @param message InstancePolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.LifecyclePolicy.IActionCondition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActionCondition message from the specified reader or buffer. + * Decodes an InstancePolicy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActionCondition + * @returns InstancePolicy * @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.batch.v1.LifecyclePolicy.ActionCondition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy; /** - * Decodes an ActionCondition message from the specified reader or buffer, length delimited. + * Decodes an InstancePolicy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActionCondition + * @returns InstancePolicy * @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.batch.v1.LifecyclePolicy.ActionCondition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy; /** - * Verifies an ActionCondition message. + * Verifies an InstancePolicy 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 an ActionCondition message from a plain object. Also converts values to their respective internal types. + * Creates an InstancePolicy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActionCondition + * @returns InstancePolicy */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.LifecyclePolicy.ActionCondition; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy; /** - * Creates a plain object from an ActionCondition message. Also converts values to other types if specified. - * @param message ActionCondition + * Creates a plain object from an InstancePolicy message. Also converts values to other types if specified. + * @param message InstancePolicy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.LifecyclePolicy.ActionCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActionCondition to JSON. + * Converts this InstancePolicy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ActionCondition + * Gets the default type url for InstancePolicy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Action enum. */ - enum Action { - ACTION_UNSPECIFIED = 0, - RETRY_TASK = 1, - FAIL_TASK = 2 - } - } - - /** Properties of a Task. */ - interface ITask { + /** Properties of an InstancePolicyOrTemplate. */ + interface IInstancePolicyOrTemplate { - /** Task name */ - name?: (string|null); + /** InstancePolicyOrTemplate policy */ + policy?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null); - /** Task status */ - status?: (google.cloud.batch.v1.ITaskStatus|null); - } + /** InstancePolicyOrTemplate instanceTemplate */ + instanceTemplate?: (string|null); - /** Represents a Task. */ - class Task implements ITask { + /** InstancePolicyOrTemplate installGpuDrivers */ + installGpuDrivers?: (boolean|null); + } - /** - * Constructs a new Task. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.ITask); + /** Represents an InstancePolicyOrTemplate. */ + class InstancePolicyOrTemplate implements IInstancePolicyOrTemplate { - /** Task name. */ - public name: string; + /** + * Constructs a new InstancePolicyOrTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate); - /** Task status. */ - public status?: (google.cloud.batch.v1.ITaskStatus|null); + /** InstancePolicyOrTemplate policy. */ + public policy?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null); - /** - * Creates a new Task instance using the specified properties. - * @param [properties] Properties to set - * @returns Task instance - */ - public static create(properties?: google.cloud.batch.v1.ITask): google.cloud.batch.v1.Task; + /** InstancePolicyOrTemplate instanceTemplate. */ + public instanceTemplate?: (string|null); - /** - * Encodes the specified Task message. Does not implicitly {@link google.cloud.batch.v1.Task.verify|verify} messages. - * @param message Task message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.ITask, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstancePolicyOrTemplate installGpuDrivers. */ + public installGpuDrivers: boolean; - /** - * Encodes the specified Task message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Task.verify|verify} messages. - * @param message Task message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.ITask, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstancePolicyOrTemplate policyTemplate. */ + public policyTemplate?: ("policy"|"instanceTemplate"); - /** - * Decodes a Task message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Task - * @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.batch.v1.Task; + /** + * Creates a new InstancePolicyOrTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns InstancePolicyOrTemplate instance + */ + public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate; - /** - * Decodes a Task message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Task - * @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.batch.v1.Task; + /** + * Encodes the specified InstancePolicyOrTemplate message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. + * @param message InstancePolicyOrTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Task 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); + /** + * Encodes the specified InstancePolicyOrTemplate message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. + * @param message InstancePolicyOrTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a Task message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Task - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Task; + /** + * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstancePolicyOrTemplate + * @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.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate; - /** - * Creates a plain object from a Task message. Also converts values to other types if specified. - * @param message Task - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.Task, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstancePolicyOrTemplate + * @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.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate; - /** - * Converts this Task to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies an InstancePolicyOrTemplate 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); - /** - * Gets the default type url for Task - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates an InstancePolicyOrTemplate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstancePolicyOrTemplate + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate; - /** Properties of an Environment. */ - interface IEnvironment { + /** + * Creates a plain object from an InstancePolicyOrTemplate message. Also converts values to other types if specified. + * @param message InstancePolicyOrTemplate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Environment variables */ - variables?: ({ [k: string]: string }|null); + /** + * Converts this InstancePolicyOrTemplate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Environment secretVariables */ - secretVariables?: ({ [k: string]: string }|null); + /** + * Gets the default type url for InstancePolicyOrTemplate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Environment encryptedVariables */ - encryptedVariables?: (google.cloud.batch.v1.Environment.IKMSEnvMap|null); - } + /** Properties of a NetworkInterface. */ + interface INetworkInterface { - /** Represents an Environment. */ - class Environment implements IEnvironment { + /** NetworkInterface network */ + network?: (string|null); - /** - * Constructs a new Environment. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1.IEnvironment); + /** NetworkInterface subnetwork */ + subnetwork?: (string|null); - /** Environment variables. */ - public variables: { [k: string]: string }; + /** NetworkInterface noExternalIpAddress */ + noExternalIpAddress?: (boolean|null); + } - /** Environment secretVariables. */ - public secretVariables: { [k: string]: string }; + /** Represents a NetworkInterface. */ + class NetworkInterface implements INetworkInterface { - /** Environment encryptedVariables. */ - public encryptedVariables?: (google.cloud.batch.v1.Environment.IKMSEnvMap|null); + /** + * Constructs a new NetworkInterface. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface); - /** - * Creates a new Environment instance using the specified properties. - * @param [properties] Properties to set - * @returns Environment instance - */ - public static create(properties?: google.cloud.batch.v1.IEnvironment): google.cloud.batch.v1.Environment; + /** NetworkInterface network. */ + public network: string; - /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.batch.v1.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + /** NetworkInterface subnetwork. */ + public subnetwork: string; - /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + /** NetworkInterface noExternalIpAddress. */ + public noExternalIpAddress: boolean; - /** - * Decodes an Environment message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Environment - * @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.batch.v1.Environment; + /** + * Creates a new NetworkInterface instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkInterface instance + */ + public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface): google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface; - /** - * Decodes an Environment message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Environment - * @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.batch.v1.Environment; + /** + * Encodes the specified NetworkInterface message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify|verify} messages. + * @param message NetworkInterface message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an Environment 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); + /** + * Encodes the specified NetworkInterface message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify|verify} messages. + * @param message NetworkInterface message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Environment - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Environment; + /** + * Decodes a NetworkInterface message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkInterface + * @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.batch.v1alpha.AllocationPolicy.NetworkInterface; - /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @param message Environment - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a NetworkInterface message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkInterface + * @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.batch.v1alpha.AllocationPolicy.NetworkInterface; - /** - * Converts this Environment to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a NetworkInterface 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); - /** - * Gets the default type url for Environment - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkInterface + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface; + + /** + * Creates a plain object from a NetworkInterface message. Also converts values to other types if specified. + * @param message NetworkInterface + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface, options?: $protobuf.IConversionOptions): { [k: string]: any }; - namespace Environment { + /** + * Converts this NetworkInterface to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a KMSEnvMap. */ - interface IKMSEnvMap { + /** + * Gets the default type url for NetworkInterface + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** KMSEnvMap keyName */ - keyName?: (string|null); + /** Properties of a NetworkPolicy. */ + interface INetworkPolicy { - /** KMSEnvMap cipherText */ - cipherText?: (string|null); + /** NetworkPolicy networkInterfaces */ + networkInterfaces?: (google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface[]|null); } - /** Represents a KMSEnvMap. */ - class KMSEnvMap implements IKMSEnvMap { + /** Represents a NetworkPolicy. */ + class NetworkPolicy implements INetworkPolicy { /** - * Constructs a new KMSEnvMap. + * Constructs a new NetworkPolicy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.Environment.IKMSEnvMap); - - /** KMSEnvMap keyName. */ - public keyName: string; + constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy); - /** KMSEnvMap cipherText. */ - public cipherText: string; + /** NetworkPolicy networkInterfaces. */ + public networkInterfaces: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface[]; /** - * Creates a new KMSEnvMap instance using the specified properties. + * Creates a new NetworkPolicy instance using the specified properties. * @param [properties] Properties to set - * @returns KMSEnvMap instance + * @returns NetworkPolicy instance */ - public static create(properties?: google.cloud.batch.v1.Environment.IKMSEnvMap): google.cloud.batch.v1.Environment.KMSEnvMap; + public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy): google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy; /** - * Encodes the specified KMSEnvMap message. Does not implicitly {@link google.cloud.batch.v1.Environment.KMSEnvMap.verify|verify} messages. - * @param message KMSEnvMap message or plain object to encode + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.Environment.IKMSEnvMap, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified KMSEnvMap message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Environment.KMSEnvMap.verify|verify} messages. - * @param message KMSEnvMap message or plain object to encode + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.Environment.IKMSEnvMap, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KMSEnvMap message from the specified reader or buffer. + * Decodes a NetworkPolicy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KMSEnvMap + * @returns NetworkPolicy * @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.batch.v1.Environment.KMSEnvMap; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy; /** - * Decodes a KMSEnvMap message from the specified reader or buffer, length delimited. + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KMSEnvMap + * @returns NetworkPolicy * @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.batch.v1.Environment.KMSEnvMap; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy; /** - * Verifies a KMSEnvMap message. + * Verifies a NetworkPolicy 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 KMSEnvMap message from a plain object. Also converts values to their respective internal types. + * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KMSEnvMap + * @returns NetworkPolicy */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Environment.KMSEnvMap; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy; /** - * Creates a plain object from a KMSEnvMap message. Also converts values to other types if specified. - * @param message KMSEnvMap + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * @param message NetworkPolicy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.Environment.KMSEnvMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KMSEnvMap to JSON. + * Converts this NetworkPolicy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KMSEnvMap + * Gets the default type url for NetworkPolicy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** ProvisioningModel enum. */ + enum ProvisioningModel { + PROVISIONING_MODEL_UNSPECIFIED = 0, + STANDARD = 1, + SPOT = 2, + PREEMPTIBLE = 3 + } } - /** Properties of a Volume. */ - interface IVolume { + /** Properties of a TaskGroup. */ + interface ITaskGroup { - /** Volume nfs */ - nfs?: (google.cloud.batch.v1.INFS|null); + /** TaskGroup name */ + name?: (string|null); - /** Volume gcs */ - gcs?: (google.cloud.batch.v1.IGCS|null); + /** TaskGroup taskSpec */ + taskSpec?: (google.cloud.batch.v1alpha.ITaskSpec|null); - /** Volume deviceName */ - deviceName?: (string|null); + /** TaskGroup taskCount */ + taskCount?: (number|Long|string|null); - /** Volume mountPath */ - mountPath?: (string|null); + /** TaskGroup parallelism */ + parallelism?: (number|Long|string|null); - /** Volume mountOptions */ - mountOptions?: (string[]|null); + /** TaskGroup schedulingPolicy */ + schedulingPolicy?: (google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy|keyof typeof google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy|null); + + /** TaskGroup allocationPolicy */ + allocationPolicy?: (google.cloud.batch.v1alpha.IAllocationPolicy|null); + + /** TaskGroup labels */ + labels?: ({ [k: string]: string }|null); + + /** TaskGroup taskEnvironments */ + taskEnvironments?: (google.cloud.batch.v1alpha.IEnvironment[]|null); + + /** TaskGroup taskCountPerNode */ + taskCountPerNode?: (number|Long|string|null); + + /** TaskGroup requireHostsFile */ + requireHostsFile?: (boolean|null); + + /** TaskGroup permissiveSsh */ + permissiveSsh?: (boolean|null); } - /** Represents a Volume. */ - class Volume implements IVolume { + /** Represents a TaskGroup. */ + class TaskGroup implements ITaskGroup { /** - * Constructs a new Volume. + * Constructs a new TaskGroup. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IVolume); + constructor(properties?: google.cloud.batch.v1alpha.ITaskGroup); - /** Volume nfs. */ - public nfs?: (google.cloud.batch.v1.INFS|null); + /** TaskGroup name. */ + public name: string; - /** Volume gcs. */ - public gcs?: (google.cloud.batch.v1.IGCS|null); + /** TaskGroup taskSpec. */ + public taskSpec?: (google.cloud.batch.v1alpha.ITaskSpec|null); - /** Volume deviceName. */ - public deviceName?: (string|null); + /** TaskGroup taskCount. */ + public taskCount: (number|Long|string); - /** Volume mountPath. */ - public mountPath: string; + /** TaskGroup parallelism. */ + public parallelism: (number|Long|string); - /** Volume mountOptions. */ - public mountOptions: string[]; + /** TaskGroup schedulingPolicy. */ + public schedulingPolicy: (google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy|keyof typeof google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy); - /** Volume source. */ - public source?: ("nfs"|"gcs"|"deviceName"); + /** TaskGroup allocationPolicy. */ + public allocationPolicy?: (google.cloud.batch.v1alpha.IAllocationPolicy|null); + + /** TaskGroup labels. */ + public labels: { [k: string]: string }; + + /** TaskGroup taskEnvironments. */ + public taskEnvironments: google.cloud.batch.v1alpha.IEnvironment[]; + + /** TaskGroup taskCountPerNode. */ + public taskCountPerNode: (number|Long|string); + + /** TaskGroup requireHostsFile. */ + public requireHostsFile: boolean; + + /** TaskGroup permissiveSsh. */ + public permissiveSsh: boolean; /** - * Creates a new Volume instance using the specified properties. + * Creates a new TaskGroup instance using the specified properties. * @param [properties] Properties to set - * @returns Volume instance + * @returns TaskGroup instance */ - public static create(properties?: google.cloud.batch.v1.IVolume): google.cloud.batch.v1.Volume; + public static create(properties?: google.cloud.batch.v1alpha.ITaskGroup): google.cloud.batch.v1alpha.TaskGroup; /** - * Encodes the specified Volume message. Does not implicitly {@link google.cloud.batch.v1.Volume.verify|verify} messages. - * @param message Volume message or plain object to encode + * Encodes the specified TaskGroup message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskGroup.verify|verify} messages. + * @param message TaskGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.ITaskGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Volume.verify|verify} messages. - * @param message Volume message or plain object to encode + * Encodes the specified TaskGroup message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskGroup.verify|verify} messages. + * @param message TaskGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.ITaskGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Volume message from the specified reader or buffer. + * Decodes a TaskGroup message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Volume + * @returns TaskGroup * @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.batch.v1.Volume; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.TaskGroup; /** - * Decodes a Volume message from the specified reader or buffer, length delimited. + * Decodes a TaskGroup message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Volume + * @returns TaskGroup * @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.batch.v1.Volume; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.TaskGroup; /** - * Verifies a Volume message. + * Verifies a TaskGroup 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 Volume message from a plain object. Also converts values to their respective internal types. + * Creates a TaskGroup message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Volume + * @returns TaskGroup */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.Volume; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.TaskGroup; /** - * Creates a plain object from a Volume message. Also converts values to other types if specified. - * @param message Volume + * Creates a plain object from a TaskGroup message. Also converts values to other types if specified. + * @param message TaskGroup * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.Volume, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.TaskGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Volume to JSON. + * Converts this TaskGroup to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Volume + * Gets the default type url for TaskGroup * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NFS. */ - interface INFS { + namespace TaskGroup { - /** NFS server */ - server?: (string|null); + /** SchedulingPolicy enum. */ + enum SchedulingPolicy { + SCHEDULING_POLICY_UNSPECIFIED = 0, + AS_SOON_AS_POSSIBLE = 1 + } + } - /** NFS remotePath */ - remotePath?: (string|null); + /** Properties of a ServiceAccount. */ + interface IServiceAccount { + + /** ServiceAccount email */ + email?: (string|null); + + /** ServiceAccount scopes */ + scopes?: (string[]|null); } - /** Represents a NFS. */ - class NFS implements INFS { + /** Represents a ServiceAccount. */ + class ServiceAccount implements IServiceAccount { /** - * Constructs a new NFS. + * Constructs a new ServiceAccount. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.INFS); + constructor(properties?: google.cloud.batch.v1alpha.IServiceAccount); - /** NFS server. */ - public server: string; + /** ServiceAccount email. */ + public email: string; - /** NFS remotePath. */ - public remotePath: string; + /** ServiceAccount scopes. */ + public scopes: string[]; /** - * Creates a new NFS instance using the specified properties. + * Creates a new ServiceAccount instance using the specified properties. * @param [properties] Properties to set - * @returns NFS instance + * @returns ServiceAccount instance */ - public static create(properties?: google.cloud.batch.v1.INFS): google.cloud.batch.v1.NFS; + public static create(properties?: google.cloud.batch.v1alpha.IServiceAccount): google.cloud.batch.v1alpha.ServiceAccount; /** - * Encodes the specified NFS message. Does not implicitly {@link google.cloud.batch.v1.NFS.verify|verify} messages. - * @param message NFS message or plain object to encode + * Encodes the specified ServiceAccount message. Does not implicitly {@link google.cloud.batch.v1alpha.ServiceAccount.verify|verify} messages. + * @param message ServiceAccount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.INFS, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IServiceAccount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NFS message, length delimited. Does not implicitly {@link google.cloud.batch.v1.NFS.verify|verify} messages. - * @param message NFS message or plain object to encode + * Encodes the specified ServiceAccount message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ServiceAccount.verify|verify} messages. + * @param message ServiceAccount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.INFS, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IServiceAccount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NFS message from the specified reader or buffer. + * Decodes a ServiceAccount message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NFS + * @returns ServiceAccount * @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.batch.v1.NFS; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.ServiceAccount; /** - * Decodes a NFS message from the specified reader or buffer, length delimited. + * Decodes a ServiceAccount message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NFS + * @returns ServiceAccount * @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.batch.v1.NFS; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.ServiceAccount; /** - * Verifies a NFS message. + * Verifies a ServiceAccount 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 NFS message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceAccount message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NFS + * @returns ServiceAccount */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.NFS; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ServiceAccount; /** - * Creates a plain object from a NFS message. Also converts values to other types if specified. - * @param message NFS + * Creates a plain object from a ServiceAccount message. Also converts values to other types if specified. + * @param message ServiceAccount * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.NFS, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.ServiceAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NFS to JSON. + * Converts this ServiceAccount to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NFS + * Gets the default type url for ServiceAccount * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GCS. */ - interface IGCS { + /** Properties of a ComputeResource. */ + interface IComputeResource { - /** GCS remotePath */ - remotePath?: (string|null); + /** ComputeResource cpuMilli */ + cpuMilli?: (number|Long|string|null); + + /** ComputeResource memoryMib */ + memoryMib?: (number|Long|string|null); + + /** ComputeResource gpuCount */ + gpuCount?: (number|Long|string|null); + + /** ComputeResource bootDiskMib */ + bootDiskMib?: (number|Long|string|null); } - /** Represents a GCS. */ - class GCS implements IGCS { + /** Represents a ComputeResource. */ + class ComputeResource implements IComputeResource { /** - * Constructs a new GCS. + * Constructs a new ComputeResource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1.IGCS); + constructor(properties?: google.cloud.batch.v1alpha.IComputeResource); - /** GCS remotePath. */ - public remotePath: string; + /** ComputeResource cpuMilli. */ + public cpuMilli: (number|Long|string); + + /** ComputeResource memoryMib. */ + public memoryMib: (number|Long|string); + + /** ComputeResource gpuCount. */ + public gpuCount: (number|Long|string); + + /** ComputeResource bootDiskMib. */ + public bootDiskMib: (number|Long|string); /** - * Creates a new GCS instance using the specified properties. + * Creates a new ComputeResource instance using the specified properties. * @param [properties] Properties to set - * @returns GCS instance + * @returns ComputeResource instance */ - public static create(properties?: google.cloud.batch.v1.IGCS): google.cloud.batch.v1.GCS; + public static create(properties?: google.cloud.batch.v1alpha.IComputeResource): google.cloud.batch.v1alpha.ComputeResource; /** - * Encodes the specified GCS message. Does not implicitly {@link google.cloud.batch.v1.GCS.verify|verify} messages. - * @param message GCS message or plain object to encode + * Encodes the specified ComputeResource message. Does not implicitly {@link google.cloud.batch.v1alpha.ComputeResource.verify|verify} messages. + * @param message ComputeResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1.IGCS, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IComputeResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GCS message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GCS.verify|verify} messages. - * @param message GCS message or plain object to encode + * Encodes the specified ComputeResource message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ComputeResource.verify|verify} messages. + * @param message ComputeResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1.IGCS, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IComputeResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GCS message from the specified reader or buffer. + * Decodes a ComputeResource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GCS + * @returns ComputeResource * @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.batch.v1.GCS; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.ComputeResource; /** - * Decodes a GCS message from the specified reader or buffer, length delimited. + * Decodes a ComputeResource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GCS + * @returns ComputeResource * @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.batch.v1.GCS; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.ComputeResource; /** - * Verifies a GCS message. + * Verifies a ComputeResource 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 GCS message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeResource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GCS + * @returns ComputeResource */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1.GCS; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ComputeResource; /** - * Creates a plain object from a GCS message. Also converts values to other types if specified. - * @param message GCS + * Creates a plain object from a ComputeResource message. Also converts values to other types if specified. + * @param message ComputeResource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1.GCS, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.ComputeResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GCS to JSON. + * Converts this ComputeResource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GCS + * Gets the default type url for ComputeResource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Namespace v1alpha. */ - namespace v1alpha { + /** Properties of a StatusEvent. */ + interface IStatusEvent { - /** Represents a BatchService */ - class BatchService extends $protobuf.rpc.Service { + /** StatusEvent type */ + type?: (string|null); + + /** StatusEvent description */ + description?: (string|null); + + /** StatusEvent eventTime */ + eventTime?: (google.protobuf.ITimestamp|null); + + /** StatusEvent taskExecution */ + taskExecution?: (google.cloud.batch.v1alpha.ITaskExecution|null); + } + + /** Represents a StatusEvent. */ + class StatusEvent implements IStatusEvent { /** - * Constructs a new BatchService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new StatusEvent. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.batch.v1alpha.IStatusEvent); + + /** StatusEvent type. */ + public type: string; + + /** StatusEvent description. */ + public description: string; + + /** StatusEvent eventTime. */ + public eventTime?: (google.protobuf.ITimestamp|null); + + /** StatusEvent taskExecution. */ + public taskExecution?: (google.cloud.batch.v1alpha.ITaskExecution|null); /** - * Creates new BatchService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new StatusEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns StatusEvent instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): BatchService; + public static create(properties?: google.cloud.batch.v1alpha.IStatusEvent): google.cloud.batch.v1alpha.StatusEvent; /** - * Calls CreateJob. - * @param request CreateJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Job + * Encodes the specified StatusEvent message. Does not implicitly {@link google.cloud.batch.v1alpha.StatusEvent.verify|verify} messages. + * @param message StatusEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createJob(request: google.cloud.batch.v1alpha.ICreateJobRequest, callback: google.cloud.batch.v1alpha.BatchService.CreateJobCallback): void; + public static encode(message: google.cloud.batch.v1alpha.IStatusEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateJob. - * @param request CreateJobRequest message or plain object - * @returns Promise + * Encodes the specified StatusEvent message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.StatusEvent.verify|verify} messages. + * @param message StatusEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createJob(request: google.cloud.batch.v1alpha.ICreateJobRequest): Promise; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IStatusEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetJob. - * @param request GetJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Job + * Decodes a StatusEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StatusEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getJob(request: google.cloud.batch.v1alpha.IGetJobRequest, callback: google.cloud.batch.v1alpha.BatchService.GetJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.StatusEvent; /** - * Calls GetJob. - * @param request GetJobRequest message or plain object - * @returns Promise + * Decodes a StatusEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StatusEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getJob(request: google.cloud.batch.v1alpha.IGetJobRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.StatusEvent; /** - * Calls DeleteJob. - * @param request DeleteJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a StatusEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteJob(request: google.cloud.batch.v1alpha.IDeleteJobRequest, callback: google.cloud.batch.v1alpha.BatchService.DeleteJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StatusEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StatusEvent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.StatusEvent; /** - * Calls DeleteJob. - * @param request DeleteJobRequest message or plain object - * @returns Promise + * Creates a plain object from a StatusEvent message. Also converts values to other types if specified. + * @param message StatusEvent + * @param [options] Conversion options + * @returns Plain object */ - public deleteJob(request: google.cloud.batch.v1alpha.IDeleteJobRequest): Promise; + public static toObject(message: google.cloud.batch.v1alpha.StatusEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListJobs. - * @param request ListJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListJobsResponse + * Converts this StatusEvent to JSON. + * @returns JSON object */ - public listJobs(request: google.cloud.batch.v1alpha.IListJobsRequest, callback: google.cloud.batch.v1alpha.BatchService.ListJobsCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ListJobs. - * @param request ListJobsRequest message or plain object - * @returns Promise + * Gets the default type url for StatusEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listJobs(request: google.cloud.batch.v1alpha.IListJobsRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TaskExecution. */ + interface ITaskExecution { + + /** TaskExecution exitCode */ + exitCode?: (number|null); + } + + /** Represents a TaskExecution. */ + class TaskExecution implements ITaskExecution { /** - * Calls GetTask. - * @param request GetTaskRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Task + * Constructs a new TaskExecution. + * @param [properties] Properties to set */ - public getTask(request: google.cloud.batch.v1alpha.IGetTaskRequest, callback: google.cloud.batch.v1alpha.BatchService.GetTaskCallback): void; + constructor(properties?: google.cloud.batch.v1alpha.ITaskExecution); + + /** TaskExecution exitCode. */ + public exitCode: number; /** - * Calls GetTask. - * @param request GetTaskRequest message or plain object - * @returns Promise + * Creates a new TaskExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecution instance */ - public getTask(request: google.cloud.batch.v1alpha.IGetTaskRequest): Promise; + public static create(properties?: google.cloud.batch.v1alpha.ITaskExecution): google.cloud.batch.v1alpha.TaskExecution; /** - * Calls ListTasks. - * @param request ListTasksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTasksResponse + * Encodes the specified TaskExecution message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listTasks(request: google.cloud.batch.v1alpha.IListTasksRequest, callback: google.cloud.batch.v1alpha.BatchService.ListTasksCallback): void; + public static encode(message: google.cloud.batch.v1alpha.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListTasks. - * @param request ListTasksRequest message or plain object - * @returns Promise + * Encodes the specified TaskExecution message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listTasks(request: google.cloud.batch.v1alpha.IListTasksRequest): Promise; - } + public static encodeDelimited(message: google.cloud.batch.v1alpha.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; - namespace BatchService { + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecution + * @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.batch.v1alpha.TaskExecution; /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|createJob}. - * @param error Error, if any - * @param [response] Job + * Decodes a TaskExecution message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateJobCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.Job) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.TaskExecution; /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|getJob}. - * @param error Error, if any - * @param [response] Job + * Verifies a TaskExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetJobCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.Job) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|deleteJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a TaskExecution message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TaskExecution */ - type DeleteJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.TaskExecution; /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|listJobs}. - * @param error Error, if any - * @param [response] ListJobsResponse + * Creates a plain object from a TaskExecution message. Also converts values to other types if specified. + * @param message TaskExecution + * @param [options] Conversion options + * @returns Plain object */ - type ListJobsCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.ListJobsResponse) => void; + public static toObject(message: google.cloud.batch.v1alpha.TaskExecution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|getTask}. - * @param error Error, if any - * @param [response] Task + * Converts this TaskExecution to JSON. + * @returns JSON object */ - type GetTaskCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.Task) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|listTasks}. - * @param error Error, if any - * @param [response] ListTasksResponse + * Gets the default type url for TaskExecution + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListTasksCallback = (error: (Error|null), response?: google.cloud.batch.v1alpha.ListTasksResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateJobRequest. */ - interface ICreateJobRequest { - - /** CreateJobRequest parent */ - parent?: (string|null); - - /** CreateJobRequest jobId */ - jobId?: (string|null); + /** Properties of a TaskStatus. */ + interface ITaskStatus { - /** CreateJobRequest job */ - job?: (google.cloud.batch.v1alpha.IJob|null); + /** TaskStatus state */ + state?: (google.cloud.batch.v1alpha.TaskStatus.State|keyof typeof google.cloud.batch.v1alpha.TaskStatus.State|null); - /** CreateJobRequest requestId */ - requestId?: (string|null); + /** TaskStatus statusEvents */ + statusEvents?: (google.cloud.batch.v1alpha.IStatusEvent[]|null); } - /** Represents a CreateJobRequest. */ - class CreateJobRequest implements ICreateJobRequest { + /** Represents a TaskStatus. */ + class TaskStatus implements ITaskStatus { /** - * Constructs a new CreateJobRequest. + * Constructs a new TaskStatus. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1alpha.ICreateJobRequest); - - /** CreateJobRequest parent. */ - public parent: string; - - /** CreateJobRequest jobId. */ - public jobId: string; + constructor(properties?: google.cloud.batch.v1alpha.ITaskStatus); - /** CreateJobRequest job. */ - public job?: (google.cloud.batch.v1alpha.IJob|null); + /** TaskStatus state. */ + public state: (google.cloud.batch.v1alpha.TaskStatus.State|keyof typeof google.cloud.batch.v1alpha.TaskStatus.State); - /** CreateJobRequest requestId. */ - public requestId: string; + /** TaskStatus statusEvents. */ + public statusEvents: google.cloud.batch.v1alpha.IStatusEvent[]; /** - * Creates a new CreateJobRequest instance using the specified properties. + * Creates a new TaskStatus instance using the specified properties. * @param [properties] Properties to set - * @returns CreateJobRequest instance + * @returns TaskStatus instance */ - public static create(properties?: google.cloud.batch.v1alpha.ICreateJobRequest): google.cloud.batch.v1alpha.CreateJobRequest; + public static create(properties?: google.cloud.batch.v1alpha.ITaskStatus): google.cloud.batch.v1alpha.TaskStatus; /** - * Encodes the specified CreateJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.CreateJobRequest.verify|verify} messages. - * @param message CreateJobRequest message or plain object to encode + * Encodes the specified TaskStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskStatus.verify|verify} messages. + * @param message TaskStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.ICreateJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.ITaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.CreateJobRequest.verify|verify} messages. - * @param message CreateJobRequest message or plain object to encode + * Encodes the specified TaskStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskStatus.verify|verify} messages. + * @param message TaskStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.ICreateJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.ITaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateJobRequest message from the specified reader or buffer. + * Decodes a TaskStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateJobRequest + * @returns TaskStatus * @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.batch.v1alpha.CreateJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.TaskStatus; /** - * Decodes a CreateJobRequest message from the specified reader or buffer, length delimited. + * Decodes a TaskStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateJobRequest + * @returns TaskStatus * @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.batch.v1alpha.CreateJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.TaskStatus; /** - * Verifies a CreateJobRequest message. + * Verifies a TaskStatus 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 CreateJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TaskStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateJobRequest + * @returns TaskStatus */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.CreateJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.TaskStatus; /** - * Creates a plain object from a CreateJobRequest message. Also converts values to other types if specified. - * @param message CreateJobRequest + * Creates a plain object from a TaskStatus message. Also converts values to other types if specified. + * @param message TaskStatus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.CreateJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.TaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateJobRequest to JSON. + * Converts this TaskStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateJobRequest + * Gets the default type url for TaskStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetJobRequest. */ - interface IGetJobRequest { + namespace TaskStatus { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + ASSIGNED = 2, + RUNNING = 3, + FAILED = 4, + SUCCEEDED = 5 + } + } + + /** Properties of a Runnable. */ + interface IRunnable { + + /** Runnable container */ + container?: (google.cloud.batch.v1alpha.Runnable.IContainer|null); + + /** Runnable script */ + script?: (google.cloud.batch.v1alpha.Runnable.IScript|null); + + /** Runnable barrier */ + barrier?: (google.cloud.batch.v1alpha.Runnable.IBarrier|null); + + /** Runnable ignoreExitStatus */ + ignoreExitStatus?: (boolean|null); + + /** Runnable background */ + background?: (boolean|null); + + /** Runnable alwaysRun */ + alwaysRun?: (boolean|null); + + /** Runnable environment */ + environment?: (google.cloud.batch.v1alpha.IEnvironment|null); + + /** Runnable timeout */ + timeout?: (google.protobuf.IDuration|null); - /** GetJobRequest name */ - name?: (string|null); + /** Runnable labels */ + labels?: ({ [k: string]: string }|null); } - /** Represents a GetJobRequest. */ - class GetJobRequest implements IGetJobRequest { + /** Represents a Runnable. */ + class Runnable implements IRunnable { /** - * Constructs a new GetJobRequest. + * Constructs a new Runnable. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1alpha.IGetJobRequest); + constructor(properties?: google.cloud.batch.v1alpha.IRunnable); - /** GetJobRequest name. */ - public name: string; + /** Runnable container. */ + public container?: (google.cloud.batch.v1alpha.Runnable.IContainer|null); + + /** Runnable script. */ + public script?: (google.cloud.batch.v1alpha.Runnable.IScript|null); + + /** Runnable barrier. */ + public barrier?: (google.cloud.batch.v1alpha.Runnable.IBarrier|null); + + /** Runnable ignoreExitStatus. */ + public ignoreExitStatus: boolean; + + /** Runnable background. */ + public background: boolean; + + /** Runnable alwaysRun. */ + public alwaysRun: boolean; + + /** Runnable environment. */ + public environment?: (google.cloud.batch.v1alpha.IEnvironment|null); + + /** Runnable timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** Runnable labels. */ + public labels: { [k: string]: string }; + + /** Runnable executable. */ + public executable?: ("container"|"script"|"barrier"); /** - * Creates a new GetJobRequest instance using the specified properties. + * Creates a new Runnable instance using the specified properties. * @param [properties] Properties to set - * @returns GetJobRequest instance + * @returns Runnable instance */ - public static create(properties?: google.cloud.batch.v1alpha.IGetJobRequest): google.cloud.batch.v1alpha.GetJobRequest; + public static create(properties?: google.cloud.batch.v1alpha.IRunnable): google.cloud.batch.v1alpha.Runnable; /** - * Encodes the specified GetJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.GetJobRequest.verify|verify} messages. - * @param message GetJobRequest message or plain object to encode + * Encodes the specified Runnable message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.verify|verify} messages. + * @param message Runnable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IRunnable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GetJobRequest.verify|verify} messages. - * @param message GetJobRequest message or plain object to encode + * Encodes the specified Runnable message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.verify|verify} messages. + * @param message Runnable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IRunnable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetJobRequest message from the specified reader or buffer. + * Decodes a Runnable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetJobRequest + * @returns Runnable * @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.batch.v1alpha.GetJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.Runnable; /** - * Decodes a GetJobRequest message from the specified reader or buffer, length delimited. + * Decodes a Runnable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetJobRequest + * @returns Runnable * @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.batch.v1alpha.GetJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.Runnable; /** - * Verifies a GetJobRequest message. + * Verifies a Runnable 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 GetJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Runnable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetJobRequest + * @returns Runnable */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.GetJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Runnable; /** - * Creates a plain object from a GetJobRequest message. Also converts values to other types if specified. - * @param message GetJobRequest + * Creates a plain object from a Runnable message. Also converts values to other types if specified. + * @param message Runnable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.GetJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.Runnable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetJobRequest to JSON. + * Converts this Runnable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetJobRequest + * Gets the default type url for Runnable * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteJobRequest. */ - interface IDeleteJobRequest { + namespace Runnable { - /** DeleteJobRequest name */ - name?: (string|null); + /** Properties of a Container. */ + interface IContainer { - /** DeleteJobRequest reason */ - reason?: (string|null); + /** Container imageUri */ + imageUri?: (string|null); - /** DeleteJobRequest requestId */ - requestId?: (string|null); - } + /** Container commands */ + commands?: (string[]|null); - /** Represents a DeleteJobRequest. */ - class DeleteJobRequest implements IDeleteJobRequest { + /** Container entrypoint */ + entrypoint?: (string|null); - /** - * Constructs a new DeleteJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IDeleteJobRequest); + /** Container volumes */ + volumes?: (string[]|null); - /** DeleteJobRequest name. */ - public name: string; + /** Container options */ + options?: (string|null); - /** DeleteJobRequest reason. */ - public reason: string; + /** Container blockExternalNetwork */ + blockExternalNetwork?: (boolean|null); - /** DeleteJobRequest requestId. */ - public requestId: string; + /** Container username */ + username?: (string|null); - /** - * Creates a new DeleteJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteJobRequest instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IDeleteJobRequest): google.cloud.batch.v1alpha.DeleteJobRequest; + /** Container password */ + password?: (string|null); + } - /** - * Encodes the specified DeleteJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.DeleteJobRequest.verify|verify} messages. - * @param message DeleteJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a Container. */ + class Container implements IContainer { - /** - * Encodes the specified DeleteJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.DeleteJobRequest.verify|verify} messages. - * @param message DeleteJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Container. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.Runnable.IContainer); - /** - * Decodes a DeleteJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteJobRequest - * @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.batch.v1alpha.DeleteJobRequest; + /** Container imageUri. */ + public imageUri: string; - /** - * Decodes a DeleteJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteJobRequest - * @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.batch.v1alpha.DeleteJobRequest; + /** Container commands. */ + public commands: string[]; - /** - * Verifies a DeleteJobRequest 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); + /** Container entrypoint. */ + public entrypoint: string; - /** - * Creates a DeleteJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.DeleteJobRequest; + /** Container volumes. */ + public volumes: string[]; - /** - * Creates a plain object from a DeleteJobRequest message. Also converts values to other types if specified. - * @param message DeleteJobRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.DeleteJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Container options. */ + public options: string; + + /** Container blockExternalNetwork. */ + public blockExternalNetwork: boolean; + + /** Container username. */ + public username: string; + + /** Container password. */ + public password: string; + + /** + * Creates a new Container instance using the specified properties. + * @param [properties] Properties to set + * @returns Container instance + */ + public static create(properties?: google.cloud.batch.v1alpha.Runnable.IContainer): google.cloud.batch.v1alpha.Runnable.Container; + + /** + * Encodes the specified Container message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Container.verify|verify} messages. + * @param message Container message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.Runnable.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Container message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Container.verify|verify} messages. + * @param message Container message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.Runnable.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Container message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Container + * @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.batch.v1alpha.Runnable.Container; + + /** + * Decodes a Container message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Container + * @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.batch.v1alpha.Runnable.Container; - /** - * Converts this DeleteJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a Container 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); - /** - * Gets the default type url for DeleteJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a Container message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Container + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Runnable.Container; - /** Properties of a ListJobsRequest. */ - interface IListJobsRequest { + /** + * Creates a plain object from a Container message. Also converts values to other types if specified. + * @param message Container + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.Runnable.Container, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListJobsRequest parent */ - parent?: (string|null); + /** + * Converts this Container to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListJobsRequest filter */ - filter?: (string|null); + /** + * Gets the default type url for Container + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ListJobsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a Script. */ + interface IScript { - /** ListJobsRequest pageToken */ - pageToken?: (string|null); - } + /** Script path */ + path?: (string|null); - /** Represents a ListJobsRequest. */ - class ListJobsRequest implements IListJobsRequest { + /** Script text */ + text?: (string|null); + } - /** - * Constructs a new ListJobsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IListJobsRequest); + /** Represents a Script. */ + class Script implements IScript { - /** ListJobsRequest parent. */ - public parent: string; + /** + * Constructs a new Script. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.Runnable.IScript); - /** ListJobsRequest filter. */ - public filter: string; + /** Script path. */ + public path?: (string|null); - /** ListJobsRequest pageSize. */ - public pageSize: number; + /** Script text. */ + public text?: (string|null); - /** ListJobsRequest pageToken. */ - public pageToken: string; + /** Script command. */ + public command?: ("path"|"text"); - /** - * Creates a new ListJobsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListJobsRequest instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IListJobsRequest): google.cloud.batch.v1alpha.ListJobsRequest; + /** + * Creates a new Script instance using the specified properties. + * @param [properties] Properties to set + * @returns Script instance + */ + public static create(properties?: google.cloud.batch.v1alpha.Runnable.IScript): google.cloud.batch.v1alpha.Runnable.Script; - /** - * Encodes the specified ListJobsRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsRequest.verify|verify} messages. - * @param message ListJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Script message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Script.verify|verify} messages. + * @param message Script message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.Runnable.IScript, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListJobsRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsRequest.verify|verify} messages. - * @param message ListJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Script message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Script.verify|verify} messages. + * @param message Script message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.Runnable.IScript, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListJobsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListJobsRequest - * @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.batch.v1alpha.ListJobsRequest; + /** + * Decodes a Script message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Script + * @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.batch.v1alpha.Runnable.Script; - /** - * Decodes a ListJobsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListJobsRequest - * @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.batch.v1alpha.ListJobsRequest; + /** + * Decodes a Script message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Script + * @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.batch.v1alpha.Runnable.Script; - /** - * Verifies a ListJobsRequest 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); + /** + * Verifies a Script 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 ListJobsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListJobsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ListJobsRequest; + /** + * Creates a Script message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Script + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Runnable.Script; - /** - * Creates a plain object from a ListJobsRequest message. Also converts values to other types if specified. - * @param message ListJobsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.ListJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a Script message. Also converts values to other types if specified. + * @param message Script + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.Runnable.Script, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ListJobsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this Script to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ListJobsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for Script + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a ListJobsResponse. */ - interface IListJobsResponse { + /** Properties of a Barrier. */ + interface IBarrier { - /** ListJobsResponse jobs */ - jobs?: (google.cloud.batch.v1alpha.IJob[]|null); + /** Barrier name */ + name?: (string|null); + } - /** ListJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Represents a Barrier. */ + class Barrier implements IBarrier { - /** ListJobsResponse unreachable */ - unreachable?: (string[]|null); - } + /** + * Constructs a new Barrier. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.Runnable.IBarrier); - /** Represents a ListJobsResponse. */ - class ListJobsResponse implements IListJobsResponse { + /** Barrier name. */ + public name: string; - /** - * Constructs a new ListJobsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IListJobsResponse); + /** + * Creates a new Barrier instance using the specified properties. + * @param [properties] Properties to set + * @returns Barrier instance + */ + public static create(properties?: google.cloud.batch.v1alpha.Runnable.IBarrier): google.cloud.batch.v1alpha.Runnable.Barrier; - /** ListJobsResponse jobs. */ - public jobs: google.cloud.batch.v1alpha.IJob[]; + /** + * Encodes the specified Barrier message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Barrier.verify|verify} messages. + * @param message Barrier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.Runnable.IBarrier, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListJobsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Encodes the specified Barrier message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Barrier.verify|verify} messages. + * @param message Barrier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.Runnable.IBarrier, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListJobsResponse unreachable. */ - public unreachable: string[]; + /** + * Decodes a Barrier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Barrier + * @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.batch.v1alpha.Runnable.Barrier; - /** - * Creates a new ListJobsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListJobsResponse instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IListJobsResponse): google.cloud.batch.v1alpha.ListJobsResponse; + /** + * Decodes a Barrier message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Barrier + * @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.batch.v1alpha.Runnable.Barrier; - /** - * Encodes the specified ListJobsResponse message. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsResponse.verify|verify} messages. - * @param message ListJobsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IListJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a Barrier 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); - /** - * Encodes the specified ListJobsResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsResponse.verify|verify} messages. - * @param message ListJobsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IListJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a Barrier message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Barrier + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Runnable.Barrier; - /** - * Decodes a ListJobsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListJobsResponse - * @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.batch.v1alpha.ListJobsResponse; + /** + * Creates a plain object from a Barrier message. Also converts values to other types if specified. + * @param message Barrier + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.Runnable.Barrier, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a ListJobsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListJobsResponse - * @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.batch.v1alpha.ListJobsResponse; + /** + * Converts this Barrier to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies a ListJobsResponse 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); + /** + * Gets the default type url for Barrier + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Creates a ListJobsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListJobsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ListJobsResponse; + /** Properties of a TaskSpec. */ + interface ITaskSpec { - /** - * Creates a plain object from a ListJobsResponse message. Also converts values to other types if specified. - * @param message ListJobsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.ListJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TaskSpec runnables */ + runnables?: (google.cloud.batch.v1alpha.IRunnable[]|null); - /** - * Converts this ListJobsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TaskSpec computeResource */ + computeResource?: (google.cloud.batch.v1alpha.IComputeResource|null); - /** - * Gets the default type url for ListJobsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TaskSpec maxRunDuration */ + maxRunDuration?: (google.protobuf.IDuration|null); - /** Properties of a ListTasksRequest. */ - interface IListTasksRequest { + /** TaskSpec maxRetryCount */ + maxRetryCount?: (number|null); - /** ListTasksRequest parent */ - parent?: (string|null); + /** TaskSpec lifecyclePolicies */ + lifecyclePolicies?: (google.cloud.batch.v1alpha.ILifecyclePolicy[]|null); - /** ListTasksRequest filter */ - filter?: (string|null); + /** TaskSpec environments */ + environments?: ({ [k: string]: string }|null); - /** ListTasksRequest pageSize */ - pageSize?: (number|null); + /** TaskSpec volumes */ + volumes?: (google.cloud.batch.v1alpha.IVolume[]|null); - /** ListTasksRequest pageToken */ - pageToken?: (string|null); + /** TaskSpec environment */ + environment?: (google.cloud.batch.v1alpha.IEnvironment|null); } - /** Represents a ListTasksRequest. */ - class ListTasksRequest implements IListTasksRequest { + /** Represents a TaskSpec. */ + class TaskSpec implements ITaskSpec { /** - * Constructs a new ListTasksRequest. + * Constructs a new TaskSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1alpha.IListTasksRequest); + constructor(properties?: google.cloud.batch.v1alpha.ITaskSpec); - /** ListTasksRequest parent. */ - public parent: string; + /** TaskSpec runnables. */ + public runnables: google.cloud.batch.v1alpha.IRunnable[]; - /** ListTasksRequest filter. */ - public filter: string; + /** TaskSpec computeResource. */ + public computeResource?: (google.cloud.batch.v1alpha.IComputeResource|null); - /** ListTasksRequest pageSize. */ - public pageSize: number; + /** TaskSpec maxRunDuration. */ + public maxRunDuration?: (google.protobuf.IDuration|null); - /** ListTasksRequest pageToken. */ - public pageToken: string; + /** TaskSpec maxRetryCount. */ + public maxRetryCount: number; + + /** TaskSpec lifecyclePolicies. */ + public lifecyclePolicies: google.cloud.batch.v1alpha.ILifecyclePolicy[]; + + /** TaskSpec environments. */ + public environments: { [k: string]: string }; + + /** TaskSpec volumes. */ + public volumes: google.cloud.batch.v1alpha.IVolume[]; + + /** TaskSpec environment. */ + public environment?: (google.cloud.batch.v1alpha.IEnvironment|null); /** - * Creates a new ListTasksRequest instance using the specified properties. + * Creates a new TaskSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ListTasksRequest instance + * @returns TaskSpec instance */ - public static create(properties?: google.cloud.batch.v1alpha.IListTasksRequest): google.cloud.batch.v1alpha.ListTasksRequest; + public static create(properties?: google.cloud.batch.v1alpha.ITaskSpec): google.cloud.batch.v1alpha.TaskSpec; /** - * Encodes the specified ListTasksRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksRequest.verify|verify} messages. - * @param message ListTasksRequest message or plain object to encode + * Encodes the specified TaskSpec message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskSpec.verify|verify} messages. + * @param message TaskSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.IListTasksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTasksRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksRequest.verify|verify} messages. - * @param message ListTasksRequest message or plain object to encode + * Encodes the specified TaskSpec message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskSpec.verify|verify} messages. + * @param message TaskSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IListTasksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTasksRequest message from the specified reader or buffer. + * Decodes a TaskSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTasksRequest + * @returns TaskSpec * @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.batch.v1alpha.ListTasksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.TaskSpec; /** - * Decodes a ListTasksRequest message from the specified reader or buffer, length delimited. + * Decodes a TaskSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTasksRequest + * @returns TaskSpec * @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.batch.v1alpha.ListTasksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.TaskSpec; /** - * Verifies a ListTasksRequest message. + * Verifies a TaskSpec 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 ListTasksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TaskSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTasksRequest + * @returns TaskSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ListTasksRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.TaskSpec; /** - * Creates a plain object from a ListTasksRequest message. Also converts values to other types if specified. - * @param message ListTasksRequest + * Creates a plain object from a TaskSpec message. Also converts values to other types if specified. + * @param message TaskSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.ListTasksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.TaskSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTasksRequest to JSON. + * Converts this TaskSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTasksRequest + * Gets the default type url for TaskSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTasksResponse. */ - interface IListTasksResponse { - - /** ListTasksResponse tasks */ - tasks?: (google.cloud.batch.v1alpha.ITask[]|null); + /** Properties of a LifecyclePolicy. */ + interface ILifecyclePolicy { - /** ListTasksResponse nextPageToken */ - nextPageToken?: (string|null); + /** LifecyclePolicy action */ + action?: (google.cloud.batch.v1alpha.LifecyclePolicy.Action|keyof typeof google.cloud.batch.v1alpha.LifecyclePolicy.Action|null); - /** ListTasksResponse unreachable */ - unreachable?: (string[]|null); + /** LifecyclePolicy actionCondition */ + actionCondition?: (google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition|null); } - /** Represents a ListTasksResponse. */ - class ListTasksResponse implements IListTasksResponse { + /** Represents a LifecyclePolicy. */ + class LifecyclePolicy implements ILifecyclePolicy { /** - * Constructs a new ListTasksResponse. + * Constructs a new LifecyclePolicy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1alpha.IListTasksResponse); - - /** ListTasksResponse tasks. */ - public tasks: google.cloud.batch.v1alpha.ITask[]; + constructor(properties?: google.cloud.batch.v1alpha.ILifecyclePolicy); - /** ListTasksResponse nextPageToken. */ - public nextPageToken: string; + /** LifecyclePolicy action. */ + public action: (google.cloud.batch.v1alpha.LifecyclePolicy.Action|keyof typeof google.cloud.batch.v1alpha.LifecyclePolicy.Action); - /** ListTasksResponse unreachable. */ - public unreachable: string[]; + /** LifecyclePolicy actionCondition. */ + public actionCondition?: (google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition|null); /** - * Creates a new ListTasksResponse instance using the specified properties. + * Creates a new LifecyclePolicy instance using the specified properties. * @param [properties] Properties to set - * @returns ListTasksResponse instance + * @returns LifecyclePolicy instance */ - public static create(properties?: google.cloud.batch.v1alpha.IListTasksResponse): google.cloud.batch.v1alpha.ListTasksResponse; + public static create(properties?: google.cloud.batch.v1alpha.ILifecyclePolicy): google.cloud.batch.v1alpha.LifecyclePolicy; /** - * Encodes the specified ListTasksResponse message. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksResponse.verify|verify} messages. - * @param message ListTasksResponse message or plain object to encode + * Encodes the specified LifecyclePolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.verify|verify} messages. + * @param message LifecyclePolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.IListTasksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.ILifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTasksResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksResponse.verify|verify} messages. - * @param message ListTasksResponse message or plain object to encode + * Encodes the specified LifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.verify|verify} messages. + * @param message LifecyclePolicy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IListTasksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.ILifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTasksResponse message from the specified reader or buffer. + * Decodes a LifecyclePolicy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTasksResponse + * @returns LifecyclePolicy * @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.batch.v1alpha.ListTasksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.LifecyclePolicy; /** - * Decodes a ListTasksResponse message from the specified reader or buffer, length delimited. + * Decodes a LifecyclePolicy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTasksResponse + * @returns LifecyclePolicy * @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.batch.v1alpha.ListTasksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.LifecyclePolicy; /** - * Verifies a ListTasksResponse message. + * Verifies a LifecyclePolicy 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 ListTasksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LifecyclePolicy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTasksResponse + * @returns LifecyclePolicy */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ListTasksResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.LifecyclePolicy; /** - * Creates a plain object from a ListTasksResponse message. Also converts values to other types if specified. - * @param message ListTasksResponse + * Creates a plain object from a LifecyclePolicy message. Also converts values to other types if specified. + * @param message LifecyclePolicy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.ListTasksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.LifecyclePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTasksResponse to JSON. + * Converts this LifecyclePolicy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTasksResponse + * Gets the default type url for LifecyclePolicy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTaskRequest. */ - interface IGetTaskRequest { + namespace LifecyclePolicy { - /** GetTaskRequest name */ + /** Properties of an ActionCondition. */ + interface IActionCondition { + + /** ActionCondition exitCodes */ + exitCodes?: (number[]|null); + } + + /** Represents an ActionCondition. */ + class ActionCondition implements IActionCondition { + + /** + * Constructs a new ActionCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition); + + /** ActionCondition exitCodes. */ + public exitCodes: number[]; + + /** + * Creates a new ActionCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns ActionCondition instance + */ + public static create(properties?: google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition): google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition; + + /** + * Encodes the specified ActionCondition message. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify|verify} messages. + * @param message ActionCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ActionCondition message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify|verify} messages. + * @param message ActionCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ActionCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActionCondition + * @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.batch.v1alpha.LifecyclePolicy.ActionCondition; + + /** + * Decodes an ActionCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ActionCondition + * @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.batch.v1alpha.LifecyclePolicy.ActionCondition; + + /** + * Verifies an ActionCondition 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 an ActionCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ActionCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition; + + /** + * Creates a plain object from an ActionCondition message. Also converts values to other types if specified. + * @param message ActionCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ActionCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ActionCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Action enum. */ + enum Action { + ACTION_UNSPECIFIED = 0, + RETRY_TASK = 1, + FAIL_TASK = 2 + } + } + + /** Properties of a Task. */ + interface ITask { + + /** Task name */ name?: (string|null); + + /** Task status */ + status?: (google.cloud.batch.v1alpha.ITaskStatus|null); } - /** Represents a GetTaskRequest. */ - class GetTaskRequest implements IGetTaskRequest { + /** Represents a Task. */ + class Task implements ITask { /** - * Constructs a new GetTaskRequest. + * Constructs a new Task. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1alpha.IGetTaskRequest); + constructor(properties?: google.cloud.batch.v1alpha.ITask); - /** GetTaskRequest name. */ + /** Task name. */ public name: string; + /** Task status. */ + public status?: (google.cloud.batch.v1alpha.ITaskStatus|null); + /** - * Creates a new GetTaskRequest instance using the specified properties. + * Creates a new Task instance using the specified properties. * @param [properties] Properties to set - * @returns GetTaskRequest instance + * @returns Task instance */ - public static create(properties?: google.cloud.batch.v1alpha.IGetTaskRequest): google.cloud.batch.v1alpha.GetTaskRequest; + public static create(properties?: google.cloud.batch.v1alpha.ITask): google.cloud.batch.v1alpha.Task; /** - * Encodes the specified GetTaskRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.GetTaskRequest.verify|verify} messages. - * @param message GetTaskRequest message or plain object to encode + * Encodes the specified Task message. Does not implicitly {@link google.cloud.batch.v1alpha.Task.verify|verify} messages. + * @param message Task message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.ITask, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTaskRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GetTaskRequest.verify|verify} messages. - * @param message GetTaskRequest message or plain object to encode + * Encodes the specified Task message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Task.verify|verify} messages. + * @param message Task message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.ITask, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTaskRequest message from the specified reader or buffer. + * Decodes a Task message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTaskRequest + * @returns Task * @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.batch.v1alpha.GetTaskRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.Task; /** - * Decodes a GetTaskRequest message from the specified reader or buffer, length delimited. + * Decodes a Task message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTaskRequest + * @returns Task * @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.batch.v1alpha.GetTaskRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.Task; /** - * Verifies a GetTaskRequest message. + * Verifies a Task 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 GetTaskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Task message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTaskRequest + * @returns Task */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.GetTaskRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Task; - /** - * Creates a plain object from a GetTaskRequest message. Also converts values to other types if specified. - * @param message GetTaskRequest + /** + * Creates a plain object from a Task message. Also converts values to other types if specified. + * @param message Task * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.GetTaskRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.Task, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTaskRequest to JSON. + * Converts this Task to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTaskRequest + * Gets the default type url for Task * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an OperationMetadata. */ - interface IOperationMetadata { - - /** OperationMetadata createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata target */ - target?: (string|null); - - /** OperationMetadata verb */ - verb?: (string|null); + /** Properties of an Environment. */ + interface IEnvironment { - /** OperationMetadata statusMessage */ - statusMessage?: (string|null); + /** Environment variables */ + variables?: ({ [k: string]: string }|null); - /** OperationMetadata requestedCancellation */ - requestedCancellation?: (boolean|null); + /** Environment secretVariables */ + secretVariables?: ({ [k: string]: string }|null); - /** OperationMetadata apiVersion */ - apiVersion?: (string|null); + /** Environment encryptedVariables */ + encryptedVariables?: (google.cloud.batch.v1alpha.Environment.IKMSEnvMap|null); } - /** Represents an OperationMetadata. */ - class OperationMetadata implements IOperationMetadata { + /** Represents an Environment. */ + class Environment implements IEnvironment { /** - * Constructs a new OperationMetadata. + * Constructs a new Environment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1alpha.IOperationMetadata); - - /** OperationMetadata createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** OperationMetadata target. */ - public target: string; - - /** OperationMetadata verb. */ - public verb: string; + constructor(properties?: google.cloud.batch.v1alpha.IEnvironment); - /** OperationMetadata statusMessage. */ - public statusMessage: string; + /** Environment variables. */ + public variables: { [k: string]: string }; - /** OperationMetadata requestedCancellation. */ - public requestedCancellation: boolean; + /** Environment secretVariables. */ + public secretVariables: { [k: string]: string }; - /** OperationMetadata apiVersion. */ - public apiVersion: string; + /** Environment encryptedVariables. */ + public encryptedVariables?: (google.cloud.batch.v1alpha.Environment.IKMSEnvMap|null); /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @param [properties] Properties to set - * @returns OperationMetadata instance + * @returns Environment instance */ - public static create(properties?: google.cloud.batch.v1alpha.IOperationMetadata): google.cloud.batch.v1alpha.OperationMetadata; + public static create(properties?: google.cloud.batch.v1alpha.IEnvironment): google.cloud.batch.v1alpha.Environment; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.batch.v1alpha.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.OperationMetadata.verify|verify} messages. - * @param message OperationMetadata message or plain object to encode + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OperationMetadata + * @returns Environment * @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.batch.v1alpha.OperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.Environment; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OperationMetadata + * @returns Environment * @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.batch.v1alpha.OperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.Environment; /** - * Verifies an OperationMetadata message. + * Verifies an Environment 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 an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OperationMetadata + * @returns Environment */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.OperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Environment; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. - * @param message OperationMetadata + * Creates a plain object from an Environment message. Also converts values to other types if specified. + * @param message Environment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OperationMetadata to JSON. + * Converts this Environment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for Environment * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Job. */ - interface IJob { + namespace Environment { - /** Job name */ - name?: (string|null); + /** Properties of a KMSEnvMap. */ + interface IKMSEnvMap { - /** Job uid */ - uid?: (string|null); + /** KMSEnvMap keyName */ + keyName?: (string|null); - /** Job priority */ - priority?: (number|Long|string|null); + /** KMSEnvMap cipherText */ + cipherText?: (string|null); + } - /** Job taskGroups */ - taskGroups?: (google.cloud.batch.v1alpha.ITaskGroup[]|null); + /** Represents a KMSEnvMap. */ + class KMSEnvMap implements IKMSEnvMap { - /** Job schedulingPolicy */ - schedulingPolicy?: (google.cloud.batch.v1alpha.Job.SchedulingPolicy|keyof typeof google.cloud.batch.v1alpha.Job.SchedulingPolicy|null); + /** + * Constructs a new KMSEnvMap. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.Environment.IKMSEnvMap); - /** Job dependencies */ - dependencies?: (google.cloud.batch.v1alpha.IJobDependency[]|null); + /** KMSEnvMap keyName. */ + public keyName: string; - /** Job allocationPolicy */ - allocationPolicy?: (google.cloud.batch.v1alpha.IAllocationPolicy|null); + /** KMSEnvMap cipherText. */ + public cipherText: string; - /** Job labels */ - labels?: ({ [k: string]: string }|null); + /** + * Creates a new KMSEnvMap instance using the specified properties. + * @param [properties] Properties to set + * @returns KMSEnvMap instance + */ + public static create(properties?: google.cloud.batch.v1alpha.Environment.IKMSEnvMap): google.cloud.batch.v1alpha.Environment.KMSEnvMap; - /** Job status */ - status?: (google.cloud.batch.v1alpha.IJobStatus|null); + /** + * Encodes the specified KMSEnvMap message. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify|verify} messages. + * @param message KMSEnvMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.batch.v1alpha.Environment.IKMSEnvMap, writer?: $protobuf.Writer): $protobuf.Writer; - /** Job notification */ - notification?: (google.cloud.batch.v1alpha.IJobNotification|null); + /** + * Encodes the specified KMSEnvMap message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify|verify} messages. + * @param message KMSEnvMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.batch.v1alpha.Environment.IKMSEnvMap, writer?: $protobuf.Writer): $protobuf.Writer; - /** Job createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a KMSEnvMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KMSEnvMap + * @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.batch.v1alpha.Environment.KMSEnvMap; - /** Job updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a KMSEnvMap message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KMSEnvMap + * @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.batch.v1alpha.Environment.KMSEnvMap; - /** Job logsPolicy */ - logsPolicy?: (google.cloud.batch.v1alpha.ILogsPolicy|null); + /** + * Verifies a KMSEnvMap 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); - /** Job notifications */ - notifications?: (google.cloud.batch.v1alpha.IJobNotification[]|null); + /** + * Creates a KMSEnvMap message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KMSEnvMap + */ + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Environment.KMSEnvMap; + + /** + * Creates a plain object from a KMSEnvMap message. Also converts values to other types if specified. + * @param message KMSEnvMap + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.batch.v1alpha.Environment.KMSEnvMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KMSEnvMap to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KMSEnvMap + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a Job. */ - class Job implements IJob { + /** Properties of a Volume. */ + interface IVolume { - /** - * Constructs a new Job. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IJob); + /** Volume nfs */ + nfs?: (google.cloud.batch.v1alpha.INFS|null); - /** Job name. */ - public name: string; + /** Volume pd */ + pd?: (google.cloud.batch.v1alpha.IPD|null); - /** Job uid. */ - public uid: string; + /** Volume gcs */ + gcs?: (google.cloud.batch.v1alpha.IGCS|null); - /** Job priority. */ - public priority: (number|Long|string); + /** Volume deviceName */ + deviceName?: (string|null); - /** Job taskGroups. */ - public taskGroups: google.cloud.batch.v1alpha.ITaskGroup[]; + /** Volume mountPath */ + mountPath?: (string|null); - /** Job schedulingPolicy. */ - public schedulingPolicy: (google.cloud.batch.v1alpha.Job.SchedulingPolicy|keyof typeof google.cloud.batch.v1alpha.Job.SchedulingPolicy); + /** Volume mountOptions */ + mountOptions?: (string[]|null); + } - /** Job dependencies. */ - public dependencies: google.cloud.batch.v1alpha.IJobDependency[]; + /** Represents a Volume. */ + class Volume implements IVolume { - /** Job allocationPolicy. */ - public allocationPolicy?: (google.cloud.batch.v1alpha.IAllocationPolicy|null); + /** + * Constructs a new Volume. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.batch.v1alpha.IVolume); - /** Job labels. */ - public labels: { [k: string]: string }; + /** Volume nfs. */ + public nfs?: (google.cloud.batch.v1alpha.INFS|null); - /** Job status. */ - public status?: (google.cloud.batch.v1alpha.IJobStatus|null); + /** Volume pd. */ + public pd?: (google.cloud.batch.v1alpha.IPD|null); - /** Job notification. */ - public notification?: (google.cloud.batch.v1alpha.IJobNotification|null); + /** Volume gcs. */ + public gcs?: (google.cloud.batch.v1alpha.IGCS|null); - /** Job createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Volume deviceName. */ + public deviceName?: (string|null); - /** Job updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Volume mountPath. */ + public mountPath: string; - /** Job logsPolicy. */ - public logsPolicy?: (google.cloud.batch.v1alpha.ILogsPolicy|null); + /** Volume mountOptions. */ + public mountOptions: string[]; - /** Job notifications. */ - public notifications: google.cloud.batch.v1alpha.IJobNotification[]; + /** Volume source. */ + public source?: ("nfs"|"pd"|"gcs"|"deviceName"); /** - * Creates a new Job instance using the specified properties. + * Creates a new Volume instance using the specified properties. * @param [properties] Properties to set - * @returns Job instance + * @returns Volume instance */ - public static create(properties?: google.cloud.batch.v1alpha.IJob): google.cloud.batch.v1alpha.Job; + public static create(properties?: google.cloud.batch.v1alpha.IVolume): google.cloud.batch.v1alpha.Volume; /** - * Encodes the specified Job message. Does not implicitly {@link google.cloud.batch.v1alpha.Job.verify|verify} messages. - * @param message Job message or plain object to encode + * Encodes the specified Volume message. Does not implicitly {@link google.cloud.batch.v1alpha.Volume.verify|verify} messages. + * @param message Volume message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.IJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Job.verify|verify} messages. - * @param message Job message or plain object to encode + * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Volume.verify|verify} messages. + * @param message Volume message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Job message from the specified reader or buffer. + * Decodes a Volume message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Job + * @returns Volume * @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.batch.v1alpha.Job; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.Volume; /** - * Decodes a Job message from the specified reader or buffer, length delimited. + * Decodes a Volume message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Job + * @returns Volume * @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.batch.v1alpha.Job; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.Volume; /** - * Verifies a Job message. + * Verifies a Volume 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 Job message from a plain object. Also converts values to their respective internal types. + * Creates a Volume message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Job + * @returns Volume */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Job; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Volume; /** - * Creates a plain object from a Job message. Also converts values to other types if specified. - * @param message Job + * Creates a plain object from a Volume message. Also converts values to other types if specified. + * @param message Volume * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.Job, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.Volume, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Job to JSON. + * Converts this Volume to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Job + * Gets the default type url for Volume * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Job { - - /** SchedulingPolicy enum. */ - enum SchedulingPolicy { - SCHEDULING_POLICY_UNSPECIFIED = 0, - AS_SOON_AS_POSSIBLE = 1 - } - } - - /** Properties of a LogsPolicy. */ - interface ILogsPolicy { + /** Properties of a NFS. */ + interface INFS { - /** LogsPolicy destination */ - destination?: (google.cloud.batch.v1alpha.LogsPolicy.Destination|keyof typeof google.cloud.batch.v1alpha.LogsPolicy.Destination|null); + /** NFS server */ + server?: (string|null); - /** LogsPolicy logsPath */ - logsPath?: (string|null); + /** NFS remotePath */ + remotePath?: (string|null); } - /** Represents a LogsPolicy. */ - class LogsPolicy implements ILogsPolicy { + /** Represents a NFS. */ + class NFS implements INFS { /** - * Constructs a new LogsPolicy. + * Constructs a new NFS. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1alpha.ILogsPolicy); + constructor(properties?: google.cloud.batch.v1alpha.INFS); - /** LogsPolicy destination. */ - public destination: (google.cloud.batch.v1alpha.LogsPolicy.Destination|keyof typeof google.cloud.batch.v1alpha.LogsPolicy.Destination); + /** NFS server. */ + public server: string; - /** LogsPolicy logsPath. */ - public logsPath: string; + /** NFS remotePath. */ + public remotePath: string; /** - * Creates a new LogsPolicy instance using the specified properties. + * Creates a new NFS instance using the specified properties. * @param [properties] Properties to set - * @returns LogsPolicy instance + * @returns NFS instance */ - public static create(properties?: google.cloud.batch.v1alpha.ILogsPolicy): google.cloud.batch.v1alpha.LogsPolicy; + public static create(properties?: google.cloud.batch.v1alpha.INFS): google.cloud.batch.v1alpha.NFS; /** - * Encodes the specified LogsPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.LogsPolicy.verify|verify} messages. - * @param message LogsPolicy message or plain object to encode + * Encodes the specified NFS message. Does not implicitly {@link google.cloud.batch.v1alpha.NFS.verify|verify} messages. + * @param message NFS message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.ILogsPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.INFS, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LogsPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LogsPolicy.verify|verify} messages. - * @param message LogsPolicy message or plain object to encode + * Encodes the specified NFS message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.NFS.verify|verify} messages. + * @param message NFS message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.ILogsPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.INFS, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LogsPolicy message from the specified reader or buffer. + * Decodes a NFS message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LogsPolicy + * @returns NFS * @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.batch.v1alpha.LogsPolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.NFS; /** - * Decodes a LogsPolicy message from the specified reader or buffer, length delimited. + * Decodes a NFS message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LogsPolicy + * @returns NFS * @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.batch.v1alpha.LogsPolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.NFS; /** - * Verifies a LogsPolicy message. + * Verifies a NFS 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 LogsPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a NFS message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LogsPolicy + * @returns NFS */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.LogsPolicy; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.NFS; /** - * Creates a plain object from a LogsPolicy message. Also converts values to other types if specified. - * @param message LogsPolicy + * Creates a plain object from a NFS message. Also converts values to other types if specified. + * @param message NFS * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.LogsPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.NFS, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LogsPolicy to JSON. + * Converts this NFS to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LogsPolicy + * Gets the default type url for NFS * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace LogsPolicy { + /** Properties of a PD. */ + interface IPD { - /** Destination enum. */ - enum Destination { - DESTINATION_UNSPECIFIED = 0, - CLOUD_LOGGING = 1, - PATH = 2 - } - } + /** PD disk */ + disk?: (string|null); - /** Properties of a JobDependency. */ - interface IJobDependency { + /** PD device */ + device?: (string|null); - /** JobDependency items */ - items?: ({ [k: string]: google.cloud.batch.v1alpha.JobDependency.Type }|null); + /** PD existing */ + existing?: (boolean|null); } - /** Represents a JobDependency. */ - class JobDependency implements IJobDependency { + /** Represents a PD. */ + class PD implements IPD { /** - * Constructs a new JobDependency. + * Constructs a new PD. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1alpha.IJobDependency); + constructor(properties?: google.cloud.batch.v1alpha.IPD); - /** JobDependency items. */ - public items: { [k: string]: google.cloud.batch.v1alpha.JobDependency.Type }; + /** PD disk. */ + public disk: string; + + /** PD device. */ + public device: string; + + /** PD existing. */ + public existing: boolean; /** - * Creates a new JobDependency instance using the specified properties. + * Creates a new PD instance using the specified properties. * @param [properties] Properties to set - * @returns JobDependency instance + * @returns PD instance */ - public static create(properties?: google.cloud.batch.v1alpha.IJobDependency): google.cloud.batch.v1alpha.JobDependency; + public static create(properties?: google.cloud.batch.v1alpha.IPD): google.cloud.batch.v1alpha.PD; /** - * Encodes the specified JobDependency message. Does not implicitly {@link google.cloud.batch.v1alpha.JobDependency.verify|verify} messages. - * @param message JobDependency message or plain object to encode + * Encodes the specified PD message. Does not implicitly {@link google.cloud.batch.v1alpha.PD.verify|verify} messages. + * @param message PD message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.IJobDependency, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IPD, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified JobDependency message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobDependency.verify|verify} messages. - * @param message JobDependency message or plain object to encode + * Encodes the specified PD message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.PD.verify|verify} messages. + * @param message PD message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IJobDependency, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IPD, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a JobDependency message from the specified reader or buffer. + * Decodes a PD message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns JobDependency + * @returns PD * @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.batch.v1alpha.JobDependency; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.PD; /** - * Decodes a JobDependency message from the specified reader or buffer, length delimited. + * Decodes a PD message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns JobDependency + * @returns PD * @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.batch.v1alpha.JobDependency; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.PD; /** - * Verifies a JobDependency message. + * Verifies a PD 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 JobDependency message from a plain object. Also converts values to their respective internal types. + * Creates a PD message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns JobDependency + * @returns PD */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobDependency; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.PD; /** - * Creates a plain object from a JobDependency message. Also converts values to other types if specified. - * @param message JobDependency + * Creates a plain object from a PD message. Also converts values to other types if specified. + * @param message PD * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.JobDependency, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.PD, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this JobDependency to JSON. + * Converts this PD to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for JobDependency + * Gets the default type url for PD * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace JobDependency { - - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - SUCCEEDED = 1, - FAILED = 2, - FINISHED = 3 - } - } - - /** Properties of a JobStatus. */ - interface IJobStatus { - - /** JobStatus state */ - state?: (google.cloud.batch.v1alpha.JobStatus.State|keyof typeof google.cloud.batch.v1alpha.JobStatus.State|null); - - /** JobStatus statusEvents */ - statusEvents?: (google.cloud.batch.v1alpha.IStatusEvent[]|null); - - /** JobStatus taskGroups */ - taskGroups?: ({ [k: string]: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus }|null); + /** Properties of a GCS. */ + interface IGCS { - /** JobStatus runDuration */ - runDuration?: (google.protobuf.IDuration|null); + /** GCS remotePath */ + remotePath?: (string|null); } - /** Represents a JobStatus. */ - class JobStatus implements IJobStatus { + /** Represents a GCS. */ + class GCS implements IGCS { /** - * Constructs a new JobStatus. + * Constructs a new GCS. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.batch.v1alpha.IJobStatus); - - /** JobStatus state. */ - public state: (google.cloud.batch.v1alpha.JobStatus.State|keyof typeof google.cloud.batch.v1alpha.JobStatus.State); - - /** JobStatus statusEvents. */ - public statusEvents: google.cloud.batch.v1alpha.IStatusEvent[]; - - /** JobStatus taskGroups. */ - public taskGroups: { [k: string]: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus }; + constructor(properties?: google.cloud.batch.v1alpha.IGCS); - /** JobStatus runDuration. */ - public runDuration?: (google.protobuf.IDuration|null); + /** GCS remotePath. */ + public remotePath: string; /** - * Creates a new JobStatus instance using the specified properties. + * Creates a new GCS instance using the specified properties. * @param [properties] Properties to set - * @returns JobStatus instance + * @returns GCS instance */ - public static create(properties?: google.cloud.batch.v1alpha.IJobStatus): google.cloud.batch.v1alpha.JobStatus; + public static create(properties?: google.cloud.batch.v1alpha.IGCS): google.cloud.batch.v1alpha.GCS; /** - * Encodes the specified JobStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.verify|verify} messages. - * @param message JobStatus message or plain object to encode + * Encodes the specified GCS message. Does not implicitly {@link google.cloud.batch.v1alpha.GCS.verify|verify} messages. + * @param message GCS message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.batch.v1alpha.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.batch.v1alpha.IGCS, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified JobStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.verify|verify} messages. - * @param message JobStatus message or plain object to encode + * Encodes the specified GCS message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GCS.verify|verify} messages. + * @param message GCS message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.batch.v1alpha.IGCS, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a JobStatus message from the specified reader or buffer. + * Decodes a GCS message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns JobStatus + * @returns GCS * @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.batch.v1alpha.JobStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.batch.v1alpha.GCS; /** - * Decodes a JobStatus message from the specified reader or buffer, length delimited. + * Decodes a GCS message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns JobStatus + * @returns GCS * @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.batch.v1alpha.JobStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.batch.v1alpha.GCS; /** - * Verifies a JobStatus message. + * Verifies a GCS 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 JobStatus message from a plain object. Also converts values to their respective internal types. + * Creates a GCS message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns JobStatus + * @returns GCS */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobStatus; + public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.GCS; /** - * Creates a plain object from a JobStatus message. Also converts values to other types if specified. - * @param message JobStatus + * Creates a plain object from a GCS message. Also converts values to other types if specified. + * @param message GCS * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.batch.v1alpha.JobStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.batch.v1alpha.GCS, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this JobStatus to JSON. + * Converts this GCS to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for JobStatus + * Gets the default type url for GCS * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } + } + } - namespace JobStatus { + /** Namespace api. */ + namespace api { - /** Properties of an InstanceStatus. */ - interface IInstanceStatus { + /** Properties of a Http. */ + interface IHttp { - /** InstanceStatus machineType */ - machineType?: (string|null); + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); - /** InstanceStatus provisioningModel */ - provisioningModel?: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|null); + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); + } - /** InstanceStatus taskPack */ - taskPack?: (number|Long|string|null); - } + /** Represents a Http. */ + class Http implements IHttp { - /** Represents an InstanceStatus. */ - class InstanceStatus implements IInstanceStatus { + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); - /** - * Constructs a new InstanceStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus); + /** Http rules. */ + public rules: google.api.IHttpRule[]; - /** InstanceStatus machineType. */ - public machineType: string; + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; - /** InstanceStatus provisioningModel. */ - public provisioningModel: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel); + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; - /** InstanceStatus taskPack. */ - public taskPack: (number|Long|string); + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new InstanceStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns InstanceStatus instance - */ - public static create(properties?: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus): google.cloud.batch.v1alpha.JobStatus.InstanceStatus; + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified InstanceStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify|verify} messages. - * @param message InstanceStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @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.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @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.api.Http; + + /** + * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Http + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); - /** - * Encodes the specified InstanceStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify|verify} messages. - * @param message InstanceStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** HttpRule post */ + post?: (string|null); - /** - * Decodes an InstanceStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InstanceStatus - * @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.batch.v1alpha.JobStatus.InstanceStatus; + /** HttpRule delete */ + "delete"?: (string|null); - /** - * Decodes an InstanceStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InstanceStatus - * @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.batch.v1alpha.JobStatus.InstanceStatus; + /** HttpRule patch */ + patch?: (string|null); - /** - * Verifies an InstanceStatus 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); + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); - /** - * Creates an InstanceStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InstanceStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobStatus.InstanceStatus; + /** HttpRule body */ + body?: (string|null); - /** - * Creates a plain object from an InstanceStatus message. Also converts values to other types if specified. - * @param message InstanceStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.JobStatus.InstanceStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** HttpRule responseBody */ + responseBody?: (string|null); - /** - * Converts this InstanceStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } - /** - * Gets the default type url for InstanceStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { - /** Properties of a TaskGroupStatus. */ - interface ITaskGroupStatus { + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); - /** TaskGroupStatus counts */ - counts?: ({ [k: string]: (number|Long|string) }|null); + /** HttpRule selector. */ + public selector: string; - /** TaskGroupStatus instances */ - instances?: (google.cloud.batch.v1alpha.JobStatus.IInstanceStatus[]|null); - } + /** HttpRule get. */ + public get?: (string|null); - /** Represents a TaskGroupStatus. */ - class TaskGroupStatus implements ITaskGroupStatus { + /** HttpRule put. */ + public put?: (string|null); - /** - * Constructs a new TaskGroupStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus); + /** HttpRule post. */ + public post?: (string|null); - /** TaskGroupStatus counts. */ - public counts: { [k: string]: (number|Long|string) }; + /** HttpRule delete. */ + public delete?: (string|null); - /** TaskGroupStatus instances. */ - public instances: google.cloud.batch.v1alpha.JobStatus.IInstanceStatus[]; + /** HttpRule patch. */ + public patch?: (string|null); - /** - * Creates a new TaskGroupStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskGroupStatus instance - */ - public static create(properties?: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus): google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus; + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); - /** - * Encodes the specified TaskGroupStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify|verify} messages. - * @param message TaskGroupStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** HttpRule body. */ + public body: string; - /** - * Encodes the specified TaskGroupStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify|verify} messages. - * @param message TaskGroupStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** HttpRule responseBody. */ + public responseBody: string; - /** - * Decodes a TaskGroupStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskGroupStatus - * @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.batch.v1alpha.JobStatus.TaskGroupStatus; + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; - /** - * Decodes a TaskGroupStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TaskGroupStatus - * @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.batch.v1alpha.JobStatus.TaskGroupStatus; + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); - /** - * Verifies a TaskGroupStatus 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 new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; - /** - * Creates a TaskGroupStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TaskGroupStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus; + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a TaskGroupStatus message. Also converts values to other types if specified. - * @param message TaskGroupStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this TaskGroupStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @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.api.HttpRule; - /** - * Gets the default type url for TaskGroupStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @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.api.HttpRule; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - QUEUED = 1, - SCHEDULED = 2, - RUNNING = 3, - SUCCEEDED = 4, - FAILED = 5, - DELETION_IN_PROGRESS = 6 - } - } + /** + * Verifies a HttpRule 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); - /** Properties of a JobNotification. */ - interface IJobNotification { + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** JobNotification pubsubTopic */ - pubsubTopic?: (string|null); + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** JobNotification message */ - message?: (google.cloud.batch.v1alpha.JobNotification.IMessage|null); - } + /** + * Gets the default type url for HttpRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a JobNotification. */ - class JobNotification implements IJobNotification { + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { - /** - * Constructs a new JobNotification. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IJobNotification); + /** CustomHttpPattern kind */ + kind?: (string|null); - /** JobNotification pubsubTopic. */ - public pubsubTopic: string; + /** CustomHttpPattern path */ + path?: (string|null); + } - /** JobNotification message. */ - public message?: (google.cloud.batch.v1alpha.JobNotification.IMessage|null); + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { - /** - * Creates a new JobNotification instance using the specified properties. - * @param [properties] Properties to set - * @returns JobNotification instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IJobNotification): google.cloud.batch.v1alpha.JobNotification; + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); - /** - * Encodes the specified JobNotification message. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.verify|verify} messages. - * @param message JobNotification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IJobNotification, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomHttpPattern kind. */ + public kind: string; - /** - * Encodes the specified JobNotification message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.verify|verify} messages. - * @param message JobNotification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IJobNotification, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomHttpPattern path. */ + public path: string; - /** - * Decodes a JobNotification message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns JobNotification - * @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.batch.v1alpha.JobNotification; + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; - /** - * Decodes a JobNotification message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns JobNotification - * @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.batch.v1alpha.JobNotification; + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a JobNotification 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); + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a JobNotification message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns JobNotification - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobNotification; + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; - /** - * Creates a plain object from a JobNotification message. Also converts values to other types if specified. - * @param message JobNotification - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.JobNotification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; - /** - * Converts this JobNotification to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a CustomHttpPattern 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); - /** - * Gets the default type url for JobNotification - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; - namespace JobNotification { + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a Message. */ - interface IMessage { + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Message type */ - type?: (google.cloud.batch.v1alpha.JobNotification.Type|keyof typeof google.cloud.batch.v1alpha.JobNotification.Type|null); + /** + * Gets the default type url for CustomHttpPattern + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Message newJobState */ - newJobState?: (google.cloud.batch.v1alpha.JobStatus.State|keyof typeof google.cloud.batch.v1alpha.JobStatus.State|null); + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 + } - /** Message newTaskState */ - newTaskState?: (google.cloud.batch.v1alpha.TaskStatus.State|keyof typeof google.cloud.batch.v1alpha.TaskStatus.State|null); - } + /** Properties of a ResourceDescriptor. */ + interface IResourceDescriptor { - /** Represents a Message. */ - class Message implements IMessage { + /** ResourceDescriptor type */ + type?: (string|null); - /** - * Constructs a new Message. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.JobNotification.IMessage); + /** ResourceDescriptor pattern */ + pattern?: (string[]|null); - /** Message type. */ - public type: (google.cloud.batch.v1alpha.JobNotification.Type|keyof typeof google.cloud.batch.v1alpha.JobNotification.Type); + /** ResourceDescriptor nameField */ + nameField?: (string|null); - /** Message newJobState. */ - public newJobState: (google.cloud.batch.v1alpha.JobStatus.State|keyof typeof google.cloud.batch.v1alpha.JobStatus.State); + /** ResourceDescriptor history */ + history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); - /** Message newTaskState. */ - public newTaskState: (google.cloud.batch.v1alpha.TaskStatus.State|keyof typeof google.cloud.batch.v1alpha.TaskStatus.State); + /** ResourceDescriptor plural */ + plural?: (string|null); - /** - * Creates a new Message instance using the specified properties. - * @param [properties] Properties to set - * @returns Message instance - */ - public static create(properties?: google.cloud.batch.v1alpha.JobNotification.IMessage): google.cloud.batch.v1alpha.JobNotification.Message; + /** ResourceDescriptor singular */ + singular?: (string|null); - /** - * Encodes the specified Message message. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.Message.verify|verify} messages. - * @param message Message message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.JobNotification.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; + /** ResourceDescriptor style */ + style?: (google.api.ResourceDescriptor.Style[]|null); + } - /** - * Encodes the specified Message message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.Message.verify|verify} messages. - * @param message Message message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.JobNotification.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a ResourceDescriptor. */ + class ResourceDescriptor implements IResourceDescriptor { + + /** + * Constructs a new ResourceDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceDescriptor); - /** - * Decodes a Message message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Message - * @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.batch.v1alpha.JobNotification.Message; + /** ResourceDescriptor type. */ + public type: string; - /** - * Decodes a Message message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Message - * @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.batch.v1alpha.JobNotification.Message; + /** ResourceDescriptor pattern. */ + public pattern: string[]; - /** - * Verifies a Message 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); + /** ResourceDescriptor nameField. */ + public nameField: string; - /** - * Creates a Message message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Message - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.JobNotification.Message; + /** ResourceDescriptor history. */ + public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History); - /** - * Creates a plain object from a Message message. Also converts values to other types if specified. - * @param message Message - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.JobNotification.Message, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ResourceDescriptor plural. */ + public plural: string; - /** - * Converts this Message to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ResourceDescriptor singular. */ + public singular: string; - /** - * Gets the default type url for Message - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ResourceDescriptor style. */ + public style: google.api.ResourceDescriptor.Style[]; - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - JOB_STATE_CHANGED = 1, - TASK_STATE_CHANGED = 2 - } - } + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceDescriptor instance + */ + public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; - /** Properties of an AllocationPolicy. */ - interface IAllocationPolicy { + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; - /** AllocationPolicy location */ - location?: (google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy|null); + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; - /** AllocationPolicy instance */ - instance?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null); + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; - /** AllocationPolicy instances */ - instances?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate[]|null); + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; - /** AllocationPolicy instanceTemplates */ - instanceTemplates?: (string[]|null); + /** + * Verifies a ResourceDescriptor 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); - /** AllocationPolicy provisioningModels */ - provisioningModels?: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[]|null); + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; - /** AllocationPolicy serviceAccountEmail */ - serviceAccountEmail?: (string|null); + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @param message ResourceDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** AllocationPolicy serviceAccount */ - serviceAccount?: (google.cloud.batch.v1alpha.IServiceAccount|null); + /** + * Converts this ResourceDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** AllocationPolicy labels */ - labels?: ({ [k: string]: string }|null); + /** + * Gets the default type url for ResourceDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** AllocationPolicy network */ - network?: (google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy|null); - } + namespace ResourceDescriptor { - /** Represents an AllocationPolicy. */ - class AllocationPolicy implements IAllocationPolicy { + /** History enum. */ + enum History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2 + } - /** - * Constructs a new AllocationPolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IAllocationPolicy); + /** Style enum. */ + enum Style { + STYLE_UNSPECIFIED = 0, + DECLARATIVE_FRIENDLY = 1 + } + } - /** AllocationPolicy location. */ - public location?: (google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy|null); + /** Properties of a ResourceReference. */ + interface IResourceReference { - /** AllocationPolicy instance. */ - public instance?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null); + /** ResourceReference type */ + type?: (string|null); - /** AllocationPolicy instances. */ - public instances: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate[]; + /** ResourceReference childType */ + childType?: (string|null); + } - /** AllocationPolicy instanceTemplates. */ - public instanceTemplates: string[]; + /** Represents a ResourceReference. */ + class ResourceReference implements IResourceReference { - /** AllocationPolicy provisioningModels. */ - public provisioningModels: google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[]; + /** + * Constructs a new ResourceReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceReference); - /** AllocationPolicy serviceAccountEmail. */ - public serviceAccountEmail: string; + /** ResourceReference type. */ + public type: string; - /** AllocationPolicy serviceAccount. */ - public serviceAccount?: (google.cloud.batch.v1alpha.IServiceAccount|null); + /** ResourceReference childType. */ + public childType: string; - /** AllocationPolicy labels. */ - public labels: { [k: string]: string }; + /** + * Creates a new ResourceReference instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceReference instance + */ + public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; - /** AllocationPolicy network. */ - public network?: (google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy|null); + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new AllocationPolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns AllocationPolicy instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IAllocationPolicy): google.cloud.batch.v1alpha.AllocationPolicy; + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AllocationPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.verify|verify} messages. - * @param message AllocationPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceReference + * @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.api.ResourceReference; - /** - * Encodes the specified AllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.verify|verify} messages. - * @param message AllocationPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceReference + * @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.api.ResourceReference; - /** - * Decodes an AllocationPolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AllocationPolicy - * @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.batch.v1alpha.AllocationPolicy; + /** + * Verifies a ResourceReference 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); - /** - * Decodes an AllocationPolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AllocationPolicy - * @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.batch.v1alpha.AllocationPolicy; + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceReference + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; - /** - * Verifies an AllocationPolicy 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 plain object from a ResourceReference message. Also converts values to other types if specified. + * @param message ResourceReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an AllocationPolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AllocationPolicy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy; + /** + * Converts this ResourceReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an AllocationPolicy message. Also converts values to other types if specified. - * @param message AllocationPolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ResourceReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Converts this AllocationPolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Namespace protobuf. */ + namespace protobuf { - /** - * Gets the default type url for AllocationPolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { - namespace AllocationPolicy { + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } - /** Properties of a LocationPolicy. */ - interface ILocationPolicy { + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { - /** LocationPolicy allowedLocations */ - allowedLocations?: (string[]|null); + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); - /** LocationPolicy deniedLocations */ - deniedLocations?: (string[]|null); - } + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; - /** Represents a LocationPolicy. */ - class LocationPolicy implements ILocationPolicy { + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; - /** - * Constructs a new LocationPolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy); + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - /** LocationPolicy allowedLocations. */ - public allowedLocations: string[]; + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - /** LocationPolicy deniedLocations. */ - public deniedLocations: string[]; + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; - /** - * Creates a new LocationPolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns LocationPolicy instance - */ - public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy): google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy; + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; - /** - * Encodes the specified LocationPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify|verify} messages. - * @param message LocationPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a FileDescriptorSet 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); - /** - * Encodes the specified LocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify|verify} messages. - * @param message LocationPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; - /** - * Decodes a LocationPolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LocationPolicy - * @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.batch.v1alpha.AllocationPolicy.LocationPolicy; + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a LocationPolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LocationPolicy - * @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.batch.v1alpha.AllocationPolicy.LocationPolicy; + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies a LocationPolicy 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); + /** + * Gets the default type url for FileDescriptorSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a LocationPolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LocationPolicy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy; + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); - /** - * Creates a plain object from a LocationPolicy message. Also converts values to other types if specified. - * @param message LocationPolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileDescriptorProto package */ + "package"?: (string|null); - /** - * Converts this LocationPolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); - /** - * Gets the default type url for LocationPolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); - /** Properties of a Disk. */ - interface IDisk { + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); - /** Disk image */ - image?: (string|null); + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); - /** Disk snapshot */ - snapshot?: (string|null); + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - /** Disk type */ - type?: (string|null); + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); - /** Disk sizeGb */ - sizeGb?: (number|Long|string|null); + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); - /** Disk diskInterface */ - diskInterface?: (string|null); - } + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); - /** Represents a Disk. */ - class Disk implements IDisk { + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - /** - * Constructs a new Disk. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IDisk); + /** FileDescriptorProto syntax */ + syntax?: (string|null); - /** Disk image. */ - public image?: (string|null); + /** FileDescriptorProto edition */ + edition?: (string|null); + } - /** Disk snapshot. */ - public snapshot?: (string|null); + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { - /** Disk type. */ - public type: string; + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); - /** Disk sizeGb. */ - public sizeGb: (number|Long|string); + /** FileDescriptorProto name. */ + public name: string; - /** Disk diskInterface. */ - public diskInterface: string; + /** FileDescriptorProto package. */ + public package: string; - /** Disk dataSource. */ - public dataSource?: ("image"|"snapshot"); + /** FileDescriptorProto dependency. */ + public dependency: string[]; - /** - * Creates a new Disk instance using the specified properties. - * @param [properties] Properties to set - * @returns Disk instance - */ - public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IDisk): google.cloud.batch.v1alpha.AllocationPolicy.Disk; + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; - /** - * Encodes the specified Disk message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify|verify} messages. - * @param message Disk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IDisk, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; - /** - * Encodes the specified Disk message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify|verify} messages. - * @param message Disk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IDisk, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; - /** - * Decodes a Disk message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Disk - * @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.batch.v1alpha.AllocationPolicy.Disk; + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; - /** - * Decodes a Disk message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Disk - * @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.batch.v1alpha.AllocationPolicy.Disk; + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; - /** - * Verifies a Disk 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); + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; - /** - * Creates a Disk message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Disk - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.Disk; + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); - /** - * Creates a plain object from a Disk message. Also converts values to other types if specified. - * @param message Disk - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.Disk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - /** - * Converts this Disk to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FileDescriptorProto syntax. */ + public syntax: string; - /** - * Gets the default type url for Disk - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FileDescriptorProto edition. */ + public edition: string; - /** Properties of an AttachedDisk. */ - interface IAttachedDisk { + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; - /** AttachedDisk newDisk */ - newDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** AttachedDisk existingDisk */ - existingDisk?: (string|null); + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** AttachedDisk deviceName */ - deviceName?: (string|null); - } + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; - /** Represents an AttachedDisk. */ - class AttachedDisk implements IAttachedDisk { + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; - /** - * Constructs a new AttachedDisk. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk); + /** + * Verifies a FileDescriptorProto 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); - /** AttachedDisk newDisk. */ - public newDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; - /** AttachedDisk existingDisk. */ - public existingDisk?: (string|null); + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** AttachedDisk deviceName. */ - public deviceName: string; + /** + * Gets the default type url for FileDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** AttachedDisk attached. */ - public attached?: ("newDisk"|"existingDisk"); + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { - /** - * Creates a new AttachedDisk instance using the specified properties. - * @param [properties] Properties to set - * @returns AttachedDisk instance - */ - public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk): google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk; + /** DescriptorProto name */ + name?: (string|null); - /** - * Encodes the specified AttachedDisk message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify|verify} messages. - * @param message AttachedDisk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); - /** - * Encodes the specified AttachedDisk message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify|verify} messages. - * @param message AttachedDisk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); - /** - * Decodes an AttachedDisk message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AttachedDisk - * @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.batch.v1alpha.AllocationPolicy.AttachedDisk; + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); - /** - * Decodes an AttachedDisk message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AttachedDisk - * @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.batch.v1alpha.AllocationPolicy.AttachedDisk; + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - /** - * Verifies an AttachedDisk 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); + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); - /** - * Creates an AttachedDisk message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AttachedDisk - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk; + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); - /** - * Creates a plain object from an AttachedDisk message. Also converts values to other types if specified. - * @param message AttachedDisk - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); - /** - * Converts this AttachedDisk to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); - /** - * Gets the default type url for AttachedDisk - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } - /** Properties of an Accelerator. */ - interface IAccelerator { + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { - /** Accelerator type */ - type?: (string|null); + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); - /** Accelerator count */ - count?: (number|Long|string|null); + /** DescriptorProto name. */ + public name: string; - /** Accelerator installGpuDrivers */ - installGpuDrivers?: (boolean|null); - } + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; - /** Represents an Accelerator. */ - class Accelerator implements IAccelerator { + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; - /** - * Constructs a new Accelerator. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator); + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; - /** Accelerator type. */ - public type: string; + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; - /** Accelerator count. */ - public count: (number|Long|string); + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; - /** Accelerator installGpuDrivers. */ - public installGpuDrivers: boolean; + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; - /** - * Creates a new Accelerator instance using the specified properties. - * @param [properties] Properties to set - * @returns Accelerator instance - */ - public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator): google.cloud.batch.v1alpha.AllocationPolicy.Accelerator; + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); - /** - * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify|verify} messages. - * @param message Accelerator message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; - /** - * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify|verify} messages. - * @param message Accelerator message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; + /** DescriptorProto reservedName. */ + public reservedName: string[]; - /** - * Decodes an Accelerator message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Accelerator - * @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.batch.v1alpha.AllocationPolicy.Accelerator; + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; - /** - * Decodes an Accelerator message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Accelerator - * @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.batch.v1alpha.AllocationPolicy.Accelerator; + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an Accelerator 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); + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an Accelerator message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Accelerator - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.Accelerator; + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; - /** - * Creates a plain object from an Accelerator message. Also converts values to other types if specified. - * @param message Accelerator - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.Accelerator, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; - /** - * Converts this Accelerator to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a DescriptorProto 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); - /** - * Gets the default type url for Accelerator - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; - /** Properties of an InstancePolicy. */ - interface IInstancePolicy { + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** InstancePolicy allowedMachineTypes */ - allowedMachineTypes?: (string[]|null); + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** InstancePolicy machineType */ - machineType?: (string|null); + /** + * Gets the default type url for DescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** InstancePolicy minCpuPlatform */ - minCpuPlatform?: (string|null); + namespace DescriptorProto { - /** InstancePolicy provisioningModel */ - provisioningModel?: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|null); + /** Properties of an ExtensionRange. */ + interface IExtensionRange { - /** InstancePolicy accelerators */ - accelerators?: (google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator[]|null); + /** ExtensionRange start */ + start?: (number|null); - /** InstancePolicy bootDisk */ - bootDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); + /** ExtensionRange end */ + end?: (number|null); - /** InstancePolicy disks */ - disks?: (google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk[]|null); + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } - /** InstancePolicy reservation */ - reservation?: (string|null); - } + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { - /** Represents an InstancePolicy. */ - class InstancePolicy implements IInstancePolicy { + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); - /** - * Constructs a new InstancePolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy); + /** ExtensionRange start. */ + public start: number; - /** InstancePolicy allowedMachineTypes. */ - public allowedMachineTypes: string[]; + /** ExtensionRange end. */ + public end: number; - /** InstancePolicy machineType. */ - public machineType: string; + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); - /** InstancePolicy minCpuPlatform. */ - public minCpuPlatform: string; + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; - /** InstancePolicy provisioningModel. */ - public provisioningModel: (google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|keyof typeof google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel); + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** InstancePolicy accelerators. */ - public accelerators: google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator[]; + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** InstancePolicy bootDisk. */ - public bootDisk?: (google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null); + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; - /** InstancePolicy disks. */ - public disks: google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk[]; + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; - /** InstancePolicy reservation. */ - public reservation: string; + /** + * Verifies an ExtensionRange 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 new InstancePolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns InstancePolicy instance - */ - public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy; + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; - /** - * Encodes the specified InstancePolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify|verify} messages. - * @param message InstancePolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified InstancePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify|verify} messages. - * @param message InstancePolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes an InstancePolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InstancePolicy - * @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.batch.v1alpha.AllocationPolicy.InstancePolicy; + /** + * Gets the default type url for ExtensionRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes an InstancePolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InstancePolicy - * @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.batch.v1alpha.AllocationPolicy.InstancePolicy; + /** Properties of a ReservedRange. */ + interface IReservedRange { - /** - * Verifies an InstancePolicy 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); + /** ReservedRange start */ + start?: (number|null); - /** - * Creates an InstancePolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InstancePolicy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy; + /** ReservedRange end */ + end?: (number|null); + } - /** - * Creates a plain object from an InstancePolicy message. Also converts values to other types if specified. - * @param message InstancePolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { - /** - * Converts this InstancePolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); - /** - * Gets the default type url for InstancePolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ReservedRange start. */ + public start: number; - /** Properties of an InstancePolicyOrTemplate. */ - interface IInstancePolicyOrTemplate { + /** ReservedRange end. */ + public end: number; - /** InstancePolicyOrTemplate policy */ - policy?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null); + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; - /** InstancePolicyOrTemplate instanceTemplate */ - instanceTemplate?: (string|null); + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** InstancePolicyOrTemplate installGpuDrivers */ - installGpuDrivers?: (boolean|null); - } + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an InstancePolicyOrTemplate. */ - class InstancePolicyOrTemplate implements IInstancePolicyOrTemplate { + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; - /** - * Constructs a new InstancePolicyOrTemplate. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate); + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; - /** InstancePolicyOrTemplate policy. */ - public policy?: (google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null); + /** + * Verifies a ReservedRange 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); - /** InstancePolicyOrTemplate instanceTemplate. */ - public instanceTemplate?: (string|null); + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; - /** InstancePolicyOrTemplate installGpuDrivers. */ - public installGpuDrivers: boolean; + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** InstancePolicyOrTemplate policyTemplate. */ - public policyTemplate?: ("policy"|"instanceTemplate"); + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new InstancePolicyOrTemplate instance using the specified properties. - * @param [properties] Properties to set - * @returns InstancePolicyOrTemplate instance - */ - public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate; + /** + * Gets the default type url for ReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Encodes the specified InstancePolicyOrTemplate message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. - * @param message InstancePolicyOrTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { - /** - * Encodes the specified InstancePolicyOrTemplate message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. - * @param message InstancePolicyOrTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** - * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InstancePolicyOrTemplate - * @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.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate; + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { - /** - * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InstancePolicyOrTemplate - * @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.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate; + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); - /** - * Verifies an InstancePolicyOrTemplate 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); + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** - * Creates an InstancePolicyOrTemplate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InstancePolicyOrTemplate - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate; + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRangeOptions instance + */ + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; - /** - * Creates a plain object from an InstancePolicyOrTemplate message. Also converts values to other types if specified. - * @param message InstancePolicyOrTemplate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this InstancePolicyOrTemplate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for InstancePolicyOrTemplate - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; - /** Properties of a NetworkInterface. */ - interface INetworkInterface { + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; - /** NetworkInterface network */ - network?: (string|null); + /** + * Verifies an ExtensionRangeOptions 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); - /** NetworkInterface subnetwork */ - subnetwork?: (string|null); + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRangeOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; - /** NetworkInterface noExternalIpAddress */ - noExternalIpAddress?: (boolean|null); - } + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a NetworkInterface. */ - class NetworkInterface implements INetworkInterface { + /** + * Converts this ExtensionRangeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new NetworkInterface. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface); + /** + * Gets the default type url for ExtensionRangeOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NetworkInterface network. */ - public network: string; + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { - /** NetworkInterface subnetwork. */ - public subnetwork: string; + /** FieldDescriptorProto name */ + name?: (string|null); - /** NetworkInterface noExternalIpAddress. */ - public noExternalIpAddress: boolean; + /** FieldDescriptorProto number */ + number?: (number|null); - /** - * Creates a new NetworkInterface instance using the specified properties. - * @param [properties] Properties to set - * @returns NetworkInterface instance - */ - public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface): google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface; + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); - /** - * Encodes the specified NetworkInterface message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify|verify} messages. - * @param message NetworkInterface message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); - /** - * Encodes the specified NetworkInterface message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify|verify} messages. - * @param message NetworkInterface message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldDescriptorProto typeName */ + typeName?: (string|null); - /** - * Decodes a NetworkInterface message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NetworkInterface - * @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.batch.v1alpha.AllocationPolicy.NetworkInterface; + /** FieldDescriptorProto extendee */ + extendee?: (string|null); - /** - * Decodes a NetworkInterface message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetworkInterface - * @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.batch.v1alpha.AllocationPolicy.NetworkInterface; + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); - /** - * Verifies a NetworkInterface 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); + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); - /** - * Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NetworkInterface - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface; + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); - /** - * Creates a plain object from a NetworkInterface message. Also converts values to other types if specified. - * @param message NetworkInterface - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); - /** - * Converts this NetworkInterface to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); + } - /** - * Gets the default type url for NetworkInterface - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { - /** Properties of a NetworkPolicy. */ - interface INetworkPolicy { + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); - /** NetworkPolicy networkInterfaces */ - networkInterfaces?: (google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface[]|null); - } + /** FieldDescriptorProto name. */ + public name: string; - /** Represents a NetworkPolicy. */ - class NetworkPolicy implements INetworkPolicy { + /** FieldDescriptorProto number. */ + public number: number; - /** - * Constructs a new NetworkPolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy); + /** FieldDescriptorProto label. */ + public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); - /** NetworkPolicy networkInterfaces. */ - public networkInterfaces: google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface[]; + /** FieldDescriptorProto type. */ + public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); - /** - * Creates a new NetworkPolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns NetworkPolicy instance - */ - public static create(properties?: google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy): google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy; + /** FieldDescriptorProto typeName. */ + public typeName: string; - /** - * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify|verify} messages. - * @param message NetworkPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldDescriptorProto extendee. */ + public extendee: string; - /** - * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify|verify} messages. - * @param message NetworkPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; - /** - * Decodes a NetworkPolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NetworkPolicy - * @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.batch.v1alpha.AllocationPolicy.NetworkPolicy; + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; - /** - * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NetworkPolicy - * @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.batch.v1alpha.AllocationPolicy.NetworkPolicy; + /** FieldDescriptorProto jsonName. */ + public jsonName: string; - /** - * Verifies a NetworkPolicy 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); + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); - /** - * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NetworkPolicy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy; + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; - /** - * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. - * @param message NetworkPolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; - /** - * Converts this NetworkPolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for NetworkPolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** ProvisioningModel enum. */ - enum ProvisioningModel { - PROVISIONING_MODEL_UNSPECIFIED = 0, - STANDARD = 1, - SPOT = 2, - PREEMPTIBLE = 3 - } - } + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; - /** Properties of a TaskGroup. */ - interface ITaskGroup { + /** + * Verifies a FieldDescriptorProto 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); - /** TaskGroup name */ - name?: (string|null); + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; - /** TaskGroup taskSpec */ - taskSpec?: (google.cloud.batch.v1alpha.ITaskSpec|null); + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TaskGroup taskCount */ - taskCount?: (number|Long|string|null); + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TaskGroup parallelism */ - parallelism?: (number|Long|string|null); + /** + * Gets the default type url for FieldDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TaskGroup schedulingPolicy */ - schedulingPolicy?: (google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy|keyof typeof google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy|null); + namespace FieldDescriptorProto { - /** TaskGroup allocationPolicy */ - allocationPolicy?: (google.cloud.batch.v1alpha.IAllocationPolicy|null); + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } - /** TaskGroup labels */ - labels?: ({ [k: string]: string }|null); + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } - /** TaskGroup taskEnvironments */ - taskEnvironments?: (google.cloud.batch.v1alpha.IEnvironment[]|null); + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { - /** TaskGroup taskCountPerNode */ - taskCountPerNode?: (number|Long|string|null); + /** OneofDescriptorProto name */ + name?: (string|null); - /** TaskGroup requireHostsFile */ - requireHostsFile?: (boolean|null); + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } - /** TaskGroup permissiveSsh */ - permissiveSsh?: (boolean|null); - } + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { - /** Represents a TaskGroup. */ - class TaskGroup implements ITaskGroup { + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); - /** - * Constructs a new TaskGroup. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.ITaskGroup); + /** OneofDescriptorProto name. */ + public name: string; - /** TaskGroup name. */ - public name: string; + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); - /** TaskGroup taskSpec. */ - public taskSpec?: (google.cloud.batch.v1alpha.ITaskSpec|null); + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; - /** TaskGroup taskCount. */ - public taskCount: (number|Long|string); + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** TaskGroup parallelism. */ - public parallelism: (number|Long|string); + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** TaskGroup schedulingPolicy. */ - public schedulingPolicy: (google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy|keyof typeof google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy); + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; - /** TaskGroup allocationPolicy. */ - public allocationPolicy?: (google.cloud.batch.v1alpha.IAllocationPolicy|null); + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; - /** TaskGroup labels. */ - public labels: { [k: string]: string }; + /** + * Verifies an OneofDescriptorProto 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); - /** TaskGroup taskEnvironments. */ - public taskEnvironments: google.cloud.batch.v1alpha.IEnvironment[]; + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; - /** TaskGroup taskCountPerNode. */ - public taskCountPerNode: (number|Long|string); + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TaskGroup requireHostsFile. */ - public requireHostsFile: boolean; + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TaskGroup permissiveSsh. */ - public permissiveSsh: boolean; + /** + * Gets the default type url for OneofDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new TaskGroup instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskGroup instance - */ - public static create(properties?: google.cloud.batch.v1alpha.ITaskGroup): google.cloud.batch.v1alpha.TaskGroup; + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { - /** - * Encodes the specified TaskGroup message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskGroup.verify|verify} messages. - * @param message TaskGroup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.ITaskGroup, writer?: $protobuf.Writer): $protobuf.Writer; + /** EnumDescriptorProto name */ + name?: (string|null); - /** - * Encodes the specified TaskGroup message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskGroup.verify|verify} messages. - * @param message TaskGroup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.ITaskGroup, writer?: $protobuf.Writer): $protobuf.Writer; + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); - /** - * Decodes a TaskGroup message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskGroup - * @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.batch.v1alpha.TaskGroup; + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); - /** - * Decodes a TaskGroup message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TaskGroup - * @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.batch.v1alpha.TaskGroup; + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); - /** - * Verifies a TaskGroup 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); + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); + } - /** - * Creates a TaskGroup message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TaskGroup - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.TaskGroup; + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { - /** - * Creates a plain object from a TaskGroup message. Also converts values to other types if specified. - * @param message TaskGroup - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.TaskGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); - /** - * Converts this TaskGroup to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** EnumDescriptorProto name. */ + public name: string; - /** - * Gets the default type url for TaskGroup - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; - namespace TaskGroup { + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); - /** SchedulingPolicy enum. */ - enum SchedulingPolicy { - SCHEDULING_POLICY_UNSPECIFIED = 0, - AS_SOON_AS_POSSIBLE = 1 - } - } + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; - /** Properties of a ServiceAccount. */ - interface IServiceAccount { + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; - /** ServiceAccount email */ - email?: (string|null); + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; - /** ServiceAccount scopes */ - scopes?: (string[]|null); - } + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ServiceAccount. */ - class ServiceAccount implements IServiceAccount { + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new ServiceAccount. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IServiceAccount); + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; - /** ServiceAccount email. */ - public email: string; + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; - /** ServiceAccount scopes. */ - public scopes: string[]; + /** + * Verifies an EnumDescriptorProto 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 new ServiceAccount instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceAccount instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IServiceAccount): google.cloud.batch.v1alpha.ServiceAccount; + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; - /** - * Encodes the specified ServiceAccount message. Does not implicitly {@link google.cloud.batch.v1alpha.ServiceAccount.verify|verify} messages. - * @param message ServiceAccount message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IServiceAccount, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ServiceAccount message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ServiceAccount.verify|verify} messages. - * @param message ServiceAccount message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IServiceAccount, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ServiceAccount message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceAccount - * @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.batch.v1alpha.ServiceAccount; + /** + * Gets the default type url for EnumDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ServiceAccount message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceAccount - * @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.batch.v1alpha.ServiceAccount; + namespace EnumDescriptorProto { - /** - * Verifies a ServiceAccount 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); + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { - /** - * Creates a ServiceAccount message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceAccount - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ServiceAccount; + /** EnumReservedRange start */ + start?: (number|null); - /** - * Creates a plain object from a ServiceAccount message. Also converts values to other types if specified. - * @param message ServiceAccount - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.ServiceAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** EnumReservedRange end */ + end?: (number|null); + } - /** - * Converts this ServiceAccount to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { - /** - * Gets the default type url for ServiceAccount - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new EnumReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); - /** Properties of a ComputeResource. */ - interface IComputeResource { + /** EnumReservedRange start. */ + public start: number; - /** ComputeResource cpuMilli */ - cpuMilli?: (number|Long|string|null); + /** EnumReservedRange end. */ + public end: number; - /** ComputeResource memoryMib */ - memoryMib?: (number|Long|string|null); + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumReservedRange instance + */ + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; - /** ComputeResource gpuCount */ - gpuCount?: (number|Long|string|null); + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** ComputeResource bootDiskMib */ - bootDiskMib?: (number|Long|string|null); - } + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ComputeResource. */ - class ComputeResource implements IComputeResource { + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; - /** - * Constructs a new ComputeResource. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IComputeResource); + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; - /** ComputeResource cpuMilli. */ - public cpuMilli: (number|Long|string); + /** + * Verifies an EnumReservedRange 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); - /** ComputeResource memoryMib. */ - public memoryMib: (number|Long|string); + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; - /** ComputeResource gpuCount. */ - public gpuCount: (number|Long|string); + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ComputeResource bootDiskMib. */ - public bootDiskMib: (number|Long|string); + /** + * Converts this EnumReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new ComputeResource instance using the specified properties. - * @param [properties] Properties to set - * @returns ComputeResource instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IComputeResource): google.cloud.batch.v1alpha.ComputeResource; + /** + * Gets the default type url for EnumReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Encodes the specified ComputeResource message. Does not implicitly {@link google.cloud.batch.v1alpha.ComputeResource.verify|verify} messages. - * @param message ComputeResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IComputeResource, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { - /** - * Encodes the specified ComputeResource message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ComputeResource.verify|verify} messages. - * @param message ComputeResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IComputeResource, writer?: $protobuf.Writer): $protobuf.Writer; + /** EnumValueDescriptorProto name */ + name?: (string|null); - /** - * Decodes a ComputeResource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ComputeResource - * @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.batch.v1alpha.ComputeResource; + /** EnumValueDescriptorProto number */ + number?: (number|null); - /** - * Decodes a ComputeResource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ComputeResource - * @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.batch.v1alpha.ComputeResource; + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } - /** - * Verifies a ComputeResource 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); + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { - /** - * Creates a ComputeResource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ComputeResource - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.ComputeResource; + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - /** - * Creates a plain object from a ComputeResource message. Also converts values to other types if specified. - * @param message ComputeResource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.ComputeResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** EnumValueDescriptorProto name. */ + public name: string; - /** - * Converts this ComputeResource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** EnumValueDescriptorProto number. */ + public number: number; - /** - * Gets the default type url for ComputeResource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); - /** Properties of a StatusEvent. */ - interface IStatusEvent { + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; - /** StatusEvent type */ - type?: (string|null); + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** StatusEvent description */ - description?: (string|null); + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** StatusEvent eventTime */ - eventTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; - /** StatusEvent taskExecution */ - taskExecution?: (google.cloud.batch.v1alpha.ITaskExecution|null); - } + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; - /** Represents a StatusEvent. */ - class StatusEvent implements IStatusEvent { + /** + * Verifies an EnumValueDescriptorProto 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); - /** - * Constructs a new StatusEvent. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IStatusEvent); + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; - /** StatusEvent type. */ - public type: string; + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** StatusEvent description. */ - public description: string; + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** StatusEvent eventTime. */ - public eventTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for EnumValueDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** StatusEvent taskExecution. */ - public taskExecution?: (google.cloud.batch.v1alpha.ITaskExecution|null); + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { - /** - * Creates a new StatusEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns StatusEvent instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IStatusEvent): google.cloud.batch.v1alpha.StatusEvent; + /** ServiceDescriptorProto name */ + name?: (string|null); - /** - * Encodes the specified StatusEvent message. Does not implicitly {@link google.cloud.batch.v1alpha.StatusEvent.verify|verify} messages. - * @param message StatusEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IStatusEvent, writer?: $protobuf.Writer): $protobuf.Writer; + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); - /** - * Encodes the specified StatusEvent message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.StatusEvent.verify|verify} messages. - * @param message StatusEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IStatusEvent, writer?: $protobuf.Writer): $protobuf.Writer; + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } - /** - * Decodes a StatusEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StatusEvent - * @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.batch.v1alpha.StatusEvent; + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { - /** - * Decodes a StatusEvent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StatusEvent - * @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.batch.v1alpha.StatusEvent; + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); - /** - * Verifies a StatusEvent 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); + /** ServiceDescriptorProto name. */ + public name: string; - /** - * Creates a StatusEvent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StatusEvent - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.StatusEvent; + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; - /** - * Creates a plain object from a StatusEvent message. Also converts values to other types if specified. - * @param message StatusEvent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.StatusEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); - /** - * Converts this StatusEvent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; - /** - * Gets the default type url for StatusEvent - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a TaskExecution. */ - interface ITaskExecution { + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** TaskExecution exitCode */ - exitCode?: (number|null); - } + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; - /** Represents a TaskExecution. */ - class TaskExecution implements ITaskExecution { + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; - /** - * Constructs a new TaskExecution. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.ITaskExecution); + /** + * Verifies a ServiceDescriptorProto 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); - /** TaskExecution exitCode. */ - public exitCode: number; + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; - /** - * Creates a new TaskExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecution instance - */ - public static create(properties?: google.cloud.batch.v1alpha.ITaskExecution): google.cloud.batch.v1alpha.TaskExecution; + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskExecution.verify|verify} messages. - * @param message TaskExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified TaskExecution message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskExecution.verify|verify} messages. - * @param message TaskExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ServiceDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecution - * @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.batch.v1alpha.TaskExecution; + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { - /** - * Decodes a TaskExecution message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TaskExecution - * @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.batch.v1alpha.TaskExecution; + /** MethodDescriptorProto name */ + name?: (string|null); - /** - * Verifies a TaskExecution 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); + /** MethodDescriptorProto inputType */ + inputType?: (string|null); - /** - * Creates a TaskExecution message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TaskExecution - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.TaskExecution; + /** MethodDescriptorProto outputType */ + outputType?: (string|null); - /** - * Creates a plain object from a TaskExecution message. Also converts values to other types if specified. - * @param message TaskExecution - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.TaskExecution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); - /** - * Converts this TaskExecution to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); - /** - * Gets the default type url for TaskExecution - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } - /** Properties of a TaskStatus. */ - interface ITaskStatus { + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; - /** TaskStatus state */ - state?: (google.cloud.batch.v1alpha.TaskStatus.State|keyof typeof google.cloud.batch.v1alpha.TaskStatus.State|null); + /** MethodDescriptorProto inputType. */ + public inputType: string; - /** TaskStatus statusEvents */ - statusEvents?: (google.cloud.batch.v1alpha.IStatusEvent[]|null); - } + /** MethodDescriptorProto outputType. */ + public outputType: string; - /** Represents a TaskStatus. */ - class TaskStatus implements ITaskStatus { + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); - /** - * Constructs a new TaskStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.ITaskStatus); + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; - /** TaskStatus state. */ - public state: (google.cloud.batch.v1alpha.TaskStatus.State|keyof typeof google.cloud.batch.v1alpha.TaskStatus.State); + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; - /** TaskStatus statusEvents. */ - public statusEvents: google.cloud.batch.v1alpha.IStatusEvent[]; + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; - /** - * Creates a new TaskStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskStatus instance - */ - public static create(properties?: google.cloud.batch.v1alpha.ITaskStatus): google.cloud.batch.v1alpha.TaskStatus; + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TaskStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskStatus.verify|verify} messages. - * @param message TaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.ITaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TaskStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskStatus.verify|verify} messages. - * @param message TaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.ITaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; - /** - * Decodes a TaskStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskStatus - * @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.batch.v1alpha.TaskStatus; + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; - /** - * Decodes a TaskStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TaskStatus - * @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.batch.v1alpha.TaskStatus; + /** + * Verifies a MethodDescriptorProto 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); - /** - * Verifies a TaskStatus 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; - /** - * Creates a TaskStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TaskStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.TaskStatus; + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a TaskStatus message. Also converts values to other types if specified. - * @param message TaskStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.TaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this TaskStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for MethodDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for TaskStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a FileOptions. */ + interface IFileOptions { - namespace TaskStatus { + /** FileOptions javaPackage */ + javaPackage?: (string|null); - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - ASSIGNED = 2, - RUNNING = 3, - FAILED = 4, - SUCCEEDED = 5 - } - } + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); - /** Properties of a Runnable. */ - interface IRunnable { + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); - /** Runnable container */ - container?: (google.cloud.batch.v1alpha.Runnable.IContainer|null); + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); - /** Runnable script */ - script?: (google.cloud.batch.v1alpha.Runnable.IScript|null); + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); - /** Runnable barrier */ - barrier?: (google.cloud.batch.v1alpha.Runnable.IBarrier|null); + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); - /** Runnable ignoreExitStatus */ - ignoreExitStatus?: (boolean|null); + /** FileOptions goPackage */ + goPackage?: (string|null); - /** Runnable background */ - background?: (boolean|null); + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); - /** Runnable alwaysRun */ - alwaysRun?: (boolean|null); + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); - /** Runnable environment */ - environment?: (google.cloud.batch.v1alpha.IEnvironment|null); + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); - /** Runnable timeout */ - timeout?: (google.protobuf.IDuration|null); + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); - /** Runnable labels */ - labels?: ({ [k: string]: string }|null); - } + /** FileOptions deprecated */ + deprecated?: (boolean|null); - /** Represents a Runnable. */ - class Runnable implements IRunnable { + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); - /** - * Constructs a new Runnable. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IRunnable); + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); - /** Runnable container. */ - public container?: (google.cloud.batch.v1alpha.Runnable.IContainer|null); + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); - /** Runnable script. */ - public script?: (google.cloud.batch.v1alpha.Runnable.IScript|null); + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); - /** Runnable barrier. */ - public barrier?: (google.cloud.batch.v1alpha.Runnable.IBarrier|null); + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); - /** Runnable ignoreExitStatus. */ - public ignoreExitStatus: boolean; + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); - /** Runnable background. */ - public background: boolean; + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); - /** Runnable alwaysRun. */ - public alwaysRun: boolean; + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); - /** Runnable environment. */ - public environment?: (google.cloud.batch.v1alpha.IEnvironment|null); + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** Runnable timeout. */ - public timeout?: (google.protobuf.IDuration|null); + /** FileOptions .google.api.resourceDefinition */ + ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); + } - /** Runnable labels. */ - public labels: { [k: string]: string }; + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { - /** Runnable executable. */ - public executable?: ("container"|"script"|"barrier"); + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); - /** - * Creates a new Runnable instance using the specified properties. - * @param [properties] Properties to set - * @returns Runnable instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IRunnable): google.cloud.batch.v1alpha.Runnable; + /** FileOptions javaPackage. */ + public javaPackage: string; - /** - * Encodes the specified Runnable message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.verify|verify} messages. - * @param message Runnable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IRunnable, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; - /** - * Encodes the specified Runnable message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.verify|verify} messages. - * @param message Runnable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IRunnable, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; - /** - * Decodes a Runnable message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Runnable - * @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.batch.v1alpha.Runnable; + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; - /** - * Decodes a Runnable message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Runnable - * @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.batch.v1alpha.Runnable; + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; - /** - * Verifies a Runnable 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); + /** FileOptions optimizeFor. */ + public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); - /** - * Creates a Runnable message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Runnable - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Runnable; + /** FileOptions goPackage. */ + public goPackage: string; - /** - * Creates a plain object from a Runnable message. Also converts values to other types if specified. - * @param message Runnable - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.Runnable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; - /** - * Converts this Runnable to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; - /** - * Gets the default type url for Runnable - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; - namespace Runnable { + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; - /** Properties of a Container. */ - interface IContainer { + /** FileOptions deprecated. */ + public deprecated: boolean; - /** Container imageUri */ - imageUri?: (string|null); + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; - /** Container commands */ - commands?: (string[]|null); + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; - /** Container entrypoint */ - entrypoint?: (string|null); + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; - /** Container volumes */ - volumes?: (string[]|null); + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; - /** Container options */ - options?: (string|null); + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; - /** Container blockExternalNetwork */ - blockExternalNetwork?: (boolean|null); + /** FileOptions phpNamespace. */ + public phpNamespace: string; - /** Container username */ - username?: (string|null); + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; - /** Container password */ - password?: (string|null); - } + /** FileOptions rubyPackage. */ + public rubyPackage: string; - /** Represents a Container. */ - class Container implements IContainer { + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** - * Constructs a new Container. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.Runnable.IContainer); + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; - /** Container imageUri. */ - public imageUri: string; + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** Container commands. */ - public commands: string[]; + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** Container entrypoint. */ - public entrypoint: string; + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @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.protobuf.FileOptions; - /** Container volumes. */ - public volumes: string[]; + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @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.protobuf.FileOptions; - /** Container options. */ - public options: string; + /** + * Verifies a FileOptions 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); - /** Container blockExternalNetwork. */ - public blockExternalNetwork: boolean; + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; - /** Container username. */ - public username: string; + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Container password. */ - public password: string; + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new Container instance using the specified properties. - * @param [properties] Properties to set - * @returns Container instance - */ - public static create(properties?: google.cloud.batch.v1alpha.Runnable.IContainer): google.cloud.batch.v1alpha.Runnable.Container; + /** + * Gets the default type url for FileOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified Container message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Container.verify|verify} messages. - * @param message Container message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.Runnable.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + namespace FileOptions { - /** - * Encodes the specified Container message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Container.verify|verify} messages. - * @param message Container message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.Runnable.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } - /** - * Decodes a Container message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Container - * @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.batch.v1alpha.Runnable.Container; + /** Properties of a MessageOptions. */ + interface IMessageOptions { - /** - * Decodes a Container message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Container - * @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.batch.v1alpha.Runnable.Container; + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); - /** - * Verifies a Container 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); + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); - /** - * Creates a Container message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Container - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Runnable.Container; + /** MessageOptions deprecated */ + deprecated?: (boolean|null); - /** - * Creates a plain object from a Container message. Also converts values to other types if specified. - * @param message Container - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.Runnable.Container, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); - /** - * Converts this Container to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Gets the default type url for Container - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** MessageOptions .google.api.resource */ + ".google.api.resource"?: (google.api.IResourceDescriptor|null); + } - /** Properties of a Script. */ - interface IScript { + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { - /** Script path */ - path?: (string|null); + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); - /** Script text */ - text?: (string|null); - } + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; - /** Represents a Script. */ - class Script implements IScript { + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; - /** - * Constructs a new Script. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.Runnable.IScript); + /** MessageOptions deprecated. */ + public deprecated: boolean; - /** Script path. */ - public path?: (string|null); + /** MessageOptions mapEntry. */ + public mapEntry: boolean; - /** Script text. */ - public text?: (string|null); + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** Script command. */ - public command?: ("path"|"text"); + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; - /** - * Creates a new Script instance using the specified properties. - * @param [properties] Properties to set - * @returns Script instance - */ - public static create(properties?: google.cloud.batch.v1alpha.Runnable.IScript): google.cloud.batch.v1alpha.Runnable.Script; + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Script message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Script.verify|verify} messages. - * @param message Script message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.Runnable.IScript, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Script message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Script.verify|verify} messages. - * @param message Script message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.Runnable.IScript, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @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.protobuf.MessageOptions; - /** - * Decodes a Script message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Script - * @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.batch.v1alpha.Runnable.Script; + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageOptions + * @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.protobuf.MessageOptions; - /** - * Decodes a Script message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Script - * @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.batch.v1alpha.Runnable.Script; + /** + * Verifies a MessageOptions 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); - /** - * Verifies a Script 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 MessageOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; - /** - * Creates a Script message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Script - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Runnable.Script; + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a Script message. Also converts values to other types if specified. - * @param message Script - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.Runnable.Script, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this Script to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for MessageOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for Script - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a FieldOptions. */ + interface IFieldOptions { - /** Properties of a Barrier. */ - interface IBarrier { + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); - /** Barrier name */ - name?: (string|null); - } + /** FieldOptions packed */ + packed?: (boolean|null); - /** Represents a Barrier. */ - class Barrier implements IBarrier { + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); - /** - * Constructs a new Barrier. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.Runnable.IBarrier); + /** FieldOptions lazy */ + lazy?: (boolean|null); - /** Barrier name. */ - public name: string; + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); - /** - * Creates a new Barrier instance using the specified properties. - * @param [properties] Properties to set - * @returns Barrier instance - */ - public static create(properties?: google.cloud.batch.v1alpha.Runnable.IBarrier): google.cloud.batch.v1alpha.Runnable.Barrier; + /** FieldOptions deprecated */ + deprecated?: (boolean|null); - /** - * Encodes the specified Barrier message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Barrier.verify|verify} messages. - * @param message Barrier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.Runnable.IBarrier, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldOptions weak */ + weak?: (boolean|null); - /** - * Encodes the specified Barrier message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Barrier.verify|verify} messages. - * @param message Barrier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.Runnable.IBarrier, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Decodes a Barrier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Barrier - * @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.batch.v1alpha.Runnable.Barrier; + /** FieldOptions .google.api.fieldBehavior */ + ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); - /** - * Decodes a Barrier message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Barrier - * @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.batch.v1alpha.Runnable.Barrier; + /** FieldOptions .google.api.resourceReference */ + ".google.api.resourceReference"?: (google.api.IResourceReference|null); + } - /** - * Verifies a Barrier 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); + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { - /** - * Creates a Barrier message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Barrier - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Runnable.Barrier; + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); - /** - * Creates a plain object from a Barrier message. Also converts values to other types if specified. - * @param message Barrier - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.Runnable.Barrier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FieldOptions ctype. */ + public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); - /** - * Converts this Barrier to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FieldOptions packed. */ + public packed: boolean; - /** - * Gets the default type url for Barrier - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** FieldOptions jstype. */ + public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); - /** Properties of a TaskSpec. */ - interface ITaskSpec { + /** FieldOptions lazy. */ + public lazy: boolean; - /** TaskSpec runnables */ - runnables?: (google.cloud.batch.v1alpha.IRunnable[]|null); + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; - /** TaskSpec computeResource */ - computeResource?: (google.cloud.batch.v1alpha.IComputeResource|null); + /** FieldOptions deprecated. */ + public deprecated: boolean; - /** TaskSpec maxRunDuration */ - maxRunDuration?: (google.protobuf.IDuration|null); + /** FieldOptions weak. */ + public weak: boolean; - /** TaskSpec maxRetryCount */ - maxRetryCount?: (number|null); + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** TaskSpec lifecyclePolicies */ - lifecyclePolicies?: (google.cloud.batch.v1alpha.ILifecyclePolicy[]|null); + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; - /** TaskSpec environments */ - environments?: ({ [k: string]: string }|null); + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** TaskSpec volumes */ - volumes?: (google.cloud.batch.v1alpha.IVolume[]|null); + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** TaskSpec environment */ - environment?: (google.cloud.batch.v1alpha.IEnvironment|null); - } + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @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.protobuf.FieldOptions; - /** Represents a TaskSpec. */ - class TaskSpec implements ITaskSpec { + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldOptions + * @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.protobuf.FieldOptions; - /** - * Constructs a new TaskSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.ITaskSpec); + /** + * Verifies a FieldOptions 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); - /** TaskSpec runnables. */ - public runnables: google.cloud.batch.v1alpha.IRunnable[]; + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; - /** TaskSpec computeResource. */ - public computeResource?: (google.cloud.batch.v1alpha.IComputeResource|null); + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TaskSpec maxRunDuration. */ - public maxRunDuration?: (google.protobuf.IDuration|null); + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TaskSpec maxRetryCount. */ - public maxRetryCount: number; + /** + * Gets the default type url for FieldOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TaskSpec lifecyclePolicies. */ - public lifecyclePolicies: google.cloud.batch.v1alpha.ILifecyclePolicy[]; + namespace FieldOptions { - /** TaskSpec environments. */ - public environments: { [k: string]: string }; + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } - /** TaskSpec volumes. */ - public volumes: google.cloud.batch.v1alpha.IVolume[]; + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } - /** TaskSpec environment. */ - public environment?: (google.cloud.batch.v1alpha.IEnvironment|null); + /** Properties of an OneofOptions. */ + interface IOneofOptions { - /** - * Creates a new TaskSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskSpec instance - */ - public static create(properties?: google.cloud.batch.v1alpha.ITaskSpec): google.cloud.batch.v1alpha.TaskSpec; + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** - * Encodes the specified TaskSpec message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskSpec.verify|verify} messages. - * @param message TaskSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { - /** - * Encodes the specified TaskSpec message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskSpec.verify|verify} messages. - * @param message TaskSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); - /** - * Decodes a TaskSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskSpec - * @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.batch.v1alpha.TaskSpec; + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** - * Decodes a TaskSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TaskSpec - * @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.batch.v1alpha.TaskSpec; + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; - /** - * Verifies a TaskSpec 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); + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a TaskSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TaskSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.TaskSpec; + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a TaskSpec message. Also converts values to other types if specified. - * @param message TaskSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.TaskSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @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.protobuf.OneofOptions; - /** - * Converts this TaskSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @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.protobuf.OneofOptions; - /** - * Gets the default type url for TaskSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies an OneofOptions 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); - /** Properties of a LifecyclePolicy. */ - interface ILifecyclePolicy { + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; - /** LifecyclePolicy action */ - action?: (google.cloud.batch.v1alpha.LifecyclePolicy.Action|keyof typeof google.cloud.batch.v1alpha.LifecyclePolicy.Action|null); + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** LifecyclePolicy actionCondition */ - actionCondition?: (google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition|null); - } + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a LifecyclePolicy. */ - class LifecyclePolicy implements ILifecyclePolicy { + /** + * Gets the default type url for OneofOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new LifecyclePolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.ILifecyclePolicy); + /** Properties of an EnumOptions. */ + interface IEnumOptions { - /** LifecyclePolicy action. */ - public action: (google.cloud.batch.v1alpha.LifecyclePolicy.Action|keyof typeof google.cloud.batch.v1alpha.LifecyclePolicy.Action); + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); - /** LifecyclePolicy actionCondition. */ - public actionCondition?: (google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition|null); + /** EnumOptions deprecated */ + deprecated?: (boolean|null); - /** - * Creates a new LifecyclePolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns LifecyclePolicy instance - */ - public static create(properties?: google.cloud.batch.v1alpha.ILifecyclePolicy): google.cloud.batch.v1alpha.LifecyclePolicy; + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** - * Encodes the specified LifecyclePolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.verify|verify} messages. - * @param message LifecyclePolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.ILifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { - /** - * Encodes the specified LifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.verify|verify} messages. - * @param message LifecyclePolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.ILifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); - /** - * Decodes a LifecyclePolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LifecyclePolicy - * @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.batch.v1alpha.LifecyclePolicy; + /** EnumOptions allowAlias. */ + public allowAlias: boolean; - /** - * Decodes a LifecyclePolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LifecyclePolicy - * @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.batch.v1alpha.LifecyclePolicy; + /** EnumOptions deprecated. */ + public deprecated: boolean; - /** - * Verifies a LifecyclePolicy 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); + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** - * Creates a LifecyclePolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LifecyclePolicy - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.LifecyclePolicy; + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; - /** - * Creates a plain object from a LifecyclePolicy message. Also converts values to other types if specified. - * @param message LifecyclePolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.LifecyclePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this LifecyclePolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for LifecyclePolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @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.protobuf.EnumOptions; - namespace LifecyclePolicy { + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumOptions + * @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.protobuf.EnumOptions; - /** Properties of an ActionCondition. */ - interface IActionCondition { + /** + * Verifies an EnumOptions 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); - /** ActionCondition exitCodes */ - exitCodes?: (number[]|null); - } + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; - /** Represents an ActionCondition. */ - class ActionCondition implements IActionCondition { + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ActionCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition); + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ActionCondition exitCodes. */ - public exitCodes: number[]; + /** + * Gets the default type url for EnumOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new ActionCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns ActionCondition instance - */ - public static create(properties?: google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition): google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition; + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { - /** - * Encodes the specified ActionCondition message. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify|verify} messages. - * @param message ActionCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); - /** - * Encodes the specified ActionCondition message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify|verify} messages. - * @param message ActionCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** - * Decodes an ActionCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ActionCondition - * @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.batch.v1alpha.LifecyclePolicy.ActionCondition; + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { - /** - * Decodes an ActionCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ActionCondition - * @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.batch.v1alpha.LifecyclePolicy.ActionCondition; + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); - /** - * Verifies an ActionCondition 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); + /** EnumValueOptions deprecated. */ + public deprecated: boolean; - /** - * Creates an ActionCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ActionCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition; + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** - * Creates a plain object from an ActionCondition message. Also converts values to other types if specified. - * @param message ActionCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; - /** - * Converts this ActionCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ActionCondition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** Action enum. */ - enum Action { - ACTION_UNSPECIFIED = 0, - RETRY_TASK = 1, - FAIL_TASK = 2 - } - } + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; - /** Properties of a Task. */ - interface ITask { + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; - /** Task name */ - name?: (string|null); + /** + * Verifies an EnumValueOptions 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); - /** Task status */ - status?: (google.cloud.batch.v1alpha.ITaskStatus|null); - } + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; - /** Represents a Task. */ - class Task implements ITask { + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new Task. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.ITask); + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Task name. */ - public name: string; + /** + * Gets the default type url for EnumValueOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Task status. */ - public status?: (google.cloud.batch.v1alpha.ITaskStatus|null); + /** Properties of a ServiceOptions. */ + interface IServiceOptions { - /** - * Creates a new Task instance using the specified properties. - * @param [properties] Properties to set - * @returns Task instance - */ - public static create(properties?: google.cloud.batch.v1alpha.ITask): google.cloud.batch.v1alpha.Task; + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); - /** - * Encodes the specified Task message. Does not implicitly {@link google.cloud.batch.v1alpha.Task.verify|verify} messages. - * @param message Task message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.ITask, writer?: $protobuf.Writer): $protobuf.Writer; + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Encodes the specified Task message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Task.verify|verify} messages. - * @param message Task message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.ITask, writer?: $protobuf.Writer): $protobuf.Writer; + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); - /** - * Decodes a Task message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Task - * @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.batch.v1alpha.Task; + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); + } - /** - * Decodes a Task message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Task - * @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.batch.v1alpha.Task; + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { - /** - * Verifies a Task 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); + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); - /** - * Creates a Task message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Task - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Task; + /** ServiceOptions deprecated. */ + public deprecated: boolean; - /** - * Creates a plain object from a Task message. Also converts values to other types if specified. - * @param message Task - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.Task, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** - * Converts this Task to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; - /** - * Gets the default type url for Task - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an Environment. */ - interface IEnvironment { + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** Environment variables */ - variables?: ({ [k: string]: string }|null); + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; - /** Environment secretVariables */ - secretVariables?: ({ [k: string]: string }|null); + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; - /** Environment encryptedVariables */ - encryptedVariables?: (google.cloud.batch.v1alpha.Environment.IKMSEnvMap|null); - } + /** + * Verifies a ServiceOptions 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); - /** Represents an Environment. */ - class Environment implements IEnvironment { + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; - /** - * Constructs a new Environment. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IEnvironment); + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Environment variables. */ - public variables: { [k: string]: string }; + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Environment secretVariables. */ - public secretVariables: { [k: string]: string }; + /** + * Gets the default type url for ServiceOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Environment encryptedVariables. */ - public encryptedVariables?: (google.cloud.batch.v1alpha.Environment.IKMSEnvMap|null); + /** Properties of a MethodOptions. */ + interface IMethodOptions { - /** - * Creates a new Environment instance using the specified properties. - * @param [properties] Properties to set - * @returns Environment instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IEnvironment): google.cloud.batch.v1alpha.Environment; + /** MethodOptions deprecated */ + deprecated?: (boolean|null); - /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); - /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Decodes an Environment message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Environment - * @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.batch.v1alpha.Environment; + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); - /** - * Decodes an Environment message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Environment - * @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.batch.v1alpha.Environment; + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); - /** - * Verifies an Environment 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); + /** MethodOptions .google.longrunning.operationInfo */ + ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null); + } - /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Environment - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Environment; + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { - /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @param message Environment - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); - /** - * Converts this Environment to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** MethodOptions deprecated. */ + public deprecated: boolean; - /** - * Gets the default type url for Environment - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); - namespace Environment { + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** Properties of a KMSEnvMap. */ - interface IKMSEnvMap { + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; - /** KMSEnvMap keyName */ - keyName?: (string|null); + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** KMSEnvMap cipherText */ - cipherText?: (string|null); - } + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a KMSEnvMap. */ - class KMSEnvMap implements IKMSEnvMap { + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @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.protobuf.MethodOptions; - /** - * Constructs a new KMSEnvMap. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.Environment.IKMSEnvMap); + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @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.protobuf.MethodOptions; - /** KMSEnvMap keyName. */ - public keyName: string; + /** + * Verifies a MethodOptions 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); - /** KMSEnvMap cipherText. */ - public cipherText: string; + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; - /** - * Creates a new KMSEnvMap instance using the specified properties. - * @param [properties] Properties to set - * @returns KMSEnvMap instance - */ - public static create(properties?: google.cloud.batch.v1alpha.Environment.IKMSEnvMap): google.cloud.batch.v1alpha.Environment.KMSEnvMap; + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified KMSEnvMap message. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify|verify} messages. - * @param message KMSEnvMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.Environment.IKMSEnvMap, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified KMSEnvMap message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify|verify} messages. - * @param message KMSEnvMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.Environment.IKMSEnvMap, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for MethodOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a KMSEnvMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KMSEnvMap - * @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.batch.v1alpha.Environment.KMSEnvMap; + namespace MethodOptions { - /** - * Decodes a KMSEnvMap message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KMSEnvMap - * @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.batch.v1alpha.Environment.KMSEnvMap; + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } - /** - * Verifies a KMSEnvMap 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); + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { - /** - * Creates a KMSEnvMap message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KMSEnvMap - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Environment.KMSEnvMap; + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - /** - * Creates a plain object from a KMSEnvMap message. Also converts values to other types if specified. - * @param message KMSEnvMap - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.Environment.KMSEnvMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); - /** - * Converts this KMSEnvMap to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|string|null); - /** - * Gets the default type url for KMSEnvMap - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|string|null); - /** Properties of a Volume. */ - interface IVolume { + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); - /** Volume nfs */ - nfs?: (google.cloud.batch.v1alpha.INFS|null); + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|string|null); - /** Volume pd */ - pd?: (google.cloud.batch.v1alpha.IPD|null); + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } - /** Volume gcs */ - gcs?: (google.cloud.batch.v1alpha.IGCS|null); + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { - /** Volume deviceName */ - deviceName?: (string|null); + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); - /** Volume mountPath */ - mountPath?: (string|null); + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; - /** Volume mountOptions */ - mountOptions?: (string[]|null); - } + /** UninterpretedOption identifierValue. */ + public identifierValue: string; - /** Represents a Volume. */ - class Volume implements IVolume { + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long|string); - /** - * Constructs a new Volume. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IVolume); + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long|string); - /** Volume nfs. */ - public nfs?: (google.cloud.batch.v1alpha.INFS|null); + /** UninterpretedOption doubleValue. */ + public doubleValue: number; - /** Volume pd. */ - public pd?: (google.cloud.batch.v1alpha.IPD|null); + /** UninterpretedOption stringValue. */ + public stringValue: (Uint8Array|string); - /** Volume gcs. */ - public gcs?: (google.cloud.batch.v1alpha.IGCS|null); + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; - /** Volume deviceName. */ - public deviceName?: (string|null); + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - /** Volume mountPath. */ - public mountPath: string; + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - /** Volume mountOptions. */ - public mountOptions: string[]; + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; - /** Volume source. */ - public source?: ("nfs"|"pd"|"gcs"|"deviceName"); + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; - /** - * Creates a new Volume instance using the specified properties. - * @param [properties] Properties to set - * @returns Volume instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IVolume): google.cloud.batch.v1alpha.Volume; + /** + * Verifies an UninterpretedOption 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); - /** - * Encodes the specified Volume message. Does not implicitly {@link google.cloud.batch.v1alpha.Volume.verify|verify} messages. - * @param message Volume message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; - /** - * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Volume.verify|verify} messages. - * @param message Volume message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IVolume, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a Volume message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Volume - * @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.batch.v1alpha.Volume; + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a Volume message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Volume - * @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.batch.v1alpha.Volume; + /** + * Gets the default type url for UninterpretedOption + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a Volume 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); + namespace UninterpretedOption { - /** - * Creates a Volume message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Volume - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.Volume; + /** Properties of a NamePart. */ + interface INamePart { - /** - * Creates a plain object from a Volume message. Also converts values to other types if specified. - * @param message Volume - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.Volume, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NamePart namePart */ + namePart: string; - /** - * Converts this Volume to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** NamePart isExtension */ + isExtension: boolean; + } - /** - * Gets the default type url for Volume - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a NamePart. */ + class NamePart implements INamePart { - /** Properties of a NFS. */ - interface INFS { + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - /** NFS server */ - server?: (string|null); + /** NamePart namePart. */ + public namePart: string; - /** NFS remotePath */ - remotePath?: (string|null); - } + /** NamePart isExtension. */ + public isExtension: boolean; - /** Represents a NFS. */ - class NFS implements INFS { + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; - /** - * Constructs a new NFS. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.INFS); + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - /** NFS server. */ - public server: string; + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - /** NFS remotePath. */ - public remotePath: string; + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; - /** - * Creates a new NFS instance using the specified properties. - * @param [properties] Properties to set - * @returns NFS instance - */ - public static create(properties?: google.cloud.batch.v1alpha.INFS): google.cloud.batch.v1alpha.NFS; + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; - /** - * Encodes the specified NFS message. Does not implicitly {@link google.cloud.batch.v1alpha.NFS.verify|verify} messages. - * @param message NFS message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.INFS, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a NamePart 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); - /** - * Encodes the specified NFS message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.NFS.verify|verify} messages. - * @param message NFS message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.INFS, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; - /** - * Decodes a NFS message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NFS - * @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.batch.v1alpha.NFS; + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a NFS message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NFS - * @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.batch.v1alpha.NFS; + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies a NFS 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); + /** + * Gets the default type url for NamePart + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Creates a NFS message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NFS - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.NFS; + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { - /** - * Creates a plain object from a NFS message. Also converts values to other types if specified. - * @param message NFS - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.NFS, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } - /** - * Converts this NFS to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { - /** - * Gets the default type url for NFS - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); - /** Properties of a PD. */ - interface IPD { + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; - /** PD disk */ - disk?: (string|null); + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; - /** PD device */ - device?: (string|null); + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** PD existing */ - existing?: (boolean|null); - } + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a PD. */ - class PD implements IPD { + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; - /** - * Constructs a new PD. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IPD); + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; - /** PD disk. */ - public disk: string; + /** + * Verifies a SourceCodeInfo 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); - /** PD device. */ - public device: string; + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; - /** PD existing. */ - public existing: boolean; + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new PD instance using the specified properties. - * @param [properties] Properties to set - * @returns PD instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IPD): google.cloud.batch.v1alpha.PD; + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified PD message. Does not implicitly {@link google.cloud.batch.v1alpha.PD.verify|verify} messages. - * @param message PD message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IPD, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for SourceCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified PD message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.PD.verify|verify} messages. - * @param message PD message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IPD, writer?: $protobuf.Writer): $protobuf.Writer; + namespace SourceCodeInfo { - /** - * Decodes a PD message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PD - * @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.batch.v1alpha.PD; + /** Properties of a Location. */ + interface ILocation { - /** - * Decodes a PD message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PD - * @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.batch.v1alpha.PD; + /** Location path */ + path?: (number[]|null); - /** - * Verifies a PD 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); + /** Location span */ + span?: (number[]|null); - /** - * Creates a PD message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PD - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.PD; + /** Location leadingComments */ + leadingComments?: (string|null); - /** - * Creates a plain object from a PD message. Also converts values to other types if specified. - * @param message PD - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.PD, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Location trailingComments */ + trailingComments?: (string|null); - /** - * Converts this PD to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } - /** - * Gets the default type url for PD - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a Location. */ + class Location implements ILocation { - /** Properties of a GCS. */ - interface IGCS { + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); - /** GCS remotePath */ - remotePath?: (string|null); - } + /** Location path. */ + public path: number[]; - /** Represents a GCS. */ - class GCS implements IGCS { + /** Location span. */ + public span: number[]; - /** - * Constructs a new GCS. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.batch.v1alpha.IGCS); + /** Location leadingComments. */ + public leadingComments: string; - /** GCS remotePath. */ - public remotePath: string; + /** Location trailingComments. */ + public trailingComments: string; - /** - * Creates a new GCS instance using the specified properties. - * @param [properties] Properties to set - * @returns GCS instance - */ - public static create(properties?: google.cloud.batch.v1alpha.IGCS): google.cloud.batch.v1alpha.GCS; + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; - /** - * Encodes the specified GCS message. Does not implicitly {@link google.cloud.batch.v1alpha.GCS.verify|verify} messages. - * @param message GCS message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.batch.v1alpha.IGCS, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; - /** - * Encodes the specified GCS message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GCS.verify|verify} messages. - * @param message GCS message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.batch.v1alpha.IGCS, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a GCS message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GCS - * @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.batch.v1alpha.GCS; + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a GCS message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GCS - * @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.batch.v1alpha.GCS; + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; - /** - * Verifies a GCS 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); + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; - /** - * Creates a GCS message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GCS - */ - public static fromObject(object: { [k: string]: any }): google.cloud.batch.v1alpha.GCS; + /** + * Verifies a Location 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 plain object from a GCS message. Also converts values to other types if specified. - * @param message GCS - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.batch.v1alpha.GCS, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; - /** - * Converts this GCS to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for GCS - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } - } - - /** Namespace api. */ - namespace api { - - /** Properties of a Http. */ - interface IHttp { - /** Http rules */ - rules?: (google.api.IHttpRule[]|null); + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { - /** Http fullyDecodeReservedExpansion */ - fullyDecodeReservedExpansion?: (boolean|null); + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); } - /** Represents a Http. */ - class Http implements IHttp { + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { /** - * Constructs a new Http. + * Constructs a new GeneratedCodeInfo. * @param [properties] Properties to set */ - constructor(properties?: google.api.IHttp); - - /** Http rules. */ - public rules: google.api.IHttpRule[]; + constructor(properties?: google.protobuf.IGeneratedCodeInfo); - /** Http fullyDecodeReservedExpansion. */ - public fullyDecodeReservedExpansion: boolean; + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; /** - * Creates a new Http instance using the specified properties. + * Creates a new GeneratedCodeInfo instance using the specified properties. * @param [properties] Properties to set - * @returns Http instance + * @returns GeneratedCodeInfo instance */ - public static create(properties?: google.api.IHttp): google.api.Http; + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Http message from the specified reader or buffer. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Http + * @returns GeneratedCodeInfo * @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.api.Http; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; /** - * Decodes a Http message from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Http + * @returns GeneratedCodeInfo * @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.api.Http; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; /** - * Verifies a Http message. + * Verifies a GeneratedCodeInfo 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 Http message from a plain object. Also converts values to their respective internal types. + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Http + * @returns GeneratedCodeInfo */ - public static fromObject(object: { [k: string]: any }): google.api.Http; + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @param message Http + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); - /** - * Converts this Http to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Annotation semantic */ + semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); + } - /** - * Gets the default type url for Http - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents an Annotation. */ + class Annotation implements IAnnotation { - /** Properties of a HttpRule. */ - interface IHttpRule { + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); - /** HttpRule selector */ - selector?: (string|null); + /** Annotation path. */ + public path: number[]; - /** HttpRule get */ - get?: (string|null); + /** Annotation sourceFile. */ + public sourceFile: string; - /** HttpRule put */ - put?: (string|null); + /** Annotation begin. */ + public begin: number; - /** HttpRule post */ - post?: (string|null); + /** Annotation end. */ + public end: number; - /** HttpRule delete */ - "delete"?: (string|null); + /** Annotation semantic. */ + public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic); - /** HttpRule patch */ - patch?: (string|null); + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; - /** HttpRule custom */ - custom?: (google.api.ICustomHttpPattern|null); + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** HttpRule body */ - body?: (string|null); + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** HttpRule responseBody */ - responseBody?: (string|null); + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; - /** HttpRule additionalBindings */ - additionalBindings?: (google.api.IHttpRule[]|null); - } + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { + /** + * Verifies an Annotation 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); - /** - * Constructs a new HttpRule. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttpRule); + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; - /** HttpRule selector. */ - public selector: string; + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** HttpRule get. */ - public get?: (string|null); + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** HttpRule put. */ - public put?: (string|null); + /** + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** HttpRule post. */ - public post?: (string|null); + namespace Annotation { - /** HttpRule delete. */ - public delete?: (string|null); + /** Semantic enum. */ + enum Semantic { + NONE = 0, + SET = 1, + ALIAS = 2 + } + } + } - /** HttpRule patch. */ - public patch?: (string|null); + /** Properties of a Duration. */ + interface IDuration { - /** HttpRule custom. */ - public custom?: (google.api.ICustomHttpPattern|null); + /** Duration seconds */ + seconds?: (number|Long|string|null); - /** HttpRule body. */ - public body: string; + /** Duration nanos */ + nanos?: (number|null); + } - /** HttpRule responseBody. */ - public responseBody: string; + /** Represents a Duration. */ + class Duration implements IDuration { - /** HttpRule additionalBindings. */ - public additionalBindings: google.api.IHttpRule[]; + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); - /** HttpRule pattern. */ - public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + /** Duration seconds. */ + public seconds: (number|Long|string); + + /** Duration nanos. */ + public nanos: number; /** - * Creates a new HttpRule instance using the specified properties. + * Creates a new Duration instance using the specified properties. * @param [properties] Properties to set - * @returns HttpRule instance + * @returns Duration instance */ - public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HttpRule message from the specified reader or buffer. + * Decodes a Duration message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HttpRule + * @returns Duration * @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.api.HttpRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HttpRule + * @returns Duration * @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.api.HttpRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; /** - * Verifies a HttpRule message. + * Verifies a Duration 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 HttpRule message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HttpRule + * @returns Duration */ - public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @param message HttpRule + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HttpRule to JSON. + * Converts this Duration to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HttpRule + * Gets the default type url for Duration * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { + /** Properties of a Timestamp. */ + interface ITimestamp { - /** CustomHttpPattern kind */ - kind?: (string|null); + /** Timestamp seconds */ + seconds?: (number|Long|string|null); - /** CustomHttpPattern path */ - path?: (string|null); + /** Timestamp nanos */ + nanos?: (number|null); } - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { /** - * Constructs a new CustomHttpPattern. + * Constructs a new Timestamp. * @param [properties] Properties to set */ - constructor(properties?: google.api.ICustomHttpPattern); + constructor(properties?: google.protobuf.ITimestamp); - /** CustomHttpPattern kind. */ - public kind: string; + /** Timestamp seconds. */ + public seconds: (number|Long|string); - /** CustomHttpPattern path. */ - public path: string; + /** Timestamp nanos. */ + public nanos: number; /** - * Creates a new CustomHttpPattern instance using the specified properties. + * Creates a new Timestamp instance using the specified properties. * @param [properties] Properties to set - * @returns CustomHttpPattern instance + * @returns Timestamp instance */ - public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * Decodes a Timestamp message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomHttpPattern + * @returns Timestamp * @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.api.CustomHttpPattern; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomHttpPattern + * @returns Timestamp * @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.api.CustomHttpPattern; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp; /** - * Verifies a CustomHttpPattern message. + * Verifies a Timestamp 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomHttpPattern + * @returns Timestamp */ - public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @param message CustomHttpPattern + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomHttpPattern to JSON. + * Converts this Timestamp to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomHttpPattern + * Gets the default type url for Timestamp * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** FieldBehavior enum. */ - enum FieldBehavior { - FIELD_BEHAVIOR_UNSPECIFIED = 0, - OPTIONAL = 1, - REQUIRED = 2, - OUTPUT_ONLY = 3, - INPUT_ONLY = 4, - IMMUTABLE = 5, - UNORDERED_LIST = 6, - NON_EMPTY_DEFAULT = 7 - } - - /** Properties of a ResourceDescriptor. */ - interface IResourceDescriptor { - - /** ResourceDescriptor type */ - type?: (string|null); - - /** ResourceDescriptor pattern */ - pattern?: (string[]|null); - - /** ResourceDescriptor nameField */ - nameField?: (string|null); - - /** ResourceDescriptor history */ - history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); - - /** ResourceDescriptor plural */ - plural?: (string|null); + /** Properties of an Any. */ + interface IAny { - /** ResourceDescriptor singular */ - singular?: (string|null); + /** Any type_url */ + type_url?: (string|null); - /** ResourceDescriptor style */ - style?: (google.api.ResourceDescriptor.Style[]|null); + /** Any value */ + value?: (Uint8Array|string|null); } - /** Represents a ResourceDescriptor. */ - class ResourceDescriptor implements IResourceDescriptor { + /** Represents an Any. */ + class Any implements IAny { /** - * Constructs a new ResourceDescriptor. + * Constructs a new Any. * @param [properties] Properties to set */ - constructor(properties?: google.api.IResourceDescriptor); - - /** ResourceDescriptor type. */ - public type: string; - - /** ResourceDescriptor pattern. */ - public pattern: string[]; - - /** ResourceDescriptor nameField. */ - public nameField: string; - - /** ResourceDescriptor history. */ - public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History); - - /** ResourceDescriptor plural. */ - public plural: string; + constructor(properties?: google.protobuf.IAny); - /** ResourceDescriptor singular. */ - public singular: string; + /** Any type_url. */ + public type_url: string; - /** ResourceDescriptor style. */ - public style: google.api.ResourceDescriptor.Style[]; + /** Any value. */ + public value: (Uint8Array|string); /** - * Creates a new ResourceDescriptor instance using the specified properties. + * Creates a new Any instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceDescriptor instance + * @returns Any instance */ - public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; /** - * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. - * @param message ResourceDescriptor message or plain object to encode + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. - * @param message ResourceDescriptor message or plain object to encode + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer. + * Decodes an Any message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourceDescriptor + * @returns Any * @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.api.ResourceDescriptor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceDescriptor + * @returns Any * @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.api.ResourceDescriptor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; /** - * Verifies a ResourceDescriptor message. + * Verifies an Any 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceDescriptor + * @returns Any */ - public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; /** - * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. - * @param message ResourceDescriptor + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceDescriptor to JSON. + * Converts this Any to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourceDescriptor + * Gets the default type url for Any * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ResourceDescriptor { - - /** History enum. */ - enum History { - HISTORY_UNSPECIFIED = 0, - ORIGINALLY_SINGLE_PATTERN = 1, - FUTURE_MULTI_PATTERN = 2 - } - - /** Style enum. */ - enum Style { - STYLE_UNSPECIFIED = 0, - DECLARATIVE_FRIENDLY = 1 - } - } - - /** Properties of a ResourceReference. */ - interface IResourceReference { - - /** ResourceReference type */ - type?: (string|null); - - /** ResourceReference childType */ - childType?: (string|null); + /** Properties of an Empty. */ + interface IEmpty { } - /** Represents a ResourceReference. */ - class ResourceReference implements IResourceReference { + /** Represents an Empty. */ + class Empty implements IEmpty { /** - * Constructs a new ResourceReference. + * Constructs a new Empty. * @param [properties] Properties to set */ - constructor(properties?: google.api.IResourceReference); - - /** ResourceReference type. */ - public type: string; - - /** ResourceReference childType. */ - public childType: string; + constructor(properties?: google.protobuf.IEmpty); /** - * Creates a new ResourceReference instance using the specified properties. + * Creates a new Empty instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceReference instance + * @returns Empty instance */ - public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; + public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; /** - * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. - * @param message ResourceReference message or plain object to encode + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. - * @param message ResourceReference message or plain object to encode + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceReference message from the specified reader or buffer. + * Decodes an Empty message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourceReference + * @returns Empty * @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.api.ResourceReference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty; /** - * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * Decodes an Empty message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceReference + * @returns Empty * @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.api.ResourceReference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty; /** - * Verifies a ResourceReference message. + * Verifies an Empty 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 ResourceReference message from a plain object. Also converts values to their respective internal types. + * Creates an Empty message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceReference + * @returns Empty */ - public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; + public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; /** - * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. - * @param message ResourceReference + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @param message Empty * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceReference to JSON. + * Converts this Empty to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourceReference + * Gets the default type url for Empty * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ diff --git a/packages/google-cloud-batch/protos/protos.js b/packages/google-cloud-batch/protos/protos.js index cf1193ac83b9..f5fdd35be334 100644 --- a/packages/google-cloud-batch/protos/protos.js +++ b/packages/google-cloud-batch/protos/protos.js @@ -39,10592 +39,9235 @@ */ var google = {}; - google.protobuf = (function() { + google.cloud = (function() { /** - * Namespace protobuf. + * Namespace cloud. * @memberof google * @namespace */ - var protobuf = {}; - - protobuf.Empty = (function() { + var cloud = {}; - /** - * Properties of an Empty. - * @memberof google.protobuf - * @interface IEmpty - */ + cloud.batch = (function() { /** - * Constructs a new Empty. - * @memberof google.protobuf - * @classdesc Represents an Empty. - * @implements IEmpty - * @constructor - * @param {google.protobuf.IEmpty=} [properties] Properties to set + * Namespace batch. + * @memberof google.cloud + * @namespace */ - function Empty(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]]; - } + var batch = {}; - /** - * Creates a new Empty instance using the specified properties. - * @function create - * @memberof google.protobuf.Empty - * @static - * @param {google.protobuf.IEmpty=} [properties] Properties to set - * @returns {google.protobuf.Empty} Empty instance - */ - Empty.create = function create(properties) { - return new Empty(properties); - }; + batch.v1 = (function() { - /** - * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Empty - * @static - * @param {google.protobuf.IEmpty} message Empty message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Empty.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Namespace v1. + * @memberof google.cloud.batch + * @namespace + */ + var v1 = {}; - /** - * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Empty - * @static - * @param {google.protobuf.IEmpty} message Empty message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Empty.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v1.BatchService = (function() { - /** - * Decodes an Empty message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Empty - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Empty} Empty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Empty.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * Constructs a new BatchService service. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a BatchService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function BatchService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - } - return message; - }; - /** - * Decodes an Empty message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Empty - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Empty} Empty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Empty.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + (BatchService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = BatchService; - /** - * Verifies an Empty message. - * @function verify - * @memberof google.protobuf.Empty - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Empty.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Creates new BatchService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.batch.v1.BatchService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {BatchService} RPC service. Useful where requests and/or responses are streamed. + */ + BatchService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Creates an Empty message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Empty - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Empty} Empty - */ - Empty.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Empty) - return object; - return new $root.google.protobuf.Empty(); - }; + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|createJob}. + * @memberof google.cloud.batch.v1.BatchService + * @typedef CreateJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1.Job} [response] Job + */ - /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Empty - * @static - * @param {google.protobuf.Empty} message Empty - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Empty.toObject = function toObject() { - return {}; - }; + /** + * Calls CreateJob. + * @function createJob + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.ICreateJobRequest} request CreateJobRequest message or plain object + * @param {google.cloud.batch.v1.BatchService.CreateJobCallback} callback Node-style callback called with the error, if any, and Job + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.createJob = function createJob(request, callback) { + return this.rpcCall(createJob, $root.google.cloud.batch.v1.CreateJobRequest, $root.google.cloud.batch.v1.Job, request, callback); + }, "name", { value: "CreateJob" }); - /** - * Converts this Empty to JSON. - * @function toJSON - * @memberof google.protobuf.Empty - * @instance - * @returns {Object.} JSON object - */ - Empty.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls CreateJob. + * @function createJob + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.ICreateJobRequest} request CreateJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Gets the default type url for Empty - * @function getTypeUrl - * @memberof google.protobuf.Empty - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.Empty"; - }; + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|getJob}. + * @memberof google.cloud.batch.v1.BatchService + * @typedef GetJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1.Job} [response] Job + */ - return Empty; - })(); + /** + * Calls GetJob. + * @function getJob + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IGetJobRequest} request GetJobRequest message or plain object + * @param {google.cloud.batch.v1.BatchService.GetJobCallback} callback Node-style callback called with the error, if any, and Job + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.getJob = function getJob(request, callback) { + return this.rpcCall(getJob, $root.google.cloud.batch.v1.GetJobRequest, $root.google.cloud.batch.v1.Job, request, callback); + }, "name", { value: "GetJob" }); - protobuf.FileDescriptorSet = (function() { + /** + * Calls GetJob. + * @function getJob + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IGetJobRequest} request GetJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Properties of a FileDescriptorSet. - * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file - */ + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|deleteJob}. + * @memberof google.cloud.batch.v1.BatchService + * @typedef DeleteJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Constructs a new FileDescriptorSet. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet - * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - */ - function FileDescriptorSet(properties) { - this.file = []; - 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]]; - } + /** + * Calls DeleteJob. + * @function deleteJob + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IDeleteJobRequest} request DeleteJobRequest message or plain object + * @param {google.cloud.batch.v1.BatchService.DeleteJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.deleteJob = function deleteJob(request, callback) { + return this.rpcCall(deleteJob, $root.google.cloud.batch.v1.DeleteJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteJob" }); - /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet - * @instance - */ - FileDescriptorSet.prototype.file = $util.emptyArray; + /** + * Calls DeleteJob. + * @function deleteJob + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IDeleteJobRequest} request DeleteJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance - */ - FileDescriptorSet.create = function create(properties) { - return new FileDescriptorSet(properties); - }; + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|listJobs}. + * @memberof google.cloud.batch.v1.BatchService + * @typedef ListJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1.ListJobsResponse} [response] ListJobsResponse + */ - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.file != null && message.file.length) - for (var i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Calls ListJobs. + * @function listJobs + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IListJobsRequest} request ListJobsRequest message or plain object + * @param {google.cloud.batch.v1.BatchService.ListJobsCallback} callback Node-style callback called with the error, if any, and ListJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.listJobs = function listJobs(request, callback) { + return this.rpcCall(listJobs, $root.google.cloud.batch.v1.ListJobsRequest, $root.google.cloud.batch.v1.ListJobsResponse, request, callback); + }, "name", { value: "ListJobs" }); - /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls ListJobs. + * @function listJobs + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IListJobsRequest} request ListJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|getTask}. + * @memberof google.cloud.batch.v1.BatchService + * @typedef GetTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1.Task} [response] Task + */ - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls GetTask. + * @function getTask + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IGetTaskRequest} request GetTaskRequest message or plain object + * @param {google.cloud.batch.v1.BatchService.GetTaskCallback} callback Node-style callback called with the error, if any, and Task + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.getTask = function getTask(request, callback) { + return this.rpcCall(getTask, $root.google.cloud.batch.v1.GetTaskRequest, $root.google.cloud.batch.v1.Task, request, callback); + }, "name", { value: "GetTask" }); - /** - * Verifies a FileDescriptorSet message. - * @function verify - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.file != null && message.hasOwnProperty("file")) { - if (!Array.isArray(message.file)) - return "file: array expected"; - for (var i = 0; i < message.file.length; ++i) { - var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); - if (error) - return "file." + error; - } - } - return null; - }; + /** + * Calls GetTask. + * @function getTask + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IGetTaskRequest} request GetTaskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - */ - FileDescriptorSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorSet) - return object; - var message = new $root.google.protobuf.FileDescriptorSet(); - if (object.file) { - if (!Array.isArray(object.file)) - throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); - message.file = []; - for (var i = 0; i < object.file.length; ++i) { - if (typeof object.file[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); - message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); - } - } - return message; - }; + /** + * Callback as used by {@link google.cloud.batch.v1.BatchService|listTasks}. + * @memberof google.cloud.batch.v1.BatchService + * @typedef ListTasksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1.ListTasksResponse} [response] ListTasksResponse + */ - /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorSet.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.file = []; - if (message.file && message.file.length) { - object.file = []; - for (var j = 0; j < message.file.length; ++j) - object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); - } - return object; - }; + /** + * Calls ListTasks. + * @function listTasks + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IListTasksRequest} request ListTasksRequest message or plain object + * @param {google.cloud.batch.v1.BatchService.ListTasksCallback} callback Node-style callback called with the error, if any, and ListTasksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.listTasks = function listTasks(request, callback) { + return this.rpcCall(listTasks, $root.google.cloud.batch.v1.ListTasksRequest, $root.google.cloud.batch.v1.ListTasksResponse, request, callback); + }, "name", { value: "ListTasks" }); - /** - * Converts this FileDescriptorSet to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorSet - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorSet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls ListTasks. + * @function listTasks + * @memberof google.cloud.batch.v1.BatchService + * @instance + * @param {google.cloud.batch.v1.IListTasksRequest} request ListTasksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Gets the default type url for FileDescriptorSet - * @function getTypeUrl - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; - }; + return BatchService; + })(); - return FileDescriptorSet; - })(); + v1.CreateJobRequest = (function() { - protobuf.FileDescriptorProto = (function() { + /** + * Properties of a CreateJobRequest. + * @memberof google.cloud.batch.v1 + * @interface ICreateJobRequest + * @property {string|null} [parent] CreateJobRequest parent + * @property {string|null} [jobId] CreateJobRequest jobId + * @property {google.cloud.batch.v1.IJob|null} [job] CreateJobRequest job + * @property {string|null} [requestId] CreateJobRequest requestId + */ - /** - * Properties of a FileDescriptorProto. - * @memberof google.protobuf - * @interface IFileDescriptorProto - * @property {string|null} [name] FileDescriptorProto name - * @property {string|null} ["package"] FileDescriptorProto package - * @property {Array.|null} [dependency] FileDescriptorProto dependency - * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency - * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency - * @property {Array.|null} [messageType] FileDescriptorProto messageType - * @property {Array.|null} [enumType] FileDescriptorProto enumType - * @property {Array.|null} [service] FileDescriptorProto service - * @property {Array.|null} [extension] FileDescriptorProto extension - * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options - * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo - * @property {string|null} [syntax] FileDescriptorProto syntax - * @property {string|null} [edition] FileDescriptorProto edition - */ + /** + * Constructs a new CreateJobRequest. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a CreateJobRequest. + * @implements ICreateJobRequest + * @constructor + * @param {google.cloud.batch.v1.ICreateJobRequest=} [properties] Properties to set + */ + function CreateJobRequest(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]]; + } - /** - * Constructs a new FileDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorProto. - * @implements IFileDescriptorProto - * @constructor - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - */ - function FileDescriptorProto(properties) { - this.dependency = []; - this.publicDependency = []; - this.weakDependency = []; - this.messageType = []; - this.enumType = []; - this.service = []; - this.extension = []; - 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]]; - } + /** + * CreateJobRequest parent. + * @member {string} parent + * @memberof google.cloud.batch.v1.CreateJobRequest + * @instance + */ + CreateJobRequest.prototype.parent = ""; - /** - * FileDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; + /** + * CreateJobRequest jobId. + * @member {string} jobId + * @memberof google.cloud.batch.v1.CreateJobRequest + * @instance + */ + CreateJobRequest.prototype.jobId = ""; - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; + /** + * CreateJobRequest job. + * @member {google.cloud.batch.v1.IJob|null|undefined} job + * @memberof google.cloud.batch.v1.CreateJobRequest + * @instance + */ + CreateJobRequest.prototype.job = null; - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; + /** + * CreateJobRequest requestId. + * @member {string} requestId + * @memberof google.cloud.batch.v1.CreateJobRequest + * @instance + */ + CreateJobRequest.prototype.requestId = ""; - /** - * FileDescriptorProto publicDependency. - * @member {Array.} publicDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + /** + * Creates a new CreateJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.CreateJobRequest + * @static + * @param {google.cloud.batch.v1.ICreateJobRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1.CreateJobRequest} CreateJobRequest instance + */ + CreateJobRequest.create = function create(properties) { + return new CreateJobRequest(properties); + }; - /** - * FileDescriptorProto weakDependency. - * @member {Array.} weakDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + /** + * Encodes the specified CreateJobRequest message. Does not implicitly {@link google.cloud.batch.v1.CreateJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.CreateJobRequest + * @static + * @param {google.cloud.batch.v1.ICreateJobRequest} message CreateJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); + if (message.job != null && Object.hasOwnProperty.call(message, "job")) + $root.google.cloud.batch.v1.Job.encode(message.job, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + return writer; + }; - /** - * FileDescriptorProto messageType. - * @member {Array.} messageType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.messageType = $util.emptyArray; + /** + * Encodes the specified CreateJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.CreateJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.CreateJobRequest + * @static + * @param {google.cloud.batch.v1.ICreateJobRequest} message CreateJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * FileDescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.enumType = $util.emptyArray; + /** + * Decodes a CreateJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.CreateJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.CreateJobRequest} CreateJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.CreateJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.jobId = reader.string(); + break; + } + case 3: { + message.job = $root.google.cloud.batch.v1.Job.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.service = $util.emptyArray; + /** + * Decodes a CreateJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.CreateJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.CreateJobRequest} CreateJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.extension = $util.emptyArray; + /** + * Verifies a CreateJobRequest message. + * @function verify + * @memberof google.cloud.batch.v1.CreateJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; + if (message.job != null && message.hasOwnProperty("job")) { + var error = $root.google.cloud.batch.v1.Job.verify(message.job); + if (error) + return "job." + error; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; - /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.options = null; + /** + * Creates a CreateJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.CreateJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.CreateJobRequest} CreateJobRequest + */ + CreateJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.CreateJobRequest) + return object; + var message = new $root.google.cloud.batch.v1.CreateJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.jobId != null) + message.jobId = String(object.jobId); + if (object.job != null) { + if (typeof object.job !== "object") + throw TypeError(".google.cloud.batch.v1.CreateJobRequest.job: object expected"); + message.job = $root.google.cloud.batch.v1.Job.fromObject(object.job); + } + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; - /** - * FileDescriptorProto sourceCodeInfo. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.sourceCodeInfo = null; + /** + * Creates a plain object from a CreateJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.CreateJobRequest + * @static + * @param {google.cloud.batch.v1.CreateJobRequest} message CreateJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.jobId = ""; + object.job = null; + object.requestId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.jobId != null && message.hasOwnProperty("jobId")) + object.jobId = message.jobId; + if (message.job != null && message.hasOwnProperty("job")) + object.job = $root.google.cloud.batch.v1.Job.toObject(message.job, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; - /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.syntax = ""; + /** + * Converts this CreateJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.CreateJobRequest + * @instance + * @returns {Object.} JSON object + */ + CreateJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileDescriptorProto edition. - * @member {string} edition - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.edition = ""; + /** + * Gets the default type url for CreateJobRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1.CreateJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.CreateJobRequest"; + }; - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance - */ - FileDescriptorProto.create = function create(properties) { - return new FileDescriptorProto(properties); - }; + return CreateJobRequest; + })(); - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); - if (message.dependency != null && message.dependency.length) - for (var i = 0; i < message.dependency.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); - if (message.messageType != null && message.messageType.length) - for (var i = 0; i < message.messageType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.service != null && message.service.length) - for (var i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) - $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.publicDependency != null && message.publicDependency.length) - for (var i = 0; i < message.publicDependency.length; ++i) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); - if (message.weakDependency != null && message.weakDependency.length) - for (var i = 0; i < message.weakDependency.length; ++i) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); - if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); - return writer; - }; - - /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message["package"] = reader.string(); - break; - } - case 3: { - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - } - case 10: { - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - } - case 11: { - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); - break; - } - case 4: { - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 7: { - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 8: { - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - } - case 9: { - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - } - case 12: { - message.syntax = reader.string(); - break; - } - case 13: { - message.edition = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v1.GetJobRequest = (function() { - /** - * Verifies a FileDescriptorProto message. - * @function verify - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (var i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { - if (!Array.isArray(message.publicDependency)) - return "publicDependency: array expected"; - for (var i = 0; i < message.publicDependency.length; ++i) - if (!$util.isInteger(message.publicDependency[i])) - return "publicDependency: integer[] expected"; - } - if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { - if (!Array.isArray(message.weakDependency)) - return "weakDependency: array expected"; - for (var i = 0; i < message.weakDependency.length; ++i) - if (!$util.isInteger(message.weakDependency[i])) - return "weakDependency: integer[] expected"; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) { - if (!Array.isArray(message.messageType)) - return "messageType: array expected"; - for (var i = 0; i < message.messageType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); - if (error) - return "messageType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.service != null && message.hasOwnProperty("service")) { - if (!Array.isArray(message.service)) - return "service: array expected"; - for (var i = 0; i < message.service.length; ++i) { - var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); - if (error) - return "service." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FileOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); - if (error) - return "sourceCodeInfo." + error; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; - if (message.edition != null && message.hasOwnProperty("edition")) - if (!$util.isString(message.edition)) - return "edition: string expected"; - return null; - }; + /** + * Properties of a GetJobRequest. + * @memberof google.cloud.batch.v1 + * @interface IGetJobRequest + * @property {string|null} [name] GetJobRequest name + */ - /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - */ - FileDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorProto) - return object; - var message = new $root.google.protobuf.FileDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object["package"] != null) - message["package"] = String(object["package"]); - if (object.dependency) { - if (!Array.isArray(object.dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); - message.dependency = []; - for (var i = 0; i < object.dependency.length; ++i) - message.dependency[i] = String(object.dependency[i]); - } - if (object.publicDependency) { - if (!Array.isArray(object.publicDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); - message.publicDependency = []; - for (var i = 0; i < object.publicDependency.length; ++i) - message.publicDependency[i] = object.publicDependency[i] | 0; - } - if (object.weakDependency) { - if (!Array.isArray(object.weakDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); - message.weakDependency = []; - for (var i = 0; i < object.weakDependency.length; ++i) - message.weakDependency[i] = object.weakDependency[i] | 0; - } - if (object.messageType) { - if (!Array.isArray(object.messageType)) - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); - message.messageType = []; - for (var i = 0; i < object.messageType.length; ++i) { - if (typeof object.messageType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); - message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.service) { - if (!Array.isArray(object.service)) - throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); - message.service = []; - for (var i = 0; i < object.service.length; ++i) { - if (typeof object.service[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); - message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + /** + * Constructs a new GetJobRequest. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a GetJobRequest. + * @implements IGetJobRequest + * @constructor + * @param {google.cloud.batch.v1.IGetJobRequest=} [properties] Properties to set + */ + function GetJobRequest(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]]; } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FileOptions.fromObject(object.options); - } - if (object.sourceCodeInfo != null) { - if (typeof object.sourceCodeInfo !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); - } - if (object.syntax != null) - message.syntax = String(object.syntax); - if (object.edition != null) - message.edition = String(object.edition); - return message; - }; - - /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.dependency = []; - object.messageType = []; - object.enumType = []; - object.service = []; - object.extension = []; - object.publicDependency = []; - object.weakDependency = []; - } - if (options.defaults) { - object.name = ""; - object["package"] = ""; - object.options = null; - object.sourceCodeInfo = null; - object.syntax = ""; - object.edition = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message["package"] != null && message.hasOwnProperty("package")) - object["package"] = message["package"]; - if (message.dependency && message.dependency.length) { - object.dependency = []; - for (var j = 0; j < message.dependency.length; ++j) - object.dependency[j] = message.dependency[j]; - } - if (message.messageType && message.messageType.length) { - object.messageType = []; - for (var j = 0; j < message.messageType.length; ++j) - object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.service && message.service.length) { - object.service = []; - for (var j = 0; j < message.service.length; ++j) - object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) - object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); - if (message.publicDependency && message.publicDependency.length) { - object.publicDependency = []; - for (var j = 0; j < message.publicDependency.length; ++j) - object.publicDependency[j] = message.publicDependency[j]; - } - if (message.weakDependency && message.weakDependency.length) { - object.weakDependency = []; - for (var j = 0; j < message.weakDependency.length; ++j) - object.weakDependency[j] = message.weakDependency[j]; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - object.syntax = message.syntax; - if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = message.edition; - return object; - }; - /** - * Converts this FileDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * GetJobRequest name. + * @member {string} name + * @memberof google.cloud.batch.v1.GetJobRequest + * @instance + */ + GetJobRequest.prototype.name = ""; - /** - * Gets the default type url for FileDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; - }; + /** + * Creates a new GetJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.GetJobRequest + * @static + * @param {google.cloud.batch.v1.IGetJobRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1.GetJobRequest} GetJobRequest instance + */ + GetJobRequest.create = function create(properties) { + return new GetJobRequest(properties); + }; - return FileDescriptorProto; - })(); + /** + * Encodes the specified GetJobRequest message. Does not implicitly {@link google.cloud.batch.v1.GetJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.GetJobRequest + * @static + * @param {google.cloud.batch.v1.IGetJobRequest} message GetJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - protobuf.DescriptorProto = (function() { + /** + * Encodes the specified GetJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GetJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.GetJobRequest + * @static + * @param {google.cloud.batch.v1.IGetJobRequest} message GetJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Properties of a DescriptorProto. - * @memberof google.protobuf - * @interface IDescriptorProto - * @property {string|null} [name] DescriptorProto name - * @property {Array.|null} [field] DescriptorProto field - * @property {Array.|null} [extension] DescriptorProto extension - * @property {Array.|null} [nestedType] DescriptorProto nestedType - * @property {Array.|null} [enumType] DescriptorProto enumType - * @property {Array.|null} [extensionRange] DescriptorProto extensionRange - * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl - * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options - * @property {Array.|null} [reservedRange] DescriptorProto reservedRange - * @property {Array.|null} [reservedName] DescriptorProto reservedName - */ + /** + * Decodes a GetJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.GetJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.GetJobRequest} GetJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.GetJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Constructs a new DescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto - * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - */ - function DescriptorProto(properties) { - this.field = []; - this.extension = []; - this.nestedType = []; - this.enumType = []; - this.extensionRange = []; - this.oneofDecl = []; - this.reservedRange = []; - this.reservedName = []; - 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]]; - } + /** + * Decodes a GetJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.GetJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.GetJobRequest} GetJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * DescriptorProto name. - * @member {string} name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.name = ""; + /** + * Verifies a GetJobRequest message. + * @function verify + * @memberof google.cloud.batch.v1.GetJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * DescriptorProto field. - * @member {Array.} field - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.field = $util.emptyArray; + /** + * Creates a GetJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.GetJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.GetJobRequest} GetJobRequest + */ + GetJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.GetJobRequest) + return object; + var message = new $root.google.cloud.batch.v1.GetJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * DescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension = $util.emptyArray; + /** + * Creates a plain object from a GetJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.GetJobRequest + * @static + * @param {google.cloud.batch.v1.GetJobRequest} message GetJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * DescriptorProto nestedType. - * @member {Array.} nestedType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.nestedType = $util.emptyArray; + /** + * Converts this GetJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.GetJobRequest + * @instance + * @returns {Object.} JSON object + */ + GetJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * DescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.enumType = $util.emptyArray; + /** + * Gets the default type url for GetJobRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1.GetJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.GetJobRequest"; + }; - /** - * DescriptorProto extensionRange. - * @member {Array.} extensionRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extensionRange = $util.emptyArray; + return GetJobRequest; + })(); - /** - * DescriptorProto oneofDecl. - * @member {Array.} oneofDecl - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.oneofDecl = $util.emptyArray; + v1.DeleteJobRequest = (function() { - /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.options = null; + /** + * Properties of a DeleteJobRequest. + * @memberof google.cloud.batch.v1 + * @interface IDeleteJobRequest + * @property {string|null} [name] DeleteJobRequest name + * @property {string|null} [reason] DeleteJobRequest reason + * @property {string|null} [requestId] DeleteJobRequest requestId + */ - /** - * DescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reservedRange = $util.emptyArray; + /** + * Constructs a new DeleteJobRequest. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a DeleteJobRequest. + * @implements IDeleteJobRequest + * @constructor + * @param {google.cloud.batch.v1.IDeleteJobRequest=} [properties] Properties to set + */ + function DeleteJobRequest(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]]; + } - /** - * DescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reservedName = $util.emptyArray; + /** + * DeleteJobRequest name. + * @member {string} name + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @instance + */ + DeleteJobRequest.prototype.name = ""; - /** - * Creates a new DescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto} DescriptorProto instance - */ - DescriptorProto.create = function create(properties) { - return new DescriptorProto(properties); - }; + /** + * DeleteJobRequest reason. + * @member {string} reason + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @instance + */ + DeleteJobRequest.prototype.reason = ""; - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.field != null && message.field.length) - for (var i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nestedType != null && message.nestedType.length) - for (var i = 0; i < message.nestedType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.extensionRange != null && message.extensionRange.length) - for (var i = 0; i < message.extensionRange.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.oneofDecl != null && message.oneofDecl.length) - for (var i = 0; i < message.oneofDecl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); - return writer; - }; + /** + * DeleteJobRequest requestId. + * @member {string} requestId + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @instance + */ + DeleteJobRequest.prototype.requestId = ""; - /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new DeleteJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @static + * @param {google.cloud.batch.v1.IDeleteJobRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1.DeleteJobRequest} DeleteJobRequest instance + */ + DeleteJobRequest.create = function create(properties) { + return new DeleteJobRequest(properties); + }; - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - } - case 4: { - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - } - case 8: { - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 7: { - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - } - case 9: { - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - } - case 10: { - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified DeleteJobRequest message. Does not implicitly {@link google.cloud.batch.v1.DeleteJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @static + * @param {google.cloud.batch.v1.IDeleteJobRequest} message DeleteJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reason); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + return writer; + }; - /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified DeleteJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.DeleteJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @static + * @param {google.cloud.batch.v1.IDeleteJobRequest} message DeleteJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a DescriptorProto message. - * @function verify - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.field != null && message.hasOwnProperty("field")) { - if (!Array.isArray(message.field)) - return "field: array expected"; - for (var i = 0; i < message.field.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); - if (error) - return "field." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.nestedType != null && message.hasOwnProperty("nestedType")) { - if (!Array.isArray(message.nestedType)) - return "nestedType: array expected"; - for (var i = 0; i < message.nestedType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); - if (error) - return "nestedType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { - if (!Array.isArray(message.extensionRange)) - return "extensionRange: array expected"; - for (var i = 0; i < message.extensionRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); - if (error) - return "extensionRange." + error; - } - } - if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { - if (!Array.isArray(message.oneofDecl)) - return "oneofDecl: array expected"; - for (var i = 0; i < message.oneofDecl.length; ++i) { - var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); - if (error) - return "oneofDecl." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); - if (error) - return "reservedRange." + error; - } - } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; - } - return null; - }; + /** + * Decodes a DeleteJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.DeleteJobRequest} DeleteJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.DeleteJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.reason = reader.string(); + break; + } + case 4: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto} DescriptorProto - */ - DescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto) - return object; - var message = new $root.google.protobuf.DescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.field) { - if (!Array.isArray(object.field)) - throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); - message.field = []; - for (var i = 0; i < object.field.length; ++i) { - if (typeof object.field[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); - message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); - } - } - if (object.nestedType) { - if (!Array.isArray(object.nestedType)) - throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); - message.nestedType = []; - for (var i = 0; i < object.nestedType.length; ++i) { - if (typeof object.nestedType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); - message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.extensionRange) { - if (!Array.isArray(object.extensionRange)) - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); - message.extensionRange = []; - for (var i = 0; i < object.extensionRange.length; ++i) { - if (typeof object.extensionRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); - message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); - } - } - if (object.oneofDecl) { - if (!Array.isArray(object.oneofDecl)) - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); - message.oneofDecl = []; - for (var i = 0; i < object.oneofDecl.length; ++i) { - if (typeof object.oneofDecl[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); - message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); - } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (var i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); - } - } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (var i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); - } - return message; - }; + /** + * Decodes a DeleteJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.DeleteJobRequest} DeleteJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.DescriptorProto} message DescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.field = []; - object.nestedType = []; - object.enumType = []; - object.extensionRange = []; - object.extension = []; - object.oneofDecl = []; - object.reservedRange = []; - object.reservedName = []; - } - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.field && message.field.length) { - object.field = []; - for (var j = 0; j < message.field.length; ++j) - object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); - } - if (message.nestedType && message.nestedType.length) { - object.nestedType = []; - for (var j = 0; j < message.nestedType.length; ++j) - object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.extensionRange && message.extensionRange.length) { - object.extensionRange = []; - for (var j = 0; j < message.extensionRange.length; ++j) - object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); - if (message.oneofDecl && message.oneofDecl.length) { - object.oneofDecl = []; - for (var j = 0; j < message.oneofDecl.length; ++j) - object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); - } - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); - } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (var j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; - } - return object; - }; + /** + * Verifies a DeleteJobRequest message. + * @function verify + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.reason != null && message.hasOwnProperty("reason")) + if (!$util.isString(message.reason)) + return "reason: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; - /** - * Converts this DescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto - * @instance - * @returns {Object.} JSON object - */ - DescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a DeleteJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.DeleteJobRequest} DeleteJobRequest + */ + DeleteJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.DeleteJobRequest) + return object; + var message = new $root.google.cloud.batch.v1.DeleteJobRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.reason != null) + message.reason = String(object.reason); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; - /** - * Gets the default type url for DescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.DescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.DescriptorProto"; - }; + /** + * Creates a plain object from a DeleteJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @static + * @param {google.cloud.batch.v1.DeleteJobRequest} message DeleteJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.reason = ""; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.reason != null && message.hasOwnProperty("reason")) + object.reason = message.reason; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; - DescriptorProto.ExtensionRange = (function() { + /** + * Converts this DeleteJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end - * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options - */ + /** + * Gets the default type url for DeleteJobRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1.DeleteJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.DeleteJobRequest"; + }; - /** - * Constructs a new ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents an ExtensionRange. - * @implements IExtensionRange - * @constructor - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - */ - function ExtensionRange(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]]; - } + return DeleteJobRequest; + })(); - /** - * ExtensionRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.start = 0; + v1.ListJobsRequest = (function() { - /** - * ExtensionRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.end = 0; + /** + * Properties of a ListJobsRequest. + * @memberof google.cloud.batch.v1 + * @interface IListJobsRequest + * @property {string|null} [parent] ListJobsRequest parent + * @property {string|null} [filter] ListJobsRequest filter + * @property {number|null} [pageSize] ListJobsRequest pageSize + * @property {string|null} [pageToken] ListJobsRequest pageToken + */ - /** - * ExtensionRange options. - * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.options = null; + /** + * Constructs a new ListJobsRequest. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a ListJobsRequest. + * @implements IListJobsRequest + * @constructor + * @param {google.cloud.batch.v1.IListJobsRequest=} [properties] Properties to set + */ + function ListJobsRequest(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]]; + } - /** - * Creates a new ExtensionRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance - */ - ExtensionRange.create = function create(properties) { - return new ExtensionRange(properties); - }; + /** + * ListJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.batch.v1.ListJobsRequest + * @instance + */ + ListJobsRequest.prototype.parent = ""; - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * ListJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.batch.v1.ListJobsRequest + * @instance + */ + ListJobsRequest.prototype.filter = ""; - /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.batch.v1.ListJobsRequest + * @instance + */ + ListJobsRequest.prototype.pageSize = 0; - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); - break; - } - case 3: { - message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + /** + * ListJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.batch.v1.ListJobsRequest + * @instance + */ + ListJobsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.ListJobsRequest + * @static + * @param {google.cloud.batch.v1.IListJobsRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1.ListJobsRequest} ListJobsRequest instance + */ + ListJobsRequest.create = function create(properties) { + return new ListJobsRequest(properties); + }; + + /** + * Encodes the specified ListJobsRequest message. Does not implicitly {@link google.cloud.batch.v1.ListJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.ListJobsRequest + * @static + * @param {google.cloud.batch.v1.IListJobsRequest} message ListJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListJobsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + return writer; + }; + + /** + * Encodes the specified ListJobsRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListJobsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.ListJobsRequest + * @static + * @param {google.cloud.batch.v1.IListJobsRequest} message ListJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListJobsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.ListJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.ListJobsRequest} ListJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListJobsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ListJobsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; - /** - * Verifies an ExtensionRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtensionRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + /** + * Decodes a ListJobsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.ListJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.ListJobsRequest} ListJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListJobsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - */ - ExtensionRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) - return object; - var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); - message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); - } - return message; - }; + /** + * Verifies a ListJobsRequest message. + * @function verify + * @memberof google.cloud.batch.v1.ListJobsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListJobsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; - /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtensionRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - object.options = null; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); - return object; - }; + /** + * Creates a ListJobsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.ListJobsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.ListJobsRequest} ListJobsRequest + */ + ListJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.ListJobsRequest) + return object; + var message = new $root.google.cloud.batch.v1.ListJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; - /** - * Converts this ExtensionRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - * @returns {Object.} JSON object - */ - ExtensionRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListJobsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.ListJobsRequest + * @static + * @param {google.cloud.batch.v1.ListJobsRequest} message ListJobsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + return object; + }; - /** - * Gets the default type url for ExtensionRange - * @function getTypeUrl - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; - }; + /** + * Converts this ListJobsRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.ListJobsRequest + * @instance + * @returns {Object.} JSON object + */ + ListJobsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ExtensionRange; - })(); + /** + * Gets the default type url for ListJobsRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1.ListJobsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.ListJobsRequest"; + }; - DescriptorProto.ReservedRange = (function() { + return ListJobsRequest; + })(); - /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end - */ + v1.ListJobsResponse = (function() { - /** - * Constructs a new ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents a ReservedRange. - * @implements IReservedRange - * @constructor - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - */ - function ReservedRange(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]]; - } + /** + * Properties of a ListJobsResponse. + * @memberof google.cloud.batch.v1 + * @interface IListJobsResponse + * @property {Array.|null} [jobs] ListJobsResponse jobs + * @property {string|null} [nextPageToken] ListJobsResponse nextPageToken + * @property {Array.|null} [unreachable] ListJobsResponse unreachable + */ - /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.start = 0; + /** + * Constructs a new ListJobsResponse. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a ListJobsResponse. + * @implements IListJobsResponse + * @constructor + * @param {google.cloud.batch.v1.IListJobsResponse=} [properties] Properties to set + */ + function ListJobsResponse(properties) { + this.jobs = []; + this.unreachable = []; + 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]]; + } - /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.end = 0; + /** + * ListJobsResponse jobs. + * @member {Array.} jobs + * @memberof google.cloud.batch.v1.ListJobsResponse + * @instance + */ + ListJobsResponse.prototype.jobs = $util.emptyArray; - /** - * Creates a new ReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance - */ - ReservedRange.create = function create(properties) { - return new ReservedRange(properties); - }; + /** + * ListJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.batch.v1.ListJobsResponse + * @instance + */ + ListJobsResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; + /** + * ListJobsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.batch.v1.ListJobsResponse + * @instance + */ + ListJobsResponse.prototype.unreachable = $util.emptyArray; - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListJobsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.ListJobsResponse + * @static + * @param {google.cloud.batch.v1.IListJobsResponse=} [properties] Properties to set + * @returns {google.cloud.batch.v1.ListJobsResponse} ListJobsResponse instance + */ + ListJobsResponse.create = function create(properties) { + return new ListJobsResponse(properties); + }; - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); + /** + * Encodes the specified ListJobsResponse message. Does not implicitly {@link google.cloud.batch.v1.ListJobsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.ListJobsResponse + * @static + * @param {google.cloud.batch.v1.IListJobsResponse} message ListJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListJobsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.jobs != null && message.jobs.length) + for (var i = 0; i < message.jobs.length; ++i) + $root.google.cloud.batch.v1.Job.encode(message.jobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; + + /** + * Encodes the specified ListJobsResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListJobsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.ListJobsResponse + * @static + * @param {google.cloud.batch.v1.IListJobsResponse} message ListJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListJobsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.ListJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.ListJobsResponse} ListJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListJobsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ListJobsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.jobs && message.jobs.length)) + message.jobs = []; + message.jobs.push($root.google.cloud.batch.v1.Job.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ListJobsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.ListJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.ListJobsResponse} ListJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListJobsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ReservedRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; + /** + * Verifies a ListJobsResponse message. + * @function verify + * @memberof google.cloud.batch.v1.ListJobsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListJobsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.jobs != null && message.hasOwnProperty("jobs")) { + if (!Array.isArray(message.jobs)) + return "jobs: array expected"; + for (var i = 0; i < message.jobs.length; ++i) { + var error = $root.google.cloud.batch.v1.Job.verify(message.jobs[i]); + if (error) + return "jobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; - /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - */ - ReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + /** + * Creates a ListJobsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.ListJobsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.ListJobsResponse} ListJobsResponse + */ + ListJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.ListJobsResponse) + return object; + var message = new $root.google.cloud.batch.v1.ListJobsResponse(); + if (object.jobs) { + if (!Array.isArray(object.jobs)) + throw TypeError(".google.cloud.batch.v1.ListJobsResponse.jobs: array expected"); + message.jobs = []; + for (var i = 0; i < object.jobs.length; ++i) { + if (typeof object.jobs[i] !== "object") + throw TypeError(".google.cloud.batch.v1.ListJobsResponse.jobs: object expected"); + message.jobs[i] = $root.google.cloud.batch.v1.Job.fromObject(object.jobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.batch.v1.ListJobsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; + + /** + * Creates a plain object from a ListJobsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.ListJobsResponse + * @static + * @param {google.cloud.batch.v1.ListJobsResponse} message ListJobsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListJobsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.jobs = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.jobs && message.jobs.length) { + object.jobs = []; + for (var j = 0; j < message.jobs.length; ++j) + object.jobs[j] = $root.google.cloud.batch.v1.Job.toObject(message.jobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } return object; - var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; + }; - /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - return object; - }; + /** + * Converts this ListJobsResponse to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.ListJobsResponse + * @instance + * @returns {Object.} JSON object + */ + ListJobsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - * @returns {Object.} JSON object - */ - ReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ListJobsResponse + * @function getTypeUrl + * @memberof google.cloud.batch.v1.ListJobsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.ListJobsResponse"; + }; - /** - * Gets the default type url for ReservedRange - * @function getTypeUrl - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; - }; + return ListJobsResponse; + })(); - return ReservedRange; - })(); + v1.ListTasksRequest = (function() { - return DescriptorProto; - })(); + /** + * Properties of a ListTasksRequest. + * @memberof google.cloud.batch.v1 + * @interface IListTasksRequest + * @property {string|null} [parent] ListTasksRequest parent + * @property {string|null} [filter] ListTasksRequest filter + * @property {number|null} [pageSize] ListTasksRequest pageSize + * @property {string|null} [pageToken] ListTasksRequest pageToken + */ - protobuf.ExtensionRangeOptions = (function() { + /** + * Constructs a new ListTasksRequest. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a ListTasksRequest. + * @implements IListTasksRequest + * @constructor + * @param {google.cloud.batch.v1.IListTasksRequest=} [properties] Properties to set + */ + function ListTasksRequest(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]]; + } - /** - * Properties of an ExtensionRangeOptions. - * @memberof google.protobuf - * @interface IExtensionRangeOptions - * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption - */ + /** + * ListTasksRequest parent. + * @member {string} parent + * @memberof google.cloud.batch.v1.ListTasksRequest + * @instance + */ + ListTasksRequest.prototype.parent = ""; - /** - * Constructs a new ExtensionRangeOptions. - * @memberof google.protobuf - * @classdesc Represents an ExtensionRangeOptions. - * @implements IExtensionRangeOptions - * @constructor - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set - */ - function ExtensionRangeOptions(properties) { - this.uninterpretedOption = []; - 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]]; - } + /** + * ListTasksRequest filter. + * @member {string} filter + * @memberof google.cloud.batch.v1.ListTasksRequest + * @instance + */ + ListTasksRequest.prototype.filter = ""; - /** - * ExtensionRangeOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - */ - ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * ListTasksRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.batch.v1.ListTasksRequest + * @instance + */ + ListTasksRequest.prototype.pageSize = 0; - /** - * Creates a new ExtensionRangeOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance - */ - ExtensionRangeOptions.create = function create(properties) { - return new ExtensionRangeOptions(properties); - }; + /** + * ListTasksRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.batch.v1.ListTasksRequest + * @instance + */ + ListTasksRequest.prototype.pageToken = ""; - /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRangeOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; + /** + * Creates a new ListTasksRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.ListTasksRequest + * @static + * @param {google.cloud.batch.v1.IListTasksRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1.ListTasksRequest} ListTasksRequest instance + */ + ListTasksRequest.create = function create(properties) { + return new ListTasksRequest(properties); + }; - /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListTasksRequest message. Does not implicitly {@link google.cloud.batch.v1.ListTasksRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.ListTasksRequest + * @static + * @param {google.cloud.batch.v1.IListTasksRequest} message ListTasksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTasksRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + return writer; + }; - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRangeOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ListTasksRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListTasksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.ListTasksRequest + * @static + * @param {google.cloud.batch.v1.IListTasksRequest} message ListTasksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTasksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ListTasksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.ListTasksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.ListTasksRequest} ListTasksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTasksRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ListTasksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies an ExtensionRangeOptions message. - * @function verify - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtensionRangeOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; + /** + * Decodes a ListTasksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.ListTasksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.ListTasksRequest} ListTasksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTasksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions - */ - ExtensionRangeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ExtensionRangeOptions) - return object; - var message = new $root.google.protobuf.ExtensionRangeOptions(); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - return message; - }; + /** + * Verifies a ListTasksRequest message. + * @function verify + * @memberof google.cloud.batch.v1.ListTasksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTasksRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; - /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtensionRangeOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; + /** + * Creates a ListTasksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.ListTasksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.ListTasksRequest} ListTasksRequest + */ + ListTasksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.ListTasksRequest) + return object; + var message = new $root.google.cloud.batch.v1.ListTasksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; - /** - * Converts this ExtensionRangeOptions to JSON. - * @function toJSON - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - * @returns {Object.} JSON object - */ - ExtensionRangeOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListTasksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.ListTasksRequest + * @static + * @param {google.cloud.batch.v1.ListTasksRequest} message ListTasksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTasksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; - /** - * Gets the default type url for ExtensionRangeOptions - * @function getTypeUrl - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; - }; + /** + * Converts this ListTasksRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.ListTasksRequest + * @instance + * @returns {Object.} JSON object + */ + ListTasksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ExtensionRangeOptions; - })(); + /** + * Gets the default type url for ListTasksRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1.ListTasksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListTasksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.ListTasksRequest"; + }; - protobuf.FieldDescriptorProto = (function() { + return ListTasksRequest; + })(); - /** - * Properties of a FieldDescriptorProto. - * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [typeName] FieldDescriptorProto typeName - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue - * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex - * @property {string|null} [jsonName] FieldDescriptorProto jsonName - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional - */ + v1.ListTasksResponse = (function() { - /** - * Constructs a new FieldDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto - * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - */ - function FieldDescriptorProto(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]]; - } + /** + * Properties of a ListTasksResponse. + * @memberof google.cloud.batch.v1 + * @interface IListTasksResponse + * @property {Array.|null} [tasks] ListTasksResponse tasks + * @property {string|null} [nextPageToken] ListTasksResponse nextPageToken + * @property {Array.|null} [unreachable] ListTasksResponse unreachable + */ - /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.name = ""; + /** + * Constructs a new ListTasksResponse. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a ListTasksResponse. + * @implements IListTasksResponse + * @constructor + * @param {google.cloud.batch.v1.IListTasksResponse=} [properties] Properties to set + */ + function ListTasksResponse(properties) { + this.tasks = []; + this.unreachable = []; + 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]]; + } - /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.number = 0; + /** + * ListTasksResponse tasks. + * @member {Array.} tasks + * @memberof google.cloud.batch.v1.ListTasksResponse + * @instance + */ + ListTasksResponse.prototype.tasks = $util.emptyArray; - /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.label = 1; + /** + * ListTasksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.batch.v1.ListTasksResponse + * @instance + */ + ListTasksResponse.prototype.nextPageToken = ""; - /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type = 1; + /** + * ListTasksResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.batch.v1.ListTasksResponse + * @instance + */ + ListTasksResponse.prototype.unreachable = $util.emptyArray; - /** - * FieldDescriptorProto typeName. - * @member {string} typeName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.typeName = ""; + /** + * Creates a new ListTasksResponse instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.ListTasksResponse + * @static + * @param {google.cloud.batch.v1.IListTasksResponse=} [properties] Properties to set + * @returns {google.cloud.batch.v1.ListTasksResponse} ListTasksResponse instance + */ + ListTasksResponse.create = function create(properties) { + return new ListTasksResponse(properties); + }; - /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.extendee = ""; + /** + * Encodes the specified ListTasksResponse message. Does not implicitly {@link google.cloud.batch.v1.ListTasksResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.ListTasksResponse + * @static + * @param {google.cloud.batch.v1.IListTasksResponse} message ListTasksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTasksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.google.cloud.batch.v1.Task.encode(message.tasks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; - /** - * FieldDescriptorProto defaultValue. - * @member {string} defaultValue - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.defaultValue = ""; + /** + * Encodes the specified ListTasksResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListTasksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.ListTasksResponse + * @static + * @param {google.cloud.batch.v1.IListTasksResponse} message ListTasksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTasksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * FieldDescriptorProto oneofIndex. - * @member {number} oneofIndex - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.oneofIndex = 0; + /** + * Decodes a ListTasksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.ListTasksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.ListTasksResponse} ListTasksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTasksResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ListTasksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.google.cloud.batch.v1.Task.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * FieldDescriptorProto jsonName. - * @member {string} jsonName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.jsonName = ""; - - /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.options = null; - - /** - * FieldDescriptorProto proto3Optional. - * @member {boolean} proto3Optional - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.proto3Optional = false; - - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance - */ - FieldDescriptorProto.create = function create(properties) { - return new FieldDescriptorProto(properties); - }; - - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); - if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); - return writer; - }; - - /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a ListTasksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.ListTasksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.ListTasksResponse} ListTasksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTasksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.number = reader.int32(); - break; - } - case 4: { - message.label = reader.int32(); - break; - } - case 5: { - message.type = reader.int32(); - break; + /** + * Verifies a ListTasksResponse message. + * @function verify + * @memberof google.cloud.batch.v1.ListTasksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTasksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.google.cloud.batch.v1.Task.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } } - case 6: { - message.typeName = reader.string(); - break; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; } - case 2: { - message.extendee = reader.string(); - break; + return null; + }; + + /** + * Creates a ListTasksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.ListTasksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.ListTasksResponse} ListTasksResponse + */ + ListTasksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.ListTasksResponse) + return object; + var message = new $root.google.cloud.batch.v1.ListTasksResponse(); + if (object.tasks) { + if (!Array.isArray(object.tasks)) + throw TypeError(".google.cloud.batch.v1.ListTasksResponse.tasks: array expected"); + message.tasks = []; + for (var i = 0; i < object.tasks.length; ++i) { + if (typeof object.tasks[i] !== "object") + throw TypeError(".google.cloud.batch.v1.ListTasksResponse.tasks: object expected"); + message.tasks[i] = $root.google.cloud.batch.v1.Task.fromObject(object.tasks[i]); + } } - case 7: { - message.defaultValue = reader.string(); - break; + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.batch.v1.ListTasksResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); } - case 9: { - message.oneofIndex = reader.int32(); - break; + return message; + }; + + /** + * Creates a plain object from a ListTasksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.ListTasksResponse + * @static + * @param {google.cloud.batch.v1.ListTasksResponse} message ListTasksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTasksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.tasks = []; + object.unreachable = []; } - case 10: { - message.jsonName = reader.string(); - break; + if (options.defaults) + object.nextPageToken = ""; + if (message.tasks && message.tasks.length) { + object.tasks = []; + for (var j = 0; j < message.tasks.length; ++j) + object.tasks[j] = $root.google.cloud.batch.v1.Task.toObject(message.tasks[j], options); } - case 8: { - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; } - case 17: { - message.proto3Optional = reader.bool(); - break; + return object; + }; + + /** + * Converts this ListTasksResponse to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.ListTasksResponse + * @instance + * @returns {Object.} JSON object + */ + ListTasksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListTasksResponse + * @function getTypeUrl + * @memberof google.cloud.batch.v1.ListTasksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListTasksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return typeUrlPrefix + "/google.cloud.batch.v1.ListTasksResponse"; + }; - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return ListTasksResponse; + })(); - /** - * Verifies a FieldDescriptorProto message. - * @function verify - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { - default: - return "label: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } - if (message.typeName != null && message.hasOwnProperty("typeName")) - if (!$util.isString(message.typeName)) - return "typeName: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - if (!$util.isInteger(message.oneofIndex)) - return "oneofIndex: integer expected"; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - if (!$util.isString(message.jsonName)) - return "jsonName: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FieldOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - if (typeof message.proto3Optional !== "boolean") - return "proto3Optional: boolean expected"; - return null; - }; + v1.GetTaskRequest = (function() { - /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - */ - FieldDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldDescriptorProto) - return object; - var message = new $root.google.protobuf.FieldDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - switch (object.label) { - default: - if (typeof object.label === "number") { - message.label = object.label; - break; - } - break; - case "LABEL_OPTIONAL": - case 1: - message.label = 1; - break; - case "LABEL_REQUIRED": - case 2: - message.label = 2; - break; - case "LABEL_REPEATED": - case 3: - message.label = 3; - break; - } - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_DOUBLE": - case 1: - message.type = 1; - break; - case "TYPE_FLOAT": - case 2: - message.type = 2; - break; - case "TYPE_INT64": - case 3: - message.type = 3; - break; - case "TYPE_UINT64": - case 4: - message.type = 4; - break; - case "TYPE_INT32": - case 5: - message.type = 5; - break; - case "TYPE_FIXED64": - case 6: - message.type = 6; - break; - case "TYPE_FIXED32": - case 7: - message.type = 7; - break; - case "TYPE_BOOL": - case 8: - message.type = 8; - break; - case "TYPE_STRING": - case 9: - message.type = 9; - break; - case "TYPE_GROUP": - case 10: - message.type = 10; - break; - case "TYPE_MESSAGE": - case 11: - message.type = 11; - break; - case "TYPE_BYTES": - case 12: - message.type = 12; - break; - case "TYPE_UINT32": - case 13: - message.type = 13; - break; - case "TYPE_ENUM": - case 14: - message.type = 14; - break; - case "TYPE_SFIXED32": - case 15: - message.type = 15; - break; - case "TYPE_SFIXED64": - case 16: - message.type = 16; - break; - case "TYPE_SINT32": - case 17: - message.type = 17; - break; - case "TYPE_SINT64": - case 18: - message.type = 18; - break; - } - if (object.typeName != null) - message.typeName = String(object.typeName); - if (object.extendee != null) - message.extendee = String(object.extendee); - if (object.defaultValue != null) - message.defaultValue = String(object.defaultValue); - if (object.oneofIndex != null) - message.oneofIndex = object.oneofIndex | 0; - if (object.jsonName != null) - message.jsonName = String(object.jsonName); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); - } - if (object.proto3Optional != null) - message.proto3Optional = Boolean(object.proto3Optional); - return message; - }; + /** + * Properties of a GetTaskRequest. + * @memberof google.cloud.batch.v1 + * @interface IGetTaskRequest + * @property {string|null} [name] GetTaskRequest name + */ - /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.extendee = ""; - object.number = 0; - object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; - object.type = options.enums === String ? "TYPE_DOUBLE" : 1; - object.typeName = ""; - object.defaultValue = ""; - object.options = null; - object.oneofIndex = 0; - object.jsonName = ""; - object.proto3Optional = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.extendee != null && message.hasOwnProperty("extendee")) - object.extendee = message.extendee; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; - if (message.typeName != null && message.hasOwnProperty("typeName")) - object.typeName = message.typeName; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - object.defaultValue = message.defaultValue; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - object.oneofIndex = message.oneofIndex; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - object.jsonName = message.jsonName; - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - object.proto3Optional = message.proto3Optional; - return object; - }; + /** + * Constructs a new GetTaskRequest. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a GetTaskRequest. + * @implements IGetTaskRequest + * @constructor + * @param {google.cloud.batch.v1.IGetTaskRequest=} [properties] Properties to set + */ + function GetTaskRequest(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]]; + } - /** - * Converts this FieldDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FieldDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FieldDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * GetTaskRequest name. + * @member {string} name + * @memberof google.cloud.batch.v1.GetTaskRequest + * @instance + */ + GetTaskRequest.prototype.name = ""; - /** - * Gets the default type url for FieldDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; - }; + /** + * Creates a new GetTaskRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.GetTaskRequest + * @static + * @param {google.cloud.batch.v1.IGetTaskRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1.GetTaskRequest} GetTaskRequest instance + */ + GetTaskRequest.create = function create(properties) { + return new GetTaskRequest(properties); + }; - /** - * Type enum. - * @name google.protobuf.FieldDescriptorProto.Type - * @enum {number} - * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value - * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value - * @property {number} TYPE_INT64=3 TYPE_INT64 value - * @property {number} TYPE_UINT64=4 TYPE_UINT64 value - * @property {number} TYPE_INT32=5 TYPE_INT32 value - * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value - * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value - * @property {number} TYPE_BOOL=8 TYPE_BOOL value - * @property {number} TYPE_STRING=9 TYPE_STRING value - * @property {number} TYPE_GROUP=10 TYPE_GROUP value - * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value - * @property {number} TYPE_BYTES=12 TYPE_BYTES value - * @property {number} TYPE_UINT32=13 TYPE_UINT32 value - * @property {number} TYPE_ENUM=14 TYPE_ENUM value - * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value - * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value - * @property {number} TYPE_SINT32=17 TYPE_SINT32 value - * @property {number} TYPE_SINT64=18 TYPE_SINT64 value - */ - FieldDescriptorProto.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "TYPE_DOUBLE"] = 1; - values[valuesById[2] = "TYPE_FLOAT"] = 2; - values[valuesById[3] = "TYPE_INT64"] = 3; - values[valuesById[4] = "TYPE_UINT64"] = 4; - values[valuesById[5] = "TYPE_INT32"] = 5; - values[valuesById[6] = "TYPE_FIXED64"] = 6; - values[valuesById[7] = "TYPE_FIXED32"] = 7; - values[valuesById[8] = "TYPE_BOOL"] = 8; - values[valuesById[9] = "TYPE_STRING"] = 9; - values[valuesById[10] = "TYPE_GROUP"] = 10; - values[valuesById[11] = "TYPE_MESSAGE"] = 11; - values[valuesById[12] = "TYPE_BYTES"] = 12; - values[valuesById[13] = "TYPE_UINT32"] = 13; - values[valuesById[14] = "TYPE_ENUM"] = 14; - values[valuesById[15] = "TYPE_SFIXED32"] = 15; - values[valuesById[16] = "TYPE_SFIXED64"] = 16; - values[valuesById[17] = "TYPE_SINT32"] = 17; - values[valuesById[18] = "TYPE_SINT64"] = 18; - return values; - })(); + /** + * Encodes the specified GetTaskRequest message. Does not implicitly {@link google.cloud.batch.v1.GetTaskRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.GetTaskRequest + * @static + * @param {google.cloud.batch.v1.IGetTaskRequest} message GetTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Label enum. - * @name google.protobuf.FieldDescriptorProto.Label - * @enum {number} - * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value - */ - FieldDescriptorProto.Label = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; - values[valuesById[3] = "LABEL_REPEATED"] = 3; - return values; - })(); + /** + * Encodes the specified GetTaskRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GetTaskRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.GetTaskRequest + * @static + * @param {google.cloud.batch.v1.IGetTaskRequest} message GetTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return FieldDescriptorProto; - })(); + /** + * Decodes a GetTaskRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.GetTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.GetTaskRequest} GetTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.GetTaskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - protobuf.OneofDescriptorProto = (function() { + /** + * Decodes a GetTaskRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.GetTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.GetTaskRequest} GetTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of an OneofDescriptorProto. - * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options - */ + /** + * Verifies a GetTaskRequest message. + * @function verify + * @memberof google.cloud.batch.v1.GetTaskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Constructs a new OneofDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto - * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - */ - function OneofDescriptorProto(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]]; - } + /** + * Creates a GetTaskRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.GetTaskRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.GetTaskRequest} GetTaskRequest + */ + GetTaskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.GetTaskRequest) + return object; + var message = new $root.google.cloud.batch.v1.GetTaskRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.name = ""; + /** + * Creates a plain object from a GetTaskRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.GetTaskRequest + * @static + * @param {google.cloud.batch.v1.GetTaskRequest} message GetTaskRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetTaskRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.options = null; + /** + * Converts this GetTaskRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.GetTaskRequest + * @instance + * @returns {Object.} JSON object + */ + GetTaskRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance - */ - OneofDescriptorProto.create = function create(properties) { - return new OneofDescriptorProto(properties); - }; + /** + * Gets the default type url for GetTaskRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1.GetTaskRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetTaskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.GetTaskRequest"; + }; - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + return GetTaskRequest; + })(); - /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v1.OperationMetadata = (function() { - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; + /** + * Properties of an OperationMetadata. + * @memberof google.cloud.batch.v1 + * @interface IOperationMetadata + * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime + * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime + * @property {string|null} [target] OperationMetadata target + * @property {string|null} [verb] OperationMetadata verb + * @property {string|null} [statusMessage] OperationMetadata statusMessage + * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation + * @property {string|null} [apiVersion] OperationMetadata apiVersion + */ + + /** + * Constructs a new OperationMetadata. + * @memberof google.cloud.batch.v1 + * @classdesc Represents an OperationMetadata. + * @implements IOperationMetadata + * @constructor + * @param {google.cloud.batch.v1.IOperationMetadata=} [properties] Properties to set + */ + function OperationMetadata(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]]; } - } - return message; - }; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * OperationMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.batch.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.createTime = null; - /** - * Verifies an OneofDescriptorProto message. - * @function verify - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.OneofOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + /** + * OperationMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.batch.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.endTime = null; - /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - */ - OneofDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofDescriptorProto) - return object; - var message = new $root.google.protobuf.OneofDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OneofDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); - return object; - }; - - /** - * Converts this OneofDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.OneofDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - OneofDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OneofDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; - }; - - return OneofDescriptorProto; - })(); - - protobuf.EnumDescriptorProto = (function() { - - /** - * Properties of an EnumDescriptorProto. - * @memberof google.protobuf - * @interface IEnumDescriptorProto - * @property {string|null} [name] EnumDescriptorProto name - * @property {Array.|null} [value] EnumDescriptorProto value - * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options - * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange - * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName - */ + /** + * OperationMetadata target. + * @member {string} target + * @memberof google.cloud.batch.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.target = ""; - /** - * Constructs a new EnumDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto - * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - */ - function EnumDescriptorProto(properties) { - this.value = []; - this.reservedRange = []; - this.reservedName = []; - 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]]; - } + /** + * OperationMetadata verb. + * @member {string} verb + * @memberof google.cloud.batch.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.verb = ""; - /** - * EnumDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.name = ""; + /** + * OperationMetadata statusMessage. + * @member {string} statusMessage + * @memberof google.cloud.batch.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.statusMessage = ""; - /** - * EnumDescriptorProto value. - * @member {Array.} value - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.value = $util.emptyArray; + /** + * OperationMetadata requestedCancellation. + * @member {boolean} requestedCancellation + * @memberof google.cloud.batch.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.requestedCancellation = false; - /** - * EnumDescriptorProto options. - * @member {google.protobuf.IEnumOptions|null|undefined} options - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.options = null; + /** + * OperationMetadata apiVersion. + * @member {string} apiVersion + * @memberof google.cloud.batch.v1.OperationMetadata + * @instance + */ + OperationMetadata.prototype.apiVersion = ""; - /** - * EnumDescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + /** + * Creates a new OperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.OperationMetadata + * @static + * @param {google.cloud.batch.v1.IOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.batch.v1.OperationMetadata} OperationMetadata instance + */ + OperationMetadata.create = function create(properties) { + return new OperationMetadata(properties); + }; - /** - * EnumDescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + /** + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.batch.v1.OperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.OperationMetadata + * @static + * @param {google.cloud.batch.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); + if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); + if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); + return writer; + }; - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance - */ - EnumDescriptorProto.create = function create(properties) { - return new EnumDescriptorProto(properties); - }; + /** + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.batch.v1.OperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.OperationMetadata + * @static + * @param {google.cloud.batch.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && message.value.length) - for (var i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); - return writer; - }; + /** + * Decodes an OperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.OperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.OperationMetadata} OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.OperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.target = reader.string(); + break; + } + case 4: { + message.verb = reader.string(); + break; + } + case 5: { + message.statusMessage = reader.string(); + break; + } + case 6: { + message.requestedCancellation = reader.bool(); + break; + } + case 7: { + message.apiVersion = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.OperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.OperationMetadata} OperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; + /** + * Verifies an OperationMetadata message. + * @function verify + * @memberof google.cloud.batch.v1.OperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - case 2: { - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } - case 3: { - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); - break; + if (message.target != null && message.hasOwnProperty("target")) + if (!$util.isString(message.target)) + return "target: string expected"; + if (message.verb != null && message.hasOwnProperty("verb")) + if (!$util.isString(message.verb)) + return "verb: string expected"; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + if (typeof message.requestedCancellation !== "boolean") + return "requestedCancellation: boolean expected"; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + if (!$util.isString(message.apiVersion)) + return "apiVersion: string expected"; + return null; + }; + + /** + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.OperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.OperationMetadata} OperationMetadata + */ + OperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.OperationMetadata) + return object; + var message = new $root.google.cloud.batch.v1.OperationMetadata(); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.batch.v1.OperationMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - case 4: { - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); - break; + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.batch.v1.OperationMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } - case 5: { - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; + if (object.target != null) + message.target = String(object.target); + if (object.verb != null) + message.verb = String(object.verb); + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.requestedCancellation != null) + message.requestedCancellation = Boolean(object.requestedCancellation); + if (object.apiVersion != null) + message.apiVersion = String(object.apiVersion); + return message; + }; + + /** + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.OperationMetadata + * @static + * @param {google.cloud.batch.v1.OperationMetadata} message OperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.createTime = null; + object.endTime = null; + object.target = ""; + object.verb = ""; + object.statusMessage = ""; + object.requestedCancellation = false; + object.apiVersion = ""; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = message.target; + if (message.verb != null && message.hasOwnProperty("verb")) + object.verb = message.verb; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + object.requestedCancellation = message.requestedCancellation; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + object.apiVersion = message.apiVersion; + return object; + }; - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this OperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.OperationMetadata + * @instance + * @returns {Object.} JSON object + */ + OperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies an EnumDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!Array.isArray(message.value)) - return "value: array expected"; - for (var i = 0; i < message.value.length; ++i) { - var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); - if (error) - return "value." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); - if (error) - return "reservedRange." + error; - } - } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; - } - return null; - }; - - /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - */ - EnumDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto) - return object; - var message = new $root.google.protobuf.EnumDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.value) { - if (!Array.isArray(object.value)) - throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); - message.value = []; - for (var i = 0; i < object.value.length; ++i) { - if (typeof object.value[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); - message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); - } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (var i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); - } - } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (var i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); - } - return message; - }; - - /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.value = []; - object.reservedRange = []; - object.reservedName = []; - } - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value && message.value.length) { - object.value = []; - for (var j = 0; j < message.value.length; ++j) - object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); - } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (var j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; - } - return object; - }; - - /** - * Converts this EnumDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - EnumDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for OperationMetadata + * @function getTypeUrl + * @memberof google.cloud.batch.v1.OperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.OperationMetadata"; + }; - /** - * Gets the default type url for EnumDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; - }; + return OperationMetadata; + })(); - EnumDescriptorProto.EnumReservedRange = (function() { + v1.Job = (function() { - /** - * Properties of an EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @interface IEnumReservedRange - * @property {number|null} [start] EnumReservedRange start - * @property {number|null} [end] EnumReservedRange end - */ + /** + * Properties of a Job. + * @memberof google.cloud.batch.v1 + * @interface IJob + * @property {string|null} [name] Job name + * @property {string|null} [uid] Job uid + * @property {number|Long|null} [priority] Job priority + * @property {Array.|null} [taskGroups] Job taskGroups + * @property {google.cloud.batch.v1.IAllocationPolicy|null} [allocationPolicy] Job allocationPolicy + * @property {Object.|null} [labels] Job labels + * @property {google.cloud.batch.v1.IJobStatus|null} [status] Job status + * @property {google.protobuf.ITimestamp|null} [createTime] Job createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Job updateTime + * @property {google.cloud.batch.v1.ILogsPolicy|null} [logsPolicy] Job logsPolicy + * @property {Array.|null} [notifications] Job notifications + */ - /** - * Constructs a new EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @classdesc Represents an EnumReservedRange. - * @implements IEnumReservedRange - * @constructor - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - */ - function EnumReservedRange(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]]; - } + /** + * Constructs a new Job. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a Job. + * @implements IJob + * @constructor + * @param {google.cloud.batch.v1.IJob=} [properties] Properties to set + */ + function Job(properties) { + this.taskGroups = []; + this.labels = {}; + this.notifications = []; + 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]]; + } - /** - * EnumReservedRange start. - * @member {number} start - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.start = 0; + /** + * Job name. + * @member {string} name + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.name = ""; - /** - * EnumReservedRange end. - * @member {number} end - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.end = 0; + /** + * Job uid. + * @member {string} uid + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.uid = ""; - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance - */ - EnumReservedRange.create = function create(properties) { - return new EnumReservedRange(properties); - }; + /** + * Job priority. + * @member {number|Long} priority + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.priority = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; + /** + * Job taskGroups. + * @member {Array.} taskGroups + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.taskGroups = $util.emptyArray; - /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Job allocationPolicy. + * @member {google.cloud.batch.v1.IAllocationPolicy|null|undefined} allocationPolicy + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.allocationPolicy = null; - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Job labels. + * @member {Object.} labels + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.labels = $util.emptyObject; - /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Job status. + * @member {google.cloud.batch.v1.IJobStatus|null|undefined} status + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.status = null; - /** - * Verifies an EnumReservedRange message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; + /** + * Job createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.createTime = null; - /** - * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - */ - EnumReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) - return object; - var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; + /** + * Job updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.updateTime = null; - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - return object; - }; + /** + * Job logsPolicy. + * @member {google.cloud.batch.v1.ILogsPolicy|null|undefined} logsPolicy + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.logsPolicy = null; - /** - * Converts this EnumReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - * @returns {Object.} JSON object - */ - EnumReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Job notifications. + * @member {Array.} notifications + * @memberof google.cloud.batch.v1.Job + * @instance + */ + Job.prototype.notifications = $util.emptyArray; - /** - * Gets the default type url for EnumReservedRange - * @function getTypeUrl - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; - }; + /** + * Creates a new Job instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.Job + * @static + * @param {google.cloud.batch.v1.IJob=} [properties] Properties to set + * @returns {google.cloud.batch.v1.Job} Job instance + */ + Job.create = function create(properties) { + return new Job(properties); + }; - return EnumReservedRange; - })(); + /** + * Encodes the specified Job message. Does not implicitly {@link google.cloud.batch.v1.Job.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.Job + * @static + * @param {google.cloud.batch.v1.IJob} message Job message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Job.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uid); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.priority); + if (message.taskGroups != null && message.taskGroups.length) + for (var i = 0; i < message.taskGroups.length; ++i) + $root.google.cloud.batch.v1.TaskGroup.encode(message.taskGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.allocationPolicy != null && Object.hasOwnProperty.call(message, "allocationPolicy")) + $root.google.cloud.batch.v1.AllocationPolicy.encode(message.allocationPolicy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.cloud.batch.v1.JobStatus.encode(message.status, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.logsPolicy != null && Object.hasOwnProperty.call(message, "logsPolicy")) + $root.google.cloud.batch.v1.LogsPolicy.encode(message.logsPolicy, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.notifications != null && message.notifications.length) + for (var i = 0; i < message.notifications.length; ++i) + $root.google.cloud.batch.v1.JobNotification.encode(message.notifications[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + return writer; + }; - return EnumDescriptorProto; - })(); + /** + * Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Job.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.Job + * @static + * @param {google.cloud.batch.v1.IJob} message Job message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Job.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - protobuf.EnumValueDescriptorProto = (function() { + /** + * Decodes a Job message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.Job + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.Job} Job + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Job.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Job(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.uid = reader.string(); + break; + } + case 3: { + message.priority = reader.int64(); + break; + } + case 4: { + if (!(message.taskGroups && message.taskGroups.length)) + message.taskGroups = []; + message.taskGroups.push($root.google.cloud.batch.v1.TaskGroup.decode(reader, reader.uint32())); + break; + } + case 7: { + message.allocationPolicy = $root.google.cloud.batch.v1.AllocationPolicy.decode(reader, reader.uint32()); + break; + } + case 8: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 9: { + message.status = $root.google.cloud.batch.v1.JobStatus.decode(reader, reader.uint32()); + break; + } + case 11: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.logsPolicy = $root.google.cloud.batch.v1.LogsPolicy.decode(reader, reader.uint32()); + break; + } + case 14: { + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.google.cloud.batch.v1.JobNotification.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of an EnumValueDescriptorProto. - * @memberof google.protobuf - * @interface IEnumValueDescriptorProto - * @property {string|null} [name] EnumValueDescriptorProto name - * @property {number|null} [number] EnumValueDescriptorProto number - * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options - */ + /** + * Decodes a Job message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.Job + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.Job} Job + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Job.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new EnumValueDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto - * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - */ - function EnumValueDescriptorProto(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]]; - } + /** + * Verifies a Job message. + * @function verify + * @memberof google.cloud.batch.v1.Job + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Job.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority) && !(message.priority && $util.isInteger(message.priority.low) && $util.isInteger(message.priority.high))) + return "priority: integer|Long expected"; + if (message.taskGroups != null && message.hasOwnProperty("taskGroups")) { + if (!Array.isArray(message.taskGroups)) + return "taskGroups: array expected"; + for (var i = 0; i < message.taskGroups.length; ++i) { + var error = $root.google.cloud.batch.v1.TaskGroup.verify(message.taskGroups[i]); + if (error) + return "taskGroups." + error; + } + } + if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) { + var error = $root.google.cloud.batch.v1.AllocationPolicy.verify(message.allocationPolicy); + if (error) + return "allocationPolicy." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.cloud.batch.v1.JobStatus.verify(message.status); + if (error) + return "status." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.logsPolicy != null && message.hasOwnProperty("logsPolicy")) { + var error = $root.google.cloud.batch.v1.LogsPolicy.verify(message.logsPolicy); + if (error) + return "logsPolicy." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (var i = 0; i < message.notifications.length; ++i) { + var error = $root.google.cloud.batch.v1.JobNotification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + return null; + }; - /** - * EnumValueDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.name = ""; + /** + * Creates a Job message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.Job + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.Job} Job + */ + Job.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.Job) + return object; + var message = new $root.google.cloud.batch.v1.Job(); + if (object.name != null) + message.name = String(object.name); + if (object.uid != null) + message.uid = String(object.uid); + if (object.priority != null) + if ($util.Long) + (message.priority = $util.Long.fromValue(object.priority)).unsigned = false; + else if (typeof object.priority === "string") + message.priority = parseInt(object.priority, 10); + else if (typeof object.priority === "number") + message.priority = object.priority; + else if (typeof object.priority === "object") + message.priority = new $util.LongBits(object.priority.low >>> 0, object.priority.high >>> 0).toNumber(); + if (object.taskGroups) { + if (!Array.isArray(object.taskGroups)) + throw TypeError(".google.cloud.batch.v1.Job.taskGroups: array expected"); + message.taskGroups = []; + for (var i = 0; i < object.taskGroups.length; ++i) { + if (typeof object.taskGroups[i] !== "object") + throw TypeError(".google.cloud.batch.v1.Job.taskGroups: object expected"); + message.taskGroups[i] = $root.google.cloud.batch.v1.TaskGroup.fromObject(object.taskGroups[i]); + } + } + if (object.allocationPolicy != null) { + if (typeof object.allocationPolicy !== "object") + throw TypeError(".google.cloud.batch.v1.Job.allocationPolicy: object expected"); + message.allocationPolicy = $root.google.cloud.batch.v1.AllocationPolicy.fromObject(object.allocationPolicy); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.batch.v1.Job.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.batch.v1.Job.status: object expected"); + message.status = $root.google.cloud.batch.v1.JobStatus.fromObject(object.status); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.batch.v1.Job.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.batch.v1.Job.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.logsPolicy != null) { + if (typeof object.logsPolicy !== "object") + throw TypeError(".google.cloud.batch.v1.Job.logsPolicy: object expected"); + message.logsPolicy = $root.google.cloud.batch.v1.LogsPolicy.fromObject(object.logsPolicy); + } + if (object.notifications) { + if (!Array.isArray(object.notifications)) + throw TypeError(".google.cloud.batch.v1.Job.notifications: array expected"); + message.notifications = []; + for (var i = 0; i < object.notifications.length; ++i) { + if (typeof object.notifications[i] !== "object") + throw TypeError(".google.cloud.batch.v1.Job.notifications: object expected"); + message.notifications[i] = $root.google.cloud.batch.v1.JobNotification.fromObject(object.notifications[i]); + } + } + return message; + }; - /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.number = 0; + /** + * Creates a plain object from a Job message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.Job + * @static + * @param {google.cloud.batch.v1.Job} message Job + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Job.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.taskGroups = []; + object.notifications = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.uid = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.priority = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.priority = options.longs === String ? "0" : 0; + object.allocationPolicy = null; + object.status = null; + object.createTime = null; + object.updateTime = null; + object.logsPolicy = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.priority != null && message.hasOwnProperty("priority")) + if (typeof message.priority === "number") + object.priority = options.longs === String ? String(message.priority) : message.priority; + else + object.priority = options.longs === String ? $util.Long.prototype.toString.call(message.priority) : options.longs === Number ? new $util.LongBits(message.priority.low >>> 0, message.priority.high >>> 0).toNumber() : message.priority; + if (message.taskGroups && message.taskGroups.length) { + object.taskGroups = []; + for (var j = 0; j < message.taskGroups.length; ++j) + object.taskGroups[j] = $root.google.cloud.batch.v1.TaskGroup.toObject(message.taskGroups[j], options); + } + if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) + object.allocationPolicy = $root.google.cloud.batch.v1.AllocationPolicy.toObject(message.allocationPolicy, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.cloud.batch.v1.JobStatus.toObject(message.status, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.logsPolicy != null && message.hasOwnProperty("logsPolicy")) + object.logsPolicy = $root.google.cloud.batch.v1.LogsPolicy.toObject(message.logsPolicy, options); + if (message.notifications && message.notifications.length) { + object.notifications = []; + for (var j = 0; j < message.notifications.length; ++j) + object.notifications[j] = $root.google.cloud.batch.v1.JobNotification.toObject(message.notifications[j], options); + } + return object; + }; - /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.options = null; + /** + * Converts this Job to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.Job + * @instance + * @returns {Object.} JSON object + */ + Job.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance - */ - EnumValueDescriptorProto.create = function create(properties) { - return new EnumValueDescriptorProto(properties); - }; + /** + * Gets the default type url for Job + * @function getTypeUrl + * @memberof google.cloud.batch.v1.Job + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Job.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.Job"; + }; - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + return Job; + })(); - /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v1.LogsPolicy = (function() { - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.number = reader.int32(); - break; - } - case 3: { - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; + /** + * Properties of a LogsPolicy. + * @memberof google.cloud.batch.v1 + * @interface ILogsPolicy + * @property {google.cloud.batch.v1.LogsPolicy.Destination|null} [destination] LogsPolicy destination + * @property {string|null} [logsPath] LogsPolicy logsPath + */ + + /** + * Constructs a new LogsPolicy. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a LogsPolicy. + * @implements ILogsPolicy + * @constructor + * @param {google.cloud.batch.v1.ILogsPolicy=} [properties] Properties to set + */ + function LogsPolicy(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]]; } - } - return message; - }; - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * LogsPolicy destination. + * @member {google.cloud.batch.v1.LogsPolicy.Destination} destination + * @memberof google.cloud.batch.v1.LogsPolicy + * @instance + */ + LogsPolicy.prototype.destination = 0; - /** - * Verifies an EnumValueDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumValueDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumValueOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + /** + * LogsPolicy logsPath. + * @member {string} logsPath + * @memberof google.cloud.batch.v1.LogsPolicy + * @instance + */ + LogsPolicy.prototype.logsPath = ""; - /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - */ - EnumValueDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) - return object; - var message = new $root.google.protobuf.EnumValueDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); - } - return message; - }; + /** + * Creates a new LogsPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.LogsPolicy + * @static + * @param {google.cloud.batch.v1.ILogsPolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1.LogsPolicy} LogsPolicy instance + */ + LogsPolicy.create = function create(properties) { + return new LogsPolicy(properties); + }; - /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumValueDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.number = 0; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); - return object; - }; + /** + * Encodes the specified LogsPolicy message. Does not implicitly {@link google.cloud.batch.v1.LogsPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.LogsPolicy + * @static + * @param {google.cloud.batch.v1.ILogsPolicy} message LogsPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LogsPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.destination); + if (message.logsPath != null && Object.hasOwnProperty.call(message, "logsPath")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.logsPath); + return writer; + }; - /** - * Converts this EnumValueDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - EnumValueDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified LogsPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LogsPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.LogsPolicy + * @static + * @param {google.cloud.batch.v1.ILogsPolicy} message LogsPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LogsPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for EnumValueDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; - }; + /** + * Decodes a LogsPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.LogsPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.LogsPolicy} LogsPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LogsPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.LogsPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.destination = reader.int32(); + break; + } + case 2: { + message.logsPath = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return EnumValueDescriptorProto; - })(); + /** + * Decodes a LogsPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.LogsPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.LogsPolicy} LogsPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LogsPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - protobuf.ServiceDescriptorProto = (function() { + /** + * Verifies a LogsPolicy message. + * @function verify + * @memberof google.cloud.batch.v1.LogsPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LogsPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.destination != null && message.hasOwnProperty("destination")) + switch (message.destination) { + default: + return "destination: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.logsPath != null && message.hasOwnProperty("logsPath")) + if (!$util.isString(message.logsPath)) + return "logsPath: string expected"; + return null; + }; - /** - * Properties of a ServiceDescriptorProto. - * @memberof google.protobuf - * @interface IServiceDescriptorProto - * @property {string|null} [name] ServiceDescriptorProto name - * @property {Array.|null} [method] ServiceDescriptorProto method - * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options - */ + /** + * Creates a LogsPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.LogsPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.LogsPolicy} LogsPolicy + */ + LogsPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.LogsPolicy) + return object; + var message = new $root.google.cloud.batch.v1.LogsPolicy(); + switch (object.destination) { + default: + if (typeof object.destination === "number") { + message.destination = object.destination; + break; + } + break; + case "DESTINATION_UNSPECIFIED": + case 0: + message.destination = 0; + break; + case "CLOUD_LOGGING": + case 1: + message.destination = 1; + break; + case "PATH": + case 2: + message.destination = 2; + break; + } + if (object.logsPath != null) + message.logsPath = String(object.logsPath); + return message; + }; - /** - * Constructs a new ServiceDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto - * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - */ - function ServiceDescriptorProto(properties) { - this.method = []; - 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]]; - } + /** + * Creates a plain object from a LogsPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.LogsPolicy + * @static + * @param {google.cloud.batch.v1.LogsPolicy} message LogsPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LogsPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.destination = options.enums === String ? "DESTINATION_UNSPECIFIED" : 0; + object.logsPath = ""; + } + if (message.destination != null && message.hasOwnProperty("destination")) + object.destination = options.enums === String ? $root.google.cloud.batch.v1.LogsPolicy.Destination[message.destination] === undefined ? message.destination : $root.google.cloud.batch.v1.LogsPolicy.Destination[message.destination] : message.destination; + if (message.logsPath != null && message.hasOwnProperty("logsPath")) + object.logsPath = message.logsPath; + return object; + }; - /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.name = ""; + /** + * Converts this LogsPolicy to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.LogsPolicy + * @instance + * @returns {Object.} JSON object + */ + LogsPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; + /** + * Gets the default type url for LogsPolicy + * @function getTypeUrl + * @memberof google.cloud.batch.v1.LogsPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LogsPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.LogsPolicy"; + }; - /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.options = null; + /** + * Destination enum. + * @name google.cloud.batch.v1.LogsPolicy.Destination + * @enum {number} + * @property {number} DESTINATION_UNSPECIFIED=0 DESTINATION_UNSPECIFIED value + * @property {number} CLOUD_LOGGING=1 CLOUD_LOGGING value + * @property {number} PATH=2 PATH value + */ + LogsPolicy.Destination = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DESTINATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD_LOGGING"] = 1; + values[valuesById[2] = "PATH"] = 2; + return values; + })(); - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance - */ - ServiceDescriptorProto.create = function create(properties) { - return new ServiceDescriptorProto(properties); - }; + return LogsPolicy; + })(); - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.method != null && message.method.length) - for (var i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + v1.JobStatus = (function() { - /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a JobStatus. + * @memberof google.cloud.batch.v1 + * @interface IJobStatus + * @property {google.cloud.batch.v1.JobStatus.State|null} [state] JobStatus state + * @property {Array.|null} [statusEvents] JobStatus statusEvents + * @property {Object.|null} [taskGroups] JobStatus taskGroups + * @property {google.protobuf.IDuration|null} [runDuration] JobStatus runDuration + */ - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 3: { - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceDescriptorProto message. - * @function verify - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.method != null && message.hasOwnProperty("method")) { - if (!Array.isArray(message.method)) - return "method: array expected"; - for (var i = 0; i < message.method.length; ++i) { - var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); - if (error) - return "method." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - */ - ServiceDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceDescriptorProto) - return object; - var message = new $root.google.protobuf.ServiceDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.method) { - if (!Array.isArray(object.method)) - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); - message.method = []; - for (var i = 0; i < object.method.length; ++i) { - if (typeof object.method[i] !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); - message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + /** + * Constructs a new JobStatus. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a JobStatus. + * @implements IJobStatus + * @constructor + * @param {google.cloud.batch.v1.IJobStatus=} [properties] Properties to set + */ + function JobStatus(properties) { + this.statusEvents = []; + this.taskGroups = {}; + 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]]; } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ServiceDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.method = []; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.method && message.method.length) { - object.method = []; - for (var j = 0; j < message.method.length; ++j) - object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); - return object; - }; - - /** - * Converts this ServiceDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - ServiceDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ServiceDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; - }; - - return ServiceDescriptorProto; - })(); - - protobuf.MethodDescriptorProto = (function() { - - /** - * Properties of a MethodDescriptorProto. - * @memberof google.protobuf - * @interface IMethodDescriptorProto - * @property {string|null} [name] MethodDescriptorProto name - * @property {string|null} [inputType] MethodDescriptorProto inputType - * @property {string|null} [outputType] MethodDescriptorProto outputType - * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options - * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming - * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming - */ - /** - * Constructs a new MethodDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto - * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - */ - function MethodDescriptorProto(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]]; - } - - /** - * MethodDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.name = ""; + /** + * JobStatus state. + * @member {google.cloud.batch.v1.JobStatus.State} state + * @memberof google.cloud.batch.v1.JobStatus + * @instance + */ + JobStatus.prototype.state = 0; - /** - * MethodDescriptorProto inputType. - * @member {string} inputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.inputType = ""; + /** + * JobStatus statusEvents. + * @member {Array.} statusEvents + * @memberof google.cloud.batch.v1.JobStatus + * @instance + */ + JobStatus.prototype.statusEvents = $util.emptyArray; - /** - * MethodDescriptorProto outputType. - * @member {string} outputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.outputType = ""; + /** + * JobStatus taskGroups. + * @member {Object.} taskGroups + * @memberof google.cloud.batch.v1.JobStatus + * @instance + */ + JobStatus.prototype.taskGroups = $util.emptyObject; - /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.options = null; + /** + * JobStatus runDuration. + * @member {google.protobuf.IDuration|null|undefined} runDuration + * @memberof google.cloud.batch.v1.JobStatus + * @instance + */ + JobStatus.prototype.runDuration = null; - /** - * MethodDescriptorProto clientStreaming. - * @member {boolean} clientStreaming - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.clientStreaming = false; + /** + * Creates a new JobStatus instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.JobStatus + * @static + * @param {google.cloud.batch.v1.IJobStatus=} [properties] Properties to set + * @returns {google.cloud.batch.v1.JobStatus} JobStatus instance + */ + JobStatus.create = function create(properties) { + return new JobStatus(properties); + }; - /** - * MethodDescriptorProto serverStreaming. - * @member {boolean} serverStreaming - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.serverStreaming = false; + /** + * Encodes the specified JobStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.JobStatus + * @static + * @param {google.cloud.batch.v1.IJobStatus} message JobStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JobStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.statusEvents != null && message.statusEvents.length) + for (var i = 0; i < message.statusEvents.length; ++i) + $root.google.cloud.batch.v1.StatusEvent.encode(message.statusEvents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.taskGroups != null && Object.hasOwnProperty.call(message, "taskGroups")) + for (var keys = Object.keys(message.taskGroups), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.encode(message.taskGroups[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.runDuration != null && Object.hasOwnProperty.call(message, "runDuration")) + $root.google.protobuf.Duration.encode(message.runDuration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance - */ - MethodDescriptorProto.create = function create(properties) { - return new MethodDescriptorProto(properties); - }; + /** + * Encodes the specified JobStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.JobStatus + * @static + * @param {google.cloud.batch.v1.IJobStatus} message JobStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JobStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); - return writer; - }; + /** + * Decodes a JobStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.JobStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.JobStatus} JobStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JobStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobStatus(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.state = reader.int32(); + break; + } + case 2: { + if (!(message.statusEvents && message.statusEvents.length)) + message.statusEvents = []; + message.statusEvents.push($root.google.cloud.batch.v1.StatusEvent.decode(reader, reader.uint32())); + break; + } + case 4: { + if (message.taskGroups === $util.emptyObject) + message.taskGroups = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.taskGroups[key] = value; + break; + } + case 5: { + message.runDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a JobStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.JobStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.JobStatus} JobStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JobStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.inputType = reader.string(); - break; + /** + * Verifies a JobStatus message. + * @function verify + * @memberof google.cloud.batch.v1.JobStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + JobStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.statusEvents != null && message.hasOwnProperty("statusEvents")) { + if (!Array.isArray(message.statusEvents)) + return "statusEvents: array expected"; + for (var i = 0; i < message.statusEvents.length; ++i) { + var error = $root.google.cloud.batch.v1.StatusEvent.verify(message.statusEvents[i]); + if (error) + return "statusEvents." + error; + } } - case 3: { - message.outputType = reader.string(); - break; + if (message.taskGroups != null && message.hasOwnProperty("taskGroups")) { + if (!$util.isObject(message.taskGroups)) + return "taskGroups: object expected"; + var key = Object.keys(message.taskGroups); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify(message.taskGroups[key[i]]); + if (error) + return "taskGroups." + error; + } } - case 4: { - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); - break; + if (message.runDuration != null && message.hasOwnProperty("runDuration")) { + var error = $root.google.protobuf.Duration.verify(message.runDuration); + if (error) + return "runDuration." + error; } - case 5: { - message.clientStreaming = reader.bool(); + return null; + }; + + /** + * Creates a JobStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.JobStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.JobStatus} JobStatus + */ + JobStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.JobStatus) + return object; + var message = new $root.google.cloud.batch.v1.JobStatus(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } break; - } - case 6: { - message.serverStreaming = reader.bool(); + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "QUEUED": + case 1: + message.state = 1; + break; + case "SCHEDULED": + case 2: + message.state = 2; + break; + case "RUNNING": + case 3: + message.state = 3; + break; + case "SUCCEEDED": + case 4: + message.state = 4; + break; + case "FAILED": + case 5: + message.state = 5; + break; + case "DELETION_IN_PROGRESS": + case 6: + message.state = 6; break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MethodDescriptorProto message. - * @function verify - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.inputType != null && message.hasOwnProperty("inputType")) - if (!$util.isString(message.inputType)) - return "inputType: string expected"; - if (message.outputType != null && message.hasOwnProperty("outputType")) - if (!$util.isString(message.outputType)) - return "outputType: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MethodOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - if (typeof message.clientStreaming !== "boolean") - return "clientStreaming: boolean expected"; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - if (typeof message.serverStreaming !== "boolean") - return "serverStreaming: boolean expected"; - return null; - }; + if (object.statusEvents) { + if (!Array.isArray(object.statusEvents)) + throw TypeError(".google.cloud.batch.v1.JobStatus.statusEvents: array expected"); + message.statusEvents = []; + for (var i = 0; i < object.statusEvents.length; ++i) { + if (typeof object.statusEvents[i] !== "object") + throw TypeError(".google.cloud.batch.v1.JobStatus.statusEvents: object expected"); + message.statusEvents[i] = $root.google.cloud.batch.v1.StatusEvent.fromObject(object.statusEvents[i]); + } + } + if (object.taskGroups) { + if (typeof object.taskGroups !== "object") + throw TypeError(".google.cloud.batch.v1.JobStatus.taskGroups: object expected"); + message.taskGroups = {}; + for (var keys = Object.keys(object.taskGroups), i = 0; i < keys.length; ++i) { + if (typeof object.taskGroups[keys[i]] !== "object") + throw TypeError(".google.cloud.batch.v1.JobStatus.taskGroups: object expected"); + message.taskGroups[keys[i]] = $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.fromObject(object.taskGroups[keys[i]]); + } + } + if (object.runDuration != null) { + if (typeof object.runDuration !== "object") + throw TypeError(".google.cloud.batch.v1.JobStatus.runDuration: object expected"); + message.runDuration = $root.google.protobuf.Duration.fromObject(object.runDuration); + } + return message; + }; - /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - */ - MethodDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodDescriptorProto) - return object; - var message = new $root.google.protobuf.MethodDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.inputType != null) - message.inputType = String(object.inputType); - if (object.outputType != null) - message.outputType = String(object.outputType); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); - } - if (object.clientStreaming != null) - message.clientStreaming = Boolean(object.clientStreaming); - if (object.serverStreaming != null) - message.serverStreaming = Boolean(object.serverStreaming); - return message; - }; + /** + * Creates a plain object from a JobStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.JobStatus + * @static + * @param {google.cloud.batch.v1.JobStatus} message JobStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + JobStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.statusEvents = []; + if (options.objects || options.defaults) + object.taskGroups = {}; + if (options.defaults) { + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.runDuration = null; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.batch.v1.JobStatus.State[message.state] === undefined ? message.state : $root.google.cloud.batch.v1.JobStatus.State[message.state] : message.state; + if (message.statusEvents && message.statusEvents.length) { + object.statusEvents = []; + for (var j = 0; j < message.statusEvents.length; ++j) + object.statusEvents[j] = $root.google.cloud.batch.v1.StatusEvent.toObject(message.statusEvents[j], options); + } + var keys2; + if (message.taskGroups && (keys2 = Object.keys(message.taskGroups)).length) { + object.taskGroups = {}; + for (var j = 0; j < keys2.length; ++j) + object.taskGroups[keys2[j]] = $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.toObject(message.taskGroups[keys2[j]], options); + } + if (message.runDuration != null && message.hasOwnProperty("runDuration")) + object.runDuration = $root.google.protobuf.Duration.toObject(message.runDuration, options); + return object; + }; - /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MethodDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.inputType = ""; - object.outputType = ""; - object.options = null; - object.clientStreaming = false; - object.serverStreaming = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.inputType != null && message.hasOwnProperty("inputType")) - object.inputType = message.inputType; - if (message.outputType != null && message.hasOwnProperty("outputType")) - object.outputType = message.outputType; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - object.clientStreaming = message.clientStreaming; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - object.serverStreaming = message.serverStreaming; - return object; - }; + /** + * Converts this JobStatus to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.JobStatus + * @instance + * @returns {Object.} JSON object + */ + JobStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this MethodDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.MethodDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - MethodDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for JobStatus + * @function getTypeUrl + * @memberof google.cloud.batch.v1.JobStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + JobStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.JobStatus"; + }; - /** - * Gets the default type url for MethodDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; - }; + JobStatus.InstanceStatus = (function() { - return MethodDescriptorProto; - })(); + /** + * Properties of an InstanceStatus. + * @memberof google.cloud.batch.v1.JobStatus + * @interface IInstanceStatus + * @property {string|null} [machineType] InstanceStatus machineType + * @property {google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|null} [provisioningModel] InstanceStatus provisioningModel + * @property {number|Long|null} [taskPack] InstanceStatus taskPack + * @property {google.cloud.batch.v1.AllocationPolicy.IDisk|null} [bootDisk] InstanceStatus bootDisk + */ - protobuf.FileOptions = (function() { + /** + * Constructs a new InstanceStatus. + * @memberof google.cloud.batch.v1.JobStatus + * @classdesc Represents an InstanceStatus. + * @implements IInstanceStatus + * @constructor + * @param {google.cloud.batch.v1.JobStatus.IInstanceStatus=} [properties] Properties to set + */ + function InstanceStatus(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]]; + } - /** - * Properties of a FileOptions. - * @memberof google.protobuf - * @interface IFileOptions - * @property {string|null} [javaPackage] FileOptions javaPackage - * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname - * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles - * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash - * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 - * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor - * @property {string|null} [goPackage] FileOptions goPackage - * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices - * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices - * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices - * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices - * @property {boolean|null} [deprecated] FileOptions deprecated - * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas - * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix - * @property {string|null} [csharpNamespace] FileOptions csharpNamespace - * @property {string|null} [swiftPrefix] FileOptions swiftPrefix - * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix - * @property {string|null} [phpNamespace] FileOptions phpNamespace - * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace - * @property {string|null} [rubyPackage] FileOptions rubyPackage - * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption - * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition - */ + /** + * InstanceStatus machineType. + * @member {string} machineType + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @instance + */ + InstanceStatus.prototype.machineType = ""; - /** - * Constructs a new FileOptions. - * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions - * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - */ - function FileOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.resourceDefinition"] = []; - 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]]; - } + /** + * InstanceStatus provisioningModel. + * @member {google.cloud.batch.v1.AllocationPolicy.ProvisioningModel} provisioningModel + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @instance + */ + InstanceStatus.prototype.provisioningModel = 0; - /** - * FileOptions javaPackage. - * @member {string} javaPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaPackage = ""; + /** + * InstanceStatus taskPack. + * @member {number|Long} taskPack + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @instance + */ + InstanceStatus.prototype.taskPack = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * FileOptions javaOuterClassname. - * @member {string} javaOuterClassname - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaOuterClassname = ""; + /** + * InstanceStatus bootDisk. + * @member {google.cloud.batch.v1.AllocationPolicy.IDisk|null|undefined} bootDisk + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @instance + */ + InstanceStatus.prototype.bootDisk = null; - /** - * FileOptions javaMultipleFiles. - * @member {boolean} javaMultipleFiles - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaMultipleFiles = false; + /** + * Creates a new InstanceStatus instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @static + * @param {google.cloud.batch.v1.JobStatus.IInstanceStatus=} [properties] Properties to set + * @returns {google.cloud.batch.v1.JobStatus.InstanceStatus} InstanceStatus instance + */ + InstanceStatus.create = function create(properties) { + return new InstanceStatus(properties); + }; - /** - * FileOptions javaGenerateEqualsAndHash. - * @member {boolean} javaGenerateEqualsAndHash - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenerateEqualsAndHash = false; + /** + * Encodes the specified InstanceStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.InstanceStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @static + * @param {google.cloud.batch.v1.JobStatus.IInstanceStatus} message InstanceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); + if (message.provisioningModel != null && Object.hasOwnProperty.call(message, "provisioningModel")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.provisioningModel); + if (message.taskPack != null && Object.hasOwnProperty.call(message, "taskPack")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.taskPack); + if (message.bootDisk != null && Object.hasOwnProperty.call(message, "bootDisk")) + $root.google.cloud.batch.v1.AllocationPolicy.Disk.encode(message.bootDisk, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * FileOptions javaStringCheckUtf8. - * @member {boolean} javaStringCheckUtf8 - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaStringCheckUtf8 = false; + /** + * Encodes the specified InstanceStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.InstanceStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @static + * @param {google.cloud.batch.v1.JobStatus.IInstanceStatus} message InstanceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * FileOptions optimizeFor. - * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.optimizeFor = 1; + /** + * Decodes an InstanceStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.JobStatus.InstanceStatus} InstanceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobStatus.InstanceStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.machineType = reader.string(); + break; + } + case 2: { + message.provisioningModel = reader.int32(); + break; + } + case 3: { + message.taskPack = reader.int64(); + break; + } + case 4: { + message.bootDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * FileOptions goPackage. - * @member {string} goPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.goPackage = ""; - - /** - * FileOptions ccGenericServices. - * @member {boolean} ccGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccGenericServices = false; - - /** - * FileOptions javaGenericServices. - * @member {boolean} javaGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenericServices = false; + /** + * Decodes an InstanceStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.JobStatus.InstanceStatus} InstanceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * FileOptions pyGenericServices. - * @member {boolean} pyGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.pyGenericServices = false; + /** + * Verifies an InstanceStatus message. + * @function verify + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.machineType != null && message.hasOwnProperty("machineType")) + if (!$util.isString(message.machineType)) + return "machineType: string expected"; + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) + switch (message.provisioningModel) { + default: + return "provisioningModel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.taskPack != null && message.hasOwnProperty("taskPack")) + if (!$util.isInteger(message.taskPack) && !(message.taskPack && $util.isInteger(message.taskPack.low) && $util.isInteger(message.taskPack.high))) + return "taskPack: integer|Long expected"; + if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) { + var error = $root.google.cloud.batch.v1.AllocationPolicy.Disk.verify(message.bootDisk); + if (error) + return "bootDisk." + error; + } + return null; + }; - /** - * FileOptions phpGenericServices. - * @member {boolean} phpGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpGenericServices = false; + /** + * Creates an InstanceStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.JobStatus.InstanceStatus} InstanceStatus + */ + InstanceStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.JobStatus.InstanceStatus) + return object; + var message = new $root.google.cloud.batch.v1.JobStatus.InstanceStatus(); + if (object.machineType != null) + message.machineType = String(object.machineType); + switch (object.provisioningModel) { + default: + if (typeof object.provisioningModel === "number") { + message.provisioningModel = object.provisioningModel; + break; + } + break; + case "PROVISIONING_MODEL_UNSPECIFIED": + case 0: + message.provisioningModel = 0; + break; + case "STANDARD": + case 1: + message.provisioningModel = 1; + break; + case "SPOT": + case 2: + message.provisioningModel = 2; + break; + case "PREEMPTIBLE": + case 3: + message.provisioningModel = 3; + break; + } + if (object.taskPack != null) + if ($util.Long) + (message.taskPack = $util.Long.fromValue(object.taskPack)).unsigned = false; + else if (typeof object.taskPack === "string") + message.taskPack = parseInt(object.taskPack, 10); + else if (typeof object.taskPack === "number") + message.taskPack = object.taskPack; + else if (typeof object.taskPack === "object") + message.taskPack = new $util.LongBits(object.taskPack.low >>> 0, object.taskPack.high >>> 0).toNumber(); + if (object.bootDisk != null) { + if (typeof object.bootDisk !== "object") + throw TypeError(".google.cloud.batch.v1.JobStatus.InstanceStatus.bootDisk: object expected"); + message.bootDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.fromObject(object.bootDisk); + } + return message; + }; - /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.deprecated = false; + /** + * Creates a plain object from an InstanceStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @static + * @param {google.cloud.batch.v1.JobStatus.InstanceStatus} message InstanceStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.machineType = ""; + object.provisioningModel = options.enums === String ? "PROVISIONING_MODEL_UNSPECIFIED" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskPack = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskPack = options.longs === String ? "0" : 0; + object.bootDisk = null; + } + if (message.machineType != null && message.hasOwnProperty("machineType")) + object.machineType = message.machineType; + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) + object.provisioningModel = options.enums === String ? $root.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel[message.provisioningModel] === undefined ? message.provisioningModel : $root.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel[message.provisioningModel] : message.provisioningModel; + if (message.taskPack != null && message.hasOwnProperty("taskPack")) + if (typeof message.taskPack === "number") + object.taskPack = options.longs === String ? String(message.taskPack) : message.taskPack; + else + object.taskPack = options.longs === String ? $util.Long.prototype.toString.call(message.taskPack) : options.longs === Number ? new $util.LongBits(message.taskPack.low >>> 0, message.taskPack.high >>> 0).toNumber() : message.taskPack; + if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) + object.bootDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.toObject(message.bootDisk, options); + return object; + }; - /** - * FileOptions ccEnableArenas. - * @member {boolean} ccEnableArenas - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccEnableArenas = true; + /** + * Converts this InstanceStatus to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @instance + * @returns {Object.} JSON object + */ + InstanceStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileOptions objcClassPrefix. - * @member {string} objcClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.objcClassPrefix = ""; + /** + * Gets the default type url for InstanceStatus + * @function getTypeUrl + * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.JobStatus.InstanceStatus"; + }; - /** - * FileOptions csharpNamespace. - * @member {string} csharpNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.csharpNamespace = ""; + return InstanceStatus; + })(); - /** - * FileOptions swiftPrefix. - * @member {string} swiftPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.swiftPrefix = ""; + JobStatus.TaskGroupStatus = (function() { - /** - * FileOptions phpClassPrefix. - * @member {string} phpClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpClassPrefix = ""; + /** + * Properties of a TaskGroupStatus. + * @memberof google.cloud.batch.v1.JobStatus + * @interface ITaskGroupStatus + * @property {Object.|null} [counts] TaskGroupStatus counts + * @property {Array.|null} [instances] TaskGroupStatus instances + */ - /** - * FileOptions phpNamespace. - * @member {string} phpNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpNamespace = ""; + /** + * Constructs a new TaskGroupStatus. + * @memberof google.cloud.batch.v1.JobStatus + * @classdesc Represents a TaskGroupStatus. + * @implements ITaskGroupStatus + * @constructor + * @param {google.cloud.batch.v1.JobStatus.ITaskGroupStatus=} [properties] Properties to set + */ + function TaskGroupStatus(properties) { + this.counts = {}; + this.instances = []; + 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]]; + } - /** - * FileOptions phpMetadataNamespace. - * @member {string} phpMetadataNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpMetadataNamespace = ""; + /** + * TaskGroupStatus counts. + * @member {Object.} counts + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @instance + */ + TaskGroupStatus.prototype.counts = $util.emptyObject; - /** - * FileOptions rubyPackage. - * @member {string} rubyPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.rubyPackage = ""; + /** + * TaskGroupStatus instances. + * @member {Array.} instances + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @instance + */ + TaskGroupStatus.prototype.instances = $util.emptyArray; - /** - * FileOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * Creates a new TaskGroupStatus instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @static + * @param {google.cloud.batch.v1.JobStatus.ITaskGroupStatus=} [properties] Properties to set + * @returns {google.cloud.batch.v1.JobStatus.TaskGroupStatus} TaskGroupStatus instance + */ + TaskGroupStatus.create = function create(properties) { + return new TaskGroupStatus(properties); + }; - /** - * FileOptions .google.api.resourceDefinition. - * @member {Array.} .google.api.resourceDefinition - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + /** + * Encodes the specified TaskGroupStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @static + * @param {google.cloud.batch.v1.JobStatus.ITaskGroupStatus} message TaskGroupStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskGroupStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.counts != null && Object.hasOwnProperty.call(message, "counts")) + for (var keys = Object.keys(message.counts), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int64(message.counts[keys[i]]).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.batch.v1.JobStatus.InstanceStatus.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a new FileOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - * @returns {google.protobuf.FileOptions} FileOptions instance - */ - FileOptions.create = function create(properties) { - return new FileOptions(properties); - }; + /** + * Encodes the specified TaskGroupStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @static + * @param {google.cloud.batch.v1.JobStatus.ITaskGroupStatus} message TaskGroupStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskGroupStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) - writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) - writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) - writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) - writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) - writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); - if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) - writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) - writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) - for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) - $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); - return writer; - }; + /** + * Decodes a TaskGroupStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.JobStatus.TaskGroupStatus} TaskGroupStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskGroupStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.counts === $util.emptyObject) + message.counts = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.int64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.counts[key] = value; + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.batch.v1.JobStatus.InstanceStatus.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a TaskGroupStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.JobStatus.TaskGroupStatus} TaskGroupStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskGroupStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.javaPackage = reader.string(); - break; - } - case 8: { - message.javaOuterClassname = reader.string(); - break; - } - case 10: { - message.javaMultipleFiles = reader.bool(); - break; - } - case 20: { - message.javaGenerateEqualsAndHash = reader.bool(); - break; - } - case 27: { - message.javaStringCheckUtf8 = reader.bool(); - break; - } - case 9: { - message.optimizeFor = reader.int32(); - break; - } - case 11: { - message.goPackage = reader.string(); - break; - } - case 16: { - message.ccGenericServices = reader.bool(); - break; - } - case 17: { - message.javaGenericServices = reader.bool(); - break; - } - case 18: { - message.pyGenericServices = reader.bool(); - break; - } - case 42: { - message.phpGenericServices = reader.bool(); - break; - } - case 23: { - message.deprecated = reader.bool(); - break; - } - case 31: { - message.ccEnableArenas = reader.bool(); - break; - } - case 36: { - message.objcClassPrefix = reader.string(); - break; - } - case 37: { - message.csharpNamespace = reader.string(); - break; - } - case 39: { - message.swiftPrefix = reader.string(); - break; - } - case 40: { - message.phpClassPrefix = reader.string(); - break; - } - case 41: { - message.phpNamespace = reader.string(); - break; + /** + * Verifies a TaskGroupStatus message. + * @function verify + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskGroupStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.counts != null && message.hasOwnProperty("counts")) { + if (!$util.isObject(message.counts)) + return "counts: object expected"; + var key = Object.keys(message.counts); + for (var i = 0; i < key.length; ++i) + if (!$util.isInteger(message.counts[key[i]]) && !(message.counts[key[i]] && $util.isInteger(message.counts[key[i]].low) && $util.isInteger(message.counts[key[i]].high))) + return "counts: integer|Long{k:string} expected"; + } + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.batch.v1.JobStatus.InstanceStatus.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + return null; + }; + + /** + * Creates a TaskGroupStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.JobStatus.TaskGroupStatus} TaskGroupStatus + */ + TaskGroupStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus) + return object; + var message = new $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus(); + if (object.counts) { + if (typeof object.counts !== "object") + throw TypeError(".google.cloud.batch.v1.JobStatus.TaskGroupStatus.counts: object expected"); + message.counts = {}; + for (var keys = Object.keys(object.counts), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.counts[keys[i]] = $util.Long.fromValue(object.counts[keys[i]])).unsigned = false; + else if (typeof object.counts[keys[i]] === "string") + message.counts[keys[i]] = parseInt(object.counts[keys[i]], 10); + else if (typeof object.counts[keys[i]] === "number") + message.counts[keys[i]] = object.counts[keys[i]]; + else if (typeof object.counts[keys[i]] === "object") + message.counts[keys[i]] = new $util.LongBits(object.counts[keys[i]].low >>> 0, object.counts[keys[i]].high >>> 0).toNumber(); + } + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.batch.v1.JobStatus.TaskGroupStatus.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.batch.v1.JobStatus.TaskGroupStatus.instances: object expected"); + message.instances[i] = $root.google.cloud.batch.v1.JobStatus.InstanceStatus.fromObject(object.instances[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a TaskGroupStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @static + * @param {google.cloud.batch.v1.JobStatus.TaskGroupStatus} message TaskGroupStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TaskGroupStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.objects || options.defaults) + object.counts = {}; + var keys2; + if (message.counts && (keys2 = Object.keys(message.counts)).length) { + object.counts = {}; + for (var j = 0; j < keys2.length; ++j) + if (typeof message.counts[keys2[j]] === "number") + object.counts[keys2[j]] = options.longs === String ? String(message.counts[keys2[j]]) : message.counts[keys2[j]]; + else + object.counts[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.counts[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.counts[keys2[j]].low >>> 0, message.counts[keys2[j]].high >>> 0).toNumber() : message.counts[keys2[j]]; + } + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.batch.v1.JobStatus.InstanceStatus.toObject(message.instances[j], options); + } + return object; + }; + + /** + * Converts this TaskGroupStatus to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @instance + * @returns {Object.} JSON object + */ + TaskGroupStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TaskGroupStatus + * @function getTypeUrl + * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TaskGroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.JobStatus.TaskGroupStatus"; + }; + + return TaskGroupStatus; + })(); + + /** + * State enum. + * @name google.cloud.batch.v1.JobStatus.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} SCHEDULED=2 SCHEDULED value + * @property {number} RUNNING=3 RUNNING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} FAILED=5 FAILED value + * @property {number} DELETION_IN_PROGRESS=6 DELETION_IN_PROGRESS value + */ + JobStatus.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "SCHEDULED"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "DELETION_IN_PROGRESS"] = 6; + return values; + })(); + + return JobStatus; + })(); + + v1.JobNotification = (function() { + + /** + * Properties of a JobNotification. + * @memberof google.cloud.batch.v1 + * @interface IJobNotification + * @property {string|null} [pubsubTopic] JobNotification pubsubTopic + * @property {google.cloud.batch.v1.JobNotification.IMessage|null} [message] JobNotification message + */ + + /** + * Constructs a new JobNotification. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a JobNotification. + * @implements IJobNotification + * @constructor + * @param {google.cloud.batch.v1.IJobNotification=} [properties] Properties to set + */ + function JobNotification(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]]; + } + + /** + * JobNotification pubsubTopic. + * @member {string} pubsubTopic + * @memberof google.cloud.batch.v1.JobNotification + * @instance + */ + JobNotification.prototype.pubsubTopic = ""; + + /** + * JobNotification message. + * @member {google.cloud.batch.v1.JobNotification.IMessage|null|undefined} message + * @memberof google.cloud.batch.v1.JobNotification + * @instance + */ + JobNotification.prototype.message = null; + + /** + * Creates a new JobNotification instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.JobNotification + * @static + * @param {google.cloud.batch.v1.IJobNotification=} [properties] Properties to set + * @returns {google.cloud.batch.v1.JobNotification} JobNotification instance + */ + JobNotification.create = function create(properties) { + return new JobNotification(properties); + }; + + /** + * Encodes the specified JobNotification message. Does not implicitly {@link google.cloud.batch.v1.JobNotification.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.JobNotification + * @static + * @param {google.cloud.batch.v1.IJobNotification} message JobNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JobNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pubsubTopic != null && Object.hasOwnProperty.call(message, "pubsubTopic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.pubsubTopic); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + $root.google.cloud.batch.v1.JobNotification.Message.encode(message.message, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified JobNotification message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobNotification.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.JobNotification + * @static + * @param {google.cloud.batch.v1.IJobNotification} message JobNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JobNotification.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a JobNotification message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.JobNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.JobNotification} JobNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JobNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobNotification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.pubsubTopic = reader.string(); + break; + } + case 2: { + message.message = $root.google.cloud.batch.v1.JobNotification.Message.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - case 44: { - message.phpMetadataNamespace = reader.string(); - break; + return message; + }; + + /** + * Decodes a JobNotification message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.JobNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.JobNotification} JobNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JobNotification.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a JobNotification message. + * @function verify + * @memberof google.cloud.batch.v1.JobNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + JobNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) + if (!$util.isString(message.pubsubTopic)) + return "pubsubTopic: string expected"; + if (message.message != null && message.hasOwnProperty("message")) { + var error = $root.google.cloud.batch.v1.JobNotification.Message.verify(message.message); + if (error) + return "message." + error; } - case 45: { - message.rubyPackage = reader.string(); - break; + return null; + }; + + /** + * Creates a JobNotification message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.JobNotification + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.JobNotification} JobNotification + */ + JobNotification.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.JobNotification) + return object; + var message = new $root.google.cloud.batch.v1.JobNotification(); + if (object.pubsubTopic != null) + message.pubsubTopic = String(object.pubsubTopic); + if (object.message != null) { + if (typeof object.message !== "object") + throw TypeError(".google.cloud.batch.v1.JobNotification.message: object expected"); + message.message = $root.google.cloud.batch.v1.JobNotification.Message.fromObject(object.message); } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + return message; + }; + + /** + * Creates a plain object from a JobNotification message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.JobNotification + * @static + * @param {google.cloud.batch.v1.JobNotification} message JobNotification + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + JobNotification.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.pubsubTopic = ""; + object.message = null; } - case 1053: { - if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) - message[".google.api.resourceDefinition"] = []; - message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); - break; + if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) + object.pubsubTopic = message.pubsubTopic; + if (message.message != null && message.hasOwnProperty("message")) + object.message = $root.google.cloud.batch.v1.JobNotification.Message.toObject(message.message, options); + return object; + }; + + /** + * Converts this JobNotification to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.JobNotification + * @instance + * @returns {Object.} JSON object + */ + JobNotification.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for JobNotification + * @function getTypeUrl + * @memberof google.cloud.batch.v1.JobNotification + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + JobNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return typeUrlPrefix + "/google.cloud.batch.v1.JobNotification"; + }; - /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + JobNotification.Message = (function() { - /** - * Verifies a FileOptions message. - * @function verify - * @memberof google.protobuf.FileOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - if (!$util.isString(message.javaPackage)) - return "javaPackage: string expected"; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - if (!$util.isString(message.javaOuterClassname)) - return "javaOuterClassname: string expected"; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - if (typeof message.javaMultipleFiles !== "boolean") - return "javaMultipleFiles: boolean expected"; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - if (typeof message.javaGenerateEqualsAndHash !== "boolean") - return "javaGenerateEqualsAndHash: boolean expected"; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - if (typeof message.javaStringCheckUtf8 !== "boolean") - return "javaStringCheckUtf8: boolean expected"; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - switch (message.optimizeFor) { - default: - return "optimizeFor: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - if (!$util.isString(message.goPackage)) - return "goPackage: string expected"; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - if (typeof message.ccGenericServices !== "boolean") - return "ccGenericServices: boolean expected"; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - if (typeof message.javaGenericServices !== "boolean") - return "javaGenericServices: boolean expected"; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - if (typeof message.pyGenericServices !== "boolean") - return "pyGenericServices: boolean expected"; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - if (typeof message.phpGenericServices !== "boolean") - return "phpGenericServices: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - if (typeof message.ccEnableArenas !== "boolean") - return "ccEnableArenas: boolean expected"; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - if (!$util.isString(message.objcClassPrefix)) - return "objcClassPrefix: string expected"; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - if (!$util.isString(message.csharpNamespace)) - return "csharpNamespace: string expected"; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - if (!$util.isString(message.swiftPrefix)) - return "swiftPrefix: string expected"; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - if (!$util.isString(message.phpClassPrefix)) - return "phpClassPrefix: string expected"; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - if (!$util.isString(message.phpNamespace)) - return "phpNamespace: string expected"; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - if (!$util.isString(message.phpMetadataNamespace)) - return "phpMetadataNamespace: string expected"; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - if (!$util.isString(message.rubyPackage)) - return "rubyPackage: string expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { - if (!Array.isArray(message[".google.api.resourceDefinition"])) - return ".google.api.resourceDefinition: array expected"; - for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { - var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); - if (error) - return ".google.api.resourceDefinition." + error; - } - } - return null; - }; - - /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileOptions} FileOptions - */ - FileOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileOptions) - return object; - var message = new $root.google.protobuf.FileOptions(); - if (object.javaPackage != null) - message.javaPackage = String(object.javaPackage); - if (object.javaOuterClassname != null) - message.javaOuterClassname = String(object.javaOuterClassname); - if (object.javaMultipleFiles != null) - message.javaMultipleFiles = Boolean(object.javaMultipleFiles); - if (object.javaGenerateEqualsAndHash != null) - message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); - if (object.javaStringCheckUtf8 != null) - message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); - switch (object.optimizeFor) { - default: - if (typeof object.optimizeFor === "number") { - message.optimizeFor = object.optimizeFor; - break; - } - break; - case "SPEED": - case 1: - message.optimizeFor = 1; - break; - case "CODE_SIZE": - case 2: - message.optimizeFor = 2; - break; - case "LITE_RUNTIME": - case 3: - message.optimizeFor = 3; - break; - } - if (object.goPackage != null) - message.goPackage = String(object.goPackage); - if (object.ccGenericServices != null) - message.ccGenericServices = Boolean(object.ccGenericServices); - if (object.javaGenericServices != null) - message.javaGenericServices = Boolean(object.javaGenericServices); - if (object.pyGenericServices != null) - message.pyGenericServices = Boolean(object.pyGenericServices); - if (object.phpGenericServices != null) - message.phpGenericServices = Boolean(object.phpGenericServices); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.ccEnableArenas != null) - message.ccEnableArenas = Boolean(object.ccEnableArenas); - if (object.objcClassPrefix != null) - message.objcClassPrefix = String(object.objcClassPrefix); - if (object.csharpNamespace != null) - message.csharpNamespace = String(object.csharpNamespace); - if (object.swiftPrefix != null) - message.swiftPrefix = String(object.swiftPrefix); - if (object.phpClassPrefix != null) - message.phpClassPrefix = String(object.phpClassPrefix); - if (object.phpNamespace != null) - message.phpNamespace = String(object.phpNamespace); - if (object.phpMetadataNamespace != null) - message.phpMetadataNamespace = String(object.phpMetadataNamespace); - if (object.rubyPackage != null) - message.rubyPackage = String(object.rubyPackage); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.resourceDefinition"]) { - if (!Array.isArray(object[".google.api.resourceDefinition"])) - throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); - message[".google.api.resourceDefinition"] = []; - for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { - if (typeof object[".google.api.resourceDefinition"][i] !== "object") - throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); - message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.FileOptions} message FileOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.resourceDefinition"] = []; - } - if (options.defaults) { - object.javaPackage = ""; - object.javaOuterClassname = ""; - object.optimizeFor = options.enums === String ? "SPEED" : 1; - object.javaMultipleFiles = false; - object.goPackage = ""; - object.ccGenericServices = false; - object.javaGenericServices = false; - object.pyGenericServices = false; - object.javaGenerateEqualsAndHash = false; - object.deprecated = false; - object.javaStringCheckUtf8 = false; - object.ccEnableArenas = true; - object.objcClassPrefix = ""; - object.csharpNamespace = ""; - object.swiftPrefix = ""; - object.phpClassPrefix = ""; - object.phpNamespace = ""; - object.phpGenericServices = false; - object.phpMetadataNamespace = ""; - object.rubyPackage = ""; - } - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - object.javaPackage = message.javaPackage; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - object.javaOuterClassname = message.javaOuterClassname; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - object.javaMultipleFiles = message.javaMultipleFiles; - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - object.goPackage = message.goPackage; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - object.ccGenericServices = message.ccGenericServices; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - object.javaGenericServices = message.javaGenericServices; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - object.pyGenericServices = message.pyGenericServices; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - object.javaStringCheckUtf8 = message.javaStringCheckUtf8; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - object.ccEnableArenas = message.ccEnableArenas; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - object.objcClassPrefix = message.objcClassPrefix; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - object.csharpNamespace = message.csharpNamespace; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - object.swiftPrefix = message.swiftPrefix; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - object.phpClassPrefix = message.phpClassPrefix; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - object.phpNamespace = message.phpNamespace; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - object.phpGenericServices = message.phpGenericServices; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - object.phpMetadataNamespace = message.phpMetadataNamespace; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - object.rubyPackage = message.rubyPackage; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { - object[".google.api.resourceDefinition"] = []; - for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) - object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); - } - return object; - }; - - /** - * Converts this FileOptions to JSON. - * @function toJSON - * @memberof google.protobuf.FileOptions - * @instance - * @returns {Object.} JSON object - */ - FileOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FileOptions - * @function getTypeUrl - * @memberof google.protobuf.FileOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FileOptions"; - }; + /** + * Properties of a Message. + * @memberof google.cloud.batch.v1.JobNotification + * @interface IMessage + * @property {google.cloud.batch.v1.JobNotification.Type|null} [type] Message type + * @property {google.cloud.batch.v1.JobStatus.State|null} [newJobState] Message newJobState + * @property {google.cloud.batch.v1.TaskStatus.State|null} [newTaskState] Message newTaskState + */ - /** - * OptimizeMode enum. - * @name google.protobuf.FileOptions.OptimizeMode - * @enum {number} - * @property {number} SPEED=1 SPEED value - * @property {number} CODE_SIZE=2 CODE_SIZE value - * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value - */ - FileOptions.OptimizeMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "SPEED"] = 1; - values[valuesById[2] = "CODE_SIZE"] = 2; - values[valuesById[3] = "LITE_RUNTIME"] = 3; - return values; - })(); + /** + * Constructs a new Message. + * @memberof google.cloud.batch.v1.JobNotification + * @classdesc Represents a Message. + * @implements IMessage + * @constructor + * @param {google.cloud.batch.v1.JobNotification.IMessage=} [properties] Properties to set + */ + function Message(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]]; + } - return FileOptions; - })(); + /** + * Message type. + * @member {google.cloud.batch.v1.JobNotification.Type} type + * @memberof google.cloud.batch.v1.JobNotification.Message + * @instance + */ + Message.prototype.type = 0; - protobuf.MessageOptions = (function() { + /** + * Message newJobState. + * @member {google.cloud.batch.v1.JobStatus.State} newJobState + * @memberof google.cloud.batch.v1.JobNotification.Message + * @instance + */ + Message.prototype.newJobState = 0; - /** - * Properties of a MessageOptions. - * @memberof google.protobuf - * @interface IMessageOptions - * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat - * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor - * @property {boolean|null} [deprecated] MessageOptions deprecated - * @property {boolean|null} [mapEntry] MessageOptions mapEntry - * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption - * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource - */ + /** + * Message newTaskState. + * @member {google.cloud.batch.v1.TaskStatus.State} newTaskState + * @memberof google.cloud.batch.v1.JobNotification.Message + * @instance + */ + Message.prototype.newTaskState = 0; - /** - * Constructs a new MessageOptions. - * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions - * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - */ - function MessageOptions(properties) { - this.uninterpretedOption = []; - 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]]; - } + /** + * Creates a new Message instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.JobNotification.Message + * @static + * @param {google.cloud.batch.v1.JobNotification.IMessage=} [properties] Properties to set + * @returns {google.cloud.batch.v1.JobNotification.Message} Message instance + */ + Message.create = function create(properties) { + return new Message(properties); + }; - /** - * MessageOptions messageSetWireFormat. - * @member {boolean} messageSetWireFormat - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.messageSetWireFormat = false; + /** + * Encodes the specified Message message. Does not implicitly {@link google.cloud.batch.v1.JobNotification.Message.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.JobNotification.Message + * @static + * @param {google.cloud.batch.v1.JobNotification.IMessage} message Message message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Message.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.newJobState != null && Object.hasOwnProperty.call(message, "newJobState")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.newJobState); + if (message.newTaskState != null && Object.hasOwnProperty.call(message, "newTaskState")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.newTaskState); + return writer; + }; - /** - * MessageOptions noStandardDescriptorAccessor. - * @member {boolean} noStandardDescriptorAccessor - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.noStandardDescriptorAccessor = false; + /** + * Encodes the specified Message message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobNotification.Message.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.JobNotification.Message + * @static + * @param {google.cloud.batch.v1.JobNotification.IMessage} message Message message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Message.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecated = false; + /** + * Decodes a Message message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.JobNotification.Message + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.JobNotification.Message} Message + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Message.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobNotification.Message(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.newJobState = reader.int32(); + break; + } + case 3: { + message.newTaskState = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * MessageOptions mapEntry. - * @member {boolean} mapEntry - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.mapEntry = false; + /** + * Decodes a Message message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.JobNotification.Message + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.JobNotification.Message} Message + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Message.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * MessageOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * Verifies a Message message. + * @function verify + * @memberof google.cloud.batch.v1.JobNotification.Message + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Message.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.newJobState != null && message.hasOwnProperty("newJobState")) + switch (message.newJobState) { + default: + return "newJobState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.newTaskState != null && message.hasOwnProperty("newTaskState")) + switch (message.newTaskState) { + default: + return "newTaskState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; - /** - * MessageOptions .google.api.resource. - * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".google.api.resource"] = null; + /** + * Creates a Message message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.JobNotification.Message + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.JobNotification.Message} Message + */ + Message.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.JobNotification.Message) + return object; + var message = new $root.google.cloud.batch.v1.JobNotification.Message(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "JOB_STATE_CHANGED": + case 1: + message.type = 1; + break; + case "TASK_STATE_CHANGED": + case 2: + message.type = 2; + break; + } + switch (object.newJobState) { + default: + if (typeof object.newJobState === "number") { + message.newJobState = object.newJobState; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.newJobState = 0; + break; + case "QUEUED": + case 1: + message.newJobState = 1; + break; + case "SCHEDULED": + case 2: + message.newJobState = 2; + break; + case "RUNNING": + case 3: + message.newJobState = 3; + break; + case "SUCCEEDED": + case 4: + message.newJobState = 4; + break; + case "FAILED": + case 5: + message.newJobState = 5; + break; + case "DELETION_IN_PROGRESS": + case 6: + message.newJobState = 6; + break; + } + switch (object.newTaskState) { + default: + if (typeof object.newTaskState === "number") { + message.newTaskState = object.newTaskState; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.newTaskState = 0; + break; + case "PENDING": + case 1: + message.newTaskState = 1; + break; + case "ASSIGNED": + case 2: + message.newTaskState = 2; + break; + case "RUNNING": + case 3: + message.newTaskState = 3; + break; + case "FAILED": + case 4: + message.newTaskState = 4; + break; + case "SUCCEEDED": + case 5: + message.newTaskState = 5; + break; + } + return message; + }; - /** - * Creates a new MessageOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - * @returns {google.protobuf.MessageOptions} MessageOptions instance - */ - MessageOptions.create = function create(properties) { - return new MessageOptions(properties); - }; + /** + * Creates a plain object from a Message message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.JobNotification.Message + * @static + * @param {google.cloud.batch.v1.JobNotification.Message} message Message + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Message.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.newJobState = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.newTaskState = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.batch.v1.JobNotification.Type[message.type] === undefined ? message.type : $root.google.cloud.batch.v1.JobNotification.Type[message.type] : message.type; + if (message.newJobState != null && message.hasOwnProperty("newJobState")) + object.newJobState = options.enums === String ? $root.google.cloud.batch.v1.JobStatus.State[message.newJobState] === undefined ? message.newJobState : $root.google.cloud.batch.v1.JobStatus.State[message.newJobState] : message.newJobState; + if (message.newTaskState != null && message.hasOwnProperty("newTaskState")) + object.newTaskState = options.enums === String ? $root.google.cloud.batch.v1.TaskStatus.State[message.newTaskState] === undefined ? message.newTaskState : $root.google.cloud.batch.v1.TaskStatus.State[message.newTaskState] : message.newTaskState; + return object; + }; - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MessageOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) - $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); - return writer; - }; + /** + * Converts this Message to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.JobNotification.Message + * @instance + * @returns {Object.} JSON object + */ + Message.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Gets the default type url for Message + * @function getTypeUrl + * @memberof google.cloud.batch.v1.JobNotification.Message + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Message.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.JobNotification.Message"; + }; - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.messageSetWireFormat = reader.bool(); - break; - } - case 2: { - message.noStandardDescriptorAccessor = reader.bool(); - break; - } - case 3: { - message.deprecated = reader.bool(); - break; - } - case 7: { - message.mapEntry = reader.bool(); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - case 1053: { - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return Message; + })(); - /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Type enum. + * @name google.cloud.batch.v1.JobNotification.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} JOB_STATE_CHANGED=1 JOB_STATE_CHANGED value + * @property {number} TASK_STATE_CHANGED=2 TASK_STATE_CHANGED value + */ + JobNotification.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "JOB_STATE_CHANGED"] = 1; + values[valuesById[2] = "TASK_STATE_CHANGED"] = 2; + return values; + })(); - /** - * Verifies a MessageOptions message. - * @function verify - * @memberof google.protobuf.MessageOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MessageOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - if (typeof message.messageSetWireFormat !== "boolean") - return "messageSetWireFormat: boolean expected"; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - if (typeof message.noStandardDescriptorAccessor !== "boolean") - return "noStandardDescriptorAccessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - if (typeof message.mapEntry !== "boolean") - return "mapEntry: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { - var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); - if (error) - return ".google.api.resource." + error; - } - return null; - }; + return JobNotification; + })(); - /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MessageOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MessageOptions} MessageOptions - */ - MessageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MessageOptions) - return object; - var message = new $root.google.protobuf.MessageOptions(); - if (object.messageSetWireFormat != null) - message.messageSetWireFormat = Boolean(object.messageSetWireFormat); - if (object.noStandardDescriptorAccessor != null) - message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.mapEntry != null) - message.mapEntry = Boolean(object.mapEntry); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + v1.AllocationPolicy = (function() { + + /** + * Properties of an AllocationPolicy. + * @memberof google.cloud.batch.v1 + * @interface IAllocationPolicy + * @property {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy|null} [location] AllocationPolicy location + * @property {Array.|null} [instances] AllocationPolicy instances + * @property {google.cloud.batch.v1.IServiceAccount|null} [serviceAccount] AllocationPolicy serviceAccount + * @property {Object.|null} [labels] AllocationPolicy labels + * @property {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy|null} [network] AllocationPolicy network + */ + + /** + * Constructs a new AllocationPolicy. + * @memberof google.cloud.batch.v1 + * @classdesc Represents an AllocationPolicy. + * @implements IAllocationPolicy + * @constructor + * @param {google.cloud.batch.v1.IAllocationPolicy=} [properties] Properties to set + */ + function AllocationPolicy(properties) { + this.instances = []; + this.labels = {}; + 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]]; } - } - if (object[".google.api.resource"] != null) { - if (typeof object[".google.api.resource"] !== "object") - throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); - } - return message; - }; - /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.MessageOptions} message MessageOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MessageOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.messageSetWireFormat = false; - object.noStandardDescriptorAccessor = false; - object.deprecated = false; - object.mapEntry = false; - object[".google.api.resource"] = null; - } - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - object.messageSetWireFormat = message.messageSetWireFormat; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - object.mapEntry = message.mapEntry; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) - object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); - return object; - }; + /** + * AllocationPolicy location. + * @member {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy|null|undefined} location + * @memberof google.cloud.batch.v1.AllocationPolicy + * @instance + */ + AllocationPolicy.prototype.location = null; - /** - * Converts this MessageOptions to JSON. - * @function toJSON - * @memberof google.protobuf.MessageOptions - * @instance - * @returns {Object.} JSON object - */ - MessageOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * AllocationPolicy instances. + * @member {Array.} instances + * @memberof google.cloud.batch.v1.AllocationPolicy + * @instance + */ + AllocationPolicy.prototype.instances = $util.emptyArray; - /** - * Gets the default type url for MessageOptions - * @function getTypeUrl - * @memberof google.protobuf.MessageOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.MessageOptions"; - }; - - return MessageOptions; - })(); - - protobuf.FieldOptions = (function() { - - /** - * Properties of a FieldOptions. - * @memberof google.protobuf - * @interface IFieldOptions - * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype - * @property {boolean|null} [packed] FieldOptions packed - * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype - * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy - * @property {boolean|null} [deprecated] FieldOptions deprecated - * @property {boolean|null} [weak] FieldOptions weak - * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption - * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior - * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference - */ - - /** - * Constructs a new FieldOptions. - * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions - * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - */ - function FieldOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.fieldBehavior"] = []; - 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]]; - } - - /** - * FieldOptions ctype. - * @member {google.protobuf.FieldOptions.CType} ctype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.ctype = 0; - - /** - * FieldOptions packed. - * @member {boolean} packed - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.packed = false; - - /** - * FieldOptions jstype. - * @member {google.protobuf.FieldOptions.JSType} jstype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.jstype = 0; - - /** - * FieldOptions lazy. - * @member {boolean} lazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.lazy = false; - - /** - * FieldOptions unverifiedLazy. - * @member {boolean} unverifiedLazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.unverifiedLazy = false; - - /** - * FieldOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.deprecated = false; + /** + * AllocationPolicy serviceAccount. + * @member {google.cloud.batch.v1.IServiceAccount|null|undefined} serviceAccount + * @memberof google.cloud.batch.v1.AllocationPolicy + * @instance + */ + AllocationPolicy.prototype.serviceAccount = null; - /** - * FieldOptions weak. - * @member {boolean} weak - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.weak = false; + /** + * AllocationPolicy labels. + * @member {Object.} labels + * @memberof google.cloud.batch.v1.AllocationPolicy + * @instance + */ + AllocationPolicy.prototype.labels = $util.emptyObject; - /** - * FieldOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * AllocationPolicy network. + * @member {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy|null|undefined} network + * @memberof google.cloud.batch.v1.AllocationPolicy + * @instance + */ + AllocationPolicy.prototype.network = null; - /** - * FieldOptions .google.api.fieldBehavior. - * @member {Array.} .google.api.fieldBehavior - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + /** + * Creates a new AllocationPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.AllocationPolicy + * @static + * @param {google.cloud.batch.v1.IAllocationPolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1.AllocationPolicy} AllocationPolicy instance + */ + AllocationPolicy.create = function create(properties) { + return new AllocationPolicy(properties); + }; - /** - * FieldOptions .google.api.resourceReference. - * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".google.api.resourceReference"] = null; + /** + * Encodes the specified AllocationPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.AllocationPolicy + * @static + * @param {google.cloud.batch.v1.IAllocationPolicy} message AllocationPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.encode(message.location, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.encode(message.network, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.encode(message.instances[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + $root.google.cloud.batch.v1.ServiceAccount.encode(message.serviceAccount, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; - /** - * Creates a new FieldOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions} FieldOptions instance - */ - FieldOptions.create = function create(properties) { - return new FieldOptions(properties); - }; + /** + * Encodes the specified AllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy + * @static + * @param {google.cloud.batch.v1.IAllocationPolicy} message AllocationPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { - writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - writer.int32(message[".google.api.fieldBehavior"][i]); - writer.ldelim(); - } - if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) - $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); - return writer; - }; + /** + * Decodes an AllocationPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.AllocationPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.AllocationPolicy} AllocationPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.location = $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.decode(reader, reader.uint32()); + break; + } + case 8: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.decode(reader, reader.uint32())); + break; + } + case 9: { + message.serviceAccount = $root.google.cloud.batch.v1.ServiceAccount.decode(reader, reader.uint32()); + break; + } + case 6: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 7: { + message.network = $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes an AllocationPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.AllocationPolicy} AllocationPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.ctype = reader.int32(); - break; + /** + * Verifies an AllocationPolicy message. + * @function verify + * @memberof google.cloud.batch.v1.AllocationPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AllocationPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + var error = $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify(message.location); + if (error) + return "location." + error; } - case 2: { - message.packed = reader.bool(); - break; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify(message.instances[i]); + if (error) + return "instances." + error; + } } - case 6: { - message.jstype = reader.int32(); - break; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) { + var error = $root.google.cloud.batch.v1.ServiceAccount.verify(message.serviceAccount); + if (error) + return "serviceAccount." + error; } - case 5: { - message.lazy = reader.bool(); - break; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; } - case 15: { - message.unverifiedLazy = reader.bool(); - break; + if (message.network != null && message.hasOwnProperty("network")) { + var error = $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify(message.network); + if (error) + return "network." + error; } - case 3: { - message.deprecated = reader.bool(); - break; + return null; + }; + + /** + * Creates an AllocationPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.AllocationPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.AllocationPolicy} AllocationPolicy + */ + AllocationPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy) + return object; + var message = new $root.google.cloud.batch.v1.AllocationPolicy(); + if (object.location != null) { + if (typeof object.location !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.location: object expected"); + message.location = $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.fromObject(object.location); } - case 10: { - message.weak = reader.bool(); - break; + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.instances: object expected"); + message.instances[i] = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.fromObject(object.instances[i]); + } } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + if (object.serviceAccount != null) { + if (typeof object.serviceAccount !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.serviceAccount: object expected"); + message.serviceAccount = $root.google.cloud.batch.v1.ServiceAccount.fromObject(object.serviceAccount); } - case 1052: { - if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) - message[".google.api.fieldBehavior"] = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message[".google.api.fieldBehavior"].push(reader.int32()); - } else - message[".google.api.fieldBehavior"].push(reader.int32()); - break; + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); } - case 1055: { - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); - break; + if (object.network != null) { + if (typeof object.network !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.network: object expected"); + message.network = $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.fromObject(object.network); } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; - /** - * Verifies a FieldOptions message. - * @function verify - * @memberof google.protobuf.FieldOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ctype != null && message.hasOwnProperty("ctype")) - switch (message.ctype) { - default: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.lazy != null && message.hasOwnProperty("lazy")) - if (typeof message.lazy !== "boolean") - return "lazy: boolean expected"; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - if (typeof message.unverifiedLazy !== "boolean") - return "unverifiedLazy: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.weak != null && message.hasOwnProperty("weak")) - if (typeof message.weak !== "boolean") - return "weak: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { - if (!Array.isArray(message[".google.api.fieldBehavior"])) - return ".google.api.fieldBehavior: array expected"; - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - switch (message[".google.api.fieldBehavior"][i]) { - default: - return ".google.api.fieldBehavior: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; + /** + * Creates a plain object from an AllocationPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.AllocationPolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy} message AllocationPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AllocationPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.location = null; + object.network = null; + object.serviceAccount = null; } - } - if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { - var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); - if (error) - return ".google.api.resourceReference." + error; - } - return null; - }; - - /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions} FieldOptions - */ - FieldOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldOptions) - return object; - var message = new $root.google.protobuf.FieldOptions(); - switch (object.ctype) { - default: - if (typeof object.ctype === "number") { - message.ctype = object.ctype; - break; - } - break; - case "STRING": - case 0: - message.ctype = 0; - break; - case "CORD": - case 1: - message.ctype = 1; - break; - case "STRING_PIECE": - case 2: - message.ctype = 2; - break; - } - if (object.packed != null) - message.packed = Boolean(object.packed); - switch (object.jstype) { - default: - if (typeof object.jstype === "number") { - message.jstype = object.jstype; - break; - } - break; - case "JS_NORMAL": - case 0: - message.jstype = 0; - break; - case "JS_STRING": - case 1: - message.jstype = 1; - break; - case "JS_NUMBER": - case 2: - message.jstype = 2; - break; - } - if (object.lazy != null) - message.lazy = Boolean(object.lazy); - if (object.unverifiedLazy != null) - message.unverifiedLazy = Boolean(object.unverifiedLazy); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.weak != null) - message.weak = Boolean(object.weak); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.fieldBehavior"]) { - if (!Array.isArray(object[".google.api.fieldBehavior"])) - throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); - message[".google.api.fieldBehavior"] = []; - for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) - switch (object[".google.api.fieldBehavior"][i]) { - default: - if (typeof object[".google.api.fieldBehavior"][i] === "number") { - message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; - break; - } - case "FIELD_BEHAVIOR_UNSPECIFIED": - case 0: - message[".google.api.fieldBehavior"][i] = 0; - break; - case "OPTIONAL": - case 1: - message[".google.api.fieldBehavior"][i] = 1; - break; - case "REQUIRED": - case 2: - message[".google.api.fieldBehavior"][i] = 2; - break; - case "OUTPUT_ONLY": - case 3: - message[".google.api.fieldBehavior"][i] = 3; - break; - case "INPUT_ONLY": - case 4: - message[".google.api.fieldBehavior"][i] = 4; - break; - case "IMMUTABLE": - case 5: - message[".google.api.fieldBehavior"][i] = 5; - break; - case "UNORDERED_LIST": - case 6: - message[".google.api.fieldBehavior"][i] = 6; - break; - case "NON_EMPTY_DEFAULT": - case 7: - message[".google.api.fieldBehavior"][i] = 7; - break; + if (message.location != null && message.hasOwnProperty("location")) + object.location = $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.toObject(message.location, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } - } - if (object[".google.api.resourceReference"] != null) { - if (typeof object[".google.api.resourceReference"] !== "object") - throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); - } - return message; - }; - - /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.FieldOptions} message FieldOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.fieldBehavior"] = []; - } - if (options.defaults) { - object.ctype = options.enums === String ? "STRING" : 0; - object.packed = false; - object.deprecated = false; - object.lazy = false; - object.jstype = options.enums === String ? "JS_NORMAL" : 0; - object.weak = false; - object.unverifiedLazy = false; - object[".google.api.resourceReference"] = null; - } - if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; - if (message.packed != null && message.hasOwnProperty("packed")) - object.packed = message.packed; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.lazy != null && message.hasOwnProperty("lazy")) - object.lazy = message.lazy; - if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; - if (message.weak != null && message.hasOwnProperty("weak")) - object.weak = message.weak; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - object.unverifiedLazy = message.unverifiedLazy; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { - object[".google.api.fieldBehavior"] = []; - for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) - object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; - } - if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) - object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); - return object; - }; + if (message.network != null && message.hasOwnProperty("network")) + object.network = $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.toObject(message.network, options); + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.toObject(message.instances[j], options); + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = $root.google.cloud.batch.v1.ServiceAccount.toObject(message.serviceAccount, options); + return object; + }; - /** - * Converts this FieldOptions to JSON. - * @function toJSON - * @memberof google.protobuf.FieldOptions - * @instance - * @returns {Object.} JSON object - */ - FieldOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this AllocationPolicy to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.AllocationPolicy + * @instance + * @returns {Object.} JSON object + */ + AllocationPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for FieldOptions - * @function getTypeUrl - * @memberof google.protobuf.FieldOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FieldOptions"; - }; + /** + * Gets the default type url for AllocationPolicy + * @function getTypeUrl + * @memberof google.cloud.batch.v1.AllocationPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AllocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy"; + }; - /** - * CType enum. - * @name google.protobuf.FieldOptions.CType - * @enum {number} - * @property {number} STRING=0 STRING value - * @property {number} CORD=1 CORD value - * @property {number} STRING_PIECE=2 STRING_PIECE value - */ - FieldOptions.CType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STRING"] = 0; - values[valuesById[1] = "CORD"] = 1; - values[valuesById[2] = "STRING_PIECE"] = 2; - return values; - })(); + AllocationPolicy.LocationPolicy = (function() { - /** - * JSType enum. - * @name google.protobuf.FieldOptions.JSType - * @enum {number} - * @property {number} JS_NORMAL=0 JS_NORMAL value - * @property {number} JS_STRING=1 JS_STRING value - * @property {number} JS_NUMBER=2 JS_NUMBER value - */ - FieldOptions.JSType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JS_NORMAL"] = 0; - values[valuesById[1] = "JS_STRING"] = 1; - values[valuesById[2] = "JS_NUMBER"] = 2; - return values; - })(); + /** + * Properties of a LocationPolicy. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @interface ILocationPolicy + * @property {Array.|null} [allowedLocations] LocationPolicy allowedLocations + */ - return FieldOptions; - })(); + /** + * Constructs a new LocationPolicy. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @classdesc Represents a LocationPolicy. + * @implements ILocationPolicy + * @constructor + * @param {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy=} [properties] Properties to set + */ + function LocationPolicy(properties) { + this.allowedLocations = []; + 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]]; + } - protobuf.OneofOptions = (function() { + /** + * LocationPolicy allowedLocations. + * @member {Array.} allowedLocations + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @instance + */ + LocationPolicy.prototype.allowedLocations = $util.emptyArray; - /** - * Properties of an OneofOptions. - * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption - */ + /** + * Creates a new LocationPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} LocationPolicy instance + */ + LocationPolicy.create = function create(properties) { + return new LocationPolicy(properties); + }; - /** - * Constructs a new OneofOptions. - * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions - * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - */ - function OneofOptions(properties) { - this.uninterpretedOption = []; - 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]]; - } + /** + * Encodes the specified LocationPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy} message LocationPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowedLocations != null && message.allowedLocations.length) + for (var i = 0; i < message.allowedLocations.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowedLocations[i]); + return writer; + }; - /** - * OneofOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.OneofOptions - * @instance - */ - OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * Encodes the specified LocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy} message LocationPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new OneofOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - * @returns {google.protobuf.OneofOptions} OneofOptions instance - */ - OneofOptions.create = function create(properties) { - return new OneofOptions(properties); - }; + /** + * Decodes a LocationPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} LocationPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.allowedLocations && message.allowedLocations.length)) + message.allowedLocations = []; + message.allowedLocations.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a LocationPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} LocationPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a LocationPolicy message. + * @function verify + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LocationPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowedLocations != null && message.hasOwnProperty("allowedLocations")) { + if (!Array.isArray(message.allowedLocations)) + return "allowedLocations: array expected"; + for (var i = 0; i < message.allowedLocations.length; ++i) + if (!$util.isString(message.allowedLocations[i])) + return "allowedLocations: string[] expected"; + } + return null; + }; - /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a LocationPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} LocationPolicy + */ + LocationPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy) + return object; + var message = new $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy(); + if (object.allowedLocations) { + if (!Array.isArray(object.allowedLocations)) + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.LocationPolicy.allowedLocations: array expected"); + message.allowedLocations = []; + for (var i = 0; i < object.allowedLocations.length; ++i) + message.allowedLocations[i] = String(object.allowedLocations[i]); + } + return message; + }; - /** - * Verifies an OneofOptions message. - * @function verify - * @memberof google.protobuf.OneofOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; + /** + * Creates a plain object from a LocationPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} message LocationPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LocationPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.allowedLocations = []; + if (message.allowedLocations && message.allowedLocations.length) { + object.allowedLocations = []; + for (var j = 0; j < message.allowedLocations.length; ++j) + object.allowedLocations[j] = message.allowedLocations[j]; + } + return object; + }; - /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.OneofOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.OneofOptions} OneofOptions - */ - OneofOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofOptions) - return object; - var message = new $root.google.protobuf.OneofOptions(); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - return message; - }; + /** + * Converts this LocationPolicy to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @instance + * @returns {Object.} JSON object + */ + LocationPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.OneofOptions} message OneofOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OneofOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; + /** + * Gets the default type url for LocationPolicy + * @function getTypeUrl + * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.LocationPolicy"; + }; - /** - * Converts this OneofOptions to JSON. - * @function toJSON - * @memberof google.protobuf.OneofOptions - * @instance - * @returns {Object.} JSON object - */ - OneofOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return LocationPolicy; + })(); - /** - * Gets the default type url for OneofOptions - * @function getTypeUrl - * @memberof google.protobuf.OneofOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.OneofOptions"; - }; + AllocationPolicy.Disk = (function() { - return OneofOptions; - })(); + /** + * Properties of a Disk. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @interface IDisk + * @property {string|null} [image] Disk image + * @property {string|null} [snapshot] Disk snapshot + * @property {string|null} [type] Disk type + * @property {number|Long|null} [sizeGb] Disk sizeGb + * @property {string|null} [diskInterface] Disk diskInterface + */ - protobuf.EnumOptions = (function() { + /** + * Constructs a new Disk. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @classdesc Represents a Disk. + * @implements IDisk + * @constructor + * @param {google.cloud.batch.v1.AllocationPolicy.IDisk=} [properties] Properties to set + */ + function Disk(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]]; + } - /** - * Properties of an EnumOptions. - * @memberof google.protobuf - * @interface IEnumOptions - * @property {boolean|null} [allowAlias] EnumOptions allowAlias - * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption - */ + /** + * Disk image. + * @member {string|null|undefined} image + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.image = null; - /** - * Constructs a new EnumOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions - * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - */ - function EnumOptions(properties) { - this.uninterpretedOption = []; - 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]]; - } + /** + * Disk snapshot. + * @member {string|null|undefined} snapshot + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.snapshot = null; - /** - * EnumOptions allowAlias. - * @member {boolean} allowAlias - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.allowAlias = false; + /** + * Disk type. + * @member {string} type + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.type = ""; - /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.deprecated = false; + /** + * Disk sizeGb. + * @member {number|Long} sizeGb + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.sizeGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * EnumOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * Disk diskInterface. + * @member {string} diskInterface + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.diskInterface = ""; - /** - * Creates a new EnumOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumOptions} EnumOptions instance - */ - EnumOptions.create = function create(properties) { - return new EnumOptions(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; + /** + * Disk dataSource. + * @member {"image"|"snapshot"|undefined} dataSource + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @instance + */ + Object.defineProperty(Disk.prototype, "dataSource", { + get: $util.oneOfGetter($oneOfFields = ["image", "snapshot"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new Disk instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IDisk=} [properties] Properties to set + * @returns {google.cloud.batch.v1.AllocationPolicy.Disk} Disk instance + */ + Disk.create = function create(properties) { + return new Disk(properties); + }; - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.allowAlias = reader.bool(); - break; - } - case 3: { - message.deprecated = reader.bool(); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified Disk message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Disk.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IDisk} message Disk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Disk.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.sizeGb != null && Object.hasOwnProperty.call(message, "sizeGb")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.sizeGb); + if (message.image != null && Object.hasOwnProperty.call(message, "image")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.image); + if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.snapshot); + if (message.diskInterface != null && Object.hasOwnProperty.call(message, "diskInterface")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.diskInterface); + return writer; + }; - /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified Disk message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Disk.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IDisk} message Disk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Disk.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies an EnumOptions message. - * @function verify - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - if (typeof message.allowAlias !== "boolean") - return "allowAlias: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; + /** + * Decodes a Disk message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.AllocationPolicy.Disk} Disk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Disk.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.Disk(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: { + message.image = reader.string(); + break; + } + case 5: { + message.snapshot = reader.string(); + break; + } + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.sizeGb = reader.int64(); + break; + } + case 6: { + message.diskInterface = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumOptions} EnumOptions - */ - EnumOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumOptions) - return object; - var message = new $root.google.protobuf.EnumOptions(); - if (object.allowAlias != null) - message.allowAlias = Boolean(object.allowAlias); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - return message; - }; + /** + * Decodes a Disk message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.AllocationPolicy.Disk} Disk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Disk.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.EnumOptions} message EnumOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.allowAlias = false; - object.deprecated = false; - } - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - object.allowAlias = message.allowAlias; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; + /** + * Verifies a Disk message. + * @function verify + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Disk.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.image != null && message.hasOwnProperty("image")) { + properties.dataSource = 1; + if (!$util.isString(message.image)) + return "image: string expected"; + } + if (message.snapshot != null && message.hasOwnProperty("snapshot")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + if (!$util.isString(message.snapshot)) + return "snapshot: string expected"; + } + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.sizeGb != null && message.hasOwnProperty("sizeGb")) + if (!$util.isInteger(message.sizeGb) && !(message.sizeGb && $util.isInteger(message.sizeGb.low) && $util.isInteger(message.sizeGb.high))) + return "sizeGb: integer|Long expected"; + if (message.diskInterface != null && message.hasOwnProperty("diskInterface")) + if (!$util.isString(message.diskInterface)) + return "diskInterface: string expected"; + return null; + }; - /** - * Converts this EnumOptions to JSON. - * @function toJSON - * @memberof google.protobuf.EnumOptions - * @instance - * @returns {Object.} JSON object - */ - EnumOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a Disk message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.AllocationPolicy.Disk} Disk + */ + Disk.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.Disk) + return object; + var message = new $root.google.cloud.batch.v1.AllocationPolicy.Disk(); + if (object.image != null) + message.image = String(object.image); + if (object.snapshot != null) + message.snapshot = String(object.snapshot); + if (object.type != null) + message.type = String(object.type); + if (object.sizeGb != null) + if ($util.Long) + (message.sizeGb = $util.Long.fromValue(object.sizeGb)).unsigned = false; + else if (typeof object.sizeGb === "string") + message.sizeGb = parseInt(object.sizeGb, 10); + else if (typeof object.sizeGb === "number") + message.sizeGb = object.sizeGb; + else if (typeof object.sizeGb === "object") + message.sizeGb = new $util.LongBits(object.sizeGb.low >>> 0, object.sizeGb.high >>> 0).toNumber(); + if (object.diskInterface != null) + message.diskInterface = String(object.diskInterface); + return message; + }; - /** - * Gets the default type url for EnumOptions - * @function getTypeUrl - * @memberof google.protobuf.EnumOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumOptions"; - }; + /** + * Creates a plain object from a Disk message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.Disk} message Disk + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Disk.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.sizeGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sizeGb = options.longs === String ? "0" : 0; + object.diskInterface = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.sizeGb != null && message.hasOwnProperty("sizeGb")) + if (typeof message.sizeGb === "number") + object.sizeGb = options.longs === String ? String(message.sizeGb) : message.sizeGb; + else + object.sizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.sizeGb) : options.longs === Number ? new $util.LongBits(message.sizeGb.low >>> 0, message.sizeGb.high >>> 0).toNumber() : message.sizeGb; + if (message.image != null && message.hasOwnProperty("image")) { + object.image = message.image; + if (options.oneofs) + object.dataSource = "image"; + } + if (message.snapshot != null && message.hasOwnProperty("snapshot")) { + object.snapshot = message.snapshot; + if (options.oneofs) + object.dataSource = "snapshot"; + } + if (message.diskInterface != null && message.hasOwnProperty("diskInterface")) + object.diskInterface = message.diskInterface; + return object; + }; - return EnumOptions; - })(); + /** + * Converts this Disk to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @instance + * @returns {Object.} JSON object + */ + Disk.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - protobuf.EnumValueOptions = (function() { + /** + * Gets the default type url for Disk + * @function getTypeUrl + * @memberof google.cloud.batch.v1.AllocationPolicy.Disk + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Disk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.Disk"; + }; - /** - * Properties of an EnumValueOptions. - * @memberof google.protobuf - * @interface IEnumValueOptions - * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption - */ + return Disk; + })(); - /** - * Constructs a new EnumValueOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions - * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - */ - function EnumValueOptions(properties) { - this.uninterpretedOption = []; - 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]]; - } + AllocationPolicy.AttachedDisk = (function() { - /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.deprecated = false; + /** + * Properties of an AttachedDisk. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @interface IAttachedDisk + * @property {google.cloud.batch.v1.AllocationPolicy.IDisk|null} [newDisk] AttachedDisk newDisk + * @property {string|null} [existingDisk] AttachedDisk existingDisk + * @property {string|null} [deviceName] AttachedDisk deviceName + */ - /** - * EnumValueOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * Constructs a new AttachedDisk. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @classdesc Represents an AttachedDisk. + * @implements IAttachedDisk + * @constructor + * @param {google.cloud.batch.v1.AllocationPolicy.IAttachedDisk=} [properties] Properties to set + */ + function AttachedDisk(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]]; + } - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance - */ - EnumValueOptions.create = function create(properties) { - return new EnumValueOptions(properties); - }; + /** + * AttachedDisk newDisk. + * @member {google.cloud.batch.v1.AllocationPolicy.IDisk|null|undefined} newDisk + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @instance + */ + AttachedDisk.prototype.newDisk = null; - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; + /** + * AttachedDisk existingDisk. + * @member {string|null|undefined} existingDisk + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @instance + */ + AttachedDisk.prototype.existingDisk = null; - /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * AttachedDisk deviceName. + * @member {string} deviceName + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @instance + */ + AttachedDisk.prototype.deviceName = ""; - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.deprecated = reader.bool(); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * AttachedDisk attached. + * @member {"newDisk"|"existingDisk"|undefined} attached + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @instance + */ + Object.defineProperty(AttachedDisk.prototype, "attached", { + get: $util.oneOfGetter($oneOfFields = ["newDisk", "existingDisk"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Verifies an EnumValueOptions message. - * @function verify - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumValueOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - */ - EnumValueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueOptions) - return object; - var message = new $root.google.protobuf.EnumValueOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - return message; - }; + /** + * Creates a new AttachedDisk instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IAttachedDisk=} [properties] Properties to set + * @returns {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} AttachedDisk instance + */ + AttachedDisk.create = function create(properties) { + return new AttachedDisk(properties); + }; - /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.EnumValueOptions} message EnumValueOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumValueOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) - object.deprecated = false; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; + /** + * Encodes the specified AttachedDisk message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IAttachedDisk} message AttachedDisk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AttachedDisk.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.newDisk != null && Object.hasOwnProperty.call(message, "newDisk")) + $root.google.cloud.batch.v1.AllocationPolicy.Disk.encode(message.newDisk, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.existingDisk != null && Object.hasOwnProperty.call(message, "existingDisk")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.existingDisk); + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceName); + return writer; + }; - /** - * Converts this EnumValueOptions to JSON. - * @function toJSON - * @memberof google.protobuf.EnumValueOptions - * @instance - * @returns {Object.} JSON object - */ - EnumValueOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified AttachedDisk message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IAttachedDisk} message AttachedDisk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AttachedDisk.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for EnumValueOptions - * @function getTypeUrl - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; - }; + /** + * Decodes an AttachedDisk message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} AttachedDisk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AttachedDisk.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.newDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.decode(reader, reader.uint32()); + break; + } + case 2: { + message.existingDisk = reader.string(); + break; + } + case 3: { + message.deviceName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return EnumValueOptions; - })(); + /** + * Decodes an AttachedDisk message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} AttachedDisk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AttachedDisk.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - protobuf.ServiceOptions = (function() { + /** + * Verifies an AttachedDisk message. + * @function verify + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AttachedDisk.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.newDisk != null && message.hasOwnProperty("newDisk")) { + properties.attached = 1; + { + var error = $root.google.cloud.batch.v1.AllocationPolicy.Disk.verify(message.newDisk); + if (error) + return "newDisk." + error; + } + } + if (message.existingDisk != null && message.hasOwnProperty("existingDisk")) { + if (properties.attached === 1) + return "attached: multiple values"; + properties.attached = 1; + if (!$util.isString(message.existingDisk)) + return "existingDisk: string expected"; + } + if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (!$util.isString(message.deviceName)) + return "deviceName: string expected"; + return null; + }; - /** - * Properties of a ServiceOptions. - * @memberof google.protobuf - * @interface IServiceOptions - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption - * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost - * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes - */ + /** + * Creates an AttachedDisk message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} AttachedDisk + */ + AttachedDisk.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk) + return object; + var message = new $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk(); + if (object.newDisk != null) { + if (typeof object.newDisk !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.AttachedDisk.newDisk: object expected"); + message.newDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.fromObject(object.newDisk); + } + if (object.existingDisk != null) + message.existingDisk = String(object.existingDisk); + if (object.deviceName != null) + message.deviceName = String(object.deviceName); + return message; + }; - /** - * Constructs a new ServiceOptions. - * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions - * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - */ - function ServiceOptions(properties) { - this.uninterpretedOption = []; - 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]]; - } + /** + * Creates a plain object from an AttachedDisk message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} message AttachedDisk + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AttachedDisk.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.deviceName = ""; + if (message.newDisk != null && message.hasOwnProperty("newDisk")) { + object.newDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.toObject(message.newDisk, options); + if (options.oneofs) + object.attached = "newDisk"; + } + if (message.existingDisk != null && message.hasOwnProperty("existingDisk")) { + object.existingDisk = message.existingDisk; + if (options.oneofs) + object.attached = "existingDisk"; + } + if (message.deviceName != null && message.hasOwnProperty("deviceName")) + object.deviceName = message.deviceName; + return object; + }; - /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.deprecated = false; + /** + * Converts this AttachedDisk to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @instance + * @returns {Object.} JSON object + */ + AttachedDisk.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ServiceOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * Gets the default type url for AttachedDisk + * @function getTypeUrl + * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AttachedDisk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.AttachedDisk"; + }; - /** - * ServiceOptions .google.api.defaultHost. - * @member {string} .google.api.defaultHost - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype[".google.api.defaultHost"] = ""; + return AttachedDisk; + })(); - /** - * ServiceOptions .google.api.oauthScopes. - * @member {string} .google.api.oauthScopes - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + AllocationPolicy.Accelerator = (function() { - /** - * Creates a new ServiceOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - * @returns {google.protobuf.ServiceOptions} ServiceOptions instance - */ - ServiceOptions.create = function create(properties) { - return new ServiceOptions(properties); - }; + /** + * Properties of an Accelerator. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @interface IAccelerator + * @property {string|null} [type] Accelerator type + * @property {number|Long|null} [count] Accelerator count + * @property {boolean|null} [installGpuDrivers] Accelerator installGpuDrivers + */ - /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) - writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); - if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) - writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); - return writer; - }; + /** + * Constructs a new Accelerator. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @classdesc Represents an Accelerator. + * @implements IAccelerator + * @constructor + * @param {google.cloud.batch.v1.AllocationPolicy.IAccelerator=} [properties] Properties to set + */ + function Accelerator(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]]; + } - /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Accelerator type. + * @member {string} type + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @instance + */ + Accelerator.prototype.type = ""; - /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 33: { - message.deprecated = reader.bool(); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - case 1049: { - message[".google.api.defaultHost"] = reader.string(); - break; - } - case 1050: { - message[".google.api.oauthScopes"] = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Accelerator count. + * @member {number|Long} count + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @instance + */ + Accelerator.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Accelerator installGpuDrivers. + * @member {boolean} installGpuDrivers + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @instance + */ + Accelerator.prototype.installGpuDrivers = false; - /** - * Verifies a ServiceOptions message. - * @function verify - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - if (!$util.isString(message[".google.api.defaultHost"])) - return ".google.api.defaultHost: string expected"; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - if (!$util.isString(message[".google.api.oauthScopes"])) - return ".google.api.oauthScopes: string expected"; - return null; - }; + /** + * Creates a new Accelerator instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IAccelerator=} [properties] Properties to set + * @returns {google.cloud.batch.v1.AllocationPolicy.Accelerator} Accelerator instance + */ + Accelerator.create = function create(properties) { + return new Accelerator(properties); + }; - /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceOptions} ServiceOptions - */ - ServiceOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceOptions) - return object; - var message = new $root.google.protobuf.ServiceOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.defaultHost"] != null) - message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); - if (object[".google.api.oauthScopes"] != null) - message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); - return message; - }; + /** + * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Accelerator.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IAccelerator} message Accelerator message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Accelerator.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.count); + if (message.installGpuDrivers != null && Object.hasOwnProperty.call(message, "installGpuDrivers")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.installGpuDrivers); + return writer; + }; - /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.ServiceOptions} message ServiceOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ServiceOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.deprecated = false; - object[".google.api.defaultHost"] = ""; - object[".google.api.oauthScopes"] = ""; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; - return object; - }; + /** + * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Accelerator.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IAccelerator} message Accelerator message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Accelerator.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this ServiceOptions to JSON. - * @function toJSON - * @memberof google.protobuf.ServiceOptions - * @instance - * @returns {Object.} JSON object - */ - ServiceOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes an Accelerator message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.AllocationPolicy.Accelerator} Accelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Accelerator.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.Accelerator(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.count = reader.int64(); + break; + } + case 3: { + message.installGpuDrivers = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Gets the default type url for ServiceOptions - * @function getTypeUrl - * @memberof google.protobuf.ServiceOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.ServiceOptions"; - }; + /** + * Decodes an Accelerator message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.AllocationPolicy.Accelerator} Accelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Accelerator.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return ServiceOptions; - })(); + /** + * Verifies an Accelerator message. + * @function verify + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Accelerator.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) + return "count: integer|Long expected"; + if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) + if (typeof message.installGpuDrivers !== "boolean") + return "installGpuDrivers: boolean expected"; + return null; + }; - protobuf.MethodOptions = (function() { + /** + * Creates an Accelerator message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.AllocationPolicy.Accelerator} Accelerator + */ + Accelerator.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.Accelerator) + return object; + var message = new $root.google.cloud.batch.v1.AllocationPolicy.Accelerator(); + if (object.type != null) + message.type = String(object.type); + if (object.count != null) + if ($util.Long) + (message.count = $util.Long.fromValue(object.count)).unsigned = false; + else if (typeof object.count === "string") + message.count = parseInt(object.count, 10); + else if (typeof object.count === "number") + message.count = object.count; + else if (typeof object.count === "object") + message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); + if (object.installGpuDrivers != null) + message.installGpuDrivers = Boolean(object.installGpuDrivers); + return message; + }; - /** - * Properties of a MethodOptions. - * @memberof google.protobuf - * @interface IMethodOptions - * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel - * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption - * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http - * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature - * @property {google.longrunning.IOperationInfo|null} [".google.longrunning.operationInfo"] MethodOptions .google.longrunning.operationInfo - */ + /** + * Creates a plain object from an Accelerator message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.Accelerator} message Accelerator + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Accelerator.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.count = options.longs === String ? "0" : 0; + object.installGpuDrivers = false; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.count != null && message.hasOwnProperty("count")) + if (typeof message.count === "number") + object.count = options.longs === String ? String(message.count) : message.count; + else + object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; + if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) + object.installGpuDrivers = message.installGpuDrivers; + return object; + }; - /** - * Constructs a new MethodOptions. - * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions - * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - */ - function MethodOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.methodSignature"] = []; - 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]]; - } + /** + * Converts this Accelerator to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @instance + * @returns {Object.} JSON object + */ + Accelerator.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.deprecated = false; + /** + * Gets the default type url for Accelerator + * @function getTypeUrl + * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Accelerator.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.Accelerator"; + }; - /** - * MethodOptions idempotencyLevel. - * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.idempotencyLevel = 0; + return Accelerator; + })(); - /** - * MethodOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + AllocationPolicy.InstancePolicy = (function() { - /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype[".google.api.http"] = null; + /** + * Properties of an InstancePolicy. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @interface IInstancePolicy + * @property {string|null} [machineType] InstancePolicy machineType + * @property {string|null} [minCpuPlatform] InstancePolicy minCpuPlatform + * @property {google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|null} [provisioningModel] InstancePolicy provisioningModel + * @property {Array.|null} [accelerators] InstancePolicy accelerators + * @property {google.cloud.batch.v1.AllocationPolicy.IDisk|null} [bootDisk] InstancePolicy bootDisk + * @property {Array.|null} [disks] InstancePolicy disks + */ - /** - * MethodOptions .google.api.methodSignature. - * @member {Array.} .google.api.methodSignature - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + /** + * Constructs a new InstancePolicy. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @classdesc Represents an InstancePolicy. + * @implements IInstancePolicy + * @constructor + * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy=} [properties] Properties to set + */ + function InstancePolicy(properties) { + this.accelerators = []; + this.disks = []; + 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]]; + } - /** - * MethodOptions .google.longrunning.operationInfo. - * @member {google.longrunning.IOperationInfo|null|undefined} .google.longrunning.operationInfo - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype[".google.longrunning.operationInfo"] = null; + /** + * InstancePolicy machineType. + * @member {string} machineType + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.machineType = ""; - /** - * Creates a new MethodOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - * @returns {google.protobuf.MethodOptions} MethodOptions instance - */ - MethodOptions.create = function create(properties) { - return new MethodOptions(properties); - }; + /** + * InstancePolicy minCpuPlatform. + * @member {string} minCpuPlatform + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.minCpuPlatform = ""; - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) - writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.longrunning.operationInfo"] != null && Object.hasOwnProperty.call(message, ".google.longrunning.operationInfo")) - $root.google.longrunning.OperationInfo.encode(message[".google.longrunning.operationInfo"], writer.uint32(/* id 1049, wireType 2 =*/8394).fork()).ldelim(); - if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); - if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); - return writer; - }; + /** + * InstancePolicy provisioningModel. + * @member {google.cloud.batch.v1.AllocationPolicy.ProvisioningModel} provisioningModel + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.provisioningModel = 0; - /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * InstancePolicy accelerators. + * @member {Array.} accelerators + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.accelerators = $util.emptyArray; - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 33: { - message.deprecated = reader.bool(); - break; - } - case 34: { - message.idempotencyLevel = reader.int32(); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - case 72295728: { - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - } - case 1051: { - if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) - message[".google.api.methodSignature"] = []; - message[".google.api.methodSignature"].push(reader.string()); - break; - } - case 1049: { - message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MethodOptions message. - * @function verify - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - switch (message.idempotencyLevel) { - default: - return "idempotencyLevel: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); - if (error) - return ".google.api.http." + error; - } - if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { - if (!Array.isArray(message[".google.api.methodSignature"])) - return ".google.api.methodSignature: array expected"; - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - if (!$util.isString(message[".google.api.methodSignature"][i])) - return ".google.api.methodSignature: string[] expected"; - } - if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) { - var error = $root.google.longrunning.OperationInfo.verify(message[".google.longrunning.operationInfo"]); - if (error) - return ".google.longrunning.operationInfo." + error; - } - return null; - }; + /** + * InstancePolicy bootDisk. + * @member {google.cloud.batch.v1.AllocationPolicy.IDisk|null|undefined} bootDisk + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.bootDisk = null; - /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MethodOptions} MethodOptions - */ - MethodOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodOptions) - return object; - var message = new $root.google.protobuf.MethodOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - switch (object.idempotencyLevel) { - default: - if (typeof object.idempotencyLevel === "number") { - message.idempotencyLevel = object.idempotencyLevel; - break; - } - break; - case "IDEMPOTENCY_UNKNOWN": - case 0: - message.idempotencyLevel = 0; - break; - case "NO_SIDE_EFFECTS": - case 1: - message.idempotencyLevel = 1; - break; - case "IDEMPOTENT": - case 2: - message.idempotencyLevel = 2; - break; - } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.http"] != null) { - if (typeof object[".google.api.http"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); - message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); - } - if (object[".google.api.methodSignature"]) { - if (!Array.isArray(object[".google.api.methodSignature"])) - throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); - message[".google.api.methodSignature"] = []; - for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) - message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); - } - if (object[".google.longrunning.operationInfo"] != null) { - if (typeof object[".google.longrunning.operationInfo"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.longrunning.operationInfo: object expected"); - message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.fromObject(object[".google.longrunning.operationInfo"]); - } - return message; - }; + /** + * InstancePolicy disks. + * @member {Array.} disks + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.disks = $util.emptyArray; - /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.MethodOptions} message MethodOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MethodOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.methodSignature"] = []; - } - if (options.defaults) { - object.deprecated = false; - object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; - object[".google.longrunning.operationInfo"] = null; - object[".google.api.http"] = null; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) - object[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.toObject(message[".google.longrunning.operationInfo"], options); - if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { - object[".google.api.methodSignature"] = []; - for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) - object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); - return object; - }; + /** + * Creates a new InstancePolicy instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} InstancePolicy instance + */ + InstancePolicy.create = function create(properties) { + return new InstancePolicy(properties); + }; - /** - * Converts this MethodOptions to JSON. - * @function toJSON - * @memberof google.protobuf.MethodOptions - * @instance - * @returns {Object.} JSON object - */ - MethodOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified InstancePolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy} message InstancePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.machineType); + if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.minCpuPlatform); + if (message.provisioningModel != null && Object.hasOwnProperty.call(message, "provisioningModel")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.provisioningModel); + if (message.accelerators != null && message.accelerators.length) + for (var i = 0; i < message.accelerators.length; ++i) + $root.google.cloud.batch.v1.AllocationPolicy.Accelerator.encode(message.accelerators[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.disks != null && message.disks.length) + for (var i = 0; i < message.disks.length; ++i) + $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.encode(message.disks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.bootDisk != null && Object.hasOwnProperty.call(message, "bootDisk")) + $root.google.cloud.batch.v1.AllocationPolicy.Disk.encode(message.bootDisk, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; - /** - * Gets the default type url for MethodOptions - * @function getTypeUrl - * @memberof google.protobuf.MethodOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.MethodOptions"; - }; + /** + * Encodes the specified InstancePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy} message InstancePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * IdempotencyLevel enum. - * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {number} - * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value - * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value - * @property {number} IDEMPOTENT=2 IDEMPOTENT value - */ - MethodOptions.IdempotencyLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; - values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; - values[valuesById[2] = "IDEMPOTENT"] = 2; - return values; - })(); + /** + * Decodes an InstancePolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} InstancePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.machineType = reader.string(); + break; + } + case 3: { + message.minCpuPlatform = reader.string(); + break; + } + case 4: { + message.provisioningModel = reader.int32(); + break; + } + case 5: { + if (!(message.accelerators && message.accelerators.length)) + message.accelerators = []; + message.accelerators.push($root.google.cloud.batch.v1.AllocationPolicy.Accelerator.decode(reader, reader.uint32())); + break; + } + case 8: { + message.bootDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.disks && message.disks.length)) + message.disks = []; + message.disks.push($root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return MethodOptions; - })(); + /** + * Decodes an InstancePolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} InstancePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - protobuf.UninterpretedOption = (function() { + /** + * Verifies an InstancePolicy message. + * @function verify + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstancePolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.machineType != null && message.hasOwnProperty("machineType")) + if (!$util.isString(message.machineType)) + return "machineType: string expected"; + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + if (!$util.isString(message.minCpuPlatform)) + return "minCpuPlatform: string expected"; + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) + switch (message.provisioningModel) { + default: + return "provisioningModel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.accelerators != null && message.hasOwnProperty("accelerators")) { + if (!Array.isArray(message.accelerators)) + return "accelerators: array expected"; + for (var i = 0; i < message.accelerators.length; ++i) { + var error = $root.google.cloud.batch.v1.AllocationPolicy.Accelerator.verify(message.accelerators[i]); + if (error) + return "accelerators." + error; + } + } + if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) { + var error = $root.google.cloud.batch.v1.AllocationPolicy.Disk.verify(message.bootDisk); + if (error) + return "bootDisk." + error; + } + if (message.disks != null && message.hasOwnProperty("disks")) { + if (!Array.isArray(message.disks)) + return "disks: array expected"; + for (var i = 0; i < message.disks.length; ++i) { + var error = $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify(message.disks[i]); + if (error) + return "disks." + error; + } + } + return null; + }; - /** - * Properties of an UninterpretedOption. - * @memberof google.protobuf - * @interface IUninterpretedOption - * @property {Array.|null} [name] UninterpretedOption name - * @property {string|null} [identifierValue] UninterpretedOption identifierValue - * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue - * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue - * @property {number|null} [doubleValue] UninterpretedOption doubleValue - * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue - * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue - */ + /** + * Creates an InstancePolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} InstancePolicy + */ + InstancePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) + return object; + var message = new $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy(); + if (object.machineType != null) + message.machineType = String(object.machineType); + if (object.minCpuPlatform != null) + message.minCpuPlatform = String(object.minCpuPlatform); + switch (object.provisioningModel) { + default: + if (typeof object.provisioningModel === "number") { + message.provisioningModel = object.provisioningModel; + break; + } + break; + case "PROVISIONING_MODEL_UNSPECIFIED": + case 0: + message.provisioningModel = 0; + break; + case "STANDARD": + case 1: + message.provisioningModel = 1; + break; + case "SPOT": + case 2: + message.provisioningModel = 2; + break; + case "PREEMPTIBLE": + case 3: + message.provisioningModel = 3; + break; + } + if (object.accelerators) { + if (!Array.isArray(object.accelerators)) + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicy.accelerators: array expected"); + message.accelerators = []; + for (var i = 0; i < object.accelerators.length; ++i) { + if (typeof object.accelerators[i] !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicy.accelerators: object expected"); + message.accelerators[i] = $root.google.cloud.batch.v1.AllocationPolicy.Accelerator.fromObject(object.accelerators[i]); + } + } + if (object.bootDisk != null) { + if (typeof object.bootDisk !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicy.bootDisk: object expected"); + message.bootDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.fromObject(object.bootDisk); + } + if (object.disks) { + if (!Array.isArray(object.disks)) + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicy.disks: array expected"); + message.disks = []; + for (var i = 0; i < object.disks.length; ++i) { + if (typeof object.disks[i] !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicy.disks: object expected"); + message.disks[i] = $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.fromObject(object.disks[i]); + } + } + return message; + }; - /** - * Constructs a new UninterpretedOption. - * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption - * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - */ - function UninterpretedOption(properties) { - this.name = []; - 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]]; - } - - /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.name = $util.emptyArray; + /** + * Creates a plain object from an InstancePolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} message InstancePolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstancePolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.accelerators = []; + object.disks = []; + } + if (options.defaults) { + object.machineType = ""; + object.minCpuPlatform = ""; + object.provisioningModel = options.enums === String ? "PROVISIONING_MODEL_UNSPECIFIED" : 0; + object.bootDisk = null; + } + if (message.machineType != null && message.hasOwnProperty("machineType")) + object.machineType = message.machineType; + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + object.minCpuPlatform = message.minCpuPlatform; + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) + object.provisioningModel = options.enums === String ? $root.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel[message.provisioningModel] === undefined ? message.provisioningModel : $root.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel[message.provisioningModel] : message.provisioningModel; + if (message.accelerators && message.accelerators.length) { + object.accelerators = []; + for (var j = 0; j < message.accelerators.length; ++j) + object.accelerators[j] = $root.google.cloud.batch.v1.AllocationPolicy.Accelerator.toObject(message.accelerators[j], options); + } + if (message.disks && message.disks.length) { + object.disks = []; + for (var j = 0; j < message.disks.length; ++j) + object.disks[j] = $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.toObject(message.disks[j], options); + } + if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) + object.bootDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.toObject(message.bootDisk, options); + return object; + }; - /** - * UninterpretedOption identifierValue. - * @member {string} identifierValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.identifierValue = ""; + /** + * Converts this InstancePolicy to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @instance + * @returns {Object.} JSON object + */ + InstancePolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * UninterpretedOption positiveIntValue. - * @member {number|Long} positiveIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Gets the default type url for InstancePolicy + * @function getTypeUrl + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstancePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.InstancePolicy"; + }; - /** - * UninterpretedOption negativeIntValue. - * @member {number|Long} negativeIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + return InstancePolicy; + })(); - /** - * UninterpretedOption doubleValue. - * @member {number} doubleValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.doubleValue = 0; + AllocationPolicy.InstancePolicyOrTemplate = (function() { - /** - * UninterpretedOption stringValue. - * @member {Uint8Array} stringValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + /** + * Properties of an InstancePolicyOrTemplate. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @interface IInstancePolicyOrTemplate + * @property {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy|null} [policy] InstancePolicyOrTemplate policy + * @property {string|null} [instanceTemplate] InstancePolicyOrTemplate instanceTemplate + * @property {boolean|null} [installGpuDrivers] InstancePolicyOrTemplate installGpuDrivers + */ - /** - * UninterpretedOption aggregateValue. - * @member {string} aggregateValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.aggregateValue = ""; + /** + * Constructs a new InstancePolicyOrTemplate. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @classdesc Represents an InstancePolicyOrTemplate. + * @implements IInstancePolicyOrTemplate + * @constructor + * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate=} [properties] Properties to set + */ + function InstancePolicyOrTemplate(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]]; + } - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance - */ - UninterpretedOption.create = function create(properties) { - return new UninterpretedOption(properties); - }; + /** + * InstancePolicyOrTemplate policy. + * @member {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy|null|undefined} policy + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @instance + */ + InstancePolicyOrTemplate.prototype.policy = null; - /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UninterpretedOption.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.name.length) - for (var i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); - return writer; - }; + /** + * InstancePolicyOrTemplate instanceTemplate. + * @member {string|null|undefined} instanceTemplate + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @instance + */ + InstancePolicyOrTemplate.prototype.instanceTemplate = null; - /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * InstancePolicyOrTemplate installGpuDrivers. + * @member {boolean} installGpuDrivers + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @instance + */ + InstancePolicyOrTemplate.prototype.installGpuDrivers = false; - /** - * Decodes an UninterpretedOption message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UninterpretedOption.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); - break; - } - case 3: { - message.identifierValue = reader.string(); - break; - } - case 4: { - message.positiveIntValue = reader.uint64(); - break; - } - case 5: { - message.negativeIntValue = reader.int64(); - break; - } - case 6: { - message.doubleValue = reader.double(); - break; - } - case 7: { - message.stringValue = reader.bytes(); - break; - } - case 8: { - message.aggregateValue = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * InstancePolicyOrTemplate policyTemplate. + * @member {"policy"|"instanceTemplate"|undefined} policyTemplate + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @instance + */ + Object.defineProperty(InstancePolicyOrTemplate.prototype, "policyTemplate", { + get: $util.oneOfGetter($oneOfFields = ["policy", "instanceTemplate"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Verifies an UninterpretedOption message. - * @function verify - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UninterpretedOption.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) { - if (!Array.isArray(message.name)) - return "name: array expected"; - for (var i = 0; i < message.name.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); - if (error) - return "name." + error; - } - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - if (!$util.isString(message.identifierValue)) - return "identifierValue: string expected"; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) - return "positiveIntValue: integer|Long expected"; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) - return "negativeIntValue: integer|Long expected"; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) - return "stringValue: buffer expected"; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - if (!$util.isString(message.aggregateValue)) - return "aggregateValue: string expected"; - return null; - }; + /** + * Creates a new InstancePolicyOrTemplate instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate=} [properties] Properties to set + * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate instance + */ + InstancePolicyOrTemplate.create = function create(properties) { + return new InstancePolicyOrTemplate(properties); + }; - /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - */ - UninterpretedOption.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption) - return object; - var message = new $root.google.protobuf.UninterpretedOption(); - if (object.name) { - if (!Array.isArray(object.name)) - throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); - message.name = []; - for (var i = 0; i < object.name.length; ++i) { - if (typeof object.name[i] !== "object") - throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); - message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); - } - } - if (object.identifierValue != null) - message.identifierValue = String(object.identifierValue); - if (object.positiveIntValue != null) - if ($util.Long) - (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; - else if (typeof object.positiveIntValue === "string") - message.positiveIntValue = parseInt(object.positiveIntValue, 10); - else if (typeof object.positiveIntValue === "number") - message.positiveIntValue = object.positiveIntValue; - else if (typeof object.positiveIntValue === "object") - message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); - if (object.negativeIntValue != null) - if ($util.Long) - (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; - else if (typeof object.negativeIntValue === "string") - message.negativeIntValue = parseInt(object.negativeIntValue, 10); - else if (typeof object.negativeIntValue === "number") - message.negativeIntValue = object.negativeIntValue; - else if (typeof object.negativeIntValue === "object") - message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - if (typeof object.stringValue === "string") - $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); - else if (object.stringValue.length >= 0) - message.stringValue = object.stringValue; - if (object.aggregateValue != null) - message.aggregateValue = String(object.aggregateValue); - return message; - }; + /** + * Encodes the specified InstancePolicyOrTemplate message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate} message InstancePolicyOrTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePolicyOrTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) + $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.encode(message.policy, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instanceTemplate != null && Object.hasOwnProperty.call(message, "instanceTemplate")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.instanceTemplate); + if (message.installGpuDrivers != null && Object.hasOwnProperty.call(message, "installGpuDrivers")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.installGpuDrivers); + return writer; + }; - /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.UninterpretedOption} message UninterpretedOption - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UninterpretedOption.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.name = []; - if (options.defaults) { - object.identifierValue = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.positiveIntValue = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.negativeIntValue = options.longs === String ? "0" : 0; - object.doubleValue = 0; - if (options.bytes === String) - object.stringValue = ""; - else { - object.stringValue = []; - if (options.bytes !== Array) - object.stringValue = $util.newBuffer(object.stringValue); - } - object.aggregateValue = ""; - } - if (message.name && message.name.length) { - object.name = []; - for (var j = 0; j < message.name.length; ++j) - object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - object.identifierValue = message.identifierValue; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (typeof message.positiveIntValue === "number") - object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; - else - object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (typeof message.negativeIntValue === "number") - object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; - else - object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - object.aggregateValue = message.aggregateValue; - return object; - }; + /** + * Encodes the specified InstancePolicyOrTemplate message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate} message InstancePolicyOrTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePolicyOrTemplate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this UninterpretedOption to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption - * @instance - * @returns {Object.} JSON object - */ - UninterpretedOption.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UninterpretedOption - * @function getTypeUrl - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; - }; - - UninterpretedOption.NamePart = (function() { - - /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} namePart NamePart namePart - * @property {boolean} isExtension NamePart isExtension - */ - - /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart - * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - */ - function NamePart(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]]; - } - - /** - * NamePart namePart. - * @member {string} namePart - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.namePart = ""; - - /** - * NamePart isExtension. - * @member {boolean} isExtension - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.isExtension = false; + /** + * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePolicyOrTemplate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.policy = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instanceTemplate = reader.string(); + break; + } + case 3: { + message.installGpuDrivers = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new NamePart instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance - */ - NamePart.create = function create(properties) { - return new NamePart(properties); - }; + /** + * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePolicyOrTemplate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); - return writer; - }; + /** + * Verifies an InstancePolicyOrTemplate message. + * @function verify + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstancePolicyOrTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.policy != null && message.hasOwnProperty("policy")) { + properties.policyTemplate = 1; + { + var error = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify(message.policy); + if (error) + return "policy." + error; + } + } + if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) { + if (properties.policyTemplate === 1) + return "policyTemplate: multiple values"; + properties.policyTemplate = 1; + if (!$util.isString(message.instanceTemplate)) + return "instanceTemplate: string expected"; + } + if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) + if (typeof message.installGpuDrivers !== "boolean") + return "installGpuDrivers: boolean expected"; + return null; + }; - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates an InstancePolicyOrTemplate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate + */ + InstancePolicyOrTemplate.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) + return object; + var message = new $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate(); + if (object.policy != null) { + if (typeof object.policy !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.policy: object expected"); + message.policy = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.fromObject(object.policy); + } + if (object.instanceTemplate != null) + message.instanceTemplate = String(object.instanceTemplate); + if (object.installGpuDrivers != null) + message.installGpuDrivers = Boolean(object.installGpuDrivers); + return message; + }; - /** - * Decodes a NamePart message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.namePart = reader.string(); - break; + /** + * Creates a plain object from an InstancePolicyOrTemplate message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} message InstancePolicyOrTemplate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstancePolicyOrTemplate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.installGpuDrivers = false; + if (message.policy != null && message.hasOwnProperty("policy")) { + object.policy = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.toObject(message.policy, options); + if (options.oneofs) + object.policyTemplate = "policy"; } - case 2: { - message.isExtension = reader.bool(); - break; + if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) { + object.instanceTemplate = message.instanceTemplate; + if (options.oneofs) + object.policyTemplate = "instanceTemplate"; } - default: - reader.skipType(tag & 7); - break; - } - } - if (!message.hasOwnProperty("namePart")) - throw $util.ProtocolError("missing required 'namePart'", { instance: message }); - if (!message.hasOwnProperty("isExtension")) - throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); - return message; - }; + if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) + object.installGpuDrivers = message.installGpuDrivers; + return object; + }; - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this InstancePolicyOrTemplate to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @instance + * @returns {Object.} JSON object + */ + InstancePolicyOrTemplate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamePart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (!$util.isString(message.namePart)) - return "namePart: string expected"; - if (typeof message.isExtension !== "boolean") - return "isExtension: boolean expected"; - return null; - }; + /** + * Gets the default type url for InstancePolicyOrTemplate + * @function getTypeUrl + * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstancePolicyOrTemplate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate"; + }; - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - */ - NamePart.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) - return object; - var message = new $root.google.protobuf.UninterpretedOption.NamePart(); - if (object.namePart != null) - message.namePart = String(object.namePart); - if (object.isExtension != null) - message.isExtension = Boolean(object.isExtension); - return message; - }; + return InstancePolicyOrTemplate; + })(); - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NamePart.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.namePart = ""; - object.isExtension = false; - } - if (message.namePart != null && message.hasOwnProperty("namePart")) - object.namePart = message.namePart; - if (message.isExtension != null && message.hasOwnProperty("isExtension")) - object.isExtension = message.isExtension; - return object; - }; + AllocationPolicy.NetworkInterface = (function() { - /** - * Converts this NamePart to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - * @returns {Object.} JSON object - */ - NamePart.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a NetworkInterface. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @interface INetworkInterface + * @property {string|null} [network] NetworkInterface network + * @property {string|null} [subnetwork] NetworkInterface subnetwork + * @property {boolean|null} [noExternalIpAddress] NetworkInterface noExternalIpAddress + */ - /** - * Gets the default type url for NamePart - * @function getTypeUrl - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; - }; + /** + * Constructs a new NetworkInterface. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @classdesc Represents a NetworkInterface. + * @implements INetworkInterface + * @constructor + * @param {google.cloud.batch.v1.AllocationPolicy.INetworkInterface=} [properties] Properties to set + */ + function NetworkInterface(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]]; + } - return NamePart; - })(); + /** + * NetworkInterface network. + * @member {string} network + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @instance + */ + NetworkInterface.prototype.network = ""; - return UninterpretedOption; - })(); + /** + * NetworkInterface subnetwork. + * @member {string} subnetwork + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @instance + */ + NetworkInterface.prototype.subnetwork = ""; - protobuf.SourceCodeInfo = (function() { + /** + * NetworkInterface noExternalIpAddress. + * @member {boolean} noExternalIpAddress + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @instance + */ + NetworkInterface.prototype.noExternalIpAddress = false; - /** - * Properties of a SourceCodeInfo. - * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location - */ + /** + * Creates a new NetworkInterface instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.INetworkInterface=} [properties] Properties to set + * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} NetworkInterface instance + */ + NetworkInterface.create = function create(properties) { + return new NetworkInterface(properties); + }; - /** - * Constructs a new SourceCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo - * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - */ - function SourceCodeInfo(properties) { - this.location = []; - 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]]; - } + /** + * Encodes the specified NetworkInterface message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.INetworkInterface} message NetworkInterface message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkInterface.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); + if (message.noExternalIpAddress != null && Object.hasOwnProperty.call(message, "noExternalIpAddress")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.noExternalIpAddress); + return writer; + }; - /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo - * @instance - */ - SourceCodeInfo.prototype.location = $util.emptyArray; + /** + * Encodes the specified NetworkInterface message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.INetworkInterface} message NetworkInterface message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkInterface.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance - */ - SourceCodeInfo.create = function create(properties) { - return new SourceCodeInfo(properties); - }; - - /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceCodeInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.location != null && message.location.length) - for (var i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Decodes a NetworkInterface message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} NetworkInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkInterface.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.network = reader.string(); + break; + } + case 2: { + message.subnetwork = reader.string(); + break; + } + case 3: { + message.noExternalIpAddress = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a NetworkInterface message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} NetworkInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkInterface.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceCodeInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a NetworkInterface message. + * @function verify + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkInterface.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + if (message.noExternalIpAddress != null && message.hasOwnProperty("noExternalIpAddress")) + if (typeof message.noExternalIpAddress !== "boolean") + return "noExternalIpAddress: boolean expected"; + return null; + }; - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} NetworkInterface + */ + NetworkInterface.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface) + return object; + var message = new $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface(); + if (object.network != null) + message.network = String(object.network); + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + if (object.noExternalIpAddress != null) + message.noExternalIpAddress = Boolean(object.noExternalIpAddress); + return message; + }; - /** - * Verifies a SourceCodeInfo message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SourceCodeInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - if (!Array.isArray(message.location)) - return "location: array expected"; - for (var i = 0; i < message.location.length; ++i) { - var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); - if (error) - return "location." + error; - } - } - return null; - }; + /** + * Creates a plain object from a NetworkInterface message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} message NetworkInterface + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkInterface.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.network = ""; + object.subnetwork = ""; + object.noExternalIpAddress = false; + } + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + object.subnetwork = message.subnetwork; + if (message.noExternalIpAddress != null && message.hasOwnProperty("noExternalIpAddress")) + object.noExternalIpAddress = message.noExternalIpAddress; + return object; + }; - /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - */ - SourceCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo) - return object; - var message = new $root.google.protobuf.SourceCodeInfo(); - if (object.location) { - if (!Array.isArray(object.location)) - throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); - message.location = []; - for (var i = 0; i < object.location.length; ++i) { - if (typeof object.location[i] !== "object") - throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); - message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); - } - } - return message; - }; + /** + * Converts this NetworkInterface to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @instance + * @returns {Object.} JSON object + */ + NetworkInterface.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SourceCodeInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.location = []; - if (message.location && message.location.length) { - object.location = []; - for (var j = 0; j < message.location.length; ++j) - object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); - } - return object; - }; + /** + * Gets the default type url for NetworkInterface + * @function getTypeUrl + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkInterface.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.NetworkInterface"; + }; - /** - * Converts this SourceCodeInfo to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo - * @instance - * @returns {Object.} JSON object - */ - SourceCodeInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return NetworkInterface; + })(); - /** - * Gets the default type url for SourceCodeInfo - * @function getTypeUrl - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; - }; + AllocationPolicy.NetworkPolicy = (function() { - SourceCodeInfo.Location = (function() { + /** + * Properties of a NetworkPolicy. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @interface INetworkPolicy + * @property {Array.|null} [networkInterfaces] NetworkPolicy networkInterfaces + */ - /** - * Properties of a Location. - * @memberof google.protobuf.SourceCodeInfo - * @interface ILocation - * @property {Array.|null} [path] Location path - * @property {Array.|null} [span] Location span - * @property {string|null} [leadingComments] Location leadingComments - * @property {string|null} [trailingComments] Location trailingComments - * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments - */ + /** + * Constructs a new NetworkPolicy. + * @memberof google.cloud.batch.v1.AllocationPolicy + * @classdesc Represents a NetworkPolicy. + * @implements INetworkPolicy + * @constructor + * @param {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy=} [properties] Properties to set + */ + function NetworkPolicy(properties) { + this.networkInterfaces = []; + 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]]; + } - /** - * Constructs a new Location. - * @memberof google.protobuf.SourceCodeInfo - * @classdesc Represents a Location. - * @implements ILocation - * @constructor - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - */ - function Location(properties) { - this.path = []; - this.span = []; - this.leadingDetachedComments = []; - 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]]; - } + /** + * NetworkPolicy networkInterfaces. + * @member {Array.} networkInterfaces + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.networkInterfaces = $util.emptyArray; - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; + /** + * Creates a new NetworkPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} NetworkPolicy instance + */ + NetworkPolicy.create = function create(properties) { + return new NetworkPolicy(properties); + }; - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; + /** + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.networkInterfaces != null && message.networkInterfaces.length) + for (var i = 0; i < message.networkInterfaces.length; ++i) + $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.encode(message.networkInterfaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Location leadingComments. - * @member {string} leadingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingComments = ""; + /** + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Location trailingComments. - * @member {string} trailingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailingComments = ""; + /** + * Decodes a NetworkPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} NetworkPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.networkInterfaces && message.networkInterfaces.length)) + message.networkInterfaces = []; + message.networkInterfaces.push($root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Location leadingDetachedComments. - * @member {Array.} leadingDetachedComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingDetachedComments = $util.emptyArray; + /** + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} NetworkPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new Location instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo.Location} Location instance - */ - Location.create = function create(properties) { - return new Location(properties); - }; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.span != null && message.span.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.span.length; ++i) - writer.int32(message.span[i]); - writer.ldelim(); - } - if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); - if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); - return writer; - }; - - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Location message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - } - case 2: { - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; + /** + * Verifies a NetworkPolicy message. + * @function verify + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkInterfaces != null && message.hasOwnProperty("networkInterfaces")) { + if (!Array.isArray(message.networkInterfaces)) + return "networkInterfaces: array expected"; + for (var i = 0; i < message.networkInterfaces.length; ++i) { + var error = $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify(message.networkInterfaces[i]); + if (error) + return "networkInterfaces." + error; + } } - case 3: { - message.leadingComments = reader.string(); - break; + return null; + }; + + /** + * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} NetworkPolicy + */ + NetworkPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) + return object; + var message = new $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy(); + if (object.networkInterfaces) { + if (!Array.isArray(object.networkInterfaces)) + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.networkInterfaces: array expected"); + message.networkInterfaces = []; + for (var i = 0; i < object.networkInterfaces.length; ++i) { + if (typeof object.networkInterfaces[i] !== "object") + throw TypeError(".google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.networkInterfaces: object expected"); + message.networkInterfaces[i] = $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.fromObject(object.networkInterfaces[i]); + } } - case 4: { - message.trailingComments = reader.string(); - break; + return message; + }; + + /** + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @static + * @param {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} message NetworkPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.networkInterfaces = []; + if (message.networkInterfaces && message.networkInterfaces.length) { + object.networkInterfaces = []; + for (var j = 0; j < message.networkInterfaces.length; ++j) + object.networkInterfaces[j] = $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.toObject(message.networkInterfaces[j], options); } - case 6: { - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; + return object; + }; + + /** + * Converts this NetworkPolicy to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @instance + * @returns {Object.} JSON object + */ + NetworkPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkPolicy + * @function getTypeUrl + * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.NetworkPolicy"; + }; - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return NetworkPolicy; + })(); - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Location.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (var i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - if (!$util.isString(message.leadingComments)) - return "leadingComments: string expected"; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - if (!$util.isString(message.trailingComments)) - return "trailingComments: string expected"; - if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { - if (!Array.isArray(message.leadingDetachedComments)) - return "leadingDetachedComments: array expected"; - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - if (!$util.isString(message.leadingDetachedComments[i])) - return "leadingDetachedComments: string[] expected"; - } - return null; - }; + /** + * ProvisioningModel enum. + * @name google.cloud.batch.v1.AllocationPolicy.ProvisioningModel + * @enum {number} + * @property {number} PROVISIONING_MODEL_UNSPECIFIED=0 PROVISIONING_MODEL_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} SPOT=2 SPOT value + * @property {number} PREEMPTIBLE=3 PREEMPTIBLE value + */ + AllocationPolicy.ProvisioningModel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROVISIONING_MODEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "SPOT"] = 2; + values[valuesById[3] = "PREEMPTIBLE"] = 3; + return values; + })(); - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo.Location} Location - */ - Location.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) - return object; - var message = new $root.google.protobuf.SourceCodeInfo.Location(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.span) { - if (!Array.isArray(object.span)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); - message.span = []; - for (var i = 0; i < object.span.length; ++i) - message.span[i] = object.span[i] | 0; - } - if (object.leadingComments != null) - message.leadingComments = String(object.leadingComments); - if (object.trailingComments != null) - message.trailingComments = String(object.trailingComments); - if (object.leadingDetachedComments) { - if (!Array.isArray(object.leadingDetachedComments)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); - message.leadingDetachedComments = []; - for (var i = 0; i < object.leadingDetachedComments.length; ++i) - message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); - } - return message; - }; + return AllocationPolicy; + })(); - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.Location} message Location - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Location.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.path = []; - object.span = []; - object.leadingDetachedComments = []; - } - if (options.defaults) { - object.leadingComments = ""; - object.trailingComments = ""; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.span && message.span.length) { - object.span = []; - for (var j = 0; j < message.span.length; ++j) - object.span[j] = message.span[j]; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - object.leadingComments = message.leadingComments; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - object.trailingComments = message.trailingComments; - if (message.leadingDetachedComments && message.leadingDetachedComments.length) { - object.leadingDetachedComments = []; - for (var j = 0; j < message.leadingDetachedComments.length; ++j) - object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; - } - return object; - }; + v1.TaskGroup = (function() { - /** - * Converts this Location to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - * @returns {Object.} JSON object - */ - Location.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a TaskGroup. + * @memberof google.cloud.batch.v1 + * @interface ITaskGroup + * @property {string|null} [name] TaskGroup name + * @property {google.cloud.batch.v1.ITaskSpec|null} [taskSpec] TaskGroup taskSpec + * @property {number|Long|null} [taskCount] TaskGroup taskCount + * @property {number|Long|null} [parallelism] TaskGroup parallelism + * @property {Array.|null} [taskEnvironments] TaskGroup taskEnvironments + * @property {number|Long|null} [taskCountPerNode] TaskGroup taskCountPerNode + * @property {boolean|null} [requireHostsFile] TaskGroup requireHostsFile + * @property {boolean|null} [permissiveSsh] TaskGroup permissiveSsh + */ - /** - * Gets the default type url for Location - * @function getTypeUrl - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Constructs a new TaskGroup. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a TaskGroup. + * @implements ITaskGroup + * @constructor + * @param {google.cloud.batch.v1.ITaskGroup=} [properties] Properties to set + */ + function TaskGroup(properties) { + this.taskEnvironments = []; + 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]]; } - return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; - }; - return Location; - })(); + /** + * TaskGroup name. + * @member {string} name + * @memberof google.cloud.batch.v1.TaskGroup + * @instance + */ + TaskGroup.prototype.name = ""; - return SourceCodeInfo; - })(); + /** + * TaskGroup taskSpec. + * @member {google.cloud.batch.v1.ITaskSpec|null|undefined} taskSpec + * @memberof google.cloud.batch.v1.TaskGroup + * @instance + */ + TaskGroup.prototype.taskSpec = null; - protobuf.GeneratedCodeInfo = (function() { + /** + * TaskGroup taskCount. + * @member {number|Long} taskCount + * @memberof google.cloud.batch.v1.TaskGroup + * @instance + */ + TaskGroup.prototype.taskCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Properties of a GeneratedCodeInfo. - * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation - */ + /** + * TaskGroup parallelism. + * @member {number|Long} parallelism + * @memberof google.cloud.batch.v1.TaskGroup + * @instance + */ + TaskGroup.prototype.parallelism = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Constructs a new GeneratedCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo - * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - */ - function GeneratedCodeInfo(properties) { - this.annotation = []; - 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]]; - } + /** + * TaskGroup taskEnvironments. + * @member {Array.} taskEnvironments + * @memberof google.cloud.batch.v1.TaskGroup + * @instance + */ + TaskGroup.prototype.taskEnvironments = $util.emptyArray; - /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo - * @instance - */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + /** + * TaskGroup taskCountPerNode. + * @member {number|Long} taskCountPerNode + * @memberof google.cloud.batch.v1.TaskGroup + * @instance + */ + TaskGroup.prototype.taskCountPerNode = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance - */ - GeneratedCodeInfo.create = function create(properties) { - return new GeneratedCodeInfo(properties); - }; + /** + * TaskGroup requireHostsFile. + * @member {boolean} requireHostsFile + * @memberof google.cloud.batch.v1.TaskGroup + * @instance + */ + TaskGroup.prototype.requireHostsFile = false; - /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GeneratedCodeInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotation != null && message.annotation.length) - for (var i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * TaskGroup permissiveSsh. + * @member {boolean} permissiveSsh + * @memberof google.cloud.batch.v1.TaskGroup + * @instance + */ + TaskGroup.prototype.permissiveSsh = false; - /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new TaskGroup instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.TaskGroup + * @static + * @param {google.cloud.batch.v1.ITaskGroup=} [properties] Properties to set + * @returns {google.cloud.batch.v1.TaskGroup} TaskGroup instance + */ + TaskGroup.create = function create(properties) { + return new TaskGroup(properties); + }; - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GeneratedCodeInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); - break; + /** + * Encodes the specified TaskGroup message. Does not implicitly {@link google.cloud.batch.v1.TaskGroup.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.TaskGroup + * @static + * @param {google.cloud.batch.v1.ITaskGroup} message TaskGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskGroup.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.taskSpec != null && Object.hasOwnProperty.call(message, "taskSpec")) + $root.google.cloud.batch.v1.TaskSpec.encode(message.taskSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.taskCount != null && Object.hasOwnProperty.call(message, "taskCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.taskCount); + if (message.parallelism != null && Object.hasOwnProperty.call(message, "parallelism")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.parallelism); + if (message.taskEnvironments != null && message.taskEnvironments.length) + for (var i = 0; i < message.taskEnvironments.length; ++i) + $root.google.cloud.batch.v1.Environment.encode(message.taskEnvironments[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.taskCountPerNode != null && Object.hasOwnProperty.call(message, "taskCountPerNode")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.taskCountPerNode); + if (message.requireHostsFile != null && Object.hasOwnProperty.call(message, "requireHostsFile")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.requireHostsFile); + if (message.permissiveSsh != null && Object.hasOwnProperty.call(message, "permissiveSsh")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.permissiveSsh); + return writer; + }; + + /** + * Encodes the specified TaskGroup message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskGroup.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.TaskGroup + * @static + * @param {google.cloud.batch.v1.ITaskGroup} message TaskGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskGroup.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TaskGroup message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.TaskGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.TaskGroup} TaskGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskGroup.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.TaskGroup(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.taskSpec = $root.google.cloud.batch.v1.TaskSpec.decode(reader, reader.uint32()); + break; + } + case 4: { + message.taskCount = reader.int64(); + break; + } + case 5: { + message.parallelism = reader.int64(); + break; + } + case 9: { + if (!(message.taskEnvironments && message.taskEnvironments.length)) + message.taskEnvironments = []; + message.taskEnvironments.push($root.google.cloud.batch.v1.Environment.decode(reader, reader.uint32())); + break; + } + case 10: { + message.taskCountPerNode = reader.int64(); + break; + } + case 11: { + message.requireHostsFile = reader.bool(); + break; + } + case 12: { + message.permissiveSsh = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return message; + }; - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a TaskGroup message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.TaskGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.TaskGroup} TaskGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskGroup.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a GeneratedCodeInfo message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GeneratedCodeInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotation != null && message.hasOwnProperty("annotation")) { - if (!Array.isArray(message.annotation)) - return "annotation: array expected"; - for (var i = 0; i < message.annotation.length; ++i) { - var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); - if (error) - return "annotation." + error; - } - } - return null; - }; + /** + * Verifies a TaskGroup message. + * @function verify + * @memberof google.cloud.batch.v1.TaskGroup + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskGroup.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.taskSpec != null && message.hasOwnProperty("taskSpec")) { + var error = $root.google.cloud.batch.v1.TaskSpec.verify(message.taskSpec); + if (error) + return "taskSpec." + error; + } + if (message.taskCount != null && message.hasOwnProperty("taskCount")) + if (!$util.isInteger(message.taskCount) && !(message.taskCount && $util.isInteger(message.taskCount.low) && $util.isInteger(message.taskCount.high))) + return "taskCount: integer|Long expected"; + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + if (!$util.isInteger(message.parallelism) && !(message.parallelism && $util.isInteger(message.parallelism.low) && $util.isInteger(message.parallelism.high))) + return "parallelism: integer|Long expected"; + if (message.taskEnvironments != null && message.hasOwnProperty("taskEnvironments")) { + if (!Array.isArray(message.taskEnvironments)) + return "taskEnvironments: array expected"; + for (var i = 0; i < message.taskEnvironments.length; ++i) { + var error = $root.google.cloud.batch.v1.Environment.verify(message.taskEnvironments[i]); + if (error) + return "taskEnvironments." + error; + } + } + if (message.taskCountPerNode != null && message.hasOwnProperty("taskCountPerNode")) + if (!$util.isInteger(message.taskCountPerNode) && !(message.taskCountPerNode && $util.isInteger(message.taskCountPerNode.low) && $util.isInteger(message.taskCountPerNode.high))) + return "taskCountPerNode: integer|Long expected"; + if (message.requireHostsFile != null && message.hasOwnProperty("requireHostsFile")) + if (typeof message.requireHostsFile !== "boolean") + return "requireHostsFile: boolean expected"; + if (message.permissiveSsh != null && message.hasOwnProperty("permissiveSsh")) + if (typeof message.permissiveSsh !== "boolean") + return "permissiveSsh: boolean expected"; + return null; + }; - /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - */ - GeneratedCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo) - return object; - var message = new $root.google.protobuf.GeneratedCodeInfo(); - if (object.annotation) { - if (!Array.isArray(object.annotation)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); - message.annotation = []; - for (var i = 0; i < object.annotation.length; ++i) { - if (typeof object.annotation[i] !== "object") - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); - message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); - } - } - return message; - }; + /** + * Creates a TaskGroup message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.TaskGroup + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.TaskGroup} TaskGroup + */ + TaskGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.TaskGroup) + return object; + var message = new $root.google.cloud.batch.v1.TaskGroup(); + if (object.name != null) + message.name = String(object.name); + if (object.taskSpec != null) { + if (typeof object.taskSpec !== "object") + throw TypeError(".google.cloud.batch.v1.TaskGroup.taskSpec: object expected"); + message.taskSpec = $root.google.cloud.batch.v1.TaskSpec.fromObject(object.taskSpec); + } + if (object.taskCount != null) + if ($util.Long) + (message.taskCount = $util.Long.fromValue(object.taskCount)).unsigned = false; + else if (typeof object.taskCount === "string") + message.taskCount = parseInt(object.taskCount, 10); + else if (typeof object.taskCount === "number") + message.taskCount = object.taskCount; + else if (typeof object.taskCount === "object") + message.taskCount = new $util.LongBits(object.taskCount.low >>> 0, object.taskCount.high >>> 0).toNumber(); + if (object.parallelism != null) + if ($util.Long) + (message.parallelism = $util.Long.fromValue(object.parallelism)).unsigned = false; + else if (typeof object.parallelism === "string") + message.parallelism = parseInt(object.parallelism, 10); + else if (typeof object.parallelism === "number") + message.parallelism = object.parallelism; + else if (typeof object.parallelism === "object") + message.parallelism = new $util.LongBits(object.parallelism.low >>> 0, object.parallelism.high >>> 0).toNumber(); + if (object.taskEnvironments) { + if (!Array.isArray(object.taskEnvironments)) + throw TypeError(".google.cloud.batch.v1.TaskGroup.taskEnvironments: array expected"); + message.taskEnvironments = []; + for (var i = 0; i < object.taskEnvironments.length; ++i) { + if (typeof object.taskEnvironments[i] !== "object") + throw TypeError(".google.cloud.batch.v1.TaskGroup.taskEnvironments: object expected"); + message.taskEnvironments[i] = $root.google.cloud.batch.v1.Environment.fromObject(object.taskEnvironments[i]); + } + } + if (object.taskCountPerNode != null) + if ($util.Long) + (message.taskCountPerNode = $util.Long.fromValue(object.taskCountPerNode)).unsigned = false; + else if (typeof object.taskCountPerNode === "string") + message.taskCountPerNode = parseInt(object.taskCountPerNode, 10); + else if (typeof object.taskCountPerNode === "number") + message.taskCountPerNode = object.taskCountPerNode; + else if (typeof object.taskCountPerNode === "object") + message.taskCountPerNode = new $util.LongBits(object.taskCountPerNode.low >>> 0, object.taskCountPerNode.high >>> 0).toNumber(); + if (object.requireHostsFile != null) + message.requireHostsFile = Boolean(object.requireHostsFile); + if (object.permissiveSsh != null) + message.permissiveSsh = Boolean(object.permissiveSsh); + return message; + }; - /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GeneratedCodeInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.annotation = []; - if (message.annotation && message.annotation.length) { - object.annotation = []; - for (var j = 0; j < message.annotation.length; ++j) - object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); - } - return object; - }; + /** + * Creates a plain object from a TaskGroup message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.TaskGroup + * @static + * @param {google.cloud.batch.v1.TaskGroup} message TaskGroup + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TaskGroup.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.taskEnvironments = []; + if (options.defaults) { + object.name = ""; + object.taskSpec = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.parallelism = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.parallelism = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskCountPerNode = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskCountPerNode = options.longs === String ? "0" : 0; + object.requireHostsFile = false; + object.permissiveSsh = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.taskSpec != null && message.hasOwnProperty("taskSpec")) + object.taskSpec = $root.google.cloud.batch.v1.TaskSpec.toObject(message.taskSpec, options); + if (message.taskCount != null && message.hasOwnProperty("taskCount")) + if (typeof message.taskCount === "number") + object.taskCount = options.longs === String ? String(message.taskCount) : message.taskCount; + else + object.taskCount = options.longs === String ? $util.Long.prototype.toString.call(message.taskCount) : options.longs === Number ? new $util.LongBits(message.taskCount.low >>> 0, message.taskCount.high >>> 0).toNumber() : message.taskCount; + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + if (typeof message.parallelism === "number") + object.parallelism = options.longs === String ? String(message.parallelism) : message.parallelism; + else + object.parallelism = options.longs === String ? $util.Long.prototype.toString.call(message.parallelism) : options.longs === Number ? new $util.LongBits(message.parallelism.low >>> 0, message.parallelism.high >>> 0).toNumber() : message.parallelism; + if (message.taskEnvironments && message.taskEnvironments.length) { + object.taskEnvironments = []; + for (var j = 0; j < message.taskEnvironments.length; ++j) + object.taskEnvironments[j] = $root.google.cloud.batch.v1.Environment.toObject(message.taskEnvironments[j], options); + } + if (message.taskCountPerNode != null && message.hasOwnProperty("taskCountPerNode")) + if (typeof message.taskCountPerNode === "number") + object.taskCountPerNode = options.longs === String ? String(message.taskCountPerNode) : message.taskCountPerNode; + else + object.taskCountPerNode = options.longs === String ? $util.Long.prototype.toString.call(message.taskCountPerNode) : options.longs === Number ? new $util.LongBits(message.taskCountPerNode.low >>> 0, message.taskCountPerNode.high >>> 0).toNumber() : message.taskCountPerNode; + if (message.requireHostsFile != null && message.hasOwnProperty("requireHostsFile")) + object.requireHostsFile = message.requireHostsFile; + if (message.permissiveSsh != null && message.hasOwnProperty("permissiveSsh")) + object.permissiveSsh = message.permissiveSsh; + return object; + }; - /** - * Converts this GeneratedCodeInfo to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo - * @instance - * @returns {Object.} JSON object - */ - GeneratedCodeInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this TaskGroup to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.TaskGroup + * @instance + * @returns {Object.} JSON object + */ + TaskGroup.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for GeneratedCodeInfo - * @function getTypeUrl - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; - }; + /** + * Gets the default type url for TaskGroup + * @function getTypeUrl + * @memberof google.cloud.batch.v1.TaskGroup + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TaskGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.TaskGroup"; + }; - GeneratedCodeInfo.Annotation = (function() { + return TaskGroup; + })(); - /** - * Properties of an Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @interface IAnnotation - * @property {Array.|null} [path] Annotation path - * @property {string|null} [sourceFile] Annotation sourceFile - * @property {number|null} [begin] Annotation begin - * @property {number|null} [end] Annotation end - * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic - */ + v1.ServiceAccount = (function() { - /** - * Constructs a new Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @classdesc Represents an Annotation. - * @implements IAnnotation - * @constructor - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - */ - function Annotation(properties) { - this.path = []; - 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]]; - } - - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; - - /** - * Annotation sourceFile. - * @member {string} sourceFile - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.sourceFile = ""; + /** + * Properties of a ServiceAccount. + * @memberof google.cloud.batch.v1 + * @interface IServiceAccount + * @property {string|null} [email] ServiceAccount email + * @property {Array.|null} [scopes] ServiceAccount scopes + */ - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; + /** + * Constructs a new ServiceAccount. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a ServiceAccount. + * @implements IServiceAccount + * @constructor + * @param {google.cloud.batch.v1.IServiceAccount=} [properties] Properties to set + */ + function ServiceAccount(properties) { + this.scopes = []; + 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]]; + } - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; + /** + * ServiceAccount email. + * @member {string} email + * @memberof google.cloud.batch.v1.ServiceAccount + * @instance + */ + ServiceAccount.prototype.email = ""; - /** - * Annotation semantic. - * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.semantic = 0; + /** + * ServiceAccount scopes. + * @member {Array.} scopes + * @memberof google.cloud.batch.v1.ServiceAccount + * @instance + */ + ServiceAccount.prototype.scopes = $util.emptyArray; - /** - * Creates a new Annotation instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance - */ - Annotation.create = function create(properties) { - return new Annotation(properties); - }; + /** + * Creates a new ServiceAccount instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.ServiceAccount + * @static + * @param {google.cloud.batch.v1.IServiceAccount=} [properties] Properties to set + * @returns {google.cloud.batch.v1.ServiceAccount} ServiceAccount instance + */ + ServiceAccount.create = function create(properties) { + return new ServiceAccount(properties); + }; - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); - return writer; - }; + /** + * Encodes the specified ServiceAccount message. Does not implicitly {@link google.cloud.batch.v1.ServiceAccount.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.ServiceAccount + * @static + * @param {google.cloud.batch.v1.IServiceAccount} message ServiceAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceAccount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, "email")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); + if (message.scopes != null && message.scopes.length) + for (var i = 0; i < message.scopes.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.scopes[i]); + return writer; + }; - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ServiceAccount message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ServiceAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.ServiceAccount + * @static + * @param {google.cloud.batch.v1.IServiceAccount} message ServiceAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceAccount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an Annotation message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - } - case 2: { - message.sourceFile = reader.string(); - break; - } - case 3: { - message.begin = reader.int32(); - break; - } - case 4: { - message.end = reader.int32(); - break; - } - case 5: { - message.semantic = reader.int32(); + /** + * Decodes a ServiceAccount message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.ServiceAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.ServiceAccount} ServiceAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceAccount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ServiceAccount(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.email = reader.string(); + break; + } + case 2: { + if (!(message.scopes && message.scopes.length)) + message.scopes = []; + message.scopes.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ServiceAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.ServiceAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.ServiceAccount} ServiceAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceAccount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - if (!$util.isString(message.sourceFile)) - return "sourceFile: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - if (message.semantic != null && message.hasOwnProperty("semantic")) - switch (message.semantic) { - default: - return "semantic: enum value expected"; - case 0: - case 1: - case 2: - break; + /** + * Verifies a ServiceAccount message. + * @function verify + * @memberof google.cloud.batch.v1.ServiceAccount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceAccount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.email != null && message.hasOwnProperty("email")) + if (!$util.isString(message.email)) + return "email: string expected"; + if (message.scopes != null && message.hasOwnProperty("scopes")) { + if (!Array.isArray(message.scopes)) + return "scopes: array expected"; + for (var i = 0; i < message.scopes.length; ++i) + if (!$util.isString(message.scopes[i])) + return "scopes: string[] expected"; } - return null; - }; + return null; + }; - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - */ - Annotation.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + /** + * Creates a ServiceAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.ServiceAccount + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.ServiceAccount} ServiceAccount + */ + ServiceAccount.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.ServiceAccount) + return object; + var message = new $root.google.cloud.batch.v1.ServiceAccount(); + if (object.email != null) + message.email = String(object.email); + if (object.scopes) { + if (!Array.isArray(object.scopes)) + throw TypeError(".google.cloud.batch.v1.ServiceAccount.scopes: array expected"); + message.scopes = []; + for (var i = 0; i < object.scopes.length; ++i) + message.scopes[i] = String(object.scopes[i]); + } + return message; + }; + + /** + * Creates a plain object from a ServiceAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.ServiceAccount + * @static + * @param {google.cloud.batch.v1.ServiceAccount} message ServiceAccount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceAccount.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.scopes = []; + if (options.defaults) + object.email = ""; + if (message.email != null && message.hasOwnProperty("email")) + object.email = message.email; + if (message.scopes && message.scopes.length) { + object.scopes = []; + for (var j = 0; j < message.scopes.length; ++j) + object.scopes[j] = message.scopes[j]; + } return object; - var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.sourceFile != null) - message.sourceFile = String(object.sourceFile); - if (object.begin != null) - message.begin = object.begin | 0; - if (object.end != null) - message.end = object.end | 0; - switch (object.semantic) { - default: - if (typeof object.semantic === "number") { - message.semantic = object.semantic; - break; + }; + + /** + * Converts this ServiceAccount to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.ServiceAccount + * @instance + * @returns {Object.} JSON object + */ + ServiceAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceAccount + * @function getTypeUrl + * @memberof google.cloud.batch.v1.ServiceAccount + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceAccount.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - break; - case "NONE": - case 0: - message.semantic = 0; - break; - case "SET": - case 1: - message.semantic = 1; - break; - case "ALIAS": - case 2: - message.semantic = 2; - break; - } - return message; - }; + return typeUrlPrefix + "/google.cloud.batch.v1.ServiceAccount"; + }; - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Annotation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - object.sourceFile = ""; - object.begin = 0; - object.end = 0; - object.semantic = options.enums === String ? "NONE" : 0; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - object.sourceFile = message.sourceFile; - if (message.begin != null && message.hasOwnProperty("begin")) - object.begin = message.begin; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - if (message.semantic != null && message.hasOwnProperty("semantic")) - object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; - return object; - }; + return ServiceAccount; + })(); - /** - * Converts this Annotation to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - * @returns {Object.} JSON object - */ - Annotation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + v1.ComputeResource = (function() { - /** - * Gets the default type url for Annotation - * @function getTypeUrl - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; - }; + /** + * Properties of a ComputeResource. + * @memberof google.cloud.batch.v1 + * @interface IComputeResource + * @property {number|Long|null} [cpuMilli] ComputeResource cpuMilli + * @property {number|Long|null} [memoryMib] ComputeResource memoryMib + * @property {number|Long|null} [bootDiskMib] ComputeResource bootDiskMib + */ - /** - * Semantic enum. - * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic - * @enum {number} - * @property {number} NONE=0 NONE value - * @property {number} SET=1 SET value - * @property {number} ALIAS=2 ALIAS value - */ - Annotation.Semantic = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[1] = "SET"] = 1; - values[valuesById[2] = "ALIAS"] = 2; - return values; - })(); + /** + * Constructs a new ComputeResource. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a ComputeResource. + * @implements IComputeResource + * @constructor + * @param {google.cloud.batch.v1.IComputeResource=} [properties] Properties to set + */ + function ComputeResource(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]]; + } - return Annotation; - })(); + /** + * ComputeResource cpuMilli. + * @member {number|Long} cpuMilli + * @memberof google.cloud.batch.v1.ComputeResource + * @instance + */ + ComputeResource.prototype.cpuMilli = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - return GeneratedCodeInfo; - })(); + /** + * ComputeResource memoryMib. + * @member {number|Long} memoryMib + * @memberof google.cloud.batch.v1.ComputeResource + * @instance + */ + ComputeResource.prototype.memoryMib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - protobuf.Duration = (function() { + /** + * ComputeResource bootDiskMib. + * @member {number|Long} bootDiskMib + * @memberof google.cloud.batch.v1.ComputeResource + * @instance + */ + ComputeResource.prototype.bootDiskMib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Properties of a Duration. - * @memberof google.protobuf - * @interface IDuration - * @property {number|Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos - */ + /** + * Creates a new ComputeResource instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.ComputeResource + * @static + * @param {google.cloud.batch.v1.IComputeResource=} [properties] Properties to set + * @returns {google.cloud.batch.v1.ComputeResource} ComputeResource instance + */ + ComputeResource.create = function create(properties) { + return new ComputeResource(properties); + }; - /** - * Constructs a new Duration. - * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration - * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set - */ - function Duration(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]]; - } + /** + * Encodes the specified ComputeResource message. Does not implicitly {@link google.cloud.batch.v1.ComputeResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.ComputeResource + * @static + * @param {google.cloud.batch.v1.IComputeResource} message ComputeResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComputeResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpuMilli != null && Object.hasOwnProperty.call(message, "cpuMilli")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.cpuMilli); + if (message.memoryMib != null && Object.hasOwnProperty.call(message, "memoryMib")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.memoryMib); + if (message.bootDiskMib != null && Object.hasOwnProperty.call(message, "bootDiskMib")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.bootDiskMib); + return writer; + }; - /** - * Duration seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Encodes the specified ComputeResource message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ComputeResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.ComputeResource + * @static + * @param {google.cloud.batch.v1.IComputeResource} message ComputeResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComputeResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.nanos = 0; + /** + * Decodes a ComputeResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.ComputeResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.ComputeResource} ComputeResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComputeResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ComputeResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cpuMilli = reader.int64(); + break; + } + case 2: { + message.memoryMib = reader.int64(); + break; + } + case 4: { + message.bootDiskMib = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new Duration instance using the specified properties. - * @function create - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance - */ - Duration.create = function create(properties) { - return new Duration(properties); - }; + /** + * Decodes a ComputeResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.ComputeResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.ComputeResource} ComputeResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComputeResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; + /** + * Verifies a ComputeResource message. + * @function verify + * @memberof google.cloud.batch.v1.ComputeResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComputeResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpuMilli != null && message.hasOwnProperty("cpuMilli")) + if (!$util.isInteger(message.cpuMilli) && !(message.cpuMilli && $util.isInteger(message.cpuMilli.low) && $util.isInteger(message.cpuMilli.high))) + return "cpuMilli: integer|Long expected"; + if (message.memoryMib != null && message.hasOwnProperty("memoryMib")) + if (!$util.isInteger(message.memoryMib) && !(message.memoryMib && $util.isInteger(message.memoryMib.low) && $util.isInteger(message.memoryMib.high))) + return "memoryMib: integer|Long expected"; + if (message.bootDiskMib != null && message.hasOwnProperty("bootDiskMib")) + if (!$util.isInteger(message.bootDiskMib) && !(message.bootDiskMib && $util.isInteger(message.bootDiskMib.low) && $util.isInteger(message.bootDiskMib.high))) + return "bootDiskMib: integer|Long expected"; + return null; + }; - /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a ComputeResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.ComputeResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.ComputeResource} ComputeResource + */ + ComputeResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.ComputeResource) + return object; + var message = new $root.google.cloud.batch.v1.ComputeResource(); + if (object.cpuMilli != null) + if ($util.Long) + (message.cpuMilli = $util.Long.fromValue(object.cpuMilli)).unsigned = false; + else if (typeof object.cpuMilli === "string") + message.cpuMilli = parseInt(object.cpuMilli, 10); + else if (typeof object.cpuMilli === "number") + message.cpuMilli = object.cpuMilli; + else if (typeof object.cpuMilli === "object") + message.cpuMilli = new $util.LongBits(object.cpuMilli.low >>> 0, object.cpuMilli.high >>> 0).toNumber(); + if (object.memoryMib != null) + if ($util.Long) + (message.memoryMib = $util.Long.fromValue(object.memoryMib)).unsigned = false; + else if (typeof object.memoryMib === "string") + message.memoryMib = parseInt(object.memoryMib, 10); + else if (typeof object.memoryMib === "number") + message.memoryMib = object.memoryMib; + else if (typeof object.memoryMib === "object") + message.memoryMib = new $util.LongBits(object.memoryMib.low >>> 0, object.memoryMib.high >>> 0).toNumber(); + if (object.bootDiskMib != null) + if ($util.Long) + (message.bootDiskMib = $util.Long.fromValue(object.bootDiskMib)).unsigned = false; + else if (typeof object.bootDiskMib === "string") + message.bootDiskMib = parseInt(object.bootDiskMib, 10); + else if (typeof object.bootDiskMib === "number") + message.bootDiskMib = object.bootDiskMib; + else if (typeof object.bootDiskMib === "object") + message.bootDiskMib = new $util.LongBits(object.bootDiskMib.low >>> 0, object.bootDiskMib.high >>> 0).toNumber(); + return message; + }; - /** - * Decodes a Duration message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.seconds = reader.int64(); - break; - } - case 2: { - message.nanos = reader.int32(); - break; + /** + * Creates a plain object from a ComputeResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.ComputeResource + * @static + * @param {google.cloud.batch.v1.ComputeResource} message ComputeResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ComputeResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.cpuMilli = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.cpuMilli = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.memoryMib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.memoryMib = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.bootDiskMib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.bootDiskMib = options.longs === String ? "0" : 0; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Duration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (message.cpuMilli != null && message.hasOwnProperty("cpuMilli")) + if (typeof message.cpuMilli === "number") + object.cpuMilli = options.longs === String ? String(message.cpuMilli) : message.cpuMilli; + else + object.cpuMilli = options.longs === String ? $util.Long.prototype.toString.call(message.cpuMilli) : options.longs === Number ? new $util.LongBits(message.cpuMilli.low >>> 0, message.cpuMilli.high >>> 0).toNumber() : message.cpuMilli; + if (message.memoryMib != null && message.hasOwnProperty("memoryMib")) + if (typeof message.memoryMib === "number") + object.memoryMib = options.longs === String ? String(message.memoryMib) : message.memoryMib; + else + object.memoryMib = options.longs === String ? $util.Long.prototype.toString.call(message.memoryMib) : options.longs === Number ? new $util.LongBits(message.memoryMib.low >>> 0, message.memoryMib.high >>> 0).toNumber() : message.memoryMib; + if (message.bootDiskMib != null && message.hasOwnProperty("bootDiskMib")) + if (typeof message.bootDiskMib === "number") + object.bootDiskMib = options.longs === String ? String(message.bootDiskMib) : message.bootDiskMib; + else + object.bootDiskMib = options.longs === String ? $util.Long.prototype.toString.call(message.bootDiskMib) : options.longs === Number ? new $util.LongBits(message.bootDiskMib.low >>> 0, message.bootDiskMib.high >>> 0).toNumber() : message.bootDiskMib; + return object; + }; - /** - * Verifies a Duration message. - * @function verify - * @memberof google.protobuf.Duration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Duration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; + /** + * Converts this ComputeResource to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.ComputeResource + * @instance + * @returns {Object.} JSON object + */ + ComputeResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Duration - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration - */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) - return object; - var message = new $root.google.protobuf.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; - return message; - }; + /** + * Gets the default type url for ComputeResource + * @function getTypeUrl + * @memberof google.cloud.batch.v1.ComputeResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComputeResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.ComputeResource"; + }; - /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.Duration} message Duration - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Duration.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; - } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; - return object; - }; + return ComputeResource; + })(); - /** - * Converts this Duration to JSON. - * @function toJSON - * @memberof google.protobuf.Duration - * @instance - * @returns {Object.} JSON object - */ - Duration.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + v1.StatusEvent = (function() { - /** - * Gets the default type url for Duration - * @function getTypeUrl - * @memberof google.protobuf.Duration - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.Duration"; - }; + /** + * Properties of a StatusEvent. + * @memberof google.cloud.batch.v1 + * @interface IStatusEvent + * @property {string|null} [type] StatusEvent type + * @property {string|null} [description] StatusEvent description + * @property {google.protobuf.ITimestamp|null} [eventTime] StatusEvent eventTime + * @property {google.cloud.batch.v1.ITaskExecution|null} [taskExecution] StatusEvent taskExecution + */ - return Duration; - })(); + /** + * Constructs a new StatusEvent. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a StatusEvent. + * @implements IStatusEvent + * @constructor + * @param {google.cloud.batch.v1.IStatusEvent=} [properties] Properties to set + */ + function StatusEvent(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]]; + } - protobuf.Timestamp = (function() { + /** + * StatusEvent type. + * @member {string} type + * @memberof google.cloud.batch.v1.StatusEvent + * @instance + */ + StatusEvent.prototype.type = ""; - /** - * Properties of a Timestamp. - * @memberof google.protobuf - * @interface ITimestamp - * @property {number|Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos - */ + /** + * StatusEvent description. + * @member {string} description + * @memberof google.cloud.batch.v1.StatusEvent + * @instance + */ + StatusEvent.prototype.description = ""; - /** - * Constructs a new Timestamp. - * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp - * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - */ - function Timestamp(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]]; - } + /** + * StatusEvent eventTime. + * @member {google.protobuf.ITimestamp|null|undefined} eventTime + * @memberof google.cloud.batch.v1.StatusEvent + * @instance + */ + StatusEvent.prototype.eventTime = null; - /** - * Timestamp seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * StatusEvent taskExecution. + * @member {google.cloud.batch.v1.ITaskExecution|null|undefined} taskExecution + * @memberof google.cloud.batch.v1.StatusEvent + * @instance + */ + StatusEvent.prototype.taskExecution = null; - /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.nanos = 0; + /** + * Creates a new StatusEvent instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.StatusEvent + * @static + * @param {google.cloud.batch.v1.IStatusEvent=} [properties] Properties to set + * @returns {google.cloud.batch.v1.StatusEvent} StatusEvent instance + */ + StatusEvent.create = function create(properties) { + return new StatusEvent(properties); + }; - /** - * Creates a new Timestamp instance using the specified properties. - * @function create - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - * @returns {google.protobuf.Timestamp} Timestamp instance - */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); - }; + /** + * Encodes the specified StatusEvent message. Does not implicitly {@link google.cloud.batch.v1.StatusEvent.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.StatusEvent + * @static + * @param {google.cloud.batch.v1.IStatusEvent} message StatusEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatusEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); + if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) + $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.taskExecution != null && Object.hasOwnProperty.call(message, "taskExecution")) + $root.google.cloud.batch.v1.TaskExecution.encode(message.taskExecution, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; + /** + * Encodes the specified StatusEvent message, length delimited. Does not implicitly {@link google.cloud.batch.v1.StatusEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.StatusEvent + * @static + * @param {google.cloud.batch.v1.IStatusEvent} message StatusEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatusEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a StatusEvent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.StatusEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.StatusEvent} StatusEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatusEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.StatusEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.type = reader.string(); + break; + } + case 1: { + message.description = reader.string(); + break; + } + case 2: { + message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.taskExecution = $root.google.cloud.batch.v1.TaskExecution.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.seconds = reader.int64(); - break; + /** + * Decodes a StatusEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.StatusEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.StatusEvent} StatusEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatusEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StatusEvent message. + * @function verify + * @memberof google.cloud.batch.v1.StatusEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StatusEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.eventTime != null && message.hasOwnProperty("eventTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.eventTime); + if (error) + return "eventTime." + error; } - case 2: { - message.nanos = reader.int32(); - break; + if (message.taskExecution != null && message.hasOwnProperty("taskExecution")) { + var error = $root.google.cloud.batch.v1.TaskExecution.verify(message.taskExecution); + if (error) + return "taskExecution." + error; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return null; + }; - /** - * Verifies a Timestamp message. - * @function verify - * @memberof google.protobuf.Timestamp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Timestamp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; + /** + * Creates a StatusEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.StatusEvent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.StatusEvent} StatusEvent + */ + StatusEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.StatusEvent) + return object; + var message = new $root.google.cloud.batch.v1.StatusEvent(); + if (object.type != null) + message.type = String(object.type); + if (object.description != null) + message.description = String(object.description); + if (object.eventTime != null) { + if (typeof object.eventTime !== "object") + throw TypeError(".google.cloud.batch.v1.StatusEvent.eventTime: object expected"); + message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime); + } + if (object.taskExecution != null) { + if (typeof object.taskExecution !== "object") + throw TypeError(".google.cloud.batch.v1.StatusEvent.taskExecution: object expected"); + message.taskExecution = $root.google.cloud.batch.v1.TaskExecution.fromObject(object.taskExecution); + } + return message; + }; - /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Timestamp - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Timestamp} Timestamp - */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Timestamp) - return object; - var message = new $root.google.protobuf.Timestamp(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; - return message; - }; + /** + * Creates a plain object from a StatusEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.StatusEvent + * @static + * @param {google.cloud.batch.v1.StatusEvent} message StatusEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StatusEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.description = ""; + object.eventTime = null; + object.type = ""; + object.taskExecution = null; + } + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.eventTime != null && message.hasOwnProperty("eventTime")) + object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.taskExecution != null && message.hasOwnProperty("taskExecution")) + object.taskExecution = $root.google.cloud.batch.v1.TaskExecution.toObject(message.taskExecution, options); + return object; + }; - /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.Timestamp} message Timestamp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Timestamp.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; - } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; - return object; - }; + /** + * Converts this StatusEvent to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.StatusEvent + * @instance + * @returns {Object.} JSON object + */ + StatusEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this Timestamp to JSON. - * @function toJSON - * @memberof google.protobuf.Timestamp - * @instance - * @returns {Object.} JSON object - */ - Timestamp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for StatusEvent + * @function getTypeUrl + * @memberof google.cloud.batch.v1.StatusEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StatusEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.StatusEvent"; + }; - /** - * Gets the default type url for Timestamp - * @function getTypeUrl - * @memberof google.protobuf.Timestamp - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.Timestamp"; - }; + return StatusEvent; + })(); - return Timestamp; - })(); + v1.TaskExecution = (function() { - protobuf.Any = (function() { - - /** - * Properties of an Any. - * @memberof google.protobuf - * @interface IAny - * @property {string|null} [type_url] Any type_url - * @property {Uint8Array|null} [value] Any value - */ - - /** - * Constructs a new Any. - * @memberof google.protobuf - * @classdesc Represents an Any. - * @implements IAny - * @constructor - * @param {google.protobuf.IAny=} [properties] Properties to set - */ - function Any(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]]; - } - - /** - * Any type_url. - * @member {string} type_url - * @memberof google.protobuf.Any - * @instance - */ - Any.prototype.type_url = ""; - - /** - * Any value. - * @member {Uint8Array} value - * @memberof google.protobuf.Any - * @instance - */ - Any.prototype.value = $util.newBuffer([]); - - /** - * Creates a new Any instance using the specified properties. - * @function create - * @memberof google.protobuf.Any - * @static - * @param {google.protobuf.IAny=} [properties] Properties to set - * @returns {google.protobuf.Any} Any instance - */ - Any.create = function create(properties) { - return new Any(properties); - }; - - /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Any - * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Any.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - return writer; - }; - - /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Any - * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Any.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Any message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Any - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Any} Any - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Any.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type_url = reader.string(); - break; - } - case 2: { - message.value = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Any message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Any - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Any} Any - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Any.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Any message. - * @function verify - * @memberof google.protobuf.Any - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Any.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type_url != null && message.hasOwnProperty("type_url")) - if (!$util.isString(message.type_url)) - return "type_url: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - return null; - }; - - /** - * Creates an Any message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Any - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Any} Any - */ - Any.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Any) - return object; - var message = new $root.google.protobuf.Any(); - if (object.type_url != null) - message.type_url = String(object.type_url); - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length >= 0) - message.value = object.value; - return message; - }; - - /** - * Creates a plain object from an Any message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Any - * @static - * @param {google.protobuf.Any} message Any - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Any.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type_url = ""; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - } - if (message.type_url != null && message.hasOwnProperty("type_url")) - object.type_url = message.type_url; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - return object; - }; - - /** - * Converts this Any to JSON. - * @function toJSON - * @memberof google.protobuf.Any - * @instance - * @returns {Object.} JSON object - */ - Any.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Any - * @function getTypeUrl - * @memberof google.protobuf.Any - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.Any"; - }; - - return Any; - })(); - - return protobuf; - })(); - - google.cloud = (function() { - - /** - * Namespace cloud. - * @memberof google - * @namespace - */ - var cloud = {}; - - cloud.batch = (function() { - - /** - * Namespace batch. - * @memberof google.cloud - * @namespace - */ - var batch = {}; - - batch.v1 = (function() { - - /** - * Namespace v1. - * @memberof google.cloud.batch - * @namespace - */ - var v1 = {}; - - v1.BatchService = (function() { + /** + * Properties of a TaskExecution. + * @memberof google.cloud.batch.v1 + * @interface ITaskExecution + * @property {number|null} [exitCode] TaskExecution exitCode + */ /** - * Constructs a new BatchService service. + * Constructs a new TaskExecution. * @memberof google.cloud.batch.v1 - * @classdesc Represents a BatchService - * @extends $protobuf.rpc.Service + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @param {google.cloud.batch.v1.ITaskExecution=} [properties] Properties to set */ - function BatchService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function TaskExecution(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]]; } - (BatchService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = BatchService; + /** + * TaskExecution exitCode. + * @member {number} exitCode + * @memberof google.cloud.batch.v1.TaskExecution + * @instance + */ + TaskExecution.prototype.exitCode = 0; /** - * Creates new BatchService service using the specified rpc implementation. + * Creates a new TaskExecution instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.BatchService + * @memberof google.cloud.batch.v1.TaskExecution * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {BatchService} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.batch.v1.ITaskExecution=} [properties] Properties to set + * @returns {google.cloud.batch.v1.TaskExecution} TaskExecution instance */ - BatchService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); }; /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|createJob}. - * @memberof google.cloud.batch.v1.BatchService - * @typedef CreateJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1.Job} [response] Job + * Encodes the specified TaskExecution message. Does not implicitly {@link google.cloud.batch.v1.TaskExecution.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.TaskExecution + * @static + * @param {google.cloud.batch.v1.ITaskExecution} message TaskExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + TaskExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exitCode != null && Object.hasOwnProperty.call(message, "exitCode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.exitCode); + return writer; + }; /** - * Calls CreateJob. - * @function createJob - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.ICreateJobRequest} request CreateJobRequest message or plain object - * @param {google.cloud.batch.v1.BatchService.CreateJobCallback} callback Node-style callback called with the error, if any, and Job - * @returns {undefined} - * @variation 1 + * Encodes the specified TaskExecution message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskExecution.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.TaskExecution + * @static + * @param {google.cloud.batch.v1.ITaskExecution} message TaskExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(BatchService.prototype.createJob = function createJob(request, callback) { - return this.rpcCall(createJob, $root.google.cloud.batch.v1.CreateJobRequest, $root.google.cloud.batch.v1.Job, request, callback); - }, "name", { value: "CreateJob" }); + TaskExecution.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreateJob. - * @function createJob - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.ICreateJobRequest} request CreateJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a TaskExecution message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.TaskExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.TaskExecution} TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + TaskExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.TaskExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.exitCode = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|getJob}. - * @memberof google.cloud.batch.v1.BatchService - * @typedef GetJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1.Job} [response] Job + * Decodes a TaskExecution message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.TaskExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.TaskExecution} TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + TaskExecution.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetJob. - * @function getJob - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.IGetJobRequest} request GetJobRequest message or plain object - * @param {google.cloud.batch.v1.BatchService.GetJobCallback} callback Node-style callback called with the error, if any, and Job - * @returns {undefined} - * @variation 1 + * Verifies a TaskExecution message. + * @function verify + * @memberof google.cloud.batch.v1.TaskExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(BatchService.prototype.getJob = function getJob(request, callback) { - return this.rpcCall(getJob, $root.google.cloud.batch.v1.GetJobRequest, $root.google.cloud.batch.v1.Job, request, callback); - }, "name", { value: "GetJob" }); + TaskExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exitCode != null && message.hasOwnProperty("exitCode")) + if (!$util.isInteger(message.exitCode)) + return "exitCode: integer expected"; + return null; + }; /** - * Calls GetJob. - * @function getJob - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.IGetJobRequest} request GetJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a TaskExecution message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.TaskExecution + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.TaskExecution} TaskExecution */ + TaskExecution.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.TaskExecution) + return object; + var message = new $root.google.cloud.batch.v1.TaskExecution(); + if (object.exitCode != null) + message.exitCode = object.exitCode | 0; + return message; + }; /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|deleteJob}. - * @memberof google.cloud.batch.v1.BatchService - * @typedef DeleteJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a plain object from a TaskExecution message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.TaskExecution + * @static + * @param {google.cloud.batch.v1.TaskExecution} message TaskExecution + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + TaskExecution.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.exitCode = 0; + if (message.exitCode != null && message.hasOwnProperty("exitCode")) + object.exitCode = message.exitCode; + return object; + }; /** - * Calls DeleteJob. - * @function deleteJob - * @memberof google.cloud.batch.v1.BatchService + * Converts this TaskExecution to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.TaskExecution * @instance - * @param {google.cloud.batch.v1.IDeleteJobRequest} request DeleteJobRequest message or plain object - * @param {google.cloud.batch.v1.BatchService.DeleteJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(BatchService.prototype.deleteJob = function deleteJob(request, callback) { - return this.rpcCall(deleteJob, $root.google.cloud.batch.v1.DeleteJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteJob" }); + TaskExecution.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeleteJob. - * @function deleteJob - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.IDeleteJobRequest} request DeleteJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for TaskExecution + * @function getTypeUrl + * @memberof google.cloud.batch.v1.TaskExecution + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + TaskExecution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.TaskExecution"; + }; - /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|listJobs}. - * @memberof google.cloud.batch.v1.BatchService - * @typedef ListJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1.ListJobsResponse} [response] ListJobsResponse - */ + return TaskExecution; + })(); - /** - * Calls ListJobs. - * @function listJobs - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.IListJobsRequest} request ListJobsRequest message or plain object - * @param {google.cloud.batch.v1.BatchService.ListJobsCallback} callback Node-style callback called with the error, if any, and ListJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(BatchService.prototype.listJobs = function listJobs(request, callback) { - return this.rpcCall(listJobs, $root.google.cloud.batch.v1.ListJobsRequest, $root.google.cloud.batch.v1.ListJobsResponse, request, callback); - }, "name", { value: "ListJobs" }); - - /** - * Calls ListJobs. - * @function listJobs - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.IListJobsRequest} request ListJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|getTask}. - * @memberof google.cloud.batch.v1.BatchService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1.Task} [response] Task - */ - - /** - * Calls GetTask. - * @function getTask - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.IGetTaskRequest} request GetTaskRequest message or plain object - * @param {google.cloud.batch.v1.BatchService.GetTaskCallback} callback Node-style callback called with the error, if any, and Task - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(BatchService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.google.cloud.batch.v1.GetTaskRequest, $root.google.cloud.batch.v1.Task, request, callback); - }, "name", { value: "GetTask" }); - - /** - * Calls GetTask. - * @function getTask - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.IGetTaskRequest} request GetTaskRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.batch.v1.BatchService|listTasks}. - * @memberof google.cloud.batch.v1.BatchService - * @typedef ListTasksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1.ListTasksResponse} [response] ListTasksResponse - */ - - /** - * Calls ListTasks. - * @function listTasks - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.IListTasksRequest} request ListTasksRequest message or plain object - * @param {google.cloud.batch.v1.BatchService.ListTasksCallback} callback Node-style callback called with the error, if any, and ListTasksResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(BatchService.prototype.listTasks = function listTasks(request, callback) { - return this.rpcCall(listTasks, $root.google.cloud.batch.v1.ListTasksRequest, $root.google.cloud.batch.v1.ListTasksResponse, request, callback); - }, "name", { value: "ListTasks" }); - - /** - * Calls ListTasks. - * @function listTasks - * @memberof google.cloud.batch.v1.BatchService - * @instance - * @param {google.cloud.batch.v1.IListTasksRequest} request ListTasksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return BatchService; - })(); - - v1.CreateJobRequest = (function() { + v1.TaskStatus = (function() { /** - * Properties of a CreateJobRequest. + * Properties of a TaskStatus. * @memberof google.cloud.batch.v1 - * @interface ICreateJobRequest - * @property {string|null} [parent] CreateJobRequest parent - * @property {string|null} [jobId] CreateJobRequest jobId - * @property {google.cloud.batch.v1.IJob|null} [job] CreateJobRequest job - * @property {string|null} [requestId] CreateJobRequest requestId + * @interface ITaskStatus + * @property {google.cloud.batch.v1.TaskStatus.State|null} [state] TaskStatus state + * @property {Array.|null} [statusEvents] TaskStatus statusEvents */ /** - * Constructs a new CreateJobRequest. + * Constructs a new TaskStatus. * @memberof google.cloud.batch.v1 - * @classdesc Represents a CreateJobRequest. - * @implements ICreateJobRequest + * @classdesc Represents a TaskStatus. + * @implements ITaskStatus * @constructor - * @param {google.cloud.batch.v1.ICreateJobRequest=} [properties] Properties to set + * @param {google.cloud.batch.v1.ITaskStatus=} [properties] Properties to set */ - function CreateJobRequest(properties) { + function TaskStatus(properties) { + this.statusEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10632,117 +9275,92 @@ } /** - * CreateJobRequest parent. - * @member {string} parent - * @memberof google.cloud.batch.v1.CreateJobRequest - * @instance - */ - CreateJobRequest.prototype.parent = ""; - - /** - * CreateJobRequest jobId. - * @member {string} jobId - * @memberof google.cloud.batch.v1.CreateJobRequest - * @instance - */ - CreateJobRequest.prototype.jobId = ""; - - /** - * CreateJobRequest job. - * @member {google.cloud.batch.v1.IJob|null|undefined} job - * @memberof google.cloud.batch.v1.CreateJobRequest + * TaskStatus state. + * @member {google.cloud.batch.v1.TaskStatus.State} state + * @memberof google.cloud.batch.v1.TaskStatus * @instance */ - CreateJobRequest.prototype.job = null; + TaskStatus.prototype.state = 0; /** - * CreateJobRequest requestId. - * @member {string} requestId - * @memberof google.cloud.batch.v1.CreateJobRequest + * TaskStatus statusEvents. + * @member {Array.} statusEvents + * @memberof google.cloud.batch.v1.TaskStatus * @instance */ - CreateJobRequest.prototype.requestId = ""; + TaskStatus.prototype.statusEvents = $util.emptyArray; /** - * Creates a new CreateJobRequest instance using the specified properties. + * Creates a new TaskStatus instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @static - * @param {google.cloud.batch.v1.ICreateJobRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1.CreateJobRequest} CreateJobRequest instance + * @param {google.cloud.batch.v1.ITaskStatus=} [properties] Properties to set + * @returns {google.cloud.batch.v1.TaskStatus} TaskStatus instance */ - CreateJobRequest.create = function create(properties) { - return new CreateJobRequest(properties); + TaskStatus.create = function create(properties) { + return new TaskStatus(properties); }; /** - * Encodes the specified CreateJobRequest message. Does not implicitly {@link google.cloud.batch.v1.CreateJobRequest.verify|verify} messages. + * Encodes the specified TaskStatus message. Does not implicitly {@link google.cloud.batch.v1.TaskStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @static - * @param {google.cloud.batch.v1.ICreateJobRequest} message CreateJobRequest message or plain object to encode + * @param {google.cloud.batch.v1.ITaskStatus} message TaskStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateJobRequest.encode = function encode(message, writer) { + TaskStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); - if (message.job != null && Object.hasOwnProperty.call(message, "job")) - $root.google.cloud.batch.v1.Job.encode(message.job, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.statusEvents != null && message.statusEvents.length) + for (var i = 0; i < message.statusEvents.length; ++i) + $root.google.cloud.batch.v1.StatusEvent.encode(message.statusEvents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.CreateJobRequest.verify|verify} messages. + * Encodes the specified TaskStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @static - * @param {google.cloud.batch.v1.ICreateJobRequest} message CreateJobRequest message or plain object to encode + * @param {google.cloud.batch.v1.ITaskStatus} message TaskStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + TaskStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateJobRequest message from the specified reader or buffer. + * Decodes a TaskStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.CreateJobRequest} CreateJobRequest + * @returns {google.cloud.batch.v1.TaskStatus} TaskStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateJobRequest.decode = function decode(reader, length) { + TaskStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.CreateJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.TaskStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.state = reader.int32(); break; } case 2: { - message.jobId = reader.string(); - break; - } - case 3: { - message.job = $root.google.cloud.batch.v1.Job.decode(reader, reader.uint32()); - break; - } - case 4: { - message.requestId = reader.string(); + if (!(message.statusEvents && message.statusEvents.length)) + message.statusEvents = []; + message.statusEvents.push($root.google.cloud.batch.v1.StatusEvent.decode(reader, reader.uint32())); break; } default: @@ -10754,152 +9372,216 @@ }; /** - * Decodes a CreateJobRequest message from the specified reader or buffer, length delimited. + * Decodes a TaskStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.CreateJobRequest} CreateJobRequest + * @returns {google.cloud.batch.v1.TaskStatus} TaskStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateJobRequest.decodeDelimited = function decodeDelimited(reader) { + TaskStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateJobRequest message. + * Verifies a TaskStatus message. * @function verify - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateJobRequest.verify = function verify(message) { + TaskStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.jobId != null && message.hasOwnProperty("jobId")) - if (!$util.isString(message.jobId)) - return "jobId: string expected"; - if (message.job != null && message.hasOwnProperty("job")) { - var error = $root.google.cloud.batch.v1.Job.verify(message.job); - if (error) - return "job." + error; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.statusEvents != null && message.hasOwnProperty("statusEvents")) { + if (!Array.isArray(message.statusEvents)) + return "statusEvents: array expected"; + for (var i = 0; i < message.statusEvents.length; ++i) { + var error = $root.google.cloud.batch.v1.StatusEvent.verify(message.statusEvents[i]); + if (error) + return "statusEvents." + error; + } } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; return null; }; /** - * Creates a CreateJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TaskStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.CreateJobRequest} CreateJobRequest + * @returns {google.cloud.batch.v1.TaskStatus} TaskStatus */ - CreateJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.CreateJobRequest) + TaskStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.TaskStatus) return object; - var message = new $root.google.cloud.batch.v1.CreateJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.jobId != null) - message.jobId = String(object.jobId); - if (object.job != null) { - if (typeof object.job !== "object") - throw TypeError(".google.cloud.batch.v1.CreateJobRequest.job: object expected"); - message.job = $root.google.cloud.batch.v1.Job.fromObject(object.job); + var message = new $root.google.cloud.batch.v1.TaskStatus(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "ASSIGNED": + case 2: + message.state = 2; + break; + case "RUNNING": + case 3: + message.state = 3; + break; + case "FAILED": + case 4: + message.state = 4; + break; + case "SUCCEEDED": + case 5: + message.state = 5; + break; + } + if (object.statusEvents) { + if (!Array.isArray(object.statusEvents)) + throw TypeError(".google.cloud.batch.v1.TaskStatus.statusEvents: array expected"); + message.statusEvents = []; + for (var i = 0; i < object.statusEvents.length; ++i) { + if (typeof object.statusEvents[i] !== "object") + throw TypeError(".google.cloud.batch.v1.TaskStatus.statusEvents: object expected"); + message.statusEvents[i] = $root.google.cloud.batch.v1.StatusEvent.fromObject(object.statusEvents[i]); + } } - if (object.requestId != null) - message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a CreateJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a TaskStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @static - * @param {google.cloud.batch.v1.CreateJobRequest} message CreateJobRequest + * @param {google.cloud.batch.v1.TaskStatus} message TaskStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateJobRequest.toObject = function toObject(message, options) { + TaskStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.jobId = ""; - object.job = null; - object.requestId = ""; + if (options.arrays || options.defaults) + object.statusEvents = []; + if (options.defaults) + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.batch.v1.TaskStatus.State[message.state] === undefined ? message.state : $root.google.cloud.batch.v1.TaskStatus.State[message.state] : message.state; + if (message.statusEvents && message.statusEvents.length) { + object.statusEvents = []; + for (var j = 0; j < message.statusEvents.length; ++j) + object.statusEvents[j] = $root.google.cloud.batch.v1.StatusEvent.toObject(message.statusEvents[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.jobId != null && message.hasOwnProperty("jobId")) - object.jobId = message.jobId; - if (message.job != null && message.hasOwnProperty("job")) - object.job = $root.google.cloud.batch.v1.Job.toObject(message.job, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; return object; }; /** - * Converts this CreateJobRequest to JSON. + * Converts this TaskStatus to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @instance * @returns {Object.} JSON object */ - CreateJobRequest.prototype.toJSON = function toJSON() { + TaskStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateJobRequest + * Gets the default type url for TaskStatus * @function getTypeUrl - * @memberof google.cloud.batch.v1.CreateJobRequest + * @memberof google.cloud.batch.v1.TaskStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.CreateJobRequest"; + return typeUrlPrefix + "/google.cloud.batch.v1.TaskStatus"; }; - return CreateJobRequest; + /** + * State enum. + * @name google.cloud.batch.v1.TaskStatus.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} ASSIGNED=2 ASSIGNED value + * @property {number} RUNNING=3 RUNNING value + * @property {number} FAILED=4 FAILED value + * @property {number} SUCCEEDED=5 SUCCEEDED value + */ + TaskStatus.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "ASSIGNED"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + values[valuesById[4] = "FAILED"] = 4; + values[valuesById[5] = "SUCCEEDED"] = 5; + return values; + })(); + + return TaskStatus; })(); - v1.GetJobRequest = (function() { + v1.Runnable = (function() { /** - * Properties of a GetJobRequest. + * Properties of a Runnable. * @memberof google.cloud.batch.v1 - * @interface IGetJobRequest - * @property {string|null} [name] GetJobRequest name + * @interface IRunnable + * @property {google.cloud.batch.v1.Runnable.IContainer|null} [container] Runnable container + * @property {google.cloud.batch.v1.Runnable.IScript|null} [script] Runnable script + * @property {google.cloud.batch.v1.Runnable.IBarrier|null} [barrier] Runnable barrier + * @property {boolean|null} [ignoreExitStatus] Runnable ignoreExitStatus + * @property {boolean|null} [background] Runnable background + * @property {boolean|null} [alwaysRun] Runnable alwaysRun + * @property {google.cloud.batch.v1.IEnvironment|null} [environment] Runnable environment + * @property {google.protobuf.IDuration|null} [timeout] Runnable timeout */ /** - * Constructs a new GetJobRequest. + * Constructs a new Runnable. * @memberof google.cloud.batch.v1 - * @classdesc Represents a GetJobRequest. - * @implements IGetJobRequest + * @classdesc Represents a Runnable. + * @implements IRunnable * @constructor - * @param {google.cloud.batch.v1.IGetJobRequest=} [properties] Properties to set + * @param {google.cloud.batch.v1.IRunnable=} [properties] Properties to set */ - function GetJobRequest(properties) { + function Runnable(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10907,308 +9589,187 @@ } /** - * GetJobRequest name. - * @member {string} name - * @memberof google.cloud.batch.v1.GetJobRequest + * Runnable container. + * @member {google.cloud.batch.v1.Runnable.IContainer|null|undefined} container + * @memberof google.cloud.batch.v1.Runnable * @instance */ - GetJobRequest.prototype.name = ""; + Runnable.prototype.container = null; /** - * Creates a new GetJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.GetJobRequest - * @static - * @param {google.cloud.batch.v1.IGetJobRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1.GetJobRequest} GetJobRequest instance + * Runnable script. + * @member {google.cloud.batch.v1.Runnable.IScript|null|undefined} script + * @memberof google.cloud.batch.v1.Runnable + * @instance */ - GetJobRequest.create = function create(properties) { - return new GetJobRequest(properties); - }; + Runnable.prototype.script = null; /** - * Encodes the specified GetJobRequest message. Does not implicitly {@link google.cloud.batch.v1.GetJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.GetJobRequest - * @static - * @param {google.cloud.batch.v1.IGetJobRequest} message GetJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Runnable barrier. + * @member {google.cloud.batch.v1.Runnable.IBarrier|null|undefined} barrier + * @memberof google.cloud.batch.v1.Runnable + * @instance */ - GetJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + Runnable.prototype.barrier = null; /** - * Encodes the specified GetJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GetJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.GetJobRequest - * @static - * @param {google.cloud.batch.v1.IGetJobRequest} message GetJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Runnable ignoreExitStatus. + * @member {boolean} ignoreExitStatus + * @memberof google.cloud.batch.v1.Runnable + * @instance */ - GetJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Runnable.prototype.ignoreExitStatus = false; /** - * Decodes a GetJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.GetJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.GetJobRequest} GetJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Runnable background. + * @member {boolean} background + * @memberof google.cloud.batch.v1.Runnable + * @instance */ - GetJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.GetJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Runnable.prototype.background = false; /** - * Decodes a GetJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.GetJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.GetJobRequest} GetJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetJobRequest message. - * @function verify - * @memberof google.cloud.batch.v1.GetJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a GetJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.GetJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.GetJobRequest} GetJobRequest - */ - GetJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.GetJobRequest) - return object; - var message = new $root.google.cloud.batch.v1.GetJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.GetJobRequest - * @static - * @param {google.cloud.batch.v1.GetJobRequest} message GetJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this GetJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.GetJobRequest + * Runnable alwaysRun. + * @member {boolean} alwaysRun + * @memberof google.cloud.batch.v1.Runnable * @instance - * @returns {Object.} JSON object - */ - GetJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GetJobRequest - * @function getTypeUrl - * @memberof google.cloud.batch.v1.GetJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.GetJobRequest"; - }; - - return GetJobRequest; - })(); - - v1.DeleteJobRequest = (function() { - - /** - * Properties of a DeleteJobRequest. - * @memberof google.cloud.batch.v1 - * @interface IDeleteJobRequest - * @property {string|null} [name] DeleteJobRequest name - * @property {string|null} [reason] DeleteJobRequest reason - * @property {string|null} [requestId] DeleteJobRequest requestId - */ - - /** - * Constructs a new DeleteJobRequest. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a DeleteJobRequest. - * @implements IDeleteJobRequest - * @constructor - * @param {google.cloud.batch.v1.IDeleteJobRequest=} [properties] Properties to set */ - function DeleteJobRequest(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]]; - } + Runnable.prototype.alwaysRun = false; /** - * DeleteJobRequest name. - * @member {string} name - * @memberof google.cloud.batch.v1.DeleteJobRequest + * Runnable environment. + * @member {google.cloud.batch.v1.IEnvironment|null|undefined} environment + * @memberof google.cloud.batch.v1.Runnable * @instance */ - DeleteJobRequest.prototype.name = ""; + Runnable.prototype.environment = null; /** - * DeleteJobRequest reason. - * @member {string} reason - * @memberof google.cloud.batch.v1.DeleteJobRequest + * Runnable timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.cloud.batch.v1.Runnable * @instance */ - DeleteJobRequest.prototype.reason = ""; + Runnable.prototype.timeout = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DeleteJobRequest requestId. - * @member {string} requestId - * @memberof google.cloud.batch.v1.DeleteJobRequest + * Runnable executable. + * @member {"container"|"script"|"barrier"|undefined} executable + * @memberof google.cloud.batch.v1.Runnable * @instance */ - DeleteJobRequest.prototype.requestId = ""; + Object.defineProperty(Runnable.prototype, "executable", { + get: $util.oneOfGetter($oneOfFields = ["container", "script", "barrier"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DeleteJobRequest instance using the specified properties. + * Creates a new Runnable instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @static - * @param {google.cloud.batch.v1.IDeleteJobRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1.DeleteJobRequest} DeleteJobRequest instance + * @param {google.cloud.batch.v1.IRunnable=} [properties] Properties to set + * @returns {google.cloud.batch.v1.Runnable} Runnable instance */ - DeleteJobRequest.create = function create(properties) { - return new DeleteJobRequest(properties); + Runnable.create = function create(properties) { + return new Runnable(properties); }; /** - * Encodes the specified DeleteJobRequest message. Does not implicitly {@link google.cloud.batch.v1.DeleteJobRequest.verify|verify} messages. + * Encodes the specified Runnable message. Does not implicitly {@link google.cloud.batch.v1.Runnable.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @static - * @param {google.cloud.batch.v1.IDeleteJobRequest} message DeleteJobRequest message or plain object to encode + * @param {google.cloud.batch.v1.IRunnable} message Runnable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteJobRequest.encode = function encode(message, writer) { + Runnable.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.reason); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.container != null && Object.hasOwnProperty.call(message, "container")) + $root.google.cloud.batch.v1.Runnable.Container.encode(message.container, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.script != null && Object.hasOwnProperty.call(message, "script")) + $root.google.cloud.batch.v1.Runnable.Script.encode(message.script, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.ignoreExitStatus != null && Object.hasOwnProperty.call(message, "ignoreExitStatus")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ignoreExitStatus); + if (message.background != null && Object.hasOwnProperty.call(message, "background")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.background); + if (message.alwaysRun != null && Object.hasOwnProperty.call(message, "alwaysRun")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.alwaysRun); + if (message.barrier != null && Object.hasOwnProperty.call(message, "barrier")) + $root.google.cloud.batch.v1.Runnable.Barrier.encode(message.barrier, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.batch.v1.Environment.encode(message.environment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.DeleteJobRequest.verify|verify} messages. + * Encodes the specified Runnable message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @static - * @param {google.cloud.batch.v1.IDeleteJobRequest} message DeleteJobRequest message or plain object to encode + * @param {google.cloud.batch.v1.IRunnable} message Runnable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + Runnable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteJobRequest message from the specified reader or buffer. + * Decodes a Runnable message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.DeleteJobRequest} DeleteJobRequest + * @returns {google.cloud.batch.v1.Runnable} Runnable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteJobRequest.decode = function decode(reader, length) { + Runnable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.DeleteJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Runnable(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.container = $root.google.cloud.batch.v1.Runnable.Container.decode(reader, reader.uint32()); break; } case 2: { - message.reason = reader.string(); + message.script = $root.google.cloud.batch.v1.Runnable.Script.decode(reader, reader.uint32()); + break; + } + case 6: { + message.barrier = $root.google.cloud.batch.v1.Runnable.Barrier.decode(reader, reader.uint32()); + break; + } + case 3: { + message.ignoreExitStatus = reader.bool(); break; } case 4: { - message.requestId = reader.string(); + message.background = reader.bool(); + break; + } + case 5: { + message.alwaysRun = reader.bool(); + break; + } + case 7: { + message.environment = $root.google.cloud.batch.v1.Environment.decode(reader, reader.uint32()); + break; + } + case 8: { + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -11220,703 +9781,1087 @@ }; /** - * Decodes a DeleteJobRequest message from the specified reader or buffer, length delimited. + * Decodes a Runnable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.DeleteJobRequest} DeleteJobRequest + * @returns {google.cloud.batch.v1.Runnable} Runnable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteJobRequest.decodeDelimited = function decodeDelimited(reader) { + Runnable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteJobRequest message. + * Verifies a Runnable message. * @function verify - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteJobRequest.verify = function verify(message) { + Runnable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + var properties = {}; + if (message.container != null && message.hasOwnProperty("container")) { + properties.executable = 1; + { + var error = $root.google.cloud.batch.v1.Runnable.Container.verify(message.container); + if (error) + return "container." + error; + } + } + if (message.script != null && message.hasOwnProperty("script")) { + if (properties.executable === 1) + return "executable: multiple values"; + properties.executable = 1; + { + var error = $root.google.cloud.batch.v1.Runnable.Script.verify(message.script); + if (error) + return "script." + error; + } + } + if (message.barrier != null && message.hasOwnProperty("barrier")) { + if (properties.executable === 1) + return "executable: multiple values"; + properties.executable = 1; + { + var error = $root.google.cloud.batch.v1.Runnable.Barrier.verify(message.barrier); + if (error) + return "barrier." + error; + } + } + if (message.ignoreExitStatus != null && message.hasOwnProperty("ignoreExitStatus")) + if (typeof message.ignoreExitStatus !== "boolean") + return "ignoreExitStatus: boolean expected"; + if (message.background != null && message.hasOwnProperty("background")) + if (typeof message.background !== "boolean") + return "background: boolean expected"; + if (message.alwaysRun != null && message.hasOwnProperty("alwaysRun")) + if (typeof message.alwaysRun !== "boolean") + return "alwaysRun: boolean expected"; + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.batch.v1.Environment.verify(message.environment); + if (error) + return "environment." + error; + } + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } return null; }; /** - * Creates a DeleteJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Runnable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.DeleteJobRequest} DeleteJobRequest + * @returns {google.cloud.batch.v1.Runnable} Runnable */ - DeleteJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.DeleteJobRequest) + Runnable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.Runnable) return object; - var message = new $root.google.cloud.batch.v1.DeleteJobRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.reason != null) - message.reason = String(object.reason); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.batch.v1.Runnable(); + if (object.container != null) { + if (typeof object.container !== "object") + throw TypeError(".google.cloud.batch.v1.Runnable.container: object expected"); + message.container = $root.google.cloud.batch.v1.Runnable.Container.fromObject(object.container); + } + if (object.script != null) { + if (typeof object.script !== "object") + throw TypeError(".google.cloud.batch.v1.Runnable.script: object expected"); + message.script = $root.google.cloud.batch.v1.Runnable.Script.fromObject(object.script); + } + if (object.barrier != null) { + if (typeof object.barrier !== "object") + throw TypeError(".google.cloud.batch.v1.Runnable.barrier: object expected"); + message.barrier = $root.google.cloud.batch.v1.Runnable.Barrier.fromObject(object.barrier); + } + if (object.ignoreExitStatus != null) + message.ignoreExitStatus = Boolean(object.ignoreExitStatus); + if (object.background != null) + message.background = Boolean(object.background); + if (object.alwaysRun != null) + message.alwaysRun = Boolean(object.alwaysRun); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.batch.v1.Runnable.environment: object expected"); + message.environment = $root.google.cloud.batch.v1.Environment.fromObject(object.environment); + } + if (object.timeout != null) { + if (typeof object.timeout !== "object") + throw TypeError(".google.cloud.batch.v1.Runnable.timeout: object expected"); + message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); + } return message; }; /** - * Creates a plain object from a DeleteJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a Runnable message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @static - * @param {google.cloud.batch.v1.DeleteJobRequest} message DeleteJobRequest + * @param {google.cloud.batch.v1.Runnable} message Runnable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteJobRequest.toObject = function toObject(message, options) { + Runnable.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.reason = ""; - object.requestId = ""; + object.ignoreExitStatus = false; + object.background = false; + object.alwaysRun = false; + object.environment = null; + object.timeout = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.container != null && message.hasOwnProperty("container")) { + object.container = $root.google.cloud.batch.v1.Runnable.Container.toObject(message.container, options); + if (options.oneofs) + object.executable = "container"; + } + if (message.script != null && message.hasOwnProperty("script")) { + object.script = $root.google.cloud.batch.v1.Runnable.Script.toObject(message.script, options); + if (options.oneofs) + object.executable = "script"; + } + if (message.ignoreExitStatus != null && message.hasOwnProperty("ignoreExitStatus")) + object.ignoreExitStatus = message.ignoreExitStatus; + if (message.background != null && message.hasOwnProperty("background")) + object.background = message.background; + if (message.alwaysRun != null && message.hasOwnProperty("alwaysRun")) + object.alwaysRun = message.alwaysRun; + if (message.barrier != null && message.hasOwnProperty("barrier")) { + object.barrier = $root.google.cloud.batch.v1.Runnable.Barrier.toObject(message.barrier, options); + if (options.oneofs) + object.executable = "barrier"; + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.batch.v1.Environment.toObject(message.environment, options); + if (message.timeout != null && message.hasOwnProperty("timeout")) + object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); return object; }; /** - * Converts this DeleteJobRequest to JSON. + * Converts this Runnable to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @instance * @returns {Object.} JSON object */ - DeleteJobRequest.prototype.toJSON = function toJSON() { + Runnable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteJobRequest + * Gets the default type url for Runnable * @function getTypeUrl - * @memberof google.cloud.batch.v1.DeleteJobRequest + * @memberof google.cloud.batch.v1.Runnable * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Runnable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.DeleteJobRequest"; + return typeUrlPrefix + "/google.cloud.batch.v1.Runnable"; }; - return DeleteJobRequest; - })(); + Runnable.Container = (function() { - v1.ListJobsRequest = (function() { + /** + * Properties of a Container. + * @memberof google.cloud.batch.v1.Runnable + * @interface IContainer + * @property {string|null} [imageUri] Container imageUri + * @property {Array.|null} [commands] Container commands + * @property {string|null} [entrypoint] Container entrypoint + * @property {Array.|null} [volumes] Container volumes + * @property {string|null} [options] Container options + * @property {boolean|null} [blockExternalNetwork] Container blockExternalNetwork + * @property {string|null} [username] Container username + * @property {string|null} [password] Container password + */ - /** - * Properties of a ListJobsRequest. - * @memberof google.cloud.batch.v1 - * @interface IListJobsRequest - * @property {string|null} [parent] ListJobsRequest parent - * @property {string|null} [filter] ListJobsRequest filter - * @property {number|null} [pageSize] ListJobsRequest pageSize - * @property {string|null} [pageToken] ListJobsRequest pageToken - */ + /** + * Constructs a new Container. + * @memberof google.cloud.batch.v1.Runnable + * @classdesc Represents a Container. + * @implements IContainer + * @constructor + * @param {google.cloud.batch.v1.Runnable.IContainer=} [properties] Properties to set + */ + function Container(properties) { + this.commands = []; + this.volumes = []; + 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]]; + } - /** - * Constructs a new ListJobsRequest. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a ListJobsRequest. - * @implements IListJobsRequest - * @constructor - * @param {google.cloud.batch.v1.IListJobsRequest=} [properties] Properties to set - */ - function ListJobsRequest(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]]; - } + /** + * Container imageUri. + * @member {string} imageUri + * @memberof google.cloud.batch.v1.Runnable.Container + * @instance + */ + Container.prototype.imageUri = ""; - /** - * ListJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.batch.v1.ListJobsRequest - * @instance - */ - ListJobsRequest.prototype.parent = ""; + /** + * Container commands. + * @member {Array.} commands + * @memberof google.cloud.batch.v1.Runnable.Container + * @instance + */ + Container.prototype.commands = $util.emptyArray; - /** - * ListJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.batch.v1.ListJobsRequest - * @instance - */ - ListJobsRequest.prototype.filter = ""; + /** + * Container entrypoint. + * @member {string} entrypoint + * @memberof google.cloud.batch.v1.Runnable.Container + * @instance + */ + Container.prototype.entrypoint = ""; - /** - * ListJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.batch.v1.ListJobsRequest - * @instance - */ - ListJobsRequest.prototype.pageSize = 0; + /** + * Container volumes. + * @member {Array.} volumes + * @memberof google.cloud.batch.v1.Runnable.Container + * @instance + */ + Container.prototype.volumes = $util.emptyArray; - /** - * ListJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.batch.v1.ListJobsRequest - * @instance - */ - ListJobsRequest.prototype.pageToken = ""; + /** + * Container options. + * @member {string} options + * @memberof google.cloud.batch.v1.Runnable.Container + * @instance + */ + Container.prototype.options = ""; - /** - * Creates a new ListJobsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.ListJobsRequest - * @static - * @param {google.cloud.batch.v1.IListJobsRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1.ListJobsRequest} ListJobsRequest instance - */ - ListJobsRequest.create = function create(properties) { - return new ListJobsRequest(properties); - }; + /** + * Container blockExternalNetwork. + * @member {boolean} blockExternalNetwork + * @memberof google.cloud.batch.v1.Runnable.Container + * @instance + */ + Container.prototype.blockExternalNetwork = false; - /** - * Encodes the specified ListJobsRequest message. Does not implicitly {@link google.cloud.batch.v1.ListJobsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.ListJobsRequest - * @static - * @param {google.cloud.batch.v1.IListJobsRequest} message ListJobsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListJobsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - return writer; - }; + /** + * Container username. + * @member {string} username + * @memberof google.cloud.batch.v1.Runnable.Container + * @instance + */ + Container.prototype.username = ""; - /** - * Encodes the specified ListJobsRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListJobsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.ListJobsRequest - * @static - * @param {google.cloud.batch.v1.IListJobsRequest} message ListJobsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Container password. + * @member {string} password + * @memberof google.cloud.batch.v1.Runnable.Container + * @instance + */ + Container.prototype.password = ""; - /** - * Decodes a ListJobsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.ListJobsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.ListJobsRequest} ListJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListJobsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ListJobsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + /** + * Creates a new Container instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.Runnable.Container + * @static + * @param {google.cloud.batch.v1.Runnable.IContainer=} [properties] Properties to set + * @returns {google.cloud.batch.v1.Runnable.Container} Container instance + */ + Container.create = function create(properties) { + return new Container(properties); + }; + + /** + * Encodes the specified Container message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Container.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.Runnable.Container + * @static + * @param {google.cloud.batch.v1.Runnable.IContainer} message Container message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Container.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); + if (message.commands != null && message.commands.length) + for (var i = 0; i < message.commands.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.commands[i]); + if (message.entrypoint != null && Object.hasOwnProperty.call(message, "entrypoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.entrypoint); + if (message.volumes != null && message.volumes.length) + for (var i = 0; i < message.volumes.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.volumes[i]); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.options); + if (message.blockExternalNetwork != null && Object.hasOwnProperty.call(message, "blockExternalNetwork")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.blockExternalNetwork); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.password); + return writer; + }; + + /** + * Encodes the specified Container message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Container.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.Runnable.Container + * @static + * @param {google.cloud.batch.v1.Runnable.IContainer} message Container message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Container.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Container message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.Runnable.Container + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.Runnable.Container} Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Container.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Runnable.Container(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.imageUri = reader.string(); + break; + } + case 2: { + if (!(message.commands && message.commands.length)) + message.commands = []; + message.commands.push(reader.string()); + break; + } + case 3: { + message.entrypoint = reader.string(); + break; + } + case 7: { + if (!(message.volumes && message.volumes.length)) + message.volumes = []; + message.volumes.push(reader.string()); + break; + } + case 8: { + message.options = reader.string(); + break; + } + case 9: { + message.blockExternalNetwork = reader.bool(); + break; + } + case 10: { + message.username = reader.string(); + break; + } + case 11: { + message.password = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ListJobsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.ListJobsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.ListJobsRequest} ListJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListJobsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Container message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.Runnable.Container + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.Runnable.Container} Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Container.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListJobsRequest message. - * @function verify - * @memberof google.cloud.batch.v1.ListJobsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListJobsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - return null; - }; + /** + * Verifies a Container message. + * @function verify + * @memberof google.cloud.batch.v1.Runnable.Container + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Container.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + if (!$util.isString(message.imageUri)) + return "imageUri: string expected"; + if (message.commands != null && message.hasOwnProperty("commands")) { + if (!Array.isArray(message.commands)) + return "commands: array expected"; + for (var i = 0; i < message.commands.length; ++i) + if (!$util.isString(message.commands[i])) + return "commands: string[] expected"; + } + if (message.entrypoint != null && message.hasOwnProperty("entrypoint")) + if (!$util.isString(message.entrypoint)) + return "entrypoint: string expected"; + if (message.volumes != null && message.hasOwnProperty("volumes")) { + if (!Array.isArray(message.volumes)) + return "volumes: array expected"; + for (var i = 0; i < message.volumes.length; ++i) + if (!$util.isString(message.volumes[i])) + return "volumes: string[] expected"; + } + if (message.options != null && message.hasOwnProperty("options")) + if (!$util.isString(message.options)) + return "options: string expected"; + if (message.blockExternalNetwork != null && message.hasOwnProperty("blockExternalNetwork")) + if (typeof message.blockExternalNetwork !== "boolean") + return "blockExternalNetwork: boolean expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + return null; + }; - /** - * Creates a ListJobsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.ListJobsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.ListJobsRequest} ListJobsRequest - */ - ListJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.ListJobsRequest) - return object; - var message = new $root.google.cloud.batch.v1.ListJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - return message; - }; + /** + * Creates a Container message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.Runnable.Container + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.Runnable.Container} Container + */ + Container.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.Runnable.Container) + return object; + var message = new $root.google.cloud.batch.v1.Runnable.Container(); + if (object.imageUri != null) + message.imageUri = String(object.imageUri); + if (object.commands) { + if (!Array.isArray(object.commands)) + throw TypeError(".google.cloud.batch.v1.Runnable.Container.commands: array expected"); + message.commands = []; + for (var i = 0; i < object.commands.length; ++i) + message.commands[i] = String(object.commands[i]); + } + if (object.entrypoint != null) + message.entrypoint = String(object.entrypoint); + if (object.volumes) { + if (!Array.isArray(object.volumes)) + throw TypeError(".google.cloud.batch.v1.Runnable.Container.volumes: array expected"); + message.volumes = []; + for (var i = 0; i < object.volumes.length; ++i) + message.volumes[i] = String(object.volumes[i]); + } + if (object.options != null) + message.options = String(object.options); + if (object.blockExternalNetwork != null) + message.blockExternalNetwork = Boolean(object.blockExternalNetwork); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + return message; + }; - /** - * Creates a plain object from a ListJobsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.ListJobsRequest - * @static - * @param {google.cloud.batch.v1.ListJobsRequest} message ListJobsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListJobsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - return object; - }; + /** + * Creates a plain object from a Container message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.Runnable.Container + * @static + * @param {google.cloud.batch.v1.Runnable.Container} message Container + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Container.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.commands = []; + object.volumes = []; + } + if (options.defaults) { + object.imageUri = ""; + object.entrypoint = ""; + object.options = ""; + object.blockExternalNetwork = false; + object.username = ""; + object.password = ""; + } + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + object.imageUri = message.imageUri; + if (message.commands && message.commands.length) { + object.commands = []; + for (var j = 0; j < message.commands.length; ++j) + object.commands[j] = message.commands[j]; + } + if (message.entrypoint != null && message.hasOwnProperty("entrypoint")) + object.entrypoint = message.entrypoint; + if (message.volumes && message.volumes.length) { + object.volumes = []; + for (var j = 0; j < message.volumes.length; ++j) + object.volumes[j] = message.volumes[j]; + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = message.options; + if (message.blockExternalNetwork != null && message.hasOwnProperty("blockExternalNetwork")) + object.blockExternalNetwork = message.blockExternalNetwork; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + return object; + }; - /** - * Converts this ListJobsRequest to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.ListJobsRequest - * @instance - * @returns {Object.} JSON object - */ - ListJobsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Container to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.Runnable.Container + * @instance + * @returns {Object.} JSON object + */ + Container.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for ListJobsRequest - * @function getTypeUrl - * @memberof google.cloud.batch.v1.ListJobsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.ListJobsRequest"; - }; + /** + * Gets the default type url for Container + * @function getTypeUrl + * @memberof google.cloud.batch.v1.Runnable.Container + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Container.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.Runnable.Container"; + }; - return ListJobsRequest; - })(); + return Container; + })(); - v1.ListJobsResponse = (function() { + Runnable.Script = (function() { - /** - * Properties of a ListJobsResponse. - * @memberof google.cloud.batch.v1 - * @interface IListJobsResponse - * @property {Array.|null} [jobs] ListJobsResponse jobs - * @property {string|null} [nextPageToken] ListJobsResponse nextPageToken - * @property {Array.|null} [unreachable] ListJobsResponse unreachable - */ + /** + * Properties of a Script. + * @memberof google.cloud.batch.v1.Runnable + * @interface IScript + * @property {string|null} [path] Script path + * @property {string|null} [text] Script text + */ - /** - * Constructs a new ListJobsResponse. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a ListJobsResponse. - * @implements IListJobsResponse - * @constructor - * @param {google.cloud.batch.v1.IListJobsResponse=} [properties] Properties to set - */ - function ListJobsResponse(properties) { - this.jobs = []; - this.unreachable = []; - 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]]; - } + /** + * Constructs a new Script. + * @memberof google.cloud.batch.v1.Runnable + * @classdesc Represents a Script. + * @implements IScript + * @constructor + * @param {google.cloud.batch.v1.Runnable.IScript=} [properties] Properties to set + */ + function Script(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]]; + } - /** - * ListJobsResponse jobs. - * @member {Array.} jobs - * @memberof google.cloud.batch.v1.ListJobsResponse - * @instance - */ - ListJobsResponse.prototype.jobs = $util.emptyArray; + /** + * Script path. + * @member {string|null|undefined} path + * @memberof google.cloud.batch.v1.Runnable.Script + * @instance + */ + Script.prototype.path = null; - /** - * ListJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.batch.v1.ListJobsResponse - * @instance - */ - ListJobsResponse.prototype.nextPageToken = ""; + /** + * Script text. + * @member {string|null|undefined} text + * @memberof google.cloud.batch.v1.Runnable.Script + * @instance + */ + Script.prototype.text = null; - /** - * ListJobsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.batch.v1.ListJobsResponse - * @instance - */ - ListJobsResponse.prototype.unreachable = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Creates a new ListJobsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.ListJobsResponse - * @static - * @param {google.cloud.batch.v1.IListJobsResponse=} [properties] Properties to set - * @returns {google.cloud.batch.v1.ListJobsResponse} ListJobsResponse instance - */ - ListJobsResponse.create = function create(properties) { - return new ListJobsResponse(properties); - }; + /** + * Script command. + * @member {"path"|"text"|undefined} command + * @memberof google.cloud.batch.v1.Runnable.Script + * @instance + */ + Object.defineProperty(Script.prototype, "command", { + get: $util.oneOfGetter($oneOfFields = ["path", "text"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified ListJobsResponse message. Does not implicitly {@link google.cloud.batch.v1.ListJobsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.ListJobsResponse - * @static - * @param {google.cloud.batch.v1.IListJobsResponse} message ListJobsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListJobsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.jobs != null && message.jobs.length) - for (var i = 0; i < message.jobs.length; ++i) - $root.google.cloud.batch.v1.Job.encode(message.jobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); - return writer; - }; + /** + * Creates a new Script instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.Runnable.Script + * @static + * @param {google.cloud.batch.v1.Runnable.IScript=} [properties] Properties to set + * @returns {google.cloud.batch.v1.Runnable.Script} Script instance + */ + Script.create = function create(properties) { + return new Script(properties); + }; - /** - * Encodes the specified ListJobsResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListJobsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.ListJobsResponse - * @static - * @param {google.cloud.batch.v1.IListJobsResponse} message ListJobsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Script message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Script.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.Runnable.Script + * @static + * @param {google.cloud.batch.v1.Runnable.IScript} message Script message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Script.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.text); + return writer; + }; - /** - * Decodes a ListJobsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.ListJobsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.ListJobsResponse} ListJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListJobsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ListJobsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.jobs && message.jobs.length)) - message.jobs = []; - message.jobs.push($root.google.cloud.batch.v1.Job.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + /** + * Encodes the specified Script message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Script.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.Runnable.Script + * @static + * @param {google.cloud.batch.v1.Runnable.IScript} message Script message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Script.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Script message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.Runnable.Script + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.Runnable.Script} Script + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Script.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Runnable.Script(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.path = reader.string(); + break; + } + case 2: { + message.text = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ListJobsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.ListJobsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.ListJobsResponse} ListJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListJobsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Script message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.Runnable.Script + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.Runnable.Script} Script + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Script.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListJobsResponse message. - * @function verify - * @memberof google.cloud.batch.v1.ListJobsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListJobsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.jobs != null && message.hasOwnProperty("jobs")) { - if (!Array.isArray(message.jobs)) - return "jobs: array expected"; - for (var i = 0; i < message.jobs.length; ++i) { - var error = $root.google.cloud.batch.v1.Job.verify(message.jobs[i]); - if (error) - return "jobs." + error; + /** + * Verifies a Script message. + * @function verify + * @memberof google.cloud.batch.v1.Runnable.Script + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Script.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.path != null && message.hasOwnProperty("path")) { + properties.command = 1; + if (!$util.isString(message.path)) + return "path: string expected"; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } - return null; - }; + if (message.text != null && message.hasOwnProperty("text")) { + if (properties.command === 1) + return "command: multiple values"; + properties.command = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + return null; + }; - /** - * Creates a ListJobsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.ListJobsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.ListJobsResponse} ListJobsResponse - */ - ListJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.ListJobsResponse) + /** + * Creates a Script message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.Runnable.Script + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.Runnable.Script} Script + */ + Script.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.Runnable.Script) + return object; + var message = new $root.google.cloud.batch.v1.Runnable.Script(); + if (object.path != null) + message.path = String(object.path); + if (object.text != null) + message.text = String(object.text); + return message; + }; + + /** + * Creates a plain object from a Script message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.Runnable.Script + * @static + * @param {google.cloud.batch.v1.Runnable.Script} message Script + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Script.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.path != null && message.hasOwnProperty("path")) { + object.path = message.path; + if (options.oneofs) + object.command = "path"; + } + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.command = "text"; + } return object; - var message = new $root.google.cloud.batch.v1.ListJobsResponse(); - if (object.jobs) { - if (!Array.isArray(object.jobs)) - throw TypeError(".google.cloud.batch.v1.ListJobsResponse.jobs: array expected"); - message.jobs = []; - for (var i = 0; i < object.jobs.length; ++i) { - if (typeof object.jobs[i] !== "object") - throw TypeError(".google.cloud.batch.v1.ListJobsResponse.jobs: object expected"); - message.jobs[i] = $root.google.cloud.batch.v1.Job.fromObject(object.jobs[i]); + }; + + /** + * Converts this Script to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.Runnable.Script + * @instance + * @returns {Object.} JSON object + */ + Script.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Script + * @function getTypeUrl + * @memberof google.cloud.batch.v1.Runnable.Script + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Script.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.batch.v1.ListJobsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } - return message; - }; + return typeUrlPrefix + "/google.cloud.batch.v1.Runnable.Script"; + }; - /** - * Creates a plain object from a ListJobsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.ListJobsResponse - * @static - * @param {google.cloud.batch.v1.ListJobsResponse} message ListJobsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListJobsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.jobs = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.jobs && message.jobs.length) { - object.jobs = []; - for (var j = 0; j < message.jobs.length; ++j) - object.jobs[j] = $root.google.cloud.batch.v1.Job.toObject(message.jobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } - return object; - }; + return Script; + })(); - /** - * Converts this ListJobsResponse to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.ListJobsResponse - * @instance - * @returns {Object.} JSON object - */ - ListJobsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Runnable.Barrier = (function() { - /** - * Gets the default type url for ListJobsResponse - * @function getTypeUrl - * @memberof google.cloud.batch.v1.ListJobsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Properties of a Barrier. + * @memberof google.cloud.batch.v1.Runnable + * @interface IBarrier + * @property {string|null} [name] Barrier name + */ + + /** + * Constructs a new Barrier. + * @memberof google.cloud.batch.v1.Runnable + * @classdesc Represents a Barrier. + * @implements IBarrier + * @constructor + * @param {google.cloud.batch.v1.Runnable.IBarrier=} [properties] Properties to set + */ + function Barrier(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]]; } - return typeUrlPrefix + "/google.cloud.batch.v1.ListJobsResponse"; - }; - return ListJobsResponse; + /** + * Barrier name. + * @member {string} name + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @instance + */ + Barrier.prototype.name = ""; + + /** + * Creates a new Barrier instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @static + * @param {google.cloud.batch.v1.Runnable.IBarrier=} [properties] Properties to set + * @returns {google.cloud.batch.v1.Runnable.Barrier} Barrier instance + */ + Barrier.create = function create(properties) { + return new Barrier(properties); + }; + + /** + * Encodes the specified Barrier message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Barrier.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @static + * @param {google.cloud.batch.v1.Runnable.IBarrier} message Barrier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Barrier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified Barrier message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Barrier.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @static + * @param {google.cloud.batch.v1.Runnable.IBarrier} message Barrier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Barrier.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Barrier message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.Runnable.Barrier} Barrier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Barrier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Runnable.Barrier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Barrier message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.Runnable.Barrier} Barrier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Barrier.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Barrier message. + * @function verify + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Barrier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a Barrier message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.Runnable.Barrier} Barrier + */ + Barrier.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.Runnable.Barrier) + return object; + var message = new $root.google.cloud.batch.v1.Runnable.Barrier(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a Barrier message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @static + * @param {google.cloud.batch.v1.Runnable.Barrier} message Barrier + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Barrier.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this Barrier to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @instance + * @returns {Object.} JSON object + */ + Barrier.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Barrier + * @function getTypeUrl + * @memberof google.cloud.batch.v1.Runnable.Barrier + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Barrier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.Runnable.Barrier"; + }; + + return Barrier; + })(); + + return Runnable; })(); - v1.ListTasksRequest = (function() { + v1.TaskSpec = (function() { /** - * Properties of a ListTasksRequest. + * Properties of a TaskSpec. * @memberof google.cloud.batch.v1 - * @interface IListTasksRequest - * @property {string|null} [parent] ListTasksRequest parent - * @property {string|null} [filter] ListTasksRequest filter - * @property {number|null} [pageSize] ListTasksRequest pageSize - * @property {string|null} [pageToken] ListTasksRequest pageToken + * @interface ITaskSpec + * @property {Array.|null} [runnables] TaskSpec runnables + * @property {google.cloud.batch.v1.IComputeResource|null} [computeResource] TaskSpec computeResource + * @property {google.protobuf.IDuration|null} [maxRunDuration] TaskSpec maxRunDuration + * @property {number|null} [maxRetryCount] TaskSpec maxRetryCount + * @property {Array.|null} [lifecyclePolicies] TaskSpec lifecyclePolicies + * @property {Object.|null} [environments] TaskSpec environments + * @property {Array.|null} [volumes] TaskSpec volumes + * @property {google.cloud.batch.v1.IEnvironment|null} [environment] TaskSpec environment */ /** - * Constructs a new ListTasksRequest. + * Constructs a new TaskSpec. * @memberof google.cloud.batch.v1 - * @classdesc Represents a ListTasksRequest. - * @implements IListTasksRequest + * @classdesc Represents a TaskSpec. + * @implements ITaskSpec * @constructor - * @param {google.cloud.batch.v1.IListTasksRequest=} [properties] Properties to set + * @param {google.cloud.batch.v1.ITaskSpec=} [properties] Properties to set */ - function ListTasksRequest(properties) { + function TaskSpec(properties) { + this.runnables = []; + this.lifecyclePolicies = []; + this.environments = {}; + this.volumes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11924,117 +10869,202 @@ } /** - * ListTasksRequest parent. - * @member {string} parent - * @memberof google.cloud.batch.v1.ListTasksRequest + * TaskSpec runnables. + * @member {Array.} runnables + * @memberof google.cloud.batch.v1.TaskSpec * @instance */ - ListTasksRequest.prototype.parent = ""; + TaskSpec.prototype.runnables = $util.emptyArray; /** - * ListTasksRequest filter. - * @member {string} filter - * @memberof google.cloud.batch.v1.ListTasksRequest + * TaskSpec computeResource. + * @member {google.cloud.batch.v1.IComputeResource|null|undefined} computeResource + * @memberof google.cloud.batch.v1.TaskSpec * @instance */ - ListTasksRequest.prototype.filter = ""; + TaskSpec.prototype.computeResource = null; /** - * ListTasksRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.batch.v1.ListTasksRequest + * TaskSpec maxRunDuration. + * @member {google.protobuf.IDuration|null|undefined} maxRunDuration + * @memberof google.cloud.batch.v1.TaskSpec * @instance */ - ListTasksRequest.prototype.pageSize = 0; + TaskSpec.prototype.maxRunDuration = null; /** - * ListTasksRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.batch.v1.ListTasksRequest + * TaskSpec maxRetryCount. + * @member {number} maxRetryCount + * @memberof google.cloud.batch.v1.TaskSpec * @instance */ - ListTasksRequest.prototype.pageToken = ""; + TaskSpec.prototype.maxRetryCount = 0; /** - * Creates a new ListTasksRequest instance using the specified properties. + * TaskSpec lifecyclePolicies. + * @member {Array.} lifecyclePolicies + * @memberof google.cloud.batch.v1.TaskSpec + * @instance + */ + TaskSpec.prototype.lifecyclePolicies = $util.emptyArray; + + /** + * TaskSpec environments. + * @member {Object.} environments + * @memberof google.cloud.batch.v1.TaskSpec + * @instance + */ + TaskSpec.prototype.environments = $util.emptyObject; + + /** + * TaskSpec volumes. + * @member {Array.} volumes + * @memberof google.cloud.batch.v1.TaskSpec + * @instance + */ + TaskSpec.prototype.volumes = $util.emptyArray; + + /** + * TaskSpec environment. + * @member {google.cloud.batch.v1.IEnvironment|null|undefined} environment + * @memberof google.cloud.batch.v1.TaskSpec + * @instance + */ + TaskSpec.prototype.environment = null; + + /** + * Creates a new TaskSpec instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @static - * @param {google.cloud.batch.v1.IListTasksRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1.ListTasksRequest} ListTasksRequest instance + * @param {google.cloud.batch.v1.ITaskSpec=} [properties] Properties to set + * @returns {google.cloud.batch.v1.TaskSpec} TaskSpec instance */ - ListTasksRequest.create = function create(properties) { - return new ListTasksRequest(properties); + TaskSpec.create = function create(properties) { + return new TaskSpec(properties); }; /** - * Encodes the specified ListTasksRequest message. Does not implicitly {@link google.cloud.batch.v1.ListTasksRequest.verify|verify} messages. + * Encodes the specified TaskSpec message. Does not implicitly {@link google.cloud.batch.v1.TaskSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @static - * @param {google.cloud.batch.v1.IListTasksRequest} message ListTasksRequest message or plain object to encode + * @param {google.cloud.batch.v1.ITaskSpec} message TaskSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTasksRequest.encode = function encode(message, writer) { + TaskSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.computeResource != null && Object.hasOwnProperty.call(message, "computeResource")) + $root.google.cloud.batch.v1.ComputeResource.encode(message.computeResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maxRunDuration != null && Object.hasOwnProperty.call(message, "maxRunDuration")) + $root.google.protobuf.Duration.encode(message.maxRunDuration, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.maxRetryCount != null && Object.hasOwnProperty.call(message, "maxRetryCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxRetryCount); + if (message.environments != null && Object.hasOwnProperty.call(message, "environments")) + for (var keys = Object.keys(message.environments), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environments[keys[i]]).ldelim(); + if (message.volumes != null && message.volumes.length) + for (var i = 0; i < message.volumes.length; ++i) + $root.google.cloud.batch.v1.Volume.encode(message.volumes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.runnables != null && message.runnables.length) + for (var i = 0; i < message.runnables.length; ++i) + $root.google.cloud.batch.v1.Runnable.encode(message.runnables[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.lifecyclePolicies != null && message.lifecyclePolicies.length) + for (var i = 0; i < message.lifecyclePolicies.length; ++i) + $root.google.cloud.batch.v1.LifecyclePolicy.encode(message.lifecyclePolicies[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.batch.v1.Environment.encode(message.environment, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTasksRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListTasksRequest.verify|verify} messages. + * Encodes the specified TaskSpec message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @static - * @param {google.cloud.batch.v1.IListTasksRequest} message ListTasksRequest message or plain object to encode + * @param {google.cloud.batch.v1.ITaskSpec} message TaskSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTasksRequest.encodeDelimited = function encodeDelimited(message, writer) { + TaskSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTasksRequest message from the specified reader or buffer. + * Decodes a TaskSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.ListTasksRequest} ListTasksRequest + * @returns {google.cloud.batch.v1.TaskSpec} TaskSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTasksRequest.decode = function decode(reader, length) { + TaskSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ListTasksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.TaskSpec(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); + case 8: { + if (!(message.runnables && message.runnables.length)) + message.runnables = []; + message.runnables.push($root.google.cloud.batch.v1.Runnable.decode(reader, reader.uint32())); break; } case 3: { - message.pageSize = reader.int32(); + message.computeResource = $root.google.cloud.batch.v1.ComputeResource.decode(reader, reader.uint32()); break; } case 4: { - message.pageToken = reader.string(); + message.maxRunDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 5: { + message.maxRetryCount = reader.int32(); + break; + } + case 9: { + if (!(message.lifecyclePolicies && message.lifecyclePolicies.length)) + message.lifecyclePolicies = []; + message.lifecyclePolicies.push($root.google.cloud.batch.v1.LifecyclePolicy.decode(reader, reader.uint32())); + break; + } + case 6: { + if (message.environments === $util.emptyObject) + message.environments = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.environments[key] = value; + break; + } + case 7: { + if (!(message.volumes && message.volumes.length)) + message.volumes = []; + message.volumes.push($root.google.cloud.batch.v1.Volume.decode(reader, reader.uint32())); + break; + } + case 10: { + message.environment = $root.google.cloud.batch.v1.Environment.decode(reader, reader.uint32()); break; } default: @@ -12046,151 +11076,263 @@ }; /** - * Decodes a ListTasksRequest message from the specified reader or buffer, length delimited. + * Decodes a TaskSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.ListTasksRequest} ListTasksRequest + * @returns {google.cloud.batch.v1.TaskSpec} TaskSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTasksRequest.decodeDelimited = function decodeDelimited(reader) { + TaskSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTasksRequest message. + * Verifies a TaskSpec message. * @function verify - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTasksRequest.verify = function verify(message) { + TaskSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.runnables != null && message.hasOwnProperty("runnables")) { + if (!Array.isArray(message.runnables)) + return "runnables: array expected"; + for (var i = 0; i < message.runnables.length; ++i) { + var error = $root.google.cloud.batch.v1.Runnable.verify(message.runnables[i]); + if (error) + return "runnables." + error; + } + } + if (message.computeResource != null && message.hasOwnProperty("computeResource")) { + var error = $root.google.cloud.batch.v1.ComputeResource.verify(message.computeResource); + if (error) + return "computeResource." + error; + } + if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) { + var error = $root.google.protobuf.Duration.verify(message.maxRunDuration); + if (error) + return "maxRunDuration." + error; + } + if (message.maxRetryCount != null && message.hasOwnProperty("maxRetryCount")) + if (!$util.isInteger(message.maxRetryCount)) + return "maxRetryCount: integer expected"; + if (message.lifecyclePolicies != null && message.hasOwnProperty("lifecyclePolicies")) { + if (!Array.isArray(message.lifecyclePolicies)) + return "lifecyclePolicies: array expected"; + for (var i = 0; i < message.lifecyclePolicies.length; ++i) { + var error = $root.google.cloud.batch.v1.LifecyclePolicy.verify(message.lifecyclePolicies[i]); + if (error) + return "lifecyclePolicies." + error; + } + } + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!$util.isObject(message.environments)) + return "environments: object expected"; + var key = Object.keys(message.environments); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.environments[key[i]])) + return "environments: string{k:string} expected"; + } + if (message.volumes != null && message.hasOwnProperty("volumes")) { + if (!Array.isArray(message.volumes)) + return "volumes: array expected"; + for (var i = 0; i < message.volumes.length; ++i) { + var error = $root.google.cloud.batch.v1.Volume.verify(message.volumes[i]); + if (error) + return "volumes." + error; + } + } + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.batch.v1.Environment.verify(message.environment); + if (error) + return "environment." + error; + } return null; }; /** - * Creates a ListTasksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TaskSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.ListTasksRequest} ListTasksRequest + * @returns {google.cloud.batch.v1.TaskSpec} TaskSpec */ - ListTasksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.ListTasksRequest) + TaskSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.TaskSpec) return object; - var message = new $root.google.cloud.batch.v1.ListTasksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.batch.v1.TaskSpec(); + if (object.runnables) { + if (!Array.isArray(object.runnables)) + throw TypeError(".google.cloud.batch.v1.TaskSpec.runnables: array expected"); + message.runnables = []; + for (var i = 0; i < object.runnables.length; ++i) { + if (typeof object.runnables[i] !== "object") + throw TypeError(".google.cloud.batch.v1.TaskSpec.runnables: object expected"); + message.runnables[i] = $root.google.cloud.batch.v1.Runnable.fromObject(object.runnables[i]); + } + } + if (object.computeResource != null) { + if (typeof object.computeResource !== "object") + throw TypeError(".google.cloud.batch.v1.TaskSpec.computeResource: object expected"); + message.computeResource = $root.google.cloud.batch.v1.ComputeResource.fromObject(object.computeResource); + } + if (object.maxRunDuration != null) { + if (typeof object.maxRunDuration !== "object") + throw TypeError(".google.cloud.batch.v1.TaskSpec.maxRunDuration: object expected"); + message.maxRunDuration = $root.google.protobuf.Duration.fromObject(object.maxRunDuration); + } + if (object.maxRetryCount != null) + message.maxRetryCount = object.maxRetryCount | 0; + if (object.lifecyclePolicies) { + if (!Array.isArray(object.lifecyclePolicies)) + throw TypeError(".google.cloud.batch.v1.TaskSpec.lifecyclePolicies: array expected"); + message.lifecyclePolicies = []; + for (var i = 0; i < object.lifecyclePolicies.length; ++i) { + if (typeof object.lifecyclePolicies[i] !== "object") + throw TypeError(".google.cloud.batch.v1.TaskSpec.lifecyclePolicies: object expected"); + message.lifecyclePolicies[i] = $root.google.cloud.batch.v1.LifecyclePolicy.fromObject(object.lifecyclePolicies[i]); + } + } + if (object.environments) { + if (typeof object.environments !== "object") + throw TypeError(".google.cloud.batch.v1.TaskSpec.environments: object expected"); + message.environments = {}; + for (var keys = Object.keys(object.environments), i = 0; i < keys.length; ++i) + message.environments[keys[i]] = String(object.environments[keys[i]]); + } + if (object.volumes) { + if (!Array.isArray(object.volumes)) + throw TypeError(".google.cloud.batch.v1.TaskSpec.volumes: array expected"); + message.volumes = []; + for (var i = 0; i < object.volumes.length; ++i) { + if (typeof object.volumes[i] !== "object") + throw TypeError(".google.cloud.batch.v1.TaskSpec.volumes: object expected"); + message.volumes[i] = $root.google.cloud.batch.v1.Volume.fromObject(object.volumes[i]); + } + } + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.batch.v1.TaskSpec.environment: object expected"); + message.environment = $root.google.cloud.batch.v1.Environment.fromObject(object.environment); + } return message; }; /** - * Creates a plain object from a ListTasksRequest message. Also converts values to other types if specified. + * Creates a plain object from a TaskSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @static - * @param {google.cloud.batch.v1.ListTasksRequest} message ListTasksRequest + * @param {google.cloud.batch.v1.TaskSpec} message TaskSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTasksRequest.toObject = function toObject(message, options) { + TaskSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.volumes = []; + object.runnables = []; + object.lifecyclePolicies = []; + } + if (options.objects || options.defaults) + object.environments = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; + object.computeResource = null; + object.maxRunDuration = null; + object.maxRetryCount = 0; + object.environment = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.computeResource != null && message.hasOwnProperty("computeResource")) + object.computeResource = $root.google.cloud.batch.v1.ComputeResource.toObject(message.computeResource, options); + if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) + object.maxRunDuration = $root.google.protobuf.Duration.toObject(message.maxRunDuration, options); + if (message.maxRetryCount != null && message.hasOwnProperty("maxRetryCount")) + object.maxRetryCount = message.maxRetryCount; + var keys2; + if (message.environments && (keys2 = Object.keys(message.environments)).length) { + object.environments = {}; + for (var j = 0; j < keys2.length; ++j) + object.environments[keys2[j]] = message.environments[keys2[j]]; + } + if (message.volumes && message.volumes.length) { + object.volumes = []; + for (var j = 0; j < message.volumes.length; ++j) + object.volumes[j] = $root.google.cloud.batch.v1.Volume.toObject(message.volumes[j], options); + } + if (message.runnables && message.runnables.length) { + object.runnables = []; + for (var j = 0; j < message.runnables.length; ++j) + object.runnables[j] = $root.google.cloud.batch.v1.Runnable.toObject(message.runnables[j], options); + } + if (message.lifecyclePolicies && message.lifecyclePolicies.length) { + object.lifecyclePolicies = []; + for (var j = 0; j < message.lifecyclePolicies.length; ++j) + object.lifecyclePolicies[j] = $root.google.cloud.batch.v1.LifecyclePolicy.toObject(message.lifecyclePolicies[j], options); + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.batch.v1.Environment.toObject(message.environment, options); return object; }; /** - * Converts this ListTasksRequest to JSON. + * Converts this TaskSpec to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @instance * @returns {Object.} JSON object */ - ListTasksRequest.prototype.toJSON = function toJSON() { + TaskSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTasksRequest + * Gets the default type url for TaskSpec * @function getTypeUrl - * @memberof google.cloud.batch.v1.ListTasksRequest + * @memberof google.cloud.batch.v1.TaskSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTasksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TaskSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.ListTasksRequest"; + return typeUrlPrefix + "/google.cloud.batch.v1.TaskSpec"; }; - return ListTasksRequest; + return TaskSpec; })(); - v1.ListTasksResponse = (function() { + v1.LifecyclePolicy = (function() { /** - * Properties of a ListTasksResponse. + * Properties of a LifecyclePolicy. * @memberof google.cloud.batch.v1 - * @interface IListTasksResponse - * @property {Array.|null} [tasks] ListTasksResponse tasks - * @property {string|null} [nextPageToken] ListTasksResponse nextPageToken - * @property {Array.|null} [unreachable] ListTasksResponse unreachable + * @interface ILifecyclePolicy + * @property {google.cloud.batch.v1.LifecyclePolicy.Action|null} [action] LifecyclePolicy action + * @property {google.cloud.batch.v1.LifecyclePolicy.IActionCondition|null} [actionCondition] LifecyclePolicy actionCondition */ /** - * Constructs a new ListTasksResponse. + * Constructs a new LifecyclePolicy. * @memberof google.cloud.batch.v1 - * @classdesc Represents a ListTasksResponse. - * @implements IListTasksResponse + * @classdesc Represents a LifecyclePolicy. + * @implements ILifecyclePolicy * @constructor - * @param {google.cloud.batch.v1.IListTasksResponse=} [properties] Properties to set + * @param {google.cloud.batch.v1.ILifecyclePolicy=} [properties] Properties to set */ - function ListTasksResponse(properties) { - this.tasks = []; - this.unreachable = []; + function LifecyclePolicy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12198,109 +11340,89 @@ } /** - * ListTasksResponse tasks. - * @member {Array.} tasks - * @memberof google.cloud.batch.v1.ListTasksResponse - * @instance - */ - ListTasksResponse.prototype.tasks = $util.emptyArray; - - /** - * ListTasksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.batch.v1.ListTasksResponse + * LifecyclePolicy action. + * @member {google.cloud.batch.v1.LifecyclePolicy.Action} action + * @memberof google.cloud.batch.v1.LifecyclePolicy * @instance */ - ListTasksResponse.prototype.nextPageToken = ""; + LifecyclePolicy.prototype.action = 0; /** - * ListTasksResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.batch.v1.ListTasksResponse + * LifecyclePolicy actionCondition. + * @member {google.cloud.batch.v1.LifecyclePolicy.IActionCondition|null|undefined} actionCondition + * @memberof google.cloud.batch.v1.LifecyclePolicy * @instance */ - ListTasksResponse.prototype.unreachable = $util.emptyArray; + LifecyclePolicy.prototype.actionCondition = null; /** - * Creates a new ListTasksResponse instance using the specified properties. + * Creates a new LifecyclePolicy instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @static - * @param {google.cloud.batch.v1.IListTasksResponse=} [properties] Properties to set - * @returns {google.cloud.batch.v1.ListTasksResponse} ListTasksResponse instance + * @param {google.cloud.batch.v1.ILifecyclePolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1.LifecyclePolicy} LifecyclePolicy instance */ - ListTasksResponse.create = function create(properties) { - return new ListTasksResponse(properties); + LifecyclePolicy.create = function create(properties) { + return new LifecyclePolicy(properties); }; /** - * Encodes the specified ListTasksResponse message. Does not implicitly {@link google.cloud.batch.v1.ListTasksResponse.verify|verify} messages. + * Encodes the specified LifecyclePolicy message. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @static - * @param {google.cloud.batch.v1.IListTasksResponse} message ListTasksResponse message or plain object to encode + * @param {google.cloud.batch.v1.ILifecyclePolicy} message LifecyclePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTasksResponse.encode = function encode(message, writer) { + LifecyclePolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.google.cloud.batch.v1.Task.encode(message.tasks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.action); + if (message.actionCondition != null && Object.hasOwnProperty.call(message, "actionCondition")) + $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.encode(message.actionCondition, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTasksResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ListTasksResponse.verify|verify} messages. + * Encodes the specified LifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @static - * @param {google.cloud.batch.v1.IListTasksResponse} message ListTasksResponse message or plain object to encode + * @param {google.cloud.batch.v1.ILifecyclePolicy} message LifecyclePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTasksResponse.encodeDelimited = function encodeDelimited(message, writer) { + LifecyclePolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTasksResponse message from the specified reader or buffer. + * Decodes a LifecyclePolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.ListTasksResponse} ListTasksResponse + * @returns {google.cloud.batch.v1.LifecyclePolicy} LifecyclePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTasksResponse.decode = function decode(reader, length) { + LifecyclePolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ListTasksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.LifecyclePolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.google.cloud.batch.v1.Task.decode(reader, reader.uint32())); + message.action = reader.int32(); break; } case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.actionCondition = $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.decode(reader, reader.uint32()); break; } default: @@ -12312,240 +11434,485 @@ }; /** - * Decodes a ListTasksResponse message from the specified reader or buffer, length delimited. + * Decodes a LifecyclePolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.ListTasksResponse} ListTasksResponse + * @returns {google.cloud.batch.v1.LifecyclePolicy} LifecyclePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTasksResponse.decodeDelimited = function decodeDelimited(reader) { + LifecyclePolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTasksResponse message. + * Verifies a LifecyclePolicy message. * @function verify - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTasksResponse.verify = function verify(message) { + LifecyclePolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.google.cloud.batch.v1.Task.verify(message.tasks[i]); - if (error) - return "tasks." + error; + if (message.action != null && message.hasOwnProperty("action")) + switch (message.action) { + default: + return "action: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.actionCondition != null && message.hasOwnProperty("actionCondition")) { + var error = $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify(message.actionCondition); + if (error) + return "actionCondition." + error; } return null; }; /** - * Creates a ListTasksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LifecyclePolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.ListTasksResponse} ListTasksResponse + * @returns {google.cloud.batch.v1.LifecyclePolicy} LifecyclePolicy */ - ListTasksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.ListTasksResponse) + LifecyclePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.LifecyclePolicy) return object; - var message = new $root.google.cloud.batch.v1.ListTasksResponse(); - if (object.tasks) { - if (!Array.isArray(object.tasks)) - throw TypeError(".google.cloud.batch.v1.ListTasksResponse.tasks: array expected"); - message.tasks = []; - for (var i = 0; i < object.tasks.length; ++i) { - if (typeof object.tasks[i] !== "object") - throw TypeError(".google.cloud.batch.v1.ListTasksResponse.tasks: object expected"); - message.tasks[i] = $root.google.cloud.batch.v1.Task.fromObject(object.tasks[i]); + var message = new $root.google.cloud.batch.v1.LifecyclePolicy(); + switch (object.action) { + default: + if (typeof object.action === "number") { + message.action = object.action; + break; } + break; + case "ACTION_UNSPECIFIED": + case 0: + message.action = 0; + break; + case "RETRY_TASK": + case 1: + message.action = 1; + break; + case "FAIL_TASK": + case 2: + message.action = 2; + break; } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.batch.v1.ListTasksResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + if (object.actionCondition != null) { + if (typeof object.actionCondition !== "object") + throw TypeError(".google.cloud.batch.v1.LifecyclePolicy.actionCondition: object expected"); + message.actionCondition = $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.fromObject(object.actionCondition); } return message; }; /** - * Creates a plain object from a ListTasksResponse message. Also converts values to other types if specified. + * Creates a plain object from a LifecyclePolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @static - * @param {google.cloud.batch.v1.ListTasksResponse} message ListTasksResponse + * @param {google.cloud.batch.v1.LifecyclePolicy} message LifecyclePolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTasksResponse.toObject = function toObject(message, options) { + LifecyclePolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.tasks = []; - object.unreachable = []; - } - if (options.defaults) - object.nextPageToken = ""; - if (message.tasks && message.tasks.length) { - object.tasks = []; - for (var j = 0; j < message.tasks.length; ++j) - object.tasks[j] = $root.google.cloud.batch.v1.Task.toObject(message.tasks[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (options.defaults) { + object.action = options.enums === String ? "ACTION_UNSPECIFIED" : 0; + object.actionCondition = null; } + if (message.action != null && message.hasOwnProperty("action")) + object.action = options.enums === String ? $root.google.cloud.batch.v1.LifecyclePolicy.Action[message.action] === undefined ? message.action : $root.google.cloud.batch.v1.LifecyclePolicy.Action[message.action] : message.action; + if (message.actionCondition != null && message.hasOwnProperty("actionCondition")) + object.actionCondition = $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.toObject(message.actionCondition, options); return object; }; /** - * Converts this ListTasksResponse to JSON. + * Converts this LifecyclePolicy to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @instance * @returns {Object.} JSON object */ - ListTasksResponse.prototype.toJSON = function toJSON() { + LifecyclePolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTasksResponse + * Gets the default type url for LifecyclePolicy * @function getTypeUrl - * @memberof google.cloud.batch.v1.ListTasksResponse + * @memberof google.cloud.batch.v1.LifecyclePolicy * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTasksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LifecyclePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.ListTasksResponse"; + return typeUrlPrefix + "/google.cloud.batch.v1.LifecyclePolicy"; }; - return ListTasksResponse; - })(); - - v1.GetTaskRequest = (function() { + LifecyclePolicy.ActionCondition = (function() { - /** - * Properties of a GetTaskRequest. - * @memberof google.cloud.batch.v1 - * @interface IGetTaskRequest - * @property {string|null} [name] GetTaskRequest name - */ + /** + * Properties of an ActionCondition. + * @memberof google.cloud.batch.v1.LifecyclePolicy + * @interface IActionCondition + * @property {Array.|null} [exitCodes] ActionCondition exitCodes + */ - /** - * Constructs a new GetTaskRequest. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a GetTaskRequest. - * @implements IGetTaskRequest - * @constructor - * @param {google.cloud.batch.v1.IGetTaskRequest=} [properties] Properties to set - */ - function GetTaskRequest(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]]; - } + /** + * Constructs a new ActionCondition. + * @memberof google.cloud.batch.v1.LifecyclePolicy + * @classdesc Represents an ActionCondition. + * @implements IActionCondition + * @constructor + * @param {google.cloud.batch.v1.LifecyclePolicy.IActionCondition=} [properties] Properties to set + */ + function ActionCondition(properties) { + this.exitCodes = []; + 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]]; + } - /** - * GetTaskRequest name. - * @member {string} name - * @memberof google.cloud.batch.v1.GetTaskRequest - * @instance - */ - GetTaskRequest.prototype.name = ""; + /** + * ActionCondition exitCodes. + * @member {Array.} exitCodes + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @instance + */ + ActionCondition.prototype.exitCodes = $util.emptyArray; - /** - * Creates a new GetTaskRequest instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.GetTaskRequest - * @static - * @param {google.cloud.batch.v1.IGetTaskRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1.GetTaskRequest} GetTaskRequest instance - */ - GetTaskRequest.create = function create(properties) { - return new GetTaskRequest(properties); - }; + /** + * Creates a new ActionCondition instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @static + * @param {google.cloud.batch.v1.LifecyclePolicy.IActionCondition=} [properties] Properties to set + * @returns {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} ActionCondition instance + */ + ActionCondition.create = function create(properties) { + return new ActionCondition(properties); + }; - /** - * Encodes the specified GetTaskRequest message. Does not implicitly {@link google.cloud.batch.v1.GetTaskRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.GetTaskRequest - * @static - * @param {google.cloud.batch.v1.IGetTaskRequest} message GetTaskRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Encodes the specified ActionCondition message. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @static + * @param {google.cloud.batch.v1.LifecyclePolicy.IActionCondition} message ActionCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActionCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exitCodes != null && message.exitCodes.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.exitCodes.length; ++i) + writer.int32(message.exitCodes[i]); + writer.ldelim(); + } + return writer; + }; - /** - * Encodes the specified GetTaskRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GetTaskRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.GetTaskRequest - * @static - * @param {google.cloud.batch.v1.IGetTaskRequest} message GetTaskRequest message or plain object to encode + /** + * Encodes the specified ActionCondition message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @static + * @param {google.cloud.batch.v1.LifecyclePolicy.IActionCondition} message ActionCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActionCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ActionCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} ActionCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActionCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.exitCodes && message.exitCodes.length)) + message.exitCodes = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.exitCodes.push(reader.int32()); + } else + message.exitCodes.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ActionCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} ActionCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActionCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ActionCondition message. + * @function verify + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActionCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exitCodes != null && message.hasOwnProperty("exitCodes")) { + if (!Array.isArray(message.exitCodes)) + return "exitCodes: array expected"; + for (var i = 0; i < message.exitCodes.length; ++i) + if (!$util.isInteger(message.exitCodes[i])) + return "exitCodes: integer[] expected"; + } + return null; + }; + + /** + * Creates an ActionCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} ActionCondition + */ + ActionCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition) + return object; + var message = new $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition(); + if (object.exitCodes) { + if (!Array.isArray(object.exitCodes)) + throw TypeError(".google.cloud.batch.v1.LifecyclePolicy.ActionCondition.exitCodes: array expected"); + message.exitCodes = []; + for (var i = 0; i < object.exitCodes.length; ++i) + message.exitCodes[i] = object.exitCodes[i] | 0; + } + return message; + }; + + /** + * Creates a plain object from an ActionCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @static + * @param {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} message ActionCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ActionCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.exitCodes = []; + if (message.exitCodes && message.exitCodes.length) { + object.exitCodes = []; + for (var j = 0; j < message.exitCodes.length; ++j) + object.exitCodes[j] = message.exitCodes[j]; + } + return object; + }; + + /** + * Converts this ActionCondition to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @instance + * @returns {Object.} JSON object + */ + ActionCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ActionCondition + * @function getTypeUrl + * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ActionCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.LifecyclePolicy.ActionCondition"; + }; + + return ActionCondition; + })(); + + /** + * Action enum. + * @name google.cloud.batch.v1.LifecyclePolicy.Action + * @enum {number} + * @property {number} ACTION_UNSPECIFIED=0 ACTION_UNSPECIFIED value + * @property {number} RETRY_TASK=1 RETRY_TASK value + * @property {number} FAIL_TASK=2 FAIL_TASK value + */ + LifecyclePolicy.Action = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "RETRY_TASK"] = 1; + values[valuesById[2] = "FAIL_TASK"] = 2; + return values; + })(); + + return LifecyclePolicy; + })(); + + v1.Task = (function() { + + /** + * Properties of a Task. + * @memberof google.cloud.batch.v1 + * @interface ITask + * @property {string|null} [name] Task name + * @property {google.cloud.batch.v1.ITaskStatus|null} [status] Task status + */ + + /** + * Constructs a new Task. + * @memberof google.cloud.batch.v1 + * @classdesc Represents a Task. + * @implements ITask + * @constructor + * @param {google.cloud.batch.v1.ITask=} [properties] Properties to set + */ + function Task(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]]; + } + + /** + * Task name. + * @member {string} name + * @memberof google.cloud.batch.v1.Task + * @instance + */ + Task.prototype.name = ""; + + /** + * Task status. + * @member {google.cloud.batch.v1.ITaskStatus|null|undefined} status + * @memberof google.cloud.batch.v1.Task + * @instance + */ + Task.prototype.status = null; + + /** + * Creates a new Task instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.Task + * @static + * @param {google.cloud.batch.v1.ITask=} [properties] Properties to set + * @returns {google.cloud.batch.v1.Task} Task instance + */ + Task.create = function create(properties) { + return new Task(properties); + }; + + /** + * Encodes the specified Task message. Does not implicitly {@link google.cloud.batch.v1.Task.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.Task + * @static + * @param {google.cloud.batch.v1.ITask} message Task message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTaskRequest.encodeDelimited = function encodeDelimited(message, writer) { + Task.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.cloud.batch.v1.TaskStatus.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Task message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Task.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.Task + * @static + * @param {google.cloud.batch.v1.ITask} message Task message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Task.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTaskRequest message from the specified reader or buffer. + * Decodes a Task message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.GetTaskRequest + * @memberof google.cloud.batch.v1.Task * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.GetTaskRequest} GetTaskRequest + * @returns {google.cloud.batch.v1.Task} Task * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTaskRequest.decode = function decode(reader, length) { + Task.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.GetTaskRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Task(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12553,6 +11920,10 @@ message.name = reader.string(); break; } + case 2: { + message.status = $root.google.cloud.batch.v1.TaskStatus.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -12562,128 +11933,140 @@ }; /** - * Decodes a GetTaskRequest message from the specified reader or buffer, length delimited. + * Decodes a Task message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.GetTaskRequest + * @memberof google.cloud.batch.v1.Task * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.GetTaskRequest} GetTaskRequest + * @returns {google.cloud.batch.v1.Task} Task * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTaskRequest.decodeDelimited = function decodeDelimited(reader) { + Task.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTaskRequest message. + * Verifies a Task message. * @function verify - * @memberof google.cloud.batch.v1.GetTaskRequest + * @memberof google.cloud.batch.v1.Task * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTaskRequest.verify = function verify(message) { + Task.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.cloud.batch.v1.TaskStatus.verify(message.status); + if (error) + return "status." + error; + } return null; }; /** - * Creates a GetTaskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Task message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.GetTaskRequest + * @memberof google.cloud.batch.v1.Task * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.GetTaskRequest} GetTaskRequest + * @returns {google.cloud.batch.v1.Task} Task */ - GetTaskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.GetTaskRequest) + Task.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.Task) return object; - var message = new $root.google.cloud.batch.v1.GetTaskRequest(); + var message = new $root.google.cloud.batch.v1.Task(); if (object.name != null) message.name = String(object.name); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.batch.v1.Task.status: object expected"); + message.status = $root.google.cloud.batch.v1.TaskStatus.fromObject(object.status); + } return message; }; /** - * Creates a plain object from a GetTaskRequest message. Also converts values to other types if specified. + * Creates a plain object from a Task message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.GetTaskRequest + * @memberof google.cloud.batch.v1.Task * @static - * @param {google.cloud.batch.v1.GetTaskRequest} message GetTaskRequest + * @param {google.cloud.batch.v1.Task} message Task * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTaskRequest.toObject = function toObject(message, options) { + Task.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.status = null; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.cloud.batch.v1.TaskStatus.toObject(message.status, options); return object; }; /** - * Converts this GetTaskRequest to JSON. + * Converts this Task to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.GetTaskRequest + * @memberof google.cloud.batch.v1.Task * @instance * @returns {Object.} JSON object */ - GetTaskRequest.prototype.toJSON = function toJSON() { + Task.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTaskRequest + * Gets the default type url for Task * @function getTypeUrl - * @memberof google.cloud.batch.v1.GetTaskRequest + * @memberof google.cloud.batch.v1.Task * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTaskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Task.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.GetTaskRequest"; + return typeUrlPrefix + "/google.cloud.batch.v1.Task"; }; - return GetTaskRequest; + return Task; })(); - v1.OperationMetadata = (function() { + v1.Environment = (function() { /** - * Properties of an OperationMetadata. + * Properties of an Environment. * @memberof google.cloud.batch.v1 - * @interface IOperationMetadata - * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime - * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime - * @property {string|null} [target] OperationMetadata target - * @property {string|null} [verb] OperationMetadata verb - * @property {string|null} [statusMessage] OperationMetadata statusMessage - * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation - * @property {string|null} [apiVersion] OperationMetadata apiVersion + * @interface IEnvironment + * @property {Object.|null} [variables] Environment variables + * @property {Object.|null} [secretVariables] Environment secretVariables + * @property {google.cloud.batch.v1.Environment.IKMSEnvMap|null} [encryptedVariables] Environment encryptedVariables */ /** - * Constructs a new OperationMetadata. + * Constructs a new Environment. * @memberof google.cloud.batch.v1 - * @classdesc Represents an OperationMetadata. - * @implements IOperationMetadata + * @classdesc Represents an Environment. + * @implements IEnvironment * @constructor - * @param {google.cloud.batch.v1.IOperationMetadata=} [properties] Properties to set + * @param {google.cloud.batch.v1.IEnvironment=} [properties] Properties to set */ - function OperationMetadata(properties) { + function Environment(properties) { + this.variables = {}; + this.secretVariables = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12691,159 +12074,143 @@ } /** - * OperationMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.batch.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.createTime = null; - - /** - * OperationMetadata endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.batch.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.endTime = null; - - /** - * OperationMetadata target. - * @member {string} target - * @memberof google.cloud.batch.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.target = ""; - - /** - * OperationMetadata verb. - * @member {string} verb - * @memberof google.cloud.batch.v1.OperationMetadata - * @instance - */ - OperationMetadata.prototype.verb = ""; - - /** - * OperationMetadata statusMessage. - * @member {string} statusMessage - * @memberof google.cloud.batch.v1.OperationMetadata + * Environment variables. + * @member {Object.} variables + * @memberof google.cloud.batch.v1.Environment * @instance */ - OperationMetadata.prototype.statusMessage = ""; + Environment.prototype.variables = $util.emptyObject; /** - * OperationMetadata requestedCancellation. - * @member {boolean} requestedCancellation - * @memberof google.cloud.batch.v1.OperationMetadata + * Environment secretVariables. + * @member {Object.} secretVariables + * @memberof google.cloud.batch.v1.Environment * @instance */ - OperationMetadata.prototype.requestedCancellation = false; + Environment.prototype.secretVariables = $util.emptyObject; /** - * OperationMetadata apiVersion. - * @member {string} apiVersion - * @memberof google.cloud.batch.v1.OperationMetadata + * Environment encryptedVariables. + * @member {google.cloud.batch.v1.Environment.IKMSEnvMap|null|undefined} encryptedVariables + * @memberof google.cloud.batch.v1.Environment * @instance */ - OperationMetadata.prototype.apiVersion = ""; + Environment.prototype.encryptedVariables = null; /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @static - * @param {google.cloud.batch.v1.IOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.batch.v1.OperationMetadata} OperationMetadata instance + * @param {google.cloud.batch.v1.IEnvironment=} [properties] Properties to set + * @returns {google.cloud.batch.v1.Environment} Environment instance */ - OperationMetadata.create = function create(properties) { - return new OperationMetadata(properties); + Environment.create = function create(properties) { + return new Environment(properties); }; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.batch.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.batch.v1.Environment.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @static - * @param {google.cloud.batch.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.batch.v1.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encode = function encode(message, writer) { + Environment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); - if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); - if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); + if (message.variables != null && Object.hasOwnProperty.call(message, "variables")) + for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.variables[keys[i]]).ldelim(); + if (message.secretVariables != null && Object.hasOwnProperty.call(message, "secretVariables")) + for (var keys = Object.keys(message.secretVariables), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.secretVariables[keys[i]]).ldelim(); + if (message.encryptedVariables != null && Object.hasOwnProperty.call(message, "encryptedVariables")) + $root.google.cloud.batch.v1.Environment.KMSEnvMap.encode(message.encryptedVariables, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.batch.v1.OperationMetadata.verify|verify} messages. + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Environment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @static - * @param {google.cloud.batch.v1.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.batch.v1.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + Environment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.batch.v1.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decode = function decode(reader, length) { + Environment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.OperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Environment(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (message.variables === $util.emptyObject) + message.variables = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.variables[key] = value; break; } case 2: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 3: { - message.target = reader.string(); - break; - } - case 4: { - message.verb = reader.string(); - break; - } - case 5: { - message.statusMessage = reader.string(); - break; - } - case 6: { - message.requestedCancellation = reader.bool(); + if (message.secretVariables === $util.emptyObject) + message.secretVariables = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.secretVariables[key] = value; break; } - case 7: { - message.apiVersion = reader.string(); + case 3: { + message.encryptedVariables = $root.google.cloud.batch.v1.Environment.KMSEnvMap.decode(reader, reader.uint32()); break; } default: @@ -12855,194 +12222,404 @@ }; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.batch.v1.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decodeDelimited = function decodeDelimited(reader) { + Environment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OperationMetadata message. + * Verifies an Environment message. * @function verify - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OperationMetadata.verify = function verify(message) { + Environment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + if (message.variables != null && message.hasOwnProperty("variables")) { + if (!$util.isObject(message.variables)) + return "variables: object expected"; + var key = Object.keys(message.variables); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.variables[key[i]])) + return "variables: string{k:string} expected"; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.secretVariables != null && message.hasOwnProperty("secretVariables")) { + if (!$util.isObject(message.secretVariables)) + return "secretVariables: object expected"; + var key = Object.keys(message.secretVariables); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.secretVariables[key[i]])) + return "secretVariables: string{k:string} expected"; + } + if (message.encryptedVariables != null && message.hasOwnProperty("encryptedVariables")) { + var error = $root.google.cloud.batch.v1.Environment.KMSEnvMap.verify(message.encryptedVariables); if (error) - return "endTime." + error; + return "encryptedVariables." + error; } - if (message.target != null && message.hasOwnProperty("target")) - if (!$util.isString(message.target)) - return "target: string expected"; - if (message.verb != null && message.hasOwnProperty("verb")) - if (!$util.isString(message.verb)) - return "verb: string expected"; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - if (typeof message.requestedCancellation !== "boolean") - return "requestedCancellation: boolean expected"; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - if (!$util.isString(message.apiVersion)) - return "apiVersion: string expected"; return null; }; /** - * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.OperationMetadata} OperationMetadata + * @returns {google.cloud.batch.v1.Environment} Environment */ - OperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.OperationMetadata) + Environment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.Environment) return object; - var message = new $root.google.cloud.batch.v1.OperationMetadata(); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.batch.v1.OperationMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.batch.v1.Environment(); + if (object.variables) { + if (typeof object.variables !== "object") + throw TypeError(".google.cloud.batch.v1.Environment.variables: object expected"); + message.variables = {}; + for (var keys = Object.keys(object.variables), i = 0; i < keys.length; ++i) + message.variables[keys[i]] = String(object.variables[keys[i]]); } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.batch.v1.OperationMetadata.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.secretVariables) { + if (typeof object.secretVariables !== "object") + throw TypeError(".google.cloud.batch.v1.Environment.secretVariables: object expected"); + message.secretVariables = {}; + for (var keys = Object.keys(object.secretVariables), i = 0; i < keys.length; ++i) + message.secretVariables[keys[i]] = String(object.secretVariables[keys[i]]); + } + if (object.encryptedVariables != null) { + if (typeof object.encryptedVariables !== "object") + throw TypeError(".google.cloud.batch.v1.Environment.encryptedVariables: object expected"); + message.encryptedVariables = $root.google.cloud.batch.v1.Environment.KMSEnvMap.fromObject(object.encryptedVariables); } - if (object.target != null) - message.target = String(object.target); - if (object.verb != null) - message.verb = String(object.verb); - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.requestedCancellation != null) - message.requestedCancellation = Boolean(object.requestedCancellation); - if (object.apiVersion != null) - message.apiVersion = String(object.apiVersion); return message; }; /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an Environment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @static - * @param {google.cloud.batch.v1.OperationMetadata} message OperationMetadata + * @param {google.cloud.batch.v1.Environment} message Environment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OperationMetadata.toObject = function toObject(message, options) { + Environment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.createTime = null; - object.endTime = null; - object.target = ""; - object.verb = ""; - object.statusMessage = ""; - object.requestedCancellation = false; - object.apiVersion = ""; + if (options.objects || options.defaults) { + object.variables = {}; + object.secretVariables = {}; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = message.target; - if (message.verb != null && message.hasOwnProperty("verb")) - object.verb = message.verb; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - object.requestedCancellation = message.requestedCancellation; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - object.apiVersion = message.apiVersion; + if (options.defaults) + object.encryptedVariables = null; + var keys2; + if (message.variables && (keys2 = Object.keys(message.variables)).length) { + object.variables = {}; + for (var j = 0; j < keys2.length; ++j) + object.variables[keys2[j]] = message.variables[keys2[j]]; + } + if (message.secretVariables && (keys2 = Object.keys(message.secretVariables)).length) { + object.secretVariables = {}; + for (var j = 0; j < keys2.length; ++j) + object.secretVariables[keys2[j]] = message.secretVariables[keys2[j]]; + } + if (message.encryptedVariables != null && message.hasOwnProperty("encryptedVariables")) + object.encryptedVariables = $root.google.cloud.batch.v1.Environment.KMSEnvMap.toObject(message.encryptedVariables, options); return object; }; /** - * Converts this OperationMetadata to JSON. + * Converts this Environment to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @instance * @returns {Object.} JSON object */ - OperationMetadata.prototype.toJSON = function toJSON() { + Environment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OperationMetadata + * Gets the default type url for Environment * @function getTypeUrl - * @memberof google.cloud.batch.v1.OperationMetadata + * @memberof google.cloud.batch.v1.Environment * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.OperationMetadata"; + return typeUrlPrefix + "/google.cloud.batch.v1.Environment"; }; - return OperationMetadata; + Environment.KMSEnvMap = (function() { + + /** + * Properties of a KMSEnvMap. + * @memberof google.cloud.batch.v1.Environment + * @interface IKMSEnvMap + * @property {string|null} [keyName] KMSEnvMap keyName + * @property {string|null} [cipherText] KMSEnvMap cipherText + */ + + /** + * Constructs a new KMSEnvMap. + * @memberof google.cloud.batch.v1.Environment + * @classdesc Represents a KMSEnvMap. + * @implements IKMSEnvMap + * @constructor + * @param {google.cloud.batch.v1.Environment.IKMSEnvMap=} [properties] Properties to set + */ + function KMSEnvMap(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]]; + } + + /** + * KMSEnvMap keyName. + * @member {string} keyName + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @instance + */ + KMSEnvMap.prototype.keyName = ""; + + /** + * KMSEnvMap cipherText. + * @member {string} cipherText + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @instance + */ + KMSEnvMap.prototype.cipherText = ""; + + /** + * Creates a new KMSEnvMap instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @static + * @param {google.cloud.batch.v1.Environment.IKMSEnvMap=} [properties] Properties to set + * @returns {google.cloud.batch.v1.Environment.KMSEnvMap} KMSEnvMap instance + */ + KMSEnvMap.create = function create(properties) { + return new KMSEnvMap(properties); + }; + + /** + * Encodes the specified KMSEnvMap message. Does not implicitly {@link google.cloud.batch.v1.Environment.KMSEnvMap.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @static + * @param {google.cloud.batch.v1.Environment.IKMSEnvMap} message KMSEnvMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KMSEnvMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyName != null && Object.hasOwnProperty.call(message, "keyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyName); + if (message.cipherText != null && Object.hasOwnProperty.call(message, "cipherText")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cipherText); + return writer; + }; + + /** + * Encodes the specified KMSEnvMap message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Environment.KMSEnvMap.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @static + * @param {google.cloud.batch.v1.Environment.IKMSEnvMap} message KMSEnvMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KMSEnvMap.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a KMSEnvMap message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1.Environment.KMSEnvMap} KMSEnvMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KMSEnvMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Environment.KMSEnvMap(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyName = reader.string(); + break; + } + case 2: { + message.cipherText = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a KMSEnvMap message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1.Environment.KMSEnvMap} KMSEnvMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KMSEnvMap.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KMSEnvMap message. + * @function verify + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KMSEnvMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyName != null && message.hasOwnProperty("keyName")) + if (!$util.isString(message.keyName)) + return "keyName: string expected"; + if (message.cipherText != null && message.hasOwnProperty("cipherText")) + if (!$util.isString(message.cipherText)) + return "cipherText: string expected"; + return null; + }; + + /** + * Creates a KMSEnvMap message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1.Environment.KMSEnvMap} KMSEnvMap + */ + KMSEnvMap.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.Environment.KMSEnvMap) + return object; + var message = new $root.google.cloud.batch.v1.Environment.KMSEnvMap(); + if (object.keyName != null) + message.keyName = String(object.keyName); + if (object.cipherText != null) + message.cipherText = String(object.cipherText); + return message; + }; + + /** + * Creates a plain object from a KMSEnvMap message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @static + * @param {google.cloud.batch.v1.Environment.KMSEnvMap} message KMSEnvMap + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KMSEnvMap.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyName = ""; + object.cipherText = ""; + } + if (message.keyName != null && message.hasOwnProperty("keyName")) + object.keyName = message.keyName; + if (message.cipherText != null && message.hasOwnProperty("cipherText")) + object.cipherText = message.cipherText; + return object; + }; + + /** + * Converts this KMSEnvMap to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @instance + * @returns {Object.} JSON object + */ + KMSEnvMap.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KMSEnvMap + * @function getTypeUrl + * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KMSEnvMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1.Environment.KMSEnvMap"; + }; + + return KMSEnvMap; + })(); + + return Environment; })(); - v1.Job = (function() { + v1.Volume = (function() { /** - * Properties of a Job. + * Properties of a Volume. * @memberof google.cloud.batch.v1 - * @interface IJob - * @property {string|null} [name] Job name - * @property {string|null} [uid] Job uid - * @property {number|Long|null} [priority] Job priority - * @property {Array.|null} [taskGroups] Job taskGroups - * @property {google.cloud.batch.v1.IAllocationPolicy|null} [allocationPolicy] Job allocationPolicy - * @property {Object.|null} [labels] Job labels - * @property {google.cloud.batch.v1.IJobStatus|null} [status] Job status - * @property {google.protobuf.ITimestamp|null} [createTime] Job createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Job updateTime - * @property {google.cloud.batch.v1.ILogsPolicy|null} [logsPolicy] Job logsPolicy - * @property {Array.|null} [notifications] Job notifications + * @interface IVolume + * @property {google.cloud.batch.v1.INFS|null} [nfs] Volume nfs + * @property {google.cloud.batch.v1.IGCS|null} [gcs] Volume gcs + * @property {string|null} [deviceName] Volume deviceName + * @property {string|null} [mountPath] Volume mountPath + * @property {Array.|null} [mountOptions] Volume mountOptions */ /** - * Constructs a new Job. + * Constructs a new Volume. * @memberof google.cloud.batch.v1 - * @classdesc Represents a Job. - * @implements IJob + * @classdesc Represents a Volume. + * @implements IVolume * @constructor - * @param {google.cloud.batch.v1.IJob=} [properties] Properties to set + * @param {google.cloud.batch.v1.IVolume=} [properties] Properties to set */ - function Job(properties) { - this.taskGroups = []; - this.labels = {}; - this.notifications = []; + function Volume(properties) { + this.mountOptions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13050,241 +12627,148 @@ } /** - * Job name. - * @member {string} name - * @memberof google.cloud.batch.v1.Job + * Volume nfs. + * @member {google.cloud.batch.v1.INFS|null|undefined} nfs + * @memberof google.cloud.batch.v1.Volume * @instance */ - Job.prototype.name = ""; + Volume.prototype.nfs = null; /** - * Job uid. - * @member {string} uid - * @memberof google.cloud.batch.v1.Job + * Volume gcs. + * @member {google.cloud.batch.v1.IGCS|null|undefined} gcs + * @memberof google.cloud.batch.v1.Volume * @instance */ - Job.prototype.uid = ""; + Volume.prototype.gcs = null; /** - * Job priority. - * @member {number|Long} priority - * @memberof google.cloud.batch.v1.Job + * Volume deviceName. + * @member {string|null|undefined} deviceName + * @memberof google.cloud.batch.v1.Volume * @instance */ - Job.prototype.priority = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Volume.prototype.deviceName = null; /** - * Job taskGroups. - * @member {Array.} taskGroups - * @memberof google.cloud.batch.v1.Job + * Volume mountPath. + * @member {string} mountPath + * @memberof google.cloud.batch.v1.Volume * @instance */ - Job.prototype.taskGroups = $util.emptyArray; + Volume.prototype.mountPath = ""; /** - * Job allocationPolicy. - * @member {google.cloud.batch.v1.IAllocationPolicy|null|undefined} allocationPolicy - * @memberof google.cloud.batch.v1.Job + * Volume mountOptions. + * @member {Array.} mountOptions + * @memberof google.cloud.batch.v1.Volume * @instance */ - Job.prototype.allocationPolicy = null; + Volume.prototype.mountOptions = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Job labels. - * @member {Object.} labels - * @memberof google.cloud.batch.v1.Job + * Volume source. + * @member {"nfs"|"gcs"|"deviceName"|undefined} source + * @memberof google.cloud.batch.v1.Volume * @instance */ - Job.prototype.labels = $util.emptyObject; - - /** - * Job status. - * @member {google.cloud.batch.v1.IJobStatus|null|undefined} status - * @memberof google.cloud.batch.v1.Job - * @instance - */ - Job.prototype.status = null; - - /** - * Job createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.batch.v1.Job - * @instance - */ - Job.prototype.createTime = null; - - /** - * Job updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.batch.v1.Job - * @instance - */ - Job.prototype.updateTime = null; - - /** - * Job logsPolicy. - * @member {google.cloud.batch.v1.ILogsPolicy|null|undefined} logsPolicy - * @memberof google.cloud.batch.v1.Job - * @instance - */ - Job.prototype.logsPolicy = null; - - /** - * Job notifications. - * @member {Array.} notifications - * @memberof google.cloud.batch.v1.Job - * @instance - */ - Job.prototype.notifications = $util.emptyArray; + Object.defineProperty(Volume.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["nfs", "gcs", "deviceName"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Job instance using the specified properties. + * Creates a new Volume instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @static - * @param {google.cloud.batch.v1.IJob=} [properties] Properties to set - * @returns {google.cloud.batch.v1.Job} Job instance + * @param {google.cloud.batch.v1.IVolume=} [properties] Properties to set + * @returns {google.cloud.batch.v1.Volume} Volume instance */ - Job.create = function create(properties) { - return new Job(properties); + Volume.create = function create(properties) { + return new Volume(properties); }; /** - * Encodes the specified Job message. Does not implicitly {@link google.cloud.batch.v1.Job.verify|verify} messages. + * Encodes the specified Volume message. Does not implicitly {@link google.cloud.batch.v1.Volume.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @static - * @param {google.cloud.batch.v1.IJob} message Job message or plain object to encode + * @param {google.cloud.batch.v1.IVolume} message Volume message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Job.encode = function encode(message, writer) { + Volume.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uid); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.priority); - if (message.taskGroups != null && message.taskGroups.length) - for (var i = 0; i < message.taskGroups.length; ++i) - $root.google.cloud.batch.v1.TaskGroup.encode(message.taskGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.allocationPolicy != null && Object.hasOwnProperty.call(message, "allocationPolicy")) - $root.google.cloud.batch.v1.AllocationPolicy.encode(message.allocationPolicy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.cloud.batch.v1.JobStatus.encode(message.status, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.logsPolicy != null && Object.hasOwnProperty.call(message, "logsPolicy")) - $root.google.cloud.batch.v1.LogsPolicy.encode(message.logsPolicy, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.notifications != null && message.notifications.length) - for (var i = 0; i < message.notifications.length; ++i) - $root.google.cloud.batch.v1.JobNotification.encode(message.notifications[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.nfs != null && Object.hasOwnProperty.call(message, "nfs")) + $root.google.cloud.batch.v1.NFS.encode(message.nfs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) + $root.google.cloud.batch.v1.GCS.encode(message.gcs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mountPath != null && Object.hasOwnProperty.call(message, "mountPath")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.mountPath); + if (message.mountOptions != null && message.mountOptions.length) + for (var i = 0; i < message.mountOptions.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.mountOptions[i]); + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.deviceName); return writer; }; /** - * Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Job.verify|verify} messages. + * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Volume.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @static - * @param {google.cloud.batch.v1.IJob} message Job message or plain object to encode + * @param {google.cloud.batch.v1.IVolume} message Volume message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Job.encodeDelimited = function encodeDelimited(message, writer) { + Volume.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Job message from the specified reader or buffer. + * Decodes a Volume message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.Job} Job + * @returns {google.cloud.batch.v1.Volume} Volume * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Job.decode = function decode(reader, length) { + Volume.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Job(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Volume(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.uid = reader.string(); + message.nfs = $root.google.cloud.batch.v1.NFS.decode(reader, reader.uint32()); break; } case 3: { - message.priority = reader.int64(); - break; - } - case 4: { - if (!(message.taskGroups && message.taskGroups.length)) - message.taskGroups = []; - message.taskGroups.push($root.google.cloud.batch.v1.TaskGroup.decode(reader, reader.uint32())); - break; - } - case 7: { - message.allocationPolicy = $root.google.cloud.batch.v1.AllocationPolicy.decode(reader, reader.uint32()); - break; - } - case 8: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 9: { - message.status = $root.google.cloud.batch.v1.JobStatus.decode(reader, reader.uint32()); - break; - } - case 11: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.gcs = $root.google.cloud.batch.v1.GCS.decode(reader, reader.uint32()); break; } - case 12: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 6: { + message.deviceName = reader.string(); break; } - case 13: { - message.logsPolicy = $root.google.cloud.batch.v1.LogsPolicy.decode(reader, reader.uint32()); + case 4: { + message.mountPath = reader.string(); break; } - case 14: { - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.google.cloud.batch.v1.JobNotification.decode(reader, reader.uint32())); + case 5: { + if (!(message.mountOptions && message.mountOptions.length)) + message.mountOptions = []; + message.mountOptions.push(reader.string()); break; } default: @@ -13296,294 +12780,197 @@ }; /** - * Decodes a Job message from the specified reader or buffer, length delimited. + * Decodes a Volume message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.Job} Job + * @returns {google.cloud.batch.v1.Volume} Volume * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Job.decodeDelimited = function decodeDelimited(reader) { + Volume.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Job message. + * Verifies a Volume message. * @function verify - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Job.verify = function verify(message) { + Volume.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isInteger(message.priority) && !(message.priority && $util.isInteger(message.priority.low) && $util.isInteger(message.priority.high))) - return "priority: integer|Long expected"; - if (message.taskGroups != null && message.hasOwnProperty("taskGroups")) { - if (!Array.isArray(message.taskGroups)) - return "taskGroups: array expected"; - for (var i = 0; i < message.taskGroups.length; ++i) { - var error = $root.google.cloud.batch.v1.TaskGroup.verify(message.taskGroups[i]); + var properties = {}; + if (message.nfs != null && message.hasOwnProperty("nfs")) { + properties.source = 1; + { + var error = $root.google.cloud.batch.v1.NFS.verify(message.nfs); if (error) - return "taskGroups." + error; + return "nfs." + error; } } - if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) { - var error = $root.google.cloud.batch.v1.AllocationPolicy.verify(message.allocationPolicy); - if (error) - return "allocationPolicy." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.cloud.batch.v1.JobStatus.verify(message.status); - if (error) - return "status." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.logsPolicy != null && message.hasOwnProperty("logsPolicy")) { - var error = $root.google.cloud.batch.v1.LogsPolicy.verify(message.logsPolicy); - if (error) - return "logsPolicy." + error; - } - if (message.notifications != null && message.hasOwnProperty("notifications")) { - if (!Array.isArray(message.notifications)) - return "notifications: array expected"; - for (var i = 0; i < message.notifications.length; ++i) { - var error = $root.google.cloud.batch.v1.JobNotification.verify(message.notifications[i]); + if (message.gcs != null && message.hasOwnProperty("gcs")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.batch.v1.GCS.verify(message.gcs); if (error) - return "notifications." + error; + return "gcs." + error; } } + if (message.deviceName != null && message.hasOwnProperty("deviceName")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!$util.isString(message.deviceName)) + return "deviceName: string expected"; + } + if (message.mountPath != null && message.hasOwnProperty("mountPath")) + if (!$util.isString(message.mountPath)) + return "mountPath: string expected"; + if (message.mountOptions != null && message.hasOwnProperty("mountOptions")) { + if (!Array.isArray(message.mountOptions)) + return "mountOptions: array expected"; + for (var i = 0; i < message.mountOptions.length; ++i) + if (!$util.isString(message.mountOptions[i])) + return "mountOptions: string[] expected"; + } return null; }; /** - * Creates a Job message from a plain object. Also converts values to their respective internal types. + * Creates a Volume message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.Job} Job + * @returns {google.cloud.batch.v1.Volume} Volume */ - Job.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.Job) + Volume.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.Volume) return object; - var message = new $root.google.cloud.batch.v1.Job(); - if (object.name != null) - message.name = String(object.name); - if (object.uid != null) - message.uid = String(object.uid); - if (object.priority != null) - if ($util.Long) - (message.priority = $util.Long.fromValue(object.priority)).unsigned = false; - else if (typeof object.priority === "string") - message.priority = parseInt(object.priority, 10); - else if (typeof object.priority === "number") - message.priority = object.priority; - else if (typeof object.priority === "object") - message.priority = new $util.LongBits(object.priority.low >>> 0, object.priority.high >>> 0).toNumber(); - if (object.taskGroups) { - if (!Array.isArray(object.taskGroups)) - throw TypeError(".google.cloud.batch.v1.Job.taskGroups: array expected"); - message.taskGroups = []; - for (var i = 0; i < object.taskGroups.length; ++i) { - if (typeof object.taskGroups[i] !== "object") - throw TypeError(".google.cloud.batch.v1.Job.taskGroups: object expected"); - message.taskGroups[i] = $root.google.cloud.batch.v1.TaskGroup.fromObject(object.taskGroups[i]); - } - } - if (object.allocationPolicy != null) { - if (typeof object.allocationPolicy !== "object") - throw TypeError(".google.cloud.batch.v1.Job.allocationPolicy: object expected"); - message.allocationPolicy = $root.google.cloud.batch.v1.AllocationPolicy.fromObject(object.allocationPolicy); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.batch.v1.Job.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.batch.v1.Job.status: object expected"); - message.status = $root.google.cloud.batch.v1.JobStatus.fromObject(object.status); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.batch.v1.Job.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.batch.v1.Job.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.cloud.batch.v1.Volume(); + if (object.nfs != null) { + if (typeof object.nfs !== "object") + throw TypeError(".google.cloud.batch.v1.Volume.nfs: object expected"); + message.nfs = $root.google.cloud.batch.v1.NFS.fromObject(object.nfs); } - if (object.logsPolicy != null) { - if (typeof object.logsPolicy !== "object") - throw TypeError(".google.cloud.batch.v1.Job.logsPolicy: object expected"); - message.logsPolicy = $root.google.cloud.batch.v1.LogsPolicy.fromObject(object.logsPolicy); + if (object.gcs != null) { + if (typeof object.gcs !== "object") + throw TypeError(".google.cloud.batch.v1.Volume.gcs: object expected"); + message.gcs = $root.google.cloud.batch.v1.GCS.fromObject(object.gcs); } - if (object.notifications) { - if (!Array.isArray(object.notifications)) - throw TypeError(".google.cloud.batch.v1.Job.notifications: array expected"); - message.notifications = []; - for (var i = 0; i < object.notifications.length; ++i) { - if (typeof object.notifications[i] !== "object") - throw TypeError(".google.cloud.batch.v1.Job.notifications: object expected"); - message.notifications[i] = $root.google.cloud.batch.v1.JobNotification.fromObject(object.notifications[i]); - } + if (object.deviceName != null) + message.deviceName = String(object.deviceName); + if (object.mountPath != null) + message.mountPath = String(object.mountPath); + if (object.mountOptions) { + if (!Array.isArray(object.mountOptions)) + throw TypeError(".google.cloud.batch.v1.Volume.mountOptions: array expected"); + message.mountOptions = []; + for (var i = 0; i < object.mountOptions.length; ++i) + message.mountOptions[i] = String(object.mountOptions[i]); } return message; }; /** - * Creates a plain object from a Job message. Also converts values to other types if specified. + * Creates a plain object from a Volume message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @static - * @param {google.cloud.batch.v1.Job} message Job + * @param {google.cloud.batch.v1.Volume} message Volume * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Job.toObject = function toObject(message, options) { + Volume.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.taskGroups = []; - object.notifications = []; - } - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.uid = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.priority = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.priority = options.longs === String ? "0" : 0; - object.allocationPolicy = null; - object.status = null; - object.createTime = null; - object.updateTime = null; - object.logsPolicy = null; + if (options.arrays || options.defaults) + object.mountOptions = []; + if (options.defaults) + object.mountPath = ""; + if (message.nfs != null && message.hasOwnProperty("nfs")) { + object.nfs = $root.google.cloud.batch.v1.NFS.toObject(message.nfs, options); + if (options.oneofs) + object.source = "nfs"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.priority != null && message.hasOwnProperty("priority")) - if (typeof message.priority === "number") - object.priority = options.longs === String ? String(message.priority) : message.priority; - else - object.priority = options.longs === String ? $util.Long.prototype.toString.call(message.priority) : options.longs === Number ? new $util.LongBits(message.priority.low >>> 0, message.priority.high >>> 0).toNumber() : message.priority; - if (message.taskGroups && message.taskGroups.length) { - object.taskGroups = []; - for (var j = 0; j < message.taskGroups.length; ++j) - object.taskGroups[j] = $root.google.cloud.batch.v1.TaskGroup.toObject(message.taskGroups[j], options); + if (message.gcs != null && message.hasOwnProperty("gcs")) { + object.gcs = $root.google.cloud.batch.v1.GCS.toObject(message.gcs, options); + if (options.oneofs) + object.source = "gcs"; } - if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) - object.allocationPolicy = $root.google.cloud.batch.v1.AllocationPolicy.toObject(message.allocationPolicy, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + if (message.mountPath != null && message.hasOwnProperty("mountPath")) + object.mountPath = message.mountPath; + if (message.mountOptions && message.mountOptions.length) { + object.mountOptions = []; + for (var j = 0; j < message.mountOptions.length; ++j) + object.mountOptions[j] = message.mountOptions[j]; } - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.cloud.batch.v1.JobStatus.toObject(message.status, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.logsPolicy != null && message.hasOwnProperty("logsPolicy")) - object.logsPolicy = $root.google.cloud.batch.v1.LogsPolicy.toObject(message.logsPolicy, options); - if (message.notifications && message.notifications.length) { - object.notifications = []; - for (var j = 0; j < message.notifications.length; ++j) - object.notifications[j] = $root.google.cloud.batch.v1.JobNotification.toObject(message.notifications[j], options); + if (message.deviceName != null && message.hasOwnProperty("deviceName")) { + object.deviceName = message.deviceName; + if (options.oneofs) + object.source = "deviceName"; } return object; }; /** - * Converts this Job to JSON. + * Converts this Volume to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @instance * @returns {Object.} JSON object */ - Job.prototype.toJSON = function toJSON() { + Volume.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Job + * Gets the default type url for Volume * @function getTypeUrl - * @memberof google.cloud.batch.v1.Job + * @memberof google.cloud.batch.v1.Volume * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Job.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Volume.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.Job"; + return typeUrlPrefix + "/google.cloud.batch.v1.Volume"; }; - return Job; + return Volume; })(); - v1.LogsPolicy = (function() { + v1.NFS = (function() { /** - * Properties of a LogsPolicy. + * Properties of a NFS. * @memberof google.cloud.batch.v1 - * @interface ILogsPolicy - * @property {google.cloud.batch.v1.LogsPolicy.Destination|null} [destination] LogsPolicy destination - * @property {string|null} [logsPath] LogsPolicy logsPath + * @interface INFS + * @property {string|null} [server] NFS server + * @property {string|null} [remotePath] NFS remotePath */ /** - * Constructs a new LogsPolicy. + * Constructs a new NFS. * @memberof google.cloud.batch.v1 - * @classdesc Represents a LogsPolicy. - * @implements ILogsPolicy + * @classdesc Represents a NFS. + * @implements INFS * @constructor - * @param {google.cloud.batch.v1.ILogsPolicy=} [properties] Properties to set + * @param {google.cloud.batch.v1.INFS=} [properties] Properties to set */ - function LogsPolicy(properties) { + function NFS(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13591,89 +12978,89 @@ } /** - * LogsPolicy destination. - * @member {google.cloud.batch.v1.LogsPolicy.Destination} destination - * @memberof google.cloud.batch.v1.LogsPolicy + * NFS server. + * @member {string} server + * @memberof google.cloud.batch.v1.NFS * @instance */ - LogsPolicy.prototype.destination = 0; + NFS.prototype.server = ""; /** - * LogsPolicy logsPath. - * @member {string} logsPath - * @memberof google.cloud.batch.v1.LogsPolicy + * NFS remotePath. + * @member {string} remotePath + * @memberof google.cloud.batch.v1.NFS * @instance */ - LogsPolicy.prototype.logsPath = ""; + NFS.prototype.remotePath = ""; /** - * Creates a new LogsPolicy instance using the specified properties. + * Creates a new NFS instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @static - * @param {google.cloud.batch.v1.ILogsPolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1.LogsPolicy} LogsPolicy instance + * @param {google.cloud.batch.v1.INFS=} [properties] Properties to set + * @returns {google.cloud.batch.v1.NFS} NFS instance */ - LogsPolicy.create = function create(properties) { - return new LogsPolicy(properties); + NFS.create = function create(properties) { + return new NFS(properties); }; /** - * Encodes the specified LogsPolicy message. Does not implicitly {@link google.cloud.batch.v1.LogsPolicy.verify|verify} messages. + * Encodes the specified NFS message. Does not implicitly {@link google.cloud.batch.v1.NFS.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @static - * @param {google.cloud.batch.v1.ILogsPolicy} message LogsPolicy message or plain object to encode + * @param {google.cloud.batch.v1.INFS} message NFS message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LogsPolicy.encode = function encode(message, writer) { + NFS.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.destination); - if (message.logsPath != null && Object.hasOwnProperty.call(message, "logsPath")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.logsPath); + if (message.server != null && Object.hasOwnProperty.call(message, "server")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.server); + if (message.remotePath != null && Object.hasOwnProperty.call(message, "remotePath")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.remotePath); return writer; }; /** - * Encodes the specified LogsPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LogsPolicy.verify|verify} messages. + * Encodes the specified NFS message, length delimited. Does not implicitly {@link google.cloud.batch.v1.NFS.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @static - * @param {google.cloud.batch.v1.ILogsPolicy} message LogsPolicy message or plain object to encode + * @param {google.cloud.batch.v1.INFS} message NFS message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LogsPolicy.encodeDelimited = function encodeDelimited(message, writer) { + NFS.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LogsPolicy message from the specified reader or buffer. + * Decodes a NFS message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.LogsPolicy} LogsPolicy + * @returns {google.cloud.batch.v1.NFS} NFS * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LogsPolicy.decode = function decode(reader, length) { + NFS.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.LogsPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.NFS(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.destination = reader.int32(); + message.server = reader.string(); break; } case 2: { - message.logsPath = reader.string(); + message.remotePath = reader.string(); break; } default: @@ -13685,176 +13072,131 @@ }; /** - * Decodes a LogsPolicy message from the specified reader or buffer, length delimited. + * Decodes a NFS message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.LogsPolicy} LogsPolicy + * @returns {google.cloud.batch.v1.NFS} NFS * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LogsPolicy.decodeDelimited = function decodeDelimited(reader) { + NFS.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LogsPolicy message. + * Verifies a NFS message. * @function verify - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LogsPolicy.verify = function verify(message) { + NFS.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.destination != null && message.hasOwnProperty("destination")) - switch (message.destination) { - default: - return "destination: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.logsPath != null && message.hasOwnProperty("logsPath")) - if (!$util.isString(message.logsPath)) - return "logsPath: string expected"; + if (message.server != null && message.hasOwnProperty("server")) + if (!$util.isString(message.server)) + return "server: string expected"; + if (message.remotePath != null && message.hasOwnProperty("remotePath")) + if (!$util.isString(message.remotePath)) + return "remotePath: string expected"; return null; }; /** - * Creates a LogsPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a NFS message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.LogsPolicy} LogsPolicy + * @returns {google.cloud.batch.v1.NFS} NFS */ - LogsPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.LogsPolicy) + NFS.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.NFS) return object; - var message = new $root.google.cloud.batch.v1.LogsPolicy(); - switch (object.destination) { - default: - if (typeof object.destination === "number") { - message.destination = object.destination; - break; - } - break; - case "DESTINATION_UNSPECIFIED": - case 0: - message.destination = 0; - break; - case "CLOUD_LOGGING": - case 1: - message.destination = 1; - break; - case "PATH": - case 2: - message.destination = 2; - break; - } - if (object.logsPath != null) - message.logsPath = String(object.logsPath); + var message = new $root.google.cloud.batch.v1.NFS(); + if (object.server != null) + message.server = String(object.server); + if (object.remotePath != null) + message.remotePath = String(object.remotePath); return message; }; /** - * Creates a plain object from a LogsPolicy message. Also converts values to other types if specified. + * Creates a plain object from a NFS message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @static - * @param {google.cloud.batch.v1.LogsPolicy} message LogsPolicy + * @param {google.cloud.batch.v1.NFS} message NFS * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LogsPolicy.toObject = function toObject(message, options) { + NFS.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.destination = options.enums === String ? "DESTINATION_UNSPECIFIED" : 0; - object.logsPath = ""; + object.server = ""; + object.remotePath = ""; } - if (message.destination != null && message.hasOwnProperty("destination")) - object.destination = options.enums === String ? $root.google.cloud.batch.v1.LogsPolicy.Destination[message.destination] === undefined ? message.destination : $root.google.cloud.batch.v1.LogsPolicy.Destination[message.destination] : message.destination; - if (message.logsPath != null && message.hasOwnProperty("logsPath")) - object.logsPath = message.logsPath; + if (message.server != null && message.hasOwnProperty("server")) + object.server = message.server; + if (message.remotePath != null && message.hasOwnProperty("remotePath")) + object.remotePath = message.remotePath; return object; }; /** - * Converts this LogsPolicy to JSON. + * Converts this NFS to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @instance * @returns {Object.} JSON object */ - LogsPolicy.prototype.toJSON = function toJSON() { + NFS.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LogsPolicy + * Gets the default type url for NFS * @function getTypeUrl - * @memberof google.cloud.batch.v1.LogsPolicy + * @memberof google.cloud.batch.v1.NFS * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LogsPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NFS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.LogsPolicy"; + return typeUrlPrefix + "/google.cloud.batch.v1.NFS"; }; - /** - * Destination enum. - * @name google.cloud.batch.v1.LogsPolicy.Destination - * @enum {number} - * @property {number} DESTINATION_UNSPECIFIED=0 DESTINATION_UNSPECIFIED value - * @property {number} CLOUD_LOGGING=1 CLOUD_LOGGING value - * @property {number} PATH=2 PATH value - */ - LogsPolicy.Destination = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DESTINATION_UNSPECIFIED"] = 0; - values[valuesById[1] = "CLOUD_LOGGING"] = 1; - values[valuesById[2] = "PATH"] = 2; - return values; - })(); - - return LogsPolicy; + return NFS; })(); - v1.JobStatus = (function() { + v1.GCS = (function() { /** - * Properties of a JobStatus. + * Properties of a GCS. * @memberof google.cloud.batch.v1 - * @interface IJobStatus - * @property {google.cloud.batch.v1.JobStatus.State|null} [state] JobStatus state - * @property {Array.|null} [statusEvents] JobStatus statusEvents - * @property {Object.|null} [taskGroups] JobStatus taskGroups - * @property {google.protobuf.IDuration|null} [runDuration] JobStatus runDuration + * @interface IGCS + * @property {string|null} [remotePath] GCS remotePath */ /** - * Constructs a new JobStatus. + * Constructs a new GCS. * @memberof google.cloud.batch.v1 - * @classdesc Represents a JobStatus. - * @implements IJobStatus + * @classdesc Represents a GCS. + * @implements IGCS * @constructor - * @param {google.cloud.batch.v1.IJobStatus=} [properties] Properties to set + * @param {google.cloud.batch.v1.IGCS=} [properties] Properties to set */ - function JobStatus(properties) { - this.statusEvents = []; - this.taskGroups = {}; + function GCS(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13862,142 +13204,75 @@ } /** - * JobStatus state. - * @member {google.cloud.batch.v1.JobStatus.State} state - * @memberof google.cloud.batch.v1.JobStatus - * @instance - */ - JobStatus.prototype.state = 0; - - /** - * JobStatus statusEvents. - * @member {Array.} statusEvents - * @memberof google.cloud.batch.v1.JobStatus - * @instance - */ - JobStatus.prototype.statusEvents = $util.emptyArray; - - /** - * JobStatus taskGroups. - * @member {Object.} taskGroups - * @memberof google.cloud.batch.v1.JobStatus - * @instance - */ - JobStatus.prototype.taskGroups = $util.emptyObject; - - /** - * JobStatus runDuration. - * @member {google.protobuf.IDuration|null|undefined} runDuration - * @memberof google.cloud.batch.v1.JobStatus + * GCS remotePath. + * @member {string} remotePath + * @memberof google.cloud.batch.v1.GCS * @instance */ - JobStatus.prototype.runDuration = null; + GCS.prototype.remotePath = ""; /** - * Creates a new JobStatus instance using the specified properties. + * Creates a new GCS instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @static - * @param {google.cloud.batch.v1.IJobStatus=} [properties] Properties to set - * @returns {google.cloud.batch.v1.JobStatus} JobStatus instance + * @param {google.cloud.batch.v1.IGCS=} [properties] Properties to set + * @returns {google.cloud.batch.v1.GCS} GCS instance */ - JobStatus.create = function create(properties) { - return new JobStatus(properties); + GCS.create = function create(properties) { + return new GCS(properties); }; /** - * Encodes the specified JobStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.verify|verify} messages. + * Encodes the specified GCS message. Does not implicitly {@link google.cloud.batch.v1.GCS.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @static - * @param {google.cloud.batch.v1.IJobStatus} message JobStatus message or plain object to encode + * @param {google.cloud.batch.v1.IGCS} message GCS message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JobStatus.encode = function encode(message, writer) { + GCS.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.statusEvents != null && message.statusEvents.length) - for (var i = 0; i < message.statusEvents.length; ++i) - $root.google.cloud.batch.v1.StatusEvent.encode(message.statusEvents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.taskGroups != null && Object.hasOwnProperty.call(message, "taskGroups")) - for (var keys = Object.keys(message.taskGroups), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.encode(message.taskGroups[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.runDuration != null && Object.hasOwnProperty.call(message, "runDuration")) - $root.google.protobuf.Duration.encode(message.runDuration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.remotePath != null && Object.hasOwnProperty.call(message, "remotePath")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.remotePath); return writer; }; /** - * Encodes the specified JobStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.verify|verify} messages. + * Encodes the specified GCS message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GCS.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @static - * @param {google.cloud.batch.v1.IJobStatus} message JobStatus message or plain object to encode + * @param {google.cloud.batch.v1.IGCS} message GCS message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JobStatus.encodeDelimited = function encodeDelimited(message, writer) { + GCS.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a JobStatus message from the specified reader or buffer. + * Decodes a GCS message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.JobStatus} JobStatus + * @returns {google.cloud.batch.v1.GCS} GCS * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobStatus.decode = function decode(reader, length) { + GCS.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobStatus(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.GCS(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.state = reader.int32(); - break; - } - case 2: { - if (!(message.statusEvents && message.statusEvents.length)) - message.statusEvents = []; - message.statusEvents.push($root.google.cloud.batch.v1.StatusEvent.decode(reader, reader.uint32())); - break; - } - case 4: { - if (message.taskGroups === $util.emptyObject) - message.taskGroups = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.taskGroups[key] = value; - break; - } - case 5: { - message.runDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.remotePath = reader.string(); break; } default: @@ -14009,845 +13284,370 @@ }; /** - * Decodes a JobStatus message from the specified reader or buffer, length delimited. + * Decodes a GCS message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.JobStatus} JobStatus + * @returns {google.cloud.batch.v1.GCS} GCS * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobStatus.decodeDelimited = function decodeDelimited(reader) { + GCS.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a JobStatus message. + * Verifies a GCS message. * @function verify - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - JobStatus.verify = function verify(message) { + GCS.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.statusEvents != null && message.hasOwnProperty("statusEvents")) { - if (!Array.isArray(message.statusEvents)) - return "statusEvents: array expected"; - for (var i = 0; i < message.statusEvents.length; ++i) { - var error = $root.google.cloud.batch.v1.StatusEvent.verify(message.statusEvents[i]); - if (error) - return "statusEvents." + error; - } - } - if (message.taskGroups != null && message.hasOwnProperty("taskGroups")) { - if (!$util.isObject(message.taskGroups)) - return "taskGroups: object expected"; - var key = Object.keys(message.taskGroups); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify(message.taskGroups[key[i]]); - if (error) - return "taskGroups." + error; - } - } - if (message.runDuration != null && message.hasOwnProperty("runDuration")) { - var error = $root.google.protobuf.Duration.verify(message.runDuration); - if (error) - return "runDuration." + error; - } + if (message.remotePath != null && message.hasOwnProperty("remotePath")) + if (!$util.isString(message.remotePath)) + return "remotePath: string expected"; return null; }; /** - * Creates a JobStatus message from a plain object. Also converts values to their respective internal types. + * Creates a GCS message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.JobStatus} JobStatus + * @returns {google.cloud.batch.v1.GCS} GCS */ - JobStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.JobStatus) + GCS.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1.GCS) return object; - var message = new $root.google.cloud.batch.v1.JobStatus(); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "QUEUED": - case 1: - message.state = 1; - break; - case "SCHEDULED": - case 2: - message.state = 2; - break; - case "RUNNING": - case 3: - message.state = 3; - break; - case "SUCCEEDED": - case 4: - message.state = 4; - break; - case "FAILED": - case 5: - message.state = 5; - break; - case "DELETION_IN_PROGRESS": - case 6: - message.state = 6; - break; - } - if (object.statusEvents) { - if (!Array.isArray(object.statusEvents)) - throw TypeError(".google.cloud.batch.v1.JobStatus.statusEvents: array expected"); - message.statusEvents = []; - for (var i = 0; i < object.statusEvents.length; ++i) { - if (typeof object.statusEvents[i] !== "object") - throw TypeError(".google.cloud.batch.v1.JobStatus.statusEvents: object expected"); - message.statusEvents[i] = $root.google.cloud.batch.v1.StatusEvent.fromObject(object.statusEvents[i]); - } - } - if (object.taskGroups) { - if (typeof object.taskGroups !== "object") - throw TypeError(".google.cloud.batch.v1.JobStatus.taskGroups: object expected"); - message.taskGroups = {}; - for (var keys = Object.keys(object.taskGroups), i = 0; i < keys.length; ++i) { - if (typeof object.taskGroups[keys[i]] !== "object") - throw TypeError(".google.cloud.batch.v1.JobStatus.taskGroups: object expected"); - message.taskGroups[keys[i]] = $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.fromObject(object.taskGroups[keys[i]]); - } - } - if (object.runDuration != null) { - if (typeof object.runDuration !== "object") - throw TypeError(".google.cloud.batch.v1.JobStatus.runDuration: object expected"); - message.runDuration = $root.google.protobuf.Duration.fromObject(object.runDuration); - } + var message = new $root.google.cloud.batch.v1.GCS(); + if (object.remotePath != null) + message.remotePath = String(object.remotePath); return message; }; /** - * Creates a plain object from a JobStatus message. Also converts values to other types if specified. + * Creates a plain object from a GCS message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @static - * @param {google.cloud.batch.v1.JobStatus} message JobStatus + * @param {google.cloud.batch.v1.GCS} message GCS * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - JobStatus.toObject = function toObject(message, options) { + GCS.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.statusEvents = []; - if (options.objects || options.defaults) - object.taskGroups = {}; - if (options.defaults) { - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.runDuration = null; - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.batch.v1.JobStatus.State[message.state] === undefined ? message.state : $root.google.cloud.batch.v1.JobStatus.State[message.state] : message.state; - if (message.statusEvents && message.statusEvents.length) { - object.statusEvents = []; - for (var j = 0; j < message.statusEvents.length; ++j) - object.statusEvents[j] = $root.google.cloud.batch.v1.StatusEvent.toObject(message.statusEvents[j], options); - } - var keys2; - if (message.taskGroups && (keys2 = Object.keys(message.taskGroups)).length) { - object.taskGroups = {}; - for (var j = 0; j < keys2.length; ++j) - object.taskGroups[keys2[j]] = $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus.toObject(message.taskGroups[keys2[j]], options); - } - if (message.runDuration != null && message.hasOwnProperty("runDuration")) - object.runDuration = $root.google.protobuf.Duration.toObject(message.runDuration, options); + if (options.defaults) + object.remotePath = ""; + if (message.remotePath != null && message.hasOwnProperty("remotePath")) + object.remotePath = message.remotePath; return object; }; /** - * Converts this JobStatus to JSON. + * Converts this GCS to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @instance * @returns {Object.} JSON object */ - JobStatus.prototype.toJSON = function toJSON() { + GCS.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for JobStatus + * Gets the default type url for GCS * @function getTypeUrl - * @memberof google.cloud.batch.v1.JobStatus + * @memberof google.cloud.batch.v1.GCS * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - JobStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GCS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.JobStatus"; + return typeUrlPrefix + "/google.cloud.batch.v1.GCS"; }; - JobStatus.InstanceStatus = (function() { + return GCS; + })(); - /** - * Properties of an InstanceStatus. - * @memberof google.cloud.batch.v1.JobStatus - * @interface IInstanceStatus - * @property {string|null} [machineType] InstanceStatus machineType - * @property {google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|null} [provisioningModel] InstanceStatus provisioningModel - * @property {number|Long|null} [taskPack] InstanceStatus taskPack - */ + return v1; + })(); - /** - * Constructs a new InstanceStatus. - * @memberof google.cloud.batch.v1.JobStatus - * @classdesc Represents an InstanceStatus. - * @implements IInstanceStatus - * @constructor - * @param {google.cloud.batch.v1.JobStatus.IInstanceStatus=} [properties] Properties to set - */ - function InstanceStatus(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]]; - } - - /** - * InstanceStatus machineType. - * @member {string} machineType - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @instance - */ - InstanceStatus.prototype.machineType = ""; + batch.v1alpha = (function() { - /** - * InstanceStatus provisioningModel. - * @member {google.cloud.batch.v1.AllocationPolicy.ProvisioningModel} provisioningModel - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @instance - */ - InstanceStatus.prototype.provisioningModel = 0; + /** + * Namespace v1alpha. + * @memberof google.cloud.batch + * @namespace + */ + var v1alpha = {}; - /** - * InstanceStatus taskPack. - * @member {number|Long} taskPack - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @instance - */ - InstanceStatus.prototype.taskPack = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + v1alpha.BatchService = (function() { - /** - * Creates a new InstanceStatus instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @static - * @param {google.cloud.batch.v1.JobStatus.IInstanceStatus=} [properties] Properties to set - * @returns {google.cloud.batch.v1.JobStatus.InstanceStatus} InstanceStatus instance - */ - InstanceStatus.create = function create(properties) { - return new InstanceStatus(properties); - }; + /** + * Constructs a new BatchService service. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a BatchService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function BatchService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * Encodes the specified InstanceStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.InstanceStatus.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @static - * @param {google.cloud.batch.v1.JobStatus.IInstanceStatus} message InstanceStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstanceStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); - if (message.provisioningModel != null && Object.hasOwnProperty.call(message, "provisioningModel")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.provisioningModel); - if (message.taskPack != null && Object.hasOwnProperty.call(message, "taskPack")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.taskPack); - return writer; - }; + (BatchService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = BatchService; - /** - * Encodes the specified InstanceStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.InstanceStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @static - * @param {google.cloud.batch.v1.JobStatus.IInstanceStatus} message InstanceStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstanceStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates new BatchService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.batch.v1alpha.BatchService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {BatchService} RPC service. Useful where requests and/or responses are streamed. + */ + BatchService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Decodes an InstanceStatus message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.JobStatus.InstanceStatus} InstanceStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstanceStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobStatus.InstanceStatus(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.machineType = reader.string(); - break; - } - case 2: { - message.provisioningModel = reader.int32(); - break; - } - case 3: { - message.taskPack = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|createJob}. + * @memberof google.cloud.batch.v1alpha.BatchService + * @typedef CreateJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1alpha.Job} [response] Job + */ - /** - * Decodes an InstanceStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.JobStatus.InstanceStatus} InstanceStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstanceStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls CreateJob. + * @function createJob + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.ICreateJobRequest} request CreateJobRequest message or plain object + * @param {google.cloud.batch.v1alpha.BatchService.CreateJobCallback} callback Node-style callback called with the error, if any, and Job + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.createJob = function createJob(request, callback) { + return this.rpcCall(createJob, $root.google.cloud.batch.v1alpha.CreateJobRequest, $root.google.cloud.batch.v1alpha.Job, request, callback); + }, "name", { value: "CreateJob" }); - /** - * Verifies an InstanceStatus message. - * @function verify - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InstanceStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.machineType != null && message.hasOwnProperty("machineType")) - if (!$util.isString(message.machineType)) - return "machineType: string expected"; - if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) - switch (message.provisioningModel) { - default: - return "provisioningModel: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.taskPack != null && message.hasOwnProperty("taskPack")) - if (!$util.isInteger(message.taskPack) && !(message.taskPack && $util.isInteger(message.taskPack.low) && $util.isInteger(message.taskPack.high))) - return "taskPack: integer|Long expected"; - return null; - }; + /** + * Calls CreateJob. + * @function createJob + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.ICreateJobRequest} request CreateJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates an InstanceStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.JobStatus.InstanceStatus} InstanceStatus - */ - InstanceStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.JobStatus.InstanceStatus) - return object; - var message = new $root.google.cloud.batch.v1.JobStatus.InstanceStatus(); - if (object.machineType != null) - message.machineType = String(object.machineType); - switch (object.provisioningModel) { - default: - if (typeof object.provisioningModel === "number") { - message.provisioningModel = object.provisioningModel; - break; - } - break; - case "PROVISIONING_MODEL_UNSPECIFIED": - case 0: - message.provisioningModel = 0; - break; - case "STANDARD": - case 1: - message.provisioningModel = 1; - break; - case "SPOT": - case 2: - message.provisioningModel = 2; - break; - case "PREEMPTIBLE": - case 3: - message.provisioningModel = 3; - break; - } - if (object.taskPack != null) - if ($util.Long) - (message.taskPack = $util.Long.fromValue(object.taskPack)).unsigned = false; - else if (typeof object.taskPack === "string") - message.taskPack = parseInt(object.taskPack, 10); - else if (typeof object.taskPack === "number") - message.taskPack = object.taskPack; - else if (typeof object.taskPack === "object") - message.taskPack = new $util.LongBits(object.taskPack.low >>> 0, object.taskPack.high >>> 0).toNumber(); - return message; - }; + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|getJob}. + * @memberof google.cloud.batch.v1alpha.BatchService + * @typedef GetJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1alpha.Job} [response] Job + */ - /** - * Creates a plain object from an InstanceStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @static - * @param {google.cloud.batch.v1.JobStatus.InstanceStatus} message InstanceStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InstanceStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.machineType = ""; - object.provisioningModel = options.enums === String ? "PROVISIONING_MODEL_UNSPECIFIED" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskPack = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskPack = options.longs === String ? "0" : 0; - } - if (message.machineType != null && message.hasOwnProperty("machineType")) - object.machineType = message.machineType; - if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) - object.provisioningModel = options.enums === String ? $root.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel[message.provisioningModel] === undefined ? message.provisioningModel : $root.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel[message.provisioningModel] : message.provisioningModel; - if (message.taskPack != null && message.hasOwnProperty("taskPack")) - if (typeof message.taskPack === "number") - object.taskPack = options.longs === String ? String(message.taskPack) : message.taskPack; - else - object.taskPack = options.longs === String ? $util.Long.prototype.toString.call(message.taskPack) : options.longs === Number ? new $util.LongBits(message.taskPack.low >>> 0, message.taskPack.high >>> 0).toNumber() : message.taskPack; - return object; - }; + /** + * Calls GetJob. + * @function getJob + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IGetJobRequest} request GetJobRequest message or plain object + * @param {google.cloud.batch.v1alpha.BatchService.GetJobCallback} callback Node-style callback called with the error, if any, and Job + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.getJob = function getJob(request, callback) { + return this.rpcCall(getJob, $root.google.cloud.batch.v1alpha.GetJobRequest, $root.google.cloud.batch.v1alpha.Job, request, callback); + }, "name", { value: "GetJob" }); - /** - * Converts this InstanceStatus to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @instance - * @returns {Object.} JSON object - */ - InstanceStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls GetJob. + * @function getJob + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IGetJobRequest} request GetJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Gets the default type url for InstanceStatus - * @function getTypeUrl - * @memberof google.cloud.batch.v1.JobStatus.InstanceStatus - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InstanceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.JobStatus.InstanceStatus"; - }; + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|deleteJob}. + * @memberof google.cloud.batch.v1alpha.BatchService + * @typedef DeleteJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - return InstanceStatus; - })(); + /** + * Calls DeleteJob. + * @function deleteJob + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IDeleteJobRequest} request DeleteJobRequest message or plain object + * @param {google.cloud.batch.v1alpha.BatchService.DeleteJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.deleteJob = function deleteJob(request, callback) { + return this.rpcCall(deleteJob, $root.google.cloud.batch.v1alpha.DeleteJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteJob" }); - JobStatus.TaskGroupStatus = (function() { + /** + * Calls DeleteJob. + * @function deleteJob + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IDeleteJobRequest} request DeleteJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Properties of a TaskGroupStatus. - * @memberof google.cloud.batch.v1.JobStatus - * @interface ITaskGroupStatus - * @property {Object.|null} [counts] TaskGroupStatus counts - * @property {Array.|null} [instances] TaskGroupStatus instances - */ + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|listJobs}. + * @memberof google.cloud.batch.v1alpha.BatchService + * @typedef ListJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1alpha.ListJobsResponse} [response] ListJobsResponse + */ - /** - * Constructs a new TaskGroupStatus. - * @memberof google.cloud.batch.v1.JobStatus - * @classdesc Represents a TaskGroupStatus. - * @implements ITaskGroupStatus - * @constructor - * @param {google.cloud.batch.v1.JobStatus.ITaskGroupStatus=} [properties] Properties to set - */ - function TaskGroupStatus(properties) { - this.counts = {}; - this.instances = []; - 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]]; - } + /** + * Calls ListJobs. + * @function listJobs + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IListJobsRequest} request ListJobsRequest message or plain object + * @param {google.cloud.batch.v1alpha.BatchService.ListJobsCallback} callback Node-style callback called with the error, if any, and ListJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.listJobs = function listJobs(request, callback) { + return this.rpcCall(listJobs, $root.google.cloud.batch.v1alpha.ListJobsRequest, $root.google.cloud.batch.v1alpha.ListJobsResponse, request, callback); + }, "name", { value: "ListJobs" }); - /** - * TaskGroupStatus counts. - * @member {Object.} counts - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @instance - */ - TaskGroupStatus.prototype.counts = $util.emptyObject; + /** + * Calls ListJobs. + * @function listJobs + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IListJobsRequest} request ListJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * TaskGroupStatus instances. - * @member {Array.} instances - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @instance - */ - TaskGroupStatus.prototype.instances = $util.emptyArray; + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|getTask}. + * @memberof google.cloud.batch.v1alpha.BatchService + * @typedef GetTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1alpha.Task} [response] Task + */ - /** - * Creates a new TaskGroupStatus instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @static - * @param {google.cloud.batch.v1.JobStatus.ITaskGroupStatus=} [properties] Properties to set - * @returns {google.cloud.batch.v1.JobStatus.TaskGroupStatus} TaskGroupStatus instance - */ - TaskGroupStatus.create = function create(properties) { - return new TaskGroupStatus(properties); - }; + /** + * Calls GetTask. + * @function getTask + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IGetTaskRequest} request GetTaskRequest message or plain object + * @param {google.cloud.batch.v1alpha.BatchService.GetTaskCallback} callback Node-style callback called with the error, if any, and Task + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.getTask = function getTask(request, callback) { + return this.rpcCall(getTask, $root.google.cloud.batch.v1alpha.GetTaskRequest, $root.google.cloud.batch.v1alpha.Task, request, callback); + }, "name", { value: "GetTask" }); - /** - * Encodes the specified TaskGroupStatus message. Does not implicitly {@link google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @static - * @param {google.cloud.batch.v1.JobStatus.ITaskGroupStatus} message TaskGroupStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGroupStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.counts != null && Object.hasOwnProperty.call(message, "counts")) - for (var keys = Object.keys(message.counts), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int64(message.counts[keys[i]]).ldelim(); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.cloud.batch.v1.JobStatus.InstanceStatus.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Calls GetTask. + * @function getTask + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IGetTaskRequest} request GetTaskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Encodes the specified TaskGroupStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobStatus.TaskGroupStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @static - * @param {google.cloud.batch.v1.JobStatus.ITaskGroupStatus} message TaskGroupStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGroupStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TaskGroupStatus message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.JobStatus.TaskGroupStatus} TaskGroupStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGroupStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.counts === $util.emptyObject) - message.counts = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.int64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.counts[key] = value; - break; - } - case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.cloud.batch.v1.JobStatus.InstanceStatus.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TaskGroupStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.JobStatus.TaskGroupStatus} TaskGroupStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGroupStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TaskGroupStatus message. - * @function verify - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskGroupStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.counts != null && message.hasOwnProperty("counts")) { - if (!$util.isObject(message.counts)) - return "counts: object expected"; - var key = Object.keys(message.counts); - for (var i = 0; i < key.length; ++i) - if (!$util.isInteger(message.counts[key[i]]) && !(message.counts[key[i]] && $util.isInteger(message.counts[key[i]].low) && $util.isInteger(message.counts[key[i]].high))) - return "counts: integer|Long{k:string} expected"; - } - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.cloud.batch.v1.JobStatus.InstanceStatus.verify(message.instances[i]); - if (error) - return "instances." + error; - } - } - return null; - }; - - /** - * Creates a TaskGroupStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.JobStatus.TaskGroupStatus} TaskGroupStatus - */ - TaskGroupStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus) - return object; - var message = new $root.google.cloud.batch.v1.JobStatus.TaskGroupStatus(); - if (object.counts) { - if (typeof object.counts !== "object") - throw TypeError(".google.cloud.batch.v1.JobStatus.TaskGroupStatus.counts: object expected"); - message.counts = {}; - for (var keys = Object.keys(object.counts), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.counts[keys[i]] = $util.Long.fromValue(object.counts[keys[i]])).unsigned = false; - else if (typeof object.counts[keys[i]] === "string") - message.counts[keys[i]] = parseInt(object.counts[keys[i]], 10); - else if (typeof object.counts[keys[i]] === "number") - message.counts[keys[i]] = object.counts[keys[i]]; - else if (typeof object.counts[keys[i]] === "object") - message.counts[keys[i]] = new $util.LongBits(object.counts[keys[i]].low >>> 0, object.counts[keys[i]].high >>> 0).toNumber(); - } - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.batch.v1.JobStatus.TaskGroupStatus.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.batch.v1.JobStatus.TaskGroupStatus.instances: object expected"); - message.instances[i] = $root.google.cloud.batch.v1.JobStatus.InstanceStatus.fromObject(object.instances[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a TaskGroupStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @static - * @param {google.cloud.batch.v1.JobStatus.TaskGroupStatus} message TaskGroupStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TaskGroupStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.instances = []; - if (options.objects || options.defaults) - object.counts = {}; - var keys2; - if (message.counts && (keys2 = Object.keys(message.counts)).length) { - object.counts = {}; - for (var j = 0; j < keys2.length; ++j) - if (typeof message.counts[keys2[j]] === "number") - object.counts[keys2[j]] = options.longs === String ? String(message.counts[keys2[j]]) : message.counts[keys2[j]]; - else - object.counts[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.counts[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.counts[keys2[j]].low >>> 0, message.counts[keys2[j]].high >>> 0).toNumber() : message.counts[keys2[j]]; - } - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.cloud.batch.v1.JobStatus.InstanceStatus.toObject(message.instances[j], options); - } - return object; - }; - - /** - * Converts this TaskGroupStatus to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @instance - * @returns {Object.} JSON object - */ - TaskGroupStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for TaskGroupStatus - * @function getTypeUrl - * @memberof google.cloud.batch.v1.JobStatus.TaskGroupStatus - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TaskGroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.JobStatus.TaskGroupStatus"; - }; + /** + * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|listTasks}. + * @memberof google.cloud.batch.v1alpha.BatchService + * @typedef ListTasksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.batch.v1alpha.ListTasksResponse} [response] ListTasksResponse + */ - return TaskGroupStatus; - })(); + /** + * Calls ListTasks. + * @function listTasks + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IListTasksRequest} request ListTasksRequest message or plain object + * @param {google.cloud.batch.v1alpha.BatchService.ListTasksCallback} callback Node-style callback called with the error, if any, and ListTasksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BatchService.prototype.listTasks = function listTasks(request, callback) { + return this.rpcCall(listTasks, $root.google.cloud.batch.v1alpha.ListTasksRequest, $root.google.cloud.batch.v1alpha.ListTasksResponse, request, callback); + }, "name", { value: "ListTasks" }); /** - * State enum. - * @name google.cloud.batch.v1.JobStatus.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} SCHEDULED=2 SCHEDULED value - * @property {number} RUNNING=3 RUNNING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - * @property {number} FAILED=5 FAILED value - * @property {number} DELETION_IN_PROGRESS=6 DELETION_IN_PROGRESS value + * Calls ListTasks. + * @function listTasks + * @memberof google.cloud.batch.v1alpha.BatchService + * @instance + * @param {google.cloud.batch.v1alpha.IListTasksRequest} request ListTasksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - JobStatus.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "SCHEDULED"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "DELETION_IN_PROGRESS"] = 6; - return values; - })(); - return JobStatus; + return BatchService; })(); - v1.JobNotification = (function() { + v1alpha.CreateJobRequest = (function() { /** - * Properties of a JobNotification. - * @memberof google.cloud.batch.v1 - * @interface IJobNotification - * @property {string|null} [pubsubTopic] JobNotification pubsubTopic - * @property {google.cloud.batch.v1.JobNotification.IMessage|null} [message] JobNotification message + * Properties of a CreateJobRequest. + * @memberof google.cloud.batch.v1alpha + * @interface ICreateJobRequest + * @property {string|null} [parent] CreateJobRequest parent + * @property {string|null} [jobId] CreateJobRequest jobId + * @property {google.cloud.batch.v1alpha.IJob|null} [job] CreateJobRequest job + * @property {string|null} [requestId] CreateJobRequest requestId */ /** - * Constructs a new JobNotification. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a JobNotification. - * @implements IJobNotification + * Constructs a new CreateJobRequest. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a CreateJobRequest. + * @implements ICreateJobRequest * @constructor - * @param {google.cloud.batch.v1.IJobNotification=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.ICreateJobRequest=} [properties] Properties to set */ - function JobNotification(properties) { + function CreateJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14855,89 +13655,117 @@ } /** - * JobNotification pubsubTopic. - * @member {string} pubsubTopic - * @memberof google.cloud.batch.v1.JobNotification + * CreateJobRequest parent. + * @member {string} parent + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @instance */ - JobNotification.prototype.pubsubTopic = ""; + CreateJobRequest.prototype.parent = ""; /** - * JobNotification message. - * @member {google.cloud.batch.v1.JobNotification.IMessage|null|undefined} message - * @memberof google.cloud.batch.v1.JobNotification + * CreateJobRequest jobId. + * @member {string} jobId + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @instance */ - JobNotification.prototype.message = null; + CreateJobRequest.prototype.jobId = ""; /** - * Creates a new JobNotification instance using the specified properties. + * CreateJobRequest job. + * @member {google.cloud.batch.v1alpha.IJob|null|undefined} job + * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @instance + */ + CreateJobRequest.prototype.job = null; + + /** + * CreateJobRequest requestId. + * @member {string} requestId + * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @instance + */ + CreateJobRequest.prototype.requestId = ""; + + /** + * Creates a new CreateJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @static - * @param {google.cloud.batch.v1.IJobNotification=} [properties] Properties to set - * @returns {google.cloud.batch.v1.JobNotification} JobNotification instance + * @param {google.cloud.batch.v1alpha.ICreateJobRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.CreateJobRequest} CreateJobRequest instance */ - JobNotification.create = function create(properties) { - return new JobNotification(properties); + CreateJobRequest.create = function create(properties) { + return new CreateJobRequest(properties); }; /** - * Encodes the specified JobNotification message. Does not implicitly {@link google.cloud.batch.v1.JobNotification.verify|verify} messages. + * Encodes the specified CreateJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.CreateJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @static - * @param {google.cloud.batch.v1.IJobNotification} message JobNotification message or plain object to encode + * @param {google.cloud.batch.v1alpha.ICreateJobRequest} message CreateJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JobNotification.encode = function encode(message, writer) { + CreateJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pubsubTopic != null && Object.hasOwnProperty.call(message, "pubsubTopic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.pubsubTopic); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - $root.google.cloud.batch.v1.JobNotification.Message.encode(message.message, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); + if (message.job != null && Object.hasOwnProperty.call(message, "job")) + $root.google.cloud.batch.v1alpha.Job.encode(message.job, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); return writer; }; /** - * Encodes the specified JobNotification message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobNotification.verify|verify} messages. + * Encodes the specified CreateJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.CreateJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @static - * @param {google.cloud.batch.v1.IJobNotification} message JobNotification message or plain object to encode + * @param {google.cloud.batch.v1alpha.ICreateJobRequest} message CreateJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JobNotification.encodeDelimited = function encodeDelimited(message, writer) { + CreateJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a JobNotification message from the specified reader or buffer. + * Decodes a CreateJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.JobNotification} JobNotification + * @returns {google.cloud.batch.v1alpha.CreateJobRequest} CreateJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobNotification.decode = function decode(reader, length) { + CreateJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobNotification(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.CreateJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.pubsubTopic = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.message = $root.google.cloud.batch.v1.JobNotification.Message.decode(reader, reader.uint32()); + message.jobId = reader.string(); + break; + } + case 3: { + message.job = $root.google.cloud.batch.v1alpha.Job.decode(reader, reader.uint32()); + break; + } + case 4: { + message.requestId = reader.string(); break; } default: @@ -14949,515 +13777,152 @@ }; /** - * Decodes a JobNotification message from the specified reader or buffer, length delimited. + * Decodes a CreateJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.JobNotification} JobNotification + * @returns {google.cloud.batch.v1alpha.CreateJobRequest} CreateJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobNotification.decodeDelimited = function decodeDelimited(reader) { + CreateJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a JobNotification message. + * Verifies a CreateJobRequest message. * @function verify - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - JobNotification.verify = function verify(message) { + CreateJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) - if (!$util.isString(message.pubsubTopic)) - return "pubsubTopic: string expected"; - if (message.message != null && message.hasOwnProperty("message")) { - var error = $root.google.cloud.batch.v1.JobNotification.Message.verify(message.message); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; + if (message.job != null && message.hasOwnProperty("job")) { + var error = $root.google.cloud.batch.v1alpha.Job.verify(message.job); if (error) - return "message." + error; + return "job." + error; } + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a JobNotification message from a plain object. Also converts values to their respective internal types. + * Creates a CreateJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.JobNotification} JobNotification + * @returns {google.cloud.batch.v1alpha.CreateJobRequest} CreateJobRequest */ - JobNotification.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.JobNotification) + CreateJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.CreateJobRequest) return object; - var message = new $root.google.cloud.batch.v1.JobNotification(); - if (object.pubsubTopic != null) - message.pubsubTopic = String(object.pubsubTopic); - if (object.message != null) { - if (typeof object.message !== "object") - throw TypeError(".google.cloud.batch.v1.JobNotification.message: object expected"); - message.message = $root.google.cloud.batch.v1.JobNotification.Message.fromObject(object.message); + var message = new $root.google.cloud.batch.v1alpha.CreateJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.jobId != null) + message.jobId = String(object.jobId); + if (object.job != null) { + if (typeof object.job !== "object") + throw TypeError(".google.cloud.batch.v1alpha.CreateJobRequest.job: object expected"); + message.job = $root.google.cloud.batch.v1alpha.Job.fromObject(object.job); } + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a JobNotification message. Also converts values to other types if specified. + * Creates a plain object from a CreateJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @static - * @param {google.cloud.batch.v1.JobNotification} message JobNotification + * @param {google.cloud.batch.v1alpha.CreateJobRequest} message CreateJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - JobNotification.toObject = function toObject(message, options) { + CreateJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.pubsubTopic = ""; - object.message = null; + object.parent = ""; + object.jobId = ""; + object.job = null; + object.requestId = ""; } - if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) - object.pubsubTopic = message.pubsubTopic; - if (message.message != null && message.hasOwnProperty("message")) - object.message = $root.google.cloud.batch.v1.JobNotification.Message.toObject(message.message, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.jobId != null && message.hasOwnProperty("jobId")) + object.jobId = message.jobId; + if (message.job != null && message.hasOwnProperty("job")) + object.job = $root.google.cloud.batch.v1alpha.Job.toObject(message.job, options); + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this JobNotification to JSON. + * Converts this CreateJobRequest to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @instance * @returns {Object.} JSON object */ - JobNotification.prototype.toJSON = function toJSON() { + CreateJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for JobNotification + * Gets the default type url for CreateJobRequest * @function getTypeUrl - * @memberof google.cloud.batch.v1.JobNotification + * @memberof google.cloud.batch.v1alpha.CreateJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - JobNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.JobNotification"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.CreateJobRequest"; }; - JobNotification.Message = (function() { - - /** - * Properties of a Message. - * @memberof google.cloud.batch.v1.JobNotification - * @interface IMessage - * @property {google.cloud.batch.v1.JobNotification.Type|null} [type] Message type - * @property {google.cloud.batch.v1.JobStatus.State|null} [newJobState] Message newJobState - * @property {google.cloud.batch.v1.TaskStatus.State|null} [newTaskState] Message newTaskState - */ + return CreateJobRequest; + })(); - /** - * Constructs a new Message. - * @memberof google.cloud.batch.v1.JobNotification - * @classdesc Represents a Message. - * @implements IMessage - * @constructor - * @param {google.cloud.batch.v1.JobNotification.IMessage=} [properties] Properties to set - */ - function Message(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]]; - } - - /** - * Message type. - * @member {google.cloud.batch.v1.JobNotification.Type} type - * @memberof google.cloud.batch.v1.JobNotification.Message - * @instance - */ - Message.prototype.type = 0; - - /** - * Message newJobState. - * @member {google.cloud.batch.v1.JobStatus.State} newJobState - * @memberof google.cloud.batch.v1.JobNotification.Message - * @instance - */ - Message.prototype.newJobState = 0; - - /** - * Message newTaskState. - * @member {google.cloud.batch.v1.TaskStatus.State} newTaskState - * @memberof google.cloud.batch.v1.JobNotification.Message - * @instance - */ - Message.prototype.newTaskState = 0; - - /** - * Creates a new Message instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.JobNotification.Message - * @static - * @param {google.cloud.batch.v1.JobNotification.IMessage=} [properties] Properties to set - * @returns {google.cloud.batch.v1.JobNotification.Message} Message instance - */ - Message.create = function create(properties) { - return new Message(properties); - }; - - /** - * Encodes the specified Message message. Does not implicitly {@link google.cloud.batch.v1.JobNotification.Message.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.JobNotification.Message - * @static - * @param {google.cloud.batch.v1.JobNotification.IMessage} message Message message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Message.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.newJobState != null && Object.hasOwnProperty.call(message, "newJobState")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.newJobState); - if (message.newTaskState != null && Object.hasOwnProperty.call(message, "newTaskState")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.newTaskState); - return writer; - }; - - /** - * Encodes the specified Message message, length delimited. Does not implicitly {@link google.cloud.batch.v1.JobNotification.Message.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.JobNotification.Message - * @static - * @param {google.cloud.batch.v1.JobNotification.IMessage} message Message message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Message.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Message message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.JobNotification.Message - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.JobNotification.Message} Message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Message.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.JobNotification.Message(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 2: { - message.newJobState = reader.int32(); - break; - } - case 3: { - message.newTaskState = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Message message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.JobNotification.Message - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.JobNotification.Message} Message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Message.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Message message. - * @function verify - * @memberof google.cloud.batch.v1.JobNotification.Message - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Message.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.newJobState != null && message.hasOwnProperty("newJobState")) - switch (message.newJobState) { - default: - return "newJobState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.newTaskState != null && message.hasOwnProperty("newTaskState")) - switch (message.newTaskState) { - default: - return "newTaskState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - - /** - * Creates a Message message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.JobNotification.Message - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.JobNotification.Message} Message - */ - Message.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.JobNotification.Message) - return object; - var message = new $root.google.cloud.batch.v1.JobNotification.Message(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "JOB_STATE_CHANGED": - case 1: - message.type = 1; - break; - case "TASK_STATE_CHANGED": - case 2: - message.type = 2; - break; - } - switch (object.newJobState) { - default: - if (typeof object.newJobState === "number") { - message.newJobState = object.newJobState; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.newJobState = 0; - break; - case "QUEUED": - case 1: - message.newJobState = 1; - break; - case "SCHEDULED": - case 2: - message.newJobState = 2; - break; - case "RUNNING": - case 3: - message.newJobState = 3; - break; - case "SUCCEEDED": - case 4: - message.newJobState = 4; - break; - case "FAILED": - case 5: - message.newJobState = 5; - break; - case "DELETION_IN_PROGRESS": - case 6: - message.newJobState = 6; - break; - } - switch (object.newTaskState) { - default: - if (typeof object.newTaskState === "number") { - message.newTaskState = object.newTaskState; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.newTaskState = 0; - break; - case "PENDING": - case 1: - message.newTaskState = 1; - break; - case "ASSIGNED": - case 2: - message.newTaskState = 2; - break; - case "RUNNING": - case 3: - message.newTaskState = 3; - break; - case "FAILED": - case 4: - message.newTaskState = 4; - break; - case "SUCCEEDED": - case 5: - message.newTaskState = 5; - break; - } - return message; - }; - - /** - * Creates a plain object from a Message message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.JobNotification.Message - * @static - * @param {google.cloud.batch.v1.JobNotification.Message} message Message - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Message.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.newJobState = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.newTaskState = options.enums === String ? "STATE_UNSPECIFIED" : 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.batch.v1.JobNotification.Type[message.type] === undefined ? message.type : $root.google.cloud.batch.v1.JobNotification.Type[message.type] : message.type; - if (message.newJobState != null && message.hasOwnProperty("newJobState")) - object.newJobState = options.enums === String ? $root.google.cloud.batch.v1.JobStatus.State[message.newJobState] === undefined ? message.newJobState : $root.google.cloud.batch.v1.JobStatus.State[message.newJobState] : message.newJobState; - if (message.newTaskState != null && message.hasOwnProperty("newTaskState")) - object.newTaskState = options.enums === String ? $root.google.cloud.batch.v1.TaskStatus.State[message.newTaskState] === undefined ? message.newTaskState : $root.google.cloud.batch.v1.TaskStatus.State[message.newTaskState] : message.newTaskState; - return object; - }; - - /** - * Converts this Message to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.JobNotification.Message - * @instance - * @returns {Object.} JSON object - */ - Message.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Message - * @function getTypeUrl - * @memberof google.cloud.batch.v1.JobNotification.Message - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Message.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.JobNotification.Message"; - }; - - return Message; - })(); - - /** - * Type enum. - * @name google.cloud.batch.v1.JobNotification.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} JOB_STATE_CHANGED=1 JOB_STATE_CHANGED value - * @property {number} TASK_STATE_CHANGED=2 TASK_STATE_CHANGED value - */ - JobNotification.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "JOB_STATE_CHANGED"] = 1; - values[valuesById[2] = "TASK_STATE_CHANGED"] = 2; - return values; - })(); - - return JobNotification; - })(); - - v1.AllocationPolicy = (function() { + v1alpha.GetJobRequest = (function() { /** - * Properties of an AllocationPolicy. - * @memberof google.cloud.batch.v1 - * @interface IAllocationPolicy - * @property {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy|null} [location] AllocationPolicy location - * @property {Array.|null} [instances] AllocationPolicy instances - * @property {google.cloud.batch.v1.IServiceAccount|null} [serviceAccount] AllocationPolicy serviceAccount - * @property {Object.|null} [labels] AllocationPolicy labels - * @property {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy|null} [network] AllocationPolicy network + * Properties of a GetJobRequest. + * @memberof google.cloud.batch.v1alpha + * @interface IGetJobRequest + * @property {string|null} [name] GetJobRequest name */ /** - * Constructs a new AllocationPolicy. - * @memberof google.cloud.batch.v1 - * @classdesc Represents an AllocationPolicy. - * @implements IAllocationPolicy + * Constructs a new GetJobRequest. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a GetJobRequest. + * @implements IGetJobRequest * @constructor - * @param {google.cloud.batch.v1.IAllocationPolicy=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IGetJobRequest=} [properties] Properties to set */ - function AllocationPolicy(properties) { - this.instances = []; - this.labels = {}; + function GetJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15465,154 +13930,75 @@ } /** - * AllocationPolicy location. - * @member {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy|null|undefined} location - * @memberof google.cloud.batch.v1.AllocationPolicy - * @instance - */ - AllocationPolicy.prototype.location = null; - - /** - * AllocationPolicy instances. - * @member {Array.} instances - * @memberof google.cloud.batch.v1.AllocationPolicy - * @instance - */ - AllocationPolicy.prototype.instances = $util.emptyArray; - - /** - * AllocationPolicy serviceAccount. - * @member {google.cloud.batch.v1.IServiceAccount|null|undefined} serviceAccount - * @memberof google.cloud.batch.v1.AllocationPolicy - * @instance - */ - AllocationPolicy.prototype.serviceAccount = null; - - /** - * AllocationPolicy labels. - * @member {Object.} labels - * @memberof google.cloud.batch.v1.AllocationPolicy - * @instance - */ - AllocationPolicy.prototype.labels = $util.emptyObject; - - /** - * AllocationPolicy network. - * @member {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy|null|undefined} network - * @memberof google.cloud.batch.v1.AllocationPolicy + * GetJobRequest name. + * @member {string} name + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @instance */ - AllocationPolicy.prototype.network = null; + GetJobRequest.prototype.name = ""; /** - * Creates a new AllocationPolicy instance using the specified properties. + * Creates a new GetJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @static - * @param {google.cloud.batch.v1.IAllocationPolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1.AllocationPolicy} AllocationPolicy instance + * @param {google.cloud.batch.v1alpha.IGetJobRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.GetJobRequest} GetJobRequest instance */ - AllocationPolicy.create = function create(properties) { - return new AllocationPolicy(properties); + GetJobRequest.create = function create(properties) { + return new GetJobRequest(properties); }; /** - * Encodes the specified AllocationPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.verify|verify} messages. + * Encodes the specified GetJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.GetJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @static - * @param {google.cloud.batch.v1.IAllocationPolicy} message AllocationPolicy message or plain object to encode + * @param {google.cloud.batch.v1alpha.IGetJobRequest} message GetJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AllocationPolicy.encode = function encode(message, writer) { + GetJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.encode(message.location, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.encode(message.network, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.encode(message.instances[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - $root.google.cloud.batch.v1.ServiceAccount.encode(message.serviceAccount, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified AllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.verify|verify} messages. + * Encodes the specified GetJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GetJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @static - * @param {google.cloud.batch.v1.IAllocationPolicy} message AllocationPolicy message or plain object to encode + * @param {google.cloud.batch.v1alpha.IGetJobRequest} message GetJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { + GetJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AllocationPolicy message from the specified reader or buffer. + * Decodes a GetJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.AllocationPolicy} AllocationPolicy + * @returns {google.cloud.batch.v1alpha.GetJobRequest} GetJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AllocationPolicy.decode = function decode(reader, length) { + GetJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.GetJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.location = $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.decode(reader, reader.uint32()); - break; - } - case 8: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.decode(reader, reader.uint32())); - break; - } - case 9: { - message.serviceAccount = $root.google.cloud.batch.v1.ServiceAccount.decode(reader, reader.uint32()); - break; - } - case 6: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 7: { - message.network = $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -15624,2627 +14010,1863 @@ }; /** - * Decodes an AllocationPolicy message from the specified reader or buffer, length delimited. + * Decodes a GetJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.AllocationPolicy} AllocationPolicy + * @returns {google.cloud.batch.v1alpha.GetJobRequest} GetJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AllocationPolicy.decodeDelimited = function decodeDelimited(reader) { + GetJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AllocationPolicy message. + * Verifies a GetJobRequest message. * @function verify - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AllocationPolicy.verify = function verify(message) { + GetJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - var error = $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify(message.location); - if (error) - return "location." + error; - } - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify(message.instances[i]); - if (error) - return "instances." + error; - } - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) { - var error = $root.google.cloud.batch.v1.ServiceAccount.verify(message.serviceAccount); - if (error) - return "serviceAccount." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.network != null && message.hasOwnProperty("network")) { - var error = $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify(message.network); - if (error) - return "network." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an AllocationPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a GetJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.AllocationPolicy} AllocationPolicy + * @returns {google.cloud.batch.v1alpha.GetJobRequest} GetJobRequest */ - AllocationPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy) + GetJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.GetJobRequest) return object; - var message = new $root.google.cloud.batch.v1.AllocationPolicy(); - if (object.location != null) { - if (typeof object.location !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.location: object expected"); - message.location = $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.fromObject(object.location); - } - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.instances: object expected"); - message.instances[i] = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.fromObject(object.instances[i]); - } - } - if (object.serviceAccount != null) { - if (typeof object.serviceAccount !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.serviceAccount: object expected"); - message.serviceAccount = $root.google.cloud.batch.v1.ServiceAccount.fromObject(object.serviceAccount); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.network != null) { - if (typeof object.network !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.network: object expected"); - message.network = $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.fromObject(object.network); - } + var message = new $root.google.cloud.batch.v1alpha.GetJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an AllocationPolicy message. Also converts values to other types if specified. + * Creates a plain object from a GetJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @static - * @param {google.cloud.batch.v1.AllocationPolicy} message AllocationPolicy + * @param {google.cloud.batch.v1alpha.GetJobRequest} message GetJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AllocationPolicy.toObject = function toObject(message, options) { + GetJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.instances = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.location = null; - object.network = null; - object.serviceAccount = null; - } - if (message.location != null && message.hasOwnProperty("location")) - object.location = $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.toObject(message.location, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.network != null && message.hasOwnProperty("network")) - object.network = $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.toObject(message.network, options); - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.toObject(message.instances[j], options); - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = $root.google.cloud.batch.v1.ServiceAccount.toObject(message.serviceAccount, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this AllocationPolicy to JSON. + * Converts this GetJobRequest to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @instance * @returns {Object.} JSON object */ - AllocationPolicy.prototype.toJSON = function toJSON() { + GetJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AllocationPolicy + * Gets the default type url for GetJobRequest * @function getTypeUrl - * @memberof google.cloud.batch.v1.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.GetJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AllocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.GetJobRequest"; }; - AllocationPolicy.LocationPolicy = (function() { + return GetJobRequest; + })(); - /** - * Properties of a LocationPolicy. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @interface ILocationPolicy - * @property {Array.|null} [allowedLocations] LocationPolicy allowedLocations - */ + v1alpha.DeleteJobRequest = (function() { - /** - * Constructs a new LocationPolicy. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @classdesc Represents a LocationPolicy. - * @implements ILocationPolicy - * @constructor - * @param {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy=} [properties] Properties to set - */ - function LocationPolicy(properties) { - this.allowedLocations = []; - 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]]; - } + /** + * Properties of a DeleteJobRequest. + * @memberof google.cloud.batch.v1alpha + * @interface IDeleteJobRequest + * @property {string|null} [name] DeleteJobRequest name + * @property {string|null} [reason] DeleteJobRequest reason + * @property {string|null} [requestId] DeleteJobRequest requestId + */ - /** - * LocationPolicy allowedLocations. - * @member {Array.} allowedLocations - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @instance - */ - LocationPolicy.prototype.allowedLocations = $util.emptyArray; + /** + * Constructs a new DeleteJobRequest. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a DeleteJobRequest. + * @implements IDeleteJobRequest + * @constructor + * @param {google.cloud.batch.v1alpha.IDeleteJobRequest=} [properties] Properties to set + */ + function DeleteJobRequest(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]]; + } - /** - * Creates a new LocationPolicy instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} LocationPolicy instance - */ - LocationPolicy.create = function create(properties) { - return new LocationPolicy(properties); - }; + /** + * DeleteJobRequest name. + * @member {string} name + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @instance + */ + DeleteJobRequest.prototype.name = ""; - /** - * Encodes the specified LocationPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy} message LocationPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationPolicy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allowedLocations != null && message.allowedLocations.length) - for (var i = 0; i < message.allowedLocations.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowedLocations[i]); - return writer; - }; + /** + * DeleteJobRequest reason. + * @member {string} reason + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @instance + */ + DeleteJobRequest.prototype.reason = ""; - /** - * Encodes the specified LocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.LocationPolicy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.ILocationPolicy} message LocationPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * DeleteJobRequest requestId. + * @member {string} requestId + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @instance + */ + DeleteJobRequest.prototype.requestId = ""; - /** - * Decodes a LocationPolicy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} LocationPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationPolicy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.allowedLocations && message.allowedLocations.length)) - message.allowedLocations = []; - message.allowedLocations.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Creates a new DeleteJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @static + * @param {google.cloud.batch.v1alpha.IDeleteJobRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.DeleteJobRequest} DeleteJobRequest instance + */ + DeleteJobRequest.create = function create(properties) { + return new DeleteJobRequest(properties); + }; + + /** + * Encodes the specified DeleteJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.DeleteJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @static + * @param {google.cloud.batch.v1alpha.IDeleteJobRequest} message DeleteJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reason); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + return writer; + }; + + /** + * Encodes the specified DeleteJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.DeleteJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @static + * @param {google.cloud.batch.v1alpha.IDeleteJobRequest} message DeleteJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.DeleteJobRequest} DeleteJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.DeleteJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.reason = reader.string(); + break; + } + case 4: { + message.requestId = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a LocationPolicy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} LocationPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationPolicy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a LocationPolicy message. - * @function verify - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LocationPolicy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allowedLocations != null && message.hasOwnProperty("allowedLocations")) { - if (!Array.isArray(message.allowedLocations)) - return "allowedLocations: array expected"; - for (var i = 0; i < message.allowedLocations.length; ++i) - if (!$util.isString(message.allowedLocations[i])) - return "allowedLocations: string[] expected"; - } - return null; - }; + /** + * Decodes a DeleteJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.DeleteJobRequest} DeleteJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a LocationPolicy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} LocationPolicy - */ - LocationPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy) - return object; - var message = new $root.google.cloud.batch.v1.AllocationPolicy.LocationPolicy(); - if (object.allowedLocations) { - if (!Array.isArray(object.allowedLocations)) - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.LocationPolicy.allowedLocations: array expected"); - message.allowedLocations = []; - for (var i = 0; i < object.allowedLocations.length; ++i) - message.allowedLocations[i] = String(object.allowedLocations[i]); - } - return message; - }; + /** + * Verifies a DeleteJobRequest message. + * @function verify + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.reason != null && message.hasOwnProperty("reason")) + if (!$util.isString(message.reason)) + return "reason: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + return null; + }; - /** - * Creates a plain object from a LocationPolicy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.LocationPolicy} message LocationPolicy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LocationPolicy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.allowedLocations = []; - if (message.allowedLocations && message.allowedLocations.length) { - object.allowedLocations = []; - for (var j = 0; j < message.allowedLocations.length; ++j) - object.allowedLocations[j] = message.allowedLocations[j]; - } + /** + * Creates a DeleteJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.DeleteJobRequest} DeleteJobRequest + */ + DeleteJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.DeleteJobRequest) return object; - }; - - /** - * Converts this LocationPolicy to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @instance - * @returns {Object.} JSON object - */ - LocationPolicy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + var message = new $root.google.cloud.batch.v1alpha.DeleteJobRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.reason != null) + message.reason = String(object.reason); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; - /** - * Gets the default type url for LocationPolicy - * @function getTypeUrl - * @memberof google.cloud.batch.v1.AllocationPolicy.LocationPolicy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.LocationPolicy"; - }; - - return LocationPolicy; - })(); - - AllocationPolicy.Disk = (function() { + /** + * Creates a plain object from a DeleteJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @static + * @param {google.cloud.batch.v1alpha.DeleteJobRequest} message DeleteJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.reason = ""; + object.requestId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.reason != null && message.hasOwnProperty("reason")) + object.reason = message.reason; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; + return object; + }; - /** - * Properties of a Disk. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @interface IDisk - * @property {string|null} [image] Disk image - * @property {string|null} [snapshot] Disk snapshot - * @property {string|null} [type] Disk type - * @property {number|Long|null} [sizeGb] Disk sizeGb - * @property {string|null} [diskInterface] Disk diskInterface - */ + /** + * Converts this DeleteJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new Disk. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @classdesc Represents a Disk. - * @implements IDisk - * @constructor - * @param {google.cloud.batch.v1.AllocationPolicy.IDisk=} [properties] Properties to set - */ - function Disk(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]]; + /** + * Gets the default type url for DeleteJobRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.DeleteJobRequest"; + }; - /** - * Disk image. - * @member {string|null|undefined} image - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.image = null; + return DeleteJobRequest; + })(); - /** - * Disk snapshot. - * @member {string|null|undefined} snapshot - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.snapshot = null; + v1alpha.ListJobsRequest = (function() { - /** - * Disk type. - * @member {string} type - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.type = ""; + /** + * Properties of a ListJobsRequest. + * @memberof google.cloud.batch.v1alpha + * @interface IListJobsRequest + * @property {string|null} [parent] ListJobsRequest parent + * @property {string|null} [filter] ListJobsRequest filter + * @property {number|null} [pageSize] ListJobsRequest pageSize + * @property {string|null} [pageToken] ListJobsRequest pageToken + */ - /** - * Disk sizeGb. - * @member {number|Long} sizeGb - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.sizeGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Constructs a new ListJobsRequest. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a ListJobsRequest. + * @implements IListJobsRequest + * @constructor + * @param {google.cloud.batch.v1alpha.IListJobsRequest=} [properties] Properties to set + */ + function ListJobsRequest(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]]; + } - /** - * Disk diskInterface. - * @member {string} diskInterface - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.diskInterface = ""; + /** + * ListJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @instance + */ + ListJobsRequest.prototype.parent = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ListJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @instance + */ + ListJobsRequest.prototype.filter = ""; - /** - * Disk dataSource. - * @member {"image"|"snapshot"|undefined} dataSource - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @instance - */ - Object.defineProperty(Disk.prototype, "dataSource", { - get: $util.oneOfGetter($oneOfFields = ["image", "snapshot"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ListJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @instance + */ + ListJobsRequest.prototype.pageSize = 0; - /** - * Creates a new Disk instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IDisk=} [properties] Properties to set - * @returns {google.cloud.batch.v1.AllocationPolicy.Disk} Disk instance - */ - Disk.create = function create(properties) { - return new Disk(properties); - }; + /** + * ListJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @instance + */ + ListJobsRequest.prototype.pageToken = ""; - /** - * Encodes the specified Disk message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Disk.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IDisk} message Disk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Disk.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.sizeGb != null && Object.hasOwnProperty.call(message, "sizeGb")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.sizeGb); - if (message.image != null && Object.hasOwnProperty.call(message, "image")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.image); - if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.snapshot); - if (message.diskInterface != null && Object.hasOwnProperty.call(message, "diskInterface")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.diskInterface); - return writer; - }; + /** + * Creates a new ListJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @static + * @param {google.cloud.batch.v1alpha.IListJobsRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.ListJobsRequest} ListJobsRequest instance + */ + ListJobsRequest.create = function create(properties) { + return new ListJobsRequest(properties); + }; - /** - * Encodes the specified Disk message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Disk.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IDisk} message Disk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Disk.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListJobsRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @static + * @param {google.cloud.batch.v1alpha.IListJobsRequest} message ListJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListJobsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + return writer; + }; - /** - * Decodes a Disk message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.AllocationPolicy.Disk} Disk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Disk.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.Disk(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 4: { - message.image = reader.string(); - break; - } - case 5: { - message.snapshot = reader.string(); - break; - } - case 1: { - message.type = reader.string(); - break; - } - case 2: { - message.sizeGb = reader.int64(); - break; - } - case 6: { - message.diskInterface = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListJobsRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @static + * @param {google.cloud.batch.v1alpha.IListJobsRequest} message ListJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListJobsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.ListJobsRequest} ListJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListJobsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ListJobsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a Disk message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.AllocationPolicy.Disk} Disk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Disk.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ListJobsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.ListJobsRequest} ListJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListJobsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Disk message. - * @function verify - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Disk.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.image != null && message.hasOwnProperty("image")) { - properties.dataSource = 1; - if (!$util.isString(message.image)) - return "image: string expected"; - } - if (message.snapshot != null && message.hasOwnProperty("snapshot")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - if (!$util.isString(message.snapshot)) - return "snapshot: string expected"; - } - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.sizeGb != null && message.hasOwnProperty("sizeGb")) - if (!$util.isInteger(message.sizeGb) && !(message.sizeGb && $util.isInteger(message.sizeGb.low) && $util.isInteger(message.sizeGb.high))) - return "sizeGb: integer|Long expected"; - if (message.diskInterface != null && message.hasOwnProperty("diskInterface")) - if (!$util.isString(message.diskInterface)) - return "diskInterface: string expected"; - return null; - }; + /** + * Verifies a ListJobsRequest message. + * @function verify + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListJobsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; - /** - * Creates a Disk message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.AllocationPolicy.Disk} Disk - */ - Disk.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.Disk) - return object; - var message = new $root.google.cloud.batch.v1.AllocationPolicy.Disk(); - if (object.image != null) - message.image = String(object.image); - if (object.snapshot != null) - message.snapshot = String(object.snapshot); - if (object.type != null) - message.type = String(object.type); - if (object.sizeGb != null) - if ($util.Long) - (message.sizeGb = $util.Long.fromValue(object.sizeGb)).unsigned = false; - else if (typeof object.sizeGb === "string") - message.sizeGb = parseInt(object.sizeGb, 10); - else if (typeof object.sizeGb === "number") - message.sizeGb = object.sizeGb; - else if (typeof object.sizeGb === "object") - message.sizeGb = new $util.LongBits(object.sizeGb.low >>> 0, object.sizeGb.high >>> 0).toNumber(); - if (object.diskInterface != null) - message.diskInterface = String(object.diskInterface); - return message; - }; + /** + * Creates a ListJobsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.ListJobsRequest} ListJobsRequest + */ + ListJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.ListJobsRequest) + return object; + var message = new $root.google.cloud.batch.v1alpha.ListJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; - /** - * Creates a plain object from a Disk message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.Disk} message Disk - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Disk.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.sizeGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sizeGb = options.longs === String ? "0" : 0; - object.diskInterface = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.sizeGb != null && message.hasOwnProperty("sizeGb")) - if (typeof message.sizeGb === "number") - object.sizeGb = options.longs === String ? String(message.sizeGb) : message.sizeGb; - else - object.sizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.sizeGb) : options.longs === Number ? new $util.LongBits(message.sizeGb.low >>> 0, message.sizeGb.high >>> 0).toNumber() : message.sizeGb; - if (message.image != null && message.hasOwnProperty("image")) { - object.image = message.image; - if (options.oneofs) - object.dataSource = "image"; - } - if (message.snapshot != null && message.hasOwnProperty("snapshot")) { - object.snapshot = message.snapshot; - if (options.oneofs) - object.dataSource = "snapshot"; - } - if (message.diskInterface != null && message.hasOwnProperty("diskInterface")) - object.diskInterface = message.diskInterface; - return object; - }; - - /** - * Converts this Disk to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @instance - * @returns {Object.} JSON object - */ - Disk.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Disk - * @function getTypeUrl - * @memberof google.cloud.batch.v1.AllocationPolicy.Disk - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Disk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.Disk"; - }; + /** + * Creates a plain object from a ListJobsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @static + * @param {google.cloud.batch.v1alpha.ListJobsRequest} message ListJobsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + return object; + }; - return Disk; - })(); + /** + * Converts this ListJobsRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @instance + * @returns {Object.} JSON object + */ + ListJobsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - AllocationPolicy.AttachedDisk = (function() { + /** + * Gets the default type url for ListJobsRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.ListJobsRequest"; + }; - /** - * Properties of an AttachedDisk. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @interface IAttachedDisk - * @property {google.cloud.batch.v1.AllocationPolicy.IDisk|null} [newDisk] AttachedDisk newDisk - * @property {string|null} [existingDisk] AttachedDisk existingDisk - * @property {string|null} [deviceName] AttachedDisk deviceName - */ + return ListJobsRequest; + })(); - /** - * Constructs a new AttachedDisk. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @classdesc Represents an AttachedDisk. - * @implements IAttachedDisk - * @constructor - * @param {google.cloud.batch.v1.AllocationPolicy.IAttachedDisk=} [properties] Properties to set - */ - function AttachedDisk(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]]; - } + v1alpha.ListJobsResponse = (function() { - /** - * AttachedDisk newDisk. - * @member {google.cloud.batch.v1.AllocationPolicy.IDisk|null|undefined} newDisk - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @instance - */ - AttachedDisk.prototype.newDisk = null; + /** + * Properties of a ListJobsResponse. + * @memberof google.cloud.batch.v1alpha + * @interface IListJobsResponse + * @property {Array.|null} [jobs] ListJobsResponse jobs + * @property {string|null} [nextPageToken] ListJobsResponse nextPageToken + * @property {Array.|null} [unreachable] ListJobsResponse unreachable + */ - /** - * AttachedDisk existingDisk. - * @member {string|null|undefined} existingDisk - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @instance - */ - AttachedDisk.prototype.existingDisk = null; + /** + * Constructs a new ListJobsResponse. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a ListJobsResponse. + * @implements IListJobsResponse + * @constructor + * @param {google.cloud.batch.v1alpha.IListJobsResponse=} [properties] Properties to set + */ + function ListJobsResponse(properties) { + this.jobs = []; + this.unreachable = []; + 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]]; + } - /** - * AttachedDisk deviceName. - * @member {string} deviceName - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @instance - */ - AttachedDisk.prototype.deviceName = ""; + /** + * ListJobsResponse jobs. + * @member {Array.} jobs + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @instance + */ + ListJobsResponse.prototype.jobs = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ListJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @instance + */ + ListJobsResponse.prototype.nextPageToken = ""; - /** - * AttachedDisk attached. - * @member {"newDisk"|"existingDisk"|undefined} attached - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @instance - */ - Object.defineProperty(AttachedDisk.prototype, "attached", { - get: $util.oneOfGetter($oneOfFields = ["newDisk", "existingDisk"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ListJobsResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @instance + */ + ListJobsResponse.prototype.unreachable = $util.emptyArray; - /** - * Creates a new AttachedDisk instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IAttachedDisk=} [properties] Properties to set - * @returns {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} AttachedDisk instance - */ - AttachedDisk.create = function create(properties) { - return new AttachedDisk(properties); - }; + /** + * Creates a new ListJobsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @static + * @param {google.cloud.batch.v1alpha.IListJobsResponse=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.ListJobsResponse} ListJobsResponse instance + */ + ListJobsResponse.create = function create(properties) { + return new ListJobsResponse(properties); + }; - /** - * Encodes the specified AttachedDisk message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IAttachedDisk} message AttachedDisk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AttachedDisk.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.newDisk != null && Object.hasOwnProperty.call(message, "newDisk")) - $root.google.cloud.batch.v1.AllocationPolicy.Disk.encode(message.newDisk, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.existingDisk != null && Object.hasOwnProperty.call(message, "existingDisk")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.existingDisk); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceName); - return writer; - }; + /** + * Encodes the specified ListJobsResponse message. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @static + * @param {google.cloud.batch.v1alpha.IListJobsResponse} message ListJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListJobsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.jobs != null && message.jobs.length) + for (var i = 0; i < message.jobs.length; ++i) + $root.google.cloud.batch.v1alpha.Job.encode(message.jobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; - /** - * Encodes the specified AttachedDisk message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IAttachedDisk} message AttachedDisk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AttachedDisk.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListJobsResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @static + * @param {google.cloud.batch.v1alpha.IListJobsResponse} message ListJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an AttachedDisk message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} AttachedDisk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AttachedDisk.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.newDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.decode(reader, reader.uint32()); - break; - } - case 2: { - message.existingDisk = reader.string(); - break; - } - case 3: { - message.deviceName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a ListJobsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.ListJobsResponse} ListJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListJobsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ListJobsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.jobs && message.jobs.length)) + message.jobs = []; + message.jobs.push($root.google.cloud.batch.v1alpha.Job.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes an AttachedDisk message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} AttachedDisk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AttachedDisk.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ListJobsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.ListJobsResponse} ListJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListJobsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an AttachedDisk message. - * @function verify - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AttachedDisk.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.newDisk != null && message.hasOwnProperty("newDisk")) { - properties.attached = 1; - { - var error = $root.google.cloud.batch.v1.AllocationPolicy.Disk.verify(message.newDisk); - if (error) - return "newDisk." + error; - } - } - if (message.existingDisk != null && message.hasOwnProperty("existingDisk")) { - if (properties.attached === 1) - return "attached: multiple values"; - properties.attached = 1; - if (!$util.isString(message.existingDisk)) - return "existingDisk: string expected"; + /** + * Verifies a ListJobsResponse message. + * @function verify + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListJobsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.jobs != null && message.hasOwnProperty("jobs")) { + if (!Array.isArray(message.jobs)) + return "jobs: array expected"; + for (var i = 0; i < message.jobs.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.Job.verify(message.jobs[i]); + if (error) + return "jobs." + error; } - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - return null; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; - /** - * Creates an AttachedDisk message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} AttachedDisk - */ - AttachedDisk.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk) - return object; - var message = new $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk(); - if (object.newDisk != null) { - if (typeof object.newDisk !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.AttachedDisk.newDisk: object expected"); - message.newDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.fromObject(object.newDisk); + /** + * Creates a ListJobsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.ListJobsResponse} ListJobsResponse + */ + ListJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.ListJobsResponse) + return object; + var message = new $root.google.cloud.batch.v1alpha.ListJobsResponse(); + if (object.jobs) { + if (!Array.isArray(object.jobs)) + throw TypeError(".google.cloud.batch.v1alpha.ListJobsResponse.jobs: array expected"); + message.jobs = []; + for (var i = 0; i < object.jobs.length; ++i) { + if (typeof object.jobs[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.ListJobsResponse.jobs: object expected"); + message.jobs[i] = $root.google.cloud.batch.v1alpha.Job.fromObject(object.jobs[i]); } - if (object.existingDisk != null) - message.existingDisk = String(object.existingDisk); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - return message; - }; + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.batch.v1alpha.ListJobsResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; - /** - * Creates a plain object from an AttachedDisk message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.AttachedDisk} message AttachedDisk - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AttachedDisk.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.deviceName = ""; - if (message.newDisk != null && message.hasOwnProperty("newDisk")) { - object.newDisk = $root.google.cloud.batch.v1.AllocationPolicy.Disk.toObject(message.newDisk, options); - if (options.oneofs) - object.attached = "newDisk"; - } - if (message.existingDisk != null && message.hasOwnProperty("existingDisk")) { - object.existingDisk = message.existingDisk; - if (options.oneofs) - object.attached = "existingDisk"; - } - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - object.deviceName = message.deviceName; - return object; - }; + /** + * Creates a plain object from a ListJobsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @static + * @param {google.cloud.batch.v1alpha.ListJobsResponse} message ListJobsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListJobsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.jobs = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.jobs && message.jobs.length) { + object.jobs = []; + for (var j = 0; j < message.jobs.length; ++j) + object.jobs[j] = $root.google.cloud.batch.v1alpha.Job.toObject(message.jobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; - /** - * Converts this AttachedDisk to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @instance - * @returns {Object.} JSON object - */ - AttachedDisk.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ListJobsResponse to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @instance + * @returns {Object.} JSON object + */ + ListJobsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for AttachedDisk - * @function getTypeUrl - * @memberof google.cloud.batch.v1.AllocationPolicy.AttachedDisk - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AttachedDisk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.AttachedDisk"; - }; + /** + * Gets the default type url for ListJobsResponse + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.ListJobsResponse"; + }; - return AttachedDisk; - })(); + return ListJobsResponse; + })(); - AllocationPolicy.Accelerator = (function() { + v1alpha.ListTasksRequest = (function() { - /** - * Properties of an Accelerator. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @interface IAccelerator - * @property {string|null} [type] Accelerator type - * @property {number|Long|null} [count] Accelerator count - * @property {boolean|null} [installGpuDrivers] Accelerator installGpuDrivers - */ + /** + * Properties of a ListTasksRequest. + * @memberof google.cloud.batch.v1alpha + * @interface IListTasksRequest + * @property {string|null} [parent] ListTasksRequest parent + * @property {string|null} [filter] ListTasksRequest filter + * @property {number|null} [pageSize] ListTasksRequest pageSize + * @property {string|null} [pageToken] ListTasksRequest pageToken + */ - /** - * Constructs a new Accelerator. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @classdesc Represents an Accelerator. - * @implements IAccelerator - * @constructor - * @param {google.cloud.batch.v1.AllocationPolicy.IAccelerator=} [properties] Properties to set - */ - function Accelerator(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]]; - } + /** + * Constructs a new ListTasksRequest. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a ListTasksRequest. + * @implements IListTasksRequest + * @constructor + * @param {google.cloud.batch.v1alpha.IListTasksRequest=} [properties] Properties to set + */ + function ListTasksRequest(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]]; + } - /** - * Accelerator type. - * @member {string} type - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @instance - */ - Accelerator.prototype.type = ""; + /** + * ListTasksRequest parent. + * @member {string} parent + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @instance + */ + ListTasksRequest.prototype.parent = ""; - /** - * Accelerator count. - * @member {number|Long} count - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @instance - */ - Accelerator.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ListTasksRequest filter. + * @member {string} filter + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @instance + */ + ListTasksRequest.prototype.filter = ""; - /** - * Accelerator installGpuDrivers. - * @member {boolean} installGpuDrivers - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @instance - */ - Accelerator.prototype.installGpuDrivers = false; + /** + * ListTasksRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @instance + */ + ListTasksRequest.prototype.pageSize = 0; - /** - * Creates a new Accelerator instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IAccelerator=} [properties] Properties to set - * @returns {google.cloud.batch.v1.AllocationPolicy.Accelerator} Accelerator instance - */ - Accelerator.create = function create(properties) { - return new Accelerator(properties); - }; + /** + * ListTasksRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @instance + */ + ListTasksRequest.prototype.pageToken = ""; - /** - * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Accelerator.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IAccelerator} message Accelerator message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Accelerator.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.count); - if (message.installGpuDrivers != null && Object.hasOwnProperty.call(message, "installGpuDrivers")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.installGpuDrivers); - return writer; - }; + /** + * Creates a new ListTasksRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @static + * @param {google.cloud.batch.v1alpha.IListTasksRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.ListTasksRequest} ListTasksRequest instance + */ + ListTasksRequest.create = function create(properties) { + return new ListTasksRequest(properties); + }; - /** - * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.Accelerator.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IAccelerator} message Accelerator message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Accelerator.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListTasksRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @static + * @param {google.cloud.batch.v1alpha.IListTasksRequest} message ListTasksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTasksRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + return writer; + }; - /** - * Decodes an Accelerator message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.AllocationPolicy.Accelerator} Accelerator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Accelerator.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.Accelerator(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.string(); - break; - } - case 2: { - message.count = reader.int64(); - break; - } - case 3: { - message.installGpuDrivers = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListTasksRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @static + * @param {google.cloud.batch.v1alpha.IListTasksRequest} message ListTasksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTasksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListTasksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.ListTasksRequest} ListTasksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTasksRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ListTasksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes an Accelerator message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.AllocationPolicy.Accelerator} Accelerator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Accelerator.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies an Accelerator message. - * @function verify - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Accelerator.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) - return "count: integer|Long expected"; - if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) - if (typeof message.installGpuDrivers !== "boolean") - return "installGpuDrivers: boolean expected"; - return null; - }; + /** + * Decodes a ListTasksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.ListTasksRequest} ListTasksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTasksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an Accelerator message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.AllocationPolicy.Accelerator} Accelerator - */ - Accelerator.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.Accelerator) - return object; - var message = new $root.google.cloud.batch.v1.AllocationPolicy.Accelerator(); - if (object.type != null) - message.type = String(object.type); - if (object.count != null) - if ($util.Long) - (message.count = $util.Long.fromValue(object.count)).unsigned = false; - else if (typeof object.count === "string") - message.count = parseInt(object.count, 10); - else if (typeof object.count === "number") - message.count = object.count; - else if (typeof object.count === "object") - message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); - if (object.installGpuDrivers != null) - message.installGpuDrivers = Boolean(object.installGpuDrivers); - return message; - }; + /** + * Verifies a ListTasksRequest message. + * @function verify + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTasksRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; - /** - * Creates a plain object from an Accelerator message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.Accelerator} message Accelerator - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Accelerator.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.count = options.longs === String ? "0" : 0; - object.installGpuDrivers = false; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.count != null && message.hasOwnProperty("count")) - if (typeof message.count === "number") - object.count = options.longs === String ? String(message.count) : message.count; - else - object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; - if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) - object.installGpuDrivers = message.installGpuDrivers; + /** + * Creates a ListTasksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.ListTasksRequest} ListTasksRequest + */ + ListTasksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.ListTasksRequest) return object; - }; - - /** - * Converts this Accelerator to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @instance - * @returns {Object.} JSON object - */ - Accelerator.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Accelerator - * @function getTypeUrl - * @memberof google.cloud.batch.v1.AllocationPolicy.Accelerator - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Accelerator.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.Accelerator"; - }; - - return Accelerator; - })(); + var message = new $root.google.cloud.batch.v1alpha.ListTasksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; - AllocationPolicy.InstancePolicy = (function() { + /** + * Creates a plain object from a ListTasksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @static + * @param {google.cloud.batch.v1alpha.ListTasksRequest} message ListTasksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTasksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; - /** - * Properties of an InstancePolicy. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @interface IInstancePolicy - * @property {string|null} [machineType] InstancePolicy machineType - * @property {string|null} [minCpuPlatform] InstancePolicy minCpuPlatform - * @property {google.cloud.batch.v1.AllocationPolicy.ProvisioningModel|null} [provisioningModel] InstancePolicy provisioningModel - * @property {Array.|null} [accelerators] InstancePolicy accelerators - * @property {Array.|null} [disks] InstancePolicy disks - */ + /** + * Converts this ListTasksRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @instance + * @returns {Object.} JSON object + */ + ListTasksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new InstancePolicy. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @classdesc Represents an InstancePolicy. - * @implements IInstancePolicy - * @constructor - * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy=} [properties] Properties to set - */ - function InstancePolicy(properties) { - this.accelerators = []; - this.disks = []; - 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]]; + /** + * Gets the default type url for ListTasksRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListTasksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.ListTasksRequest"; + }; - /** - * InstancePolicy machineType. - * @member {string} machineType - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.machineType = ""; + return ListTasksRequest; + })(); - /** - * InstancePolicy minCpuPlatform. - * @member {string} minCpuPlatform - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.minCpuPlatform = ""; + v1alpha.ListTasksResponse = (function() { - /** - * InstancePolicy provisioningModel. - * @member {google.cloud.batch.v1.AllocationPolicy.ProvisioningModel} provisioningModel - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.provisioningModel = 0; + /** + * Properties of a ListTasksResponse. + * @memberof google.cloud.batch.v1alpha + * @interface IListTasksResponse + * @property {Array.|null} [tasks] ListTasksResponse tasks + * @property {string|null} [nextPageToken] ListTasksResponse nextPageToken + * @property {Array.|null} [unreachable] ListTasksResponse unreachable + */ - /** - * InstancePolicy accelerators. - * @member {Array.} accelerators - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.accelerators = $util.emptyArray; + /** + * Constructs a new ListTasksResponse. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a ListTasksResponse. + * @implements IListTasksResponse + * @constructor + * @param {google.cloud.batch.v1alpha.IListTasksResponse=} [properties] Properties to set + */ + function ListTasksResponse(properties) { + this.tasks = []; + this.unreachable = []; + 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]]; + } - /** - * InstancePolicy disks. - * @member {Array.} disks - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.disks = $util.emptyArray; + /** + * ListTasksResponse tasks. + * @member {Array.} tasks + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @instance + */ + ListTasksResponse.prototype.tasks = $util.emptyArray; - /** - * Creates a new InstancePolicy instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} InstancePolicy instance - */ - InstancePolicy.create = function create(properties) { - return new InstancePolicy(properties); - }; + /** + * ListTasksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @instance + */ + ListTasksResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified InstancePolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy} message InstancePolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstancePolicy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.machineType); - if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.minCpuPlatform); - if (message.provisioningModel != null && Object.hasOwnProperty.call(message, "provisioningModel")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.provisioningModel); - if (message.accelerators != null && message.accelerators.length) - for (var i = 0; i < message.accelerators.length; ++i) - $root.google.cloud.batch.v1.AllocationPolicy.Accelerator.encode(message.accelerators[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.disks != null && message.disks.length) - for (var i = 0; i < message.disks.length; ++i) - $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.encode(message.disks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * ListTasksResponse unreachable. + * @member {Array.} unreachable + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @instance + */ + ListTasksResponse.prototype.unreachable = $util.emptyArray; - /** - * Encodes the specified InstancePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy} message InstancePolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstancePolicy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListTasksResponse instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @static + * @param {google.cloud.batch.v1alpha.IListTasksResponse=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.ListTasksResponse} ListTasksResponse instance + */ + ListTasksResponse.create = function create(properties) { + return new ListTasksResponse(properties); + }; - /** - * Decodes an InstancePolicy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} InstancePolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstancePolicy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.machineType = reader.string(); - break; - } - case 3: { - message.minCpuPlatform = reader.string(); - break; - } - case 4: { - message.provisioningModel = reader.int32(); - break; - } - case 5: { - if (!(message.accelerators && message.accelerators.length)) - message.accelerators = []; - message.accelerators.push($root.google.cloud.batch.v1.AllocationPolicy.Accelerator.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.disks && message.disks.length)) - message.disks = []; - message.disks.push($root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ListTasksResponse message. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @static + * @param {google.cloud.batch.v1alpha.IListTasksResponse} message ListTasksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTasksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.google.cloud.batch.v1alpha.Task.encode(message.tasks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.unreachable != null && message.unreachable.length) + for (var i = 0; i < message.unreachable.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + return writer; + }; - /** - * Decodes an InstancePolicy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} InstancePolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstancePolicy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ListTasksResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @static + * @param {google.cloud.batch.v1alpha.IListTasksResponse} message ListTasksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTasksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies an InstancePolicy message. - * @function verify - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InstancePolicy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.machineType != null && message.hasOwnProperty("machineType")) - if (!$util.isString(message.machineType)) - return "machineType: string expected"; - if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) - if (!$util.isString(message.minCpuPlatform)) - return "minCpuPlatform: string expected"; - if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) - switch (message.provisioningModel) { - default: - return "provisioningModel: enum value expected"; - case 0: - case 1: - case 2: - case 3: + /** + * Decodes a ListTasksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.ListTasksResponse} ListTasksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTasksResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ListTasksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.google.cloud.batch.v1alpha.Task.decode(reader, reader.uint32())); break; } - if (message.accelerators != null && message.hasOwnProperty("accelerators")) { - if (!Array.isArray(message.accelerators)) - return "accelerators: array expected"; - for (var i = 0; i < message.accelerators.length; ++i) { - var error = $root.google.cloud.batch.v1.AllocationPolicy.Accelerator.verify(message.accelerators[i]); - if (error) - return "accelerators." + error; - } - } - if (message.disks != null && message.hasOwnProperty("disks")) { - if (!Array.isArray(message.disks)) - return "disks: array expected"; - for (var i = 0; i < message.disks.length; ++i) { - var error = $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.verify(message.disks[i]); - if (error) - return "disks." + error; + case 2: { + message.nextPageToken = reader.string(); + break; } - } - return null; - }; - - /** - * Creates an InstancePolicy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} InstancePolicy - */ - InstancePolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) - return object; - var message = new $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy(); - if (object.machineType != null) - message.machineType = String(object.machineType); - if (object.minCpuPlatform != null) - message.minCpuPlatform = String(object.minCpuPlatform); - switch (object.provisioningModel) { - default: - if (typeof object.provisioningModel === "number") { - message.provisioningModel = object.provisioningModel; + case 3: { + if (!(message.unreachable && message.unreachable.length)) + message.unreachable = []; + message.unreachable.push(reader.string()); break; } + default: + reader.skipType(tag & 7); break; - case "PROVISIONING_MODEL_UNSPECIFIED": - case 0: - message.provisioningModel = 0; - break; - case "STANDARD": - case 1: - message.provisioningModel = 1; - break; - case "SPOT": - case 2: - message.provisioningModel = 2; - break; - case "PREEMPTIBLE": - case 3: - message.provisioningModel = 3; - break; - } - if (object.accelerators) { - if (!Array.isArray(object.accelerators)) - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicy.accelerators: array expected"); - message.accelerators = []; - for (var i = 0; i < object.accelerators.length; ++i) { - if (typeof object.accelerators[i] !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicy.accelerators: object expected"); - message.accelerators[i] = $root.google.cloud.batch.v1.AllocationPolicy.Accelerator.fromObject(object.accelerators[i]); - } } - if (object.disks) { - if (!Array.isArray(object.disks)) - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicy.disks: array expected"); - message.disks = []; - for (var i = 0; i < object.disks.length; ++i) { - if (typeof object.disks[i] !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicy.disks: object expected"); - message.disks[i] = $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.fromObject(object.disks[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an InstancePolicy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.InstancePolicy} message InstancePolicy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InstancePolicy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.accelerators = []; - object.disks = []; - } - if (options.defaults) { - object.machineType = ""; - object.minCpuPlatform = ""; - object.provisioningModel = options.enums === String ? "PROVISIONING_MODEL_UNSPECIFIED" : 0; - } - if (message.machineType != null && message.hasOwnProperty("machineType")) - object.machineType = message.machineType; - if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) - object.minCpuPlatform = message.minCpuPlatform; - if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) - object.provisioningModel = options.enums === String ? $root.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel[message.provisioningModel] === undefined ? message.provisioningModel : $root.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel[message.provisioningModel] : message.provisioningModel; - if (message.accelerators && message.accelerators.length) { - object.accelerators = []; - for (var j = 0; j < message.accelerators.length; ++j) - object.accelerators[j] = $root.google.cloud.batch.v1.AllocationPolicy.Accelerator.toObject(message.accelerators[j], options); - } - if (message.disks && message.disks.length) { - object.disks = []; - for (var j = 0; j < message.disks.length; ++j) - object.disks[j] = $root.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.toObject(message.disks[j], options); - } - return object; - }; + } + return message; + }; - /** - * Converts this InstancePolicy to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @instance - * @returns {Object.} JSON object - */ - InstancePolicy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a ListTasksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.ListTasksResponse} ListTasksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTasksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for InstancePolicy - * @function getTypeUrl - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InstancePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Verifies a ListTasksResponse message. + * @function verify + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTasksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.Task.verify(message.tasks[i]); + if (error) + return "tasks." + error; } - return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.InstancePolicy"; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.unreachable != null && message.hasOwnProperty("unreachable")) { + if (!Array.isArray(message.unreachable)) + return "unreachable: array expected"; + for (var i = 0; i < message.unreachable.length; ++i) + if (!$util.isString(message.unreachable[i])) + return "unreachable: string[] expected"; + } + return null; + }; - return InstancePolicy; - })(); + /** + * Creates a ListTasksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.ListTasksResponse} ListTasksResponse + */ + ListTasksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.ListTasksResponse) + return object; + var message = new $root.google.cloud.batch.v1alpha.ListTasksResponse(); + if (object.tasks) { + if (!Array.isArray(object.tasks)) + throw TypeError(".google.cloud.batch.v1alpha.ListTasksResponse.tasks: array expected"); + message.tasks = []; + for (var i = 0; i < object.tasks.length; ++i) { + if (typeof object.tasks[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.ListTasksResponse.tasks: object expected"); + message.tasks[i] = $root.google.cloud.batch.v1alpha.Task.fromObject(object.tasks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.unreachable) { + if (!Array.isArray(object.unreachable)) + throw TypeError(".google.cloud.batch.v1alpha.ListTasksResponse.unreachable: array expected"); + message.unreachable = []; + for (var i = 0; i < object.unreachable.length; ++i) + message.unreachable[i] = String(object.unreachable[i]); + } + return message; + }; - AllocationPolicy.InstancePolicyOrTemplate = (function() { + /** + * Creates a plain object from a ListTasksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @static + * @param {google.cloud.batch.v1alpha.ListTasksResponse} message ListTasksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTasksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.tasks = []; + object.unreachable = []; + } + if (options.defaults) + object.nextPageToken = ""; + if (message.tasks && message.tasks.length) { + object.tasks = []; + for (var j = 0; j < message.tasks.length; ++j) + object.tasks[j] = $root.google.cloud.batch.v1alpha.Task.toObject(message.tasks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.unreachable && message.unreachable.length) { + object.unreachable = []; + for (var j = 0; j < message.unreachable.length; ++j) + object.unreachable[j] = message.unreachable[j]; + } + return object; + }; - /** - * Properties of an InstancePolicyOrTemplate. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @interface IInstancePolicyOrTemplate - * @property {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy|null} [policy] InstancePolicyOrTemplate policy - * @property {string|null} [instanceTemplate] InstancePolicyOrTemplate instanceTemplate - * @property {boolean|null} [installGpuDrivers] InstancePolicyOrTemplate installGpuDrivers - */ + /** + * Converts this ListTasksResponse to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @instance + * @returns {Object.} JSON object + */ + ListTasksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new InstancePolicyOrTemplate. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @classdesc Represents an InstancePolicyOrTemplate. - * @implements IInstancePolicyOrTemplate - * @constructor - * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate=} [properties] Properties to set - */ - function InstancePolicyOrTemplate(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]]; + /** + * Gets the default type url for ListTasksResponse + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListTasksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.ListTasksResponse"; + }; - /** - * InstancePolicyOrTemplate policy. - * @member {google.cloud.batch.v1.AllocationPolicy.IInstancePolicy|null|undefined} policy - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @instance - */ - InstancePolicyOrTemplate.prototype.policy = null; + return ListTasksResponse; + })(); - /** - * InstancePolicyOrTemplate instanceTemplate. - * @member {string|null|undefined} instanceTemplate - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @instance - */ - InstancePolicyOrTemplate.prototype.instanceTemplate = null; + v1alpha.GetTaskRequest = (function() { - /** - * InstancePolicyOrTemplate installGpuDrivers. - * @member {boolean} installGpuDrivers - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @instance - */ - InstancePolicyOrTemplate.prototype.installGpuDrivers = false; + /** + * Properties of a GetTaskRequest. + * @memberof google.cloud.batch.v1alpha + * @interface IGetTaskRequest + * @property {string|null} [name] GetTaskRequest name + */ - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Constructs a new GetTaskRequest. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a GetTaskRequest. + * @implements IGetTaskRequest + * @constructor + * @param {google.cloud.batch.v1alpha.IGetTaskRequest=} [properties] Properties to set + */ + function GetTaskRequest(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]]; + } - /** - * InstancePolicyOrTemplate policyTemplate. - * @member {"policy"|"instanceTemplate"|undefined} policyTemplate - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @instance - */ - Object.defineProperty(InstancePolicyOrTemplate.prototype, "policyTemplate", { - get: $util.oneOfGetter($oneOfFields = ["policy", "instanceTemplate"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * GetTaskRequest name. + * @member {string} name + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @instance + */ + GetTaskRequest.prototype.name = ""; - /** - * Creates a new InstancePolicyOrTemplate instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate=} [properties] Properties to set - * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate instance - */ - InstancePolicyOrTemplate.create = function create(properties) { - return new InstancePolicyOrTemplate(properties); - }; + /** + * Creates a new GetTaskRequest instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @static + * @param {google.cloud.batch.v1alpha.IGetTaskRequest=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.GetTaskRequest} GetTaskRequest instance + */ + GetTaskRequest.create = function create(properties) { + return new GetTaskRequest(properties); + }; - /** - * Encodes the specified InstancePolicyOrTemplate message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate} message InstancePolicyOrTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstancePolicyOrTemplate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) - $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.encode(message.policy, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.instanceTemplate != null && Object.hasOwnProperty.call(message, "instanceTemplate")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.instanceTemplate); - if (message.installGpuDrivers != null && Object.hasOwnProperty.call(message, "installGpuDrivers")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.installGpuDrivers); - return writer; - }; + /** + * Encodes the specified GetTaskRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.GetTaskRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @static + * @param {google.cloud.batch.v1alpha.IGetTaskRequest} message GetTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Encodes the specified InstancePolicyOrTemplate message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.IInstancePolicyOrTemplate} message InstancePolicyOrTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstancePolicyOrTemplate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetTaskRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GetTaskRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @static + * @param {google.cloud.batch.v1alpha.IGetTaskRequest} message GetTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstancePolicyOrTemplate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.policy = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.decode(reader, reader.uint32()); - break; - } - case 2: { - message.instanceTemplate = reader.string(); - break; - } - case 3: { - message.installGpuDrivers = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a GetTaskRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.GetTaskRequest} GetTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.GetTaskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstancePolicyOrTemplate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a GetTaskRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.GetTaskRequest} GetTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an InstancePolicyOrTemplate message. - * @function verify - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InstancePolicyOrTemplate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.policy != null && message.hasOwnProperty("policy")) { - properties.policyTemplate = 1; - { - var error = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.verify(message.policy); - if (error) - return "policy." + error; - } - } - if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) { - if (properties.policyTemplate === 1) - return "policyTemplate: multiple values"; - properties.policyTemplate = 1; - if (!$util.isString(message.instanceTemplate)) - return "instanceTemplate: string expected"; - } - if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) - if (typeof message.installGpuDrivers !== "boolean") - return "installGpuDrivers: boolean expected"; - return null; - }; + /** + * Verifies a GetTaskRequest message. + * @function verify + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates an InstancePolicyOrTemplate message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate - */ - InstancePolicyOrTemplate.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) - return object; - var message = new $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate(); - if (object.policy != null) { - if (typeof object.policy !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.policy: object expected"); - message.policy = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.fromObject(object.policy); - } - if (object.instanceTemplate != null) - message.instanceTemplate = String(object.instanceTemplate); - if (object.installGpuDrivers != null) - message.installGpuDrivers = Boolean(object.installGpuDrivers); - return message; - }; - - /** - * Creates a plain object from an InstancePolicyOrTemplate message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate} message InstancePolicyOrTemplate - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InstancePolicyOrTemplate.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.installGpuDrivers = false; - if (message.policy != null && message.hasOwnProperty("policy")) { - object.policy = $root.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.toObject(message.policy, options); - if (options.oneofs) - object.policyTemplate = "policy"; - } - if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) { - object.instanceTemplate = message.instanceTemplate; - if (options.oneofs) - object.policyTemplate = "instanceTemplate"; - } - if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) - object.installGpuDrivers = message.installGpuDrivers; + /** + * Creates a GetTaskRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.GetTaskRequest} GetTaskRequest + */ + GetTaskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.GetTaskRequest) return object; - }; - - /** - * Converts this InstancePolicyOrTemplate to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @instance - * @returns {Object.} JSON object - */ - InstancePolicyOrTemplate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InstancePolicyOrTemplate - * @function getTypeUrl - * @memberof google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InstancePolicyOrTemplate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate"; - }; - - return InstancePolicyOrTemplate; - })(); + var message = new $root.google.cloud.batch.v1alpha.GetTaskRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - AllocationPolicy.NetworkInterface = (function() { + /** + * Creates a plain object from a GetTaskRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @static + * @param {google.cloud.batch.v1alpha.GetTaskRequest} message GetTaskRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetTaskRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Properties of a NetworkInterface. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @interface INetworkInterface - * @property {string|null} [network] NetworkInterface network - * @property {string|null} [subnetwork] NetworkInterface subnetwork - * @property {boolean|null} [noExternalIpAddress] NetworkInterface noExternalIpAddress - */ + /** + * Converts this GetTaskRequest to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @instance + * @returns {Object.} JSON object + */ + GetTaskRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new NetworkInterface. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @classdesc Represents a NetworkInterface. - * @implements INetworkInterface - * @constructor - * @param {google.cloud.batch.v1.AllocationPolicy.INetworkInterface=} [properties] Properties to set - */ - function NetworkInterface(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]]; + /** + * Gets the default type url for GetTaskRequest + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.GetTaskRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetTaskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.GetTaskRequest"; + }; - /** - * NetworkInterface network. - * @member {string} network - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @instance - */ - NetworkInterface.prototype.network = ""; - - /** - * NetworkInterface subnetwork. - * @member {string} subnetwork - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @instance - */ - NetworkInterface.prototype.subnetwork = ""; - - /** - * NetworkInterface noExternalIpAddress. - * @member {boolean} noExternalIpAddress - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @instance - */ - NetworkInterface.prototype.noExternalIpAddress = false; + return GetTaskRequest; + })(); - /** - * Creates a new NetworkInterface instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.INetworkInterface=} [properties] Properties to set - * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} NetworkInterface instance - */ - NetworkInterface.create = function create(properties) { - return new NetworkInterface(properties); - }; + v1alpha.OperationMetadata = (function() { - /** - * Encodes the specified NetworkInterface message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.INetworkInterface} message NetworkInterface message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkInterface.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); - if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); - if (message.noExternalIpAddress != null && Object.hasOwnProperty.call(message, "noExternalIpAddress")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.noExternalIpAddress); - return writer; - }; + /** + * Properties of an OperationMetadata. + * @memberof google.cloud.batch.v1alpha + * @interface IOperationMetadata + * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime + * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime + * @property {string|null} [target] OperationMetadata target + * @property {string|null} [verb] OperationMetadata verb + * @property {string|null} [statusMessage] OperationMetadata statusMessage + * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation + * @property {string|null} [apiVersion] OperationMetadata apiVersion + */ - /** - * Encodes the specified NetworkInterface message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.INetworkInterface} message NetworkInterface message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkInterface.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new OperationMetadata. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents an OperationMetadata. + * @implements IOperationMetadata + * @constructor + * @param {google.cloud.batch.v1alpha.IOperationMetadata=} [properties] Properties to set + */ + function OperationMetadata(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]]; + } - /** - * Decodes a NetworkInterface message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} NetworkInterface - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkInterface.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.network = reader.string(); - break; - } - case 2: { - message.subnetwork = reader.string(); - break; - } - case 3: { - message.noExternalIpAddress = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * OperationMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @instance + */ + OperationMetadata.prototype.createTime = null; - /** - * Decodes a NetworkInterface message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} NetworkInterface - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkInterface.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * OperationMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @instance + */ + OperationMetadata.prototype.endTime = null; - /** - * Verifies a NetworkInterface message. - * @function verify - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NetworkInterface.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - if (!$util.isString(message.subnetwork)) - return "subnetwork: string expected"; - if (message.noExternalIpAddress != null && message.hasOwnProperty("noExternalIpAddress")) - if (typeof message.noExternalIpAddress !== "boolean") - return "noExternalIpAddress: boolean expected"; - return null; - }; + /** + * OperationMetadata target. + * @member {string} target + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @instance + */ + OperationMetadata.prototype.target = ""; - /** - * Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} NetworkInterface - */ - NetworkInterface.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface) - return object; - var message = new $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface(); - if (object.network != null) - message.network = String(object.network); - if (object.subnetwork != null) - message.subnetwork = String(object.subnetwork); - if (object.noExternalIpAddress != null) - message.noExternalIpAddress = Boolean(object.noExternalIpAddress); - return message; - }; + /** + * OperationMetadata verb. + * @member {string} verb + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @instance + */ + OperationMetadata.prototype.verb = ""; - /** - * Creates a plain object from a NetworkInterface message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.NetworkInterface} message NetworkInterface - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetworkInterface.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.network = ""; - object.subnetwork = ""; - object.noExternalIpAddress = false; - } - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - object.subnetwork = message.subnetwork; - if (message.noExternalIpAddress != null && message.hasOwnProperty("noExternalIpAddress")) - object.noExternalIpAddress = message.noExternalIpAddress; - return object; - }; + /** + * OperationMetadata statusMessage. + * @member {string} statusMessage + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @instance + */ + OperationMetadata.prototype.statusMessage = ""; - /** - * Converts this NetworkInterface to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @instance - * @returns {Object.} JSON object - */ - NetworkInterface.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * OperationMetadata requestedCancellation. + * @member {boolean} requestedCancellation + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @instance + */ + OperationMetadata.prototype.requestedCancellation = false; - /** - * Gets the default type url for NetworkInterface - * @function getTypeUrl - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkInterface - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetworkInterface.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.NetworkInterface"; - }; + /** + * OperationMetadata apiVersion. + * @member {string} apiVersion + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @instance + */ + OperationMetadata.prototype.apiVersion = ""; - return NetworkInterface; - })(); + /** + * Creates a new OperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @static + * @param {google.cloud.batch.v1alpha.IOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.OperationMetadata} OperationMetadata instance + */ + OperationMetadata.create = function create(properties) { + return new OperationMetadata(properties); + }; - AllocationPolicy.NetworkPolicy = (function() { + /** + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.batch.v1alpha.OperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @static + * @param {google.cloud.batch.v1alpha.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); + if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); + if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); + return writer; + }; - /** - * Properties of a NetworkPolicy. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @interface INetworkPolicy - * @property {Array.|null} [networkInterfaces] NetworkPolicy networkInterfaces - */ - - /** - * Constructs a new NetworkPolicy. - * @memberof google.cloud.batch.v1.AllocationPolicy - * @classdesc Represents a NetworkPolicy. - * @implements INetworkPolicy - * @constructor - * @param {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy=} [properties] Properties to set - */ - function NetworkPolicy(properties) { - this.networkInterfaces = []; - 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]]; - } - - /** - * NetworkPolicy networkInterfaces. - * @member {Array.} networkInterfaces - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @instance - */ - NetworkPolicy.prototype.networkInterfaces = $util.emptyArray; - - /** - * Creates a new NetworkPolicy instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} NetworkPolicy instance - */ - NetworkPolicy.create = function create(properties) { - return new NetworkPolicy(properties); - }; - - /** - * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy} message NetworkPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkPolicy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.networkInterfaces != null && message.networkInterfaces.length) - for (var i = 0; i < message.networkInterfaces.length; ++i) - $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.encode(message.networkInterfaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.INetworkPolicy} message NetworkPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NetworkPolicy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} NetworkPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkPolicy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.networkInterfaces && message.networkInterfaces.length)) - message.networkInterfaces = []; - message.networkInterfaces.push($root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} NetworkPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NetworkPolicy message. - * @function verify - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NetworkPolicy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.networkInterfaces != null && message.hasOwnProperty("networkInterfaces")) { - if (!Array.isArray(message.networkInterfaces)) - return "networkInterfaces: array expected"; - for (var i = 0; i < message.networkInterfaces.length; ++i) { - var error = $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.verify(message.networkInterfaces[i]); - if (error) - return "networkInterfaces." + error; - } - } - return null; - }; - - /** - * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} NetworkPolicy - */ - NetworkPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) - return object; - var message = new $root.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy(); - if (object.networkInterfaces) { - if (!Array.isArray(object.networkInterfaces)) - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.networkInterfaces: array expected"); - message.networkInterfaces = []; - for (var i = 0; i < object.networkInterfaces.length; ++i) { - if (typeof object.networkInterfaces[i] !== "object") - throw TypeError(".google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.networkInterfaces: object expected"); - message.networkInterfaces[i] = $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.fromObject(object.networkInterfaces[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @static - * @param {google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} message NetworkPolicy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetworkPolicy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.networkInterfaces = []; - if (message.networkInterfaces && message.networkInterfaces.length) { - object.networkInterfaces = []; - for (var j = 0; j < message.networkInterfaces.length; ++j) - object.networkInterfaces[j] = $root.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.toObject(message.networkInterfaces[j], options); - } - return object; - }; - - /** - * Converts this NetworkPolicy to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @instance - * @returns {Object.} JSON object - */ - NetworkPolicy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for NetworkPolicy - * @function getTypeUrl - * @memberof google.cloud.batch.v1.AllocationPolicy.NetworkPolicy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.AllocationPolicy.NetworkPolicy"; - }; - - return NetworkPolicy; - })(); - - /** - * ProvisioningModel enum. - * @name google.cloud.batch.v1.AllocationPolicy.ProvisioningModel - * @enum {number} - * @property {number} PROVISIONING_MODEL_UNSPECIFIED=0 PROVISIONING_MODEL_UNSPECIFIED value - * @property {number} STANDARD=1 STANDARD value - * @property {number} SPOT=2 SPOT value - * @property {number} PREEMPTIBLE=3 PREEMPTIBLE value - */ - AllocationPolicy.ProvisioningModel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PROVISIONING_MODEL_UNSPECIFIED"] = 0; - values[valuesById[1] = "STANDARD"] = 1; - values[valuesById[2] = "SPOT"] = 2; - values[valuesById[3] = "PREEMPTIBLE"] = 3; - return values; - })(); - - return AllocationPolicy; - })(); - - v1.TaskGroup = (function() { - - /** - * Properties of a TaskGroup. - * @memberof google.cloud.batch.v1 - * @interface ITaskGroup - * @property {string|null} [name] TaskGroup name - * @property {google.cloud.batch.v1.ITaskSpec|null} [taskSpec] TaskGroup taskSpec - * @property {number|Long|null} [taskCount] TaskGroup taskCount - * @property {number|Long|null} [parallelism] TaskGroup parallelism - * @property {Array.|null} [taskEnvironments] TaskGroup taskEnvironments - * @property {number|Long|null} [taskCountPerNode] TaskGroup taskCountPerNode - * @property {boolean|null} [requireHostsFile] TaskGroup requireHostsFile - * @property {boolean|null} [permissiveSsh] TaskGroup permissiveSsh - */ - - /** - * Constructs a new TaskGroup. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a TaskGroup. - * @implements ITaskGroup - * @constructor - * @param {google.cloud.batch.v1.ITaskGroup=} [properties] Properties to set - */ - function TaskGroup(properties) { - this.taskEnvironments = []; - 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]]; - } - - /** - * TaskGroup name. - * @member {string} name - * @memberof google.cloud.batch.v1.TaskGroup - * @instance - */ - TaskGroup.prototype.name = ""; - - /** - * TaskGroup taskSpec. - * @member {google.cloud.batch.v1.ITaskSpec|null|undefined} taskSpec - * @memberof google.cloud.batch.v1.TaskGroup - * @instance - */ - TaskGroup.prototype.taskSpec = null; - - /** - * TaskGroup taskCount. - * @member {number|Long} taskCount - * @memberof google.cloud.batch.v1.TaskGroup - * @instance - */ - TaskGroup.prototype.taskCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * TaskGroup parallelism. - * @member {number|Long} parallelism - * @memberof google.cloud.batch.v1.TaskGroup - * @instance - */ - TaskGroup.prototype.parallelism = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * TaskGroup taskEnvironments. - * @member {Array.} taskEnvironments - * @memberof google.cloud.batch.v1.TaskGroup - * @instance - */ - TaskGroup.prototype.taskEnvironments = $util.emptyArray; - - /** - * TaskGroup taskCountPerNode. - * @member {number|Long} taskCountPerNode - * @memberof google.cloud.batch.v1.TaskGroup - * @instance - */ - TaskGroup.prototype.taskCountPerNode = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * TaskGroup requireHostsFile. - * @member {boolean} requireHostsFile - * @memberof google.cloud.batch.v1.TaskGroup - * @instance - */ - TaskGroup.prototype.requireHostsFile = false; - - /** - * TaskGroup permissiveSsh. - * @member {boolean} permissiveSsh - * @memberof google.cloud.batch.v1.TaskGroup - * @instance - */ - TaskGroup.prototype.permissiveSsh = false; - - /** - * Creates a new TaskGroup instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.TaskGroup - * @static - * @param {google.cloud.batch.v1.ITaskGroup=} [properties] Properties to set - * @returns {google.cloud.batch.v1.TaskGroup} TaskGroup instance - */ - TaskGroup.create = function create(properties) { - return new TaskGroup(properties); - }; - - /** - * Encodes the specified TaskGroup message. Does not implicitly {@link google.cloud.batch.v1.TaskGroup.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.TaskGroup - * @static - * @param {google.cloud.batch.v1.ITaskGroup} message TaskGroup message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGroup.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.taskSpec != null && Object.hasOwnProperty.call(message, "taskSpec")) - $root.google.cloud.batch.v1.TaskSpec.encode(message.taskSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.taskCount != null && Object.hasOwnProperty.call(message, "taskCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.taskCount); - if (message.parallelism != null && Object.hasOwnProperty.call(message, "parallelism")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.parallelism); - if (message.taskEnvironments != null && message.taskEnvironments.length) - for (var i = 0; i < message.taskEnvironments.length; ++i) - $root.google.cloud.batch.v1.Environment.encode(message.taskEnvironments[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.taskCountPerNode != null && Object.hasOwnProperty.call(message, "taskCountPerNode")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.taskCountPerNode); - if (message.requireHostsFile != null && Object.hasOwnProperty.call(message, "requireHostsFile")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.requireHostsFile); - if (message.permissiveSsh != null && Object.hasOwnProperty.call(message, "permissiveSsh")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.permissiveSsh); - return writer; - }; - - /** - * Encodes the specified TaskGroup message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskGroup.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.TaskGroup - * @static - * @param {google.cloud.batch.v1.ITaskGroup} message TaskGroup message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGroup.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.OperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.OperationMetadata + * @static + * @param {google.cloud.batch.v1alpha.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Decodes a TaskGroup message from the specified reader or buffer. + * Decodes an OperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.TaskGroup + * @memberof google.cloud.batch.v1alpha.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.TaskGroup} TaskGroup + * @returns {google.cloud.batch.v1alpha.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskGroup.decode = function decode(reader, length) { + OperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.TaskGroup(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.OperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 3: { - message.taskSpec = $root.google.cloud.batch.v1.TaskSpec.decode(reader, reader.uint32()); + message.target = reader.string(); break; } case 4: { - message.taskCount = reader.int64(); + message.verb = reader.string(); break; } case 5: { - message.parallelism = reader.int64(); - break; - } - case 9: { - if (!(message.taskEnvironments && message.taskEnvironments.length)) - message.taskEnvironments = []; - message.taskEnvironments.push($root.google.cloud.batch.v1.Environment.decode(reader, reader.uint32())); - break; - } - case 10: { - message.taskCountPerNode = reader.int64(); + message.statusMessage = reader.string(); break; } - case 11: { - message.requireHostsFile = reader.bool(); + case 6: { + message.requestedCancellation = reader.bool(); break; } - case 12: { - message.permissiveSsh = reader.bool(); + case 7: { + message.apiVersion = reader.string(); break; } default: @@ -18256,244 +15878,198 @@ }; /** - * Decodes a TaskGroup message from the specified reader or buffer, length delimited. + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.TaskGroup + * @memberof google.cloud.batch.v1alpha.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.TaskGroup} TaskGroup + * @returns {google.cloud.batch.v1alpha.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskGroup.decodeDelimited = function decodeDelimited(reader) { + OperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TaskGroup message. + * Verifies an OperationMetadata message. * @function verify - * @memberof google.cloud.batch.v1.TaskGroup + * @memberof google.cloud.batch.v1alpha.OperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TaskGroup.verify = function verify(message) { + OperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.taskSpec != null && message.hasOwnProperty("taskSpec")) { - var error = $root.google.cloud.batch.v1.TaskSpec.verify(message.taskSpec); + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "taskSpec." + error; + return "createTime." + error; } - if (message.taskCount != null && message.hasOwnProperty("taskCount")) - if (!$util.isInteger(message.taskCount) && !(message.taskCount && $util.isInteger(message.taskCount.low) && $util.isInteger(message.taskCount.high))) - return "taskCount: integer|Long expected"; - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - if (!$util.isInteger(message.parallelism) && !(message.parallelism && $util.isInteger(message.parallelism.low) && $util.isInteger(message.parallelism.high))) - return "parallelism: integer|Long expected"; - if (message.taskEnvironments != null && message.hasOwnProperty("taskEnvironments")) { - if (!Array.isArray(message.taskEnvironments)) - return "taskEnvironments: array expected"; - for (var i = 0; i < message.taskEnvironments.length; ++i) { - var error = $root.google.cloud.batch.v1.Environment.verify(message.taskEnvironments[i]); - if (error) - return "taskEnvironments." + error; - } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } - if (message.taskCountPerNode != null && message.hasOwnProperty("taskCountPerNode")) - if (!$util.isInteger(message.taskCountPerNode) && !(message.taskCountPerNode && $util.isInteger(message.taskCountPerNode.low) && $util.isInteger(message.taskCountPerNode.high))) - return "taskCountPerNode: integer|Long expected"; - if (message.requireHostsFile != null && message.hasOwnProperty("requireHostsFile")) - if (typeof message.requireHostsFile !== "boolean") - return "requireHostsFile: boolean expected"; - if (message.permissiveSsh != null && message.hasOwnProperty("permissiveSsh")) - if (typeof message.permissiveSsh !== "boolean") - return "permissiveSsh: boolean expected"; + if (message.target != null && message.hasOwnProperty("target")) + if (!$util.isString(message.target)) + return "target: string expected"; + if (message.verb != null && message.hasOwnProperty("verb")) + if (!$util.isString(message.verb)) + return "verb: string expected"; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + if (typeof message.requestedCancellation !== "boolean") + return "requestedCancellation: boolean expected"; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + if (!$util.isString(message.apiVersion)) + return "apiVersion: string expected"; return null; }; /** - * Creates a TaskGroup message from a plain object. Also converts values to their respective internal types. + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.TaskGroup + * @memberof google.cloud.batch.v1alpha.OperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.TaskGroup} TaskGroup + * @returns {google.cloud.batch.v1alpha.OperationMetadata} OperationMetadata */ - TaskGroup.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.TaskGroup) + OperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.OperationMetadata) return object; - var message = new $root.google.cloud.batch.v1.TaskGroup(); - if (object.name != null) - message.name = String(object.name); - if (object.taskSpec != null) { - if (typeof object.taskSpec !== "object") - throw TypeError(".google.cloud.batch.v1.TaskGroup.taskSpec: object expected"); - message.taskSpec = $root.google.cloud.batch.v1.TaskSpec.fromObject(object.taskSpec); + var message = new $root.google.cloud.batch.v1alpha.OperationMetadata(); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.batch.v1alpha.OperationMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.taskCount != null) - if ($util.Long) - (message.taskCount = $util.Long.fromValue(object.taskCount)).unsigned = false; - else if (typeof object.taskCount === "string") - message.taskCount = parseInt(object.taskCount, 10); - else if (typeof object.taskCount === "number") - message.taskCount = object.taskCount; - else if (typeof object.taskCount === "object") - message.taskCount = new $util.LongBits(object.taskCount.low >>> 0, object.taskCount.high >>> 0).toNumber(); - if (object.parallelism != null) - if ($util.Long) - (message.parallelism = $util.Long.fromValue(object.parallelism)).unsigned = false; - else if (typeof object.parallelism === "string") - message.parallelism = parseInt(object.parallelism, 10); - else if (typeof object.parallelism === "number") - message.parallelism = object.parallelism; - else if (typeof object.parallelism === "object") - message.parallelism = new $util.LongBits(object.parallelism.low >>> 0, object.parallelism.high >>> 0).toNumber(); - if (object.taskEnvironments) { - if (!Array.isArray(object.taskEnvironments)) - throw TypeError(".google.cloud.batch.v1.TaskGroup.taskEnvironments: array expected"); - message.taskEnvironments = []; - for (var i = 0; i < object.taskEnvironments.length; ++i) { - if (typeof object.taskEnvironments[i] !== "object") - throw TypeError(".google.cloud.batch.v1.TaskGroup.taskEnvironments: object expected"); - message.taskEnvironments[i] = $root.google.cloud.batch.v1.Environment.fromObject(object.taskEnvironments[i]); - } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.batch.v1alpha.OperationMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } - if (object.taskCountPerNode != null) - if ($util.Long) - (message.taskCountPerNode = $util.Long.fromValue(object.taskCountPerNode)).unsigned = false; - else if (typeof object.taskCountPerNode === "string") - message.taskCountPerNode = parseInt(object.taskCountPerNode, 10); - else if (typeof object.taskCountPerNode === "number") - message.taskCountPerNode = object.taskCountPerNode; - else if (typeof object.taskCountPerNode === "object") - message.taskCountPerNode = new $util.LongBits(object.taskCountPerNode.low >>> 0, object.taskCountPerNode.high >>> 0).toNumber(); - if (object.requireHostsFile != null) - message.requireHostsFile = Boolean(object.requireHostsFile); - if (object.permissiveSsh != null) - message.permissiveSsh = Boolean(object.permissiveSsh); + if (object.target != null) + message.target = String(object.target); + if (object.verb != null) + message.verb = String(object.verb); + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.requestedCancellation != null) + message.requestedCancellation = Boolean(object.requestedCancellation); + if (object.apiVersion != null) + message.apiVersion = String(object.apiVersion); return message; }; /** - * Creates a plain object from a TaskGroup message. Also converts values to other types if specified. + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.TaskGroup + * @memberof google.cloud.batch.v1alpha.OperationMetadata * @static - * @param {google.cloud.batch.v1.TaskGroup} message TaskGroup + * @param {google.cloud.batch.v1alpha.OperationMetadata} message OperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TaskGroup.toObject = function toObject(message, options) { + OperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.taskEnvironments = []; if (options.defaults) { - object.name = ""; - object.taskSpec = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.parallelism = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.parallelism = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskCountPerNode = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskCountPerNode = options.longs === String ? "0" : 0; - object.requireHostsFile = false; - object.permissiveSsh = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.taskSpec != null && message.hasOwnProperty("taskSpec")) - object.taskSpec = $root.google.cloud.batch.v1.TaskSpec.toObject(message.taskSpec, options); - if (message.taskCount != null && message.hasOwnProperty("taskCount")) - if (typeof message.taskCount === "number") - object.taskCount = options.longs === String ? String(message.taskCount) : message.taskCount; - else - object.taskCount = options.longs === String ? $util.Long.prototype.toString.call(message.taskCount) : options.longs === Number ? new $util.LongBits(message.taskCount.low >>> 0, message.taskCount.high >>> 0).toNumber() : message.taskCount; - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - if (typeof message.parallelism === "number") - object.parallelism = options.longs === String ? String(message.parallelism) : message.parallelism; - else - object.parallelism = options.longs === String ? $util.Long.prototype.toString.call(message.parallelism) : options.longs === Number ? new $util.LongBits(message.parallelism.low >>> 0, message.parallelism.high >>> 0).toNumber() : message.parallelism; - if (message.taskEnvironments && message.taskEnvironments.length) { - object.taskEnvironments = []; - for (var j = 0; j < message.taskEnvironments.length; ++j) - object.taskEnvironments[j] = $root.google.cloud.batch.v1.Environment.toObject(message.taskEnvironments[j], options); + object.createTime = null; + object.endTime = null; + object.target = ""; + object.verb = ""; + object.statusMessage = ""; + object.requestedCancellation = false; + object.apiVersion = ""; } - if (message.taskCountPerNode != null && message.hasOwnProperty("taskCountPerNode")) - if (typeof message.taskCountPerNode === "number") - object.taskCountPerNode = options.longs === String ? String(message.taskCountPerNode) : message.taskCountPerNode; - else - object.taskCountPerNode = options.longs === String ? $util.Long.prototype.toString.call(message.taskCountPerNode) : options.longs === Number ? new $util.LongBits(message.taskCountPerNode.low >>> 0, message.taskCountPerNode.high >>> 0).toNumber() : message.taskCountPerNode; - if (message.requireHostsFile != null && message.hasOwnProperty("requireHostsFile")) - object.requireHostsFile = message.requireHostsFile; - if (message.permissiveSsh != null && message.hasOwnProperty("permissiveSsh")) - object.permissiveSsh = message.permissiveSsh; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = message.target; + if (message.verb != null && message.hasOwnProperty("verb")) + object.verb = message.verb; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + object.requestedCancellation = message.requestedCancellation; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + object.apiVersion = message.apiVersion; return object; }; /** - * Converts this TaskGroup to JSON. + * Converts this OperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.TaskGroup + * @memberof google.cloud.batch.v1alpha.OperationMetadata * @instance * @returns {Object.} JSON object */ - TaskGroup.prototype.toJSON = function toJSON() { + OperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TaskGroup + * Gets the default type url for OperationMetadata * @function getTypeUrl - * @memberof google.cloud.batch.v1.TaskGroup + * @memberof google.cloud.batch.v1alpha.OperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TaskGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.TaskGroup"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.OperationMetadata"; }; - return TaskGroup; + return OperationMetadata; })(); - v1.ServiceAccount = (function() { + v1alpha.Job = (function() { /** - * Properties of a ServiceAccount. - * @memberof google.cloud.batch.v1 - * @interface IServiceAccount - * @property {string|null} [email] ServiceAccount email + * Properties of a Job. + * @memberof google.cloud.batch.v1alpha + * @interface IJob + * @property {string|null} [name] Job name + * @property {string|null} [uid] Job uid + * @property {number|Long|null} [priority] Job priority + * @property {Array.|null} [taskGroups] Job taskGroups + * @property {google.cloud.batch.v1alpha.Job.SchedulingPolicy|null} [schedulingPolicy] Job schedulingPolicy + * @property {Array.|null} [dependencies] Job dependencies + * @property {google.cloud.batch.v1alpha.IAllocationPolicy|null} [allocationPolicy] Job allocationPolicy + * @property {Object.|null} [labels] Job labels + * @property {google.cloud.batch.v1alpha.IJobStatus|null} [status] Job status + * @property {google.cloud.batch.v1alpha.IJobNotification|null} [notification] Job notification + * @property {google.protobuf.ITimestamp|null} [createTime] Job createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Job updateTime + * @property {google.cloud.batch.v1alpha.ILogsPolicy|null} [logsPolicy] Job logsPolicy + * @property {Array.|null} [notifications] Job notifications */ /** - * Constructs a new ServiceAccount. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a ServiceAccount. - * @implements IServiceAccount + * Constructs a new Job. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a Job. + * @implements IJob * @constructor - * @param {google.cloud.batch.v1.IServiceAccount=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IJob=} [properties] Properties to set */ - function ServiceAccount(properties) { + function Job(properties) { + this.taskGroups = []; + this.dependencies = []; + this.labels = {}; + this.notifications = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18501,308 +16077,286 @@ } /** - * ServiceAccount email. - * @member {string} email - * @memberof google.cloud.batch.v1.ServiceAccount + * Job name. + * @member {string} name + * @memberof google.cloud.batch.v1alpha.Job * @instance */ - ServiceAccount.prototype.email = ""; - - /** - * Creates a new ServiceAccount instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.ServiceAccount - * @static - * @param {google.cloud.batch.v1.IServiceAccount=} [properties] Properties to set - * @returns {google.cloud.batch.v1.ServiceAccount} ServiceAccount instance - */ - ServiceAccount.create = function create(properties) { - return new ServiceAccount(properties); - }; - - /** - * Encodes the specified ServiceAccount message. Does not implicitly {@link google.cloud.batch.v1.ServiceAccount.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.ServiceAccount - * @static - * @param {google.cloud.batch.v1.IServiceAccount} message ServiceAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceAccount.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); - return writer; - }; + Job.prototype.name = ""; /** - * Encodes the specified ServiceAccount message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ServiceAccount.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.ServiceAccount - * @static - * @param {google.cloud.batch.v1.IServiceAccount} message ServiceAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Job uid. + * @member {string} uid + * @memberof google.cloud.batch.v1alpha.Job + * @instance */ - ServiceAccount.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Job.prototype.uid = ""; /** - * Decodes a ServiceAccount message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.ServiceAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.ServiceAccount} ServiceAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Job priority. + * @member {number|Long} priority + * @memberof google.cloud.batch.v1alpha.Job + * @instance */ - ServiceAccount.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ServiceAccount(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.email = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Job.prototype.priority = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Decodes a ServiceAccount message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.ServiceAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.ServiceAccount} ServiceAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Job taskGroups. + * @member {Array.} taskGroups + * @memberof google.cloud.batch.v1alpha.Job + * @instance */ - ServiceAccount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Job.prototype.taskGroups = $util.emptyArray; /** - * Verifies a ServiceAccount message. - * @function verify - * @memberof google.cloud.batch.v1.ServiceAccount - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Job schedulingPolicy. + * @member {google.cloud.batch.v1alpha.Job.SchedulingPolicy} schedulingPolicy + * @memberof google.cloud.batch.v1alpha.Job + * @instance */ - ServiceAccount.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - return null; - }; + Job.prototype.schedulingPolicy = 0; /** - * Creates a ServiceAccount message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.ServiceAccount - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.ServiceAccount} ServiceAccount + * Job dependencies. + * @member {Array.} dependencies + * @memberof google.cloud.batch.v1alpha.Job + * @instance */ - ServiceAccount.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.ServiceAccount) - return object; - var message = new $root.google.cloud.batch.v1.ServiceAccount(); - if (object.email != null) - message.email = String(object.email); - return message; - }; + Job.prototype.dependencies = $util.emptyArray; /** - * Creates a plain object from a ServiceAccount message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.ServiceAccount - * @static - * @param {google.cloud.batch.v1.ServiceAccount} message ServiceAccount - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Job allocationPolicy. + * @member {google.cloud.batch.v1alpha.IAllocationPolicy|null|undefined} allocationPolicy + * @memberof google.cloud.batch.v1alpha.Job + * @instance */ - ServiceAccount.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - return object; - }; + Job.prototype.allocationPolicy = null; /** - * Converts this ServiceAccount to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.ServiceAccount + * Job labels. + * @member {Object.} labels + * @memberof google.cloud.batch.v1alpha.Job * @instance - * @returns {Object.} JSON object */ - ServiceAccount.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Job.prototype.labels = $util.emptyObject; /** - * Gets the default type url for ServiceAccount - * @function getTypeUrl - * @memberof google.cloud.batch.v1.ServiceAccount - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Job status. + * @member {google.cloud.batch.v1alpha.IJobStatus|null|undefined} status + * @memberof google.cloud.batch.v1alpha.Job + * @instance */ - ServiceAccount.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.ServiceAccount"; - }; - - return ServiceAccount; - })(); - - v1.ComputeResource = (function() { + Job.prototype.status = null; /** - * Properties of a ComputeResource. - * @memberof google.cloud.batch.v1 - * @interface IComputeResource - * @property {number|Long|null} [cpuMilli] ComputeResource cpuMilli - * @property {number|Long|null} [memoryMib] ComputeResource memoryMib - * @property {number|Long|null} [bootDiskMib] ComputeResource bootDiskMib + * Job notification. + * @member {google.cloud.batch.v1alpha.IJobNotification|null|undefined} notification + * @memberof google.cloud.batch.v1alpha.Job + * @instance */ + Job.prototype.notification = null; /** - * Constructs a new ComputeResource. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a ComputeResource. - * @implements IComputeResource - * @constructor - * @param {google.cloud.batch.v1.IComputeResource=} [properties] Properties to set + * Job createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.batch.v1alpha.Job + * @instance */ - function ComputeResource(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]]; - } + Job.prototype.createTime = null; /** - * ComputeResource cpuMilli. - * @member {number|Long} cpuMilli - * @memberof google.cloud.batch.v1.ComputeResource + * Job updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.batch.v1alpha.Job * @instance */ - ComputeResource.prototype.cpuMilli = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Job.prototype.updateTime = null; /** - * ComputeResource memoryMib. - * @member {number|Long} memoryMib - * @memberof google.cloud.batch.v1.ComputeResource + * Job logsPolicy. + * @member {google.cloud.batch.v1alpha.ILogsPolicy|null|undefined} logsPolicy + * @memberof google.cloud.batch.v1alpha.Job * @instance */ - ComputeResource.prototype.memoryMib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Job.prototype.logsPolicy = null; /** - * ComputeResource bootDiskMib. - * @member {number|Long} bootDiskMib - * @memberof google.cloud.batch.v1.ComputeResource + * Job notifications. + * @member {Array.} notifications + * @memberof google.cloud.batch.v1alpha.Job * @instance */ - ComputeResource.prototype.bootDiskMib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Job.prototype.notifications = $util.emptyArray; /** - * Creates a new ComputeResource instance using the specified properties. + * Creates a new Job instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @static - * @param {google.cloud.batch.v1.IComputeResource=} [properties] Properties to set - * @returns {google.cloud.batch.v1.ComputeResource} ComputeResource instance + * @param {google.cloud.batch.v1alpha.IJob=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.Job} Job instance */ - ComputeResource.create = function create(properties) { - return new ComputeResource(properties); + Job.create = function create(properties) { + return new Job(properties); }; /** - * Encodes the specified ComputeResource message. Does not implicitly {@link google.cloud.batch.v1.ComputeResource.verify|verify} messages. + * Encodes the specified Job message. Does not implicitly {@link google.cloud.batch.v1alpha.Job.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @static - * @param {google.cloud.batch.v1.IComputeResource} message ComputeResource message or plain object to encode + * @param {google.cloud.batch.v1alpha.IJob} message Job message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComputeResource.encode = function encode(message, writer) { + Job.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cpuMilli != null && Object.hasOwnProperty.call(message, "cpuMilli")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.cpuMilli); - if (message.memoryMib != null && Object.hasOwnProperty.call(message, "memoryMib")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.memoryMib); - if (message.bootDiskMib != null && Object.hasOwnProperty.call(message, "bootDiskMib")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.bootDiskMib); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uid); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.priority); + if (message.taskGroups != null && message.taskGroups.length) + for (var i = 0; i < message.taskGroups.length; ++i) + $root.google.cloud.batch.v1alpha.TaskGroup.encode(message.taskGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.schedulingPolicy != null && Object.hasOwnProperty.call(message, "schedulingPolicy")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.schedulingPolicy); + if (message.dependencies != null && message.dependencies.length) + for (var i = 0; i < message.dependencies.length; ++i) + $root.google.cloud.batch.v1alpha.JobDependency.encode(message.dependencies[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.allocationPolicy != null && Object.hasOwnProperty.call(message, "allocationPolicy")) + $root.google.cloud.batch.v1alpha.AllocationPolicy.encode(message.allocationPolicy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.cloud.batch.v1alpha.JobStatus.encode(message.status, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) + $root.google.cloud.batch.v1alpha.JobNotification.encode(message.notification, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.logsPolicy != null && Object.hasOwnProperty.call(message, "logsPolicy")) + $root.google.cloud.batch.v1alpha.LogsPolicy.encode(message.logsPolicy, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.notifications != null && message.notifications.length) + for (var i = 0; i < message.notifications.length; ++i) + $root.google.cloud.batch.v1alpha.JobNotification.encode(message.notifications[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); return writer; }; /** - * Encodes the specified ComputeResource message, length delimited. Does not implicitly {@link google.cloud.batch.v1.ComputeResource.verify|verify} messages. + * Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Job.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @static - * @param {google.cloud.batch.v1.IComputeResource} message ComputeResource message or plain object to encode + * @param {google.cloud.batch.v1alpha.IJob} message Job message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComputeResource.encodeDelimited = function encodeDelimited(message, writer) { + Job.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ComputeResource message from the specified reader or buffer. + * Decodes a Job message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.ComputeResource} ComputeResource + * @returns {google.cloud.batch.v1alpha.Job} Job * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComputeResource.decode = function decode(reader, length) { + Job.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.ComputeResource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Job(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.cpuMilli = reader.int64(); + message.name = reader.string(); break; } case 2: { - message.memoryMib = reader.int64(); + message.uid = reader.string(); + break; + } + case 3: { + message.priority = reader.int64(); break; } case 4: { - message.bootDiskMib = reader.int64(); + if (!(message.taskGroups && message.taskGroups.length)) + message.taskGroups = []; + message.taskGroups.push($root.google.cloud.batch.v1alpha.TaskGroup.decode(reader, reader.uint32())); + break; + } + case 5: { + message.schedulingPolicy = reader.int32(); + break; + } + case 6: { + if (!(message.dependencies && message.dependencies.length)) + message.dependencies = []; + message.dependencies.push($root.google.cloud.batch.v1alpha.JobDependency.decode(reader, reader.uint32())); + break; + } + case 7: { + message.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.decode(reader, reader.uint32()); + break; + } + case 8: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 9: { + message.status = $root.google.cloud.batch.v1alpha.JobStatus.decode(reader, reader.uint32()); + break; + } + case 10: { + message.notification = $root.google.cloud.batch.v1alpha.JobNotification.decode(reader, reader.uint32()); + break; + } + case 11: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.logsPolicy = $root.google.cloud.batch.v1alpha.LogsPolicy.decode(reader, reader.uint32()); + break; + } + case 14: { + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.google.cloud.batch.v1alpha.JobNotification.decode(reader, reader.uint32())); break; } default: @@ -18814,184 +16368,373 @@ }; /** - * Decodes a ComputeResource message from the specified reader or buffer, length delimited. + * Decodes a Job message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.ComputeResource} ComputeResource + * @returns {google.cloud.batch.v1alpha.Job} Job * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComputeResource.decodeDelimited = function decodeDelimited(reader) { + Job.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ComputeResource message. + * Verifies a Job message. * @function verify - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComputeResource.verify = function verify(message) { + Job.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cpuMilli != null && message.hasOwnProperty("cpuMilli")) - if (!$util.isInteger(message.cpuMilli) && !(message.cpuMilli && $util.isInteger(message.cpuMilli.low) && $util.isInteger(message.cpuMilli.high))) - return "cpuMilli: integer|Long expected"; - if (message.memoryMib != null && message.hasOwnProperty("memoryMib")) - if (!$util.isInteger(message.memoryMib) && !(message.memoryMib && $util.isInteger(message.memoryMib.low) && $util.isInteger(message.memoryMib.high))) - return "memoryMib: integer|Long expected"; - if (message.bootDiskMib != null && message.hasOwnProperty("bootDiskMib")) - if (!$util.isInteger(message.bootDiskMib) && !(message.bootDiskMib && $util.isInteger(message.bootDiskMib.low) && $util.isInteger(message.bootDiskMib.high))) - return "bootDiskMib: integer|Long expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.uid != null && message.hasOwnProperty("uid")) + if (!$util.isString(message.uid)) + return "uid: string expected"; + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority) && !(message.priority && $util.isInteger(message.priority.low) && $util.isInteger(message.priority.high))) + return "priority: integer|Long expected"; + if (message.taskGroups != null && message.hasOwnProperty("taskGroups")) { + if (!Array.isArray(message.taskGroups)) + return "taskGroups: array expected"; + for (var i = 0; i < message.taskGroups.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.TaskGroup.verify(message.taskGroups[i]); + if (error) + return "taskGroups." + error; + } + } + if (message.schedulingPolicy != null && message.hasOwnProperty("schedulingPolicy")) + switch (message.schedulingPolicy) { + default: + return "schedulingPolicy: enum value expected"; + case 0: + case 1: + break; + } + if (message.dependencies != null && message.hasOwnProperty("dependencies")) { + if (!Array.isArray(message.dependencies)) + return "dependencies: array expected"; + for (var i = 0; i < message.dependencies.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.JobDependency.verify(message.dependencies[i]); + if (error) + return "dependencies." + error; + } + } + if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.verify(message.allocationPolicy); + if (error) + return "allocationPolicy." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.cloud.batch.v1alpha.JobStatus.verify(message.status); + if (error) + return "status." + error; + } + if (message.notification != null && message.hasOwnProperty("notification")) { + var error = $root.google.cloud.batch.v1alpha.JobNotification.verify(message.notification); + if (error) + return "notification." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.logsPolicy != null && message.hasOwnProperty("logsPolicy")) { + var error = $root.google.cloud.batch.v1alpha.LogsPolicy.verify(message.logsPolicy); + if (error) + return "logsPolicy." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (var i = 0; i < message.notifications.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.JobNotification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } return null; }; /** - * Creates a ComputeResource message from a plain object. Also converts values to their respective internal types. + * Creates a Job message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.ComputeResource} ComputeResource + * @returns {google.cloud.batch.v1alpha.Job} Job */ - ComputeResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.ComputeResource) + Job.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.Job) return object; - var message = new $root.google.cloud.batch.v1.ComputeResource(); - if (object.cpuMilli != null) - if ($util.Long) - (message.cpuMilli = $util.Long.fromValue(object.cpuMilli)).unsigned = false; - else if (typeof object.cpuMilli === "string") - message.cpuMilli = parseInt(object.cpuMilli, 10); - else if (typeof object.cpuMilli === "number") - message.cpuMilli = object.cpuMilli; - else if (typeof object.cpuMilli === "object") - message.cpuMilli = new $util.LongBits(object.cpuMilli.low >>> 0, object.cpuMilli.high >>> 0).toNumber(); - if (object.memoryMib != null) - if ($util.Long) - (message.memoryMib = $util.Long.fromValue(object.memoryMib)).unsigned = false; - else if (typeof object.memoryMib === "string") - message.memoryMib = parseInt(object.memoryMib, 10); - else if (typeof object.memoryMib === "number") - message.memoryMib = object.memoryMib; - else if (typeof object.memoryMib === "object") - message.memoryMib = new $util.LongBits(object.memoryMib.low >>> 0, object.memoryMib.high >>> 0).toNumber(); - if (object.bootDiskMib != null) + var message = new $root.google.cloud.batch.v1alpha.Job(); + if (object.name != null) + message.name = String(object.name); + if (object.uid != null) + message.uid = String(object.uid); + if (object.priority != null) if ($util.Long) - (message.bootDiskMib = $util.Long.fromValue(object.bootDiskMib)).unsigned = false; - else if (typeof object.bootDiskMib === "string") - message.bootDiskMib = parseInt(object.bootDiskMib, 10); - else if (typeof object.bootDiskMib === "number") - message.bootDiskMib = object.bootDiskMib; - else if (typeof object.bootDiskMib === "object") - message.bootDiskMib = new $util.LongBits(object.bootDiskMib.low >>> 0, object.bootDiskMib.high >>> 0).toNumber(); + (message.priority = $util.Long.fromValue(object.priority)).unsigned = false; + else if (typeof object.priority === "string") + message.priority = parseInt(object.priority, 10); + else if (typeof object.priority === "number") + message.priority = object.priority; + else if (typeof object.priority === "object") + message.priority = new $util.LongBits(object.priority.low >>> 0, object.priority.high >>> 0).toNumber(); + if (object.taskGroups) { + if (!Array.isArray(object.taskGroups)) + throw TypeError(".google.cloud.batch.v1alpha.Job.taskGroups: array expected"); + message.taskGroups = []; + for (var i = 0; i < object.taskGroups.length; ++i) { + if (typeof object.taskGroups[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.taskGroups: object expected"); + message.taskGroups[i] = $root.google.cloud.batch.v1alpha.TaskGroup.fromObject(object.taskGroups[i]); + } + } + switch (object.schedulingPolicy) { + default: + if (typeof object.schedulingPolicy === "number") { + message.schedulingPolicy = object.schedulingPolicy; + break; + } + break; + case "SCHEDULING_POLICY_UNSPECIFIED": + case 0: + message.schedulingPolicy = 0; + break; + case "AS_SOON_AS_POSSIBLE": + case 1: + message.schedulingPolicy = 1; + break; + } + if (object.dependencies) { + if (!Array.isArray(object.dependencies)) + throw TypeError(".google.cloud.batch.v1alpha.Job.dependencies: array expected"); + message.dependencies = []; + for (var i = 0; i < object.dependencies.length; ++i) { + if (typeof object.dependencies[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.dependencies: object expected"); + message.dependencies[i] = $root.google.cloud.batch.v1alpha.JobDependency.fromObject(object.dependencies[i]); + } + } + if (object.allocationPolicy != null) { + if (typeof object.allocationPolicy !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.allocationPolicy: object expected"); + message.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.fromObject(object.allocationPolicy); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.status: object expected"); + message.status = $root.google.cloud.batch.v1alpha.JobStatus.fromObject(object.status); + } + if (object.notification != null) { + if (typeof object.notification !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.notification: object expected"); + message.notification = $root.google.cloud.batch.v1alpha.JobNotification.fromObject(object.notification); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.logsPolicy != null) { + if (typeof object.logsPolicy !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.logsPolicy: object expected"); + message.logsPolicy = $root.google.cloud.batch.v1alpha.LogsPolicy.fromObject(object.logsPolicy); + } + if (object.notifications) { + if (!Array.isArray(object.notifications)) + throw TypeError(".google.cloud.batch.v1alpha.Job.notifications: array expected"); + message.notifications = []; + for (var i = 0; i < object.notifications.length; ++i) { + if (typeof object.notifications[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Job.notifications: object expected"); + message.notifications[i] = $root.google.cloud.batch.v1alpha.JobNotification.fromObject(object.notifications[i]); + } + } return message; }; /** - * Creates a plain object from a ComputeResource message. Also converts values to other types if specified. + * Creates a plain object from a Job message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @static - * @param {google.cloud.batch.v1.ComputeResource} message ComputeResource + * @param {google.cloud.batch.v1alpha.Job} message Job * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComputeResource.toObject = function toObject(message, options) { + Job.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.taskGroups = []; + object.dependencies = []; + object.notifications = []; + } + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { + object.name = ""; + object.uid = ""; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.cpuMilli = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.cpuMilli = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.memoryMib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.memoryMib = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.bootDiskMib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.priority = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.bootDiskMib = options.longs === String ? "0" : 0; + object.priority = options.longs === String ? "0" : 0; + object.schedulingPolicy = options.enums === String ? "SCHEDULING_POLICY_UNSPECIFIED" : 0; + object.allocationPolicy = null; + object.status = null; + object.notification = null; + object.createTime = null; + object.updateTime = null; + object.logsPolicy = null; } - if (message.cpuMilli != null && message.hasOwnProperty("cpuMilli")) - if (typeof message.cpuMilli === "number") - object.cpuMilli = options.longs === String ? String(message.cpuMilli) : message.cpuMilli; - else - object.cpuMilli = options.longs === String ? $util.Long.prototype.toString.call(message.cpuMilli) : options.longs === Number ? new $util.LongBits(message.cpuMilli.low >>> 0, message.cpuMilli.high >>> 0).toNumber() : message.cpuMilli; - if (message.memoryMib != null && message.hasOwnProperty("memoryMib")) - if (typeof message.memoryMib === "number") - object.memoryMib = options.longs === String ? String(message.memoryMib) : message.memoryMib; - else - object.memoryMib = options.longs === String ? $util.Long.prototype.toString.call(message.memoryMib) : options.longs === Number ? new $util.LongBits(message.memoryMib.low >>> 0, message.memoryMib.high >>> 0).toNumber() : message.memoryMib; - if (message.bootDiskMib != null && message.hasOwnProperty("bootDiskMib")) - if (typeof message.bootDiskMib === "number") - object.bootDiskMib = options.longs === String ? String(message.bootDiskMib) : message.bootDiskMib; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.uid != null && message.hasOwnProperty("uid")) + object.uid = message.uid; + if (message.priority != null && message.hasOwnProperty("priority")) + if (typeof message.priority === "number") + object.priority = options.longs === String ? String(message.priority) : message.priority; else - object.bootDiskMib = options.longs === String ? $util.Long.prototype.toString.call(message.bootDiskMib) : options.longs === Number ? new $util.LongBits(message.bootDiskMib.low >>> 0, message.bootDiskMib.high >>> 0).toNumber() : message.bootDiskMib; + object.priority = options.longs === String ? $util.Long.prototype.toString.call(message.priority) : options.longs === Number ? new $util.LongBits(message.priority.low >>> 0, message.priority.high >>> 0).toNumber() : message.priority; + if (message.taskGroups && message.taskGroups.length) { + object.taskGroups = []; + for (var j = 0; j < message.taskGroups.length; ++j) + object.taskGroups[j] = $root.google.cloud.batch.v1alpha.TaskGroup.toObject(message.taskGroups[j], options); + } + if (message.schedulingPolicy != null && message.hasOwnProperty("schedulingPolicy")) + object.schedulingPolicy = options.enums === String ? $root.google.cloud.batch.v1alpha.Job.SchedulingPolicy[message.schedulingPolicy] === undefined ? message.schedulingPolicy : $root.google.cloud.batch.v1alpha.Job.SchedulingPolicy[message.schedulingPolicy] : message.schedulingPolicy; + if (message.dependencies && message.dependencies.length) { + object.dependencies = []; + for (var j = 0; j < message.dependencies.length; ++j) + object.dependencies[j] = $root.google.cloud.batch.v1alpha.JobDependency.toObject(message.dependencies[j], options); + } + if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) + object.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.toObject(message.allocationPolicy, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.cloud.batch.v1alpha.JobStatus.toObject(message.status, options); + if (message.notification != null && message.hasOwnProperty("notification")) + object.notification = $root.google.cloud.batch.v1alpha.JobNotification.toObject(message.notification, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.logsPolicy != null && message.hasOwnProperty("logsPolicy")) + object.logsPolicy = $root.google.cloud.batch.v1alpha.LogsPolicy.toObject(message.logsPolicy, options); + if (message.notifications && message.notifications.length) { + object.notifications = []; + for (var j = 0; j < message.notifications.length; ++j) + object.notifications[j] = $root.google.cloud.batch.v1alpha.JobNotification.toObject(message.notifications[j], options); + } return object; }; /** - * Converts this ComputeResource to JSON. + * Converts this Job to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @instance * @returns {Object.} JSON object */ - ComputeResource.prototype.toJSON = function toJSON() { + Job.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ComputeResource + * Gets the default type url for Job * @function getTypeUrl - * @memberof google.cloud.batch.v1.ComputeResource + * @memberof google.cloud.batch.v1alpha.Job * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ComputeResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Job.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.ComputeResource"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.Job"; }; - return ComputeResource; + /** + * SchedulingPolicy enum. + * @name google.cloud.batch.v1alpha.Job.SchedulingPolicy + * @enum {number} + * @property {number} SCHEDULING_POLICY_UNSPECIFIED=0 SCHEDULING_POLICY_UNSPECIFIED value + * @property {number} AS_SOON_AS_POSSIBLE=1 AS_SOON_AS_POSSIBLE value + */ + Job.SchedulingPolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SCHEDULING_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AS_SOON_AS_POSSIBLE"] = 1; + return values; + })(); + + return Job; })(); - v1.StatusEvent = (function() { + v1alpha.LogsPolicy = (function() { /** - * Properties of a StatusEvent. - * @memberof google.cloud.batch.v1 - * @interface IStatusEvent - * @property {string|null} [type] StatusEvent type - * @property {string|null} [description] StatusEvent description - * @property {google.protobuf.ITimestamp|null} [eventTime] StatusEvent eventTime - * @property {google.cloud.batch.v1.ITaskExecution|null} [taskExecution] StatusEvent taskExecution + * Properties of a LogsPolicy. + * @memberof google.cloud.batch.v1alpha + * @interface ILogsPolicy + * @property {google.cloud.batch.v1alpha.LogsPolicy.Destination|null} [destination] LogsPolicy destination + * @property {string|null} [logsPath] LogsPolicy logsPath */ /** - * Constructs a new StatusEvent. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a StatusEvent. - * @implements IStatusEvent + * Constructs a new LogsPolicy. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a LogsPolicy. + * @implements ILogsPolicy * @constructor - * @param {google.cloud.batch.v1.IStatusEvent=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.ILogsPolicy=} [properties] Properties to set */ - function StatusEvent(properties) { + function LogsPolicy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18999,117 +16742,89 @@ } /** - * StatusEvent type. - * @member {string} type - * @memberof google.cloud.batch.v1.StatusEvent - * @instance - */ - StatusEvent.prototype.type = ""; - - /** - * StatusEvent description. - * @member {string} description - * @memberof google.cloud.batch.v1.StatusEvent - * @instance - */ - StatusEvent.prototype.description = ""; - - /** - * StatusEvent eventTime. - * @member {google.protobuf.ITimestamp|null|undefined} eventTime - * @memberof google.cloud.batch.v1.StatusEvent + * LogsPolicy destination. + * @member {google.cloud.batch.v1alpha.LogsPolicy.Destination} destination + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @instance */ - StatusEvent.prototype.eventTime = null; + LogsPolicy.prototype.destination = 0; /** - * StatusEvent taskExecution. - * @member {google.cloud.batch.v1.ITaskExecution|null|undefined} taskExecution - * @memberof google.cloud.batch.v1.StatusEvent + * LogsPolicy logsPath. + * @member {string} logsPath + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @instance */ - StatusEvent.prototype.taskExecution = null; + LogsPolicy.prototype.logsPath = ""; /** - * Creates a new StatusEvent instance using the specified properties. + * Creates a new LogsPolicy instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @static - * @param {google.cloud.batch.v1.IStatusEvent=} [properties] Properties to set - * @returns {google.cloud.batch.v1.StatusEvent} StatusEvent instance + * @param {google.cloud.batch.v1alpha.ILogsPolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.LogsPolicy} LogsPolicy instance */ - StatusEvent.create = function create(properties) { - return new StatusEvent(properties); + LogsPolicy.create = function create(properties) { + return new LogsPolicy(properties); }; /** - * Encodes the specified StatusEvent message. Does not implicitly {@link google.cloud.batch.v1.StatusEvent.verify|verify} messages. + * Encodes the specified LogsPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.LogsPolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @static - * @param {google.cloud.batch.v1.IStatusEvent} message StatusEvent message or plain object to encode + * @param {google.cloud.batch.v1alpha.ILogsPolicy} message LogsPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatusEvent.encode = function encode(message, writer) { + LogsPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); - if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) - $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); - if (message.taskExecution != null && Object.hasOwnProperty.call(message, "taskExecution")) - $root.google.cloud.batch.v1.TaskExecution.encode(message.taskExecution, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.destination); + if (message.logsPath != null && Object.hasOwnProperty.call(message, "logsPath")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.logsPath); return writer; }; /** - * Encodes the specified StatusEvent message, length delimited. Does not implicitly {@link google.cloud.batch.v1.StatusEvent.verify|verify} messages. + * Encodes the specified LogsPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LogsPolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @static - * @param {google.cloud.batch.v1.IStatusEvent} message StatusEvent message or plain object to encode + * @param {google.cloud.batch.v1alpha.ILogsPolicy} message LogsPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatusEvent.encodeDelimited = function encodeDelimited(message, writer) { + LogsPolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StatusEvent message from the specified reader or buffer. + * Decodes a LogsPolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.StatusEvent} StatusEvent + * @returns {google.cloud.batch.v1alpha.LogsPolicy} LogsPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatusEvent.decode = function decode(reader, length) { + LogsPolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.StatusEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.LogsPolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.type = reader.string(); - break; - } case 1: { - message.description = reader.string(); + message.destination = reader.int32(); break; } case 2: { - message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.taskExecution = $root.google.cloud.batch.v1.TaskExecution.decode(reader, reader.uint32()); + message.logsPath = reader.string(); break; } default: @@ -19121,157 +16836,172 @@ }; /** - * Decodes a StatusEvent message from the specified reader or buffer, length delimited. + * Decodes a LogsPolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.StatusEvent} StatusEvent + * @returns {google.cloud.batch.v1alpha.LogsPolicy} LogsPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatusEvent.decodeDelimited = function decodeDelimited(reader) { + LogsPolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StatusEvent message. + * Verifies a LogsPolicy message. * @function verify - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StatusEvent.verify = function verify(message) { + LogsPolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.eventTime); - if (error) - return "eventTime." + error; - } - if (message.taskExecution != null && message.hasOwnProperty("taskExecution")) { - var error = $root.google.cloud.batch.v1.TaskExecution.verify(message.taskExecution); - if (error) - return "taskExecution." + error; - } + if (message.destination != null && message.hasOwnProperty("destination")) + switch (message.destination) { + default: + return "destination: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.logsPath != null && message.hasOwnProperty("logsPath")) + if (!$util.isString(message.logsPath)) + return "logsPath: string expected"; return null; }; /** - * Creates a StatusEvent message from a plain object. Also converts values to their respective internal types. + * Creates a LogsPolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.StatusEvent} StatusEvent + * @returns {google.cloud.batch.v1alpha.LogsPolicy} LogsPolicy */ - StatusEvent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.StatusEvent) + LogsPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.LogsPolicy) return object; - var message = new $root.google.cloud.batch.v1.StatusEvent(); - if (object.type != null) - message.type = String(object.type); - if (object.description != null) - message.description = String(object.description); - if (object.eventTime != null) { - if (typeof object.eventTime !== "object") - throw TypeError(".google.cloud.batch.v1.StatusEvent.eventTime: object expected"); - message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime); - } - if (object.taskExecution != null) { - if (typeof object.taskExecution !== "object") - throw TypeError(".google.cloud.batch.v1.StatusEvent.taskExecution: object expected"); - message.taskExecution = $root.google.cloud.batch.v1.TaskExecution.fromObject(object.taskExecution); + var message = new $root.google.cloud.batch.v1alpha.LogsPolicy(); + switch (object.destination) { + default: + if (typeof object.destination === "number") { + message.destination = object.destination; + break; + } + break; + case "DESTINATION_UNSPECIFIED": + case 0: + message.destination = 0; + break; + case "CLOUD_LOGGING": + case 1: + message.destination = 1; + break; + case "PATH": + case 2: + message.destination = 2; + break; } + if (object.logsPath != null) + message.logsPath = String(object.logsPath); return message; }; /** - * Creates a plain object from a StatusEvent message. Also converts values to other types if specified. + * Creates a plain object from a LogsPolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @static - * @param {google.cloud.batch.v1.StatusEvent} message StatusEvent + * @param {google.cloud.batch.v1alpha.LogsPolicy} message LogsPolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StatusEvent.toObject = function toObject(message, options) { + LogsPolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.description = ""; - object.eventTime = null; - object.type = ""; - object.taskExecution = null; + object.destination = options.enums === String ? "DESTINATION_UNSPECIFIED" : 0; + object.logsPath = ""; } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) - object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options); - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.taskExecution != null && message.hasOwnProperty("taskExecution")) - object.taskExecution = $root.google.cloud.batch.v1.TaskExecution.toObject(message.taskExecution, options); + if (message.destination != null && message.hasOwnProperty("destination")) + object.destination = options.enums === String ? $root.google.cloud.batch.v1alpha.LogsPolicy.Destination[message.destination] === undefined ? message.destination : $root.google.cloud.batch.v1alpha.LogsPolicy.Destination[message.destination] : message.destination; + if (message.logsPath != null && message.hasOwnProperty("logsPath")) + object.logsPath = message.logsPath; return object; }; /** - * Converts this StatusEvent to JSON. + * Converts this LogsPolicy to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @instance * @returns {Object.} JSON object */ - StatusEvent.prototype.toJSON = function toJSON() { + LogsPolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StatusEvent + * Gets the default type url for LogsPolicy * @function getTypeUrl - * @memberof google.cloud.batch.v1.StatusEvent + * @memberof google.cloud.batch.v1alpha.LogsPolicy * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StatusEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LogsPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.StatusEvent"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.LogsPolicy"; }; - return StatusEvent; + /** + * Destination enum. + * @name google.cloud.batch.v1alpha.LogsPolicy.Destination + * @enum {number} + * @property {number} DESTINATION_UNSPECIFIED=0 DESTINATION_UNSPECIFIED value + * @property {number} CLOUD_LOGGING=1 CLOUD_LOGGING value + * @property {number} PATH=2 PATH value + */ + LogsPolicy.Destination = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DESTINATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD_LOGGING"] = 1; + values[valuesById[2] = "PATH"] = 2; + return values; + })(); + + return LogsPolicy; })(); - v1.TaskExecution = (function() { + v1alpha.JobDependency = (function() { /** - * Properties of a TaskExecution. - * @memberof google.cloud.batch.v1 - * @interface ITaskExecution - * @property {number|null} [exitCode] TaskExecution exitCode + * Properties of a JobDependency. + * @memberof google.cloud.batch.v1alpha + * @interface IJobDependency + * @property {Object.|null} [items] JobDependency items */ /** - * Constructs a new TaskExecution. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a TaskExecution. - * @implements ITaskExecution + * Constructs a new JobDependency. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a JobDependency. + * @implements IJobDependency * @constructor - * @param {google.cloud.batch.v1.ITaskExecution=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IJobDependency=} [properties] Properties to set */ - function TaskExecution(properties) { + function JobDependency(properties) { + this.items = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19279,75 +17009,95 @@ } /** - * TaskExecution exitCode. - * @member {number} exitCode - * @memberof google.cloud.batch.v1.TaskExecution + * JobDependency items. + * @member {Object.} items + * @memberof google.cloud.batch.v1alpha.JobDependency * @instance */ - TaskExecution.prototype.exitCode = 0; + JobDependency.prototype.items = $util.emptyObject; /** - * Creates a new TaskExecution instance using the specified properties. + * Creates a new JobDependency instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @static - * @param {google.cloud.batch.v1.ITaskExecution=} [properties] Properties to set - * @returns {google.cloud.batch.v1.TaskExecution} TaskExecution instance + * @param {google.cloud.batch.v1alpha.IJobDependency=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.JobDependency} JobDependency instance */ - TaskExecution.create = function create(properties) { - return new TaskExecution(properties); + JobDependency.create = function create(properties) { + return new JobDependency(properties); }; /** - * Encodes the specified TaskExecution message. Does not implicitly {@link google.cloud.batch.v1.TaskExecution.verify|verify} messages. + * Encodes the specified JobDependency message. Does not implicitly {@link google.cloud.batch.v1alpha.JobDependency.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @static - * @param {google.cloud.batch.v1.ITaskExecution} message TaskExecution message or plain object to encode + * @param {google.cloud.batch.v1alpha.IJobDependency} message JobDependency message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecution.encode = function encode(message, writer) { + JobDependency.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.exitCode != null && Object.hasOwnProperty.call(message, "exitCode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.exitCode); + if (message.items != null && Object.hasOwnProperty.call(message, "items")) + for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.items[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified TaskExecution message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskExecution.verify|verify} messages. + * Encodes the specified JobDependency message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobDependency.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @static - * @param {google.cloud.batch.v1.ITaskExecution} message TaskExecution message or plain object to encode + * @param {google.cloud.batch.v1alpha.IJobDependency} message JobDependency message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskExecution.encodeDelimited = function encodeDelimited(message, writer) { + JobDependency.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TaskExecution message from the specified reader or buffer. + * Decodes a JobDependency message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.TaskExecution} TaskExecution + * @returns {google.cloud.batch.v1alpha.JobDependency} JobDependency * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskExecution.decode = function decode(reader, length) { + JobDependency.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.TaskExecution(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobDependency(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.exitCode = reader.int32(); + if (message.items === $util.emptyObject) + message.items = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.int32(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; break; } default: @@ -19359,124 +17109,189 @@ }; /** - * Decodes a TaskExecution message from the specified reader or buffer, length delimited. + * Decodes a JobDependency message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.TaskExecution} TaskExecution + * @returns {google.cloud.batch.v1alpha.JobDependency} JobDependency * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskExecution.decodeDelimited = function decodeDelimited(reader) { + JobDependency.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TaskExecution message. + * Verifies a JobDependency message. * @function verify - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TaskExecution.verify = function verify(message) { + JobDependency.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.exitCode != null && message.hasOwnProperty("exitCode")) - if (!$util.isInteger(message.exitCode)) - return "exitCode: integer expected"; + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) + switch (message.items[key[i]]) { + default: + return "items: enum value{k:string} expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } return null; }; /** - * Creates a TaskExecution message from a plain object. Also converts values to their respective internal types. + * Creates a JobDependency message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.TaskExecution} TaskExecution + * @returns {google.cloud.batch.v1alpha.JobDependency} JobDependency */ - TaskExecution.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.TaskExecution) + JobDependency.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.JobDependency) return object; - var message = new $root.google.cloud.batch.v1.TaskExecution(); - if (object.exitCode != null) - message.exitCode = object.exitCode | 0; + var message = new $root.google.cloud.batch.v1alpha.JobDependency(); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.batch.v1alpha.JobDependency.items: object expected"); + message.items = {}; + for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) + switch (object.items[keys[i]]) { + default: + if (typeof object.items[keys[i]] === "number") { + message.items[keys[i]] = object.items[keys[i]]; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.items[keys[i]] = 0; + break; + case "SUCCEEDED": + case 1: + message.items[keys[i]] = 1; + break; + case "FAILED": + case 2: + message.items[keys[i]] = 2; + break; + case "FINISHED": + case 3: + message.items[keys[i]] = 3; + break; + } + } return message; }; /** - * Creates a plain object from a TaskExecution message. Also converts values to other types if specified. + * Creates a plain object from a JobDependency message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @static - * @param {google.cloud.batch.v1.TaskExecution} message TaskExecution + * @param {google.cloud.batch.v1alpha.JobDependency} message JobDependency * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TaskExecution.toObject = function toObject(message, options) { + JobDependency.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.exitCode = 0; - if (message.exitCode != null && message.hasOwnProperty("exitCode")) - object.exitCode = message.exitCode; + if (options.objects || options.defaults) + object.items = {}; + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = options.enums === String ? $root.google.cloud.batch.v1alpha.JobDependency.Type[message.items[keys2[j]]] === undefined ? message.items[keys2[j]] : $root.google.cloud.batch.v1alpha.JobDependency.Type[message.items[keys2[j]]] : message.items[keys2[j]]; + } return object; }; /** - * Converts this TaskExecution to JSON. + * Converts this JobDependency to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @instance * @returns {Object.} JSON object */ - TaskExecution.prototype.toJSON = function toJSON() { + JobDependency.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TaskExecution + * Gets the default type url for JobDependency * @function getTypeUrl - * @memberof google.cloud.batch.v1.TaskExecution + * @memberof google.cloud.batch.v1alpha.JobDependency * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TaskExecution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + JobDependency.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.TaskExecution"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobDependency"; }; - return TaskExecution; + /** + * Type enum. + * @name google.cloud.batch.v1alpha.JobDependency.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} SUCCEEDED=1 SUCCEEDED value + * @property {number} FAILED=2 FAILED value + * @property {number} FINISHED=3 FINISHED value + */ + JobDependency.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "SUCCEEDED"] = 1; + values[valuesById[2] = "FAILED"] = 2; + values[valuesById[3] = "FINISHED"] = 3; + return values; + })(); + + return JobDependency; })(); - v1.TaskStatus = (function() { + v1alpha.JobStatus = (function() { /** - * Properties of a TaskStatus. - * @memberof google.cloud.batch.v1 - * @interface ITaskStatus - * @property {google.cloud.batch.v1.TaskStatus.State|null} [state] TaskStatus state - * @property {Array.|null} [statusEvents] TaskStatus statusEvents + * Properties of a JobStatus. + * @memberof google.cloud.batch.v1alpha + * @interface IJobStatus + * @property {google.cloud.batch.v1alpha.JobStatus.State|null} [state] JobStatus state + * @property {Array.|null} [statusEvents] JobStatus statusEvents + * @property {Object.|null} [taskGroups] JobStatus taskGroups + * @property {google.protobuf.IDuration|null} [runDuration] JobStatus runDuration */ /** - * Constructs a new TaskStatus. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a TaskStatus. - * @implements ITaskStatus + * Constructs a new JobStatus. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a JobStatus. + * @implements IJobStatus * @constructor - * @param {google.cloud.batch.v1.ITaskStatus=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IJobStatus=} [properties] Properties to set */ - function TaskStatus(properties) { + function JobStatus(properties) { this.statusEvents = []; + this.taskGroups = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19484,81 +17299,104 @@ } /** - * TaskStatus state. - * @member {google.cloud.batch.v1.TaskStatus.State} state - * @memberof google.cloud.batch.v1.TaskStatus + * JobStatus state. + * @member {google.cloud.batch.v1alpha.JobStatus.State} state + * @memberof google.cloud.batch.v1alpha.JobStatus * @instance */ - TaskStatus.prototype.state = 0; + JobStatus.prototype.state = 0; /** - * TaskStatus statusEvents. - * @member {Array.} statusEvents - * @memberof google.cloud.batch.v1.TaskStatus + * JobStatus statusEvents. + * @member {Array.} statusEvents + * @memberof google.cloud.batch.v1alpha.JobStatus * @instance */ - TaskStatus.prototype.statusEvents = $util.emptyArray; + JobStatus.prototype.statusEvents = $util.emptyArray; /** - * Creates a new TaskStatus instance using the specified properties. + * JobStatus taskGroups. + * @member {Object.} taskGroups + * @memberof google.cloud.batch.v1alpha.JobStatus + * @instance + */ + JobStatus.prototype.taskGroups = $util.emptyObject; + + /** + * JobStatus runDuration. + * @member {google.protobuf.IDuration|null|undefined} runDuration + * @memberof google.cloud.batch.v1alpha.JobStatus + * @instance + */ + JobStatus.prototype.runDuration = null; + + /** + * Creates a new JobStatus instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @static - * @param {google.cloud.batch.v1.ITaskStatus=} [properties] Properties to set - * @returns {google.cloud.batch.v1.TaskStatus} TaskStatus instance + * @param {google.cloud.batch.v1alpha.IJobStatus=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.JobStatus} JobStatus instance */ - TaskStatus.create = function create(properties) { - return new TaskStatus(properties); + JobStatus.create = function create(properties) { + return new JobStatus(properties); }; /** - * Encodes the specified TaskStatus message. Does not implicitly {@link google.cloud.batch.v1.TaskStatus.verify|verify} messages. + * Encodes the specified JobStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @static - * @param {google.cloud.batch.v1.ITaskStatus} message TaskStatus message or plain object to encode + * @param {google.cloud.batch.v1alpha.IJobStatus} message JobStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskStatus.encode = function encode(message, writer) { + JobStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); if (message.statusEvents != null && message.statusEvents.length) for (var i = 0; i < message.statusEvents.length; ++i) - $root.google.cloud.batch.v1.StatusEvent.encode(message.statusEvents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.batch.v1alpha.StatusEvent.encode(message.statusEvents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.taskGroups != null && Object.hasOwnProperty.call(message, "taskGroups")) + for (var keys = Object.keys(message.taskGroups), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.encode(message.taskGroups[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.runDuration != null && Object.hasOwnProperty.call(message, "runDuration")) + $root.google.protobuf.Duration.encode(message.runDuration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified TaskStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskStatus.verify|verify} messages. + * Encodes the specified JobStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @static - * @param {google.cloud.batch.v1.ITaskStatus} message TaskStatus message or plain object to encode + * @param {google.cloud.batch.v1alpha.IJobStatus} message JobStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskStatus.encodeDelimited = function encodeDelimited(message, writer) { + JobStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TaskStatus message from the specified reader or buffer. + * Decodes a JobStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.TaskStatus} TaskStatus + * @returns {google.cloud.batch.v1alpha.JobStatus} JobStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskStatus.decode = function decode(reader, length) { + JobStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.TaskStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobStatus(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19569,7 +17407,34 @@ case 2: { if (!(message.statusEvents && message.statusEvents.length)) message.statusEvents = []; - message.statusEvents.push($root.google.cloud.batch.v1.StatusEvent.decode(reader, reader.uint32())); + message.statusEvents.push($root.google.cloud.batch.v1alpha.StatusEvent.decode(reader, reader.uint32())); + break; + } + case 4: { + if (message.taskGroups === $util.emptyObject) + message.taskGroups = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.taskGroups[key] = value; + break; + } + case 5: { + message.runDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -19581,30 +17446,30 @@ }; /** - * Decodes a TaskStatus message from the specified reader or buffer, length delimited. + * Decodes a JobStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.TaskStatus} TaskStatus + * @returns {google.cloud.batch.v1alpha.JobStatus} JobStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskStatus.decodeDelimited = function decodeDelimited(reader) { + JobStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TaskStatus message. + * Verifies a JobStatus message. * @function verify - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TaskStatus.verify = function verify(message) { + JobStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.state != null && message.hasOwnProperty("state")) @@ -19617,32 +17482,48 @@ case 3: case 4: case 5: + case 6: break; } if (message.statusEvents != null && message.hasOwnProperty("statusEvents")) { if (!Array.isArray(message.statusEvents)) return "statusEvents: array expected"; for (var i = 0; i < message.statusEvents.length; ++i) { - var error = $root.google.cloud.batch.v1.StatusEvent.verify(message.statusEvents[i]); + var error = $root.google.cloud.batch.v1alpha.StatusEvent.verify(message.statusEvents[i]); if (error) return "statusEvents." + error; } } + if (message.taskGroups != null && message.hasOwnProperty("taskGroups")) { + if (!$util.isObject(message.taskGroups)) + return "taskGroups: object expected"; + var key = Object.keys(message.taskGroups); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify(message.taskGroups[key[i]]); + if (error) + return "taskGroups." + error; + } + } + if (message.runDuration != null && message.hasOwnProperty("runDuration")) { + var error = $root.google.protobuf.Duration.verify(message.runDuration); + if (error) + return "runDuration." + error; + } return null; }; /** - * Creates a TaskStatus message from a plain object. Also converts values to their respective internal types. + * Creates a JobStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.TaskStatus} TaskStatus + * @returns {google.cloud.batch.v1alpha.JobStatus} JobStatus */ - TaskStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.TaskStatus) + JobStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.JobStatus) return object; - var message = new $root.google.cloud.batch.v1.TaskStatus(); + var message = new $root.google.cloud.batch.v1alpha.JobStatus(); switch (object.state) { default: if (typeof object.state === "number") { @@ -19654,11 +17535,11 @@ case 0: message.state = 0; break; - case "PENDING": + case "QUEUED": case 1: message.state = 1; break; - case "ASSIGNED": + case "SCHEDULED": case 2: message.state = 2; break; @@ -19666,554 +17547,454 @@ case 3: message.state = 3; break; - case "FAILED": + case "SUCCEEDED": case 4: message.state = 4; break; - case "SUCCEEDED": + case "FAILED": case 5: message.state = 5; break; + case "DELETION_IN_PROGRESS": + case 6: + message.state = 6; + break; } if (object.statusEvents) { if (!Array.isArray(object.statusEvents)) - throw TypeError(".google.cloud.batch.v1.TaskStatus.statusEvents: array expected"); + throw TypeError(".google.cloud.batch.v1alpha.JobStatus.statusEvents: array expected"); message.statusEvents = []; for (var i = 0; i < object.statusEvents.length; ++i) { if (typeof object.statusEvents[i] !== "object") - throw TypeError(".google.cloud.batch.v1.TaskStatus.statusEvents: object expected"); - message.statusEvents[i] = $root.google.cloud.batch.v1.StatusEvent.fromObject(object.statusEvents[i]); + throw TypeError(".google.cloud.batch.v1alpha.JobStatus.statusEvents: object expected"); + message.statusEvents[i] = $root.google.cloud.batch.v1alpha.StatusEvent.fromObject(object.statusEvents[i]); + } + } + if (object.taskGroups) { + if (typeof object.taskGroups !== "object") + throw TypeError(".google.cloud.batch.v1alpha.JobStatus.taskGroups: object expected"); + message.taskGroups = {}; + for (var keys = Object.keys(object.taskGroups), i = 0; i < keys.length; ++i) { + if (typeof object.taskGroups[keys[i]] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.JobStatus.taskGroups: object expected"); + message.taskGroups[keys[i]] = $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.fromObject(object.taskGroups[keys[i]]); } } + if (object.runDuration != null) { + if (typeof object.runDuration !== "object") + throw TypeError(".google.cloud.batch.v1alpha.JobStatus.runDuration: object expected"); + message.runDuration = $root.google.protobuf.Duration.fromObject(object.runDuration); + } return message; }; /** - * Creates a plain object from a TaskStatus message. Also converts values to other types if specified. + * Creates a plain object from a JobStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @static - * @param {google.cloud.batch.v1.TaskStatus} message TaskStatus + * @param {google.cloud.batch.v1alpha.JobStatus} message JobStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TaskStatus.toObject = function toObject(message, options) { + JobStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) object.statusEvents = []; - if (options.defaults) + if (options.objects || options.defaults) + object.taskGroups = {}; + if (options.defaults) { object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.runDuration = null; + } if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.batch.v1.TaskStatus.State[message.state] === undefined ? message.state : $root.google.cloud.batch.v1.TaskStatus.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.batch.v1alpha.JobStatus.State[message.state] === undefined ? message.state : $root.google.cloud.batch.v1alpha.JobStatus.State[message.state] : message.state; if (message.statusEvents && message.statusEvents.length) { object.statusEvents = []; for (var j = 0; j < message.statusEvents.length; ++j) - object.statusEvents[j] = $root.google.cloud.batch.v1.StatusEvent.toObject(message.statusEvents[j], options); + object.statusEvents[j] = $root.google.cloud.batch.v1alpha.StatusEvent.toObject(message.statusEvents[j], options); + } + var keys2; + if (message.taskGroups && (keys2 = Object.keys(message.taskGroups)).length) { + object.taskGroups = {}; + for (var j = 0; j < keys2.length; ++j) + object.taskGroups[keys2[j]] = $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.toObject(message.taskGroups[keys2[j]], options); } + if (message.runDuration != null && message.hasOwnProperty("runDuration")) + object.runDuration = $root.google.protobuf.Duration.toObject(message.runDuration, options); return object; }; /** - * Converts this TaskStatus to JSON. + * Converts this JobStatus to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @instance * @returns {Object.} JSON object */ - TaskStatus.prototype.toJSON = function toJSON() { + JobStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TaskStatus + * Gets the default type url for JobStatus * @function getTypeUrl - * @memberof google.cloud.batch.v1.TaskStatus + * @memberof google.cloud.batch.v1alpha.JobStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + JobStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.TaskStatus"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobStatus"; }; - /** - * State enum. - * @name google.cloud.batch.v1.TaskStatus.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} ASSIGNED=2 ASSIGNED value - * @property {number} RUNNING=3 RUNNING value - * @property {number} FAILED=4 FAILED value - * @property {number} SUCCEEDED=5 SUCCEEDED value - */ - TaskStatus.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "ASSIGNED"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "FAILED"] = 4; - values[valuesById[5] = "SUCCEEDED"] = 5; - return values; - })(); - - return TaskStatus; - })(); + JobStatus.InstanceStatus = (function() { - v1.Runnable = (function() { + /** + * Properties of an InstanceStatus. + * @memberof google.cloud.batch.v1alpha.JobStatus + * @interface IInstanceStatus + * @property {string|null} [machineType] InstanceStatus machineType + * @property {google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|null} [provisioningModel] InstanceStatus provisioningModel + * @property {number|Long|null} [taskPack] InstanceStatus taskPack + * @property {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null} [bootDisk] InstanceStatus bootDisk + */ - /** - * Properties of a Runnable. - * @memberof google.cloud.batch.v1 - * @interface IRunnable - * @property {google.cloud.batch.v1.Runnable.IContainer|null} [container] Runnable container - * @property {google.cloud.batch.v1.Runnable.IScript|null} [script] Runnable script - * @property {google.cloud.batch.v1.Runnable.IBarrier|null} [barrier] Runnable barrier - * @property {boolean|null} [ignoreExitStatus] Runnable ignoreExitStatus - * @property {boolean|null} [background] Runnable background - * @property {boolean|null} [alwaysRun] Runnable alwaysRun - * @property {google.cloud.batch.v1.IEnvironment|null} [environment] Runnable environment - * @property {google.protobuf.IDuration|null} [timeout] Runnable timeout - */ + /** + * Constructs a new InstanceStatus. + * @memberof google.cloud.batch.v1alpha.JobStatus + * @classdesc Represents an InstanceStatus. + * @implements IInstanceStatus + * @constructor + * @param {google.cloud.batch.v1alpha.JobStatus.IInstanceStatus=} [properties] Properties to set + */ + function InstanceStatus(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]]; + } - /** - * Constructs a new Runnable. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a Runnable. - * @implements IRunnable - * @constructor - * @param {google.cloud.batch.v1.IRunnable=} [properties] Properties to set - */ - function Runnable(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]]; - } + /** + * InstanceStatus machineType. + * @member {string} machineType + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @instance + */ + InstanceStatus.prototype.machineType = ""; - /** - * Runnable container. - * @member {google.cloud.batch.v1.Runnable.IContainer|null|undefined} container - * @memberof google.cloud.batch.v1.Runnable - * @instance - */ - Runnable.prototype.container = null; + /** + * InstanceStatus provisioningModel. + * @member {google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel} provisioningModel + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @instance + */ + InstanceStatus.prototype.provisioningModel = 0; - /** - * Runnable script. - * @member {google.cloud.batch.v1.Runnable.IScript|null|undefined} script - * @memberof google.cloud.batch.v1.Runnable - * @instance - */ - Runnable.prototype.script = null; + /** + * InstanceStatus taskPack. + * @member {number|Long} taskPack + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @instance + */ + InstanceStatus.prototype.taskPack = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Runnable barrier. - * @member {google.cloud.batch.v1.Runnable.IBarrier|null|undefined} barrier - * @memberof google.cloud.batch.v1.Runnable - * @instance - */ - Runnable.prototype.barrier = null; + /** + * InstanceStatus bootDisk. + * @member {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null|undefined} bootDisk + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @instance + */ + InstanceStatus.prototype.bootDisk = null; - /** - * Runnable ignoreExitStatus. - * @member {boolean} ignoreExitStatus - * @memberof google.cloud.batch.v1.Runnable - * @instance - */ - Runnable.prototype.ignoreExitStatus = false; + /** + * Creates a new InstanceStatus instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @static + * @param {google.cloud.batch.v1alpha.JobStatus.IInstanceStatus=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} InstanceStatus instance + */ + InstanceStatus.create = function create(properties) { + return new InstanceStatus(properties); + }; - /** - * Runnable background. - * @member {boolean} background - * @memberof google.cloud.batch.v1.Runnable - * @instance - */ - Runnable.prototype.background = false; + /** + * Encodes the specified InstanceStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @static + * @param {google.cloud.batch.v1alpha.JobStatus.IInstanceStatus} message InstanceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); + if (message.provisioningModel != null && Object.hasOwnProperty.call(message, "provisioningModel")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.provisioningModel); + if (message.taskPack != null && Object.hasOwnProperty.call(message, "taskPack")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.taskPack); + if (message.bootDisk != null && Object.hasOwnProperty.call(message, "bootDisk")) + $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.encode(message.bootDisk, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Runnable alwaysRun. - * @member {boolean} alwaysRun - * @memberof google.cloud.batch.v1.Runnable - * @instance - */ - Runnable.prototype.alwaysRun = false; + /** + * Encodes the specified InstanceStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @static + * @param {google.cloud.batch.v1alpha.JobStatus.IInstanceStatus} message InstanceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Runnable environment. - * @member {google.cloud.batch.v1.IEnvironment|null|undefined} environment - * @memberof google.cloud.batch.v1.Runnable - * @instance - */ - Runnable.prototype.environment = null; + /** + * Decodes an InstanceStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} InstanceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.machineType = reader.string(); + break; + } + case 2: { + message.provisioningModel = reader.int32(); + break; + } + case 3: { + message.taskPack = reader.int64(); + break; + } + case 4: { + message.bootDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Runnable timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof google.cloud.batch.v1.Runnable - * @instance - */ - Runnable.prototype.timeout = null; + /** + * Decodes an InstanceStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} InstanceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Verifies an InstanceStatus message. + * @function verify + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.machineType != null && message.hasOwnProperty("machineType")) + if (!$util.isString(message.machineType)) + return "machineType: string expected"; + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) + switch (message.provisioningModel) { + default: + return "provisioningModel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.taskPack != null && message.hasOwnProperty("taskPack")) + if (!$util.isInteger(message.taskPack) && !(message.taskPack && $util.isInteger(message.taskPack.low) && $util.isInteger(message.taskPack.high))) + return "taskPack: integer|Long expected"; + if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify(message.bootDisk); + if (error) + return "bootDisk." + error; + } + return null; + }; - /** - * Runnable executable. - * @member {"container"|"script"|"barrier"|undefined} executable - * @memberof google.cloud.batch.v1.Runnable - * @instance - */ - Object.defineProperty(Runnable.prototype, "executable", { - get: $util.oneOfGetter($oneOfFields = ["container", "script", "barrier"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Creates an InstanceStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} InstanceStatus + */ + InstanceStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus) + return object; + var message = new $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus(); + if (object.machineType != null) + message.machineType = String(object.machineType); + switch (object.provisioningModel) { + default: + if (typeof object.provisioningModel === "number") { + message.provisioningModel = object.provisioningModel; + break; + } + break; + case "PROVISIONING_MODEL_UNSPECIFIED": + case 0: + message.provisioningModel = 0; + break; + case "STANDARD": + case 1: + message.provisioningModel = 1; + break; + case "SPOT": + case 2: + message.provisioningModel = 2; + break; + case "PREEMPTIBLE": + case 3: + message.provisioningModel = 3; + break; + } + if (object.taskPack != null) + if ($util.Long) + (message.taskPack = $util.Long.fromValue(object.taskPack)).unsigned = false; + else if (typeof object.taskPack === "string") + message.taskPack = parseInt(object.taskPack, 10); + else if (typeof object.taskPack === "number") + message.taskPack = object.taskPack; + else if (typeof object.taskPack === "object") + message.taskPack = new $util.LongBits(object.taskPack.low >>> 0, object.taskPack.high >>> 0).toNumber(); + if (object.bootDisk != null) { + if (typeof object.bootDisk !== "object") + throw TypeError(".google.cloud.batch.v1alpha.JobStatus.InstanceStatus.bootDisk: object expected"); + message.bootDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.fromObject(object.bootDisk); + } + return message; + }; - /** - * Creates a new Runnable instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.Runnable - * @static - * @param {google.cloud.batch.v1.IRunnable=} [properties] Properties to set - * @returns {google.cloud.batch.v1.Runnable} Runnable instance - */ - Runnable.create = function create(properties) { - return new Runnable(properties); - }; - - /** - * Encodes the specified Runnable message. Does not implicitly {@link google.cloud.batch.v1.Runnable.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.Runnable - * @static - * @param {google.cloud.batch.v1.IRunnable} message Runnable message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Runnable.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.container != null && Object.hasOwnProperty.call(message, "container")) - $root.google.cloud.batch.v1.Runnable.Container.encode(message.container, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.script != null && Object.hasOwnProperty.call(message, "script")) - $root.google.cloud.batch.v1.Runnable.Script.encode(message.script, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.ignoreExitStatus != null && Object.hasOwnProperty.call(message, "ignoreExitStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ignoreExitStatus); - if (message.background != null && Object.hasOwnProperty.call(message, "background")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.background); - if (message.alwaysRun != null && Object.hasOwnProperty.call(message, "alwaysRun")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.alwaysRun); - if (message.barrier != null && Object.hasOwnProperty.call(message, "barrier")) - $root.google.cloud.batch.v1.Runnable.Barrier.encode(message.barrier, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.batch.v1.Environment.encode(message.environment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Runnable message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.Runnable - * @static - * @param {google.cloud.batch.v1.IRunnable} message Runnable message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Runnable.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Runnable message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.Runnable - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.Runnable} Runnable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Runnable.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Runnable(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.container = $root.google.cloud.batch.v1.Runnable.Container.decode(reader, reader.uint32()); - break; - } - case 2: { - message.script = $root.google.cloud.batch.v1.Runnable.Script.decode(reader, reader.uint32()); - break; - } - case 6: { - message.barrier = $root.google.cloud.batch.v1.Runnable.Barrier.decode(reader, reader.uint32()); - break; - } - case 3: { - message.ignoreExitStatus = reader.bool(); - break; - } - case 4: { - message.background = reader.bool(); - break; - } - case 5: { - message.alwaysRun = reader.bool(); - break; - } - case 7: { - message.environment = $root.google.cloud.batch.v1.Environment.decode(reader, reader.uint32()); - break; - } - case 8: { - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Runnable message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.Runnable - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.Runnable} Runnable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Runnable.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Runnable message. - * @function verify - * @memberof google.cloud.batch.v1.Runnable - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Runnable.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.container != null && message.hasOwnProperty("container")) { - properties.executable = 1; - { - var error = $root.google.cloud.batch.v1.Runnable.Container.verify(message.container); - if (error) - return "container." + error; - } - } - if (message.script != null && message.hasOwnProperty("script")) { - if (properties.executable === 1) - return "executable: multiple values"; - properties.executable = 1; - { - var error = $root.google.cloud.batch.v1.Runnable.Script.verify(message.script); - if (error) - return "script." + error; - } - } - if (message.barrier != null && message.hasOwnProperty("barrier")) { - if (properties.executable === 1) - return "executable: multiple values"; - properties.executable = 1; - { - var error = $root.google.cloud.batch.v1.Runnable.Barrier.verify(message.barrier); - if (error) - return "barrier." + error; + /** + * Creates a plain object from an InstanceStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @static + * @param {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} message InstanceStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.machineType = ""; + object.provisioningModel = options.enums === String ? "PROVISIONING_MODEL_UNSPECIFIED" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskPack = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskPack = options.longs === String ? "0" : 0; + object.bootDisk = null; } - } - if (message.ignoreExitStatus != null && message.hasOwnProperty("ignoreExitStatus")) - if (typeof message.ignoreExitStatus !== "boolean") - return "ignoreExitStatus: boolean expected"; - if (message.background != null && message.hasOwnProperty("background")) - if (typeof message.background !== "boolean") - return "background: boolean expected"; - if (message.alwaysRun != null && message.hasOwnProperty("alwaysRun")) - if (typeof message.alwaysRun !== "boolean") - return "alwaysRun: boolean expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.batch.v1.Environment.verify(message.environment); - if (error) - return "environment." + error; - } - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - return null; - }; - - /** - * Creates a Runnable message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.Runnable - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.Runnable} Runnable - */ - Runnable.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.Runnable) + if (message.machineType != null && message.hasOwnProperty("machineType")) + object.machineType = message.machineType; + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) + object.provisioningModel = options.enums === String ? $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModel] === undefined ? message.provisioningModel : $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModel] : message.provisioningModel; + if (message.taskPack != null && message.hasOwnProperty("taskPack")) + if (typeof message.taskPack === "number") + object.taskPack = options.longs === String ? String(message.taskPack) : message.taskPack; + else + object.taskPack = options.longs === String ? $util.Long.prototype.toString.call(message.taskPack) : options.longs === Number ? new $util.LongBits(message.taskPack.low >>> 0, message.taskPack.high >>> 0).toNumber() : message.taskPack; + if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) + object.bootDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.toObject(message.bootDisk, options); return object; - var message = new $root.google.cloud.batch.v1.Runnable(); - if (object.container != null) { - if (typeof object.container !== "object") - throw TypeError(".google.cloud.batch.v1.Runnable.container: object expected"); - message.container = $root.google.cloud.batch.v1.Runnable.Container.fromObject(object.container); - } - if (object.script != null) { - if (typeof object.script !== "object") - throw TypeError(".google.cloud.batch.v1.Runnable.script: object expected"); - message.script = $root.google.cloud.batch.v1.Runnable.Script.fromObject(object.script); - } - if (object.barrier != null) { - if (typeof object.barrier !== "object") - throw TypeError(".google.cloud.batch.v1.Runnable.barrier: object expected"); - message.barrier = $root.google.cloud.batch.v1.Runnable.Barrier.fromObject(object.barrier); - } - if (object.ignoreExitStatus != null) - message.ignoreExitStatus = Boolean(object.ignoreExitStatus); - if (object.background != null) - message.background = Boolean(object.background); - if (object.alwaysRun != null) - message.alwaysRun = Boolean(object.alwaysRun); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.batch.v1.Runnable.environment: object expected"); - message.environment = $root.google.cloud.batch.v1.Environment.fromObject(object.environment); - } - if (object.timeout != null) { - if (typeof object.timeout !== "object") - throw TypeError(".google.cloud.batch.v1.Runnable.timeout: object expected"); - message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); - } - return message; - }; + }; - /** - * Creates a plain object from a Runnable message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.Runnable - * @static - * @param {google.cloud.batch.v1.Runnable} message Runnable - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Runnable.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.ignoreExitStatus = false; - object.background = false; - object.alwaysRun = false; - object.environment = null; - object.timeout = null; - } - if (message.container != null && message.hasOwnProperty("container")) { - object.container = $root.google.cloud.batch.v1.Runnable.Container.toObject(message.container, options); - if (options.oneofs) - object.executable = "container"; - } - if (message.script != null && message.hasOwnProperty("script")) { - object.script = $root.google.cloud.batch.v1.Runnable.Script.toObject(message.script, options); - if (options.oneofs) - object.executable = "script"; - } - if (message.ignoreExitStatus != null && message.hasOwnProperty("ignoreExitStatus")) - object.ignoreExitStatus = message.ignoreExitStatus; - if (message.background != null && message.hasOwnProperty("background")) - object.background = message.background; - if (message.alwaysRun != null && message.hasOwnProperty("alwaysRun")) - object.alwaysRun = message.alwaysRun; - if (message.barrier != null && message.hasOwnProperty("barrier")) { - object.barrier = $root.google.cloud.batch.v1.Runnable.Barrier.toObject(message.barrier, options); - if (options.oneofs) - object.executable = "barrier"; - } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.batch.v1.Environment.toObject(message.environment, options); - if (message.timeout != null && message.hasOwnProperty("timeout")) - object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); - return object; - }; + /** + * Converts this InstanceStatus to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @instance + * @returns {Object.} JSON object + */ + InstanceStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this Runnable to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.Runnable - * @instance - * @returns {Object.} JSON object - */ - Runnable.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for InstanceStatus + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobStatus.InstanceStatus"; + }; - /** - * Gets the default type url for Runnable - * @function getTypeUrl - * @memberof google.cloud.batch.v1.Runnable - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Runnable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.Runnable"; - }; + return InstanceStatus; + })(); - Runnable.Container = (function() { + JobStatus.TaskGroupStatus = (function() { /** - * Properties of a Container. - * @memberof google.cloud.batch.v1.Runnable - * @interface IContainer - * @property {string|null} [imageUri] Container imageUri - * @property {Array.|null} [commands] Container commands - * @property {string|null} [entrypoint] Container entrypoint - * @property {Array.|null} [volumes] Container volumes - * @property {string|null} [options] Container options - * @property {boolean|null} [blockExternalNetwork] Container blockExternalNetwork - * @property {string|null} [username] Container username - * @property {string|null} [password] Container password + * Properties of a TaskGroupStatus. + * @memberof google.cloud.batch.v1alpha.JobStatus + * @interface ITaskGroupStatus + * @property {Object.|null} [counts] TaskGroupStatus counts + * @property {Array.|null} [instances] TaskGroupStatus instances */ /** - * Constructs a new Container. - * @memberof google.cloud.batch.v1.Runnable - * @classdesc Represents a Container. - * @implements IContainer + * Constructs a new TaskGroupStatus. + * @memberof google.cloud.batch.v1alpha.JobStatus + * @classdesc Represents a TaskGroupStatus. + * @implements ITaskGroupStatus * @constructor - * @param {google.cloud.batch.v1.Runnable.IContainer=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus=} [properties] Properties to set */ - function Container(properties) { - this.commands = []; - this.volumes = []; + function TaskGroupStatus(properties) { + this.counts = {}; + this.instances = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20221,179 +18002,112 @@ } /** - * Container imageUri. - * @member {string} imageUri - * @memberof google.cloud.batch.v1.Runnable.Container - * @instance - */ - Container.prototype.imageUri = ""; - - /** - * Container commands. - * @member {Array.} commands - * @memberof google.cloud.batch.v1.Runnable.Container - * @instance - */ - Container.prototype.commands = $util.emptyArray; - - /** - * Container entrypoint. - * @member {string} entrypoint - * @memberof google.cloud.batch.v1.Runnable.Container - * @instance - */ - Container.prototype.entrypoint = ""; - - /** - * Container volumes. - * @member {Array.} volumes - * @memberof google.cloud.batch.v1.Runnable.Container - * @instance - */ - Container.prototype.volumes = $util.emptyArray; - - /** - * Container options. - * @member {string} options - * @memberof google.cloud.batch.v1.Runnable.Container - * @instance - */ - Container.prototype.options = ""; - - /** - * Container blockExternalNetwork. - * @member {boolean} blockExternalNetwork - * @memberof google.cloud.batch.v1.Runnable.Container - * @instance - */ - Container.prototype.blockExternalNetwork = false; - - /** - * Container username. - * @member {string} username - * @memberof google.cloud.batch.v1.Runnable.Container + * TaskGroupStatus counts. + * @member {Object.} counts + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @instance */ - Container.prototype.username = ""; + TaskGroupStatus.prototype.counts = $util.emptyObject; /** - * Container password. - * @member {string} password - * @memberof google.cloud.batch.v1.Runnable.Container + * TaskGroupStatus instances. + * @member {Array.} instances + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @instance */ - Container.prototype.password = ""; + TaskGroupStatus.prototype.instances = $util.emptyArray; /** - * Creates a new Container instance using the specified properties. + * Creates a new TaskGroupStatus instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @static - * @param {google.cloud.batch.v1.Runnable.IContainer=} [properties] Properties to set - * @returns {google.cloud.batch.v1.Runnable.Container} Container instance + * @param {google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} TaskGroupStatus instance */ - Container.create = function create(properties) { - return new Container(properties); + TaskGroupStatus.create = function create(properties) { + return new TaskGroupStatus(properties); }; /** - * Encodes the specified Container message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Container.verify|verify} messages. + * Encodes the specified TaskGroupStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @static - * @param {google.cloud.batch.v1.Runnable.IContainer} message Container message or plain object to encode + * @param {google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus} message TaskGroupStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Container.encode = function encode(message, writer) { + TaskGroupStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); - if (message.commands != null && message.commands.length) - for (var i = 0; i < message.commands.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.commands[i]); - if (message.entrypoint != null && Object.hasOwnProperty.call(message, "entrypoint")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.entrypoint); - if (message.volumes != null && message.volumes.length) - for (var i = 0; i < message.volumes.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.volumes[i]); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.options); - if (message.blockExternalNetwork != null && Object.hasOwnProperty.call(message, "blockExternalNetwork")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.blockExternalNetwork); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.password); + if (message.counts != null && Object.hasOwnProperty.call(message, "counts")) + for (var keys = Object.keys(message.counts), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int64(message.counts[keys[i]]).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Container message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Container.verify|verify} messages. + * Encodes the specified TaskGroupStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @static - * @param {google.cloud.batch.v1.Runnable.IContainer} message Container message or plain object to encode + * @param {google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus} message TaskGroupStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Container.encodeDelimited = function encodeDelimited(message, writer) { + TaskGroupStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Container message from the specified reader or buffer. + * Decodes a TaskGroupStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.Runnable.Container} Container + * @returns {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} TaskGroupStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Container.decode = function decode(reader, length) { + TaskGroupStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Runnable.Container(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.imageUri = reader.string(); + if (message.counts === $util.emptyObject) + message.counts = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.int64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.counts[key] = value; break; } case 2: { - if (!(message.commands && message.commands.length)) - message.commands = []; - message.commands.push(reader.string()); - break; - } - case 3: { - message.entrypoint = reader.string(); - break; - } - case 7: { - if (!(message.volumes && message.volumes.length)) - message.volumes = []; - message.volumes.push(reader.string()); - break; - } - case 8: { - message.options = reader.string(); - break; - } - case 9: { - message.blockExternalNetwork = reader.bool(); - break; - } - case 10: { - message.username = reader.string(); - break; - } - case 11: { - message.password = reader.string(); + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.decode(reader, reader.uint32())); break; } default: @@ -20405,455 +18119,430 @@ }; /** - * Decodes a Container message from the specified reader or buffer, length delimited. + * Decodes a TaskGroupStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.Runnable.Container} Container + * @returns {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} TaskGroupStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Container.decodeDelimited = function decodeDelimited(reader) { + TaskGroupStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Container message. + * Verifies a TaskGroupStatus message. * @function verify - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Container.verify = function verify(message) { + TaskGroupStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - if (!$util.isString(message.imageUri)) - return "imageUri: string expected"; - if (message.commands != null && message.hasOwnProperty("commands")) { - if (!Array.isArray(message.commands)) - return "commands: array expected"; - for (var i = 0; i < message.commands.length; ++i) - if (!$util.isString(message.commands[i])) - return "commands: string[] expected"; + if (message.counts != null && message.hasOwnProperty("counts")) { + if (!$util.isObject(message.counts)) + return "counts: object expected"; + var key = Object.keys(message.counts); + for (var i = 0; i < key.length; ++i) + if (!$util.isInteger(message.counts[key[i]]) && !(message.counts[key[i]] && $util.isInteger(message.counts[key[i]].low) && $util.isInteger(message.counts[key[i]].high))) + return "counts: integer|Long{k:string} expected"; } - if (message.entrypoint != null && message.hasOwnProperty("entrypoint")) - if (!$util.isString(message.entrypoint)) - return "entrypoint: string expected"; - if (message.volumes != null && message.hasOwnProperty("volumes")) { - if (!Array.isArray(message.volumes)) - return "volumes: array expected"; - for (var i = 0; i < message.volumes.length; ++i) - if (!$util.isString(message.volumes[i])) - return "volumes: string[] expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify(message.instances[i]); + if (error) + return "instances." + error; + } } - if (message.options != null && message.hasOwnProperty("options")) - if (!$util.isString(message.options)) - return "options: string expected"; - if (message.blockExternalNetwork != null && message.hasOwnProperty("blockExternalNetwork")) - if (typeof message.blockExternalNetwork !== "boolean") - return "blockExternalNetwork: boolean expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; return null; }; /** - * Creates a Container message from a plain object. Also converts values to their respective internal types. + * Creates a TaskGroupStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.Runnable.Container} Container + * @returns {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} TaskGroupStatus */ - Container.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.Runnable.Container) + TaskGroupStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus) return object; - var message = new $root.google.cloud.batch.v1.Runnable.Container(); - if (object.imageUri != null) - message.imageUri = String(object.imageUri); - if (object.commands) { - if (!Array.isArray(object.commands)) - throw TypeError(".google.cloud.batch.v1.Runnable.Container.commands: array expected"); - message.commands = []; - for (var i = 0; i < object.commands.length; ++i) - message.commands[i] = String(object.commands[i]); + var message = new $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus(); + if (object.counts) { + if (typeof object.counts !== "object") + throw TypeError(".google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.counts: object expected"); + message.counts = {}; + for (var keys = Object.keys(object.counts), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.counts[keys[i]] = $util.Long.fromValue(object.counts[keys[i]])).unsigned = false; + else if (typeof object.counts[keys[i]] === "string") + message.counts[keys[i]] = parseInt(object.counts[keys[i]], 10); + else if (typeof object.counts[keys[i]] === "number") + message.counts[keys[i]] = object.counts[keys[i]]; + else if (typeof object.counts[keys[i]] === "object") + message.counts[keys[i]] = new $util.LongBits(object.counts[keys[i]].low >>> 0, object.counts[keys[i]].high >>> 0).toNumber(); } - if (object.entrypoint != null) - message.entrypoint = String(object.entrypoint); - if (object.volumes) { - if (!Array.isArray(object.volumes)) - throw TypeError(".google.cloud.batch.v1.Runnable.Container.volumes: array expected"); - message.volumes = []; - for (var i = 0; i < object.volumes.length; ++i) - message.volumes[i] = String(object.volumes[i]); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.instances: object expected"); + message.instances[i] = $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.fromObject(object.instances[i]); + } } - if (object.options != null) - message.options = String(object.options); - if (object.blockExternalNetwork != null) - message.blockExternalNetwork = Boolean(object.blockExternalNetwork); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); return message; }; /** - * Creates a plain object from a Container message. Also converts values to other types if specified. + * Creates a plain object from a TaskGroupStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @static - * @param {google.cloud.batch.v1.Runnable.Container} message Container + * @param {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} message TaskGroupStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Container.toObject = function toObject(message, options) { + TaskGroupStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.commands = []; - object.volumes = []; - } - if (options.defaults) { - object.imageUri = ""; - object.entrypoint = ""; - object.options = ""; - object.blockExternalNetwork = false; - object.username = ""; - object.password = ""; - } - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - object.imageUri = message.imageUri; - if (message.commands && message.commands.length) { - object.commands = []; - for (var j = 0; j < message.commands.length; ++j) - object.commands[j] = message.commands[j]; + if (options.arrays || options.defaults) + object.instances = []; + if (options.objects || options.defaults) + object.counts = {}; + var keys2; + if (message.counts && (keys2 = Object.keys(message.counts)).length) { + object.counts = {}; + for (var j = 0; j < keys2.length; ++j) + if (typeof message.counts[keys2[j]] === "number") + object.counts[keys2[j]] = options.longs === String ? String(message.counts[keys2[j]]) : message.counts[keys2[j]]; + else + object.counts[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.counts[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.counts[keys2[j]].low >>> 0, message.counts[keys2[j]].high >>> 0).toNumber() : message.counts[keys2[j]]; } - if (message.entrypoint != null && message.hasOwnProperty("entrypoint")) - object.entrypoint = message.entrypoint; - if (message.volumes && message.volumes.length) { - object.volumes = []; - for (var j = 0; j < message.volumes.length; ++j) - object.volumes[j] = message.volumes[j]; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.toObject(message.instances[j], options); } - if (message.options != null && message.hasOwnProperty("options")) - object.options = message.options; - if (message.blockExternalNetwork != null && message.hasOwnProperty("blockExternalNetwork")) - object.blockExternalNetwork = message.blockExternalNetwork; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; return object; }; /** - * Converts this Container to JSON. + * Converts this TaskGroupStatus to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @instance * @returns {Object.} JSON object */ - Container.prototype.toJSON = function toJSON() { + TaskGroupStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Container + * Gets the default type url for TaskGroupStatus * @function getTypeUrl - * @memberof google.cloud.batch.v1.Runnable.Container + * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Container.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TaskGroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.Runnable.Container"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus"; }; - return Container; + return TaskGroupStatus; })(); - Runnable.Script = (function() { + /** + * State enum. + * @name google.cloud.batch.v1alpha.JobStatus.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} SCHEDULED=2 SCHEDULED value + * @property {number} RUNNING=3 RUNNING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} FAILED=5 FAILED value + * @property {number} DELETION_IN_PROGRESS=6 DELETION_IN_PROGRESS value + */ + JobStatus.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "SCHEDULED"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "DELETION_IN_PROGRESS"] = 6; + return values; + })(); - /** - * Properties of a Script. - * @memberof google.cloud.batch.v1.Runnable - * @interface IScript - * @property {string|null} [path] Script path - * @property {string|null} [text] Script text - */ + return JobStatus; + })(); - /** - * Constructs a new Script. - * @memberof google.cloud.batch.v1.Runnable - * @classdesc Represents a Script. - * @implements IScript - * @constructor - * @param {google.cloud.batch.v1.Runnable.IScript=} [properties] Properties to set - */ - function Script(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]]; - } + v1alpha.JobNotification = (function() { - /** - * Script path. - * @member {string|null|undefined} path - * @memberof google.cloud.batch.v1.Runnable.Script - * @instance - */ - Script.prototype.path = null; + /** + * Properties of a JobNotification. + * @memberof google.cloud.batch.v1alpha + * @interface IJobNotification + * @property {string|null} [pubsubTopic] JobNotification pubsubTopic + * @property {google.cloud.batch.v1alpha.JobNotification.IMessage|null} [message] JobNotification message + */ - /** - * Script text. - * @member {string|null|undefined} text - * @memberof google.cloud.batch.v1.Runnable.Script - * @instance - */ - Script.prototype.text = null; + /** + * Constructs a new JobNotification. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a JobNotification. + * @implements IJobNotification + * @constructor + * @param {google.cloud.batch.v1alpha.IJobNotification=} [properties] Properties to set + */ + function JobNotification(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]]; + } - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * JobNotification pubsubTopic. + * @member {string} pubsubTopic + * @memberof google.cloud.batch.v1alpha.JobNotification + * @instance + */ + JobNotification.prototype.pubsubTopic = ""; - /** - * Script command. - * @member {"path"|"text"|undefined} command - * @memberof google.cloud.batch.v1.Runnable.Script - * @instance - */ - Object.defineProperty(Script.prototype, "command", { - get: $util.oneOfGetter($oneOfFields = ["path", "text"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * JobNotification message. + * @member {google.cloud.batch.v1alpha.JobNotification.IMessage|null|undefined} message + * @memberof google.cloud.batch.v1alpha.JobNotification + * @instance + */ + JobNotification.prototype.message = null; - /** - * Creates a new Script instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.Runnable.Script - * @static - * @param {google.cloud.batch.v1.Runnable.IScript=} [properties] Properties to set - * @returns {google.cloud.batch.v1.Runnable.Script} Script instance - */ - Script.create = function create(properties) { - return new Script(properties); - }; + /** + * Creates a new JobNotification instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.JobNotification + * @static + * @param {google.cloud.batch.v1alpha.IJobNotification=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.JobNotification} JobNotification instance + */ + JobNotification.create = function create(properties) { + return new JobNotification(properties); + }; - /** - * Encodes the specified Script message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Script.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.Runnable.Script - * @static - * @param {google.cloud.batch.v1.Runnable.IScript} message Script message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Script.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.text); - return writer; - }; + /** + * Encodes the specified JobNotification message. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.JobNotification + * @static + * @param {google.cloud.batch.v1alpha.IJobNotification} message JobNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JobNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pubsubTopic != null && Object.hasOwnProperty.call(message, "pubsubTopic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.pubsubTopic); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + $root.google.cloud.batch.v1alpha.JobNotification.Message.encode(message.message, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified Script message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Script.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.Runnable.Script - * @static - * @param {google.cloud.batch.v1.Runnable.IScript} message Script message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Script.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified JobNotification message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.JobNotification + * @static + * @param {google.cloud.batch.v1alpha.IJobNotification} message JobNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JobNotification.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Script message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.Runnable.Script - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.Runnable.Script} Script - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Script.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Runnable.Script(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.path = reader.string(); - break; - } - case 2: { - message.text = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a JobNotification message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.JobNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.JobNotification} JobNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JobNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobNotification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.pubsubTopic = reader.string(); + break; + } + case 2: { + message.message = $root.google.cloud.batch.v1alpha.JobNotification.Message.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a Script message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.Runnable.Script - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.Runnable.Script} Script - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Script.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Script message. - * @function verify - * @memberof google.cloud.batch.v1.Runnable.Script - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Script.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.path != null && message.hasOwnProperty("path")) { - properties.command = 1; - if (!$util.isString(message.path)) - return "path: string expected"; - } - if (message.text != null && message.hasOwnProperty("text")) { - if (properties.command === 1) - return "command: multiple values"; - properties.command = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - return null; - }; + /** + * Decodes a JobNotification message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.JobNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.JobNotification} JobNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JobNotification.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Script message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.Runnable.Script - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.Runnable.Script} Script - */ - Script.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.Runnable.Script) - return object; - var message = new $root.google.cloud.batch.v1.Runnable.Script(); - if (object.path != null) - message.path = String(object.path); - if (object.text != null) - message.text = String(object.text); - return message; - }; + /** + * Verifies a JobNotification message. + * @function verify + * @memberof google.cloud.batch.v1alpha.JobNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + JobNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) + if (!$util.isString(message.pubsubTopic)) + return "pubsubTopic: string expected"; + if (message.message != null && message.hasOwnProperty("message")) { + var error = $root.google.cloud.batch.v1alpha.JobNotification.Message.verify(message.message); + if (error) + return "message." + error; + } + return null; + }; - /** - * Creates a plain object from a Script message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.Runnable.Script - * @static - * @param {google.cloud.batch.v1.Runnable.Script} message Script - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Script.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.path != null && message.hasOwnProperty("path")) { - object.path = message.path; - if (options.oneofs) - object.command = "path"; - } - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.command = "text"; - } + /** + * Creates a JobNotification message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.JobNotification + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.JobNotification} JobNotification + */ + JobNotification.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.JobNotification) return object; - }; + var message = new $root.google.cloud.batch.v1alpha.JobNotification(); + if (object.pubsubTopic != null) + message.pubsubTopic = String(object.pubsubTopic); + if (object.message != null) { + if (typeof object.message !== "object") + throw TypeError(".google.cloud.batch.v1alpha.JobNotification.message: object expected"); + message.message = $root.google.cloud.batch.v1alpha.JobNotification.Message.fromObject(object.message); + } + return message; + }; - /** - * Converts this Script to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.Runnable.Script - * @instance - * @returns {Object.} JSON object - */ - Script.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a JobNotification message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.JobNotification + * @static + * @param {google.cloud.batch.v1alpha.JobNotification} message JobNotification + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + JobNotification.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.pubsubTopic = ""; + object.message = null; + } + if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) + object.pubsubTopic = message.pubsubTopic; + if (message.message != null && message.hasOwnProperty("message")) + object.message = $root.google.cloud.batch.v1alpha.JobNotification.Message.toObject(message.message, options); + return object; + }; - /** - * Gets the default type url for Script - * @function getTypeUrl - * @memberof google.cloud.batch.v1.Runnable.Script - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Script.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.Runnable.Script"; - }; + /** + * Converts this JobNotification to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.JobNotification + * @instance + * @returns {Object.} JSON object + */ + JobNotification.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Script; - })(); + /** + * Gets the default type url for JobNotification + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.JobNotification + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + JobNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobNotification"; + }; - Runnable.Barrier = (function() { + JobNotification.Message = (function() { /** - * Properties of a Barrier. - * @memberof google.cloud.batch.v1.Runnable - * @interface IBarrier - * @property {string|null} [name] Barrier name + * Properties of a Message. + * @memberof google.cloud.batch.v1alpha.JobNotification + * @interface IMessage + * @property {google.cloud.batch.v1alpha.JobNotification.Type|null} [type] Message type + * @property {google.cloud.batch.v1alpha.JobStatus.State|null} [newJobState] Message newJobState + * @property {google.cloud.batch.v1alpha.TaskStatus.State|null} [newTaskState] Message newTaskState */ /** - * Constructs a new Barrier. - * @memberof google.cloud.batch.v1.Runnable - * @classdesc Represents a Barrier. - * @implements IBarrier + * Constructs a new Message. + * @memberof google.cloud.batch.v1alpha.JobNotification + * @classdesc Represents a Message. + * @implements IMessage * @constructor - * @param {google.cloud.batch.v1.Runnable.IBarrier=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.JobNotification.IMessage=} [properties] Properties to set */ - function Barrier(properties) { + function Message(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20861,75 +18550,103 @@ } /** - * Barrier name. - * @member {string} name - * @memberof google.cloud.batch.v1.Runnable.Barrier + * Message type. + * @member {google.cloud.batch.v1alpha.JobNotification.Type} type + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @instance */ - Barrier.prototype.name = ""; + Message.prototype.type = 0; /** - * Creates a new Barrier instance using the specified properties. + * Message newJobState. + * @member {google.cloud.batch.v1alpha.JobStatus.State} newJobState + * @memberof google.cloud.batch.v1alpha.JobNotification.Message + * @instance + */ + Message.prototype.newJobState = 0; + + /** + * Message newTaskState. + * @member {google.cloud.batch.v1alpha.TaskStatus.State} newTaskState + * @memberof google.cloud.batch.v1alpha.JobNotification.Message + * @instance + */ + Message.prototype.newTaskState = 0; + + /** + * Creates a new Message instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @static - * @param {google.cloud.batch.v1.Runnable.IBarrier=} [properties] Properties to set - * @returns {google.cloud.batch.v1.Runnable.Barrier} Barrier instance + * @param {google.cloud.batch.v1alpha.JobNotification.IMessage=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.JobNotification.Message} Message instance */ - Barrier.create = function create(properties) { - return new Barrier(properties); + Message.create = function create(properties) { + return new Message(properties); }; /** - * Encodes the specified Barrier message. Does not implicitly {@link google.cloud.batch.v1.Runnable.Barrier.verify|verify} messages. + * Encodes the specified Message message. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.Message.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @static - * @param {google.cloud.batch.v1.Runnable.IBarrier} message Barrier message or plain object to encode + * @param {google.cloud.batch.v1alpha.JobNotification.IMessage} message Message message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Barrier.encode = function encode(message, writer) { + Message.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.newJobState != null && Object.hasOwnProperty.call(message, "newJobState")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.newJobState); + if (message.newTaskState != null && Object.hasOwnProperty.call(message, "newTaskState")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.newTaskState); return writer; }; /** - * Encodes the specified Barrier message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Runnable.Barrier.verify|verify} messages. + * Encodes the specified Message message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.Message.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @static - * @param {google.cloud.batch.v1.Runnable.IBarrier} message Barrier message or plain object to encode + * @param {google.cloud.batch.v1alpha.JobNotification.IMessage} message Message message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Barrier.encodeDelimited = function encodeDelimited(message, writer) { + Message.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Barrier message from the specified reader or buffer. + * Decodes a Message message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.Runnable.Barrier} Barrier + * @returns {google.cloud.batch.v1alpha.JobNotification.Message} Message * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Barrier.decode = function decode(reader, length) { + Message.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Runnable.Barrier(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobNotification.Message(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.type = reader.int32(); + break; + } + case 2: { + message.newJobState = reader.int32(); + break; + } + case 3: { + message.newTaskState = reader.int32(); break; } default: @@ -20941,136 +18658,277 @@ }; /** - * Decodes a Barrier message from the specified reader or buffer, length delimited. + * Decodes a Message message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.Runnable.Barrier} Barrier + * @returns {google.cloud.batch.v1alpha.JobNotification.Message} Message * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Barrier.decodeDelimited = function decodeDelimited(reader) { + Message.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Barrier message. + * Verifies a Message message. * @function verify - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Barrier.verify = function verify(message) { + Message.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.newJobState != null && message.hasOwnProperty("newJobState")) + switch (message.newJobState) { + default: + return "newJobState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.newTaskState != null && message.hasOwnProperty("newTaskState")) + switch (message.newTaskState) { + default: + return "newTaskState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } return null; }; /** - * Creates a Barrier message from a plain object. Also converts values to their respective internal types. + * Creates a Message message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.Runnable.Barrier} Barrier + * @returns {google.cloud.batch.v1alpha.JobNotification.Message} Message */ - Barrier.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.Runnable.Barrier) + Message.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.JobNotification.Message) return object; - var message = new $root.google.cloud.batch.v1.Runnable.Barrier(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.batch.v1alpha.JobNotification.Message(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "JOB_STATE_CHANGED": + case 1: + message.type = 1; + break; + case "TASK_STATE_CHANGED": + case 2: + message.type = 2; + break; + } + switch (object.newJobState) { + default: + if (typeof object.newJobState === "number") { + message.newJobState = object.newJobState; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.newJobState = 0; + break; + case "QUEUED": + case 1: + message.newJobState = 1; + break; + case "SCHEDULED": + case 2: + message.newJobState = 2; + break; + case "RUNNING": + case 3: + message.newJobState = 3; + break; + case "SUCCEEDED": + case 4: + message.newJobState = 4; + break; + case "FAILED": + case 5: + message.newJobState = 5; + break; + case "DELETION_IN_PROGRESS": + case 6: + message.newJobState = 6; + break; + } + switch (object.newTaskState) { + default: + if (typeof object.newTaskState === "number") { + message.newTaskState = object.newTaskState; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.newTaskState = 0; + break; + case "PENDING": + case 1: + message.newTaskState = 1; + break; + case "ASSIGNED": + case 2: + message.newTaskState = 2; + break; + case "RUNNING": + case 3: + message.newTaskState = 3; + break; + case "FAILED": + case 4: + message.newTaskState = 4; + break; + case "SUCCEEDED": + case 5: + message.newTaskState = 5; + break; + } return message; }; /** - * Creates a plain object from a Barrier message. Also converts values to other types if specified. + * Creates a plain object from a Message message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @static - * @param {google.cloud.batch.v1.Runnable.Barrier} message Barrier + * @param {google.cloud.batch.v1alpha.JobNotification.Message} message Message * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Barrier.toObject = function toObject(message, options) { + Message.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.newJobState = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.newTaskState = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.batch.v1alpha.JobNotification.Type[message.type] === undefined ? message.type : $root.google.cloud.batch.v1alpha.JobNotification.Type[message.type] : message.type; + if (message.newJobState != null && message.hasOwnProperty("newJobState")) + object.newJobState = options.enums === String ? $root.google.cloud.batch.v1alpha.JobStatus.State[message.newJobState] === undefined ? message.newJobState : $root.google.cloud.batch.v1alpha.JobStatus.State[message.newJobState] : message.newJobState; + if (message.newTaskState != null && message.hasOwnProperty("newTaskState")) + object.newTaskState = options.enums === String ? $root.google.cloud.batch.v1alpha.TaskStatus.State[message.newTaskState] === undefined ? message.newTaskState : $root.google.cloud.batch.v1alpha.TaskStatus.State[message.newTaskState] : message.newTaskState; return object; }; /** - * Converts this Barrier to JSON. + * Converts this Message to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @instance * @returns {Object.} JSON object */ - Barrier.prototype.toJSON = function toJSON() { + Message.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Barrier + * Gets the default type url for Message * @function getTypeUrl - * @memberof google.cloud.batch.v1.Runnable.Barrier + * @memberof google.cloud.batch.v1alpha.JobNotification.Message * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Barrier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Message.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.Runnable.Barrier"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobNotification.Message"; }; - return Barrier; + return Message; })(); - return Runnable; - })(); - - v1.TaskSpec = (function() { - /** - * Properties of a TaskSpec. - * @memberof google.cloud.batch.v1 - * @interface ITaskSpec - * @property {Array.|null} [runnables] TaskSpec runnables - * @property {google.cloud.batch.v1.IComputeResource|null} [computeResource] TaskSpec computeResource - * @property {google.protobuf.IDuration|null} [maxRunDuration] TaskSpec maxRunDuration - * @property {number|null} [maxRetryCount] TaskSpec maxRetryCount - * @property {Array.|null} [lifecyclePolicies] TaskSpec lifecyclePolicies - * @property {Object.|null} [environments] TaskSpec environments - * @property {Array.|null} [volumes] TaskSpec volumes - * @property {google.cloud.batch.v1.IEnvironment|null} [environment] TaskSpec environment + * Type enum. + * @name google.cloud.batch.v1alpha.JobNotification.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} JOB_STATE_CHANGED=1 JOB_STATE_CHANGED value + * @property {number} TASK_STATE_CHANGED=2 TASK_STATE_CHANGED value */ + JobNotification.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "JOB_STATE_CHANGED"] = 1; + values[valuesById[2] = "TASK_STATE_CHANGED"] = 2; + return values; + })(); + + return JobNotification; + })(); + + v1alpha.AllocationPolicy = (function() { /** - * Constructs a new TaskSpec. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a TaskSpec. - * @implements ITaskSpec + * Properties of an AllocationPolicy. + * @memberof google.cloud.batch.v1alpha + * @interface IAllocationPolicy + * @property {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy|null} [location] AllocationPolicy location + * @property {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null} [instance] AllocationPolicy instance + * @property {Array.|null} [instances] AllocationPolicy instances + * @property {Array.|null} [instanceTemplates] AllocationPolicy instanceTemplates + * @property {Array.|null} [provisioningModels] AllocationPolicy provisioningModels + * @property {string|null} [serviceAccountEmail] AllocationPolicy serviceAccountEmail + * @property {google.cloud.batch.v1alpha.IServiceAccount|null} [serviceAccount] AllocationPolicy serviceAccount + * @property {Object.|null} [labels] AllocationPolicy labels + * @property {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy|null} [network] AllocationPolicy network + */ + + /** + * Constructs a new AllocationPolicy. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents an AllocationPolicy. + * @implements IAllocationPolicy * @constructor - * @param {google.cloud.batch.v1.ITaskSpec=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IAllocationPolicy=} [properties] Properties to set */ - function TaskSpec(properties) { - this.runnables = []; - this.lifecyclePolicies = []; - this.environments = {}; - this.volumes = []; + function AllocationPolicy(properties) { + this.instances = []; + this.instanceTemplates = []; + this.provisioningModels = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21078,174 +18936,202 @@ } /** - * TaskSpec runnables. - * @member {Array.} runnables - * @memberof google.cloud.batch.v1.TaskSpec + * AllocationPolicy location. + * @member {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy|null|undefined} location + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @instance */ - TaskSpec.prototype.runnables = $util.emptyArray; + AllocationPolicy.prototype.location = null; /** - * TaskSpec computeResource. - * @member {google.cloud.batch.v1.IComputeResource|null|undefined} computeResource - * @memberof google.cloud.batch.v1.TaskSpec + * AllocationPolicy instance. + * @member {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null|undefined} instance + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @instance */ - TaskSpec.prototype.computeResource = null; + AllocationPolicy.prototype.instance = null; /** - * TaskSpec maxRunDuration. - * @member {google.protobuf.IDuration|null|undefined} maxRunDuration - * @memberof google.cloud.batch.v1.TaskSpec + * AllocationPolicy instances. + * @member {Array.} instances + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @instance */ - TaskSpec.prototype.maxRunDuration = null; + AllocationPolicy.prototype.instances = $util.emptyArray; /** - * TaskSpec maxRetryCount. - * @member {number} maxRetryCount - * @memberof google.cloud.batch.v1.TaskSpec + * AllocationPolicy instanceTemplates. + * @member {Array.} instanceTemplates + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @instance */ - TaskSpec.prototype.maxRetryCount = 0; + AllocationPolicy.prototype.instanceTemplates = $util.emptyArray; /** - * TaskSpec lifecyclePolicies. - * @member {Array.} lifecyclePolicies - * @memberof google.cloud.batch.v1.TaskSpec + * AllocationPolicy provisioningModels. + * @member {Array.} provisioningModels + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @instance */ - TaskSpec.prototype.lifecyclePolicies = $util.emptyArray; + AllocationPolicy.prototype.provisioningModels = $util.emptyArray; /** - * TaskSpec environments. - * @member {Object.} environments - * @memberof google.cloud.batch.v1.TaskSpec + * AllocationPolicy serviceAccountEmail. + * @member {string} serviceAccountEmail + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @instance */ - TaskSpec.prototype.environments = $util.emptyObject; + AllocationPolicy.prototype.serviceAccountEmail = ""; /** - * TaskSpec volumes. - * @member {Array.} volumes - * @memberof google.cloud.batch.v1.TaskSpec + * AllocationPolicy serviceAccount. + * @member {google.cloud.batch.v1alpha.IServiceAccount|null|undefined} serviceAccount + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @instance */ - TaskSpec.prototype.volumes = $util.emptyArray; + AllocationPolicy.prototype.serviceAccount = null; /** - * TaskSpec environment. - * @member {google.cloud.batch.v1.IEnvironment|null|undefined} environment - * @memberof google.cloud.batch.v1.TaskSpec + * AllocationPolicy labels. + * @member {Object.} labels + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @instance */ - TaskSpec.prototype.environment = null; + AllocationPolicy.prototype.labels = $util.emptyObject; /** - * Creates a new TaskSpec instance using the specified properties. + * AllocationPolicy network. + * @member {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy|null|undefined} network + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @instance + */ + AllocationPolicy.prototype.network = null; + + /** + * Creates a new AllocationPolicy instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.TaskSpec + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @static - * @param {google.cloud.batch.v1.ITaskSpec=} [properties] Properties to set - * @returns {google.cloud.batch.v1.TaskSpec} TaskSpec instance + * @param {google.cloud.batch.v1alpha.IAllocationPolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.AllocationPolicy} AllocationPolicy instance */ - TaskSpec.create = function create(properties) { - return new TaskSpec(properties); + AllocationPolicy.create = function create(properties) { + return new AllocationPolicy(properties); }; /** - * Encodes the specified TaskSpec message. Does not implicitly {@link google.cloud.batch.v1.TaskSpec.verify|verify} messages. + * Encodes the specified AllocationPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.TaskSpec + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @static - * @param {google.cloud.batch.v1.ITaskSpec} message TaskSpec message or plain object to encode + * @param {google.cloud.batch.v1alpha.IAllocationPolicy} message AllocationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskSpec.encode = function encode(message, writer) { + AllocationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.computeResource != null && Object.hasOwnProperty.call(message, "computeResource")) - $root.google.cloud.batch.v1.ComputeResource.encode(message.computeResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maxRunDuration != null && Object.hasOwnProperty.call(message, "maxRunDuration")) - $root.google.protobuf.Duration.encode(message.maxRunDuration, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.maxRetryCount != null && Object.hasOwnProperty.call(message, "maxRetryCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxRetryCount); - if (message.environments != null && Object.hasOwnProperty.call(message, "environments")) - for (var keys = Object.keys(message.environments), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environments[keys[i]]).ldelim(); - if (message.volumes != null && message.volumes.length) - for (var i = 0; i < message.volumes.length; ++i) - $root.google.cloud.batch.v1.Volume.encode(message.volumes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.runnables != null && message.runnables.length) - for (var i = 0; i < message.runnables.length; ++i) - $root.google.cloud.batch.v1.Runnable.encode(message.runnables[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.lifecyclePolicies != null && message.lifecyclePolicies.length) - for (var i = 0; i < message.lifecyclePolicies.length; ++i) - $root.google.cloud.batch.v1.LifecyclePolicy.encode(message.lifecyclePolicies[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.batch.v1.Environment.encode(message.environment, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.encode(message.location, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.instanceTemplates != null && message.instanceTemplates.length) + for (var i = 0; i < message.instanceTemplates.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.instanceTemplates[i]); + if (message.provisioningModels != null && message.provisioningModels.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.provisioningModels.length; ++i) + writer.int32(message.provisioningModels[i]); + writer.ldelim(); + } + if (message.serviceAccountEmail != null && Object.hasOwnProperty.call(message, "serviceAccountEmail")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceAccountEmail); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.encode(message.network, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.encode(message.instances[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + $root.google.cloud.batch.v1alpha.ServiceAccount.encode(message.serviceAccount, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; /** - * Encodes the specified TaskSpec message, length delimited. Does not implicitly {@link google.cloud.batch.v1.TaskSpec.verify|verify} messages. + * Encodes the specified AllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.TaskSpec + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @static - * @param {google.cloud.batch.v1.ITaskSpec} message TaskSpec message or plain object to encode + * @param {google.cloud.batch.v1alpha.IAllocationPolicy} message AllocationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskSpec.encodeDelimited = function encodeDelimited(message, writer) { + AllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TaskSpec message from the specified reader or buffer. + * Decodes an AllocationPolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.TaskSpec + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.TaskSpec} TaskSpec + * @returns {google.cloud.batch.v1alpha.AllocationPolicy} AllocationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskSpec.decode = function decode(reader, length) { + AllocationPolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.TaskSpec(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.location = $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.decode(reader, reader.uint32()); + break; + } case 8: { - if (!(message.runnables && message.runnables.length)) - message.runnables = []; - message.runnables.push($root.google.cloud.batch.v1.Runnable.decode(reader, reader.uint32())); + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.decode(reader, reader.uint32())); break; } case 3: { - message.computeResource = $root.google.cloud.batch.v1.ComputeResource.decode(reader, reader.uint32()); + if (!(message.instanceTemplates && message.instanceTemplates.length)) + message.instanceTemplates = []; + message.instanceTemplates.push(reader.string()); break; } case 4: { - message.maxRunDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + if (!(message.provisioningModels && message.provisioningModels.length)) + message.provisioningModels = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.provisioningModels.push(reader.int32()); + } else + message.provisioningModels.push(reader.int32()); break; } case 5: { - message.maxRetryCount = reader.int32(); + message.serviceAccountEmail = reader.string(); break; } case 9: { - if (!(message.lifecyclePolicies && message.lifecyclePolicies.length)) - message.lifecyclePolicies = []; - message.lifecyclePolicies.push($root.google.cloud.batch.v1.LifecyclePolicy.decode(reader, reader.uint32())); + message.serviceAccount = $root.google.cloud.batch.v1alpha.ServiceAccount.decode(reader, reader.uint32()); break; } case 6: { - if (message.environments === $util.emptyObject) - message.environments = {}; + if (message.labels === $util.emptyObject) + message.labels = {}; var end2 = reader.uint32() + reader.pos; key = ""; value = ""; @@ -21263,17 +19149,11 @@ break; } } - message.environments[key] = value; + message.labels[key] = value; break; } case 7: { - if (!(message.volumes && message.volumes.length)) - message.volumes = []; - message.volumes.push($root.google.cloud.batch.v1.Volume.decode(reader, reader.uint32())); - break; - } - case 10: { - message.environment = $root.google.cloud.batch.v1.Environment.decode(reader, reader.uint32()); + message.network = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.decode(reader, reader.uint32()); break; } default: @@ -21285,516 +19165,294 @@ }; /** - * Decodes a TaskSpec message from the specified reader or buffer, length delimited. + * Decodes an AllocationPolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.TaskSpec + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.TaskSpec} TaskSpec + * @returns {google.cloud.batch.v1alpha.AllocationPolicy} AllocationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskSpec.decodeDelimited = function decodeDelimited(reader) { + AllocationPolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TaskSpec message. + * Verifies an AllocationPolicy message. * @function verify - * @memberof google.cloud.batch.v1.TaskSpec + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TaskSpec.verify = function verify(message) { + AllocationPolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.runnables != null && message.hasOwnProperty("runnables")) { - if (!Array.isArray(message.runnables)) - return "runnables: array expected"; - for (var i = 0; i < message.runnables.length; ++i) { - var error = $root.google.cloud.batch.v1.Runnable.verify(message.runnables[i]); - if (error) - return "runnables." + error; - } - } - if (message.computeResource != null && message.hasOwnProperty("computeResource")) { - var error = $root.google.cloud.batch.v1.ComputeResource.verify(message.computeResource); + if (message.location != null && message.hasOwnProperty("location")) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify(message.location); if (error) - return "computeResource." + error; + return "location." + error; } - if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) { - var error = $root.google.protobuf.Duration.verify(message.maxRunDuration); + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify(message.instance); if (error) - return "maxRunDuration." + error; + return "instance." + error; } - if (message.maxRetryCount != null && message.hasOwnProperty("maxRetryCount")) - if (!$util.isInteger(message.maxRetryCount)) - return "maxRetryCount: integer expected"; - if (message.lifecyclePolicies != null && message.hasOwnProperty("lifecyclePolicies")) { - if (!Array.isArray(message.lifecyclePolicies)) - return "lifecyclePolicies: array expected"; - for (var i = 0; i < message.lifecyclePolicies.length; ++i) { - var error = $root.google.cloud.batch.v1.LifecyclePolicy.verify(message.lifecyclePolicies[i]); + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify(message.instances[i]); if (error) - return "lifecyclePolicies." + error; + return "instances." + error; } } - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!$util.isObject(message.environments)) - return "environments: object expected"; - var key = Object.keys(message.environments); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.environments[key[i]])) - return "environments: string{k:string} expected"; + if (message.instanceTemplates != null && message.hasOwnProperty("instanceTemplates")) { + if (!Array.isArray(message.instanceTemplates)) + return "instanceTemplates: array expected"; + for (var i = 0; i < message.instanceTemplates.length; ++i) + if (!$util.isString(message.instanceTemplates[i])) + return "instanceTemplates: string[] expected"; } - if (message.volumes != null && message.hasOwnProperty("volumes")) { - if (!Array.isArray(message.volumes)) - return "volumes: array expected"; - for (var i = 0; i < message.volumes.length; ++i) { - var error = $root.google.cloud.batch.v1.Volume.verify(message.volumes[i]); - if (error) - return "volumes." + error; - } + if (message.provisioningModels != null && message.hasOwnProperty("provisioningModels")) { + if (!Array.isArray(message.provisioningModels)) + return "provisioningModels: array expected"; + for (var i = 0; i < message.provisioningModels.length; ++i) + switch (message.provisioningModels[i]) { + default: + return "provisioningModels: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } } - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.batch.v1.Environment.verify(message.environment); + if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) + if (!$util.isString(message.serviceAccountEmail)) + return "serviceAccountEmail: string expected"; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) { + var error = $root.google.cloud.batch.v1alpha.ServiceAccount.verify(message.serviceAccount); if (error) - return "environment." + error; + return "serviceAccount." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.network != null && message.hasOwnProperty("network")) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify(message.network); + if (error) + return "network." + error; } return null; }; /** - * Creates a TaskSpec message from a plain object. Also converts values to their respective internal types. + * Creates an AllocationPolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.TaskSpec + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.TaskSpec} TaskSpec + * @returns {google.cloud.batch.v1alpha.AllocationPolicy} AllocationPolicy */ - TaskSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.TaskSpec) + AllocationPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy) return object; - var message = new $root.google.cloud.batch.v1.TaskSpec(); - if (object.runnables) { - if (!Array.isArray(object.runnables)) - throw TypeError(".google.cloud.batch.v1.TaskSpec.runnables: array expected"); - message.runnables = []; - for (var i = 0; i < object.runnables.length; ++i) { - if (typeof object.runnables[i] !== "object") - throw TypeError(".google.cloud.batch.v1.TaskSpec.runnables: object expected"); - message.runnables[i] = $root.google.cloud.batch.v1.Runnable.fromObject(object.runnables[i]); - } - } - if (object.computeResource != null) { - if (typeof object.computeResource !== "object") - throw TypeError(".google.cloud.batch.v1.TaskSpec.computeResource: object expected"); - message.computeResource = $root.google.cloud.batch.v1.ComputeResource.fromObject(object.computeResource); + var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy(); + if (object.location != null) { + if (typeof object.location !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.location: object expected"); + message.location = $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.fromObject(object.location); } - if (object.maxRunDuration != null) { - if (typeof object.maxRunDuration !== "object") - throw TypeError(".google.cloud.batch.v1.TaskSpec.maxRunDuration: object expected"); - message.maxRunDuration = $root.google.protobuf.Duration.fromObject(object.maxRunDuration); + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.instance: object expected"); + message.instance = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.fromObject(object.instance); } - if (object.maxRetryCount != null) - message.maxRetryCount = object.maxRetryCount | 0; - if (object.lifecyclePolicies) { - if (!Array.isArray(object.lifecyclePolicies)) - throw TypeError(".google.cloud.batch.v1.TaskSpec.lifecyclePolicies: array expected"); - message.lifecyclePolicies = []; - for (var i = 0; i < object.lifecyclePolicies.length; ++i) { - if (typeof object.lifecyclePolicies[i] !== "object") - throw TypeError(".google.cloud.batch.v1.TaskSpec.lifecyclePolicies: object expected"); - message.lifecyclePolicies[i] = $root.google.cloud.batch.v1.LifecyclePolicy.fromObject(object.lifecyclePolicies[i]); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.instances: object expected"); + message.instances[i] = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.fromObject(object.instances[i]); } } - if (object.environments) { - if (typeof object.environments !== "object") - throw TypeError(".google.cloud.batch.v1.TaskSpec.environments: object expected"); - message.environments = {}; - for (var keys = Object.keys(object.environments), i = 0; i < keys.length; ++i) - message.environments[keys[i]] = String(object.environments[keys[i]]); + if (object.instanceTemplates) { + if (!Array.isArray(object.instanceTemplates)) + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.instanceTemplates: array expected"); + message.instanceTemplates = []; + for (var i = 0; i < object.instanceTemplates.length; ++i) + message.instanceTemplates[i] = String(object.instanceTemplates[i]); } - if (object.volumes) { - if (!Array.isArray(object.volumes)) - throw TypeError(".google.cloud.batch.v1.TaskSpec.volumes: array expected"); - message.volumes = []; - for (var i = 0; i < object.volumes.length; ++i) { - if (typeof object.volumes[i] !== "object") - throw TypeError(".google.cloud.batch.v1.TaskSpec.volumes: object expected"); - message.volumes[i] = $root.google.cloud.batch.v1.Volume.fromObject(object.volumes[i]); - } + if (object.provisioningModels) { + if (!Array.isArray(object.provisioningModels)) + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.provisioningModels: array expected"); + message.provisioningModels = []; + for (var i = 0; i < object.provisioningModels.length; ++i) + switch (object.provisioningModels[i]) { + default: + if (typeof object.provisioningModels[i] === "number") { + message.provisioningModels[i] = object.provisioningModels[i]; + break; + } + case "PROVISIONING_MODEL_UNSPECIFIED": + case 0: + message.provisioningModels[i] = 0; + break; + case "STANDARD": + case 1: + message.provisioningModels[i] = 1; + break; + case "SPOT": + case 2: + message.provisioningModels[i] = 2; + break; + case "PREEMPTIBLE": + case 3: + message.provisioningModels[i] = 3; + break; + } } - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.batch.v1.TaskSpec.environment: object expected"); - message.environment = $root.google.cloud.batch.v1.Environment.fromObject(object.environment); + if (object.serviceAccountEmail != null) + message.serviceAccountEmail = String(object.serviceAccountEmail); + if (object.serviceAccount != null) { + if (typeof object.serviceAccount !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.serviceAccount: object expected"); + message.serviceAccount = $root.google.cloud.batch.v1alpha.ServiceAccount.fromObject(object.serviceAccount); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.network != null) { + if (typeof object.network !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.network: object expected"); + message.network = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.fromObject(object.network); } return message; }; /** - * Creates a plain object from a TaskSpec message. Also converts values to other types if specified. + * Creates a plain object from an AllocationPolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.TaskSpec + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @static - * @param {google.cloud.batch.v1.TaskSpec} message TaskSpec + * @param {google.cloud.batch.v1alpha.AllocationPolicy} message AllocationPolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TaskSpec.toObject = function toObject(message, options) { + AllocationPolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.volumes = []; - object.runnables = []; - object.lifecyclePolicies = []; + object.instanceTemplates = []; + object.provisioningModels = []; + object.instances = []; } if (options.objects || options.defaults) - object.environments = {}; + object.labels = {}; if (options.defaults) { - object.computeResource = null; - object.maxRunDuration = null; - object.maxRetryCount = 0; - object.environment = null; - } - if (message.computeResource != null && message.hasOwnProperty("computeResource")) - object.computeResource = $root.google.cloud.batch.v1.ComputeResource.toObject(message.computeResource, options); - if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) - object.maxRunDuration = $root.google.protobuf.Duration.toObject(message.maxRunDuration, options); - if (message.maxRetryCount != null && message.hasOwnProperty("maxRetryCount")) - object.maxRetryCount = message.maxRetryCount; - var keys2; - if (message.environments && (keys2 = Object.keys(message.environments)).length) { - object.environments = {}; - for (var j = 0; j < keys2.length; ++j) - object.environments[keys2[j]] = message.environments[keys2[j]]; - } - if (message.volumes && message.volumes.length) { - object.volumes = []; - for (var j = 0; j < message.volumes.length; ++j) - object.volumes[j] = $root.google.cloud.batch.v1.Volume.toObject(message.volumes[j], options); - } - if (message.runnables && message.runnables.length) { - object.runnables = []; - for (var j = 0; j < message.runnables.length; ++j) - object.runnables[j] = $root.google.cloud.batch.v1.Runnable.toObject(message.runnables[j], options); - } - if (message.lifecyclePolicies && message.lifecyclePolicies.length) { - object.lifecyclePolicies = []; - for (var j = 0; j < message.lifecyclePolicies.length; ++j) - object.lifecyclePolicies[j] = $root.google.cloud.batch.v1.LifecyclePolicy.toObject(message.lifecyclePolicies[j], options); - } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.batch.v1.Environment.toObject(message.environment, options); - return object; - }; - - /** - * Converts this TaskSpec to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.TaskSpec - * @instance - * @returns {Object.} JSON object - */ - TaskSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for TaskSpec - * @function getTypeUrl - * @memberof google.cloud.batch.v1.TaskSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TaskSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.TaskSpec"; - }; - - return TaskSpec; - })(); - - v1.LifecyclePolicy = (function() { - - /** - * Properties of a LifecyclePolicy. - * @memberof google.cloud.batch.v1 - * @interface ILifecyclePolicy - * @property {google.cloud.batch.v1.LifecyclePolicy.Action|null} [action] LifecyclePolicy action - * @property {google.cloud.batch.v1.LifecyclePolicy.IActionCondition|null} [actionCondition] LifecyclePolicy actionCondition - */ - - /** - * Constructs a new LifecyclePolicy. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a LifecyclePolicy. - * @implements ILifecyclePolicy - * @constructor - * @param {google.cloud.batch.v1.ILifecyclePolicy=} [properties] Properties to set - */ - function LifecyclePolicy(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]]; - } - - /** - * LifecyclePolicy action. - * @member {google.cloud.batch.v1.LifecyclePolicy.Action} action - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @instance - */ - LifecyclePolicy.prototype.action = 0; - - /** - * LifecyclePolicy actionCondition. - * @member {google.cloud.batch.v1.LifecyclePolicy.IActionCondition|null|undefined} actionCondition - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @instance - */ - LifecyclePolicy.prototype.actionCondition = null; - - /** - * Creates a new LifecyclePolicy instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @static - * @param {google.cloud.batch.v1.ILifecyclePolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1.LifecyclePolicy} LifecyclePolicy instance - */ - LifecyclePolicy.create = function create(properties) { - return new LifecyclePolicy(properties); - }; - - /** - * Encodes the specified LifecyclePolicy message. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @static - * @param {google.cloud.batch.v1.ILifecyclePolicy} message LifecyclePolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LifecyclePolicy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.action); - if (message.actionCondition != null && Object.hasOwnProperty.call(message, "actionCondition")) - $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.encode(message.actionCondition, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified LifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @static - * @param {google.cloud.batch.v1.ILifecyclePolicy} message LifecyclePolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LifecyclePolicy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LifecyclePolicy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.LifecyclePolicy} LifecyclePolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LifecyclePolicy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.LifecyclePolicy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.action = reader.int32(); - break; - } - case 2: { - message.actionCondition = $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } + object.location = null; + object.instance = null; + object.serviceAccountEmail = ""; + object.network = null; + object.serviceAccount = null; } - return message; - }; - - /** - * Decodes a LifecyclePolicy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.LifecyclePolicy} LifecyclePolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LifecyclePolicy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LifecyclePolicy message. - * @function verify - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LifecyclePolicy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.action != null && message.hasOwnProperty("action")) - switch (message.action) { - default: - return "action: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.actionCondition != null && message.hasOwnProperty("actionCondition")) { - var error = $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify(message.actionCondition); - if (error) - return "actionCondition." + error; + if (message.location != null && message.hasOwnProperty("location")) + object.location = $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.toObject(message.location, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.toObject(message.instance, options); + if (message.instanceTemplates && message.instanceTemplates.length) { + object.instanceTemplates = []; + for (var j = 0; j < message.instanceTemplates.length; ++j) + object.instanceTemplates[j] = message.instanceTemplates[j]; } - return null; - }; - - /** - * Creates a LifecyclePolicy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.LifecyclePolicy} LifecyclePolicy - */ - LifecyclePolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.LifecyclePolicy) - return object; - var message = new $root.google.cloud.batch.v1.LifecyclePolicy(); - switch (object.action) { - default: - if (typeof object.action === "number") { - message.action = object.action; - break; - } - break; - case "ACTION_UNSPECIFIED": - case 0: - message.action = 0; - break; - case "RETRY_TASK": - case 1: - message.action = 1; - break; - case "FAIL_TASK": - case 2: - message.action = 2; - break; + if (message.provisioningModels && message.provisioningModels.length) { + object.provisioningModels = []; + for (var j = 0; j < message.provisioningModels.length; ++j) + object.provisioningModels[j] = options.enums === String ? $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModels[j]] === undefined ? message.provisioningModels[j] : $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModels[j]] : message.provisioningModels[j]; } - if (object.actionCondition != null) { - if (typeof object.actionCondition !== "object") - throw TypeError(".google.cloud.batch.v1.LifecyclePolicy.actionCondition: object expected"); - message.actionCondition = $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.fromObject(object.actionCondition); + if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) + object.serviceAccountEmail = message.serviceAccountEmail; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } - return message; - }; - - /** - * Creates a plain object from a LifecyclePolicy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @static - * @param {google.cloud.batch.v1.LifecyclePolicy} message LifecyclePolicy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LifecyclePolicy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.action = options.enums === String ? "ACTION_UNSPECIFIED" : 0; - object.actionCondition = null; + if (message.network != null && message.hasOwnProperty("network")) + object.network = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.toObject(message.network, options); + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.toObject(message.instances[j], options); } - if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.google.cloud.batch.v1.LifecyclePolicy.Action[message.action] === undefined ? message.action : $root.google.cloud.batch.v1.LifecyclePolicy.Action[message.action] : message.action; - if (message.actionCondition != null && message.hasOwnProperty("actionCondition")) - object.actionCondition = $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.toObject(message.actionCondition, options); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = $root.google.cloud.batch.v1alpha.ServiceAccount.toObject(message.serviceAccount, options); return object; }; /** - * Converts this LifecyclePolicy to JSON. + * Converts this AllocationPolicy to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.LifecyclePolicy + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @instance * @returns {Object.} JSON object */ - LifecyclePolicy.prototype.toJSON = function toJSON() { + AllocationPolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LifecyclePolicy + * Gets the default type url for AllocationPolicy * @function getTypeUrl - * @memberof google.cloud.batch.v1.LifecyclePolicy + * @memberof google.cloud.batch.v1alpha.AllocationPolicy * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LifecyclePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AllocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.LifecyclePolicy"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy"; }; - LifecyclePolicy.ActionCondition = (function() { + AllocationPolicy.LocationPolicy = (function() { /** - * Properties of an ActionCondition. - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @interface IActionCondition - * @property {Array.|null} [exitCodes] ActionCondition exitCodes + * Properties of a LocationPolicy. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @interface ILocationPolicy + * @property {Array.|null} [allowedLocations] LocationPolicy allowedLocations + * @property {Array.|null} [deniedLocations] LocationPolicy deniedLocations */ /** - * Constructs a new ActionCondition. - * @memberof google.cloud.batch.v1.LifecyclePolicy - * @classdesc Represents an ActionCondition. - * @implements IActionCondition + * Constructs a new LocationPolicy. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @classdesc Represents a LocationPolicy. + * @implements ILocationPolicy * @constructor - * @param {google.cloud.batch.v1.LifecyclePolicy.IActionCondition=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy=} [properties] Properties to set */ - function ActionCondition(properties) { - this.exitCodes = []; + function LocationPolicy(properties) { + this.allowedLocations = []; + this.deniedLocations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21802,86 +19460,95 @@ } /** - * ActionCondition exitCodes. - * @member {Array.} exitCodes - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * LocationPolicy allowedLocations. + * @member {Array.} allowedLocations + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @instance */ - ActionCondition.prototype.exitCodes = $util.emptyArray; + LocationPolicy.prototype.allowedLocations = $util.emptyArray; /** - * Creates a new ActionCondition instance using the specified properties. + * LocationPolicy deniedLocations. + * @member {Array.} deniedLocations + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy + * @instance + */ + LocationPolicy.prototype.deniedLocations = $util.emptyArray; + + /** + * Creates a new LocationPolicy instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @static - * @param {google.cloud.batch.v1.LifecyclePolicy.IActionCondition=} [properties] Properties to set - * @returns {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} ActionCondition instance + * @param {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} LocationPolicy instance */ - ActionCondition.create = function create(properties) { - return new ActionCondition(properties); + LocationPolicy.create = function create(properties) { + return new LocationPolicy(properties); }; /** - * Encodes the specified ActionCondition message. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify|verify} messages. + * Encodes the specified LocationPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @static - * @param {google.cloud.batch.v1.LifecyclePolicy.IActionCondition} message ActionCondition message or plain object to encode + * @param {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy} message LocationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActionCondition.encode = function encode(message, writer) { + LocationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.exitCodes != null && message.exitCodes.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.exitCodes.length; ++i) - writer.int32(message.exitCodes[i]); - writer.ldelim(); - } + if (message.allowedLocations != null && message.allowedLocations.length) + for (var i = 0; i < message.allowedLocations.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowedLocations[i]); + if (message.deniedLocations != null && message.deniedLocations.length) + for (var i = 0; i < message.deniedLocations.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deniedLocations[i]); return writer; }; /** - * Encodes the specified ActionCondition message, length delimited. Does not implicitly {@link google.cloud.batch.v1.LifecyclePolicy.ActionCondition.verify|verify} messages. + * Encodes the specified LocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @static - * @param {google.cloud.batch.v1.LifecyclePolicy.IActionCondition} message ActionCondition message or plain object to encode + * @param {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy} message LocationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActionCondition.encodeDelimited = function encodeDelimited(message, writer) { + LocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ActionCondition message from the specified reader or buffer. + * Decodes a LocationPolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} ActionCondition + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} LocationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ActionCondition.decode = function decode(reader, length) { + LocationPolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.exitCodes && message.exitCodes.length)) - message.exitCodes = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.exitCodes.push(reader.int32()); - } else - message.exitCodes.push(reader.int32()); + if (!(message.allowedLocations && message.allowedLocations.length)) + message.allowedLocations = []; + message.allowedLocations.push(reader.string()); + break; + } + case 2: { + if (!(message.deniedLocations && message.deniedLocations.length)) + message.deniedLocations = []; + message.deniedLocations.push(reader.string()); break; } default: @@ -21893,708 +19560,492 @@ }; /** - * Decodes an ActionCondition message from the specified reader or buffer, length delimited. + * Decodes a LocationPolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} ActionCondition + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} LocationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ActionCondition.decodeDelimited = function decodeDelimited(reader) { + LocationPolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ActionCondition message. + * Verifies a LocationPolicy message. * @function verify - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ActionCondition.verify = function verify(message) { + LocationPolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.exitCodes != null && message.hasOwnProperty("exitCodes")) { - if (!Array.isArray(message.exitCodes)) - return "exitCodes: array expected"; - for (var i = 0; i < message.exitCodes.length; ++i) - if (!$util.isInteger(message.exitCodes[i])) - return "exitCodes: integer[] expected"; + if (message.allowedLocations != null && message.hasOwnProperty("allowedLocations")) { + if (!Array.isArray(message.allowedLocations)) + return "allowedLocations: array expected"; + for (var i = 0; i < message.allowedLocations.length; ++i) + if (!$util.isString(message.allowedLocations[i])) + return "allowedLocations: string[] expected"; + } + if (message.deniedLocations != null && message.hasOwnProperty("deniedLocations")) { + if (!Array.isArray(message.deniedLocations)) + return "deniedLocations: array expected"; + for (var i = 0; i < message.deniedLocations.length; ++i) + if (!$util.isString(message.deniedLocations[i])) + return "deniedLocations: string[] expected"; } return null; }; /** - * Creates an ActionCondition message from a plain object. Also converts values to their respective internal types. + * Creates a LocationPolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} ActionCondition + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} LocationPolicy */ - ActionCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition) + LocationPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy) return object; - var message = new $root.google.cloud.batch.v1.LifecyclePolicy.ActionCondition(); - if (object.exitCodes) { - if (!Array.isArray(object.exitCodes)) - throw TypeError(".google.cloud.batch.v1.LifecyclePolicy.ActionCondition.exitCodes: array expected"); - message.exitCodes = []; - for (var i = 0; i < object.exitCodes.length; ++i) - message.exitCodes[i] = object.exitCodes[i] | 0; + var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy(); + if (object.allowedLocations) { + if (!Array.isArray(object.allowedLocations)) + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.allowedLocations: array expected"); + message.allowedLocations = []; + for (var i = 0; i < object.allowedLocations.length; ++i) + message.allowedLocations[i] = String(object.allowedLocations[i]); + } + if (object.deniedLocations) { + if (!Array.isArray(object.deniedLocations)) + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.deniedLocations: array expected"); + message.deniedLocations = []; + for (var i = 0; i < object.deniedLocations.length; ++i) + message.deniedLocations[i] = String(object.deniedLocations[i]); } return message; }; /** - * Creates a plain object from an ActionCondition message. Also converts values to other types if specified. + * Creates a plain object from a LocationPolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @static - * @param {google.cloud.batch.v1.LifecyclePolicy.ActionCondition} message ActionCondition + * @param {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} message LocationPolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ActionCondition.toObject = function toObject(message, options) { + LocationPolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.exitCodes = []; - if (message.exitCodes && message.exitCodes.length) { - object.exitCodes = []; - for (var j = 0; j < message.exitCodes.length; ++j) - object.exitCodes[j] = message.exitCodes[j]; + if (options.arrays || options.defaults) { + object.allowedLocations = []; + object.deniedLocations = []; + } + if (message.allowedLocations && message.allowedLocations.length) { + object.allowedLocations = []; + for (var j = 0; j < message.allowedLocations.length; ++j) + object.allowedLocations[j] = message.allowedLocations[j]; + } + if (message.deniedLocations && message.deniedLocations.length) { + object.deniedLocations = []; + for (var j = 0; j < message.deniedLocations.length; ++j) + object.deniedLocations[j] = message.deniedLocations[j]; } return object; }; /** - * Converts this ActionCondition to JSON. + * Converts this LocationPolicy to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @instance * @returns {Object.} JSON object */ - ActionCondition.prototype.toJSON = function toJSON() { + LocationPolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ActionCondition + * Gets the default type url for LocationPolicy * @function getTypeUrl - * @memberof google.cloud.batch.v1.LifecyclePolicy.ActionCondition + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ActionCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.LifecyclePolicy.ActionCondition"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy"; }; - return ActionCondition; + return LocationPolicy; })(); - /** - * Action enum. - * @name google.cloud.batch.v1.LifecyclePolicy.Action - * @enum {number} - * @property {number} ACTION_UNSPECIFIED=0 ACTION_UNSPECIFIED value - * @property {number} RETRY_TASK=1 RETRY_TASK value - * @property {number} FAIL_TASK=2 FAIL_TASK value - */ - LifecyclePolicy.Action = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTION_UNSPECIFIED"] = 0; - values[valuesById[1] = "RETRY_TASK"] = 1; - values[valuesById[2] = "FAIL_TASK"] = 2; - return values; - })(); + AllocationPolicy.Disk = (function() { - return LifecyclePolicy; - })(); + /** + * Properties of a Disk. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @interface IDisk + * @property {string|null} [image] Disk image + * @property {string|null} [snapshot] Disk snapshot + * @property {string|null} [type] Disk type + * @property {number|Long|null} [sizeGb] Disk sizeGb + * @property {string|null} [diskInterface] Disk diskInterface + */ - v1.Task = (function() { + /** + * Constructs a new Disk. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @classdesc Represents a Disk. + * @implements IDisk + * @constructor + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IDisk=} [properties] Properties to set + */ + function Disk(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]]; + } - /** - * Properties of a Task. - * @memberof google.cloud.batch.v1 - * @interface ITask - * @property {string|null} [name] Task name - * @property {google.cloud.batch.v1.ITaskStatus|null} [status] Task status - */ + /** + * Disk image. + * @member {string|null|undefined} image + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.image = null; - /** - * Constructs a new Task. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a Task. - * @implements ITask - * @constructor - * @param {google.cloud.batch.v1.ITask=} [properties] Properties to set - */ - function Task(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]]; - } + /** + * Disk snapshot. + * @member {string|null|undefined} snapshot + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.snapshot = null; - /** - * Task name. - * @member {string} name - * @memberof google.cloud.batch.v1.Task - * @instance - */ - Task.prototype.name = ""; + /** + * Disk type. + * @member {string} type + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.type = ""; - /** - * Task status. - * @member {google.cloud.batch.v1.ITaskStatus|null|undefined} status - * @memberof google.cloud.batch.v1.Task - * @instance - */ - Task.prototype.status = null; + /** + * Disk sizeGb. + * @member {number|Long} sizeGb + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.sizeGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Creates a new Task instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.Task - * @static - * @param {google.cloud.batch.v1.ITask=} [properties] Properties to set - * @returns {google.cloud.batch.v1.Task} Task instance - */ - Task.create = function create(properties) { - return new Task(properties); - }; + /** + * Disk diskInterface. + * @member {string} diskInterface + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @instance + */ + Disk.prototype.diskInterface = ""; - /** - * Encodes the specified Task message. Does not implicitly {@link google.cloud.batch.v1.Task.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.Task - * @static - * @param {google.cloud.batch.v1.ITask} message Task message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Task.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.cloud.batch.v1.TaskStatus.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified Task message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Task.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.Task - * @static - * @param {google.cloud.batch.v1.ITask} message Task message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Task.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Disk dataSource. + * @member {"image"|"snapshot"|undefined} dataSource + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @instance + */ + Object.defineProperty(Disk.prototype, "dataSource", { + get: $util.oneOfGetter($oneOfFields = ["image", "snapshot"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Decodes a Task message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.Task - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.Task} Task - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Task.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Task(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.status = $root.google.cloud.batch.v1.TaskStatus.decode(reader, reader.uint32()); + /** + * Creates a new Disk instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IDisk=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Disk} Disk instance + */ + Disk.create = function create(properties) { + return new Disk(properties); + }; + + /** + * Encodes the specified Disk message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IDisk} message Disk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Disk.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.sizeGb != null && Object.hasOwnProperty.call(message, "sizeGb")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.sizeGb); + if (message.image != null && Object.hasOwnProperty.call(message, "image")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.image); + if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.snapshot); + if (message.diskInterface != null && Object.hasOwnProperty.call(message, "diskInterface")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.diskInterface); + return writer; + }; + + /** + * Encodes the specified Disk message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IDisk} message Disk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Disk.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Disk message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Disk} Disk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Disk.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: { + message.image = reader.string(); + break; + } + case 5: { + message.snapshot = reader.string(); + break; + } + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.sizeGb = reader.int64(); + break; + } + case 6: { + message.diskInterface = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Task message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.Task - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.Task} Task - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Task.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Disk message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Disk} Disk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Disk.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Task message. - * @function verify - * @memberof google.cloud.batch.v1.Task - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Task.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.cloud.batch.v1.TaskStatus.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + /** + * Verifies a Disk message. + * @function verify + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Disk.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.image != null && message.hasOwnProperty("image")) { + properties.dataSource = 1; + if (!$util.isString(message.image)) + return "image: string expected"; + } + if (message.snapshot != null && message.hasOwnProperty("snapshot")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + if (!$util.isString(message.snapshot)) + return "snapshot: string expected"; + } + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.sizeGb != null && message.hasOwnProperty("sizeGb")) + if (!$util.isInteger(message.sizeGb) && !(message.sizeGb && $util.isInteger(message.sizeGb.low) && $util.isInteger(message.sizeGb.high))) + return "sizeGb: integer|Long expected"; + if (message.diskInterface != null && message.hasOwnProperty("diskInterface")) + if (!$util.isString(message.diskInterface)) + return "diskInterface: string expected"; + return null; + }; - /** - * Creates a Task message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.Task - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.Task} Task - */ - Task.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.Task) + /** + * Creates a Disk message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Disk} Disk + */ + Disk.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk) + return object; + var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk(); + if (object.image != null) + message.image = String(object.image); + if (object.snapshot != null) + message.snapshot = String(object.snapshot); + if (object.type != null) + message.type = String(object.type); + if (object.sizeGb != null) + if ($util.Long) + (message.sizeGb = $util.Long.fromValue(object.sizeGb)).unsigned = false; + else if (typeof object.sizeGb === "string") + message.sizeGb = parseInt(object.sizeGb, 10); + else if (typeof object.sizeGb === "number") + message.sizeGb = object.sizeGb; + else if (typeof object.sizeGb === "object") + message.sizeGb = new $util.LongBits(object.sizeGb.low >>> 0, object.sizeGb.high >>> 0).toNumber(); + if (object.diskInterface != null) + message.diskInterface = String(object.diskInterface); + return message; + }; + + /** + * Creates a plain object from a Disk message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.Disk} message Disk + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Disk.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.sizeGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sizeGb = options.longs === String ? "0" : 0; + object.diskInterface = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.sizeGb != null && message.hasOwnProperty("sizeGb")) + if (typeof message.sizeGb === "number") + object.sizeGb = options.longs === String ? String(message.sizeGb) : message.sizeGb; + else + object.sizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.sizeGb) : options.longs === Number ? new $util.LongBits(message.sizeGb.low >>> 0, message.sizeGb.high >>> 0).toNumber() : message.sizeGb; + if (message.image != null && message.hasOwnProperty("image")) { + object.image = message.image; + if (options.oneofs) + object.dataSource = "image"; + } + if (message.snapshot != null && message.hasOwnProperty("snapshot")) { + object.snapshot = message.snapshot; + if (options.oneofs) + object.dataSource = "snapshot"; + } + if (message.diskInterface != null && message.hasOwnProperty("diskInterface")) + object.diskInterface = message.diskInterface; return object; - var message = new $root.google.cloud.batch.v1.Task(); - if (object.name != null) - message.name = String(object.name); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.batch.v1.Task.status: object expected"); - message.status = $root.google.cloud.batch.v1.TaskStatus.fromObject(object.status); - } - return message; - }; + }; - /** - * Creates a plain object from a Task message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.Task - * @static - * @param {google.cloud.batch.v1.Task} message Task - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Task.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.status = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.cloud.batch.v1.TaskStatus.toObject(message.status, options); - return object; - }; - - /** - * Converts this Task to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.Task - * @instance - * @returns {Object.} JSON object - */ - Task.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Task - * @function getTypeUrl - * @memberof google.cloud.batch.v1.Task - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Task.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.Task"; - }; - - return Task; - })(); - - v1.Environment = (function() { - - /** - * Properties of an Environment. - * @memberof google.cloud.batch.v1 - * @interface IEnvironment - * @property {Object.|null} [variables] Environment variables - * @property {Object.|null} [secretVariables] Environment secretVariables - * @property {google.cloud.batch.v1.Environment.IKMSEnvMap|null} [encryptedVariables] Environment encryptedVariables - */ - - /** - * Constructs a new Environment. - * @memberof google.cloud.batch.v1 - * @classdesc Represents an Environment. - * @implements IEnvironment - * @constructor - * @param {google.cloud.batch.v1.IEnvironment=} [properties] Properties to set - */ - function Environment(properties) { - this.variables = {}; - this.secretVariables = {}; - 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]]; - } - - /** - * Environment variables. - * @member {Object.} variables - * @memberof google.cloud.batch.v1.Environment - * @instance - */ - Environment.prototype.variables = $util.emptyObject; - - /** - * Environment secretVariables. - * @member {Object.} secretVariables - * @memberof google.cloud.batch.v1.Environment - * @instance - */ - Environment.prototype.secretVariables = $util.emptyObject; - - /** - * Environment encryptedVariables. - * @member {google.cloud.batch.v1.Environment.IKMSEnvMap|null|undefined} encryptedVariables - * @memberof google.cloud.batch.v1.Environment - * @instance - */ - Environment.prototype.encryptedVariables = null; - - /** - * Creates a new Environment instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.Environment - * @static - * @param {google.cloud.batch.v1.IEnvironment=} [properties] Properties to set - * @returns {google.cloud.batch.v1.Environment} Environment instance - */ - Environment.create = function create(properties) { - return new Environment(properties); - }; - - /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.batch.v1.Environment.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.Environment - * @static - * @param {google.cloud.batch.v1.IEnvironment} message Environment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Environment.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.variables != null && Object.hasOwnProperty.call(message, "variables")) - for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.variables[keys[i]]).ldelim(); - if (message.secretVariables != null && Object.hasOwnProperty.call(message, "secretVariables")) - for (var keys = Object.keys(message.secretVariables), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.secretVariables[keys[i]]).ldelim(); - if (message.encryptedVariables != null && Object.hasOwnProperty.call(message, "encryptedVariables")) - $root.google.cloud.batch.v1.Environment.KMSEnvMap.encode(message.encryptedVariables, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Environment.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.Environment - * @static - * @param {google.cloud.batch.v1.IEnvironment} message Environment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Environment.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this Disk to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @instance + * @returns {Object.} JSON object + */ + Disk.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes an Environment message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.Environment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.Environment} Environment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Environment.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Environment(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.variables === $util.emptyObject) - message.variables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.variables[key] = value; - break; - } - case 2: { - if (message.secretVariables === $util.emptyObject) - message.secretVariables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.secretVariables[key] = value; - break; - } - case 3: { - message.encryptedVariables = $root.google.cloud.batch.v1.Environment.KMSEnvMap.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; + /** + * Gets the default type url for Disk + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Disk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - return message; - }; - - /** - * Decodes an Environment message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.Environment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.Environment} Environment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Environment.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Environment message. - * @function verify - * @memberof google.cloud.batch.v1.Environment - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Environment.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.variables != null && message.hasOwnProperty("variables")) { - if (!$util.isObject(message.variables)) - return "variables: object expected"; - var key = Object.keys(message.variables); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.variables[key[i]])) - return "variables: string{k:string} expected"; - } - if (message.secretVariables != null && message.hasOwnProperty("secretVariables")) { - if (!$util.isObject(message.secretVariables)) - return "secretVariables: object expected"; - var key = Object.keys(message.secretVariables); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.secretVariables[key[i]])) - return "secretVariables: string{k:string} expected"; - } - if (message.encryptedVariables != null && message.hasOwnProperty("encryptedVariables")) { - var error = $root.google.cloud.batch.v1.Environment.KMSEnvMap.verify(message.encryptedVariables); - if (error) - return "encryptedVariables." + error; - } - return null; - }; - - /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.Environment - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.Environment} Environment - */ - Environment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.Environment) - return object; - var message = new $root.google.cloud.batch.v1.Environment(); - if (object.variables) { - if (typeof object.variables !== "object") - throw TypeError(".google.cloud.batch.v1.Environment.variables: object expected"); - message.variables = {}; - for (var keys = Object.keys(object.variables), i = 0; i < keys.length; ++i) - message.variables[keys[i]] = String(object.variables[keys[i]]); - } - if (object.secretVariables) { - if (typeof object.secretVariables !== "object") - throw TypeError(".google.cloud.batch.v1.Environment.secretVariables: object expected"); - message.secretVariables = {}; - for (var keys = Object.keys(object.secretVariables), i = 0; i < keys.length; ++i) - message.secretVariables[keys[i]] = String(object.secretVariables[keys[i]]); - } - if (object.encryptedVariables != null) { - if (typeof object.encryptedVariables !== "object") - throw TypeError(".google.cloud.batch.v1.Environment.encryptedVariables: object expected"); - message.encryptedVariables = $root.google.cloud.batch.v1.Environment.KMSEnvMap.fromObject(object.encryptedVariables); - } - return message; - }; - - /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.Environment - * @static - * @param {google.cloud.batch.v1.Environment} message Environment - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Environment.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.variables = {}; - object.secretVariables = {}; - } - if (options.defaults) - object.encryptedVariables = null; - var keys2; - if (message.variables && (keys2 = Object.keys(message.variables)).length) { - object.variables = {}; - for (var j = 0; j < keys2.length; ++j) - object.variables[keys2[j]] = message.variables[keys2[j]]; - } - if (message.secretVariables && (keys2 = Object.keys(message.secretVariables)).length) { - object.secretVariables = {}; - for (var j = 0; j < keys2.length; ++j) - object.secretVariables[keys2[j]] = message.secretVariables[keys2[j]]; - } - if (message.encryptedVariables != null && message.hasOwnProperty("encryptedVariables")) - object.encryptedVariables = $root.google.cloud.batch.v1.Environment.KMSEnvMap.toObject(message.encryptedVariables, options); - return object; - }; - - /** - * Converts this Environment to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.Environment - * @instance - * @returns {Object.} JSON object - */ - Environment.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.Disk"; + }; - /** - * Gets the default type url for Environment - * @function getTypeUrl - * @memberof google.cloud.batch.v1.Environment - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.Environment"; - }; + return Disk; + })(); - Environment.KMSEnvMap = (function() { + AllocationPolicy.AttachedDisk = (function() { /** - * Properties of a KMSEnvMap. - * @memberof google.cloud.batch.v1.Environment - * @interface IKMSEnvMap - * @property {string|null} [keyName] KMSEnvMap keyName - * @property {string|null} [cipherText] KMSEnvMap cipherText + * Properties of an AttachedDisk. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @interface IAttachedDisk + * @property {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null} [newDisk] AttachedDisk newDisk + * @property {string|null} [existingDisk] AttachedDisk existingDisk + * @property {string|null} [deviceName] AttachedDisk deviceName */ /** - * Constructs a new KMSEnvMap. - * @memberof google.cloud.batch.v1.Environment - * @classdesc Represents a KMSEnvMap. - * @implements IKMSEnvMap + * Constructs a new AttachedDisk. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @classdesc Represents an AttachedDisk. + * @implements IAttachedDisk * @constructor - * @param {google.cloud.batch.v1.Environment.IKMSEnvMap=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk=} [properties] Properties to set */ - function KMSEnvMap(properties) { + function AttachedDisk(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22602,89 +20053,117 @@ } /** - * KMSEnvMap keyName. - * @member {string} keyName - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * AttachedDisk newDisk. + * @member {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null|undefined} newDisk + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @instance */ - KMSEnvMap.prototype.keyName = ""; + AttachedDisk.prototype.newDisk = null; /** - * KMSEnvMap cipherText. - * @member {string} cipherText - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * AttachedDisk existingDisk. + * @member {string|null|undefined} existingDisk + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @instance */ - KMSEnvMap.prototype.cipherText = ""; + AttachedDisk.prototype.existingDisk = null; /** - * Creates a new KMSEnvMap instance using the specified properties. + * AttachedDisk deviceName. + * @member {string} deviceName + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk + * @instance + */ + AttachedDisk.prototype.deviceName = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AttachedDisk attached. + * @member {"newDisk"|"existingDisk"|undefined} attached + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk + * @instance + */ + Object.defineProperty(AttachedDisk.prototype, "attached", { + get: $util.oneOfGetter($oneOfFields = ["newDisk", "existingDisk"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AttachedDisk instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @static - * @param {google.cloud.batch.v1.Environment.IKMSEnvMap=} [properties] Properties to set - * @returns {google.cloud.batch.v1.Environment.KMSEnvMap} KMSEnvMap instance + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} AttachedDisk instance */ - KMSEnvMap.create = function create(properties) { - return new KMSEnvMap(properties); + AttachedDisk.create = function create(properties) { + return new AttachedDisk(properties); }; /** - * Encodes the specified KMSEnvMap message. Does not implicitly {@link google.cloud.batch.v1.Environment.KMSEnvMap.verify|verify} messages. + * Encodes the specified AttachedDisk message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @static - * @param {google.cloud.batch.v1.Environment.IKMSEnvMap} message KMSEnvMap message or plain object to encode + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk} message AttachedDisk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KMSEnvMap.encode = function encode(message, writer) { + AttachedDisk.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyName != null && Object.hasOwnProperty.call(message, "keyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyName); - if (message.cipherText != null && Object.hasOwnProperty.call(message, "cipherText")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cipherText); + if (message.newDisk != null && Object.hasOwnProperty.call(message, "newDisk")) + $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.encode(message.newDisk, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.existingDisk != null && Object.hasOwnProperty.call(message, "existingDisk")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.existingDisk); + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceName); return writer; }; /** - * Encodes the specified KMSEnvMap message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Environment.KMSEnvMap.verify|verify} messages. + * Encodes the specified AttachedDisk message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @static - * @param {google.cloud.batch.v1.Environment.IKMSEnvMap} message KMSEnvMap message or plain object to encode + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk} message AttachedDisk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KMSEnvMap.encodeDelimited = function encodeDelimited(message, writer) { + AttachedDisk.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KMSEnvMap message from the specified reader or buffer. + * Decodes an AttachedDisk message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.Environment.KMSEnvMap} KMSEnvMap + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} AttachedDisk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KMSEnvMap.decode = function decode(reader, length) { + AttachedDisk.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Environment.KMSEnvMap(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.keyName = reader.string(); + message.newDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.decode(reader, reader.uint32()); break; } case 2: { - message.cipherText = reader.string(); + message.existingDisk = reader.string(); + break; + } + case 3: { + message.deviceName = reader.string(); break; } default: @@ -22696,1167 +20175,1665 @@ }; /** - * Decodes a KMSEnvMap message from the specified reader or buffer, length delimited. + * Decodes an AttachedDisk message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.Environment.KMSEnvMap} KMSEnvMap + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} AttachedDisk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KMSEnvMap.decodeDelimited = function decodeDelimited(reader) { + AttachedDisk.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a KMSEnvMap message. + * Verifies an AttachedDisk message. * @function verify - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KMSEnvMap.verify = function verify(message) { + AttachedDisk.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyName != null && message.hasOwnProperty("keyName")) - if (!$util.isString(message.keyName)) - return "keyName: string expected"; - if (message.cipherText != null && message.hasOwnProperty("cipherText")) - if (!$util.isString(message.cipherText)) - return "cipherText: string expected"; + var properties = {}; + if (message.newDisk != null && message.hasOwnProperty("newDisk")) { + properties.attached = 1; + { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify(message.newDisk); + if (error) + return "newDisk." + error; + } + } + if (message.existingDisk != null && message.hasOwnProperty("existingDisk")) { + if (properties.attached === 1) + return "attached: multiple values"; + properties.attached = 1; + if (!$util.isString(message.existingDisk)) + return "existingDisk: string expected"; + } + if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (!$util.isString(message.deviceName)) + return "deviceName: string expected"; return null; }; /** - * Creates a KMSEnvMap message from a plain object. Also converts values to their respective internal types. + * Creates an AttachedDisk message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.Environment.KMSEnvMap} KMSEnvMap + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} AttachedDisk */ - KMSEnvMap.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.Environment.KMSEnvMap) + AttachedDisk.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk) return object; - var message = new $root.google.cloud.batch.v1.Environment.KMSEnvMap(); - if (object.keyName != null) - message.keyName = String(object.keyName); - if (object.cipherText != null) - message.cipherText = String(object.cipherText); + var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk(); + if (object.newDisk != null) { + if (typeof object.newDisk !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.newDisk: object expected"); + message.newDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.fromObject(object.newDisk); + } + if (object.existingDisk != null) + message.existingDisk = String(object.existingDisk); + if (object.deviceName != null) + message.deviceName = String(object.deviceName); return message; }; /** - * Creates a plain object from a KMSEnvMap message. Also converts values to other types if specified. + * Creates a plain object from an AttachedDisk message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @static - * @param {google.cloud.batch.v1.Environment.KMSEnvMap} message KMSEnvMap + * @param {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} message AttachedDisk * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KMSEnvMap.toObject = function toObject(message, options) { + AttachedDisk.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyName = ""; - object.cipherText = ""; + if (options.defaults) + object.deviceName = ""; + if (message.newDisk != null && message.hasOwnProperty("newDisk")) { + object.newDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.toObject(message.newDisk, options); + if (options.oneofs) + object.attached = "newDisk"; } - if (message.keyName != null && message.hasOwnProperty("keyName")) - object.keyName = message.keyName; - if (message.cipherText != null && message.hasOwnProperty("cipherText")) - object.cipherText = message.cipherText; + if (message.existingDisk != null && message.hasOwnProperty("existingDisk")) { + object.existingDisk = message.existingDisk; + if (options.oneofs) + object.attached = "existingDisk"; + } + if (message.deviceName != null && message.hasOwnProperty("deviceName")) + object.deviceName = message.deviceName; return object; }; /** - * Converts this KMSEnvMap to JSON. + * Converts this AttachedDisk to JSON. * @function toJSON - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @instance * @returns {Object.} JSON object */ - KMSEnvMap.prototype.toJSON = function toJSON() { + AttachedDisk.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for KMSEnvMap + * Gets the default type url for AttachedDisk * @function getTypeUrl - * @memberof google.cloud.batch.v1.Environment.KMSEnvMap + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - KMSEnvMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AttachedDisk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1.Environment.KMSEnvMap"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk"; }; - return KMSEnvMap; + return AttachedDisk; })(); - return Environment; - })(); - - v1.Volume = (function() { - - /** - * Properties of a Volume. - * @memberof google.cloud.batch.v1 - * @interface IVolume - * @property {google.cloud.batch.v1.INFS|null} [nfs] Volume nfs - * @property {google.cloud.batch.v1.IGCS|null} [gcs] Volume gcs - * @property {string|null} [deviceName] Volume deviceName - * @property {string|null} [mountPath] Volume mountPath - * @property {Array.|null} [mountOptions] Volume mountOptions - */ - - /** - * Constructs a new Volume. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a Volume. - * @implements IVolume - * @constructor - * @param {google.cloud.batch.v1.IVolume=} [properties] Properties to set - */ - function Volume(properties) { - this.mountOptions = []; - 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]]; - } - - /** - * Volume nfs. - * @member {google.cloud.batch.v1.INFS|null|undefined} nfs - * @memberof google.cloud.batch.v1.Volume - * @instance - */ - Volume.prototype.nfs = null; - - /** - * Volume gcs. - * @member {google.cloud.batch.v1.IGCS|null|undefined} gcs - * @memberof google.cloud.batch.v1.Volume - * @instance - */ - Volume.prototype.gcs = null; + AllocationPolicy.Accelerator = (function() { - /** - * Volume deviceName. - * @member {string|null|undefined} deviceName - * @memberof google.cloud.batch.v1.Volume - * @instance - */ - Volume.prototype.deviceName = null; + /** + * Properties of an Accelerator. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @interface IAccelerator + * @property {string|null} [type] Accelerator type + * @property {number|Long|null} [count] Accelerator count + * @property {boolean|null} [installGpuDrivers] Accelerator installGpuDrivers + */ - /** - * Volume mountPath. - * @member {string} mountPath - * @memberof google.cloud.batch.v1.Volume - * @instance - */ - Volume.prototype.mountPath = ""; + /** + * Constructs a new Accelerator. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @classdesc Represents an Accelerator. + * @implements IAccelerator + * @constructor + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator=} [properties] Properties to set + */ + function Accelerator(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]]; + } - /** - * Volume mountOptions. - * @member {Array.} mountOptions - * @memberof google.cloud.batch.v1.Volume - * @instance - */ - Volume.prototype.mountOptions = $util.emptyArray; + /** + * Accelerator type. + * @member {string} type + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @instance + */ + Accelerator.prototype.type = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Accelerator count. + * @member {number|Long} count + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @instance + */ + Accelerator.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Volume source. - * @member {"nfs"|"gcs"|"deviceName"|undefined} source - * @memberof google.cloud.batch.v1.Volume - * @instance - */ - Object.defineProperty(Volume.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["nfs", "gcs", "deviceName"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Accelerator installGpuDrivers. + * @member {boolean} installGpuDrivers + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @instance + */ + Accelerator.prototype.installGpuDrivers = false; - /** - * Creates a new Volume instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.Volume - * @static - * @param {google.cloud.batch.v1.IVolume=} [properties] Properties to set - * @returns {google.cloud.batch.v1.Volume} Volume instance - */ - Volume.create = function create(properties) { - return new Volume(properties); - }; + /** + * Creates a new Accelerator instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} Accelerator instance + */ + Accelerator.create = function create(properties) { + return new Accelerator(properties); + }; - /** - * Encodes the specified Volume message. Does not implicitly {@link google.cloud.batch.v1.Volume.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.Volume - * @static - * @param {google.cloud.batch.v1.IVolume} message Volume message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Volume.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nfs != null && Object.hasOwnProperty.call(message, "nfs")) - $root.google.cloud.batch.v1.NFS.encode(message.nfs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) - $root.google.cloud.batch.v1.GCS.encode(message.gcs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.mountPath != null && Object.hasOwnProperty.call(message, "mountPath")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.mountPath); - if (message.mountOptions != null && message.mountOptions.length) - for (var i = 0; i < message.mountOptions.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.mountOptions[i]); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.deviceName); - return writer; - }; + /** + * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator} message Accelerator message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Accelerator.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.count); + if (message.installGpuDrivers != null && Object.hasOwnProperty.call(message, "installGpuDrivers")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.installGpuDrivers); + return writer; + }; - /** - * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.batch.v1.Volume.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.Volume - * @static - * @param {google.cloud.batch.v1.IVolume} message Volume message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Volume.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator} message Accelerator message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Accelerator.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Volume message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.Volume - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.Volume} Volume - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Volume.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.Volume(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.nfs = $root.google.cloud.batch.v1.NFS.decode(reader, reader.uint32()); - break; - } - case 3: { - message.gcs = $root.google.cloud.batch.v1.GCS.decode(reader, reader.uint32()); - break; - } - case 6: { - message.deviceName = reader.string(); - break; - } - case 4: { - message.mountPath = reader.string(); - break; - } - case 5: { - if (!(message.mountOptions && message.mountOptions.length)) - message.mountOptions = []; - message.mountOptions.push(reader.string()); + /** + * Decodes an Accelerator message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} Accelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Accelerator.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.count = reader.int64(); + break; + } + case 3: { + message.installGpuDrivers = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Volume message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.Volume - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.Volume} Volume - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Volume.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an Accelerator message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} Accelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Accelerator.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Volume message. - * @function verify - * @memberof google.cloud.batch.v1.Volume - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Volume.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.nfs != null && message.hasOwnProperty("nfs")) { - properties.source = 1; - { - var error = $root.google.cloud.batch.v1.NFS.verify(message.nfs); - if (error) - return "nfs." + error; - } - } - if (message.gcs != null && message.hasOwnProperty("gcs")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - { - var error = $root.google.cloud.batch.v1.GCS.verify(message.gcs); - if (error) - return "gcs." + error; - } - } - if (message.deviceName != null && message.hasOwnProperty("deviceName")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - } - if (message.mountPath != null && message.hasOwnProperty("mountPath")) - if (!$util.isString(message.mountPath)) - return "mountPath: string expected"; - if (message.mountOptions != null && message.hasOwnProperty("mountOptions")) { - if (!Array.isArray(message.mountOptions)) - return "mountOptions: array expected"; - for (var i = 0; i < message.mountOptions.length; ++i) - if (!$util.isString(message.mountOptions[i])) - return "mountOptions: string[] expected"; - } - return null; - }; + /** + * Verifies an Accelerator message. + * @function verify + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Accelerator.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) + return "count: integer|Long expected"; + if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) + if (typeof message.installGpuDrivers !== "boolean") + return "installGpuDrivers: boolean expected"; + return null; + }; - /** - * Creates a Volume message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.Volume - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.Volume} Volume - */ - Volume.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.Volume) - return object; - var message = new $root.google.cloud.batch.v1.Volume(); - if (object.nfs != null) { - if (typeof object.nfs !== "object") - throw TypeError(".google.cloud.batch.v1.Volume.nfs: object expected"); - message.nfs = $root.google.cloud.batch.v1.NFS.fromObject(object.nfs); - } - if (object.gcs != null) { - if (typeof object.gcs !== "object") - throw TypeError(".google.cloud.batch.v1.Volume.gcs: object expected"); - message.gcs = $root.google.cloud.batch.v1.GCS.fromObject(object.gcs); - } - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - if (object.mountPath != null) - message.mountPath = String(object.mountPath); - if (object.mountOptions) { - if (!Array.isArray(object.mountOptions)) - throw TypeError(".google.cloud.batch.v1.Volume.mountOptions: array expected"); - message.mountOptions = []; - for (var i = 0; i < object.mountOptions.length; ++i) - message.mountOptions[i] = String(object.mountOptions[i]); - } - return message; - }; + /** + * Creates an Accelerator message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} Accelerator + */ + Accelerator.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator) + return object; + var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator(); + if (object.type != null) + message.type = String(object.type); + if (object.count != null) + if ($util.Long) + (message.count = $util.Long.fromValue(object.count)).unsigned = false; + else if (typeof object.count === "string") + message.count = parseInt(object.count, 10); + else if (typeof object.count === "number") + message.count = object.count; + else if (typeof object.count === "object") + message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); + if (object.installGpuDrivers != null) + message.installGpuDrivers = Boolean(object.installGpuDrivers); + return message; + }; - /** - * Creates a plain object from a Volume message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.Volume - * @static - * @param {google.cloud.batch.v1.Volume} message Volume - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Volume.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.mountOptions = []; - if (options.defaults) - object.mountPath = ""; - if (message.nfs != null && message.hasOwnProperty("nfs")) { - object.nfs = $root.google.cloud.batch.v1.NFS.toObject(message.nfs, options); - if (options.oneofs) - object.source = "nfs"; - } - if (message.gcs != null && message.hasOwnProperty("gcs")) { - object.gcs = $root.google.cloud.batch.v1.GCS.toObject(message.gcs, options); - if (options.oneofs) - object.source = "gcs"; - } - if (message.mountPath != null && message.hasOwnProperty("mountPath")) - object.mountPath = message.mountPath; - if (message.mountOptions && message.mountOptions.length) { - object.mountOptions = []; - for (var j = 0; j < message.mountOptions.length; ++j) - object.mountOptions[j] = message.mountOptions[j]; - } - if (message.deviceName != null && message.hasOwnProperty("deviceName")) { - object.deviceName = message.deviceName; - if (options.oneofs) - object.source = "deviceName"; - } - return object; - }; + /** + * Creates a plain object from an Accelerator message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} message Accelerator + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Accelerator.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.count = options.longs === String ? "0" : 0; + object.installGpuDrivers = false; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.count != null && message.hasOwnProperty("count")) + if (typeof message.count === "number") + object.count = options.longs === String ? String(message.count) : message.count; + else + object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; + if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) + object.installGpuDrivers = message.installGpuDrivers; + return object; + }; - /** - * Converts this Volume to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.Volume - * @instance - * @returns {Object.} JSON object - */ - Volume.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Accelerator to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @instance + * @returns {Object.} JSON object + */ + Accelerator.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Volume - * @function getTypeUrl - * @memberof google.cloud.batch.v1.Volume - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Volume.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.Volume"; - }; + /** + * Gets the default type url for Accelerator + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Accelerator.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.Accelerator"; + }; - return Volume; - })(); + return Accelerator; + })(); - v1.NFS = (function() { + AllocationPolicy.InstancePolicy = (function() { - /** - * Properties of a NFS. - * @memberof google.cloud.batch.v1 - * @interface INFS - * @property {string|null} [server] NFS server - * @property {string|null} [remotePath] NFS remotePath - */ + /** + * Properties of an InstancePolicy. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @interface IInstancePolicy + * @property {Array.|null} [allowedMachineTypes] InstancePolicy allowedMachineTypes + * @property {string|null} [machineType] InstancePolicy machineType + * @property {string|null} [minCpuPlatform] InstancePolicy minCpuPlatform + * @property {google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|null} [provisioningModel] InstancePolicy provisioningModel + * @property {Array.|null} [accelerators] InstancePolicy accelerators + * @property {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null} [bootDisk] InstancePolicy bootDisk + * @property {Array.|null} [disks] InstancePolicy disks + * @property {string|null} [reservation] InstancePolicy reservation + */ - /** - * Constructs a new NFS. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a NFS. - * @implements INFS - * @constructor - * @param {google.cloud.batch.v1.INFS=} [properties] Properties to set - */ - function NFS(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]]; - } + /** + * Constructs a new InstancePolicy. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @classdesc Represents an InstancePolicy. + * @implements IInstancePolicy + * @constructor + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy=} [properties] Properties to set + */ + function InstancePolicy(properties) { + this.allowedMachineTypes = []; + this.accelerators = []; + this.disks = []; + 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]]; + } - /** - * NFS server. - * @member {string} server - * @memberof google.cloud.batch.v1.NFS - * @instance - */ - NFS.prototype.server = ""; + /** + * InstancePolicy allowedMachineTypes. + * @member {Array.} allowedMachineTypes + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.allowedMachineTypes = $util.emptyArray; - /** - * NFS remotePath. - * @member {string} remotePath - * @memberof google.cloud.batch.v1.NFS - * @instance - */ - NFS.prototype.remotePath = ""; + /** + * InstancePolicy machineType. + * @member {string} machineType + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.machineType = ""; - /** - * Creates a new NFS instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.NFS - * @static - * @param {google.cloud.batch.v1.INFS=} [properties] Properties to set - * @returns {google.cloud.batch.v1.NFS} NFS instance - */ - NFS.create = function create(properties) { - return new NFS(properties); - }; + /** + * InstancePolicy minCpuPlatform. + * @member {string} minCpuPlatform + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.minCpuPlatform = ""; - /** - * Encodes the specified NFS message. Does not implicitly {@link google.cloud.batch.v1.NFS.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.NFS - * @static - * @param {google.cloud.batch.v1.INFS} message NFS message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NFS.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.server != null && Object.hasOwnProperty.call(message, "server")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.server); - if (message.remotePath != null && Object.hasOwnProperty.call(message, "remotePath")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.remotePath); - return writer; - }; + /** + * InstancePolicy provisioningModel. + * @member {google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel} provisioningModel + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.provisioningModel = 0; - /** - * Encodes the specified NFS message, length delimited. Does not implicitly {@link google.cloud.batch.v1.NFS.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.NFS - * @static - * @param {google.cloud.batch.v1.INFS} message NFS message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NFS.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * InstancePolicy accelerators. + * @member {Array.} accelerators + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.accelerators = $util.emptyArray; - /** - * Decodes a NFS message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.NFS - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.NFS} NFS - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NFS.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.NFS(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.server = reader.string(); - break; - } - case 2: { - message.remotePath = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * InstancePolicy bootDisk. + * @member {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null|undefined} bootDisk + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.bootDisk = null; - /** - * Decodes a NFS message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.NFS - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.NFS} NFS - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NFS.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * InstancePolicy disks. + * @member {Array.} disks + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.disks = $util.emptyArray; - /** - * Verifies a NFS message. - * @function verify - * @memberof google.cloud.batch.v1.NFS - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NFS.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.server != null && message.hasOwnProperty("server")) - if (!$util.isString(message.server)) - return "server: string expected"; - if (message.remotePath != null && message.hasOwnProperty("remotePath")) - if (!$util.isString(message.remotePath)) - return "remotePath: string expected"; - return null; - }; + /** + * InstancePolicy reservation. + * @member {string} reservation + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @instance + */ + InstancePolicy.prototype.reservation = ""; - /** - * Creates a NFS message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.NFS - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.NFS} NFS - */ - NFS.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.NFS) - return object; - var message = new $root.google.cloud.batch.v1.NFS(); - if (object.server != null) - message.server = String(object.server); - if (object.remotePath != null) - message.remotePath = String(object.remotePath); - return message; - }; + /** + * Creates a new InstancePolicy instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} InstancePolicy instance + */ + InstancePolicy.create = function create(properties) { + return new InstancePolicy(properties); + }; - /** - * Creates a plain object from a NFS message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.NFS - * @static - * @param {google.cloud.batch.v1.NFS} message NFS - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NFS.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.server = ""; - object.remotePath = ""; - } - if (message.server != null && message.hasOwnProperty("server")) - object.server = message.server; - if (message.remotePath != null && message.hasOwnProperty("remotePath")) - object.remotePath = message.remotePath; - return object; - }; + /** + * Encodes the specified InstancePolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy} message InstancePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowedMachineTypes != null && message.allowedMachineTypes.length) + for (var i = 0; i < message.allowedMachineTypes.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowedMachineTypes[i]); + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.machineType); + if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.minCpuPlatform); + if (message.provisioningModel != null && Object.hasOwnProperty.call(message, "provisioningModel")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.provisioningModel); + if (message.accelerators != null && message.accelerators.length) + for (var i = 0; i < message.accelerators.length; ++i) + $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.encode(message.accelerators[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.disks != null && message.disks.length) + for (var i = 0; i < message.disks.length; ++i) + $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.encode(message.disks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.reservation != null && Object.hasOwnProperty.call(message, "reservation")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.reservation); + if (message.bootDisk != null && Object.hasOwnProperty.call(message, "bootDisk")) + $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.encode(message.bootDisk, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; - /** - * Converts this NFS to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.NFS - * @instance - * @returns {Object.} JSON object - */ - NFS.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified InstancePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy} message InstancePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for NFS - * @function getTypeUrl - * @memberof google.cloud.batch.v1.NFS - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NFS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.NFS"; - }; - - return NFS; - })(); - - v1.GCS = (function() { - - /** - * Properties of a GCS. - * @memberof google.cloud.batch.v1 - * @interface IGCS - * @property {string|null} [remotePath] GCS remotePath - */ - - /** - * Constructs a new GCS. - * @memberof google.cloud.batch.v1 - * @classdesc Represents a GCS. - * @implements IGCS - * @constructor - * @param {google.cloud.batch.v1.IGCS=} [properties] Properties to set - */ - function GCS(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]]; - } - - /** - * GCS remotePath. - * @member {string} remotePath - * @memberof google.cloud.batch.v1.GCS - * @instance - */ - GCS.prototype.remotePath = ""; - - /** - * Creates a new GCS instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1.GCS - * @static - * @param {google.cloud.batch.v1.IGCS=} [properties] Properties to set - * @returns {google.cloud.batch.v1.GCS} GCS instance - */ - GCS.create = function create(properties) { - return new GCS(properties); - }; - - /** - * Encodes the specified GCS message. Does not implicitly {@link google.cloud.batch.v1.GCS.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1.GCS - * @static - * @param {google.cloud.batch.v1.IGCS} message GCS message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCS.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.remotePath != null && Object.hasOwnProperty.call(message, "remotePath")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.remotePath); - return writer; - }; + /** + * Decodes an InstancePolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} InstancePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.allowedMachineTypes && message.allowedMachineTypes.length)) + message.allowedMachineTypes = []; + message.allowedMachineTypes.push(reader.string()); + break; + } + case 2: { + message.machineType = reader.string(); + break; + } + case 3: { + message.minCpuPlatform = reader.string(); + break; + } + case 4: { + message.provisioningModel = reader.int32(); + break; + } + case 5: { + if (!(message.accelerators && message.accelerators.length)) + message.accelerators = []; + message.accelerators.push($root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.decode(reader, reader.uint32())); + break; + } + case 8: { + message.bootDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.disks && message.disks.length)) + message.disks = []; + message.disks.push($root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.decode(reader, reader.uint32())); + break; + } + case 7: { + message.reservation = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified GCS message, length delimited. Does not implicitly {@link google.cloud.batch.v1.GCS.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1.GCS - * @static - * @param {google.cloud.batch.v1.IGCS} message GCS message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCS.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes an InstancePolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} InstancePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a GCS message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1.GCS - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1.GCS} GCS - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCS.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1.GCS(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.remotePath = reader.string(); + /** + * Verifies an InstancePolicy message. + * @function verify + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstancePolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowedMachineTypes != null && message.hasOwnProperty("allowedMachineTypes")) { + if (!Array.isArray(message.allowedMachineTypes)) + return "allowedMachineTypes: array expected"; + for (var i = 0; i < message.allowedMachineTypes.length; ++i) + if (!$util.isString(message.allowedMachineTypes[i])) + return "allowedMachineTypes: string[] expected"; + } + if (message.machineType != null && message.hasOwnProperty("machineType")) + if (!$util.isString(message.machineType)) + return "machineType: string expected"; + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + if (!$util.isString(message.minCpuPlatform)) + return "minCpuPlatform: string expected"; + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) + switch (message.provisioningModel) { + default: + return "provisioningModel: enum value expected"; + case 0: + case 1: + case 2: + case 3: break; } + if (message.accelerators != null && message.hasOwnProperty("accelerators")) { + if (!Array.isArray(message.accelerators)) + return "accelerators: array expected"; + for (var i = 0; i < message.accelerators.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify(message.accelerators[i]); + if (error) + return "accelerators." + error; + } + } + if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify(message.bootDisk); + if (error) + return "bootDisk." + error; + } + if (message.disks != null && message.hasOwnProperty("disks")) { + if (!Array.isArray(message.disks)) + return "disks: array expected"; + for (var i = 0; i < message.disks.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify(message.disks[i]); + if (error) + return "disks." + error; + } + } + if (message.reservation != null && message.hasOwnProperty("reservation")) + if (!$util.isString(message.reservation)) + return "reservation: string expected"; + return null; + }; + + /** + * Creates an InstancePolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} InstancePolicy + */ + InstancePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy) + return object; + var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy(); + if (object.allowedMachineTypes) { + if (!Array.isArray(object.allowedMachineTypes)) + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowedMachineTypes: array expected"); + message.allowedMachineTypes = []; + for (var i = 0; i < object.allowedMachineTypes.length; ++i) + message.allowedMachineTypes[i] = String(object.allowedMachineTypes[i]); + } + if (object.machineType != null) + message.machineType = String(object.machineType); + if (object.minCpuPlatform != null) + message.minCpuPlatform = String(object.minCpuPlatform); + switch (object.provisioningModel) { default: - reader.skipType(tag & 7); + if (typeof object.provisioningModel === "number") { + message.provisioningModel = object.provisioningModel; + break; + } + break; + case "PROVISIONING_MODEL_UNSPECIFIED": + case 0: + message.provisioningModel = 0; + break; + case "STANDARD": + case 1: + message.provisioningModel = 1; + break; + case "SPOT": + case 2: + message.provisioningModel = 2; + break; + case "PREEMPTIBLE": + case 3: + message.provisioningModel = 3; break; } - } - return message; - }; - - /** - * Decodes a GCS message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1.GCS - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1.GCS} GCS - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCS.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GCS message. - * @function verify - * @memberof google.cloud.batch.v1.GCS - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GCS.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.remotePath != null && message.hasOwnProperty("remotePath")) - if (!$util.isString(message.remotePath)) - return "remotePath: string expected"; - return null; - }; + if (object.accelerators) { + if (!Array.isArray(object.accelerators)) + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.accelerators: array expected"); + message.accelerators = []; + for (var i = 0; i < object.accelerators.length; ++i) { + if (typeof object.accelerators[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.accelerators: object expected"); + message.accelerators[i] = $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.fromObject(object.accelerators[i]); + } + } + if (object.bootDisk != null) { + if (typeof object.bootDisk !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.bootDisk: object expected"); + message.bootDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.fromObject(object.bootDisk); + } + if (object.disks) { + if (!Array.isArray(object.disks)) + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.disks: array expected"); + message.disks = []; + for (var i = 0; i < object.disks.length; ++i) { + if (typeof object.disks[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.disks: object expected"); + message.disks[i] = $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.fromObject(object.disks[i]); + } + } + if (object.reservation != null) + message.reservation = String(object.reservation); + return message; + }; - /** - * Creates a GCS message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1.GCS - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1.GCS} GCS - */ - GCS.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1.GCS) + /** + * Creates a plain object from an InstancePolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} message InstancePolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstancePolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.allowedMachineTypes = []; + object.accelerators = []; + object.disks = []; + } + if (options.defaults) { + object.machineType = ""; + object.minCpuPlatform = ""; + object.provisioningModel = options.enums === String ? "PROVISIONING_MODEL_UNSPECIFIED" : 0; + object.reservation = ""; + object.bootDisk = null; + } + if (message.allowedMachineTypes && message.allowedMachineTypes.length) { + object.allowedMachineTypes = []; + for (var j = 0; j < message.allowedMachineTypes.length; ++j) + object.allowedMachineTypes[j] = message.allowedMachineTypes[j]; + } + if (message.machineType != null && message.hasOwnProperty("machineType")) + object.machineType = message.machineType; + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + object.minCpuPlatform = message.minCpuPlatform; + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) + object.provisioningModel = options.enums === String ? $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModel] === undefined ? message.provisioningModel : $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModel] : message.provisioningModel; + if (message.accelerators && message.accelerators.length) { + object.accelerators = []; + for (var j = 0; j < message.accelerators.length; ++j) + object.accelerators[j] = $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.toObject(message.accelerators[j], options); + } + if (message.disks && message.disks.length) { + object.disks = []; + for (var j = 0; j < message.disks.length; ++j) + object.disks[j] = $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.toObject(message.disks[j], options); + } + if (message.reservation != null && message.hasOwnProperty("reservation")) + object.reservation = message.reservation; + if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) + object.bootDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.toObject(message.bootDisk, options); return object; - var message = new $root.google.cloud.batch.v1.GCS(); - if (object.remotePath != null) - message.remotePath = String(object.remotePath); - return message; - }; - - /** - * Creates a plain object from a GCS message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1.GCS - * @static - * @param {google.cloud.batch.v1.GCS} message GCS - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GCS.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.remotePath = ""; - if (message.remotePath != null && message.hasOwnProperty("remotePath")) - object.remotePath = message.remotePath; - return object; - }; + }; - /** - * Converts this GCS to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1.GCS - * @instance - * @returns {Object.} JSON object - */ - GCS.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this InstancePolicy to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @instance + * @returns {Object.} JSON object + */ + InstancePolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for GCS - * @function getTypeUrl - * @memberof google.cloud.batch.v1.GCS - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GCS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1.GCS"; - }; + /** + * Gets the default type url for InstancePolicy + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstancePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy"; + }; - return GCS; - })(); + return InstancePolicy; + })(); - return v1; - })(); + AllocationPolicy.InstancePolicyOrTemplate = (function() { - batch.v1alpha = (function() { + /** + * Properties of an InstancePolicyOrTemplate. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @interface IInstancePolicyOrTemplate + * @property {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null} [policy] InstancePolicyOrTemplate policy + * @property {string|null} [instanceTemplate] InstancePolicyOrTemplate instanceTemplate + * @property {boolean|null} [installGpuDrivers] InstancePolicyOrTemplate installGpuDrivers + */ - /** - * Namespace v1alpha. - * @memberof google.cloud.batch - * @namespace - */ - var v1alpha = {}; - - v1alpha.BatchService = (function() { - - /** - * Constructs a new BatchService service. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a BatchService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function BatchService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Constructs a new InstancePolicyOrTemplate. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @classdesc Represents an InstancePolicyOrTemplate. + * @implements IInstancePolicyOrTemplate + * @constructor + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate=} [properties] Properties to set + */ + function InstancePolicyOrTemplate(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]]; + } - (BatchService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = BatchService; + /** + * InstancePolicyOrTemplate policy. + * @member {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null|undefined} policy + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @instance + */ + InstancePolicyOrTemplate.prototype.policy = null; - /** - * Creates new BatchService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.batch.v1alpha.BatchService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {BatchService} RPC service. Useful where requests and/or responses are streamed. - */ - BatchService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + /** + * InstancePolicyOrTemplate instanceTemplate. + * @member {string|null|undefined} instanceTemplate + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @instance + */ + InstancePolicyOrTemplate.prototype.instanceTemplate = null; - /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|createJob}. - * @memberof google.cloud.batch.v1alpha.BatchService - * @typedef CreateJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1alpha.Job} [response] Job - */ + /** + * InstancePolicyOrTemplate installGpuDrivers. + * @member {boolean} installGpuDrivers + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @instance + */ + InstancePolicyOrTemplate.prototype.installGpuDrivers = false; - /** - * Calls CreateJob. - * @function createJob - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.ICreateJobRequest} request CreateJobRequest message or plain object - * @param {google.cloud.batch.v1alpha.BatchService.CreateJobCallback} callback Node-style callback called with the error, if any, and Job - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(BatchService.prototype.createJob = function createJob(request, callback) { - return this.rpcCall(createJob, $root.google.cloud.batch.v1alpha.CreateJobRequest, $root.google.cloud.batch.v1alpha.Job, request, callback); - }, "name", { value: "CreateJob" }); + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Calls CreateJob. - * @function createJob - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.ICreateJobRequest} request CreateJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * InstancePolicyOrTemplate policyTemplate. + * @member {"policy"|"instanceTemplate"|undefined} policyTemplate + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @instance + */ + Object.defineProperty(InstancePolicyOrTemplate.prototype, "policyTemplate", { + get: $util.oneOfGetter($oneOfFields = ["policy", "instanceTemplate"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|getJob}. - * @memberof google.cloud.batch.v1alpha.BatchService - * @typedef GetJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1alpha.Job} [response] Job - */ + /** + * Creates a new InstancePolicyOrTemplate instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate instance + */ + InstancePolicyOrTemplate.create = function create(properties) { + return new InstancePolicyOrTemplate(properties); + }; - /** - * Calls GetJob. - * @function getJob - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IGetJobRequest} request GetJobRequest message or plain object - * @param {google.cloud.batch.v1alpha.BatchService.GetJobCallback} callback Node-style callback called with the error, if any, and Job - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(BatchService.prototype.getJob = function getJob(request, callback) { - return this.rpcCall(getJob, $root.google.cloud.batch.v1alpha.GetJobRequest, $root.google.cloud.batch.v1alpha.Job, request, callback); - }, "name", { value: "GetJob" }); + /** + * Encodes the specified InstancePolicyOrTemplate message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate} message InstancePolicyOrTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePolicyOrTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) + $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.encode(message.policy, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instanceTemplate != null && Object.hasOwnProperty.call(message, "instanceTemplate")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.instanceTemplate); + if (message.installGpuDrivers != null && Object.hasOwnProperty.call(message, "installGpuDrivers")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.installGpuDrivers); + return writer; + }; - /** - * Calls GetJob. - * @function getJob - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IGetJobRequest} request GetJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified InstancePolicyOrTemplate message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate} message InstancePolicyOrTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePolicyOrTemplate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|deleteJob}. - * @memberof google.cloud.batch.v1alpha.BatchService - * @typedef DeleteJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePolicyOrTemplate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.policy = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instanceTemplate = reader.string(); + break; + } + case 3: { + message.installGpuDrivers = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls DeleteJob. - * @function deleteJob - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IDeleteJobRequest} request DeleteJobRequest message or plain object - * @param {google.cloud.batch.v1alpha.BatchService.DeleteJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(BatchService.prototype.deleteJob = function deleteJob(request, callback) { - return this.rpcCall(deleteJob, $root.google.cloud.batch.v1alpha.DeleteJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteJob" }); + /** + * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePolicyOrTemplate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls DeleteJob. - * @function deleteJob - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IDeleteJobRequest} request DeleteJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies an InstancePolicyOrTemplate message. + * @function verify + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstancePolicyOrTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.policy != null && message.hasOwnProperty("policy")) { + properties.policyTemplate = 1; + { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify(message.policy); + if (error) + return "policy." + error; + } + } + if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) { + if (properties.policyTemplate === 1) + return "policyTemplate: multiple values"; + properties.policyTemplate = 1; + if (!$util.isString(message.instanceTemplate)) + return "instanceTemplate: string expected"; + } + if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) + if (typeof message.installGpuDrivers !== "boolean") + return "installGpuDrivers: boolean expected"; + return null; + }; - /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|listJobs}. - * @memberof google.cloud.batch.v1alpha.BatchService - * @typedef ListJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1alpha.ListJobsResponse} [response] ListJobsResponse - */ + /** + * Creates an InstancePolicyOrTemplate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate + */ + InstancePolicyOrTemplate.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate) + return object; + var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate(); + if (object.policy != null) { + if (typeof object.policy !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.policy: object expected"); + message.policy = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.fromObject(object.policy); + } + if (object.instanceTemplate != null) + message.instanceTemplate = String(object.instanceTemplate); + if (object.installGpuDrivers != null) + message.installGpuDrivers = Boolean(object.installGpuDrivers); + return message; + }; - /** - * Calls ListJobs. - * @function listJobs - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IListJobsRequest} request ListJobsRequest message or plain object - * @param {google.cloud.batch.v1alpha.BatchService.ListJobsCallback} callback Node-style callback called with the error, if any, and ListJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(BatchService.prototype.listJobs = function listJobs(request, callback) { - return this.rpcCall(listJobs, $root.google.cloud.batch.v1alpha.ListJobsRequest, $root.google.cloud.batch.v1alpha.ListJobsResponse, request, callback); - }, "name", { value: "ListJobs" }); + /** + * Creates a plain object from an InstancePolicyOrTemplate message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} message InstancePolicyOrTemplate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstancePolicyOrTemplate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.installGpuDrivers = false; + if (message.policy != null && message.hasOwnProperty("policy")) { + object.policy = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.toObject(message.policy, options); + if (options.oneofs) + object.policyTemplate = "policy"; + } + if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) { + object.instanceTemplate = message.instanceTemplate; + if (options.oneofs) + object.policyTemplate = "instanceTemplate"; + } + if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) + object.installGpuDrivers = message.installGpuDrivers; + return object; + }; - /** - * Calls ListJobs. - * @function listJobs - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IListJobsRequest} request ListJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this InstancePolicyOrTemplate to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @instance + * @returns {Object.} JSON object + */ + InstancePolicyOrTemplate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|getTask}. - * @memberof google.cloud.batch.v1alpha.BatchService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1alpha.Task} [response] Task - */ + /** + * Gets the default type url for InstancePolicyOrTemplate + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstancePolicyOrTemplate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate"; + }; - /** - * Calls GetTask. - * @function getTask - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IGetTaskRequest} request GetTaskRequest message or plain object - * @param {google.cloud.batch.v1alpha.BatchService.GetTaskCallback} callback Node-style callback called with the error, if any, and Task - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(BatchService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.google.cloud.batch.v1alpha.GetTaskRequest, $root.google.cloud.batch.v1alpha.Task, request, callback); - }, "name", { value: "GetTask" }); + return InstancePolicyOrTemplate; + })(); - /** - * Calls GetTask. - * @function getTask - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IGetTaskRequest} request GetTaskRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + AllocationPolicy.NetworkInterface = (function() { - /** - * Callback as used by {@link google.cloud.batch.v1alpha.BatchService|listTasks}. - * @memberof google.cloud.batch.v1alpha.BatchService - * @typedef ListTasksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.batch.v1alpha.ListTasksResponse} [response] ListTasksResponse - */ + /** + * Properties of a NetworkInterface. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @interface INetworkInterface + * @property {string|null} [network] NetworkInterface network + * @property {string|null} [subnetwork] NetworkInterface subnetwork + * @property {boolean|null} [noExternalIpAddress] NetworkInterface noExternalIpAddress + */ - /** - * Calls ListTasks. - * @function listTasks - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IListTasksRequest} request ListTasksRequest message or plain object - * @param {google.cloud.batch.v1alpha.BatchService.ListTasksCallback} callback Node-style callback called with the error, if any, and ListTasksResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(BatchService.prototype.listTasks = function listTasks(request, callback) { - return this.rpcCall(listTasks, $root.google.cloud.batch.v1alpha.ListTasksRequest, $root.google.cloud.batch.v1alpha.ListTasksResponse, request, callback); - }, "name", { value: "ListTasks" }); + /** + * Constructs a new NetworkInterface. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @classdesc Represents a NetworkInterface. + * @implements INetworkInterface + * @constructor + * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface=} [properties] Properties to set + */ + function NetworkInterface(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]]; + } - /** - * Calls ListTasks. - * @function listTasks - * @memberof google.cloud.batch.v1alpha.BatchService - * @instance - * @param {google.cloud.batch.v1alpha.IListTasksRequest} request ListTasksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * NetworkInterface network. + * @member {string} network + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @instance + */ + NetworkInterface.prototype.network = ""; - return BatchService; - })(); + /** + * NetworkInterface subnetwork. + * @member {string} subnetwork + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @instance + */ + NetworkInterface.prototype.subnetwork = ""; - v1alpha.CreateJobRequest = (function() { + /** + * NetworkInterface noExternalIpAddress. + * @member {boolean} noExternalIpAddress + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @instance + */ + NetworkInterface.prototype.noExternalIpAddress = false; - /** - * Properties of a CreateJobRequest. - * @memberof google.cloud.batch.v1alpha - * @interface ICreateJobRequest - * @property {string|null} [parent] CreateJobRequest parent - * @property {string|null} [jobId] CreateJobRequest jobId - * @property {google.cloud.batch.v1alpha.IJob|null} [job] CreateJobRequest job - * @property {string|null} [requestId] CreateJobRequest requestId + /** + * Creates a new NetworkInterface instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} NetworkInterface instance + */ + NetworkInterface.create = function create(properties) { + return new NetworkInterface(properties); + }; + + /** + * Encodes the specified NetworkInterface message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface} message NetworkInterface message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkInterface.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); + if (message.noExternalIpAddress != null && Object.hasOwnProperty.call(message, "noExternalIpAddress")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.noExternalIpAddress); + return writer; + }; + + /** + * Encodes the specified NetworkInterface message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface} message NetworkInterface message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkInterface.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkInterface message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} NetworkInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkInterface.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.network = reader.string(); + break; + } + case 2: { + message.subnetwork = reader.string(); + break; + } + case 3: { + message.noExternalIpAddress = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkInterface message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} NetworkInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkInterface.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkInterface message. + * @function verify + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkInterface.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + if (message.noExternalIpAddress != null && message.hasOwnProperty("noExternalIpAddress")) + if (typeof message.noExternalIpAddress !== "boolean") + return "noExternalIpAddress: boolean expected"; + return null; + }; + + /** + * Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} NetworkInterface + */ + NetworkInterface.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface) + return object; + var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface(); + if (object.network != null) + message.network = String(object.network); + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + if (object.noExternalIpAddress != null) + message.noExternalIpAddress = Boolean(object.noExternalIpAddress); + return message; + }; + + /** + * Creates a plain object from a NetworkInterface message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} message NetworkInterface + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkInterface.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.network = ""; + object.subnetwork = ""; + object.noExternalIpAddress = false; + } + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + object.subnetwork = message.subnetwork; + if (message.noExternalIpAddress != null && message.hasOwnProperty("noExternalIpAddress")) + object.noExternalIpAddress = message.noExternalIpAddress; + return object; + }; + + /** + * Converts this NetworkInterface to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @instance + * @returns {Object.} JSON object + */ + NetworkInterface.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkInterface + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkInterface.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface"; + }; + + return NetworkInterface; + })(); + + AllocationPolicy.NetworkPolicy = (function() { + + /** + * Properties of a NetworkPolicy. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @interface INetworkPolicy + * @property {Array.|null} [networkInterfaces] NetworkPolicy networkInterfaces + */ + + /** + * Constructs a new NetworkPolicy. + * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @classdesc Represents a NetworkPolicy. + * @implements INetworkPolicy + * @constructor + * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy=} [properties] Properties to set + */ + function NetworkPolicy(properties) { + this.networkInterfaces = []; + 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]]; + } + + /** + * NetworkPolicy networkInterfaces. + * @member {Array.} networkInterfaces + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.networkInterfaces = $util.emptyArray; + + /** + * Creates a new NetworkPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} NetworkPolicy instance + */ + NetworkPolicy.create = function create(properties) { + return new NetworkPolicy(properties); + }; + + /** + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.networkInterfaces != null && message.networkInterfaces.length) + for (var i = 0; i < message.networkInterfaces.length; ++i) + $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.encode(message.networkInterfaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} NetworkPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.networkInterfaces && message.networkInterfaces.length)) + message.networkInterfaces = []; + message.networkInterfaces.push($root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} NetworkPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkPolicy message. + * @function verify + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkInterfaces != null && message.hasOwnProperty("networkInterfaces")) { + if (!Array.isArray(message.networkInterfaces)) + return "networkInterfaces: array expected"; + for (var i = 0; i < message.networkInterfaces.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify(message.networkInterfaces[i]); + if (error) + return "networkInterfaces." + error; + } + } + return null; + }; + + /** + * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} NetworkPolicy + */ + NetworkPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy) + return object; + var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy(); + if (object.networkInterfaces) { + if (!Array.isArray(object.networkInterfaces)) + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.networkInterfaces: array expected"); + message.networkInterfaces = []; + for (var i = 0; i < object.networkInterfaces.length; ++i) { + if (typeof object.networkInterfaces[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.networkInterfaces: object expected"); + message.networkInterfaces[i] = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.fromObject(object.networkInterfaces[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @static + * @param {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} message NetworkPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.networkInterfaces = []; + if (message.networkInterfaces && message.networkInterfaces.length) { + object.networkInterfaces = []; + for (var j = 0; j < message.networkInterfaces.length; ++j) + object.networkInterfaces[j] = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.toObject(message.networkInterfaces[j], options); + } + return object; + }; + + /** + * Converts this NetworkPolicy to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @instance + * @returns {Object.} JSON object + */ + NetworkPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkPolicy + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy"; + }; + + return NetworkPolicy; + })(); + + /** + * ProvisioningModel enum. + * @name google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel + * @enum {number} + * @property {number} PROVISIONING_MODEL_UNSPECIFIED=0 PROVISIONING_MODEL_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} SPOT=2 SPOT value + * @property {number} PREEMPTIBLE=3 PREEMPTIBLE value + */ + AllocationPolicy.ProvisioningModel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROVISIONING_MODEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "SPOT"] = 2; + values[valuesById[3] = "PREEMPTIBLE"] = 3; + return values; + })(); + + return AllocationPolicy; + })(); + + v1alpha.TaskGroup = (function() { + + /** + * Properties of a TaskGroup. + * @memberof google.cloud.batch.v1alpha + * @interface ITaskGroup + * @property {string|null} [name] TaskGroup name + * @property {google.cloud.batch.v1alpha.ITaskSpec|null} [taskSpec] TaskGroup taskSpec + * @property {number|Long|null} [taskCount] TaskGroup taskCount + * @property {number|Long|null} [parallelism] TaskGroup parallelism + * @property {google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy|null} [schedulingPolicy] TaskGroup schedulingPolicy + * @property {google.cloud.batch.v1alpha.IAllocationPolicy|null} [allocationPolicy] TaskGroup allocationPolicy + * @property {Object.|null} [labels] TaskGroup labels + * @property {Array.|null} [taskEnvironments] TaskGroup taskEnvironments + * @property {number|Long|null} [taskCountPerNode] TaskGroup taskCountPerNode + * @property {boolean|null} [requireHostsFile] TaskGroup requireHostsFile + * @property {boolean|null} [permissiveSsh] TaskGroup permissiveSsh */ /** - * Constructs a new CreateJobRequest. + * Constructs a new TaskGroup. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a CreateJobRequest. - * @implements ICreateJobRequest + * @classdesc Represents a TaskGroup. + * @implements ITaskGroup * @constructor - * @param {google.cloud.batch.v1alpha.ICreateJobRequest=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.ITaskGroup=} [properties] Properties to set */ - function CreateJobRequest(properties) { + function TaskGroup(properties) { + this.labels = {}; + this.taskEnvironments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23864,117 +21841,238 @@ } /** - * CreateJobRequest parent. - * @member {string} parent - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * TaskGroup name. + * @member {string} name + * @memberof google.cloud.batch.v1alpha.TaskGroup * @instance */ - CreateJobRequest.prototype.parent = ""; + TaskGroup.prototype.name = ""; /** - * CreateJobRequest jobId. - * @member {string} jobId - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * TaskGroup taskSpec. + * @member {google.cloud.batch.v1alpha.ITaskSpec|null|undefined} taskSpec + * @memberof google.cloud.batch.v1alpha.TaskGroup * @instance */ - CreateJobRequest.prototype.jobId = ""; + TaskGroup.prototype.taskSpec = null; /** - * CreateJobRequest job. - * @member {google.cloud.batch.v1alpha.IJob|null|undefined} job - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * TaskGroup taskCount. + * @member {number|Long} taskCount + * @memberof google.cloud.batch.v1alpha.TaskGroup * @instance */ - CreateJobRequest.prototype.job = null; + TaskGroup.prototype.taskCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * CreateJobRequest requestId. - * @member {string} requestId - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * TaskGroup parallelism. + * @member {number|Long} parallelism + * @memberof google.cloud.batch.v1alpha.TaskGroup * @instance */ - CreateJobRequest.prototype.requestId = ""; + TaskGroup.prototype.parallelism = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new CreateJobRequest instance using the specified properties. + * TaskGroup schedulingPolicy. + * @member {google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy} schedulingPolicy + * @memberof google.cloud.batch.v1alpha.TaskGroup + * @instance + */ + TaskGroup.prototype.schedulingPolicy = 0; + + /** + * TaskGroup allocationPolicy. + * @member {google.cloud.batch.v1alpha.IAllocationPolicy|null|undefined} allocationPolicy + * @memberof google.cloud.batch.v1alpha.TaskGroup + * @instance + */ + TaskGroup.prototype.allocationPolicy = null; + + /** + * TaskGroup labels. + * @member {Object.} labels + * @memberof google.cloud.batch.v1alpha.TaskGroup + * @instance + */ + TaskGroup.prototype.labels = $util.emptyObject; + + /** + * TaskGroup taskEnvironments. + * @member {Array.} taskEnvironments + * @memberof google.cloud.batch.v1alpha.TaskGroup + * @instance + */ + TaskGroup.prototype.taskEnvironments = $util.emptyArray; + + /** + * TaskGroup taskCountPerNode. + * @member {number|Long} taskCountPerNode + * @memberof google.cloud.batch.v1alpha.TaskGroup + * @instance + */ + TaskGroup.prototype.taskCountPerNode = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * TaskGroup requireHostsFile. + * @member {boolean} requireHostsFile + * @memberof google.cloud.batch.v1alpha.TaskGroup + * @instance + */ + TaskGroup.prototype.requireHostsFile = false; + + /** + * TaskGroup permissiveSsh. + * @member {boolean} permissiveSsh + * @memberof google.cloud.batch.v1alpha.TaskGroup + * @instance + */ + TaskGroup.prototype.permissiveSsh = false; + + /** + * Creates a new TaskGroup instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @static - * @param {google.cloud.batch.v1alpha.ICreateJobRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.CreateJobRequest} CreateJobRequest instance + * @param {google.cloud.batch.v1alpha.ITaskGroup=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.TaskGroup} TaskGroup instance */ - CreateJobRequest.create = function create(properties) { - return new CreateJobRequest(properties); + TaskGroup.create = function create(properties) { + return new TaskGroup(properties); }; /** - * Encodes the specified CreateJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.CreateJobRequest.verify|verify} messages. + * Encodes the specified TaskGroup message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskGroup.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @static - * @param {google.cloud.batch.v1alpha.ICreateJobRequest} message CreateJobRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.ITaskGroup} message TaskGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateJobRequest.encode = function encode(message, writer) { + TaskGroup.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); - if (message.job != null && Object.hasOwnProperty.call(message, "job")) - $root.google.cloud.batch.v1alpha.Job.encode(message.job, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.taskSpec != null && Object.hasOwnProperty.call(message, "taskSpec")) + $root.google.cloud.batch.v1alpha.TaskSpec.encode(message.taskSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.taskCount != null && Object.hasOwnProperty.call(message, "taskCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.taskCount); + if (message.parallelism != null && Object.hasOwnProperty.call(message, "parallelism")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.parallelism); + if (message.schedulingPolicy != null && Object.hasOwnProperty.call(message, "schedulingPolicy")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.schedulingPolicy); + if (message.allocationPolicy != null && Object.hasOwnProperty.call(message, "allocationPolicy")) + $root.google.cloud.batch.v1alpha.AllocationPolicy.encode(message.allocationPolicy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.taskEnvironments != null && message.taskEnvironments.length) + for (var i = 0; i < message.taskEnvironments.length; ++i) + $root.google.cloud.batch.v1alpha.Environment.encode(message.taskEnvironments[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.taskCountPerNode != null && Object.hasOwnProperty.call(message, "taskCountPerNode")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.taskCountPerNode); + if (message.requireHostsFile != null && Object.hasOwnProperty.call(message, "requireHostsFile")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.requireHostsFile); + if (message.permissiveSsh != null && Object.hasOwnProperty.call(message, "permissiveSsh")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.permissiveSsh); return writer; }; /** - * Encodes the specified CreateJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.CreateJobRequest.verify|verify} messages. + * Encodes the specified TaskGroup message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskGroup.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @static - * @param {google.cloud.batch.v1alpha.ICreateJobRequest} message CreateJobRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.ITaskGroup} message TaskGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + TaskGroup.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateJobRequest message from the specified reader or buffer. + * Decodes a TaskGroup message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.CreateJobRequest} CreateJobRequest + * @returns {google.cloud.batch.v1alpha.TaskGroup} TaskGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateJobRequest.decode = function decode(reader, length) { + TaskGroup.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.CreateJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.TaskGroup(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.jobId = reader.string(); + message.name = reader.string(); break; } case 3: { - message.job = $root.google.cloud.batch.v1alpha.Job.decode(reader, reader.uint32()); + message.taskSpec = $root.google.cloud.batch.v1alpha.TaskSpec.decode(reader, reader.uint32()); break; } case 4: { - message.requestId = reader.string(); + message.taskCount = reader.int64(); + break; + } + case 5: { + message.parallelism = reader.int64(); + break; + } + case 6: { + message.schedulingPolicy = reader.int32(); + break; + } + case 7: { + message.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.decode(reader, reader.uint32()); + break; + } + case 8: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 9: { + if (!(message.taskEnvironments && message.taskEnvironments.length)) + message.taskEnvironments = []; + message.taskEnvironments.push($root.google.cloud.batch.v1alpha.Environment.decode(reader, reader.uint32())); + break; + } + case 10: { + message.taskCountPerNode = reader.int64(); + break; + } + case 11: { + message.requireHostsFile = reader.bool(); + break; + } + case 12: { + message.permissiveSsh = reader.bool(); break; } default: @@ -23986,152 +22084,323 @@ }; /** - * Decodes a CreateJobRequest message from the specified reader or buffer, length delimited. + * Decodes a TaskGroup message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.CreateJobRequest} CreateJobRequest + * @returns {google.cloud.batch.v1alpha.TaskGroup} TaskGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateJobRequest.decodeDelimited = function decodeDelimited(reader) { + TaskGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateJobRequest message. + * Verifies a TaskGroup message. * @function verify - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateJobRequest.verify = function verify(message) { + TaskGroup.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.jobId != null && message.hasOwnProperty("jobId")) - if (!$util.isString(message.jobId)) - return "jobId: string expected"; - if (message.job != null && message.hasOwnProperty("job")) { - var error = $root.google.cloud.batch.v1alpha.Job.verify(message.job); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.taskSpec != null && message.hasOwnProperty("taskSpec")) { + var error = $root.google.cloud.batch.v1alpha.TaskSpec.verify(message.taskSpec); if (error) - return "job." + error; + return "taskSpec." + error; } - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.taskCount != null && message.hasOwnProperty("taskCount")) + if (!$util.isInteger(message.taskCount) && !(message.taskCount && $util.isInteger(message.taskCount.low) && $util.isInteger(message.taskCount.high))) + return "taskCount: integer|Long expected"; + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + if (!$util.isInteger(message.parallelism) && !(message.parallelism && $util.isInteger(message.parallelism.low) && $util.isInteger(message.parallelism.high))) + return "parallelism: integer|Long expected"; + if (message.schedulingPolicy != null && message.hasOwnProperty("schedulingPolicy")) + switch (message.schedulingPolicy) { + default: + return "schedulingPolicy: enum value expected"; + case 0: + case 1: + break; + } + if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) { + var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.verify(message.allocationPolicy); + if (error) + return "allocationPolicy." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.taskEnvironments != null && message.hasOwnProperty("taskEnvironments")) { + if (!Array.isArray(message.taskEnvironments)) + return "taskEnvironments: array expected"; + for (var i = 0; i < message.taskEnvironments.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.Environment.verify(message.taskEnvironments[i]); + if (error) + return "taskEnvironments." + error; + } + } + if (message.taskCountPerNode != null && message.hasOwnProperty("taskCountPerNode")) + if (!$util.isInteger(message.taskCountPerNode) && !(message.taskCountPerNode && $util.isInteger(message.taskCountPerNode.low) && $util.isInteger(message.taskCountPerNode.high))) + return "taskCountPerNode: integer|Long expected"; + if (message.requireHostsFile != null && message.hasOwnProperty("requireHostsFile")) + if (typeof message.requireHostsFile !== "boolean") + return "requireHostsFile: boolean expected"; + if (message.permissiveSsh != null && message.hasOwnProperty("permissiveSsh")) + if (typeof message.permissiveSsh !== "boolean") + return "permissiveSsh: boolean expected"; return null; }; /** - * Creates a CreateJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TaskGroup message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.CreateJobRequest} CreateJobRequest + * @returns {google.cloud.batch.v1alpha.TaskGroup} TaskGroup */ - CreateJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.CreateJobRequest) + TaskGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.TaskGroup) return object; - var message = new $root.google.cloud.batch.v1alpha.CreateJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.jobId != null) - message.jobId = String(object.jobId); - if (object.job != null) { - if (typeof object.job !== "object") - throw TypeError(".google.cloud.batch.v1alpha.CreateJobRequest.job: object expected"); - message.job = $root.google.cloud.batch.v1alpha.Job.fromObject(object.job); + var message = new $root.google.cloud.batch.v1alpha.TaskGroup(); + if (object.name != null) + message.name = String(object.name); + if (object.taskSpec != null) { + if (typeof object.taskSpec !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.taskSpec: object expected"); + message.taskSpec = $root.google.cloud.batch.v1alpha.TaskSpec.fromObject(object.taskSpec); } - if (object.requestId != null) - message.requestId = String(object.requestId); + if (object.taskCount != null) + if ($util.Long) + (message.taskCount = $util.Long.fromValue(object.taskCount)).unsigned = false; + else if (typeof object.taskCount === "string") + message.taskCount = parseInt(object.taskCount, 10); + else if (typeof object.taskCount === "number") + message.taskCount = object.taskCount; + else if (typeof object.taskCount === "object") + message.taskCount = new $util.LongBits(object.taskCount.low >>> 0, object.taskCount.high >>> 0).toNumber(); + if (object.parallelism != null) + if ($util.Long) + (message.parallelism = $util.Long.fromValue(object.parallelism)).unsigned = false; + else if (typeof object.parallelism === "string") + message.parallelism = parseInt(object.parallelism, 10); + else if (typeof object.parallelism === "number") + message.parallelism = object.parallelism; + else if (typeof object.parallelism === "object") + message.parallelism = new $util.LongBits(object.parallelism.low >>> 0, object.parallelism.high >>> 0).toNumber(); + switch (object.schedulingPolicy) { + default: + if (typeof object.schedulingPolicy === "number") { + message.schedulingPolicy = object.schedulingPolicy; + break; + } + break; + case "SCHEDULING_POLICY_UNSPECIFIED": + case 0: + message.schedulingPolicy = 0; + break; + case "AS_SOON_AS_POSSIBLE": + case 1: + message.schedulingPolicy = 1; + break; + } + if (object.allocationPolicy != null) { + if (typeof object.allocationPolicy !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.allocationPolicy: object expected"); + message.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.fromObject(object.allocationPolicy); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.taskEnvironments) { + if (!Array.isArray(object.taskEnvironments)) + throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.taskEnvironments: array expected"); + message.taskEnvironments = []; + for (var i = 0; i < object.taskEnvironments.length; ++i) { + if (typeof object.taskEnvironments[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.taskEnvironments: object expected"); + message.taskEnvironments[i] = $root.google.cloud.batch.v1alpha.Environment.fromObject(object.taskEnvironments[i]); + } + } + if (object.taskCountPerNode != null) + if ($util.Long) + (message.taskCountPerNode = $util.Long.fromValue(object.taskCountPerNode)).unsigned = false; + else if (typeof object.taskCountPerNode === "string") + message.taskCountPerNode = parseInt(object.taskCountPerNode, 10); + else if (typeof object.taskCountPerNode === "number") + message.taskCountPerNode = object.taskCountPerNode; + else if (typeof object.taskCountPerNode === "object") + message.taskCountPerNode = new $util.LongBits(object.taskCountPerNode.low >>> 0, object.taskCountPerNode.high >>> 0).toNumber(); + if (object.requireHostsFile != null) + message.requireHostsFile = Boolean(object.requireHostsFile); + if (object.permissiveSsh != null) + message.permissiveSsh = Boolean(object.permissiveSsh); return message; }; /** - * Creates a plain object from a CreateJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a TaskGroup message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @static - * @param {google.cloud.batch.v1alpha.CreateJobRequest} message CreateJobRequest + * @param {google.cloud.batch.v1alpha.TaskGroup} message TaskGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateJobRequest.toObject = function toObject(message, options) { + TaskGroup.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.taskEnvironments = []; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.parent = ""; - object.jobId = ""; - object.job = null; - object.requestId = ""; + object.name = ""; + object.taskSpec = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.parallelism = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.parallelism = options.longs === String ? "0" : 0; + object.schedulingPolicy = options.enums === String ? "SCHEDULING_POLICY_UNSPECIFIED" : 0; + object.allocationPolicy = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskCountPerNode = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskCountPerNode = options.longs === String ? "0" : 0; + object.requireHostsFile = false; + object.permissiveSsh = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.jobId != null && message.hasOwnProperty("jobId")) - object.jobId = message.jobId; - if (message.job != null && message.hasOwnProperty("job")) - object.job = $root.google.cloud.batch.v1alpha.Job.toObject(message.job, options); - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.taskSpec != null && message.hasOwnProperty("taskSpec")) + object.taskSpec = $root.google.cloud.batch.v1alpha.TaskSpec.toObject(message.taskSpec, options); + if (message.taskCount != null && message.hasOwnProperty("taskCount")) + if (typeof message.taskCount === "number") + object.taskCount = options.longs === String ? String(message.taskCount) : message.taskCount; + else + object.taskCount = options.longs === String ? $util.Long.prototype.toString.call(message.taskCount) : options.longs === Number ? new $util.LongBits(message.taskCount.low >>> 0, message.taskCount.high >>> 0).toNumber() : message.taskCount; + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + if (typeof message.parallelism === "number") + object.parallelism = options.longs === String ? String(message.parallelism) : message.parallelism; + else + object.parallelism = options.longs === String ? $util.Long.prototype.toString.call(message.parallelism) : options.longs === Number ? new $util.LongBits(message.parallelism.low >>> 0, message.parallelism.high >>> 0).toNumber() : message.parallelism; + if (message.schedulingPolicy != null && message.hasOwnProperty("schedulingPolicy")) + object.schedulingPolicy = options.enums === String ? $root.google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy[message.schedulingPolicy] === undefined ? message.schedulingPolicy : $root.google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy[message.schedulingPolicy] : message.schedulingPolicy; + if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) + object.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.toObject(message.allocationPolicy, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.taskEnvironments && message.taskEnvironments.length) { + object.taskEnvironments = []; + for (var j = 0; j < message.taskEnvironments.length; ++j) + object.taskEnvironments[j] = $root.google.cloud.batch.v1alpha.Environment.toObject(message.taskEnvironments[j], options); + } + if (message.taskCountPerNode != null && message.hasOwnProperty("taskCountPerNode")) + if (typeof message.taskCountPerNode === "number") + object.taskCountPerNode = options.longs === String ? String(message.taskCountPerNode) : message.taskCountPerNode; + else + object.taskCountPerNode = options.longs === String ? $util.Long.prototype.toString.call(message.taskCountPerNode) : options.longs === Number ? new $util.LongBits(message.taskCountPerNode.low >>> 0, message.taskCountPerNode.high >>> 0).toNumber() : message.taskCountPerNode; + if (message.requireHostsFile != null && message.hasOwnProperty("requireHostsFile")) + object.requireHostsFile = message.requireHostsFile; + if (message.permissiveSsh != null && message.hasOwnProperty("permissiveSsh")) + object.permissiveSsh = message.permissiveSsh; return object; }; /** - * Converts this CreateJobRequest to JSON. + * Converts this TaskGroup to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @instance * @returns {Object.} JSON object */ - CreateJobRequest.prototype.toJSON = function toJSON() { + TaskGroup.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateJobRequest + * Gets the default type url for TaskGroup * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.CreateJobRequest + * @memberof google.cloud.batch.v1alpha.TaskGroup * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TaskGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.CreateJobRequest"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.TaskGroup"; }; - return CreateJobRequest; + /** + * SchedulingPolicy enum. + * @name google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy + * @enum {number} + * @property {number} SCHEDULING_POLICY_UNSPECIFIED=0 SCHEDULING_POLICY_UNSPECIFIED value + * @property {number} AS_SOON_AS_POSSIBLE=1 AS_SOON_AS_POSSIBLE value + */ + TaskGroup.SchedulingPolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SCHEDULING_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AS_SOON_AS_POSSIBLE"] = 1; + return values; + })(); + + return TaskGroup; })(); - v1alpha.GetJobRequest = (function() { + v1alpha.ServiceAccount = (function() { /** - * Properties of a GetJobRequest. + * Properties of a ServiceAccount. * @memberof google.cloud.batch.v1alpha - * @interface IGetJobRequest - * @property {string|null} [name] GetJobRequest name + * @interface IServiceAccount + * @property {string|null} [email] ServiceAccount email + * @property {Array.|null} [scopes] ServiceAccount scopes */ /** - * Constructs a new GetJobRequest. + * Constructs a new ServiceAccount. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a GetJobRequest. - * @implements IGetJobRequest + * @classdesc Represents a ServiceAccount. + * @implements IServiceAccount * @constructor - * @param {google.cloud.batch.v1alpha.IGetJobRequest=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IServiceAccount=} [properties] Properties to set */ - function GetJobRequest(properties) { + function ServiceAccount(properties) { + this.scopes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24139,75 +22408,92 @@ } /** - * GetJobRequest name. - * @member {string} name - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * ServiceAccount email. + * @member {string} email + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @instance */ - GetJobRequest.prototype.name = ""; + ServiceAccount.prototype.email = ""; /** - * Creates a new GetJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.GetJobRequest - * @static - * @param {google.cloud.batch.v1alpha.IGetJobRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.GetJobRequest} GetJobRequest instance - */ - GetJobRequest.create = function create(properties) { - return new GetJobRequest(properties); + * ServiceAccount scopes. + * @member {Array.} scopes + * @memberof google.cloud.batch.v1alpha.ServiceAccount + * @instance + */ + ServiceAccount.prototype.scopes = $util.emptyArray; + + /** + * Creates a new ServiceAccount instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.ServiceAccount + * @static + * @param {google.cloud.batch.v1alpha.IServiceAccount=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.ServiceAccount} ServiceAccount instance + */ + ServiceAccount.create = function create(properties) { + return new ServiceAccount(properties); }; /** - * Encodes the specified GetJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.GetJobRequest.verify|verify} messages. + * Encodes the specified ServiceAccount message. Does not implicitly {@link google.cloud.batch.v1alpha.ServiceAccount.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @static - * @param {google.cloud.batch.v1alpha.IGetJobRequest} message GetJobRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.IServiceAccount} message ServiceAccount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetJobRequest.encode = function encode(message, writer) { + ServiceAccount.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.email != null && Object.hasOwnProperty.call(message, "email")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); + if (message.scopes != null && message.scopes.length) + for (var i = 0; i < message.scopes.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.scopes[i]); return writer; }; /** - * Encodes the specified GetJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GetJobRequest.verify|verify} messages. + * Encodes the specified ServiceAccount message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ServiceAccount.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @static - * @param {google.cloud.batch.v1alpha.IGetJobRequest} message GetJobRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.IServiceAccount} message ServiceAccount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ServiceAccount.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetJobRequest message from the specified reader or buffer. + * Decodes a ServiceAccount message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.GetJobRequest} GetJobRequest + * @returns {google.cloud.batch.v1alpha.ServiceAccount} ServiceAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetJobRequest.decode = function decode(reader, length) { + ServiceAccount.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.GetJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ServiceAccount(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.email = reader.string(); + break; + } + case 2: { + if (!(message.scopes && message.scopes.length)) + message.scopes = []; + message.scopes.push(reader.string()); break; } default: @@ -24219,124 +22505,146 @@ }; /** - * Decodes a GetJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ServiceAccount message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.GetJobRequest} GetJobRequest + * @returns {google.cloud.batch.v1alpha.ServiceAccount} ServiceAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetJobRequest.decodeDelimited = function decodeDelimited(reader) { + ServiceAccount.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetJobRequest message. + * Verifies a ServiceAccount message. * @function verify - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetJobRequest.verify = function verify(message) { + ServiceAccount.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.email != null && message.hasOwnProperty("email")) + if (!$util.isString(message.email)) + return "email: string expected"; + if (message.scopes != null && message.hasOwnProperty("scopes")) { + if (!Array.isArray(message.scopes)) + return "scopes: array expected"; + for (var i = 0; i < message.scopes.length; ++i) + if (!$util.isString(message.scopes[i])) + return "scopes: string[] expected"; + } return null; }; /** - * Creates a GetJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceAccount message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.GetJobRequest} GetJobRequest + * @returns {google.cloud.batch.v1alpha.ServiceAccount} ServiceAccount */ - GetJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.GetJobRequest) + ServiceAccount.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.ServiceAccount) return object; - var message = new $root.google.cloud.batch.v1alpha.GetJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.batch.v1alpha.ServiceAccount(); + if (object.email != null) + message.email = String(object.email); + if (object.scopes) { + if (!Array.isArray(object.scopes)) + throw TypeError(".google.cloud.batch.v1alpha.ServiceAccount.scopes: array expected"); + message.scopes = []; + for (var i = 0; i < object.scopes.length; ++i) + message.scopes[i] = String(object.scopes[i]); + } return message; }; /** - * Creates a plain object from a GetJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ServiceAccount message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @static - * @param {google.cloud.batch.v1alpha.GetJobRequest} message GetJobRequest + * @param {google.cloud.batch.v1alpha.ServiceAccount} message ServiceAccount * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetJobRequest.toObject = function toObject(message, options) { + ServiceAccount.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.scopes = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.email = ""; + if (message.email != null && message.hasOwnProperty("email")) + object.email = message.email; + if (message.scopes && message.scopes.length) { + object.scopes = []; + for (var j = 0; j < message.scopes.length; ++j) + object.scopes[j] = message.scopes[j]; + } return object; }; /** - * Converts this GetJobRequest to JSON. + * Converts this ServiceAccount to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @instance * @returns {Object.} JSON object */ - GetJobRequest.prototype.toJSON = function toJSON() { + ServiceAccount.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetJobRequest + * Gets the default type url for ServiceAccount * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.GetJobRequest + * @memberof google.cloud.batch.v1alpha.ServiceAccount * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceAccount.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.GetJobRequest"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.ServiceAccount"; }; - return GetJobRequest; + return ServiceAccount; })(); - v1alpha.DeleteJobRequest = (function() { + v1alpha.ComputeResource = (function() { /** - * Properties of a DeleteJobRequest. + * Properties of a ComputeResource. * @memberof google.cloud.batch.v1alpha - * @interface IDeleteJobRequest - * @property {string|null} [name] DeleteJobRequest name - * @property {string|null} [reason] DeleteJobRequest reason - * @property {string|null} [requestId] DeleteJobRequest requestId + * @interface IComputeResource + * @property {number|Long|null} [cpuMilli] ComputeResource cpuMilli + * @property {number|Long|null} [memoryMib] ComputeResource memoryMib + * @property {number|Long|null} [gpuCount] ComputeResource gpuCount + * @property {number|Long|null} [bootDiskMib] ComputeResource bootDiskMib */ /** - * Constructs a new DeleteJobRequest. + * Constructs a new ComputeResource. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a DeleteJobRequest. - * @implements IDeleteJobRequest + * @classdesc Represents a ComputeResource. + * @implements IComputeResource * @constructor - * @param {google.cloud.batch.v1alpha.IDeleteJobRequest=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IComputeResource=} [properties] Properties to set */ - function DeleteJobRequest(properties) { + function ComputeResource(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24344,103 +22652,117 @@ } /** - * DeleteJobRequest name. - * @member {string} name - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * ComputeResource cpuMilli. + * @member {number|Long} cpuMilli + * @memberof google.cloud.batch.v1alpha.ComputeResource * @instance */ - DeleteJobRequest.prototype.name = ""; + ComputeResource.prototype.cpuMilli = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * DeleteJobRequest reason. - * @member {string} reason - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * ComputeResource memoryMib. + * @member {number|Long} memoryMib + * @memberof google.cloud.batch.v1alpha.ComputeResource * @instance */ - DeleteJobRequest.prototype.reason = ""; + ComputeResource.prototype.memoryMib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * DeleteJobRequest requestId. - * @member {string} requestId - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * ComputeResource gpuCount. + * @member {number|Long} gpuCount + * @memberof google.cloud.batch.v1alpha.ComputeResource * @instance */ - DeleteJobRequest.prototype.requestId = ""; + ComputeResource.prototype.gpuCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new DeleteJobRequest instance using the specified properties. + * ComputeResource bootDiskMib. + * @member {number|Long} bootDiskMib + * @memberof google.cloud.batch.v1alpha.ComputeResource + * @instance + */ + ComputeResource.prototype.bootDiskMib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ComputeResource instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @static - * @param {google.cloud.batch.v1alpha.IDeleteJobRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.DeleteJobRequest} DeleteJobRequest instance + * @param {google.cloud.batch.v1alpha.IComputeResource=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.ComputeResource} ComputeResource instance */ - DeleteJobRequest.create = function create(properties) { - return new DeleteJobRequest(properties); + ComputeResource.create = function create(properties) { + return new ComputeResource(properties); }; /** - * Encodes the specified DeleteJobRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.DeleteJobRequest.verify|verify} messages. + * Encodes the specified ComputeResource message. Does not implicitly {@link google.cloud.batch.v1alpha.ComputeResource.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @static - * @param {google.cloud.batch.v1alpha.IDeleteJobRequest} message DeleteJobRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.IComputeResource} message ComputeResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteJobRequest.encode = function encode(message, writer) { + ComputeResource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.reason); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId); + if (message.cpuMilli != null && Object.hasOwnProperty.call(message, "cpuMilli")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.cpuMilli); + if (message.memoryMib != null && Object.hasOwnProperty.call(message, "memoryMib")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.memoryMib); + if (message.gpuCount != null && Object.hasOwnProperty.call(message, "gpuCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.gpuCount); + if (message.bootDiskMib != null && Object.hasOwnProperty.call(message, "bootDiskMib")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.bootDiskMib); return writer; }; /** - * Encodes the specified DeleteJobRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.DeleteJobRequest.verify|verify} messages. + * Encodes the specified ComputeResource message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ComputeResource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @static - * @param {google.cloud.batch.v1alpha.IDeleteJobRequest} message DeleteJobRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.IComputeResource} message ComputeResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ComputeResource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteJobRequest message from the specified reader or buffer. + * Decodes a ComputeResource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.DeleteJobRequest} DeleteJobRequest + * @returns {google.cloud.batch.v1alpha.ComputeResource} ComputeResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteJobRequest.decode = function decode(reader, length) { + ComputeResource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.DeleteJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ComputeResource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.cpuMilli = reader.int64(); break; } case 2: { - message.reason = reader.string(); + message.memoryMib = reader.int64(); + break; + } + case 3: { + message.gpuCount = reader.int64(); break; } case 4: { - message.requestId = reader.string(); + message.bootDiskMib = reader.int64(); break; } default: @@ -24452,142 +22774,206 @@ }; /** - * Decodes a DeleteJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ComputeResource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.DeleteJobRequest} DeleteJobRequest + * @returns {google.cloud.batch.v1alpha.ComputeResource} ComputeResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteJobRequest.decodeDelimited = function decodeDelimited(reader) { + ComputeResource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteJobRequest message. + * Verifies a ComputeResource message. * @function verify - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteJobRequest.verify = function verify(message) { + ComputeResource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.cpuMilli != null && message.hasOwnProperty("cpuMilli")) + if (!$util.isInteger(message.cpuMilli) && !(message.cpuMilli && $util.isInteger(message.cpuMilli.low) && $util.isInteger(message.cpuMilli.high))) + return "cpuMilli: integer|Long expected"; + if (message.memoryMib != null && message.hasOwnProperty("memoryMib")) + if (!$util.isInteger(message.memoryMib) && !(message.memoryMib && $util.isInteger(message.memoryMib.low) && $util.isInteger(message.memoryMib.high))) + return "memoryMib: integer|Long expected"; + if (message.gpuCount != null && message.hasOwnProperty("gpuCount")) + if (!$util.isInteger(message.gpuCount) && !(message.gpuCount && $util.isInteger(message.gpuCount.low) && $util.isInteger(message.gpuCount.high))) + return "gpuCount: integer|Long expected"; + if (message.bootDiskMib != null && message.hasOwnProperty("bootDiskMib")) + if (!$util.isInteger(message.bootDiskMib) && !(message.bootDiskMib && $util.isInteger(message.bootDiskMib.low) && $util.isInteger(message.bootDiskMib.high))) + return "bootDiskMib: integer|Long expected"; return null; }; /** - * Creates a DeleteJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeResource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.DeleteJobRequest} DeleteJobRequest + * @returns {google.cloud.batch.v1alpha.ComputeResource} ComputeResource */ - DeleteJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.DeleteJobRequest) + ComputeResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.ComputeResource) return object; - var message = new $root.google.cloud.batch.v1alpha.DeleteJobRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.reason != null) - message.reason = String(object.reason); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.google.cloud.batch.v1alpha.ComputeResource(); + if (object.cpuMilli != null) + if ($util.Long) + (message.cpuMilli = $util.Long.fromValue(object.cpuMilli)).unsigned = false; + else if (typeof object.cpuMilli === "string") + message.cpuMilli = parseInt(object.cpuMilli, 10); + else if (typeof object.cpuMilli === "number") + message.cpuMilli = object.cpuMilli; + else if (typeof object.cpuMilli === "object") + message.cpuMilli = new $util.LongBits(object.cpuMilli.low >>> 0, object.cpuMilli.high >>> 0).toNumber(); + if (object.memoryMib != null) + if ($util.Long) + (message.memoryMib = $util.Long.fromValue(object.memoryMib)).unsigned = false; + else if (typeof object.memoryMib === "string") + message.memoryMib = parseInt(object.memoryMib, 10); + else if (typeof object.memoryMib === "number") + message.memoryMib = object.memoryMib; + else if (typeof object.memoryMib === "object") + message.memoryMib = new $util.LongBits(object.memoryMib.low >>> 0, object.memoryMib.high >>> 0).toNumber(); + if (object.gpuCount != null) + if ($util.Long) + (message.gpuCount = $util.Long.fromValue(object.gpuCount)).unsigned = false; + else if (typeof object.gpuCount === "string") + message.gpuCount = parseInt(object.gpuCount, 10); + else if (typeof object.gpuCount === "number") + message.gpuCount = object.gpuCount; + else if (typeof object.gpuCount === "object") + message.gpuCount = new $util.LongBits(object.gpuCount.low >>> 0, object.gpuCount.high >>> 0).toNumber(); + if (object.bootDiskMib != null) + if ($util.Long) + (message.bootDiskMib = $util.Long.fromValue(object.bootDiskMib)).unsigned = false; + else if (typeof object.bootDiskMib === "string") + message.bootDiskMib = parseInt(object.bootDiskMib, 10); + else if (typeof object.bootDiskMib === "number") + message.bootDiskMib = object.bootDiskMib; + else if (typeof object.bootDiskMib === "object") + message.bootDiskMib = new $util.LongBits(object.bootDiskMib.low >>> 0, object.bootDiskMib.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a DeleteJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ComputeResource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @static - * @param {google.cloud.batch.v1alpha.DeleteJobRequest} message DeleteJobRequest + * @param {google.cloud.batch.v1alpha.ComputeResource} message ComputeResource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteJobRequest.toObject = function toObject(message, options) { + ComputeResource.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.reason = ""; - object.requestId = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.cpuMilli = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.cpuMilli = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.memoryMib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.memoryMib = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.gpuCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.gpuCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.bootDiskMib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.bootDiskMib = options.longs === String ? "0" : 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.cpuMilli != null && message.hasOwnProperty("cpuMilli")) + if (typeof message.cpuMilli === "number") + object.cpuMilli = options.longs === String ? String(message.cpuMilli) : message.cpuMilli; + else + object.cpuMilli = options.longs === String ? $util.Long.prototype.toString.call(message.cpuMilli) : options.longs === Number ? new $util.LongBits(message.cpuMilli.low >>> 0, message.cpuMilli.high >>> 0).toNumber() : message.cpuMilli; + if (message.memoryMib != null && message.hasOwnProperty("memoryMib")) + if (typeof message.memoryMib === "number") + object.memoryMib = options.longs === String ? String(message.memoryMib) : message.memoryMib; + else + object.memoryMib = options.longs === String ? $util.Long.prototype.toString.call(message.memoryMib) : options.longs === Number ? new $util.LongBits(message.memoryMib.low >>> 0, message.memoryMib.high >>> 0).toNumber() : message.memoryMib; + if (message.gpuCount != null && message.hasOwnProperty("gpuCount")) + if (typeof message.gpuCount === "number") + object.gpuCount = options.longs === String ? String(message.gpuCount) : message.gpuCount; + else + object.gpuCount = options.longs === String ? $util.Long.prototype.toString.call(message.gpuCount) : options.longs === Number ? new $util.LongBits(message.gpuCount.low >>> 0, message.gpuCount.high >>> 0).toNumber() : message.gpuCount; + if (message.bootDiskMib != null && message.hasOwnProperty("bootDiskMib")) + if (typeof message.bootDiskMib === "number") + object.bootDiskMib = options.longs === String ? String(message.bootDiskMib) : message.bootDiskMib; + else + object.bootDiskMib = options.longs === String ? $util.Long.prototype.toString.call(message.bootDiskMib) : options.longs === Number ? new $util.LongBits(message.bootDiskMib.low >>> 0, message.bootDiskMib.high >>> 0).toNumber() : message.bootDiskMib; return object; }; /** - * Converts this DeleteJobRequest to JSON. + * Converts this ComputeResource to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @instance * @returns {Object.} JSON object */ - DeleteJobRequest.prototype.toJSON = function toJSON() { + ComputeResource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteJobRequest + * Gets the default type url for ComputeResource * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.DeleteJobRequest + * @memberof google.cloud.batch.v1alpha.ComputeResource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ComputeResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.DeleteJobRequest"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.ComputeResource"; }; - return DeleteJobRequest; + return ComputeResource; })(); - v1alpha.ListJobsRequest = (function() { + v1alpha.StatusEvent = (function() { /** - * Properties of a ListJobsRequest. + * Properties of a StatusEvent. * @memberof google.cloud.batch.v1alpha - * @interface IListJobsRequest - * @property {string|null} [parent] ListJobsRequest parent - * @property {string|null} [filter] ListJobsRequest filter - * @property {number|null} [pageSize] ListJobsRequest pageSize - * @property {string|null} [pageToken] ListJobsRequest pageToken + * @interface IStatusEvent + * @property {string|null} [type] StatusEvent type + * @property {string|null} [description] StatusEvent description + * @property {google.protobuf.ITimestamp|null} [eventTime] StatusEvent eventTime + * @property {google.cloud.batch.v1alpha.ITaskExecution|null} [taskExecution] StatusEvent taskExecution */ /** - * Constructs a new ListJobsRequest. + * Constructs a new StatusEvent. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a ListJobsRequest. - * @implements IListJobsRequest + * @classdesc Represents a StatusEvent. + * @implements IStatusEvent * @constructor - * @param {google.cloud.batch.v1alpha.IListJobsRequest=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IStatusEvent=} [properties] Properties to set */ - function ListJobsRequest(properties) { + function StatusEvent(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24595,117 +22981,117 @@ } /** - * ListJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * StatusEvent type. + * @member {string} type + * @memberof google.cloud.batch.v1alpha.StatusEvent * @instance */ - ListJobsRequest.prototype.parent = ""; + StatusEvent.prototype.type = ""; /** - * ListJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * StatusEvent description. + * @member {string} description + * @memberof google.cloud.batch.v1alpha.StatusEvent * @instance */ - ListJobsRequest.prototype.filter = ""; + StatusEvent.prototype.description = ""; /** - * ListJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * StatusEvent eventTime. + * @member {google.protobuf.ITimestamp|null|undefined} eventTime + * @memberof google.cloud.batch.v1alpha.StatusEvent * @instance */ - ListJobsRequest.prototype.pageSize = 0; + StatusEvent.prototype.eventTime = null; /** - * ListJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * StatusEvent taskExecution. + * @member {google.cloud.batch.v1alpha.ITaskExecution|null|undefined} taskExecution + * @memberof google.cloud.batch.v1alpha.StatusEvent * @instance */ - ListJobsRequest.prototype.pageToken = ""; + StatusEvent.prototype.taskExecution = null; /** - * Creates a new ListJobsRequest instance using the specified properties. + * Creates a new StatusEvent instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @static - * @param {google.cloud.batch.v1alpha.IListJobsRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.ListJobsRequest} ListJobsRequest instance + * @param {google.cloud.batch.v1alpha.IStatusEvent=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.StatusEvent} StatusEvent instance */ - ListJobsRequest.create = function create(properties) { - return new ListJobsRequest(properties); + StatusEvent.create = function create(properties) { + return new StatusEvent(properties); }; /** - * Encodes the specified ListJobsRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsRequest.verify|verify} messages. + * Encodes the specified StatusEvent message. Does not implicitly {@link google.cloud.batch.v1alpha.StatusEvent.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @static - * @param {google.cloud.batch.v1alpha.IListJobsRequest} message ListJobsRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.IStatusEvent} message StatusEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListJobsRequest.encode = function encode(message, writer) { + StatusEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - return writer; - }; - - /** - * Encodes the specified ListJobsRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsRequest.verify|verify} messages. + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); + if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) + $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.taskExecution != null && Object.hasOwnProperty.call(message, "taskExecution")) + $root.google.cloud.batch.v1alpha.TaskExecution.encode(message.taskExecution, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StatusEvent message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.StatusEvent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @static - * @param {google.cloud.batch.v1alpha.IListJobsRequest} message ListJobsRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.IStatusEvent} message StatusEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + StatusEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListJobsRequest message from the specified reader or buffer. + * Decodes a StatusEvent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.ListJobsRequest} ListJobsRequest + * @returns {google.cloud.batch.v1alpha.StatusEvent} StatusEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListJobsRequest.decode = function decode(reader, length) { + StatusEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ListJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.StatusEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); + case 3: { + message.type = reader.string(); break; } - case 4: { - message.filter = reader.string(); + case 1: { + message.description = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 3: { - message.pageToken = reader.string(); + case 4: { + message.taskExecution = $root.google.cloud.batch.v1alpha.TaskExecution.decode(reader, reader.uint32()); break; } default: @@ -24717,151 +23103,157 @@ }; /** - * Decodes a ListJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a StatusEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.ListJobsRequest} ListJobsRequest + * @returns {google.cloud.batch.v1alpha.StatusEvent} StatusEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListJobsRequest.decodeDelimited = function decodeDelimited(reader) { + StatusEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListJobsRequest message. + * Verifies a StatusEvent message. * @function verify - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListJobsRequest.verify = function verify(message) { + StatusEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.eventTime != null && message.hasOwnProperty("eventTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.eventTime); + if (error) + return "eventTime." + error; + } + if (message.taskExecution != null && message.hasOwnProperty("taskExecution")) { + var error = $root.google.cloud.batch.v1alpha.TaskExecution.verify(message.taskExecution); + if (error) + return "taskExecution." + error; + } return null; }; /** - * Creates a ListJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StatusEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.ListJobsRequest} ListJobsRequest + * @returns {google.cloud.batch.v1alpha.StatusEvent} StatusEvent */ - ListJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.ListJobsRequest) + StatusEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.StatusEvent) return object; - var message = new $root.google.cloud.batch.v1alpha.ListJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.batch.v1alpha.StatusEvent(); + if (object.type != null) + message.type = String(object.type); + if (object.description != null) + message.description = String(object.description); + if (object.eventTime != null) { + if (typeof object.eventTime !== "object") + throw TypeError(".google.cloud.batch.v1alpha.StatusEvent.eventTime: object expected"); + message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime); + } + if (object.taskExecution != null) { + if (typeof object.taskExecution !== "object") + throw TypeError(".google.cloud.batch.v1alpha.StatusEvent.taskExecution: object expected"); + message.taskExecution = $root.google.cloud.batch.v1alpha.TaskExecution.fromObject(object.taskExecution); + } return message; }; /** - * Creates a plain object from a ListJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a StatusEvent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @static - * @param {google.cloud.batch.v1alpha.ListJobsRequest} message ListJobsRequest + * @param {google.cloud.batch.v1alpha.StatusEvent} message StatusEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListJobsRequest.toObject = function toObject(message, options) { + StatusEvent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.description = ""; + object.eventTime = null; + object.type = ""; + object.taskExecution = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.eventTime != null && message.hasOwnProperty("eventTime")) + object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.taskExecution != null && message.hasOwnProperty("taskExecution")) + object.taskExecution = $root.google.cloud.batch.v1alpha.TaskExecution.toObject(message.taskExecution, options); return object; }; /** - * Converts this ListJobsRequest to JSON. + * Converts this StatusEvent to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @instance * @returns {Object.} JSON object */ - ListJobsRequest.prototype.toJSON = function toJSON() { + StatusEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListJobsRequest + * Gets the default type url for StatusEvent * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.ListJobsRequest + * @memberof google.cloud.batch.v1alpha.StatusEvent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StatusEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.ListJobsRequest"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.StatusEvent"; }; - return ListJobsRequest; + return StatusEvent; })(); - v1alpha.ListJobsResponse = (function() { + v1alpha.TaskExecution = (function() { /** - * Properties of a ListJobsResponse. + * Properties of a TaskExecution. * @memberof google.cloud.batch.v1alpha - * @interface IListJobsResponse - * @property {Array.|null} [jobs] ListJobsResponse jobs - * @property {string|null} [nextPageToken] ListJobsResponse nextPageToken - * @property {Array.|null} [unreachable] ListJobsResponse unreachable + * @interface ITaskExecution + * @property {number|null} [exitCode] TaskExecution exitCode */ /** - * Constructs a new ListJobsResponse. + * Constructs a new TaskExecution. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a ListJobsResponse. - * @implements IListJobsResponse + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution * @constructor - * @param {google.cloud.batch.v1alpha.IListJobsResponse=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.ITaskExecution=} [properties] Properties to set */ - function ListJobsResponse(properties) { - this.jobs = []; - this.unreachable = []; + function TaskExecution(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24869,109 +23261,75 @@ } /** - * ListJobsResponse jobs. - * @member {Array.} jobs - * @memberof google.cloud.batch.v1alpha.ListJobsResponse - * @instance - */ - ListJobsResponse.prototype.jobs = $util.emptyArray; - - /** - * ListJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.batch.v1alpha.ListJobsResponse - * @instance - */ - ListJobsResponse.prototype.nextPageToken = ""; - - /** - * ListJobsResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * TaskExecution exitCode. + * @member {number} exitCode + * @memberof google.cloud.batch.v1alpha.TaskExecution * @instance */ - ListJobsResponse.prototype.unreachable = $util.emptyArray; + TaskExecution.prototype.exitCode = 0; /** - * Creates a new ListJobsResponse instance using the specified properties. + * Creates a new TaskExecution instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @static - * @param {google.cloud.batch.v1alpha.IListJobsResponse=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.ListJobsResponse} ListJobsResponse instance + * @param {google.cloud.batch.v1alpha.ITaskExecution=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.TaskExecution} TaskExecution instance */ - ListJobsResponse.create = function create(properties) { - return new ListJobsResponse(properties); + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); }; /** - * Encodes the specified ListJobsResponse message. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsResponse.verify|verify} messages. + * Encodes the specified TaskExecution message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskExecution.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @static - * @param {google.cloud.batch.v1alpha.IListJobsResponse} message ListJobsResponse message or plain object to encode + * @param {google.cloud.batch.v1alpha.ITaskExecution} message TaskExecution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListJobsResponse.encode = function encode(message, writer) { + TaskExecution.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.jobs != null && message.jobs.length) - for (var i = 0; i < message.jobs.length; ++i) - $root.google.cloud.batch.v1alpha.Job.encode(message.jobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.exitCode != null && Object.hasOwnProperty.call(message, "exitCode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.exitCode); return writer; }; /** - * Encodes the specified ListJobsResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListJobsResponse.verify|verify} messages. + * Encodes the specified TaskExecution message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskExecution.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @static - * @param {google.cloud.batch.v1alpha.IListJobsResponse} message ListJobsResponse message or plain object to encode + * @param {google.cloud.batch.v1alpha.ITaskExecution} message TaskExecution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + TaskExecution.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListJobsResponse message from the specified reader or buffer. + * Decodes a TaskExecution message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.ListJobsResponse} ListJobsResponse + * @returns {google.cloud.batch.v1alpha.TaskExecution} TaskExecution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListJobsResponse.decode = function decode(reader, length) { + TaskExecution.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ListJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.TaskExecution(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.jobs && message.jobs.length)) - message.jobs = []; - message.jobs.push($root.google.cloud.batch.v1alpha.Job.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.exitCode = reader.int32(); break; } default: @@ -24983,172 +23341,124 @@ }; /** - * Decodes a ListJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a TaskExecution message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.ListJobsResponse} ListJobsResponse + * @returns {google.cloud.batch.v1alpha.TaskExecution} TaskExecution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListJobsResponse.decodeDelimited = function decodeDelimited(reader) { + TaskExecution.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListJobsResponse message. + * Verifies a TaskExecution message. * @function verify - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListJobsResponse.verify = function verify(message) { + TaskExecution.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.jobs != null && message.hasOwnProperty("jobs")) { - if (!Array.isArray(message.jobs)) - return "jobs: array expected"; - for (var i = 0; i < message.jobs.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.Job.verify(message.jobs[i]); - if (error) - return "jobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; - } + if (message.exitCode != null && message.hasOwnProperty("exitCode")) + if (!$util.isInteger(message.exitCode)) + return "exitCode: integer expected"; return null; }; /** - * Creates a ListJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TaskExecution message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.ListJobsResponse} ListJobsResponse + * @returns {google.cloud.batch.v1alpha.TaskExecution} TaskExecution */ - ListJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.ListJobsResponse) + TaskExecution.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.TaskExecution) return object; - var message = new $root.google.cloud.batch.v1alpha.ListJobsResponse(); - if (object.jobs) { - if (!Array.isArray(object.jobs)) - throw TypeError(".google.cloud.batch.v1alpha.ListJobsResponse.jobs: array expected"); - message.jobs = []; - for (var i = 0; i < object.jobs.length; ++i) { - if (typeof object.jobs[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.ListJobsResponse.jobs: object expected"); - message.jobs[i] = $root.google.cloud.batch.v1alpha.Job.fromObject(object.jobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.batch.v1alpha.ListJobsResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); - } + var message = new $root.google.cloud.batch.v1alpha.TaskExecution(); + if (object.exitCode != null) + message.exitCode = object.exitCode | 0; return message; }; /** - * Creates a plain object from a ListJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a TaskExecution message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @static - * @param {google.cloud.batch.v1alpha.ListJobsResponse} message ListJobsResponse + * @param {google.cloud.batch.v1alpha.TaskExecution} message TaskExecution * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListJobsResponse.toObject = function toObject(message, options) { + TaskExecution.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.jobs = []; - object.unreachable = []; - } if (options.defaults) - object.nextPageToken = ""; - if (message.jobs && message.jobs.length) { - object.jobs = []; - for (var j = 0; j < message.jobs.length; ++j) - object.jobs[j] = $root.google.cloud.batch.v1alpha.Job.toObject(message.jobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; - } + object.exitCode = 0; + if (message.exitCode != null && message.hasOwnProperty("exitCode")) + object.exitCode = message.exitCode; return object; }; /** - * Converts this ListJobsResponse to JSON. + * Converts this TaskExecution to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @instance * @returns {Object.} JSON object */ - ListJobsResponse.prototype.toJSON = function toJSON() { + TaskExecution.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListJobsResponse + * Gets the default type url for TaskExecution * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.ListJobsResponse + * @memberof google.cloud.batch.v1alpha.TaskExecution * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TaskExecution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.ListJobsResponse"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.TaskExecution"; }; - return ListJobsResponse; + return TaskExecution; })(); - v1alpha.ListTasksRequest = (function() { + v1alpha.TaskStatus = (function() { /** - * Properties of a ListTasksRequest. + * Properties of a TaskStatus. * @memberof google.cloud.batch.v1alpha - * @interface IListTasksRequest - * @property {string|null} [parent] ListTasksRequest parent - * @property {string|null} [filter] ListTasksRequest filter - * @property {number|null} [pageSize] ListTasksRequest pageSize - * @property {string|null} [pageToken] ListTasksRequest pageToken + * @interface ITaskStatus + * @property {google.cloud.batch.v1alpha.TaskStatus.State|null} [state] TaskStatus state + * @property {Array.|null} [statusEvents] TaskStatus statusEvents */ /** - * Constructs a new ListTasksRequest. + * Constructs a new TaskStatus. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a ListTasksRequest. - * @implements IListTasksRequest + * @classdesc Represents a TaskStatus. + * @implements ITaskStatus * @constructor - * @param {google.cloud.batch.v1alpha.IListTasksRequest=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.ITaskStatus=} [properties] Properties to set */ - function ListTasksRequest(properties) { + function TaskStatus(properties) { + this.statusEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25156,117 +23466,92 @@ } /** - * ListTasksRequest parent. - * @member {string} parent - * @memberof google.cloud.batch.v1alpha.ListTasksRequest - * @instance - */ - ListTasksRequest.prototype.parent = ""; - - /** - * ListTasksRequest filter. - * @member {string} filter - * @memberof google.cloud.batch.v1alpha.ListTasksRequest - * @instance - */ - ListTasksRequest.prototype.filter = ""; - - /** - * ListTasksRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * TaskStatus state. + * @member {google.cloud.batch.v1alpha.TaskStatus.State} state + * @memberof google.cloud.batch.v1alpha.TaskStatus * @instance */ - ListTasksRequest.prototype.pageSize = 0; + TaskStatus.prototype.state = 0; /** - * ListTasksRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * TaskStatus statusEvents. + * @member {Array.} statusEvents + * @memberof google.cloud.batch.v1alpha.TaskStatus * @instance */ - ListTasksRequest.prototype.pageToken = ""; + TaskStatus.prototype.statusEvents = $util.emptyArray; /** - * Creates a new ListTasksRequest instance using the specified properties. + * Creates a new TaskStatus instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @static - * @param {google.cloud.batch.v1alpha.IListTasksRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.ListTasksRequest} ListTasksRequest instance + * @param {google.cloud.batch.v1alpha.ITaskStatus=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.TaskStatus} TaskStatus instance */ - ListTasksRequest.create = function create(properties) { - return new ListTasksRequest(properties); + TaskStatus.create = function create(properties) { + return new TaskStatus(properties); }; /** - * Encodes the specified ListTasksRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksRequest.verify|verify} messages. + * Encodes the specified TaskStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @static - * @param {google.cloud.batch.v1alpha.IListTasksRequest} message ListTasksRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.ITaskStatus} message TaskStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTasksRequest.encode = function encode(message, writer) { + TaskStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.statusEvents != null && message.statusEvents.length) + for (var i = 0; i < message.statusEvents.length; ++i) + $root.google.cloud.batch.v1alpha.StatusEvent.encode(message.statusEvents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTasksRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksRequest.verify|verify} messages. + * Encodes the specified TaskStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @static - * @param {google.cloud.batch.v1alpha.IListTasksRequest} message ListTasksRequest message or plain object to encode + * @param {google.cloud.batch.v1alpha.ITaskStatus} message TaskStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTasksRequest.encodeDelimited = function encodeDelimited(message, writer) { + TaskStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTasksRequest message from the specified reader or buffer. + * Decodes a TaskStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.ListTasksRequest} ListTasksRequest + * @returns {google.cloud.batch.v1alpha.TaskStatus} TaskStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTasksRequest.decode = function decode(reader, length) { + TaskStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ListTasksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.TaskStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.state = reader.int32(); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); + if (!(message.statusEvents && message.statusEvents.length)) + message.statusEvents = []; + message.statusEvents.push($root.google.cloud.batch.v1alpha.StatusEvent.decode(reader, reader.uint32())); break; } default: @@ -25278,151 +23563,218 @@ }; /** - * Decodes a ListTasksRequest message from the specified reader or buffer, length delimited. + * Decodes a TaskStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.ListTasksRequest} ListTasksRequest + * @returns {google.cloud.batch.v1alpha.TaskStatus} TaskStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTasksRequest.decodeDelimited = function decodeDelimited(reader) { + TaskStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTasksRequest message. + * Verifies a TaskStatus message. * @function verify - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTasksRequest.verify = function verify(message) { + TaskStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.statusEvents != null && message.hasOwnProperty("statusEvents")) { + if (!Array.isArray(message.statusEvents)) + return "statusEvents: array expected"; + for (var i = 0; i < message.statusEvents.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.StatusEvent.verify(message.statusEvents[i]); + if (error) + return "statusEvents." + error; + } + } return null; }; /** - * Creates a ListTasksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TaskStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.ListTasksRequest} ListTasksRequest + * @returns {google.cloud.batch.v1alpha.TaskStatus} TaskStatus */ - ListTasksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.ListTasksRequest) + TaskStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.TaskStatus) return object; - var message = new $root.google.cloud.batch.v1alpha.ListTasksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.batch.v1alpha.TaskStatus(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "ASSIGNED": + case 2: + message.state = 2; + break; + case "RUNNING": + case 3: + message.state = 3; + break; + case "FAILED": + case 4: + message.state = 4; + break; + case "SUCCEEDED": + case 5: + message.state = 5; + break; + } + if (object.statusEvents) { + if (!Array.isArray(object.statusEvents)) + throw TypeError(".google.cloud.batch.v1alpha.TaskStatus.statusEvents: array expected"); + message.statusEvents = []; + for (var i = 0; i < object.statusEvents.length; ++i) { + if (typeof object.statusEvents[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskStatus.statusEvents: object expected"); + message.statusEvents[i] = $root.google.cloud.batch.v1alpha.StatusEvent.fromObject(object.statusEvents[i]); + } + } return message; }; /** - * Creates a plain object from a ListTasksRequest message. Also converts values to other types if specified. + * Creates a plain object from a TaskStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @static - * @param {google.cloud.batch.v1alpha.ListTasksRequest} message ListTasksRequest + * @param {google.cloud.batch.v1alpha.TaskStatus} message TaskStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTasksRequest.toObject = function toObject(message, options) { + TaskStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.statusEvents = []; + if (options.defaults) + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.batch.v1alpha.TaskStatus.State[message.state] === undefined ? message.state : $root.google.cloud.batch.v1alpha.TaskStatus.State[message.state] : message.state; + if (message.statusEvents && message.statusEvents.length) { + object.statusEvents = []; + for (var j = 0; j < message.statusEvents.length; ++j) + object.statusEvents[j] = $root.google.cloud.batch.v1alpha.StatusEvent.toObject(message.statusEvents[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; return object; }; /** - * Converts this ListTasksRequest to JSON. + * Converts this TaskStatus to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @instance * @returns {Object.} JSON object */ - ListTasksRequest.prototype.toJSON = function toJSON() { + TaskStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTasksRequest + * Gets the default type url for TaskStatus * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.ListTasksRequest + * @memberof google.cloud.batch.v1alpha.TaskStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTasksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.ListTasksRequest"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.TaskStatus"; }; - return ListTasksRequest; + /** + * State enum. + * @name google.cloud.batch.v1alpha.TaskStatus.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} ASSIGNED=2 ASSIGNED value + * @property {number} RUNNING=3 RUNNING value + * @property {number} FAILED=4 FAILED value + * @property {number} SUCCEEDED=5 SUCCEEDED value + */ + TaskStatus.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "ASSIGNED"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + values[valuesById[4] = "FAILED"] = 4; + values[valuesById[5] = "SUCCEEDED"] = 5; + return values; + })(); + + return TaskStatus; })(); - v1alpha.ListTasksResponse = (function() { + v1alpha.Runnable = (function() { /** - * Properties of a ListTasksResponse. + * Properties of a Runnable. * @memberof google.cloud.batch.v1alpha - * @interface IListTasksResponse - * @property {Array.|null} [tasks] ListTasksResponse tasks - * @property {string|null} [nextPageToken] ListTasksResponse nextPageToken - * @property {Array.|null} [unreachable] ListTasksResponse unreachable + * @interface IRunnable + * @property {google.cloud.batch.v1alpha.Runnable.IContainer|null} [container] Runnable container + * @property {google.cloud.batch.v1alpha.Runnable.IScript|null} [script] Runnable script + * @property {google.cloud.batch.v1alpha.Runnable.IBarrier|null} [barrier] Runnable barrier + * @property {boolean|null} [ignoreExitStatus] Runnable ignoreExitStatus + * @property {boolean|null} [background] Runnable background + * @property {boolean|null} [alwaysRun] Runnable alwaysRun + * @property {google.cloud.batch.v1alpha.IEnvironment|null} [environment] Runnable environment + * @property {google.protobuf.IDuration|null} [timeout] Runnable timeout + * @property {Object.|null} [labels] Runnable labels */ /** - * Constructs a new ListTasksResponse. + * Constructs a new Runnable. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a ListTasksResponse. - * @implements IListTasksResponse + * @classdesc Represents a Runnable. + * @implements IRunnable * @constructor - * @param {google.cloud.batch.v1alpha.IListTasksResponse=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IRunnable=} [properties] Properties to set */ - function ListTasksResponse(properties) { - this.tasks = []; - this.unreachable = []; + function Runnable(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25430,109 +23782,221 @@ } /** - * ListTasksResponse tasks. - * @member {Array.} tasks - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * Runnable container. + * @member {google.cloud.batch.v1alpha.Runnable.IContainer|null|undefined} container + * @memberof google.cloud.batch.v1alpha.Runnable * @instance */ - ListTasksResponse.prototype.tasks = $util.emptyArray; + Runnable.prototype.container = null; /** - * ListTasksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * Runnable script. + * @member {google.cloud.batch.v1alpha.Runnable.IScript|null|undefined} script + * @memberof google.cloud.batch.v1alpha.Runnable * @instance */ - ListTasksResponse.prototype.nextPageToken = ""; + Runnable.prototype.script = null; /** - * ListTasksResponse unreachable. - * @member {Array.} unreachable - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * Runnable barrier. + * @member {google.cloud.batch.v1alpha.Runnable.IBarrier|null|undefined} barrier + * @memberof google.cloud.batch.v1alpha.Runnable * @instance */ - ListTasksResponse.prototype.unreachable = $util.emptyArray; + Runnable.prototype.barrier = null; /** - * Creates a new ListTasksResponse instance using the specified properties. + * Runnable ignoreExitStatus. + * @member {boolean} ignoreExitStatus + * @memberof google.cloud.batch.v1alpha.Runnable + * @instance + */ + Runnable.prototype.ignoreExitStatus = false; + + /** + * Runnable background. + * @member {boolean} background + * @memberof google.cloud.batch.v1alpha.Runnable + * @instance + */ + Runnable.prototype.background = false; + + /** + * Runnable alwaysRun. + * @member {boolean} alwaysRun + * @memberof google.cloud.batch.v1alpha.Runnable + * @instance + */ + Runnable.prototype.alwaysRun = false; + + /** + * Runnable environment. + * @member {google.cloud.batch.v1alpha.IEnvironment|null|undefined} environment + * @memberof google.cloud.batch.v1alpha.Runnable + * @instance + */ + Runnable.prototype.environment = null; + + /** + * Runnable timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.cloud.batch.v1alpha.Runnable + * @instance + */ + Runnable.prototype.timeout = null; + + /** + * Runnable labels. + * @member {Object.} labels + * @memberof google.cloud.batch.v1alpha.Runnable + * @instance + */ + Runnable.prototype.labels = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Runnable executable. + * @member {"container"|"script"|"barrier"|undefined} executable + * @memberof google.cloud.batch.v1alpha.Runnable + * @instance + */ + Object.defineProperty(Runnable.prototype, "executable", { + get: $util.oneOfGetter($oneOfFields = ["container", "script", "barrier"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Runnable instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @static - * @param {google.cloud.batch.v1alpha.IListTasksResponse=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.ListTasksResponse} ListTasksResponse instance + * @param {google.cloud.batch.v1alpha.IRunnable=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.Runnable} Runnable instance */ - ListTasksResponse.create = function create(properties) { - return new ListTasksResponse(properties); + Runnable.create = function create(properties) { + return new Runnable(properties); }; /** - * Encodes the specified ListTasksResponse message. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksResponse.verify|verify} messages. + * Encodes the specified Runnable message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @static - * @param {google.cloud.batch.v1alpha.IListTasksResponse} message ListTasksResponse message or plain object to encode + * @param {google.cloud.batch.v1alpha.IRunnable} message Runnable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTasksResponse.encode = function encode(message, writer) { + Runnable.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.google.cloud.batch.v1alpha.Task.encode(message.tasks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - if (message.unreachable != null && message.unreachable.length) - for (var i = 0; i < message.unreachable.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]); + if (message.container != null && Object.hasOwnProperty.call(message, "container")) + $root.google.cloud.batch.v1alpha.Runnable.Container.encode(message.container, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.script != null && Object.hasOwnProperty.call(message, "script")) + $root.google.cloud.batch.v1alpha.Runnable.Script.encode(message.script, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.ignoreExitStatus != null && Object.hasOwnProperty.call(message, "ignoreExitStatus")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ignoreExitStatus); + if (message.background != null && Object.hasOwnProperty.call(message, "background")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.background); + if (message.alwaysRun != null && Object.hasOwnProperty.call(message, "alwaysRun")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.alwaysRun); + if (message.barrier != null && Object.hasOwnProperty.call(message, "barrier")) + $root.google.cloud.batch.v1alpha.Runnable.Barrier.encode(message.barrier, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.batch.v1alpha.Environment.encode(message.environment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified ListTasksResponse message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ListTasksResponse.verify|verify} messages. + * Encodes the specified Runnable message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @static - * @param {google.cloud.batch.v1alpha.IListTasksResponse} message ListTasksResponse message or plain object to encode + * @param {google.cloud.batch.v1alpha.IRunnable} message Runnable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTasksResponse.encodeDelimited = function encodeDelimited(message, writer) { + Runnable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTasksResponse message from the specified reader or buffer. + * Decodes a Runnable message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.ListTasksResponse} ListTasksResponse + * @returns {google.cloud.batch.v1alpha.Runnable} Runnable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTasksResponse.decode = function decode(reader, length) { + Runnable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ListTasksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Runnable(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.google.cloud.batch.v1alpha.Task.decode(reader, reader.uint32())); + message.container = $root.google.cloud.batch.v1alpha.Runnable.Container.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); + message.script = $root.google.cloud.batch.v1alpha.Runnable.Script.decode(reader, reader.uint32()); + break; + } + case 6: { + message.barrier = $root.google.cloud.batch.v1alpha.Runnable.Barrier.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.unreachable && message.unreachable.length)) - message.unreachable = []; - message.unreachable.push(reader.string()); + message.ignoreExitStatus = reader.bool(); + break; + } + case 4: { + message.background = reader.bool(); + break; + } + case 5: { + message.alwaysRun = reader.bool(); + break; + } + case 7: { + message.environment = $root.google.cloud.batch.v1alpha.Environment.decode(reader, reader.uint32()); + break; + } + case 8: { + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 9: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; break; } default: @@ -25544,741 +24008,1110 @@ }; /** - * Decodes a ListTasksResponse message from the specified reader or buffer, length delimited. + * Decodes a Runnable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.ListTasksResponse} ListTasksResponse + * @returns {google.cloud.batch.v1alpha.Runnable} Runnable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTasksResponse.decodeDelimited = function decodeDelimited(reader) { + Runnable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTasksResponse message. + * Verifies a Runnable message. * @function verify - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTasksResponse.verify = function verify(message) { + Runnable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.Task.verify(message.tasks[i]); + var properties = {}; + if (message.container != null && message.hasOwnProperty("container")) { + properties.executable = 1; + { + var error = $root.google.cloud.batch.v1alpha.Runnable.Container.verify(message.container); if (error) - return "tasks." + error; + return "container." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.unreachable != null && message.hasOwnProperty("unreachable")) { - if (!Array.isArray(message.unreachable)) - return "unreachable: array expected"; - for (var i = 0; i < message.unreachable.length; ++i) - if (!$util.isString(message.unreachable[i])) - return "unreachable: string[] expected"; + if (message.script != null && message.hasOwnProperty("script")) { + if (properties.executable === 1) + return "executable: multiple values"; + properties.executable = 1; + { + var error = $root.google.cloud.batch.v1alpha.Runnable.Script.verify(message.script); + if (error) + return "script." + error; + } + } + if (message.barrier != null && message.hasOwnProperty("barrier")) { + if (properties.executable === 1) + return "executable: multiple values"; + properties.executable = 1; + { + var error = $root.google.cloud.batch.v1alpha.Runnable.Barrier.verify(message.barrier); + if (error) + return "barrier." + error; + } + } + if (message.ignoreExitStatus != null && message.hasOwnProperty("ignoreExitStatus")) + if (typeof message.ignoreExitStatus !== "boolean") + return "ignoreExitStatus: boolean expected"; + if (message.background != null && message.hasOwnProperty("background")) + if (typeof message.background !== "boolean") + return "background: boolean expected"; + if (message.alwaysRun != null && message.hasOwnProperty("alwaysRun")) + if (typeof message.alwaysRun !== "boolean") + return "alwaysRun: boolean expected"; + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.batch.v1alpha.Environment.verify(message.environment); + if (error) + return "environment." + error; + } + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; } return null; }; /** - * Creates a ListTasksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Runnable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.ListTasksResponse} ListTasksResponse + * @returns {google.cloud.batch.v1alpha.Runnable} Runnable */ - ListTasksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.ListTasksResponse) + Runnable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.Runnable) return object; - var message = new $root.google.cloud.batch.v1alpha.ListTasksResponse(); - if (object.tasks) { - if (!Array.isArray(object.tasks)) - throw TypeError(".google.cloud.batch.v1alpha.ListTasksResponse.tasks: array expected"); - message.tasks = []; - for (var i = 0; i < object.tasks.length; ++i) { - if (typeof object.tasks[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.ListTasksResponse.tasks: object expected"); - message.tasks[i] = $root.google.cloud.batch.v1alpha.Task.fromObject(object.tasks[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.unreachable) { - if (!Array.isArray(object.unreachable)) - throw TypeError(".google.cloud.batch.v1alpha.ListTasksResponse.unreachable: array expected"); - message.unreachable = []; - for (var i = 0; i < object.unreachable.length; ++i) - message.unreachable[i] = String(object.unreachable[i]); + var message = new $root.google.cloud.batch.v1alpha.Runnable(); + if (object.container != null) { + if (typeof object.container !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Runnable.container: object expected"); + message.container = $root.google.cloud.batch.v1alpha.Runnable.Container.fromObject(object.container); + } + if (object.script != null) { + if (typeof object.script !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Runnable.script: object expected"); + message.script = $root.google.cloud.batch.v1alpha.Runnable.Script.fromObject(object.script); + } + if (object.barrier != null) { + if (typeof object.barrier !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Runnable.barrier: object expected"); + message.barrier = $root.google.cloud.batch.v1alpha.Runnable.Barrier.fromObject(object.barrier); + } + if (object.ignoreExitStatus != null) + message.ignoreExitStatus = Boolean(object.ignoreExitStatus); + if (object.background != null) + message.background = Boolean(object.background); + if (object.alwaysRun != null) + message.alwaysRun = Boolean(object.alwaysRun); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Runnable.environment: object expected"); + message.environment = $root.google.cloud.batch.v1alpha.Environment.fromObject(object.environment); + } + if (object.timeout != null) { + if (typeof object.timeout !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Runnable.timeout: object expected"); + message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Runnable.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); } return message; }; /** - * Creates a plain object from a ListTasksResponse message. Also converts values to other types if specified. + * Creates a plain object from a Runnable message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @static - * @param {google.cloud.batch.v1alpha.ListTasksResponse} message ListTasksResponse + * @param {google.cloud.batch.v1alpha.Runnable} message Runnable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTasksResponse.toObject = function toObject(message, options) { + Runnable.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.tasks = []; - object.unreachable = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.ignoreExitStatus = false; + object.background = false; + object.alwaysRun = false; + object.environment = null; + object.timeout = null; } - if (options.defaults) - object.nextPageToken = ""; - if (message.tasks && message.tasks.length) { - object.tasks = []; - for (var j = 0; j < message.tasks.length; ++j) - object.tasks[j] = $root.google.cloud.batch.v1alpha.Task.toObject(message.tasks[j], options); + if (message.container != null && message.hasOwnProperty("container")) { + object.container = $root.google.cloud.batch.v1alpha.Runnable.Container.toObject(message.container, options); + if (options.oneofs) + object.executable = "container"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.unreachable && message.unreachable.length) { - object.unreachable = []; - for (var j = 0; j < message.unreachable.length; ++j) - object.unreachable[j] = message.unreachable[j]; + if (message.script != null && message.hasOwnProperty("script")) { + object.script = $root.google.cloud.batch.v1alpha.Runnable.Script.toObject(message.script, options); + if (options.oneofs) + object.executable = "script"; + } + if (message.ignoreExitStatus != null && message.hasOwnProperty("ignoreExitStatus")) + object.ignoreExitStatus = message.ignoreExitStatus; + if (message.background != null && message.hasOwnProperty("background")) + object.background = message.background; + if (message.alwaysRun != null && message.hasOwnProperty("alwaysRun")) + object.alwaysRun = message.alwaysRun; + if (message.barrier != null && message.hasOwnProperty("barrier")) { + object.barrier = $root.google.cloud.batch.v1alpha.Runnable.Barrier.toObject(message.barrier, options); + if (options.oneofs) + object.executable = "barrier"; + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.batch.v1alpha.Environment.toObject(message.environment, options); + if (message.timeout != null && message.hasOwnProperty("timeout")) + object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } return object; }; /** - * Converts this ListTasksResponse to JSON. + * Converts this Runnable to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @instance * @returns {Object.} JSON object */ - ListTasksResponse.prototype.toJSON = function toJSON() { + Runnable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTasksResponse + * Gets the default type url for Runnable * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.ListTasksResponse + * @memberof google.cloud.batch.v1alpha.Runnable * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTasksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Runnable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.ListTasksResponse"; - }; - - return ListTasksResponse; - })(); - - v1alpha.GetTaskRequest = (function() { - - /** - * Properties of a GetTaskRequest. - * @memberof google.cloud.batch.v1alpha - * @interface IGetTaskRequest - * @property {string|null} [name] GetTaskRequest name - */ - - /** - * Constructs a new GetTaskRequest. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a GetTaskRequest. - * @implements IGetTaskRequest - * @constructor - * @param {google.cloud.batch.v1alpha.IGetTaskRequest=} [properties] Properties to set - */ - function GetTaskRequest(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]]; - } - - /** - * GetTaskRequest name. - * @member {string} name - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @instance - */ - GetTaskRequest.prototype.name = ""; - - /** - * Creates a new GetTaskRequest instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @static - * @param {google.cloud.batch.v1alpha.IGetTaskRequest=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.GetTaskRequest} GetTaskRequest instance - */ - GetTaskRequest.create = function create(properties) { - return new GetTaskRequest(properties); + return typeUrlPrefix + "/google.cloud.batch.v1alpha.Runnable"; }; - /** - * Encodes the specified GetTaskRequest message. Does not implicitly {@link google.cloud.batch.v1alpha.GetTaskRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @static - * @param {google.cloud.batch.v1alpha.IGetTaskRequest} message GetTaskRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + Runnable.Container = (function() { - /** - * Encodes the specified GetTaskRequest message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GetTaskRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @static - * @param {google.cloud.batch.v1alpha.IGetTaskRequest} message GetTaskRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a Container. + * @memberof google.cloud.batch.v1alpha.Runnable + * @interface IContainer + * @property {string|null} [imageUri] Container imageUri + * @property {Array.|null} [commands] Container commands + * @property {string|null} [entrypoint] Container entrypoint + * @property {Array.|null} [volumes] Container volumes + * @property {string|null} [options] Container options + * @property {boolean|null} [blockExternalNetwork] Container blockExternalNetwork + * @property {string|null} [username] Container username + * @property {string|null} [password] Container password + */ - /** - * Decodes a GetTaskRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.GetTaskRequest} GetTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.GetTaskRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new Container. + * @memberof google.cloud.batch.v1alpha.Runnable + * @classdesc Represents a Container. + * @implements IContainer + * @constructor + * @param {google.cloud.batch.v1alpha.Runnable.IContainer=} [properties] Properties to set + */ + function Container(properties) { + this.commands = []; + this.volumes = []; + 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]]; } - return message; - }; - - /** - * Decodes a GetTaskRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.GetTaskRequest} GetTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetTaskRequest message. - * @function verify - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - /** - * Creates a GetTaskRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.GetTaskRequest} GetTaskRequest - */ - GetTaskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.GetTaskRequest) - return object; - var message = new $root.google.cloud.batch.v1alpha.GetTaskRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * Container imageUri. + * @member {string} imageUri + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @instance + */ + Container.prototype.imageUri = ""; - /** - * Creates a plain object from a GetTaskRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @static - * @param {google.cloud.batch.v1alpha.GetTaskRequest} message GetTaskRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetTaskRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Container commands. + * @member {Array.} commands + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @instance + */ + Container.prototype.commands = $util.emptyArray; - /** - * Converts this GetTaskRequest to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @instance - * @returns {Object.} JSON object - */ - GetTaskRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Container entrypoint. + * @member {string} entrypoint + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @instance + */ + Container.prototype.entrypoint = ""; - /** - * Gets the default type url for GetTaskRequest - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.GetTaskRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetTaskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.GetTaskRequest"; - }; + /** + * Container volumes. + * @member {Array.} volumes + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @instance + */ + Container.prototype.volumes = $util.emptyArray; - return GetTaskRequest; - })(); + /** + * Container options. + * @member {string} options + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @instance + */ + Container.prototype.options = ""; - v1alpha.OperationMetadata = (function() { + /** + * Container blockExternalNetwork. + * @member {boolean} blockExternalNetwork + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @instance + */ + Container.prototype.blockExternalNetwork = false; - /** - * Properties of an OperationMetadata. - * @memberof google.cloud.batch.v1alpha - * @interface IOperationMetadata - * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime - * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime - * @property {string|null} [target] OperationMetadata target - * @property {string|null} [verb] OperationMetadata verb - * @property {string|null} [statusMessage] OperationMetadata statusMessage - * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation - * @property {string|null} [apiVersion] OperationMetadata apiVersion - */ + /** + * Container username. + * @member {string} username + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @instance + */ + Container.prototype.username = ""; - /** - * Constructs a new OperationMetadata. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents an OperationMetadata. - * @implements IOperationMetadata - * @constructor - * @param {google.cloud.batch.v1alpha.IOperationMetadata=} [properties] Properties to set - */ - function OperationMetadata(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]]; - } + /** + * Container password. + * @member {string} password + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @instance + */ + Container.prototype.password = ""; - /** - * OperationMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @instance - */ - OperationMetadata.prototype.createTime = null; + /** + * Creates a new Container instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @static + * @param {google.cloud.batch.v1alpha.Runnable.IContainer=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.Runnable.Container} Container instance + */ + Container.create = function create(properties) { + return new Container(properties); + }; - /** - * OperationMetadata endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @instance - */ - OperationMetadata.prototype.endTime = null; + /** + * Encodes the specified Container message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Container.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @static + * @param {google.cloud.batch.v1alpha.Runnable.IContainer} message Container message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Container.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); + if (message.commands != null && message.commands.length) + for (var i = 0; i < message.commands.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.commands[i]); + if (message.entrypoint != null && Object.hasOwnProperty.call(message, "entrypoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.entrypoint); + if (message.volumes != null && message.volumes.length) + for (var i = 0; i < message.volumes.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.volumes[i]); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.options); + if (message.blockExternalNetwork != null && Object.hasOwnProperty.call(message, "blockExternalNetwork")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.blockExternalNetwork); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.password); + return writer; + }; - /** - * OperationMetadata target. - * @member {string} target - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @instance - */ - OperationMetadata.prototype.target = ""; + /** + * Encodes the specified Container message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Container.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @static + * @param {google.cloud.batch.v1alpha.Runnable.IContainer} message Container message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Container.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * OperationMetadata verb. - * @member {string} verb - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @instance - */ - OperationMetadata.prototype.verb = ""; - - /** - * OperationMetadata statusMessage. - * @member {string} statusMessage - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @instance - */ - OperationMetadata.prototype.statusMessage = ""; + /** + * Decodes a Container message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.Runnable.Container} Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Container.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Runnable.Container(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.imageUri = reader.string(); + break; + } + case 2: { + if (!(message.commands && message.commands.length)) + message.commands = []; + message.commands.push(reader.string()); + break; + } + case 3: { + message.entrypoint = reader.string(); + break; + } + case 7: { + if (!(message.volumes && message.volumes.length)) + message.volumes = []; + message.volumes.push(reader.string()); + break; + } + case 8: { + message.options = reader.string(); + break; + } + case 9: { + message.blockExternalNetwork = reader.bool(); + break; + } + case 10: { + message.username = reader.string(); + break; + } + case 11: { + message.password = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * OperationMetadata requestedCancellation. - * @member {boolean} requestedCancellation - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @instance - */ - OperationMetadata.prototype.requestedCancellation = false; + /** + * Decodes a Container message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.Runnable.Container} Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Container.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * OperationMetadata apiVersion. - * @member {string} apiVersion - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @instance - */ - OperationMetadata.prototype.apiVersion = ""; + /** + * Verifies a Container message. + * @function verify + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Container.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + if (!$util.isString(message.imageUri)) + return "imageUri: string expected"; + if (message.commands != null && message.hasOwnProperty("commands")) { + if (!Array.isArray(message.commands)) + return "commands: array expected"; + for (var i = 0; i < message.commands.length; ++i) + if (!$util.isString(message.commands[i])) + return "commands: string[] expected"; + } + if (message.entrypoint != null && message.hasOwnProperty("entrypoint")) + if (!$util.isString(message.entrypoint)) + return "entrypoint: string expected"; + if (message.volumes != null && message.hasOwnProperty("volumes")) { + if (!Array.isArray(message.volumes)) + return "volumes: array expected"; + for (var i = 0; i < message.volumes.length; ++i) + if (!$util.isString(message.volumes[i])) + return "volumes: string[] expected"; + } + if (message.options != null && message.hasOwnProperty("options")) + if (!$util.isString(message.options)) + return "options: string expected"; + if (message.blockExternalNetwork != null && message.hasOwnProperty("blockExternalNetwork")) + if (typeof message.blockExternalNetwork !== "boolean") + return "blockExternalNetwork: boolean expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + return null; + }; - /** - * Creates a new OperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @static - * @param {google.cloud.batch.v1alpha.IOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.OperationMetadata} OperationMetadata instance - */ - OperationMetadata.create = function create(properties) { - return new OperationMetadata(properties); - }; + /** + * Creates a Container message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.Runnable.Container} Container + */ + Container.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.Runnable.Container) + return object; + var message = new $root.google.cloud.batch.v1alpha.Runnable.Container(); + if (object.imageUri != null) + message.imageUri = String(object.imageUri); + if (object.commands) { + if (!Array.isArray(object.commands)) + throw TypeError(".google.cloud.batch.v1alpha.Runnable.Container.commands: array expected"); + message.commands = []; + for (var i = 0; i < object.commands.length; ++i) + message.commands[i] = String(object.commands[i]); + } + if (object.entrypoint != null) + message.entrypoint = String(object.entrypoint); + if (object.volumes) { + if (!Array.isArray(object.volumes)) + throw TypeError(".google.cloud.batch.v1alpha.Runnable.Container.volumes: array expected"); + message.volumes = []; + for (var i = 0; i < object.volumes.length; ++i) + message.volumes[i] = String(object.volumes[i]); + } + if (object.options != null) + message.options = String(object.options); + if (object.blockExternalNetwork != null) + message.blockExternalNetwork = Boolean(object.blockExternalNetwork); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + return message; + }; - /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.batch.v1alpha.OperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @static - * @param {google.cloud.batch.v1alpha.IOperationMetadata} message OperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); - if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); - if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); - return writer; - }; + /** + * Creates a plain object from a Container message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @static + * @param {google.cloud.batch.v1alpha.Runnable.Container} message Container + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Container.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.commands = []; + object.volumes = []; + } + if (options.defaults) { + object.imageUri = ""; + object.entrypoint = ""; + object.options = ""; + object.blockExternalNetwork = false; + object.username = ""; + object.password = ""; + } + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + object.imageUri = message.imageUri; + if (message.commands && message.commands.length) { + object.commands = []; + for (var j = 0; j < message.commands.length; ++j) + object.commands[j] = message.commands[j]; + } + if (message.entrypoint != null && message.hasOwnProperty("entrypoint")) + object.entrypoint = message.entrypoint; + if (message.volumes && message.volumes.length) { + object.volumes = []; + for (var j = 0; j < message.volumes.length; ++j) + object.volumes[j] = message.volumes[j]; + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = message.options; + if (message.blockExternalNetwork != null && message.hasOwnProperty("blockExternalNetwork")) + object.blockExternalNetwork = message.blockExternalNetwork; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + return object; + }; - /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.OperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @static - * @param {google.cloud.batch.v1alpha.IOperationMetadata} message OperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this Container to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @instance + * @returns {Object.} JSON object + */ + Container.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes an OperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.OperationMetadata} OperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.OperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 3: { - message.target = reader.string(); - break; - } - case 4: { - message.verb = reader.string(); - break; - } - case 5: { - message.statusMessage = reader.string(); - break; - } - case 6: { - message.requestedCancellation = reader.bool(); - break; - } - case 7: { - message.apiVersion = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; + /** + * Gets the default type url for Container + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.Runnable.Container + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Container.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - return message; - }; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.Runnable.Container"; + }; - /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.OperationMetadata} OperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return Container; + })(); - /** - * Verifies an OperationMetadata message. - * @function verify - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.target != null && message.hasOwnProperty("target")) - if (!$util.isString(message.target)) - return "target: string expected"; - if (message.verb != null && message.hasOwnProperty("verb")) - if (!$util.isString(message.verb)) - return "verb: string expected"; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - if (typeof message.requestedCancellation !== "boolean") - return "requestedCancellation: boolean expected"; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - if (!$util.isString(message.apiVersion)) - return "apiVersion: string expected"; - return null; - }; + Runnable.Script = (function() { - /** - * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.OperationMetadata} OperationMetadata - */ - OperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.OperationMetadata) - return object; - var message = new $root.google.cloud.batch.v1alpha.OperationMetadata(); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.batch.v1alpha.OperationMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.batch.v1alpha.OperationMetadata.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.target != null) - message.target = String(object.target); - if (object.verb != null) - message.verb = String(object.verb); - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.requestedCancellation != null) - message.requestedCancellation = Boolean(object.requestedCancellation); - if (object.apiVersion != null) - message.apiVersion = String(object.apiVersion); - return message; - }; + /** + * Properties of a Script. + * @memberof google.cloud.batch.v1alpha.Runnable + * @interface IScript + * @property {string|null} [path] Script path + * @property {string|null} [text] Script text + */ - /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @static - * @param {google.cloud.batch.v1alpha.OperationMetadata} message OperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.createTime = null; - object.endTime = null; - object.target = ""; - object.verb = ""; - object.statusMessage = ""; - object.requestedCancellation = false; - object.apiVersion = ""; + /** + * Constructs a new Script. + * @memberof google.cloud.batch.v1alpha.Runnable + * @classdesc Represents a Script. + * @implements IScript + * @constructor + * @param {google.cloud.batch.v1alpha.Runnable.IScript=} [properties] Properties to set + */ + function Script(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]]; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = message.target; - if (message.verb != null && message.hasOwnProperty("verb")) - object.verb = message.verb; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - object.requestedCancellation = message.requestedCancellation; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - object.apiVersion = message.apiVersion; - return object; - }; - /** - * Converts this OperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @instance - * @returns {Object.} JSON object - */ - OperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Script path. + * @member {string|null|undefined} path + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @instance + */ + Script.prototype.path = null; - /** - * Gets the default type url for OperationMetadata - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.OperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Script text. + * @member {string|null|undefined} text + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @instance + */ + Script.prototype.text = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Script command. + * @member {"path"|"text"|undefined} command + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @instance + */ + Object.defineProperty(Script.prototype, "command", { + get: $util.oneOfGetter($oneOfFields = ["path", "text"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Script instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @static + * @param {google.cloud.batch.v1alpha.Runnable.IScript=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.Runnable.Script} Script instance + */ + Script.create = function create(properties) { + return new Script(properties); + }; + + /** + * Encodes the specified Script message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Script.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @static + * @param {google.cloud.batch.v1alpha.Runnable.IScript} message Script message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Script.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.text); + return writer; + }; + + /** + * Encodes the specified Script message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Script.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @static + * @param {google.cloud.batch.v1alpha.Runnable.IScript} message Script message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Script.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Script message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.Runnable.Script} Script + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Script.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Runnable.Script(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.path = reader.string(); + break; + } + case 2: { + message.text = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Script message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.Runnable.Script} Script + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Script.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Script message. + * @function verify + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Script.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.path != null && message.hasOwnProperty("path")) { + properties.command = 1; + if (!$util.isString(message.path)) + return "path: string expected"; + } + if (message.text != null && message.hasOwnProperty("text")) { + if (properties.command === 1) + return "command: multiple values"; + properties.command = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + return null; + }; + + /** + * Creates a Script message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.Runnable.Script} Script + */ + Script.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.Runnable.Script) + return object; + var message = new $root.google.cloud.batch.v1alpha.Runnable.Script(); + if (object.path != null) + message.path = String(object.path); + if (object.text != null) + message.text = String(object.text); + return message; + }; + + /** + * Creates a plain object from a Script message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @static + * @param {google.cloud.batch.v1alpha.Runnable.Script} message Script + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Script.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.path != null && message.hasOwnProperty("path")) { + object.path = message.path; + if (options.oneofs) + object.command = "path"; + } + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.command = "text"; + } + return object; + }; + + /** + * Converts this Script to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @instance + * @returns {Object.} JSON object + */ + Script.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Script + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.Runnable.Script + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Script.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.Runnable.Script"; + }; + + return Script; + })(); + + Runnable.Barrier = (function() { + + /** + * Properties of a Barrier. + * @memberof google.cloud.batch.v1alpha.Runnable + * @interface IBarrier + * @property {string|null} [name] Barrier name + */ + + /** + * Constructs a new Barrier. + * @memberof google.cloud.batch.v1alpha.Runnable + * @classdesc Represents a Barrier. + * @implements IBarrier + * @constructor + * @param {google.cloud.batch.v1alpha.Runnable.IBarrier=} [properties] Properties to set + */ + function Barrier(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]]; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.OperationMetadata"; - }; - return OperationMetadata; + /** + * Barrier name. + * @member {string} name + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @instance + */ + Barrier.prototype.name = ""; + + /** + * Creates a new Barrier instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @static + * @param {google.cloud.batch.v1alpha.Runnable.IBarrier=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.Runnable.Barrier} Barrier instance + */ + Barrier.create = function create(properties) { + return new Barrier(properties); + }; + + /** + * Encodes the specified Barrier message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Barrier.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @static + * @param {google.cloud.batch.v1alpha.Runnable.IBarrier} message Barrier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Barrier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified Barrier message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Barrier.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @static + * @param {google.cloud.batch.v1alpha.Runnable.IBarrier} message Barrier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Barrier.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Barrier message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.Runnable.Barrier} Barrier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Barrier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Runnable.Barrier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Barrier message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.Runnable.Barrier} Barrier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Barrier.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Barrier message. + * @function verify + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Barrier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a Barrier message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.Runnable.Barrier} Barrier + */ + Barrier.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.Runnable.Barrier) + return object; + var message = new $root.google.cloud.batch.v1alpha.Runnable.Barrier(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a Barrier message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @static + * @param {google.cloud.batch.v1alpha.Runnable.Barrier} message Barrier + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Barrier.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this Barrier to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @instance + * @returns {Object.} JSON object + */ + Barrier.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Barrier + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.Runnable.Barrier + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Barrier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.Runnable.Barrier"; + }; + + return Barrier; + })(); + + return Runnable; })(); - v1alpha.Job = (function() { + v1alpha.TaskSpec = (function() { /** - * Properties of a Job. + * Properties of a TaskSpec. * @memberof google.cloud.batch.v1alpha - * @interface IJob - * @property {string|null} [name] Job name - * @property {string|null} [uid] Job uid - * @property {number|Long|null} [priority] Job priority - * @property {Array.|null} [taskGroups] Job taskGroups - * @property {google.cloud.batch.v1alpha.Job.SchedulingPolicy|null} [schedulingPolicy] Job schedulingPolicy - * @property {Array.|null} [dependencies] Job dependencies - * @property {google.cloud.batch.v1alpha.IAllocationPolicy|null} [allocationPolicy] Job allocationPolicy - * @property {Object.|null} [labels] Job labels - * @property {google.cloud.batch.v1alpha.IJobStatus|null} [status] Job status - * @property {google.cloud.batch.v1alpha.IJobNotification|null} [notification] Job notification - * @property {google.protobuf.ITimestamp|null} [createTime] Job createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Job updateTime - * @property {google.cloud.batch.v1alpha.ILogsPolicy|null} [logsPolicy] Job logsPolicy - * @property {Array.|null} [notifications] Job notifications + * @interface ITaskSpec + * @property {Array.|null} [runnables] TaskSpec runnables + * @property {google.cloud.batch.v1alpha.IComputeResource|null} [computeResource] TaskSpec computeResource + * @property {google.protobuf.IDuration|null} [maxRunDuration] TaskSpec maxRunDuration + * @property {number|null} [maxRetryCount] TaskSpec maxRetryCount + * @property {Array.|null} [lifecyclePolicies] TaskSpec lifecyclePolicies + * @property {Object.|null} [environments] TaskSpec environments + * @property {Array.|null} [volumes] TaskSpec volumes + * @property {google.cloud.batch.v1alpha.IEnvironment|null} [environment] TaskSpec environment */ /** - * Constructs a new Job. + * Constructs a new TaskSpec. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a Job. - * @implements IJob + * @classdesc Represents a TaskSpec. + * @implements ITaskSpec * @constructor - * @param {google.cloud.batch.v1alpha.IJob=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.ITaskSpec=} [properties] Properties to set */ - function Job(properties) { - this.taskGroups = []; - this.dependencies = []; - this.labels = {}; - this.notifications = []; + function TaskSpec(properties) { + this.runnables = []; + this.lifecyclePolicies = []; + this.environments = {}; + this.volumes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26286,242 +25119,174 @@ } /** - * Job name. - * @member {string} name - * @memberof google.cloud.batch.v1alpha.Job + * TaskSpec runnables. + * @member {Array.} runnables + * @memberof google.cloud.batch.v1alpha.TaskSpec * @instance */ - Job.prototype.name = ""; + TaskSpec.prototype.runnables = $util.emptyArray; /** - * Job uid. - * @member {string} uid - * @memberof google.cloud.batch.v1alpha.Job + * TaskSpec computeResource. + * @member {google.cloud.batch.v1alpha.IComputeResource|null|undefined} computeResource + * @memberof google.cloud.batch.v1alpha.TaskSpec * @instance */ - Job.prototype.uid = ""; + TaskSpec.prototype.computeResource = null; /** - * Job priority. - * @member {number|Long} priority - * @memberof google.cloud.batch.v1alpha.Job + * TaskSpec maxRunDuration. + * @member {google.protobuf.IDuration|null|undefined} maxRunDuration + * @memberof google.cloud.batch.v1alpha.TaskSpec * @instance */ - Job.prototype.priority = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Job taskGroups. - * @member {Array.} taskGroups - * @memberof google.cloud.batch.v1alpha.Job - * @instance - */ - Job.prototype.taskGroups = $util.emptyArray; - - /** - * Job schedulingPolicy. - * @member {google.cloud.batch.v1alpha.Job.SchedulingPolicy} schedulingPolicy - * @memberof google.cloud.batch.v1alpha.Job - * @instance - */ - Job.prototype.schedulingPolicy = 0; - - /** - * Job dependencies. - * @member {Array.} dependencies - * @memberof google.cloud.batch.v1alpha.Job - * @instance - */ - Job.prototype.dependencies = $util.emptyArray; - - /** - * Job allocationPolicy. - * @member {google.cloud.batch.v1alpha.IAllocationPolicy|null|undefined} allocationPolicy - * @memberof google.cloud.batch.v1alpha.Job - * @instance - */ - Job.prototype.allocationPolicy = null; - - /** - * Job labels. - * @member {Object.} labels - * @memberof google.cloud.batch.v1alpha.Job - * @instance - */ - Job.prototype.labels = $util.emptyObject; - - /** - * Job status. - * @member {google.cloud.batch.v1alpha.IJobStatus|null|undefined} status - * @memberof google.cloud.batch.v1alpha.Job - * @instance - */ - Job.prototype.status = null; + TaskSpec.prototype.maxRunDuration = null; /** - * Job notification. - * @member {google.cloud.batch.v1alpha.IJobNotification|null|undefined} notification - * @memberof google.cloud.batch.v1alpha.Job + * TaskSpec maxRetryCount. + * @member {number} maxRetryCount + * @memberof google.cloud.batch.v1alpha.TaskSpec * @instance */ - Job.prototype.notification = null; + TaskSpec.prototype.maxRetryCount = 0; /** - * Job createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.batch.v1alpha.Job + * TaskSpec lifecyclePolicies. + * @member {Array.} lifecyclePolicies + * @memberof google.cloud.batch.v1alpha.TaskSpec * @instance */ - Job.prototype.createTime = null; + TaskSpec.prototype.lifecyclePolicies = $util.emptyArray; /** - * Job updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.batch.v1alpha.Job + * TaskSpec environments. + * @member {Object.} environments + * @memberof google.cloud.batch.v1alpha.TaskSpec * @instance */ - Job.prototype.updateTime = null; + TaskSpec.prototype.environments = $util.emptyObject; /** - * Job logsPolicy. - * @member {google.cloud.batch.v1alpha.ILogsPolicy|null|undefined} logsPolicy - * @memberof google.cloud.batch.v1alpha.Job + * TaskSpec volumes. + * @member {Array.} volumes + * @memberof google.cloud.batch.v1alpha.TaskSpec * @instance */ - Job.prototype.logsPolicy = null; + TaskSpec.prototype.volumes = $util.emptyArray; /** - * Job notifications. - * @member {Array.} notifications - * @memberof google.cloud.batch.v1alpha.Job + * TaskSpec environment. + * @member {google.cloud.batch.v1alpha.IEnvironment|null|undefined} environment + * @memberof google.cloud.batch.v1alpha.TaskSpec * @instance */ - Job.prototype.notifications = $util.emptyArray; + TaskSpec.prototype.environment = null; /** - * Creates a new Job instance using the specified properties. + * Creates a new TaskSpec instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.Job + * @memberof google.cloud.batch.v1alpha.TaskSpec * @static - * @param {google.cloud.batch.v1alpha.IJob=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.Job} Job instance + * @param {google.cloud.batch.v1alpha.ITaskSpec=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.TaskSpec} TaskSpec instance */ - Job.create = function create(properties) { - return new Job(properties); + TaskSpec.create = function create(properties) { + return new TaskSpec(properties); }; /** - * Encodes the specified Job message. Does not implicitly {@link google.cloud.batch.v1alpha.Job.verify|verify} messages. + * Encodes the specified TaskSpec message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.Job + * @memberof google.cloud.batch.v1alpha.TaskSpec * @static - * @param {google.cloud.batch.v1alpha.IJob} message Job message or plain object to encode + * @param {google.cloud.batch.v1alpha.ITaskSpec} message TaskSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Job.encode = function encode(message, writer) { + TaskSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uid); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.priority); - if (message.taskGroups != null && message.taskGroups.length) - for (var i = 0; i < message.taskGroups.length; ++i) - $root.google.cloud.batch.v1alpha.TaskGroup.encode(message.taskGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.schedulingPolicy != null && Object.hasOwnProperty.call(message, "schedulingPolicy")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.schedulingPolicy); - if (message.dependencies != null && message.dependencies.length) - for (var i = 0; i < message.dependencies.length; ++i) - $root.google.cloud.batch.v1alpha.JobDependency.encode(message.dependencies[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.allocationPolicy != null && Object.hasOwnProperty.call(message, "allocationPolicy")) - $root.google.cloud.batch.v1alpha.AllocationPolicy.encode(message.allocationPolicy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.cloud.batch.v1alpha.JobStatus.encode(message.status, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) - $root.google.cloud.batch.v1alpha.JobNotification.encode(message.notification, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.logsPolicy != null && Object.hasOwnProperty.call(message, "logsPolicy")) - $root.google.cloud.batch.v1alpha.LogsPolicy.encode(message.logsPolicy, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.notifications != null && message.notifications.length) - for (var i = 0; i < message.notifications.length; ++i) - $root.google.cloud.batch.v1alpha.JobNotification.encode(message.notifications[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.computeResource != null && Object.hasOwnProperty.call(message, "computeResource")) + $root.google.cloud.batch.v1alpha.ComputeResource.encode(message.computeResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maxRunDuration != null && Object.hasOwnProperty.call(message, "maxRunDuration")) + $root.google.protobuf.Duration.encode(message.maxRunDuration, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.maxRetryCount != null && Object.hasOwnProperty.call(message, "maxRetryCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxRetryCount); + if (message.environments != null && Object.hasOwnProperty.call(message, "environments")) + for (var keys = Object.keys(message.environments), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environments[keys[i]]).ldelim(); + if (message.volumes != null && message.volumes.length) + for (var i = 0; i < message.volumes.length; ++i) + $root.google.cloud.batch.v1alpha.Volume.encode(message.volumes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.runnables != null && message.runnables.length) + for (var i = 0; i < message.runnables.length; ++i) + $root.google.cloud.batch.v1alpha.Runnable.encode(message.runnables[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.lifecyclePolicies != null && message.lifecyclePolicies.length) + for (var i = 0; i < message.lifecyclePolicies.length; ++i) + $root.google.cloud.batch.v1alpha.LifecyclePolicy.encode(message.lifecyclePolicies[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.batch.v1alpha.Environment.encode(message.environment, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Job.verify|verify} messages. + * Encodes the specified TaskSpec message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.Job + * @memberof google.cloud.batch.v1alpha.TaskSpec * @static - * @param {google.cloud.batch.v1alpha.IJob} message Job message or plain object to encode + * @param {google.cloud.batch.v1alpha.ITaskSpec} message TaskSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Job.encodeDelimited = function encodeDelimited(message, writer) { + TaskSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Job message from the specified reader or buffer. + * Decodes a TaskSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.Job + * @memberof google.cloud.batch.v1alpha.TaskSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.Job} Job + * @returns {google.cloud.batch.v1alpha.TaskSpec} TaskSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Job.decode = function decode(reader, length) { + TaskSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Job(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.TaskSpec(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.uid = reader.string(); + case 8: { + if (!(message.runnables && message.runnables.length)) + message.runnables = []; + message.runnables.push($root.google.cloud.batch.v1alpha.Runnable.decode(reader, reader.uint32())); break; } case 3: { - message.priority = reader.int64(); + message.computeResource = $root.google.cloud.batch.v1alpha.ComputeResource.decode(reader, reader.uint32()); break; } case 4: { - if (!(message.taskGroups && message.taskGroups.length)) - message.taskGroups = []; - message.taskGroups.push($root.google.cloud.batch.v1alpha.TaskGroup.decode(reader, reader.uint32())); + message.maxRunDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } case 5: { - message.schedulingPolicy = reader.int32(); - break; - } - case 6: { - if (!(message.dependencies && message.dependencies.length)) - message.dependencies = []; - message.dependencies.push($root.google.cloud.batch.v1alpha.JobDependency.decode(reader, reader.uint32())); + message.maxRetryCount = reader.int32(); break; } - case 7: { - message.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.decode(reader, reader.uint32()); + case 9: { + if (!(message.lifecyclePolicies && message.lifecyclePolicies.length)) + message.lifecyclePolicies = []; + message.lifecyclePolicies.push($root.google.cloud.batch.v1alpha.LifecyclePolicy.decode(reader, reader.uint32())); break; } - case 8: { - if (message.labels === $util.emptyObject) - message.labels = {}; + case 6: { + if (message.environments === $util.emptyObject) + message.environments = {}; var end2 = reader.uint32() + reader.pos; key = ""; value = ""; @@ -26539,33 +25304,17 @@ break; } } - message.labels[key] = value; + message.environments[key] = value; break; } - case 9: { - message.status = $root.google.cloud.batch.v1alpha.JobStatus.decode(reader, reader.uint32()); + case 7: { + if (!(message.volumes && message.volumes.length)) + message.volumes = []; + message.volumes.push($root.google.cloud.batch.v1alpha.Volume.decode(reader, reader.uint32())); break; } case 10: { - message.notification = $root.google.cloud.batch.v1alpha.JobNotification.decode(reader, reader.uint32()); - break; - } - case 11: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 12: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.logsPolicy = $root.google.cloud.batch.v1alpha.LogsPolicy.decode(reader, reader.uint32()); - break; - } - case 14: { - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.google.cloud.batch.v1alpha.JobNotification.decode(reader, reader.uint32())); + message.environment = $root.google.cloud.batch.v1alpha.Environment.decode(reader, reader.uint32()); break; } default: @@ -26577,373 +25326,263 @@ }; /** - * Decodes a Job message from the specified reader or buffer, length delimited. + * Decodes a TaskSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.Job + * @memberof google.cloud.batch.v1alpha.TaskSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.Job} Job + * @returns {google.cloud.batch.v1alpha.TaskSpec} TaskSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Job.decodeDelimited = function decodeDelimited(reader) { + TaskSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Job message. + * Verifies a TaskSpec message. * @function verify - * @memberof google.cloud.batch.v1alpha.Job + * @memberof google.cloud.batch.v1alpha.TaskSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Job.verify = function verify(message) { + TaskSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!$util.isString(message.uid)) - return "uid: string expected"; - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isInteger(message.priority) && !(message.priority && $util.isInteger(message.priority.low) && $util.isInteger(message.priority.high))) - return "priority: integer|Long expected"; - if (message.taskGroups != null && message.hasOwnProperty("taskGroups")) { - if (!Array.isArray(message.taskGroups)) - return "taskGroups: array expected"; - for (var i = 0; i < message.taskGroups.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.TaskGroup.verify(message.taskGroups[i]); - if (error) - return "taskGroups." + error; - } - } - if (message.schedulingPolicy != null && message.hasOwnProperty("schedulingPolicy")) - switch (message.schedulingPolicy) { - default: - return "schedulingPolicy: enum value expected"; - case 0: - case 1: - break; - } - if (message.dependencies != null && message.hasOwnProperty("dependencies")) { - if (!Array.isArray(message.dependencies)) - return "dependencies: array expected"; - for (var i = 0; i < message.dependencies.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.JobDependency.verify(message.dependencies[i]); + if (message.runnables != null && message.hasOwnProperty("runnables")) { + if (!Array.isArray(message.runnables)) + return "runnables: array expected"; + for (var i = 0; i < message.runnables.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.Runnable.verify(message.runnables[i]); if (error) - return "dependencies." + error; + return "runnables." + error; } } - if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.verify(message.allocationPolicy); - if (error) - return "allocationPolicy." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.cloud.batch.v1alpha.JobStatus.verify(message.status); - if (error) - return "status." + error; - } - if (message.notification != null && message.hasOwnProperty("notification")) { - var error = $root.google.cloud.batch.v1alpha.JobNotification.verify(message.notification); + if (message.computeResource != null && message.hasOwnProperty("computeResource")) { + var error = $root.google.cloud.batch.v1alpha.ComputeResource.verify(message.computeResource); if (error) - return "notification." + error; + return "computeResource." + error; } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) { + var error = $root.google.protobuf.Duration.verify(message.maxRunDuration); if (error) - return "createTime." + error; + return "maxRunDuration." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.maxRetryCount != null && message.hasOwnProperty("maxRetryCount")) + if (!$util.isInteger(message.maxRetryCount)) + return "maxRetryCount: integer expected"; + if (message.lifecyclePolicies != null && message.hasOwnProperty("lifecyclePolicies")) { + if (!Array.isArray(message.lifecyclePolicies)) + return "lifecyclePolicies: array expected"; + for (var i = 0; i < message.lifecyclePolicies.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.LifecyclePolicy.verify(message.lifecyclePolicies[i]); + if (error) + return "lifecyclePolicies." + error; + } } - if (message.logsPolicy != null && message.hasOwnProperty("logsPolicy")) { - var error = $root.google.cloud.batch.v1alpha.LogsPolicy.verify(message.logsPolicy); - if (error) - return "logsPolicy." + error; + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!$util.isObject(message.environments)) + return "environments: object expected"; + var key = Object.keys(message.environments); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.environments[key[i]])) + return "environments: string{k:string} expected"; } - if (message.notifications != null && message.hasOwnProperty("notifications")) { - if (!Array.isArray(message.notifications)) - return "notifications: array expected"; - for (var i = 0; i < message.notifications.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.JobNotification.verify(message.notifications[i]); + if (message.volumes != null && message.hasOwnProperty("volumes")) { + if (!Array.isArray(message.volumes)) + return "volumes: array expected"; + for (var i = 0; i < message.volumes.length; ++i) { + var error = $root.google.cloud.batch.v1alpha.Volume.verify(message.volumes[i]); if (error) - return "notifications." + error; + return "volumes." + error; } } + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.batch.v1alpha.Environment.verify(message.environment); + if (error) + return "environment." + error; + } return null; }; /** - * Creates a Job message from a plain object. Also converts values to their respective internal types. + * Creates a TaskSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.Job + * @memberof google.cloud.batch.v1alpha.TaskSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.Job} Job + * @returns {google.cloud.batch.v1alpha.TaskSpec} TaskSpec */ - Job.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.Job) + TaskSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.TaskSpec) return object; - var message = new $root.google.cloud.batch.v1alpha.Job(); - if (object.name != null) - message.name = String(object.name); - if (object.uid != null) - message.uid = String(object.uid); - if (object.priority != null) - if ($util.Long) - (message.priority = $util.Long.fromValue(object.priority)).unsigned = false; - else if (typeof object.priority === "string") - message.priority = parseInt(object.priority, 10); - else if (typeof object.priority === "number") - message.priority = object.priority; - else if (typeof object.priority === "object") - message.priority = new $util.LongBits(object.priority.low >>> 0, object.priority.high >>> 0).toNumber(); - if (object.taskGroups) { - if (!Array.isArray(object.taskGroups)) - throw TypeError(".google.cloud.batch.v1alpha.Job.taskGroups: array expected"); - message.taskGroups = []; - for (var i = 0; i < object.taskGroups.length; ++i) { - if (typeof object.taskGroups[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.taskGroups: object expected"); - message.taskGroups[i] = $root.google.cloud.batch.v1alpha.TaskGroup.fromObject(object.taskGroups[i]); + var message = new $root.google.cloud.batch.v1alpha.TaskSpec(); + if (object.runnables) { + if (!Array.isArray(object.runnables)) + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.runnables: array expected"); + message.runnables = []; + for (var i = 0; i < object.runnables.length; ++i) { + if (typeof object.runnables[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.runnables: object expected"); + message.runnables[i] = $root.google.cloud.batch.v1alpha.Runnable.fromObject(object.runnables[i]); } } - switch (object.schedulingPolicy) { - default: - if (typeof object.schedulingPolicy === "number") { - message.schedulingPolicy = object.schedulingPolicy; - break; - } - break; - case "SCHEDULING_POLICY_UNSPECIFIED": - case 0: - message.schedulingPolicy = 0; - break; - case "AS_SOON_AS_POSSIBLE": - case 1: - message.schedulingPolicy = 1; - break; + if (object.computeResource != null) { + if (typeof object.computeResource !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.computeResource: object expected"); + message.computeResource = $root.google.cloud.batch.v1alpha.ComputeResource.fromObject(object.computeResource); } - if (object.dependencies) { - if (!Array.isArray(object.dependencies)) - throw TypeError(".google.cloud.batch.v1alpha.Job.dependencies: array expected"); - message.dependencies = []; - for (var i = 0; i < object.dependencies.length; ++i) { - if (typeof object.dependencies[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.dependencies: object expected"); - message.dependencies[i] = $root.google.cloud.batch.v1alpha.JobDependency.fromObject(object.dependencies[i]); + if (object.maxRunDuration != null) { + if (typeof object.maxRunDuration !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.maxRunDuration: object expected"); + message.maxRunDuration = $root.google.protobuf.Duration.fromObject(object.maxRunDuration); + } + if (object.maxRetryCount != null) + message.maxRetryCount = object.maxRetryCount | 0; + if (object.lifecyclePolicies) { + if (!Array.isArray(object.lifecyclePolicies)) + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.lifecyclePolicies: array expected"); + message.lifecyclePolicies = []; + for (var i = 0; i < object.lifecyclePolicies.length; ++i) { + if (typeof object.lifecyclePolicies[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.lifecyclePolicies: object expected"); + message.lifecyclePolicies[i] = $root.google.cloud.batch.v1alpha.LifecyclePolicy.fromObject(object.lifecyclePolicies[i]); } } - if (object.allocationPolicy != null) { - if (typeof object.allocationPolicy !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.allocationPolicy: object expected"); - message.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.fromObject(object.allocationPolicy); + if (object.environments) { + if (typeof object.environments !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.environments: object expected"); + message.environments = {}; + for (var keys = Object.keys(object.environments), i = 0; i < keys.length; ++i) + message.environments[keys[i]] = String(object.environments[keys[i]]); } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + if (object.volumes) { + if (!Array.isArray(object.volumes)) + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.volumes: array expected"); + message.volumes = []; + for (var i = 0; i < object.volumes.length; ++i) { + if (typeof object.volumes[i] !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.volumes: object expected"); + message.volumes[i] = $root.google.cloud.batch.v1alpha.Volume.fromObject(object.volumes[i]); + } } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.status: object expected"); - message.status = $root.google.cloud.batch.v1alpha.JobStatus.fromObject(object.status); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.environment: object expected"); + message.environment = $root.google.cloud.batch.v1alpha.Environment.fromObject(object.environment); } - if (object.notification != null) { - if (typeof object.notification !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.notification: object expected"); - message.notification = $root.google.cloud.batch.v1alpha.JobNotification.fromObject(object.notification); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.logsPolicy != null) { - if (typeof object.logsPolicy !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.logsPolicy: object expected"); - message.logsPolicy = $root.google.cloud.batch.v1alpha.LogsPolicy.fromObject(object.logsPolicy); - } - if (object.notifications) { - if (!Array.isArray(object.notifications)) - throw TypeError(".google.cloud.batch.v1alpha.Job.notifications: array expected"); - message.notifications = []; - for (var i = 0; i < object.notifications.length; ++i) { - if (typeof object.notifications[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Job.notifications: object expected"); - message.notifications[i] = $root.google.cloud.batch.v1alpha.JobNotification.fromObject(object.notifications[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a Job message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.Job - * @static - * @param {google.cloud.batch.v1alpha.Job} message Job - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Job.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.taskGroups = []; - object.dependencies = []; - object.notifications = []; + return message; + }; + + /** + * Creates a plain object from a TaskSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.TaskSpec + * @static + * @param {google.cloud.batch.v1alpha.TaskSpec} message TaskSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TaskSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.volumes = []; + object.runnables = []; + object.lifecyclePolicies = []; } if (options.objects || options.defaults) - object.labels = {}; + object.environments = {}; if (options.defaults) { - object.name = ""; - object.uid = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.priority = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.priority = options.longs === String ? "0" : 0; - object.schedulingPolicy = options.enums === String ? "SCHEDULING_POLICY_UNSPECIFIED" : 0; - object.allocationPolicy = null; - object.status = null; - object.notification = null; - object.createTime = null; - object.updateTime = null; - object.logsPolicy = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = message.uid; - if (message.priority != null && message.hasOwnProperty("priority")) - if (typeof message.priority === "number") - object.priority = options.longs === String ? String(message.priority) : message.priority; - else - object.priority = options.longs === String ? $util.Long.prototype.toString.call(message.priority) : options.longs === Number ? new $util.LongBits(message.priority.low >>> 0, message.priority.high >>> 0).toNumber() : message.priority; - if (message.taskGroups && message.taskGroups.length) { - object.taskGroups = []; - for (var j = 0; j < message.taskGroups.length; ++j) - object.taskGroups[j] = $root.google.cloud.batch.v1alpha.TaskGroup.toObject(message.taskGroups[j], options); - } - if (message.schedulingPolicy != null && message.hasOwnProperty("schedulingPolicy")) - object.schedulingPolicy = options.enums === String ? $root.google.cloud.batch.v1alpha.Job.SchedulingPolicy[message.schedulingPolicy] === undefined ? message.schedulingPolicy : $root.google.cloud.batch.v1alpha.Job.SchedulingPolicy[message.schedulingPolicy] : message.schedulingPolicy; - if (message.dependencies && message.dependencies.length) { - object.dependencies = []; - for (var j = 0; j < message.dependencies.length; ++j) - object.dependencies[j] = $root.google.cloud.batch.v1alpha.JobDependency.toObject(message.dependencies[j], options); + object.computeResource = null; + object.maxRunDuration = null; + object.maxRetryCount = 0; + object.environment = null; } - if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) - object.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.toObject(message.allocationPolicy, options); + if (message.computeResource != null && message.hasOwnProperty("computeResource")) + object.computeResource = $root.google.cloud.batch.v1alpha.ComputeResource.toObject(message.computeResource, options); + if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) + object.maxRunDuration = $root.google.protobuf.Duration.toObject(message.maxRunDuration, options); + if (message.maxRetryCount != null && message.hasOwnProperty("maxRetryCount")) + object.maxRetryCount = message.maxRetryCount; var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; + if (message.environments && (keys2 = Object.keys(message.environments)).length) { + object.environments = {}; for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.environments[keys2[j]] = message.environments[keys2[j]]; } - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.cloud.batch.v1alpha.JobStatus.toObject(message.status, options); - if (message.notification != null && message.hasOwnProperty("notification")) - object.notification = $root.google.cloud.batch.v1alpha.JobNotification.toObject(message.notification, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.logsPolicy != null && message.hasOwnProperty("logsPolicy")) - object.logsPolicy = $root.google.cloud.batch.v1alpha.LogsPolicy.toObject(message.logsPolicy, options); - if (message.notifications && message.notifications.length) { - object.notifications = []; - for (var j = 0; j < message.notifications.length; ++j) - object.notifications[j] = $root.google.cloud.batch.v1alpha.JobNotification.toObject(message.notifications[j], options); + if (message.volumes && message.volumes.length) { + object.volumes = []; + for (var j = 0; j < message.volumes.length; ++j) + object.volumes[j] = $root.google.cloud.batch.v1alpha.Volume.toObject(message.volumes[j], options); + } + if (message.runnables && message.runnables.length) { + object.runnables = []; + for (var j = 0; j < message.runnables.length; ++j) + object.runnables[j] = $root.google.cloud.batch.v1alpha.Runnable.toObject(message.runnables[j], options); } + if (message.lifecyclePolicies && message.lifecyclePolicies.length) { + object.lifecyclePolicies = []; + for (var j = 0; j < message.lifecyclePolicies.length; ++j) + object.lifecyclePolicies[j] = $root.google.cloud.batch.v1alpha.LifecyclePolicy.toObject(message.lifecyclePolicies[j], options); + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.batch.v1alpha.Environment.toObject(message.environment, options); return object; }; /** - * Converts this Job to JSON. + * Converts this TaskSpec to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.Job + * @memberof google.cloud.batch.v1alpha.TaskSpec * @instance * @returns {Object.} JSON object */ - Job.prototype.toJSON = function toJSON() { + TaskSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Job + * Gets the default type url for TaskSpec * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.Job + * @memberof google.cloud.batch.v1alpha.TaskSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Job.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TaskSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.Job"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.TaskSpec"; }; - /** - * SchedulingPolicy enum. - * @name google.cloud.batch.v1alpha.Job.SchedulingPolicy - * @enum {number} - * @property {number} SCHEDULING_POLICY_UNSPECIFIED=0 SCHEDULING_POLICY_UNSPECIFIED value - * @property {number} AS_SOON_AS_POSSIBLE=1 AS_SOON_AS_POSSIBLE value - */ - Job.SchedulingPolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SCHEDULING_POLICY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AS_SOON_AS_POSSIBLE"] = 1; - return values; - })(); - - return Job; + return TaskSpec; })(); - v1alpha.LogsPolicy = (function() { + v1alpha.LifecyclePolicy = (function() { /** - * Properties of a LogsPolicy. + * Properties of a LifecyclePolicy. * @memberof google.cloud.batch.v1alpha - * @interface ILogsPolicy - * @property {google.cloud.batch.v1alpha.LogsPolicy.Destination|null} [destination] LogsPolicy destination - * @property {string|null} [logsPath] LogsPolicy logsPath + * @interface ILifecyclePolicy + * @property {google.cloud.batch.v1alpha.LifecyclePolicy.Action|null} [action] LifecyclePolicy action + * @property {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition|null} [actionCondition] LifecyclePolicy actionCondition */ /** - * Constructs a new LogsPolicy. + * Constructs a new LifecyclePolicy. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a LogsPolicy. - * @implements ILogsPolicy + * @classdesc Represents a LifecyclePolicy. + * @implements ILifecyclePolicy * @constructor - * @param {google.cloud.batch.v1alpha.ILogsPolicy=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.ILifecyclePolicy=} [properties] Properties to set */ - function LogsPolicy(properties) { + function LifecyclePolicy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26951,89 +25590,89 @@ } /** - * LogsPolicy destination. - * @member {google.cloud.batch.v1alpha.LogsPolicy.Destination} destination - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * LifecyclePolicy action. + * @member {google.cloud.batch.v1alpha.LifecyclePolicy.Action} action + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @instance */ - LogsPolicy.prototype.destination = 0; + LifecyclePolicy.prototype.action = 0; /** - * LogsPolicy logsPath. - * @member {string} logsPath - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * LifecyclePolicy actionCondition. + * @member {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition|null|undefined} actionCondition + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @instance */ - LogsPolicy.prototype.logsPath = ""; + LifecyclePolicy.prototype.actionCondition = null; /** - * Creates a new LogsPolicy instance using the specified properties. + * Creates a new LifecyclePolicy instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @static - * @param {google.cloud.batch.v1alpha.ILogsPolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.LogsPolicy} LogsPolicy instance + * @param {google.cloud.batch.v1alpha.ILifecyclePolicy=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.LifecyclePolicy} LifecyclePolicy instance */ - LogsPolicy.create = function create(properties) { - return new LogsPolicy(properties); + LifecyclePolicy.create = function create(properties) { + return new LifecyclePolicy(properties); }; /** - * Encodes the specified LogsPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.LogsPolicy.verify|verify} messages. + * Encodes the specified LifecyclePolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @static - * @param {google.cloud.batch.v1alpha.ILogsPolicy} message LogsPolicy message or plain object to encode + * @param {google.cloud.batch.v1alpha.ILifecyclePolicy} message LifecyclePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LogsPolicy.encode = function encode(message, writer) { + LifecyclePolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.destination); - if (message.logsPath != null && Object.hasOwnProperty.call(message, "logsPath")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.logsPath); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.action); + if (message.actionCondition != null && Object.hasOwnProperty.call(message, "actionCondition")) + $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.encode(message.actionCondition, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified LogsPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LogsPolicy.verify|verify} messages. + * Encodes the specified LifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @static - * @param {google.cloud.batch.v1alpha.ILogsPolicy} message LogsPolicy message or plain object to encode + * @param {google.cloud.batch.v1alpha.ILifecyclePolicy} message LifecyclePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LogsPolicy.encodeDelimited = function encodeDelimited(message, writer) { + LifecyclePolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LogsPolicy message from the specified reader or buffer. + * Decodes a LifecyclePolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.LogsPolicy} LogsPolicy + * @returns {google.cloud.batch.v1alpha.LifecyclePolicy} LifecyclePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LogsPolicy.decode = function decode(reader, length) { + LifecyclePolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.LogsPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.LifecyclePolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.destination = reader.int32(); + message.action = reader.int32(); break; } case 2: { - message.logsPath = reader.string(); + message.actionCondition = $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.decode(reader, reader.uint32()); break; } default: @@ -27045,268 +25684,494 @@ }; /** - * Decodes a LogsPolicy message from the specified reader or buffer, length delimited. + * Decodes a LifecyclePolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.LogsPolicy} LogsPolicy + * @returns {google.cloud.batch.v1alpha.LifecyclePolicy} LifecyclePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LogsPolicy.decodeDelimited = function decodeDelimited(reader) { + LifecyclePolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LogsPolicy message. + * Verifies a LifecyclePolicy message. * @function verify - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LogsPolicy.verify = function verify(message) { + LifecyclePolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.destination != null && message.hasOwnProperty("destination")) - switch (message.destination) { + if (message.action != null && message.hasOwnProperty("action")) + switch (message.action) { default: - return "destination: enum value expected"; + return "action: enum value expected"; case 0: case 1: case 2: break; } - if (message.logsPath != null && message.hasOwnProperty("logsPath")) - if (!$util.isString(message.logsPath)) - return "logsPath: string expected"; + if (message.actionCondition != null && message.hasOwnProperty("actionCondition")) { + var error = $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify(message.actionCondition); + if (error) + return "actionCondition." + error; + } return null; }; /** - * Creates a LogsPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a LifecyclePolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.LogsPolicy} LogsPolicy + * @returns {google.cloud.batch.v1alpha.LifecyclePolicy} LifecyclePolicy */ - LogsPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.LogsPolicy) + LifecyclePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.LifecyclePolicy) return object; - var message = new $root.google.cloud.batch.v1alpha.LogsPolicy(); - switch (object.destination) { + var message = new $root.google.cloud.batch.v1alpha.LifecyclePolicy(); + switch (object.action) { default: - if (typeof object.destination === "number") { - message.destination = object.destination; + if (typeof object.action === "number") { + message.action = object.action; break; } break; - case "DESTINATION_UNSPECIFIED": + case "ACTION_UNSPECIFIED": case 0: - message.destination = 0; + message.action = 0; break; - case "CLOUD_LOGGING": + case "RETRY_TASK": case 1: - message.destination = 1; + message.action = 1; break; - case "PATH": + case "FAIL_TASK": case 2: - message.destination = 2; + message.action = 2; break; } - if (object.logsPath != null) - message.logsPath = String(object.logsPath); + if (object.actionCondition != null) { + if (typeof object.actionCondition !== "object") + throw TypeError(".google.cloud.batch.v1alpha.LifecyclePolicy.actionCondition: object expected"); + message.actionCondition = $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.fromObject(object.actionCondition); + } return message; }; /** - * Creates a plain object from a LogsPolicy message. Also converts values to other types if specified. + * Creates a plain object from a LifecyclePolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @static - * @param {google.cloud.batch.v1alpha.LogsPolicy} message LogsPolicy + * @param {google.cloud.batch.v1alpha.LifecyclePolicy} message LifecyclePolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LogsPolicy.toObject = function toObject(message, options) { + LifecyclePolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.destination = options.enums === String ? "DESTINATION_UNSPECIFIED" : 0; - object.logsPath = ""; + object.action = options.enums === String ? "ACTION_UNSPECIFIED" : 0; + object.actionCondition = null; } - if (message.destination != null && message.hasOwnProperty("destination")) - object.destination = options.enums === String ? $root.google.cloud.batch.v1alpha.LogsPolicy.Destination[message.destination] === undefined ? message.destination : $root.google.cloud.batch.v1alpha.LogsPolicy.Destination[message.destination] : message.destination; - if (message.logsPath != null && message.hasOwnProperty("logsPath")) - object.logsPath = message.logsPath; + if (message.action != null && message.hasOwnProperty("action")) + object.action = options.enums === String ? $root.google.cloud.batch.v1alpha.LifecyclePolicy.Action[message.action] === undefined ? message.action : $root.google.cloud.batch.v1alpha.LifecyclePolicy.Action[message.action] : message.action; + if (message.actionCondition != null && message.hasOwnProperty("actionCondition")) + object.actionCondition = $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.toObject(message.actionCondition, options); return object; }; /** - * Converts this LogsPolicy to JSON. + * Converts this LifecyclePolicy to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @instance * @returns {Object.} JSON object */ - LogsPolicy.prototype.toJSON = function toJSON() { + LifecyclePolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LogsPolicy + * Gets the default type url for LifecyclePolicy * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.LogsPolicy + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LogsPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LifecyclePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.LogsPolicy"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.LifecyclePolicy"; }; - /** - * Destination enum. - * @name google.cloud.batch.v1alpha.LogsPolicy.Destination - * @enum {number} - * @property {number} DESTINATION_UNSPECIFIED=0 DESTINATION_UNSPECIFIED value - * @property {number} CLOUD_LOGGING=1 CLOUD_LOGGING value - * @property {number} PATH=2 PATH value - */ - LogsPolicy.Destination = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DESTINATION_UNSPECIFIED"] = 0; - values[valuesById[1] = "CLOUD_LOGGING"] = 1; - values[valuesById[2] = "PATH"] = 2; - return values; - })(); - - return LogsPolicy; - })(); - - v1alpha.JobDependency = (function() { + LifecyclePolicy.ActionCondition = (function() { - /** - * Properties of a JobDependency. - * @memberof google.cloud.batch.v1alpha - * @interface IJobDependency - * @property {Object.|null} [items] JobDependency items - */ + /** + * Properties of an ActionCondition. + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy + * @interface IActionCondition + * @property {Array.|null} [exitCodes] ActionCondition exitCodes + */ - /** - * Constructs a new JobDependency. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a JobDependency. - * @implements IJobDependency - * @constructor - * @param {google.cloud.batch.v1alpha.IJobDependency=} [properties] Properties to set - */ - function JobDependency(properties) { - this.items = {}; - 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]]; - } + /** + * Constructs a new ActionCondition. + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy + * @classdesc Represents an ActionCondition. + * @implements IActionCondition + * @constructor + * @param {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition=} [properties] Properties to set + */ + function ActionCondition(properties) { + this.exitCodes = []; + 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]]; + } - /** - * JobDependency items. - * @member {Object.} items - * @memberof google.cloud.batch.v1alpha.JobDependency - * @instance - */ - JobDependency.prototype.items = $util.emptyObject; + /** + * ActionCondition exitCodes. + * @member {Array.} exitCodes + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @instance + */ + ActionCondition.prototype.exitCodes = $util.emptyArray; - /** - * Creates a new JobDependency instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.JobDependency - * @static - * @param {google.cloud.batch.v1alpha.IJobDependency=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.JobDependency} JobDependency instance - */ - JobDependency.create = function create(properties) { - return new JobDependency(properties); - }; + /** + * Creates a new ActionCondition instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @static + * @param {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} ActionCondition instance + */ + ActionCondition.create = function create(properties) { + return new ActionCondition(properties); + }; - /** - * Encodes the specified JobDependency message. Does not implicitly {@link google.cloud.batch.v1alpha.JobDependency.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.JobDependency - * @static - * @param {google.cloud.batch.v1alpha.IJobDependency} message JobDependency message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - JobDependency.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.items != null && Object.hasOwnProperty.call(message, "items")) - for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.items[keys[i]]).ldelim(); - return writer; - }; + /** + * Encodes the specified ActionCondition message. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @static + * @param {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition} message ActionCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActionCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exitCodes != null && message.exitCodes.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.exitCodes.length; ++i) + writer.int32(message.exitCodes[i]); + writer.ldelim(); + } + return writer; + }; - /** - * Encodes the specified JobDependency message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobDependency.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.JobDependency - * @static - * @param {google.cloud.batch.v1alpha.IJobDependency} message JobDependency message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - JobDependency.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ActionCondition message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @static + * @param {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition} message ActionCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActionCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a JobDependency message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.JobDependency - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.JobDependency} JobDependency - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + /** + * Decodes an ActionCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} ActionCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActionCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.exitCodes && message.exitCodes.length)) + message.exitCodes = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.exitCodes.push(reader.int32()); + } else + message.exitCodes.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ActionCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} ActionCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActionCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ActionCondition message. + * @function verify + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActionCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exitCodes != null && message.hasOwnProperty("exitCodes")) { + if (!Array.isArray(message.exitCodes)) + return "exitCodes: array expected"; + for (var i = 0; i < message.exitCodes.length; ++i) + if (!$util.isInteger(message.exitCodes[i])) + return "exitCodes: integer[] expected"; + } + return null; + }; + + /** + * Creates an ActionCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} ActionCondition + */ + ActionCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition) + return object; + var message = new $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition(); + if (object.exitCodes) { + if (!Array.isArray(object.exitCodes)) + throw TypeError(".google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.exitCodes: array expected"); + message.exitCodes = []; + for (var i = 0; i < object.exitCodes.length; ++i) + message.exitCodes[i] = object.exitCodes[i] | 0; + } + return message; + }; + + /** + * Creates a plain object from an ActionCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @static + * @param {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} message ActionCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ActionCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.exitCodes = []; + if (message.exitCodes && message.exitCodes.length) { + object.exitCodes = []; + for (var j = 0; j < message.exitCodes.length; ++j) + object.exitCodes[j] = message.exitCodes[j]; + } + return object; + }; + + /** + * Converts this ActionCondition to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @instance + * @returns {Object.} JSON object + */ + ActionCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ActionCondition + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ActionCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition"; + }; + + return ActionCondition; + })(); + + /** + * Action enum. + * @name google.cloud.batch.v1alpha.LifecyclePolicy.Action + * @enum {number} + * @property {number} ACTION_UNSPECIFIED=0 ACTION_UNSPECIFIED value + * @property {number} RETRY_TASK=1 RETRY_TASK value + * @property {number} FAIL_TASK=2 FAIL_TASK value */ - JobDependency.decode = function decode(reader, length) { + LifecyclePolicy.Action = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "RETRY_TASK"] = 1; + values[valuesById[2] = "FAIL_TASK"] = 2; + return values; + })(); + + return LifecyclePolicy; + })(); + + v1alpha.Task = (function() { + + /** + * Properties of a Task. + * @memberof google.cloud.batch.v1alpha + * @interface ITask + * @property {string|null} [name] Task name + * @property {google.cloud.batch.v1alpha.ITaskStatus|null} [status] Task status + */ + + /** + * Constructs a new Task. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a Task. + * @implements ITask + * @constructor + * @param {google.cloud.batch.v1alpha.ITask=} [properties] Properties to set + */ + function Task(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]]; + } + + /** + * Task name. + * @member {string} name + * @memberof google.cloud.batch.v1alpha.Task + * @instance + */ + Task.prototype.name = ""; + + /** + * Task status. + * @member {google.cloud.batch.v1alpha.ITaskStatus|null|undefined} status + * @memberof google.cloud.batch.v1alpha.Task + * @instance + */ + Task.prototype.status = null; + + /** + * Creates a new Task instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.Task + * @static + * @param {google.cloud.batch.v1alpha.ITask=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.Task} Task instance + */ + Task.create = function create(properties) { + return new Task(properties); + }; + + /** + * Encodes the specified Task message. Does not implicitly {@link google.cloud.batch.v1alpha.Task.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.Task + * @static + * @param {google.cloud.batch.v1alpha.ITask} message Task message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Task.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.cloud.batch.v1alpha.TaskStatus.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Task message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Task.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.Task + * @static + * @param {google.cloud.batch.v1alpha.ITask} message Task message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Task.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Task message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.Task + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.Task} Task + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Task.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobDependency(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Task(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.items === $util.emptyObject) - message.items = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.int32(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.items[key] = value; + message.name = reader.string(); + break; + } + case 2: { + message.status = $root.google.cloud.batch.v1alpha.TaskStatus.decode(reader, reader.uint32()); break; } default: @@ -27318,189 +26183,140 @@ }; /** - * Decodes a JobDependency message from the specified reader or buffer, length delimited. + * Decodes a Task message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.JobDependency + * @memberof google.cloud.batch.v1alpha.Task * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.JobDependency} JobDependency + * @returns {google.cloud.batch.v1alpha.Task} Task * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobDependency.decodeDelimited = function decodeDelimited(reader) { + Task.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a JobDependency message. + * Verifies a Task message. * @function verify - * @memberof google.cloud.batch.v1alpha.JobDependency + * @memberof google.cloud.batch.v1alpha.Task * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - JobDependency.verify = function verify(message) { + Task.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.items != null && message.hasOwnProperty("items")) { - if (!$util.isObject(message.items)) - return "items: object expected"; - var key = Object.keys(message.items); - for (var i = 0; i < key.length; ++i) - switch (message.items[key[i]]) { - default: - return "items: enum value{k:string} expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.cloud.batch.v1alpha.TaskStatus.verify(message.status); + if (error) + return "status." + error; } return null; }; /** - * Creates a JobDependency message from a plain object. Also converts values to their respective internal types. + * Creates a Task message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.JobDependency + * @memberof google.cloud.batch.v1alpha.Task * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.JobDependency} JobDependency + * @returns {google.cloud.batch.v1alpha.Task} Task */ - JobDependency.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.JobDependency) + Task.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.Task) return object; - var message = new $root.google.cloud.batch.v1alpha.JobDependency(); - if (object.items) { - if (typeof object.items !== "object") - throw TypeError(".google.cloud.batch.v1alpha.JobDependency.items: object expected"); - message.items = {}; - for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) - switch (object.items[keys[i]]) { - default: - if (typeof object.items[keys[i]] === "number") { - message.items[keys[i]] = object.items[keys[i]]; - break; - } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.items[keys[i]] = 0; - break; - case "SUCCEEDED": - case 1: - message.items[keys[i]] = 1; - break; - case "FAILED": - case 2: - message.items[keys[i]] = 2; - break; - case "FINISHED": - case 3: - message.items[keys[i]] = 3; - break; - } + var message = new $root.google.cloud.batch.v1alpha.Task(); + if (object.name != null) + message.name = String(object.name); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Task.status: object expected"); + message.status = $root.google.cloud.batch.v1alpha.TaskStatus.fromObject(object.status); } return message; }; /** - * Creates a plain object from a JobDependency message. Also converts values to other types if specified. + * Creates a plain object from a Task message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.JobDependency + * @memberof google.cloud.batch.v1alpha.Task * @static - * @param {google.cloud.batch.v1alpha.JobDependency} message JobDependency + * @param {google.cloud.batch.v1alpha.Task} message Task * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - JobDependency.toObject = function toObject(message, options) { + Task.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.items = {}; - var keys2; - if (message.items && (keys2 = Object.keys(message.items)).length) { - object.items = {}; - for (var j = 0; j < keys2.length; ++j) - object.items[keys2[j]] = options.enums === String ? $root.google.cloud.batch.v1alpha.JobDependency.Type[message.items[keys2[j]]] === undefined ? message.items[keys2[j]] : $root.google.cloud.batch.v1alpha.JobDependency.Type[message.items[keys2[j]]] : message.items[keys2[j]]; + if (options.defaults) { + object.name = ""; + object.status = null; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.cloud.batch.v1alpha.TaskStatus.toObject(message.status, options); return object; }; /** - * Converts this JobDependency to JSON. + * Converts this Task to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.JobDependency + * @memberof google.cloud.batch.v1alpha.Task * @instance * @returns {Object.} JSON object */ - JobDependency.prototype.toJSON = function toJSON() { + Task.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for JobDependency + * Gets the default type url for Task * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.JobDependency + * @memberof google.cloud.batch.v1alpha.Task * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - JobDependency.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Task.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobDependency"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.Task"; }; - /** - * Type enum. - * @name google.cloud.batch.v1alpha.JobDependency.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} SUCCEEDED=1 SUCCEEDED value - * @property {number} FAILED=2 FAILED value - * @property {number} FINISHED=3 FINISHED value - */ - JobDependency.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "SUCCEEDED"] = 1; - values[valuesById[2] = "FAILED"] = 2; - values[valuesById[3] = "FINISHED"] = 3; - return values; - })(); - - return JobDependency; + return Task; })(); - v1alpha.JobStatus = (function() { + v1alpha.Environment = (function() { /** - * Properties of a JobStatus. + * Properties of an Environment. * @memberof google.cloud.batch.v1alpha - * @interface IJobStatus - * @property {google.cloud.batch.v1alpha.JobStatus.State|null} [state] JobStatus state - * @property {Array.|null} [statusEvents] JobStatus statusEvents - * @property {Object.|null} [taskGroups] JobStatus taskGroups - * @property {google.protobuf.IDuration|null} [runDuration] JobStatus runDuration + * @interface IEnvironment + * @property {Object.|null} [variables] Environment variables + * @property {Object.|null} [secretVariables] Environment secretVariables + * @property {google.cloud.batch.v1alpha.Environment.IKMSEnvMap|null} [encryptedVariables] Environment encryptedVariables */ /** - * Constructs a new JobStatus. + * Constructs a new Environment. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a JobStatus. - * @implements IJobStatus + * @classdesc Represents an Environment. + * @implements IEnvironment * @constructor - * @param {google.cloud.batch.v1alpha.IJobStatus=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IEnvironment=} [properties] Properties to set */ - function JobStatus(properties) { - this.statusEvents = []; - this.taskGroups = {}; + function Environment(properties) { + this.variables = {}; + this.secretVariables = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27508,123 +26324,124 @@ } /** - * JobStatus state. - * @member {google.cloud.batch.v1alpha.JobStatus.State} state - * @memberof google.cloud.batch.v1alpha.JobStatus - * @instance - */ - JobStatus.prototype.state = 0; - - /** - * JobStatus statusEvents. - * @member {Array.} statusEvents - * @memberof google.cloud.batch.v1alpha.JobStatus + * Environment variables. + * @member {Object.} variables + * @memberof google.cloud.batch.v1alpha.Environment * @instance */ - JobStatus.prototype.statusEvents = $util.emptyArray; + Environment.prototype.variables = $util.emptyObject; /** - * JobStatus taskGroups. - * @member {Object.} taskGroups - * @memberof google.cloud.batch.v1alpha.JobStatus + * Environment secretVariables. + * @member {Object.} secretVariables + * @memberof google.cloud.batch.v1alpha.Environment * @instance */ - JobStatus.prototype.taskGroups = $util.emptyObject; + Environment.prototype.secretVariables = $util.emptyObject; /** - * JobStatus runDuration. - * @member {google.protobuf.IDuration|null|undefined} runDuration - * @memberof google.cloud.batch.v1alpha.JobStatus + * Environment encryptedVariables. + * @member {google.cloud.batch.v1alpha.Environment.IKMSEnvMap|null|undefined} encryptedVariables + * @memberof google.cloud.batch.v1alpha.Environment * @instance */ - JobStatus.prototype.runDuration = null; + Environment.prototype.encryptedVariables = null; /** - * Creates a new JobStatus instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @static - * @param {google.cloud.batch.v1alpha.IJobStatus=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.JobStatus} JobStatus instance + * @param {google.cloud.batch.v1alpha.IEnvironment=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.Environment} Environment instance */ - JobStatus.create = function create(properties) { - return new JobStatus(properties); + Environment.create = function create(properties) { + return new Environment(properties); }; /** - * Encodes the specified JobStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.verify|verify} messages. + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @static - * @param {google.cloud.batch.v1alpha.IJobStatus} message JobStatus message or plain object to encode + * @param {google.cloud.batch.v1alpha.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JobStatus.encode = function encode(message, writer) { + Environment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.statusEvents != null && message.statusEvents.length) - for (var i = 0; i < message.statusEvents.length; ++i) - $root.google.cloud.batch.v1alpha.StatusEvent.encode(message.statusEvents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.taskGroups != null && Object.hasOwnProperty.call(message, "taskGroups")) - for (var keys = Object.keys(message.taskGroups), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.encode(message.taskGroups[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.runDuration != null && Object.hasOwnProperty.call(message, "runDuration")) - $root.google.protobuf.Duration.encode(message.runDuration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.variables != null && Object.hasOwnProperty.call(message, "variables")) + for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.variables[keys[i]]).ldelim(); + if (message.secretVariables != null && Object.hasOwnProperty.call(message, "secretVariables")) + for (var keys = Object.keys(message.secretVariables), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.secretVariables[keys[i]]).ldelim(); + if (message.encryptedVariables != null && Object.hasOwnProperty.call(message, "encryptedVariables")) + $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.encode(message.encryptedVariables, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified JobStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.verify|verify} messages. + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @static - * @param {google.cloud.batch.v1alpha.IJobStatus} message JobStatus message or plain object to encode + * @param {google.cloud.batch.v1alpha.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JobStatus.encodeDelimited = function encodeDelimited(message, writer) { + Environment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a JobStatus message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.JobStatus} JobStatus + * @returns {google.cloud.batch.v1alpha.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobStatus.decode = function decode(reader, length) { + Environment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobStatus(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Environment(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.state = reader.int32(); + if (message.variables === $util.emptyObject) + message.variables = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.variables[key] = value; break; } case 2: { - if (!(message.statusEvents && message.statusEvents.length)) - message.statusEvents = []; - message.statusEvents.push($root.google.cloud.batch.v1alpha.StatusEvent.decode(reader, reader.uint32())); - break; - } - case 4: { - if (message.taskGroups === $util.emptyObject) - message.taskGroups = {}; + if (message.secretVariables === $util.emptyObject) + message.secretVariables = {}; var end2 = reader.uint32() + reader.pos; key = ""; - value = null; + value = ""; while (reader.pos < end2) { var tag2 = reader.uint32(); switch (tag2 >>> 3) { @@ -27632,18 +26449,18 @@ key = reader.string(); break; case 2: - value = $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.decode(reader, reader.uint32()); + value = reader.string(); break; default: reader.skipType(tag2 & 7); break; } } - message.taskGroups[key] = value; + message.secretVariables[key] = value; break; } - case 5: { - message.runDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + case 3: { + message.encryptedVariables = $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.decode(reader, reader.uint32()); break; } default: @@ -27655,233 +26472,170 @@ }; /** - * Decodes a JobStatus message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.JobStatus} JobStatus + * @returns {google.cloud.batch.v1alpha.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobStatus.decodeDelimited = function decodeDelimited(reader) { + Environment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a JobStatus message. + * Verifies an Environment message. * @function verify - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - JobStatus.verify = function verify(message) { + Environment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.statusEvents != null && message.hasOwnProperty("statusEvents")) { - if (!Array.isArray(message.statusEvents)) - return "statusEvents: array expected"; - for (var i = 0; i < message.statusEvents.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.StatusEvent.verify(message.statusEvents[i]); - if (error) - return "statusEvents." + error; - } + if (message.variables != null && message.hasOwnProperty("variables")) { + if (!$util.isObject(message.variables)) + return "variables: object expected"; + var key = Object.keys(message.variables); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.variables[key[i]])) + return "variables: string{k:string} expected"; } - if (message.taskGroups != null && message.hasOwnProperty("taskGroups")) { - if (!$util.isObject(message.taskGroups)) - return "taskGroups: object expected"; - var key = Object.keys(message.taskGroups); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify(message.taskGroups[key[i]]); - if (error) - return "taskGroups." + error; - } + if (message.secretVariables != null && message.hasOwnProperty("secretVariables")) { + if (!$util.isObject(message.secretVariables)) + return "secretVariables: object expected"; + var key = Object.keys(message.secretVariables); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.secretVariables[key[i]])) + return "secretVariables: string{k:string} expected"; } - if (message.runDuration != null && message.hasOwnProperty("runDuration")) { - var error = $root.google.protobuf.Duration.verify(message.runDuration); + if (message.encryptedVariables != null && message.hasOwnProperty("encryptedVariables")) { + var error = $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify(message.encryptedVariables); if (error) - return "runDuration." + error; + return "encryptedVariables." + error; } return null; }; /** - * Creates a JobStatus message from a plain object. Also converts values to their respective internal types. + * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.JobStatus} JobStatus + * @returns {google.cloud.batch.v1alpha.Environment} Environment */ - JobStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.JobStatus) + Environment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.Environment) return object; - var message = new $root.google.cloud.batch.v1alpha.JobStatus(); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "QUEUED": - case 1: - message.state = 1; - break; - case "SCHEDULED": - case 2: - message.state = 2; - break; - case "RUNNING": - case 3: - message.state = 3; - break; - case "SUCCEEDED": - case 4: - message.state = 4; - break; - case "FAILED": - case 5: - message.state = 5; - break; - case "DELETION_IN_PROGRESS": - case 6: - message.state = 6; - break; - } - if (object.statusEvents) { - if (!Array.isArray(object.statusEvents)) - throw TypeError(".google.cloud.batch.v1alpha.JobStatus.statusEvents: array expected"); - message.statusEvents = []; - for (var i = 0; i < object.statusEvents.length; ++i) { - if (typeof object.statusEvents[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.JobStatus.statusEvents: object expected"); - message.statusEvents[i] = $root.google.cloud.batch.v1alpha.StatusEvent.fromObject(object.statusEvents[i]); - } + var message = new $root.google.cloud.batch.v1alpha.Environment(); + if (object.variables) { + if (typeof object.variables !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Environment.variables: object expected"); + message.variables = {}; + for (var keys = Object.keys(object.variables), i = 0; i < keys.length; ++i) + message.variables[keys[i]] = String(object.variables[keys[i]]); } - if (object.taskGroups) { - if (typeof object.taskGroups !== "object") - throw TypeError(".google.cloud.batch.v1alpha.JobStatus.taskGroups: object expected"); - message.taskGroups = {}; - for (var keys = Object.keys(object.taskGroups), i = 0; i < keys.length; ++i) { - if (typeof object.taskGroups[keys[i]] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.JobStatus.taskGroups: object expected"); - message.taskGroups[keys[i]] = $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.fromObject(object.taskGroups[keys[i]]); - } + if (object.secretVariables) { + if (typeof object.secretVariables !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Environment.secretVariables: object expected"); + message.secretVariables = {}; + for (var keys = Object.keys(object.secretVariables), i = 0; i < keys.length; ++i) + message.secretVariables[keys[i]] = String(object.secretVariables[keys[i]]); } - if (object.runDuration != null) { - if (typeof object.runDuration !== "object") - throw TypeError(".google.cloud.batch.v1alpha.JobStatus.runDuration: object expected"); - message.runDuration = $root.google.protobuf.Duration.fromObject(object.runDuration); + if (object.encryptedVariables != null) { + if (typeof object.encryptedVariables !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Environment.encryptedVariables: object expected"); + message.encryptedVariables = $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.fromObject(object.encryptedVariables); } return message; }; /** - * Creates a plain object from a JobStatus message. Also converts values to other types if specified. + * Creates a plain object from an Environment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @static - * @param {google.cloud.batch.v1alpha.JobStatus} message JobStatus + * @param {google.cloud.batch.v1alpha.Environment} message Environment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - JobStatus.toObject = function toObject(message, options) { + Environment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.statusEvents = []; - if (options.objects || options.defaults) - object.taskGroups = {}; - if (options.defaults) { - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.runDuration = null; - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.batch.v1alpha.JobStatus.State[message.state] === undefined ? message.state : $root.google.cloud.batch.v1alpha.JobStatus.State[message.state] : message.state; - if (message.statusEvents && message.statusEvents.length) { - object.statusEvents = []; - for (var j = 0; j < message.statusEvents.length; ++j) - object.statusEvents[j] = $root.google.cloud.batch.v1alpha.StatusEvent.toObject(message.statusEvents[j], options); + if (options.objects || options.defaults) { + object.variables = {}; + object.secretVariables = {}; } + if (options.defaults) + object.encryptedVariables = null; var keys2; - if (message.taskGroups && (keys2 = Object.keys(message.taskGroups)).length) { - object.taskGroups = {}; + if (message.variables && (keys2 = Object.keys(message.variables)).length) { + object.variables = {}; for (var j = 0; j < keys2.length; ++j) - object.taskGroups[keys2[j]] = $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.toObject(message.taskGroups[keys2[j]], options); + object.variables[keys2[j]] = message.variables[keys2[j]]; } - if (message.runDuration != null && message.hasOwnProperty("runDuration")) - object.runDuration = $root.google.protobuf.Duration.toObject(message.runDuration, options); + if (message.secretVariables && (keys2 = Object.keys(message.secretVariables)).length) { + object.secretVariables = {}; + for (var j = 0; j < keys2.length; ++j) + object.secretVariables[keys2[j]] = message.secretVariables[keys2[j]]; + } + if (message.encryptedVariables != null && message.hasOwnProperty("encryptedVariables")) + object.encryptedVariables = $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.toObject(message.encryptedVariables, options); return object; }; /** - * Converts this JobStatus to JSON. + * Converts this Environment to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @instance * @returns {Object.} JSON object */ - JobStatus.prototype.toJSON = function toJSON() { + Environment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for JobStatus + * Gets the default type url for Environment * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.JobStatus + * @memberof google.cloud.batch.v1alpha.Environment * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - JobStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobStatus"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.Environment"; }; - JobStatus.InstanceStatus = (function() { + Environment.KMSEnvMap = (function() { /** - * Properties of an InstanceStatus. - * @memberof google.cloud.batch.v1alpha.JobStatus - * @interface IInstanceStatus - * @property {string|null} [machineType] InstanceStatus machineType - * @property {google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|null} [provisioningModel] InstanceStatus provisioningModel - * @property {number|Long|null} [taskPack] InstanceStatus taskPack + * Properties of a KMSEnvMap. + * @memberof google.cloud.batch.v1alpha.Environment + * @interface IKMSEnvMap + * @property {string|null} [keyName] KMSEnvMap keyName + * @property {string|null} [cipherText] KMSEnvMap cipherText */ /** - * Constructs a new InstanceStatus. - * @memberof google.cloud.batch.v1alpha.JobStatus - * @classdesc Represents an InstanceStatus. - * @implements IInstanceStatus + * Constructs a new KMSEnvMap. + * @memberof google.cloud.batch.v1alpha.Environment + * @classdesc Represents a KMSEnvMap. + * @implements IKMSEnvMap * @constructor - * @param {google.cloud.batch.v1alpha.JobStatus.IInstanceStatus=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.Environment.IKMSEnvMap=} [properties] Properties to set */ - function InstanceStatus(properties) { + function KMSEnvMap(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27889,103 +26643,89 @@ } /** - * InstanceStatus machineType. - * @member {string} machineType - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus - * @instance - */ - InstanceStatus.prototype.machineType = ""; - - /** - * InstanceStatus provisioningModel. - * @member {google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel} provisioningModel - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * KMSEnvMap keyName. + * @member {string} keyName + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @instance */ - InstanceStatus.prototype.provisioningModel = 0; + KMSEnvMap.prototype.keyName = ""; /** - * InstanceStatus taskPack. - * @member {number|Long} taskPack - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * KMSEnvMap cipherText. + * @member {string} cipherText + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @instance */ - InstanceStatus.prototype.taskPack = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + KMSEnvMap.prototype.cipherText = ""; /** - * Creates a new InstanceStatus instance using the specified properties. + * Creates a new KMSEnvMap instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @static - * @param {google.cloud.batch.v1alpha.JobStatus.IInstanceStatus=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} InstanceStatus instance + * @param {google.cloud.batch.v1alpha.Environment.IKMSEnvMap=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.Environment.KMSEnvMap} KMSEnvMap instance */ - InstanceStatus.create = function create(properties) { - return new InstanceStatus(properties); + KMSEnvMap.create = function create(properties) { + return new KMSEnvMap(properties); }; /** - * Encodes the specified InstanceStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify|verify} messages. + * Encodes the specified KMSEnvMap message. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @static - * @param {google.cloud.batch.v1alpha.JobStatus.IInstanceStatus} message InstanceStatus message or plain object to encode + * @param {google.cloud.batch.v1alpha.Environment.IKMSEnvMap} message KMSEnvMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InstanceStatus.encode = function encode(message, writer) { + KMSEnvMap.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); - if (message.provisioningModel != null && Object.hasOwnProperty.call(message, "provisioningModel")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.provisioningModel); - if (message.taskPack != null && Object.hasOwnProperty.call(message, "taskPack")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.taskPack); + if (message.keyName != null && Object.hasOwnProperty.call(message, "keyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyName); + if (message.cipherText != null && Object.hasOwnProperty.call(message, "cipherText")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cipherText); return writer; }; /** - * Encodes the specified InstanceStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify|verify} messages. + * Encodes the specified KMSEnvMap message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @static - * @param {google.cloud.batch.v1alpha.JobStatus.IInstanceStatus} message InstanceStatus message or plain object to encode + * @param {google.cloud.batch.v1alpha.Environment.IKMSEnvMap} message KMSEnvMap message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InstanceStatus.encodeDelimited = function encodeDelimited(message, writer) { + KMSEnvMap.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InstanceStatus message from the specified reader or buffer. + * Decodes a KMSEnvMap message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} InstanceStatus + * @returns {google.cloud.batch.v1alpha.Environment.KMSEnvMap} KMSEnvMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InstanceStatus.decode = function decode(reader, length) { + KMSEnvMap.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.machineType = reader.string(); + message.keyName = reader.string(); break; } case 2: { - message.provisioningModel = reader.int32(); - break; - } - case 3: { - message.taskPack = reader.int64(); + message.cipherText = reader.string(); break; } default: @@ -27997,503 +26737,140 @@ }; /** - * Decodes an InstanceStatus message from the specified reader or buffer, length delimited. + * Decodes a KMSEnvMap message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} InstanceStatus + * @returns {google.cloud.batch.v1alpha.Environment.KMSEnvMap} KMSEnvMap * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InstanceStatus.decodeDelimited = function decodeDelimited(reader) { + KMSEnvMap.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InstanceStatus message. + * Verifies a KMSEnvMap message. * @function verify - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InstanceStatus.verify = function verify(message) { + KMSEnvMap.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.machineType != null && message.hasOwnProperty("machineType")) - if (!$util.isString(message.machineType)) - return "machineType: string expected"; - if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) - switch (message.provisioningModel) { - default: - return "provisioningModel: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.taskPack != null && message.hasOwnProperty("taskPack")) - if (!$util.isInteger(message.taskPack) && !(message.taskPack && $util.isInteger(message.taskPack.low) && $util.isInteger(message.taskPack.high))) - return "taskPack: integer|Long expected"; + if (message.keyName != null && message.hasOwnProperty("keyName")) + if (!$util.isString(message.keyName)) + return "keyName: string expected"; + if (message.cipherText != null && message.hasOwnProperty("cipherText")) + if (!$util.isString(message.cipherText)) + return "cipherText: string expected"; return null; }; /** - * Creates an InstanceStatus message from a plain object. Also converts values to their respective internal types. + * Creates a KMSEnvMap message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} InstanceStatus + * @returns {google.cloud.batch.v1alpha.Environment.KMSEnvMap} KMSEnvMap */ - InstanceStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus) + KMSEnvMap.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap) return object; - var message = new $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus(); - if (object.machineType != null) - message.machineType = String(object.machineType); - switch (object.provisioningModel) { - default: - if (typeof object.provisioningModel === "number") { - message.provisioningModel = object.provisioningModel; - break; - } - break; - case "PROVISIONING_MODEL_UNSPECIFIED": - case 0: - message.provisioningModel = 0; - break; - case "STANDARD": - case 1: - message.provisioningModel = 1; - break; - case "SPOT": - case 2: - message.provisioningModel = 2; - break; - case "PREEMPTIBLE": - case 3: - message.provisioningModel = 3; - break; - } - if (object.taskPack != null) - if ($util.Long) - (message.taskPack = $util.Long.fromValue(object.taskPack)).unsigned = false; - else if (typeof object.taskPack === "string") - message.taskPack = parseInt(object.taskPack, 10); - else if (typeof object.taskPack === "number") - message.taskPack = object.taskPack; - else if (typeof object.taskPack === "object") - message.taskPack = new $util.LongBits(object.taskPack.low >>> 0, object.taskPack.high >>> 0).toNumber(); + var message = new $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap(); + if (object.keyName != null) + message.keyName = String(object.keyName); + if (object.cipherText != null) + message.cipherText = String(object.cipherText); return message; }; /** - * Creates a plain object from an InstanceStatus message. Also converts values to other types if specified. + * Creates a plain object from a KMSEnvMap message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @static - * @param {google.cloud.batch.v1alpha.JobStatus.InstanceStatus} message InstanceStatus + * @param {google.cloud.batch.v1alpha.Environment.KMSEnvMap} message KMSEnvMap * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InstanceStatus.toObject = function toObject(message, options) { + KMSEnvMap.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.machineType = ""; - object.provisioningModel = options.enums === String ? "PROVISIONING_MODEL_UNSPECIFIED" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskPack = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskPack = options.longs === String ? "0" : 0; + object.keyName = ""; + object.cipherText = ""; } - if (message.machineType != null && message.hasOwnProperty("machineType")) - object.machineType = message.machineType; - if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) - object.provisioningModel = options.enums === String ? $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModel] === undefined ? message.provisioningModel : $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModel] : message.provisioningModel; - if (message.taskPack != null && message.hasOwnProperty("taskPack")) - if (typeof message.taskPack === "number") - object.taskPack = options.longs === String ? String(message.taskPack) : message.taskPack; - else - object.taskPack = options.longs === String ? $util.Long.prototype.toString.call(message.taskPack) : options.longs === Number ? new $util.LongBits(message.taskPack.low >>> 0, message.taskPack.high >>> 0).toNumber() : message.taskPack; + if (message.keyName != null && message.hasOwnProperty("keyName")) + object.keyName = message.keyName; + if (message.cipherText != null && message.hasOwnProperty("cipherText")) + object.cipherText = message.cipherText; return object; }; /** - * Converts this InstanceStatus to JSON. + * Converts this KMSEnvMap to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @instance * @returns {Object.} JSON object */ - InstanceStatus.prototype.toJSON = function toJSON() { + KMSEnvMap.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InstanceStatus + * Gets the default type url for KMSEnvMap * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.JobStatus.InstanceStatus - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InstanceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobStatus.InstanceStatus"; - }; - - return InstanceStatus; - })(); - - JobStatus.TaskGroupStatus = (function() { - - /** - * Properties of a TaskGroupStatus. - * @memberof google.cloud.batch.v1alpha.JobStatus - * @interface ITaskGroupStatus - * @property {Object.|null} [counts] TaskGroupStatus counts - * @property {Array.|null} [instances] TaskGroupStatus instances - */ - - /** - * Constructs a new TaskGroupStatus. - * @memberof google.cloud.batch.v1alpha.JobStatus - * @classdesc Represents a TaskGroupStatus. - * @implements ITaskGroupStatus - * @constructor - * @param {google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus=} [properties] Properties to set - */ - function TaskGroupStatus(properties) { - this.counts = {}; - this.instances = []; - 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]]; - } - - /** - * TaskGroupStatus counts. - * @member {Object.} counts - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @instance - */ - TaskGroupStatus.prototype.counts = $util.emptyObject; - - /** - * TaskGroupStatus instances. - * @member {Array.} instances - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @instance - */ - TaskGroupStatus.prototype.instances = $util.emptyArray; - - /** - * Creates a new TaskGroupStatus instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @static - * @param {google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} TaskGroupStatus instance - */ - TaskGroupStatus.create = function create(properties) { - return new TaskGroupStatus(properties); - }; - - /** - * Encodes the specified TaskGroupStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @static - * @param {google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus} message TaskGroupStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGroupStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.counts != null && Object.hasOwnProperty.call(message, "counts")) - for (var keys = Object.keys(message.counts), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int64(message.counts[keys[i]]).ldelim(); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified TaskGroupStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @static - * @param {google.cloud.batch.v1alpha.JobStatus.ITaskGroupStatus} message TaskGroupStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGroupStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TaskGroupStatus message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} TaskGroupStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGroupStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.counts === $util.emptyObject) - message.counts = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.int64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.counts[key] = value; - break; - } - case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TaskGroupStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} TaskGroupStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGroupStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TaskGroupStatus message. - * @function verify - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskGroupStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.counts != null && message.hasOwnProperty("counts")) { - if (!$util.isObject(message.counts)) - return "counts: object expected"; - var key = Object.keys(message.counts); - for (var i = 0; i < key.length; ++i) - if (!$util.isInteger(message.counts[key[i]]) && !(message.counts[key[i]] && $util.isInteger(message.counts[key[i]].low) && $util.isInteger(message.counts[key[i]].high))) - return "counts: integer|Long{k:string} expected"; - } - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.verify(message.instances[i]); - if (error) - return "instances." + error; - } - } - return null; - }; - - /** - * Creates a TaskGroupStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} TaskGroupStatus - */ - TaskGroupStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus) - return object; - var message = new $root.google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus(); - if (object.counts) { - if (typeof object.counts !== "object") - throw TypeError(".google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.counts: object expected"); - message.counts = {}; - for (var keys = Object.keys(object.counts), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.counts[keys[i]] = $util.Long.fromValue(object.counts[keys[i]])).unsigned = false; - else if (typeof object.counts[keys[i]] === "string") - message.counts[keys[i]] = parseInt(object.counts[keys[i]], 10); - else if (typeof object.counts[keys[i]] === "number") - message.counts[keys[i]] = object.counts[keys[i]]; - else if (typeof object.counts[keys[i]] === "object") - message.counts[keys[i]] = new $util.LongBits(object.counts[keys[i]].low >>> 0, object.counts[keys[i]].high >>> 0).toNumber(); - } - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus.instances: object expected"); - message.instances[i] = $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.fromObject(object.instances[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a TaskGroupStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @static - * @param {google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus} message TaskGroupStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TaskGroupStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.instances = []; - if (options.objects || options.defaults) - object.counts = {}; - var keys2; - if (message.counts && (keys2 = Object.keys(message.counts)).length) { - object.counts = {}; - for (var j = 0; j < keys2.length; ++j) - if (typeof message.counts[keys2[j]] === "number") - object.counts[keys2[j]] = options.longs === String ? String(message.counts[keys2[j]]) : message.counts[keys2[j]]; - else - object.counts[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.counts[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.counts[keys2[j]].low >>> 0, message.counts[keys2[j]].high >>> 0).toNumber() : message.counts[keys2[j]]; - } - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.cloud.batch.v1alpha.JobStatus.InstanceStatus.toObject(message.instances[j], options); - } - return object; - }; - - /** - * Converts this TaskGroupStatus to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus - * @instance - * @returns {Object.} JSON object - */ - TaskGroupStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for TaskGroupStatus - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus + * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TaskGroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + KMSEnvMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.Environment.KMSEnvMap"; }; - return TaskGroupStatus; - })(); - - /** - * State enum. - * @name google.cloud.batch.v1alpha.JobStatus.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} SCHEDULED=2 SCHEDULED value - * @property {number} RUNNING=3 RUNNING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - * @property {number} FAILED=5 FAILED value - * @property {number} DELETION_IN_PROGRESS=6 DELETION_IN_PROGRESS value - */ - JobStatus.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "SCHEDULED"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "DELETION_IN_PROGRESS"] = 6; - return values; + return KMSEnvMap; })(); - return JobStatus; + return Environment; })(); - v1alpha.JobNotification = (function() { + v1alpha.Volume = (function() { /** - * Properties of a JobNotification. + * Properties of a Volume. * @memberof google.cloud.batch.v1alpha - * @interface IJobNotification - * @property {string|null} [pubsubTopic] JobNotification pubsubTopic - * @property {google.cloud.batch.v1alpha.JobNotification.IMessage|null} [message] JobNotification message + * @interface IVolume + * @property {google.cloud.batch.v1alpha.INFS|null} [nfs] Volume nfs + * @property {google.cloud.batch.v1alpha.IPD|null} [pd] Volume pd + * @property {google.cloud.batch.v1alpha.IGCS|null} [gcs] Volume gcs + * @property {string|null} [deviceName] Volume deviceName + * @property {string|null} [mountPath] Volume mountPath + * @property {Array.|null} [mountOptions] Volume mountOptions */ /** - * Constructs a new JobNotification. + * Constructs a new Volume. * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a JobNotification. - * @implements IJobNotification + * @classdesc Represents a Volume. + * @implements IVolume * @constructor - * @param {google.cloud.batch.v1alpha.IJobNotification=} [properties] Properties to set + * @param {google.cloud.batch.v1alpha.IVolume=} [properties] Properties to set */ - function JobNotification(properties) { + function Volume(properties) { + this.mountOptions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28501,89 +26878,162 @@ } /** - * JobNotification pubsubTopic. - * @member {string} pubsubTopic - * @memberof google.cloud.batch.v1alpha.JobNotification + * Volume nfs. + * @member {google.cloud.batch.v1alpha.INFS|null|undefined} nfs + * @memberof google.cloud.batch.v1alpha.Volume * @instance */ - JobNotification.prototype.pubsubTopic = ""; + Volume.prototype.nfs = null; /** - * JobNotification message. - * @member {google.cloud.batch.v1alpha.JobNotification.IMessage|null|undefined} message - * @memberof google.cloud.batch.v1alpha.JobNotification + * Volume pd. + * @member {google.cloud.batch.v1alpha.IPD|null|undefined} pd + * @memberof google.cloud.batch.v1alpha.Volume * @instance */ - JobNotification.prototype.message = null; + Volume.prototype.pd = null; /** - * Creates a new JobNotification instance using the specified properties. + * Volume gcs. + * @member {google.cloud.batch.v1alpha.IGCS|null|undefined} gcs + * @memberof google.cloud.batch.v1alpha.Volume + * @instance + */ + Volume.prototype.gcs = null; + + /** + * Volume deviceName. + * @member {string|null|undefined} deviceName + * @memberof google.cloud.batch.v1alpha.Volume + * @instance + */ + Volume.prototype.deviceName = null; + + /** + * Volume mountPath. + * @member {string} mountPath + * @memberof google.cloud.batch.v1alpha.Volume + * @instance + */ + Volume.prototype.mountPath = ""; + + /** + * Volume mountOptions. + * @member {Array.} mountOptions + * @memberof google.cloud.batch.v1alpha.Volume + * @instance + */ + Volume.prototype.mountOptions = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Volume source. + * @member {"nfs"|"pd"|"gcs"|"deviceName"|undefined} source + * @memberof google.cloud.batch.v1alpha.Volume + * @instance + */ + Object.defineProperty(Volume.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["nfs", "pd", "gcs", "deviceName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Volume instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @static - * @param {google.cloud.batch.v1alpha.IJobNotification=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.JobNotification} JobNotification instance + * @param {google.cloud.batch.v1alpha.IVolume=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.Volume} Volume instance */ - JobNotification.create = function create(properties) { - return new JobNotification(properties); + Volume.create = function create(properties) { + return new Volume(properties); }; /** - * Encodes the specified JobNotification message. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.verify|verify} messages. + * Encodes the specified Volume message. Does not implicitly {@link google.cloud.batch.v1alpha.Volume.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @static - * @param {google.cloud.batch.v1alpha.IJobNotification} message JobNotification message or plain object to encode + * @param {google.cloud.batch.v1alpha.IVolume} message Volume message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JobNotification.encode = function encode(message, writer) { + Volume.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pubsubTopic != null && Object.hasOwnProperty.call(message, "pubsubTopic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.pubsubTopic); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - $root.google.cloud.batch.v1alpha.JobNotification.Message.encode(message.message, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nfs != null && Object.hasOwnProperty.call(message, "nfs")) + $root.google.cloud.batch.v1alpha.NFS.encode(message.nfs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pd != null && Object.hasOwnProperty.call(message, "pd")) + $root.google.cloud.batch.v1alpha.PD.encode(message.pd, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) + $root.google.cloud.batch.v1alpha.GCS.encode(message.gcs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mountPath != null && Object.hasOwnProperty.call(message, "mountPath")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.mountPath); + if (message.mountOptions != null && message.mountOptions.length) + for (var i = 0; i < message.mountOptions.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.mountOptions[i]); + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.deviceName); return writer; }; /** - * Encodes the specified JobNotification message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.verify|verify} messages. + * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Volume.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @static - * @param {google.cloud.batch.v1alpha.IJobNotification} message JobNotification message or plain object to encode + * @param {google.cloud.batch.v1alpha.IVolume} message Volume message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JobNotification.encodeDelimited = function encodeDelimited(message, writer) { + Volume.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a JobNotification message from the specified reader or buffer. + * Decodes a Volume message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.JobNotification} JobNotification + * @returns {google.cloud.batch.v1alpha.Volume} Volume * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobNotification.decode = function decode(reader, length) { + Volume.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobNotification(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Volume(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.pubsubTopic = reader.string(); + message.nfs = $root.google.cloud.batch.v1alpha.NFS.decode(reader, reader.uint32()); break; } case 2: { - message.message = $root.google.cloud.batch.v1alpha.JobNotification.Message.decode(reader, reader.uint32()); + message.pd = $root.google.cloud.batch.v1alpha.PD.decode(reader, reader.uint32()); + break; + } + case 3: { + message.gcs = $root.google.cloud.batch.v1alpha.GCS.decode(reader, reader.uint32()); + break; + } + case 6: { + message.deviceName = reader.string(); + break; + } + case 4: { + message.mountPath = reader.string(); + break; + } + case 5: { + if (!(message.mountOptions && message.mountOptions.length)) + message.mountOptions = []; + message.mountOptions.push(reader.string()); break; } default: @@ -28595,746 +27045,549 @@ }; /** - * Decodes a JobNotification message from the specified reader or buffer, length delimited. + * Decodes a Volume message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.JobNotification} JobNotification + * @returns {google.cloud.batch.v1alpha.Volume} Volume * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobNotification.decodeDelimited = function decodeDelimited(reader) { + Volume.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a JobNotification message. + * Verifies a Volume message. * @function verify - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - JobNotification.verify = function verify(message) { + Volume.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) - if (!$util.isString(message.pubsubTopic)) - return "pubsubTopic: string expected"; - if (message.message != null && message.hasOwnProperty("message")) { - var error = $root.google.cloud.batch.v1alpha.JobNotification.Message.verify(message.message); - if (error) - return "message." + error; - } + var properties = {}; + if (message.nfs != null && message.hasOwnProperty("nfs")) { + properties.source = 1; + { + var error = $root.google.cloud.batch.v1alpha.NFS.verify(message.nfs); + if (error) + return "nfs." + error; + } + } + if (message.pd != null && message.hasOwnProperty("pd")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.batch.v1alpha.PD.verify(message.pd); + if (error) + return "pd." + error; + } + } + if (message.gcs != null && message.hasOwnProperty("gcs")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.batch.v1alpha.GCS.verify(message.gcs); + if (error) + return "gcs." + error; + } + } + if (message.deviceName != null && message.hasOwnProperty("deviceName")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!$util.isString(message.deviceName)) + return "deviceName: string expected"; + } + if (message.mountPath != null && message.hasOwnProperty("mountPath")) + if (!$util.isString(message.mountPath)) + return "mountPath: string expected"; + if (message.mountOptions != null && message.hasOwnProperty("mountOptions")) { + if (!Array.isArray(message.mountOptions)) + return "mountOptions: array expected"; + for (var i = 0; i < message.mountOptions.length; ++i) + if (!$util.isString(message.mountOptions[i])) + return "mountOptions: string[] expected"; + } return null; }; /** - * Creates a JobNotification message from a plain object. Also converts values to their respective internal types. + * Creates a Volume message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.JobNotification} JobNotification + * @returns {google.cloud.batch.v1alpha.Volume} Volume */ - JobNotification.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.JobNotification) + Volume.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.Volume) return object; - var message = new $root.google.cloud.batch.v1alpha.JobNotification(); - if (object.pubsubTopic != null) - message.pubsubTopic = String(object.pubsubTopic); - if (object.message != null) { - if (typeof object.message !== "object") - throw TypeError(".google.cloud.batch.v1alpha.JobNotification.message: object expected"); - message.message = $root.google.cloud.batch.v1alpha.JobNotification.Message.fromObject(object.message); + var message = new $root.google.cloud.batch.v1alpha.Volume(); + if (object.nfs != null) { + if (typeof object.nfs !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Volume.nfs: object expected"); + message.nfs = $root.google.cloud.batch.v1alpha.NFS.fromObject(object.nfs); + } + if (object.pd != null) { + if (typeof object.pd !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Volume.pd: object expected"); + message.pd = $root.google.cloud.batch.v1alpha.PD.fromObject(object.pd); + } + if (object.gcs != null) { + if (typeof object.gcs !== "object") + throw TypeError(".google.cloud.batch.v1alpha.Volume.gcs: object expected"); + message.gcs = $root.google.cloud.batch.v1alpha.GCS.fromObject(object.gcs); + } + if (object.deviceName != null) + message.deviceName = String(object.deviceName); + if (object.mountPath != null) + message.mountPath = String(object.mountPath); + if (object.mountOptions) { + if (!Array.isArray(object.mountOptions)) + throw TypeError(".google.cloud.batch.v1alpha.Volume.mountOptions: array expected"); + message.mountOptions = []; + for (var i = 0; i < object.mountOptions.length; ++i) + message.mountOptions[i] = String(object.mountOptions[i]); } return message; }; /** - * Creates a plain object from a JobNotification message. Also converts values to other types if specified. + * Creates a plain object from a Volume message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @static - * @param {google.cloud.batch.v1alpha.JobNotification} message JobNotification + * @param {google.cloud.batch.v1alpha.Volume} message Volume * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - JobNotification.toObject = function toObject(message, options) { + Volume.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.pubsubTopic = ""; - object.message = null; + if (options.arrays || options.defaults) + object.mountOptions = []; + if (options.defaults) + object.mountPath = ""; + if (message.nfs != null && message.hasOwnProperty("nfs")) { + object.nfs = $root.google.cloud.batch.v1alpha.NFS.toObject(message.nfs, options); + if (options.oneofs) + object.source = "nfs"; + } + if (message.pd != null && message.hasOwnProperty("pd")) { + object.pd = $root.google.cloud.batch.v1alpha.PD.toObject(message.pd, options); + if (options.oneofs) + object.source = "pd"; + } + if (message.gcs != null && message.hasOwnProperty("gcs")) { + object.gcs = $root.google.cloud.batch.v1alpha.GCS.toObject(message.gcs, options); + if (options.oneofs) + object.source = "gcs"; + } + if (message.mountPath != null && message.hasOwnProperty("mountPath")) + object.mountPath = message.mountPath; + if (message.mountOptions && message.mountOptions.length) { + object.mountOptions = []; + for (var j = 0; j < message.mountOptions.length; ++j) + object.mountOptions[j] = message.mountOptions[j]; + } + if (message.deviceName != null && message.hasOwnProperty("deviceName")) { + object.deviceName = message.deviceName; + if (options.oneofs) + object.source = "deviceName"; } - if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) - object.pubsubTopic = message.pubsubTopic; - if (message.message != null && message.hasOwnProperty("message")) - object.message = $root.google.cloud.batch.v1alpha.JobNotification.Message.toObject(message.message, options); return object; }; /** - * Converts this JobNotification to JSON. + * Converts this Volume to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @instance * @returns {Object.} JSON object */ - JobNotification.prototype.toJSON = function toJSON() { + Volume.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for JobNotification + * Gets the default type url for Volume * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.JobNotification + * @memberof google.cloud.batch.v1alpha.Volume * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - JobNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Volume.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobNotification"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.Volume"; }; - JobNotification.Message = (function() { - - /** - * Properties of a Message. - * @memberof google.cloud.batch.v1alpha.JobNotification - * @interface IMessage - * @property {google.cloud.batch.v1alpha.JobNotification.Type|null} [type] Message type - * @property {google.cloud.batch.v1alpha.JobStatus.State|null} [newJobState] Message newJobState - * @property {google.cloud.batch.v1alpha.TaskStatus.State|null} [newTaskState] Message newTaskState - */ - - /** - * Constructs a new Message. - * @memberof google.cloud.batch.v1alpha.JobNotification - * @classdesc Represents a Message. - * @implements IMessage - * @constructor - * @param {google.cloud.batch.v1alpha.JobNotification.IMessage=} [properties] Properties to set - */ - function Message(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]]; - } + return Volume; + })(); - /** - * Message type. - * @member {google.cloud.batch.v1alpha.JobNotification.Type} type - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @instance - */ - Message.prototype.type = 0; + v1alpha.NFS = (function() { - /** - * Message newJobState. - * @member {google.cloud.batch.v1alpha.JobStatus.State} newJobState - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @instance - */ - Message.prototype.newJobState = 0; + /** + * Properties of a NFS. + * @memberof google.cloud.batch.v1alpha + * @interface INFS + * @property {string|null} [server] NFS server + * @property {string|null} [remotePath] NFS remotePath + */ - /** - * Message newTaskState. - * @member {google.cloud.batch.v1alpha.TaskStatus.State} newTaskState - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @instance - */ - Message.prototype.newTaskState = 0; + /** + * Constructs a new NFS. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a NFS. + * @implements INFS + * @constructor + * @param {google.cloud.batch.v1alpha.INFS=} [properties] Properties to set + */ + function NFS(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]]; + } - /** - * Creates a new Message instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @static - * @param {google.cloud.batch.v1alpha.JobNotification.IMessage=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.JobNotification.Message} Message instance - */ - Message.create = function create(properties) { - return new Message(properties); - }; + /** + * NFS server. + * @member {string} server + * @memberof google.cloud.batch.v1alpha.NFS + * @instance + */ + NFS.prototype.server = ""; - /** - * Encodes the specified Message message. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.Message.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @static - * @param {google.cloud.batch.v1alpha.JobNotification.IMessage} message Message message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Message.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.newJobState != null && Object.hasOwnProperty.call(message, "newJobState")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.newJobState); - if (message.newTaskState != null && Object.hasOwnProperty.call(message, "newTaskState")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.newTaskState); - return writer; - }; + /** + * NFS remotePath. + * @member {string} remotePath + * @memberof google.cloud.batch.v1alpha.NFS + * @instance + */ + NFS.prototype.remotePath = ""; - /** - * Encodes the specified Message message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.JobNotification.Message.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @static - * @param {google.cloud.batch.v1alpha.JobNotification.IMessage} message Message message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Message.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new NFS instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.NFS + * @static + * @param {google.cloud.batch.v1alpha.INFS=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.NFS} NFS instance + */ + NFS.create = function create(properties) { + return new NFS(properties); + }; - /** - * Decodes a Message message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.JobNotification.Message} Message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Message.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.JobNotification.Message(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 2: { - message.newJobState = reader.int32(); - break; - } - case 3: { - message.newTaskState = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified NFS message. Does not implicitly {@link google.cloud.batch.v1alpha.NFS.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.NFS + * @static + * @param {google.cloud.batch.v1alpha.INFS} message NFS message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NFS.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.server != null && Object.hasOwnProperty.call(message, "server")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.server); + if (message.remotePath != null && Object.hasOwnProperty.call(message, "remotePath")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.remotePath); + return writer; + }; - /** - * Decodes a Message message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.JobNotification.Message} Message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Message.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified NFS message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.NFS.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.NFS + * @static + * @param {google.cloud.batch.v1alpha.INFS} message NFS message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NFS.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a Message message. - * @function verify - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Message.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.newJobState != null && message.hasOwnProperty("newJobState")) - switch (message.newJobState) { - default: - return "newJobState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.newTaskState != null && message.hasOwnProperty("newTaskState")) - switch (message.newTaskState) { - default: - return "newTaskState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: + /** + * Decodes a NFS message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.NFS + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.NFS} NFS + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NFS.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.NFS(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.server = reader.string(); break; } - return null; - }; - - /** - * Creates a Message message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.JobNotification.Message} Message - */ - Message.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.JobNotification.Message) - return object; - var message = new $root.google.cloud.batch.v1alpha.JobNotification.Message(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; + case 2: { + message.remotePath = reader.string(); break; } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "JOB_STATE_CHANGED": - case 1: - message.type = 1; - break; - case "TASK_STATE_CHANGED": - case 2: - message.type = 2; - break; - } - switch (object.newJobState) { default: - if (typeof object.newJobState === "number") { - message.newJobState = object.newJobState; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.newJobState = 0; - break; - case "QUEUED": - case 1: - message.newJobState = 1; - break; - case "SCHEDULED": - case 2: - message.newJobState = 2; - break; - case "RUNNING": - case 3: - message.newJobState = 3; - break; - case "SUCCEEDED": - case 4: - message.newJobState = 4; - break; - case "FAILED": - case 5: - message.newJobState = 5; - break; - case "DELETION_IN_PROGRESS": - case 6: - message.newJobState = 6; + reader.skipType(tag & 7); break; } - switch (object.newTaskState) { - default: - if (typeof object.newTaskState === "number") { - message.newTaskState = object.newTaskState; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.newTaskState = 0; - break; - case "PENDING": - case 1: - message.newTaskState = 1; - break; - case "ASSIGNED": - case 2: - message.newTaskState = 2; - break; - case "RUNNING": - case 3: - message.newTaskState = 3; - break; - case "FAILED": - case 4: - message.newTaskState = 4; - break; - case "SUCCEEDED": - case 5: - message.newTaskState = 5; - break; - } - return message; - }; - - /** - * Creates a plain object from a Message message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @static - * @param {google.cloud.batch.v1alpha.JobNotification.Message} message Message - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Message.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.newJobState = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.newTaskState = options.enums === String ? "STATE_UNSPECIFIED" : 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.batch.v1alpha.JobNotification.Type[message.type] === undefined ? message.type : $root.google.cloud.batch.v1alpha.JobNotification.Type[message.type] : message.type; - if (message.newJobState != null && message.hasOwnProperty("newJobState")) - object.newJobState = options.enums === String ? $root.google.cloud.batch.v1alpha.JobStatus.State[message.newJobState] === undefined ? message.newJobState : $root.google.cloud.batch.v1alpha.JobStatus.State[message.newJobState] : message.newJobState; - if (message.newTaskState != null && message.hasOwnProperty("newTaskState")) - object.newTaskState = options.enums === String ? $root.google.cloud.batch.v1alpha.TaskStatus.State[message.newTaskState] === undefined ? message.newTaskState : $root.google.cloud.batch.v1alpha.TaskStatus.State[message.newTaskState] : message.newTaskState; - return object; - }; - - /** - * Converts this Message to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @instance - * @returns {Object.} JSON object - */ - Message.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Message - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.JobNotification.Message - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Message.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.JobNotification.Message"; - }; - - return Message; - })(); + } + return message; + }; /** - * Type enum. - * @name google.cloud.batch.v1alpha.JobNotification.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} JOB_STATE_CHANGED=1 JOB_STATE_CHANGED value - * @property {number} TASK_STATE_CHANGED=2 TASK_STATE_CHANGED value + * Decodes a NFS message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.NFS + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.NFS} NFS + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JobNotification.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "JOB_STATE_CHANGED"] = 1; - values[valuesById[2] = "TASK_STATE_CHANGED"] = 2; - return values; - })(); - - return JobNotification; - })(); - - v1alpha.AllocationPolicy = (function() { + NFS.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Properties of an AllocationPolicy. - * @memberof google.cloud.batch.v1alpha - * @interface IAllocationPolicy - * @property {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy|null} [location] AllocationPolicy location - * @property {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null} [instance] AllocationPolicy instance - * @property {Array.|null} [instances] AllocationPolicy instances - * @property {Array.|null} [instanceTemplates] AllocationPolicy instanceTemplates - * @property {Array.|null} [provisioningModels] AllocationPolicy provisioningModels - * @property {string|null} [serviceAccountEmail] AllocationPolicy serviceAccountEmail - * @property {google.cloud.batch.v1alpha.IServiceAccount|null} [serviceAccount] AllocationPolicy serviceAccount - * @property {Object.|null} [labels] AllocationPolicy labels - * @property {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy|null} [network] AllocationPolicy network + * Verifies a NFS message. + * @function verify + * @memberof google.cloud.batch.v1alpha.NFS + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + NFS.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.server != null && message.hasOwnProperty("server")) + if (!$util.isString(message.server)) + return "server: string expected"; + if (message.remotePath != null && message.hasOwnProperty("remotePath")) + if (!$util.isString(message.remotePath)) + return "remotePath: string expected"; + return null; + }; /** - * Constructs a new AllocationPolicy. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents an AllocationPolicy. - * @implements IAllocationPolicy - * @constructor - * @param {google.cloud.batch.v1alpha.IAllocationPolicy=} [properties] Properties to set + * Creates a NFS message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.NFS + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.NFS} NFS */ - function AllocationPolicy(properties) { - this.instances = []; - this.instanceTemplates = []; - this.provisioningModels = []; - this.labels = {}; - 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]]; - } + NFS.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.NFS) + return object; + var message = new $root.google.cloud.batch.v1alpha.NFS(); + if (object.server != null) + message.server = String(object.server); + if (object.remotePath != null) + message.remotePath = String(object.remotePath); + return message; + }; /** - * AllocationPolicy location. - * @member {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy|null|undefined} location - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @instance + * Creates a plain object from a NFS message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.NFS + * @static + * @param {google.cloud.batch.v1alpha.NFS} message NFS + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - AllocationPolicy.prototype.location = null; + NFS.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.server = ""; + object.remotePath = ""; + } + if (message.server != null && message.hasOwnProperty("server")) + object.server = message.server; + if (message.remotePath != null && message.hasOwnProperty("remotePath")) + object.remotePath = message.remotePath; + return object; + }; /** - * AllocationPolicy instance. - * @member {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null|undefined} instance - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * Converts this NFS to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.NFS * @instance + * @returns {Object.} JSON object */ - AllocationPolicy.prototype.instance = null; + NFS.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * AllocationPolicy instances. - * @member {Array.} instances - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @instance + * Gets the default type url for NFS + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.NFS + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - AllocationPolicy.prototype.instances = $util.emptyArray; + NFS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.NFS"; + }; - /** - * AllocationPolicy instanceTemplates. - * @member {Array.} instanceTemplates - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @instance - */ - AllocationPolicy.prototype.instanceTemplates = $util.emptyArray; + return NFS; + })(); + + v1alpha.PD = (function() { /** - * AllocationPolicy provisioningModels. - * @member {Array.} provisioningModels - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @instance + * Properties of a PD. + * @memberof google.cloud.batch.v1alpha + * @interface IPD + * @property {string|null} [disk] PD disk + * @property {string|null} [device] PD device + * @property {boolean|null} [existing] PD existing */ - AllocationPolicy.prototype.provisioningModels = $util.emptyArray; /** - * AllocationPolicy serviceAccountEmail. - * @member {string} serviceAccountEmail - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @instance + * Constructs a new PD. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a PD. + * @implements IPD + * @constructor + * @param {google.cloud.batch.v1alpha.IPD=} [properties] Properties to set */ - AllocationPolicy.prototype.serviceAccountEmail = ""; + function PD(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]]; + } /** - * AllocationPolicy serviceAccount. - * @member {google.cloud.batch.v1alpha.IServiceAccount|null|undefined} serviceAccount - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * PD disk. + * @member {string} disk + * @memberof google.cloud.batch.v1alpha.PD * @instance */ - AllocationPolicy.prototype.serviceAccount = null; + PD.prototype.disk = ""; /** - * AllocationPolicy labels. - * @member {Object.} labels - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * PD device. + * @member {string} device + * @memberof google.cloud.batch.v1alpha.PD * @instance */ - AllocationPolicy.prototype.labels = $util.emptyObject; + PD.prototype.device = ""; /** - * AllocationPolicy network. - * @member {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy|null|undefined} network - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * PD existing. + * @member {boolean} existing + * @memberof google.cloud.batch.v1alpha.PD * @instance */ - AllocationPolicy.prototype.network = null; + PD.prototype.existing = false; /** - * Creates a new AllocationPolicy instance using the specified properties. + * Creates a new PD instance using the specified properties. * @function create - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @static - * @param {google.cloud.batch.v1alpha.IAllocationPolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.AllocationPolicy} AllocationPolicy instance + * @param {google.cloud.batch.v1alpha.IPD=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.PD} PD instance */ - AllocationPolicy.create = function create(properties) { - return new AllocationPolicy(properties); + PD.create = function create(properties) { + return new PD(properties); }; /** - * Encodes the specified AllocationPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.verify|verify} messages. + * Encodes the specified PD message. Does not implicitly {@link google.cloud.batch.v1alpha.PD.verify|verify} messages. * @function encode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @static - * @param {google.cloud.batch.v1alpha.IAllocationPolicy} message AllocationPolicy message or plain object to encode + * @param {google.cloud.batch.v1alpha.IPD} message PD message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AllocationPolicy.encode = function encode(message, writer) { + PD.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.encode(message.location, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.instanceTemplates != null && message.instanceTemplates.length) - for (var i = 0; i < message.instanceTemplates.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.instanceTemplates[i]); - if (message.provisioningModels != null && message.provisioningModels.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (var i = 0; i < message.provisioningModels.length; ++i) - writer.int32(message.provisioningModels[i]); - writer.ldelim(); - } - if (message.serviceAccountEmail != null && Object.hasOwnProperty.call(message, "serviceAccountEmail")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceAccountEmail); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.encode(message.network, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.encode(message.instances[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - $root.google.cloud.batch.v1alpha.ServiceAccount.encode(message.serviceAccount, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.disk != null && Object.hasOwnProperty.call(message, "disk")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.disk); + if (message.device != null && Object.hasOwnProperty.call(message, "device")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.device); + if (message.existing != null && Object.hasOwnProperty.call(message, "existing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.existing); return writer; }; /** - * Encodes the specified AllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.verify|verify} messages. + * Encodes the specified PD message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.PD.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @static - * @param {google.cloud.batch.v1alpha.IAllocationPolicy} message AllocationPolicy message or plain object to encode + * @param {google.cloud.batch.v1alpha.IPD} message PD message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { + PD.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AllocationPolicy message from the specified reader or buffer. + * Decodes a PD message from the specified reader or buffer. * @function decode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.AllocationPolicy} AllocationPolicy + * @returns {google.cloud.batch.v1alpha.PD} PD * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AllocationPolicy.decode = function decode(reader, length) { + PD.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.PD(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.location = $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.decode(reader, reader.uint32()); + message.disk = reader.string(); break; } case 2: { - message.instance = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.decode(reader, reader.uint32()); - break; - } - case 8: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.decode(reader, reader.uint32())); + message.device = reader.string(); break; } case 3: { - if (!(message.instanceTemplates && message.instanceTemplates.length)) - message.instanceTemplates = []; - message.instanceTemplates.push(reader.string()); - break; - } - case 4: { - if (!(message.provisioningModels && message.provisioningModels.length)) - message.provisioningModels = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.provisioningModels.push(reader.int32()); - } else - message.provisioningModels.push(reader.int32()); - break; - } - case 5: { - message.serviceAccountEmail = reader.string(); - break; - } - case 9: { - message.serviceAccount = $root.google.cloud.batch.v1alpha.ServiceAccount.decode(reader, reader.uint32()); - break; - } - case 6: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 7: { - message.network = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.decode(reader, reader.uint32()); + message.existing = reader.bool(); break; } default: @@ -29346,8796 +27599,10861 @@ }; /** - * Decodes an AllocationPolicy message from the specified reader or buffer, length delimited. + * Decodes a PD message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.AllocationPolicy} AllocationPolicy + * @returns {google.cloud.batch.v1alpha.PD} PD * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AllocationPolicy.decodeDelimited = function decodeDelimited(reader) { + PD.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AllocationPolicy message. + * Verifies a PD message. * @function verify - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AllocationPolicy.verify = function verify(message) { + PD.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify(message.location); - if (error) - return "location." + error; - } - if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify(message.instance); - if (error) - return "instance." + error; - } - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify(message.instances[i]); - if (error) - return "instances." + error; - } - } - if (message.instanceTemplates != null && message.hasOwnProperty("instanceTemplates")) { - if (!Array.isArray(message.instanceTemplates)) - return "instanceTemplates: array expected"; - for (var i = 0; i < message.instanceTemplates.length; ++i) - if (!$util.isString(message.instanceTemplates[i])) - return "instanceTemplates: string[] expected"; - } - if (message.provisioningModels != null && message.hasOwnProperty("provisioningModels")) { - if (!Array.isArray(message.provisioningModels)) - return "provisioningModels: array expected"; - for (var i = 0; i < message.provisioningModels.length; ++i) - switch (message.provisioningModels[i]) { - default: - return "provisioningModels: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) - if (!$util.isString(message.serviceAccountEmail)) - return "serviceAccountEmail: string expected"; - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) { - var error = $root.google.cloud.batch.v1alpha.ServiceAccount.verify(message.serviceAccount); - if (error) - return "serviceAccount." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.network != null && message.hasOwnProperty("network")) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify(message.network); - if (error) - return "network." + error; - } + if (message.disk != null && message.hasOwnProperty("disk")) + if (!$util.isString(message.disk)) + return "disk: string expected"; + if (message.device != null && message.hasOwnProperty("device")) + if (!$util.isString(message.device)) + return "device: string expected"; + if (message.existing != null && message.hasOwnProperty("existing")) + if (typeof message.existing !== "boolean") + return "existing: boolean expected"; return null; }; /** - * Creates an AllocationPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a PD message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @static * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.AllocationPolicy} AllocationPolicy + * @returns {google.cloud.batch.v1alpha.PD} PD */ - AllocationPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy) - return object; - var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy(); - if (object.location != null) { - if (typeof object.location !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.location: object expected"); - message.location = $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.fromObject(object.location); - } - if (object.instance != null) { - if (typeof object.instance !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.instance: object expected"); - message.instance = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.fromObject(object.instance); - } - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.instances: object expected"); - message.instances[i] = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.fromObject(object.instances[i]); - } - } - if (object.instanceTemplates) { - if (!Array.isArray(object.instanceTemplates)) - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.instanceTemplates: array expected"); - message.instanceTemplates = []; - for (var i = 0; i < object.instanceTemplates.length; ++i) - message.instanceTemplates[i] = String(object.instanceTemplates[i]); - } - if (object.provisioningModels) { - if (!Array.isArray(object.provisioningModels)) - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.provisioningModels: array expected"); - message.provisioningModels = []; - for (var i = 0; i < object.provisioningModels.length; ++i) - switch (object.provisioningModels[i]) { - default: - if (typeof object.provisioningModels[i] === "number") { - message.provisioningModels[i] = object.provisioningModels[i]; - break; - } - case "PROVISIONING_MODEL_UNSPECIFIED": - case 0: - message.provisioningModels[i] = 0; - break; - case "STANDARD": - case 1: - message.provisioningModels[i] = 1; - break; - case "SPOT": - case 2: - message.provisioningModels[i] = 2; - break; - case "PREEMPTIBLE": - case 3: - message.provisioningModels[i] = 3; - break; - } - } - if (object.serviceAccountEmail != null) - message.serviceAccountEmail = String(object.serviceAccountEmail); - if (object.serviceAccount != null) { - if (typeof object.serviceAccount !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.serviceAccount: object expected"); - message.serviceAccount = $root.google.cloud.batch.v1alpha.ServiceAccount.fromObject(object.serviceAccount); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.network != null) { - if (typeof object.network !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.network: object expected"); - message.network = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.fromObject(object.network); - } + PD.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.PD) + return object; + var message = new $root.google.cloud.batch.v1alpha.PD(); + if (object.disk != null) + message.disk = String(object.disk); + if (object.device != null) + message.device = String(object.device); + if (object.existing != null) + message.existing = Boolean(object.existing); return message; }; /** - * Creates a plain object from an AllocationPolicy message. Also converts values to other types if specified. + * Creates a plain object from a PD message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy} message AllocationPolicy + * @param {google.cloud.batch.v1alpha.PD} message PD * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AllocationPolicy.toObject = function toObject(message, options) { + PD.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.instanceTemplates = []; - object.provisioningModels = []; - object.instances = []; - } - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.location = null; - object.instance = null; - object.serviceAccountEmail = ""; - object.network = null; - object.serviceAccount = null; - } - if (message.location != null && message.hasOwnProperty("location")) - object.location = $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.toObject(message.location, options); - if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.toObject(message.instance, options); - if (message.instanceTemplates && message.instanceTemplates.length) { - object.instanceTemplates = []; - for (var j = 0; j < message.instanceTemplates.length; ++j) - object.instanceTemplates[j] = message.instanceTemplates[j]; - } - if (message.provisioningModels && message.provisioningModels.length) { - object.provisioningModels = []; - for (var j = 0; j < message.provisioningModels.length; ++j) - object.provisioningModels[j] = options.enums === String ? $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModels[j]] === undefined ? message.provisioningModels[j] : $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModels[j]] : message.provisioningModels[j]; - } - if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) - object.serviceAccountEmail = message.serviceAccountEmail; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.network != null && message.hasOwnProperty("network")) - object.network = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.toObject(message.network, options); - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.toObject(message.instances[j], options); + object.disk = ""; + object.device = ""; + object.existing = false; } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = $root.google.cloud.batch.v1alpha.ServiceAccount.toObject(message.serviceAccount, options); + if (message.disk != null && message.hasOwnProperty("disk")) + object.disk = message.disk; + if (message.device != null && message.hasOwnProperty("device")) + object.device = message.device; + if (message.existing != null && message.hasOwnProperty("existing")) + object.existing = message.existing; return object; }; /** - * Converts this AllocationPolicy to JSON. + * Converts this PD to JSON. * @function toJSON - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @instance * @returns {Object.} JSON object */ - AllocationPolicy.prototype.toJSON = function toJSON() { + PD.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AllocationPolicy + * Gets the default type url for PD * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.AllocationPolicy + * @memberof google.cloud.batch.v1alpha.PD * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AllocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PD.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy"; + return typeUrlPrefix + "/google.cloud.batch.v1alpha.PD"; }; - AllocationPolicy.LocationPolicy = (function() { + return PD; + })(); - /** - * Properties of a LocationPolicy. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @interface ILocationPolicy - * @property {Array.|null} [allowedLocations] LocationPolicy allowedLocations - * @property {Array.|null} [deniedLocations] LocationPolicy deniedLocations - */ + v1alpha.GCS = (function() { - /** - * Constructs a new LocationPolicy. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @classdesc Represents a LocationPolicy. - * @implements ILocationPolicy - * @constructor - * @param {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy=} [properties] Properties to set - */ - function LocationPolicy(properties) { - this.allowedLocations = []; - this.deniedLocations = []; - 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]]; - } + /** + * Properties of a GCS. + * @memberof google.cloud.batch.v1alpha + * @interface IGCS + * @property {string|null} [remotePath] GCS remotePath + */ - /** - * LocationPolicy allowedLocations. - * @member {Array.} allowedLocations - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @instance - */ - LocationPolicy.prototype.allowedLocations = $util.emptyArray; + /** + * Constructs a new GCS. + * @memberof google.cloud.batch.v1alpha + * @classdesc Represents a GCS. + * @implements IGCS + * @constructor + * @param {google.cloud.batch.v1alpha.IGCS=} [properties] Properties to set + */ + function GCS(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]]; + } - /** - * LocationPolicy deniedLocations. - * @member {Array.} deniedLocations - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @instance - */ - LocationPolicy.prototype.deniedLocations = $util.emptyArray; + /** + * GCS remotePath. + * @member {string} remotePath + * @memberof google.cloud.batch.v1alpha.GCS + * @instance + */ + GCS.prototype.remotePath = ""; - /** - * Creates a new LocationPolicy instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} LocationPolicy instance - */ - LocationPolicy.create = function create(properties) { - return new LocationPolicy(properties); - }; + /** + * Creates a new GCS instance using the specified properties. + * @function create + * @memberof google.cloud.batch.v1alpha.GCS + * @static + * @param {google.cloud.batch.v1alpha.IGCS=} [properties] Properties to set + * @returns {google.cloud.batch.v1alpha.GCS} GCS instance + */ + GCS.create = function create(properties) { + return new GCS(properties); + }; - /** - * Encodes the specified LocationPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy} message LocationPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationPolicy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allowedLocations != null && message.allowedLocations.length) - for (var i = 0; i < message.allowedLocations.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowedLocations[i]); - if (message.deniedLocations != null && message.deniedLocations.length) - for (var i = 0; i < message.deniedLocations.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deniedLocations[i]); - return writer; - }; + /** + * Encodes the specified GCS message. Does not implicitly {@link google.cloud.batch.v1alpha.GCS.verify|verify} messages. + * @function encode + * @memberof google.cloud.batch.v1alpha.GCS + * @static + * @param {google.cloud.batch.v1alpha.IGCS} message GCS message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GCS.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.remotePath != null && Object.hasOwnProperty.call(message, "remotePath")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.remotePath); + return writer; + }; - /** - * Encodes the specified LocationPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.ILocationPolicy} message LocationPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GCS message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GCS.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.batch.v1alpha.GCS + * @static + * @param {google.cloud.batch.v1alpha.IGCS} message GCS message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GCS.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a LocationPolicy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} LocationPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationPolicy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.allowedLocations && message.allowedLocations.length)) - message.allowedLocations = []; - message.allowedLocations.push(reader.string()); - break; - } - case 2: { - if (!(message.deniedLocations && message.deniedLocations.length)) - message.deniedLocations = []; - message.deniedLocations.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a GCS message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.batch.v1alpha.GCS + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.batch.v1alpha.GCS} GCS + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GCS.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.GCS(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.remotePath = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a LocationPolicy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} LocationPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LocationPolicy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a LocationPolicy message. - * @function verify - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LocationPolicy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allowedLocations != null && message.hasOwnProperty("allowedLocations")) { - if (!Array.isArray(message.allowedLocations)) - return "allowedLocations: array expected"; - for (var i = 0; i < message.allowedLocations.length; ++i) - if (!$util.isString(message.allowedLocations[i])) - return "allowedLocations: string[] expected"; - } - if (message.deniedLocations != null && message.hasOwnProperty("deniedLocations")) { - if (!Array.isArray(message.deniedLocations)) - return "deniedLocations: array expected"; - for (var i = 0; i < message.deniedLocations.length; ++i) - if (!$util.isString(message.deniedLocations[i])) - return "deniedLocations: string[] expected"; - } - return null; - }; + /** + * Decodes a GCS message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.batch.v1alpha.GCS + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.batch.v1alpha.GCS} GCS + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GCS.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a LocationPolicy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} LocationPolicy - */ - LocationPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy) - return object; - var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy(); - if (object.allowedLocations) { - if (!Array.isArray(object.allowedLocations)) - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.allowedLocations: array expected"); - message.allowedLocations = []; - for (var i = 0; i < object.allowedLocations.length; ++i) - message.allowedLocations[i] = String(object.allowedLocations[i]); - } - if (object.deniedLocations) { - if (!Array.isArray(object.deniedLocations)) - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.deniedLocations: array expected"); - message.deniedLocations = []; - for (var i = 0; i < object.deniedLocations.length; ++i) - message.deniedLocations[i] = String(object.deniedLocations[i]); - } - return message; - }; + /** + * Verifies a GCS message. + * @function verify + * @memberof google.cloud.batch.v1alpha.GCS + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GCS.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.remotePath != null && message.hasOwnProperty("remotePath")) + if (!$util.isString(message.remotePath)) + return "remotePath: string expected"; + return null; + }; - /** - * Creates a plain object from a LocationPolicy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy} message LocationPolicy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LocationPolicy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.allowedLocations = []; - object.deniedLocations = []; - } - if (message.allowedLocations && message.allowedLocations.length) { - object.allowedLocations = []; - for (var j = 0; j < message.allowedLocations.length; ++j) - object.allowedLocations[j] = message.allowedLocations[j]; - } - if (message.deniedLocations && message.deniedLocations.length) { - object.deniedLocations = []; - for (var j = 0; j < message.deniedLocations.length; ++j) - object.deniedLocations[j] = message.deniedLocations[j]; - } + /** + * Creates a GCS message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.batch.v1alpha.GCS + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.batch.v1alpha.GCS} GCS + */ + GCS.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.batch.v1alpha.GCS) return object; - }; - - /** - * Converts this LocationPolicy to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @instance - * @returns {Object.} JSON object - */ - LocationPolicy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LocationPolicy - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy"; - }; - - return LocationPolicy; - })(); + var message = new $root.google.cloud.batch.v1alpha.GCS(); + if (object.remotePath != null) + message.remotePath = String(object.remotePath); + return message; + }; - AllocationPolicy.Disk = (function() { + /** + * Creates a plain object from a GCS message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.batch.v1alpha.GCS + * @static + * @param {google.cloud.batch.v1alpha.GCS} message GCS + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GCS.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.remotePath = ""; + if (message.remotePath != null && message.hasOwnProperty("remotePath")) + object.remotePath = message.remotePath; + return object; + }; - /** - * Properties of a Disk. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @interface IDisk - * @property {string|null} [image] Disk image - * @property {string|null} [snapshot] Disk snapshot - * @property {string|null} [type] Disk type - * @property {number|Long|null} [sizeGb] Disk sizeGb - * @property {string|null} [diskInterface] Disk diskInterface - */ + /** + * Converts this GCS to JSON. + * @function toJSON + * @memberof google.cloud.batch.v1alpha.GCS + * @instance + * @returns {Object.} JSON object + */ + GCS.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new Disk. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @classdesc Represents a Disk. - * @implements IDisk - * @constructor - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IDisk=} [properties] Properties to set - */ - function Disk(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]]; + /** + * Gets the default type url for GCS + * @function getTypeUrl + * @memberof google.cloud.batch.v1alpha.GCS + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GCS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.batch.v1alpha.GCS"; + }; - /** - * Disk image. - * @member {string|null|undefined} image - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.image = null; - - /** - * Disk snapshot. - * @member {string|null|undefined} snapshot - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.snapshot = null; + return GCS; + })(); - /** - * Disk type. - * @member {string} type - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.type = ""; + return v1alpha; + })(); - /** - * Disk sizeGb. - * @member {number|Long} sizeGb - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.sizeGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + return batch; + })(); - /** - * Disk diskInterface. - * @member {string} diskInterface - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @instance - */ - Disk.prototype.diskInterface = ""; + return cloud; + })(); - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + google.api = (function() { - /** - * Disk dataSource. - * @member {"image"|"snapshot"|undefined} dataSource - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @instance - */ - Object.defineProperty(Disk.prototype, "dataSource", { - get: $util.oneOfGetter($oneOfFields = ["image", "snapshot"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; - /** - * Creates a new Disk instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IDisk=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Disk} Disk instance - */ - Disk.create = function create(properties) { - return new Disk(properties); - }; + api.Http = (function() { - /** - * Encodes the specified Disk message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IDisk} message Disk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Disk.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.sizeGb != null && Object.hasOwnProperty.call(message, "sizeGb")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.sizeGb); - if (message.image != null && Object.hasOwnProperty.call(message, "image")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.image); - if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.snapshot); - if (message.diskInterface != null && Object.hasOwnProperty.call(message, "diskInterface")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.diskInterface); - return writer; - }; + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ - /** - * Encodes the specified Disk message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IDisk} message Disk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Disk.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + 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]]; + } - /** - * Decodes a Disk message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Disk} Disk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Disk.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 4: { - message.image = reader.string(); - break; - } - case 5: { - message.snapshot = reader.string(); - break; - } - case 1: { - message.type = reader.string(); - break; - } - case 2: { - message.sizeGb = reader.int64(); - break; - } - case 6: { - message.diskInterface = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; - /** - * Decodes a Disk message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Disk} Disk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Disk.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; - /** - * Verifies a Disk message. - * @function verify - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Disk.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.image != null && message.hasOwnProperty("image")) { - properties.dataSource = 1; - if (!$util.isString(message.image)) - return "image: string expected"; - } - if (message.snapshot != null && message.hasOwnProperty("snapshot")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - if (!$util.isString(message.snapshot)) - return "snapshot: string expected"; - } - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.sizeGb != null && message.hasOwnProperty("sizeGb")) - if (!$util.isInteger(message.sizeGb) && !(message.sizeGb && $util.isInteger(message.sizeGb.low) && $util.isInteger(message.sizeGb.high))) - return "sizeGb: integer|Long expected"; - if (message.diskInterface != null && message.hasOwnProperty("diskInterface")) - if (!$util.isString(message.diskInterface)) - return "diskInterface: string expected"; - return null; - }; + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; - /** - * Creates a Disk message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Disk} Disk - */ - Disk.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk) - return object; - var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk(); - if (object.image != null) - message.image = String(object.image); - if (object.snapshot != null) - message.snapshot = String(object.snapshot); - if (object.type != null) - message.type = String(object.type); - if (object.sizeGb != null) - if ($util.Long) - (message.sizeGb = $util.Long.fromValue(object.sizeGb)).unsigned = false; - else if (typeof object.sizeGb === "string") - message.sizeGb = parseInt(object.sizeGb, 10); - else if (typeof object.sizeGb === "number") - message.sizeGb = object.sizeGb; - else if (typeof object.sizeGb === "object") - message.sizeGb = new $util.LongBits(object.sizeGb.low >>> 0, object.sizeGb.high >>> 0).toNumber(); - if (object.diskInterface != null) - message.diskInterface = String(object.diskInterface); - return message; - }; + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; - /** - * Creates a plain object from a Disk message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.Disk} message Disk - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Disk.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.sizeGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sizeGb = options.longs === String ? "0" : 0; - object.diskInterface = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.sizeGb != null && message.hasOwnProperty("sizeGb")) - if (typeof message.sizeGb === "number") - object.sizeGb = options.longs === String ? String(message.sizeGb) : message.sizeGb; - else - object.sizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.sizeGb) : options.longs === Number ? new $util.LongBits(message.sizeGb.low >>> 0, message.sizeGb.high >>> 0).toNumber() : message.sizeGb; - if (message.image != null && message.hasOwnProperty("image")) { - object.image = message.image; - if (options.oneofs) - object.dataSource = "image"; - } - if (message.snapshot != null && message.hasOwnProperty("snapshot")) { - object.snapshot = message.snapshot; - if (options.oneofs) - object.dataSource = "snapshot"; - } - if (message.diskInterface != null && message.hasOwnProperty("diskInterface")) - object.diskInterface = message.diskInterface; - return object; - }; + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this Disk to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @instance - * @returns {Object.} JSON object - */ - Disk.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Gets the default type url for Disk - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Disk - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Disk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.Disk"; - }; - - return Disk; - })(); + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - AllocationPolicy.AttachedDisk = (function() { + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; - /** - * Properties of an AttachedDisk. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @interface IAttachedDisk - * @property {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null} [newDisk] AttachedDisk newDisk - * @property {string|null} [existingDisk] AttachedDisk existingDisk - * @property {string|null} [deviceName] AttachedDisk deviceName - */ + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; - /** - * Constructs a new AttachedDisk. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @classdesc Represents an AttachedDisk. - * @implements IAttachedDisk - * @constructor - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk=} [properties] Properties to set - */ - function AttachedDisk(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]]; - } + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; - /** - * AttachedDisk newDisk. - * @member {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null|undefined} newDisk - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @instance - */ - AttachedDisk.prototype.newDisk = null; + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * AttachedDisk existingDisk. - * @member {string|null|undefined} existingDisk - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @instance - */ - AttachedDisk.prototype.existingDisk = null; + /** + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; - /** - * AttachedDisk deviceName. - * @member {string} deviceName - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @instance - */ - AttachedDisk.prototype.deviceName = ""; + return Http; + })(); - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + api.HttpRule = (function() { - /** - * AttachedDisk attached. - * @member {"newDisk"|"existingDisk"|undefined} attached - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @instance - */ - Object.defineProperty(AttachedDisk.prototype, "attached", { - get: $util.oneOfGetter($oneOfFields = ["newDisk", "existingDisk"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ - /** - * Creates a new AttachedDisk instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} AttachedDisk instance - */ - AttachedDisk.create = function create(properties) { - return new AttachedDisk(properties); - }; + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + 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]]; + } - /** - * Encodes the specified AttachedDisk message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk} message AttachedDisk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AttachedDisk.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.newDisk != null && Object.hasOwnProperty.call(message, "newDisk")) - $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.encode(message.newDisk, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.existingDisk != null && Object.hasOwnProperty.call(message, "existingDisk")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.existingDisk); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceName); - return writer; - }; + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; - /** - * Encodes the specified AttachedDisk message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAttachedDisk} message AttachedDisk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AttachedDisk.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; - /** - * Decodes an AttachedDisk message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} AttachedDisk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AttachedDisk.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.newDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.decode(reader, reader.uint32()); - break; - } - case 2: { - message.existingDisk = reader.string(); - break; - } - case 3: { - message.deviceName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; - /** - * Decodes an AttachedDisk message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} AttachedDisk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AttachedDisk.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; - /** - * Verifies an AttachedDisk message. - * @function verify - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AttachedDisk.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.newDisk != null && message.hasOwnProperty("newDisk")) { - properties.attached = 1; - { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify(message.newDisk); - if (error) - return "newDisk." + error; - } - } - if (message.existingDisk != null && message.hasOwnProperty("existingDisk")) { - if (properties.attached === 1) - return "attached: multiple values"; - properties.attached = 1; - if (!$util.isString(message.existingDisk)) - return "existingDisk: string expected"; - } - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - return null; - }; + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; - /** - * Creates an AttachedDisk message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} AttachedDisk - */ - AttachedDisk.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk) - return object; - var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk(); - if (object.newDisk != null) { - if (typeof object.newDisk !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.newDisk: object expected"); - message.newDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.fromObject(object.newDisk); - } - if (object.existingDisk != null) - message.existingDisk = String(object.existingDisk); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - return message; - }; + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; - /** - * Creates a plain object from an AttachedDisk message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk} message AttachedDisk - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AttachedDisk.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.deviceName = ""; - if (message.newDisk != null && message.hasOwnProperty("newDisk")) { - object.newDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.toObject(message.newDisk, options); - if (options.oneofs) - object.attached = "newDisk"; - } - if (message.existingDisk != null && message.hasOwnProperty("existingDisk")) { - object.existingDisk = message.existingDisk; - if (options.oneofs) - object.attached = "existingDisk"; - } - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - object.deviceName = message.deviceName; - return object; - }; + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; - /** - * Converts this AttachedDisk to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @instance - * @returns {Object.} JSON object - */ - AttachedDisk.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; - /** - * Gets the default type url for AttachedDisk - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AttachedDisk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk"; - }; + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; - return AttachedDisk; - })(); + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; - AllocationPolicy.Accelerator = (function() { + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Properties of an Accelerator. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @interface IAccelerator - * @property {string|null} [type] Accelerator type - * @property {number|Long|null} [count] Accelerator count - * @property {boolean|null} [installGpuDrivers] Accelerator installGpuDrivers - */ + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Constructs a new Accelerator. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @classdesc Represents an Accelerator. - * @implements IAccelerator - * @constructor - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator=} [properties] Properties to set - */ - function Accelerator(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]]; + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Accelerator type. - * @member {string} type - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @instance - */ - Accelerator.prototype.type = ""; + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Accelerator count. - * @member {number|Long} count - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @instance - */ - Accelerator.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; - /** - * Accelerator installGpuDrivers. - * @member {boolean} installGpuDrivers - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @instance - */ - Accelerator.prototype.installGpuDrivers = false; + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; - /** - * Creates a new Accelerator instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} Accelerator instance - */ - Accelerator.create = function create(properties) { - return new Accelerator(properties); - }; + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; - /** - * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator} message Accelerator message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Accelerator.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.count); - if (message.installGpuDrivers != null && Object.hasOwnProperty.call(message, "installGpuDrivers")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.installGpuDrivers); - return writer; - }; + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IAccelerator} message Accelerator message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Accelerator.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Gets the default type url for HttpRule + * @function getTypeUrl + * @memberof google.api.HttpRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.HttpRule"; + }; - /** - * Decodes an Accelerator message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} Accelerator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Accelerator.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.string(); - break; - } - case 2: { - message.count = reader.int64(); - break; - } - case 3: { - message.installGpuDrivers = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return HttpRule; + })(); - /** - * Decodes an Accelerator message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} Accelerator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Accelerator.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + api.CustomHttpPattern = (function() { - /** - * Verifies an Accelerator message. - * @function verify - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Accelerator.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) - return "count: integer|Long expected"; - if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) - if (typeof message.installGpuDrivers !== "boolean") - return "installGpuDrivers: boolean expected"; - return null; - }; + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ - /** - * Creates an Accelerator message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} Accelerator - */ - Accelerator.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator) - return object; - var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator(); - if (object.type != null) - message.type = String(object.type); - if (object.count != null) - if ($util.Long) - (message.count = $util.Long.fromValue(object.count)).unsigned = false; - else if (typeof object.count === "string") - message.count = parseInt(object.count, 10); - else if (typeof object.count === "number") - message.count = object.count; - else if (typeof object.count === "object") - message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); - if (object.installGpuDrivers != null) - message.installGpuDrivers = Boolean(object.installGpuDrivers); - return message; - }; - - /** - * Creates a plain object from an Accelerator message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} message Accelerator - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Accelerator.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.count = options.longs === String ? "0" : 0; - object.installGpuDrivers = false; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.count != null && message.hasOwnProperty("count")) - if (typeof message.count === "number") - object.count = options.longs === String ? String(message.count) : message.count; - else - object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; - if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) - object.installGpuDrivers = message.installGpuDrivers; - return object; - }; + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(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]]; + } - /** - * Converts this Accelerator to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @instance - * @returns {Object.} JSON object - */ - Accelerator.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; - /** - * Gets the default type url for Accelerator - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.Accelerator - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Accelerator.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.Accelerator"; - }; + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; - return Accelerator; - })(); + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; - AllocationPolicy.InstancePolicy = (function() { + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; - /** - * Properties of an InstancePolicy. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @interface IInstancePolicy - * @property {Array.|null} [allowedMachineTypes] InstancePolicy allowedMachineTypes - * @property {string|null} [machineType] InstancePolicy machineType - * @property {string|null} [minCpuPlatform] InstancePolicy minCpuPlatform - * @property {google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel|null} [provisioningModel] InstancePolicy provisioningModel - * @property {Array.|null} [accelerators] InstancePolicy accelerators - * @property {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null} [bootDisk] InstancePolicy bootDisk - * @property {Array.|null} [disks] InstancePolicy disks - * @property {string|null} [reservation] InstancePolicy reservation - */ + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new InstancePolicy. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @classdesc Represents an InstancePolicy. - * @implements IInstancePolicy - * @constructor - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy=} [properties] Properties to set - */ - function InstancePolicy(properties) { - this.allowedMachineTypes = []; - this.accelerators = []; - this.disks = []; - 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]]; + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.kind = reader.string(); + break; } + case 2: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * InstancePolicy allowedMachineTypes. - * @member {Array.} allowedMachineTypes - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.allowedMachineTypes = $util.emptyArray; + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * InstancePolicy machineType. - * @member {string} machineType - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.machineType = ""; + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; - /** - * InstancePolicy minCpuPlatform. - * @member {string} minCpuPlatform - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.minCpuPlatform = ""; + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; - /** - * InstancePolicy provisioningModel. - * @member {google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel} provisioningModel - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.provisioningModel = 0; + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; - /** - * InstancePolicy accelerators. - * @member {Array.} accelerators - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.accelerators = $util.emptyArray; + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * InstancePolicy bootDisk. - * @member {google.cloud.batch.v1alpha.AllocationPolicy.IDisk|null|undefined} bootDisk - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.bootDisk = null; + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; - /** - * InstancePolicy disks. - * @member {Array.} disks - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.disks = $util.emptyArray; + return CustomHttpPattern; + })(); - /** - * InstancePolicy reservation. - * @member {string} reservation - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @instance - */ - InstancePolicy.prototype.reservation = ""; + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + return values; + })(); - /** - * Creates a new InstancePolicy instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} InstancePolicy instance - */ - InstancePolicy.create = function create(properties) { - return new InstancePolicy(properties); - }; + api.ResourceDescriptor = (function() { - /** - * Encodes the specified InstancePolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy} message InstancePolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstancePolicy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allowedMachineTypes != null && message.allowedMachineTypes.length) - for (var i = 0; i < message.allowedMachineTypes.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowedMachineTypes[i]); - if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.machineType); - if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.minCpuPlatform); - if (message.provisioningModel != null && Object.hasOwnProperty.call(message, "provisioningModel")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.provisioningModel); - if (message.accelerators != null && message.accelerators.length) - for (var i = 0; i < message.accelerators.length; ++i) - $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.encode(message.accelerators[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.disks != null && message.disks.length) - for (var i = 0; i < message.disks.length; ++i) - $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.encode(message.disks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.reservation != null && Object.hasOwnProperty.call(message, "reservation")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.reservation); - if (message.bootDisk != null && Object.hasOwnProperty.call(message, "bootDisk")) - $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.encode(message.bootDisk, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; + /** + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + * @property {Array.|null} [style] ResourceDescriptor style + */ - /** - * Encodes the specified InstancePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy} message InstancePolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstancePolicy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor + * @constructor + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + */ + function ResourceDescriptor(properties) { + this.pattern = []; + this.style = []; + 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]]; + } - /** - * Decodes an InstancePolicy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} InstancePolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstancePolicy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.allowedMachineTypes && message.allowedMachineTypes.length)) - message.allowedMachineTypes = []; - message.allowedMachineTypes.push(reader.string()); - break; - } - case 2: { - message.machineType = reader.string(); - break; - } - case 3: { - message.minCpuPlatform = reader.string(); - break; - } - case 4: { - message.provisioningModel = reader.int32(); - break; - } - case 5: { - if (!(message.accelerators && message.accelerators.length)) - message.accelerators = []; - message.accelerators.push($root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.decode(reader, reader.uint32())); - break; - } - case 8: { - message.bootDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.disks && message.disks.length)) - message.disks = []; - message.disks.push($root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.decode(reader, reader.uint32())); - break; - } - case 7: { - message.reservation = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.type = ""; - /** - * Decodes an InstancePolicy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} InstancePolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstancePolicy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.pattern = $util.emptyArray; - /** - * Verifies an InstancePolicy message. - * @function verify - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InstancePolicy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allowedMachineTypes != null && message.hasOwnProperty("allowedMachineTypes")) { - if (!Array.isArray(message.allowedMachineTypes)) - return "allowedMachineTypes: array expected"; - for (var i = 0; i < message.allowedMachineTypes.length; ++i) - if (!$util.isString(message.allowedMachineTypes[i])) - return "allowedMachineTypes: string[] expected"; - } - if (message.machineType != null && message.hasOwnProperty("machineType")) - if (!$util.isString(message.machineType)) - return "machineType: string expected"; - if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) - if (!$util.isString(message.minCpuPlatform)) - return "minCpuPlatform: string expected"; - if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) - switch (message.provisioningModel) { - default: - return "provisioningModel: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.accelerators != null && message.hasOwnProperty("accelerators")) { - if (!Array.isArray(message.accelerators)) - return "accelerators: array expected"; - for (var i = 0; i < message.accelerators.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.verify(message.accelerators[i]); - if (error) - return "accelerators." + error; - } - } - if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.verify(message.bootDisk); - if (error) - return "bootDisk." + error; - } - if (message.disks != null && message.hasOwnProperty("disks")) { - if (!Array.isArray(message.disks)) - return "disks: array expected"; - for (var i = 0; i < message.disks.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.verify(message.disks[i]); - if (error) - return "disks." + error; - } - } - if (message.reservation != null && message.hasOwnProperty("reservation")) - if (!$util.isString(message.reservation)) - return "reservation: string expected"; - return null; - }; + /** + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.nameField = ""; - /** - * Creates an InstancePolicy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} InstancePolicy - */ - InstancePolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy) - return object; - var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy(); - if (object.allowedMachineTypes) { - if (!Array.isArray(object.allowedMachineTypes)) - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowedMachineTypes: array expected"); - message.allowedMachineTypes = []; - for (var i = 0; i < object.allowedMachineTypes.length; ++i) - message.allowedMachineTypes[i] = String(object.allowedMachineTypes[i]); - } - if (object.machineType != null) - message.machineType = String(object.machineType); - if (object.minCpuPlatform != null) - message.minCpuPlatform = String(object.minCpuPlatform); - switch (object.provisioningModel) { - default: - if (typeof object.provisioningModel === "number") { - message.provisioningModel = object.provisioningModel; - break; - } - break; - case "PROVISIONING_MODEL_UNSPECIFIED": - case 0: - message.provisioningModel = 0; - break; - case "STANDARD": - case 1: - message.provisioningModel = 1; - break; - case "SPOT": - case 2: - message.provisioningModel = 2; - break; - case "PREEMPTIBLE": - case 3: - message.provisioningModel = 3; - break; - } - if (object.accelerators) { - if (!Array.isArray(object.accelerators)) - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.accelerators: array expected"); - message.accelerators = []; - for (var i = 0; i < object.accelerators.length; ++i) { - if (typeof object.accelerators[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.accelerators: object expected"); - message.accelerators[i] = $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.fromObject(object.accelerators[i]); - } - } - if (object.bootDisk != null) { - if (typeof object.bootDisk !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.bootDisk: object expected"); - message.bootDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.fromObject(object.bootDisk); - } - if (object.disks) { - if (!Array.isArray(object.disks)) - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.disks: array expected"); - message.disks = []; - for (var i = 0; i < object.disks.length; ++i) { - if (typeof object.disks[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.disks: object expected"); - message.disks[i] = $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.fromObject(object.disks[i]); - } - } - if (object.reservation != null) - message.reservation = String(object.reservation); - return message; - }; + /** + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.history = 0; - /** - * Creates a plain object from an InstancePolicy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy} message InstancePolicy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InstancePolicy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.allowedMachineTypes = []; - object.accelerators = []; - object.disks = []; - } - if (options.defaults) { - object.machineType = ""; - object.minCpuPlatform = ""; - object.provisioningModel = options.enums === String ? "PROVISIONING_MODEL_UNSPECIFIED" : 0; - object.reservation = ""; - object.bootDisk = null; - } - if (message.allowedMachineTypes && message.allowedMachineTypes.length) { - object.allowedMachineTypes = []; - for (var j = 0; j < message.allowedMachineTypes.length; ++j) - object.allowedMachineTypes[j] = message.allowedMachineTypes[j]; - } - if (message.machineType != null && message.hasOwnProperty("machineType")) - object.machineType = message.machineType; - if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) - object.minCpuPlatform = message.minCpuPlatform; - if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) - object.provisioningModel = options.enums === String ? $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModel] === undefined ? message.provisioningModel : $root.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel[message.provisioningModel] : message.provisioningModel; - if (message.accelerators && message.accelerators.length) { - object.accelerators = []; - for (var j = 0; j < message.accelerators.length; ++j) - object.accelerators[j] = $root.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.toObject(message.accelerators[j], options); - } - if (message.disks && message.disks.length) { - object.disks = []; - for (var j = 0; j < message.disks.length; ++j) - object.disks[j] = $root.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.toObject(message.disks[j], options); - } - if (message.reservation != null && message.hasOwnProperty("reservation")) - object.reservation = message.reservation; - if (message.bootDisk != null && message.hasOwnProperty("bootDisk")) - object.bootDisk = $root.google.cloud.batch.v1alpha.AllocationPolicy.Disk.toObject(message.bootDisk, options); - return object; - }; + /** + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.plural = ""; - /** - * Converts this InstancePolicy to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @instance - * @returns {Object.} JSON object - */ - InstancePolicy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; - /** - * Gets the default type url for InstancePolicy - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InstancePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy"; - }; + /** + * ResourceDescriptor style. + * @member {Array.} style + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.style = $util.emptyArray; - return InstancePolicy; - })(); + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @function create + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + */ + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); + }; - AllocationPolicy.InstancePolicyOrTemplate = (function() { + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + if (message.style != null && message.style.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.style.length; ++i) + writer.int32(message.style[i]); + writer.ldelim(); + } + return writer; + }; - /** - * Properties of an InstancePolicyOrTemplate. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @interface IInstancePolicyOrTemplate - * @property {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null} [policy] InstancePolicyOrTemplate policy - * @property {string|null} [instanceTemplate] InstancePolicyOrTemplate instanceTemplate - * @property {boolean|null} [installGpuDrivers] InstancePolicyOrTemplate installGpuDrivers - */ + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new InstancePolicyOrTemplate. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @classdesc Represents an InstancePolicyOrTemplate. - * @implements IInstancePolicyOrTemplate - * @constructor - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate=} [properties] Properties to set - */ - function InstancePolicyOrTemplate(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]]; + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; } + case 2: { + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + } + case 3: { + message.nameField = reader.string(); + break; + } + case 4: { + message.history = reader.int32(); + break; + } + case 5: { + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else + message.style.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * InstancePolicyOrTemplate policy. - * @member {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicy|null|undefined} policy - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @instance - */ - InstancePolicyOrTemplate.prototype.policy = null; - - /** - * InstancePolicyOrTemplate instanceTemplate. - * @member {string|null|undefined} instanceTemplate - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @instance - */ - InstancePolicyOrTemplate.prototype.instanceTemplate = null; - - /** - * InstancePolicyOrTemplate installGpuDrivers. - * @member {boolean} installGpuDrivers - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @instance - */ - InstancePolicyOrTemplate.prototype.installGpuDrivers = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * InstancePolicyOrTemplate policyTemplate. - * @member {"policy"|"instanceTemplate"|undefined} policyTemplate - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @instance - */ - Object.defineProperty(InstancePolicyOrTemplate.prototype, "policyTemplate", { - get: $util.oneOfGetter($oneOfFields = ["policy", "instanceTemplate"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new InstancePolicyOrTemplate instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate instance - */ - InstancePolicyOrTemplate.create = function create(properties) { - return new InstancePolicyOrTemplate(properties); - }; + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified InstancePolicyOrTemplate message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate} message InstancePolicyOrTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstancePolicyOrTemplate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) - $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.encode(message.policy, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.instanceTemplate != null && Object.hasOwnProperty.call(message, "instanceTemplate")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.instanceTemplate); - if (message.installGpuDrivers != null && Object.hasOwnProperty.call(message, "installGpuDrivers")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.installGpuDrivers); - return writer; - }; - - /** - * Encodes the specified InstancePolicyOrTemplate message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.IInstancePolicyOrTemplate} message InstancePolicyOrTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InstancePolicyOrTemplate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a ResourceDescriptor message. + * @function verify + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + if (message.style != null && message.hasOwnProperty("style")) { + if (!Array.isArray(message.style)) + return "style: array expected"; + for (var i = 0; i < message.style.length; ++i) + switch (message.style[i]) { + default: + return "style: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; - /** - * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstancePolicyOrTemplate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.policy = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.decode(reader, reader.uint32()); - break; - } - case 2: { - message.instanceTemplate = reader.string(); - break; - } - case 3: { - message.installGpuDrivers = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); + } + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; + } + break; + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; + } + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + if (object.style) { + if (!Array.isArray(object.style)) + throw TypeError(".google.api.ResourceDescriptor.style: array expected"); + message.style = []; + for (var i = 0; i < object.style.length; ++i) + switch (object.style[i]) { + default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; } - return message; - }; - - /** - * Decodes an InstancePolicyOrTemplate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InstancePolicyOrTemplate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + case "STYLE_UNSPECIFIED": + case 0: + message.style[i] = 0; + break; + case "DECLARATIVE_FRIENDLY": + case 1: + message.style[i] = 1; + break; + } + } + return message; + }; - /** - * Verifies an InstancePolicyOrTemplate message. - * @function verify - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InstancePolicyOrTemplate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.policy != null && message.hasOwnProperty("policy")) { - properties.policyTemplate = 1; - { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.verify(message.policy); - if (error) - return "policy." + error; - } - } - if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) { - if (properties.policyTemplate === 1) - return "policyTemplate: multiple values"; - properties.policyTemplate = 1; - if (!$util.isString(message.instanceTemplate)) - return "instanceTemplate: string expected"; - } - if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) - if (typeof message.installGpuDrivers !== "boolean") - return "installGpuDrivers: boolean expected"; - return null; - }; + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.pattern = []; + object.style = []; + } + if (options.defaults) { + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + if (message.style && message.style.length) { + object.style = []; + for (var j = 0; j < message.style.length; ++j) + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + } + return object; + }; - /** - * Creates an InstancePolicyOrTemplate message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} InstancePolicyOrTemplate - */ - InstancePolicyOrTemplate.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate) - return object; - var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate(); - if (object.policy != null) { - if (typeof object.policy !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate.policy: object expected"); - message.policy = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.fromObject(object.policy); - } - if (object.instanceTemplate != null) - message.instanceTemplate = String(object.instanceTemplate); - if (object.installGpuDrivers != null) - message.installGpuDrivers = Boolean(object.installGpuDrivers); - return message; - }; + /** + * Converts this ResourceDescriptor to JSON. + * @function toJSON + * @memberof google.api.ResourceDescriptor + * @instance + * @returns {Object.} JSON object + */ + ResourceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from an InstancePolicyOrTemplate message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate} message InstancePolicyOrTemplate - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InstancePolicyOrTemplate.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.installGpuDrivers = false; - if (message.policy != null && message.hasOwnProperty("policy")) { - object.policy = $root.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.toObject(message.policy, options); - if (options.oneofs) - object.policyTemplate = "policy"; - } - if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) { - object.instanceTemplate = message.instanceTemplate; - if (options.oneofs) - object.policyTemplate = "instanceTemplate"; - } - if (message.installGpuDrivers != null && message.hasOwnProperty("installGpuDrivers")) - object.installGpuDrivers = message.installGpuDrivers; - return object; - }; + /** + * Gets the default type url for ResourceDescriptor + * @function getTypeUrl + * @memberof google.api.ResourceDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceDescriptor"; + }; - /** - * Converts this InstancePolicyOrTemplate to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @instance - * @returns {Object.} JSON object - */ - InstancePolicyOrTemplate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); - /** - * Gets the default type url for InstancePolicyOrTemplate - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InstancePolicyOrTemplate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate"; - }; + /** + * Style enum. + * @name google.api.ResourceDescriptor.Style + * @enum {number} + * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value + * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value + */ + ResourceDescriptor.Style = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; + return values; + })(); - return InstancePolicyOrTemplate; - })(); + return ResourceDescriptor; + })(); - AllocationPolicy.NetworkInterface = (function() { + api.ResourceReference = (function() { - /** - * Properties of a NetworkInterface. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @interface INetworkInterface - * @property {string|null} [network] NetworkInterface network - * @property {string|null} [subnetwork] NetworkInterface subnetwork - * @property {boolean|null} [noExternalIpAddress] NetworkInterface noExternalIpAddress - */ + /** + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType + */ - /** - * Constructs a new NetworkInterface. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @classdesc Represents a NetworkInterface. - * @implements INetworkInterface - * @constructor - * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface=} [properties] Properties to set - */ - function NetworkInterface(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]]; - } + /** + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference + * @constructor + * @param {google.api.IResourceReference=} [properties] Properties to set + */ + function ResourceReference(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]]; + } - /** - * NetworkInterface network. - * @member {string} network - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @instance - */ - NetworkInterface.prototype.network = ""; + /** + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.type = ""; - /** - * NetworkInterface subnetwork. - * @member {string} subnetwork - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @instance - */ - NetworkInterface.prototype.subnetwork = ""; + /** + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.childType = ""; - /** - * NetworkInterface noExternalIpAddress. - * @member {boolean} noExternalIpAddress - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @instance - */ - NetworkInterface.prototype.noExternalIpAddress = false; + /** + * Creates a new ResourceReference instance using the specified properties. + * @function create + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance + */ + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); + }; - /** - * Creates a new NetworkInterface instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} NetworkInterface instance - */ - NetworkInterface.create = function create(properties) { - return new NetworkInterface(properties); - }; - - /** - * Encodes the specified NetworkInterface message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface} message NetworkInterface message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkInterface.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); - if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); - if (message.noExternalIpAddress != null && Object.hasOwnProperty.call(message, "noExternalIpAddress")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.noExternalIpAddress); - return writer; - }; + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + return writer; + }; - /** - * Encodes the specified NetworkInterface message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkInterface} message NetworkInterface message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkInterface.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a NetworkInterface message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} NetworkInterface - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkInterface.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.network = reader.string(); - break; - } - case 2: { - message.subnetwork = reader.string(); - break; - } - case 3: { - message.noExternalIpAddress = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.childType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a NetworkInterface message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} NetworkInterface - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkInterface.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a NetworkInterface message. - * @function verify - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NetworkInterface.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - if (!$util.isString(message.subnetwork)) - return "subnetwork: string expected"; - if (message.noExternalIpAddress != null && message.hasOwnProperty("noExternalIpAddress")) - if (typeof message.noExternalIpAddress !== "boolean") - return "noExternalIpAddress: boolean expected"; - return null; - }; + /** + * Verifies a ResourceReference message. + * @function verify + * @memberof google.api.ResourceReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; + return null; + }; - /** - * Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} NetworkInterface - */ - NetworkInterface.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface) - return object; - var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface(); - if (object.network != null) - message.network = String(object.network); - if (object.subnetwork != null) - message.subnetwork = String(object.subnetwork); - if (object.noExternalIpAddress != null) - message.noExternalIpAddress = Boolean(object.noExternalIpAddress); - return message; - }; + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceReference + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceReference} ResourceReference + */ + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) + return object; + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); + return message; + }; - /** - * Creates a plain object from a NetworkInterface message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface} message NetworkInterface - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetworkInterface.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.network = ""; - object.subnetwork = ""; - object.noExternalIpAddress = false; - } - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - object.subnetwork = message.subnetwork; - if (message.noExternalIpAddress != null && message.hasOwnProperty("noExternalIpAddress")) - object.noExternalIpAddress = message.noExternalIpAddress; - return object; - }; + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceReference + * @static + * @param {google.api.ResourceReference} message ResourceReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + object.childType = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; + return object; + }; - /** - * Converts this NetworkInterface to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @instance - * @returns {Object.} JSON object - */ - NetworkInterface.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ResourceReference to JSON. + * @function toJSON + * @memberof google.api.ResourceReference + * @instance + * @returns {Object.} JSON object + */ + ResourceReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for NetworkInterface - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetworkInterface.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface"; - }; + /** + * Gets the default type url for ResourceReference + * @function getTypeUrl + * @memberof google.api.ResourceReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceReference"; + }; - return NetworkInterface; - })(); + return ResourceReference; + })(); - AllocationPolicy.NetworkPolicy = (function() { + return api; + })(); - /** - * Properties of a NetworkPolicy. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @interface INetworkPolicy - * @property {Array.|null} [networkInterfaces] NetworkPolicy networkInterfaces - */ + google.protobuf = (function() { - /** - * Constructs a new NetworkPolicy. - * @memberof google.cloud.batch.v1alpha.AllocationPolicy - * @classdesc Represents a NetworkPolicy. - * @implements INetworkPolicy - * @constructor - * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy=} [properties] Properties to set - */ - function NetworkPolicy(properties) { - this.networkInterfaces = []; - 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]]; - } + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; - /** - * NetworkPolicy networkInterfaces. - * @member {Array.} networkInterfaces - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @instance - */ - NetworkPolicy.prototype.networkInterfaces = $util.emptyArray; + protobuf.FileDescriptorSet = (function() { - /** - * Creates a new NetworkPolicy instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} NetworkPolicy instance - */ - NetworkPolicy.create = function create(properties) { - return new NetworkPolicy(properties); - }; + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ - /** - * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy} message NetworkPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkPolicy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.networkInterfaces != null && message.networkInterfaces.length) - for (var i = 0; i < message.networkInterfaces.length; ++i) - $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.encode(message.networkInterfaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + 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]]; + } - /** - * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.INetworkPolicy} message NetworkPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; - /** - * Decodes a NetworkPolicy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} NetworkPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkPolicy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.networkInterfaces && message.networkInterfaces.length)) - message.networkInterfaces = []; - message.networkInterfaces.push($root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; - /** - * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} NetworkPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Verifies a NetworkPolicy message. - * @function verify - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NetworkPolicy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.networkInterfaces != null && message.hasOwnProperty("networkInterfaces")) { - if (!Array.isArray(message.networkInterfaces)) - return "networkInterfaces: array expected"; - for (var i = 0; i < message.networkInterfaces.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.verify(message.networkInterfaces[i]); - if (error) - return "networkInterfaces." + error; - } - } - return null; - }; + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} NetworkPolicy - */ - NetworkPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy) - return object; - var message = new $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy(); - if (object.networkInterfaces) { - if (!Array.isArray(object.networkInterfaces)) - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.networkInterfaces: array expected"); - message.networkInterfaces = []; - for (var i = 0; i < object.networkInterfaces.length; ++i) { - if (typeof object.networkInterfaces[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy.networkInterfaces: object expected"); - message.networkInterfaces[i] = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.fromObject(object.networkInterfaces[i]); - } - } - return message; - }; + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @static - * @param {google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy} message NetworkPolicy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NetworkPolicy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.networkInterfaces = []; - if (message.networkInterfaces && message.networkInterfaces.length) { - object.networkInterfaces = []; - for (var j = 0; j < message.networkInterfaces.length; ++j) - object.networkInterfaces[j] = $root.google.cloud.batch.v1alpha.AllocationPolicy.NetworkInterface.toObject(message.networkInterfaces[j], options); - } - return object; - }; + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this NetworkPolicy to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @instance - * @returns {Object.} JSON object - */ - NetworkPolicy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; - /** - * Gets the default type url for NetworkPolicy - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.AllocationPolicy.NetworkPolicy"; - }; + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; - return NetworkPolicy; - })(); + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; - /** - * ProvisioningModel enum. - * @name google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel - * @enum {number} - * @property {number} PROVISIONING_MODEL_UNSPECIFIED=0 PROVISIONING_MODEL_UNSPECIFIED value - * @property {number} STANDARD=1 STANDARD value - * @property {number} SPOT=2 SPOT value - * @property {number} PREEMPTIBLE=3 PREEMPTIBLE value - */ - AllocationPolicy.ProvisioningModel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PROVISIONING_MODEL_UNSPECIFIED"] = 0; - values[valuesById[1] = "STANDARD"] = 1; - values[valuesById[2] = "SPOT"] = 2; - values[valuesById[3] = "PREEMPTIBLE"] = 3; - return values; - })(); + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return AllocationPolicy; - })(); + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; - v1alpha.TaskGroup = (function() { + return FileDescriptorSet; + })(); - /** - * Properties of a TaskGroup. - * @memberof google.cloud.batch.v1alpha - * @interface ITaskGroup - * @property {string|null} [name] TaskGroup name - * @property {google.cloud.batch.v1alpha.ITaskSpec|null} [taskSpec] TaskGroup taskSpec - * @property {number|Long|null} [taskCount] TaskGroup taskCount - * @property {number|Long|null} [parallelism] TaskGroup parallelism - * @property {google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy|null} [schedulingPolicy] TaskGroup schedulingPolicy - * @property {google.cloud.batch.v1alpha.IAllocationPolicy|null} [allocationPolicy] TaskGroup allocationPolicy - * @property {Object.|null} [labels] TaskGroup labels - * @property {Array.|null} [taskEnvironments] TaskGroup taskEnvironments - * @property {number|Long|null} [taskCountPerNode] TaskGroup taskCountPerNode - * @property {boolean|null} [requireHostsFile] TaskGroup requireHostsFile - * @property {boolean|null} [permissiveSsh] TaskGroup permissiveSsh - */ + protobuf.FileDescriptorProto = (function() { - /** - * Constructs a new TaskGroup. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a TaskGroup. - * @implements ITaskGroup - * @constructor - * @param {google.cloud.batch.v1alpha.ITaskGroup=} [properties] Properties to set - */ - function TaskGroup(properties) { - this.labels = {}; - this.taskEnvironments = []; - 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]]; - } + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {string|null} [edition] FileDescriptorProto edition + */ - /** - * TaskGroup name. - * @member {string} name - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.name = ""; + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + 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]]; + } - /** - * TaskGroup taskSpec. - * @member {google.cloud.batch.v1alpha.ITaskSpec|null|undefined} taskSpec - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.taskSpec = null; + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; - /** - * TaskGroup taskCount. - * @member {number|Long} taskCount - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.taskCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; - /** - * TaskGroup parallelism. - * @member {number|Long} parallelism - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.parallelism = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; - /** - * TaskGroup schedulingPolicy. - * @member {google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy} schedulingPolicy - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.schedulingPolicy = 0; + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; - /** - * TaskGroup allocationPolicy. - * @member {google.cloud.batch.v1alpha.IAllocationPolicy|null|undefined} allocationPolicy - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.allocationPolicy = null; + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; - /** - * TaskGroup labels. - * @member {Object.} labels - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.labels = $util.emptyObject; + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; - /** - * TaskGroup taskEnvironments. - * @member {Array.} taskEnvironments - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.taskEnvironments = $util.emptyArray; + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; - /** - * TaskGroup taskCountPerNode. - * @member {number|Long} taskCountPerNode - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.taskCountPerNode = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; - /** - * TaskGroup requireHostsFile. - * @member {boolean} requireHostsFile - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.requireHostsFile = false; + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; - /** - * TaskGroup permissiveSsh. - * @member {boolean} permissiveSsh - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - */ - TaskGroup.prototype.permissiveSsh = false; + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; - /** - * Creates a new TaskGroup instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @static - * @param {google.cloud.batch.v1alpha.ITaskGroup=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.TaskGroup} TaskGroup instance - */ - TaskGroup.create = function create(properties) { - return new TaskGroup(properties); - }; + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; - /** - * Encodes the specified TaskGroup message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskGroup.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @static - * @param {google.cloud.batch.v1alpha.ITaskGroup} message TaskGroup message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGroup.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.taskSpec != null && Object.hasOwnProperty.call(message, "taskSpec")) - $root.google.cloud.batch.v1alpha.TaskSpec.encode(message.taskSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.taskCount != null && Object.hasOwnProperty.call(message, "taskCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.taskCount); - if (message.parallelism != null && Object.hasOwnProperty.call(message, "parallelism")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.parallelism); - if (message.schedulingPolicy != null && Object.hasOwnProperty.call(message, "schedulingPolicy")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.schedulingPolicy); - if (message.allocationPolicy != null && Object.hasOwnProperty.call(message, "allocationPolicy")) - $root.google.cloud.batch.v1alpha.AllocationPolicy.encode(message.allocationPolicy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.taskEnvironments != null && message.taskEnvironments.length) - for (var i = 0; i < message.taskEnvironments.length; ++i) - $root.google.cloud.batch.v1alpha.Environment.encode(message.taskEnvironments[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.taskCountPerNode != null && Object.hasOwnProperty.call(message, "taskCountPerNode")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.taskCountPerNode); - if (message.requireHostsFile != null && Object.hasOwnProperty.call(message, "requireHostsFile")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.requireHostsFile); - if (message.permissiveSsh != null && Object.hasOwnProperty.call(message, "permissiveSsh")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.permissiveSsh); - return writer; - }; + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; - /** - * Encodes the specified TaskGroup message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskGroup.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @static - * @param {google.cloud.batch.v1alpha.ITaskGroup} message TaskGroup message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGroup.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * FileDescriptorProto edition. + * @member {string} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = ""; - /** - * Decodes a TaskGroup message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.TaskGroup} TaskGroup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGroup.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.TaskGroup(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.taskSpec = $root.google.cloud.batch.v1alpha.TaskSpec.decode(reader, reader.uint32()); - break; - } - case 4: { - message.taskCount = reader.int64(); - break; - } - case 5: { - message.parallelism = reader.int64(); - break; - } - case 6: { - message.schedulingPolicy = reader.int32(); - break; - } - case 7: { - message.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.decode(reader, reader.uint32()); - break; - } - case 8: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 9: { - if (!(message.taskEnvironments && message.taskEnvironments.length)) - message.taskEnvironments = []; - message.taskEnvironments.push($root.google.cloud.batch.v1alpha.Environment.decode(reader, reader.uint32())); - break; - } - case 10: { - message.taskCountPerNode = reader.int64(); - break; - } - case 11: { - message.requireHostsFile = reader.bool(); - break; - } - case 12: { - message.permissiveSsh = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; - /** - * Decodes a TaskGroup message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.TaskGroup} TaskGroup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGroup.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); + return writer; + }; - /** - * Verifies a TaskGroup message. - * @function verify - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskGroup.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.taskSpec != null && message.hasOwnProperty("taskSpec")) { - var error = $root.google.cloud.batch.v1alpha.TaskSpec.verify(message.taskSpec); - if (error) - return "taskSpec." + error; + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; } - if (message.taskCount != null && message.hasOwnProperty("taskCount")) - if (!$util.isInteger(message.taskCount) && !(message.taskCount && $util.isInteger(message.taskCount.low) && $util.isInteger(message.taskCount.high))) - return "taskCount: integer|Long expected"; - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - if (!$util.isInteger(message.parallelism) && !(message.parallelism && $util.isInteger(message.parallelism.low) && $util.isInteger(message.parallelism.high))) - return "parallelism: integer|Long expected"; - if (message.schedulingPolicy != null && message.hasOwnProperty("schedulingPolicy")) - switch (message.schedulingPolicy) { - default: - return "schedulingPolicy: enum value expected"; - case 0: - case 1: - break; - } - if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) { - var error = $root.google.cloud.batch.v1alpha.AllocationPolicy.verify(message.allocationPolicy); - if (error) - return "allocationPolicy." + error; + case 2: { + message["package"] = reader.string(); + break; } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; } - if (message.taskEnvironments != null && message.hasOwnProperty("taskEnvironments")) { - if (!Array.isArray(message.taskEnvironments)) - return "taskEnvironments: array expected"; - for (var i = 0; i < message.taskEnvironments.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.Environment.verify(message.taskEnvironments[i]); - if (error) - return "taskEnvironments." + error; - } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; } - if (message.taskCountPerNode != null && message.hasOwnProperty("taskCountPerNode")) - if (!$util.isInteger(message.taskCountPerNode) && !(message.taskCountPerNode && $util.isInteger(message.taskCountPerNode.low) && $util.isInteger(message.taskCountPerNode.high))) - return "taskCountPerNode: integer|Long expected"; - if (message.requireHostsFile != null && message.hasOwnProperty("requireHostsFile")) - if (typeof message.requireHostsFile !== "boolean") - return "requireHostsFile: boolean expected"; - if (message.permissiveSsh != null && message.hasOwnProperty("permissiveSsh")) - if (typeof message.permissiveSsh !== "boolean") - return "permissiveSsh: boolean expected"; - return null; - }; - - /** - * Creates a TaskGroup message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.TaskGroup} TaskGroup - */ - TaskGroup.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.TaskGroup) - return object; - var message = new $root.google.cloud.batch.v1alpha.TaskGroup(); - if (object.name != null) - message.name = String(object.name); - if (object.taskSpec != null) { - if (typeof object.taskSpec !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.taskSpec: object expected"); - message.taskSpec = $root.google.cloud.batch.v1alpha.TaskSpec.fromObject(object.taskSpec); + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; } - if (object.taskCount != null) - if ($util.Long) - (message.taskCount = $util.Long.fromValue(object.taskCount)).unsigned = false; - else if (typeof object.taskCount === "string") - message.taskCount = parseInt(object.taskCount, 10); - else if (typeof object.taskCount === "number") - message.taskCount = object.taskCount; - else if (typeof object.taskCount === "object") - message.taskCount = new $util.LongBits(object.taskCount.low >>> 0, object.taskCount.high >>> 0).toNumber(); - if (object.parallelism != null) - if ($util.Long) - (message.parallelism = $util.Long.fromValue(object.parallelism)).unsigned = false; - else if (typeof object.parallelism === "string") - message.parallelism = parseInt(object.parallelism, 10); - else if (typeof object.parallelism === "number") - message.parallelism = object.parallelism; - else if (typeof object.parallelism === "object") - message.parallelism = new $util.LongBits(object.parallelism.low >>> 0, object.parallelism.high >>> 0).toNumber(); - switch (object.schedulingPolicy) { - default: - if (typeof object.schedulingPolicy === "number") { - message.schedulingPolicy = object.schedulingPolicy; - break; - } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); break; - case "SCHEDULING_POLICY_UNSPECIFIED": - case 0: - message.schedulingPolicy = 0; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); break; - case "AS_SOON_AS_POSSIBLE": - case 1: - message.schedulingPolicy = 1; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); break; } - if (object.allocationPolicy != null) { - if (typeof object.allocationPolicy !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.allocationPolicy: object expected"); - message.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.fromObject(object.allocationPolicy); + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; } - if (object.taskEnvironments) { - if (!Array.isArray(object.taskEnvironments)) - throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.taskEnvironments: array expected"); - message.taskEnvironments = []; - for (var i = 0; i < object.taskEnvironments.length; ++i) { - if (typeof object.taskEnvironments[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskGroup.taskEnvironments: object expected"); - message.taskEnvironments[i] = $root.google.cloud.batch.v1alpha.Environment.fromObject(object.taskEnvironments[i]); - } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; } - if (object.taskCountPerNode != null) - if ($util.Long) - (message.taskCountPerNode = $util.Long.fromValue(object.taskCountPerNode)).unsigned = false; - else if (typeof object.taskCountPerNode === "string") - message.taskCountPerNode = parseInt(object.taskCountPerNode, 10); - else if (typeof object.taskCountPerNode === "number") - message.taskCountPerNode = object.taskCountPerNode; - else if (typeof object.taskCountPerNode === "object") - message.taskCountPerNode = new $util.LongBits(object.taskCountPerNode.low >>> 0, object.taskCountPerNode.high >>> 0).toNumber(); - if (object.requireHostsFile != null) - message.requireHostsFile = Boolean(object.requireHostsFile); - if (object.permissiveSsh != null) - message.permissiveSsh = Boolean(object.permissiveSsh); - return message; - }; - - /** - * Creates a plain object from a TaskGroup message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @static - * @param {google.cloud.batch.v1alpha.TaskGroup} message TaskGroup - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TaskGroup.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.taskEnvironments = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.taskSpec = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.parallelism = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.parallelism = options.longs === String ? "0" : 0; - object.schedulingPolicy = options.enums === String ? "SCHEDULING_POLICY_UNSPECIFIED" : 0; - object.allocationPolicy = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskCountPerNode = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskCountPerNode = options.longs === String ? "0" : 0; - object.requireHostsFile = false; - object.permissiveSsh = false; + case 12: { + message.syntax = reader.string(); + break; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.taskSpec != null && message.hasOwnProperty("taskSpec")) - object.taskSpec = $root.google.cloud.batch.v1alpha.TaskSpec.toObject(message.taskSpec, options); - if (message.taskCount != null && message.hasOwnProperty("taskCount")) - if (typeof message.taskCount === "number") - object.taskCount = options.longs === String ? String(message.taskCount) : message.taskCount; - else - object.taskCount = options.longs === String ? $util.Long.prototype.toString.call(message.taskCount) : options.longs === Number ? new $util.LongBits(message.taskCount.low >>> 0, message.taskCount.high >>> 0).toNumber() : message.taskCount; - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - if (typeof message.parallelism === "number") - object.parallelism = options.longs === String ? String(message.parallelism) : message.parallelism; - else - object.parallelism = options.longs === String ? $util.Long.prototype.toString.call(message.parallelism) : options.longs === Number ? new $util.LongBits(message.parallelism.low >>> 0, message.parallelism.high >>> 0).toNumber() : message.parallelism; - if (message.schedulingPolicy != null && message.hasOwnProperty("schedulingPolicy")) - object.schedulingPolicy = options.enums === String ? $root.google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy[message.schedulingPolicy] === undefined ? message.schedulingPolicy : $root.google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy[message.schedulingPolicy] : message.schedulingPolicy; - if (message.allocationPolicy != null && message.hasOwnProperty("allocationPolicy")) - object.allocationPolicy = $root.google.cloud.batch.v1alpha.AllocationPolicy.toObject(message.allocationPolicy, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.taskEnvironments && message.taskEnvironments.length) { - object.taskEnvironments = []; - for (var j = 0; j < message.taskEnvironments.length; ++j) - object.taskEnvironments[j] = $root.google.cloud.batch.v1alpha.Environment.toObject(message.taskEnvironments[j], options); + case 13: { + message.edition = reader.string(); + break; } - if (message.taskCountPerNode != null && message.hasOwnProperty("taskCountPerNode")) - if (typeof message.taskCountPerNode === "number") - object.taskCountPerNode = options.longs === String ? String(message.taskCountPerNode) : message.taskCountPerNode; - else - object.taskCountPerNode = options.longs === String ? $util.Long.prototype.toString.call(message.taskCountPerNode) : options.longs === Number ? new $util.LongBits(message.taskCountPerNode.low >>> 0, message.taskCountPerNode.high >>> 0).toNumber() : message.taskCountPerNode; - if (message.requireHostsFile != null && message.hasOwnProperty("requireHostsFile")) - object.requireHostsFile = message.requireHostsFile; - if (message.permissiveSsh != null && message.hasOwnProperty("permissiveSsh")) - object.permissiveSsh = message.permissiveSsh; - return object; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this TaskGroup to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @instance - * @returns {Object.} JSON object - */ - TaskGroup.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for TaskGroup - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.TaskGroup - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TaskGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.TaskGroup"; - }; + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + if (!$util.isString(message.edition)) + return "edition: string expected"; + return null; + }; - /** - * SchedulingPolicy enum. - * @name google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy - * @enum {number} - * @property {number} SCHEDULING_POLICY_UNSPECIFIED=0 SCHEDULING_POLICY_UNSPECIFIED value - * @property {number} AS_SOON_AS_POSSIBLE=1 AS_SOON_AS_POSSIBLE value - */ - TaskGroup.SchedulingPolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SCHEDULING_POLICY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AS_SOON_AS_POSSIBLE"] = 1; - return values; - })(); + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + if (object.edition != null) + message.edition = String(object.edition); + return message; + }; - return TaskGroup; - })(); + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + object.edition = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = message.edition; + return object; + }; - v1alpha.ServiceAccount = (function() { + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a ServiceAccount. - * @memberof google.cloud.batch.v1alpha - * @interface IServiceAccount - * @property {string|null} [email] ServiceAccount email - * @property {Array.|null} [scopes] ServiceAccount scopes - */ + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; - /** - * Constructs a new ServiceAccount. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a ServiceAccount. - * @implements IServiceAccount - * @constructor - * @param {google.cloud.batch.v1alpha.IServiceAccount=} [properties] Properties to set - */ - function ServiceAccount(properties) { - this.scopes = []; - 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]]; - } + return FileDescriptorProto; + })(); - /** - * ServiceAccount email. - * @member {string} email - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @instance - */ - ServiceAccount.prototype.email = ""; + protobuf.DescriptorProto = (function() { - /** - * ServiceAccount scopes. - * @member {Array.} scopes - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @instance - */ - ServiceAccount.prototype.scopes = $util.emptyArray; + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ - /** - * Creates a new ServiceAccount instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @static - * @param {google.cloud.batch.v1alpha.IServiceAccount=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.ServiceAccount} ServiceAccount instance - */ - ServiceAccount.create = function create(properties) { - return new ServiceAccount(properties); - }; + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } - /** - * Encodes the specified ServiceAccount message. Does not implicitly {@link google.cloud.batch.v1alpha.ServiceAccount.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @static - * @param {google.cloud.batch.v1alpha.IServiceAccount} message ServiceAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceAccount.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); - if (message.scopes != null && message.scopes.length) - for (var i = 0; i < message.scopes.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.scopes[i]); - return writer; - }; + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; - /** - * Encodes the specified ServiceAccount message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ServiceAccount.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @static - * @param {google.cloud.batch.v1alpha.IServiceAccount} message ServiceAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceAccount.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; - /** - * Decodes a ServiceAccount message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.ServiceAccount} ServiceAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceAccount.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ServiceAccount(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.email = reader.string(); - break; - } - case 2: { - if (!(message.scopes && message.scopes.length)) - message.scopes = []; - message.scopes.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; - /** - * Decodes a ServiceAccount message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.ServiceAccount} ServiceAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceAccount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; - /** - * Verifies a ServiceAccount message. - * @function verify - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceAccount.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.scopes != null && message.hasOwnProperty("scopes")) { - if (!Array.isArray(message.scopes)) - return "scopes: array expected"; - for (var i = 0; i < message.scopes.length; ++i) - if (!$util.isString(message.scopes[i])) - return "scopes: string[] expected"; - } - return null; - }; + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; - /** - * Creates a ServiceAccount message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.ServiceAccount} ServiceAccount - */ - ServiceAccount.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.ServiceAccount) - return object; - var message = new $root.google.cloud.batch.v1alpha.ServiceAccount(); - if (object.email != null) - message.email = String(object.email); - if (object.scopes) { - if (!Array.isArray(object.scopes)) - throw TypeError(".google.cloud.batch.v1alpha.ServiceAccount.scopes: array expected"); - message.scopes = []; - for (var i = 0; i < object.scopes.length; ++i) - message.scopes[i] = String(object.scopes[i]); - } - return message; - }; + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; - /** - * Creates a plain object from a ServiceAccount message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @static - * @param {google.cloud.batch.v1alpha.ServiceAccount} message ServiceAccount - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ServiceAccount.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.scopes = []; - if (options.defaults) - object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.scopes && message.scopes.length) { - object.scopes = []; - for (var j = 0; j < message.scopes.length; ++j) - object.scopes[j] = message.scopes[j]; - } - return object; - }; + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; - /** - * Converts this ServiceAccount to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @instance - * @returns {Object.} JSON object - */ - ServiceAccount.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; - /** - * Gets the default type url for ServiceAccount - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.ServiceAccount - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ServiceAccount.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.ServiceAccount"; - }; + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; - return ServiceAccount; - })(); + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; - v1alpha.ComputeResource = (function() { + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; - /** - * Properties of a ComputeResource. - * @memberof google.cloud.batch.v1alpha - * @interface IComputeResource - * @property {number|Long|null} [cpuMilli] ComputeResource cpuMilli - * @property {number|Long|null} [memoryMib] ComputeResource memoryMib - * @property {number|Long|null} [gpuCount] ComputeResource gpuCount - * @property {number|Long|null} [bootDiskMib] ComputeResource bootDiskMib - */ + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; - /** - * Constructs a new ComputeResource. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a ComputeResource. - * @implements IComputeResource - * @constructor - * @param {google.cloud.batch.v1alpha.IComputeResource=} [properties] Properties to set - */ - function ComputeResource(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]]; + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; - /** - * ComputeResource cpuMilli. - * @member {number|Long} cpuMilli - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @instance - */ - ComputeResource.prototype.cpuMilli = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * ComputeResource memoryMib. - * @member {number|Long} memoryMib - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @instance - */ - ComputeResource.prototype.memoryMib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; - /** - * ComputeResource gpuCount. - * @member {number|Long} gpuCount - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @instance - */ - ComputeResource.prototype.gpuCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; - /** - * ComputeResource bootDiskMib. - * @member {number|Long} bootDiskMib - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @instance - */ - ComputeResource.prototype.bootDiskMib = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; - /** - * Creates a new ComputeResource instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @static - * @param {google.cloud.batch.v1alpha.IComputeResource=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.ComputeResource} ComputeResource instance - */ - ComputeResource.create = function create(properties) { - return new ComputeResource(properties); - }; + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified ComputeResource message. Does not implicitly {@link google.cloud.batch.v1alpha.ComputeResource.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @static - * @param {google.cloud.batch.v1alpha.IComputeResource} message ComputeResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComputeResource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cpuMilli != null && Object.hasOwnProperty.call(message, "cpuMilli")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.cpuMilli); - if (message.memoryMib != null && Object.hasOwnProperty.call(message, "memoryMib")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.memoryMib); - if (message.gpuCount != null && Object.hasOwnProperty.call(message, "gpuCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.gpuCount); - if (message.bootDiskMib != null && Object.hasOwnProperty.call(message, "bootDiskMib")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.bootDiskMib); - return writer; - }; + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; - /** - * Encodes the specified ComputeResource message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.ComputeResource.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @static - * @param {google.cloud.batch.v1alpha.IComputeResource} message ComputeResource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComputeResource.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + DescriptorProto.ExtensionRange = (function() { - /** - * Decodes a ComputeResource message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.ComputeResource} ComputeResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComputeResource.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.ComputeResource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.cpuMilli = reader.int64(); - break; - } - case 2: { - message.memoryMib = reader.int64(); - break; - } - case 3: { - message.gpuCount = reader.int64(); - break; - } - case 4: { - message.bootDiskMib = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(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]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a ComputeResource message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.ComputeResource} ComputeResource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComputeResource.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ComputeResource message. - * @function verify - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ComputeResource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cpuMilli != null && message.hasOwnProperty("cpuMilli")) - if (!$util.isInteger(message.cpuMilli) && !(message.cpuMilli && $util.isInteger(message.cpuMilli.low) && $util.isInteger(message.cpuMilli.high))) - return "cpuMilli: integer|Long expected"; - if (message.memoryMib != null && message.hasOwnProperty("memoryMib")) - if (!$util.isInteger(message.memoryMib) && !(message.memoryMib && $util.isInteger(message.memoryMib.low) && $util.isInteger(message.memoryMib.high))) - return "memoryMib: integer|Long expected"; - if (message.gpuCount != null && message.hasOwnProperty("gpuCount")) - if (!$util.isInteger(message.gpuCount) && !(message.gpuCount && $util.isInteger(message.gpuCount.low) && $util.isInteger(message.gpuCount.high))) - return "gpuCount: integer|Long expected"; - if (message.bootDiskMib != null && message.hasOwnProperty("bootDiskMib")) - if (!$util.isInteger(message.bootDiskMib) && !(message.bootDiskMib && $util.isInteger(message.bootDiskMib.low) && $util.isInteger(message.bootDiskMib.high))) - return "bootDiskMib: integer|Long expected"; - return null; - }; + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; - /** - * Creates a ComputeResource message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.ComputeResource} ComputeResource - */ - ComputeResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.ComputeResource) - return object; - var message = new $root.google.cloud.batch.v1alpha.ComputeResource(); - if (object.cpuMilli != null) - if ($util.Long) - (message.cpuMilli = $util.Long.fromValue(object.cpuMilli)).unsigned = false; - else if (typeof object.cpuMilli === "string") - message.cpuMilli = parseInt(object.cpuMilli, 10); - else if (typeof object.cpuMilli === "number") - message.cpuMilli = object.cpuMilli; - else if (typeof object.cpuMilli === "object") - message.cpuMilli = new $util.LongBits(object.cpuMilli.low >>> 0, object.cpuMilli.high >>> 0).toNumber(); - if (object.memoryMib != null) - if ($util.Long) - (message.memoryMib = $util.Long.fromValue(object.memoryMib)).unsigned = false; - else if (typeof object.memoryMib === "string") - message.memoryMib = parseInt(object.memoryMib, 10); - else if (typeof object.memoryMib === "number") - message.memoryMib = object.memoryMib; - else if (typeof object.memoryMib === "object") - message.memoryMib = new $util.LongBits(object.memoryMib.low >>> 0, object.memoryMib.high >>> 0).toNumber(); - if (object.gpuCount != null) - if ($util.Long) - (message.gpuCount = $util.Long.fromValue(object.gpuCount)).unsigned = false; - else if (typeof object.gpuCount === "string") - message.gpuCount = parseInt(object.gpuCount, 10); - else if (typeof object.gpuCount === "number") - message.gpuCount = object.gpuCount; - else if (typeof object.gpuCount === "object") - message.gpuCount = new $util.LongBits(object.gpuCount.low >>> 0, object.gpuCount.high >>> 0).toNumber(); - if (object.bootDiskMib != null) - if ($util.Long) - (message.bootDiskMib = $util.Long.fromValue(object.bootDiskMib)).unsigned = false; - else if (typeof object.bootDiskMib === "string") - message.bootDiskMib = parseInt(object.bootDiskMib, 10); - else if (typeof object.bootDiskMib === "number") - message.bootDiskMib = object.bootDiskMib; - else if (typeof object.bootDiskMib === "object") - message.bootDiskMib = new $util.LongBits(object.bootDiskMib.low >>> 0, object.bootDiskMib.high >>> 0).toNumber(); - return message; - }; + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; - /** - * Creates a plain object from a ComputeResource message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @static - * @param {google.cloud.batch.v1alpha.ComputeResource} message ComputeResource - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ComputeResource.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.cpuMilli = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.cpuMilli = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.memoryMib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.memoryMib = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.gpuCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.gpuCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.bootDiskMib = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.bootDiskMib = options.longs === String ? "0" : 0; + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(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]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (message.cpuMilli != null && message.hasOwnProperty("cpuMilli")) - if (typeof message.cpuMilli === "number") - object.cpuMilli = options.longs === String ? String(message.cpuMilli) : message.cpuMilli; - else - object.cpuMilli = options.longs === String ? $util.Long.prototype.toString.call(message.cpuMilli) : options.longs === Number ? new $util.LongBits(message.cpuMilli.low >>> 0, message.cpuMilli.high >>> 0).toNumber() : message.cpuMilli; - if (message.memoryMib != null && message.hasOwnProperty("memoryMib")) - if (typeof message.memoryMib === "number") - object.memoryMib = options.longs === String ? String(message.memoryMib) : message.memoryMib; - else - object.memoryMib = options.longs === String ? $util.Long.prototype.toString.call(message.memoryMib) : options.longs === Number ? new $util.LongBits(message.memoryMib.low >>> 0, message.memoryMib.high >>> 0).toNumber() : message.memoryMib; - if (message.gpuCount != null && message.hasOwnProperty("gpuCount")) - if (typeof message.gpuCount === "number") - object.gpuCount = options.longs === String ? String(message.gpuCount) : message.gpuCount; - else - object.gpuCount = options.longs === String ? $util.Long.prototype.toString.call(message.gpuCount) : options.longs === Number ? new $util.LongBits(message.gpuCount.low >>> 0, message.gpuCount.high >>> 0).toNumber() : message.gpuCount; - if (message.bootDiskMib != null && message.hasOwnProperty("bootDiskMib")) - if (typeof message.bootDiskMib === "number") - object.bootDiskMib = options.longs === String ? String(message.bootDiskMib) : message.bootDiskMib; - else - object.bootDiskMib = options.longs === String ? $util.Long.prototype.toString.call(message.bootDiskMib) : options.longs === Number ? new $util.LongBits(message.bootDiskMib.low >>> 0, message.bootDiskMib.high >>> 0).toNumber() : message.bootDiskMib; + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) return object; - }; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * Converts this ComputeResource to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @instance - * @returns {Object.} JSON object - */ - ComputeResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + }; + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(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]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + case 17: { + message.proto3Optional = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; + break; + } + break; + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); - /** - * Gets the default type url for ComputeResource - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.ComputeResource - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ComputeResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.ComputeResource"; - }; + return FieldDescriptorProto; + })(); - return ComputeResource; - })(); + protobuf.OneofDescriptorProto = (function() { - v1alpha.StatusEvent = (function() { + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ - /** - * Properties of a StatusEvent. - * @memberof google.cloud.batch.v1alpha - * @interface IStatusEvent - * @property {string|null} [type] StatusEvent type - * @property {string|null} [description] StatusEvent description - * @property {google.protobuf.ITimestamp|null} [eventTime] StatusEvent eventTime - * @property {google.cloud.batch.v1alpha.ITaskExecution|null} [taskExecution] StatusEvent taskExecution - */ + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(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]]; + } - /** - * Constructs a new StatusEvent. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a StatusEvent. - * @implements IStatusEvent - * @constructor - * @param {google.cloud.batch.v1alpha.IStatusEvent=} [properties] Properties to set - */ - function StatusEvent(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]]; - } + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; - /** - * StatusEvent type. - * @member {string} type - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @instance - */ - StatusEvent.prototype.type = ""; + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; - /** - * StatusEvent description. - * @member {string} description - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @instance - */ - StatusEvent.prototype.description = ""; + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; - /** - * StatusEvent eventTime. - * @member {google.protobuf.ITimestamp|null|undefined} eventTime - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @instance - */ - StatusEvent.prototype.eventTime = null; + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * StatusEvent taskExecution. - * @member {google.cloud.batch.v1alpha.ITaskExecution|null|undefined} taskExecution - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @instance - */ - StatusEvent.prototype.taskExecution = null; + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new StatusEvent instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @static - * @param {google.cloud.batch.v1alpha.IStatusEvent=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.StatusEvent} StatusEvent instance - */ - StatusEvent.create = function create(properties) { - return new StatusEvent(properties); - }; + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified StatusEvent message. Does not implicitly {@link google.cloud.batch.v1alpha.StatusEvent.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @static - * @param {google.cloud.batch.v1alpha.IStatusEvent} message StatusEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatusEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); - if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) - $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); - if (message.taskExecution != null && Object.hasOwnProperty.call(message, "taskExecution")) - $root.google.cloud.batch.v1alpha.TaskExecution.encode(message.taskExecution, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified StatusEvent message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.StatusEvent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @static - * @param {google.cloud.batch.v1alpha.IStatusEvent} message StatusEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatusEvent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; - /** - * Decodes a StatusEvent message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.StatusEvent} StatusEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatusEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.StatusEvent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: { - message.type = reader.string(); - break; - } - case 1: { - message.description = reader.string(); - break; - } - case 2: { - message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.taskExecution = $root.google.cloud.batch.v1alpha.TaskExecution.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; - /** - * Decodes a StatusEvent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.StatusEvent} StatusEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatusEvent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; - /** - * Verifies a StatusEvent message. - * @function verify - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StatusEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.eventTime); - if (error) - return "eventTime." + error; - } - if (message.taskExecution != null && message.hasOwnProperty("taskExecution")) { - var error = $root.google.cloud.batch.v1alpha.TaskExecution.verify(message.taskExecution); - if (error) - return "taskExecution." + error; - } - return null; - }; + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a StatusEvent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.StatusEvent} StatusEvent - */ - StatusEvent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.StatusEvent) - return object; - var message = new $root.google.cloud.batch.v1alpha.StatusEvent(); - if (object.type != null) - message.type = String(object.type); - if (object.description != null) - message.description = String(object.description); - if (object.eventTime != null) { - if (typeof object.eventTime !== "object") - throw TypeError(".google.cloud.batch.v1alpha.StatusEvent.eventTime: object expected"); - message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime); - } - if (object.taskExecution != null) { - if (typeof object.taskExecution !== "object") - throw TypeError(".google.cloud.batch.v1alpha.StatusEvent.taskExecution: object expected"); - message.taskExecution = $root.google.cloud.batch.v1alpha.TaskExecution.fromObject(object.taskExecution); - } - return message; - }; + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; - /** - * Creates a plain object from a StatusEvent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @static - * @param {google.cloud.batch.v1alpha.StatusEvent} message StatusEvent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StatusEvent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.description = ""; - object.eventTime = null; - object.type = ""; - object.taskExecution = null; - } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) - object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options); - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.taskExecution != null && message.hasOwnProperty("taskExecution")) - object.taskExecution = $root.google.cloud.batch.v1alpha.TaskExecution.toObject(message.taskExecution, options); - return object; - }; + return OneofDescriptorProto; + })(); - /** - * Converts this StatusEvent to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @instance - * @returns {Object.} JSON object - */ - StatusEvent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + protobuf.EnumDescriptorProto = (function() { - /** - * Gets the default type url for StatusEvent - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.StatusEvent - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StatusEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.StatusEvent"; - }; + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + */ - return StatusEvent; - })(); + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } - v1alpha.TaskExecution = (function() { + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; - /** - * Properties of a TaskExecution. - * @memberof google.cloud.batch.v1alpha - * @interface ITaskExecution - * @property {number|null} [exitCode] TaskExecution exitCode - */ + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; - /** - * Constructs a new TaskExecution. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a TaskExecution. - * @implements ITaskExecution - * @constructor - * @param {google.cloud.batch.v1alpha.ITaskExecution=} [properties] Properties to set - */ - function TaskExecution(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]]; - } + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; - /** - * TaskExecution exitCode. - * @member {number} exitCode - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @instance - */ - TaskExecution.prototype.exitCode = 0; + /** + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; - /** - * Creates a new TaskExecution instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @static - * @param {google.cloud.batch.v1alpha.ITaskExecution=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.TaskExecution} TaskExecution instance - */ - TaskExecution.create = function create(properties) { - return new TaskExecution(properties); - }; + /** + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskExecution.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @static - * @param {google.cloud.batch.v1alpha.ITaskExecution} message TaskExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exitCode != null && Object.hasOwnProperty.call(message, "exitCode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.exitCode); - return writer; - }; + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; - /** - * Encodes the specified TaskExecution message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskExecution.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @static - * @param {google.cloud.batch.v1alpha.ITaskExecution} message TaskExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecution.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + return writer; + }; - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.TaskExecution} TaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.TaskExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.exitCode = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TaskExecution message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.TaskExecution} TaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecution.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a TaskExecution message. - * @function verify - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.exitCode != null && message.hasOwnProperty("exitCode")) - if (!$util.isInteger(message.exitCode)) - return "exitCode: integer expected"; - return null; - }; + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a TaskExecution message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.TaskExecution} TaskExecution - */ - TaskExecution.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.TaskExecution) - return object; - var message = new $root.google.cloud.batch.v1alpha.TaskExecution(); - if (object.exitCode != null) - message.exitCode = object.exitCode | 0; - return message; - }; + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; - /** - * Creates a plain object from a TaskExecution message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @static - * @param {google.cloud.batch.v1alpha.TaskExecution} message TaskExecution - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TaskExecution.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.exitCode = 0; - if (message.exitCode != null && message.hasOwnProperty("exitCode")) - object.exitCode = message.exitCode; - return object; - }; + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; - /** - * Converts this TaskExecution to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @instance - * @returns {Object.} JSON object - */ - TaskExecution.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; - /** - * Gets the default type url for TaskExecution - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.TaskExecution - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TaskExecution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.TaskExecution"; - }; + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TaskExecution; - })(); + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; - v1alpha.TaskStatus = (function() { + EnumDescriptorProto.EnumReservedRange = (function() { - /** - * Properties of a TaskStatus. - * @memberof google.cloud.batch.v1alpha - * @interface ITaskStatus - * @property {google.cloud.batch.v1alpha.TaskStatus.State|null} [state] TaskStatus state - * @property {Array.|null} [statusEvents] TaskStatus statusEvents - */ + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ - /** - * Constructs a new TaskStatus. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a TaskStatus. - * @implements ITaskStatus - * @constructor - * @param {google.cloud.batch.v1alpha.ITaskStatus=} [properties] Properties to set - */ - function TaskStatus(properties) { - this.statusEvents = []; - 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]]; - } + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(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]]; + } - /** - * TaskStatus state. - * @member {google.cloud.batch.v1alpha.TaskStatus.State} state - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @instance - */ - TaskStatus.prototype.state = 0; + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; - /** - * TaskStatus statusEvents. - * @member {Array.} statusEvents - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @instance - */ - TaskStatus.prototype.statusEvents = $util.emptyArray; + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; - /** - * Creates a new TaskStatus instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @static - * @param {google.cloud.batch.v1alpha.ITaskStatus=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.TaskStatus} TaskStatus instance - */ - TaskStatus.create = function create(properties) { - return new TaskStatus(properties); - }; + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; - /** - * Encodes the specified TaskStatus message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskStatus.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @static - * @param {google.cloud.batch.v1alpha.ITaskStatus} message TaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.statusEvents != null && message.statusEvents.length) - for (var i = 0; i < message.statusEvents.length; ++i) - $root.google.cloud.batch.v1alpha.StatusEvent.encode(message.statusEvents[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; - /** - * Encodes the specified TaskStatus message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @static - * @param {google.cloud.batch.v1alpha.ITaskStatus} message TaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TaskStatus message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.TaskStatus} TaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.TaskStatus(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.state = reader.int32(); - break; - } - case 2: { - if (!(message.statusEvents && message.statusEvents.length)) - message.statusEvents = []; - message.statusEvents.push($root.google.cloud.batch.v1alpha.StatusEvent.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); break; } - } - return message; - }; - - /** - * Decodes a TaskStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.TaskStatus} TaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TaskStatus message. - * @function verify - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: + case 2: { + message.end = reader.int32(); break; } - if (message.statusEvents != null && message.hasOwnProperty("statusEvents")) { - if (!Array.isArray(message.statusEvents)) - return "statusEvents: array expected"; - for (var i = 0; i < message.statusEvents.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.StatusEvent.verify(message.statusEvents[i]); - if (error) - return "statusEvents." + error; - } - } - return null; - }; - - /** - * Creates a TaskStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.TaskStatus} TaskStatus - */ - TaskStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.TaskStatus) - return object; - var message = new $root.google.cloud.batch.v1alpha.TaskStatus(); - switch (object.state) { default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "ASSIGNED": - case 2: - message.state = 2; - break; - case "RUNNING": - case 3: - message.state = 3; - break; - case "FAILED": - case 4: - message.state = 4; - break; - case "SUCCEEDED": - case 5: - message.state = 5; + reader.skipType(tag & 7); break; } - if (object.statusEvents) { - if (!Array.isArray(object.statusEvents)) - throw TypeError(".google.cloud.batch.v1alpha.TaskStatus.statusEvents: array expected"); - message.statusEvents = []; - for (var i = 0; i < object.statusEvents.length; ++i) { - if (typeof object.statusEvents[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskStatus.statusEvents: object expected"); - message.statusEvents[i] = $root.google.cloud.batch.v1alpha.StatusEvent.fromObject(object.statusEvents[i]); - } - } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a TaskStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @static - * @param {google.cloud.batch.v1alpha.TaskStatus} message TaskStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TaskStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.statusEvents = []; - if (options.defaults) - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.batch.v1alpha.TaskStatus.State[message.state] === undefined ? message.state : $root.google.cloud.batch.v1alpha.TaskStatus.State[message.state] : message.state; - if (message.statusEvents && message.statusEvents.length) { - object.statusEvents = []; - for (var j = 0; j < message.statusEvents.length; ++j) - object.statusEvents[j] = $root.google.cloud.batch.v1alpha.StatusEvent.toObject(message.statusEvents[j], options); - } + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) return object; - }; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * Converts this TaskStatus to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @instance - * @returns {Object.} JSON object - */ - TaskStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * Gets the default type url for TaskStatus - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.TaskStatus - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.TaskStatus"; - }; + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * State enum. - * @name google.cloud.batch.v1alpha.TaskStatus.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} ASSIGNED=2 ASSIGNED value - * @property {number} RUNNING=3 RUNNING value - * @property {number} FAILED=4 FAILED value - * @property {number} SUCCEEDED=5 SUCCEEDED value - */ - TaskStatus.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "ASSIGNED"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "FAILED"] = 4; - values[valuesById[5] = "SUCCEEDED"] = 5; - return values; - })(); + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ - return TaskStatus; - })(); + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(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]]; + } - v1alpha.Runnable = (function() { + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; - /** - * Properties of a Runnable. - * @memberof google.cloud.batch.v1alpha - * @interface IRunnable - * @property {google.cloud.batch.v1alpha.Runnable.IContainer|null} [container] Runnable container - * @property {google.cloud.batch.v1alpha.Runnable.IScript|null} [script] Runnable script - * @property {google.cloud.batch.v1alpha.Runnable.IBarrier|null} [barrier] Runnable barrier - * @property {boolean|null} [ignoreExitStatus] Runnable ignoreExitStatus - * @property {boolean|null} [background] Runnable background - * @property {boolean|null} [alwaysRun] Runnable alwaysRun - * @property {google.cloud.batch.v1alpha.IEnvironment|null} [environment] Runnable environment - * @property {google.protobuf.IDuration|null} [timeout] Runnable timeout - * @property {Object.|null} [labels] Runnable labels - */ + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; - /** - * Constructs a new Runnable. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a Runnable. - * @implements IRunnable - * @constructor - * @param {google.cloud.batch.v1alpha.IRunnable=} [properties] Properties to set - */ - function Runnable(properties) { - this.labels = {}; - 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]]; - } + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; - /** - * Runnable container. - * @member {google.cloud.batch.v1alpha.Runnable.IContainer|null|undefined} container - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Runnable.prototype.container = null; + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; - /** - * Runnable script. - * @member {google.cloud.batch.v1alpha.Runnable.IScript|null|undefined} script - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Runnable.prototype.script = null; + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Runnable barrier. - * @member {google.cloud.batch.v1alpha.Runnable.IBarrier|null|undefined} barrier - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Runnable.prototype.barrier = null; + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Runnable ignoreExitStatus. - * @member {boolean} ignoreExitStatus - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Runnable.prototype.ignoreExitStatus = false; + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Runnable background. - * @member {boolean} background - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Runnable.prototype.background = false; + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Runnable alwaysRun. - * @member {boolean} alwaysRun - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Runnable.prototype.alwaysRun = false; + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; - /** - * Runnable environment. - * @member {google.cloud.batch.v1alpha.IEnvironment|null|undefined} environment - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Runnable.prototype.environment = null; + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; - /** - * Runnable timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Runnable.prototype.timeout = null; + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; - /** - * Runnable labels. - * @member {Object.} labels - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Runnable.prototype.labels = $util.emptyObject; + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; - /** - * Runnable executable. - * @member {"container"|"script"|"barrier"|undefined} executable - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - */ - Object.defineProperty(Runnable.prototype, "executable", { - get: $util.oneOfGetter($oneOfFields = ["container", "script", "barrier"]), - set: $util.oneOfSetter($oneOfFields) - }); + return EnumValueDescriptorProto; + })(); - /** - * Creates a new Runnable instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.Runnable - * @static - * @param {google.cloud.batch.v1alpha.IRunnable=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.Runnable} Runnable instance - */ - Runnable.create = function create(properties) { - return new Runnable(properties); - }; + protobuf.ServiceDescriptorProto = (function() { - /** - * Encodes the specified Runnable message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.Runnable - * @static - * @param {google.cloud.batch.v1alpha.IRunnable} message Runnable message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Runnable.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.container != null && Object.hasOwnProperty.call(message, "container")) - $root.google.cloud.batch.v1alpha.Runnable.Container.encode(message.container, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.script != null && Object.hasOwnProperty.call(message, "script")) - $root.google.cloud.batch.v1alpha.Runnable.Script.encode(message.script, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.ignoreExitStatus != null && Object.hasOwnProperty.call(message, "ignoreExitStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ignoreExitStatus); - if (message.background != null && Object.hasOwnProperty.call(message, "background")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.background); - if (message.alwaysRun != null && Object.hasOwnProperty.call(message, "alwaysRun")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.alwaysRun); - if (message.barrier != null && Object.hasOwnProperty.call(message, "barrier")) - $root.google.cloud.batch.v1alpha.Runnable.Barrier.encode(message.barrier, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.batch.v1alpha.Environment.encode(message.environment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - return writer; - }; + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ - /** - * Encodes the specified Runnable message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.Runnable - * @static - * @param {google.cloud.batch.v1alpha.IRunnable} message Runnable message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Runnable.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + 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]]; + } - /** - * Decodes a Runnable message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.Runnable - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.Runnable} Runnable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Runnable.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Runnable(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.container = $root.google.cloud.batch.v1alpha.Runnable.Container.decode(reader, reader.uint32()); - break; - } - case 2: { - message.script = $root.google.cloud.batch.v1alpha.Runnable.Script.decode(reader, reader.uint32()); - break; - } - case 6: { - message.barrier = $root.google.cloud.batch.v1alpha.Runnable.Barrier.decode(reader, reader.uint32()); - break; - } - case 3: { - message.ignoreExitStatus = reader.bool(); - break; - } - case 4: { - message.background = reader.bool(); - break; - } - case 5: { - message.alwaysRun = reader.bool(); - break; - } - case 7: { - message.environment = $root.google.cloud.batch.v1alpha.Environment.decode(reader, reader.uint32()); - break; - } - case 8: { - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 9: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; - /** - * Decodes a Runnable message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.Runnable - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.Runnable} Runnable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Runnable.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; - /** - * Verifies a Runnable message. - * @function verify - * @memberof google.cloud.batch.v1alpha.Runnable - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Runnable.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.container != null && message.hasOwnProperty("container")) { - properties.executable = 1; - { - var error = $root.google.cloud.batch.v1alpha.Runnable.Container.verify(message.container); - if (error) - return "container." + error; - } - } - if (message.script != null && message.hasOwnProperty("script")) { - if (properties.executable === 1) - return "executable: multiple values"; - properties.executable = 1; - { - var error = $root.google.cloud.batch.v1alpha.Runnable.Script.verify(message.script); - if (error) - return "script." + error; - } - } - if (message.barrier != null && message.hasOwnProperty("barrier")) { - if (properties.executable === 1) - return "executable: multiple values"; - properties.executable = 1; - { - var error = $root.google.cloud.batch.v1alpha.Runnable.Barrier.verify(message.barrier); - if (error) - return "barrier." + error; - } - } - if (message.ignoreExitStatus != null && message.hasOwnProperty("ignoreExitStatus")) - if (typeof message.ignoreExitStatus !== "boolean") - return "ignoreExitStatus: boolean expected"; - if (message.background != null && message.hasOwnProperty("background")) - if (typeof message.background !== "boolean") - return "background: boolean expected"; - if (message.alwaysRun != null && message.hasOwnProperty("alwaysRun")) - if (typeof message.alwaysRun !== "boolean") - return "alwaysRun: boolean expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.batch.v1alpha.Environment.verify(message.environment); - if (error) - return "environment." + error; - } - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - return null; - }; + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; - /** - * Creates a Runnable message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.Runnable - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.Runnable} Runnable - */ - Runnable.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.Runnable) - return object; - var message = new $root.google.cloud.batch.v1alpha.Runnable(); - if (object.container != null) { - if (typeof object.container !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Runnable.container: object expected"); - message.container = $root.google.cloud.batch.v1alpha.Runnable.Container.fromObject(object.container); - } - if (object.script != null) { - if (typeof object.script !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Runnable.script: object expected"); - message.script = $root.google.cloud.batch.v1alpha.Runnable.Script.fromObject(object.script); - } - if (object.barrier != null) { - if (typeof object.barrier !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Runnable.barrier: object expected"); - message.barrier = $root.google.cloud.batch.v1alpha.Runnable.Barrier.fromObject(object.barrier); - } - if (object.ignoreExitStatus != null) - message.ignoreExitStatus = Boolean(object.ignoreExitStatus); - if (object.background != null) - message.background = Boolean(object.background); - if (object.alwaysRun != null) - message.alwaysRun = Boolean(object.alwaysRun); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Runnable.environment: object expected"); - message.environment = $root.google.cloud.batch.v1alpha.Environment.fromObject(object.environment); - } - if (object.timeout != null) { - if (typeof object.timeout !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Runnable.timeout: object expected"); - message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Runnable.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - return message; - }; + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Creates a plain object from a Runnable message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.Runnable - * @static - * @param {google.cloud.batch.v1alpha.Runnable} message Runnable - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Runnable.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.ignoreExitStatus = false; - object.background = false; - object.alwaysRun = false; - object.environment = null; - object.timeout = null; - } - if (message.container != null && message.hasOwnProperty("container")) { - object.container = $root.google.cloud.batch.v1alpha.Runnable.Container.toObject(message.container, options); - if (options.oneofs) - object.executable = "container"; - } - if (message.script != null && message.hasOwnProperty("script")) { - object.script = $root.google.cloud.batch.v1alpha.Runnable.Script.toObject(message.script, options); - if (options.oneofs) - object.executable = "script"; - } - if (message.ignoreExitStatus != null && message.hasOwnProperty("ignoreExitStatus")) - object.ignoreExitStatus = message.ignoreExitStatus; - if (message.background != null && message.hasOwnProperty("background")) - object.background = message.background; - if (message.alwaysRun != null && message.hasOwnProperty("alwaysRun")) - object.alwaysRun = message.alwaysRun; - if (message.barrier != null && message.hasOwnProperty("barrier")) { - object.barrier = $root.google.cloud.batch.v1alpha.Runnable.Barrier.toObject(message.barrier, options); - if (options.oneofs) - object.executable = "barrier"; + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.batch.v1alpha.Environment.toObject(message.environment, options); - if (message.timeout != null && message.hasOwnProperty("timeout")) - object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; } - return object; - }; - - /** - * Converts this Runnable to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.Runnable - * @instance - * @returns {Object.} JSON object - */ - Runnable.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Runnable - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.Runnable - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Runnable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.Runnable"; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - Runnable.Container = (function() { + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a Container. - * @memberof google.cloud.batch.v1alpha.Runnable - * @interface IContainer - * @property {string|null} [imageUri] Container imageUri - * @property {Array.|null} [commands] Container commands - * @property {string|null} [entrypoint] Container entrypoint - * @property {Array.|null} [volumes] Container volumes - * @property {string|null} [options] Container options - * @property {boolean|null} [blockExternalNetwork] Container blockExternalNetwork - * @property {string|null} [username] Container username - * @property {string|null} [password] Container password - */ + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; - /** - * Constructs a new Container. - * @memberof google.cloud.batch.v1alpha.Runnable - * @classdesc Represents a Container. - * @implements IContainer - * @constructor - * @param {google.cloud.batch.v1alpha.Runnable.IContainer=} [properties] Properties to set - */ - function Container(properties) { - this.commands = []; - this.volumes = []; - 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]]; - } + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; - /** - * Container imageUri. - * @member {string} imageUri - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @instance - */ - Container.prototype.imageUri = ""; + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; - /** - * Container commands. - * @member {Array.} commands - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @instance - */ - Container.prototype.commands = $util.emptyArray; + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Container entrypoint. - * @member {string} entrypoint - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @instance - */ - Container.prototype.entrypoint = ""; + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; - /** - * Container volumes. - * @member {Array.} volumes - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @instance - */ - Container.prototype.volumes = $util.emptyArray; + return ServiceDescriptorProto; + })(); - /** - * Container options. - * @member {string} options - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @instance - */ - Container.prototype.options = ""; + protobuf.MethodDescriptorProto = (function() { - /** - * Container blockExternalNetwork. - * @member {boolean} blockExternalNetwork - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @instance - */ - Container.prototype.blockExternalNetwork = false; + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ - /** - * Container username. - * @member {string} username - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @instance - */ - Container.prototype.username = ""; + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(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]]; + } - /** - * Container password. - * @member {string} password - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @instance - */ - Container.prototype.password = ""; + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; - /** - * Creates a new Container instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @static - * @param {google.cloud.batch.v1alpha.Runnable.IContainer=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.Runnable.Container} Container instance - */ - Container.create = function create(properties) { - return new Container(properties); - }; + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; - /** - * Encodes the specified Container message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Container.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @static - * @param {google.cloud.batch.v1alpha.Runnable.IContainer} message Container message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Container.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); - if (message.commands != null && message.commands.length) - for (var i = 0; i < message.commands.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.commands[i]); - if (message.entrypoint != null && Object.hasOwnProperty.call(message, "entrypoint")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.entrypoint); - if (message.volumes != null && message.volumes.length) - for (var i = 0; i < message.volumes.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.volumes[i]); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.options); - if (message.blockExternalNetwork != null && Object.hasOwnProperty.call(message, "blockExternalNetwork")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.blockExternalNetwork); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.password); - return writer; - }; + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; - /** - * Encodes the specified Container message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Container.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @static - * @param {google.cloud.batch.v1alpha.Runnable.IContainer} message Container message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Container.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; - /** - * Decodes a Container message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.Runnable.Container} Container - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Container.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Runnable.Container(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.imageUri = reader.string(); - break; - } - case 2: { - if (!(message.commands && message.commands.length)) - message.commands = []; - message.commands.push(reader.string()); - break; - } - case 3: { - message.entrypoint = reader.string(); - break; - } - case 7: { - if (!(message.volumes && message.volumes.length)) - message.volumes = []; - message.volumes.push(reader.string()); - break; - } - case 8: { - message.options = reader.string(); - break; - } - case 9: { - message.blockExternalNetwork = reader.bool(); - break; - } - case 10: { - message.username = reader.string(); - break; - } - case 11: { - message.password = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; - /** - * Decodes a Container message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.Runnable.Container} Container - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Container.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; - /** - * Verifies a Container message. - * @function verify - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Container.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - if (!$util.isString(message.imageUri)) - return "imageUri: string expected"; - if (message.commands != null && message.hasOwnProperty("commands")) { - if (!Array.isArray(message.commands)) - return "commands: array expected"; - for (var i = 0; i < message.commands.length; ++i) - if (!$util.isString(message.commands[i])) - return "commands: string[] expected"; - } - if (message.entrypoint != null && message.hasOwnProperty("entrypoint")) - if (!$util.isString(message.entrypoint)) - return "entrypoint: string expected"; - if (message.volumes != null && message.hasOwnProperty("volumes")) { - if (!Array.isArray(message.volumes)) - return "volumes: array expected"; - for (var i = 0; i < message.volumes.length; ++i) - if (!$util.isString(message.volumes[i])) - return "volumes: string[] expected"; - } - if (message.options != null && message.hasOwnProperty("options")) - if (!$util.isString(message.options)) - return "options: string expected"; - if (message.blockExternalNetwork != null && message.hasOwnProperty("blockExternalNetwork")) - if (typeof message.blockExternalNetwork !== "boolean") - return "blockExternalNetwork: boolean expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - return null; - }; + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; - /** - * Creates a Container message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.Runnable.Container} Container - */ - Container.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.Runnable.Container) - return object; - var message = new $root.google.cloud.batch.v1alpha.Runnable.Container(); - if (object.imageUri != null) - message.imageUri = String(object.imageUri); - if (object.commands) { - if (!Array.isArray(object.commands)) - throw TypeError(".google.cloud.batch.v1alpha.Runnable.Container.commands: array expected"); - message.commands = []; - for (var i = 0; i < object.commands.length; ++i) - message.commands[i] = String(object.commands[i]); - } - if (object.entrypoint != null) - message.entrypoint = String(object.entrypoint); - if (object.volumes) { - if (!Array.isArray(object.volumes)) - throw TypeError(".google.cloud.batch.v1alpha.Runnable.Container.volumes: array expected"); - message.volumes = []; - for (var i = 0; i < object.volumes.length; ++i) - message.volumes[i] = String(object.volumes[i]); - } - if (object.options != null) - message.options = String(object.options); - if (object.blockExternalNetwork != null) - message.blockExternalNetwork = Boolean(object.blockExternalNetwork); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - return message; - }; + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; - /** - * Creates a plain object from a Container message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @static - * @param {google.cloud.batch.v1alpha.Runnable.Container} message Container - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Container.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.commands = []; - object.volumes = []; - } - if (options.defaults) { - object.imageUri = ""; - object.entrypoint = ""; - object.options = ""; - object.blockExternalNetwork = false; - object.username = ""; - object.password = ""; - } - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - object.imageUri = message.imageUri; - if (message.commands && message.commands.length) { - object.commands = []; - for (var j = 0; j < message.commands.length; ++j) - object.commands[j] = message.commands[j]; - } - if (message.entrypoint != null && message.hasOwnProperty("entrypoint")) - object.entrypoint = message.entrypoint; - if (message.volumes && message.volumes.length) { - object.volumes = []; - for (var j = 0; j < message.volumes.length; ++j) - object.volumes[j] = message.volumes[j]; - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = message.options; - if (message.blockExternalNetwork != null && message.hasOwnProperty("blockExternalNetwork")) - object.blockExternalNetwork = message.blockExternalNetwork; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - return object; - }; + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this Container to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @instance - * @returns {Object.} JSON object - */ - Container.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Gets the default type url for Container - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.Runnable.Container - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Container.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.Runnable.Container"; - }; + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return Container; - })(); + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; - Runnable.Script = (function() { + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); + return message; + }; - /** - * Properties of a Script. - * @memberof google.cloud.batch.v1alpha.Runnable - * @interface IScript - * @property {string|null} [path] Script path - * @property {string|null} [text] Script text - */ + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; + return object; + }; - /** - * Constructs a new Script. - * @memberof google.cloud.batch.v1alpha.Runnable - * @classdesc Represents a Script. - * @implements IScript - * @constructor - * @param {google.cloud.batch.v1alpha.Runnable.IScript=} [properties] Properties to set - */ - function Script(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]]; - } + /** + * Converts this MethodDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.MethodDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + MethodDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Script path. - * @member {string|null|undefined} path - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @instance - */ - Script.prototype.path = null; + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; - /** - * Script text. - * @member {string|null|undefined} text - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @instance - */ - Script.prototype.text = null; + return MethodDescriptorProto; + })(); - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + protobuf.FileOptions = (function() { - /** - * Script command. - * @member {"path"|"text"|undefined} command - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @instance - */ - Object.defineProperty(Script.prototype, "command", { - get: $util.oneOfGetter($oneOfFields = ["path", "text"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition + */ - /** - * Creates a new Script instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @static - * @param {google.cloud.batch.v1alpha.Runnable.IScript=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.Runnable.Script} Script instance - */ - Script.create = function create(properties) { - return new Script(properties); - }; + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; + 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]]; + } - /** - * Encodes the specified Script message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Script.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @static - * @param {google.cloud.batch.v1alpha.Runnable.IScript} message Script message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Script.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.text); - return writer; - }; + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; - /** - * Encodes the specified Script message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Script.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @static - * @param {google.cloud.batch.v1alpha.Runnable.IScript} message Script message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Script.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; - /** - * Decodes a Script message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.Runnable.Script} Script - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Script.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Runnable.Script(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.path = reader.string(); - break; - } - case 2: { - message.text = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; - /** - * Decodes a Script message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.Runnable.Script} Script - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Script.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; - /** - * Verifies a Script message. - * @function verify - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Script.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.path != null && message.hasOwnProperty("path")) { - properties.command = 1; - if (!$util.isString(message.path)) - return "path: string expected"; - } - if (message.text != null && message.hasOwnProperty("text")) { - if (properties.command === 1) - return "command: multiple values"; - properties.command = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - return null; - }; + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; - /** - * Creates a Script message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.Runnable.Script} Script - */ - Script.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.Runnable.Script) - return object; - var message = new $root.google.cloud.batch.v1alpha.Runnable.Script(); - if (object.path != null) - message.path = String(object.path); - if (object.text != null) - message.text = String(object.text); - return message; - }; + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; - /** - * Creates a plain object from a Script message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @static - * @param {google.cloud.batch.v1alpha.Runnable.Script} message Script - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Script.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.path != null && message.hasOwnProperty("path")) { - object.path = message.path; - if (options.oneofs) - object.command = "path"; - } - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.command = "text"; - } - return object; - }; + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; - /** - * Converts this Script to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @instance - * @returns {Object.} JSON object - */ - Script.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; - /** - * Gets the default type url for Script - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.Runnable.Script - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Script.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.Runnable.Script"; - }; + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; - return Script; - })(); + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; - Runnable.Barrier = (function() { + /** + * FileOptions phpGenericServices. + * @member {boolean} phpGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpGenericServices = false; - /** - * Properties of a Barrier. - * @memberof google.cloud.batch.v1alpha.Runnable - * @interface IBarrier - * @property {string|null} [name] Barrier name - */ + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; - /** - * Constructs a new Barrier. - * @memberof google.cloud.batch.v1alpha.Runnable - * @classdesc Represents a Barrier. - * @implements IBarrier - * @constructor - * @param {google.cloud.batch.v1alpha.Runnable.IBarrier=} [properties] Properties to set - */ - function Barrier(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]]; - } + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = true; - /** - * Barrier name. - * @member {string} name - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @instance - */ - Barrier.prototype.name = ""; + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; - /** - * Creates a new Barrier instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @static - * @param {google.cloud.batch.v1alpha.Runnable.IBarrier=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.Runnable.Barrier} Barrier instance - */ - Barrier.create = function create(properties) { - return new Barrier(properties); - }; + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; - /** - * Encodes the specified Barrier message. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Barrier.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @static - * @param {google.cloud.batch.v1alpha.Runnable.IBarrier} message Barrier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Barrier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; - /** - * Encodes the specified Barrier message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Runnable.Barrier.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @static - * @param {google.cloud.batch.v1alpha.Runnable.IBarrier} message Barrier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Barrier.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; - /** - * Decodes a Barrier message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.Runnable.Barrier} Barrier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Barrier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Runnable.Barrier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; - /** - * Decodes a Barrier message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.Runnable.Barrier} Barrier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Barrier.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; - /** - * Verifies a Barrier message. - * @function verify - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Barrier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; - /** - * Creates a Barrier message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.Runnable.Barrier} Barrier - */ - Barrier.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.Runnable.Barrier) - return object; - var message = new $root.google.cloud.batch.v1alpha.Runnable.Barrier(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Creates a plain object from a Barrier message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @static - * @param {google.cloud.batch.v1alpha.Runnable.Barrier} message Barrier - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Barrier.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; - /** - * Converts this Barrier to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @instance - * @returns {Object.} JSON object - */ - Barrier.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; - /** - * Gets the default type url for Barrier - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.Runnable.Barrier - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Barrier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.Runnable.Barrier"; - }; + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) + writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; - return Barrier; - })(); + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return Runnable; - })(); + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 42: { + message.phpGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - v1alpha.TaskSpec = (function() { + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a TaskSpec. - * @memberof google.cloud.batch.v1alpha - * @interface ITaskSpec - * @property {Array.|null} [runnables] TaskSpec runnables - * @property {google.cloud.batch.v1alpha.IComputeResource|null} [computeResource] TaskSpec computeResource - * @property {google.protobuf.IDuration|null} [maxRunDuration] TaskSpec maxRunDuration - * @property {number|null} [maxRetryCount] TaskSpec maxRetryCount - * @property {Array.|null} [lifecyclePolicies] TaskSpec lifecyclePolicies - * @property {Object.|null} [environments] TaskSpec environments - * @property {Array.|null} [volumes] TaskSpec volumes - * @property {google.cloud.batch.v1alpha.IEnvironment|null} [environment] TaskSpec environment - */ + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (typeof message.phpGenericServices !== "boolean") + return "phpGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); + if (error) + return ".google.api.resourceDefinition." + error; + } + } + return null; + }; - /** - * Constructs a new TaskSpec. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a TaskSpec. - * @implements ITaskSpec - * @constructor - * @param {google.cloud.batch.v1alpha.ITaskSpec=} [properties] Properties to set - */ - function TaskSpec(properties) { - this.runnables = []; - this.lifecyclePolicies = []; - this.environments = {}; - this.volumes = []; - 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]]; + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileOptions} FileOptions + */ + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) + return object; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.phpGenericServices != null) + message.phpGenericServices = Boolean(object.phpGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); } + } + return message; + }; - /** - * TaskSpec runnables. - * @member {Array.} runnables - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @instance - */ - TaskSpec.prototype.runnables = $util.emptyArray; + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpGenericServices = false; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + object.phpGenericServices = message.phpGenericServices; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + } + return object; + }; - /** - * TaskSpec computeResource. - * @member {google.cloud.batch.v1alpha.IComputeResource|null|undefined} computeResource - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @instance - */ - TaskSpec.prototype.computeResource = null; + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * TaskSpec maxRunDuration. - * @member {google.protobuf.IDuration|null|undefined} maxRunDuration - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @instance - */ - TaskSpec.prototype.maxRunDuration = null; + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; - /** - * TaskSpec maxRetryCount. - * @member {number} maxRetryCount - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @instance - */ - TaskSpec.prototype.maxRetryCount = 0; + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); - /** - * TaskSpec lifecyclePolicies. - * @member {Array.} lifecyclePolicies - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @instance - */ - TaskSpec.prototype.lifecyclePolicies = $util.emptyArray; + return FileOptions; + })(); - /** - * TaskSpec environments. - * @member {Object.} environments - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @instance - */ - TaskSpec.prototype.environments = $util.emptyObject; + protobuf.MessageOptions = (function() { - /** - * TaskSpec volumes. - * @member {Array.} volumes - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @instance - */ - TaskSpec.prototype.volumes = $util.emptyArray; + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + */ - /** - * TaskSpec environment. - * @member {google.cloud.batch.v1alpha.IEnvironment|null|undefined} environment - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @instance - */ - TaskSpec.prototype.environment = null; + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } - /** - * Creates a new TaskSpec instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @static - * @param {google.cloud.batch.v1alpha.ITaskSpec=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.TaskSpec} TaskSpec instance - */ - TaskSpec.create = function create(properties) { - return new TaskSpec(properties); - }; + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; - /** - * Encodes the specified TaskSpec message. Does not implicitly {@link google.cloud.batch.v1alpha.TaskSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @static - * @param {google.cloud.batch.v1alpha.ITaskSpec} message TaskSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.computeResource != null && Object.hasOwnProperty.call(message, "computeResource")) - $root.google.cloud.batch.v1alpha.ComputeResource.encode(message.computeResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maxRunDuration != null && Object.hasOwnProperty.call(message, "maxRunDuration")) - $root.google.protobuf.Duration.encode(message.maxRunDuration, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.maxRetryCount != null && Object.hasOwnProperty.call(message, "maxRetryCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxRetryCount); - if (message.environments != null && Object.hasOwnProperty.call(message, "environments")) - for (var keys = Object.keys(message.environments), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environments[keys[i]]).ldelim(); - if (message.volumes != null && message.volumes.length) - for (var i = 0; i < message.volumes.length; ++i) - $root.google.cloud.batch.v1alpha.Volume.encode(message.volumes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.runnables != null && message.runnables.length) - for (var i = 0; i < message.runnables.length; ++i) - $root.google.cloud.batch.v1alpha.Runnable.encode(message.runnables[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.lifecyclePolicies != null && message.lifecyclePolicies.length) - for (var i = 0; i < message.lifecyclePolicies.length; ++i) - $root.google.cloud.batch.v1alpha.LifecyclePolicy.encode(message.lifecyclePolicies[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.batch.v1alpha.Environment.encode(message.environment, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; - /** - * Encodes the specified TaskSpec message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.TaskSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @static - * @param {google.cloud.batch.v1alpha.ITaskSpec} message TaskSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; - /** - * Decodes a TaskSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.TaskSpec} TaskSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.TaskSpec(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 8: { - if (!(message.runnables && message.runnables.length)) - message.runnables = []; - message.runnables.push($root.google.cloud.batch.v1alpha.Runnable.decode(reader, reader.uint32())); - break; - } - case 3: { - message.computeResource = $root.google.cloud.batch.v1alpha.ComputeResource.decode(reader, reader.uint32()); - break; - } - case 4: { - message.maxRunDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 5: { - message.maxRetryCount = reader.int32(); - break; - } - case 9: { - if (!(message.lifecyclePolicies && message.lifecyclePolicies.length)) - message.lifecyclePolicies = []; - message.lifecyclePolicies.push($root.google.cloud.batch.v1alpha.LifecyclePolicy.decode(reader, reader.uint32())); - break; - } - case 6: { - if (message.environments === $util.emptyObject) - message.environments = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.environments[key] = value; - break; - } - case 7: { - if (!(message.volumes && message.volumes.length)) - message.volumes = []; - message.volumes.push($root.google.cloud.batch.v1alpha.Volume.decode(reader, reader.uint32())); - break; - } - case 10: { - message.environment = $root.google.cloud.batch.v1alpha.Environment.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Decodes a TaskSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.TaskSpec} TaskSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; - /** - * Verifies a TaskSpec message. - * @function verify - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.runnables != null && message.hasOwnProperty("runnables")) { - if (!Array.isArray(message.runnables)) - return "runnables: array expected"; - for (var i = 0; i < message.runnables.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.Runnable.verify(message.runnables[i]); - if (error) - return "runnables." + error; - } - } - if (message.computeResource != null && message.hasOwnProperty("computeResource")) { - var error = $root.google.cloud.batch.v1alpha.ComputeResource.verify(message.computeResource); - if (error) - return "computeResource." + error; - } - if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) { - var error = $root.google.protobuf.Duration.verify(message.maxRunDuration); - if (error) - return "maxRunDuration." + error; - } - if (message.maxRetryCount != null && message.hasOwnProperty("maxRetryCount")) - if (!$util.isInteger(message.maxRetryCount)) - return "maxRetryCount: integer expected"; - if (message.lifecyclePolicies != null && message.hasOwnProperty("lifecyclePolicies")) { - if (!Array.isArray(message.lifecyclePolicies)) - return "lifecyclePolicies: array expected"; - for (var i = 0; i < message.lifecyclePolicies.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.LifecyclePolicy.verify(message.lifecyclePolicies[i]); - if (error) - return "lifecyclePolicies." + error; - } - } - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!$util.isObject(message.environments)) - return "environments: object expected"; - var key = Object.keys(message.environments); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.environments[key[i]])) - return "environments: string{k:string} expected"; - } - if (message.volumes != null && message.hasOwnProperty("volumes")) { - if (!Array.isArray(message.volumes)) - return "volumes: array expected"; - for (var i = 0; i < message.volumes.length; ++i) { - var error = $root.google.cloud.batch.v1alpha.Volume.verify(message.volumes[i]); - if (error) - return "volumes." + error; - } - } - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.batch.v1alpha.Environment.verify(message.environment); - if (error) - return "environment." + error; - } - return null; - }; + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; - /** - * Creates a TaskSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.TaskSpec} TaskSpec - */ - TaskSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.TaskSpec) - return object; - var message = new $root.google.cloud.batch.v1alpha.TaskSpec(); - if (object.runnables) { - if (!Array.isArray(object.runnables)) - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.runnables: array expected"); - message.runnables = []; - for (var i = 0; i < object.runnables.length; ++i) { - if (typeof object.runnables[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.runnables: object expected"); - message.runnables[i] = $root.google.cloud.batch.v1alpha.Runnable.fromObject(object.runnables[i]); - } - } - if (object.computeResource != null) { - if (typeof object.computeResource !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.computeResource: object expected"); - message.computeResource = $root.google.cloud.batch.v1alpha.ComputeResource.fromObject(object.computeResource); - } - if (object.maxRunDuration != null) { - if (typeof object.maxRunDuration !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.maxRunDuration: object expected"); - message.maxRunDuration = $root.google.protobuf.Duration.fromObject(object.maxRunDuration); - } - if (object.maxRetryCount != null) - message.maxRetryCount = object.maxRetryCount | 0; - if (object.lifecyclePolicies) { - if (!Array.isArray(object.lifecyclePolicies)) - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.lifecyclePolicies: array expected"); - message.lifecyclePolicies = []; - for (var i = 0; i < object.lifecyclePolicies.length; ++i) { - if (typeof object.lifecyclePolicies[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.lifecyclePolicies: object expected"); - message.lifecyclePolicies[i] = $root.google.cloud.batch.v1alpha.LifecyclePolicy.fromObject(object.lifecyclePolicies[i]); - } - } - if (object.environments) { - if (typeof object.environments !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.environments: object expected"); - message.environments = {}; - for (var keys = Object.keys(object.environments), i = 0; i < keys.length; ++i) - message.environments[keys[i]] = String(object.environments[keys[i]]); - } - if (object.volumes) { - if (!Array.isArray(object.volumes)) - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.volumes: array expected"); - message.volumes = []; - for (var i = 0; i < object.volumes.length; ++i) { - if (typeof object.volumes[i] !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.volumes: object expected"); - message.volumes[i] = $root.google.cloud.batch.v1alpha.Volume.fromObject(object.volumes[i]); - } - } - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.batch.v1alpha.TaskSpec.environment: object expected"); - message.environment = $root.google.cloud.batch.v1alpha.Environment.fromObject(object.environment); - } - return message; - }; + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; - /** - * Creates a plain object from a TaskSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @static - * @param {google.cloud.batch.v1alpha.TaskSpec} message TaskSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TaskSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.volumes = []; - object.runnables = []; - object.lifecyclePolicies = []; + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.messageSetWireFormat = reader.bool(); + break; } - if (options.objects || options.defaults) - object.environments = {}; - if (options.defaults) { - object.computeResource = null; - object.maxRunDuration = null; - object.maxRetryCount = 0; - object.environment = null; + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; } - if (message.computeResource != null && message.hasOwnProperty("computeResource")) - object.computeResource = $root.google.cloud.batch.v1alpha.ComputeResource.toObject(message.computeResource, options); - if (message.maxRunDuration != null && message.hasOwnProperty("maxRunDuration")) - object.maxRunDuration = $root.google.protobuf.Duration.toObject(message.maxRunDuration, options); - if (message.maxRetryCount != null && message.hasOwnProperty("maxRetryCount")) - object.maxRetryCount = message.maxRetryCount; - var keys2; - if (message.environments && (keys2 = Object.keys(message.environments)).length) { - object.environments = {}; - for (var j = 0; j < keys2.length; ++j) - object.environments[keys2[j]] = message.environments[keys2[j]]; + case 3: { + message.deprecated = reader.bool(); + break; } - if (message.volumes && message.volumes.length) { - object.volumes = []; - for (var j = 0; j < message.volumes.length; ++j) - object.volumes[j] = $root.google.cloud.batch.v1alpha.Volume.toObject(message.volumes[j], options); + case 7: { + message.mapEntry = reader.bool(); + break; } - if (message.runnables && message.runnables.length) { - object.runnables = []; - for (var j = 0; j < message.runnables.length; ++j) - object.runnables[j] = $root.google.cloud.batch.v1alpha.Runnable.toObject(message.runnables[j], options); + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; } - if (message.lifecyclePolicies && message.lifecyclePolicies.length) { - object.lifecyclePolicies = []; - for (var j = 0; j < message.lifecyclePolicies.length; ++j) - object.lifecyclePolicies[j] = $root.google.cloud.batch.v1alpha.LifecyclePolicy.toObject(message.lifecyclePolicies[j], options); + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.batch.v1alpha.Environment.toObject(message.environment, options); - return object; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); + if (error) + return ".google.api.resource." + error; + } + return null; + }; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) + return object; + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); + } + return message; + }; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object[".google.api.resource"] = null; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); + return object; + }; + + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; + 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]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; - /** - * Converts this TaskSpec to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @instance - * @returns {Object.} JSON object - */ - TaskSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; - /** - * Gets the default type url for TaskSpec - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.TaskSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TaskSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.TaskSpec"; - }; + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; - return TaskSpec; - })(); + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; - v1alpha.LifecyclePolicy = (function() { + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; - /** - * Properties of a LifecyclePolicy. - * @memberof google.cloud.batch.v1alpha - * @interface ILifecyclePolicy - * @property {google.cloud.batch.v1alpha.LifecyclePolicy.Action|null} [action] LifecyclePolicy action - * @property {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition|null} [actionCondition] LifecyclePolicy actionCondition - */ + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; - /** - * Constructs a new LifecyclePolicy. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a LifecyclePolicy. - * @implements ILifecyclePolicy - * @constructor - * @param {google.cloud.batch.v1alpha.ILifecyclePolicy=} [properties] Properties to set - */ - function LifecyclePolicy(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]]; - } + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * LifecyclePolicy action. - * @member {google.cloud.batch.v1alpha.LifecyclePolicy.Action} action - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @instance - */ - LifecyclePolicy.prototype.action = 0; + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; - /** - * LifecyclePolicy actionCondition. - * @member {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition|null|undefined} actionCondition - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @instance - */ - LifecyclePolicy.prototype.actionCondition = null; + /** + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.resourceReference"] = null; - /** - * Creates a new LifecyclePolicy instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @static - * @param {google.cloud.batch.v1alpha.ILifecyclePolicy=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.LifecyclePolicy} LifecyclePolicy instance - */ - LifecyclePolicy.create = function create(properties) { - return new LifecyclePolicy(properties); - }; + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; - /** - * Encodes the specified LifecyclePolicy message. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @static - * @param {google.cloud.batch.v1alpha.ILifecyclePolicy} message LifecyclePolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LifecyclePolicy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.action); - if (message.actionCondition != null && Object.hasOwnProperty.call(message, "actionCondition")) - $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.encode(message.actionCondition, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified LifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @static - * @param {google.cloud.batch.v1alpha.ILifecyclePolicy} message LifecyclePolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LifecyclePolicy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a LifecyclePolicy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.LifecyclePolicy} LifecyclePolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LifecyclePolicy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.LifecyclePolicy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.action = reader.int32(); - break; - } - case 2: { - message.actionCondition = $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.ctype = reader.int32(); + break; } - return message; - }; + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a LifecyclePolicy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.LifecyclePolicy} LifecyclePolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LifecyclePolicy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a LifecyclePolicy message. - * @function verify - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LifecyclePolicy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.action != null && message.hasOwnProperty("action")) - switch (message.action) { - default: - return "action: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.actionCondition != null && message.hasOwnProperty("actionCondition")) { - var error = $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify(message.actionCondition); - if (error) - return "actionCondition." + error; + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; } - return null; - }; + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; + } + return null; + }; - /** - * Creates a LifecyclePolicy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.LifecyclePolicy} LifecyclePolicy - */ - LifecyclePolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.LifecyclePolicy) - return object; - var message = new $root.google.cloud.batch.v1alpha.LifecyclePolicy(); - switch (object.action) { + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { default: - if (typeof object.action === "number") { - message.action = object.action; + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; break; } - break; - case "ACTION_UNSPECIFIED": + case "FIELD_BEHAVIOR_UNSPECIFIED": case 0: - message.action = 0; + message[".google.api.fieldBehavior"][i] = 0; break; - case "RETRY_TASK": + case "OPTIONAL": case 1: - message.action = 1; + message[".google.api.fieldBehavior"][i] = 1; break; - case "FAIL_TASK": + case "REQUIRED": case 2: - message.action = 2; + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; break; } - if (object.actionCondition != null) { - if (typeof object.actionCondition !== "object") - throw TypeError(".google.cloud.batch.v1alpha.LifecyclePolicy.actionCondition: object expected"); - message.actionCondition = $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.fromObject(object.actionCondition); - } - return message; - }; + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + } + return message; + }; - /** - * Creates a plain object from a LifecyclePolicy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @static - * @param {google.cloud.batch.v1alpha.LifecyclePolicy} message LifecyclePolicy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LifecyclePolicy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.action = options.enums === String ? "ACTION_UNSPECIFIED" : 0; - object.actionCondition = null; - } - if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.google.cloud.batch.v1alpha.LifecyclePolicy.Action[message.action] === undefined ? message.action : $root.google.cloud.batch.v1alpha.LifecyclePolicy.Action[message.action] : message.action; - if (message.actionCondition != null && message.hasOwnProperty("actionCondition")) - object.actionCondition = $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.toObject(message.actionCondition, options); - return object; - }; + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object.unverifiedLazy = false; + object[".google.api.resourceReference"] = null; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + return object; + }; - /** - * Converts this LifecyclePolicy to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @instance - * @returns {Object.} JSON object - */ - LifecyclePolicy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this FieldOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions + * @instance + * @returns {Object.} JSON object + */ + FieldOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for LifecyclePolicy - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LifecyclePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.LifecyclePolicy"; - }; + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; - LifecyclePolicy.ActionCondition = (function() { + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); - /** - * Properties of an ActionCondition. - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @interface IActionCondition - * @property {Array.|null} [exitCodes] ActionCondition exitCodes - */ + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); - /** - * Constructs a new ActionCondition. - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy - * @classdesc Represents an ActionCondition. - * @implements IActionCondition - * @constructor - * @param {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition=} [properties] Properties to set - */ - function ActionCondition(properties) { - this.exitCodes = []; - 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]]; + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * ActionCondition exitCodes. - * @member {Array.} exitCodes - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @instance - */ - ActionCondition.prototype.exitCodes = $util.emptyArray; + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new ActionCondition instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @static - * @param {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} ActionCondition instance - */ - ActionCondition.create = function create(properties) { - return new ActionCondition(properties); - }; + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; - /** - * Encodes the specified ActionCondition message. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @static - * @param {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition} message ActionCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActionCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exitCodes != null && message.exitCodes.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.exitCodes.length; ++i) - writer.int32(message.exitCodes[i]); - writer.ldelim(); - } - return writer; - }; + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this OneofOptions to JSON. + * @function toJSON + * @memberof google.protobuf.OneofOptions + * @instance + * @returns {Object.} JSON object + */ + OneofOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified ActionCondition message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @static - * @param {google.cloud.batch.v1alpha.LifecyclePolicy.IActionCondition} message ActionCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActionCondition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; - /** - * Decodes an ActionCondition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} ActionCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActionCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.exitCodes && message.exitCodes.length)) - message.exitCodes = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.exitCodes.push(reader.int32()); - } else - message.exitCodes.push(reader.int32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return OneofOptions; + })(); - /** - * Decodes an ActionCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} ActionCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActionCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + protobuf.EnumOptions = (function() { - /** - * Verifies an ActionCondition message. - * @function verify - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActionCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.exitCodes != null && message.hasOwnProperty("exitCodes")) { - if (!Array.isArray(message.exitCodes)) - return "exitCodes: array expected"; - for (var i = 0; i < message.exitCodes.length; ++i) - if (!$util.isInteger(message.exitCodes[i])) - return "exitCodes: integer[] expected"; - } - return null; - }; + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ - /** - * Creates an ActionCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} ActionCondition - */ - ActionCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition) - return object; - var message = new $root.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition(); - if (object.exitCodes) { - if (!Array.isArray(object.exitCodes)) - throw TypeError(".google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.exitCodes: array expected"); - message.exitCodes = []; - for (var i = 0; i < object.exitCodes.length; ++i) - message.exitCodes[i] = object.exitCodes[i] | 0; - } - return message; - }; + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } - /** - * Creates a plain object from an ActionCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @static - * @param {google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition} message ActionCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ActionCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.exitCodes = []; - if (message.exitCodes && message.exitCodes.length) { - object.exitCodes = []; - for (var j = 0; j < message.exitCodes.length; ++j) - object.exitCodes[j] = message.exitCodes[j]; - } - return object; - }; + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; - /** - * Converts this ActionCondition to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @instance - * @returns {Object.} JSON object - */ - ActionCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; - /** - * Gets the default type url for ActionCondition - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ActionCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition"; - }; + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; - return ActionCondition; - })(); + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; - /** - * Action enum. - * @name google.cloud.batch.v1alpha.LifecyclePolicy.Action - * @enum {number} - * @property {number} ACTION_UNSPECIFIED=0 ACTION_UNSPECIFIED value - * @property {number} RETRY_TASK=1 RETRY_TASK value - * @property {number} FAIL_TASK=2 FAIL_TASK value - */ - LifecyclePolicy.Action = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTION_UNSPECIFIED"] = 0; - values[valuesById[1] = "RETRY_TASK"] = 1; - values[valuesById[2] = "FAIL_TASK"] = 2; - return values; - })(); + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; - return LifecyclePolicy; - })(); + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - v1alpha.Task = (function() { + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a Task. - * @memberof google.cloud.batch.v1alpha - * @interface ITask - * @property {string|null} [name] Task name - * @property {google.cloud.batch.v1alpha.ITaskStatus|null} [status] Task status - */ + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new Task. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a Task. - * @implements ITask - * @constructor - * @param {google.cloud.batch.v1alpha.ITask=} [properties] Properties to set - */ - function Task(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]]; + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; } + } + return null; + }; - /** - * Task name. - * @member {string} name - * @memberof google.cloud.batch.v1alpha.Task - * @instance - */ - Task.prototype.name = ""; + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) + return object; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; - /** - * Task status. - * @member {google.cloud.batch.v1alpha.ITaskStatus|null|undefined} status - * @memberof google.cloud.batch.v1alpha.Task - * @instance - */ - Task.prototype.status = null; + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.allowAlias = false; + object.deprecated = false; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; - /** - * Creates a new Task instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.Task - * @static - * @param {google.cloud.batch.v1alpha.ITask=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.Task} Task instance - */ - Task.create = function create(properties) { - return new Task(properties); - }; + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } - /** - * Encodes the specified Task message. Does not implicitly {@link google.cloud.batch.v1alpha.Task.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.Task - * @static - * @param {google.cloud.batch.v1alpha.ITask} message Task message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Task.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.cloud.batch.v1alpha.TaskStatus.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; - /** - * Encodes the specified Task message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Task.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.Task - * @static - * @param {google.cloud.batch.v1alpha.ITask} message Task message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Task.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Decodes a Task message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.Task - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.Task} Task - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Task.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Task(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.status = $root.google.cloud.batch.v1alpha.TaskStatus.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; - /** - * Decodes a Task message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.Task - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.Task} Task - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Task.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; - /** - * Verifies a Task message. - * @function verify - * @memberof google.cloud.batch.v1alpha.Task - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Task.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.cloud.batch.v1alpha.TaskStatus.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a Task message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.Task - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.Task} Task - */ - Task.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.Task) - return object; - var message = new $root.google.cloud.batch.v1alpha.Task(); - if (object.name != null) - message.name = String(object.name); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Task.status: object expected"); - message.status = $root.google.cloud.batch.v1alpha.TaskStatus.fromObject(object.status); + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deprecated = reader.bool(); + break; } - return message; - }; - - /** - * Creates a plain object from a Task message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.Task - * @static - * @param {google.cloud.batch.v1alpha.Task} message Task - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Task.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.status = null; + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.cloud.batch.v1alpha.TaskStatus.toObject(message.status, options); - return object; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this Task to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.Task - * @instance - * @returns {Object.} JSON object - */ - Task.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for Task - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.Task - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Task.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.Task"; - }; + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; - return Task; - })(); + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) + return object; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; - v1alpha.Environment = (function() { + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; - /** - * Properties of an Environment. - * @memberof google.cloud.batch.v1alpha - * @interface IEnvironment - * @property {Object.|null} [variables] Environment variables - * @property {Object.|null} [secretVariables] Environment secretVariables - * @property {google.cloud.batch.v1alpha.Environment.IKMSEnvMap|null} [encryptedVariables] Environment encryptedVariables - */ + /** + * Converts this EnumValueOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueOptions + * @instance + * @returns {Object.} JSON object + */ + EnumValueOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new Environment. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents an Environment. - * @implements IEnvironment - * @constructor - * @param {google.cloud.batch.v1alpha.IEnvironment=} [properties] Properties to set - */ - function Environment(properties) { - this.variables = {}; - this.secretVariables = {}; - 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]]; - } + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; - /** - * Environment variables. - * @member {Object.} variables - * @memberof google.cloud.batch.v1alpha.Environment - * @instance - */ - Environment.prototype.variables = $util.emptyObject; + return EnumValueOptions; + })(); - /** - * Environment secretVariables. - * @member {Object.} secretVariables - * @memberof google.cloud.batch.v1alpha.Environment - * @instance - */ - Environment.prototype.secretVariables = $util.emptyObject; + protobuf.ServiceOptions = (function() { - /** - * Environment encryptedVariables. - * @member {google.cloud.batch.v1alpha.Environment.IKMSEnvMap|null|undefined} encryptedVariables - * @memberof google.cloud.batch.v1alpha.Environment - * @instance - */ - Environment.prototype.encryptedVariables = null; + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + */ - /** - * Creates a new Environment instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.Environment - * @static - * @param {google.cloud.batch.v1alpha.IEnvironment=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.Environment} Environment instance - */ - Environment.create = function create(properties) { - return new Environment(properties); - }; + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } - /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.Environment - * @static - * @param {google.cloud.batch.v1alpha.IEnvironment} message Environment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Environment.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.variables != null && Object.hasOwnProperty.call(message, "variables")) - for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.variables[keys[i]]).ldelim(); - if (message.secretVariables != null && Object.hasOwnProperty.call(message, "secretVariables")) - for (var keys = Object.keys(message.secretVariables), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.secretVariables[keys[i]]).ldelim(); - if (message.encryptedVariables != null && Object.hasOwnProperty.call(message, "encryptedVariables")) - $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.encode(message.encryptedVariables, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.defaultHost"] = ""; + + /** + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; - /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.Environment - * @static - * @param {google.cloud.batch.v1alpha.IEnvironment} message Environment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Environment.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; - /** - * Decodes an Environment message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.Environment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.Environment} Environment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Environment.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Environment(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.variables === $util.emptyObject) - message.variables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.variables[key] = value; - break; - } - case 2: { - if (message.secretVariables === $util.emptyObject) - message.secretVariables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.secretVariables[key] = value; - break; - } - case 3: { - message.encryptedVariables = $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + return writer; + }; - /** - * Decodes an Environment message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.Environment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.Environment} Environment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Environment.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies an Environment message. - * @function verify - * @memberof google.cloud.batch.v1alpha.Environment - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Environment.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.variables != null && message.hasOwnProperty("variables")) { - if (!$util.isObject(message.variables)) - return "variables: object expected"; - var key = Object.keys(message.variables); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.variables[key[i]])) - return "variables: string{k:string} expected"; - } - if (message.secretVariables != null && message.hasOwnProperty("secretVariables")) { - if (!$util.isObject(message.secretVariables)) - return "secretVariables: object expected"; - var key = Object.keys(message.secretVariables); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.secretVariables[key[i]])) - return "secretVariables: string{k:string} expected"; - } - if (message.encryptedVariables != null && message.hasOwnProperty("encryptedVariables")) { - var error = $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify(message.encryptedVariables); - if (error) - return "encryptedVariables." + error; + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; } - return null; - }; - - /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.Environment - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.Environment} Environment - */ - Environment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.Environment) - return object; - var message = new $root.google.cloud.batch.v1alpha.Environment(); - if (object.variables) { - if (typeof object.variables !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Environment.variables: object expected"); - message.variables = {}; - for (var keys = Object.keys(object.variables), i = 0; i < keys.length; ++i) - message.variables[keys[i]] = String(object.variables[keys[i]]); + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; } - if (object.secretVariables) { - if (typeof object.secretVariables !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Environment.secretVariables: object expected"); - message.secretVariables = {}; - for (var keys = Object.keys(object.secretVariables), i = 0; i < keys.length; ++i) - message.secretVariables[keys[i]] = String(object.secretVariables[keys[i]]); + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; } - if (object.encryptedVariables != null) { - if (typeof object.encryptedVariables !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Environment.encryptedVariables: object expected"); - message.encryptedVariables = $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.fromObject(object.encryptedVariables); + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; } - return message; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.Environment - * @static - * @param {google.cloud.batch.v1alpha.Environment} message Environment - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Environment.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.variables = {}; - object.secretVariables = {}; - } - if (options.defaults) - object.encryptedVariables = null; - var keys2; - if (message.variables && (keys2 = Object.keys(message.variables)).length) { - object.variables = {}; - for (var j = 0; j < keys2.length; ++j) - object.variables[keys2[j]] = message.variables[keys2[j]]; - } - if (message.secretVariables && (keys2 = Object.keys(message.secretVariables)).length) { - object.secretVariables = {}; - for (var j = 0; j < keys2.length; ++j) - object.secretVariables[keys2[j]] = message.secretVariables[keys2[j]]; - } - if (message.encryptedVariables != null && message.hasOwnProperty("encryptedVariables")) - object.encryptedVariables = $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap.toObject(message.encryptedVariables, options); - return object; - }; + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this Environment to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.Environment - * @instance - * @returns {Object.} JSON object - */ - Environment.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; + return null; + }; - /** - * Gets the default type url for Environment - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.Environment - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.Environment"; - }; + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + return message; + }; - Environment.KMSEnvMap = (function() { + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + return object; + }; - /** - * Properties of a KMSEnvMap. - * @memberof google.cloud.batch.v1alpha.Environment - * @interface IKMSEnvMap - * @property {string|null} [keyName] KMSEnvMap keyName - * @property {string|null} [cipherText] KMSEnvMap cipherText - */ + /** + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions + * @instance + * @returns {Object.} JSON object + */ + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new KMSEnvMap. - * @memberof google.cloud.batch.v1alpha.Environment - * @classdesc Represents a KMSEnvMap. - * @implements IKMSEnvMap - * @constructor - * @param {google.cloud.batch.v1alpha.Environment.IKMSEnvMap=} [properties] Properties to set - */ - function KMSEnvMap(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]]; - } + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; - /** - * KMSEnvMap keyName. - * @member {string} keyName - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @instance - */ - KMSEnvMap.prototype.keyName = ""; + return ServiceOptions; + })(); - /** - * KMSEnvMap cipherText. - * @member {string} cipherText - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @instance - */ - KMSEnvMap.prototype.cipherText = ""; + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature + * @property {google.longrunning.IOperationInfo|null} [".google.longrunning.operationInfo"] MethodOptions .google.longrunning.operationInfo + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; + 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]]; + } - /** - * Creates a new KMSEnvMap instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @static - * @param {google.cloud.batch.v1alpha.Environment.IKMSEnvMap=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.Environment.KMSEnvMap} KMSEnvMap instance - */ - KMSEnvMap.create = function create(properties) { - return new KMSEnvMap(properties); - }; + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; - /** - * Encodes the specified KMSEnvMap message. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @static - * @param {google.cloud.batch.v1alpha.Environment.IKMSEnvMap} message KMSEnvMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KMSEnvMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyName != null && Object.hasOwnProperty.call(message, "keyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyName); - if (message.cipherText != null && Object.hasOwnProperty.call(message, "cipherText")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cipherText); - return writer; - }; + /** + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.idempotencyLevel = 0; - /** - * Encodes the specified KMSEnvMap message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Environment.KMSEnvMap.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @static - * @param {google.cloud.batch.v1alpha.Environment.IKMSEnvMap} message KMSEnvMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KMSEnvMap.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Decodes a KMSEnvMap message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.Environment.KMSEnvMap} KMSEnvMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KMSEnvMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.keyName = reader.string(); - break; - } - case 2: { - message.cipherText = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; - /** - * Decodes a KMSEnvMap message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.Environment.KMSEnvMap} KMSEnvMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KMSEnvMap.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; - /** - * Verifies a KMSEnvMap message. - * @function verify - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KMSEnvMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyName != null && message.hasOwnProperty("keyName")) - if (!$util.isString(message.keyName)) - return "keyName: string expected"; - if (message.cipherText != null && message.hasOwnProperty("cipherText")) - if (!$util.isString(message.cipherText)) - return "cipherText: string expected"; - return null; - }; + /** + * MethodOptions .google.longrunning.operationInfo. + * @member {google.longrunning.IOperationInfo|null|undefined} .google.longrunning.operationInfo + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.longrunning.operationInfo"] = null; - /** - * Creates a KMSEnvMap message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.Environment.KMSEnvMap} KMSEnvMap - */ - KMSEnvMap.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap) - return object; - var message = new $root.google.cloud.batch.v1alpha.Environment.KMSEnvMap(); - if (object.keyName != null) - message.keyName = String(object.keyName); - if (object.cipherText != null) - message.cipherText = String(object.cipherText); - return message; - }; + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; - /** - * Creates a plain object from a KMSEnvMap message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @static - * @param {google.cloud.batch.v1alpha.Environment.KMSEnvMap} message KMSEnvMap - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KMSEnvMap.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.keyName = ""; - object.cipherText = ""; - } - if (message.keyName != null && message.hasOwnProperty("keyName")) - object.keyName = message.keyName; - if (message.cipherText != null && message.hasOwnProperty("cipherText")) - object.cipherText = message.cipherText; - return object; - }; + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.longrunning.operationInfo"] != null && Object.hasOwnProperty.call(message, ".google.longrunning.operationInfo")) + $root.google.longrunning.OperationInfo.encode(message[".google.longrunning.operationInfo"], writer.uint32(/* id 1049, wireType 2 =*/8394).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; - /** - * Converts this KMSEnvMap to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @instance - * @returns {Object.} JSON object - */ - KMSEnvMap.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for KMSEnvMap - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.Environment.KMSEnvMap - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - KMSEnvMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.Environment.KMSEnvMap"; - }; + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + } + case 1049: { + message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return KMSEnvMap; - })(); + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return Environment; - })(); + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; + } + if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) { + var error = $root.google.longrunning.OperationInfo.verify(message[".google.longrunning.operationInfo"]); + if (error) + return ".google.longrunning.operationInfo." + error; + } + return null; + }; - v1alpha.Volume = (function() { + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) + return object; + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + } + if (object[".google.longrunning.operationInfo"] != null) { + if (typeof object[".google.longrunning.operationInfo"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.longrunning.operationInfo: object expected"); + message[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.fromObject(object[".google.longrunning.operationInfo"]); + } + return message; + }; - /** - * Properties of a Volume. - * @memberof google.cloud.batch.v1alpha - * @interface IVolume - * @property {google.cloud.batch.v1alpha.INFS|null} [nfs] Volume nfs - * @property {google.cloud.batch.v1alpha.IPD|null} [pd] Volume pd - * @property {google.cloud.batch.v1alpha.IGCS|null} [gcs] Volume gcs - * @property {string|null} [deviceName] Volume deviceName - * @property {string|null} [mountPath] Volume mountPath - * @property {Array.|null} [mountOptions] Volume mountOptions - */ + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } + if (options.defaults) { + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object[".google.longrunning.operationInfo"] = null; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.longrunning.operationInfo"] != null && message.hasOwnProperty(".google.longrunning.operationInfo")) + object[".google.longrunning.operationInfo"] = $root.google.longrunning.OperationInfo.toObject(message[".google.longrunning.operationInfo"], options); + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + return object; + }; + + /** + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new Volume. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a Volume. - * @implements IVolume - * @constructor - * @param {google.cloud.batch.v1alpha.IVolume=} [properties] Properties to set - */ - function Volume(properties) { - this.mountOptions = []; - 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]]; - } + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; - /** - * Volume nfs. - * @member {google.cloud.batch.v1alpha.INFS|null|undefined} nfs - * @memberof google.cloud.batch.v1alpha.Volume - * @instance - */ - Volume.prototype.nfs = null; + /** + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {number} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value + */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); - /** - * Volume pd. - * @member {google.cloud.batch.v1alpha.IPD|null|undefined} pd - * @memberof google.cloud.batch.v1alpha.Volume - * @instance - */ - Volume.prototype.pd = null; + return MethodOptions; + })(); - /** - * Volume gcs. - * @member {google.cloud.batch.v1alpha.IGCS|null|undefined} gcs - * @memberof google.cloud.batch.v1alpha.Volume - * @instance - */ - Volume.prototype.gcs = null; + protobuf.UninterpretedOption = (function() { - /** - * Volume deviceName. - * @member {string|null|undefined} deviceName - * @memberof google.cloud.batch.v1alpha.Volume - * @instance - */ - Volume.prototype.deviceName = null; + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ - /** - * Volume mountPath. - * @member {string} mountPath - * @memberof google.cloud.batch.v1alpha.Volume - * @instance - */ - Volume.prototype.mountPath = ""; + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + 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]]; + } - /** - * Volume mountOptions. - * @member {Array.} mountOptions - * @memberof google.cloud.batch.v1alpha.Volume - * @instance - */ - Volume.prototype.mountOptions = $util.emptyArray; + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; - /** - * Volume source. - * @member {"nfs"|"pd"|"gcs"|"deviceName"|undefined} source - * @memberof google.cloud.batch.v1alpha.Volume - * @instance - */ - Object.defineProperty(Volume.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["nfs", "pd", "gcs", "deviceName"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Creates a new Volume instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.Volume - * @static - * @param {google.cloud.batch.v1alpha.IVolume=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.Volume} Volume instance - */ - Volume.create = function create(properties) { - return new Volume(properties); - }; + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Encodes the specified Volume message. Does not implicitly {@link google.cloud.batch.v1alpha.Volume.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.Volume - * @static - * @param {google.cloud.batch.v1alpha.IVolume} message Volume message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Volume.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nfs != null && Object.hasOwnProperty.call(message, "nfs")) - $root.google.cloud.batch.v1alpha.NFS.encode(message.nfs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pd != null && Object.hasOwnProperty.call(message, "pd")) - $root.google.cloud.batch.v1alpha.PD.encode(message.pd, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) - $root.google.cloud.batch.v1alpha.GCS.encode(message.gcs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.mountPath != null && Object.hasOwnProperty.call(message, "mountPath")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.mountPath); - if (message.mountOptions != null && message.mountOptions.length) - for (var i = 0; i < message.mountOptions.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.mountOptions[i]); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.deviceName); - return writer; - }; + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; - /** - * Encodes the specified Volume message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.Volume.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.Volume - * @static - * @param {google.cloud.batch.v1alpha.IVolume} message Volume message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Volume.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); - /** - * Decodes a Volume message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.Volume - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.Volume} Volume - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Volume.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.Volume(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.nfs = $root.google.cloud.batch.v1alpha.NFS.decode(reader, reader.uint32()); - break; - } - case 2: { - message.pd = $root.google.cloud.batch.v1alpha.PD.decode(reader, reader.uint32()); - break; - } - case 3: { - message.gcs = $root.google.cloud.batch.v1alpha.GCS.decode(reader, reader.uint32()); - break; - } - case 6: { - message.deviceName = reader.string(); - break; - } - case 4: { - message.mountPath = reader.string(); - break; - } - case 5: { - if (!(message.mountOptions && message.mountOptions.length)) - message.mountOptions = []; - message.mountOptions.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; - /** - * Decodes a Volume message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.Volume - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.Volume} Volume - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Volume.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; - /** - * Verifies a Volume message. - * @function verify - * @memberof google.cloud.batch.v1alpha.Volume - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Volume.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.nfs != null && message.hasOwnProperty("nfs")) { - properties.source = 1; - { - var error = $root.google.cloud.batch.v1alpha.NFS.verify(message.nfs); - if (error) - return "nfs." + error; - } - } - if (message.pd != null && message.hasOwnProperty("pd")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - { - var error = $root.google.cloud.batch.v1alpha.PD.verify(message.pd); - if (error) - return "pd." + error; - } - } - if (message.gcs != null && message.hasOwnProperty("gcs")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - { - var error = $root.google.cloud.batch.v1alpha.GCS.verify(message.gcs); - if (error) - return "gcs." + error; - } - } - if (message.deviceName != null && message.hasOwnProperty("deviceName")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - } - if (message.mountPath != null && message.hasOwnProperty("mountPath")) - if (!$util.isString(message.mountPath)) - return "mountPath: string expected"; - if (message.mountOptions != null && message.hasOwnProperty("mountOptions")) { - if (!Array.isArray(message.mountOptions)) - return "mountOptions: array expected"; - for (var i = 0; i < message.mountOptions.length; ++i) - if (!$util.isString(message.mountOptions[i])) - return "mountOptions: string[] expected"; - } - return null; - }; + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; - /** - * Creates a Volume message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.Volume - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.Volume} Volume - */ - Volume.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.Volume) - return object; - var message = new $root.google.cloud.batch.v1alpha.Volume(); - if (object.nfs != null) { - if (typeof object.nfs !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Volume.nfs: object expected"); - message.nfs = $root.google.cloud.batch.v1alpha.NFS.fromObject(object.nfs); - } - if (object.pd != null) { - if (typeof object.pd !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Volume.pd: object expected"); - message.pd = $root.google.cloud.batch.v1alpha.PD.fromObject(object.pd); - } - if (object.gcs != null) { - if (typeof object.gcs !== "object") - throw TypeError(".google.cloud.batch.v1alpha.Volume.gcs: object expected"); - message.gcs = $root.google.cloud.batch.v1alpha.GCS.fromObject(object.gcs); + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; } - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - if (object.mountPath != null) - message.mountPath = String(object.mountPath); - if (object.mountOptions) { - if (!Array.isArray(object.mountOptions)) - throw TypeError(".google.cloud.batch.v1alpha.Volume.mountOptions: array expected"); - message.mountOptions = []; - for (var i = 0; i < object.mountOptions.length; ++i) - message.mountOptions[i] = String(object.mountOptions[i]); + case 3: { + message.identifierValue = reader.string(); + break; } - return message; - }; - - /** - * Creates a plain object from a Volume message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.Volume - * @static - * @param {google.cloud.batch.v1alpha.Volume} message Volume - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Volume.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.mountOptions = []; - if (options.defaults) - object.mountPath = ""; - if (message.nfs != null && message.hasOwnProperty("nfs")) { - object.nfs = $root.google.cloud.batch.v1alpha.NFS.toObject(message.nfs, options); - if (options.oneofs) - object.source = "nfs"; + case 4: { + message.positiveIntValue = reader.uint64(); + break; } - if (message.pd != null && message.hasOwnProperty("pd")) { - object.pd = $root.google.cloud.batch.v1alpha.PD.toObject(message.pd, options); - if (options.oneofs) - object.source = "pd"; + case 5: { + message.negativeIntValue = reader.int64(); + break; } - if (message.gcs != null && message.hasOwnProperty("gcs")) { - object.gcs = $root.google.cloud.batch.v1alpha.GCS.toObject(message.gcs, options); - if (options.oneofs) - object.source = "gcs"; + case 6: { + message.doubleValue = reader.double(); + break; } - if (message.mountPath != null && message.hasOwnProperty("mountPath")) - object.mountPath = message.mountPath; - if (message.mountOptions && message.mountOptions.length) { - object.mountOptions = []; - for (var j = 0; j < message.mountOptions.length; ++j) - object.mountOptions[j] = message.mountOptions[j]; + case 7: { + message.stringValue = reader.bytes(); + break; } - if (message.deviceName != null && message.hasOwnProperty("deviceName")) { - object.deviceName = message.deviceName; - if (options.oneofs) - object.source = "deviceName"; + case 8: { + message.aggregateValue = reader.string(); + break; } - return object; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this Volume to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.Volume - * @instance - * @returns {Object.} JSON object - */ - Volume.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for Volume - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.Volume - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Volume.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.Volume"; - }; + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; - return Volume; - })(); + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length >= 0) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; - v1alpha.NFS = (function() { + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; + }; - /** - * Properties of a NFS. - * @memberof google.cloud.batch.v1alpha - * @interface INFS - * @property {string|null} [server] NFS server - * @property {string|null} [remotePath] NFS remotePath - */ + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new NFS. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a NFS. - * @implements INFS - * @constructor - * @param {google.cloud.batch.v1alpha.INFS=} [properties] Properties to set - */ - function NFS(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]]; - } + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; - /** - * NFS server. - * @member {string} server - * @memberof google.cloud.batch.v1alpha.NFS - * @instance - */ - NFS.prototype.server = ""; + UninterpretedOption.NamePart = (function() { - /** - * NFS remotePath. - * @member {string} remotePath - * @memberof google.cloud.batch.v1alpha.NFS - * @instance - */ - NFS.prototype.remotePath = ""; + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ - /** - * Creates a new NFS instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.NFS - * @static - * @param {google.cloud.batch.v1alpha.INFS=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.NFS} NFS instance - */ - NFS.create = function create(properties) { - return new NFS(properties); - }; + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(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]]; + } - /** - * Encodes the specified NFS message. Does not implicitly {@link google.cloud.batch.v1alpha.NFS.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.NFS - * @static - * @param {google.cloud.batch.v1alpha.INFS} message NFS message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NFS.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.server != null && Object.hasOwnProperty.call(message, "server")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.server); - if (message.remotePath != null && Object.hasOwnProperty.call(message, "remotePath")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.remotePath); - return writer; - }; + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; - /** - * Encodes the specified NFS message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.NFS.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.NFS - * @static - * @param {google.cloud.batch.v1alpha.INFS} message NFS message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NFS.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; - /** - * Decodes a NFS message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.NFS - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.NFS} NFS - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NFS.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.NFS(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.server = reader.string(); - break; - } - case 2: { - message.remotePath = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a NFS message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.NFS - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.NFS} NFS - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NFS.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; - /** - * Verifies a NFS message. - * @function verify - * @memberof google.cloud.batch.v1alpha.NFS - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NFS.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.server != null && message.hasOwnProperty("server")) - if (!$util.isString(message.server)) - return "server: string expected"; - if (message.remotePath != null && message.hasOwnProperty("remotePath")) - if (!$util.isString(message.remotePath)) - return "remotePath: string expected"; - return null; - }; + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a NFS message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.NFS - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.NFS} NFS - */ - NFS.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.NFS) - return object; - var message = new $root.google.cloud.batch.v1alpha.NFS(); - if (object.server != null) - message.server = String(object.server); - if (object.remotePath != null) - message.remotePath = String(object.remotePath); - return message; - }; + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; - /** - * Creates a plain object from a NFS message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.NFS - * @static - * @param {google.cloud.batch.v1alpha.NFS} message NFS - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NFS.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.server = ""; - object.remotePath = ""; - } - if (message.server != null && message.hasOwnProperty("server")) - object.server = message.server; - if (message.remotePath != null && message.hasOwnProperty("remotePath")) - object.remotePath = message.remotePath; + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) return object; - }; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; - /** - * Converts this NFS to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.NFS - * @instance - * @returns {Object.} JSON object - */ - NFS.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; - /** - * Gets the default type url for NFS - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.NFS - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NFS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.NFS"; - }; + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return NFS; - })(); + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; - v1alpha.PD = (function() { + return NamePart; + })(); - /** - * Properties of a PD. - * @memberof google.cloud.batch.v1alpha - * @interface IPD - * @property {string|null} [disk] PD disk - * @property {string|null} [device] PD device - * @property {boolean|null} [existing] PD existing - */ + return UninterpretedOption; + })(); - /** - * Constructs a new PD. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a PD. - * @implements IPD - * @constructor - * @param {google.cloud.batch.v1alpha.IPD=} [properties] Properties to set - */ - function PD(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]]; - } + protobuf.SourceCodeInfo = (function() { - /** - * PD disk. - * @member {string} disk - * @memberof google.cloud.batch.v1alpha.PD - * @instance - */ - PD.prototype.disk = ""; + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ - /** - * PD device. - * @member {string} device - * @memberof google.cloud.batch.v1alpha.PD - * @instance - */ - PD.prototype.device = ""; + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + 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]]; + } - /** - * PD existing. - * @member {boolean} existing - * @memberof google.cloud.batch.v1alpha.PD - * @instance - */ - PD.prototype.existing = false; + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; - /** - * Creates a new PD instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.PD - * @static - * @param {google.cloud.batch.v1alpha.IPD=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.PD} PD instance - */ - PD.create = function create(properties) { - return new PD(properties); - }; + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; - /** - * Encodes the specified PD message. Does not implicitly {@link google.cloud.batch.v1alpha.PD.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.PD - * @static - * @param {google.cloud.batch.v1alpha.IPD} message PD message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PD.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.disk != null && Object.hasOwnProperty.call(message, "disk")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.disk); - if (message.device != null && Object.hasOwnProperty.call(message, "device")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.device); - if (message.existing != null && Object.hasOwnProperty.call(message, "existing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.existing); - return writer; - }; + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified PD message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.PD.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.PD - * @static - * @param {google.cloud.batch.v1alpha.IPD} message PD message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PD.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a PD message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.PD - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.PD} PD - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PD.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.PD(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.disk = reader.string(); - break; - } - case 2: { - message.device = reader.string(); - break; - } - case 3: { - message.existing = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; } - return message; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a PD message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.PD - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.PD} PD - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PD.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PD message. - * @function verify - * @memberof google.cloud.batch.v1alpha.PD - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PD.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.disk != null && message.hasOwnProperty("disk")) - if (!$util.isString(message.disk)) - return "disk: string expected"; - if (message.device != null && message.hasOwnProperty("device")) - if (!$util.isString(message.device)) - return "device: string expected"; - if (message.existing != null && message.hasOwnProperty("existing")) - if (typeof message.existing !== "boolean") - return "existing: boolean expected"; - return null; - }; + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; - /** - * Creates a PD message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.PD - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.PD} PD - */ - PD.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.PD) - return object; - var message = new $root.google.cloud.batch.v1alpha.PD(); - if (object.disk != null) - message.disk = String(object.disk); - if (object.device != null) - message.device = String(object.device); - if (object.existing != null) - message.existing = Boolean(object.existing); - return message; - }; + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } + return object; + }; - /** - * Creates a plain object from a PD message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.PD - * @static - * @param {google.cloud.batch.v1alpha.PD} message PD - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PD.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.disk = ""; - object.device = ""; - object.existing = false; - } - if (message.disk != null && message.hasOwnProperty("disk")) - object.disk = message.disk; - if (message.device != null && message.hasOwnProperty("device")) - object.device = message.device; - if (message.existing != null && message.hasOwnProperty("existing")) - object.existing = message.existing; - return object; - }; + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this PD to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.PD - * @instance - * @returns {Object.} JSON object - */ - PD.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; - /** - * Gets the default type url for PD - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.PD - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PD.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.PD"; - }; + SourceCodeInfo.Location = (function() { - return PD; - })(); + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ - v1alpha.GCS = (function() { + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + 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]]; + } - /** - * Properties of a GCS. - * @memberof google.cloud.batch.v1alpha - * @interface IGCS - * @property {string|null} [remotePath] GCS remotePath - */ + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; - /** - * Constructs a new GCS. - * @memberof google.cloud.batch.v1alpha - * @classdesc Represents a GCS. - * @implements IGCS - * @constructor - * @param {google.cloud.batch.v1alpha.IGCS=} [properties] Properties to set - */ - function GCS(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]]; - } + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; - /** - * GCS remotePath. - * @member {string} remotePath - * @memberof google.cloud.batch.v1alpha.GCS - * @instance - */ - GCS.prototype.remotePath = ""; + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; - /** - * Creates a new GCS instance using the specified properties. - * @function create - * @memberof google.cloud.batch.v1alpha.GCS - * @static - * @param {google.cloud.batch.v1alpha.IGCS=} [properties] Properties to set - * @returns {google.cloud.batch.v1alpha.GCS} GCS instance - */ - GCS.create = function create(properties) { - return new GCS(properties); - }; + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; - /** - * Encodes the specified GCS message. Does not implicitly {@link google.cloud.batch.v1alpha.GCS.verify|verify} messages. - * @function encode - * @memberof google.cloud.batch.v1alpha.GCS - * @static - * @param {google.cloud.batch.v1alpha.IGCS} message GCS message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCS.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.remotePath != null && Object.hasOwnProperty.call(message, "remotePath")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.remotePath); - return writer; - }; + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; - /** - * Encodes the specified GCS message, length delimited. Does not implicitly {@link google.cloud.batch.v1alpha.GCS.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.batch.v1alpha.GCS - * @static - * @param {google.cloud.batch.v1alpha.IGCS} message GCS message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCS.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; - /** - * Decodes a GCS message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.batch.v1alpha.GCS - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.batch.v1alpha.GCS} GCS - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCS.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.batch.v1alpha.GCS(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.remotePath = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a GCS message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.batch.v1alpha.GCS - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.batch.v1alpha.GCS} GCS - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCS.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a GCS message. - * @function verify - * @memberof google.cloud.batch.v1alpha.GCS - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GCS.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.remotePath != null && message.hasOwnProperty("remotePath")) - if (!$util.isString(message.remotePath)) - return "remotePath: string expected"; - return null; - }; + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a GCS message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.batch.v1alpha.GCS - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.batch.v1alpha.GCS} GCS - */ - GCS.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.batch.v1alpha.GCS) - return object; - var message = new $root.google.cloud.batch.v1alpha.GCS(); - if (object.remotePath != null) - message.remotePath = String(object.remotePath); - return message; - }; + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; - /** - * Creates a plain object from a GCS message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.batch.v1alpha.GCS - * @static - * @param {google.cloud.batch.v1alpha.GCS} message GCS - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GCS.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.remotePath = ""; - if (message.remotePath != null && message.hasOwnProperty("remotePath")) - object.remotePath = message.remotePath; + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) return object; - }; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; - /** - * Converts this GCS to JSON. - * @function toJSON - * @memberof google.cloud.batch.v1alpha.GCS - * @instance - * @returns {Object.} JSON object - */ - GCS.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; - /** - * Gets the default type url for GCS - * @function getTypeUrl - * @memberof google.cloud.batch.v1alpha.GCS - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GCS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.batch.v1alpha.GCS"; - }; + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GCS; - })(); + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; - return v1alpha; + return Location; })(); - return batch; + return SourceCodeInfo; })(); - return cloud; - })(); - - google.api = (function() { - - /** - * Namespace api. - * @memberof google - * @namespace - */ - var api = {}; - - api.Http = (function() { + protobuf.GeneratedCodeInfo = (function() { /** - * Properties of a Http. - * @memberof google.api - * @interface IHttp - * @property {Array.|null} [rules] Http rules - * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation */ /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo * @constructor - * @param {google.api.IHttp=} [properties] Properties to set + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set */ - function Http(properties) { - this.rules = []; + function GeneratedCodeInfo(properties) { + this.annotation = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38143,255 +38461,584 @@ } /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http - * @instance - */ - Http.prototype.rules = $util.emptyArray; - - /** - * Http fullyDecodeReservedExpansion. - * @member {boolean} fullyDecodeReservedExpansion - * @memberof google.api.Http + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo * @instance */ - Http.prototype.fullyDecodeReservedExpansion = false; + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; /** - * Creates a new Http instance using the specified properties. + * Creates a new GeneratedCodeInfo instance using the specified properties. * @function create - * @memberof google.api.Http + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.api.IHttp=} [properties] Properties to set - * @returns {google.api.Http} Http instance + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance */ - Http.create = function create(properties) { - return new Http(properties); + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); }; /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encode - * @memberof google.api.Http + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.api.IHttp} message Http message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Http.encode = function encode(message, writer) { + GeneratedCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.Http + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.api.IHttp} message Http message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Http.encodeDelimited = function encodeDelimited(message, writer) { + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Http message from the specified reader or buffer. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.api.Http + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.Http} Http + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Http.decode = function decode(reader, length) { + GeneratedCodeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + 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]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: break; } - case 2: { - message.fullyDecodeReservedExpansion = reader.bool(); + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; break; } - default: - reader.skipType(tag & 7); + break; + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; break; } - } - return message; - }; - - /** - * Decodes a Http message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; - /** - * Verifies a Http message. - * @function verify - * @memberof google.api.Http - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Http.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.rules[i]); - if (error) - return "rules." + error; + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; } - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - if (typeof message.fullyDecodeReservedExpansion !== "boolean") - return "fullyDecodeReservedExpansion: boolean expected"; - return null; - }; - - /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.Http - * @static - * @param {Object.} object Plain object - * @returns {google.api.Http} Http - */ - Http.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Http) - return object; - var message = new $root.google.api.Http(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.api.Http.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.api.Http.rules: object expected"); - message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; } - } - if (object.fullyDecodeReservedExpansion != null) - message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); - return message; - }; + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; + return object; + }; - /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.Http - * @static - * @param {google.api.Http} message Http - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Http.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (options.defaults) - object.fullyDecodeReservedExpansion = false; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; - return object; - }; + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this Http to JSON. - * @function toJSON - * @memberof google.api.Http - * @instance - * @returns {Object.} JSON object - */ - Http.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; - /** - * Gets the default type url for Http - * @function getTypeUrl - * @memberof google.api.Http - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.Http"; - }; + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); - return Http; + return Annotation; + })(); + + return GeneratedCodeInfo; })(); - api.HttpRule = (function() { + protobuf.Duration = (function() { /** - * Properties of a HttpRule. - * @memberof google.api - * @interface IHttpRule - * @property {string|null} [selector] HttpRule selector - * @property {string|null} [get] HttpRule get - * @property {string|null} [put] HttpRule put - * @property {string|null} [post] HttpRule post - * @property {string|null} ["delete"] HttpRule delete - * @property {string|null} [patch] HttpRule patch - * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom - * @property {string|null} [body] HttpRule body - * @property {string|null} [responseBody] HttpRule responseBody - * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos */ /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set + * @param {google.protobuf.IDuration=} [properties] Properties to set */ - function HttpRule(properties) { - this.additionalBindings = []; + function Duration(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38399,218 +39046,89 @@ } /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; - - /** - * HttpRule get. - * @member {string|null|undefined} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = null; - - /** - * HttpRule put. - * @member {string|null|undefined} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = null; - - /** - * HttpRule post. - * @member {string|null|undefined} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = null; - - /** - * HttpRule delete. - * @member {string|null|undefined} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = null; - - /** - * HttpRule patch. - * @member {string|null|undefined} patch - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.patch = null; - - /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.custom = null; - - /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.body = ""; - - /** - * HttpRule responseBody. - * @member {string} responseBody - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.responseBody = ""; - - /** - * HttpRule additionalBindings. - * @member {Array.} additionalBindings - * @memberof google.api.HttpRule + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration * @instance */ - HttpRule.prototype.additionalBindings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration * @instance */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); + Duration.prototype.nanos = 0; /** - * Creates a new HttpRule instance using the specified properties. + * Creates a new Duration instance using the specified properties. * @function create - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @static - * @param {google.api.IHttpRule=} [properties] Properties to set - * @returns {google.api.HttpRule} HttpRule instance + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance */ - HttpRule.create = function create(properties) { - return new HttpRule(properties); + Duration.create = function create(properties) { + return new Duration(properties); }; /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. * @function encode - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {google.protobuf.IDuration} message Duration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpRule.encode = function encode(message, writer) { + Duration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && Object.hasOwnProperty.call(message, "get")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && Object.hasOwnProperty.call(message, "put")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && Object.hasOwnProperty.call(message, "post")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && Object.hasOwnProperty.call(message, "body")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.additionalBindings != null && message.additionalBindings.length) - for (var i = 0; i < message.additionalBindings.length; ++i) - $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {google.protobuf.IDuration} message Duration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + Duration.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HttpRule message from the specified reader or buffer. + * Decodes a Duration message from the specified reader or buffer. * @function decode - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.Duration} Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpRule.decode = function decode(reader, length) { + Duration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.selector = reader.string(); - break; - } - case 2: { - message.get = reader.string(); - break; - } - case 3: { - message.put = reader.string(); - break; - } - case 4: { - message.post = reader.string(); - break; - } - case 5: { - message["delete"] = reader.string(); - break; - } - case 6: { - message.patch = reader.string(); - break; - } - case 8: { - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - } - case 7: { - message.body = reader.string(); - break; - } - case 12: { - message.responseBody = reader.string(); + case 1: { + message.seconds = reader.int64(); break; } - case 11: { - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + case 2: { + message.nanos = reader.int32(); break; } default: @@ -38622,255 +39140,146 @@ }; /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.Duration} Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpRule.decodeDelimited = function decodeDelimited(reader) { + Duration.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HttpRule message. + * Verifies a Duration message. * @function verify - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HttpRule.verify = function verify(message) { + Duration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.get != null && message.hasOwnProperty("get")) { - properties.pattern = 1; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - var error = $root.google.api.CustomHttpPattern.verify(message.custom); - if (error) - return "custom." + error; - } - } - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - if (!$util.isString(message.responseBody)) - return "responseBody: string expected"; - if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { - if (!Array.isArray(message.additionalBindings)) - return "additionalBindings: array expected"; - for (var i = 0; i < message.additionalBindings.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); - if (error) - return "additionalBindings." + error; - } - } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; return null; }; /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @static * @param {Object.} object Plain object - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.Duration} Duration */ - HttpRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.HttpRule) + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) return object; - var message = new $root.google.api.HttpRule(); - if (object.selector != null) - message.selector = String(object.selector); - if (object.get != null) - message.get = String(object.get); - if (object.put != null) - message.put = String(object.put); - if (object.post != null) - message.post = String(object.post); - if (object["delete"] != null) - message["delete"] = String(object["delete"]); - if (object.patch != null) - message.patch = String(object.patch); - if (object.custom != null) { - if (typeof object.custom !== "object") - throw TypeError(".google.api.HttpRule.custom: object expected"); - message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); - } - if (object.body != null) - message.body = String(object.body); - if (object.responseBody != null) - message.responseBody = String(object.responseBody); - if (object.additionalBindings) { - if (!Array.isArray(object.additionalBindings)) - throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); - message.additionalBindings = []; - for (var i = 0; i < object.additionalBindings.length; ++i) { - if (typeof object.additionalBindings[i] !== "object") - throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); - message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); - } - } + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; return message; }; /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * Creates a plain object from a Duration message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @static - * @param {google.api.HttpRule} message HttpRule + * @param {google.protobuf.Duration} message Duration * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HttpRule.toObject = function toObject(message, options) { + Duration.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.additionalBindings = []; if (options.defaults) { - object.selector = ""; - object.body = ""; - object.responseBody = ""; - } - if (message.selector != null && message.hasOwnProperty("selector")) - object.selector = message.selector; - if (message.get != null && message.hasOwnProperty("get")) { - object.get = message.get; - if (options.oneofs) - object.pattern = "get"; - } - if (message.put != null && message.hasOwnProperty("put")) { - object.put = message.put; - if (options.oneofs) - object.pattern = "put"; - } - if (message.post != null && message.hasOwnProperty("post")) { - object.post = message.post; - if (options.oneofs) - object.pattern = "post"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - object["delete"] = message["delete"]; - if (options.oneofs) - object.pattern = "delete"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - object.patch = message.patch; - if (options.oneofs) - object.pattern = "patch"; - } - if (message.body != null && message.hasOwnProperty("body")) - object.body = message.body; - if (message.custom != null && message.hasOwnProperty("custom")) { - object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); - if (options.oneofs) - object.pattern = "custom"; - } - if (message.additionalBindings && message.additionalBindings.length) { - object.additionalBindings = []; - for (var j = 0; j < message.additionalBindings.length; ++j) - object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; } - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - object.responseBody = message.responseBody; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; return object; }; /** - * Converts this HttpRule to JSON. + * Converts this Duration to JSON. * @function toJSON - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @instance * @returns {Object.} JSON object */ - HttpRule.prototype.toJSON = function toJSON() { + Duration.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HttpRule + * Gets the default type url for Duration * @function getTypeUrl - * @memberof google.api.HttpRule + * @memberof google.protobuf.Duration * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.HttpRule"; + return typeUrlPrefix + "/google.protobuf.Duration"; }; - return HttpRule; + return Duration; })(); - api.CustomHttpPattern = (function() { + protobuf.Timestamp = (function() { /** - * Properties of a CustomHttpPattern. - * @memberof google.api - * @interface ICustomHttpPattern - * @property {string|null} [kind] CustomHttpPattern kind - * @property {string|null} [path] CustomHttpPattern path + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos */ /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @param {google.protobuf.ITimestamp=} [properties] Properties to set */ - function CustomHttpPattern(properties) { + function Timestamp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38878,89 +39287,89 @@ } /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp * @instance */ - CustomHttpPattern.prototype.kind = ""; + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp * @instance */ - CustomHttpPattern.prototype.path = ""; + Timestamp.prototype.nanos = 0; /** - * Creates a new CustomHttpPattern instance using the specified properties. + * Creates a new Timestamp instance using the specified properties. * @function create - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @static - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance */ - CustomHttpPattern.create = function create(properties) { - return new CustomHttpPattern(properties); + Timestamp.create = function create(properties) { + return new Timestamp(properties); }; /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. * @function encode - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encode = function encode(message, writer) { + Timestamp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * Decodes a Timestamp message from the specified reader or buffer. * @function decode - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.Timestamp} Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decode = function decode(reader, length) { + Timestamp.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.kind = reader.string(); + message.seconds = reader.int64(); break; } case 2: { - message.path = reader.string(); + message.nanos = reader.int32(); break; } default: @@ -38972,339 +39381,236 @@ }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.Timestamp} Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + Timestamp.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CustomHttpPattern message. + * Verifies a Timestamp message. * @function verify - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomHttpPattern.verify = function verify(message) { + Timestamp.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - if (!$util.isString(message.kind)) - return "kind: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; return null; }; /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @static * @param {Object.} object Plain object - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.Timestamp} Timestamp */ - CustomHttpPattern.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CustomHttpPattern) + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) return object; - var message = new $root.google.api.CustomHttpPattern(); - if (object.kind != null) - message.kind = String(object.kind); - if (object.path != null) - message.path = String(object.path); + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; return message; }; /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @static - * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {google.protobuf.Timestamp} message Timestamp * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomHttpPattern.toObject = function toObject(message, options) { + Timestamp.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.kind = ""; - object.path = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; } - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = message.kind; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; return object; }; /** - * Converts this CustomHttpPattern to JSON. + * Converts this Timestamp to JSON. * @function toJSON - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @instance * @returns {Object.} JSON object */ - CustomHttpPattern.prototype.toJSON = function toJSON() { + Timestamp.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CustomHttpPattern + * Gets the default type url for Timestamp * @function getTypeUrl - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.Timestamp * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.CustomHttpPattern"; + return typeUrlPrefix + "/google.protobuf.Timestamp"; }; - return CustomHttpPattern; - })(); - - /** - * FieldBehavior enum. - * @name google.api.FieldBehavior - * @enum {number} - * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value - * @property {number} OPTIONAL=1 OPTIONAL value - * @property {number} REQUIRED=2 REQUIRED value - * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value - * @property {number} INPUT_ONLY=4 INPUT_ONLY value - * @property {number} IMMUTABLE=5 IMMUTABLE value - * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value - * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value - */ - api.FieldBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "OPTIONAL"] = 1; - values[valuesById[2] = "REQUIRED"] = 2; - values[valuesById[3] = "OUTPUT_ONLY"] = 3; - values[valuesById[4] = "INPUT_ONLY"] = 4; - values[valuesById[5] = "IMMUTABLE"] = 5; - values[valuesById[6] = "UNORDERED_LIST"] = 6; - values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; - return values; + return Timestamp; })(); - api.ResourceDescriptor = (function() { + protobuf.Any = (function() { /** - * Properties of a ResourceDescriptor. - * @memberof google.api - * @interface IResourceDescriptor - * @property {string|null} [type] ResourceDescriptor type - * @property {Array.|null} [pattern] ResourceDescriptor pattern - * @property {string|null} [nameField] ResourceDescriptor nameField - * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history - * @property {string|null} [plural] ResourceDescriptor plural - * @property {string|null} [singular] ResourceDescriptor singular - * @property {Array.|null} [style] ResourceDescriptor style + * Properties of an Any. + * @memberof google.protobuf + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value */ /** - * Constructs a new ResourceDescriptor. - * @memberof google.api - * @classdesc Represents a ResourceDescriptor. - * @implements IResourceDescriptor + * Constructs a new Any. + * @memberof google.protobuf + * @classdesc Represents an Any. + * @implements IAny * @constructor - * @param {google.api.IResourceDescriptor=} [properties] Properties to set - */ - function ResourceDescriptor(properties) { - this.pattern = []; - this.style = []; - 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]]; - } - - /** - * ResourceDescriptor type. - * @member {string} type - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.type = ""; - - /** - * ResourceDescriptor pattern. - * @member {Array.} pattern - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.pattern = $util.emptyArray; - - /** - * ResourceDescriptor nameField. - * @member {string} nameField - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.nameField = ""; - - /** - * ResourceDescriptor history. - * @member {google.api.ResourceDescriptor.History} history - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.history = 0; - - /** - * ResourceDescriptor plural. - * @member {string} plural - * @memberof google.api.ResourceDescriptor - * @instance + * @param {google.protobuf.IAny=} [properties] Properties to set */ - ResourceDescriptor.prototype.plural = ""; + function Any(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]]; + } /** - * ResourceDescriptor singular. - * @member {string} singular - * @memberof google.api.ResourceDescriptor + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any * @instance */ - ResourceDescriptor.prototype.singular = ""; + Any.prototype.type_url = ""; /** - * ResourceDescriptor style. - * @member {Array.} style - * @memberof google.api.ResourceDescriptor + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any * @instance */ - ResourceDescriptor.prototype.style = $util.emptyArray; + Any.prototype.value = $util.newBuffer([]); /** - * Creates a new ResourceDescriptor instance using the specified properties. + * Creates a new Any instance using the specified properties. * @function create - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @static - * @param {google.api.IResourceDescriptor=} [properties] Properties to set - * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + * @param {google.protobuf.IAny=} [properties] Properties to set + * @returns {google.protobuf.Any} Any instance */ - ResourceDescriptor.create = function create(properties) { - return new ResourceDescriptor(properties); + Any.create = function create(properties) { + return new Any(properties); }; /** - * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encode - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @static - * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceDescriptor.encode = function encode(message, writer) { + Any.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.pattern != null && message.pattern.length) - for (var i = 0; i < message.pattern.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); - if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); - if (message.history != null && Object.hasOwnProperty.call(message, "history")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); - if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); - if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); - if (message.style != null && message.style.length) { - writer.uint32(/* id 10, wireType 2 =*/82).fork(); - for (var i = 0; i < message.style.length; ++i) - writer.int32(message.style[i]); - writer.ldelim(); - } + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @static - * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + Any.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer. + * Decodes an Any message from the specified reader or buffer. * @function decode - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceDescriptor.decode = function decode(reader, length) { + Any.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.string(); + message.type_url = reader.string(); break; } case 2: { - if (!(message.pattern && message.pattern.length)) - message.pattern = []; - message.pattern.push(reader.string()); - break; - } - case 3: { - message.nameField = reader.string(); - break; - } - case 4: { - message.history = reader.int32(); - break; - } - case 5: { - message.plural = reader.string(); - break; - } - case 6: { - message.singular = reader.string(); - break; - } - case 10: { - if (!(message.style && message.style.length)) - message.style = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.style.push(reader.int32()); - } else - message.style.push(reader.int32()); + message.value = reader.bytes(); break; } default: @@ -39316,271 +39622,139 @@ }; /** - * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + Any.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourceDescriptor message. + * Verifies an Any message. * @function verify - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourceDescriptor.verify = function verify(message) { + Any.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.pattern != null && message.hasOwnProperty("pattern")) { - if (!Array.isArray(message.pattern)) - return "pattern: array expected"; - for (var i = 0; i < message.pattern.length; ++i) - if (!$util.isString(message.pattern[i])) - return "pattern: string[] expected"; - } - if (message.nameField != null && message.hasOwnProperty("nameField")) - if (!$util.isString(message.nameField)) - return "nameField: string expected"; - if (message.history != null && message.hasOwnProperty("history")) - switch (message.history) { - default: - return "history: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.plural != null && message.hasOwnProperty("plural")) - if (!$util.isString(message.plural)) - return "plural: string expected"; - if (message.singular != null && message.hasOwnProperty("singular")) - if (!$util.isString(message.singular)) - return "singular: string expected"; - if (message.style != null && message.hasOwnProperty("style")) { - if (!Array.isArray(message.style)) - return "style: array expected"; - for (var i = 0; i < message.style.length; ++i) - switch (message.style[i]) { - default: - return "style: enum value[] expected"; - case 0: - case 1: - break; - } - } + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @static * @param {Object.} object Plain object - * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @returns {google.protobuf.Any} Any */ - ResourceDescriptor.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ResourceDescriptor) + Any.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Any) return object; - var message = new $root.google.api.ResourceDescriptor(); - if (object.type != null) - message.type = String(object.type); - if (object.pattern) { - if (!Array.isArray(object.pattern)) - throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); - message.pattern = []; - for (var i = 0; i < object.pattern.length; ++i) - message.pattern[i] = String(object.pattern[i]); - } - if (object.nameField != null) - message.nameField = String(object.nameField); - switch (object.history) { - default: - if (typeof object.history === "number") { - message.history = object.history; - break; - } - break; - case "HISTORY_UNSPECIFIED": - case 0: - message.history = 0; - break; - case "ORIGINALLY_SINGLE_PATTERN": - case 1: - message.history = 1; - break; - case "FUTURE_MULTI_PATTERN": - case 2: - message.history = 2; - break; - } - if (object.plural != null) - message.plural = String(object.plural); - if (object.singular != null) - message.singular = String(object.singular); - if (object.style) { - if (!Array.isArray(object.style)) - throw TypeError(".google.api.ResourceDescriptor.style: array expected"); - message.style = []; - for (var i = 0; i < object.style.length; ++i) - switch (object.style[i]) { - default: - if (typeof object.style[i] === "number") { - message.style[i] = object.style[i]; - break; - } - case "STYLE_UNSPECIFIED": - case 0: - message.style[i] = 0; - break; - case "DECLARATIVE_FRIENDLY": - case 1: - message.style[i] = 1; - break; - } - } + var message = new $root.google.protobuf.Any(); + if (object.type_url != null) + message.type_url = String(object.type_url); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; return message; }; /** - * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * Creates a plain object from an Any message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @static - * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {google.protobuf.Any} message Any * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourceDescriptor.toObject = function toObject(message, options) { + Any.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.pattern = []; - object.style = []; - } if (options.defaults) { - object.type = ""; - object.nameField = ""; - object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; - object.plural = ""; - object.singular = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.pattern && message.pattern.length) { - object.pattern = []; - for (var j = 0; j < message.pattern.length; ++j) - object.pattern[j] = message.pattern[j]; - } - if (message.nameField != null && message.hasOwnProperty("nameField")) - object.nameField = message.nameField; - if (message.history != null && message.hasOwnProperty("history")) - object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; - if (message.plural != null && message.hasOwnProperty("plural")) - object.plural = message.plural; - if (message.singular != null && message.hasOwnProperty("singular")) - object.singular = message.singular; - if (message.style && message.style.length) { - object.style = []; - for (var j = 0; j < message.style.length; ++j) - object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + object.type_url = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } } + if (message.type_url != null && message.hasOwnProperty("type_url")) + object.type_url = message.type_url; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this ResourceDescriptor to JSON. + * Converts this Any to JSON. * @function toJSON - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @instance * @returns {Object.} JSON object */ - ResourceDescriptor.prototype.toJSON = function toJSON() { + Any.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResourceDescriptor + * Gets the default type url for Any * @function getTypeUrl - * @memberof google.api.ResourceDescriptor + * @memberof google.protobuf.Any * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.ResourceDescriptor"; + return typeUrlPrefix + "/google.protobuf.Any"; }; - /** - * History enum. - * @name google.api.ResourceDescriptor.History - * @enum {number} - * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value - * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value - * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value - */ - ResourceDescriptor.History = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; - values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; - return values; - })(); - - /** - * Style enum. - * @name google.api.ResourceDescriptor.Style - * @enum {number} - * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value - * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value - */ - ResourceDescriptor.Style = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; - return values; - })(); - - return ResourceDescriptor; + return Any; })(); - api.ResourceReference = (function() { + protobuf.Empty = (function() { /** - * Properties of a ResourceReference. - * @memberof google.api - * @interface IResourceReference - * @property {string|null} [type] ResourceReference type - * @property {string|null} [childType] ResourceReference childType + * Properties of an Empty. + * @memberof google.protobuf + * @interface IEmpty */ /** - * Constructs a new ResourceReference. - * @memberof google.api - * @classdesc Represents a ResourceReference. - * @implements IResourceReference + * Constructs a new Empty. + * @memberof google.protobuf + * @classdesc Represents an Empty. + * @implements IEmpty * @constructor - * @param {google.api.IResourceReference=} [properties] Properties to set + * @param {google.protobuf.IEmpty=} [properties] Properties to set */ - function ResourceReference(properties) { + function Empty(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39588,91 +39762,63 @@ } /** - * ResourceReference type. - * @member {string} type - * @memberof google.api.ResourceReference - * @instance - */ - ResourceReference.prototype.type = ""; - - /** - * ResourceReference childType. - * @member {string} childType - * @memberof google.api.ResourceReference - * @instance - */ - ResourceReference.prototype.childType = ""; - - /** - * Creates a new ResourceReference instance using the specified properties. + * Creates a new Empty instance using the specified properties. * @function create - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @static - * @param {google.api.IResourceReference=} [properties] Properties to set - * @returns {google.api.ResourceReference} ResourceReference instance + * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @returns {google.protobuf.Empty} Empty instance */ - ResourceReference.create = function create(properties) { - return new ResourceReference(properties); + Empty.create = function create(properties) { + return new Empty(properties); }; /** - * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @function encode - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @static - * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceReference.encode = function encode(message, writer) { + Empty.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); return writer; }; /** - * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @static - * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + Empty.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourceReference message from the specified reader or buffer. + * Decodes an Empty message from the specified reader or buffer. * @function decode - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.ResourceReference} ResourceReference + * @returns {google.protobuf.Empty} Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceReference.decode = function decode(reader, length) { + Empty.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.type = reader.string(); - break; - } - case 2: { - message.childType = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -39682,114 +39828,92 @@ }; /** - * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * Decodes an Empty message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ResourceReference} ResourceReference + * @returns {google.protobuf.Empty} Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceReference.decodeDelimited = function decodeDelimited(reader) { + Empty.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourceReference message. + * Verifies an Empty message. * @function verify - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourceReference.verify = function verify(message) { + Empty.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.childType != null && message.hasOwnProperty("childType")) - if (!$util.isString(message.childType)) - return "childType: string expected"; return null; }; /** - * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * Creates an Empty message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @static * @param {Object.} object Plain object - * @returns {google.api.ResourceReference} ResourceReference + * @returns {google.protobuf.Empty} Empty */ - ResourceReference.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ResourceReference) + Empty.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Empty) return object; - var message = new $root.google.api.ResourceReference(); - if (object.type != null) - message.type = String(object.type); - if (object.childType != null) - message.childType = String(object.childType); - return message; + return new $root.google.protobuf.Empty(); }; /** - * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * Creates a plain object from an Empty message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @static - * @param {google.api.ResourceReference} message ResourceReference + * @param {google.protobuf.Empty} message Empty * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourceReference.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = ""; - object.childType = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.childType != null && message.hasOwnProperty("childType")) - object.childType = message.childType; - return object; + Empty.toObject = function toObject() { + return {}; }; /** - * Converts this ResourceReference to JSON. + * Converts this Empty to JSON. * @function toJSON - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @instance * @returns {Object.} JSON object */ - ResourceReference.prototype.toJSON = function toJSON() { + Empty.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResourceReference + * Gets the default type url for Empty * @function getTypeUrl - * @memberof google.api.ResourceReference + * @memberof google.protobuf.Empty * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.api.ResourceReference"; + return typeUrlPrefix + "/google.protobuf.Empty"; }; - return ResourceReference; + return Empty; })(); - return api; + return protobuf; })(); google.longrunning = (function() { diff --git a/packages/google-cloud-batch/protos/protos.json b/packages/google-cloud-batch/protos/protos.json index 333c70fbd4e4..c7d9d6ca9bde 100644 --- a/packages/google-cloud-batch/protos/protos.json +++ b/packages/google-cloud-batch/protos/protos.json @@ -2,983 +2,11 @@ "nested": { "google": { "nested": { - "protobuf": { - "options": { - "go_package": "google.golang.org/protobuf/types/descriptorpb", - "java_package": "com.google.protobuf", - "java_outer_classname": "DescriptorProtos", - "csharp_namespace": "Google.Protobuf.Reflection", - "objc_class_prefix": "GPB", - "cc_enable_arenas": true, - "optimize_for": "SPEED" - }, + "cloud": { "nested": { - "Empty": { - "fields": {} - }, - "FileDescriptorSet": { - "fields": { - "file": { - "rule": "repeated", - "type": "FileDescriptorProto", - "id": 1 - } - } - }, - "FileDescriptorProto": { - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "package": { - "type": "string", - "id": 2 - }, - "dependency": { - "rule": "repeated", - "type": "string", - "id": 3 - }, - "publicDependency": { - "rule": "repeated", - "type": "int32", - "id": 10, - "options": { - "packed": false - } - }, - "weakDependency": { - "rule": "repeated", - "type": "int32", - "id": 11, - "options": { - "packed": false - } - }, - "messageType": { - "rule": "repeated", - "type": "DescriptorProto", - "id": 4 - }, - "enumType": { - "rule": "repeated", - "type": "EnumDescriptorProto", - "id": 5 - }, - "service": { - "rule": "repeated", - "type": "ServiceDescriptorProto", - "id": 6 - }, - "extension": { - "rule": "repeated", - "type": "FieldDescriptorProto", - "id": 7 - }, - "options": { - "type": "FileOptions", - "id": 8 - }, - "sourceCodeInfo": { - "type": "SourceCodeInfo", - "id": 9 - }, - "syntax": { - "type": "string", - "id": 12 - }, - "edition": { - "type": "string", - "id": 13 - } - } - }, - "DescriptorProto": { - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "field": { - "rule": "repeated", - "type": "FieldDescriptorProto", - "id": 2 - }, - "extension": { - "rule": "repeated", - "type": "FieldDescriptorProto", - "id": 6 - }, - "nestedType": { - "rule": "repeated", - "type": "DescriptorProto", - "id": 3 - }, - "enumType": { - "rule": "repeated", - "type": "EnumDescriptorProto", - "id": 4 - }, - "extensionRange": { - "rule": "repeated", - "type": "ExtensionRange", - "id": 5 - }, - "oneofDecl": { - "rule": "repeated", - "type": "OneofDescriptorProto", - "id": 8 - }, - "options": { - "type": "MessageOptions", - "id": 7 - }, - "reservedRange": { - "rule": "repeated", - "type": "ReservedRange", - "id": 9 - }, - "reservedName": { - "rule": "repeated", - "type": "string", - "id": 10 - } - }, - "nested": { - "ExtensionRange": { - "fields": { - "start": { - "type": "int32", - "id": 1 - }, - "end": { - "type": "int32", - "id": 2 - }, - "options": { - "type": "ExtensionRangeOptions", - "id": 3 - } - } - }, - "ReservedRange": { - "fields": { - "start": { - "type": "int32", - "id": 1 - }, - "end": { - "type": "int32", - "id": 2 - } - } - } - } - }, - "ExtensionRangeOptions": { - "fields": { - "uninterpretedOption": { - "rule": "repeated", - "type": "UninterpretedOption", - "id": 999 - } - }, - "extensions": [ - [ - 1000, - 536870911 - ] - ] - }, - "FieldDescriptorProto": { - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "number": { - "type": "int32", - "id": 3 - }, - "label": { - "type": "Label", - "id": 4 - }, - "type": { - "type": "Type", - "id": 5 - }, - "typeName": { - "type": "string", - "id": 6 - }, - "extendee": { - "type": "string", - "id": 2 - }, - "defaultValue": { - "type": "string", - "id": 7 - }, - "oneofIndex": { - "type": "int32", - "id": 9 - }, - "jsonName": { - "type": "string", - "id": 10 - }, - "options": { - "type": "FieldOptions", - "id": 8 - }, - "proto3Optional": { - "type": "bool", - "id": 17 - } - }, + "batch": { "nested": { - "Type": { - "values": { - "TYPE_DOUBLE": 1, - "TYPE_FLOAT": 2, - "TYPE_INT64": 3, - "TYPE_UINT64": 4, - "TYPE_INT32": 5, - "TYPE_FIXED64": 6, - "TYPE_FIXED32": 7, - "TYPE_BOOL": 8, - "TYPE_STRING": 9, - "TYPE_GROUP": 10, - "TYPE_MESSAGE": 11, - "TYPE_BYTES": 12, - "TYPE_UINT32": 13, - "TYPE_ENUM": 14, - "TYPE_SFIXED32": 15, - "TYPE_SFIXED64": 16, - "TYPE_SINT32": 17, - "TYPE_SINT64": 18 - } - }, - "Label": { - "values": { - "LABEL_OPTIONAL": 1, - "LABEL_REQUIRED": 2, - "LABEL_REPEATED": 3 - } - } - } - }, - "OneofDescriptorProto": { - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "options": { - "type": "OneofOptions", - "id": 2 - } - } - }, - "EnumDescriptorProto": { - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "value": { - "rule": "repeated", - "type": "EnumValueDescriptorProto", - "id": 2 - }, - "options": { - "type": "EnumOptions", - "id": 3 - }, - "reservedRange": { - "rule": "repeated", - "type": "EnumReservedRange", - "id": 4 - }, - "reservedName": { - "rule": "repeated", - "type": "string", - "id": 5 - } - }, - "nested": { - "EnumReservedRange": { - "fields": { - "start": { - "type": "int32", - "id": 1 - }, - "end": { - "type": "int32", - "id": 2 - } - } - } - } - }, - "EnumValueDescriptorProto": { - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "number": { - "type": "int32", - "id": 2 - }, - "options": { - "type": "EnumValueOptions", - "id": 3 - } - } - }, - "ServiceDescriptorProto": { - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "method": { - "rule": "repeated", - "type": "MethodDescriptorProto", - "id": 2 - }, - "options": { - "type": "ServiceOptions", - "id": 3 - } - } - }, - "MethodDescriptorProto": { - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "inputType": { - "type": "string", - "id": 2 - }, - "outputType": { - "type": "string", - "id": 3 - }, - "options": { - "type": "MethodOptions", - "id": 4 - }, - "clientStreaming": { - "type": "bool", - "id": 5, - "options": { - "default": false - } - }, - "serverStreaming": { - "type": "bool", - "id": 6, - "options": { - "default": false - } - } - } - }, - "FileOptions": { - "fields": { - "javaPackage": { - "type": "string", - "id": 1 - }, - "javaOuterClassname": { - "type": "string", - "id": 8 - }, - "javaMultipleFiles": { - "type": "bool", - "id": 10, - "options": { - "default": false - } - }, - "javaGenerateEqualsAndHash": { - "type": "bool", - "id": 20, - "options": { - "deprecated": true - } - }, - "javaStringCheckUtf8": { - "type": "bool", - "id": 27, - "options": { - "default": false - } - }, - "optimizeFor": { - "type": "OptimizeMode", - "id": 9, - "options": { - "default": "SPEED" - } - }, - "goPackage": { - "type": "string", - "id": 11 - }, - "ccGenericServices": { - "type": "bool", - "id": 16, - "options": { - "default": false - } - }, - "javaGenericServices": { - "type": "bool", - "id": 17, - "options": { - "default": false - } - }, - "pyGenericServices": { - "type": "bool", - "id": 18, - "options": { - "default": false - } - }, - "phpGenericServices": { - "type": "bool", - "id": 42, - "options": { - "default": false - } - }, - "deprecated": { - "type": "bool", - "id": 23, - "options": { - "default": false - } - }, - "ccEnableArenas": { - "type": "bool", - "id": 31, - "options": { - "default": true - } - }, - "objcClassPrefix": { - "type": "string", - "id": 36 - }, - "csharpNamespace": { - "type": "string", - "id": 37 - }, - "swiftPrefix": { - "type": "string", - "id": 39 - }, - "phpClassPrefix": { - "type": "string", - "id": 40 - }, - "phpNamespace": { - "type": "string", - "id": 41 - }, - "phpMetadataNamespace": { - "type": "string", - "id": 44 - }, - "rubyPackage": { - "type": "string", - "id": 45 - }, - "uninterpretedOption": { - "rule": "repeated", - "type": "UninterpretedOption", - "id": 999 - } - }, - "extensions": [ - [ - 1000, - 536870911 - ] - ], - "reserved": [ - [ - 38, - 38 - ] - ], - "nested": { - "OptimizeMode": { - "values": { - "SPEED": 1, - "CODE_SIZE": 2, - "LITE_RUNTIME": 3 - } - } - } - }, - "MessageOptions": { - "fields": { - "messageSetWireFormat": { - "type": "bool", - "id": 1, - "options": { - "default": false - } - }, - "noStandardDescriptorAccessor": { - "type": "bool", - "id": 2, - "options": { - "default": false - } - }, - "deprecated": { - "type": "bool", - "id": 3, - "options": { - "default": false - } - }, - "mapEntry": { - "type": "bool", - "id": 7 - }, - "uninterpretedOption": { - "rule": "repeated", - "type": "UninterpretedOption", - "id": 999 - } - }, - "extensions": [ - [ - 1000, - 536870911 - ] - ], - "reserved": [ - [ - 4, - 4 - ], - [ - 5, - 5 - ], - [ - 6, - 6 - ], - [ - 8, - 8 - ], - [ - 9, - 9 - ] - ] - }, - "FieldOptions": { - "fields": { - "ctype": { - "type": "CType", - "id": 1, - "options": { - "default": "STRING" - } - }, - "packed": { - "type": "bool", - "id": 2 - }, - "jstype": { - "type": "JSType", - "id": 6, - "options": { - "default": "JS_NORMAL" - } - }, - "lazy": { - "type": "bool", - "id": 5, - "options": { - "default": false - } - }, - "unverifiedLazy": { - "type": "bool", - "id": 15, - "options": { - "default": false - } - }, - "deprecated": { - "type": "bool", - "id": 3, - "options": { - "default": false - } - }, - "weak": { - "type": "bool", - "id": 10, - "options": { - "default": false - } - }, - "uninterpretedOption": { - "rule": "repeated", - "type": "UninterpretedOption", - "id": 999 - } - }, - "extensions": [ - [ - 1000, - 536870911 - ] - ], - "reserved": [ - [ - 4, - 4 - ] - ], - "nested": { - "CType": { - "values": { - "STRING": 0, - "CORD": 1, - "STRING_PIECE": 2 - } - }, - "JSType": { - "values": { - "JS_NORMAL": 0, - "JS_STRING": 1, - "JS_NUMBER": 2 - } - } - } - }, - "OneofOptions": { - "fields": { - "uninterpretedOption": { - "rule": "repeated", - "type": "UninterpretedOption", - "id": 999 - } - }, - "extensions": [ - [ - 1000, - 536870911 - ] - ] - }, - "EnumOptions": { - "fields": { - "allowAlias": { - "type": "bool", - "id": 2 - }, - "deprecated": { - "type": "bool", - "id": 3, - "options": { - "default": false - } - }, - "uninterpretedOption": { - "rule": "repeated", - "type": "UninterpretedOption", - "id": 999 - } - }, - "extensions": [ - [ - 1000, - 536870911 - ] - ], - "reserved": [ - [ - 5, - 5 - ] - ] - }, - "EnumValueOptions": { - "fields": { - "deprecated": { - "type": "bool", - "id": 1, - "options": { - "default": false - } - }, - "uninterpretedOption": { - "rule": "repeated", - "type": "UninterpretedOption", - "id": 999 - } - }, - "extensions": [ - [ - 1000, - 536870911 - ] - ] - }, - "ServiceOptions": { - "fields": { - "deprecated": { - "type": "bool", - "id": 33, - "options": { - "default": false - } - }, - "uninterpretedOption": { - "rule": "repeated", - "type": "UninterpretedOption", - "id": 999 - } - }, - "extensions": [ - [ - 1000, - 536870911 - ] - ] - }, - "MethodOptions": { - "fields": { - "deprecated": { - "type": "bool", - "id": 33, - "options": { - "default": false - } - }, - "idempotencyLevel": { - "type": "IdempotencyLevel", - "id": 34, - "options": { - "default": "IDEMPOTENCY_UNKNOWN" - } - }, - "uninterpretedOption": { - "rule": "repeated", - "type": "UninterpretedOption", - "id": 999 - } - }, - "extensions": [ - [ - 1000, - 536870911 - ] - ], - "nested": { - "IdempotencyLevel": { - "values": { - "IDEMPOTENCY_UNKNOWN": 0, - "NO_SIDE_EFFECTS": 1, - "IDEMPOTENT": 2 - } - } - } - }, - "UninterpretedOption": { - "fields": { - "name": { - "rule": "repeated", - "type": "NamePart", - "id": 2 - }, - "identifierValue": { - "type": "string", - "id": 3 - }, - "positiveIntValue": { - "type": "uint64", - "id": 4 - }, - "negativeIntValue": { - "type": "int64", - "id": 5 - }, - "doubleValue": { - "type": "double", - "id": 6 - }, - "stringValue": { - "type": "bytes", - "id": 7 - }, - "aggregateValue": { - "type": "string", - "id": 8 - } - }, - "nested": { - "NamePart": { - "fields": { - "namePart": { - "rule": "required", - "type": "string", - "id": 1 - }, - "isExtension": { - "rule": "required", - "type": "bool", - "id": 2 - } - } - } - } - }, - "SourceCodeInfo": { - "fields": { - "location": { - "rule": "repeated", - "type": "Location", - "id": 1 - } - }, - "nested": { - "Location": { - "fields": { - "path": { - "rule": "repeated", - "type": "int32", - "id": 1 - }, - "span": { - "rule": "repeated", - "type": "int32", - "id": 2 - }, - "leadingComments": { - "type": "string", - "id": 3 - }, - "trailingComments": { - "type": "string", - "id": 4 - }, - "leadingDetachedComments": { - "rule": "repeated", - "type": "string", - "id": 6 - } - } - } - } - }, - "GeneratedCodeInfo": { - "fields": { - "annotation": { - "rule": "repeated", - "type": "Annotation", - "id": 1 - } - }, - "nested": { - "Annotation": { - "fields": { - "path": { - "rule": "repeated", - "type": "int32", - "id": 1 - }, - "sourceFile": { - "type": "string", - "id": 2 - }, - "begin": { - "type": "int32", - "id": 3 - }, - "end": { - "type": "int32", - "id": 4 - }, - "semantic": { - "type": "Semantic", - "id": 5 - } - }, - "nested": { - "Semantic": { - "values": { - "NONE": 0, - "SET": 1, - "ALIAS": 2 - } - } - } - } - } - }, - "Duration": { - "fields": { - "seconds": { - "type": "int64", - "id": 1 - }, - "nanos": { - "type": "int32", - "id": 2 - } - } - }, - "Timestamp": { - "fields": { - "seconds": { - "type": "int64", - "id": 1 - }, - "nanos": { - "type": "int32", - "id": 2 - } - } - }, - "Any": { - "fields": { - "type_url": { - "type": "string", - "id": 1 - }, - "value": { - "type": "bytes", - "id": 2 - } - } - } - } - }, - "cloud": { - "nested": { - "batch": { - "nested": { - "v1": { + "v1": { "options": { "csharp_namespace": "Google.Cloud.Batch.V1", "go_package": "cloud.google.com/go/batch/apiv1/batchpb;batchpb", @@ -1454,6 +482,10 @@ "taskPack": { "type": "int64", "id": 3 + }, + "bootDisk": { + "type": "AllocationPolicy.Disk", + "id": 4 } } }, @@ -1650,6 +682,10 @@ "type": "Accelerator", "id": 5 }, + "bootDisk": { + "type": "Disk", + "id": 8 + }, "disks": { "rule": "repeated", "type": "AttachedDisk", @@ -1768,6 +804,11 @@ "email": { "type": "string", "id": 1 + }, + "scopes": { + "rule": "repeated", + "type": "string", + "id": 2 } } }, @@ -2649,6 +1690,10 @@ "taskPack": { "type": "int64", "id": 3 + }, + "bootDisk": { + "type": "AllocationPolicy.Disk", + "id": 4 } } }, @@ -3397,258 +2442,1230 @@ } } }, - "NFS": { - "fields": { - "server": { - "type": "string", - "id": 1 - }, - "remotePath": { - "type": "string", - "id": 2 - } - } + "NFS": { + "fields": { + "server": { + "type": "string", + "id": 1 + }, + "remotePath": { + "type": "string", + "id": 2 + } + } + }, + "PD": { + "fields": { + "disk": { + "type": "string", + "id": 1 + }, + "device": { + "type": "string", + "id": 2 + }, + "existing": { + "type": "bool", + "id": 3, + "options": { + "deprecated": true + } + } + } + }, + "GCS": { + "fields": { + "remotePath": { + "type": "string", + "id": 1 + } + } + } + } + } + } + } + } + }, + "api": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", + "java_multiple_files": true, + "java_outer_classname": "ResourceProto", + "java_package": "com.google.api", + "objc_class_prefix": "GAPI", + "cc_enable_arenas": true + }, + "nested": { + "http": { + "type": "HttpRule", + "id": 72295728, + "extend": "google.protobuf.MethodOptions" + }, + "Http": { + "fields": { + "rules": { + "rule": "repeated", + "type": "HttpRule", + "id": 1 + }, + "fullyDecodeReservedExpansion": { + "type": "bool", + "id": 2 + } + } + }, + "HttpRule": { + "oneofs": { + "pattern": { + "oneof": [ + "get", + "put", + "post", + "delete", + "patch", + "custom" + ] + } + }, + "fields": { + "selector": { + "type": "string", + "id": 1 + }, + "get": { + "type": "string", + "id": 2 + }, + "put": { + "type": "string", + "id": 3 + }, + "post": { + "type": "string", + "id": 4 + }, + "delete": { + "type": "string", + "id": 5 + }, + "patch": { + "type": "string", + "id": 6 + }, + "custom": { + "type": "CustomHttpPattern", + "id": 8 + }, + "body": { + "type": "string", + "id": 7 + }, + "responseBody": { + "type": "string", + "id": 12 + }, + "additionalBindings": { + "rule": "repeated", + "type": "HttpRule", + "id": 11 + } + } + }, + "CustomHttpPattern": { + "fields": { + "kind": { + "type": "string", + "id": 1 + }, + "path": { + "type": "string", + "id": 2 + } + } + }, + "methodSignature": { + "rule": "repeated", + "type": "string", + "id": 1051, + "extend": "google.protobuf.MethodOptions" + }, + "defaultHost": { + "type": "string", + "id": 1049, + "extend": "google.protobuf.ServiceOptions" + }, + "oauthScopes": { + "type": "string", + "id": 1050, + "extend": "google.protobuf.ServiceOptions" + }, + "fieldBehavior": { + "rule": "repeated", + "type": "google.api.FieldBehavior", + "id": 1052, + "extend": "google.protobuf.FieldOptions" + }, + "FieldBehavior": { + "values": { + "FIELD_BEHAVIOR_UNSPECIFIED": 0, + "OPTIONAL": 1, + "REQUIRED": 2, + "OUTPUT_ONLY": 3, + "INPUT_ONLY": 4, + "IMMUTABLE": 5, + "UNORDERED_LIST": 6, + "NON_EMPTY_DEFAULT": 7 + } + }, + "resourceReference": { + "type": "google.api.ResourceReference", + "id": 1055, + "extend": "google.protobuf.FieldOptions" + }, + "resourceDefinition": { + "rule": "repeated", + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.FileOptions" + }, + "resource": { + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.MessageOptions" + }, + "ResourceDescriptor": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "pattern": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "nameField": { + "type": "string", + "id": 3 + }, + "history": { + "type": "History", + "id": 4 + }, + "plural": { + "type": "string", + "id": 5 + }, + "singular": { + "type": "string", + "id": 6 + }, + "style": { + "rule": "repeated", + "type": "Style", + "id": 10 + } + }, + "nested": { + "History": { + "values": { + "HISTORY_UNSPECIFIED": 0, + "ORIGINALLY_SINGLE_PATTERN": 1, + "FUTURE_MULTI_PATTERN": 2 + } + }, + "Style": { + "values": { + "STYLE_UNSPECIFIED": 0, + "DECLARATIVE_FRIENDLY": 1 + } + } + } + }, + "ResourceReference": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "childType": { + "type": "string", + "id": 2 + } + } + } + } + }, + "protobuf": { + "options": { + "go_package": "google.golang.org/protobuf/types/descriptorpb", + "java_package": "com.google.protobuf", + "java_outer_classname": "DescriptorProtos", + "csharp_namespace": "Google.Protobuf.Reflection", + "objc_class_prefix": "GPB", + "cc_enable_arenas": true, + "optimize_for": "SPEED" + }, + "nested": { + "FileDescriptorSet": { + "fields": { + "file": { + "rule": "repeated", + "type": "FileDescriptorProto", + "id": 1 + } + } + }, + "FileDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "package": { + "type": "string", + "id": 2 + }, + "dependency": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "publicDependency": { + "rule": "repeated", + "type": "int32", + "id": 10, + "options": { + "packed": false + } + }, + "weakDependency": { + "rule": "repeated", + "type": "int32", + "id": 11, + "options": { + "packed": false + } + }, + "messageType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 4 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 5 + }, + "service": { + "rule": "repeated", + "type": "ServiceDescriptorProto", + "id": 6 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 7 + }, + "options": { + "type": "FileOptions", + "id": 8 + }, + "sourceCodeInfo": { + "type": "SourceCodeInfo", + "id": 9 + }, + "syntax": { + "type": "string", + "id": 12 + }, + "edition": { + "type": "string", + "id": 13 + } + } + }, + "DescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "field": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 2 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 6 + }, + "nestedType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 3 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 4 + }, + "extensionRange": { + "rule": "repeated", + "type": "ExtensionRange", + "id": 5 + }, + "oneofDecl": { + "rule": "repeated", + "type": "OneofDescriptorProto", + "id": 8 + }, + "options": { + "type": "MessageOptions", + "id": 7 + }, + "reservedRange": { + "rule": "repeated", + "type": "ReservedRange", + "id": 9 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 10 + } + }, + "nested": { + "ExtensionRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 }, - "PD": { - "fields": { - "disk": { - "type": "string", - "id": 1 - }, - "device": { - "type": "string", - "id": 2 - }, - "existing": { - "type": "bool", - "id": 3, - "options": { - "deprecated": true - } - } - } + "options": { + "type": "ExtensionRangeOptions", + "id": 3 + } + } + }, + "ReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 }, - "GCS": { - "fields": { - "remotePath": { - "type": "string", - "id": 1 - } - } + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "ExtensionRangeOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "FieldDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 3 + }, + "label": { + "type": "Label", + "id": 4 + }, + "type": { + "type": "Type", + "id": 5 + }, + "typeName": { + "type": "string", + "id": 6 + }, + "extendee": { + "type": "string", + "id": 2 + }, + "defaultValue": { + "type": "string", + "id": 7 + }, + "oneofIndex": { + "type": "int32", + "id": 9 + }, + "jsonName": { + "type": "string", + "id": 10 + }, + "options": { + "type": "FieldOptions", + "id": 8 + }, + "proto3Optional": { + "type": "bool", + "id": 17 + } + }, + "nested": { + "Type": { + "values": { + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18 + } + }, + "Label": { + "values": { + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3 + } + } + } + }, + "OneofDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "options": { + "type": "OneofOptions", + "id": 2 + } + } + }, + "EnumDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "value": { + "rule": "repeated", + "type": "EnumValueDescriptorProto", + "id": 2 + }, + "options": { + "type": "EnumOptions", + "id": 3 + }, + "reservedRange": { + "rule": "repeated", + "type": "EnumReservedRange", + "id": 4 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 5 + } + }, + "nested": { + "EnumReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 } } } } - } - } - }, - "api": { - "options": { - "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", - "java_multiple_files": true, - "java_outer_classname": "ResourceProto", - "java_package": "com.google.api", - "objc_class_prefix": "GAPI", - "cc_enable_arenas": true - }, - "nested": { - "http": { - "type": "HttpRule", - "id": 72295728, - "extend": "google.protobuf.MethodOptions" }, - "Http": { + "EnumValueDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "EnumValueOptions", + "id": 3 + } + } + }, + "ServiceDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "method": { + "rule": "repeated", + "type": "MethodDescriptorProto", + "id": 2 + }, + "options": { + "type": "ServiceOptions", + "id": 3 + } + } + }, + "MethodDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "inputType": { + "type": "string", + "id": 2 + }, + "outputType": { + "type": "string", + "id": 3 + }, + "options": { + "type": "MethodOptions", + "id": 4 + }, + "clientStreaming": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "serverStreaming": { + "type": "bool", + "id": 6, + "options": { + "default": false + } + } + } + }, + "FileOptions": { + "fields": { + "javaPackage": { + "type": "string", + "id": 1 + }, + "javaOuterClassname": { + "type": "string", + "id": 8 + }, + "javaMultipleFiles": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "javaGenerateEqualsAndHash": { + "type": "bool", + "id": 20, + "options": { + "deprecated": true + } + }, + "javaStringCheckUtf8": { + "type": "bool", + "id": 27, + "options": { + "default": false + } + }, + "optimizeFor": { + "type": "OptimizeMode", + "id": 9, + "options": { + "default": "SPEED" + } + }, + "goPackage": { + "type": "string", + "id": 11 + }, + "ccGenericServices": { + "type": "bool", + "id": 16, + "options": { + "default": false + } + }, + "javaGenericServices": { + "type": "bool", + "id": 17, + "options": { + "default": false + } + }, + "pyGenericServices": { + "type": "bool", + "id": 18, + "options": { + "default": false + } + }, + "phpGenericServices": { + "type": "bool", + "id": 42, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 23, + "options": { + "default": false + } + }, + "ccEnableArenas": { + "type": "bool", + "id": 31, + "options": { + "default": true + } + }, + "objcClassPrefix": { + "type": "string", + "id": 36 + }, + "csharpNamespace": { + "type": "string", + "id": 37 + }, + "swiftPrefix": { + "type": "string", + "id": 39 + }, + "phpClassPrefix": { + "type": "string", + "id": 40 + }, + "phpNamespace": { + "type": "string", + "id": 41 + }, + "phpMetadataNamespace": { + "type": "string", + "id": 44 + }, + "rubyPackage": { + "type": "string", + "id": 45 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 38, + 38 + ] + ], + "nested": { + "OptimizeMode": { + "values": { + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3 + } + } + } + }, + "MessageOptions": { + "fields": { + "messageSetWireFormat": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "noStandardDescriptorAccessor": { + "type": "bool", + "id": 2, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "mapEntry": { + "type": "bool", + "id": 7 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ], + [ + 5, + 5 + ], + [ + 6, + 6 + ], + [ + 8, + 8 + ], + [ + 9, + 9 + ] + ] + }, + "FieldOptions": { + "fields": { + "ctype": { + "type": "CType", + "id": 1, + "options": { + "default": "STRING" + } + }, + "packed": { + "type": "bool", + "id": 2 + }, + "jstype": { + "type": "JSType", + "id": 6, + "options": { + "default": "JS_NORMAL" + } + }, + "lazy": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "weak": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ] + ], + "nested": { + "CType": { + "values": { + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2 + } + }, + "JSType": { + "values": { + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2 + } + } + } + }, + "OneofOptions": { "fields": { - "rules": { + "uninterpretedOption": { "rule": "repeated", - "type": "HttpRule", - "id": 1 - }, - "fullyDecodeReservedExpansion": { + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "EnumOptions": { + "fields": { + "allowAlias": { "type": "bool", "id": 2 + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 } - } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 5, + 5 + ] + ] }, - "HttpRule": { - "oneofs": { - "pattern": { - "oneof": [ - "get", - "put", - "post", - "delete", - "patch", - "custom" - ] + "EnumValueOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "ServiceOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "MethodOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "idempotencyLevel": { + "type": "IdempotencyLevel", + "id": 34, + "options": { + "default": "IDEMPOTENCY_UNKNOWN" + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 } }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "nested": { + "IdempotencyLevel": { + "values": { + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2 + } + } + } + }, + "UninterpretedOption": { "fields": { - "selector": { - "type": "string", - "id": 1 - }, - "get": { - "type": "string", + "name": { + "rule": "repeated", + "type": "NamePart", "id": 2 }, - "put": { + "identifierValue": { "type": "string", "id": 3 }, - "post": { - "type": "string", + "positiveIntValue": { + "type": "uint64", "id": 4 }, - "delete": { - "type": "string", + "negativeIntValue": { + "type": "int64", "id": 5 }, - "patch": { - "type": "string", + "doubleValue": { + "type": "double", "id": 6 }, - "custom": { - "type": "CustomHttpPattern", - "id": 8 - }, - "body": { - "type": "string", + "stringValue": { + "type": "bytes", "id": 7 }, - "responseBody": { + "aggregateValue": { "type": "string", - "id": 12 - }, - "additionalBindings": { - "rule": "repeated", - "type": "HttpRule", - "id": 11 + "id": 8 + } + }, + "nested": { + "NamePart": { + "fields": { + "namePart": { + "rule": "required", + "type": "string", + "id": 1 + }, + "isExtension": { + "rule": "required", + "type": "bool", + "id": 2 + } + } } } }, - "CustomHttpPattern": { + "SourceCodeInfo": { "fields": { - "kind": { - "type": "string", + "location": { + "rule": "repeated", + "type": "Location", "id": 1 - }, - "path": { - "type": "string", - "id": 2 + } + }, + "nested": { + "Location": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "span": { + "rule": "repeated", + "type": "int32", + "id": 2 + }, + "leadingComments": { + "type": "string", + "id": 3 + }, + "trailingComments": { + "type": "string", + "id": 4 + }, + "leadingDetachedComments": { + "rule": "repeated", + "type": "string", + "id": 6 + } + } } } }, - "methodSignature": { - "rule": "repeated", - "type": "string", - "id": 1051, - "extend": "google.protobuf.MethodOptions" - }, - "defaultHost": { - "type": "string", - "id": 1049, - "extend": "google.protobuf.ServiceOptions" - }, - "oauthScopes": { - "type": "string", - "id": 1050, - "extend": "google.protobuf.ServiceOptions" - }, - "fieldBehavior": { - "rule": "repeated", - "type": "google.api.FieldBehavior", - "id": 1052, - "extend": "google.protobuf.FieldOptions" - }, - "FieldBehavior": { - "values": { - "FIELD_BEHAVIOR_UNSPECIFIED": 0, - "OPTIONAL": 1, - "REQUIRED": 2, - "OUTPUT_ONLY": 3, - "INPUT_ONLY": 4, - "IMMUTABLE": 5, - "UNORDERED_LIST": 6, - "NON_EMPTY_DEFAULT": 7 + "GeneratedCodeInfo": { + "fields": { + "annotation": { + "rule": "repeated", + "type": "Annotation", + "id": 1 + } + }, + "nested": { + "Annotation": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "sourceFile": { + "type": "string", + "id": 2 + }, + "begin": { + "type": "int32", + "id": 3 + }, + "end": { + "type": "int32", + "id": 4 + }, + "semantic": { + "type": "Semantic", + "id": 5 + } + }, + "nested": { + "Semantic": { + "values": { + "NONE": 0, + "SET": 1, + "ALIAS": 2 + } + } + } + } } }, - "resourceReference": { - "type": "google.api.ResourceReference", - "id": 1055, - "extend": "google.protobuf.FieldOptions" - }, - "resourceDefinition": { - "rule": "repeated", - "type": "google.api.ResourceDescriptor", - "id": 1053, - "extend": "google.protobuf.FileOptions" - }, - "resource": { - "type": "google.api.ResourceDescriptor", - "id": 1053, - "extend": "google.protobuf.MessageOptions" - }, - "ResourceDescriptor": { + "Duration": { "fields": { - "type": { - "type": "string", + "seconds": { + "type": "int64", "id": 1 }, - "pattern": { - "rule": "repeated", - "type": "string", + "nanos": { + "type": "int32", "id": 2 - }, - "nameField": { - "type": "string", - "id": 3 - }, - "history": { - "type": "History", - "id": 4 - }, - "plural": { - "type": "string", - "id": 5 - }, - "singular": { - "type": "string", - "id": 6 - }, - "style": { - "rule": "repeated", - "type": "Style", - "id": 10 } - }, - "nested": { - "History": { - "values": { - "HISTORY_UNSPECIFIED": 0, - "ORIGINALLY_SINGLE_PATTERN": 1, - "FUTURE_MULTI_PATTERN": 2 - } + } + }, + "Timestamp": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 }, - "Style": { - "values": { - "STYLE_UNSPECIFIED": 0, - "DECLARATIVE_FRIENDLY": 1 - } + "nanos": { + "type": "int32", + "id": 2 } } }, - "ResourceReference": { + "Any": { "fields": { - "type": { + "type_url": { "type": "string", "id": 1 }, - "childType": { - "type": "string", + "value": { + "type": "bytes", "id": 2 } } + }, + "Empty": { + "fields": {} } } }, From 75e8b2c3f631a5bd06f6b16967b8945a9b67e092 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:26:15 -0800 Subject: [PATCH 35/38] chore(gitignore): [bigquery-connection] only ignore folders in the top level (#3953) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: formatting changes PiperOrigin-RevId: 507519971 Source-Link: https://github.com/googleapis/googleapis/commit/e0e93a367e3fb752cf09c68c02d990d51fb681c3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b00c1bb31824e78d5b0bf7ac23ec17829cd250a4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWNvbm5lY3Rpb24vLk93bEJvdC55YW1sIiwiaCI6ImIwMGMxYmIzMTgyNGU3OGQ1YjBiZjdhYzIzZWMxNzgyOWNkMjUwYTQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWNvbm5lY3Rpb24vLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../.gitignore | 12 ++--- .../connection/v1beta1/connection.proto | 47 ++++++++++++------- 2 files changed, 37 insertions(+), 22 deletions(-) diff --git a/packages/google-cloud-bigquery-connection/.gitignore b/packages/google-cloud-bigquery-connection/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-bigquery-connection/.gitignore +++ b/packages/google-cloud-bigquery-connection/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1beta1/connection.proto b/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1beta1/connection.proto index 4692cddb84a4..0e8da4ff8ee1 100644 --- a/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1beta1/connection.proto +++ b/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1beta1/connection.proto @@ -57,7 +57,8 @@ service ConnectionService { } // Returns a list of connections in the given project. - rpc ListConnections(ListConnectionsRequest) returns (ListConnectionsResponse) { + rpc ListConnections(ListConnectionsRequest) + returns (ListConnectionsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*}/connections" }; @@ -75,7 +76,8 @@ service ConnectionService { } // Sets the credential for the specified connection. - rpc UpdateConnectionCredential(UpdateConnectionCredentialRequest) returns (google.protobuf.Empty) { + rpc UpdateConnectionCredential(UpdateConnectionCredentialRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { patch: "/v1beta1/{name=projects/*/locations/*/connections/*/credential}" body: "credential" @@ -84,7 +86,8 @@ service ConnectionService { } // Deletes connection and associated credential. - rpc DeleteConnection(DeleteConnectionRequest) returns (google.protobuf.Empty) { + rpc DeleteConnection(DeleteConnectionRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/locations/*/connections/*}" }; @@ -94,7 +97,8 @@ service ConnectionService { // Gets the access control policy for a resource. // Returns an empty policy if the resource exists and does not have a policy // set. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/locations/*/connections/*}:getIamPolicy" body: "*" @@ -106,7 +110,8 @@ service ConnectionService { // existing policy. // // Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/locations/*/connections/*}:setIamPolicy" body: "*" @@ -121,7 +126,8 @@ service ConnectionService { // Note: This operation is designed to be used for building permission-aware // UIs and command-line tools, not for authorization checking. This operation // may "fail open" without warning. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/locations/*/connections/*}:testIamPermissions" body: "*" @@ -130,7 +136,8 @@ service ConnectionService { } } -// The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection]. +// The request for +// [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection]. message CreateConnectionRequest { // Required. Parent resource name. // Must be in the format `projects/{project_id}/locations/{location_id}` @@ -148,7 +155,8 @@ message CreateConnectionRequest { Connection connection = 3 [(google.api.field_behavior) = REQUIRED]; } -// The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection]. +// The request for +// [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection]. message GetConnectionRequest { // Required. Name of the requested connection, for example: // `projects/{project_id}/locations/{location_id}/connections/{connection_id}` @@ -160,7 +168,8 @@ message GetConnectionRequest { ]; } -// The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections]. +// The request for +// [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections]. message ListConnectionsRequest { // Required. Parent resource name. // Must be in the form: `projects/{project_id}/locations/{location_id}` @@ -172,13 +181,15 @@ message ListConnectionsRequest { ]; // Required. Maximum number of results per page. - google.protobuf.UInt32Value max_results = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.UInt32Value max_results = 2 + [(google.api.field_behavior) = REQUIRED]; // Page token. string page_token = 3; } -// The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections]. +// The response for +// [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections]. message ListConnectionsResponse { // Next page token. string next_page_token = 1; @@ -187,7 +198,8 @@ message ListConnectionsResponse { repeated Connection connections = 2; } -// The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection]. +// The request for +// [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection]. message UpdateConnectionRequest { // Required. Name of the connection to update, for example: // `projects/{project_id}/locations/{location_id}/connections/{connection_id}` @@ -202,10 +214,12 @@ message UpdateConnectionRequest { Connection connection = 2 [(google.api.field_behavior) = REQUIRED]; // Required. Update mask for the connection fields to be updated. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 3 + [(google.api.field_behavior) = REQUIRED]; } -// The request for [ConnectionService.UpdateConnectionCredential][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnectionCredential]. +// The request for +// [ConnectionService.UpdateConnectionCredential][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnectionCredential]. message UpdateConnectionCredentialRequest { // Required. Name of the connection, for example: // `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential` @@ -296,10 +310,11 @@ message CloudSqlProperties { // Input only. Cloud SQL credential. CloudSqlCredential credential = 4 [(google.api.field_behavior) = INPUT_ONLY]; - // Output only. The account ID of the service used for the purpose of this connection. + // Output only. The account ID of the service used for the purpose of this + // connection. // // When the connection is used in the context of an operation in - // BigQuery, this service account will serve as identity being used for + // BigQuery, this service account will serve as the identity being used for // connecting to the CloudSQL instance specified in this connection. string service_account_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } From 9825fa99b94aad5cf1c1d6b3a858bc4e3ccfcb15 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:58:38 -0800 Subject: [PATCH 36/38] chore(gitignore): [documentai] feat: Added EvaluationReference to evaluation.proto (#3954) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Added EvaluationReference to evaluation.proto feat: Added latest_evaluation to processor.proto chore!: Updated TrainProcessorVersion parent to correctly be a Processor, rather than ProcessorVersion BREAKING CHANGE: The TrainProcessorVersion parent was incorrectly annotated. PiperOrigin-RevId: 507577968 Source-Link: https://github.com/googleapis/googleapis/commit/a2cdee8aeb9238bb3c422e1e2acfa03a106cac00 Source-Link: https://github.com/googleapis/googleapis-gen/commit/68cd7fe32bd4387195a27b605b032ca1f5071222 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6IjY4Y2Q3ZmUzMmJkNDM4NzE5NWEyN2I2MDViMDMyY2ExZjUwNzEyMjIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(gitignore): only ignore folders in the top level PiperOrigin-RevId: 507603203 Source-Link: https://github.com/googleapis/googleapis/commit/a4f2de456480c0a4ed9feeeaa1f8ee620bbef23a Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf882154e7c710ecf2a1abc77b35c95f9062371 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6ImRjZjg4MjE1NGU3YzcxMGVjZjJhMWFiYzc3YjM1Yzk1ZjkwNjIzNzEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-documentai/.gitignore | 12 +- .../cloud/documentai/v1beta3/document.proto | 33 +- .../v1beta3/document_processor_service.proto | 2 +- .../cloud/documentai/v1beta3/evaluation.proto | 17 + .../cloud/documentai/v1beta3/processor.proto | 4 + .../protos/protos.d.ts | 122 +++++++ .../google-cloud-documentai/protos/protos.js | 318 ++++++++++++++++++ .../protos/protos.json | 49 ++- 8 files changed, 536 insertions(+), 21 deletions(-) diff --git a/packages/google-cloud-documentai/.gitignore b/packages/google-cloud-documentai/.gitignore index 5d32b23782f3..d4f03a0df2e8 100644 --- a/packages/google-cloud-documentai/.gitignore +++ b/packages/google-cloud-documentai/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto index caade71ebc00..193f7700d513 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document.proto @@ -739,22 +739,29 @@ message Document { // Remove an element identified by `parent`. REMOVE = 2; - // Replace an element identified by `parent`. - REPLACE = 3; + // Updates any fields within the given provenance scope of the message. It + // 'overwrites' the fields rather than replacing them. This is + // especially relevant when we just want to update a field value of an + // entity without also affecting all the child properties. + UPDATE = 7; - // Request human review for the element identified by `parent`. - EVAL_REQUESTED = 4; + // Currently unused. Replace an element identified by `parent`. + REPLACE = 3 [deprecated = true]; - // Element is reviewed and approved at human review, confidence will be - // set to 1.0. - EVAL_APPROVED = 5; + // Deprecated. Request human review for the element identified by + // `parent`. + EVAL_REQUESTED = 4 [deprecated = true]; - // Element is skipped in the validation process. - EVAL_SKIPPED = 6; + // Deprecated. Element is reviewed and approved at human review, + // confidence will be set to 1.0. + EVAL_APPROVED = 5 [deprecated = true]; + + // Deprecated. Element is skipped in the validation process. + EVAL_SKIPPED = 6 [deprecated = true]; } // The index of the revision that produced this element. - int32 revision = 1; + int32 revision = 1 [deprecated = true]; // The Id of this operation. Needs to be unique within the scope of the // revision. @@ -790,7 +797,8 @@ message Document { string processor = 5; } - // Id of the revision. Unique within the context of the document. + // Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. string id = 1; // The revisions that this revision is based on. This can include one or @@ -803,7 +811,8 @@ message Document { // `provenance.parent.revision` fields that index into this field. repeated string parent_ids = 7; - // The time that the revision was created. + // The time that the revision was created, internally generated by + // doc proto storage at the time of create. google.protobuf.Timestamp create_time = 3; // Human Review information of this revision. diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto index d9a2d21242d0..689ce0674de1 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -879,7 +879,7 @@ message TrainProcessorVersionRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "documentai.googleapis.com/ProcessorVersion" + type: "documentai.googleapis.com/Processor" } ]; diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/evaluation.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/evaluation.proto index 1601b86eb4f0..e5087c818c21 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/evaluation.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/evaluation.proto @@ -27,6 +27,23 @@ option java_package = "com.google.cloud.documentai.v1beta3"; option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; +// Gives a short summary of an evaluation, and links to the evaluation itself. +message EvaluationReference { + // The resource name of the Long Running Operation for the evaluation. + string operation = 1; + + // The resource name of the evaluation. + string evaluation = 2 [(google.api.resource_reference) = { + type: "documentai.googleapis.com/Evaluation" + }]; + + // An aggregate of the statistics for the evaluation with fuzzy matching on. + Evaluation.Metrics aggregate_metrics = 4; + + // An aggregate of the statistics for the evaluation with fuzzy matching off. + Evaluation.Metrics aggregate_metrics_exact = 5; +} + // An evaluation of a ProcessorVersion's performance. message Evaluation { option (google.api.resource) = { diff --git a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto index 707ab54cbf96..7de236e1fec5 100644 --- a/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto +++ b/packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/processor.proto @@ -19,6 +19,7 @@ package google.cloud.documentai.v1beta3; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/documentai/v1beta3/document_schema.proto"; +import "google/cloud/documentai/v1beta3/evaluation.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; @@ -96,6 +97,9 @@ message ProcessorVersion { // The time the processor version was created. google.protobuf.Timestamp create_time = 7; + // The most recently invoked evaluation for the processor version. + EvaluationReference latest_evaluation = 8; + // The KMS key name used for encryption. string kms_key_name = 9; diff --git a/packages/google-cloud-documentai/protos/protos.d.ts b/packages/google-cloud-documentai/protos/protos.d.ts index 4d146bf0e33d..7bd7e2bec0c8 100644 --- a/packages/google-cloud-documentai/protos/protos.d.ts +++ b/packages/google-cloud-documentai/protos/protos.d.ts @@ -25030,6 +25030,7 @@ export namespace google { OPERATION_TYPE_UNSPECIFIED = 0, ADD = 1, REMOVE = 2, + UPDATE = 7, REPLACE = 3, EVAL_REQUESTED = 4, EVAL_APPROVED = 5, @@ -33433,6 +33434,121 @@ export namespace google { } } + /** Properties of an EvaluationReference. */ + interface IEvaluationReference { + + /** EvaluationReference operation */ + operation?: (string|null); + + /** EvaluationReference evaluation */ + evaluation?: (string|null); + + /** EvaluationReference aggregateMetrics */ + aggregateMetrics?: (google.cloud.documentai.v1beta3.Evaluation.IMetrics|null); + + /** EvaluationReference aggregateMetricsExact */ + aggregateMetricsExact?: (google.cloud.documentai.v1beta3.Evaluation.IMetrics|null); + } + + /** Represents an EvaluationReference. */ + class EvaluationReference implements IEvaluationReference { + + /** + * Constructs a new EvaluationReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.documentai.v1beta3.IEvaluationReference); + + /** EvaluationReference operation. */ + public operation: string; + + /** EvaluationReference evaluation. */ + public evaluation: string; + + /** EvaluationReference aggregateMetrics. */ + public aggregateMetrics?: (google.cloud.documentai.v1beta3.Evaluation.IMetrics|null); + + /** EvaluationReference aggregateMetricsExact. */ + public aggregateMetricsExact?: (google.cloud.documentai.v1beta3.Evaluation.IMetrics|null); + + /** + * Creates a new EvaluationReference instance using the specified properties. + * @param [properties] Properties to set + * @returns EvaluationReference instance + */ + public static create(properties?: google.cloud.documentai.v1beta3.IEvaluationReference): google.cloud.documentai.v1beta3.EvaluationReference; + + /** + * Encodes the specified EvaluationReference message. Does not implicitly {@link google.cloud.documentai.v1beta3.EvaluationReference.verify|verify} messages. + * @param message EvaluationReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.documentai.v1beta3.IEvaluationReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EvaluationReference message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.EvaluationReference.verify|verify} messages. + * @param message EvaluationReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.documentai.v1beta3.IEvaluationReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvaluationReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvaluationReference + * @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.documentai.v1beta3.EvaluationReference; + + /** + * Decodes an EvaluationReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvaluationReference + * @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.documentai.v1beta3.EvaluationReference; + + /** + * Verifies an EvaluationReference 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 an EvaluationReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvaluationReference + */ + public static fromObject(object: { [k: string]: any }): google.cloud.documentai.v1beta3.EvaluationReference; + + /** + * Creates a plain object from an EvaluationReference message. Also converts values to other types if specified. + * @param message EvaluationReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.documentai.v1beta3.EvaluationReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EvaluationReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EvaluationReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an Evaluation. */ interface IEvaluation { @@ -34238,6 +34354,9 @@ export namespace google { /** ProcessorVersion createTime */ createTime?: (google.protobuf.ITimestamp|null); + /** ProcessorVersion latestEvaluation */ + latestEvaluation?: (google.cloud.documentai.v1beta3.IEvaluationReference|null); + /** ProcessorVersion kmsKeyName */ kmsKeyName?: (string|null); @@ -34275,6 +34394,9 @@ export namespace google { /** ProcessorVersion createTime. */ public createTime?: (google.protobuf.ITimestamp|null); + /** ProcessorVersion latestEvaluation. */ + public latestEvaluation?: (google.cloud.documentai.v1beta3.IEvaluationReference|null); + /** ProcessorVersion kmsKeyName. */ public kmsKeyName: string; diff --git a/packages/google-cloud-documentai/protos/protos.js b/packages/google-cloud-documentai/protos/protos.js index f1265f3a86b6..2dc1c91a5039 100644 --- a/packages/google-cloud-documentai/protos/protos.js +++ b/packages/google-cloud-documentai/protos/protos.js @@ -62458,6 +62458,7 @@ case 0: case 1: case 2: + case 7: case 3: case 4: case 5: @@ -62512,6 +62513,10 @@ case 2: message.type = 2; break; + case "UPDATE": + case 7: + message.type = 7; + break; case "REPLACE": case 3: message.type = 3; @@ -62849,6 +62854,7 @@ * @property {number} OPERATION_TYPE_UNSPECIFIED=0 OPERATION_TYPE_UNSPECIFIED value * @property {number} ADD=1 ADD value * @property {number} REMOVE=2 REMOVE value + * @property {number} UPDATE=7 UPDATE value * @property {number} REPLACE=3 REPLACE value * @property {number} EVAL_REQUESTED=4 EVAL_REQUESTED value * @property {number} EVAL_APPROVED=5 EVAL_APPROVED value @@ -62859,6 +62865,7 @@ values[valuesById[0] = "OPERATION_TYPE_UNSPECIFIED"] = 0; values[valuesById[1] = "ADD"] = 1; values[valuesById[2] = "REMOVE"] = 2; + values[valuesById[7] = "UPDATE"] = 7; values[valuesById[3] = "REPLACE"] = 3; values[valuesById[4] = "EVAL_REQUESTED"] = 4; values[valuesById[5] = "EVAL_APPROVED"] = 5; @@ -81988,6 +81995,289 @@ return DocumentSchema; })(); + v1beta3.EvaluationReference = (function() { + + /** + * Properties of an EvaluationReference. + * @memberof google.cloud.documentai.v1beta3 + * @interface IEvaluationReference + * @property {string|null} [operation] EvaluationReference operation + * @property {string|null} [evaluation] EvaluationReference evaluation + * @property {google.cloud.documentai.v1beta3.Evaluation.IMetrics|null} [aggregateMetrics] EvaluationReference aggregateMetrics + * @property {google.cloud.documentai.v1beta3.Evaluation.IMetrics|null} [aggregateMetricsExact] EvaluationReference aggregateMetricsExact + */ + + /** + * Constructs a new EvaluationReference. + * @memberof google.cloud.documentai.v1beta3 + * @classdesc Represents an EvaluationReference. + * @implements IEvaluationReference + * @constructor + * @param {google.cloud.documentai.v1beta3.IEvaluationReference=} [properties] Properties to set + */ + function EvaluationReference(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]]; + } + + /** + * EvaluationReference operation. + * @member {string} operation + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @instance + */ + EvaluationReference.prototype.operation = ""; + + /** + * EvaluationReference evaluation. + * @member {string} evaluation + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @instance + */ + EvaluationReference.prototype.evaluation = ""; + + /** + * EvaluationReference aggregateMetrics. + * @member {google.cloud.documentai.v1beta3.Evaluation.IMetrics|null|undefined} aggregateMetrics + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @instance + */ + EvaluationReference.prototype.aggregateMetrics = null; + + /** + * EvaluationReference aggregateMetricsExact. + * @member {google.cloud.documentai.v1beta3.Evaluation.IMetrics|null|undefined} aggregateMetricsExact + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @instance + */ + EvaluationReference.prototype.aggregateMetricsExact = null; + + /** + * Creates a new EvaluationReference instance using the specified properties. + * @function create + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @static + * @param {google.cloud.documentai.v1beta3.IEvaluationReference=} [properties] Properties to set + * @returns {google.cloud.documentai.v1beta3.EvaluationReference} EvaluationReference instance + */ + EvaluationReference.create = function create(properties) { + return new EvaluationReference(properties); + }; + + /** + * Encodes the specified EvaluationReference message. Does not implicitly {@link google.cloud.documentai.v1beta3.EvaluationReference.verify|verify} messages. + * @function encode + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @static + * @param {google.cloud.documentai.v1beta3.IEvaluationReference} message EvaluationReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluationReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operation != null && Object.hasOwnProperty.call(message, "operation")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.operation); + if (message.evaluation != null && Object.hasOwnProperty.call(message, "evaluation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.evaluation); + if (message.aggregateMetrics != null && Object.hasOwnProperty.call(message, "aggregateMetrics")) + $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.encode(message.aggregateMetrics, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.aggregateMetricsExact != null && Object.hasOwnProperty.call(message, "aggregateMetricsExact")) + $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.encode(message.aggregateMetricsExact, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EvaluationReference message, length delimited. Does not implicitly {@link google.cloud.documentai.v1beta3.EvaluationReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @static + * @param {google.cloud.documentai.v1beta3.IEvaluationReference} message EvaluationReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EvaluationReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EvaluationReference message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.documentai.v1beta3.EvaluationReference} EvaluationReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluationReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.documentai.v1beta3.EvaluationReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.operation = reader.string(); + break; + } + case 2: { + message.evaluation = reader.string(); + break; + } + case 4: { + message.aggregateMetrics = $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.decode(reader, reader.uint32()); + break; + } + case 5: { + message.aggregateMetricsExact = $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EvaluationReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.documentai.v1beta3.EvaluationReference} EvaluationReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EvaluationReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EvaluationReference message. + * @function verify + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EvaluationReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operation != null && message.hasOwnProperty("operation")) + if (!$util.isString(message.operation)) + return "operation: string expected"; + if (message.evaluation != null && message.hasOwnProperty("evaluation")) + if (!$util.isString(message.evaluation)) + return "evaluation: string expected"; + if (message.aggregateMetrics != null && message.hasOwnProperty("aggregateMetrics")) { + var error = $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.verify(message.aggregateMetrics); + if (error) + return "aggregateMetrics." + error; + } + if (message.aggregateMetricsExact != null && message.hasOwnProperty("aggregateMetricsExact")) { + var error = $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.verify(message.aggregateMetricsExact); + if (error) + return "aggregateMetricsExact." + error; + } + return null; + }; + + /** + * Creates an EvaluationReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.documentai.v1beta3.EvaluationReference} EvaluationReference + */ + EvaluationReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.documentai.v1beta3.EvaluationReference) + return object; + var message = new $root.google.cloud.documentai.v1beta3.EvaluationReference(); + if (object.operation != null) + message.operation = String(object.operation); + if (object.evaluation != null) + message.evaluation = String(object.evaluation); + if (object.aggregateMetrics != null) { + if (typeof object.aggregateMetrics !== "object") + throw TypeError(".google.cloud.documentai.v1beta3.EvaluationReference.aggregateMetrics: object expected"); + message.aggregateMetrics = $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.fromObject(object.aggregateMetrics); + } + if (object.aggregateMetricsExact != null) { + if (typeof object.aggregateMetricsExact !== "object") + throw TypeError(".google.cloud.documentai.v1beta3.EvaluationReference.aggregateMetricsExact: object expected"); + message.aggregateMetricsExact = $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.fromObject(object.aggregateMetricsExact); + } + return message; + }; + + /** + * Creates a plain object from an EvaluationReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @static + * @param {google.cloud.documentai.v1beta3.EvaluationReference} message EvaluationReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EvaluationReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.operation = ""; + object.evaluation = ""; + object.aggregateMetrics = null; + object.aggregateMetricsExact = null; + } + if (message.operation != null && message.hasOwnProperty("operation")) + object.operation = message.operation; + if (message.evaluation != null && message.hasOwnProperty("evaluation")) + object.evaluation = message.evaluation; + if (message.aggregateMetrics != null && message.hasOwnProperty("aggregateMetrics")) + object.aggregateMetrics = $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.toObject(message.aggregateMetrics, options); + if (message.aggregateMetricsExact != null && message.hasOwnProperty("aggregateMetricsExact")) + object.aggregateMetricsExact = $root.google.cloud.documentai.v1beta3.Evaluation.Metrics.toObject(message.aggregateMetricsExact, options); + return object; + }; + + /** + * Converts this EvaluationReference to JSON. + * @function toJSON + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @instance + * @returns {Object.} JSON object + */ + EvaluationReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EvaluationReference + * @function getTypeUrl + * @memberof google.cloud.documentai.v1beta3.EvaluationReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EvaluationReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.documentai.v1beta3.EvaluationReference"; + }; + + return EvaluationReference; + })(); + v1beta3.Evaluation = (function() { /** @@ -84124,6 +84414,7 @@ * @property {google.cloud.documentai.v1beta3.IDocumentSchema|null} [documentSchema] ProcessorVersion documentSchema * @property {google.cloud.documentai.v1beta3.ProcessorVersion.State|null} [state] ProcessorVersion state * @property {google.protobuf.ITimestamp|null} [createTime] ProcessorVersion createTime + * @property {google.cloud.documentai.v1beta3.IEvaluationReference|null} [latestEvaluation] ProcessorVersion latestEvaluation * @property {string|null} [kmsKeyName] ProcessorVersion kmsKeyName * @property {string|null} [kmsKeyVersionName] ProcessorVersion kmsKeyVersionName * @property {boolean|null} [googleManaged] ProcessorVersion googleManaged @@ -84185,6 +84476,14 @@ */ ProcessorVersion.prototype.createTime = null; + /** + * ProcessorVersion latestEvaluation. + * @member {google.cloud.documentai.v1beta3.IEvaluationReference|null|undefined} latestEvaluation + * @memberof google.cloud.documentai.v1beta3.ProcessorVersion + * @instance + */ + ProcessorVersion.prototype.latestEvaluation = null; + /** * ProcessorVersion kmsKeyName. * @member {string} kmsKeyName @@ -84249,6 +84548,8 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.latestEvaluation != null && Object.hasOwnProperty.call(message, "latestEvaluation")) + $root.google.cloud.documentai.v1beta3.EvaluationReference.encode(message.latestEvaluation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.kmsKeyName); if (message.kmsKeyVersionName != null && Object.hasOwnProperty.call(message, "kmsKeyVersionName")) @@ -84313,6 +84614,10 @@ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 8: { + message.latestEvaluation = $root.google.cloud.documentai.v1beta3.EvaluationReference.decode(reader, reader.uint32()); + break; + } case 9: { message.kmsKeyName = reader.string(); break; @@ -84394,6 +84699,11 @@ if (error) return "createTime." + error; } + if (message.latestEvaluation != null && message.hasOwnProperty("latestEvaluation")) { + var error = $root.google.cloud.documentai.v1beta3.EvaluationReference.verify(message.latestEvaluation); + if (error) + return "latestEvaluation." + error; + } if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) if (!$util.isString(message.kmsKeyName)) return "kmsKeyName: string expected"; @@ -84477,6 +84787,11 @@ throw TypeError(".google.cloud.documentai.v1beta3.ProcessorVersion.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } + if (object.latestEvaluation != null) { + if (typeof object.latestEvaluation !== "object") + throw TypeError(".google.cloud.documentai.v1beta3.ProcessorVersion.latestEvaluation: object expected"); + message.latestEvaluation = $root.google.cloud.documentai.v1beta3.EvaluationReference.fromObject(object.latestEvaluation); + } if (object.kmsKeyName != null) message.kmsKeyName = String(object.kmsKeyName); if (object.kmsKeyVersionName != null) @@ -84509,6 +84824,7 @@ object.displayName = ""; object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; object.createTime = null; + object.latestEvaluation = null; object.kmsKeyName = ""; object.kmsKeyVersionName = ""; object.googleManaged = false; @@ -84523,6 +84839,8 @@ object.state = options.enums === String ? $root.google.cloud.documentai.v1beta3.ProcessorVersion.State[message.state] === undefined ? message.state : $root.google.cloud.documentai.v1beta3.ProcessorVersion.State[message.state] : message.state; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.latestEvaluation != null && message.hasOwnProperty("latestEvaluation")) + object.latestEvaluation = $root.google.cloud.documentai.v1beta3.EvaluationReference.toObject(message.latestEvaluation, options); if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName")) object.kmsKeyName = message.kmsKeyName; if (message.kmsKeyVersionName != null && message.hasOwnProperty("kmsKeyVersionName")) diff --git a/packages/google-cloud-documentai/protos/protos.json b/packages/google-cloud-documentai/protos/protos.json index d139158d9a97..e7631b2a9b11 100644 --- a/packages/google-cloud-documentai/protos/protos.json +++ b/packages/google-cloud-documentai/protos/protos.json @@ -5199,7 +5199,10 @@ "fields": { "revision": { "type": "int32", - "id": 1 + "id": 1, + "options": { + "deprecated": true + } }, "id": { "type": "int32", @@ -5239,10 +5242,25 @@ } }, "OperationType": { + "valuesOptions": { + "REPLACE": { + "deprecated": true + }, + "EVAL_REQUESTED": { + "deprecated": true + }, + "EVAL_APPROVED": { + "deprecated": true + }, + "EVAL_SKIPPED": { + "deprecated": true + } + }, "values": { "OPERATION_TYPE_UNSPECIFIED": 0, "ADD": 1, "REMOVE": 2, + "UPDATE": 7, "REPLACE": 3, "EVAL_REQUESTED": 4, "EVAL_APPROVED": 5, @@ -6590,7 +6608,7 @@ "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "documentai.googleapis.com/ProcessorVersion" + "(google.api.resource_reference).type": "documentai.googleapis.com/Processor" } }, "processorVersion": { @@ -6994,6 +7012,29 @@ } } }, + "EvaluationReference": { + "fields": { + "operation": { + "type": "string", + "id": 1 + }, + "evaluation": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "documentai.googleapis.com/Evaluation" + } + }, + "aggregateMetrics": { + "type": "Evaluation.Metrics", + "id": 4 + }, + "aggregateMetricsExact": { + "type": "Evaluation.Metrics", + "id": 5 + } + } + }, "Evaluation": { "options": { "(google.api.resource).type": "documentai.googleapis.com/Evaluation", @@ -7217,6 +7258,10 @@ "type": "google.protobuf.Timestamp", "id": 7 }, + "latestEvaluation": { + "type": "EvaluationReference", + "id": 8 + }, "kmsKeyName": { "type": "string", "id": 9 From 4834b822552f4b1affdb23085ff78715975b72d1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Feb 2023 16:27:19 -0800 Subject: [PATCH 37/38] feat: [analytics-admin] add `GetSearchAds360Link`, `ListSearchAds360Links`, `CreateSearchAds360Link`, `DeleteSearchAds360Link`, `UpdateSearchAds360Link` methods to the Admin API v1alpha (#3971) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add `GetSearchAds360Link`, `ListSearchAds360Links`, `CreateSearchAds360Link`, `DeleteSearchAds360Link`, `UpdateSearchAds360Link` methods to the Admin API v1alpha feat: add `SetAutomatedGa4ConfigurationOptOut`, `FetchAutomatedGa4ConfigurationOptOut` methods to the Admin API v1alpha feat: add `GetBigQueryLink`, `ListBigQueryLinks` methods to the Admin API v1alpha feat: add `tokens_per_project_per_hour` field to `AccessQuota` type feat: add `EXPANDED_DATA_SET`, `CHANNEL_GROUP` values to `ChangeHistoryResourceType` enum feat: add `search_ads_360_link`, `expanded_data_set`, `bigquery_link` values to ChangeHistoryResource.resource oneof field feat: add `BigQueryLink`, `SearchAds360Link` resource types to the Admin API v1alpha fix: remove `LESS_THAN_OR_EQUAL`, `GREATER_THAN_OR_EQUAL` values from NumericFilter.Operation enum fix: remove `PARTIAL_REGEXP` value from StringFilter.MatchType enum PiperOrigin-RevId: 507839187 Source-Link: https://github.com/googleapis/googleapis/commit/b221f5fb4422f51f83416d83a13f15116083cc00 Source-Link: https://github.com/googleapis/googleapis-gen/commit/96b7c43fc3dca6c8767a6d731b516daf9ad50668 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFuYWx5dGljcy1hZG1pbi8uT3dsQm90LnlhbWwiLCJoIjoiOTZiN2M0M2ZjM2RjYTZjODc2N2E2ZDczMWI1MTZkYWY5YWQ1MDY2OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-analytics-admin/README.md | 9 + .../admin/v1alpha/access_report.proto | 10 +- .../admin/v1alpha/analytics_admin.proto | 638 +- .../analytics/admin/v1alpha/audience.proto | 92 +- .../admin/v1alpha/expanded_data_set.proto | 151 + .../analytics/admin/v1alpha/resources.proto | 333 +- .../google-analytics-admin/protos/protos.d.ts | 10372 +++--- .../google-analytics-admin/protos/protos.js | 28423 ++++++++++------ .../google-analytics-admin/protos/protos.json | 646 +- .../google-analytics-admin/samples/README.md | 162 + ...ervice.acknowledge_user_data_collection.js | 4 +- ...s_admin_service.batch_create_user_links.js | 10 +- ...s_admin_service.create_conversion_event.js | 4 +- ...admin_service.create_search_ads360_link.js | 66 + ...nalytics_admin_service.create_user_link.js | 4 +- ...admin_service.delete_search_ads360_link.js | 62 + ...tch_automated_ga4_configuration_opt_out.js | 64 + ...lytics_admin_service.get_big_query_link.js | 63 + ...cs_admin_service.get_search_ads360_link.js | 62 + ...tics_admin_service.list_big_query_links.js | 79 + ...ytics_admin_service.list_firebase_links.js | 2 +- ..._admin_service.list_search_ads360_links.js | 77 + ...in_service.search_change_history_events.js | 23 +- ...set_automated_ga4_configuration_opt_out.js | 68 + .../analytics_admin_service.update_account.js | 7 +- ...min_service.update_attribution_settings.js | 7 +- ...analytics_admin_service.update_audience.js | 7 +- ...s_admin_service.update_custom_dimension.js | 6 +- ...tics_admin_service.update_custom_metric.js | 6 +- ..._service.update_data_retention_settings.js | 7 +- ...lytics_admin_service.update_data_stream.js | 6 +- ...update_display_video360_advertiser_link.js | 6 +- ...cs_admin_service.update_google_ads_link.js | 7 +- ..._service.update_google_signals_settings.js | 7 +- ...analytics_admin_service.update_property.js | 7 +- ...admin_service.update_search_ads360_link.js | 67 + ...tadata.google.analytics.admin.v1alpha.json | 410 +- .../v1alpha/analytics_admin_service_client.ts | 4231 ++- ...analytics_admin_service_client_config.json | 157 +- .../analytics_admin_service_proto_list.json | 1 + .../src/v1alpha/gapic_metadata.json | 98 + .../gapic_analytics_admin_service_v1alpha.ts | 4575 ++- 42 files changed, 32458 insertions(+), 18578 deletions(-) create mode 100644 packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/expanded_data_set.proto create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js create mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index c9e3251c711b..b3cae2a9204d 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -121,6 +121,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Analytics_admin_service.create_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js,samples/README.md) | | Analytics_admin_service.create_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js,samples/README.md) | | Analytics_admin_service.create_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js,samples/README.md) | +| Analytics_admin_service.create_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js,samples/README.md) | | Analytics_admin_service.create_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js,samples/README.md) | | Analytics_admin_service.create_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js,samples/README.md) | | Analytics_admin_service.delete_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js,samples/README.md) | @@ -134,12 +135,15 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Analytics_admin_service.delete_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js,samples/README.md) | | Analytics_admin_service.delete_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js,samples/README.md) | | Analytics_admin_service.delete_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js,samples/README.md) | +| Analytics_admin_service.delete_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js,samples/README.md) | | Analytics_admin_service.delete_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js,samples/README.md) | | Analytics_admin_service.delete_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js,samples/README.md) | +| Analytics_admin_service.fetch_automated_ga4_configuration_opt_out | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js,samples/README.md) | | Analytics_admin_service.get_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js,samples/README.md) | | Analytics_admin_service.get_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js,samples/README.md) | | Analytics_admin_service.get_attribution_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js,samples/README.md) | | Analytics_admin_service.get_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js,samples/README.md) | +| Analytics_admin_service.get_big_query_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js,samples/README.md) | | Analytics_admin_service.get_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js,samples/README.md) | | Analytics_admin_service.get_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js,samples/README.md) | | Analytics_admin_service.get_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js,samples/README.md) | @@ -154,12 +158,14 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Analytics_admin_service.get_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js,samples/README.md) | | Analytics_admin_service.get_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js,samples/README.md) | | Analytics_admin_service.get_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js,samples/README.md) | +| Analytics_admin_service.get_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js,samples/README.md) | | Analytics_admin_service.get_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js,samples/README.md) | | Analytics_admin_service.get_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js,samples/README.md) | | Analytics_admin_service.list_account_summaries | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js,samples/README.md) | | Analytics_admin_service.list_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js,samples/README.md) | | Analytics_admin_service.list_android_app_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js,samples/README.md) | | Analytics_admin_service.list_audiences | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js,samples/README.md) | +| Analytics_admin_service.list_big_query_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js,samples/README.md) | | Analytics_admin_service.list_conversion_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js,samples/README.md) | | Analytics_admin_service.list_custom_dimensions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js,samples/README.md) | | Analytics_admin_service.list_custom_metrics | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js,samples/README.md) | @@ -171,11 +177,13 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Analytics_admin_service.list_ios_app_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js,samples/README.md) | | Analytics_admin_service.list_measurement_protocol_secrets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js,samples/README.md) | | Analytics_admin_service.list_properties | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js,samples/README.md) | +| Analytics_admin_service.list_search_ads360_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js,samples/README.md) | | Analytics_admin_service.list_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js,samples/README.md) | | Analytics_admin_service.list_web_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js,samples/README.md) | | Analytics_admin_service.provision_account_ticket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js,samples/README.md) | | Analytics_admin_service.run_access_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js,samples/README.md) | | Analytics_admin_service.search_change_history_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js,samples/README.md) | +| Analytics_admin_service.set_automated_ga4_configuration_opt_out | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js,samples/README.md) | | Analytics_admin_service.update_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js,samples/README.md) | | Analytics_admin_service.update_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js,samples/README.md) | | Analytics_admin_service.update_attribution_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js,samples/README.md) | @@ -191,6 +199,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Analytics_admin_service.update_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js,samples/README.md) | | Analytics_admin_service.update_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js,samples/README.md) | | Analytics_admin_service.update_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js,samples/README.md) | +| Analytics_admin_service.update_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js,samples/README.md) | | Analytics_admin_service.update_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js,samples/README.md) | | Analytics_admin_service.update_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js,samples/README.md) | | Analytics_admin_service.acknowledge_user_data_collection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js,samples/README.md) | diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/access_report.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/access_report.proto index ce6a8aa154f6..6800357d13f1 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/access_report.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/access_report.proto @@ -306,8 +306,8 @@ message AccessQuota { AccessQuotaStatus tokens_per_day = 1; // Properties can use 50,000 tokens per hour. An API request consumes a single - // number of tokens, and that number is deducted from both the hourly and - // daily quotas. + // number of tokens, and that number is deducted from all of the hourly, + // daily, and per project hourly quotas. AccessQuotaStatus tokens_per_hour = 2; // Properties can use up to 50 concurrent requests. @@ -316,6 +316,12 @@ message AccessQuota { // Properties and cloud project pairs can have up to 50 server errors per // hour. AccessQuotaStatus server_errors_per_project_per_hour = 4; + + // Properties can use up to 25% of their tokens per project per hour. This + // amounts to Analytics 360 Properties can use 12,500 tokens per project per + // hour. An API request consumes a single number of tokens, and that number is + // deducted from all of the hourly, daily, and per project hourly quotas. + AccessQuotaStatus tokens_per_project_per_hour = 5; } // Current state for a particular quota group. diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 926f91bb3355..dbba107286f5 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -88,7 +88,8 @@ service AnalyticsAdminService { } // Requests a ticket for creating an account. - rpc ProvisionAccountTicket(ProvisionAccountTicketRequest) returns (ProvisionAccountTicketResponse) { + rpc ProvisionAccountTicket(ProvisionAccountTicketRequest) + returns (ProvisionAccountTicketResponse) { option (google.api.http) = { post: "/v1alpha/accounts:provisionAccountTicket" body: "*" @@ -96,7 +97,8 @@ service AnalyticsAdminService { } // Returns summaries of all accounts accessible by the caller. - rpc ListAccountSummaries(ListAccountSummariesRequest) returns (ListAccountSummariesResponse) { + rpc ListAccountSummaries(ListAccountSummariesRequest) + returns (ListAccountSummariesResponse) { option (google.api.http) = { get: "/v1alpha/accountSummaries" }; @@ -141,7 +143,7 @@ service AnalyticsAdminService { // will be permanently purged. // https://support.google.com/analytics/answer/6154772 // - // Returns an error if the target is not found, or is not an GA4 Property. + // Returns an error if the target is not found, or is not a GA4 Property. rpc DeleteProperty(DeletePropertyRequest) returns (Property) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*}" @@ -162,15 +164,14 @@ service AnalyticsAdminService { rpc GetUserLink(GetUserLinkRequest) returns (UserLink) { option (google.api.http) = { get: "/v1alpha/{name=accounts/*/userLinks/*}" - additional_bindings { - get: "/v1alpha/{name=properties/*/userLinks/*}" - } + additional_bindings { get: "/v1alpha/{name=properties/*/userLinks/*}" } }; option (google.api.method_signature) = "name"; } // Gets information about multiple users' links to an account or property. - rpc BatchGetUserLinks(BatchGetUserLinksRequest) returns (BatchGetUserLinksResponse) { + rpc BatchGetUserLinks(BatchGetUserLinksRequest) + returns (BatchGetUserLinksResponse) { option (google.api.http) = { get: "/v1alpha/{parent=accounts/*}/userLinks:batchGet" additional_bindings { @@ -183,9 +184,7 @@ service AnalyticsAdminService { rpc ListUserLinks(ListUserLinksRequest) returns (ListUserLinksResponse) { option (google.api.http) = { get: "/v1alpha/{parent=accounts/*}/userLinks" - additional_bindings { - get: "/v1alpha/{parent=properties/*}/userLinks" - } + additional_bindings { get: "/v1alpha/{parent=properties/*}/userLinks" } }; option (google.api.method_signature) = "parent"; } @@ -231,7 +230,8 @@ service AnalyticsAdminService { // // This method is transactional. If any UserLink cannot be created, none of // the UserLinks will be created. - rpc BatchCreateUserLinks(BatchCreateUserLinksRequest) returns (BatchCreateUserLinksResponse) { + rpc BatchCreateUserLinks(BatchCreateUserLinksRequest) + returns (BatchCreateUserLinksResponse) { option (google.api.http) = { post: "/v1alpha/{parent=accounts/*}/userLinks:batchCreate" body: "*" @@ -256,7 +256,8 @@ service AnalyticsAdminService { } // Updates information about multiple users' links to an account or property. - rpc BatchUpdateUserLinks(BatchUpdateUserLinksRequest) returns (BatchUpdateUserLinksResponse) { + rpc BatchUpdateUserLinks(BatchUpdateUserLinksRequest) + returns (BatchUpdateUserLinksResponse) { option (google.api.http) = { post: "/v1alpha/{parent=accounts/*}/userLinks:batchUpdate" body: "*" @@ -271,15 +272,14 @@ service AnalyticsAdminService { rpc DeleteUserLink(DeleteUserLinkRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1alpha/{name=accounts/*/userLinks/*}" - additional_bindings { - delete: "/v1alpha/{name=properties/*/userLinks/*}" - } + additional_bindings { delete: "/v1alpha/{name=properties/*/userLinks/*}" } }; option (google.api.method_signature) = "name"; } // Deletes information about multiple users' links to an account or property. - rpc BatchDeleteUserLinks(BatchDeleteUserLinksRequest) returns (google.protobuf.Empty) { + rpc BatchDeleteUserLinks(BatchDeleteUserLinksRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1alpha/{parent=accounts/*}/userLinks:batchDelete" body: "*" @@ -302,7 +302,8 @@ service AnalyticsAdminService { } // Deletes a FirebaseLink on a property - rpc DeleteFirebaseLink(DeleteFirebaseLinkRequest) returns (google.protobuf.Empty) { + rpc DeleteFirebaseLink(DeleteFirebaseLinkRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*/firebaseLinks/*}" }; @@ -311,7 +312,8 @@ service AnalyticsAdminService { // Lists FirebaseLinks on a property. // Properties can have at most one FirebaseLink. - rpc ListFirebaseLinks(ListFirebaseLinksRequest) returns (ListFirebaseLinksResponse) { + rpc ListFirebaseLinks(ListFirebaseLinksRequest) + returns (ListFirebaseLinksResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*}/firebaseLinks" }; @@ -346,7 +348,8 @@ service AnalyticsAdminService { } // Deletes a GoogleAdsLink on a property - rpc DeleteGoogleAdsLink(DeleteGoogleAdsLinkRequest) returns (google.protobuf.Empty) { + rpc DeleteGoogleAdsLink(DeleteGoogleAdsLinkRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*/googleAdsLinks/*}" }; @@ -354,7 +357,8 @@ service AnalyticsAdminService { } // Lists GoogleAdsLinks on a property. - rpc ListGoogleAdsLinks(ListGoogleAdsLinksRequest) returns (ListGoogleAdsLinksResponse) { + rpc ListGoogleAdsLinks(ListGoogleAdsLinksRequest) + returns (ListGoogleAdsLinksResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*}/googleAdsLinks" }; @@ -363,7 +367,8 @@ service AnalyticsAdminService { // Get data sharing settings on an account. // Data sharing settings are singletons. - rpc GetDataSharingSettings(GetDataSharingSettingsRequest) returns (DataSharingSettings) { + rpc GetDataSharingSettings(GetDataSharingSettingsRequest) + returns (DataSharingSettings) { option (google.api.http) = { get: "/v1alpha/{name=accounts/*/dataSharingSettings}" }; @@ -371,7 +376,8 @@ service AnalyticsAdminService { } // Lookup for a single "GA4" MeasurementProtocolSecret. - rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) + returns (MeasurementProtocolSecret) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" }; @@ -380,7 +386,8 @@ service AnalyticsAdminService { // Returns child MeasurementProtocolSecrets under the specified parent // Property. - rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) returns (ListMeasurementProtocolSecretsResponse) { + rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) + returns (ListMeasurementProtocolSecretsResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" }; @@ -388,7 +395,8 @@ service AnalyticsAdminService { } // Creates a measurement protocol secret. - rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) + returns (MeasurementProtocolSecret) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" body: "measurement_protocol_secret" @@ -397,7 +405,8 @@ service AnalyticsAdminService { } // Deletes target MeasurementProtocolSecret. - rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) returns (google.protobuf.Empty) { + rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" }; @@ -405,19 +414,22 @@ service AnalyticsAdminService { } // Updates a measurement protocol secret. - rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) + returns (MeasurementProtocolSecret) { option (google.api.http) = { patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" body: "measurement_protocol_secret" }; - option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; + option (google.api.method_signature) = + "measurement_protocol_secret,update_mask"; } // Acknowledges the terms of user data collection for the specified property. // // This acknowledgement must be completed (either in the Google Analytics UI // or via this API) before MeasurementProtocolSecret resources may be created. - rpc AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest) returns (AcknowledgeUserDataCollectionResponse) { + rpc AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest) + returns (AcknowledgeUserDataCollectionResponse) { option (google.api.http) = { post: "/v1alpha/{property=properties/*}:acknowledgeUserDataCollection" body: "*" @@ -426,7 +438,8 @@ service AnalyticsAdminService { // Searches through all changes to an account or its children given the // specified set of filters. - rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { + rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) + returns (SearchChangeHistoryEventsResponse) { option (google.api.http) = { post: "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents" body: "*" @@ -434,7 +447,8 @@ service AnalyticsAdminService { } // Lookup for Google Signals settings for a property. - rpc GetGoogleSignalsSettings(GetGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { + rpc GetGoogleSignalsSettings(GetGoogleSignalsSettingsRequest) + returns (GoogleSignalsSettings) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/googleSignalsSettings}" }; @@ -442,16 +456,19 @@ service AnalyticsAdminService { } // Updates Google Signals settings for a property. - rpc UpdateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { + rpc UpdateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest) + returns (GoogleSignalsSettings) { option (google.api.http) = { patch: "/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}" body: "google_signals_settings" }; - option (google.api.method_signature) = "google_signals_settings,update_mask"; + option (google.api.method_signature) = + "google_signals_settings,update_mask"; } // Creates a conversion event with the specified attributes. - rpc CreateConversionEvent(CreateConversionEventRequest) returns (ConversionEvent) { + rpc CreateConversionEvent(CreateConversionEventRequest) + returns (ConversionEvent) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/conversionEvents" body: "conversion_event" @@ -468,7 +485,8 @@ service AnalyticsAdminService { } // Deletes a conversion event in a property. - rpc DeleteConversionEvent(DeleteConversionEventRequest) returns (google.protobuf.Empty) { + rpc DeleteConversionEvent(DeleteConversionEventRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*/conversionEvents/*}" }; @@ -478,7 +496,8 @@ service AnalyticsAdminService { // Returns a list of conversion events in the specified parent property. // // Returns an empty list if no conversion events are found. - rpc ListConversionEvents(ListConversionEventsRequest) returns (ListConversionEventsResponse) { + rpc ListConversionEvents(ListConversionEventsRequest) + returns (ListConversionEventsResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*}/conversionEvents" }; @@ -486,7 +505,8 @@ service AnalyticsAdminService { } // Look up a single DisplayVideo360AdvertiserLink - rpc GetDisplayVideo360AdvertiserLink(GetDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { + rpc GetDisplayVideo360AdvertiserLink(GetDisplayVideo360AdvertiserLinkRequest) + returns (DisplayVideo360AdvertiserLink) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" }; @@ -494,7 +514,9 @@ service AnalyticsAdminService { } // Lists all DisplayVideo360AdvertiserLinks on a property. - rpc ListDisplayVideo360AdvertiserLinks(ListDisplayVideo360AdvertiserLinksRequest) returns (ListDisplayVideo360AdvertiserLinksResponse) { + rpc ListDisplayVideo360AdvertiserLinks( + ListDisplayVideo360AdvertiserLinksRequest) + returns (ListDisplayVideo360AdvertiserLinksResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks" }; @@ -506,16 +528,21 @@ service AnalyticsAdminService { // the Google Analytics property and on the Display & Video 360 advertiser. // Users who do not have access to the Display & Video 360 advertiser should // instead seek to create a DisplayVideo360LinkProposal. - rpc CreateDisplayVideo360AdvertiserLink(CreateDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { + rpc CreateDisplayVideo360AdvertiserLink( + CreateDisplayVideo360AdvertiserLinkRequest) + returns (DisplayVideo360AdvertiserLink) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks" body: "display_video_360_advertiser_link" }; - option (google.api.method_signature) = "parent,display_video_360_advertiser_link"; + option (google.api.method_signature) = + "parent,display_video_360_advertiser_link"; } // Deletes a DisplayVideo360AdvertiserLink on a property. - rpc DeleteDisplayVideo360AdvertiserLink(DeleteDisplayVideo360AdvertiserLinkRequest) returns (google.protobuf.Empty) { + rpc DeleteDisplayVideo360AdvertiserLink( + DeleteDisplayVideo360AdvertiserLinkRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" }; @@ -523,16 +550,21 @@ service AnalyticsAdminService { } // Updates a DisplayVideo360AdvertiserLink on a property. - rpc UpdateDisplayVideo360AdvertiserLink(UpdateDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { + rpc UpdateDisplayVideo360AdvertiserLink( + UpdateDisplayVideo360AdvertiserLinkRequest) + returns (DisplayVideo360AdvertiserLink) { option (google.api.http) = { patch: "/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}" body: "display_video_360_advertiser_link" }; - option (google.api.method_signature) = "display_video_360_advertiser_link,update_mask"; + option (google.api.method_signature) = + "display_video_360_advertiser_link,update_mask"; } // Lookup for a single DisplayVideo360AdvertiserLinkProposal. - rpc GetDisplayVideo360AdvertiserLinkProposal(GetDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { + rpc GetDisplayVideo360AdvertiserLinkProposal( + GetDisplayVideo360AdvertiserLinkProposalRequest) + returns (DisplayVideo360AdvertiserLinkProposal) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" }; @@ -540,7 +572,9 @@ service AnalyticsAdminService { } // Lists DisplayVideo360AdvertiserLinkProposals on a property. - rpc ListDisplayVideo360AdvertiserLinkProposals(ListDisplayVideo360AdvertiserLinkProposalsRequest) returns (ListDisplayVideo360AdvertiserLinkProposalsResponse) { + rpc ListDisplayVideo360AdvertiserLinkProposals( + ListDisplayVideo360AdvertiserLinkProposalsRequest) + returns (ListDisplayVideo360AdvertiserLinkProposalsResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals" }; @@ -548,17 +582,22 @@ service AnalyticsAdminService { } // Creates a DisplayVideo360AdvertiserLinkProposal. - rpc CreateDisplayVideo360AdvertiserLinkProposal(CreateDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { + rpc CreateDisplayVideo360AdvertiserLinkProposal( + CreateDisplayVideo360AdvertiserLinkProposalRequest) + returns (DisplayVideo360AdvertiserLinkProposal) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals" body: "display_video_360_advertiser_link_proposal" }; - option (google.api.method_signature) = "parent,display_video_360_advertiser_link_proposal"; + option (google.api.method_signature) = + "parent,display_video_360_advertiser_link_proposal"; } // Deletes a DisplayVideo360AdvertiserLinkProposal on a property. // This can only be used on cancelled proposals. - rpc DeleteDisplayVideo360AdvertiserLinkProposal(DeleteDisplayVideo360AdvertiserLinkProposalRequest) returns (google.protobuf.Empty) { + rpc DeleteDisplayVideo360AdvertiserLinkProposal( + DeleteDisplayVideo360AdvertiserLinkProposalRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" }; @@ -568,7 +607,9 @@ service AnalyticsAdminService { // Approves a DisplayVideo360AdvertiserLinkProposal. // The DisplayVideo360AdvertiserLinkProposal will be deleted and a new // DisplayVideo360AdvertiserLink will be created. - rpc ApproveDisplayVideo360AdvertiserLinkProposal(ApproveDisplayVideo360AdvertiserLinkProposalRequest) returns (ApproveDisplayVideo360AdvertiserLinkProposalResponse) { + rpc ApproveDisplayVideo360AdvertiserLinkProposal( + ApproveDisplayVideo360AdvertiserLinkProposalRequest) + returns (ApproveDisplayVideo360AdvertiserLinkProposalResponse) { option (google.api.http) = { post: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve" body: "*" @@ -580,7 +621,9 @@ service AnalyticsAdminService { // - Declining a proposal initiated from Display & Video 360 // - Withdrawing a proposal initiated from Google Analytics // After being cancelled, a proposal will eventually be deleted automatically. - rpc CancelDisplayVideo360AdvertiserLinkProposal(CancelDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { + rpc CancelDisplayVideo360AdvertiserLinkProposal( + CancelDisplayVideo360AdvertiserLinkProposalRequest) + returns (DisplayVideo360AdvertiserLinkProposal) { option (google.api.http) = { post: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel" body: "*" @@ -588,7 +631,8 @@ service AnalyticsAdminService { } // Creates a CustomDimension. - rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { + rpc CreateCustomDimension(CreateCustomDimensionRequest) + returns (CustomDimension) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/customDimensions" body: "custom_dimension" @@ -597,7 +641,8 @@ service AnalyticsAdminService { } // Updates a CustomDimension on a property. - rpc UpdateCustomDimension(UpdateCustomDimensionRequest) returns (CustomDimension) { + rpc UpdateCustomDimension(UpdateCustomDimensionRequest) + returns (CustomDimension) { option (google.api.http) = { patch: "/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}" body: "custom_dimension" @@ -606,7 +651,8 @@ service AnalyticsAdminService { } // Lists CustomDimensions on a property. - rpc ListCustomDimensions(ListCustomDimensionsRequest) returns (ListCustomDimensionsResponse) { + rpc ListCustomDimensions(ListCustomDimensionsRequest) + returns (ListCustomDimensionsResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*}/customDimensions" }; @@ -614,7 +660,8 @@ service AnalyticsAdminService { } // Archives a CustomDimension on a property. - rpc ArchiveCustomDimension(ArchiveCustomDimensionRequest) returns (google.protobuf.Empty) { + rpc ArchiveCustomDimension(ArchiveCustomDimensionRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1alpha/{name=properties/*/customDimensions/*}:archive" body: "*" @@ -649,7 +696,8 @@ service AnalyticsAdminService { } // Lists CustomMetrics on a property. - rpc ListCustomMetrics(ListCustomMetricsRequest) returns (ListCustomMetricsResponse) { + rpc ListCustomMetrics(ListCustomMetricsRequest) + returns (ListCustomMetricsResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*}/customMetrics" }; @@ -657,7 +705,8 @@ service AnalyticsAdminService { } // Archives a CustomMetric on a property. - rpc ArchiveCustomMetric(ArchiveCustomMetricRequest) returns (google.protobuf.Empty) { + rpc ArchiveCustomMetric(ArchiveCustomMetricRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1alpha/{name=properties/*/customMetrics/*}:archive" body: "*" @@ -674,7 +723,8 @@ service AnalyticsAdminService { } // Returns the singleton data retention settings for this property. - rpc GetDataRetentionSettings(GetDataRetentionSettingsRequest) returns (DataRetentionSettings) { + rpc GetDataRetentionSettings(GetDataRetentionSettingsRequest) + returns (DataRetentionSettings) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/dataRetentionSettings}" }; @@ -682,12 +732,14 @@ service AnalyticsAdminService { } // Updates the singleton data retention settings for this property. - rpc UpdateDataRetentionSettings(UpdateDataRetentionSettingsRequest) returns (DataRetentionSettings) { + rpc UpdateDataRetentionSettings(UpdateDataRetentionSettingsRequest) + returns (DataRetentionSettings) { option (google.api.http) = { patch: "/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}" body: "data_retention_settings" }; - option (google.api.method_signature) = "data_retention_settings,update_mask"; + option (google.api.method_signature) = + "data_retention_settings,update_mask"; } // Creates a DataStream. @@ -700,7 +752,8 @@ service AnalyticsAdminService { } // Deletes a DataStream on a property. - rpc DeleteDataStream(DeleteDataStreamRequest) returns (google.protobuf.Empty) { + rpc DeleteDataStream(DeleteDataStreamRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*/dataStreams/*}" }; @@ -717,7 +770,8 @@ service AnalyticsAdminService { } // Lists DataStreams on a property. - rpc ListDataStreams(ListDataStreamsRequest) returns (ListDataStreamsResponse) { + rpc ListDataStreams(ListDataStreamsRequest) + returns (ListDataStreamsResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*}/dataStreams" }; @@ -734,6 +788,7 @@ service AnalyticsAdminService { // Lookup for a single Audience. // Audiences created before 2020 may not be supported. + // Default audiences will not show filter definitions. rpc GetAudience(GetAudienceRequest) returns (Audience) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/audiences/*}" @@ -743,6 +798,7 @@ service AnalyticsAdminService { // Lists Audiences on a property. // Audiences created before 2020 may not be supported. + // Default audiences will not show filter definitions. rpc ListAudiences(ListAudiencesRequest) returns (ListAudiencesResponse) { option (google.api.http) = { get: "/v1alpha/{parent=properties/*}/audiences" @@ -776,8 +832,56 @@ service AnalyticsAdminService { }; } + // Look up a single SearchAds360Link + rpc GetSearchAds360Link(GetSearchAds360LinkRequest) + returns (SearchAds360Link) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/searchAds360Links/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all SearchAds360Links on a property. + rpc ListSearchAds360Links(ListSearchAds360LinksRequest) + returns (ListSearchAds360LinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/searchAds360Links" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a SearchAds360Link. + rpc CreateSearchAds360Link(CreateSearchAds360LinkRequest) + returns (SearchAds360Link) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/searchAds360Links" + body: "search_ads_360_link" + }; + option (google.api.method_signature) = "parent,search_ads_360_link"; + } + + // Deletes a SearchAds360Link on a property. + rpc DeleteSearchAds360Link(DeleteSearchAds360LinkRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/searchAds360Links/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a SearchAds360Link on a property. + rpc UpdateSearchAds360Link(UpdateSearchAds360LinkRequest) + returns (SearchAds360Link) { + option (google.api.http) = { + patch: "/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}" + body: "search_ads_360_link" + }; + option (google.api.method_signature) = "search_ads_360_link,update_mask"; + } + // Lookup for a AttributionSettings singleton. - rpc GetAttributionSettings(GetAttributionSettingsRequest) returns (AttributionSettings) { + rpc GetAttributionSettings(GetAttributionSettingsRequest) + returns (AttributionSettings) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/attributionSettings}" }; @@ -785,7 +889,8 @@ service AnalyticsAdminService { } // Updates attribution settings on a property. - rpc UpdateAttributionSettings(UpdateAttributionSettingsRequest) returns (AttributionSettings) { + rpc UpdateAttributionSettings(UpdateAttributionSettingsRequest) + returns (AttributionSettings) { option (google.api.http) = { patch: "/v1alpha/{attribution_settings.name=properties/*/attributionSettings}" body: "attribution_settings" @@ -806,12 +911,54 @@ service AnalyticsAdminService { // property configuration changes like adding a stream or changing a // property's time zone. For configuration change history, see // [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - rpc RunAccessReport(RunAccessReportRequest) returns (RunAccessReportResponse) { + rpc RunAccessReport(RunAccessReportRequest) + returns (RunAccessReportResponse) { option (google.api.http) = { post: "/v1alpha/{entity=properties/*}:runAccessReport" body: "*" }; } + + // Sets the opt out status for the automated GA4 setup process for a UA + // property. + // Note: this has no effect on GA4 property. + rpc SetAutomatedGa4ConfigurationOptOut( + SetAutomatedGa4ConfigurationOptOutRequest) + returns (SetAutomatedGa4ConfigurationOptOutResponse) { + option (google.api.http) = { + post: "/v1alpha/properties:setAutomatedGa4ConfigurationOptOut" + body: "*" + }; + } + + // Fetches the opt out status for the automated GA4 setup process for a UA + // property. + // Note: this has no effect on GA4 property. + rpc FetchAutomatedGa4ConfigurationOptOut( + FetchAutomatedGa4ConfigurationOptOutRequest) + returns (FetchAutomatedGa4ConfigurationOptOutResponse) { + option (google.api.http) = { + post: "/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut" + body: "*" + }; + } + + // Lookup for a single BigQuery Link. + rpc GetBigQueryLink(GetBigQueryLinkRequest) returns (BigQueryLink) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/bigQueryLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists BigQuery Links on a property. + rpc ListBigQueryLinks(ListBigQueryLinksRequest) + returns (ListBigQueryLinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/bigQueryLinks" + }; + option (google.api.method_signature) = "parent"; + } } // The request for a Data Access Record Report. @@ -979,10 +1126,12 @@ message UpdateAccountRequest { // The account's `name` field is used to identify the account. Account account = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for ProvisionAccountTicket RPC. @@ -1069,10 +1218,12 @@ message UpdatePropertyRequest { // updated. Property property = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateProperty RPC. @@ -1220,8 +1371,8 @@ message CreateUserLinkRequest { } ]; - // Optional. If set, then email the new user notifying them that they've been granted - // permissions to the resource. + // Optional. If set, then email the new user notifying them that they've been + // granted permissions to the resource. bool notify_new_user = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. The user link to create. @@ -1230,8 +1381,8 @@ message CreateUserLinkRequest { // Request message for BatchCreateUserLinks RPC. message BatchCreateUserLinksRequest { - // Required. The account or property that all user links in the request are for. - // This field is required. The parent field in the CreateUserLinkRequest + // Required. The account or property that all user links in the request are + // for. This field is required. The parent field in the CreateUserLinkRequest // messages must either be empty or match this field. // Example format: accounts/1234 string parent = 1 [ @@ -1241,14 +1392,15 @@ message BatchCreateUserLinksRequest { } ]; - // Optional. If set, then email the new users notifying them that they've been granted - // permissions to the resource. Regardless of whether this is set or not, - // notify_new_user field inside each individual request is ignored. + // Optional. If set, then email the new users notifying them that they've been + // granted permissions to the resource. Regardless of whether this is set or + // not, notify_new_user field inside each individual request is ignored. bool notify_new_users = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. The requests specifying the user links to create. // A maximum of 1000 user links can be created in a batch. - repeated CreateUserLinkRequest requests = 3 [(google.api.field_behavior) = REQUIRED]; + repeated CreateUserLinkRequest requests = 3 + [(google.api.field_behavior) = REQUIRED]; } // Response message for BatchCreateUserLinks RPC. @@ -1278,7 +1430,8 @@ message BatchUpdateUserLinksRequest { // Required. The requests specifying the user links to update. // A maximum of 1000 user links can be updated in a batch. - repeated UpdateUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; + repeated UpdateUserLinkRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; } // Response message for BatchUpdateUserLinks RPC. @@ -1313,7 +1466,8 @@ message BatchDeleteUserLinksRequest { // Required. The requests specifying the user links to update. // A maximum of 1000 user links can be updated in a batch. - repeated DeleteUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; + repeated DeleteUserLinkRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateFirebaseLink RPC @@ -1362,7 +1516,7 @@ message ListFirebaseLinksRequest { // A page token, received from a previous `ListFirebaseLinks` call. // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListProperties` must + // When paginating, all other parameters provided to `ListFirebaseLinks` must // match the call that provided the page token. string page_token = 3; } @@ -1412,10 +1566,12 @@ message UpdateGoogleAdsLinkRequest { // The GoogleAdsLink to update GoogleAdsLink google_ads_link = 1; - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteGoogleAdsLink RPC. @@ -1510,8 +1666,8 @@ message AcknowledgeUserDataCollectionRequest { } ]; - // Required. An acknowledgement that the caller of this method understands the terms - // of user data collection. + // Required. An acknowledgement that the caller of this method understands the + // terms of user data collection. // // This field must contain the exact value: // "I acknowledge that I have the necessary privacy disclosures and rights @@ -1522,13 +1678,12 @@ message AcknowledgeUserDataCollectionRequest { } // Response message for AcknowledgeUserDataCollection RPC. -message AcknowledgeUserDataCollectionResponse { - -} +message AcknowledgeUserDataCollectionResponse {} // Request message for SearchChangeHistoryEvents RPC. message SearchChangeHistoryEventsRequest { - // Required. The account resource for which to return change history resources. + // Required. The account resource for which to return change history + // resources. string account = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1545,22 +1700,26 @@ message SearchChangeHistoryEventsRequest { } ]; - // Optional. If set, only return changes if they are for a resource that matches at - // least one of these types. - repeated ChangeHistoryResourceType resource_type = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If set, only return changes if they are for a resource that + // matches at least one of these types. + repeated ChangeHistoryResourceType resource_type = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, only return changes that match one or more of these types of - // actions. + // Optional. If set, only return changes that match one or more of these types + // of actions. repeated ActionType action = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, only return changes if they are made by a user in this list. + // Optional. If set, only return changes if they are made by a user in this + // list. repeated string actor_email = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. If set, only return changes made after this time (inclusive). - google.protobuf.Timestamp earliest_change_time = 6 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp earliest_change_time = 6 + [(google.api.field_behavior) = OPTIONAL]; // Optional. If set, only return changes made before this time (inclusive). - google.protobuf.Timestamp latest_change_time = 7 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp latest_change_time = 7 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The maximum number of ChangeHistoryEvent items to return. // The service may return fewer than this value, even if there are additional @@ -1568,10 +1727,11 @@ message SearchChangeHistoryEventsRequest { // The maximum value is 200 (higher values will be coerced to the maximum). int32 page_size = 8 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - // Provide this to retrieve the subsequent page. When paginating, all other - // parameters provided to `SearchChangeHistoryEvents` must match the call that - // provided the page token. + // Optional. A page token, received from a previous + // `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + // page. When paginating, all other parameters provided to + // `SearchChangeHistoryEvents` must match the call that provided the page + // token. string page_token = 9 [(google.api.field_behavior) = OPTIONAL]; } @@ -1610,7 +1770,8 @@ message CreateMeasurementProtocolSecretRequest { ]; // Required. The measurement protocol secret to create. - MeasurementProtocolSecret measurement_protocol_secret = 2 [(google.api.field_behavior) = REQUIRED]; + MeasurementProtocolSecret measurement_protocol_secret = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteMeasurementProtocolSecret RPC @@ -1629,7 +1790,8 @@ message DeleteMeasurementProtocolSecretRequest { // Request message for UpdateMeasurementProtocolSecret RPC message UpdateMeasurementProtocolSecretRequest { // Required. The measurement protocol secret to update. - MeasurementProtocolSecret measurement_protocol_secret = 1 [(google.api.field_behavior) = REQUIRED]; + MeasurementProtocolSecret measurement_protocol_secret = 1 + [(google.api.field_behavior) = REQUIRED]; // The list of fields to be updated. Omitted fields will not be updated. google.protobuf.FieldMask update_mask = 2; @@ -1685,12 +1847,15 @@ message GetGoogleSignalsSettingsRequest { message UpdateGoogleSignalsSettingsRequest { // Required. The settings to update. // The `name` field is used to identify the settings to be updated. - GoogleSignalsSettings google_signals_settings = 1 [(google.api.field_behavior) = REQUIRED]; + GoogleSignalsSettings google_signals_settings = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateConversionEvent RPC @@ -1698,8 +1863,8 @@ message CreateConversionEventRequest { // Required. The conversion event to create. ConversionEvent conversion_event = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The resource name of the parent property where this conversion event will - // be created. Format: properties/123 + // Required. The resource name of the parent property where this conversion + // event will be created. Format: properties/123 string parent = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1824,7 +1989,8 @@ message CreateDisplayVideo360AdvertiserLinkRequest { ]; // Required. The DisplayVideo360AdvertiserLink to create. - DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(google.api.field_behavior) = REQUIRED]; + DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteDisplayVideo360AdvertiserLink RPC. @@ -1844,10 +2010,11 @@ message UpdateDisplayVideo360AdvertiserLinkRequest { // The DisplayVideo360AdvertiserLink to update DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Omitted fields will not be + // updated. To replace the entire entity, use one path with the string "*" to + // match all fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for GetDisplayVideo360AdvertiserLinkProposal RPC. @@ -1890,7 +2057,8 @@ message ListDisplayVideo360AdvertiserLinkProposalsRequest { // Response message for ListDisplayVideo360AdvertiserLinkProposals RPC. message ListDisplayVideo360AdvertiserLinkProposalsResponse { // List of DisplayVideo360AdvertiserLinkProposals. - repeated DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + repeated DisplayVideo360AdvertiserLinkProposal + display_video_360_advertiser_link_proposals = 1; // A token, which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. @@ -1908,7 +2076,9 @@ message CreateDisplayVideo360AdvertiserLinkProposalRequest { ]; // Required. The DisplayVideo360AdvertiserLinkProposal to create. - DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(google.api.field_behavior) = REQUIRED]; + DisplayVideo360AdvertiserLinkProposal + display_video_360_advertiser_link_proposal = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC. @@ -1954,6 +2124,91 @@ message CancelDisplayVideo360AdvertiserLinkProposalRequest { ]; } +// Request message for GetSearchAds360Link RPC. +message GetSearchAds360LinkRequest { + // Required. The name of the SearchAds360Link to get. + // Example format: properties/1234/SearchAds360Link/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/SearchAds360Link" + } + ]; +} + +// Request message for ListSearchAds360Links RPC. +message ListSearchAds360LinksRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/SearchAds360Link" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListSearchAds360Links` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListSearchAds360Links` must match the call that provided the + // page token. + string page_token = 3; +} + +// Response message for ListSearchAds360Links RPC. +message ListSearchAds360LinksResponse { + // List of SearchAds360Links. + repeated SearchAds360Link search_ads_360_links = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for CreateSearchAds360Link RPC. +message CreateSearchAds360LinkRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/SearchAds360Link" + } + ]; + + // Required. The SearchAds360Link to create. + SearchAds360Link search_ads_360_link = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteSearchAds360Link RPC. +message DeleteSearchAds360LinkRequest { + // Required. The name of the SearchAds360Link to delete. + // Example format: properties/1234/SearchAds360Links/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/SearchAds360Link" + } + ]; +} + +// Request message for UpdateSearchAds360Link RPC. +message UpdateSearchAds360LinkRequest { + // The SearchAds360Link to update + SearchAds360Link search_ads_360_link = 1; + + // Required. The list of fields to be updated. Omitted fields will not be + // updated. To replace the entire entity, use one path with the string "*" to + // match all fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + // Request message for CreateCustomDimension RPC. message CreateCustomDimensionRequest { // Required. Example format: properties/1234 @@ -1973,10 +2228,11 @@ message UpdateCustomDimensionRequest { // The CustomDimension to update CustomDimension custom_dimension = 1; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Omitted fields will not be + // updated. To replace the entire entity, use one path with the string "*" to + // match all fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for ListCustomDimensions RPC. @@ -2055,10 +2311,11 @@ message UpdateCustomMetricRequest { // The CustomMetric to update CustomMetric custom_metric = 1; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Omitted fields will not be + // updated. To replace the entire entity, use one path with the string "*" to + // match all fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for ListCustomMetrics RPC. @@ -2136,12 +2393,15 @@ message GetDataRetentionSettingsRequest { message UpdateDataRetentionSettingsRequest { // Required. The settings to update. // The `name` field is used to identify the settings to be updated. - DataRetentionSettings data_retention_settings = 1 [(google.api.field_behavior) = REQUIRED]; + DataRetentionSettings data_retention_settings = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateDataStream RPC. @@ -2175,10 +2435,11 @@ message UpdateDataStreamRequest { // The DataStream to update DataStream data_stream = 1; - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Omitted fields will not be + // updated. To replace the entire entity, use one path with the string "*" to + // match all fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for ListDataStreams RPC. @@ -2291,10 +2552,12 @@ message UpdateAudienceRequest { // The audience's `name` field is used to identify the audience to be updated. Audience audience = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for ArchiveAudience RPC. @@ -2324,10 +2587,93 @@ message GetAttributionSettingsRequest { message UpdateAttributionSettingsRequest { // Required. The attribution settings to update. // The `name` field is used to identify the settings to be updated. - AttributionSettings attribution_settings = 1 [(google.api.field_behavior) = REQUIRED]; + AttributionSettings attribution_settings = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request for setting the opt out status for the automated GA4 setup process. +message SetAutomatedGa4ConfigurationOptOutRequest { + // Required. The UA property to set the opt out status. Note this request uses + // the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + // Format: properties/{internalWebPropertyId} + // Example: properties/1234 + string property = 1 [(google.api.field_behavior) = REQUIRED]; + + // The status to set. + bool opt_out = 2; +} - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +// Response message for setting the opt out status for the automated GA4 setup +// process. +message SetAutomatedGa4ConfigurationOptOutResponse {} + +// Request for fetching the opt out status for the automated GA4 setup process. +message FetchAutomatedGa4ConfigurationOptOutRequest { + // Required. The UA property to get the opt out status. Note this request uses + // the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + // Format: properties/{internalWebPropertyId} + // Example: properties/1234 + string property = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for fetching the opt out status for the automated GA4 setup +// process. +message FetchAutomatedGa4ConfigurationOptOutResponse { + // The opt out status for the UA property. + bool opt_out = 1; +} + +// Request message for GetBigQueryLink RPC. +message GetBigQueryLinkRequest { + // Required. The name of the BigQuery link to lookup. + // Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} + // Example: properties/123/bigQueryLinks/456 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/BigQueryLink" + } + ]; +} + +// Request message for ListBigQueryLinks RPC. +message ListBigQueryLinksRequest { + // Required. The name of the property to list BigQuery links under. + // Format: properties/{property_id} + // Example: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/BigQueryLink" + } + ]; + + // The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListBigQueryLinks` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListBigQueryLinks` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListBigQueryLinks RPC +message ListBigQueryLinksResponse { + // List of BigQueryLinks. + repeated BigQueryLink bigquery_links = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; } diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto index e12943e1c9d1..cc3c732957d2 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto @@ -66,9 +66,6 @@ message AudienceDimensionOrMetricFilter { // Full regular expression matches with the string value. FULL_REGEXP = 5; - - // Partial regular expression matches with the string value. - PARTIAL_REGEXP = 6; } // Required. The match type for the string filter. @@ -84,7 +81,8 @@ message AudienceDimensionOrMetricFilter { // A filter for a string dimension that matches a particular list of options. message InListFilter { - // Required. The list of possible string values to match against. Must be non-empty. + // Required. The list of possible string values to match against. Must be + // non-empty. repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. If true, the match is case-sensitive. If false, the match is @@ -117,14 +115,8 @@ message AudienceDimensionOrMetricFilter { // Less than. LESS_THAN = 2; - // Less than or equal. - LESS_THAN_OR_EQUAL = 3; - // Greater than. GREATER_THAN = 4; - - // Greater than or equal. - GREATER_THAN_OR_EQUAL = 5; } // Required. The operation applied to a numeric filter. @@ -167,8 +159,8 @@ message AudienceDimensionOrMetricFilter { (google.api.field_behavior) = IMMUTABLE ]; - // Optional. Indicates whether this filter needs dynamic evaluation or not. If set to - // true, users join the Audience if they ever met the condition (static + // Optional. Indicates whether this filter needs dynamic evaluation or not. If + // set to true, users join the Audience if they ever met the condition (static // evaluation). If unset or set to false, user evaluation for an Audience is // dynamic; users are added to an Audience when they meet the conditions and // then removed when they no longer meet them. @@ -176,9 +168,9 @@ message AudienceDimensionOrMetricFilter { // This can only be set when Audience scope is ACROSS_ALL_SESSIONS. bool at_any_point_in_time = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set, specifies the time window for which to evaluate data in number of - // days. If not set, then audience data is evaluated against lifetime data - // (i.e., infinite time window). + // Optional. If set, specifies the time window for which to evaluate data in + // number of days. If not set, then audience data is evaluated against + // lifetime data (i.e., infinite time window). // // For example, if set to 1 day, only the current day's data is evaluated. The // reference point is the current day when at_any_point_in_time is unset or @@ -199,14 +191,15 @@ message AudienceEventFilter { (google.api.field_behavior) = IMMUTABLE ]; - // Optional. If specified, this filter matches events that match both the single - // event name and the parameter filter expressions. AudienceEventFilter + // Optional. If specified, this filter matches events that match both the + // single event name and the parameter filter expressions. AudienceEventFilter // inside the parameter filter expression cannot be set (i.e., nested // event filters are not supported). This should be a single and_group of // dimension_or_metric_filter or not_expression; ANDs of ORs are not // supported. Also, if it includes a filter for "eventCount", only that one // will be considered; all the other filters will be ignored. - AudienceFilterExpression event_parameter_filter_expression = 2 [(google.api.field_behavior) = OPTIONAL]; + AudienceFilterExpression event_parameter_filter_expression = 2 + [(google.api.field_behavior) = OPTIONAL]; } // A logical expression of Audience dimension, metric, or event filters. @@ -252,7 +245,8 @@ message AudienceSimpleFilter { (google.api.field_behavior) = IMMUTABLE ]; - // Required. Immutable. A logical expression of Audience dimension, metric, or event filters. + // Required. Immutable. A logical expression of Audience dimension, metric, or + // event filters. AudienceFilterExpression filter_expression = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -271,21 +265,22 @@ message AudienceSequenceFilter { (google.api.field_behavior) = IMMUTABLE ]; - // Optional. If true, the event satisfying this step must be the very next event - // after the event satisfying the last step. If unset or false, this + // Optional. If true, the event satisfying this step must be the very next + // event after the event satisfying the last step. If unset or false, this // step indirectly follows the prior step; for example, there may be // events between the prior step and this step. It is ignored for the // first step. bool immediately_follows = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. When set, this step must be satisfied within the constraint_duration of - // the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not - // set, there is no duration requirement (the duration is effectively - // unlimited). It is ignored for the first step. - google.protobuf.Duration constraint_duration = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. When set, this step must be satisfied within the + // constraint_duration of the previous step (i.e., t[i] - t[i-1] <= + // constraint_duration). If not set, there is no duration requirement (the + // duration is effectively unlimited). It is ignored for the first step. + google.protobuf.Duration constraint_duration = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Required. Immutable. A logical expression of Audience dimension, metric, or event filters in - // each step. + // Required. Immutable. A logical expression of Audience dimension, metric, + // or event filters in each step. AudienceFilterExpression filter_expression = 4 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -299,11 +294,13 @@ message AudienceSequenceFilter { ]; // Optional. Defines the time period in which the whole sequence must occur. - google.protobuf.Duration sequence_maximum_duration = 2 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration sequence_maximum_duration = 2 + [(google.api.field_behavior) = OPTIONAL]; - // Required. An ordered sequence of steps. A user must complete each step in order to - // join the sequence filter. - repeated AudienceSequenceStep sequence_steps = 3 [(google.api.field_behavior) = REQUIRED]; + // Required. An ordered sequence of steps. A user must complete each step in + // order to join the sequence filter. + repeated AudienceSequenceStep sequence_steps = 3 + [(google.api.field_behavior) = REQUIRED]; } // A clause for defining either a simple or sequence filter. A filter can be @@ -389,28 +386,31 @@ message Audience { // Required. The description of the Audience. string description = 3 [(google.api.field_behavior) = REQUIRED]; - // Required. Immutable. The duration a user should stay in an Audience. It cannot be set to more - // than 540 days. + // Required. Immutable. The duration a user should stay in an Audience. It + // cannot be set to more than 540 days. int32 membership_duration_days = 4 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; - // Output only. It is automatically set by GA to false if this is an NPA Audience and is - // excluded from ads personalization. - bool ads_personalization_enabled = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. It is automatically set by GA to false if this is an NPA + // Audience and is excluded from ads personalization. + bool ads_personalization_enabled = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Specifies an event to log when a user joins the Audience. If not set, no - // event is logged when a user joins the Audience. - AudienceEventTrigger event_trigger = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies an event to log when a user joins the Audience. If not + // set, no event is logged when a user joins the Audience. + AudienceEventTrigger event_trigger = 6 + [(google.api.field_behavior) = OPTIONAL]; - // Immutable. Specifies how long an exclusion lasts for users that meet the exclusion - // filter. It is applied to all EXCLUDE filter clauses and is ignored when - // there is no EXCLUDE filter clause in the Audience. - AudienceExclusionDurationMode exclusion_duration_mode = 7 [(google.api.field_behavior) = IMMUTABLE]; + // Immutable. Specifies how long an exclusion lasts for users that meet the + // exclusion filter. It is applied to all EXCLUDE filter clauses and is + // ignored when there is no EXCLUDE filter clause in the Audience. + AudienceExclusionDurationMode exclusion_duration_mode = 7 + [(google.api.field_behavior) = IMMUTABLE]; - // Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed - // together. + // Required. Immutable. Unordered list. Filter clauses that define the + // Audience. All clauses will be AND’ed together. repeated AudienceFilterClause filter_clauses = 8 [ (google.api.field_behavior) = IMMUTABLE, (google.api.field_behavior) = REQUIRED, diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/expanded_data_set.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/expanded_data_set.proto new file mode 100644 index 000000000000..e9a0a3951125 --- /dev/null +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/expanded_data_set.proto @@ -0,0 +1,151 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; +option java_multiple_files = true; +option java_outer_classname = "ExpandedDataSetProto"; +option java_package = "com.google.analytics.admin.v1alpha"; + +// A specific filter for a single dimension +message ExpandedDataSetFilter { + // A filter for a string-type dimension that matches a particular pattern. + message StringFilter { + // The match type for the string filter. + enum MatchType { + // Unspecified + MATCH_TYPE_UNSPECIFIED = 0; + + // Exact match of the string value. + EXACT = 1; + + // Contains the string value. + CONTAINS = 2; + } + + // Required. The match type for the string filter. + MatchType match_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The string value to be matched against. + string value = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, the match is case-sensitive. If false, the match is + // case-insensitive. + // Must be true when match_type is EXACT. + // Must be false when match_type is CONTAINS. + bool case_sensitive = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // A filter for a string dimension that matches a particular list of options. + message InListFilter { + // Required. The list of possible string values to match against. Must be + // non-empty. + repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, the match is case-sensitive. If false, the match is + // case-insensitive. + // Must be true. + bool case_sensitive = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // One of the above filters. + oneof one_filter { + // A filter for a string-type dimension that matches a particular pattern. + StringFilter string_filter = 2; + + // A filter for a string dimension that matches a particular list of + // options. + InListFilter in_list_filter = 3; + } + + // Required. The dimension name to filter. + string field_name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// A logical expression of EnhancedDataSet dimension filters. +message ExpandedDataSetFilterExpression { + // The expression applied to a filter. + oneof expr { + // A list of expressions to be AND’ed together. It must contain a + // ExpandedDataSetFilterExpression with either not_expression or + // dimension_filter. This must be set for the top level + // ExpandedDataSetFilterExpression. + ExpandedDataSetFilterExpressionList and_group = 1; + + // A filter expression to be NOT'ed (i.e., inverted, complemented). It + // must include a dimension_filter. This cannot be set on the + // top level ExpandedDataSetFilterExpression. + ExpandedDataSetFilterExpression not_expression = 2; + + // A filter on a single dimension. This cannot be set on the top + // level ExpandedDataSetFilterExpression. + ExpandedDataSetFilter filter = 3; + } +} + +// A list of ExpandedDataSet filter expressions. +message ExpandedDataSetFilterExpressionList { + // A list of ExpandedDataSet filter expressions. + repeated ExpandedDataSetFilterExpression filter_expressions = 1; +} + +// A resource message representing a GA4 ExpandedDataSet. +message ExpandedDataSet { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/ExpandedDataSet" + pattern: "properties/{property}/expandedDataSets/{expanded_data_set}" + }; + + // Output only. The resource name for this ExpandedDataSet resource. + // Format: properties/{property_id}/expandedDataSets/{expanded_data_set} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the ExpandedDataSet. + // Max 200 chars. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the ExpandedDataSet. + // Max 50 chars. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. The list of dimensions included in the ExpandedDataSet. + // See the [API + // Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + // for the list of dimension names. + repeated string dimension_names = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The list of metrics included in the ExpandedDataSet. + // See the [API + // Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + // for the list of dimension names. + repeated string metric_names = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. A logical expression of ExpandedDataSet filters applied to + // dimension included in the ExpandedDataSet. This filter is used to reduce + // the number of rows and thus the change of encountering `other row`. + ExpandedDataSetFilterExpression dimension_filter_expression = 6 + [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when expanded data set began (or will begin) collecing + // data. + google.protobuf.Timestamp data_collection_start_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index 337c7fe65fb4..eb968d9c8a50 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.analytics.admin.v1alpha; +import "google/analytics/admin/v1alpha/expanded_data_set.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; @@ -202,6 +203,12 @@ enum ChangeHistoryResourceType { // AttributionSettings resource ATTRIBUTION_SETTINGS = 20; + + // ExpandedDataSet resource + EXPANDED_DATA_SET = 21; + + // ChannelGroup resource + CHANNEL_GROUP = 22; } // Status of the Google Signals settings (i.e., whether this feature has been @@ -306,10 +313,12 @@ message Account { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this account was originally created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when account payload fields were last updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Human-readable display name for this account. string display_name = 4 [(google.api.field_behavior) = REQUIRED]; @@ -334,17 +343,19 @@ message Property { // Example: "properties/1000" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. The property type for this Property resource. When creating a property, if - // the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be - // implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created - // via Google Analytics Admin API. + // Immutable. The property type for this Property resource. When creating a + // property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + // "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" + // types cannot yet be created via Google Analytics Admin API. PropertyType property_type = 14 [(google.api.field_behavior) = IMMUTABLE]; // Output only. Time when the entity was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when entity payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. Resource name of this property's logical parent. // @@ -362,9 +373,9 @@ message Property { // Example: AUTOMOTIVE, FOOD_AND_DRINK IndustryCategory industry_category = 6; - // Required. Reporting Time Zone, used as the day boundary for reports, regardless of - // where the data originates. If the time zone honors DST, Analytics will - // automatically adjust for the changes. + // Required. Reporting Time Zone, used as the day boundary for reports, + // regardless of where the data originates. If the time zone honors DST, + // Analytics will automatically adjust for the changes. // // NOTE: Changing the time zone only affects data going forward, and is not // applied retroactively. @@ -380,17 +391,20 @@ message Property { // Examples: "USD", "EUR", "JPY" string currency_code = 8; - // Output only. The Google Analytics service level that applies to this property. + // Output only. The Google Analytics service level that applies to this + // property. ServiceLevel service_level = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. If set, the time at which this property was trashed. If not set, then this - // property is not currently in the trash can. - google.protobuf.Timestamp delete_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If set, the time at which this property was trashed. If not + // set, then this property is not currently in the trash can. + google.protobuf.Timestamp delete_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. If set, the time at which this trashed property will be permanently - // deleted. If not set, then this property is not currently in the trash can - // and is not slated to be deleted. - google.protobuf.Timestamp expire_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If set, the time at which this trashed property will be + // permanently deleted. If not set, then this property is not currently in the + // trash can and is not slated to be deleted. + google.protobuf.Timestamp expire_time = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. The resource name of the parent account // Format: accounts/{account_id} @@ -500,10 +514,12 @@ message DataStream { string display_name = 3; // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A resource message representing a user's permissions on an Account or @@ -572,9 +588,9 @@ message FirebaseLink { // Output only. Example format: properties/1234/firebaseLinks/5678 string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. Firebase project resource name. When creating a FirebaseLink, you may - // provide this resource name using either a project number or project ID. - // Once this resource has been created, returned FirebaseLinks will always + // Immutable. Firebase project resource name. When creating a FirebaseLink, + // you may provide this resource name using either a project number or project + // ID. Once this resource has been created, returned FirebaseLinks will always // have a project_name that contains a project number. // // Format: 'projects/{project number}' @@ -582,7 +598,8 @@ message FirebaseLink { string project = 2 [(google.api.field_behavior) = IMMUTABLE]; // Output only. Time when this FirebaseLink was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Read-only resource with the tag for sending data from a website to a @@ -598,8 +615,8 @@ message GlobalSiteTag { // Example: "properties/123/dataStreams/456/globalSiteTag" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of - // every webpage to measure. + // Immutable. JavaScript code snippet to be pasted as the first item into the + // head tag of every webpage to measure. string snippet = 2 [(google.api.field_behavior) = IMMUTABLE]; } @@ -610,7 +627,8 @@ message GoogleAdsLink { pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" }; - // Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + // Output only. Format: + // properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} // // Note: googleAdsLinkId is not the Google Ads customer ID. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -628,10 +646,12 @@ message GoogleAdsLink { google.protobuf.BoolValue ads_personalization_enabled = 5; // Output only. Time when this link was originally created. - google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this link was last updated. - google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Email address of the user that created the link. // An empty string will be returned if the email address can't be retrieved. @@ -688,8 +708,8 @@ message AccountSummary { // Format: accounts/{account_id} // Example: "accounts/1000" string account = 2 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Account" - }]; + type: "analyticsadmin.googleapis.com/Account" + }]; // Display name for the account referred to in this account summary. string display_name = 3; @@ -704,8 +724,8 @@ message PropertySummary { // Format: properties/{property_id} // Example: "properties/1000" string property = 1 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Property" - }]; + type: "analyticsadmin.googleapis.com/Property" + }]; // Display name for the property referred to in this property summary. string display_name = 2; @@ -728,17 +748,16 @@ message MeasurementProtocolSecret { pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" }; - // Output only. Resource name of this secret. This secret may be a child of any type of - // stream. - // Format: + // Output only. Resource name of this secret. This secret may be a child of + // any type of stream. Format: // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Human-readable display name for this secret. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Output only. The measurement protocol secret value. Pass this value to the api_secret - // field of the Measurement Protocol API when sending hits to this + // Output only. The measurement protocol secret value. Pass this value to the + // api_secret field of the Measurement Protocol API when sending hits to this // secret's parent property. string secret_value = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -798,7 +817,8 @@ message ChangeHistoryChange { // A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in // change history. - DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + DisplayVideo360AdvertiserLinkProposal + display_video_360_advertiser_link_proposal = 10; // A snapshot of a ConversionEvent resource in change history. ConversionEvent conversion_event = 11; @@ -815,11 +835,20 @@ message ChangeHistoryChange { // A snapshot of a data retention settings resource in change history. DataRetentionSettings data_retention_settings = 15; + // A snapshot of a SearchAds360Link resource in change history. + SearchAds360Link search_ads_360_link = 16; + // A snapshot of a DataStream resource in change history. DataStream data_stream = 18; // A snapshot of AttributionSettings resource in change history. AttributionSettings attribution_settings = 20; + + // A snapshot of an ExpandedDataSet resource in change history. + ExpandedDataSet expanded_data_set = 21; + + // A snapshot of a BigQuery link resource in change history. + BigQueryLink bigquery_link = 23; } } @@ -845,8 +874,9 @@ message DisplayVideo360AdvertiserLink { pattern: "properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}" }; - // Output only. The resource name for this DisplayVideo360AdvertiserLink resource. - // Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} + // Output only. The resource name for this DisplayVideo360AdvertiserLink + // resource. Format: + // properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} // // Note: linkId is not the Display & Video 360 Advertiser ID string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -855,24 +885,27 @@ message DisplayVideo360AdvertiserLink { string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The display name of the Display & Video 360 Advertiser. - string advertiser_display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + string advertiser_display_name = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Enables personalized advertising features with this integration. // If this field is not set on create/update, it will be defaulted to true. google.protobuf.BoolValue ads_personalization_enabled = 4; - // Immutable. Enables the import of campaign data from Display & Video 360 into the GA4 - // property. After link creation, this can only be updated from the Display & - // Video 360 product. - // If this field is not set on create, it will be defaulted to true. - google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Enables the import of cost data from Display & Video 360 into the GA4 - // property. This can only be enabled if campaign_data_sharing_enabled is - // enabled. After link creation, this can only be updated from the Display & - // Video 360 product. - // If this field is not set on create, it will be defaulted to true. - google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(google.api.field_behavior) = IMMUTABLE]; + // Immutable. Enables the import of campaign data from Display & Video 360 + // into the GA4 property. After link creation, this can only be updated from + // the Display & Video 360 product. If this field is not set on create, it + // will be defaulted to true. + google.protobuf.BoolValue campaign_data_sharing_enabled = 5 + [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Enables the import of cost data from Display & Video 360 into + // the GA4 property. This can only be enabled if campaign_data_sharing_enabled + // is enabled. After link creation, this can only be updated from the Display + // & Video 360 product. If this field is not set on create, it will be + // defaulted to true. + google.protobuf.BoolValue cost_data_sharing_enabled = 6 + [(google.api.field_behavior) = IMMUTABLE]; } // A proposal for a link between a GA4 property and a Display & Video 360 @@ -887,8 +920,8 @@ message DisplayVideo360AdvertiserLinkProposal { pattern: "properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}" }; - // Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource. - // Format: + // Output only. The resource name for this + // DisplayVideo360AdvertiserLinkProposal resource. Format: // properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} // // Note: proposalId is not the Display & Video 360 Advertiser ID @@ -898,44 +931,97 @@ message DisplayVideo360AdvertiserLinkProposal { string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The status information for this link proposal. - LinkProposalStatusDetails link_proposal_status_details = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + LinkProposalStatusDetails link_proposal_status_details = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The display name of the Display & Video Advertiser. // Only populated for proposals that originated from Display & Video 360. - string advertiser_display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Input only. On a proposal being sent to Display & Video 360, this field must be set to - // the email address of an admin on the target advertiser. This is used to - // verify that the Google Analytics admin is aware of at least one admin on - // the Display & Video 360 Advertiser. This does not restrict approval of the - // proposal to a single user. Any admin on the Display & Video 360 Advertiser - // may approve the proposal. + string advertiser_display_name = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Input only. On a proposal being sent to Display & Video 360, this field + // must be set to the email address of an admin on the target advertiser. This + // is used to verify that the Google Analytics admin is aware of at least one + // admin on the Display & Video 360 Advertiser. This does not restrict + // approval of the proposal to a single user. Any admin on the Display & Video + // 360 Advertiser may approve the proposal. string validation_email = 5 [(google.api.field_behavior) = INPUT_ONLY]; // Immutable. Enables personalized advertising features with this integration. // If this field is not set on create, it will be defaulted to true. - google.protobuf.BoolValue ads_personalization_enabled = 6 [(google.api.field_behavior) = IMMUTABLE]; + google.protobuf.BoolValue ads_personalization_enabled = 6 + [(google.api.field_behavior) = IMMUTABLE]; // Immutable. Enables the import of campaign data from Display & Video 360. // If this field is not set on create, it will be defaulted to true. - google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(google.api.field_behavior) = IMMUTABLE]; + google.protobuf.BoolValue campaign_data_sharing_enabled = 7 + [(google.api.field_behavior) = IMMUTABLE]; // Immutable. Enables the import of cost data from Display & Video 360. // This can only be enabled if campaign_data_sharing_enabled is enabled. // If this field is not set on create, it will be defaulted to true. - google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(google.api.field_behavior) = IMMUTABLE]; + google.protobuf.BoolValue cost_data_sharing_enabled = 8 + [(google.api.field_behavior) = IMMUTABLE]; +} + +// A link between a GA4 property and a Search Ads 360 entity. +message SearchAds360Link { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/SearchAds360Link" + pattern: "properties/{property}/searchAds360Links/{search_ads_360_link}" + }; + + // Output only. The resource name for this SearchAds360Link resource. + // Format: properties/{propertyId}/searchAds360Links/{linkId} + // + // Note: linkId is not the Search Ads 360 advertiser ID + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. This field represents the Advertiser ID of the Search Ads 360 + // Advertiser. that has been linked. + string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Enables the import of campaign data from Search Ads 360 into the + // GA4 property. After link creation, this can only be updated from the Search + // Ads 360 product. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue campaign_data_sharing_enabled = 3 + [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Enables the import of cost data from Search Ads 360 to the GA4 + // property. This can only be enabled if campaign_data_sharing_enabled is + // enabled. After link creation, this can only be updated from + // the Search Ads 360 product. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue cost_data_sharing_enabled = 4 + [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The display name of the Search Ads 360 Advertiser. + // Allows users to easily identify the linked resource. + string advertiser_display_name = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Enables personalized advertising features with this integration. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue ads_personalization_enabled = 6; + + // Enables export of site stats with this integration. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue site_stats_sharing_enabled = 7; } // Status information for a link proposal. message LinkProposalStatusDetails { // Output only. The source of this proposal. - LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + LinkProposalInitiatingProduct link_proposal_initiating_product = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The email address of the user that proposed this linkage. string requestor_email = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The state of this proposal. - LinkProposalState link_proposal_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + LinkProposalState link_proposal_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A conversion event in a Google Analytics property. @@ -954,16 +1040,18 @@ message ConversionEvent { string event_name = 2 [(google.api.field_behavior) = IMMUTABLE]; // Output only. Time when this conversion event was created in the property. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. If set, this event can currently be deleted via DeleteConversionEvent. + // Output only. If set, this event can currently be deleted via + // DeleteConversionEvent. bool deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. If set to true, this conversion event refers to a custom event. If set to - // false, this conversion event refers to a default event in GA. Default - // events typically have special meaning in GA. Default events are usually - // created for you by the GA system, but in some cases can be created by - // property admins. Custom events count towards the maximum number of + // Output only. If set to true, this conversion event refers to a custom + // event. If set to false, this conversion event refers to a default event in + // GA. Default events typically have special meaning in GA. Default events are + // usually created for you by the GA system, but in some cases can be created + // by property admins. Custom events count towards the maximum number of // custom conversion events that may be created per property. bool custom = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -1024,14 +1112,15 @@ message CustomDimension { (google.api.field_behavior) = IMMUTABLE ]; - // Required. Display name for this custom dimension as shown in the Analytics UI. - // Max length of 82 characters, alphanumeric plus space and underscore + // Required. Display name for this custom dimension as shown in the Analytics + // UI. Max length of 82 characters, alphanumeric plus space and underscore // starting with a letter. Legacy system-generated display names may contain // square brackets, but updates to this field will never permit square // brackets. string display_name = 3 [(google.api.field_behavior) = REQUIRED]; - // Optional. Description for this custom dimension. Max length of 150 characters. + // Optional. Description for this custom dimension. Max length of 150 + // characters. string description = 4 [(google.api.field_behavior) = OPTIONAL]; // Required. Immutable. The scope of this dimension. @@ -1040,11 +1129,12 @@ message CustomDimension { (google.api.field_behavior) = IMMUTABLE ]; - // Optional. If set to true, sets this dimension as NPA and excludes it from ads - // personalization. + // Optional. If set to true, sets this dimension as NPA and excludes it from + // ads personalization. // // This is currently only supported by user-scoped custom dimensions. - bool disallow_ads_personalization = 6 [(google.api.field_behavior) = OPTIONAL]; + bool disallow_ads_personalization = 6 + [(google.api.field_behavior) = OPTIONAL]; } // A definition for a custom metric. @@ -1151,10 +1241,11 @@ message CustomMetric { (google.api.field_behavior) = IMMUTABLE ]; - // Optional. Types of restricted data that this metric may contain. Required for metrics - // with CURRENCY measurement unit. Must be empty for metrics with a - // non-CURRENCY measurement unit. - repeated RestrictedMetricType restricted_metric_type = 8 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Types of restricted data that this metric may contain. Required + // for metrics with CURRENCY measurement unit. Must be empty for metrics with + // a non-CURRENCY measurement unit. + repeated RestrictedMetricType restricted_metric_type = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Settings values for data retention. This is a singleton resource. @@ -1282,19 +1373,67 @@ message AttributionSettings { // Example: "properties/1000/attributionSettings" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The lookback window configuration for acquisition conversion events. - // The default window size is 30 days. - AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The lookback window configuration for acquisition conversion + // events. The default window size is 30 days. + AcquisitionConversionEventLookbackWindow + acquisition_conversion_event_lookback_window = 2 + [(google.api.field_behavior) = REQUIRED]; - // Required. The lookback window for all other, non-acquisition conversion events. - // The default window size is 90 days. - OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(google.api.field_behavior) = REQUIRED]; + // Required. The lookback window for all other, non-acquisition conversion + // events. The default window size is 90 days. + OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 + [(google.api.field_behavior) = REQUIRED]; - // Required. The reporting attribution model used to calculate conversion credit in this - // property's reports. + // Required. The reporting attribution model used to calculate conversion + // credit in this property's reports. // // Changing the attribution model will apply to both historical and future // data. These changes will be reflected in reports with conversion and // revenue data. User and session data will be unaffected. - ReportingAttributionModel reporting_attribution_model = 4 [(google.api.field_behavior) = REQUIRED]; + ReportingAttributionModel reporting_attribution_model = 4 + [(google.api.field_behavior) = REQUIRED]; +} + +// A link between a GA4 Property and BigQuery project. +message BigQueryLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/BigQueryLink" + pattern: "properties/{property}/bigQueryLinks/{bigquery_link}" + }; + + // Output only. Resource name of this BigQuery link. + // Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' + // Format: 'properties/1234/bigQueryLinks/abc567' + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The linked Google Cloud project. When creating a BigQueryLink, + // you may provide this resource name using either a project number or project + // ID. Once this resource has been created, the returned project will always + // have a project that contains a project number. + // Format: 'projects/{project number}' + // Example: 'projects/1234' + string project = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when the link was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // If set true, enables daily data export to the linked Google Cloud project. + bool daily_export_enabled = 4; + + // If set true, enables streaming export to the linked Google Cloud project. + bool streaming_export_enabled = 5; + + // If set true, exported data will include advertising identifiers for mobile + // app streams. + bool include_advertising_id = 6; + + // The list of streams under the parent property for which data will be + // exported. + // Format: properties/{property_id}/dataStreams/{stream_id} + // Example: ['properties/1000/dataStreams/2000'] + repeated string export_streams = 7; + + // The list of event names that will be excluded from exports. + repeated string excluded_events = 8; } diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index fd8e8d16d5a3..de830cad46da 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -2044,6 +2044,9 @@ export namespace google { /** AccessQuota serverErrorsPerProjectPerHour */ serverErrorsPerProjectPerHour?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + + /** AccessQuota tokensPerProjectPerHour */ + tokensPerProjectPerHour?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); } /** Represents an AccessQuota. */ @@ -2067,6 +2070,9 @@ export namespace google { /** AccessQuota serverErrorsPerProjectPerHour. */ public serverErrorsPerProjectPerHour?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + /** AccessQuota tokensPerProjectPerHour. */ + public tokensPerProjectPerHour?: (google.analytics.admin.v1alpha.IAccessQuotaStatus|null); + /** * Creates a new AccessQuota instance using the specified properties. * @param [properties] Properties to set @@ -3332,6 +3338,76 @@ export namespace google { */ public archiveAudience(request: google.analytics.admin.v1alpha.IArchiveAudienceRequest): Promise; + /** + * Calls GetSearchAds360Link. + * @param request GetSearchAds360LinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchAds360Link + */ + public getSearchAds360Link(request: google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetSearchAds360LinkCallback): void; + + /** + * Calls GetSearchAds360Link. + * @param request GetSearchAds360LinkRequest message or plain object + * @returns Promise + */ + public getSearchAds360Link(request: google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest): Promise; + + /** + * Calls ListSearchAds360Links. + * @param request ListSearchAds360LinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSearchAds360LinksResponse + */ + public listSearchAds360Links(request: google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListSearchAds360LinksCallback): void; + + /** + * Calls ListSearchAds360Links. + * @param request ListSearchAds360LinksRequest message or plain object + * @returns Promise + */ + public listSearchAds360Links(request: google.analytics.admin.v1alpha.IListSearchAds360LinksRequest): Promise; + + /** + * Calls CreateSearchAds360Link. + * @param request CreateSearchAds360LinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchAds360Link + */ + public createSearchAds360Link(request: google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSearchAds360LinkCallback): void; + + /** + * Calls CreateSearchAds360Link. + * @param request CreateSearchAds360LinkRequest message or plain object + * @returns Promise + */ + public createSearchAds360Link(request: google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest): Promise; + + /** + * Calls DeleteSearchAds360Link. + * @param request DeleteSearchAds360LinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteSearchAds360Link(request: google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSearchAds360LinkCallback): void; + + /** + * Calls DeleteSearchAds360Link. + * @param request DeleteSearchAds360LinkRequest message or plain object + * @returns Promise + */ + public deleteSearchAds360Link(request: google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest): Promise; + + /** + * Calls UpdateSearchAds360Link. + * @param request UpdateSearchAds360LinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchAds360Link + */ + public updateSearchAds360Link(request: google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSearchAds360LinkCallback): void; + + /** + * Calls UpdateSearchAds360Link. + * @param request UpdateSearchAds360LinkRequest message or plain object + * @returns Promise + */ + public updateSearchAds360Link(request: google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest): Promise; + /** * Calls GetAttributionSettings. * @param request GetAttributionSettingsRequest message or plain object @@ -3373,6 +3449,62 @@ export namespace google { * @returns Promise */ public runAccessReport(request: google.analytics.admin.v1alpha.IRunAccessReportRequest): Promise; + + /** + * Calls SetAutomatedGa4ConfigurationOptOut. + * @param request SetAutomatedGa4ConfigurationOptOutRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SetAutomatedGa4ConfigurationOptOutResponse + */ + public setAutomatedGa4ConfigurationOptOut(request: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.SetAutomatedGa4ConfigurationOptOutCallback): void; + + /** + * Calls SetAutomatedGa4ConfigurationOptOut. + * @param request SetAutomatedGa4ConfigurationOptOutRequest message or plain object + * @returns Promise + */ + public setAutomatedGa4ConfigurationOptOut(request: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest): Promise; + + /** + * Calls FetchAutomatedGa4ConfigurationOptOut. + * @param request FetchAutomatedGa4ConfigurationOptOutRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FetchAutomatedGa4ConfigurationOptOutResponse + */ + public fetchAutomatedGa4ConfigurationOptOut(request: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.FetchAutomatedGa4ConfigurationOptOutCallback): void; + + /** + * Calls FetchAutomatedGa4ConfigurationOptOut. + * @param request FetchAutomatedGa4ConfigurationOptOutRequest message or plain object + * @returns Promise + */ + public fetchAutomatedGa4ConfigurationOptOut(request: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest): Promise; + + /** + * Calls GetBigQueryLink. + * @param request GetBigQueryLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BigQueryLink + */ + public getBigQueryLink(request: google.analytics.admin.v1alpha.IGetBigQueryLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetBigQueryLinkCallback): void; + + /** + * Calls GetBigQueryLink. + * @param request GetBigQueryLinkRequest message or plain object + * @returns Promise + */ + public getBigQueryLink(request: google.analytics.admin.v1alpha.IGetBigQueryLinkRequest): Promise; + + /** + * Calls ListBigQueryLinks. + * @param request ListBigQueryLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListBigQueryLinksResponse + */ + public listBigQueryLinks(request: google.analytics.admin.v1alpha.IListBigQueryLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListBigQueryLinksCallback): void; + + /** + * Calls ListBigQueryLinks. + * @param request ListBigQueryLinksRequest message or plain object + * @returns Promise + */ + public listBigQueryLinks(request: google.analytics.admin.v1alpha.IListBigQueryLinksRequest): Promise; } namespace AnalyticsAdminService { @@ -3909,6 +4041,41 @@ export namespace google { */ type ArchiveAudienceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getSearchAds360Link}. + * @param error Error, if any + * @param [response] SearchAds360Link + */ + type GetSearchAds360LinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.SearchAds360Link) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listSearchAds360Links}. + * @param error Error, if any + * @param [response] ListSearchAds360LinksResponse + */ + type ListSearchAds360LinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createSearchAds360Link}. + * @param error Error, if any + * @param [response] SearchAds360Link + */ + type CreateSearchAds360LinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.SearchAds360Link) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteSearchAds360Link}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSearchAds360LinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateSearchAds360Link}. + * @param error Error, if any + * @param [response] SearchAds360Link + */ + type UpdateSearchAds360LinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.SearchAds360Link) => void; + /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAttributionSettings}. * @param error Error, if any @@ -3929,6 +4096,34 @@ export namespace google { * @param [response] RunAccessReportResponse */ type RunAccessReportCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.RunAccessReportResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|setAutomatedGa4ConfigurationOptOut}. + * @param error Error, if any + * @param [response] SetAutomatedGa4ConfigurationOptOutResponse + */ + type SetAutomatedGa4ConfigurationOptOutCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|fetchAutomatedGa4ConfigurationOptOut}. + * @param error Error, if any + * @param [response] FetchAutomatedGa4ConfigurationOptOutResponse + */ + type FetchAutomatedGa4ConfigurationOptOutCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getBigQueryLink}. + * @param error Error, if any + * @param [response] BigQueryLink + */ + type GetBigQueryLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.BigQueryLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listBigQueryLinks}. + * @param error Error, if any + * @param [response] ListBigQueryLinksResponse + */ + type ListBigQueryLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListBigQueryLinksResponse) => void; } /** Properties of a RunAccessReportRequest. */ @@ -11565,8098 +11760,10375 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateCustomDimensionRequest. */ - interface ICreateCustomDimensionRequest { - - /** CreateCustomDimensionRequest parent */ - parent?: (string|null); + /** Properties of a GetSearchAds360LinkRequest. */ + interface IGetSearchAds360LinkRequest { - /** CreateCustomDimensionRequest customDimension */ - customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** GetSearchAds360LinkRequest name */ + name?: (string|null); } - /** Represents a CreateCustomDimensionRequest. */ - class CreateCustomDimensionRequest implements ICreateCustomDimensionRequest { + /** Represents a GetSearchAds360LinkRequest. */ + class GetSearchAds360LinkRequest implements IGetSearchAds360LinkRequest { /** - * Constructs a new CreateCustomDimensionRequest. + * Constructs a new GetSearchAds360LinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest); - - /** CreateCustomDimensionRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest); - /** CreateCustomDimensionRequest customDimension. */ - public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** GetSearchAds360LinkRequest name. */ + public name: string; /** - * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * Creates a new GetSearchAds360LinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomDimensionRequest instance + * @returns GetSearchAds360LinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest): google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; /** - * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. - * @param message CreateCustomDimensionRequest message or plain object to encode + * Encodes the specified GetSearchAds360LinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.verify|verify} messages. + * @param message GetSearchAds360LinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. - * @param message CreateCustomDimensionRequest message or plain object to encode + * Encodes the specified GetSearchAds360LinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.verify|verify} messages. + * @param message GetSearchAds360LinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a GetSearchAds360LinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCustomDimensionRequest + * @returns GetSearchAds360LinkRequest * @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.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSearchAds360LinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCustomDimensionRequest + * @returns GetSearchAds360LinkRequest * @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.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; /** - * Verifies a CreateCustomDimensionRequest message. + * Verifies a GetSearchAds360LinkRequest 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 CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSearchAds360LinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCustomDimensionRequest + * @returns GetSearchAds360LinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; /** - * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. - * @param message CreateCustomDimensionRequest + * Creates a plain object from a GetSearchAds360LinkRequest message. Also converts values to other types if specified. + * @param message GetSearchAds360LinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetSearchAds360LinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomDimensionRequest to JSON. + * Converts this GetSearchAds360LinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateCustomDimensionRequest + * Gets the default type url for GetSearchAds360LinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateCustomDimensionRequest. */ - interface IUpdateCustomDimensionRequest { + /** Properties of a ListSearchAds360LinksRequest. */ + interface IListSearchAds360LinksRequest { - /** UpdateCustomDimensionRequest customDimension */ - customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** ListSearchAds360LinksRequest parent */ + parent?: (string|null); - /** UpdateCustomDimensionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListSearchAds360LinksRequest pageSize */ + pageSize?: (number|null); + + /** ListSearchAds360LinksRequest pageToken */ + pageToken?: (string|null); } - /** Represents an UpdateCustomDimensionRequest. */ - class UpdateCustomDimensionRequest implements IUpdateCustomDimensionRequest { + /** Represents a ListSearchAds360LinksRequest. */ + class ListSearchAds360LinksRequest implements IListSearchAds360LinksRequest { /** - * Constructs a new UpdateCustomDimensionRequest. + * Constructs a new ListSearchAds360LinksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListSearchAds360LinksRequest); - /** UpdateCustomDimensionRequest customDimension. */ - public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + /** ListSearchAds360LinksRequest parent. */ + public parent: string; - /** UpdateCustomDimensionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListSearchAds360LinksRequest pageSize. */ + public pageSize: number; + + /** ListSearchAds360LinksRequest pageToken. */ + public pageToken: string; /** - * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * Creates a new ListSearchAds360LinksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCustomDimensionRequest instance + * @returns ListSearchAds360LinksRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListSearchAds360LinksRequest): google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; /** - * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. - * @param message UpdateCustomDimensionRequest message or plain object to encode + * Encodes the specified ListSearchAds360LinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.verify|verify} messages. + * @param message ListSearchAds360LinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. - * @param message UpdateCustomDimensionRequest message or plain object to encode + * Encodes the specified ListSearchAds360LinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.verify|verify} messages. + * @param message ListSearchAds360LinksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a ListSearchAds360LinksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateCustomDimensionRequest + * @returns ListSearchAds360LinksRequest * @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.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSearchAds360LinksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCustomDimensionRequest + * @returns ListSearchAds360LinksRequest * @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.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; /** - * Verifies an UpdateCustomDimensionRequest message. + * Verifies a ListSearchAds360LinksRequest 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 an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSearchAds360LinksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCustomDimensionRequest + * @returns ListSearchAds360LinksRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; /** - * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. - * @param message UpdateCustomDimensionRequest + * Creates a plain object from a ListSearchAds360LinksRequest message. Also converts values to other types if specified. + * @param message ListSearchAds360LinksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListSearchAds360LinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCustomDimensionRequest to JSON. + * Converts this ListSearchAds360LinksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateCustomDimensionRequest + * Gets the default type url for ListSearchAds360LinksRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCustomDimensionsRequest. */ - interface IListCustomDimensionsRequest { - - /** ListCustomDimensionsRequest parent */ - parent?: (string|null); + /** Properties of a ListSearchAds360LinksResponse. */ + interface IListSearchAds360LinksResponse { - /** ListCustomDimensionsRequest pageSize */ - pageSize?: (number|null); + /** ListSearchAds360LinksResponse searchAds_360Links */ + searchAds_360Links?: (google.analytics.admin.v1alpha.ISearchAds360Link[]|null); - /** ListCustomDimensionsRequest pageToken */ - pageToken?: (string|null); + /** ListSearchAds360LinksResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListCustomDimensionsRequest. */ - class ListCustomDimensionsRequest implements IListCustomDimensionsRequest { + /** Represents a ListSearchAds360LinksResponse. */ + class ListSearchAds360LinksResponse implements IListSearchAds360LinksResponse { /** - * Constructs a new ListCustomDimensionsRequest. + * Constructs a new ListSearchAds360LinksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest); - - /** ListCustomDimensionsRequest parent. */ - public parent: string; + constructor(properties?: google.analytics.admin.v1alpha.IListSearchAds360LinksResponse); - /** ListCustomDimensionsRequest pageSize. */ - public pageSize: number; + /** ListSearchAds360LinksResponse searchAds_360Links. */ + public searchAds_360Links: google.analytics.admin.v1alpha.ISearchAds360Link[]; - /** ListCustomDimensionsRequest pageToken. */ - public pageToken: string; + /** ListSearchAds360LinksResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * Creates a new ListSearchAds360LinksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomDimensionsRequest instance + * @returns ListSearchAds360LinksResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListSearchAds360LinksResponse): google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; /** - * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. - * @param message ListCustomDimensionsRequest message or plain object to encode + * Encodes the specified ListSearchAds360LinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.verify|verify} messages. + * @param message ListSearchAds360LinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListSearchAds360LinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. - * @param message ListCustomDimensionsRequest message or plain object to encode + * Encodes the specified ListSearchAds360LinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.verify|verify} messages. + * @param message ListSearchAds360LinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListSearchAds360LinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * Decodes a ListSearchAds360LinksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomDimensionsRequest + * @returns ListSearchAds360LinksResponse * @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.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSearchAds360LinksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomDimensionsRequest + * @returns ListSearchAds360LinksResponse * @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.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; /** - * Verifies a ListCustomDimensionsRequest message. + * Verifies a ListSearchAds360LinksResponse 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 ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSearchAds360LinksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomDimensionsRequest + * @returns ListSearchAds360LinksResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; /** - * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. - * @param message ListCustomDimensionsRequest + * Creates a plain object from a ListSearchAds360LinksResponse message. Also converts values to other types if specified. + * @param message ListSearchAds360LinksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListSearchAds360LinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomDimensionsRequest to JSON. + * Converts this ListSearchAds360LinksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCustomDimensionsRequest + * Gets the default type url for ListSearchAds360LinksResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCustomDimensionsResponse. */ - interface IListCustomDimensionsResponse { + /** Properties of a CreateSearchAds360LinkRequest. */ + interface ICreateSearchAds360LinkRequest { - /** ListCustomDimensionsResponse customDimensions */ - customDimensions?: (google.analytics.admin.v1alpha.ICustomDimension[]|null); + /** CreateSearchAds360LinkRequest parent */ + parent?: (string|null); - /** ListCustomDimensionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateSearchAds360LinkRequest searchAds_360Link */ + searchAds_360Link?: (google.analytics.admin.v1alpha.ISearchAds360Link|null); } - /** Represents a ListCustomDimensionsResponse. */ - class ListCustomDimensionsResponse implements IListCustomDimensionsResponse { + /** Represents a CreateSearchAds360LinkRequest. */ + class CreateSearchAds360LinkRequest implements ICreateSearchAds360LinkRequest { /** - * Constructs a new ListCustomDimensionsResponse. + * Constructs a new CreateSearchAds360LinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse); + constructor(properties?: google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest); - /** ListCustomDimensionsResponse customDimensions. */ - public customDimensions: google.analytics.admin.v1alpha.ICustomDimension[]; + /** CreateSearchAds360LinkRequest parent. */ + public parent: string; - /** ListCustomDimensionsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateSearchAds360LinkRequest searchAds_360Link. */ + public searchAds_360Link?: (google.analytics.admin.v1alpha.ISearchAds360Link|null); /** - * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * Creates a new CreateSearchAds360LinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomDimensionsResponse instance + * @returns CreateSearchAds360LinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static create(properties?: google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest): google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; /** - * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. - * @param message ListCustomDimensionsResponse message or plain object to encode + * Encodes the specified CreateSearchAds360LinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.verify|verify} messages. + * @param message CreateSearchAds360LinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. - * @param message ListCustomDimensionsResponse message or plain object to encode + * Encodes the specified CreateSearchAds360LinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.verify|verify} messages. + * @param message CreateSearchAds360LinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * Decodes a CreateSearchAds360LinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomDimensionsResponse + * @returns CreateSearchAds360LinkRequest * @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.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateSearchAds360LinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomDimensionsResponse + * @returns CreateSearchAds360LinkRequest * @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.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; /** - * Verifies a ListCustomDimensionsResponse message. + * Verifies a CreateSearchAds360LinkRequest 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 ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSearchAds360LinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomDimensionsResponse + * @returns CreateSearchAds360LinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; /** - * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. - * @param message ListCustomDimensionsResponse + * Creates a plain object from a CreateSearchAds360LinkRequest message. Also converts values to other types if specified. + * @param message CreateSearchAds360LinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomDimensionsResponse to JSON. + * Converts this CreateSearchAds360LinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCustomDimensionsResponse + * Gets the default type url for CreateSearchAds360LinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ArchiveCustomDimensionRequest. */ - interface IArchiveCustomDimensionRequest { + /** Properties of a DeleteSearchAds360LinkRequest. */ + interface IDeleteSearchAds360LinkRequest { - /** ArchiveCustomDimensionRequest name */ + /** DeleteSearchAds360LinkRequest name */ name?: (string|null); } - /** Represents an ArchiveCustomDimensionRequest. */ - class ArchiveCustomDimensionRequest implements IArchiveCustomDimensionRequest { + /** Represents a DeleteSearchAds360LinkRequest. */ + class DeleteSearchAds360LinkRequest implements IDeleteSearchAds360LinkRequest { /** - * Constructs a new ArchiveCustomDimensionRequest. + * Constructs a new DeleteSearchAds360LinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest); - /** ArchiveCustomDimensionRequest name. */ + /** DeleteSearchAds360LinkRequest name. */ public name: string; /** - * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * Creates a new DeleteSearchAds360LinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ArchiveCustomDimensionRequest instance + * @returns DeleteSearchAds360LinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest): google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; /** - * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. - * @param message ArchiveCustomDimensionRequest message or plain object to encode + * Encodes the specified DeleteSearchAds360LinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.verify|verify} messages. + * @param message DeleteSearchAds360LinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. - * @param message ArchiveCustomDimensionRequest message or plain object to encode + * Encodes the specified DeleteSearchAds360LinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.verify|verify} messages. + * @param message DeleteSearchAds360LinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * Decodes a DeleteSearchAds360LinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ArchiveCustomDimensionRequest + * @returns DeleteSearchAds360LinkRequest * @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.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSearchAds360LinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ArchiveCustomDimensionRequest + * @returns DeleteSearchAds360LinkRequest * @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.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; /** - * Verifies an ArchiveCustomDimensionRequest message. + * Verifies a DeleteSearchAds360LinkRequest 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 an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSearchAds360LinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ArchiveCustomDimensionRequest + * @returns DeleteSearchAds360LinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; /** - * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. - * @param message ArchiveCustomDimensionRequest + * Creates a plain object from a DeleteSearchAds360LinkRequest message. Also converts values to other types if specified. + * @param message DeleteSearchAds360LinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ArchiveCustomDimensionRequest to JSON. + * Converts this DeleteSearchAds360LinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ArchiveCustomDimensionRequest + * Gets the default type url for DeleteSearchAds360LinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetCustomDimensionRequest. */ - interface IGetCustomDimensionRequest { + /** Properties of an UpdateSearchAds360LinkRequest. */ + interface IUpdateSearchAds360LinkRequest { - /** GetCustomDimensionRequest name */ - name?: (string|null); + /** UpdateSearchAds360LinkRequest searchAds_360Link */ + searchAds_360Link?: (google.analytics.admin.v1alpha.ISearchAds360Link|null); + + /** UpdateSearchAds360LinkRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetCustomDimensionRequest. */ - class GetCustomDimensionRequest implements IGetCustomDimensionRequest { + /** Represents an UpdateSearchAds360LinkRequest. */ + class UpdateSearchAds360LinkRequest implements IUpdateSearchAds360LinkRequest { /** - * Constructs a new GetCustomDimensionRequest. + * Constructs a new UpdateSearchAds360LinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest); - /** GetCustomDimensionRequest name. */ - public name: string; + /** UpdateSearchAds360LinkRequest searchAds_360Link. */ + public searchAds_360Link?: (google.analytics.admin.v1alpha.ISearchAds360Link|null); + + /** UpdateSearchAds360LinkRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetCustomDimensionRequest instance using the specified properties. + * Creates a new UpdateSearchAds360LinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCustomDimensionRequest instance + * @returns UpdateSearchAds360LinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest): google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; /** - * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. - * @param message GetCustomDimensionRequest message or plain object to encode + * Encodes the specified UpdateSearchAds360LinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.verify|verify} messages. + * @param message UpdateSearchAds360LinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. - * @param message GetCustomDimensionRequest message or plain object to encode + * Encodes the specified UpdateSearchAds360LinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.verify|verify} messages. + * @param message UpdateSearchAds360LinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * Decodes an UpdateSearchAds360LinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCustomDimensionRequest + * @returns UpdateSearchAds360LinkRequest * @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.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSearchAds360LinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCustomDimensionRequest + * @returns UpdateSearchAds360LinkRequest * @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.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; /** - * Verifies a GetCustomDimensionRequest message. + * Verifies an UpdateSearchAds360LinkRequest 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 GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSearchAds360LinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCustomDimensionRequest + * @returns UpdateSearchAds360LinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomDimensionRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; /** - * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. - * @param message GetCustomDimensionRequest + * Creates a plain object from an UpdateSearchAds360LinkRequest message. Also converts values to other types if specified. + * @param message UpdateSearchAds360LinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCustomDimensionRequest to JSON. + * Converts this UpdateSearchAds360LinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCustomDimensionRequest + * Gets the default type url for UpdateSearchAds360LinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateCustomMetricRequest. */ - interface ICreateCustomMetricRequest { + /** Properties of a CreateCustomDimensionRequest. */ + interface ICreateCustomDimensionRequest { - /** CreateCustomMetricRequest parent */ + /** CreateCustomDimensionRequest parent */ parent?: (string|null); - /** CreateCustomMetricRequest customMetric */ - customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** CreateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); } - /** Represents a CreateCustomMetricRequest. */ - class CreateCustomMetricRequest implements ICreateCustomMetricRequest { + /** Represents a CreateCustomDimensionRequest. */ + class CreateCustomDimensionRequest implements ICreateCustomDimensionRequest { /** - * Constructs a new CreateCustomMetricRequest. + * Constructs a new CreateCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest); - /** CreateCustomMetricRequest parent. */ + /** CreateCustomDimensionRequest parent. */ public parent: string; - /** CreateCustomMetricRequest customMetric. */ - public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** CreateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); /** - * Creates a new CreateCustomMetricRequest instance using the specified properties. + * Creates a new CreateCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomMetricRequest instance + * @returns CreateCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. - * @param message CreateCustomMetricRequest message or plain object to encode + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. - * @param message CreateCustomMetricRequest message or plain object to encode + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * @param message CreateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCustomMetricRequest + * @returns CreateCustomDimensionRequest * @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.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCustomMetricRequest + * @returns CreateCustomDimensionRequest * @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.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Verifies a CreateCustomMetricRequest message. + * Verifies a CreateCustomDimensionRequest 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 CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCustomMetricRequest + * @returns CreateCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomDimensionRequest; /** - * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. - * @param message CreateCustomMetricRequest + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message CreateCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomMetricRequest to JSON. + * Converts this CreateCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateCustomMetricRequest + * Gets the default type url for CreateCustomDimensionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateCustomMetricRequest. */ - interface IUpdateCustomMetricRequest { + /** Properties of an UpdateCustomDimensionRequest. */ + interface IUpdateCustomDimensionRequest { - /** UpdateCustomMetricRequest customMetric */ - customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** UpdateCustomDimensionRequest customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); - /** UpdateCustomMetricRequest updateMask */ + /** UpdateCustomDimensionRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an UpdateCustomMetricRequest. */ - class UpdateCustomMetricRequest implements IUpdateCustomMetricRequest { + /** Represents an UpdateCustomDimensionRequest. */ + class UpdateCustomDimensionRequest implements IUpdateCustomDimensionRequest { /** - * Constructs a new UpdateCustomMetricRequest. + * Constructs a new UpdateCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest); - /** UpdateCustomMetricRequest customMetric. */ - public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + /** UpdateCustomDimensionRequest customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); - /** UpdateCustomMetricRequest updateMask. */ + /** UpdateCustomDimensionRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateCustomMetricRequest instance + * @returns UpdateCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. - * @param message UpdateCustomMetricRequest message or plain object to encode + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. - * @param message UpdateCustomMetricRequest message or plain object to encode + * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * @param message UpdateCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateCustomMetricRequest + * @returns UpdateCustomDimensionRequest * @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.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateCustomMetricRequest + * @returns UpdateCustomDimensionRequest * @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.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Verifies an UpdateCustomMetricRequest message. + * Verifies an UpdateCustomDimensionRequest 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 an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateCustomMetricRequest + * @returns UpdateCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; /** - * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. - * @param message UpdateCustomMetricRequest + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * @param message UpdateCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateCustomMetricRequest to JSON. + * Converts this UpdateCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateCustomMetricRequest + * Gets the default type url for UpdateCustomDimensionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCustomMetricsRequest. */ - interface IListCustomMetricsRequest { + /** Properties of a ListCustomDimensionsRequest. */ + interface IListCustomDimensionsRequest { - /** ListCustomMetricsRequest parent */ + /** ListCustomDimensionsRequest parent */ parent?: (string|null); - /** ListCustomMetricsRequest pageSize */ + /** ListCustomDimensionsRequest pageSize */ pageSize?: (number|null); - /** ListCustomMetricsRequest pageToken */ + /** ListCustomDimensionsRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListCustomMetricsRequest. */ - class ListCustomMetricsRequest implements IListCustomMetricsRequest { + /** Represents a ListCustomDimensionsRequest. */ + class ListCustomDimensionsRequest implements IListCustomDimensionsRequest { /** - * Constructs a new ListCustomMetricsRequest. + * Constructs a new ListCustomDimensionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest); - /** ListCustomMetricsRequest parent. */ + /** ListCustomDimensionsRequest parent. */ public parent: string; - /** ListCustomMetricsRequest pageSize. */ + /** ListCustomDimensionsRequest pageSize. */ public pageSize: number; - /** ListCustomMetricsRequest pageToken. */ + /** ListCustomDimensionsRequest pageToken. */ public pageToken: string; /** - * Creates a new ListCustomMetricsRequest instance using the specified properties. + * Creates a new ListCustomDimensionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomMetricsRequest instance + * @returns ListCustomDimensionsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsRequest): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. - * @param message ListCustomMetricsRequest message or plain object to encode + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. - * @param message ListCustomMetricsRequest message or plain object to encode + * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * @param message ListCustomDimensionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomMetricsRequest + * @returns ListCustomDimensionsRequest * @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.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomMetricsRequest + * @returns ListCustomDimensionsRequest * @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.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Verifies a ListCustomMetricsRequest message. + * Verifies a ListCustomDimensionsRequest 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 ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomMetricsRequest + * @returns ListCustomDimensionsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsRequest; /** - * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. - * @param message ListCustomMetricsRequest + * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. + * @param message ListCustomDimensionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomMetricsRequest to JSON. + * Converts this ListCustomDimensionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCustomMetricsRequest + * Gets the default type url for ListCustomDimensionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCustomMetricsResponse. */ - interface IListCustomMetricsResponse { + /** Properties of a ListCustomDimensionsResponse. */ + interface IListCustomDimensionsResponse { - /** ListCustomMetricsResponse customMetrics */ - customMetrics?: (google.analytics.admin.v1alpha.ICustomMetric[]|null); + /** ListCustomDimensionsResponse customDimensions */ + customDimensions?: (google.analytics.admin.v1alpha.ICustomDimension[]|null); - /** ListCustomMetricsResponse nextPageToken */ + /** ListCustomDimensionsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListCustomMetricsResponse. */ - class ListCustomMetricsResponse implements IListCustomMetricsResponse { + /** Represents a ListCustomDimensionsResponse. */ + class ListCustomDimensionsResponse implements IListCustomDimensionsResponse { /** - * Constructs a new ListCustomMetricsResponse. + * Constructs a new ListCustomDimensionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse); - /** ListCustomMetricsResponse customMetrics. */ - public customMetrics: google.analytics.admin.v1alpha.ICustomMetric[]; + /** ListCustomDimensionsResponse customDimensions. */ + public customDimensions: google.analytics.admin.v1alpha.ICustomDimension[]; - /** ListCustomMetricsResponse nextPageToken. */ + /** ListCustomDimensionsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListCustomMetricsResponse instance using the specified properties. + * Creates a new ListCustomDimensionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomMetricsResponse instance + * @returns ListCustomDimensionsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomDimensionsResponse): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. - * @param message ListCustomMetricsResponse message or plain object to encode + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. - * @param message ListCustomMetricsResponse message or plain object to encode + * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * @param message ListCustomDimensionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomDimensionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomMetricsResponse + * @returns ListCustomDimensionsResponse * @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.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomMetricsResponse + * @returns ListCustomDimensionsResponse * @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.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Verifies a ListCustomMetricsResponse message. + * Verifies a ListCustomDimensionsResponse 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 ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomMetricsResponse + * @returns ListCustomDimensionsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomDimensionsResponse; /** - * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. - * @param message ListCustomMetricsResponse + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * @param message ListCustomDimensionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomDimensionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomMetricsResponse to JSON. + * Converts this ListCustomDimensionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCustomMetricsResponse + * Gets the default type url for ListCustomDimensionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ArchiveCustomMetricRequest. */ - interface IArchiveCustomMetricRequest { + /** Properties of an ArchiveCustomDimensionRequest. */ + interface IArchiveCustomDimensionRequest { - /** ArchiveCustomMetricRequest name */ + /** ArchiveCustomDimensionRequest name */ name?: (string|null); } - /** Represents an ArchiveCustomMetricRequest. */ - class ArchiveCustomMetricRequest implements IArchiveCustomMetricRequest { + /** Represents an ArchiveCustomDimensionRequest. */ + class ArchiveCustomDimensionRequest implements IArchiveCustomDimensionRequest { /** - * Constructs a new ArchiveCustomMetricRequest. + * Constructs a new ArchiveCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest); + constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest); - /** ArchiveCustomMetricRequest name. */ + /** ArchiveCustomDimensionRequest name. */ public name: string; /** - * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ArchiveCustomMetricRequest instance + * @returns ArchiveCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. - * @param message ArchiveCustomMetricRequest message or plain object to encode + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. - * @param message ArchiveCustomMetricRequest message or plain object to encode + * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * @param message ArchiveCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ArchiveCustomMetricRequest + * @returns ArchiveCustomDimensionRequest * @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.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ArchiveCustomMetricRequest + * @returns ArchiveCustomDimensionRequest * @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.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Verifies an ArchiveCustomMetricRequest message. + * Verifies an ArchiveCustomDimensionRequest 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 an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ArchiveCustomMetricRequest + * @returns ArchiveCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; /** - * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. - * @param message ArchiveCustomMetricRequest + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ArchiveCustomMetricRequest to JSON. + * Converts this ArchiveCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ArchiveCustomMetricRequest + * Gets the default type url for ArchiveCustomDimensionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetCustomMetricRequest. */ - interface IGetCustomMetricRequest { + /** Properties of a GetCustomDimensionRequest. */ + interface IGetCustomDimensionRequest { - /** GetCustomMetricRequest name */ + /** GetCustomDimensionRequest name */ name?: (string|null); } - /** Represents a GetCustomMetricRequest. */ - class GetCustomMetricRequest implements IGetCustomMetricRequest { + /** Represents a GetCustomDimensionRequest. */ + class GetCustomDimensionRequest implements IGetCustomDimensionRequest { /** - * Constructs a new GetCustomMetricRequest. + * Constructs a new GetCustomDimensionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest); - /** GetCustomMetricRequest name. */ + /** GetCustomDimensionRequest name. */ public name: string; /** - * Creates a new GetCustomMetricRequest instance using the specified properties. + * Creates a new GetCustomDimensionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCustomMetricRequest instance + * @returns GetCustomDimensionRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest): google.analytics.admin.v1alpha.GetCustomMetricRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetCustomDimensionRequest): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. - * @param message GetCustomMetricRequest message or plain object to encode + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. - * @param message GetCustomMetricRequest message or plain object to encode + * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * @param message GetCustomDimensionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomDimensionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCustomMetricRequest + * @returns GetCustomDimensionRequest * @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.analytics.admin.v1alpha.GetCustomMetricRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCustomMetricRequest + * @returns GetCustomDimensionRequest * @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.analytics.admin.v1alpha.GetCustomMetricRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Verifies a GetCustomMetricRequest message. + * Verifies a GetCustomDimensionRequest 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 GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCustomMetricRequest + * @returns GetCustomDimensionRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomMetricRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomDimensionRequest; /** - * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. - * @param message GetCustomMetricRequest + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * @param message GetCustomDimensionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetCustomDimensionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCustomMetricRequest to JSON. + * Converts this GetCustomDimensionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCustomMetricRequest + * Gets the default type url for GetCustomDimensionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDataRetentionSettingsRequest. */ - interface IGetDataRetentionSettingsRequest { + /** Properties of a CreateCustomMetricRequest. */ + interface ICreateCustomMetricRequest { - /** GetDataRetentionSettingsRequest name */ - name?: (string|null); + /** CreateCustomMetricRequest parent */ + parent?: (string|null); + + /** CreateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); } - /** Represents a GetDataRetentionSettingsRequest. */ - class GetDataRetentionSettingsRequest implements IGetDataRetentionSettingsRequest { + /** Represents a CreateCustomMetricRequest. */ + class CreateCustomMetricRequest implements ICreateCustomMetricRequest { /** - * Constructs a new GetDataRetentionSettingsRequest. + * Constructs a new CreateCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest); - /** GetDataRetentionSettingsRequest name. */ - public name: string; + /** CreateCustomMetricRequest parent. */ + public parent: string; + + /** CreateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); /** - * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. + * Creates a new CreateCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataRetentionSettingsRequest instance + * @returns CreateCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateCustomMetricRequest): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. - * @param message GetDataRetentionSettingsRequest message or plain object to encode + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. - * @param message GetDataRetentionSettingsRequest message or plain object to encode + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * @param message CreateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDataRetentionSettingsRequest + * @returns CreateCustomMetricRequest * @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.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDataRetentionSettingsRequest + * @returns CreateCustomMetricRequest * @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.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Verifies a GetDataRetentionSettingsRequest message. + * Verifies a CreateCustomMetricRequest 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 GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDataRetentionSettingsRequest + * @returns CreateCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateCustomMetricRequest; /** - * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. - * @param message GetDataRetentionSettingsRequest + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * @param message CreateCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDataRetentionSettingsRequest to JSON. + * Converts this CreateCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDataRetentionSettingsRequest + * Gets the default type url for CreateCustomMetricRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateDataRetentionSettingsRequest. */ - interface IUpdateDataRetentionSettingsRequest { + /** Properties of an UpdateCustomMetricRequest. */ + interface IUpdateCustomMetricRequest { - /** UpdateDataRetentionSettingsRequest dataRetentionSettings */ - dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + /** UpdateCustomMetricRequest customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - /** UpdateDataRetentionSettingsRequest updateMask */ + /** UpdateCustomMetricRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an UpdateDataRetentionSettingsRequest. */ - class UpdateDataRetentionSettingsRequest implements IUpdateDataRetentionSettingsRequest { + /** Represents an UpdateCustomMetricRequest. */ + class UpdateCustomMetricRequest implements IUpdateCustomMetricRequest { /** - * Constructs a new UpdateDataRetentionSettingsRequest. + * Constructs a new UpdateCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest); - /** UpdateDataRetentionSettingsRequest dataRetentionSettings. */ - public dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + /** UpdateCustomMetricRequest customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - /** UpdateDataRetentionSettingsRequest updateMask. */ + /** UpdateCustomMetricRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. + * Creates a new UpdateCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDataRetentionSettingsRequest instance + * @returns UpdateCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. - * @param message UpdateDataRetentionSettingsRequest message or plain object to encode + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. - * @param message UpdateDataRetentionSettingsRequest message or plain object to encode + * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * @param message UpdateCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDataRetentionSettingsRequest + * @returns UpdateCustomMetricRequest * @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.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDataRetentionSettingsRequest + * @returns UpdateCustomMetricRequest * @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.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Verifies an UpdateDataRetentionSettingsRequest message. + * Verifies an UpdateCustomMetricRequest 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 an UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDataRetentionSettingsRequest + * @returns UpdateCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateCustomMetricRequest; /** - * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. - * @param message UpdateDataRetentionSettingsRequest + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * @param message UpdateCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDataRetentionSettingsRequest to JSON. + * Converts this UpdateCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateDataRetentionSettingsRequest + * Gets the default type url for UpdateCustomMetricRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDataStreamRequest. */ - interface ICreateDataStreamRequest { + /** Properties of a ListCustomMetricsRequest. */ + interface IListCustomMetricsRequest { - /** CreateDataStreamRequest parent */ + /** ListCustomMetricsRequest parent */ parent?: (string|null); - /** CreateDataStreamRequest dataStream */ - dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + /** ListCustomMetricsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomMetricsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateDataStreamRequest. */ - class CreateDataStreamRequest implements ICreateDataStreamRequest { + /** Represents a ListCustomMetricsRequest. */ + class ListCustomMetricsRequest implements IListCustomMetricsRequest { /** - * Constructs a new CreateDataStreamRequest. + * Constructs a new ListCustomMetricsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest); - /** CreateDataStreamRequest parent. */ + /** ListCustomMetricsRequest parent. */ public parent: string; - /** CreateDataStreamRequest dataStream. */ - public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + /** ListCustomMetricsRequest pageSize. */ + public pageSize: number; + + /** ListCustomMetricsRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateDataStreamRequest instance using the specified properties. + * Creates a new ListCustomMetricsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDataStreamRequest instance + * @returns ListCustomMetricsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest): google.analytics.admin.v1alpha.CreateDataStreamRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsRequest): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. - * @param message CreateDataStreamRequest message or plain object to encode + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. - * @param message CreateDataStreamRequest message or plain object to encode + * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * @param message ListCustomMetricsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDataStreamRequest + * @returns ListCustomMetricsRequest * @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.analytics.admin.v1alpha.CreateDataStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDataStreamRequest + * @returns ListCustomMetricsRequest * @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.analytics.admin.v1alpha.CreateDataStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Verifies a CreateDataStreamRequest message. + * Verifies a ListCustomMetricsRequest 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 CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDataStreamRequest + * @returns ListCustomMetricsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDataStreamRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsRequest; /** - * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. - * @param message CreateDataStreamRequest + * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. + * @param message ListCustomMetricsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDataStreamRequest to JSON. + * Converts this ListCustomMetricsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDataStreamRequest + * Gets the default type url for ListCustomMetricsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteDataStreamRequest. */ - interface IDeleteDataStreamRequest { + /** Properties of a ListCustomMetricsResponse. */ + interface IListCustomMetricsResponse { - /** DeleteDataStreamRequest name */ - name?: (string|null); + /** ListCustomMetricsResponse customMetrics */ + customMetrics?: (google.analytics.admin.v1alpha.ICustomMetric[]|null); + + /** ListCustomMetricsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteDataStreamRequest. */ - class DeleteDataStreamRequest implements IDeleteDataStreamRequest { + /** Represents a ListCustomMetricsResponse. */ + class ListCustomMetricsResponse implements IListCustomMetricsResponse { /** - * Constructs a new DeleteDataStreamRequest. + * Constructs a new ListCustomMetricsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse); - /** DeleteDataStreamRequest name. */ - public name: string; + /** ListCustomMetricsResponse customMetrics. */ + public customMetrics: google.analytics.admin.v1alpha.ICustomMetric[]; + + /** ListCustomMetricsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteDataStreamRequest instance using the specified properties. + * Creates a new ListCustomMetricsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDataStreamRequest instance + * @returns ListCustomMetricsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest): google.analytics.admin.v1alpha.DeleteDataStreamRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListCustomMetricsResponse): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. - * @param message DeleteDataStreamRequest message or plain object to encode + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. - * @param message DeleteDataStreamRequest message or plain object to encode + * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * @param message ListCustomMetricsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListCustomMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDataStreamRequest + * @returns ListCustomMetricsResponse * @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.analytics.admin.v1alpha.DeleteDataStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDataStreamRequest + * @returns ListCustomMetricsResponse * @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.analytics.admin.v1alpha.DeleteDataStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Verifies a DeleteDataStreamRequest message. + * Verifies a ListCustomMetricsResponse 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 DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDataStreamRequest + * @returns ListCustomMetricsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDataStreamRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListCustomMetricsResponse; /** - * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. - * @param message DeleteDataStreamRequest + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * @param message ListCustomMetricsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DeleteDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListCustomMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDataStreamRequest to JSON. + * Converts this ListCustomMetricsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteDataStreamRequest + * Gets the default type url for ListCustomMetricsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateDataStreamRequest. */ - interface IUpdateDataStreamRequest { - - /** UpdateDataStreamRequest dataStream */ - dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + /** Properties of an ArchiveCustomMetricRequest. */ + interface IArchiveCustomMetricRequest { - /** UpdateDataStreamRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ArchiveCustomMetricRequest name */ + name?: (string|null); } - /** Represents an UpdateDataStreamRequest. */ - class UpdateDataStreamRequest implements IUpdateDataStreamRequest { + /** Represents an ArchiveCustomMetricRequest. */ + class ArchiveCustomMetricRequest implements IArchiveCustomMetricRequest { /** - * Constructs a new UpdateDataStreamRequest. + * Constructs a new ArchiveCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest); - - /** UpdateDataStreamRequest dataStream. */ - public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + constructor(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest); - /** UpdateDataStreamRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ArchiveCustomMetricRequest name. */ + public name: string; /** - * Creates a new UpdateDataStreamRequest instance using the specified properties. + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDataStreamRequest instance + * @returns ArchiveCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest): google.analytics.admin.v1alpha.UpdateDataStreamRequest; + public static create(properties?: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. - * @param message UpdateDataStreamRequest message or plain object to encode + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. - * @param message UpdateDataStreamRequest message or plain object to encode + * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * @param message ArchiveCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDataStreamRequest + * @returns ArchiveCustomMetricRequest * @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.analytics.admin.v1alpha.UpdateDataStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDataStreamRequest + * @returns ArchiveCustomMetricRequest * @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.analytics.admin.v1alpha.UpdateDataStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Verifies an UpdateDataStreamRequest message. + * Verifies an ArchiveCustomMetricRequest 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 an UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDataStreamRequest + * @returns ArchiveCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataStreamRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; /** - * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. - * @param message UpdateDataStreamRequest + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * @param message ArchiveCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDataStreamRequest to JSON. + * Converts this ArchiveCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateDataStreamRequest + * Gets the default type url for ArchiveCustomMetricRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataStreamsRequest. */ - interface IListDataStreamsRequest { - - /** ListDataStreamsRequest parent */ - parent?: (string|null); - - /** ListDataStreamsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a GetCustomMetricRequest. */ + interface IGetCustomMetricRequest { - /** ListDataStreamsRequest pageToken */ - pageToken?: (string|null); + /** GetCustomMetricRequest name */ + name?: (string|null); } - /** Represents a ListDataStreamsRequest. */ - class ListDataStreamsRequest implements IListDataStreamsRequest { + /** Represents a GetCustomMetricRequest. */ + class GetCustomMetricRequest implements IGetCustomMetricRequest { /** - * Constructs a new ListDataStreamsRequest. + * Constructs a new GetCustomMetricRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest); - - /** ListDataStreamsRequest parent. */ - public parent: string; - - /** ListDataStreamsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest); - /** ListDataStreamsRequest pageToken. */ - public pageToken: string; + /** GetCustomMetricRequest name. */ + public name: string; /** - * Creates a new ListDataStreamsRequest instance using the specified properties. + * Creates a new GetCustomMetricRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataStreamsRequest instance + * @returns GetCustomMetricRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest): google.analytics.admin.v1alpha.ListDataStreamsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetCustomMetricRequest): google.analytics.admin.v1alpha.GetCustomMetricRequest; /** - * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. - * @param message ListDataStreamsRequest message or plain object to encode + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. - * @param message ListDataStreamsRequest message or plain object to encode + * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * @param message GetCustomMetricRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetCustomMetricRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataStreamsRequest message from the specified reader or buffer. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataStreamsRequest + * @returns GetCustomMetricRequest * @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.analytics.admin.v1alpha.ListDataStreamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetCustomMetricRequest; /** - * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataStreamsRequest + * @returns GetCustomMetricRequest * @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.analytics.admin.v1alpha.ListDataStreamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetCustomMetricRequest; /** - * Verifies a ListDataStreamsRequest message. + * Verifies a GetCustomMetricRequest 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 ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataStreamsRequest + * @returns GetCustomMetricRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetCustomMetricRequest; /** - * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. - * @param message ListDataStreamsRequest + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * @param message GetCustomMetricRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetCustomMetricRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataStreamsRequest to JSON. + * Converts this GetCustomMetricRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataStreamsRequest + * Gets the default type url for GetCustomMetricRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataStreamsResponse. */ - interface IListDataStreamsResponse { - - /** ListDataStreamsResponse dataStreams */ - dataStreams?: (google.analytics.admin.v1alpha.IDataStream[]|null); + /** Properties of a GetDataRetentionSettingsRequest. */ + interface IGetDataRetentionSettingsRequest { - /** ListDataStreamsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetDataRetentionSettingsRequest name */ + name?: (string|null); } - /** Represents a ListDataStreamsResponse. */ - class ListDataStreamsResponse implements IListDataStreamsResponse { + /** Represents a GetDataRetentionSettingsRequest. */ + class GetDataRetentionSettingsRequest implements IGetDataRetentionSettingsRequest { /** - * Constructs a new ListDataStreamsResponse. + * Constructs a new GetDataRetentionSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse); - - /** ListDataStreamsResponse dataStreams. */ - public dataStreams: google.analytics.admin.v1alpha.IDataStream[]; + constructor(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest); - /** ListDataStreamsResponse nextPageToken. */ - public nextPageToken: string; + /** GetDataRetentionSettingsRequest name. */ + public name: string; /** - * Creates a new ListDataStreamsResponse instance using the specified properties. + * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataStreamsResponse instance + * @returns GetDataRetentionSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse): google.analytics.admin.v1alpha.ListDataStreamsResponse; + public static create(properties?: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; /** - * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. - * @param message ListDataStreamsResponse message or plain object to encode + * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * @param message GetDataRetentionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. - * @param message ListDataStreamsResponse message or plain object to encode + * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * @param message GetDataRetentionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataStreamsResponse + * @returns GetDataRetentionSettingsRequest * @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.analytics.admin.v1alpha.ListDataStreamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataStreamsResponse + * @returns GetDataRetentionSettingsRequest * @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.analytics.admin.v1alpha.ListDataStreamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; /** - * Verifies a ListDataStreamsResponse message. + * Verifies a GetDataRetentionSettingsRequest 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 ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataStreamsResponse + * @returns GetDataRetentionSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; /** - * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. - * @param message ListDataStreamsResponse + * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @param message GetDataRetentionSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataStreamsResponse to JSON. + * Converts this GetDataRetentionSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataStreamsResponse + * Gets the default type url for GetDataRetentionSettingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDataStreamRequest. */ - interface IGetDataStreamRequest { + /** Properties of an UpdateDataRetentionSettingsRequest. */ + interface IUpdateDataRetentionSettingsRequest { - /** GetDataStreamRequest name */ - name?: (string|null); + /** UpdateDataRetentionSettingsRequest dataRetentionSettings */ + dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + + /** UpdateDataRetentionSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetDataStreamRequest. */ - class GetDataStreamRequest implements IGetDataStreamRequest { + /** Represents an UpdateDataRetentionSettingsRequest. */ + class UpdateDataRetentionSettingsRequest implements IUpdateDataRetentionSettingsRequest { /** - * Constructs a new GetDataStreamRequest. + * Constructs a new UpdateDataRetentionSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest); - /** GetDataStreamRequest name. */ - public name: string; + /** UpdateDataRetentionSettingsRequest dataRetentionSettings. */ + public dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + + /** UpdateDataRetentionSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetDataStreamRequest instance using the specified properties. + * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataStreamRequest instance + * @returns UpdateDataRetentionSettingsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest): google.analytics.admin.v1alpha.GetDataStreamRequest; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; /** - * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. - * @param message GetDataStreamRequest message or plain object to encode + * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @param message UpdateDataRetentionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. - * @param message GetDataStreamRequest message or plain object to encode + * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * @param message UpdateDataRetentionSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataStreamRequest message from the specified reader or buffer. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDataStreamRequest + * @returns UpdateDataRetentionSettingsRequest * @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.analytics.admin.v1alpha.GetDataStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; /** - * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDataStreamRequest + * @returns UpdateDataRetentionSettingsRequest * @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.analytics.admin.v1alpha.GetDataStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; /** - * Verifies a GetDataStreamRequest message. + * Verifies an UpdateDataRetentionSettingsRequest 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 GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDataStreamRequest + * @returns UpdateDataRetentionSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataStreamRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; /** - * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. - * @param message GetDataStreamRequest + * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateDataRetentionSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDataStreamRequest to JSON. + * Converts this UpdateDataRetentionSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDataStreamRequest + * Gets the default type url for UpdateDataRetentionSettingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetAudienceRequest. */ - interface IGetAudienceRequest { + /** Properties of a CreateDataStreamRequest. */ + interface ICreateDataStreamRequest { - /** GetAudienceRequest name */ - name?: (string|null); + /** CreateDataStreamRequest parent */ + parent?: (string|null); + + /** CreateDataStreamRequest dataStream */ + dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); } - /** Represents a GetAudienceRequest. */ - class GetAudienceRequest implements IGetAudienceRequest { + /** Represents a CreateDataStreamRequest. */ + class CreateDataStreamRequest implements ICreateDataStreamRequest { /** - * Constructs a new GetAudienceRequest. + * Constructs a new CreateDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetAudienceRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest); - /** GetAudienceRequest name. */ - public name: string; + /** CreateDataStreamRequest parent. */ + public parent: string; + + /** CreateDataStreamRequest dataStream. */ + public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); /** - * Creates a new GetAudienceRequest instance using the specified properties. + * Creates a new CreateDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetAudienceRequest instance + * @returns CreateDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetAudienceRequest): google.analytics.admin.v1alpha.GetAudienceRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateDataStreamRequest): google.analytics.admin.v1alpha.CreateDataStreamRequest; /** - * Encodes the specified GetAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. - * @param message GetAudienceRequest message or plain object to encode + * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * @param message CreateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. - * @param message GetAudienceRequest message or plain object to encode + * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * @param message CreateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAudienceRequest message from the specified reader or buffer. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAudienceRequest + * @returns CreateDataStreamRequest * @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.analytics.admin.v1alpha.GetAudienceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateDataStreamRequest; /** - * Decodes a GetAudienceRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAudienceRequest + * @returns CreateDataStreamRequest * @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.analytics.admin.v1alpha.GetAudienceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateDataStreamRequest; /** - * Verifies a GetAudienceRequest message. + * Verifies a CreateDataStreamRequest 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 GetAudienceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAudienceRequest + * @returns CreateDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAudienceRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateDataStreamRequest; /** - * Creates a plain object from a GetAudienceRequest message. Also converts values to other types if specified. - * @param message GetAudienceRequest + * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. + * @param message CreateDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAudienceRequest to JSON. + * Converts this CreateDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetAudienceRequest + * Gets the default type url for CreateDataStreamRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListAudiencesRequest. */ - interface IListAudiencesRequest { - - /** ListAudiencesRequest parent */ - parent?: (string|null); - - /** ListAudiencesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a DeleteDataStreamRequest. */ + interface IDeleteDataStreamRequest { - /** ListAudiencesRequest pageToken */ - pageToken?: (string|null); + /** DeleteDataStreamRequest name */ + name?: (string|null); } - /** Represents a ListAudiencesRequest. */ - class ListAudiencesRequest implements IListAudiencesRequest { + /** Represents a DeleteDataStreamRequest. */ + class DeleteDataStreamRequest implements IDeleteDataStreamRequest { /** - * Constructs a new ListAudiencesRequest. + * Constructs a new DeleteDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListAudiencesRequest); - - /** ListAudiencesRequest parent. */ - public parent: string; - - /** ListAudiencesRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest); - /** ListAudiencesRequest pageToken. */ - public pageToken: string; + /** DeleteDataStreamRequest name. */ + public name: string; /** - * Creates a new ListAudiencesRequest instance using the specified properties. + * Creates a new DeleteDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAudiencesRequest instance + * @returns DeleteDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListAudiencesRequest): google.analytics.admin.v1alpha.ListAudiencesRequest; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteDataStreamRequest): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Encodes the specified ListAudiencesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. - * @param message ListAudiencesRequest message or plain object to encode + * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * @param message DeleteDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListAudiencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAudiencesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. - * @param message ListAudiencesRequest message or plain object to encode + * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * @param message DeleteDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAudiencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAudiencesRequest message from the specified reader or buffer. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAudiencesRequest + * @returns DeleteDataStreamRequest * @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.analytics.admin.v1alpha.ListAudiencesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Decodes a ListAudiencesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAudiencesRequest + * @returns DeleteDataStreamRequest * @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.analytics.admin.v1alpha.ListAudiencesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Verifies a ListAudiencesRequest message. + * Verifies a DeleteDataStreamRequest 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 ListAudiencesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAudiencesRequest + * @returns DeleteDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAudiencesRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteDataStreamRequest; /** - * Creates a plain object from a ListAudiencesRequest message. Also converts values to other types if specified. - * @param message ListAudiencesRequest + * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. + * @param message DeleteDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListAudiencesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAudiencesRequest to JSON. + * Converts this DeleteDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListAudiencesRequest + * Gets the default type url for DeleteDataStreamRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListAudiencesResponse. */ - interface IListAudiencesResponse { + /** Properties of an UpdateDataStreamRequest. */ + interface IUpdateDataStreamRequest { - /** ListAudiencesResponse audiences */ - audiences?: (google.analytics.admin.v1alpha.IAudience[]|null); + /** UpdateDataStreamRequest dataStream */ + dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); - /** ListAudiencesResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateDataStreamRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListAudiencesResponse. */ - class ListAudiencesResponse implements IListAudiencesResponse { + /** Represents an UpdateDataStreamRequest. */ + class UpdateDataStreamRequest implements IUpdateDataStreamRequest { /** - * Constructs a new ListAudiencesResponse. + * Constructs a new UpdateDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IListAudiencesResponse); + constructor(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest); - /** ListAudiencesResponse audiences. */ - public audiences: google.analytics.admin.v1alpha.IAudience[]; + /** UpdateDataStreamRequest dataStream. */ + public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); - /** ListAudiencesResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateDataStreamRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListAudiencesResponse instance using the specified properties. + * Creates a new UpdateDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAudiencesResponse instance + * @returns UpdateDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IListAudiencesResponse): google.analytics.admin.v1alpha.ListAudiencesResponse; + public static create(properties?: google.analytics.admin.v1alpha.IUpdateDataStreamRequest): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Encodes the specified ListAudiencesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. - * @param message ListAudiencesResponse message or plain object to encode + * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * @param message UpdateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IListAudiencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAudiencesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. - * @param message ListAudiencesResponse message or plain object to encode + * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * @param message UpdateDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAudiencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAudiencesResponse message from the specified reader or buffer. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAudiencesResponse + * @returns UpdateDataStreamRequest * @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.analytics.admin.v1alpha.ListAudiencesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Decodes a ListAudiencesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAudiencesResponse + * @returns UpdateDataStreamRequest * @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.analytics.admin.v1alpha.ListAudiencesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Verifies a ListAudiencesResponse message. + * Verifies an UpdateDataStreamRequest 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 ListAudiencesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAudiencesResponse + * @returns UpdateDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAudiencesResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateDataStreamRequest; /** - * Creates a plain object from a ListAudiencesResponse message. Also converts values to other types if specified. - * @param message ListAudiencesResponse + * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. + * @param message UpdateDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ListAudiencesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UpdateDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAudiencesResponse to JSON. + * Converts this UpdateDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListAudiencesResponse + * Gets the default type url for UpdateDataStreamRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateAudienceRequest. */ - interface ICreateAudienceRequest { + /** Properties of a ListDataStreamsRequest. */ + interface IListDataStreamsRequest { - /** CreateAudienceRequest parent */ + /** ListDataStreamsRequest parent */ parent?: (string|null); - /** CreateAudienceRequest audience */ - audience?: (google.analytics.admin.v1alpha.IAudience|null); + /** ListDataStreamsRequest pageSize */ + pageSize?: (number|null); + + /** ListDataStreamsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateAudienceRequest. */ - class CreateAudienceRequest implements ICreateAudienceRequest { + /** Represents a ListDataStreamsRequest. */ + class ListDataStreamsRequest implements IListDataStreamsRequest { /** - * Constructs a new CreateAudienceRequest. + * Constructs a new ListDataStreamsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICreateAudienceRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest); - /** CreateAudienceRequest parent. */ + /** ListDataStreamsRequest parent. */ public parent: string; - /** CreateAudienceRequest audience. */ - public audience?: (google.analytics.admin.v1alpha.IAudience|null); + /** ListDataStreamsRequest pageSize. */ + public pageSize: number; + + /** ListDataStreamsRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateAudienceRequest instance using the specified properties. + * Creates a new ListDataStreamsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateAudienceRequest instance + * @returns ListDataStreamsRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICreateAudienceRequest): google.analytics.admin.v1alpha.CreateAudienceRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsRequest): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Encodes the specified CreateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. - * @param message CreateAudienceRequest message or plain object to encode + * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * @param message ListDataStreamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICreateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. - * @param message CreateAudienceRequest message or plain object to encode + * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * @param message ListDataStreamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateAudienceRequest message from the specified reader or buffer. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateAudienceRequest + * @returns ListDataStreamsRequest * @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.analytics.admin.v1alpha.CreateAudienceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Decodes a CreateAudienceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateAudienceRequest + * @returns ListDataStreamsRequest * @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.analytics.admin.v1alpha.CreateAudienceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Verifies a CreateAudienceRequest message. + * Verifies a ListDataStreamsRequest 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 CreateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateAudienceRequest + * @returns ListDataStreamsRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateAudienceRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsRequest; /** - * Creates a plain object from a CreateAudienceRequest message. Also converts values to other types if specified. - * @param message CreateAudienceRequest + * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. + * @param message ListDataStreamsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CreateAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateAudienceRequest to JSON. + * Converts this ListDataStreamsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateAudienceRequest + * Gets the default type url for ListDataStreamsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateAudienceRequest. */ - interface IUpdateAudienceRequest { + /** Properties of a ListDataStreamsResponse. */ + interface IListDataStreamsResponse { - /** UpdateAudienceRequest audience */ - audience?: (google.analytics.admin.v1alpha.IAudience|null); + /** ListDataStreamsResponse dataStreams */ + dataStreams?: (google.analytics.admin.v1alpha.IDataStream[]|null); - /** UpdateAudienceRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListDataStreamsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateAudienceRequest. */ - class UpdateAudienceRequest implements IUpdateAudienceRequest { + /** Represents a ListDataStreamsResponse. */ + class ListDataStreamsResponse implements IListDataStreamsResponse { /** - * Constructs a new UpdateAudienceRequest. + * Constructs a new ListDataStreamsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateAudienceRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse); - /** UpdateAudienceRequest audience. */ - public audience?: (google.analytics.admin.v1alpha.IAudience|null); + /** ListDataStreamsResponse dataStreams. */ + public dataStreams: google.analytics.admin.v1alpha.IDataStream[]; - /** UpdateAudienceRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListDataStreamsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateAudienceRequest instance using the specified properties. + * Creates a new ListDataStreamsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateAudienceRequest instance + * @returns ListDataStreamsResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateAudienceRequest): google.analytics.admin.v1alpha.UpdateAudienceRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListDataStreamsResponse): google.analytics.admin.v1alpha.ListDataStreamsResponse; /** - * Encodes the specified UpdateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. - * @param message UpdateAudienceRequest message or plain object to encode + * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @param message ListDataStreamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. - * @param message UpdateAudienceRequest message or plain object to encode + * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * @param message ListDataStreamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListDataStreamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateAudienceRequest message from the specified reader or buffer. + * Decodes a ListDataStreamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateAudienceRequest + * @returns ListDataStreamsResponse * @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.analytics.admin.v1alpha.UpdateAudienceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListDataStreamsResponse; /** - * Decodes an UpdateAudienceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateAudienceRequest + * @returns ListDataStreamsResponse * @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.analytics.admin.v1alpha.UpdateAudienceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListDataStreamsResponse; /** - * Verifies an UpdateAudienceRequest message. + * Verifies a ListDataStreamsResponse 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 an UpdateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateAudienceRequest + * @returns ListDataStreamsResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateAudienceRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListDataStreamsResponse; /** - * Creates a plain object from an UpdateAudienceRequest message. Also converts values to other types if specified. - * @param message UpdateAudienceRequest + * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. + * @param message ListDataStreamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListDataStreamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateAudienceRequest to JSON. + * Converts this ListDataStreamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateAudienceRequest + * Gets the default type url for ListDataStreamsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ArchiveAudienceRequest. */ - interface IArchiveAudienceRequest { + /** Properties of a GetDataStreamRequest. */ + interface IGetDataStreamRequest { - /** ArchiveAudienceRequest name */ + /** GetDataStreamRequest name */ name?: (string|null); } - /** Represents an ArchiveAudienceRequest. */ - class ArchiveAudienceRequest implements IArchiveAudienceRequest { + /** Represents a GetDataStreamRequest. */ + class GetDataStreamRequest implements IGetDataStreamRequest { /** - * Constructs a new ArchiveAudienceRequest. + * Constructs a new GetDataStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IArchiveAudienceRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest); - /** ArchiveAudienceRequest name. */ + /** GetDataStreamRequest name. */ public name: string; /** - * Creates a new ArchiveAudienceRequest instance using the specified properties. + * Creates a new GetDataStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ArchiveAudienceRequest instance + * @returns GetDataStreamRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IArchiveAudienceRequest): google.analytics.admin.v1alpha.ArchiveAudienceRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetDataStreamRequest): google.analytics.admin.v1alpha.GetDataStreamRequest; /** - * Encodes the specified ArchiveAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. - * @param message ArchiveAudienceRequest message or plain object to encode + * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @param message GetDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IArchiveAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ArchiveAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. - * @param message ArchiveAudienceRequest message or plain object to encode + * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * @param message GetDataStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetDataStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ArchiveAudienceRequest message from the specified reader or buffer. + * Decodes a GetDataStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ArchiveAudienceRequest + * @returns GetDataStreamRequest * @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.analytics.admin.v1alpha.ArchiveAudienceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetDataStreamRequest; /** - * Decodes an ArchiveAudienceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ArchiveAudienceRequest + * @returns GetDataStreamRequest * @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.analytics.admin.v1alpha.ArchiveAudienceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetDataStreamRequest; /** - * Verifies an ArchiveAudienceRequest message. + * Verifies a GetDataStreamRequest 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 an ArchiveAudienceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ArchiveAudienceRequest + * @returns GetDataStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveAudienceRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetDataStreamRequest; /** - * Creates a plain object from an ArchiveAudienceRequest message. Also converts values to other types if specified. - * @param message ArchiveAudienceRequest + * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * @param message GetDataStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ArchiveAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetDataStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ArchiveAudienceRequest to JSON. + * Converts this GetDataStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ArchiveAudienceRequest + * Gets the default type url for GetDataStreamRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetAttributionSettingsRequest. */ - interface IGetAttributionSettingsRequest { + /** Properties of a GetAudienceRequest. */ + interface IGetAudienceRequest { - /** GetAttributionSettingsRequest name */ + /** GetAudienceRequest name */ name?: (string|null); } - /** Represents a GetAttributionSettingsRequest. */ - class GetAttributionSettingsRequest implements IGetAttributionSettingsRequest { + /** Represents a GetAudienceRequest. */ + class GetAudienceRequest implements IGetAudienceRequest { /** - * Constructs a new GetAttributionSettingsRequest. + * Constructs a new GetAudienceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IGetAudienceRequest); - /** GetAttributionSettingsRequest name. */ + /** GetAudienceRequest name. */ public name: string; /** - * Creates a new GetAttributionSettingsRequest instance using the specified properties. + * Creates a new GetAudienceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetAttributionSettingsRequest instance + * @returns GetAudienceRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest): google.analytics.admin.v1alpha.GetAttributionSettingsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IGetAudienceRequest): google.analytics.admin.v1alpha.GetAudienceRequest; /** - * Encodes the specified GetAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. - * @param message GetAttributionSettingsRequest message or plain object to encode + * Encodes the specified GetAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. + * @param message GetAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. - * @param message GetAttributionSettingsRequest message or plain object to encode + * Encodes the specified GetAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. + * @param message GetAudienceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer. + * Decodes a GetAudienceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAttributionSettingsRequest + * @returns GetAudienceRequest * @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.analytics.admin.v1alpha.GetAttributionSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetAudienceRequest; /** - * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetAudienceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAttributionSettingsRequest + * @returns GetAudienceRequest * @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.analytics.admin.v1alpha.GetAttributionSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetAudienceRequest; /** - * Verifies a GetAttributionSettingsRequest message. + * Verifies a GetAudienceRequest 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 GetAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetAudienceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAttributionSettingsRequest + * @returns GetAudienceRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAttributionSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAudienceRequest; /** - * Creates a plain object from a GetAttributionSettingsRequest message. Also converts values to other types if specified. - * @param message GetAttributionSettingsRequest + * Creates a plain object from a GetAudienceRequest message. Also converts values to other types if specified. + * @param message GetAudienceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GetAttributionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAttributionSettingsRequest to JSON. + * Converts this GetAudienceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetAttributionSettingsRequest + * Gets the default type url for GetAudienceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateAttributionSettingsRequest. */ - interface IUpdateAttributionSettingsRequest { + /** Properties of a ListAudiencesRequest. */ + interface IListAudiencesRequest { - /** UpdateAttributionSettingsRequest attributionSettings */ - attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); + /** ListAudiencesRequest parent */ + parent?: (string|null); - /** UpdateAttributionSettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListAudiencesRequest pageSize */ + pageSize?: (number|null); + + /** ListAudiencesRequest pageToken */ + pageToken?: (string|null); } - /** Represents an UpdateAttributionSettingsRequest. */ - class UpdateAttributionSettingsRequest implements IUpdateAttributionSettingsRequest { + /** Represents a ListAudiencesRequest. */ + class ListAudiencesRequest implements IListAudiencesRequest { /** - * Constructs a new UpdateAttributionSettingsRequest. + * Constructs a new ListAudiencesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest); + constructor(properties?: google.analytics.admin.v1alpha.IListAudiencesRequest); - /** UpdateAttributionSettingsRequest attributionSettings. */ - public attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); + /** ListAudiencesRequest parent. */ + public parent: string; - /** UpdateAttributionSettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListAudiencesRequest pageSize. */ + public pageSize: number; + + /** ListAudiencesRequest pageToken. */ + public pageToken: string; /** - * Creates a new UpdateAttributionSettingsRequest instance using the specified properties. + * Creates a new ListAudiencesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateAttributionSettingsRequest instance + * @returns ListAudiencesRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest): google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; + public static create(properties?: google.analytics.admin.v1alpha.IListAudiencesRequest): google.analytics.admin.v1alpha.ListAudiencesRequest; /** - * Encodes the specified UpdateAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. - * @param message UpdateAttributionSettingsRequest message or plain object to encode + * Encodes the specified ListAudiencesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. + * @param message ListAudiencesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListAudiencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. - * @param message UpdateAttributionSettingsRequest message or plain object to encode + * Encodes the specified ListAudiencesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. + * @param message ListAudiencesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAudiencesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer. + * Decodes a ListAudiencesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateAttributionSettingsRequest + * @returns ListAudiencesRequest * @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.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAudiencesRequest; /** - * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAudiencesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateAttributionSettingsRequest + * @returns ListAudiencesRequest * @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.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAudiencesRequest; /** - * Verifies an UpdateAttributionSettingsRequest message. + * Verifies a ListAudiencesRequest 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 an UpdateAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAudiencesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateAttributionSettingsRequest + * @returns ListAudiencesRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAudiencesRequest; /** - * Creates a plain object from an UpdateAttributionSettingsRequest message. Also converts values to other types if specified. - * @param message UpdateAttributionSettingsRequest + * Creates a plain object from a ListAudiencesRequest message. Also converts values to other types if specified. + * @param message ListAudiencesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListAudiencesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateAttributionSettingsRequest to JSON. + * Converts this ListAudiencesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateAttributionSettingsRequest + * Gets the default type url for ListAudiencesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** AudienceFilterScope enum. */ - enum AudienceFilterScope { - AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0, - AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1, - AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2, - AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3 - } - - /** Properties of an AudienceDimensionOrMetricFilter. */ - interface IAudienceDimensionOrMetricFilter { - - /** AudienceDimensionOrMetricFilter stringFilter */ - stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); - - /** AudienceDimensionOrMetricFilter inListFilter */ - inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); - - /** AudienceDimensionOrMetricFilter numericFilter */ - numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); - - /** AudienceDimensionOrMetricFilter betweenFilter */ - betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); - - /** AudienceDimensionOrMetricFilter fieldName */ - fieldName?: (string|null); + /** Properties of a ListAudiencesResponse. */ + interface IListAudiencesResponse { - /** AudienceDimensionOrMetricFilter atAnyPointInTime */ - atAnyPointInTime?: (boolean|null); + /** ListAudiencesResponse audiences */ + audiences?: (google.analytics.admin.v1alpha.IAudience[]|null); - /** AudienceDimensionOrMetricFilter inAnyNDayPeriod */ - inAnyNDayPeriod?: (number|null); + /** ListAudiencesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an AudienceDimensionOrMetricFilter. */ - class AudienceDimensionOrMetricFilter implements IAudienceDimensionOrMetricFilter { + /** Represents a ListAudiencesResponse. */ + class ListAudiencesResponse implements IListAudiencesResponse { /** - * Constructs a new AudienceDimensionOrMetricFilter. + * Constructs a new ListAudiencesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter); - - /** AudienceDimensionOrMetricFilter stringFilter. */ - public stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); - - /** AudienceDimensionOrMetricFilter inListFilter. */ - public inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); - - /** AudienceDimensionOrMetricFilter numericFilter. */ - public numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); - - /** AudienceDimensionOrMetricFilter betweenFilter. */ - public betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); - - /** AudienceDimensionOrMetricFilter fieldName. */ - public fieldName: string; - - /** AudienceDimensionOrMetricFilter atAnyPointInTime. */ - public atAnyPointInTime: boolean; + constructor(properties?: google.analytics.admin.v1alpha.IListAudiencesResponse); - /** AudienceDimensionOrMetricFilter inAnyNDayPeriod. */ - public inAnyNDayPeriod: number; + /** ListAudiencesResponse audiences. */ + public audiences: google.analytics.admin.v1alpha.IAudience[]; - /** AudienceDimensionOrMetricFilter oneFilter. */ - public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"); + /** ListAudiencesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. + * Creates a new ListAudiencesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceDimensionOrMetricFilter instance + * @returns ListAudiencesResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + public static create(properties?: google.analytics.admin.v1alpha.IListAudiencesResponse): google.analytics.admin.v1alpha.ListAudiencesResponse; /** - * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. - * @param message AudienceDimensionOrMetricFilter message or plain object to encode + * Encodes the specified ListAudiencesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. + * @param message ListAudiencesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListAudiencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. - * @param message AudienceDimensionOrMetricFilter message or plain object to encode + * Encodes the specified ListAudiencesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. + * @param message ListAudiencesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAudiencesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. + * Decodes a ListAudiencesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceDimensionOrMetricFilter + * @returns ListAudiencesResponse * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAudiencesResponse; /** - * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. + * Decodes a ListAudiencesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceDimensionOrMetricFilter + * @returns ListAudiencesResponse * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAudiencesResponse; /** - * Verifies an AudienceDimensionOrMetricFilter message. + * Verifies a ListAudiencesResponse 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 an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. + * Creates a ListAudiencesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceDimensionOrMetricFilter + * @returns ListAudiencesResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAudiencesResponse; /** - * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. - * @param message AudienceDimensionOrMetricFilter + * Creates a plain object from a ListAudiencesResponse message. Also converts values to other types if specified. + * @param message ListAudiencesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListAudiencesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceDimensionOrMetricFilter to JSON. + * Converts this ListAudiencesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceDimensionOrMetricFilter + * Gets the default type url for ListAudiencesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AudienceDimensionOrMetricFilter { + /** Properties of a CreateAudienceRequest. */ + interface ICreateAudienceRequest { - /** Properties of a StringFilter. */ - interface IStringFilter { + /** CreateAudienceRequest parent */ + parent?: (string|null); - /** StringFilter matchType */ - matchType?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null); + /** CreateAudienceRequest audience */ + audience?: (google.analytics.admin.v1alpha.IAudience|null); + } - /** StringFilter value */ - value?: (string|null); + /** Represents a CreateAudienceRequest. */ + class CreateAudienceRequest implements ICreateAudienceRequest { - /** StringFilter caseSensitive */ - caseSensitive?: (boolean|null); - } + /** + * Constructs a new CreateAudienceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateAudienceRequest); - /** Represents a StringFilter. */ - class StringFilter implements IStringFilter { + /** CreateAudienceRequest parent. */ + public parent: string; - /** - * Constructs a new StringFilter. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter); + /** CreateAudienceRequest audience. */ + public audience?: (google.analytics.admin.v1alpha.IAudience|null); - /** StringFilter matchType. */ - public matchType: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType); + /** + * Creates a new CreateAudienceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateAudienceRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateAudienceRequest): google.analytics.admin.v1alpha.CreateAudienceRequest; - /** StringFilter value. */ - public value: string; + /** + * Encodes the specified CreateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * @param message CreateAudienceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** StringFilter caseSensitive. */ - public caseSensitive: boolean; + /** + * Encodes the specified CreateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * @param message CreateAudienceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new StringFilter instance using the specified properties. - * @param [properties] Properties to set - * @returns StringFilter instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + /** + * Decodes a CreateAudienceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateAudienceRequest + * @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.analytics.admin.v1alpha.CreateAudienceRequest; - /** - * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. - * @param message StringFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CreateAudienceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateAudienceRequest + * @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.analytics.admin.v1alpha.CreateAudienceRequest; - /** - * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. - * @param message StringFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a CreateAudienceRequest 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); - /** - * Decodes a StringFilter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StringFilter - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + /** + * Creates a CreateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateAudienceRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateAudienceRequest; - /** - * Decodes a StringFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StringFilter - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + /** + * Creates a plain object from a CreateAudienceRequest message. Also converts values to other types if specified. + * @param message CreateAudienceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a StringFilter 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); + /** + * Converts this CreateAudienceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StringFilter - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + /** + * Gets the default type url for CreateAudienceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a StringFilter message. Also converts values to other types if specified. - * @param message StringFilter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an UpdateAudienceRequest. */ + interface IUpdateAudienceRequest { - /** - * Converts this StringFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** UpdateAudienceRequest audience */ + audience?: (google.analytics.admin.v1alpha.IAudience|null); - /** - * Gets the default type url for StringFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** UpdateAudienceRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - namespace StringFilter { + /** Represents an UpdateAudienceRequest. */ + class UpdateAudienceRequest implements IUpdateAudienceRequest { - /** MatchType enum. */ - enum MatchType { - MATCH_TYPE_UNSPECIFIED = 0, - EXACT = 1, - BEGINS_WITH = 2, - ENDS_WITH = 3, - CONTAINS = 4, - FULL_REGEXP = 5, - PARTIAL_REGEXP = 6 - } - } + /** + * Constructs a new UpdateAudienceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateAudienceRequest); - /** Properties of an InListFilter. */ - interface IInListFilter { + /** UpdateAudienceRequest audience. */ + public audience?: (google.analytics.admin.v1alpha.IAudience|null); - /** InListFilter values */ - values?: (string[]|null); + /** UpdateAudienceRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** InListFilter caseSensitive */ - caseSensitive?: (boolean|null); - } + /** + * Creates a new UpdateAudienceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateAudienceRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateAudienceRequest): google.analytics.admin.v1alpha.UpdateAudienceRequest; - /** Represents an InListFilter. */ - class InListFilter implements IInListFilter { + /** + * Encodes the specified UpdateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * @param message UpdateAudienceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new InListFilter. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter); + /** + * Encodes the specified UpdateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * @param message UpdateAudienceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** InListFilter values. */ - public values: string[]; + /** + * Decodes an UpdateAudienceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateAudienceRequest + * @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.analytics.admin.v1alpha.UpdateAudienceRequest; - /** InListFilter caseSensitive. */ - public caseSensitive: boolean; + /** + * Decodes an UpdateAudienceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateAudienceRequest + * @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.analytics.admin.v1alpha.UpdateAudienceRequest; - /** - * Creates a new InListFilter instance using the specified properties. - * @param [properties] Properties to set - * @returns InListFilter instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + /** + * Verifies an UpdateAudienceRequest 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); - /** - * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. - * @param message InListFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an UpdateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateAudienceRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateAudienceRequest; - /** - * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. - * @param message InListFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an UpdateAudienceRequest message. Also converts values to other types if specified. + * @param message UpdateAudienceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an InListFilter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InListFilter - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + /** + * Converts this UpdateAudienceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes an InListFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InListFilter - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + /** + * Gets the default type url for UpdateAudienceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies an InListFilter 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); + /** Properties of an ArchiveAudienceRequest. */ + interface IArchiveAudienceRequest { - /** - * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InListFilter - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + /** ArchiveAudienceRequest name */ + name?: (string|null); + } - /** - * Creates a plain object from an InListFilter message. Also converts values to other types if specified. - * @param message InListFilter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an ArchiveAudienceRequest. */ + class ArchiveAudienceRequest implements IArchiveAudienceRequest { - /** - * Converts this InListFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new ArchiveAudienceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IArchiveAudienceRequest); - /** - * Gets the default type url for InListFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ArchiveAudienceRequest name. */ + public name: string; - /** Properties of a NumericValue. */ - interface INumericValue { + /** + * Creates a new ArchiveAudienceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ArchiveAudienceRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IArchiveAudienceRequest): google.analytics.admin.v1alpha.ArchiveAudienceRequest; - /** NumericValue int64Value */ - int64Value?: (number|Long|string|null); + /** + * Encodes the specified ArchiveAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * @param message ArchiveAudienceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IArchiveAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** NumericValue doubleValue */ - doubleValue?: (number|null); - } + /** + * Encodes the specified ArchiveAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * @param message ArchiveAudienceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IArchiveAudienceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a NumericValue. */ - class NumericValue implements INumericValue { + /** + * Decodes an ArchiveAudienceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArchiveAudienceRequest + * @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.analytics.admin.v1alpha.ArchiveAudienceRequest; - /** - * Constructs a new NumericValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue); + /** + * Decodes an ArchiveAudienceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArchiveAudienceRequest + * @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.analytics.admin.v1alpha.ArchiveAudienceRequest; - /** NumericValue int64Value. */ - public int64Value?: (number|Long|string|null); + /** + * Verifies an ArchiveAudienceRequest 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); - /** NumericValue doubleValue. */ - public doubleValue?: (number|null); + /** + * Creates an ArchiveAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArchiveAudienceRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ArchiveAudienceRequest; - /** NumericValue oneValue. */ - public oneValue?: ("int64Value"|"doubleValue"); + /** + * Creates a plain object from an ArchiveAudienceRequest message. Also converts values to other types if specified. + * @param message ArchiveAudienceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ArchiveAudienceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new NumericValue instance using the specified properties. - * @param [properties] Properties to set - * @returns NumericValue instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + /** + * Converts this ArchiveAudienceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. - * @param message NumericValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ArchiveAudienceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. - * @param message NumericValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a GetAttributionSettingsRequest. */ + interface IGetAttributionSettingsRequest { - /** - * Decodes a NumericValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NumericValue - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; - - /** - * Decodes a NumericValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NumericValue - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + /** GetAttributionSettingsRequest name */ + name?: (string|null); + } - /** - * Verifies a NumericValue 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); + /** Represents a GetAttributionSettingsRequest. */ + class GetAttributionSettingsRequest implements IGetAttributionSettingsRequest { - /** - * Creates a NumericValue message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NumericValue - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + /** + * Constructs a new GetAttributionSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest); - /** - * Creates a plain object from a NumericValue message. Also converts values to other types if specified. - * @param message NumericValue - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** GetAttributionSettingsRequest name. */ + public name: string; - /** - * Converts this NumericValue to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new GetAttributionSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetAttributionSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest): google.analytics.admin.v1alpha.GetAttributionSettingsRequest; - /** - * Gets the default type url for NumericValue - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified GetAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * @param message GetAttributionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a NumericFilter. */ - interface INumericFilter { + /** + * Encodes the specified GetAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * @param message GetAttributionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** NumericFilter operation */ - operation?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|null); + /** + * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetAttributionSettingsRequest + * @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.analytics.admin.v1alpha.GetAttributionSettingsRequest; - /** NumericFilter value */ - value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); - } + /** + * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetAttributionSettingsRequest + * @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.analytics.admin.v1alpha.GetAttributionSettingsRequest; - /** Represents a NumericFilter. */ - class NumericFilter implements INumericFilter { + /** + * Verifies a GetAttributionSettingsRequest 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); - /** - * Constructs a new NumericFilter. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter); + /** + * Creates a GetAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetAttributionSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAttributionSettingsRequest; - /** NumericFilter operation. */ - public operation: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation); + /** + * Creates a plain object from a GetAttributionSettingsRequest message. Also converts values to other types if specified. + * @param message GetAttributionSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetAttributionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** NumericFilter value. */ - public value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + /** + * Converts this GetAttributionSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new NumericFilter instance using the specified properties. - * @param [properties] Properties to set - * @returns NumericFilter instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + /** + * Gets the default type url for GetAttributionSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified NumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. - * @param message NumericFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an UpdateAttributionSettingsRequest. */ + interface IUpdateAttributionSettingsRequest { - /** - * Encodes the specified NumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. - * @param message NumericFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** UpdateAttributionSettingsRequest attributionSettings */ + attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); - /** - * Decodes a NumericFilter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NumericFilter - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + /** UpdateAttributionSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Decodes a NumericFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NumericFilter - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + /** Represents an UpdateAttributionSettingsRequest. */ + class UpdateAttributionSettingsRequest implements IUpdateAttributionSettingsRequest { - /** - * Verifies a NumericFilter 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); + /** + * Constructs a new UpdateAttributionSettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest); - /** - * Creates a NumericFilter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NumericFilter - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + /** UpdateAttributionSettingsRequest attributionSettings. */ + public attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); - /** - * Creates a plain object from a NumericFilter message. Also converts values to other types if specified. - * @param message NumericFilter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** UpdateAttributionSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Converts this NumericFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new UpdateAttributionSettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateAttributionSettingsRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest): google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; - /** - * Gets the default type url for NumericFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified UpdateAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. + * @param message UpdateAttributionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - namespace NumericFilter { + /** + * Encodes the specified UpdateAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. + * @param message UpdateAttributionSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Operation enum. */ - enum Operation { - OPERATION_UNSPECIFIED = 0, - EQUAL = 1, - LESS_THAN = 2, - LESS_THAN_OR_EQUAL = 3, - GREATER_THAN = 4, - GREATER_THAN_OR_EQUAL = 5 - } - } - - /** Properties of a BetweenFilter. */ - interface IBetweenFilter { - - /** BetweenFilter fromValue */ - fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); - - /** BetweenFilter toValue */ - toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); - } - - /** Represents a BetweenFilter. */ - class BetweenFilter implements IBetweenFilter { - - /** - * Constructs a new BetweenFilter. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter); - - /** BetweenFilter fromValue. */ - public fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); - - /** BetweenFilter toValue. */ - public toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); - - /** - * Creates a new BetweenFilter instance using the specified properties. - * @param [properties] Properties to set - * @returns BetweenFilter instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; - - /** - * Encodes the specified BetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. - * @param message BetweenFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. - * @param message BetweenFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BetweenFilter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BetweenFilter - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + /** + * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateAttributionSettingsRequest + * @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.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; - /** - * Decodes a BetweenFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BetweenFilter - * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + /** + * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateAttributionSettingsRequest + * @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.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; - /** - * Verifies a BetweenFilter 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); + /** + * Verifies an UpdateAttributionSettingsRequest 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 BetweenFilter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BetweenFilter - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + /** + * Creates an UpdateAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateAttributionSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; - /** - * Creates a plain object from a BetweenFilter message. Also converts values to other types if specified. - * @param message BetweenFilter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateAttributionSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateAttributionSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this BetweenFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateAttributionSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for BetweenFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateAttributionSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AudienceEventFilter. */ - interface IAudienceEventFilter { + /** Properties of a SetAutomatedGa4ConfigurationOptOutRequest. */ + interface ISetAutomatedGa4ConfigurationOptOutRequest { - /** AudienceEventFilter eventName */ - eventName?: (string|null); + /** SetAutomatedGa4ConfigurationOptOutRequest property */ + property?: (string|null); - /** AudienceEventFilter eventParameterFilterExpression */ - eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** SetAutomatedGa4ConfigurationOptOutRequest optOut */ + optOut?: (boolean|null); } - /** Represents an AudienceEventFilter. */ - class AudienceEventFilter implements IAudienceEventFilter { + /** Represents a SetAutomatedGa4ConfigurationOptOutRequest. */ + class SetAutomatedGa4ConfigurationOptOutRequest implements ISetAutomatedGa4ConfigurationOptOutRequest { /** - * Constructs a new AudienceEventFilter. + * Constructs a new SetAutomatedGa4ConfigurationOptOutRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter); + constructor(properties?: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest); - /** AudienceEventFilter eventName. */ - public eventName: string; + /** SetAutomatedGa4ConfigurationOptOutRequest property. */ + public property: string; - /** AudienceEventFilter eventParameterFilterExpression. */ - public eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** SetAutomatedGa4ConfigurationOptOutRequest optOut. */ + public optOut: boolean; /** - * Creates a new AudienceEventFilter instance using the specified properties. + * Creates a new SetAutomatedGa4ConfigurationOptOutRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceEventFilter instance + * @returns SetAutomatedGa4ConfigurationOptOutRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter): google.analytics.admin.v1alpha.AudienceEventFilter; + public static create(properties?: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest): google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; /** - * Encodes the specified AudienceEventFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. - * @param message AudienceEventFilter message or plain object to encode + * Encodes the specified SetAutomatedGa4ConfigurationOptOutRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.verify|verify} messages. + * @param message SetAutomatedGa4ConfigurationOptOutRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceEventFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. - * @param message AudienceEventFilter message or plain object to encode + * Encodes the specified SetAutomatedGa4ConfigurationOptOutRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.verify|verify} messages. + * @param message SetAutomatedGa4ConfigurationOptOutRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceEventFilter message from the specified reader or buffer. + * Decodes a SetAutomatedGa4ConfigurationOptOutRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceEventFilter + * @returns SetAutomatedGa4ConfigurationOptOutRequest * @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.analytics.admin.v1alpha.AudienceEventFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; /** - * Decodes an AudienceEventFilter message from the specified reader or buffer, length delimited. + * Decodes a SetAutomatedGa4ConfigurationOptOutRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceEventFilter + * @returns SetAutomatedGa4ConfigurationOptOutRequest * @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.analytics.admin.v1alpha.AudienceEventFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; /** - * Verifies an AudienceEventFilter message. + * Verifies a SetAutomatedGa4ConfigurationOptOutRequest 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 an AudienceEventFilter message from a plain object. Also converts values to their respective internal types. + * Creates a SetAutomatedGa4ConfigurationOptOutRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceEventFilter + * @returns SetAutomatedGa4ConfigurationOptOutRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; /** - * Creates a plain object from an AudienceEventFilter message. Also converts values to other types if specified. - * @param message AudienceEventFilter + * Creates a plain object from a SetAutomatedGa4ConfigurationOptOutRequest message. Also converts values to other types if specified. + * @param message SetAutomatedGa4ConfigurationOptOutRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceEventFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceEventFilter to JSON. + * Converts this SetAutomatedGa4ConfigurationOptOutRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceEventFilter + * Gets the default type url for SetAutomatedGa4ConfigurationOptOutRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AudienceFilterExpression. */ - interface IAudienceFilterExpression { - - /** AudienceFilterExpression andGroup */ - andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - - /** AudienceFilterExpression orGroup */ - orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - - /** AudienceFilterExpression notExpression */ - notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); - - /** AudienceFilterExpression dimensionOrMetricFilter */ - dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); - - /** AudienceFilterExpression eventFilter */ - eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); + /** Properties of a SetAutomatedGa4ConfigurationOptOutResponse. */ + interface ISetAutomatedGa4ConfigurationOptOutResponse { } - /** Represents an AudienceFilterExpression. */ - class AudienceFilterExpression implements IAudienceFilterExpression { + /** Represents a SetAutomatedGa4ConfigurationOptOutResponse. */ + class SetAutomatedGa4ConfigurationOptOutResponse implements ISetAutomatedGa4ConfigurationOptOutResponse { /** - * Constructs a new AudienceFilterExpression. + * Constructs a new SetAutomatedGa4ConfigurationOptOutResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression); - - /** AudienceFilterExpression andGroup. */ - public andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - - /** AudienceFilterExpression orGroup. */ - public orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - - /** AudienceFilterExpression notExpression. */ - public notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); - - /** AudienceFilterExpression dimensionOrMetricFilter. */ - public dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); - - /** AudienceFilterExpression eventFilter. */ - public eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); - - /** AudienceFilterExpression expr. */ - public expr?: ("andGroup"|"orGroup"|"notExpression"|"dimensionOrMetricFilter"|"eventFilter"); + constructor(properties?: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse); /** - * Creates a new AudienceFilterExpression instance using the specified properties. + * Creates a new SetAutomatedGa4ConfigurationOptOutResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceFilterExpression instance + * @returns SetAutomatedGa4ConfigurationOptOutResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression): google.analytics.admin.v1alpha.AudienceFilterExpression; + public static create(properties?: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse): google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; /** - * Encodes the specified AudienceFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. - * @param message AudienceFilterExpression message or plain object to encode + * Encodes the specified SetAutomatedGa4ConfigurationOptOutResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.verify|verify} messages. + * @param message SetAutomatedGa4ConfigurationOptOutResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. - * @param message AudienceFilterExpression message or plain object to encode + * Encodes the specified SetAutomatedGa4ConfigurationOptOutResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.verify|verify} messages. + * @param message SetAutomatedGa4ConfigurationOptOutResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceFilterExpression message from the specified reader or buffer. + * Decodes a SetAutomatedGa4ConfigurationOptOutResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceFilterExpression + * @returns SetAutomatedGa4ConfigurationOptOutResponse * @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.analytics.admin.v1alpha.AudienceFilterExpression; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; /** - * Decodes an AudienceFilterExpression message from the specified reader or buffer, length delimited. + * Decodes a SetAutomatedGa4ConfigurationOptOutResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceFilterExpression + * @returns SetAutomatedGa4ConfigurationOptOutResponse * @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.analytics.admin.v1alpha.AudienceFilterExpression; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; /** - * Verifies an AudienceFilterExpression message. + * Verifies a SetAutomatedGa4ConfigurationOptOutResponse 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 an AudienceFilterExpression message from a plain object. Also converts values to their respective internal types. + * Creates a SetAutomatedGa4ConfigurationOptOutResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceFilterExpression + * @returns SetAutomatedGa4ConfigurationOptOutResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpression; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; /** - * Creates a plain object from an AudienceFilterExpression message. Also converts values to other types if specified. - * @param message AudienceFilterExpression + * Creates a plain object from a SetAutomatedGa4ConfigurationOptOutResponse message. Also converts values to other types if specified. + * @param message SetAutomatedGa4ConfigurationOptOutResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpression, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceFilterExpression to JSON. + * Converts this SetAutomatedGa4ConfigurationOptOutResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceFilterExpression + * Gets the default type url for SetAutomatedGa4ConfigurationOptOutResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AudienceFilterExpressionList. */ - interface IAudienceFilterExpressionList { + /** Properties of a FetchAutomatedGa4ConfigurationOptOutRequest. */ + interface IFetchAutomatedGa4ConfigurationOptOutRequest { - /** AudienceFilterExpressionList filterExpressions */ - filterExpressions?: (google.analytics.admin.v1alpha.IAudienceFilterExpression[]|null); + /** FetchAutomatedGa4ConfigurationOptOutRequest property */ + property?: (string|null); } - /** Represents an AudienceFilterExpressionList. */ - class AudienceFilterExpressionList implements IAudienceFilterExpressionList { + /** Represents a FetchAutomatedGa4ConfigurationOptOutRequest. */ + class FetchAutomatedGa4ConfigurationOptOutRequest implements IFetchAutomatedGa4ConfigurationOptOutRequest { /** - * Constructs a new AudienceFilterExpressionList. + * Constructs a new FetchAutomatedGa4ConfigurationOptOutRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList); + constructor(properties?: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest); - /** AudienceFilterExpressionList filterExpressions. */ - public filterExpressions: google.analytics.admin.v1alpha.IAudienceFilterExpression[]; + /** FetchAutomatedGa4ConfigurationOptOutRequest property. */ + public property: string; /** - * Creates a new AudienceFilterExpressionList instance using the specified properties. + * Creates a new FetchAutomatedGa4ConfigurationOptOutRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceFilterExpressionList instance + * @returns FetchAutomatedGa4ConfigurationOptOutRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList): google.analytics.admin.v1alpha.AudienceFilterExpressionList; + public static create(properties?: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest): google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; /** - * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. - * @param message AudienceFilterExpressionList message or plain object to encode + * Encodes the specified FetchAutomatedGa4ConfigurationOptOutRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.verify|verify} messages. + * @param message FetchAutomatedGa4ConfigurationOptOutRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. - * @param message AudienceFilterExpressionList message or plain object to encode + * Encodes the specified FetchAutomatedGa4ConfigurationOptOutRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.verify|verify} messages. + * @param message FetchAutomatedGa4ConfigurationOptOutRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. + * Decodes a FetchAutomatedGa4ConfigurationOptOutRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceFilterExpressionList + * @returns FetchAutomatedGa4ConfigurationOptOutRequest * @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.analytics.admin.v1alpha.AudienceFilterExpressionList; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; /** - * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. + * Decodes a FetchAutomatedGa4ConfigurationOptOutRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceFilterExpressionList + * @returns FetchAutomatedGa4ConfigurationOptOutRequest * @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.analytics.admin.v1alpha.AudienceFilterExpressionList; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; /** - * Verifies an AudienceFilterExpressionList message. + * Verifies a FetchAutomatedGa4ConfigurationOptOutRequest 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 an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * Creates a FetchAutomatedGa4ConfigurationOptOutRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceFilterExpressionList + * @returns FetchAutomatedGa4ConfigurationOptOutRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpressionList; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; /** - * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. - * @param message AudienceFilterExpressionList + * Creates a plain object from a FetchAutomatedGa4ConfigurationOptOutRequest message. Also converts values to other types if specified. + * @param message FetchAutomatedGa4ConfigurationOptOutRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpressionList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceFilterExpressionList to JSON. + * Converts this FetchAutomatedGa4ConfigurationOptOutRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceFilterExpressionList + * Gets the default type url for FetchAutomatedGa4ConfigurationOptOutRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AudienceSimpleFilter. */ - interface IAudienceSimpleFilter { - - /** AudienceSimpleFilter scope */ - scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); + /** Properties of a FetchAutomatedGa4ConfigurationOptOutResponse. */ + interface IFetchAutomatedGa4ConfigurationOptOutResponse { - /** AudienceSimpleFilter filterExpression */ - filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** FetchAutomatedGa4ConfigurationOptOutResponse optOut */ + optOut?: (boolean|null); } - /** Represents an AudienceSimpleFilter. */ - class AudienceSimpleFilter implements IAudienceSimpleFilter { + /** Represents a FetchAutomatedGa4ConfigurationOptOutResponse. */ + class FetchAutomatedGa4ConfigurationOptOutResponse implements IFetchAutomatedGa4ConfigurationOptOutResponse { /** - * Constructs a new AudienceSimpleFilter. + * Constructs a new FetchAutomatedGa4ConfigurationOptOutResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter); + constructor(properties?: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse); - /** AudienceSimpleFilter scope. */ - public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); - - /** AudienceSimpleFilter filterExpression. */ - public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** FetchAutomatedGa4ConfigurationOptOutResponse optOut. */ + public optOut: boolean; /** - * Creates a new AudienceSimpleFilter instance using the specified properties. + * Creates a new FetchAutomatedGa4ConfigurationOptOutResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceSimpleFilter instance + * @returns FetchAutomatedGa4ConfigurationOptOutResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter): google.analytics.admin.v1alpha.AudienceSimpleFilter; + public static create(properties?: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse): google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; /** - * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. - * @param message AudienceSimpleFilter message or plain object to encode + * Encodes the specified FetchAutomatedGa4ConfigurationOptOutResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.verify|verify} messages. + * @param message FetchAutomatedGa4ConfigurationOptOutResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. - * @param message AudienceSimpleFilter message or plain object to encode + * Encodes the specified FetchAutomatedGa4ConfigurationOptOutResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.verify|verify} messages. + * @param message FetchAutomatedGa4ConfigurationOptOutResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceSimpleFilter message from the specified reader or buffer. + * Decodes a FetchAutomatedGa4ConfigurationOptOutResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceSimpleFilter + * @returns FetchAutomatedGa4ConfigurationOptOutResponse * @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.analytics.admin.v1alpha.AudienceSimpleFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; /** - * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. + * Decodes a FetchAutomatedGa4ConfigurationOptOutResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceSimpleFilter + * @returns FetchAutomatedGa4ConfigurationOptOutResponse * @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.analytics.admin.v1alpha.AudienceSimpleFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; /** - * Verifies an AudienceSimpleFilter message. + * Verifies a FetchAutomatedGa4ConfigurationOptOutResponse 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 an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. + * Creates a FetchAutomatedGa4ConfigurationOptOutResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceSimpleFilter + * @returns FetchAutomatedGa4ConfigurationOptOutResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSimpleFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; /** - * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. - * @param message AudienceSimpleFilter + * Creates a plain object from a FetchAutomatedGa4ConfigurationOptOutResponse message. Also converts values to other types if specified. + * @param message FetchAutomatedGa4ConfigurationOptOutResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceSimpleFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceSimpleFilter to JSON. + * Converts this FetchAutomatedGa4ConfigurationOptOutResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceSimpleFilter + * Gets the default type url for FetchAutomatedGa4ConfigurationOptOutResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AudienceSequenceFilter. */ - interface IAudienceSequenceFilter { - - /** AudienceSequenceFilter scope */ - scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); - - /** AudienceSequenceFilter sequenceMaximumDuration */ - sequenceMaximumDuration?: (google.protobuf.IDuration|null); + /** Properties of a GetBigQueryLinkRequest. */ + interface IGetBigQueryLinkRequest { - /** AudienceSequenceFilter sequenceSteps */ - sequenceSteps?: (google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]|null); + /** GetBigQueryLinkRequest name */ + name?: (string|null); } - /** Represents an AudienceSequenceFilter. */ - class AudienceSequenceFilter implements IAudienceSequenceFilter { + /** Represents a GetBigQueryLinkRequest. */ + class GetBigQueryLinkRequest implements IGetBigQueryLinkRequest { /** - * Constructs a new AudienceSequenceFilter. + * Constructs a new GetBigQueryLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter); - - /** AudienceSequenceFilter scope. */ - public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); - - /** AudienceSequenceFilter sequenceMaximumDuration. */ - public sequenceMaximumDuration?: (google.protobuf.IDuration|null); + constructor(properties?: google.analytics.admin.v1alpha.IGetBigQueryLinkRequest); - /** AudienceSequenceFilter sequenceSteps. */ - public sequenceSteps: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]; + /** GetBigQueryLinkRequest name. */ + public name: string; /** - * Creates a new AudienceSequenceFilter instance using the specified properties. + * Creates a new GetBigQueryLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceSequenceFilter instance + * @returns GetBigQueryLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter): google.analytics.admin.v1alpha.AudienceSequenceFilter; + public static create(properties?: google.analytics.admin.v1alpha.IGetBigQueryLinkRequest): google.analytics.admin.v1alpha.GetBigQueryLinkRequest; /** - * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. - * @param message AudienceSequenceFilter message or plain object to encode + * Encodes the specified GetBigQueryLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetBigQueryLinkRequest.verify|verify} messages. + * @param message GetBigQueryLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetBigQueryLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. - * @param message AudienceSequenceFilter message or plain object to encode + * Encodes the specified GetBigQueryLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetBigQueryLinkRequest.verify|verify} messages. + * @param message GetBigQueryLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetBigQueryLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceSequenceFilter message from the specified reader or buffer. + * Decodes a GetBigQueryLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceSequenceFilter + * @returns GetBigQueryLinkRequest * @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.analytics.admin.v1alpha.AudienceSequenceFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetBigQueryLinkRequest; /** - * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. + * Decodes a GetBigQueryLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceSequenceFilter + * @returns GetBigQueryLinkRequest * @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.analytics.admin.v1alpha.AudienceSequenceFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetBigQueryLinkRequest; /** - * Verifies an AudienceSequenceFilter message. + * Verifies a GetBigQueryLinkRequest 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 an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. + * Creates a GetBigQueryLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceSequenceFilter + * @returns GetBigQueryLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetBigQueryLinkRequest; /** - * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. - * @param message AudienceSequenceFilter + * Creates a plain object from a GetBigQueryLinkRequest message. Also converts values to other types if specified. + * @param message GetBigQueryLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetBigQueryLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceSequenceFilter to JSON. + * Converts this GetBigQueryLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceSequenceFilter + * Gets the default type url for GetBigQueryLinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AudienceSequenceFilter { + /** Properties of a ListBigQueryLinksRequest. */ + interface IListBigQueryLinksRequest { - /** Properties of an AudienceSequenceStep. */ - interface IAudienceSequenceStep { + /** ListBigQueryLinksRequest parent */ + parent?: (string|null); - /** AudienceSequenceStep scope */ - scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); + /** ListBigQueryLinksRequest pageSize */ + pageSize?: (number|null); - /** AudienceSequenceStep immediatelyFollows */ - immediatelyFollows?: (boolean|null); + /** ListBigQueryLinksRequest pageToken */ + pageToken?: (string|null); + } - /** AudienceSequenceStep constraintDuration */ - constraintDuration?: (google.protobuf.IDuration|null); + /** Represents a ListBigQueryLinksRequest. */ + class ListBigQueryLinksRequest implements IListBigQueryLinksRequest { - /** AudienceSequenceStep filterExpression */ - filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); - } + /** + * Constructs a new ListBigQueryLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListBigQueryLinksRequest); - /** Represents an AudienceSequenceStep. */ - class AudienceSequenceStep implements IAudienceSequenceStep { + /** ListBigQueryLinksRequest parent. */ + public parent: string; - /** - * Constructs a new AudienceSequenceStep. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep); + /** ListBigQueryLinksRequest pageSize. */ + public pageSize: number; - /** AudienceSequenceStep scope. */ - public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); + /** ListBigQueryLinksRequest pageToken. */ + public pageToken: string; - /** AudienceSequenceStep immediatelyFollows. */ - public immediatelyFollows: boolean; + /** + * Creates a new ListBigQueryLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListBigQueryLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListBigQueryLinksRequest): google.analytics.admin.v1alpha.ListBigQueryLinksRequest; - /** AudienceSequenceStep constraintDuration. */ - public constraintDuration?: (google.protobuf.IDuration|null); + /** + * Encodes the specified ListBigQueryLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListBigQueryLinksRequest.verify|verify} messages. + * @param message ListBigQueryLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListBigQueryLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** AudienceSequenceStep filterExpression. */ - public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** + * Encodes the specified ListBigQueryLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListBigQueryLinksRequest.verify|verify} messages. + * @param message ListBigQueryLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListBigQueryLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new AudienceSequenceStep instance using the specified properties. - * @param [properties] Properties to set - * @returns AudienceSequenceStep instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + /** + * Decodes a ListBigQueryLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListBigQueryLinksRequest + * @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.analytics.admin.v1alpha.ListBigQueryLinksRequest; - /** - * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. - * @param message AudienceSequenceStep message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListBigQueryLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListBigQueryLinksRequest + * @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.analytics.admin.v1alpha.ListBigQueryLinksRequest; - /** - * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. - * @param message AudienceSequenceStep message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a ListBigQueryLinksRequest 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); - /** - * Decodes an AudienceSequenceStep message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AudienceSequenceStep - * @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.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + /** + * Creates a ListBigQueryLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListBigQueryLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListBigQueryLinksRequest; - /** - * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AudienceSequenceStep - * @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.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + /** + * Creates a plain object from a ListBigQueryLinksRequest message. Also converts values to other types if specified. + * @param message ListBigQueryLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListBigQueryLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies an AudienceSequenceStep 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); + /** + * Converts this ListBigQueryLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates an AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AudienceSequenceStep - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + /** + * Gets the default type url for ListBigQueryLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. - * @param message AudienceSequenceStep - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ListBigQueryLinksResponse. */ + interface IListBigQueryLinksResponse { - /** - * Converts this AudienceSequenceStep to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AudienceSequenceStep - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of an AudienceFilterClause. */ - interface IAudienceFilterClause { - - /** AudienceFilterClause simpleFilter */ - simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); - - /** AudienceFilterClause sequenceFilter */ - sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); + /** ListBigQueryLinksResponse bigqueryLinks */ + bigqueryLinks?: (google.analytics.admin.v1alpha.IBigQueryLink[]|null); - /** AudienceFilterClause clauseType */ - clauseType?: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null); + /** ListBigQueryLinksResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an AudienceFilterClause. */ - class AudienceFilterClause implements IAudienceFilterClause { + /** Represents a ListBigQueryLinksResponse. */ + class ListBigQueryLinksResponse implements IListBigQueryLinksResponse { /** - * Constructs a new AudienceFilterClause. + * Constructs a new ListBigQueryLinksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause); - - /** AudienceFilterClause simpleFilter. */ - public simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); - - /** AudienceFilterClause sequenceFilter. */ - public sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); + constructor(properties?: google.analytics.admin.v1alpha.IListBigQueryLinksResponse); - /** AudienceFilterClause clauseType. */ - public clauseType: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType); + /** ListBigQueryLinksResponse bigqueryLinks. */ + public bigqueryLinks: google.analytics.admin.v1alpha.IBigQueryLink[]; - /** AudienceFilterClause filter. */ - public filter?: ("simpleFilter"|"sequenceFilter"); + /** ListBigQueryLinksResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new AudienceFilterClause instance using the specified properties. + * Creates a new ListBigQueryLinksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceFilterClause instance + * @returns ListBigQueryLinksResponse instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause): google.analytics.admin.v1alpha.AudienceFilterClause; + public static create(properties?: google.analytics.admin.v1alpha.IListBigQueryLinksResponse): google.analytics.admin.v1alpha.ListBigQueryLinksResponse; /** - * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. - * @param message AudienceFilterClause message or plain object to encode + * Encodes the specified ListBigQueryLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListBigQueryLinksResponse.verify|verify} messages. + * @param message ListBigQueryLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IListBigQueryLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. - * @param message AudienceFilterClause message or plain object to encode + * Encodes the specified ListBigQueryLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListBigQueryLinksResponse.verify|verify} messages. + * @param message ListBigQueryLinksResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListBigQueryLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceFilterClause message from the specified reader or buffer. + * Decodes a ListBigQueryLinksResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceFilterClause + * @returns ListBigQueryLinksResponse * @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.analytics.admin.v1alpha.AudienceFilterClause; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListBigQueryLinksResponse; /** - * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. + * Decodes a ListBigQueryLinksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceFilterClause + * @returns ListBigQueryLinksResponse * @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.analytics.admin.v1alpha.AudienceFilterClause; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListBigQueryLinksResponse; /** - * Verifies an AudienceFilterClause message. + * Verifies a ListBigQueryLinksResponse 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 an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. + * Creates a ListBigQueryLinksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceFilterClause + * @returns ListBigQueryLinksResponse */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterClause; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListBigQueryLinksResponse; /** - * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. - * @param message AudienceFilterClause + * Creates a plain object from a ListBigQueryLinksResponse message. Also converts values to other types if specified. + * @param message ListBigQueryLinksResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterClause, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ListBigQueryLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceFilterClause to JSON. + * Converts this ListBigQueryLinksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceFilterClause + * Gets the default type url for ListBigQueryLinksResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AudienceFilterClause { - - /** AudienceClauseType enum. */ - enum AudienceClauseType { - AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0, - INCLUDE = 1, - EXCLUDE = 2 - } + /** AudienceFilterScope enum. */ + enum AudienceFilterScope { + AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0, + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1, + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2, + AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3 } - /** Properties of an AudienceEventTrigger. */ - interface IAudienceEventTrigger { + /** Properties of an AudienceDimensionOrMetricFilter. */ + interface IAudienceDimensionOrMetricFilter { - /** AudienceEventTrigger eventName */ - eventName?: (string|null); + /** AudienceDimensionOrMetricFilter stringFilter */ + stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); - /** AudienceEventTrigger logCondition */ - logCondition?: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null); + /** AudienceDimensionOrMetricFilter inListFilter */ + inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); + + /** AudienceDimensionOrMetricFilter numericFilter */ + numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); + + /** AudienceDimensionOrMetricFilter betweenFilter */ + betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); + + /** AudienceDimensionOrMetricFilter fieldName */ + fieldName?: (string|null); + + /** AudienceDimensionOrMetricFilter atAnyPointInTime */ + atAnyPointInTime?: (boolean|null); + + /** AudienceDimensionOrMetricFilter inAnyNDayPeriod */ + inAnyNDayPeriod?: (number|null); } - /** Represents an AudienceEventTrigger. */ - class AudienceEventTrigger implements IAudienceEventTrigger { + /** Represents an AudienceDimensionOrMetricFilter. */ + class AudienceDimensionOrMetricFilter implements IAudienceDimensionOrMetricFilter { /** - * Constructs a new AudienceEventTrigger. + * Constructs a new AudienceDimensionOrMetricFilter. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter); - /** AudienceEventTrigger eventName. */ - public eventName: string; + /** AudienceDimensionOrMetricFilter stringFilter. */ + public stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); - /** AudienceEventTrigger logCondition. */ - public logCondition: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition); + /** AudienceDimensionOrMetricFilter inListFilter. */ + public inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); + + /** AudienceDimensionOrMetricFilter numericFilter. */ + public numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); + + /** AudienceDimensionOrMetricFilter betweenFilter. */ + public betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); + + /** AudienceDimensionOrMetricFilter fieldName. */ + public fieldName: string; + + /** AudienceDimensionOrMetricFilter atAnyPointInTime. */ + public atAnyPointInTime: boolean; + + /** AudienceDimensionOrMetricFilter inAnyNDayPeriod. */ + public inAnyNDayPeriod: number; + + /** AudienceDimensionOrMetricFilter oneFilter. */ + public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"); /** - * Creates a new AudienceEventTrigger instance using the specified properties. + * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceEventTrigger instance + * @returns AudienceDimensionOrMetricFilter instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger): google.analytics.admin.v1alpha.AudienceEventTrigger; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; /** - * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. - * @param message AudienceEventTrigger message or plain object to encode + * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @param message AudienceDimensionOrMetricFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. - * @param message AudienceEventTrigger message or plain object to encode + * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @param message AudienceDimensionOrMetricFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceEventTrigger message from the specified reader or buffer. + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceEventTrigger + * @returns AudienceDimensionOrMetricFilter * @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.analytics.admin.v1alpha.AudienceEventTrigger; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; /** - * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceEventTrigger + * @returns AudienceDimensionOrMetricFilter * @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.analytics.admin.v1alpha.AudienceEventTrigger; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; /** - * Verifies an AudienceEventTrigger message. + * Verifies an AudienceDimensionOrMetricFilter 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 an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceEventTrigger + * @returns AudienceDimensionOrMetricFilter */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventTrigger; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; /** - * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. - * @param message AudienceEventTrigger + * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. + * @param message AudienceDimensionOrMetricFilter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceEventTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceEventTrigger to JSON. + * Converts this AudienceDimensionOrMetricFilter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceEventTrigger + * Gets the default type url for AudienceDimensionOrMetricFilter * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AudienceEventTrigger { + namespace AudienceDimensionOrMetricFilter { - /** LogCondition enum. */ - enum LogCondition { - LOG_CONDITION_UNSPECIFIED = 0, - AUDIENCE_JOINED = 1, - AUDIENCE_MEMBERSHIP_RENEWED = 2 - } - } + /** Properties of a StringFilter. */ + interface IStringFilter { - /** Properties of an Audience. */ - interface IAudience { + /** StringFilter matchType */ + matchType?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null); - /** Audience name */ - name?: (string|null); + /** StringFilter value */ + value?: (string|null); - /** Audience displayName */ - displayName?: (string|null); + /** StringFilter caseSensitive */ + caseSensitive?: (boolean|null); + } - /** Audience description */ - description?: (string|null); + /** Represents a StringFilter. */ + class StringFilter implements IStringFilter { - /** Audience membershipDurationDays */ - membershipDurationDays?: (number|null); + /** + * Constructs a new StringFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter); - /** Audience adsPersonalizationEnabled */ - adsPersonalizationEnabled?: (boolean|null); + /** StringFilter matchType. */ + public matchType: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType); - /** Audience eventTrigger */ - eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + /** StringFilter value. */ + public value: string; - /** Audience exclusionDurationMode */ - exclusionDurationMode?: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null); + /** StringFilter caseSensitive. */ + public caseSensitive: boolean; - /** Audience filterClauses */ - filterClauses?: (google.analytics.admin.v1alpha.IAudienceFilterClause[]|null); - } + /** + * Creates a new StringFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns StringFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; - /** Represents an Audience. */ - class Audience implements IAudience { + /** + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Audience. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IAudience); + /** + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StringFilter + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Decodes a StringFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StringFilter + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Verifies a StringFilter 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 StringFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StringFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @param message StringFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StringFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StringFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StringFilter { + + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + EXACT = 1, + BEGINS_WITH = 2, + ENDS_WITH = 3, + CONTAINS = 4, + FULL_REGEXP = 5 + } + } + + /** Properties of an InListFilter. */ + interface IInListFilter { + + /** InListFilter values */ + values?: (string[]|null); + + /** InListFilter caseSensitive */ + caseSensitive?: (boolean|null); + } + + /** Represents an InListFilter. */ + class InListFilter implements IInListFilter { + + /** + * Constructs a new InListFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter); + + /** InListFilter values. */ + public values: string[]; + + /** InListFilter caseSensitive. */ + public caseSensitive: boolean; + + /** + * Creates a new InListFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns InListFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InListFilter + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InListFilter + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Verifies an InListFilter 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 an InListFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InListFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @param message InListFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InListFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InListFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NumericValue. */ + interface INumericValue { + + /** NumericValue int64Value */ + int64Value?: (number|Long|string|null); + + /** NumericValue doubleValue */ + doubleValue?: (number|null); + } + + /** Represents a NumericValue. */ + class NumericValue implements INumericValue { + + /** + * Constructs a new NumericValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue); + + /** NumericValue int64Value. */ + public int64Value?: (number|Long|string|null); + + /** NumericValue doubleValue. */ + public doubleValue?: (number|null); + + /** NumericValue oneValue. */ + public oneValue?: ("int64Value"|"doubleValue"); + + /** + * Creates a new NumericValue instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericValue instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @param message NumericValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @param message NumericValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericValue + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Decodes a NumericValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericValue + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Verifies a NumericValue 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 NumericValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericValue + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Creates a plain object from a NumericValue message. Also converts values to other types if specified. + * @param message NumericValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NumericValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NumericFilter. */ + interface INumericFilter { + + /** NumericFilter operation */ + operation?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|null); + + /** NumericFilter value */ + value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + } + + /** Represents a NumericFilter. */ + class NumericFilter implements INumericFilter { + + /** + * Constructs a new NumericFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter); + + /** NumericFilter operation. */ + public operation: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation); + + /** NumericFilter value. */ + public value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + + /** + * Creates a new NumericFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + + /** + * Encodes the specified NumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. + * @param message NumericFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. + * @param message NumericFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericFilter + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + + /** + * Decodes a NumericFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericFilter + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + + /** + * Verifies a NumericFilter 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 NumericFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + + /** + * Creates a plain object from a NumericFilter message. Also converts values to other types if specified. + * @param message NumericFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NumericFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NumericFilter { + + /** Operation enum. */ + enum Operation { + OPERATION_UNSPECIFIED = 0, + EQUAL = 1, + LESS_THAN = 2, + GREATER_THAN = 4 + } + } + + /** Properties of a BetweenFilter. */ + interface IBetweenFilter { + + /** BetweenFilter fromValue */ + fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + + /** BetweenFilter toValue */ + toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + } + + /** Represents a BetweenFilter. */ + class BetweenFilter implements IBetweenFilter { + + /** + * Constructs a new BetweenFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter); + + /** BetweenFilter fromValue. */ + public fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + + /** BetweenFilter toValue. */ + public toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + + /** + * Creates a new BetweenFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns BetweenFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + + /** + * Encodes the specified BetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. + * @param message BetweenFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. + * @param message BetweenFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BetweenFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BetweenFilter + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + + /** + * Decodes a BetweenFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BetweenFilter + * @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.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + + /** + * Verifies a BetweenFilter 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 BetweenFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BetweenFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + + /** + * Creates a plain object from a BetweenFilter message. Also converts values to other types if specified. + * @param message BetweenFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BetweenFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BetweenFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an AudienceEventFilter. */ + interface IAudienceEventFilter { + + /** AudienceEventFilter eventName */ + eventName?: (string|null); + + /** AudienceEventFilter eventParameterFilterExpression */ + eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + } + + /** Represents an AudienceEventFilter. */ + class AudienceEventFilter implements IAudienceEventFilter { + + /** + * Constructs a new AudienceEventFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter); + + /** AudienceEventFilter eventName. */ + public eventName: string; + + /** AudienceEventFilter eventParameterFilterExpression. */ + public eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** + * Creates a new AudienceEventFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceEventFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter): google.analytics.admin.v1alpha.AudienceEventFilter; + + /** + * Encodes the specified AudienceEventFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. + * @param message AudienceEventFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceEventFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. + * @param message AudienceEventFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceEventFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceEventFilter + * @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.analytics.admin.v1alpha.AudienceEventFilter; + + /** + * Decodes an AudienceEventFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceEventFilter + * @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.analytics.admin.v1alpha.AudienceEventFilter; + + /** + * Verifies an AudienceEventFilter 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 an AudienceEventFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceEventFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventFilter; + + /** + * Creates a plain object from an AudienceEventFilter message. Also converts values to other types if specified. + * @param message AudienceEventFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceEventFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceEventFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceEventFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AudienceFilterExpression. */ + interface IAudienceFilterExpression { + + /** AudienceFilterExpression andGroup */ + andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); + + /** AudienceFilterExpression orGroup */ + orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); + + /** AudienceFilterExpression notExpression */ + notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** AudienceFilterExpression dimensionOrMetricFilter */ + dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); + + /** AudienceFilterExpression eventFilter */ + eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); + } + + /** Represents an AudienceFilterExpression. */ + class AudienceFilterExpression implements IAudienceFilterExpression { + + /** + * Constructs a new AudienceFilterExpression. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression); + + /** AudienceFilterExpression andGroup. */ + public andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); + + /** AudienceFilterExpression orGroup. */ + public orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); + + /** AudienceFilterExpression notExpression. */ + public notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** AudienceFilterExpression dimensionOrMetricFilter. */ + public dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); + + /** AudienceFilterExpression eventFilter. */ + public eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); + + /** AudienceFilterExpression expr. */ + public expr?: ("andGroup"|"orGroup"|"notExpression"|"dimensionOrMetricFilter"|"eventFilter"); + + /** + * Creates a new AudienceFilterExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceFilterExpression instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression): google.analytics.admin.v1alpha.AudienceFilterExpression; + + /** + * Encodes the specified AudienceFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. + * @param message AudienceFilterExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. + * @param message AudienceFilterExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceFilterExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceFilterExpression + * @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.analytics.admin.v1alpha.AudienceFilterExpression; + + /** + * Decodes an AudienceFilterExpression message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceFilterExpression + * @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.analytics.admin.v1alpha.AudienceFilterExpression; + + /** + * Verifies an AudienceFilterExpression 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 an AudienceFilterExpression message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceFilterExpression + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpression; + + /** + * Creates a plain object from an AudienceFilterExpression message. Also converts values to other types if specified. + * @param message AudienceFilterExpression + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpression, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceFilterExpression to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceFilterExpression + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AudienceFilterExpressionList. */ + interface IAudienceFilterExpressionList { + + /** AudienceFilterExpressionList filterExpressions */ + filterExpressions?: (google.analytics.admin.v1alpha.IAudienceFilterExpression[]|null); + } + + /** Represents an AudienceFilterExpressionList. */ + class AudienceFilterExpressionList implements IAudienceFilterExpressionList { + + /** + * Constructs a new AudienceFilterExpressionList. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList); + + /** AudienceFilterExpressionList filterExpressions. */ + public filterExpressions: google.analytics.admin.v1alpha.IAudienceFilterExpression[]; + + /** + * Creates a new AudienceFilterExpressionList instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceFilterExpressionList instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList): google.analytics.admin.v1alpha.AudienceFilterExpressionList; + + /** + * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * @param message AudienceFilterExpressionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * @param message AudienceFilterExpressionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceFilterExpressionList + * @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.analytics.admin.v1alpha.AudienceFilterExpressionList; + + /** + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceFilterExpressionList + * @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.analytics.admin.v1alpha.AudienceFilterExpressionList; + + /** + * Verifies an AudienceFilterExpressionList 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 an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceFilterExpressionList + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpressionList; + + /** + * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. + * @param message AudienceFilterExpressionList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpressionList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceFilterExpressionList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceFilterExpressionList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AudienceSimpleFilter. */ + interface IAudienceSimpleFilter { + + /** AudienceSimpleFilter scope */ + scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); + + /** AudienceSimpleFilter filterExpression */ + filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + } + + /** Represents an AudienceSimpleFilter. */ + class AudienceSimpleFilter implements IAudienceSimpleFilter { + + /** + * Constructs a new AudienceSimpleFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter); + + /** AudienceSimpleFilter scope. */ + public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); + + /** AudienceSimpleFilter filterExpression. */ + public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** + * Creates a new AudienceSimpleFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceSimpleFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter): google.analytics.admin.v1alpha.AudienceSimpleFilter; + + /** + * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * @param message AudienceSimpleFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * @param message AudienceSimpleFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceSimpleFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceSimpleFilter + * @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.analytics.admin.v1alpha.AudienceSimpleFilter; + + /** + * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceSimpleFilter + * @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.analytics.admin.v1alpha.AudienceSimpleFilter; + + /** + * Verifies an AudienceSimpleFilter 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 an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceSimpleFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSimpleFilter; + + /** + * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. + * @param message AudienceSimpleFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceSimpleFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceSimpleFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceSimpleFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AudienceSequenceFilter. */ + interface IAudienceSequenceFilter { + + /** AudienceSequenceFilter scope */ + scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); + + /** AudienceSequenceFilter sequenceMaximumDuration */ + sequenceMaximumDuration?: (google.protobuf.IDuration|null); + + /** AudienceSequenceFilter sequenceSteps */ + sequenceSteps?: (google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]|null); + } + + /** Represents an AudienceSequenceFilter. */ + class AudienceSequenceFilter implements IAudienceSequenceFilter { + + /** + * Constructs a new AudienceSequenceFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter); + + /** AudienceSequenceFilter scope. */ + public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); + + /** AudienceSequenceFilter sequenceMaximumDuration. */ + public sequenceMaximumDuration?: (google.protobuf.IDuration|null); + + /** AudienceSequenceFilter sequenceSteps. */ + public sequenceSteps: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]; + + /** + * Creates a new AudienceSequenceFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceSequenceFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter): google.analytics.admin.v1alpha.AudienceSequenceFilter; + + /** + * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * @param message AudienceSequenceFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * @param message AudienceSequenceFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceSequenceFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceSequenceFilter + * @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.analytics.admin.v1alpha.AudienceSequenceFilter; + + /** + * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceSequenceFilter + * @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.analytics.admin.v1alpha.AudienceSequenceFilter; + + /** + * Verifies an AudienceSequenceFilter 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 an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceSequenceFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter; + + /** + * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. + * @param message AudienceSequenceFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceSequenceFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceSequenceFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AudienceSequenceFilter { + + /** Properties of an AudienceSequenceStep. */ + interface IAudienceSequenceStep { + + /** AudienceSequenceStep scope */ + scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); + + /** AudienceSequenceStep immediatelyFollows */ + immediatelyFollows?: (boolean|null); + + /** AudienceSequenceStep constraintDuration */ + constraintDuration?: (google.protobuf.IDuration|null); + + /** AudienceSequenceStep filterExpression */ + filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + } + + /** Represents an AudienceSequenceStep. */ + class AudienceSequenceStep implements IAudienceSequenceStep { + + /** + * Constructs a new AudienceSequenceStep. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep); + + /** AudienceSequenceStep scope. */ + public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); + + /** AudienceSequenceStep immediatelyFollows. */ + public immediatelyFollows: boolean; + + /** AudienceSequenceStep constraintDuration. */ + public constraintDuration?: (google.protobuf.IDuration|null); + + /** AudienceSequenceStep filterExpression. */ + public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** + * Creates a new AudienceSequenceStep instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceSequenceStep instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + + /** + * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @param message AudienceSequenceStep message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @param message AudienceSequenceStep message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceSequenceStep + * @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.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceSequenceStep + * @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.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + + /** + * Verifies an AudienceSequenceStep 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 an AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceSequenceStep + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + + /** + * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. + * @param message AudienceSequenceStep + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceSequenceStep to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceSequenceStep + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an AudienceFilterClause. */ + interface IAudienceFilterClause { + + /** AudienceFilterClause simpleFilter */ + simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); + + /** AudienceFilterClause sequenceFilter */ + sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); + + /** AudienceFilterClause clauseType */ + clauseType?: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null); + } + + /** Represents an AudienceFilterClause. */ + class AudienceFilterClause implements IAudienceFilterClause { + + /** + * Constructs a new AudienceFilterClause. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause); + + /** AudienceFilterClause simpleFilter. */ + public simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); + + /** AudienceFilterClause sequenceFilter. */ + public sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); + + /** AudienceFilterClause clauseType. */ + public clauseType: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType); + + /** AudienceFilterClause filter. */ + public filter?: ("simpleFilter"|"sequenceFilter"); + + /** + * Creates a new AudienceFilterClause instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceFilterClause instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause): google.analytics.admin.v1alpha.AudienceFilterClause; + + /** + * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * @param message AudienceFilterClause message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * @param message AudienceFilterClause message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceFilterClause message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceFilterClause + * @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.analytics.admin.v1alpha.AudienceFilterClause; + + /** + * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceFilterClause + * @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.analytics.admin.v1alpha.AudienceFilterClause; + + /** + * Verifies an AudienceFilterClause 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 an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceFilterClause + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterClause; + + /** + * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. + * @param message AudienceFilterClause + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterClause, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceFilterClause to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceFilterClause + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AudienceFilterClause { + + /** AudienceClauseType enum. */ + enum AudienceClauseType { + AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0, + INCLUDE = 1, + EXCLUDE = 2 + } + } + + /** Properties of an AudienceEventTrigger. */ + interface IAudienceEventTrigger { + + /** AudienceEventTrigger eventName */ + eventName?: (string|null); + + /** AudienceEventTrigger logCondition */ + logCondition?: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null); + } + + /** Represents an AudienceEventTrigger. */ + class AudienceEventTrigger implements IAudienceEventTrigger { + + /** + * Constructs a new AudienceEventTrigger. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger); + + /** AudienceEventTrigger eventName. */ + public eventName: string; + + /** AudienceEventTrigger logCondition. */ + public logCondition: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition); + + /** + * Creates a new AudienceEventTrigger instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceEventTrigger instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger): google.analytics.admin.v1alpha.AudienceEventTrigger; + + /** + * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * @param message AudienceEventTrigger message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * @param message AudienceEventTrigger message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceEventTrigger message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceEventTrigger + * @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.analytics.admin.v1alpha.AudienceEventTrigger; + + /** + * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceEventTrigger + * @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.analytics.admin.v1alpha.AudienceEventTrigger; + + /** + * Verifies an AudienceEventTrigger 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 an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceEventTrigger + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventTrigger; + + /** + * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. + * @param message AudienceEventTrigger + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceEventTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceEventTrigger to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceEventTrigger + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AudienceEventTrigger { + + /** LogCondition enum. */ + enum LogCondition { + LOG_CONDITION_UNSPECIFIED = 0, + AUDIENCE_JOINED = 1, + AUDIENCE_MEMBERSHIP_RENEWED = 2 + } + } + + /** Properties of an Audience. */ + interface IAudience { + + /** Audience name */ + name?: (string|null); + + /** Audience displayName */ + displayName?: (string|null); + + /** Audience description */ + description?: (string|null); + + /** Audience membershipDurationDays */ + membershipDurationDays?: (number|null); + + /** Audience adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (boolean|null); + + /** Audience eventTrigger */ + eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + + /** Audience exclusionDurationMode */ + exclusionDurationMode?: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null); + + /** Audience filterClauses */ + filterClauses?: (google.analytics.admin.v1alpha.IAudienceFilterClause[]|null); + } + + /** Represents an Audience. */ + class Audience implements IAudience { + + /** + * Constructs a new Audience. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudience); + + /** Audience name. */ + public name: string; + + /** Audience displayName. */ + public displayName: string; + + /** Audience description. */ + public description: string; + + /** Audience membershipDurationDays. */ + public membershipDurationDays: number; + + /** Audience adsPersonalizationEnabled. */ + public adsPersonalizationEnabled: boolean; + + /** Audience eventTrigger. */ + public eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + + /** Audience exclusionDurationMode. */ + public exclusionDurationMode: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode); + + /** Audience filterClauses. */ + public filterClauses: google.analytics.admin.v1alpha.IAudienceFilterClause[]; + + /** + * Creates a new Audience instance using the specified properties. + * @param [properties] Properties to set + * @returns Audience instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudience): google.analytics.admin.v1alpha.Audience; + + /** + * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. + * @param message Audience message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. + * @param message Audience message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Audience message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Audience + * @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.analytics.admin.v1alpha.Audience; + + /** + * Decodes an Audience message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Audience + * @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.analytics.admin.v1alpha.Audience; + + /** + * Verifies an Audience 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 an Audience message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Audience + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Audience; + + /** + * Creates a plain object from an Audience message. Also converts values to other types if specified. + * @param message Audience + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.Audience, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Audience to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Audience + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Audience { + + /** AudienceExclusionDurationMode enum. */ + enum AudienceExclusionDurationMode { + AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0, + EXCLUDE_TEMPORARILY = 1, + EXCLUDE_PERMANENTLY = 2 + } + } + + /** IndustryCategory enum. */ + enum IndustryCategory { + INDUSTRY_CATEGORY_UNSPECIFIED = 0, + AUTOMOTIVE = 1, + BUSINESS_AND_INDUSTRIAL_MARKETS = 2, + FINANCE = 3, + HEALTHCARE = 4, + TECHNOLOGY = 5, + TRAVEL = 6, + OTHER = 7, + ARTS_AND_ENTERTAINMENT = 8, + BEAUTY_AND_FITNESS = 9, + BOOKS_AND_LITERATURE = 10, + FOOD_AND_DRINK = 11, + GAMES = 12, + HOBBIES_AND_LEISURE = 13, + HOME_AND_GARDEN = 14, + INTERNET_AND_TELECOM = 15, + LAW_AND_GOVERNMENT = 16, + NEWS = 17, + ONLINE_COMMUNITIES = 18, + PEOPLE_AND_SOCIETY = 19, + PETS_AND_ANIMALS = 20, + REAL_ESTATE = 21, + REFERENCE = 22, + SCIENCE = 23, + SPORTS = 24, + JOBS_AND_EDUCATION = 25, + SHOPPING = 26 + } + + /** ServiceLevel enum. */ + enum ServiceLevel { + SERVICE_LEVEL_UNSPECIFIED = 0, + GOOGLE_ANALYTICS_STANDARD = 1, + GOOGLE_ANALYTICS_360 = 2 + } + + /** ActorType enum. */ + enum ActorType { + ACTOR_TYPE_UNSPECIFIED = 0, + USER = 1, + SYSTEM = 2, + SUPPORT = 3 + } + + /** ActionType enum. */ + enum ActionType { + ACTION_TYPE_UNSPECIFIED = 0, + CREATED = 1, + UPDATED = 2, + DELETED = 3 + } + + /** ChangeHistoryResourceType enum. */ + enum ChangeHistoryResourceType { + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, + ACCOUNT = 1, + PROPERTY = 2, + FIREBASE_LINK = 6, + GOOGLE_ADS_LINK = 7, + GOOGLE_SIGNALS_SETTINGS = 8, + CONVERSION_EVENT = 9, + MEASUREMENT_PROTOCOL_SECRET = 10, + CUSTOM_DIMENSION = 11, + CUSTOM_METRIC = 12, + DATA_RETENTION_SETTINGS = 13, + DISPLAY_VIDEO_360_ADVERTISER_LINK = 14, + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15, + SEARCH_ADS_360_LINK = 16, + DATA_STREAM = 18, + ATTRIBUTION_SETTINGS = 20, + EXPANDED_DATA_SET = 21, + CHANNEL_GROUP = 22 + } + + /** GoogleSignalsState enum. */ + enum GoogleSignalsState { + GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0, + GOOGLE_SIGNALS_ENABLED = 1, + GOOGLE_SIGNALS_DISABLED = 2 + } + + /** GoogleSignalsConsent enum. */ + enum GoogleSignalsConsent { + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0, + GOOGLE_SIGNALS_CONSENT_CONSENTED = 2, + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 + } + + /** LinkProposalInitiatingProduct enum. */ + enum LinkProposalInitiatingProduct { + LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0, + GOOGLE_ANALYTICS = 1, + LINKED_PRODUCT = 2 + } + + /** LinkProposalState enum. */ + enum LinkProposalState { + LINK_PROPOSAL_STATE_UNSPECIFIED = 0, + AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1, + AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2, + WITHDRAWN = 3, + DECLINED = 4, + EXPIRED = 5, + OBSOLETE = 6 + } + + /** PropertyType enum. */ + enum PropertyType { + PROPERTY_TYPE_UNSPECIFIED = 0, + PROPERTY_TYPE_ORDINARY = 1, + PROPERTY_TYPE_SUBPROPERTY = 2, + PROPERTY_TYPE_ROLLUP = 3 + } + + /** Properties of an Account. */ + interface IAccount { + + /** Account name */ + name?: (string|null); + + /** Account createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName */ + displayName?: (string|null); + + /** Account regionCode */ + regionCode?: (string|null); + + /** Account deleted */ + deleted?: (boolean|null); + } + + /** Represents an Account. */ + class Account implements IAccount { + + /** + * Constructs a new Account. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAccount); + + /** Account name. */ + public name: string; + + /** Account createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Account updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Account displayName. */ + public displayName: string; + + /** Account regionCode. */ + public regionCode: string; + + /** Account deleted. */ + public deleted: boolean; + + /** + * Creates a new Account instance using the specified properties. + * @param [properties] Properties to set + * @returns Account instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAccount): google.analytics.admin.v1alpha.Account; + + /** + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @param message Account message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * @param message Account message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Account message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Account + * @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.analytics.admin.v1alpha.Account; + + /** + * Decodes an Account message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Account + * @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.analytics.admin.v1alpha.Account; + + /** + * Verifies an Account 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 an Account message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Account + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Account; + + /** + * Creates a plain object from an Account message. Also converts values to other types if specified. + * @param message Account + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Account to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Account + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Property. */ + interface IProperty { + + /** Property name */ + name?: (string|null); + + /** Property propertyType */ + propertyType?: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType|null); + + /** Property createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent */ + parent?: (string|null); + + /** Property displayName */ + displayName?: (string|null); + + /** Property industryCategory */ + industryCategory?: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory|null); + + /** Property timeZone */ + timeZone?: (string|null); + + /** Property currencyCode */ + currencyCode?: (string|null); + + /** Property serviceLevel */ + serviceLevel?: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel|null); + + /** Property deleteTime */ + deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime */ + expireTime?: (google.protobuf.ITimestamp|null); + + /** Property account */ + account?: (string|null); + } + + /** Represents a Property. */ + class Property implements IProperty { + + /** + * Constructs a new Property. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IProperty); + + /** Property name. */ + public name: string; + + /** Property propertyType. */ + public propertyType: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType); + + /** Property createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Property updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Property parent. */ + public parent: string; + + /** Property displayName. */ + public displayName: string; + + /** Property industryCategory. */ + public industryCategory: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory); + + /** Property timeZone. */ + public timeZone: string; + + /** Property currencyCode. */ + public currencyCode: string; + + /** Property serviceLevel. */ + public serviceLevel: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel); + + /** Property deleteTime. */ + public deleteTime?: (google.protobuf.ITimestamp|null); + + /** Property expireTime. */ + public expireTime?: (google.protobuf.ITimestamp|null); + + /** Property account. */ + public account: string; + + /** + * Creates a new Property instance using the specified properties. + * @param [properties] Properties to set + * @returns Property instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IProperty): google.analytics.admin.v1alpha.Property; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Property message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Property + * @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.analytics.admin.v1alpha.Property; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Property + * @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.analytics.admin.v1alpha.Property; + + /** + * Verifies a Property 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 Property message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Property + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Property; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @param message Property + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Property to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Property + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DataStream. */ + interface IDataStream { + + /** DataStream webStreamData */ + webStreamData?: (google.analytics.admin.v1alpha.DataStream.IWebStreamData|null); + + /** DataStream androidAppStreamData */ + androidAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null); + + /** DataStream iosAppStreamData */ + iosAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null); + + /** DataStream name */ + name?: (string|null); + + /** DataStream type */ + type?: (google.analytics.admin.v1alpha.DataStream.DataStreamType|keyof typeof google.analytics.admin.v1alpha.DataStream.DataStreamType|null); + + /** DataStream displayName */ + displayName?: (string|null); + + /** DataStream createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DataStream updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a DataStream. */ + class DataStream implements IDataStream { + + /** + * Constructs a new DataStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDataStream); + + /** DataStream webStreamData. */ + public webStreamData?: (google.analytics.admin.v1alpha.DataStream.IWebStreamData|null); + + /** DataStream androidAppStreamData. */ + public androidAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null); + + /** DataStream iosAppStreamData. */ + public iosAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null); + + /** DataStream name. */ + public name: string; + + /** DataStream type. */ + public type: (google.analytics.admin.v1alpha.DataStream.DataStreamType|keyof typeof google.analytics.admin.v1alpha.DataStream.DataStreamType); + + /** DataStream displayName. */ + public displayName: string; + + /** DataStream createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** DataStream updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** DataStream streamData. */ + public streamData?: ("webStreamData"|"androidAppStreamData"|"iosAppStreamData"); + + /** + * Creates a new DataStream instance using the specified properties. + * @param [properties] Properties to set + * @returns DataStream instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDataStream): google.analytics.admin.v1alpha.DataStream; + + /** + * Encodes the specified DataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. + * @param message DataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. + * @param message DataStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataStream + * @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.analytics.admin.v1alpha.DataStream; + + /** + * Decodes a DataStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataStream + * @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.analytics.admin.v1alpha.DataStream; + + /** + * Verifies a DataStream 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 DataStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataStream + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream; + + /** + * Creates a plain object from a DataStream message. Also converts values to other types if specified. + * @param message DataStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataStream + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DataStream { - /** Audience name. */ - public name: string; + /** Properties of a WebStreamData. */ + interface IWebStreamData { - /** Audience displayName. */ - public displayName: string; + /** WebStreamData measurementId */ + measurementId?: (string|null); - /** Audience description. */ - public description: string; + /** WebStreamData firebaseAppId */ + firebaseAppId?: (string|null); - /** Audience membershipDurationDays. */ - public membershipDurationDays: number; + /** WebStreamData defaultUri */ + defaultUri?: (string|null); + } - /** Audience adsPersonalizationEnabled. */ - public adsPersonalizationEnabled: boolean; + /** Represents a WebStreamData. */ + class WebStreamData implements IWebStreamData { - /** Audience eventTrigger. */ - public eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + /** + * Constructs a new WebStreamData. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.DataStream.IWebStreamData); - /** Audience exclusionDurationMode. */ - public exclusionDurationMode: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode); + /** WebStreamData measurementId. */ + public measurementId: string; - /** Audience filterClauses. */ - public filterClauses: google.analytics.admin.v1alpha.IAudienceFilterClause[]; + /** WebStreamData firebaseAppId. */ + public firebaseAppId: string; - /** - * Creates a new Audience instance using the specified properties. - * @param [properties] Properties to set - * @returns Audience instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IAudience): google.analytics.admin.v1alpha.Audience; + /** WebStreamData defaultUri. */ + public defaultUri: string; - /** - * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. - * @param message Audience message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new WebStreamData instance using the specified properties. + * @param [properties] Properties to set + * @returns WebStreamData instance + */ + public static create(properties?: google.analytics.admin.v1alpha.DataStream.IWebStreamData): google.analytics.admin.v1alpha.DataStream.WebStreamData; - /** - * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. - * @param message Audience message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified WebStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. + * @param message WebStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.DataStream.IWebStreamData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an Audience message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Audience - * @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.analytics.admin.v1alpha.Audience; + /** + * Encodes the specified WebStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. + * @param message WebStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.DataStream.IWebStreamData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an Audience message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Audience - * @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.analytics.admin.v1alpha.Audience; + /** + * Decodes a WebStreamData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WebStreamData + * @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.analytics.admin.v1alpha.DataStream.WebStreamData; + + /** + * Decodes a WebStreamData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WebStreamData + * @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.analytics.admin.v1alpha.DataStream.WebStreamData; + + /** + * Verifies a WebStreamData 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 WebStreamData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WebStreamData + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream.WebStreamData; + + /** + * Creates a plain object from a WebStreamData message. Also converts values to other types if specified. + * @param message WebStreamData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataStream.WebStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WebStreamData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WebStreamData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AndroidAppStreamData. */ + interface IAndroidAppStreamData { + + /** AndroidAppStreamData firebaseAppId */ + firebaseAppId?: (string|null); + + /** AndroidAppStreamData packageName */ + packageName?: (string|null); + } + + /** Represents an AndroidAppStreamData. */ + class AndroidAppStreamData implements IAndroidAppStreamData { + + /** + * Constructs a new AndroidAppStreamData. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData); + + /** AndroidAppStreamData firebaseAppId. */ + public firebaseAppId: string; + + /** AndroidAppStreamData packageName. */ + public packageName: string; + + /** + * Creates a new AndroidAppStreamData instance using the specified properties. + * @param [properties] Properties to set + * @returns AndroidAppStreamData instance + */ + public static create(properties?: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData): google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; + + /** + * Encodes the specified AndroidAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * @param message AndroidAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AndroidAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * @param message AndroidAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AndroidAppStreamData + * @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.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AndroidAppStreamData + * @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.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; + + /** + * Verifies an AndroidAppStreamData 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 an AndroidAppStreamData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AndroidAppStreamData + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; + + /** + * Creates a plain object from an AndroidAppStreamData message. Also converts values to other types if specified. + * @param message AndroidAppStreamData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AndroidAppStreamData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AndroidAppStreamData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an IosAppStreamData. */ + interface IIosAppStreamData { - /** - * Verifies an Audience 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); + /** IosAppStreamData firebaseAppId */ + firebaseAppId?: (string|null); - /** - * Creates an Audience message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Audience - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Audience; + /** IosAppStreamData bundleId */ + bundleId?: (string|null); + } - /** - * Creates a plain object from an Audience message. Also converts values to other types if specified. - * @param message Audience - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.Audience, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an IosAppStreamData. */ + class IosAppStreamData implements IIosAppStreamData { - /** - * Converts this Audience to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new IosAppStreamData. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData); - /** - * Gets the default type url for Audience - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** IosAppStreamData firebaseAppId. */ + public firebaseAppId: string; - namespace Audience { + /** IosAppStreamData bundleId. */ + public bundleId: string; - /** AudienceExclusionDurationMode enum. */ - enum AudienceExclusionDurationMode { - AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0, - EXCLUDE_TEMPORARILY = 1, - EXCLUDE_PERMANENTLY = 2 - } - } + /** + * Creates a new IosAppStreamData instance using the specified properties. + * @param [properties] Properties to set + * @returns IosAppStreamData instance + */ + public static create(properties?: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData): google.analytics.admin.v1alpha.DataStream.IosAppStreamData; - /** IndustryCategory enum. */ - enum IndustryCategory { - INDUSTRY_CATEGORY_UNSPECIFIED = 0, - AUTOMOTIVE = 1, - BUSINESS_AND_INDUSTRIAL_MARKETS = 2, - FINANCE = 3, - HEALTHCARE = 4, - TECHNOLOGY = 5, - TRAVEL = 6, - OTHER = 7, - ARTS_AND_ENTERTAINMENT = 8, - BEAUTY_AND_FITNESS = 9, - BOOKS_AND_LITERATURE = 10, - FOOD_AND_DRINK = 11, - GAMES = 12, - HOBBIES_AND_LEISURE = 13, - HOME_AND_GARDEN = 14, - INTERNET_AND_TELECOM = 15, - LAW_AND_GOVERNMENT = 16, - NEWS = 17, - ONLINE_COMMUNITIES = 18, - PEOPLE_AND_SOCIETY = 19, - PETS_AND_ANIMALS = 20, - REAL_ESTATE = 21, - REFERENCE = 22, - SCIENCE = 23, - SPORTS = 24, - JOBS_AND_EDUCATION = 25, - SHOPPING = 26 - } + /** + * Encodes the specified IosAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. + * @param message IosAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; - /** ServiceLevel enum. */ - enum ServiceLevel { - SERVICE_LEVEL_UNSPECIFIED = 0, - GOOGLE_ANALYTICS_STANDARD = 1, - GOOGLE_ANALYTICS_360 = 2 - } + /** + * Encodes the specified IosAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. + * @param message IosAppStreamData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; - /** ActorType enum. */ - enum ActorType { - ACTOR_TYPE_UNSPECIFIED = 0, - USER = 1, - SYSTEM = 2, - SUPPORT = 3 - } + /** + * Decodes an IosAppStreamData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IosAppStreamData + * @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.analytics.admin.v1alpha.DataStream.IosAppStreamData; - /** ActionType enum. */ - enum ActionType { - ACTION_TYPE_UNSPECIFIED = 0, - CREATED = 1, - UPDATED = 2, - DELETED = 3 - } + /** + * Decodes an IosAppStreamData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IosAppStreamData + * @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.analytics.admin.v1alpha.DataStream.IosAppStreamData; - /** ChangeHistoryResourceType enum. */ - enum ChangeHistoryResourceType { - CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0, - ACCOUNT = 1, - PROPERTY = 2, - FIREBASE_LINK = 6, - GOOGLE_ADS_LINK = 7, - GOOGLE_SIGNALS_SETTINGS = 8, - CONVERSION_EVENT = 9, - MEASUREMENT_PROTOCOL_SECRET = 10, - CUSTOM_DIMENSION = 11, - CUSTOM_METRIC = 12, - DATA_RETENTION_SETTINGS = 13, - DISPLAY_VIDEO_360_ADVERTISER_LINK = 14, - DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15, - SEARCH_ADS_360_LINK = 16, - DATA_STREAM = 18, - ATTRIBUTION_SETTINGS = 20 - } + /** + * Verifies an IosAppStreamData 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); - /** GoogleSignalsState enum. */ - enum GoogleSignalsState { - GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0, - GOOGLE_SIGNALS_ENABLED = 1, - GOOGLE_SIGNALS_DISABLED = 2 - } + /** + * Creates an IosAppStreamData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IosAppStreamData + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream.IosAppStreamData; - /** GoogleSignalsConsent enum. */ - enum GoogleSignalsConsent { - GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0, - GOOGLE_SIGNALS_CONSENT_CONSENTED = 2, - GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 - } + /** + * Creates a plain object from an IosAppStreamData message. Also converts values to other types if specified. + * @param message IosAppStreamData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataStream.IosAppStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** LinkProposalInitiatingProduct enum. */ - enum LinkProposalInitiatingProduct { - LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0, - GOOGLE_ANALYTICS = 1, - LINKED_PRODUCT = 2 - } + /** + * Converts this IosAppStreamData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** LinkProposalState enum. */ - enum LinkProposalState { - LINK_PROPOSAL_STATE_UNSPECIFIED = 0, - AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1, - AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2, - WITHDRAWN = 3, - DECLINED = 4, - EXPIRED = 5, - OBSOLETE = 6 - } + /** + * Gets the default type url for IosAppStreamData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PropertyType enum. */ - enum PropertyType { - PROPERTY_TYPE_UNSPECIFIED = 0, - PROPERTY_TYPE_ORDINARY = 1, - PROPERTY_TYPE_SUBPROPERTY = 2, - PROPERTY_TYPE_ROLLUP = 3 + /** DataStreamType enum. */ + enum DataStreamType { + DATA_STREAM_TYPE_UNSPECIFIED = 0, + WEB_DATA_STREAM = 1, + ANDROID_APP_DATA_STREAM = 2, + IOS_APP_DATA_STREAM = 3 + } } - /** Properties of an Account. */ - interface IAccount { + /** Properties of a UserLink. */ + interface IUserLink { - /** Account name */ + /** UserLink name */ name?: (string|null); - /** Account createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Account updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Account displayName */ - displayName?: (string|null); - - /** Account regionCode */ - regionCode?: (string|null); + /** UserLink emailAddress */ + emailAddress?: (string|null); - /** Account deleted */ - deleted?: (boolean|null); + /** UserLink directRoles */ + directRoles?: (string[]|null); } - /** Represents an Account. */ - class Account implements IAccount { + /** Represents a UserLink. */ + class UserLink implements IUserLink { /** - * Constructs a new Account. + * Constructs a new UserLink. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAccount); + constructor(properties?: google.analytics.admin.v1alpha.IUserLink); - /** Account name. */ + /** UserLink name. */ public name: string; - /** Account createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Account updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Account displayName. */ - public displayName: string; - - /** Account regionCode. */ - public regionCode: string; + /** UserLink emailAddress. */ + public emailAddress: string; - /** Account deleted. */ - public deleted: boolean; + /** UserLink directRoles. */ + public directRoles: string[]; /** - * Creates a new Account instance using the specified properties. + * Creates a new UserLink instance using the specified properties. * @param [properties] Properties to set - * @returns Account instance + * @returns UserLink instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAccount): google.analytics.admin.v1alpha.Account; + public static create(properties?: google.analytics.admin.v1alpha.IUserLink): google.analytics.admin.v1alpha.UserLink; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @param message Account message or plain object to encode + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @param message UserLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. - * @param message Account message or plain object to encode + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @param message UserLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes a UserLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Account + * @returns UserLink * @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.analytics.admin.v1alpha.Account; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UserLink; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes a UserLink message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Account + * @returns UserLink * @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.analytics.admin.v1alpha.Account; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UserLink; /** - * Verifies an Account message. + * Verifies a UserLink 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 an Account message from a plain object. Also converts values to their respective internal types. + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Account + * @returns UserLink */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Account; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UserLink; /** - * Creates a plain object from an Account message. Also converts values to other types if specified. - * @param message Account + * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * @param message UserLink * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.Account, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.UserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Account to JSON. + * Converts this UserLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Account + * Gets the default type url for UserLink * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Property. */ - interface IProperty { + /** Properties of an AuditUserLink. */ + interface IAuditUserLink { - /** Property name */ + /** AuditUserLink name */ name?: (string|null); - /** Property propertyType */ - propertyType?: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType|null); + /** AuditUserLink emailAddress */ + emailAddress?: (string|null); - /** Property createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** AuditUserLink directRoles */ + directRoles?: (string[]|null); - /** Property updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** AuditUserLink effectiveRoles */ + effectiveRoles?: (string[]|null); + } - /** Property parent */ - parent?: (string|null); + /** Represents an AuditUserLink. */ + class AuditUserLink implements IAuditUserLink { - /** Property displayName */ - displayName?: (string|null); + /** + * Constructs a new AuditUserLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLink); - /** Property industryCategory */ - industryCategory?: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory|null); + /** AuditUserLink name. */ + public name: string; - /** Property timeZone */ - timeZone?: (string|null); + /** AuditUserLink emailAddress. */ + public emailAddress: string; - /** Property currencyCode */ - currencyCode?: (string|null); + /** AuditUserLink directRoles. */ + public directRoles: string[]; - /** Property serviceLevel */ - serviceLevel?: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel|null); + /** AuditUserLink effectiveRoles. */ + public effectiveRoles: string[]; - /** Property deleteTime */ - deleteTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new AuditUserLink instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditUserLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLink): google.analytics.admin.v1alpha.AuditUserLink; - /** Property expireTime */ - expireTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @param message AuditUserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; - /** Property account */ - account?: (string|null); - } + /** + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @param message AuditUserLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Property. */ - class Property implements IProperty { + /** + * Decodes an AuditUserLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditUserLink + * @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.analytics.admin.v1alpha.AuditUserLink; /** - * Constructs a new Property. - * @param [properties] Properties to set + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(properties?: google.analytics.admin.v1alpha.IProperty); + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AuditUserLink; - /** Property name. */ - public name: string; + /** + * Verifies an AuditUserLink 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); - /** Property propertyType. */ - public propertyType: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType); + /** + * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditUserLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLink; - /** Property createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * @param message AuditUserLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AuditUserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Property updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Converts this AuditUserLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Property parent. */ - public parent: string; + /** + * Gets the default type url for AuditUserLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Property displayName. */ - public displayName: string; + /** Properties of a FirebaseLink. */ + interface IFirebaseLink { - /** Property industryCategory. */ - public industryCategory: (google.analytics.admin.v1alpha.IndustryCategory|keyof typeof google.analytics.admin.v1alpha.IndustryCategory); + /** FirebaseLink name */ + name?: (string|null); - /** Property timeZone. */ - public timeZone: string; + /** FirebaseLink project */ + project?: (string|null); - /** Property currencyCode. */ - public currencyCode: string; + /** FirebaseLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + } - /** Property serviceLevel. */ - public serviceLevel: (google.analytics.admin.v1alpha.ServiceLevel|keyof typeof google.analytics.admin.v1alpha.ServiceLevel); + /** Represents a FirebaseLink. */ + class FirebaseLink implements IFirebaseLink { - /** Property deleteTime. */ - public deleteTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new FirebaseLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IFirebaseLink); - /** Property expireTime. */ - public expireTime?: (google.protobuf.ITimestamp|null); + /** FirebaseLink name. */ + public name: string; - /** Property account. */ - public account: string; + /** FirebaseLink project. */ + public project: string; + + /** FirebaseLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Property instance using the specified properties. + * Creates a new FirebaseLink instance using the specified properties. * @param [properties] Properties to set - * @returns Property instance + * @returns FirebaseLink instance */ - public static create(properties?: google.analytics.admin.v1alpha.IProperty): google.analytics.admin.v1alpha.Property; + public static create(properties?: google.analytics.admin.v1alpha.IFirebaseLink): google.analytics.admin.v1alpha.FirebaseLink; /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @param message Property message or plain object to encode + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @param message Property message or plain object to encode + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @param message FirebaseLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Property message from the specified reader or buffer. + * Decodes a FirebaseLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Property + * @returns FirebaseLink * @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.analytics.admin.v1alpha.Property; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FirebaseLink; /** - * Decodes a Property message from the specified reader or buffer, length delimited. + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Property + * @returns FirebaseLink * @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.analytics.admin.v1alpha.Property; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FirebaseLink; /** - * Verifies a Property message. + * Verifies a FirebaseLink 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 Property message from a plain object. Also converts values to their respective internal types. + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Property + * @returns FirebaseLink */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Property; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FirebaseLink; /** - * Creates a plain object from a Property message. Also converts values to other types if specified. - * @param message Property + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @param message FirebaseLink * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.FirebaseLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Property to JSON. + * Converts this FirebaseLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Property + * Gets the default type url for FirebaseLink * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DataStream. */ - interface IDataStream { - - /** DataStream webStreamData */ - webStreamData?: (google.analytics.admin.v1alpha.DataStream.IWebStreamData|null); - - /** DataStream androidAppStreamData */ - androidAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null); - - /** DataStream iosAppStreamData */ - iosAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null); + /** Properties of a GlobalSiteTag. */ + interface IGlobalSiteTag { - /** DataStream name */ + /** GlobalSiteTag name */ name?: (string|null); - /** DataStream type */ - type?: (google.analytics.admin.v1alpha.DataStream.DataStreamType|keyof typeof google.analytics.admin.v1alpha.DataStream.DataStreamType|null); - - /** DataStream displayName */ - displayName?: (string|null); - - /** DataStream createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** DataStream updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** GlobalSiteTag snippet */ + snippet?: (string|null); } - /** Represents a DataStream. */ - class DataStream implements IDataStream { + /** Represents a GlobalSiteTag. */ + class GlobalSiteTag implements IGlobalSiteTag { /** - * Constructs a new DataStream. + * Constructs a new GlobalSiteTag. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDataStream); - - /** DataStream webStreamData. */ - public webStreamData?: (google.analytics.admin.v1alpha.DataStream.IWebStreamData|null); - - /** DataStream androidAppStreamData. */ - public androidAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null); - - /** DataStream iosAppStreamData. */ - public iosAppStreamData?: (google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null); + constructor(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag); - /** DataStream name. */ + /** GlobalSiteTag name. */ public name: string; - /** DataStream type. */ - public type: (google.analytics.admin.v1alpha.DataStream.DataStreamType|keyof typeof google.analytics.admin.v1alpha.DataStream.DataStreamType); - - /** DataStream displayName. */ - public displayName: string; - - /** DataStream createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DataStream updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** DataStream streamData. */ - public streamData?: ("webStreamData"|"androidAppStreamData"|"iosAppStreamData"); + /** GlobalSiteTag snippet. */ + public snippet: string; /** - * Creates a new DataStream instance using the specified properties. + * Creates a new GlobalSiteTag instance using the specified properties. * @param [properties] Properties to set - * @returns DataStream instance + * @returns GlobalSiteTag instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDataStream): google.analytics.admin.v1alpha.DataStream; + public static create(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag): google.analytics.admin.v1alpha.GlobalSiteTag; /** - * Encodes the specified DataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. - * @param message DataStream message or plain object to encode + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @param message GlobalSiteTag message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. - * @param message DataStream message or plain object to encode + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @param message GlobalSiteTag message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataStream, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataStream message from the specified reader or buffer. + * Decodes a GlobalSiteTag message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataStream + * @returns GlobalSiteTag * @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.analytics.admin.v1alpha.DataStream; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GlobalSiteTag; /** - * Decodes a DataStream message from the specified reader or buffer, length delimited. + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataStream + * @returns GlobalSiteTag * @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.analytics.admin.v1alpha.DataStream; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GlobalSiteTag; /** - * Verifies a DataStream message. + * Verifies a GlobalSiteTag 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 DataStream message from a plain object. Also converts values to their respective internal types. + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataStream + * @returns GlobalSiteTag */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GlobalSiteTag; /** - * Creates a plain object from a DataStream message. Also converts values to other types if specified. - * @param message DataStream + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * @param message GlobalSiteTag * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DataStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GlobalSiteTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataStream to JSON. + * Converts this GlobalSiteTag to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataStream + * Gets the default type url for GlobalSiteTag * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace DataStream { - - /** Properties of a WebStreamData. */ - interface IWebStreamData { - - /** WebStreamData measurementId */ - measurementId?: (string|null); - - /** WebStreamData firebaseAppId */ - firebaseAppId?: (string|null); - - /** WebStreamData defaultUri */ - defaultUri?: (string|null); - } - - /** Represents a WebStreamData. */ - class WebStreamData implements IWebStreamData { + /** Properties of a GoogleAdsLink. */ + interface IGoogleAdsLink { - /** - * Constructs a new WebStreamData. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.DataStream.IWebStreamData); + /** GoogleAdsLink name */ + name?: (string|null); - /** WebStreamData measurementId. */ - public measurementId: string; + /** GoogleAdsLink customerId */ + customerId?: (string|null); - /** WebStreamData firebaseAppId. */ - public firebaseAppId: string; + /** GoogleAdsLink canManageClients */ + canManageClients?: (boolean|null); - /** WebStreamData defaultUri. */ - public defaultUri: string; + /** GoogleAdsLink adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); - /** - * Creates a new WebStreamData instance using the specified properties. - * @param [properties] Properties to set - * @returns WebStreamData instance - */ - public static create(properties?: google.analytics.admin.v1alpha.DataStream.IWebStreamData): google.analytics.admin.v1alpha.DataStream.WebStreamData; + /** GoogleAdsLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified WebStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. - * @param message WebStreamData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.DataStream.IWebStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + /** GoogleAdsLink updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified WebStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. - * @param message WebStreamData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.DataStream.IWebStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + /** GoogleAdsLink creatorEmailAddress */ + creatorEmailAddress?: (string|null); + } - /** - * Decodes a WebStreamData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WebStreamData - * @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.analytics.admin.v1alpha.DataStream.WebStreamData; + /** Represents a GoogleAdsLink. */ + class GoogleAdsLink implements IGoogleAdsLink { - /** - * Decodes a WebStreamData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WebStreamData - * @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.analytics.admin.v1alpha.DataStream.WebStreamData; + /** + * Constructs a new GoogleAdsLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink); - /** - * Verifies a WebStreamData 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); + /** GoogleAdsLink name. */ + public name: string; - /** - * Creates a WebStreamData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WebStreamData - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream.WebStreamData; + /** GoogleAdsLink customerId. */ + public customerId: string; - /** - * Creates a plain object from a WebStreamData message. Also converts values to other types if specified. - * @param message WebStreamData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.DataStream.WebStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** GoogleAdsLink canManageClients. */ + public canManageClients: boolean; - /** - * Converts this WebStreamData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** GoogleAdsLink adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); - /** - * Gets the default type url for WebStreamData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** GoogleAdsLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Properties of an AndroidAppStreamData. */ - interface IAndroidAppStreamData { + /** GoogleAdsLink updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** AndroidAppStreamData firebaseAppId */ - firebaseAppId?: (string|null); + /** GoogleAdsLink creatorEmailAddress. */ + public creatorEmailAddress: string; - /** AndroidAppStreamData packageName */ - packageName?: (string|null); - } + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @param [properties] Properties to set + * @returns GoogleAdsLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink): google.analytics.admin.v1alpha.GoogleAdsLink; - /** Represents an AndroidAppStreamData. */ - class AndroidAppStreamData implements IAndroidAppStreamData { + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new AndroidAppStreamData. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData); + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @param message GoogleAdsLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; - /** AndroidAppStreamData firebaseAppId. */ - public firebaseAppId: string; + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GoogleAdsLink + * @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.analytics.admin.v1alpha.GoogleAdsLink; - /** AndroidAppStreamData packageName. */ - public packageName: string; + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GoogleAdsLink + * @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.analytics.admin.v1alpha.GoogleAdsLink; - /** - * Creates a new AndroidAppStreamData instance using the specified properties. - * @param [properties] Properties to set - * @returns AndroidAppStreamData instance - */ - public static create(properties?: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData): google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; + /** + * Verifies a GoogleAdsLink 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); - /** - * Encodes the specified AndroidAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. - * @param message AndroidAppStreamData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GoogleAdsLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleAdsLink; - /** - * Encodes the specified AndroidAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. - * @param message AndroidAppStreamData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @param message GoogleAdsLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GoogleAdsLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an AndroidAppStreamData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AndroidAppStreamData - * @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.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; + /** + * Converts this GoogleAdsLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes an AndroidAppStreamData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AndroidAppStreamData - * @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.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; + /** + * Gets the default type url for GoogleAdsLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies an AndroidAppStreamData 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); + /** Properties of a DataSharingSettings. */ + interface IDataSharingSettings { - /** - * Creates an AndroidAppStreamData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AndroidAppStreamData - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData; + /** DataSharingSettings name */ + name?: (string|null); - /** - * Creates a plain object from an AndroidAppStreamData message. Also converts values to other types if specified. - * @param message AndroidAppStreamData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DataSharingSettings sharingWithGoogleSupportEnabled */ + sharingWithGoogleSupportEnabled?: (boolean|null); - /** - * Converts this AndroidAppStreamData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled */ + sharingWithGoogleAssignedSalesEnabled?: (boolean|null); - /** - * Gets the default type url for AndroidAppStreamData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DataSharingSettings sharingWithGoogleAnySalesEnabled */ + sharingWithGoogleAnySalesEnabled?: (boolean|null); - /** Properties of an IosAppStreamData. */ - interface IIosAppStreamData { + /** DataSharingSettings sharingWithGoogleProductsEnabled */ + sharingWithGoogleProductsEnabled?: (boolean|null); - /** IosAppStreamData firebaseAppId */ - firebaseAppId?: (string|null); + /** DataSharingSettings sharingWithOthersEnabled */ + sharingWithOthersEnabled?: (boolean|null); + } - /** IosAppStreamData bundleId */ - bundleId?: (string|null); - } + /** Represents a DataSharingSettings. */ + class DataSharingSettings implements IDataSharingSettings { - /** Represents an IosAppStreamData. */ - class IosAppStreamData implements IIosAppStreamData { + /** + * Constructs a new DataSharingSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDataSharingSettings); - /** - * Constructs a new IosAppStreamData. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData); + /** DataSharingSettings name. */ + public name: string; - /** IosAppStreamData firebaseAppId. */ - public firebaseAppId: string; + /** DataSharingSettings sharingWithGoogleSupportEnabled. */ + public sharingWithGoogleSupportEnabled: boolean; - /** IosAppStreamData bundleId. */ - public bundleId: string; + /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled. */ + public sharingWithGoogleAssignedSalesEnabled: boolean; - /** - * Creates a new IosAppStreamData instance using the specified properties. - * @param [properties] Properties to set - * @returns IosAppStreamData instance - */ - public static create(properties?: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData): google.analytics.admin.v1alpha.DataStream.IosAppStreamData; + /** DataSharingSettings sharingWithGoogleAnySalesEnabled. */ + public sharingWithGoogleAnySalesEnabled: boolean; - /** - * Encodes the specified IosAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. - * @param message IosAppStreamData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + /** DataSharingSettings sharingWithGoogleProductsEnabled. */ + public sharingWithGoogleProductsEnabled: boolean; + + /** DataSharingSettings sharingWithOthersEnabled. */ + public sharingWithOthersEnabled: boolean; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns DataSharingSettings instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDataSharingSettings): google.analytics.admin.v1alpha.DataSharingSettings; - /** - * Encodes the specified IosAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. - * @param message IosAppStreamData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.DataStream.IIosAppStreamData, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an IosAppStreamData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IosAppStreamData - * @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.analytics.admin.v1alpha.DataStream.IosAppStreamData; + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @param message DataSharingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an IosAppStreamData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IosAppStreamData - * @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.analytics.admin.v1alpha.DataStream.IosAppStreamData; + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataSharingSettings + * @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.analytics.admin.v1alpha.DataSharingSettings; - /** - * Verifies an IosAppStreamData 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); + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataSharingSettings + * @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.analytics.admin.v1alpha.DataSharingSettings; - /** - * Creates an IosAppStreamData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IosAppStreamData - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataStream.IosAppStreamData; + /** + * Verifies a DataSharingSettings 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 plain object from an IosAppStreamData message. Also converts values to other types if specified. - * @param message IosAppStreamData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.DataStream.IosAppStreamData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataSharingSettings + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataSharingSettings; - /** - * Converts this IosAppStreamData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @param message DataSharingSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DataSharingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for IosAppStreamData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this DataSharingSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DataStreamType enum. */ - enum DataStreamType { - DATA_STREAM_TYPE_UNSPECIFIED = 0, - WEB_DATA_STREAM = 1, - ANDROID_APP_DATA_STREAM = 2, - IOS_APP_DATA_STREAM = 3 - } + /** + * Gets the default type url for DataSharingSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserLink. */ - interface IUserLink { + /** Properties of an AccountSummary. */ + interface IAccountSummary { - /** UserLink name */ + /** AccountSummary name */ name?: (string|null); - /** UserLink emailAddress */ - emailAddress?: (string|null); + /** AccountSummary account */ + account?: (string|null); - /** UserLink directRoles */ - directRoles?: (string[]|null); + /** AccountSummary displayName */ + displayName?: (string|null); + + /** AccountSummary propertySummaries */ + propertySummaries?: (google.analytics.admin.v1alpha.IPropertySummary[]|null); } - /** Represents a UserLink. */ - class UserLink implements IUserLink { + /** Represents an AccountSummary. */ + class AccountSummary implements IAccountSummary { /** - * Constructs a new UserLink. + * Constructs a new AccountSummary. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IUserLink); + constructor(properties?: google.analytics.admin.v1alpha.IAccountSummary); - /** UserLink name. */ + /** AccountSummary name. */ public name: string; - /** UserLink emailAddress. */ - public emailAddress: string; + /** AccountSummary account. */ + public account: string; - /** UserLink directRoles. */ - public directRoles: string[]; + /** AccountSummary displayName. */ + public displayName: string; + + /** AccountSummary propertySummaries. */ + public propertySummaries: google.analytics.admin.v1alpha.IPropertySummary[]; /** - * Creates a new UserLink instance using the specified properties. + * Creates a new AccountSummary instance using the specified properties. * @param [properties] Properties to set - * @returns UserLink instance + * @returns AccountSummary instance */ - public static create(properties?: google.analytics.admin.v1alpha.IUserLink): google.analytics.admin.v1alpha.UserLink; + public static create(properties?: google.analytics.admin.v1alpha.IAccountSummary): google.analytics.admin.v1alpha.AccountSummary; /** - * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. - * @param message UserLink message or plain object to encode + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. - * @param message UserLink message or plain object to encode + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @param message AccountSummary message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserLink message from the specified reader or buffer. + * Decodes an AccountSummary message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserLink + * @returns AccountSummary * @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.analytics.admin.v1alpha.UserLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AccountSummary; /** - * Decodes a UserLink message from the specified reader or buffer, length delimited. + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserLink + * @returns AccountSummary * @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.analytics.admin.v1alpha.UserLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AccountSummary; /** - * Verifies a UserLink message. + * Verifies an AccountSummary 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 UserLink message from a plain object. Also converts values to their respective internal types. + * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserLink + * @returns AccountSummary */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UserLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccountSummary; /** - * Creates a plain object from a UserLink message. Also converts values to other types if specified. - * @param message UserLink + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * @param message AccountSummary * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.UserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AccountSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserLink to JSON. + * Converts this AccountSummary to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserLink + * Gets the default type url for AccountSummary * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AuditUserLink. */ - interface IAuditUserLink { + /** Properties of a PropertySummary. */ + interface IPropertySummary { - /** AuditUserLink name */ - name?: (string|null); + /** PropertySummary property */ + property?: (string|null); - /** AuditUserLink emailAddress */ - emailAddress?: (string|null); + /** PropertySummary displayName */ + displayName?: (string|null); - /** AuditUserLink directRoles */ - directRoles?: (string[]|null); + /** PropertySummary propertyType */ + propertyType?: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType|null); - /** AuditUserLink effectiveRoles */ - effectiveRoles?: (string[]|null); + /** PropertySummary parent */ + parent?: (string|null); } - /** Represents an AuditUserLink. */ - class AuditUserLink implements IAuditUserLink { + /** Represents a PropertySummary. */ + class PropertySummary implements IPropertySummary { /** - * Constructs a new AuditUserLink. + * Constructs a new PropertySummary. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAuditUserLink); + constructor(properties?: google.analytics.admin.v1alpha.IPropertySummary); - /** AuditUserLink name. */ - public name: string; + /** PropertySummary property. */ + public property: string; - /** AuditUserLink emailAddress. */ - public emailAddress: string; + /** PropertySummary displayName. */ + public displayName: string; - /** AuditUserLink directRoles. */ - public directRoles: string[]; + /** PropertySummary propertyType. */ + public propertyType: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType); - /** AuditUserLink effectiveRoles. */ - public effectiveRoles: string[]; + /** PropertySummary parent. */ + public parent: string; /** - * Creates a new AuditUserLink instance using the specified properties. + * Creates a new PropertySummary instance using the specified properties. * @param [properties] Properties to set - * @returns AuditUserLink instance + * @returns PropertySummary instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAuditUserLink): google.analytics.admin.v1alpha.AuditUserLink; + public static create(properties?: google.analytics.admin.v1alpha.IPropertySummary): google.analytics.admin.v1alpha.PropertySummary; /** - * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. - * @param message AuditUserLink message or plain object to encode + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. - * @param message AuditUserLink message or plain object to encode + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @param message PropertySummary message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAuditUserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AuditUserLink message from the specified reader or buffer. + * Decodes a PropertySummary message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AuditUserLink + * @returns PropertySummary * @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.analytics.admin.v1alpha.AuditUserLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.PropertySummary; /** - * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AuditUserLink + * @returns PropertySummary * @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.analytics.admin.v1alpha.AuditUserLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.PropertySummary; /** - * Verifies an AuditUserLink message. + * Verifies a PropertySummary 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 an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AuditUserLink + * @returns PropertySummary */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AuditUserLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.PropertySummary; /** - * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. - * @param message AuditUserLink + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * @param message PropertySummary * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AuditUserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.PropertySummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AuditUserLink to JSON. + * Converts this PropertySummary to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AuditUserLink + * Gets the default type url for PropertySummary * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FirebaseLink. */ - interface IFirebaseLink { + /** Properties of a MeasurementProtocolSecret. */ + interface IMeasurementProtocolSecret { - /** FirebaseLink name */ + /** MeasurementProtocolSecret name */ name?: (string|null); - /** FirebaseLink project */ - project?: (string|null); + /** MeasurementProtocolSecret displayName */ + displayName?: (string|null); - /** FirebaseLink createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** MeasurementProtocolSecret secretValue */ + secretValue?: (string|null); } - /** Represents a FirebaseLink. */ - class FirebaseLink implements IFirebaseLink { + /** Represents a MeasurementProtocolSecret. */ + class MeasurementProtocolSecret implements IMeasurementProtocolSecret { /** - * Constructs a new FirebaseLink. + * Constructs a new MeasurementProtocolSecret. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IFirebaseLink); + constructor(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret); - /** FirebaseLink name. */ + /** MeasurementProtocolSecret name. */ public name: string; - /** FirebaseLink project. */ - public project: string; + /** MeasurementProtocolSecret displayName. */ + public displayName: string; - /** FirebaseLink createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** MeasurementProtocolSecret secretValue. */ + public secretValue: string; /** - * Creates a new FirebaseLink instance using the specified properties. + * Creates a new MeasurementProtocolSecret instance using the specified properties. * @param [properties] Properties to set - * @returns FirebaseLink instance + * @returns MeasurementProtocolSecret instance */ - public static create(properties?: google.analytics.admin.v1alpha.IFirebaseLink): google.analytics.admin.v1alpha.FirebaseLink; + public static create(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret): google.analytics.admin.v1alpha.MeasurementProtocolSecret; /** - * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. - * @param message FirebaseLink message or plain object to encode + * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @param message MeasurementProtocolSecret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. - * @param message FirebaseLink message or plain object to encode + * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @param message MeasurementProtocolSecret message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IFirebaseLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FirebaseLink message from the specified reader or buffer. + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FirebaseLink + * @returns MeasurementProtocolSecret * @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.analytics.admin.v1alpha.FirebaseLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.MeasurementProtocolSecret; /** - * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FirebaseLink + * @returns MeasurementProtocolSecret * @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.analytics.admin.v1alpha.FirebaseLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.MeasurementProtocolSecret; /** - * Verifies a FirebaseLink message. + * Verifies a MeasurementProtocolSecret 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 FirebaseLink message from a plain object. Also converts values to their respective internal types. + * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FirebaseLink + * @returns MeasurementProtocolSecret */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FirebaseLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.MeasurementProtocolSecret; /** - * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. - * @param message FirebaseLink + * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * @param message MeasurementProtocolSecret * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.FirebaseLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.MeasurementProtocolSecret, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FirebaseLink to JSON. + * Converts this MeasurementProtocolSecret to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FirebaseLink + * Gets the default type url for MeasurementProtocolSecret * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GlobalSiteTag. */ - interface IGlobalSiteTag { + /** Properties of a ChangeHistoryEvent. */ + interface IChangeHistoryEvent { - /** GlobalSiteTag name */ - name?: (string|null); + /** ChangeHistoryEvent id */ + id?: (string|null); - /** GlobalSiteTag snippet */ - snippet?: (string|null); + /** ChangeHistoryEvent changeTime */ + changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType */ + actorType?: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType|null); + + /** ChangeHistoryEvent userActorEmail */ + userActorEmail?: (string|null); + + /** ChangeHistoryEvent changesFiltered */ + changesFiltered?: (boolean|null); + + /** ChangeHistoryEvent changes */ + changes?: (google.analytics.admin.v1alpha.IChangeHistoryChange[]|null); } - /** Represents a GlobalSiteTag. */ - class GlobalSiteTag implements IGlobalSiteTag { + /** Represents a ChangeHistoryEvent. */ + class ChangeHistoryEvent implements IChangeHistoryEvent { /** - * Constructs a new GlobalSiteTag. + * Constructs a new ChangeHistoryEvent. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag); + constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent); - /** GlobalSiteTag name. */ - public name: string; + /** ChangeHistoryEvent id. */ + public id: string; - /** GlobalSiteTag snippet. */ - public snippet: string; + /** ChangeHistoryEvent changeTime. */ + public changeTime?: (google.protobuf.ITimestamp|null); + + /** ChangeHistoryEvent actorType. */ + public actorType: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType); + + /** ChangeHistoryEvent userActorEmail. */ + public userActorEmail: string; + + /** ChangeHistoryEvent changesFiltered. */ + public changesFiltered: boolean; + + /** ChangeHistoryEvent changes. */ + public changes: google.analytics.admin.v1alpha.IChangeHistoryChange[]; /** - * Creates a new GlobalSiteTag instance using the specified properties. + * Creates a new ChangeHistoryEvent instance using the specified properties. * @param [properties] Properties to set - * @returns GlobalSiteTag instance + * @returns ChangeHistoryEvent instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGlobalSiteTag): google.analytics.admin.v1alpha.GlobalSiteTag; + public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent): google.analytics.admin.v1alpha.ChangeHistoryEvent; /** - * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. - * @param message GlobalSiteTag message or plain object to encode + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. - * @param message GlobalSiteTag message or plain object to encode + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @param message ChangeHistoryEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGlobalSiteTag, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer. + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GlobalSiteTag + * @returns ChangeHistoryEvent * @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.analytics.admin.v1alpha.GlobalSiteTag; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryEvent; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GlobalSiteTag + * @returns ChangeHistoryEvent * @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.analytics.admin.v1alpha.GlobalSiteTag; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryEvent; /** - * Verifies a GlobalSiteTag message. + * Verifies a ChangeHistoryEvent 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 GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GlobalSiteTag + * @returns ChangeHistoryEvent */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GlobalSiteTag; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryEvent; /** - * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. - * @param message GlobalSiteTag + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * @param message ChangeHistoryEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GlobalSiteTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GlobalSiteTag to JSON. + * Converts this ChangeHistoryEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GlobalSiteTag + * Gets the default type url for ChangeHistoryEvent * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GoogleAdsLink. */ - interface IGoogleAdsLink { - - /** GoogleAdsLink name */ - name?: (string|null); - - /** GoogleAdsLink customerId */ - customerId?: (string|null); - - /** GoogleAdsLink canManageClients */ - canManageClients?: (boolean|null); + /** Properties of a ChangeHistoryChange. */ + interface IChangeHistoryChange { - /** GoogleAdsLink adsPersonalizationEnabled */ - adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + /** ChangeHistoryChange resource */ + resource?: (string|null); - /** GoogleAdsLink createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ChangeHistoryChange action */ + action?: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType|null); - /** GoogleAdsLink updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ChangeHistoryChange resourceBeforeChange */ + resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); - /** GoogleAdsLink creatorEmailAddress */ - creatorEmailAddress?: (string|null); + /** ChangeHistoryChange resourceAfterChange */ + resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); } - /** Represents a GoogleAdsLink. */ - class GoogleAdsLink implements IGoogleAdsLink { + /** Represents a ChangeHistoryChange. */ + class ChangeHistoryChange implements IChangeHistoryChange { /** - * Constructs a new GoogleAdsLink. + * Constructs a new ChangeHistoryChange. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink); - - /** GoogleAdsLink name. */ - public name: string; - - /** GoogleAdsLink customerId. */ - public customerId: string; - - /** GoogleAdsLink canManageClients. */ - public canManageClients: boolean; + constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange); - /** GoogleAdsLink adsPersonalizationEnabled. */ - public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + /** ChangeHistoryChange resource. */ + public resource: string; - /** GoogleAdsLink createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ChangeHistoryChange action. */ + public action: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType); - /** GoogleAdsLink updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ChangeHistoryChange resourceBeforeChange. */ + public resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); - /** GoogleAdsLink creatorEmailAddress. */ - public creatorEmailAddress: string; + /** ChangeHistoryChange resourceAfterChange. */ + public resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); /** - * Creates a new GoogleAdsLink instance using the specified properties. + * Creates a new ChangeHistoryChange instance using the specified properties. * @param [properties] Properties to set - * @returns GoogleAdsLink instance + * @returns ChangeHistoryChange instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGoogleAdsLink): google.analytics.admin.v1alpha.GoogleAdsLink; + public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange): google.analytics.admin.v1alpha.ChangeHistoryChange; /** - * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. - * @param message GoogleAdsLink message or plain object to encode + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. - * @param message GoogleAdsLink message or plain object to encode + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @param message ChangeHistoryChange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleAdsLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer. + * Decodes a ChangeHistoryChange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GoogleAdsLink + * @returns ChangeHistoryChange * @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.analytics.admin.v1alpha.GoogleAdsLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChangeHistoryChange; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GoogleAdsLink + * @returns ChangeHistoryChange * @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.analytics.admin.v1alpha.GoogleAdsLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChangeHistoryChange; /** - * Verifies a GoogleAdsLink message. + * Verifies a ChangeHistoryChange 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 GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GoogleAdsLink + * @returns ChangeHistoryChange */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleAdsLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange; /** - * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. - * @param message GoogleAdsLink + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * @param message ChangeHistoryChange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GoogleAdsLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GoogleAdsLink to JSON. + * Converts this ChangeHistoryChange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GoogleAdsLink + * Gets the default type url for ChangeHistoryChange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DataSharingSettings. */ - interface IDataSharingSettings { + namespace ChangeHistoryChange { + + /** Properties of a ChangeHistoryResource. */ + interface IChangeHistoryResource { + + /** ChangeHistoryResource account */ + account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ChangeHistoryResource property */ + property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** ChangeHistoryResource firebaseLink */ + firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink */ + googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** ChangeHistoryResource googleSignalsSettings */ + googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); + + /** ChangeHistoryResource displayVideo_360AdvertiserLink */ + displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + + /** ChangeHistoryResource displayVideo_360AdvertiserLinkProposal */ + displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); + + /** ChangeHistoryResource conversionEvent */ + conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); + + /** ChangeHistoryResource measurementProtocolSecret */ + measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + + /** ChangeHistoryResource customDimension */ + customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** ChangeHistoryResource customMetric */ + customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + + /** ChangeHistoryResource dataRetentionSettings */ + dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + + /** ChangeHistoryResource searchAds_360Link */ + searchAds_360Link?: (google.analytics.admin.v1alpha.ISearchAds360Link|null); + + /** ChangeHistoryResource dataStream */ + dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + + /** ChangeHistoryResource attributionSettings */ + attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); + + /** ChangeHistoryResource expandedDataSet */ + expandedDataSet?: (google.analytics.admin.v1alpha.IExpandedDataSet|null); + + /** ChangeHistoryResource bigqueryLink */ + bigqueryLink?: (google.analytics.admin.v1alpha.IBigQueryLink|null); + } + + /** Represents a ChangeHistoryResource. */ + class ChangeHistoryResource implements IChangeHistoryResource { + + /** + * Constructs a new ChangeHistoryResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource); + + /** ChangeHistoryResource account. */ + public account?: (google.analytics.admin.v1alpha.IAccount|null); + + /** ChangeHistoryResource property. */ + public property?: (google.analytics.admin.v1alpha.IProperty|null); + + /** ChangeHistoryResource firebaseLink. */ + public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); + + /** ChangeHistoryResource googleAdsLink. */ + public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); + + /** ChangeHistoryResource googleSignalsSettings. */ + public googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); + + /** ChangeHistoryResource displayVideo_360AdvertiserLink. */ + public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); + + /** ChangeHistoryResource displayVideo_360AdvertiserLinkProposal. */ + public displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); + + /** ChangeHistoryResource conversionEvent. */ + public conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); + + /** ChangeHistoryResource measurementProtocolSecret. */ + public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); + + /** ChangeHistoryResource customDimension. */ + public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); + + /** ChangeHistoryResource customMetric. */ + public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); + + /** ChangeHistoryResource dataRetentionSettings. */ + public dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); + + /** ChangeHistoryResource searchAds_360Link. */ + public searchAds_360Link?: (google.analytics.admin.v1alpha.ISearchAds360Link|null); + + /** ChangeHistoryResource dataStream. */ + public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); + + /** ChangeHistoryResource attributionSettings. */ + public attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); + + /** ChangeHistoryResource expandedDataSet. */ + public expandedDataSet?: (google.analytics.admin.v1alpha.IExpandedDataSet|null); + + /** ChangeHistoryResource bigqueryLink. */ + public bigqueryLink?: (google.analytics.admin.v1alpha.IBigQueryLink|null); + + /** ChangeHistoryResource resource. */ + public resource?: ("account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"searchAds_360Link"|"dataStream"|"attributionSettings"|"expandedDataSet"|"bigqueryLink"); + + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeHistoryResource instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @param message ChangeHistoryResource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeHistoryResource + * @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.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeHistoryResource + * @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.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Verifies a ChangeHistoryResource 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 ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeHistoryResource + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; + + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @param message ChangeHistoryResource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeHistoryResource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a DisplayVideo360AdvertiserLink. */ + interface IDisplayVideo360AdvertiserLink { - /** DataSharingSettings name */ + /** DisplayVideo360AdvertiserLink name */ name?: (string|null); - /** DataSharingSettings sharingWithGoogleSupportEnabled */ - sharingWithGoogleSupportEnabled?: (boolean|null); + /** DisplayVideo360AdvertiserLink advertiserId */ + advertiserId?: (string|null); - /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled */ - sharingWithGoogleAssignedSalesEnabled?: (boolean|null); + /** DisplayVideo360AdvertiserLink advertiserDisplayName */ + advertiserDisplayName?: (string|null); - /** DataSharingSettings sharingWithGoogleAnySalesEnabled */ - sharingWithGoogleAnySalesEnabled?: (boolean|null); + /** DisplayVideo360AdvertiserLink adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); - /** DataSharingSettings sharingWithGoogleProductsEnabled */ - sharingWithGoogleProductsEnabled?: (boolean|null); + /** DisplayVideo360AdvertiserLink campaignDataSharingEnabled */ + campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); - /** DataSharingSettings sharingWithOthersEnabled */ - sharingWithOthersEnabled?: (boolean|null); + /** DisplayVideo360AdvertiserLink costDataSharingEnabled */ + costDataSharingEnabled?: (google.protobuf.IBoolValue|null); } - /** Represents a DataSharingSettings. */ - class DataSharingSettings implements IDataSharingSettings { + /** Represents a DisplayVideo360AdvertiserLink. */ + class DisplayVideo360AdvertiserLink implements IDisplayVideo360AdvertiserLink { /** - * Constructs a new DataSharingSettings. + * Constructs a new DisplayVideo360AdvertiserLink. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDataSharingSettings); + constructor(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink); - /** DataSharingSettings name. */ + /** DisplayVideo360AdvertiserLink name. */ public name: string; - /** DataSharingSettings sharingWithGoogleSupportEnabled. */ - public sharingWithGoogleSupportEnabled: boolean; + /** DisplayVideo360AdvertiserLink advertiserId. */ + public advertiserId: string; - /** DataSharingSettings sharingWithGoogleAssignedSalesEnabled. */ - public sharingWithGoogleAssignedSalesEnabled: boolean; + /** DisplayVideo360AdvertiserLink advertiserDisplayName. */ + public advertiserDisplayName: string; - /** DataSharingSettings sharingWithGoogleAnySalesEnabled. */ - public sharingWithGoogleAnySalesEnabled: boolean; + /** DisplayVideo360AdvertiserLink adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); - /** DataSharingSettings sharingWithGoogleProductsEnabled. */ - public sharingWithGoogleProductsEnabled: boolean; + /** DisplayVideo360AdvertiserLink campaignDataSharingEnabled. */ + public campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); - /** DataSharingSettings sharingWithOthersEnabled. */ - public sharingWithOthersEnabled: boolean; + /** DisplayVideo360AdvertiserLink costDataSharingEnabled. */ + public costDataSharingEnabled?: (google.protobuf.IBoolValue|null); /** - * Creates a new DataSharingSettings instance using the specified properties. + * Creates a new DisplayVideo360AdvertiserLink instance using the specified properties. * @param [properties] Properties to set - * @returns DataSharingSettings instance + * @returns DisplayVideo360AdvertiserLink instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDataSharingSettings): google.analytics.admin.v1alpha.DataSharingSettings; + public static create(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; /** - * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. - * @param message DataSharingSettings message or plain object to encode + * Encodes the specified DisplayVideo360AdvertiserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * @param message DisplayVideo360AdvertiserLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. - * @param message DataSharingSettings message or plain object to encode + * Encodes the specified DisplayVideo360AdvertiserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * @param message DisplayVideo360AdvertiserLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataSharingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataSharingSettings message from the specified reader or buffer. + * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataSharingSettings + * @returns DisplayVideo360AdvertiserLink * @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.analytics.admin.v1alpha.DataSharingSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; /** - * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataSharingSettings + * @returns DisplayVideo360AdvertiserLink * @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.analytics.admin.v1alpha.DataSharingSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; /** - * Verifies a DataSharingSettings message. + * Verifies a DisplayVideo360AdvertiserLink 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 DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * Creates a DisplayVideo360AdvertiserLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataSharingSettings + * @returns DisplayVideo360AdvertiserLink */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataSharingSettings; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; /** - * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. - * @param message DataSharingSettings + * Creates a plain object from a DisplayVideo360AdvertiserLink message. Also converts values to other types if specified. + * @param message DisplayVideo360AdvertiserLink * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DataSharingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataSharingSettings to JSON. + * Converts this DisplayVideo360AdvertiserLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataSharingSettings + * Gets the default type url for DisplayVideo360AdvertiserLink * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AccountSummary. */ - interface IAccountSummary { + /** Properties of a DisplayVideo360AdvertiserLinkProposal. */ + interface IDisplayVideo360AdvertiserLinkProposal { - /** AccountSummary name */ + /** DisplayVideo360AdvertiserLinkProposal name */ name?: (string|null); - /** AccountSummary account */ - account?: (string|null); + /** DisplayVideo360AdvertiserLinkProposal advertiserId */ + advertiserId?: (string|null); - /** AccountSummary displayName */ - displayName?: (string|null); + /** DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails */ + linkProposalStatusDetails?: (google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null); - /** AccountSummary propertySummaries */ - propertySummaries?: (google.analytics.admin.v1alpha.IPropertySummary[]|null); + /** DisplayVideo360AdvertiserLinkProposal advertiserDisplayName */ + advertiserDisplayName?: (string|null); + + /** DisplayVideo360AdvertiserLinkProposal validationEmail */ + validationEmail?: (string|null); + + /** DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled */ + campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled */ + costDataSharingEnabled?: (google.protobuf.IBoolValue|null); } - /** Represents an AccountSummary. */ - class AccountSummary implements IAccountSummary { + /** Represents a DisplayVideo360AdvertiserLinkProposal. */ + class DisplayVideo360AdvertiserLinkProposal implements IDisplayVideo360AdvertiserLinkProposal { /** - * Constructs a new AccountSummary. + * Constructs a new DisplayVideo360AdvertiserLinkProposal. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAccountSummary); + constructor(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal); - /** AccountSummary name. */ + /** DisplayVideo360AdvertiserLinkProposal name. */ public name: string; - /** AccountSummary account. */ - public account: string; + /** DisplayVideo360AdvertiserLinkProposal advertiserId. */ + public advertiserId: string; - /** AccountSummary displayName. */ - public displayName: string; + /** DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails. */ + public linkProposalStatusDetails?: (google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null); - /** AccountSummary propertySummaries. */ - public propertySummaries: google.analytics.admin.v1alpha.IPropertySummary[]; + /** DisplayVideo360AdvertiserLinkProposal advertiserDisplayName. */ + public advertiserDisplayName: string; + + /** DisplayVideo360AdvertiserLinkProposal validationEmail. */ + public validationEmail: string; + + /** DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled. */ + public campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + + /** DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled. */ + public costDataSharingEnabled?: (google.protobuf.IBoolValue|null); /** - * Creates a new AccountSummary instance using the specified properties. + * Creates a new DisplayVideo360AdvertiserLinkProposal instance using the specified properties. * @param [properties] Properties to set - * @returns AccountSummary instance + * @returns DisplayVideo360AdvertiserLinkProposal instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAccountSummary): google.analytics.admin.v1alpha.AccountSummary; + public static create(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; /** - * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. - * @param message AccountSummary message or plain object to encode + * Encodes the specified DisplayVideo360AdvertiserLinkProposal message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * @param message DisplayVideo360AdvertiserLinkProposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. - * @param message AccountSummary message or plain object to encode + * Encodes the specified DisplayVideo360AdvertiserLinkProposal message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * @param message DisplayVideo360AdvertiserLinkProposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAccountSummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AccountSummary message from the specified reader or buffer. + * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AccountSummary + * @returns DisplayVideo360AdvertiserLinkProposal * @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.analytics.admin.v1alpha.AccountSummary; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; /** - * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AccountSummary + * @returns DisplayVideo360AdvertiserLinkProposal * @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.analytics.admin.v1alpha.AccountSummary; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; /** - * Verifies an AccountSummary message. + * Verifies a DisplayVideo360AdvertiserLinkProposal 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 an AccountSummary message from a plain object. Also converts values to their respective internal types. + * Creates a DisplayVideo360AdvertiserLinkProposal message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AccountSummary + * @returns DisplayVideo360AdvertiserLinkProposal */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AccountSummary; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; /** - * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. - * @param message AccountSummary + * Creates a plain object from a DisplayVideo360AdvertiserLinkProposal message. Also converts values to other types if specified. + * @param message DisplayVideo360AdvertiserLinkProposal * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AccountSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AccountSummary to JSON. + * Converts this DisplayVideo360AdvertiserLinkProposal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AccountSummary + * Gets the default type url for DisplayVideo360AdvertiserLinkProposal * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PropertySummary. */ - interface IPropertySummary { + /** Properties of a SearchAds360Link. */ + interface ISearchAds360Link { - /** PropertySummary property */ - property?: (string|null); + /** SearchAds360Link name */ + name?: (string|null); - /** PropertySummary displayName */ - displayName?: (string|null); + /** SearchAds360Link advertiserId */ + advertiserId?: (string|null); - /** PropertySummary propertyType */ - propertyType?: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType|null); + /** SearchAds360Link campaignDataSharingEnabled */ + campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); - /** PropertySummary parent */ - parent?: (string|null); + /** SearchAds360Link costDataSharingEnabled */ + costDataSharingEnabled?: (google.protobuf.IBoolValue|null); + + /** SearchAds360Link advertiserDisplayName */ + advertiserDisplayName?: (string|null); + + /** SearchAds360Link adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + + /** SearchAds360Link siteStatsSharingEnabled */ + siteStatsSharingEnabled?: (google.protobuf.IBoolValue|null); } - /** Represents a PropertySummary. */ - class PropertySummary implements IPropertySummary { + /** Represents a SearchAds360Link. */ + class SearchAds360Link implements ISearchAds360Link { /** - * Constructs a new PropertySummary. + * Constructs a new SearchAds360Link. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IPropertySummary); + constructor(properties?: google.analytics.admin.v1alpha.ISearchAds360Link); - /** PropertySummary property. */ - public property: string; + /** SearchAds360Link name. */ + public name: string; + + /** SearchAds360Link advertiserId. */ + public advertiserId: string; + + /** SearchAds360Link campaignDataSharingEnabled. */ + public campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + + /** SearchAds360Link costDataSharingEnabled. */ + public costDataSharingEnabled?: (google.protobuf.IBoolValue|null); - /** PropertySummary displayName. */ - public displayName: string; + /** SearchAds360Link advertiserDisplayName. */ + public advertiserDisplayName: string; - /** PropertySummary propertyType. */ - public propertyType: (google.analytics.admin.v1alpha.PropertyType|keyof typeof google.analytics.admin.v1alpha.PropertyType); + /** SearchAds360Link adsPersonalizationEnabled. */ + public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); - /** PropertySummary parent. */ - public parent: string; + /** SearchAds360Link siteStatsSharingEnabled. */ + public siteStatsSharingEnabled?: (google.protobuf.IBoolValue|null); /** - * Creates a new PropertySummary instance using the specified properties. + * Creates a new SearchAds360Link instance using the specified properties. * @param [properties] Properties to set - * @returns PropertySummary instance + * @returns SearchAds360Link instance */ - public static create(properties?: google.analytics.admin.v1alpha.IPropertySummary): google.analytics.admin.v1alpha.PropertySummary; + public static create(properties?: google.analytics.admin.v1alpha.ISearchAds360Link): google.analytics.admin.v1alpha.SearchAds360Link; /** - * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. - * @param message PropertySummary message or plain object to encode + * Encodes the specified SearchAds360Link message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchAds360Link.verify|verify} messages. + * @param message SearchAds360Link message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ISearchAds360Link, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. - * @param message PropertySummary message or plain object to encode + * Encodes the specified SearchAds360Link message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchAds360Link.verify|verify} messages. + * @param message SearchAds360Link message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IPropertySummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ISearchAds360Link, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PropertySummary message from the specified reader or buffer. + * Decodes a SearchAds360Link message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PropertySummary + * @returns SearchAds360Link * @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.analytics.admin.v1alpha.PropertySummary; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.SearchAds360Link; /** - * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * Decodes a SearchAds360Link message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PropertySummary + * @returns SearchAds360Link * @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.analytics.admin.v1alpha.PropertySummary; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.SearchAds360Link; /** - * Verifies a PropertySummary message. + * Verifies a SearchAds360Link 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 PropertySummary message from a plain object. Also converts values to their respective internal types. + * Creates a SearchAds360Link message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PropertySummary + * @returns SearchAds360Link */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.PropertySummary; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.SearchAds360Link; /** - * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. - * @param message PropertySummary + * Creates a plain object from a SearchAds360Link message. Also converts values to other types if specified. + * @param message SearchAds360Link * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.PropertySummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.SearchAds360Link, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PropertySummary to JSON. + * Converts this SearchAds360Link to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PropertySummary + * Gets the default type url for SearchAds360Link * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MeasurementProtocolSecret. */ - interface IMeasurementProtocolSecret { + /** Properties of a LinkProposalStatusDetails. */ + interface ILinkProposalStatusDetails { - /** MeasurementProtocolSecret name */ - name?: (string|null); + /** LinkProposalStatusDetails linkProposalInitiatingProduct */ + linkProposalInitiatingProduct?: (google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|keyof typeof google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|null); - /** MeasurementProtocolSecret displayName */ - displayName?: (string|null); + /** LinkProposalStatusDetails requestorEmail */ + requestorEmail?: (string|null); - /** MeasurementProtocolSecret secretValue */ - secretValue?: (string|null); + /** LinkProposalStatusDetails linkProposalState */ + linkProposalState?: (google.analytics.admin.v1alpha.LinkProposalState|keyof typeof google.analytics.admin.v1alpha.LinkProposalState|null); } - /** Represents a MeasurementProtocolSecret. */ - class MeasurementProtocolSecret implements IMeasurementProtocolSecret { + /** Represents a LinkProposalStatusDetails. */ + class LinkProposalStatusDetails implements ILinkProposalStatusDetails { /** - * Constructs a new MeasurementProtocolSecret. + * Constructs a new LinkProposalStatusDetails. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret); + constructor(properties?: google.analytics.admin.v1alpha.ILinkProposalStatusDetails); - /** MeasurementProtocolSecret name. */ - public name: string; + /** LinkProposalStatusDetails linkProposalInitiatingProduct. */ + public linkProposalInitiatingProduct: (google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|keyof typeof google.analytics.admin.v1alpha.LinkProposalInitiatingProduct); - /** MeasurementProtocolSecret displayName. */ - public displayName: string; + /** LinkProposalStatusDetails requestorEmail. */ + public requestorEmail: string; - /** MeasurementProtocolSecret secretValue. */ - public secretValue: string; + /** LinkProposalStatusDetails linkProposalState. */ + public linkProposalState: (google.analytics.admin.v1alpha.LinkProposalState|keyof typeof google.analytics.admin.v1alpha.LinkProposalState); /** - * Creates a new MeasurementProtocolSecret instance using the specified properties. + * Creates a new LinkProposalStatusDetails instance using the specified properties. * @param [properties] Properties to set - * @returns MeasurementProtocolSecret instance + * @returns LinkProposalStatusDetails instance */ - public static create(properties?: google.analytics.admin.v1alpha.IMeasurementProtocolSecret): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + public static create(properties?: google.analytics.admin.v1alpha.ILinkProposalStatusDetails): google.analytics.admin.v1alpha.LinkProposalStatusDetails; /** - * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. - * @param message MeasurementProtocolSecret message or plain object to encode + * Encodes the specified LinkProposalStatusDetails message. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * @param message LinkProposalStatusDetails message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ILinkProposalStatusDetails, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. - * @param message MeasurementProtocolSecret message or plain object to encode + * Encodes the specified LinkProposalStatusDetails message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * @param message LinkProposalStatusDetails message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IMeasurementProtocolSecret, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ILinkProposalStatusDetails, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * Decodes a LinkProposalStatusDetails message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MeasurementProtocolSecret + * @returns LinkProposalStatusDetails * @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.analytics.admin.v1alpha.MeasurementProtocolSecret; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.LinkProposalStatusDetails; /** - * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * Decodes a LinkProposalStatusDetails message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MeasurementProtocolSecret + * @returns LinkProposalStatusDetails * @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.analytics.admin.v1alpha.MeasurementProtocolSecret; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.LinkProposalStatusDetails; /** - * Verifies a MeasurementProtocolSecret message. + * Verifies a LinkProposalStatusDetails 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 MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * Creates a LinkProposalStatusDetails message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MeasurementProtocolSecret + * @returns LinkProposalStatusDetails */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.MeasurementProtocolSecret; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.LinkProposalStatusDetails; /** - * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. - * @param message MeasurementProtocolSecret + * Creates a plain object from a LinkProposalStatusDetails message. Also converts values to other types if specified. + * @param message LinkProposalStatusDetails * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.MeasurementProtocolSecret, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.LinkProposalStatusDetails, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MeasurementProtocolSecret to JSON. + * Converts this LinkProposalStatusDetails to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MeasurementProtocolSecret + * Gets the default type url for LinkProposalStatusDetails * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ChangeHistoryEvent. */ - interface IChangeHistoryEvent { - - /** ChangeHistoryEvent id */ - id?: (string|null); + /** Properties of a ConversionEvent. */ + interface IConversionEvent { - /** ChangeHistoryEvent changeTime */ - changeTime?: (google.protobuf.ITimestamp|null); + /** ConversionEvent name */ + name?: (string|null); - /** ChangeHistoryEvent actorType */ - actorType?: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType|null); + /** ConversionEvent eventName */ + eventName?: (string|null); - /** ChangeHistoryEvent userActorEmail */ - userActorEmail?: (string|null); + /** ConversionEvent createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ChangeHistoryEvent changesFiltered */ - changesFiltered?: (boolean|null); + /** ConversionEvent deletable */ + deletable?: (boolean|null); - /** ChangeHistoryEvent changes */ - changes?: (google.analytics.admin.v1alpha.IChangeHistoryChange[]|null); + /** ConversionEvent custom */ + custom?: (boolean|null); } - /** Represents a ChangeHistoryEvent. */ - class ChangeHistoryEvent implements IChangeHistoryEvent { + /** Represents a ConversionEvent. */ + class ConversionEvent implements IConversionEvent { /** - * Constructs a new ChangeHistoryEvent. + * Constructs a new ConversionEvent. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent); - - /** ChangeHistoryEvent id. */ - public id: string; + constructor(properties?: google.analytics.admin.v1alpha.IConversionEvent); - /** ChangeHistoryEvent changeTime. */ - public changeTime?: (google.protobuf.ITimestamp|null); + /** ConversionEvent name. */ + public name: string; - /** ChangeHistoryEvent actorType. */ - public actorType: (google.analytics.admin.v1alpha.ActorType|keyof typeof google.analytics.admin.v1alpha.ActorType); + /** ConversionEvent eventName. */ + public eventName: string; - /** ChangeHistoryEvent userActorEmail. */ - public userActorEmail: string; + /** ConversionEvent createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ChangeHistoryEvent changesFiltered. */ - public changesFiltered: boolean; + /** ConversionEvent deletable. */ + public deletable: boolean; - /** ChangeHistoryEvent changes. */ - public changes: google.analytics.admin.v1alpha.IChangeHistoryChange[]; + /** ConversionEvent custom. */ + public custom: boolean; /** - * Creates a new ChangeHistoryEvent instance using the specified properties. + * Creates a new ConversionEvent instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeHistoryEvent instance + * @returns ConversionEvent instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryEvent): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static create(properties?: google.analytics.admin.v1alpha.IConversionEvent): google.analytics.admin.v1alpha.ConversionEvent; /** - * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. - * @param message ChangeHistoryEvent message or plain object to encode + * Encodes the specified ConversionEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * @param message ConversionEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IConversionEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. - * @param message ChangeHistoryEvent message or plain object to encode + * Encodes the specified ConversionEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * @param message ConversionEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IConversionEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * Decodes a ConversionEvent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeHistoryEvent + * @returns ConversionEvent * @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.analytics.admin.v1alpha.ChangeHistoryEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ConversionEvent; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * Decodes a ConversionEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeHistoryEvent + * @returns ConversionEvent * @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.analytics.admin.v1alpha.ChangeHistoryEvent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ConversionEvent; /** - * Verifies a ChangeHistoryEvent message. + * Verifies a ConversionEvent 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 ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * Creates a ConversionEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeHistoryEvent + * @returns ConversionEvent */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryEvent; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ConversionEvent; /** - * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. - * @param message ChangeHistoryEvent + * Creates a plain object from a ConversionEvent message. Also converts values to other types if specified. + * @param message ConversionEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ConversionEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeHistoryEvent to JSON. + * Converts this ConversionEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeHistoryEvent + * Gets the default type url for ConversionEvent * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ChangeHistoryChange. */ - interface IChangeHistoryChange { - - /** ChangeHistoryChange resource */ - resource?: (string|null); + /** Properties of a GoogleSignalsSettings. */ + interface IGoogleSignalsSettings { - /** ChangeHistoryChange action */ - action?: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType|null); + /** GoogleSignalsSettings name */ + name?: (string|null); - /** ChangeHistoryChange resourceBeforeChange */ - resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** GoogleSignalsSettings state */ + state?: (google.analytics.admin.v1alpha.GoogleSignalsState|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsState|null); - /** ChangeHistoryChange resourceAfterChange */ - resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** GoogleSignalsSettings consent */ + consent?: (google.analytics.admin.v1alpha.GoogleSignalsConsent|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsConsent|null); } - /** Represents a ChangeHistoryChange. */ - class ChangeHistoryChange implements IChangeHistoryChange { + /** Represents a GoogleSignalsSettings. */ + class GoogleSignalsSettings implements IGoogleSignalsSettings { /** - * Constructs a new ChangeHistoryChange. + * Constructs a new GoogleSignalsSettings. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange); - - /** ChangeHistoryChange resource. */ - public resource: string; - - /** ChangeHistoryChange action. */ - public action: (google.analytics.admin.v1alpha.ActionType|keyof typeof google.analytics.admin.v1alpha.ActionType); + constructor(properties?: google.analytics.admin.v1alpha.IGoogleSignalsSettings); - /** ChangeHistoryChange resourceBeforeChange. */ - public resourceBeforeChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** GoogleSignalsSettings name. */ + public name: string; - /** ChangeHistoryChange resourceAfterChange. */ - public resourceAfterChange?: (google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null); + /** GoogleSignalsSettings state. */ + public state: (google.analytics.admin.v1alpha.GoogleSignalsState|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsState); + + /** GoogleSignalsSettings consent. */ + public consent: (google.analytics.admin.v1alpha.GoogleSignalsConsent|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsConsent); /** - * Creates a new ChangeHistoryChange instance using the specified properties. + * Creates a new GoogleSignalsSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeHistoryChange instance + * @returns GoogleSignalsSettings instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChangeHistoryChange): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static create(properties?: google.analytics.admin.v1alpha.IGoogleSignalsSettings): google.analytics.admin.v1alpha.GoogleSignalsSettings; /** - * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. - * @param message ChangeHistoryChange message or plain object to encode + * Encodes the specified GoogleSignalsSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * @param message GoogleSignalsSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGoogleSignalsSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. - * @param message ChangeHistoryChange message or plain object to encode + * Encodes the specified GoogleSignalsSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * @param message GoogleSignalsSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChangeHistoryChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleSignalsSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * Decodes a GoogleSignalsSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeHistoryChange + * @returns GoogleSignalsSettings * @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.analytics.admin.v1alpha.ChangeHistoryChange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GoogleSignalsSettings; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * Decodes a GoogleSignalsSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeHistoryChange + * @returns GoogleSignalsSettings * @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.analytics.admin.v1alpha.ChangeHistoryChange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GoogleSignalsSettings; /** - * Verifies a ChangeHistoryChange message. + * Verifies a GoogleSignalsSettings 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 ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * Creates a GoogleSignalsSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeHistoryChange + * @returns GoogleSignalsSettings */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleSignalsSettings; /** - * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. - * @param message ChangeHistoryChange + * Creates a plain object from a GoogleSignalsSettings message. Also converts values to other types if specified. + * @param message GoogleSignalsSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GoogleSignalsSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeHistoryChange to JSON. + * Converts this GoogleSignalsSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeHistoryChange + * Gets the default type url for GoogleSignalsSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ChangeHistoryChange { - - /** Properties of a ChangeHistoryResource. */ - interface IChangeHistoryResource { - - /** ChangeHistoryResource account */ - account?: (google.analytics.admin.v1alpha.IAccount|null); - - /** ChangeHistoryResource property */ - property?: (google.analytics.admin.v1alpha.IProperty|null); - - /** ChangeHistoryResource firebaseLink */ - firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); - - /** ChangeHistoryResource googleAdsLink */ - googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); - - /** ChangeHistoryResource googleSignalsSettings */ - googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); - - /** ChangeHistoryResource displayVideo_360AdvertiserLink */ - displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); - - /** ChangeHistoryResource displayVideo_360AdvertiserLinkProposal */ - displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); - - /** ChangeHistoryResource conversionEvent */ - conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); - - /** ChangeHistoryResource measurementProtocolSecret */ - measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); - - /** ChangeHistoryResource customDimension */ - customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); - - /** ChangeHistoryResource customMetric */ - customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - - /** ChangeHistoryResource dataRetentionSettings */ - dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); - - /** ChangeHistoryResource dataStream */ - dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); - - /** ChangeHistoryResource attributionSettings */ - attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); - } - - /** Represents a ChangeHistoryResource. */ - class ChangeHistoryResource implements IChangeHistoryResource { - - /** - * Constructs a new ChangeHistoryResource. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource); - - /** ChangeHistoryResource account. */ - public account?: (google.analytics.admin.v1alpha.IAccount|null); - - /** ChangeHistoryResource property. */ - public property?: (google.analytics.admin.v1alpha.IProperty|null); - - /** ChangeHistoryResource firebaseLink. */ - public firebaseLink?: (google.analytics.admin.v1alpha.IFirebaseLink|null); - - /** ChangeHistoryResource googleAdsLink. */ - public googleAdsLink?: (google.analytics.admin.v1alpha.IGoogleAdsLink|null); - - /** ChangeHistoryResource googleSignalsSettings. */ - public googleSignalsSettings?: (google.analytics.admin.v1alpha.IGoogleSignalsSettings|null); - - /** ChangeHistoryResource displayVideo_360AdvertiserLink. */ - public displayVideo_360AdvertiserLink?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null); - - /** ChangeHistoryResource displayVideo_360AdvertiserLinkProposal. */ - public displayVideo_360AdvertiserLinkProposal?: (google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null); - - /** ChangeHistoryResource conversionEvent. */ - public conversionEvent?: (google.analytics.admin.v1alpha.IConversionEvent|null); - - /** ChangeHistoryResource measurementProtocolSecret. */ - public measurementProtocolSecret?: (google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null); - - /** ChangeHistoryResource customDimension. */ - public customDimension?: (google.analytics.admin.v1alpha.ICustomDimension|null); - - /** ChangeHistoryResource customMetric. */ - public customMetric?: (google.analytics.admin.v1alpha.ICustomMetric|null); - - /** ChangeHistoryResource dataRetentionSettings. */ - public dataRetentionSettings?: (google.analytics.admin.v1alpha.IDataRetentionSettings|null); - - /** ChangeHistoryResource dataStream. */ - public dataStream?: (google.analytics.admin.v1alpha.IDataStream|null); - - /** ChangeHistoryResource attributionSettings. */ - public attributionSettings?: (google.analytics.admin.v1alpha.IAttributionSettings|null); - - /** ChangeHistoryResource resource. */ - public resource?: ("account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"dataStream"|"attributionSettings"); - - /** - * Creates a new ChangeHistoryResource instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeHistoryResource instance - */ - public static create(properties?: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @param message ChangeHistoryResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. - * @param message ChangeHistoryResource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeHistoryResource - * @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.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeHistoryResource - * @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.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Verifies a ChangeHistoryResource 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 ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeHistoryResource - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource; - - /** - * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. - * @param message ChangeHistoryResource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeHistoryResource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeHistoryResource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a DisplayVideo360AdvertiserLink. */ - interface IDisplayVideo360AdvertiserLink { + /** Properties of a CustomDimension. */ + interface ICustomDimension { - /** DisplayVideo360AdvertiserLink name */ + /** CustomDimension name */ name?: (string|null); - /** DisplayVideo360AdvertiserLink advertiserId */ - advertiserId?: (string|null); - - /** DisplayVideo360AdvertiserLink advertiserDisplayName */ - advertiserDisplayName?: (string|null); + /** CustomDimension parameterName */ + parameterName?: (string|null); - /** DisplayVideo360AdvertiserLink adsPersonalizationEnabled */ - adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + /** CustomDimension displayName */ + displayName?: (string|null); - /** DisplayVideo360AdvertiserLink campaignDataSharingEnabled */ - campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + /** CustomDimension description */ + description?: (string|null); - /** DisplayVideo360AdvertiserLink costDataSharingEnabled */ - costDataSharingEnabled?: (google.protobuf.IBoolValue|null); + /** CustomDimension scope */ + scope?: (google.analytics.admin.v1alpha.CustomDimension.DimensionScope|keyof typeof google.analytics.admin.v1alpha.CustomDimension.DimensionScope|null); + + /** CustomDimension disallowAdsPersonalization */ + disallowAdsPersonalization?: (boolean|null); } - /** Represents a DisplayVideo360AdvertiserLink. */ - class DisplayVideo360AdvertiserLink implements IDisplayVideo360AdvertiserLink { + /** Represents a CustomDimension. */ + class CustomDimension implements ICustomDimension { /** - * Constructs a new DisplayVideo360AdvertiserLink. + * Constructs a new CustomDimension. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink); + constructor(properties?: google.analytics.admin.v1alpha.ICustomDimension); - /** DisplayVideo360AdvertiserLink name. */ + /** CustomDimension name. */ public name: string; - /** DisplayVideo360AdvertiserLink advertiserId. */ - public advertiserId: string; + /** CustomDimension parameterName. */ + public parameterName: string; - /** DisplayVideo360AdvertiserLink advertiserDisplayName. */ - public advertiserDisplayName: string; + /** CustomDimension displayName. */ + public displayName: string; - /** DisplayVideo360AdvertiserLink adsPersonalizationEnabled. */ - public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + /** CustomDimension description. */ + public description: string; - /** DisplayVideo360AdvertiserLink campaignDataSharingEnabled. */ - public campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + /** CustomDimension scope. */ + public scope: (google.analytics.admin.v1alpha.CustomDimension.DimensionScope|keyof typeof google.analytics.admin.v1alpha.CustomDimension.DimensionScope); - /** DisplayVideo360AdvertiserLink costDataSharingEnabled. */ - public costDataSharingEnabled?: (google.protobuf.IBoolValue|null); + /** CustomDimension disallowAdsPersonalization. */ + public disallowAdsPersonalization: boolean; /** - * Creates a new DisplayVideo360AdvertiserLink instance using the specified properties. + * Creates a new CustomDimension instance using the specified properties. * @param [properties] Properties to set - * @returns DisplayVideo360AdvertiserLink instance + * @returns CustomDimension instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; + public static create(properties?: google.analytics.admin.v1alpha.ICustomDimension): google.analytics.admin.v1alpha.CustomDimension; /** - * Encodes the specified DisplayVideo360AdvertiserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. - * @param message DisplayVideo360AdvertiserLink message or plain object to encode + * Encodes the specified CustomDimension message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. + * @param message CustomDimension message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICustomDimension, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DisplayVideo360AdvertiserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. - * @param message DisplayVideo360AdvertiserLink message or plain object to encode + * Encodes the specified CustomDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. + * @param message CustomDimension message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICustomDimension, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer. + * Decodes a CustomDimension message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DisplayVideo360AdvertiserLink + * @returns CustomDimension * @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.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CustomDimension; /** - * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer, length delimited. + * Decodes a CustomDimension message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DisplayVideo360AdvertiserLink + * @returns CustomDimension * @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.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CustomDimension; /** - * Verifies a DisplayVideo360AdvertiserLink message. + * Verifies a CustomDimension 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 DisplayVideo360AdvertiserLink message from a plain object. Also converts values to their respective internal types. + * Creates a CustomDimension message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DisplayVideo360AdvertiserLink + * @returns CustomDimension */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CustomDimension; /** - * Creates a plain object from a DisplayVideo360AdvertiserLink message. Also converts values to other types if specified. - * @param message DisplayVideo360AdvertiserLink + * Creates a plain object from a CustomDimension message. Also converts values to other types if specified. + * @param message CustomDimension * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CustomDimension, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DisplayVideo360AdvertiserLink to JSON. + * Converts this CustomDimension to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DisplayVideo360AdvertiserLink + * Gets the default type url for CustomDimension * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DisplayVideo360AdvertiserLinkProposal. */ - interface IDisplayVideo360AdvertiserLinkProposal { + namespace CustomDimension { - /** DisplayVideo360AdvertiserLinkProposal name */ - name?: (string|null); + /** DimensionScope enum. */ + enum DimensionScope { + DIMENSION_SCOPE_UNSPECIFIED = 0, + EVENT = 1, + USER = 2 + } + } - /** DisplayVideo360AdvertiserLinkProposal advertiserId */ - advertiserId?: (string|null); + /** Properties of a CustomMetric. */ + interface ICustomMetric { - /** DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails */ - linkProposalStatusDetails?: (google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null); + /** CustomMetric name */ + name?: (string|null); - /** DisplayVideo360AdvertiserLinkProposal advertiserDisplayName */ - advertiserDisplayName?: (string|null); + /** CustomMetric parameterName */ + parameterName?: (string|null); - /** DisplayVideo360AdvertiserLinkProposal validationEmail */ - validationEmail?: (string|null); + /** CustomMetric displayName */ + displayName?: (string|null); - /** DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled */ - adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + /** CustomMetric description */ + description?: (string|null); - /** DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled */ - campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + /** CustomMetric measurementUnit */ + measurementUnit?: (google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|null); - /** DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled */ - costDataSharingEnabled?: (google.protobuf.IBoolValue|null); + /** CustomMetric scope */ + scope?: (google.analytics.admin.v1alpha.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MetricScope|null); + + /** CustomMetric restrictedMetricType */ + restrictedMetricType?: (google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[]|null); } - /** Represents a DisplayVideo360AdvertiserLinkProposal. */ - class DisplayVideo360AdvertiserLinkProposal implements IDisplayVideo360AdvertiserLinkProposal { + /** Represents a CustomMetric. */ + class CustomMetric implements ICustomMetric { /** - * Constructs a new DisplayVideo360AdvertiserLinkProposal. + * Constructs a new CustomMetric. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal); + constructor(properties?: google.analytics.admin.v1alpha.ICustomMetric); - /** DisplayVideo360AdvertiserLinkProposal name. */ + /** CustomMetric name. */ public name: string; - /** DisplayVideo360AdvertiserLinkProposal advertiserId. */ - public advertiserId: string; - - /** DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails. */ - public linkProposalStatusDetails?: (google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null); + /** CustomMetric parameterName. */ + public parameterName: string; - /** DisplayVideo360AdvertiserLinkProposal advertiserDisplayName. */ - public advertiserDisplayName: string; + /** CustomMetric displayName. */ + public displayName: string; - /** DisplayVideo360AdvertiserLinkProposal validationEmail. */ - public validationEmail: string; + /** CustomMetric description. */ + public description: string; - /** DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled. */ - public adsPersonalizationEnabled?: (google.protobuf.IBoolValue|null); + /** CustomMetric measurementUnit. */ + public measurementUnit: (google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit); - /** DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled. */ - public campaignDataSharingEnabled?: (google.protobuf.IBoolValue|null); + /** CustomMetric scope. */ + public scope: (google.analytics.admin.v1alpha.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MetricScope); - /** DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled. */ - public costDataSharingEnabled?: (google.protobuf.IBoolValue|null); + /** CustomMetric restrictedMetricType. */ + public restrictedMetricType: google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[]; /** - * Creates a new DisplayVideo360AdvertiserLinkProposal instance using the specified properties. + * Creates a new CustomMetric instance using the specified properties. * @param [properties] Properties to set - * @returns DisplayVideo360AdvertiserLinkProposal instance + * @returns CustomMetric instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; + public static create(properties?: google.analytics.admin.v1alpha.ICustomMetric): google.analytics.admin.v1alpha.CustomMetric; /** - * Encodes the specified DisplayVideo360AdvertiserLinkProposal message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. - * @param message DisplayVideo360AdvertiserLinkProposal message or plain object to encode + * Encodes the specified CustomMetric message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. + * @param message CustomMetric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICustomMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DisplayVideo360AdvertiserLinkProposal message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. - * @param message DisplayVideo360AdvertiserLinkProposal message or plain object to encode + * Encodes the specified CustomMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. + * @param message CustomMetric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICustomMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer. + * Decodes a CustomMetric message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DisplayVideo360AdvertiserLinkProposal + * @returns CustomMetric * @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.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CustomMetric; /** - * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer, length delimited. + * Decodes a CustomMetric message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DisplayVideo360AdvertiserLinkProposal + * @returns CustomMetric * @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.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CustomMetric; /** - * Verifies a DisplayVideo360AdvertiserLinkProposal message. + * Verifies a CustomMetric 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 DisplayVideo360AdvertiserLinkProposal message from a plain object. Also converts values to their respective internal types. + * Creates a CustomMetric message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DisplayVideo360AdvertiserLinkProposal + * @returns CustomMetric */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CustomMetric; /** - * Creates a plain object from a DisplayVideo360AdvertiserLinkProposal message. Also converts values to other types if specified. - * @param message DisplayVideo360AdvertiserLinkProposal + * Creates a plain object from a CustomMetric message. Also converts values to other types if specified. + * @param message CustomMetric * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CustomMetric, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DisplayVideo360AdvertiserLinkProposal to JSON. + * Converts this CustomMetric to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DisplayVideo360AdvertiserLinkProposal + * Gets the default type url for CustomMetric * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LinkProposalStatusDetails. */ - interface ILinkProposalStatusDetails { + namespace CustomMetric { - /** LinkProposalStatusDetails linkProposalInitiatingProduct */ - linkProposalInitiatingProduct?: (google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|keyof typeof google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|null); + /** MeasurementUnit enum. */ + enum MeasurementUnit { + MEASUREMENT_UNIT_UNSPECIFIED = 0, + STANDARD = 1, + CURRENCY = 2, + FEET = 3, + METERS = 4, + KILOMETERS = 5, + MILES = 6, + MILLISECONDS = 7, + SECONDS = 8, + MINUTES = 9, + HOURS = 10 + } + + /** MetricScope enum. */ + enum MetricScope { + METRIC_SCOPE_UNSPECIFIED = 0, + EVENT = 1 + } + + /** RestrictedMetricType enum. */ + enum RestrictedMetricType { + RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0, + COST_DATA = 1, + REVENUE_DATA = 2 + } + } + + /** Properties of a DataRetentionSettings. */ + interface IDataRetentionSettings { + + /** DataRetentionSettings name */ + name?: (string|null); - /** LinkProposalStatusDetails requestorEmail */ - requestorEmail?: (string|null); + /** DataRetentionSettings eventDataRetention */ + eventDataRetention?: (google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|keyof typeof google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|null); - /** LinkProposalStatusDetails linkProposalState */ - linkProposalState?: (google.analytics.admin.v1alpha.LinkProposalState|keyof typeof google.analytics.admin.v1alpha.LinkProposalState|null); + /** DataRetentionSettings resetUserDataOnNewActivity */ + resetUserDataOnNewActivity?: (boolean|null); } - /** Represents a LinkProposalStatusDetails. */ - class LinkProposalStatusDetails implements ILinkProposalStatusDetails { + /** Represents a DataRetentionSettings. */ + class DataRetentionSettings implements IDataRetentionSettings { /** - * Constructs a new LinkProposalStatusDetails. + * Constructs a new DataRetentionSettings. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ILinkProposalStatusDetails); + constructor(properties?: google.analytics.admin.v1alpha.IDataRetentionSettings); - /** LinkProposalStatusDetails linkProposalInitiatingProduct. */ - public linkProposalInitiatingProduct: (google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|keyof typeof google.analytics.admin.v1alpha.LinkProposalInitiatingProduct); + /** DataRetentionSettings name. */ + public name: string; - /** LinkProposalStatusDetails requestorEmail. */ - public requestorEmail: string; + /** DataRetentionSettings eventDataRetention. */ + public eventDataRetention: (google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|keyof typeof google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration); - /** LinkProposalStatusDetails linkProposalState. */ - public linkProposalState: (google.analytics.admin.v1alpha.LinkProposalState|keyof typeof google.analytics.admin.v1alpha.LinkProposalState); + /** DataRetentionSettings resetUserDataOnNewActivity. */ + public resetUserDataOnNewActivity: boolean; /** - * Creates a new LinkProposalStatusDetails instance using the specified properties. + * Creates a new DataRetentionSettings instance using the specified properties. * @param [properties] Properties to set - * @returns LinkProposalStatusDetails instance + * @returns DataRetentionSettings instance */ - public static create(properties?: google.analytics.admin.v1alpha.ILinkProposalStatusDetails): google.analytics.admin.v1alpha.LinkProposalStatusDetails; + public static create(properties?: google.analytics.admin.v1alpha.IDataRetentionSettings): google.analytics.admin.v1alpha.DataRetentionSettings; /** - * Encodes the specified LinkProposalStatusDetails message. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. - * @param message LinkProposalStatusDetails message or plain object to encode + * Encodes the specified DataRetentionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. + * @param message DataRetentionSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ILinkProposalStatusDetails, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDataRetentionSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LinkProposalStatusDetails message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. - * @param message LinkProposalStatusDetails message or plain object to encode + * Encodes the specified DataRetentionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. + * @param message DataRetentionSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ILinkProposalStatusDetails, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataRetentionSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LinkProposalStatusDetails message from the specified reader or buffer. + * Decodes a DataRetentionSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LinkProposalStatusDetails + * @returns DataRetentionSettings * @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.analytics.admin.v1alpha.LinkProposalStatusDetails; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DataRetentionSettings; /** - * Decodes a LinkProposalStatusDetails message from the specified reader or buffer, length delimited. + * Decodes a DataRetentionSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LinkProposalStatusDetails + * @returns DataRetentionSettings * @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.analytics.admin.v1alpha.LinkProposalStatusDetails; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DataRetentionSettings; /** - * Verifies a LinkProposalStatusDetails message. + * Verifies a DataRetentionSettings 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 LinkProposalStatusDetails message from a plain object. Also converts values to their respective internal types. + * Creates a DataRetentionSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LinkProposalStatusDetails + * @returns DataRetentionSettings */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.LinkProposalStatusDetails; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataRetentionSettings; /** - * Creates a plain object from a LinkProposalStatusDetails message. Also converts values to other types if specified. - * @param message LinkProposalStatusDetails + * Creates a plain object from a DataRetentionSettings message. Also converts values to other types if specified. + * @param message DataRetentionSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.LinkProposalStatusDetails, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DataRetentionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LinkProposalStatusDetails to JSON. + * Converts this DataRetentionSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LinkProposalStatusDetails + * Gets the default type url for DataRetentionSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ConversionEvent. */ - interface IConversionEvent { + namespace DataRetentionSettings { - /** ConversionEvent name */ - name?: (string|null); + /** RetentionDuration enum. */ + enum RetentionDuration { + RETENTION_DURATION_UNSPECIFIED = 0, + TWO_MONTHS = 1, + FOURTEEN_MONTHS = 3, + TWENTY_SIX_MONTHS = 4, + THIRTY_EIGHT_MONTHS = 5, + FIFTY_MONTHS = 6 + } + } - /** ConversionEvent eventName */ - eventName?: (string|null); + /** Properties of an AttributionSettings. */ + interface IAttributionSettings { - /** ConversionEvent createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** AttributionSettings name */ + name?: (string|null); - /** ConversionEvent deletable */ - deletable?: (boolean|null); + /** AttributionSettings acquisitionConversionEventLookbackWindow */ + acquisitionConversionEventLookbackWindow?: (google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|null); - /** ConversionEvent custom */ - custom?: (boolean|null); + /** AttributionSettings otherConversionEventLookbackWindow */ + otherConversionEventLookbackWindow?: (google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|null); + + /** AttributionSettings reportingAttributionModel */ + reportingAttributionModel?: (google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|null); } - /** Represents a ConversionEvent. */ - class ConversionEvent implements IConversionEvent { + /** Represents an AttributionSettings. */ + class AttributionSettings implements IAttributionSettings { /** - * Constructs a new ConversionEvent. + * Constructs a new AttributionSettings. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IConversionEvent); + constructor(properties?: google.analytics.admin.v1alpha.IAttributionSettings); - /** ConversionEvent name. */ + /** AttributionSettings name. */ public name: string; - /** ConversionEvent eventName. */ - public eventName: string; - - /** ConversionEvent createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** AttributionSettings acquisitionConversionEventLookbackWindow. */ + public acquisitionConversionEventLookbackWindow: (google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow); - /** ConversionEvent deletable. */ - public deletable: boolean; + /** AttributionSettings otherConversionEventLookbackWindow. */ + public otherConversionEventLookbackWindow: (google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow); - /** ConversionEvent custom. */ - public custom: boolean; + /** AttributionSettings reportingAttributionModel. */ + public reportingAttributionModel: (google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel); /** - * Creates a new ConversionEvent instance using the specified properties. + * Creates a new AttributionSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ConversionEvent instance + * @returns AttributionSettings instance */ - public static create(properties?: google.analytics.admin.v1alpha.IConversionEvent): google.analytics.admin.v1alpha.ConversionEvent; + public static create(properties?: google.analytics.admin.v1alpha.IAttributionSettings): google.analytics.admin.v1alpha.AttributionSettings; /** - * Encodes the specified ConversionEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. - * @param message ConversionEvent message or plain object to encode + * Encodes the specified AttributionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. + * @param message AttributionSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IConversionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAttributionSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConversionEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. - * @param message ConversionEvent message or plain object to encode + * Encodes the specified AttributionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. + * @param message AttributionSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IConversionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAttributionSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConversionEvent message from the specified reader or buffer. + * Decodes an AttributionSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConversionEvent + * @returns AttributionSettings * @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.analytics.admin.v1alpha.ConversionEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AttributionSettings; /** - * Decodes a ConversionEvent message from the specified reader or buffer, length delimited. + * Decodes an AttributionSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConversionEvent + * @returns AttributionSettings * @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.analytics.admin.v1alpha.ConversionEvent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AttributionSettings; /** - * Verifies a ConversionEvent message. + * Verifies an AttributionSettings 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 ConversionEvent message from a plain object. Also converts values to their respective internal types. + * Creates an AttributionSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConversionEvent + * @returns AttributionSettings */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ConversionEvent; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AttributionSettings; /** - * Creates a plain object from a ConversionEvent message. Also converts values to other types if specified. - * @param message ConversionEvent + * Creates a plain object from an AttributionSettings message. Also converts values to other types if specified. + * @param message AttributionSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ConversionEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AttributionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConversionEvent to JSON. + * Converts this AttributionSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConversionEvent + * Gets the default type url for AttributionSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GoogleSignalsSettings. */ - interface IGoogleSignalsSettings { + namespace AttributionSettings { - /** GoogleSignalsSettings name */ + /** AcquisitionConversionEventLookbackWindow enum. */ + enum AcquisitionConversionEventLookbackWindow { + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0, + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1, + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2 + } + + /** OtherConversionEventLookbackWindow enum. */ + enum OtherConversionEventLookbackWindow { + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0, + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1, + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2, + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3 + } + + /** ReportingAttributionModel enum. */ + enum ReportingAttributionModel { + REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0, + CROSS_CHANNEL_DATA_DRIVEN = 1, + CROSS_CHANNEL_LAST_CLICK = 2, + CROSS_CHANNEL_FIRST_CLICK = 3, + CROSS_CHANNEL_LINEAR = 4, + CROSS_CHANNEL_POSITION_BASED = 5, + CROSS_CHANNEL_TIME_DECAY = 6, + ADS_PREFERRED_LAST_CLICK = 7 + } + } + + /** Properties of a BigQueryLink. */ + interface IBigQueryLink { + + /** BigQueryLink name */ name?: (string|null); - /** GoogleSignalsSettings state */ - state?: (google.analytics.admin.v1alpha.GoogleSignalsState|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsState|null); + /** BigQueryLink project */ + project?: (string|null); - /** GoogleSignalsSettings consent */ - consent?: (google.analytics.admin.v1alpha.GoogleSignalsConsent|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsConsent|null); + /** BigQueryLink createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** BigQueryLink dailyExportEnabled */ + dailyExportEnabled?: (boolean|null); + + /** BigQueryLink streamingExportEnabled */ + streamingExportEnabled?: (boolean|null); + + /** BigQueryLink includeAdvertisingId */ + includeAdvertisingId?: (boolean|null); + + /** BigQueryLink exportStreams */ + exportStreams?: (string[]|null); + + /** BigQueryLink excludedEvents */ + excludedEvents?: (string[]|null); } - /** Represents a GoogleSignalsSettings. */ - class GoogleSignalsSettings implements IGoogleSignalsSettings { + /** Represents a BigQueryLink. */ + class BigQueryLink implements IBigQueryLink { /** - * Constructs a new GoogleSignalsSettings. + * Constructs a new BigQueryLink. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGoogleSignalsSettings); + constructor(properties?: google.analytics.admin.v1alpha.IBigQueryLink); - /** GoogleSignalsSettings name. */ + /** BigQueryLink name. */ public name: string; - /** GoogleSignalsSettings state. */ - public state: (google.analytics.admin.v1alpha.GoogleSignalsState|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsState); + /** BigQueryLink project. */ + public project: string; - /** GoogleSignalsSettings consent. */ - public consent: (google.analytics.admin.v1alpha.GoogleSignalsConsent|keyof typeof google.analytics.admin.v1alpha.GoogleSignalsConsent); + /** BigQueryLink createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** BigQueryLink dailyExportEnabled. */ + public dailyExportEnabled: boolean; + + /** BigQueryLink streamingExportEnabled. */ + public streamingExportEnabled: boolean; + + /** BigQueryLink includeAdvertisingId. */ + public includeAdvertisingId: boolean; + + /** BigQueryLink exportStreams. */ + public exportStreams: string[]; + + /** BigQueryLink excludedEvents. */ + public excludedEvents: string[]; /** - * Creates a new GoogleSignalsSettings instance using the specified properties. + * Creates a new BigQueryLink instance using the specified properties. * @param [properties] Properties to set - * @returns GoogleSignalsSettings instance + * @returns BigQueryLink instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGoogleSignalsSettings): google.analytics.admin.v1alpha.GoogleSignalsSettings; + public static create(properties?: google.analytics.admin.v1alpha.IBigQueryLink): google.analytics.admin.v1alpha.BigQueryLink; /** - * Encodes the specified GoogleSignalsSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. - * @param message GoogleSignalsSettings message or plain object to encode + * Encodes the specified BigQueryLink message. Does not implicitly {@link google.analytics.admin.v1alpha.BigQueryLink.verify|verify} messages. + * @param message BigQueryLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGoogleSignalsSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IBigQueryLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GoogleSignalsSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. - * @param message GoogleSignalsSettings message or plain object to encode + * Encodes the specified BigQueryLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BigQueryLink.verify|verify} messages. + * @param message BigQueryLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGoogleSignalsSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IBigQueryLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GoogleSignalsSettings message from the specified reader or buffer. + * Decodes a BigQueryLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GoogleSignalsSettings + * @returns BigQueryLink * @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.analytics.admin.v1alpha.GoogleSignalsSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.BigQueryLink; /** - * Decodes a GoogleSignalsSettings message from the specified reader or buffer, length delimited. + * Decodes a BigQueryLink message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GoogleSignalsSettings + * @returns BigQueryLink * @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.analytics.admin.v1alpha.GoogleSignalsSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.BigQueryLink; /** - * Verifies a GoogleSignalsSettings message. + * Verifies a BigQueryLink 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 GoogleSignalsSettings message from a plain object. Also converts values to their respective internal types. + * Creates a BigQueryLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GoogleSignalsSettings + * @returns BigQueryLink */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GoogleSignalsSettings; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.BigQueryLink; /** - * Creates a plain object from a GoogleSignalsSettings message. Also converts values to other types if specified. - * @param message GoogleSignalsSettings + * Creates a plain object from a BigQueryLink message. Also converts values to other types if specified. + * @param message BigQueryLink * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GoogleSignalsSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.BigQueryLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GoogleSignalsSettings to JSON. + * Converts this BigQueryLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GoogleSignalsSettings + * Gets the default type url for BigQueryLink * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomDimension. */ - interface ICustomDimension { - - /** CustomDimension name */ - name?: (string|null); - - /** CustomDimension parameterName */ - parameterName?: (string|null); - - /** CustomDimension displayName */ - displayName?: (string|null); + /** Properties of an ExpandedDataSetFilter. */ + interface IExpandedDataSetFilter { - /** CustomDimension description */ - description?: (string|null); + /** ExpandedDataSetFilter stringFilter */ + stringFilter?: (google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter|null); - /** CustomDimension scope */ - scope?: (google.analytics.admin.v1alpha.CustomDimension.DimensionScope|keyof typeof google.analytics.admin.v1alpha.CustomDimension.DimensionScope|null); + /** ExpandedDataSetFilter inListFilter */ + inListFilter?: (google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter|null); - /** CustomDimension disallowAdsPersonalization */ - disallowAdsPersonalization?: (boolean|null); + /** ExpandedDataSetFilter fieldName */ + fieldName?: (string|null); } - /** Represents a CustomDimension. */ - class CustomDimension implements ICustomDimension { + /** Represents an ExpandedDataSetFilter. */ + class ExpandedDataSetFilter implements IExpandedDataSetFilter { /** - * Constructs a new CustomDimension. + * Constructs a new ExpandedDataSetFilter. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICustomDimension); - - /** CustomDimension name. */ - public name: string; + constructor(properties?: google.analytics.admin.v1alpha.IExpandedDataSetFilter); - /** CustomDimension parameterName. */ - public parameterName: string; - - /** CustomDimension displayName. */ - public displayName: string; + /** ExpandedDataSetFilter stringFilter. */ + public stringFilter?: (google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter|null); - /** CustomDimension description. */ - public description: string; + /** ExpandedDataSetFilter inListFilter. */ + public inListFilter?: (google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter|null); - /** CustomDimension scope. */ - public scope: (google.analytics.admin.v1alpha.CustomDimension.DimensionScope|keyof typeof google.analytics.admin.v1alpha.CustomDimension.DimensionScope); + /** ExpandedDataSetFilter fieldName. */ + public fieldName: string; - /** CustomDimension disallowAdsPersonalization. */ - public disallowAdsPersonalization: boolean; + /** ExpandedDataSetFilter oneFilter. */ + public oneFilter?: ("stringFilter"|"inListFilter"); /** - * Creates a new CustomDimension instance using the specified properties. + * Creates a new ExpandedDataSetFilter instance using the specified properties. * @param [properties] Properties to set - * @returns CustomDimension instance + * @returns ExpandedDataSetFilter instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICustomDimension): google.analytics.admin.v1alpha.CustomDimension; + public static create(properties?: google.analytics.admin.v1alpha.IExpandedDataSetFilter): google.analytics.admin.v1alpha.ExpandedDataSetFilter; /** - * Encodes the specified CustomDimension message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. - * @param message CustomDimension message or plain object to encode + * Encodes the specified ExpandedDataSetFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.verify|verify} messages. + * @param message ExpandedDataSetFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICustomDimension, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IExpandedDataSetFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. - * @param message CustomDimension message or plain object to encode + * Encodes the specified ExpandedDataSetFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.verify|verify} messages. + * @param message ExpandedDataSetFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICustomDimension, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IExpandedDataSetFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomDimension message from the specified reader or buffer. + * Decodes an ExpandedDataSetFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomDimension + * @returns ExpandedDataSetFilter * @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.analytics.admin.v1alpha.CustomDimension; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ExpandedDataSetFilter; /** - * Decodes a CustomDimension message from the specified reader or buffer, length delimited. + * Decodes an ExpandedDataSetFilter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomDimension + * @returns ExpandedDataSetFilter * @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.analytics.admin.v1alpha.CustomDimension; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ExpandedDataSetFilter; /** - * Verifies a CustomDimension message. + * Verifies an ExpandedDataSetFilter 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 CustomDimension message from a plain object. Also converts values to their respective internal types. + * Creates an ExpandedDataSetFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomDimension + * @returns ExpandedDataSetFilter */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CustomDimension; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ExpandedDataSetFilter; /** - * Creates a plain object from a CustomDimension message. Also converts values to other types if specified. - * @param message CustomDimension + * Creates a plain object from an ExpandedDataSetFilter message. Also converts values to other types if specified. + * @param message ExpandedDataSetFilter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CustomDimension, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ExpandedDataSetFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomDimension to JSON. + * Converts this ExpandedDataSetFilter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomDimension + * Gets the default type url for ExpandedDataSetFilter * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace CustomDimension { + namespace ExpandedDataSetFilter { + + /** Properties of a StringFilter. */ + interface IStringFilter { + + /** StringFilter matchType */ + matchType?: (google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType|null); + + /** StringFilter value */ + value?: (string|null); + + /** StringFilter caseSensitive */ + caseSensitive?: (boolean|null); + } + + /** Represents a StringFilter. */ + class StringFilter implements IStringFilter { + + /** + * Constructs a new StringFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter); + + /** StringFilter matchType. */ + public matchType: (google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType); + + /** StringFilter value. */ + public value: string; + + /** StringFilter caseSensitive. */ + public caseSensitive: boolean; + + /** + * Creates a new StringFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns StringFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter): google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter; + + /** + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StringFilter + * @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.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter; + + /** + * Decodes a StringFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StringFilter + * @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.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter; + + /** + * Verifies a StringFilter 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 StringFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StringFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter; + + /** + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @param message StringFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StringFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StringFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StringFilter { + + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + EXACT = 1, + CONTAINS = 2 + } + } + + /** Properties of an InListFilter. */ + interface IInListFilter { + + /** InListFilter values */ + values?: (string[]|null); + + /** InListFilter caseSensitive */ + caseSensitive?: (boolean|null); + } + + /** Represents an InListFilter. */ + class InListFilter implements IInListFilter { + + /** + * Constructs a new InListFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter); + + /** InListFilter values. */ + public values: string[]; + + /** InListFilter caseSensitive. */ + public caseSensitive: boolean; + + /** + * Creates a new InListFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns InListFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter): google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter; + + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InListFilter + * @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.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter; + + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InListFilter + * @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.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter; + + /** + * Verifies an InListFilter 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 an InListFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InListFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter; + + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @param message InListFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InListFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DimensionScope enum. */ - enum DimensionScope { - DIMENSION_SCOPE_UNSPECIFIED = 0, - EVENT = 1, - USER = 2 + /** + * Gets the default type url for InListFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } - /** Properties of a CustomMetric. */ - interface ICustomMetric { - - /** CustomMetric name */ - name?: (string|null); - - /** CustomMetric parameterName */ - parameterName?: (string|null); - - /** CustomMetric displayName */ - displayName?: (string|null); - - /** CustomMetric description */ - description?: (string|null); + /** Properties of an ExpandedDataSetFilterExpression. */ + interface IExpandedDataSetFilterExpression { - /** CustomMetric measurementUnit */ - measurementUnit?: (google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|null); + /** ExpandedDataSetFilterExpression andGroup */ + andGroup?: (google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList|null); - /** CustomMetric scope */ - scope?: (google.analytics.admin.v1alpha.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MetricScope|null); + /** ExpandedDataSetFilterExpression notExpression */ + notExpression?: (google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression|null); - /** CustomMetric restrictedMetricType */ - restrictedMetricType?: (google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[]|null); + /** ExpandedDataSetFilterExpression filter */ + filter?: (google.analytics.admin.v1alpha.IExpandedDataSetFilter|null); } - /** Represents a CustomMetric. */ - class CustomMetric implements ICustomMetric { + /** Represents an ExpandedDataSetFilterExpression. */ + class ExpandedDataSetFilterExpression implements IExpandedDataSetFilterExpression { /** - * Constructs a new CustomMetric. + * Constructs a new ExpandedDataSetFilterExpression. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.ICustomMetric); - - /** CustomMetric name. */ - public name: string; - - /** CustomMetric parameterName. */ - public parameterName: string; - - /** CustomMetric displayName. */ - public displayName: string; + constructor(properties?: google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression); - /** CustomMetric description. */ - public description: string; + /** ExpandedDataSetFilterExpression andGroup. */ + public andGroup?: (google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList|null); - /** CustomMetric measurementUnit. */ - public measurementUnit: (google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit); + /** ExpandedDataSetFilterExpression notExpression. */ + public notExpression?: (google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression|null); - /** CustomMetric scope. */ - public scope: (google.analytics.admin.v1alpha.CustomMetric.MetricScope|keyof typeof google.analytics.admin.v1alpha.CustomMetric.MetricScope); + /** ExpandedDataSetFilterExpression filter. */ + public filter?: (google.analytics.admin.v1alpha.IExpandedDataSetFilter|null); - /** CustomMetric restrictedMetricType. */ - public restrictedMetricType: google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[]; + /** ExpandedDataSetFilterExpression expr. */ + public expr?: ("andGroup"|"notExpression"|"filter"); /** - * Creates a new CustomMetric instance using the specified properties. + * Creates a new ExpandedDataSetFilterExpression instance using the specified properties. * @param [properties] Properties to set - * @returns CustomMetric instance + * @returns ExpandedDataSetFilterExpression instance */ - public static create(properties?: google.analytics.admin.v1alpha.ICustomMetric): google.analytics.admin.v1alpha.CustomMetric; + public static create(properties?: google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression): google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression; /** - * Encodes the specified CustomMetric message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. - * @param message CustomMetric message or plain object to encode + * Encodes the specified ExpandedDataSetFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.verify|verify} messages. + * @param message ExpandedDataSetFilterExpression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.ICustomMetric, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. - * @param message CustomMetric message or plain object to encode + * Encodes the specified ExpandedDataSetFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.verify|verify} messages. + * @param message ExpandedDataSetFilterExpression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ICustomMetric, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomMetric message from the specified reader or buffer. + * Decodes an ExpandedDataSetFilterExpression message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomMetric + * @returns ExpandedDataSetFilterExpression * @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.analytics.admin.v1alpha.CustomMetric; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression; /** - * Decodes a CustomMetric message from the specified reader or buffer, length delimited. + * Decodes an ExpandedDataSetFilterExpression message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomMetric + * @returns ExpandedDataSetFilterExpression * @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.analytics.admin.v1alpha.CustomMetric; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression; /** - * Verifies a CustomMetric message. + * Verifies an ExpandedDataSetFilterExpression 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 CustomMetric message from a plain object. Also converts values to their respective internal types. + * Creates an ExpandedDataSetFilterExpression message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomMetric + * @returns ExpandedDataSetFilterExpression */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CustomMetric; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression; /** - * Creates a plain object from a CustomMetric message. Also converts values to other types if specified. - * @param message CustomMetric + * Creates a plain object from an ExpandedDataSetFilterExpression message. Also converts values to other types if specified. + * @param message ExpandedDataSetFilterExpression * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.CustomMetric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomMetric to JSON. + * Converts this ExpandedDataSetFilterExpression to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomMetric + * Gets the default type url for ExpandedDataSetFilterExpression * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace CustomMetric { - - /** MeasurementUnit enum. */ - enum MeasurementUnit { - MEASUREMENT_UNIT_UNSPECIFIED = 0, - STANDARD = 1, - CURRENCY = 2, - FEET = 3, - METERS = 4, - KILOMETERS = 5, - MILES = 6, - MILLISECONDS = 7, - SECONDS = 8, - MINUTES = 9, - HOURS = 10 - } - - /** MetricScope enum. */ - enum MetricScope { - METRIC_SCOPE_UNSPECIFIED = 0, - EVENT = 1 - } - - /** RestrictedMetricType enum. */ - enum RestrictedMetricType { - RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0, - COST_DATA = 1, - REVENUE_DATA = 2 - } - } - - /** Properties of a DataRetentionSettings. */ - interface IDataRetentionSettings { - - /** DataRetentionSettings name */ - name?: (string|null); - - /** DataRetentionSettings eventDataRetention */ - eventDataRetention?: (google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|keyof typeof google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|null); + /** Properties of an ExpandedDataSetFilterExpressionList. */ + interface IExpandedDataSetFilterExpressionList { - /** DataRetentionSettings resetUserDataOnNewActivity */ - resetUserDataOnNewActivity?: (boolean|null); + /** ExpandedDataSetFilterExpressionList filterExpressions */ + filterExpressions?: (google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression[]|null); } - /** Represents a DataRetentionSettings. */ - class DataRetentionSettings implements IDataRetentionSettings { + /** Represents an ExpandedDataSetFilterExpressionList. */ + class ExpandedDataSetFilterExpressionList implements IExpandedDataSetFilterExpressionList { /** - * Constructs a new DataRetentionSettings. + * Constructs a new ExpandedDataSetFilterExpressionList. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IDataRetentionSettings); - - /** DataRetentionSettings name. */ - public name: string; + constructor(properties?: google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList); - /** DataRetentionSettings eventDataRetention. */ - public eventDataRetention: (google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|keyof typeof google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration); - - /** DataRetentionSettings resetUserDataOnNewActivity. */ - public resetUserDataOnNewActivity: boolean; + /** ExpandedDataSetFilterExpressionList filterExpressions. */ + public filterExpressions: google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression[]; /** - * Creates a new DataRetentionSettings instance using the specified properties. + * Creates a new ExpandedDataSetFilterExpressionList instance using the specified properties. * @param [properties] Properties to set - * @returns DataRetentionSettings instance + * @returns ExpandedDataSetFilterExpressionList instance */ - public static create(properties?: google.analytics.admin.v1alpha.IDataRetentionSettings): google.analytics.admin.v1alpha.DataRetentionSettings; + public static create(properties?: google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList): google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList; /** - * Encodes the specified DataRetentionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. - * @param message DataRetentionSettings message or plain object to encode + * Encodes the specified ExpandedDataSetFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.verify|verify} messages. + * @param message ExpandedDataSetFilterExpressionList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IDataRetentionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataRetentionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. - * @param message DataRetentionSettings message or plain object to encode + * Encodes the specified ExpandedDataSetFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.verify|verify} messages. + * @param message ExpandedDataSetFilterExpressionList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IDataRetentionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataRetentionSettings message from the specified reader or buffer. + * Decodes an ExpandedDataSetFilterExpressionList message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataRetentionSettings + * @returns ExpandedDataSetFilterExpressionList * @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.analytics.admin.v1alpha.DataRetentionSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList; /** - * Decodes a DataRetentionSettings message from the specified reader or buffer, length delimited. + * Decodes an ExpandedDataSetFilterExpressionList message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataRetentionSettings + * @returns ExpandedDataSetFilterExpressionList * @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.analytics.admin.v1alpha.DataRetentionSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList; /** - * Verifies a DataRetentionSettings message. + * Verifies an ExpandedDataSetFilterExpressionList 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 DataRetentionSettings message from a plain object. Also converts values to their respective internal types. + * Creates an ExpandedDataSetFilterExpressionList message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataRetentionSettings + * @returns ExpandedDataSetFilterExpressionList */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DataRetentionSettings; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList; /** - * Creates a plain object from a DataRetentionSettings message. Also converts values to other types if specified. - * @param message DataRetentionSettings + * Creates a plain object from an ExpandedDataSetFilterExpressionList message. Also converts values to other types if specified. + * @param message ExpandedDataSetFilterExpressionList * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.DataRetentionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataRetentionSettings to JSON. + * Converts this ExpandedDataSetFilterExpressionList to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataRetentionSettings + * Gets the default type url for ExpandedDataSetFilterExpressionList * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace DataRetentionSettings { + /** Properties of an ExpandedDataSet. */ + interface IExpandedDataSet { - /** RetentionDuration enum. */ - enum RetentionDuration { - RETENTION_DURATION_UNSPECIFIED = 0, - TWO_MONTHS = 1, - FOURTEEN_MONTHS = 3, - TWENTY_SIX_MONTHS = 4, - THIRTY_EIGHT_MONTHS = 5, - FIFTY_MONTHS = 6 - } - } + /** ExpandedDataSet name */ + name?: (string|null); - /** Properties of an AttributionSettings. */ - interface IAttributionSettings { + /** ExpandedDataSet displayName */ + displayName?: (string|null); - /** AttributionSettings name */ - name?: (string|null); + /** ExpandedDataSet description */ + description?: (string|null); - /** AttributionSettings acquisitionConversionEventLookbackWindow */ - acquisitionConversionEventLookbackWindow?: (google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|null); + /** ExpandedDataSet dimensionNames */ + dimensionNames?: (string[]|null); - /** AttributionSettings otherConversionEventLookbackWindow */ - otherConversionEventLookbackWindow?: (google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|null); + /** ExpandedDataSet metricNames */ + metricNames?: (string[]|null); - /** AttributionSettings reportingAttributionModel */ - reportingAttributionModel?: (google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|null); + /** ExpandedDataSet dimensionFilterExpression */ + dimensionFilterExpression?: (google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression|null); + + /** ExpandedDataSet dataCollectionStartTime */ + dataCollectionStartTime?: (google.protobuf.ITimestamp|null); } - /** Represents an AttributionSettings. */ - class AttributionSettings implements IAttributionSettings { + /** Represents an ExpandedDataSet. */ + class ExpandedDataSet implements IExpandedDataSet { /** - * Constructs a new AttributionSettings. + * Constructs a new ExpandedDataSet. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAttributionSettings); + constructor(properties?: google.analytics.admin.v1alpha.IExpandedDataSet); - /** AttributionSettings name. */ + /** ExpandedDataSet name. */ public name: string; - /** AttributionSettings acquisitionConversionEventLookbackWindow. */ - public acquisitionConversionEventLookbackWindow: (google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow); + /** ExpandedDataSet displayName. */ + public displayName: string; - /** AttributionSettings otherConversionEventLookbackWindow. */ - public otherConversionEventLookbackWindow: (google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow); + /** ExpandedDataSet description. */ + public description: string; - /** AttributionSettings reportingAttributionModel. */ - public reportingAttributionModel: (google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|keyof typeof google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel); + /** ExpandedDataSet dimensionNames. */ + public dimensionNames: string[]; + + /** ExpandedDataSet metricNames. */ + public metricNames: string[]; + + /** ExpandedDataSet dimensionFilterExpression. */ + public dimensionFilterExpression?: (google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression|null); + + /** ExpandedDataSet dataCollectionStartTime. */ + public dataCollectionStartTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new AttributionSettings instance using the specified properties. + * Creates a new ExpandedDataSet instance using the specified properties. * @param [properties] Properties to set - * @returns AttributionSettings instance + * @returns ExpandedDataSet instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAttributionSettings): google.analytics.admin.v1alpha.AttributionSettings; + public static create(properties?: google.analytics.admin.v1alpha.IExpandedDataSet): google.analytics.admin.v1alpha.ExpandedDataSet; /** - * Encodes the specified AttributionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. - * @param message AttributionSettings message or plain object to encode + * Encodes the specified ExpandedDataSet message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSet.verify|verify} messages. + * @param message ExpandedDataSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAttributionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IExpandedDataSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AttributionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. - * @param message AttributionSettings message or plain object to encode + * Encodes the specified ExpandedDataSet message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSet.verify|verify} messages. + * @param message ExpandedDataSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAttributionSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IExpandedDataSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AttributionSettings message from the specified reader or buffer. + * Decodes an ExpandedDataSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AttributionSettings + * @returns ExpandedDataSet * @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.analytics.admin.v1alpha.AttributionSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ExpandedDataSet; /** - * Decodes an AttributionSettings message from the specified reader or buffer, length delimited. + * Decodes an ExpandedDataSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AttributionSettings + * @returns ExpandedDataSet * @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.analytics.admin.v1alpha.AttributionSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ExpandedDataSet; /** - * Verifies an AttributionSettings message. + * Verifies an ExpandedDataSet 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 an AttributionSettings message from a plain object. Also converts values to their respective internal types. + * Creates an ExpandedDataSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AttributionSettings + * @returns ExpandedDataSet */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AttributionSettings; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ExpandedDataSet; /** - * Creates a plain object from an AttributionSettings message. Also converts values to other types if specified. - * @param message AttributionSettings + * Creates a plain object from an ExpandedDataSet message. Also converts values to other types if specified. + * @param message ExpandedDataSet * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AttributionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ExpandedDataSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AttributionSettings to JSON. + * Converts this ExpandedDataSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AttributionSettings + * Gets the default type url for ExpandedDataSet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - namespace AttributionSettings { - - /** AcquisitionConversionEventLookbackWindow enum. */ - enum AcquisitionConversionEventLookbackWindow { - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0, - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1, - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2 - } - - /** OtherConversionEventLookbackWindow enum. */ - enum OtherConversionEventLookbackWindow { - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0, - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1, - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2, - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3 - } - - /** ReportingAttributionModel enum. */ - enum ReportingAttributionModel { - REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0, - CROSS_CHANNEL_DATA_DRIVEN = 1, - CROSS_CHANNEL_LAST_CLICK = 2, - CROSS_CHANNEL_FIRST_CLICK = 3, - CROSS_CHANNEL_LINEAR = 4, - CROSS_CHANNEL_POSITION_BASED = 5, - CROSS_CHANNEL_TIME_DECAY = 6, - ADS_PREFERRED_LAST_CLICK = 7 - } - } } /** Namespace v1beta. */ diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 9759bd57446f..ac745c38caba 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -4816,6 +4816,7 @@ * @property {google.analytics.admin.v1alpha.IAccessQuotaStatus|null} [tokensPerHour] AccessQuota tokensPerHour * @property {google.analytics.admin.v1alpha.IAccessQuotaStatus|null} [concurrentRequests] AccessQuota concurrentRequests * @property {google.analytics.admin.v1alpha.IAccessQuotaStatus|null} [serverErrorsPerProjectPerHour] AccessQuota serverErrorsPerProjectPerHour + * @property {google.analytics.admin.v1alpha.IAccessQuotaStatus|null} [tokensPerProjectPerHour] AccessQuota tokensPerProjectPerHour */ /** @@ -4865,6 +4866,14 @@ */ AccessQuota.prototype.serverErrorsPerProjectPerHour = null; + /** + * AccessQuota tokensPerProjectPerHour. + * @member {google.analytics.admin.v1alpha.IAccessQuotaStatus|null|undefined} tokensPerProjectPerHour + * @memberof google.analytics.admin.v1alpha.AccessQuota + * @instance + */ + AccessQuota.prototype.tokensPerProjectPerHour = null; + /** * Creates a new AccessQuota instance using the specified properties. * @function create @@ -4897,6 +4906,8 @@ $root.google.analytics.admin.v1alpha.AccessQuotaStatus.encode(message.concurrentRequests, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.serverErrorsPerProjectPerHour != null && Object.hasOwnProperty.call(message, "serverErrorsPerProjectPerHour")) $root.google.analytics.admin.v1alpha.AccessQuotaStatus.encode(message.serverErrorsPerProjectPerHour, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tokensPerProjectPerHour != null && Object.hasOwnProperty.call(message, "tokensPerProjectPerHour")) + $root.google.analytics.admin.v1alpha.AccessQuotaStatus.encode(message.tokensPerProjectPerHour, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -4947,6 +4958,10 @@ message.serverErrorsPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); break; } + case 5: { + message.tokensPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -5002,6 +5017,11 @@ if (error) return "serverErrorsPerProjectPerHour." + error; } + if (message.tokensPerProjectPerHour != null && message.hasOwnProperty("tokensPerProjectPerHour")) { + var error = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.verify(message.tokensPerProjectPerHour); + if (error) + return "tokensPerProjectPerHour." + error; + } return null; }; @@ -5037,6 +5057,11 @@ throw TypeError(".google.analytics.admin.v1alpha.AccessQuota.serverErrorsPerProjectPerHour: object expected"); message.serverErrorsPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.fromObject(object.serverErrorsPerProjectPerHour); } + if (object.tokensPerProjectPerHour != null) { + if (typeof object.tokensPerProjectPerHour !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccessQuota.tokensPerProjectPerHour: object expected"); + message.tokensPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.fromObject(object.tokensPerProjectPerHour); + } return message; }; @@ -5058,6 +5083,7 @@ object.tokensPerHour = null; object.concurrentRequests = null; object.serverErrorsPerProjectPerHour = null; + object.tokensPerProjectPerHour = null; } if (message.tokensPerDay != null && message.hasOwnProperty("tokensPerDay")) object.tokensPerDay = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.toObject(message.tokensPerDay, options); @@ -5067,6 +5093,8 @@ object.concurrentRequests = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.toObject(message.concurrentRequests, options); if (message.serverErrorsPerProjectPerHour != null && message.hasOwnProperty("serverErrorsPerProjectPerHour")) object.serverErrorsPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.toObject(message.serverErrorsPerProjectPerHour, options); + if (message.tokensPerProjectPerHour != null && message.hasOwnProperty("tokensPerProjectPerHour")) + object.tokensPerProjectPerHour = $root.google.analytics.admin.v1alpha.AccessQuotaStatus.toObject(message.tokensPerProjectPerHour, options); return object; }; @@ -7866,6 +7894,171 @@ * @variation 2 */ + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getSearchAds360Link}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetSearchAds360LinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.SearchAds360Link} [response] SearchAds360Link + */ + + /** + * Calls GetSearchAds360Link. + * @function getSearchAds360Link + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest} request GetSearchAds360LinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetSearchAds360LinkCallback} callback Node-style callback called with the error, if any, and SearchAds360Link + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getSearchAds360Link = function getSearchAds360Link(request, callback) { + return this.rpcCall(getSearchAds360Link, $root.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest, $root.google.analytics.admin.v1alpha.SearchAds360Link, request, callback); + }, "name", { value: "GetSearchAds360Link" }); + + /** + * Calls GetSearchAds360Link. + * @function getSearchAds360Link + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest} request GetSearchAds360LinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listSearchAds360Links}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListSearchAds360LinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} [response] ListSearchAds360LinksResponse + */ + + /** + * Calls ListSearchAds360Links. + * @function listSearchAds360Links + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksRequest} request ListSearchAds360LinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListSearchAds360LinksCallback} callback Node-style callback called with the error, if any, and ListSearchAds360LinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listSearchAds360Links = function listSearchAds360Links(request, callback) { + return this.rpcCall(listSearchAds360Links, $root.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest, $root.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse, request, callback); + }, "name", { value: "ListSearchAds360Links" }); + + /** + * Calls ListSearchAds360Links. + * @function listSearchAds360Links + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksRequest} request ListSearchAds360LinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createSearchAds360Link}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateSearchAds360LinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.SearchAds360Link} [response] SearchAds360Link + */ + + /** + * Calls CreateSearchAds360Link. + * @function createSearchAds360Link + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest} request CreateSearchAds360LinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSearchAds360LinkCallback} callback Node-style callback called with the error, if any, and SearchAds360Link + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createSearchAds360Link = function createSearchAds360Link(request, callback) { + return this.rpcCall(createSearchAds360Link, $root.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest, $root.google.analytics.admin.v1alpha.SearchAds360Link, request, callback); + }, "name", { value: "CreateSearchAds360Link" }); + + /** + * Calls CreateSearchAds360Link. + * @function createSearchAds360Link + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest} request CreateSearchAds360LinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteSearchAds360Link}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteSearchAds360LinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteSearchAds360Link. + * @function deleteSearchAds360Link + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest} request DeleteSearchAds360LinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSearchAds360LinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteSearchAds360Link = function deleteSearchAds360Link(request, callback) { + return this.rpcCall(deleteSearchAds360Link, $root.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSearchAds360Link" }); + + /** + * Calls DeleteSearchAds360Link. + * @function deleteSearchAds360Link + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest} request DeleteSearchAds360LinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateSearchAds360Link}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateSearchAds360LinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.SearchAds360Link} [response] SearchAds360Link + */ + + /** + * Calls UpdateSearchAds360Link. + * @function updateSearchAds360Link + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest} request UpdateSearchAds360LinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSearchAds360LinkCallback} callback Node-style callback called with the error, if any, and SearchAds360Link + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateSearchAds360Link = function updateSearchAds360Link(request, callback) { + return this.rpcCall(updateSearchAds360Link, $root.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest, $root.google.analytics.admin.v1alpha.SearchAds360Link, request, callback); + }, "name", { value: "UpdateSearchAds360Link" }); + + /** + * Calls UpdateSearchAds360Link. + * @function updateSearchAds360Link + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest} request UpdateSearchAds360LinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAttributionSettings}. * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService @@ -7965,6 +8158,138 @@ * @variation 2 */ + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|setAutomatedGa4ConfigurationOptOut}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef SetAutomatedGa4ConfigurationOptOutCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} [response] SetAutomatedGa4ConfigurationOptOutResponse + */ + + /** + * Calls SetAutomatedGa4ConfigurationOptOut. + * @function setAutomatedGa4ConfigurationOptOut + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest} request SetAutomatedGa4ConfigurationOptOutRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.SetAutomatedGa4ConfigurationOptOutCallback} callback Node-style callback called with the error, if any, and SetAutomatedGa4ConfigurationOptOutResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.setAutomatedGa4ConfigurationOptOut = function setAutomatedGa4ConfigurationOptOut(request, callback) { + return this.rpcCall(setAutomatedGa4ConfigurationOptOut, $root.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest, $root.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse, request, callback); + }, "name", { value: "SetAutomatedGa4ConfigurationOptOut" }); + + /** + * Calls SetAutomatedGa4ConfigurationOptOut. + * @function setAutomatedGa4ConfigurationOptOut + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest} request SetAutomatedGa4ConfigurationOptOutRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|fetchAutomatedGa4ConfigurationOptOut}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef FetchAutomatedGa4ConfigurationOptOutCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} [response] FetchAutomatedGa4ConfigurationOptOutResponse + */ + + /** + * Calls FetchAutomatedGa4ConfigurationOptOut. + * @function fetchAutomatedGa4ConfigurationOptOut + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest} request FetchAutomatedGa4ConfigurationOptOutRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.FetchAutomatedGa4ConfigurationOptOutCallback} callback Node-style callback called with the error, if any, and FetchAutomatedGa4ConfigurationOptOutResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.fetchAutomatedGa4ConfigurationOptOut = function fetchAutomatedGa4ConfigurationOptOut(request, callback) { + return this.rpcCall(fetchAutomatedGa4ConfigurationOptOut, $root.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest, $root.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse, request, callback); + }, "name", { value: "FetchAutomatedGa4ConfigurationOptOut" }); + + /** + * Calls FetchAutomatedGa4ConfigurationOptOut. + * @function fetchAutomatedGa4ConfigurationOptOut + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest} request FetchAutomatedGa4ConfigurationOptOutRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getBigQueryLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetBigQueryLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.BigQueryLink} [response] BigQueryLink + */ + + /** + * Calls GetBigQueryLink. + * @function getBigQueryLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetBigQueryLinkRequest} request GetBigQueryLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetBigQueryLinkCallback} callback Node-style callback called with the error, if any, and BigQueryLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getBigQueryLink = function getBigQueryLink(request, callback) { + return this.rpcCall(getBigQueryLink, $root.google.analytics.admin.v1alpha.GetBigQueryLinkRequest, $root.google.analytics.admin.v1alpha.BigQueryLink, request, callback); + }, "name", { value: "GetBigQueryLink" }); + + /** + * Calls GetBigQueryLink. + * @function getBigQueryLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetBigQueryLinkRequest} request GetBigQueryLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listBigQueryLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListBigQueryLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListBigQueryLinksResponse} [response] ListBigQueryLinksResponse + */ + + /** + * Calls ListBigQueryLinks. + * @function listBigQueryLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksRequest} request ListBigQueryLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListBigQueryLinksCallback} callback Node-style callback called with the error, if any, and ListBigQueryLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listBigQueryLinks = function listBigQueryLinks(request, callback) { + return this.rpcCall(listBigQueryLinks, $root.google.analytics.admin.v1alpha.ListBigQueryLinksRequest, $root.google.analytics.admin.v1alpha.ListBigQueryLinksResponse, request, callback); + }, "name", { value: "ListBigQueryLinks" }); + + /** + * Calls ListBigQueryLinks. + * @function listBigQueryLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksRequest} request ListBigQueryLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return AnalyticsAdminService; })(); @@ -19082,6 +19407,8 @@ case 16: case 18: case 20: + case 21: + case 22: break; } } @@ -19216,6 +19543,14 @@ case 20: message.resourceType[i] = 20; break; + case "EXPANDED_DATA_SET": + case 21: + message.resourceType[i] = 21; + break; + case "CHANNEL_GROUP": + case 22: + message.resourceType[i] = 22; + break; } } if (object.action) { @@ -25676,25 +26011,24 @@ return CancelDisplayVideo360AdvertiserLinkProposalRequest; })(); - v1alpha.CreateCustomDimensionRequest = (function() { + v1alpha.GetSearchAds360LinkRequest = (function() { /** - * Properties of a CreateCustomDimensionRequest. + * Properties of a GetSearchAds360LinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateCustomDimensionRequest - * @property {string|null} [parent] CreateCustomDimensionRequest parent - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension + * @interface IGetSearchAds360LinkRequest + * @property {string|null} [name] GetSearchAds360LinkRequest name */ /** - * Constructs a new CreateCustomDimensionRequest. + * Constructs a new GetSearchAds360LinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateCustomDimensionRequest. - * @implements ICreateCustomDimensionRequest + * @classdesc Represents a GetSearchAds360LinkRequest. + * @implements IGetSearchAds360LinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest=} [properties] Properties to set */ - function CreateCustomDimensionRequest(properties) { + function GetSearchAds360LinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25702,89 +26036,75 @@ } /** - * CreateCustomDimensionRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest - * @instance - */ - CreateCustomDimensionRequest.prototype.parent = ""; - - /** - * CreateCustomDimensionRequest customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * GetSearchAds360LinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @instance */ - CreateCustomDimensionRequest.prototype.customDimension = null; + GetSearchAds360LinkRequest.prototype.name = ""; /** - * Creates a new CreateCustomDimensionRequest instance using the specified properties. + * Creates a new GetSearchAds360LinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetSearchAds360LinkRequest} GetSearchAds360LinkRequest instance */ - CreateCustomDimensionRequest.create = function create(properties) { - return new CreateCustomDimensionRequest(properties); + GetSearchAds360LinkRequest.create = function create(properties) { + return new GetSearchAds360LinkRequest(properties); }; /** - * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified GetSearchAds360LinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest} message GetSearchAds360LinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomDimensionRequest.encode = function encode(message, writer) { + GetSearchAds360LinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified GetSearchAds360LinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest} message GetSearchAds360LinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSearchAds360LinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a GetSearchAds360LinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetSearchAds360LinkRequest} GetSearchAds360LinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomDimensionRequest.decode = function decode(reader, length) { + GetSearchAds360LinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -25796,137 +26116,124 @@ }; /** - * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSearchAds360LinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetSearchAds360LinkRequest} GetSearchAds360LinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + GetSearchAds360LinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomDimensionRequest message. + * Verifies a GetSearchAds360LinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomDimensionRequest.verify = function verify(message) { + GetSearchAds360LinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.customDimension != null && message.hasOwnProperty("customDimension")) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); - if (error) - return "customDimension." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSearchAds360LinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.GetSearchAds360LinkRequest} GetSearchAds360LinkRequest */ - CreateCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + GetSearchAds360LinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateCustomDimensionRequest.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); - } + var message = new $root.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSearchAds360LinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} message CreateCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.GetSearchAds360LinkRequest} message GetSearchAds360LinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomDimensionRequest.toObject = function toObject(message, options) { + GetSearchAds360LinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.customDimension = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customDimension != null && message.hasOwnProperty("customDimension")) - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateCustomDimensionRequest to JSON. + * Converts this GetSearchAds360LinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @instance * @returns {Object.} JSON object */ - CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { + GetSearchAds360LinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateCustomDimensionRequest + * Gets the default type url for GetSearchAds360LinkRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.GetSearchAds360LinkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSearchAds360LinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateCustomDimensionRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetSearchAds360LinkRequest"; }; - return CreateCustomDimensionRequest; + return GetSearchAds360LinkRequest; })(); - v1alpha.UpdateCustomDimensionRequest = (function() { + v1alpha.ListSearchAds360LinksRequest = (function() { /** - * Properties of an UpdateCustomDimensionRequest. + * Properties of a ListSearchAds360LinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateCustomDimensionRequest - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask + * @interface IListSearchAds360LinksRequest + * @property {string|null} [parent] ListSearchAds360LinksRequest parent + * @property {number|null} [pageSize] ListSearchAds360LinksRequest pageSize + * @property {string|null} [pageToken] ListSearchAds360LinksRequest pageToken */ /** - * Constructs a new UpdateCustomDimensionRequest. + * Constructs a new ListSearchAds360LinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateCustomDimensionRequest. - * @implements IUpdateCustomDimensionRequest + * @classdesc Represents a ListSearchAds360LinksRequest. + * @implements IListSearchAds360LinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksRequest=} [properties] Properties to set */ - function UpdateCustomDimensionRequest(properties) { + function ListSearchAds360LinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25934,89 +26241,103 @@ } /** - * UpdateCustomDimensionRequest customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * ListSearchAds360LinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @instance */ - UpdateCustomDimensionRequest.prototype.customDimension = null; + ListSearchAds360LinksRequest.prototype.parent = ""; /** - * UpdateCustomDimensionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * ListSearchAds360LinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @instance */ - UpdateCustomDimensionRequest.prototype.updateMask = null; + ListSearchAds360LinksRequest.prototype.pageSize = 0; /** - * Creates a new UpdateCustomDimensionRequest instance using the specified properties. + * ListSearchAds360LinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest + * @instance + */ + ListSearchAds360LinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListSearchAds360LinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListSearchAds360LinksRequest} ListSearchAds360LinksRequest instance */ - UpdateCustomDimensionRequest.create = function create(properties) { - return new UpdateCustomDimensionRequest(properties); + ListSearchAds360LinksRequest.create = function create(properties) { + return new ListSearchAds360LinksRequest(properties); }; /** - * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified ListSearchAds360LinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksRequest} message ListSearchAds360LinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomDimensionRequest.encode = function encode(message, writer) { + ListSearchAds360LinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. + * Encodes the specified ListSearchAds360LinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksRequest} message ListSearchAds360LinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSearchAds360LinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. + * Decodes a ListSearchAds360LinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListSearchAds360LinksRequest} ListSearchAds360LinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomDimensionRequest.decode = function decode(reader, length) { + ListSearchAds360LinksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -26028,143 +26349,141 @@ }; /** - * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSearchAds360LinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListSearchAds360LinksRequest} ListSearchAds360LinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + ListSearchAds360LinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCustomDimensionRequest message. + * Verifies a ListSearchAds360LinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCustomDimensionRequest.verify = function verify(message) { + ListSearchAds360LinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customDimension != null && message.hasOwnProperty("customDimension")) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); - if (error) - return "customDimension." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSearchAds360LinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.ListSearchAds360LinksRequest} ListSearchAds360LinksRequest */ - UpdateCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + ListSearchAds360LinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSearchAds360LinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.ListSearchAds360LinksRequest} message ListSearchAds360LinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCustomDimensionRequest.toObject = function toObject(message, options) { + ListSearchAds360LinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.customDimension = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.customDimension != null && message.hasOwnProperty("customDimension")) - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this UpdateCustomDimensionRequest to JSON. + * Converts this ListSearchAds360LinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @instance * @returns {Object.} JSON object */ - UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { + ListSearchAds360LinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateCustomDimensionRequest + * Gets the default type url for ListSearchAds360LinksRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSearchAds360LinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateCustomDimensionRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListSearchAds360LinksRequest"; }; - return UpdateCustomDimensionRequest; + return ListSearchAds360LinksRequest; })(); - v1alpha.ListCustomDimensionsRequest = (function() { + v1alpha.ListSearchAds360LinksResponse = (function() { /** - * Properties of a ListCustomDimensionsRequest. + * Properties of a ListSearchAds360LinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomDimensionsRequest - * @property {string|null} [parent] ListCustomDimensionsRequest parent - * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize - * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken + * @interface IListSearchAds360LinksResponse + * @property {Array.|null} [searchAds_360Links] ListSearchAds360LinksResponse searchAds_360Links + * @property {string|null} [nextPageToken] ListSearchAds360LinksResponse nextPageToken */ /** - * Constructs a new ListCustomDimensionsRequest. + * Constructs a new ListSearchAds360LinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomDimensionsRequest. - * @implements IListCustomDimensionsRequest + * @classdesc Represents a ListSearchAds360LinksResponse. + * @implements IListSearchAds360LinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksResponse=} [properties] Properties to set */ - function ListCustomDimensionsRequest(properties) { + function ListSearchAds360LinksResponse(properties) { + this.searchAds_360Links = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26172,103 +26491,92 @@ } /** - * ListCustomDimensionsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest - * @instance - */ - ListCustomDimensionsRequest.prototype.parent = ""; - - /** - * ListCustomDimensionsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * ListSearchAds360LinksResponse searchAds_360Links. + * @member {Array.} searchAds_360Links + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @instance */ - ListCustomDimensionsRequest.prototype.pageSize = 0; + ListSearchAds360LinksResponse.prototype.searchAds_360Links = $util.emptyArray; /** - * ListCustomDimensionsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * ListSearchAds360LinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @instance */ - ListCustomDimensionsRequest.prototype.pageToken = ""; + ListSearchAds360LinksResponse.prototype.nextPageToken = ""; /** - * Creates a new ListCustomDimensionsRequest instance using the specified properties. + * Creates a new ListSearchAds360LinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} ListSearchAds360LinksResponse instance */ - ListCustomDimensionsRequest.create = function create(properties) { - return new ListCustomDimensionsRequest(properties); + ListSearchAds360LinksResponse.create = function create(properties) { + return new ListSearchAds360LinksResponse(properties); }; /** - * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * Encodes the specified ListSearchAds360LinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksResponse} message ListSearchAds360LinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsRequest.encode = function encode(message, writer) { + ListSearchAds360LinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.searchAds_360Links != null && message.searchAds_360Links.length) + for (var i = 0; i < message.searchAds_360Links.length; ++i) + $root.google.analytics.admin.v1alpha.SearchAds360Link.encode(message.searchAds_360Links[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. + * Encodes the specified ListSearchAds360LinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListSearchAds360LinksResponse} message ListSearchAds360LinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSearchAds360LinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. + * Decodes a ListSearchAds360LinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @returns {google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} ListSearchAds360LinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsRequest.decode = function decode(reader, length) { + ListSearchAds360LinksResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.searchAds_360Links && message.searchAds_360Links.length)) + message.searchAds_360Links = []; + message.searchAds_360Links.push($root.google.analytics.admin.v1alpha.SearchAds360Link.decode(reader, reader.uint32())); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -26280,141 +26588,149 @@ }; /** - * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSearchAds360LinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @returns {google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} ListSearchAds360LinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { + ListSearchAds360LinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomDimensionsRequest message. + * Verifies a ListSearchAds360LinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomDimensionsRequest.verify = function verify(message) { + ListSearchAds360LinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.searchAds_360Links != null && message.hasOwnProperty("searchAds_360Links")) { + if (!Array.isArray(message.searchAds_360Links)) + return "searchAds_360Links: array expected"; + for (var i = 0; i < message.searchAds_360Links.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.SearchAds360Link.verify(message.searchAds_360Links[i]); + if (error) + return "searchAds_360Links." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSearchAds360LinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest + * @returns {google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} ListSearchAds360LinksResponse */ - ListCustomDimensionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + ListSearchAds360LinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse(); + if (object.searchAds_360Links) { + if (!Array.isArray(object.searchAds_360Links)) + throw TypeError(".google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.searchAds_360Links: array expected"); + message.searchAds_360Links = []; + for (var i = 0; i < object.searchAds_360Links.length; ++i) { + if (typeof object.searchAds_360Links[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.searchAds_360Links: object expected"); + message.searchAds_360Links[i] = $root.google.analytics.admin.v1alpha.SearchAds360Link.fromObject(object.searchAds_360Links[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSearchAds360LinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @static - * @param {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} message ListCustomDimensionsRequest + * @param {google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} message ListSearchAds360LinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomDimensionsRequest.toObject = function toObject(message, options) { + ListSearchAds360LinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.searchAds_360Links = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.searchAds_360Links && message.searchAds_360Links.length) { + object.searchAds_360Links = []; + for (var j = 0; j < message.searchAds_360Links.length; ++j) + object.searchAds_360Links[j] = $root.google.analytics.admin.v1alpha.SearchAds360Link.toObject(message.searchAds_360Links[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListCustomDimensionsRequest to JSON. + * Converts this ListSearchAds360LinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @instance * @returns {Object.} JSON object */ - ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { + ListSearchAds360LinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomDimensionsRequest + * Gets the default type url for ListSearchAds360LinksResponse * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest + * @memberof google.analytics.admin.v1alpha.ListSearchAds360LinksResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomDimensionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSearchAds360LinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomDimensionsRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListSearchAds360LinksResponse"; }; - return ListCustomDimensionsRequest; + return ListSearchAds360LinksResponse; })(); - v1alpha.ListCustomDimensionsResponse = (function() { + v1alpha.CreateSearchAds360LinkRequest = (function() { /** - * Properties of a ListCustomDimensionsResponse. + * Properties of a CreateSearchAds360LinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomDimensionsResponse - * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions - * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken + * @interface ICreateSearchAds360LinkRequest + * @property {string|null} [parent] CreateSearchAds360LinkRequest parent + * @property {google.analytics.admin.v1alpha.ISearchAds360Link|null} [searchAds_360Link] CreateSearchAds360LinkRequest searchAds_360Link */ /** - * Constructs a new ListCustomDimensionsResponse. + * Constructs a new CreateSearchAds360LinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomDimensionsResponse. - * @implements IListCustomDimensionsResponse + * @classdesc Represents a CreateSearchAds360LinkRequest. + * @implements ICreateSearchAds360LinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest=} [properties] Properties to set */ - function ListCustomDimensionsResponse(properties) { - this.customDimensions = []; + function CreateSearchAds360LinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26422,92 +26738,89 @@ } /** - * ListCustomDimensionsResponse customDimensions. - * @member {Array.} customDimensions - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * CreateSearchAds360LinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @instance */ - ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; + CreateSearchAds360LinkRequest.prototype.parent = ""; /** - * ListCustomDimensionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * CreateSearchAds360LinkRequest searchAds_360Link. + * @member {google.analytics.admin.v1alpha.ISearchAds360Link|null|undefined} searchAds_360Link + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @instance */ - ListCustomDimensionsResponse.prototype.nextPageToken = ""; + CreateSearchAds360LinkRequest.prototype.searchAds_360Link = null; /** - * Creates a new ListCustomDimensionsResponse instance using the specified properties. + * Creates a new CreateSearchAds360LinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance + * @param {google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest} CreateSearchAds360LinkRequest instance */ - ListCustomDimensionsResponse.create = function create(properties) { - return new ListCustomDimensionsResponse(properties); + CreateSearchAds360LinkRequest.create = function create(properties) { + return new CreateSearchAds360LinkRequest(properties); }; /** - * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * Encodes the specified CreateSearchAds360LinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest} message CreateSearchAds360LinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsResponse.encode = function encode(message, writer) { + CreateSearchAds360LinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customDimensions != null && message.customDimensions.length) - for (var i = 0; i < message.customDimensions.length; ++i) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimensions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.searchAds_360Link != null && Object.hasOwnProperty.call(message, "searchAds_360Link")) + $root.google.analytics.admin.v1alpha.SearchAds360Link.encode(message.searchAds_360Link, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. + * Encodes the specified CreateSearchAds360LinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest} message CreateSearchAds360LinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateSearchAds360LinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. + * Decodes a CreateSearchAds360LinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @returns {google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest} CreateSearchAds360LinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsResponse.decode = function decode(reader, length) { + CreateSearchAds360LinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.customDimensions && message.customDimensions.length)) - message.customDimensions = []; - message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.searchAds_360Link = $root.google.analytics.admin.v1alpha.SearchAds360Link.decode(reader, reader.uint32()); break; } default: @@ -26519,148 +26832,136 @@ }; /** - * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateSearchAds360LinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @returns {google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest} CreateSearchAds360LinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateSearchAds360LinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomDimensionsResponse message. + * Verifies a CreateSearchAds360LinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomDimensionsResponse.verify = function verify(message) { + CreateSearchAds360LinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customDimensions != null && message.hasOwnProperty("customDimensions")) { - if (!Array.isArray(message.customDimensions)) - return "customDimensions: array expected"; - for (var i = 0; i < message.customDimensions.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimensions[i]); - if (error) - return "customDimensions." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.searchAds_360Link != null && message.hasOwnProperty("searchAds_360Link")) { + var error = $root.google.analytics.admin.v1alpha.SearchAds360Link.verify(message.searchAds_360Link); + if (error) + return "searchAds_360Link." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSearchAds360LinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse + * @returns {google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest} CreateSearchAds360LinkRequest */ - ListCustomDimensionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + CreateSearchAds360LinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); - if (object.customDimensions) { - if (!Array.isArray(object.customDimensions)) - throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: array expected"); - message.customDimensions = []; - for (var i = 0; i < object.customDimensions.length; ++i) { - if (typeof object.customDimensions[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: object expected"); - message.customDimensions[i] = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimensions[i]); - } + var message = new $root.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.searchAds_360Link != null) { + if (typeof object.searchAds_360Link !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.searchAds_360Link: object expected"); + message.searchAds_360Link = $root.google.analytics.admin.v1alpha.SearchAds360Link.fromObject(object.searchAds_360Link); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateSearchAds360LinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} message ListCustomDimensionsResponse + * @param {google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest} message CreateSearchAds360LinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomDimensionsResponse.toObject = function toObject(message, options) { + CreateSearchAds360LinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.customDimensions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.customDimensions && message.customDimensions.length) { - object.customDimensions = []; - for (var j = 0; j < message.customDimensions.length; ++j) - object.customDimensions[j] = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimensions[j], options); + if (options.defaults) { + object.parent = ""; + object.searchAds_360Link = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.searchAds_360Link != null && message.hasOwnProperty("searchAds_360Link")) + object.searchAds_360Link = $root.google.analytics.admin.v1alpha.SearchAds360Link.toObject(message.searchAds_360Link, options); return object; }; /** - * Converts this ListCustomDimensionsResponse to JSON. + * Converts this CreateSearchAds360LinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @instance * @returns {Object.} JSON object */ - ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { + CreateSearchAds360LinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomDimensionsResponse + * Gets the default type url for CreateSearchAds360LinkRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse + * @memberof google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomDimensionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateSearchAds360LinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomDimensionsResponse"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest"; }; - return ListCustomDimensionsResponse; + return CreateSearchAds360LinkRequest; })(); - v1alpha.ArchiveCustomDimensionRequest = (function() { + v1alpha.DeleteSearchAds360LinkRequest = (function() { /** - * Properties of an ArchiveCustomDimensionRequest. + * Properties of a DeleteSearchAds360LinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IArchiveCustomDimensionRequest - * @property {string|null} [name] ArchiveCustomDimensionRequest name + * @interface IDeleteSearchAds360LinkRequest + * @property {string|null} [name] DeleteSearchAds360LinkRequest name */ /** - * Constructs a new ArchiveCustomDimensionRequest. + * Constructs a new DeleteSearchAds360LinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ArchiveCustomDimensionRequest. - * @implements IArchiveCustomDimensionRequest + * @classdesc Represents a DeleteSearchAds360LinkRequest. + * @implements IDeleteSearchAds360LinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest=} [properties] Properties to set */ - function ArchiveCustomDimensionRequest(properties) { + function DeleteSearchAds360LinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26668,35 +26969,35 @@ } /** - * ArchiveCustomDimensionRequest name. + * DeleteSearchAds360LinkRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @instance */ - ArchiveCustomDimensionRequest.prototype.name = ""; + DeleteSearchAds360LinkRequest.prototype.name = ""; /** - * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. + * Creates a new DeleteSearchAds360LinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest} DeleteSearchAds360LinkRequest instance */ - ArchiveCustomDimensionRequest.create = function create(properties) { - return new ArchiveCustomDimensionRequest(properties); + DeleteSearchAds360LinkRequest.create = function create(properties) { + return new DeleteSearchAds360LinkRequest(properties); }; /** - * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * Encodes the specified DeleteSearchAds360LinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest} message DeleteSearchAds360LinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomDimensionRequest.encode = function encode(message, writer) { + DeleteSearchAds360LinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -26705,33 +27006,33 @@ }; /** - * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. + * Encodes the specified DeleteSearchAds360LinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest} message DeleteSearchAds360LinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSearchAds360LinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. + * Decodes a DeleteSearchAds360LinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest} DeleteSearchAds360LinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomDimensionRequest.decode = function decode(reader, length) { + DeleteSearchAds360LinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26748,30 +27049,30 @@ }; /** - * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSearchAds360LinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest} DeleteSearchAds360LinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteSearchAds360LinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ArchiveCustomDimensionRequest message. + * Verifies a DeleteSearchAds360LinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ArchiveCustomDimensionRequest.verify = function verify(message) { + DeleteSearchAds360LinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -26781,32 +27082,32 @@ }; /** - * Creates an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSearchAds360LinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest} DeleteSearchAds360LinkRequest */ - ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + DeleteSearchAds360LinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + var message = new $root.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSearchAds360LinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest} message DeleteSearchAds360LinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ArchiveCustomDimensionRequest.toObject = function toObject(message, options) { + DeleteSearchAds360LinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26818,52 +27119,53 @@ }; /** - * Converts this ArchiveCustomDimensionRequest to JSON. + * Converts this DeleteSearchAds360LinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @instance * @returns {Object.} JSON object */ - ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { + DeleteSearchAds360LinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ArchiveCustomDimensionRequest + * Gets the default type url for DeleteSearchAds360LinkRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ArchiveCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteSearchAds360LinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest"; }; - return ArchiveCustomDimensionRequest; + return DeleteSearchAds360LinkRequest; })(); - v1alpha.GetCustomDimensionRequest = (function() { + v1alpha.UpdateSearchAds360LinkRequest = (function() { /** - * Properties of a GetCustomDimensionRequest. + * Properties of an UpdateSearchAds360LinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetCustomDimensionRequest - * @property {string|null} [name] GetCustomDimensionRequest name + * @interface IUpdateSearchAds360LinkRequest + * @property {google.analytics.admin.v1alpha.ISearchAds360Link|null} [searchAds_360Link] UpdateSearchAds360LinkRequest searchAds_360Link + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSearchAds360LinkRequest updateMask */ /** - * Constructs a new GetCustomDimensionRequest. + * Constructs a new UpdateSearchAds360LinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetCustomDimensionRequest. - * @implements IGetCustomDimensionRequest + * @classdesc Represents an UpdateSearchAds360LinkRequest. + * @implements IUpdateSearchAds360LinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest=} [properties] Properties to set */ - function GetCustomDimensionRequest(properties) { + function UpdateSearchAds360LinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26871,75 +27173,89 @@ } /** - * GetCustomDimensionRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * UpdateSearchAds360LinkRequest searchAds_360Link. + * @member {google.analytics.admin.v1alpha.ISearchAds360Link|null|undefined} searchAds_360Link + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @instance */ - GetCustomDimensionRequest.prototype.name = ""; + UpdateSearchAds360LinkRequest.prototype.searchAds_360Link = null; /** - * Creates a new GetCustomDimensionRequest instance using the specified properties. + * UpdateSearchAds360LinkRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest + * @instance + */ + UpdateSearchAds360LinkRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateSearchAds360LinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest} UpdateSearchAds360LinkRequest instance */ - GetCustomDimensionRequest.create = function create(properties) { - return new GetCustomDimensionRequest(properties); + UpdateSearchAds360LinkRequest.create = function create(properties) { + return new UpdateSearchAds360LinkRequest(properties); }; /** - * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * Encodes the specified UpdateSearchAds360LinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest} message UpdateSearchAds360LinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomDimensionRequest.encode = function encode(message, writer) { + UpdateSearchAds360LinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.searchAds_360Link != null && Object.hasOwnProperty.call(message, "searchAds_360Link")) + $root.google.analytics.admin.v1alpha.SearchAds360Link.encode(message.searchAds_360Link, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. + * Encodes the specified UpdateSearchAds360LinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest} message UpdateSearchAds360LinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSearchAds360LinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. + * Decodes an UpdateSearchAds360LinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest} UpdateSearchAds360LinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomDimensionRequest.decode = function decode(reader, length) { + UpdateSearchAds360LinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.searchAds_360Link = $root.google.analytics.admin.v1alpha.SearchAds360Link.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -26951,123 +27267,142 @@ }; /** - * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSearchAds360LinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest} UpdateSearchAds360LinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateSearchAds360LinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomDimensionRequest message. + * Verifies an UpdateSearchAds360LinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomDimensionRequest.verify = function verify(message) { + UpdateSearchAds360LinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.searchAds_360Link != null && message.hasOwnProperty("searchAds_360Link")) { + var error = $root.google.analytics.admin.v1alpha.SearchAds360Link.verify(message.searchAds_360Link); + if (error) + return "searchAds_360Link." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSearchAds360LinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest + * @returns {google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest} UpdateSearchAds360LinkRequest */ - GetCustomDimensionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest) + UpdateSearchAds360LinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest(); + if (object.searchAds_360Link != null) { + if (typeof object.searchAds_360Link !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.searchAds_360Link: object expected"); + message.searchAds_360Link = $root.google.analytics.admin.v1alpha.SearchAds360Link.fromObject(object.searchAds_360Link); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSearchAds360LinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @static - * @param {google.analytics.admin.v1alpha.GetCustomDimensionRequest} message GetCustomDimensionRequest + * @param {google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest} message UpdateSearchAds360LinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomDimensionRequest.toObject = function toObject(message, options) { + UpdateSearchAds360LinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.searchAds_360Link = null; + object.updateMask = null; + } + if (message.searchAds_360Link != null && message.hasOwnProperty("searchAds_360Link")) + object.searchAds_360Link = $root.google.analytics.admin.v1alpha.SearchAds360Link.toObject(message.searchAds_360Link, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetCustomDimensionRequest to JSON. + * Converts this UpdateSearchAds360LinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @instance * @returns {Object.} JSON object */ - GetCustomDimensionRequest.prototype.toJSON = function toJSON() { + UpdateSearchAds360LinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCustomDimensionRequest + * Gets the default type url for UpdateSearchAds360LinkRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest + * @memberof google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateSearchAds360LinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetCustomDimensionRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest"; }; - return GetCustomDimensionRequest; + return UpdateSearchAds360LinkRequest; })(); - v1alpha.CreateCustomMetricRequest = (function() { + v1alpha.CreateCustomDimensionRequest = (function() { /** - * Properties of a CreateCustomMetricRequest. + * Properties of a CreateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateCustomMetricRequest - * @property {string|null} [parent] CreateCustomMetricRequest parent - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric + * @interface ICreateCustomDimensionRequest + * @property {string|null} [parent] CreateCustomDimensionRequest parent + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] CreateCustomDimensionRequest customDimension */ /** - * Constructs a new CreateCustomMetricRequest. + * Constructs a new CreateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateCustomMetricRequest. - * @implements ICreateCustomMetricRequest + * @classdesc Represents a CreateCustomDimensionRequest. + * @implements ICreateCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set */ - function CreateCustomMetricRequest(properties) { + function CreateCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27075,80 +27410,80 @@ } /** - * CreateCustomMetricRequest parent. + * CreateCustomDimensionRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @instance */ - CreateCustomMetricRequest.prototype.parent = ""; + CreateCustomDimensionRequest.prototype.parent = ""; /** - * CreateCustomMetricRequest customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * CreateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @instance */ - CreateCustomMetricRequest.prototype.customMetric = null; + CreateCustomDimensionRequest.prototype.customDimension = null; /** - * Creates a new CreateCustomMetricRequest instance using the specified properties. + * Creates a new CreateCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest instance */ - CreateCustomMetricRequest.create = function create(properties) { - return new CreateCustomMetricRequest(properties); + CreateCustomDimensionRequest.create = function create(properties) { + return new CreateCustomDimensionRequest(properties); }; /** - * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * Encodes the specified CreateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomMetricRequest.encode = function encode(message, writer) { + CreateCustomDimensionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. + * Encodes the specified CreateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomDimensionRequest} message CreateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomMetricRequest.decode = function decode(reader, length) { + CreateCustomDimensionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27157,7 +27492,7 @@ break; } case 2: { - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); break; } default: @@ -27169,137 +27504,137 @@ }; /** - * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + CreateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomMetricRequest message. + * Verifies a CreateCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomMetricRequest.verify = function verify(message) { + CreateCustomDimensionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.customMetric != null && message.hasOwnProperty("customMetric")) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); if (error) - return "customMetric." + error; + return "customDimension." + error; } return null; }; /** - * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} CreateCustomDimensionRequest */ - CreateCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest) + CreateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + var message = new $root.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateCustomMetricRequest.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); } return message; }; /** - * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.CreateCustomMetricRequest} message CreateCustomMetricRequest + * @param {google.analytics.admin.v1alpha.CreateCustomDimensionRequest} message CreateCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomMetricRequest.toObject = function toObject(message, options) { + CreateCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.customMetric = null; + object.customDimension = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.customMetric != null && message.hasOwnProperty("customMetric")) - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); return object; }; /** - * Converts this CreateCustomMetricRequest to JSON. + * Converts this CreateCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - CreateCustomMetricRequest.prototype.toJSON = function toJSON() { + CreateCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateCustomMetricRequest + * Gets the default type url for CreateCustomDimensionRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomDimensionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateCustomMetricRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateCustomDimensionRequest"; }; - return CreateCustomMetricRequest; + return CreateCustomDimensionRequest; })(); - v1alpha.UpdateCustomMetricRequest = (function() { + v1alpha.UpdateCustomDimensionRequest = (function() { /** - * Properties of an UpdateCustomMetricRequest. + * Properties of an UpdateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateCustomMetricRequest - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask + * @interface IUpdateCustomDimensionRequest + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] UpdateCustomDimensionRequest customDimension + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomDimensionRequest updateMask */ /** - * Constructs a new UpdateCustomMetricRequest. + * Constructs a new UpdateCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateCustomMetricRequest. - * @implements IUpdateCustomMetricRequest + * @classdesc Represents an UpdateCustomDimensionRequest. + * @implements IUpdateCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set */ - function UpdateCustomMetricRequest(properties) { + function UpdateCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27307,85 +27642,85 @@ } /** - * UpdateCustomMetricRequest customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * UpdateCustomDimensionRequest customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @instance */ - UpdateCustomMetricRequest.prototype.customMetric = null; + UpdateCustomDimensionRequest.prototype.customDimension = null; /** - * UpdateCustomMetricRequest updateMask. + * UpdateCustomDimensionRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @instance */ - UpdateCustomMetricRequest.prototype.updateMask = null; + UpdateCustomDimensionRequest.prototype.updateMask = null; /** - * Creates a new UpdateCustomMetricRequest instance using the specified properties. + * Creates a new UpdateCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest instance */ - UpdateCustomMetricRequest.create = function create(properties) { - return new UpdateCustomMetricRequest(properties); + UpdateCustomDimensionRequest.create = function create(properties) { + return new UpdateCustomDimensionRequest(properties); }; /** - * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * Encodes the specified UpdateCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomMetricRequest.encode = function encode(message, writer) { + UpdateCustomDimensionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. + * Encodes the specified UpdateCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomDimensionRequest} message UpdateCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomMetricRequest.decode = function decode(reader, length) { + UpdateCustomDimensionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); break; } case 2: { @@ -27401,36 +27736,36 @@ }; /** - * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateCustomMetricRequest message. + * Verifies an UpdateCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateCustomMetricRequest.verify = function verify(message) { + UpdateCustomDimensionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customMetric != null && message.hasOwnProperty("customMetric")) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); if (error) - return "customMetric." + error; + return "customDimension." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); @@ -27441,103 +27776,103 @@ }; /** - * Creates an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} UpdateCustomDimensionRequest */ - UpdateCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + UpdateCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.updateMask: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} message UpdateCustomMetricRequest + * @param {google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} message UpdateCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateCustomMetricRequest.toObject = function toObject(message, options) { + UpdateCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.customMetric = null; + object.customDimension = null; object.updateMask = null; } - if (message.customMetric != null && message.hasOwnProperty("customMetric")) - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + if (message.customDimension != null && message.hasOwnProperty("customDimension")) + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateCustomMetricRequest to JSON. + * Converts this UpdateCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { + UpdateCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateCustomMetricRequest + * Gets the default type url for UpdateCustomDimensionRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomDimensionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateCustomMetricRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateCustomDimensionRequest"; }; - return UpdateCustomMetricRequest; + return UpdateCustomDimensionRequest; })(); - v1alpha.ListCustomMetricsRequest = (function() { + v1alpha.ListCustomDimensionsRequest = (function() { /** - * Properties of a ListCustomMetricsRequest. + * Properties of a ListCustomDimensionsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomMetricsRequest - * @property {string|null} [parent] ListCustomMetricsRequest parent - * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize - * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken + * @interface IListCustomDimensionsRequest + * @property {string|null} [parent] ListCustomDimensionsRequest parent + * @property {number|null} [pageSize] ListCustomDimensionsRequest pageSize + * @property {string|null} [pageToken] ListCustomDimensionsRequest pageToken */ /** - * Constructs a new ListCustomMetricsRequest. + * Constructs a new ListCustomDimensionsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomMetricsRequest. - * @implements IListCustomMetricsRequest + * @classdesc Represents a ListCustomDimensionsRequest. + * @implements IListCustomDimensionsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set */ - function ListCustomMetricsRequest(properties) { + function ListCustomDimensionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27545,51 +27880,51 @@ } /** - * ListCustomMetricsRequest parent. + * ListCustomDimensionsRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance */ - ListCustomMetricsRequest.prototype.parent = ""; + ListCustomDimensionsRequest.prototype.parent = ""; /** - * ListCustomMetricsRequest pageSize. + * ListCustomDimensionsRequest pageSize. * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance */ - ListCustomMetricsRequest.prototype.pageSize = 0; + ListCustomDimensionsRequest.prototype.pageSize = 0; /** - * ListCustomMetricsRequest pageToken. + * ListCustomDimensionsRequest pageToken. * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance */ - ListCustomMetricsRequest.prototype.pageToken = ""; + ListCustomDimensionsRequest.prototype.pageToken = ""; /** - * Creates a new ListCustomMetricsRequest instance using the specified properties. + * Creates a new ListCustomDimensionsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest instance */ - ListCustomMetricsRequest.create = function create(properties) { - return new ListCustomMetricsRequest(properties); + ListCustomDimensionsRequest.create = function create(properties) { + return new ListCustomDimensionsRequest(properties); }; /** - * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * Encodes the specified ListCustomDimensionsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsRequest.encode = function encode(message, writer) { + ListCustomDimensionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -27602,33 +27937,33 @@ }; /** - * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. + * Encodes the specified ListCustomDimensionsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsRequest} message ListCustomDimensionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomDimensionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsRequest.decode = function decode(reader, length) { + ListCustomDimensionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27653,30 +27988,30 @@ }; /** - * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomDimensionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomMetricsRequest message. + * Verifies a ListCustomDimensionsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomMetricsRequest.verify = function verify(message) { + ListCustomDimensionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -27692,17 +28027,17 @@ }; /** - * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} ListCustomDimensionsRequest */ - ListCustomMetricsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest) + ListCustomDimensionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -27713,15 +28048,15 @@ }; /** - * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomDimensionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static - * @param {google.analytics.admin.v1alpha.ListCustomMetricsRequest} message ListCustomMetricsRequest + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsRequest} message ListCustomDimensionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomMetricsRequest.toObject = function toObject(message, options) { + ListCustomDimensionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27740,54 +28075,54 @@ }; /** - * Converts this ListCustomMetricsRequest to JSON. + * Converts this ListCustomDimensionsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @instance * @returns {Object.} JSON object */ - ListCustomMetricsRequest.prototype.toJSON = function toJSON() { + ListCustomDimensionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomMetricsRequest + * Gets the default type url for ListCustomDimensionsRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomMetricsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomDimensionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomMetricsRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomDimensionsRequest"; }; - return ListCustomMetricsRequest; + return ListCustomDimensionsRequest; })(); - v1alpha.ListCustomMetricsResponse = (function() { + v1alpha.ListCustomDimensionsResponse = (function() { /** - * Properties of a ListCustomMetricsResponse. + * Properties of a ListCustomDimensionsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IListCustomMetricsResponse - * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics - * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken + * @interface IListCustomDimensionsResponse + * @property {Array.|null} [customDimensions] ListCustomDimensionsResponse customDimensions + * @property {string|null} [nextPageToken] ListCustomDimensionsResponse nextPageToken */ /** - * Constructs a new ListCustomMetricsResponse. + * Constructs a new ListCustomDimensionsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListCustomMetricsResponse. - * @implements IListCustomMetricsResponse + * @classdesc Represents a ListCustomDimensionsResponse. + * @implements IListCustomDimensionsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set */ - function ListCustomMetricsResponse(properties) { - this.customMetrics = []; + function ListCustomDimensionsResponse(properties) { + this.customDimensions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27795,88 +28130,88 @@ } /** - * ListCustomMetricsResponse customMetrics. - * @member {Array.} customMetrics - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * ListCustomDimensionsResponse customDimensions. + * @member {Array.} customDimensions + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @instance */ - ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; + ListCustomDimensionsResponse.prototype.customDimensions = $util.emptyArray; /** - * ListCustomMetricsResponse nextPageToken. + * ListCustomDimensionsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @instance */ - ListCustomMetricsResponse.prototype.nextPageToken = ""; + ListCustomDimensionsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListCustomMetricsResponse instance using the specified properties. + * Creates a new ListCustomDimensionsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse instance + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse instance */ - ListCustomMetricsResponse.create = function create(properties) { - return new ListCustomMetricsResponse(properties); + ListCustomDimensionsResponse.create = function create(properties) { + return new ListCustomDimensionsResponse(properties); }; /** - * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * Encodes the specified ListCustomDimensionsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsResponse.encode = function encode(message, writer) { + ListCustomDimensionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customMetrics != null && message.customMetrics.length) - for (var i = 0; i < message.customMetrics.length; ++i) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customDimensions != null && message.customDimensions.length) + for (var i = 0; i < message.customDimensions.length; ++i) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimensions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. + * Encodes the specified ListCustomDimensionsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomDimensionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomDimensionsResponse} message ListCustomDimensionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomDimensionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsResponse.decode = function decode(reader, length) { + ListCustomDimensionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.customMetrics && message.customMetrics.length)) - message.customMetrics = []; - message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); + if (!(message.customDimensions && message.customDimensions.length)) + message.customDimensions = []; + message.customDimensions.push($root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32())); break; } case 2: { @@ -27892,39 +28227,39 @@ }; /** - * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListCustomDimensionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { + ListCustomDimensionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomMetricsResponse message. + * Verifies a ListCustomDimensionsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomMetricsResponse.verify = function verify(message) { + ListCustomDimensionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customMetrics != null && message.hasOwnProperty("customMetrics")) { - if (!Array.isArray(message.customMetrics)) - return "customMetrics: array expected"; - for (var i = 0; i < message.customMetrics.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetrics[i]); + if (message.customDimensions != null && message.hasOwnProperty("customDimensions")) { + if (!Array.isArray(message.customDimensions)) + return "customDimensions: array expected"; + for (var i = 0; i < message.customDimensions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimensions[i]); if (error) - return "customMetrics." + error; + return "customDimensions." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -27934,25 +28269,25 @@ }; /** - * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomDimensionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse + * @returns {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} ListCustomDimensionsResponse */ - ListCustomMetricsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse) + ListCustomDimensionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); - if (object.customMetrics) { - if (!Array.isArray(object.customMetrics)) - throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: array expected"); - message.customMetrics = []; - for (var i = 0; i < object.customMetrics.length; ++i) { - if (typeof object.customMetrics[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: object expected"); - message.customMetrics[i] = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetrics[i]); + var message = new $root.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + if (object.customDimensions) { + if (!Array.isArray(object.customDimensions)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: array expected"); + message.customDimensions = []; + for (var i = 0; i < object.customDimensions.length; ++i) { + if (typeof object.customDimensions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomDimensionsResponse.customDimensions: object expected"); + message.customDimensions[i] = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimensions[i]); } } if (object.nextPageToken != null) @@ -27961,26 +28296,26 @@ }; /** - * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomDimensionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static - * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} message ListCustomMetricsResponse + * @param {google.analytics.admin.v1alpha.ListCustomDimensionsResponse} message ListCustomDimensionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomMetricsResponse.toObject = function toObject(message, options) { + ListCustomDimensionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.customMetrics = []; + object.customDimensions = []; if (options.defaults) object.nextPageToken = ""; - if (message.customMetrics && message.customMetrics.length) { - object.customMetrics = []; - for (var j = 0; j < message.customMetrics.length; ++j) - object.customMetrics[j] = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetrics[j], options); + if (message.customDimensions && message.customDimensions.length) { + object.customDimensions = []; + for (var j = 0; j < message.customDimensions.length; ++j) + object.customDimensions[j] = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimensions[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -27988,52 +28323,52 @@ }; /** - * Converts this ListCustomMetricsResponse to JSON. + * Converts this ListCustomDimensionsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @instance * @returns {Object.} JSON object */ - ListCustomMetricsResponse.prototype.toJSON = function toJSON() { + ListCustomDimensionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomMetricsResponse + * Gets the default type url for ListCustomDimensionsResponse * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @memberof google.analytics.admin.v1alpha.ListCustomDimensionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomMetricsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomDimensionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomMetricsResponse"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomDimensionsResponse"; }; - return ListCustomMetricsResponse; + return ListCustomDimensionsResponse; })(); - v1alpha.ArchiveCustomMetricRequest = (function() { + v1alpha.ArchiveCustomDimensionRequest = (function() { /** - * Properties of an ArchiveCustomMetricRequest. + * Properties of an ArchiveCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IArchiveCustomMetricRequest - * @property {string|null} [name] ArchiveCustomMetricRequest name + * @interface IArchiveCustomDimensionRequest + * @property {string|null} [name] ArchiveCustomDimensionRequest name */ /** - * Constructs a new ArchiveCustomMetricRequest. + * Constructs a new ArchiveCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ArchiveCustomMetricRequest. - * @implements IArchiveCustomMetricRequest + * @classdesc Represents an ArchiveCustomDimensionRequest. + * @implements IArchiveCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set */ - function ArchiveCustomMetricRequest(properties) { + function ArchiveCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28041,35 +28376,35 @@ } /** - * ArchiveCustomMetricRequest name. + * ArchiveCustomDimensionRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @instance */ - ArchiveCustomMetricRequest.prototype.name = ""; + ArchiveCustomDimensionRequest.prototype.name = ""; /** - * Creates a new ArchiveCustomMetricRequest instance using the specified properties. + * Creates a new ArchiveCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest instance */ - ArchiveCustomMetricRequest.create = function create(properties) { - return new ArchiveCustomMetricRequest(properties); + ArchiveCustomDimensionRequest.create = function create(properties) { + return new ArchiveCustomDimensionRequest(properties); }; /** - * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * Encodes the specified ArchiveCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomMetricRequest.encode = function encode(message, writer) { + ArchiveCustomDimensionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -28078,33 +28413,33 @@ }; /** - * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. + * Encodes the specified ArchiveCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + ArchiveCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomMetricRequest.decode = function decode(reader, length) { + ArchiveCustomDimensionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -28121,30 +28456,30 @@ }; /** - * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + ArchiveCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ArchiveCustomMetricRequest message. + * Verifies an ArchiveCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ArchiveCustomMetricRequest.verify = function verify(message) { + ArchiveCustomDimensionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -28154,32 +28489,32 @@ }; /** - * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} ArchiveCustomDimensionRequest */ - ArchiveCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + ArchiveCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from an ArchiveCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest + * @param {google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} message ArchiveCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ArchiveCustomMetricRequest.toObject = function toObject(message, options) { + ArchiveCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28191,52 +28526,52 @@ }; /** - * Converts this ArchiveCustomMetricRequest to JSON. + * Converts this ArchiveCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { + ArchiveCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ArchiveCustomMetricRequest + * Gets the default type url for ArchiveCustomDimensionRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ArchiveCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ArchiveCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ArchiveCustomMetricRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest"; }; - return ArchiveCustomMetricRequest; + return ArchiveCustomDimensionRequest; })(); - v1alpha.GetCustomMetricRequest = (function() { + v1alpha.GetCustomDimensionRequest = (function() { /** - * Properties of a GetCustomMetricRequest. + * Properties of a GetCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetCustomMetricRequest - * @property {string|null} [name] GetCustomMetricRequest name + * @interface IGetCustomDimensionRequest + * @property {string|null} [name] GetCustomDimensionRequest name */ /** - * Constructs a new GetCustomMetricRequest. + * Constructs a new GetCustomDimensionRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetCustomMetricRequest. - * @implements IGetCustomMetricRequest + * @classdesc Represents a GetCustomDimensionRequest. + * @implements IGetCustomDimensionRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set */ - function GetCustomMetricRequest(properties) { + function GetCustomDimensionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28244,35 +28579,35 @@ } /** - * GetCustomMetricRequest name. + * GetCustomDimensionRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @instance */ - GetCustomMetricRequest.prototype.name = ""; + GetCustomDimensionRequest.prototype.name = ""; /** - * Creates a new GetCustomMetricRequest instance using the specified properties. + * Creates a new GetCustomDimensionRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest instance + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest instance */ - GetCustomMetricRequest.create = function create(properties) { - return new GetCustomMetricRequest(properties); + GetCustomDimensionRequest.create = function create(properties) { + return new GetCustomDimensionRequest(properties); }; /** - * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * Encodes the specified GetCustomDimensionRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomMetricRequest.encode = function encode(message, writer) { + GetCustomDimensionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -28281,33 +28616,33 @@ }; /** - * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. + * Encodes the specified GetCustomDimensionRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomDimensionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomDimensionRequest} message GetCustomDimensionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomDimensionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomMetricRequest.decode = function decode(reader, length) { + GetCustomDimensionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -28324,30 +28659,30 @@ }; /** - * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomDimensionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { + GetCustomDimensionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomMetricRequest message. + * Verifies a GetCustomDimensionRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomMetricRequest.verify = function verify(message) { + GetCustomDimensionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -28357,32 +28692,32 @@ }; /** - * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomDimensionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest + * @returns {google.analytics.admin.v1alpha.GetCustomDimensionRequest} GetCustomDimensionRequest */ - GetCustomMetricRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomMetricRequest) + GetCustomDimensionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomDimensionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static - * @param {google.analytics.admin.v1alpha.GetCustomMetricRequest} message GetCustomMetricRequest + * @param {google.analytics.admin.v1alpha.GetCustomDimensionRequest} message GetCustomDimensionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomMetricRequest.toObject = function toObject(message, options) { + GetCustomDimensionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28394,52 +28729,53 @@ }; /** - * Converts this GetCustomMetricRequest to JSON. + * Converts this GetCustomDimensionRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @instance * @returns {Object.} JSON object */ - GetCustomMetricRequest.prototype.toJSON = function toJSON() { + GetCustomDimensionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCustomMetricRequest + * Gets the default type url for GetCustomDimensionRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest + * @memberof google.analytics.admin.v1alpha.GetCustomDimensionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCustomDimensionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetCustomMetricRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetCustomDimensionRequest"; }; - return GetCustomMetricRequest; + return GetCustomDimensionRequest; })(); - v1alpha.GetDataRetentionSettingsRequest = (function() { + v1alpha.CreateCustomMetricRequest = (function() { /** - * Properties of a GetDataRetentionSettingsRequest. + * Properties of a CreateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetDataRetentionSettingsRequest - * @property {string|null} [name] GetDataRetentionSettingsRequest name + * @interface ICreateCustomMetricRequest + * @property {string|null} [parent] CreateCustomMetricRequest parent + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] CreateCustomMetricRequest customMetric */ /** - * Constructs a new GetDataRetentionSettingsRequest. + * Constructs a new CreateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataRetentionSettingsRequest. - * @implements IGetDataRetentionSettingsRequest + * @classdesc Represents a CreateCustomMetricRequest. + * @implements ICreateCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set */ - function GetDataRetentionSettingsRequest(properties) { + function CreateCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28447,75 +28783,89 @@ } /** - * GetDataRetentionSettingsRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * CreateCustomMetricRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @instance */ - GetDataRetentionSettingsRequest.prototype.name = ""; + CreateCustomMetricRequest.prototype.parent = ""; /** - * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. + * CreateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest + * @instance + */ + CreateCustomMetricRequest.prototype.customMetric = null; + + /** + * Creates a new CreateCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest instance + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest instance */ - GetDataRetentionSettingsRequest.create = function create(properties) { - return new GetDataRetentionSettingsRequest(properties); + CreateCustomMetricRequest.create = function create(properties) { + return new CreateCustomMetricRequest(properties); }; /** - * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * Encodes the specified CreateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataRetentionSettingsRequest.encode = function encode(message, writer) { + CreateCustomMetricRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. + * Encodes the specified CreateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateCustomMetricRequest} message CreateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataRetentionSettingsRequest.decode = function decode(reader, length) { + CreateCustomMetricRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); break; } default: @@ -28527,123 +28877,137 @@ }; /** - * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataRetentionSettingsRequest message. + * Verifies a CreateCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataRetentionSettingsRequest.verify = function verify(message) { + CreateCustomMetricRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + error; + } return null; }; /** - * Creates a GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest + * @returns {google.analytics.admin.v1alpha.CreateCustomMetricRequest} CreateCustomMetricRequest */ - GetDataRetentionSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + CreateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } return message; }; /** - * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest + * @param {google.analytics.admin.v1alpha.CreateCustomMetricRequest} message CreateCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataRetentionSettingsRequest.toObject = function toObject(message, options) { + CreateCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.customMetric = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); return object; }; /** - * Converts this GetDataRetentionSettingsRequest to JSON. + * Converts this CreateCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @instance * @returns {Object.} JSON object */ - GetDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { + CreateCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetDataRetentionSettingsRequest + * Gets the default type url for CreateCustomMetricRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.CreateCustomMetricRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetDataRetentionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateCustomMetricRequest"; }; - return GetDataRetentionSettingsRequest; + return CreateCustomMetricRequest; })(); - v1alpha.UpdateDataRetentionSettingsRequest = (function() { + v1alpha.UpdateCustomMetricRequest = (function() { /** - * Properties of an UpdateDataRetentionSettingsRequest. + * Properties of an UpdateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateDataRetentionSettingsRequest - * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] UpdateDataRetentionSettingsRequest dataRetentionSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataRetentionSettingsRequest updateMask + * @interface IUpdateCustomMetricRequest + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] UpdateCustomMetricRequest customMetric + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateCustomMetricRequest updateMask */ /** - * Constructs a new UpdateDataRetentionSettingsRequest. + * Constructs a new UpdateCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateDataRetentionSettingsRequest. - * @implements IUpdateDataRetentionSettingsRequest + * @classdesc Represents an UpdateCustomMetricRequest. + * @implements IUpdateCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set */ - function UpdateDataRetentionSettingsRequest(properties) { + function UpdateCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28651,85 +29015,85 @@ } /** - * UpdateDataRetentionSettingsRequest dataRetentionSettings. - * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * UpdateCustomMetricRequest customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @instance */ - UpdateDataRetentionSettingsRequest.prototype.dataRetentionSettings = null; + UpdateCustomMetricRequest.prototype.customMetric = null; /** - * UpdateDataRetentionSettingsRequest updateMask. + * UpdateCustomMetricRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @instance */ - UpdateDataRetentionSettingsRequest.prototype.updateMask = null; + UpdateCustomMetricRequest.prototype.updateMask = null; /** - * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. + * Creates a new UpdateCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest instance */ - UpdateDataRetentionSettingsRequest.create = function create(properties) { - return new UpdateDataRetentionSettingsRequest(properties); + UpdateCustomMetricRequest.create = function create(properties) { + return new UpdateCustomMetricRequest(properties); }; /** - * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * Encodes the specified UpdateCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDataRetentionSettingsRequest.encode = function encode(message, writer) { + UpdateCustomMetricRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) - $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. + * Encodes the specified UpdateCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateCustomMetricRequest} message UpdateCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDataRetentionSettingsRequest.decode = function decode(reader, length) { + UpdateCustomMetricRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); break; } case 2: { @@ -28745,36 +29109,36 @@ }; /** - * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateDataRetentionSettingsRequest message. + * Verifies an UpdateCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateDataRetentionSettingsRequest.verify = function verify(message) { + UpdateCustomMetricRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { - var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); if (error) - return "dataRetentionSettings." + error; + return "customMetric." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); @@ -28785,102 +29149,103 @@ }; /** - * Creates an UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest + * @returns {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} UpdateCustomMetricRequest */ - UpdateDataRetentionSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + UpdateCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); - if (object.dataRetentionSettings != null) { - if (typeof object.dataRetentionSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.dataRetentionSettings: object expected"); - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); + var message = new $root.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.updateMask: object expected"); + throw TypeError(".google.analytics.admin.v1alpha.UpdateCustomMetricRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest + * @param {google.analytics.admin.v1alpha.UpdateCustomMetricRequest} message UpdateCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateDataRetentionSettingsRequest.toObject = function toObject(message, options) { + UpdateCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dataRetentionSettings = null; + object.customMetric = null; object.updateMask = null; } - if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) - object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); + if (message.customMetric != null && message.hasOwnProperty("customMetric")) + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateDataRetentionSettingsRequest to JSON. + * Converts this UpdateCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @instance * @returns {Object.} JSON object */ - UpdateDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { + UpdateCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateDataRetentionSettingsRequest + * Gets the default type url for UpdateCustomMetricRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @memberof google.analytics.admin.v1alpha.UpdateCustomMetricRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateDataRetentionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateCustomMetricRequest"; }; - return UpdateDataRetentionSettingsRequest; + return UpdateCustomMetricRequest; })(); - v1alpha.CreateDataStreamRequest = (function() { + v1alpha.ListCustomMetricsRequest = (function() { /** - * Properties of a CreateDataStreamRequest. + * Properties of a ListCustomMetricsRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateDataStreamRequest - * @property {string|null} [parent] CreateDataStreamRequest parent - * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] CreateDataStreamRequest dataStream + * @interface IListCustomMetricsRequest + * @property {string|null} [parent] ListCustomMetricsRequest parent + * @property {number|null} [pageSize] ListCustomMetricsRequest pageSize + * @property {string|null} [pageToken] ListCustomMetricsRequest pageToken */ /** - * Constructs a new CreateDataStreamRequest. + * Constructs a new ListCustomMetricsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateDataStreamRequest. - * @implements ICreateDataStreamRequest + * @classdesc Represents a ListCustomMetricsRequest. + * @implements IListCustomMetricsRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set */ - function CreateDataStreamRequest(properties) { + function ListCustomMetricsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28888,80 +29253,90 @@ } /** - * CreateDataStreamRequest parent. + * ListCustomMetricsRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @instance */ - CreateDataStreamRequest.prototype.parent = ""; + ListCustomMetricsRequest.prototype.parent = ""; /** - * CreateDataStreamRequest dataStream. - * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * ListCustomMetricsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @instance */ - CreateDataStreamRequest.prototype.dataStream = null; + ListCustomMetricsRequest.prototype.pageSize = 0; /** - * Creates a new CreateDataStreamRequest instance using the specified properties. + * ListCustomMetricsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest + * @instance + */ + ListCustomMetricsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListCustomMetricsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest instance */ - CreateDataStreamRequest.create = function create(properties) { - return new CreateDataStreamRequest(properties); + ListCustomMetricsRequest.create = function create(properties) { + return new ListCustomMetricsRequest(properties); }; /** - * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * Encodes the specified ListCustomMetricsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDataStreamRequest.encode = function encode(message, writer) { + ListCustomMetricsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. + * Encodes the specified ListCustomMetricsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsRequest} message ListCustomMetricsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomMetricsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDataStreamRequest.decode = function decode(reader, length) { + ListCustomMetricsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -28970,7 +29345,11 @@ break; } case 2: { - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -28982,136 +29361,141 @@ }; /** - * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomMetricsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDataStreamRequest message. + * Verifies a ListCustomMetricsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDataStreamRequest.verify = function verify(message) { + ListCustomMetricsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.dataStream != null && message.hasOwnProperty("dataStream")) { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); - if (error) - return "dataStream." + error; - } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsRequest} ListCustomMetricsRequest */ - CreateDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateDataStreamRequest) + ListCustomMetricsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.dataStream != null) { - if (typeof object.dataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateDataStreamRequest.dataStream: object expected"); - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); - } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomMetricsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static - * @param {google.analytics.admin.v1alpha.CreateDataStreamRequest} message CreateDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListCustomMetricsRequest} message ListCustomMetricsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDataStreamRequest.toObject = function toObject(message, options) { + ListCustomMetricsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.dataStream = null; + object.pageSize = 0; + object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.dataStream != null && message.hasOwnProperty("dataStream")) - object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this CreateDataStreamRequest to JSON. + * Converts this ListCustomMetricsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @instance * @returns {Object.} JSON object */ - CreateDataStreamRequest.prototype.toJSON = function toJSON() { + ListCustomMetricsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateDataStreamRequest + * Gets the default type url for ListCustomMetricsRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomMetricsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateDataStreamRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomMetricsRequest"; }; - return CreateDataStreamRequest; + return ListCustomMetricsRequest; })(); - v1alpha.DeleteDataStreamRequest = (function() { + v1alpha.ListCustomMetricsResponse = (function() { /** - * Properties of a DeleteDataStreamRequest. + * Properties of a ListCustomMetricsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IDeleteDataStreamRequest - * @property {string|null} [name] DeleteDataStreamRequest name + * @interface IListCustomMetricsResponse + * @property {Array.|null} [customMetrics] ListCustomMetricsResponse customMetrics + * @property {string|null} [nextPageToken] ListCustomMetricsResponse nextPageToken */ /** - * Constructs a new DeleteDataStreamRequest. + * Constructs a new ListCustomMetricsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DeleteDataStreamRequest. - * @implements IDeleteDataStreamRequest + * @classdesc Represents a ListCustomMetricsResponse. + * @implements IListCustomMetricsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set */ - function DeleteDataStreamRequest(properties) { + function ListCustomMetricsResponse(properties) { + this.customMetrics = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29119,75 +29503,92 @@ } /** - * DeleteDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * ListCustomMetricsResponse customMetrics. + * @member {Array.} customMetrics + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @instance */ - DeleteDataStreamRequest.prototype.name = ""; + ListCustomMetricsResponse.prototype.customMetrics = $util.emptyArray; /** - * Creates a new DeleteDataStreamRequest instance using the specified properties. + * ListCustomMetricsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse + * @instance + */ + ListCustomMetricsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListCustomMetricsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse instance */ - DeleteDataStreamRequest.create = function create(properties) { - return new DeleteDataStreamRequest(properties); + ListCustomMetricsResponse.create = function create(properties) { + return new ListCustomMetricsResponse(properties); }; /** - * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * Encodes the specified ListCustomMetricsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataStreamRequest.encode = function encode(message, writer) { + ListCustomMetricsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.customMetrics != null && message.customMetrics.length) + for (var i = 0; i < message.customMetrics.length; ++i) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. + * Encodes the specified ListCustomMetricsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListCustomMetricsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListCustomMetricsResponse} message ListCustomMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomMetricsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataStreamRequest.decode = function decode(reader, length) { + ListCustomMetricsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.customMetrics && message.customMetrics.length)) + message.customMetrics = []; + message.customMetrics.push($root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -29199,123 +29600,148 @@ }; /** - * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomMetricsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomMetricsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDataStreamRequest message. + * Verifies a ListCustomMetricsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDataStreamRequest.verify = function verify(message) { + ListCustomMetricsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.customMetrics != null && message.hasOwnProperty("customMetrics")) { + if (!Array.isArray(message.customMetrics)) + return "customMetrics: array expected"; + for (var i = 0; i < message.customMetrics.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetrics[i]); + if (error) + return "customMetrics." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomMetricsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ListCustomMetricsResponse} ListCustomMetricsResponse */ - DeleteDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest) + ListCustomMetricsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); + if (object.customMetrics) { + if (!Array.isArray(object.customMetrics)) + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: array expected"); + message.customMetrics = []; + for (var i = 0; i < object.customMetrics.length; ++i) { + if (typeof object.customMetrics[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListCustomMetricsResponse.customMetrics: object expected"); + message.customMetrics[i] = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetrics[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomMetricsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static - * @param {google.analytics.admin.v1alpha.DeleteDataStreamRequest} message DeleteDataStreamRequest + * @param {google.analytics.admin.v1alpha.ListCustomMetricsResponse} message ListCustomMetricsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDataStreamRequest.toObject = function toObject(message, options) { + ListCustomMetricsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.customMetrics = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.customMetrics && message.customMetrics.length) { + object.customMetrics = []; + for (var j = 0; j < message.customMetrics.length; ++j) + object.customMetrics[j] = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetrics[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteDataStreamRequest to JSON. + * Converts this ListCustomMetricsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @instance * @returns {Object.} JSON object */ - DeleteDataStreamRequest.prototype.toJSON = function toJSON() { + ListCustomMetricsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteDataStreamRequest + * Gets the default type url for ListCustomMetricsResponse * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ListCustomMetricsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomMetricsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteDataStreamRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListCustomMetricsResponse"; }; - return DeleteDataStreamRequest; + return ListCustomMetricsResponse; })(); - v1alpha.UpdateDataStreamRequest = (function() { + v1alpha.ArchiveCustomMetricRequest = (function() { /** - * Properties of an UpdateDataStreamRequest. + * Properties of an ArchiveCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateDataStreamRequest - * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] UpdateDataStreamRequest dataStream - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataStreamRequest updateMask + * @interface IArchiveCustomMetricRequest + * @property {string|null} [name] ArchiveCustomMetricRequest name */ /** - * Constructs a new UpdateDataStreamRequest. + * Constructs a new ArchiveCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateDataStreamRequest. - * @implements IUpdateDataStreamRequest + * @classdesc Represents an ArchiveCustomMetricRequest. + * @implements IArchiveCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set */ - function UpdateDataStreamRequest(properties) { + function ArchiveCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29323,89 +29749,75 @@ } /** - * UpdateDataStreamRequest dataStream. - * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest - * @instance - */ - UpdateDataStreamRequest.prototype.dataStream = null; - - /** - * UpdateDataStreamRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * ArchiveCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @instance */ - UpdateDataStreamRequest.prototype.updateMask = null; + ArchiveCustomMetricRequest.prototype.name = ""; /** - * Creates a new UpdateDataStreamRequest instance using the specified properties. + * Creates a new ArchiveCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest instance */ - UpdateDataStreamRequest.create = function create(properties) { - return new UpdateDataStreamRequest(properties); + ArchiveCustomMetricRequest.create = function create(properties) { + return new ArchiveCustomMetricRequest(properties); }; /** - * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * Encodes the specified ArchiveCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDataStreamRequest.encode = function encode(message, writer) { + ArchiveCustomMetricRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. + * Encodes the specified ArchiveCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IArchiveCustomMetricRequest} message ArchiveCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + ArchiveCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDataStreamRequest.decode = function decode(reader, length) { + ArchiveCustomMetricRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -29417,143 +29829,122 @@ }; /** - * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an ArchiveCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + ArchiveCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateDataStreamRequest message. + * Verifies an ArchiveCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateDataStreamRequest.verify = function verify(message) { + ArchiveCustomMetricRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataStream != null && message.hasOwnProperty("dataStream")) { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); - if (error) - return "dataStream." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ArchiveCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest + * @returns {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} ArchiveCustomMetricRequest */ - UpdateDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest) + ArchiveCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); - if (object.dataStream != null) { - if (typeof object.dataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.dataStream: object expected"); - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from an ArchiveCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateDataStreamRequest} message UpdateDataStreamRequest + * @param {google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} message ArchiveCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateDataStreamRequest.toObject = function toObject(message, options) { + ArchiveCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.dataStream = null; - object.updateMask = null; - } - if (message.dataStream != null && message.hasOwnProperty("dataStream")) - object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateDataStreamRequest to JSON. + * Converts this ArchiveCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @instance * @returns {Object.} JSON object */ - UpdateDataStreamRequest.prototype.toJSON = function toJSON() { + ArchiveCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateDataStreamRequest + * Gets the default type url for ArchiveCustomMetricRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest + * @memberof google.analytics.admin.v1alpha.ArchiveCustomMetricRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ArchiveCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateDataStreamRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ArchiveCustomMetricRequest"; }; - return UpdateDataStreamRequest; + return ArchiveCustomMetricRequest; })(); - v1alpha.ListDataStreamsRequest = (function() { + v1alpha.GetCustomMetricRequest = (function() { /** - * Properties of a ListDataStreamsRequest. + * Properties of a GetCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListDataStreamsRequest - * @property {string|null} [parent] ListDataStreamsRequest parent - * @property {number|null} [pageSize] ListDataStreamsRequest pageSize - * @property {string|null} [pageToken] ListDataStreamsRequest pageToken + * @interface IGetCustomMetricRequest + * @property {string|null} [name] GetCustomMetricRequest name */ /** - * Constructs a new ListDataStreamsRequest. + * Constructs a new GetCustomMetricRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDataStreamsRequest. - * @implements IListDataStreamsRequest + * @classdesc Represents a GetCustomMetricRequest. + * @implements IGetCustomMetricRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set */ - function ListDataStreamsRequest(properties) { + function GetCustomMetricRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29561,103 +29952,75 @@ } /** - * ListDataStreamsRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @instance - */ - ListDataStreamsRequest.prototype.parent = ""; - - /** - * ListDataStreamsRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest - * @instance - */ - ListDataStreamsRequest.prototype.pageSize = 0; - - /** - * ListDataStreamsRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * GetCustomMetricRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @instance */ - ListDataStreamsRequest.prototype.pageToken = ""; + GetCustomMetricRequest.prototype.name = ""; /** - * Creates a new ListDataStreamsRequest instance using the specified properties. + * Creates a new GetCustomMetricRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest instance + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest instance */ - ListDataStreamsRequest.create = function create(properties) { - return new ListDataStreamsRequest(properties); + GetCustomMetricRequest.create = function create(properties) { + return new GetCustomMetricRequest(properties); }; /** - * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * Encodes the specified GetCustomMetricRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataStreamsRequest.encode = function encode(message, writer) { + GetCustomMetricRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. + * Encodes the specified GetCustomMetricRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetCustomMetricRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetCustomMetricRequest} message GetCustomMetricRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomMetricRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataStreamsRequest message from the specified reader or buffer. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataStreamsRequest.decode = function decode(reader, length) { + GetCustomMetricRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -29669,141 +30032,122 @@ }; /** - * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomMetricRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { + GetCustomMetricRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataStreamsRequest message. + * Verifies a GetCustomMetricRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataStreamsRequest.verify = function verify(message) { + GetCustomMetricRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomMetricRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest + * @returns {google.analytics.admin.v1alpha.GetCustomMetricRequest} GetCustomMetricRequest */ - ListDataStreamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsRequest) + GetCustomMetricRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetCustomMetricRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomMetricRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static - * @param {google.analytics.admin.v1alpha.ListDataStreamsRequest} message ListDataStreamsRequest + * @param {google.analytics.admin.v1alpha.GetCustomMetricRequest} message GetCustomMetricRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataStreamsRequest.toObject = function toObject(message, options) { + GetCustomMetricRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListDataStreamsRequest to JSON. + * Converts this GetCustomMetricRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @instance * @returns {Object.} JSON object */ - ListDataStreamsRequest.prototype.toJSON = function toJSON() { + GetCustomMetricRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataStreamsRequest + * Gets the default type url for GetCustomMetricRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @memberof google.analytics.admin.v1alpha.GetCustomMetricRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataStreamsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCustomMetricRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDataStreamsRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetCustomMetricRequest"; }; - return ListDataStreamsRequest; + return GetCustomMetricRequest; })(); - v1alpha.ListDataStreamsResponse = (function() { + v1alpha.GetDataRetentionSettingsRequest = (function() { /** - * Properties of a ListDataStreamsResponse. + * Properties of a GetDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListDataStreamsResponse - * @property {Array.|null} [dataStreams] ListDataStreamsResponse dataStreams - * @property {string|null} [nextPageToken] ListDataStreamsResponse nextPageToken + * @interface IGetDataRetentionSettingsRequest + * @property {string|null} [name] GetDataRetentionSettingsRequest name */ /** - * Constructs a new ListDataStreamsResponse. + * Constructs a new GetDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListDataStreamsResponse. - * @implements IListDataStreamsResponse + * @classdesc Represents a GetDataRetentionSettingsRequest. + * @implements IGetDataRetentionSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set */ - function ListDataStreamsResponse(properties) { - this.dataStreams = []; + function GetDataRetentionSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29811,92 +30155,75 @@ } /** - * ListDataStreamsResponse dataStreams. - * @member {Array.} dataStreams - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse - * @instance - */ - ListDataStreamsResponse.prototype.dataStreams = $util.emptyArray; - - /** - * ListDataStreamsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * GetDataRetentionSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @instance */ - ListDataStreamsResponse.prototype.nextPageToken = ""; + GetDataRetentionSettingsRequest.prototype.name = ""; /** - * Creates a new ListDataStreamsResponse instance using the specified properties. + * Creates a new GetDataRetentionSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse instance + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest instance */ - ListDataStreamsResponse.create = function create(properties) { - return new ListDataStreamsResponse(properties); + GetDataRetentionSettingsRequest.create = function create(properties) { + return new GetDataRetentionSettingsRequest(properties); }; /** - * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * Encodes the specified GetDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataStreamsResponse.encode = function encode(message, writer) { + GetDataRetentionSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataStreams != null && message.dataStreams.length) - for (var i = 0; i < message.dataStreams.length; ++i) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStreams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. + * Encodes the specified GetDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataStreamsResponse.decode = function decode(reader, length) { + GetDataRetentionSettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.dataStreams && message.dataStreams.length)) - message.dataStreams = []; - message.dataStreams.push($root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -29908,148 +30235,123 @@ }; /** - * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { + GetDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataStreamsResponse message. + * Verifies a GetDataRetentionSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataStreamsResponse.verify = function verify(message) { + GetDataRetentionSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataStreams != null && message.hasOwnProperty("dataStreams")) { - if (!Array.isArray(message.dataStreams)) - return "dataStreams: array expected"; - for (var i = 0; i < message.dataStreams.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStreams[i]); - if (error) - return "dataStreams." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse + * @returns {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} GetDataRetentionSettingsRequest */ - ListDataStreamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsResponse) + GetDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); - if (object.dataStreams) { - if (!Array.isArray(object.dataStreams)) - throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: array expected"); - message.dataStreams = []; - for (var i = 0; i < object.dataStreams.length; ++i) { - if (typeof object.dataStreams[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: object expected"); - message.dataStreams[i] = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStreams[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetDataRetentionSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} message ListDataStreamsResponse + * @param {google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} message GetDataRetentionSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataStreamsResponse.toObject = function toObject(message, options) { + GetDataRetentionSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.dataStreams = []; if (options.defaults) - object.nextPageToken = ""; - if (message.dataStreams && message.dataStreams.length) { - object.dataStreams = []; - for (var j = 0; j < message.dataStreams.length; ++j) - object.dataStreams[j] = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStreams[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListDataStreamsResponse to JSON. + * Converts this GetDataRetentionSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @instance * @returns {Object.} JSON object */ - ListDataStreamsResponse.prototype.toJSON = function toJSON() { + GetDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataStreamsResponse + * Gets the default type url for GetDataRetentionSettingsRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse + * @memberof google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataStreamsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetDataRetentionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDataStreamsResponse"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest"; }; - return ListDataStreamsResponse; + return GetDataRetentionSettingsRequest; })(); - v1alpha.GetDataStreamRequest = (function() { + v1alpha.UpdateDataRetentionSettingsRequest = (function() { /** - * Properties of a GetDataStreamRequest. + * Properties of an UpdateDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetDataStreamRequest - * @property {string|null} [name] GetDataStreamRequest name + * @interface IUpdateDataRetentionSettingsRequest + * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] UpdateDataRetentionSettingsRequest dataRetentionSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataRetentionSettingsRequest updateMask */ /** - * Constructs a new GetDataStreamRequest. + * Constructs a new UpdateDataRetentionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetDataStreamRequest. - * @implements IGetDataStreamRequest + * @classdesc Represents an UpdateDataRetentionSettingsRequest. + * @implements IUpdateDataRetentionSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set */ - function GetDataStreamRequest(properties) { + function UpdateDataRetentionSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30057,75 +30359,89 @@ } /** - * GetDataStreamRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * UpdateDataRetentionSettingsRequest dataRetentionSettings. + * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @instance */ - GetDataStreamRequest.prototype.name = ""; + UpdateDataRetentionSettingsRequest.prototype.dataRetentionSettings = null; /** - * Creates a new GetDataStreamRequest instance using the specified properties. + * UpdateDataRetentionSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + * @instance + */ + UpdateDataRetentionSettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateDataRetentionSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest instance + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest instance */ - GetDataStreamRequest.create = function create(properties) { - return new GetDataStreamRequest(properties); + UpdateDataRetentionSettingsRequest.create = function create(properties) { + return new UpdateDataRetentionSettingsRequest(properties); }; /** - * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * Encodes the specified UpdateDataRetentionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataStreamRequest.encode = function encode(message, writer) { + UpdateDataRetentionSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) + $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. + * Encodes the specified UpdateDataRetentionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDataRetentionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataStreamRequest message from the specified reader or buffer. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataStreamRequest.decode = function decode(reader, length) { + UpdateDataRetentionSettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -30137,122 +30453,142 @@ }; /** - * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataRetentionSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateDataRetentionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataStreamRequest message. + * Verifies an UpdateDataRetentionSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataStreamRequest.verify = function verify(message) { + UpdateDataRetentionSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); + if (error) + return "dataRetentionSettings." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataRetentionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest + * @returns {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} UpdateDataRetentionSettingsRequest */ - GetDataStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetDataStreamRequest) + UpdateDataRetentionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); + if (object.dataRetentionSettings != null) { + if (typeof object.dataRetentionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.dataRetentionSettings: object expected"); + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDataRetentionSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.GetDataStreamRequest} message GetDataStreamRequest + * @param {google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} message UpdateDataRetentionSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataStreamRequest.toObject = function toObject(message, options) { + UpdateDataRetentionSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.dataRetentionSettings = null; + object.updateMask = null; + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) + object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetDataStreamRequest to JSON. + * Converts this UpdateDataRetentionSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @instance * @returns {Object.} JSON object */ - GetDataStreamRequest.prototype.toJSON = function toJSON() { + UpdateDataRetentionSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetDataStreamRequest + * Gets the default type url for UpdateDataRetentionSettingsRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest + * @memberof google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateDataRetentionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetDataStreamRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest"; }; - return GetDataStreamRequest; + return UpdateDataRetentionSettingsRequest; })(); - v1alpha.GetAudienceRequest = (function() { + v1alpha.CreateDataStreamRequest = (function() { /** - * Properties of a GetAudienceRequest. + * Properties of a CreateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetAudienceRequest - * @property {string|null} [name] GetAudienceRequest name + * @interface ICreateDataStreamRequest + * @property {string|null} [parent] CreateDataStreamRequest parent + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] CreateDataStreamRequest dataStream */ /** - * Constructs a new GetAudienceRequest. + * Constructs a new CreateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetAudienceRequest. - * @implements IGetAudienceRequest + * @classdesc Represents a CreateDataStreamRequest. + * @implements ICreateDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetAudienceRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set */ - function GetAudienceRequest(properties) { + function CreateDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30260,75 +30596,89 @@ } /** - * GetAudienceRequest name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * CreateDataStreamRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @instance */ - GetAudienceRequest.prototype.name = ""; + CreateDataStreamRequest.prototype.parent = ""; /** - * Creates a new GetAudienceRequest instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest - * @static - * @param {google.analytics.admin.v1alpha.IGetAudienceRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest instance - */ - GetAudienceRequest.create = function create(properties) { - return new GetAudienceRequest(properties); + * CreateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @instance + */ + CreateDataStreamRequest.prototype.dataStream = null; + + /** + * Creates a new CreateDataStreamRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest instance + */ + CreateDataStreamRequest.create = function create(properties) { + return new CreateDataStreamRequest(properties); }; /** - * Encodes the specified GetAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. + * Encodes the specified CreateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAudienceRequest} message GetAudienceRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAudienceRequest.encode = function encode(message, writer) { + CreateDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. + * Encodes the specified CreateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAudienceRequest} message GetAudienceRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateDataStreamRequest} message CreateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAudienceRequest message from the specified reader or buffer. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAudienceRequest.decode = function decode(reader, length) { + CreateDataStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetAudienceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); break; } default: @@ -30340,124 +30690,136 @@ }; /** - * Decodes a GetAudienceRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + CreateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetAudienceRequest message. + * Verifies a CreateDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAudienceRequest.verify = function verify(message) { + CreateDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); + if (error) + return "dataStream." + error; + } return null; }; /** - * Creates a GetAudienceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest + * @returns {google.analytics.admin.v1alpha.CreateDataStreamRequest} CreateDataStreamRequest */ - GetAudienceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetAudienceRequest) + CreateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetAudienceRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.analytics.admin.v1alpha.CreateDataStreamRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); + } return message; }; /** - * Creates a plain object from a GetAudienceRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.GetAudienceRequest} message GetAudienceRequest + * @param {google.analytics.admin.v1alpha.CreateDataStreamRequest} message CreateDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAudienceRequest.toObject = function toObject(message, options) { + CreateDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.dataStream = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); return object; }; /** - * Converts this GetAudienceRequest to JSON. + * Converts this CreateDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @instance * @returns {Object.} JSON object */ - GetAudienceRequest.prototype.toJSON = function toJSON() { + CreateDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetAudienceRequest + * Gets the default type url for CreateDataStreamRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GetAudienceRequest + * @memberof google.analytics.admin.v1alpha.CreateDataStreamRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetAudienceRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateDataStreamRequest"; }; - return GetAudienceRequest; + return CreateDataStreamRequest; })(); - v1alpha.ListAudiencesRequest = (function() { + v1alpha.DeleteDataStreamRequest = (function() { /** - * Properties of a ListAudiencesRequest. + * Properties of a DeleteDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAudiencesRequest - * @property {string|null} [parent] ListAudiencesRequest parent - * @property {number|null} [pageSize] ListAudiencesRequest pageSize - * @property {string|null} [pageToken] ListAudiencesRequest pageToken + * @interface IDeleteDataStreamRequest + * @property {string|null} [name] DeleteDataStreamRequest name */ /** - * Constructs a new ListAudiencesRequest. + * Constructs a new DeleteDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAudiencesRequest. - * @implements IListAudiencesRequest + * @classdesc Represents a DeleteDataStreamRequest. + * @implements IDeleteDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAudiencesRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set */ - function ListAudiencesRequest(properties) { + function DeleteDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30465,103 +30827,75 @@ } /** - * ListAudiencesRequest parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest - * @instance - */ - ListAudiencesRequest.prototype.parent = ""; - - /** - * ListAudiencesRequest pageSize. - * @member {number} pageSize - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest - * @instance - */ - ListAudiencesRequest.prototype.pageSize = 0; - - /** - * ListAudiencesRequest pageToken. - * @member {string} pageToken - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * DeleteDataStreamRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @instance */ - ListAudiencesRequest.prototype.pageToken = ""; + DeleteDataStreamRequest.prototype.name = ""; /** - * Creates a new ListAudiencesRequest instance using the specified properties. + * Creates a new DeleteDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAudiencesRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest instance + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest instance */ - ListAudiencesRequest.create = function create(properties) { - return new ListAudiencesRequest(properties); + DeleteDataStreamRequest.create = function create(properties) { + return new DeleteDataStreamRequest(properties); }; /** - * Encodes the specified ListAudiencesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. + * Encodes the specified DeleteDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAudiencesRequest} message ListAudiencesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAudiencesRequest.encode = function encode(message, writer) { + DeleteDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListAudiencesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. + * Encodes the specified DeleteDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAudiencesRequest} message ListAudiencesRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteDataStreamRequest} message DeleteDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAudiencesRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAudiencesRequest message from the specified reader or buffer. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAudiencesRequest.decode = function decode(reader, length) { + DeleteDataStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAudiencesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -30573,141 +30907,123 @@ }; /** - * Decodes a ListAudiencesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAudiencesRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAudiencesRequest message. + * Verifies a DeleteDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAudiencesRequest.verify = function verify(message) { + DeleteDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListAudiencesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest + * @returns {google.analytics.admin.v1alpha.DeleteDataStreamRequest} DeleteDataStreamRequest */ - ListAudiencesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAudiencesRequest) + DeleteDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAudiencesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListAudiencesRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ListAudiencesRequest} message ListAudiencesRequest + * @param {google.analytics.admin.v1alpha.DeleteDataStreamRequest} message DeleteDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAudiencesRequest.toObject = function toObject(message, options) { + DeleteDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListAudiencesRequest to JSON. + * Converts this DeleteDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @instance * @returns {Object.} JSON object */ - ListAudiencesRequest.prototype.toJSON = function toJSON() { + DeleteDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListAudiencesRequest + * Gets the default type url for DeleteDataStreamRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @memberof google.analytics.admin.v1alpha.DeleteDataStreamRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListAudiencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAudiencesRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteDataStreamRequest"; }; - return ListAudiencesRequest; + return DeleteDataStreamRequest; })(); - v1alpha.ListAudiencesResponse = (function() { + v1alpha.UpdateDataStreamRequest = (function() { /** - * Properties of a ListAudiencesResponse. + * Properties of an UpdateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IListAudiencesResponse - * @property {Array.|null} [audiences] ListAudiencesResponse audiences - * @property {string|null} [nextPageToken] ListAudiencesResponse nextPageToken + * @interface IUpdateDataStreamRequest + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] UpdateDataStreamRequest dataStream + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDataStreamRequest updateMask */ /** - * Constructs a new ListAudiencesResponse. + * Constructs a new UpdateDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ListAudiencesResponse. - * @implements IListAudiencesResponse + * @classdesc Represents an UpdateDataStreamRequest. + * @implements IUpdateDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IListAudiencesResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set */ - function ListAudiencesResponse(properties) { - this.audiences = []; + function UpdateDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30715,92 +31031,89 @@ } /** - * ListAudiencesResponse audiences. - * @member {Array.} audiences - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * UpdateDataStreamRequest dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @instance */ - ListAudiencesResponse.prototype.audiences = $util.emptyArray; + UpdateDataStreamRequest.prototype.dataStream = null; /** - * ListAudiencesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * UpdateDataStreamRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @instance */ - ListAudiencesResponse.prototype.nextPageToken = ""; + UpdateDataStreamRequest.prototype.updateMask = null; /** - * Creates a new ListAudiencesResponse instance using the specified properties. + * Creates a new UpdateDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAudiencesResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse instance + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest instance */ - ListAudiencesResponse.create = function create(properties) { - return new ListAudiencesResponse(properties); + UpdateDataStreamRequest.create = function create(properties) { + return new UpdateDataStreamRequest(properties); }; /** - * Encodes the specified ListAudiencesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. + * Encodes the specified UpdateDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAudiencesResponse} message ListAudiencesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAudiencesResponse.encode = function encode(message, writer) { + UpdateDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audiences != null && message.audiences.length) - for (var i = 0; i < message.audiences.length; ++i) - $root.google.analytics.admin.v1alpha.Audience.encode(message.audiences[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListAudiencesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. + * Encodes the specified UpdateDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IListAudiencesResponse} message ListAudiencesResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateDataStreamRequest} message UpdateDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAudiencesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAudiencesResponse message from the specified reader or buffer. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAudiencesResponse.decode = function decode(reader, length) { + UpdateDataStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAudiencesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.audiences && message.audiences.length)) - message.audiences = []; - message.audiences.push($root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32())); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -30812,149 +31125,143 @@ }; /** - * Decodes a ListAudiencesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAudiencesResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAudiencesResponse message. + * Verifies an UpdateDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAudiencesResponse.verify = function verify(message) { + UpdateDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audiences != null && message.hasOwnProperty("audiences")) { - if (!Array.isArray(message.audiences)) - return "audiences: array expected"; - for (var i = 0; i < message.audiences.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audiences[i]); - if (error) - return "audiences." + error; - } + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); + if (error) + return "dataStream." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListAudiencesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse + * @returns {google.analytics.admin.v1alpha.UpdateDataStreamRequest} UpdateDataStreamRequest */ - ListAudiencesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ListAudiencesResponse) + UpdateDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ListAudiencesResponse(); - if (object.audiences) { - if (!Array.isArray(object.audiences)) - throw TypeError(".google.analytics.admin.v1alpha.ListAudiencesResponse.audiences: array expected"); - message.audiences = []; - for (var i = 0; i < object.audiences.length; ++i) { - if (typeof object.audiences[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ListAudiencesResponse.audiences: object expected"); - message.audiences[i] = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audiences[i]); - } + var message = new $root.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateDataStreamRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListAudiencesResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ListAudiencesResponse} message ListAudiencesResponse + * @param {google.analytics.admin.v1alpha.UpdateDataStreamRequest} message UpdateDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAudiencesResponse.toObject = function toObject(message, options) { + UpdateDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.audiences = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.audiences && message.audiences.length) { - object.audiences = []; - for (var j = 0; j < message.audiences.length; ++j) - object.audiences[j] = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audiences[j], options); + if (options.defaults) { + object.dataStream = null; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.dataStream != null && message.hasOwnProperty("dataStream")) + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListAudiencesResponse to JSON. + * Converts this UpdateDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @instance * @returns {Object.} JSON object */ - ListAudiencesResponse.prototype.toJSON = function toJSON() { + UpdateDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListAudiencesResponse + * Gets the default type url for UpdateDataStreamRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse + * @memberof google.analytics.admin.v1alpha.UpdateDataStreamRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListAudiencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAudiencesResponse"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateDataStreamRequest"; }; - return ListAudiencesResponse; + return UpdateDataStreamRequest; })(); - v1alpha.CreateAudienceRequest = (function() { + v1alpha.ListDataStreamsRequest = (function() { /** - * Properties of a CreateAudienceRequest. + * Properties of a ListDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @interface ICreateAudienceRequest - * @property {string|null} [parent] CreateAudienceRequest parent - * @property {google.analytics.admin.v1alpha.IAudience|null} [audience] CreateAudienceRequest audience + * @interface IListDataStreamsRequest + * @property {string|null} [parent] ListDataStreamsRequest parent + * @property {number|null} [pageSize] ListDataStreamsRequest pageSize + * @property {string|null} [pageToken] ListDataStreamsRequest pageToken */ /** - * Constructs a new CreateAudienceRequest. + * Constructs a new ListDataStreamsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CreateAudienceRequest. - * @implements ICreateAudienceRequest + * @classdesc Represents a ListDataStreamsRequest. + * @implements IListDataStreamsRequest * @constructor - * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set */ - function CreateAudienceRequest(properties) { + function ListDataStreamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30962,80 +31269,90 @@ } /** - * CreateAudienceRequest parent. + * ListDataStreamsRequest parent. * @member {string} parent - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance */ - CreateAudienceRequest.prototype.parent = ""; + ListDataStreamsRequest.prototype.parent = ""; /** - * CreateAudienceRequest audience. - * @member {google.analytics.admin.v1alpha.IAudience|null|undefined} audience - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * ListDataStreamsRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance */ - CreateAudienceRequest.prototype.audience = null; + ListDataStreamsRequest.prototype.pageSize = 0; /** - * Creates a new CreateAudienceRequest instance using the specified properties. + * ListDataStreamsRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest + * @instance + */ + ListDataStreamsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDataStreamsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest instance + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest instance */ - CreateAudienceRequest.create = function create(properties) { - return new CreateAudienceRequest(properties); + ListDataStreamsRequest.create = function create(properties) { + return new ListDataStreamsRequest(properties); }; /** - * Encodes the specified CreateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * Encodes the specified ListDataStreamsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest} message CreateAudienceRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateAudienceRequest.encode = function encode(message, writer) { + ListDataStreamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.audience != null && Object.hasOwnProperty.call(message, "audience")) - $root.google.analytics.admin.v1alpha.Audience.encode(message.audience, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified CreateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * Encodes the specified ListDataStreamsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest} message CreateAudienceRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDataStreamsRequest} message ListDataStreamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDataStreamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateAudienceRequest message from the specified reader or buffer. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateAudienceRequest.decode = function decode(reader, length) { + ListDataStreamsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateAudienceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -31044,7 +31361,11 @@ break; } case 2: { - message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -31056,137 +31377,141 @@ }; /** - * Decodes a CreateAudienceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataStreamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + ListDataStreamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateAudienceRequest message. + * Verifies a ListDataStreamsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateAudienceRequest.verify = function verify(message) { + ListDataStreamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.audience != null && message.hasOwnProperty("audience")) { - var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audience); - if (error) - return "audience." + error; - } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a CreateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataStreamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest + * @returns {google.analytics.admin.v1alpha.ListDataStreamsRequest} ListDataStreamsRequest */ - CreateAudienceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CreateAudienceRequest) + ListDataStreamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.CreateAudienceRequest(); + var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.audience != null) { - if (typeof object.audience !== "object") - throw TypeError(".google.analytics.admin.v1alpha.CreateAudienceRequest.audience: object expected"); - message.audience = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audience); - } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a CreateAudienceRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDataStreamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static - * @param {google.analytics.admin.v1alpha.CreateAudienceRequest} message CreateAudienceRequest + * @param {google.analytics.admin.v1alpha.ListDataStreamsRequest} message ListDataStreamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateAudienceRequest.toObject = function toObject(message, options) { + ListDataStreamsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.audience = null; + object.pageSize = 0; + object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.audience != null && message.hasOwnProperty("audience")) - object.audience = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audience, options); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this CreateAudienceRequest to JSON. + * Converts this ListDataStreamsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @instance * @returns {Object.} JSON object */ - CreateAudienceRequest.prototype.toJSON = function toJSON() { + ListDataStreamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateAudienceRequest + * Gets the default type url for ListDataStreamsRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDataStreamsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateAudienceRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDataStreamsRequest"; }; - return CreateAudienceRequest; + return ListDataStreamsRequest; })(); - v1alpha.UpdateAudienceRequest = (function() { + v1alpha.ListDataStreamsResponse = (function() { /** - * Properties of an UpdateAudienceRequest. + * Properties of a ListDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateAudienceRequest - * @property {google.analytics.admin.v1alpha.IAudience|null} [audience] UpdateAudienceRequest audience - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAudienceRequest updateMask + * @interface IListDataStreamsResponse + * @property {Array.|null} [dataStreams] ListDataStreamsResponse dataStreams + * @property {string|null} [nextPageToken] ListDataStreamsResponse nextPageToken */ /** - * Constructs a new UpdateAudienceRequest. + * Constructs a new ListDataStreamsResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateAudienceRequest. - * @implements IUpdateAudienceRequest + * @classdesc Represents a ListDataStreamsResponse. + * @implements IListDataStreamsResponse * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set */ - function UpdateAudienceRequest(properties) { + function ListDataStreamsResponse(properties) { + this.dataStreams = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31194,89 +31519,92 @@ } /** - * UpdateAudienceRequest audience. - * @member {google.analytics.admin.v1alpha.IAudience|null|undefined} audience - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * ListDataStreamsResponse dataStreams. + * @member {Array.} dataStreams + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @instance */ - UpdateAudienceRequest.prototype.audience = null; + ListDataStreamsResponse.prototype.dataStreams = $util.emptyArray; /** - * UpdateAudienceRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * ListDataStreamsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @instance */ - UpdateAudienceRequest.prototype.updateMask = null; + ListDataStreamsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateAudienceRequest instance using the specified properties. + * Creates a new ListDataStreamsResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest instance + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse instance */ - UpdateAudienceRequest.create = function create(properties) { - return new UpdateAudienceRequest(properties); + ListDataStreamsResponse.create = function create(properties) { + return new ListDataStreamsResponse(properties); }; /** - * Encodes the specified UpdateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * Encodes the specified ListDataStreamsResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest} message UpdateAudienceRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAudienceRequest.encode = function encode(message, writer) { + ListDataStreamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audience != null && Object.hasOwnProperty.call(message, "audience")) - $root.google.analytics.admin.v1alpha.Audience.encode(message.audience, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dataStreams != null && message.dataStreams.length) + for (var i = 0; i < message.dataStreams.length; ++i) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStreams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * Encodes the specified ListDataStreamsResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListDataStreamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest} message UpdateAudienceRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListDataStreamsResponse} message ListDataStreamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDataStreamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateAudienceRequest message from the specified reader or buffer. + * Decodes a ListDataStreamsResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAudienceRequest.decode = function decode(reader, length) { + ListDataStreamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateAudienceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); + if (!(message.dataStreams && message.dataStreams.length)) + message.dataStreams = []; + message.dataStreams.push($root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32())); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -31288,141 +31616,148 @@ }; /** - * Decodes an UpdateAudienceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataStreamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + ListDataStreamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateAudienceRequest message. + * Verifies a ListDataStreamsResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateAudienceRequest.verify = function verify(message) { + ListDataStreamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audience != null && message.hasOwnProperty("audience")) { - var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audience); - if (error) - return "audience." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.dataStreams != null && message.hasOwnProperty("dataStreams")) { + if (!Array.isArray(message.dataStreams)) + return "dataStreams: array expected"; + for (var i = 0; i < message.dataStreams.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStreams[i]); + if (error) + return "dataStreams." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataStreamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest + * @returns {google.analytics.admin.v1alpha.ListDataStreamsResponse} ListDataStreamsResponse */ - UpdateAudienceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAudienceRequest) + ListDataStreamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListDataStreamsResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateAudienceRequest(); - if (object.audience != null) { - if (typeof object.audience !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAudienceRequest.audience: object expected"); - message.audience = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audience); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAudienceRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.analytics.admin.v1alpha.ListDataStreamsResponse(); + if (object.dataStreams) { + if (!Array.isArray(object.dataStreams)) + throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: array expected"); + message.dataStreams = []; + for (var i = 0; i < object.dataStreams.length; ++i) { + if (typeof object.dataStreams[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListDataStreamsResponse.dataStreams: object expected"); + message.dataStreams[i] = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStreams[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateAudienceRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDataStreamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static - * @param {google.analytics.admin.v1alpha.UpdateAudienceRequest} message UpdateAudienceRequest + * @param {google.analytics.admin.v1alpha.ListDataStreamsResponse} message ListDataStreamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateAudienceRequest.toObject = function toObject(message, options) { + ListDataStreamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.audience = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.dataStreams = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.dataStreams && message.dataStreams.length) { + object.dataStreams = []; + for (var j = 0; j < message.dataStreams.length; ++j) + object.dataStreams[j] = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStreams[j], options); } - if (message.audience != null && message.hasOwnProperty("audience")) - object.audience = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audience, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateAudienceRequest to JSON. + * Converts this ListDataStreamsResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @instance * @returns {Object.} JSON object */ - UpdateAudienceRequest.prototype.toJSON = function toJSON() { + ListDataStreamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateAudienceRequest + * Gets the default type url for ListDataStreamsResponse * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @memberof google.analytics.admin.v1alpha.ListDataStreamsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDataStreamsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateAudienceRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListDataStreamsResponse"; }; - return UpdateAudienceRequest; + return ListDataStreamsResponse; })(); - v1alpha.ArchiveAudienceRequest = (function() { + v1alpha.GetDataStreamRequest = (function() { /** - * Properties of an ArchiveAudienceRequest. + * Properties of a GetDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @interface IArchiveAudienceRequest - * @property {string|null} [name] ArchiveAudienceRequest name + * @interface IGetDataStreamRequest + * @property {string|null} [name] GetDataStreamRequest name */ /** - * Constructs a new ArchiveAudienceRequest. + * Constructs a new GetDataStreamRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an ArchiveAudienceRequest. - * @implements IArchiveAudienceRequest + * @classdesc Represents a GetDataStreamRequest. + * @implements IGetDataStreamRequest * @constructor - * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set */ - function ArchiveAudienceRequest(properties) { + function GetDataStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31430,35 +31765,35 @@ } /** - * ArchiveAudienceRequest name. + * GetDataStreamRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @instance */ - ArchiveAudienceRequest.prototype.name = ""; + GetDataStreamRequest.prototype.name = ""; /** - * Creates a new ArchiveAudienceRequest instance using the specified properties. + * Creates a new GetDataStreamRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest instance + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest instance */ - ArchiveAudienceRequest.create = function create(properties) { - return new ArchiveAudienceRequest(properties); + GetDataStreamRequest.create = function create(properties) { + return new GetDataStreamRequest(properties); }; /** - * Encodes the specified ArchiveAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * Encodes the specified GetDataStreamRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest} message ArchiveAudienceRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveAudienceRequest.encode = function encode(message, writer) { + GetDataStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -31467,33 +31802,33 @@ }; /** - * Encodes the specified ArchiveAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * Encodes the specified GetDataStreamRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetDataStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest} message ArchiveAudienceRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetDataStreamRequest} message GetDataStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArchiveAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDataStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ArchiveAudienceRequest message from the specified reader or buffer. + * Decodes a GetDataStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveAudienceRequest.decode = function decode(reader, length) { + GetDataStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveAudienceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -31510,30 +31845,30 @@ }; /** - * Decodes an ArchiveAudienceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArchiveAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + GetDataStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ArchiveAudienceRequest message. + * Verifies a GetDataStreamRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ArchiveAudienceRequest.verify = function verify(message) { + GetDataStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -31543,32 +31878,32 @@ }; /** - * Creates an ArchiveAudienceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest + * @returns {google.analytics.admin.v1alpha.GetDataStreamRequest} GetDataStreamRequest */ - ArchiveAudienceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveAudienceRequest) + GetDataStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetDataStreamRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.ArchiveAudienceRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetDataStreamRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an ArchiveAudienceRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDataStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static - * @param {google.analytics.admin.v1alpha.ArchiveAudienceRequest} message ArchiveAudienceRequest + * @param {google.analytics.admin.v1alpha.GetDataStreamRequest} message GetDataStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ArchiveAudienceRequest.toObject = function toObject(message, options) { + GetDataStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -31580,52 +31915,52 @@ }; /** - * Converts this ArchiveAudienceRequest to JSON. + * Converts this GetDataStreamRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @instance * @returns {Object.} JSON object */ - ArchiveAudienceRequest.prototype.toJSON = function toJSON() { + GetDataStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ArchiveAudienceRequest + * Gets the default type url for GetDataStreamRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @memberof google.analytics.admin.v1alpha.GetDataStreamRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ArchiveAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetDataStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ArchiveAudienceRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetDataStreamRequest"; }; - return ArchiveAudienceRequest; + return GetDataStreamRequest; })(); - v1alpha.GetAttributionSettingsRequest = (function() { + v1alpha.GetAudienceRequest = (function() { /** - * Properties of a GetAttributionSettingsRequest. + * Properties of a GetAudienceRequest. * @memberof google.analytics.admin.v1alpha - * @interface IGetAttributionSettingsRequest - * @property {string|null} [name] GetAttributionSettingsRequest name + * @interface IGetAudienceRequest + * @property {string|null} [name] GetAudienceRequest name */ /** - * Constructs a new GetAttributionSettingsRequest. + * Constructs a new GetAudienceRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GetAttributionSettingsRequest. - * @implements IGetAttributionSettingsRequest + * @classdesc Represents a GetAudienceRequest. + * @implements IGetAudienceRequest * @constructor - * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest=} [properties] Properties to set */ - function GetAttributionSettingsRequest(properties) { + function GetAudienceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31633,35 +31968,35 @@ } /** - * GetAttributionSettingsRequest name. + * GetAudienceRequest name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @instance */ - GetAttributionSettingsRequest.prototype.name = ""; + GetAudienceRequest.prototype.name = ""; /** - * Creates a new GetAttributionSettingsRequest instance using the specified properties. + * Creates a new GetAudienceRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest instance */ - GetAttributionSettingsRequest.create = function create(properties) { - return new GetAttributionSettingsRequest(properties); + GetAudienceRequest.create = function create(properties) { + return new GetAudienceRequest(properties); }; /** - * Encodes the specified GetAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * Encodes the specified GetAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest} message GetAttributionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest} message GetAudienceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAttributionSettingsRequest.encode = function encode(message, writer) { + GetAudienceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -31670,33 +32005,33 @@ }; /** - * Encodes the specified GetAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * Encodes the specified GetAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAudienceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @static - * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest} message GetAttributionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetAudienceRequest} message GetAudienceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAttributionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer. + * Decodes a GetAudienceRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest + * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAttributionSettingsRequest.decode = function decode(reader, length) { + GetAudienceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetAudienceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -31713,30 +32048,30 @@ }; /** - * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetAudienceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest + * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAttributionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + GetAudienceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetAttributionSettingsRequest message. + * Verifies a GetAudienceRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAttributionSettingsRequest.verify = function verify(message) { + GetAudienceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -31746,32 +32081,32 @@ }; /** - * Creates a GetAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetAudienceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest + * @returns {google.analytics.admin.v1alpha.GetAudienceRequest} GetAudienceRequest */ - GetAttributionSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + GetAudienceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAudienceRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(); + var message = new $root.google.analytics.admin.v1alpha.GetAudienceRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetAttributionSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetAudienceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @static - * @param {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} message GetAttributionSettingsRequest + * @param {google.analytics.admin.v1alpha.GetAudienceRequest} message GetAudienceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAttributionSettingsRequest.toObject = function toObject(message, options) { + GetAudienceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -31783,53 +32118,54 @@ }; /** - * Converts this GetAttributionSettingsRequest to JSON. + * Converts this GetAudienceRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @instance * @returns {Object.} JSON object */ - GetAttributionSettingsRequest.prototype.toJSON = function toJSON() { + GetAudienceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetAttributionSettingsRequest + * Gets the default type url for GetAudienceRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.GetAudienceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetAttributionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetAttributionSettingsRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetAudienceRequest"; }; - return GetAttributionSettingsRequest; + return GetAudienceRequest; })(); - v1alpha.UpdateAttributionSettingsRequest = (function() { + v1alpha.ListAudiencesRequest = (function() { /** - * Properties of an UpdateAttributionSettingsRequest. + * Properties of a ListAudiencesRequest. * @memberof google.analytics.admin.v1alpha - * @interface IUpdateAttributionSettingsRequest - * @property {google.analytics.admin.v1alpha.IAttributionSettings|null} [attributionSettings] UpdateAttributionSettingsRequest attributionSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAttributionSettingsRequest updateMask + * @interface IListAudiencesRequest + * @property {string|null} [parent] ListAudiencesRequest parent + * @property {number|null} [pageSize] ListAudiencesRequest pageSize + * @property {string|null} [pageToken] ListAudiencesRequest pageToken */ /** - * Constructs a new UpdateAttributionSettingsRequest. + * Constructs a new ListAudiencesRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an UpdateAttributionSettingsRequest. - * @implements IUpdateAttributionSettingsRequest + * @classdesc Represents a ListAudiencesRequest. + * @implements IListAudiencesRequest * @constructor - * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest=} [properties] Properties to set */ - function UpdateAttributionSettingsRequest(properties) { + function ListAudiencesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31837,89 +32173,103 @@ } /** - * UpdateAttributionSettingsRequest attributionSettings. - * @member {google.analytics.admin.v1alpha.IAttributionSettings|null|undefined} attributionSettings - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * ListAudiencesRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @instance */ - UpdateAttributionSettingsRequest.prototype.attributionSettings = null; + ListAudiencesRequest.prototype.parent = ""; /** - * UpdateAttributionSettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * ListAudiencesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @instance */ - UpdateAttributionSettingsRequest.prototype.updateMask = null; + ListAudiencesRequest.prototype.pageSize = 0; /** - * Creates a new UpdateAttributionSettingsRequest instance using the specified properties. + * ListAudiencesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest + * @instance + */ + ListAudiencesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListAudiencesRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest instance + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest instance */ - UpdateAttributionSettingsRequest.create = function create(properties) { - return new UpdateAttributionSettingsRequest(properties); + ListAudiencesRequest.create = function create(properties) { + return new ListAudiencesRequest(properties); }; /** - * Encodes the specified UpdateAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. + * Encodes the specified ListAudiencesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest} message UpdateAttributionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest} message ListAudiencesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAttributionSettingsRequest.encode = function encode(message, writer) { + ListAudiencesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.attributionSettings != null && Object.hasOwnProperty.call(message, "attributionSettings")) - $root.google.analytics.admin.v1alpha.AttributionSettings.encode(message.attributionSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified UpdateAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. + * Encodes the specified ListAudiencesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @static - * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest} message UpdateAttributionSettingsRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAudiencesRequest} message ListAudiencesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAttributionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAudiencesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer. + * Decodes a ListAudiencesRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAttributionSettingsRequest.decode = function decode(reader, length) { + ListAudiencesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAudiencesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -31931,165 +32281,141 @@ }; /** - * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAudiencesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAttributionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ListAudiencesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateAttributionSettingsRequest message. + * Verifies a ListAudiencesRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateAttributionSettingsRequest.verify = function verify(message) { + ListAudiencesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) { - var error = $root.google.analytics.admin.v1alpha.AttributionSettings.verify(message.attributionSettings); - if (error) - return "attributionSettings." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an UpdateAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAudiencesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest + * @returns {google.analytics.admin.v1alpha.ListAudiencesRequest} ListAudiencesRequest */ - UpdateAttributionSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + ListAudiencesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAudiencesRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(); - if (object.attributionSettings != null) { - if (typeof object.attributionSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.attributionSettings: object expected"); - message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.fromObject(object.attributionSettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.analytics.admin.v1alpha.ListAudiencesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an UpdateAttributionSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAudiencesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @static - * @param {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} message UpdateAttributionSettingsRequest + * @param {google.analytics.admin.v1alpha.ListAudiencesRequest} message ListAudiencesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateAttributionSettingsRequest.toObject = function toObject(message, options) { + ListAudiencesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.attributionSettings = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) - object.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.toObject(message.attributionSettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this UpdateAttributionSettingsRequest to JSON. + * Converts this ListAudiencesRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @instance * @returns {Object.} JSON object */ - UpdateAttributionSettingsRequest.prototype.toJSON = function toJSON() { + ListAudiencesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateAttributionSettingsRequest + * Gets the default type url for ListAudiencesRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + * @memberof google.analytics.admin.v1alpha.ListAudiencesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateAttributionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListAudiencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAudiencesRequest"; }; - return UpdateAttributionSettingsRequest; - })(); - - /** - * AudienceFilterScope enum. - * @name google.analytics.admin.v1alpha.AudienceFilterScope - * @enum {number} - * @property {number} AUDIENCE_FILTER_SCOPE_UNSPECIFIED=0 AUDIENCE_FILTER_SCOPE_UNSPECIFIED value - * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT=1 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT value - * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION=2 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION value - * @property {number} AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS=3 AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS value - */ - v1alpha.AudienceFilterScope = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIENCE_FILTER_SCOPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT"] = 1; - values[valuesById[2] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION"] = 2; - values[valuesById[3] = "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS"] = 3; - return values; + return ListAudiencesRequest; })(); - v1alpha.AudienceDimensionOrMetricFilter = (function() { + v1alpha.ListAudiencesResponse = (function() { /** - * Properties of an AudienceDimensionOrMetricFilter. + * Properties of a ListAudiencesResponse. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceDimensionOrMetricFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null} [stringFilter] AudienceDimensionOrMetricFilter stringFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null} [inListFilter] AudienceDimensionOrMetricFilter inListFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null} [numericFilter] AudienceDimensionOrMetricFilter numericFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null} [betweenFilter] AudienceDimensionOrMetricFilter betweenFilter - * @property {string|null} [fieldName] AudienceDimensionOrMetricFilter fieldName - * @property {boolean|null} [atAnyPointInTime] AudienceDimensionOrMetricFilter atAnyPointInTime - * @property {number|null} [inAnyNDayPeriod] AudienceDimensionOrMetricFilter inAnyNDayPeriod + * @interface IListAudiencesResponse + * @property {Array.|null} [audiences] ListAudiencesResponse audiences + * @property {string|null} [nextPageToken] ListAudiencesResponse nextPageToken */ /** - * Constructs a new AudienceDimensionOrMetricFilter. + * Constructs a new ListAudiencesResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceDimensionOrMetricFilter. - * @implements IAudienceDimensionOrMetricFilter + * @classdesc Represents a ListAudiencesResponse. + * @implements IListAudiencesResponse * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListAudiencesResponse=} [properties] Properties to set */ - function AudienceDimensionOrMetricFilter(properties) { + function ListAudiencesResponse(properties) { + this.audiences = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32097,173 +32423,92 @@ } /** - * AudienceDimensionOrMetricFilter stringFilter. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null|undefined} stringFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.stringFilter = null; - - /** - * AudienceDimensionOrMetricFilter inListFilter. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null|undefined} inListFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.inListFilter = null; - - /** - * AudienceDimensionOrMetricFilter numericFilter. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null|undefined} numericFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.numericFilter = null; - - /** - * AudienceDimensionOrMetricFilter betweenFilter. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null|undefined} betweenFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.betweenFilter = null; - - /** - * AudienceDimensionOrMetricFilter fieldName. - * @member {string} fieldName - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.fieldName = ""; - - /** - * AudienceDimensionOrMetricFilter atAnyPointInTime. - * @member {boolean} atAnyPointInTime - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.atAnyPointInTime = false; - - /** - * AudienceDimensionOrMetricFilter inAnyNDayPeriod. - * @member {number} inAnyNDayPeriod - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * ListAudiencesResponse audiences. + * @member {Array.} audiences + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @instance */ - AudienceDimensionOrMetricFilter.prototype.inAnyNDayPeriod = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListAudiencesResponse.prototype.audiences = $util.emptyArray; /** - * AudienceDimensionOrMetricFilter oneFilter. - * @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|undefined} oneFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * ListAudiencesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @instance */ - Object.defineProperty(AudienceDimensionOrMetricFilter.prototype, "oneFilter", { - get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListAudiencesResponse.prototype.nextPageToken = ""; /** - * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. + * Creates a new ListAudiencesResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @static - * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter instance + * @param {google.analytics.admin.v1alpha.IListAudiencesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse instance */ - AudienceDimensionOrMetricFilter.create = function create(properties) { - return new AudienceDimensionOrMetricFilter(properties); + ListAudiencesResponse.create = function create(properties) { + return new ListAudiencesResponse(properties); }; /** - * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * Encodes the specified ListAudiencesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @static - * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAudiencesResponse} message ListAudiencesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceDimensionOrMetricFilter.encode = function encode(message, writer) { + ListAudiencesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); - if (message.stringFilter != null && Object.hasOwnProperty.call(message, "stringFilter")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.encode(message.stringFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.inListFilter != null && Object.hasOwnProperty.call(message, "inListFilter")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.encode(message.inListFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.numericFilter != null && Object.hasOwnProperty.call(message, "numericFilter")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.encode(message.numericFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.betweenFilter != null && Object.hasOwnProperty.call(message, "betweenFilter")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.encode(message.betweenFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.atAnyPointInTime != null && Object.hasOwnProperty.call(message, "atAnyPointInTime")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.atAnyPointInTime); - if (message.inAnyNDayPeriod != null && Object.hasOwnProperty.call(message, "inAnyNDayPeriod")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.inAnyNDayPeriod); + if (message.audiences != null && message.audiences.length) + for (var i = 0; i < message.audiences.length; ++i) + $root.google.analytics.admin.v1alpha.Audience.encode(message.audiences[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * Encodes the specified ListAudiencesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAudiencesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @static - * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListAudiencesResponse} message ListAudiencesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceDimensionOrMetricFilter.encodeDelimited = function encodeDelimited(message, writer) { + ListAudiencesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. + * Decodes a ListAudiencesResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceDimensionOrMetricFilter.decode = function decode(reader, length) { + ListAudiencesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAudiencesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.decode(reader, reader.uint32()); - break; - } - case 3: { - message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.decode(reader, reader.uint32()); - break; - } - case 4: { - message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.decode(reader, reader.uint32()); - break; - } - case 5: { - message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.decode(reader, reader.uint32()); - break; - } case 1: { - message.fieldName = reader.string(); - break; - } - case 6: { - message.atAnyPointInTime = reader.bool(); + if (!(message.audiences && message.audiences.length)) + message.audiences = []; + message.audiences.push($root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32())); break; } - case 7: { - message.inAnyNDayPeriod = reader.int32(); + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -32275,1570 +32520,1024 @@ }; /** - * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. + * Decodes a ListAudiencesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceDimensionOrMetricFilter.decodeDelimited = function decodeDelimited(reader) { + ListAudiencesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceDimensionOrMetricFilter message. + * Verifies a ListAudiencesResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceDimensionOrMetricFilter.verify = function verify(message) { + ListAudiencesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { - properties.oneFilter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify(message.stringFilter); + if (message.audiences != null && message.hasOwnProperty("audiences")) { + if (!Array.isArray(message.audiences)) + return "audiences: array expected"; + for (var i = 0; i < message.audiences.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audiences[i]); if (error) - return "stringFilter." + error; - } - } - if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { - if (properties.oneFilter === 1) - return "oneFilter: multiple values"; - properties.oneFilter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify(message.inListFilter); - if (error) - return "inListFilter." + error; - } - } - if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { - if (properties.oneFilter === 1) - return "oneFilter: multiple values"; - properties.oneFilter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify(message.numericFilter); - if (error) - return "numericFilter." + error; - } - } - if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { - if (properties.oneFilter === 1) - return "oneFilter: multiple values"; - properties.oneFilter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify(message.betweenFilter); - if (error) - return "betweenFilter." + error; + return "audiences." + error; } } - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - if (!$util.isString(message.fieldName)) - return "fieldName: string expected"; - if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) - if (typeof message.atAnyPointInTime !== "boolean") - return "atAnyPointInTime: boolean expected"; - if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) - if (!$util.isInteger(message.inAnyNDayPeriod)) - return "inAnyNDayPeriod: integer expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. + * Creates a ListAudiencesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @returns {google.analytics.admin.v1alpha.ListAudiencesResponse} ListAudiencesResponse */ - AudienceDimensionOrMetricFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + ListAudiencesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAudiencesResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); - if (object.stringFilter != null) { - if (typeof object.stringFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.stringFilter: object expected"); - message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.fromObject(object.stringFilter); - } - if (object.inListFilter != null) { - if (typeof object.inListFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.inListFilter: object expected"); - message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.fromObject(object.inListFilter); - } - if (object.numericFilter != null) { - if (typeof object.numericFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.numericFilter: object expected"); - message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.fromObject(object.numericFilter); - } - if (object.betweenFilter != null) { - if (typeof object.betweenFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.betweenFilter: object expected"); - message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.fromObject(object.betweenFilter); + var message = new $root.google.analytics.admin.v1alpha.ListAudiencesResponse(); + if (object.audiences) { + if (!Array.isArray(object.audiences)) + throw TypeError(".google.analytics.admin.v1alpha.ListAudiencesResponse.audiences: array expected"); + message.audiences = []; + for (var i = 0; i < object.audiences.length; ++i) { + if (typeof object.audiences[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAudiencesResponse.audiences: object expected"); + message.audiences[i] = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audiences[i]); + } } - if (object.fieldName != null) - message.fieldName = String(object.fieldName); - if (object.atAnyPointInTime != null) - message.atAnyPointInTime = Boolean(object.atAnyPointInTime); - if (object.inAnyNDayPeriod != null) - message.inAnyNDayPeriod = object.inAnyNDayPeriod | 0; + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. + * Creates a plain object from a ListAudiencesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter + * @param {google.analytics.admin.v1alpha.ListAudiencesResponse} message ListAudiencesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceDimensionOrMetricFilter.toObject = function toObject(message, options) { + ListAudiencesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.fieldName = ""; - object.atAnyPointInTime = false; - object.inAnyNDayPeriod = 0; - } - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - object.fieldName = message.fieldName; - if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { - object.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.toObject(message.stringFilter, options); - if (options.oneofs) - object.oneFilter = "stringFilter"; - } - if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { - object.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.toObject(message.inListFilter, options); - if (options.oneofs) - object.oneFilter = "inListFilter"; - } - if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { - object.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.toObject(message.numericFilter, options); - if (options.oneofs) - object.oneFilter = "numericFilter"; - } - if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { - object.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.toObject(message.betweenFilter, options); - if (options.oneofs) - object.oneFilter = "betweenFilter"; + if (options.arrays || options.defaults) + object.audiences = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.audiences && message.audiences.length) { + object.audiences = []; + for (var j = 0; j < message.audiences.length; ++j) + object.audiences[j] = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audiences[j], options); } - if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) - object.atAnyPointInTime = message.atAnyPointInTime; - if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) - object.inAnyNDayPeriod = message.inAnyNDayPeriod; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this AudienceDimensionOrMetricFilter to JSON. + * Converts this ListAudiencesResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @instance * @returns {Object.} JSON object */ - AudienceDimensionOrMetricFilter.prototype.toJSON = function toJSON() { + ListAudiencesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceDimensionOrMetricFilter + * Gets the default type url for ListAudiencesResponse * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.ListAudiencesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceDimensionOrMetricFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListAudiencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAudiencesResponse"; }; - AudienceDimensionOrMetricFilter.StringFilter = (function() { + return ListAudiencesResponse; + })(); - /** - * Properties of a StringFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @interface IStringFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null} [matchType] StringFilter matchType - * @property {string|null} [value] StringFilter value - * @property {boolean|null} [caseSensitive] StringFilter caseSensitive - */ + v1alpha.CreateAudienceRequest = (function() { - /** - * Constructs a new StringFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @classdesc Represents a StringFilter. - * @implements IStringFilter - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set - */ - function StringFilter(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]]; - } + /** + * Properties of a CreateAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateAudienceRequest + * @property {string|null} [parent] CreateAudienceRequest parent + * @property {google.analytics.admin.v1alpha.IAudience|null} [audience] CreateAudienceRequest audience + */ - /** - * StringFilter matchType. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType} matchType - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @instance - */ - StringFilter.prototype.matchType = 0; + /** + * Constructs a new CreateAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateAudienceRequest. + * @implements ICreateAudienceRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest=} [properties] Properties to set + */ + function CreateAudienceRequest(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]]; + } - /** - * StringFilter value. - * @member {string} value - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @instance - */ - StringFilter.prototype.value = ""; + /** + * CreateAudienceRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @instance + */ + CreateAudienceRequest.prototype.parent = ""; - /** - * StringFilter caseSensitive. - * @member {boolean} caseSensitive - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @instance - */ - StringFilter.prototype.caseSensitive = false; + /** + * CreateAudienceRequest audience. + * @member {google.analytics.admin.v1alpha.IAudience|null|undefined} audience + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @instance + */ + CreateAudienceRequest.prototype.audience = null; - /** - * Creates a new StringFilter instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter instance - */ - StringFilter.create = function create(properties) { - return new StringFilter(properties); - }; + /** + * Creates a new CreateAudienceRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest instance + */ + CreateAudienceRequest.create = function create(properties) { + return new CreateAudienceRequest(properties); + }; - /** - * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StringFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.matchType); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.caseSensitive); - return writer; - }; + /** + * Encodes the specified CreateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest} message CreateAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateAudienceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.audience != null && Object.hasOwnProperty.call(message, "audience")) + $root.google.analytics.admin.v1alpha.Audience.encode(message.audience, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StringFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified CreateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAudienceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateAudienceRequest} message CreateAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a StringFilter message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StringFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.matchType = reader.int32(); - break; - } - case 2: { - message.value = reader.string(); - break; - } - case 3: { - message.caseSensitive = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a CreateAudienceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateAudienceRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateAudienceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); break; } - } - return message; - }; - - /** - * Decodes a StringFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StringFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StringFilter message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StringFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.matchType != null && message.hasOwnProperty("matchType")) - switch (message.matchType) { - default: - return "matchType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: + case 2: { + message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); break; } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) - if (typeof message.caseSensitive !== "boolean") - return "caseSensitive: boolean expected"; - return null; - }; - - /** - * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter - */ - StringFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); - switch (object.matchType) { default: - if (typeof object.matchType === "number") { - message.matchType = object.matchType; - break; - } - break; - case "MATCH_TYPE_UNSPECIFIED": - case 0: - message.matchType = 0; - break; - case "EXACT": - case 1: - message.matchType = 1; - break; - case "BEGINS_WITH": - case 2: - message.matchType = 2; - break; - case "ENDS_WITH": - case 3: - message.matchType = 3; - break; - case "CONTAINS": - case 4: - message.matchType = 4; - break; - case "FULL_REGEXP": - case 5: - message.matchType = 5; - break; - case "PARTIAL_REGEXP": - case 6: - message.matchType = 6; + reader.skipType(tag & 7); break; } - if (object.value != null) - message.value = String(object.value); - if (object.caseSensitive != null) - message.caseSensitive = Boolean(object.caseSensitive); - return message; - }; - - /** - * Creates a plain object from a StringFilter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} message StringFilter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StringFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; - object.value = ""; - object.caseSensitive = false; - } - if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] === undefined ? message.matchType : $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] : message.matchType; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) - object.caseSensitive = message.caseSensitive; - return object; - }; + } + return message; + }; - /** - * Converts this StringFilter to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @instance - * @returns {Object.} JSON object - */ - StringFilter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for StringFilter - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StringFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter"; - }; - - /** - * MatchType enum. - * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType - * @enum {number} - * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value - * @property {number} EXACT=1 EXACT value - * @property {number} BEGINS_WITH=2 BEGINS_WITH value - * @property {number} ENDS_WITH=3 ENDS_WITH value - * @property {number} CONTAINS=4 CONTAINS value - * @property {number} FULL_REGEXP=5 FULL_REGEXP value - * @property {number} PARTIAL_REGEXP=6 PARTIAL_REGEXP value - */ - StringFilter.MatchType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EXACT"] = 1; - values[valuesById[2] = "BEGINS_WITH"] = 2; - values[valuesById[3] = "ENDS_WITH"] = 3; - values[valuesById[4] = "CONTAINS"] = 4; - values[valuesById[5] = "FULL_REGEXP"] = 5; - values[valuesById[6] = "PARTIAL_REGEXP"] = 6; - return values; - })(); - - return StringFilter; - })(); + /** + * Decodes a CreateAudienceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - AudienceDimensionOrMetricFilter.InListFilter = (function() { + /** + * Verifies a CreateAudienceRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateAudienceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.audience != null && message.hasOwnProperty("audience")) { + var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audience); + if (error) + return "audience." + error; + } + return null; + }; - /** - * Properties of an InListFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @interface IInListFilter - * @property {Array.|null} [values] InListFilter values - * @property {boolean|null} [caseSensitive] InListFilter caseSensitive - */ + /** + * Creates a CreateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateAudienceRequest} CreateAudienceRequest + */ + CreateAudienceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateAudienceRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateAudienceRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.audience != null) { + if (typeof object.audience !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateAudienceRequest.audience: object expected"); + message.audience = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audience); + } + return message; + }; - /** - * Constructs a new InListFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @classdesc Represents an InListFilter. - * @implements IInListFilter - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set - */ - function InListFilter(properties) { - this.values = []; - 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]]; + /** + * Creates a plain object from a CreateAudienceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateAudienceRequest} message CreateAudienceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateAudienceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.audience = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.audience != null && message.hasOwnProperty("audience")) + object.audience = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audience, options); + return object; + }; - /** - * InListFilter values. - * @member {Array.} values - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @instance - */ - InListFilter.prototype.values = $util.emptyArray; + /** + * Converts this CreateAudienceRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @instance + * @returns {Object.} JSON object + */ + CreateAudienceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * InListFilter caseSensitive. - * @member {boolean} caseSensitive - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @instance - */ - InListFilter.prototype.caseSensitive = false; + /** + * Gets the default type url for CreateAudienceRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateAudienceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateAudienceRequest"; + }; - /** - * Creates a new InListFilter instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter instance - */ - InListFilter.create = function create(properties) { - return new InListFilter(properties); - }; + return CreateAudienceRequest; + })(); - /** - * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InListFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.caseSensitive); - return writer; - }; + v1alpha.UpdateAudienceRequest = (function() { - /** - * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InListFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of an UpdateAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateAudienceRequest + * @property {google.analytics.admin.v1alpha.IAudience|null} [audience] UpdateAudienceRequest audience + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAudienceRequest updateMask + */ - /** - * Decodes an InListFilter message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InListFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - } - case 2: { - message.caseSensitive = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new UpdateAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateAudienceRequest. + * @implements IUpdateAudienceRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest=} [properties] Properties to set + */ + function UpdateAudienceRequest(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]]; + } - /** - * Decodes an InListFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InListFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * UpdateAudienceRequest audience. + * @member {google.analytics.admin.v1alpha.IAudience|null|undefined} audience + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @instance + */ + UpdateAudienceRequest.prototype.audience = null; - /** - * Verifies an InListFilter message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InListFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) - if (typeof message.caseSensitive !== "boolean") - return "caseSensitive: boolean expected"; - return null; - }; + /** + * UpdateAudienceRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @instance + */ + UpdateAudienceRequest.prototype.updateMask = null; - /** - * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter - */ - InListFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); - } - if (object.caseSensitive != null) - message.caseSensitive = Boolean(object.caseSensitive); - return message; - }; + /** + * Creates a new UpdateAudienceRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest instance + */ + UpdateAudienceRequest.create = function create(properties) { + return new UpdateAudienceRequest(properties); + }; - /** - * Creates a plain object from an InListFilter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} message InListFilter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InListFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (options.defaults) - object.caseSensitive = false; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } - if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) - object.caseSensitive = message.caseSensitive; - return object; - }; + /** + * Encodes the specified UpdateAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest} message UpdateAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateAudienceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audience != null && Object.hasOwnProperty.call(message, "audience")) + $root.google.analytics.admin.v1alpha.Audience.encode(message.audience, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Converts this InListFilter to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @instance - * @returns {Object.} JSON object - */ - InListFilter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified UpdateAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAudienceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateAudienceRequest} message UpdateAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for InListFilter - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InListFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Decodes an UpdateAudienceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateAudienceRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateAudienceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter"; - }; - - return InListFilter; - })(); - - AudienceDimensionOrMetricFilter.NumericValue = (function() { - - /** - * Properties of a NumericValue. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @interface INumericValue - * @property {number|Long|null} [int64Value] NumericValue int64Value - * @property {number|null} [doubleValue] NumericValue doubleValue - */ - - /** - * Constructs a new NumericValue. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @classdesc Represents a NumericValue. - * @implements INumericValue - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue=} [properties] Properties to set - */ - function NumericValue(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]]; } + return message; + }; - /** - * NumericValue int64Value. - * @member {number|Long|null|undefined} int64Value - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @instance - */ - NumericValue.prototype.int64Value = null; + /** + * Decodes an UpdateAudienceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * NumericValue doubleValue. - * @member {number|null|undefined} doubleValue - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @instance - */ - NumericValue.prototype.doubleValue = null; + /** + * Verifies an UpdateAudienceRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateAudienceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.audience != null && message.hasOwnProperty("audience")) { + var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audience); + if (error) + return "audience." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Creates an UpdateAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateAudienceRequest} UpdateAudienceRequest + */ + UpdateAudienceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAudienceRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateAudienceRequest(); + if (object.audience != null) { + if (typeof object.audience !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAudienceRequest.audience: object expected"); + message.audience = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audience); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAudienceRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - /** - * NumericValue oneValue. - * @member {"int64Value"|"doubleValue"|undefined} oneValue - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @instance - */ - Object.defineProperty(NumericValue.prototype, "oneValue", { - get: $util.oneOfGetter($oneOfFields = ["int64Value", "doubleValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Creates a plain object from an UpdateAudienceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateAudienceRequest} message UpdateAudienceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateAudienceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.audience = null; + object.updateMask = null; + } + if (message.audience != null && message.hasOwnProperty("audience")) + object.audience = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audience, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; - /** - * Creates a new NumericValue instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue instance - */ - NumericValue.create = function create(properties) { - return new NumericValue(properties); - }; + /** + * Converts this UpdateAudienceRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateAudienceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue} message NumericValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NumericValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.int64Value != null && Object.hasOwnProperty.call(message, "int64Value")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.int64Value); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); - return writer; - }; + /** + * Gets the default type url for UpdateAudienceRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateAudienceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateAudienceRequest"; + }; - /** - * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue} message NumericValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NumericValue.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return UpdateAudienceRequest; + })(); - /** - * Decodes a NumericValue message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NumericValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.int64Value = reader.int64(); - break; - } - case 2: { - message.doubleValue = reader.double(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + v1alpha.ArchiveAudienceRequest = (function() { - /** - * Decodes a NumericValue message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NumericValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Properties of an ArchiveAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IArchiveAudienceRequest + * @property {string|null} [name] ArchiveAudienceRequest name + */ - /** - * Verifies a NumericValue message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NumericValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.int64Value != null && message.hasOwnProperty("int64Value")) { - properties.oneValue = 1; - if (!$util.isInteger(message.int64Value) && !(message.int64Value && $util.isInteger(message.int64Value.low) && $util.isInteger(message.int64Value.high))) - return "int64Value: integer|Long expected"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - if (properties.oneValue === 1) - return "oneValue: multiple values"; - properties.oneValue = 1; - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - } - return null; - }; + /** + * Constructs a new ArchiveAudienceRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an ArchiveAudienceRequest. + * @implements IArchiveAudienceRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest=} [properties] Properties to set + */ + function ArchiveAudienceRequest(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]]; + } - /** - * Creates a NumericValue message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue - */ - NumericValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(); - if (object.int64Value != null) - if ($util.Long) - (message.int64Value = $util.Long.fromValue(object.int64Value)).unsigned = false; - else if (typeof object.int64Value === "string") - message.int64Value = parseInt(object.int64Value, 10); - else if (typeof object.int64Value === "number") - message.int64Value = object.int64Value; - else if (typeof object.int64Value === "object") - message.int64Value = new $util.LongBits(object.int64Value.low >>> 0, object.int64Value.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - return message; - }; + /** + * ArchiveAudienceRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @instance + */ + ArchiveAudienceRequest.prototype.name = ""; - /** - * Creates a plain object from a NumericValue message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} message NumericValue - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NumericValue.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.int64Value != null && message.hasOwnProperty("int64Value")) { - if (typeof message.int64Value === "number") - object.int64Value = options.longs === String ? String(message.int64Value) : message.int64Value; - else - object.int64Value = options.longs === String ? $util.Long.prototype.toString.call(message.int64Value) : options.longs === Number ? new $util.LongBits(message.int64Value.low >>> 0, message.int64Value.high >>> 0).toNumber() : message.int64Value; - if (options.oneofs) - object.oneValue = "int64Value"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (options.oneofs) - object.oneValue = "doubleValue"; - } - return object; - }; + /** + * Creates a new ArchiveAudienceRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest instance + */ + ArchiveAudienceRequest.create = function create(properties) { + return new ArchiveAudienceRequest(properties); + }; - /** - * Converts this NumericValue to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @instance - * @returns {Object.} JSON object - */ - NumericValue.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified ArchiveAudienceRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest} message ArchiveAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveAudienceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Gets the default type url for NumericValue - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NumericValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Encodes the specified ArchiveAudienceRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ArchiveAudienceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.IArchiveAudienceRequest} message ArchiveAudienceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArchiveAudienceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArchiveAudienceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveAudienceRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ArchiveAudienceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue"; - }; + } + return message; + }; - return NumericValue; - })(); + /** + * Decodes an ArchiveAudienceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArchiveAudienceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - AudienceDimensionOrMetricFilter.NumericFilter = (function() { + /** + * Verifies an ArchiveAudienceRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArchiveAudienceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Properties of a NumericFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @interface INumericFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|null} [operation] NumericFilter operation - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null} [value] NumericFilter value - */ + /** + * Creates an ArchiveAudienceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ArchiveAudienceRequest} ArchiveAudienceRequest + */ + ArchiveAudienceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ArchiveAudienceRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ArchiveAudienceRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Constructs a new NumericFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @classdesc Represents a NumericFilter. - * @implements INumericFilter - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter=} [properties] Properties to set - */ - function NumericFilter(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]]; - } + /** + * Creates a plain object from an ArchiveAudienceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {google.analytics.admin.v1alpha.ArchiveAudienceRequest} message ArchiveAudienceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArchiveAudienceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * NumericFilter operation. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation} operation - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @instance - */ - NumericFilter.prototype.operation = 0; + /** + * Converts this ArchiveAudienceRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @instance + * @returns {Object.} JSON object + */ + ArchiveAudienceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * NumericFilter value. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null|undefined} value - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @instance - */ - NumericFilter.prototype.value = null; + /** + * Gets the default type url for ArchiveAudienceRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ArchiveAudienceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArchiveAudienceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ArchiveAudienceRequest"; + }; - /** - * Creates a new NumericFilter instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter instance - */ - NumericFilter.create = function create(properties) { - return new NumericFilter(properties); - }; + return ArchiveAudienceRequest; + })(); - /** - * Encodes the specified NumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter} message NumericFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NumericFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.operation != null && Object.hasOwnProperty.call(message, "operation")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operation); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + v1alpha.GetAttributionSettingsRequest = (function() { - /** - * Encodes the specified NumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter} message NumericFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NumericFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a GetAttributionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetAttributionSettingsRequest + * @property {string|null} [name] GetAttributionSettingsRequest name + */ - /** - * Decodes a NumericFilter message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NumericFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.operation = reader.int32(); - break; - } - case 2: { - message.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new GetAttributionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetAttributionSettingsRequest. + * @implements IGetAttributionSettingsRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest=} [properties] Properties to set + */ + function GetAttributionSettingsRequest(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]]; + } - /** - * Decodes a NumericFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NumericFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * GetAttributionSettingsRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @instance + */ + GetAttributionSettingsRequest.prototype.name = ""; - /** - * Verifies a NumericFilter message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NumericFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.operation != null && message.hasOwnProperty("operation")) - switch (message.operation) { - default: - return "operation: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; + /** + * Creates a new GetAttributionSettingsRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest instance + */ + GetAttributionSettingsRequest.create = function create(properties) { + return new GetAttributionSettingsRequest(properties); + }; - /** - * Creates a NumericFilter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter - */ - NumericFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); - switch (object.operation) { - default: - if (typeof object.operation === "number") { - message.operation = object.operation; + /** + * Encodes the specified GetAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest} message GetAttributionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAttributionSettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAttributionSettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetAttributionSettingsRequest} message GetAttributionSettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAttributionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAttributionSettingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } + default: + reader.skipType(tag & 7); break; - case "OPERATION_UNSPECIFIED": - case 0: - message.operation = 0; - break; - case "EQUAL": - case 1: - message.operation = 1; - break; - case "LESS_THAN": - case 2: - message.operation = 2; - break; - case "LESS_THAN_OR_EQUAL": - case 3: - message.operation = 3; - break; - case "GREATER_THAN": - case 4: - message.operation = 4; - break; - case "GREATER_THAN_OR_EQUAL": - case 5: - message.operation = 5; - break; - } - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.value: object expected"); - message.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.fromObject(object.value); - } - return message; - }; - - /** - * Creates a plain object from a NumericFilter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} message NumericFilter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NumericFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.operation = options.enums === String ? "OPERATION_UNSPECIFIED" : 0; - object.value = null; } - if (message.operation != null && message.hasOwnProperty("operation")) - object.operation = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation[message.operation] === undefined ? message.operation : $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation[message.operation] : message.operation; - if (message.value != null && message.hasOwnProperty("value")) - object.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.value, options); - return object; - }; - - /** - * Converts this NumericFilter to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @instance - * @returns {Object.} JSON object - */ - NumericFilter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + } + return message; + }; - /** - * Gets the default type url for NumericFilter - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NumericFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter"; - }; + /** + * Decodes a GetAttributionSettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAttributionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Operation enum. - * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation - * @enum {number} - * @property {number} OPERATION_UNSPECIFIED=0 OPERATION_UNSPECIFIED value - * @property {number} EQUAL=1 EQUAL value - * @property {number} LESS_THAN=2 LESS_THAN value - * @property {number} LESS_THAN_OR_EQUAL=3 LESS_THAN_OR_EQUAL value - * @property {number} GREATER_THAN=4 GREATER_THAN value - * @property {number} GREATER_THAN_OR_EQUAL=5 GREATER_THAN_OR_EQUAL value - */ - NumericFilter.Operation = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OPERATION_UNSPECIFIED"] = 0; - values[valuesById[1] = "EQUAL"] = 1; - values[valuesById[2] = "LESS_THAN"] = 2; - values[valuesById[3] = "LESS_THAN_OR_EQUAL"] = 3; - values[valuesById[4] = "GREATER_THAN"] = 4; - values[valuesById[5] = "GREATER_THAN_OR_EQUAL"] = 5; - return values; - })(); + /** + * Verifies a GetAttributionSettingsRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAttributionSettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - return NumericFilter; - })(); + /** + * Creates a GetAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} GetAttributionSettingsRequest + */ + GetAttributionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - AudienceDimensionOrMetricFilter.BetweenFilter = (function() { + /** + * Creates a plain object from a GetAttributionSettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {google.analytics.admin.v1alpha.GetAttributionSettingsRequest} message GetAttributionSettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetAttributionSettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Properties of a BetweenFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @interface IBetweenFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null} [fromValue] BetweenFilter fromValue - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null} [toValue] BetweenFilter toValue - */ + /** + * Converts this GetAttributionSettingsRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @instance + * @returns {Object.} JSON object + */ + GetAttributionSettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new BetweenFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @classdesc Represents a BetweenFilter. - * @implements IBetweenFilter - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter=} [properties] Properties to set - */ - function BetweenFilter(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]]; + /** + * Gets the default type url for GetAttributionSettingsRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetAttributionSettingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetAttributionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetAttributionSettingsRequest"; + }; - /** - * BetweenFilter fromValue. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null|undefined} fromValue - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @instance - */ - BetweenFilter.prototype.fromValue = null; + return GetAttributionSettingsRequest; + })(); - /** - * BetweenFilter toValue. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null|undefined} toValue - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @instance - */ - BetweenFilter.prototype.toValue = null; + v1alpha.UpdateAttributionSettingsRequest = (function() { - /** - * Creates a new BetweenFilter instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter instance - */ - BetweenFilter.create = function create(properties) { - return new BetweenFilter(properties); - }; - - /** - * Encodes the specified BetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter} message BetweenFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BetweenFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fromValue != null && Object.hasOwnProperty.call(message, "fromValue")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.encode(message.fromValue, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.toValue != null && Object.hasOwnProperty.call(message, "toValue")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.encode(message.toValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified BetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter} message BetweenFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BetweenFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a BetweenFilter message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BetweenFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); - break; - } - case 2: { - message.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a BetweenFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BetweenFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BetweenFilter message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BetweenFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fromValue != null && message.hasOwnProperty("fromValue")) { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify(message.fromValue); - if (error) - return "fromValue." + error; - } - if (message.toValue != null && message.hasOwnProperty("toValue")) { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify(message.toValue); - if (error) - return "toValue." + error; - } - return null; - }; - - /** - * Creates a BetweenFilter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter - */ - BetweenFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(); - if (object.fromValue != null) { - if (typeof object.fromValue !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.fromValue: object expected"); - message.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.fromObject(object.fromValue); - } - if (object.toValue != null) { - if (typeof object.toValue !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.toValue: object expected"); - message.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.fromObject(object.toValue); - } - return message; - }; - - /** - * Creates a plain object from a BetweenFilter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} message BetweenFilter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BetweenFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.fromValue = null; - object.toValue = null; - } - if (message.fromValue != null && message.hasOwnProperty("fromValue")) - object.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.fromValue, options); - if (message.toValue != null && message.hasOwnProperty("toValue")) - object.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.toValue, options); - return object; - }; - - /** - * Converts this BetweenFilter to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @instance - * @returns {Object.} JSON object - */ - BetweenFilter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for BetweenFilter - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - BetweenFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter"; - }; - - return BetweenFilter; - })(); - - return AudienceDimensionOrMetricFilter; - })(); - - v1alpha.AudienceEventFilter = (function() { - - /** - * Properties of an AudienceEventFilter. - * @memberof google.analytics.admin.v1alpha - * @interface IAudienceEventFilter - * @property {string|null} [eventName] AudienceEventFilter eventName - * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [eventParameterFilterExpression] AudienceEventFilter eventParameterFilterExpression - */ + /** + * Properties of an UpdateAttributionSettingsRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateAttributionSettingsRequest + * @property {google.analytics.admin.v1alpha.IAttributionSettings|null} [attributionSettings] UpdateAttributionSettingsRequest attributionSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAttributionSettingsRequest updateMask + */ /** - * Constructs a new AudienceEventFilter. + * Constructs a new UpdateAttributionSettingsRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceEventFilter. - * @implements IAudienceEventFilter + * @classdesc Represents an UpdateAttributionSettingsRequest. + * @implements IUpdateAttributionSettingsRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceEventFilter=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest=} [properties] Properties to set */ - function AudienceEventFilter(properties) { + function UpdateAttributionSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33846,89 +33545,89 @@ } /** - * AudienceEventFilter eventName. - * @member {string} eventName - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * UpdateAttributionSettingsRequest attributionSettings. + * @member {google.analytics.admin.v1alpha.IAttributionSettings|null|undefined} attributionSettings + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @instance */ - AudienceEventFilter.prototype.eventName = ""; + UpdateAttributionSettingsRequest.prototype.attributionSettings = null; /** - * AudienceEventFilter eventParameterFilterExpression. - * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} eventParameterFilterExpression - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * UpdateAttributionSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @instance */ - AudienceEventFilter.prototype.eventParameterFilterExpression = null; + UpdateAttributionSettingsRequest.prototype.updateMask = null; /** - * Creates a new AudienceEventFilter instance using the specified properties. + * Creates a new UpdateAttributionSettingsRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceEventFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter instance + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest instance */ - AudienceEventFilter.create = function create(properties) { - return new AudienceEventFilter(properties); + UpdateAttributionSettingsRequest.create = function create(properties) { + return new UpdateAttributionSettingsRequest(properties); }; /** - * Encodes the specified AudienceEventFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. + * Encodes the specified UpdateAttributionSettingsRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceEventFilter} message AudienceEventFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest} message UpdateAttributionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceEventFilter.encode = function encode(message, writer) { + UpdateAttributionSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventName); - if (message.eventParameterFilterExpression != null && Object.hasOwnProperty.call(message, "eventParameterFilterExpression")) - $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.eventParameterFilterExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.attributionSettings != null && Object.hasOwnProperty.call(message, "attributionSettings")) + $root.google.analytics.admin.v1alpha.AttributionSettings.encode(message.attributionSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified AudienceEventFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. + * Encodes the specified UpdateAttributionSettingsRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceEventFilter} message AudienceEventFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest} message UpdateAttributionSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceEventFilter.encodeDelimited = function encodeDelimited(message, writer) { + UpdateAttributionSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceEventFilter message from the specified reader or buffer. + * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter + * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceEventFilter.decode = function decode(reader, length) { + UpdateAttributionSettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceEventFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.eventName = reader.string(); + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.decode(reader, reader.uint32()); break; } case 2: { - message.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -33940,140 +33639,142 @@ }; /** - * Decodes an AudienceEventFilter message from the specified reader or buffer, length delimited. + * Decodes an UpdateAttributionSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter + * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceEventFilter.decodeDelimited = function decodeDelimited(reader) { + UpdateAttributionSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceEventFilter message. + * Verifies an UpdateAttributionSettingsRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceEventFilter.verify = function verify(message) { + UpdateAttributionSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.eventName != null && message.hasOwnProperty("eventName")) - if (!$util.isString(message.eventName)) - return "eventName: string expected"; - if (message.eventParameterFilterExpression != null && message.hasOwnProperty("eventParameterFilterExpression")) { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.eventParameterFilterExpression); + if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) { + var error = $root.google.analytics.admin.v1alpha.AttributionSettings.verify(message.attributionSettings); if (error) - return "eventParameterFilterExpression." + error; + return "attributionSettings." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates an AudienceEventFilter message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateAttributionSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter + * @returns {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} UpdateAttributionSettingsRequest */ - AudienceEventFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceEventFilter) + UpdateAttributionSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceEventFilter(); - if (object.eventName != null) - message.eventName = String(object.eventName); - if (object.eventParameterFilterExpression != null) { - if (typeof object.eventParameterFilterExpression !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceEventFilter.eventParameterFilterExpression: object expected"); - message.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.eventParameterFilterExpression); + var message = new $root.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(); + if (object.attributionSettings != null) { + if (typeof object.attributionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.attributionSettings: object expected"); + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.fromObject(object.attributionSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an AudienceEventFilter message. Also converts values to other types if specified. + * Creates a plain object from an UpdateAttributionSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @static - * @param {google.analytics.admin.v1alpha.AudienceEventFilter} message AudienceEventFilter + * @param {google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} message UpdateAttributionSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceEventFilter.toObject = function toObject(message, options) { + UpdateAttributionSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.eventName = ""; - object.eventParameterFilterExpression = null; + object.attributionSettings = null; + object.updateMask = null; } - if (message.eventName != null && message.hasOwnProperty("eventName")) - object.eventName = message.eventName; - if (message.eventParameterFilterExpression != null && message.hasOwnProperty("eventParameterFilterExpression")) - object.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.eventParameterFilterExpression, options); + if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) + object.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.toObject(message.attributionSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this AudienceEventFilter to JSON. + * Converts this UpdateAttributionSettingsRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @instance * @returns {Object.} JSON object */ - AudienceEventFilter.prototype.toJSON = function toJSON() { + UpdateAttributionSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceEventFilter + * Gets the default type url for UpdateAttributionSettingsRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @memberof google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceEventFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateAttributionSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceEventFilter"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest"; }; - return AudienceEventFilter; + return UpdateAttributionSettingsRequest; })(); - v1alpha.AudienceFilterExpression = (function() { + v1alpha.SetAutomatedGa4ConfigurationOptOutRequest = (function() { /** - * Properties of an AudienceFilterExpression. + * Properties of a SetAutomatedGa4ConfigurationOptOutRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceFilterExpression - * @property {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null} [andGroup] AudienceFilterExpression andGroup - * @property {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null} [orGroup] AudienceFilterExpression orGroup - * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [notExpression] AudienceFilterExpression notExpression - * @property {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null} [dimensionOrMetricFilter] AudienceFilterExpression dimensionOrMetricFilter - * @property {google.analytics.admin.v1alpha.IAudienceEventFilter|null} [eventFilter] AudienceFilterExpression eventFilter + * @interface ISetAutomatedGa4ConfigurationOptOutRequest + * @property {string|null} [property] SetAutomatedGa4ConfigurationOptOutRequest property + * @property {boolean|null} [optOut] SetAutomatedGa4ConfigurationOptOutRequest optOut */ /** - * Constructs a new AudienceFilterExpression. + * Constructs a new SetAutomatedGa4ConfigurationOptOutRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceFilterExpression. - * @implements IAudienceFilterExpression + * @classdesc Represents a SetAutomatedGa4ConfigurationOptOutRequest. + * @implements ISetAutomatedGa4ConfigurationOptOutRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest=} [properties] Properties to set */ - function AudienceFilterExpression(properties) { + function SetAutomatedGa4ConfigurationOptOutRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34081,145 +33782,89 @@ } /** - * AudienceFilterExpression andGroup. - * @member {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null|undefined} andGroup - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression - * @instance - */ - AudienceFilterExpression.prototype.andGroup = null; - - /** - * AudienceFilterExpression orGroup. - * @member {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null|undefined} orGroup - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression - * @instance - */ - AudienceFilterExpression.prototype.orGroup = null; - - /** - * AudienceFilterExpression notExpression. - * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} notExpression - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression - * @instance - */ - AudienceFilterExpression.prototype.notExpression = null; - - /** - * AudienceFilterExpression dimensionOrMetricFilter. - * @member {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null|undefined} dimensionOrMetricFilter - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression - * @instance - */ - AudienceFilterExpression.prototype.dimensionOrMetricFilter = null; - - /** - * AudienceFilterExpression eventFilter. - * @member {google.analytics.admin.v1alpha.IAudienceEventFilter|null|undefined} eventFilter - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * SetAutomatedGa4ConfigurationOptOutRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @instance */ - AudienceFilterExpression.prototype.eventFilter = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + SetAutomatedGa4ConfigurationOptOutRequest.prototype.property = ""; /** - * AudienceFilterExpression expr. - * @member {"andGroup"|"orGroup"|"notExpression"|"dimensionOrMetricFilter"|"eventFilter"|undefined} expr - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * SetAutomatedGa4ConfigurationOptOutRequest optOut. + * @member {boolean} optOut + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @instance */ - Object.defineProperty(AudienceFilterExpression.prototype, "expr", { - get: $util.oneOfGetter($oneOfFields = ["andGroup", "orGroup", "notExpression", "dimensionOrMetricFilter", "eventFilter"]), - set: $util.oneOfSetter($oneOfFields) - }); + SetAutomatedGa4ConfigurationOptOutRequest.prototype.optOut = false; /** - * Creates a new AudienceFilterExpression instance using the specified properties. + * Creates a new SetAutomatedGa4ConfigurationOptOutRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression instance + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest} SetAutomatedGa4ConfigurationOptOutRequest instance */ - AudienceFilterExpression.create = function create(properties) { - return new AudienceFilterExpression(properties); + SetAutomatedGa4ConfigurationOptOutRequest.create = function create(properties) { + return new SetAutomatedGa4ConfigurationOptOutRequest(properties); }; /** - * Encodes the specified AudienceFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. + * Encodes the specified SetAutomatedGa4ConfigurationOptOutRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression} message AudienceFilterExpression message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest} message SetAutomatedGa4ConfigurationOptOutRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterExpression.encode = function encode(message, writer) { + SetAutomatedGa4ConfigurationOptOutRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.andGroup != null && Object.hasOwnProperty.call(message, "andGroup")) - $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.encode(message.andGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.orGroup != null && Object.hasOwnProperty.call(message, "orGroup")) - $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.encode(message.orGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.notExpression != null && Object.hasOwnProperty.call(message, "notExpression")) - $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.notExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dimensionOrMetricFilter != null && Object.hasOwnProperty.call(message, "dimensionOrMetricFilter")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.encode(message.dimensionOrMetricFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.eventFilter != null && Object.hasOwnProperty.call(message, "eventFilter")) - $root.google.analytics.admin.v1alpha.AudienceEventFilter.encode(message.eventFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.optOut != null && Object.hasOwnProperty.call(message, "optOut")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.optOut); return writer; }; /** - * Encodes the specified AudienceFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. + * Encodes the specified SetAutomatedGa4ConfigurationOptOutRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression} message AudienceFilterExpression message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest} message SetAutomatedGa4ConfigurationOptOutRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterExpression.encodeDelimited = function encodeDelimited(message, writer) { + SetAutomatedGa4ConfigurationOptOutRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceFilterExpression message from the specified reader or buffer. + * Decodes a SetAutomatedGa4ConfigurationOptOutRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression + * @returns {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest} SetAutomatedGa4ConfigurationOptOutRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterExpression.decode = function decode(reader, length) { + SetAutomatedGa4ConfigurationOptOutRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpression(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); + message.property = reader.string(); break; } case 2: { - message.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); - break; - } - case 3: { - message.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); - break; - } - case 4: { - message.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.decode(reader, reader.uint32()); - break; - } - case 5: { - message.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.decode(reader, reader.uint32()); + message.optOut = reader.bool(); break; } default: @@ -34231,213 +33876,130 @@ }; /** - * Decodes an AudienceFilterExpression message from the specified reader or buffer, length delimited. + * Decodes a SetAutomatedGa4ConfigurationOptOutRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression + * @returns {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest} SetAutomatedGa4ConfigurationOptOutRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterExpression.decodeDelimited = function decodeDelimited(reader) { + SetAutomatedGa4ConfigurationOptOutRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceFilterExpression message. + * Verifies a SetAutomatedGa4ConfigurationOptOutRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceFilterExpression.verify = function verify(message) { + SetAutomatedGa4ConfigurationOptOutRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.andGroup != null && message.hasOwnProperty("andGroup")) { - properties.expr = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify(message.andGroup); - if (error) - return "andGroup." + error; - } - } - if (message.orGroup != null && message.hasOwnProperty("orGroup")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify(message.orGroup); - if (error) - return "orGroup." + error; - } - } - if (message.notExpression != null && message.hasOwnProperty("notExpression")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.notExpression); - if (error) - return "notExpression." + error; - } - } - if (message.dimensionOrMetricFilter != null && message.hasOwnProperty("dimensionOrMetricFilter")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify(message.dimensionOrMetricFilter); - if (error) - return "dimensionOrMetricFilter." + error; - } - } - if (message.eventFilter != null && message.hasOwnProperty("eventFilter")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceEventFilter.verify(message.eventFilter); - if (error) - return "eventFilter." + error; - } - } - return null; - }; - - /** - * Creates an AudienceFilterExpression message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression - */ - AudienceFilterExpression.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterExpression) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpression(); - if (object.andGroup != null) { - if (typeof object.andGroup !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.andGroup: object expected"); - message.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.fromObject(object.andGroup); - } - if (object.orGroup != null) { - if (typeof object.orGroup !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.orGroup: object expected"); - message.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.fromObject(object.orGroup); - } - if (object.notExpression != null) { - if (typeof object.notExpression !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.notExpression: object expected"); - message.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.notExpression); - } - if (object.dimensionOrMetricFilter != null) { - if (typeof object.dimensionOrMetricFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.dimensionOrMetricFilter: object expected"); - message.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.fromObject(object.dimensionOrMetricFilter); - } - if (object.eventFilter != null) { - if (typeof object.eventFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.eventFilter: object expected"); - message.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.fromObject(object.eventFilter); - } - return message; - }; - - /** - * Creates a plain object from an AudienceFilterExpression message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression - * @static - * @param {google.analytics.admin.v1alpha.AudienceFilterExpression} message AudienceFilterExpression - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AudienceFilterExpression.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.andGroup != null && message.hasOwnProperty("andGroup")) { - object.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.toObject(message.andGroup, options); - if (options.oneofs) - object.expr = "andGroup"; - } - if (message.orGroup != null && message.hasOwnProperty("orGroup")) { - object.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.toObject(message.orGroup, options); - if (options.oneofs) - object.expr = "orGroup"; - } - if (message.notExpression != null && message.hasOwnProperty("notExpression")) { - object.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.notExpression, options); - if (options.oneofs) - object.expr = "notExpression"; - } - if (message.dimensionOrMetricFilter != null && message.hasOwnProperty("dimensionOrMetricFilter")) { - object.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.toObject(message.dimensionOrMetricFilter, options); - if (options.oneofs) - object.expr = "dimensionOrMetricFilter"; - } - if (message.eventFilter != null && message.hasOwnProperty("eventFilter")) { - object.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.toObject(message.eventFilter, options); - if (options.oneofs) - object.expr = "eventFilter"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.optOut != null && message.hasOwnProperty("optOut")) + if (typeof message.optOut !== "boolean") + return "optOut: boolean expected"; + return null; + }; + + /** + * Creates a SetAutomatedGa4ConfigurationOptOutRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest} SetAutomatedGa4ConfigurationOptOutRequest + */ + SetAutomatedGa4ConfigurationOptOutRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest(); + if (object.property != null) + message.property = String(object.property); + if (object.optOut != null) + message.optOut = Boolean(object.optOut); + return message; + }; + + /** + * Creates a plain object from a SetAutomatedGa4ConfigurationOptOutRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + * @static + * @param {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest} message SetAutomatedGa4ConfigurationOptOutRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetAutomatedGa4ConfigurationOptOutRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.property = ""; + object.optOut = false; } + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.optOut != null && message.hasOwnProperty("optOut")) + object.optOut = message.optOut; return object; }; /** - * Converts this AudienceFilterExpression to JSON. + * Converts this SetAutomatedGa4ConfigurationOptOutRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @instance * @returns {Object.} JSON object */ - AudienceFilterExpression.prototype.toJSON = function toJSON() { + SetAutomatedGa4ConfigurationOptOutRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceFilterExpression + * Gets the default type url for SetAutomatedGa4ConfigurationOptOutRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceFilterExpression.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetAutomatedGa4ConfigurationOptOutRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterExpression"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest"; }; - return AudienceFilterExpression; + return SetAutomatedGa4ConfigurationOptOutRequest; })(); - v1alpha.AudienceFilterExpressionList = (function() { + v1alpha.SetAutomatedGa4ConfigurationOptOutResponse = (function() { /** - * Properties of an AudienceFilterExpressionList. + * Properties of a SetAutomatedGa4ConfigurationOptOutResponse. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceFilterExpressionList - * @property {Array.|null} [filterExpressions] AudienceFilterExpressionList filterExpressions + * @interface ISetAutomatedGa4ConfigurationOptOutResponse */ /** - * Constructs a new AudienceFilterExpressionList. + * Constructs a new SetAutomatedGa4ConfigurationOptOutResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceFilterExpressionList. - * @implements IAudienceFilterExpressionList + * @classdesc Represents a SetAutomatedGa4ConfigurationOptOutResponse. + * @implements ISetAutomatedGa4ConfigurationOptOutResponse * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse=} [properties] Properties to set */ - function AudienceFilterExpressionList(properties) { - this.filterExpressions = []; + function SetAutomatedGa4ConfigurationOptOutResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34445,80 +34007,63 @@ } /** - * AudienceFilterExpressionList filterExpressions. - * @member {Array.} filterExpressions - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList - * @instance - */ - AudienceFilterExpressionList.prototype.filterExpressions = $util.emptyArray; - - /** - * Creates a new AudienceFilterExpressionList instance using the specified properties. + * Creates a new SetAutomatedGa4ConfigurationOptOutResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList instance + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} SetAutomatedGa4ConfigurationOptOutResponse instance */ - AudienceFilterExpressionList.create = function create(properties) { - return new AudienceFilterExpressionList(properties); + SetAutomatedGa4ConfigurationOptOutResponse.create = function create(properties) { + return new SetAutomatedGa4ConfigurationOptOutResponse(properties); }; /** - * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * Encodes the specified SetAutomatedGa4ConfigurationOptOutResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse} message SetAutomatedGa4ConfigurationOptOutResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterExpressionList.encode = function encode(message, writer) { + SetAutomatedGa4ConfigurationOptOutResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.filterExpressions != null && message.filterExpressions.length) - for (var i = 0; i < message.filterExpressions.length; ++i) - $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpressions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * Encodes the specified SetAutomatedGa4ConfigurationOptOutResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode + * @param {google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse} message SetAutomatedGa4ConfigurationOptOutResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterExpressionList.encodeDelimited = function encodeDelimited(message, writer) { + SetAutomatedGa4ConfigurationOptOutResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. + * Decodes a SetAutomatedGa4ConfigurationOptOutResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList + * @returns {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} SetAutomatedGa4ConfigurationOptOutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterExpressionList.decode = function decode(reader, length) { + SetAutomatedGa4ConfigurationOptOutResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.filterExpressions && message.filterExpressions.length)) - message.filterExpressions = []; - message.filterExpressions.push($root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32())); - break; - } default: reader.skipType(tag & 7); break; @@ -34528,140 +34073,109 @@ }; /** - * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. + * Decodes a SetAutomatedGa4ConfigurationOptOutResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList + * @returns {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} SetAutomatedGa4ConfigurationOptOutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterExpressionList.decodeDelimited = function decodeDelimited(reader) { + SetAutomatedGa4ConfigurationOptOutResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceFilterExpressionList message. + * Verifies a SetAutomatedGa4ConfigurationOptOutResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceFilterExpressionList.verify = function verify(message) { + SetAutomatedGa4ConfigurationOptOutResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.filterExpressions != null && message.hasOwnProperty("filterExpressions")) { - if (!Array.isArray(message.filterExpressions)) - return "filterExpressions: array expected"; - for (var i = 0; i < message.filterExpressions.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpressions[i]); - if (error) - return "filterExpressions." + error; - } - } return null; }; /** - * Creates an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * Creates a SetAutomatedGa4ConfigurationOptOutResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList + * @returns {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} SetAutomatedGa4ConfigurationOptOutResponse */ - AudienceFilterExpressionList.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList) + SetAutomatedGa4ConfigurationOptOutResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); - if (object.filterExpressions) { - if (!Array.isArray(object.filterExpressions)) - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: array expected"); - message.filterExpressions = []; - for (var i = 0; i < object.filterExpressions.length; ++i) { - if (typeof object.filterExpressions[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: object expected"); - message.filterExpressions[i] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpressions[i]); - } - } - return message; + return new $root.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse(); }; /** - * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. + * Creates a plain object from a SetAutomatedGa4ConfigurationOptOutResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @static - * @param {google.analytics.admin.v1alpha.AudienceFilterExpressionList} message AudienceFilterExpressionList + * @param {google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} message SetAutomatedGa4ConfigurationOptOutResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceFilterExpressionList.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.filterExpressions = []; - if (message.filterExpressions && message.filterExpressions.length) { - object.filterExpressions = []; - for (var j = 0; j < message.filterExpressions.length; ++j) - object.filterExpressions[j] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpressions[j], options); - } - return object; + SetAutomatedGa4ConfigurationOptOutResponse.toObject = function toObject() { + return {}; }; /** - * Converts this AudienceFilterExpressionList to JSON. + * Converts this SetAutomatedGa4ConfigurationOptOutResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @instance * @returns {Object.} JSON object */ - AudienceFilterExpressionList.prototype.toJSON = function toJSON() { + SetAutomatedGa4ConfigurationOptOutResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceFilterExpressionList + * Gets the default type url for SetAutomatedGa4ConfigurationOptOutResponse * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceFilterExpressionList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetAutomatedGa4ConfigurationOptOutResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterExpressionList"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse"; }; - return AudienceFilterExpressionList; + return SetAutomatedGa4ConfigurationOptOutResponse; })(); - v1alpha.AudienceSimpleFilter = (function() { + v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest = (function() { /** - * Properties of an AudienceSimpleFilter. + * Properties of a FetchAutomatedGa4ConfigurationOptOutRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceSimpleFilter - * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSimpleFilter scope - * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSimpleFilter filterExpression + * @interface IFetchAutomatedGa4ConfigurationOptOutRequest + * @property {string|null} [property] FetchAutomatedGa4ConfigurationOptOutRequest property */ /** - * Constructs a new AudienceSimpleFilter. + * Constructs a new FetchAutomatedGa4ConfigurationOptOutRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceSimpleFilter. - * @implements IAudienceSimpleFilter + * @classdesc Represents a FetchAutomatedGa4ConfigurationOptOutRequest. + * @implements IFetchAutomatedGa4ConfigurationOptOutRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest=} [properties] Properties to set */ - function AudienceSimpleFilter(properties) { + function FetchAutomatedGa4ConfigurationOptOutRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34669,89 +34183,75 @@ } /** - * AudienceSimpleFilter scope. - * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter - * @instance - */ - AudienceSimpleFilter.prototype.scope = 0; - - /** - * AudienceSimpleFilter filterExpression. - * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * FetchAutomatedGa4ConfigurationOptOutRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @instance */ - AudienceSimpleFilter.prototype.filterExpression = null; + FetchAutomatedGa4ConfigurationOptOutRequest.prototype.property = ""; /** - * Creates a new AudienceSimpleFilter instance using the specified properties. + * Creates a new FetchAutomatedGa4ConfigurationOptOutRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter instance + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest} FetchAutomatedGa4ConfigurationOptOutRequest instance */ - AudienceSimpleFilter.create = function create(properties) { - return new AudienceSimpleFilter(properties); + FetchAutomatedGa4ConfigurationOptOutRequest.create = function create(properties) { + return new FetchAutomatedGa4ConfigurationOptOutRequest(properties); }; /** - * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * Encodes the specified FetchAutomatedGa4ConfigurationOptOutRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest} message FetchAutomatedGa4ConfigurationOptOutRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceSimpleFilter.encode = function encode(message, writer) { + FetchAutomatedGa4ConfigurationOptOutRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); - if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) - $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); return writer; }; /** - * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * Encodes the specified FetchAutomatedGa4ConfigurationOptOutRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest} message FetchAutomatedGa4ConfigurationOptOutRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceSimpleFilter.encodeDelimited = function encodeDelimited(message, writer) { + FetchAutomatedGa4ConfigurationOptOutRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceSimpleFilter message from the specified reader or buffer. + * Decodes a FetchAutomatedGa4ConfigurationOptOutRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter + * @returns {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest} FetchAutomatedGa4ConfigurationOptOutRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceSimpleFilter.decode = function decode(reader, length) { + FetchAutomatedGa4ConfigurationOptOutRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.scope = reader.int32(); - break; - } - case 2: { - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + message.property = reader.string(); break; } default: @@ -34763,168 +34263,122 @@ }; /** - * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. + * Decodes a FetchAutomatedGa4ConfigurationOptOutRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter + * @returns {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest} FetchAutomatedGa4ConfigurationOptOutRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceSimpleFilter.decodeDelimited = function decodeDelimited(reader) { + FetchAutomatedGa4ConfigurationOptOutRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceSimpleFilter message. + * Verifies a FetchAutomatedGa4ConfigurationOptOutRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceSimpleFilter.verify = function verify(message) { + FetchAutomatedGa4ConfigurationOptOutRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - switch (message.scope) { - default: - return "scope: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); - if (error) - return "filterExpression." + error; - } + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; return null; }; /** - * Creates an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. + * Creates a FetchAutomatedGa4ConfigurationOptOutRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter + * @returns {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest} FetchAutomatedGa4ConfigurationOptOutRequest */ - AudienceSimpleFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSimpleFilter) + FetchAutomatedGa4ConfigurationOptOutRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); - switch (object.scope) { - default: - if (typeof object.scope === "number") { - message.scope = object.scope; - break; - } - break; - case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": - case 0: - message.scope = 0; - break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": - case 1: - message.scope = 1; - break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": - case 2: - message.scope = 2; - break; - case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": - case 3: - message.scope = 3; - break; - } - if (object.filterExpression != null) { - if (typeof object.filterExpression !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSimpleFilter.filterExpression: object expected"); - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); - } + var message = new $root.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest(); + if (object.property != null) + message.property = String(object.property); return message; }; /** - * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. + * Creates a plain object from a FetchAutomatedGa4ConfigurationOptOutRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @static - * @param {google.analytics.admin.v1alpha.AudienceSimpleFilter} message AudienceSimpleFilter + * @param {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest} message FetchAutomatedGa4ConfigurationOptOutRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceSimpleFilter.toObject = function toObject(message, options) { + FetchAutomatedGa4ConfigurationOptOutRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; - object.filterExpression = null; - } - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; - if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) - object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); + if (options.defaults) + object.property = ""; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; return object; }; /** - * Converts this AudienceSimpleFilter to JSON. + * Converts this FetchAutomatedGa4ConfigurationOptOutRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @instance * @returns {Object.} JSON object */ - AudienceSimpleFilter.prototype.toJSON = function toJSON() { + FetchAutomatedGa4ConfigurationOptOutRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceSimpleFilter + * Gets the default type url for FetchAutomatedGa4ConfigurationOptOutRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceSimpleFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchAutomatedGa4ConfigurationOptOutRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSimpleFilter"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest"; }; - return AudienceSimpleFilter; + return FetchAutomatedGa4ConfigurationOptOutRequest; })(); - v1alpha.AudienceSequenceFilter = (function() { + v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse = (function() { /** - * Properties of an AudienceSequenceFilter. + * Properties of a FetchAutomatedGa4ConfigurationOptOutResponse. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceSequenceFilter - * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceFilter scope - * @property {google.protobuf.IDuration|null} [sequenceMaximumDuration] AudienceSequenceFilter sequenceMaximumDuration - * @property {Array.|null} [sequenceSteps] AudienceSequenceFilter sequenceSteps + * @interface IFetchAutomatedGa4ConfigurationOptOutResponse + * @property {boolean|null} [optOut] FetchAutomatedGa4ConfigurationOptOutResponse optOut */ /** - * Constructs a new AudienceSequenceFilter. + * Constructs a new FetchAutomatedGa4ConfigurationOptOutResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceSequenceFilter. - * @implements IAudienceSequenceFilter + * @classdesc Represents a FetchAutomatedGa4ConfigurationOptOutResponse. + * @implements IFetchAutomatedGa4ConfigurationOptOutResponse * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse=} [properties] Properties to set */ - function AudienceSequenceFilter(properties) { - this.sequenceSteps = []; + function FetchAutomatedGa4ConfigurationOptOutResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34932,106 +34386,75 @@ } /** - * AudienceSequenceFilter scope. - * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter - * @instance - */ - AudienceSequenceFilter.prototype.scope = 0; - - /** - * AudienceSequenceFilter sequenceMaximumDuration. - * @member {google.protobuf.IDuration|null|undefined} sequenceMaximumDuration - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter - * @instance - */ - AudienceSequenceFilter.prototype.sequenceMaximumDuration = null; - - /** - * AudienceSequenceFilter sequenceSteps. - * @member {Array.} sequenceSteps - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * FetchAutomatedGa4ConfigurationOptOutResponse optOut. + * @member {boolean} optOut + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @instance */ - AudienceSequenceFilter.prototype.sequenceSteps = $util.emptyArray; + FetchAutomatedGa4ConfigurationOptOutResponse.prototype.optOut = false; /** - * Creates a new AudienceSequenceFilter instance using the specified properties. + * Creates a new FetchAutomatedGa4ConfigurationOptOutResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @static - * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter instance + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} FetchAutomatedGa4ConfigurationOptOutResponse instance */ - AudienceSequenceFilter.create = function create(properties) { - return new AudienceSequenceFilter(properties); + FetchAutomatedGa4ConfigurationOptOutResponse.create = function create(properties) { + return new FetchAutomatedGa4ConfigurationOptOutResponse(properties); }; /** - * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * Encodes the specified FetchAutomatedGa4ConfigurationOptOutResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @static - * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse} message FetchAutomatedGa4ConfigurationOptOutResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceSequenceFilter.encode = function encode(message, writer) { + FetchAutomatedGa4ConfigurationOptOutResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); - if (message.sequenceMaximumDuration != null && Object.hasOwnProperty.call(message, "sequenceMaximumDuration")) - $root.google.protobuf.Duration.encode(message.sequenceMaximumDuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sequenceSteps != null && message.sequenceSteps.length) - for (var i = 0; i < message.sequenceSteps.length; ++i) - $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.encode(message.sequenceSteps[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.optOut != null && Object.hasOwnProperty.call(message, "optOut")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.optOut); return writer; }; /** - * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * Encodes the specified FetchAutomatedGa4ConfigurationOptOutResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @static - * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse} message FetchAutomatedGa4ConfigurationOptOutResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceSequenceFilter.encodeDelimited = function encodeDelimited(message, writer) { + FetchAutomatedGa4ConfigurationOptOutResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceSequenceFilter message from the specified reader or buffer. + * Decodes a FetchAutomatedGa4ConfigurationOptOutResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter + * @returns {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} FetchAutomatedGa4ConfigurationOptOutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceSequenceFilter.decode = function decode(reader, length) { + FetchAutomatedGa4ConfigurationOptOutResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.scope = reader.int32(); - break; - } - case 2: { - message.sequenceMaximumDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 3: { - if (!(message.sequenceSteps && message.sequenceSteps.length)) - message.sequenceSteps = []; - message.sequenceSteps.push($root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.decode(reader, reader.uint32())); + message.optOut = reader.bool(); break; } default: @@ -35043,505 +34466,122 @@ }; /** - * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. + * Decodes a FetchAutomatedGa4ConfigurationOptOutResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter + * @returns {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} FetchAutomatedGa4ConfigurationOptOutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceSequenceFilter.decodeDelimited = function decodeDelimited(reader) { + FetchAutomatedGa4ConfigurationOptOutResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceSequenceFilter message. + * Verifies a FetchAutomatedGa4ConfigurationOptOutResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceSequenceFilter.verify = function verify(message) { + FetchAutomatedGa4ConfigurationOptOutResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - switch (message.scope) { - default: - return "scope: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) { - var error = $root.google.protobuf.Duration.verify(message.sequenceMaximumDuration); - if (error) - return "sequenceMaximumDuration." + error; - } - if (message.sequenceSteps != null && message.hasOwnProperty("sequenceSteps")) { - if (!Array.isArray(message.sequenceSteps)) - return "sequenceSteps: array expected"; - for (var i = 0; i < message.sequenceSteps.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify(message.sequenceSteps[i]); - if (error) - return "sequenceSteps." + error; - } - } + if (message.optOut != null && message.hasOwnProperty("optOut")) + if (typeof message.optOut !== "boolean") + return "optOut: boolean expected"; return null; }; /** - * Creates an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. + * Creates a FetchAutomatedGa4ConfigurationOptOutResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter + * @returns {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} FetchAutomatedGa4ConfigurationOptOutResponse */ - AudienceSequenceFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter) + FetchAutomatedGa4ConfigurationOptOutResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); - switch (object.scope) { - default: - if (typeof object.scope === "number") { - message.scope = object.scope; - break; - } - break; - case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": - case 0: - message.scope = 0; - break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": - case 1: - message.scope = 1; - break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": - case 2: - message.scope = 2; - break; - case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": - case 3: - message.scope = 3; - break; - } - if (object.sequenceMaximumDuration != null) { - if (typeof object.sequenceMaximumDuration !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceMaximumDuration: object expected"); - message.sequenceMaximumDuration = $root.google.protobuf.Duration.fromObject(object.sequenceMaximumDuration); - } - if (object.sequenceSteps) { - if (!Array.isArray(object.sequenceSteps)) - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: array expected"); - message.sequenceSteps = []; - for (var i = 0; i < object.sequenceSteps.length; ++i) { - if (typeof object.sequenceSteps[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: object expected"); - message.sequenceSteps[i] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.fromObject(object.sequenceSteps[i]); - } - } + var message = new $root.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse(); + if (object.optOut != null) + message.optOut = Boolean(object.optOut); return message; }; /** - * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. + * Creates a plain object from a FetchAutomatedGa4ConfigurationOptOutResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter} message AudienceSequenceFilter + * @param {google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} message FetchAutomatedGa4ConfigurationOptOutResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceSequenceFilter.toObject = function toObject(message, options) { + FetchAutomatedGa4ConfigurationOptOutResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.sequenceSteps = []; - if (options.defaults) { - object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; - object.sequenceMaximumDuration = null; - } - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; - if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) - object.sequenceMaximumDuration = $root.google.protobuf.Duration.toObject(message.sequenceMaximumDuration, options); - if (message.sequenceSteps && message.sequenceSteps.length) { - object.sequenceSteps = []; - for (var j = 0; j < message.sequenceSteps.length; ++j) - object.sequenceSteps[j] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.toObject(message.sequenceSteps[j], options); - } + if (options.defaults) + object.optOut = false; + if (message.optOut != null && message.hasOwnProperty("optOut")) + object.optOut = message.optOut; return object; }; /** - * Converts this AudienceSequenceFilter to JSON. + * Converts this FetchAutomatedGa4ConfigurationOptOutResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @instance * @returns {Object.} JSON object */ - AudienceSequenceFilter.prototype.toJSON = function toJSON() { + FetchAutomatedGa4ConfigurationOptOutResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceSequenceFilter + * Gets the default type url for FetchAutomatedGa4ConfigurationOptOutResponse * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceSequenceFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchAutomatedGa4ConfigurationOptOutResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse"; }; - AudienceSequenceFilter.AudienceSequenceStep = (function() { - - /** - * Properties of an AudienceSequenceStep. - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter - * @interface IAudienceSequenceStep - * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceStep scope - * @property {boolean|null} [immediatelyFollows] AudienceSequenceStep immediatelyFollows - * @property {google.protobuf.IDuration|null} [constraintDuration] AudienceSequenceStep constraintDuration - * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSequenceStep filterExpression - */ - - /** - * Constructs a new AudienceSequenceStep. - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter - * @classdesc Represents an AudienceSequenceStep. - * @implements IAudienceSequenceStep - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set - */ - function AudienceSequenceStep(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]]; - } - - /** - * AudienceSequenceStep scope. - * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - */ - AudienceSequenceStep.prototype.scope = 0; - - /** - * AudienceSequenceStep immediatelyFollows. - * @member {boolean} immediatelyFollows - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - */ - AudienceSequenceStep.prototype.immediatelyFollows = false; - - /** - * AudienceSequenceStep constraintDuration. - * @member {google.protobuf.IDuration|null|undefined} constraintDuration - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - */ - AudienceSequenceStep.prototype.constraintDuration = null; - - /** - * AudienceSequenceStep filterExpression. - * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - */ - AudienceSequenceStep.prototype.filterExpression = null; - - /** - * Creates a new AudienceSequenceStep instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep instance - */ - AudienceSequenceStep.create = function create(properties) { - return new AudienceSequenceStep(properties); - }; - - /** - * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AudienceSequenceStep.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); - if (message.immediatelyFollows != null && Object.hasOwnProperty.call(message, "immediatelyFollows")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.immediatelyFollows); - if (message.constraintDuration != null && Object.hasOwnProperty.call(message, "constraintDuration")) - $root.google.protobuf.Duration.encode(message.constraintDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) - $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AudienceSequenceStep.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AudienceSequenceStep message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AudienceSequenceStep.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.scope = reader.int32(); - break; - } - case 2: { - message.immediatelyFollows = reader.bool(); - break; - } - case 3: { - message.constraintDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 4: { - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AudienceSequenceStep.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AudienceSequenceStep message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AudienceSequenceStep.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - switch (message.scope) { - default: - return "scope: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) - if (typeof message.immediatelyFollows !== "boolean") - return "immediatelyFollows: boolean expected"; - if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) { - var error = $root.google.protobuf.Duration.verify(message.constraintDuration); - if (error) - return "constraintDuration." + error; - } - if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); - if (error) - return "filterExpression." + error; - } - return null; - }; - - /** - * Creates an AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep - */ - AudienceSequenceStep.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); - switch (object.scope) { - default: - if (typeof object.scope === "number") { - message.scope = object.scope; - break; - } - break; - case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": - case 0: - message.scope = 0; - break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": - case 1: - message.scope = 1; - break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": - case 2: - message.scope = 2; - break; - case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": - case 3: - message.scope = 3; - break; - } - if (object.immediatelyFollows != null) - message.immediatelyFollows = Boolean(object.immediatelyFollows); - if (object.constraintDuration != null) { - if (typeof object.constraintDuration !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.constraintDuration: object expected"); - message.constraintDuration = $root.google.protobuf.Duration.fromObject(object.constraintDuration); - } - if (object.filterExpression != null) { - if (typeof object.filterExpression !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.filterExpression: object expected"); - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); - } - return message; - }; - - /** - * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} message AudienceSequenceStep - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AudienceSequenceStep.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; - object.immediatelyFollows = false; - object.constraintDuration = null; - object.filterExpression = null; - } - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; - if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) - object.immediatelyFollows = message.immediatelyFollows; - if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) - object.constraintDuration = $root.google.protobuf.Duration.toObject(message.constraintDuration, options); - if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) - object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); - return object; - }; - - /** - * Converts this AudienceSequenceStep to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - * @returns {Object.} JSON object - */ - AudienceSequenceStep.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for AudienceSequenceStep - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AudienceSequenceStep.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep"; - }; - - return AudienceSequenceStep; - })(); - - return AudienceSequenceFilter; + return FetchAutomatedGa4ConfigurationOptOutResponse; })(); - v1alpha.AudienceFilterClause = (function() { + v1alpha.GetBigQueryLinkRequest = (function() { /** - * Properties of an AudienceFilterClause. + * Properties of a GetBigQueryLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceFilterClause - * @property {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null} [simpleFilter] AudienceFilterClause simpleFilter - * @property {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null} [sequenceFilter] AudienceFilterClause sequenceFilter - * @property {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null} [clauseType] AudienceFilterClause clauseType + * @interface IGetBigQueryLinkRequest + * @property {string|null} [name] GetBigQueryLinkRequest name */ /** - * Constructs a new AudienceFilterClause. + * Constructs a new GetBigQueryLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceFilterClause. - * @implements IAudienceFilterClause + * @classdesc Represents a GetBigQueryLinkRequest. + * @implements IGetBigQueryLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetBigQueryLinkRequest=} [properties] Properties to set */ - function AudienceFilterClause(properties) { + function GetBigQueryLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35549,117 +34589,75 @@ } /** - * AudienceFilterClause simpleFilter. - * @member {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null|undefined} simpleFilter - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause - * @instance - */ - AudienceFilterClause.prototype.simpleFilter = null; - - /** - * AudienceFilterClause sequenceFilter. - * @member {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null|undefined} sequenceFilter - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause - * @instance - */ - AudienceFilterClause.prototype.sequenceFilter = null; - - /** - * AudienceFilterClause clauseType. - * @member {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType} clauseType - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause - * @instance - */ - AudienceFilterClause.prototype.clauseType = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * AudienceFilterClause filter. - * @member {"simpleFilter"|"sequenceFilter"|undefined} filter - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * GetBigQueryLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @instance */ - Object.defineProperty(AudienceFilterClause.prototype, "filter", { - get: $util.oneOfGetter($oneOfFields = ["simpleFilter", "sequenceFilter"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetBigQueryLinkRequest.prototype.name = ""; /** - * Creates a new AudienceFilterClause instance using the specified properties. + * Creates a new GetBigQueryLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause instance + * @param {google.analytics.admin.v1alpha.IGetBigQueryLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetBigQueryLinkRequest} GetBigQueryLinkRequest instance */ - AudienceFilterClause.create = function create(properties) { - return new AudienceFilterClause(properties); + GetBigQueryLinkRequest.create = function create(properties) { + return new GetBigQueryLinkRequest(properties); }; /** - * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * Encodes the specified GetBigQueryLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetBigQueryLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetBigQueryLinkRequest} message GetBigQueryLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterClause.encode = function encode(message, writer) { + GetBigQueryLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.clauseType != null && Object.hasOwnProperty.call(message, "clauseType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clauseType); - if (message.simpleFilter != null && Object.hasOwnProperty.call(message, "simpleFilter")) - $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.encode(message.simpleFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sequenceFilter != null && Object.hasOwnProperty.call(message, "sequenceFilter")) - $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.encode(message.sequenceFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * Encodes the specified GetBigQueryLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetBigQueryLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetBigQueryLinkRequest} message GetBigQueryLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterClause.encodeDelimited = function encodeDelimited(message, writer) { + GetBigQueryLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceFilterClause message from the specified reader or buffer. + * Decodes a GetBigQueryLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause + * @returns {google.analytics.admin.v1alpha.GetBigQueryLinkRequest} GetBigQueryLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterClause.decode = function decode(reader, length) { + GetBigQueryLinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetBigQueryLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.decode(reader, reader.uint32()); - break; - } - case 3: { - message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.decode(reader, reader.uint32()); - break; - } case 1: { - message.clauseType = reader.int32(); + message.name = reader.string(); break; } default: @@ -35671,202 +34669,124 @@ }; /** - * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. + * Decodes a GetBigQueryLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause + * @returns {google.analytics.admin.v1alpha.GetBigQueryLinkRequest} GetBigQueryLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterClause.decodeDelimited = function decodeDelimited(reader) { + GetBigQueryLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceFilterClause message. + * Verifies a GetBigQueryLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceFilterClause.verify = function verify(message) { + GetBigQueryLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { - properties.filter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.verify(message.simpleFilter); - if (error) - return "simpleFilter." + error; - } - } - if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.verify(message.sequenceFilter); - if (error) - return "sequenceFilter." + error; - } - } - if (message.clauseType != null && message.hasOwnProperty("clauseType")) - switch (message.clauseType) { - default: - return "clauseType: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. + * Creates a GetBigQueryLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause + * @returns {google.analytics.admin.v1alpha.GetBigQueryLinkRequest} GetBigQueryLinkRequest */ - AudienceFilterClause.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterClause) + GetBigQueryLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetBigQueryLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); - if (object.simpleFilter != null) { - if (typeof object.simpleFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.simpleFilter: object expected"); - message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.fromObject(object.simpleFilter); - } - if (object.sequenceFilter != null) { - if (typeof object.sequenceFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.sequenceFilter: object expected"); - message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.fromObject(object.sequenceFilter); - } - switch (object.clauseType) { - default: - if (typeof object.clauseType === "number") { - message.clauseType = object.clauseType; - break; - } - break; - case "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED": - case 0: - message.clauseType = 0; - break; - case "INCLUDE": - case 1: - message.clauseType = 1; - break; - case "EXCLUDE": - case 2: - message.clauseType = 2; - break; - } + var message = new $root.google.analytics.admin.v1alpha.GetBigQueryLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. + * Creates a plain object from a GetBigQueryLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @static - * @param {google.analytics.admin.v1alpha.AudienceFilterClause} message AudienceFilterClause + * @param {google.analytics.admin.v1alpha.GetBigQueryLinkRequest} message GetBigQueryLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceFilterClause.toObject = function toObject(message, options) { + GetBigQueryLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.clauseType = options.enums === String ? "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED" : 0; - if (message.clauseType != null && message.hasOwnProperty("clauseType")) - object.clauseType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] === undefined ? message.clauseType : $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] : message.clauseType; - if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { - object.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.toObject(message.simpleFilter, options); - if (options.oneofs) - object.filter = "simpleFilter"; - } - if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { - object.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.toObject(message.sequenceFilter, options); - if (options.oneofs) - object.filter = "sequenceFilter"; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this AudienceFilterClause to JSON. + * Converts this GetBigQueryLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @instance * @returns {Object.} JSON object */ - AudienceFilterClause.prototype.toJSON = function toJSON() { + GetBigQueryLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceFilterClause + * Gets the default type url for GetBigQueryLinkRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.GetBigQueryLinkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceFilterClause.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBigQueryLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterClause"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetBigQueryLinkRequest"; }; - /** - * AudienceClauseType enum. - * @name google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType - * @enum {number} - * @property {number} AUDIENCE_CLAUSE_TYPE_UNSPECIFIED=0 AUDIENCE_CLAUSE_TYPE_UNSPECIFIED value - * @property {number} INCLUDE=1 INCLUDE value - * @property {number} EXCLUDE=2 EXCLUDE value - */ - AudienceFilterClause.AudienceClauseType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INCLUDE"] = 1; - values[valuesById[2] = "EXCLUDE"] = 2; - return values; - })(); - - return AudienceFilterClause; + return GetBigQueryLinkRequest; })(); - v1alpha.AudienceEventTrigger = (function() { + v1alpha.ListBigQueryLinksRequest = (function() { /** - * Properties of an AudienceEventTrigger. + * Properties of a ListBigQueryLinksRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceEventTrigger - * @property {string|null} [eventName] AudienceEventTrigger eventName - * @property {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null} [logCondition] AudienceEventTrigger logCondition + * @interface IListBigQueryLinksRequest + * @property {string|null} [parent] ListBigQueryLinksRequest parent + * @property {number|null} [pageSize] ListBigQueryLinksRequest pageSize + * @property {string|null} [pageToken] ListBigQueryLinksRequest pageToken */ /** - * Constructs a new AudienceEventTrigger. + * Constructs a new ListBigQueryLinksRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceEventTrigger. - * @implements IAudienceEventTrigger + * @classdesc Represents a ListBigQueryLinksRequest. + * @implements IListBigQueryLinksRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksRequest=} [properties] Properties to set */ - function AudienceEventTrigger(properties) { + function ListBigQueryLinksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35874,89 +34794,103 @@ } /** - * AudienceEventTrigger eventName. - * @member {string} eventName - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * ListBigQueryLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @instance */ - AudienceEventTrigger.prototype.eventName = ""; + ListBigQueryLinksRequest.prototype.parent = ""; /** - * AudienceEventTrigger logCondition. - * @member {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition} logCondition - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * ListBigQueryLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @instance */ - AudienceEventTrigger.prototype.logCondition = 0; + ListBigQueryLinksRequest.prototype.pageSize = 0; /** - * Creates a new AudienceEventTrigger instance using the specified properties. + * ListBigQueryLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest + * @instance + */ + ListBigQueryLinksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListBigQueryLinksRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger instance + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListBigQueryLinksRequest} ListBigQueryLinksRequest instance */ - AudienceEventTrigger.create = function create(properties) { - return new AudienceEventTrigger(properties); + ListBigQueryLinksRequest.create = function create(properties) { + return new ListBigQueryLinksRequest(properties); }; /** - * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * Encodes the specified ListBigQueryLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListBigQueryLinksRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksRequest} message ListBigQueryLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceEventTrigger.encode = function encode(message, writer) { + ListBigQueryLinksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventName); - if (message.logCondition != null && Object.hasOwnProperty.call(message, "logCondition")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logCondition); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * Encodes the specified ListBigQueryLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListBigQueryLinksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksRequest} message ListBigQueryLinksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceEventTrigger.encodeDelimited = function encodeDelimited(message, writer) { + ListBigQueryLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceEventTrigger message from the specified reader or buffer. + * Decodes a ListBigQueryLinksRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger + * @returns {google.analytics.admin.v1alpha.ListBigQueryLinksRequest} ListBigQueryLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceEventTrigger.decode = function decode(reader, length) { + ListBigQueryLinksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListBigQueryLinksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.eventName = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.logCondition = reader.int32(); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -35968,179 +34902,141 @@ }; /** - * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. + * Decodes a ListBigQueryLinksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger + * @returns {google.analytics.admin.v1alpha.ListBigQueryLinksRequest} ListBigQueryLinksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceEventTrigger.decodeDelimited = function decodeDelimited(reader) { + ListBigQueryLinksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceEventTrigger message. + * Verifies a ListBigQueryLinksRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceEventTrigger.verify = function verify(message) { + ListBigQueryLinksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.eventName != null && message.hasOwnProperty("eventName")) - if (!$util.isString(message.eventName)) - return "eventName: string expected"; - if (message.logCondition != null && message.hasOwnProperty("logCondition")) - switch (message.logCondition) { - default: - return "logCondition: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. + * Creates a ListBigQueryLinksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger + * @returns {google.analytics.admin.v1alpha.ListBigQueryLinksRequest} ListBigQueryLinksRequest */ - AudienceEventTrigger.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceEventTrigger) + ListBigQueryLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListBigQueryLinksRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); - if (object.eventName != null) - message.eventName = String(object.eventName); - switch (object.logCondition) { - default: - if (typeof object.logCondition === "number") { - message.logCondition = object.logCondition; - break; - } - break; - case "LOG_CONDITION_UNSPECIFIED": - case 0: - message.logCondition = 0; - break; - case "AUDIENCE_JOINED": - case 1: - message.logCondition = 1; - break; - case "AUDIENCE_MEMBERSHIP_RENEWED": - case 2: - message.logCondition = 2; - break; - } + var message = new $root.google.analytics.admin.v1alpha.ListBigQueryLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. + * Creates a plain object from a ListBigQueryLinksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @static - * @param {google.analytics.admin.v1alpha.AudienceEventTrigger} message AudienceEventTrigger + * @param {google.analytics.admin.v1alpha.ListBigQueryLinksRequest} message ListBigQueryLinksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceEventTrigger.toObject = function toObject(message, options) { + ListBigQueryLinksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.eventName = ""; - object.logCondition = options.enums === String ? "LOG_CONDITION_UNSPECIFIED" : 0; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.eventName != null && message.hasOwnProperty("eventName")) - object.eventName = message.eventName; - if (message.logCondition != null && message.hasOwnProperty("logCondition")) - object.logCondition = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] === undefined ? message.logCondition : $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] : message.logCondition; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this AudienceEventTrigger to JSON. + * Converts this ListBigQueryLinksRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @instance * @returns {Object.} JSON object */ - AudienceEventTrigger.prototype.toJSON = function toJSON() { + ListBigQueryLinksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceEventTrigger + * Gets the default type url for ListBigQueryLinksRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceEventTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBigQueryLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceEventTrigger"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListBigQueryLinksRequest"; }; - /** - * LogCondition enum. - * @name google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition - * @enum {number} - * @property {number} LOG_CONDITION_UNSPECIFIED=0 LOG_CONDITION_UNSPECIFIED value - * @property {number} AUDIENCE_JOINED=1 AUDIENCE_JOINED value - * @property {number} AUDIENCE_MEMBERSHIP_RENEWED=2 AUDIENCE_MEMBERSHIP_RENEWED value - */ - AudienceEventTrigger.LogCondition = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_CONDITION_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUDIENCE_JOINED"] = 1; - values[valuesById[2] = "AUDIENCE_MEMBERSHIP_RENEWED"] = 2; - return values; - })(); - - return AudienceEventTrigger; + return ListBigQueryLinksRequest; })(); - v1alpha.Audience = (function() { + v1alpha.ListBigQueryLinksResponse = (function() { /** - * Properties of an Audience. + * Properties of a ListBigQueryLinksResponse. * @memberof google.analytics.admin.v1alpha - * @interface IAudience - * @property {string|null} [name] Audience name - * @property {string|null} [displayName] Audience displayName - * @property {string|null} [description] Audience description - * @property {number|null} [membershipDurationDays] Audience membershipDurationDays - * @property {boolean|null} [adsPersonalizationEnabled] Audience adsPersonalizationEnabled - * @property {google.analytics.admin.v1alpha.IAudienceEventTrigger|null} [eventTrigger] Audience eventTrigger - * @property {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null} [exclusionDurationMode] Audience exclusionDurationMode - * @property {Array.|null} [filterClauses] Audience filterClauses + * @interface IListBigQueryLinksResponse + * @property {Array.|null} [bigqueryLinks] ListBigQueryLinksResponse bigqueryLinks + * @property {string|null} [nextPageToken] ListBigQueryLinksResponse nextPageToken */ /** - * Constructs a new Audience. + * Constructs a new ListBigQueryLinksResponse. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an Audience. - * @implements IAudience + * @classdesc Represents a ListBigQueryLinksResponse. + * @implements IListBigQueryLinksResponse * @constructor - * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksResponse=} [properties] Properties to set */ - function Audience(properties) { - this.filterClauses = []; + function ListBigQueryLinksResponse(properties) { + this.bigqueryLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36148,176 +35044,92 @@ } /** - * Audience name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.name = ""; - - /** - * Audience displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.displayName = ""; - - /** - * Audience description. - * @member {string} description - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.description = ""; - - /** - * Audience membershipDurationDays. - * @member {number} membershipDurationDays - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.membershipDurationDays = 0; - - /** - * Audience adsPersonalizationEnabled. - * @member {boolean} adsPersonalizationEnabled - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.adsPersonalizationEnabled = false; - - /** - * Audience eventTrigger. - * @member {google.analytics.admin.v1alpha.IAudienceEventTrigger|null|undefined} eventTrigger - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.eventTrigger = null; - - /** - * Audience exclusionDurationMode. - * @member {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode} exclusionDurationMode - * @memberof google.analytics.admin.v1alpha.Audience + * ListBigQueryLinksResponse bigqueryLinks. + * @member {Array.} bigqueryLinks + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @instance */ - Audience.prototype.exclusionDurationMode = 0; + ListBigQueryLinksResponse.prototype.bigqueryLinks = $util.emptyArray; /** - * Audience filterClauses. - * @member {Array.} filterClauses - * @memberof google.analytics.admin.v1alpha.Audience + * ListBigQueryLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @instance */ - Audience.prototype.filterClauses = $util.emptyArray; + ListBigQueryLinksResponse.prototype.nextPageToken = ""; /** - * Creates a new Audience instance using the specified properties. + * Creates a new ListBigQueryLinksResponse instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Audience} Audience instance + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListBigQueryLinksResponse} ListBigQueryLinksResponse instance */ - Audience.create = function create(properties) { - return new Audience(properties); + ListBigQueryLinksResponse.create = function create(properties) { + return new ListBigQueryLinksResponse(properties); }; /** - * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. + * Encodes the specified ListBigQueryLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListBigQueryLinksResponse.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksResponse} message ListBigQueryLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Audience.encode = function encode(message, writer) { + ListBigQueryLinksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.membershipDurationDays != null && Object.hasOwnProperty.call(message, "membershipDurationDays")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.membershipDurationDays); - if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.adsPersonalizationEnabled); - if (message.eventTrigger != null && Object.hasOwnProperty.call(message, "eventTrigger")) - $root.google.analytics.admin.v1alpha.AudienceEventTrigger.encode(message.eventTrigger, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.exclusionDurationMode != null && Object.hasOwnProperty.call(message, "exclusionDurationMode")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.exclusionDurationMode); - if (message.filterClauses != null && message.filterClauses.length) - for (var i = 0; i < message.filterClauses.length; ++i) - $root.google.analytics.admin.v1alpha.AudienceFilterClause.encode(message.filterClauses[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.bigqueryLinks != null && message.bigqueryLinks.length) + for (var i = 0; i < message.bigqueryLinks.length; ++i) + $root.google.analytics.admin.v1alpha.BigQueryLink.encode(message.bigqueryLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. + * Encodes the specified ListBigQueryLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListBigQueryLinksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @static - * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode + * @param {google.analytics.admin.v1alpha.IListBigQueryLinksResponse} message ListBigQueryLinksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Audience.encodeDelimited = function encodeDelimited(message, writer) { + ListBigQueryLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Audience message from the specified reader or buffer. + * Decodes a ListBigQueryLinksResponse message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Audience} Audience + * @returns {google.analytics.admin.v1alpha.ListBigQueryLinksResponse} ListBigQueryLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Audience.decode = function decode(reader, length) { + ListBigQueryLinksResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Audience(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListBigQueryLinksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.bigqueryLinks && message.bigqueryLinks.length)) + message.bigqueryLinks = []; + message.bigqueryLinks.push($root.google.analytics.admin.v1alpha.BigQueryLink.decode(reader, reader.uint32())); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - message.membershipDurationDays = reader.int32(); - break; - } - case 5: { - message.adsPersonalizationEnabled = reader.bool(); - break; - } - case 6: { - message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.decode(reader, reader.uint32()); - break; - } - case 7: { - message.exclusionDurationMode = reader.int32(); - break; - } - case 8: { - if (!(message.filterClauses && message.filterClauses.length)) - message.filterClauses = []; - message.filterClauses.push($root.google.analytics.admin.v1alpha.AudienceFilterClause.decode(reader, reader.uint32())); + message.nextPageToken = reader.string(); break; } default: @@ -36329,495 +35141,172 @@ }; /** - * Decodes an Audience message from the specified reader or buffer, length delimited. + * Decodes a ListBigQueryLinksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Audience} Audience + * @returns {google.analytics.admin.v1alpha.ListBigQueryLinksResponse} ListBigQueryLinksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Audience.decodeDelimited = function decodeDelimited(reader) { + ListBigQueryLinksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Audience message. + * Verifies a ListBigQueryLinksResponse message. * @function verify - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Audience.verify = function verify(message) { + ListBigQueryLinksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) - if (!$util.isInteger(message.membershipDurationDays)) - return "membershipDurationDays: integer expected"; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - if (typeof message.adsPersonalizationEnabled !== "boolean") - return "adsPersonalizationEnabled: boolean expected"; - if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) { - var error = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.verify(message.eventTrigger); - if (error) - return "eventTrigger." + error; - } - if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) - switch (message.exclusionDurationMode) { - default: - return "exclusionDurationMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.filterClauses != null && message.hasOwnProperty("filterClauses")) { - if (!Array.isArray(message.filterClauses)) - return "filterClauses: array expected"; - for (var i = 0; i < message.filterClauses.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterClause.verify(message.filterClauses[i]); + if (message.bigqueryLinks != null && message.hasOwnProperty("bigqueryLinks")) { + if (!Array.isArray(message.bigqueryLinks)) + return "bigqueryLinks: array expected"; + for (var i = 0; i < message.bigqueryLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.BigQueryLink.verify(message.bigqueryLinks[i]); if (error) - return "filterClauses." + error; + return "bigqueryLinks." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an Audience message from a plain object. Also converts values to their respective internal types. + * Creates a ListBigQueryLinksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Audience} Audience + * @returns {google.analytics.admin.v1alpha.ListBigQueryLinksResponse} ListBigQueryLinksResponse */ - Audience.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Audience) + ListBigQueryLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListBigQueryLinksResponse) return object; - var message = new $root.google.analytics.admin.v1alpha.Audience(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.membershipDurationDays != null) - message.membershipDurationDays = object.membershipDurationDays | 0; - if (object.adsPersonalizationEnabled != null) - message.adsPersonalizationEnabled = Boolean(object.adsPersonalizationEnabled); - if (object.eventTrigger != null) { - if (typeof object.eventTrigger !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Audience.eventTrigger: object expected"); - message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.fromObject(object.eventTrigger); - } - switch (object.exclusionDurationMode) { - default: - if (typeof object.exclusionDurationMode === "number") { - message.exclusionDurationMode = object.exclusionDurationMode; - break; - } - break; - case "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED": - case 0: - message.exclusionDurationMode = 0; - break; - case "EXCLUDE_TEMPORARILY": - case 1: - message.exclusionDurationMode = 1; - break; - case "EXCLUDE_PERMANENTLY": - case 2: - message.exclusionDurationMode = 2; - break; - } - if (object.filterClauses) { - if (!Array.isArray(object.filterClauses)) - throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: array expected"); - message.filterClauses = []; - for (var i = 0; i < object.filterClauses.length; ++i) { - if (typeof object.filterClauses[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: object expected"); - message.filterClauses[i] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.fromObject(object.filterClauses[i]); + var message = new $root.google.analytics.admin.v1alpha.ListBigQueryLinksResponse(); + if (object.bigqueryLinks) { + if (!Array.isArray(object.bigqueryLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListBigQueryLinksResponse.bigqueryLinks: array expected"); + message.bigqueryLinks = []; + for (var i = 0; i < object.bigqueryLinks.length; ++i) { + if (typeof object.bigqueryLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListBigQueryLinksResponse.bigqueryLinks: object expected"); + message.bigqueryLinks[i] = $root.google.analytics.admin.v1alpha.BigQueryLink.fromObject(object.bigqueryLinks[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an Audience message. Also converts values to other types if specified. + * Creates a plain object from a ListBigQueryLinksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @static - * @param {google.analytics.admin.v1alpha.Audience} message Audience + * @param {google.analytics.admin.v1alpha.ListBigQueryLinksResponse} message ListBigQueryLinksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Audience.toObject = function toObject(message, options) { + ListBigQueryLinksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.filterClauses = []; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.membershipDurationDays = 0; - object.adsPersonalizationEnabled = false; - object.eventTrigger = null; - object.exclusionDurationMode = options.enums === String ? "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) - object.membershipDurationDays = message.membershipDurationDays; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - object.adsPersonalizationEnabled = message.adsPersonalizationEnabled; - if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) - object.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.toObject(message.eventTrigger, options); - if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) - object.exclusionDurationMode = options.enums === String ? $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] === undefined ? message.exclusionDurationMode : $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] : message.exclusionDurationMode; - if (message.filterClauses && message.filterClauses.length) { - object.filterClauses = []; - for (var j = 0; j < message.filterClauses.length; ++j) - object.filterClauses[j] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.toObject(message.filterClauses[j], options); + object.bigqueryLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.bigqueryLinks && message.bigqueryLinks.length) { + object.bigqueryLinks = []; + for (var j = 0; j < message.bigqueryLinks.length; ++j) + object.bigqueryLinks[j] = $root.google.analytics.admin.v1alpha.BigQueryLink.toObject(message.bigqueryLinks[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this Audience to JSON. + * Converts this ListBigQueryLinksResponse to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @instance * @returns {Object.} JSON object */ - Audience.prototype.toJSON = function toJSON() { + ListBigQueryLinksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Audience + * Gets the default type url for ListBigQueryLinksResponse * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.Audience + * @memberof google.analytics.admin.v1alpha.ListBigQueryLinksResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Audience.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBigQueryLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.Audience"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListBigQueryLinksResponse"; }; - /** - * AudienceExclusionDurationMode enum. - * @name google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode - * @enum {number} - * @property {number} AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED=0 AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED value - * @property {number} EXCLUDE_TEMPORARILY=1 EXCLUDE_TEMPORARILY value - * @property {number} EXCLUDE_PERMANENTLY=2 EXCLUDE_PERMANENTLY value - */ - Audience.AudienceExclusionDurationMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EXCLUDE_TEMPORARILY"] = 1; - values[valuesById[2] = "EXCLUDE_PERMANENTLY"] = 2; - return values; - })(); - - return Audience; + return ListBigQueryLinksResponse; })(); /** - * IndustryCategory enum. - * @name google.analytics.admin.v1alpha.IndustryCategory + * AudienceFilterScope enum. + * @name google.analytics.admin.v1alpha.AudienceFilterScope * @enum {number} - * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value - * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value - * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value - * @property {number} FINANCE=3 FINANCE value - * @property {number} HEALTHCARE=4 HEALTHCARE value - * @property {number} TECHNOLOGY=5 TECHNOLOGY value - * @property {number} TRAVEL=6 TRAVEL value - * @property {number} OTHER=7 OTHER value - * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value - * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value - * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value - * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value - * @property {number} GAMES=12 GAMES value - * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value - * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value - * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value - * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value - * @property {number} NEWS=17 NEWS value - * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value - * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value - * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value - * @property {number} REAL_ESTATE=21 REAL_ESTATE value - * @property {number} REFERENCE=22 REFERENCE value - * @property {number} SCIENCE=23 SCIENCE value - * @property {number} SPORTS=24 SPORTS value - * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value - * @property {number} SHOPPING=26 SHOPPING value - */ - v1alpha.IndustryCategory = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTOMOTIVE"] = 1; - values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; - values[valuesById[3] = "FINANCE"] = 3; - values[valuesById[4] = "HEALTHCARE"] = 4; - values[valuesById[5] = "TECHNOLOGY"] = 5; - values[valuesById[6] = "TRAVEL"] = 6; - values[valuesById[7] = "OTHER"] = 7; - values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; - values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; - values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; - values[valuesById[11] = "FOOD_AND_DRINK"] = 11; - values[valuesById[12] = "GAMES"] = 12; - values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; - values[valuesById[14] = "HOME_AND_GARDEN"] = 14; - values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; - values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; - values[valuesById[17] = "NEWS"] = 17; - values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; - values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; - values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; - values[valuesById[21] = "REAL_ESTATE"] = 21; - values[valuesById[22] = "REFERENCE"] = 22; - values[valuesById[23] = "SCIENCE"] = 23; - values[valuesById[24] = "SPORTS"] = 24; - values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; - values[valuesById[26] = "SHOPPING"] = 26; - return values; - })(); - - /** - * ServiceLevel enum. - * @name google.analytics.admin.v1alpha.ServiceLevel - * @enum {number} - * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value - * @property {number} GOOGLE_ANALYTICS_STANDARD=1 GOOGLE_ANALYTICS_STANDARD value - * @property {number} GOOGLE_ANALYTICS_360=2 GOOGLE_ANALYTICS_360 value - */ - v1alpha.ServiceLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_ANALYTICS_STANDARD"] = 1; - values[valuesById[2] = "GOOGLE_ANALYTICS_360"] = 2; - return values; - })(); - - /** - * ActorType enum. - * @name google.analytics.admin.v1alpha.ActorType - * @enum {number} - * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value - * @property {number} USER=1 USER value - * @property {number} SYSTEM=2 SYSTEM value - * @property {number} SUPPORT=3 SUPPORT value - */ - v1alpha.ActorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "USER"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - values[valuesById[3] = "SUPPORT"] = 3; - return values; - })(); - - /** - * ActionType enum. - * @name google.analytics.admin.v1alpha.ActionType - * @enum {number} - * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value - * @property {number} CREATED=1 CREATED value - * @property {number} UPDATED=2 UPDATED value - * @property {number} DELETED=3 DELETED value - */ - v1alpha.ActionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATED"] = 1; - values[valuesById[2] = "UPDATED"] = 2; - values[valuesById[3] = "DELETED"] = 3; - return values; - })(); - - /** - * ChangeHistoryResourceType enum. - * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType - * @enum {number} - * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value - * @property {number} ACCOUNT=1 ACCOUNT value - * @property {number} PROPERTY=2 PROPERTY value - * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value - * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value - * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value - * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value - * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value - * @property {number} CUSTOM_DIMENSION=11 CUSTOM_DIMENSION value - * @property {number} CUSTOM_METRIC=12 CUSTOM_METRIC value - * @property {number} DATA_RETENTION_SETTINGS=13 DATA_RETENTION_SETTINGS value - * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK=14 DISPLAY_VIDEO_360_ADVERTISER_LINK value - * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL=15 DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL value - * @property {number} SEARCH_ADS_360_LINK=16 SEARCH_ADS_360_LINK value - * @property {number} DATA_STREAM=18 DATA_STREAM value - * @property {number} ATTRIBUTION_SETTINGS=20 ATTRIBUTION_SETTINGS value - */ - v1alpha.ChangeHistoryResourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACCOUNT"] = 1; - values[valuesById[2] = "PROPERTY"] = 2; - values[valuesById[6] = "FIREBASE_LINK"] = 6; - values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; - values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; - values[valuesById[9] = "CONVERSION_EVENT"] = 9; - values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; - values[valuesById[11] = "CUSTOM_DIMENSION"] = 11; - values[valuesById[12] = "CUSTOM_METRIC"] = 12; - values[valuesById[13] = "DATA_RETENTION_SETTINGS"] = 13; - values[valuesById[14] = "DISPLAY_VIDEO_360_ADVERTISER_LINK"] = 14; - values[valuesById[15] = "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL"] = 15; - values[valuesById[16] = "SEARCH_ADS_360_LINK"] = 16; - values[valuesById[18] = "DATA_STREAM"] = 18; - values[valuesById[20] = "ATTRIBUTION_SETTINGS"] = 20; - return values; - })(); - - /** - * GoogleSignalsState enum. - * @name google.analytics.admin.v1alpha.GoogleSignalsState - * @enum {number} - * @property {number} GOOGLE_SIGNALS_STATE_UNSPECIFIED=0 GOOGLE_SIGNALS_STATE_UNSPECIFIED value - * @property {number} GOOGLE_SIGNALS_ENABLED=1 GOOGLE_SIGNALS_ENABLED value - * @property {number} GOOGLE_SIGNALS_DISABLED=2 GOOGLE_SIGNALS_DISABLED value - */ - v1alpha.GoogleSignalsState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOOGLE_SIGNALS_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_SIGNALS_ENABLED"] = 1; - values[valuesById[2] = "GOOGLE_SIGNALS_DISABLED"] = 2; - return values; - })(); - - /** - * GoogleSignalsConsent enum. - * @name google.analytics.admin.v1alpha.GoogleSignalsConsent - * @enum {number} - * @property {number} GOOGLE_SIGNALS_CONSENT_UNSPECIFIED=0 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED value - * @property {number} GOOGLE_SIGNALS_CONSENT_CONSENTED=2 GOOGLE_SIGNALS_CONSENT_CONSENTED value - * @property {number} GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED=1 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED value - */ - v1alpha.GoogleSignalsConsent = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED"] = 0; - values[valuesById[2] = "GOOGLE_SIGNALS_CONSENT_CONSENTED"] = 2; - values[valuesById[1] = "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED"] = 1; - return values; - })(); - - /** - * LinkProposalInitiatingProduct enum. - * @name google.analytics.admin.v1alpha.LinkProposalInitiatingProduct - * @enum {number} - * @property {number} LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED=0 LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED value - * @property {number} GOOGLE_ANALYTICS=1 GOOGLE_ANALYTICS value - * @property {number} LINKED_PRODUCT=2 LINKED_PRODUCT value - */ - v1alpha.LinkProposalInitiatingProduct = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_ANALYTICS"] = 1; - values[valuesById[2] = "LINKED_PRODUCT"] = 2; - return values; - })(); - - /** - * LinkProposalState enum. - * @name google.analytics.admin.v1alpha.LinkProposalState - * @enum {number} - * @property {number} LINK_PROPOSAL_STATE_UNSPECIFIED=0 LINK_PROPOSAL_STATE_UNSPECIFIED value - * @property {number} AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS=1 AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS value - * @property {number} AWAITING_REVIEW_FROM_LINKED_PRODUCT=2 AWAITING_REVIEW_FROM_LINKED_PRODUCT value - * @property {number} WITHDRAWN=3 WITHDRAWN value - * @property {number} DECLINED=4 DECLINED value - * @property {number} EXPIRED=5 EXPIRED value - * @property {number} OBSOLETE=6 OBSOLETE value - */ - v1alpha.LinkProposalState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LINK_PROPOSAL_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS"] = 1; - values[valuesById[2] = "AWAITING_REVIEW_FROM_LINKED_PRODUCT"] = 2; - values[valuesById[3] = "WITHDRAWN"] = 3; - values[valuesById[4] = "DECLINED"] = 4; - values[valuesById[5] = "EXPIRED"] = 5; - values[valuesById[6] = "OBSOLETE"] = 6; - return values; - })(); - - /** - * PropertyType enum. - * @name google.analytics.admin.v1alpha.PropertyType - * @enum {number} - * @property {number} PROPERTY_TYPE_UNSPECIFIED=0 PROPERTY_TYPE_UNSPECIFIED value - * @property {number} PROPERTY_TYPE_ORDINARY=1 PROPERTY_TYPE_ORDINARY value - * @property {number} PROPERTY_TYPE_SUBPROPERTY=2 PROPERTY_TYPE_SUBPROPERTY value - * @property {number} PROPERTY_TYPE_ROLLUP=3 PROPERTY_TYPE_ROLLUP value + * @property {number} AUDIENCE_FILTER_SCOPE_UNSPECIFIED=0 AUDIENCE_FILTER_SCOPE_UNSPECIFIED value + * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT=1 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT value + * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION=2 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION value + * @property {number} AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS=3 AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS value */ - v1alpha.PropertyType = (function() { + v1alpha.AudienceFilterScope = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PROPERTY_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PROPERTY_TYPE_ORDINARY"] = 1; - values[valuesById[2] = "PROPERTY_TYPE_SUBPROPERTY"] = 2; - values[valuesById[3] = "PROPERTY_TYPE_ROLLUP"] = 3; + values[valuesById[0] = "AUDIENCE_FILTER_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT"] = 1; + values[valuesById[2] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION"] = 2; + values[valuesById[3] = "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS"] = 3; return values; })(); - v1alpha.Account = (function() { + v1alpha.AudienceDimensionOrMetricFilter = (function() { /** - * Properties of an Account. + * Properties of an AudienceDimensionOrMetricFilter. * @memberof google.analytics.admin.v1alpha - * @interface IAccount - * @property {string|null} [name] Account name - * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime - * @property {string|null} [displayName] Account displayName - * @property {string|null} [regionCode] Account regionCode - * @property {boolean|null} [deleted] Account deleted + * @interface IAudienceDimensionOrMetricFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null} [stringFilter] AudienceDimensionOrMetricFilter stringFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null} [inListFilter] AudienceDimensionOrMetricFilter inListFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null} [numericFilter] AudienceDimensionOrMetricFilter numericFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null} [betweenFilter] AudienceDimensionOrMetricFilter betweenFilter + * @property {string|null} [fieldName] AudienceDimensionOrMetricFilter fieldName + * @property {boolean|null} [atAnyPointInTime] AudienceDimensionOrMetricFilter atAnyPointInTime + * @property {number|null} [inAnyNDayPeriod] AudienceDimensionOrMetricFilter inAnyNDayPeriod */ /** - * Constructs a new Account. + * Constructs a new AudienceDimensionOrMetricFilter. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an Account. - * @implements IAccount + * @classdesc Represents an AudienceDimensionOrMetricFilter. + * @implements IAudienceDimensionOrMetricFilter * @constructor - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set */ - function Account(properties) { + function AudienceDimensionOrMetricFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36825,145 +35314,173 @@ } /** - * Account name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Account + * AudienceDimensionOrMetricFilter stringFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null|undefined} stringFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @instance */ - Account.prototype.name = ""; + AudienceDimensionOrMetricFilter.prototype.stringFilter = null; /** - * Account createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Account + * AudienceDimensionOrMetricFilter inListFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null|undefined} inListFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @instance */ - Account.prototype.createTime = null; + AudienceDimensionOrMetricFilter.prototype.inListFilter = null; /** - * Account updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Account + * AudienceDimensionOrMetricFilter numericFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null|undefined} numericFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @instance */ - Account.prototype.updateTime = null; + AudienceDimensionOrMetricFilter.prototype.numericFilter = null; /** - * Account displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Account + * AudienceDimensionOrMetricFilter betweenFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null|undefined} betweenFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @instance */ - Account.prototype.displayName = ""; + AudienceDimensionOrMetricFilter.prototype.betweenFilter = null; /** - * Account regionCode. - * @member {string} regionCode - * @memberof google.analytics.admin.v1alpha.Account + * AudienceDimensionOrMetricFilter fieldName. + * @member {string} fieldName + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @instance */ - Account.prototype.regionCode = ""; + AudienceDimensionOrMetricFilter.prototype.fieldName = ""; /** - * Account deleted. - * @member {boolean} deleted - * @memberof google.analytics.admin.v1alpha.Account + * AudienceDimensionOrMetricFilter atAnyPointInTime. + * @member {boolean} atAnyPointInTime + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @instance */ - Account.prototype.deleted = false; + AudienceDimensionOrMetricFilter.prototype.atAnyPointInTime = false; /** - * Creates a new Account instance using the specified properties. + * AudienceDimensionOrMetricFilter inAnyNDayPeriod. + * @member {number} inAnyNDayPeriod + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.inAnyNDayPeriod = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AudienceDimensionOrMetricFilter oneFilter. + * @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|undefined} oneFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + Object.defineProperty(AudienceDimensionOrMetricFilter.prototype, "oneFilter", { + get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @static - * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Account} Account instance + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter instance */ - Account.create = function create(properties) { - return new Account(properties); + AudienceDimensionOrMetricFilter.create = function create(properties) { + return new AudienceDimensionOrMetricFilter(properties); }; /** - * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encode = function encode(message, writer) { + AudienceDimensionOrMetricFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); - if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + if (message.stringFilter != null && Object.hasOwnProperty.call(message, "stringFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.encode(message.stringFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inListFilter != null && Object.hasOwnProperty.call(message, "inListFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.encode(message.inListFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.numericFilter != null && Object.hasOwnProperty.call(message, "numericFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.encode(message.numericFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.betweenFilter != null && Object.hasOwnProperty.call(message, "betweenFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.encode(message.betweenFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.atAnyPointInTime != null && Object.hasOwnProperty.call(message, "atAnyPointInTime")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.atAnyPointInTime); + if (message.inAnyNDayPeriod != null && Object.hasOwnProperty.call(message, "inAnyNDayPeriod")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.inAnyNDayPeriod); return writer; }; /** - * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. + * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @static - * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Account.encodeDelimited = function encodeDelimited(message, writer) { + AudienceDimensionOrMetricFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Account message from the specified reader or buffer. + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Account.decode = function decode(reader, length) { + AudienceDimensionOrMetricFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Account(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } case 2: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.decode(reader, reader.uint32()); break; } case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.decode(reader, reader.uint32()); break; } case 4: { - message.displayName = reader.string(); + message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.decode(reader, reader.uint32()); break; } case 5: { - message.regionCode = reader.string(); + message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.decode(reader, reader.uint32()); + break; + } + case 1: { + message.fieldName = reader.string(); break; } case 6: { - message.deleted = reader.bool(); + message.atAnyPointInTime = reader.bool(); + break; + } + case 7: { + message.inAnyNDayPeriod = reader.int32(); break; } default: @@ -36975,1322 +35492,1030 @@ }; /** - * Decodes an Account message from the specified reader or buffer, length delimited. + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Account.decodeDelimited = function decodeDelimited(reader) { + AudienceDimensionOrMetricFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Account message. + * Verifies an AudienceDimensionOrMetricFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Account.verify = function verify(message) { + AudienceDimensionOrMetricFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + var properties = {}; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify(message.stringFilter); + if (error) + return "stringFilter." + error; + } } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify(message.inListFilter); + if (error) + return "inListFilter." + error; + } } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - if (!$util.isString(message.regionCode)) - return "regionCode: string expected"; - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean expected"; + if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify(message.numericFilter); + if (error) + return "numericFilter." + error; + } + } + if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify(message.betweenFilter); + if (error) + return "betweenFilter." + error; + } + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; + if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) + if (typeof message.atAnyPointInTime !== "boolean") + return "atAnyPointInTime: boolean expected"; + if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) + if (!$util.isInteger(message.inAnyNDayPeriod)) + return "inAnyNDayPeriod: integer expected"; return null; }; /** - * Creates an Account message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Account} Account + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter */ - Account.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Account) + AudienceDimensionOrMetricFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.Account(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); + if (object.stringFilter != null) { + if (typeof object.stringFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.stringFilter: object expected"); + message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.fromObject(object.stringFilter); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.inListFilter != null) { + if (typeof object.inListFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.inListFilter: object expected"); + message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.fromObject(object.inListFilter); } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.regionCode != null) - message.regionCode = String(object.regionCode); - if (object.deleted != null) - message.deleted = Boolean(object.deleted); + if (object.numericFilter != null) { + if (typeof object.numericFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.numericFilter: object expected"); + message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.fromObject(object.numericFilter); + } + if (object.betweenFilter != null) { + if (typeof object.betweenFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.betweenFilter: object expected"); + message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.fromObject(object.betweenFilter); + } + if (object.fieldName != null) + message.fieldName = String(object.fieldName); + if (object.atAnyPointInTime != null) + message.atAnyPointInTime = Boolean(object.atAnyPointInTime); + if (object.inAnyNDayPeriod != null) + message.inAnyNDayPeriod = object.inAnyNDayPeriod | 0; return message; }; /** - * Creates a plain object from an Account message. Also converts values to other types if specified. + * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @static - * @param {google.analytics.admin.v1alpha.Account} message Account + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Account.toObject = function toObject(message, options) { + AudienceDimensionOrMetricFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.regionCode = ""; - object.deleted = false; + object.fieldName = ""; + object.atAnyPointInTime = false; + object.inAnyNDayPeriod = 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.regionCode != null && message.hasOwnProperty("regionCode")) - object.regionCode = message.regionCode; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + object.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.toObject(message.stringFilter, options); + if (options.oneofs) + object.oneFilter = "stringFilter"; + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + object.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.toObject(message.inListFilter, options); + if (options.oneofs) + object.oneFilter = "inListFilter"; + } + if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { + object.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.toObject(message.numericFilter, options); + if (options.oneofs) + object.oneFilter = "numericFilter"; + } + if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { + object.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.toObject(message.betweenFilter, options); + if (options.oneofs) + object.oneFilter = "betweenFilter"; + } + if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) + object.atAnyPointInTime = message.atAnyPointInTime; + if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) + object.inAnyNDayPeriod = message.inAnyNDayPeriod; return object; }; /** - * Converts this Account to JSON. + * Converts this AudienceDimensionOrMetricFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @instance * @returns {Object.} JSON object */ - Account.prototype.toJSON = function toJSON() { + AudienceDimensionOrMetricFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Account + * Gets the default type url for AudienceDimensionOrMetricFilter * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.Account + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Account.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceDimensionOrMetricFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.Account"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter"; }; - return Account; - })(); - - v1alpha.Property = (function() { + AudienceDimensionOrMetricFilter.StringFilter = (function() { - /** - * Properties of a Property. - * @memberof google.analytics.admin.v1alpha - * @interface IProperty - * @property {string|null} [name] Property name - * @property {google.analytics.admin.v1alpha.PropertyType|null} [propertyType] Property propertyType - * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime - * @property {string|null} [parent] Property parent - * @property {string|null} [displayName] Property displayName - * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory - * @property {string|null} [timeZone] Property timeZone - * @property {string|null} [currencyCode] Property currencyCode - * @property {google.analytics.admin.v1alpha.ServiceLevel|null} [serviceLevel] Property serviceLevel - * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime - * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime - * @property {string|null} [account] Property account - */ + /** + * Properties of a StringFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface IStringFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null} [matchType] StringFilter matchType + * @property {string|null} [value] StringFilter value + * @property {boolean|null} [caseSensitive] StringFilter caseSensitive + */ - /** - * Constructs a new Property. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a Property. - * @implements IProperty - * @constructor - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set - */ - function Property(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]]; - } + /** + * Constructs a new StringFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a StringFilter. + * @implements IStringFilter + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set + */ + function StringFilter(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]]; + } - /** - * Property name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.name = ""; + /** + * StringFilter matchType. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType} matchType + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + */ + StringFilter.prototype.matchType = 0; - /** - * Property propertyType. - * @member {google.analytics.admin.v1alpha.PropertyType} propertyType - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.propertyType = 0; + /** + * StringFilter value. + * @member {string} value + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + */ + StringFilter.prototype.value = ""; - /** - * Property createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.createTime = null; + /** + * StringFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + */ + StringFilter.prototype.caseSensitive = false; - /** - * Property updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.updateTime = null; + /** + * Creates a new StringFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter instance + */ + StringFilter.create = function create(properties) { + return new StringFilter(properties); + }; - /** - * Property parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.parent = ""; + /** + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.matchType); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.caseSensitive); + return writer; + }; - /** - * Property displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.displayName = ""; + /** + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Property industryCategory. - * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.industryCategory = 0; + /** + * Decodes a StringFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.matchType = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + case 3: { + message.caseSensitive = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Property timeZone. - * @member {string} timeZone - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.timeZone = ""; + /** + * Decodes a StringFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Property currencyCode. - * @member {string} currencyCode - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.currencyCode = ""; + /** + * Verifies a StringFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; - /** - * Property serviceLevel. - * @member {google.analytics.admin.v1alpha.ServiceLevel} serviceLevel - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.serviceLevel = 0; + /** + * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter + */ + StringFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); + switch (object.matchType) { + default: + if (typeof object.matchType === "number") { + message.matchType = object.matchType; + break; + } + break; + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "EXACT": + case 1: + message.matchType = 1; + break; + case "BEGINS_WITH": + case 2: + message.matchType = 2; + break; + case "ENDS_WITH": + case 3: + message.matchType = 3; + break; + case "CONTAINS": + case 4: + message.matchType = 4; + break; + case "FULL_REGEXP": + case 5: + message.matchType = 5; + break; + } + if (object.value != null) + message.value = String(object.value); + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; - /** - * Property deleteTime. - * @member {google.protobuf.ITimestamp|null|undefined} deleteTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.deleteTime = null; + /** + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} message StringFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StringFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.value = ""; + object.caseSensitive = false; + } + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] === undefined ? message.matchType : $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] : message.matchType; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; - /** - * Property expireTime. - * @member {google.protobuf.ITimestamp|null|undefined} expireTime - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.expireTime = null; + /** + * Converts this StringFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + * @returns {Object.} JSON object + */ + StringFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Property account. - * @member {string} account - * @memberof google.analytics.admin.v1alpha.Property - * @instance - */ - Property.prototype.account = ""; + /** + * Gets the default type url for StringFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StringFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter"; + }; - /** - * Creates a new Property instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Property} Property instance - */ - Property.create = function create(properties) { - return new Property(properties); - }; + /** + * MatchType enum. + * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} EXACT=1 EXACT value + * @property {number} BEGINS_WITH=2 BEGINS_WITH value + * @property {number} ENDS_WITH=3 ENDS_WITH value + * @property {number} CONTAINS=4 CONTAINS value + * @property {number} FULL_REGEXP=5 FULL_REGEXP value + */ + StringFilter.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXACT"] = 1; + values[valuesById[2] = "BEGINS_WITH"] = 2; + values[valuesById[3] = "ENDS_WITH"] = 3; + values[valuesById[4] = "CONTAINS"] = 4; + values[valuesById[5] = "FULL_REGEXP"] = 5; + return values; + })(); - /** - * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Property.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); - if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); - if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); - if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.serviceLevel); - if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) - $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.account); - if (message.propertyType != null && Object.hasOwnProperty.call(message, "propertyType")) - writer.uint32(/* id 14, wireType 0 =*/112).int32(message.propertyType); - return writer; - }; + return StringFilter; + })(); - /** - * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Property.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + AudienceDimensionOrMetricFilter.InListFilter = (function() { - /** - * Decodes a Property message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Property} Property - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Property.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Property(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 14: { - message.propertyType = reader.int32(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.parent = reader.string(); - break; - } - case 5: { - message.displayName = reader.string(); - break; - } - case 6: { - message.industryCategory = reader.int32(); - break; - } - case 7: { - message.timeZone = reader.string(); - break; - } - case 8: { - message.currencyCode = reader.string(); - break; - } - case 10: { - message.serviceLevel = reader.int32(); - break; - } - case 11: { - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 12: { - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.account = reader.string(); + /** + * Properties of an InListFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface IInListFilter + * @property {Array.|null} [values] InListFilter values + * @property {boolean|null} [caseSensitive] InListFilter caseSensitive + */ + + /** + * Constructs a new InListFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents an InListFilter. + * @implements IInListFilter + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set + */ + function InListFilter(properties) { + this.values = []; + 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]]; + } + + /** + * InListFilter values. + * @member {Array.} values + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @instance + */ + InListFilter.prototype.values = $util.emptyArray; + + /** + * InListFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @instance + */ + InListFilter.prototype.caseSensitive = false; + + /** + * Creates a new InListFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter instance + */ + InListFilter.create = function create(properties) { + return new InListFilter(properties); + }; + + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.caseSensitive); + return writer; + }; + + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + case 2: { + message.caseSensitive = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Property message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Property} Property - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Property.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Property message. - * @function verify - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Property.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.propertyType != null && message.hasOwnProperty("propertyType")) - switch (message.propertyType) { - default: - return "propertyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - switch (message.industryCategory) { - default: - return "industryCategory: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - break; + /** + * Verifies an InListFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InListFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - if (!$util.isString(message.currencyCode)) - return "currencyCode: string expected"; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - switch (message.serviceLevel) { - default: - return "serviceLevel: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; + + /** + * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter + */ + InListFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); } - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); - if (error) - return "deleteTime." + error; - } - if (message.expireTime != null && message.hasOwnProperty("expireTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.expireTime); - if (error) - return "expireTime." + error; - } - if (message.account != null && message.hasOwnProperty("account")) - if (!$util.isString(message.account)) - return "account: string expected"; - return null; - }; + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; - /** - * Creates a Property message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Property} Property - */ - Property.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Property) - return object; - var message = new $root.google.analytics.admin.v1alpha.Property(); - if (object.name != null) - message.name = String(object.name); - switch (object.propertyType) { - default: - if (typeof object.propertyType === "number") { - message.propertyType = object.propertyType; - break; + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} message InListFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InListFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (options.defaults) + object.caseSensitive = false; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; } - break; - case "PROPERTY_TYPE_UNSPECIFIED": - case 0: - message.propertyType = 0; - break; - case "PROPERTY_TYPE_ORDINARY": - case 1: - message.propertyType = 1; - break; - case "PROPERTY_TYPE_SUBPROPERTY": - case 2: - message.propertyType = 2; - break; - case "PROPERTY_TYPE_ROLLUP": - case 3: - message.propertyType = 3; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.parent != null) - message.parent = String(object.parent); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.industryCategory) { - default: - if (typeof object.industryCategory === "number") { - message.industryCategory = object.industryCategory; - break; - } - break; - case "INDUSTRY_CATEGORY_UNSPECIFIED": - case 0: - message.industryCategory = 0; - break; - case "AUTOMOTIVE": - case 1: - message.industryCategory = 1; - break; - case "BUSINESS_AND_INDUSTRIAL_MARKETS": - case 2: - message.industryCategory = 2; - break; - case "FINANCE": - case 3: - message.industryCategory = 3; - break; - case "HEALTHCARE": - case 4: - message.industryCategory = 4; - break; - case "TECHNOLOGY": - case 5: - message.industryCategory = 5; - break; - case "TRAVEL": - case 6: - message.industryCategory = 6; - break; - case "OTHER": - case 7: - message.industryCategory = 7; - break; - case "ARTS_AND_ENTERTAINMENT": - case 8: - message.industryCategory = 8; - break; - case "BEAUTY_AND_FITNESS": - case 9: - message.industryCategory = 9; - break; - case "BOOKS_AND_LITERATURE": - case 10: - message.industryCategory = 10; - break; - case "FOOD_AND_DRINK": - case 11: - message.industryCategory = 11; - break; - case "GAMES": - case 12: - message.industryCategory = 12; - break; - case "HOBBIES_AND_LEISURE": - case 13: - message.industryCategory = 13; - break; - case "HOME_AND_GARDEN": - case 14: - message.industryCategory = 14; - break; - case "INTERNET_AND_TELECOM": - case 15: - message.industryCategory = 15; - break; - case "LAW_AND_GOVERNMENT": - case 16: - message.industryCategory = 16; - break; - case "NEWS": - case 17: - message.industryCategory = 17; - break; - case "ONLINE_COMMUNITIES": - case 18: - message.industryCategory = 18; - break; - case "PEOPLE_AND_SOCIETY": - case 19: - message.industryCategory = 19; - break; - case "PETS_AND_ANIMALS": - case 20: - message.industryCategory = 20; - break; - case "REAL_ESTATE": - case 21: - message.industryCategory = 21; - break; - case "REFERENCE": - case 22: - message.industryCategory = 22; - break; - case "SCIENCE": - case 23: - message.industryCategory = 23; - break; - case "SPORTS": - case 24: - message.industryCategory = 24; - break; - case "JOBS_AND_EDUCATION": - case 25: - message.industryCategory = 25; - break; - case "SHOPPING": - case 26: - message.industryCategory = 26; - break; - } - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.currencyCode != null) - message.currencyCode = String(object.currencyCode); - switch (object.serviceLevel) { - default: - if (typeof object.serviceLevel === "number") { - message.serviceLevel = object.serviceLevel; - break; - } - break; - case "SERVICE_LEVEL_UNSPECIFIED": - case 0: - message.serviceLevel = 0; - break; - case "GOOGLE_ANALYTICS_STANDARD": - case 1: - message.serviceLevel = 1; - break; - case "GOOGLE_ANALYTICS_360": - case 2: - message.serviceLevel = 2; - break; - } - if (object.deleteTime != null) { - if (typeof object.deleteTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); - message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); - } - if (object.expireTime != null) { - if (typeof object.expireTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); - message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); - } - if (object.account != null) - message.account = String(object.account); - return message; - }; - - /** - * Creates a plain object from a Property message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {google.analytics.admin.v1alpha.Property} message Property - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Property.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.parent = ""; - object.createTime = null; - object.updateTime = null; - object.displayName = ""; - object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; - object.timeZone = ""; - object.currencyCode = ""; - object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; - object.deleteTime = null; - object.expireTime = null; - object.account = ""; - object.propertyType = options.enums === String ? "PROPERTY_TYPE_UNSPECIFIED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) - object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] === undefined ? message.industryCategory : $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) - object.currencyCode = message.currencyCode; - if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) - object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] === undefined ? message.serviceLevel : $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] : message.serviceLevel; - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) - object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); - if (message.account != null && message.hasOwnProperty("account")) - object.account = message.account; - if (message.propertyType != null && message.hasOwnProperty("propertyType")) - object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] === undefined ? message.propertyType : $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; - return object; - }; - - /** - * Converts this Property to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.Property - * @instance - * @returns {Object.} JSON object - */ - Property.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; - /** - * Gets the default type url for Property - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.Property - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Property.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.Property"; - }; + /** + * Converts this InListFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @instance + * @returns {Object.} JSON object + */ + InListFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Property; - })(); + /** + * Gets the default type url for InListFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InListFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter"; + }; - v1alpha.DataStream = (function() { + return InListFilter; + })(); - /** - * Properties of a DataStream. - * @memberof google.analytics.admin.v1alpha - * @interface IDataStream - * @property {google.analytics.admin.v1alpha.DataStream.IWebStreamData|null} [webStreamData] DataStream webStreamData - * @property {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null} [androidAppStreamData] DataStream androidAppStreamData - * @property {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null} [iosAppStreamData] DataStream iosAppStreamData - * @property {string|null} [name] DataStream name - * @property {google.analytics.admin.v1alpha.DataStream.DataStreamType|null} [type] DataStream type - * @property {string|null} [displayName] DataStream displayName - * @property {google.protobuf.ITimestamp|null} [createTime] DataStream createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] DataStream updateTime - */ + AudienceDimensionOrMetricFilter.NumericValue = (function() { - /** - * Constructs a new DataStream. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DataStream. - * @implements IDataStream - * @constructor - * @param {google.analytics.admin.v1alpha.IDataStream=} [properties] Properties to set - */ - function DataStream(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]]; - } + /** + * Properties of a NumericValue. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface INumericValue + * @property {number|Long|null} [int64Value] NumericValue int64Value + * @property {number|null} [doubleValue] NumericValue doubleValue + */ - /** - * DataStream webStreamData. - * @member {google.analytics.admin.v1alpha.DataStream.IWebStreamData|null|undefined} webStreamData - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - */ - DataStream.prototype.webStreamData = null; + /** + * Constructs a new NumericValue. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a NumericValue. + * @implements INumericValue + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue=} [properties] Properties to set + */ + function NumericValue(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]]; + } - /** - * DataStream androidAppStreamData. - * @member {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null|undefined} androidAppStreamData - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - */ - DataStream.prototype.androidAppStreamData = null; + /** + * NumericValue int64Value. + * @member {number|Long|null|undefined} int64Value + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + */ + NumericValue.prototype.int64Value = null; - /** - * DataStream iosAppStreamData. - * @member {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null|undefined} iosAppStreamData - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - */ - DataStream.prototype.iosAppStreamData = null; + /** + * NumericValue doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + */ + NumericValue.prototype.doubleValue = null; - /** - * DataStream name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - */ - DataStream.prototype.name = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * DataStream type. - * @member {google.analytics.admin.v1alpha.DataStream.DataStreamType} type - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - */ - DataStream.prototype.type = 0; + /** + * NumericValue oneValue. + * @member {"int64Value"|"doubleValue"|undefined} oneValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + */ + Object.defineProperty(NumericValue.prototype, "oneValue", { + get: $util.oneOfGetter($oneOfFields = ["int64Value", "doubleValue"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * DataStream displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - */ - DataStream.prototype.displayName = ""; + /** + * Creates a new NumericValue instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue instance + */ + NumericValue.create = function create(properties) { + return new NumericValue(properties); + }; - /** - * DataStream createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - */ - DataStream.prototype.createTime = null; + /** + * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue} message NumericValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.int64Value != null && Object.hasOwnProperty.call(message, "int64Value")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.int64Value); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + return writer; + }; - /** - * DataStream updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - */ - DataStream.prototype.updateTime = null; + /** + * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue} message NumericValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Decodes a NumericValue message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.int64Value = reader.int64(); + break; + } + case 2: { + message.doubleValue = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * DataStream streamData. - * @member {"webStreamData"|"androidAppStreamData"|"iosAppStreamData"|undefined} streamData - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - */ - Object.defineProperty(DataStream.prototype, "streamData", { - get: $util.oneOfGetter($oneOfFields = ["webStreamData", "androidAppStreamData", "iosAppStreamData"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Decodes a NumericValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new DataStream instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.DataStream - * @static - * @param {google.analytics.admin.v1alpha.IDataStream=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataStream} DataStream instance - */ - DataStream.create = function create(properties) { - return new DataStream(properties); - }; - - /** - * Encodes the specified DataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.DataStream - * @static - * @param {google.analytics.admin.v1alpha.IDataStream} message DataStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataStream.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.webStreamData != null && Object.hasOwnProperty.call(message, "webStreamData")) - $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.encode(message.webStreamData, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.androidAppStreamData != null && Object.hasOwnProperty.call(message, "androidAppStreamData")) - $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.encode(message.androidAppStreamData, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.iosAppStreamData != null && Object.hasOwnProperty.call(message, "iosAppStreamData")) - $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.encode(message.iosAppStreamData, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified DataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataStream - * @static - * @param {google.analytics.admin.v1alpha.IDataStream} message DataStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataStream.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DataStream message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.DataStream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataStream} DataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataStream.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataStream(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 6: { - message.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.decode(reader, reader.uint32()); - break; - } - case 7: { - message.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.decode(reader, reader.uint32()); - break; - } - case 8: { - message.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.decode(reader, reader.uint32()); - break; - } - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.type = reader.int32(); - break; - } - case 3: { - message.displayName = reader.string(); - break; - } - case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; + /** + * Verifies a NumericValue message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NumericValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + properties.oneValue = 1; + if (!$util.isInteger(message.int64Value) && !(message.int64Value && $util.isInteger(message.int64Value.low) && $util.isInteger(message.int64Value.high))) + return "int64Value: integer|Long expected"; } - } - return message; - }; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.oneValue === 1) + return "oneValue: multiple values"; + properties.oneValue = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + } + return null; + }; - /** - * Decodes a DataStream message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataStream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataStream} DataStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataStream.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a NumericValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} NumericValue + */ + NumericValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(); + if (object.int64Value != null) + if ($util.Long) + (message.int64Value = $util.Long.fromValue(object.int64Value)).unsigned = false; + else if (typeof object.int64Value === "string") + message.int64Value = parseInt(object.int64Value, 10); + else if (typeof object.int64Value === "number") + message.int64Value = object.int64Value; + else if (typeof object.int64Value === "object") + message.int64Value = new $util.LongBits(object.int64Value.low >>> 0, object.int64Value.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + return message; + }; - /** - * Verifies a DataStream message. - * @function verify - * @memberof google.analytics.admin.v1alpha.DataStream - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataStream.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.webStreamData != null && message.hasOwnProperty("webStreamData")) { - properties.streamData = 1; - { - var error = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.verify(message.webStreamData); - if (error) - return "webStreamData." + error; - } - } - if (message.androidAppStreamData != null && message.hasOwnProperty("androidAppStreamData")) { - if (properties.streamData === 1) - return "streamData: multiple values"; - properties.streamData = 1; - { - var error = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify(message.androidAppStreamData); - if (error) - return "androidAppStreamData." + error; - } - } - if (message.iosAppStreamData != null && message.hasOwnProperty("iosAppStreamData")) { - if (properties.streamData === 1) - return "streamData: multiple values"; - properties.streamData = 1; - { - var error = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify(message.iosAppStreamData); - if (error) - return "iosAppStreamData." + error; + /** + * Creates a plain object from a NumericValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} message NumericValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NumericValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + if (typeof message.int64Value === "number") + object.int64Value = options.longs === String ? String(message.int64Value) : message.int64Value; + else + object.int64Value = options.longs === String ? $util.Long.prototype.toString.call(message.int64Value) : options.longs === Number ? new $util.LongBits(message.int64Value.low >>> 0, message.int64Value.high >>> 0).toNumber() : message.int64Value; + if (options.oneofs) + object.oneValue = "int64Value"; } - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.oneValue = "doubleValue"; } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - return null; - }; - - /** - * Creates a DataStream message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataStream - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataStream} DataStream - */ - DataStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataStream) return object; - var message = new $root.google.analytics.admin.v1alpha.DataStream(); - if (object.webStreamData != null) { - if (typeof object.webStreamData !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DataStream.webStreamData: object expected"); - message.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.fromObject(object.webStreamData); - } - if (object.androidAppStreamData != null) { - if (typeof object.androidAppStreamData !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DataStream.androidAppStreamData: object expected"); - message.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.fromObject(object.androidAppStreamData); - } - if (object.iosAppStreamData != null) { - if (typeof object.iosAppStreamData !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DataStream.iosAppStreamData: object expected"); - message.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.fromObject(object.iosAppStreamData); - } - if (object.name != null) - message.name = String(object.name); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "DATA_STREAM_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "WEB_DATA_STREAM": - case 1: - message.type = 1; - break; - case "ANDROID_APP_DATA_STREAM": - case 2: - message.type = 2; - break; - case "IOS_APP_DATA_STREAM": - case 3: - message.type = 3; - break; - } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DataStream.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DataStream.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - return message; - }; + }; - /** - * Creates a plain object from a DataStream message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.DataStream - * @static - * @param {google.analytics.admin.v1alpha.DataStream} message DataStream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataStream.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.type = options.enums === String ? "DATA_STREAM_TYPE_UNSPECIFIED" : 0; - object.displayName = ""; - object.createTime = null; - object.updateTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.analytics.admin.v1alpha.DataStream.DataStreamType[message.type] === undefined ? message.type : $root.google.analytics.admin.v1alpha.DataStream.DataStreamType[message.type] : message.type; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.webStreamData != null && message.hasOwnProperty("webStreamData")) { - object.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.toObject(message.webStreamData, options); - if (options.oneofs) - object.streamData = "webStreamData"; - } - if (message.androidAppStreamData != null && message.hasOwnProperty("androidAppStreamData")) { - object.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.toObject(message.androidAppStreamData, options); - if (options.oneofs) - object.streamData = "androidAppStreamData"; - } - if (message.iosAppStreamData != null && message.hasOwnProperty("iosAppStreamData")) { - object.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.toObject(message.iosAppStreamData, options); - if (options.oneofs) - object.streamData = "iosAppStreamData"; - } - return object; - }; + /** + * Converts this NumericValue to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + * @returns {Object.} JSON object + */ + NumericValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DataStream to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataStream - * @instance - * @returns {Object.} JSON object - */ - DataStream.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for NumericValue + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NumericValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue"; + }; - /** - * Gets the default type url for DataStream - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.DataStream - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DataStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream"; - }; + return NumericValue; + })(); - DataStream.WebStreamData = (function() { + AudienceDimensionOrMetricFilter.NumericFilter = (function() { /** - * Properties of a WebStreamData. - * @memberof google.analytics.admin.v1alpha.DataStream - * @interface IWebStreamData - * @property {string|null} [measurementId] WebStreamData measurementId - * @property {string|null} [firebaseAppId] WebStreamData firebaseAppId - * @property {string|null} [defaultUri] WebStreamData defaultUri + * Properties of a NumericFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface INumericFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|null} [operation] NumericFilter operation + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null} [value] NumericFilter value */ /** - * Constructs a new WebStreamData. - * @memberof google.analytics.admin.v1alpha.DataStream - * @classdesc Represents a WebStreamData. - * @implements IWebStreamData + * Constructs a new NumericFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a NumericFilter. + * @implements INumericFilter * @constructor - * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter=} [properties] Properties to set */ - function WebStreamData(properties) { + function NumericFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38298,103 +36523,89 @@ } /** - * WebStreamData measurementId. - * @member {string} measurementId - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData - * @instance - */ - WebStreamData.prototype.measurementId = ""; - - /** - * WebStreamData firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * NumericFilter operation. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation} operation + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @instance */ - WebStreamData.prototype.firebaseAppId = ""; + NumericFilter.prototype.operation = 0; /** - * WebStreamData defaultUri. - * @member {string} defaultUri - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * NumericFilter value. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null|undefined} value + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @instance */ - WebStreamData.prototype.defaultUri = ""; + NumericFilter.prototype.value = null; /** - * Creates a new WebStreamData instance using the specified properties. + * Creates a new NumericFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @static - * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData instance + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter instance */ - WebStreamData.create = function create(properties) { - return new WebStreamData(properties); + NumericFilter.create = function create(properties) { + return new NumericFilter(properties); }; /** - * Encodes the specified WebStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. + * Encodes the specified NumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @static - * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData} message WebStreamData message or plain object to encode + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter} message NumericFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebStreamData.encode = function encode(message, writer) { + NumericFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.measurementId); - if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); - if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultUri); + if (message.operation != null && Object.hasOwnProperty.call(message, "operation")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operation); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified WebStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. + * Encodes the specified NumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @static - * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData} message WebStreamData message or plain object to encode + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter} message NumericFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebStreamData.encodeDelimited = function encodeDelimited(message, writer) { + NumericFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebStreamData message from the specified reader or buffer. + * Decodes a NumericFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebStreamData.decode = function decode(reader, length) { + NumericFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataStream.WebStreamData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.measurementId = reader.string(); + message.operation = reader.int32(); break; } case 2: { - message.firebaseAppId = reader.string(); - break; - } - case 3: { - message.defaultUri = reader.string(); + message.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); break; } default: @@ -38406,140 +36617,184 @@ }; /** - * Decodes a WebStreamData message from the specified reader or buffer, length delimited. + * Decodes a NumericFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebStreamData.decodeDelimited = function decodeDelimited(reader) { + NumericFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebStreamData message. + * Verifies a NumericFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebStreamData.verify = function verify(message) { + NumericFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.measurementId != null && message.hasOwnProperty("measurementId")) - if (!$util.isString(message.measurementId)) - return "measurementId: string expected"; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - if (!$util.isString(message.defaultUri)) - return "defaultUri: string expected"; + if (message.operation != null && message.hasOwnProperty("operation")) + switch (message.operation) { + default: + return "operation: enum value expected"; + case 0: + case 1: + case 2: + case 4: + break; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify(message.value); + if (error) + return "value." + error; + } return null; }; /** - * Creates a WebStreamData message from a plain object. Also converts values to their respective internal types. + * Creates a NumericFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} NumericFilter */ - WebStreamData.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataStream.WebStreamData) + NumericFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.DataStream.WebStreamData(); - if (object.measurementId != null) - message.measurementId = String(object.measurementId); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.defaultUri != null) - message.defaultUri = String(object.defaultUri); + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); + switch (object.operation) { + default: + if (typeof object.operation === "number") { + message.operation = object.operation; + break; + } + break; + case "OPERATION_UNSPECIFIED": + case 0: + message.operation = 0; + break; + case "EQUAL": + case 1: + message.operation = 1; + break; + case "LESS_THAN": + case 2: + message.operation = 2; + break; + case "GREATER_THAN": + case 4: + message.operation = 4; + break; + } + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.value: object expected"); + message.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.fromObject(object.value); + } return message; }; /** - * Creates a plain object from a WebStreamData message. Also converts values to other types if specified. + * Creates a plain object from a NumericFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @static - * @param {google.analytics.admin.v1alpha.DataStream.WebStreamData} message WebStreamData + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} message NumericFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebStreamData.toObject = function toObject(message, options) { + NumericFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.measurementId = ""; - object.firebaseAppId = ""; - object.defaultUri = ""; + object.operation = options.enums === String ? "OPERATION_UNSPECIFIED" : 0; + object.value = null; } - if (message.measurementId != null && message.hasOwnProperty("measurementId")) - object.measurementId = message.measurementId; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) - object.defaultUri = message.defaultUri; + if (message.operation != null && message.hasOwnProperty("operation")) + object.operation = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation[message.operation] === undefined ? message.operation : $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation[message.operation] : message.operation; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.value, options); return object; }; /** - * Converts this WebStreamData to JSON. + * Converts this NumericFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @instance * @returns {Object.} JSON object */ - WebStreamData.prototype.toJSON = function toJSON() { + NumericFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WebStreamData + * Gets the default type url for NumericFilter * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WebStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NumericFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream.WebStreamData"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter"; }; - return WebStreamData; + /** + * Operation enum. + * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + * @enum {number} + * @property {number} OPERATION_UNSPECIFIED=0 OPERATION_UNSPECIFIED value + * @property {number} EQUAL=1 EQUAL value + * @property {number} LESS_THAN=2 LESS_THAN value + * @property {number} GREATER_THAN=4 GREATER_THAN value + */ + NumericFilter.Operation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OPERATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "EQUAL"] = 1; + values[valuesById[2] = "LESS_THAN"] = 2; + values[valuesById[4] = "GREATER_THAN"] = 4; + return values; + })(); + + return NumericFilter; })(); - DataStream.AndroidAppStreamData = (function() { + AudienceDimensionOrMetricFilter.BetweenFilter = (function() { /** - * Properties of an AndroidAppStreamData. - * @memberof google.analytics.admin.v1alpha.DataStream - * @interface IAndroidAppStreamData - * @property {string|null} [firebaseAppId] AndroidAppStreamData firebaseAppId - * @property {string|null} [packageName] AndroidAppStreamData packageName + * Properties of a BetweenFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface IBetweenFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null} [fromValue] BetweenFilter fromValue + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null} [toValue] BetweenFilter toValue */ /** - * Constructs a new AndroidAppStreamData. - * @memberof google.analytics.admin.v1alpha.DataStream - * @classdesc Represents an AndroidAppStreamData. - * @implements IAndroidAppStreamData + * Constructs a new BetweenFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a BetweenFilter. + * @implements IBetweenFilter * @constructor - * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter=} [properties] Properties to set */ - function AndroidAppStreamData(properties) { + function BetweenFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38547,89 +36802,89 @@ } /** - * AndroidAppStreamData firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * BetweenFilter fromValue. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null|undefined} fromValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @instance */ - AndroidAppStreamData.prototype.firebaseAppId = ""; + BetweenFilter.prototype.fromValue = null; /** - * AndroidAppStreamData packageName. - * @member {string} packageName - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * BetweenFilter toValue. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null|undefined} toValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @instance */ - AndroidAppStreamData.prototype.packageName = ""; + BetweenFilter.prototype.toValue = null; /** - * Creates a new AndroidAppStreamData instance using the specified properties. + * Creates a new BetweenFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @static - * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData instance + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter instance */ - AndroidAppStreamData.create = function create(properties) { - return new AndroidAppStreamData(properties); + BetweenFilter.create = function create(properties) { + return new BetweenFilter(properties); }; /** - * Encodes the specified AndroidAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * Encodes the specified BetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @static - * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData} message AndroidAppStreamData message or plain object to encode + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter} message BetweenFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppStreamData.encode = function encode(message, writer) { + BetweenFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.firebaseAppId); - if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.packageName); + if (message.fromValue != null && Object.hasOwnProperty.call(message, "fromValue")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.encode(message.fromValue, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.toValue != null && Object.hasOwnProperty.call(message, "toValue")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.encode(message.toValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified AndroidAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * Encodes the specified BetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @static - * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData} message AndroidAppStreamData message or plain object to encode + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter} message BetweenFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AndroidAppStreamData.encodeDelimited = function encodeDelimited(message, writer) { + BetweenFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AndroidAppStreamData message from the specified reader or buffer. + * Decodes a BetweenFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppStreamData.decode = function decode(reader, length) { + BetweenFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.firebaseAppId = reader.string(); + message.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); break; } case 2: { - message.packageName = reader.string(); + message.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.decode(reader, reader.uint32()); break; } default: @@ -38641,489 +36896,235 @@ }; /** - * Decodes an AndroidAppStreamData message from the specified reader or buffer, length delimited. + * Decodes a BetweenFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AndroidAppStreamData.decodeDelimited = function decodeDelimited(reader) { + BetweenFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AndroidAppStreamData message. + * Verifies a BetweenFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AndroidAppStreamData.verify = function verify(message) { + BetweenFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.packageName != null && message.hasOwnProperty("packageName")) - if (!$util.isString(message.packageName)) - return "packageName: string expected"; + if (message.fromValue != null && message.hasOwnProperty("fromValue")) { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify(message.fromValue); + if (error) + return "fromValue." + error; + } + if (message.toValue != null && message.hasOwnProperty("toValue")) { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify(message.toValue); + if (error) + return "toValue." + error; + } return null; }; /** - * Creates an AndroidAppStreamData message from a plain object. Also converts values to their respective internal types. + * Creates a BetweenFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} BetweenFilter */ - AndroidAppStreamData.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + BetweenFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.packageName != null) - message.packageName = String(object.packageName); + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(); + if (object.fromValue != null) { + if (typeof object.fromValue !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.fromValue: object expected"); + message.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.fromObject(object.fromValue); + } + if (object.toValue != null) { + if (typeof object.toValue !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.toValue: object expected"); + message.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.fromObject(object.toValue); + } return message; }; /** - * Creates a plain object from an AndroidAppStreamData message. Also converts values to other types if specified. + * Creates a plain object from a BetweenFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @static - * @param {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} message AndroidAppStreamData + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} message BetweenFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AndroidAppStreamData.toObject = function toObject(message, options) { + BetweenFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.firebaseAppId = ""; - object.packageName = ""; + object.fromValue = null; + object.toValue = null; } - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.packageName != null && message.hasOwnProperty("packageName")) - object.packageName = message.packageName; + if (message.fromValue != null && message.hasOwnProperty("fromValue")) + object.fromValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.fromValue, options); + if (message.toValue != null && message.hasOwnProperty("toValue")) + object.toValue = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.toObject(message.toValue, options); return object; }; /** - * Converts this AndroidAppStreamData to JSON. + * Converts this BetweenFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @instance * @returns {Object.} JSON object */ - AndroidAppStreamData.prototype.toJSON = function toJSON() { + BetweenFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AndroidAppStreamData + * Gets the default type url for BetweenFilter * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AndroidAppStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BetweenFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter"; }; - return AndroidAppStreamData; + return BetweenFilter; })(); - DataStream.IosAppStreamData = (function() { + return AudienceDimensionOrMetricFilter; + })(); - /** - * Properties of an IosAppStreamData. - * @memberof google.analytics.admin.v1alpha.DataStream - * @interface IIosAppStreamData - * @property {string|null} [firebaseAppId] IosAppStreamData firebaseAppId - * @property {string|null} [bundleId] IosAppStreamData bundleId - */ + v1alpha.AudienceEventFilter = (function() { - /** - * Constructs a new IosAppStreamData. - * @memberof google.analytics.admin.v1alpha.DataStream - * @classdesc Represents an IosAppStreamData. - * @implements IIosAppStreamData - * @constructor - * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData=} [properties] Properties to set - */ - function IosAppStreamData(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]]; - } + /** + * Properties of an AudienceEventFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAudienceEventFilter + * @property {string|null} [eventName] AudienceEventFilter eventName + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [eventParameterFilterExpression] AudienceEventFilter eventParameterFilterExpression + */ - /** - * IosAppStreamData firebaseAppId. - * @member {string} firebaseAppId - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @instance - */ - IosAppStreamData.prototype.firebaseAppId = ""; + /** + * Constructs a new AudienceEventFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AudienceEventFilter. + * @implements IAudienceEventFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAudienceEventFilter=} [properties] Properties to set + */ + function AudienceEventFilter(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]]; + } - /** - * IosAppStreamData bundleId. - * @member {string} bundleId - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @instance - */ - IosAppStreamData.prototype.bundleId = ""; + /** + * AudienceEventFilter eventName. + * @member {string} eventName + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @instance + */ + AudienceEventFilter.prototype.eventName = ""; - /** - * Creates a new IosAppStreamData instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @static - * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData instance - */ - IosAppStreamData.create = function create(properties) { - return new IosAppStreamData(properties); - }; + /** + * AudienceEventFilter eventParameterFilterExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} eventParameterFilterExpression + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @instance + */ + AudienceEventFilter.prototype.eventParameterFilterExpression = null; - /** - * Encodes the specified IosAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @static - * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData} message IosAppStreamData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IosAppStreamData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.firebaseAppId); - if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.bundleId); - return writer; - }; + /** + * Creates a new AudienceEventFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceEventFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter instance + */ + AudienceEventFilter.create = function create(properties) { + return new AudienceEventFilter(properties); + }; - /** - * Encodes the specified IosAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @static - * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData} message IosAppStreamData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IosAppStreamData.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an IosAppStreamData message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IosAppStreamData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.firebaseAppId = reader.string(); - break; - } - case 2: { - message.bundleId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an IosAppStreamData message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IosAppStreamData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IosAppStreamData message. - * @function verify - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IosAppStreamData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - if (!$util.isString(message.firebaseAppId)) - return "firebaseAppId: string expected"; - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - if (!$util.isString(message.bundleId)) - return "bundleId: string expected"; - return null; - }; - - /** - * Creates an IosAppStreamData message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData - */ - IosAppStreamData.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - return object; - var message = new $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(); - if (object.firebaseAppId != null) - message.firebaseAppId = String(object.firebaseAppId); - if (object.bundleId != null) - message.bundleId = String(object.bundleId); - return message; - }; - - /** - * Creates a plain object from an IosAppStreamData message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @static - * @param {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} message IosAppStreamData - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IosAppStreamData.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.firebaseAppId = ""; - object.bundleId = ""; - } - if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) - object.firebaseAppId = message.firebaseAppId; - if (message.bundleId != null && message.hasOwnProperty("bundleId")) - object.bundleId = message.bundleId; - return object; - }; - - /** - * Converts this IosAppStreamData to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @instance - * @returns {Object.} JSON object - */ - IosAppStreamData.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for IosAppStreamData - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IosAppStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream.IosAppStreamData"; - }; - - return IosAppStreamData; - })(); - - /** - * DataStreamType enum. - * @name google.analytics.admin.v1alpha.DataStream.DataStreamType - * @enum {number} - * @property {number} DATA_STREAM_TYPE_UNSPECIFIED=0 DATA_STREAM_TYPE_UNSPECIFIED value - * @property {number} WEB_DATA_STREAM=1 WEB_DATA_STREAM value - * @property {number} ANDROID_APP_DATA_STREAM=2 ANDROID_APP_DATA_STREAM value - * @property {number} IOS_APP_DATA_STREAM=3 IOS_APP_DATA_STREAM value - */ - DataStream.DataStreamType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_STREAM_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "WEB_DATA_STREAM"] = 1; - values[valuesById[2] = "ANDROID_APP_DATA_STREAM"] = 2; - values[valuesById[3] = "IOS_APP_DATA_STREAM"] = 3; - return values; - })(); - - return DataStream; - })(); - - v1alpha.UserLink = (function() { - - /** - * Properties of a UserLink. - * @memberof google.analytics.admin.v1alpha - * @interface IUserLink - * @property {string|null} [name] UserLink name - * @property {string|null} [emailAddress] UserLink emailAddress - * @property {Array.|null} [directRoles] UserLink directRoles - */ - - /** - * Constructs a new UserLink. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a UserLink. - * @implements IUserLink - * @constructor - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set - */ - function UserLink(properties) { - this.directRoles = []; - 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]]; - } - - /** - * UserLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.UserLink - * @instance - */ - UserLink.prototype.name = ""; - - /** - * UserLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.UserLink - * @instance - */ - UserLink.prototype.emailAddress = ""; - - /** - * UserLink directRoles. - * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.UserLink - * @instance - */ - UserLink.prototype.directRoles = $util.emptyArray; - - /** - * Creates a new UserLink instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.UserLink - * @static - * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance - */ - UserLink.create = function create(properties) { - return new UserLink(properties); - }; - - /** - * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.UserLink - * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserLink.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); - if (message.directRoles != null && message.directRoles.length) - for (var i = 0; i < message.directRoles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); - return writer; - }; + /** + * Encodes the specified AudienceEventFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceEventFilter} message AudienceEventFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceEventFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventName); + if (message.eventParameterFilterExpression != null && Object.hasOwnProperty.call(message, "eventParameterFilterExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.eventParameterFilterExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * Encodes the specified AudienceEventFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static - * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceEventFilter} message AudienceEventFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLink.encodeDelimited = function encodeDelimited(message, writer) { + AudienceEventFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserLink message from the specified reader or buffer. + * Decodes an AudienceEventFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decode = function decode(reader, length) { + AudienceEventFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceEventFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.eventName = reader.string(); break; } case 2: { - message.emailAddress = reader.string(); - break; - } - case 3: { - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); + message.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); break; } default: @@ -39135,157 +37136,140 @@ }; /** - * Decodes a UserLink message from the specified reader or buffer, length delimited. + * Decodes an AudienceEventFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLink.decodeDelimited = function decodeDelimited(reader) { + AudienceEventFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a UserLink message. + * Verifies an AudienceEventFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserLink.verify = function verify(message) { + AudienceEventFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.directRoles != null && message.hasOwnProperty("directRoles")) { - if (!Array.isArray(message.directRoles)) - return "directRoles: array expected"; - for (var i = 0; i < message.directRoles.length; ++i) - if (!$util.isString(message.directRoles[i])) - return "directRoles: string[] expected"; + if (message.eventName != null && message.hasOwnProperty("eventName")) + if (!$util.isString(message.eventName)) + return "eventName: string expected"; + if (message.eventParameterFilterExpression != null && message.hasOwnProperty("eventParameterFilterExpression")) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.eventParameterFilterExpression); + if (error) + return "eventParameterFilterExpression." + error; } return null; }; /** - * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceEventFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @returns {google.analytics.admin.v1alpha.AudienceEventFilter} AudienceEventFilter */ - UserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) + AudienceEventFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceEventFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.UserLink(); - if (object.name != null) - message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.directRoles) { - if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); - message.directRoles = []; - for (var i = 0; i < object.directRoles.length; ++i) - message.directRoles[i] = String(object.directRoles[i]); + var message = new $root.google.analytics.admin.v1alpha.AudienceEventFilter(); + if (object.eventName != null) + message.eventName = String(object.eventName); + if (object.eventParameterFilterExpression != null) { + if (typeof object.eventParameterFilterExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceEventFilter.eventParameterFilterExpression: object expected"); + message.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.eventParameterFilterExpression); } return message; }; /** - * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * Creates a plain object from an AudienceEventFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static - * @param {google.analytics.admin.v1alpha.UserLink} message UserLink + * @param {google.analytics.admin.v1alpha.AudienceEventFilter} message AudienceEventFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserLink.toObject = function toObject(message, options) { + AudienceEventFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.directRoles = []; if (options.defaults) { - object.name = ""; - object.emailAddress = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.directRoles && message.directRoles.length) { - object.directRoles = []; - for (var j = 0; j < message.directRoles.length; ++j) - object.directRoles[j] = message.directRoles[j]; + object.eventName = ""; + object.eventParameterFilterExpression = null; } + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; + if (message.eventParameterFilterExpression != null && message.hasOwnProperty("eventParameterFilterExpression")) + object.eventParameterFilterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.eventParameterFilterExpression, options); return object; }; /** - * Converts this UserLink to JSON. + * Converts this AudienceEventFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @instance * @returns {Object.} JSON object */ - UserLink.prototype.toJSON = function toJSON() { + AudienceEventFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UserLink + * Gets the default type url for AudienceEventFilter * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.UserLink + * @memberof google.analytics.admin.v1alpha.AudienceEventFilter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UserLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceEventFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.UserLink"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceEventFilter"; }; - return UserLink; + return AudienceEventFilter; })(); - v1alpha.AuditUserLink = (function() { + v1alpha.AudienceFilterExpression = (function() { /** - * Properties of an AuditUserLink. + * Properties of an AudienceFilterExpression. * @memberof google.analytics.admin.v1alpha - * @interface IAuditUserLink - * @property {string|null} [name] AuditUserLink name - * @property {string|null} [emailAddress] AuditUserLink emailAddress - * @property {Array.|null} [directRoles] AuditUserLink directRoles - * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles + * @interface IAudienceFilterExpression + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null} [andGroup] AudienceFilterExpression andGroup + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null} [orGroup] AudienceFilterExpression orGroup + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [notExpression] AudienceFilterExpression notExpression + * @property {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null} [dimensionOrMetricFilter] AudienceFilterExpression dimensionOrMetricFilter + * @property {google.analytics.admin.v1alpha.IAudienceEventFilter|null} [eventFilter] AudienceFilterExpression eventFilter */ /** - * Constructs a new AuditUserLink. + * Constructs a new AudienceFilterExpression. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AuditUserLink. - * @implements IAuditUserLink + * @classdesc Represents an AudienceFilterExpression. + * @implements IAudienceFilterExpression * @constructor - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression=} [properties] Properties to set */ - function AuditUserLink(properties) { - this.directRoles = []; - this.effectiveRoles = []; + function AudienceFilterExpression(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39293,127 +37277,149 @@ } /** - * AuditUserLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * AudienceFilterExpression andGroup. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null|undefined} andGroup + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance */ - AuditUserLink.prototype.name = ""; + AudienceFilterExpression.prototype.andGroup = null; /** - * AuditUserLink emailAddress. - * @member {string} emailAddress - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * AudienceFilterExpression orGroup. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null|undefined} orGroup + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance */ - AuditUserLink.prototype.emailAddress = ""; + AudienceFilterExpression.prototype.orGroup = null; /** - * AuditUserLink directRoles. - * @member {Array.} directRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * AudienceFilterExpression notExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} notExpression + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance */ - AuditUserLink.prototype.directRoles = $util.emptyArray; + AudienceFilterExpression.prototype.notExpression = null; /** - * AuditUserLink effectiveRoles. - * @member {Array.} effectiveRoles - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * AudienceFilterExpression dimensionOrMetricFilter. + * @member {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null|undefined} dimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance */ - AuditUserLink.prototype.effectiveRoles = $util.emptyArray; + AudienceFilterExpression.prototype.dimensionOrMetricFilter = null; /** - * Creates a new AuditUserLink instance using the specified properties. + * AudienceFilterExpression eventFilter. + * @member {google.analytics.admin.v1alpha.IAudienceEventFilter|null|undefined} eventFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @instance + */ + AudienceFilterExpression.prototype.eventFilter = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AudienceFilterExpression expr. + * @member {"andGroup"|"orGroup"|"notExpression"|"dimensionOrMetricFilter"|"eventFilter"|undefined} expr + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression + * @instance + */ + Object.defineProperty(AudienceFilterExpression.prototype, "expr", { + get: $util.oneOfGetter($oneOfFields = ["andGroup", "orGroup", "notExpression", "dimensionOrMetricFilter", "eventFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AudienceFilterExpression instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression instance */ - AuditUserLink.create = function create(properties) { - return new AuditUserLink(properties); + AudienceFilterExpression.create = function create(properties) { + return new AudienceFilterExpression(properties); }; /** - * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified AudienceFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression} message AudienceFilterExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encode = function encode(message, writer) { + AudienceFilterExpression.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); - if (message.directRoles != null && message.directRoles.length) - for (var i = 0; i < message.directRoles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); - if (message.effectiveRoles != null && message.effectiveRoles.length) - for (var i = 0; i < message.effectiveRoles.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); + if (message.andGroup != null && Object.hasOwnProperty.call(message, "andGroup")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.encode(message.andGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.orGroup != null && Object.hasOwnProperty.call(message, "orGroup")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.encode(message.orGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.notExpression != null && Object.hasOwnProperty.call(message, "notExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.notExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dimensionOrMetricFilter != null && Object.hasOwnProperty.call(message, "dimensionOrMetricFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.encode(message.dimensionOrMetricFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.eventFilter != null && Object.hasOwnProperty.call(message, "eventFilter")) + $root.google.analytics.admin.v1alpha.AudienceEventFilter.encode(message.eventFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * Encodes the specified AudienceFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static - * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpression} message AudienceFilterExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + AudienceFilterExpression.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuditUserLink message from the specified reader or buffer. + * Decodes an AudienceFilterExpression message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decode = function decode(reader, length) { + AudienceFilterExpression.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpression(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); break; } case 2: { - message.emailAddress = reader.string(); + message.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.directRoles && message.directRoles.length)) - message.directRoles = []; - message.directRoles.push(reader.string()); + message.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); break; } case 4: { - if (!(message.effectiveRoles && message.effectiveRoles.length)) - message.effectiveRoles = []; - message.effectiveRoles.push(reader.string()); + message.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); + case 5: { + message.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } } @@ -39421,175 +37427,213 @@ }; /** - * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterExpression message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + AudienceFilterExpression.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuditUserLink message. + * Verifies an AudienceFilterExpression message. * @function verify - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditUserLink.verify = function verify(message) { + AudienceFilterExpression.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - if (!$util.isString(message.emailAddress)) - return "emailAddress: string expected"; - if (message.directRoles != null && message.hasOwnProperty("directRoles")) { - if (!Array.isArray(message.directRoles)) - return "directRoles: array expected"; - for (var i = 0; i < message.directRoles.length; ++i) - if (!$util.isString(message.directRoles[i])) - return "directRoles: string[] expected"; + var properties = {}; + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify(message.andGroup); + if (error) + return "andGroup." + error; + } } - if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { - if (!Array.isArray(message.effectiveRoles)) - return "effectiveRoles: array expected"; - for (var i = 0; i < message.effectiveRoles.length; ++i) - if (!$util.isString(message.effectiveRoles[i])) - return "effectiveRoles: string[] expected"; + if (message.orGroup != null && message.hasOwnProperty("orGroup")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify(message.orGroup); + if (error) + return "orGroup." + error; + } + } + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.notExpression); + if (error) + return "notExpression." + error; + } + } + if (message.dimensionOrMetricFilter != null && message.hasOwnProperty("dimensionOrMetricFilter")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify(message.dimensionOrMetricFilter); + if (error) + return "dimensionOrMetricFilter." + error; + } + } + if (message.eventFilter != null && message.hasOwnProperty("eventFilter")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceEventFilter.verify(message.eventFilter); + if (error) + return "eventFilter." + error; + } } return null; }; /** - * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterExpression message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpression} AudienceFilterExpression */ - AuditUserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + AudienceFilterExpression.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterExpression) return object; - var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); - if (object.name != null) - message.name = String(object.name); - if (object.emailAddress != null) - message.emailAddress = String(object.emailAddress); - if (object.directRoles) { - if (!Array.isArray(object.directRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); - message.directRoles = []; - for (var i = 0; i < object.directRoles.length; ++i) - message.directRoles[i] = String(object.directRoles[i]); + var message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpression(); + if (object.andGroup != null) { + if (typeof object.andGroup !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.andGroup: object expected"); + message.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.fromObject(object.andGroup); } - if (object.effectiveRoles) { - if (!Array.isArray(object.effectiveRoles)) - throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); - message.effectiveRoles = []; - for (var i = 0; i < object.effectiveRoles.length; ++i) - message.effectiveRoles[i] = String(object.effectiveRoles[i]); + if (object.orGroup != null) { + if (typeof object.orGroup !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.orGroup: object expected"); + message.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.fromObject(object.orGroup); + } + if (object.notExpression != null) { + if (typeof object.notExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.notExpression: object expected"); + message.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.notExpression); + } + if (object.dimensionOrMetricFilter != null) { + if (typeof object.dimensionOrMetricFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.dimensionOrMetricFilter: object expected"); + message.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.fromObject(object.dimensionOrMetricFilter); + } + if (object.eventFilter != null) { + if (typeof object.eventFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpression.eventFilter: object expected"); + message.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.fromObject(object.eventFilter); } return message; }; /** - * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * Creates a plain object from an AudienceFilterExpression message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static - * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {google.analytics.admin.v1alpha.AudienceFilterExpression} message AudienceFilterExpression * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditUserLink.toObject = function toObject(message, options) { + AudienceFilterExpression.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.directRoles = []; - object.effectiveRoles = []; + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + object.andGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.toObject(message.andGroup, options); + if (options.oneofs) + object.expr = "andGroup"; } - if (options.defaults) { - object.name = ""; - object.emailAddress = ""; + if (message.orGroup != null && message.hasOwnProperty("orGroup")) { + object.orGroup = $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList.toObject(message.orGroup, options); + if (options.oneofs) + object.expr = "orGroup"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) - object.emailAddress = message.emailAddress; - if (message.directRoles && message.directRoles.length) { - object.directRoles = []; - for (var j = 0; j < message.directRoles.length; ++j) - object.directRoles[j] = message.directRoles[j]; + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + object.notExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.notExpression, options); + if (options.oneofs) + object.expr = "notExpression"; } - if (message.effectiveRoles && message.effectiveRoles.length) { - object.effectiveRoles = []; - for (var j = 0; j < message.effectiveRoles.length; ++j) - object.effectiveRoles[j] = message.effectiveRoles[j]; + if (message.dimensionOrMetricFilter != null && message.hasOwnProperty("dimensionOrMetricFilter")) { + object.dimensionOrMetricFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.toObject(message.dimensionOrMetricFilter, options); + if (options.oneofs) + object.expr = "dimensionOrMetricFilter"; + } + if (message.eventFilter != null && message.hasOwnProperty("eventFilter")) { + object.eventFilter = $root.google.analytics.admin.v1alpha.AudienceEventFilter.toObject(message.eventFilter, options); + if (options.oneofs) + object.expr = "eventFilter"; } return object; }; /** - * Converts this AuditUserLink to JSON. + * Converts this AudienceFilterExpression to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @instance * @returns {Object.} JSON object */ - AuditUserLink.prototype.toJSON = function toJSON() { + AudienceFilterExpression.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AuditUserLink + * Gets the default type url for AudienceFilterExpression * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpression * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AuditUserLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceFilterExpression.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AuditUserLink"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterExpression"; }; - return AuditUserLink; + return AudienceFilterExpression; })(); - v1alpha.FirebaseLink = (function() { + v1alpha.AudienceFilterExpressionList = (function() { /** - * Properties of a FirebaseLink. + * Properties of an AudienceFilterExpressionList. * @memberof google.analytics.admin.v1alpha - * @interface IFirebaseLink - * @property {string|null} [name] FirebaseLink name - * @property {string|null} [project] FirebaseLink project - * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime + * @interface IAudienceFilterExpressionList + * @property {Array.|null} [filterExpressions] AudienceFilterExpressionList filterExpressions */ /** - * Constructs a new FirebaseLink. + * Constructs a new AudienceFilterExpressionList. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a FirebaseLink. - * @implements IFirebaseLink + * @classdesc Represents an AudienceFilterExpressionList. + * @implements IAudienceFilterExpressionList * @constructor - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList=} [properties] Properties to set */ - function FirebaseLink(properties) { + function AudienceFilterExpressionList(properties) { + this.filterExpressions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39597,103 +37641,78 @@ } /** - * FirebaseLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.FirebaseLink - * @instance - */ - FirebaseLink.prototype.name = ""; - - /** - * FirebaseLink project. - * @member {string} project - * @memberof google.analytics.admin.v1alpha.FirebaseLink - * @instance - */ - FirebaseLink.prototype.project = ""; - - /** - * FirebaseLink createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * AudienceFilterExpressionList filterExpressions. + * @member {Array.} filterExpressions + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @instance */ - FirebaseLink.prototype.createTime = null; + AudienceFilterExpressionList.prototype.filterExpressions = $util.emptyArray; /** - * Creates a new FirebaseLink instance using the specified properties. + * Creates a new AudienceFilterExpressionList instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList instance */ - FirebaseLink.create = function create(properties) { - return new FirebaseLink(properties); + AudienceFilterExpressionList.create = function create(properties) { + return new AudienceFilterExpressionList(properties); }; /** - * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encode = function encode(message, writer) { + AudienceFilterExpressionList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.project != null && Object.hasOwnProperty.call(message, "project")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.filterExpressions != null && message.filterExpressions.length) + for (var i = 0; i < message.filterExpressions.length; ++i) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpressions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + AudienceFilterExpressionList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FirebaseLink message from the specified reader or buffer. + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decode = function decode(reader, length) { + AudienceFilterExpressionList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.project = reader.string(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.filterExpressions && message.filterExpressions.length)) + message.filterExpressions = []; + message.filterExpressions.push($root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32())); break; } default: @@ -39705,145 +37724,140 @@ }; /** - * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + AudienceFilterExpressionList.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FirebaseLink message. + * Verifies an AudienceFilterExpressionList message. * @function verify - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FirebaseLink.verify = function verify(message) { + AudienceFilterExpressionList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + if (message.filterExpressions != null && message.hasOwnProperty("filterExpressions")) { + if (!Array.isArray(message.filterExpressions)) + return "filterExpressions: array expected"; + for (var i = 0; i < message.filterExpressions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpressions[i]); + if (error) + return "filterExpressions." + error; + } } return null; }; /** - * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList */ - FirebaseLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + AudienceFilterExpressionList.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList) return object; - var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); - if (object.name != null) - message.name = String(object.name); - if (object.project != null) - message.project = String(object.project); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); + if (object.filterExpressions) { + if (!Array.isArray(object.filterExpressions)) + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: array expected"); + message.filterExpressions = []; + for (var i = 0; i < object.filterExpressions.length; ++i) { + if (typeof object.filterExpressions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: object expected"); + message.filterExpressions[i] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpressions[i]); + } } return message; }; /** - * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {google.analytics.admin.v1alpha.AudienceFilterExpressionList} message AudienceFilterExpressionList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FirebaseLink.toObject = function toObject(message, options) { + AudienceFilterExpressionList.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.project = ""; - object.createTime = null; + if (options.arrays || options.defaults) + object.filterExpressions = []; + if (message.filterExpressions && message.filterExpressions.length) { + object.filterExpressions = []; + for (var j = 0; j < message.filterExpressions.length; ++j) + object.filterExpressions[j] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpressions[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.project != null && message.hasOwnProperty("project")) - object.project = message.project; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); return object; }; /** - * Converts this FirebaseLink to JSON. + * Converts this AudienceFilterExpressionList to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @instance * @returns {Object.} JSON object */ - FirebaseLink.prototype.toJSON = function toJSON() { + AudienceFilterExpressionList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FirebaseLink + * Gets the default type url for AudienceFilterExpressionList * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FirebaseLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceFilterExpressionList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.FirebaseLink"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterExpressionList"; }; - return FirebaseLink; + return AudienceFilterExpressionList; })(); - v1alpha.GlobalSiteTag = (function() { + v1alpha.AudienceSimpleFilter = (function() { /** - * Properties of a GlobalSiteTag. + * Properties of an AudienceSimpleFilter. * @memberof google.analytics.admin.v1alpha - * @interface IGlobalSiteTag - * @property {string|null} [name] GlobalSiteTag name - * @property {string|null} [snippet] GlobalSiteTag snippet + * @interface IAudienceSimpleFilter + * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSimpleFilter scope + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSimpleFilter filterExpression */ /** - * Constructs a new GlobalSiteTag. + * Constructs a new AudienceSimpleFilter. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GlobalSiteTag. - * @implements IGlobalSiteTag + * @classdesc Represents an AudienceSimpleFilter. + * @implements IAudienceSimpleFilter * @constructor - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set */ - function GlobalSiteTag(properties) { + function AudienceSimpleFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39851,89 +37865,89 @@ } /** - * GlobalSiteTag name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * AudienceSimpleFilter scope. + * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @instance */ - GlobalSiteTag.prototype.name = ""; + AudienceSimpleFilter.prototype.scope = 0; /** - * GlobalSiteTag snippet. - * @member {string} snippet - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * AudienceSimpleFilter filterExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @instance */ - GlobalSiteTag.prototype.snippet = ""; + AudienceSimpleFilter.prototype.filterExpression = null; /** - * Creates a new GlobalSiteTag instance using the specified properties. + * Creates a new AudienceSimpleFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter instance */ - GlobalSiteTag.create = function create(properties) { - return new GlobalSiteTag(properties); + AudienceSimpleFilter.create = function create(properties) { + return new AudienceSimpleFilter(properties); }; /** - * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encode = function encode(message, writer) { + AudienceSimpleFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.snippet); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static - * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { + AudienceSimpleFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer. + * Decodes an AudienceSimpleFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decode = function decode(reader, length) { + AudienceSimpleFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.scope = reader.int32(); break; } case 2: { - message.snippet = reader.string(); + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); break; } default: @@ -39945,137 +37959,168 @@ }; /** - * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { + AudienceSimpleFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GlobalSiteTag message. + * Verifies an AudienceSimpleFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GlobalSiteTag.verify = function verify(message) { + AudienceSimpleFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.snippet != null && message.hasOwnProperty("snippet")) - if (!$util.isString(message.snippet)) - return "snippet: string expected"; - return null; - }; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); + if (error) + return "filterExpression." + error; + } + return null; + }; /** - * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter */ - GlobalSiteTag.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) + AudienceSimpleFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSimpleFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); - if (object.name != null) - message.name = String(object.name); - if (object.snippet != null) - message.snippet = String(object.snippet); + var message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); + switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; + case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case 1: + message.scope = 1; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case 2: + message.scope = 2; + break; + case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": + case 3: + message.scope = 3; + break; + } + if (object.filterExpression != null) { + if (typeof object.filterExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSimpleFilter.filterExpression: object expected"); + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); + } return message; }; /** - * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static - * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag + * @param {google.analytics.admin.v1alpha.AudienceSimpleFilter} message AudienceSimpleFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GlobalSiteTag.toObject = function toObject(message, options) { + AudienceSimpleFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.snippet = ""; + object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; + object.filterExpression = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.snippet != null && message.hasOwnProperty("snippet")) - object.snippet = message.snippet; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) + object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); return object; }; /** - * Converts this GlobalSiteTag to JSON. + * Converts this AudienceSimpleFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @instance * @returns {Object.} JSON object */ - GlobalSiteTag.prototype.toJSON = function toJSON() { + AudienceSimpleFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GlobalSiteTag + * Gets the default type url for AudienceSimpleFilter * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GlobalSiteTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceSimpleFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GlobalSiteTag"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSimpleFilter"; }; - return GlobalSiteTag; + return AudienceSimpleFilter; })(); - v1alpha.GoogleAdsLink = (function() { + v1alpha.AudienceSequenceFilter = (function() { /** - * Properties of a GoogleAdsLink. + * Properties of an AudienceSequenceFilter. * @memberof google.analytics.admin.v1alpha - * @interface IGoogleAdsLink - * @property {string|null} [name] GoogleAdsLink name - * @property {string|null} [customerId] GoogleAdsLink customerId - * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients - * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled - * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime - * @property {string|null} [creatorEmailAddress] GoogleAdsLink creatorEmailAddress + * @interface IAudienceSequenceFilter + * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceFilter scope + * @property {google.protobuf.IDuration|null} [sequenceMaximumDuration] AudienceSequenceFilter sequenceMaximumDuration + * @property {Array.|null} [sequenceSteps] AudienceSequenceFilter sequenceSteps */ /** - * Constructs a new GoogleAdsLink. + * Constructs a new AudienceSequenceFilter. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GoogleAdsLink. - * @implements IGoogleAdsLink + * @classdesc Represents an AudienceSequenceFilter. + * @implements IAudienceSequenceFilter * @constructor - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set */ - function GoogleAdsLink(properties) { + function AudienceSequenceFilter(properties) { + this.sequenceSteps = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40083,159 +38128,106 @@ } /** - * GoogleAdsLink name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.name = ""; - - /** - * GoogleAdsLink customerId. - * @member {string} customerId - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.customerId = ""; - - /** - * GoogleAdsLink canManageClients. - * @member {boolean} canManageClients - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.canManageClients = false; - - /** - * GoogleAdsLink adsPersonalizationEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink - * @instance - */ - GoogleAdsLink.prototype.adsPersonalizationEnabled = null; - - /** - * GoogleAdsLink createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * AudienceSequenceFilter scope. + * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @instance */ - GoogleAdsLink.prototype.createTime = null; + AudienceSequenceFilter.prototype.scope = 0; /** - * GoogleAdsLink updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * AudienceSequenceFilter sequenceMaximumDuration. + * @member {google.protobuf.IDuration|null|undefined} sequenceMaximumDuration + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @instance */ - GoogleAdsLink.prototype.updateTime = null; + AudienceSequenceFilter.prototype.sequenceMaximumDuration = null; /** - * GoogleAdsLink creatorEmailAddress. - * @member {string} creatorEmailAddress - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * AudienceSequenceFilter sequenceSteps. + * @member {Array.} sequenceSteps + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @instance */ - GoogleAdsLink.prototype.creatorEmailAddress = ""; + AudienceSequenceFilter.prototype.sequenceSteps = $util.emptyArray; /** - * Creates a new GoogleAdsLink instance using the specified properties. + * Creates a new AudienceSequenceFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter instance */ - GoogleAdsLink.create = function create(properties) { - return new GoogleAdsLink(properties); + AudienceSequenceFilter.create = function create(properties) { + return new AudienceSequenceFilter(properties); }; /** - * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encode = function encode(message, writer) { + AudienceSequenceFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.customerId != null && Object.hasOwnProperty.call(message, "customerId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); - if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); - if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) - $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.creatorEmailAddress != null && Object.hasOwnProperty.call(message, "creatorEmailAddress")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.creatorEmailAddress); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + if (message.sequenceMaximumDuration != null && Object.hasOwnProperty.call(message, "sequenceMaximumDuration")) + $root.google.protobuf.Duration.encode(message.sequenceMaximumDuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sequenceSteps != null && message.sequenceSteps.length) + for (var i = 0; i < message.sequenceSteps.length; ++i) + $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.encode(message.sequenceSteps[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + AudienceSequenceFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer. + * Decodes an AudienceSequenceFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decode = function decode(reader, length) { + AudienceSequenceFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.customerId = reader.string(); - break; - } - case 4: { - message.canManageClients = reader.bool(); - break; - } - case 5: { - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - } - case 7: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.scope = reader.int32(); break; } - case 8: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 2: { + message.sequenceMaximumDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } - case 9: { - message.creatorEmailAddress = reader.string(); + case 3: { + if (!(message.sequenceSteps && message.sequenceSteps.length)) + message.sequenceSteps = []; + message.sequenceSteps.push($root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.decode(reader, reader.uint32())); break; } default: @@ -40247,337 +38239,623 @@ }; /** - * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + AudienceSequenceFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GoogleAdsLink message. + * Verifies an AudienceSequenceFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GoogleAdsLink.verify = function verify(message) { + AudienceSequenceFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.customerId != null && message.hasOwnProperty("customerId")) - if (!$util.isString(message.customerId)) - return "customerId: string expected"; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - if (typeof message.canManageClients !== "boolean") - return "canManageClients: boolean expected"; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); - if (error) - return "adsPersonalizationEnabled." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) { + var error = $root.google.protobuf.Duration.verify(message.sequenceMaximumDuration); if (error) - return "createTime." + error; + return "sequenceMaximumDuration." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.sequenceSteps != null && message.hasOwnProperty("sequenceSteps")) { + if (!Array.isArray(message.sequenceSteps)) + return "sequenceSteps: array expected"; + for (var i = 0; i < message.sequenceSteps.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify(message.sequenceSteps[i]); + if (error) + return "sequenceSteps." + error; + } } - if (message.creatorEmailAddress != null && message.hasOwnProperty("creatorEmailAddress")) - if (!$util.isString(message.creatorEmailAddress)) - return "creatorEmailAddress: string expected"; return null; }; /** - * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter */ - GoogleAdsLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) + AudienceSequenceFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); - if (object.name != null) - message.name = String(object.name); - if (object.customerId != null) - message.customerId = String(object.customerId); - if (object.canManageClients != null) - message.canManageClients = Boolean(object.canManageClients); - if (object.adsPersonalizationEnabled != null) { - if (typeof object.adsPersonalizationEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); + switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; + case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case 1: + message.scope = 1; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case 2: + message.scope = 2; + break; + case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": + case 3: + message.scope = 3; + break; } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + if (object.sequenceMaximumDuration != null) { + if (typeof object.sequenceMaximumDuration !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceMaximumDuration: object expected"); + message.sequenceMaximumDuration = $root.google.protobuf.Duration.fromObject(object.sequenceMaximumDuration); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.sequenceSteps) { + if (!Array.isArray(object.sequenceSteps)) + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: array expected"); + message.sequenceSteps = []; + for (var i = 0; i < object.sequenceSteps.length; ++i) { + if (typeof object.sequenceSteps[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: object expected"); + message.sequenceSteps[i] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.fromObject(object.sequenceSteps[i]); + } } - if (object.creatorEmailAddress != null) - message.creatorEmailAddress = String(object.creatorEmailAddress); return message; }; /** - * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter} message AudienceSequenceFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GoogleAdsLink.toObject = function toObject(message, options) { + AudienceSequenceFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.sequenceSteps = []; if (options.defaults) { - object.name = ""; - object.customerId = ""; - object.canManageClients = false; - object.adsPersonalizationEnabled = null; - object.createTime = null; - object.updateTime = null; - object.creatorEmailAddress = ""; + object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; + object.sequenceMaximumDuration = null; + } + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) + object.sequenceMaximumDuration = $root.google.protobuf.Duration.toObject(message.sequenceMaximumDuration, options); + if (message.sequenceSteps && message.sequenceSteps.length) { + object.sequenceSteps = []; + for (var j = 0; j < message.sequenceSteps.length; ++j) + object.sequenceSteps[j] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.toObject(message.sequenceSteps[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.customerId != null && message.hasOwnProperty("customerId")) - object.customerId = message.customerId; - if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) - object.canManageClients = message.canManageClients; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.creatorEmailAddress != null && message.hasOwnProperty("creatorEmailAddress")) - object.creatorEmailAddress = message.creatorEmailAddress; return object; }; /** - * Converts this GoogleAdsLink to JSON. + * Converts this AudienceSequenceFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @instance * @returns {Object.} JSON object */ - GoogleAdsLink.prototype.toJSON = function toJSON() { + AudienceSequenceFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GoogleAdsLink + * Gets the default type url for AudienceSequenceFilter * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GoogleAdsLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceSequenceFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GoogleAdsLink"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter"; }; - return GoogleAdsLink; - })(); + AudienceSequenceFilter.AudienceSequenceStep = (function() { - v1alpha.DataSharingSettings = (function() { + /** + * Properties of an AudienceSequenceStep. + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @interface IAudienceSequenceStep + * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceStep scope + * @property {boolean|null} [immediatelyFollows] AudienceSequenceStep immediatelyFollows + * @property {google.protobuf.IDuration|null} [constraintDuration] AudienceSequenceStep constraintDuration + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSequenceStep filterExpression + */ - /** - * Properties of a DataSharingSettings. - * @memberof google.analytics.admin.v1alpha - * @interface IDataSharingSettings - * @property {string|null} [name] DataSharingSettings name - * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled - * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled - * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled - * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled - * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled - */ + /** + * Constructs a new AudienceSequenceStep. + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @classdesc Represents an AudienceSequenceStep. + * @implements IAudienceSequenceStep + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set + */ + function AudienceSequenceStep(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]]; + } - /** - * Constructs a new DataSharingSettings. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DataSharingSettings. - * @implements IDataSharingSettings - * @constructor - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set - */ - function DataSharingSettings(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]]; - } + /** + * AudienceSequenceStep scope. + * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.scope = 0; - /** - * DataSharingSettings name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance + /** + * AudienceSequenceStep immediatelyFollows. + * @member {boolean} immediatelyFollows + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.immediatelyFollows = false; + + /** + * AudienceSequenceStep constraintDuration. + * @member {google.protobuf.IDuration|null|undefined} constraintDuration + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.constraintDuration = null; + + /** + * AudienceSequenceStep filterExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.filterExpression = null; + + /** + * Creates a new AudienceSequenceStep instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep instance + */ + AudienceSequenceStep.create = function create(properties) { + return new AudienceSequenceStep(properties); + }; + + /** + * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceSequenceStep.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + if (message.immediatelyFollows != null && Object.hasOwnProperty.call(message, "immediatelyFollows")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.immediatelyFollows); + if (message.constraintDuration != null && Object.hasOwnProperty.call(message, "constraintDuration")) + $root.google.protobuf.Duration.encode(message.constraintDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceSequenceStep.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceSequenceStep.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.scope = reader.int32(); + break; + } + case 2: { + message.immediatelyFollows = reader.bool(); + break; + } + case 3: { + message.constraintDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 4: { + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceSequenceStep.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AudienceSequenceStep message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AudienceSequenceStep.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) + if (typeof message.immediatelyFollows !== "boolean") + return "immediatelyFollows: boolean expected"; + if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) { + var error = $root.google.protobuf.Duration.verify(message.constraintDuration); + if (error) + return "constraintDuration." + error; + } + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); + if (error) + return "filterExpression." + error; + } + return null; + }; + + /** + * Creates an AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep + */ + AudienceSequenceStep.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); + switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; + case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case 1: + message.scope = 1; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case 2: + message.scope = 2; + break; + case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": + case 3: + message.scope = 3; + break; + } + if (object.immediatelyFollows != null) + message.immediatelyFollows = Boolean(object.immediatelyFollows); + if (object.constraintDuration != null) { + if (typeof object.constraintDuration !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.constraintDuration: object expected"); + message.constraintDuration = $root.google.protobuf.Duration.fromObject(object.constraintDuration); + } + if (object.filterExpression != null) { + if (typeof object.filterExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.filterExpression: object expected"); + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); + } + return message; + }; + + /** + * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} message AudienceSequenceStep + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AudienceSequenceStep.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; + object.immediatelyFollows = false; + object.constraintDuration = null; + object.filterExpression = null; + } + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) + object.immediatelyFollows = message.immediatelyFollows; + if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) + object.constraintDuration = $root.google.protobuf.Duration.toObject(message.constraintDuration, options); + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) + object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); + return object; + }; + + /** + * Converts this AudienceSequenceStep to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + * @returns {Object.} JSON object + */ + AudienceSequenceStep.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AudienceSequenceStep + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceSequenceStep.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep"; + }; + + return AudienceSequenceStep; + })(); + + return AudienceSequenceFilter; + })(); + + v1alpha.AudienceFilterClause = (function() { + + /** + * Properties of an AudienceFilterClause. + * @memberof google.analytics.admin.v1alpha + * @interface IAudienceFilterClause + * @property {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null} [simpleFilter] AudienceFilterClause simpleFilter + * @property {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null} [sequenceFilter] AudienceFilterClause sequenceFilter + * @property {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null} [clauseType] AudienceFilterClause clauseType */ - DataSharingSettings.prototype.name = ""; /** - * DataSharingSettings sharingWithGoogleSupportEnabled. - * @member {boolean} sharingWithGoogleSupportEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings - * @instance + * Constructs a new AudienceFilterClause. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AudienceFilterClause. + * @implements IAudienceFilterClause + * @constructor + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set */ - DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + function AudienceFilterClause(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]]; + } /** - * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. - * @member {boolean} sharingWithGoogleAssignedSalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * AudienceFilterClause simpleFilter. + * @member {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null|undefined} simpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance */ - DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; + AudienceFilterClause.prototype.simpleFilter = null; /** - * DataSharingSettings sharingWithGoogleAnySalesEnabled. - * @member {boolean} sharingWithGoogleAnySalesEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * AudienceFilterClause sequenceFilter. + * @member {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null|undefined} sequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance */ - DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + AudienceFilterClause.prototype.sequenceFilter = null; /** - * DataSharingSettings sharingWithGoogleProductsEnabled. - * @member {boolean} sharingWithGoogleProductsEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * AudienceFilterClause clauseType. + * @member {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType} clauseType + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance */ - DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + AudienceFilterClause.prototype.clauseType = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DataSharingSettings sharingWithOthersEnabled. - * @member {boolean} sharingWithOthersEnabled - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * AudienceFilterClause filter. + * @member {"simpleFilter"|"sequenceFilter"|undefined} filter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance */ - DataSharingSettings.prototype.sharingWithOthersEnabled = false; + Object.defineProperty(AudienceFilterClause.prototype, "filter", { + get: $util.oneOfGetter($oneOfFields = ["simpleFilter", "sequenceFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DataSharingSettings instance using the specified properties. + * Creates a new AudienceFilterClause instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause instance */ - DataSharingSettings.create = function create(properties) { - return new DataSharingSettings(properties); + AudienceFilterClause.create = function create(properties) { + return new AudienceFilterClause(properties); }; /** - * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encode = function encode(message, writer) { + AudienceFilterClause.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); - if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); - if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); - if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); - if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); + if (message.clauseType != null && Object.hasOwnProperty.call(message, "clauseType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clauseType); + if (message.simpleFilter != null && Object.hasOwnProperty.call(message, "simpleFilter")) + $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.encode(message.simpleFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sequenceFilter != null && Object.hasOwnProperty.call(message, "sequenceFilter")) + $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.encode(message.sequenceFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + AudienceFilterClause.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer. + * Decodes an AudienceFilterClause message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decode = function decode(reader, length) { + AudienceFilterClause.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } case 2: { - message.sharingWithGoogleSupportEnabled = reader.bool(); + message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.decode(reader, reader.uint32()); break; } case 3: { - message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); - break; - } - case 4: { - message.sharingWithGoogleAnySalesEnabled = reader.bool(); - break; - } - case 5: { - message.sharingWithGoogleProductsEnabled = reader.bool(); + message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.decode(reader, reader.uint32()); break; } - case 6: { - message.sharingWithOthersEnabled = reader.bool(); + case 1: { + message.clauseType = reader.int32(); break; } default: @@ -40589,167 +38867,202 @@ }; /** - * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + AudienceFilterClause.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataSharingSettings message. + * Verifies an AudienceFilterClause message. * @function verify - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataSharingSettings.verify = function verify(message) { + AudienceFilterClause.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") - return "sharingWithGoogleSupportEnabled: boolean expected"; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") - return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") - return "sharingWithGoogleAnySalesEnabled: boolean expected"; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") - return "sharingWithGoogleProductsEnabled: boolean expected"; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - if (typeof message.sharingWithOthersEnabled !== "boolean") - return "sharingWithOthersEnabled: boolean expected"; + var properties = {}; + if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { + properties.filter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.verify(message.simpleFilter); + if (error) + return "simpleFilter." + error; + } + } + if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.verify(message.sequenceFilter); + if (error) + return "sequenceFilter." + error; + } + } + if (message.clauseType != null && message.hasOwnProperty("clauseType")) + switch (message.clauseType) { + default: + return "clauseType: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause */ - DataSharingSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) + AudienceFilterClause.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterClause) return object; - var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); - if (object.name != null) - message.name = String(object.name); - if (object.sharingWithGoogleSupportEnabled != null) - message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); - if (object.sharingWithGoogleAssignedSalesEnabled != null) - message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); - if (object.sharingWithGoogleAnySalesEnabled != null) - message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); - if (object.sharingWithGoogleProductsEnabled != null) - message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); - if (object.sharingWithOthersEnabled != null) - message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); - return message; - }; - - /** - * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + var message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); + if (object.simpleFilter != null) { + if (typeof object.simpleFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.simpleFilter: object expected"); + message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.fromObject(object.simpleFilter); + } + if (object.sequenceFilter != null) { + if (typeof object.sequenceFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.sequenceFilter: object expected"); + message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.fromObject(object.sequenceFilter); + } + switch (object.clauseType) { + default: + if (typeof object.clauseType === "number") { + message.clauseType = object.clauseType; + break; + } + break; + case "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED": + case 0: + message.clauseType = 0; + break; + case "INCLUDE": + case 1: + message.clauseType = 1; + break; + case "EXCLUDE": + case 2: + message.clauseType = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings + * @param {google.analytics.admin.v1alpha.AudienceFilterClause} message AudienceFilterClause * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataSharingSettings.toObject = function toObject(message, options) { + AudienceFilterClause.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.sharingWithGoogleSupportEnabled = false; - object.sharingWithGoogleAssignedSalesEnabled = false; - object.sharingWithGoogleAnySalesEnabled = false; - object.sharingWithGoogleProductsEnabled = false; - object.sharingWithOthersEnabled = false; + if (options.defaults) + object.clauseType = options.enums === String ? "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED" : 0; + if (message.clauseType != null && message.hasOwnProperty("clauseType")) + object.clauseType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] === undefined ? message.clauseType : $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] : message.clauseType; + if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { + object.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.toObject(message.simpleFilter, options); + if (options.oneofs) + object.filter = "simpleFilter"; + } + if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { + object.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.toObject(message.sequenceFilter, options); + if (options.oneofs) + object.filter = "sequenceFilter"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) - object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; - if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) - object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; - if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) - object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; - if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) - object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; - if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) - object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; return object; }; /** - * Converts this DataSharingSettings to JSON. + * Converts this AudienceFilterClause to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance * @returns {Object.} JSON object */ - DataSharingSettings.prototype.toJSON = function toJSON() { + AudienceFilterClause.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DataSharingSettings + * Gets the default type url for AudienceFilterClause * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DataSharingSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceFilterClause.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataSharingSettings"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterClause"; }; - return DataSharingSettings; + /** + * AudienceClauseType enum. + * @name google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + * @enum {number} + * @property {number} AUDIENCE_CLAUSE_TYPE_UNSPECIFIED=0 AUDIENCE_CLAUSE_TYPE_UNSPECIFIED value + * @property {number} INCLUDE=1 INCLUDE value + * @property {number} EXCLUDE=2 EXCLUDE value + */ + AudienceFilterClause.AudienceClauseType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INCLUDE"] = 1; + values[valuesById[2] = "EXCLUDE"] = 2; + return values; + })(); + + return AudienceFilterClause; })(); - v1alpha.AccountSummary = (function() { + v1alpha.AudienceEventTrigger = (function() { /** - * Properties of an AccountSummary. + * Properties of an AudienceEventTrigger. * @memberof google.analytics.admin.v1alpha - * @interface IAccountSummary - * @property {string|null} [name] AccountSummary name - * @property {string|null} [account] AccountSummary account - * @property {string|null} [displayName] AccountSummary displayName - * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries + * @interface IAudienceEventTrigger + * @property {string|null} [eventName] AudienceEventTrigger eventName + * @property {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null} [logCondition] AudienceEventTrigger logCondition */ /** - * Constructs a new AccountSummary. + * Constructs a new AudienceEventTrigger. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AccountSummary. - * @implements IAccountSummary + * @classdesc Represents an AudienceEventTrigger. + * @implements IAudienceEventTrigger * @constructor - * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set */ - function AccountSummary(properties) { - this.propertySummaries = []; + function AudienceEventTrigger(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40757,120 +39070,89 @@ } /** - * AccountSummary name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @instance - */ - AccountSummary.prototype.name = ""; - - /** - * AccountSummary account. - * @member {string} account - * @memberof google.analytics.admin.v1alpha.AccountSummary - * @instance - */ - AccountSummary.prototype.account = ""; - - /** - * AccountSummary displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.AccountSummary + * AudienceEventTrigger eventName. + * @member {string} eventName + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @instance */ - AccountSummary.prototype.displayName = ""; + AudienceEventTrigger.prototype.eventName = ""; /** - * AccountSummary propertySummaries. - * @member {Array.} propertySummaries - * @memberof google.analytics.admin.v1alpha.AccountSummary + * AudienceEventTrigger logCondition. + * @member {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition} logCondition + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @instance */ - AccountSummary.prototype.propertySummaries = $util.emptyArray; + AudienceEventTrigger.prototype.logCondition = 0; /** - * Creates a new AccountSummary instance using the specified properties. + * Creates a new AudienceEventTrigger instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary instance + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger instance */ - AccountSummary.create = function create(properties) { - return new AccountSummary(properties); + AudienceEventTrigger.create = function create(properties) { + return new AudienceEventTrigger(properties); }; /** - * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountSummary.encode = function encode(message, writer) { + AudienceEventTrigger.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.account); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.propertySummaries != null && message.propertySummaries.length) - for (var i = 0; i < message.propertySummaries.length; ++i) - $root.google.analytics.admin.v1alpha.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventName); + if (message.logCondition != null && Object.hasOwnProperty.call(message, "logCondition")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logCondition); return writer; }; /** - * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { + AudienceEventTrigger.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AccountSummary message from the specified reader or buffer. + * Decodes an AudienceEventTrigger message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummary.decode = function decode(reader, length) { + AudienceEventTrigger.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AccountSummary(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.eventName = reader.string(); break; } case 2: { - message.account = reader.string(); - break; - } - case 3: { - message.displayName = reader.string(); - break; - } - case 4: { - if (!(message.propertySummaries && message.propertySummaries.length)) - message.propertySummaries = []; - message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); + message.logCondition = reader.int32(); break; } default: @@ -40882,168 +39164,179 @@ }; /** - * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummary.decodeDelimited = function decodeDelimited(reader) { + AudienceEventTrigger.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AccountSummary message. + * Verifies an AudienceEventTrigger message. * @function verify - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccountSummary.verify = function verify(message) { + AudienceEventTrigger.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.account != null && message.hasOwnProperty("account")) - if (!$util.isString(message.account)) - return "account: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { - if (!Array.isArray(message.propertySummaries)) - return "propertySummaries: array expected"; - for (var i = 0; i < message.propertySummaries.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.PropertySummary.verify(message.propertySummaries[i]); - if (error) - return "propertySummaries." + error; + if (message.eventName != null && message.hasOwnProperty("eventName")) + if (!$util.isString(message.eventName)) + return "eventName: string expected"; + if (message.logCondition != null && message.hasOwnProperty("logCondition")) + switch (message.logCondition) { + default: + return "logCondition: enum value expected"; + case 0: + case 1: + case 2: + break; } - } return null; }; /** - * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger */ - AccountSummary.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AccountSummary) + AudienceEventTrigger.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceEventTrigger) return object; - var message = new $root.google.analytics.admin.v1alpha.AccountSummary(); - if (object.name != null) - message.name = String(object.name); - if (object.account != null) - message.account = String(object.account); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.propertySummaries) { - if (!Array.isArray(object.propertySummaries)) - throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: array expected"); - message.propertySummaries = []; - for (var i = 0; i < object.propertySummaries.length; ++i) { - if (typeof object.propertySummaries[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: object expected"); - message.propertySummaries[i] = $root.google.analytics.admin.v1alpha.PropertySummary.fromObject(object.propertySummaries[i]); + var message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); + if (object.eventName != null) + message.eventName = String(object.eventName); + switch (object.logCondition) { + default: + if (typeof object.logCondition === "number") { + message.logCondition = object.logCondition; + break; } + break; + case "LOG_CONDITION_UNSPECIFIED": + case 0: + message.logCondition = 0; + break; + case "AUDIENCE_JOINED": + case 1: + message.logCondition = 1; + break; + case "AUDIENCE_MEMBERSHIP_RENEWED": + case 2: + message.logCondition = 2; + break; } return message; }; /** - * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.AccountSummary} message AccountSummary + * @param {google.analytics.admin.v1alpha.AudienceEventTrigger} message AudienceEventTrigger * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccountSummary.toObject = function toObject(message, options) { + AudienceEventTrigger.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.propertySummaries = []; if (options.defaults) { - object.name = ""; - object.account = ""; - object.displayName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.account != null && message.hasOwnProperty("account")) - object.account = message.account; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.propertySummaries && message.propertySummaries.length) { - object.propertySummaries = []; - for (var j = 0; j < message.propertySummaries.length; ++j) - object.propertySummaries[j] = $root.google.analytics.admin.v1alpha.PropertySummary.toObject(message.propertySummaries[j], options); + object.eventName = ""; + object.logCondition = options.enums === String ? "LOG_CONDITION_UNSPECIFIED" : 0; } + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; + if (message.logCondition != null && message.hasOwnProperty("logCondition")) + object.logCondition = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] === undefined ? message.logCondition : $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] : message.logCondition; return object; }; /** - * Converts this AccountSummary to JSON. + * Converts this AudienceEventTrigger to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @instance * @returns {Object.} JSON object */ - AccountSummary.prototype.toJSON = function toJSON() { + AudienceEventTrigger.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AccountSummary + * Gets the default type url for AudienceEventTrigger * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AccountSummary + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AccountSummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceEventTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccountSummary"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceEventTrigger"; }; - return AccountSummary; + /** + * LogCondition enum. + * @name google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition + * @enum {number} + * @property {number} LOG_CONDITION_UNSPECIFIED=0 LOG_CONDITION_UNSPECIFIED value + * @property {number} AUDIENCE_JOINED=1 AUDIENCE_JOINED value + * @property {number} AUDIENCE_MEMBERSHIP_RENEWED=2 AUDIENCE_MEMBERSHIP_RENEWED value + */ + AudienceEventTrigger.LogCondition = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_CONDITION_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIENCE_JOINED"] = 1; + values[valuesById[2] = "AUDIENCE_MEMBERSHIP_RENEWED"] = 2; + return values; + })(); + + return AudienceEventTrigger; })(); - v1alpha.PropertySummary = (function() { + v1alpha.Audience = (function() { /** - * Properties of a PropertySummary. + * Properties of an Audience. * @memberof google.analytics.admin.v1alpha - * @interface IPropertySummary - * @property {string|null} [property] PropertySummary property - * @property {string|null} [displayName] PropertySummary displayName - * @property {google.analytics.admin.v1alpha.PropertyType|null} [propertyType] PropertySummary propertyType - * @property {string|null} [parent] PropertySummary parent + * @interface IAudience + * @property {string|null} [name] Audience name + * @property {string|null} [displayName] Audience displayName + * @property {string|null} [description] Audience description + * @property {number|null} [membershipDurationDays] Audience membershipDurationDays + * @property {boolean|null} [adsPersonalizationEnabled] Audience adsPersonalizationEnabled + * @property {google.analytics.admin.v1alpha.IAudienceEventTrigger|null} [eventTrigger] Audience eventTrigger + * @property {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null} [exclusionDurationMode] Audience exclusionDurationMode + * @property {Array.|null} [filterClauses] Audience filterClauses */ /** - * Constructs a new PropertySummary. + * Constructs a new Audience. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a PropertySummary. - * @implements IPropertySummary + * @classdesc Represents an Audience. + * @implements IAudience * @constructor - * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set */ - function PropertySummary(properties) { + function Audience(properties) { + this.filterClauses = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41051,105 +39344,146 @@ } /** - * PropertySummary property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.PropertySummary + * Audience name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.Audience * @instance */ - PropertySummary.prototype.property = ""; + Audience.prototype.name = ""; /** - * PropertySummary displayName. + * Audience displayName. * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @instance */ - PropertySummary.prototype.displayName = ""; + Audience.prototype.displayName = ""; /** - * PropertySummary propertyType. - * @member {google.analytics.admin.v1alpha.PropertyType} propertyType - * @memberof google.analytics.admin.v1alpha.PropertySummary + * Audience description. + * @member {string} description + * @memberof google.analytics.admin.v1alpha.Audience * @instance */ - PropertySummary.prototype.propertyType = 0; + Audience.prototype.description = ""; /** - * PropertySummary parent. - * @member {string} parent - * @memberof google.analytics.admin.v1alpha.PropertySummary + * Audience membershipDurationDays. + * @member {number} membershipDurationDays + * @memberof google.analytics.admin.v1alpha.Audience * @instance */ - PropertySummary.prototype.parent = ""; + Audience.prototype.membershipDurationDays = 0; /** - * Creates a new PropertySummary instance using the specified properties. + * Audience adsPersonalizationEnabled. + * @member {boolean} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.adsPersonalizationEnabled = false; + + /** + * Audience eventTrigger. + * @member {google.analytics.admin.v1alpha.IAudienceEventTrigger|null|undefined} eventTrigger + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.eventTrigger = null; + + /** + * Audience exclusionDurationMode. + * @member {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode} exclusionDurationMode + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.exclusionDurationMode = 0; + + /** + * Audience filterClauses. + * @member {Array.} filterClauses + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.filterClauses = $util.emptyArray; + + /** + * Creates a new Audience instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary instance + * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Audience} Audience instance */ - PropertySummary.create = function create(properties) { - return new PropertySummary(properties); + Audience.create = function create(properties) { + return new Audience(properties); }; /** - * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PropertySummary.encode = function encode(message, writer) { + Audience.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.propertyType != null && Object.hasOwnProperty.call(message, "propertyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.propertyType); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.membershipDurationDays != null && Object.hasOwnProperty.call(message, "membershipDurationDays")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.membershipDurationDays); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.adsPersonalizationEnabled); + if (message.eventTrigger != null && Object.hasOwnProperty.call(message, "eventTrigger")) + $root.google.analytics.admin.v1alpha.AudienceEventTrigger.encode(message.eventTrigger, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.exclusionDurationMode != null && Object.hasOwnProperty.call(message, "exclusionDurationMode")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.exclusionDurationMode); + if (message.filterClauses != null && message.filterClauses.length) + for (var i = 0; i < message.filterClauses.length; ++i) + $root.google.analytics.admin.v1alpha.AudienceFilterClause.encode(message.filterClauses[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { + Audience.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PropertySummary message from the specified reader or buffer. + * Decodes an Audience message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.Audience} Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PropertySummary.decode = function decode(reader, length) { + Audience.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.PropertySummary(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Audience(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.property = reader.string(); + message.name = reader.string(); break; } case 2: { @@ -41157,11 +39491,29 @@ break; } case 3: { - message.propertyType = reader.int32(); + message.description = reader.string(); break; } case 4: { - message.parent = reader.string(); + message.membershipDurationDays = reader.int32(); + break; + } + case 5: { + message.adsPersonalizationEnabled = reader.bool(); + break; + } + case 6: { + message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.decode(reader, reader.uint32()); + break; + } + case 7: { + message.exclusionDurationMode = reader.int32(); + break; + } + case 8: { + if (!(message.filterClauses && message.filterClauses.length)) + message.filterClauses = []; + message.filterClauses.push($root.google.analytics.admin.v1alpha.AudienceFilterClause.decode(reader, reader.uint32())); break; } default: @@ -41173,178 +39525,499 @@ }; /** - * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * Decodes an Audience message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.Audience} Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PropertySummary.decodeDelimited = function decodeDelimited(reader) { + Audience.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PropertySummary message. + * Verifies an Audience message. * @function verify - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PropertySummary.verify = function verify(message) { + Audience.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.propertyType != null && message.hasOwnProperty("propertyType")) - switch (message.propertyType) { + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) + if (!$util.isInteger(message.membershipDurationDays)) + return "membershipDurationDays: integer expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + if (typeof message.adsPersonalizationEnabled !== "boolean") + return "adsPersonalizationEnabled: boolean expected"; + if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) { + var error = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.verify(message.eventTrigger); + if (error) + return "eventTrigger." + error; + } + if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) + switch (message.exclusionDurationMode) { default: - return "propertyType: enum value expected"; + return "exclusionDurationMode: enum value expected"; case 0: case 1: case 2: - case 3: break; } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.filterClauses != null && message.hasOwnProperty("filterClauses")) { + if (!Array.isArray(message.filterClauses)) + return "filterClauses: array expected"; + for (var i = 0; i < message.filterClauses.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterClause.verify(message.filterClauses[i]); + if (error) + return "filterClauses." + error; + } + } return null; }; /** - * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * Creates an Audience message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @returns {google.analytics.admin.v1alpha.Audience} Audience */ - PropertySummary.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.PropertySummary) + Audience.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Audience) return object; - var message = new $root.google.analytics.admin.v1alpha.PropertySummary(); - if (object.property != null) - message.property = String(object.property); + var message = new $root.google.analytics.admin.v1alpha.Audience(); + if (object.name != null) + message.name = String(object.name); if (object.displayName != null) message.displayName = String(object.displayName); - switch (object.propertyType) { + if (object.description != null) + message.description = String(object.description); + if (object.membershipDurationDays != null) + message.membershipDurationDays = object.membershipDurationDays | 0; + if (object.adsPersonalizationEnabled != null) + message.adsPersonalizationEnabled = Boolean(object.adsPersonalizationEnabled); + if (object.eventTrigger != null) { + if (typeof object.eventTrigger !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Audience.eventTrigger: object expected"); + message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.fromObject(object.eventTrigger); + } + switch (object.exclusionDurationMode) { default: - if (typeof object.propertyType === "number") { - message.propertyType = object.propertyType; + if (typeof object.exclusionDurationMode === "number") { + message.exclusionDurationMode = object.exclusionDurationMode; break; } break; - case "PROPERTY_TYPE_UNSPECIFIED": + case "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED": case 0: - message.propertyType = 0; + message.exclusionDurationMode = 0; break; - case "PROPERTY_TYPE_ORDINARY": + case "EXCLUDE_TEMPORARILY": case 1: - message.propertyType = 1; + message.exclusionDurationMode = 1; break; - case "PROPERTY_TYPE_SUBPROPERTY": + case "EXCLUDE_PERMANENTLY": case 2: - message.propertyType = 2; - break; - case "PROPERTY_TYPE_ROLLUP": - case 3: - message.propertyType = 3; + message.exclusionDurationMode = 2; break; } - if (object.parent != null) - message.parent = String(object.parent); + if (object.filterClauses) { + if (!Array.isArray(object.filterClauses)) + throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: array expected"); + message.filterClauses = []; + for (var i = 0; i < object.filterClauses.length; ++i) { + if (typeof object.filterClauses[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: object expected"); + message.filterClauses[i] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.fromObject(object.filterClauses[i]); + } + } return message; }; /** - * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * Creates a plain object from an Audience message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.PropertySummary} message PropertySummary + * @param {google.analytics.admin.v1alpha.Audience} message Audience * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PropertySummary.toObject = function toObject(message, options) { + Audience.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.filterClauses = []; if (options.defaults) { - object.property = ""; + object.name = ""; object.displayName = ""; - object.propertyType = options.enums === String ? "PROPERTY_TYPE_UNSPECIFIED" : 0; - object.parent = ""; + object.description = ""; + object.membershipDurationDays = 0; + object.adsPersonalizationEnabled = false; + object.eventTrigger = null; + object.exclusionDurationMode = options.enums === String ? "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED" : 0; } - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.propertyType != null && message.hasOwnProperty("propertyType")) - object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] === undefined ? message.propertyType : $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) + object.membershipDurationDays = message.membershipDurationDays; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = message.adsPersonalizationEnabled; + if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) + object.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.toObject(message.eventTrigger, options); + if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) + object.exclusionDurationMode = options.enums === String ? $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] === undefined ? message.exclusionDurationMode : $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] : message.exclusionDurationMode; + if (message.filterClauses && message.filterClauses.length) { + object.filterClauses = []; + for (var j = 0; j < message.filterClauses.length; ++j) + object.filterClauses[j] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.toObject(message.filterClauses[j], options); + } return object; }; /** - * Converts this PropertySummary to JSON. + * Converts this Audience to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @instance * @returns {Object.} JSON object */ - PropertySummary.prototype.toJSON = function toJSON() { + Audience.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PropertySummary + * Gets the default type url for Audience * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.PropertySummary + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PropertySummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Audience.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.PropertySummary"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.Audience"; }; - return PropertySummary; + /** + * AudienceExclusionDurationMode enum. + * @name google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + * @enum {number} + * @property {number} AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED=0 AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED value + * @property {number} EXCLUDE_TEMPORARILY=1 EXCLUDE_TEMPORARILY value + * @property {number} EXCLUDE_PERMANENTLY=2 EXCLUDE_PERMANENTLY value + */ + Audience.AudienceExclusionDurationMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXCLUDE_TEMPORARILY"] = 1; + values[valuesById[2] = "EXCLUDE_PERMANENTLY"] = 2; + return values; + })(); + + return Audience; })(); - v1alpha.MeasurementProtocolSecret = (function() { + /** + * IndustryCategory enum. + * @name google.analytics.admin.v1alpha.IndustryCategory + * @enum {number} + * @property {number} INDUSTRY_CATEGORY_UNSPECIFIED=0 INDUSTRY_CATEGORY_UNSPECIFIED value + * @property {number} AUTOMOTIVE=1 AUTOMOTIVE value + * @property {number} BUSINESS_AND_INDUSTRIAL_MARKETS=2 BUSINESS_AND_INDUSTRIAL_MARKETS value + * @property {number} FINANCE=3 FINANCE value + * @property {number} HEALTHCARE=4 HEALTHCARE value + * @property {number} TECHNOLOGY=5 TECHNOLOGY value + * @property {number} TRAVEL=6 TRAVEL value + * @property {number} OTHER=7 OTHER value + * @property {number} ARTS_AND_ENTERTAINMENT=8 ARTS_AND_ENTERTAINMENT value + * @property {number} BEAUTY_AND_FITNESS=9 BEAUTY_AND_FITNESS value + * @property {number} BOOKS_AND_LITERATURE=10 BOOKS_AND_LITERATURE value + * @property {number} FOOD_AND_DRINK=11 FOOD_AND_DRINK value + * @property {number} GAMES=12 GAMES value + * @property {number} HOBBIES_AND_LEISURE=13 HOBBIES_AND_LEISURE value + * @property {number} HOME_AND_GARDEN=14 HOME_AND_GARDEN value + * @property {number} INTERNET_AND_TELECOM=15 INTERNET_AND_TELECOM value + * @property {number} LAW_AND_GOVERNMENT=16 LAW_AND_GOVERNMENT value + * @property {number} NEWS=17 NEWS value + * @property {number} ONLINE_COMMUNITIES=18 ONLINE_COMMUNITIES value + * @property {number} PEOPLE_AND_SOCIETY=19 PEOPLE_AND_SOCIETY value + * @property {number} PETS_AND_ANIMALS=20 PETS_AND_ANIMALS value + * @property {number} REAL_ESTATE=21 REAL_ESTATE value + * @property {number} REFERENCE=22 REFERENCE value + * @property {number} SCIENCE=23 SCIENCE value + * @property {number} SPORTS=24 SPORTS value + * @property {number} JOBS_AND_EDUCATION=25 JOBS_AND_EDUCATION value + * @property {number} SHOPPING=26 SHOPPING value + */ + v1alpha.IndustryCategory = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDUSTRY_CATEGORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTOMOTIVE"] = 1; + values[valuesById[2] = "BUSINESS_AND_INDUSTRIAL_MARKETS"] = 2; + values[valuesById[3] = "FINANCE"] = 3; + values[valuesById[4] = "HEALTHCARE"] = 4; + values[valuesById[5] = "TECHNOLOGY"] = 5; + values[valuesById[6] = "TRAVEL"] = 6; + values[valuesById[7] = "OTHER"] = 7; + values[valuesById[8] = "ARTS_AND_ENTERTAINMENT"] = 8; + values[valuesById[9] = "BEAUTY_AND_FITNESS"] = 9; + values[valuesById[10] = "BOOKS_AND_LITERATURE"] = 10; + values[valuesById[11] = "FOOD_AND_DRINK"] = 11; + values[valuesById[12] = "GAMES"] = 12; + values[valuesById[13] = "HOBBIES_AND_LEISURE"] = 13; + values[valuesById[14] = "HOME_AND_GARDEN"] = 14; + values[valuesById[15] = "INTERNET_AND_TELECOM"] = 15; + values[valuesById[16] = "LAW_AND_GOVERNMENT"] = 16; + values[valuesById[17] = "NEWS"] = 17; + values[valuesById[18] = "ONLINE_COMMUNITIES"] = 18; + values[valuesById[19] = "PEOPLE_AND_SOCIETY"] = 19; + values[valuesById[20] = "PETS_AND_ANIMALS"] = 20; + values[valuesById[21] = "REAL_ESTATE"] = 21; + values[valuesById[22] = "REFERENCE"] = 22; + values[valuesById[23] = "SCIENCE"] = 23; + values[valuesById[24] = "SPORTS"] = 24; + values[valuesById[25] = "JOBS_AND_EDUCATION"] = 25; + values[valuesById[26] = "SHOPPING"] = 26; + return values; + })(); + + /** + * ServiceLevel enum. + * @name google.analytics.admin.v1alpha.ServiceLevel + * @enum {number} + * @property {number} SERVICE_LEVEL_UNSPECIFIED=0 SERVICE_LEVEL_UNSPECIFIED value + * @property {number} GOOGLE_ANALYTICS_STANDARD=1 GOOGLE_ANALYTICS_STANDARD value + * @property {number} GOOGLE_ANALYTICS_360=2 GOOGLE_ANALYTICS_360 value + */ + v1alpha.ServiceLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SERVICE_LEVEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_ANALYTICS_STANDARD"] = 1; + values[valuesById[2] = "GOOGLE_ANALYTICS_360"] = 2; + return values; + })(); + + /** + * ActorType enum. + * @name google.analytics.admin.v1alpha.ActorType + * @enum {number} + * @property {number} ACTOR_TYPE_UNSPECIFIED=0 ACTOR_TYPE_UNSPECIFIED value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} SUPPORT=3 SUPPORT value + */ + v1alpha.ActorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTOR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "SUPPORT"] = 3; + return values; + })(); + + /** + * ActionType enum. + * @name google.analytics.admin.v1alpha.ActionType + * @enum {number} + * @property {number} ACTION_TYPE_UNSPECIFIED=0 ACTION_TYPE_UNSPECIFIED value + * @property {number} CREATED=1 CREATED value + * @property {number} UPDATED=2 UPDATED value + * @property {number} DELETED=3 DELETED value + */ + v1alpha.ActionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATED"] = 1; + values[valuesById[2] = "UPDATED"] = 2; + values[valuesById[3] = "DELETED"] = 3; + return values; + })(); + + /** + * ChangeHistoryResourceType enum. + * @name google.analytics.admin.v1alpha.ChangeHistoryResourceType + * @enum {number} + * @property {number} CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED=0 CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED value + * @property {number} ACCOUNT=1 ACCOUNT value + * @property {number} PROPERTY=2 PROPERTY value + * @property {number} FIREBASE_LINK=6 FIREBASE_LINK value + * @property {number} GOOGLE_ADS_LINK=7 GOOGLE_ADS_LINK value + * @property {number} GOOGLE_SIGNALS_SETTINGS=8 GOOGLE_SIGNALS_SETTINGS value + * @property {number} CONVERSION_EVENT=9 CONVERSION_EVENT value + * @property {number} MEASUREMENT_PROTOCOL_SECRET=10 MEASUREMENT_PROTOCOL_SECRET value + * @property {number} CUSTOM_DIMENSION=11 CUSTOM_DIMENSION value + * @property {number} CUSTOM_METRIC=12 CUSTOM_METRIC value + * @property {number} DATA_RETENTION_SETTINGS=13 DATA_RETENTION_SETTINGS value + * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK=14 DISPLAY_VIDEO_360_ADVERTISER_LINK value + * @property {number} DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL=15 DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL value + * @property {number} SEARCH_ADS_360_LINK=16 SEARCH_ADS_360_LINK value + * @property {number} DATA_STREAM=18 DATA_STREAM value + * @property {number} ATTRIBUTION_SETTINGS=20 ATTRIBUTION_SETTINGS value + * @property {number} EXPANDED_DATA_SET=21 EXPANDED_DATA_SET value + * @property {number} CHANNEL_GROUP=22 CHANNEL_GROUP value + */ + v1alpha.ChangeHistoryResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACCOUNT"] = 1; + values[valuesById[2] = "PROPERTY"] = 2; + values[valuesById[6] = "FIREBASE_LINK"] = 6; + values[valuesById[7] = "GOOGLE_ADS_LINK"] = 7; + values[valuesById[8] = "GOOGLE_SIGNALS_SETTINGS"] = 8; + values[valuesById[9] = "CONVERSION_EVENT"] = 9; + values[valuesById[10] = "MEASUREMENT_PROTOCOL_SECRET"] = 10; + values[valuesById[11] = "CUSTOM_DIMENSION"] = 11; + values[valuesById[12] = "CUSTOM_METRIC"] = 12; + values[valuesById[13] = "DATA_RETENTION_SETTINGS"] = 13; + values[valuesById[14] = "DISPLAY_VIDEO_360_ADVERTISER_LINK"] = 14; + values[valuesById[15] = "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL"] = 15; + values[valuesById[16] = "SEARCH_ADS_360_LINK"] = 16; + values[valuesById[18] = "DATA_STREAM"] = 18; + values[valuesById[20] = "ATTRIBUTION_SETTINGS"] = 20; + values[valuesById[21] = "EXPANDED_DATA_SET"] = 21; + values[valuesById[22] = "CHANNEL_GROUP"] = 22; + return values; + })(); + + /** + * GoogleSignalsState enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsState + * @enum {number} + * @property {number} GOOGLE_SIGNALS_STATE_UNSPECIFIED=0 GOOGLE_SIGNALS_STATE_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_ENABLED=1 GOOGLE_SIGNALS_ENABLED value + * @property {number} GOOGLE_SIGNALS_DISABLED=2 GOOGLE_SIGNALS_DISABLED value + */ + v1alpha.GoogleSignalsState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_SIGNALS_ENABLED"] = 1; + values[valuesById[2] = "GOOGLE_SIGNALS_DISABLED"] = 2; + return values; + })(); + + /** + * GoogleSignalsConsent enum. + * @name google.analytics.admin.v1alpha.GoogleSignalsConsent + * @enum {number} + * @property {number} GOOGLE_SIGNALS_CONSENT_UNSPECIFIED=0 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED value + * @property {number} GOOGLE_SIGNALS_CONSENT_CONSENTED=2 GOOGLE_SIGNALS_CONSENT_CONSENTED value + * @property {number} GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED=1 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED value + */ + v1alpha.GoogleSignalsConsent = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED"] = 0; + values[valuesById[2] = "GOOGLE_SIGNALS_CONSENT_CONSENTED"] = 2; + values[valuesById[1] = "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED"] = 1; + return values; + })(); + + /** + * LinkProposalInitiatingProduct enum. + * @name google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + * @enum {number} + * @property {number} LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED=0 LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED value + * @property {number} GOOGLE_ANALYTICS=1 GOOGLE_ANALYTICS value + * @property {number} LINKED_PRODUCT=2 LINKED_PRODUCT value + */ + v1alpha.LinkProposalInitiatingProduct = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_ANALYTICS"] = 1; + values[valuesById[2] = "LINKED_PRODUCT"] = 2; + return values; + })(); + + /** + * LinkProposalState enum. + * @name google.analytics.admin.v1alpha.LinkProposalState + * @enum {number} + * @property {number} LINK_PROPOSAL_STATE_UNSPECIFIED=0 LINK_PROPOSAL_STATE_UNSPECIFIED value + * @property {number} AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS=1 AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS value + * @property {number} AWAITING_REVIEW_FROM_LINKED_PRODUCT=2 AWAITING_REVIEW_FROM_LINKED_PRODUCT value + * @property {number} WITHDRAWN=3 WITHDRAWN value + * @property {number} DECLINED=4 DECLINED value + * @property {number} EXPIRED=5 EXPIRED value + * @property {number} OBSOLETE=6 OBSOLETE value + */ + v1alpha.LinkProposalState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LINK_PROPOSAL_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS"] = 1; + values[valuesById[2] = "AWAITING_REVIEW_FROM_LINKED_PRODUCT"] = 2; + values[valuesById[3] = "WITHDRAWN"] = 3; + values[valuesById[4] = "DECLINED"] = 4; + values[valuesById[5] = "EXPIRED"] = 5; + values[valuesById[6] = "OBSOLETE"] = 6; + return values; + })(); + + /** + * PropertyType enum. + * @name google.analytics.admin.v1alpha.PropertyType + * @enum {number} + * @property {number} PROPERTY_TYPE_UNSPECIFIED=0 PROPERTY_TYPE_UNSPECIFIED value + * @property {number} PROPERTY_TYPE_ORDINARY=1 PROPERTY_TYPE_ORDINARY value + * @property {number} PROPERTY_TYPE_SUBPROPERTY=2 PROPERTY_TYPE_SUBPROPERTY value + * @property {number} PROPERTY_TYPE_ROLLUP=3 PROPERTY_TYPE_ROLLUP value + */ + v1alpha.PropertyType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROPERTY_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROPERTY_TYPE_ORDINARY"] = 1; + values[valuesById[2] = "PROPERTY_TYPE_SUBPROPERTY"] = 2; + values[valuesById[3] = "PROPERTY_TYPE_ROLLUP"] = 3; + return values; + })(); + + v1alpha.Account = (function() { /** - * Properties of a MeasurementProtocolSecret. + * Properties of an Account. * @memberof google.analytics.admin.v1alpha - * @interface IMeasurementProtocolSecret - * @property {string|null} [name] MeasurementProtocolSecret name - * @property {string|null} [displayName] MeasurementProtocolSecret displayName - * @property {string|null} [secretValue] MeasurementProtocolSecret secretValue + * @interface IAccount + * @property {string|null} [name] Account name + * @property {google.protobuf.ITimestamp|null} [createTime] Account createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Account updateTime + * @property {string|null} [displayName] Account displayName + * @property {string|null} [regionCode] Account regionCode + * @property {boolean|null} [deleted] Account deleted */ /** - * Constructs a new MeasurementProtocolSecret. + * Constructs a new Account. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a MeasurementProtocolSecret. - * @implements IMeasurementProtocolSecret + * @classdesc Represents an Account. + * @implements IAccount * @constructor - * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set */ - function MeasurementProtocolSecret(properties) { + function Account(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41352,90 +40025,120 @@ } /** - * MeasurementProtocolSecret name. + * Account name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - MeasurementProtocolSecret.prototype.name = ""; + Account.prototype.name = ""; /** - * MeasurementProtocolSecret displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * Account createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - MeasurementProtocolSecret.prototype.displayName = ""; + Account.prototype.createTime = null; /** - * MeasurementProtocolSecret secretValue. - * @member {string} secretValue - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * Account updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Account * @instance */ - MeasurementProtocolSecret.prototype.secretValue = ""; + Account.prototype.updateTime = null; /** - * Creates a new MeasurementProtocolSecret instance using the specified properties. + * Account displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.displayName = ""; + + /** + * Account regionCode. + * @member {string} regionCode + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.regionCode = ""; + + /** + * Account deleted. + * @member {boolean} deleted + * @memberof google.analytics.admin.v1alpha.Account + * @instance + */ + Account.prototype.deleted = false; + + /** + * Creates a new Account instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret instance + * @param {google.analytics.admin.v1alpha.IAccount=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Account} Account instance */ - MeasurementProtocolSecret.create = function create(properties) { - return new MeasurementProtocolSecret(properties); + Account.create = function create(properties) { + return new Account(properties); }; /** - * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * Encodes the specified Account message. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MeasurementProtocolSecret.encode = function encode(message, writer) { + Account.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.secretValue != null && Object.hasOwnProperty.call(message, "secretValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.secretValue); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.regionCode); + if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deleted); return writer; }; /** - * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * Encodes the specified Account message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Account.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAccount} message Account message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MeasurementProtocolSecret.encodeDelimited = function encodeDelimited(message, writer) { + Account.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * Decodes an Account message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @returns {google.analytics.admin.v1alpha.Account} Account * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MeasurementProtocolSecret.decode = function decode(reader, length) { + Account.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Account(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -41444,11 +40147,23 @@ break; } case 2: { - message.displayName = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 3: { - message.secretValue = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.displayName = reader.string(); + break; + } + case 5: { + message.regionCode = reader.string(); + break; + } + case 6: { + message.deleted = reader.bool(); break; } default: @@ -41460,145 +40175,185 @@ }; /** - * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * Decodes an Account message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @returns {google.analytics.admin.v1alpha.Account} Account * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MeasurementProtocolSecret.decodeDelimited = function decodeDelimited(reader) { + Account.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MeasurementProtocolSecret message. + * Verifies an Account message. * @function verify - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MeasurementProtocolSecret.verify = function verify(message) { + Account.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.secretValue != null && message.hasOwnProperty("secretValue")) - if (!$util.isString(message.secretValue)) - return "secretValue: string expected"; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + if (!$util.isString(message.regionCode)) + return "regionCode: string expected"; + if (message.deleted != null && message.hasOwnProperty("deleted")) + if (typeof message.deleted !== "boolean") + return "deleted: boolean expected"; return null; }; /** - * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * Creates an Account message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @returns {google.analytics.admin.v1alpha.Account} Account */ - MeasurementProtocolSecret.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret) + Account.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Account) return object; - var message = new $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); + var message = new $root.google.analytics.admin.v1alpha.Account(); if (object.name != null) message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Account.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } if (object.displayName != null) message.displayName = String(object.displayName); - if (object.secretValue != null) - message.secretValue = String(object.secretValue); + if (object.regionCode != null) + message.regionCode = String(object.regionCode); + if (object.deleted != null) + message.deleted = Boolean(object.deleted); return message; }; /** - * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * Creates a plain object from an Account message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @static - * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} message MeasurementProtocolSecret + * @param {google.analytics.admin.v1alpha.Account} message Account * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MeasurementProtocolSecret.toObject = function toObject(message, options) { + Account.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; + object.createTime = null; + object.updateTime = null; object.displayName = ""; - object.secretValue = ""; + object.regionCode = ""; + object.deleted = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.secretValue != null && message.hasOwnProperty("secretValue")) - object.secretValue = message.secretValue; + if (message.regionCode != null && message.hasOwnProperty("regionCode")) + object.regionCode = message.regionCode; + if (message.deleted != null && message.hasOwnProperty("deleted")) + object.deleted = message.deleted; return object; }; /** - * Converts this MeasurementProtocolSecret to JSON. + * Converts this Account to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @instance * @returns {Object.} JSON object */ - MeasurementProtocolSecret.prototype.toJSON = function toJSON() { + Account.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MeasurementProtocolSecret + * Gets the default type url for Account * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.Account * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MeasurementProtocolSecret.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Account.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.MeasurementProtocolSecret"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.Account"; }; - return MeasurementProtocolSecret; + return Account; })(); - v1alpha.ChangeHistoryEvent = (function() { + v1alpha.Property = (function() { /** - * Properties of a ChangeHistoryEvent. + * Properties of a Property. * @memberof google.analytics.admin.v1alpha - * @interface IChangeHistoryEvent - * @property {string|null} [id] ChangeHistoryEvent id - * @property {google.protobuf.ITimestamp|null} [changeTime] ChangeHistoryEvent changeTime - * @property {google.analytics.admin.v1alpha.ActorType|null} [actorType] ChangeHistoryEvent actorType - * @property {string|null} [userActorEmail] ChangeHistoryEvent userActorEmail - * @property {boolean|null} [changesFiltered] ChangeHistoryEvent changesFiltered - * @property {Array.|null} [changes] ChangeHistoryEvent changes + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.analytics.admin.v1alpha.PropertyType|null} [propertyType] Property propertyType + * @property {google.protobuf.ITimestamp|null} [createTime] Property createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Property updateTime + * @property {string|null} [parent] Property parent + * @property {string|null} [displayName] Property displayName + * @property {google.analytics.admin.v1alpha.IndustryCategory|null} [industryCategory] Property industryCategory + * @property {string|null} [timeZone] Property timeZone + * @property {string|null} [currencyCode] Property currencyCode + * @property {google.analytics.admin.v1alpha.ServiceLevel|null} [serviceLevel] Property serviceLevel + * @property {google.protobuf.ITimestamp|null} [deleteTime] Property deleteTime + * @property {google.protobuf.ITimestamp|null} [expireTime] Property expireTime + * @property {string|null} [account] Property account */ /** - * Constructs a new ChangeHistoryEvent. + * Constructs a new Property. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChangeHistoryEvent. - * @implements IChangeHistoryEvent + * @classdesc Represents a Property. + * @implements IProperty * @constructor - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set */ - function ChangeHistoryEvent(properties) { - this.changes = []; + function Property(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41606,148 +40361,243 @@ } /** - * ChangeHistoryEvent id. - * @member {string} id - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Property name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryEvent.prototype.id = ""; + Property.prototype.name = ""; /** - * ChangeHistoryEvent changeTime. - * @member {google.protobuf.ITimestamp|null|undefined} changeTime - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Property propertyType. + * @member {google.analytics.admin.v1alpha.PropertyType} propertyType + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryEvent.prototype.changeTime = null; + Property.prototype.propertyType = 0; /** - * ChangeHistoryEvent actorType. - * @member {google.analytics.admin.v1alpha.ActorType} actorType - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Property createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryEvent.prototype.actorType = 0; + Property.prototype.createTime = null; /** - * ChangeHistoryEvent userActorEmail. - * @member {string} userActorEmail - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Property updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryEvent.prototype.userActorEmail = ""; + Property.prototype.updateTime = null; /** - * ChangeHistoryEvent changesFiltered. - * @member {boolean} changesFiltered - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Property parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryEvent.prototype.changesFiltered = false; + Property.prototype.parent = ""; /** - * ChangeHistoryEvent changes. - * @member {Array.} changes - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * Property displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Property * @instance */ - ChangeHistoryEvent.prototype.changes = $util.emptyArray; + Property.prototype.displayName = ""; /** - * Creates a new ChangeHistoryEvent instance using the specified properties. + * Property industryCategory. + * @member {google.analytics.admin.v1alpha.IndustryCategory} industryCategory + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.industryCategory = 0; + + /** + * Property timeZone. + * @member {string} timeZone + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.timeZone = ""; + + /** + * Property currencyCode. + * @member {string} currencyCode + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.currencyCode = ""; + + /** + * Property serviceLevel. + * @member {google.analytics.admin.v1alpha.ServiceLevel} serviceLevel + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.serviceLevel = 0; + + /** + * Property deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.deleteTime = null; + + /** + * Property expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.expireTime = null; + + /** + * Property account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.Property + * @instance + */ + Property.prototype.account = ""; + + /** + * Creates a new Property instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent instance + * @param {google.analytics.admin.v1alpha.IProperty=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Property} Property instance */ - ChangeHistoryEvent.create = function create(properties) { - return new ChangeHistoryEvent(properties); + Property.create = function create(properties) { + return new Property(properties); }; /** - * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * Encodes the specified Property message. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryEvent.encode = function encode(message, writer) { + Property.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.changeTime != null && Object.hasOwnProperty.call(message, "changeTime")) - $root.google.protobuf.Timestamp.encode(message.changeTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.actorType != null && Object.hasOwnProperty.call(message, "actorType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actorType); - if (message.userActorEmail != null && Object.hasOwnProperty.call(message, "userActorEmail")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.userActorEmail); - if (message.changesFiltered != null && Object.hasOwnProperty.call(message, "changesFiltered")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.changesFiltered); - if (message.changes != null && message.changes.length) - for (var i = 0; i < message.changes.length; ++i) - $root.google.analytics.admin.v1alpha.ChangeHistoryChange.encode(message.changes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parent); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName); + if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.industryCategory); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.timeZone); + if (message.currencyCode != null && Object.hasOwnProperty.call(message, "currencyCode")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.currencyCode); + if (message.serviceLevel != null && Object.hasOwnProperty.call(message, "serviceLevel")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.serviceLevel); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.account); + if (message.propertyType != null && Object.hasOwnProperty.call(message, "propertyType")) + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.propertyType); return writer; }; /** - * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Property.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {google.analytics.admin.v1alpha.IProperty} message Property message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryEvent.encodeDelimited = function encodeDelimited(message, writer) { + Property.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * Decodes a Property message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @returns {google.analytics.admin.v1alpha.Property} Property * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryEvent.decode = function decode(reader, length) { + Property.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Property(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.string(); + message.name = reader.string(); break; } - case 2: { - message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 14: { + message.propertyType = reader.int32(); break; } case 3: { - message.actorType = reader.int32(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 4: { - message.userActorEmail = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.parent = reader.string(); break; } case 5: { - message.changesFiltered = reader.bool(); + message.displayName = reader.string(); break; } case 6: { - if (!(message.changes && message.changes.length)) - message.changes = []; - message.changes.push($root.google.analytics.admin.v1alpha.ChangeHistoryChange.decode(reader, reader.uint32())); + message.industryCategory = reader.int32(); + break; + } + case 7: { + message.timeZone = reader.string(); + break; + } + case 8: { + message.currencyCode = reader.string(); + break; + } + case 10: { + message.serviceLevel = reader.int32(); + break; + } + case 11: { + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.account = reader.string(); break; } default: @@ -41759,218 +40609,443 @@ }; /** - * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * Decodes a Property message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @returns {google.analytics.admin.v1alpha.Property} Property * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryEvent.decodeDelimited = function decodeDelimited(reader) { + Property.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeHistoryEvent message. + * Verifies a Property message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeHistoryEvent.verify = function verify(message) { + Property.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.changeTime != null && message.hasOwnProperty("changeTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.changeTime); - if (error) - return "changeTime." + error; - } - if (message.actorType != null && message.hasOwnProperty("actorType")) - switch (message.actorType) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + switch (message.propertyType) { default: - return "actorType: enum value expected"; + return "propertyType: enum value expected"; case 0: case 1: case 2: case 3: break; } - if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) - if (!$util.isString(message.userActorEmail)) - return "userActorEmail: string expected"; - if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) - if (typeof message.changesFiltered !== "boolean") - return "changesFiltered: boolean expected"; - if (message.changes != null && message.hasOwnProperty("changes")) { - if (!Array.isArray(message.changes)) - return "changes: array expected"; - for (var i = 0; i < message.changes.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.verify(message.changes[i]); - if (error) - return "changes." + error; - } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - return null; - }; - + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + switch (message.industryCategory) { + default: + return "industryCategory: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + break; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + if (!$util.isString(message.currencyCode)) + return "currencyCode: string expected"; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + switch (message.serviceLevel) { + default: + return "serviceLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); + if (error) + return "deleteTime." + error; + } + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + return null; + }; + /** - * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * Creates a Property message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @returns {google.analytics.admin.v1alpha.Property} Property */ - ChangeHistoryEvent.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryEvent) + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Property) return object; - var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); - if (object.id != null) - message.id = String(object.id); - if (object.changeTime != null) { - if (typeof object.changeTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changeTime: object expected"); - message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); + var message = new $root.google.analytics.admin.v1alpha.Property(); + if (object.name != null) + message.name = String(object.name); + switch (object.propertyType) { + default: + if (typeof object.propertyType === "number") { + message.propertyType = object.propertyType; + break; + } + break; + case "PROPERTY_TYPE_UNSPECIFIED": + case 0: + message.propertyType = 0; + break; + case "PROPERTY_TYPE_ORDINARY": + case 1: + message.propertyType = 1; + break; + case "PROPERTY_TYPE_SUBPROPERTY": + case 2: + message.propertyType = 2; + break; + case "PROPERTY_TYPE_ROLLUP": + case 3: + message.propertyType = 3; + break; } - switch (object.actorType) { + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.parent != null) + message.parent = String(object.parent); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.industryCategory) { default: - if (typeof object.actorType === "number") { - message.actorType = object.actorType; + if (typeof object.industryCategory === "number") { + message.industryCategory = object.industryCategory; break; } break; - case "ACTOR_TYPE_UNSPECIFIED": + case "INDUSTRY_CATEGORY_UNSPECIFIED": case 0: - message.actorType = 0; + message.industryCategory = 0; break; - case "USER": + case "AUTOMOTIVE": case 1: - message.actorType = 1; + message.industryCategory = 1; break; - case "SYSTEM": + case "BUSINESS_AND_INDUSTRIAL_MARKETS": case 2: - message.actorType = 2; + message.industryCategory = 2; break; - case "SUPPORT": + case "FINANCE": case 3: - message.actorType = 3; + message.industryCategory = 3; + break; + case "HEALTHCARE": + case 4: + message.industryCategory = 4; + break; + case "TECHNOLOGY": + case 5: + message.industryCategory = 5; + break; + case "TRAVEL": + case 6: + message.industryCategory = 6; + break; + case "OTHER": + case 7: + message.industryCategory = 7; + break; + case "ARTS_AND_ENTERTAINMENT": + case 8: + message.industryCategory = 8; + break; + case "BEAUTY_AND_FITNESS": + case 9: + message.industryCategory = 9; + break; + case "BOOKS_AND_LITERATURE": + case 10: + message.industryCategory = 10; + break; + case "FOOD_AND_DRINK": + case 11: + message.industryCategory = 11; + break; + case "GAMES": + case 12: + message.industryCategory = 12; + break; + case "HOBBIES_AND_LEISURE": + case 13: + message.industryCategory = 13; + break; + case "HOME_AND_GARDEN": + case 14: + message.industryCategory = 14; + break; + case "INTERNET_AND_TELECOM": + case 15: + message.industryCategory = 15; + break; + case "LAW_AND_GOVERNMENT": + case 16: + message.industryCategory = 16; + break; + case "NEWS": + case 17: + message.industryCategory = 17; + break; + case "ONLINE_COMMUNITIES": + case 18: + message.industryCategory = 18; + break; + case "PEOPLE_AND_SOCIETY": + case 19: + message.industryCategory = 19; + break; + case "PETS_AND_ANIMALS": + case 20: + message.industryCategory = 20; + break; + case "REAL_ESTATE": + case 21: + message.industryCategory = 21; + break; + case "REFERENCE": + case 22: + message.industryCategory = 22; + break; + case "SCIENCE": + case 23: + message.industryCategory = 23; + break; + case "SPORTS": + case 24: + message.industryCategory = 24; + break; + case "JOBS_AND_EDUCATION": + case 25: + message.industryCategory = 25; + break; + case "SHOPPING": + case 26: + message.industryCategory = 26; break; } - if (object.userActorEmail != null) - message.userActorEmail = String(object.userActorEmail); - if (object.changesFiltered != null) - message.changesFiltered = Boolean(object.changesFiltered); - if (object.changes) { - if (!Array.isArray(object.changes)) - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: array expected"); - message.changes = []; - for (var i = 0; i < object.changes.length; ++i) { - if (typeof object.changes[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: object expected"); - message.changes[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.fromObject(object.changes[i]); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.currencyCode != null) + message.currencyCode = String(object.currencyCode); + switch (object.serviceLevel) { + default: + if (typeof object.serviceLevel === "number") { + message.serviceLevel = object.serviceLevel; + break; } + break; + case "SERVICE_LEVEL_UNSPECIFIED": + case 0: + message.serviceLevel = 0; + break; + case "GOOGLE_ANALYTICS_STANDARD": + case 1: + message.serviceLevel = 1; + break; + case "GOOGLE_ANALYTICS_360": + case 2: + message.serviceLevel = 2; + break; + } + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + } + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Property.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); } + if (object.account != null) + message.account = String(object.account); return message; }; /** - * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * Creates a plain object from a Property message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryEvent} message ChangeHistoryEvent + * @param {google.analytics.admin.v1alpha.Property} message Property * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeHistoryEvent.toObject = function toObject(message, options) { + Property.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.changes = []; if (options.defaults) { - object.id = ""; - object.changeTime = null; - object.actorType = options.enums === String ? "ACTOR_TYPE_UNSPECIFIED" : 0; - object.userActorEmail = ""; - object.changesFiltered = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.changeTime != null && message.hasOwnProperty("changeTime")) - object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); - if (message.actorType != null && message.hasOwnProperty("actorType")) - object.actorType = options.enums === String ? $root.google.analytics.admin.v1alpha.ActorType[message.actorType] === undefined ? message.actorType : $root.google.analytics.admin.v1alpha.ActorType[message.actorType] : message.actorType; - if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) - object.userActorEmail = message.userActorEmail; - if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) - object.changesFiltered = message.changesFiltered; - if (message.changes && message.changes.length) { - object.changes = []; - for (var j = 0; j < message.changes.length; ++j) - object.changes[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.toObject(message.changes[j], options); + object.name = ""; + object.parent = ""; + object.createTime = null; + object.updateTime = null; + object.displayName = ""; + object.industryCategory = options.enums === String ? "INDUSTRY_CATEGORY_UNSPECIFIED" : 0; + object.timeZone = ""; + object.currencyCode = ""; + object.serviceLevel = options.enums === String ? "SERVICE_LEVEL_UNSPECIFIED" : 0; + object.deleteTime = null; + object.expireTime = null; + object.account = ""; + object.propertyType = options.enums === String ? "PROPERTY_TYPE_UNSPECIFIED" : 0; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) + object.industryCategory = options.enums === String ? $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] === undefined ? message.industryCategory : $root.google.analytics.admin.v1alpha.IndustryCategory[message.industryCategory] : message.industryCategory; + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.currencyCode != null && message.hasOwnProperty("currencyCode")) + object.currencyCode = message.currencyCode; + if (message.serviceLevel != null && message.hasOwnProperty("serviceLevel")) + object.serviceLevel = options.enums === String ? $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] === undefined ? message.serviceLevel : $root.google.analytics.admin.v1alpha.ServiceLevel[message.serviceLevel] : message.serviceLevel; + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] === undefined ? message.propertyType : $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; return object; }; /** - * Converts this ChangeHistoryEvent to JSON. + * Converts this Property to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @instance * @returns {Object.} JSON object */ - ChangeHistoryEvent.prototype.toJSON = function toJSON() { + Property.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeHistoryEvent + * Gets the default type url for Property * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @memberof google.analytics.admin.v1alpha.Property * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeHistoryEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Property.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChangeHistoryEvent"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.Property"; }; - return ChangeHistoryEvent; + return Property; })(); - v1alpha.ChangeHistoryChange = (function() { + v1alpha.DataStream = (function() { /** - * Properties of a ChangeHistoryChange. + * Properties of a DataStream. * @memberof google.analytics.admin.v1alpha - * @interface IChangeHistoryChange - * @property {string|null} [resource] ChangeHistoryChange resource - * @property {google.analytics.admin.v1alpha.ActionType|null} [action] ChangeHistoryChange action - * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceBeforeChange] ChangeHistoryChange resourceBeforeChange - * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceAfterChange] ChangeHistoryChange resourceAfterChange + * @interface IDataStream + * @property {google.analytics.admin.v1alpha.DataStream.IWebStreamData|null} [webStreamData] DataStream webStreamData + * @property {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null} [androidAppStreamData] DataStream androidAppStreamData + * @property {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null} [iosAppStreamData] DataStream iosAppStreamData + * @property {string|null} [name] DataStream name + * @property {google.analytics.admin.v1alpha.DataStream.DataStreamType|null} [type] DataStream type + * @property {string|null} [displayName] DataStream displayName + * @property {google.protobuf.ITimestamp|null} [createTime] DataStream createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] DataStream updateTime */ /** - * Constructs a new ChangeHistoryChange. + * Constructs a new DataStream. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChangeHistoryChange. - * @implements IChangeHistoryChange + * @classdesc Represents a DataStream. + * @implements IDataStream * @constructor - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDataStream=} [properties] Properties to set */ - function ChangeHistoryChange(properties) { + function DataStream(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41978,117 +41053,187 @@ } /** - * ChangeHistoryChange resource. - * @member {string} resource - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * DataStream webStreamData. + * @member {google.analytics.admin.v1alpha.DataStream.IWebStreamData|null|undefined} webStreamData + * @memberof google.analytics.admin.v1alpha.DataStream * @instance */ - ChangeHistoryChange.prototype.resource = ""; + DataStream.prototype.webStreamData = null; /** - * ChangeHistoryChange action. - * @member {google.analytics.admin.v1alpha.ActionType} action - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * DataStream androidAppStreamData. + * @member {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData|null|undefined} androidAppStreamData + * @memberof google.analytics.admin.v1alpha.DataStream * @instance */ - ChangeHistoryChange.prototype.action = 0; + DataStream.prototype.androidAppStreamData = null; /** - * ChangeHistoryChange resourceBeforeChange. - * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceBeforeChange - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * DataStream iosAppStreamData. + * @member {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData|null|undefined} iosAppStreamData + * @memberof google.analytics.admin.v1alpha.DataStream * @instance */ - ChangeHistoryChange.prototype.resourceBeforeChange = null; + DataStream.prototype.iosAppStreamData = null; /** - * ChangeHistoryChange resourceAfterChange. - * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceAfterChange - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * DataStream name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DataStream * @instance */ - ChangeHistoryChange.prototype.resourceAfterChange = null; + DataStream.prototype.name = ""; /** - * Creates a new ChangeHistoryChange instance using the specified properties. + * DataStream type. + * @member {google.analytics.admin.v1alpha.DataStream.DataStreamType} type + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.type = 0; + + /** + * DataStream displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.displayName = ""; + + /** + * DataStream createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.createTime = null; + + /** + * DataStream updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + DataStream.prototype.updateTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DataStream streamData. + * @member {"webStreamData"|"androidAppStreamData"|"iosAppStreamData"|undefined} streamData + * @memberof google.analytics.admin.v1alpha.DataStream + * @instance + */ + Object.defineProperty(DataStream.prototype, "streamData", { + get: $util.oneOfGetter($oneOfFields = ["webStreamData", "androidAppStreamData", "iosAppStreamData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DataStream instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange instance + * @param {google.analytics.admin.v1alpha.IDataStream=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataStream} DataStream instance */ - ChangeHistoryChange.create = function create(properties) { - return new ChangeHistoryChange(properties); + DataStream.create = function create(properties) { + return new DataStream(properties); }; /** - * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * Encodes the specified DataStream message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDataStream} message DataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryChange.encode = function encode(message, writer) { + DataStream.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); - if (message.resourceBeforeChange != null && Object.hasOwnProperty.call(message, "resourceBeforeChange")) - $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceBeforeChange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.resourceAfterChange != null && Object.hasOwnProperty.call(message, "resourceAfterChange")) - $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceAfterChange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.webStreamData != null && Object.hasOwnProperty.call(message, "webStreamData")) + $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.encode(message.webStreamData, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.androidAppStreamData != null && Object.hasOwnProperty.call(message, "androidAppStreamData")) + $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.encode(message.androidAppStreamData, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.iosAppStreamData != null && Object.hasOwnProperty.call(message, "iosAppStreamData")) + $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.encode(message.iosAppStreamData, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; }; /** - * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * Encodes the specified DataStream message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @static - * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDataStream} message DataStream message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryChange.encodeDelimited = function encodeDelimited(message, writer) { + DataStream.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * Decodes a DataStream message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @returns {google.analytics.admin.v1alpha.DataStream} DataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryChange.decode = function decode(reader, length) { + DataStream.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataStream(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 6: { + message.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.decode(reader, reader.uint32()); + break; + } + case 7: { + message.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.decode(reader, reader.uint32()); + break; + } + case 8: { + message.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.decode(reader, reader.uint32()); + break; + } case 1: { - message.resource = reader.string(); + message.name = reader.string(); break; } case 2: { - message.action = reader.int32(); + message.type = reader.int32(); break; } case 3: { - message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; } case 4: { - message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -42100,196 +41245,252 @@ }; /** - * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * Decodes a DataStream message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @returns {google.analytics.admin.v1alpha.DataStream} DataStream * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryChange.decodeDelimited = function decodeDelimited(reader) { + DataStream.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeHistoryChange message. + * Verifies a DataStream message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeHistoryChange.verify = function verify(message) { + DataStream.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.resource != null && message.hasOwnProperty("resource")) - if (!$util.isString(message.resource)) - return "resource: string expected"; - if (message.action != null && message.hasOwnProperty("action")) - switch (message.action) { + var properties = {}; + if (message.webStreamData != null && message.hasOwnProperty("webStreamData")) { + properties.streamData = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.verify(message.webStreamData); + if (error) + return "webStreamData." + error; + } + } + if (message.androidAppStreamData != null && message.hasOwnProperty("androidAppStreamData")) { + if (properties.streamData === 1) + return "streamData: multiple values"; + properties.streamData = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify(message.androidAppStreamData); + if (error) + return "androidAppStreamData." + error; + } + } + if (message.iosAppStreamData != null && message.hasOwnProperty("iosAppStreamData")) { + if (properties.streamData === 1) + return "streamData: multiple values"; + properties.streamData = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify(message.iosAppStreamData); + if (error) + return "iosAppStreamData." + error; + } + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { default: - return "action: enum value expected"; + return "type: enum value expected"; case 0: case 1: case 2: case 3: break; } - if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceBeforeChange); + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "resourceBeforeChange." + error; + return "createTime." + error; } - if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) { - var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceAfterChange); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); if (error) - return "resourceAfterChange." + error; + return "updateTime." + error; } return null; }; /** - * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * Creates a DataStream message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @returns {google.analytics.admin.v1alpha.DataStream} DataStream */ - ChangeHistoryChange.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange) + DataStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataStream) return object; - var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); - if (object.resource != null) - message.resource = String(object.resource); - switch (object.action) { + var message = new $root.google.analytics.admin.v1alpha.DataStream(); + if (object.webStreamData != null) { + if (typeof object.webStreamData !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.webStreamData: object expected"); + message.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.fromObject(object.webStreamData); + } + if (object.androidAppStreamData != null) { + if (typeof object.androidAppStreamData !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.androidAppStreamData: object expected"); + message.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.fromObject(object.androidAppStreamData); + } + if (object.iosAppStreamData != null) { + if (typeof object.iosAppStreamData !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.iosAppStreamData: object expected"); + message.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.fromObject(object.iosAppStreamData); + } + if (object.name != null) + message.name = String(object.name); + switch (object.type) { default: - if (typeof object.action === "number") { - message.action = object.action; + if (typeof object.type === "number") { + message.type = object.type; break; } break; - case "ACTION_TYPE_UNSPECIFIED": + case "DATA_STREAM_TYPE_UNSPECIFIED": case 0: - message.action = 0; + message.type = 0; break; - case "CREATED": + case "WEB_DATA_STREAM": case 1: - message.action = 1; + message.type = 1; break; - case "UPDATED": + case "ANDROID_APP_DATA_STREAM": case 2: - message.action = 2; + message.type = 2; break; - case "DELETED": + case "IOS_APP_DATA_STREAM": case 3: - message.action = 3; + message.type = 3; break; } - if (object.resourceBeforeChange != null) { - if (typeof object.resourceBeforeChange !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceBeforeChange: object expected"); - message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceBeforeChange); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.resourceAfterChange != null) { - if (typeof object.resourceAfterChange !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceAfterChange: object expected"); - message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceAfterChange); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DataStream.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } return message; }; /** - * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * Creates a plain object from a DataStream message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange} message ChangeHistoryChange + * @param {google.analytics.admin.v1alpha.DataStream} message DataStream * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeHistoryChange.toObject = function toObject(message, options) { + DataStream.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.resource = ""; - object.action = options.enums === String ? "ACTION_TYPE_UNSPECIFIED" : 0; - object.resourceBeforeChange = null; - object.resourceAfterChange = null; + object.name = ""; + object.type = options.enums === String ? "DATA_STREAM_TYPE_UNSPECIFIED" : 0; + object.displayName = ""; + object.createTime = null; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.analytics.admin.v1alpha.DataStream.DataStreamType[message.type] === undefined ? message.type : $root.google.analytics.admin.v1alpha.DataStream.DataStreamType[message.type] : message.type; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.webStreamData != null && message.hasOwnProperty("webStreamData")) { + object.webStreamData = $root.google.analytics.admin.v1alpha.DataStream.WebStreamData.toObject(message.webStreamData, options); + if (options.oneofs) + object.streamData = "webStreamData"; + } + if (message.androidAppStreamData != null && message.hasOwnProperty("androidAppStreamData")) { + object.androidAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.toObject(message.androidAppStreamData, options); + if (options.oneofs) + object.streamData = "androidAppStreamData"; + } + if (message.iosAppStreamData != null && message.hasOwnProperty("iosAppStreamData")) { + object.iosAppStreamData = $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.toObject(message.iosAppStreamData, options); + if (options.oneofs) + object.streamData = "iosAppStreamData"; } - if (message.resource != null && message.hasOwnProperty("resource")) - object.resource = message.resource; - if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action] === undefined ? message.action : $root.google.analytics.admin.v1alpha.ActionType[message.action] : message.action; - if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) - object.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); - if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) - object.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceAfterChange, options); return object; }; /** - * Converts this ChangeHistoryChange to JSON. + * Converts this DataStream to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @instance * @returns {Object.} JSON object */ - ChangeHistoryChange.prototype.toJSON = function toJSON() { + DataStream.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeHistoryChange + * Gets the default type url for DataStream * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @memberof google.analytics.admin.v1alpha.DataStream * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeHistoryChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DataStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChangeHistoryChange"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream"; }; - ChangeHistoryChange.ChangeHistoryResource = (function() { + DataStream.WebStreamData = (function() { /** - * Properties of a ChangeHistoryResource. - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange - * @interface IChangeHistoryResource - * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ChangeHistoryResource account - * @property {google.analytics.admin.v1alpha.IProperty|null} [property] ChangeHistoryResource property - * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] ChangeHistoryResource firebaseLink - * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] ChangeHistoryResource googleAdsLink - * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] ChangeHistoryResource googleSignalsSettings - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] ChangeHistoryResource displayVideo_360AdvertiserLink - * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null} [displayVideo_360AdvertiserLinkProposal] ChangeHistoryResource displayVideo_360AdvertiserLinkProposal - * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] ChangeHistoryResource conversionEvent - * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] ChangeHistoryResource measurementProtocolSecret - * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] ChangeHistoryResource customDimension - * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] ChangeHistoryResource customMetric - * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] ChangeHistoryResource dataRetentionSettings - * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] ChangeHistoryResource dataStream - * @property {google.analytics.admin.v1alpha.IAttributionSettings|null} [attributionSettings] ChangeHistoryResource attributionSettings + * Properties of a WebStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @interface IWebStreamData + * @property {string|null} [measurementId] WebStreamData measurementId + * @property {string|null} [firebaseAppId] WebStreamData firebaseAppId + * @property {string|null} [defaultUri] WebStreamData defaultUri */ /** - * Constructs a new ChangeHistoryResource. - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange - * @classdesc Represents a ChangeHistoryResource. - * @implements IChangeHistoryResource + * Constructs a new WebStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @classdesc Represents a WebStreamData. + * @implements IWebStreamData * @constructor - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData=} [properties] Properties to set */ - function ChangeHistoryResource(properties) { + function WebStreamData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42297,271 +41498,103 @@ } /** - * ChangeHistoryResource account. - * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.account = null; - - /** - * ChangeHistoryResource property. - * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.property = null; - - /** - * ChangeHistoryResource firebaseLink. - * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.firebaseLink = null; - - /** - * ChangeHistoryResource googleAdsLink. - * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.googleAdsLink = null; - - /** - * ChangeHistoryResource googleSignalsSettings. - * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.googleSignalsSettings = null; - - /** - * ChangeHistoryResource displayVideo_360AdvertiserLink. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.displayVideo_360AdvertiserLink = null; - - /** - * ChangeHistoryResource displayVideo_360AdvertiserLinkProposal. - * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null|undefined} displayVideo_360AdvertiserLinkProposal - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.displayVideo_360AdvertiserLinkProposal = null; - - /** - * ChangeHistoryResource conversionEvent. - * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.conversionEvent = null; - - /** - * ChangeHistoryResource measurementProtocolSecret. - * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.measurementProtocolSecret = null; - - /** - * ChangeHistoryResource customDimension. - * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.customDimension = null; - - /** - * ChangeHistoryResource customMetric. - * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.customMetric = null; - - /** - * ChangeHistoryResource dataRetentionSettings. - * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - */ - ChangeHistoryResource.prototype.dataRetentionSettings = null; - - /** - * ChangeHistoryResource dataStream. - * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * WebStreamData measurementId. + * @member {string} measurementId + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @instance */ - ChangeHistoryResource.prototype.dataStream = null; + WebStreamData.prototype.measurementId = ""; /** - * ChangeHistoryResource attributionSettings. - * @member {google.analytics.admin.v1alpha.IAttributionSettings|null|undefined} attributionSettings - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * WebStreamData firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @instance */ - ChangeHistoryResource.prototype.attributionSettings = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + WebStreamData.prototype.firebaseAppId = ""; /** - * ChangeHistoryResource resource. - * @member {"account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"dataStream"|"attributionSettings"|undefined} resource - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * WebStreamData defaultUri. + * @member {string} defaultUri + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @instance */ - Object.defineProperty(ChangeHistoryResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["account", "property", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "displayVideo_360AdvertiserLink", "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric", "dataRetentionSettings", "dataStream", "attributionSettings"]), - set: $util.oneOfSetter($oneOfFields) - }); + WebStreamData.prototype.defaultUri = ""; /** - * Creates a new ChangeHistoryResource instance using the specified properties. + * Creates a new WebStreamData instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource instance + * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData instance */ - ChangeHistoryResource.create = function create(properties) { - return new ChangeHistoryResource(properties); + WebStreamData.create = function create(properties) { + return new WebStreamData(properties); }; /** - * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * Encodes the specified WebStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData} message WebStreamData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryResource.encode = function encode(message, writer) { + WebStreamData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.account != null && Object.hasOwnProperty.call(message, "account")) - $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) - $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) - $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) - $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.displayVideo_360AdvertiserLinkProposal != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLinkProposal")) - $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposal, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) - $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) - $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) - $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) - $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) - $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) - $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.attributionSettings != null && Object.hasOwnProperty.call(message, "attributionSettings")) - $root.google.analytics.admin.v1alpha.AttributionSettings.encode(message.attributionSettings, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.measurementId != null && Object.hasOwnProperty.call(message, "measurementId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.measurementId); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.firebaseAppId); + if (message.defaultUri != null && Object.hasOwnProperty.call(message, "defaultUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultUri); return writer; }; /** - * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * Encodes the specified WebStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.WebStreamData.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {google.analytics.admin.v1alpha.DataStream.IWebStreamData} message WebStreamData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeHistoryResource.encodeDelimited = function encodeDelimited(message, writer) { + WebStreamData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * Decodes a WebStreamData message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryResource.decode = function decode(reader, length) { + WebStreamData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataStream.WebStreamData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + message.measurementId = reader.string(); break; } case 2: { - message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); - break; - } - case 6: { - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + message.firebaseAppId = reader.string(); break; } - case 7: { - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); - break; - } - case 8: { - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); - break; - } - case 9: { - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); - break; - } - case 10: { - message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); - break; - } - case 11: { - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); - break; - } - case 12: { - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); - break; - } - case 13: { - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); - break; - } - case 14: { - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); - break; - } - case 15: { - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); - break; - } - case 18: { - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); - break; - } - case 20: { - message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.decode(reader, reader.uint32()); + case 3: { + message.defaultUri = reader.string(); break; } default: @@ -42573,400 +41606,6670 @@ }; /** - * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * Decodes a WebStreamData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeHistoryResource.decodeDelimited = function decodeDelimited(reader) { + WebStreamData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeHistoryResource message. + * Verifies a WebStreamData message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeHistoryResource.verify = function verify(message) { + WebStreamData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.account != null && message.hasOwnProperty("account")) { - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); - if (error) - return "account." + error; - } - } - if (message.property != null && message.hasOwnProperty("property")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); - if (error) - return "property." + error; - } - } - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); - if (error) - return "firebaseLink." + error; - } - } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); - if (error) - return "googleAdsLink." + error; - } - } - if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); - if (error) - return "googleSignalsSettings." + error; - } - } - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); - if (error) - return "displayVideo_360AdvertiserLink." + error; - } - } - if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposal); - if (error) - return "displayVideo_360AdvertiserLinkProposal." + error; - } - } - if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); - if (error) - return "conversionEvent." + error; - } - } - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); - if (error) - return "measurementProtocolSecret." + error; - } - } - if (message.customDimension != null && message.hasOwnProperty("customDimension")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); - if (error) - return "customDimension." + error; - } - } - if (message.customMetric != null && message.hasOwnProperty("customMetric")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); - if (error) - return "customMetric." + error; - } - } - if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); - if (error) - return "dataRetentionSettings." + error; - } - } - if (message.dataStream != null && message.hasOwnProperty("dataStream")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); - if (error) - return "dataStream." + error; - } - } - if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.analytics.admin.v1alpha.AttributionSettings.verify(message.attributionSettings); - if (error) - return "attributionSettings." + error; - } - } + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + if (!$util.isString(message.measurementId)) + return "measurementId: string expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + if (!$util.isString(message.defaultUri)) + return "defaultUri: string expected"; return null; }; /** - * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * Creates a WebStreamData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @returns {google.analytics.admin.v1alpha.DataStream.WebStreamData} WebStreamData */ - ChangeHistoryResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + WebStreamData.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataStream.WebStreamData) return object; - var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); - if (object.account != null) { - if (typeof object.account !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.account: object expected"); - message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); - } - if (object.property != null) { - if (typeof object.property !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.property: object expected"); - message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); - } - if (object.firebaseLink != null) { - if (typeof object.firebaseLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.firebaseLink: object expected"); - message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); - } - if (object.googleAdsLink != null) { - if (typeof object.googleAdsLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleAdsLink: object expected"); - message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); - } - if (object.googleSignalsSettings != null) { - if (typeof object.googleSignalsSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleSignalsSettings: object expected"); - message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); - } - if (object.displayVideo_360AdvertiserLink != null) { - if (typeof object.displayVideo_360AdvertiserLink !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.displayVideo_360AdvertiserLink: object expected"); - message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); - } - if (object.displayVideo_360AdvertiserLinkProposal != null) { - if (typeof object.displayVideo_360AdvertiserLinkProposal !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.displayVideo_360AdvertiserLinkProposal: object expected"); - message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposal); - } - if (object.conversionEvent != null) { - if (typeof object.conversionEvent !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.conversionEvent: object expected"); - message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); - } - if (object.measurementProtocolSecret != null) { - if (typeof object.measurementProtocolSecret !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.measurementProtocolSecret: object expected"); - message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); - } - if (object.customDimension != null) { - if (typeof object.customDimension !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customDimension: object expected"); - message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); - } - if (object.customMetric != null) { - if (typeof object.customMetric !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customMetric: object expected"); - message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); - } - if (object.dataRetentionSettings != null) { - if (typeof object.dataRetentionSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.dataRetentionSettings: object expected"); - message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); - } - if (object.dataStream != null) { - if (typeof object.dataStream !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.dataStream: object expected"); - message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); - } - if (object.attributionSettings != null) { - if (typeof object.attributionSettings !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.attributionSettings: object expected"); - message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.fromObject(object.attributionSettings); - } + var message = new $root.google.analytics.admin.v1alpha.DataStream.WebStreamData(); + if (object.measurementId != null) + message.measurementId = String(object.measurementId); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.defaultUri != null) + message.defaultUri = String(object.defaultUri); return message; }; /** - * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * Creates a plain object from a WebStreamData message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData * @static - * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} message ChangeHistoryResource + * @param {google.analytics.admin.v1alpha.DataStream.WebStreamData} message WebStreamData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeHistoryResource.toObject = function toObject(message, options) { + WebStreamData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.account != null && message.hasOwnProperty("account")) { - object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); - if (options.oneofs) - object.resource = "account"; - } - if (message.property != null && message.hasOwnProperty("property")) { - object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); - if (options.oneofs) - object.resource = "property"; - } - if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { - object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); - if (options.oneofs) - object.resource = "firebaseLink"; - } - if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { - object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); - if (options.oneofs) - object.resource = "googleAdsLink"; - } - if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { - object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); - if (options.oneofs) - object.resource = "googleSignalsSettings"; - } - if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { - object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); - if (options.oneofs) - object.resource = "displayVideo_360AdvertiserLink"; - } - if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { - object.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposal, options); - if (options.oneofs) - object.resource = "displayVideo_360AdvertiserLinkProposal"; - } - if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { - object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); - if (options.oneofs) - object.resource = "conversionEvent"; + if (options.defaults) { + object.measurementId = ""; + object.firebaseAppId = ""; + object.defaultUri = ""; } - if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { - object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); - if (options.oneofs) - object.resource = "measurementProtocolSecret"; + if (message.measurementId != null && message.hasOwnProperty("measurementId")) + object.measurementId = message.measurementId; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.defaultUri != null && message.hasOwnProperty("defaultUri")) + object.defaultUri = message.defaultUri; + return object; + }; + + /** + * Converts this WebStreamData to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @instance + * @returns {Object.} JSON object + */ + WebStreamData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WebStreamData + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataStream.WebStreamData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WebStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (message.customDimension != null && message.hasOwnProperty("customDimension")) { - object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); - if (options.oneofs) - object.resource = "customDimension"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream.WebStreamData"; + }; + + return WebStreamData; + })(); + + DataStream.AndroidAppStreamData = (function() { + + /** + * Properties of an AndroidAppStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @interface IAndroidAppStreamData + * @property {string|null} [firebaseAppId] AndroidAppStreamData firebaseAppId + * @property {string|null} [packageName] AndroidAppStreamData packageName + */ + + /** + * Constructs a new AndroidAppStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @classdesc Represents an AndroidAppStreamData. + * @implements IAndroidAppStreamData + * @constructor + * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData=} [properties] Properties to set + */ + function AndroidAppStreamData(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]]; + } + + /** + * AndroidAppStreamData firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @instance + */ + AndroidAppStreamData.prototype.firebaseAppId = ""; + + /** + * AndroidAppStreamData packageName. + * @member {string} packageName + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @instance + */ + AndroidAppStreamData.prototype.packageName = ""; + + /** + * Creates a new AndroidAppStreamData instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData instance + */ + AndroidAppStreamData.create = function create(properties) { + return new AndroidAppStreamData(properties); + }; + + /** + * Encodes the specified AndroidAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData} message AndroidAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppStreamData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.firebaseAppId); + if (message.packageName != null && Object.hasOwnProperty.call(message, "packageName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.packageName); + return writer; + }; + + /** + * Encodes the specified AndroidAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IAndroidAppStreamData} message AndroidAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AndroidAppStreamData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppStreamData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.firebaseAppId = reader.string(); + break; + } + case 2: { + message.packageName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - if (message.customMetric != null && message.hasOwnProperty("customMetric")) { - object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); - if (options.oneofs) - object.resource = "customMetric"; + return message; + }; + + /** + * Decodes an AndroidAppStreamData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AndroidAppStreamData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AndroidAppStreamData message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AndroidAppStreamData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.packageName != null && message.hasOwnProperty("packageName")) + if (!$util.isString(message.packageName)) + return "packageName: string expected"; + return null; + }; + + /** + * Creates an AndroidAppStreamData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} AndroidAppStreamData + */ + AndroidAppStreamData.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.packageName != null) + message.packageName = String(object.packageName); + return message; + }; + + /** + * Creates a plain object from an AndroidAppStreamData message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} message AndroidAppStreamData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AndroidAppStreamData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.firebaseAppId = ""; + object.packageName = ""; + } + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.packageName != null && message.hasOwnProperty("packageName")) + object.packageName = message.packageName; + return object; + }; + + /** + * Converts this AndroidAppStreamData to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @instance + * @returns {Object.} JSON object + */ + AndroidAppStreamData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AndroidAppStreamData + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AndroidAppStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData"; + }; + + return AndroidAppStreamData; + })(); + + DataStream.IosAppStreamData = (function() { + + /** + * Properties of an IosAppStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @interface IIosAppStreamData + * @property {string|null} [firebaseAppId] IosAppStreamData firebaseAppId + * @property {string|null} [bundleId] IosAppStreamData bundleId + */ + + /** + * Constructs a new IosAppStreamData. + * @memberof google.analytics.admin.v1alpha.DataStream + * @classdesc Represents an IosAppStreamData. + * @implements IIosAppStreamData + * @constructor + * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData=} [properties] Properties to set + */ + function IosAppStreamData(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]]; + } + + /** + * IosAppStreamData firebaseAppId. + * @member {string} firebaseAppId + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @instance + */ + IosAppStreamData.prototype.firebaseAppId = ""; + + /** + * IosAppStreamData bundleId. + * @member {string} bundleId + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @instance + */ + IosAppStreamData.prototype.bundleId = ""; + + /** + * Creates a new IosAppStreamData instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData instance + */ + IosAppStreamData.create = function create(properties) { + return new IosAppStreamData(properties); + }; + + /** + * Encodes the specified IosAppStreamData message. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData} message IosAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppStreamData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.firebaseAppId != null && Object.hasOwnProperty.call(message, "firebaseAppId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.firebaseAppId); + if (message.bundleId != null && Object.hasOwnProperty.call(message, "bundleId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.bundleId); + return writer; + }; + + /** + * Encodes the specified IosAppStreamData message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataStream.IosAppStreamData.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IIosAppStreamData} message IosAppStreamData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IosAppStreamData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IosAppStreamData message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppStreamData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.firebaseAppId = reader.string(); + break; + } + case 2: { + message.bundleId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IosAppStreamData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IosAppStreamData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IosAppStreamData message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IosAppStreamData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + if (!$util.isString(message.firebaseAppId)) + return "firebaseAppId: string expected"; + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + if (!$util.isString(message.bundleId)) + return "bundleId: string expected"; + return null; + }; + + /** + * Creates an IosAppStreamData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} IosAppStreamData + */ + IosAppStreamData.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(); + if (object.firebaseAppId != null) + message.firebaseAppId = String(object.firebaseAppId); + if (object.bundleId != null) + message.bundleId = String(object.bundleId); + return message; + }; + + /** + * Creates a plain object from an IosAppStreamData message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {google.analytics.admin.v1alpha.DataStream.IosAppStreamData} message IosAppStreamData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IosAppStreamData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.firebaseAppId = ""; + object.bundleId = ""; + } + if (message.firebaseAppId != null && message.hasOwnProperty("firebaseAppId")) + object.firebaseAppId = message.firebaseAppId; + if (message.bundleId != null && message.hasOwnProperty("bundleId")) + object.bundleId = message.bundleId; + return object; + }; + + /** + * Converts this IosAppStreamData to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @instance + * @returns {Object.} JSON object + */ + IosAppStreamData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IosAppStreamData + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataStream.IosAppStreamData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IosAppStreamData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataStream.IosAppStreamData"; + }; + + return IosAppStreamData; + })(); + + /** + * DataStreamType enum. + * @name google.analytics.admin.v1alpha.DataStream.DataStreamType + * @enum {number} + * @property {number} DATA_STREAM_TYPE_UNSPECIFIED=0 DATA_STREAM_TYPE_UNSPECIFIED value + * @property {number} WEB_DATA_STREAM=1 WEB_DATA_STREAM value + * @property {number} ANDROID_APP_DATA_STREAM=2 ANDROID_APP_DATA_STREAM value + * @property {number} IOS_APP_DATA_STREAM=3 IOS_APP_DATA_STREAM value + */ + DataStream.DataStreamType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_STREAM_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "WEB_DATA_STREAM"] = 1; + values[valuesById[2] = "ANDROID_APP_DATA_STREAM"] = 2; + values[valuesById[3] = "IOS_APP_DATA_STREAM"] = 3; + return values; + })(); + + return DataStream; + })(); + + v1alpha.UserLink = (function() { + + /** + * Properties of a UserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IUserLink + * @property {string|null} [name] UserLink name + * @property {string|null} [emailAddress] UserLink emailAddress + * @property {Array.|null} [directRoles] UserLink directRoles + */ + + /** + * Constructs a new UserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a UserLink. + * @implements IUserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + */ + function UserLink(properties) { + this.directRoles = []; + 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]]; + } + + /** + * UserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.name = ""; + + /** + * UserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.emailAddress = ""; + + /** + * UserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + */ + UserLink.prototype.directRoles = $util.emptyArray; + + /** + * Creates a new UserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink instance + */ + UserLink.create = function create(properties) { + return new UserLink(properties); + }; + + /** + * Encodes the specified UserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserLink.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + return writer; + }; + + /** + * Encodes the specified UserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.IUserLink} message UserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserLink.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.emailAddress = reader.string(); + break; + } + case 3: { + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserLink.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; + } + return null; + }; + + /** + * Creates a UserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UserLink} UserLink + */ + UserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.UserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.UserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); + } + return message; + }; + + /** + * Creates a plain object from a UserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {google.analytics.admin.v1alpha.UserLink} message UserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.directRoles = []; + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + return object; + }; + + /** + * Converts this UserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UserLink + * @instance + * @returns {Object.} JSON object + */ + UserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UserLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UserLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UserLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UserLink"; + }; + + return UserLink; + })(); + + v1alpha.AuditUserLink = (function() { + + /** + * Properties of an AuditUserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IAuditUserLink + * @property {string|null} [name] AuditUserLink name + * @property {string|null} [emailAddress] AuditUserLink emailAddress + * @property {Array.|null} [directRoles] AuditUserLink directRoles + * @property {Array.|null} [effectiveRoles] AuditUserLink effectiveRoles + */ + + /** + * Constructs a new AuditUserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AuditUserLink. + * @implements IAuditUserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + */ + function AuditUserLink(properties) { + this.directRoles = []; + this.effectiveRoles = []; + 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]]; + } + + /** + * AuditUserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.name = ""; + + /** + * AuditUserLink emailAddress. + * @member {string} emailAddress + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.emailAddress = ""; + + /** + * AuditUserLink directRoles. + * @member {Array.} directRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.directRoles = $util.emptyArray; + + /** + * AuditUserLink effectiveRoles. + * @member {Array.} effectiveRoles + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + */ + AuditUserLink.prototype.effectiveRoles = $util.emptyArray; + + /** + * Creates a new AuditUserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink instance + */ + AuditUserLink.create = function create(properties) { + return new AuditUserLink(properties); + }; + + /** + * Encodes the specified AuditUserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLink.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.emailAddress != null && Object.hasOwnProperty.call(message, "emailAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.emailAddress); + if (message.directRoles != null && message.directRoles.length) + for (var i = 0; i < message.directRoles.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.directRoles[i]); + if (message.effectiveRoles != null && message.effectiveRoles.length) + for (var i = 0; i < message.effectiveRoles.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.effectiveRoles[i]); + return writer; + }; + + /** + * Encodes the specified AuditUserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AuditUserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.IAuditUserLink} message AuditUserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditUserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLink.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.emailAddress = reader.string(); + break; + } + case 3: { + if (!(message.directRoles && message.directRoles.length)) + message.directRoles = []; + message.directRoles.push(reader.string()); + break; + } + case 4: { + if (!(message.effectiveRoles && message.effectiveRoles.length)) + message.effectiveRoles = []; + message.effectiveRoles.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuditUserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditUserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditUserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditUserLink.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + if (!$util.isString(message.emailAddress)) + return "emailAddress: string expected"; + if (message.directRoles != null && message.hasOwnProperty("directRoles")) { + if (!Array.isArray(message.directRoles)) + return "directRoles: array expected"; + for (var i = 0; i < message.directRoles.length; ++i) + if (!$util.isString(message.directRoles[i])) + return "directRoles: string[] expected"; + } + if (message.effectiveRoles != null && message.hasOwnProperty("effectiveRoles")) { + if (!Array.isArray(message.effectiveRoles)) + return "effectiveRoles: array expected"; + for (var i = 0; i < message.effectiveRoles.length; ++i) + if (!$util.isString(message.effectiveRoles[i])) + return "effectiveRoles: string[] expected"; + } + return null; + }; + + /** + * Creates an AuditUserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AuditUserLink} AuditUserLink + */ + AuditUserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AuditUserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.AuditUserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.emailAddress != null) + message.emailAddress = String(object.emailAddress); + if (object.directRoles) { + if (!Array.isArray(object.directRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.directRoles: array expected"); + message.directRoles = []; + for (var i = 0; i < object.directRoles.length; ++i) + message.directRoles[i] = String(object.directRoles[i]); + } + if (object.effectiveRoles) { + if (!Array.isArray(object.effectiveRoles)) + throw TypeError(".google.analytics.admin.v1alpha.AuditUserLink.effectiveRoles: array expected"); + message.effectiveRoles = []; + for (var i = 0; i < object.effectiveRoles.length; ++i) + message.effectiveRoles[i] = String(object.effectiveRoles[i]); + } + return message; + }; + + /** + * Creates a plain object from an AuditUserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {google.analytics.admin.v1alpha.AuditUserLink} message AuditUserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditUserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.directRoles = []; + object.effectiveRoles = []; + } + if (options.defaults) { + object.name = ""; + object.emailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.emailAddress != null && message.hasOwnProperty("emailAddress")) + object.emailAddress = message.emailAddress; + if (message.directRoles && message.directRoles.length) { + object.directRoles = []; + for (var j = 0; j < message.directRoles.length; ++j) + object.directRoles[j] = message.directRoles[j]; + } + if (message.effectiveRoles && message.effectiveRoles.length) { + object.effectiveRoles = []; + for (var j = 0; j < message.effectiveRoles.length; ++j) + object.effectiveRoles[j] = message.effectiveRoles[j]; + } + return object; + }; + + /** + * Converts this AuditUserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @instance + * @returns {Object.} JSON object + */ + AuditUserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AuditUserLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AuditUserLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AuditUserLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AuditUserLink"; + }; + + return AuditUserLink; + })(); + + v1alpha.FirebaseLink = (function() { + + /** + * Properties of a FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @interface IFirebaseLink + * @property {string|null} [name] FirebaseLink name + * @property {string|null} [project] FirebaseLink project + * @property {google.protobuf.ITimestamp|null} [createTime] FirebaseLink createTime + */ + + /** + * Constructs a new FirebaseLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a FirebaseLink. + * @implements IFirebaseLink + * @constructor + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + */ + function FirebaseLink(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]]; + } + + /** + * FirebaseLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.name = ""; + + /** + * FirebaseLink project. + * @member {string} project + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.project = ""; + + /** + * FirebaseLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + */ + FirebaseLink.prototype.createTime = null; + + /** + * Creates a new FirebaseLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink instance + */ + FirebaseLink.create = function create(properties) { + return new FirebaseLink(properties); + }; + + /** + * Encodes the specified FirebaseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FirebaseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FirebaseLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.IFirebaseLink} message FirebaseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FirebaseLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.project = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FirebaseLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FirebaseLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FirebaseLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FirebaseLink.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + return null; + }; + + /** + * Creates a FirebaseLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.FirebaseLink} FirebaseLink + */ + FirebaseLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FirebaseLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.FirebaseLink(); + if (object.name != null) + message.name = String(object.name); + if (object.project != null) + message.project = String(object.project); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.FirebaseLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + return message; + }; + + /** + * Creates a plain object from a FirebaseLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {google.analytics.admin.v1alpha.FirebaseLink} message FirebaseLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FirebaseLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.project = ""; + object.createTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + return object; + }; + + /** + * Converts this FirebaseLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @instance + * @returns {Object.} JSON object + */ + FirebaseLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FirebaseLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.FirebaseLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FirebaseLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.FirebaseLink"; + }; + + return FirebaseLink; + })(); + + v1alpha.GlobalSiteTag = (function() { + + /** + * Properties of a GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @interface IGlobalSiteTag + * @property {string|null} [name] GlobalSiteTag name + * @property {string|null} [snippet] GlobalSiteTag snippet + */ + + /** + * Constructs a new GlobalSiteTag. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GlobalSiteTag. + * @implements IGlobalSiteTag + * @constructor + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + */ + function GlobalSiteTag(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]]; + } + + /** + * GlobalSiteTag name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + */ + GlobalSiteTag.prototype.name = ""; + + /** + * GlobalSiteTag snippet. + * @member {string} snippet + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + */ + GlobalSiteTag.prototype.snippet = ""; + + /** + * Creates a new GlobalSiteTag instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag instance + */ + GlobalSiteTag.create = function create(properties) { + return new GlobalSiteTag(properties); + }; + + /** + * Encodes the specified GlobalSiteTag message. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalSiteTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.snippet != null && Object.hasOwnProperty.call(message, "snippet")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.snippet); + return writer; + }; + + /** + * Encodes the specified GlobalSiteTag message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GlobalSiteTag.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.IGlobalSiteTag} message GlobalSiteTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalSiteTag.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalSiteTag.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.snippet = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalSiteTag message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalSiteTag.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalSiteTag message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalSiteTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.snippet != null && message.hasOwnProperty("snippet")) + if (!$util.isString(message.snippet)) + return "snippet: string expected"; + return null; + }; + + /** + * Creates a GlobalSiteTag message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GlobalSiteTag} GlobalSiteTag + */ + GlobalSiteTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GlobalSiteTag) + return object; + var message = new $root.google.analytics.admin.v1alpha.GlobalSiteTag(); + if (object.name != null) + message.name = String(object.name); + if (object.snippet != null) + message.snippet = String(object.snippet); + return message; + }; + + /** + * Creates a plain object from a GlobalSiteTag message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {google.analytics.admin.v1alpha.GlobalSiteTag} message GlobalSiteTag + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalSiteTag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.snippet = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.snippet != null && message.hasOwnProperty("snippet")) + object.snippet = message.snippet; + return object; + }; + + /** + * Converts this GlobalSiteTag to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @instance + * @returns {Object.} JSON object + */ + GlobalSiteTag.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalSiteTag + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GlobalSiteTag + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalSiteTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GlobalSiteTag"; + }; + + return GlobalSiteTag; + })(); + + v1alpha.GoogleAdsLink = (function() { + + /** + * Properties of a GoogleAdsLink. + * @memberof google.analytics.admin.v1alpha + * @interface IGoogleAdsLink + * @property {string|null} [name] GoogleAdsLink name + * @property {string|null} [customerId] GoogleAdsLink customerId + * @property {boolean|null} [canManageClients] GoogleAdsLink canManageClients + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] GoogleAdsLink adsPersonalizationEnabled + * @property {google.protobuf.ITimestamp|null} [createTime] GoogleAdsLink createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleAdsLink updateTime + * @property {string|null} [creatorEmailAddress] GoogleAdsLink creatorEmailAddress + */ + + /** + * Constructs a new GoogleAdsLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GoogleAdsLink. + * @implements IGoogleAdsLink + * @constructor + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + */ + function GoogleAdsLink(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]]; + } + + /** + * GoogleAdsLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.name = ""; + + /** + * GoogleAdsLink customerId. + * @member {string} customerId + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.customerId = ""; + + /** + * GoogleAdsLink canManageClients. + * @member {boolean} canManageClients + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.canManageClients = false; + + /** + * GoogleAdsLink adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.adsPersonalizationEnabled = null; + + /** + * GoogleAdsLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.createTime = null; + + /** + * GoogleAdsLink updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.updateTime = null; + + /** + * GoogleAdsLink creatorEmailAddress. + * @member {string} creatorEmailAddress + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + */ + GoogleAdsLink.prototype.creatorEmailAddress = ""; + + /** + * Creates a new GoogleAdsLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink instance + */ + GoogleAdsLink.create = function create(properties) { + return new GoogleAdsLink(properties); + }; + + /** + * Encodes the specified GoogleAdsLink message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.customerId != null && Object.hasOwnProperty.call(message, "customerId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.customerId); + if (message.canManageClients != null && Object.hasOwnProperty.call(message, "canManageClients")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canManageClients); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.creatorEmailAddress != null && Object.hasOwnProperty.call(message, "creatorEmailAddress")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.creatorEmailAddress); + return writer; + }; + + /** + * Encodes the specified GoogleAdsLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleAdsLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.IGoogleAdsLink} message GoogleAdsLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleAdsLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.customerId = reader.string(); + break; + } + case 4: { + message.canManageClients = reader.bool(); + break; + } + case 5: { + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.creatorEmailAddress = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoogleAdsLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleAdsLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoogleAdsLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoogleAdsLink.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.customerId != null && message.hasOwnProperty("customerId")) + if (!$util.isString(message.customerId)) + return "customerId: string expected"; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + if (typeof message.canManageClients !== "boolean") + return "canManageClients: boolean expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.creatorEmailAddress != null && message.hasOwnProperty("creatorEmailAddress")) + if (!$util.isString(message.creatorEmailAddress)) + return "creatorEmailAddress: string expected"; + return null; + }; + + /** + * Creates a GoogleAdsLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GoogleAdsLink} GoogleAdsLink + */ + GoogleAdsLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GoogleAdsLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.GoogleAdsLink(); + if (object.name != null) + message.name = String(object.name); + if (object.customerId != null) + message.customerId = String(object.customerId); + if (object.canManageClients != null) + message.canManageClients = Boolean(object.canManageClients); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GoogleAdsLink.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.creatorEmailAddress != null) + message.creatorEmailAddress = String(object.creatorEmailAddress); + return message; + }; + + /** + * Creates a plain object from a GoogleAdsLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {google.analytics.admin.v1alpha.GoogleAdsLink} message GoogleAdsLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoogleAdsLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.customerId = ""; + object.canManageClients = false; + object.adsPersonalizationEnabled = null; + object.createTime = null; + object.updateTime = null; + object.creatorEmailAddress = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.customerId != null && message.hasOwnProperty("customerId")) + object.customerId = message.customerId; + if (message.canManageClients != null && message.hasOwnProperty("canManageClients")) + object.canManageClients = message.canManageClients; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.creatorEmailAddress != null && message.hasOwnProperty("creatorEmailAddress")) + object.creatorEmailAddress = message.creatorEmailAddress; + return object; + }; + + /** + * Converts this GoogleAdsLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @instance + * @returns {Object.} JSON object + */ + GoogleAdsLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GoogleAdsLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GoogleAdsLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GoogleAdsLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GoogleAdsLink"; + }; + + return GoogleAdsLink; + })(); + + v1alpha.DataSharingSettings = (function() { + + /** + * Properties of a DataSharingSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IDataSharingSettings + * @property {string|null} [name] DataSharingSettings name + * @property {boolean|null} [sharingWithGoogleSupportEnabled] DataSharingSettings sharingWithGoogleSupportEnabled + * @property {boolean|null} [sharingWithGoogleAssignedSalesEnabled] DataSharingSettings sharingWithGoogleAssignedSalesEnabled + * @property {boolean|null} [sharingWithGoogleAnySalesEnabled] DataSharingSettings sharingWithGoogleAnySalesEnabled + * @property {boolean|null} [sharingWithGoogleProductsEnabled] DataSharingSettings sharingWithGoogleProductsEnabled + * @property {boolean|null} [sharingWithOthersEnabled] DataSharingSettings sharingWithOthersEnabled + */ + + /** + * Constructs a new DataSharingSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DataSharingSettings. + * @implements IDataSharingSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + */ + function DataSharingSettings(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]]; + } + + /** + * DataSharingSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.name = ""; + + /** + * DataSharingSettings sharingWithGoogleSupportEnabled. + * @member {boolean} sharingWithGoogleSupportEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleSupportEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAssignedSalesEnabled. + * @member {boolean} sharingWithGoogleAssignedSalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAssignedSalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleAnySalesEnabled. + * @member {boolean} sharingWithGoogleAnySalesEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleAnySalesEnabled = false; + + /** + * DataSharingSettings sharingWithGoogleProductsEnabled. + * @member {boolean} sharingWithGoogleProductsEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithGoogleProductsEnabled = false; + + /** + * DataSharingSettings sharingWithOthersEnabled. + * @member {boolean} sharingWithOthersEnabled + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + */ + DataSharingSettings.prototype.sharingWithOthersEnabled = false; + + /** + * Creates a new DataSharingSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings instance + */ + DataSharingSettings.create = function create(properties) { + return new DataSharingSettings(properties); + }; + + /** + * Encodes the specified DataSharingSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.sharingWithGoogleSupportEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleSupportEnabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.sharingWithGoogleSupportEnabled); + if (message.sharingWithGoogleAssignedSalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAssignedSalesEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sharingWithGoogleAssignedSalesEnabled); + if (message.sharingWithGoogleAnySalesEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleAnySalesEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharingWithGoogleAnySalesEnabled); + if (message.sharingWithGoogleProductsEnabled != null && Object.hasOwnProperty.call(message, "sharingWithGoogleProductsEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sharingWithGoogleProductsEnabled); + if (message.sharingWithOthersEnabled != null && Object.hasOwnProperty.call(message, "sharingWithOthersEnabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.sharingWithOthersEnabled); + return writer; + }; + + /** + * Encodes the specified DataSharingSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataSharingSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.IDataSharingSettings} message DataSharingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataSharingSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.sharingWithGoogleSupportEnabled = reader.bool(); + break; + } + case 3: { + message.sharingWithGoogleAssignedSalesEnabled = reader.bool(); + break; + } + case 4: { + message.sharingWithGoogleAnySalesEnabled = reader.bool(); + break; + } + case 5: { + message.sharingWithGoogleProductsEnabled = reader.bool(); + break; + } + case 6: { + message.sharingWithOthersEnabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataSharingSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataSharingSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataSharingSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataSharingSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + if (typeof message.sharingWithGoogleSupportEnabled !== "boolean") + return "sharingWithGoogleSupportEnabled: boolean expected"; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + if (typeof message.sharingWithGoogleAssignedSalesEnabled !== "boolean") + return "sharingWithGoogleAssignedSalesEnabled: boolean expected"; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + if (typeof message.sharingWithGoogleAnySalesEnabled !== "boolean") + return "sharingWithGoogleAnySalesEnabled: boolean expected"; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + if (typeof message.sharingWithGoogleProductsEnabled !== "boolean") + return "sharingWithGoogleProductsEnabled: boolean expected"; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + if (typeof message.sharingWithOthersEnabled !== "boolean") + return "sharingWithOthersEnabled: boolean expected"; + return null; + }; + + /** + * Creates a DataSharingSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DataSharingSettings} DataSharingSettings + */ + DataSharingSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataSharingSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.DataSharingSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.sharingWithGoogleSupportEnabled != null) + message.sharingWithGoogleSupportEnabled = Boolean(object.sharingWithGoogleSupportEnabled); + if (object.sharingWithGoogleAssignedSalesEnabled != null) + message.sharingWithGoogleAssignedSalesEnabled = Boolean(object.sharingWithGoogleAssignedSalesEnabled); + if (object.sharingWithGoogleAnySalesEnabled != null) + message.sharingWithGoogleAnySalesEnabled = Boolean(object.sharingWithGoogleAnySalesEnabled); + if (object.sharingWithGoogleProductsEnabled != null) + message.sharingWithGoogleProductsEnabled = Boolean(object.sharingWithGoogleProductsEnabled); + if (object.sharingWithOthersEnabled != null) + message.sharingWithOthersEnabled = Boolean(object.sharingWithOthersEnabled); + return message; + }; + + /** + * Creates a plain object from a DataSharingSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {google.analytics.admin.v1alpha.DataSharingSettings} message DataSharingSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataSharingSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.sharingWithGoogleSupportEnabled = false; + object.sharingWithGoogleAssignedSalesEnabled = false; + object.sharingWithGoogleAnySalesEnabled = false; + object.sharingWithGoogleProductsEnabled = false; + object.sharingWithOthersEnabled = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sharingWithGoogleSupportEnabled != null && message.hasOwnProperty("sharingWithGoogleSupportEnabled")) + object.sharingWithGoogleSupportEnabled = message.sharingWithGoogleSupportEnabled; + if (message.sharingWithGoogleAssignedSalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAssignedSalesEnabled")) + object.sharingWithGoogleAssignedSalesEnabled = message.sharingWithGoogleAssignedSalesEnabled; + if (message.sharingWithGoogleAnySalesEnabled != null && message.hasOwnProperty("sharingWithGoogleAnySalesEnabled")) + object.sharingWithGoogleAnySalesEnabled = message.sharingWithGoogleAnySalesEnabled; + if (message.sharingWithGoogleProductsEnabled != null && message.hasOwnProperty("sharingWithGoogleProductsEnabled")) + object.sharingWithGoogleProductsEnabled = message.sharingWithGoogleProductsEnabled; + if (message.sharingWithOthersEnabled != null && message.hasOwnProperty("sharingWithOthersEnabled")) + object.sharingWithOthersEnabled = message.sharingWithOthersEnabled; + return object; + }; + + /** + * Converts this DataSharingSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @instance + * @returns {Object.} JSON object + */ + DataSharingSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataSharingSettings + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DataSharingSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataSharingSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataSharingSettings"; + }; + + return DataSharingSettings; + })(); + + v1alpha.AccountSummary = (function() { + + /** + * Properties of an AccountSummary. + * @memberof google.analytics.admin.v1alpha + * @interface IAccountSummary + * @property {string|null} [name] AccountSummary name + * @property {string|null} [account] AccountSummary account + * @property {string|null} [displayName] AccountSummary displayName + * @property {Array.|null} [propertySummaries] AccountSummary propertySummaries + */ + + /** + * Constructs a new AccountSummary. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AccountSummary. + * @implements IAccountSummary + * @constructor + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + */ + function AccountSummary(properties) { + this.propertySummaries = []; + 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]]; + } + + /** + * AccountSummary name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.name = ""; + + /** + * AccountSummary account. + * @member {string} account + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.account = ""; + + /** + * AccountSummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.displayName = ""; + + /** + * AccountSummary propertySummaries. + * @member {Array.} propertySummaries + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + */ + AccountSummary.prototype.propertySummaries = $util.emptyArray; + + /** + * Creates a new AccountSummary instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.IAccountSummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary instance + */ + AccountSummary.create = function create(properties) { + return new AccountSummary(properties); + }; + + /** + * Encodes the specified AccountSummary message. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountSummary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.account); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.propertySummaries != null && message.propertySummaries.length) + for (var i = 0; i < message.propertySummaries.length; ++i) + $root.google.analytics.admin.v1alpha.PropertySummary.encode(message.propertySummaries[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AccountSummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AccountSummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.IAccountSummary} message AccountSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccountSummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AccountSummary message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountSummary.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AccountSummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.account = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + if (!(message.propertySummaries && message.propertySummaries.length)) + message.propertySummaries = []; + message.propertySummaries.push($root.google.analytics.admin.v1alpha.PropertySummary.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AccountSummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccountSummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AccountSummary message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AccountSummary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.account != null && message.hasOwnProperty("account")) + if (!$util.isString(message.account)) + return "account: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.propertySummaries != null && message.hasOwnProperty("propertySummaries")) { + if (!Array.isArray(message.propertySummaries)) + return "propertySummaries: array expected"; + for (var i = 0; i < message.propertySummaries.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.PropertySummary.verify(message.propertySummaries[i]); + if (error) + return "propertySummaries." + error; + } + } + return null; + }; + + /** + * Creates an AccountSummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AccountSummary} AccountSummary + */ + AccountSummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AccountSummary) + return object; + var message = new $root.google.analytics.admin.v1alpha.AccountSummary(); + if (object.name != null) + message.name = String(object.name); + if (object.account != null) + message.account = String(object.account); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.propertySummaries) { + if (!Array.isArray(object.propertySummaries)) + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: array expected"); + message.propertySummaries = []; + for (var i = 0; i < object.propertySummaries.length; ++i) { + if (typeof object.propertySummaries[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AccountSummary.propertySummaries: object expected"); + message.propertySummaries[i] = $root.google.analytics.admin.v1alpha.PropertySummary.fromObject(object.propertySummaries[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AccountSummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {google.analytics.admin.v1alpha.AccountSummary} message AccountSummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AccountSummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.propertySummaries = []; + if (options.defaults) { + object.name = ""; + object.account = ""; + object.displayName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.account != null && message.hasOwnProperty("account")) + object.account = message.account; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.propertySummaries && message.propertySummaries.length) { + object.propertySummaries = []; + for (var j = 0; j < message.propertySummaries.length; ++j) + object.propertySummaries[j] = $root.google.analytics.admin.v1alpha.PropertySummary.toObject(message.propertySummaries[j], options); + } + return object; + }; + + /** + * Converts this AccountSummary to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @instance + * @returns {Object.} JSON object + */ + AccountSummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AccountSummary + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AccountSummary + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccountSummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AccountSummary"; + }; + + return AccountSummary; + })(); + + v1alpha.PropertySummary = (function() { + + /** + * Properties of a PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @interface IPropertySummary + * @property {string|null} [property] PropertySummary property + * @property {string|null} [displayName] PropertySummary displayName + * @property {google.analytics.admin.v1alpha.PropertyType|null} [propertyType] PropertySummary propertyType + * @property {string|null} [parent] PropertySummary parent + */ + + /** + * Constructs a new PropertySummary. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a PropertySummary. + * @implements IPropertySummary + * @constructor + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + */ + function PropertySummary(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]]; + } + + /** + * PropertySummary property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.property = ""; + + /** + * PropertySummary displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.displayName = ""; + + /** + * PropertySummary propertyType. + * @member {google.analytics.admin.v1alpha.PropertyType} propertyType + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.propertyType = 0; + + /** + * PropertySummary parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + */ + PropertySummary.prototype.parent = ""; + + /** + * Creates a new PropertySummary instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.IPropertySummary=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary instance + */ + PropertySummary.create = function create(properties) { + return new PropertySummary(properties); + }; + + /** + * Encodes the specified PropertySummary message. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PropertySummary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.propertyType != null && Object.hasOwnProperty.call(message, "propertyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.propertyType); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + return writer; + }; + + /** + * Encodes the specified PropertySummary message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.PropertySummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.IPropertySummary} message PropertySummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PropertySummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PropertySummary message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PropertySummary.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.PropertySummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.property = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.propertyType = reader.int32(); + break; + } + case 4: { + message.parent = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PropertySummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PropertySummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PropertySummary message. + * @function verify + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PropertySummary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + switch (message.propertyType) { + default: + return "propertyType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a PropertySummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.PropertySummary} PropertySummary + */ + PropertySummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.PropertySummary) + return object; + var message = new $root.google.analytics.admin.v1alpha.PropertySummary(); + if (object.property != null) + message.property = String(object.property); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.propertyType) { + default: + if (typeof object.propertyType === "number") { + message.propertyType = object.propertyType; + break; + } + break; + case "PROPERTY_TYPE_UNSPECIFIED": + case 0: + message.propertyType = 0; + break; + case "PROPERTY_TYPE_ORDINARY": + case 1: + message.propertyType = 1; + break; + case "PROPERTY_TYPE_SUBPROPERTY": + case 2: + message.propertyType = 2; + break; + case "PROPERTY_TYPE_ROLLUP": + case 3: + message.propertyType = 3; + break; + } + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a PropertySummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {google.analytics.admin.v1alpha.PropertySummary} message PropertySummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PropertySummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.property = ""; + object.displayName = ""; + object.propertyType = options.enums === String ? "PROPERTY_TYPE_UNSPECIFIED" : 0; + object.parent = ""; + } + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.propertyType != null && message.hasOwnProperty("propertyType")) + object.propertyType = options.enums === String ? $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] === undefined ? message.propertyType : $root.google.analytics.admin.v1alpha.PropertyType[message.propertyType] : message.propertyType; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this PropertySummary to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @instance + * @returns {Object.} JSON object + */ + PropertySummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PropertySummary + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.PropertySummary + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PropertySummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.PropertySummary"; + }; + + return PropertySummary; + })(); + + v1alpha.MeasurementProtocolSecret = (function() { + + /** + * Properties of a MeasurementProtocolSecret. + * @memberof google.analytics.admin.v1alpha + * @interface IMeasurementProtocolSecret + * @property {string|null} [name] MeasurementProtocolSecret name + * @property {string|null} [displayName] MeasurementProtocolSecret displayName + * @property {string|null} [secretValue] MeasurementProtocolSecret secretValue + */ + + /** + * Constructs a new MeasurementProtocolSecret. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a MeasurementProtocolSecret. + * @implements IMeasurementProtocolSecret + * @constructor + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set + */ + function MeasurementProtocolSecret(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]]; + } + + /** + * MeasurementProtocolSecret name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.name = ""; + + /** + * MeasurementProtocolSecret displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.displayName = ""; + + /** + * MeasurementProtocolSecret secretValue. + * @member {string} secretValue + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + */ + MeasurementProtocolSecret.prototype.secretValue = ""; + + /** + * Creates a new MeasurementProtocolSecret instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret instance + */ + MeasurementProtocolSecret.create = function create(properties) { + return new MeasurementProtocolSecret(properties); + }; + + /** + * Encodes the specified MeasurementProtocolSecret message. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeasurementProtocolSecret.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.secretValue != null && Object.hasOwnProperty.call(message, "secretValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.secretValue); + return writer; + }; + + /** + * Encodes the specified MeasurementProtocolSecret message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.IMeasurementProtocolSecret} message MeasurementProtocolSecret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeasurementProtocolSecret.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeasurementProtocolSecret.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.secretValue = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MeasurementProtocolSecret message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeasurementProtocolSecret.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MeasurementProtocolSecret message. + * @function verify + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MeasurementProtocolSecret.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.secretValue != null && message.hasOwnProperty("secretValue")) + if (!$util.isString(message.secretValue)) + return "secretValue: string expected"; + return null; + }; + + /** + * Creates a MeasurementProtocolSecret message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.MeasurementProtocolSecret} MeasurementProtocolSecret + */ + MeasurementProtocolSecret.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret) + return object; + var message = new $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.secretValue != null) + message.secretValue = String(object.secretValue); + return message; + }; + + /** + * Creates a plain object from a MeasurementProtocolSecret message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {google.analytics.admin.v1alpha.MeasurementProtocolSecret} message MeasurementProtocolSecret + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MeasurementProtocolSecret.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.secretValue = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.secretValue != null && message.hasOwnProperty("secretValue")) + object.secretValue = message.secretValue; + return object; + }; + + /** + * Converts this MeasurementProtocolSecret to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @instance + * @returns {Object.} JSON object + */ + MeasurementProtocolSecret.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MeasurementProtocolSecret + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.MeasurementProtocolSecret + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MeasurementProtocolSecret.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.MeasurementProtocolSecret"; + }; + + return MeasurementProtocolSecret; + })(); + + v1alpha.ChangeHistoryEvent = (function() { + + /** + * Properties of a ChangeHistoryEvent. + * @memberof google.analytics.admin.v1alpha + * @interface IChangeHistoryEvent + * @property {string|null} [id] ChangeHistoryEvent id + * @property {google.protobuf.ITimestamp|null} [changeTime] ChangeHistoryEvent changeTime + * @property {google.analytics.admin.v1alpha.ActorType|null} [actorType] ChangeHistoryEvent actorType + * @property {string|null} [userActorEmail] ChangeHistoryEvent userActorEmail + * @property {boolean|null} [changesFiltered] ChangeHistoryEvent changesFiltered + * @property {Array.|null} [changes] ChangeHistoryEvent changes + */ + + /** + * Constructs a new ChangeHistoryEvent. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ChangeHistoryEvent. + * @implements IChangeHistoryEvent + * @constructor + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set + */ + function ChangeHistoryEvent(properties) { + this.changes = []; + 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]]; + } + + /** + * ChangeHistoryEvent id. + * @member {string} id + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.id = ""; + + /** + * ChangeHistoryEvent changeTime. + * @member {google.protobuf.ITimestamp|null|undefined} changeTime + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changeTime = null; + + /** + * ChangeHistoryEvent actorType. + * @member {google.analytics.admin.v1alpha.ActorType} actorType + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.actorType = 0; + + /** + * ChangeHistoryEvent userActorEmail. + * @member {string} userActorEmail + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.userActorEmail = ""; + + /** + * ChangeHistoryEvent changesFiltered. + * @member {boolean} changesFiltered + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changesFiltered = false; + + /** + * ChangeHistoryEvent changes. + * @member {Array.} changes + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + */ + ChangeHistoryEvent.prototype.changes = $util.emptyArray; + + /** + * Creates a new ChangeHistoryEvent instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent instance + */ + ChangeHistoryEvent.create = function create(properties) { + return new ChangeHistoryEvent(properties); + }; + + /** + * Encodes the specified ChangeHistoryEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.changeTime != null && Object.hasOwnProperty.call(message, "changeTime")) + $root.google.protobuf.Timestamp.encode(message.changeTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.actorType != null && Object.hasOwnProperty.call(message, "actorType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.actorType); + if (message.userActorEmail != null && Object.hasOwnProperty.call(message, "userActorEmail")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.userActorEmail); + if (message.changesFiltered != null && Object.hasOwnProperty.call(message, "changesFiltered")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.changesFiltered); + if (message.changes != null && message.changes.length) + for (var i = 0; i < message.changes.length; ++i) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.encode(message.changes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryEvent} message ChangeHistoryEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.string(); + break; + } + case 2: { + message.changeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.actorType = reader.int32(); + break; + } + case 4: { + message.userActorEmail = reader.string(); + break; + } + case 5: { + message.changesFiltered = reader.bool(); + break; + } + case 6: { + if (!(message.changes && message.changes.length)) + message.changes = []; + message.changes.push($root.google.analytics.admin.v1alpha.ChangeHistoryChange.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryEvent message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.changeTime); + if (error) + return "changeTime." + error; + } + if (message.actorType != null && message.hasOwnProperty("actorType")) + switch (message.actorType) { + default: + return "actorType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + if (!$util.isString(message.userActorEmail)) + return "userActorEmail: string expected"; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + if (typeof message.changesFiltered !== "boolean") + return "changesFiltered: boolean expected"; + if (message.changes != null && message.hasOwnProperty("changes")) { + if (!Array.isArray(message.changes)) + return "changes: array expected"; + for (var i = 0; i < message.changes.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.verify(message.changes[i]); + if (error) + return "changes." + error; + } + } + return null; + }; + + /** + * Creates a ChangeHistoryEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryEvent} ChangeHistoryEvent + */ + ChangeHistoryEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryEvent) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryEvent(); + if (object.id != null) + message.id = String(object.id); + if (object.changeTime != null) { + if (typeof object.changeTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changeTime: object expected"); + message.changeTime = $root.google.protobuf.Timestamp.fromObject(object.changeTime); + } + switch (object.actorType) { + default: + if (typeof object.actorType === "number") { + message.actorType = object.actorType; + break; + } + break; + case "ACTOR_TYPE_UNSPECIFIED": + case 0: + message.actorType = 0; + break; + case "USER": + case 1: + message.actorType = 1; + break; + case "SYSTEM": + case 2: + message.actorType = 2; + break; + case "SUPPORT": + case 3: + message.actorType = 3; + break; + } + if (object.userActorEmail != null) + message.userActorEmail = String(object.userActorEmail); + if (object.changesFiltered != null) + message.changesFiltered = Boolean(object.changesFiltered); + if (object.changes) { + if (!Array.isArray(object.changes)) + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: array expected"); + message.changes = []; + for (var i = 0; i < object.changes.length; ++i) { + if (typeof object.changes[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryEvent.changes: object expected"); + message.changes[i] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.fromObject(object.changes[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryEvent} message ChangeHistoryEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.changes = []; + if (options.defaults) { + object.id = ""; + object.changeTime = null; + object.actorType = options.enums === String ? "ACTOR_TYPE_UNSPECIFIED" : 0; + object.userActorEmail = ""; + object.changesFiltered = false; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.changeTime != null && message.hasOwnProperty("changeTime")) + object.changeTime = $root.google.protobuf.Timestamp.toObject(message.changeTime, options); + if (message.actorType != null && message.hasOwnProperty("actorType")) + object.actorType = options.enums === String ? $root.google.analytics.admin.v1alpha.ActorType[message.actorType] === undefined ? message.actorType : $root.google.analytics.admin.v1alpha.ActorType[message.actorType] : message.actorType; + if (message.userActorEmail != null && message.hasOwnProperty("userActorEmail")) + object.userActorEmail = message.userActorEmail; + if (message.changesFiltered != null && message.hasOwnProperty("changesFiltered")) + object.changesFiltered = message.changesFiltered; + if (message.changes && message.changes.length) { + object.changes = []; + for (var j = 0; j < message.changes.length; ++j) + object.changes[j] = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.toObject(message.changes[j], options); + } + return object; + }; + + /** + * Converts this ChangeHistoryEvent to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ChangeHistoryEvent + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ChangeHistoryEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeHistoryEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChangeHistoryEvent"; + }; + + return ChangeHistoryEvent; + })(); + + v1alpha.ChangeHistoryChange = (function() { + + /** + * Properties of a ChangeHistoryChange. + * @memberof google.analytics.admin.v1alpha + * @interface IChangeHistoryChange + * @property {string|null} [resource] ChangeHistoryChange resource + * @property {google.analytics.admin.v1alpha.ActionType|null} [action] ChangeHistoryChange action + * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceBeforeChange] ChangeHistoryChange resourceBeforeChange + * @property {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null} [resourceAfterChange] ChangeHistoryChange resourceAfterChange + */ + + /** + * Constructs a new ChangeHistoryChange. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ChangeHistoryChange. + * @implements IChangeHistoryChange + * @constructor + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + */ + function ChangeHistoryChange(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]]; + } + + /** + * ChangeHistoryChange resource. + * @member {string} resource + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resource = ""; + + /** + * ChangeHistoryChange action. + * @member {google.analytics.admin.v1alpha.ActionType} action + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.action = 0; + + /** + * ChangeHistoryChange resourceBeforeChange. + * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceBeforeChange + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceBeforeChange = null; + + /** + * ChangeHistoryChange resourceAfterChange. + * @member {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource|null|undefined} resourceAfterChange + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + */ + ChangeHistoryChange.prototype.resourceAfterChange = null; + + /** + * Creates a new ChangeHistoryChange instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange instance + */ + ChangeHistoryChange.create = function create(properties) { + return new ChangeHistoryChange(properties); + }; + + /** + * Encodes the specified ChangeHistoryChange message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryChange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); + if (message.resourceBeforeChange != null && Object.hasOwnProperty.call(message, "resourceBeforeChange")) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceBeforeChange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.resourceAfterChange != null && Object.hasOwnProperty.call(message, "resourceAfterChange")) + $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.encode(message.resourceAfterChange, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryChange message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.IChangeHistoryChange} message ChangeHistoryChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryChange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryChange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.resource = reader.string(); + break; + } + case 2: { + message.action = reader.int32(); + break; + } + case 3: { + message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + } + case 4: { + message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryChange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryChange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryChange message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryChange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + switch (message.action) { + default: + return "action: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceBeforeChange); + if (error) + return "resourceBeforeChange." + error; + } + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) { + var error = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify(message.resourceAfterChange); + if (error) + return "resourceAfterChange." + error; + } + return null; + }; + + /** + * Creates a ChangeHistoryChange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange} ChangeHistoryChange + */ + ChangeHistoryChange.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange(); + if (object.resource != null) + message.resource = String(object.resource); + switch (object.action) { + default: + if (typeof object.action === "number") { + message.action = object.action; + break; + } + break; + case "ACTION_TYPE_UNSPECIFIED": + case 0: + message.action = 0; + break; + case "CREATED": + case 1: + message.action = 1; + break; + case "UPDATED": + case 2: + message.action = 2; + break; + case "DELETED": + case 3: + message.action = 3; + break; + } + if (object.resourceBeforeChange != null) { + if (typeof object.resourceBeforeChange !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceBeforeChange: object expected"); + message.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceBeforeChange); + } + if (object.resourceAfterChange != null) { + if (typeof object.resourceAfterChange !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.resourceAfterChange: object expected"); + message.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.fromObject(object.resourceAfterChange); + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryChange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange} message ChangeHistoryChange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryChange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.action = options.enums === String ? "ACTION_TYPE_UNSPECIFIED" : 0; + object.resourceBeforeChange = null; + object.resourceAfterChange = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.action != null && message.hasOwnProperty("action")) + object.action = options.enums === String ? $root.google.analytics.admin.v1alpha.ActionType[message.action] === undefined ? message.action : $root.google.analytics.admin.v1alpha.ActionType[message.action] : message.action; + if (message.resourceBeforeChange != null && message.hasOwnProperty("resourceBeforeChange")) + object.resourceBeforeChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceBeforeChange, options); + if (message.resourceAfterChange != null && message.hasOwnProperty("resourceAfterChange")) + object.resourceAfterChange = $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.toObject(message.resourceAfterChange, options); + return object; + }; + + /** + * Converts this ChangeHistoryChange to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryChange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ChangeHistoryChange + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeHistoryChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChangeHistoryChange"; + }; + + ChangeHistoryChange.ChangeHistoryResource = (function() { + + /** + * Properties of a ChangeHistoryResource. + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @interface IChangeHistoryResource + * @property {google.analytics.admin.v1alpha.IAccount|null} [account] ChangeHistoryResource account + * @property {google.analytics.admin.v1alpha.IProperty|null} [property] ChangeHistoryResource property + * @property {google.analytics.admin.v1alpha.IFirebaseLink|null} [firebaseLink] ChangeHistoryResource firebaseLink + * @property {google.analytics.admin.v1alpha.IGoogleAdsLink|null} [googleAdsLink] ChangeHistoryResource googleAdsLink + * @property {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null} [googleSignalsSettings] ChangeHistoryResource googleSignalsSettings + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null} [displayVideo_360AdvertiserLink] ChangeHistoryResource displayVideo_360AdvertiserLink + * @property {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null} [displayVideo_360AdvertiserLinkProposal] ChangeHistoryResource displayVideo_360AdvertiserLinkProposal + * @property {google.analytics.admin.v1alpha.IConversionEvent|null} [conversionEvent] ChangeHistoryResource conversionEvent + * @property {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null} [measurementProtocolSecret] ChangeHistoryResource measurementProtocolSecret + * @property {google.analytics.admin.v1alpha.ICustomDimension|null} [customDimension] ChangeHistoryResource customDimension + * @property {google.analytics.admin.v1alpha.ICustomMetric|null} [customMetric] ChangeHistoryResource customMetric + * @property {google.analytics.admin.v1alpha.IDataRetentionSettings|null} [dataRetentionSettings] ChangeHistoryResource dataRetentionSettings + * @property {google.analytics.admin.v1alpha.ISearchAds360Link|null} [searchAds_360Link] ChangeHistoryResource searchAds_360Link + * @property {google.analytics.admin.v1alpha.IDataStream|null} [dataStream] ChangeHistoryResource dataStream + * @property {google.analytics.admin.v1alpha.IAttributionSettings|null} [attributionSettings] ChangeHistoryResource attributionSettings + * @property {google.analytics.admin.v1alpha.IExpandedDataSet|null} [expandedDataSet] ChangeHistoryResource expandedDataSet + * @property {google.analytics.admin.v1alpha.IBigQueryLink|null} [bigqueryLink] ChangeHistoryResource bigqueryLink + */ + + /** + * Constructs a new ChangeHistoryResource. + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange + * @classdesc Represents a ChangeHistoryResource. + * @implements IChangeHistoryResource + * @constructor + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + */ + function ChangeHistoryResource(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]]; + } + + /** + * ChangeHistoryResource account. + * @member {google.analytics.admin.v1alpha.IAccount|null|undefined} account + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.account = null; + + /** + * ChangeHistoryResource property. + * @member {google.analytics.admin.v1alpha.IProperty|null|undefined} property + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.property = null; + + /** + * ChangeHistoryResource firebaseLink. + * @member {google.analytics.admin.v1alpha.IFirebaseLink|null|undefined} firebaseLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.firebaseLink = null; + + /** + * ChangeHistoryResource googleAdsLink. + * @member {google.analytics.admin.v1alpha.IGoogleAdsLink|null|undefined} googleAdsLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.googleAdsLink = null; + + /** + * ChangeHistoryResource googleSignalsSettings. + * @member {google.analytics.admin.v1alpha.IGoogleSignalsSettings|null|undefined} googleSignalsSettings + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.googleSignalsSettings = null; + + /** + * ChangeHistoryResource displayVideo_360AdvertiserLink. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink|null|undefined} displayVideo_360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.displayVideo_360AdvertiserLink = null; + + /** + * ChangeHistoryResource displayVideo_360AdvertiserLinkProposal. + * @member {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal|null|undefined} displayVideo_360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.displayVideo_360AdvertiserLinkProposal = null; + + /** + * ChangeHistoryResource conversionEvent. + * @member {google.analytics.admin.v1alpha.IConversionEvent|null|undefined} conversionEvent + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.conversionEvent = null; + + /** + * ChangeHistoryResource measurementProtocolSecret. + * @member {google.analytics.admin.v1alpha.IMeasurementProtocolSecret|null|undefined} measurementProtocolSecret + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.measurementProtocolSecret = null; + + /** + * ChangeHistoryResource customDimension. + * @member {google.analytics.admin.v1alpha.ICustomDimension|null|undefined} customDimension + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.customDimension = null; + + /** + * ChangeHistoryResource customMetric. + * @member {google.analytics.admin.v1alpha.ICustomMetric|null|undefined} customMetric + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.customMetric = null; + + /** + * ChangeHistoryResource dataRetentionSettings. + * @member {google.analytics.admin.v1alpha.IDataRetentionSettings|null|undefined} dataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.dataRetentionSettings = null; + + /** + * ChangeHistoryResource searchAds_360Link. + * @member {google.analytics.admin.v1alpha.ISearchAds360Link|null|undefined} searchAds_360Link + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.searchAds_360Link = null; + + /** + * ChangeHistoryResource dataStream. + * @member {google.analytics.admin.v1alpha.IDataStream|null|undefined} dataStream + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.dataStream = null; + + /** + * ChangeHistoryResource attributionSettings. + * @member {google.analytics.admin.v1alpha.IAttributionSettings|null|undefined} attributionSettings + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.attributionSettings = null; + + /** + * ChangeHistoryResource expandedDataSet. + * @member {google.analytics.admin.v1alpha.IExpandedDataSet|null|undefined} expandedDataSet + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.expandedDataSet = null; + + /** + * ChangeHistoryResource bigqueryLink. + * @member {google.analytics.admin.v1alpha.IBigQueryLink|null|undefined} bigqueryLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.bigqueryLink = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ChangeHistoryResource resource. + * @member {"account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"searchAds_360Link"|"dataStream"|"attributionSettings"|"expandedDataSet"|"bigqueryLink"|undefined} resource + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + Object.defineProperty(ChangeHistoryResource.prototype, "resource", { + get: $util.oneOfGetter($oneOfFields = ["account", "property", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "displayVideo_360AdvertiserLink", "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric", "dataRetentionSettings", "searchAds_360Link", "dataStream", "attributionSettings", "expandedDataSet", "bigqueryLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ChangeHistoryResource instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource instance + */ + ChangeHistoryResource.create = function create(properties) { + return new ChangeHistoryResource(properties); + }; + + /** + * Encodes the specified ChangeHistoryResource message. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.account != null && Object.hasOwnProperty.call(message, "account")) + $root.google.analytics.admin.v1alpha.Account.encode(message.account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + $root.google.analytics.admin.v1alpha.Property.encode(message.property, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.firebaseLink != null && Object.hasOwnProperty.call(message, "firebaseLink")) + $root.google.analytics.admin.v1alpha.FirebaseLink.encode(message.firebaseLink, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.googleAdsLink != null && Object.hasOwnProperty.call(message, "googleAdsLink")) + $root.google.analytics.admin.v1alpha.GoogleAdsLink.encode(message.googleAdsLink, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.googleSignalsSettings != null && Object.hasOwnProperty.call(message, "googleSignalsSettings")) + $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.encode(message.googleSignalsSettings, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.displayVideo_360AdvertiserLink != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLink")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.encode(message.displayVideo_360AdvertiserLink, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.displayVideo_360AdvertiserLinkProposal != null && Object.hasOwnProperty.call(message, "displayVideo_360AdvertiserLinkProposal")) + $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.encode(message.displayVideo_360AdvertiserLinkProposal, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.conversionEvent != null && Object.hasOwnProperty.call(message, "conversionEvent")) + $root.google.analytics.admin.v1alpha.ConversionEvent.encode(message.conversionEvent, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.measurementProtocolSecret != null && Object.hasOwnProperty.call(message, "measurementProtocolSecret")) + $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.encode(message.measurementProtocolSecret, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.customDimension != null && Object.hasOwnProperty.call(message, "customDimension")) + $root.google.analytics.admin.v1alpha.CustomDimension.encode(message.customDimension, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.customMetric != null && Object.hasOwnProperty.call(message, "customMetric")) + $root.google.analytics.admin.v1alpha.CustomMetric.encode(message.customMetric, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.dataRetentionSettings != null && Object.hasOwnProperty.call(message, "dataRetentionSettings")) + $root.google.analytics.admin.v1alpha.DataRetentionSettings.encode(message.dataRetentionSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.searchAds_360Link != null && Object.hasOwnProperty.call(message, "searchAds_360Link")) + $root.google.analytics.admin.v1alpha.SearchAds360Link.encode(message.searchAds_360Link, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.dataStream != null && Object.hasOwnProperty.call(message, "dataStream")) + $root.google.analytics.admin.v1alpha.DataStream.encode(message.dataStream, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.attributionSettings != null && Object.hasOwnProperty.call(message, "attributionSettings")) + $root.google.analytics.admin.v1alpha.AttributionSettings.encode(message.attributionSettings, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.expandedDataSet != null && Object.hasOwnProperty.call(message, "expandedDataSet")) + $root.google.analytics.admin.v1alpha.ExpandedDataSet.encode(message.expandedDataSet, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.bigqueryLink != null && Object.hasOwnProperty.call(message, "bigqueryLink")) + $root.google.analytics.admin.v1alpha.BigQueryLink.encode(message.bigqueryLink, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ChangeHistoryResource message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.IChangeHistoryResource} message ChangeHistoryResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeHistoryResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.account = $root.google.analytics.admin.v1alpha.Account.decode(reader, reader.uint32()); + break; + } + case 2: { + message.property = $root.google.analytics.admin.v1alpha.Property.decode(reader, reader.uint32()); + break; + } + case 6: { + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.decode(reader, reader.uint32()); + break; + } + case 7: { + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.decode(reader, reader.uint32()); + break; + } + case 8: { + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.decode(reader, reader.uint32()); + break; + } + case 9: { + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.decode(reader, reader.uint32()); + break; + } + case 10: { + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.decode(reader, reader.uint32()); + break; + } + case 11: { + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.decode(reader, reader.uint32()); + break; + } + case 12: { + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.decode(reader, reader.uint32()); + break; + } + case 13: { + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.decode(reader, reader.uint32()); + break; + } + case 14: { + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.decode(reader, reader.uint32()); + break; + } + case 15: { + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.decode(reader, reader.uint32()); + break; + } + case 16: { + message.searchAds_360Link = $root.google.analytics.admin.v1alpha.SearchAds360Link.decode(reader, reader.uint32()); + break; + } + case 18: { + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.decode(reader, reader.uint32()); + break; + } + case 20: { + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.decode(reader, reader.uint32()); + break; + } + case 21: { + message.expandedDataSet = $root.google.analytics.admin.v1alpha.ExpandedDataSet.decode(reader, reader.uint32()); + break; + } + case 23: { + message.bigqueryLink = $root.google.analytics.admin.v1alpha.BigQueryLink.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeHistoryResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeHistoryResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeHistoryResource message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeHistoryResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.account != null && message.hasOwnProperty("account")) { + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.Account.verify(message.account); + if (error) + return "account." + error; + } + } + if (message.property != null && message.hasOwnProperty("property")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.Property.verify(message.property); + if (error) + return "property." + error; + } + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.FirebaseLink.verify(message.firebaseLink); + if (error) + return "firebaseLink." + error; + } + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.GoogleAdsLink.verify(message.googleAdsLink); + if (error) + return "googleAdsLink." + error; + } + } + if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.verify(message.googleSignalsSettings); + if (error) + return "googleSignalsSettings." + error; + } + } + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify(message.displayVideo_360AdvertiserLink); + if (error) + return "displayVideo_360AdvertiserLink." + error; + } + } + if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify(message.displayVideo_360AdvertiserLinkProposal); + if (error) + return "displayVideo_360AdvertiserLinkProposal." + error; + } + } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.ConversionEvent.verify(message.conversionEvent); + if (error) + return "conversionEvent." + error; + } + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.verify(message.measurementProtocolSecret); + if (error) + return "measurementProtocolSecret." + error; + } + } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.CustomDimension.verify(message.customDimension); + if (error) + return "customDimension." + error; + } + } + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.CustomMetric.verify(message.customMetric); + if (error) + return "customMetric." + error; + } + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataRetentionSettings.verify(message.dataRetentionSettings); + if (error) + return "dataRetentionSettings." + error; + } + } + if (message.searchAds_360Link != null && message.hasOwnProperty("searchAds_360Link")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.SearchAds360Link.verify(message.searchAds_360Link); + if (error) + return "searchAds_360Link." + error; + } + } + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.DataStream.verify(message.dataStream); + if (error) + return "dataStream." + error; + } + } + if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.AttributionSettings.verify(message.attributionSettings); + if (error) + return "attributionSettings." + error; + } + } + if (message.expandedDataSet != null && message.hasOwnProperty("expandedDataSet")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.ExpandedDataSet.verify(message.expandedDataSet); + if (error) + return "expandedDataSet." + error; + } + } + if (message.bigqueryLink != null && message.hasOwnProperty("bigqueryLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.BigQueryLink.verify(message.bigqueryLink); + if (error) + return "bigqueryLink." + error; + } + } + return null; + }; + + /** + * Creates a ChangeHistoryResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} ChangeHistoryResource + */ + ChangeHistoryResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + if (object.account != null) { + if (typeof object.account !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.account: object expected"); + message.account = $root.google.analytics.admin.v1alpha.Account.fromObject(object.account); + } + if (object.property != null) { + if (typeof object.property !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.property: object expected"); + message.property = $root.google.analytics.admin.v1alpha.Property.fromObject(object.property); + } + if (object.firebaseLink != null) { + if (typeof object.firebaseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.firebaseLink: object expected"); + message.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.fromObject(object.firebaseLink); + } + if (object.googleAdsLink != null) { + if (typeof object.googleAdsLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleAdsLink: object expected"); + message.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.fromObject(object.googleAdsLink); + } + if (object.googleSignalsSettings != null) { + if (typeof object.googleSignalsSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.googleSignalsSettings: object expected"); + message.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.fromObject(object.googleSignalsSettings); + } + if (object.displayVideo_360AdvertiserLink != null) { + if (typeof object.displayVideo_360AdvertiserLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.displayVideo_360AdvertiserLink: object expected"); + message.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.fromObject(object.displayVideo_360AdvertiserLink); + } + if (object.displayVideo_360AdvertiserLinkProposal != null) { + if (typeof object.displayVideo_360AdvertiserLinkProposal !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.displayVideo_360AdvertiserLinkProposal: object expected"); + message.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.fromObject(object.displayVideo_360AdvertiserLinkProposal); + } + if (object.conversionEvent != null) { + if (typeof object.conversionEvent !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.conversionEvent: object expected"); + message.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.fromObject(object.conversionEvent); + } + if (object.measurementProtocolSecret != null) { + if (typeof object.measurementProtocolSecret !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.measurementProtocolSecret: object expected"); + message.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.fromObject(object.measurementProtocolSecret); + } + if (object.customDimension != null) { + if (typeof object.customDimension !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customDimension: object expected"); + message.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.fromObject(object.customDimension); + } + if (object.customMetric != null) { + if (typeof object.customMetric !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.customMetric: object expected"); + message.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.fromObject(object.customMetric); + } + if (object.dataRetentionSettings != null) { + if (typeof object.dataRetentionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.dataRetentionSettings: object expected"); + message.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.fromObject(object.dataRetentionSettings); + } + if (object.searchAds_360Link != null) { + if (typeof object.searchAds_360Link !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.searchAds_360Link: object expected"); + message.searchAds_360Link = $root.google.analytics.admin.v1alpha.SearchAds360Link.fromObject(object.searchAds_360Link); + } + if (object.dataStream != null) { + if (typeof object.dataStream !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.dataStream: object expected"); + message.dataStream = $root.google.analytics.admin.v1alpha.DataStream.fromObject(object.dataStream); + } + if (object.attributionSettings != null) { + if (typeof object.attributionSettings !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.attributionSettings: object expected"); + message.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.fromObject(object.attributionSettings); + } + if (object.expandedDataSet != null) { + if (typeof object.expandedDataSet !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.expandedDataSet: object expected"); + message.expandedDataSet = $root.google.analytics.admin.v1alpha.ExpandedDataSet.fromObject(object.expandedDataSet); + } + if (object.bigqueryLink != null) { + if (typeof object.bigqueryLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.bigqueryLink: object expected"); + message.bigqueryLink = $root.google.analytics.admin.v1alpha.BigQueryLink.fromObject(object.bigqueryLink); + } + return message; + }; + + /** + * Creates a plain object from a ChangeHistoryResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} message ChangeHistoryResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeHistoryResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.account != null && message.hasOwnProperty("account")) { + object.account = $root.google.analytics.admin.v1alpha.Account.toObject(message.account, options); + if (options.oneofs) + object.resource = "account"; + } + if (message.property != null && message.hasOwnProperty("property")) { + object.property = $root.google.analytics.admin.v1alpha.Property.toObject(message.property, options); + if (options.oneofs) + object.resource = "property"; + } + if (message.firebaseLink != null && message.hasOwnProperty("firebaseLink")) { + object.firebaseLink = $root.google.analytics.admin.v1alpha.FirebaseLink.toObject(message.firebaseLink, options); + if (options.oneofs) + object.resource = "firebaseLink"; + } + if (message.googleAdsLink != null && message.hasOwnProperty("googleAdsLink")) { + object.googleAdsLink = $root.google.analytics.admin.v1alpha.GoogleAdsLink.toObject(message.googleAdsLink, options); + if (options.oneofs) + object.resource = "googleAdsLink"; + } + if (message.googleSignalsSettings != null && message.hasOwnProperty("googleSignalsSettings")) { + object.googleSignalsSettings = $root.google.analytics.admin.v1alpha.GoogleSignalsSettings.toObject(message.googleSignalsSettings, options); + if (options.oneofs) + object.resource = "googleSignalsSettings"; + } + if (message.displayVideo_360AdvertiserLink != null && message.hasOwnProperty("displayVideo_360AdvertiserLink")) { + object.displayVideo_360AdvertiserLink = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.toObject(message.displayVideo_360AdvertiserLink, options); + if (options.oneofs) + object.resource = "displayVideo_360AdvertiserLink"; + } + if (message.displayVideo_360AdvertiserLinkProposal != null && message.hasOwnProperty("displayVideo_360AdvertiserLinkProposal")) { + object.displayVideo_360AdvertiserLinkProposal = $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.toObject(message.displayVideo_360AdvertiserLinkProposal, options); + if (options.oneofs) + object.resource = "displayVideo_360AdvertiserLinkProposal"; + } + if (message.conversionEvent != null && message.hasOwnProperty("conversionEvent")) { + object.conversionEvent = $root.google.analytics.admin.v1alpha.ConversionEvent.toObject(message.conversionEvent, options); + if (options.oneofs) + object.resource = "conversionEvent"; + } + if (message.measurementProtocolSecret != null && message.hasOwnProperty("measurementProtocolSecret")) { + object.measurementProtocolSecret = $root.google.analytics.admin.v1alpha.MeasurementProtocolSecret.toObject(message.measurementProtocolSecret, options); + if (options.oneofs) + object.resource = "measurementProtocolSecret"; + } + if (message.customDimension != null && message.hasOwnProperty("customDimension")) { + object.customDimension = $root.google.analytics.admin.v1alpha.CustomDimension.toObject(message.customDimension, options); + if (options.oneofs) + object.resource = "customDimension"; + } + if (message.customMetric != null && message.hasOwnProperty("customMetric")) { + object.customMetric = $root.google.analytics.admin.v1alpha.CustomMetric.toObject(message.customMetric, options); + if (options.oneofs) + object.resource = "customMetric"; + } + if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { + object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); + if (options.oneofs) + object.resource = "dataRetentionSettings"; + } + if (message.searchAds_360Link != null && message.hasOwnProperty("searchAds_360Link")) { + object.searchAds_360Link = $root.google.analytics.admin.v1alpha.SearchAds360Link.toObject(message.searchAds_360Link, options); + if (options.oneofs) + object.resource = "searchAds_360Link"; + } + if (message.dataStream != null && message.hasOwnProperty("dataStream")) { + object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); + if (options.oneofs) + object.resource = "dataStream"; + } + if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) { + object.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.toObject(message.attributionSettings, options); + if (options.oneofs) + object.resource = "attributionSettings"; + } + if (message.expandedDataSet != null && message.hasOwnProperty("expandedDataSet")) { + object.expandedDataSet = $root.google.analytics.admin.v1alpha.ExpandedDataSet.toObject(message.expandedDataSet, options); + if (options.oneofs) + object.resource = "expandedDataSet"; + } + if (message.bigqueryLink != null && message.hasOwnProperty("bigqueryLink")) { + object.bigqueryLink = $root.google.analytics.admin.v1alpha.BigQueryLink.toObject(message.bigqueryLink, options); + if (options.oneofs) + object.resource = "bigqueryLink"; + } + return object; + }; + + /** + * Converts this ChangeHistoryResource to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + * @returns {Object.} JSON object + */ + ChangeHistoryResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ChangeHistoryResource + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeHistoryResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource"; + }; + + return ChangeHistoryResource; + })(); + + return ChangeHistoryChange; + })(); + + v1alpha.DisplayVideo360AdvertiserLink = (function() { + + /** + * Properties of a DisplayVideo360AdvertiserLink. + * @memberof google.analytics.admin.v1alpha + * @interface IDisplayVideo360AdvertiserLink + * @property {string|null} [name] DisplayVideo360AdvertiserLink name + * @property {string|null} [advertiserId] DisplayVideo360AdvertiserLink advertiserId + * @property {string|null} [advertiserDisplayName] DisplayVideo360AdvertiserLink advertiserDisplayName + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] DisplayVideo360AdvertiserLink adsPersonalizationEnabled + * @property {google.protobuf.IBoolValue|null} [campaignDataSharingEnabled] DisplayVideo360AdvertiserLink campaignDataSharingEnabled + * @property {google.protobuf.IBoolValue|null} [costDataSharingEnabled] DisplayVideo360AdvertiserLink costDataSharingEnabled + */ + + /** + * Constructs a new DisplayVideo360AdvertiserLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DisplayVideo360AdvertiserLink. + * @implements IDisplayVideo360AdvertiserLink + * @constructor + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink=} [properties] Properties to set + */ + function DisplayVideo360AdvertiserLink(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]]; + } + + /** + * DisplayVideo360AdvertiserLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.name = ""; + + /** + * DisplayVideo360AdvertiserLink advertiserId. + * @member {string} advertiserId + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.advertiserId = ""; + + /** + * DisplayVideo360AdvertiserLink advertiserDisplayName. + * @member {string} advertiserDisplayName + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.advertiserDisplayName = ""; + + /** + * DisplayVideo360AdvertiserLink adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.adsPersonalizationEnabled = null; + + /** + * DisplayVideo360AdvertiserLink campaignDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} campaignDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.campaignDataSharingEnabled = null; + + /** + * DisplayVideo360AdvertiserLink costDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} costDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + */ + DisplayVideo360AdvertiserLink.prototype.costDataSharingEnabled = null; + + /** + * Creates a new DisplayVideo360AdvertiserLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink instance + */ + DisplayVideo360AdvertiserLink.create = function create(properties) { + return new DisplayVideo360AdvertiserLink(properties); + }; + + /** + * Encodes the specified DisplayVideo360AdvertiserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink} message DisplayVideo360AdvertiserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DisplayVideo360AdvertiserLink.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.advertiserId != null && Object.hasOwnProperty.call(message, "advertiserId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.advertiserId); + if (message.advertiserDisplayName != null && Object.hasOwnProperty.call(message, "advertiserDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.advertiserDisplayName); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.campaignDataSharingEnabled != null && Object.hasOwnProperty.call(message, "campaignDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.campaignDataSharingEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.costDataSharingEnabled != null && Object.hasOwnProperty.call(message, "costDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.costDataSharingEnabled, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DisplayVideo360AdvertiserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink} message DisplayVideo360AdvertiserLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DisplayVideo360AdvertiserLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DisplayVideo360AdvertiserLink.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.advertiserId = reader.string(); + break; + } + case 3: { + message.advertiserDisplayName = reader.string(); + break; + } + case 4: { + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 5: { + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 6: { + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DisplayVideo360AdvertiserLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DisplayVideo360AdvertiserLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DisplayVideo360AdvertiserLink.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) + if (!$util.isString(message.advertiserId)) + return "advertiserId: string expected"; + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + if (!$util.isString(message.advertiserDisplayName)) + return "advertiserDisplayName: string expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.campaignDataSharingEnabled); + if (error) + return "campaignDataSharingEnabled." + error; + } + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.costDataSharingEnabled); + if (error) + return "costDataSharingEnabled." + error; + } + return null; + }; + + /** + * Creates a DisplayVideo360AdvertiserLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink + */ + DisplayVideo360AdvertiserLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(); + if (object.name != null) + message.name = String(object.name); + if (object.advertiserId != null) + message.advertiserId = String(object.advertiserId); + if (object.advertiserDisplayName != null) + message.advertiserDisplayName = String(object.advertiserDisplayName); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.campaignDataSharingEnabled != null) { + if (typeof object.campaignDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.campaignDataSharingEnabled: object expected"); + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.campaignDataSharingEnabled); + } + if (object.costDataSharingEnabled != null) { + if (typeof object.costDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.costDataSharingEnabled: object expected"); + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.costDataSharingEnabled); + } + return message; + }; + + /** + * Creates a plain object from a DisplayVideo360AdvertiserLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} message DisplayVideo360AdvertiserLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DisplayVideo360AdvertiserLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.advertiserId = ""; + object.advertiserDisplayName = ""; + object.adsPersonalizationEnabled = null; + object.campaignDataSharingEnabled = null; + object.costDataSharingEnabled = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) + object.advertiserId = message.advertiserId; + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + object.advertiserDisplayName = message.advertiserDisplayName; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) + object.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.campaignDataSharingEnabled, options); + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) + object.costDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.costDataSharingEnabled, options); + return object; + }; + + /** + * Converts this DisplayVideo360AdvertiserLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @instance + * @returns {Object.} JSON object + */ + DisplayVideo360AdvertiserLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DisplayVideo360AdvertiserLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DisplayVideo360AdvertiserLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"; + }; + + return DisplayVideo360AdvertiserLink; + })(); + + v1alpha.DisplayVideo360AdvertiserLinkProposal = (function() { + + /** + * Properties of a DisplayVideo360AdvertiserLinkProposal. + * @memberof google.analytics.admin.v1alpha + * @interface IDisplayVideo360AdvertiserLinkProposal + * @property {string|null} [name] DisplayVideo360AdvertiserLinkProposal name + * @property {string|null} [advertiserId] DisplayVideo360AdvertiserLinkProposal advertiserId + * @property {google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null} [linkProposalStatusDetails] DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails + * @property {string|null} [advertiserDisplayName] DisplayVideo360AdvertiserLinkProposal advertiserDisplayName + * @property {string|null} [validationEmail] DisplayVideo360AdvertiserLinkProposal validationEmail + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled + * @property {google.protobuf.IBoolValue|null} [campaignDataSharingEnabled] DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled + * @property {google.protobuf.IBoolValue|null} [costDataSharingEnabled] DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled + */ + + /** + * Constructs a new DisplayVideo360AdvertiserLinkProposal. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DisplayVideo360AdvertiserLinkProposal. + * @implements IDisplayVideo360AdvertiserLinkProposal + * @constructor + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal=} [properties] Properties to set + */ + function DisplayVideo360AdvertiserLinkProposal(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]]; + } + + /** + * DisplayVideo360AdvertiserLinkProposal name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.name = ""; + + /** + * DisplayVideo360AdvertiserLinkProposal advertiserId. + * @member {string} advertiserId + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.advertiserId = ""; + + /** + * DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails. + * @member {google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null|undefined} linkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.linkProposalStatusDetails = null; + + /** + * DisplayVideo360AdvertiserLinkProposal advertiserDisplayName. + * @member {string} advertiserDisplayName + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.advertiserDisplayName = ""; + + /** + * DisplayVideo360AdvertiserLinkProposal validationEmail. + * @member {string} validationEmail + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.validationEmail = ""; + + /** + * DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.adsPersonalizationEnabled = null; + + /** + * DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} campaignDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.campaignDataSharingEnabled = null; + + /** + * DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} costDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + */ + DisplayVideo360AdvertiserLinkProposal.prototype.costDataSharingEnabled = null; + + /** + * Creates a new DisplayVideo360AdvertiserLinkProposal instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal instance + */ + DisplayVideo360AdvertiserLinkProposal.create = function create(properties) { + return new DisplayVideo360AdvertiserLinkProposal(properties); + }; + + /** + * Encodes the specified DisplayVideo360AdvertiserLinkProposal message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal} message DisplayVideo360AdvertiserLinkProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DisplayVideo360AdvertiserLinkProposal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.advertiserId != null && Object.hasOwnProperty.call(message, "advertiserId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.advertiserId); + if (message.linkProposalStatusDetails != null && Object.hasOwnProperty.call(message, "linkProposalStatusDetails")) + $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.encode(message.linkProposalStatusDetails, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.advertiserDisplayName != null && Object.hasOwnProperty.call(message, "advertiserDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.advertiserDisplayName); + if (message.validationEmail != null && Object.hasOwnProperty.call(message, "validationEmail")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.validationEmail); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.campaignDataSharingEnabled != null && Object.hasOwnProperty.call(message, "campaignDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.campaignDataSharingEnabled, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.costDataSharingEnabled != null && Object.hasOwnProperty.call(message, "costDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.costDataSharingEnabled, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DisplayVideo360AdvertiserLinkProposal message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal} message DisplayVideo360AdvertiserLinkProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DisplayVideo360AdvertiserLinkProposal.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DisplayVideo360AdvertiserLinkProposal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.advertiserId = reader.string(); + break; + } + case 3: { + message.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.decode(reader, reader.uint32()); + break; + } + case 4: { + message.advertiserDisplayName = reader.string(); + break; + } + case 5: { + message.validationEmail = reader.string(); + break; + } + case 6: { + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 7: { + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 8: { + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DisplayVideo360AdvertiserLinkProposal.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DisplayVideo360AdvertiserLinkProposal message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DisplayVideo360AdvertiserLinkProposal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) + if (!$util.isString(message.advertiserId)) + return "advertiserId: string expected"; + if (message.linkProposalStatusDetails != null && message.hasOwnProperty("linkProposalStatusDetails")) { + var error = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify(message.linkProposalStatusDetails); + if (error) + return "linkProposalStatusDetails." + error; + } + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + if (!$util.isString(message.advertiserDisplayName)) + return "advertiserDisplayName: string expected"; + if (message.validationEmail != null && message.hasOwnProperty("validationEmail")) + if (!$util.isString(message.validationEmail)) + return "validationEmail: string expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.campaignDataSharingEnabled); + if (error) + return "campaignDataSharingEnabled." + error; + } + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.costDataSharingEnabled); + if (error) + return "costDataSharingEnabled." + error; + } + return null; + }; + + /** + * Creates a DisplayVideo360AdvertiserLinkProposal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal + */ + DisplayVideo360AdvertiserLinkProposal.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + return object; + var message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(); + if (object.name != null) + message.name = String(object.name); + if (object.advertiserId != null) + message.advertiserId = String(object.advertiserId); + if (object.linkProposalStatusDetails != null) { + if (typeof object.linkProposalStatusDetails !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.linkProposalStatusDetails: object expected"); + message.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.fromObject(object.linkProposalStatusDetails); + } + if (object.advertiserDisplayName != null) + message.advertiserDisplayName = String(object.advertiserDisplayName); + if (object.validationEmail != null) + message.validationEmail = String(object.validationEmail); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.campaignDataSharingEnabled != null) { + if (typeof object.campaignDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.campaignDataSharingEnabled: object expected"); + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.campaignDataSharingEnabled); + } + if (object.costDataSharingEnabled != null) { + if (typeof object.costDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.costDataSharingEnabled: object expected"); + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.costDataSharingEnabled); + } + return message; + }; + + /** + * Creates a plain object from a DisplayVideo360AdvertiserLinkProposal message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} message DisplayVideo360AdvertiserLinkProposal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DisplayVideo360AdvertiserLinkProposal.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.advertiserId = ""; + object.linkProposalStatusDetails = null; + object.advertiserDisplayName = ""; + object.validationEmail = ""; + object.adsPersonalizationEnabled = null; + object.campaignDataSharingEnabled = null; + object.costDataSharingEnabled = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) + object.advertiserId = message.advertiserId; + if (message.linkProposalStatusDetails != null && message.hasOwnProperty("linkProposalStatusDetails")) + object.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.toObject(message.linkProposalStatusDetails, options); + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + object.advertiserDisplayName = message.advertiserDisplayName; + if (message.validationEmail != null && message.hasOwnProperty("validationEmail")) + object.validationEmail = message.validationEmail; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) + object.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.campaignDataSharingEnabled, options); + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) + object.costDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.costDataSharingEnabled, options); + return object; + }; + + /** + * Converts this DisplayVideo360AdvertiserLinkProposal to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @instance + * @returns {Object.} JSON object + */ + DisplayVideo360AdvertiserLinkProposal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DisplayVideo360AdvertiserLinkProposal + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DisplayVideo360AdvertiserLinkProposal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"; + }; + + return DisplayVideo360AdvertiserLinkProposal; + })(); + + v1alpha.SearchAds360Link = (function() { + + /** + * Properties of a SearchAds360Link. + * @memberof google.analytics.admin.v1alpha + * @interface ISearchAds360Link + * @property {string|null} [name] SearchAds360Link name + * @property {string|null} [advertiserId] SearchAds360Link advertiserId + * @property {google.protobuf.IBoolValue|null} [campaignDataSharingEnabled] SearchAds360Link campaignDataSharingEnabled + * @property {google.protobuf.IBoolValue|null} [costDataSharingEnabled] SearchAds360Link costDataSharingEnabled + * @property {string|null} [advertiserDisplayName] SearchAds360Link advertiserDisplayName + * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] SearchAds360Link adsPersonalizationEnabled + * @property {google.protobuf.IBoolValue|null} [siteStatsSharingEnabled] SearchAds360Link siteStatsSharingEnabled + */ + + /** + * Constructs a new SearchAds360Link. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a SearchAds360Link. + * @implements ISearchAds360Link + * @constructor + * @param {google.analytics.admin.v1alpha.ISearchAds360Link=} [properties] Properties to set + */ + function SearchAds360Link(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]]; + } + + /** + * SearchAds360Link name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @instance + */ + SearchAds360Link.prototype.name = ""; + + /** + * SearchAds360Link advertiserId. + * @member {string} advertiserId + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @instance + */ + SearchAds360Link.prototype.advertiserId = ""; + + /** + * SearchAds360Link campaignDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} campaignDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @instance + */ + SearchAds360Link.prototype.campaignDataSharingEnabled = null; + + /** + * SearchAds360Link costDataSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} costDataSharingEnabled + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @instance + */ + SearchAds360Link.prototype.costDataSharingEnabled = null; + + /** + * SearchAds360Link advertiserDisplayName. + * @member {string} advertiserDisplayName + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @instance + */ + SearchAds360Link.prototype.advertiserDisplayName = ""; + + /** + * SearchAds360Link adsPersonalizationEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @instance + */ + SearchAds360Link.prototype.adsPersonalizationEnabled = null; + + /** + * SearchAds360Link siteStatsSharingEnabled. + * @member {google.protobuf.IBoolValue|null|undefined} siteStatsSharingEnabled + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @instance + */ + SearchAds360Link.prototype.siteStatsSharingEnabled = null; + + /** + * Creates a new SearchAds360Link instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @static + * @param {google.analytics.admin.v1alpha.ISearchAds360Link=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.SearchAds360Link} SearchAds360Link instance + */ + SearchAds360Link.create = function create(properties) { + return new SearchAds360Link(properties); + }; + + /** + * Encodes the specified SearchAds360Link message. Does not implicitly {@link google.analytics.admin.v1alpha.SearchAds360Link.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @static + * @param {google.analytics.admin.v1alpha.ISearchAds360Link} message SearchAds360Link message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchAds360Link.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.advertiserId != null && Object.hasOwnProperty.call(message, "advertiserId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.advertiserId); + if (message.campaignDataSharingEnabled != null && Object.hasOwnProperty.call(message, "campaignDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.campaignDataSharingEnabled, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.costDataSharingEnabled != null && Object.hasOwnProperty.call(message, "costDataSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.costDataSharingEnabled, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.advertiserDisplayName != null && Object.hasOwnProperty.call(message, "advertiserDisplayName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.advertiserDisplayName); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.siteStatsSharingEnabled != null && Object.hasOwnProperty.call(message, "siteStatsSharingEnabled")) + $root.google.protobuf.BoolValue.encode(message.siteStatsSharingEnabled, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SearchAds360Link message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.SearchAds360Link.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @static + * @param {google.analytics.admin.v1alpha.ISearchAds360Link} message SearchAds360Link message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchAds360Link.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchAds360Link message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.SearchAds360Link} SearchAds360Link + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchAds360Link.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.SearchAds360Link(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.advertiserId = reader.string(); + break; + } + case 3: { + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 4: { + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 5: { + message.advertiserDisplayName = reader.string(); + break; + } + case 6: { + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 7: { + message.siteStatsSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchAds360Link message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.SearchAds360Link} SearchAds360Link + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchAds360Link.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchAds360Link message. + * @function verify + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchAds360Link.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) + if (!$util.isString(message.advertiserId)) + return "advertiserId: string expected"; + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.campaignDataSharingEnabled); + if (error) + return "campaignDataSharingEnabled." + error; + } + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.costDataSharingEnabled); + if (error) + return "costDataSharingEnabled." + error; + } + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + if (!$util.isString(message.advertiserDisplayName)) + return "advertiserDisplayName: string expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); + if (error) + return "adsPersonalizationEnabled." + error; + } + if (message.siteStatsSharingEnabled != null && message.hasOwnProperty("siteStatsSharingEnabled")) { + var error = $root.google.protobuf.BoolValue.verify(message.siteStatsSharingEnabled); + if (error) + return "siteStatsSharingEnabled." + error; + } + return null; + }; + + /** + * Creates a SearchAds360Link message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.SearchAds360Link} SearchAds360Link + */ + SearchAds360Link.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.SearchAds360Link) + return object; + var message = new $root.google.analytics.admin.v1alpha.SearchAds360Link(); + if (object.name != null) + message.name = String(object.name); + if (object.advertiserId != null) + message.advertiserId = String(object.advertiserId); + if (object.campaignDataSharingEnabled != null) { + if (typeof object.campaignDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchAds360Link.campaignDataSharingEnabled: object expected"); + message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.campaignDataSharingEnabled); + } + if (object.costDataSharingEnabled != null) { + if (typeof object.costDataSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchAds360Link.costDataSharingEnabled: object expected"); + message.costDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.costDataSharingEnabled); + } + if (object.advertiserDisplayName != null) + message.advertiserDisplayName = String(object.advertiserDisplayName); + if (object.adsPersonalizationEnabled != null) { + if (typeof object.adsPersonalizationEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchAds360Link.adsPersonalizationEnabled: object expected"); + message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + } + if (object.siteStatsSharingEnabled != null) { + if (typeof object.siteStatsSharingEnabled !== "object") + throw TypeError(".google.analytics.admin.v1alpha.SearchAds360Link.siteStatsSharingEnabled: object expected"); + message.siteStatsSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.siteStatsSharingEnabled); + } + return message; + }; + + /** + * Creates a plain object from a SearchAds360Link message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @static + * @param {google.analytics.admin.v1alpha.SearchAds360Link} message SearchAds360Link + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchAds360Link.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.advertiserId = ""; + object.campaignDataSharingEnabled = null; + object.costDataSharingEnabled = null; + object.advertiserDisplayName = ""; + object.adsPersonalizationEnabled = null; + object.siteStatsSharingEnabled = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) + object.advertiserId = message.advertiserId; + if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) + object.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.campaignDataSharingEnabled, options); + if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) + object.costDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.costDataSharingEnabled, options); + if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) + object.advertiserDisplayName = message.advertiserDisplayName; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); + if (message.siteStatsSharingEnabled != null && message.hasOwnProperty("siteStatsSharingEnabled")) + object.siteStatsSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.siteStatsSharingEnabled, options); + return object; + }; + + /** + * Converts this SearchAds360Link to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @instance + * @returns {Object.} JSON object + */ + SearchAds360Link.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchAds360Link + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.SearchAds360Link + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchAds360Link.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.SearchAds360Link"; + }; + + return SearchAds360Link; + })(); + + v1alpha.LinkProposalStatusDetails = (function() { + + /** + * Properties of a LinkProposalStatusDetails. + * @memberof google.analytics.admin.v1alpha + * @interface ILinkProposalStatusDetails + * @property {google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|null} [linkProposalInitiatingProduct] LinkProposalStatusDetails linkProposalInitiatingProduct + * @property {string|null} [requestorEmail] LinkProposalStatusDetails requestorEmail + * @property {google.analytics.admin.v1alpha.LinkProposalState|null} [linkProposalState] LinkProposalStatusDetails linkProposalState + */ + + /** + * Constructs a new LinkProposalStatusDetails. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a LinkProposalStatusDetails. + * @implements ILinkProposalStatusDetails + * @constructor + * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails=} [properties] Properties to set + */ + function LinkProposalStatusDetails(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]]; + } + + /** + * LinkProposalStatusDetails linkProposalInitiatingProduct. + * @member {google.analytics.admin.v1alpha.LinkProposalInitiatingProduct} linkProposalInitiatingProduct + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @instance + */ + LinkProposalStatusDetails.prototype.linkProposalInitiatingProduct = 0; + + /** + * LinkProposalStatusDetails requestorEmail. + * @member {string} requestorEmail + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @instance + */ + LinkProposalStatusDetails.prototype.requestorEmail = ""; + + /** + * LinkProposalStatusDetails linkProposalState. + * @member {google.analytics.admin.v1alpha.LinkProposalState} linkProposalState + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @instance + */ + LinkProposalStatusDetails.prototype.linkProposalState = 0; + + /** + * Creates a new LinkProposalStatusDetails instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails instance + */ + LinkProposalStatusDetails.create = function create(properties) { + return new LinkProposalStatusDetails(properties); + }; + + /** + * Encodes the specified LinkProposalStatusDetails message. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails} message LinkProposalStatusDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LinkProposalStatusDetails.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.linkProposalInitiatingProduct != null && Object.hasOwnProperty.call(message, "linkProposalInitiatingProduct")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.linkProposalInitiatingProduct); + if (message.requestorEmail != null && Object.hasOwnProperty.call(message, "requestorEmail")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestorEmail); + if (message.linkProposalState != null && Object.hasOwnProperty.call(message, "linkProposalState")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.linkProposalState); + return writer; + }; + + /** + * Encodes the specified LinkProposalStatusDetails message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails} message LinkProposalStatusDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LinkProposalStatusDetails.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LinkProposalStatusDetails message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LinkProposalStatusDetails.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.linkProposalInitiatingProduct = reader.int32(); + break; + } + case 2: { + message.requestorEmail = reader.string(); + break; + } + case 3: { + message.linkProposalState = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LinkProposalStatusDetails message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LinkProposalStatusDetails.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LinkProposalStatusDetails message. + * @function verify + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LinkProposalStatusDetails.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.linkProposalInitiatingProduct != null && message.hasOwnProperty("linkProposalInitiatingProduct")) + switch (message.linkProposalInitiatingProduct) { + default: + return "linkProposalInitiatingProduct: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.requestorEmail != null && message.hasOwnProperty("requestorEmail")) + if (!$util.isString(message.requestorEmail)) + return "requestorEmail: string expected"; + if (message.linkProposalState != null && message.hasOwnProperty("linkProposalState")) + switch (message.linkProposalState) { + default: + return "linkProposalState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + return null; + }; + + /** + * Creates a LinkProposalStatusDetails message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails + */ + LinkProposalStatusDetails.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails) + return object; + var message = new $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails(); + switch (object.linkProposalInitiatingProduct) { + default: + if (typeof object.linkProposalInitiatingProduct === "number") { + message.linkProposalInitiatingProduct = object.linkProposalInitiatingProduct; + break; + } + break; + case "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED": + case 0: + message.linkProposalInitiatingProduct = 0; + break; + case "GOOGLE_ANALYTICS": + case 1: + message.linkProposalInitiatingProduct = 1; + break; + case "LINKED_PRODUCT": + case 2: + message.linkProposalInitiatingProduct = 2; + break; + } + if (object.requestorEmail != null) + message.requestorEmail = String(object.requestorEmail); + switch (object.linkProposalState) { + default: + if (typeof object.linkProposalState === "number") { + message.linkProposalState = object.linkProposalState; + break; + } + break; + case "LINK_PROPOSAL_STATE_UNSPECIFIED": + case 0: + message.linkProposalState = 0; + break; + case "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS": + case 1: + message.linkProposalState = 1; + break; + case "AWAITING_REVIEW_FROM_LINKED_PRODUCT": + case 2: + message.linkProposalState = 2; + break; + case "WITHDRAWN": + case 3: + message.linkProposalState = 3; + break; + case "DECLINED": + case 4: + message.linkProposalState = 4; + break; + case "EXPIRED": + case 5: + message.linkProposalState = 5; + break; + case "OBSOLETE": + case 6: + message.linkProposalState = 6; + break; + } + return message; + }; + + /** + * Creates a plain object from a LinkProposalStatusDetails message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {google.analytics.admin.v1alpha.LinkProposalStatusDetails} message LinkProposalStatusDetails + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LinkProposalStatusDetails.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.linkProposalInitiatingProduct = options.enums === String ? "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED" : 0; + object.requestorEmail = ""; + object.linkProposalState = options.enums === String ? "LINK_PROPOSAL_STATE_UNSPECIFIED" : 0; + } + if (message.linkProposalInitiatingProduct != null && message.hasOwnProperty("linkProposalInitiatingProduct")) + object.linkProposalInitiatingProduct = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct[message.linkProposalInitiatingProduct] === undefined ? message.linkProposalInitiatingProduct : $root.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct[message.linkProposalInitiatingProduct] : message.linkProposalInitiatingProduct; + if (message.requestorEmail != null && message.hasOwnProperty("requestorEmail")) + object.requestorEmail = message.requestorEmail; + if (message.linkProposalState != null && message.hasOwnProperty("linkProposalState")) + object.linkProposalState = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalState[message.linkProposalState] === undefined ? message.linkProposalState : $root.google.analytics.admin.v1alpha.LinkProposalState[message.linkProposalState] : message.linkProposalState; + return object; + }; + + /** + * Converts this LinkProposalStatusDetails to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @instance + * @returns {Object.} JSON object + */ + LinkProposalStatusDetails.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LinkProposalStatusDetails + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LinkProposalStatusDetails.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.LinkProposalStatusDetails"; + }; + + return LinkProposalStatusDetails; + })(); + + v1alpha.ConversionEvent = (function() { + + /** + * Properties of a ConversionEvent. + * @memberof google.analytics.admin.v1alpha + * @interface IConversionEvent + * @property {string|null} [name] ConversionEvent name + * @property {string|null} [eventName] ConversionEvent eventName + * @property {google.protobuf.ITimestamp|null} [createTime] ConversionEvent createTime + * @property {boolean|null} [deletable] ConversionEvent deletable + * @property {boolean|null} [custom] ConversionEvent custom + */ + + /** + * Constructs a new ConversionEvent. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ConversionEvent. + * @implements IConversionEvent + * @constructor + * @param {google.analytics.admin.v1alpha.IConversionEvent=} [properties] Properties to set + */ + function ConversionEvent(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]]; + } + + /** + * ConversionEvent name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.name = ""; + + /** + * ConversionEvent eventName. + * @member {string} eventName + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.eventName = ""; + + /** + * ConversionEvent createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.createTime = null; + + /** + * ConversionEvent deletable. + * @member {boolean} deletable + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.deletable = false; + + /** + * ConversionEvent custom. + * @member {boolean} custom + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + */ + ConversionEvent.prototype.custom = false; + + /** + * Creates a new ConversionEvent instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {google.analytics.admin.v1alpha.IConversionEvent=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent instance + */ + ConversionEvent.create = function create(properties) { + return new ConversionEvent(properties); + }; + + /** + * Encodes the specified ConversionEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {google.analytics.admin.v1alpha.IConversionEvent} message ConversionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.deletable != null && Object.hasOwnProperty.call(message, "deletable")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.deletable); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.custom); + return writer; + }; + + /** + * Encodes the specified ConversionEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {google.analytics.admin.v1alpha.IConversionEvent} message ConversionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversionEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ConversionEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.eventName = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.deletable = reader.bool(); + break; + } + case 5: { + message.custom = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConversionEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversionEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConversionEvent message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConversionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.eventName != null && message.hasOwnProperty("eventName")) + if (!$util.isString(message.eventName)) + return "eventName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.deletable != null && message.hasOwnProperty("deletable")) + if (typeof message.deletable !== "boolean") + return "deletable: boolean expected"; + if (message.custom != null && message.hasOwnProperty("custom")) + if (typeof message.custom !== "boolean") + return "custom: boolean expected"; + return null; + }; + + /** + * Creates a ConversionEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent + */ + ConversionEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ConversionEvent) + return object; + var message = new $root.google.analytics.admin.v1alpha.ConversionEvent(); + if (object.name != null) + message.name = String(object.name); + if (object.eventName != null) + message.eventName = String(object.eventName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ConversionEvent.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.deletable != null) + message.deletable = Boolean(object.deletable); + if (object.custom != null) + message.custom = Boolean(object.custom); + return message; + }; + + /** + * Creates a plain object from a ConversionEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {google.analytics.admin.v1alpha.ConversionEvent} message ConversionEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConversionEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.eventName = ""; + object.createTime = null; + object.deletable = false; + object.custom = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.deletable != null && message.hasOwnProperty("deletable")) + object.deletable = message.deletable; + if (message.custom != null && message.hasOwnProperty("custom")) + object.custom = message.custom; + return object; + }; + + /** + * Converts this ConversionEvent to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @instance + * @returns {Object.} JSON object + */ + ConversionEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConversionEvent + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConversionEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ConversionEvent"; + }; + + return ConversionEvent; + })(); + + v1alpha.GoogleSignalsSettings = (function() { + + /** + * Properties of a GoogleSignalsSettings. + * @memberof google.analytics.admin.v1alpha + * @interface IGoogleSignalsSettings + * @property {string|null} [name] GoogleSignalsSettings name + * @property {google.analytics.admin.v1alpha.GoogleSignalsState|null} [state] GoogleSignalsSettings state + * @property {google.analytics.admin.v1alpha.GoogleSignalsConsent|null} [consent] GoogleSignalsSettings consent + */ + + /** + * Constructs a new GoogleSignalsSettings. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GoogleSignalsSettings. + * @implements IGoogleSignalsSettings + * @constructor + * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings=} [properties] Properties to set + */ + function GoogleSignalsSettings(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]]; + } + + /** + * GoogleSignalsSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @instance + */ + GoogleSignalsSettings.prototype.name = ""; + + /** + * GoogleSignalsSettings state. + * @member {google.analytics.admin.v1alpha.GoogleSignalsState} state + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @instance + */ + GoogleSignalsSettings.prototype.state = 0; + + /** + * GoogleSignalsSettings consent. + * @member {google.analytics.admin.v1alpha.GoogleSignalsConsent} consent + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @instance + */ + GoogleSignalsSettings.prototype.consent = 0; + + /** + * Creates a new GoogleSignalsSettings instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings instance + */ + GoogleSignalsSettings.create = function create(properties) { + return new GoogleSignalsSettings(properties); + }; + + /** + * Encodes the specified GoogleSignalsSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings} message GoogleSignalsSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleSignalsSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.consent != null && Object.hasOwnProperty.call(message, "consent")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.consent); + return writer; + }; + + /** + * Encodes the specified GoogleSignalsSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings} message GoogleSignalsSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoogleSignalsSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoogleSignalsSettings message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleSignalsSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GoogleSignalsSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.state = reader.int32(); + break; + } + case 4: { + message.consent = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoogleSignalsSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoogleSignalsSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoogleSignalsSettings message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoogleSignalsSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; } - if (message.dataRetentionSettings != null && message.hasOwnProperty("dataRetentionSettings")) { - object.dataRetentionSettings = $root.google.analytics.admin.v1alpha.DataRetentionSettings.toObject(message.dataRetentionSettings, options); - if (options.oneofs) - object.resource = "dataRetentionSettings"; + if (message.consent != null && message.hasOwnProperty("consent")) + switch (message.consent) { + default: + return "consent: enum value expected"; + case 0: + case 2: + case 1: + break; } - if (message.dataStream != null && message.hasOwnProperty("dataStream")) { - object.dataStream = $root.google.analytics.admin.v1alpha.DataStream.toObject(message.dataStream, options); - if (options.oneofs) - object.resource = "dataStream"; + return null; + }; + + /** + * Creates a GoogleSignalsSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings + */ + GoogleSignalsSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GoogleSignalsSettings) + return object; + var message = new $root.google.analytics.admin.v1alpha.GoogleSignalsSettings(); + if (object.name != null) + message.name = String(object.name); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; } - if (message.attributionSettings != null && message.hasOwnProperty("attributionSettings")) { - object.attributionSettings = $root.google.analytics.admin.v1alpha.AttributionSettings.toObject(message.attributionSettings, options); - if (options.oneofs) - object.resource = "attributionSettings"; + break; + case "GOOGLE_SIGNALS_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "GOOGLE_SIGNALS_ENABLED": + case 1: + message.state = 1; + break; + case "GOOGLE_SIGNALS_DISABLED": + case 2: + message.state = 2; + break; + } + switch (object.consent) { + default: + if (typeof object.consent === "number") { + message.consent = object.consent; + break; } - return object; - }; + break; + case "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED": + case 0: + message.consent = 0; + break; + case "GOOGLE_SIGNALS_CONSENT_CONSENTED": + case 2: + message.consent = 2; + break; + case "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED": + case 1: + message.consent = 1; + break; + } + return message; + }; - /** - * Converts this ChangeHistoryResource to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @instance - * @returns {Object.} JSON object - */ - ChangeHistoryResource.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a GoogleSignalsSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} message GoogleSignalsSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoogleSignalsSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.state = options.enums === String ? "GOOGLE_SIGNALS_STATE_UNSPECIFIED" : 0; + object.consent = options.enums === String ? "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.analytics.admin.v1alpha.GoogleSignalsState[message.state] === undefined ? message.state : $root.google.analytics.admin.v1alpha.GoogleSignalsState[message.state] : message.state; + if (message.consent != null && message.hasOwnProperty("consent")) + object.consent = options.enums === String ? $root.google.analytics.admin.v1alpha.GoogleSignalsConsent[message.consent] === undefined ? message.consent : $root.google.analytics.admin.v1alpha.GoogleSignalsConsent[message.consent] : message.consent; + return object; + }; - /** - * Gets the default type url for ChangeHistoryResource - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ChangeHistoryResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource"; - }; + /** + * Converts this GoogleSignalsSettings to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @instance + * @returns {Object.} JSON object + */ + GoogleSignalsSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ChangeHistoryResource; - })(); + /** + * Gets the default type url for GoogleSignalsSettings + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GoogleSignalsSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GoogleSignalsSettings"; + }; - return ChangeHistoryChange; + return GoogleSignalsSettings; })(); - v1alpha.DisplayVideo360AdvertiserLink = (function() { + v1alpha.CustomDimension = (function() { /** - * Properties of a DisplayVideo360AdvertiserLink. + * Properties of a CustomDimension. * @memberof google.analytics.admin.v1alpha - * @interface IDisplayVideo360AdvertiserLink - * @property {string|null} [name] DisplayVideo360AdvertiserLink name - * @property {string|null} [advertiserId] DisplayVideo360AdvertiserLink advertiserId - * @property {string|null} [advertiserDisplayName] DisplayVideo360AdvertiserLink advertiserDisplayName - * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] DisplayVideo360AdvertiserLink adsPersonalizationEnabled - * @property {google.protobuf.IBoolValue|null} [campaignDataSharingEnabled] DisplayVideo360AdvertiserLink campaignDataSharingEnabled - * @property {google.protobuf.IBoolValue|null} [costDataSharingEnabled] DisplayVideo360AdvertiserLink costDataSharingEnabled + * @interface ICustomDimension + * @property {string|null} [name] CustomDimension name + * @property {string|null} [parameterName] CustomDimension parameterName + * @property {string|null} [displayName] CustomDimension displayName + * @property {string|null} [description] CustomDimension description + * @property {google.analytics.admin.v1alpha.CustomDimension.DimensionScope|null} [scope] CustomDimension scope + * @property {boolean|null} [disallowAdsPersonalization] CustomDimension disallowAdsPersonalization */ /** - * Constructs a new DisplayVideo360AdvertiserLink. + * Constructs a new CustomDimension. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DisplayVideo360AdvertiserLink. - * @implements IDisplayVideo360AdvertiserLink + * @classdesc Represents a CustomDimension. + * @implements ICustomDimension * @constructor - * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICustomDimension=} [properties] Properties to set */ - function DisplayVideo360AdvertiserLink(properties) { + function CustomDimension(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42974,120 +48277,120 @@ } /** - * DisplayVideo360AdvertiserLink name. + * CustomDimension name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @instance */ - DisplayVideo360AdvertiserLink.prototype.name = ""; + CustomDimension.prototype.name = ""; /** - * DisplayVideo360AdvertiserLink advertiserId. - * @member {string} advertiserId - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * CustomDimension parameterName. + * @member {string} parameterName + * @memberof google.analytics.admin.v1alpha.CustomDimension * @instance */ - DisplayVideo360AdvertiserLink.prototype.advertiserId = ""; + CustomDimension.prototype.parameterName = ""; /** - * DisplayVideo360AdvertiserLink advertiserDisplayName. - * @member {string} advertiserDisplayName - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * CustomDimension displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.CustomDimension * @instance */ - DisplayVideo360AdvertiserLink.prototype.advertiserDisplayName = ""; + CustomDimension.prototype.displayName = ""; /** - * DisplayVideo360AdvertiserLink adsPersonalizationEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * CustomDimension description. + * @member {string} description + * @memberof google.analytics.admin.v1alpha.CustomDimension * @instance */ - DisplayVideo360AdvertiserLink.prototype.adsPersonalizationEnabled = null; + CustomDimension.prototype.description = ""; /** - * DisplayVideo360AdvertiserLink campaignDataSharingEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} campaignDataSharingEnabled - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * CustomDimension scope. + * @member {google.analytics.admin.v1alpha.CustomDimension.DimensionScope} scope + * @memberof google.analytics.admin.v1alpha.CustomDimension * @instance */ - DisplayVideo360AdvertiserLink.prototype.campaignDataSharingEnabled = null; + CustomDimension.prototype.scope = 0; /** - * DisplayVideo360AdvertiserLink costDataSharingEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} costDataSharingEnabled - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * CustomDimension disallowAdsPersonalization. + * @member {boolean} disallowAdsPersonalization + * @memberof google.analytics.admin.v1alpha.CustomDimension * @instance */ - DisplayVideo360AdvertiserLink.prototype.costDataSharingEnabled = null; + CustomDimension.prototype.disallowAdsPersonalization = false; /** - * Creates a new DisplayVideo360AdvertiserLink instance using the specified properties. + * Creates a new CustomDimension instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @static - * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink instance + * @param {google.analytics.admin.v1alpha.ICustomDimension=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension instance */ - DisplayVideo360AdvertiserLink.create = function create(properties) { - return new DisplayVideo360AdvertiserLink(properties); + CustomDimension.create = function create(properties) { + return new CustomDimension(properties); }; /** - * Encodes the specified DisplayVideo360AdvertiserLink message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * Encodes the specified CustomDimension message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @static - * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink} message DisplayVideo360AdvertiserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICustomDimension} message CustomDimension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DisplayVideo360AdvertiserLink.encode = function encode(message, writer) { + CustomDimension.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.advertiserId != null && Object.hasOwnProperty.call(message, "advertiserId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.advertiserId); - if (message.advertiserDisplayName != null && Object.hasOwnProperty.call(message, "advertiserDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.advertiserDisplayName); - if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) - $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.campaignDataSharingEnabled != null && Object.hasOwnProperty.call(message, "campaignDataSharingEnabled")) - $root.google.protobuf.BoolValue.encode(message.campaignDataSharingEnabled, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.costDataSharingEnabled != null && Object.hasOwnProperty.call(message, "costDataSharingEnabled")) - $root.google.protobuf.BoolValue.encode(message.costDataSharingEnabled, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.parameterName != null && Object.hasOwnProperty.call(message, "parameterName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scope); + if (message.disallowAdsPersonalization != null && Object.hasOwnProperty.call(message, "disallowAdsPersonalization")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disallowAdsPersonalization); return writer; }; /** - * Encodes the specified DisplayVideo360AdvertiserLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.verify|verify} messages. + * Encodes the specified CustomDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @static - * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink} message DisplayVideo360AdvertiserLink message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICustomDimension} message CustomDimension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DisplayVideo360AdvertiserLink.encodeDelimited = function encodeDelimited(message, writer) { + CustomDimension.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer. + * Decodes a CustomDimension message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink + * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DisplayVideo360AdvertiserLink.decode = function decode(reader, length) { + CustomDimension.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CustomDimension(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -43096,23 +48399,23 @@ break; } case 2: { - message.advertiserId = reader.string(); + message.parameterName = reader.string(); break; } case 3: { - message.advertiserDisplayName = reader.string(); + message.displayName = reader.string(); break; } case 4: { - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + message.description = reader.string(); break; } case 5: { - message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + message.scope = reader.int32(); break; } case 6: { - message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + message.disallowAdsPersonalization = reader.bool(); break; } default: @@ -43124,185 +48427,210 @@ }; /** - * Decodes a DisplayVideo360AdvertiserLink message from the specified reader or buffer, length delimited. + * Decodes a CustomDimension message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink + * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DisplayVideo360AdvertiserLink.decodeDelimited = function decodeDelimited(reader) { + CustomDimension.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DisplayVideo360AdvertiserLink message. + * Verifies a CustomDimension message. * @function verify - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DisplayVideo360AdvertiserLink.verify = function verify(message) { + CustomDimension.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) - if (!$util.isString(message.advertiserId)) - return "advertiserId: string expected"; - if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) - if (!$util.isString(message.advertiserDisplayName)) - return "advertiserDisplayName: string expected"; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); - if (error) - return "adsPersonalizationEnabled." + error; - } - if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.campaignDataSharingEnabled); - if (error) - return "campaignDataSharingEnabled." + error; - } - if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.costDataSharingEnabled); - if (error) - return "costDataSharingEnabled." + error; - } + if (message.parameterName != null && message.hasOwnProperty("parameterName")) + if (!$util.isString(message.parameterName)) + return "parameterName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) + if (typeof message.disallowAdsPersonalization !== "boolean") + return "disallowAdsPersonalization: boolean expected"; return null; }; /** - * Creates a DisplayVideo360AdvertiserLink message from a plain object. Also converts values to their respective internal types. + * Creates a CustomDimension message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} DisplayVideo360AdvertiserLink + * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension */ - DisplayVideo360AdvertiserLink.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + CustomDimension.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CustomDimension) return object; - var message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(); + var message = new $root.google.analytics.admin.v1alpha.CustomDimension(); if (object.name != null) message.name = String(object.name); - if (object.advertiserId != null) - message.advertiserId = String(object.advertiserId); - if (object.advertiserDisplayName != null) - message.advertiserDisplayName = String(object.advertiserDisplayName); - if (object.adsPersonalizationEnabled != null) { - if (typeof object.adsPersonalizationEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.adsPersonalizationEnabled: object expected"); - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); - } - if (object.campaignDataSharingEnabled != null) { - if (typeof object.campaignDataSharingEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.campaignDataSharingEnabled: object expected"); - message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.campaignDataSharingEnabled); - } - if (object.costDataSharingEnabled != null) { - if (typeof object.costDataSharingEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.costDataSharingEnabled: object expected"); - message.costDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.costDataSharingEnabled); + if (object.parameterName != null) + message.parameterName = String(object.parameterName); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; + case "DIMENSION_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "EVENT": + case 1: + message.scope = 1; + break; + case "USER": + case 2: + message.scope = 2; + break; } + if (object.disallowAdsPersonalization != null) + message.disallowAdsPersonalization = Boolean(object.disallowAdsPersonalization); return message; }; /** - * Creates a plain object from a DisplayVideo360AdvertiserLink message. Also converts values to other types if specified. + * Creates a plain object from a CustomDimension message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @static - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} message DisplayVideo360AdvertiserLink + * @param {google.analytics.admin.v1alpha.CustomDimension} message CustomDimension * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DisplayVideo360AdvertiserLink.toObject = function toObject(message, options) { + CustomDimension.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.advertiserId = ""; - object.advertiserDisplayName = ""; - object.adsPersonalizationEnabled = null; - object.campaignDataSharingEnabled = null; - object.costDataSharingEnabled = null; + object.parameterName = ""; + object.displayName = ""; + object.description = ""; + object.scope = options.enums === String ? "DIMENSION_SCOPE_UNSPECIFIED" : 0; + object.disallowAdsPersonalization = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) - object.advertiserId = message.advertiserId; - if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) - object.advertiserDisplayName = message.advertiserDisplayName; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); - if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) - object.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.campaignDataSharingEnabled, options); - if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) - object.costDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.costDataSharingEnabled, options); + if (message.parameterName != null && message.hasOwnProperty("parameterName")) + object.parameterName = message.parameterName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomDimension.DimensionScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.CustomDimension.DimensionScope[message.scope] : message.scope; + if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) + object.disallowAdsPersonalization = message.disallowAdsPersonalization; return object; }; /** - * Converts this DisplayVideo360AdvertiserLink to JSON. + * Converts this CustomDimension to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @instance * @returns {Object.} JSON object */ - DisplayVideo360AdvertiserLink.prototype.toJSON = function toJSON() { + CustomDimension.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DisplayVideo360AdvertiserLink + * Gets the default type url for CustomDimension * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + * @memberof google.analytics.admin.v1alpha.CustomDimension * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DisplayVideo360AdvertiserLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CustomDimension.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CustomDimension"; }; - return DisplayVideo360AdvertiserLink; - })(); - - v1alpha.DisplayVideo360AdvertiserLinkProposal = (function() { - /** - * Properties of a DisplayVideo360AdvertiserLinkProposal. - * @memberof google.analytics.admin.v1alpha - * @interface IDisplayVideo360AdvertiserLinkProposal - * @property {string|null} [name] DisplayVideo360AdvertiserLinkProposal name - * @property {string|null} [advertiserId] DisplayVideo360AdvertiserLinkProposal advertiserId - * @property {google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null} [linkProposalStatusDetails] DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails - * @property {string|null} [advertiserDisplayName] DisplayVideo360AdvertiserLinkProposal advertiserDisplayName - * @property {string|null} [validationEmail] DisplayVideo360AdvertiserLinkProposal validationEmail - * @property {google.protobuf.IBoolValue|null} [adsPersonalizationEnabled] DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled - * @property {google.protobuf.IBoolValue|null} [campaignDataSharingEnabled] DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled - * @property {google.protobuf.IBoolValue|null} [costDataSharingEnabled] DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled + * DimensionScope enum. + * @name google.analytics.admin.v1alpha.CustomDimension.DimensionScope + * @enum {number} + * @property {number} DIMENSION_SCOPE_UNSPECIFIED=0 DIMENSION_SCOPE_UNSPECIFIED value + * @property {number} EVENT=1 EVENT value + * @property {number} USER=2 USER value + */ + CustomDimension.DimensionScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DIMENSION_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EVENT"] = 1; + values[valuesById[2] = "USER"] = 2; + return values; + })(); + + return CustomDimension; + })(); + + v1alpha.CustomMetric = (function() { + + /** + * Properties of a CustomMetric. + * @memberof google.analytics.admin.v1alpha + * @interface ICustomMetric + * @property {string|null} [name] CustomMetric name + * @property {string|null} [parameterName] CustomMetric parameterName + * @property {string|null} [displayName] CustomMetric displayName + * @property {string|null} [description] CustomMetric description + * @property {google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|null} [measurementUnit] CustomMetric measurementUnit + * @property {google.analytics.admin.v1alpha.CustomMetric.MetricScope|null} [scope] CustomMetric scope + * @property {Array.|null} [restrictedMetricType] CustomMetric restrictedMetricType */ /** - * Constructs a new DisplayVideo360AdvertiserLinkProposal. + * Constructs a new CustomMetric. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DisplayVideo360AdvertiserLinkProposal. - * @implements IDisplayVideo360AdvertiserLinkProposal + * @classdesc Represents a CustomMetric. + * @implements ICustomMetric * @constructor - * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICustomMetric=} [properties] Properties to set */ - function DisplayVideo360AdvertiserLinkProposal(properties) { + function CustomMetric(properties) { + this.restrictedMetricType = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43310,140 +48638,134 @@ } /** - * DisplayVideo360AdvertiserLinkProposal name. + * CustomMetric name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - * @instance - */ - DisplayVideo360AdvertiserLinkProposal.prototype.name = ""; - - /** - * DisplayVideo360AdvertiserLinkProposal advertiserId. - * @member {string} advertiserId - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @instance */ - DisplayVideo360AdvertiserLinkProposal.prototype.advertiserId = ""; + CustomMetric.prototype.name = ""; /** - * DisplayVideo360AdvertiserLinkProposal linkProposalStatusDetails. - * @member {google.analytics.admin.v1alpha.ILinkProposalStatusDetails|null|undefined} linkProposalStatusDetails - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * CustomMetric parameterName. + * @member {string} parameterName + * @memberof google.analytics.admin.v1alpha.CustomMetric * @instance */ - DisplayVideo360AdvertiserLinkProposal.prototype.linkProposalStatusDetails = null; + CustomMetric.prototype.parameterName = ""; /** - * DisplayVideo360AdvertiserLinkProposal advertiserDisplayName. - * @member {string} advertiserDisplayName - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * CustomMetric displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.CustomMetric * @instance */ - DisplayVideo360AdvertiserLinkProposal.prototype.advertiserDisplayName = ""; + CustomMetric.prototype.displayName = ""; /** - * DisplayVideo360AdvertiserLinkProposal validationEmail. - * @member {string} validationEmail - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * CustomMetric description. + * @member {string} description + * @memberof google.analytics.admin.v1alpha.CustomMetric * @instance */ - DisplayVideo360AdvertiserLinkProposal.prototype.validationEmail = ""; + CustomMetric.prototype.description = ""; /** - * DisplayVideo360AdvertiserLinkProposal adsPersonalizationEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} adsPersonalizationEnabled - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * CustomMetric measurementUnit. + * @member {google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit} measurementUnit + * @memberof google.analytics.admin.v1alpha.CustomMetric * @instance */ - DisplayVideo360AdvertiserLinkProposal.prototype.adsPersonalizationEnabled = null; + CustomMetric.prototype.measurementUnit = 0; /** - * DisplayVideo360AdvertiserLinkProposal campaignDataSharingEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} campaignDataSharingEnabled - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * CustomMetric scope. + * @member {google.analytics.admin.v1alpha.CustomMetric.MetricScope} scope + * @memberof google.analytics.admin.v1alpha.CustomMetric * @instance */ - DisplayVideo360AdvertiserLinkProposal.prototype.campaignDataSharingEnabled = null; + CustomMetric.prototype.scope = 0; /** - * DisplayVideo360AdvertiserLinkProposal costDataSharingEnabled. - * @member {google.protobuf.IBoolValue|null|undefined} costDataSharingEnabled - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * CustomMetric restrictedMetricType. + * @member {Array.} restrictedMetricType + * @memberof google.analytics.admin.v1alpha.CustomMetric * @instance */ - DisplayVideo360AdvertiserLinkProposal.prototype.costDataSharingEnabled = null; + CustomMetric.prototype.restrictedMetricType = $util.emptyArray; /** - * Creates a new DisplayVideo360AdvertiserLinkProposal instance using the specified properties. + * Creates a new CustomMetric instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @static - * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal instance + * @param {google.analytics.admin.v1alpha.ICustomMetric=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric instance */ - DisplayVideo360AdvertiserLinkProposal.create = function create(properties) { - return new DisplayVideo360AdvertiserLinkProposal(properties); + CustomMetric.create = function create(properties) { + return new CustomMetric(properties); }; /** - * Encodes the specified DisplayVideo360AdvertiserLinkProposal message. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * Encodes the specified CustomMetric message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @static - * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal} message DisplayVideo360AdvertiserLinkProposal message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICustomMetric} message CustomMetric message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DisplayVideo360AdvertiserLinkProposal.encode = function encode(message, writer) { + CustomMetric.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.advertiserId != null && Object.hasOwnProperty.call(message, "advertiserId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.advertiserId); - if (message.linkProposalStatusDetails != null && Object.hasOwnProperty.call(message, "linkProposalStatusDetails")) - $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.encode(message.linkProposalStatusDetails, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.advertiserDisplayName != null && Object.hasOwnProperty.call(message, "advertiserDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.advertiserDisplayName); - if (message.validationEmail != null && Object.hasOwnProperty.call(message, "validationEmail")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.validationEmail); - if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) - $root.google.protobuf.BoolValue.encode(message.adsPersonalizationEnabled, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.campaignDataSharingEnabled != null && Object.hasOwnProperty.call(message, "campaignDataSharingEnabled")) - $root.google.protobuf.BoolValue.encode(message.campaignDataSharingEnabled, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.costDataSharingEnabled != null && Object.hasOwnProperty.call(message, "costDataSharingEnabled")) - $root.google.protobuf.BoolValue.encode(message.costDataSharingEnabled, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.parameterName != null && Object.hasOwnProperty.call(message, "parameterName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterName); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.measurementUnit != null && Object.hasOwnProperty.call(message, "measurementUnit")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.measurementUnit); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.scope); + if (message.restrictedMetricType != null && message.restrictedMetricType.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.restrictedMetricType.length; ++i) + writer.int32(message.restrictedMetricType[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified DisplayVideo360AdvertiserLinkProposal message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.verify|verify} messages. + * Encodes the specified CustomMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @static - * @param {google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal} message DisplayVideo360AdvertiserLinkProposal message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICustomMetric} message CustomMetric message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DisplayVideo360AdvertiserLinkProposal.encodeDelimited = function encodeDelimited(message, writer) { + CustomMetric.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer. + * Decodes a CustomMetric message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal + * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DisplayVideo360AdvertiserLinkProposal.decode = function decode(reader, length) { + CustomMetric.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CustomMetric(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -43452,31 +48774,34 @@ break; } case 2: { - message.advertiserId = reader.string(); + message.parameterName = reader.string(); break; } case 3: { - message.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; } case 4: { - message.advertiserDisplayName = reader.string(); + message.description = reader.string(); break; } case 5: { - message.validationEmail = reader.string(); + message.measurementUnit = reader.int32(); break; } case 6: { - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - } - case 7: { - message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + message.scope = reader.int32(); break; } case 8: { - message.costDataSharingEnabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + if (!(message.restrictedMetricType && message.restrictedMetricType.length)) + message.restrictedMetricType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.restrictedMetricType.push(reader.int32()); + } else + message.restrictedMetricType.push(reader.int32()); break; } default: @@ -43488,201 +48813,355 @@ }; /** - * Decodes a DisplayVideo360AdvertiserLinkProposal message from the specified reader or buffer, length delimited. + * Decodes a CustomMetric message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal + * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DisplayVideo360AdvertiserLinkProposal.decodeDelimited = function decodeDelimited(reader) { + CustomMetric.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DisplayVideo360AdvertiserLinkProposal message. + * Verifies a CustomMetric message. * @function verify - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DisplayVideo360AdvertiserLinkProposal.verify = function verify(message) { + CustomMetric.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) - if (!$util.isString(message.advertiserId)) - return "advertiserId: string expected"; - if (message.linkProposalStatusDetails != null && message.hasOwnProperty("linkProposalStatusDetails")) { - var error = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify(message.linkProposalStatusDetails); - if (error) - return "linkProposalStatusDetails." + error; - } - if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) - if (!$util.isString(message.advertiserDisplayName)) - return "advertiserDisplayName: string expected"; - if (message.validationEmail != null && message.hasOwnProperty("validationEmail")) - if (!$util.isString(message.validationEmail)) - return "validationEmail: string expected"; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.adsPersonalizationEnabled); - if (error) - return "adsPersonalizationEnabled." + error; - } - if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.campaignDataSharingEnabled); - if (error) - return "campaignDataSharingEnabled." + error; - } - if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) { - var error = $root.google.protobuf.BoolValue.verify(message.costDataSharingEnabled); - if (error) - return "costDataSharingEnabled." + error; + if (message.parameterName != null && message.hasOwnProperty("parameterName")) + if (!$util.isString(message.parameterName)) + return "parameterName: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) + switch (message.measurementUnit) { + default: + return "measurementUnit: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + break; + } + if (message.restrictedMetricType != null && message.hasOwnProperty("restrictedMetricType")) { + if (!Array.isArray(message.restrictedMetricType)) + return "restrictedMetricType: array expected"; + for (var i = 0; i < message.restrictedMetricType.length; ++i) + switch (message.restrictedMetricType[i]) { + default: + return "restrictedMetricType: enum value[] expected"; + case 0: + case 1: + case 2: + break; + } } return null; }; /** - * Creates a DisplayVideo360AdvertiserLinkProposal message from a plain object. Also converts values to their respective internal types. + * Creates a CustomMetric message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} DisplayVideo360AdvertiserLinkProposal + * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric */ - DisplayVideo360AdvertiserLinkProposal.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + CustomMetric.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CustomMetric) return object; - var message = new $root.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(); + var message = new $root.google.analytics.admin.v1alpha.CustomMetric(); if (object.name != null) message.name = String(object.name); - if (object.advertiserId != null) - message.advertiserId = String(object.advertiserId); - if (object.linkProposalStatusDetails != null) { - if (typeof object.linkProposalStatusDetails !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.linkProposalStatusDetails: object expected"); - message.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.fromObject(object.linkProposalStatusDetails); - } - if (object.advertiserDisplayName != null) - message.advertiserDisplayName = String(object.advertiserDisplayName); - if (object.validationEmail != null) - message.validationEmail = String(object.validationEmail); - if (object.adsPersonalizationEnabled != null) { - if (typeof object.adsPersonalizationEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.adsPersonalizationEnabled: object expected"); - message.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.fromObject(object.adsPersonalizationEnabled); + if (object.parameterName != null) + message.parameterName = String(object.parameterName); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.measurementUnit) { + default: + if (typeof object.measurementUnit === "number") { + message.measurementUnit = object.measurementUnit; + break; + } + break; + case "MEASUREMENT_UNIT_UNSPECIFIED": + case 0: + message.measurementUnit = 0; + break; + case "STANDARD": + case 1: + message.measurementUnit = 1; + break; + case "CURRENCY": + case 2: + message.measurementUnit = 2; + break; + case "FEET": + case 3: + message.measurementUnit = 3; + break; + case "METERS": + case 4: + message.measurementUnit = 4; + break; + case "KILOMETERS": + case 5: + message.measurementUnit = 5; + break; + case "MILES": + case 6: + message.measurementUnit = 6; + break; + case "MILLISECONDS": + case 7: + message.measurementUnit = 7; + break; + case "SECONDS": + case 8: + message.measurementUnit = 8; + break; + case "MINUTES": + case 9: + message.measurementUnit = 9; + break; + case "HOURS": + case 10: + message.measurementUnit = 10; + break; } - if (object.campaignDataSharingEnabled != null) { - if (typeof object.campaignDataSharingEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.campaignDataSharingEnabled: object expected"); - message.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.campaignDataSharingEnabled); + switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; + case "METRIC_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "EVENT": + case 1: + message.scope = 1; + break; } - if (object.costDataSharingEnabled != null) { - if (typeof object.costDataSharingEnabled !== "object") - throw TypeError(".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.costDataSharingEnabled: object expected"); - message.costDataSharingEnabled = $root.google.protobuf.BoolValue.fromObject(object.costDataSharingEnabled); + if (object.restrictedMetricType) { + if (!Array.isArray(object.restrictedMetricType)) + throw TypeError(".google.analytics.admin.v1alpha.CustomMetric.restrictedMetricType: array expected"); + message.restrictedMetricType = []; + for (var i = 0; i < object.restrictedMetricType.length; ++i) + switch (object.restrictedMetricType[i]) { + default: + if (typeof object.restrictedMetricType[i] === "number") { + message.restrictedMetricType[i] = object.restrictedMetricType[i]; + break; + } + case "RESTRICTED_METRIC_TYPE_UNSPECIFIED": + case 0: + message.restrictedMetricType[i] = 0; + break; + case "COST_DATA": + case 1: + message.restrictedMetricType[i] = 1; + break; + case "REVENUE_DATA": + case 2: + message.restrictedMetricType[i] = 2; + break; + } } return message; }; /** - * Creates a plain object from a DisplayVideo360AdvertiserLinkProposal message. Also converts values to other types if specified. + * Creates a plain object from a CustomMetric message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @static - * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} message DisplayVideo360AdvertiserLinkProposal + * @param {google.analytics.admin.v1alpha.CustomMetric} message CustomMetric * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DisplayVideo360AdvertiserLinkProposal.toObject = function toObject(message, options) { + CustomMetric.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.restrictedMetricType = []; if (options.defaults) { object.name = ""; - object.advertiserId = ""; - object.linkProposalStatusDetails = null; - object.advertiserDisplayName = ""; - object.validationEmail = ""; - object.adsPersonalizationEnabled = null; - object.campaignDataSharingEnabled = null; - object.costDataSharingEnabled = null; + object.parameterName = ""; + object.displayName = ""; + object.description = ""; + object.measurementUnit = options.enums === String ? "MEASUREMENT_UNIT_UNSPECIFIED" : 0; + object.scope = options.enums === String ? "METRIC_SCOPE_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.advertiserId != null && message.hasOwnProperty("advertiserId")) - object.advertiserId = message.advertiserId; - if (message.linkProposalStatusDetails != null && message.hasOwnProperty("linkProposalStatusDetails")) - object.linkProposalStatusDetails = $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails.toObject(message.linkProposalStatusDetails, options); - if (message.advertiserDisplayName != null && message.hasOwnProperty("advertiserDisplayName")) - object.advertiserDisplayName = message.advertiserDisplayName; - if (message.validationEmail != null && message.hasOwnProperty("validationEmail")) - object.validationEmail = message.validationEmail; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - object.adsPersonalizationEnabled = $root.google.protobuf.BoolValue.toObject(message.adsPersonalizationEnabled, options); - if (message.campaignDataSharingEnabled != null && message.hasOwnProperty("campaignDataSharingEnabled")) - object.campaignDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.campaignDataSharingEnabled, options); - if (message.costDataSharingEnabled != null && message.hasOwnProperty("costDataSharingEnabled")) - object.costDataSharingEnabled = $root.google.protobuf.BoolValue.toObject(message.costDataSharingEnabled, options); + if (message.parameterName != null && message.hasOwnProperty("parameterName")) + object.parameterName = message.parameterName; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) + object.measurementUnit = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit[message.measurementUnit] === undefined ? message.measurementUnit : $root.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit[message.measurementUnit] : message.measurementUnit; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MetricScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.CustomMetric.MetricScope[message.scope] : message.scope; + if (message.restrictedMetricType && message.restrictedMetricType.length) { + object.restrictedMetricType = []; + for (var j = 0; j < message.restrictedMetricType.length; ++j) + object.restrictedMetricType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] === undefined ? message.restrictedMetricType[j] : $root.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] : message.restrictedMetricType[j]; + } return object; }; /** - * Converts this DisplayVideo360AdvertiserLinkProposal to JSON. + * Converts this CustomMetric to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @instance * @returns {Object.} JSON object */ - DisplayVideo360AdvertiserLinkProposal.prototype.toJSON = function toJSON() { + CustomMetric.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DisplayVideo360AdvertiserLinkProposal + * Gets the default type url for CustomMetric * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + * @memberof google.analytics.admin.v1alpha.CustomMetric * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DisplayVideo360AdvertiserLinkProposal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CustomMetric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CustomMetric"; }; - return DisplayVideo360AdvertiserLinkProposal; + /** + * MeasurementUnit enum. + * @name google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit + * @enum {number} + * @property {number} MEASUREMENT_UNIT_UNSPECIFIED=0 MEASUREMENT_UNIT_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} CURRENCY=2 CURRENCY value + * @property {number} FEET=3 FEET value + * @property {number} METERS=4 METERS value + * @property {number} KILOMETERS=5 KILOMETERS value + * @property {number} MILES=6 MILES value + * @property {number} MILLISECONDS=7 MILLISECONDS value + * @property {number} SECONDS=8 SECONDS value + * @property {number} MINUTES=9 MINUTES value + * @property {number} HOURS=10 HOURS value + */ + CustomMetric.MeasurementUnit = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MEASUREMENT_UNIT_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "CURRENCY"] = 2; + values[valuesById[3] = "FEET"] = 3; + values[valuesById[4] = "METERS"] = 4; + values[valuesById[5] = "KILOMETERS"] = 5; + values[valuesById[6] = "MILES"] = 6; + values[valuesById[7] = "MILLISECONDS"] = 7; + values[valuesById[8] = "SECONDS"] = 8; + values[valuesById[9] = "MINUTES"] = 9; + values[valuesById[10] = "HOURS"] = 10; + return values; + })(); + + /** + * MetricScope enum. + * @name google.analytics.admin.v1alpha.CustomMetric.MetricScope + * @enum {number} + * @property {number} METRIC_SCOPE_UNSPECIFIED=0 METRIC_SCOPE_UNSPECIFIED value + * @property {number} EVENT=1 EVENT value + */ + CustomMetric.MetricScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METRIC_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EVENT"] = 1; + return values; + })(); + + /** + * RestrictedMetricType enum. + * @name google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType + * @enum {number} + * @property {number} RESTRICTED_METRIC_TYPE_UNSPECIFIED=0 RESTRICTED_METRIC_TYPE_UNSPECIFIED value + * @property {number} COST_DATA=1 COST_DATA value + * @property {number} REVENUE_DATA=2 REVENUE_DATA value + */ + CustomMetric.RestrictedMetricType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESTRICTED_METRIC_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "COST_DATA"] = 1; + values[valuesById[2] = "REVENUE_DATA"] = 2; + return values; + })(); + + return CustomMetric; })(); - v1alpha.LinkProposalStatusDetails = (function() { + v1alpha.DataRetentionSettings = (function() { /** - * Properties of a LinkProposalStatusDetails. + * Properties of a DataRetentionSettings. * @memberof google.analytics.admin.v1alpha - * @interface ILinkProposalStatusDetails - * @property {google.analytics.admin.v1alpha.LinkProposalInitiatingProduct|null} [linkProposalInitiatingProduct] LinkProposalStatusDetails linkProposalInitiatingProduct - * @property {string|null} [requestorEmail] LinkProposalStatusDetails requestorEmail - * @property {google.analytics.admin.v1alpha.LinkProposalState|null} [linkProposalState] LinkProposalStatusDetails linkProposalState + * @interface IDataRetentionSettings + * @property {string|null} [name] DataRetentionSettings name + * @property {google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|null} [eventDataRetention] DataRetentionSettings eventDataRetention + * @property {boolean|null} [resetUserDataOnNewActivity] DataRetentionSettings resetUserDataOnNewActivity */ /** - * Constructs a new LinkProposalStatusDetails. + * Constructs a new DataRetentionSettings. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a LinkProposalStatusDetails. - * @implements ILinkProposalStatusDetails + * @classdesc Represents a DataRetentionSettings. + * @implements IDataRetentionSettings * @constructor - * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDataRetentionSettings=} [properties] Properties to set */ - function LinkProposalStatusDetails(properties) { + function DataRetentionSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43690,103 +49169,103 @@ } /** - * LinkProposalStatusDetails linkProposalInitiatingProduct. - * @member {google.analytics.admin.v1alpha.LinkProposalInitiatingProduct} linkProposalInitiatingProduct - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * DataRetentionSettings name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @instance */ - LinkProposalStatusDetails.prototype.linkProposalInitiatingProduct = 0; + DataRetentionSettings.prototype.name = ""; /** - * LinkProposalStatusDetails requestorEmail. - * @member {string} requestorEmail - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * DataRetentionSettings eventDataRetention. + * @member {google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration} eventDataRetention + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @instance */ - LinkProposalStatusDetails.prototype.requestorEmail = ""; + DataRetentionSettings.prototype.eventDataRetention = 0; /** - * LinkProposalStatusDetails linkProposalState. - * @member {google.analytics.admin.v1alpha.LinkProposalState} linkProposalState - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * DataRetentionSettings resetUserDataOnNewActivity. + * @member {boolean} resetUserDataOnNewActivity + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @instance */ - LinkProposalStatusDetails.prototype.linkProposalState = 0; + DataRetentionSettings.prototype.resetUserDataOnNewActivity = false; /** - * Creates a new LinkProposalStatusDetails instance using the specified properties. + * Creates a new DataRetentionSettings instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @static - * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails instance + * @param {google.analytics.admin.v1alpha.IDataRetentionSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings instance */ - LinkProposalStatusDetails.create = function create(properties) { - return new LinkProposalStatusDetails(properties); + DataRetentionSettings.create = function create(properties) { + return new DataRetentionSettings(properties); }; /** - * Encodes the specified LinkProposalStatusDetails message. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * Encodes the specified DataRetentionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @static - * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails} message LinkProposalStatusDetails message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDataRetentionSettings} message DataRetentionSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkProposalStatusDetails.encode = function encode(message, writer) { + DataRetentionSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.linkProposalInitiatingProduct != null && Object.hasOwnProperty.call(message, "linkProposalInitiatingProduct")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.linkProposalInitiatingProduct); - if (message.requestorEmail != null && Object.hasOwnProperty.call(message, "requestorEmail")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestorEmail); - if (message.linkProposalState != null && Object.hasOwnProperty.call(message, "linkProposalState")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.linkProposalState); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.eventDataRetention != null && Object.hasOwnProperty.call(message, "eventDataRetention")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.eventDataRetention); + if (message.resetUserDataOnNewActivity != null && Object.hasOwnProperty.call(message, "resetUserDataOnNewActivity")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.resetUserDataOnNewActivity); return writer; }; /** - * Encodes the specified LinkProposalStatusDetails message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.LinkProposalStatusDetails.verify|verify} messages. + * Encodes the specified DataRetentionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @static - * @param {google.analytics.admin.v1alpha.ILinkProposalStatusDetails} message LinkProposalStatusDetails message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDataRetentionSettings} message DataRetentionSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkProposalStatusDetails.encodeDelimited = function encodeDelimited(message, writer) { + DataRetentionSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LinkProposalStatusDetails message from the specified reader or buffer. + * Decodes a DataRetentionSettings message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails + * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkProposalStatusDetails.decode = function decode(reader, length) { + DataRetentionSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataRetentionSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.linkProposalInitiatingProduct = reader.int32(); + message.name = reader.string(); break; } case 2: { - message.requestorEmail = reader.string(); + message.eventDataRetention = reader.int32(); break; } case 3: { - message.linkProposalState = reader.int32(); + message.resetUserDataOnNewActivity = reader.bool(); break; } default: @@ -43798,211 +49277,203 @@ }; /** - * Decodes a LinkProposalStatusDetails message from the specified reader or buffer, length delimited. + * Decodes a DataRetentionSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails + * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkProposalStatusDetails.decodeDelimited = function decodeDelimited(reader) { + DataRetentionSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LinkProposalStatusDetails message. + * Verifies a DataRetentionSettings message. * @function verify - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LinkProposalStatusDetails.verify = function verify(message) { + DataRetentionSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.linkProposalInitiatingProduct != null && message.hasOwnProperty("linkProposalInitiatingProduct")) - switch (message.linkProposalInitiatingProduct) { - default: - return "linkProposalInitiatingProduct: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.requestorEmail != null && message.hasOwnProperty("requestorEmail")) - if (!$util.isString(message.requestorEmail)) - return "requestorEmail: string expected"; - if (message.linkProposalState != null && message.hasOwnProperty("linkProposalState")) - switch (message.linkProposalState) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) + switch (message.eventDataRetention) { default: - return "linkProposalState: enum value expected"; + return "eventDataRetention: enum value expected"; case 0: case 1: - case 2: case 3: case 4: case 5: case 6: break; } + if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) + if (typeof message.resetUserDataOnNewActivity !== "boolean") + return "resetUserDataOnNewActivity: boolean expected"; return null; }; /** - * Creates a LinkProposalStatusDetails message from a plain object. Also converts values to their respective internal types. + * Creates a DataRetentionSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.LinkProposalStatusDetails} LinkProposalStatusDetails + * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings */ - LinkProposalStatusDetails.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails) + DataRetentionSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DataRetentionSettings) return object; - var message = new $root.google.analytics.admin.v1alpha.LinkProposalStatusDetails(); - switch (object.linkProposalInitiatingProduct) { - default: - if (typeof object.linkProposalInitiatingProduct === "number") { - message.linkProposalInitiatingProduct = object.linkProposalInitiatingProduct; - break; - } - break; - case "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED": - case 0: - message.linkProposalInitiatingProduct = 0; - break; - case "GOOGLE_ANALYTICS": - case 1: - message.linkProposalInitiatingProduct = 1; - break; - case "LINKED_PRODUCT": - case 2: - message.linkProposalInitiatingProduct = 2; - break; - } - if (object.requestorEmail != null) - message.requestorEmail = String(object.requestorEmail); - switch (object.linkProposalState) { + var message = new $root.google.analytics.admin.v1alpha.DataRetentionSettings(); + if (object.name != null) + message.name = String(object.name); + switch (object.eventDataRetention) { default: - if (typeof object.linkProposalState === "number") { - message.linkProposalState = object.linkProposalState; + if (typeof object.eventDataRetention === "number") { + message.eventDataRetention = object.eventDataRetention; break; } break; - case "LINK_PROPOSAL_STATE_UNSPECIFIED": + case "RETENTION_DURATION_UNSPECIFIED": case 0: - message.linkProposalState = 0; + message.eventDataRetention = 0; break; - case "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS": + case "TWO_MONTHS": case 1: - message.linkProposalState = 1; - break; - case "AWAITING_REVIEW_FROM_LINKED_PRODUCT": - case 2: - message.linkProposalState = 2; + message.eventDataRetention = 1; break; - case "WITHDRAWN": + case "FOURTEEN_MONTHS": case 3: - message.linkProposalState = 3; + message.eventDataRetention = 3; break; - case "DECLINED": + case "TWENTY_SIX_MONTHS": case 4: - message.linkProposalState = 4; + message.eventDataRetention = 4; break; - case "EXPIRED": + case "THIRTY_EIGHT_MONTHS": case 5: - message.linkProposalState = 5; + message.eventDataRetention = 5; break; - case "OBSOLETE": + case "FIFTY_MONTHS": case 6: - message.linkProposalState = 6; + message.eventDataRetention = 6; break; } + if (object.resetUserDataOnNewActivity != null) + message.resetUserDataOnNewActivity = Boolean(object.resetUserDataOnNewActivity); return message; }; /** - * Creates a plain object from a LinkProposalStatusDetails message. Also converts values to other types if specified. + * Creates a plain object from a DataRetentionSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @static - * @param {google.analytics.admin.v1alpha.LinkProposalStatusDetails} message LinkProposalStatusDetails + * @param {google.analytics.admin.v1alpha.DataRetentionSettings} message DataRetentionSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LinkProposalStatusDetails.toObject = function toObject(message, options) { + DataRetentionSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.linkProposalInitiatingProduct = options.enums === String ? "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED" : 0; - object.requestorEmail = ""; - object.linkProposalState = options.enums === String ? "LINK_PROPOSAL_STATE_UNSPECIFIED" : 0; + object.name = ""; + object.eventDataRetention = options.enums === String ? "RETENTION_DURATION_UNSPECIFIED" : 0; + object.resetUserDataOnNewActivity = false; } - if (message.linkProposalInitiatingProduct != null && message.hasOwnProperty("linkProposalInitiatingProduct")) - object.linkProposalInitiatingProduct = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct[message.linkProposalInitiatingProduct] === undefined ? message.linkProposalInitiatingProduct : $root.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct[message.linkProposalInitiatingProduct] : message.linkProposalInitiatingProduct; - if (message.requestorEmail != null && message.hasOwnProperty("requestorEmail")) - object.requestorEmail = message.requestorEmail; - if (message.linkProposalState != null && message.hasOwnProperty("linkProposalState")) - object.linkProposalState = options.enums === String ? $root.google.analytics.admin.v1alpha.LinkProposalState[message.linkProposalState] === undefined ? message.linkProposalState : $root.google.analytics.admin.v1alpha.LinkProposalState[message.linkProposalState] : message.linkProposalState; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) + object.eventDataRetention = options.enums === String ? $root.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration[message.eventDataRetention] === undefined ? message.eventDataRetention : $root.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration[message.eventDataRetention] : message.eventDataRetention; + if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) + object.resetUserDataOnNewActivity = message.resetUserDataOnNewActivity; return object; }; /** - * Converts this LinkProposalStatusDetails to JSON. + * Converts this DataRetentionSettings to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @instance * @returns {Object.} JSON object */ - LinkProposalStatusDetails.prototype.toJSON = function toJSON() { + DataRetentionSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LinkProposalStatusDetails + * Gets the default type url for DataRetentionSettings * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.LinkProposalStatusDetails + * @memberof google.analytics.admin.v1alpha.DataRetentionSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LinkProposalStatusDetails.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DataRetentionSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.LinkProposalStatusDetails"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataRetentionSettings"; }; - return LinkProposalStatusDetails; + /** + * RetentionDuration enum. + * @name google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + * @enum {number} + * @property {number} RETENTION_DURATION_UNSPECIFIED=0 RETENTION_DURATION_UNSPECIFIED value + * @property {number} TWO_MONTHS=1 TWO_MONTHS value + * @property {number} FOURTEEN_MONTHS=3 FOURTEEN_MONTHS value + * @property {number} TWENTY_SIX_MONTHS=4 TWENTY_SIX_MONTHS value + * @property {number} THIRTY_EIGHT_MONTHS=5 THIRTY_EIGHT_MONTHS value + * @property {number} FIFTY_MONTHS=6 FIFTY_MONTHS value + */ + DataRetentionSettings.RetentionDuration = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETENTION_DURATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "TWO_MONTHS"] = 1; + values[valuesById[3] = "FOURTEEN_MONTHS"] = 3; + values[valuesById[4] = "TWENTY_SIX_MONTHS"] = 4; + values[valuesById[5] = "THIRTY_EIGHT_MONTHS"] = 5; + values[valuesById[6] = "FIFTY_MONTHS"] = 6; + return values; + })(); + + return DataRetentionSettings; })(); - v1alpha.ConversionEvent = (function() { + v1alpha.AttributionSettings = (function() { /** - * Properties of a ConversionEvent. + * Properties of an AttributionSettings. * @memberof google.analytics.admin.v1alpha - * @interface IConversionEvent - * @property {string|null} [name] ConversionEvent name - * @property {string|null} [eventName] ConversionEvent eventName - * @property {google.protobuf.ITimestamp|null} [createTime] ConversionEvent createTime - * @property {boolean|null} [deletable] ConversionEvent deletable - * @property {boolean|null} [custom] ConversionEvent custom + * @interface IAttributionSettings + * @property {string|null} [name] AttributionSettings name + * @property {google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|null} [acquisitionConversionEventLookbackWindow] AttributionSettings acquisitionConversionEventLookbackWindow + * @property {google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|null} [otherConversionEventLookbackWindow] AttributionSettings otherConversionEventLookbackWindow + * @property {google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|null} [reportingAttributionModel] AttributionSettings reportingAttributionModel */ /** - * Constructs a new ConversionEvent. + * Constructs a new AttributionSettings. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ConversionEvent. - * @implements IConversionEvent + * @classdesc Represents an AttributionSettings. + * @implements IAttributionSettings * @constructor - * @param {google.analytics.admin.v1alpha.IConversionEvent=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAttributionSettings=} [properties] Properties to set */ - function ConversionEvent(properties) { + function AttributionSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44010,110 +49481,100 @@ } /** - * ConversionEvent name. + * AttributionSettings name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.ConversionEvent - * @instance - */ - ConversionEvent.prototype.name = ""; - - /** - * ConversionEvent eventName. - * @member {string} eventName - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @instance */ - ConversionEvent.prototype.eventName = ""; + AttributionSettings.prototype.name = ""; /** - * ConversionEvent createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * AttributionSettings acquisitionConversionEventLookbackWindow. + * @member {google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow} acquisitionConversionEventLookbackWindow + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @instance */ - ConversionEvent.prototype.createTime = null; + AttributionSettings.prototype.acquisitionConversionEventLookbackWindow = 0; /** - * ConversionEvent deletable. - * @member {boolean} deletable - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * AttributionSettings otherConversionEventLookbackWindow. + * @member {google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow} otherConversionEventLookbackWindow + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @instance */ - ConversionEvent.prototype.deletable = false; + AttributionSettings.prototype.otherConversionEventLookbackWindow = 0; /** - * ConversionEvent custom. - * @member {boolean} custom - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * AttributionSettings reportingAttributionModel. + * @member {google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel} reportingAttributionModel + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @instance */ - ConversionEvent.prototype.custom = false; + AttributionSettings.prototype.reportingAttributionModel = 0; /** - * Creates a new ConversionEvent instance using the specified properties. + * Creates a new AttributionSettings instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @static - * @param {google.analytics.admin.v1alpha.IConversionEvent=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent instance + * @param {google.analytics.admin.v1alpha.IAttributionSettings=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings instance */ - ConversionEvent.create = function create(properties) { - return new ConversionEvent(properties); + AttributionSettings.create = function create(properties) { + return new AttributionSettings(properties); }; /** - * Encodes the specified ConversionEvent message. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * Encodes the specified AttributionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @static - * @param {google.analytics.admin.v1alpha.IConversionEvent} message ConversionEvent message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAttributionSettings} message AttributionSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversionEvent.encode = function encode(message, writer) { + AttributionSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.deletable != null && Object.hasOwnProperty.call(message, "deletable")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.deletable); - if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.custom); + if (message.acquisitionConversionEventLookbackWindow != null && Object.hasOwnProperty.call(message, "acquisitionConversionEventLookbackWindow")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.acquisitionConversionEventLookbackWindow); + if (message.otherConversionEventLookbackWindow != null && Object.hasOwnProperty.call(message, "otherConversionEventLookbackWindow")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.otherConversionEventLookbackWindow); + if (message.reportingAttributionModel != null && Object.hasOwnProperty.call(message, "reportingAttributionModel")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.reportingAttributionModel); return writer; }; /** - * Encodes the specified ConversionEvent message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ConversionEvent.verify|verify} messages. + * Encodes the specified AttributionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @static - * @param {google.analytics.admin.v1alpha.IConversionEvent} message ConversionEvent message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAttributionSettings} message AttributionSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversionEvent.encodeDelimited = function encodeDelimited(message, writer) { + AttributionSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConversionEvent message from the specified reader or buffer. + * Decodes an AttributionSettings message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent + * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversionEvent.decode = function decode(reader, length) { + AttributionSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ConversionEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AttributionSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -44122,19 +49583,15 @@ break; } case 2: { - message.eventName = reader.string(); + message.acquisitionConversionEventLookbackWindow = reader.int32(); break; } case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.otherConversionEventLookbackWindow = reader.int32(); break; } case 4: { - message.deletable = reader.bool(); - break; - } - case 5: { - message.custom = reader.bool(); + message.reportingAttributionModel = reader.int32(); break; } default: @@ -44146,162 +49603,318 @@ }; /** - * Decodes a ConversionEvent message from the specified reader or buffer, length delimited. + * Decodes an AttributionSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent + * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversionEvent.decodeDelimited = function decodeDelimited(reader) { + AttributionSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConversionEvent message. + * Verifies an AttributionSettings message. * @function verify - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConversionEvent.verify = function verify(message) { + AttributionSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.eventName != null && message.hasOwnProperty("eventName")) - if (!$util.isString(message.eventName)) - return "eventName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.deletable != null && message.hasOwnProperty("deletable")) - if (typeof message.deletable !== "boolean") - return "deletable: boolean expected"; - if (message.custom != null && message.hasOwnProperty("custom")) - if (typeof message.custom !== "boolean") - return "custom: boolean expected"; + if (message.acquisitionConversionEventLookbackWindow != null && message.hasOwnProperty("acquisitionConversionEventLookbackWindow")) + switch (message.acquisitionConversionEventLookbackWindow) { + default: + return "acquisitionConversionEventLookbackWindow: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.otherConversionEventLookbackWindow != null && message.hasOwnProperty("otherConversionEventLookbackWindow")) + switch (message.otherConversionEventLookbackWindow) { + default: + return "otherConversionEventLookbackWindow: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.reportingAttributionModel != null && message.hasOwnProperty("reportingAttributionModel")) + switch (message.reportingAttributionModel) { + default: + return "reportingAttributionModel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } return null; }; /** - * Creates a ConversionEvent message from a plain object. Also converts values to their respective internal types. + * Creates an AttributionSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ConversionEvent} ConversionEvent + * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings */ - ConversionEvent.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ConversionEvent) + AttributionSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AttributionSettings) return object; - var message = new $root.google.analytics.admin.v1alpha.ConversionEvent(); + var message = new $root.google.analytics.admin.v1alpha.AttributionSettings(); if (object.name != null) message.name = String(object.name); - if (object.eventName != null) - message.eventName = String(object.eventName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ConversionEvent.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + switch (object.acquisitionConversionEventLookbackWindow) { + default: + if (typeof object.acquisitionConversionEventLookbackWindow === "number") { + message.acquisitionConversionEventLookbackWindow = object.acquisitionConversionEventLookbackWindow; + break; + } + break; + case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": + case 0: + message.acquisitionConversionEventLookbackWindow = 0; + break; + case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS": + case 1: + message.acquisitionConversionEventLookbackWindow = 1; + break; + case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS": + case 2: + message.acquisitionConversionEventLookbackWindow = 2; + break; + } + switch (object.otherConversionEventLookbackWindow) { + default: + if (typeof object.otherConversionEventLookbackWindow === "number") { + message.otherConversionEventLookbackWindow = object.otherConversionEventLookbackWindow; + break; + } + break; + case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": + case 0: + message.otherConversionEventLookbackWindow = 0; + break; + case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS": + case 1: + message.otherConversionEventLookbackWindow = 1; + break; + case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS": + case 2: + message.otherConversionEventLookbackWindow = 2; + break; + case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS": + case 3: + message.otherConversionEventLookbackWindow = 3; + break; + } + switch (object.reportingAttributionModel) { + default: + if (typeof object.reportingAttributionModel === "number") { + message.reportingAttributionModel = object.reportingAttributionModel; + break; + } + break; + case "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED": + case 0: + message.reportingAttributionModel = 0; + break; + case "CROSS_CHANNEL_DATA_DRIVEN": + case 1: + message.reportingAttributionModel = 1; + break; + case "CROSS_CHANNEL_LAST_CLICK": + case 2: + message.reportingAttributionModel = 2; + break; + case "CROSS_CHANNEL_FIRST_CLICK": + case 3: + message.reportingAttributionModel = 3; + break; + case "CROSS_CHANNEL_LINEAR": + case 4: + message.reportingAttributionModel = 4; + break; + case "CROSS_CHANNEL_POSITION_BASED": + case 5: + message.reportingAttributionModel = 5; + break; + case "CROSS_CHANNEL_TIME_DECAY": + case 6: + message.reportingAttributionModel = 6; + break; + case "ADS_PREFERRED_LAST_CLICK": + case 7: + message.reportingAttributionModel = 7; + break; } - if (object.deletable != null) - message.deletable = Boolean(object.deletable); - if (object.custom != null) - message.custom = Boolean(object.custom); return message; }; /** - * Creates a plain object from a ConversionEvent message. Also converts values to other types if specified. + * Creates a plain object from an AttributionSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @static - * @param {google.analytics.admin.v1alpha.ConversionEvent} message ConversionEvent + * @param {google.analytics.admin.v1alpha.AttributionSettings} message AttributionSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConversionEvent.toObject = function toObject(message, options) { + AttributionSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.eventName = ""; - object.createTime = null; - object.deletable = false; - object.custom = false; + object.acquisitionConversionEventLookbackWindow = options.enums === String ? "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED" : 0; + object.otherConversionEventLookbackWindow = options.enums === String ? "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED" : 0; + object.reportingAttributionModel = options.enums === String ? "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.eventName != null && message.hasOwnProperty("eventName")) - object.eventName = message.eventName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.deletable != null && message.hasOwnProperty("deletable")) - object.deletable = message.deletable; - if (message.custom != null && message.hasOwnProperty("custom")) - object.custom = message.custom; + if (message.acquisitionConversionEventLookbackWindow != null && message.hasOwnProperty("acquisitionConversionEventLookbackWindow")) + object.acquisitionConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow[message.acquisitionConversionEventLookbackWindow] === undefined ? message.acquisitionConversionEventLookbackWindow : $root.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow[message.acquisitionConversionEventLookbackWindow] : message.acquisitionConversionEventLookbackWindow; + if (message.otherConversionEventLookbackWindow != null && message.hasOwnProperty("otherConversionEventLookbackWindow")) + object.otherConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow[message.otherConversionEventLookbackWindow] === undefined ? message.otherConversionEventLookbackWindow : $root.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow[message.otherConversionEventLookbackWindow] : message.otherConversionEventLookbackWindow; + if (message.reportingAttributionModel != null && message.hasOwnProperty("reportingAttributionModel")) + object.reportingAttributionModel = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel[message.reportingAttributionModel] === undefined ? message.reportingAttributionModel : $root.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel[message.reportingAttributionModel] : message.reportingAttributionModel; return object; }; /** - * Converts this ConversionEvent to JSON. + * Converts this AttributionSettings to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @instance * @returns {Object.} JSON object */ - ConversionEvent.prototype.toJSON = function toJSON() { + AttributionSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConversionEvent + * Gets the default type url for AttributionSettings * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ConversionEvent + * @memberof google.analytics.admin.v1alpha.AttributionSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConversionEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AttributionSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ConversionEvent"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AttributionSettings"; }; - return ConversionEvent; + /** + * AcquisitionConversionEventLookbackWindow enum. + * @name google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow + * @enum {number} + * @property {number} ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED=0 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED value + * @property {number} ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS=1 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS value + * @property {number} ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS=2 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS value + */ + AttributionSettings.AcquisitionConversionEventLookbackWindow = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS"] = 1; + values[valuesById[2] = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"] = 2; + return values; + })(); + + /** + * OtherConversionEventLookbackWindow enum. + * @name google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + * @enum {number} + * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED=0 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED value + * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS=1 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS value + * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS=2 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS value + * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS=3 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS value + */ + AttributionSettings.OtherConversionEventLookbackWindow = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED"] = 0; + values[valuesById[1] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"] = 1; + values[valuesById[2] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS"] = 2; + values[valuesById[3] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS"] = 3; + return values; + })(); + + /** + * ReportingAttributionModel enum. + * @name google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + * @enum {number} + * @property {number} REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED=0 REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED value + * @property {number} CROSS_CHANNEL_DATA_DRIVEN=1 CROSS_CHANNEL_DATA_DRIVEN value + * @property {number} CROSS_CHANNEL_LAST_CLICK=2 CROSS_CHANNEL_LAST_CLICK value + * @property {number} CROSS_CHANNEL_FIRST_CLICK=3 CROSS_CHANNEL_FIRST_CLICK value + * @property {number} CROSS_CHANNEL_LINEAR=4 CROSS_CHANNEL_LINEAR value + * @property {number} CROSS_CHANNEL_POSITION_BASED=5 CROSS_CHANNEL_POSITION_BASED value + * @property {number} CROSS_CHANNEL_TIME_DECAY=6 CROSS_CHANNEL_TIME_DECAY value + * @property {number} ADS_PREFERRED_LAST_CLICK=7 ADS_PREFERRED_LAST_CLICK value + */ + AttributionSettings.ReportingAttributionModel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "CROSS_CHANNEL_DATA_DRIVEN"] = 1; + values[valuesById[2] = "CROSS_CHANNEL_LAST_CLICK"] = 2; + values[valuesById[3] = "CROSS_CHANNEL_FIRST_CLICK"] = 3; + values[valuesById[4] = "CROSS_CHANNEL_LINEAR"] = 4; + values[valuesById[5] = "CROSS_CHANNEL_POSITION_BASED"] = 5; + values[valuesById[6] = "CROSS_CHANNEL_TIME_DECAY"] = 6; + values[valuesById[7] = "ADS_PREFERRED_LAST_CLICK"] = 7; + return values; + })(); + + return AttributionSettings; })(); - v1alpha.GoogleSignalsSettings = (function() { + v1alpha.BigQueryLink = (function() { /** - * Properties of a GoogleSignalsSettings. + * Properties of a BigQueryLink. * @memberof google.analytics.admin.v1alpha - * @interface IGoogleSignalsSettings - * @property {string|null} [name] GoogleSignalsSettings name - * @property {google.analytics.admin.v1alpha.GoogleSignalsState|null} [state] GoogleSignalsSettings state - * @property {google.analytics.admin.v1alpha.GoogleSignalsConsent|null} [consent] GoogleSignalsSettings consent + * @interface IBigQueryLink + * @property {string|null} [name] BigQueryLink name + * @property {string|null} [project] BigQueryLink project + * @property {google.protobuf.ITimestamp|null} [createTime] BigQueryLink createTime + * @property {boolean|null} [dailyExportEnabled] BigQueryLink dailyExportEnabled + * @property {boolean|null} [streamingExportEnabled] BigQueryLink streamingExportEnabled + * @property {boolean|null} [includeAdvertisingId] BigQueryLink includeAdvertisingId + * @property {Array.|null} [exportStreams] BigQueryLink exportStreams + * @property {Array.|null} [excludedEvents] BigQueryLink excludedEvents */ /** - * Constructs a new GoogleSignalsSettings. + * Constructs a new BigQueryLink. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GoogleSignalsSettings. - * @implements IGoogleSignalsSettings + * @classdesc Represents a BigQueryLink. + * @implements IBigQueryLink * @constructor - * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IBigQueryLink=} [properties] Properties to set */ - function GoogleSignalsSettings(properties) { + function BigQueryLink(properties) { + this.exportStreams = []; + this.excludedEvents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44309,90 +49922,142 @@ } /** - * GoogleSignalsSettings name. + * BigQueryLink name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @instance */ - GoogleSignalsSettings.prototype.name = ""; + BigQueryLink.prototype.name = ""; /** - * GoogleSignalsSettings state. - * @member {google.analytics.admin.v1alpha.GoogleSignalsState} state - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * BigQueryLink project. + * @member {string} project + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @instance */ - GoogleSignalsSettings.prototype.state = 0; + BigQueryLink.prototype.project = ""; /** - * GoogleSignalsSettings consent. - * @member {google.analytics.admin.v1alpha.GoogleSignalsConsent} consent - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * BigQueryLink createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @instance */ - GoogleSignalsSettings.prototype.consent = 0; + BigQueryLink.prototype.createTime = null; /** - * Creates a new GoogleSignalsSettings instance using the specified properties. + * BigQueryLink dailyExportEnabled. + * @member {boolean} dailyExportEnabled + * @memberof google.analytics.admin.v1alpha.BigQueryLink + * @instance + */ + BigQueryLink.prototype.dailyExportEnabled = false; + + /** + * BigQueryLink streamingExportEnabled. + * @member {boolean} streamingExportEnabled + * @memberof google.analytics.admin.v1alpha.BigQueryLink + * @instance + */ + BigQueryLink.prototype.streamingExportEnabled = false; + + /** + * BigQueryLink includeAdvertisingId. + * @member {boolean} includeAdvertisingId + * @memberof google.analytics.admin.v1alpha.BigQueryLink + * @instance + */ + BigQueryLink.prototype.includeAdvertisingId = false; + + /** + * BigQueryLink exportStreams. + * @member {Array.} exportStreams + * @memberof google.analytics.admin.v1alpha.BigQueryLink + * @instance + */ + BigQueryLink.prototype.exportStreams = $util.emptyArray; + + /** + * BigQueryLink excludedEvents. + * @member {Array.} excludedEvents + * @memberof google.analytics.admin.v1alpha.BigQueryLink + * @instance + */ + BigQueryLink.prototype.excludedEvents = $util.emptyArray; + + /** + * Creates a new BigQueryLink instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @static - * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings instance + * @param {google.analytics.admin.v1alpha.IBigQueryLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.BigQueryLink} BigQueryLink instance */ - GoogleSignalsSettings.create = function create(properties) { - return new GoogleSignalsSettings(properties); + BigQueryLink.create = function create(properties) { + return new BigQueryLink(properties); }; /** - * Encodes the specified GoogleSignalsSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * Encodes the specified BigQueryLink message. Does not implicitly {@link google.analytics.admin.v1alpha.BigQueryLink.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @static - * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings} message GoogleSignalsSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBigQueryLink} message BigQueryLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleSignalsSettings.encode = function encode(message, writer) { + BigQueryLink.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.consent != null && Object.hasOwnProperty.call(message, "consent")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.consent); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dailyExportEnabled != null && Object.hasOwnProperty.call(message, "dailyExportEnabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.dailyExportEnabled); + if (message.streamingExportEnabled != null && Object.hasOwnProperty.call(message, "streamingExportEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.streamingExportEnabled); + if (message.includeAdvertisingId != null && Object.hasOwnProperty.call(message, "includeAdvertisingId")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.includeAdvertisingId); + if (message.exportStreams != null && message.exportStreams.length) + for (var i = 0; i < message.exportStreams.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.exportStreams[i]); + if (message.excludedEvents != null && message.excludedEvents.length) + for (var i = 0; i < message.excludedEvents.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.excludedEvents[i]); return writer; }; /** - * Encodes the specified GoogleSignalsSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GoogleSignalsSettings.verify|verify} messages. + * Encodes the specified BigQueryLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.BigQueryLink.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @static - * @param {google.analytics.admin.v1alpha.IGoogleSignalsSettings} message GoogleSignalsSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IBigQueryLink} message BigQueryLink message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GoogleSignalsSettings.encodeDelimited = function encodeDelimited(message, writer) { + BigQueryLink.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GoogleSignalsSettings message from the specified reader or buffer. + * Decodes a BigQueryLink message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings + * @returns {google.analytics.admin.v1alpha.BigQueryLink} BigQueryLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleSignalsSettings.decode = function decode(reader, length) { + BigQueryLink.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GoogleSignalsSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.BigQueryLink(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -44400,12 +50065,36 @@ message.name = reader.string(); break; } + case 2: { + message.project = reader.string(); + break; + } case 3: { - message.state = reader.int32(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 4: { - message.consent = reader.int32(); + message.dailyExportEnabled = reader.bool(); + break; + } + case 5: { + message.streamingExportEnabled = reader.bool(); + break; + } + case 6: { + message.includeAdvertisingId = reader.bool(); + break; + } + case 7: { + if (!(message.exportStreams && message.exportStreams.length)) + message.exportStreams = []; + message.exportStreams.push(reader.string()); + break; + } + case 8: { + if (!(message.excludedEvents && message.excludedEvents.length)) + message.excludedEvents = []; + message.excludedEvents.push(reader.string()); break; } default: @@ -44417,192 +50106,212 @@ }; /** - * Decodes a GoogleSignalsSettings message from the specified reader or buffer, length delimited. + * Decodes a BigQueryLink message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings + * @returns {google.analytics.admin.v1alpha.BigQueryLink} BigQueryLink * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GoogleSignalsSettings.decodeDelimited = function decodeDelimited(reader) { + BigQueryLink.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GoogleSignalsSettings message. + * Verifies a BigQueryLink message. * @function verify - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GoogleSignalsSettings.verify = function verify(message) { + BigQueryLink.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.consent != null && message.hasOwnProperty("consent")) - switch (message.consent) { - default: - return "consent: enum value expected"; - case 0: - case 2: - case 1: - break; - } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.dailyExportEnabled != null && message.hasOwnProperty("dailyExportEnabled")) + if (typeof message.dailyExportEnabled !== "boolean") + return "dailyExportEnabled: boolean expected"; + if (message.streamingExportEnabled != null && message.hasOwnProperty("streamingExportEnabled")) + if (typeof message.streamingExportEnabled !== "boolean") + return "streamingExportEnabled: boolean expected"; + if (message.includeAdvertisingId != null && message.hasOwnProperty("includeAdvertisingId")) + if (typeof message.includeAdvertisingId !== "boolean") + return "includeAdvertisingId: boolean expected"; + if (message.exportStreams != null && message.hasOwnProperty("exportStreams")) { + if (!Array.isArray(message.exportStreams)) + return "exportStreams: array expected"; + for (var i = 0; i < message.exportStreams.length; ++i) + if (!$util.isString(message.exportStreams[i])) + return "exportStreams: string[] expected"; + } + if (message.excludedEvents != null && message.hasOwnProperty("excludedEvents")) { + if (!Array.isArray(message.excludedEvents)) + return "excludedEvents: array expected"; + for (var i = 0; i < message.excludedEvents.length; ++i) + if (!$util.isString(message.excludedEvents[i])) + return "excludedEvents: string[] expected"; + } return null; }; /** - * Creates a GoogleSignalsSettings message from a plain object. Also converts values to their respective internal types. + * Creates a BigQueryLink message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GoogleSignalsSettings} GoogleSignalsSettings + * @returns {google.analytics.admin.v1alpha.BigQueryLink} BigQueryLink */ - GoogleSignalsSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GoogleSignalsSettings) + BigQueryLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.BigQueryLink) return object; - var message = new $root.google.analytics.admin.v1alpha.GoogleSignalsSettings(); + var message = new $root.google.analytics.admin.v1alpha.BigQueryLink(); if (object.name != null) message.name = String(object.name); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "GOOGLE_SIGNALS_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "GOOGLE_SIGNALS_ENABLED": - case 1: - message.state = 1; - break; - case "GOOGLE_SIGNALS_DISABLED": - case 2: - message.state = 2; - break; + if (object.project != null) + message.project = String(object.project); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.BigQueryLink.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - switch (object.consent) { - default: - if (typeof object.consent === "number") { - message.consent = object.consent; - break; - } - break; - case "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED": - case 0: - message.consent = 0; - break; - case "GOOGLE_SIGNALS_CONSENT_CONSENTED": - case 2: - message.consent = 2; - break; - case "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED": - case 1: - message.consent = 1; - break; + if (object.dailyExportEnabled != null) + message.dailyExportEnabled = Boolean(object.dailyExportEnabled); + if (object.streamingExportEnabled != null) + message.streamingExportEnabled = Boolean(object.streamingExportEnabled); + if (object.includeAdvertisingId != null) + message.includeAdvertisingId = Boolean(object.includeAdvertisingId); + if (object.exportStreams) { + if (!Array.isArray(object.exportStreams)) + throw TypeError(".google.analytics.admin.v1alpha.BigQueryLink.exportStreams: array expected"); + message.exportStreams = []; + for (var i = 0; i < object.exportStreams.length; ++i) + message.exportStreams[i] = String(object.exportStreams[i]); + } + if (object.excludedEvents) { + if (!Array.isArray(object.excludedEvents)) + throw TypeError(".google.analytics.admin.v1alpha.BigQueryLink.excludedEvents: array expected"); + message.excludedEvents = []; + for (var i = 0; i < object.excludedEvents.length; ++i) + message.excludedEvents[i] = String(object.excludedEvents[i]); } return message; }; /** - * Creates a plain object from a GoogleSignalsSettings message. Also converts values to other types if specified. + * Creates a plain object from a BigQueryLink message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @static - * @param {google.analytics.admin.v1alpha.GoogleSignalsSettings} message GoogleSignalsSettings + * @param {google.analytics.admin.v1alpha.BigQueryLink} message BigQueryLink * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GoogleSignalsSettings.toObject = function toObject(message, options) { + BigQueryLink.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.exportStreams = []; + object.excludedEvents = []; + } if (options.defaults) { object.name = ""; - object.state = options.enums === String ? "GOOGLE_SIGNALS_STATE_UNSPECIFIED" : 0; - object.consent = options.enums === String ? "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED" : 0; + object.project = ""; + object.createTime = null; + object.dailyExportEnabled = false; + object.streamingExportEnabled = false; + object.includeAdvertisingId = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.analytics.admin.v1alpha.GoogleSignalsState[message.state] === undefined ? message.state : $root.google.analytics.admin.v1alpha.GoogleSignalsState[message.state] : message.state; - if (message.consent != null && message.hasOwnProperty("consent")) - object.consent = options.enums === String ? $root.google.analytics.admin.v1alpha.GoogleSignalsConsent[message.consent] === undefined ? message.consent : $root.google.analytics.admin.v1alpha.GoogleSignalsConsent[message.consent] : message.consent; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.dailyExportEnabled != null && message.hasOwnProperty("dailyExportEnabled")) + object.dailyExportEnabled = message.dailyExportEnabled; + if (message.streamingExportEnabled != null && message.hasOwnProperty("streamingExportEnabled")) + object.streamingExportEnabled = message.streamingExportEnabled; + if (message.includeAdvertisingId != null && message.hasOwnProperty("includeAdvertisingId")) + object.includeAdvertisingId = message.includeAdvertisingId; + if (message.exportStreams && message.exportStreams.length) { + object.exportStreams = []; + for (var j = 0; j < message.exportStreams.length; ++j) + object.exportStreams[j] = message.exportStreams[j]; + } + if (message.excludedEvents && message.excludedEvents.length) { + object.excludedEvents = []; + for (var j = 0; j < message.excludedEvents.length; ++j) + object.excludedEvents[j] = message.excludedEvents[j]; + } return object; }; /** - * Converts this GoogleSignalsSettings to JSON. + * Converts this BigQueryLink to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @instance * @returns {Object.} JSON object */ - GoogleSignalsSettings.prototype.toJSON = function toJSON() { + BigQueryLink.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GoogleSignalsSettings + * Gets the default type url for BigQueryLink * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GoogleSignalsSettings + * @memberof google.analytics.admin.v1alpha.BigQueryLink * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GoogleSignalsSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BigQueryLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GoogleSignalsSettings"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.BigQueryLink"; }; - return GoogleSignalsSettings; + return BigQueryLink; })(); - v1alpha.CustomDimension = (function() { + v1alpha.ExpandedDataSetFilter = (function() { /** - * Properties of a CustomDimension. + * Properties of an ExpandedDataSetFilter. * @memberof google.analytics.admin.v1alpha - * @interface ICustomDimension - * @property {string|null} [name] CustomDimension name - * @property {string|null} [parameterName] CustomDimension parameterName - * @property {string|null} [displayName] CustomDimension displayName - * @property {string|null} [description] CustomDimension description - * @property {google.analytics.admin.v1alpha.CustomDimension.DimensionScope|null} [scope] CustomDimension scope - * @property {boolean|null} [disallowAdsPersonalization] CustomDimension disallowAdsPersonalization + * @interface IExpandedDataSetFilter + * @property {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter|null} [stringFilter] ExpandedDataSetFilter stringFilter + * @property {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter|null} [inListFilter] ExpandedDataSetFilter inListFilter + * @property {string|null} [fieldName] ExpandedDataSetFilter fieldName */ /** - * Constructs a new CustomDimension. + * Constructs a new ExpandedDataSetFilter. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CustomDimension. - * @implements ICustomDimension + * @classdesc Represents an ExpandedDataSetFilter. + * @implements IExpandedDataSetFilter * @constructor - * @param {google.analytics.admin.v1alpha.ICustomDimension=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilter=} [properties] Properties to set */ - function CustomDimension(properties) { + function ExpandedDataSetFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44610,145 +50319,117 @@ } /** - * CustomDimension name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.CustomDimension - * @instance - */ - CustomDimension.prototype.name = ""; - - /** - * CustomDimension parameterName. - * @member {string} parameterName - * @memberof google.analytics.admin.v1alpha.CustomDimension + * ExpandedDataSetFilter stringFilter. + * @member {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter|null|undefined} stringFilter + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @instance */ - CustomDimension.prototype.parameterName = ""; + ExpandedDataSetFilter.prototype.stringFilter = null; /** - * CustomDimension displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.CustomDimension + * ExpandedDataSetFilter inListFilter. + * @member {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter|null|undefined} inListFilter + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @instance */ - CustomDimension.prototype.displayName = ""; + ExpandedDataSetFilter.prototype.inListFilter = null; /** - * CustomDimension description. - * @member {string} description - * @memberof google.analytics.admin.v1alpha.CustomDimension + * ExpandedDataSetFilter fieldName. + * @member {string} fieldName + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @instance */ - CustomDimension.prototype.description = ""; + ExpandedDataSetFilter.prototype.fieldName = ""; - /** - * CustomDimension scope. - * @member {google.analytics.admin.v1alpha.CustomDimension.DimensionScope} scope - * @memberof google.analytics.admin.v1alpha.CustomDimension - * @instance - */ - CustomDimension.prototype.scope = 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CustomDimension disallowAdsPersonalization. - * @member {boolean} disallowAdsPersonalization - * @memberof google.analytics.admin.v1alpha.CustomDimension + * ExpandedDataSetFilter oneFilter. + * @member {"stringFilter"|"inListFilter"|undefined} oneFilter + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @instance */ - CustomDimension.prototype.disallowAdsPersonalization = false; + Object.defineProperty(ExpandedDataSetFilter.prototype, "oneFilter", { + get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CustomDimension instance using the specified properties. + * Creates a new ExpandedDataSetFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CustomDimension + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @static - * @param {google.analytics.admin.v1alpha.ICustomDimension=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension instance + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter} ExpandedDataSetFilter instance */ - CustomDimension.create = function create(properties) { - return new CustomDimension(properties); + ExpandedDataSetFilter.create = function create(properties) { + return new ExpandedDataSetFilter(properties); }; /** - * Encodes the specified CustomDimension message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. + * Encodes the specified ExpandedDataSetFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CustomDimension + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @static - * @param {google.analytics.admin.v1alpha.ICustomDimension} message CustomDimension message or plain object to encode + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilter} message ExpandedDataSetFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomDimension.encode = function encode(message, writer) { + ExpandedDataSetFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.parameterName != null && Object.hasOwnProperty.call(message, "parameterName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterName); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scope); - if (message.disallowAdsPersonalization != null && Object.hasOwnProperty.call(message, "disallowAdsPersonalization")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disallowAdsPersonalization); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + if (message.stringFilter != null && Object.hasOwnProperty.call(message, "stringFilter")) + $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.encode(message.stringFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inListFilter != null && Object.hasOwnProperty.call(message, "inListFilter")) + $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.encode(message.inListFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CustomDimension message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomDimension.verify|verify} messages. + * Encodes the specified ExpandedDataSetFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CustomDimension + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @static - * @param {google.analytics.admin.v1alpha.ICustomDimension} message CustomDimension message or plain object to encode + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilter} message ExpandedDataSetFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomDimension.encodeDelimited = function encodeDelimited(message, writer) { + ExpandedDataSetFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomDimension message from the specified reader or buffer. + * Decodes an ExpandedDataSetFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CustomDimension + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter} ExpandedDataSetFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomDimension.decode = function decode(reader, length) { + ExpandedDataSetFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CustomDimension(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } case 2: { - message.parameterName = reader.string(); + message.stringFilter = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.decode(reader, reader.uint32()); break; } case 3: { - message.displayName = reader.string(); - break; - } - case 4: { - message.description = reader.string(); - break; - } - case 5: { - message.scope = reader.int32(); + message.inListFilter = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.decode(reader, reader.uint32()); break; } - case 6: { - message.disallowAdsPersonalization = reader.bool(); + case 1: { + message.fieldName = reader.string(); break; } default: @@ -44760,210 +50441,696 @@ }; /** - * Decodes a CustomDimension message from the specified reader or buffer, length delimited. + * Decodes an ExpandedDataSetFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CustomDimension + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter} ExpandedDataSetFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomDimension.decodeDelimited = function decodeDelimited(reader) { + ExpandedDataSetFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CustomDimension message. + * Verifies an ExpandedDataSetFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.CustomDimension + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomDimension.verify = function verify(message) { + ExpandedDataSetFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.parameterName != null && message.hasOwnProperty("parameterName")) - if (!$util.isString(message.parameterName)) - return "parameterName: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - switch (message.scope) { - default: - return "scope: enum value expected"; - case 0: - case 1: - case 2: - break; + var properties = {}; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.verify(message.stringFilter); + if (error) + return "stringFilter." + error; + } + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.verify(message.inListFilter); + if (error) + return "inListFilter." + error; } - if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) - if (typeof message.disallowAdsPersonalization !== "boolean") - return "disallowAdsPersonalization: boolean expected"; + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; return null; }; /** - * Creates a CustomDimension message from a plain object. Also converts values to their respective internal types. + * Creates an ExpandedDataSetFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CustomDimension + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CustomDimension} CustomDimension + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter} ExpandedDataSetFilter */ - CustomDimension.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CustomDimension) + ExpandedDataSetFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.CustomDimension(); - if (object.name != null) - message.name = String(object.name); - if (object.parameterName != null) - message.parameterName = String(object.parameterName); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - switch (object.scope) { - default: - if (typeof object.scope === "number") { - message.scope = object.scope; - break; - } - break; - case "DIMENSION_SCOPE_UNSPECIFIED": - case 0: - message.scope = 0; - break; - case "EVENT": - case 1: - message.scope = 1; - break; - case "USER": - case 2: - message.scope = 2; - break; + var message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter(); + if (object.stringFilter != null) { + if (typeof object.stringFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSetFilter.stringFilter: object expected"); + message.stringFilter = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.fromObject(object.stringFilter); } - if (object.disallowAdsPersonalization != null) - message.disallowAdsPersonalization = Boolean(object.disallowAdsPersonalization); + if (object.inListFilter != null) { + if (typeof object.inListFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSetFilter.inListFilter: object expected"); + message.inListFilter = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.fromObject(object.inListFilter); + } + if (object.fieldName != null) + message.fieldName = String(object.fieldName); return message; }; /** - * Creates a plain object from a CustomDimension message. Also converts values to other types if specified. + * Creates a plain object from an ExpandedDataSetFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CustomDimension + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter * @static - * @param {google.analytics.admin.v1alpha.CustomDimension} message CustomDimension + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter} message ExpandedDataSetFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomDimension.toObject = function toObject(message, options) { + ExpandedDataSetFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.parameterName = ""; - object.displayName = ""; - object.description = ""; - object.scope = options.enums === String ? "DIMENSION_SCOPE_UNSPECIFIED" : 0; - object.disallowAdsPersonalization = false; + if (options.defaults) + object.fieldName = ""; + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + object.stringFilter = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.toObject(message.stringFilter, options); + if (options.oneofs) + object.oneFilter = "stringFilter"; + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + object.inListFilter = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.toObject(message.inListFilter, options); + if (options.oneofs) + object.oneFilter = "inListFilter"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.parameterName != null && message.hasOwnProperty("parameterName")) - object.parameterName = message.parameterName; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomDimension.DimensionScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.CustomDimension.DimensionScope[message.scope] : message.scope; - if (message.disallowAdsPersonalization != null && message.hasOwnProperty("disallowAdsPersonalization")) - object.disallowAdsPersonalization = message.disallowAdsPersonalization; return object; }; - /** - * Converts this CustomDimension to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.CustomDimension - * @instance - * @returns {Object.} JSON object - */ - CustomDimension.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ExpandedDataSetFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter + * @instance + * @returns {Object.} JSON object + */ + ExpandedDataSetFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExpandedDataSetFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExpandedDataSetFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ExpandedDataSetFilter"; + }; + + ExpandedDataSetFilter.StringFilter = (function() { + + /** + * Properties of a StringFilter. + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter + * @interface IStringFilter + * @property {google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType|null} [matchType] StringFilter matchType + * @property {string|null} [value] StringFilter value + * @property {boolean|null} [caseSensitive] StringFilter caseSensitive + */ + + /** + * Constructs a new StringFilter. + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter + * @classdesc Represents a StringFilter. + * @implements IStringFilter + * @constructor + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter=} [properties] Properties to set + */ + function StringFilter(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]]; + } + + /** + * StringFilter matchType. + * @member {google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType} matchType + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @instance + */ + StringFilter.prototype.matchType = 0; + + /** + * StringFilter value. + * @member {string} value + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @instance + */ + StringFilter.prototype.value = ""; + + /** + * StringFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @instance + */ + StringFilter.prototype.caseSensitive = false; + + /** + * Creates a new StringFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter} StringFilter instance + */ + StringFilter.create = function create(properties) { + return new StringFilter(properties); + }; + + /** + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.matchType); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.caseSensitive); + return writer; + }; + + /** + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StringFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.matchType = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + case 3: { + message.caseSensitive = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StringFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StringFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; + + /** + * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter} StringFilter + */ + StringFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter(); + switch (object.matchType) { + default: + if (typeof object.matchType === "number") { + message.matchType = object.matchType; + break; + } + break; + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "EXACT": + case 1: + message.matchType = 1; + break; + case "CONTAINS": + case 2: + message.matchType = 2; + break; + } + if (object.value != null) + message.value = String(object.value); + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; + + /** + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter} message StringFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StringFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.value = ""; + object.caseSensitive = false; + } + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType[message.matchType] === undefined ? message.matchType : $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType[message.matchType] : message.matchType; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; + + /** + * Converts this StringFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @instance + * @returns {Object.} JSON object + */ + StringFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StringFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StringFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter"; + }; + + /** + * MatchType enum. + * @name google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} EXACT=1 EXACT value + * @property {number} CONTAINS=2 CONTAINS value + */ + StringFilter.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXACT"] = 1; + values[valuesById[2] = "CONTAINS"] = 2; + return values; + })(); + + return StringFilter; + })(); + + ExpandedDataSetFilter.InListFilter = (function() { + + /** + * Properties of an InListFilter. + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter + * @interface IInListFilter + * @property {Array.|null} [values] InListFilter values + * @property {boolean|null} [caseSensitive] InListFilter caseSensitive + */ + + /** + * Constructs a new InListFilter. + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter + * @classdesc Represents an InListFilter. + * @implements IInListFilter + * @constructor + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter=} [properties] Properties to set + */ + function InListFilter(properties) { + this.values = []; + 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]]; + } + + /** + * InListFilter values. + * @member {Array.} values + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @instance + */ + InListFilter.prototype.values = $util.emptyArray; + + /** + * InListFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @instance + */ + InListFilter.prototype.caseSensitive = false; + + /** + * Creates a new InListFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter} InListFilter instance + */ + InListFilter.create = function create(properties) { + return new InListFilter(properties); + }; + + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.caseSensitive); + return writer; + }; + + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + case 2: { + message.caseSensitive = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InListFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InListFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; + + /** + * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter} InListFilter + */ + InListFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; + + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter} message InListFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InListFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (options.defaults) + object.caseSensitive = false; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; - /** - * Gets the default type url for CustomDimension - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.CustomDimension - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CustomDimension.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.CustomDimension"; - }; + /** + * Converts this InListFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @instance + * @returns {Object.} JSON object + */ + InListFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * DimensionScope enum. - * @name google.analytics.admin.v1alpha.CustomDimension.DimensionScope - * @enum {number} - * @property {number} DIMENSION_SCOPE_UNSPECIFIED=0 DIMENSION_SCOPE_UNSPECIFIED value - * @property {number} EVENT=1 EVENT value - * @property {number} USER=2 USER value - */ - CustomDimension.DimensionScope = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DIMENSION_SCOPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EVENT"] = 1; - values[valuesById[2] = "USER"] = 2; - return values; + /** + * Gets the default type url for InListFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InListFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter"; + }; + + return InListFilter; })(); - return CustomDimension; + return ExpandedDataSetFilter; })(); - v1alpha.CustomMetric = (function() { + v1alpha.ExpandedDataSetFilterExpression = (function() { /** - * Properties of a CustomMetric. + * Properties of an ExpandedDataSetFilterExpression. * @memberof google.analytics.admin.v1alpha - * @interface ICustomMetric - * @property {string|null} [name] CustomMetric name - * @property {string|null} [parameterName] CustomMetric parameterName - * @property {string|null} [displayName] CustomMetric displayName - * @property {string|null} [description] CustomMetric description - * @property {google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit|null} [measurementUnit] CustomMetric measurementUnit - * @property {google.analytics.admin.v1alpha.CustomMetric.MetricScope|null} [scope] CustomMetric scope - * @property {Array.|null} [restrictedMetricType] CustomMetric restrictedMetricType + * @interface IExpandedDataSetFilterExpression + * @property {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList|null} [andGroup] ExpandedDataSetFilterExpression andGroup + * @property {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression|null} [notExpression] ExpandedDataSetFilterExpression notExpression + * @property {google.analytics.admin.v1alpha.IExpandedDataSetFilter|null} [filter] ExpandedDataSetFilterExpression filter */ /** - * Constructs a new CustomMetric. + * Constructs a new ExpandedDataSetFilterExpression. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a CustomMetric. - * @implements ICustomMetric + * @classdesc Represents an ExpandedDataSetFilterExpression. + * @implements IExpandedDataSetFilterExpression * @constructor - * @param {google.analytics.admin.v1alpha.ICustomMetric=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression=} [properties] Properties to set */ - function CustomMetric(properties) { - this.restrictedMetricType = []; + function ExpandedDataSetFilterExpression(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44971,170 +51138,117 @@ } /** - * CustomMetric name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.CustomMetric - * @instance - */ - CustomMetric.prototype.name = ""; - - /** - * CustomMetric parameterName. - * @member {string} parameterName - * @memberof google.analytics.admin.v1alpha.CustomMetric - * @instance - */ - CustomMetric.prototype.parameterName = ""; - - /** - * CustomMetric displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.CustomMetric + * ExpandedDataSetFilterExpression andGroup. + * @member {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList|null|undefined} andGroup + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @instance */ - CustomMetric.prototype.displayName = ""; + ExpandedDataSetFilterExpression.prototype.andGroup = null; /** - * CustomMetric description. - * @member {string} description - * @memberof google.analytics.admin.v1alpha.CustomMetric + * ExpandedDataSetFilterExpression notExpression. + * @member {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression|null|undefined} notExpression + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @instance */ - CustomMetric.prototype.description = ""; + ExpandedDataSetFilterExpression.prototype.notExpression = null; /** - * CustomMetric measurementUnit. - * @member {google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit} measurementUnit - * @memberof google.analytics.admin.v1alpha.CustomMetric + * ExpandedDataSetFilterExpression filter. + * @member {google.analytics.admin.v1alpha.IExpandedDataSetFilter|null|undefined} filter + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @instance */ - CustomMetric.prototype.measurementUnit = 0; + ExpandedDataSetFilterExpression.prototype.filter = null; - /** - * CustomMetric scope. - * @member {google.analytics.admin.v1alpha.CustomMetric.MetricScope} scope - * @memberof google.analytics.admin.v1alpha.CustomMetric - * @instance - */ - CustomMetric.prototype.scope = 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CustomMetric restrictedMetricType. - * @member {Array.} restrictedMetricType - * @memberof google.analytics.admin.v1alpha.CustomMetric + * ExpandedDataSetFilterExpression expr. + * @member {"andGroup"|"notExpression"|"filter"|undefined} expr + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @instance */ - CustomMetric.prototype.restrictedMetricType = $util.emptyArray; + Object.defineProperty(ExpandedDataSetFilterExpression.prototype, "expr", { + get: $util.oneOfGetter($oneOfFields = ["andGroup", "notExpression", "filter"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CustomMetric instance using the specified properties. + * Creates a new ExpandedDataSetFilterExpression instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @static - * @param {google.analytics.admin.v1alpha.ICustomMetric=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric instance + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression} ExpandedDataSetFilterExpression instance */ - CustomMetric.create = function create(properties) { - return new CustomMetric(properties); + ExpandedDataSetFilterExpression.create = function create(properties) { + return new ExpandedDataSetFilterExpression(properties); }; /** - * Encodes the specified CustomMetric message. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. + * Encodes the specified ExpandedDataSetFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @static - * @param {google.analytics.admin.v1alpha.ICustomMetric} message CustomMetric message or plain object to encode + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression} message ExpandedDataSetFilterExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomMetric.encode = function encode(message, writer) { + ExpandedDataSetFilterExpression.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.parameterName != null && Object.hasOwnProperty.call(message, "parameterName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterName); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); - if (message.measurementUnit != null && Object.hasOwnProperty.call(message, "measurementUnit")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.measurementUnit); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.scope); - if (message.restrictedMetricType != null && message.restrictedMetricType.length) { - writer.uint32(/* id 8, wireType 2 =*/66).fork(); - for (var i = 0; i < message.restrictedMetricType.length; ++i) - writer.int32(message.restrictedMetricType[i]); - writer.ldelim(); - } + if (message.andGroup != null && Object.hasOwnProperty.call(message, "andGroup")) + $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.encode(message.andGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.notExpression != null && Object.hasOwnProperty.call(message, "notExpression")) + $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.encode(message.notExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.encode(message.filter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CustomMetric message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CustomMetric.verify|verify} messages. + * Encodes the specified ExpandedDataSetFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @static - * @param {google.analytics.admin.v1alpha.ICustomMetric} message CustomMetric message or plain object to encode + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression} message ExpandedDataSetFilterExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomMetric.encodeDelimited = function encodeDelimited(message, writer) { + ExpandedDataSetFilterExpression.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomMetric message from the specified reader or buffer. + * Decodes an ExpandedDataSetFilterExpression message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression} ExpandedDataSetFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomMetric.decode = function decode(reader, length) { + ExpandedDataSetFilterExpression.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CustomMetric(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.andGroup = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.decode(reader, reader.uint32()); break; } case 2: { - message.parameterName = reader.string(); + message.notExpression = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.decode(reader, reader.uint32()); break; } case 3: { - message.displayName = reader.string(); - break; - } - case 4: { - message.description = reader.string(); - break; - } - case 5: { - message.measurementUnit = reader.int32(); - break; - } - case 6: { - message.scope = reader.int32(); - break; - } - case 8: { - if (!(message.restrictedMetricType && message.restrictedMetricType.length)) - message.restrictedMetricType = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.restrictedMetricType.push(reader.int32()); - } else - message.restrictedMetricType.push(reader.int32()); + message.filter = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.decode(reader, reader.uint32()); break; } default: @@ -45146,355 +51260,173 @@ }; /** - * Decodes a CustomMetric message from the specified reader or buffer, length delimited. + * Decodes an ExpandedDataSetFilterExpression message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression} ExpandedDataSetFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomMetric.decodeDelimited = function decodeDelimited(reader) { + ExpandedDataSetFilterExpression.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CustomMetric message. + * Verifies an ExpandedDataSetFilterExpression message. * @function verify - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomMetric.verify = function verify(message) { + ExpandedDataSetFilterExpression.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.parameterName != null && message.hasOwnProperty("parameterName")) - if (!$util.isString(message.parameterName)) - return "parameterName: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) - switch (message.measurementUnit) { - default: - return "measurementUnit: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; + var properties = {}; + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.verify(message.andGroup); + if (error) + return "andGroup." + error; } - if (message.scope != null && message.hasOwnProperty("scope")) - switch (message.scope) { - default: - return "scope: enum value expected"; - case 0: - case 1: - break; + } + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.verify(message.notExpression); + if (error) + return "notExpression." + error; + } + } + if (message.filter != null && message.hasOwnProperty("filter")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.verify(message.filter); + if (error) + return "filter." + error; } - if (message.restrictedMetricType != null && message.hasOwnProperty("restrictedMetricType")) { - if (!Array.isArray(message.restrictedMetricType)) - return "restrictedMetricType: array expected"; - for (var i = 0; i < message.restrictedMetricType.length; ++i) - switch (message.restrictedMetricType[i]) { - default: - return "restrictedMetricType: enum value[] expected"; - case 0: - case 1: - case 2: - break; - } } return null; }; /** - * Creates a CustomMetric message from a plain object. Also converts values to their respective internal types. + * Creates an ExpandedDataSetFilterExpression message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.CustomMetric} CustomMetric + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression} ExpandedDataSetFilterExpression */ - CustomMetric.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.CustomMetric) + ExpandedDataSetFilterExpression.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) return object; - var message = new $root.google.analytics.admin.v1alpha.CustomMetric(); - if (object.name != null) - message.name = String(object.name); - if (object.parameterName != null) - message.parameterName = String(object.parameterName); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - switch (object.measurementUnit) { - default: - if (typeof object.measurementUnit === "number") { - message.measurementUnit = object.measurementUnit; - break; - } - break; - case "MEASUREMENT_UNIT_UNSPECIFIED": - case 0: - message.measurementUnit = 0; - break; - case "STANDARD": - case 1: - message.measurementUnit = 1; - break; - case "CURRENCY": - case 2: - message.measurementUnit = 2; - break; - case "FEET": - case 3: - message.measurementUnit = 3; - break; - case "METERS": - case 4: - message.measurementUnit = 4; - break; - case "KILOMETERS": - case 5: - message.measurementUnit = 5; - break; - case "MILES": - case 6: - message.measurementUnit = 6; - break; - case "MILLISECONDS": - case 7: - message.measurementUnit = 7; - break; - case "SECONDS": - case 8: - message.measurementUnit = 8; - break; - case "MINUTES": - case 9: - message.measurementUnit = 9; - break; - case "HOURS": - case 10: - message.measurementUnit = 10; - break; + var message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression(); + if (object.andGroup != null) { + if (typeof object.andGroup !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.andGroup: object expected"); + message.andGroup = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.fromObject(object.andGroup); } - switch (object.scope) { - default: - if (typeof object.scope === "number") { - message.scope = object.scope; - break; - } - break; - case "METRIC_SCOPE_UNSPECIFIED": - case 0: - message.scope = 0; - break; - case "EVENT": - case 1: - message.scope = 1; - break; + if (object.notExpression != null) { + if (typeof object.notExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.notExpression: object expected"); + message.notExpression = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.fromObject(object.notExpression); } - if (object.restrictedMetricType) { - if (!Array.isArray(object.restrictedMetricType)) - throw TypeError(".google.analytics.admin.v1alpha.CustomMetric.restrictedMetricType: array expected"); - message.restrictedMetricType = []; - for (var i = 0; i < object.restrictedMetricType.length; ++i) - switch (object.restrictedMetricType[i]) { - default: - if (typeof object.restrictedMetricType[i] === "number") { - message.restrictedMetricType[i] = object.restrictedMetricType[i]; - break; - } - case "RESTRICTED_METRIC_TYPE_UNSPECIFIED": - case 0: - message.restrictedMetricType[i] = 0; - break; - case "COST_DATA": - case 1: - message.restrictedMetricType[i] = 1; - break; - case "REVENUE_DATA": - case 2: - message.restrictedMetricType[i] = 2; - break; - } + if (object.filter != null) { + if (typeof object.filter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.filter: object expected"); + message.filter = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.fromObject(object.filter); } return message; }; /** - * Creates a plain object from a CustomMetric message. Also converts values to other types if specified. + * Creates a plain object from an ExpandedDataSetFilterExpression message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @static - * @param {google.analytics.admin.v1alpha.CustomMetric} message CustomMetric + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression} message ExpandedDataSetFilterExpression * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomMetric.toObject = function toObject(message, options) { + ExpandedDataSetFilterExpression.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.restrictedMetricType = []; - if (options.defaults) { - object.name = ""; - object.parameterName = ""; - object.displayName = ""; - object.description = ""; - object.measurementUnit = options.enums === String ? "MEASUREMENT_UNIT_UNSPECIFIED" : 0; - object.scope = options.enums === String ? "METRIC_SCOPE_UNSPECIFIED" : 0; + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + object.andGroup = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.toObject(message.andGroup, options); + if (options.oneofs) + object.expr = "andGroup"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.parameterName != null && message.hasOwnProperty("parameterName")) - object.parameterName = message.parameterName; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.measurementUnit != null && message.hasOwnProperty("measurementUnit")) - object.measurementUnit = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit[message.measurementUnit] === undefined ? message.measurementUnit : $root.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit[message.measurementUnit] : message.measurementUnit; - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.MetricScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.CustomMetric.MetricScope[message.scope] : message.scope; - if (message.restrictedMetricType && message.restrictedMetricType.length) { - object.restrictedMetricType = []; - for (var j = 0; j < message.restrictedMetricType.length; ++j) - object.restrictedMetricType[j] = options.enums === String ? $root.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] === undefined ? message.restrictedMetricType[j] : $root.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType[message.restrictedMetricType[j]] : message.restrictedMetricType[j]; + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + object.notExpression = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.toObject(message.notExpression, options); + if (options.oneofs) + object.expr = "notExpression"; + } + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilter.toObject(message.filter, options); + if (options.oneofs) + object.expr = "filter"; } return object; }; /** - * Converts this CustomMetric to JSON. + * Converts this ExpandedDataSetFilterExpression to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @instance * @returns {Object.} JSON object */ - CustomMetric.prototype.toJSON = function toJSON() { + ExpandedDataSetFilterExpression.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CustomMetric + * Gets the default type url for ExpandedDataSetFilterExpression * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.CustomMetric + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CustomMetric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExpandedDataSetFilterExpression.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.CustomMetric"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression"; }; - /** - * MeasurementUnit enum. - * @name google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit - * @enum {number} - * @property {number} MEASUREMENT_UNIT_UNSPECIFIED=0 MEASUREMENT_UNIT_UNSPECIFIED value - * @property {number} STANDARD=1 STANDARD value - * @property {number} CURRENCY=2 CURRENCY value - * @property {number} FEET=3 FEET value - * @property {number} METERS=4 METERS value - * @property {number} KILOMETERS=5 KILOMETERS value - * @property {number} MILES=6 MILES value - * @property {number} MILLISECONDS=7 MILLISECONDS value - * @property {number} SECONDS=8 SECONDS value - * @property {number} MINUTES=9 MINUTES value - * @property {number} HOURS=10 HOURS value - */ - CustomMetric.MeasurementUnit = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MEASUREMENT_UNIT_UNSPECIFIED"] = 0; - values[valuesById[1] = "STANDARD"] = 1; - values[valuesById[2] = "CURRENCY"] = 2; - values[valuesById[3] = "FEET"] = 3; - values[valuesById[4] = "METERS"] = 4; - values[valuesById[5] = "KILOMETERS"] = 5; - values[valuesById[6] = "MILES"] = 6; - values[valuesById[7] = "MILLISECONDS"] = 7; - values[valuesById[8] = "SECONDS"] = 8; - values[valuesById[9] = "MINUTES"] = 9; - values[valuesById[10] = "HOURS"] = 10; - return values; - })(); - - /** - * MetricScope enum. - * @name google.analytics.admin.v1alpha.CustomMetric.MetricScope - * @enum {number} - * @property {number} METRIC_SCOPE_UNSPECIFIED=0 METRIC_SCOPE_UNSPECIFIED value - * @property {number} EVENT=1 EVENT value - */ - CustomMetric.MetricScope = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METRIC_SCOPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EVENT"] = 1; - return values; - })(); - - /** - * RestrictedMetricType enum. - * @name google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType - * @enum {number} - * @property {number} RESTRICTED_METRIC_TYPE_UNSPECIFIED=0 RESTRICTED_METRIC_TYPE_UNSPECIFIED value - * @property {number} COST_DATA=1 COST_DATA value - * @property {number} REVENUE_DATA=2 REVENUE_DATA value - */ - CustomMetric.RestrictedMetricType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESTRICTED_METRIC_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "COST_DATA"] = 1; - values[valuesById[2] = "REVENUE_DATA"] = 2; - return values; - })(); - - return CustomMetric; + return ExpandedDataSetFilterExpression; })(); - v1alpha.DataRetentionSettings = (function() { + v1alpha.ExpandedDataSetFilterExpressionList = (function() { /** - * Properties of a DataRetentionSettings. + * Properties of an ExpandedDataSetFilterExpressionList. * @memberof google.analytics.admin.v1alpha - * @interface IDataRetentionSettings - * @property {string|null} [name] DataRetentionSettings name - * @property {google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration|null} [eventDataRetention] DataRetentionSettings eventDataRetention - * @property {boolean|null} [resetUserDataOnNewActivity] DataRetentionSettings resetUserDataOnNewActivity + * @interface IExpandedDataSetFilterExpressionList + * @property {Array.|null} [filterExpressions] ExpandedDataSetFilterExpressionList filterExpressions */ /** - * Constructs a new DataRetentionSettings. + * Constructs a new ExpandedDataSetFilterExpressionList. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a DataRetentionSettings. - * @implements IDataRetentionSettings + * @classdesc Represents an ExpandedDataSetFilterExpressionList. + * @implements IExpandedDataSetFilterExpressionList * @constructor - * @param {google.analytics.admin.v1alpha.IDataRetentionSettings=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList=} [properties] Properties to set */ - function DataRetentionSettings(properties) { + function ExpandedDataSetFilterExpressionList(properties) { + this.filterExpressions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45502,103 +51434,78 @@ } /** - * DataRetentionSettings name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings - * @instance - */ - DataRetentionSettings.prototype.name = ""; - - /** - * DataRetentionSettings eventDataRetention. - * @member {google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration} eventDataRetention - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings - * @instance - */ - DataRetentionSettings.prototype.eventDataRetention = 0; - - /** - * DataRetentionSettings resetUserDataOnNewActivity. - * @member {boolean} resetUserDataOnNewActivity - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * ExpandedDataSetFilterExpressionList filterExpressions. + * @member {Array.} filterExpressions + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @instance */ - DataRetentionSettings.prototype.resetUserDataOnNewActivity = false; + ExpandedDataSetFilterExpressionList.prototype.filterExpressions = $util.emptyArray; /** - * Creates a new DataRetentionSettings instance using the specified properties. + * Creates a new ExpandedDataSetFilterExpressionList instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.IDataRetentionSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings instance + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList} ExpandedDataSetFilterExpressionList instance */ - DataRetentionSettings.create = function create(properties) { - return new DataRetentionSettings(properties); + ExpandedDataSetFilterExpressionList.create = function create(properties) { + return new ExpandedDataSetFilterExpressionList(properties); }; /** - * Encodes the specified DataRetentionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. + * Encodes the specified ExpandedDataSetFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.IDataRetentionSettings} message DataRetentionSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList} message ExpandedDataSetFilterExpressionList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataRetentionSettings.encode = function encode(message, writer) { + ExpandedDataSetFilterExpressionList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.eventDataRetention != null && Object.hasOwnProperty.call(message, "eventDataRetention")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.eventDataRetention); - if (message.resetUserDataOnNewActivity != null && Object.hasOwnProperty.call(message, "resetUserDataOnNewActivity")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.resetUserDataOnNewActivity); + if (message.filterExpressions != null && message.filterExpressions.length) + for (var i = 0; i < message.filterExpressions.length; ++i) + $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.encode(message.filterExpressions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DataRetentionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DataRetentionSettings.verify|verify} messages. + * Encodes the specified ExpandedDataSetFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.IDataRetentionSettings} message DataRetentionSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpressionList} message ExpandedDataSetFilterExpressionList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataRetentionSettings.encodeDelimited = function encodeDelimited(message, writer) { + ExpandedDataSetFilterExpressionList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataRetentionSettings message from the specified reader or buffer. + * Decodes an ExpandedDataSetFilterExpressionList message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList} ExpandedDataSetFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataRetentionSettings.decode = function decode(reader, length) { + ExpandedDataSetFilterExpressionList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DataRetentionSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.eventDataRetention = reader.int32(); - break; - } - case 3: { - message.resetUserDataOnNewActivity = reader.bool(); + if (!(message.filterExpressions && message.filterExpressions.length)) + message.filterExpressions = []; + message.filterExpressions.push($root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.decode(reader, reader.uint32())); break; } default: @@ -45610,203 +51517,147 @@ }; /** - * Decodes a DataRetentionSettings message from the specified reader or buffer, length delimited. + * Decodes an ExpandedDataSetFilterExpressionList message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList} ExpandedDataSetFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataRetentionSettings.decodeDelimited = function decodeDelimited(reader) { + ExpandedDataSetFilterExpressionList.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataRetentionSettings message. + * Verifies an ExpandedDataSetFilterExpressionList message. * @function verify - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataRetentionSettings.verify = function verify(message) { + ExpandedDataSetFilterExpressionList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) - switch (message.eventDataRetention) { - default: - return "eventDataRetention: enum value expected"; - case 0: - case 1: - case 3: - case 4: - case 5: - case 6: - break; + if (message.filterExpressions != null && message.hasOwnProperty("filterExpressions")) { + if (!Array.isArray(message.filterExpressions)) + return "filterExpressions: array expected"; + for (var i = 0; i < message.filterExpressions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.verify(message.filterExpressions[i]); + if (error) + return "filterExpressions." + error; } - if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) - if (typeof message.resetUserDataOnNewActivity !== "boolean") - return "resetUserDataOnNewActivity: boolean expected"; + } return null; }; /** - * Creates a DataRetentionSettings message from a plain object. Also converts values to their respective internal types. + * Creates an ExpandedDataSetFilterExpressionList message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.DataRetentionSettings} DataRetentionSettings + * @returns {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList} ExpandedDataSetFilterExpressionList */ - DataRetentionSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.DataRetentionSettings) + ExpandedDataSetFilterExpressionList.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) return object; - var message = new $root.google.analytics.admin.v1alpha.DataRetentionSettings(); - if (object.name != null) - message.name = String(object.name); - switch (object.eventDataRetention) { - default: - if (typeof object.eventDataRetention === "number") { - message.eventDataRetention = object.eventDataRetention; - break; + var message = new $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList(); + if (object.filterExpressions) { + if (!Array.isArray(object.filterExpressions)) + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.filterExpressions: array expected"); + message.filterExpressions = []; + for (var i = 0; i < object.filterExpressions.length; ++i) { + if (typeof object.filterExpressions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.filterExpressions: object expected"); + message.filterExpressions[i] = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.fromObject(object.filterExpressions[i]); } - break; - case "RETENTION_DURATION_UNSPECIFIED": - case 0: - message.eventDataRetention = 0; - break; - case "TWO_MONTHS": - case 1: - message.eventDataRetention = 1; - break; - case "FOURTEEN_MONTHS": - case 3: - message.eventDataRetention = 3; - break; - case "TWENTY_SIX_MONTHS": - case 4: - message.eventDataRetention = 4; - break; - case "THIRTY_EIGHT_MONTHS": - case 5: - message.eventDataRetention = 5; - break; - case "FIFTY_MONTHS": - case 6: - message.eventDataRetention = 6; - break; } - if (object.resetUserDataOnNewActivity != null) - message.resetUserDataOnNewActivity = Boolean(object.resetUserDataOnNewActivity); return message; }; /** - * Creates a plain object from a DataRetentionSettings message. Also converts values to other types if specified. + * Creates a plain object from an ExpandedDataSetFilterExpressionList message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @static - * @param {google.analytics.admin.v1alpha.DataRetentionSettings} message DataRetentionSettings + * @param {google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList} message ExpandedDataSetFilterExpressionList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataRetentionSettings.toObject = function toObject(message, options) { + ExpandedDataSetFilterExpressionList.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.eventDataRetention = options.enums === String ? "RETENTION_DURATION_UNSPECIFIED" : 0; - object.resetUserDataOnNewActivity = false; + if (options.arrays || options.defaults) + object.filterExpressions = []; + if (message.filterExpressions && message.filterExpressions.length) { + object.filterExpressions = []; + for (var j = 0; j < message.filterExpressions.length; ++j) + object.filterExpressions[j] = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.toObject(message.filterExpressions[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.eventDataRetention != null && message.hasOwnProperty("eventDataRetention")) - object.eventDataRetention = options.enums === String ? $root.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration[message.eventDataRetention] === undefined ? message.eventDataRetention : $root.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration[message.eventDataRetention] : message.eventDataRetention; - if (message.resetUserDataOnNewActivity != null && message.hasOwnProperty("resetUserDataOnNewActivity")) - object.resetUserDataOnNewActivity = message.resetUserDataOnNewActivity; return object; }; /** - * Converts this DataRetentionSettings to JSON. + * Converts this ExpandedDataSetFilterExpressionList to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @instance * @returns {Object.} JSON object */ - DataRetentionSettings.prototype.toJSON = function toJSON() { + ExpandedDataSetFilterExpressionList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DataRetentionSettings + * Gets the default type url for ExpandedDataSetFilterExpressionList * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.DataRetentionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DataRetentionSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExpandedDataSetFilterExpressionList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.DataRetentionSettings"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList"; }; - /** - * RetentionDuration enum. - * @name google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration - * @enum {number} - * @property {number} RETENTION_DURATION_UNSPECIFIED=0 RETENTION_DURATION_UNSPECIFIED value - * @property {number} TWO_MONTHS=1 TWO_MONTHS value - * @property {number} FOURTEEN_MONTHS=3 FOURTEEN_MONTHS value - * @property {number} TWENTY_SIX_MONTHS=4 TWENTY_SIX_MONTHS value - * @property {number} THIRTY_EIGHT_MONTHS=5 THIRTY_EIGHT_MONTHS value - * @property {number} FIFTY_MONTHS=6 FIFTY_MONTHS value - */ - DataRetentionSettings.RetentionDuration = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETENTION_DURATION_UNSPECIFIED"] = 0; - values[valuesById[1] = "TWO_MONTHS"] = 1; - values[valuesById[3] = "FOURTEEN_MONTHS"] = 3; - values[valuesById[4] = "TWENTY_SIX_MONTHS"] = 4; - values[valuesById[5] = "THIRTY_EIGHT_MONTHS"] = 5; - values[valuesById[6] = "FIFTY_MONTHS"] = 6; - return values; - })(); - - return DataRetentionSettings; + return ExpandedDataSetFilterExpressionList; })(); - v1alpha.AttributionSettings = (function() { + v1alpha.ExpandedDataSet = (function() { /** - * Properties of an AttributionSettings. + * Properties of an ExpandedDataSet. * @memberof google.analytics.admin.v1alpha - * @interface IAttributionSettings - * @property {string|null} [name] AttributionSettings name - * @property {google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow|null} [acquisitionConversionEventLookbackWindow] AttributionSettings acquisitionConversionEventLookbackWindow - * @property {google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow|null} [otherConversionEventLookbackWindow] AttributionSettings otherConversionEventLookbackWindow - * @property {google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel|null} [reportingAttributionModel] AttributionSettings reportingAttributionModel + * @interface IExpandedDataSet + * @property {string|null} [name] ExpandedDataSet name + * @property {string|null} [displayName] ExpandedDataSet displayName + * @property {string|null} [description] ExpandedDataSet description + * @property {Array.|null} [dimensionNames] ExpandedDataSet dimensionNames + * @property {Array.|null} [metricNames] ExpandedDataSet metricNames + * @property {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression|null} [dimensionFilterExpression] ExpandedDataSet dimensionFilterExpression + * @property {google.protobuf.ITimestamp|null} [dataCollectionStartTime] ExpandedDataSet dataCollectionStartTime */ /** - * Constructs a new AttributionSettings. + * Constructs a new ExpandedDataSet. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AttributionSettings. - * @implements IAttributionSettings + * @classdesc Represents an ExpandedDataSet. + * @implements IExpandedDataSet * @constructor - * @param {google.analytics.admin.v1alpha.IAttributionSettings=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IExpandedDataSet=} [properties] Properties to set */ - function AttributionSettings(properties) { + function ExpandedDataSet(properties) { + this.dimensionNames = []; + this.metricNames = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45814,100 +51665,132 @@ } /** - * AttributionSettings name. + * ExpandedDataSet name. * @member {string} name - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @instance */ - AttributionSettings.prototype.name = ""; + ExpandedDataSet.prototype.name = ""; /** - * AttributionSettings acquisitionConversionEventLookbackWindow. - * @member {google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow} acquisitionConversionEventLookbackWindow - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * ExpandedDataSet displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @instance */ - AttributionSettings.prototype.acquisitionConversionEventLookbackWindow = 0; + ExpandedDataSet.prototype.displayName = ""; /** - * AttributionSettings otherConversionEventLookbackWindow. - * @member {google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow} otherConversionEventLookbackWindow - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * ExpandedDataSet description. + * @member {string} description + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @instance */ - AttributionSettings.prototype.otherConversionEventLookbackWindow = 0; + ExpandedDataSet.prototype.description = ""; /** - * AttributionSettings reportingAttributionModel. - * @member {google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel} reportingAttributionModel - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * ExpandedDataSet dimensionNames. + * @member {Array.} dimensionNames + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @instance */ - AttributionSettings.prototype.reportingAttributionModel = 0; + ExpandedDataSet.prototype.dimensionNames = $util.emptyArray; /** - * Creates a new AttributionSettings instance using the specified properties. + * ExpandedDataSet metricNames. + * @member {Array.} metricNames + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet + * @instance + */ + ExpandedDataSet.prototype.metricNames = $util.emptyArray; + + /** + * ExpandedDataSet dimensionFilterExpression. + * @member {google.analytics.admin.v1alpha.IExpandedDataSetFilterExpression|null|undefined} dimensionFilterExpression + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet + * @instance + */ + ExpandedDataSet.prototype.dimensionFilterExpression = null; + + /** + * ExpandedDataSet dataCollectionStartTime. + * @member {google.protobuf.ITimestamp|null|undefined} dataCollectionStartTime + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet + * @instance + */ + ExpandedDataSet.prototype.dataCollectionStartTime = null; + + /** + * Creates a new ExpandedDataSet instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @static - * @param {google.analytics.admin.v1alpha.IAttributionSettings=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings instance + * @param {google.analytics.admin.v1alpha.IExpandedDataSet=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ExpandedDataSet} ExpandedDataSet instance */ - AttributionSettings.create = function create(properties) { - return new AttributionSettings(properties); + ExpandedDataSet.create = function create(properties) { + return new ExpandedDataSet(properties); }; /** - * Encodes the specified AttributionSettings message. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. + * Encodes the specified ExpandedDataSet message. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSet.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @static - * @param {google.analytics.admin.v1alpha.IAttributionSettings} message AttributionSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IExpandedDataSet} message ExpandedDataSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AttributionSettings.encode = function encode(message, writer) { + ExpandedDataSet.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.acquisitionConversionEventLookbackWindow != null && Object.hasOwnProperty.call(message, "acquisitionConversionEventLookbackWindow")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.acquisitionConversionEventLookbackWindow); - if (message.otherConversionEventLookbackWindow != null && Object.hasOwnProperty.call(message, "otherConversionEventLookbackWindow")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.otherConversionEventLookbackWindow); - if (message.reportingAttributionModel != null && Object.hasOwnProperty.call(message, "reportingAttributionModel")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.reportingAttributionModel); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.dimensionNames != null && message.dimensionNames.length) + for (var i = 0; i < message.dimensionNames.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dimensionNames[i]); + if (message.metricNames != null && message.metricNames.length) + for (var i = 0; i < message.metricNames.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.metricNames[i]); + if (message.dimensionFilterExpression != null && Object.hasOwnProperty.call(message, "dimensionFilterExpression")) + $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.encode(message.dimensionFilterExpression, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.dataCollectionStartTime != null && Object.hasOwnProperty.call(message, "dataCollectionStartTime")) + $root.google.protobuf.Timestamp.encode(message.dataCollectionStartTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified AttributionSettings message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AttributionSettings.verify|verify} messages. + * Encodes the specified ExpandedDataSet message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ExpandedDataSet.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @static - * @param {google.analytics.admin.v1alpha.IAttributionSettings} message AttributionSettings message or plain object to encode + * @param {google.analytics.admin.v1alpha.IExpandedDataSet} message ExpandedDataSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AttributionSettings.encodeDelimited = function encodeDelimited(message, writer) { + ExpandedDataSet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AttributionSettings message from the specified reader or buffer. + * Decodes an ExpandedDataSet message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings + * @returns {google.analytics.admin.v1alpha.ExpandedDataSet} ExpandedDataSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AttributionSettings.decode = function decode(reader, length) { + ExpandedDataSet.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AttributionSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ExpandedDataSet(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -45916,15 +51799,31 @@ break; } case 2: { - message.acquisitionConversionEventLookbackWindow = reader.int32(); + message.displayName = reader.string(); break; } case 3: { - message.otherConversionEventLookbackWindow = reader.int32(); + message.description = reader.string(); break; } case 4: { - message.reportingAttributionModel = reader.int32(); + if (!(message.dimensionNames && message.dimensionNames.length)) + message.dimensionNames = []; + message.dimensionNames.push(reader.string()); + break; + } + case 5: { + if (!(message.metricNames && message.metricNames.length)) + message.metricNames = []; + message.metricNames.push(reader.string()); + break; + } + case 6: { + message.dimensionFilterExpression = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.decode(reader, reader.uint32()); + break; + } + case 7: { + message.dataCollectionStartTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -45936,289 +51835,187 @@ }; /** - * Decodes an AttributionSettings message from the specified reader or buffer, length delimited. + * Decodes an ExpandedDataSet message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings + * @returns {google.analytics.admin.v1alpha.ExpandedDataSet} ExpandedDataSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AttributionSettings.decodeDelimited = function decodeDelimited(reader) { + ExpandedDataSet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AttributionSettings message. + * Verifies an ExpandedDataSet message. * @function verify - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AttributionSettings.verify = function verify(message) { + ExpandedDataSet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.acquisitionConversionEventLookbackWindow != null && message.hasOwnProperty("acquisitionConversionEventLookbackWindow")) - switch (message.acquisitionConversionEventLookbackWindow) { - default: - return "acquisitionConversionEventLookbackWindow: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.otherConversionEventLookbackWindow != null && message.hasOwnProperty("otherConversionEventLookbackWindow")) - switch (message.otherConversionEventLookbackWindow) { - default: - return "otherConversionEventLookbackWindow: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.reportingAttributionModel != null && message.hasOwnProperty("reportingAttributionModel")) - switch (message.reportingAttributionModel) { - default: - return "reportingAttributionModel: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.dimensionNames != null && message.hasOwnProperty("dimensionNames")) { + if (!Array.isArray(message.dimensionNames)) + return "dimensionNames: array expected"; + for (var i = 0; i < message.dimensionNames.length; ++i) + if (!$util.isString(message.dimensionNames[i])) + return "dimensionNames: string[] expected"; + } + if (message.metricNames != null && message.hasOwnProperty("metricNames")) { + if (!Array.isArray(message.metricNames)) + return "metricNames: array expected"; + for (var i = 0; i < message.metricNames.length; ++i) + if (!$util.isString(message.metricNames[i])) + return "metricNames: string[] expected"; + } + if (message.dimensionFilterExpression != null && message.hasOwnProperty("dimensionFilterExpression")) { + var error = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.verify(message.dimensionFilterExpression); + if (error) + return "dimensionFilterExpression." + error; + } + if (message.dataCollectionStartTime != null && message.hasOwnProperty("dataCollectionStartTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.dataCollectionStartTime); + if (error) + return "dataCollectionStartTime." + error; + } return null; }; /** - * Creates an AttributionSettings message from a plain object. Also converts values to their respective internal types. + * Creates an ExpandedDataSet message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AttributionSettings} AttributionSettings + * @returns {google.analytics.admin.v1alpha.ExpandedDataSet} ExpandedDataSet */ - AttributionSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AttributionSettings) + ExpandedDataSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ExpandedDataSet) return object; - var message = new $root.google.analytics.admin.v1alpha.AttributionSettings(); + var message = new $root.google.analytics.admin.v1alpha.ExpandedDataSet(); if (object.name != null) message.name = String(object.name); - switch (object.acquisitionConversionEventLookbackWindow) { - default: - if (typeof object.acquisitionConversionEventLookbackWindow === "number") { - message.acquisitionConversionEventLookbackWindow = object.acquisitionConversionEventLookbackWindow; - break; - } - break; - case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": - case 0: - message.acquisitionConversionEventLookbackWindow = 0; - break; - case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS": - case 1: - message.acquisitionConversionEventLookbackWindow = 1; - break; - case "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS": - case 2: - message.acquisitionConversionEventLookbackWindow = 2; - break; - } - switch (object.otherConversionEventLookbackWindow) { - default: - if (typeof object.otherConversionEventLookbackWindow === "number") { - message.otherConversionEventLookbackWindow = object.otherConversionEventLookbackWindow; - break; - } - break; - case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED": - case 0: - message.otherConversionEventLookbackWindow = 0; - break; - case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS": - case 1: - message.otherConversionEventLookbackWindow = 1; - break; - case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS": - case 2: - message.otherConversionEventLookbackWindow = 2; - break; - case "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS": - case 3: - message.otherConversionEventLookbackWindow = 3; - break; - } - switch (object.reportingAttributionModel) { - default: - if (typeof object.reportingAttributionModel === "number") { - message.reportingAttributionModel = object.reportingAttributionModel; - break; - } - break; - case "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED": - case 0: - message.reportingAttributionModel = 0; - break; - case "CROSS_CHANNEL_DATA_DRIVEN": - case 1: - message.reportingAttributionModel = 1; - break; - case "CROSS_CHANNEL_LAST_CLICK": - case 2: - message.reportingAttributionModel = 2; - break; - case "CROSS_CHANNEL_FIRST_CLICK": - case 3: - message.reportingAttributionModel = 3; - break; - case "CROSS_CHANNEL_LINEAR": - case 4: - message.reportingAttributionModel = 4; - break; - case "CROSS_CHANNEL_POSITION_BASED": - case 5: - message.reportingAttributionModel = 5; - break; - case "CROSS_CHANNEL_TIME_DECAY": - case 6: - message.reportingAttributionModel = 6; - break; - case "ADS_PREFERRED_LAST_CLICK": - case 7: - message.reportingAttributionModel = 7; - break; + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.dimensionNames) { + if (!Array.isArray(object.dimensionNames)) + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSet.dimensionNames: array expected"); + message.dimensionNames = []; + for (var i = 0; i < object.dimensionNames.length; ++i) + message.dimensionNames[i] = String(object.dimensionNames[i]); + } + if (object.metricNames) { + if (!Array.isArray(object.metricNames)) + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSet.metricNames: array expected"); + message.metricNames = []; + for (var i = 0; i < object.metricNames.length; ++i) + message.metricNames[i] = String(object.metricNames[i]); + } + if (object.dimensionFilterExpression != null) { + if (typeof object.dimensionFilterExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSet.dimensionFilterExpression: object expected"); + message.dimensionFilterExpression = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.fromObject(object.dimensionFilterExpression); + } + if (object.dataCollectionStartTime != null) { + if (typeof object.dataCollectionStartTime !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ExpandedDataSet.dataCollectionStartTime: object expected"); + message.dataCollectionStartTime = $root.google.protobuf.Timestamp.fromObject(object.dataCollectionStartTime); } return message; }; /** - * Creates a plain object from an AttributionSettings message. Also converts values to other types if specified. + * Creates a plain object from an ExpandedDataSet message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @static - * @param {google.analytics.admin.v1alpha.AttributionSettings} message AttributionSettings + * @param {google.analytics.admin.v1alpha.ExpandedDataSet} message ExpandedDataSet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AttributionSettings.toObject = function toObject(message, options) { + ExpandedDataSet.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.dimensionNames = []; + object.metricNames = []; + } if (options.defaults) { object.name = ""; - object.acquisitionConversionEventLookbackWindow = options.enums === String ? "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED" : 0; - object.otherConversionEventLookbackWindow = options.enums === String ? "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED" : 0; - object.reportingAttributionModel = options.enums === String ? "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED" : 0; + object.displayName = ""; + object.description = ""; + object.dimensionFilterExpression = null; + object.dataCollectionStartTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.acquisitionConversionEventLookbackWindow != null && message.hasOwnProperty("acquisitionConversionEventLookbackWindow")) - object.acquisitionConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow[message.acquisitionConversionEventLookbackWindow] === undefined ? message.acquisitionConversionEventLookbackWindow : $root.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow[message.acquisitionConversionEventLookbackWindow] : message.acquisitionConversionEventLookbackWindow; - if (message.otherConversionEventLookbackWindow != null && message.hasOwnProperty("otherConversionEventLookbackWindow")) - object.otherConversionEventLookbackWindow = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow[message.otherConversionEventLookbackWindow] === undefined ? message.otherConversionEventLookbackWindow : $root.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow[message.otherConversionEventLookbackWindow] : message.otherConversionEventLookbackWindow; - if (message.reportingAttributionModel != null && message.hasOwnProperty("reportingAttributionModel")) - object.reportingAttributionModel = options.enums === String ? $root.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel[message.reportingAttributionModel] === undefined ? message.reportingAttributionModel : $root.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel[message.reportingAttributionModel] : message.reportingAttributionModel; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.dimensionNames && message.dimensionNames.length) { + object.dimensionNames = []; + for (var j = 0; j < message.dimensionNames.length; ++j) + object.dimensionNames[j] = message.dimensionNames[j]; + } + if (message.metricNames && message.metricNames.length) { + object.metricNames = []; + for (var j = 0; j < message.metricNames.length; ++j) + object.metricNames[j] = message.metricNames[j]; + } + if (message.dimensionFilterExpression != null && message.hasOwnProperty("dimensionFilterExpression")) + object.dimensionFilterExpression = $root.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.toObject(message.dimensionFilterExpression, options); + if (message.dataCollectionStartTime != null && message.hasOwnProperty("dataCollectionStartTime")) + object.dataCollectionStartTime = $root.google.protobuf.Timestamp.toObject(message.dataCollectionStartTime, options); return object; }; /** - * Converts this AttributionSettings to JSON. + * Converts this ExpandedDataSet to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @instance * @returns {Object.} JSON object */ - AttributionSettings.prototype.toJSON = function toJSON() { + ExpandedDataSet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AttributionSettings + * Gets the default type url for ExpandedDataSet * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AttributionSettings + * @memberof google.analytics.admin.v1alpha.ExpandedDataSet * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AttributionSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExpandedDataSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AttributionSettings"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ExpandedDataSet"; }; - /** - * AcquisitionConversionEventLookbackWindow enum. - * @name google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow - * @enum {number} - * @property {number} ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED=0 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED value - * @property {number} ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS=1 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS value - * @property {number} ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS=2 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS value - */ - AttributionSettings.AcquisitionConversionEventLookbackWindow = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS"] = 1; - values[valuesById[2] = "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"] = 2; - return values; - })(); - - /** - * OtherConversionEventLookbackWindow enum. - * @name google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow - * @enum {number} - * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED=0 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED value - * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS=1 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS value - * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS=2 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS value - * @property {number} OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS=3 OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS value - */ - AttributionSettings.OtherConversionEventLookbackWindow = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED"] = 0; - values[valuesById[1] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS"] = 1; - values[valuesById[2] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS"] = 2; - values[valuesById[3] = "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS"] = 3; - return values; - })(); - - /** - * ReportingAttributionModel enum. - * @name google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel - * @enum {number} - * @property {number} REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED=0 REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED value - * @property {number} CROSS_CHANNEL_DATA_DRIVEN=1 CROSS_CHANNEL_DATA_DRIVEN value - * @property {number} CROSS_CHANNEL_LAST_CLICK=2 CROSS_CHANNEL_LAST_CLICK value - * @property {number} CROSS_CHANNEL_FIRST_CLICK=3 CROSS_CHANNEL_FIRST_CLICK value - * @property {number} CROSS_CHANNEL_LINEAR=4 CROSS_CHANNEL_LINEAR value - * @property {number} CROSS_CHANNEL_POSITION_BASED=5 CROSS_CHANNEL_POSITION_BASED value - * @property {number} CROSS_CHANNEL_TIME_DECAY=6 CROSS_CHANNEL_TIME_DECAY value - * @property {number} ADS_PREFERRED_LAST_CLICK=7 ADS_PREFERRED_LAST_CLICK value - */ - AttributionSettings.ReportingAttributionModel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED"] = 0; - values[valuesById[1] = "CROSS_CHANNEL_DATA_DRIVEN"] = 1; - values[valuesById[2] = "CROSS_CHANNEL_LAST_CLICK"] = 2; - values[valuesById[3] = "CROSS_CHANNEL_FIRST_CLICK"] = 3; - values[valuesById[4] = "CROSS_CHANNEL_LINEAR"] = 4; - values[valuesById[5] = "CROSS_CHANNEL_POSITION_BASED"] = 5; - values[valuesById[6] = "CROSS_CHANNEL_TIME_DECAY"] = 6; - values[valuesById[7] = "ADS_PREFERRED_LAST_CLICK"] = 7; - return values; - })(); - - return AttributionSettings; + return ExpandedDataSet; })(); return v1alpha; diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 743079aaad63..570d33441c1f 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -10,7 +10,7 @@ "options": { "go_package": "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin", "java_multiple_files": true, - "java_outer_classname": "ResourcesProto", + "java_outer_classname": "ExpandedDataSetProto", "java_package": "com.google.analytics.admin.v1alpha" }, "nested": { @@ -332,6 +332,10 @@ "serverErrorsPerProjectPerHour": { "type": "AccessQuotaStatus", "id": 4 + }, + "tokensPerProjectPerHour": { + "type": "AccessQuotaStatus", + "id": 5 } } }, @@ -1789,6 +1793,100 @@ } ] }, + "GetSearchAds360Link": { + "requestType": "GetSearchAds360LinkRequest", + "responseType": "SearchAds360Link", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/searchAds360Links/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/searchAds360Links/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListSearchAds360Links": { + "requestType": "ListSearchAds360LinksRequest", + "responseType": "ListSearchAds360LinksResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/searchAds360Links", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/searchAds360Links" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateSearchAds360Link": { + "requestType": "CreateSearchAds360LinkRequest", + "responseType": "SearchAds360Link", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/searchAds360Links", + "(google.api.http).body": "search_ads_360_link", + "(google.api.method_signature)": "parent,search_ads_360_link" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/searchAds360Links", + "body": "search_ads_360_link" + } + }, + { + "(google.api.method_signature)": "parent,search_ads_360_link" + } + ] + }, + "DeleteSearchAds360Link": { + "requestType": "DeleteSearchAds360LinkRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/searchAds360Links/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/searchAds360Links/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateSearchAds360Link": { + "requestType": "UpdateSearchAds360LinkRequest", + "responseType": "SearchAds360Link", + "options": { + "(google.api.http).patch": "/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}", + "(google.api.http).body": "search_ads_360_link", + "(google.api.method_signature)": "search_ads_360_link,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}", + "body": "search_ads_360_link" + } + }, + { + "(google.api.method_signature)": "search_ads_360_link,update_mask" + } + ] + }, "GetAttributionSettings": { "requestType": "GetAttributionSettingsRequest", "responseType": "AttributionSettings", @@ -1842,6 +1940,74 @@ } } ] + }, + "SetAutomatedGa4ConfigurationOptOut": { + "requestType": "SetAutomatedGa4ConfigurationOptOutRequest", + "responseType": "SetAutomatedGa4ConfigurationOptOutResponse", + "options": { + "(google.api.http).post": "/v1alpha/properties:setAutomatedGa4ConfigurationOptOut", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/properties:setAutomatedGa4ConfigurationOptOut", + "body": "*" + } + } + ] + }, + "FetchAutomatedGa4ConfigurationOptOut": { + "requestType": "FetchAutomatedGa4ConfigurationOptOutRequest", + "responseType": "FetchAutomatedGa4ConfigurationOptOutResponse", + "options": { + "(google.api.http).post": "/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + "body": "*" + } + } + ] + }, + "GetBigQueryLink": { + "requestType": "GetBigQueryLinkRequest", + "responseType": "BigQueryLink", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/bigQueryLinks/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/bigQueryLinks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListBigQueryLinks": { + "requestType": "ListBigQueryLinksRequest", + "responseType": "ListBigQueryLinksResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/bigQueryLinks", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/bigQueryLinks" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] } } }, @@ -3041,6 +3207,97 @@ } } }, + "GetSearchAds360LinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/SearchAds360Link" + } + } + } + }, + "ListSearchAds360LinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/SearchAds360Link" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListSearchAds360LinksResponse": { + "fields": { + "searchAds_360Links": { + "rule": "repeated", + "type": "SearchAds360Link", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateSearchAds360LinkRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/SearchAds360Link" + } + }, + "searchAds_360Link": { + "type": "SearchAds360Link", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteSearchAds360LinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/SearchAds360Link" + } + } + } + }, + "UpdateSearchAds360LinkRequest": { + "fields": { + "searchAds_360Link": { + "type": "SearchAds360Link", + "id": 1 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "CreateCustomDimensionRequest": { "fields": { "parent": { @@ -3468,6 +3725,88 @@ } } }, + "SetAutomatedGa4ConfigurationOptOutRequest": { + "fields": { + "property": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "optOut": { + "type": "bool", + "id": 2 + } + } + }, + "SetAutomatedGa4ConfigurationOptOutResponse": { + "fields": {} + }, + "FetchAutomatedGa4ConfigurationOptOutRequest": { + "fields": { + "property": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "FetchAutomatedGa4ConfigurationOptOutResponse": { + "fields": { + "optOut": { + "type": "bool", + "id": 1 + } + } + }, + "GetBigQueryLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/BigQueryLink" + } + } + } + }, + "ListBigQueryLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/BigQueryLink" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListBigQueryLinksResponse": { + "fields": { + "bigqueryLinks": { + "rule": "repeated", + "type": "BigQueryLink", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "AudienceFilterScope": { "values": { "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": 0, @@ -3559,8 +3898,7 @@ "BEGINS_WITH": 2, "ENDS_WITH": 3, "CONTAINS": 4, - "FULL_REGEXP": 5, - "PARTIAL_REGEXP": 6 + "FULL_REGEXP": 5 } } } @@ -3627,9 +3965,7 @@ "OPERATION_UNSPECIFIED": 0, "EQUAL": 1, "LESS_THAN": 2, - "LESS_THAN_OR_EQUAL": 3, - "GREATER_THAN": 4, - "GREATER_THAN_OR_EQUAL": 5 + "GREATER_THAN": 4 } } } @@ -4002,7 +4338,9 @@ "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL": 15, "SEARCH_ADS_360_LINK": 16, "DATA_STREAM": 18, - "ATTRIBUTION_SETTINGS": 20 + "ATTRIBUTION_SETTINGS": 20, + "EXPANDED_DATA_SET": 21, + "CHANNEL_GROUP": 22 } }, "GoogleSignalsState": { @@ -4652,8 +4990,11 @@ "customDimension", "customMetric", "dataRetentionSettings", + "searchAds_360Link", "dataStream", - "attributionSettings" + "attributionSettings", + "expandedDataSet", + "bigqueryLink" ] } }, @@ -4706,6 +5047,10 @@ "type": "DataRetentionSettings", "id": 15 }, + "searchAds_360Link": { + "type": "SearchAds360Link", + "id": 16 + }, "dataStream": { "type": "DataStream", "id": 18 @@ -4713,6 +5058,14 @@ "attributionSettings": { "type": "AttributionSettings", "id": 20 + }, + "expandedDataSet": { + "type": "ExpandedDataSet", + "id": 21 + }, + "bigqueryLink": { + "type": "BigQueryLink", + "id": 23 } } } @@ -4829,6 +5182,57 @@ } } }, + "SearchAds360Link": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/SearchAds360Link", + "(google.api.resource).pattern": "properties/{property}/searchAds360Links/{search_ads_360_link}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "advertiserId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "campaignDataSharingEnabled": { + "type": "google.protobuf.BoolValue", + "id": 3, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "costDataSharingEnabled": { + "type": "google.protobuf.BoolValue", + "id": 4, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "advertiserDisplayName": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "adsPersonalizationEnabled": { + "type": "google.protobuf.BoolValue", + "id": 6 + }, + "siteStatsSharingEnabled": { + "type": "google.protobuf.BoolValue", + "id": 7 + } + } + }, "LinkProposalStatusDetails": { "fields": { "linkProposalInitiatingProduct": { @@ -5169,6 +5573,232 @@ } } } + }, + "BigQueryLink": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/BigQueryLink", + "(google.api.resource).pattern": "properties/{property}/bigQueryLinks/{bigquery_link}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "project": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "dailyExportEnabled": { + "type": "bool", + "id": 4 + }, + "streamingExportEnabled": { + "type": "bool", + "id": 5 + }, + "includeAdvertisingId": { + "type": "bool", + "id": 6 + }, + "exportStreams": { + "rule": "repeated", + "type": "string", + "id": 7 + }, + "excludedEvents": { + "rule": "repeated", + "type": "string", + "id": 8 + } + } + }, + "ExpandedDataSetFilter": { + "oneofs": { + "oneFilter": { + "oneof": [ + "stringFilter", + "inListFilter" + ] + } + }, + "fields": { + "stringFilter": { + "type": "StringFilter", + "id": 2 + }, + "inListFilter": { + "type": "InListFilter", + "id": 3 + }, + "fieldName": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "StringFilter": { + "fields": { + "matchType": { + "type": "MatchType", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "value": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "caseSensitive": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "MatchType": { + "values": { + "MATCH_TYPE_UNSPECIFIED": 0, + "EXACT": 1, + "CONTAINS": 2 + } + } + } + }, + "InListFilter": { + "fields": { + "values": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "caseSensitive": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + } + } + }, + "ExpandedDataSetFilterExpression": { + "oneofs": { + "expr": { + "oneof": [ + "andGroup", + "notExpression", + "filter" + ] + } + }, + "fields": { + "andGroup": { + "type": "ExpandedDataSetFilterExpressionList", + "id": 1 + }, + "notExpression": { + "type": "ExpandedDataSetFilterExpression", + "id": 2 + }, + "filter": { + "type": "ExpandedDataSetFilter", + "id": 3 + } + } + }, + "ExpandedDataSetFilterExpressionList": { + "fields": { + "filterExpressions": { + "rule": "repeated", + "type": "ExpandedDataSetFilterExpression", + "id": 1 + } + } + }, + "ExpandedDataSet": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/ExpandedDataSet", + "(google.api.resource).pattern": "properties/{property}/expandedDataSets/{expanded_data_set}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "description": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "dimensionNames": { + "rule": "repeated", + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "metricNames": { + "rule": "repeated", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "dimensionFilterExpression": { + "type": "ExpandedDataSetFilterExpression", + "id": 6, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "dataCollectionStartTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } } } }, diff --git a/packages/google-analytics-admin/samples/README.md b/packages/google-analytics-admin/samples/README.md index 40867b46a973..65afab423911 100644 --- a/packages/google-analytics-admin/samples/README.md +++ b/packages/google-analytics-admin/samples/README.md @@ -34,6 +34,7 @@ * [Analytics_admin_service.create_google_ads_link](#analytics_admin_service.create_google_ads_link) * [Analytics_admin_service.create_measurement_protocol_secret](#analytics_admin_service.create_measurement_protocol_secret) * [Analytics_admin_service.create_property](#analytics_admin_service.create_property) + * [Analytics_admin_service.create_search_ads360_link](#analytics_admin_service.create_search_ads360_link) * [Analytics_admin_service.create_user_link](#analytics_admin_service.create_user_link) * [Analytics_admin_service.create_web_data_stream](#analytics_admin_service.create_web_data_stream) * [Analytics_admin_service.delete_account](#analytics_admin_service.delete_account) @@ -47,12 +48,15 @@ * [Analytics_admin_service.delete_ios_app_data_stream](#analytics_admin_service.delete_ios_app_data_stream) * [Analytics_admin_service.delete_measurement_protocol_secret](#analytics_admin_service.delete_measurement_protocol_secret) * [Analytics_admin_service.delete_property](#analytics_admin_service.delete_property) + * [Analytics_admin_service.delete_search_ads360_link](#analytics_admin_service.delete_search_ads360_link) * [Analytics_admin_service.delete_user_link](#analytics_admin_service.delete_user_link) * [Analytics_admin_service.delete_web_data_stream](#analytics_admin_service.delete_web_data_stream) + * [Analytics_admin_service.fetch_automated_ga4_configuration_opt_out](#analytics_admin_service.fetch_automated_ga4_configuration_opt_out) * [Analytics_admin_service.get_account](#analytics_admin_service.get_account) * [Analytics_admin_service.get_android_app_data_stream](#analytics_admin_service.get_android_app_data_stream) * [Analytics_admin_service.get_attribution_settings](#analytics_admin_service.get_attribution_settings) * [Analytics_admin_service.get_audience](#analytics_admin_service.get_audience) + * [Analytics_admin_service.get_big_query_link](#analytics_admin_service.get_big_query_link) * [Analytics_admin_service.get_conversion_event](#analytics_admin_service.get_conversion_event) * [Analytics_admin_service.get_custom_dimension](#analytics_admin_service.get_custom_dimension) * [Analytics_admin_service.get_custom_metric](#analytics_admin_service.get_custom_metric) @@ -67,12 +71,14 @@ * [Analytics_admin_service.get_ios_app_data_stream](#analytics_admin_service.get_ios_app_data_stream) * [Analytics_admin_service.get_measurement_protocol_secret](#analytics_admin_service.get_measurement_protocol_secret) * [Analytics_admin_service.get_property](#analytics_admin_service.get_property) + * [Analytics_admin_service.get_search_ads360_link](#analytics_admin_service.get_search_ads360_link) * [Analytics_admin_service.get_user_link](#analytics_admin_service.get_user_link) * [Analytics_admin_service.get_web_data_stream](#analytics_admin_service.get_web_data_stream) * [Analytics_admin_service.list_account_summaries](#analytics_admin_service.list_account_summaries) * [Analytics_admin_service.list_accounts](#analytics_admin_service.list_accounts) * [Analytics_admin_service.list_android_app_data_streams](#analytics_admin_service.list_android_app_data_streams) * [Analytics_admin_service.list_audiences](#analytics_admin_service.list_audiences) + * [Analytics_admin_service.list_big_query_links](#analytics_admin_service.list_big_query_links) * [Analytics_admin_service.list_conversion_events](#analytics_admin_service.list_conversion_events) * [Analytics_admin_service.list_custom_dimensions](#analytics_admin_service.list_custom_dimensions) * [Analytics_admin_service.list_custom_metrics](#analytics_admin_service.list_custom_metrics) @@ -84,11 +90,13 @@ * [Analytics_admin_service.list_ios_app_data_streams](#analytics_admin_service.list_ios_app_data_streams) * [Analytics_admin_service.list_measurement_protocol_secrets](#analytics_admin_service.list_measurement_protocol_secrets) * [Analytics_admin_service.list_properties](#analytics_admin_service.list_properties) + * [Analytics_admin_service.list_search_ads360_links](#analytics_admin_service.list_search_ads360_links) * [Analytics_admin_service.list_user_links](#analytics_admin_service.list_user_links) * [Analytics_admin_service.list_web_data_streams](#analytics_admin_service.list_web_data_streams) * [Analytics_admin_service.provision_account_ticket](#analytics_admin_service.provision_account_ticket) * [Analytics_admin_service.run_access_report](#analytics_admin_service.run_access_report) * [Analytics_admin_service.search_change_history_events](#analytics_admin_service.search_change_history_events) + * [Analytics_admin_service.set_automated_ga4_configuration_opt_out](#analytics_admin_service.set_automated_ga4_configuration_opt_out) * [Analytics_admin_service.update_account](#analytics_admin_service.update_account) * [Analytics_admin_service.update_android_app_data_stream](#analytics_admin_service.update_android_app_data_stream) * [Analytics_admin_service.update_attribution_settings](#analytics_admin_service.update_attribution_settings) @@ -104,6 +112,7 @@ * [Analytics_admin_service.update_ios_app_data_stream](#analytics_admin_service.update_ios_app_data_stream) * [Analytics_admin_service.update_measurement_protocol_secret](#analytics_admin_service.update_measurement_protocol_secret) * [Analytics_admin_service.update_property](#analytics_admin_service.update_property) + * [Analytics_admin_service.update_search_ads360_link](#analytics_admin_service.update_search_ads360_link) * [Analytics_admin_service.update_user_link](#analytics_admin_service.update_user_link) * [Analytics_admin_service.update_web_data_stream](#analytics_admin_service.update_web_data_stream) * [Analytics_admin_service.acknowledge_user_data_collection](#analytics_admin_service.acknowledge_user_data_collection) @@ -545,6 +554,23 @@ __Usage:__ +### Analytics_admin_service.create_search_ads360_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js` + + +----- + + + + ### Analytics_admin_service.create_user_link View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js). @@ -766,6 +792,23 @@ __Usage:__ +### Analytics_admin_service.delete_search_ads360_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js` + + +----- + + + + ### Analytics_admin_service.delete_user_link View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js). @@ -800,6 +843,23 @@ __Usage:__ +### Analytics_admin_service.fetch_automated_ga4_configuration_opt_out + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js` + + +----- + + + + ### Analytics_admin_service.get_account View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js). @@ -868,6 +928,23 @@ __Usage:__ +### Analytics_admin_service.get_big_query_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js` + + +----- + + + + ### Analytics_admin_service.get_conversion_event View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js). @@ -1106,6 +1183,23 @@ __Usage:__ +### Analytics_admin_service.get_search_ads360_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js` + + +----- + + + + ### Analytics_admin_service.get_user_link View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js). @@ -1208,6 +1302,23 @@ __Usage:__ +### Analytics_admin_service.list_big_query_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js` + + +----- + + + + ### Analytics_admin_service.list_conversion_events View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js). @@ -1395,6 +1506,23 @@ __Usage:__ +### Analytics_admin_service.list_search_ads360_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js` + + +----- + + + + ### Analytics_admin_service.list_user_links View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js). @@ -1480,6 +1608,23 @@ __Usage:__ +### Analytics_admin_service.set_automated_ga4_configuration_opt_out + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js` + + +----- + + + + ### Analytics_admin_service.update_account View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js). @@ -1735,6 +1880,23 @@ __Usage:__ +### Analytics_admin_service.update_search_ads360_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js` + + +----- + + + + ### Analytics_admin_service.update_user_link View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js). diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js index 0083a1ff6956..98083278d133 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js @@ -33,8 +33,8 @@ function main(property, acknowledgement) { */ // const property = 'abc123' /** - * Required. An acknowledgement that the caller of this method understands the terms - * of user data collection. + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. * This field must contain the exact value: * "I acknowledge that I have the necessary privacy disclosures and rights * from my end users for the collection and processing of their data, diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js index 55e2c40cb929..060696acf81c 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js @@ -29,16 +29,16 @@ function main(parent, requests) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The account or property that all user links in the request are for. - * This field is required. The parent field in the CreateUserLinkRequest + * Required. The account or property that all user links in the request are + * for. This field is required. The parent field in the CreateUserLinkRequest * messages must either be empty or match this field. * Example format: accounts/1234 */ // const parent = 'abc123' /** - * Optional. If set, then email the new users notifying them that they've been granted - * permissions to the resource. Regardless of whether this is set or not, - * notify_new_user field inside each individual request is ignored. + * Optional. If set, then email the new users notifying them that they've been + * granted permissions to the resource. Regardless of whether this is set or + * not, notify_new_user field inside each individual request is ignored. */ // const notifyNewUsers = true /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js index df93e215151d..f91a5a900082 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js @@ -33,8 +33,8 @@ function main(conversionEvent, parent) { */ // const conversionEvent = {} /** - * Required. The resource name of the parent property where this conversion event will - * be created. Format: properties/123 + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 */ // const parent = 'abc123' diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js new file mode 100644 index 000000000000..59a71dff1612 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js @@ -0,0 +1,66 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, searchAds_360Link) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The SearchAds360Link to create. + */ + // const searchAds_360Link = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateSearchAds360Link() { + // Construct request + const request = { + parent, + searchAds_360Link, + }; + + // Run request + const response = await adminClient.createSearchAds360Link(request); + console.log(response); + } + + callCreateSearchAds360Link(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js index 87fd3dc1aff2..1aa08159cc2b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js @@ -33,8 +33,8 @@ function main(parent, userLink) { */ // const parent = 'abc123' /** - * Optional. If set, then email the new user notifying them that they've been granted - * permissions to the resource. + * Optional. If set, then email the new user notifying them that they've been + * granted permissions to the resource. */ // const notifyNewUser = true /** diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js new file mode 100644 index 000000000000..35605a183269 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js @@ -0,0 +1,62 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the SearchAds360Link to delete. + * Example format: properties/1234/SearchAds360Links/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteSearchAds360Link() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteSearchAds360Link(request); + console.log(response); + } + + callDeleteSearchAds360Link(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js new file mode 100644 index 000000000000..60a7bff718c3 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js @@ -0,0 +1,64 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(property) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchAutomatedGa4ConfigurationOptOut_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The UA property to get the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + */ + // const property = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callFetchAutomatedGa4ConfigurationOptOut() { + // Construct request + const request = { + property, + }; + + // Run request + const response = await adminClient.fetchAutomatedGa4ConfigurationOptOut(request); + console.log(response); + } + + callFetchAutomatedGa4ConfigurationOptOut(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchAutomatedGa4ConfigurationOptOut_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js new file mode 100644 index 000000000000..5564736ccf6d --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the BigQuery link to lookup. + * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} + * Example: properties/123/bigQueryLinks/456 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetBigQueryLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getBigQueryLink(request); + console.log(response); + } + + callGetBigQueryLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js new file mode 100644 index 000000000000..289b4db508b3 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js @@ -0,0 +1,62 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the SearchAds360Link to get. + * Example format: properties/1234/SearchAds360Link/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetSearchAds360Link() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getSearchAds360Link(request); + console.log(response); + } + + callGetSearchAds360Link(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js new file mode 100644 index 000000000000..54814082c7aa --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js @@ -0,0 +1,79 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListBigQueryLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listBigQueryLinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListBigQueryLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js index 7d5325cdcf86..bb69c4e2ab4e 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js @@ -43,7 +43,7 @@ function main(parent) { /** * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `ListFirebaseLinks` must * match the call that provided the page token. */ // const pageToken = 'abc123' diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js new file mode 100644 index 000000000000..23d2973dc51c --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js @@ -0,0 +1,77 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListSearchAds360Links() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listSearchAds360LinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListSearchAds360Links(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js index 2bd5f88565f4..0e538c86e34b 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js @@ -29,7 +29,8 @@ function main(account) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The account resource for which to return change history resources. + * Required. The account resource for which to return change history + * resources. */ // const account = 'abc123' /** @@ -38,17 +39,18 @@ function main(account) { */ // const property = 'abc123' /** - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. */ // const resourceType = 1234 /** - * Optional. If set, only return changes that match one or more of these types of - * actions. + * Optional. If set, only return changes that match one or more of these types + * of actions. */ // const action = 1234 /** - * Optional. If set, only return changes if they are made by a user in this list. + * Optional. If set, only return changes if they are made by a user in this + * list. */ // const actorEmail = 'abc123' /** @@ -67,10 +69,11 @@ function main(account) { */ // const pageSize = 1234 /** - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. */ // const pageToken = 'abc123' diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js new file mode 100644 index 000000000000..273015d71548 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js @@ -0,0 +1,68 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(property) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_SetAutomatedGa4ConfigurationOptOut_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The UA property to set the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + */ + // const property = 'abc123' + /** + * The status to set. + */ + // const optOut = true + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callSetAutomatedGa4ConfigurationOptOut() { + // Construct request + const request = { + property, + }; + + // Run request + const response = await adminClient.setAutomatedGa4ConfigurationOptOut(request); + console.log(response); + } + + callSetAutomatedGa4ConfigurationOptOut(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SetAutomatedGa4ConfigurationOptOut_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js index 8ffdd1668297..857edcebdb03 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js @@ -34,9 +34,10 @@ function main(account, updateMask) { */ // const account = {} /** - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js index c091c0769670..45c242e4b9fc 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js @@ -34,9 +34,10 @@ function main(attributionSettings, updateMask) { */ // const attributionSettings = {} /** - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js index 7c0246a20f5d..3022808b717f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js @@ -34,9 +34,10 @@ function main(audience, updateMask) { */ // const audience = {} /** - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js index e3a3d2e5901c..a3db5b174dda 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js @@ -33,9 +33,9 @@ function main(updateMask) { */ // const customDimension = {} /** - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js index 78262b948c30..b67e5c636551 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js @@ -33,9 +33,9 @@ function main(updateMask) { */ // const customMetric = {} /** - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js index e13ac8fe3841..e1cbc71aa941 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js @@ -34,9 +34,10 @@ function main(dataRetentionSettings, updateMask) { */ // const dataRetentionSettings = {} /** - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js index 43d6c45e8222..a5a31d7fd756 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js @@ -33,9 +33,9 @@ function main(updateMask) { */ // const dataStream = {} /** - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js index f15e594fa115..57aa18ab7e22 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js @@ -33,9 +33,9 @@ function main(updateMask) { */ // const displayVideo_360AdvertiserLink = {} /** - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js index 8df25532b7d5..a72639f1bdc4 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js @@ -33,9 +33,10 @@ function main(updateMask) { */ // const googleAdsLink = {} /** - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js index 05ef1c226965..b2d449e33d6d 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js @@ -34,9 +34,10 @@ function main(googleSignalsSettings, updateMask) { */ // const googleSignalsSettings = {} /** - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js index 4ee8221a80b3..9b5ca7d5f5ea 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js @@ -35,9 +35,10 @@ function main(property, updateMask) { */ // const property = {} /** - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. */ // const updateMask = {} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js new file mode 100644 index 000000000000..b0d81ed51039 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js @@ -0,0 +1,67 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The SearchAds360Link to update + */ + // const searchAds_360Link = {} + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateSearchAds360Link() { + // Construct request + const request = { + updateMask, + }; + + // Run request + const response = await adminClient.updateSearchAds360Link(request); + console.log(response); + } + + callUpdateSearchAds360Link(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index b92d3a46827a..4ec6bc80be0f 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -150,7 +150,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 62, "type": "FULL" } ], @@ -407,7 +407,7 @@ "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_async", "title": "AnalyticsAdminService deleteProperty Sample", "origin": "API_DEFINITION", - "description": " Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not an GA4 Property.", + "description": " Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", "canonical": true, "file": "analytics_admin_service.delete_property.js", "language": "JAVASCRIPT", @@ -454,7 +454,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 63, "type": "FULL" } ], @@ -1158,7 +1158,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 60, "type": "FULL" } ], @@ -1590,7 +1590,7 @@ "segments": [ { "start": 25, - "end": 96, + "end": 99, "type": "FULL" } ], @@ -1702,7 +1702,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 62, "type": "FULL" } ], @@ -2858,7 +2858,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 62, "type": "FULL" } ], @@ -3111,7 +3111,7 @@ "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_async", "title": "AnalyticsAdminService getAudience Sample", "origin": "API_DEFINITION", - "description": " Lookup for a single Audience. Audiences created before 2020 may not be supported.", + "description": " Lookup for a single Audience. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.", "canonical": true, "file": "analytics_admin_service.get_audience.js", "language": "JAVASCRIPT", @@ -3151,7 +3151,7 @@ "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async", "title": "AnalyticsAdminService listAudiences Sample", "origin": "API_DEFINITION", - "description": " Lists Audiences on a property. Audiences created before 2020 may not be supported.", + "description": " Lists Audiences on a property. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.", "canonical": true, "file": "analytics_admin_service.list_audiences.js", "language": "JAVASCRIPT", @@ -3250,7 +3250,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 62, "type": "FULL" } ], @@ -3323,6 +3323,222 @@ } } }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_async", + "title": "AnalyticsAdminService getSearchAds360Link Sample", + "origin": "API_DEFINITION", + "description": " Look up a single SearchAds360Link", + "canonical": true, + "file": "analytics_admin_service.get_search_ads360_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetSearchAds360Link", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSearchAds360Link", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.SearchAds360Link", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetSearchAds360Link", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSearchAds360Link", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_async", + "title": "AnalyticsAdminService listSearchAds360Links Sample", + "origin": "API_DEFINITION", + "description": " Lists all SearchAds360Links on a property.", + "canonical": true, + "file": "analytics_admin_service.list_search_ads360_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListSearchAds360Links", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSearchAds360Links", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListSearchAds360LinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListSearchAds360Links", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSearchAds360Links", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_async", + "title": "AnalyticsAdminService createSearchAds360Link Sample", + "origin": "API_DEFINITION", + "description": " Creates a SearchAds360Link.", + "canonical": true, + "file": "analytics_admin_service.create_search_ads360_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateSearchAds360Link", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSearchAds360Link", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "search_ads_360_link", + "type": ".google.analytics.admin.v1alpha.SearchAds360Link" + } + ], + "resultType": ".google.analytics.admin.v1alpha.SearchAds360Link", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateSearchAds360Link", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSearchAds360Link", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_async", + "title": "AnalyticsAdminService deleteSearchAds360Link Sample", + "origin": "API_DEFINITION", + "description": " Deletes a SearchAds360Link on a property.", + "canonical": true, + "file": "analytics_admin_service.delete_search_ads360_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteSearchAds360Link", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSearchAds360Link", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteSearchAds360Link", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSearchAds360Link", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_async", + "title": "AnalyticsAdminService updateSearchAds360Link Sample", + "origin": "API_DEFINITION", + "description": " Updates a SearchAds360Link on a property.", + "canonical": true, + "file": "analytics_admin_service.update_search_ads360_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateSearchAds360Link", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSearchAds360Link", + "async": true, + "parameters": [ + { + "name": "search_ads_360_link", + "type": ".google.analytics.admin.v1alpha.SearchAds360Link" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.SearchAds360Link", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateSearchAds360Link", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSearchAds360Link", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, { "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_async", "title": "AnalyticsAdminService getAttributionSettings Sample", @@ -3374,7 +3590,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 62, "type": "FULL" } ], @@ -3486,6 +3702,178 @@ } } } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SetAutomatedGa4ConfigurationOptOut_async", + "title": "AnalyticsAdminService setAutomatedGa4ConfigurationOptOut Sample", + "origin": "API_DEFINITION", + "description": " Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", + "canonical": true, + "file": "analytics_admin_service.set_automated_ga4_configuration_opt_out.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetAutomatedGa4ConfigurationOptOut", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SetAutomatedGa4ConfigurationOptOut", + "async": true, + "parameters": [ + { + "name": "property", + "type": "TYPE_STRING" + }, + { + "name": "opt_out", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "SetAutomatedGa4ConfigurationOptOut", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SetAutomatedGa4ConfigurationOptOut", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchAutomatedGa4ConfigurationOptOut_async", + "title": "AnalyticsAdminService fetchAutomatedGa4ConfigurationOptOut Sample", + "origin": "API_DEFINITION", + "description": " Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", + "canonical": true, + "file": "analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FetchAutomatedGa4ConfigurationOptOut", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.FetchAutomatedGa4ConfigurationOptOut", + "async": true, + "parameters": [ + { + "name": "property", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "FetchAutomatedGa4ConfigurationOptOut", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.FetchAutomatedGa4ConfigurationOptOut", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_async", + "title": "AnalyticsAdminService getBigQueryLink Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single BigQuery Link.", + "canonical": true, + "file": "analytics_admin_service.get_big_query_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetBigQueryLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetBigQueryLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.BigQueryLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetBigQueryLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetBigQueryLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_async", + "title": "AnalyticsAdminService listBigQueryLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists BigQuery Links on a property.", + "canonical": true, + "file": "analytics_admin_service.list_big_query_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 71, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListBigQueryLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListBigQueryLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListBigQueryLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListBigQueryLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListBigQueryLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } } ] } \ No newline at end of file diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 15b12f755099..83be757934c6 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -194,6 +194,9 @@ export class AnalyticsAdminServiceClient { audiencePathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/audiences/{audience}' ), + bigQueryLinkPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/bigQueryLinks/{bigquery_link}' + ), conversionEventPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/conversionEvents/{conversion_event}' ), @@ -220,6 +223,9 @@ export class AnalyticsAdminServiceClient { new this._gaxModule.PathTemplate( 'properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}' ), + expandedDataSetPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/expandedDataSets/{expanded_data_set}' + ), firebaseLinkPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/firebaseLinks/{firebase_link}' ), @@ -241,6 +247,9 @@ export class AnalyticsAdminServiceClient { propertyUserLinkPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/userLinks/{user_link}' ), + searchAds360LinkPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/searchAds360Links/{search_ads_360_link}' + ), }; // Some of the methods on this service return "paged" results, @@ -328,6 +337,16 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'audiences' ), + listSearchAds360Links: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'searchAds_360Links' + ), + listBigQueryLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'bigqueryLinks' + ), }; // Put together the default options sent with requests. @@ -457,9 +476,18 @@ export class AnalyticsAdminServiceClient { 'createAudience', 'updateAudience', 'archiveAudience', + 'getSearchAds360Link', + 'listSearchAds360Links', + 'createSearchAds360Link', + 'deleteSearchAds360Link', + 'updateSearchAds360Link', 'getAttributionSettings', 'updateAttributionSettings', 'runAccessReport', + 'setAutomatedGa4ConfigurationOptOut', + 'fetchAutomatedGa4ConfigurationOptOut', + 'getBigQueryLink', + 'listBigQueryLinks', ]; for (const methodName of analyticsAdminServiceStubMethods) { const callPromise = this.analyticsAdminServiceStub.then( @@ -753,9 +781,10 @@ export class AnalyticsAdminServiceClient { * Required. The account to update. * The account's `name` field is used to identify the account. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1132,7 +1161,7 @@ export class AnalyticsAdminServiceClient { * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * - * Returns an error if the target is not found, or is not an GA4 Property. + * Returns an error if the target is not found, or is not a GA4 Property. * * @param {Object} request * The request object that will be sent. @@ -1234,9 +1263,10 @@ export class AnalyticsAdminServiceClient { * The property's `name` field is used to identify the property to be * updated. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1528,8 +1558,8 @@ export class AnalyticsAdminServiceClient { * @param {string} request.parent * Required. Example format: accounts/1234 * @param {boolean} [request.notifyNewUser] - * Optional. If set, then email the new user notifying them that they've been granted - * permissions to the resource. + * Optional. If set, then email the new user notifying them that they've been + * granted permissions to the resource. * @param {google.analytics.admin.v1alpha.UserLink} request.userLink * Required. The user link to create. * @param {object} [options] @@ -1625,14 +1655,14 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The account or property that all user links in the request are for. - * This field is required. The parent field in the CreateUserLinkRequest + * Required. The account or property that all user links in the request are + * for. This field is required. The parent field in the CreateUserLinkRequest * messages must either be empty or match this field. * Example format: accounts/1234 * @param {boolean} [request.notifyNewUsers] - * Optional. If set, then email the new users notifying them that they've been granted - * permissions to the resource. Regardless of whether this is set or not, - * notify_new_user field inside each individual request is ignored. + * Optional. If set, then email the new users notifying them that they've been + * granted permissions to the resource. Regardless of whether this is set or + * not, notify_new_user field inside each individual request is ignored. * @param {number[]} request.requests * Required. The requests specifying the user links to create. * A maximum of 1000 user links can be created in a batch. @@ -2522,9 +2552,10 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink * The GoogleAdsLink to update * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3241,8 +3272,8 @@ export class AnalyticsAdminServiceClient { * @param {string} request.property * Required. The property for which to acknowledge user data collection. * @param {string} request.acknowledgement - * Required. An acknowledgement that the caller of this method understands the terms - * of user data collection. + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. * * This field must contain the exact value: * "I acknowledge that I have the necessary privacy disclosures and rights @@ -3454,9 +3485,10 @@ export class AnalyticsAdminServiceClient { * Required. The settings to update. * The `name` field is used to identify the settings to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3560,8 +3592,8 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.ConversionEvent} request.conversionEvent * Required. The conversion event to create. * @param {string} request.parent - * Required. The resource name of the parent property where this conversion event will - * be created. Format: properties/123 + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4169,9 +4201,9 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} request.displayVideo_360AdvertiserLink * The DisplayVideo360AdvertiserLink to update * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4892,9 +4924,9 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.CustomDimension} request.customDimension * The CustomDimension to update * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -5292,9 +5324,9 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.CustomMetric} request.customMetric * The CustomMetric to update * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -5688,9 +5720,10 @@ export class AnalyticsAdminServiceClient { * Required. The settings to update. * The `name` field is used to identify the settings to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -5991,9 +6024,9 @@ export class AnalyticsAdminServiceClient { * @param {google.analytics.admin.v1alpha.DataStream} request.dataStream * The DataStream to update * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match - * all fields. + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -6179,6 +6212,7 @@ export class AnalyticsAdminServiceClient { /** * Lookup for a single Audience. * Audiences created before 2020 may not be supported. + * Default audiences will not show filter definitions. * * @param {Object} request * The request object that will be sent. @@ -6371,9 +6405,10 @@ export class AnalyticsAdminServiceClient { * Required. The audience to update. * The audience's `name` field is used to identify the audience to be updated. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -6550,80 +6585,80 @@ export class AnalyticsAdminServiceClient { return this.innerApiCalls.archiveAudience(request, options, callback); } /** - * Lookup for a AttributionSettings singleton. + * Look up a single SearchAds360Link * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings + * Required. The name of the SearchAds360Link to get. + * Example format: properties/1234/SearchAds360Link/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [AttributionSettings]{@link google.analytics.admin.v1alpha.AttributionSettings}. + * The first element of the array is an object representing [SearchAds360Link]{@link google.analytics.admin.v1alpha.SearchAds360Link}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_async + * @example include:samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_async */ - getAttributionSettings( - request?: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + getSearchAds360Link( + request?: protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAttributionSettings, + protos.google.analytics.admin.v1alpha.ISearchAds360Link, ( - | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest | undefined ), {} | undefined ] >; - getAttributionSettings( - request: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + getSearchAds360Link( + request: protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IAttributionSettings, - | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest | null | undefined, {} | null | undefined > ): void; - getAttributionSettings( - request: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + getSearchAds360Link( + request: protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IAttributionSettings, - | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest | null | undefined, {} | null | undefined > ): void; - getAttributionSettings( - request?: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + getSearchAds360Link( + request?: protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IAttributionSettings, - | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IAttributionSettings, - | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAttributionSettings, + protos.google.analytics.admin.v1alpha.ISearchAds360Link, ( - | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | protos.google.analytics.admin.v1alpha.IGetSearchAds360LinkRequest | undefined ), {} | undefined @@ -6645,91 +6680,84 @@ export class AnalyticsAdminServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getAttributionSettings( - request, - options, - callback - ); + return this.innerApiCalls.getSearchAds360Link(request, options, callback); } /** - * Updates attribution settings on a property. + * Creates a SearchAds360Link. * * @param {Object} request * The request object that will be sent. - * @param {google.analytics.admin.v1alpha.AttributionSettings} request.attributionSettings - * Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace - * the entire entity, use one path with the string "*" to match all fields. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {google.analytics.admin.v1alpha.SearchAds360Link} request.searchAds_360Link + * Required. The SearchAds360Link to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [AttributionSettings]{@link google.analytics.admin.v1alpha.AttributionSettings}. + * The first element of the array is an object representing [SearchAds360Link]{@link google.analytics.admin.v1alpha.SearchAds360Link}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_async + * @example include:samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_async */ - updateAttributionSettings( - request?: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + createSearchAds360Link( + request?: protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAttributionSettings, + protos.google.analytics.admin.v1alpha.ISearchAds360Link, ( - | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest | undefined ), {} | undefined ] >; - updateAttributionSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + createSearchAds360Link( + request: protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IAttributionSettings, - | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest | null | undefined, {} | null | undefined > ): void; - updateAttributionSettings( - request: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + createSearchAds360Link( + request: protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IAttributionSettings, - | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest | null | undefined, {} | null | undefined > ): void; - updateAttributionSettings( - request?: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + createSearchAds360Link( + request?: protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IAttributionSettings, - | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IAttributionSettings, - | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAttributionSettings, + protos.google.analytics.admin.v1alpha.ISearchAds360Link, ( - | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | protos.google.analytics.admin.v1alpha.ICreateSearchAds360LinkRequest | undefined ), {} | undefined @@ -6748,155 +6776,92 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'attribution_settings.name': request.attributionSettings!.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.updateAttributionSettings( + return this.innerApiCalls.createSearchAds360Link( request, options, callback ); } /** - * Returns a customized report of data access records. The report provides - * records of each time a user reads Google Analytics reporting data. Access - * records are retained for up to 2 years. - * - * Data Access Reports can be requested for a property. The property must be - * in Google Analytics 360. This method is only available to Administrators. - * - * These data access records include GA4 UI Reporting, GA4 UI Explorations, - * GA4 Data API, and other products like Firebase & Admob that can retrieve - * data from Google Analytics through a linkage. These records don't include - * property configuration changes like adding a stream or changing a - * property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + * Deletes a SearchAds360Link on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.entity - * The Data Access Report is requested for this property. - * For example if "123" is your GA4 property ID, then entity should be - * "properties/123". - * @param {number[]} request.dimensions - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * @param {number[]} request.metrics - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * @param {number[]} request.dateRanges - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * @param {google.analytics.admin.v1alpha.AccessFilterExpression} request.dimensionFilter - * Dimension filters allow you to restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @param {google.analytics.admin.v1alpha.AccessFilterExpression} request.metricFilter - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * @param {number} request.offset - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @param {number} request.limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @param {string} request.timeZone - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * @param {number[]} request.orderBys - * Specifies how rows are ordered in the response. - * @param {boolean} request.returnEntityQuota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). + * @param {string} request.name + * Required. The name of the SearchAds360Link to delete. + * Example format: properties/1234/SearchAds360Links/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [RunAccessReportResponse]{@link google.analytics.admin.v1alpha.RunAccessReportResponse}. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.run_access_report.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_async + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_async */ - runAccessReport( - request?: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + deleteSearchAds360Link( + request?: protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, - protos.google.analytics.admin.v1alpha.IRunAccessReportRequest | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest + | undefined + ), {} | undefined ] >; - runAccessReport( - request: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + deleteSearchAds360Link( + request: protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest, options: CallOptions, callback: Callback< - protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, - | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest | null | undefined, {} | null | undefined > ): void; - runAccessReport( - request: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + deleteSearchAds360Link( + request: protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest, callback: Callback< - protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, - | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest | null | undefined, {} | null | undefined > ): void; - runAccessReport( - request?: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + deleteSearchAds360Link( + request?: protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, - | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, - | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, - protos.google.analytics.admin.v1alpha.IRunAccessReportRequest | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteSearchAds360LinkRequest + | undefined + ), {} | undefined ] > | void { @@ -6913,102 +6878,1077 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - entity: request.entity ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.runAccessReport(request, options, callback); + return this.innerApiCalls.deleteSearchAds360Link( + request, + options, + callback + ); } - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. + * Updates a SearchAds360Link on a property. * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. + * @param {google.analytics.admin.v1alpha.SearchAds360Link} request.searchAds_360Link + * The SearchAds360Link to update + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. + * The first element of the array is an object representing [SearchAds360Link]{@link google.analytics.admin.v1alpha.SearchAds360Link}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_async */ - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + updateSearchAds360Link( + request?: protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + ( + | protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest + | undefined + ), + {} | undefined ] >; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + updateSearchAds360Link( + request: protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback: Callback< + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + updateSearchAds360Link( + request: protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + updateSearchAds360Link( + request?: protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | Callback< + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback?: Callback< + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + | protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ISearchAds360Link, + ( + | protos.google.analytics.admin.v1alpha.IUpdateSearchAds360LinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'search_ads_360_link.name': request.searchAds_360Link!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateSearchAds360Link( + request, + options, + callback + ); + } + /** + * Lookup for a AttributionSettings singleton. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the attribution settings to retrieve. + * Format: properties/{property}/attributionSettings + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AttributionSettings]{@link google.analytics.admin.v1alpha.AttributionSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_async + */ + getAttributionSettings( + request?: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAttributionSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | undefined + ), + {} | undefined + ] + >; + getAttributionSettings( + request: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAttributionSettings( + request: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getAttributionSettings( + request?: protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAttributionSettings, + ( + | protos.google.analytics.admin.v1alpha.IGetAttributionSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getAttributionSettings( + request, + options, + callback + ); + } + /** + * Updates attribution settings on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.AttributionSettings} request.attributionSettings + * Required. The attribution settings to update. + * The `name` field is used to identify the settings to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [AttributionSettings]{@link google.analytics.admin.v1alpha.AttributionSettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_async + */ + updateAttributionSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAttributionSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | undefined + ), + {} | undefined + ] + >; + updateAttributionSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAttributionSettings( + request: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateAttributionSettings( + request?: protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAttributionSettings, + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAttributionSettings, + ( + | protos.google.analytics.admin.v1alpha.IUpdateAttributionSettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'attribution_settings.name': request.attributionSettings!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateAttributionSettings( + request, + options, + callback + ); + } + /** + * Returns a customized report of data access records. The report provides + * records of each time a user reads Google Analytics reporting data. Access + * records are retained for up to 2 years. + * + * Data Access Reports can be requested for a property. The property must be + * in Google Analytics 360. This method is only available to Administrators. + * + * These data access records include GA4 UI Reporting, GA4 UI Explorations, + * GA4 Data API, and other products like Firebase & Admob that can retrieve + * data from Google Analytics through a linkage. These records don't include + * property configuration changes like adding a stream or changing a + * property's time zone. For configuration change history, see + * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.entity + * The Data Access Report is requested for this property. + * For example if "123" is your GA4 property ID, then entity should be + * "properties/123". + * @param {number[]} request.dimensions + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * @param {number[]} request.metrics + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * @param {number[]} request.dateRanges + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * @param {google.analytics.admin.v1alpha.AccessFilterExpression} request.dimensionFilter + * Dimension filters allow you to restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * @param {google.analytics.admin.v1alpha.AccessFilterExpression} request.metricFilter + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * @param {number} request.offset + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @param {number} request.limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @param {string} request.timeZone + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * @param {number[]} request.orderBys + * Specifies how rows are ordered in the response. + * @param {boolean} request.returnEntityQuota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [RunAccessReportResponse]{@link google.analytics.admin.v1alpha.RunAccessReportResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.run_access_report.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_async + */ + runAccessReport( + request?: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + protos.google.analytics.admin.v1alpha.IRunAccessReportRequest | undefined, + {} | undefined + ] + >; + runAccessReport( + request: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + | null + | undefined, + {} | null | undefined + > + ): void; + runAccessReport( + request: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + | null + | undefined, + {} | null | undefined + > + ): void; + runAccessReport( + request?: protos.google.analytics.admin.v1alpha.IRunAccessReportRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + | protos.google.analytics.admin.v1alpha.IRunAccessReportRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IRunAccessReportResponse, + protos.google.analytics.admin.v1alpha.IRunAccessReportRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + entity: request.entity ?? '', + }); + this.initialize(); + return this.innerApiCalls.runAccessReport(request, options, callback); + } + /** + * Sets the opt out status for the automated GA4 setup process for a UA + * property. + * Note: this has no effect on GA4 property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.property + * Required. The UA property to set the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * @param {boolean} request.optOut + * The status to set. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [SetAutomatedGa4ConfigurationOptOutResponse]{@link google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_SetAutomatedGa4ConfigurationOptOut_async + */ + setAutomatedGa4ConfigurationOptOut( + request?: protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse, + ( + | protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest + | undefined + ), + {} | undefined + ] + >; + setAutomatedGa4ConfigurationOptOut( + request: protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse, + | protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setAutomatedGa4ConfigurationOptOut( + request: protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse, + | protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setAutomatedGa4ConfigurationOptOut( + request?: protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse, + | protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse, + | protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse, + ( + | protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.setAutomatedGa4ConfigurationOptOut( + request, + options, + callback + ); + } + /** + * Fetches the opt out status for the automated GA4 setup process for a UA + * property. + * Note: this has no effect on GA4 property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.property + * Required. The UA property to get the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [FetchAutomatedGa4ConfigurationOptOutResponse]{@link google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchAutomatedGa4ConfigurationOptOut_async + */ + fetchAutomatedGa4ConfigurationOptOut( + request?: protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse, + ( + | protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest + | undefined + ), + {} | undefined + ] + >; + fetchAutomatedGa4ConfigurationOptOut( + request: protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse, + | protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest + | null + | undefined, + {} | null | undefined + > + ): void; + fetchAutomatedGa4ConfigurationOptOut( + request: protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse, + | protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest + | null + | undefined, + {} | null | undefined + > + ): void; + fetchAutomatedGa4ConfigurationOptOut( + request?: protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse, + | protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse, + | protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse, + ( + | protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.fetchAutomatedGa4ConfigurationOptOut( + request, + options, + callback + ); + } + /** + * Lookup for a single BigQuery Link. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the BigQuery link to lookup. + * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} + * Example: properties/123/bigQueryLinks/456 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [BigQueryLink]{@link google.analytics.admin.v1alpha.BigQueryLink}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_async + */ + getBigQueryLink( + request?: protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IBigQueryLink, + protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest | undefined, + {} | undefined + ] + >; + getBigQueryLink( + request: protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IBigQueryLink, + | protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getBigQueryLink( + request: protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IBigQueryLink, + | protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getBigQueryLink( + request?: protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IBigQueryLink, + | protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IBigQueryLink, + | protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IBigQueryLink, + protos.google.analytics.admin.v1alpha.IGetBigQueryLinkRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getBigQueryLink(request, options, callback); + } + + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Account]{@link google.analytics.admin.v1alpha.Account}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + >; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listAccounts(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountsStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.createStream( + this.innerApiCalls.listAccounts as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccounts`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_accounts.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async + */ + listAccountsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.asyncIterate( + this.innerApiCalls['listAccounts'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Returns summaries of all accounts accessible by the caller. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + >; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + protos.google.analytics.admin.v1alpha.IAccountSummary > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse ] > | void { request = request || {}; @@ -7023,7 +7963,7 @@ export class AnalyticsAdminServiceClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; this.initialize(); - return this.innerApiCalls.listAccounts(request, options, callback); + return this.innerApiCalls.listAccountSummaries(request, options, callback); } /** @@ -7031,181 +7971,432 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummariesStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccountSummaries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.createStream( + this.innerApiCalls.listAccountSummaries as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccountSummaries`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async + */ + listAccountSummariesAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccountSummaries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.asyncIterate( + this.innerApiCalls['listAccountSummaries'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Returns child Properties under the specified parent Account. + * + * Only "GA4" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize * The maximum number of resources to return. The service may return * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListAccounts` call. + * A page token, received from a previous `ListProperties` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listProperties( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + >; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + listProperties( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listProperties(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Account]{@link google.analytics.admin.v1alpha.Account} on 'data' event. + * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAccountsAsync()` + * We recommend using `listPropertiesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccountsStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + listPropertiesStream( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccounts']; + const defaultCallSettings = this._defaults['listProperties']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccounts.createStream( - this.innerApiCalls.listAccounts as GaxCall, + return this.descriptors.page.listProperties.createStream( + this.innerApiCalls.listProperties as GaxCall, request, callSettings ); } /** - * Equivalent to `listAccounts`, but returns an iterable object. + * Equivalent to `listProperties`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` * @param {number} request.pageSize * The maximum number of resources to return. The service may return * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListAccounts` call. + * A page token, received from a previous `ListProperties` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must + * When paginating, all other parameters provided to `ListProperties` must * match the call that provided the page token. * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Account]{@link google.analytics.admin.v1alpha.Account}. The API will be called under the hood as needed, once per the page, + * [Property]{@link google.analytics.admin.v1alpha.Property}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_accounts.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_properties.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async */ - listAccountsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + listPropertiesAsync( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccounts']; + const defaultCallSettings = this._defaults['listProperties']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccounts.asyncIterate( - this.innerApiCalls['listAccounts'] as GaxCall, + return this.descriptors.page.listProperties.asyncIterate( + this.innerApiCalls['listProperties'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns summaries of all accounts accessible by the caller. + * Lists all user links on an account or property. * * @param {Object} request * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. + * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` + * We recommend using `listUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinks( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse ] >; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + protos.google.analytics.admin.v1alpha.IUserLink > ): void; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + protos.google.analytics.admin.v1alpha.IUserLink > ): void; - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinks( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + protos.google.analytics.admin.v1alpha.IUserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + protos.google.analytics.admin.v1alpha.IUserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse ] > | void { request = request || {}; @@ -7219,208 +8410,208 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); this.initialize(); - return this.innerApiCalls.listAccountSummaries(request, options, callback); + return this.innerApiCalls.listUserLinks(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary} on 'data' event. + * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` + * We recommend using `listUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccountSummariesStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccountSummaries']; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccountSummaries.createStream( - this.innerApiCalls.listAccountSummaries as GaxCall, + return this.descriptors.page.listUserLinks.createStream( + this.innerApiCalls.listUserLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `listAccountSummaries`, but returns an iterable object. + * Equivalent to `listUserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AccountSummary]{@link google.analytics.admin.v1alpha.AccountSummary}. The API will be called under the hood as needed, once per the page, + * [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async */ - listAccountSummariesAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccountSummaries']; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccountSummaries.asyncIterate( - this.innerApiCalls['listAccountSummaries'] as GaxCall, + return this.descriptors.page.listUserLinks.asyncIterate( + this.innerApiCalls['listUserLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns child Properties under the specified parent Account. - * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: + * Lists all user links on an account or property, including implicit ones + * that come from effective permissions granted by groups or organization + * admin roles. * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * If a returned user link does not have direct permissions, they cannot + * be removed from the account or property directly with the DeleteUserLink + * command. They have to be removed from the group/etc that gives them + * permissions, which is currently only usable/discoverable in the GA or GMP + * UIs. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. + * A page token, received from a previous `AuditUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `AuditUserLinks` must * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Property]{@link google.analytics.admin.v1alpha.Property}. + * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` + * We recommend using `auditUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listProperties( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinks( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse ] >; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): void; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): void; - listProperties( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinks( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse ] > | void { request = request || {}; @@ -7434,226 +8625,202 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); this.initialize(); - return this.innerApiCalls.listProperties(request, options, callback); + return this.innerApiCalls.auditUserLinks(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. + * A page token, received from a previous `AuditUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `AuditUserLinks` must * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Property]{@link google.analytics.admin.v1alpha.Property} on 'data' event. + * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` + * We recommend using `auditUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listPropertiesStream( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listProperties']; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['auditUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listProperties.createStream( - this.innerApiCalls.listProperties as GaxCall, + return this.descriptors.page.auditUserLinks.createStream( + this.innerApiCalls.auditUserLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `listProperties`, but returns an iterable object. + * Equivalent to `auditUserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. + * A page token, received from a previous `AuditUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `AuditUserLinks` must * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Property]{@link google.analytics.admin.v1alpha.Property}. The API will be called under the hood as needed, once per the page, + * [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_properties.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async + * @example include:samples/generated/v1alpha/analytics_admin_service.audit_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async */ - listPropertiesAsync( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listProperties']; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['auditUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listProperties.asyncIterate( - this.innerApiCalls['listProperties'] as GaxCall, + return this.descriptors.page.auditUserLinks.asyncIterate( + this.innerApiCalls['auditUserLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists all user links on an account or property. + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListFirebaseLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. + * The first element of the array is Array of [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` + * We recommend using `listFirebaseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listUserLinks( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinks( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse ] >; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): void; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): void; - listUserLinks( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinks( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse ] > | void { request = request || {}; @@ -7672,7 +8839,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listUserLinks(request, options, callback); + return this.innerApiCalls.listFirebaseLinks(request, options, callback); } /** @@ -7680,31 +8847,32 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListFirebaseLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [UserLink]{@link google.analytics.admin.v1alpha.UserLink} on 'data' event. + * An object stream which emits an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` + * We recommend using `listFirebaseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -7715,51 +8883,52 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listUserLinks']; + const defaultCallSettings = this._defaults['listFirebaseLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listUserLinks.createStream( - this.innerApiCalls.listUserLinks as GaxCall, + return this.descriptors.page.listFirebaseLinks.createStream( + this.innerApiCalls.listFirebaseLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `listUserLinks`, but returns an iterable object. + * Equivalent to `listFirebaseLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListFirebaseLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [UserLink]{@link google.analytics.admin.v1alpha.UserLink}. The API will be called under the hood as needed, once per the page, + * [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_user_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async */ - listUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -7768,107 +8937,99 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listUserLinks']; + const defaultCallSettings = this._defaults['listFirebaseLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listUserLinks.asyncIterate( - this.innerApiCalls['listUserLinks'] as GaxCall, + return this.descriptors.page.listFirebaseLinks.asyncIterate( + this.innerApiCalls['listFirebaseLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists all user links on an account or property, including implicit ones - * that come from effective permissions granted by groups or organization - * admin roles. - * - * If a returned user link does not have direct permissions, they cannot - * be removed from the account or property directly with the DeleteUserLink - * command. They have to be removed from the group/etc that gives them - * permissions, which is currently only usable/discoverable in the GA or GMP - * UIs. + * Lists GoogleAdsLinks on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Example format: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListGoogleAdsLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. + * The first element of the array is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listGoogleAdsLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinks( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinks( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse ] >; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): void; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): void; - auditUserLinks( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinks( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IGoogleAdsLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse ] > | void { request = request || {}; @@ -7887,7 +9048,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.auditUserLinks(request, options, callback); + return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); } /** @@ -7895,31 +9056,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Example format: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListGoogleAdsLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink} on 'data' event. + * An object stream which emits an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listGoogleAdsLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -7930,51 +9091,51 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['auditUserLinks']; + const defaultCallSettings = this._defaults['listGoogleAdsLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.auditUserLinks.createStream( - this.innerApiCalls.auditUserLinks as GaxCall, + return this.descriptors.page.listGoogleAdsLinks.createStream( + this.innerApiCalls.listGoogleAdsLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `auditUserLinks`, but returns an iterable object. + * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Example format: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListGoogleAdsLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [AuditUserLink]{@link google.analytics.admin.v1alpha.AuditUserLink}. The API will be called under the hood as needed, once per the page, + * [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.audit_user_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async */ - auditUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -7983,101 +9144,101 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['auditUserLinks']; + const defaultCallSettings = this._defaults['listGoogleAdsLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.auditUserLinks.asyncIterate( - this.innerApiCalls['auditUserLinks'] as GaxCall, + return this.descriptors.page.listGoogleAdsLinks.asyncIterate( + this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. + * Returns child MeasurementProtocolSecrets under the specified parent + * Property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. + * The first element of the array is Array of [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listFirebaseLinksAsync()` + * We recommend using `listMeasurementProtocolSecretsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listFirebaseLinks( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecrets( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IFirebaseLink[], - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse ] >; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): void; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): void; - listFirebaseLinks( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecrets( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): Promise< [ - protos.google.analytics.admin.v1alpha.IFirebaseLink[], - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse ] > | void { request = request || {}; @@ -8096,7 +9257,11 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listFirebaseLinks(request, options, callback); + return this.innerApiCalls.listMeasurementProtocolSecrets( + request, + options, + callback + ); } /** @@ -8104,32 +9269,32 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink} on 'data' event. + * An object stream which emits an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listFirebaseLinksAsync()` + * We recommend using `listMeasurementProtocolSecretsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listFirebaseLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecretsStream( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -8140,52 +9305,53 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listFirebaseLinks']; + const defaultCallSettings = + this._defaults['listMeasurementProtocolSecrets']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listFirebaseLinks.createStream( - this.innerApiCalls.listFirebaseLinks as GaxCall, + return this.descriptors.page.listMeasurementProtocolSecrets.createStream( + this.innerApiCalls.listMeasurementProtocolSecrets as GaxCall, request, callSettings ); } /** - * Equivalent to `listFirebaseLinks`, but returns an iterable object. + * Equivalent to `listMeasurementProtocolSecrets`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [FirebaseLink]{@link google.analytics.admin.v1alpha.FirebaseLink}. The API will be called under the hood as needed, once per the page, + * [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async */ - listFirebaseLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecretsAsync( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -8194,99 +9360,119 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listFirebaseLinks']; + const defaultCallSettings = + this._defaults['listMeasurementProtocolSecrets']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listFirebaseLinks.asyncIterate( - this.innerApiCalls['listFirebaseLinks'] as GaxCall, + return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( + this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists GoogleAdsLinks on a property. + * Searches through all changes to an account or its children given the + * specified set of filters. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. + * @param {string} request.account + * Required. The account resource for which to return change history + * resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types + * of actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this + * list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. + * The first element of the array is Array of [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listGoogleAdsLinksAsync()` + * We recommend using `searchChangeHistoryEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listGoogleAdsLinks( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEvents( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse ] >; - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): void; - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): void; - listGoogleAdsLinks( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEvents( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse ] > | void { request = request || {}; @@ -8302,42 +9488,64 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + account: request.account ?? '', }); this.initialize(); - return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); + return this.innerApiCalls.searchChangeHistoryEvents( + request, + options, + callback + ); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * @param {string} request.account + * Required. The account resource for which to return change history + * resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types + * of actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this + * list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink} on 'data' event. + * An object stream which emits an object representing [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listGoogleAdsLinksAsync()` + * We recommend using `searchChangeHistoryEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listGoogleAdsLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEventsStream( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -8346,156 +9554,174 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + account: request.account ?? '', }); - const defaultCallSettings = this._defaults['listGoogleAdsLinks']; + const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listGoogleAdsLinks.createStream( - this.innerApiCalls.listGoogleAdsLinks as GaxCall, + return this.descriptors.page.searchChangeHistoryEvents.createStream( + this.innerApiCalls.searchChangeHistoryEvents as GaxCall, request, callSettings ); } /** - * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. + * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. + * @param {string} request.account + * Required. The account resource for which to return change history + * resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types + * of actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this + * list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [GoogleAdsLink]{@link google.analytics.admin.v1alpha.GoogleAdsLink}. The API will be called under the hood as needed, once per the page, + * [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async */ - listGoogleAdsLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEventsAsync( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + account: request.account ?? '', }); - const defaultCallSettings = this._defaults['listGoogleAdsLinks']; + const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listGoogleAdsLinks.asyncIterate( - this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, + return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( + this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. + * Returns a list of conversion events in the specified parent property. + * + * Returns an empty list if no conversion events are found. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. + * The first element of the array is Array of [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listMeasurementProtocolSecretsAsync()` + * We recommend using `listConversionEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listMeasurementProtocolSecrets( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEvents( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IConversionEvent[], + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1alpha.IListConversionEventsResponse ] >; - listMeasurementProtocolSecrets( - request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent > ): void; - listMeasurementProtocolSecrets( - request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent > ): void; - listMeasurementProtocolSecrets( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEvents( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent > ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IConversionEvent[], + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1alpha.IListConversionEventsResponse ] > | void { request = request || {}; @@ -8514,11 +9740,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listMeasurementProtocolSecrets( - request, - options, - callback - ); + return this.innerApiCalls.listConversionEvents(request, options, callback); } /** @@ -8526,32 +9748,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret} on 'data' event. + * An object stream which emits an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listMeasurementProtocolSecretsAsync()` + * We recommend using `listConversionEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listMeasurementProtocolSecretsStream( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEventsStream( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -8562,53 +9783,51 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listMeasurementProtocolSecrets']; + const defaultCallSettings = this._defaults['listConversionEvents']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listMeasurementProtocolSecrets.createStream( - this.innerApiCalls.listMeasurementProtocolSecrets as GaxCall, + return this.descriptors.page.listConversionEvents.createStream( + this.innerApiCalls.listConversionEvents as GaxCall, request, callSettings ); } /** - * Equivalent to `listMeasurementProtocolSecrets`, but returns an iterable object. + * Equivalent to `listConversionEvents`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [MeasurementProtocolSecret]{@link google.analytics.admin.v1alpha.MeasurementProtocolSecret}. The API will be called under the hood as needed, once per the page, + * [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async */ - listMeasurementProtocolSecretsAsync( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEventsAsync( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -8617,116 +9836,100 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listMeasurementProtocolSecrets']; + const defaultCallSettings = this._defaults['listConversionEvents']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( - this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, + return this.descriptors.page.listConversionEvents.asyncIterate( + this.innerApiCalls['listConversionEvents'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Searches through all changes to an account or its children given the - * specified set of filters. + * Lists all DisplayVideo360AdvertiserLinks on a property. * * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * @param {string} request.pageToken + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. + * The first element of the array is Array of [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `searchChangeHistoryEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - searchChangeHistoryEvents( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinks( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse ] >; - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinks( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink > ): void; - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinks( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink > ): void; - searchChangeHistoryEvents( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinks( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse ] > | void { request = request || {}; @@ -8742,10 +9945,10 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.searchChangeHistoryEvents( + return this.innerApiCalls.listDisplayVideo360AdvertiserLinks( request, options, callback @@ -8756,47 +9959,33 @@ export class AnalyticsAdminServiceClient { * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * @param {string} request.pageToken + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent} on 'data' event. + * An object stream which emits an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `searchChangeHistoryEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - searchChangeHistoryEventsStream( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -8805,171 +9994,159 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account ?? '', + parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.searchChangeHistoryEvents.createStream( - this.innerApiCalls.searchChangeHistoryEvents as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream( + this.innerApiCalls.listDisplayVideo360AdvertiserLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. + * Equivalent to `listDisplayVideo360AdvertiserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that matches at - * least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `SearchChangeHistoryEvents` must match the call that - * provided the page token. + * @param {string} request.pageToken + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [ChangeHistoryEvent]{@link google.analytics.admin.v1alpha.ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, + * [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async */ - searchChangeHistoryEventsAsync( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account ?? '', + parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( - this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate( + this.innerApiCalls['listDisplayVideo360AdvertiserLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. + * Lists DisplayVideo360AdvertiserLinkProposals on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent property. - * Example: 'properties/123' + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. + * The first element of the array is Array of [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listConversionEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listConversionEvents( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposals( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IConversionEvent[], - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, - protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse ] >; - listConversionEvents( - request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposals( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal > ): void; - listConversionEvents( - request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposals( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal > ): void; - listConversionEvents( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposals( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal > ): Promise< [ - protos.google.analytics.admin.v1alpha.IConversionEvent[], - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, - protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse ] > | void { request = request || {}; @@ -8988,7 +10165,11 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listConversionEvents(request, options, callback); + return this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals( + request, + options, + callback + ); } /** @@ -8996,31 +10177,33 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent property. - * Example: 'properties/123' + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent} on 'data' event. + * An object stream which emits an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listConversionEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listConversionEventsStream( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposalsStream( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -9031,51 +10214,54 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listConversionEvents']; + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinkProposals']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listConversionEvents.createStream( - this.innerApiCalls.listConversionEvents as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream( + this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals as GaxCall, request, callSettings ); } /** - * Equivalent to `listConversionEvents`, but returns an iterable object. + * Equivalent to `listDisplayVideo360AdvertiserLinkProposals`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent property. - * Example: 'properties/123' + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [ConversionEvent]{@link google.analytics.admin.v1alpha.ConversionEvent}. The API will be called under the hood as needed, once per the page, + * [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async */ - listConversionEventsAsync( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposalsAsync( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -9084,17 +10270,20 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listConversionEvents']; + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinkProposals']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listConversionEvents.asyncIterate( - this.innerApiCalls['listConversionEvents'] as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate( + this.innerApiCalls[ + 'listDisplayVideo360AdvertiserLinkProposals' + ] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists all DisplayVideo360AdvertiserLinks on a property. + * Lists CustomDimensions on a property. * * @param {Object} request * The request object that will be sent. @@ -9105,79 +10294,78 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. + * The first element of the array is Array of [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` + * We recommend using `listCustomDimensionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDisplayVideo360AdvertiserLinks( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensions( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.ICustomDimension[], + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse ] >; - listDisplayVideo360AdvertiserLinks( - request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensions( + request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + protos.google.analytics.admin.v1alpha.ICustomDimension > ): void; - listDisplayVideo360AdvertiserLinks( - request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensions( + request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + protos.google.analytics.admin.v1alpha.ICustomDimension > ): void; - listDisplayVideo360AdvertiserLinks( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensions( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + protos.google.analytics.admin.v1alpha.ICustomDimension >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + protos.google.analytics.admin.v1alpha.ICustomDimension > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.ICustomDimension[], + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse ] > | void { request = request || {}; @@ -9196,11 +10384,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDisplayVideo360AdvertiserLinks( - request, - options, - callback - ); + return this.innerApiCalls.listCustomDimensions(request, options, callback); } /** @@ -9214,26 +10398,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} on 'data' event. + * An object stream which emits an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` + * We recommend using `listCustomDimensionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDisplayVideo360AdvertiserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensionsStream( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -9244,19 +10427,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listDisplayVideo360AdvertiserLinks']; + const defaultCallSettings = this._defaults['listCustomDimensions']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream( - this.innerApiCalls.listDisplayVideo360AdvertiserLinks as GaxCall, + return this.descriptors.page.listCustomDimensions.createStream( + this.innerApiCalls.listCustomDimensions as GaxCall, request, callSettings ); } /** - * Equivalent to `listDisplayVideo360AdvertiserLinks`, but returns an iterable object. + * Equivalent to `listCustomDimensions`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -9268,29 +10450,28 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [DisplayVideo360AdvertiserLink]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink}. The API will be called under the hood as needed, once per the page, + * [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async */ - listDisplayVideo360AdvertiserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensionsAsync( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -9299,18 +10480,17 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listDisplayVideo360AdvertiserLinks']; + const defaultCallSettings = this._defaults['listCustomDimensions']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate( - this.innerApiCalls['listDisplayVideo360AdvertiserLinks'] as GaxCall, + return this.descriptors.page.listCustomDimensions.asyncIterate( + this.innerApiCalls['listCustomDimensions'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * Lists CustomMetrics on a property. * * @param {Object} request * The request object that will be sent. @@ -9321,80 +10501,78 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. + * The first element of the array is Array of [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` + * We recommend using `listCustomMetricsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDisplayVideo360AdvertiserLinkProposals( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetrics( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.ICustomMetric[], + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse ] >; - listDisplayVideo360AdvertiserLinkProposals( - request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetrics( + request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + protos.google.analytics.admin.v1alpha.ICustomMetric > ): void; - listDisplayVideo360AdvertiserLinkProposals( - request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetrics( + request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + protos.google.analytics.admin.v1alpha.ICustomMetric > ): void; - listDisplayVideo360AdvertiserLinkProposals( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetrics( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + protos.google.analytics.admin.v1alpha.ICustomMetric >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + protos.google.analytics.admin.v1alpha.ICustomMetric > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.ICustomMetric[], + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse ] > | void { request = request || {}; @@ -9413,11 +10591,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals( - request, - options, - callback - ); + return this.innerApiCalls.listCustomMetrics(request, options, callback); } /** @@ -9431,27 +10605,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} on 'data' event. + * An object stream which emits an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` + * We recommend using `listCustomMetricsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDisplayVideo360AdvertiserLinkProposalsStream( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetricsStream( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -9462,19 +10634,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listDisplayVideo360AdvertiserLinkProposals']; + const defaultCallSettings = this._defaults['listCustomMetrics']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream( - this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals as GaxCall, + return this.descriptors.page.listCustomMetrics.createStream( + this.innerApiCalls.listCustomMetrics as GaxCall, request, callSettings ); } /** - * Equivalent to `listDisplayVideo360AdvertiserLinkProposals`, but returns an iterable object. + * Equivalent to `listCustomMetrics`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -9486,30 +10657,28 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [DisplayVideo360AdvertiserLinkProposal]{@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal}. The API will be called under the hood as needed, once per the page, + * [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async */ - listDisplayVideo360AdvertiserLinkProposalsAsync( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetricsAsync( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -9518,20 +10687,17 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listDisplayVideo360AdvertiserLinkProposals']; + const defaultCallSettings = this._defaults['listCustomMetrics']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate( - this.innerApiCalls[ - 'listDisplayVideo360AdvertiserLinkProposals' - ] as GaxCall, + return this.descriptors.page.listCustomMetrics.asyncIterate( + this.innerApiCalls['listCustomMetrics'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists CustomDimensions on a property. + * Lists DataStreams on a property. * * @param {Object} request * The request object that will be sent. @@ -9542,78 +10708,78 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomDimensions` call. + * A page token, received from a previous `ListDataStreams` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. + * The first element of the array is Array of [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listCustomDimensionsAsync()` + * We recommend using `listDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomDimensions( - request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension[], - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, - protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IDataStream[], + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListDataStreamsResponse ] >; - listCustomDimensions( - request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreams( + request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomDimension + protos.google.analytics.admin.v1alpha.IDataStream > ): void; - listCustomDimensions( - request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreams( + request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomDimension + protos.google.analytics.admin.v1alpha.IDataStream > ): void; - listCustomDimensions( - request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomDimension + protos.google.analytics.admin.v1alpha.IDataStream >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomDimension + protos.google.analytics.admin.v1alpha.IDataStream > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension[], - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, - protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IDataStream[], + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListDataStreamsResponse ] > | void { request = request || {}; @@ -9632,7 +10798,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listCustomDimensions(request, options, callback); + return this.innerApiCalls.listDataStreams(request, options, callback); } /** @@ -9646,25 +10812,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomDimensions` call. + * A page token, received from a previous `ListDataStreams` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension} on 'data' event. + * An object stream which emits an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listCustomDimensionsAsync()` + * We recommend using `listDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomDimensionsStream( - request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -9675,18 +10841,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomDimensions']; + const defaultCallSettings = this._defaults['listDataStreams']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomDimensions.createStream( - this.innerApiCalls.listCustomDimensions as GaxCall, + return this.descriptors.page.listDataStreams.createStream( + this.innerApiCalls.listDataStreams as GaxCall, request, callSettings ); } /** - * Equivalent to `listCustomDimensions`, but returns an iterable object. + * Equivalent to `listDataStreams`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -9698,28 +10864,28 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomDimensions` call. + * A page token, received from a previous `ListDataStreams` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [CustomDimension]{@link google.analytics.admin.v1alpha.CustomDimension}. The API will be called under the hood as needed, once per the page, + * [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_data_streams.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async */ - listCustomDimensionsAsync( - request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -9728,17 +10894,19 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomDimensions']; + const defaultCallSettings = this._defaults['listDataStreams']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomDimensions.asyncIterate( - this.innerApiCalls['listCustomDimensions'] as GaxCall, + return this.descriptors.page.listDataStreams.asyncIterate( + this.innerApiCalls['listDataStreams'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists CustomMetrics on a property. + * Lists Audiences on a property. + * Audiences created before 2020 may not be supported. + * Default audiences will not show filter definitions. * * @param {Object} request * The request object that will be sent. @@ -9749,78 +10917,78 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomMetrics` must + * When paginating, all other parameters provided to `ListAudiences` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. + * The first element of the array is Array of [Audience]{@link google.analytics.admin.v1alpha.Audience}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listCustomMetricsAsync()` + * We recommend using `listAudiencesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomMetrics( - request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiences( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric[], - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, - protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IAudience[], + protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, + protos.google.analytics.admin.v1alpha.IListAudiencesResponse ] >; - listCustomMetrics( - request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiences( + request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomMetric + protos.google.analytics.admin.v1alpha.IAudience > ): void; - listCustomMetrics( - request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiences( + request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomMetric + protos.google.analytics.admin.v1alpha.IAudience > ): void; - listCustomMetrics( - request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiences( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomMetric + protos.google.analytics.admin.v1alpha.IAudience >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomMetric + protos.google.analytics.admin.v1alpha.IAudience > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric[], - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, - protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IAudience[], + protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, + protos.google.analytics.admin.v1alpha.IListAudiencesResponse ] > | void { request = request || {}; @@ -9839,7 +11007,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listCustomMetrics(request, options, callback); + return this.innerApiCalls.listAudiences(request, options, callback); } /** @@ -9853,25 +11021,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomMetrics` must + * When paginating, all other parameters provided to `ListAudiences` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric} on 'data' event. + * An object stream which emits an object representing [Audience]{@link google.analytics.admin.v1alpha.Audience} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listCustomMetricsAsync()` + * We recommend using `listAudiencesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomMetricsStream( - request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiencesStream( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, options?: CallOptions ): Transform { request = request || {}; @@ -9882,18 +11050,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomMetrics']; + const defaultCallSettings = this._defaults['listAudiences']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomMetrics.createStream( - this.innerApiCalls.listCustomMetrics as GaxCall, + return this.descriptors.page.listAudiences.createStream( + this.innerApiCalls.listAudiences as GaxCall, request, callSettings ); } /** - * Equivalent to `listCustomMetrics`, but returns an iterable object. + * Equivalent to `listAudiences`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -9905,28 +11073,28 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomMetrics` must + * When paginating, all other parameters provided to `ListAudiences` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [CustomMetric]{@link google.analytics.admin.v1alpha.CustomMetric}. The API will be called under the hood as needed, once per the page, + * [Audience]{@link google.analytics.admin.v1alpha.Audience}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_audiences.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async */ - listCustomMetricsAsync( - request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiencesAsync( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -9935,17 +11103,17 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomMetrics']; + const defaultCallSettings = this._defaults['listAudiences']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomMetrics.asyncIterate( - this.innerApiCalls['listCustomMetrics'] as GaxCall, + return this.descriptors.page.listAudiences.asyncIterate( + this.innerApiCalls['listAudiences'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists DataStreams on a property. + * Lists all SearchAds360Links on a property. * * @param {Object} request * The request object that will be sent. @@ -9956,78 +11124,79 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. + * The first element of the array is Array of [SearchAds360Link]{@link google.analytics.admin.v1alpha.SearchAds360Link}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDataStreamsAsync()` + * We recommend using `listSearchAds360LinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360Links( + request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDataStream[], - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.ISearchAds360Link[], + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest | null, + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse ] >; - listDataStreams( - request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360Links( + request: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDataStream + protos.google.analytics.admin.v1alpha.ISearchAds360Link > ): void; - listDataStreams( - request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360Links( + request: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDataStream + protos.google.analytics.admin.v1alpha.ISearchAds360Link > ): void; - listDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360Links( + request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDataStream + protos.google.analytics.admin.v1alpha.ISearchAds360Link >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDataStream + protos.google.analytics.admin.v1alpha.ISearchAds360Link > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDataStream[], - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.ISearchAds360Link[], + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest | null, + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse ] > | void { request = request || {}; @@ -10046,7 +11215,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDataStreams(request, options, callback); + return this.innerApiCalls.listSearchAds360Links(request, options, callback); } /** @@ -10060,25 +11229,26 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [DataStream]{@link google.analytics.admin.v1alpha.DataStream} on 'data' event. + * An object stream which emits an object representing [SearchAds360Link]{@link google.analytics.admin.v1alpha.SearchAds360Link} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDataStreamsAsync()` + * We recommend using `listSearchAds360LinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360LinksStream( + request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -10089,18 +11259,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataStreams']; + const defaultCallSettings = this._defaults['listSearchAds360Links']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataStreams.createStream( - this.innerApiCalls.listDataStreams as GaxCall, + return this.descriptors.page.listSearchAds360Links.createStream( + this.innerApiCalls.listSearchAds360Links as GaxCall, request, callSettings ); } /** - * Equivalent to `listDataStreams`, but returns an iterable object. + * Equivalent to `listSearchAds360Links`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -10112,28 +11282,29 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [DataStream]{@link google.analytics.admin.v1alpha.DataStream}. The API will be called under the hood as needed, once per the page, + * [SearchAds360Link]{@link google.analytics.admin.v1alpha.SearchAds360Link}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_data_streams.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_async */ - listDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360LinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -10142,100 +11313,101 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataStreams']; + const defaultCallSettings = this._defaults['listSearchAds360Links']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataStreams.asyncIterate( - this.innerApiCalls['listDataStreams'] as GaxCall, + return this.descriptors.page.listSearchAds360Links.asyncIterate( + this.innerApiCalls['listSearchAds360Links'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists Audiences on a property. - * Audiences created before 2020 may not be supported. + * Lists BigQuery Links on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: properties/1234 + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListAudiences` must + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Audience]{@link google.analytics.admin.v1alpha.Audience}. + * The first element of the array is Array of [BigQueryLink]{@link google.analytics.admin.v1alpha.BigQueryLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listAudiencesAsync()` + * We recommend using `listBigQueryLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAudiences( - request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listBigQueryLinks( + request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAudience[], - protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, - protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IBigQueryLink[], + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse ] >; - listAudiences( - request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listBigQueryLinks( + request: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAudiencesRequest, - | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAudience + protos.google.analytics.admin.v1alpha.IBigQueryLink > ): void; - listAudiences( - request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listBigQueryLinks( + request: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAudiencesRequest, - | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAudience + protos.google.analytics.admin.v1alpha.IBigQueryLink > ): void; - listAudiences( - request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listBigQueryLinks( + request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAudiencesRequest, - | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAudience + protos.google.analytics.admin.v1alpha.IBigQueryLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAudiencesRequest, - | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAudience + protos.google.analytics.admin.v1alpha.IBigQueryLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAudience[], - protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, - protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IBigQueryLink[], + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse ] > | void { request = request || {}; @@ -10254,7 +11426,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listAudiences(request, options, callback); + return this.innerApiCalls.listBigQueryLinks(request, options, callback); } /** @@ -10262,31 +11434,33 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: properties/1234 + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListAudiences` must + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Audience]{@link google.analytics.admin.v1alpha.Audience} on 'data' event. + * An object stream which emits an object representing [BigQueryLink]{@link google.analytics.admin.v1alpha.BigQueryLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAudiencesAsync()` + * We recommend using `listBigQueryLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAudiencesStream( - request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listBigQueryLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -10297,51 +11471,53 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listAudiences']; + const defaultCallSettings = this._defaults['listBigQueryLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAudiences.createStream( - this.innerApiCalls.listAudiences as GaxCall, + return this.descriptors.page.listBigQueryLinks.createStream( + this.innerApiCalls.listBigQueryLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `listAudiences`, but returns an iterable object. + * Equivalent to `listBigQueryLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: properties/1234 + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListAudiences` must + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Audience]{@link google.analytics.admin.v1alpha.Audience}. The API will be called under the hood as needed, once per the page, + * [BigQueryLink]{@link google.analytics.admin.v1alpha.BigQueryLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_audiences.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_async */ - listAudiencesAsync( - request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listBigQueryLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -10350,14 +11526,14 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listAudiences']; + const defaultCallSettings = this._defaults['listBigQueryLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAudiences.asyncIterate( - this.innerApiCalls['listAudiences'] as GaxCall, + return this.descriptors.page.listBigQueryLinks.asyncIterate( + this.innerApiCalls['listBigQueryLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -10512,6 +11688,44 @@ export class AnalyticsAdminServiceClient { return this.pathTemplates.audiencePathTemplate.match(audienceName).audience; } + /** + * Return a fully-qualified bigQueryLink resource name string. + * + * @param {string} property + * @param {string} bigquery_link + * @returns {string} Resource name string. + */ + bigQueryLinkPath(property: string, bigqueryLink: string) { + return this.pathTemplates.bigQueryLinkPathTemplate.render({ + property: property, + bigquery_link: bigqueryLink, + }); + } + + /** + * Parse the property from BigQueryLink resource. + * + * @param {string} bigQueryLinkName + * A fully-qualified path representing BigQueryLink resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromBigQueryLinkName(bigQueryLinkName: string) { + return this.pathTemplates.bigQueryLinkPathTemplate.match(bigQueryLinkName) + .property; + } + + /** + * Parse the bigquery_link from BigQueryLink resource. + * + * @param {string} bigQueryLinkName + * A fully-qualified path representing BigQueryLink resource. + * @returns {string} A string representing the bigquery_link. + */ + matchBigqueryLinkFromBigQueryLinkName(bigQueryLinkName: string) { + return this.pathTemplates.bigQueryLinkPathTemplate.match(bigQueryLinkName) + .bigquery_link; + } + /** * Return a fully-qualified conversionEvent resource name string. * @@ -10776,6 +11990,46 @@ export class AnalyticsAdminServiceClient { ).property; } + /** + * Return a fully-qualified expandedDataSet resource name string. + * + * @param {string} property + * @param {string} expanded_data_set + * @returns {string} Resource name string. + */ + expandedDataSetPath(property: string, expandedDataSet: string) { + return this.pathTemplates.expandedDataSetPathTemplate.render({ + property: property, + expanded_data_set: expandedDataSet, + }); + } + + /** + * Parse the property from ExpandedDataSet resource. + * + * @param {string} expandedDataSetName + * A fully-qualified path representing ExpandedDataSet resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromExpandedDataSetName(expandedDataSetName: string) { + return this.pathTemplates.expandedDataSetPathTemplate.match( + expandedDataSetName + ).property; + } + + /** + * Parse the expanded_data_set from ExpandedDataSet resource. + * + * @param {string} expandedDataSetName + * A fully-qualified path representing ExpandedDataSet resource. + * @returns {string} A string representing the expanded_data_set. + */ + matchExpandedDataSetFromExpandedDataSetName(expandedDataSetName: string) { + return this.pathTemplates.expandedDataSetPathTemplate.match( + expandedDataSetName + ).expanded_data_set; + } + /** * Return a fully-qualified firebaseLink resource name string. * @@ -11045,6 +12299,31 @@ export class AnalyticsAdminServiceClient { ).user_link; } + /** + * Return a fully-qualified searchAds360Link resource name string. + * + * @param {string} property + * @returns {string} Resource name string. + */ + searchAds360LinkPath(property: string) { + return this.pathTemplates.searchAds360LinkPathTemplate.render({ + property: property, + }); + } + + /** + * Parse the property from SearchAds360Link resource. + * + * @param {string} searchAds360LinkName + * A fully-qualified path representing SearchAds360Link resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromSearchAds360LinkName(searchAds360LinkName: string) { + return this.pathTemplates.searchAds360LinkPathTemplate.match( + searchAds360LinkName + ).property; + } + /** * Terminate the gRPC channel and close the client. * diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json index 2a59f9bc0db1..fedba0471247 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -35,28 +35,28 @@ "methods": { "GetAccount": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "ListAccounts": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "DeleteAccount": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "UpdateAccount": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "ProvisionAccountTicket": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "ListAccountSummaries": { "timeout_millis": 60000, @@ -65,118 +65,118 @@ }, "GetProperty": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "ListProperties": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "CreateProperty": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "DeleteProperty": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "UpdateProperty": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "GetUserLink": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "BatchGetUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "ListUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "AuditUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "CreateUserLink": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "BatchCreateUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "UpdateUserLink": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "BatchUpdateUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "DeleteUserLink": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "BatchDeleteUserLinks": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "CreateFirebaseLink": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "DeleteFirebaseLink": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "ListFirebaseLinks": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "GetGlobalSiteTag": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "CreateGoogleAdsLink": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "UpdateGoogleAdsLink": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "DeleteGoogleAdsLink": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "ListGoogleAdsLinks": { "timeout_millis": 60000, - "retry_codes_name": "unknown_unavailable", - "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" }, "GetDataSharingSettings": { "timeout_millis": 60000, @@ -413,6 +413,31 @@ "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" }, + "GetSearchAds360Link": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListSearchAds360Links": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateSearchAds360Link": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteSearchAds360Link": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateSearchAds360Link": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, "GetAttributionSettings": { "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", @@ -427,6 +452,26 @@ "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "SetAutomatedGa4ConfigurationOptOut": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "FetchAutomatedGa4ConfigurationOptOut": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetBigQueryLink": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListBigQueryLinks": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" } } } diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json index 8c16da7275b0..084ed5872e1a 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json @@ -2,5 +2,6 @@ "../../protos/google/analytics/admin/v1alpha/access_report.proto", "../../protos/google/analytics/admin/v1alpha/analytics_admin.proto", "../../protos/google/analytics/admin/v1alpha/audience.proto", + "../../protos/google/analytics/admin/v1alpha/expanded_data_set.proto", "../../protos/google/analytics/admin/v1alpha/resources.proto" ] diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json index 22aae87a2a06..dec2ff66daa9 100644 --- a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -310,6 +310,26 @@ "archiveAudience" ] }, + "GetSearchAds360Link": { + "methods": [ + "getSearchAds360Link" + ] + }, + "CreateSearchAds360Link": { + "methods": [ + "createSearchAds360Link" + ] + }, + "DeleteSearchAds360Link": { + "methods": [ + "deleteSearchAds360Link" + ] + }, + "UpdateSearchAds360Link": { + "methods": [ + "updateSearchAds360Link" + ] + }, "GetAttributionSettings": { "methods": [ "getAttributionSettings" @@ -325,6 +345,21 @@ "runAccessReport" ] }, + "SetAutomatedGa4ConfigurationOptOut": { + "methods": [ + "setAutomatedGa4ConfigurationOptOut" + ] + }, + "FetchAutomatedGa4ConfigurationOptOut": { + "methods": [ + "fetchAutomatedGa4ConfigurationOptOut" + ] + }, + "GetBigQueryLink": { + "methods": [ + "getBigQueryLink" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -436,6 +471,20 @@ "listAudiencesStream", "listAudiencesAsync" ] + }, + "ListSearchAds360Links": { + "methods": [ + "listSearchAds360Links", + "listSearchAds360LinksStream", + "listSearchAds360LinksAsync" + ] + }, + "ListBigQueryLinks": { + "methods": [ + "listBigQueryLinks", + "listBigQueryLinksStream", + "listBigQueryLinksAsync" + ] } } }, @@ -742,6 +791,26 @@ "archiveAudience" ] }, + "GetSearchAds360Link": { + "methods": [ + "getSearchAds360Link" + ] + }, + "CreateSearchAds360Link": { + "methods": [ + "createSearchAds360Link" + ] + }, + "DeleteSearchAds360Link": { + "methods": [ + "deleteSearchAds360Link" + ] + }, + "UpdateSearchAds360Link": { + "methods": [ + "updateSearchAds360Link" + ] + }, "GetAttributionSettings": { "methods": [ "getAttributionSettings" @@ -757,6 +826,21 @@ "runAccessReport" ] }, + "SetAutomatedGa4ConfigurationOptOut": { + "methods": [ + "setAutomatedGa4ConfigurationOptOut" + ] + }, + "FetchAutomatedGa4ConfigurationOptOut": { + "methods": [ + "fetchAutomatedGa4ConfigurationOptOut" + ] + }, + "GetBigQueryLink": { + "methods": [ + "getBigQueryLink" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -868,6 +952,20 @@ "listAudiencesStream", "listAudiencesAsync" ] + }, + "ListSearchAds360Links": { + "methods": [ + "listSearchAds360Links", + "listSearchAds360LinksStream", + "listSearchAds360LinksAsync" + ] + }, + "ListBigQueryLinks": { + "methods": [ + "listBigQueryLinks", + "listBigQueryLinksStream", + "listBigQueryLinksAsync" + ] } } } diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index faab07b675be..5e56a12e8a73 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -8451,8 +8451,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('getAttributionSettings', () => { - it('invokes getAttributionSettings without error', async () => { + describe('getSearchAds360Link', () => { + it('invokes getSearchAds360Link without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8460,32 +8460,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + new protos.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AttributionSettings() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ); - client.innerApiCalls.getAttributionSettings = + client.innerApiCalls.getSearchAds360Link = stubSimpleCall(expectedResponse); - const [response] = await client.getAttributionSettings(request); + const [response] = await client.getSearchAds360Link(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getAttributionSettings as SinonStub + client.innerApiCalls.getSearchAds360Link as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getAttributionSettings as SinonStub + client.innerApiCalls.getSearchAds360Link as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getAttributionSettings without error using callback', async () => { + it('invokes getSearchAds360Link without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8493,25 +8493,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + new protos.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AttributionSettings() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ); - client.innerApiCalls.getAttributionSettings = + client.innerApiCalls.getSearchAds360Link = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getAttributionSettings( + client.getSearchAds360Link( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAttributionSettings | null + result?: protos.google.analytics.admin.v1alpha.ISearchAds360Link | null ) => { if (err) { reject(err); @@ -8524,16 +8524,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getAttributionSettings as SinonStub + client.innerApiCalls.getSearchAds360Link as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getAttributionSettings as SinonStub + client.innerApiCalls.getSearchAds360Link as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getAttributionSettings with error', async () => { + it('invokes getSearchAds360Link with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8541,34 +8541,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + new protos.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getAttributionSettings = stubSimpleCall( + client.innerApiCalls.getSearchAds360Link = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.getAttributionSettings(request), - expectedError - ); + await assert.rejects(client.getSearchAds360Link(request), expectedError); const actualRequest = ( - client.innerApiCalls.getAttributionSettings as SinonStub + client.innerApiCalls.getSearchAds360Link as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getAttributionSettings as SinonStub + client.innerApiCalls.getSearchAds360Link as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getAttributionSettings with closed client', async () => { + it('invokes getSearchAds360Link with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8576,24 +8573,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + new protos.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', + '.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.getAttributionSettings(request), - expectedError - ); + await assert.rejects(client.getSearchAds360Link(request), expectedError); }); }); - describe('updateAttributionSettings', () => { - it('invokes updateAttributionSettings without error', async () => { + describe('createSearchAds360Link', () => { + it('invokes createSearchAds360Link without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8601,33 +8595,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + new protos.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest() ); - request.attributionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', - ['attributionSettings', 'name'] + '.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest', + ['parent'] ); - request.attributionSettings.name = defaultValue1; - const expectedHeaderRequestParams = `attribution_settings.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AttributionSettings() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ); - client.innerApiCalls.updateAttributionSettings = + client.innerApiCalls.createSearchAds360Link = stubSimpleCall(expectedResponse); - const [response] = await client.updateAttributionSettings(request); + const [response] = await client.createSearchAds360Link(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateAttributionSettings as SinonStub + client.innerApiCalls.createSearchAds360Link as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateAttributionSettings as SinonStub + client.innerApiCalls.createSearchAds360Link as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateAttributionSettings without error using callback', async () => { + it('invokes createSearchAds360Link without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8635,26 +8628,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + new protos.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest() ); - request.attributionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', - ['attributionSettings', 'name'] + '.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest', + ['parent'] ); - request.attributionSettings.name = defaultValue1; - const expectedHeaderRequestParams = `attribution_settings.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AttributionSettings() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ); - client.innerApiCalls.updateAttributionSettings = + client.innerApiCalls.createSearchAds360Link = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateAttributionSettings( + client.createSearchAds360Link( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAttributionSettings | null + result?: protos.google.analytics.admin.v1alpha.ISearchAds360Link | null ) => { if (err) { reject(err); @@ -8667,16 +8659,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateAttributionSettings as SinonStub + client.innerApiCalls.createSearchAds360Link as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateAttributionSettings as SinonStub + client.innerApiCalls.createSearchAds360Link as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateAttributionSettings with error', async () => { + it('invokes createSearchAds360Link with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8684,35 +8676,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + new protos.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest() ); - request.attributionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', - ['attributionSettings', 'name'] + '.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest', + ['parent'] ); - request.attributionSettings.name = defaultValue1; - const expectedHeaderRequestParams = `attribution_settings.name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateAttributionSettings = stubSimpleCall( + client.innerApiCalls.createSearchAds360Link = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.updateAttributionSettings(request), + client.createSearchAds360Link(request), expectedError ); const actualRequest = ( - client.innerApiCalls.updateAttributionSettings as SinonStub + client.innerApiCalls.createSearchAds360Link as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateAttributionSettings as SinonStub + client.innerApiCalls.createSearchAds360Link as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateAttributionSettings with closed client', async () => { + it('invokes createSearchAds360Link with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8720,25 +8711,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + new protos.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest() ); - request.attributionSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', - ['attributionSettings', 'name'] + '.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest', + ['parent'] ); - request.attributionSettings.name = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.updateAttributionSettings(request), + client.createSearchAds360Link(request), expectedError ); }); }); - describe('runAccessReport', () => { - it('invokes runAccessReport without error', async () => { + describe('deleteSearchAds360Link', () => { + it('invokes deleteSearchAds360Link without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8746,31 +8736,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + new protos.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.RunAccessReportRequest', - ['entity'] + '.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest', + ['name'] ); - request.entity = defaultValue1; - const expectedHeaderRequestParams = `entity=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.RunAccessReportResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.runAccessReport = stubSimpleCall(expectedResponse); - const [response] = await client.runAccessReport(request); + client.innerApiCalls.deleteSearchAds360Link = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteSearchAds360Link(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.runAccessReport as SinonStub + client.innerApiCalls.deleteSearchAds360Link as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.runAccessReport as SinonStub + client.innerApiCalls.deleteSearchAds360Link as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes runAccessReport without error using callback', async () => { + it('invokes deleteSearchAds360Link without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8778,25 +8769,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + new protos.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.RunAccessReportRequest', - ['entity'] + '.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest', + ['name'] ); - request.entity = defaultValue1; - const expectedHeaderRequestParams = `entity=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.RunAccessReportResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.runAccessReport = + client.innerApiCalls.deleteSearchAds360Link = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.runAccessReport( + client.deleteSearchAds360Link( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IRunAccessReportResponse | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -8809,16 +8800,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.runAccessReport as SinonStub + client.innerApiCalls.deleteSearchAds360Link as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.runAccessReport as SinonStub + client.innerApiCalls.deleteSearchAds360Link as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes runAccessReport with error', async () => { + it('invokes deleteSearchAds360Link with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8826,31 +8817,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + new protos.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.RunAccessReportRequest', - ['entity'] + '.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest', + ['name'] ); - request.entity = defaultValue1; - const expectedHeaderRequestParams = `entity=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.runAccessReport = stubSimpleCall( + client.innerApiCalls.deleteSearchAds360Link = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.runAccessReport(request), expectedError); + await assert.rejects( + client.deleteSearchAds360Link(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.runAccessReport as SinonStub + client.innerApiCalls.deleteSearchAds360Link as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.runAccessReport as SinonStub + client.innerApiCalls.deleteSearchAds360Link as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes runAccessReport with closed client', async () => { + it('invokes deleteSearchAds360Link with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8858,21 +8852,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + new protos.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.RunAccessReportRequest', - ['entity'] + '.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest', + ['name'] ); - request.entity = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.runAccessReport(request), expectedError); + await assert.rejects( + client.deleteSearchAds360Link(request), + expectedError + ); }); }); - describe('listAccounts', () => { - it('invokes listAccounts without error', async () => { + describe('updateSearchAds360Link', () => { + it('invokes updateSearchAds360Link without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8880,25 +8877,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest() ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); - const [response] = await client.listAccounts(request); + request.searchAds_360Link ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest', + ['searchAds_360Link', 'name'] + ); + request.searchAds_360Link.name = defaultValue1; + const expectedHeaderRequestParams = `search_ads_360_link.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SearchAds360Link() + ); + client.innerApiCalls.updateSearchAds360Link = + stubSimpleCall(expectedResponse); + const [response] = await client.updateSearchAds360Link(request); assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateSearchAds360Link as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateSearchAds360Link as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccounts without error using callback', async () => { + it('invokes updateSearchAds360Link without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8906,27 +8911,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest() ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.innerApiCalls.listAccounts = + request.searchAds_360Link ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest', + ['searchAds_360Link', 'name'] + ); + request.searchAds_360Link.name = defaultValue1; + const expectedHeaderRequestParams = `search_ads_360_link.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SearchAds360Link() + ); + client.innerApiCalls.updateSearchAds360Link = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccounts( + client.updateSearchAds360Link( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + result?: protos.google.analytics.admin.v1alpha.ISearchAds360Link | null ) => { if (err) { reject(err); @@ -8938,9 +8942,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateSearchAds360Link as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateSearchAds360Link as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccounts with error', async () => { + it('invokes updateSearchAds360Link with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8948,17 +8960,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest() + ); + request.searchAds_360Link ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest', + ['searchAds_360Link', 'name'] ); + request.searchAds_360Link.name = defaultValue1; + const expectedHeaderRequestParams = `search_ads_360_link.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listAccounts = stubSimpleCall( + client.innerApiCalls.updateSearchAds360Link = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccounts(request), expectedError); + await assert.rejects( + client.updateSearchAds360Link(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateSearchAds360Link as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateSearchAds360Link as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccountsStream without error', async () => { + it('invokes updateSearchAds360Link with closed client', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -8966,47 +8996,1223 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest() ); - const expectedResponse = [ - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() - ), - ]; - client.descriptors.page.listAccounts.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listAccountsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; - stream.on( - 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); - assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) - .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + request.searchAds_360Link ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest', + ['searchAds_360Link', 'name'] + ); + request.searchAds_360Link.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateSearchAds360Link(request), + expectedError + ); + }); + }); + + describe('getAttributionSettings', () => { + it('invokes getAttributionSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AttributionSettings() + ); + client.innerApiCalls.getAttributionSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.getAttributionSettings(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAttributionSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AttributionSettings() + ); + client.innerApiCalls.getAttributionSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getAttributionSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAttributionSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAttributionSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getAttributionSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getAttributionSettings(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAttributionSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAttributionSettingsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAttributionSettingsRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getAttributionSettings(request), + expectedError + ); + }); + }); + + describe('updateAttributionSettings', () => { + it('invokes updateAttributionSettings without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + ); + request.attributionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', + ['attributionSettings', 'name'] + ); + request.attributionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `attribution_settings.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AttributionSettings() + ); + client.innerApiCalls.updateAttributionSettings = + stubSimpleCall(expectedResponse); + const [response] = await client.updateAttributionSettings(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateAttributionSettings without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + ); + request.attributionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', + ['attributionSettings', 'name'] + ); + request.attributionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `attribution_settings.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AttributionSettings() + ); + client.innerApiCalls.updateAttributionSettings = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateAttributionSettings( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAttributionSettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateAttributionSettings with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + ); + request.attributionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', + ['attributionSettings', 'name'] + ); + request.attributionSettings.name = defaultValue1; + const expectedHeaderRequestParams = `attribution_settings.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateAttributionSettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateAttributionSettings(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateAttributionSettings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateAttributionSettings with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest() + ); + request.attributionSettings ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest', + ['attributionSettings', 'name'] + ); + request.attributionSettings.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateAttributionSettings(request), + expectedError + ); + }); + }); + + describe('runAccessReport', () => { + it('invokes runAccessReport without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.RunAccessReportRequest', + ['entity'] + ); + request.entity = defaultValue1; + const expectedHeaderRequestParams = `entity=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportResponse() + ); + client.innerApiCalls.runAccessReport = stubSimpleCall(expectedResponse); + const [response] = await client.runAccessReport(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes runAccessReport without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.RunAccessReportRequest', + ['entity'] + ); + request.entity = defaultValue1; + const expectedHeaderRequestParams = `entity=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportResponse() + ); + client.innerApiCalls.runAccessReport = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.runAccessReport( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IRunAccessReportResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes runAccessReport with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.RunAccessReportRequest', + ['entity'] + ); + request.entity = defaultValue1; + const expectedHeaderRequestParams = `entity=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.runAccessReport = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.runAccessReport(request), expectedError); + const actualRequest = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.runAccessReport as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes runAccessReport with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.RunAccessReportRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.RunAccessReportRequest', + ['entity'] + ); + request.entity = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.runAccessReport(request), expectedError); + }); + }); + + describe('setAutomatedGa4ConfigurationOptOut', () => { + it('invokes setAutomatedGa4ConfigurationOptOut without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse() + ); + client.innerApiCalls.setAutomatedGa4ConfigurationOptOut = + stubSimpleCall(expectedResponse); + const [response] = await client.setAutomatedGa4ConfigurationOptOut( + request + ); + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes setAutomatedGa4ConfigurationOptOut without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse() + ); + client.innerApiCalls.setAutomatedGa4ConfigurationOptOut = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setAutomatedGa4ConfigurationOptOut( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.ISetAutomatedGa4ConfigurationOptOutResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes setAutomatedGa4ConfigurationOptOut with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest() + ); + const expectedError = new Error('expected'); + client.innerApiCalls.setAutomatedGa4ConfigurationOptOut = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.setAutomatedGa4ConfigurationOptOut(request), + expectedError + ); + }); + + it('invokes setAutomatedGa4ConfigurationOptOut with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest() + ); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.setAutomatedGa4ConfigurationOptOut(request), + expectedError + ); + }); + }); + + describe('fetchAutomatedGa4ConfigurationOptOut', () => { + it('invokes fetchAutomatedGa4ConfigurationOptOut without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse() + ); + client.innerApiCalls.fetchAutomatedGa4ConfigurationOptOut = + stubSimpleCall(expectedResponse); + const [response] = await client.fetchAutomatedGa4ConfigurationOptOut( + request + ); + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes fetchAutomatedGa4ConfigurationOptOut without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse() + ); + client.innerApiCalls.fetchAutomatedGa4ConfigurationOptOut = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.fetchAutomatedGa4ConfigurationOptOut( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IFetchAutomatedGa4ConfigurationOptOutResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes fetchAutomatedGa4ConfigurationOptOut with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest() + ); + const expectedError = new Error('expected'); + client.innerApiCalls.fetchAutomatedGa4ConfigurationOptOut = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.fetchAutomatedGa4ConfigurationOptOut(request), + expectedError + ); + }); + + it('invokes fetchAutomatedGa4ConfigurationOptOut with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest() + ); + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.fetchAutomatedGa4ConfigurationOptOut(request), + expectedError + ); + }); + }); + + describe('getBigQueryLink', () => { + it('invokes getBigQueryLink without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetBigQueryLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetBigQueryLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BigQueryLink() + ); + client.innerApiCalls.getBigQueryLink = stubSimpleCall(expectedResponse); + const [response] = await client.getBigQueryLink(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getBigQueryLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getBigQueryLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getBigQueryLink without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetBigQueryLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetBigQueryLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.BigQueryLink() + ); + client.innerApiCalls.getBigQueryLink = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getBigQueryLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IBigQueryLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getBigQueryLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getBigQueryLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getBigQueryLink with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetBigQueryLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetBigQueryLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getBigQueryLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getBigQueryLink(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getBigQueryLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getBigQueryLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getBigQueryLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetBigQueryLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetBigQueryLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getBigQueryLink(request), expectedError); + }); + }); + + describe('listAccounts', () => { + it('invokes listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); + const [response] = await client.listAccounts(request); + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listAccounts without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccounts( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.innerApiCalls.listAccounts = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccounts(request), expectedError); + }); + + it('invokes listAccountsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('invokes listAccountsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('uses async iteration with listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const iterable = client.listAccountsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listAccountSummaries', () => { + it('invokes listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCall(expectedResponse); + const [response] = await client.listAccountSummaries(request); + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listAccountSummaries without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccountSummaries( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IAccountSummary[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.innerApiCalls.listAccountSummaries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccountSummaries(request), expectedError); + }); + + it('invokes listAccountSummariesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('invokes listAccountSummariesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('uses async iteration with listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + const iterable = client.listAccountSummariesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request ); }); - it('invokes listAccountsStream with error', async () => { + it('uses async iteration with listAccountSummaries with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9014,19 +10220,182 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountSummariesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listProperties', () => { + it('invokes listProperties without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); + const [response] = await client.listProperties(request); + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listProperties without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.innerApiCalls.listProperties = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listProperties( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listProperties with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedError = new Error('expected'); + client.innerApiCalls.listProperties = stubSimpleCall( undefined, expectedError ); - const stream = client.listAccountsStream(request); + await assert.rejects(client.listProperties(request), expectedError); + }); + + it('invokes listPropertiesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { + (response: protos.google.analytics.admin.v1alpha.Property) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listProperties.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listProperties, request) + ); + }); + + it('invokes listPropertiesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listPropertiesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Property) => { responses.push(response); } ); @@ -9039,13 +10408,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('uses async iteration with listAccounts without error', async () => { + it('uses async iteration with listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9053,36 +10422,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; - const iterable = client.listAccountsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const iterable = client.listPropertiesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); - it('uses async iteration with listAccounts with error', async () => { + it('uses async iteration with listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9090,29 +10459,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountsAsync(request); + const iterable = client.listPropertiesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); }); - describe('listAccountSummaries', () => { - it('invokes listAccountSummaries without error', async () => { + describe('listUserLinks', () => { + it('invokes listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9120,26 +10489,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listAccountSummaries = - stubSimpleCall(expectedResponse); - const [response] = await client.listAccountSummaries(request); + client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listUserLinks(request); assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccountSummaries without error using callback', async () => { + it('invokes listUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9147,29 +10529,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listAccountSummaries = + client.innerApiCalls.listUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccountSummaries( + client.listUserLinks( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.IAccountSummary[] - | null + result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null ) => { if (err) { reject(err); @@ -9181,9 +10567,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccountSummaries with error', async () => { + it('invokes listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9191,17 +10585,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listAccountSummaries = stubSimpleCall( + client.innerApiCalls.listUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccountSummaries(request), expectedError); + await assert.rejects(client.listUserLinks(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccountSummariesStream without error', async () => { + it('invokes listUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9209,28 +10617,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAccountSummariesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -9244,13 +10657,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('invokes listAccountSummariesStream with error', async () => { + it('invokes listUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9258,18 +10678,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAccountSummariesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -9282,13 +10707,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('uses async iteration with listAccountSummaries without error', async () => { + it('uses async iteration with listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9296,37 +10728,49 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; - const iterable = client.listAccountSummariesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const iterable = client.listUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert( + (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); - it('uses async iteration with listAccountSummaries with error', async () => { + it('uses async iteration with listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9334,30 +10778,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountSummariesAsync(request); + const iterable = client.listUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert( + (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); }); - describe('listProperties', () => { - it('invokes listProperties without error', async () => { + describe('auditUserLinks', () => { + it('invokes auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9365,25 +10821,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); - const [response] = await client.listProperties(request); + client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.auditUserLinks(request); assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listProperties without error using callback', async () => { + it('invokes auditUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9391,27 +10861,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listProperties = + client.innerApiCalls.auditUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listProperties( + client.auditUserLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + result?: + | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | null ) => { if (err) { reject(err); @@ -9423,9 +10901,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listProperties with error', async () => { + it('invokes auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9433,17 +10919,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listProperties = stubSimpleCall( + client.innerApiCalls.auditUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listProperties(request), expectedError); + await assert.rejects(client.auditUserLinks(request), expectedError); + const actualRequest = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listPropertiesStream without error', async () => { + it('invokes auditUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9451,27 +10951,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listProperties.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listPropertiesStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -9485,13 +10992,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert( + (client.descriptors.page.auditUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('invokes listPropertiesStream with error', async () => { + it('invokes auditUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9499,17 +11013,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listPropertiesStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -9522,13 +11043,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert( + (client.descriptors.page.auditUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('uses async iteration with listProperties without error', async () => { + it('uses async iteration with auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9536,36 +11064,50 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; - const iterable = client.listPropertiesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; + const iterable = client.auditUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert( + (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); - it('uses async iteration with listProperties with error', async () => { + it('uses async iteration with auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9573,29 +11115,43 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listPropertiesAsync(request); + const iterable = client.auditUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert( + (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); }); - describe('listUserLinks', () => { - it('invokes listUserLinks without error', async () => { + describe('listFirebaseLinks', () => { + it('invokes listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9603,39 +11159,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listUserLinks(request); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listFirebaseLinks(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listUserLinks without error using callback', async () => { + it('invokes listFirebaseLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9643,33 +11199,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.listUserLinks = + client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listUserLinks( + client.listFirebaseLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null + result?: + | protos.google.analytics.admin.v1alpha.IFirebaseLink[] + | null ) => { if (err) { reject(err); @@ -9682,16 +11240,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listUserLinks with error', async () => { + it('invokes listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9699,31 +11257,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listUserLinks = stubSimpleCall( + client.innerApiCalls.listFirebaseLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listUserLinks(request), expectedError); + await assert.rejects(client.listFirebaseLinks(request), expectedError); const actualRequest = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listUserLinksStream without error', async () => { + it('invokes listFirebaseLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9731,33 +11289,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listUserLinksStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -9771,12 +11330,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -9784,7 +11343,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listUserLinksStream with error', async () => { + it('invokes listFirebaseLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9792,23 +11351,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listUserLinksStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -9821,12 +11381,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -9834,7 +11394,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listUserLinks without error', async () => { + it('uses async iteration with listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9842,41 +11402,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; - const iterable = client.listUserLinksAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + []; + const iterable = client.listFirebaseLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -9884,7 +11445,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listUserLinks with error', async () => { + it('uses async iteration with listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9892,32 +11453,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listUserLinksAsync(request); + const iterable = client.listFirebaseLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -9926,8 +11488,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('auditUserLinks', () => { - it('invokes auditUserLinks without error', async () => { + describe('listGoogleAdsLinks', () => { + it('invokes listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9935,39 +11497,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.auditUserLinks(request); + client.innerApiCalls.listGoogleAdsLinks = + stubSimpleCall(expectedResponse); + const [response] = await client.listGoogleAdsLinks(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes auditUserLinks without error using callback', async () => { + it('invokes listGoogleAdsLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -9975,34 +11538,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.auditUserLinks = + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.auditUserLinks( + client.listGoogleAdsLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] | null ) => { if (err) { @@ -10016,16 +11579,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes auditUserLinks with error', async () => { + it('invokes listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10033,31 +11596,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.auditUserLinks = stubSimpleCall( + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.auditUserLinks(request), expectedError); + await assert.rejects(client.listGoogleAdsLinks(request), expectedError); const actualRequest = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes auditUserLinksStream without error', async () => { + it('invokes listGoogleAdsLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10065,34 +11628,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.auditUserLinksStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -10106,12 +11669,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10119,7 +11682,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes auditUserLinksStream with error', async () => { + it('invokes listGoogleAdsLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10127,24 +11690,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.auditUserLinksStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -10157,12 +11720,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10170,7 +11733,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with auditUserLinks without error', async () => { + it('uses async iteration with listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10178,42 +11741,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10221,7 +11784,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with auditUserLinks with error', async () => { + it('uses async iteration with listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10229,20 +11792,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10250,12 +11813,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10264,8 +11827,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listFirebaseLinks', () => { - it('invokes listFirebaseLinks without error', async () => { + describe('listMeasurementProtocolSecrets', () => { + it('invokes listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10273,39 +11836,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listFirebaseLinks(request); + client.innerApiCalls.listMeasurementProtocolSecrets = + stubSimpleCall(expectedResponse); + const [response] = await client.listMeasurementProtocolSecrets(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFirebaseLinks without error using callback', async () => { + it('invokes listMeasurementProtocolSecrets without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10313,34 +11877,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listFirebaseLinks = + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listFirebaseLinks( + client.listMeasurementProtocolSecrets( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IFirebaseLink[] + | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] | null ) => { if (err) { @@ -10354,16 +11918,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFirebaseLinks with error', async () => { + it('invokes listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10371,31 +11935,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listFirebaseLinks = stubSimpleCall( + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listFirebaseLinks(request), expectedError); + await assert.rejects( + client.listMeasurementProtocolSecrets(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFirebaseLinksStream without error', async () => { + it('invokes listMeasurementProtocolSecretsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10403,34 +11970,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -10444,12 +12013,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10457,7 +12035,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listFirebaseLinksStream with error', async () => { + it('invokes listMeasurementProtocolSecretsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10465,24 +12043,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -10495,12 +12075,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10508,7 +12097,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listFirebaseLinks without error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10516,42 +12105,46 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10559,7 +12152,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listFirebaseLinks with error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10567,20 +12160,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10588,12 +12181,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10602,8 +12199,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listGoogleAdsLinks', () => { - it('invokes listGoogleAdsLinks without error', async () => { + describe('searchChangeHistoryEvents', () => { + it('invokes searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10611,40 +12208,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall(expectedResponse); - const [response] = await client.listGoogleAdsLinks(request); + const [response] = await client.searchChangeHistoryEvents(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listGoogleAdsLinks without error using callback', async () => { + it('invokes searchChangeHistoryEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10652,34 +12249,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listGoogleAdsLinks( + client.searchChangeHistoryEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] + | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] | null ) => { if (err) { @@ -10693,16 +12290,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listGoogleAdsLinks with error', async () => { + it('invokes searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10710,31 +12307,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listGoogleAdsLinks(request), expectedError); + await assert.rejects( + client.searchChangeHistoryEvents(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listGoogleAdsLinksStream without error', async () => { + it('invokes searchChangeHistoryEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10742,34 +12342,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + ) => { responses.push(response); } ); @@ -10783,12 +12385,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10796,7 +12404,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listGoogleAdsLinksStream with error', async () => { + it('invokes searchChangeHistoryEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10804,24 +12412,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + ) => { responses.push(response); } ); @@ -10834,12 +12444,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10847,7 +12463,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listGoogleAdsLinks without error', async () => { + it('uses async iteration with searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10855,42 +12471,46 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10898,7 +12518,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listGoogleAdsLinks with error', async () => { + it('uses async iteration with searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10906,20 +12526,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -10927,12 +12547,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -10941,8 +12565,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listMeasurementProtocolSecrets', () => { - it('invokes listMeasurementProtocolSecrets without error', async () => { + describe('listConversionEvents', () => { + it('invokes listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10950,40 +12574,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.listConversionEvents = stubSimpleCall(expectedResponse); - const [response] = await client.listMeasurementProtocolSecrets(request); + const [response] = await client.listConversionEvents(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listMeasurementProtocolSecrets without error using callback', async () => { + it('invokes listConversionEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -10991,34 +12615,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.listConversionEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listMeasurementProtocolSecrets( + client.listConversionEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] + | protos.google.analytics.admin.v1alpha.IConversionEvent[] | null ) => { if (err) { @@ -11032,16 +12656,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listMeasurementProtocolSecrets with error', async () => { + it('invokes listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11049,34 +12673,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( + client.innerApiCalls.listConversionEvents = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listMeasurementProtocolSecrets(request), - expectedError - ); + await assert.rejects(client.listConversionEvents(request), expectedError); const actualRequest = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listMeasurementProtocolSecretsStream without error', async () => { + it('invokes listConversionEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11084,36 +12705,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -11127,21 +12746,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -11149,7 +12759,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listMeasurementProtocolSecretsStream with error', async () => { + it('invokes listConversionEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11157,26 +12767,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -11189,21 +12797,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -11211,7 +12810,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { + it('uses async iteration with listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11219,46 +12818,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.listConversionEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub - ) + (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -11266,7 +12861,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { + it('uses async iteration with listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11274,20 +12869,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.listConversionEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -11295,16 +12890,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub - ) + (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -11313,8 +12904,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('searchChangeHistoryEvents', () => { - it('invokes searchChangeHistoryEvents without error', async () => { + describe('listDisplayVideo360AdvertiserLinks', () => { + it('invokes listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11322,40 +12913,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.searchChangeHistoryEvents(request); + const [response] = await client.listDisplayVideo360AdvertiserLinks( + request + ); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes searchChangeHistoryEvents without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11363,34 +12956,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.searchChangeHistoryEvents( + client.listDisplayVideo360AdvertiserLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] | null ) => { if (err) { @@ -11404,16 +12997,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes searchChangeHistoryEvents with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11421,34 +13014,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.searchChangeHistoryEvents(request), + client.listDisplayVideo360AdvertiserLinks(request), expectedError ); const actualRequest = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes searchChangeHistoryEventsStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11456,35 +13049,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink ) => { responses.push(response); } @@ -11500,15 +13093,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) @@ -11518,7 +13114,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes searchChangeHistoryEventsStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11526,25 +13122,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink ) => { responses.push(response); } @@ -11559,15 +13155,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) @@ -11577,7 +13176,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with searchChangeHistoryEvents without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11585,44 +13184,44 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ) .getCall(0) @@ -11632,7 +13231,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with searchChangeHistoryEvents with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11640,20 +13239,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -11661,14 +13260,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ) .getCall(0) @@ -11679,8 +13278,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listConversionEvents', () => { - it('invokes listConversionEvents without error', async () => { + describe('listDisplayVideo360AdvertiserLinkProposals', () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11688,40 +13287,43 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCall(expectedResponse); - const [response] = await client.listConversionEvents(request); + const [response] = + await client.listDisplayVideo360AdvertiserLinkProposals(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listConversionEvents without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11729,34 +13331,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listConversionEvents( + client.listDisplayVideo360AdvertiserLinkProposals( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IConversionEvent[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] | null ) => { if (err) { @@ -11770,16 +13372,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listConversionEvents with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11787,31 +13391,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listConversionEvents = stubSimpleCall( - undefined, + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.listDisplayVideo360AdvertiserLinkProposals(request), expectedError ); - await assert.rejects(client.listConversionEvents(request), expectedError); const actualRequest = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listConversionEventsStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11819,34 +13426,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listConversionEventsStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + ) => { responses.push(response); } ); @@ -11860,12 +13470,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, + request + ) ); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -11873,7 +13492,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listConversionEventsStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11881,24 +13500,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listConversionEventsStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + ) => { responses.push(response); } ); @@ -11911,12 +13533,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, + request + ) ); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -11924,7 +13555,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listConversionEvents without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11932,42 +13563,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; - const iterable = client.listConversionEventsAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -11975,7 +13611,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listConversionEvents with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -11983,20 +13619,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listConversionEventsAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -12004,12 +13641,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12018,8 +13659,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listDisplayVideo360AdvertiserLinks', () => { - it('invokes listDisplayVideo360AdvertiserLinks without error', async () => { + describe('listCustomDimensions', () => { + it('invokes listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12027,42 +13668,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = + client.innerApiCalls.listCustomDimensions = stubSimpleCall(expectedResponse); - const [response] = await client.listDisplayVideo360AdvertiserLinks( - request - ); + const [response] = await client.listCustomDimensions(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { + it('invokes listCustomDimensions without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12070,34 +13709,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = + client.innerApiCalls.listCustomDimensions = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDisplayVideo360AdvertiserLinks( + client.listCustomDimensions( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] + | protos.google.analytics.admin.v1alpha.ICustomDimension[] | null ) => { if (err) { @@ -12111,16 +13750,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { + it('invokes listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12128,34 +13767,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( + client.innerApiCalls.listCustomDimensions = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listDisplayVideo360AdvertiserLinks(request), - expectedError - ); + await assert.rejects(client.listCustomDimensions(request), expectedError); const actualRequest = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { + it('invokes listCustomDimensionsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12163,36 +13799,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDisplayVideo360AdvertiserLinksStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -12206,21 +13840,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks, - request - ) + .calledWith(client.innerApiCalls.listCustomDimensions, request) ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12228,7 +13853,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listDisplayVideo360AdvertiserLinksStream with error', async () => { + it('invokes listCustomDimensionsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12236,26 +13861,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listDisplayVideo360AdvertiserLinksStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -12268,21 +13891,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks, - request - ) + .calledWith(client.innerApiCalls.listCustomDimensions, request) ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12290,7 +13904,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinks without error', async () => { + it('uses async iteration with listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12298,46 +13912,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; - const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); + const iterable = client.listCustomDimensionsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .asyncIterate as SinonStub - ) + (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12345,7 +13955,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinks with error', async () => { + it('uses async iteration with listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12353,20 +13963,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); + const iterable = client.listCustomDimensionsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -12374,16 +13984,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .asyncIterate as SinonStub - ) + (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12392,8 +13998,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listDisplayVideo360AdvertiserLinkProposals', () => { - it('invokes listDisplayVideo360AdvertiserLinkProposals without error', async () => { + describe('listCustomMetrics', () => { + it('invokes listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12401,43 +14007,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = - stubSimpleCall(expectedResponse); - const [response] = - await client.listDisplayVideo360AdvertiserLinkProposals(request); + client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomMetrics(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { + it('invokes listCustomMetrics without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12445,34 +14047,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + client.innerApiCalls.listCustomMetrics = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDisplayVideo360AdvertiserLinkProposals( + client.listCustomMetrics( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] + | protos.google.analytics.admin.v1alpha.ICustomMetric[] | null ) => { if (err) { @@ -12486,18 +14088,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { + it('invokes listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12505,34 +14105,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = - stubSimpleCall(undefined, expectedError); - await assert.rejects( - client.listDisplayVideo360AdvertiserLinkProposals(request), + client.innerApiCalls.listCustomMetrics = stubSimpleCall( + undefined, expectedError ); + await assert.rejects(client.listCustomMetrics(request), expectedError); const actualRequest = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { + it('invokes listCustomMetricsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12540,37 +14137,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(expectedResponse); - const stream = - client.listDisplayVideo360AdvertiserLinkProposalsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -12584,21 +14178,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, - request - ) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12606,7 +14191,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposalsStream with error', async () => { + it('invokes listCustomMetricsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12614,27 +14199,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = - client.listDisplayVideo360AdvertiserLinkProposalsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -12647,21 +14229,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, - request - ) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12669,7 +14242,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals without error', async () => { + it('uses async iteration with listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12677,47 +14250,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; - const iterable = - client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); + const iterable = client.listCustomMetricsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub - ) + (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12725,7 +14293,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals with error', async () => { + it('uses async iteration with listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12733,21 +14301,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = - client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); + const iterable = client.listCustomMetricsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -12755,16 +14322,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub - ) + (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12773,8 +14336,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listCustomDimensions', () => { - it('invokes listCustomDimensions without error', async () => { + describe('listDataStreams', () => { + it('invokes listDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12782,40 +14345,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.innerApiCalls.listCustomDimensions = - stubSimpleCall(expectedResponse); - const [response] = await client.listCustomDimensions(request); + client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); + const [response] = await client.listDataStreams(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomDimensions without error using callback', async () => { + it('invokes listDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12823,35 +14385,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.innerApiCalls.listCustomDimensions = + client.innerApiCalls.listDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomDimensions( + client.listDataStreams( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.ICustomDimension[] - | null + result?: protos.google.analytics.admin.v1alpha.IDataStream[] | null ) => { if (err) { reject(err); @@ -12864,16 +14424,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomDimensions with error', async () => { + it('invokes listDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12881,31 +14441,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomDimensions = stubSimpleCall( + client.innerApiCalls.listDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomDimensions(request), expectedError); + await assert.rejects(client.listDataStreams(request), expectedError); const actualRequest = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomDimensionsStream without error', async () => { + it('invokes listDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12913,34 +14473,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.descriptors.page.listCustomDimensions.createStream = + client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomDimensionsStream(request); + const stream = client.listDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.DataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { + (response: protos.google.analytics.admin.v1alpha.DataStream) => { responses.push(response); } ); @@ -12954,12 +14514,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomDimensions, request) + .calledWith(client.innerApiCalls.listDataStreams, request) ); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -12967,7 +14527,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listCustomDimensionsStream with error', async () => { + it('invokes listDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12975,24 +14535,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomDimensions.createStream = + client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomDimensionsStream(request); + const stream = client.listDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.DataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { + (response: protos.google.analytics.admin.v1alpha.DataStream) => { responses.push(response); } ); @@ -13005,12 +14565,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomDimensions, request) + .calledWith(client.innerApiCalls.listDataStreams, request) ); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13018,7 +14578,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listCustomDimensions without error', async () => { + it('uses async iteration with listDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13026,42 +14586,41 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.descriptors.page.listCustomDimensions.asyncIterate = + client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = - []; - const iterable = client.listCustomDimensionsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; + const iterable = client.listDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) + (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13069,7 +14628,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listCustomDimensions with error', async () => { + it('uses async iteration with listDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13077,20 +14636,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomDimensions.asyncIterate = + client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomDimensionsAsync(request); + const iterable = client.listDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -13098,12 +14657,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) + (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13112,8 +14671,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listCustomMetrics', () => { - it('invokes listCustomMetrics without error', async () => { + describe('listAudiences', () => { + it('invokes listAudiences without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13121,39 +14680,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); - const [response] = await client.listCustomMetrics(request); + client.innerApiCalls.listAudiences = stubSimpleCall(expectedResponse); + const [response] = await client.listAudiences(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomMetrics without error using callback', async () => { + it('invokes listAudiences without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13161,35 +14720,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.innerApiCalls.listCustomMetrics = + client.innerApiCalls.listAudiences = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomMetrics( + client.listAudiences( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.ICustomMetric[] - | null + result?: protos.google.analytics.admin.v1alpha.IAudience[] | null ) => { if (err) { reject(err); @@ -13202,16 +14759,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomMetrics with error', async () => { + it('invokes listAudiences with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13219,31 +14776,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomMetrics = stubSimpleCall( + client.innerApiCalls.listAudiences = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomMetrics(request), expectedError); + await assert.rejects(client.listAudiences(request), expectedError); const actualRequest = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomMetricsStream without error', async () => { + it('invokes listAudiencesStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13251,34 +14808,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.descriptors.page.listCustomMetrics.createStream = + client.descriptors.page.listAudiences.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomMetricsStream(request); + const stream = client.listAudiencesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { + (response: protos.google.analytics.admin.v1alpha.Audience) => { responses.push(response); } ); @@ -13292,12 +14848,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomMetrics, request) + .calledWith(client.innerApiCalls.listAudiences, request) ); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13305,7 +14861,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listCustomMetricsStream with error', async () => { + it('invokes listAudiencesStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13313,24 +14869,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomMetrics.createStream = + client.descriptors.page.listAudiences.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomMetricsStream(request); + const stream = client.listAudiencesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { + (response: protos.google.analytics.admin.v1alpha.Audience) => { responses.push(response); } ); @@ -13343,12 +14898,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomMetrics, request) + .calledWith(client.innerApiCalls.listAudiences, request) ); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13356,7 +14911,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listCustomMetrics without error', async () => { + it('uses async iteration with listAudiences without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13364,42 +14919,41 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.descriptors.page.listCustomMetrics.asyncIterate = + client.descriptors.page.listAudiences.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = - []; - const iterable = client.listCustomMetricsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; + const iterable = client.listAudiencesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listAudiences.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) + (client.descriptors.page.listAudiences.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13407,7 +14961,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listCustomMetrics with error', async () => { + it('uses async iteration with listAudiences with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13415,33 +14969,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomMetrics.asyncIterate = + client.descriptors.page.listAudiences.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomMetricsAsync(request); + const iterable = client.listAudiencesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listAudiences.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) + (client.descriptors.page.listAudiences.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13450,8 +15003,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listDataStreams', () => { - it('invokes listDataStreams without error', async () => { + describe('listSearchAds360Links', () => { + it('invokes listSearchAds360Links without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13459,39 +15012,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), ]; - client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); - const [response] = await client.listDataStreams(request); + client.innerApiCalls.listSearchAds360Links = + stubSimpleCall(expectedResponse); + const [response] = await client.listSearchAds360Links(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataStreams without error using callback', async () => { + it('invokes listSearchAds360Links without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13499,33 +15053,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), ]; - client.innerApiCalls.listDataStreams = + client.innerApiCalls.listSearchAds360Links = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDataStreams( + client.listSearchAds360Links( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDataStream[] | null + result?: + | protos.google.analytics.admin.v1alpha.ISearchAds360Link[] + | null ) => { if (err) { reject(err); @@ -13538,16 +15094,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataStreams with error', async () => { + it('invokes listSearchAds360Links with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13555,31 +15111,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDataStreams = stubSimpleCall( + client.innerApiCalls.listSearchAds360Links = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listDataStreams(request), expectedError); + await assert.rejects( + client.listSearchAds360Links(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataStreamsStream without error', async () => { + it('invokes listSearchAds360LinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13587,34 +15146,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), ]; - client.descriptors.page.listDataStreams.createStream = + client.descriptors.page.listSearchAds360Links.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDataStreamsStream(request); + const stream = client.listSearchAds360LinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DataStream[] = + const responses: protos.google.analytics.admin.v1alpha.SearchAds360Link[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.DataStream) => { + ( + response: protos.google.analytics.admin.v1alpha.SearchAds360Link + ) => { responses.push(response); } ); @@ -13628,12 +15189,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listDataStreams, request) + .calledWith(client.innerApiCalls.listSearchAds360Links, request) ); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13641,7 +15208,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listDataStreamsStream with error', async () => { + it('invokes listSearchAds360LinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13649,24 +15216,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataStreams.createStream = + client.descriptors.page.listSearchAds360Links.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listDataStreamsStream(request); + const stream = client.listSearchAds360LinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DataStream[] = + const responses: protos.google.analytics.admin.v1alpha.SearchAds360Link[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.DataStream) => { + ( + response: protos.google.analytics.admin.v1alpha.SearchAds360Link + ) => { responses.push(response); } ); @@ -13679,12 +15248,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listDataStreams, request) + .calledWith(client.innerApiCalls.listSearchAds360Links, request) ); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13692,7 +15267,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDataStreams without error', async () => { + it('uses async iteration with listSearchAds360Links without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13700,41 +15275,46 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), ]; - client.descriptors.page.listDataStreams.asyncIterate = + client.descriptors.page.listSearchAds360Links.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; - const iterable = client.listDataStreamsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.ISearchAds360Link[] = + []; + const iterable = client.listSearchAds360LinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub + client.descriptors.page.listSearchAds360Links + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13742,7 +15322,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDataStreams with error', async () => { + it('uses async iteration with listSearchAds360Links with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13750,20 +15330,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataStreams.asyncIterate = + client.descriptors.page.listSearchAds360Links.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDataStreamsAsync(request); + const iterable = client.listSearchAds360LinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.ISearchAds360Link[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -13771,12 +15351,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub + client.descriptors.page.listSearchAds360Links + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13785,8 +15369,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listAudiences', () => { - it('invokes listAudiences without error', async () => { + describe('listBigQueryLinks', () => { + it('invokes listBigQueryLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13794,39 +15378,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), ]; - client.innerApiCalls.listAudiences = stubSimpleCall(expectedResponse); - const [response] = await client.listAudiences(request); + client.innerApiCalls.listBigQueryLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listBigQueryLinks(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAudiences without error using callback', async () => { + it('invokes listBigQueryLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13834,33 +15418,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), ]; - client.innerApiCalls.listAudiences = + client.innerApiCalls.listBigQueryLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAudiences( + client.listBigQueryLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAudience[] | null + result?: + | protos.google.analytics.admin.v1alpha.IBigQueryLink[] + | null ) => { if (err) { reject(err); @@ -13873,16 +15459,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAudiences with error', async () => { + it('invokes listBigQueryLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13890,31 +15476,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listAudiences = stubSimpleCall( + client.innerApiCalls.listBigQueryLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAudiences(request), expectedError); + await assert.rejects(client.listBigQueryLinks(request), expectedError); const actualRequest = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAudiencesStream without error', async () => { + it('invokes listBigQueryLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13922,33 +15508,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), ]; - client.descriptors.page.listAudiences.createStream = + client.descriptors.page.listBigQueryLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAudiencesStream(request); + const stream = client.listBigQueryLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; + const responses: protos.google.analytics.admin.v1alpha.BigQueryLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Audience) => { + (response: protos.google.analytics.admin.v1alpha.BigQueryLink) => { responses.push(response); } ); @@ -13962,12 +15549,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAudiences.createStream as SinonStub) + (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAudiences, request) + .calledWith(client.innerApiCalls.listBigQueryLinks, request) ); assert( - (client.descriptors.page.listAudiences.createStream as SinonStub) + (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13975,7 +15562,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listAudiencesStream with error', async () => { + it('invokes listBigQueryLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13983,23 +15570,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAudiences.createStream = + client.descriptors.page.listBigQueryLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAudiencesStream(request); + const stream = client.listBigQueryLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; + const responses: protos.google.analytics.admin.v1alpha.BigQueryLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Audience) => { + (response: protos.google.analytics.admin.v1alpha.BigQueryLink) => { responses.push(response); } ); @@ -14012,12 +15600,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAudiences.createStream as SinonStub) + (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAudiences, request) + .calledWith(client.innerApiCalls.listBigQueryLinks, request) ); assert( - (client.descriptors.page.listAudiences.createStream as SinonStub) + (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14025,7 +15613,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listAudiences without error', async () => { + it('uses async iteration with listBigQueryLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14033,41 +15621,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), ]; - client.descriptors.page.listAudiences.asyncIterate = + client.descriptors.page.listBigQueryLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; - const iterable = client.listAudiencesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IBigQueryLink[] = + []; + const iterable = client.listBigQueryLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAudiences.asyncIterate as SinonStub + client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listAudiences.asyncIterate as SinonStub) + (client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14075,7 +15664,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listAudiences with error', async () => { + it('uses async iteration with listBigQueryLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14083,32 +15672,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAudiences.asyncIterate = + client.descriptors.page.listBigQueryLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAudiencesAsync(request); + const iterable = client.listBigQueryLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; + const responses: protos.google.analytics.admin.v1alpha.IBigQueryLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAudiences.asyncIterate as SinonStub + client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listAudiences.asyncIterate as SinonStub) + (client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14346,6 +15936,59 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('bigQueryLink', () => { + const fakePath = '/rendered/path/bigQueryLink'; + const expectedParameters = { + property: 'propertyValue', + bigquery_link: 'bigqueryLinkValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.bigQueryLinkPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.bigQueryLinkPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('bigQueryLinkPath', () => { + const result = client.bigQueryLinkPath( + 'propertyValue', + 'bigqueryLinkValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.bigQueryLinkPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromBigQueryLinkName', () => { + const result = client.matchPropertyFromBigQueryLinkName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.bigQueryLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchBigqueryLinkFromBigQueryLinkName', () => { + const result = client.matchBigqueryLinkFromBigQueryLinkName(fakePath); + assert.strictEqual(result, 'bigqueryLinkValue'); + assert( + (client.pathTemplates.bigQueryLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('conversionEvent', () => { const fakePath = '/rendered/path/conversionEvent'; const expectedParameters = { @@ -14745,6 +16388,60 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('expandedDataSet', () => { + const fakePath = '/rendered/path/expandedDataSet'; + const expectedParameters = { + property: 'propertyValue', + expanded_data_set: 'expandedDataSetValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.expandedDataSetPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.expandedDataSetPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('expandedDataSetPath', () => { + const result = client.expandedDataSetPath( + 'propertyValue', + 'expandedDataSetValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.expandedDataSetPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromExpandedDataSetName', () => { + const result = client.matchPropertyFromExpandedDataSetName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.expandedDataSetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExpandedDataSetFromExpandedDataSetName', () => { + const result = + client.matchExpandedDataSetFromExpandedDataSetName(fakePath); + assert.strictEqual(result, 'expandedDataSetValue'); + assert( + (client.pathTemplates.expandedDataSetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('firebaseLink', () => { const fakePath = '/rendered/path/firebaseLink'; const expectedParameters = { @@ -15126,5 +16823,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); }); + + describe('searchAds360Link', () => { + const fakePath = '/rendered/path/searchAds360Link'; + const expectedParameters = { + property: 'propertyValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.searchAds360LinkPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.searchAds360LinkPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('searchAds360LinkPath', () => { + const result = client.searchAds360LinkPath('propertyValue'); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.searchAds360LinkPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromSearchAds360LinkName', () => { + const result = client.matchPropertyFromSearchAds360LinkName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.searchAds360LinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); }); }); From 1c8c23a591679d2349d2a0ae35fef986e3547ec8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 9 Feb 2023 13:42:28 -0500 Subject: [PATCH 38/38] chore: release main (#3930) See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- .release-please-manifest.json | 18 +- changelog.json | 157 +++++++++++++++++- packages/google-analytics-admin/CHANGELOG.md | 7 + packages/google-analytics-admin/package.json | 2 +- ...tadata.google.analytics.admin.v1alpha.json | 2 +- ...etadata.google.analytics.admin.v1beta.json | 2 +- .../samples/package.json | 2 +- packages/google-cloud-aiplatform/CHANGELOG.md | 7 + packages/google-cloud-aiplatform/package.json | 2 +- ...t_metadata.google.cloud.aiplatform.v1.json | 2 +- ...adata.google.cloud.aiplatform.v1beta1.json | 2 +- .../samples/package.json | 2 +- packages/google-cloud-batch/CHANGELOG.md | 7 + packages/google-cloud-batch/package.json | 2 +- ...nippet_metadata.google.cloud.batch.v1.json | 2 +- ...t_metadata.google.cloud.batch.v1alpha.json | 2 +- .../google-cloud-batch/samples/package.json | 2 +- .../CHANGELOG.md | 7 + .../package.json | 2 +- ...google.cloud.contactcenterinsights.v1.json | 2 +- .../samples/package.json | 2 +- packages/google-cloud-documentai/CHANGELOG.md | 11 ++ packages/google-cloud-documentai/package.json | 2 +- ...t_metadata.google.cloud.documentai.v1.json | 2 +- ...adata.google.cloud.documentai.v1beta1.json | 2 +- ...adata.google.cloud.documentai.v1beta2.json | 2 +- ...adata.google.cloud.documentai.v1beta3.json | 2 +- .../samples/package.json | 2 +- .../google-cloud-gkemulticloud/CHANGELOG.md | 7 + .../google-cloud-gkemulticloud/package.json | 2 +- ...etadata.google.cloud.gkemulticloud.v1.json | 2 +- .../samples/package.json | 2 +- .../google-cloud-gsuiteaddons/CHANGELOG.md | 8 + .../google-cloud-gsuiteaddons/package.json | 2 +- ...metadata.google.cloud.gsuiteaddons.v1.json | 2 +- .../samples/package.json | 2 +- .../CHANGELOG.md | 7 + .../package.json | 2 +- ...a.google.devtools.artifactregistry.v1.json | 2 +- ...gle.devtools.artifactregistry.v1beta2.json | 2 +- .../samples/package.json | 2 +- .../CHANGELOG.md | 8 + .../package.json | 2 +- ...gle.maps.mapsplatformdatasets.v1alpha.json | 2 +- .../samples/package.json | 2 +- 45 files changed, 269 insertions(+), 43 deletions(-) create mode 100644 packages/google-cloud-gsuiteaddons/CHANGELOG.md create mode 100644 packages/google-maps-mapsplatformdatasets/CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d0f9fc29c58f..b943c923fc0e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,6 +1,6 @@ { "packages/gapic-node-templating": "0.0.0", - "packages/google-analytics-admin": "4.4.0", + "packages/google-analytics-admin": "4.5.0", "packages/google-analytics-data": "3.2.0", "packages/google-api-apikeys": "0.2.0", "packages/google-api-servicecontrol": "2.1.0", @@ -9,13 +9,13 @@ "packages/google-appengine": "2.2.0", "packages/google-area120-tables": "2.2.0", "packages/google-cloud-accessapproval": "2.2.0", - "packages/google-cloud-aiplatform": "2.5.0", + "packages/google-cloud-aiplatform": "2.6.0", "packages/google-cloud-apigateway": "2.2.0", "packages/google-cloud-apigeeconnect": "2.2.0", "packages/google-cloud-asset": "4.6.0", "packages/google-cloud-assuredworkloads": "3.6.0", "packages/google-cloud-baremetalsolution": "0.3.0", - "packages/google-cloud-batch": "0.5.0", + "packages/google-cloud-batch": "0.6.0", "packages/google-cloud-beyondcorp-appconnections": "0.3.0", "packages/google-cloud-beyondcorp-appconnectors": "0.4.0", "packages/google-cloud-beyondcorp-appgateways": "0.3.0", @@ -34,7 +34,7 @@ "packages/google-cloud-channel": "2.4.0", "packages/google-cloud-clouddms": "2.2.0", "packages/google-cloud-compute": "3.8.0", - "packages/google-cloud-contactcenterinsights": "2.3.0", + "packages/google-cloud-contactcenterinsights": "2.4.0", "packages/google-cloud-contentwarehouse": "0.3.0", "packages/google-cloud-datacatalog": "3.2.0", "packages/google-cloud-datafusion": "2.2.0", @@ -47,7 +47,7 @@ "packages/google-cloud-dialogflow": "5.5.0", "packages/google-cloud-dialogflow-cx": "3.2.0", "packages/google-cloud-discoveryengine": "0.3.0", - "packages/google-cloud-documentai": "6.3.0", + "packages/google-cloud-documentai": "7.0.0", "packages/google-cloud-domains": "2.2.0", "packages/google-cloud-essentialcontacts": "2.1.0", "packages/google-cloud-eventarc": "2.3.0", @@ -58,7 +58,7 @@ "packages/google-cloud-gkebackup": "0.3.0", "packages/google-cloud-gkeconnect-gateway": "2.1.0", "packages/google-cloud-gkehub": "3.3.0", - "packages/google-cloud-gkemulticloud": "0.2.0", + "packages/google-cloud-gkemulticloud": "0.3.0", "packages/google-cloud-iap": "2.2.0", "packages/google-cloud-ids": "2.2.0", "packages/google-cloud-iot": "3.2.0", @@ -115,7 +115,7 @@ "packages/google-cloud-workflows-executions": "2.3.0", "packages/google-container": "4.7.0", "packages/google-dataflow": "2.1.0", - "packages/google-devtools-artifactregistry": "2.1.0", + "packages/google-devtools-artifactregistry": "2.2.0", "packages/google-devtools-cloudbuild": "3.3.0", "packages/google-devtools-containeranalysis": "4.4.1", "packages/google-iam": "0.3.0", @@ -128,5 +128,7 @@ "packages/google-storagetransfer": "2.3.0", "packages/grafeas": "4.2.1", "packages/typeless-sample-bot": "1.3.0", - "packages/google-cloud-datacatalog-lineage": "0.1.0" + "packages/google-cloud-datacatalog-lineage": "0.1.0", + "packages/google-maps-mapsplatformdatasets": "0.1.0", + "packages/google-cloud-gsuiteaddons": "0.1.0" } diff --git a/changelog.json b/changelog.json index 1c69a8b15c24..606f348e4000 100644 --- a/changelog.json +++ b/changelog.json @@ -1,6 +1,161 @@ { "repository": "googleapis/google-cloud-node", "entries": [ + { + "changes": [ + { + "type": "feat", + "sha": "4b97bb91894bfa56e5713e3f550a671e9f27c57c", + "message": "Add initial files for google.cloud.gsuiteaddons.v1", + "issues": [ + "3744" + ] + } + ], + "version": "0.1.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/gsuiteaddons", + "id": "b801d058-cac1-4ee9-af22-cc720e1f4d22", + "createTime": "2023-02-09T00:46:43.601Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "54b124cde2b5ee3c624f8c74d76b4dfb0a1dbb86", + "message": "Add initial files for google.maps.mapsplatformdatasets.v1alpha", + "issues": [ + "3924" + ] + } + ], + "version": "0.1.0", + "language": "JAVASCRIPT", + "artifactName": "@googlemaps/maps-platform-datasets", + "id": "4d28443f-47a7-4246-9ec8-57548e13ae3a", + "createTime": "2023-02-09T00:46:43.601Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "fadd502bd91d470528abec33871776ab1875929d", + "message": "Add format-specific resources MavenArtifact, NpmPackage, `KfpArtifact` and `PythonPackage`", + "issues": [ + "3940" + ] + } + ], + "version": "2.2.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/artifact-registry", + "id": "1f8b21e1-d878-41b8-8f5b-c8f81f6980ba", + "createTime": "2023-02-09T00:46:43.600Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "48763577ffe3a47a445c3c3f53a4801049f5d217", + "message": "[gkemulticloud] Added support for Azure workload identity federation", + "issues": [ + "3925" + ] + } + ], + "version": "0.3.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/gkemulticloud", + "id": "45d82238-e893-46d0-9c9a-83745641b693", + "createTime": "2023-02-09T00:46:43.600Z" + }, + { + "changes": [ + { + "type": "chore", + "sha": "9825fa99b94aad5cf1c1d6b3a858bc4e3ccfcb15", + "message": "[documentai] feat: Added EvaluationReference to evaluation.proto", + "issues": [ + "3954" + ], + "scope": "gitignore", + "breakingChangeNote": "The TrainProcessorVersion parent was incorrectly annotated." + } + ], + "version": "7.0.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/documentai", + "id": "3182e5fd-f436-4643-a9b3-d229d309ab51", + "createTime": "2023-02-09T00:46:43.599Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "7d98066e5335f8e089a9f193a2ec907b99b3e042", + "message": "Add IngestConversationsStats", + "issues": [ + "3941" + ] + } + ], + "version": "2.4.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/contact-center-insights", + "id": "f480aebe-9ff5-4261-8900-fe78b1aab576", + "createTime": "2023-02-09T00:46:43.599Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "f72de2714e5bb69ecd792397dac6d2acc66277e8", + "message": "[batch] support custom scopes for service account in v1 ", + "issues": [ + "3950" + ] + } + ], + "version": "0.6.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/batch", + "id": "4ddd9fcd-1a3c-4126-8515-e255559e292b", + "createTime": "2023-02-09T00:46:43.598Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "fcaacbc8060ec8eb750d283dc17febe9fb0f2cd8", + "message": "[ai-platform] add service_networking.proto to aiplatform v1", + "issues": [ + "3937" + ] + } + ], + "version": "2.6.0", + "language": "JAVASCRIPT", + "artifactName": "@google-cloud/aiplatform", + "id": "0f392655-7ea7-48b4-be87-8d703ba8badb", + "createTime": "2023-02-09T00:46:43.597Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "4834b822552f4b1affdb23085ff78715975b72d1", + "message": "[analytics-admin] add `GetSearchAds360Link`, `ListSearchAds360Links`, `CreateSearchAds360Link`, `DeleteSearchAds360Link`, `UpdateSearchAds360Link` methods to the Admin API v1alpha", + "issues": [ + "3971" + ] + } + ], + "version": "4.5.0", + "language": "JAVASCRIPT", + "artifactName": "@google-analytics/admin", + "id": "4d8b937b-d9f7-4233-bd09-c98f8e5f0acf", + "createTime": "2023-02-09T00:46:43.596Z" + }, { "changes": [ { @@ -1734,5 +1889,5 @@ "createTime": "2023-01-28T04:18:24.718Z" } ], - "updateTime": "2023-02-02T01:26:10.067Z" + "updateTime": "2023-02-09T00:46:43.601Z" } \ No newline at end of file diff --git a/packages/google-analytics-admin/CHANGELOG.md b/packages/google-analytics-admin/CHANGELOG.md index 96f01c5e0f4b..64a0a0d6d14e 100644 --- a/packages/google-analytics-admin/CHANGELOG.md +++ b/packages/google-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.5.0](https://github.com/googleapis/google-cloud-node/compare/admin-v4.4.0...admin-v4.5.0) (2023-02-09) + + +### Features + +* [analytics-admin] add `GetSearchAds360Link`, `ListSearchAds360Links`, `CreateSearchAds360Link`, `DeleteSearchAds360Link`, `UpdateSearchAds360Link` methods to the Admin API v1alpha ([#3971](https://github.com/googleapis/google-cloud-node/issues/3971)) ([4834b82](https://github.com/googleapis/google-cloud-node/commit/4834b822552f4b1affdb23085ff78715975b72d1)) + ## [4.4.0](https://github.com/googleapis/google-cloud-node/compare/admin-v4.3.1...admin-v4.4.0) (2023-01-28) diff --git a/packages/google-analytics-admin/package.json b/packages/google-analytics-admin/package.json index fa251904ec9e..c35b4226a3fc 100644 --- a/packages/google-analytics-admin/package.json +++ b/packages/google-analytics-admin/package.json @@ -1,6 +1,6 @@ { "name": "@google-analytics/admin", - "version": "4.4.0", + "version": "4.5.0", "description": "Admin client for Node.js", "repository": { "type": "git", diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index 4ec6bc80be0f..0d7dd7891b1a 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-admin", - "version": "4.4.0", + "version": "4.5.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json index c3ae47235d74..ceb9e7998ca5 100644 --- a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json +++ b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata.google.analytics.admin.v1beta.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-admin", - "version": "4.4.0", + "version": "4.5.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-analytics-admin/samples/package.json b/packages/google-analytics-admin/samples/package.json index a205c0e99bba..6e858429adc1 100644 --- a/packages/google-analytics-admin/samples/package.json +++ b/packages/google-analytics-admin/samples/package.json @@ -14,7 +14,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-analytics/admin": "^4.4.0", + "@google-analytics/admin": "^4.5.0", "google-auth-library": "^8.0.0", "google-gax": "^3.0.0", "http": "0.0.1-security", diff --git a/packages/google-cloud-aiplatform/CHANGELOG.md b/packages/google-cloud-aiplatform/CHANGELOG.md index 767d0a096006..b8d594e82325 100644 --- a/packages/google-cloud-aiplatform/CHANGELOG.md +++ b/packages/google-cloud-aiplatform/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.6.0](https://github.com/googleapis/google-cloud-node/compare/aiplatform-v2.5.0...aiplatform-v2.6.0) (2023-02-09) + + +### Features + +* [ai-platform] add service_networking.proto to aiplatform v1 ([#3937](https://github.com/googleapis/google-cloud-node/issues/3937)) ([fcaacbc](https://github.com/googleapis/google-cloud-node/commit/fcaacbc8060ec8eb750d283dc17febe9fb0f2cd8)) + ## [2.5.0](https://github.com/googleapis/google-cloud-node/compare/aiplatform-v2.4.0...aiplatform-v2.5.0) (2023-01-28) diff --git a/packages/google-cloud-aiplatform/package.json b/packages/google-cloud-aiplatform/package.json index 3e30baf2016b..1b9056061711 100644 --- a/packages/google-cloud-aiplatform/package.json +++ b/packages/google-cloud-aiplatform/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/aiplatform", - "version": "2.5.0", + "version": "2.6.0", "description": "Vertex AI client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json index bf82ad27f41b..e94665a46d87 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-aiplatform", - "version": "2.5.0", + "version": "2.6.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index 2e8ffa5b5d9a..72a74c0153a2 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-aiplatform", - "version": "2.5.0", + "version": "2.6.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-aiplatform/samples/package.json b/packages/google-cloud-aiplatform/samples/package.json index 10499a477b32..c1c33e5c1f72 100644 --- a/packages/google-cloud-aiplatform/samples/package.json +++ b/packages/google-cloud-aiplatform/samples/package.json @@ -13,7 +13,7 @@ "test": "mocha --timeout 1200000 test/*.js" }, "dependencies": { - "@google-cloud/aiplatform": "^2.5.0" + "@google-cloud/aiplatform": "^2.6.0" }, "devDependencies": { "chai": "^4.2.0", diff --git a/packages/google-cloud-batch/CHANGELOG.md b/packages/google-cloud-batch/CHANGELOG.md index 6d2a51d8a09e..5d7981196761 100644 --- a/packages/google-cloud-batch/CHANGELOG.md +++ b/packages/google-cloud-batch/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.6.0](https://github.com/googleapis/google-cloud-node/compare/batch-v0.5.0...batch-v0.6.0) (2023-02-09) + + +### Features + +* [batch] support custom scopes for service account in v1 ([#3950](https://github.com/googleapis/google-cloud-node/issues/3950)) ([f72de27](https://github.com/googleapis/google-cloud-node/commit/f72de2714e5bb69ecd792397dac6d2acc66277e8)) + ## [0.5.0](https://github.com/googleapis/google-cloud-node/compare/batch-v0.4.0...batch-v0.5.0) (2023-01-28) diff --git a/packages/google-cloud-batch/package.json b/packages/google-cloud-batch/package.json index 3aa00cc860bd..b4bcdfc7ef88 100644 --- a/packages/google-cloud-batch/package.json +++ b/packages/google-cloud-batch/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/batch", - "version": "0.5.0", + "version": "0.6.0", "description": "Batch client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-batch/samples/generated/v1/snippet_metadata.google.cloud.batch.v1.json b/packages/google-cloud-batch/samples/generated/v1/snippet_metadata.google.cloud.batch.v1.json index 6fea283797cc..a3f909bae50f 100644 --- a/packages/google-cloud-batch/samples/generated/v1/snippet_metadata.google.cloud.batch.v1.json +++ b/packages/google-cloud-batch/samples/generated/v1/snippet_metadata.google.cloud.batch.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-batch", - "version": "0.5.0", + "version": "0.6.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata.google.cloud.batch.v1alpha.json b/packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata.google.cloud.batch.v1alpha.json index af85a39de7f7..5f510536d5d0 100644 --- a/packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata.google.cloud.batch.v1alpha.json +++ b/packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata.google.cloud.batch.v1alpha.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-batch", - "version": "0.5.0", + "version": "0.6.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-batch/samples/package.json b/packages/google-cloud-batch/samples/package.json index a0d2f865e1cd..95a5ec374d43 100644 --- a/packages/google-cloud-batch/samples/package.json +++ b/packages/google-cloud-batch/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@google-cloud/batch": "^0.5.0" + "@google-cloud/batch": "^0.6.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-cloud-contactcenterinsights/CHANGELOG.md b/packages/google-cloud-contactcenterinsights/CHANGELOG.md index be637a20baf8..5a3520daa401 100644 --- a/packages/google-cloud-contactcenterinsights/CHANGELOG.md +++ b/packages/google-cloud-contactcenterinsights/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.4.0](https://github.com/googleapis/google-cloud-node/compare/contact-center-insights-v2.3.0...contact-center-insights-v2.4.0) (2023-02-09) + + +### Features + +* Add IngestConversationsStats ([#3941](https://github.com/googleapis/google-cloud-node/issues/3941)) ([7d98066](https://github.com/googleapis/google-cloud-node/commit/7d98066e5335f8e089a9f193a2ec907b99b3e042)) + ## [2.3.0](https://github.com/googleapis/google-cloud-node/compare/contact-center-insights-v2.2.0...contact-center-insights-v2.3.0) (2023-01-28) diff --git a/packages/google-cloud-contactcenterinsights/package.json b/packages/google-cloud-contactcenterinsights/package.json index dc1ad1fa2a7a..aad6b348d182 100644 --- a/packages/google-cloud-contactcenterinsights/package.json +++ b/packages/google-cloud-contactcenterinsights/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/contact-center-insights", - "version": "2.3.0", + "version": "2.4.0", "description": "contactcenterinsights client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata.google.cloud.contactcenterinsights.v1.json b/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata.google.cloud.contactcenterinsights.v1.json index f3f800d90dd9..f24b128bccd3 100644 --- a/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata.google.cloud.contactcenterinsights.v1.json +++ b/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata.google.cloud.contactcenterinsights.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-contactcenterinsights", - "version": "2.3.0", + "version": "2.4.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-contactcenterinsights/samples/package.json b/packages/google-cloud-contactcenterinsights/samples/package.json index 28b5d8de8e0c..288e51559292 100644 --- a/packages/google-cloud-contactcenterinsights/samples/package.json +++ b/packages/google-cloud-contactcenterinsights/samples/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@google-cloud/bigquery": "^6.0.0", - "@google-cloud/contact-center-insights": "^2.3.0", + "@google-cloud/contact-center-insights": "^2.4.0", "@google-cloud/pubsub": "^3.0.0" }, "devDependencies": { diff --git a/packages/google-cloud-documentai/CHANGELOG.md b/packages/google-cloud-documentai/CHANGELOG.md index 65b08fea81ef..904eb4c117fe 100644 --- a/packages/google-cloud-documentai/CHANGELOG.md +++ b/packages/google-cloud-documentai/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [7.0.0](https://github.com/googleapis/google-cloud-node/compare/documentai-v6.3.0...documentai-v7.0.0) (2023-02-09) + + +### âš  BREAKING CHANGES + +* **gitignore:** The TrainProcessorVersion parent was incorrectly annotated. + +### Miscellaneous Chores + +* **gitignore:** [documentai] feat: Added EvaluationReference to evaluation.proto ([#3954](https://github.com/googleapis/google-cloud-node/issues/3954)) ([9825fa9](https://github.com/googleapis/google-cloud-node/commit/9825fa99b94aad5cf1c1d6b3a858bc4e3ccfcb15)) + ## [6.3.0](https://github.com/googleapis/google-cloud-node/compare/documentai-v6.2.0...documentai-v6.3.0) (2023-01-28) diff --git a/packages/google-cloud-documentai/package.json b/packages/google-cloud-documentai/package.json index 8c1e42de4edf..de2a6d7cb5f0 100644 --- a/packages/google-cloud-documentai/package.json +++ b/packages/google-cloud-documentai/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/documentai", - "version": "6.3.0", + "version": "7.0.0", "description": "Document AI client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata.google.cloud.documentai.v1.json b/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata.google.cloud.documentai.v1.json index 0bbf31f795f6..66381e49fcdb 100644 --- a/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata.google.cloud.documentai.v1.json +++ b/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata.google.cloud.documentai.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-documentai", - "version": "6.3.0", + "version": "7.0.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-documentai/samples/generated/v1beta1/snippet_metadata.google.cloud.documentai.v1beta1.json b/packages/google-cloud-documentai/samples/generated/v1beta1/snippet_metadata.google.cloud.documentai.v1beta1.json index e6746d5b25b8..118a4edc8dab 100644 --- a/packages/google-cloud-documentai/samples/generated/v1beta1/snippet_metadata.google.cloud.documentai.v1beta1.json +++ b/packages/google-cloud-documentai/samples/generated/v1beta1/snippet_metadata.google.cloud.documentai.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-documentai", - "version": "6.3.0", + "version": "7.0.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-documentai/samples/generated/v1beta2/snippet_metadata.google.cloud.documentai.v1beta2.json b/packages/google-cloud-documentai/samples/generated/v1beta2/snippet_metadata.google.cloud.documentai.v1beta2.json index 1ef030737016..b2f12cb61560 100644 --- a/packages/google-cloud-documentai/samples/generated/v1beta2/snippet_metadata.google.cloud.documentai.v1beta2.json +++ b/packages/google-cloud-documentai/samples/generated/v1beta2/snippet_metadata.google.cloud.documentai.v1beta2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-documentai", - "version": "6.3.0", + "version": "7.0.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata.google.cloud.documentai.v1beta3.json b/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata.google.cloud.documentai.v1beta3.json index 896779287308..6ae43c895904 100644 --- a/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata.google.cloud.documentai.v1beta3.json +++ b/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata.google.cloud.documentai.v1beta3.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-documentai", - "version": "6.3.0", + "version": "7.0.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-documentai/samples/package.json b/packages/google-cloud-documentai/samples/package.json index df1c358230ba..e0206ea36dfb 100644 --- a/packages/google-cloud-documentai/samples/package.json +++ b/packages/google-cloud-documentai/samples/package.json @@ -13,7 +13,7 @@ "test": "mocha test/*.js --timeout 600000" }, "dependencies": { - "@google-cloud/documentai": "^6.3.0", + "@google-cloud/documentai": "^7.0.0", "@google-cloud/storage": "^6.0.0", "p-queue": "^7.0.0", "uuid": "^9.0.0" diff --git a/packages/google-cloud-gkemulticloud/CHANGELOG.md b/packages/google-cloud-gkemulticloud/CHANGELOG.md index d6f7ce2c369c..fb9dfa331295 100644 --- a/packages/google-cloud-gkemulticloud/CHANGELOG.md +++ b/packages/google-cloud-gkemulticloud/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.3.0](https://github.com/googleapis/google-cloud-node/compare/gkemulticloud-v0.2.0...gkemulticloud-v0.3.0) (2023-02-09) + + +### Features + +* [gkemulticloud] Added support for Azure workload identity federation ([#3925](https://github.com/googleapis/google-cloud-node/issues/3925)) ([4876357](https://github.com/googleapis/google-cloud-node/commit/48763577ffe3a47a445c3c3f53a4801049f5d217)) + ## [0.2.0](https://github.com/googleapis/google-cloud-node/compare/gkemulticloud-v0.1.4...gkemulticloud-v0.2.0) (2022-12-21) diff --git a/packages/google-cloud-gkemulticloud/package.json b/packages/google-cloud-gkemulticloud/package.json index 2f9622d0f153..0bee25c4b680 100644 --- a/packages/google-cloud-gkemulticloud/package.json +++ b/packages/google-cloud-gkemulticloud/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/gkemulticloud", - "version": "0.2.0", + "version": "0.3.0", "description": "Anthos Multi-Cloud API client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata.google.cloud.gkemulticloud.v1.json b/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata.google.cloud.gkemulticloud.v1.json index b8ba778ad025..e4329cfb2a4b 100644 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata.google.cloud.gkemulticloud.v1.json +++ b/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata.google.cloud.gkemulticloud.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gkemulticloud", - "version": "0.2.0", + "version": "0.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-gkemulticloud/samples/package.json b/packages/google-cloud-gkemulticloud/samples/package.json index d4e588b65bb3..7a4cb9ad94d5 100644 --- a/packages/google-cloud-gkemulticloud/samples/package.json +++ b/packages/google-cloud-gkemulticloud/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@google-cloud/gkemulticloud": "^0.2.0" + "@google-cloud/gkemulticloud": "^0.3.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-cloud-gsuiteaddons/CHANGELOG.md b/packages/google-cloud-gsuiteaddons/CHANGELOG.md new file mode 100644 index 000000000000..34e0b17ac803 --- /dev/null +++ b/packages/google-cloud-gsuiteaddons/CHANGELOG.md @@ -0,0 +1,8 @@ +# Changelog + +## 0.1.0 (2023-02-09) + + +### Features + +* Add initial files for google.cloud.gsuiteaddons.v1 ([#3744](https://github.com/googleapis/google-cloud-node/issues/3744)) ([4b97bb9](https://github.com/googleapis/google-cloud-node/commit/4b97bb91894bfa56e5713e3f550a671e9f27c57c)) diff --git a/packages/google-cloud-gsuiteaddons/package.json b/packages/google-cloud-gsuiteaddons/package.json index 2c15163e676b..28091f1b8b87 100644 --- a/packages/google-cloud-gsuiteaddons/package.json +++ b/packages/google-cloud-gsuiteaddons/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/gsuiteaddons", - "version": "0.0.0", + "version": "0.1.0", "description": "Google Workspace Add-ons API client for Node.js", "repository": { "type": "git", diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata.google.cloud.gsuiteaddons.v1.json b/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata.google.cloud.gsuiteaddons.v1.json index 132b60929bb0..d18720a10727 100644 --- a/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata.google.cloud.gsuiteaddons.v1.json +++ b/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata.google.cloud.gsuiteaddons.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gsuiteaddons", - "version": "0.0.0", + "version": "0.1.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-gsuiteaddons/samples/package.json b/packages/google-cloud-gsuiteaddons/samples/package.json index 9312c42b3750..452a4c0f2104 100644 --- a/packages/google-cloud-gsuiteaddons/samples/package.json +++ b/packages/google-cloud-gsuiteaddons/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@google-cloud/gsuiteaddons": "0.0.0" + "@google-cloud/gsuiteaddons": "^0.1.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-devtools-artifactregistry/CHANGELOG.md b/packages/google-devtools-artifactregistry/CHANGELOG.md index 1832cce10e72..5efbebd3ee95 100644 --- a/packages/google-devtools-artifactregistry/CHANGELOG.md +++ b/packages/google-devtools-artifactregistry/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.2.0](https://github.com/googleapis/google-cloud-node/compare/artifact-registry-v2.1.0...artifact-registry-v2.2.0) (2023-02-09) + + +### Features + +* Add format-specific resources MavenArtifact, NpmPackage, `KfpArtifact` and `PythonPackage` ([#3940](https://github.com/googleapis/google-cloud-node/issues/3940)) ([fadd502](https://github.com/googleapis/google-cloud-node/commit/fadd502bd91d470528abec33871776ab1875929d)) + ## [2.1.0](https://github.com/googleapis/google-cloud-node/compare/artifact-registry-v2.0.2...artifact-registry-v2.1.0) (2023-01-28) diff --git a/packages/google-devtools-artifactregistry/package.json b/packages/google-devtools-artifactregistry/package.json index edcfa6d83108..3b13a2c7e976 100644 --- a/packages/google-devtools-artifactregistry/package.json +++ b/packages/google-devtools-artifactregistry/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/artifact-registry", - "version": "2.1.0", + "version": "2.2.0", "description": "Artifactregistry client for Node.js", "repository": { "type": "git", diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json b/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json index 953f8a1dfb92..cab2bcdf12cc 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-artifactregistry", - "version": "2.1.0", + "version": "2.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json index 52881fd79418..63bae8708569 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-artifactregistry", - "version": "2.1.0", + "version": "2.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-devtools-artifactregistry/samples/package.json b/packages/google-devtools-artifactregistry/samples/package.json index 676ad4fdc951..b21c6673d9b4 100644 --- a/packages/google-devtools-artifactregistry/samples/package.json +++ b/packages/google-devtools-artifactregistry/samples/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/artifact-registry": "^2.1.0" + "@google-cloud/artifact-registry": "^2.2.0" }, "devDependencies": { "c8": "^7.1.0", diff --git a/packages/google-maps-mapsplatformdatasets/CHANGELOG.md b/packages/google-maps-mapsplatformdatasets/CHANGELOG.md new file mode 100644 index 000000000000..a918e6fcaf9d --- /dev/null +++ b/packages/google-maps-mapsplatformdatasets/CHANGELOG.md @@ -0,0 +1,8 @@ +# Changelog + +## 0.1.0 (2023-02-09) + + +### Features + +* Add initial files for google.maps.mapsplatformdatasets.v1alpha ([#3924](https://github.com/googleapis/google-cloud-node/issues/3924)) ([54b124c](https://github.com/googleapis/google-cloud-node/commit/54b124cde2b5ee3c624f8c74d76b4dfb0a1dbb86)) diff --git a/packages/google-maps-mapsplatformdatasets/package.json b/packages/google-maps-mapsplatformdatasets/package.json index 5000be62f63f..74d8e87fa003 100644 --- a/packages/google-maps-mapsplatformdatasets/package.json +++ b/packages/google-maps-mapsplatformdatasets/package.json @@ -1,6 +1,6 @@ { "name": "@googlemaps/maps-platform-datasets", - "version": "0.0.0", + "version": "0.1.0", "description": "Maps Platform Datasets API client for Node.js", "repository": { "type": "git", diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata.google.maps.mapsplatformdatasets.v1alpha.json b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata.google.maps.mapsplatformdatasets.v1alpha.json index 185ae899d324..55e732771863 100644 --- a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata.google.maps.mapsplatformdatasets.v1alpha.json +++ b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata.google.maps.mapsplatformdatasets.v1alpha.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-mapsplatformdatasets", - "version": "0.0.0", + "version": "0.1.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-maps-mapsplatformdatasets/samples/package.json b/packages/google-maps-mapsplatformdatasets/samples/package.json index 6a8712ec257c..8f3b0f380bb9 100644 --- a/packages/google-maps-mapsplatformdatasets/samples/package.json +++ b/packages/google-maps-mapsplatformdatasets/samples/package.json @@ -14,7 +14,7 @@ "publish": "echo 'sample test; do not publish'" }, "dependencies": { - "@googlemaps/maps-platform-datasets": "0.0.0" + "@googlemaps/maps-platform-datasets": "^0.1.0" }, "devDependencies": { "c8": "^7.1.0",